@skyramp/testbot-core 0.13.2-v3.487 → 0.13.2-v3.489

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.
@@ -48,17 +48,17 @@ ${u}`,this.dataLineCount++;return}if(Sh(t,r,vne)){Sne(t,s)&&(this.setEventFieldS
48
48
  Error Code : ${a.statusCode}
49
49
 
50
50
  Error Message: ${a.message}`)})).result)===null||n===void 0?void 0:n.value;if(!s)throw new Error("Response json body do not have ID Token field");return s})}static getIDToken(t){return VL(this,void 0,void 0,function*(){try{let n=e.getIDTokenUrl();if(t){let r=encodeURIComponent(t);n=`${n}&audience=${r}`}qL(`ID token url is ${n}`);let i=yield e.getCall(n);return Gd(i),i}catch(n){throw new Error(`Error message: ${n.message}`)}})}}});var HL,Vd,rC,vre,bre,wre,JL,iC,PCe,sC=Cn(()=>{HL=require("os"),Vd=require("fs"),rC=function(e,t,n,i){function r(s){return s instanceof n?s:new n(function(a){a(s)})}return o(r,"adopt"),new(n||(n=Promise))(function(s,a){function c(p){try{l(i.next(p))}catch(f){a(f)}}o(c,"fulfilled");function u(p){try{l(i.throw(p))}catch(f){a(f)}}o(u,"rejected");function l(p){p.done?s(p.value):r(p.value).then(c,u)}o(l,"step"),l((i=i.apply(e,t||[])).next())})},{access:vre,appendFile:bre,writeFile:wre}=Vd.promises,JL="GITHUB_STEP_SUMMARY",iC=class{static{o(this,"Summary")}constructor(){this._buffer=""}filePath(){return rC(this,void 0,void 0,function*(){if(this._filePath)return this._filePath;let t=process.env[JL];if(!t)throw new Error(`Unable to find environment variable for $${JL}. Check if your runtime environment supports job summaries.`);try{yield vre(t,Vd.constants.R_OK|Vd.constants.W_OK)}catch{throw new Error(`Unable to access summary file: '${t}'. Check if the file has correct read/write permissions.`)}return this._filePath=t,this._filePath})}wrap(t,n,i={}){let r=Object.entries(i).map(([s,a])=>` ${s}="${a}"`).join("");return n?`<${t}${r}>${n}</${t}>`:`<${t}${r}>`}write(t){return rC(this,void 0,void 0,function*(){let n=!!t?.overwrite,i=yield this.filePath();return yield(n?wre:bre)(i,this._buffer,{encoding:"utf8"}),this.emptyBuffer()})}clear(){return rC(this,void 0,void 0,function*(){return this.emptyBuffer().write({overwrite:!0})})}stringify(){return this._buffer}isEmptyBuffer(){return this._buffer.length===0}emptyBuffer(){return this._buffer="",this}addRaw(t,n=!1){return this._buffer+=t,n?this.addEOL():this}addEOL(){return this.addRaw(HL.EOL)}addCodeBlock(t,n){let i=Object.assign({},n&&{lang:n}),r=this.wrap("pre",this.wrap("code",t),i);return this.addRaw(r).addEOL()}addList(t,n=!1){let i=n?"ol":"ul",r=t.map(a=>this.wrap("li",a)).join(""),s=this.wrap(i,r);return this.addRaw(s).addEOL()}addTable(t){let n=t.map(r=>{let s=r.map(a=>{if(typeof a=="string")return this.wrap("td",a);let{header:c,data:u,colspan:l,rowspan:p}=a,f=c?"th":"td",g=Object.assign(Object.assign({},l&&{colspan:l}),p&&{rowspan:p});return this.wrap(f,u,g)}).join("");return this.wrap("tr",s)}).join(""),i=this.wrap("table",n);return this.addRaw(i).addEOL()}addDetails(t,n){let i=this.wrap("details",this.wrap("summary",t)+n);return this.addRaw(i).addEOL()}addImage(t,n,i){let{width:r,height:s}=i||{},a=Object.assign(Object.assign({},r&&{width:r}),s&&{height:s}),c=this.wrap("img",null,Object.assign({src:t,alt:n},a));return this.addRaw(c).addEOL()}addHeading(t,n){let i=`h${n}`,r=["h1","h2","h3","h4","h5","h6"].includes(i)?i:"h1",s=this.wrap(r,t);return this.addRaw(s).addEOL()}addSeparator(){let t=this.wrap("hr",null);return this.addRaw(t).addEOL()}addBreak(){let t=this.wrap("br",null);return this.addRaw(t).addEOL()}addQuote(t,n){let i=Object.assign({},n&&{cite:n}),r=this.wrap("blockquote",t,i);return this.addRaw(r).addEOL()}addLink(t,n){let i=this.wrap("a",t,{href:n});return this.addRaw(i).addEOL()}},PCe=new iC});var YL=Cn(()=>{});var Th,Cre,Sre,kre,Bre,LCe,Rre,Qre,xre,jCe,$re,Tre,Dre,_re,GCe,oC=Cn(()=>{Th=re(require("fs"),1),{chmod:Cre,copyFile:Sre,lstat:kre,mkdir:Bre,open:LCe,readdir:Rre,rename:Qre,rm:xre,rmdir:jCe,stat:$re,symlink:Tre,unlink:Dre}=Th.promises,_re=process.platform==="win32",GCe=Th.constants.O_RDONLY});var ZL=Cn(()=>{oC()});var WCe,KL=Cn(()=>{ZL();oC();WCe=process.platform==="win32"});var aC=Cn(()=>{KL()});var cC,nSe,rSe,ej=Cn(()=>{cC=re(require("os"),1);aC();nSe=cC.default.platform(),rSe=cC.default.arch()});function Gd(e){CI("add-mask",{},e)}function qL(e){CI("debug",{},e)}function nj(e){return Mre(this,void 0,void 0,function*(){return yield $h.getIDToken(e)})}var Mre,tj,uu=Cn(()=>{aD();cD();$A();zL();sC();sC();YL();ej();Mre=function(e,t,n,i){function r(s){return s instanceof n?s:new n(function(a){a(s)})}return o(r,"adopt"),new(n||(n=Promise))(function(s,a){function c(p){try{l(i.next(p))}catch(f){a(f)}}o(c,"fulfilled");function u(p){try{l(i.throw(p))}catch(f){a(f)}}o(u,"rejected");function l(p){p.done?s(p.value):r(p.value).then(c,u)}o(l,"step"),l((i=i.apply(e,t||[])).next())})};(function(e){e[e.Success=0]="Success",e[e.Failure=1]="Failure"})(tj||(tj={}));o(Gd,"setSecret");o(qL,"debug");o(nj,"getIDToken")});var hl=$((XNe,uq)=>{"use strict";var tfe="2.0.0",nfe=Number.MAX_SAFE_INTEGER||9007199254740991,rfe=16,ife=250,sfe=["major","premajor","minor","preminor","patch","prepatch","prerelease"];uq.exports={MAX_LENGTH:256,MAX_SAFE_COMPONENT_LENGTH:rfe,MAX_SAFE_BUILD_LENGTH:ife,MAX_SAFE_INTEGER:nfe,RELEASE_TYPES:sfe,SEMVER_SPEC_VERSION:tfe,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2}});var Pf=$((ePe,lq)=>{"use strict";var ofe=typeof process=="object"&&process.env&&process.env.NODE_DEBUG&&/\bsemver\b/i.test(process.env.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};lq.exports=ofe});var ml=$((Li,dq)=>{"use strict";var{MAX_SAFE_COMPONENT_LENGTH:S0,MAX_SAFE_BUILD_LENGTH:afe,MAX_LENGTH:cfe}=hl(),ufe=Pf();Li=dq.exports={};var lfe=Li.re=[],dfe=Li.safeRe=[],ie=Li.src=[],pfe=Li.safeSrc=[],se=Li.t={},ffe=0,k0="[a-zA-Z0-9-]",Afe=[["\\s",1],["\\d",cfe],[k0,afe]],gfe=o(e=>{for(let[t,n]of Afe)e=e.split(`${t}*`).join(`${t}{0,${n}}`).split(`${t}+`).join(`${t}{1,${n}}`);return e},"makeSafeRegex"),Pe=o((e,t,n)=>{let i=gfe(t),r=ffe++;ufe(e,r,t),se[e]=r,ie[r]=t,pfe[r]=i,lfe[r]=new RegExp(t,n?"g":void 0),dfe[r]=new RegExp(i,n?"g":void 0)},"createToken");Pe("NUMERICIDENTIFIER","0|[1-9]\\d*");Pe("NUMERICIDENTIFIERLOOSE","\\d+");Pe("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${k0}*`);Pe("MAINVERSION",`(${ie[se.NUMERICIDENTIFIER]})\\.(${ie[se.NUMERICIDENTIFIER]})\\.(${ie[se.NUMERICIDENTIFIER]})`);Pe("MAINVERSIONLOOSE",`(${ie[se.NUMERICIDENTIFIERLOOSE]})\\.(${ie[se.NUMERICIDENTIFIERLOOSE]})\\.(${ie[se.NUMERICIDENTIFIERLOOSE]})`);Pe("PRERELEASEIDENTIFIER",`(?:${ie[se.NONNUMERICIDENTIFIER]}|${ie[se.NUMERICIDENTIFIER]})`);Pe("PRERELEASEIDENTIFIERLOOSE",`(?:${ie[se.NONNUMERICIDENTIFIER]}|${ie[se.NUMERICIDENTIFIERLOOSE]})`);Pe("PRERELEASE",`(?:-(${ie[se.PRERELEASEIDENTIFIER]}(?:\\.${ie[se.PRERELEASEIDENTIFIER]})*))`);Pe("PRERELEASELOOSE",`(?:-?(${ie[se.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${ie[se.PRERELEASEIDENTIFIERLOOSE]})*))`);Pe("BUILDIDENTIFIER",`${k0}+`);Pe("BUILD",`(?:\\+(${ie[se.BUILDIDENTIFIER]}(?:\\.${ie[se.BUILDIDENTIFIER]})*))`);Pe("FULLPLAIN",`v?${ie[se.MAINVERSION]}${ie[se.PRERELEASE]}?${ie[se.BUILD]}?`);Pe("FULL",`^${ie[se.FULLPLAIN]}$`);Pe("LOOSEPLAIN",`[v=\\s]*${ie[se.MAINVERSIONLOOSE]}${ie[se.PRERELEASELOOSE]}?${ie[se.BUILD]}?`);Pe("LOOSE",`^${ie[se.LOOSEPLAIN]}$`);Pe("GTLT","((?:<|>)?=?)");Pe("XRANGEIDENTIFIERLOOSE",`${ie[se.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`);Pe("XRANGEIDENTIFIER",`${ie[se.NUMERICIDENTIFIER]}|x|X|\\*`);Pe("XRANGEPLAIN",`[v=\\s]*(${ie[se.XRANGEIDENTIFIER]})(?:\\.(${ie[se.XRANGEIDENTIFIER]})(?:\\.(${ie[se.XRANGEIDENTIFIER]})(?:${ie[se.PRERELEASE]})?${ie[se.BUILD]}?)?)?`);Pe("XRANGEPLAINLOOSE",`[v=\\s]*(${ie[se.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ie[se.XRANGEIDENTIFIERLOOSE]})(?:\\.(${ie[se.XRANGEIDENTIFIERLOOSE]})(?:${ie[se.PRERELEASELOOSE]})?${ie[se.BUILD]}?)?)?`);Pe("XRANGE",`^${ie[se.GTLT]}\\s*${ie[se.XRANGEPLAIN]}$`);Pe("XRANGELOOSE",`^${ie[se.GTLT]}\\s*${ie[se.XRANGEPLAINLOOSE]}$`);Pe("COERCEPLAIN",`(^|[^\\d])(\\d{1,${S0}})(?:\\.(\\d{1,${S0}}))?(?:\\.(\\d{1,${S0}}))?`);Pe("COERCE",`${ie[se.COERCEPLAIN]}(?:$|[^\\d])`);Pe("COERCEFULL",ie[se.COERCEPLAIN]+`(?:${ie[se.PRERELEASE]})?(?:${ie[se.BUILD]})?(?:$|[^\\d])`);Pe("COERCERTL",ie[se.COERCE],!0);Pe("COERCERTLFULL",ie[se.COERCEFULL],!0);Pe("LONETILDE","(?:~>?)");Pe("TILDETRIM",`(\\s*)${ie[se.LONETILDE]}\\s+`,!0);Li.tildeTrimReplace="$1~";Pe("TILDE",`^${ie[se.LONETILDE]}${ie[se.XRANGEPLAIN]}$`);Pe("TILDELOOSE",`^${ie[se.LONETILDE]}${ie[se.XRANGEPLAINLOOSE]}$`);Pe("LONECARET","(?:\\^)");Pe("CARETTRIM",`(\\s*)${ie[se.LONECARET]}\\s+`,!0);Li.caretTrimReplace="$1^";Pe("CARET",`^${ie[se.LONECARET]}${ie[se.XRANGEPLAIN]}$`);Pe("CARETLOOSE",`^${ie[se.LONECARET]}${ie[se.XRANGEPLAINLOOSE]}$`);Pe("COMPARATORLOOSE",`^${ie[se.GTLT]}\\s*(${ie[se.LOOSEPLAIN]})$|^$`);Pe("COMPARATOR",`^${ie[se.GTLT]}\\s*(${ie[se.FULLPLAIN]})$|^$`);Pe("COMPARATORTRIM",`(\\s*)${ie[se.GTLT]}\\s*(${ie[se.LOOSEPLAIN]}|${ie[se.XRANGEPLAIN]})`,!0);Li.comparatorTrimReplace="$1$2$3";Pe("HYPHENRANGE",`^\\s*(${ie[se.XRANGEPLAIN]})\\s+-\\s+(${ie[se.XRANGEPLAIN]})\\s*$`);Pe("HYPHENRANGELOOSE",`^\\s*(${ie[se.XRANGEPLAINLOOSE]})\\s+-\\s+(${ie[se.XRANGEPLAINLOOSE]})\\s*$`);Pe("STAR","(<|>)?=?\\s*\\*");Pe("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$");Pe("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")});var SE=$((nPe,pq)=>{"use strict";var hfe=Object.freeze({loose:!0}),mfe=Object.freeze({}),yfe=o(e=>e?typeof e!="object"?hfe:e:mfe,"parseOptions");pq.exports=yfe});var B0=$((iPe,gq)=>{"use strict";var fq=/^[0-9]+$/,Aq=o((e,t)=>{if(typeof e=="number"&&typeof t=="number")return e===t?0:e<t?-1:1;let n=fq.test(e),i=fq.test(t);return n&&i&&(e=+e,t=+t),e===t?0:n&&!i?-1:i&&!n?1:e<t?-1:1},"compareIdentifiers"),Efe=o((e,t)=>Aq(t,e),"rcompareIdentifiers");gq.exports={compareIdentifiers:Aq,rcompareIdentifiers:Efe}});var pn=$((oPe,mq)=>{"use strict";var kE=Pf(),{MAX_LENGTH:hq,MAX_SAFE_INTEGER:BE}=hl(),{safeRe:RE,t:QE}=ml(),Ife=SE(),{compareIdentifiers:R0}=B0(),vfe=o((e,t)=>{let n=t.split(".");if(n.length>e.length)return!1;for(let i=0;i<n.length;i++)if(R0(e[i],n[i])!==0)return!1;return!0},"isPrereleaseIdentifier"),Q0=class e{static{o(this,"SemVer")}constructor(t,n){if(n=Ife(n),t instanceof e){if(t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease)return t;t=t.version}else if(typeof t!="string")throw new TypeError(`Invalid version. Must be a string. Got type "${typeof t}".`);if(t.length>hq)throw new TypeError(`version is longer than ${hq} characters`);kE("SemVer",t,n),this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease;let i=t.trim().match(n.loose?RE[QE.LOOSE]:RE[QE.FULL]);if(!i)throw new TypeError(`Invalid Version: ${t}`);if(this.raw=t,this.major=+i[1],this.minor=+i[2],this.patch=+i[3],this.major>BE||this.major<0)throw new TypeError("Invalid major version");if(this.minor>BE||this.minor<0)throw new TypeError("Invalid minor version");if(this.patch>BE||this.patch<0)throw new TypeError("Invalid patch version");i[4]?this.prerelease=i[4].split(".").map(r=>{if(/^[0-9]+$/.test(r)){let s=+r;if(s>=0&&s<BE)return s}return r}):this.prerelease=[],this.build=i[5]?i[5].split("."):[],this.format()}format(){return this.version=`${this.major}.${this.minor}.${this.patch}`,this.prerelease.length&&(this.version+=`-${this.prerelease.join(".")}`),this.version}toString(){return this.version}compare(t){if(kE("SemVer.compare",this.version,this.options,t),!(t instanceof e)){if(typeof t=="string"&&t===this.version)return 0;t=new e(t,this.options)}return t.version===this.version?0:this.compareMain(t)||this.comparePre(t)}compareMain(t){return t instanceof e||(t=new e(t,this.options)),this.major<t.major?-1:this.major>t.major?1:this.minor<t.minor?-1:this.minor>t.minor?1:this.patch<t.patch?-1:this.patch>t.patch?1:0}comparePre(t){if(t instanceof e||(t=new e(t,this.options)),this.prerelease.length&&!t.prerelease.length)return-1;if(!this.prerelease.length&&t.prerelease.length)return 1;if(!this.prerelease.length&&!t.prerelease.length)return 0;let n=0;do{let i=this.prerelease[n],r=t.prerelease[n];if(kE("prerelease compare",n,i,r),i===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(i===void 0)return-1;if(i===r)continue;return R0(i,r)}while(++n)}compareBuild(t){t instanceof e||(t=new e(t,this.options));let n=0;do{let i=this.build[n],r=t.build[n];if(kE("build compare",n,i,r),i===void 0&&r===void 0)return 0;if(r===void 0)return 1;if(i===void 0)return-1;if(i===r)continue;return R0(i,r)}while(++n)}inc(t,n,i){if(t.startsWith("pre")){if(!n&&i===!1)throw new Error("invalid increment argument: identifier is empty");if(n){let r=`-${n}`.match(this.options.loose?RE[QE.PRERELEASELOOSE]:RE[QE.PRERELEASE]);if(!r||r[1]!==n)throw new Error(`invalid identifier: ${n}`)}}switch(t){case"premajor":this.prerelease.length=0,this.patch=0,this.minor=0,this.major++,this.inc("pre",n,i);break;case"preminor":this.prerelease.length=0,this.patch=0,this.minor++,this.inc("pre",n,i);break;case"prepatch":this.prerelease.length=0,this.inc("patch",n,i),this.inc("pre",n,i);break;case"prerelease":this.prerelease.length===0&&this.inc("patch",n,i),this.inc("pre",n,i);break;case"release":if(this.prerelease.length===0)throw new Error(`version ${this.raw} is not a prerelease`);this.prerelease.length=0;break;case"major":(this.minor!==0||this.patch!==0||this.prerelease.length===0)&&this.major++,this.minor=0,this.patch=0,this.prerelease=[];break;case"minor":(this.patch!==0||this.prerelease.length===0)&&this.minor++,this.patch=0,this.prerelease=[];break;case"patch":this.prerelease.length===0&&this.patch++,this.prerelease=[];break;case"pre":{let r=Number(i)?1:0;if(this.prerelease.length===0)this.prerelease=[r];else{let s=this.prerelease.length;for(;--s>=0;)typeof this.prerelease[s]=="number"&&(this.prerelease[s]++,s=-2);if(s===-1){if(n===this.prerelease.join(".")&&i===!1)throw new Error("invalid increment argument: identifier already exists");this.prerelease.push(r)}}if(n){let s=[n,r];if(i===!1&&(s=[n]),vfe(this.prerelease,n)){let a=this.prerelease[n.split(".").length];isNaN(a)&&(this.prerelease=s)}else this.prerelease=s}break}default:throw new Error(`invalid increment argument: ${t}`)}return this.raw=this.format(),this.build.length&&(this.raw+=`+${this.build.join(".")}`),this}};mq.exports=Q0});var ko=$((cPe,Eq)=>{"use strict";var yq=pn(),bfe=o((e,t,n=!1)=>{if(e instanceof yq)return e;try{return new yq(e,t)}catch(i){if(!n)return null;throw i}},"parse");Eq.exports=bfe});var vq=$((lPe,Iq)=>{"use strict";var wfe=ko(),Cfe=o((e,t)=>{let n=wfe(e,t);return n?n.version:null},"valid");Iq.exports=Cfe});var wq=$((pPe,bq)=>{"use strict";var Sfe=ko(),kfe=o((e,t)=>{let n=Sfe(e.trim().replace(/^[=v]+/,""),t);return n?n.version:null},"clean");bq.exports=kfe});var kq=$((APe,Sq)=>{"use strict";var Cq=pn(),Bfe=o((e,t,n,i,r)=>{typeof n=="string"&&(r=i,i=n,n=void 0);try{return new Cq(e instanceof Cq?e.version:e,n).inc(t,i,r).version}catch{return null}},"inc");Sq.exports=Bfe});var Qq=$((hPe,Rq)=>{"use strict";var Bq=ko(),Rfe=o((e,t)=>{let n=Bq(e,null,!0),i=Bq(t,null,!0),r=n.compare(i);if(r===0)return null;let s=r>0,a=s?n:i,c=s?i:n,u=!!a.prerelease.length;if(!!c.prerelease.length&&!u){if(!c.patch&&!c.minor)return"major";if(c.compareMain(a)===0)return c.minor&&!c.patch?"minor":"patch"}let p=u?"pre":"";return n.major!==i.major?p+"major":n.minor!==i.minor?p+"minor":n.patch!==i.patch?p+"patch":"prerelease"},"diff");Rq.exports=Rfe});var $q=$((yPe,xq)=>{"use strict";var Qfe=pn(),xfe=o((e,t)=>new Qfe(e,t).major,"major");xq.exports=xfe});var Dq=$((IPe,Tq)=>{"use strict";var $fe=pn(),Tfe=o((e,t)=>new $fe(e,t).minor,"minor");Tq.exports=Tfe});var Nq=$((bPe,_q)=>{"use strict";var Dfe=pn(),_fe=o((e,t)=>new Dfe(e,t).patch,"patch");_q.exports=_fe});var Fq=$((CPe,Pq)=>{"use strict";var Nfe=ko(),Pfe=o((e,t)=>{let n=Nfe(e,t);return n&&n.prerelease.length?n.prerelease:null},"prerelease");Pq.exports=Pfe});var Lr=$((kPe,Oq)=>{"use strict";var Uq=pn(),Ffe=o((e,t,n)=>new Uq(e,n).compare(new Uq(t,n)),"compare");Oq.exports=Ffe});var Lq=$((RPe,Mq)=>{"use strict";var Ufe=Lr(),Ofe=o((e,t,n)=>Ufe(t,e,n),"rcompare");Mq.exports=Ofe});var Gq=$((xPe,jq)=>{"use strict";var Mfe=Lr(),Lfe=o((e,t)=>Mfe(e,t,!0),"compareLoose");jq.exports=Lfe});var xE=$((TPe,zq)=>{"use strict";var Vq=pn(),jfe=o((e,t,n)=>{let i=new Vq(e,n),r=new Vq(t,n);return i.compare(r)||i.compareBuild(r)},"compareBuild");zq.exports=jfe});var Jq=$((_Pe,qq)=>{"use strict";var Gfe=xE(),Vfe=o((e,t)=>e.sort((n,i)=>Gfe(n,i,t)),"sort");qq.exports=Vfe});var Yq=$((PPe,Hq)=>{"use strict";var zfe=xE(),qfe=o((e,t)=>e.sort((n,i)=>zfe(i,n,t)),"rsort");Hq.exports=qfe});var Ff=$((UPe,Wq)=>{"use strict";var Jfe=Lr(),Hfe=o((e,t,n)=>Jfe(e,t,n)>0,"gt");Wq.exports=Hfe});var $E=$((MPe,Zq)=>{"use strict";var Yfe=Lr(),Wfe=o((e,t,n)=>Yfe(e,t,n)<0,"lt");Zq.exports=Wfe});var x0=$((jPe,Kq)=>{"use strict";var Zfe=Lr(),Kfe=o((e,t,n)=>Zfe(e,t,n)===0,"eq");Kq.exports=Kfe});var $0=$((VPe,Xq)=>{"use strict";var Xfe=Lr(),eAe=o((e,t,n)=>Xfe(e,t,n)!==0,"neq");Xq.exports=eAe});var TE=$((qPe,eJ)=>{"use strict";var tAe=Lr(),nAe=o((e,t,n)=>tAe(e,t,n)>=0,"gte");eJ.exports=nAe});var DE=$((HPe,tJ)=>{"use strict";var rAe=Lr(),iAe=o((e,t,n)=>rAe(e,t,n)<=0,"lte");tJ.exports=iAe});var T0=$((WPe,nJ)=>{"use strict";var sAe=x0(),oAe=$0(),aAe=Ff(),cAe=TE(),uAe=$E(),lAe=DE(),dAe=o((e,t,n,i)=>{switch(t){case"===":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e===n;case"!==":return typeof e=="object"&&(e=e.version),typeof n=="object"&&(n=n.version),e!==n;case"":case"=":case"==":return sAe(e,n,i);case"!=":return oAe(e,n,i);case">":return aAe(e,n,i);case">=":return cAe(e,n,i);case"<":return uAe(e,n,i);case"<=":return lAe(e,n,i);default:throw new TypeError(`Invalid operator: ${t}`)}},"cmp");nJ.exports=dAe});var iJ=$((KPe,rJ)=>{"use strict";var pAe=pn(),fAe=ko(),{safeRe:_E,t:NE}=ml(),AAe=o((e,t)=>{if(e instanceof pAe)return e;if(typeof e=="number"&&(e=String(e)),typeof e!="string")return null;t=t||{};let n=null;if(!t.rtl)n=e.match(t.includePrerelease?_E[NE.COERCEFULL]:_E[NE.COERCE]);else{let u=t.includePrerelease?_E[NE.COERCERTLFULL]:_E[NE.COERCERTL],l;for(;(l=u.exec(e))&&(!n||n.index+n[0].length!==e.length);)(!n||l.index+l[0].length!==n.index+n[0].length)&&(n=l),u.lastIndex=l.index+l[1].length+l[2].length;u.lastIndex=-1}if(n===null)return null;let i=n[2],r=n[3]||"0",s=n[4]||"0",a=t.includePrerelease&&n[5]?`-${n[5]}`:"",c=t.includePrerelease&&n[6]?`+${n[6]}`:"";return fAe(`${i}.${r}.${s}${a}${c}`,t)},"coerce");rJ.exports=AAe});var oJ=$((eFe,sJ)=>{"use strict";var gAe=ko(),hAe=hl(),mAe=pn(),yAe=o((e,t,n)=>{if(!hAe.RELEASE_TYPES.includes(t))return null;let i=EAe(e,n);return i&&IAe(i,t)},"truncate"),EAe=o((e,t)=>{let n=e instanceof mAe?e.version:e;return gAe(n,t)},"cloneInputVersion"),IAe=o((e,t)=>{if(vAe(t))return e.version;switch(e.prerelease=[],t){case"major":e.minor=0,e.patch=0;break;case"minor":e.patch=0;break}return e.format()},"doTruncation"),vAe=o(e=>e.startsWith("pre"),"isPrerelease");sJ.exports=yAe});var cJ=$((nFe,aJ)=>{"use strict";var D0=class{static{o(this,"LRUCache")}constructor(){this.max=1e3,this.map=new Map}get(t){let n=this.map.get(t);if(n!==void 0)return this.map.delete(t),this.map.set(t,n),n}delete(t){return this.map.delete(t)}set(t,n){if(!this.delete(t)&&n!==void 0){if(this.map.size>=this.max){let r=this.map.keys().next().value;this.delete(r)}this.map.set(t,n)}return this}};aJ.exports=D0});var jr=$((iFe,pJ)=>{"use strict";var bAe=/\s+/g,_0=class e{static{o(this,"Range")}constructor(t,n){if(n=CAe(n),t instanceof e)return t.loose===!!n.loose&&t.includePrerelease===!!n.includePrerelease?t:new e(t.raw,n);if(t instanceof N0)return this.raw=t.value,this.set=[[t]],this.formatted=void 0,this;if(this.options=n,this.loose=!!n.loose,this.includePrerelease=!!n.includePrerelease,this.raw=t.trim().replace(bAe," "),this.set=this.raw.split("||").map(i=>this.parseRange(i.trim())).filter(i=>i.length),!this.set.length)throw new TypeError(`Invalid SemVer Range: ${this.raw}`);if(this.set.length>1){let i=this.set[0];if(this.set=this.set.filter(r=>!lJ(r[0])),this.set.length===0)this.set=[i];else if(this.set.length>1){for(let r of this.set)if(r.length===1&&DAe(r[0])){this.set=[r];break}}}this.formatted=void 0}get range(){if(this.formatted===void 0){this.formatted="";for(let t=0;t<this.set.length;t++){t>0&&(this.formatted+="||");let n=this.set[t];for(let i=0;i<n.length;i++)i>0&&(this.formatted+=" "),this.formatted+=n[i].toString().trim()}}return this.formatted}format(){return this.range}toString(){return this.range}parseRange(t){t=t.replace(TAe,"");let i=((this.options.includePrerelease&&xAe)|(this.options.loose&&$Ae))+":"+t,r=uJ.get(i);if(r)return r;let s=this.options.loose,a=s?Un[fn.HYPHENRANGELOOSE]:Un[fn.HYPHENRANGE];t=t.replace(a,VAe(this.options.includePrerelease)),St("hyphen replace",t),t=t.replace(Un[fn.COMPARATORTRIM],BAe),St("comparator trim",t),t=t.replace(Un[fn.TILDETRIM],RAe),St("tilde trim",t),t=t.replace(Un[fn.CARETTRIM],QAe),St("caret trim",t);let c=t.split(" ").map(f=>_Ae(f,this.options)).join(" ").split(/\s+/).map(f=>GAe(f,this.options));s&&(c=c.filter(f=>(St("loose invalid filter",f,this.options),!!f.match(Un[fn.COMPARATORLOOSE])))),St("range list",c);let u=new Map,l=c.map(f=>new N0(f,this.options));for(let f of l){if(lJ(f))return[f];u.set(f.value,f)}u.size>1&&u.has("")&&u.delete("");let p=[...u.values()];return uJ.set(i,p),p}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Range is required");return this.set.some(i=>dJ(i,n)&&t.set.some(r=>dJ(r,n)&&i.every(s=>r.every(a=>s.intersects(a,n)))))}test(t){if(!t)return!1;if(typeof t=="string")try{t=new SAe(t,this.options)}catch{return!1}for(let n=0;n<this.set.length;n++)if(zAe(this.set[n],t,this.options))return!0;return!1}};pJ.exports=_0;var wAe=cJ(),uJ=new wAe,CAe=SE(),N0=Uf(),St=Pf(),SAe=pn(),{safeRe:Un,src:kAe,t:fn,comparatorTrimReplace:BAe,tildeTrimReplace:RAe,caretTrimReplace:QAe}=ml(),{FLAG_INCLUDE_PRERELEASE:xAe,FLAG_LOOSE:$Ae}=hl(),TAe=new RegExp(kAe[fn.BUILD],"g"),lJ=o(e=>e.value==="<0.0.0-0","isNullSet"),DAe=o(e=>e.value==="","isAny"),dJ=o((e,t)=>{let n=!0,i=e.slice(),r=i.pop();for(;n&&i.length;)n=i.every(s=>r.intersects(s,t)),r=i.pop();return n},"isSatisfiable"),_Ae=o((e,t)=>(e=e.replace(Un[fn.BUILD],""),St("comp",e,t),e=UAe(e,t),St("caret",e),e=PAe(e,t),St("tildes",e),e=MAe(e,t),St("xrange",e),e=jAe(e,t),St("stars",e),e),"parseComparator"),Yt=o(e=>!e||e.toLowerCase()==="x"||e==="*","isX"),NAe=o((e,t,n)=>Yt(e)&&!Yt(t)||Yt(t)&&n&&!Yt(n),"invalidXRangeOrder"),PAe=o((e,t)=>e.trim().split(/\s+/).map(n=>FAe(n,t)).join(" "),"replaceTildes"),FAe=o((e,t)=>{let n=t.loose?Un[fn.TILDELOOSE]:Un[fn.TILDE],i=t.includePrerelease?"-0":"";return e.replace(n,(r,s,a,c,u)=>{St("tilde",e,r,s,a,c,u);let l;return Yt(s)?l="":Yt(a)?l=`>=${s}.0.0${i} <${+s+1}.0.0-0`:Yt(c)?l=`>=${s}.${a}.0${i} <${s}.${+a+1}.0-0`:u?(St("replaceTilde pr",u),l=`>=${s}.${a}.${c}-${u} <${s}.${+a+1}.0-0`):l=`>=${s}.${a}.${c} <${s}.${+a+1}.0-0`,St("tilde return",l),l})},"replaceTilde"),UAe=o((e,t)=>e.trim().split(/\s+/).map(n=>OAe(n,t)).join(" "),"replaceCarets"),OAe=o((e,t)=>{St("caret",e,t);let n=t.loose?Un[fn.CARETLOOSE]:Un[fn.CARET],i=t.includePrerelease?"-0":"";return e.replace(n,(r,s,a,c,u)=>{St("caret",e,r,s,a,c,u);let l;return Yt(s)?l="":Yt(a)?l=`>=${s}.0.0${i} <${+s+1}.0.0-0`:Yt(c)?s==="0"?l=`>=${s}.${a}.0${i} <${s}.${+a+1}.0-0`:l=`>=${s}.${a}.0${i} <${+s+1}.0.0-0`:u?(St("replaceCaret pr",u),s==="0"?a==="0"?l=`>=${s}.${a}.${c}-${u} <${s}.${a}.${+c+1}-0`:l=`>=${s}.${a}.${c}-${u} <${s}.${+a+1}.0-0`:l=`>=${s}.${a}.${c}-${u} <${+s+1}.0.0-0`):(St("no pr"),s==="0"?a==="0"?l=`>=${s}.${a}.${c} <${s}.${a}.${+c+1}-0`:l=`>=${s}.${a}.${c} <${s}.${+a+1}.0-0`:l=`>=${s}.${a}.${c} <${+s+1}.0.0-0`),St("caret return",l),l})},"replaceCaret"),MAe=o((e,t)=>(St("replaceXRanges",e,t),e.split(/\s+/).map(n=>LAe(n,t)).join(" ")),"replaceXRanges"),LAe=o((e,t)=>{e=e.trim();let n=t.loose?Un[fn.XRANGELOOSE]:Un[fn.XRANGE];return e.replace(n,(i,r,s,a,c,u)=>{if(St("xRange",e,i,r,s,a,c,u),NAe(s,a,c))return e;let l=Yt(s),p=l||Yt(a),f=p||Yt(c),g=f;return r==="="&&g&&(r=""),u=t.includePrerelease?"-0":"",l?r===">"||r==="<"?i="<0.0.0-0":i="*":r&&g?(p&&(a=0),c=0,r===">"?(r=">=",p?(s=+s+1,a=0,c=0):(a=+a+1,c=0)):r==="<="&&(r="<",p?s=+s+1:a=+a+1),r==="<"&&(u="-0"),i=`${r+s}.${a}.${c}${u}`):p?i=`>=${s}.0.0${u} <${+s+1}.0.0-0`:f&&(i=`>=${s}.${a}.0${u} <${s}.${+a+1}.0-0`),St("xRange return",i),i})},"replaceXRange"),jAe=o((e,t)=>(St("replaceStars",e,t),e.trim().replace(Un[fn.STAR],"")),"replaceStars"),GAe=o((e,t)=>(St("replaceGTE0",e,t),e.trim().replace(Un[t.includePrerelease?fn.GTE0PRE:fn.GTE0],"")),"replaceGTE0"),VAe=o(e=>(t,n,i,r,s,a,c,u,l,p,f,g)=>(Yt(i)?n="":Yt(r)?n=`>=${i}.0.0${e?"-0":""}`:Yt(s)?n=`>=${i}.${r}.0${e?"-0":""}`:a?n=`>=${n}`:n=`>=${n}${e?"-0":""}`,Yt(l)?u="":Yt(p)?u=`<${+l+1}.0.0-0`:Yt(f)?u=`<${l}.${+p+1}.0-0`:g?u=`<=${l}.${p}.${f}-${g}`:e?u=`<${l}.${p}.${+f+1}-0`:u=`<=${u}`,`${n} ${u}`.trim()),"hyphenReplace"),zAe=o((e,t,n)=>{for(let i=0;i<e.length;i++)if(!e[i].test(t))return!1;if(t.prerelease.length&&!n.includePrerelease){for(let i=0;i<e.length;i++)if(St(e[i].semver),e[i].semver!==N0.ANY&&e[i].semver.prerelease.length>0){let r=e[i].semver;if(r.major===t.major&&r.minor===t.minor&&r.patch===t.patch)return!0}return!1}return!0},"testSet")});var Uf=$((oFe,yJ)=>{"use strict";var Of=Symbol("SemVer ANY"),U0=class e{static{o(this,"Comparator")}static get ANY(){return Of}constructor(t,n){if(n=fJ(n),t instanceof e){if(t.loose===!!n.loose)return t;t=t.value}t=t.trim().split(/\s+/).join(" "),F0("comparator",t,n),this.options=n,this.loose=!!n.loose,this.parse(t),this.semver===Of?this.value="":this.value=this.operator+this.semver.version,F0("comp",this)}parse(t){let n=this.options.loose?AJ[gJ.COMPARATORLOOSE]:AJ[gJ.COMPARATOR],i=t.match(n);if(!i)throw new TypeError(`Invalid comparator: ${t}`);this.operator=i[1]!==void 0?i[1]:"",this.operator==="="&&(this.operator=""),i[2]?this.semver=new hJ(i[2],this.options.loose):this.semver=Of}toString(){return this.value}test(t){if(F0("Comparator.test",t,this.options.loose),this.semver===Of||t===Of)return!0;if(typeof t=="string")try{t=new hJ(t,this.options)}catch{return!1}return P0(t,this.operator,this.semver,this.options)}intersects(t,n){if(!(t instanceof e))throw new TypeError("a Comparator is required");return this.operator===""?this.value===""?!0:new mJ(t.value,n).test(this.value):t.operator===""?t.value===""?!0:new mJ(this.value,n).test(t.semver):(n=fJ(n),n.includePrerelease&&(this.value==="<0.0.0-0"||t.value==="<0.0.0-0")||!n.includePrerelease&&(this.value.startsWith("<0.0.0")||t.value.startsWith("<0.0.0"))?!1:!!(this.operator.startsWith(">")&&t.operator.startsWith(">")||this.operator.startsWith("<")&&t.operator.startsWith("<")||this.semver.version===t.semver.version&&this.operator.includes("=")&&t.operator.includes("=")||P0(this.semver,"<",t.semver,n)&&this.operator.startsWith(">")&&t.operator.startsWith("<")||P0(this.semver,">",t.semver,n)&&this.operator.startsWith("<")&&t.operator.startsWith(">")))}};yJ.exports=U0;var fJ=SE(),{safeRe:AJ,t:gJ}=ml(),P0=T0(),F0=Pf(),hJ=pn(),mJ=jr()});var Mf=$((cFe,EJ)=>{"use strict";var qAe=jr(),JAe=o((e,t,n)=>{try{t=new qAe(t,n)}catch{return!1}return t.test(e)},"satisfies");EJ.exports=JAe});var vJ=$((lFe,IJ)=>{"use strict";var HAe=jr(),YAe=o((e,t)=>new HAe(e,t).set.map(n=>n.map(i=>i.value).join(" ").trim().split(" ")),"toComparators");IJ.exports=YAe});var wJ=$((pFe,bJ)=>{"use strict";var WAe=pn(),ZAe=jr(),KAe=o((e,t,n)=>{let i=null,r=null,s=null;try{s=new ZAe(t,n)}catch{return null}return e.forEach(a=>{s.test(a)&&(!i||r.compare(a)===-1)&&(i=a,r=new WAe(i,n))}),i},"maxSatisfying");bJ.exports=KAe});var SJ=$((AFe,CJ)=>{"use strict";var XAe=pn(),ege=jr(),tge=o((e,t,n)=>{let i=null,r=null,s=null;try{s=new ege(t,n)}catch{return null}return e.forEach(a=>{s.test(a)&&(!i||r.compare(a)===1)&&(i=a,r=new XAe(i,n))}),i},"minSatisfying");CJ.exports=tge});var RJ=$((hFe,BJ)=>{"use strict";var O0=pn(),nge=jr(),kJ=Ff(),rge=o((e,t)=>{e=new nge(e,t);let n=new O0("0.0.0");if(e.test(n)||(n=new O0("0.0.0-0"),e.test(n)))return n;n=null;for(let i=0;i<e.set.length;++i){let r=e.set[i],s=null;r.forEach(a=>{let c=new O0(a.semver.version);switch(a.operator){case">":c.prerelease.length===0?c.patch++:c.prerelease.push(0),c.raw=c.format();case"":case">=":(!s||kJ(c,s))&&(s=c);break;case"<":case"<=":break;default:throw new Error(`Unexpected operation: ${a.operator}`)}}),s&&(!n||kJ(n,s))&&(n=s)}return n&&e.test(n)?n:null},"minVersion");BJ.exports=rge});var xJ=$((yFe,QJ)=>{"use strict";var ige=jr(),sge=o((e,t)=>{try{return new ige(e,t).range||"*"}catch{return null}},"validRange");QJ.exports=sge});var PE=$((IFe,_J)=>{"use strict";var oge=pn(),DJ=Uf(),{ANY:age}=DJ,cge=jr(),uge=Mf(),$J=Ff(),TJ=$E(),lge=DE(),dge=TE(),pge=o((e,t,n,i)=>{e=new oge(e,i),t=new cge(t,i);let r,s,a,c,u;switch(n){case">":r=$J,s=lge,a=TJ,c=">",u=">=";break;case"<":r=TJ,s=dge,a=$J,c="<",u="<=";break;default:throw new TypeError('Must provide a hilo val of "<" or ">"')}if(uge(e,t,i))return!1;for(let l=0;l<t.set.length;++l){let p=t.set[l],f=null,g=null;if(p.forEach(h=>{h.semver===age&&(h=new DJ(">=0.0.0")),f=f||h,g=g||h,r(h.semver,f.semver,i)?f=h:a(h.semver,g.semver,i)&&(g=h)}),f.operator===c||f.operator===u||(!g.operator||g.operator===c)&&s(e,g.semver))return!1;if(g.operator===u&&a(e,g.semver))return!1}return!0},"outside");_J.exports=pge});var PJ=$((bFe,NJ)=>{"use strict";var fge=PE(),Age=o((e,t,n)=>fge(e,t,">",n),"gtr");NJ.exports=Age});var UJ=$((CFe,FJ)=>{"use strict";var gge=PE(),hge=o((e,t,n)=>gge(e,t,"<",n),"ltr");FJ.exports=hge});var LJ=$((kFe,MJ)=>{"use strict";var OJ=jr(),mge=o((e,t,n)=>(e=new OJ(e,n),t=new OJ(t,n),e.intersects(t,n)),"intersects");MJ.exports=mge});var GJ=$((RFe,jJ)=>{"use strict";var yge=Mf(),Ege=Lr();jJ.exports=(e,t,n)=>{let i=[],r=null,s=null,a=e.sort((p,f)=>Ege(p,f,n));for(let p of a)yge(p,t,n)?(s=p,r||(r=p)):(s&&i.push([r,s]),s=null,r=null);r&&i.push([r,null]);let c=[];for(let[p,f]of i)p===f?c.push(p):!f&&p===a[0]?c.push("*"):f?p===a[0]?c.push(`<=${f}`):c.push(`${p} - ${f}`):c.push(`>=${p}`);let u=c.join(" || "),l=typeof t.raw=="string"?t.raw:String(t);return u.length<l.length?u:t}});var YJ=$((QFe,HJ)=>{"use strict";var VJ=jr(),j0=Uf(),{ANY:M0}=j0,L0=Mf(),G0=Lr(),Ige=o((e,t,n={})=>{if(e===t)return!0;e=new VJ(e,n),t=new VJ(t,n);let i=!1;e:for(let r of e.set){for(let s of t.set){let a=bge(r,s,n);if(i=i||a!==null,a)continue e}if(i)return!1}return!0},"subset"),vge=[new j0(">=0.0.0-0")],zJ=[new j0(">=0.0.0")],bge=o((e,t,n)=>{if(e===t)return!0;if(e.length===1&&e[0].semver===M0){if(t.length===1&&t[0].semver===M0)return!0;n.includePrerelease?e=vge:e=zJ}if(t.length===1&&t[0].semver===M0){if(n.includePrerelease)return!0;t=zJ}let i=new Set,r,s;for(let h of e)h.operator===">"||h.operator===">="?r=qJ(r,h,n):h.operator==="<"||h.operator==="<="?s=JJ(s,h,n):i.add(h.semver);if(i.size>1)return null;let a;if(r&&s){if(a=G0(r.semver,s.semver,n),a>0)return null;if(a===0&&(r.operator!==">="||s.operator!=="<="))return null}for(let h of i){if(r&&!L0(h,String(r),n)||s&&!L0(h,String(s),n))return null;for(let m of t)if(!L0(h,String(m),n))return!1;return!0}let c,u,l,p,f=s&&!n.includePrerelease&&s.semver.prerelease.length?s.semver:!1,g=r&&!n.includePrerelease&&r.semver.prerelease.length?r.semver:!1;f&&f.prerelease.length===1&&s.operator==="<"&&f.prerelease[0]===0&&(f=!1);for(let h of t){if(p=p||h.operator===">"||h.operator===">=",l=l||h.operator==="<"||h.operator==="<=",r){if(g&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===g.major&&h.semver.minor===g.minor&&h.semver.patch===g.patch&&(g=!1),h.operator===">"||h.operator===">="){if(c=qJ(r,h,n),c===h&&c!==r)return!1}else if(r.operator===">="&&!h.test(r.semver))return!1}if(s){if(f&&h.semver.prerelease&&h.semver.prerelease.length&&h.semver.major===f.major&&h.semver.minor===f.minor&&h.semver.patch===f.patch&&(f=!1),h.operator==="<"||h.operator==="<="){if(u=JJ(s,h,n),u===h&&u!==s)return!1}else if(s.operator==="<="&&!h.test(s.semver))return!1}if(!h.operator&&(s||r)&&a!==0)return!1}return!(r&&l&&!s&&a!==0||s&&p&&!r&&a!==0||g||f)},"simpleSubset"),qJ=o((e,t,n)=>{if(!e)return t;let i=G0(e.semver,t.semver,n);return i>0?e:i<0||t.operator===">"&&e.operator===">="?t:e},"higherGT"),JJ=o((e,t,n)=>{if(!e)return t;let i=G0(e.semver,t.semver,n);return i<0?e:i>0||t.operator==="<"&&e.operator==="<="?t:e},"lowerLT");HJ.exports=Ige});var z0=$(($Fe,KJ)=>{"use strict";var V0=ml(),WJ=hl(),wge=pn(),ZJ=B0(),Cge=ko(),Sge=vq(),kge=wq(),Bge=kq(),Rge=Qq(),Qge=$q(),xge=Dq(),$ge=Nq(),Tge=Fq(),Dge=Lr(),_ge=Lq(),Nge=Gq(),Pge=xE(),Fge=Jq(),Uge=Yq(),Oge=Ff(),Mge=$E(),Lge=x0(),jge=$0(),Gge=TE(),Vge=DE(),zge=T0(),qge=iJ(),Jge=oJ(),Hge=Uf(),Yge=jr(),Wge=Mf(),Zge=vJ(),Kge=wJ(),Xge=SJ(),ehe=RJ(),the=xJ(),nhe=PE(),rhe=PJ(),ihe=UJ(),she=LJ(),ohe=GJ(),ahe=YJ();KJ.exports={parse:Cge,valid:Sge,clean:kge,inc:Bge,diff:Rge,major:Qge,minor:xge,patch:$ge,prerelease:Tge,compare:Dge,rcompare:_ge,compareLoose:Nge,compareBuild:Pge,sort:Fge,rsort:Uge,gt:Oge,lt:Mge,eq:Lge,neq:jge,gte:Gge,lte:Vge,cmp:zge,coerce:qge,truncate:Jge,Comparator:Hge,Range:Yge,satisfies:Wge,toComparators:Zge,maxSatisfying:Kge,minSatisfying:Xge,minVersion:ehe,validRange:the,outside:nhe,gtr:rhe,ltr:ihe,intersects:she,simplifyRange:ohe,subset:ahe,SemVer:wge,re:V0.re,src:V0.src,tokens:V0.t,SEMVER_SPEC_VERSION:WJ.SEMVER_SPEC_VERSION,RELEASE_TYPES:WJ.RELEASE_TYPES,compareIdentifiers:ZJ.compareIdentifiers,rcompareIdentifiers:ZJ.rcompareIdentifiers}});var wIe={};Vr(wIe,{AppRefusal:()=>li,AppUnreachable:()=>Gi,AttemptEndReason:()=>Ap,DeliveryStatus:()=>rm,GitHubWriteKind:()=>am,NoReportCause:()=>gp,SourceProvider:()=>Ra,TARGET_ENVIRONMENT_KEYS:()=>d2,V3Attempt:()=>gA,ValidationSufficiency:()=>Qi,closedV3Attempt:()=>fW,currentV3PersistenceDecision:()=>hW,endV3Attempt:()=>mW,fetchV3PersistentDataPolicy:()=>VT,heartbeatV3Attempt:()=>GT,startV3Attempt:()=>pW,uploadV3Report:()=>gW});module.exports=wW(wIe);var qT="testbot.deliverFrom";var CW=/^Testbot: merge (?:PR #(\d+)|branch (.+))$/;function JT(e,t,n){return e(["log","--merges","--first-parent","--reverse","--format=%H%x09%s",`${t}..${n}`]).split(`
51
- `).filter(Boolean).flatMap(i=>{let[r,s]=i.split(" "),a=CW.exec(s??"");if(!a)return[];let c=new Set(e(["diff","--name-only","-z",`${r}^1`,r]).split("\0").filter(Boolean));return[{...a[1]?{pullRequest:a[1]}:{branch:a[2]},files:c}]})}o(JT,"checkoutMerges");var Pl=require("child_process");var ue=re(require("fs")),ZT=require("crypto"),me=re(require("path"));var CA=re(require("fs")),YT=re(require("path"));var SW=/[;|`$<>(){}\n\r]|(?<!&)&(?!&)|\|\|/,kW=/`|\$[\w{(@*#?!$-]|\\[$`"\\\n]/;function BW(e){let t="";for(let i=0;i<e.length;){let r=e[i];if(r==="\\"&&(e[i+1]==='"'||e[i+1]==="'"))return{syntax:"a backslash before a quote",quoted:!1};if(r!=='"'&&r!=="'"){t+=r,i++;continue}let s=e.indexOf(r,i+1);if(s<0)return;let a=r==='"'?kW.exec(e.slice(i+1,s+(e[s-1]==="\\"?1:0))):null;if(a)return{syntax:`${HT(a[0])} inside double quotes`,quoted:!0};t+=" ",i=s+1}let n=SW.exec(t);return n?{syntax:HT(n[0]),quoted:!1}:void 0}o(BW,"shellSyntax");var HT=o(e=>e==="`"?"a backtick":/[\n\r]/.test(e)?"a line break":`\`${e}\``,"shown");function cc(e){let t=(e??"").trim();if(!t)return{kind:"empty",reason:"the command is empty"};let n=BW(t);if(n)return{kind:"shell-syntax",reason:`it uses shell syntax (${n.syntax}), and this is re-executed WITHOUT a shell so the recorded string cannot be interpreted \u2014 put the logic in a script and record the script invocation instead, or put an argument that holds such characters in ${n.quoted?"single quotes":"quotes"}`};let i=[],r=[],s="",a,c=!1,u=o(()=>{(s||c)&&r.push(s),s="",c=!1},"endToken"),l=o(()=>{u(),r.length>0&&i.push(r),r=[]},"endStep");for(let f=0;f<t.length;f++){let g=t[f];if(a){g===a?a=void 0:s+=g;continue}if(g==='"'||g==="'"){a=g,c=!0;continue}if(g==="&"&&t[f+1]==="&"){l(),f+=1;continue}if(/\s/.test(g)){u();continue}s+=g}if(a)return{kind:"unterminated-quote",reason:"it has an unterminated quote"};if(l(),i.length===0)return{kind:"empty",reason:"the command is empty"};if(i.some(f=>f.length===0))return{kind:"empty-step",reason:"it has an empty step between && operators"};let p=i.find(f=>["cd","export","source","."].includes(f[0]));return p?{kind:"builtin",reason:`it runs the shell builtin "${p[0]}", which cannot be executed as a program \u2014 record a script that does this instead`}:{argv:i[0],steps:i}}o(cc,"parseCommand");function gI(e,t,n){let i=(e??"").trim(),{steps:r,kind:s}=cc(i);if(!r&&!(s!=="shell-syntax"&&s!=="builtin")){try{CA.mkdirSync(YT.dirname(t),{recursive:!0}),CA.writeFileSync(t,`#!/usr/bin/env bash
51
+ `).filter(Boolean).flatMap(i=>{let[r,s]=i.split(" "),a=CW.exec(s??"");if(!a)return[];let c=new Set(e(["diff","--name-only","-z",`${r}^1`,r]).split("\0").filter(Boolean));return[{...a[1]?{pullRequest:a[1]}:{branch:a[2]},files:c}]})}o(JT,"checkoutMerges");var Pl=require("child_process");var le=re(require("fs")),ZT=require("crypto"),me=re(require("path"));var CA=re(require("fs")),YT=re(require("path"));var SW=/[;|`$<>(){}\n\r]|(?<!&)&(?!&)|\|\|/,kW=/`|\$[\w{(@*#?!$-]|\\[$`"\\\n]/;function BW(e){let t="";for(let i=0;i<e.length;){let r=e[i];if(r==="\\"&&(e[i+1]==='"'||e[i+1]==="'"))return{syntax:"a backslash before a quote",quoted:!1};if(r!=='"'&&r!=="'"){t+=r,i++;continue}let s=e.indexOf(r,i+1);if(s<0)return;let a=r==='"'?kW.exec(e.slice(i+1,s+(e[s-1]==="\\"?1:0))):null;if(a)return{syntax:`${HT(a[0])} inside double quotes`,quoted:!0};t+=" ",i=s+1}let n=SW.exec(t);return n?{syntax:HT(n[0]),quoted:!1}:void 0}o(BW,"shellSyntax");var HT=o(e=>e==="`"?"a backtick":/[\n\r]/.test(e)?"a line break":`\`${e}\``,"shown");function cc(e){let t=(e??"").trim();if(!t)return{kind:"empty",reason:"the command is empty"};let n=BW(t);if(n)return{kind:"shell-syntax",reason:`it uses shell syntax (${n.syntax}), and this is re-executed WITHOUT a shell so the recorded string cannot be interpreted \u2014 put the logic in a script and record the script invocation instead, or put an argument that holds such characters in ${n.quoted?"single quotes":"quotes"}`};let i=[],r=[],s="",a,c=!1,u=o(()=>{(s||c)&&r.push(s),s="",c=!1},"endToken"),l=o(()=>{u(),r.length>0&&i.push(r),r=[]},"endStep");for(let f=0;f<t.length;f++){let g=t[f];if(a){g===a?a=void 0:s+=g;continue}if(g==='"'||g==="'"){a=g,c=!0;continue}if(g==="&"&&t[f+1]==="&"){l(),f+=1;continue}if(/\s/.test(g)){u();continue}s+=g}if(a)return{kind:"unterminated-quote",reason:"it has an unterminated quote"};if(l(),i.length===0)return{kind:"empty",reason:"the command is empty"};if(i.some(f=>f.length===0))return{kind:"empty-step",reason:"it has an empty step between && operators"};let p=i.find(f=>["cd","export","source","."].includes(f[0]));return p?{kind:"builtin",reason:`it runs the shell builtin "${p[0]}", which cannot be executed as a program \u2014 record a script that does this instead`}:{argv:i[0],steps:i}}o(cc,"parseCommand");function gI(e,t,n){let i=(e??"").trim(),{steps:r,kind:s}=cc(i);if(!r&&!(s!=="shell-syntax"&&s!=="builtin")){try{CA.mkdirSync(YT.dirname(t),{recursive:!0}),CA.writeFileSync(t,`#!/usr/bin/env bash
52
52
  # Written by ${n}: the recorded command, which needed a shell to run.
53
53
  set -euo pipefail
54
54
  ${i}
55
- `,{mode:493})}catch{return}return`bash ${SA(t)}`}}o(gI,"scriptedCommand");function SA(e){return`'${e.split("'").join("'\\''")}'`}o(SA,"shQuote");var hI="data-safety-isolation.json";var lc=new Map,WT=new Map;function Dl(e){let t=ue.openSync(e,"r"),n=Buffer.alloc(4);try{if(ue.readSync(t,n,0,4,0)!==4)return!1}finally{ue.closeSync(t)}let i=n.readUInt32BE(0);return i===2135247942||[4277009102,4277009103,3405691582,3405691583,3472551422,3489328638,3199925962,3216703178].includes(i)}o(Dl,"isNativeExecutable");function mI(e,t){e.protectedPaths?.includes(t)||(e.protectedPaths??=[]).push(t)}o(mI,"retainPath");function BA(e){let t=e.map(i=>{try{return ue.realpathSync(i)}catch{return me.resolve(i)}}),n=process.versions.bun?(process.env.PATH??"/usr/bin:/bin").split(me.delimiter).filter(me.isAbsolute).map(i=>me.join(i,"node")):[process.execPath];for(let i of n)try{let r=ue.realpathSync(i);if(ue.accessSync(r,ue.constants.X_OK),di(t,r)||!ue.statSync(r).isFile()||!Dl(r))continue;let s=pc(e[0]);return s&&mI(s,r),r}catch{}throw new Error("an absolute native Node executable outside sandbox-writable locations is required for isolation")}o(BA,"trustedNodeBinary");var yI=/^(NODE_OPTIONS|NODE_PATH|BASH_ENV|BASHOPTS|SHELLOPTS|PS4|PROMPT_COMMAND|BASH_XTRACEFD|BASH_LOADABLES_PATH|ENV|ZDOTDIR|PYTHONPATH|PYTHONHOME|RUBYOPT|PERL5OPT|PERL5LIB|GCONV_PATH|OPENSSL_CONF|OPENSSL_ENGINES|LD_.*|DYLD_.*|BASH_FUNC_.*)$/,RW=/^(BASH_FUNC_.*|PS4|PROMPT_COMMAND)$/;function dc(e,t){let n={...t};n.PATH=e.bootstrapPath??KT(e.roots,process.env.PATH??"/usr/bin:/bin").map(i=>(mI(e,i),i)).join(me.delimiter),e.bootstrapPath=n.PATH,n.HOME=process.env.HOME,n.SHELL="/bin/bash";for(let i of["TMPDIR","TMP","TEMP"])process.env[i]?n[i]=process.env[i]:delete n[i];for(let i of Object.keys(n))yI.test(i)&&delete n[i];return n}o(dc,"bootstrapEnv");function KT(e,t){return t.split(me.delimiter).flatMap(n=>{if(!me.isAbsolute(n))return[];try{let i=ue.realpathSync(n);if(di(e,i)||e.some(r=>uc(i,r)))return[];for(let r of ue.readdirSync(i)){let s=me.join(i,r);try{ue.accessSync(s,ue.constants.X_OK)}catch{continue}if(ue.statSync(s).isFile()&&di(e,ue.realpathSync(s)))return[]}return[i]}catch{return[]}})}o(KT,"trustedPathEntries");var uc=o((e,t)=>t===e||t.startsWith(e+me.sep),"inside");function di(e,t){let n=["/tmp/claude","/private/tmp/claude"].map(i=>{try{return ue.realpathSync(i)}catch{return i}});return[...e,...n].some(i=>uc(i,t))}o(di,"unsafeToolPath");var QW="Testbot could not install it because the Ubuntu package source was unavailable. Run the validation again later",xW=new Set;function _l(e,t,n,i=r=>xt(e,r)){let r=t.includes(me.sep)?[me.resolve(n,t)]:(dc(e,{PATH:process.env.PATH}).PATH??"").split(me.delimiter).map(s=>me.join(s,t));for(let s of r)try{if(ue.accessSync(s,ue.constants.X_OK),ue.statSync(s).isFile())return ue.realpathSync(s)}catch{}throw i(`a trusted executable could not be resolved (${t})${xW.has(t)?`: ${QW}`:""}`)}o(_l,"executableAt");function EI(e,t,n,i=[],r=[]){let s=o(h=>{try{return ue.realpathSync(h)}catch{return me.resolve(h)}},"canonical"),a=s(t),c=[...new Set([a,...r,...[...lc.values()].flatMap(h=>h.roots)].map(s))],u={roots:c,ctx:{outputsDir:a},statusFile:""},l=dc(u,n),p=_l(u,e,a,h=>new Error(`Host transport unavailable: ${h}`));if(di(c,p)||!Dl(p))throw new Error(`Host transport requires a native host executable outside writable run roots (${e})`);let f=[p,...u.protectedPaths??[]];for(let h of i){let m;try{m=ue.realpathSync(h)}catch{throw new Error(`Host transport asset is unavailable (${h})`)}if(di(c,m)||!ue.statSync(m).isFile())throw new Error(`Host transport asset must be a file outside writable run roots (${h})`);f.push(m)}let g=WT.get(a)??new Set;f.forEach(h=>g.add(h)),WT.set(a,g);for(let h of lc.values())f.forEach(m=>mI(h,m));return{executable:p,env:l}}o(EI,"nativeHostTool");function XT(e,t){let n=e.bootstrapExecutables?.get(t);if(n)return n;let i=_l(e,t,e.roots[0]);return vI(e.roots[0],[{command:i}],[],[],!0),(e.bootstrapExecutables??=new Map).set(t,i),i}o(XT,"bootstrapExecutable");function II(e,t){let n=pc(e);return n?{executable:XT(n,t),env:dc(n,{PATH:process.env.PATH,HOME:process.env.HOME})}:{executable:t,env:process.env}}o(II,"bootstrapTool");function pc(e){let t=me.resolve(e);try{t=ue.realpathSync(e)}catch{}let n=[...lc.values()],i=n.find(r=>r.roots.some(s=>uc(s,t)));if(i)return i;if(n.length===1)return n[0];if(n.length>1)throw xt(n[0],"a command outside the run roots has no unambiguous safety boundary")}o(pc,"forCwd");function eD(e){return`Shared-environment isolation unavailable: ${e}`}o(eD,"isolationUnavailableText");var kA=class extends Error{constructor(n){super(eD(n));this.detail=n;this.name="IsolationUnavailableError"}detail;static{o(this,"IsolationUnavailableError")}};function xt(e,t){return e.failure=t,tD(e.ctx,t),new kA(t)}o(xt,"refusal");function tD(e,t){let n=lc.get(e.outputsDir);n&&(n.incident=t),ue.mkdirSync(e.outputsDir,{recursive:!0});let i=me.join(e.outputsDir,hI),r=`${i}.${(0,ZT.randomUUID)()}.tmp`;ue.writeFileSync(r,JSON.stringify({reason:"isolation_unavailable",detail:t,actionRequired:!0},null,2),{mode:384,flag:"wx"}),ue.renameSync(r,i)}o(tD,"recordIsolationFailure");function vI(e,t,n=[],i=[],r=!1){let s=pc(e);if(!s)return t.map(h=>({command:h.command,args:[...h.args??[]]}));let a=o(h=>{s.protectedPaths?.includes(h)||(s.protectedPaths??=[]).push(h)},"retain"),c=new Set,u=new Set,l=o(h=>{try{return ue.realpathSync(h)}catch{throw xt(s,`unresolved tool asset: ${h}`)}},"realAsset"),p=o(h=>{let m=l(h);if(di(s.roots,m)||s.roots.some(I=>uc(m,I)))throw xt(s,"a configured tool package or dependency is installed in a sandbox-writable location");a(m);let E=o(I=>{if(!c.has(I)){c.add(I);for(let v of ue.readdirSync(I,{withFileTypes:!0})){let b=me.join(I,v.name);if(v.isSymbolicLink()){let w=l(b);if(di(s.roots,w))throw xt(s,"a configured tool dependency is installed in a sandbox-writable location");ue.statSync(w).isDirectory()?p(w):f(w)}else v.isDirectory()&&E(b)}}},"visit");E(m)},"protectDirectory"),f=o((h,m=!1,E=!1)=>{let I=l(h);if(di(s.roots,I))throw xt(s,"a configured tool executable or package is installed in a sandbox-writable location");if(a(I),!m&&u.has(I))return;u.add(I);let v,b=ue.openSync(I,"r"),w=Buffer.alloc(256);try{ue.readSync(b,w,0,w.length,0)}finally{ue.closeSync(b)}if(m){let Q=w.toString().split(/\r?\n/,1)[0];if(Q.startsWith("#!")){let C=Q.slice(2).trim().split(/\s+/),T=C[0];if(me.basename(T)==="env"){let oe=_l(s,T,e);if(di(s.roots,oe)||!Dl(oe))throw xt(s,`unsafe shebang launcher: ${T}`);a(oe),C.shift(),C[0]==="-S"&&C.shift()}let k=ue.statSync(I),Z=r&&(uc("/usr/bin",I)||uc("/bin",I))&&k.uid===0&&(k.mode&18)===0&&/^(?:sh|bash)$/.test(me.basename(C[0]));if(C.length!==1||!/^(?:node|nodejs|bun)$/.test(me.basename(C[0]))&&!Z)throw xt(s,"unsupported tool launcher: use a native executable or a plain Node/Bun script without interpreter flags");if(v=_l(s,C[0],e),di(s.roots,v)||!Dl(v))throw xt(s,`unsafe shebang interpreter: ${C[0]}`);a(v)}else if(!Dl(I))throw xt(s,"unsupported tool launcher: use a native executable or a plain Node/Bun script")}if(E||/\.[cm]?[jt]s$/.test(I)||/^#![^\n]*(?:node|nodejs|bun)\b/.test(w.toString())){let Q=me.dirname(I);for(let C=Q;;C=me.dirname(C)){if(ue.existsSync(me.join(C,"package.json"))){Q=C;break}if(me.dirname(C)===C)break}p(Q);for(let C=Q;;C=me.dirname(C)){let T=me.join(C,"node_modules");if(ue.existsSync(T)&&ue.statSync(T).isDirectory()&&p(T),me.basename(C)==="node_modules"&&p(C),me.dirname(C)===C)break}}return v},"check"),g=[];for(let h of t){let m=_l(s,h.command,e),E=f(m,!0),I=me.basename(ue.realpathSync(m));if(!r&&/^(?:sh|bash|dash|zsh|ksh|fish|csh|tcsh|python[\d.]*|pypy[\d.]*|perl[\d.]*|ruby[\d.]*|php[\d.]*|lua[\d.]*|java|deno|uv|uvx|pipx|poetry|pdm|Rscript|pwsh|powershell|env|xargs|nohup|nice|stdbuf|timeout)$/.test(I))throw xt(s,"unsupported tool launcher: dynamic interpreters and forwarding wrappers cannot retain their executable dependencies");if(!r&&/^(?:npm-cli|npx-cli)\.js$/.test(I)&&h.args?.length)throw xt(s,"unsupported tool launcher: dynamic package commands cannot retain their executable dependencies");let v;if(!r&&/^(?:node|nodejs|bun)$/.test(I)){let b=h.args??[],w=b[0]==="--"||I==="bun"&&b[0]==="run"?b[1]:b[0];if(!w||w.startsWith("-")||!ue.existsSync(me.resolve(e,w))||!ue.statSync(me.resolve(e,w)).isFile())throw xt(s,"unsupported tool launcher: Node/Bun tools require a script file entry without eval, module or preload flags");v=me.resolve(e,w)}g.push(E&&!r?{command:E,args:[m,...h.args??[]]}:{command:m,args:[...h.args??[]]});for(let b of h.args??[]){let w=me.resolve(e,b);!b.startsWith("-")&&ue.existsSync(w)&&ue.statSync(w).isFile()&&f(w,!1,w===v)}}for(let h of n)f(h);for(let h of i){let m=l(h);p(m);let E=o(w=>{f(w);try{return JSON.parse(ue.readFileSync(w,"utf8"))}catch{throw xt(s,`the plugin configuration could not be read: ${w}`)}},"readJson"),I=o(w=>{if(!w||typeof w!="object")return;if(Array.isArray(w)){w.forEach(I);return}let Q=w;if(Q.type==="command"){if(typeof Q.command!="string")throw xt(s,"the plugin command hook has no literal command");let C=cc(Q.command.replace(/\$\{CLAUDE_PLUGIN_ROOT\}/g,m));if(!C.steps)throw xt(s,"the plugin command hook needs a literal native/Node command whose assets can be retained");for(let T of C.steps)vI(e,[{command:T[0],args:T.slice(1)}])}Object.values(Q).forEach(I)},"hooks"),v=me.join(m,".claude-plugin/plugin.json");if(ue.existsSync(v)){let w=E(v);if(!w||typeof w!="object"||Array.isArray(w))throw xt(s,"the plugin manifest is not an object");let Q=w;if(Q.mcpServers)throw xt(s,"declare plugin MCP servers through the run's validated MCP configuration");let C=o(T=>{typeof T=="string"?I(E(me.resolve(m,T))):Array.isArray(T)?T.forEach(C):I(T)},"hookDocuments");C(Q.hooks)}let b=me.join(m,"hooks/hooks.json");if(ue.existsSync(b)&&I(E(b)),ue.existsSync(me.join(m,".mcp.json")))throw xt(s,"declare plugin MCP servers through the run's validated MCP configuration")}return g}o(vI,"assertToolAssetsSafe");function ks(e,t,n,i="data-safety-proxy"){let r=pc(t);if(!r)return{argv:[...e],env:n};let s=i==="open"?r.openSettings:r.settings;if(r.failure||!r.cli||!r.node||!s||!r.env)throw xt(r,r.failure??"the run boundary has not finished initialization");if(!ue.existsSync(r.cli)||!ue.existsSync(s)||!ue.existsSync(r.node))throw xt(r,"the pinned sandbox runtime or its configuration is unavailable");try{if(JSON.parse(ue.readFileSync(r.statusFile,"utf8")).notRun)throw new Error("the guarded proxy is unavailable")}catch{throw xt(r,"the guarded proxy is unavailable")}let a=i==="open",c=a?{...n,PATH:KT(r.roots,n.PATH??"").join(me.delimiter)}:n,u=dc(r,a?{...c}:{...c,...r.env}),l=Object.keys(c).filter(p=>(["PATH","HOME","SHELL"].includes(p)||yI.test(p)&&!RW.test(p))&&c[p]!==void 0).map(p=>`${p}=${c[p]}`);return{argv:[r.node,r.cli,"--settings",s,"--","/usr/bin/env",...l,...$W(r),...a?["NODE_USE_ENV_PROXY=1",...r.openTrust?["SSL_CERT_FILE","REQUESTS_CA_BUNDLE","CURL_CA_BUNDLE"].map(p=>`${p}=${r.openTrust}`):[]]:[],...e],env:u}}o(ks,"protectedCommand");function $W(e){let t=e.noProxy??"";return[`NO_PROXY=${t}`,`no_proxy=${t}`,...e.tmp?[...["TMPDIR","TMP","TEMP"].map(n=>`${n}=${e.tmp}`),...TW(e.tmp)]:[]]}o($W,"sandboxCommandEnv");function TW(e){let t=me.join(e,"npm-cache"),n=me.join(e,"pnpm");return[`npm_config_cache=${t}`,`NPM_CONFIG_CACHE=${t}`,`COREPACK_HOME=${me.join(e,"corepack")}`,`PNPM_HOME=${n}`,`pnpm_config_store_dir=${me.join(n,"store")}`,`pnpm_config_cache_dir=${me.join(n,"cache")}`,`pnpm_config_state_dir=${me.join(n,"state")}`,`YARN_GLOBAL_FOLDER=${me.join(e,"yarn")}`]}o(TW,"packageManagerDirs");function Do(e){return!!pc(e)}o(Do,"hasNetworkBoundary");function RA(e,t=process.env){let n=pc(e);return n?dc(n,{...t,...n.env}):t}o(RA,"networkBoundaryEnv");var wr=["-c","core.fsmonitor=false"],DW=new Set(["GH_TOKEN","GITHUB_TOKEN","GH_ENTERPRISE_TOKEN","GITHUB_ENTERPRISE_TOKEN","ACTIONS_RUNTIME_TOKEN","ACTIONS_ID_TOKEN_REQUEST_TOKEN","ACTIONS_ID_TOKEN_REQUEST_URL","SYSTEM_ACCESSTOKEN","SYSTEM_OIDCREQUESTURI","SKYRAMP_MCP_GITHUB_TOKEN","SSH_AUTH_SOCK","GIT_SSH","GIT_SSH_COMMAND","GITHUB_STEP_SUMMARY","SKYRAMP_REPOSITORY_SECRETS","SKYRAMP_REPOSITORY_SECRET_NAMES"]),Nl=new Set(["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","CLAUDE_CODE_OAUTH_TOKEN","AWS_ACCESS_KEY_ID","AWS_SECRET_ACCESS_KEY","AWS_SESSION_TOKEN","AWS_BEARER_TOKEN_BEDROCK","AWS_PROFILE","AWS_WEB_IDENTITY_TOKEN_FILE","AWS_ROLE_ARN","AWS_ROLE_SESSION_NAME","AWS_CONTAINER_CREDENTIALS_FULL_URI","AWS_CONTAINER_CREDENTIALS_RELATIVE_URI","AWS_CONTAINER_AUTHORIZATION_TOKEN","AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE"]);function Lt(e=process.env,t,n="repo-command"){let i={};for(let[r,s]of Object.entries(e))n==="repo-command"&&Nl.has(r)||(i[r]=s);Object.assign(i,t??{});for(let r of Object.keys(i))(DW.has(r)||r.startsWith("INPUT_"))&&delete i[r];return i}o(Lt,"untrustedChildEnv");var rD=require("async_hooks");function nD(e){return(e?.components??[]).filter(t=>!!t.repository)}o(nD,"sharedSutComponents");function QA(e){let t=e.sharedEnvironment;return t?.environmentId&&t.environmentAddress?!0:nD(t).length>0}o(QA,"requiresSharedEnvironmentGuard");var UIe=new rD.AsyncLocalStorage;var iD=["--no-pager","-c","core.hooksPath=/dev/null","-c","core.fsmonitor=false","-c","commit.gpgsign=false","-c","tag.gpgsign=false","-c","core.sshCommand=/usr/bin/false","-c","credential.helper=","-c","core.askPass=/usr/bin/false","-c","core.alternateRefsCommand=","-c","diff.external=","-c","protocol.allow=never","-c","protocol.https.allow=always"],_W="^(filter\\..*\\.(clean|smudge|process)|merge\\..*\\.driver|diff\\..*\\.(command|textconv))$";function NW(e){let t={...e,GIT_ALLOW_PROTOCOL:"https",GIT_TERMINAL_PROMPT:"0",GIT_ASKPASS:"/usr/bin/false",GIT_EDITOR:"/usr/bin/true",GIT_SEQUENCE_EDITOR:"/usr/bin/true"};for(let n of["GIT_CONFIG","GIT_CONFIG_PARAMETERS","GIT_EXEC_PATH","GIT_EXTERNAL_DIFF","GIT_SSH","GIT_SSH_COMMAND","GIT_SSH_VARIANT","GIT_PROXY_COMMAND","GIT_PAGER"])delete t[n];for(let n of Nl)delete t[n];return t}o(NW,"gitEnv");function PW(e,t){let n=II(e,"git"),i=n.executable,r=RA(e,{...NW(t),PATH:n.env.PATH}),s=ks([i,...iD,"config","--null","--name-only","--get-regexp",_W],e,r),a=[];try{a=(0,Pl.execFileSync)(s.argv[0],s.argv.slice(1),{cwd:e,env:s.env,encoding:"utf8",stdio:["ignore","pipe","pipe"],timeout:3e4}).split("\0").filter(Boolean)}catch(u){if(u.status!==1)throw u}if(a.some(u=>u.includes("=")))throw new Error("protected Git cannot safely disable an executable Git configuration key containing '='");let c=a.flatMap(u=>["-c",`${u}=${u.startsWith("merge.")?"false":""}`]);return{binary:i,env:r,config:[...iD,...c]}}o(PW,"gitPolicy");function xA(e,t,n=process.env){if(!Do(t))return{argv:["git",...e],env:n};let i=PW(t,n),r=[...e],s=new Set(["-c","-C","--config-env","--git-dir","--work-tree","--namespace","--super-prefix","--exec-path"]);for(let a=0;a<r.length;a++){if(s.has(r[a])){a++;continue}if(!r[a].startsWith("-")){r[a]==="diff"&&r.splice(a+1,0,"--no-ext-diff","--no-textconv");break}}return ks([i.binary,...i.config,...r],t,i.env)}o(xA,"protectedGitCommand");function jt(e,t){let n=xA(e,t.cwd,t.env??process.env);return(0,Pl.execFileSync)(n.argv[0],n.argv.slice(1),{...t,env:n.env})}o(jt,"execGitSync");function bI(e,t){let n=xA(e,t.cwd,t.env??process.env);return(0,Pl.spawnSync)(n.argv[0],n.argv.slice(1),{...t,env:n.env})}o(bI,"spawnGitSync");var sW=require("node:zlib");uu();var _h=o(e=>`${e} POM call${e===1?"":"s"}`,"calls"),rj=o((e,t)=>e===1?`1 ${t} test`:`${e} ${t} tests`,"tests"),Nh={listSeparator:", ",testRecommendationsImplementedHeader:o((e,t)=>`\u{1F4A1} Test Recommendations Implemented (${e} test${e===1?"":"s"}${t>e?`, ${t} cases`:""})`,"testRecommendationsImplementedHeader"),testTypeCellLabels:{},statusLabels:{},severityLabels:{},reuse:{label:"POM reuse",noPomLayer:"skipped \u2014 no page-object layer detected for this test",reusedAndVerified:o(e=>`${_h(e)} reused and verified`,"reusedAndVerified"),reusedThenVerified:o((e,t)=>`${_h(e)} reused, ${t} of them verified`,"reusedThenVerified"),reused:o(e=>`${_h(e)} reused`,"reused"),verified:o(e=>`${_h(e)} verified`,"verified"),unresolved:o(e=>`${e} not resolvable to POM source (informational, not declines)`,"unresolved"),candidates:o(e=>`${e} candidate POM file${e===1?"":"s"} detected`,"candidates"),verificationPassed:"verification passed",verificationFailed:"\u26A0\uFE0F verification did not pass",keptInline:o(e=>`kept inline: ${e}`,"keptInline"),gate:{"not-mapped":"not mapped","demoted-by-verify":"demoted by verification"}},testMaintenanceHeader:o(e=>`\u2705 Test Maintenance (${e})`,"testMaintenanceHeader"),maintenanceTableHeader:"| Test Type | Endpoint | File | Change | Before | After |",testResultsHeader:o(e=>`\u{1F9EA} Test Results (${e})`,"testResultsHeader"),columnVideo:"Video",videoDownloadLink:o(e=>`[\u{1F4F9} download](${e})`,"videoDownloadLink"),videosArtifactFallback:o(e=>`\u{1F4F9} Recorded UI test videos: [download from run artifacts](${e})`,"videosArtifactFallback"),issuesFoundHeader:o(e=>`\u26A0\uFE0F Issues Found (${e})`,"issuesFoundHeader"),configErrorsHeader:"\u2699\uFE0F Configuration Errors",nextStepsHeader:"### \u{1F4A1} Next Steps",caveatsHeader:"### \u26A0\uFE0F What this run could not prove",rows:{passed:o(e=>e?"passed against the running app":"passed","passed"),notRun:o(e=>e?"not run against a live app this run":"not run this run","notRun"),failedBug:o(e=>e?"failed against the running app":"failed","failedBug"),failedTest:o(e=>`failed \u2014 the test is at fault, not the app (${e})`,"failedTest"),executedOf:o((e,t)=>t?` and executed ${e} of them against the running app.`:` and executed ${e} of them.`,"executedOf"),noneExecuted:o(e=>e?"; none were executed against a live app this run.":"; none were executed this run.","noneExecuted"),staleResult:"From a run before this file's last change, not of the delivered test:"},caveats:{deployFailed:"The app could not be started, so nothing here was checked against a running system.",changeBrokeBringup:"This change appears to have broken the app's start-up: it could not run with the PR applied, so nothing was tested against it.",bringupFailed:"The app could not be started this run, for a reason outside this PR \u2014 nothing was tested against a live app.",missingSecret:o(e=>`The app could not be started this run: it needs ${e}, which this run had no value for. Nothing was tested against a live app.`,"missingSecret"),testsNotExecuted:"No test was run against a live app this run \u2014 an un-run suite is not evidence the change works.",findingsNotVerified:o(e=>`No test result confirms or refutes the suspected defects at ${e}.`,"findingsNotVerified"),failedAlone:o(e=>`These tests passed in the session but failed when Testbot ran them alone, so their results are not final: ${e}.`,"failedAlone"),missingCaseResults:o((e,t)=>{let n=t?` Latest run: ${t}`:"";return`No final result was recorded for written cases: ${e}.${n}`},"missingCaseResults"),recipeDrift:"The recorded way to start the app was out of date and had to be corrected before it would come up.",recipeNotSaved:"The repository had no saved way to start the app, so Testbot worked it out from the repository.",mockedDependency:o(e=>`${e} was mocked rather than really deployed \u2014 a green run against it is not proof.`,"mockedDependency"),finalizeNotReady:o(e=>`The tests are not ready to merge as they stand${e?`: ${e}`:"."}`,"finalizeNotReady"),ciNotCovered:"No CI workflow runs these tests, so they will not execute on future pull requests.",ciNotCoveredBecause:o(e=>`The repo's CI will not run some of these tests on future pull requests: ${e}`,"ciNotCoveredBecause"),ciUnconfirmed:o(e=>`Testbot could not confirm that the repo's CI collects ${e}: check that CI runs them.`,"ciUnconfirmed"),ciUnconfirmedAbsent:o(e=>`Testbot could not confirm that the repo's CI leaves out ${e}, which need services it does not start: check that CI does not run them.`,"ciUnconfirmedAbsent"),ciNotIntegrated:o(e=>`Not yet CI-integrated: ${e} need services the repo's CI does not start, so Testbot put them where CI does not run them. The CI notes say what to change to run them in CI.`,"ciNotIntegrated"),ciUnprovisioned:o(e=>`The repo's CI runs ${e} without starting what they need, so CI will fail on them until it starts those services.`,"ciUnprovisioned"),ciWithheld:o(e=>`Not in the tests PR: the repo's CI would run ${e} without starting what they need, which would fail CI. The CI notes say what to change to run them.`,"ciWithheld"),ciResultsUnread:o(e=>`Testbot could not read the CI results of ${e}, so no CI result there counted as evidence.`,"ciResultsUnread"),browserSuiteReadOnly:o((e,t)=>`${e} has a browser suite, but this run could not write there, so its ui tests are in ${t}.`,"browserSuiteReadOnly"),sutNotRequired:"No app was started: validation triage found no deployed behavior this change needs validated.",lintNotCovered:o(e=>`The repo's linter does not check ${e} \u2014 a style or type issue there would not be caught automatically.`,"lintNotCovered"),lintNotRun:o(e=>`The repo's linter did not check the test files, so they were delivered unlinted: ${e}.`,"lintNotRun"),analysisUnverified:o(e=>`Part of the change analysis could not be verified (${e} unresolved check${e===1?"":"s"}); the tests were planned treating those claims as unconfirmed.`,"analysisUnverified"),unitTestsNotRun:o(e=>`Testbot could not run the unit tests it selected, so no unit result here is its own re-run: ${e}`,"unitTestsNotRun"),componentsNotTested:o(e=>`Not tested: changed parts of the code the plan did not test. ${e}`,"componentsNotTested"),componentsWithoutReason:o(e=>`The plan gave no reason for leaving out: ${e}.`,"componentsWithoutReason"),targetNotesDeviation:o(e=>`Tests were not put where the Target notes say tests go: ${e}`,"targetNotesDeviation"),testSettingsDiffer:o(e=>`Verified under other settings than the repository's own test command uses, so the repository's build may treat these tests differently: ${e}.`,"testSettingsDiffer"),stageSalvaged:o((e,t)=>t.length===1?`The ${e} step kept what it had produced although its ${t[0]} check still failed after a repair, so treat that output as unconfirmed by it.`:`The ${e} step kept what it had produced although ${t.length} of its checks (${t.join(", ")}) still failed after a repair, so treat that output as unconfirmed by them.`,"stageSalvaged"),downstreamNotChecked:o(e=>`Not run: checks of other parts of the app that this change might affect. The change does not alter that behavior itself, so they are not needed to validate it. ${e}`,"downstreamNotChecked"),browserBuildNotDeclared:o((e,t,n)=>`Another browser build stood in for ${t}, the build the Playwright in ${e} declares (it links to another build), so its browser tests' results here may not match its CI. Its CI needs \`${n}\` there.`,"browserBuildNotDeclared"),resultsNotOfDeliveredTests:o(e=>`These test files were changed after their last run, so their results here are from an earlier version, not the delivered tests: ${e}.`,"resultsNotOfDeliveredTests"),videoMissing:o(e=>`No video was recorded for these browser tests, so their results here have no video to watch: ${e}.`,"videoMissing"),testsCouldNotRunHere:o((e,t)=>`${e} ${e===1?"test exists":"tests exist"} in this change, but this environment could not run ${e===1?"it":"them"}, so ${e===1?"it has":"they have"} no result here (not skipped): ${t}`,"testsCouldNotRunHere"),modelProviderDenied:o((e,t=!1)=>t?`${e}, the model provider, refused a call. The evidence already obtained is sufficient to determine this run\u2019s outcome.`:`${e}, the model provider, refused Testbot's calls, so the run stopped before it finished. Access was denied because of credentials, permissions, or a usage limit. For Skyramp-managed provider access, contact Skyramp support before running again; if you manage the provider account, ask its administrator to resolve access or usage limits. No changes to your code are needed.`,"modelProviderDenied"),stageInterruptedByProvider:o((e,t)=>`${t}, the model provider, interrupted the ${e} step. Testbot kept what that step had produced.`,"stageInterruptedByProvider"),planInterruptedByProvider:o((e,t)=>`${e}, the model provider, interrupted planning. Testbot kept the plan it had and reports the test results it obtained.`+(t?" Please try again later.":""),"planInterruptedByProvider"),modelProviderUnavailable:o((e,t=!1)=>t?`${e}, the model provider, was unavailable for a call. The evidence already obtained is sufficient to determine this run\u2019s outcome.`:`${e}, the model provider, was unavailable to Testbot, so this stage could not finish. Any results already obtained remain in this report. No changes to your code or Testbot setup are needed. Please try again later.`,"modelProviderUnavailable"),dataSafetyBrowserClean:"This run used a shared environment. Testbot's browser ran under a data-safety guard, which let it change only the records it created and deleted them afterwards.",dataSafetyNoBrowser:"This run used a shared environment. Testbot did not use its browser.",dataSafetyInvalidConfig:"The shared environment's data-safety configuration is invalid: see the gaps.",dataSafetyGuardCheckFailed:"Testbot could not verify the browser data-safety guard: see the gaps.",dataSafetyGuardUnconfirmed:"This run used a shared environment. Testbot used its browser, but the data-safety guard could not be confirmed active: see the gaps.",dataSafetyBrowserLeftovers:"This run used a shared environment. Testbot's browser ran under a data-safety guard, which let it change only the records it created, but not every record it created was deleted: see the gaps.",dataSafetyBrowserWithheld:"This run used a shared environment. Testbot did not use its browser: the Skyramp MCP server has no data-safety guard.",dataSafetyPlanOnly:"This run produced a plan for a shared environment. No runtime probes or tests were requested.",dataSafetyOffLimitsRulesOnly:"Off-limits requests from probes and executed tests are restricted by instruction only. Testbot does not enforce those requests.",dataSafetyAuthCreates:o(e=>`The agent's browser sent sign-in or sign-up requests: ${e}. The data-safety guard lets these through and does not delete what they create, for example a new account.`,"dataSafetyAuthCreates"),dataSafetyProxyOffLimitsRulesOnly:"Off-limits requests from the unguarded clients listed above are restricted by instruction only. Testbot does not enforce those requests.",dataSafetyRulesOnly:"For probes and tests outside the guarded browser, cleanup is required by instruction only.",dataSafetyProxy:o((e,t)=>`The ${e} went through Testbot's data-safety proxy. Not guarded, and held to deleting what they create by instruction only: ${t}.`,"dataSafetyProxy"),dataSafetyIsolationEnforced:o(()=>"Probe and test commands could reach the shared environment only through Testbot's data-safety guard.","dataSafetyIsolationEnforced"),dataSafetyIsolationRefused:"Some checks could not run with the shared-environment protection in place. Testbot did not run them without it.",dataSafetyProxyAuthCreates:o(e=>`The plan probes or the tests sent sign-in or sign-up requests: ${e}. The data-safety proxy lets these through and does not track what they create, for example a new account.`,"dataSafetyProxyAuthCreates"),dataSafetyGuardedProbes:"plan probes",dataSafetyGuardedTests:"test runs",dataSafetyAnd:" and ",dataSafetyCleanupConfirmed:"Testbot ran each test's declared cleanup, and each succeeded.",dataSafetyLeftRecords:o(e=>`These tests declare records they cannot delete from the shared environment: ${e}.`,"dataSafetyLeftRecords"),dataSafetyCleanupFailed:o(e=>`The cleanup of ${e} failed: what they created may still be in the shared environment.`,"dataSafetyCleanupFailed"),dataSafetyCleanupUnknown:o(e=>`The cleanup of ${e} is not known: Testbot did not check their cleanup.`,"dataSafetyCleanupUnknown")},isolationReport:{rationale:"Testbot could not run this validation inside the shared-environment isolation it requires, so it did not validate the change.",gap:o(e=>`Shared-environment isolation unavailable: ${e}`,"gap"),nextStep:"Fix what the gap names, then run the validation again.",nextStepPackageSource:"Run the validation again later, when the Ubuntu package source is available again. Nothing on this host or in the repository needs a change."},nextSteps:{componentMismatch:o((e,t,n,i)=>`${e} (${t}) in the Test Environment runs ${n}, which does not contain ${i}, the commit this run validates.`,"componentMismatch"),componentUnverified:o((e,t,n,i)=>`Testbot could not confirm that ${e} (${t}) in the Test Environment runs ${i}, the commit this run validates: it reports ${n}.`,"componentUnverified"),componentUnread:o((e,t,n)=>`Testbot could not confirm that ${e} (${t}) in the Test Environment runs ${n}, the commit this run validates: it has no record of which commit that component runs.`,"componentUnread"),deployCommit:o((e,t)=>`Deploy ${t} of ${e} to the Test Environment and run Testbot again: until it runs that commit, tests there do not validate this change.`,"deployCommit"),addSecret:o((e,t)=>`Add ${t?"a secret":"secrets"} named ${e} on the workflow host, as a GitHub Actions secret or, on Azure DevOps, a secret variable in the host repository's skyramp-testbot variable group under Pipelines \u203A Library. Then add ${t?"it":"them"} under Credentials on the Target's Setup page, and run Testbot again: a run's workflow passes Testbot only the Target's credentials, each from the workflow host's secret it is mapped to, and the app cannot start without ${t?"it":"them"}. Testbot does not make up a value.`,"addSecret")},providerOutageHeadline:o((e,t)=>`Testbot could not reach ${e} \u2014 it tried ${t} times without success.`,"providerOutageHeadline"),providerOutageActionStatusPage:o(e=>`Check ${e}. Once the service is healthy, re-run this workflow from its run page in the Actions tab.`,"providerOutageActionStatusPage"),providerRateLimitHeadline:o(e=>`Testbot was rate-limited by ${e} (HTTP 429).`,"providerRateLimitHeadline"),providerRateLimitAction:"Wait for the limit to reset, then re-run this workflow from its run page in the Actions tab. If this repeats, raise the rate limit on the credential this workflow uses or run Testbot on fewer pull requests at once.",providerUsageLimitHeadline:o(e=>`The account behind ${e} has reached its usage limit.`,"providerUsageLimitHeadline"),providerUsageLimitAction:"Raise the spend or token cap on the account behind this workflow's credential, then re-run this workflow from its run page in the Actions tab.",providerAuthExpiredHeadline:o(e=>`The credential Testbot uses to reach ${e} expired while the run was still working.`,"providerAuthExpiredHeadline"),providerAuthExpiredAction:"The credential is issued with a fixed lifetime, so a longer run can outlive it. Re-run this workflow from its run page in the Actions tab. If runs on this repository regularly last longer than that lifetime, issue the credential per job or split the run so each job stays inside it.",providerTimeoutHeadline:o(e=>`Testbot ran past its ${e}-minute time limit and was stopped.`,"providerTimeoutHeadline"),providerTimeoutAction:"Raise the `testbotTimeout` input on the workflow if runs on this repository legitimately need longer.",staged:{testsSourcePullRequest:o(e=>`Tests for source pull request ${e}`,"testsSourcePullRequest"),validatedTogether:o(e=>`Pull requests validated together: ${e}`,"validatedTogether"),requestedByPerson:o(e=>`Requested by ${e}`,"requestedByPerson"),requestedByPolicy:o(e=>`Started by the Validation Policy ${e}`,"requestedByPolicy"),notTranslated:{"no-time":"> \u26A0\uFE0F This report is in English: no time was left to translate it.",failed:"> \u26A0\uFE0F This report is in English: the translation failed."},noLiveApp:o(e=>`> \u26A0\uFE0F **No live app (SUT) was available this run** \u2014 the ${e} test(s) below were **not executed** (there was no app to run them against). Run them against a running app to confirm they pass (and that any repro test fails as intended).`,"noLiveApp"),unitTestsInFile:o((e,t,n)=>`**${e}**: ${t} unit test${t===1?"":"s"}${n?` for ${n}`:""}`,"unitTestsInFile"),addedToExistingFile:"added to an existing test file",testPackagesHeader:"### \u{1F4E6} Running these tests",testPackageLine:o((e,t,n="")=>`\`${e}/\` is a self-contained test package Skyramp Testbot owns and maintains, with its own manifest, lockfile and runner config.${n?` This run added it, with ${n}, installed in that package only.`:""} Run it with \`${t}\` while the app is running; to run it on every pull request, add that command to a CI job that has the app running.`,"testPackageLine"),appManifestsUntouched:"The application's own manifests and lockfiles were not changed.",dependencyChangesHeader:"### \u{1F4E6} Changes to the application's dependencies",dependencyChangeLine:o((e,t,n)=>`Added \`${e}\` to \`${t}\` (and its lockfile)${n?`: ${n}`:""}`,"dependencyChangeLine"),testMaintenanceHeader:"\u2705 Test Maintenance",keptNot:"kept, not ",declinedPlanned:"(declined the planned ",declinedMaintenanceHeader:"\u21A9\uFE0F Declined Maintenance",existingEvidenceHeader:"\u2705 Existing Evidence",trustedCheckPassed:o((e,t)=>`Trusted CI check ${e} passed${t?` on ${t}`:""}, establishing:`,"trustedCheckPassed"),testResultsHeader:"\u{1F9EA} Test Results",resultsTableHeader:"| Test ID | Test Type | Endpoint | Status | Details |",unitResultsTableHeader:"| Test ID | Test Type | Code under test | Test | Cases | Status | Details |",casesPassed:o((e,t,n)=>`${e}/${t} passed${n?`, ${n} skipped`:""}`,"casesPassed"),behaviourCoverageHeader:"\u{1F517} Behaviour Coverage",coverageCaption:o((e,t,n,i)=>` (${e} generated \xB7 ${t} modified \xB7 ${n} verified \xB7 ${i} executed)`,"coverageCaption"),coverageTableHeader:"| Behaviour | Source | Tested By | Maintained By |",writtenNotRun:"written, not run",issuesFoundHeader:"\u26A0\uFE0F Issues Found",requirementsHeader:o((e,t)=>`\u{1F4CB} Requirements (${e}/${t} clauses pass)`,"requirementsHeader"),requirementsTableHeader:"| Requirement | Clause | Tests | Result |",requirementsSummaryTableHeader:"| Requirement | Clauses passing | Not passing |",clauseStatuses:{},regressionGuard:" (regression guard)",caveatsHeader:"### \u26A0\uFE0F What This Run Could Not Prove",commentHeader:"### Skyramp Testbot",timedOut:"> \u26A0\uFE0F Run timed out \u2014 the results below are partial.",stopReasons:{},publishFailures:{},commitHook:o(e=>e?`${e} hook`:"commit hook","commitHook"),commitRefusedByHook:o((e,t)=>`Your repository's ${e} rejected the generated-test commit, so no Testbot PR was created. Hook error: \`${t}\`.`,"commitRefusedByHook"),commitHookCouldNotRun:o((e,t)=>`Your repository's ${e} could not run, so no Testbot PR was created: a command it calls is not installed on the runner. Hook error: \`${t}\`.`,"commitHookCouldNotRun"),maintenanceActions:{},stoppedEarly:o((e,t)=>`> \u26A0\uFE0F Run stopped early \u2014 ${e}. The results below are partial.${t}`,"stoppedEarly"),viewInSkyramp:o(e=>` [View in Skyramp](${e})`,"viewInSkyramp"),testsPr:{summaryHeader:"### Summary",targets:"The tests target:",moreItems:o(e=>`and ${e} more`,"moreItems"),counts:o((e,t)=>`${rj(e,"new")} and ${rj(t,"maintained")}.`,"counts"),types:o(e=>`Test types: ${e}.`,"types"),statusHeader:"### Validation status",noChange:"\u2139\uFE0F Nothing changed since the baseline.",noTestRan:"No test ran, and no existing evidence was accepted.",noLiveApp:"No live app (SUT) was available, so the tests were not run.",resultCounts:o((e,t,n)=>`Test results: ${e} passed, ${t} failed, ${n} not run.`,"resultCounts"),limitations:"Important failures and limitations:",verdict:o(e=>`The run's verdict is in [Run details](${e}).`,"verdict"),runningHeader:"### Running the tests",environment:o(e=>`The tests read these environment variables, which the job that runs them must set: ${e}.`,"environment"),filesChanged:"Review each test in the **Files changed** tab."},descriptionCut:o((e,t,n)=>`_\u2026 The rest is left out${t===void 0?", with more test results":t?`, with ${t} more test result${t===1?"":"s"}`:""}: Azure DevOps takes at most ${e} characters.${n?` [Full report](${n})`:""}_`,"descriptionCut"),testsReplaced:o((e,t,n)=>[t?`Skyramp Testbot replaced the tests on this pull request with the tests of [this run](${e}), commit \`${t}\`.`:`Skyramp Testbot replaced the tests on this pull request with the tests of [this run](${e}).`,n?`The tests of [the earlier run](${n}) are superseded.`:"The tests an earlier run wrote here are superseded."].join(" "),"testsReplaced"),setupRunEnds:{finished:"Setup run finished. Skyramp is checking the result.",failed:"Setup run failed.",timedOut:"Setup run ran out of time.",cancelledInSkyramp:"Setup run was cancelled in Skyramp.",stoppedToResume:"Setup run stopped. Resume it in Skyramp."},appUnreachable:o(e=>`Unable to contact the mothership ${e}. Please try again later.`,"appUnreachable"),couldNotStart:o(e=>`Skyramp Testbot could not start: ${e}`,"couldNotStart"),assembledAfterFailedChecks:o(e=>`> \u26A0\uFE0F This report was assembled automatically after the write-up step failed its checks; ${e} check(s) remain unmet \u2014 see the run log for details.`,"assembledAfterFailedChecks"),testbotPrLine:o((e,t,n)=>`Testbot PR${e?` (${e})`:""} : [${t}](${n})`,"testbotPrLine"),viewRun:o(e=>`_[View run](${e})_`,"viewRun"),testsPrNotOpened:o((e,t)=>`The tests PR could not be opened (${e}); the tests were pushed to branch \`${t}\`.`,"testsPrNotOpened"),testsNotDelivered:o(e=>`The tests could not be delivered: ${e}`,"testsNotDelivered"),testsPinnedNotDelivered:o((e,t,n)=>`${e}: ${t} ${t===1?"test":"tests"} written, ${n} maintained. The repository is pinned to a commit, so these changes were not delivered.`,"testsPinnedNotDelivered"),testsNotPushed:o((e,t)=>`The tests could not be pushed (${e}); they remain on the local branch \`${t}\`.`,"testsNotPushed"),testsPrRetargeted:o(e=>`The dev PR merged while tests were being generated \u2014 the tests PR targets its base branch${e?` (\`${e}\`)`:""} instead.`,"testsPrRetargeted"),testsPrUnchanged:"This push required no new test changes; the tests PR below is from an earlier run and was left as is.",committedNoPr:o(e=>`The tests were committed but no PR was opened: ${e}.`,"committedNoPr"),testsHeldBack:o((e,t,n,i)=>`${e?"Delivery partial":"Delivery failed: no tests were delivered"}. These test files need a pull request that is not on ${t} yet, so they were held back: ${n}. Their changes are in the run artifact's ${i}.`,"testsHeldBack"),testsNotProposed:o(e=>`The tests were not proposed in a pull request: ${e}.`,"testsNotProposed")}};var ij={testRecommendationsImplementedHeader:o((e,t)=>`\u{1F4A1} \u5B9F\u88C5\u3057\u305F\u30C6\u30B9\u30C8\u63A8\u5968\uFF08\u30C6\u30B9\u30C8 ${e}\u4EF6${t>e?`\u3001\u30B1\u30FC\u30B9 ${t}\u4EF6`:""}\uFF09`,"testRecommendationsImplementedHeader"),listSeparator:"\u3001",testTypeCellLabels:{smoke:"\u30B9\u30E2\u30FC\u30AF",fuzz:"\u30D5\u30A1\u30BA",contract:"\u30B3\u30F3\u30C8\u30E9\u30AF\u30C8",load:"\u8CA0\u8377",integration:"\u7D71\u5408",e2e:"E2E",ui:"UI",unit:"\u30E6\u30CB\u30C3\u30C8"},statusLabels:{Pass:"\u5408\u683C",Fail:"\u4E0D\u5408\u683C",Error:"\u30A8\u30E9\u30FC",Skipped:"\u30B9\u30AD\u30C3\u30D7"},severityLabels:{critical:"\u91CD\u5927",high:"\u9AD8",medium:"\u4E2D",low:"\u4F4E"},reuse:{label:"POM \u518D\u5229\u7528",noPomLayer:"\u30B9\u30AD\u30C3\u30D7 \u2014 \u3053\u306E\u30C6\u30B9\u30C8\u306B\u518D\u5229\u7528\u3067\u304D\u308B\u30DA\u30FC\u30B8\u30AA\u30D6\u30B8\u30A7\u30AF\u30C8\u5C64\u306F\u691C\u51FA\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F",reusedAndVerified:o(e=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u518D\u5229\u7528\u30FB\u691C\u8A3C\u6E08\u307F`,"reusedAndVerified"),reusedThenVerified:o((e,t)=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u518D\u5229\u7528\uFF08\u3046\u3061 ${t} \u4EF6\u3092\u691C\u8A3C\u6E08\u307F\uFF09`,"reusedThenVerified"),reused:o(e=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u518D\u5229\u7528`,"reused"),verified:o(e=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u691C\u8A3C\u6E08\u307F`,"verified"),unresolved:o(e=>`${e} \u4EF6\u306F POM \u30BD\u30FC\u30B9\u307E\u3067\u89E3\u6C7A\u3067\u304D\u305A\uFF08\u53C2\u8003\u60C5\u5831\u3067\u3042\u308A\u3001\u9664\u5916\u3067\u306F\u3042\u308A\u307E\u305B\u3093\uFF09`,"unresolved"),candidates:o(e=>`\u5019\u88DC\u3068\u306A\u308B POM \u30D5\u30A1\u30A4\u30EB ${e} \u4EF6\u3092\u691C\u51FA`,"candidates"),verificationPassed:"\u691C\u8A3C\u306B\u5408\u683C",verificationFailed:"\u26A0\uFE0F \u691C\u8A3C\u306B\u5408\u683C\u3057\u307E\u305B\u3093\u3067\u3057\u305F",keptInline:o(e=>`\u30A4\u30F3\u30E9\u30A4\u30F3\u306E\u307E\u307E: ${e}`,"keptInline"),gate:{"not-mapped":"\u30DE\u30C3\u30D4\u30F3\u30B0\u5BFE\u8C61\u5916","demoted-by-verify":"\u691C\u8A3C\u3067\u5DEE\u3057\u623B\u3057"}},testMaintenanceHeader:o(e=>`\u2705 \u30C6\u30B9\u30C8\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9\uFF08${e}\u4EF6\uFF09`,"testMaintenanceHeader"),maintenanceTableHeader:"| \u30C6\u30B9\u30C8\u7A2E\u5225 | \u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8 | \u30D5\u30A1\u30A4\u30EB | \u5909\u66F4\u5185\u5BB9 | \u5909\u66F4\u524D | \u5909\u66F4\u5F8C |",testResultsHeader:o(e=>`\u{1F9EA} \u30C6\u30B9\u30C8\u7D50\u679C\uFF08${e}\u4EF6\uFF09`,"testResultsHeader"),columnVideo:"\u30D3\u30C7\u30AA",videoDownloadLink:o(e=>`[\u{1F4F9} \u30C0\u30A6\u30F3\u30ED\u30FC\u30C9](${e})`,"videoDownloadLink"),videosArtifactFallback:o(e=>`\u{1F4F9} \u9332\u753B\u3055\u308C\u305F UI \u30C6\u30B9\u30C8\u30D3\u30C7\u30AA: [\u5B9F\u884C\u30A2\u30FC\u30C6\u30A3\u30D5\u30A1\u30AF\u30C8\u304B\u3089\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9](${e})`,"videosArtifactFallback"),issuesFoundHeader:o(e=>`\u26A0\uFE0F \u691C\u51FA\u3055\u308C\u305F\u554F\u984C\uFF08${e}\u4EF6\uFF09`,"issuesFoundHeader"),configErrorsHeader:"\u2699\uFE0F \u8A2D\u5B9A\u30A8\u30E9\u30FC",nextStepsHeader:"### \u{1F4A1} \u6B21\u306E\u30B9\u30C6\u30C3\u30D7",caveatsHeader:"### \u26A0\uFE0F \u3053\u306E\u5B9F\u884C\u3067\u78BA\u8A8D\u3067\u304D\u306A\u304B\u3063\u305F\u3053\u3068",rows:{passed:o(e=>e?"\u8D77\u52D5\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u6210\u529F\u3057\u307E\u3057\u305F":"\u6210\u529F\u3057\u307E\u3057\u305F","passed"),notRun:o(e=>e?"\u3053\u306E\u5B9F\u884C\u3067\u306F\u30E9\u30A4\u30D6\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5B9F\u884C\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F":"\u3053\u306E\u5B9F\u884C\u3067\u306F\u5B9F\u884C\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F","notRun"),failedBug:o(e=>e?"\u8D77\u52D5\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5931\u6557\u3057\u307E\u3057\u305F":"\u5931\u6557\u3057\u307E\u3057\u305F","failedBug"),failedTest:o(e=>`\u5931\u6557\u3057\u307E\u3057\u305F \u2014 \u30A2\u30D7\u30EA\u3067\u306F\u306A\u304F\u30C6\u30B9\u30C8\u306B\u554F\u984C\u304C\u3042\u308A\u307E\u3059\uFF08${e}\uFF09`,"failedTest"),executedOf:o((e,t)=>t?`\u3001\u305D\u306E\u3046\u3061 ${e} \u4EF6\u3092\u8D77\u52D5\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5B9F\u884C\u3057\u307E\u3057\u305F\u3002`:`\u3001\u305D\u306E\u3046\u3061 ${e} \u4EF6\u3092\u5B9F\u884C\u3057\u307E\u3057\u305F\u3002`,"executedOf"),noneExecuted:o(e=>e?"\u3002\u3053\u306E\u5B9F\u884C\u3067\u306F\u30E9\u30A4\u30D6\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5B9F\u884C\u3055\u308C\u305F\u3082\u306E\u306F\u3042\u308A\u307E\u305B\u3093\u3002":"\u3002\u3053\u306E\u5B9F\u884C\u3067\u306F\u5B9F\u884C\u3055\u308C\u305F\u3082\u306E\u306F\u3042\u308A\u307E\u305B\u3093\u3002","noneExecuted"),staleResult:"\u3053\u306E\u30D5\u30A1\u30A4\u30EB\u306E\u6700\u5F8C\u306E\u5909\u66F4\u3088\u308A\u524D\u306E\u5B9F\u884C\u306E\u7D50\u679C\u3067\u3001\u63D0\u51FA\u3057\u305F\u30C6\u30B9\u30C8\u306E\u3082\u306E\u3067\u306F\u3042\u308A\u307E\u305B\u3093:"},caveats:{deployFailed:"\u30A2\u30D7\u30EA\u3092\u8D77\u52D5\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u3053\u3053\u306B\u793A\u3059\u5185\u5BB9\u306F\u7A3C\u50CD\u4E2D\u306E\u30B7\u30B9\u30C6\u30E0\u306B\u5BFE\u3057\u3066\u691C\u8A3C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",changeBrokeBringup:"\u3053\u306E\u5909\u66F4\u306B\u3088\u308A\u30A2\u30D7\u30EA\u306E\u8D77\u52D5\u304C\u58CA\u308C\u305F\u3068\u601D\u308F\u308C\u307E\u3059\u3002PR \u3092\u9069\u7528\u3057\u305F\u72B6\u614B\u3067\u8D77\u52D5\u3067\u304D\u305A\u3001\u30C6\u30B9\u30C8\u306F\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",bringupFailed:"\u3053\u306E PR \u3068\u306F\u7121\u95A2\u4FC2\u306E\u7406\u7531\u3067\u30A2\u30D7\u30EA\u3092\u8D77\u52D5\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3059\u308B\u30C6\u30B9\u30C8\u306F\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",missingSecret:o(e=>`\u3053\u306E\u5B9F\u884C\u3067\u306F\u30A2\u30D7\u30EA\u3092\u8D77\u52D5\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u8D77\u52D5\u306B\u306F ${e} \u304C\u5FC5\u8981\u3067\u3059\u304C\u3001\u3053\u306E\u5B9F\u884C\u306B\u306F\u5024\u304C\u3042\u308A\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3059\u308B\u30C6\u30B9\u30C8\u306F\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002`,"missingSecret"),testsNotExecuted:"\u3053\u306E\u5B9F\u884C\u3067\u306F\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u30C6\u30B9\u30C8\u304C\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002\u672A\u5B9F\u884C\u306E\u30C6\u30B9\u30C8\u306F\u5909\u66F4\u304C\u6B63\u3057\u304F\u52D5\u4F5C\u3059\u308B\u8A3C\u62E0\u306B\u306A\u308A\u307E\u305B\u3093\u3002",findingsNotVerified:o(e=>`\u6B21\u306E\u7B87\u6240\u306E\u7591\u308F\u3057\u3044\u6B20\u9665\u3092\u78BA\u8A8D\u307E\u305F\u306F\u5426\u5B9A\u3059\u308B\u30C6\u30B9\u30C8\u7D50\u679C\u304C\u3042\u308A\u307E\u305B\u3093: ${e}\u3002`,"findingsNotVerified"),failedAlone:o(e=>`\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u306F\u30BB\u30C3\u30B7\u30E7\u30F3\u3067\u306F\u6210\u529F\u3057\u307E\u3057\u305F\u304C\u3001Testbot \u304C\u5358\u72EC\u3067\u5B9F\u884C\u3059\u308B\u3068\u5931\u6557\u3057\u305F\u305F\u3081\u3001\u7D50\u679C\u306F\u78BA\u5B9A\u3057\u3066\u3044\u307E\u305B\u3093: ${e}\u3002`,"failedAlone"),missingCaseResults:o((e,t)=>{let n=t?` \u6700\u65B0\u306E\u5B9F\u884C: ${t}`:"";return`\u4F5C\u6210\u3057\u305F\u30B1\u30FC\u30B9\u306E\u6700\u7D42\u7D50\u679C\u304C\u8A18\u9332\u3055\u308C\u3066\u3044\u307E\u305B\u3093: ${e}\u3002${n}`},"missingCaseResults"),recipeDrift:"\u8A18\u9332\u3055\u308C\u3066\u3044\u305F\u30A2\u30D7\u30EA\u306E\u8D77\u52D5\u624B\u9806\u304C\u53E4\u304F\u306A\u3063\u3066\u304A\u308A\u3001\u8D77\u52D5\u524D\u306B\u4FEE\u6B63\u304C\u5FC5\u8981\u3067\u3057\u305F\u3002",recipeNotSaved:"\u30EA\u30DD\u30B8\u30C8\u30EA\u306B\u30A2\u30D7\u30EA\u306E\u8D77\u52D5\u624B\u9806\u304C\u4FDD\u5B58\u3055\u308C\u3066\u3044\u306A\u304B\u3063\u305F\u305F\u3081\u3001Testbot \u304C\u30EA\u30DD\u30B8\u30C8\u30EA\u304B\u3089\u8D77\u52D5\u65B9\u6CD5\u3092\u5224\u65AD\u3057\u307E\u3057\u305F\u3002",mockedDependency:o(e=>`${e} \u306F\u5B9F\u969B\u306B\u30C7\u30D7\u30ED\u30A4\u3055\u308C\u305A\u30E2\u30C3\u30AF\u5316\u3055\u308C\u307E\u3057\u305F\u3002\u3053\u308C\u306B\u5BFE\u3059\u308B\u6210\u529F\u7D50\u679C\u306F\u8A3C\u660E\u306B\u306F\u306A\u308A\u307E\u305B\u3093\u3002`,"mockedDependency"),finalizeNotReady:o(e=>`\u30C6\u30B9\u30C8\u306F\u73FE\u72B6\u3067\u306F\u30DE\u30FC\u30B8\u53EF\u80FD\u306A\u72B6\u614B\u3067\u306F\u3042\u308A\u307E\u305B\u3093${e?`: ${e}`:"\u3002"}`,"finalizeNotReady"),ciNotCovered:"\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u3092\u5B9F\u884C\u3059\u308B CI \u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u304C\u306A\u3044\u305F\u3081\u3001\u4ECA\u5F8C\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u3067\u306F\u5B9F\u884C\u3055\u308C\u307E\u305B\u3093\u3002",ciNotCoveredBecause:o(e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u306F\u3001\u4ECA\u5F8C\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u3067\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u306E\u4E00\u90E8\u3092\u5B9F\u884C\u3057\u307E\u305B\u3093: ${e}`,"ciNotCoveredBecause"),ciUnconfirmedAbsent:o(e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u304C ${e} \u3092\u5B9F\u884C\u3057\u306A\u3044\u3053\u3068\u3092 Testbot \u306F\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3053\u308C\u3089\u306F CI \u304C\u8D77\u52D5\u3057\u306A\u3044\u30B5\u30FC\u30D3\u30B9\u3092\u5FC5\u8981\u3068\u3057\u307E\u3059\u3002CI \u3067\u5B9F\u884C\u3055\u308C\u306A\u3044\u3053\u3068\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,"ciUnconfirmedAbsent"),ciUnconfirmed:o(e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u304C ${e} \u3092\u53CE\u96C6\u3059\u308B\u3053\u3068\u3092 Testbot \u306F\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002CI \u3067\u5B9F\u884C\u3055\u308C\u308B\u304B\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,"ciUnconfirmed"),ciNotIntegrated:o(e=>`CI \u672A\u7D71\u5408: ${e} \u306F\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u304C\u8D77\u52D5\u3057\u306A\u3044\u30B5\u30FC\u30D3\u30B9\u3092\u5FC5\u8981\u3068\u3059\u308B\u305F\u3081\u3001Testbot \u306F CI \u304C\u5B9F\u884C\u3057\u306A\u3044\u5834\u6240\u306B\u914D\u7F6E\u3057\u307E\u3057\u305F\u3002CI \u3067\u5B9F\u884C\u3059\u308B\u305F\u3081\u306E\u5909\u66F4\u306F CI \u30CE\u30FC\u30C8\u306B\u8A18\u8F09\u3057\u3066\u3044\u307E\u3059\u3002`,"ciNotIntegrated"),ciWithheld:o(e=>`\u30C6\u30B9\u30C8 PR \u306B\u542B\u3081\u3066\u3044\u307E\u305B\u3093: \u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u306F ${e} \u3092\u5FC5\u8981\u306A\u30B5\u30FC\u30D3\u30B9\u3092\u8D77\u52D5\u305B\u305A\u306B\u5B9F\u884C\u3059\u308B\u305F\u3081\u3001CI \u304C\u5931\u6557\u3057\u307E\u3059\u3002CI \u3067\u5B9F\u884C\u3059\u308B\u305F\u3081\u306E\u5909\u66F4\u306F CI \u30CE\u30FC\u30C8\u306B\u8A18\u8F09\u3057\u3066\u3044\u307E\u3059\u3002`,"ciWithheld"),ciUnprovisioned:o(e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u306F ${e} \u3092\u5FC5\u8981\u306A\u30B5\u30FC\u30D3\u30B9\u3092\u8D77\u52D5\u305B\u305A\u306B\u5B9F\u884C\u3059\u308B\u305F\u3081\u3001\u305D\u308C\u3089\u306E\u30B5\u30FC\u30D3\u30B9\u3092\u8D77\u52D5\u3059\u308B\u307E\u3067 CI \u306F\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u3067\u5931\u6557\u3057\u307E\u3059\u3002`,"ciUnprovisioned"),ciResultsUnread:o(e=>`Testbot \u306F ${e} \u306E CI \u7D50\u679C\u3092\u8AAD\u307F\u53D6\u308C\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u305D\u3053\u3067\u306E CI \u7D50\u679C\u306F\u8A3C\u62E0\u3068\u3057\u3066\u6271\u308F\u308C\u3066\u3044\u307E\u305B\u3093\u3002`,"ciResultsUnread"),browserSuiteReadOnly:o((e,t)=>`${e} \u306B\u306F\u30D6\u30E9\u30A6\u30B6\u30C6\u30B9\u30C8\u30B9\u30A4\u30FC\u30C8\u304C\u3042\u308A\u307E\u3059\u304C\u3001\u3053\u306E\u5B9F\u884C\u3067\u306F\u66F8\u304D\u8FBC\u3081\u306A\u3044\u305F\u3081\u3001UI \u30C6\u30B9\u30C8\u306F ${t} \u306B\u3042\u308A\u307E\u3059\u3002`,"browserSuiteReadOnly"),sutNotRequired:"\u30A2\u30D7\u30EA\u306F\u8D77\u52D5\u3057\u3066\u3044\u307E\u305B\u3093\u3002\u691C\u8A3C\u30C8\u30EA\u30A2\u30FC\u30B8\u306B\u3088\u308A\u3001\u3053\u306E\u5909\u66F4\u3067\u691C\u8A3C\u304C\u5FC5\u8981\u306A\u30C7\u30D7\u30ED\u30A4\u5F8C\u306E\u632F\u308B\u821E\u3044\u306F\u306A\u3044\u3068\u5224\u65AD\u3055\u308C\u307E\u3057\u305F\u3002",lintNotCovered:o(e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30EA\u30F3\u30BF\u30FC\u306F ${e} \u3092\u30C1\u30A7\u30C3\u30AF\u3057\u307E\u305B\u3093\u3002\u30B9\u30BF\u30A4\u30EB\u3084\u578B\u306E\u554F\u984C\u304C\u81EA\u52D5\u7684\u306B\u306F\u691C\u51FA\u3055\u308C\u307E\u305B\u3093\u3002`,"lintNotCovered"),lintNotRun:o(e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30EA\u30F3\u30BF\u30FC\u306F\u30C6\u30B9\u30C8\u30D5\u30A1\u30A4\u30EB\u3092\u30C1\u30A7\u30C3\u30AF\u3057\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u30EA\u30F3\u30BF\u30FC\u3092\u901A\u3055\u305A\u306B\u63D0\u51FA\u3057\u307E\u3057\u305F: ${e}\u3002`,"lintNotRun"),analysisUnverified:o(e=>`\u5909\u66F4\u306E\u5206\u6790\u306E\u4E00\u90E8\u3092\u691C\u8A3C\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u672A\u89E3\u6C7A\u306E\u30C1\u30A7\u30C3\u30AF ${e} \u4EF6\uFF09\u3002\u8A72\u5F53\u3059\u308B\u4E3B\u5F35\u306F\u672A\u78BA\u8A8D\u3068\u3057\u3066\u6271\u3044\u3001\u30C6\u30B9\u30C8\u3092\u8A08\u753B\u3057\u307E\u3057\u305F\u3002`,"analysisUnverified"),unitTestsNotRun:o(e=>`Testbot \u306F\u9078\u629E\u3057\u305F\u30E6\u30CB\u30C3\u30C8\u30C6\u30B9\u30C8\u3092\u5B9F\u884C\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3053\u3053\u306B\u3042\u308B\u30E6\u30CB\u30C3\u30C8\u30C6\u30B9\u30C8\u306E\u7D50\u679C\u306F Testbot \u81EA\u8EAB\u306E\u518D\u5B9F\u884C\u306B\u3088\u308B\u3082\u306E\u3067\u306F\u3042\u308A\u307E\u305B\u3093: ${e}`,"unitTestsNotRun"),componentsNotTested:o(e=>`\u672A\u30C6\u30B9\u30C8: \u8A08\u753B\u304C\u30C6\u30B9\u30C8\u5BFE\u8C61\u306B\u3057\u306A\u304B\u3063\u305F\u3001\u5909\u66F4\u3055\u308C\u305F\u30B3\u30FC\u30C9\u306E\u90E8\u5206\u3067\u3059\u3002${e}`,"componentsNotTested"),componentsWithoutReason:o(e=>`\u8A08\u753B\u304C\u7406\u7531\u3092\u793A\u3055\u305A\u306B\u9664\u5916\u3057\u305F\u90E8\u5206: ${e}\u3002`,"componentsWithoutReason"),targetNotesDeviation:o(e=>`Target \u306E\u30E1\u30E2\u304C\u6307\u5B9A\u3059\u308B\u5834\u6240\u306B\u30C6\u30B9\u30C8\u3092\u7F6E\u3044\u3066\u3044\u307E\u305B\u3093: ${e}`,"targetNotesDeviation"),testSettingsDiffer:o(e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u81EA\u8EAB\u306E\u30C6\u30B9\u30C8\u30B3\u30DE\u30F3\u30C9\u3068\u306F\u7570\u306A\u308B\u8A2D\u5B9A\u3067\u691C\u8A3C\u3057\u305F\u305F\u3081\u3001\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30D3\u30EB\u30C9\u3067\u306F\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u306E\u6271\u3044\u304C\u5909\u308F\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059: ${e}\u3002`,"testSettingsDiffer"),stageSalvaged:o((e,t)=>t.length===1?`${e} \u30B9\u30C6\u30C3\u30D7\u306F\u3001\u4FEE\u6B63\u5F8C\u3082 ${t[0]} \u306E\u30C1\u30A7\u30C3\u30AF\u306B\u901A\u3089\u306A\u304B\u3063\u305F\u3082\u306E\u306E\u3001\u4F5C\u6210\u3057\u305F\u51FA\u529B\u3092\u6B8B\u3057\u307E\u3057\u305F\u3002\u305D\u306E\u51FA\u529B\u306F\u3053\u306E\u30C1\u30A7\u30C3\u30AF\u3067\u78BA\u8A8D\u3055\u308C\u3066\u3044\u306A\u3044\u3082\u306E\u3068\u3057\u3066\u6271\u3063\u3066\u304F\u3060\u3055\u3044\u3002`:`${e} \u30B9\u30C6\u30C3\u30D7\u306F\u3001\u4FEE\u6B63\u5F8C\u3082 ${t.length} \u4EF6\u306E\u30C1\u30A7\u30C3\u30AF\uFF08${t.join("\u3001")}\uFF09\u306B\u901A\u3089\u306A\u304B\u3063\u305F\u3082\u306E\u306E\u3001\u4F5C\u6210\u3057\u305F\u51FA\u529B\u3092\u6B8B\u3057\u307E\u3057\u305F\u3002\u305D\u306E\u51FA\u529B\u306F\u3053\u308C\u3089\u306E\u30C1\u30A7\u30C3\u30AF\u3067\u78BA\u8A8D\u3055\u308C\u3066\u3044\u306A\u3044\u3082\u306E\u3068\u3057\u3066\u6271\u3063\u3066\u304F\u3060\u3055\u3044\u3002`,"stageSalvaged"),downstreamNotChecked:o(e=>`\u672A\u5B9F\u884C: \u3053\u306E\u5909\u66F4\u304C\u5F71\u97FF\u3057\u3046\u308B\u3001\u30A2\u30D7\u30EA\u306E\u4ED6\u306E\u90E8\u5206\u306E\u78BA\u8A8D\u3067\u3059\u3002\u3053\u306E\u5909\u66F4\u81EA\u4F53\u306F\u305D\u306E\u52D5\u4F5C\u3092\u5909\u3048\u306A\u3044\u305F\u3081\u3001\u5909\u66F4\u306E\u691C\u8A3C\u306B\u306F\u4E0D\u8981\u3067\u3059\u3002${e}`,"downstreamNotChecked"),browserBuildNotDeclared:o((e,t,n)=>`${e} \u306E Playwright \u304C\u6307\u5B9A\u3059\u308B\u30D6\u30E9\u30A6\u30B6\u306E\u30D3\u30EB\u30C9 ${t} \u306E\u4EE3\u308F\u308A\u306B\u3001\u5225\u306E\u30D3\u30EB\u30C9\u304C\u4F7F\u308F\u308C\u3066\u3044\u307E\u3057\u305F\uFF08\u5225\u306E\u30D3\u30EB\u30C9\u3078\u306E\u30EA\u30F3\u30AF\u306B\u306A\u3063\u3066\u3044\u307E\u3059\uFF09\u3002\u305D\u306E\u305F\u3081\u3001\u3053\u3053\u3067\u306E\u30D6\u30E9\u30A6\u30B6\u30C6\u30B9\u30C8\u306E\u7D50\u679C\u306F CI \u306E\u7D50\u679C\u3068\u4E00\u81F4\u3057\u306A\u3044\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002CI \u3067\u306F\u305D\u3053\u3067 \`${n}\` \u304C\u5FC5\u8981\u3067\u3059\u3002`,"browserBuildNotDeclared"),resultsNotOfDeliveredTests:o(e=>`\u6B21\u306E\u30C6\u30B9\u30C8\u30D5\u30A1\u30A4\u30EB\u306F\u6700\u5F8C\u306E\u5B9F\u884C\u306E\u5F8C\u306B\u5909\u66F4\u3055\u308C\u305F\u305F\u3081\u3001\u3053\u3053\u3067\u306E\u7D50\u679C\u306F\u4EE5\u524D\u306E\u7248\u306E\u3082\u306E\u3067\u3001\u63D0\u51FA\u3057\u305F\u30C6\u30B9\u30C8\u306E\u3082\u306E\u3067\u306F\u3042\u308A\u307E\u305B\u3093: ${e}\u3002`,"resultsNotOfDeliveredTests"),videoMissing:o(e=>`\u6B21\u306E\u30D6\u30E9\u30A6\u30B6\u30C6\u30B9\u30C8\u306F\u52D5\u753B\u304C\u8A18\u9332\u3055\u308C\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u3053\u3053\u3067\u306E\u7D50\u679C\u306B\u306F\u78BA\u8A8D\u3067\u304D\u308B\u52D5\u753B\u304C\u3042\u308A\u307E\u305B\u3093: ${e}\u3002`,"videoMissing"),testsCouldNotRunHere:o((e,t)=>`\u3053\u306E\u5909\u66F4\u306B\u306F ${e} \u4EF6\u306E\u30C6\u30B9\u30C8\u304C\u3042\u308A\u307E\u3059\u304C\u3001\u3053\u306E\u74B0\u5883\u3067\u306F\u5B9F\u884C\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u7D50\u679C\u304C\u3042\u308A\u307E\u305B\u3093\uFF08\u30B9\u30AD\u30C3\u30D7\u3067\u306F\u3042\u308A\u307E\u305B\u3093\uFF09: ${t}`,"testsCouldNotRunHere"),modelProviderDenied:o((e,t=!1)=>t?`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u304C\u547C\u3073\u51FA\u3057\u3092\u62D2\u5426\u3057\u307E\u3057\u305F\u3002\u3059\u3067\u306B\u5F97\u3089\u308C\u305F\u8A3C\u62E0\u306F\u3001\u3053\u306E\u5B9F\u884C\u306E\u7D50\u679C\u3092\u5224\u65AD\u3059\u308B\u306E\u306B\u5341\u5206\u3067\u3059\u3002`:`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u304C Testbot \u306E\u547C\u3073\u51FA\u3057\u3092\u62D2\u5426\u3057\u305F\u305F\u3081\u3001\u5B9F\u884C\u306F\u5B8C\u4E86\u524D\u306B\u505C\u6B62\u3057\u307E\u3057\u305F\u3002\u8A8D\u8A3C\u60C5\u5831\u3001\u6A29\u9650\u3001\u307E\u305F\u306F\u4F7F\u7528\u91CF\u306E\u4E0A\u9650\u306B\u3088\u308A\u30A2\u30AF\u30BB\u30B9\u304C\u62D2\u5426\u3055\u308C\u307E\u3057\u305F\u3002\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u3092 Skyramp \u304C\u7BA1\u7406\u3057\u3066\u3044\u308B\u5834\u5408\u306F\u3001\u518D\u5B9F\u884C\u3059\u308B\u524D\u306B Skyramp \u30B5\u30DD\u30FC\u30C8\u306B\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044\u3002\u3054\u81EA\u8EAB\u3067\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u7BA1\u7406\u3057\u3066\u3044\u308B\u5834\u5408\u306F\u3001\u305D\u306E\u7BA1\u7406\u8005\u306B\u30A2\u30AF\u30BB\u30B9\u307E\u305F\u306F\u4F7F\u7528\u91CF\u306E\u4E0A\u9650\u306E\u89E3\u6C7A\u3092\u4F9D\u983C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u30B3\u30FC\u30C9\u3092\u5909\u66F4\u3059\u308B\u5FC5\u8981\u306F\u3042\u308A\u307E\u305B\u3093\u3002`,"modelProviderDenied"),stageInterruptedByProvider:o((e,t)=>`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${t} \u306B\u3088\u308A ${e} \u306E\u6BB5\u968E\u304C\u4E2D\u65AD\u3055\u308C\u307E\u3057\u305F\u3002Testbot \u306F\u305D\u306E\u6BB5\u968E\u3067\u4F5C\u6210\u6E08\u307F\u306E\u5185\u5BB9\u3092\u6B8B\u3057\u307E\u3057\u305F\u3002`,"stageInterruptedByProvider"),planInterruptedByProvider:o((e,t)=>`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u306B\u3088\u308A\u8A08\u753B\u304C\u4E2D\u65AD\u3055\u308C\u307E\u3057\u305F\u3002Testbot \u306F\u4F5C\u6210\u6E08\u307F\u306E\u8A08\u753B\u3092\u6B8B\u3057\u3001\u5F97\u3089\u308C\u305F\u30C6\u30B9\u30C8\u7D50\u679C\u3092\u5831\u544A\u3057\u307E\u3059\u3002`+(t?"\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u518D\u5EA6\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002":""),"planInterruptedByProvider"),modelProviderUnavailable:o((e,t=!1)=>t?`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u3092\u547C\u3073\u51FA\u3057\u6642\u306B\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3059\u3067\u306B\u5F97\u3089\u308C\u305F\u8A3C\u62E0\u306F\u3001\u3053\u306E\u5B9F\u884C\u306E\u7D50\u679C\u3092\u5224\u65AD\u3059\u308B\u306E\u306B\u5341\u5206\u3067\u3059\u3002`:`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u3092 Testbot \u304C\u5229\u7528\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u3053\u306E\u6BB5\u968E\u3092\u5B8C\u4E86\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3059\u3067\u306B\u5F97\u3089\u308C\u305F\u7D50\u679C\u306F\u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306B\u6B8B\u3063\u3066\u3044\u307E\u3059\u3002\u30B3\u30FC\u30C9\u3084 Testbot \u306E\u8A2D\u5B9A\u3092\u5909\u66F4\u3059\u308B\u5FC5\u8981\u306F\u3042\u308A\u307E\u305B\u3093\u3002\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u518D\u5EA6\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,"modelProviderUnavailable"),dataSafetyBrowserClean:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306E\u30D6\u30E9\u30A6\u30B6\u306F\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u306E\u4E0B\u3067\u52D5\u4F5C\u3057\u3001\u81EA\u5206\u304C\u4F5C\u6210\u3057\u305F\u30EC\u30B3\u30FC\u30C9\u3060\u3051\u3092\u5909\u66F4\u3057\u3001\u5F8C\u3067\u524A\u9664\u3057\u307E\u3057\u305F\u3002",dataSafetyNoBrowser:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306F\u30D6\u30E9\u30A6\u30B6\u3092\u4F7F\u7528\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyInvalidConfig:"\u5171\u6709\u74B0\u5883\u306E\u30C7\u30FC\u30BF\u5B89\u5168\u8A2D\u5B9A\u304C\u7121\u52B9\u3067\u3059\uFF08\u30AE\u30E3\u30C3\u30D7\u3092\u53C2\u7167\uFF09\u3002",dataSafetyGuardCheckFailed:"\u30D6\u30E9\u30A6\u30B6\u30FC\u306E\u30C7\u30FC\u30BF\u4FDD\u8B77\u30AC\u30FC\u30C9\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u8A73\u7D30\u306F\u4E0D\u8DB3\u4E8B\u9805\u3092\u53C2\u7167\u3057\u3066\u304F\u3060\u3055\u3044\u3002",dataSafetyGuardUnconfirmed:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306F\u30D6\u30E9\u30A6\u30B6\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u304C\u3001\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u304C\u6709\u52B9\u3067\u3042\u3063\u305F\u3053\u3068\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u30AE\u30E3\u30C3\u30D7\u3092\u53C2\u7167\uFF09\u3002",dataSafetyBrowserLeftovers:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306E\u30D6\u30E9\u30A6\u30B6\u306F\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u306E\u4E0B\u3067\u52D5\u4F5C\u3057\u3001\u81EA\u5206\u304C\u4F5C\u6210\u3057\u305F\u30EC\u30B3\u30FC\u30C9\u3060\u3051\u3092\u5909\u66F4\u3057\u307E\u3057\u305F\u304C\u3001\u4F5C\u6210\u3057\u305F\u30EC\u30B3\u30FC\u30C9\u306E\u4E00\u90E8\u306F\u524A\u9664\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u30AE\u30E3\u30C3\u30D7\u3092\u53C2\u7167\uFF09\u3002",dataSafetyBrowserWithheld:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Skyramp MCP \u30B5\u30FC\u30D0\u30FC\u306B\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u304C\u306A\u3044\u305F\u3081\u3001Testbot \u306F\u30D6\u30E9\u30A6\u30B6\u3092\u4F7F\u7528\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyPlanOnly:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u306E\u30C6\u30B9\u30C8\u8A08\u753B\u3092\u4F5C\u6210\u3057\u307E\u3057\u305F\u3002\u5B9F\u884C\u6642\u30D7\u30ED\u30FC\u30D6\u3084\u30C6\u30B9\u30C8\u306F\u8981\u6C42\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyOffLimitsRulesOnly:"\u30D7\u30ED\u30FC\u30D6\u3068\u5B9F\u884C\u3059\u308B\u30C6\u30B9\u30C8\u306E\u7ACB\u5165\u7981\u6B62\u30EB\u30FC\u30C8\u3078\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u306F\u3001\u6307\u793A\u306B\u3088\u3063\u3066\u5236\u9650\u3059\u308B\u3060\u3051\u3067\u3059\u3002Testbot \u306F\u305D\u308C\u3089\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u5F37\u5236\u7684\u306B\u5236\u9650\u3057\u307E\u305B\u3093\u3002",dataSafetyAuthCreates:o(e=>`\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u306E\u30D6\u30E9\u30A6\u30B6\u304C\u30B5\u30A4\u30F3\u30A4\u30F3\u307E\u305F\u306F\u30B5\u30A4\u30F3\u30A2\u30C3\u30D7\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u9001\u4FE1\u3057\u307E\u3057\u305F: ${e}\u3002\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u306F\u3053\u308C\u3089\u3092\u901A\u904E\u3055\u305B\u3001\u4F5C\u6210\u3055\u308C\u305F\u3082\u306E\uFF08\u65B0\u3057\u3044\u30A2\u30AB\u30A6\u30F3\u30C8\u306A\u3069\uFF09\u306F\u524A\u9664\u3057\u307E\u305B\u3093\u3002`,"dataSafetyAuthCreates"),dataSafetyProxyOffLimitsRulesOnly:"\u4E0A\u8A18\u306E\u30AC\u30FC\u30C9\u3055\u308C\u306A\u3044\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u304B\u3089\u306E\u7ACB\u5165\u7981\u6B62\u30EB\u30FC\u30C8\u3078\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u306F\u3001\u6307\u793A\u306B\u3088\u3063\u3066\u5236\u9650\u3059\u308B\u3060\u3051\u3067\u3059\u3002Testbot \u306F\u305D\u308C\u3089\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u5F37\u5236\u7684\u306B\u5236\u9650\u3057\u307E\u305B\u3093\u3002",dataSafetyRulesOnly:"\u30AC\u30FC\u30C9\u4ED8\u304D\u30D6\u30E9\u30A6\u30B6\u306E\u5916\u3067\u884C\u3046\u30D7\u30ED\u30FC\u30D6\u3068\u30C6\u30B9\u30C8\u306B\u306F\u3001\u4F5C\u6210\u3057\u305F\u30C7\u30FC\u30BF\u3092\u524A\u9664\u3059\u308B\u3088\u3046\u6307\u793A\u3059\u308B\u3060\u3051\u3067\u3059\u3002",dataSafetyProxy:o((e,t)=>`${e}\u306F Testbot \u306E\u30C7\u30FC\u30BF\u5B89\u5168\u30D7\u30ED\u30AD\u30B7\u3092\u7D4C\u7531\u3057\u307E\u3057\u305F\u3002\u30AC\u30FC\u30C9\u3055\u308C\u305A\u3001\u4F5C\u6210\u3057\u305F\u3082\u306E\u3092\u524A\u9664\u3059\u308B\u3088\u3046\u6307\u793A\u3055\u308C\u308B\u3060\u3051\u306E\u5BFE\u8C61: ${t}\u3002`,"dataSafetyProxy"),dataSafetyIsolationEnforced:o(()=>"\u30D7\u30ED\u30FC\u30D6\u3068\u30C6\u30B9\u30C8\u30B3\u30DE\u30F3\u30C9\u306F\u3001Testbot \u306E\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u3092\u901A\u3057\u3066\u306E\u307F\u5171\u6709\u74B0\u5883\u306B\u30A2\u30AF\u30BB\u30B9\u3067\u304D\u307E\u3057\u305F\u3002","dataSafetyIsolationEnforced"),dataSafetyIsolationRefused:"\u4E00\u90E8\u306E\u30C1\u30A7\u30C3\u30AF\u306F\u3001\u5171\u6709\u74B0\u5883\u306E\u4FDD\u8B77\u3092\u6709\u52B9\u306B\u3057\u305F\u307E\u307E\u3067\u306F\u5B9F\u884C\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002Testbot \u306F\u3001\u4FDD\u8B77\u306A\u3057\u3067\u305D\u308C\u3089\u3092\u5B9F\u884C\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyProxyAuthCreates:o(e=>`\u8A08\u753B\u6642\u306E\u30D7\u30ED\u30FC\u30D6\u307E\u305F\u306F\u30C6\u30B9\u30C8\u304C\u30B5\u30A4\u30F3\u30A4\u30F3\u307E\u305F\u306F\u30B5\u30A4\u30F3\u30A2\u30C3\u30D7\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u9001\u4FE1\u3057\u307E\u3057\u305F: ${e}\u3002\u30C7\u30FC\u30BF\u5B89\u5168\u30D7\u30ED\u30AD\u30B7\u306F\u3053\u308C\u3089\u3092\u901A\u904E\u3055\u305B\u3001\u4F5C\u6210\u3055\u308C\u305F\u3082\u306E\uFF08\u65B0\u3057\u3044\u30A2\u30AB\u30A6\u30F3\u30C8\u306A\u3069\uFF09\u306F\u8FFD\u8DE1\u3057\u307E\u305B\u3093\u3002`,"dataSafetyProxyAuthCreates"),dataSafetyGuardedProbes:"\u8A08\u753B\u6642\u306E\u30D7\u30ED\u30FC\u30D6",dataSafetyGuardedTests:"\u30C6\u30B9\u30C8\u306E\u5B9F\u884C",dataSafetyAnd:"\u3068",dataSafetyCleanupConfirmed:"Testbot \u306F\u5404\u30C6\u30B9\u30C8\u304C\u5BA3\u8A00\u3057\u305F\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u5B9F\u884C\u3057\u3001\u3059\u3079\u3066\u6210\u529F\u3057\u307E\u3057\u305F\u3002",dataSafetyLeftRecords:o(e=>`\u6B21\u306E\u30C6\u30B9\u30C8\u306F\u5171\u6709\u74B0\u5883\u304B\u3089\u524A\u9664\u3067\u304D\u306A\u3044\u30EC\u30B3\u30FC\u30C9\u3092\u5BA3\u8A00\u3057\u3066\u3044\u307E\u3059: ${e}\u3002`,"dataSafetyLeftRecords"),dataSafetyCleanupFailed:o(e=>`${e} \u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u306F\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u4F5C\u6210\u3057\u305F\u3082\u306E\u304C\u5171\u6709\u74B0\u5883\u306B\u6B8B\u3063\u3066\u3044\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002`,"dataSafetyCleanupFailed"),dataSafetyCleanupUnknown:o(e=>`${e} \u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u306F\u4E0D\u660E\u3067\u3059\u3002Testbot \u306F\u305D\u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u78BA\u8A8D\u3057\u3066\u3044\u307E\u305B\u3093\u3002`,"dataSafetyCleanupUnknown")},isolationReport:{rationale:"Testbot \u306F\u3001\u5FC5\u8981\u306A\u5171\u6709\u74B0\u5883\u306E\u9694\u96E2\u306E\u4E2D\u3067\u3053\u306E\u691C\u8A3C\u3092\u5B9F\u884C\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u5909\u66F4\u3092\u691C\u8A3C\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",gap:o(e=>`\u5171\u6709\u74B0\u5883\u306E\u9694\u96E2\u3092\u5229\u7528\u3067\u304D\u307E\u305B\u3093: ${e}`,"gap"),nextStep:"\u30AE\u30E3\u30C3\u30D7\u306B\u8A18\u8F09\u3055\u308C\u305F\u554F\u984C\u3092\u89E3\u6D88\u3057\u3066\u304B\u3089\u3001\u691C\u8A3C\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",nextStepPackageSource:"Ubuntu \u306E\u30D1\u30C3\u30B1\u30FC\u30B8\u914D\u5E03\u5143\u304C\u518D\u3073\u5229\u7528\u53EF\u80FD\u306B\u306A\u3063\u3066\u304B\u3089\u3001\u691C\u8A3C\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u3053\u306E\u30DB\u30B9\u30C8\u3084\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u5909\u66F4\u3059\u308B\u5FC5\u8981\u306F\u3042\u308A\u307E\u305B\u3093\u3002"},nextSteps:{componentMismatch:o((e,t,n,i)=>`Test Environment \u306E ${e}\uFF08${t}\uFF09\u306F ${n} \u3092\u5B9F\u884C\u3057\u3066\u304A\u308A\u3001\u3053\u306E\u5B9F\u884C\u304C\u691C\u8A3C\u3059\u308B\u30B3\u30DF\u30C3\u30C8 ${i} \u3092\u542B\u3093\u3067\u3044\u307E\u305B\u3093\u3002`,"componentMismatch"),componentUnverified:o((e,t,n,i)=>`Test Environment \u306E ${e}\uFF08${t}\uFF09\u304C\u3001\u3053\u306E\u5B9F\u884C\u304C\u691C\u8A3C\u3059\u308B\u30B3\u30DF\u30C3\u30C8 ${i} \u3092\u5B9F\u884C\u3057\u3066\u3044\u308B\u3053\u3068\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u5831\u544A\u3055\u308C\u305F\u30B3\u30DF\u30C3\u30C8: ${n}\u3002`,"componentUnverified"),componentUnread:o((e,t,n)=>`Test Environment \u306E ${e}\uFF08${t}\uFF09\u304C\u3001\u3053\u306E\u5B9F\u884C\u304C\u691C\u8A3C\u3059\u308B\u30B3\u30DF\u30C3\u30C8 ${n} \u3092\u5B9F\u884C\u3057\u3066\u3044\u308B\u3053\u3068\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3053\u306E\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u304C\u5B9F\u884C\u3057\u3066\u3044\u308B\u30B3\u30DF\u30C3\u30C8\u306E\u8A18\u9332\u304C\u3042\u308A\u307E\u305B\u3093\u3002`,"componentUnread"),deployCommit:o((e,t)=>`${e} \u306E ${t} \u3092 Test Environment \u306B\u30C7\u30D7\u30ED\u30A4\u3057\u3066\u3001Testbot \u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u305D\u306E\u30B3\u30DF\u30C3\u30C8\u304C\u5B9F\u884C\u3055\u308C\u308B\u307E\u3067\u3001\u305D\u3053\u3067\u306E\u30C6\u30B9\u30C8\u306F\u3053\u306E\u5909\u66F4\u306E\u691C\u8A3C\u306B\u306A\u308A\u307E\u305B\u3093\u3002`,"deployCommit"),addSecret:o((e,t)=>`\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u306E\u30DB\u30B9\u30C8\u306B ${e} \u3068\u3044\u3046\u540D\u524D\u306E\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\uFF08GitHub Actions \u306E\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\u3001\u307E\u305F\u306F Azure DevOps \u3067\u306F\u30DB\u30B9\u30C8\u30EA\u30DD\u30B8\u30C8\u30EA\u306E Pipelines \u203A Library \u306B\u3042\u308B skyramp-testbot \u5909\u6570\u30B0\u30EB\u30FC\u30D7\u306E\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\u5909\u6570\uFF09\u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u6B21\u306B Target \u306E Setup \u30DA\u30FC\u30B8\u306E Credentials \u306B\u8FFD\u52A0\u3057\u3001Testbot \u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u5B9F\u884C\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u304C Testbot \u306B\u6E21\u3059\u306E\u306F Target \u306E\u8A8D\u8A3C\u60C5\u5831\u3060\u3051\u3067\u3001\u305D\u308C\u305E\u308C\u5BFE\u5FDC\u4ED8\u3051\u3089\u308C\u305F\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u306E\u30DB\u30B9\u30C8\u306E\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\u304B\u3089\u6E21\u3055\u308C\u307E\u3059\u3002\u30A2\u30D7\u30EA\u306F\u3053\u308C\u306A\u3057\u3067\u306F\u8D77\u52D5\u3067\u304D\u305A\u3001Testbot \u304C\u5024\u3092\u4F5C\u308B\u3053\u3068\u306F\u3042\u308A\u307E\u305B\u3093\u3002`,"addSecret")},providerOutageHeadline:o((e,t)=>`${e} \u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002Testbot \u306F ${t} \u56DE\u8A66\u884C\u3057\u307E\u3057\u305F\u304C\u5931\u6557\u3057\u307E\u3057\u305F\u3002`,"providerOutageHeadline"),providerOutageActionStatusPage:o(e=>`${e} \u3067\u72B6\u6CC1\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u30B5\u30FC\u30D3\u30B9\u304C\u5FA9\u65E7\u3057\u305F\u3089\u3001Actions \u30BF\u30D6\u306E\u5B9F\u884C\u30DA\u30FC\u30B8\u304B\u3089\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,"providerOutageActionStatusPage"),providerRateLimitHeadline:o(e=>`${e} \u306E\u30EC\u30FC\u30C8\u5236\u9650\u306B\u3088\u308A\u5B9F\u884C\u304C\u4E2D\u65AD\u3055\u308C\u307E\u3057\u305F (HTTP 429)\u3002`,"providerRateLimitHeadline"),providerRateLimitAction:"\u5236\u9650\u304C\u89E3\u9664\u3055\u308C\u308B\u307E\u3067\u5F85\u3063\u3066\u304B\u3089\u3001Actions \u30BF\u30D6\u306E\u5B9F\u884C\u30DA\u30FC\u30B8\u304B\u3089\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u7E70\u308A\u8FD4\u3059\u5834\u5408\u306F\u3001\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u304C\u4F7F\u7528\u3059\u308B\u8A8D\u8A3C\u60C5\u5831\u306E\u30EC\u30FC\u30C8\u5236\u9650\u3092\u5F15\u304D\u4E0A\u3052\u308B\u304B\u3001\u540C\u6642\u306B\u5B9F\u884C\u3059\u308B PR \u306E\u6570\u3092\u6E1B\u3089\u3057\u3066\u304F\u3060\u3055\u3044\u3002",providerUsageLimitHeadline:o(e=>`${e} \u306E\u30A2\u30AB\u30A6\u30F3\u30C8\u304C\u5229\u7528\u4E0A\u9650\u306B\u9054\u3057\u307E\u3057\u305F\u3002`,"providerUsageLimitHeadline"),providerUsageLimitAction:"\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u306E\u8A8D\u8A3C\u60C5\u5831\u306B\u7D10\u3065\u304F\u30A2\u30AB\u30A6\u30F3\u30C8\u306E\u5229\u7528\u4E0A\u9650\u3092\u5F15\u304D\u4E0A\u3052\u3066\u304B\u3089\u3001Actions \u30BF\u30D6\u306E\u5B9F\u884C\u30DA\u30FC\u30B8\u304B\u3089\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",providerAuthExpiredHeadline:o(e=>`\u5B9F\u884C\u4E2D\u306B\u3001Testbot \u304C ${e} \u3078\u63A5\u7D9A\u3059\u308B\u305F\u3081\u306E\u8A8D\u8A3C\u60C5\u5831\u306E\u6709\u52B9\u671F\u9650\u304C\u5207\u308C\u307E\u3057\u305F\u3002`,"providerAuthExpiredHeadline"),providerAuthExpiredAction:"\u8A8D\u8A3C\u60C5\u5831\u306E\u6709\u52B9\u671F\u9593\u306F\u56FA\u5B9A\u306E\u305F\u3081\u3001\u5B9F\u884C\u6642\u9593\u304C\u9577\u3044\u3068\u305D\u306E\u671F\u9593\u3092\u8D85\u3048\u308B\u3053\u3068\u304C\u3042\u308A\u307E\u3059\u3002Actions \u30BF\u30D6\u306E\u5B9F\u884C\u30DA\u30FC\u30B8\u304B\u3089\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u3053\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u5B9F\u884C\u304C\u6709\u52B9\u671F\u9593\u3092\u5E38\u306B\u8D85\u3048\u308B\u5834\u5408\u306F\u3001\u30B8\u30E7\u30D6\u3054\u3068\u306B\u8A8D\u8A3C\u60C5\u5831\u3092\u767A\u884C\u3059\u308B\u304B\u3001\u5404\u30B8\u30E7\u30D6\u304C\u6709\u52B9\u671F\u9593\u5185\u306B\u53CE\u307E\u308B\u3088\u3046\u5B9F\u884C\u3092\u5206\u5272\u3057\u3066\u304F\u3060\u3055\u3044\u3002",providerTimeoutHeadline:o(e=>`Testbot \u306F\u5236\u9650\u6642\u9593 ${e} \u5206\u3092\u8D85\u3048\u305F\u305F\u3081\u505C\u6B62\u3055\u308C\u307E\u3057\u305F\u3002`,"providerTimeoutHeadline"),providerTimeoutAction:"\u3053\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u5B9F\u884C\u306B\u672C\u5F53\u306B\u6642\u9593\u304C\u5FC5\u8981\u306A\u5834\u5408\u306F\u3001\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u306E `testbotTimeout` \u5165\u529B\u5024\u3092\u5927\u304D\u304F\u3057\u3066\u304F\u3060\u3055\u3044\u3002",staged:{testsSourcePullRequest:o(e=>`\u30BD\u30FC\u30B9\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8 ${e} \u306E\u30C6\u30B9\u30C8`,"testsSourcePullRequest"),validatedTogether:o(e=>`\u4E00\u7DD2\u306B\u691C\u8A3C\u3057\u305F\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8: ${e}`,"validatedTogether"),requestedByPerson:o(e=>`${e} \u3055\u3093\u306E\u4F9D\u983C\u3067\u5B9F\u884C`,"requestedByPerson"),requestedByPolicy:o(e=>`\u691C\u8A3C\u30DD\u30EA\u30B7\u30FC ${e} \u306B\u3088\u308A\u5B9F\u884C`,"requestedByPolicy"),notTranslated:{"no-time":"> \u26A0\uFE0F \u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u82F1\u8A9E\u306E\u307E\u307E\u3067\u3059: \u7FFB\u8A33\u3059\u308B\u6642\u9593\u304C\u6B8B\u3063\u3066\u3044\u307E\u305B\u3093\u3067\u3057\u305F\u3002",failed:"> \u26A0\uFE0F \u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u82F1\u8A9E\u306E\u307E\u307E\u3067\u3059: \u7FFB\u8A33\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002"},noLiveApp:o(e=>`> \u26A0\uFE0F **\u3053\u306E\u5B9F\u884C\u3067\u306F\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\uFF08SUT\uFF09\u304C\u3042\u308A\u307E\u305B\u3093\u3067\u3057\u305F** \u2014 \u4EE5\u4E0B\u306E ${e} \u4EF6\u306E\u30C6\u30B9\u30C8\u306F**\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093**\uFF08\u5B9F\u884C\u5BFE\u8C61\u306E\u30A2\u30D7\u30EA\u304C\u3042\u308A\u307E\u305B\u3093\u3067\u3057\u305F\uFF09\u3002\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5B9F\u884C\u3057\u3001\u5408\u683C\u3059\u308B\u3053\u3068\uFF08\u304A\u3088\u3073\u518D\u73FE\u30C6\u30B9\u30C8\u304C\u610F\u56F3\u3069\u304A\u308A\u5931\u6557\u3059\u308B\u3053\u3068\uFF09\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,"noLiveApp"),unitTestsInFile:o((e,t,n)=>`**${e}**: ${n?`${n} \u306E`:""}\u30E6\u30CB\u30C3\u30C8\u30C6\u30B9\u30C8 ${t} \u4EF6`,"unitTestsInFile"),addedToExistingFile:"\u65E2\u5B58\u306E\u30C6\u30B9\u30C8\u30D5\u30A1\u30A4\u30EB\u306B\u8FFD\u52A0",testPackagesHeader:"### \u{1F4E6} \u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u306E\u5B9F\u884C\u65B9\u6CD5",testPackageLine:o((e,t,n="")=>`\`${e}/\` \u306F Skyramp Testbot \u304C\u6240\u6709\u30FB\u4FDD\u5B88\u3059\u308B\u72EC\u7ACB\u3057\u305F\u30C6\u30B9\u30C8\u30D1\u30C3\u30B1\u30FC\u30B8\u3067\u3001\u72EC\u81EA\u306E\u30DE\u30CB\u30D5\u30A7\u30B9\u30C8\u3001\u30ED\u30C3\u30AF\u30D5\u30A1\u30A4\u30EB\u3001\u30E9\u30F3\u30CA\u30FC\u8A2D\u5B9A\u3092\u6301\u3061\u307E\u3059\u3002${n?`\u3053\u306E\u5B9F\u884C\u3067\u8FFD\u52A0\u3057\u305F\u3082\u306E\u3067\u3001${n} \u3092\u3053\u306E\u30D1\u30C3\u30B1\u30FC\u30B8\u5185\u306B\u306E\u307F\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3057\u3066\u3044\u307E\u3059\u3002`:""}\u30A2\u30D7\u30EA\u306E\u8D77\u52D5\u4E2D\u306B \`${t}\` \u3067\u5B9F\u884C\u3067\u304D\u307E\u3059\u3002\u3059\u3079\u3066\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u3067\u5B9F\u884C\u3059\u308B\u306B\u306F\u3001\u30A2\u30D7\u30EA\u304C\u8D77\u52D5\u3057\u3066\u3044\u308B CI \u30B8\u30E7\u30D6\u306B\u3053\u306E\u30B3\u30DE\u30F3\u30C9\u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,"testPackageLine"),appManifestsUntouched:"\u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3\u81EA\u8EAB\u306E\u30DE\u30CB\u30D5\u30A7\u30B9\u30C8\u3068\u30ED\u30C3\u30AF\u30D5\u30A1\u30A4\u30EB\u306F\u5909\u66F4\u3057\u3066\u3044\u307E\u305B\u3093\u3002",dependencyChangesHeader:"### \u{1F4E6} \u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3\u306E\u4F9D\u5B58\u95A2\u4FC2\u306E\u5909\u66F4",dependencyChangeLine:o((e,t,n)=>`\`${t}\`\uFF08\u304A\u3088\u3073\u305D\u306E\u30ED\u30C3\u30AF\u30D5\u30A1\u30A4\u30EB\uFF09\u306B \`${e}\` \u3092\u8FFD\u52A0${n?`: ${n}`:""}`,"dependencyChangeLine"),testMaintenanceHeader:"\u2705 \u30C6\u30B9\u30C8\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9",keptNot:"\u5909\u66F4\u305B\u305A\u7DAD\u6301 \u2014 \u898B\u9001\u3063\u305F\u64CD\u4F5C: ",declinedPlanned:"(\u4E88\u5B9A\u3057\u3066\u3044\u305F\u64CD\u4F5C\u3092\u898B\u9001\u308A: ",declinedMaintenanceHeader:"\u21A9\uFE0F \u898B\u9001\u3063\u305F\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9",existingEvidenceHeader:"\u2705 \u65E2\u5B58\u306E\u30A8\u30D3\u30C7\u30F3\u30B9",trustedCheckPassed:o((e,t)=>`\u4FE1\u983C\u6E08\u307F\u306E CI \u30C1\u30A7\u30C3\u30AF ${e} \u304C${t?` ${t} \u3067`:""}\u5408\u683C\u3057\u3001\u6B21\u3092\u78BA\u8A8D\u3057\u307E\u3057\u305F:`,"trustedCheckPassed"),testResultsHeader:"\u{1F9EA} \u30C6\u30B9\u30C8\u7D50\u679C",resultsTableHeader:"| \u30C6\u30B9\u30C8 ID | \u30C6\u30B9\u30C8\u7A2E\u5225 | \u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8 | \u30B9\u30C6\u30FC\u30BF\u30B9 | \u8A73\u7D30 |",unitResultsTableHeader:"| \u30C6\u30B9\u30C8 ID | \u30C6\u30B9\u30C8\u7A2E\u5225 | \u30C6\u30B9\u30C8\u5BFE\u8C61\u306E\u30B3\u30FC\u30C9 | \u30C6\u30B9\u30C8 | \u30B1\u30FC\u30B9\u6570 | \u30B9\u30C6\u30FC\u30BF\u30B9 | \u8A73\u7D30 |",casesPassed:o((e,t,n)=>`${t} \u4EF6\u4E2D ${e} \u4EF6\u5408\u683C${n?`\u3001${n} \u4EF6\u30B9\u30AD\u30C3\u30D7`:""}`,"casesPassed"),behaviourCoverageHeader:"\u{1F517} \u632F\u308B\u821E\u3044\u306E\u30AB\u30D0\u30EC\u30C3\u30B8",coverageCaption:o((e,t,n,i)=>`\uFF08\u751F\u6210 ${e} \xB7 \u5909\u66F4 ${t} \xB7 \u691C\u8A3C ${n} \xB7 \u5B9F\u884C ${i}\uFF09`,"coverageCaption"),coverageTableHeader:"| \u632F\u308B\u821E\u3044 | \u30BD\u30FC\u30B9 | \u30C6\u30B9\u30C8 | \u30E1\u30F3\u30C6\u30CA\u30F3\u30B9 |",writtenNotRun:"\u4F5C\u6210\u6E08\u307F\u30FB\u672A\u5B9F\u884C",issuesFoundHeader:"\u26A0\uFE0F \u691C\u51FA\u3055\u308C\u305F\u554F\u984C",requirementsHeader:o((e,t)=>`\u{1F4CB} \u8981\u4EF6\uFF08${t} \u4EF6\u4E2D ${e} \u4EF6\u306E\u6761\u9805\u304C\u5408\u683C\uFF09`,"requirementsHeader"),requirementsTableHeader:"| \u8981\u4EF6 | \u6761\u9805 | \u30C6\u30B9\u30C8 | \u7D50\u679C |",requirementsSummaryTableHeader:"| \u8981\u4EF6 | \u5408\u683C\u3057\u305F\u6761\u9805 | \u5408\u683C\u3057\u3066\u3044\u306A\u3044\u6761\u9805 |",clauseStatuses:{Pass:"\u5408\u683C",Fail:"\u4E0D\u5408\u683C","Not run":"\u672A\u5B9F\u884C","Not tested":"\u672A\u30C6\u30B9\u30C8","Passed, test not kept":"\u5408\u683C\uFF08\u30C6\u30B9\u30C8\u306F\u4FDD\u6301\u305B\u305A\uFF09"},regressionGuard:"\uFF08\u56DE\u5E30\u30AC\u30FC\u30C9\uFF09",caveatsHeader:"### \u26A0\uFE0F \u3053\u306E\u5B9F\u884C\u3067\u78BA\u8A8D\u3067\u304D\u306A\u304B\u3063\u305F\u3053\u3068",commentHeader:"### Skyramp Testbot",timedOut:"> \u26A0\uFE0F \u5B9F\u884C\u304C\u30BF\u30A4\u30E0\u30A2\u30A6\u30C8\u3057\u307E\u3057\u305F \u2014 \u4EE5\u4E0B\u306E\u7D50\u679C\u306F\u4E00\u90E8\u306E\u307F\u3067\u3059\u3002",stopReasons:{"pr-closed":"\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u304C\u30DE\u30FC\u30B8\u3055\u308C\u305A\u306B\u30AF\u30ED\u30FC\u30BA\u3055\u308C\u307E\u3057\u305F",cancelled:"\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u304C\u30AD\u30E3\u30F3\u30BB\u30EB\u3055\u308C\u305F\u304B\u3001\u30E9\u30F3\u30CA\u30FC\u304C\u505C\u6B62\u3057\u307E\u3057\u305F","attempt-cancelled":"Skyramp \u3067\u3053\u306E\u5B9F\u884C\u304C\u30AD\u30E3\u30F3\u30BB\u30EB\u3055\u308C\u307E\u3057\u305F","attempt-closed":"Skyramp \u304C\u3053\u306E\u5B9F\u884C\u3092\u7D42\u4E86\u3057\u307E\u3057\u305F"},maintenanceActions:{update:"\u66F4\u65B0",regenerate:"\u518D\u751F\u6210",delete:"\u524A\u9664",verify:"\u691C\u8A3C",updated:"\u66F4\u65B0",regenerated:"\u518D\u751F\u6210",deleted:"\u524A\u9664",verified:"\u691C\u8A3C"},publishFailures:{push:"\u30D7\u30C3\u30B7\u30E5\u306B\u5931\u6557",auth:"\u8A8D\u8A3C\u30A8\u30E9\u30FC",conflict:"\u7AF6\u5408",hook:"\u30B3\u30DF\u30C3\u30C8\u30D5\u30C3\u30AF\u304C\u5931\u6557",unknown:"\u4E0D\u660E\u306A\u30A8\u30E9\u30FC"},commitHook:o(e=>e?`${e} \u30D5\u30C3\u30AF`:"\u30B3\u30DF\u30C3\u30C8\u30D5\u30C3\u30AF","commitHook"),commitRefusedByHook:o((e,t)=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E ${e}\u304C\u751F\u6210\u3055\u308C\u305F\u30C6\u30B9\u30C8\u306E\u30B3\u30DF\u30C3\u30C8\u3092\u62D2\u5426\u3057\u305F\u305F\u3081\u3001Testbot PR \u306F\u4F5C\u6210\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u30D5\u30C3\u30AF\u306E\u30A8\u30E9\u30FC: \`${t}\`\u3002`,"commitRefusedByHook"),commitHookCouldNotRun:o((e,t)=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E ${e}\u3092\u5B9F\u884C\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001Testbot PR \u306F\u4F5C\u6210\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u30D5\u30C3\u30AF\u304C\u547C\u3073\u51FA\u3059\u30B3\u30DE\u30F3\u30C9\u304C\u30E9\u30F3\u30CA\u30FC\u306B\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002\u30D5\u30C3\u30AF\u306E\u30A8\u30E9\u30FC: \`${t}\`\u3002`,"commitHookCouldNotRun"),stoppedEarly:o((e,t)=>`> \u26A0\uFE0F \u5B9F\u884C\u304C\u9014\u4E2D\u3067\u505C\u6B62\u3057\u307E\u3057\u305F \u2014 ${e}\u3002\u4EE5\u4E0B\u306E\u7D50\u679C\u306F\u4E00\u90E8\u306E\u307F\u3067\u3059\u3002${t}`,"stoppedEarly"),viewInSkyramp:o(e=>` [Skyramp \u3067\u8868\u793A](${e})`,"viewInSkyramp"),testsPr:{summaryHeader:"### \u6982\u8981",targets:"\u30C6\u30B9\u30C8\u306E\u5BFE\u8C61:",moreItems:o(e=>`\u307B\u304B ${e} \u4EF6`,"moreItems"),counts:o((e,t)=>`\u65B0\u898F\u30C6\u30B9\u30C8 ${e} \u4EF6\u3001\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9\u3057\u305F\u30C6\u30B9\u30C8 ${t} \u4EF6\u3002`,"counts"),types:o(e=>`\u30C6\u30B9\u30C8\u7A2E\u5225: ${e}\u3002`,"types"),statusHeader:"### \u691C\u8A3C\u30B9\u30C6\u30FC\u30BF\u30B9",noChange:"\u2139\uFE0F \u30D9\u30FC\u30B9\u30E9\u30A4\u30F3\u4EE5\u964D\u306B\u5909\u66F4\u306F\u3042\u308A\u307E\u305B\u3093\u3002",noTestRan:"\u5B9F\u884C\u3057\u305F\u30C6\u30B9\u30C8\u306F\u306A\u304F\u3001\u65E2\u5B58\u306E\u8A3C\u62E0\u3082\u63A1\u7528\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002",noLiveApp:"\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\uFF08SUT\uFF09\u304C\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u30C6\u30B9\u30C8\u306F\u5B9F\u884C\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002",resultCounts:o((e,t,n)=>`\u30C6\u30B9\u30C8\u7D50\u679C: \u5408\u683C ${e} \u4EF6\u3001\u4E0D\u5408\u683C ${t} \u4EF6\u3001\u672A\u5B9F\u884C ${n} \u4EF6\u3002`,"resultCounts"),limitations:"\u91CD\u8981\u306A\u5931\u6557\u3068\u5236\u9650:",verdict:o(e=>`\u5B9F\u884C\u306E\u5224\u5B9A\u306F[\u5B9F\u884C\u306E\u8A73\u7D30](${e})\u306B\u3042\u308A\u307E\u3059\u3002`,"verdict"),runningHeader:"### \u30C6\u30B9\u30C8\u306E\u5B9F\u884C\u65B9\u6CD5",environment:o(e=>`\u30C6\u30B9\u30C8\u306F\u6B21\u306E\u74B0\u5883\u5909\u6570\u3092\u8AAD\u307F\u53D6\u308A\u307E\u3059\u3002\u30C6\u30B9\u30C8\u3092\u5B9F\u884C\u3059\u308B\u30B8\u30E7\u30D6\u3067\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044: ${e}\u3002`,"environment"),filesChanged:"\u5404\u30C6\u30B9\u30C8\u306F **Files changed** \u30BF\u30D6\u3067\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002"},descriptionCut:o((e,t,n)=>`_\u2026 \u6B8B\u308A\u306F\u7701\u7565\u3057\u307E\u3057\u305F${t===void 0?"\uFF08\u30C6\u30B9\u30C8\u7D50\u679C\u3092\u542B\u3080\uFF09":t?`\uFF08\u30C6\u30B9\u30C8\u7D50\u679C ${t} \u4EF6\u3092\u542B\u3080\uFF09`:""}\u3002Azure DevOps \u306E\u8AAC\u660E\u306F ${e} \u6587\u5B57\u307E\u3067\u3067\u3059\u3002${n?` [\u5B8C\u5168\u306A\u30EC\u30DD\u30FC\u30C8](${n})`:""}_`,"descriptionCut"),testsReplaced:o((e,t,n)=>[t?`Skyramp Testbot \u304C\u3053\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u306E\u30C6\u30B9\u30C8\u3092[\u3053\u306E\u5B9F\u884C](${e})\u306E\u30C6\u30B9\u30C8\uFF08\u30B3\u30DF\u30C3\u30C8 \`${t}\`\uFF09\u306B\u7F6E\u304D\u63DB\u3048\u307E\u3057\u305F\u3002`:`Skyramp Testbot \u304C\u3053\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u306E\u30C6\u30B9\u30C8\u3092[\u3053\u306E\u5B9F\u884C](${e})\u306E\u30C6\u30B9\u30C8\u306B\u7F6E\u304D\u63DB\u3048\u307E\u3057\u305F\u3002`,n?`[\u4EE5\u524D\u306E\u5B9F\u884C](${n})\u306E\u30C6\u30B9\u30C8\u306F\u7F6E\u304D\u63DB\u3048\u6E08\u307F\u3067\u3059\u3002`:"\u4EE5\u524D\u306E\u5B9F\u884C\u304C\u3053\u3053\u306B\u66F8\u3044\u305F\u30C6\u30B9\u30C8\u306F\u7F6E\u304D\u63DB\u3048\u6E08\u307F\u3067\u3059\u3002"].join(""),"testsReplaced"),setupRunEnds:{finished:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u304C\u5B8C\u4E86\u3057\u307E\u3057\u305F\u3002Skyramp \u304C\u7D50\u679C\u3092\u78BA\u8A8D\u3057\u3066\u3044\u307E\u3059\u3002",failed:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",timedOut:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u304C\u6642\u9593\u5207\u308C\u306B\u306A\u308A\u307E\u3057\u305F\u3002",cancelledInSkyramp:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u306F Skyramp \u3067\u30AD\u30E3\u30F3\u30BB\u30EB\u3055\u308C\u307E\u3057\u305F\u3002",stoppedToResume:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u3092\u505C\u6B62\u3057\u307E\u3057\u305F\u3002Skyramp \u3067\u518D\u958B\u3067\u304D\u307E\u3059\u3002"},appUnreachable:o(e=>`Skyramp\uFF08${e}\uFF09\u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093\u3002\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u518D\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002`,"appUnreachable"),couldNotStart:o(e=>`Skyramp Testbot \u3092\u958B\u59CB\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: ${e}`,"couldNotStart"),assembledAfterFailedChecks:o(e=>`> \u26A0\uFE0F \u4F5C\u6210\u30B9\u30C6\u30C3\u30D7\u304C\u30C1\u30A7\u30C3\u30AF\u306B\u5408\u683C\u3057\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u81EA\u52D5\u3067\u7D44\u307F\u7ACB\u3066\u3089\u308C\u307E\u3057\u305F\u3002${e} \u4EF6\u306E\u30C1\u30A7\u30C3\u30AF\u304C\u672A\u9054\u6210\u3067\u3059 \u2014 \u8A73\u7D30\u306F\u5B9F\u884C\u30ED\u30B0\u3092\u53C2\u7167\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,"assembledAfterFailedChecks"),testbotPrLine:o((e,t,n)=>`Testbot PR${e?`\uFF08${e}\uFF09`:""}: [${t}](${n})`,"testbotPrLine"),viewRun:o(e=>`_[\u5B9F\u884C\u3092\u8868\u793A](${e})_`,"viewRun"),testsPrNotOpened:o((e,t)=>`\u30C6\u30B9\u30C8 PR \u3092\u4F5C\u6210\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08${e}\uFF09\u3002\u30C6\u30B9\u30C8\u306F\u30D6\u30E9\u30F3\u30C1 \`${t}\` \u306B\u30D7\u30C3\u30B7\u30E5\u3055\u308C\u3066\u3044\u307E\u3059\u3002`,"testsPrNotOpened"),testsNotDelivered:o(e=>`\u30C6\u30B9\u30C8\u3092\u914D\u4FE1\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: ${e}`,"testsNotDelivered"),testsPinnedNotDelivered:o((e,t,n)=>`${e}: ${t} \u4EF6\u306E\u30C6\u30B9\u30C8\u3092\u4F5C\u6210\u3057\u3001${n} \u4EF6\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002\u30EA\u30DD\u30B8\u30C8\u30EA\u306F\u30B3\u30DF\u30C3\u30C8\u306B\u56FA\u5B9A\u3055\u308C\u3066\u3044\u308B\u305F\u3081\u3001\u3053\u308C\u3089\u306E\u5909\u66F4\u306F\u914D\u4FE1\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002`,"testsPinnedNotDelivered"),testsNotPushed:o((e,t)=>`\u30C6\u30B9\u30C8\u3092\u30D7\u30C3\u30B7\u30E5\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08${e}\uFF09\u3002\u30C6\u30B9\u30C8\u306F\u30ED\u30FC\u30AB\u30EB\u30D6\u30E9\u30F3\u30C1 \`${t}\` \u306B\u6B8B\u3063\u3066\u3044\u307E\u3059\u3002`,"testsNotPushed"),testsPrRetargeted:o(e=>`\u30C6\u30B9\u30C8\u306E\u751F\u6210\u4E2D\u306B\u958B\u767A PR \u304C\u30DE\u30FC\u30B8\u3055\u308C\u307E\u3057\u305F \u2014 \u30C6\u30B9\u30C8 PR \u306F\u4EE3\u308F\u308A\u306B\u30D9\u30FC\u30B9\u30D6\u30E9\u30F3\u30C1${e?`\uFF08\`${e}\`\uFF09`:""}\u3092\u5BFE\u8C61\u306B\u3057\u3066\u3044\u307E\u3059\u3002`,"testsPrRetargeted"),testsPrUnchanged:"\u3053\u306E\u30D7\u30C3\u30B7\u30E5\u3067\u306F\u65B0\u3057\u3044\u30C6\u30B9\u30C8\u306E\u5909\u66F4\u306F\u4E0D\u8981\u3067\u3057\u305F\u3002\u4EE5\u4E0B\u306E\u30C6\u30B9\u30C8 PR \u306F\u4EE5\u524D\u306E\u5B9F\u884C\u306E\u3082\u306E\u3067\u3001\u305D\u306E\u307E\u307E\u306B\u3057\u3066\u3044\u307E\u3059\u3002",committedNoPr:o(e=>`\u30C6\u30B9\u30C8\u306F\u30B3\u30DF\u30C3\u30C8\u3055\u308C\u307E\u3057\u305F\u304C\u3001PR \u306F\u4F5C\u6210\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F: ${e}\u3002`,"committedNoPr"),testsHeldBack:o((e,t,n,i)=>`${e?"\u4E00\u90E8\u306E\u30C6\u30B9\u30C8\u306E\u307F\u63D0\u51FA\u3057\u307E\u3057\u305F":"\u30C6\u30B9\u30C8\u3092\u63D0\u51FA\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F"}\u3002\u6B21\u306E\u30C6\u30B9\u30C8\u30D5\u30A1\u30A4\u30EB\u306F ${t} \u306B\u307E\u3060\u306A\u3044\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u5FC5\u8981\u3068\u3059\u308B\u305F\u3081\u4FDD\u7559\u3057\u307E\u3057\u305F: ${n}\u3002\u5909\u66F4\u5185\u5BB9\u306F\u5B9F\u884C\u30A2\u30FC\u30C6\u30A3\u30D5\u30A1\u30AF\u30C8\u306E ${i} \u306B\u3042\u308A\u307E\u3059\u3002`,"testsHeldBack"),testsNotProposed:o(e=>`\u30C6\u30B9\u30C8\u306F PR \u3068\u3057\u3066\u63D0\u6848\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F: ${e}\u3002`,"testsNotProposed")}};var Lre={en:Nh,ja:ij},jre="en";function qs(e,t){return(Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0)??t}o(qs,"labelOf");function ce(){return Lre[jre]}o(ce,"t");var Gre=4,oj="\xABredacted\xBB";function aj(e){let t=new Set;for(let n of e){let i=(n??"").trim();i.length>=Gre&&t.add(i)}return[...t].sort((n,i)=>i.length-n.length)}o(aj,"redactionsFrom");function Vre(e){return e.replace(/AUTHORIZATION: (basic|bearer) \S+/gi,"AUTHORIZATION: $1 ***").replace(/x-access-token:[^@\s]+@/gi,"x-access-token:***@")}o(Vre,"redactGitCredentials");function ei(e,t){if(!e||t.length===0)return e;let n=e;for(let i of t)!i||!n.includes(i)||(n=n.split(i).join(oj));return n}o(ei,"redactSecrets");function Js(e,t){return ei(Vre(e),t)}o(Js,"redactCredentials");function zre(e,t){let n=o(i=>typeof i=="string"?t(i):Array.isArray(i)?i.map(n):i&&typeof i=="object"?Object.fromEntries(Object.entries(i).map(([r,s])=>[r,n(s)])):i,"walk");return n(e)}o(zre,"mapStrings");function ca(e,t){return t.length===0?e:zre(e,n=>ei(n,t))}o(ca,"redactDeep");var _Se=new TextDecoder("utf-8",{fatal:!0});var uj=600,Ph=300;function cj(e){return typeof e=="string"?e.trim():e instanceof Buffer?e.toString("utf-8").trim():""}o(cj,"streamText");function qre(e){let t=e,n=(typeof t?.message=="string"?t.message:String(e)).trim(),i=[cj(t?.stderr),cj(t?.stdout)].filter(Boolean);return i.length?[n.split(`
55
+ `,{mode:493})}catch{return}return`bash ${SA(t)}`}}o(gI,"scriptedCommand");function SA(e){return`'${e.split("'").join("'\\''")}'`}o(SA,"shQuote");var hI="data-safety-isolation.json";var lc=new Map,WT=new Map;function Dl(e){let t=le.openSync(e,"r"),n=Buffer.alloc(4);try{if(le.readSync(t,n,0,4,0)!==4)return!1}finally{le.closeSync(t)}let i=n.readUInt32BE(0);return i===2135247942||[4277009102,4277009103,3405691582,3405691583,3472551422,3489328638,3199925962,3216703178].includes(i)}o(Dl,"isNativeExecutable");function mI(e,t){e.protectedPaths?.includes(t)||(e.protectedPaths??=[]).push(t)}o(mI,"retainPath");function BA(e){let t=e.map(i=>{try{return le.realpathSync(i)}catch{return me.resolve(i)}}),n=process.versions.bun?(process.env.PATH??"/usr/bin:/bin").split(me.delimiter).filter(me.isAbsolute).map(i=>me.join(i,"node")):[process.execPath];for(let i of n)try{let r=le.realpathSync(i);if(le.accessSync(r,le.constants.X_OK),di(t,r)||!le.statSync(r).isFile()||!Dl(r))continue;let s=pc(e[0]);return s&&mI(s,r),r}catch{}throw new Error("an absolute native Node executable outside sandbox-writable locations is required for isolation")}o(BA,"trustedNodeBinary");var yI=/^(NODE_OPTIONS|NODE_PATH|BASH_ENV|BASHOPTS|SHELLOPTS|PS4|PROMPT_COMMAND|BASH_XTRACEFD|BASH_LOADABLES_PATH|ENV|ZDOTDIR|PYTHONPATH|PYTHONHOME|RUBYOPT|PERL5OPT|PERL5LIB|GCONV_PATH|OPENSSL_CONF|OPENSSL_ENGINES|LD_.*|DYLD_.*|BASH_FUNC_.*)$/,RW=/^(BASH_FUNC_.*|PS4|PROMPT_COMMAND)$/;function dc(e,t){let n={...t};n.PATH=e.bootstrapPath??KT(e.roots,process.env.PATH??"/usr/bin:/bin").map(i=>(mI(e,i),i)).join(me.delimiter),e.bootstrapPath=n.PATH,n.HOME=process.env.HOME,n.SHELL="/bin/bash";for(let i of["TMPDIR","TMP","TEMP"])process.env[i]?n[i]=process.env[i]:delete n[i];for(let i of Object.keys(n))yI.test(i)&&delete n[i];return n}o(dc,"bootstrapEnv");function KT(e,t){return t.split(me.delimiter).flatMap(n=>{if(!me.isAbsolute(n))return[];try{let i=le.realpathSync(n);if(di(e,i)||e.some(r=>uc(i,r)))return[];for(let r of le.readdirSync(i)){let s=me.join(i,r);try{le.accessSync(s,le.constants.X_OK)}catch{continue}if(le.statSync(s).isFile()&&di(e,le.realpathSync(s)))return[]}return[i]}catch{return[]}})}o(KT,"trustedPathEntries");var uc=o((e,t)=>t===e||t.startsWith(e+me.sep),"inside");function di(e,t){let n=["/tmp/claude","/private/tmp/claude"].map(i=>{try{return le.realpathSync(i)}catch{return i}});return[...e,...n].some(i=>uc(i,t))}o(di,"unsafeToolPath");var QW="Testbot could not install it because the Ubuntu package source was unavailable. Run the validation again later",xW=new Set;function _l(e,t,n,i=r=>xt(e,r)){let r=t.includes(me.sep)?[me.resolve(n,t)]:(dc(e,{PATH:process.env.PATH}).PATH??"").split(me.delimiter).map(s=>me.join(s,t));for(let s of r)try{if(le.accessSync(s,le.constants.X_OK),le.statSync(s).isFile())return le.realpathSync(s)}catch{}throw i(`a trusted executable could not be resolved (${t})${xW.has(t)?`: ${QW}`:""}`)}o(_l,"executableAt");function EI(e,t,n,i=[],r=[]){let s=o(h=>{try{return le.realpathSync(h)}catch{return me.resolve(h)}},"canonical"),a=s(t),c=[...new Set([a,...r,...[...lc.values()].flatMap(h=>h.roots)].map(s))],u={roots:c,ctx:{outputsDir:a},statusFile:""},l=dc(u,n),p=_l(u,e,a,h=>new Error(`Host transport unavailable: ${h}`));if(di(c,p)||!Dl(p))throw new Error(`Host transport requires a native host executable outside writable run roots (${e})`);let f=[p,...u.protectedPaths??[]];for(let h of i){let m;try{m=le.realpathSync(h)}catch{throw new Error(`Host transport asset is unavailable (${h})`)}if(di(c,m)||!le.statSync(m).isFile())throw new Error(`Host transport asset must be a file outside writable run roots (${h})`);f.push(m)}let g=WT.get(a)??new Set;f.forEach(h=>g.add(h)),WT.set(a,g);for(let h of lc.values())f.forEach(m=>mI(h,m));return{executable:p,env:l}}o(EI,"nativeHostTool");function XT(e,t){let n=e.bootstrapExecutables?.get(t);if(n)return n;let i=_l(e,t,e.roots[0]);return vI(e.roots[0],[{command:i}],[],[],!0),(e.bootstrapExecutables??=new Map).set(t,i),i}o(XT,"bootstrapExecutable");function II(e,t){let n=pc(e);return n?{executable:XT(n,t),env:dc(n,{PATH:process.env.PATH,HOME:process.env.HOME})}:{executable:t,env:process.env}}o(II,"bootstrapTool");function pc(e){let t=me.resolve(e);try{t=le.realpathSync(e)}catch{}let n=[...lc.values()],i=n.find(r=>r.roots.some(s=>uc(s,t)));if(i)return i;if(n.length===1)return n[0];if(n.length>1)throw xt(n[0],"a command outside the run roots has no unambiguous safety boundary")}o(pc,"forCwd");function eD(e){return`Shared-environment isolation unavailable: ${e}`}o(eD,"isolationUnavailableText");var kA=class extends Error{constructor(n){super(eD(n));this.detail=n;this.name="IsolationUnavailableError"}detail;static{o(this,"IsolationUnavailableError")}};function xt(e,t){return e.failure=t,tD(e.ctx,t),new kA(t)}o(xt,"refusal");function tD(e,t){let n=lc.get(e.outputsDir);n&&(n.incident=t),le.mkdirSync(e.outputsDir,{recursive:!0});let i=me.join(e.outputsDir,hI),r=`${i}.${(0,ZT.randomUUID)()}.tmp`;le.writeFileSync(r,JSON.stringify({reason:"isolation_unavailable",detail:t,actionRequired:!0},null,2),{mode:384,flag:"wx"}),le.renameSync(r,i)}o(tD,"recordIsolationFailure");function vI(e,t,n=[],i=[],r=!1){let s=pc(e);if(!s)return t.map(h=>({command:h.command,args:[...h.args??[]]}));let a=o(h=>{s.protectedPaths?.includes(h)||(s.protectedPaths??=[]).push(h)},"retain"),c=new Set,u=new Set,l=o(h=>{try{return le.realpathSync(h)}catch{throw xt(s,`unresolved tool asset: ${h}`)}},"realAsset"),p=o(h=>{let m=l(h);if(di(s.roots,m)||s.roots.some(I=>uc(m,I)))throw xt(s,"a configured tool package or dependency is installed in a sandbox-writable location");a(m);let E=o(I=>{if(!c.has(I)){c.add(I);for(let v of le.readdirSync(I,{withFileTypes:!0})){let b=me.join(I,v.name);if(v.isSymbolicLink()){let w=l(b);if(di(s.roots,w))throw xt(s,"a configured tool dependency is installed in a sandbox-writable location");le.statSync(w).isDirectory()?p(w):f(w)}else v.isDirectory()&&E(b)}}},"visit");E(m)},"protectDirectory"),f=o((h,m=!1,E=!1)=>{let I=l(h);if(di(s.roots,I))throw xt(s,"a configured tool executable or package is installed in a sandbox-writable location");if(a(I),!m&&u.has(I))return;u.add(I);let v,b=le.openSync(I,"r"),w=Buffer.alloc(256);try{le.readSync(b,w,0,w.length,0)}finally{le.closeSync(b)}if(m){let Q=w.toString().split(/\r?\n/,1)[0];if(Q.startsWith("#!")){let C=Q.slice(2).trim().split(/\s+/),T=C[0];if(me.basename(T)==="env"){let oe=_l(s,T,e);if(di(s.roots,oe)||!Dl(oe))throw xt(s,`unsafe shebang launcher: ${T}`);a(oe),C.shift(),C[0]==="-S"&&C.shift()}let k=le.statSync(I),Z=r&&(uc("/usr/bin",I)||uc("/bin",I))&&k.uid===0&&(k.mode&18)===0&&/^(?:sh|bash)$/.test(me.basename(C[0]));if(C.length!==1||!/^(?:node|nodejs|bun)$/.test(me.basename(C[0]))&&!Z)throw xt(s,"unsupported tool launcher: use a native executable or a plain Node/Bun script without interpreter flags");if(v=_l(s,C[0],e),di(s.roots,v)||!Dl(v))throw xt(s,`unsafe shebang interpreter: ${C[0]}`);a(v)}else if(!Dl(I))throw xt(s,"unsupported tool launcher: use a native executable or a plain Node/Bun script")}if(E||/\.[cm]?[jt]s$/.test(I)||/^#![^\n]*(?:node|nodejs|bun)\b/.test(w.toString())){let Q=me.dirname(I);for(let C=Q;;C=me.dirname(C)){if(le.existsSync(me.join(C,"package.json"))){Q=C;break}if(me.dirname(C)===C)break}p(Q);for(let C=Q;;C=me.dirname(C)){let T=me.join(C,"node_modules");if(le.existsSync(T)&&le.statSync(T).isDirectory()&&p(T),me.basename(C)==="node_modules"&&p(C),me.dirname(C)===C)break}}return v},"check"),g=[];for(let h of t){let m=_l(s,h.command,e),E=f(m,!0),I=me.basename(le.realpathSync(m));if(!r&&/^(?:sh|bash|dash|zsh|ksh|fish|csh|tcsh|python[\d.]*|pypy[\d.]*|perl[\d.]*|ruby[\d.]*|php[\d.]*|lua[\d.]*|java|deno|uv|uvx|pipx|poetry|pdm|Rscript|pwsh|powershell|env|xargs|nohup|nice|stdbuf|timeout)$/.test(I))throw xt(s,"unsupported tool launcher: dynamic interpreters and forwarding wrappers cannot retain their executable dependencies");if(!r&&/^(?:npm-cli|npx-cli)\.js$/.test(I)&&h.args?.length)throw xt(s,"unsupported tool launcher: dynamic package commands cannot retain their executable dependencies");let v;if(!r&&/^(?:node|nodejs|bun)$/.test(I)){let b=h.args??[],w=b[0]==="--"||I==="bun"&&b[0]==="run"?b[1]:b[0];if(!w||w.startsWith("-")||!le.existsSync(me.resolve(e,w))||!le.statSync(me.resolve(e,w)).isFile())throw xt(s,"unsupported tool launcher: Node/Bun tools require a script file entry without eval, module or preload flags");v=me.resolve(e,w)}g.push(E&&!r?{command:E,args:[m,...h.args??[]]}:{command:m,args:[...h.args??[]]});for(let b of h.args??[]){let w=me.resolve(e,b);!b.startsWith("-")&&le.existsSync(w)&&le.statSync(w).isFile()&&f(w,!1,w===v)}}for(let h of n)f(h);for(let h of i){let m=l(h);p(m);let E=o(w=>{f(w);try{return JSON.parse(le.readFileSync(w,"utf8"))}catch{throw xt(s,`the plugin configuration could not be read: ${w}`)}},"readJson"),I=o(w=>{if(!w||typeof w!="object")return;if(Array.isArray(w)){w.forEach(I);return}let Q=w;if(Q.type==="command"){if(typeof Q.command!="string")throw xt(s,"the plugin command hook has no literal command");let C=cc(Q.command.replace(/\$\{CLAUDE_PLUGIN_ROOT\}/g,m));if(!C.steps)throw xt(s,"the plugin command hook needs a literal native/Node command whose assets can be retained");for(let T of C.steps)vI(e,[{command:T[0],args:T.slice(1)}])}Object.values(Q).forEach(I)},"hooks"),v=me.join(m,".claude-plugin/plugin.json");if(le.existsSync(v)){let w=E(v);if(!w||typeof w!="object"||Array.isArray(w))throw xt(s,"the plugin manifest is not an object");let Q=w;if(Q.mcpServers)throw xt(s,"declare plugin MCP servers through the run's validated MCP configuration");let C=o(T=>{typeof T=="string"?I(E(me.resolve(m,T))):Array.isArray(T)?T.forEach(C):I(T)},"hookDocuments");C(Q.hooks)}let b=me.join(m,"hooks/hooks.json");if(le.existsSync(b)&&I(E(b)),le.existsSync(me.join(m,".mcp.json")))throw xt(s,"declare plugin MCP servers through the run's validated MCP configuration")}return g}o(vI,"assertToolAssetsSafe");function ks(e,t,n,i="data-safety-proxy"){let r=pc(t);if(!r)return{argv:[...e],env:n};let s=i==="open"?r.openSettings:r.settings;if(r.failure||!r.cli||!r.node||!s||!r.env)throw xt(r,r.failure??"the run boundary has not finished initialization");if(!le.existsSync(r.cli)||!le.existsSync(s)||!le.existsSync(r.node))throw xt(r,"the pinned sandbox runtime or its configuration is unavailable");try{if(JSON.parse(le.readFileSync(r.statusFile,"utf8")).notRun)throw new Error("the guarded proxy is unavailable")}catch{throw xt(r,"the guarded proxy is unavailable")}let a=i==="open",c=a?{...n,PATH:KT(r.roots,n.PATH??"").join(me.delimiter)}:n,u=dc(r,a?{...c}:{...c,...r.env}),l=Object.keys(c).filter(p=>(["PATH","HOME","SHELL"].includes(p)||yI.test(p)&&!RW.test(p))&&c[p]!==void 0).map(p=>`${p}=${c[p]}`);return{argv:[r.node,r.cli,"--settings",s,"--","/usr/bin/env",...l,...$W(r),...a?["NODE_USE_ENV_PROXY=1",...r.openTrust?["SSL_CERT_FILE","REQUESTS_CA_BUNDLE","CURL_CA_BUNDLE"].map(p=>`${p}=${r.openTrust}`):[]]:[],...e],env:u}}o(ks,"protectedCommand");function $W(e){let t=e.noProxy??"";return[`NO_PROXY=${t}`,`no_proxy=${t}`,...e.tmp?[...["TMPDIR","TMP","TEMP"].map(n=>`${n}=${e.tmp}`),...TW(e.tmp)]:[]]}o($W,"sandboxCommandEnv");function TW(e){let t=me.join(e,"npm-cache"),n=me.join(e,"pnpm");return[`npm_config_cache=${t}`,`NPM_CONFIG_CACHE=${t}`,`COREPACK_HOME=${me.join(e,"corepack")}`,`PNPM_HOME=${n}`,`pnpm_config_store_dir=${me.join(n,"store")}`,`pnpm_config_cache_dir=${me.join(n,"cache")}`,`pnpm_config_state_dir=${me.join(n,"state")}`,`YARN_GLOBAL_FOLDER=${me.join(e,"yarn")}`]}o(TW,"packageManagerDirs");function Do(e){return!!pc(e)}o(Do,"hasNetworkBoundary");function RA(e,t=process.env){let n=pc(e);return n?dc(n,{...t,...n.env}):t}o(RA,"networkBoundaryEnv");var wr=["-c","core.fsmonitor=false"],DW=new Set(["GH_TOKEN","GITHUB_TOKEN","GH_ENTERPRISE_TOKEN","GITHUB_ENTERPRISE_TOKEN","ACTIONS_RUNTIME_TOKEN","ACTIONS_ID_TOKEN_REQUEST_TOKEN","ACTIONS_ID_TOKEN_REQUEST_URL","SYSTEM_ACCESSTOKEN","SYSTEM_OIDCREQUESTURI","SKYRAMP_MCP_GITHUB_TOKEN","SSH_AUTH_SOCK","GIT_SSH","GIT_SSH_COMMAND","GITHUB_STEP_SUMMARY","SKYRAMP_REPOSITORY_SECRETS","SKYRAMP_REPOSITORY_SECRET_NAMES"]),Nl=new Set(["ANTHROPIC_API_KEY","ANTHROPIC_AUTH_TOKEN","CLAUDE_CODE_OAUTH_TOKEN","AWS_ACCESS_KEY_ID","AWS_SECRET_ACCESS_KEY","AWS_SESSION_TOKEN","AWS_BEARER_TOKEN_BEDROCK","AWS_PROFILE","AWS_WEB_IDENTITY_TOKEN_FILE","AWS_ROLE_ARN","AWS_ROLE_SESSION_NAME","AWS_CONTAINER_CREDENTIALS_FULL_URI","AWS_CONTAINER_CREDENTIALS_RELATIVE_URI","AWS_CONTAINER_AUTHORIZATION_TOKEN","AWS_CONTAINER_AUTHORIZATION_TOKEN_FILE"]);function Lt(e=process.env,t,n="repo-command"){let i={};for(let[r,s]of Object.entries(e))n==="repo-command"&&Nl.has(r)||(i[r]=s);Object.assign(i,t??{});for(let r of Object.keys(i))(DW.has(r)||r.startsWith("INPUT_"))&&delete i[r];return i}o(Lt,"untrustedChildEnv");var rD=require("async_hooks");function nD(e){return(e?.components??[]).filter(t=>!!t.repository)}o(nD,"sharedSutComponents");function QA(e){let t=e.sharedEnvironment;return t?.environmentId&&t.environmentAddress?!0:nD(t).length>0}o(QA,"requiresSharedEnvironmentGuard");var UIe=new rD.AsyncLocalStorage;var iD=["--no-pager","-c","core.hooksPath=/dev/null","-c","core.fsmonitor=false","-c","commit.gpgsign=false","-c","tag.gpgsign=false","-c","core.sshCommand=/usr/bin/false","-c","credential.helper=","-c","core.askPass=/usr/bin/false","-c","core.alternateRefsCommand=","-c","diff.external=","-c","protocol.allow=never","-c","protocol.https.allow=always"],_W="^(filter\\..*\\.(clean|smudge|process)|merge\\..*\\.driver|diff\\..*\\.(command|textconv))$";function NW(e){let t={...e,GIT_ALLOW_PROTOCOL:"https",GIT_TERMINAL_PROMPT:"0",GIT_ASKPASS:"/usr/bin/false",GIT_EDITOR:"/usr/bin/true",GIT_SEQUENCE_EDITOR:"/usr/bin/true"};for(let n of["GIT_CONFIG","GIT_CONFIG_PARAMETERS","GIT_EXEC_PATH","GIT_EXTERNAL_DIFF","GIT_SSH","GIT_SSH_COMMAND","GIT_SSH_VARIANT","GIT_PROXY_COMMAND","GIT_PAGER"])delete t[n];for(let n of Nl)delete t[n];return t}o(NW,"gitEnv");function PW(e,t){let n=II(e,"git"),i=n.executable,r=RA(e,{...NW(t),PATH:n.env.PATH}),s=ks([i,...iD,"config","--null","--name-only","--get-regexp",_W],e,r),a=[];try{a=(0,Pl.execFileSync)(s.argv[0],s.argv.slice(1),{cwd:e,env:s.env,encoding:"utf8",stdio:["ignore","pipe","pipe"],timeout:3e4}).split("\0").filter(Boolean)}catch(u){if(u.status!==1)throw u}if(a.some(u=>u.includes("=")))throw new Error("protected Git cannot safely disable an executable Git configuration key containing '='");let c=a.flatMap(u=>["-c",`${u}=${u.startsWith("merge.")?"false":""}`]);return{binary:i,env:r,config:[...iD,...c]}}o(PW,"gitPolicy");function xA(e,t,n=process.env){if(!Do(t))return{argv:["git",...e],env:n};let i=PW(t,n),r=[...e],s=new Set(["-c","-C","--config-env","--git-dir","--work-tree","--namespace","--super-prefix","--exec-path"]);for(let a=0;a<r.length;a++){if(s.has(r[a])){a++;continue}if(!r[a].startsWith("-")){r[a]==="diff"&&r.splice(a+1,0,"--no-ext-diff","--no-textconv");break}}return ks([i.binary,...i.config,...r],t,i.env)}o(xA,"protectedGitCommand");function jt(e,t){let n=xA(e,t.cwd,t.env??process.env);return(0,Pl.execFileSync)(n.argv[0],n.argv.slice(1),{...t,env:n.env})}o(jt,"execGitSync");function bI(e,t){let n=xA(e,t.cwd,t.env??process.env);return(0,Pl.spawnSync)(n.argv[0],n.argv.slice(1),{...t,env:n.env})}o(bI,"spawnGitSync");var sW=require("node:zlib");uu();var _h=o(e=>`${e} POM call${e===1?"":"s"}`,"calls"),rj=o((e,t)=>e===1?`1 ${t} test`:`${e} ${t} tests`,"tests"),Nh={listSeparator:", ",testRecommendationsImplementedHeader:o((e,t)=>`\u{1F4A1} Test Recommendations Implemented (${e} test${e===1?"":"s"}${t>e?`, ${t} cases`:""})`,"testRecommendationsImplementedHeader"),testTypeCellLabels:{},statusLabels:{},severityLabels:{},reuse:{label:"POM reuse",noPomLayer:"skipped \u2014 no page-object layer detected for this test",reusedAndVerified:o(e=>`${_h(e)} reused and verified`,"reusedAndVerified"),reusedThenVerified:o((e,t)=>`${_h(e)} reused, ${t} of them verified`,"reusedThenVerified"),reused:o(e=>`${_h(e)} reused`,"reused"),verified:o(e=>`${_h(e)} verified`,"verified"),unresolved:o(e=>`${e} not resolvable to POM source (informational, not declines)`,"unresolved"),candidates:o(e=>`${e} candidate POM file${e===1?"":"s"} detected`,"candidates"),verificationPassed:"verification passed",verificationFailed:"\u26A0\uFE0F verification did not pass",keptInline:o(e=>`kept inline: ${e}`,"keptInline"),gate:{"not-mapped":"not mapped","demoted-by-verify":"demoted by verification"}},testMaintenanceHeader:o(e=>`\u2705 Test Maintenance (${e})`,"testMaintenanceHeader"),maintenanceTableHeader:"| Test Type | Endpoint | File | Change | Before | After |",testResultsHeader:o(e=>`\u{1F9EA} Test Results (${e})`,"testResultsHeader"),columnVideo:"Video",videoDownloadLink:o(e=>`[\u{1F4F9} download](${e})`,"videoDownloadLink"),videosArtifactFallback:o(e=>`\u{1F4F9} Recorded UI test videos: [download from run artifacts](${e})`,"videosArtifactFallback"),issuesFoundHeader:o(e=>`\u26A0\uFE0F Issues Found (${e})`,"issuesFoundHeader"),configErrorsHeader:"\u2699\uFE0F Configuration Errors",nextStepsHeader:"### \u{1F4A1} Next Steps",caveatsHeader:"### \u26A0\uFE0F What this run could not prove",rows:{passed:o(e=>e?"passed against the running app":"passed","passed"),notRun:o(e=>e?"not run against a live app this run":"not run this run","notRun"),failedBug:o(e=>e?"failed against the running app":"failed","failedBug"),failedTest:o(e=>`failed \u2014 the test is at fault, not the app (${e})`,"failedTest"),executedOf:o((e,t)=>t?` and executed ${e} of them against the running app.`:` and executed ${e} of them.`,"executedOf"),noneExecuted:o(e=>e?"; none were executed against a live app this run.":"; none were executed this run.","noneExecuted"),staleResult:"From a run before this file's last change, not of the delivered test:"},caveats:{deployFailed:"The app could not be started, so nothing here was checked against a running system.",changeBrokeBringup:"This change appears to have broken the app's start-up: it could not run with the PR applied, so nothing was tested against it.",bringupFailed:"The app could not be started this run, for a reason outside this PR \u2014 nothing was tested against a live app.",missingSecret:o(e=>`The app could not be started this run: it needs ${e}, which this run had no value for. Nothing was tested against a live app.`,"missingSecret"),testsNotExecuted:"No test was run against a live app this run \u2014 an un-run suite is not evidence the change works.",findingsNotVerified:o(e=>`No test result confirms or refutes the suspected defects at ${e}.`,"findingsNotVerified"),failedAlone:o(e=>`These tests passed in the session but failed when Testbot ran them alone, so their results are not final: ${e}.`,"failedAlone"),missingCaseResults:o((e,t)=>{let n=t?` Latest run: ${t}`:"";return`No final result was recorded for written cases: ${e}.${n}`},"missingCaseResults"),recipeDrift:"The recorded way to start the app was out of date and had to be corrected before it would come up.",recipeNotSaved:"The repository had no saved way to start the app, so Testbot worked it out from the repository.",mockedDependency:o(e=>`${e} was mocked rather than really deployed \u2014 a green run against it is not proof.`,"mockedDependency"),finalizeNotReady:o(e=>`The tests are not ready to merge as they stand${e?`: ${e}`:"."}`,"finalizeNotReady"),ciNotCovered:"No CI workflow runs these tests, so they will not execute on future pull requests.",ciNotCoveredBecause:o(e=>`The repo's CI will not run some of these tests on future pull requests: ${e}`,"ciNotCoveredBecause"),ciUnconfirmed:o(e=>`Testbot could not confirm that the repo's CI collects ${e}: check that CI runs them.`,"ciUnconfirmed"),ciUnconfirmedAbsent:o(e=>`Testbot could not confirm that the repo's CI leaves out ${e}, which need services it does not start: check that CI does not run them.`,"ciUnconfirmedAbsent"),ciNotIntegrated:o(e=>`Not yet CI-integrated: ${e} need services the repo's CI does not start, so Testbot put them where CI does not run them. The CI notes say what to change to run them in CI.`,"ciNotIntegrated"),ciUnprovisioned:o(e=>`The repo's CI runs ${e} without starting what they need, so CI will fail on them until it starts those services.`,"ciUnprovisioned"),ciWithheld:o(e=>`Not in the tests PR: the repo's CI would run ${e} without starting what they need, which would fail CI. The CI notes say what to change to run them.`,"ciWithheld"),ciResultsUnread:o(e=>`Testbot could not read the CI results of ${e}, so no CI result there counted as evidence.`,"ciResultsUnread"),browserSuiteReadOnly:o((e,t)=>`${e} has a browser suite, but this run could not write there, so its ui tests are in ${t}.`,"browserSuiteReadOnly"),sutNotRequired:"No app was started: validation triage found no deployed behavior this change needs validated.",lintNotCovered:o(e=>`The repo's linter does not check ${e} \u2014 a style or type issue there would not be caught automatically.`,"lintNotCovered"),lintNotRun:o(e=>`The repo's linter did not check the test files, so they were delivered unlinted: ${e}.`,"lintNotRun"),analysisUnverified:o(e=>`Part of the change analysis could not be verified (${e} unresolved check${e===1?"":"s"}); the tests were planned treating those claims as unconfirmed.`,"analysisUnverified"),unitTestsNotRun:o(e=>`Testbot could not run the unit tests it selected, so no unit result here is its own re-run: ${e}`,"unitTestsNotRun"),componentsNotTested:o(e=>`Not tested: changed parts of the code the plan did not test. ${e}`,"componentsNotTested"),componentsWithoutReason:o(e=>`The plan gave no reason for leaving out: ${e}.`,"componentsWithoutReason"),targetNotesDeviation:o(e=>`Tests were not put where the Target notes say tests go: ${e}`,"targetNotesDeviation"),testSettingsDiffer:o(e=>`Verified under other settings than the repository's own test command uses, so the repository's build may treat these tests differently: ${e}.`,"testSettingsDiffer"),stageSalvaged:o((e,t)=>t.length===1?`The ${e} step kept what it had produced although its ${t[0]} check still failed after a repair, so treat that output as unconfirmed by it.`:`The ${e} step kept what it had produced although ${t.length} of its checks (${t.join(", ")}) still failed after a repair, so treat that output as unconfirmed by them.`,"stageSalvaged"),downstreamNotChecked:o(e=>`Not run: checks of other parts of the app that this change might affect. The change does not alter that behavior itself, so they are not needed to validate it. ${e}`,"downstreamNotChecked"),browserBuildNotDeclared:o((e,t,n)=>`Another browser build stood in for ${t}, the build the Playwright in ${e} declares (it links to another build), so its browser tests' results here may not match its CI. Its CI needs \`${n}\` there.`,"browserBuildNotDeclared"),resultsNotOfDeliveredTests:o(e=>`These test files were changed after their last run, so their results here are from an earlier version, not the delivered tests: ${e}.`,"resultsNotOfDeliveredTests"),videoMissing:o(e=>`No video was recorded for these browser tests, so their results here have no video to watch: ${e}.`,"videoMissing"),testsCouldNotRunHere:o((e,t)=>`${e} ${e===1?"test exists":"tests exist"} in this change, but this environment could not run ${e===1?"it":"them"}, so ${e===1?"it has":"they have"} no result here (not skipped): ${t}`,"testsCouldNotRunHere"),modelProviderDenied:o((e,t=!1)=>t?`${e}, the model provider, refused a call. The evidence already obtained is sufficient to determine this run\u2019s outcome.`:`${e}, the model provider, refused Testbot's calls, so the run stopped before it finished. Access was denied because of credentials, permissions, or a usage limit. For Skyramp-managed provider access, contact Skyramp support before running again; if you manage the provider account, ask its administrator to resolve access or usage limits. No changes to your code are needed.`,"modelProviderDenied"),stageInterruptedByProvider:o((e,t)=>`${t}, the model provider, interrupted the ${e} step. Testbot kept what that step had produced.`,"stageInterruptedByProvider"),planInterruptedByProvider:o((e,t)=>`${e}, the model provider, interrupted planning. Testbot kept the plan it had and reports the test results it obtained.`+(t?" Please try again later.":""),"planInterruptedByProvider"),modelProviderUnavailable:o((e,t=!1)=>t?`${e}, the model provider, was unavailable for a call. The evidence already obtained is sufficient to determine this run\u2019s outcome.`:`${e}, the model provider, was unavailable to Testbot, so this stage could not finish. Any results already obtained remain in this report. No changes to your code or Testbot setup are needed. Please try again later.`,"modelProviderUnavailable"),dataSafetyBrowserClean:"This run used a shared environment. Testbot's browser ran under a data-safety guard, which let it change only the records it created and deleted them afterwards.",dataSafetyNoBrowser:"This run used a shared environment. Testbot did not use its browser.",dataSafetyInvalidConfig:"The shared environment's data-safety configuration is invalid: see the gaps.",dataSafetyGuardCheckFailed:"Testbot could not verify the browser data-safety guard: see the gaps.",dataSafetyGuardUnconfirmed:"This run used a shared environment. Testbot used its browser, but the data-safety guard could not be confirmed active: see the gaps.",dataSafetyBrowserLeftovers:"This run used a shared environment. Testbot's browser ran under a data-safety guard, which let it change only the records it created, but not every record it created was deleted: see the gaps.",dataSafetyBrowserWithheld:"This run used a shared environment. Testbot did not use its browser: the Skyramp MCP server has no data-safety guard.",dataSafetyPlanOnly:"This run produced a plan for a shared environment. No runtime probes or tests were requested.",dataSafetyOffLimitsRulesOnly:"Off-limits requests from probes and executed tests are restricted by instruction only. Testbot does not enforce those requests.",dataSafetyAuthCreates:o(e=>`The agent's browser sent sign-in or sign-up requests: ${e}. The data-safety guard lets these through and does not delete what they create, for example a new account.`,"dataSafetyAuthCreates"),dataSafetyProxyOffLimitsRulesOnly:"Off-limits requests from the unguarded clients listed above are restricted by instruction only. Testbot does not enforce those requests.",dataSafetyRulesOnly:"For probes and tests outside the guarded browser, cleanup is required by instruction only.",dataSafetyProxy:o((e,t)=>`The ${e} went through Testbot's data-safety proxy. Not guarded, and held to deleting what they create by instruction only: ${t}.`,"dataSafetyProxy"),dataSafetyIsolationEnforced:o(()=>"Probe and test commands could reach the shared environment only through Testbot's data-safety guard.","dataSafetyIsolationEnforced"),dataSafetyIsolationRefused:"Some checks could not run with the shared-environment protection in place. Testbot did not run them without it.",dataSafetyProxyAuthCreates:o(e=>`The plan probes or the tests sent sign-in or sign-up requests: ${e}. The data-safety proxy lets these through and does not track what they create, for example a new account.`,"dataSafetyProxyAuthCreates"),dataSafetyGuardedProbes:"plan probes",dataSafetyGuardedTests:"test runs",dataSafetyAnd:" and ",dataSafetyCleanupConfirmed:"Testbot ran each test's declared cleanup, and each succeeded.",dataSafetyLeftRecords:o(e=>`These tests declare records they cannot delete from the shared environment: ${e}.`,"dataSafetyLeftRecords"),dataSafetyCleanupFailed:o(e=>`The cleanup of ${e} failed: what they created may still be in the shared environment.`,"dataSafetyCleanupFailed"),dataSafetyCleanupUnknown:o(e=>`The cleanup of ${e} is not known: Testbot did not check their cleanup.`,"dataSafetyCleanupUnknown")},isolationReport:{rationale:"Testbot could not run this validation inside the shared-environment isolation it requires, so it did not validate the change.",gap:o(e=>`Shared-environment isolation unavailable: ${e}`,"gap"),nextStep:"Fix what the gap names, then run the validation again.",nextStepPackageSource:"Run the validation again later, when the Ubuntu package source is available again. Nothing on this host or in the repository needs a change."},nextSteps:{componentMismatch:o((e,t,n,i)=>`${e} (${t}) in the Test Environment runs ${n}, which does not contain ${i}, the commit this run validates.`,"componentMismatch"),componentUnverified:o((e,t,n,i)=>`Testbot could not confirm that ${e} (${t}) in the Test Environment runs ${i}, the commit this run validates: it reports ${n}.`,"componentUnverified"),componentUnread:o((e,t,n)=>`Testbot could not confirm that ${e} (${t}) in the Test Environment runs ${n}, the commit this run validates: it has no record of which commit that component runs.`,"componentUnread"),deployCommit:o((e,t)=>`Deploy ${t} of ${e} to the Test Environment and run Testbot again: until it runs that commit, tests there do not validate this change.`,"deployCommit"),addSecret:o((e,t)=>`Add ${t?"a secret":"secrets"} named ${e} on the workflow host, as a GitHub Actions secret or, on Azure DevOps, a secret variable in the host repository's skyramp-testbot variable group under Pipelines \u203A Library. Then add ${t?"it":"them"} under Credentials on the Target's Setup page, and run Testbot again: a run's workflow passes Testbot only the Target's credentials, each from the workflow host's secret it is mapped to, and the app cannot start without ${t?"it":"them"}. Testbot does not make up a value.`,"addSecret")},providerOutageHeadline:o((e,t)=>`Testbot could not reach ${e} \u2014 it tried ${t} times without success.`,"providerOutageHeadline"),providerOutageActionStatusPage:o(e=>`Check ${e}. Once the service is healthy, re-run this workflow from its run page in the Actions tab.`,"providerOutageActionStatusPage"),providerRateLimitHeadline:o(e=>`Testbot was rate-limited by ${e} (HTTP 429).`,"providerRateLimitHeadline"),providerRateLimitAction:"Wait for the limit to reset, then re-run this workflow from its run page in the Actions tab. If this repeats, raise the rate limit on the credential this workflow uses or run Testbot on fewer pull requests at once.",providerUsageLimitHeadline:o(e=>`The account behind ${e} has reached its usage limit.`,"providerUsageLimitHeadline"),providerUsageLimitAction:"Raise the spend or token cap on the account behind this workflow's credential, then re-run this workflow from its run page in the Actions tab.",providerAuthExpiredHeadline:o(e=>`The credential Testbot uses to reach ${e} expired while the run was still working.`,"providerAuthExpiredHeadline"),providerAuthExpiredAction:"The credential is issued with a fixed lifetime, so a longer run can outlive it. Re-run this workflow from its run page in the Actions tab. If runs on this repository regularly last longer than that lifetime, issue the credential per job or split the run so each job stays inside it.",providerTimeoutHeadline:o(e=>`Testbot ran past its ${e}-minute time limit and was stopped.`,"providerTimeoutHeadline"),providerTimeoutAction:"Raise the `testbotTimeout` input on the workflow if runs on this repository legitimately need longer.",staged:{testsSourcePullRequest:o(e=>`Tests for source pull request ${e}`,"testsSourcePullRequest"),validatedTogether:o(e=>`Pull requests validated together: ${e}`,"validatedTogether"),requestedByPerson:o(e=>`Requested by ${e}`,"requestedByPerson"),requestedByPolicy:o(e=>`Started by the Validation Policy ${e}`,"requestedByPolicy"),notTranslated:{"no-time":"> \u26A0\uFE0F This report is in English: no time was left to translate it.",failed:"> \u26A0\uFE0F This report is in English: the translation failed."},noLiveApp:o(e=>`> \u26A0\uFE0F **No live app (SUT) was available this run** \u2014 the ${e} test(s) below were **not executed** (there was no app to run them against). Run them against a running app to confirm they pass (and that any repro test fails as intended).`,"noLiveApp"),unitTestsInFile:o((e,t,n)=>`**${e}**: ${t} unit test${t===1?"":"s"}${n?` for ${n}`:""}`,"unitTestsInFile"),addedToExistingFile:"added to an existing test file",testPackagesHeader:"### \u{1F4E6} Running these tests",testPackageLine:o((e,t,n="")=>`\`${e}/\` is a self-contained test package Skyramp Testbot owns and maintains, with its own manifest, lockfile and runner config.${n?` This run added it, with ${n}, installed in that package only.`:""} Run it with \`${t}\` while the app is running; to run it on every pull request, add that command to a CI job that has the app running.`,"testPackageLine"),appManifestsUntouched:"The application's own manifests and lockfiles were not changed.",dependencyChangesHeader:"### \u{1F4E6} Changes to the application's dependencies",dependencyChangeLine:o((e,t,n)=>`Added \`${e}\` to \`${t}\` (and its lockfile)${n?`: ${n}`:""}`,"dependencyChangeLine"),testMaintenanceHeader:"\u2705 Test Maintenance",keptNot:"kept, not ",declinedPlanned:"(declined the planned ",declinedMaintenanceHeader:"\u21A9\uFE0F Declined Maintenance",existingEvidenceHeader:"\u2705 Existing Evidence",trustedCheckPassed:o((e,t)=>`Trusted CI check ${e} passed${t?` on ${t}`:""}, establishing:`,"trustedCheckPassed"),testResultsHeader:"\u{1F9EA} Test Results",resultsTableHeader:"| Test ID | Test Type | Endpoint | Status | Details |",unitResultsTableHeader:"| Test ID | Test Type | Code under test | Test | Cases | Status | Details |",casesPassed:o((e,t,n)=>`${e}/${t} passed${n?`, ${n} skipped`:""}`,"casesPassed"),behaviourCoverageHeader:"\u{1F517} Behaviour Coverage",coverageCaption:o((e,t,n,i)=>` (${e} generated \xB7 ${t} modified \xB7 ${n} verified \xB7 ${i} executed)`,"coverageCaption"),coverageTableHeader:"| Behaviour | Source | Tested By | Maintained By |",writtenNotRun:"written, not run",issuesFoundHeader:"\u26A0\uFE0F Issues Found",requirementsHeader:o((e,t)=>`\u{1F4CB} Requirements (${e}/${t} clauses pass)`,"requirementsHeader"),requirementsTableHeader:"| Requirement | Clause | Tests | Result |",requirementsSummaryTableHeader:"| Requirement | Clauses passing | Not passing |",clauseStatuses:{},regressionGuard:" (regression guard)",caveatsHeader:"### \u26A0\uFE0F What This Run Could Not Prove",commentHeader:"### Skyramp Testbot",timedOut:"> \u26A0\uFE0F Run timed out \u2014 the results below are partial.",stopReasons:{},publishFailures:{},commitHook:o(e=>e?`${e} hook`:"commit hook","commitHook"),commitRefusedByHook:o((e,t)=>`Your repository's ${e} rejected the generated-test commit, so no Testbot PR was created. Hook error: \`${t}\`.`,"commitRefusedByHook"),commitHookCouldNotRun:o((e,t)=>`Your repository's ${e} could not run, so no Testbot PR was created: a command it calls is not installed on the runner. Hook error: \`${t}\`.`,"commitHookCouldNotRun"),maintenanceActions:{},stoppedEarly:o((e,t)=>`> \u26A0\uFE0F Run stopped early \u2014 ${e}. The results below are partial.${t}`,"stoppedEarly"),viewInSkyramp:o(e=>` [View in Skyramp](${e})`,"viewInSkyramp"),testsPr:{summaryHeader:"### Summary",targets:"The tests target:",moreItems:o(e=>`and ${e} more`,"moreItems"),counts:o((e,t)=>`${rj(e,"new")} and ${rj(t,"maintained")}.`,"counts"),types:o(e=>`Test types: ${e}.`,"types"),statusHeader:"### Validation status",noChange:"\u2139\uFE0F Nothing changed since the baseline.",noTestRan:"No test ran, and no existing evidence was accepted.",noLiveApp:"No live app (SUT) was available, so the tests were not run.",resultCounts:o((e,t,n)=>`Test results: ${e} passed, ${t} failed, ${n} not run.`,"resultCounts"),limitations:"Important failures and limitations:",verdict:o(e=>`The run's verdict is in [Run details](${e}).`,"verdict"),runningHeader:"### Running the tests",environment:o(e=>`The tests read these environment variables, which the job that runs them must set: ${e}.`,"environment"),filesChanged:"Review each test in the **Files changed** tab."},descriptionCut:o((e,t,n)=>`_\u2026 The rest is left out${t===void 0?", with more test results":t?`, with ${t} more test result${t===1?"":"s"}`:""}: Azure DevOps takes at most ${e} characters.${n?` [Full report](${n})`:""}_`,"descriptionCut"),testsReplaced:o((e,t,n)=>[t?`Skyramp Testbot replaced the tests on this pull request with the tests of [this run](${e}), commit \`${t}\`.`:`Skyramp Testbot replaced the tests on this pull request with the tests of [this run](${e}).`,n?`The tests of [the earlier run](${n}) are superseded.`:"The tests an earlier run wrote here are superseded."].join(" "),"testsReplaced"),setupRunEnds:{finished:"Setup run finished. Skyramp is checking the result.",failed:"Setup run failed.",timedOut:"Setup run ran out of time.",cancelledInSkyramp:"Setup run was cancelled in Skyramp.",stoppedToResume:"Setup run stopped. Resume it in Skyramp."},appUnreachable:o(e=>`Unable to contact the mothership ${e}. Please try again later.`,"appUnreachable"),couldNotStart:o(e=>`Skyramp Testbot could not start: ${e}`,"couldNotStart"),assembledAfterFailedChecks:o(e=>`> \u26A0\uFE0F This report was assembled automatically after the write-up step failed its checks; ${e} check(s) remain unmet \u2014 see the run log for details.`,"assembledAfterFailedChecks"),testbotPrLine:o((e,t,n)=>`Testbot PR${e?` (${e})`:""} : [${t}](${n})`,"testbotPrLine"),viewRun:o(e=>`_[View run](${e})_`,"viewRun"),testsPrNotOpened:o((e,t)=>`The tests PR could not be opened (${e}); the tests were pushed to branch \`${t}\`.`,"testsPrNotOpened"),testsNotDelivered:o(e=>`The tests could not be delivered: ${e}`,"testsNotDelivered"),testsPinnedNotDelivered:o((e,t,n)=>`${e}: ${t} ${t===1?"test":"tests"} written, ${n} maintained. The repository is pinned to a commit, so these changes were not delivered.`,"testsPinnedNotDelivered"),testsNotPushed:o((e,t)=>`The tests could not be pushed (${e}); they remain on the local branch \`${t}\`.`,"testsNotPushed"),testsPrRetargeted:o(e=>`The dev PR merged while tests were being generated \u2014 the tests PR targets its base branch${e?` (\`${e}\`)`:""} instead.`,"testsPrRetargeted"),testsPrUnchanged:"This push required no new test changes; the tests PR below is from an earlier run and was left as is.",committedNoPr:o(e=>`The tests were committed but no PR was opened: ${e}.`,"committedNoPr"),testsHeldBack:o((e,t,n,i)=>`${e?"Delivery partial":"Delivery failed: no tests were delivered"}. These test files need a pull request that is not on ${t} yet, so they were held back: ${n}. Their changes are in the run artifact's ${i}.`,"testsHeldBack"),testsNotProposed:o(e=>`The tests were not proposed in a pull request: ${e}.`,"testsNotProposed")}};var ij={testRecommendationsImplementedHeader:o((e,t)=>`\u{1F4A1} \u5B9F\u88C5\u3057\u305F\u30C6\u30B9\u30C8\u63A8\u5968\uFF08\u30C6\u30B9\u30C8 ${e}\u4EF6${t>e?`\u3001\u30B1\u30FC\u30B9 ${t}\u4EF6`:""}\uFF09`,"testRecommendationsImplementedHeader"),listSeparator:"\u3001",testTypeCellLabels:{smoke:"\u30B9\u30E2\u30FC\u30AF",fuzz:"\u30D5\u30A1\u30BA",contract:"\u30B3\u30F3\u30C8\u30E9\u30AF\u30C8",load:"\u8CA0\u8377",integration:"\u7D71\u5408",e2e:"E2E",ui:"UI",unit:"\u30E6\u30CB\u30C3\u30C8"},statusLabels:{Pass:"\u5408\u683C",Fail:"\u4E0D\u5408\u683C",Error:"\u30A8\u30E9\u30FC",Skipped:"\u30B9\u30AD\u30C3\u30D7"},severityLabels:{critical:"\u91CD\u5927",high:"\u9AD8",medium:"\u4E2D",low:"\u4F4E"},reuse:{label:"POM \u518D\u5229\u7528",noPomLayer:"\u30B9\u30AD\u30C3\u30D7 \u2014 \u3053\u306E\u30C6\u30B9\u30C8\u306B\u518D\u5229\u7528\u3067\u304D\u308B\u30DA\u30FC\u30B8\u30AA\u30D6\u30B8\u30A7\u30AF\u30C8\u5C64\u306F\u691C\u51FA\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F",reusedAndVerified:o(e=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u518D\u5229\u7528\u30FB\u691C\u8A3C\u6E08\u307F`,"reusedAndVerified"),reusedThenVerified:o((e,t)=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u518D\u5229\u7528\uFF08\u3046\u3061 ${t} \u4EF6\u3092\u691C\u8A3C\u6E08\u307F\uFF09`,"reusedThenVerified"),reused:o(e=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u518D\u5229\u7528`,"reused"),verified:o(e=>`POM \u547C\u3073\u51FA\u3057 ${e} \u4EF6\u3092\u691C\u8A3C\u6E08\u307F`,"verified"),unresolved:o(e=>`${e} \u4EF6\u306F POM \u30BD\u30FC\u30B9\u307E\u3067\u89E3\u6C7A\u3067\u304D\u305A\uFF08\u53C2\u8003\u60C5\u5831\u3067\u3042\u308A\u3001\u9664\u5916\u3067\u306F\u3042\u308A\u307E\u305B\u3093\uFF09`,"unresolved"),candidates:o(e=>`\u5019\u88DC\u3068\u306A\u308B POM \u30D5\u30A1\u30A4\u30EB ${e} \u4EF6\u3092\u691C\u51FA`,"candidates"),verificationPassed:"\u691C\u8A3C\u306B\u5408\u683C",verificationFailed:"\u26A0\uFE0F \u691C\u8A3C\u306B\u5408\u683C\u3057\u307E\u305B\u3093\u3067\u3057\u305F",keptInline:o(e=>`\u30A4\u30F3\u30E9\u30A4\u30F3\u306E\u307E\u307E: ${e}`,"keptInline"),gate:{"not-mapped":"\u30DE\u30C3\u30D4\u30F3\u30B0\u5BFE\u8C61\u5916","demoted-by-verify":"\u691C\u8A3C\u3067\u5DEE\u3057\u623B\u3057"}},testMaintenanceHeader:o(e=>`\u2705 \u30C6\u30B9\u30C8\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9\uFF08${e}\u4EF6\uFF09`,"testMaintenanceHeader"),maintenanceTableHeader:"| \u30C6\u30B9\u30C8\u7A2E\u5225 | \u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8 | \u30D5\u30A1\u30A4\u30EB | \u5909\u66F4\u5185\u5BB9 | \u5909\u66F4\u524D | \u5909\u66F4\u5F8C |",testResultsHeader:o(e=>`\u{1F9EA} \u30C6\u30B9\u30C8\u7D50\u679C\uFF08${e}\u4EF6\uFF09`,"testResultsHeader"),columnVideo:"\u30D3\u30C7\u30AA",videoDownloadLink:o(e=>`[\u{1F4F9} \u30C0\u30A6\u30F3\u30ED\u30FC\u30C9](${e})`,"videoDownloadLink"),videosArtifactFallback:o(e=>`\u{1F4F9} \u9332\u753B\u3055\u308C\u305F UI \u30C6\u30B9\u30C8\u30D3\u30C7\u30AA: [\u5B9F\u884C\u30A2\u30FC\u30C6\u30A3\u30D5\u30A1\u30AF\u30C8\u304B\u3089\u30C0\u30A6\u30F3\u30ED\u30FC\u30C9](${e})`,"videosArtifactFallback"),issuesFoundHeader:o(e=>`\u26A0\uFE0F \u691C\u51FA\u3055\u308C\u305F\u554F\u984C\uFF08${e}\u4EF6\uFF09`,"issuesFoundHeader"),configErrorsHeader:"\u2699\uFE0F \u8A2D\u5B9A\u30A8\u30E9\u30FC",nextStepsHeader:"### \u{1F4A1} \u6B21\u306E\u30B9\u30C6\u30C3\u30D7",caveatsHeader:"### \u26A0\uFE0F \u3053\u306E\u5B9F\u884C\u3067\u78BA\u8A8D\u3067\u304D\u306A\u304B\u3063\u305F\u3053\u3068",rows:{passed:o(e=>e?"\u8D77\u52D5\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u6210\u529F\u3057\u307E\u3057\u305F":"\u6210\u529F\u3057\u307E\u3057\u305F","passed"),notRun:o(e=>e?"\u3053\u306E\u5B9F\u884C\u3067\u306F\u30E9\u30A4\u30D6\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5B9F\u884C\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F":"\u3053\u306E\u5B9F\u884C\u3067\u306F\u5B9F\u884C\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F","notRun"),failedBug:o(e=>e?"\u8D77\u52D5\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5931\u6557\u3057\u307E\u3057\u305F":"\u5931\u6557\u3057\u307E\u3057\u305F","failedBug"),failedTest:o(e=>`\u5931\u6557\u3057\u307E\u3057\u305F \u2014 \u30A2\u30D7\u30EA\u3067\u306F\u306A\u304F\u30C6\u30B9\u30C8\u306B\u554F\u984C\u304C\u3042\u308A\u307E\u3059\uFF08${e}\uFF09`,"failedTest"),executedOf:o((e,t)=>t?`\u3001\u305D\u306E\u3046\u3061 ${e} \u4EF6\u3092\u8D77\u52D5\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5B9F\u884C\u3057\u307E\u3057\u305F\u3002`:`\u3001\u305D\u306E\u3046\u3061 ${e} \u4EF6\u3092\u5B9F\u884C\u3057\u307E\u3057\u305F\u3002`,"executedOf"),noneExecuted:o(e=>e?"\u3002\u3053\u306E\u5B9F\u884C\u3067\u306F\u30E9\u30A4\u30D6\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5B9F\u884C\u3055\u308C\u305F\u3082\u306E\u306F\u3042\u308A\u307E\u305B\u3093\u3002":"\u3002\u3053\u306E\u5B9F\u884C\u3067\u306F\u5B9F\u884C\u3055\u308C\u305F\u3082\u306E\u306F\u3042\u308A\u307E\u305B\u3093\u3002","noneExecuted"),staleResult:"\u3053\u306E\u30D5\u30A1\u30A4\u30EB\u306E\u6700\u5F8C\u306E\u5909\u66F4\u3088\u308A\u524D\u306E\u5B9F\u884C\u306E\u7D50\u679C\u3067\u3001\u63D0\u51FA\u3057\u305F\u30C6\u30B9\u30C8\u306E\u3082\u306E\u3067\u306F\u3042\u308A\u307E\u305B\u3093:"},caveats:{deployFailed:"\u30A2\u30D7\u30EA\u3092\u8D77\u52D5\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u3053\u3053\u306B\u793A\u3059\u5185\u5BB9\u306F\u7A3C\u50CD\u4E2D\u306E\u30B7\u30B9\u30C6\u30E0\u306B\u5BFE\u3057\u3066\u691C\u8A3C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",changeBrokeBringup:"\u3053\u306E\u5909\u66F4\u306B\u3088\u308A\u30A2\u30D7\u30EA\u306E\u8D77\u52D5\u304C\u58CA\u308C\u305F\u3068\u601D\u308F\u308C\u307E\u3059\u3002PR \u3092\u9069\u7528\u3057\u305F\u72B6\u614B\u3067\u8D77\u52D5\u3067\u304D\u305A\u3001\u30C6\u30B9\u30C8\u306F\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",bringupFailed:"\u3053\u306E PR \u3068\u306F\u7121\u95A2\u4FC2\u306E\u7406\u7531\u3067\u30A2\u30D7\u30EA\u3092\u8D77\u52D5\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3059\u308B\u30C6\u30B9\u30C8\u306F\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002",missingSecret:o(e=>`\u3053\u306E\u5B9F\u884C\u3067\u306F\u30A2\u30D7\u30EA\u3092\u8D77\u52D5\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u8D77\u52D5\u306B\u306F ${e} \u304C\u5FC5\u8981\u3067\u3059\u304C\u3001\u3053\u306E\u5B9F\u884C\u306B\u306F\u5024\u304C\u3042\u308A\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3059\u308B\u30C6\u30B9\u30C8\u306F\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002`,"missingSecret"),testsNotExecuted:"\u3053\u306E\u5B9F\u884C\u3067\u306F\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u30C6\u30B9\u30C8\u304C\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002\u672A\u5B9F\u884C\u306E\u30C6\u30B9\u30C8\u306F\u5909\u66F4\u304C\u6B63\u3057\u304F\u52D5\u4F5C\u3059\u308B\u8A3C\u62E0\u306B\u306A\u308A\u307E\u305B\u3093\u3002",findingsNotVerified:o(e=>`\u6B21\u306E\u7B87\u6240\u306E\u7591\u308F\u3057\u3044\u6B20\u9665\u3092\u78BA\u8A8D\u307E\u305F\u306F\u5426\u5B9A\u3059\u308B\u30C6\u30B9\u30C8\u7D50\u679C\u304C\u3042\u308A\u307E\u305B\u3093: ${e}\u3002`,"findingsNotVerified"),failedAlone:o(e=>`\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u306F\u30BB\u30C3\u30B7\u30E7\u30F3\u3067\u306F\u6210\u529F\u3057\u307E\u3057\u305F\u304C\u3001Testbot \u304C\u5358\u72EC\u3067\u5B9F\u884C\u3059\u308B\u3068\u5931\u6557\u3057\u305F\u305F\u3081\u3001\u7D50\u679C\u306F\u78BA\u5B9A\u3057\u3066\u3044\u307E\u305B\u3093: ${e}\u3002`,"failedAlone"),missingCaseResults:o((e,t)=>{let n=t?` \u6700\u65B0\u306E\u5B9F\u884C: ${t}`:"";return`\u4F5C\u6210\u3057\u305F\u30B1\u30FC\u30B9\u306E\u6700\u7D42\u7D50\u679C\u304C\u8A18\u9332\u3055\u308C\u3066\u3044\u307E\u305B\u3093: ${e}\u3002${n}`},"missingCaseResults"),recipeDrift:"\u8A18\u9332\u3055\u308C\u3066\u3044\u305F\u30A2\u30D7\u30EA\u306E\u8D77\u52D5\u624B\u9806\u304C\u53E4\u304F\u306A\u3063\u3066\u304A\u308A\u3001\u8D77\u52D5\u524D\u306B\u4FEE\u6B63\u304C\u5FC5\u8981\u3067\u3057\u305F\u3002",recipeNotSaved:"\u30EA\u30DD\u30B8\u30C8\u30EA\u306B\u30A2\u30D7\u30EA\u306E\u8D77\u52D5\u624B\u9806\u304C\u4FDD\u5B58\u3055\u308C\u3066\u3044\u306A\u304B\u3063\u305F\u305F\u3081\u3001Testbot \u304C\u30EA\u30DD\u30B8\u30C8\u30EA\u304B\u3089\u8D77\u52D5\u65B9\u6CD5\u3092\u5224\u65AD\u3057\u307E\u3057\u305F\u3002",mockedDependency:o(e=>`${e} \u306F\u5B9F\u969B\u306B\u30C7\u30D7\u30ED\u30A4\u3055\u308C\u305A\u30E2\u30C3\u30AF\u5316\u3055\u308C\u307E\u3057\u305F\u3002\u3053\u308C\u306B\u5BFE\u3059\u308B\u6210\u529F\u7D50\u679C\u306F\u8A3C\u660E\u306B\u306F\u306A\u308A\u307E\u305B\u3093\u3002`,"mockedDependency"),finalizeNotReady:o(e=>`\u30C6\u30B9\u30C8\u306F\u73FE\u72B6\u3067\u306F\u30DE\u30FC\u30B8\u53EF\u80FD\u306A\u72B6\u614B\u3067\u306F\u3042\u308A\u307E\u305B\u3093${e?`: ${e}`:"\u3002"}`,"finalizeNotReady"),ciNotCovered:"\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u3092\u5B9F\u884C\u3059\u308B CI \u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u304C\u306A\u3044\u305F\u3081\u3001\u4ECA\u5F8C\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u3067\u306F\u5B9F\u884C\u3055\u308C\u307E\u305B\u3093\u3002",ciNotCoveredBecause:o(e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u306F\u3001\u4ECA\u5F8C\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u3067\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u306E\u4E00\u90E8\u3092\u5B9F\u884C\u3057\u307E\u305B\u3093: ${e}`,"ciNotCoveredBecause"),ciUnconfirmedAbsent:o(e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u304C ${e} \u3092\u5B9F\u884C\u3057\u306A\u3044\u3053\u3068\u3092 Testbot \u306F\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3053\u308C\u3089\u306F CI \u304C\u8D77\u52D5\u3057\u306A\u3044\u30B5\u30FC\u30D3\u30B9\u3092\u5FC5\u8981\u3068\u3057\u307E\u3059\u3002CI \u3067\u5B9F\u884C\u3055\u308C\u306A\u3044\u3053\u3068\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,"ciUnconfirmedAbsent"),ciUnconfirmed:o(e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u304C ${e} \u3092\u53CE\u96C6\u3059\u308B\u3053\u3068\u3092 Testbot \u306F\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002CI \u3067\u5B9F\u884C\u3055\u308C\u308B\u304B\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,"ciUnconfirmed"),ciNotIntegrated:o(e=>`CI \u672A\u7D71\u5408: ${e} \u306F\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u304C\u8D77\u52D5\u3057\u306A\u3044\u30B5\u30FC\u30D3\u30B9\u3092\u5FC5\u8981\u3068\u3059\u308B\u305F\u3081\u3001Testbot \u306F CI \u304C\u5B9F\u884C\u3057\u306A\u3044\u5834\u6240\u306B\u914D\u7F6E\u3057\u307E\u3057\u305F\u3002CI \u3067\u5B9F\u884C\u3059\u308B\u305F\u3081\u306E\u5909\u66F4\u306F CI \u30CE\u30FC\u30C8\u306B\u8A18\u8F09\u3057\u3066\u3044\u307E\u3059\u3002`,"ciNotIntegrated"),ciWithheld:o(e=>`\u30C6\u30B9\u30C8 PR \u306B\u542B\u3081\u3066\u3044\u307E\u305B\u3093: \u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u306F ${e} \u3092\u5FC5\u8981\u306A\u30B5\u30FC\u30D3\u30B9\u3092\u8D77\u52D5\u305B\u305A\u306B\u5B9F\u884C\u3059\u308B\u305F\u3081\u3001CI \u304C\u5931\u6557\u3057\u307E\u3059\u3002CI \u3067\u5B9F\u884C\u3059\u308B\u305F\u3081\u306E\u5909\u66F4\u306F CI \u30CE\u30FC\u30C8\u306B\u8A18\u8F09\u3057\u3066\u3044\u307E\u3059\u3002`,"ciWithheld"),ciUnprovisioned:o(e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E CI \u306F ${e} \u3092\u5FC5\u8981\u306A\u30B5\u30FC\u30D3\u30B9\u3092\u8D77\u52D5\u305B\u305A\u306B\u5B9F\u884C\u3059\u308B\u305F\u3081\u3001\u305D\u308C\u3089\u306E\u30B5\u30FC\u30D3\u30B9\u3092\u8D77\u52D5\u3059\u308B\u307E\u3067 CI \u306F\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u3067\u5931\u6557\u3057\u307E\u3059\u3002`,"ciUnprovisioned"),ciResultsUnread:o(e=>`Testbot \u306F ${e} \u306E CI \u7D50\u679C\u3092\u8AAD\u307F\u53D6\u308C\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u305D\u3053\u3067\u306E CI \u7D50\u679C\u306F\u8A3C\u62E0\u3068\u3057\u3066\u6271\u308F\u308C\u3066\u3044\u307E\u305B\u3093\u3002`,"ciResultsUnread"),browserSuiteReadOnly:o((e,t)=>`${e} \u306B\u306F\u30D6\u30E9\u30A6\u30B6\u30C6\u30B9\u30C8\u30B9\u30A4\u30FC\u30C8\u304C\u3042\u308A\u307E\u3059\u304C\u3001\u3053\u306E\u5B9F\u884C\u3067\u306F\u66F8\u304D\u8FBC\u3081\u306A\u3044\u305F\u3081\u3001UI \u30C6\u30B9\u30C8\u306F ${t} \u306B\u3042\u308A\u307E\u3059\u3002`,"browserSuiteReadOnly"),sutNotRequired:"\u30A2\u30D7\u30EA\u306F\u8D77\u52D5\u3057\u3066\u3044\u307E\u305B\u3093\u3002\u691C\u8A3C\u30C8\u30EA\u30A2\u30FC\u30B8\u306B\u3088\u308A\u3001\u3053\u306E\u5909\u66F4\u3067\u691C\u8A3C\u304C\u5FC5\u8981\u306A\u30C7\u30D7\u30ED\u30A4\u5F8C\u306E\u632F\u308B\u821E\u3044\u306F\u306A\u3044\u3068\u5224\u65AD\u3055\u308C\u307E\u3057\u305F\u3002",lintNotCovered:o(e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30EA\u30F3\u30BF\u30FC\u306F ${e} \u3092\u30C1\u30A7\u30C3\u30AF\u3057\u307E\u305B\u3093\u3002\u30B9\u30BF\u30A4\u30EB\u3084\u578B\u306E\u554F\u984C\u304C\u81EA\u52D5\u7684\u306B\u306F\u691C\u51FA\u3055\u308C\u307E\u305B\u3093\u3002`,"lintNotCovered"),lintNotRun:o(e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30EA\u30F3\u30BF\u30FC\u306F\u30C6\u30B9\u30C8\u30D5\u30A1\u30A4\u30EB\u3092\u30C1\u30A7\u30C3\u30AF\u3057\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u30EA\u30F3\u30BF\u30FC\u3092\u901A\u3055\u305A\u306B\u63D0\u51FA\u3057\u307E\u3057\u305F: ${e}\u3002`,"lintNotRun"),analysisUnverified:o(e=>`\u5909\u66F4\u306E\u5206\u6790\u306E\u4E00\u90E8\u3092\u691C\u8A3C\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u672A\u89E3\u6C7A\u306E\u30C1\u30A7\u30C3\u30AF ${e} \u4EF6\uFF09\u3002\u8A72\u5F53\u3059\u308B\u4E3B\u5F35\u306F\u672A\u78BA\u8A8D\u3068\u3057\u3066\u6271\u3044\u3001\u30C6\u30B9\u30C8\u3092\u8A08\u753B\u3057\u307E\u3057\u305F\u3002`,"analysisUnverified"),unitTestsNotRun:o(e=>`Testbot \u306F\u9078\u629E\u3057\u305F\u30E6\u30CB\u30C3\u30C8\u30C6\u30B9\u30C8\u3092\u5B9F\u884C\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3053\u3053\u306B\u3042\u308B\u30E6\u30CB\u30C3\u30C8\u30C6\u30B9\u30C8\u306E\u7D50\u679C\u306F Testbot \u81EA\u8EAB\u306E\u518D\u5B9F\u884C\u306B\u3088\u308B\u3082\u306E\u3067\u306F\u3042\u308A\u307E\u305B\u3093: ${e}`,"unitTestsNotRun"),componentsNotTested:o(e=>`\u672A\u30C6\u30B9\u30C8: \u8A08\u753B\u304C\u30C6\u30B9\u30C8\u5BFE\u8C61\u306B\u3057\u306A\u304B\u3063\u305F\u3001\u5909\u66F4\u3055\u308C\u305F\u30B3\u30FC\u30C9\u306E\u90E8\u5206\u3067\u3059\u3002${e}`,"componentsNotTested"),componentsWithoutReason:o(e=>`\u8A08\u753B\u304C\u7406\u7531\u3092\u793A\u3055\u305A\u306B\u9664\u5916\u3057\u305F\u90E8\u5206: ${e}\u3002`,"componentsWithoutReason"),targetNotesDeviation:o(e=>`Target \u306E\u30E1\u30E2\u304C\u6307\u5B9A\u3059\u308B\u5834\u6240\u306B\u30C6\u30B9\u30C8\u3092\u7F6E\u3044\u3066\u3044\u307E\u305B\u3093: ${e}`,"targetNotesDeviation"),testSettingsDiffer:o(e=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u81EA\u8EAB\u306E\u30C6\u30B9\u30C8\u30B3\u30DE\u30F3\u30C9\u3068\u306F\u7570\u306A\u308B\u8A2D\u5B9A\u3067\u691C\u8A3C\u3057\u305F\u305F\u3081\u3001\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u30D3\u30EB\u30C9\u3067\u306F\u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u306E\u6271\u3044\u304C\u5909\u308F\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059: ${e}\u3002`,"testSettingsDiffer"),stageSalvaged:o((e,t)=>t.length===1?`${e} \u30B9\u30C6\u30C3\u30D7\u306F\u3001\u4FEE\u6B63\u5F8C\u3082 ${t[0]} \u306E\u30C1\u30A7\u30C3\u30AF\u306B\u901A\u3089\u306A\u304B\u3063\u305F\u3082\u306E\u306E\u3001\u4F5C\u6210\u3057\u305F\u51FA\u529B\u3092\u6B8B\u3057\u307E\u3057\u305F\u3002\u305D\u306E\u51FA\u529B\u306F\u3053\u306E\u30C1\u30A7\u30C3\u30AF\u3067\u78BA\u8A8D\u3055\u308C\u3066\u3044\u306A\u3044\u3082\u306E\u3068\u3057\u3066\u6271\u3063\u3066\u304F\u3060\u3055\u3044\u3002`:`${e} \u30B9\u30C6\u30C3\u30D7\u306F\u3001\u4FEE\u6B63\u5F8C\u3082 ${t.length} \u4EF6\u306E\u30C1\u30A7\u30C3\u30AF\uFF08${t.join("\u3001")}\uFF09\u306B\u901A\u3089\u306A\u304B\u3063\u305F\u3082\u306E\u306E\u3001\u4F5C\u6210\u3057\u305F\u51FA\u529B\u3092\u6B8B\u3057\u307E\u3057\u305F\u3002\u305D\u306E\u51FA\u529B\u306F\u3053\u308C\u3089\u306E\u30C1\u30A7\u30C3\u30AF\u3067\u78BA\u8A8D\u3055\u308C\u3066\u3044\u306A\u3044\u3082\u306E\u3068\u3057\u3066\u6271\u3063\u3066\u304F\u3060\u3055\u3044\u3002`,"stageSalvaged"),downstreamNotChecked:o(e=>`\u672A\u5B9F\u884C: \u3053\u306E\u5909\u66F4\u304C\u5F71\u97FF\u3057\u3046\u308B\u3001\u30A2\u30D7\u30EA\u306E\u4ED6\u306E\u90E8\u5206\u306E\u78BA\u8A8D\u3067\u3059\u3002\u3053\u306E\u5909\u66F4\u81EA\u4F53\u306F\u305D\u306E\u52D5\u4F5C\u3092\u5909\u3048\u306A\u3044\u305F\u3081\u3001\u5909\u66F4\u306E\u691C\u8A3C\u306B\u306F\u4E0D\u8981\u3067\u3059\u3002${e}`,"downstreamNotChecked"),browserBuildNotDeclared:o((e,t,n)=>`${e} \u306E Playwright \u304C\u6307\u5B9A\u3059\u308B\u30D6\u30E9\u30A6\u30B6\u306E\u30D3\u30EB\u30C9 ${t} \u306E\u4EE3\u308F\u308A\u306B\u3001\u5225\u306E\u30D3\u30EB\u30C9\u304C\u4F7F\u308F\u308C\u3066\u3044\u307E\u3057\u305F\uFF08\u5225\u306E\u30D3\u30EB\u30C9\u3078\u306E\u30EA\u30F3\u30AF\u306B\u306A\u3063\u3066\u3044\u307E\u3059\uFF09\u3002\u305D\u306E\u305F\u3081\u3001\u3053\u3053\u3067\u306E\u30D6\u30E9\u30A6\u30B6\u30C6\u30B9\u30C8\u306E\u7D50\u679C\u306F CI \u306E\u7D50\u679C\u3068\u4E00\u81F4\u3057\u306A\u3044\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002CI \u3067\u306F\u305D\u3053\u3067 \`${n}\` \u304C\u5FC5\u8981\u3067\u3059\u3002`,"browserBuildNotDeclared"),resultsNotOfDeliveredTests:o(e=>`\u6B21\u306E\u30C6\u30B9\u30C8\u30D5\u30A1\u30A4\u30EB\u306F\u6700\u5F8C\u306E\u5B9F\u884C\u306E\u5F8C\u306B\u5909\u66F4\u3055\u308C\u305F\u305F\u3081\u3001\u3053\u3053\u3067\u306E\u7D50\u679C\u306F\u4EE5\u524D\u306E\u7248\u306E\u3082\u306E\u3067\u3001\u63D0\u51FA\u3057\u305F\u30C6\u30B9\u30C8\u306E\u3082\u306E\u3067\u306F\u3042\u308A\u307E\u305B\u3093: ${e}\u3002`,"resultsNotOfDeliveredTests"),videoMissing:o(e=>`\u6B21\u306E\u30D6\u30E9\u30A6\u30B6\u30C6\u30B9\u30C8\u306F\u52D5\u753B\u304C\u8A18\u9332\u3055\u308C\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u3053\u3053\u3067\u306E\u7D50\u679C\u306B\u306F\u78BA\u8A8D\u3067\u304D\u308B\u52D5\u753B\u304C\u3042\u308A\u307E\u305B\u3093: ${e}\u3002`,"videoMissing"),testsCouldNotRunHere:o((e,t)=>`\u3053\u306E\u5909\u66F4\u306B\u306F ${e} \u4EF6\u306E\u30C6\u30B9\u30C8\u304C\u3042\u308A\u307E\u3059\u304C\u3001\u3053\u306E\u74B0\u5883\u3067\u306F\u5B9F\u884C\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u7D50\u679C\u304C\u3042\u308A\u307E\u305B\u3093\uFF08\u30B9\u30AD\u30C3\u30D7\u3067\u306F\u3042\u308A\u307E\u305B\u3093\uFF09: ${t}`,"testsCouldNotRunHere"),modelProviderDenied:o((e,t=!1)=>t?`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u304C\u547C\u3073\u51FA\u3057\u3092\u62D2\u5426\u3057\u307E\u3057\u305F\u3002\u3059\u3067\u306B\u5F97\u3089\u308C\u305F\u8A3C\u62E0\u306F\u3001\u3053\u306E\u5B9F\u884C\u306E\u7D50\u679C\u3092\u5224\u65AD\u3059\u308B\u306E\u306B\u5341\u5206\u3067\u3059\u3002`:`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u304C Testbot \u306E\u547C\u3073\u51FA\u3057\u3092\u62D2\u5426\u3057\u305F\u305F\u3081\u3001\u5B9F\u884C\u306F\u5B8C\u4E86\u524D\u306B\u505C\u6B62\u3057\u307E\u3057\u305F\u3002\u8A8D\u8A3C\u60C5\u5831\u3001\u6A29\u9650\u3001\u307E\u305F\u306F\u4F7F\u7528\u91CF\u306E\u4E0A\u9650\u306B\u3088\u308A\u30A2\u30AF\u30BB\u30B9\u304C\u62D2\u5426\u3055\u308C\u307E\u3057\u305F\u3002\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u3078\u306E\u30A2\u30AF\u30BB\u30B9\u3092 Skyramp \u304C\u7BA1\u7406\u3057\u3066\u3044\u308B\u5834\u5408\u306F\u3001\u518D\u5B9F\u884C\u3059\u308B\u524D\u306B Skyramp \u30B5\u30DD\u30FC\u30C8\u306B\u304A\u554F\u3044\u5408\u308F\u305B\u304F\u3060\u3055\u3044\u3002\u3054\u81EA\u8EAB\u3067\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E\u30A2\u30AB\u30A6\u30F3\u30C8\u3092\u7BA1\u7406\u3057\u3066\u3044\u308B\u5834\u5408\u306F\u3001\u305D\u306E\u7BA1\u7406\u8005\u306B\u30A2\u30AF\u30BB\u30B9\u307E\u305F\u306F\u4F7F\u7528\u91CF\u306E\u4E0A\u9650\u306E\u89E3\u6C7A\u3092\u4F9D\u983C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u30B3\u30FC\u30C9\u3092\u5909\u66F4\u3059\u308B\u5FC5\u8981\u306F\u3042\u308A\u307E\u305B\u3093\u3002`,"modelProviderDenied"),stageInterruptedByProvider:o((e,t)=>`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${t} \u306B\u3088\u308A ${e} \u306E\u6BB5\u968E\u304C\u4E2D\u65AD\u3055\u308C\u307E\u3057\u305F\u3002Testbot \u306F\u305D\u306E\u6BB5\u968E\u3067\u4F5C\u6210\u6E08\u307F\u306E\u5185\u5BB9\u3092\u6B8B\u3057\u307E\u3057\u305F\u3002`,"stageInterruptedByProvider"),planInterruptedByProvider:o((e,t)=>`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u306B\u3088\u308A\u8A08\u753B\u304C\u4E2D\u65AD\u3055\u308C\u307E\u3057\u305F\u3002Testbot \u306F\u4F5C\u6210\u6E08\u307F\u306E\u8A08\u753B\u3092\u6B8B\u3057\u3001\u5F97\u3089\u308C\u305F\u30C6\u30B9\u30C8\u7D50\u679C\u3092\u5831\u544A\u3057\u307E\u3059\u3002`+(t?"\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u518D\u5EA6\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002":""),"planInterruptedByProvider"),modelProviderUnavailable:o((e,t=!1)=>t?`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u3092\u547C\u3073\u51FA\u3057\u6642\u306B\u5229\u7528\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3059\u3067\u306B\u5F97\u3089\u308C\u305F\u8A3C\u62E0\u306F\u3001\u3053\u306E\u5B9F\u884C\u306E\u7D50\u679C\u3092\u5224\u65AD\u3059\u308B\u306E\u306B\u5341\u5206\u3067\u3059\u3002`:`\u30E2\u30C7\u30EB\u30D7\u30ED\u30D0\u30A4\u30C0\u30FC\u306E ${e} \u3092 Testbot \u304C\u5229\u7528\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u3053\u306E\u6BB5\u968E\u3092\u5B8C\u4E86\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3059\u3067\u306B\u5F97\u3089\u308C\u305F\u7D50\u679C\u306F\u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306B\u6B8B\u3063\u3066\u3044\u307E\u3059\u3002\u30B3\u30FC\u30C9\u3084 Testbot \u306E\u8A2D\u5B9A\u3092\u5909\u66F4\u3059\u308B\u5FC5\u8981\u306F\u3042\u308A\u307E\u305B\u3093\u3002\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u518D\u5EA6\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,"modelProviderUnavailable"),dataSafetyBrowserClean:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306E\u30D6\u30E9\u30A6\u30B6\u306F\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u306E\u4E0B\u3067\u52D5\u4F5C\u3057\u3001\u81EA\u5206\u304C\u4F5C\u6210\u3057\u305F\u30EC\u30B3\u30FC\u30C9\u3060\u3051\u3092\u5909\u66F4\u3057\u3001\u5F8C\u3067\u524A\u9664\u3057\u307E\u3057\u305F\u3002",dataSafetyNoBrowser:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306F\u30D6\u30E9\u30A6\u30B6\u3092\u4F7F\u7528\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyInvalidConfig:"\u5171\u6709\u74B0\u5883\u306E\u30C7\u30FC\u30BF\u5B89\u5168\u8A2D\u5B9A\u304C\u7121\u52B9\u3067\u3059\uFF08\u30AE\u30E3\u30C3\u30D7\u3092\u53C2\u7167\uFF09\u3002",dataSafetyGuardCheckFailed:"\u30D6\u30E9\u30A6\u30B6\u30FC\u306E\u30C7\u30FC\u30BF\u4FDD\u8B77\u30AC\u30FC\u30C9\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u8A73\u7D30\u306F\u4E0D\u8DB3\u4E8B\u9805\u3092\u53C2\u7167\u3057\u3066\u304F\u3060\u3055\u3044\u3002",dataSafetyGuardUnconfirmed:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306F\u30D6\u30E9\u30A6\u30B6\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u304C\u3001\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u304C\u6709\u52B9\u3067\u3042\u3063\u305F\u3053\u3068\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u30AE\u30E3\u30C3\u30D7\u3092\u53C2\u7167\uFF09\u3002",dataSafetyBrowserLeftovers:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Testbot \u306E\u30D6\u30E9\u30A6\u30B6\u306F\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u306E\u4E0B\u3067\u52D5\u4F5C\u3057\u3001\u81EA\u5206\u304C\u4F5C\u6210\u3057\u305F\u30EC\u30B3\u30FC\u30C9\u3060\u3051\u3092\u5909\u66F4\u3057\u307E\u3057\u305F\u304C\u3001\u4F5C\u6210\u3057\u305F\u30EC\u30B3\u30FC\u30C9\u306E\u4E00\u90E8\u306F\u524A\u9664\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\uFF08\u30AE\u30E3\u30C3\u30D7\u3092\u53C2\u7167\uFF09\u3002",dataSafetyBrowserWithheld:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u3092\u4F7F\u7528\u3057\u307E\u3057\u305F\u3002Skyramp MCP \u30B5\u30FC\u30D0\u30FC\u306B\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u304C\u306A\u3044\u305F\u3081\u3001Testbot \u306F\u30D6\u30E9\u30A6\u30B6\u3092\u4F7F\u7528\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyPlanOnly:"\u3053\u306E\u5B9F\u884C\u306F\u5171\u6709\u74B0\u5883\u306E\u30C6\u30B9\u30C8\u8A08\u753B\u3092\u4F5C\u6210\u3057\u307E\u3057\u305F\u3002\u5B9F\u884C\u6642\u30D7\u30ED\u30FC\u30D6\u3084\u30C6\u30B9\u30C8\u306F\u8981\u6C42\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyOffLimitsRulesOnly:"\u30D7\u30ED\u30FC\u30D6\u3068\u5B9F\u884C\u3059\u308B\u30C6\u30B9\u30C8\u306E\u7ACB\u5165\u7981\u6B62\u30EB\u30FC\u30C8\u3078\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u306F\u3001\u6307\u793A\u306B\u3088\u3063\u3066\u5236\u9650\u3059\u308B\u3060\u3051\u3067\u3059\u3002Testbot \u306F\u305D\u308C\u3089\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u5F37\u5236\u7684\u306B\u5236\u9650\u3057\u307E\u305B\u3093\u3002",dataSafetyAuthCreates:o(e=>`\u30A8\u30FC\u30B8\u30A7\u30F3\u30C8\u306E\u30D6\u30E9\u30A6\u30B6\u304C\u30B5\u30A4\u30F3\u30A4\u30F3\u307E\u305F\u306F\u30B5\u30A4\u30F3\u30A2\u30C3\u30D7\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u9001\u4FE1\u3057\u307E\u3057\u305F: ${e}\u3002\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u306F\u3053\u308C\u3089\u3092\u901A\u904E\u3055\u305B\u3001\u4F5C\u6210\u3055\u308C\u305F\u3082\u306E\uFF08\u65B0\u3057\u3044\u30A2\u30AB\u30A6\u30F3\u30C8\u306A\u3069\uFF09\u306F\u524A\u9664\u3057\u307E\u305B\u3093\u3002`,"dataSafetyAuthCreates"),dataSafetyProxyOffLimitsRulesOnly:"\u4E0A\u8A18\u306E\u30AC\u30FC\u30C9\u3055\u308C\u306A\u3044\u30AF\u30E9\u30A4\u30A2\u30F3\u30C8\u304B\u3089\u306E\u7ACB\u5165\u7981\u6B62\u30EB\u30FC\u30C8\u3078\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u306F\u3001\u6307\u793A\u306B\u3088\u3063\u3066\u5236\u9650\u3059\u308B\u3060\u3051\u3067\u3059\u3002Testbot \u306F\u305D\u308C\u3089\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u5F37\u5236\u7684\u306B\u5236\u9650\u3057\u307E\u305B\u3093\u3002",dataSafetyRulesOnly:"\u30AC\u30FC\u30C9\u4ED8\u304D\u30D6\u30E9\u30A6\u30B6\u306E\u5916\u3067\u884C\u3046\u30D7\u30ED\u30FC\u30D6\u3068\u30C6\u30B9\u30C8\u306B\u306F\u3001\u4F5C\u6210\u3057\u305F\u30C7\u30FC\u30BF\u3092\u524A\u9664\u3059\u308B\u3088\u3046\u6307\u793A\u3059\u308B\u3060\u3051\u3067\u3059\u3002",dataSafetyProxy:o((e,t)=>`${e}\u306F Testbot \u306E\u30C7\u30FC\u30BF\u5B89\u5168\u30D7\u30ED\u30AD\u30B7\u3092\u7D4C\u7531\u3057\u307E\u3057\u305F\u3002\u30AC\u30FC\u30C9\u3055\u308C\u305A\u3001\u4F5C\u6210\u3057\u305F\u3082\u306E\u3092\u524A\u9664\u3059\u308B\u3088\u3046\u6307\u793A\u3055\u308C\u308B\u3060\u3051\u306E\u5BFE\u8C61: ${t}\u3002`,"dataSafetyProxy"),dataSafetyIsolationEnforced:o(()=>"\u30D7\u30ED\u30FC\u30D6\u3068\u30C6\u30B9\u30C8\u30B3\u30DE\u30F3\u30C9\u306F\u3001Testbot \u306E\u30C7\u30FC\u30BF\u5B89\u5168\u30AC\u30FC\u30C9\u3092\u901A\u3057\u3066\u306E\u307F\u5171\u6709\u74B0\u5883\u306B\u30A2\u30AF\u30BB\u30B9\u3067\u304D\u307E\u3057\u305F\u3002","dataSafetyIsolationEnforced"),dataSafetyIsolationRefused:"\u4E00\u90E8\u306E\u30C1\u30A7\u30C3\u30AF\u306F\u3001\u5171\u6709\u74B0\u5883\u306E\u4FDD\u8B77\u3092\u6709\u52B9\u306B\u3057\u305F\u307E\u307E\u3067\u306F\u5B9F\u884C\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002Testbot \u306F\u3001\u4FDD\u8B77\u306A\u3057\u3067\u305D\u308C\u3089\u3092\u5B9F\u884C\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",dataSafetyProxyAuthCreates:o(e=>`\u8A08\u753B\u6642\u306E\u30D7\u30ED\u30FC\u30D6\u307E\u305F\u306F\u30C6\u30B9\u30C8\u304C\u30B5\u30A4\u30F3\u30A4\u30F3\u307E\u305F\u306F\u30B5\u30A4\u30F3\u30A2\u30C3\u30D7\u306E\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u9001\u4FE1\u3057\u307E\u3057\u305F: ${e}\u3002\u30C7\u30FC\u30BF\u5B89\u5168\u30D7\u30ED\u30AD\u30B7\u306F\u3053\u308C\u3089\u3092\u901A\u904E\u3055\u305B\u3001\u4F5C\u6210\u3055\u308C\u305F\u3082\u306E\uFF08\u65B0\u3057\u3044\u30A2\u30AB\u30A6\u30F3\u30C8\u306A\u3069\uFF09\u306F\u8FFD\u8DE1\u3057\u307E\u305B\u3093\u3002`,"dataSafetyProxyAuthCreates"),dataSafetyGuardedProbes:"\u8A08\u753B\u6642\u306E\u30D7\u30ED\u30FC\u30D6",dataSafetyGuardedTests:"\u30C6\u30B9\u30C8\u306E\u5B9F\u884C",dataSafetyAnd:"\u3068",dataSafetyCleanupConfirmed:"Testbot \u306F\u5404\u30C6\u30B9\u30C8\u304C\u5BA3\u8A00\u3057\u305F\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u5B9F\u884C\u3057\u3001\u3059\u3079\u3066\u6210\u529F\u3057\u307E\u3057\u305F\u3002",dataSafetyLeftRecords:o(e=>`\u6B21\u306E\u30C6\u30B9\u30C8\u306F\u5171\u6709\u74B0\u5883\u304B\u3089\u524A\u9664\u3067\u304D\u306A\u3044\u30EC\u30B3\u30FC\u30C9\u3092\u5BA3\u8A00\u3057\u3066\u3044\u307E\u3059: ${e}\u3002`,"dataSafetyLeftRecords"),dataSafetyCleanupFailed:o(e=>`${e} \u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u306F\u5931\u6557\u3057\u307E\u3057\u305F\u3002\u4F5C\u6210\u3057\u305F\u3082\u306E\u304C\u5171\u6709\u74B0\u5883\u306B\u6B8B\u3063\u3066\u3044\u308B\u53EF\u80FD\u6027\u304C\u3042\u308A\u307E\u3059\u3002`,"dataSafetyCleanupFailed"),dataSafetyCleanupUnknown:o(e=>`${e} \u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u306F\u4E0D\u660E\u3067\u3059\u3002Testbot \u306F\u305D\u306E\u30AF\u30EA\u30FC\u30F3\u30A2\u30C3\u30D7\u3092\u78BA\u8A8D\u3057\u3066\u3044\u307E\u305B\u3093\u3002`,"dataSafetyCleanupUnknown")},isolationReport:{rationale:"Testbot \u306F\u3001\u5FC5\u8981\u306A\u5171\u6709\u74B0\u5883\u306E\u9694\u96E2\u306E\u4E2D\u3067\u3053\u306E\u691C\u8A3C\u3092\u5B9F\u884C\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u5909\u66F4\u3092\u691C\u8A3C\u3057\u307E\u305B\u3093\u3067\u3057\u305F\u3002",gap:o(e=>`\u5171\u6709\u74B0\u5883\u306E\u9694\u96E2\u3092\u5229\u7528\u3067\u304D\u307E\u305B\u3093: ${e}`,"gap"),nextStep:"\u30AE\u30E3\u30C3\u30D7\u306B\u8A18\u8F09\u3055\u308C\u305F\u554F\u984C\u3092\u89E3\u6D88\u3057\u3066\u304B\u3089\u3001\u691C\u8A3C\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",nextStepPackageSource:"Ubuntu \u306E\u30D1\u30C3\u30B1\u30FC\u30B8\u914D\u5E03\u5143\u304C\u518D\u3073\u5229\u7528\u53EF\u80FD\u306B\u306A\u3063\u3066\u304B\u3089\u3001\u691C\u8A3C\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u3053\u306E\u30DB\u30B9\u30C8\u3084\u30EA\u30DD\u30B8\u30C8\u30EA\u3092\u5909\u66F4\u3059\u308B\u5FC5\u8981\u306F\u3042\u308A\u307E\u305B\u3093\u3002"},nextSteps:{componentMismatch:o((e,t,n,i)=>`Test Environment \u306E ${e}\uFF08${t}\uFF09\u306F ${n} \u3092\u5B9F\u884C\u3057\u3066\u304A\u308A\u3001\u3053\u306E\u5B9F\u884C\u304C\u691C\u8A3C\u3059\u308B\u30B3\u30DF\u30C3\u30C8 ${i} \u3092\u542B\u3093\u3067\u3044\u307E\u305B\u3093\u3002`,"componentMismatch"),componentUnverified:o((e,t,n,i)=>`Test Environment \u306E ${e}\uFF08${t}\uFF09\u304C\u3001\u3053\u306E\u5B9F\u884C\u304C\u691C\u8A3C\u3059\u308B\u30B3\u30DF\u30C3\u30C8 ${i} \u3092\u5B9F\u884C\u3057\u3066\u3044\u308B\u3053\u3068\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u5831\u544A\u3055\u308C\u305F\u30B3\u30DF\u30C3\u30C8: ${n}\u3002`,"componentUnverified"),componentUnread:o((e,t,n)=>`Test Environment \u306E ${e}\uFF08${t}\uFF09\u304C\u3001\u3053\u306E\u5B9F\u884C\u304C\u691C\u8A3C\u3059\u308B\u30B3\u30DF\u30C3\u30C8 ${n} \u3092\u5B9F\u884C\u3057\u3066\u3044\u308B\u3053\u3068\u3092\u78BA\u8A8D\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u3053\u306E\u30B3\u30F3\u30DD\u30FC\u30CD\u30F3\u30C8\u304C\u5B9F\u884C\u3057\u3066\u3044\u308B\u30B3\u30DF\u30C3\u30C8\u306E\u8A18\u9332\u304C\u3042\u308A\u307E\u305B\u3093\u3002`,"componentUnread"),deployCommit:o((e,t)=>`${e} \u306E ${t} \u3092 Test Environment \u306B\u30C7\u30D7\u30ED\u30A4\u3057\u3066\u3001Testbot \u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u305D\u306E\u30B3\u30DF\u30C3\u30C8\u304C\u5B9F\u884C\u3055\u308C\u308B\u307E\u3067\u3001\u305D\u3053\u3067\u306E\u30C6\u30B9\u30C8\u306F\u3053\u306E\u5909\u66F4\u306E\u691C\u8A3C\u306B\u306A\u308A\u307E\u305B\u3093\u3002`,"deployCommit"),addSecret:o((e,t)=>`\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u306E\u30DB\u30B9\u30C8\u306B ${e} \u3068\u3044\u3046\u540D\u524D\u306E\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\uFF08GitHub Actions \u306E\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\u3001\u307E\u305F\u306F Azure DevOps \u3067\u306F\u30DB\u30B9\u30C8\u30EA\u30DD\u30B8\u30C8\u30EA\u306E Pipelines \u203A Library \u306B\u3042\u308B skyramp-testbot \u5909\u6570\u30B0\u30EB\u30FC\u30D7\u306E\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\u5909\u6570\uFF09\u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u6B21\u306B Target \u306E Setup \u30DA\u30FC\u30B8\u306E Credentials \u306B\u8FFD\u52A0\u3057\u3001Testbot \u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u5B9F\u884C\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u304C Testbot \u306B\u6E21\u3059\u306E\u306F Target \u306E\u8A8D\u8A3C\u60C5\u5831\u3060\u3051\u3067\u3001\u305D\u308C\u305E\u308C\u5BFE\u5FDC\u4ED8\u3051\u3089\u308C\u305F\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u306E\u30DB\u30B9\u30C8\u306E\u30B7\u30FC\u30AF\u30EC\u30C3\u30C8\u304B\u3089\u6E21\u3055\u308C\u307E\u3059\u3002\u30A2\u30D7\u30EA\u306F\u3053\u308C\u306A\u3057\u3067\u306F\u8D77\u52D5\u3067\u304D\u305A\u3001Testbot \u304C\u5024\u3092\u4F5C\u308B\u3053\u3068\u306F\u3042\u308A\u307E\u305B\u3093\u3002`,"addSecret")},providerOutageHeadline:o((e,t)=>`${e} \u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\u3002Testbot \u306F ${t} \u56DE\u8A66\u884C\u3057\u307E\u3057\u305F\u304C\u5931\u6557\u3057\u307E\u3057\u305F\u3002`,"providerOutageHeadline"),providerOutageActionStatusPage:o(e=>`${e} \u3067\u72B6\u6CC1\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u30B5\u30FC\u30D3\u30B9\u304C\u5FA9\u65E7\u3057\u305F\u3089\u3001Actions \u30BF\u30D6\u306E\u5B9F\u884C\u30DA\u30FC\u30B8\u304B\u3089\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,"providerOutageActionStatusPage"),providerRateLimitHeadline:o(e=>`${e} \u306E\u30EC\u30FC\u30C8\u5236\u9650\u306B\u3088\u308A\u5B9F\u884C\u304C\u4E2D\u65AD\u3055\u308C\u307E\u3057\u305F (HTTP 429)\u3002`,"providerRateLimitHeadline"),providerRateLimitAction:"\u5236\u9650\u304C\u89E3\u9664\u3055\u308C\u308B\u307E\u3067\u5F85\u3063\u3066\u304B\u3089\u3001Actions \u30BF\u30D6\u306E\u5B9F\u884C\u30DA\u30FC\u30B8\u304B\u3089\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u7E70\u308A\u8FD4\u3059\u5834\u5408\u306F\u3001\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u304C\u4F7F\u7528\u3059\u308B\u8A8D\u8A3C\u60C5\u5831\u306E\u30EC\u30FC\u30C8\u5236\u9650\u3092\u5F15\u304D\u4E0A\u3052\u308B\u304B\u3001\u540C\u6642\u306B\u5B9F\u884C\u3059\u308B PR \u306E\u6570\u3092\u6E1B\u3089\u3057\u3066\u304F\u3060\u3055\u3044\u3002",providerUsageLimitHeadline:o(e=>`${e} \u306E\u30A2\u30AB\u30A6\u30F3\u30C8\u304C\u5229\u7528\u4E0A\u9650\u306B\u9054\u3057\u307E\u3057\u305F\u3002`,"providerUsageLimitHeadline"),providerUsageLimitAction:"\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u306E\u8A8D\u8A3C\u60C5\u5831\u306B\u7D10\u3065\u304F\u30A2\u30AB\u30A6\u30F3\u30C8\u306E\u5229\u7528\u4E0A\u9650\u3092\u5F15\u304D\u4E0A\u3052\u3066\u304B\u3089\u3001Actions \u30BF\u30D6\u306E\u5B9F\u884C\u30DA\u30FC\u30B8\u304B\u3089\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002",providerAuthExpiredHeadline:o(e=>`\u5B9F\u884C\u4E2D\u306B\u3001Testbot \u304C ${e} \u3078\u63A5\u7D9A\u3059\u308B\u305F\u3081\u306E\u8A8D\u8A3C\u60C5\u5831\u306E\u6709\u52B9\u671F\u9650\u304C\u5207\u308C\u307E\u3057\u305F\u3002`,"providerAuthExpiredHeadline"),providerAuthExpiredAction:"\u8A8D\u8A3C\u60C5\u5831\u306E\u6709\u52B9\u671F\u9593\u306F\u56FA\u5B9A\u306E\u305F\u3081\u3001\u5B9F\u884C\u6642\u9593\u304C\u9577\u3044\u3068\u305D\u306E\u671F\u9593\u3092\u8D85\u3048\u308B\u3053\u3068\u304C\u3042\u308A\u307E\u3059\u3002Actions \u30BF\u30D6\u306E\u5B9F\u884C\u30DA\u30FC\u30B8\u304B\u3089\u3053\u306E\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u3092\u518D\u5B9F\u884C\u3057\u3066\u304F\u3060\u3055\u3044\u3002\u3053\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u5B9F\u884C\u304C\u6709\u52B9\u671F\u9593\u3092\u5E38\u306B\u8D85\u3048\u308B\u5834\u5408\u306F\u3001\u30B8\u30E7\u30D6\u3054\u3068\u306B\u8A8D\u8A3C\u60C5\u5831\u3092\u767A\u884C\u3059\u308B\u304B\u3001\u5404\u30B8\u30E7\u30D6\u304C\u6709\u52B9\u671F\u9593\u5185\u306B\u53CE\u307E\u308B\u3088\u3046\u5B9F\u884C\u3092\u5206\u5272\u3057\u3066\u304F\u3060\u3055\u3044\u3002",providerTimeoutHeadline:o(e=>`Testbot \u306F\u5236\u9650\u6642\u9593 ${e} \u5206\u3092\u8D85\u3048\u305F\u305F\u3081\u505C\u6B62\u3055\u308C\u307E\u3057\u305F\u3002`,"providerTimeoutHeadline"),providerTimeoutAction:"\u3053\u306E\u30EA\u30DD\u30B8\u30C8\u30EA\u306E\u5B9F\u884C\u306B\u672C\u5F53\u306B\u6642\u9593\u304C\u5FC5\u8981\u306A\u5834\u5408\u306F\u3001\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u306E `testbotTimeout` \u5165\u529B\u5024\u3092\u5927\u304D\u304F\u3057\u3066\u304F\u3060\u3055\u3044\u3002",staged:{testsSourcePullRequest:o(e=>`\u30BD\u30FC\u30B9\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8 ${e} \u306E\u30C6\u30B9\u30C8`,"testsSourcePullRequest"),validatedTogether:o(e=>`\u4E00\u7DD2\u306B\u691C\u8A3C\u3057\u305F\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8: ${e}`,"validatedTogether"),requestedByPerson:o(e=>`${e} \u3055\u3093\u306E\u4F9D\u983C\u3067\u5B9F\u884C`,"requestedByPerson"),requestedByPolicy:o(e=>`\u691C\u8A3C\u30DD\u30EA\u30B7\u30FC ${e} \u306B\u3088\u308A\u5B9F\u884C`,"requestedByPolicy"),notTranslated:{"no-time":"> \u26A0\uFE0F \u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u82F1\u8A9E\u306E\u307E\u307E\u3067\u3059: \u7FFB\u8A33\u3059\u308B\u6642\u9593\u304C\u6B8B\u3063\u3066\u3044\u307E\u305B\u3093\u3067\u3057\u305F\u3002",failed:"> \u26A0\uFE0F \u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u82F1\u8A9E\u306E\u307E\u307E\u3067\u3059: \u7FFB\u8A33\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002"},noLiveApp:o(e=>`> \u26A0\uFE0F **\u3053\u306E\u5B9F\u884C\u3067\u306F\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\uFF08SUT\uFF09\u304C\u3042\u308A\u307E\u305B\u3093\u3067\u3057\u305F** \u2014 \u4EE5\u4E0B\u306E ${e} \u4EF6\u306E\u30C6\u30B9\u30C8\u306F**\u5B9F\u884C\u3055\u308C\u3066\u3044\u307E\u305B\u3093**\uFF08\u5B9F\u884C\u5BFE\u8C61\u306E\u30A2\u30D7\u30EA\u304C\u3042\u308A\u307E\u305B\u3093\u3067\u3057\u305F\uFF09\u3002\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\u306B\u5BFE\u3057\u3066\u5B9F\u884C\u3057\u3001\u5408\u683C\u3059\u308B\u3053\u3068\uFF08\u304A\u3088\u3073\u518D\u73FE\u30C6\u30B9\u30C8\u304C\u610F\u56F3\u3069\u304A\u308A\u5931\u6557\u3059\u308B\u3053\u3068\uFF09\u3092\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,"noLiveApp"),unitTestsInFile:o((e,t,n)=>`**${e}**: ${n?`${n} \u306E`:""}\u30E6\u30CB\u30C3\u30C8\u30C6\u30B9\u30C8 ${t} \u4EF6`,"unitTestsInFile"),addedToExistingFile:"\u65E2\u5B58\u306E\u30C6\u30B9\u30C8\u30D5\u30A1\u30A4\u30EB\u306B\u8FFD\u52A0",testPackagesHeader:"### \u{1F4E6} \u3053\u308C\u3089\u306E\u30C6\u30B9\u30C8\u306E\u5B9F\u884C\u65B9\u6CD5",testPackageLine:o((e,t,n="")=>`\`${e}/\` \u306F Skyramp Testbot \u304C\u6240\u6709\u30FB\u4FDD\u5B88\u3059\u308B\u72EC\u7ACB\u3057\u305F\u30C6\u30B9\u30C8\u30D1\u30C3\u30B1\u30FC\u30B8\u3067\u3001\u72EC\u81EA\u306E\u30DE\u30CB\u30D5\u30A7\u30B9\u30C8\u3001\u30ED\u30C3\u30AF\u30D5\u30A1\u30A4\u30EB\u3001\u30E9\u30F3\u30CA\u30FC\u8A2D\u5B9A\u3092\u6301\u3061\u307E\u3059\u3002${n?`\u3053\u306E\u5B9F\u884C\u3067\u8FFD\u52A0\u3057\u305F\u3082\u306E\u3067\u3001${n} \u3092\u3053\u306E\u30D1\u30C3\u30B1\u30FC\u30B8\u5185\u306B\u306E\u307F\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3057\u3066\u3044\u307E\u3059\u3002`:""}\u30A2\u30D7\u30EA\u306E\u8D77\u52D5\u4E2D\u306B \`${t}\` \u3067\u5B9F\u884C\u3067\u304D\u307E\u3059\u3002\u3059\u3079\u3066\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u3067\u5B9F\u884C\u3059\u308B\u306B\u306F\u3001\u30A2\u30D7\u30EA\u304C\u8D77\u52D5\u3057\u3066\u3044\u308B CI \u30B8\u30E7\u30D6\u306B\u3053\u306E\u30B3\u30DE\u30F3\u30C9\u3092\u8FFD\u52A0\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,"testPackageLine"),appManifestsUntouched:"\u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3\u81EA\u8EAB\u306E\u30DE\u30CB\u30D5\u30A7\u30B9\u30C8\u3068\u30ED\u30C3\u30AF\u30D5\u30A1\u30A4\u30EB\u306F\u5909\u66F4\u3057\u3066\u3044\u307E\u305B\u3093\u3002",dependencyChangesHeader:"### \u{1F4E6} \u30A2\u30D7\u30EA\u30B1\u30FC\u30B7\u30E7\u30F3\u306E\u4F9D\u5B58\u95A2\u4FC2\u306E\u5909\u66F4",dependencyChangeLine:o((e,t,n)=>`\`${t}\`\uFF08\u304A\u3088\u3073\u305D\u306E\u30ED\u30C3\u30AF\u30D5\u30A1\u30A4\u30EB\uFF09\u306B \`${e}\` \u3092\u8FFD\u52A0${n?`: ${n}`:""}`,"dependencyChangeLine"),testMaintenanceHeader:"\u2705 \u30C6\u30B9\u30C8\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9",keptNot:"\u5909\u66F4\u305B\u305A\u7DAD\u6301 \u2014 \u898B\u9001\u3063\u305F\u64CD\u4F5C: ",declinedPlanned:"(\u4E88\u5B9A\u3057\u3066\u3044\u305F\u64CD\u4F5C\u3092\u898B\u9001\u308A: ",declinedMaintenanceHeader:"\u21A9\uFE0F \u898B\u9001\u3063\u305F\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9",existingEvidenceHeader:"\u2705 \u65E2\u5B58\u306E\u30A8\u30D3\u30C7\u30F3\u30B9",trustedCheckPassed:o((e,t)=>`\u4FE1\u983C\u6E08\u307F\u306E CI \u30C1\u30A7\u30C3\u30AF ${e} \u304C${t?` ${t} \u3067`:""}\u5408\u683C\u3057\u3001\u6B21\u3092\u78BA\u8A8D\u3057\u307E\u3057\u305F:`,"trustedCheckPassed"),testResultsHeader:"\u{1F9EA} \u30C6\u30B9\u30C8\u7D50\u679C",resultsTableHeader:"| \u30C6\u30B9\u30C8 ID | \u30C6\u30B9\u30C8\u7A2E\u5225 | \u30A8\u30F3\u30C9\u30DD\u30A4\u30F3\u30C8 | \u30B9\u30C6\u30FC\u30BF\u30B9 | \u8A73\u7D30 |",unitResultsTableHeader:"| \u30C6\u30B9\u30C8 ID | \u30C6\u30B9\u30C8\u7A2E\u5225 | \u30C6\u30B9\u30C8\u5BFE\u8C61\u306E\u30B3\u30FC\u30C9 | \u30C6\u30B9\u30C8 | \u30B1\u30FC\u30B9\u6570 | \u30B9\u30C6\u30FC\u30BF\u30B9 | \u8A73\u7D30 |",casesPassed:o((e,t,n)=>`${t} \u4EF6\u4E2D ${e} \u4EF6\u5408\u683C${n?`\u3001${n} \u4EF6\u30B9\u30AD\u30C3\u30D7`:""}`,"casesPassed"),behaviourCoverageHeader:"\u{1F517} \u632F\u308B\u821E\u3044\u306E\u30AB\u30D0\u30EC\u30C3\u30B8",coverageCaption:o((e,t,n,i)=>`\uFF08\u751F\u6210 ${e} \xB7 \u5909\u66F4 ${t} \xB7 \u691C\u8A3C ${n} \xB7 \u5B9F\u884C ${i}\uFF09`,"coverageCaption"),coverageTableHeader:"| \u632F\u308B\u821E\u3044 | \u30BD\u30FC\u30B9 | \u30C6\u30B9\u30C8 | \u30E1\u30F3\u30C6\u30CA\u30F3\u30B9 |",writtenNotRun:"\u4F5C\u6210\u6E08\u307F\u30FB\u672A\u5B9F\u884C",issuesFoundHeader:"\u26A0\uFE0F \u691C\u51FA\u3055\u308C\u305F\u554F\u984C",requirementsHeader:o((e,t)=>`\u{1F4CB} \u8981\u4EF6\uFF08${t} \u4EF6\u4E2D ${e} \u4EF6\u306E\u6761\u9805\u304C\u5408\u683C\uFF09`,"requirementsHeader"),requirementsTableHeader:"| \u8981\u4EF6 | \u6761\u9805 | \u30C6\u30B9\u30C8 | \u7D50\u679C |",requirementsSummaryTableHeader:"| \u8981\u4EF6 | \u5408\u683C\u3057\u305F\u6761\u9805 | \u5408\u683C\u3057\u3066\u3044\u306A\u3044\u6761\u9805 |",clauseStatuses:{Pass:"\u5408\u683C",Fail:"\u4E0D\u5408\u683C","Not run":"\u672A\u5B9F\u884C","Not tested":"\u672A\u30C6\u30B9\u30C8","Passed, test not kept":"\u5408\u683C\uFF08\u30C6\u30B9\u30C8\u306F\u4FDD\u6301\u305B\u305A\uFF09"},regressionGuard:"\uFF08\u56DE\u5E30\u30AC\u30FC\u30C9\uFF09",caveatsHeader:"### \u26A0\uFE0F \u3053\u306E\u5B9F\u884C\u3067\u78BA\u8A8D\u3067\u304D\u306A\u304B\u3063\u305F\u3053\u3068",commentHeader:"### Skyramp Testbot",timedOut:"> \u26A0\uFE0F \u5B9F\u884C\u304C\u30BF\u30A4\u30E0\u30A2\u30A6\u30C8\u3057\u307E\u3057\u305F \u2014 \u4EE5\u4E0B\u306E\u7D50\u679C\u306F\u4E00\u90E8\u306E\u307F\u3067\u3059\u3002",stopReasons:{"pr-closed":"\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u304C\u30DE\u30FC\u30B8\u3055\u308C\u305A\u306B\u30AF\u30ED\u30FC\u30BA\u3055\u308C\u307E\u3057\u305F",cancelled:"\u30EF\u30FC\u30AF\u30D5\u30ED\u30FC\u304C\u30AD\u30E3\u30F3\u30BB\u30EB\u3055\u308C\u305F\u304B\u3001\u30E9\u30F3\u30CA\u30FC\u304C\u505C\u6B62\u3057\u307E\u3057\u305F","attempt-cancelled":"Skyramp \u3067\u3053\u306E\u5B9F\u884C\u304C\u30AD\u30E3\u30F3\u30BB\u30EB\u3055\u308C\u307E\u3057\u305F","attempt-closed":"Skyramp \u304C\u3053\u306E\u5B9F\u884C\u3092\u7D42\u4E86\u3057\u307E\u3057\u305F"},maintenanceActions:{update:"\u66F4\u65B0",regenerate:"\u518D\u751F\u6210",delete:"\u524A\u9664",verify:"\u691C\u8A3C",updated:"\u66F4\u65B0",regenerated:"\u518D\u751F\u6210",deleted:"\u524A\u9664",verified:"\u691C\u8A3C"},publishFailures:{push:"\u30D7\u30C3\u30B7\u30E5\u306B\u5931\u6557",auth:"\u8A8D\u8A3C\u30A8\u30E9\u30FC",conflict:"\u7AF6\u5408",hook:"\u30B3\u30DF\u30C3\u30C8\u30D5\u30C3\u30AF\u304C\u5931\u6557",unknown:"\u4E0D\u660E\u306A\u30A8\u30E9\u30FC"},commitHook:o(e=>e?`${e} \u30D5\u30C3\u30AF`:"\u30B3\u30DF\u30C3\u30C8\u30D5\u30C3\u30AF","commitHook"),commitRefusedByHook:o((e,t)=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E ${e}\u304C\u751F\u6210\u3055\u308C\u305F\u30C6\u30B9\u30C8\u306E\u30B3\u30DF\u30C3\u30C8\u3092\u62D2\u5426\u3057\u305F\u305F\u3081\u3001Testbot PR \u306F\u4F5C\u6210\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u30D5\u30C3\u30AF\u306E\u30A8\u30E9\u30FC: \`${t}\`\u3002`,"commitRefusedByHook"),commitHookCouldNotRun:o((e,t)=>`\u30EA\u30DD\u30B8\u30C8\u30EA\u306E ${e}\u3092\u5B9F\u884C\u3067\u304D\u306A\u304B\u3063\u305F\u305F\u3081\u3001Testbot PR \u306F\u4F5C\u6210\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002\u30D5\u30C3\u30AF\u304C\u547C\u3073\u51FA\u3059\u30B3\u30DE\u30F3\u30C9\u304C\u30E9\u30F3\u30CA\u30FC\u306B\u30A4\u30F3\u30B9\u30C8\u30FC\u30EB\u3055\u308C\u3066\u3044\u307E\u305B\u3093\u3002\u30D5\u30C3\u30AF\u306E\u30A8\u30E9\u30FC: \`${t}\`\u3002`,"commitHookCouldNotRun"),stoppedEarly:o((e,t)=>`> \u26A0\uFE0F \u5B9F\u884C\u304C\u9014\u4E2D\u3067\u505C\u6B62\u3057\u307E\u3057\u305F \u2014 ${e}\u3002\u4EE5\u4E0B\u306E\u7D50\u679C\u306F\u4E00\u90E8\u306E\u307F\u3067\u3059\u3002${t}`,"stoppedEarly"),viewInSkyramp:o(e=>` [Skyramp \u3067\u8868\u793A](${e})`,"viewInSkyramp"),testsPr:{summaryHeader:"### \u6982\u8981",targets:"\u30C6\u30B9\u30C8\u306E\u5BFE\u8C61:",moreItems:o(e=>`\u307B\u304B ${e} \u4EF6`,"moreItems"),counts:o((e,t)=>`\u65B0\u898F\u30C6\u30B9\u30C8 ${e} \u4EF6\u3001\u30E1\u30F3\u30C6\u30CA\u30F3\u30B9\u3057\u305F\u30C6\u30B9\u30C8 ${t} \u4EF6\u3002`,"counts"),types:o(e=>`\u30C6\u30B9\u30C8\u7A2E\u5225: ${e}\u3002`,"types"),statusHeader:"### \u691C\u8A3C\u30B9\u30C6\u30FC\u30BF\u30B9",noChange:"\u2139\uFE0F \u30D9\u30FC\u30B9\u30E9\u30A4\u30F3\u4EE5\u964D\u306B\u5909\u66F4\u306F\u3042\u308A\u307E\u305B\u3093\u3002",noTestRan:"\u5B9F\u884C\u3057\u305F\u30C6\u30B9\u30C8\u306F\u306A\u304F\u3001\u65E2\u5B58\u306E\u8A3C\u62E0\u3082\u63A1\u7528\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002",noLiveApp:"\u7A3C\u50CD\u4E2D\u306E\u30A2\u30D7\u30EA\uFF08SUT\uFF09\u304C\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u30C6\u30B9\u30C8\u306F\u5B9F\u884C\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002",resultCounts:o((e,t,n)=>`\u30C6\u30B9\u30C8\u7D50\u679C: \u5408\u683C ${e} \u4EF6\u3001\u4E0D\u5408\u683C ${t} \u4EF6\u3001\u672A\u5B9F\u884C ${n} \u4EF6\u3002`,"resultCounts"),limitations:"\u91CD\u8981\u306A\u5931\u6557\u3068\u5236\u9650:",verdict:o(e=>`\u5B9F\u884C\u306E\u5224\u5B9A\u306F[\u5B9F\u884C\u306E\u8A73\u7D30](${e})\u306B\u3042\u308A\u307E\u3059\u3002`,"verdict"),runningHeader:"### \u30C6\u30B9\u30C8\u306E\u5B9F\u884C\u65B9\u6CD5",environment:o(e=>`\u30C6\u30B9\u30C8\u306F\u6B21\u306E\u74B0\u5883\u5909\u6570\u3092\u8AAD\u307F\u53D6\u308A\u307E\u3059\u3002\u30C6\u30B9\u30C8\u3092\u5B9F\u884C\u3059\u308B\u30B8\u30E7\u30D6\u3067\u8A2D\u5B9A\u3057\u3066\u304F\u3060\u3055\u3044: ${e}\u3002`,"environment"),filesChanged:"\u5404\u30C6\u30B9\u30C8\u306F **Files changed** \u30BF\u30D6\u3067\u78BA\u8A8D\u3057\u3066\u304F\u3060\u3055\u3044\u3002"},descriptionCut:o((e,t,n)=>`_\u2026 \u6B8B\u308A\u306F\u7701\u7565\u3057\u307E\u3057\u305F${t===void 0?"\uFF08\u30C6\u30B9\u30C8\u7D50\u679C\u3092\u542B\u3080\uFF09":t?`\uFF08\u30C6\u30B9\u30C8\u7D50\u679C ${t} \u4EF6\u3092\u542B\u3080\uFF09`:""}\u3002Azure DevOps \u306E\u8AAC\u660E\u306F ${e} \u6587\u5B57\u307E\u3067\u3067\u3059\u3002${n?` [\u5B8C\u5168\u306A\u30EC\u30DD\u30FC\u30C8](${n})`:""}_`,"descriptionCut"),testsReplaced:o((e,t,n)=>[t?`Skyramp Testbot \u304C\u3053\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u306E\u30C6\u30B9\u30C8\u3092[\u3053\u306E\u5B9F\u884C](${e})\u306E\u30C6\u30B9\u30C8\uFF08\u30B3\u30DF\u30C3\u30C8 \`${t}\`\uFF09\u306B\u7F6E\u304D\u63DB\u3048\u307E\u3057\u305F\u3002`:`Skyramp Testbot \u304C\u3053\u306E\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u306E\u30C6\u30B9\u30C8\u3092[\u3053\u306E\u5B9F\u884C](${e})\u306E\u30C6\u30B9\u30C8\u306B\u7F6E\u304D\u63DB\u3048\u307E\u3057\u305F\u3002`,n?`[\u4EE5\u524D\u306E\u5B9F\u884C](${n})\u306E\u30C6\u30B9\u30C8\u306F\u7F6E\u304D\u63DB\u3048\u6E08\u307F\u3067\u3059\u3002`:"\u4EE5\u524D\u306E\u5B9F\u884C\u304C\u3053\u3053\u306B\u66F8\u3044\u305F\u30C6\u30B9\u30C8\u306F\u7F6E\u304D\u63DB\u3048\u6E08\u307F\u3067\u3059\u3002"].join(""),"testsReplaced"),setupRunEnds:{finished:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u304C\u5B8C\u4E86\u3057\u307E\u3057\u305F\u3002Skyramp \u304C\u7D50\u679C\u3092\u78BA\u8A8D\u3057\u3066\u3044\u307E\u3059\u3002",failed:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u306B\u5931\u6557\u3057\u307E\u3057\u305F\u3002",timedOut:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u304C\u6642\u9593\u5207\u308C\u306B\u306A\u308A\u307E\u3057\u305F\u3002",cancelledInSkyramp:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u306F Skyramp \u3067\u30AD\u30E3\u30F3\u30BB\u30EB\u3055\u308C\u307E\u3057\u305F\u3002",stoppedToResume:"\u30BB\u30C3\u30C8\u30A2\u30C3\u30D7\u5B9F\u884C\u3092\u505C\u6B62\u3057\u307E\u3057\u305F\u3002Skyramp \u3067\u518D\u958B\u3067\u304D\u307E\u3059\u3002"},appUnreachable:o(e=>`Skyramp\uFF08${e}\uFF09\u306B\u63A5\u7D9A\u3067\u304D\u307E\u305B\u3093\u3002\u3057\u3070\u3089\u304F\u3057\u3066\u304B\u3089\u518D\u5EA6\u304A\u8A66\u3057\u304F\u3060\u3055\u3044\u3002`,"appUnreachable"),couldNotStart:o(e=>`Skyramp Testbot \u3092\u958B\u59CB\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: ${e}`,"couldNotStart"),assembledAfterFailedChecks:o(e=>`> \u26A0\uFE0F \u4F5C\u6210\u30B9\u30C6\u30C3\u30D7\u304C\u30C1\u30A7\u30C3\u30AF\u306B\u5408\u683C\u3057\u306A\u304B\u3063\u305F\u305F\u3081\u3001\u3053\u306E\u30EC\u30DD\u30FC\u30C8\u306F\u81EA\u52D5\u3067\u7D44\u307F\u7ACB\u3066\u3089\u308C\u307E\u3057\u305F\u3002${e} \u4EF6\u306E\u30C1\u30A7\u30C3\u30AF\u304C\u672A\u9054\u6210\u3067\u3059 \u2014 \u8A73\u7D30\u306F\u5B9F\u884C\u30ED\u30B0\u3092\u53C2\u7167\u3057\u3066\u304F\u3060\u3055\u3044\u3002`,"assembledAfterFailedChecks"),testbotPrLine:o((e,t,n)=>`Testbot PR${e?`\uFF08${e}\uFF09`:""}: [${t}](${n})`,"testbotPrLine"),viewRun:o(e=>`_[\u5B9F\u884C\u3092\u8868\u793A](${e})_`,"viewRun"),testsPrNotOpened:o((e,t)=>`\u30C6\u30B9\u30C8 PR \u3092\u4F5C\u6210\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08${e}\uFF09\u3002\u30C6\u30B9\u30C8\u306F\u30D6\u30E9\u30F3\u30C1 \`${t}\` \u306B\u30D7\u30C3\u30B7\u30E5\u3055\u308C\u3066\u3044\u307E\u3059\u3002`,"testsPrNotOpened"),testsNotDelivered:o(e=>`\u30C6\u30B9\u30C8\u3092\u914D\u4FE1\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F: ${e}`,"testsNotDelivered"),testsPinnedNotDelivered:o((e,t,n)=>`${e}: ${t} \u4EF6\u306E\u30C6\u30B9\u30C8\u3092\u4F5C\u6210\u3057\u3001${n} \u4EF6\u3092\u66F4\u65B0\u3057\u307E\u3057\u305F\u3002\u30EA\u30DD\u30B8\u30C8\u30EA\u306F\u30B3\u30DF\u30C3\u30C8\u306B\u56FA\u5B9A\u3055\u308C\u3066\u3044\u308B\u305F\u3081\u3001\u3053\u308C\u3089\u306E\u5909\u66F4\u306F\u914D\u4FE1\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F\u3002`,"testsPinnedNotDelivered"),testsNotPushed:o((e,t)=>`\u30C6\u30B9\u30C8\u3092\u30D7\u30C3\u30B7\u30E5\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F\uFF08${e}\uFF09\u3002\u30C6\u30B9\u30C8\u306F\u30ED\u30FC\u30AB\u30EB\u30D6\u30E9\u30F3\u30C1 \`${t}\` \u306B\u6B8B\u3063\u3066\u3044\u307E\u3059\u3002`,"testsNotPushed"),testsPrRetargeted:o(e=>`\u30C6\u30B9\u30C8\u306E\u751F\u6210\u4E2D\u306B\u958B\u767A PR \u304C\u30DE\u30FC\u30B8\u3055\u308C\u307E\u3057\u305F \u2014 \u30C6\u30B9\u30C8 PR \u306F\u4EE3\u308F\u308A\u306B\u30D9\u30FC\u30B9\u30D6\u30E9\u30F3\u30C1${e?`\uFF08\`${e}\`\uFF09`:""}\u3092\u5BFE\u8C61\u306B\u3057\u3066\u3044\u307E\u3059\u3002`,"testsPrRetargeted"),testsPrUnchanged:"\u3053\u306E\u30D7\u30C3\u30B7\u30E5\u3067\u306F\u65B0\u3057\u3044\u30C6\u30B9\u30C8\u306E\u5909\u66F4\u306F\u4E0D\u8981\u3067\u3057\u305F\u3002\u4EE5\u4E0B\u306E\u30C6\u30B9\u30C8 PR \u306F\u4EE5\u524D\u306E\u5B9F\u884C\u306E\u3082\u306E\u3067\u3001\u305D\u306E\u307E\u307E\u306B\u3057\u3066\u3044\u307E\u3059\u3002",committedNoPr:o(e=>`\u30C6\u30B9\u30C8\u306F\u30B3\u30DF\u30C3\u30C8\u3055\u308C\u307E\u3057\u305F\u304C\u3001PR \u306F\u4F5C\u6210\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F: ${e}\u3002`,"committedNoPr"),testsHeldBack:o((e,t,n,i)=>`${e?"\u4E00\u90E8\u306E\u30C6\u30B9\u30C8\u306E\u307F\u63D0\u51FA\u3057\u307E\u3057\u305F":"\u30C6\u30B9\u30C8\u3092\u63D0\u51FA\u3067\u304D\u307E\u305B\u3093\u3067\u3057\u305F"}\u3002\u6B21\u306E\u30C6\u30B9\u30C8\u30D5\u30A1\u30A4\u30EB\u306F ${t} \u306B\u307E\u3060\u306A\u3044\u30D7\u30EB\u30EA\u30AF\u30A8\u30B9\u30C8\u3092\u5FC5\u8981\u3068\u3059\u308B\u305F\u3081\u4FDD\u7559\u3057\u307E\u3057\u305F: ${n}\u3002\u5909\u66F4\u5185\u5BB9\u306F\u5B9F\u884C\u30A2\u30FC\u30C6\u30A3\u30D5\u30A1\u30AF\u30C8\u306E ${i} \u306B\u3042\u308A\u307E\u3059\u3002`,"testsHeldBack"),testsNotProposed:o(e=>`\u30C6\u30B9\u30C8\u306F PR \u3068\u3057\u3066\u63D0\u6848\u3055\u308C\u307E\u305B\u3093\u3067\u3057\u305F: ${e}\u3002`,"testsNotProposed")}};var Lre={en:Nh,ja:ij},jre="en";function qs(e,t){return(Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0)??t}o(qs,"labelOf");function ce(){return Lre[jre]}o(ce,"t");var Gre=4,oj="\xABredacted\xBB";function aj(e){let t=new Set;for(let n of e){let i=(n??"").trim();i.length>=Gre&&t.add(i)}return[...t].sort((n,i)=>i.length-n.length)}o(aj,"redactionsFrom");function Vre(e){return e.replace(/AUTHORIZATION: (basic|bearer) \S+/gi,"AUTHORIZATION: $1 ***").replace(/x-access-token:[^@\s]+@/gi,"x-access-token:***@")}o(Vre,"redactGitCredentials");function ei(e,t){if(!e||t.length===0)return e;let n=e;for(let i of t)!i||!n.includes(i)||(n=n.split(i).join(oj));return n}o(ei,"redactSecrets");function Js(e,t){return ei(Vre(e),t)}o(Js,"redactCredentials");function zre(e,t){let n=o(i=>typeof i=="string"?t(i):Array.isArray(i)?i.map(n):i&&typeof i=="object"?Object.fromEntries(Object.entries(i).map(([r,s])=>[r,n(s)])):i,"walk");return n(e)}o(zre,"mapStrings");function ca(e,t){return t.length===0?e:zre(e,n=>ei(n,t))}o(ca,"redactDeep");var _Se=new TextDecoder("utf-8",{fatal:!0});var uj=600,Ph=300;function cj(e){return typeof e=="string"?e.trim():e instanceof Buffer?e.toString("utf-8").trim():""}o(cj,"streamText");function qre(e){let t=e,n=(typeof t?.message=="string"?t.message:String(e)).trim(),i=[cj(t?.stderr),cj(t?.stdout)].filter(Boolean);return i.length?[n.split(`
56
56
  `)[0],...i].join(`
57
57
  `):n}o(qre,"thrownText");function lj(e,t,n,i=0){let r=e.join(t);if(r.length<=n)return r;let[s="",...a]=e;if(!a.length)return`${s.slice(0,n-1)}\u2026`;let c=s.length<=i?s:s.slice(0,Math.floor(n/3)),u=n-c.length-t.length-1;return`${c}${t}\u2026${a.join(t).slice(-u)}`}o(lj,"headAndTail");function dj(e,t){return lj(e.trim().split(`
58
58
  `),`
59
59
  `,t)}o(dj,"boundedFailureText");function ua(e){return Js(qre(e),[]).trim()}o(ua,"commandFailureText");var Jre=/^(.*?:\s*)?Command failed: (?:git|gh)\b.*$/;function zd(e,t=Ph){let[n="",...i]=e.split(`
60
60
  `).map(a=>a.trim()).filter(Boolean),r=i.length?Jre.exec(n):null,s=r?[`${r[1]??""}${i[0]}`,...i.slice(1)]:[n,...i];return lj(s," ",t,Math.floor(t*2/3))}o(zd,"failureReason");function qd(e){return e.replace(new RegExp("\x1B\\[[0-9;]*m","g"),"")}o(qd,"stripAnsi");function Hre(e){let t=/^(yarn run v|info Visit|error Command failed|npm ERR!|husky\b|\$ )/i,n=qd(e).split(`
61
- `).map(a=>a.trim()).filter(Boolean),i=n.filter(a=>!t.test(a)),r=i.length?i:n;return[...r].reverse().find(a=>/(error|warning|problem|✖|✗|✘|fail|not listed|cannot|denied)/i.test(a))??r[r.length-1]??"(no output)"}o(Hre,"hookSummary");function pj(e){if(!/\bhook\b|husky|pre-commit|lint-staged/i.test(e))return;let t=Hre(e),n=ce().staged.commitHook(/husky\s*[->]\s*([\w-]+)\s+(?:script|hook)\b/i.exec(qd(e))?.[1]);return/\(code 127\)|exit code 127/i.test(e)||/command not found|: not found$/i.test(t)?ce().staged.commitHookCouldNotRun(n,t):ce().staged.commitRefusedByHook(n,t)}o(pj,"hookRefusal");var d={};Vr(d,{BRAND:()=>Iie,DIRTY:()=>la,EMPTY_PATH:()=>Kre,INVALID:()=>ve,NEVER:()=>ise,OK:()=>En,ParseStatus:()=>on,Schema:()=>je,ZodAny:()=>Ws,ZodArray:()=>os,ZodBigInt:()=>pa,ZodBoolean:()=>fa,ZodBranded:()=>Hd,ZodCatch:()=>Ca,ZodDate:()=>Aa,ZodDefault:()=>wa,ZodDiscriminatedUnion:()=>Oh,ZodEffects:()=>Tr,ZodEnum:()=>va,ZodError:()=>zn,ZodFirstPartyTypeKind:()=>Se,ZodFunction:()=>Lh,ZodIntersection:()=>ya,ZodIssueCode:()=>G,ZodLazy:()=>Ea,ZodLiteral:()=>Ia,ZodMap:()=>gu,ZodNaN:()=>mu,ZodNativeEnum:()=>ba,ZodNever:()=>ti,ZodNull:()=>ha,ZodNullable:()=>Si,ZodNumber:()=>da,ZodObject:()=>qn,ZodOptional:()=>xr,ZodParsedType:()=>te,ZodPipeline:()=>Yd,ZodPromise:()=>Zs,ZodReadonly:()=>Sa,ZodRecord:()=>Mh,ZodSchema:()=>je,ZodSet:()=>hu,ZodString:()=>Ys,ZodSymbol:()=>fu,ZodTransformer:()=>Tr,ZodTuple:()=>Ci,ZodType:()=>je,ZodUndefined:()=>ga,ZodUnion:()=>ma,ZodUnknown:()=>ss,ZodVoid:()=>Au,addIssueToContext:()=>X,any:()=>Qie,array:()=>Die,bigint:()=>Cie,boolean:()=>wj,coerce:()=>rse,custom:()=>Ij,date:()=>Sie,datetimeRegex:()=>yj,defaultErrorMap:()=>rs,discriminatedUnion:()=>Fie,effect:()=>Yie,enum:()=>qie,function:()=>Gie,getErrorMap:()=>lu,getParsedType:()=>wi,instanceof:()=>bie,intersection:()=>Uie,isAborted:()=>Fh,isAsync:()=>du,isDirty:()=>Uh,isValid:()=>Hs,late:()=>vie,lazy:()=>Vie,literal:()=>zie,makeIssue:()=>Jd,map:()=>Lie,nan:()=>wie,nativeEnum:()=>Jie,never:()=>$ie,null:()=>Rie,nullable:()=>Zie,number:()=>bj,object:()=>_ie,objectUtil:()=>uC,oboolean:()=>nse,onumber:()=>tse,optional:()=>Wie,ostring:()=>ese,pipeline:()=>Xie,preprocess:()=>Kie,promise:()=>Hie,quotelessJson:()=>Yre,record:()=>Mie,set:()=>jie,setErrorMap:()=>Zre,strictObject:()=>Nie,string:()=>vj,symbol:()=>kie,transformer:()=>Yie,tuple:()=>Oie,undefined:()=>Bie,union:()=>Pie,unknown:()=>xie,util:()=>Je,void:()=>Tie});var Je;(function(e){e.assertEqual=r=>{};function t(r){}o(t,"assertIs"),e.assertIs=t;function n(r){throw new Error}o(n,"assertNever"),e.assertNever=n,e.arrayToEnum=r=>{let s={};for(let a of r)s[a]=a;return s},e.getValidEnumValues=r=>{let s=e.objectKeys(r).filter(c=>typeof r[r[c]]!="number"),a={};for(let c of s)a[c]=r[c];return e.objectValues(a)},e.objectValues=r=>e.objectKeys(r).map(function(s){return r[s]}),e.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{let s=[];for(let a in r)Object.prototype.hasOwnProperty.call(r,a)&&s.push(a);return s},e.find=(r,s)=>{for(let a of r)if(s(a))return a},e.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&Number.isFinite(r)&&Math.floor(r)===r;function i(r,s=" | "){return r.map(a=>typeof a=="string"?`'${a}'`:a).join(s)}o(i,"joinValues"),e.joinValues=i,e.jsonStringifyReplacer=(r,s)=>typeof s=="bigint"?s.toString():s})(Je||(Je={}));var uC;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(uC||(uC={}));var te=Je.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),wi=o(e=>{switch(typeof e){case"undefined":return te.undefined;case"string":return te.string;case"number":return Number.isNaN(e)?te.nan:te.number;case"boolean":return te.boolean;case"function":return te.function;case"bigint":return te.bigint;case"symbol":return te.symbol;case"object":return Array.isArray(e)?te.array:e===null?te.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?te.promise:typeof Map<"u"&&e instanceof Map?te.map:typeof Set<"u"&&e instanceof Set?te.set:typeof Date<"u"&&e instanceof Date?te.date:te.object;default:return te.unknown}},"getParsedType");var G=Je.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Yre=o(e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),"quotelessJson"),zn=class e extends Error{static{o(this,"ZodError")}get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};let n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){let n=t||function(s){return s.message},i={_errors:[]},r=o(s=>{for(let a of s.issues)if(a.code==="invalid_union")a.unionErrors.map(r);else if(a.code==="invalid_return_type")r(a.returnTypeError);else if(a.code==="invalid_arguments")r(a.argumentsError);else if(a.path.length===0)i._errors.push(n(a));else{let c=i,u=0;for(;u<a.path.length;){let l=a.path[u],p=u===a.path.length-1;if(l==="_errors"){p&&c._errors.push(n(a)),u++;continue}Object.prototype.hasOwnProperty.call(c,l)||(l==="__proto__"?Object.defineProperty(c,l,{value:{_errors:[]},writable:!0,enumerable:!0,configurable:!0}):c[l]={_errors:[]}),c=c[l],p&&c._errors.push(n(a)),u++}}},"processError");return r(this),i}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Je.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){let n=Object.create(null),i=[];for(let r of this.issues)if(r.path.length>0){let s=r.path[0];n[s]=n[s]||[],n[s].push(t(r))}else i.push(t(r));return{formErrors:i,fieldErrors:n}}get formErrors(){return this.flatten()}};zn.create=e=>new zn(e);var Wre=o((e,t)=>{let n;switch(e.code){case G.invalid_type:e.received===te.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case G.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Je.jsonStringifyReplacer)}`;break;case G.unrecognized_keys:n=`Unrecognized key(s) in object: ${Je.joinValues(e.keys,", ")}`;break;case G.invalid_union:n="Invalid input";break;case G.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Je.joinValues(e.options)}`;break;case G.invalid_enum_value:n=`Invalid enum value. Expected ${Je.joinValues(e.options)}, received '${e.received}'`;break;case G.invalid_arguments:n="Invalid function arguments";break;case G.invalid_return_type:n="Invalid function return type";break;case G.invalid_date:n="Invalid date";break;case G.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Je.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case G.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case G.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case G.custom:n="Invalid input";break;case G.invalid_intersection_types:n="Intersection results could not be merged";break;case G.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case G.not_finite:n="Number must be finite";break;default:n=t.defaultError,Je.assertNever(e)}return{message:n}},"errorMap"),rs=Wre;var fj=rs;function Zre(e){fj=e}o(Zre,"setErrorMap");function lu(){return fj}o(lu,"getErrorMap");var Jd=o(e=>{let{data:t,path:n,errorMaps:i,issueData:r}=e,s=[...n,...r.path||[]],a={...r,path:s};if(r.message!==void 0)return{...r,path:s,message:r.message};let c="",u=i.filter(l=>!!l).slice().reverse();for(let l of u)c=l(a,{data:t,defaultError:c}).message;return{...r,path:s,message:c}},"makeIssue"),Kre=[];function X(e,t){let n=lu(),i=Jd({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===rs?void 0:rs].filter(r=>!!r)});e.common.issues.push(i)}o(X,"addIssueToContext");var on=class e{static{o(this,"ParseStatus")}constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){let i=[];for(let r of n){if(r.status==="aborted")return ve;r.status==="dirty"&&t.dirty(),i.push(r.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,n){let i=[];for(let r of n){let s=await r.key,a=await r.value;i.push({key:s,value:a})}return e.mergeObjectSync(t,i)}static mergeObjectSync(t,n){let i={};for(let r of n){let{key:s,value:a}=r;if(s.status==="aborted"||a.status==="aborted")return ve;s.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof a.value<"u"||r.alwaysSet)&&(i[s.value]=a.value)}return{status:t.value,value:i}}},ve=Object.freeze({status:"aborted"}),la=o(e=>({status:"dirty",value:e}),"DIRTY"),En=o(e=>({status:"valid",value:e}),"OK"),Fh=o(e=>e.status==="aborted","isAborted"),Uh=o(e=>e.status==="dirty","isDirty"),Hs=o(e=>e.status==="valid","isValid"),du=o(e=>typeof Promise<"u"&&e instanceof Promise,"isAsync");var le;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(le||(le={}));var $r=class{static{o(this,"ParseInputLazyPath")}constructor(t,n,i,r){this._cachedPath=[],this.parent=t,this.data=n,this._path=i,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},Aj=o((e,t)=>{if(Hs(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let n=new zn(e.common.issues);return this._error=n,this._error}}},"handleResult");function Fe(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:i,description:r}=e;if(t&&(n||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:r}:{errorMap:o((a,c)=>{let{message:u}=e;return a.code==="invalid_enum_value"?{message:u??c.defaultError}:typeof c.data>"u"?{message:u??i??c.defaultError}:a.code!=="invalid_type"?{message:c.defaultError}:{message:u??n??c.defaultError}},"customMap"),description:r}}o(Fe,"processCreateParams");var je=class{static{o(this,"ZodType")}get description(){return this._def.description}_getType(t){return wi(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:wi(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new on,ctx:{common:t.parent.common,data:t.data,parsedType:wi(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let n=this._parse(t);if(du(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){let n=this._parse(t);return Promise.resolve(n)}parse(t,n){let i=this.safeParse(t,n);if(i.success)return i.data;throw i.error}safeParse(t,n){let i={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:wi(t)},r=this._parseSync({data:t,path:i.path,parent:i});return Aj(i,r)}"~validate"(t){let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:wi(t)};if(!this["~standard"].async)try{let i=this._parseSync({data:t,path:[],parent:n});return Hs(i)?{value:i.value}:{issues:n.common.issues}}catch(i){i?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(i=>Hs(i)?{value:i.value}:{issues:n.common.issues})}async parseAsync(t,n){let i=await this.safeParseAsync(t,n);if(i.success)return i.data;throw i.error}async safeParseAsync(t,n){let i={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:wi(t)},r=this._parse({data:t,path:i.path,parent:i}),s=await(du(r)?r:Promise.resolve(r));return Aj(i,s)}refine(t,n){let i=o(r=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(r):n,"getIssueProperties");return this._refinement((r,s)=>{let a=t(r),c=o(()=>s.addIssue({code:G.custom,...i(r)}),"setError");return typeof Promise<"u"&&a instanceof Promise?a.then(u=>u?!0:(c(),!1)):a?!0:(c(),!1)})}refinement(t,n){return this._refinement((i,r)=>t(i)?!0:(r.addIssue(typeof n=="function"?n(i,r):n),!1))}_refinement(t){return new Tr({schema:this,typeName:Se.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:o(n=>this["~validate"](n),"validate")}}optional(){return xr.create(this,this._def)}nullable(){return Si.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return os.create(this)}promise(){return Zs.create(this,this._def)}or(t){return ma.create([this,t],this._def)}and(t){return ya.create(this,t,this._def)}transform(t){return new Tr({...Fe(this._def),schema:this,typeName:Se.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let n=typeof t=="function"?t:()=>t;return new wa({...Fe(this._def),innerType:this,defaultValue:n,typeName:Se.ZodDefault})}brand(){return new Hd({typeName:Se.ZodBranded,type:this,...Fe(this._def)})}catch(t){let n=typeof t=="function"?t:()=>t;return new Ca({...Fe(this._def),innerType:this,catchValue:n,typeName:Se.ZodCatch})}describe(t){let n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Yd.create(this,t)}readonly(){return Sa.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Xre=/^c[^\s-]{8,}$/i,eie=/^[0-9a-z]+$/,tie=/^[0-9A-HJKMNP-TV-Z]{26}$/i,nie=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,rie=/^[a-z0-9_-]{21}$/i,iie=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,sie=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,oie=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,aie="^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$",lC,cie=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,uie=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,lie=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,die=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,pie=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,fie=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,hj="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Aie=new RegExp(`^${hj}$`);function mj(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}o(mj,"timeRegexSource");function gie(e){return new RegExp(`^${mj(e)}$`)}o(gie,"timeRegex");function yj(e){let t=`${hj}T${mj(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}o(yj,"datetimeRegex");function hie(e,t){return!!((t==="v4"||!t)&&cie.test(e)||(t==="v6"||!t)&&lie.test(e))}o(hie,"isValidIP");function mie(e,t){if(!iie.test(e))return!1;try{let[n]=e.split(".");if(!n)return!1;let i=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),r=JSON.parse(atob(i));return!(typeof r!="object"||r===null||"typ"in r&&r?.typ!=="JWT"||!r.alg||t&&r.alg!==t)}catch{return!1}}o(mie,"isValidJWT");function yie(e,t){return!!((t==="v4"||!t)&&uie.test(e)||(t==="v6"||!t)&&die.test(e))}o(yie,"isValidCidr");var Ys=class e extends je{static{o(this,"ZodString")}_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==te.string){let s=this._getOrReturnCtx(t);return X(s,{code:G.invalid_type,expected:te.string,received:s.parsedType}),ve}let i=new on,r;for(let s of this._def.checks)if(s.kind==="min")t.data.length<s.value&&(r=this._getOrReturnCtx(t,r),X(r,{code:G.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),i.dirty());else if(s.kind==="max")t.data.length>s.value&&(r=this._getOrReturnCtx(t,r),X(r,{code:G.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),i.dirty());else if(s.kind==="length"){let a=t.data.length>s.value,c=t.data.length<s.value;(a||c)&&(r=this._getOrReturnCtx(t,r),a?X(r,{code:G.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):c&&X(r,{code:G.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),i.dirty())}else if(s.kind==="email")oie.test(t.data)||(r=this._getOrReturnCtx(t,r),X(r,{validation:"email",code:G.invalid_string,message:s.message}),i.dirty());else if(s.kind==="emoji")lC||(lC=new RegExp(aie,"u")),lC.test(t.data)||(r=this._getOrReturnCtx(t,r),X(r,{validation:"emoji",code:G.invalid_string,message:s.message}),i.dirty());else if(s.kind==="uuid")nie.test(t.data)||(r=this._getOrReturnCtx(t,r),X(r,{validation:"uuid",code:G.invalid_string,message:s.message}),i.dirty());else if(s.kind==="nanoid")rie.test(t.data)||(r=this._getOrReturnCtx(t,r),X(r,{validation:"nanoid",code:G.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid")Xre.test(t.data)||(r=this._getOrReturnCtx(t,r),X(r,{validation:"cuid",code:G.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid2")eie.test(t.data)||(r=this._getOrReturnCtx(t,r),X(r,{validation:"cuid2",code:G.invalid_string,message:s.message}),i.dirty());else if(s.kind==="ulid")tie.test(t.data)||(r=this._getOrReturnCtx(t,r),X(r,{validation:"ulid",code:G.invalid_string,message:s.message}),i.dirty());else if(s.kind==="url")try{new URL(t.data)}catch{r=this._getOrReturnCtx(t,r),X(r,{validation:"url",code:G.invalid_string,message:s.message}),i.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(t.data)||(r=this._getOrReturnCtx(t,r),X(r,{validation:"regex",code:G.invalid_string,message:s.message}),i.dirty())):s.kind==="trim"?t.data=t.data.trim():s.kind==="includes"?t.data.includes(s.value,s.position)||(r=this._getOrReturnCtx(t,r),X(r,{code:G.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),i.dirty()):s.kind==="toLowerCase"?t.data=t.data.toLowerCase():s.kind==="toUpperCase"?t.data=t.data.toUpperCase():s.kind==="startsWith"?t.data.startsWith(s.value)||(r=this._getOrReturnCtx(t,r),X(r,{code:G.invalid_string,validation:{startsWith:s.value},message:s.message}),i.dirty()):s.kind==="endsWith"?t.data.endsWith(s.value)||(r=this._getOrReturnCtx(t,r),X(r,{code:G.invalid_string,validation:{endsWith:s.value},message:s.message}),i.dirty()):s.kind==="datetime"?yj(s).test(t.data)||(r=this._getOrReturnCtx(t,r),X(r,{code:G.invalid_string,validation:"datetime",message:s.message}),i.dirty()):s.kind==="date"?Aie.test(t.data)||(r=this._getOrReturnCtx(t,r),X(r,{code:G.invalid_string,validation:"date",message:s.message}),i.dirty()):s.kind==="time"?gie(s).test(t.data)||(r=this._getOrReturnCtx(t,r),X(r,{code:G.invalid_string,validation:"time",message:s.message}),i.dirty()):s.kind==="duration"?sie.test(t.data)||(r=this._getOrReturnCtx(t,r),X(r,{validation:"duration",code:G.invalid_string,message:s.message}),i.dirty()):s.kind==="ip"?hie(t.data,s.version)||(r=this._getOrReturnCtx(t,r),X(r,{validation:"ip",code:G.invalid_string,message:s.message}),i.dirty()):s.kind==="jwt"?mie(t.data,s.alg)||(r=this._getOrReturnCtx(t,r),X(r,{validation:"jwt",code:G.invalid_string,message:s.message}),i.dirty()):s.kind==="cidr"?yie(t.data,s.version)||(r=this._getOrReturnCtx(t,r),X(r,{validation:"cidr",code:G.invalid_string,message:s.message}),i.dirty()):s.kind==="base64"?pie.test(t.data)||(r=this._getOrReturnCtx(t,r),X(r,{validation:"base64",code:G.invalid_string,message:s.message}),i.dirty()):s.kind==="base64url"?fie.test(t.data)||(r=this._getOrReturnCtx(t,r),X(r,{validation:"base64url",code:G.invalid_string,message:s.message}),i.dirty()):Je.assertNever(s);return{status:i.value,value:t.data}}_regex(t,n,i){return this.refinement(r=>t.test(r),{validation:n,code:G.invalid_string,...le.errToObj(i)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...le.errToObj(t)})}url(t){return this._addCheck({kind:"url",...le.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...le.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...le.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...le.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...le.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...le.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...le.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...le.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...le.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...le.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...le.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...le.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...le.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...le.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...le.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...le.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...le.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...le.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...le.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...le.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...le.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...le.errToObj(n)})}nonempty(t){return this.min(1,le.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};Ys.create=e=>new Ys({checks:[],typeName:Se.ZodString,coerce:e?.coerce??!1,...Fe(e)});function Eie(e,t){let n=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,r=n>i?n:i,s=Number.parseInt(e.toFixed(r).replace(".","")),a=Number.parseInt(t.toFixed(r).replace(".",""));return s%a/10**r}o(Eie,"floatSafeRemainder");var da=class e extends je{static{o(this,"ZodNumber")}constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==te.number){let s=this._getOrReturnCtx(t);return X(s,{code:G.invalid_type,expected:te.number,received:s.parsedType}),ve}let i,r=new on;for(let s of this._def.checks)s.kind==="int"?Je.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),X(i,{code:G.invalid_type,expected:"integer",received:"float",message:s.message}),r.dirty()):s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(i=this._getOrReturnCtx(t,i),X(i,{code:G.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),r.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(i=this._getOrReturnCtx(t,i),X(i,{code:G.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),r.dirty()):s.kind==="multipleOf"?Eie(t.data,s.value)!==0&&(i=this._getOrReturnCtx(t,i),X(i,{code:G.not_multiple_of,multipleOf:s.value,message:s.message}),r.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),X(i,{code:G.not_finite,message:s.message}),r.dirty()):Je.assertNever(s);return{status:r.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,le.toString(n))}gt(t,n){return this.setLimit("min",t,!1,le.toString(n))}lte(t,n){return this.setLimit("max",t,!0,le.toString(n))}lt(t,n){return this.setLimit("max",t,!1,le.toString(n))}setLimit(t,n,i,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:le.toString(r)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:le.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:le.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:le.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:le.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:le.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:le.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:le.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:le.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:le.toString(t)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Je.isInteger(t.value))}get isFinite(){let t=null,n=null;for(let i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(n===null||i.value>n)&&(n=i.value):i.kind==="max"&&(t===null||i.value<t)&&(t=i.value)}return Number.isFinite(n)&&Number.isFinite(t)}};da.create=e=>new da({checks:[],typeName:Se.ZodNumber,coerce:e?.coerce||!1,...Fe(e)});var pa=class e extends je{static{o(this,"ZodBigInt")}constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==te.bigint)return this._getInvalidInput(t);let i,r=new on;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(i=this._getOrReturnCtx(t,i),X(i,{code:G.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),r.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(i=this._getOrReturnCtx(t,i),X(i,{code:G.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),r.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(i=this._getOrReturnCtx(t,i),X(i,{code:G.not_multiple_of,multipleOf:s.value,message:s.message}),r.dirty()):Je.assertNever(s);return{status:r.value,value:t.data}}_getInvalidInput(t){let n=this._getOrReturnCtx(t);return X(n,{code:G.invalid_type,expected:te.bigint,received:n.parsedType}),ve}gte(t,n){return this.setLimit("min",t,!0,le.toString(n))}gt(t,n){return this.setLimit("min",t,!1,le.toString(n))}lte(t,n){return this.setLimit("max",t,!0,le.toString(n))}lt(t,n){return this.setLimit("max",t,!1,le.toString(n))}setLimit(t,n,i,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:le.toString(r)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:le.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:le.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:le.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:le.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:le.toString(n)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};pa.create=e=>new pa({checks:[],typeName:Se.ZodBigInt,coerce:e?.coerce??!1,...Fe(e)});var fa=class extends je{static{o(this,"ZodBoolean")}_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==te.boolean){let i=this._getOrReturnCtx(t);return X(i,{code:G.invalid_type,expected:te.boolean,received:i.parsedType}),ve}return En(t.data)}};fa.create=e=>new fa({typeName:Se.ZodBoolean,coerce:e?.coerce||!1,...Fe(e)});var Aa=class e extends je{static{o(this,"ZodDate")}_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==te.date){let s=this._getOrReturnCtx(t);return X(s,{code:G.invalid_type,expected:te.date,received:s.parsedType}),ve}if(Number.isNaN(t.data.getTime())){let s=this._getOrReturnCtx(t);return X(s,{code:G.invalid_date}),ve}let i=new on,r;for(let s of this._def.checks)s.kind==="min"?t.data.getTime()<s.value&&(r=this._getOrReturnCtx(t,r),X(r,{code:G.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),i.dirty()):s.kind==="max"?t.data.getTime()>s.value&&(r=this._getOrReturnCtx(t,r),X(r,{code:G.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),i.dirty()):Je.assertNever(s);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:le.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:le.toString(n)})}get minDate(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}};Aa.create=e=>new Aa({checks:[],coerce:e?.coerce||!1,typeName:Se.ZodDate,...Fe(e)});var fu=class extends je{static{o(this,"ZodSymbol")}_parse(t){if(this._getType(t)!==te.symbol){let i=this._getOrReturnCtx(t);return X(i,{code:G.invalid_type,expected:te.symbol,received:i.parsedType}),ve}return En(t.data)}};fu.create=e=>new fu({typeName:Se.ZodSymbol,...Fe(e)});var ga=class extends je{static{o(this,"ZodUndefined")}_parse(t){if(this._getType(t)!==te.undefined){let i=this._getOrReturnCtx(t);return X(i,{code:G.invalid_type,expected:te.undefined,received:i.parsedType}),ve}return En(t.data)}};ga.create=e=>new ga({typeName:Se.ZodUndefined,...Fe(e)});var ha=class extends je{static{o(this,"ZodNull")}_parse(t){if(this._getType(t)!==te.null){let i=this._getOrReturnCtx(t);return X(i,{code:G.invalid_type,expected:te.null,received:i.parsedType}),ve}return En(t.data)}};ha.create=e=>new ha({typeName:Se.ZodNull,...Fe(e)});var Ws=class extends je{static{o(this,"ZodAny")}constructor(){super(...arguments),this._any=!0}_parse(t){return En(t.data)}};Ws.create=e=>new Ws({typeName:Se.ZodAny,...Fe(e)});var ss=class extends je{static{o(this,"ZodUnknown")}constructor(){super(...arguments),this._unknown=!0}_parse(t){return En(t.data)}};ss.create=e=>new ss({typeName:Se.ZodUnknown,...Fe(e)});var ti=class extends je{static{o(this,"ZodNever")}_parse(t){let n=this._getOrReturnCtx(t);return X(n,{code:G.invalid_type,expected:te.never,received:n.parsedType}),ve}};ti.create=e=>new ti({typeName:Se.ZodNever,...Fe(e)});var Au=class extends je{static{o(this,"ZodVoid")}_parse(t){if(this._getType(t)!==te.undefined){let i=this._getOrReturnCtx(t);return X(i,{code:G.invalid_type,expected:te.void,received:i.parsedType}),ve}return En(t.data)}};Au.create=e=>new Au({typeName:Se.ZodVoid,...Fe(e)});var os=class e extends je{static{o(this,"ZodArray")}_parse(t){let{ctx:n,status:i}=this._processInputParams(t),r=this._def;if(n.parsedType!==te.array)return X(n,{code:G.invalid_type,expected:te.array,received:n.parsedType}),ve;if(r.exactLength!==null){let a=n.data.length>r.exactLength.value,c=n.data.length<r.exactLength.value;(a||c)&&(X(n,{code:a?G.too_big:G.too_small,minimum:c?r.exactLength.value:void 0,maximum:a?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),i.dirty())}if(r.minLength!==null&&n.data.length<r.minLength.value&&(X(n,{code:G.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),i.dirty()),r.maxLength!==null&&n.data.length>r.maxLength.value&&(X(n,{code:G.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),i.dirty()),n.common.async)return Promise.all([...n.data].map((a,c)=>r.type._parseAsync(new $r(n,a,n.path,c)))).then(a=>on.mergeArray(i,a));let s=[...n.data].map((a,c)=>r.type._parseSync(new $r(n,a,n.path,c)));return on.mergeArray(i,s)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:le.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:le.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:le.toString(n)}})}nonempty(t){return this.min(1,t)}};os.create=(e,t)=>new os({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Se.ZodArray,...Fe(t)});function pu(e){if(e instanceof qn){let t={};for(let n in e.shape){let i=e.shape[n];t[n]=xr.create(pu(i))}return new qn({...e._def,shape:o(()=>t,"shape")})}else return e instanceof os?new os({...e._def,type:pu(e.element)}):e instanceof xr?xr.create(pu(e.unwrap())):e instanceof Si?Si.create(pu(e.unwrap())):e instanceof Ci?Ci.create(e.items.map(t=>pu(t))):e}o(pu,"deepPartialify");var qn=class e extends je{static{o(this,"ZodObject")}constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),n=Je.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==te.object){let l=this._getOrReturnCtx(t);return X(l,{code:G.invalid_type,expected:te.object,received:l.parsedType}),ve}let{status:i,ctx:r}=this._processInputParams(t),{shape:s,keys:a}=this._getCached(),c=[];if(!(this._def.catchall instanceof ti&&this._def.unknownKeys==="strip"))for(let l in r.data)a.includes(l)||c.push(l);let u=[];for(let l of a){let p=s[l],f=r.data[l];u.push({key:{status:"valid",value:l},value:p._parse(new $r(r,f,r.path,l)),alwaysSet:l in r.data})}if(this._def.catchall instanceof ti){let l=this._def.unknownKeys;if(l==="passthrough")for(let p of c)u.push({key:{status:"valid",value:p},value:{status:"valid",value:r.data[p]}});else if(l==="strict")c.length>0&&(X(r,{code:G.unrecognized_keys,keys:c}),i.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let l=this._def.catchall;for(let p of c){let f=r.data[p];u.push({key:{status:"valid",value:p},value:l._parse(new $r(r,f,r.path,p)),alwaysSet:p in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let l=[];for(let p of u){let f=await p.key,g=await p.value;l.push({key:f,value:g,alwaysSet:p.alwaysSet})}return l}).then(l=>on.mergeObjectSync(i,l)):on.mergeObjectSync(i,u)}get shape(){return this._def.shape()}strict(t){return le.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:o((n,i)=>{let r=this._def.errorMap?.(n,i).message??i.defaultError;return n.code==="unrecognized_keys"?{message:le.errToObj(t).message??r}:{message:r}},"errorMap")}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:o(()=>({...this._def.shape(),...t}),"shape")})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:o(()=>({...this._def.shape(),...t._def.shape()}),"shape"),typeName:Se.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};for(let i of Je.objectKeys(t))t[i]&&this.shape[i]&&(n[i]=this.shape[i]);return new e({...this._def,shape:o(()=>n,"shape")})}omit(t){let n={};for(let i of Je.objectKeys(this.shape))t[i]||(n[i]=this.shape[i]);return new e({...this._def,shape:o(()=>n,"shape")})}deepPartial(){return pu(this)}partial(t){let n={};for(let i of Je.objectKeys(this.shape)){let r=this.shape[i];t&&!t[i]?n[i]=r:n[i]=r.optional()}return new e({...this._def,shape:o(()=>n,"shape")})}required(t){let n={};for(let i of Je.objectKeys(this.shape))if(t&&!t[i])n[i]=this.shape[i];else{let s=this.shape[i];for(;s instanceof xr;)s=s._def.innerType;n[i]=s}return new e({...this._def,shape:o(()=>n,"shape")})}keyof(){return Ej(Je.objectKeys(this.shape))}};qn.create=(e,t)=>new qn({shape:o(()=>e,"shape"),unknownKeys:"strip",catchall:ti.create(),typeName:Se.ZodObject,...Fe(t)});qn.strictCreate=(e,t)=>new qn({shape:o(()=>e,"shape"),unknownKeys:"strict",catchall:ti.create(),typeName:Se.ZodObject,...Fe(t)});qn.lazycreate=(e,t)=>new qn({shape:e,unknownKeys:"strip",catchall:ti.create(),typeName:Se.ZodObject,...Fe(t)});var ma=class extends je{static{o(this,"ZodUnion")}_parse(t){let{ctx:n}=this._processInputParams(t),i=this._def.options;function r(s){for(let c of s)if(c.result.status==="valid")return c.result;for(let c of s)if(c.result.status==="dirty")return n.common.issues.push(...c.ctx.common.issues),c.result;let a=s.map(c=>new zn(c.ctx.common.issues));return X(n,{code:G.invalid_union,unionErrors:a}),ve}if(o(r,"handleResults"),n.common.async)return Promise.all(i.map(async s=>{let a={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:a}),ctx:a}})).then(r);{let s,a=[];for(let u of i){let l={...n,common:{...n.common,issues:[]},parent:null},p=u._parseSync({data:n.data,path:n.path,parent:l});if(p.status==="valid")return p;p.status==="dirty"&&!s&&(s={result:p,ctx:l}),l.common.issues.length&&a.push(l.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;let c=a.map(u=>new zn(u));return X(n,{code:G.invalid_union,unionErrors:c}),ve}}get options(){return this._def.options}};ma.create=(e,t)=>new ma({options:e,typeName:Se.ZodUnion,...Fe(t)});var is=o(e=>e instanceof Ea?is(e.schema):e instanceof Tr?is(e.innerType()):e instanceof Ia?[e.value]:e instanceof va?e.options:e instanceof ba?Je.objectValues(e.enum):e instanceof wa?is(e._def.innerType):e instanceof ga?[void 0]:e instanceof ha?[null]:e instanceof xr?[void 0,...is(e.unwrap())]:e instanceof Si?[null,...is(e.unwrap())]:e instanceof Hd||e instanceof Sa?is(e.unwrap()):e instanceof Ca?is(e._def.innerType):[],"getDiscriminator"),Oh=class e extends je{static{o(this,"ZodDiscriminatedUnion")}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==te.object)return X(n,{code:G.invalid_type,expected:te.object,received:n.parsedType}),ve;let i=this.discriminator,r=n.data[i],s=this.optionsMap.get(r);return s?n.common.async?s._parseAsync({data:n.data,path:n.path,parent:n}):s._parseSync({data:n.data,path:n.path,parent:n}):(X(n,{code:G.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),ve)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,i){let r=new Map;for(let s of n){let a=is(s.shape[t]);if(!a.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let c of a){if(r.has(c))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(c)}`);r.set(c,s)}}return new e({typeName:Se.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:r,...Fe(i)})}};function dC(e,t){let n=wi(e),i=wi(t);if(e===t)return{valid:!0,data:e};if(n===te.object&&i===te.object){let r=Je.objectKeys(t),s=Je.objectKeys(e).filter(c=>r.indexOf(c)!==-1),a={...e,...t};Object.prototype.hasOwnProperty.call(a,"__proto__")&&delete a.__proto__;for(let c of s){if(c==="__proto__")continue;let u=dC(e[c],t[c]);if(!u.valid)return{valid:!1};a[c]=u.data}return{valid:!0,data:a}}else if(n===te.array&&i===te.array){if(e.length!==t.length)return{valid:!1};let r=[];for(let s=0;s<e.length;s++){let a=e[s],c=t[s],u=dC(a,c);if(!u.valid)return{valid:!1};r.push(u.data)}return{valid:!0,data:r}}else return n===te.date&&i===te.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}o(dC,"mergeValues");var ya=class extends je{static{o(this,"ZodIntersection")}_parse(t){let{status:n,ctx:i}=this._processInputParams(t),r=o((s,a)=>{if(Fh(s)||Fh(a))return ve;let c=dC(s.value,a.value);return c.valid?((Uh(s)||Uh(a))&&n.dirty(),{status:n.value,value:c.data}):(X(i,{code:G.invalid_intersection_types}),ve)},"handleParsed");return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([s,a])=>r(s,a)):r(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}};ya.create=(e,t,n)=>new ya({left:e,right:t,typeName:Se.ZodIntersection,...Fe(n)});var Ci=class e extends je{static{o(this,"ZodTuple")}_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==te.array)return X(i,{code:G.invalid_type,expected:te.array,received:i.parsedType}),ve;if(i.data.length<this._def.items.length)return X(i,{code:G.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ve;!this._def.rest&&i.data.length>this._def.items.length&&(X(i,{code:G.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());let s=[...i.data].map((a,c)=>{let u=this._def.items[c]||this._def.rest;return u?u._parse(new $r(i,a,i.path,c)):null}).filter(a=>!!a);return i.common.async?Promise.all(s).then(a=>on.mergeArray(n,a)):on.mergeArray(n,s)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};Ci.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ci({items:e,typeName:Se.ZodTuple,rest:null,...Fe(t)})};var Mh=class e extends je{static{o(this,"ZodRecord")}get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==te.object)return X(i,{code:G.invalid_type,expected:te.object,received:i.parsedType}),ve;let r=[],s=this._def.keyType,a=this._def.valueType;for(let c in i.data)r.push({key:s._parse(new $r(i,c,i.path,c)),value:a._parse(new $r(i,i.data[c],i.path,c)),alwaysSet:c in i.data});return i.common.async?on.mergeObjectAsync(n,r):on.mergeObjectSync(n,r)}get element(){return this._def.valueType}static create(t,n,i){return n instanceof je?new e({keyType:t,valueType:n,typeName:Se.ZodRecord,...Fe(i)}):new e({keyType:Ys.create(),valueType:t,typeName:Se.ZodRecord,...Fe(n)})}},gu=class extends je{static{o(this,"ZodMap")}get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==te.map)return X(i,{code:G.invalid_type,expected:te.map,received:i.parsedType}),ve;let r=this._def.keyType,s=this._def.valueType,a=[...i.data.entries()].map(([c,u],l)=>({key:r._parse(new $r(i,c,i.path,[l,"key"])),value:s._parse(new $r(i,u,i.path,[l,"value"]))}));if(i.common.async){let c=new Map;return Promise.resolve().then(async()=>{for(let u of a){let l=await u.key,p=await u.value;if(l.status==="aborted"||p.status==="aborted")return ve;(l.status==="dirty"||p.status==="dirty")&&n.dirty(),c.set(l.value,p.value)}return{status:n.value,value:c}})}else{let c=new Map;for(let u of a){let l=u.key,p=u.value;if(l.status==="aborted"||p.status==="aborted")return ve;(l.status==="dirty"||p.status==="dirty")&&n.dirty(),c.set(l.value,p.value)}return{status:n.value,value:c}}}};gu.create=(e,t,n)=>new gu({valueType:t,keyType:e,typeName:Se.ZodMap,...Fe(n)});var hu=class e extends je{static{o(this,"ZodSet")}_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==te.set)return X(i,{code:G.invalid_type,expected:te.set,received:i.parsedType}),ve;let r=this._def;r.minSize!==null&&i.data.size<r.minSize.value&&(X(i,{code:G.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),n.dirty()),r.maxSize!==null&&i.data.size>r.maxSize.value&&(X(i,{code:G.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),n.dirty());let s=this._def.valueType;function a(u){let l=new Set;for(let p of u){if(p.status==="aborted")return ve;p.status==="dirty"&&n.dirty(),l.add(p.value)}return{status:n.value,value:l}}o(a,"finalizeSet");let c=[...i.data.values()].map((u,l)=>s._parse(new $r(i,u,i.path,l)));return i.common.async?Promise.all(c).then(u=>a(u)):a(c)}min(t,n){return new e({...this._def,minSize:{value:t,message:le.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:le.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};hu.create=(e,t)=>new hu({valueType:e,minSize:null,maxSize:null,typeName:Se.ZodSet,...Fe(t)});var Lh=class e extends je{static{o(this,"ZodFunction")}constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==te.function)return X(n,{code:G.invalid_type,expected:te.function,received:n.parsedType}),ve;function i(c,u){return Jd({data:c,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,lu(),rs].filter(l=>!!l),issueData:{code:G.invalid_arguments,argumentsError:u}})}o(i,"makeArgsIssue");function r(c,u){return Jd({data:c,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,lu(),rs].filter(l=>!!l),issueData:{code:G.invalid_return_type,returnTypeError:u}})}o(r,"makeReturnsIssue");let s={errorMap:n.common.contextualErrorMap},a=n.data;if(this._def.returns instanceof Zs){let c=this;return En(async function(...u){let l=new zn([]),p=await c._def.args.parseAsync(u,s).catch(h=>{throw l.addIssue(i(u,h)),l}),f=await Reflect.apply(a,this,p);return await c._def.returns._def.type.parseAsync(f,s).catch(h=>{throw l.addIssue(r(f,h)),l})})}else{let c=this;return En(function(...u){let l=c._def.args.safeParse(u,s);if(!l.success)throw new zn([i(u,l.error)]);let p=Reflect.apply(a,this,l.data),f=c._def.returns.safeParse(p,s);if(!f.success)throw new zn([r(p,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:Ci.create(t).rest(ss.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,i){return new e({args:t||Ci.create([]).rest(ss.create()),returns:n||ss.create(),typeName:Se.ZodFunction,...Fe(i)})}},Ea=class extends je{static{o(this,"ZodLazy")}get schema(){return this._def.getter()}_parse(t){let{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}};Ea.create=(e,t)=>new Ea({getter:e,typeName:Se.ZodLazy,...Fe(t)});var Ia=class extends je{static{o(this,"ZodLiteral")}_parse(t){if(t.data!==this._def.value){let n=this._getOrReturnCtx(t);return X(n,{received:n.data,code:G.invalid_literal,expected:this._def.value}),ve}return{status:"valid",value:t.data}}get value(){return this._def.value}};Ia.create=(e,t)=>new Ia({value:e,typeName:Se.ZodLiteral,...Fe(t)});function Ej(e,t){return new va({values:e,typeName:Se.ZodEnum,...Fe(t)})}o(Ej,"createZodEnum");var va=class e extends je{static{o(this,"ZodEnum")}_parse(t){if(typeof t.data!="string"){let n=this._getOrReturnCtx(t),i=this._def.values;return X(n,{expected:Je.joinValues(i),received:n.parsedType,code:G.invalid_type}),ve}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let n=this._getOrReturnCtx(t),i=this._def.values;return X(n,{received:n.data,code:G.invalid_enum_value,options:i}),ve}return En(t.data)}get options(){return this._def.values}get enum(){let t={};for(let n of this._def.values)t[n]=n;return t}get Values(){let t={};for(let n of this._def.values)t[n]=n;return t}get Enum(){let t={};for(let n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(i=>!t.includes(i)),{...this._def,...n})}};va.create=Ej;var ba=class extends je{static{o(this,"ZodNativeEnum")}_parse(t){let n=Je.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==te.string&&i.parsedType!==te.number){let r=Je.objectValues(n);return X(i,{expected:Je.joinValues(r),received:i.parsedType,code:G.invalid_type}),ve}if(this._cache||(this._cache=new Set(Je.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let r=Je.objectValues(n);return X(i,{received:i.data,code:G.invalid_enum_value,options:r}),ve}return En(t.data)}get enum(){return this._def.values}};ba.create=(e,t)=>new ba({values:e,typeName:Se.ZodNativeEnum,...Fe(t)});var Zs=class extends je{static{o(this,"ZodPromise")}unwrap(){return this._def.type}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==te.promise&&n.common.async===!1)return X(n,{code:G.invalid_type,expected:te.promise,received:n.parsedType}),ve;let i=n.parsedType===te.promise?n.data:Promise.resolve(n.data);return En(i.then(r=>this._def.type.parseAsync(r,{path:n.path,errorMap:n.common.contextualErrorMap})))}};Zs.create=(e,t)=>new Zs({type:e,typeName:Se.ZodPromise,...Fe(t)});var Tr=class extends je{static{o(this,"ZodEffects")}innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Se.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:n,ctx:i}=this._processInputParams(t),r=this._def.effect||null,s={addIssue:o(a=>{X(i,a),a.fatal?n.abort():n.dirty()},"addIssue"),get path(){return i.path}};if(s.addIssue=s.addIssue.bind(s),r.type==="preprocess"){let a=r.transform(i.data,s);if(i.common.async)return Promise.resolve(a).then(async c=>{if(n.value==="aborted")return ve;let u=await this._def.schema._parseAsync({data:c,path:i.path,parent:i});return u.status==="aborted"?ve:u.status==="dirty"?la(u.value):n.value==="dirty"?la(u.value):u});{if(n.value==="aborted")return ve;let c=this._def.schema._parseSync({data:a,path:i.path,parent:i});return c.status==="aborted"?ve:c.status==="dirty"?la(c.value):n.value==="dirty"?la(c.value):c}}if(r.type==="refinement"){let a=o(c=>{let u=r.refinement(c,s);if(i.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return c},"executeRefinement");if(i.common.async===!1){let c=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return c.status==="aborted"?ve:(c.status==="dirty"&&n.dirty(),a(c.value),{status:n.value,value:c.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(c=>c.status==="aborted"?ve:(c.status==="dirty"&&n.dirty(),a(c.value).then(()=>({status:n.value,value:c.value}))))}if(r.type==="transform")if(i.common.async===!1){let a=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!Hs(a))return ve;let c=r.transform(a.value,s);if(c instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:c}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(a=>Hs(a)?Promise.resolve(r.transform(a.value,s)).then(c=>({status:n.value,value:c})):ve);Je.assertNever(r)}};Tr.create=(e,t,n)=>new Tr({schema:e,typeName:Se.ZodEffects,effect:t,...Fe(n)});Tr.createWithPreprocess=(e,t,n)=>new Tr({schema:t,effect:{type:"preprocess",transform:e},typeName:Se.ZodEffects,...Fe(n)});var xr=class extends je{static{o(this,"ZodOptional")}_parse(t){return this._getType(t)===te.undefined?En(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};xr.create=(e,t)=>new xr({innerType:e,typeName:Se.ZodOptional,...Fe(t)});var Si=class extends je{static{o(this,"ZodNullable")}_parse(t){return this._getType(t)===te.null?En(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Si.create=(e,t)=>new Si({innerType:e,typeName:Se.ZodNullable,...Fe(t)});var wa=class extends je{static{o(this,"ZodDefault")}_parse(t){let{ctx:n}=this._processInputParams(t),i=n.data;return n.parsedType===te.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};wa.create=(e,t)=>new wa({innerType:e,typeName:Se.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Fe(t)});var Ca=class extends je{static{o(this,"ZodCatch")}_parse(t){let{ctx:n}=this._processInputParams(t),i={...n,common:{...n.common,issues:[]}},r=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return du(r)?r.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new zn(i.common.issues)},input:i.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new zn(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}};Ca.create=(e,t)=>new Ca({innerType:e,typeName:Se.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Fe(t)});var mu=class extends je{static{o(this,"ZodNaN")}_parse(t){if(this._getType(t)!==te.nan){let i=this._getOrReturnCtx(t);return X(i,{code:G.invalid_type,expected:te.nan,received:i.parsedType}),ve}return{status:"valid",value:t.data}}};mu.create=e=>new mu({typeName:Se.ZodNaN,...Fe(e)});var Iie=Symbol("zod_brand"),Hd=class extends je{static{o(this,"ZodBranded")}_parse(t){let{ctx:n}=this._processInputParams(t),i=n.data;return this._def.type._parse({data:i,path:n.path,parent:n})}unwrap(){return this._def.type}},Yd=class e extends je{static{o(this,"ZodPipeline")}_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.common.async)return o(async()=>{let s=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return s.status==="aborted"?ve:s.status==="dirty"?(n.dirty(),la(s.value)):this._def.out._parseAsync({data:s.value,path:i.path,parent:i})},"handleAsync")();{let r=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return r.status==="aborted"?ve:r.status==="dirty"?(n.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:i.path,parent:i})}}static create(t,n){return new e({in:t,out:n,typeName:Se.ZodPipeline})}},Sa=class extends je{static{o(this,"ZodReadonly")}_parse(t){let n=this._def.innerType._parse(t),i=o(r=>(Hs(r)&&(r.value=Object.freeze(r.value)),r),"freeze");return du(n)?n.then(r=>i(r)):i(n)}unwrap(){return this._def.innerType}};Sa.create=(e,t)=>new Sa({innerType:e,typeName:Se.ZodReadonly,...Fe(t)});function gj(e,t){let n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}o(gj,"cleanParams");function Ij(e,t={},n){return e?Ws.create().superRefine((i,r)=>{let s=e(i);if(s instanceof Promise)return s.then(a=>{if(!a){let c=gj(t,i),u=c.fatal??n??!0;r.addIssue({code:"custom",...c,fatal:u})}});if(!s){let a=gj(t,i),c=a.fatal??n??!0;r.addIssue({code:"custom",...a,fatal:c})}}):Ws.create()}o(Ij,"custom");var vie={object:qn.lazycreate},Se;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Se||(Se={}));var bie=o((e,t={message:`Input not instance of ${e.name}`})=>Ij(n=>n instanceof e,t),"instanceOfType"),vj=Ys.create,bj=da.create,wie=mu.create,Cie=pa.create,wj=fa.create,Sie=Aa.create,kie=fu.create,Bie=ga.create,Rie=ha.create,Qie=Ws.create,xie=ss.create,$ie=ti.create,Tie=Au.create,Die=os.create,_ie=qn.create,Nie=qn.strictCreate,Pie=ma.create,Fie=Oh.create,Uie=ya.create,Oie=Ci.create,Mie=Mh.create,Lie=gu.create,jie=hu.create,Gie=Lh.create,Vie=Ea.create,zie=Ia.create,qie=va.create,Jie=ba.create,Hie=Zs.create,Yie=Tr.create,Wie=xr.create,Zie=Si.create,Kie=Tr.createWithPreprocess,Xie=Yd.create,ese=o(()=>vj().optional(),"ostring"),tse=o(()=>bj().optional(),"onumber"),nse=o(()=>wj().optional(),"oboolean"),rse={string:o((e=>Ys.create({...e,coerce:!0})),"string"),number:o((e=>da.create({...e,coerce:!0})),"number"),boolean:o((e=>fa.create({...e,coerce:!0})),"boolean"),bigint:o((e=>pa.create({...e,coerce:!0})),"bigint"),date:o((e=>Aa.create({...e,coerce:!0})),"date")};var ise=ve;var Wd=(r=>(r.ModelProvider="model_provider",r.SutAccess="sut_access",r.Skyramp="skyramp",r.Other="other",r))(Wd||{}),pC=(i=>(i.Ready="ready",i.Blocked="blocked",i.NeedsInputs="needs_inputs",i))(pC||{});var jh=300,$t=d.string().trim().min(1),sse=d.object({action:d.enum(["start","run","wait"]),text:$t,source:d.enum(["file","notes","testbot"]).describe("file: a file in the repository; notes: the Target's notes; testbot: Testbot's own finding"),file:$t.nullable().describe("the file the step came from, relative to the component's repository; null unless source is file")}).strict().refine(e=>e.source==="file"==(e.file!==null),{path:["file"],message:"a file exactly when the step came from one"}),Zd=/^[A-Za-z_][A-Za-z0-9_]*$/,ki=/^(?!GITHUB_)(?!SKYRAMP_RUNNER_)[A-Z][A-Z0-9_]{0,99}$/,yu=(a=>(a.VersionEndpoint="version_endpoint",a.DeployWorkflow="deploy_workflow",a.KubernetesLabels="kubernetes_labels",a.Command="command",a.Api="api",a.NotTracked="not_tracked",a))(yu||{}),Bi="shared",ose=$t.refine(e=>{try{let t=new URL(e);return["http:","https:"].includes(t.protocol)&&!t.username&&!t.password}catch{return!1}},"an http(s) URL with no login in it"),Eu=d.object({address:ose,readyWhen:$t.nullable(),credentials:d.array(d.string().regex(ki)).max(50),revisionSources:d.array(d.object({method:d.nativeEnum(yu),detail:$t.describe("what Testbot reads, such as GET /version or the deploy workflow's name; for not_tracked, why nothing shows it"),components:d.array($t).min(1).describe("the components it tells the revision of, by name")}).strict()).max(50)}).strict(),fC={steps:d.array(sse).max(20).optional().describe("how it starts, in order"),kind:d.enum(["web_app","service","database","external_service"]).optional(),from:d.object({file:$t,service:$t.nullable()}).strict().optional(),credentials:d.array(d.string().max(100).regex(Zd)).max(50).optional().describe("the Target's credentials this component's recipe uses: a sign-in (a test user, password or token) or an API key, which the workflow supplies from a GitHub Actions secret as the environment variable of the credential's name; give each name exactly as the recipe reads it. Names only, never a value, and not a secret the recipe generates itself")},AC=d.object({name:$t,repository:$t.describe("owner/repo of the Target repository the component is built or started from, such as the one whose compose file starts its database"),healthy:d.boolean(),...fC,deployed:$t.nullable().optional().describe('only with "environment": the revision the component runs, as you read it from its revision source, or null when you could not tell')}),ase=d.object({name:d.string().regex(ki).describe("the credential's environment variable name, as the recipe reads it and the credentials event names it"),purpose:d.enum(["sut_access","other"]).describe("sut_access: it signs in to or calls the SUT or a service it needs; other: anything else"),required:d.boolean().describe("false only when the SUT starts without it, with less working"),how:$t.max(jh).describe('one short sentence: what the value is and where a person gets it, such as "A Mattermost Enterprise licence key, from the customer portal"; never a value')}),cse=d.object({component:$t,problem:$t,evidence:$t.describe("the exact command and output that shows it"),fix:$t.describe("what the user must provide, and where")}),use=d.object({framework:$t,file:$t.describe("the test file run, relative to its repository root"),result:d.enum(["pass","fail","error"])}),lse=d.object({input:$t.describe("the part of the user's SUT input, as given"),reason:$t}),wke=d.object({schemaVersion:d.literal(1),status:d.nativeEnum(pC).describe("ready only if every component came up healthy and the recipe is written; needs_inputs when the recipe is written but a component cannot start without a credential this run has no value for"),components:d.array(AC),suites:d.array(use).default([]).describe("one run per test suite the Target's repositories have; empty when they have none"),inputsUsed:d.array($t).default([]).describe("the parts of the user's SUT input the recipe used as given"),inputsUsedHow:d.array(d.object({input:$t.describe("exactly as written in inputsUsed; an entry that is not there is left out"),how:$t.describe("what the recipe did with it")})).optional(),inputsNotUsed:d.array(lse).default([]).describe("the parts it did not use, and why. A part that is wrong goes here, with what was wrong, even when the recipe does something like it instead: one the repositories or the app show is wrong, such as a file, command, port, route or setting that is not there. Something outside them that does not answer is not one: that is a blocker"),blockers:d.array(cse).describe("required (non-empty) when status is blocked"),inputs:d.array(ase).max(50).optional().describe("required (non-empty) when status is needs_inputs, else left out: each credential the candidate recipe needs a value for"),environment:Eu.optional().describe("only when the whole SUT is an existing deployment you tested where it runs, building and starting nothing: its address, what says it is ready, the credentials that reach it, and how to read what each component runs. Leave it out when any part was built or started on the runner, or reaching it needed something there (a tunnel, port-forward, proxy or client certificate)")});var gC=64*1024,hC=512*1024,Cj=/[\u0000-\u0008\u000b\u000e-\u001f\u007f]|[\ud800-\udbff](?![\udc00-\udfff])|(?<![\ud800-\udbff])[\udc00-\udfff]/;var Ri=(r=>(r.Clean="clean",r.RecipeDrift="recipe-drift",r.ChangeBrokeBringup="change-broke-bringup",r.BringupFailed="bringup-failed",r))(Ri||{}),ni=d.string().trim().min(1),dse=d.object({url:d.string().optional().describe("the URL probed, if the check is an HTTP request"),command:d.string().optional().describe("the command run, if the check is a script \u2014 preferred when auth is needed"),headers:d.record(d.string()).optional(),status:d.union([d.number(),d.string()]).optional().describe("expected HTTP status for a url check (default 200)"),output:ni.describe("what the check returned, VERBATIM \u2014 the bytes, nothing appended; this gate RE-RUNS the check")}),mC=d.array(d.object({component:ni.describe("a shared component listed above"),url:ni.describe("the URL on the component's own origin (scheme, host and port) that answers with its deployed commit"),output:ni.describe("what the URL returned, VERBATIM; this gate FETCHES each url")})).describe("only when shared components are listed above: one check per component whose deployed commit you found"),pse=d.object({name:ni.describe("the credential's environment variable name, as listed above; never its value"),component:ni.describe("the component that refused it"),status:d.number().int().min(400).max(599).optional().describe("the HTTP status it got, such as 401 or 403; leave it out when the refusal was not an HTTP answer"),evidence:ni.describe("the request or command you tested it with and what came back, never the value")}),Sj=d.object({schemaVersion:d.literal(1),baseUrls:d.record(d.string()).optional().describe("service \u2192 base URL of the running app; omit on a failed bring-up, never invent one"),health:dse.optional(),teardown:ni.describe("command that tears the SUT down"),dependencies:d.record(d.boolean()).optional().describe("EVERY backing service: true = really deployed, false = mocked; REQUIRED when the app came up"),outcome:d.nativeEnum(Ri).describe("clean | recipe-drift (you corrected the recipe) | change-broke-bringup (the PR broke it) | bringup-failed (environment, not the PR)"),recipeFixes:d.array(d.string()).optional().describe("required when outcome is recipe-drift: what was corrected"),bringupError:d.object({command:ni,output:ni}).optional().describe("required when bring-up failed: the exact failing command and what it printed"),suspectFiles:d.array(d.string()).optional().describe("required for change-broke-bringup: files THIS PR changed that the failure points at, relative to your working directory (a file in another checkout of the run: its absolute path)"),seeded:d.boolean(),startedAt:ni.describe("ISO timestamp"),revisions:mC.optional(),missingSecrets:d.array(d.string().regex(Zd)).optional().describe("bringup-failed only: each secret the app cannot start without that this run has no value for, by its environment variable name; never a value"),credentialsRefused:d.array(pse).optional().describe("only for credentials the prompt lists to test: each that was refused when you tested it, such as with a 401 or 403; leave it out when none was, or when none is listed"),recipeRecorded:d.boolean().optional().describe("[derived] whether the checkout had a recorded recipe before bring-up")});var Xj=require("node:crypto");var ka=(s=>(s.NotFound="not_found",s.NoAccess="no_access",s.Unavailable="unavailable",s.AccessLost="access_lost",s.CannotOpen="cannot_open",s))(ka||{});var yC=o(e=>`${e.source}:${e.site??""}:${e.key}`,"requirementItemId");var Kd=/^pasted-[0-9a-f]{16}$/,Ks=/^file-[0-9a-f]{16}$/,Xd=(r=>(r.Pdf="application/pdf",r.Csv="text/csv",r.Docx="application/vnd.openxmlformats-officedocument.wordprocessingml.document",r.Xlsx="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",r))(Xd||{}),ep=o(e=>e.trim().toUpperCase(),"normalKey"),kj=o((e,t)=>{let n=e.trim();return Kd.test(n.toLowerCase())?"Pasted text":Ks.test(n.toLowerCase())?t?.get(ep(n))??"Uploaded document":/^\d+$/.test(n)?`Confluence page ${n}`:n.toUpperCase()},"itemName");var Gh=(i=>(i.New="new",i.Updated="updated",i.Existing="existing",i))(Gh||{}),Qi=(i=>(i.Sufficient="sufficient",i.Insufficient="insufficient",i.NoChange="no_change",i))(Qi||{}),Iu=(v=>(v.RelatedChangeConflict="related_change_conflict",v.ReferenceOutsideTarget="reference_outside_target",v.SourceAccessLost="source_access_lost",v.ConfigurationIncomplete="configuration_incomplete",v.CredentialUnavailable="credential_unavailable",v.WorkflowBindingUnverified="workflow_binding_unverified",v.WorkflowRefUnprotected="workflow_ref_unprotected",v.BedrockWorkflowRequired="bedrock_workflow_required",v.DeploymentReview="deployment_review",v.SutRevisionMismatch="sut_revision_mismatch",v.IsolationUnavailable="isolation_unavailable",v.EvidenceInsufficient="evidence_insufficient",v.ConfigurationUnresolved="configuration_unresolved",v.ModelProviderDenied="model_provider_denied",v.ModelProviderUnavailable="model_provider_unavailable",v.RunnerProviderNotReady="runner_provider_not_ready",v.MergeConflict="merge_conflict",v))(Iu||{}),Xs=(s=>(s.CiCheck="ci_check",s.TestReport="test_report",s.StaticAnalysis="static_analysis",s.CodeReview="code_review",s.Other="other",s))(Xs||{}),tp=(i=>(i.Application="application",i.Environment="environment",i.TestDefect="test_defect",i))(tp||{}),np=(c=>(c.AuthToken="auth_token",c.Secret="secret",c.DataConnection="data_connection",c.AppNotStarted="app_not_started",c.Login="login",c.ExternalDependency="external_dependency",c.RecordingReplay="recording_replay",c))(np||{});var Vh=(n=>(n.Probe="probe",n.Agent="agent",n))(Vh||{}),rp=(i=>(i.Seed="seed",i.RuntimeMock="runtime_mock",i.EnvOverride="env_override",i))(rp||{}),zh=(i=>(i.TestCode="test_code",i.SkyrampMocker="skyramp_mocker",i.RecipeOverride="recipe_override",i))(zh||{});var ip=(n=>(n.Skyramp="skyramp",n.Llm="llm",n))(ip||{}),xi=d.string().trim().min(1),fse=d.object({case:xi.describe("recommend id this assertion enforces"),evidence:xi.describe("the exact assertion line from the file that checks that case's observable")});var Bj=d.object({route:d.literal("persistence"),url:d.string().url()}).strict(),sp=d.object({kind:d.nativeEnum(rp).describe("seed: data the test creates in the app; runtime_mock: a mock on a Skyramp worker, which other tests reach too; env_override: an env value the app runs with. A stub inside the test's own process, such as a browser page's route, is none of these"),target:xi.describe("the dependency, endpoint or data it affects"),mechanism:d.nativeEnum(zh).describe("test_code: the test applies and undoes it; skyramp_mocker: a mock the test applies on a Skyramp worker; recipe_override: the mocker cannot reach the dependency (its URL is fixed in the build)"),detail:xi.describe("what it sets up"),worker:xi.optional().describe("skyramp_mocker: host:port of the worker the test applies the mock to (default localhost:35142)"),safety:Bj.optional().describe("shared seed that keeps its data only because the environment permits it: the persistence route and the exact endpoint; Testbot checks the current permission just before it runs the test"),cleanup:xi.optional().describe("seed: when its data can be removed, a command that removes it if the test does not; otherwise declare leftBehind instead. Run as written and without a shell: give real values, not a placeholder such as <id>, single-quote an argument that holds shell syntax, or put the logic in a script in the repository and run that"),leftBehind:xi.optional().describe("seed: the records the test creates and cannot remove from the app, and how to find them")}).refine(e=>!e.leftBehind||e.kind==="seed",{message:"leftBehind is for a seed only: a runtime mock or an env override creates no records",path:["leftBehind"]}),Ase=d.object({file:xi.describe("staged path under .skyramp/staged/"),source:d.nativeEnum(ip),language:xi,covers:d.array(d.string()).min(1,"must be a non-empty array of recommend ids").describe("recommend ids this test covers"),assertions:d.array(fse).min(1,"must be a non-empty array").describe("one per case covered, citing the real line"),context:d.array(sp).optional().describe("what the test sets up against the running app, in order: data it seeds, Skyramp mocks it applies, env overrides; omit when none")}),EC=d.object({schemaVersion:d.literal(1),tests:d.array(Ase),deferredUi:d.array(d.string()).describe("recommend ui ids left for the UI stage (generate) \u2014 [] for generate-ui"),summary:xi.describe("one paragraph")});var as=(a=>(a.Place="place",a.Update="update",a.Regenerate="regenerate",a.Delete="delete",a.Verify="verify",a.None="none",a))(as||{}),Jn=(i=>(i.Pass="pass",i.Fail="fail",i.Skip="skip",i))(Jn||{}),Qn=d.string().trim().min(1),IC=(r=>(r.Setup="setup",r.Expectation="expectation",r.Locator="locator",r.Other="other",r))(IC||{}),qh=d.object({kind:d.nativeEnum(IC),reason:Qn.describe("what in the test is wrong, with the evidence: the setup error it raised, or the requirement or changed line its expectation contradicts")}),op=d.array(d.string().url().max(2048).regex(/^https?:\/\//i)).max(50),Rj=d.object({case:Qn.describe("a covers id \u2014 the recommend case this test realizes"),status:d.nativeEnum(Jn),runtimeTargets:op.optional().describe("HTTP(S) URLs this case actually exercised in its current run; omit for in-process or mocked checks, never infer from test type"),environmentRestriction:Qn.optional().describe("for a skipped case: what this run lacks to execute it; the test is still written"),fromJourney:d.boolean().optional(),testProblem:qh.optional().describe("[derived] write's reading of a failing case: the test, not the app, is at fault"),defect:d.boolean().optional().describe("[derived] write's reading of a failing case: true when the app is wrong and the test is right"),failure:d.string().optional().describe("[derived] for a failing case: the runner's failure for it, as printed")}).refine(e=>!e.environmentRestriction||e.status==="skip"&&!e.runtimeTargets?.length,{message:"an environment-restricted case must be skipped and have no runtimeTargets"}),Qj=d.object({started:d.boolean().optional().describe("with exit null: true if the test command started (it was interrupted or timed out), false if it never started. Left out, Testbot counts it as possibly started, with its cleanup unknown"),exit:d.number({invalid_type_error:"must be a number or null"}).nullable().describe("process exit of the re-run; null when no SUT was available"),details:d.string().optional().describe("what failed, or why a file was not run \u2014 required on any non-zero exit"),tests:d.array(Rj).optional().describe("ONE ENTRY PER CASE the file covers, its own result; must agree with exit (0 \u2192 no fail; non-zero \u2192 at least one, or the non-test reason in details). The report reads the file by these where they are given")}),xj=d.object({context:d.array(sp).optional().describe("[derived] setup declarations retained for every executed test, including maintained tests"),from:d.string().optional().describe("staged path \u2014 required for placements"),file:Qn.describe("final path relative to its repository, inside that checkout, with a source-file extension"),repository:Qn.optional().describe("owner/repo the file lives in, when the run has several checkouts; omit for the working checkout"),action:d.nativeEnum(as),covers:d.array(d.string()).optional().describe("recommend ids a placed test covers"),repro:d.boolean().optional().describe("this test is MEANT to fail \u2014 it reproduces a reported bug"),finding:d.boolean().optional().describe("a non-repro test that failed on a REAL product bug"),placementBroken:d.boolean().optional().describe('placement/harness problem one repair could not fix \u2014 every reran.tests entry is then "skip"'),keptReason:Qn.optional().describe("why a planned delete/regenerate was declined and the file kept"),isolatedRun:Qn.optional().describe('only for a test marked "runs alone": the command, from its checkout root and without a shell, that runs only this file and writes its JUnit XML into $SKYRAMP_RESULTS_DIR (named by its path: no shell expands it) \u2014 the harness runs it, so leave reran.exit null'),reran:Qj,assertionCount:d.number().int().nonnegative().optional().describe("[derived] assertions reachable from the file, counted at write time"),addedOnly:d.boolean().optional().describe("[derived] an existing test file the run only added to: every line it had is still there"),added:d.array(Qn).optional().describe("[derived] the cases of the test functions the run added to an existing file: functions it did not have"),staleOnBase:d.boolean().optional().describe("[derived] an existing test that fails the same way on the base branch: its failure is the test's own")}).refine(e=>e.action!=="place"||typeof e.from=="string"&&e.from.trim().length>0,{message:'is a place but has no "from" staged path',path:[]}),$j=(n=>(n.Junit="junit",n.Converter="converter",n))($j||{}),gse=Qn.optional().describe("the items[].file this test is in \u2014 needed only when two of this suite's files cover the same case id"),hse=d.object({results:Qn.describe("the JUnit XML file this run wrote, a plain file name inside $SKYRAMP_RESULTS_DIR (e.g. backend.xml)"),source:d.nativeEnum($j),run:Qn.describe("the command you ran that wrote it, exactly as you ran it (with any converter)"),files:d.array(Qn).min(1).describe("the items[].file paths this run covered"),cases:d.array(d.object({test:Qn.describe("the test's name as the runner reports it, qualified by its class or file (e.g. tests/test_a.py::test_x) when the bare name repeats"),case:Qn.describe("the covers id it realizes"),file:gse})).describe("map each reported test name to the case it covers")}),mse=d.object({suites:d.array(hse).min(1)}),vC=d.object({schemaVersion:d.literal(1),items:d.array(xj),runnerResults:mse.optional().describe("the JUnit XML your test runs wrote into $SKYRAMP_RESULTS_DIR, so the harness reads each test's result from the runner \u2014 omit only when no SUT is available"),ignored:d.array(d.string()).describe("existing tests assessed and deliberately left untouched"),summary:Qn.describe("one paragraph")});uu();aC();function Tj(e){return e.toUpperCase().replace(/[^A-Z0-9]+/g,"_").replace(/^_+|_+$/g,"")}o(Tj,"credentialKeyFromRole");var Dj=re(require("path"));var an=d.string().trim().min(1),Jh=an,bC=(n=>(n.TestbotManaged="testbot_managed",n.CustomerDeployed="customer_deployed",n))(bC||{}),wC=[".skyramp/sut/setup.sh",".skyramp/sut/teardown.sh"],_j=d.object({schemaVersion:d.literal(1),type:d.nativeEnum(bC).optional(),repository:Jh.optional().describe("namespace/name of the source whose checkout the recipe was written and proven in (SKYR-5380); a run replays it from there. Never on a customer_deployed plan"),status:d.enum(["ready","blocked"]),environment:Eu.optional(),components:d.array(d.object({name:an,repository:an.describe(`owner/repo, or "${Bi}" for a customer-deployed component no repository builds`),healthy:d.boolean(),url:d.string().min(1).nullable(),...fC,credentials:d.array(d.string().regex(ki)).max(50).optional(),deployed:an.nullable().optional().describe("customer_deployed only: the revision the component runs, as setup read it (WF-SETUP-22's Deployed now), or null when it could not tell")}).strict()),suites:d.array(d.object({framework:an,file:an,result:d.enum(["pass","fail","error"])}).strict()),inputsUsed:d.array(an),inputsUsedHow:d.array(d.object({input:an,how:an}).strict()).optional(),inputsNotUsed:d.array(d.object({input:an,reason:an}).strict()),blockers:d.array(d.object({component:an,problem:an,evidence:an,fix:an}).strict()),replay:d.object({outcome:an,durationSeconds:d.number().nonnegative().nullable()}).strict().nullable(),files:d.array(d.object({path:an,content:d.string()}).strict())}).strict().superRefine((e,t)=>{e.inputsUsedHow?.forEach((r,s)=>{e.inputsUsed.includes(r.input)||t.addIssue({code:d.ZodIssueCode.custom,path:["inputsUsedHow",s,"input"],message:"not one of inputsUsed"})}),e.components.forEach((r,s)=>{r.credentials&&new Set(r.credentials).size!==r.credentials.length&&t.addIssue({code:d.ZodIssueCode.custom,path:["components",s,"credentials"],message:"names a credential twice"})});let n=e.type==="customer_deployed";n!==(e.environment!==void 0)&&t.addIssue({code:d.ZodIssueCode.custom,path:["environment"],message:"an environment exactly when the plan's type is customer_deployed"}),n&&e.repository!==void 0&&t.addIssue({code:d.ZodIssueCode.custom,path:["repository"],message:"a customer_deployed plan names no repository"}),e.environment&&new Set(e.environment.credentials).size!==e.environment.credentials.length&&t.addIssue({code:d.ZodIssueCode.custom,path:["environment","credentials"],message:"names a credential twice"});let i=new Set(e.components.map(r=>r.name));if(e.environment?.revisionSources.forEach((r,s)=>{r.components.forEach((a,c)=>{i.has(a)||t.addIssue({code:d.ZodIssueCode.custom,path:["environment","revisionSources",s,"components",c],message:"not one of components"})})}),e.components.forEach((r,s)=>{r.deployed!==void 0!==n&&t.addIssue({code:d.ZodIssueCode.custom,path:["components",s,"deployed"],message:"what a component runs exactly when the plan is customer_deployed"}),r.repository===Bi&&!n&&t.addIssue({code:d.ZodIssueCode.custom,path:["components",s,"repository"],message:`only a customer_deployed component is ${Bi}`})}),n&&(e.components.forEach((r,s)=>{e.components.findIndex(a=>a.name===r.name)!==s&&t.addIssue({code:d.ZodIssueCode.custom,path:["components",s,"name"],message:"names a component twice"})}),e.replay!==null&&t.addIssue({code:d.ZodIssueCode.custom,path:["replay"],message:"a customer_deployed plan is never replayed"}),e.files.forEach((r,s)=>{wC.includes(r.path)&&t.addIssue({code:d.ZodIssueCode.custom,path:["files",s,"path"],message:"a customer_deployed plan has no script that starts or stops the system"})})),n&&e.status==="ready"){let r=new Set(e.environment?.revisionSources.flatMap(s=>s.components));e.components.forEach((s,a)=>{s.repository!==Bi&&!r.has(s.name)&&t.addIssue({code:d.ZodIssueCode.custom,path:["components",a,"name"],message:"a ready customer_deployed plan reads what every component a repository builds runs"})})}});var Yke=["clean","recipe-drift"];function ap(e){let t=Dj.posix.normalize(e);return t===e&&(t===".skyramp/workspace.yml"||t.startsWith(".skyramp/sut/")&&t.length>13)}o(ap,"isRuntimePlanFile");var cp=d.string().uuid(),up=d.object({environmentId:d.string().uuid(),allowed:d.boolean(),revision:cp,updatedAt:d.string().datetime(),updatedBy:d.string().uuid()}).strict();var lp=(a=>(a.NoEnvironment="no_environment",a.NoRecordedGrant="no_recorded_grant",a.Unavailable="unavailable",a.Changed="changed",a.Denied="denied",a.OutOfScope="out_of_scope",a))(lp||{});function dp(e){switch(e){case"no_environment":return"the run has no selected Test Environment address";case"no_recorded_grant":return"the run's configuration did not record permission to keep test data in this environment";case"unavailable":return"the current permission to keep test data could not be read";case"changed":return"the permission to keep test data changed after the run started";case"denied":return"the environment does not permit test data to stay";case"out_of_scope":return"the request is outside the environment's address"}}o(dp,"persistenceRefusalText");function Hh(e,t,n){let i=up.safeParse(t);return!i.success||!i.data.allowed||!e.environmentId||i.data.environmentId!==e.environmentId||!e.environmentAddress||e.persistentDataPolicy&&e.persistentDataPolicy.revision!==i.data.revision?!1:eo(e.environmentAddress,n)}o(Hh,"persistentDataPolicyApplies");function eo(e,t){try{let n=new URL(t),i=new URL(e);if(i.search||i.hash)return!1;let r=/%(?:2f|5c|2e|25)/i;if(t.includes("\\")||e.includes("\\")||r.test(n.pathname)||r.test(i.pathname))return!1;let s=i.pathname.replace(/\/$/,"");return["https:","http:"].includes(i.protocol)&&n.origin===i.origin&&(n.pathname===s||n.pathname.startsWith(`${s}/`))}catch{return!1}}o(eo,"environmentContainsUrl");var CC="delivery-persistence.json",Nj=d.object({environmentId:d.string().uuid(),environmentAddress:d.string().url(),revision:cp}).strict(),Pj=d.object({refusal:d.nativeEnum(lp)}).strict();var e1=d.unknown().optional(),t1={handshake:"/api/v1/runner/runs/:runId/attempts",report:"/api/v1/runner/attempts/:attemptId/report",end:"/api/v1/runner/attempts/:attemptId/end",configuration:"/api/v1/runner/attempts/:attemptId/configuration",progress:"/api/v1/runner/attempts/:attemptId/progress",sutRecipe:"/api/v1/runner/attempts/:attemptId/sut-recipe",runtimePlan:"/api/v1/runner/attempts/:attemptId/runtime-plan",persistentDataPolicy:"/api/v1/runner/attempts/:attemptId/persistent-data-policy",heartbeat:"/api/v1/runner/attempts/:attemptId/heartbeat",setupEvents:"/api/v1/runner/attempts/:attemptId/setup-events",runEvents:"/api/v1/runner/attempts/:attemptId/run-events",requirements:"/api/v1/runner/attempts/:attemptId/requirements",requirementFile:"/api/v1/runner/attempts/:attemptId/requirements/:key/file",deployedRevisions:"/api/v1/runner/attempts/:attemptId/deployed-revisions"},Ra=(n=>(n.GitHub="github",n.AzureDevOps="azure-devops",n))(Ra||{}),tm=(s=>(s.Trigger="TRIGGER",s.Baseline="BASELINE",s.AuthoritativeRelatedChange="AUTHORITATIVE_RELATED_CHANGE",s.ConfiguredSharedDependency="CONFIGURED_SHARED_DEPENDENCY",s.ManualOverride="MANUAL_OVERRIDE",s))(tm||{}),nm=(a=>(a.PullRequest="pull_request",a.ReadyForReview="ready_for_review",a.Schedule="schedule",a.Manual="manual",a.SutSetup="sut_setup",a.RevisionRead="revision_read",a))(nm||{}),yse=["sut_setup"],Ese=["sut_setup","schedule","revision_read"],Ise=["sut_setup"],RC=(t=>(t.PullRequest="pull_request",t))(RC||{}),QC=(n=>(n.PullRequest="pull_request",n.Branch="branch",n))(QC||{}),Fj=["TRIGGER","AUTHORITATIVE_RELATED_CHANGE","MANUAL_OVERRIDE"];var rm=(r=>(r.None="none",r.Delivered="delivered",r.Partial="partial",r.Failed="failed",r))(rm||{}),Ap=(s=>(s.ReportUploaded="report_uploaded",s.NoReport="no_report",s.Cancelled="cancelled",s.RecipeUploaded="recipe_uploaded",s.RevisionsUploaded="revisions_uploaded",s))(Ap||{}),n1=(n=>(n.Running="running",n.Ended="ended",n))(n1||{}),gp=(g=>(g.TimedOut="timed_out",g.AgentFailed="agent_failed",g.SetupFailed="setup_failed",g.CredentialMissing="credential_missing",g.RunnerLost="runner_lost",g.CheckoutFailed="checkout_failed",g.EnvironmentUnverified="environment_unverified",g.ModelProviderDenied="model_provider_denied",g.ModelProviderUnavailable="model_provider_unavailable",g.RunnerProviderNotReady="runner_provider_not_ready",g.MergeConflict="merge_conflict",g.EnvironmentUnavailable="environment_unavailable",g))(gp||{}),r1=(i=>(i.Onboard="onboard",i.Deploy="deploy",i.Recheck="recheck",i))(r1||{}),xC=(n=>(n.Started="started",n.Finished="finished",n))(xC||{}),i1=(i=>(i.Passed="passed",i.Failed="failed",i.Skipped="skipped",i))(i1||{});var s1=(i=>(i.ChooseCredential="choose_credential",i.FreeText="free_text",i.ChooseSource="choose_source",i))(s1||{});var o1=(r=>(r.Answered="answered",r.Followed="followed",r.NotFollowed="not_followed",r.TooLate="too_late",r))(o1||{}),$C=(i=>(i.Discover="discover",i.Start="start",i.Check="check",i))($C||{}),SC=(r=>(r.ValidationPlan="validation_plan",r.TestEnvironment="test_environment",r.TestConditions="test_conditions",r.Tests="tests",r))(SC||{});var TC=(r=>(r.Found="found",r.Starting="starting",r.Up="up",r.OutOfScope="out_of_scope",r))(TC||{}),Dr=d.string().regex(/^[1-9][0-9]{0,18}$/),_r=d.string().regex(/^(?:[0-9a-f]{40}|[0-9a-f]{64})$/),kC=d.string().regex(/^(?!.*\.\.)(?!\/)(?!.*\/$)[A-Za-z0-9._/-]{1,255}$/),wu=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function a1(e,t){return`${e.replace(/\/+$/,"")}/runs/${t}`}o(a1,"skyrampRunPageUrl");var In=d.string().regex(wu),xn=d.string().regex(/^[0-9a-f]{64}$/),Xh=d.object({id:In,revision:Dr}).strict(),im={provider:d.literal("github"),providerAccountId:Dr,providerRepositoryId:Dr},sm={provider:d.literal("azure-devops"),providerAccountId:In,providerRepositoryId:In},hr=d.discriminatedUnion("provider",[d.object(im).strict(),d.object(sm).strict()]),DC=d.discriminatedUnion("provider",[d.object(im).passthrough(),d.object(sm).passthrough()]),Ti=o(e=>`${e.provider}:${e.providerRepositoryId}`,"sourceKey"),Uj={namespace:d.string().min(1),name:d.string().min(1)},c1=d.discriminatedUnion("provider",[d.object({...im,...Uj}).strict(),d.object({...sm,...Uj}).strict()]),Oj=d.object({ref:d.string().min(1),revision:_r}).strict(),vse=d.object({kind:d.nativeEnum(QC),number:Dr.optional(),ref:d.string().min(1),revision:_r,reason:d.nativeEnum(tm)}).strict(),bse=d.object({repository:c1,revision:_r,ref:d.string().nullable(),reason:d.nativeEnum(tm),change:d.object({kind:d.nativeEnum(RC),number:Dr,base:Oj.optional()}).strict().nullable(),compareWith:Oj.optional(),merge:d.array(vse).min(2).optional()}).strict();function wse(e){let t=e.merge;if(!t)return null;if(e.change||e.compareWith)return{path:["merge"],message:"a merged source names no change and no compareWith"};if(e.ref===null)return{path:["ref"],message:"a merged source names its baseline branch"};let n=new Set,i=new Set;for(let[s,a]of t.entries()){if(a.kind==="pull_request"!=(a.number!==void 0))return{path:["merge",s,"number"],message:"a pull request names its number, and a branch none"};if(!Fj.includes(a.reason))return{path:["merge",s,"reason"],message:`${a.reason} does not select a merged revision`};if(a.kind==="branch"&&a.reason!=="MANUAL_OVERRIDE")return{path:["merge",s,"reason"],message:"only a person chooses a branch to merge"};if(a.ref===e.ref)return{path:["merge",s,"ref"],message:"the baseline branch is what the source merges onto"};if(a.number!==void 0&&n.has(a.number)||i.has(a.ref))return{path:["merge",s],message:"names a revision the source already merges"};a.number!==void 0&&n.add(a.number),i.add(a.ref)}let r=Fj.find(s=>t.some(a=>a.reason===s));return e.reason!==r?{path:["reason"],message:`a source that merges these revisions is ${r}`}:null}o(wse,"mergedSourceIssue");function Cse(e){if(e.trigger.kind==="revision_read"!=!e.baseline)return e.baseline?"a revision_read run names no baseline":"names its baseline";if(!e.baseline)return null;let{confirmedRunId:t,initialBaselineId:n,comparisonBaselineId:i,sources:r}=e.baseline;if([t,n,i].filter(l=>l!=null).length>1)return"a run compares with one baseline";let s=e.trigger.kind==="schedule"&&t!==null||n!==void 0||i!==void 0;if(!r)return s?"names every source of the snapshot, once":null;if(t===null&&n===void 0&&i===void 0)return"a run with no Confirmed Baseline names no baseline sources";let a=new Set(e.sources.map(l=>Ti(l.repository))),c=new Set(r.map(l=>Ti(l.repository)));return c.size===r.length&&c.size===a.size&&[...c].every(l=>a.has(l))?null:"names every source of the snapshot, once"}o(Cse,"baselineSourcesIssue");var u1=/^[A-Z][A-Z0-9_]+-[1-9][0-9]*$/,l1=/^[1-9][0-9]{0,18}$/,Mj=new RegExp(`${u1.source}|${l1.source}`),Lj=/^https:\/\/[a-z0-9-]+(\.[a-z0-9-]+)+$/,Sse=d.union([d.object({source:d.literal("jira"),site:d.string().regex(Lj),key:d.string().regex(u1),updated:d.string().datetime(),contentHash:xn}).strict(),d.object({source:d.literal("confluence"),site:d.string().regex(Lj),key:d.string().regex(l1),version:d.number().int().positive(),contentHash:xn}).strict(),d.object({source:d.literal("other"),key:d.string().regex(Kd),contentHash:xn}).strict(),d.object({source:d.literal("other"),key:d.string().regex(Ks),contentHash:xn,fileName:d.string().min(1).max(255),mediaType:d.nativeEnum(Xd)}).strict()]),jj=d.union([d.literal("jira"),d.literal("confluence")]),kse=d.object({schemaVersion:d.literal(1),items:d.array(d.union([d.object({source:jj,site:d.string(),key:d.string().regex(Mj),state:d.literal("read"),text:d.string(),version:d.string().min(1),contentMatches:d.boolean()}).strict(),d.object({source:jj,site:d.string(),key:d.string().regex(Mj),state:d.literal("not_read"),reason:d.nativeEnum(ka)}).strict(),d.object({source:d.literal("other"),key:d.string().regex(Kd),state:d.literal("read"),text:d.string(),version:d.string().min(1),contentMatches:d.boolean()}).strict(),d.object({source:d.literal("other"),key:d.string().regex(Kd),state:d.literal("not_read"),reason:d.nativeEnum(ka)}).strict(),d.object({source:d.literal("other"),key:d.string().regex(Ks),state:d.literal("read"),version:xn,fileName:d.string().min(1).max(255),mediaType:d.nativeEnum(Xd)}).strict(),d.object({source:d.literal("other"),key:d.string().regex(Ks),state:d.literal("not_read"),reason:d.nativeEnum(ka)}).strict()])),instructions:d.array(d.string()).optional()}).strict(),Bse=d.object({resultId:d.string().min(1),repository:d.string().min(1),testType:d.string().min(1),path:d.string(),finding:d.string().min(1)}).strict(),Rse=d.object({schemaVersion:d.literal(1),runId:In,skyrampOrgId:In,target:Xh,policy:Xh.nullable(),trigger:d.object({kind:d.nativeEnum(nm),requestedAt:d.string().datetime()}).strict(),configuration:d.object({captureId:In,revision:Dr.nullable(),hash:xn}).strict(),baseline:d.object({confirmedRunId:In.nullable(),initialBaselineId:In.optional(),comparisonBaselineId:In.optional(),knownFailures:d.array(Bse).optional(),sources:d.array(d.object({repository:hr,revision:_r}).strict()).optional()}).strict().optional(),sources:d.array(bse).min(1).max(1e3),execution:d.object({provider:d.nativeEnum(Ra),repository:c1,workflowPath:d.string(),ref:d.string()}).strict(),credentials:d.array(d.object({name:d.string(),purpose:d.nativeEnum(Wd),required:d.boolean()}).strict()),requirements:d.array(Sse).min(1).optional(),instructions:d.object({contentHash:xn}).strict().optional(),deployedRevisions:d.array(d.object({repository:hr,revision:_r}).strict()).min(1).optional()}).strict().superRefine((e,t)=>{let n=new Set;(e.requirements??[]).forEach((u,l)=>{let p="fileName"in u?"file":"pasted";u.source==="other"&&u.key!==`${p}-${u.contentHash.slice(0,16)}`&&t.addIssue({code:d.ZodIssueCode.custom,message:"is not the key of its content hash",path:["requirements",l,"key"]});let f=yC({source:u.source,key:u.key});n.has(f)&&t.addIssue({code:d.ZodIssueCode.custom,message:"names an item that the run already names",path:["requirements",l,"key"]}),n.add(f)});let i=e.trigger.kind,r=yse.includes(i);r!==(e.policy===null)&&t.addIssue({code:d.ZodIssueCode.custom,path:["policy"],message:r?`a ${i} run has no policy`:"names the policy revision"}),e.baseline?.knownFailures&&!e.baseline.comparisonBaselineId&&t.addIssue({code:d.ZodIssueCode.custom,path:["baseline","knownFailures"],message:"known failures require a chosen comparison checkpoint"});let s=Cse(e);s&&t.addIssue({code:d.ZodIssueCode.custom,path:e.baseline?["baseline","sources"]:["baseline"],message:s}),Ese.includes(i)&&e.sources.forEach((u,l)=>{u.reason!=="BASELINE"&&t.addIssue({code:d.ZodIssueCode.custom,path:["sources",l,"reason"],message:`a ${i} run selects only BASELINE sources`})}),e.deployedRevisions&&i!=="manual"&&t.addIssue({code:d.ZodIssueCode.custom,path:["deployedRevisions"],message:"only a manual run pins deployed revisions"});let a=new Set(e.sources.map(u=>Ti(u.repository))),c=new Set;(e.deployedRevisions??[]).forEach((u,l)=>{let p=Ti(u.repository);a.has(p)?c.has(p)&&t.addIssue({code:d.ZodIssueCode.custom,path:["deployedRevisions",l,"repository"],message:"repository appears twice"}):t.addIssue({code:d.ZodIssueCode.custom,path:["deployedRevisions",l,"repository"],message:"names a repository outside the snapshot"}),c.add(p)}),e.sources.forEach((u,l)=>{u.compareWith&&(u.reason!=="MANUAL_OVERRIDE"||u.change)&&t.addIssue({code:d.ZodIssueCode.custom,path:["sources",l,"compareWith"],message:"only a MANUAL_OVERRIDE source without a change names a revision to compare with"}),e.baseline?.comparisonBaselineId&&(u.change?.base||u.compareWith||u.merge)&&t.addIssue({code:d.ZodIssueCode.custom,path:["sources",l],message:"a chosen checkpoint cannot be combined with a source comparison base or merge"});let p=wse(u);p&&t.addIssue({code:d.ZodIssueCode.custom,path:["sources",l,...p.path],message:p.message})})});var _C=(n=>(n.Person="person",n.Policy="policy",n))(_C||{}),Qse=d.object({kind:d.nativeEnum(_C),name:d.string().min(1).max(256)}).strict(),xse=d.object({mcp:d.discriminatedUnion("source",[d.object({source:d.literal("npm"),version:d.string().regex(/^[A-Za-z0-9][A-Za-z0-9.+_-]{0,63}$/).nullable()}).strict(),d.object({source:d.literal("github"),ref:d.string().regex(/^[A-Za-z0-9._/-]{1,255}$/)}).strict()]),bedrock:d.object({region:d.string().regex(/^[a-z]{2}(-[a-z]+)+-[0-9]$/),roleArn:d.string().regex(/^arn:aws(-[a-z]+)*:iam::[0-9]{12}:role\/[\w+=,.@/-]{1,512}$/)}).strict().nullable()}).strict(),$se=d.object({schemaVersion:d.literal(1),attempt:d.object({id:In,number:d.number().int().positive(),deadlineAt:d.string().datetime()}).strict(),manifest:Rse,manifestHash:xn,entitlements:d.array(d.string()).optional(),runToken:d.string().min(1).optional(),requestedBy:Qse.nullable().optional(),writeAllowed:d.boolean().optional(),claudeCodeVersion:d.string().regex(/^[0-9]+\.[0-9]+\.[0-9]+$/,"an exact version, such as 2.1.290").nullable().optional(),deployedRevisions:d.array(d.object({repository:hr,revision:_r}).strict()).optional(),statedRevisions:d.array(d.object({repository:hr,revision:_r}).strict()).optional(),runSettings:xse.optional()}).strict(),Gj={providerRunAttempt:d.number().int().positive(),workflowRef:d.string().min(1)},Tse=d.string().regex(/^[^/]+\/[^/]+\/[1-9][0-9]{0,15}\/[1-9][0-9]{0,15}$/),Dse=d.object({schemaVersion:d.literal(1),runId:In,execution:d.discriminatedUnion("provider",[d.object({...Gj,provider:d.literal("github"),repository:d.object(im).strict(),providerRunId:Dr}).strict(),d.object({...Gj,provider:d.literal("azure-devops"),repository:d.object(sm).strict(),providerRunId:Tse}).strict()]),requester:d.literal(!0).optional(),writeCheck:d.literal(!0).optional(),claudeCodePin:d.literal(!0).optional(),deployedPins:d.literal(!0).optional(),statedPins:d.literal(!0).optional(),runSettings:d.literal(!0).optional()}).strict(),Vj=d.object({repository:hr,number:Dr,commitSha:_r.optional()}).strict(),Yh=d.array(d.object({repository:hr,reason:d.string().max(4096).regex(/\S/)}).strict()).max(1e3).optional(),d1=d.object({branch:kC.optional(),commitSha:_r.optional()}).strict(),om=4096,p1=d.array(d.object({file:d.string().max(4096).regex(/\S/),dependsOn:d.array(d.string().max(2048).regex(/\S/)).max(100)}).strict()).min(1).max(500),zj=d.object({repository:hr,message:d.string().max(om),...d1.shape,heldBack:p1.optional()}).strict(),_se=d.discriminatedUnion("status",[d.object({status:d.literal("none"),noTests:Yh}).strict(),d.object({status:d.literal("delivered"),noTests:Yh,pullRequests:d.array(Vj).min(1)}).strict(),d.object({status:d.literal("partial"),noTests:Yh,pullRequests:d.array(Vj).min(1),failures:d.array(zj).min(1)}).strict(),d.object({status:d.literal("failed"),message:d.string().max(om),noTests:Yh,failures:d.array(zj).min(1).optional()}).strict()]),NC=1024*1024,f1=16*1024*1024,pp={id:4096,text:16384,businessCase:65536},hp={id:pp.id,statement:pp.text,rows:1e3},qj=d.string().min(1).max(pp.id),Zh=d.string().max(pp.text),Wh=o((e,t)=>d.array(d.object({[e]:Zh}).strict()).max(t).optional(),"texts"),PC=d.object({language:d.custom(e=>e==="ja","Invalid"),businessCaseAnalysis:d.string().max(pp.businessCase),validation:d.object({rationale:Zh.min(1),gaps:d.array(d.string().min(1).max(4096)).max(200)}).strict().optional(),changes:d.array(d.object({id:qj,text:Zh}).strict()).max(1e3).optional(),requirements:d.array(d.object({id:qj,statement:Zh}).strict()).max(hp.rows).optional(),issuesFound:Wh("description",5e3),newTestsCreated:Wh("description",5e3),testResults:Wh("details",5e3),caveats:Wh("text",100)}).strict(),Nse=d.object({blockedPreflight:d.object({file:d.string().min(1),repository:d.string().min(1).optional(),reason:d.string().min(1).max(300),evidence:d.string().min(1).max(400)}).strict().optional(),sufficiency:d.nativeEnum(Qi),rationale:d.string().min(1),gaps:d.array(d.string().min(1)),acceptedEvidence:d.array(d.object({kind:d.nativeEnum(Xs),repository:d.string().min(1),revision:_r,reference:d.string().min(1),summary:d.string().min(1)}).strict()),actionRequired:d.array(d.nativeEnum(Iu))}).strict().superRefine((e,t)=>{e.sufficiency==="insufficient"!=e.gaps.length>0&&t.addIssue({code:d.ZodIssueCode.custom,path:["gaps"],message:"only insufficient evidence names gaps, and it names at least one"}),new Set(e.actionRequired).size!==e.actionRequired.length&&t.addIssue({code:d.ZodIssueCode.custom,path:["actionRequired"],message:"a reason appears twice"})}),Kh=500,A1=2048,g1=1e3,Pse=/[\\/:*?"<>|;#$*{},+=[\]%\p{Cc}\p{Cf}]/u,Jj=o(e=>e.length>0&&e.length<=64&&e===e.trim()&&!Pse.test(e)&&!/[^\S ]/u.test(e)&&!/^[._]/.test(e)&&!e.endsWith("."),"isAzureName"),h1=o(e=>{if(/^[A-Za-z0-9._-]{1,100}\/[A-Za-z0-9._-]{1,100}$/.test(e))return!0;let[t,n,i,...r]=e.split("/");return e.length<=201&&r.length===0&&i!==void 0&&/^[A-Za-z0-9](?:[A-Za-z0-9-]{0,48}[A-Za-z0-9])?$/.test(t)&&Jj(n)&&Jj(i)},"isResultRepository"),Fse=d.object({testResults:d.array(d.object({resultId:d.string().regex(/^[^\u0000-\u001f]{1,512}$/),repository:d.string().refine(h1,"Invalid"),testType:d.string(),runtimeTargets:op.optional(),endpoint:d.string(),status:d.enum(["Pass","Fail","Skipped"]),details:d.string(),fileName:d.string().optional(),testId:d.string().regex(/^[^\u0000-\u001f]{1,512}$/).optional(),failureCause:d.object({kind:d.nativeEnum(tp),family:d.nativeEnum(np).optional()}).strict().optional(),origin:d.nativeEnum(Gh).optional()}).strict()),validation:Nse,changes:d.array(d.object({id:d.string().min(1).max(512),text:d.string().max(16384),source:d.string().max(A1),testedBy:d.array(d.string().min(1).max(1024)).max(Kh),writtenBy:d.array(d.string().min(1).max(1024)).max(Kh),maintainedBy:d.array(d.string().min(1).max(1024)).max(Kh)}).strict()).max(g1).optional(),traceVersion:d.literal(1),display:PC.optional()}).passthrough().superRefine((e,t)=>{let n=e.display,i={issuesFound:e.issuesFound,newTestsCreated:e.newTestsCreated,testResults:e.testResults,caveats:e.caveats};for(let s of["issuesFound","newTestsCreated","testResults","caveats"]){let a=n?.[s];a&&a.length!==(Array.isArray(i[s])?i[s].length:0)&&t.addIssue({code:d.ZodIssueCode.custom,path:["display",s],message:`has not one row per ${s} row`})}n?.validation&&n.validation.gaps.length!==e.validation.gaps.length&&t.addIssue({code:d.ZodIssueCode.custom,path:["display","validation","gaps"],message:"has not one gap per validation gap"});let r=new Set;e.testResults.forEach((s,a)=>{let c=s.failureCause;c&&s.status==="Pass"&&t.addIssue({code:d.ZodIssueCode.custom,path:["testResults",a,"failureCause"],message:"a passing result has no failure cause"}),c&&c.kind==="environment"!=(c.family!==void 0)&&t.addIssue({code:d.ZodIssueCode.custom,path:["testResults",a,"failureCause"],message:"an environment cause names its family, and no other cause does"});let u=["testResults",a,"resultId"],l=s.resultId.slice(`${s.repository}:${s.testType}:`.length);(!s.resultId.startsWith(`${s.repository}:${s.testType}:`)||l===""||l.startsWith("/")||l.startsWith("#"))&&t.addIssue({code:d.ZodIssueCode.custom,path:u,message:"is not repository:testType:path for this result"}),r.has(s.resultId)&&t.addIssue({code:d.ZodIssueCode.custom,path:u,message:"stable identity repeated"}),r.add(s.resultId)})}),Hj=o(e=>e.replace(/[%:#]/g,t=>encodeURIComponent(t)),"encodeIdPart");function FC(e,t,n,i){let r=n.replace(/\\/g,"/"),s=r.split("/").filter(u=>u!==""&&u!==".");if(r.startsWith("/")||/^[A-Za-z]:/.test(r)||s.length===0||s.includes(".."))throw new Error(`testResultId needs a path relative to the repository root, got "${n}"`);let a=s.join("/"),c=`${e}:${t}:${Hj(a)}`;return i?`${c}#${Hj(i)}`:c}o(FC,"testResultId");var am=(i=>(i.BranchPushed="branch_pushed",i.PullRequestOpened="pull_request_opened",i.PullRequestEdited="pull_request_edited",i))(am||{}),m1=50,y1=d.discriminatedUnion("kind",[d.object({kind:d.literal("branch_pushed"),repository:hr,branch:kC,commit:_r}).strict(),d.object({kind:d.enum(["pull_request_opened","pull_request_edited"]),repository:hr,number:Dr,branch:kC}).strict()]),E1=d.object({schemaVersion:d.literal(1),run:d.object({runId:In,attemptNumber:d.number().int().positive(),manifestHash:xn}).strict(),target:Xh,policy:Xh,provenance:d.object({sources:d.array(d.object({repository:hr,revision:_r}).strict()),firstQualification:d.literal(!0).optional()}).strict(),delivery:d.object({generatedTests:_se}).strict(),producer:d.object({testbot:d.string().regex(/^[0-9A-Za-z.+-]{1,64}$/),mcp:d.string().regex(/^[0-9A-Za-z.+-]{1,64}$/)}).strict(),report:Fse,githubWrites:d.array(y1).max(m1).optional()}).strict(),UC=(r=>(r.Recipe="recipe",r.CredentialRejected="credential_rejected",r.Environment="environment",r.Unknown="unknown",r))(UC||{}),OC=200,Use=d.object({cause:d.nativeEnum(UC),credential:d.string().regex(ki).optional(),reason:d.string().trim().min(1).max(OC).optional()}).strict().refine(e=>e.cause==="credential_rejected"==(e.credential!==void 0&&e.reason!==void 0),{message:"a credential_rejected check, and only one, names the credential and why"}),Ose=d.object({name:d.string().regex(ki),purpose:d.enum(["sut_access","other"]),required:d.boolean(),how:d.string().trim().min(1).max(jh)}).strict(),uBe=E1.pick({schemaVersion:!0,run:!0,target:!0,provenance:!0,producer:!0}).extend({recipe:_j,check:Use.optional(),inputs:d.array(Ose).min(1).max(50).optional()}).strict().superRefine(({recipe:e},t)=>{let n=o((s,a)=>t.addIssue({code:d.ZodIssueCode.custom,path:["recipe",...s],message:a}),"issue");e.status==="blocked"&&e.blockers.length===0&&n(["blockers"],"a blocked recipe names at least one blocker");let i=new Set,r=0;e.files.forEach((s,a)=>{ap(s.path)||n(["files",a,"path"],"is not a file under .skyramp/sut/, or the .skyramp/workspace.yml a recipe stored before SKYR-5829 carries"),i.has(s.path)&&n(["files",a,"path"],"file repeated"),i.add(s.path),Cj.test(s.content)&&n(["files",a,"content"],"is not text");let c=Buffer.byteLength(s.content,"utf8");r+=c,c>gC&&n(["files",a,"content"],`larger than ${gC} bytes`)}),r>hC&&n(["files"],`recipe text over ${hC} bytes in total`)}),lBe=d.object({components:d.array(d.object({name:d.string().min(1),repository:d.string().refine(h1,"Invalid"),observedRevision:d.string().regex(/^[0-9a-f]{7,64}$/).nullable(),source:d.nativeEnum(Vh),evidence:d.string()}).strict().refine(e=>e.source!=="agent"||e.observedRevision===null,{path:["observedRevision"],message:"a component only an agent session can read names no revision"}))}).strict();function I1(e){return e.trigger.kind==="schedule"||e.trigger.kind==="manual"&&e.sources.every(t=>t.reason==="BASELINE")}o(I1,"readsDeployedState");var Mse=d.object({schemaVersion:d.literal(1),stage:d.nativeEnum(r1),event:d.nativeEnum(xC),status:d.nativeEnum(i1).optional()}).strict().refine(e=>e.status===void 0||e.event==="finished",{path:["status"],message:"only a finished stage has a status"}),cm=100,Lse=5e3,Ba=2e3,Yj=100,v1=/^[A-Za-z0-9_-]{1,64}$/,jse=20,Gse=200,Vse=100,zse=100,qse=200,Wj="[^/\\s](?:(?:[^/\\s]| )*[^/\\s])?",Jse=new RegExp(`^(?:[^/\\s]+/[^/\\s]+|[^/\\s]+/${Wj}/${Wj})$`),Hse=500,Yse=50,Wse=10,Zse=/^[A-Za-z0-9](?:[A-Za-z0-9 _-]{0,48}[A-Za-z0-9])?$/,b1=/[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f]|[\ud800-\udbff](?![\udc00-\udfff])|(?<![\ud800-\udbff])[\udc00-\udfff]/,gr=o(e=>d.string().max(e).refine(t=>t.trim().length>0&&!b1.test(t),"blank, or not text"),"setupText"),$i={sequence:d.number().int().min(1).max(Lse),at:d.string().regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{1,6})?Z$/)},w1=d.object({...$i,kind:d.literal("reply"),to:d.string().uuid(),outcome:d.nativeEnum(o1),accepted:d.boolean(),text:gr(Ba),note:d.object({source:d.enum(["target","environment"]),quote:gr(Ba)}).strict().optional(),kept:gr(Ba).optional()}).strict();function C1(e,t){if(e.kind!=="reply")return;let n=e;n.accepted!==(n.outcome==="answered"||n.outcome==="followed")&&t.addIssue({code:d.ZodIssueCode.custom,path:["accepted"],message:"accepted exactly when answered or followed"}),n.note&&n.outcome!=="not_followed"&&t.addIssue({code:d.ZodIssueCode.custom,path:["note"],message:"a note only when not_followed"}),n.kept&&n.outcome!=="followed"&&t.addIssue({code:d.ZodIssueCode.custom,path:["kept"],message:"kept only when followed"})}o(C1,"checkReply");var Kse=d.discriminatedUnion("kind",[d.object({...$i,kind:d.literal("log"),phase:d.nativeEnum($C),text:gr(Ba)}).strict(),d.object({...$i,kind:d.literal("component"),name:gr(Yj),repository:gr(qse).refine(e=>Jse.test(e)||e===Bi,"not owner/name"),file:gr(Hse).nullable(),status:d.nativeEnum(TC),version:gr(zse).optional()}).strict(),w1,d.object({...$i,kind:d.literal("question"),id:d.string().regex(v1),type:d.nativeEnum(s1),text:gr(Ba),component:gr(Yj).nullable(),choices:d.array(gr(Gse)).max(jse),placeholder:gr(Vse).optional()}).strict(),d.object({...$i,kind:d.literal("delivered"),ids:d.array(d.string().uuid()).max(cm)}).strict(),d.object({...$i,kind:d.literal("credentials"),names:d.array(d.string().regex(ki)).min(1).max(Yse),logins:d.array(d.object({key:d.string().regex(Zse),usernameVariable:d.string().regex(ki),passwordVariable:d.string().regex(ki)}).strict()).min(1).max(Wse).optional()}).strict()]).superRefine((e,t)=>{if(C1(e,t),e.kind==="credentials"&&new Set(e.names).size!==e.names.length&&t.addIssue({code:d.ZodIssueCode.custom,path:["names"],message:"a name twice"}),e.kind==="credentials"&&e.logins){let n=e.logins.map(i=>Tj(i.key));new Set(n).size!==n.length&&t.addIssue({code:d.ZodIssueCode.custom,path:["logins"],message:"a key twice"}),e.logins.forEach((i,r)=>{for(let s of["usernameVariable","passwordVariable"])e.names.includes(i[s])||t.addIssue({code:d.ZodIssueCode.custom,path:["logins",r,s],message:"not one of the names"})})}e.kind==="question"&&(e.type==="free_text"!=(e.choices.length===0)&&t.addIssue({code:d.ZodIssueCode.custom,path:["choices"],message:"choices exactly when the question is not free_text"}),new Set(e.choices).size!==e.choices.length&&t.addIssue({code:d.ZodIssueCode.custom,path:["choices"],message:"a choice twice"}))}),Xse=d.object({schemaVersion:d.literal(1),events:d.array(Kse).max(cm)}).strict(),eoe=d.discriminatedUnion("kind",[d.object({...$i,kind:d.literal("log"),stage:d.nativeEnum(SC),text:gr(Ba)}).strict(),w1,d.object({...$i,kind:d.literal("delivered"),ids:d.array(d.string().uuid()).max(cm)}).strict(),d.object({...$i,kind:d.literal("stage"),stage:d.nativeEnum(SC),event:d.nativeEnum(xC)}).strict(),d.object({...$i,kind:d.literal("test"),resultId:d.string().regex(/^[^\u0000-\u001f]{1,512}$/),status:d.enum(["Pass","Fail","Skipped"]),details:d.string().max(Ba).refine(e=>!b1.test(e),"not text")}).strict()]).superRefine(C1),toe=d.object({schemaVersion:d.literal(1),events:d.array(eoe).max(cm)}).strict(),Zj={id:d.string().uuid(),text:d.string(),by:d.string().nullable(),at:d.string(),replied:d.literal(!0).optional()},S1=d.discriminatedUnion("kind",[d.object({...Zj,kind:d.literal("instruction"),question:d.null()}),d.object({...Zj,kind:d.literal("answer"),question:d.string().regex(v1)})]),k1=d.string().regex(/^[A-Za-z0-9+/]{43}=$/),noe=d.object({id:d.string().uuid(),revision:d.string(),by:d.string().nullable(),at:d.string(),target:d.string(),own:d.object({source:d.enum(["policy","test_environment"]),text:d.string()}).nullable()}),roe=d.object({schemaVersion:d.literal(1),leftOut:d.array(d.string()),messages:d.array(S1).optional(),stop:d.object({key:k1}).optional(),notes:noe.optional()}),ioe=d.object({schemaVersion:d.literal(1),messages:d.array(S1).optional()});var soe=500*1024*1024,B1=d.object({id:Dr,name:d.string().regex(/^[A-Za-z0-9._-]{1,200}$/),providerRunId:Dr,expiresAt:d.string().datetime()}).strict(),ooe=d.object({schemaVersion:d.literal(1),artifact:B1,sessionId:In,contentHash:xn,bytes:d.number().int().min(1).max(soe)}).strict(),aoe=d.object({schemaVersion:d.literal(1),checkpoint:d.object({artifact:B1,repository:d.object({namespace:d.string().min(1),name:d.string().min(1)}).strict(),sessionId:In,contentHash:xn,key:k1}).strict().nullable()}).strict(),coe=200,vu=100,R1=(i=>(i.Resume="resume",i.Retry="retry",i.Update="update",i))(R1||{}),uoe=d.object({kind:d.nativeEnum(R1),setup:d.object({runId:In,endedAt:d.string().nullable(),outcome:d.string().nullable()}).strict(),components:d.array(d.object({name:d.string().min(1),repository:d.string().min(1),status:d.nativeEnum(TC)}).strict()).max(vu),credentials:d.array(d.string().min(1)).max(vu),answers:d.array(d.object({question:d.string(),answer:d.string().nullable()}).strict()).max(vu),instructions:d.array(d.object({text:d.string(),reply:d.string().nullable()}).strict()).max(vu),log:d.array(d.object({phase:d.nativeEnum($C),text:d.string()}).strict()).max(coe),recipe:d.object({files:d.array(d.object({path:d.string().min(1),content:d.string()}).strict()).max(vu),blockers:d.array(d.object({component:d.string(),problem:d.string(),evidence:d.string(),fix:d.string()}).strict()).max(vu)}).strict().optional()}).strict(),loe=d.object({schemaVersion:d.literal(1),context:uoe.nullable()}).strict(),doe=d.object({schemaVersion:d.literal(1),configuration:d.object({captureId:In,revision:Dr.nullable(),hash:xn}).strict(),capture:d.object({schemaVersion:d.literal(1),settings:d.object({target:d.object({environment:d.unknown()}).passthrough(),timeoutMinutes:d.number().int().positive(),answerWaitMinutes:d.number().int().positive().optional(),testEnvironment:d.object({name:d.string().min(1),address:d.string().min(1).optional(),readyWhen:d.string().min(1).optional(),environmentId:d.string().uuid().optional(),persistentDataPolicy:e1}).passthrough().optional()}).passthrough(),provenance:d.object({}).passthrough(),hash:xn}).strict()}).strict(),Q1=d.object({schemaVersion:d.literal(1),environmentId:d.string().uuid().nullable(),environmentAddress:d.string().url().nullable(),persistentDataPolicy:up.nullable()}).strict(),poe=Eu.extend({environmentId:d.string().uuid().optional(),persistentDataPolicy:e1,version:d.number().int().positive(),components:d.array(d.object({name:d.string().min(1),repository:d.string().min(1)}).strict()),contentHash:xn.optional(),files:d.array(d.object({path:d.string().refine(e=>ap(e)&&!wC.includes(e),"not a file of a customer_deployed plan"),content:d.string()}).strict()).optional()}).strict(),foe=d.object({schemaVersion:d.literal(1),testEnvironment:poe.nullable().optional(),runtimePlan:d.object({version:d.number().int().positive(),contentHash:xn,files:d.array(d.object({path:d.string().refine(ap,"not a recipe file path"),content:d.string()}).strict()).min(1),repository:Jh.optional(),recipeRepository:Jh.optional(),recipe:d.record(d.unknown()).optional()}).strict().nullable()}).strict().refine(e=>!(e.runtimePlan&&e.testEnvironment),{message:"a run pins a recipe or a customer's Test Environment, never both",path:["testEnvironment"]}),x1=d.object({schemaVersion:d.literal(1),state:d.nativeEnum(n1),ending:d.nativeEnum(Ap).nullable(),cause:d.nativeEnum(gp).nullable(),deadlineAt:d.string().datetime()}).strict();function $1(e,t){return e.state==="ended"?e.ending==="cancelled"?"cancelled":e.cause==="runner_lost"?"expired":"ended":t.getTime()>=Date.parse(e.deadlineAt)?"expired":null}o($1,"attemptClosure");var T1=50,dBe=d.object({repository:hr,revisions:d.array(d.number().int().nonnegative()).min(1).max(2).refine(e=>e.length<2||e[0]<e[1],"two revisions name the earlier first"),files:d.array(d.string().min(1)).min(1).max(T1)}).strict();function BC(e){if(typeof e=="number"&&!Number.isFinite(e))throw new TypeError("Canonical JSON requires JSON values");if(Array.isArray(e))return`[${e.map(BC).join(",")}]`;if(e!==null&&typeof e=="object"){let n=e;return`{${Object.keys(n).sort().map(i=>`${JSON.stringify(i)}:${BC(n[i])}`).join(",")}}`}let t=JSON.stringify(e);if(t===void 0)throw new TypeError("Canonical JSON requires JSON values");return t}o(BC,"canonicalJson");function D1(e){return(0,Xj.createHash)("sha256").update(BC(e),"utf8").digest("hex")}o(D1,"manifestHash");var bu=o(e=>({provider:e.provider,providerAccountId:e.providerAccountId,providerRepositoryId:e.providerRepositoryId}),"toSourceRef");function MC(e,t,{statedPins:n=!0}={}){return Dse.parse({schemaVersion:1,runId:e,execution:t.execution(),requester:!0,writeCheck:!0,claudeCodePin:!0,deployedPins:!0,...n?{statedPins:!0}:{},...t.runSettingsFromApp?{runSettings:!0}:{}})}o(MC,"handshakeRequest");function _1(e){let t=$se.parse(e);if(D1(t.manifest)!==t.manifestHash)throw new Error("The handshake manifest hash does not match its manifest");return t}o(_1,"parseHandshakeResponse");function Aoe(e){let t=o(r=>r.map(s=>({repository:bu(s.repository),number:s.number,...s.commitSha===void 0?{}:{commitSha:s.commitSha}})),"pullRequests"),n=e.noTests?{noTests:e.noTests.map(r=>({repository:bu(r.repository),reason:r.reason}))}:{};if(e.status==="delivered")return{status:e.status,...n,pullRequests:t(e.pullRequests)};let i=o(r=>r.map(s=>({repository:bu(s.repository),message:s.message,...s.branch===void 0?{}:{branch:s.branch},...s.commitSha===void 0?{}:{commitSha:s.commitSha},...s.heldBack===void 0?{}:{heldBack:s.heldBack}})),"failures");return e.status==="partial"?{status:e.status,...n,pullRequests:t(e.pullRequests),failures:i(e.failures)}:e.status==="failed"&&e.failures?{...e,...n,failures:i(e.failures)}:{...e,...n}}o(Aoe,"toDelivery");function goe(e){return e.issues.map(t=>`${t.path.map((i,r)=>typeof i=="number"?`[${i}]`:r===0?i:`.${i}`).join("")}: ${t.message}`).join("; ")}o(goe,"describeIssues");function N1(e){let{manifest:t}=e;if(Ise.includes(t.trigger.kind))throw new Error(`The report upload is invalid: a ${t.trigger.kind} run uploads its SUT recipe, never a report`);if(t.trigger.kind==="revision_read")throw new Error("The report upload is invalid: a revision_read run uploads what each component runs, never a report");if(e.firstQualification&&!t.baseline?.sources)throw new Error("The report upload is invalid: only a run whose manifest names baseline sources can be a first qualification");let n=E1.safeParse({schemaVersion:1,run:{runId:t.runId,attemptNumber:e.attemptNumber,manifestHash:D1(t)},target:{id:t.target.id,revision:t.target.revision},policy:t.policy&&{id:t.policy.id,revision:t.policy.revision},provenance:{sources:e.checkedOut.map(i=>({repository:bu(i.repository),revision:i.revision})),...e.firstQualification?{firstQualification:!0}:{}},delivery:{generatedTests:Aoe(e.generatedTests)},producer:e.producer,report:e.report,...e.githubWrites?.length?{githubWrites:e.githubWrites.map(i=>({...i,repository:bu(i.repository)}))}:{}});if(!n.success)throw new Error(`The report upload is invalid: ${goe(n.error)}`);return hoe(n.data,t,e.checkedOut),n.data}o(N1,"buildReportUpload");function hoe(e,t,n){let i=o(s=>n.find(a=>Ti(a.repository)===Ti(s.repository))?.revision??s.revision,"revisionOf"),r=new Map(t.sources.map(s=>[`${s.repository.namespace}/${s.repository.name}`.toLowerCase(),i(s)]));e.report.validation.acceptedEvidence.forEach((s,a)=>{let c=`report.validation.acceptedEvidence[${a}]`,u=r.get(s.repository.toLowerCase());if(!u)throw new Error(`${c}.repository: ${s.repository} is outside the run's snapshot`);if(s.revision!==u)throw new Error(`${c}.revision: evidence is not from the checked-out revision ${u}`)})}o(hoe,"assertEvidenceFromSnapshot");function P1(e){if(e.reportUploaded)return{schemaVersion:1,reason:"report_uploaded",cause:null};if(e.recipeUploaded)return{schemaVersion:1,reason:"recipe_uploaded",cause:null};if(e.revisionsUploaded)return{schemaVersion:1,reason:"revisions_uploaded",cause:null};let t=e.githubWrites?.length?{githubWrites:e.githubWrites.map(n=>({...n,repository:bu(n.repository)}))}:{};return e.cancelled?{schemaVersion:1,reason:"cancelled",cause:null,...t}:e.mergeConflict&&Kj(e)==="merge_conflict"?{schemaVersion:1,reason:"no_report",cause:"merge_conflict",conflict:e.mergeConflict,...t}:{schemaVersion:1,reason:"no_report",cause:Kj({...e,mergeConflict:void 0}),...t}}o(P1,"attemptEndFor");function Kj(e){return e.runnerProviderNotReady?"runner_provider_not_ready":e.credentialMissing?"credential_missing":e.mergeConflict?"merge_conflict":e.checkoutFailed?"checkout_failed":e.environmentUnverified?"environment_unverified":e.setupFailed?"setup_failed":e.timedOut?"timed_out":e.modelProviderDenied?"model_provider_denied":e.modelProviderUnavailable?"model_provider_unavailable":e.environmentUnavailable?"environment_unavailable":"agent_failed"}o(Kj,"noReportCause");var EBe=["clean","recipe-drift"];var to=re(require("path"));var wBe={"application/pdf":"PDF","text/csv":"CSV","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"DOCX","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"XLSX"};var LC=o(e=>new Map((e??[]).flatMap(t=>t.file?[[ep(t.key),t.file.name]]:[])),"itemNames"),Eoe=10*1024*1024,Ioe=o(e=>e?.mediaType==="application/vnd.openxmlformats-officedocument.wordprocessingml.document"||e?.mediaType==="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","needsExtraction"),U1=o((e,t)=>to.join(to.dirname(e),`${to.basename(e,to.extname(e))}${t}`),"besideFile"),voe=o(e=>U1(e,".extracted.txt"),"extractedTextPath");var boe=o(e=>U1(e,".quotes.txt"),"confirmedQuotesPath");function O1(e){return Ioe(e.file)?voe(e.path):e.file?.mediaType==="application/pdf"?boe(e.path):e.path}o(O1,"itemTextPath");function Nt(e){let t=Math.max(0,...(e.match(/`+/g)??[]).map(r=>r.length)),n="`".repeat(t+1),i=e.startsWith("`")||e.endsWith("`")?" ":"";return`${n}${i}${e}${i}${n}`}o(Nt,"codeSpan");var M1=re(require("path"));var mp=re(require("fs")),Qa=re(require("path"));var woe=8;function cn(e,t,n={}){let i=t.slice(0,woe),r=t.length-i.length;return{name:e,passed:!1,details:i.join("; ")+(r>0?`; \u2026and ${r} more`:""),...n.fatal?{fatal:!0}:{}}}o(cn,"fail");function no(e){if(mp.existsSync(e))try{return JSON.parse(mp.readFileSync(e,"utf-8"))}catch{return}}o(no,"readJsonFile");function ke(e,t){return no(Qa.join(e.outputsDir,t))}o(ke,"readArtifact");function Hn(e,t){return{name:e,verify(n,i){let{errors:r}=t(n,i);return r.length===0?{name:this.name,passed:!0}:cn(this.name,r,{fatal:!0})}}}o(Hn,"schemaGate");function cs(e,t){return Qa.relative(e,Qa.resolve(e,t)).replace(/\/+$/,"")}o(cs,"relNorm");function yp(e){return e.replace(/\s+/g," ").trim()}o(yp,"normalizeCode");var Ep=new RegExp("(^|/)("+["test_[^/]+\\.py","[^/]+_test\\.py","[^/]+\\.(spec|test)\\.[cm]?[jt]sx?","[^/]+\\.e2e-(spec|test)\\.[cm]?[jt]sx?","[^/]+_test\\.go","[^/]+Tests?\\.(java|kts?)","[^/]+_(test|spec)\\.rb","[^/]+\\.feature","[^/]+Tests?\\.cs","[^/]+_test\\.rs","tests/[^/]+\\.rs","[^/]+Test\\.php","[^/]+(Test|Spec|Suite)\\.scala","[^/]+Tests?\\.swift","[^/]+_test\\.exs","[^/]+_test\\.dart","[^/]+_test\\.(c|cc|cpp|cxx)","test_[^/]+\\.(c|cc|cpp|cxx)","[^/]+(Spec|Test)\\.groovy"].join("|")+")$","i");var jC="outputs/preflight.json",xa="pr-diff.txt",GC="related-diffs";function VC(e){return M1.join(GC,`${e.toLowerCase().replace(/\//g,"__").replace(/[^a-z0-9._-]/g,"_")}.diff`)}o(VC,"relatedDiffArtifact");var us=re(require("path"));var Ip=re(require("path"));var ro="Skyramp Testbot",$a="test-bot@skyramp.dev";var Cu=o(e=>e.slice(0,12),"shortCommit");var Coe=o((e,t)=>jt(t,{cwd:e,encoding:"utf-8",stdio:["ignore","pipe","ignore"]}).trim(),"git");function L1(e){let t="";try{t=Coe(e,["remote","get-url","origin"])}catch{}let n=/[:/]([A-Za-z0-9._-]+)\/([A-Za-z0-9._-]+?)(?:\.git)?\/?$/.exec(t);return n&&!t.startsWith("/")&&!t.startsWith(".")?`${n[1]}/${n[2]}`:`local/${Ip.basename(Ip.resolve(e)).replace(/[^A-Za-z0-9._-]/g,"-")||"repo"}`}o(L1,"repositorySlug");var jBe=new Set(Object.values(Xs));var GBe=d.object({checks:d.array(d.object({repository:d.string().optional(),name:d.string().min(1),headSha:d.string().regex(/^[0-9a-f]{40}$|^[0-9a-f]{64}$/i),status:d.string().default("completed"),conclusion:d.string().nullable().optional(),url:d.string().optional(),summary:d.string().optional()}))});var Soe=["generate-unit","native-run"],JBe=["preflight","plan","write",...Soe,"report","deliver"];var um=(i=>(i.Unit="unit",i.Integration="integration",i.E2e="e2e",i))(um||{}),koe=Object.values(um);var j1=8e3,zC=new Map;function Roe(e){return e.repositorySlug?e.repositorySlug:(zC.has(e.repositoryPath)||zC.set(e.repositoryPath,L1(e.repositoryPath)),zC.get(e.repositoryPath))}o(Roe,"workingSlug");function un(e){return[{slug:Roe(e),path:e.repositoryPath,writable:!0,working:!0},...(e.relatedRepos??[]).map(t=>({slug:t.slug,path:t.path,writable:t.writable===!0,working:!1}))]}o(un,"runSources");var Di=o((e,t)=>e.toLowerCase()===t.toLowerCase(),"sameSlug");function lm(e,t){return t?.trim()?e.find(n=>Di(n.slug,t.trim())):e[0]}o(lm,"findSource");function mr(e,t){return lm(un(e),t)}o(mr,"resolveSource");var Qoe=o((e,t)=>`${t} is not a repository of this run (${un(e).map(n=>n.slug).join(", ")})`,"notARepository");function io(e,t){let n=mr(e,t);return n?n.writable?{source:n}:{error:`${n.slug} is read-only in this run: tests are written only to ${un(e).filter(i=>i.writable).map(i=>i.slug).join(", ")}`}:{error:Qoe(e,t)}}o(io,"writableSource");var qC=o(e=>us.basename(us.resolve(e.path)),"relatedDirName");var aRe={focused:"Focused",impacted_critical:"Impacted and critical",broad:"Broad"};var ku=o(e=>!!e.inputs?.scheduledValidation?.comparisonBaselineId,"retestsKnownFailures");var Kf=re(require("fs")),Zt=re(require("path"));function qt(e,t=[]){let n=e.trim();if(!n)return{error:"session produced no output"};let i=o(u=>{try{let l=JSON.parse(u);return typeof l=="object"&&l!==null&&!Array.isArray(l)?l:void 0}catch{return}},"tryParse"),r=i(n);if(r!==void 0)return{value:r};let s;if(n.startsWith("{")&&n.endsWith("}"))try{JSON.parse(n)}catch(u){s=u instanceof Error?u.message:String(u)}let a=[...n.matchAll(/```(?:json)?\s*\n([\s\S]*?)```/g)];for(let u=a.length-1;u>=0;u--){let l=i(a[u][1].trim());if(l!==void 0)return{value:l}}let c;for(let u=n.indexOf("{");u!==-1;u=n.indexOf("{",u+1)){let l=0,p=!1,f=!1;for(let g=u;g<n.length;g++){let h=n[g];if(f){f=!1;continue}if(h==="\\"){f=p;continue}if(h==='"'){p=!p;continue}if(!p){if(h==="{")l++;else if(h==="}"&&(l--,l===0)){let m=i(n.slice(u,g+1));m!==void 0&&Object.keys(m).length>0&&(c=m,u=g);break}}}}return s&&(c===void 0||Object.keys(c).length<3)?{error:`final message is not valid JSON \u2014 ${s}. Most often an unescaped double quote inside a string (e.g. in "summary" or "evidence"): escape it as \\" or use single quotes in prose`}:c!==void 0?{value:c}:s?{error:`final message is not valid JSON \u2014 ${s}. Most often an unescaped double quote inside a string (e.g. in "summary" or "evidence"): escape it as \\" or use single quotes in prose`}:{error:`no parseable JSON object found in session output \u2014 the final message was: "${$oe(ei(n,t))}"`}}o(qt,"extractJsonObject");var G1=240;function $oe(e){let t=e.replace(/\s+/g," ").trim();return t.length<=G1?t:`\u2026${t.slice(-G1)}`}o($oe,"snippetOf");function Toe(e){return e.issues.map(t=>{let n=t.path.map(r=>typeof r=="number"?`[${r}]`:`.${r}`).join("").replace(/^\./,""),i=n||"output";if(!/^(Expected |Required$|Invalid |String must|Array must|Number must)/.test(t.message))return`${i} ${t.message}`;switch(t.code){case"invalid_type":return n?t.expected==="object"?`${i} must be an object`:t.received==="undefined"?`${i} is required`:`${i} must be ${t.expected}, got ${t.received}`:"output is not a JSON object";case"invalid_enum_value":{let r=JSON.stringify(t.received),s=t.options.find(c=>typeof c=="string"&&typeof t.received=="string"&&t.received.startsWith(c)),a=s?` \u2014 you sent ${r}; the value must be exactly ${JSON.stringify(s)}, with any qualifier moved to a field that takes free text`:` \u2014 you sent ${r}`;return`${i} must be one of: ${t.options.join(", ")}${a}`}case"invalid_literal":return`${i} must be ${JSON.stringify(t.expected)}`;case"too_small":return t.type==="string"?`${i} must be a non-empty string`:`${i} must have at least ${t.minimum} item(s)`;case"unrecognized_keys":return`${i} has unknown key(s): ${t.keys.join(", ")}`;default:return`${i}: ${t.message}`}})}o(Toe,"issuesToMessages");function $n(e,t){let n=e.safeParse(t);if(n.success)return{value:n.data,errors:[]};let i=o((s,a)=>a.reduce((c,u)=>c&&typeof c=="object"?c[u]:void 0,s),"at"),r=n.error.issues.filter(s=>s.path.length&&i(t,s.path)===null);if(r.length===n.error.issues.length)try{let s=e.safeParse(r.reduce((a,{path:c})=>V1(a,c),t));if(s.success)return{value:s.data,errors:[]}}catch{}return{errors:Toe(n.error)}}o($n,"validateWith");function V1(e,t){if(!t.length||!e||typeof e!="object")return e;let[n,...i]=t,r=Array.isArray(e)?e.slice():{...e};return i.length?r[n]=V1(r[n],i):delete r[n],r}o(V1,"withoutAt");var so=re(require("fs")),yr=re(require("path"));function Doe(e){try{return so.lstatSync(e),!0}catch{return!1}}o(Doe,"entryExists");function dm(e){let t=yr.resolve(e),n=[];for(;!Doe(t);){let r=yr.dirname(t);if(r===t)break;n.unshift(yr.basename(t)),t=r}let i=t;try{i=so.realpathSync(t)}catch{try{so.lstatSync(t).isSymbolicLink()&&(i=yr.resolve(yr.dirname(t),so.readlinkSync(t)))}catch{}}return n.length?yr.join(i,...n):i}o(dm,"realOfExisting");function Da(e){let t=e.split(/[\\/]/)[0];return t===".skyramp"||t===".testbot"}o(Da,"inUnshippedFolder");var z1=String.raw`(?:\[[^\]]*\]|\([^)]*\))`,_oe=String.raw`(?:["'\u201c\u2018\x60]|\*{1,2})?[^\s:"'\u201c\u201d\u2018\u2019\x60*()[\],]+(?:["'\u201d\u2019\x60]|\*{1,2})?`,q1=String.raw`(?:${z1}|${_oe}(?:\s*${z1})?)`,J1=String.raw`(?:\s*:|\s+[\u2014\u2013-])`,vRe=new RegExp(String.raw`^\s*(?:${q1}(?:,\s*${q1})*(?::L?\d+(?:[-\u2013]\d+)?${J1}?|${J1})|\[[^\]\s]+\]|\([^)\s]+\))\s+`);var pm=(r=>(r.RestApi="rest-api",r.Frontend="frontend",r.FullStack="full-stack",r.Other="other",r))(pm||{}),_a=(r=>(r.Critical="critical",r.High="high",r.Medium="medium",r.Low="low",r))(_a||{}),Na=(i=>(i.Suspected="suspected",i.Latent="latent",i.Refuted="refuted",i))(Na||{}),YC=(i=>(i.Skyramp="skyramp",i.External="external",i.Unknown="unknown",i))(YC||{}),WC=(r=>(r.Cascade="cascade",r.Restrict="restrict",r.Orphan="orphan",r.Unknown="unknown",r))(WC||{}),_i=(r=>(r.RequirementReference="requirement-reference",r.Spec="spec",r.PrDescription="pr-description",r.CouldBreak="could-break",r))(_i||{}),pt=d.string().trim().min(1),Bu=pt.describe("file:line"),H1=o(e=>pt.refine(t=>t.length<=400,t=>({message:`is ${t.length} characters, over the 400 cap \u2014 ${e}`})),"cap400"),vp=pt.optional().describe('multi-repo only: the OTHER checkout this lives in \u2014 its "owner/repo" slug, or the directory name if the run discovered it; omit for the working checkout'),HC=d.object({method:pt,path:pt,service:d.string().optional(),evidence:Bu,repository:vp}),Noe=d.object({id:pt.describe("short-slug, e.g. R9"),statement:pt.max(400,"exceeds 400 characters \u2014 state the requirement, do not paste the spec section").describe("a testable obligation, not a summary"),source:d.nativeEnum(_i).describe("spec outranks pr-description when both state it"),evidence:pt.describe("spec: file:line or a section locator. pr-description: the quoted phrase it comes from.")}),Poe=d.object({id:pt.describe("short-slug"),statement:pt.max(400,"exceeds 400 characters \u2014 state the behaviour, do not paste the code").describe("what the change makes true"),surface:pt.describe("METHOD /path, or a component/page name"),evidence:pt.describe("file:line from the diff that introduces it"),repository:vp,satisfies:d.array(pt).optional().describe("requirement ids (from `requirements`) this behaviour correctly implements \u2014 a requirement met only in part is ALSO named by the finding that shows the rest (conflictsWith)")}),Foe=d.object({id:pt.describe("short-slug"),file:pt,line:d.number().optional(),claim:H1("shorten it to the one sentence that states the defect, and move the supporting detail into `evidence`"),severity:d.nativeEnum(_a),evidence:H1("cite the file:line and the one line that shows it, rather than reproducing the surrounding code").describe("quoted diff/code line"),status:d.nativeEnum(Na),repository:vp,conflictsWith:d.array(pt).optional().describe("requirement ids (from `requirements`) this defect contradicts or leaves unimplemented \u2014 a lower-precedence source (the diff, or the PR description) lost")}),Uoe=d.object({name:pt,language:d.string().optional(),framework:d.string().optional(),evidence:Bu,repository:vp}),Ooe=d.object({dir:pt,framework:d.string().optional(),kind:d.nativeEnum(YC),evidence:Bu,repository:vp}),Moe=d.object({from:pt,to:pt,onDelete:d.nativeEnum(WC),evidence:Bu}),Loe=d.object({entity:pt,field:pt,values:d.array(d.string()),evidence:Bu}),joe=d.object({entities:d.array(d.object({name:pt,evidence:Bu})),references:d.array(Moe).describe("INBOUND references \u2014 what still points at an entity when it is deleted"),stateFields:d.array(Loe)}),ZC=d.object({schemaVersion:d.literal(1),repository:d.object({path:pt.describe("absolute repo path"),currentBranch:pt,baseBranch:pt}),project:d.object({type:d.nativeEnum(pm),primaryLanguage:pt,languages:d.array(d.string()),frameworks:d.array(d.string())}),services:d.array(Uoe),infrastructure:d.object({containerized:d.boolean(),hasDockerCompose:d.boolean(),composeFiles:d.array(d.string()),hasCiCd:d.boolean()}),diff:d.object({changedFiles:d.array(d.string()).describe("as git reports them; a file in another checkout may carry that repo's name"),nonApplicationOnly:d.boolean(),summary:pt.describe("\u2264400 chars")}),endpoints:d.object({new:d.array(HC),modified:d.array(HC),removed:d.array(HC)}),existingTests:d.object({locations:d.array(Ooe)}),entityMap:joe,requirements:d.array(Noe).describe("from a spec (attached or linked) and/or the PR description; empty when neither states a testable obligation"),behaviors:d.array(Poe),findings:d.array(Foe),unexamined:d.array(d.string()).describe("files or areas outside this change you did not open"),summary:pt.describe("one paragraph on what this change does and its test-relevant risk")});var bp=(n=>(n.Full="full",n.Static="static",n))(bp||{}),ri=(i=>(i.Contract="contract",i.Integration="integration",i.Ui="ui",i))(ri||{}),wp=(s=>(s.OwnSurface="own_surface",s.StateReadBack="state_read_back",s.Referential="referential",s.Lifecycle="lifecycle",s.Boundaries="boundaries",s))(wp||{}),Ni=(r=>(r.Update="update",r.Regenerate="regenerate",r.Delete="delete",r.Verify="verify",r))(Ni||{}),fm=(l=>(l.Equals="equals",l.NotEquals="not_equals",l.GreaterThan="greater_than",l.LessThan="less_than",l.Contains="contains",l.NotContains="not_contains",l.Matches="matches",l.Absent="absent",l.Present="present",l))(fm||{});var Er=d.string().trim().min(1),Goe=d.object({subject:Er.describe('what the test READS: a response field path, the literal "status", or the on-screen text for a ui case \u2014 the FINAL read in a multi-step case'),comparator:d.nativeEnum(fm),value:d.union([d.string(),d.number(),d.boolean(),d.null()]).optional().describe("the ONE value a broken build would not produce; OMIT for absent/present")}),Voe=d.object({test:Er.describe("existing test path, relative to its repository"),repository:Er.optional().describe("owner/repo the test lives in, when the run has several checkouts; omit for the working checkout"),action:d.nativeEnum(Ni),evidence:Er.describe("why \u2014 drift vs the diff, or a finding"),covers_behaviors:d.array(d.string()).optional().describe("analyze behavior ids this maintenance covers"),staleOnBase:d.boolean().optional().describe("[derived] the plan found the test already wrong on the base branch: it is left as it is and re-run")});var zoe=d.object({surface:Er.describe("a surface from the list, copied verbatim"),axis:d.nativeEnum(wp)}),qoe=d.object({id:Er.describe("short-slug, unique across generate[]"),type:d.nativeEnum(ri),target:Er.describe('"METHOD /path", or a business-flow name'),from_finding:d.string().optional().describe("analyze finding id this case catches"),from_behavior:d.string().optional().describe("analyze behavior id this case pins"),derived_from:zoe.optional().describe("the surface \xD7 axis this case pins when no analyze behavior or finding names it \u2014 one of the three is required"),rationale:Er.describe("why this test matters"),expected_observable:Er.describe("one sentence for a human: what a catching test asserts, and what a broken build does instead"),expected:Goe.describe("the same intent AS DATA \u2014 see the rules below"),seededPrecondition:Er.optional().describe("seeded non-initial state + how to reach it; only when a seeded-state transition applies"),verifiable:d.boolean().describe("true only when a live SUT could confirm this test (full mode)")}),Joe=d.object({covered:d.array(d.string()).optional(),abstain:d.string().optional()}).superRefine((e,t)=>{let n=Array.isArray(e.covered),i=typeof e.abstain=="string";if(n===i)return void t.addIssue({code:d.ZodIssueCode.custom,message:"must have exactly one of covered[] or abstain"});n&&e.covered.length===0&&t.addIssue({code:d.ZodIssueCode.custom,path:["covered"],message:"must list at least one id (else abstain)"}),i&&!e.abstain.trim()&&t.addIssue({code:d.ZodIssueCode.custom,path:["abstain"],message:"must give a reason"})}).describe('{ "covered": [ids] } OR { "abstain": "reason" } \u2014 exactly one'),Hoe=d.object({surface:Er.describe("a surface from the list, copied verbatim"),axes:d.object(Object.fromEntries(Object.values(wp).map(e=>[e,Joe])))}),Y1=d.object({schemaVersion:d.literal(1),mode:d.nativeEnum(bp),maintenance:d.array(Voe),generate:d.array(qoe),surfaces:d.array(Hoe).describe("one entry per changed surface in the list \u2014 none missing, none invented"),budget:d.object({total:d.number().describe("case count"),rationale:Er}),summary:Er.describe("one paragraph")});var ls=d.string().trim().min(1),ds=72,Yoe=d.object({repository:ls.optional().describe("owner/repo of the checkout this lint ran in, when the run has several; omit for the working checkout"),tool:d.string(),command:d.string().describe("the exact command you ran, scoped to the changed files"),clean:d.boolean(),notRun:d.string().optional().describe("why no linter checked the files, when none could (SKYR-5827): then `clean` is false and does not hold the tests back"),fixed:d.array(d.string()).optional().describe("files you fixed"),uncovered:d.array(d.string()).describe("changed/new files this linter's own config does not match (wrong extension, wrong directory) \u2014 so `clean` never examined them, even though CI may still execute them. Empty array, not omitted, when every changed/new file IS covered.")});var XC=d.object({schemaVersion:d.literal(1),lint:d.array(Yoe).min(1).describe("one entry per checkout this run wrote tests in, each run from that checkout"),fileConventions:d.object({ok:d.boolean(),notes:d.string().optional()}),ciReadiness:d.object({covered:d.boolean().describe("will the repo's CI run these tests?"),notes:d.string().optional(),unrecorded:d.array(d.string()).optional().describe("tests with no record of whether CI runs them: not covered, and not known to be left out")}),dependencies:d.object({added:d.array(d.object({package:d.string(),manifest:d.string(),repository:ls.optional().describe("owner/repo of the manifest's checkout; omit for the working checkout"),reason:ls.optional().describe("why the test must run inside the application's own test environment, so its manifest had to change \u2014 required for every entry")})).describe("every package added to an APPLICATION manifest (an exception, surfaced in the report); never the Testbot test package's own")}),support:d.array(d.object({file:ls,repository:ls.optional().describe("owner/repo of the file's checkout; omit for the working checkout")})).optional().describe("the files the tests need besides themselves (helper modules, page objects, fixtures, snapshots), delivered with them"),commit:d.object({message:ls.refine(e=>e.split(`
61
+ `).map(a=>a.trim()).filter(Boolean),i=n.filter(a=>!t.test(a)),r=i.length?i:n;return[...r].reverse().find(a=>/(error|warning|problem|✖|✗|✘|fail|not listed|cannot|denied)/i.test(a))??r[r.length-1]??"(no output)"}o(Hre,"hookSummary");function pj(e){if(!/\bhook\b|husky|pre-commit|lint-staged/i.test(e))return;let t=Hre(e),n=ce().staged.commitHook(/husky\s*[->]\s*([\w-]+)\s+(?:script|hook)\b/i.exec(qd(e))?.[1]);return/\(code 127\)|exit code 127/i.test(e)||/command not found|: not found$/i.test(t)?ce().staged.commitHookCouldNotRun(n,t):ce().staged.commitRefusedByHook(n,t)}o(pj,"hookRefusal");var d={};Vr(d,{BRAND:()=>Iie,DIRTY:()=>la,EMPTY_PATH:()=>Kre,INVALID:()=>ve,NEVER:()=>ise,OK:()=>En,ParseStatus:()=>on,Schema:()=>je,ZodAny:()=>Ws,ZodArray:()=>os,ZodBigInt:()=>pa,ZodBoolean:()=>fa,ZodBranded:()=>Hd,ZodCatch:()=>Ca,ZodDate:()=>Aa,ZodDefault:()=>wa,ZodDiscriminatedUnion:()=>Oh,ZodEffects:()=>Tr,ZodEnum:()=>va,ZodError:()=>zn,ZodFirstPartyTypeKind:()=>Se,ZodFunction:()=>Lh,ZodIntersection:()=>ya,ZodIssueCode:()=>G,ZodLazy:()=>Ea,ZodLiteral:()=>Ia,ZodMap:()=>gu,ZodNaN:()=>mu,ZodNativeEnum:()=>ba,ZodNever:()=>ti,ZodNull:()=>ha,ZodNullable:()=>Si,ZodNumber:()=>da,ZodObject:()=>qn,ZodOptional:()=>xr,ZodParsedType:()=>te,ZodPipeline:()=>Yd,ZodPromise:()=>Zs,ZodReadonly:()=>Sa,ZodRecord:()=>Mh,ZodSchema:()=>je,ZodSet:()=>hu,ZodString:()=>Ys,ZodSymbol:()=>fu,ZodTransformer:()=>Tr,ZodTuple:()=>Ci,ZodType:()=>je,ZodUndefined:()=>ga,ZodUnion:()=>ma,ZodUnknown:()=>ss,ZodVoid:()=>Au,addIssueToContext:()=>X,any:()=>Qie,array:()=>Die,bigint:()=>Cie,boolean:()=>wj,coerce:()=>rse,custom:()=>Ij,date:()=>Sie,datetimeRegex:()=>yj,defaultErrorMap:()=>rs,discriminatedUnion:()=>Fie,effect:()=>Yie,enum:()=>qie,function:()=>Gie,getErrorMap:()=>lu,getParsedType:()=>wi,instanceof:()=>bie,intersection:()=>Uie,isAborted:()=>Fh,isAsync:()=>du,isDirty:()=>Uh,isValid:()=>Hs,late:()=>vie,lazy:()=>Vie,literal:()=>zie,makeIssue:()=>Jd,map:()=>Lie,nan:()=>wie,nativeEnum:()=>Jie,never:()=>$ie,null:()=>Rie,nullable:()=>Zie,number:()=>bj,object:()=>_ie,objectUtil:()=>uC,oboolean:()=>nse,onumber:()=>tse,optional:()=>Wie,ostring:()=>ese,pipeline:()=>Xie,preprocess:()=>Kie,promise:()=>Hie,quotelessJson:()=>Yre,record:()=>Mie,set:()=>jie,setErrorMap:()=>Zre,strictObject:()=>Nie,string:()=>vj,symbol:()=>kie,transformer:()=>Yie,tuple:()=>Oie,undefined:()=>Bie,union:()=>Pie,unknown:()=>xie,util:()=>Je,void:()=>Tie});var Je;(function(e){e.assertEqual=r=>{};function t(r){}o(t,"assertIs"),e.assertIs=t;function n(r){throw new Error}o(n,"assertNever"),e.assertNever=n,e.arrayToEnum=r=>{let s={};for(let a of r)s[a]=a;return s},e.getValidEnumValues=r=>{let s=e.objectKeys(r).filter(c=>typeof r[r[c]]!="number"),a={};for(let c of s)a[c]=r[c];return e.objectValues(a)},e.objectValues=r=>e.objectKeys(r).map(function(s){return r[s]}),e.objectKeys=typeof Object.keys=="function"?r=>Object.keys(r):r=>{let s=[];for(let a in r)Object.prototype.hasOwnProperty.call(r,a)&&s.push(a);return s},e.find=(r,s)=>{for(let a of r)if(s(a))return a},e.isInteger=typeof Number.isInteger=="function"?r=>Number.isInteger(r):r=>typeof r=="number"&&Number.isFinite(r)&&Math.floor(r)===r;function i(r,s=" | "){return r.map(a=>typeof a=="string"?`'${a}'`:a).join(s)}o(i,"joinValues"),e.joinValues=i,e.jsonStringifyReplacer=(r,s)=>typeof s=="bigint"?s.toString():s})(Je||(Je={}));var uC;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(uC||(uC={}));var te=Je.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),wi=o(e=>{switch(typeof e){case"undefined":return te.undefined;case"string":return te.string;case"number":return Number.isNaN(e)?te.nan:te.number;case"boolean":return te.boolean;case"function":return te.function;case"bigint":return te.bigint;case"symbol":return te.symbol;case"object":return Array.isArray(e)?te.array:e===null?te.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?te.promise:typeof Map<"u"&&e instanceof Map?te.map:typeof Set<"u"&&e instanceof Set?te.set:typeof Date<"u"&&e instanceof Date?te.date:te.object;default:return te.unknown}},"getParsedType");var G=Je.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),Yre=o(e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),"quotelessJson"),zn=class e extends Error{static{o(this,"ZodError")}get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=i=>{this.issues=[...this.issues,i]},this.addIssues=(i=[])=>{this.issues=[...this.issues,...i]};let n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){let n=t||function(s){return s.message},i={_errors:[]},r=o(s=>{for(let a of s.issues)if(a.code==="invalid_union")a.unionErrors.map(r);else if(a.code==="invalid_return_type")r(a.returnTypeError);else if(a.code==="invalid_arguments")r(a.argumentsError);else if(a.path.length===0)i._errors.push(n(a));else{let c=i,u=0;for(;u<a.path.length;){let l=a.path[u],p=u===a.path.length-1;if(l==="_errors"){p&&c._errors.push(n(a)),u++;continue}Object.prototype.hasOwnProperty.call(c,l)||(l==="__proto__"?Object.defineProperty(c,l,{value:{_errors:[]},writable:!0,enumerable:!0,configurable:!0}):c[l]={_errors:[]}),c=c[l],p&&c._errors.push(n(a)),u++}}},"processError");return r(this),i}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,Je.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){let n=Object.create(null),i=[];for(let r of this.issues)if(r.path.length>0){let s=r.path[0];n[s]=n[s]||[],n[s].push(t(r))}else i.push(t(r));return{formErrors:i,fieldErrors:n}}get formErrors(){return this.flatten()}};zn.create=e=>new zn(e);var Wre=o((e,t)=>{let n;switch(e.code){case G.invalid_type:e.received===te.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case G.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,Je.jsonStringifyReplacer)}`;break;case G.unrecognized_keys:n=`Unrecognized key(s) in object: ${Je.joinValues(e.keys,", ")}`;break;case G.invalid_union:n="Invalid input";break;case G.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${Je.joinValues(e.options)}`;break;case G.invalid_enum_value:n=`Invalid enum value. Expected ${Je.joinValues(e.options)}, received '${e.received}'`;break;case G.invalid_arguments:n="Invalid function arguments";break;case G.invalid_return_type:n="Invalid function return type";break;case G.invalid_date:n="Invalid date";break;case G.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:Je.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case G.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case G.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case G.custom:n="Invalid input";break;case G.invalid_intersection_types:n="Intersection results could not be merged";break;case G.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case G.not_finite:n="Number must be finite";break;default:n=t.defaultError,Je.assertNever(e)}return{message:n}},"errorMap"),rs=Wre;var fj=rs;function Zre(e){fj=e}o(Zre,"setErrorMap");function lu(){return fj}o(lu,"getErrorMap");var Jd=o(e=>{let{data:t,path:n,errorMaps:i,issueData:r}=e,s=[...n,...r.path||[]],a={...r,path:s};if(r.message!==void 0)return{...r,path:s,message:r.message};let c="",u=i.filter(l=>!!l).slice().reverse();for(let l of u)c=l(a,{data:t,defaultError:c}).message;return{...r,path:s,message:c}},"makeIssue"),Kre=[];function X(e,t){let n=lu(),i=Jd({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===rs?void 0:rs].filter(r=>!!r)});e.common.issues.push(i)}o(X,"addIssueToContext");var on=class e{static{o(this,"ParseStatus")}constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){let i=[];for(let r of n){if(r.status==="aborted")return ve;r.status==="dirty"&&t.dirty(),i.push(r.value)}return{status:t.value,value:i}}static async mergeObjectAsync(t,n){let i=[];for(let r of n){let s=await r.key,a=await r.value;i.push({key:s,value:a})}return e.mergeObjectSync(t,i)}static mergeObjectSync(t,n){let i={};for(let r of n){let{key:s,value:a}=r;if(s.status==="aborted"||a.status==="aborted")return ve;s.status==="dirty"&&t.dirty(),a.status==="dirty"&&t.dirty(),s.value!=="__proto__"&&(typeof a.value<"u"||r.alwaysSet)&&(i[s.value]=a.value)}return{status:t.value,value:i}}},ve=Object.freeze({status:"aborted"}),la=o(e=>({status:"dirty",value:e}),"DIRTY"),En=o(e=>({status:"valid",value:e}),"OK"),Fh=o(e=>e.status==="aborted","isAborted"),Uh=o(e=>e.status==="dirty","isDirty"),Hs=o(e=>e.status==="valid","isValid"),du=o(e=>typeof Promise<"u"&&e instanceof Promise,"isAsync");var de;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(de||(de={}));var $r=class{static{o(this,"ParseInputLazyPath")}constructor(t,n,i,r){this._cachedPath=[],this.parent=t,this.data=n,this._path=i,this._key=r}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},Aj=o((e,t)=>{if(Hs(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let n=new zn(e.common.issues);return this._error=n,this._error}}},"handleResult");function Fe(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:i,description:r}=e;if(t&&(n||i))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:r}:{errorMap:o((a,c)=>{let{message:u}=e;return a.code==="invalid_enum_value"?{message:u??c.defaultError}:typeof c.data>"u"?{message:u??i??c.defaultError}:a.code!=="invalid_type"?{message:c.defaultError}:{message:u??n??c.defaultError}},"customMap"),description:r}}o(Fe,"processCreateParams");var je=class{static{o(this,"ZodType")}get description(){return this._def.description}_getType(t){return wi(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:wi(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new on,ctx:{common:t.parent.common,data:t.data,parsedType:wi(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let n=this._parse(t);if(du(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){let n=this._parse(t);return Promise.resolve(n)}parse(t,n){let i=this.safeParse(t,n);if(i.success)return i.data;throw i.error}safeParse(t,n){let i={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:wi(t)},r=this._parseSync({data:t,path:i.path,parent:i});return Aj(i,r)}"~validate"(t){let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:wi(t)};if(!this["~standard"].async)try{let i=this._parseSync({data:t,path:[],parent:n});return Hs(i)?{value:i.value}:{issues:n.common.issues}}catch(i){i?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(i=>Hs(i)?{value:i.value}:{issues:n.common.issues})}async parseAsync(t,n){let i=await this.safeParseAsync(t,n);if(i.success)return i.data;throw i.error}async safeParseAsync(t,n){let i={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:wi(t)},r=this._parse({data:t,path:i.path,parent:i}),s=await(du(r)?r:Promise.resolve(r));return Aj(i,s)}refine(t,n){let i=o(r=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(r):n,"getIssueProperties");return this._refinement((r,s)=>{let a=t(r),c=o(()=>s.addIssue({code:G.custom,...i(r)}),"setError");return typeof Promise<"u"&&a instanceof Promise?a.then(u=>u?!0:(c(),!1)):a?!0:(c(),!1)})}refinement(t,n){return this._refinement((i,r)=>t(i)?!0:(r.addIssue(typeof n=="function"?n(i,r):n),!1))}_refinement(t){return new Tr({schema:this,typeName:Se.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:o(n=>this["~validate"](n),"validate")}}optional(){return xr.create(this,this._def)}nullable(){return Si.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return os.create(this)}promise(){return Zs.create(this,this._def)}or(t){return ma.create([this,t],this._def)}and(t){return ya.create(this,t,this._def)}transform(t){return new Tr({...Fe(this._def),schema:this,typeName:Se.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let n=typeof t=="function"?t:()=>t;return new wa({...Fe(this._def),innerType:this,defaultValue:n,typeName:Se.ZodDefault})}brand(){return new Hd({typeName:Se.ZodBranded,type:this,...Fe(this._def)})}catch(t){let n=typeof t=="function"?t:()=>t;return new Ca({...Fe(this._def),innerType:this,catchValue:n,typeName:Se.ZodCatch})}describe(t){let n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Yd.create(this,t)}readonly(){return Sa.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Xre=/^c[^\s-]{8,}$/i,eie=/^[0-9a-z]+$/,tie=/^[0-9A-HJKMNP-TV-Z]{26}$/i,nie=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,rie=/^[a-z0-9_-]{21}$/i,iie=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,sie=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,oie=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,aie="^[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$",lC,cie=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,uie=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,lie=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,die=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,pie=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,fie=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,hj="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",Aie=new RegExp(`^${hj}$`);function mj(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}o(mj,"timeRegexSource");function gie(e){return new RegExp(`^${mj(e)}$`)}o(gie,"timeRegex");function yj(e){let t=`${hj}T${mj(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}o(yj,"datetimeRegex");function hie(e,t){return!!((t==="v4"||!t)&&cie.test(e)||(t==="v6"||!t)&&lie.test(e))}o(hie,"isValidIP");function mie(e,t){if(!iie.test(e))return!1;try{let[n]=e.split(".");if(!n)return!1;let i=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),r=JSON.parse(atob(i));return!(typeof r!="object"||r===null||"typ"in r&&r?.typ!=="JWT"||!r.alg||t&&r.alg!==t)}catch{return!1}}o(mie,"isValidJWT");function yie(e,t){return!!((t==="v4"||!t)&&uie.test(e)||(t==="v6"||!t)&&die.test(e))}o(yie,"isValidCidr");var Ys=class e extends je{static{o(this,"ZodString")}_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==te.string){let s=this._getOrReturnCtx(t);return X(s,{code:G.invalid_type,expected:te.string,received:s.parsedType}),ve}let i=new on,r;for(let s of this._def.checks)if(s.kind==="min")t.data.length<s.value&&(r=this._getOrReturnCtx(t,r),X(r,{code:G.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),i.dirty());else if(s.kind==="max")t.data.length>s.value&&(r=this._getOrReturnCtx(t,r),X(r,{code:G.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!1,message:s.message}),i.dirty());else if(s.kind==="length"){let a=t.data.length>s.value,c=t.data.length<s.value;(a||c)&&(r=this._getOrReturnCtx(t,r),a?X(r,{code:G.too_big,maximum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}):c&&X(r,{code:G.too_small,minimum:s.value,type:"string",inclusive:!0,exact:!0,message:s.message}),i.dirty())}else if(s.kind==="email")oie.test(t.data)||(r=this._getOrReturnCtx(t,r),X(r,{validation:"email",code:G.invalid_string,message:s.message}),i.dirty());else if(s.kind==="emoji")lC||(lC=new RegExp(aie,"u")),lC.test(t.data)||(r=this._getOrReturnCtx(t,r),X(r,{validation:"emoji",code:G.invalid_string,message:s.message}),i.dirty());else if(s.kind==="uuid")nie.test(t.data)||(r=this._getOrReturnCtx(t,r),X(r,{validation:"uuid",code:G.invalid_string,message:s.message}),i.dirty());else if(s.kind==="nanoid")rie.test(t.data)||(r=this._getOrReturnCtx(t,r),X(r,{validation:"nanoid",code:G.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid")Xre.test(t.data)||(r=this._getOrReturnCtx(t,r),X(r,{validation:"cuid",code:G.invalid_string,message:s.message}),i.dirty());else if(s.kind==="cuid2")eie.test(t.data)||(r=this._getOrReturnCtx(t,r),X(r,{validation:"cuid2",code:G.invalid_string,message:s.message}),i.dirty());else if(s.kind==="ulid")tie.test(t.data)||(r=this._getOrReturnCtx(t,r),X(r,{validation:"ulid",code:G.invalid_string,message:s.message}),i.dirty());else if(s.kind==="url")try{new URL(t.data)}catch{r=this._getOrReturnCtx(t,r),X(r,{validation:"url",code:G.invalid_string,message:s.message}),i.dirty()}else s.kind==="regex"?(s.regex.lastIndex=0,s.regex.test(t.data)||(r=this._getOrReturnCtx(t,r),X(r,{validation:"regex",code:G.invalid_string,message:s.message}),i.dirty())):s.kind==="trim"?t.data=t.data.trim():s.kind==="includes"?t.data.includes(s.value,s.position)||(r=this._getOrReturnCtx(t,r),X(r,{code:G.invalid_string,validation:{includes:s.value,position:s.position},message:s.message}),i.dirty()):s.kind==="toLowerCase"?t.data=t.data.toLowerCase():s.kind==="toUpperCase"?t.data=t.data.toUpperCase():s.kind==="startsWith"?t.data.startsWith(s.value)||(r=this._getOrReturnCtx(t,r),X(r,{code:G.invalid_string,validation:{startsWith:s.value},message:s.message}),i.dirty()):s.kind==="endsWith"?t.data.endsWith(s.value)||(r=this._getOrReturnCtx(t,r),X(r,{code:G.invalid_string,validation:{endsWith:s.value},message:s.message}),i.dirty()):s.kind==="datetime"?yj(s).test(t.data)||(r=this._getOrReturnCtx(t,r),X(r,{code:G.invalid_string,validation:"datetime",message:s.message}),i.dirty()):s.kind==="date"?Aie.test(t.data)||(r=this._getOrReturnCtx(t,r),X(r,{code:G.invalid_string,validation:"date",message:s.message}),i.dirty()):s.kind==="time"?gie(s).test(t.data)||(r=this._getOrReturnCtx(t,r),X(r,{code:G.invalid_string,validation:"time",message:s.message}),i.dirty()):s.kind==="duration"?sie.test(t.data)||(r=this._getOrReturnCtx(t,r),X(r,{validation:"duration",code:G.invalid_string,message:s.message}),i.dirty()):s.kind==="ip"?hie(t.data,s.version)||(r=this._getOrReturnCtx(t,r),X(r,{validation:"ip",code:G.invalid_string,message:s.message}),i.dirty()):s.kind==="jwt"?mie(t.data,s.alg)||(r=this._getOrReturnCtx(t,r),X(r,{validation:"jwt",code:G.invalid_string,message:s.message}),i.dirty()):s.kind==="cidr"?yie(t.data,s.version)||(r=this._getOrReturnCtx(t,r),X(r,{validation:"cidr",code:G.invalid_string,message:s.message}),i.dirty()):s.kind==="base64"?pie.test(t.data)||(r=this._getOrReturnCtx(t,r),X(r,{validation:"base64",code:G.invalid_string,message:s.message}),i.dirty()):s.kind==="base64url"?fie.test(t.data)||(r=this._getOrReturnCtx(t,r),X(r,{validation:"base64url",code:G.invalid_string,message:s.message}),i.dirty()):Je.assertNever(s);return{status:i.value,value:t.data}}_regex(t,n,i){return this.refinement(r=>t.test(r),{validation:n,code:G.invalid_string,...de.errToObj(i)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...de.errToObj(t)})}url(t){return this._addCheck({kind:"url",...de.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...de.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...de.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...de.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...de.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...de.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...de.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...de.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...de.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...de.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...de.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...de.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...de.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...de.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...de.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...de.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...de.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...de.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...de.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...de.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...de.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...de.errToObj(n)})}nonempty(t){return this.min(1,de.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};Ys.create=e=>new Ys({checks:[],typeName:Se.ZodString,coerce:e?.coerce??!1,...Fe(e)});function Eie(e,t){let n=(e.toString().split(".")[1]||"").length,i=(t.toString().split(".")[1]||"").length,r=n>i?n:i,s=Number.parseInt(e.toFixed(r).replace(".","")),a=Number.parseInt(t.toFixed(r).replace(".",""));return s%a/10**r}o(Eie,"floatSafeRemainder");var da=class e extends je{static{o(this,"ZodNumber")}constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==te.number){let s=this._getOrReturnCtx(t);return X(s,{code:G.invalid_type,expected:te.number,received:s.parsedType}),ve}let i,r=new on;for(let s of this._def.checks)s.kind==="int"?Je.isInteger(t.data)||(i=this._getOrReturnCtx(t,i),X(i,{code:G.invalid_type,expected:"integer",received:"float",message:s.message}),r.dirty()):s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(i=this._getOrReturnCtx(t,i),X(i,{code:G.too_small,minimum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),r.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(i=this._getOrReturnCtx(t,i),X(i,{code:G.too_big,maximum:s.value,type:"number",inclusive:s.inclusive,exact:!1,message:s.message}),r.dirty()):s.kind==="multipleOf"?Eie(t.data,s.value)!==0&&(i=this._getOrReturnCtx(t,i),X(i,{code:G.not_multiple_of,multipleOf:s.value,message:s.message}),r.dirty()):s.kind==="finite"?Number.isFinite(t.data)||(i=this._getOrReturnCtx(t,i),X(i,{code:G.not_finite,message:s.message}),r.dirty()):Je.assertNever(s);return{status:r.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,de.toString(n))}gt(t,n){return this.setLimit("min",t,!1,de.toString(n))}lte(t,n){return this.setLimit("max",t,!0,de.toString(n))}lt(t,n){return this.setLimit("max",t,!1,de.toString(n))}setLimit(t,n,i,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:de.toString(r)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:de.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:de.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:de.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:de.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:de.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:de.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:de.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:de.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:de.toString(t)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&Je.isInteger(t.value))}get isFinite(){let t=null,n=null;for(let i of this._def.checks){if(i.kind==="finite"||i.kind==="int"||i.kind==="multipleOf")return!0;i.kind==="min"?(n===null||i.value>n)&&(n=i.value):i.kind==="max"&&(t===null||i.value<t)&&(t=i.value)}return Number.isFinite(n)&&Number.isFinite(t)}};da.create=e=>new da({checks:[],typeName:Se.ZodNumber,coerce:e?.coerce||!1,...Fe(e)});var pa=class e extends je{static{o(this,"ZodBigInt")}constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==te.bigint)return this._getInvalidInput(t);let i,r=new on;for(let s of this._def.checks)s.kind==="min"?(s.inclusive?t.data<s.value:t.data<=s.value)&&(i=this._getOrReturnCtx(t,i),X(i,{code:G.too_small,type:"bigint",minimum:s.value,inclusive:s.inclusive,message:s.message}),r.dirty()):s.kind==="max"?(s.inclusive?t.data>s.value:t.data>=s.value)&&(i=this._getOrReturnCtx(t,i),X(i,{code:G.too_big,type:"bigint",maximum:s.value,inclusive:s.inclusive,message:s.message}),r.dirty()):s.kind==="multipleOf"?t.data%s.value!==BigInt(0)&&(i=this._getOrReturnCtx(t,i),X(i,{code:G.not_multiple_of,multipleOf:s.value,message:s.message}),r.dirty()):Je.assertNever(s);return{status:r.value,value:t.data}}_getInvalidInput(t){let n=this._getOrReturnCtx(t);return X(n,{code:G.invalid_type,expected:te.bigint,received:n.parsedType}),ve}gte(t,n){return this.setLimit("min",t,!0,de.toString(n))}gt(t,n){return this.setLimit("min",t,!1,de.toString(n))}lte(t,n){return this.setLimit("max",t,!0,de.toString(n))}lt(t,n){return this.setLimit("max",t,!1,de.toString(n))}setLimit(t,n,i,r){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:i,message:de.toString(r)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:de.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:de.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:de.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:de.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:de.toString(n)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};pa.create=e=>new pa({checks:[],typeName:Se.ZodBigInt,coerce:e?.coerce??!1,...Fe(e)});var fa=class extends je{static{o(this,"ZodBoolean")}_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==te.boolean){let i=this._getOrReturnCtx(t);return X(i,{code:G.invalid_type,expected:te.boolean,received:i.parsedType}),ve}return En(t.data)}};fa.create=e=>new fa({typeName:Se.ZodBoolean,coerce:e?.coerce||!1,...Fe(e)});var Aa=class e extends je{static{o(this,"ZodDate")}_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==te.date){let s=this._getOrReturnCtx(t);return X(s,{code:G.invalid_type,expected:te.date,received:s.parsedType}),ve}if(Number.isNaN(t.data.getTime())){let s=this._getOrReturnCtx(t);return X(s,{code:G.invalid_date}),ve}let i=new on,r;for(let s of this._def.checks)s.kind==="min"?t.data.getTime()<s.value&&(r=this._getOrReturnCtx(t,r),X(r,{code:G.too_small,message:s.message,inclusive:!0,exact:!1,minimum:s.value,type:"date"}),i.dirty()):s.kind==="max"?t.data.getTime()>s.value&&(r=this._getOrReturnCtx(t,r),X(r,{code:G.too_big,message:s.message,inclusive:!0,exact:!1,maximum:s.value,type:"date"}),i.dirty()):Je.assertNever(s);return{status:i.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:de.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:de.toString(n)})}get minDate(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}};Aa.create=e=>new Aa({checks:[],coerce:e?.coerce||!1,typeName:Se.ZodDate,...Fe(e)});var fu=class extends je{static{o(this,"ZodSymbol")}_parse(t){if(this._getType(t)!==te.symbol){let i=this._getOrReturnCtx(t);return X(i,{code:G.invalid_type,expected:te.symbol,received:i.parsedType}),ve}return En(t.data)}};fu.create=e=>new fu({typeName:Se.ZodSymbol,...Fe(e)});var ga=class extends je{static{o(this,"ZodUndefined")}_parse(t){if(this._getType(t)!==te.undefined){let i=this._getOrReturnCtx(t);return X(i,{code:G.invalid_type,expected:te.undefined,received:i.parsedType}),ve}return En(t.data)}};ga.create=e=>new ga({typeName:Se.ZodUndefined,...Fe(e)});var ha=class extends je{static{o(this,"ZodNull")}_parse(t){if(this._getType(t)!==te.null){let i=this._getOrReturnCtx(t);return X(i,{code:G.invalid_type,expected:te.null,received:i.parsedType}),ve}return En(t.data)}};ha.create=e=>new ha({typeName:Se.ZodNull,...Fe(e)});var Ws=class extends je{static{o(this,"ZodAny")}constructor(){super(...arguments),this._any=!0}_parse(t){return En(t.data)}};Ws.create=e=>new Ws({typeName:Se.ZodAny,...Fe(e)});var ss=class extends je{static{o(this,"ZodUnknown")}constructor(){super(...arguments),this._unknown=!0}_parse(t){return En(t.data)}};ss.create=e=>new ss({typeName:Se.ZodUnknown,...Fe(e)});var ti=class extends je{static{o(this,"ZodNever")}_parse(t){let n=this._getOrReturnCtx(t);return X(n,{code:G.invalid_type,expected:te.never,received:n.parsedType}),ve}};ti.create=e=>new ti({typeName:Se.ZodNever,...Fe(e)});var Au=class extends je{static{o(this,"ZodVoid")}_parse(t){if(this._getType(t)!==te.undefined){let i=this._getOrReturnCtx(t);return X(i,{code:G.invalid_type,expected:te.void,received:i.parsedType}),ve}return En(t.data)}};Au.create=e=>new Au({typeName:Se.ZodVoid,...Fe(e)});var os=class e extends je{static{o(this,"ZodArray")}_parse(t){let{ctx:n,status:i}=this._processInputParams(t),r=this._def;if(n.parsedType!==te.array)return X(n,{code:G.invalid_type,expected:te.array,received:n.parsedType}),ve;if(r.exactLength!==null){let a=n.data.length>r.exactLength.value,c=n.data.length<r.exactLength.value;(a||c)&&(X(n,{code:a?G.too_big:G.too_small,minimum:c?r.exactLength.value:void 0,maximum:a?r.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:r.exactLength.message}),i.dirty())}if(r.minLength!==null&&n.data.length<r.minLength.value&&(X(n,{code:G.too_small,minimum:r.minLength.value,type:"array",inclusive:!0,exact:!1,message:r.minLength.message}),i.dirty()),r.maxLength!==null&&n.data.length>r.maxLength.value&&(X(n,{code:G.too_big,maximum:r.maxLength.value,type:"array",inclusive:!0,exact:!1,message:r.maxLength.message}),i.dirty()),n.common.async)return Promise.all([...n.data].map((a,c)=>r.type._parseAsync(new $r(n,a,n.path,c)))).then(a=>on.mergeArray(i,a));let s=[...n.data].map((a,c)=>r.type._parseSync(new $r(n,a,n.path,c)));return on.mergeArray(i,s)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:de.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:de.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:de.toString(n)}})}nonempty(t){return this.min(1,t)}};os.create=(e,t)=>new os({type:e,minLength:null,maxLength:null,exactLength:null,typeName:Se.ZodArray,...Fe(t)});function pu(e){if(e instanceof qn){let t={};for(let n in e.shape){let i=e.shape[n];t[n]=xr.create(pu(i))}return new qn({...e._def,shape:o(()=>t,"shape")})}else return e instanceof os?new os({...e._def,type:pu(e.element)}):e instanceof xr?xr.create(pu(e.unwrap())):e instanceof Si?Si.create(pu(e.unwrap())):e instanceof Ci?Ci.create(e.items.map(t=>pu(t))):e}o(pu,"deepPartialify");var qn=class e extends je{static{o(this,"ZodObject")}constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),n=Je.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==te.object){let l=this._getOrReturnCtx(t);return X(l,{code:G.invalid_type,expected:te.object,received:l.parsedType}),ve}let{status:i,ctx:r}=this._processInputParams(t),{shape:s,keys:a}=this._getCached(),c=[];if(!(this._def.catchall instanceof ti&&this._def.unknownKeys==="strip"))for(let l in r.data)a.includes(l)||c.push(l);let u=[];for(let l of a){let p=s[l],f=r.data[l];u.push({key:{status:"valid",value:l},value:p._parse(new $r(r,f,r.path,l)),alwaysSet:l in r.data})}if(this._def.catchall instanceof ti){let l=this._def.unknownKeys;if(l==="passthrough")for(let p of c)u.push({key:{status:"valid",value:p},value:{status:"valid",value:r.data[p]}});else if(l==="strict")c.length>0&&(X(r,{code:G.unrecognized_keys,keys:c}),i.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let l=this._def.catchall;for(let p of c){let f=r.data[p];u.push({key:{status:"valid",value:p},value:l._parse(new $r(r,f,r.path,p)),alwaysSet:p in r.data})}}return r.common.async?Promise.resolve().then(async()=>{let l=[];for(let p of u){let f=await p.key,g=await p.value;l.push({key:f,value:g,alwaysSet:p.alwaysSet})}return l}).then(l=>on.mergeObjectSync(i,l)):on.mergeObjectSync(i,u)}get shape(){return this._def.shape()}strict(t){return de.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:o((n,i)=>{let r=this._def.errorMap?.(n,i).message??i.defaultError;return n.code==="unrecognized_keys"?{message:de.errToObj(t).message??r}:{message:r}},"errorMap")}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:o(()=>({...this._def.shape(),...t}),"shape")})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:o(()=>({...this._def.shape(),...t._def.shape()}),"shape"),typeName:Se.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};for(let i of Je.objectKeys(t))t[i]&&this.shape[i]&&(n[i]=this.shape[i]);return new e({...this._def,shape:o(()=>n,"shape")})}omit(t){let n={};for(let i of Je.objectKeys(this.shape))t[i]||(n[i]=this.shape[i]);return new e({...this._def,shape:o(()=>n,"shape")})}deepPartial(){return pu(this)}partial(t){let n={};for(let i of Je.objectKeys(this.shape)){let r=this.shape[i];t&&!t[i]?n[i]=r:n[i]=r.optional()}return new e({...this._def,shape:o(()=>n,"shape")})}required(t){let n={};for(let i of Je.objectKeys(this.shape))if(t&&!t[i])n[i]=this.shape[i];else{let s=this.shape[i];for(;s instanceof xr;)s=s._def.innerType;n[i]=s}return new e({...this._def,shape:o(()=>n,"shape")})}keyof(){return Ej(Je.objectKeys(this.shape))}};qn.create=(e,t)=>new qn({shape:o(()=>e,"shape"),unknownKeys:"strip",catchall:ti.create(),typeName:Se.ZodObject,...Fe(t)});qn.strictCreate=(e,t)=>new qn({shape:o(()=>e,"shape"),unknownKeys:"strict",catchall:ti.create(),typeName:Se.ZodObject,...Fe(t)});qn.lazycreate=(e,t)=>new qn({shape:e,unknownKeys:"strip",catchall:ti.create(),typeName:Se.ZodObject,...Fe(t)});var ma=class extends je{static{o(this,"ZodUnion")}_parse(t){let{ctx:n}=this._processInputParams(t),i=this._def.options;function r(s){for(let c of s)if(c.result.status==="valid")return c.result;for(let c of s)if(c.result.status==="dirty")return n.common.issues.push(...c.ctx.common.issues),c.result;let a=s.map(c=>new zn(c.ctx.common.issues));return X(n,{code:G.invalid_union,unionErrors:a}),ve}if(o(r,"handleResults"),n.common.async)return Promise.all(i.map(async s=>{let a={...n,common:{...n.common,issues:[]},parent:null};return{result:await s._parseAsync({data:n.data,path:n.path,parent:a}),ctx:a}})).then(r);{let s,a=[];for(let u of i){let l={...n,common:{...n.common,issues:[]},parent:null},p=u._parseSync({data:n.data,path:n.path,parent:l});if(p.status==="valid")return p;p.status==="dirty"&&!s&&(s={result:p,ctx:l}),l.common.issues.length&&a.push(l.common.issues)}if(s)return n.common.issues.push(...s.ctx.common.issues),s.result;let c=a.map(u=>new zn(u));return X(n,{code:G.invalid_union,unionErrors:c}),ve}}get options(){return this._def.options}};ma.create=(e,t)=>new ma({options:e,typeName:Se.ZodUnion,...Fe(t)});var is=o(e=>e instanceof Ea?is(e.schema):e instanceof Tr?is(e.innerType()):e instanceof Ia?[e.value]:e instanceof va?e.options:e instanceof ba?Je.objectValues(e.enum):e instanceof wa?is(e._def.innerType):e instanceof ga?[void 0]:e instanceof ha?[null]:e instanceof xr?[void 0,...is(e.unwrap())]:e instanceof Si?[null,...is(e.unwrap())]:e instanceof Hd||e instanceof Sa?is(e.unwrap()):e instanceof Ca?is(e._def.innerType):[],"getDiscriminator"),Oh=class e extends je{static{o(this,"ZodDiscriminatedUnion")}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==te.object)return X(n,{code:G.invalid_type,expected:te.object,received:n.parsedType}),ve;let i=this.discriminator,r=n.data[i],s=this.optionsMap.get(r);return s?n.common.async?s._parseAsync({data:n.data,path:n.path,parent:n}):s._parseSync({data:n.data,path:n.path,parent:n}):(X(n,{code:G.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[i]}),ve)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,i){let r=new Map;for(let s of n){let a=is(s.shape[t]);if(!a.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let c of a){if(r.has(c))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(c)}`);r.set(c,s)}}return new e({typeName:Se.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:r,...Fe(i)})}};function dC(e,t){let n=wi(e),i=wi(t);if(e===t)return{valid:!0,data:e};if(n===te.object&&i===te.object){let r=Je.objectKeys(t),s=Je.objectKeys(e).filter(c=>r.indexOf(c)!==-1),a={...e,...t};Object.prototype.hasOwnProperty.call(a,"__proto__")&&delete a.__proto__;for(let c of s){if(c==="__proto__")continue;let u=dC(e[c],t[c]);if(!u.valid)return{valid:!1};a[c]=u.data}return{valid:!0,data:a}}else if(n===te.array&&i===te.array){if(e.length!==t.length)return{valid:!1};let r=[];for(let s=0;s<e.length;s++){let a=e[s],c=t[s],u=dC(a,c);if(!u.valid)return{valid:!1};r.push(u.data)}return{valid:!0,data:r}}else return n===te.date&&i===te.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}o(dC,"mergeValues");var ya=class extends je{static{o(this,"ZodIntersection")}_parse(t){let{status:n,ctx:i}=this._processInputParams(t),r=o((s,a)=>{if(Fh(s)||Fh(a))return ve;let c=dC(s.value,a.value);return c.valid?((Uh(s)||Uh(a))&&n.dirty(),{status:n.value,value:c.data}):(X(i,{code:G.invalid_intersection_types}),ve)},"handleParsed");return i.common.async?Promise.all([this._def.left._parseAsync({data:i.data,path:i.path,parent:i}),this._def.right._parseAsync({data:i.data,path:i.path,parent:i})]).then(([s,a])=>r(s,a)):r(this._def.left._parseSync({data:i.data,path:i.path,parent:i}),this._def.right._parseSync({data:i.data,path:i.path,parent:i}))}};ya.create=(e,t,n)=>new ya({left:e,right:t,typeName:Se.ZodIntersection,...Fe(n)});var Ci=class e extends je{static{o(this,"ZodTuple")}_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==te.array)return X(i,{code:G.invalid_type,expected:te.array,received:i.parsedType}),ve;if(i.data.length<this._def.items.length)return X(i,{code:G.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),ve;!this._def.rest&&i.data.length>this._def.items.length&&(X(i,{code:G.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());let s=[...i.data].map((a,c)=>{let u=this._def.items[c]||this._def.rest;return u?u._parse(new $r(i,a,i.path,c)):null}).filter(a=>!!a);return i.common.async?Promise.all(s).then(a=>on.mergeArray(n,a)):on.mergeArray(n,s)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};Ci.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Ci({items:e,typeName:Se.ZodTuple,rest:null,...Fe(t)})};var Mh=class e extends je{static{o(this,"ZodRecord")}get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==te.object)return X(i,{code:G.invalid_type,expected:te.object,received:i.parsedType}),ve;let r=[],s=this._def.keyType,a=this._def.valueType;for(let c in i.data)r.push({key:s._parse(new $r(i,c,i.path,c)),value:a._parse(new $r(i,i.data[c],i.path,c)),alwaysSet:c in i.data});return i.common.async?on.mergeObjectAsync(n,r):on.mergeObjectSync(n,r)}get element(){return this._def.valueType}static create(t,n,i){return n instanceof je?new e({keyType:t,valueType:n,typeName:Se.ZodRecord,...Fe(i)}):new e({keyType:Ys.create(),valueType:t,typeName:Se.ZodRecord,...Fe(n)})}},gu=class extends je{static{o(this,"ZodMap")}get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==te.map)return X(i,{code:G.invalid_type,expected:te.map,received:i.parsedType}),ve;let r=this._def.keyType,s=this._def.valueType,a=[...i.data.entries()].map(([c,u],l)=>({key:r._parse(new $r(i,c,i.path,[l,"key"])),value:s._parse(new $r(i,u,i.path,[l,"value"]))}));if(i.common.async){let c=new Map;return Promise.resolve().then(async()=>{for(let u of a){let l=await u.key,p=await u.value;if(l.status==="aborted"||p.status==="aborted")return ve;(l.status==="dirty"||p.status==="dirty")&&n.dirty(),c.set(l.value,p.value)}return{status:n.value,value:c}})}else{let c=new Map;for(let u of a){let l=u.key,p=u.value;if(l.status==="aborted"||p.status==="aborted")return ve;(l.status==="dirty"||p.status==="dirty")&&n.dirty(),c.set(l.value,p.value)}return{status:n.value,value:c}}}};gu.create=(e,t,n)=>new gu({valueType:t,keyType:e,typeName:Se.ZodMap,...Fe(n)});var hu=class e extends je{static{o(this,"ZodSet")}_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.parsedType!==te.set)return X(i,{code:G.invalid_type,expected:te.set,received:i.parsedType}),ve;let r=this._def;r.minSize!==null&&i.data.size<r.minSize.value&&(X(i,{code:G.too_small,minimum:r.minSize.value,type:"set",inclusive:!0,exact:!1,message:r.minSize.message}),n.dirty()),r.maxSize!==null&&i.data.size>r.maxSize.value&&(X(i,{code:G.too_big,maximum:r.maxSize.value,type:"set",inclusive:!0,exact:!1,message:r.maxSize.message}),n.dirty());let s=this._def.valueType;function a(u){let l=new Set;for(let p of u){if(p.status==="aborted")return ve;p.status==="dirty"&&n.dirty(),l.add(p.value)}return{status:n.value,value:l}}o(a,"finalizeSet");let c=[...i.data.values()].map((u,l)=>s._parse(new $r(i,u,i.path,l)));return i.common.async?Promise.all(c).then(u=>a(u)):a(c)}min(t,n){return new e({...this._def,minSize:{value:t,message:de.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:de.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};hu.create=(e,t)=>new hu({valueType:e,minSize:null,maxSize:null,typeName:Se.ZodSet,...Fe(t)});var Lh=class e extends je{static{o(this,"ZodFunction")}constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==te.function)return X(n,{code:G.invalid_type,expected:te.function,received:n.parsedType}),ve;function i(c,u){return Jd({data:c,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,lu(),rs].filter(l=>!!l),issueData:{code:G.invalid_arguments,argumentsError:u}})}o(i,"makeArgsIssue");function r(c,u){return Jd({data:c,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,lu(),rs].filter(l=>!!l),issueData:{code:G.invalid_return_type,returnTypeError:u}})}o(r,"makeReturnsIssue");let s={errorMap:n.common.contextualErrorMap},a=n.data;if(this._def.returns instanceof Zs){let c=this;return En(async function(...u){let l=new zn([]),p=await c._def.args.parseAsync(u,s).catch(h=>{throw l.addIssue(i(u,h)),l}),f=await Reflect.apply(a,this,p);return await c._def.returns._def.type.parseAsync(f,s).catch(h=>{throw l.addIssue(r(f,h)),l})})}else{let c=this;return En(function(...u){let l=c._def.args.safeParse(u,s);if(!l.success)throw new zn([i(u,l.error)]);let p=Reflect.apply(a,this,l.data),f=c._def.returns.safeParse(p,s);if(!f.success)throw new zn([r(p,f.error)]);return f.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:Ci.create(t).rest(ss.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,i){return new e({args:t||Ci.create([]).rest(ss.create()),returns:n||ss.create(),typeName:Se.ZodFunction,...Fe(i)})}},Ea=class extends je{static{o(this,"ZodLazy")}get schema(){return this._def.getter()}_parse(t){let{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}};Ea.create=(e,t)=>new Ea({getter:e,typeName:Se.ZodLazy,...Fe(t)});var Ia=class extends je{static{o(this,"ZodLiteral")}_parse(t){if(t.data!==this._def.value){let n=this._getOrReturnCtx(t);return X(n,{received:n.data,code:G.invalid_literal,expected:this._def.value}),ve}return{status:"valid",value:t.data}}get value(){return this._def.value}};Ia.create=(e,t)=>new Ia({value:e,typeName:Se.ZodLiteral,...Fe(t)});function Ej(e,t){return new va({values:e,typeName:Se.ZodEnum,...Fe(t)})}o(Ej,"createZodEnum");var va=class e extends je{static{o(this,"ZodEnum")}_parse(t){if(typeof t.data!="string"){let n=this._getOrReturnCtx(t),i=this._def.values;return X(n,{expected:Je.joinValues(i),received:n.parsedType,code:G.invalid_type}),ve}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let n=this._getOrReturnCtx(t),i=this._def.values;return X(n,{received:n.data,code:G.invalid_enum_value,options:i}),ve}return En(t.data)}get options(){return this._def.values}get enum(){let t={};for(let n of this._def.values)t[n]=n;return t}get Values(){let t={};for(let n of this._def.values)t[n]=n;return t}get Enum(){let t={};for(let n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(i=>!t.includes(i)),{...this._def,...n})}};va.create=Ej;var ba=class extends je{static{o(this,"ZodNativeEnum")}_parse(t){let n=Je.getValidEnumValues(this._def.values),i=this._getOrReturnCtx(t);if(i.parsedType!==te.string&&i.parsedType!==te.number){let r=Je.objectValues(n);return X(i,{expected:Je.joinValues(r),received:i.parsedType,code:G.invalid_type}),ve}if(this._cache||(this._cache=new Set(Je.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let r=Je.objectValues(n);return X(i,{received:i.data,code:G.invalid_enum_value,options:r}),ve}return En(t.data)}get enum(){return this._def.values}};ba.create=(e,t)=>new ba({values:e,typeName:Se.ZodNativeEnum,...Fe(t)});var Zs=class extends je{static{o(this,"ZodPromise")}unwrap(){return this._def.type}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==te.promise&&n.common.async===!1)return X(n,{code:G.invalid_type,expected:te.promise,received:n.parsedType}),ve;let i=n.parsedType===te.promise?n.data:Promise.resolve(n.data);return En(i.then(r=>this._def.type.parseAsync(r,{path:n.path,errorMap:n.common.contextualErrorMap})))}};Zs.create=(e,t)=>new Zs({type:e,typeName:Se.ZodPromise,...Fe(t)});var Tr=class extends je{static{o(this,"ZodEffects")}innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===Se.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:n,ctx:i}=this._processInputParams(t),r=this._def.effect||null,s={addIssue:o(a=>{X(i,a),a.fatal?n.abort():n.dirty()},"addIssue"),get path(){return i.path}};if(s.addIssue=s.addIssue.bind(s),r.type==="preprocess"){let a=r.transform(i.data,s);if(i.common.async)return Promise.resolve(a).then(async c=>{if(n.value==="aborted")return ve;let u=await this._def.schema._parseAsync({data:c,path:i.path,parent:i});return u.status==="aborted"?ve:u.status==="dirty"?la(u.value):n.value==="dirty"?la(u.value):u});{if(n.value==="aborted")return ve;let c=this._def.schema._parseSync({data:a,path:i.path,parent:i});return c.status==="aborted"?ve:c.status==="dirty"?la(c.value):n.value==="dirty"?la(c.value):c}}if(r.type==="refinement"){let a=o(c=>{let u=r.refinement(c,s);if(i.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return c},"executeRefinement");if(i.common.async===!1){let c=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});return c.status==="aborted"?ve:(c.status==="dirty"&&n.dirty(),a(c.value),{status:n.value,value:c.value})}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(c=>c.status==="aborted"?ve:(c.status==="dirty"&&n.dirty(),a(c.value).then(()=>({status:n.value,value:c.value}))))}if(r.type==="transform")if(i.common.async===!1){let a=this._def.schema._parseSync({data:i.data,path:i.path,parent:i});if(!Hs(a))return ve;let c=r.transform(a.value,s);if(c instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:c}}else return this._def.schema._parseAsync({data:i.data,path:i.path,parent:i}).then(a=>Hs(a)?Promise.resolve(r.transform(a.value,s)).then(c=>({status:n.value,value:c})):ve);Je.assertNever(r)}};Tr.create=(e,t,n)=>new Tr({schema:e,typeName:Se.ZodEffects,effect:t,...Fe(n)});Tr.createWithPreprocess=(e,t,n)=>new Tr({schema:t,effect:{type:"preprocess",transform:e},typeName:Se.ZodEffects,...Fe(n)});var xr=class extends je{static{o(this,"ZodOptional")}_parse(t){return this._getType(t)===te.undefined?En(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};xr.create=(e,t)=>new xr({innerType:e,typeName:Se.ZodOptional,...Fe(t)});var Si=class extends je{static{o(this,"ZodNullable")}_parse(t){return this._getType(t)===te.null?En(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Si.create=(e,t)=>new Si({innerType:e,typeName:Se.ZodNullable,...Fe(t)});var wa=class extends je{static{o(this,"ZodDefault")}_parse(t){let{ctx:n}=this._processInputParams(t),i=n.data;return n.parsedType===te.undefined&&(i=this._def.defaultValue()),this._def.innerType._parse({data:i,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};wa.create=(e,t)=>new wa({innerType:e,typeName:Se.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...Fe(t)});var Ca=class extends je{static{o(this,"ZodCatch")}_parse(t){let{ctx:n}=this._processInputParams(t),i={...n,common:{...n.common,issues:[]}},r=this._def.innerType._parse({data:i.data,path:i.path,parent:{...i}});return du(r)?r.then(s=>({status:"valid",value:s.status==="valid"?s.value:this._def.catchValue({get error(){return new zn(i.common.issues)},input:i.data})})):{status:"valid",value:r.status==="valid"?r.value:this._def.catchValue({get error(){return new zn(i.common.issues)},input:i.data})}}removeCatch(){return this._def.innerType}};Ca.create=(e,t)=>new Ca({innerType:e,typeName:Se.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...Fe(t)});var mu=class extends je{static{o(this,"ZodNaN")}_parse(t){if(this._getType(t)!==te.nan){let i=this._getOrReturnCtx(t);return X(i,{code:G.invalid_type,expected:te.nan,received:i.parsedType}),ve}return{status:"valid",value:t.data}}};mu.create=e=>new mu({typeName:Se.ZodNaN,...Fe(e)});var Iie=Symbol("zod_brand"),Hd=class extends je{static{o(this,"ZodBranded")}_parse(t){let{ctx:n}=this._processInputParams(t),i=n.data;return this._def.type._parse({data:i,path:n.path,parent:n})}unwrap(){return this._def.type}},Yd=class e extends je{static{o(this,"ZodPipeline")}_parse(t){let{status:n,ctx:i}=this._processInputParams(t);if(i.common.async)return o(async()=>{let s=await this._def.in._parseAsync({data:i.data,path:i.path,parent:i});return s.status==="aborted"?ve:s.status==="dirty"?(n.dirty(),la(s.value)):this._def.out._parseAsync({data:s.value,path:i.path,parent:i})},"handleAsync")();{let r=this._def.in._parseSync({data:i.data,path:i.path,parent:i});return r.status==="aborted"?ve:r.status==="dirty"?(n.dirty(),{status:"dirty",value:r.value}):this._def.out._parseSync({data:r.value,path:i.path,parent:i})}}static create(t,n){return new e({in:t,out:n,typeName:Se.ZodPipeline})}},Sa=class extends je{static{o(this,"ZodReadonly")}_parse(t){let n=this._def.innerType._parse(t),i=o(r=>(Hs(r)&&(r.value=Object.freeze(r.value)),r),"freeze");return du(n)?n.then(r=>i(r)):i(n)}unwrap(){return this._def.innerType}};Sa.create=(e,t)=>new Sa({innerType:e,typeName:Se.ZodReadonly,...Fe(t)});function gj(e,t){let n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}o(gj,"cleanParams");function Ij(e,t={},n){return e?Ws.create().superRefine((i,r)=>{let s=e(i);if(s instanceof Promise)return s.then(a=>{if(!a){let c=gj(t,i),u=c.fatal??n??!0;r.addIssue({code:"custom",...c,fatal:u})}});if(!s){let a=gj(t,i),c=a.fatal??n??!0;r.addIssue({code:"custom",...a,fatal:c})}}):Ws.create()}o(Ij,"custom");var vie={object:qn.lazycreate},Se;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(Se||(Se={}));var bie=o((e,t={message:`Input not instance of ${e.name}`})=>Ij(n=>n instanceof e,t),"instanceOfType"),vj=Ys.create,bj=da.create,wie=mu.create,Cie=pa.create,wj=fa.create,Sie=Aa.create,kie=fu.create,Bie=ga.create,Rie=ha.create,Qie=Ws.create,xie=ss.create,$ie=ti.create,Tie=Au.create,Die=os.create,_ie=qn.create,Nie=qn.strictCreate,Pie=ma.create,Fie=Oh.create,Uie=ya.create,Oie=Ci.create,Mie=Mh.create,Lie=gu.create,jie=hu.create,Gie=Lh.create,Vie=Ea.create,zie=Ia.create,qie=va.create,Jie=ba.create,Hie=Zs.create,Yie=Tr.create,Wie=xr.create,Zie=Si.create,Kie=Tr.createWithPreprocess,Xie=Yd.create,ese=o(()=>vj().optional(),"ostring"),tse=o(()=>bj().optional(),"onumber"),nse=o(()=>wj().optional(),"oboolean"),rse={string:o((e=>Ys.create({...e,coerce:!0})),"string"),number:o((e=>da.create({...e,coerce:!0})),"number"),boolean:o((e=>fa.create({...e,coerce:!0})),"boolean"),bigint:o((e=>pa.create({...e,coerce:!0})),"bigint"),date:o((e=>Aa.create({...e,coerce:!0})),"date")};var ise=ve;var Wd=(r=>(r.ModelProvider="model_provider",r.SutAccess="sut_access",r.Skyramp="skyramp",r.Other="other",r))(Wd||{}),pC=(i=>(i.Ready="ready",i.Blocked="blocked",i.NeedsInputs="needs_inputs",i))(pC||{});var jh=300,$t=d.string().trim().min(1),sse=d.object({action:d.enum(["start","run","wait"]),text:$t,source:d.enum(["file","notes","testbot"]).describe("file: a file in the repository; notes: the Target's notes; testbot: Testbot's own finding"),file:$t.nullable().describe("the file the step came from, relative to the component's repository; null unless source is file")}).strict().refine(e=>e.source==="file"==(e.file!==null),{path:["file"],message:"a file exactly when the step came from one"}),Zd=/^[A-Za-z_][A-Za-z0-9_]*$/,ki=/^(?!GITHUB_)(?!SKYRAMP_RUNNER_)[A-Z][A-Z0-9_]{0,99}$/,yu=(a=>(a.VersionEndpoint="version_endpoint",a.DeployWorkflow="deploy_workflow",a.KubernetesLabels="kubernetes_labels",a.Command="command",a.Api="api",a.NotTracked="not_tracked",a))(yu||{}),Bi="shared",ose=$t.refine(e=>{try{let t=new URL(e);return["http:","https:"].includes(t.protocol)&&!t.username&&!t.password}catch{return!1}},"an http(s) URL with no login in it"),Eu=d.object({address:ose,readyWhen:$t.nullable(),credentials:d.array(d.string().regex(ki)).max(50),revisionSources:d.array(d.object({method:d.nativeEnum(yu),detail:$t.describe("what Testbot reads, such as GET /version or the deploy workflow's name; for not_tracked, why nothing shows it"),components:d.array($t).min(1).describe("the components it tells the revision of, by name")}).strict()).max(50)}).strict(),fC={steps:d.array(sse).max(20).optional().describe("how it starts, in order"),kind:d.enum(["web_app","service","database","external_service"]).optional(),from:d.object({file:$t,service:$t.nullable()}).strict().optional(),credentials:d.array(d.string().max(100).regex(Zd)).max(50).optional().describe("the Target's credentials this component's recipe uses: a sign-in (a test user, password or token) or an API key, which the workflow supplies from a GitHub Actions secret as the environment variable of the credential's name; give each name exactly as the recipe reads it. Names only, never a value, and not a secret the recipe generates itself")},AC=d.object({name:$t,repository:$t.describe("owner/repo of the Target repository the component is built or started from, such as the one whose compose file starts its database"),healthy:d.boolean(),...fC,deployed:$t.nullable().optional().describe('only with "environment": the revision the component runs, as you read it from its revision source, or null when you could not tell')}),ase=d.object({name:d.string().regex(ki).describe("the credential's environment variable name, as the recipe reads it and the credentials event names it"),purpose:d.enum(["sut_access","other"]).describe("sut_access: it signs in to or calls the SUT or a service it needs; other: anything else"),required:d.boolean().describe("false only when the SUT starts without it, with less working"),how:$t.max(jh).describe('one short sentence: what the value is and where a person gets it, such as "A Mattermost Enterprise licence key, from the customer portal"; never a value')}),cse=d.object({component:$t,problem:$t,evidence:$t.describe("the exact command and output that shows it"),fix:$t.describe("what the user must provide, and where")}),use=d.object({framework:$t,file:$t.describe("the test file run, relative to its repository root"),result:d.enum(["pass","fail","error"])}),lse=d.object({input:$t.describe("the part of the user's SUT input, as given"),reason:$t}),wke=d.object({schemaVersion:d.literal(1),status:d.nativeEnum(pC).describe("ready only if every component came up healthy and the recipe is written; needs_inputs when the recipe is written but a component cannot start without a credential this run has no value for"),components:d.array(AC),suites:d.array(use).default([]).describe("one run per test suite the Target's repositories have; empty when they have none"),inputsUsed:d.array($t).default([]).describe("the parts of the user's SUT input the recipe used as given"),inputsUsedHow:d.array(d.object({input:$t.describe("exactly as written in inputsUsed; an entry that is not there is left out"),how:$t.describe("what the recipe did with it")})).optional(),inputsNotUsed:d.array(lse).default([]).describe("the parts it did not use, and why. A part that is wrong goes here, with what was wrong, even when the recipe does something like it instead: one the repositories or the app show is wrong, such as a file, command, port, route or setting that is not there. Something outside them that does not answer is not one: that is a blocker"),blockers:d.array(cse).describe("required (non-empty) when status is blocked"),inputs:d.array(ase).max(50).optional().describe("required (non-empty) when status is needs_inputs, else left out: each credential the candidate recipe needs a value for"),environment:Eu.optional().describe("only when the whole SUT is an existing deployment you tested where it runs, building and starting nothing: its address, what says it is ready, the credentials that reach it, and how to read what each component runs. Leave it out when any part was built or started on the runner, or reaching it needed something there (a tunnel, port-forward, proxy or client certificate)")});var gC=64*1024,hC=512*1024,Cj=/[\u0000-\u0008\u000b\u000e-\u001f\u007f]|[\ud800-\udbff](?![\udc00-\udfff])|(?<![\ud800-\udbff])[\udc00-\udfff]/;var Ri=(r=>(r.Clean="clean",r.RecipeDrift="recipe-drift",r.ChangeBrokeBringup="change-broke-bringup",r.BringupFailed="bringup-failed",r))(Ri||{}),ni=d.string().trim().min(1),dse=d.object({url:d.string().optional().describe("the URL probed, if the check is an HTTP request"),command:d.string().optional().describe("the command run, if the check is a script \u2014 preferred when auth is needed"),headers:d.record(d.string()).optional(),status:d.union([d.number(),d.string()]).optional().describe("expected HTTP status for a url check (default 200)"),output:ni.describe("what the check returned, VERBATIM \u2014 the bytes, nothing appended; this gate RE-RUNS the check")}),mC=d.array(d.object({component:ni.describe("a shared component listed above"),url:ni.describe("the URL on the component's own origin (scheme, host and port) that answers with its deployed commit"),output:ni.describe("what the URL returned, VERBATIM; this gate FETCHES each url")})).describe("only when shared components are listed above: one check per component whose deployed commit you found"),pse=d.object({name:ni.describe("the credential's environment variable name, as listed above; never its value"),component:ni.describe("the component that refused it"),status:d.number().int().min(400).max(599).optional().describe("the HTTP status it got, such as 401 or 403; leave it out when the refusal was not an HTTP answer"),evidence:ni.describe("the request or command you tested it with and what came back, never the value")}),Sj=d.object({schemaVersion:d.literal(1),baseUrls:d.record(d.string()).optional().describe("service \u2192 base URL of the running app; omit on a failed bring-up, never invent one"),health:dse.optional(),teardown:ni.describe("command that tears the SUT down"),dependencies:d.record(d.boolean()).optional().describe("EVERY backing service: true = really deployed, false = mocked; REQUIRED when the app came up"),outcome:d.nativeEnum(Ri).describe("clean | recipe-drift (you corrected the recipe) | change-broke-bringup (the PR broke it) | bringup-failed (environment, not the PR)"),recipeFixes:d.array(d.string()).optional().describe("required when outcome is recipe-drift: what was corrected"),bringupError:d.object({command:ni,output:ni}).optional().describe("required when bring-up failed: the exact failing command and what it printed"),suspectFiles:d.array(d.string()).optional().describe("required for change-broke-bringup: files THIS PR changed that the failure points at, relative to your working directory (a file in another checkout of the run: its absolute path)"),seeded:d.boolean(),startedAt:ni.describe("ISO timestamp"),revisions:mC.optional(),missingSecrets:d.array(d.string().regex(Zd)).optional().describe("bringup-failed only: each secret the app cannot start without that this run has no value for, by its environment variable name; never a value"),credentialsRefused:d.array(pse).optional().describe("only for credentials the prompt lists to test: each that was refused when you tested it, such as with a 401 or 403; leave it out when none was, or when none is listed"),recipeRecorded:d.boolean().optional().describe("[derived] whether the checkout had a recorded recipe before bring-up")});var Xj=require("node:crypto");var ka=(s=>(s.NotFound="not_found",s.NoAccess="no_access",s.Unavailable="unavailable",s.AccessLost="access_lost",s.CannotOpen="cannot_open",s))(ka||{});var yC=o(e=>`${e.source}:${e.site??""}:${e.key}`,"requirementItemId");var Kd=/^pasted-[0-9a-f]{16}$/,Ks=/^file-[0-9a-f]{16}$/,Xd=(r=>(r.Pdf="application/pdf",r.Csv="text/csv",r.Docx="application/vnd.openxmlformats-officedocument.wordprocessingml.document",r.Xlsx="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet",r))(Xd||{}),ep=o(e=>e.trim().toUpperCase(),"normalKey"),kj=o((e,t)=>{let n=e.trim();return Kd.test(n.toLowerCase())?"Pasted text":Ks.test(n.toLowerCase())?t?.get(ep(n))??"Uploaded document":/^\d+$/.test(n)?`Confluence page ${n}`:n.toUpperCase()},"itemName");var Gh=(i=>(i.New="new",i.Updated="updated",i.Existing="existing",i))(Gh||{}),Qi=(i=>(i.Sufficient="sufficient",i.Insufficient="insufficient",i.NoChange="no_change",i))(Qi||{}),Iu=(v=>(v.RelatedChangeConflict="related_change_conflict",v.ReferenceOutsideTarget="reference_outside_target",v.SourceAccessLost="source_access_lost",v.ConfigurationIncomplete="configuration_incomplete",v.CredentialUnavailable="credential_unavailable",v.WorkflowBindingUnverified="workflow_binding_unverified",v.WorkflowRefUnprotected="workflow_ref_unprotected",v.BedrockWorkflowRequired="bedrock_workflow_required",v.DeploymentReview="deployment_review",v.SutRevisionMismatch="sut_revision_mismatch",v.IsolationUnavailable="isolation_unavailable",v.EvidenceInsufficient="evidence_insufficient",v.ConfigurationUnresolved="configuration_unresolved",v.ModelProviderDenied="model_provider_denied",v.ModelProviderUnavailable="model_provider_unavailable",v.RunnerProviderNotReady="runner_provider_not_ready",v.MergeConflict="merge_conflict",v))(Iu||{}),Xs=(s=>(s.CiCheck="ci_check",s.TestReport="test_report",s.StaticAnalysis="static_analysis",s.CodeReview="code_review",s.Other="other",s))(Xs||{}),tp=(i=>(i.Application="application",i.Environment="environment",i.TestDefect="test_defect",i))(tp||{}),np=(c=>(c.AuthToken="auth_token",c.Secret="secret",c.DataConnection="data_connection",c.AppNotStarted="app_not_started",c.Login="login",c.ExternalDependency="external_dependency",c.RecordingReplay="recording_replay",c))(np||{});var Vh=(n=>(n.Probe="probe",n.Agent="agent",n))(Vh||{}),rp=(i=>(i.Seed="seed",i.RuntimeMock="runtime_mock",i.EnvOverride="env_override",i))(rp||{}),zh=(i=>(i.TestCode="test_code",i.SkyrampMocker="skyramp_mocker",i.RecipeOverride="recipe_override",i))(zh||{});var ip=(n=>(n.Skyramp="skyramp",n.Llm="llm",n))(ip||{}),xi=d.string().trim().min(1),fse=d.object({case:xi.describe("recommend id this assertion enforces"),evidence:xi.describe("the exact assertion line from the file that checks that case's observable")});var Bj=d.object({route:d.literal("persistence"),url:d.string().url()}).strict(),sp=d.object({kind:d.nativeEnum(rp).describe("seed: data the test creates in the app; runtime_mock: a mock on a Skyramp worker, which other tests reach too; env_override: an env value the app runs with. A stub inside the test's own process, such as a browser page's route, is none of these"),target:xi.describe("the dependency, endpoint or data it affects"),mechanism:d.nativeEnum(zh).describe("test_code: the test applies and undoes it; skyramp_mocker: a mock the test applies on a Skyramp worker; recipe_override: the mocker cannot reach the dependency (its URL is fixed in the build)"),detail:xi.describe("what it sets up"),worker:xi.optional().describe("skyramp_mocker: host:port of the worker the test applies the mock to (default localhost:35142)"),safety:Bj.optional().describe("shared seed that keeps its data only because the environment permits it: the persistence route and the exact endpoint; Testbot checks the current permission just before it runs the test"),cleanup:xi.optional().describe("seed: when its data can be removed, a command that removes it if the test does not; otherwise declare leftBehind instead. Run as written and without a shell: give real values, not a placeholder such as <id>, single-quote an argument that holds shell syntax, or put the logic in a script in the repository and run that"),leftBehind:xi.optional().describe("seed: the records the test creates and cannot remove from the app, and how to find them")}).refine(e=>!e.leftBehind||e.kind==="seed",{message:"leftBehind is for a seed only: a runtime mock or an env override creates no records",path:["leftBehind"]}),Ase=d.object({file:xi.describe("staged path under .skyramp/staged/"),source:d.nativeEnum(ip),language:xi,covers:d.array(d.string()).min(1,"must be a non-empty array of recommend ids").describe("recommend ids this test covers"),assertions:d.array(fse).min(1,"must be a non-empty array").describe("one per case covered, citing the real line"),context:d.array(sp).optional().describe("what the test sets up against the running app, in order: data it seeds, Skyramp mocks it applies, env overrides; omit when none")}),EC=d.object({schemaVersion:d.literal(1),tests:d.array(Ase),deferredUi:d.array(d.string()).describe("recommend ui ids left for the UI stage (generate) \u2014 [] for generate-ui"),summary:xi.describe("one paragraph")});var as=(a=>(a.Place="place",a.Update="update",a.Regenerate="regenerate",a.Delete="delete",a.Verify="verify",a.None="none",a))(as||{}),Jn=(i=>(i.Pass="pass",i.Fail="fail",i.Skip="skip",i))(Jn||{}),Qn=d.string().trim().min(1),IC=(r=>(r.Setup="setup",r.Expectation="expectation",r.Locator="locator",r.Other="other",r))(IC||{}),qh=d.object({kind:d.nativeEnum(IC),reason:Qn.describe("what in the test is wrong, with the evidence: the setup error it raised, or the requirement or changed line its expectation contradicts")}),op=d.array(d.string().url().max(2048).regex(/^https?:\/\//i)).max(50),Rj=d.object({case:Qn.describe("a covers id \u2014 the recommend case this test realizes"),status:d.nativeEnum(Jn),runtimeTargets:op.optional().describe("HTTP(S) URLs this case actually exercised in its current run; omit for in-process or mocked checks, never infer from test type"),environmentRestriction:Qn.optional().describe("for a skipped case: what this run lacks to execute it; the test is still written"),fromJourney:d.boolean().optional(),testProblem:qh.optional().describe("[derived] write's reading of a failing case: the test, not the app, is at fault"),defect:d.boolean().optional().describe("[derived] write's reading of a failing case: true when the app is wrong and the test is right"),failure:d.string().optional().describe("[derived] for a failing case: the runner's failure for it, as printed")}).refine(e=>!e.environmentRestriction||e.status==="skip"&&!e.runtimeTargets?.length,{message:"an environment-restricted case must be skipped and have no runtimeTargets"}),Qj=d.object({started:d.boolean().optional().describe("with exit null: true if the test command started (it was interrupted or timed out), false if it never started. Left out, Testbot counts it as possibly started, with its cleanup unknown"),exit:d.number({invalid_type_error:"must be a number or null"}).nullable().describe("process exit of the re-run; null when no SUT was available"),details:d.string().optional().describe("what failed, or why a file was not run \u2014 required on any non-zero exit"),tests:d.array(Rj).optional().describe("ONE ENTRY PER CASE the file covers, its own result; must agree with exit (0 \u2192 no fail; non-zero \u2192 at least one, or the non-test reason in details). The report reads the file by these where they are given")}),xj=d.object({context:d.array(sp).optional().describe("[derived] setup declarations retained for every executed test, including maintained tests"),from:d.string().optional().describe("staged path \u2014 required for placements"),file:Qn.describe("final path relative to its repository, inside that checkout, with a source-file extension"),repository:Qn.optional().describe("owner/repo the file lives in, when the run has several checkouts; omit for the working checkout"),action:d.nativeEnum(as),covers:d.array(d.string()).optional().describe("recommend ids a placed test covers"),repro:d.boolean().optional().describe("this test is MEANT to fail \u2014 it reproduces a reported bug"),finding:d.boolean().optional().describe("a non-repro test that failed on a REAL product bug"),placementBroken:d.boolean().optional().describe('placement/harness problem one repair could not fix \u2014 every reran.tests entry is then "skip"'),keptReason:Qn.optional().describe("why a planned delete/regenerate was declined and the file kept"),isolatedRun:Qn.optional().describe('only for a test marked "runs alone": the command, from its checkout root and without a shell, that runs only this file and writes its JUnit XML into $SKYRAMP_RESULTS_DIR (named by its path: no shell expands it) \u2014 the harness runs it, so leave reran.exit null'),reran:Qj,assertionCount:d.number().int().nonnegative().optional().describe("[derived] assertions reachable from the file, counted at write time"),addedOnly:d.boolean().optional().describe("[derived] an existing test file the run only added to: every line it had is still there"),added:d.array(Qn).optional().describe("[derived] the cases of the test functions the run added to an existing file: functions it did not have"),staleOnBase:d.boolean().optional().describe("[derived] an existing test that fails the same way on the base branch: its failure is the test's own")}).refine(e=>e.action!=="place"||typeof e.from=="string"&&e.from.trim().length>0,{message:'is a place but has no "from" staged path',path:[]}),$j=(n=>(n.Junit="junit",n.Converter="converter",n))($j||{}),gse=Qn.optional().describe("the items[].file this test is in \u2014 needed only when two of this suite's files cover the same case id"),hse=d.object({results:Qn.describe("the JUnit XML file this run wrote, a plain file name inside $SKYRAMP_RESULTS_DIR (e.g. backend.xml)"),source:d.nativeEnum($j),run:Qn.describe("the command you ran that wrote it, exactly as you ran it (with any converter)"),files:d.array(Qn).min(1).describe("the items[].file paths this run covered"),cases:d.array(d.object({test:Qn.describe("the test's name as the runner reports it, qualified by its class or file (e.g. tests/test_a.py::test_x) when the bare name repeats"),case:Qn.describe("the covers id it realizes"),file:gse})).describe("map each reported test name to the case it covers")}),mse=d.object({suites:d.array(hse).min(1)}),vC=d.object({schemaVersion:d.literal(1),items:d.array(xj),runnerResults:mse.optional().describe("the JUnit XML your test runs wrote into $SKYRAMP_RESULTS_DIR, so the harness reads each test's result from the runner \u2014 omit only when no SUT is available"),ignored:d.array(d.string()).describe("existing tests assessed and deliberately left untouched"),summary:Qn.describe("one paragraph")});uu();aC();function Tj(e){return e.toUpperCase().replace(/[^A-Z0-9]+/g,"_").replace(/^_+|_+$/g,"")}o(Tj,"credentialKeyFromRole");var Dj=re(require("path"));var an=d.string().trim().min(1),Jh=an,bC=(n=>(n.TestbotManaged="testbot_managed",n.CustomerDeployed="customer_deployed",n))(bC||{}),wC=[".skyramp/sut/setup.sh",".skyramp/sut/teardown.sh"],_j=d.object({schemaVersion:d.literal(1),type:d.nativeEnum(bC).optional(),repository:Jh.optional().describe("namespace/name of the source whose checkout the recipe was written and proven in (SKYR-5380); a run replays it from there. Never on a customer_deployed plan"),status:d.enum(["ready","blocked"]),environment:Eu.optional(),components:d.array(d.object({name:an,repository:an.describe(`owner/repo, or "${Bi}" for a customer-deployed component no repository builds`),healthy:d.boolean(),url:d.string().min(1).nullable(),...fC,credentials:d.array(d.string().regex(ki)).max(50).optional(),deployed:an.nullable().optional().describe("customer_deployed only: the revision the component runs, as setup read it (WF-SETUP-22's Deployed now), or null when it could not tell")}).strict()),suites:d.array(d.object({framework:an,file:an,result:d.enum(["pass","fail","error"])}).strict()),inputsUsed:d.array(an),inputsUsedHow:d.array(d.object({input:an,how:an}).strict()).optional(),inputsNotUsed:d.array(d.object({input:an,reason:an}).strict()),blockers:d.array(d.object({component:an,problem:an,evidence:an,fix:an}).strict()),replay:d.object({outcome:an,durationSeconds:d.number().nonnegative().nullable()}).strict().nullable(),files:d.array(d.object({path:an,content:d.string()}).strict())}).strict().superRefine((e,t)=>{e.inputsUsedHow?.forEach((r,s)=>{e.inputsUsed.includes(r.input)||t.addIssue({code:d.ZodIssueCode.custom,path:["inputsUsedHow",s,"input"],message:"not one of inputsUsed"})}),e.components.forEach((r,s)=>{r.credentials&&new Set(r.credentials).size!==r.credentials.length&&t.addIssue({code:d.ZodIssueCode.custom,path:["components",s,"credentials"],message:"names a credential twice"})});let n=e.type==="customer_deployed";n!==(e.environment!==void 0)&&t.addIssue({code:d.ZodIssueCode.custom,path:["environment"],message:"an environment exactly when the plan's type is customer_deployed"}),n&&e.repository!==void 0&&t.addIssue({code:d.ZodIssueCode.custom,path:["repository"],message:"a customer_deployed plan names no repository"}),e.environment&&new Set(e.environment.credentials).size!==e.environment.credentials.length&&t.addIssue({code:d.ZodIssueCode.custom,path:["environment","credentials"],message:"names a credential twice"});let i=new Set(e.components.map(r=>r.name));if(e.environment?.revisionSources.forEach((r,s)=>{r.components.forEach((a,c)=>{i.has(a)||t.addIssue({code:d.ZodIssueCode.custom,path:["environment","revisionSources",s,"components",c],message:"not one of components"})})}),e.components.forEach((r,s)=>{r.deployed!==void 0!==n&&t.addIssue({code:d.ZodIssueCode.custom,path:["components",s,"deployed"],message:"what a component runs exactly when the plan is customer_deployed"}),r.repository===Bi&&!n&&t.addIssue({code:d.ZodIssueCode.custom,path:["components",s,"repository"],message:`only a customer_deployed component is ${Bi}`})}),n&&(e.components.forEach((r,s)=>{e.components.findIndex(a=>a.name===r.name)!==s&&t.addIssue({code:d.ZodIssueCode.custom,path:["components",s,"name"],message:"names a component twice"})}),e.replay!==null&&t.addIssue({code:d.ZodIssueCode.custom,path:["replay"],message:"a customer_deployed plan is never replayed"}),e.files.forEach((r,s)=>{wC.includes(r.path)&&t.addIssue({code:d.ZodIssueCode.custom,path:["files",s,"path"],message:"a customer_deployed plan has no script that starts or stops the system"})})),n&&e.status==="ready"){let r=new Set(e.environment?.revisionSources.flatMap(s=>s.components));e.components.forEach((s,a)=>{s.repository!==Bi&&!r.has(s.name)&&t.addIssue({code:d.ZodIssueCode.custom,path:["components",a,"name"],message:"a ready customer_deployed plan reads what every component a repository builds runs"})})}});var Yke=["clean","recipe-drift"];function ap(e){let t=Dj.posix.normalize(e);return t===e&&(t===".skyramp/workspace.yml"||t.startsWith(".skyramp/sut/")&&t.length>13)}o(ap,"isRuntimePlanFile");var cp=d.string().uuid(),up=d.object({environmentId:d.string().uuid(),allowed:d.boolean(),revision:cp,updatedAt:d.string().datetime(),updatedBy:d.string().uuid()}).strict();var lp=(a=>(a.NoEnvironment="no_environment",a.NoRecordedGrant="no_recorded_grant",a.Unavailable="unavailable",a.Changed="changed",a.Denied="denied",a.OutOfScope="out_of_scope",a))(lp||{});function dp(e){switch(e){case"no_environment":return"the run has no selected Test Environment address";case"no_recorded_grant":return"the run's configuration did not record permission to keep test data in this environment";case"unavailable":return"the current permission to keep test data could not be read";case"changed":return"the permission to keep test data changed after the run started";case"denied":return"the environment does not permit test data to stay";case"out_of_scope":return"the request is outside the environment's address"}}o(dp,"persistenceRefusalText");function Hh(e,t,n){let i=up.safeParse(t);return!i.success||!i.data.allowed||!e.environmentId||i.data.environmentId!==e.environmentId||!e.environmentAddress||e.persistentDataPolicy&&e.persistentDataPolicy.revision!==i.data.revision?!1:eo(e.environmentAddress,n)}o(Hh,"persistentDataPolicyApplies");function eo(e,t){try{let n=new URL(t),i=new URL(e);if(i.search||i.hash)return!1;let r=/%(?:2f|5c|2e|25)/i;if(t.includes("\\")||e.includes("\\")||r.test(n.pathname)||r.test(i.pathname))return!1;let s=i.pathname.replace(/\/$/,"");return["https:","http:"].includes(i.protocol)&&n.origin===i.origin&&(n.pathname===s||n.pathname.startsWith(`${s}/`))}catch{return!1}}o(eo,"environmentContainsUrl");var CC="delivery-persistence.json",Nj=d.object({environmentId:d.string().uuid(),environmentAddress:d.string().url(),revision:cp}).strict(),Pj=d.object({refusal:d.nativeEnum(lp)}).strict();var e1=d.unknown().optional(),t1={handshake:"/api/v1/runner/runs/:runId/attempts",report:"/api/v1/runner/attempts/:attemptId/report",end:"/api/v1/runner/attempts/:attemptId/end",configuration:"/api/v1/runner/attempts/:attemptId/configuration",progress:"/api/v1/runner/attempts/:attemptId/progress",sutRecipe:"/api/v1/runner/attempts/:attemptId/sut-recipe",runtimePlan:"/api/v1/runner/attempts/:attemptId/runtime-plan",persistentDataPolicy:"/api/v1/runner/attempts/:attemptId/persistent-data-policy",heartbeat:"/api/v1/runner/attempts/:attemptId/heartbeat",setupEvents:"/api/v1/runner/attempts/:attemptId/setup-events",runEvents:"/api/v1/runner/attempts/:attemptId/run-events",requirements:"/api/v1/runner/attempts/:attemptId/requirements",requirementFile:"/api/v1/runner/attempts/:attemptId/requirements/:key/file",deployedRevisions:"/api/v1/runner/attempts/:attemptId/deployed-revisions"},Ra=(n=>(n.GitHub="github",n.AzureDevOps="azure-devops",n))(Ra||{}),tm=(s=>(s.Trigger="TRIGGER",s.Baseline="BASELINE",s.AuthoritativeRelatedChange="AUTHORITATIVE_RELATED_CHANGE",s.ConfiguredSharedDependency="CONFIGURED_SHARED_DEPENDENCY",s.ManualOverride="MANUAL_OVERRIDE",s))(tm||{}),nm=(a=>(a.PullRequest="pull_request",a.ReadyForReview="ready_for_review",a.Schedule="schedule",a.Manual="manual",a.SutSetup="sut_setup",a.RevisionRead="revision_read",a))(nm||{}),yse=["sut_setup"],Ese=["sut_setup","schedule","revision_read"],Ise=["sut_setup"],RC=(t=>(t.PullRequest="pull_request",t))(RC||{}),QC=(n=>(n.PullRequest="pull_request",n.Branch="branch",n))(QC||{}),Fj=["TRIGGER","AUTHORITATIVE_RELATED_CHANGE","MANUAL_OVERRIDE"];var rm=(r=>(r.None="none",r.Delivered="delivered",r.Partial="partial",r.Failed="failed",r))(rm||{}),Ap=(s=>(s.ReportUploaded="report_uploaded",s.NoReport="no_report",s.Cancelled="cancelled",s.RecipeUploaded="recipe_uploaded",s.RevisionsUploaded="revisions_uploaded",s))(Ap||{}),n1=(n=>(n.Running="running",n.Ended="ended",n))(n1||{}),gp=(g=>(g.TimedOut="timed_out",g.AgentFailed="agent_failed",g.SetupFailed="setup_failed",g.CredentialMissing="credential_missing",g.RunnerLost="runner_lost",g.CheckoutFailed="checkout_failed",g.EnvironmentUnverified="environment_unverified",g.ModelProviderDenied="model_provider_denied",g.ModelProviderUnavailable="model_provider_unavailable",g.RunnerProviderNotReady="runner_provider_not_ready",g.MergeConflict="merge_conflict",g.EnvironmentUnavailable="environment_unavailable",g))(gp||{}),r1=(i=>(i.Onboard="onboard",i.Deploy="deploy",i.Recheck="recheck",i))(r1||{}),xC=(n=>(n.Started="started",n.Finished="finished",n))(xC||{}),i1=(i=>(i.Passed="passed",i.Failed="failed",i.Skipped="skipped",i))(i1||{});var s1=(i=>(i.ChooseCredential="choose_credential",i.FreeText="free_text",i.ChooseSource="choose_source",i))(s1||{});var o1=(r=>(r.Answered="answered",r.Followed="followed",r.NotFollowed="not_followed",r.TooLate="too_late",r))(o1||{}),$C=(i=>(i.Discover="discover",i.Start="start",i.Check="check",i))($C||{}),SC=(r=>(r.ValidationPlan="validation_plan",r.TestEnvironment="test_environment",r.TestConditions="test_conditions",r.Tests="tests",r))(SC||{});var TC=(r=>(r.Found="found",r.Starting="starting",r.Up="up",r.OutOfScope="out_of_scope",r))(TC||{}),Dr=d.string().regex(/^[1-9][0-9]{0,18}$/),_r=d.string().regex(/^(?:[0-9a-f]{40}|[0-9a-f]{64})$/),kC=d.string().regex(/^(?!.*\.\.)(?!\/)(?!.*\/$)[A-Za-z0-9._/-]{1,255}$/),wu=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/;function a1(e,t){return`${e.replace(/\/+$/,"")}/runs/${t}`}o(a1,"skyrampRunPageUrl");var In=d.string().regex(wu),xn=d.string().regex(/^[0-9a-f]{64}$/),Xh=d.object({id:In,revision:Dr}).strict(),im={provider:d.literal("github"),providerAccountId:Dr,providerRepositoryId:Dr},sm={provider:d.literal("azure-devops"),providerAccountId:In,providerRepositoryId:In},hr=d.discriminatedUnion("provider",[d.object(im).strict(),d.object(sm).strict()]),DC=d.discriminatedUnion("provider",[d.object(im).passthrough(),d.object(sm).passthrough()]),Ti=o(e=>`${e.provider}:${e.providerRepositoryId}`,"sourceKey"),Uj={namespace:d.string().min(1),name:d.string().min(1)},c1=d.discriminatedUnion("provider",[d.object({...im,...Uj}).strict(),d.object({...sm,...Uj}).strict()]),Oj=d.object({ref:d.string().min(1),revision:_r}).strict(),vse=d.object({kind:d.nativeEnum(QC),number:Dr.optional(),ref:d.string().min(1),revision:_r,reason:d.nativeEnum(tm)}).strict(),bse=d.object({repository:c1,revision:_r,ref:d.string().nullable(),reason:d.nativeEnum(tm),change:d.object({kind:d.nativeEnum(RC),number:Dr,base:Oj.optional()}).strict().nullable(),compareWith:Oj.optional(),merge:d.array(vse).min(2).optional()}).strict();function wse(e){let t=e.merge;if(!t)return null;if(e.change||e.compareWith)return{path:["merge"],message:"a merged source names no change and no compareWith"};if(e.ref===null)return{path:["ref"],message:"a merged source names its baseline branch"};let n=new Set,i=new Set;for(let[s,a]of t.entries()){if(a.kind==="pull_request"!=(a.number!==void 0))return{path:["merge",s,"number"],message:"a pull request names its number, and a branch none"};if(!Fj.includes(a.reason))return{path:["merge",s,"reason"],message:`${a.reason} does not select a merged revision`};if(a.kind==="branch"&&a.reason!=="MANUAL_OVERRIDE")return{path:["merge",s,"reason"],message:"only a person chooses a branch to merge"};if(a.ref===e.ref)return{path:["merge",s,"ref"],message:"the baseline branch is what the source merges onto"};if(a.number!==void 0&&n.has(a.number)||i.has(a.ref))return{path:["merge",s],message:"names a revision the source already merges"};a.number!==void 0&&n.add(a.number),i.add(a.ref)}let r=Fj.find(s=>t.some(a=>a.reason===s));return e.reason!==r?{path:["reason"],message:`a source that merges these revisions is ${r}`}:null}o(wse,"mergedSourceIssue");function Cse(e){if(e.trigger.kind==="revision_read"!=!e.baseline)return e.baseline?"a revision_read run names no baseline":"names its baseline";if(!e.baseline)return null;let{confirmedRunId:t,initialBaselineId:n,comparisonBaselineId:i,sources:r}=e.baseline;if([t,n,i].filter(l=>l!=null).length>1)return"a run compares with one baseline";let s=e.trigger.kind==="schedule"&&t!==null||n!==void 0||i!==void 0;if(!r)return s?"names every source of the snapshot, once":null;if(t===null&&n===void 0&&i===void 0)return"a run with no Confirmed Baseline names no baseline sources";let a=new Set(e.sources.map(l=>Ti(l.repository))),c=new Set(r.map(l=>Ti(l.repository)));return c.size===r.length&&c.size===a.size&&[...c].every(l=>a.has(l))?null:"names every source of the snapshot, once"}o(Cse,"baselineSourcesIssue");var u1=/^[A-Z][A-Z0-9_]+-[1-9][0-9]*$/,l1=/^[1-9][0-9]{0,18}$/,Mj=new RegExp(`${u1.source}|${l1.source}`),Lj=/^https:\/\/[a-z0-9-]+(\.[a-z0-9-]+)+$/,Sse=d.union([d.object({source:d.literal("jira"),site:d.string().regex(Lj),key:d.string().regex(u1),updated:d.string().datetime(),contentHash:xn}).strict(),d.object({source:d.literal("confluence"),site:d.string().regex(Lj),key:d.string().regex(l1),version:d.number().int().positive(),contentHash:xn}).strict(),d.object({source:d.literal("other"),key:d.string().regex(Kd),contentHash:xn}).strict(),d.object({source:d.literal("other"),key:d.string().regex(Ks),contentHash:xn,fileName:d.string().min(1).max(255),mediaType:d.nativeEnum(Xd)}).strict()]),jj=d.union([d.literal("jira"),d.literal("confluence")]),kse=d.object({schemaVersion:d.literal(1),items:d.array(d.union([d.object({source:jj,site:d.string(),key:d.string().regex(Mj),state:d.literal("read"),text:d.string(),version:d.string().min(1),contentMatches:d.boolean()}).strict(),d.object({source:jj,site:d.string(),key:d.string().regex(Mj),state:d.literal("not_read"),reason:d.nativeEnum(ka)}).strict(),d.object({source:d.literal("other"),key:d.string().regex(Kd),state:d.literal("read"),text:d.string(),version:d.string().min(1),contentMatches:d.boolean()}).strict(),d.object({source:d.literal("other"),key:d.string().regex(Kd),state:d.literal("not_read"),reason:d.nativeEnum(ka)}).strict(),d.object({source:d.literal("other"),key:d.string().regex(Ks),state:d.literal("read"),version:xn,fileName:d.string().min(1).max(255),mediaType:d.nativeEnum(Xd)}).strict(),d.object({source:d.literal("other"),key:d.string().regex(Ks),state:d.literal("not_read"),reason:d.nativeEnum(ka)}).strict()])),instructions:d.array(d.string()).optional()}).strict(),Bse=d.object({resultId:d.string().min(1),repository:d.string().min(1),testType:d.string().min(1),path:d.string(),finding:d.string().min(1)}).strict(),Rse=d.object({schemaVersion:d.literal(1),runId:In,skyrampOrgId:In,target:Xh,policy:Xh.nullable(),trigger:d.object({kind:d.nativeEnum(nm),requestedAt:d.string().datetime()}).strict(),configuration:d.object({captureId:In,revision:Dr.nullable(),hash:xn}).strict(),baseline:d.object({confirmedRunId:In.nullable(),initialBaselineId:In.optional(),comparisonBaselineId:In.optional(),knownFailures:d.array(Bse).optional(),sources:d.array(d.object({repository:hr,revision:_r}).strict()).optional()}).strict().optional(),sources:d.array(bse).min(1).max(1e3),execution:d.object({provider:d.nativeEnum(Ra),repository:c1,workflowPath:d.string(),ref:d.string()}).strict(),credentials:d.array(d.object({name:d.string(),purpose:d.nativeEnum(Wd),required:d.boolean()}).strict()),requirements:d.array(Sse).min(1).optional(),instructions:d.object({contentHash:xn}).strict().optional(),deployedRevisions:d.array(d.object({repository:hr,revision:_r}).strict()).min(1).optional()}).strict().superRefine((e,t)=>{let n=new Set;(e.requirements??[]).forEach((u,l)=>{let p="fileName"in u?"file":"pasted";u.source==="other"&&u.key!==`${p}-${u.contentHash.slice(0,16)}`&&t.addIssue({code:d.ZodIssueCode.custom,message:"is not the key of its content hash",path:["requirements",l,"key"]});let f=yC({source:u.source,key:u.key});n.has(f)&&t.addIssue({code:d.ZodIssueCode.custom,message:"names an item that the run already names",path:["requirements",l,"key"]}),n.add(f)});let i=e.trigger.kind,r=yse.includes(i);r!==(e.policy===null)&&t.addIssue({code:d.ZodIssueCode.custom,path:["policy"],message:r?`a ${i} run has no policy`:"names the policy revision"}),e.baseline?.knownFailures&&!e.baseline.comparisonBaselineId&&t.addIssue({code:d.ZodIssueCode.custom,path:["baseline","knownFailures"],message:"known failures require a chosen comparison checkpoint"});let s=Cse(e);s&&t.addIssue({code:d.ZodIssueCode.custom,path:e.baseline?["baseline","sources"]:["baseline"],message:s}),Ese.includes(i)&&e.sources.forEach((u,l)=>{u.reason!=="BASELINE"&&t.addIssue({code:d.ZodIssueCode.custom,path:["sources",l,"reason"],message:`a ${i} run selects only BASELINE sources`})}),e.deployedRevisions&&i!=="manual"&&t.addIssue({code:d.ZodIssueCode.custom,path:["deployedRevisions"],message:"only a manual run pins deployed revisions"});let a=new Set(e.sources.map(u=>Ti(u.repository))),c=new Set;(e.deployedRevisions??[]).forEach((u,l)=>{let p=Ti(u.repository);a.has(p)?c.has(p)&&t.addIssue({code:d.ZodIssueCode.custom,path:["deployedRevisions",l,"repository"],message:"repository appears twice"}):t.addIssue({code:d.ZodIssueCode.custom,path:["deployedRevisions",l,"repository"],message:"names a repository outside the snapshot"}),c.add(p)}),e.sources.forEach((u,l)=>{u.compareWith&&(u.reason!=="MANUAL_OVERRIDE"||u.change)&&t.addIssue({code:d.ZodIssueCode.custom,path:["sources",l,"compareWith"],message:"only a MANUAL_OVERRIDE source without a change names a revision to compare with"}),e.baseline?.comparisonBaselineId&&(u.change?.base||u.compareWith||u.merge)&&t.addIssue({code:d.ZodIssueCode.custom,path:["sources",l],message:"a chosen checkpoint cannot be combined with a source comparison base or merge"});let p=wse(u);p&&t.addIssue({code:d.ZodIssueCode.custom,path:["sources",l,...p.path],message:p.message})})});var _C=(n=>(n.Person="person",n.Policy="policy",n))(_C||{}),Qse=d.object({kind:d.nativeEnum(_C),name:d.string().min(1).max(256)}).strict(),xse=d.object({mcp:d.discriminatedUnion("source",[d.object({source:d.literal("npm"),version:d.string().regex(/^[A-Za-z0-9][A-Za-z0-9.+_-]{0,63}$/).nullable()}).strict(),d.object({source:d.literal("github"),ref:d.string().regex(/^[A-Za-z0-9._/-]{1,255}$/)}).strict()]),bedrock:d.object({region:d.string().regex(/^[a-z]{2}(-[a-z]+)+-[0-9]$/),roleArn:d.string().regex(/^arn:aws(-[a-z]+)*:iam::[0-9]{12}:role\/[\w+=,.@/-]{1,512}$/)}).strict().nullable()}).strict(),$se=d.object({schemaVersion:d.literal(1),attempt:d.object({id:In,number:d.number().int().positive(),deadlineAt:d.string().datetime()}).strict(),manifest:Rse,manifestHash:xn,entitlements:d.array(d.string()).optional(),runToken:d.string().min(1).optional(),requestedBy:Qse.nullable().optional(),writeAllowed:d.boolean().optional(),claudeCodeVersion:d.string().regex(/^[0-9]+\.[0-9]+\.[0-9]+$/,"an exact version, such as 2.1.290").nullable().optional(),deployedRevisions:d.array(d.object({repository:hr,revision:_r}).strict()).optional(),statedRevisions:d.array(d.object({repository:hr,revision:_r}).strict()).optional(),runSettings:xse.optional()}).strict(),Gj={providerRunAttempt:d.number().int().positive(),workflowRef:d.string().min(1)},Tse=d.string().regex(/^[^/]+\/[^/]+\/[1-9][0-9]{0,15}\/[1-9][0-9]{0,15}$/),Dse=d.object({schemaVersion:d.literal(1),runId:In,execution:d.discriminatedUnion("provider",[d.object({...Gj,provider:d.literal("github"),repository:d.object(im).strict(),providerRunId:Dr}).strict(),d.object({...Gj,provider:d.literal("azure-devops"),repository:d.object(sm).strict(),providerRunId:Tse}).strict()]),requester:d.literal(!0).optional(),writeCheck:d.literal(!0).optional(),claudeCodePin:d.literal(!0).optional(),deployedPins:d.literal(!0).optional(),statedPins:d.literal(!0).optional(),runSettings:d.literal(!0).optional()}).strict(),Vj=d.object({repository:hr,number:Dr,commitSha:_r.optional()}).strict(),Yh=d.array(d.object({repository:hr,reason:d.string().max(4096).regex(/\S/)}).strict()).max(1e3).optional(),d1=d.object({branch:kC.optional(),commitSha:_r.optional()}).strict(),om=4096,p1=d.array(d.object({file:d.string().max(4096).regex(/\S/),dependsOn:d.array(d.string().max(2048).regex(/\S/)).max(100)}).strict()).min(1).max(500),zj=d.object({repository:hr,message:d.string().max(om),...d1.shape,heldBack:p1.optional()}).strict(),_se=d.discriminatedUnion("status",[d.object({status:d.literal("none"),noTests:Yh}).strict(),d.object({status:d.literal("delivered"),noTests:Yh,pullRequests:d.array(Vj).min(1)}).strict(),d.object({status:d.literal("partial"),noTests:Yh,pullRequests:d.array(Vj).min(1),failures:d.array(zj).min(1)}).strict(),d.object({status:d.literal("failed"),message:d.string().max(om),noTests:Yh,failures:d.array(zj).min(1).optional()}).strict()]),NC=1024*1024,f1=16*1024*1024,pp={id:4096,text:16384,businessCase:65536},hp={id:pp.id,statement:pp.text,rows:1e3},qj=d.string().min(1).max(pp.id),Zh=d.string().max(pp.text),Wh=o((e,t)=>d.array(d.object({[e]:Zh}).strict()).max(t).optional(),"texts"),PC=d.object({language:d.custom(e=>e==="ja","Invalid"),businessCaseAnalysis:d.string().max(pp.businessCase),validation:d.object({rationale:Zh.min(1),gaps:d.array(d.string().min(1).max(4096)).max(200)}).strict().optional(),changes:d.array(d.object({id:qj,text:Zh}).strict()).max(1e3).optional(),requirements:d.array(d.object({id:qj,statement:Zh}).strict()).max(hp.rows).optional(),issuesFound:Wh("description",5e3),newTestsCreated:Wh("description",5e3),testResults:Wh("details",5e3),caveats:Wh("text",100)}).strict(),Nse=d.object({blockedPreflight:d.object({file:d.string().min(1),repository:d.string().min(1).optional(),reason:d.string().min(1).max(300),evidence:d.string().min(1).max(400)}).strict().optional(),sufficiency:d.nativeEnum(Qi),rationale:d.string().min(1),gaps:d.array(d.string().min(1)),acceptedEvidence:d.array(d.object({kind:d.nativeEnum(Xs),repository:d.string().min(1),revision:_r,reference:d.string().min(1),summary:d.string().min(1)}).strict()),actionRequired:d.array(d.nativeEnum(Iu))}).strict().superRefine((e,t)=>{e.sufficiency==="insufficient"!=e.gaps.length>0&&t.addIssue({code:d.ZodIssueCode.custom,path:["gaps"],message:"only insufficient evidence names gaps, and it names at least one"}),new Set(e.actionRequired).size!==e.actionRequired.length&&t.addIssue({code:d.ZodIssueCode.custom,path:["actionRequired"],message:"a reason appears twice"})}),Kh=500,A1=2048,g1=1e3,Pse=/[\\/:*?"<>|;#$*{},+=[\]%\p{Cc}\p{Cf}]/u,Jj=o(e=>e.length>0&&e.length<=64&&e===e.trim()&&!Pse.test(e)&&!/[^\S ]/u.test(e)&&!/^[._]/.test(e)&&!e.endsWith("."),"isAzureName"),h1=o(e=>{if(/^[A-Za-z0-9._-]{1,100}\/[A-Za-z0-9._-]{1,100}$/.test(e))return!0;let[t,n,i,...r]=e.split("/");return e.length<=201&&r.length===0&&i!==void 0&&/^[A-Za-z0-9](?:[A-Za-z0-9-]{0,48}[A-Za-z0-9])?$/.test(t)&&Jj(n)&&Jj(i)},"isResultRepository"),Fse=d.object({testResults:d.array(d.object({resultId:d.string().regex(/^[^\u0000-\u001f]{1,512}$/),repository:d.string().refine(h1,"Invalid"),testType:d.string(),runtimeTargets:op.optional(),endpoint:d.string(),status:d.enum(["Pass","Fail","Skipped"]),details:d.string(),fileName:d.string().optional(),testId:d.string().regex(/^[^\u0000-\u001f]{1,512}$/).optional(),failureCause:d.object({kind:d.nativeEnum(tp),family:d.nativeEnum(np).optional()}).strict().optional(),origin:d.nativeEnum(Gh).optional()}).strict()),validation:Nse,changes:d.array(d.object({id:d.string().min(1).max(512),text:d.string().max(16384),source:d.string().max(A1),testedBy:d.array(d.string().min(1).max(1024)).max(Kh),writtenBy:d.array(d.string().min(1).max(1024)).max(Kh),maintainedBy:d.array(d.string().min(1).max(1024)).max(Kh)}).strict()).max(g1).optional(),traceVersion:d.literal(1),display:PC.optional()}).passthrough().superRefine((e,t)=>{let n=e.display,i={issuesFound:e.issuesFound,newTestsCreated:e.newTestsCreated,testResults:e.testResults,caveats:e.caveats};for(let s of["issuesFound","newTestsCreated","testResults","caveats"]){let a=n?.[s];a&&a.length!==(Array.isArray(i[s])?i[s].length:0)&&t.addIssue({code:d.ZodIssueCode.custom,path:["display",s],message:`has not one row per ${s} row`})}n?.validation&&n.validation.gaps.length!==e.validation.gaps.length&&t.addIssue({code:d.ZodIssueCode.custom,path:["display","validation","gaps"],message:"has not one gap per validation gap"});let r=new Set;e.testResults.forEach((s,a)=>{let c=s.failureCause;c&&s.status==="Pass"&&t.addIssue({code:d.ZodIssueCode.custom,path:["testResults",a,"failureCause"],message:"a passing result has no failure cause"}),c&&c.kind==="environment"!=(c.family!==void 0)&&t.addIssue({code:d.ZodIssueCode.custom,path:["testResults",a,"failureCause"],message:"an environment cause names its family, and no other cause does"});let u=["testResults",a,"resultId"],l=s.resultId.slice(`${s.repository}:${s.testType}:`.length);(!s.resultId.startsWith(`${s.repository}:${s.testType}:`)||l===""||l.startsWith("/")||l.startsWith("#"))&&t.addIssue({code:d.ZodIssueCode.custom,path:u,message:"is not repository:testType:path for this result"}),r.has(s.resultId)&&t.addIssue({code:d.ZodIssueCode.custom,path:u,message:"stable identity repeated"}),r.add(s.resultId)})}),Hj=o(e=>e.replace(/[%:#]/g,t=>encodeURIComponent(t)),"encodeIdPart");function FC(e,t,n,i){let r=n.replace(/\\/g,"/"),s=r.split("/").filter(u=>u!==""&&u!==".");if(r.startsWith("/")||/^[A-Za-z]:/.test(r)||s.length===0||s.includes(".."))throw new Error(`testResultId needs a path relative to the repository root, got "${n}"`);let a=s.join("/"),c=`${e}:${t}:${Hj(a)}`;return i?`${c}#${Hj(i)}`:c}o(FC,"testResultId");var am=(i=>(i.BranchPushed="branch_pushed",i.PullRequestOpened="pull_request_opened",i.PullRequestEdited="pull_request_edited",i))(am||{}),m1=50,y1=d.discriminatedUnion("kind",[d.object({kind:d.literal("branch_pushed"),repository:hr,branch:kC,commit:_r}).strict(),d.object({kind:d.enum(["pull_request_opened","pull_request_edited"]),repository:hr,number:Dr,branch:kC}).strict()]),E1=d.object({schemaVersion:d.literal(1),run:d.object({runId:In,attemptNumber:d.number().int().positive(),manifestHash:xn}).strict(),target:Xh,policy:Xh,provenance:d.object({sources:d.array(d.object({repository:hr,revision:_r}).strict()),firstQualification:d.literal(!0).optional()}).strict(),delivery:d.object({generatedTests:_se}).strict(),producer:d.object({testbot:d.string().regex(/^[0-9A-Za-z.+-]{1,64}$/),mcp:d.string().regex(/^[0-9A-Za-z.+-]{1,64}$/)}).strict(),report:Fse,githubWrites:d.array(y1).max(m1).optional()}).strict(),UC=(r=>(r.Recipe="recipe",r.CredentialRejected="credential_rejected",r.Environment="environment",r.Unknown="unknown",r))(UC||{}),OC=200,Use=d.object({cause:d.nativeEnum(UC),credential:d.string().regex(ki).optional(),reason:d.string().trim().min(1).max(OC).optional()}).strict().refine(e=>e.cause==="credential_rejected"==(e.credential!==void 0&&e.reason!==void 0),{message:"a credential_rejected check, and only one, names the credential and why"}),Ose=d.object({name:d.string().regex(ki),purpose:d.enum(["sut_access","other"]),required:d.boolean(),how:d.string().trim().min(1).max(jh)}).strict(),uBe=E1.pick({schemaVersion:!0,run:!0,target:!0,provenance:!0,producer:!0}).extend({recipe:_j,check:Use.optional(),inputs:d.array(Ose).min(1).max(50).optional()}).strict().superRefine(({recipe:e},t)=>{let n=o((s,a)=>t.addIssue({code:d.ZodIssueCode.custom,path:["recipe",...s],message:a}),"issue");e.status==="blocked"&&e.blockers.length===0&&n(["blockers"],"a blocked recipe names at least one blocker");let i=new Set,r=0;e.files.forEach((s,a)=>{ap(s.path)||n(["files",a,"path"],"is not a file under .skyramp/sut/, or the .skyramp/workspace.yml a recipe stored before SKYR-5829 carries"),i.has(s.path)&&n(["files",a,"path"],"file repeated"),i.add(s.path),Cj.test(s.content)&&n(["files",a,"content"],"is not text");let c=Buffer.byteLength(s.content,"utf8");r+=c,c>gC&&n(["files",a,"content"],`larger than ${gC} bytes`)}),r>hC&&n(["files"],`recipe text over ${hC} bytes in total`)}),lBe=d.object({components:d.array(d.object({name:d.string().min(1),repository:d.string().refine(h1,"Invalid"),observedRevision:d.string().regex(/^[0-9a-f]{7,64}$/).nullable(),source:d.nativeEnum(Vh),evidence:d.string()}).strict().refine(e=>e.source!=="agent"||e.observedRevision===null,{path:["observedRevision"],message:"a component only an agent session can read names no revision"}))}).strict();function I1(e){return e.trigger.kind==="schedule"||e.trigger.kind==="manual"&&e.sources.every(t=>t.reason==="BASELINE")}o(I1,"readsDeployedState");var Mse=d.object({schemaVersion:d.literal(1),stage:d.nativeEnum(r1),event:d.nativeEnum(xC),status:d.nativeEnum(i1).optional()}).strict().refine(e=>e.status===void 0||e.event==="finished",{path:["status"],message:"only a finished stage has a status"}),cm=100,Lse=5e3,Ba=2e3,Yj=100,v1=/^[A-Za-z0-9_-]{1,64}$/,jse=20,Gse=200,Vse=100,zse=100,qse=200,Wj="[^/\\s](?:(?:[^/\\s]| )*[^/\\s])?",Jse=new RegExp(`^(?:[^/\\s]+/[^/\\s]+|[^/\\s]+/${Wj}/${Wj})$`),Hse=500,Yse=50,Wse=10,Zse=/^[A-Za-z0-9](?:[A-Za-z0-9 _-]{0,48}[A-Za-z0-9])?$/,b1=/[\u0000-\u0008\u000b\u000c\u000e-\u001f\u007f]|[\ud800-\udbff](?![\udc00-\udfff])|(?<![\ud800-\udbff])[\udc00-\udfff]/,gr=o(e=>d.string().max(e).refine(t=>t.trim().length>0&&!b1.test(t),"blank, or not text"),"setupText"),$i={sequence:d.number().int().min(1).max(Lse),at:d.string().regex(/^\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}(?:\.\d{1,6})?Z$/)},w1=d.object({...$i,kind:d.literal("reply"),to:d.string().uuid(),outcome:d.nativeEnum(o1),accepted:d.boolean(),text:gr(Ba),note:d.object({source:d.enum(["target","environment"]),quote:gr(Ba)}).strict().optional(),kept:gr(Ba).optional()}).strict();function C1(e,t){if(e.kind!=="reply")return;let n=e;n.accepted!==(n.outcome==="answered"||n.outcome==="followed")&&t.addIssue({code:d.ZodIssueCode.custom,path:["accepted"],message:"accepted exactly when answered or followed"}),n.note&&n.outcome!=="not_followed"&&t.addIssue({code:d.ZodIssueCode.custom,path:["note"],message:"a note only when not_followed"}),n.kept&&n.outcome!=="followed"&&t.addIssue({code:d.ZodIssueCode.custom,path:["kept"],message:"kept only when followed"})}o(C1,"checkReply");var Kse=d.discriminatedUnion("kind",[d.object({...$i,kind:d.literal("log"),phase:d.nativeEnum($C),text:gr(Ba)}).strict(),d.object({...$i,kind:d.literal("component"),name:gr(Yj),repository:gr(qse).refine(e=>Jse.test(e)||e===Bi,"not owner/name"),file:gr(Hse).nullable(),status:d.nativeEnum(TC),version:gr(zse).optional()}).strict(),w1,d.object({...$i,kind:d.literal("question"),id:d.string().regex(v1),type:d.nativeEnum(s1),text:gr(Ba),component:gr(Yj).nullable(),choices:d.array(gr(Gse)).max(jse),placeholder:gr(Vse).optional()}).strict(),d.object({...$i,kind:d.literal("delivered"),ids:d.array(d.string().uuid()).max(cm)}).strict(),d.object({...$i,kind:d.literal("credentials"),names:d.array(d.string().regex(ki)).min(1).max(Yse),logins:d.array(d.object({key:d.string().regex(Zse),usernameVariable:d.string().regex(ki),passwordVariable:d.string().regex(ki)}).strict()).min(1).max(Wse).optional()}).strict()]).superRefine((e,t)=>{if(C1(e,t),e.kind==="credentials"&&new Set(e.names).size!==e.names.length&&t.addIssue({code:d.ZodIssueCode.custom,path:["names"],message:"a name twice"}),e.kind==="credentials"&&e.logins){let n=e.logins.map(i=>Tj(i.key));new Set(n).size!==n.length&&t.addIssue({code:d.ZodIssueCode.custom,path:["logins"],message:"a key twice"}),e.logins.forEach((i,r)=>{for(let s of["usernameVariable","passwordVariable"])e.names.includes(i[s])||t.addIssue({code:d.ZodIssueCode.custom,path:["logins",r,s],message:"not one of the names"})})}e.kind==="question"&&(e.type==="free_text"!=(e.choices.length===0)&&t.addIssue({code:d.ZodIssueCode.custom,path:["choices"],message:"choices exactly when the question is not free_text"}),new Set(e.choices).size!==e.choices.length&&t.addIssue({code:d.ZodIssueCode.custom,path:["choices"],message:"a choice twice"}))}),Xse=d.object({schemaVersion:d.literal(1),events:d.array(Kse).max(cm)}).strict(),eoe=d.discriminatedUnion("kind",[d.object({...$i,kind:d.literal("log"),stage:d.nativeEnum(SC),text:gr(Ba)}).strict(),w1,d.object({...$i,kind:d.literal("delivered"),ids:d.array(d.string().uuid()).max(cm)}).strict(),d.object({...$i,kind:d.literal("stage"),stage:d.nativeEnum(SC),event:d.nativeEnum(xC)}).strict(),d.object({...$i,kind:d.literal("test"),resultId:d.string().regex(/^[^\u0000-\u001f]{1,512}$/),status:d.enum(["Pass","Fail","Skipped"]),details:d.string().max(Ba).refine(e=>!b1.test(e),"not text")}).strict()]).superRefine(C1),toe=d.object({schemaVersion:d.literal(1),events:d.array(eoe).max(cm)}).strict(),Zj={id:d.string().uuid(),text:d.string(),by:d.string().nullable(),at:d.string(),replied:d.literal(!0).optional()},S1=d.discriminatedUnion("kind",[d.object({...Zj,kind:d.literal("instruction"),question:d.null()}),d.object({...Zj,kind:d.literal("answer"),question:d.string().regex(v1)})]),k1=d.string().regex(/^[A-Za-z0-9+/]{43}=$/),noe=d.object({id:d.string().uuid(),revision:d.string(),by:d.string().nullable(),at:d.string(),target:d.string(),own:d.object({source:d.enum(["policy","test_environment"]),text:d.string()}).nullable()}),roe=d.object({schemaVersion:d.literal(1),leftOut:d.array(d.string()),messages:d.array(S1).optional(),stop:d.object({key:k1}).optional(),notes:noe.optional()}),ioe=d.object({schemaVersion:d.literal(1),messages:d.array(S1).optional()});var soe=500*1024*1024,B1=d.object({id:Dr,name:d.string().regex(/^[A-Za-z0-9._-]{1,200}$/),providerRunId:Dr,expiresAt:d.string().datetime()}).strict(),ooe=d.object({schemaVersion:d.literal(1),artifact:B1,sessionId:In,contentHash:xn,bytes:d.number().int().min(1).max(soe)}).strict(),aoe=d.object({schemaVersion:d.literal(1),checkpoint:d.object({artifact:B1,repository:d.object({namespace:d.string().min(1),name:d.string().min(1)}).strict(),sessionId:In,contentHash:xn,key:k1}).strict().nullable()}).strict(),coe=200,vu=100,R1=(i=>(i.Resume="resume",i.Retry="retry",i.Update="update",i))(R1||{}),uoe=d.object({kind:d.nativeEnum(R1),setup:d.object({runId:In,endedAt:d.string().nullable(),outcome:d.string().nullable()}).strict(),components:d.array(d.object({name:d.string().min(1),repository:d.string().min(1),status:d.nativeEnum(TC)}).strict()).max(vu),credentials:d.array(d.string().min(1)).max(vu),answers:d.array(d.object({question:d.string(),answer:d.string().nullable()}).strict()).max(vu),instructions:d.array(d.object({text:d.string(),reply:d.string().nullable()}).strict()).max(vu),log:d.array(d.object({phase:d.nativeEnum($C),text:d.string()}).strict()).max(coe),recipe:d.object({files:d.array(d.object({path:d.string().min(1),content:d.string()}).strict()).max(vu),blockers:d.array(d.object({component:d.string(),problem:d.string(),evidence:d.string(),fix:d.string()}).strict()).max(vu)}).strict().optional()}).strict(),loe=d.object({schemaVersion:d.literal(1),context:uoe.nullable()}).strict(),doe=d.object({schemaVersion:d.literal(1),configuration:d.object({captureId:In,revision:Dr.nullable(),hash:xn}).strict(),capture:d.object({schemaVersion:d.literal(1),settings:d.object({target:d.object({environment:d.unknown()}).passthrough(),timeoutMinutes:d.number().int().positive(),answerWaitMinutes:d.number().int().positive().optional(),testEnvironment:d.object({name:d.string().min(1),address:d.string().min(1).optional(),readyWhen:d.string().min(1).optional(),environmentId:d.string().uuid().optional(),persistentDataPolicy:e1}).passthrough().optional()}).passthrough(),provenance:d.object({}).passthrough(),hash:xn}).strict()}).strict(),Q1=d.object({schemaVersion:d.literal(1),environmentId:d.string().uuid().nullable(),environmentAddress:d.string().url().nullable(),persistentDataPolicy:up.nullable()}).strict(),poe=Eu.extend({environmentId:d.string().uuid().optional(),persistentDataPolicy:e1,version:d.number().int().positive(),components:d.array(d.object({name:d.string().min(1),repository:d.string().min(1)}).strict()),contentHash:xn.optional(),files:d.array(d.object({path:d.string().refine(e=>ap(e)&&!wC.includes(e),"not a file of a customer_deployed plan"),content:d.string()}).strict()).optional()}).strict(),foe=d.object({schemaVersion:d.literal(1),testEnvironment:poe.nullable().optional(),runtimePlan:d.object({version:d.number().int().positive(),contentHash:xn,files:d.array(d.object({path:d.string().refine(ap,"not a recipe file path"),content:d.string()}).strict()).min(1),repository:Jh.optional(),recipeRepository:Jh.optional(),recipe:d.record(d.unknown()).optional()}).strict().nullable()}).strict().refine(e=>!(e.runtimePlan&&e.testEnvironment),{message:"a run pins a recipe or a customer's Test Environment, never both",path:["testEnvironment"]}),x1=d.object({schemaVersion:d.literal(1),state:d.nativeEnum(n1),ending:d.nativeEnum(Ap).nullable(),cause:d.nativeEnum(gp).nullable(),deadlineAt:d.string().datetime()}).strict();function $1(e,t){return e.state==="ended"?e.ending==="cancelled"?"cancelled":e.cause==="runner_lost"?"expired":"ended":t.getTime()>=Date.parse(e.deadlineAt)?"expired":null}o($1,"attemptClosure");var T1=50,dBe=d.object({repository:hr,revisions:d.array(d.number().int().nonnegative()).min(1).max(2).refine(e=>e.length<2||e[0]<e[1],"two revisions name the earlier first"),files:d.array(d.string().min(1)).min(1).max(T1)}).strict();function BC(e){if(typeof e=="number"&&!Number.isFinite(e))throw new TypeError("Canonical JSON requires JSON values");if(Array.isArray(e))return`[${e.map(BC).join(",")}]`;if(e!==null&&typeof e=="object"){let n=e;return`{${Object.keys(n).sort().map(i=>`${JSON.stringify(i)}:${BC(n[i])}`).join(",")}}`}let t=JSON.stringify(e);if(t===void 0)throw new TypeError("Canonical JSON requires JSON values");return t}o(BC,"canonicalJson");function D1(e){return(0,Xj.createHash)("sha256").update(BC(e),"utf8").digest("hex")}o(D1,"manifestHash");var bu=o(e=>({provider:e.provider,providerAccountId:e.providerAccountId,providerRepositoryId:e.providerRepositoryId}),"toSourceRef");function MC(e,t,{statedPins:n=!0}={}){return Dse.parse({schemaVersion:1,runId:e,execution:t.execution(),requester:!0,writeCheck:!0,claudeCodePin:!0,deployedPins:!0,...n?{statedPins:!0}:{},...t.runSettingsFromApp?{runSettings:!0}:{}})}o(MC,"handshakeRequest");function _1(e){let t=$se.parse(e);if(D1(t.manifest)!==t.manifestHash)throw new Error("The handshake manifest hash does not match its manifest");return t}o(_1,"parseHandshakeResponse");function Aoe(e){let t=o(r=>r.map(s=>({repository:bu(s.repository),number:s.number,...s.commitSha===void 0?{}:{commitSha:s.commitSha}})),"pullRequests"),n=e.noTests?{noTests:e.noTests.map(r=>({repository:bu(r.repository),reason:r.reason}))}:{};if(e.status==="delivered")return{status:e.status,...n,pullRequests:t(e.pullRequests)};let i=o(r=>r.map(s=>({repository:bu(s.repository),message:s.message,...s.branch===void 0?{}:{branch:s.branch},...s.commitSha===void 0?{}:{commitSha:s.commitSha},...s.heldBack===void 0?{}:{heldBack:s.heldBack}})),"failures");return e.status==="partial"?{status:e.status,...n,pullRequests:t(e.pullRequests),failures:i(e.failures)}:e.status==="failed"&&e.failures?{...e,...n,failures:i(e.failures)}:{...e,...n}}o(Aoe,"toDelivery");function goe(e){return e.issues.map(t=>`${t.path.map((i,r)=>typeof i=="number"?`[${i}]`:r===0?i:`.${i}`).join("")}: ${t.message}`).join("; ")}o(goe,"describeIssues");function N1(e){let{manifest:t}=e;if(Ise.includes(t.trigger.kind))throw new Error(`The report upload is invalid: a ${t.trigger.kind} run uploads its SUT recipe, never a report`);if(t.trigger.kind==="revision_read")throw new Error("The report upload is invalid: a revision_read run uploads what each component runs, never a report");if(e.firstQualification&&!t.baseline?.sources)throw new Error("The report upload is invalid: only a run whose manifest names baseline sources can be a first qualification");let n=E1.safeParse({schemaVersion:1,run:{runId:t.runId,attemptNumber:e.attemptNumber,manifestHash:D1(t)},target:{id:t.target.id,revision:t.target.revision},policy:t.policy&&{id:t.policy.id,revision:t.policy.revision},provenance:{sources:e.checkedOut.map(i=>({repository:bu(i.repository),revision:i.revision})),...e.firstQualification?{firstQualification:!0}:{}},delivery:{generatedTests:Aoe(e.generatedTests)},producer:e.producer,report:e.report,...e.githubWrites?.length?{githubWrites:e.githubWrites.map(i=>({...i,repository:bu(i.repository)}))}:{}});if(!n.success)throw new Error(`The report upload is invalid: ${goe(n.error)}`);return hoe(n.data,t,e.checkedOut),n.data}o(N1,"buildReportUpload");function hoe(e,t,n){let i=o(s=>n.find(a=>Ti(a.repository)===Ti(s.repository))?.revision??s.revision,"revisionOf"),r=new Map(t.sources.map(s=>[`${s.repository.namespace}/${s.repository.name}`.toLowerCase(),i(s)]));e.report.validation.acceptedEvidence.forEach((s,a)=>{let c=`report.validation.acceptedEvidence[${a}]`,u=r.get(s.repository.toLowerCase());if(!u)throw new Error(`${c}.repository: ${s.repository} is outside the run's snapshot`);if(s.revision!==u)throw new Error(`${c}.revision: evidence is not from the checked-out revision ${u}`)})}o(hoe,"assertEvidenceFromSnapshot");function P1(e){if(e.reportUploaded)return{schemaVersion:1,reason:"report_uploaded",cause:null};if(e.recipeUploaded)return{schemaVersion:1,reason:"recipe_uploaded",cause:null};if(e.revisionsUploaded)return{schemaVersion:1,reason:"revisions_uploaded",cause:null};let t=e.githubWrites?.length?{githubWrites:e.githubWrites.map(n=>({...n,repository:bu(n.repository)}))}:{};return e.cancelled?{schemaVersion:1,reason:"cancelled",cause:null,...t}:e.mergeConflict&&Kj(e)==="merge_conflict"?{schemaVersion:1,reason:"no_report",cause:"merge_conflict",conflict:e.mergeConflict,...t}:{schemaVersion:1,reason:"no_report",cause:Kj({...e,mergeConflict:void 0}),...t}}o(P1,"attemptEndFor");function Kj(e){return e.runnerProviderNotReady?"runner_provider_not_ready":e.credentialMissing?"credential_missing":e.mergeConflict?"merge_conflict":e.checkoutFailed?"checkout_failed":e.environmentUnverified?"environment_unverified":e.setupFailed?"setup_failed":e.timedOut?"timed_out":e.modelProviderDenied?"model_provider_denied":e.modelProviderUnavailable?"model_provider_unavailable":e.environmentUnavailable?"environment_unavailable":"agent_failed"}o(Kj,"noReportCause");var EBe=["clean","recipe-drift"];var to=re(require("path"));var wBe={"application/pdf":"PDF","text/csv":"CSV","application/vnd.openxmlformats-officedocument.wordprocessingml.document":"DOCX","application/vnd.openxmlformats-officedocument.spreadsheetml.sheet":"XLSX"};var LC=o(e=>new Map((e??[]).flatMap(t=>t.file?[[ep(t.key),t.file.name]]:[])),"itemNames"),Eoe=10*1024*1024,Ioe=o(e=>e?.mediaType==="application/vnd.openxmlformats-officedocument.wordprocessingml.document"||e?.mediaType==="application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","needsExtraction"),U1=o((e,t)=>to.join(to.dirname(e),`${to.basename(e,to.extname(e))}${t}`),"besideFile"),voe=o(e=>U1(e,".extracted.txt"),"extractedTextPath");var boe=o(e=>U1(e,".quotes.txt"),"confirmedQuotesPath");function O1(e){return Ioe(e.file)?voe(e.path):e.file?.mediaType==="application/pdf"?boe(e.path):e.path}o(O1,"itemTextPath");function Nt(e){let t=Math.max(0,...(e.match(/`+/g)??[]).map(r=>r.length)),n="`".repeat(t+1),i=e.startsWith("`")||e.endsWith("`")?" ":"";return`${n}${i}${e}${i}${n}`}o(Nt,"codeSpan");var M1=re(require("path"));var mp=re(require("fs")),Qa=re(require("path"));var woe=8;function cn(e,t,n={}){let i=t.slice(0,woe),r=t.length-i.length;return{name:e,passed:!1,details:i.join("; ")+(r>0?`; \u2026and ${r} more`:""),...n.fatal?{fatal:!0}:{}}}o(cn,"fail");function no(e){if(mp.existsSync(e))try{return JSON.parse(mp.readFileSync(e,"utf-8"))}catch{return}}o(no,"readJsonFile");function ke(e,t){return no(Qa.join(e.outputsDir,t))}o(ke,"readArtifact");function Hn(e,t){return{name:e,verify(n,i){let{errors:r}=t(n,i);return r.length===0?{name:this.name,passed:!0}:cn(this.name,r,{fatal:!0})}}}o(Hn,"schemaGate");function cs(e,t){return Qa.relative(e,Qa.resolve(e,t)).replace(/\/+$/,"")}o(cs,"relNorm");function yp(e){return e.replace(/\s+/g," ").trim()}o(yp,"normalizeCode");var Ep=new RegExp("(^|/)("+["test_[^/]+\\.py","[^/]+_test\\.py","[^/]+\\.(spec|test)\\.[cm]?[jt]sx?","[^/]+\\.e2e-(spec|test)\\.[cm]?[jt]sx?","[^/]+_test\\.go","[^/]+Tests?\\.(java|kts?)","[^/]+_(test|spec)\\.rb","[^/]+\\.feature","[^/]+Tests?\\.cs","[^/]+_test\\.rs","tests/[^/]+\\.rs","[^/]+Test\\.php","[^/]+(Test|Spec|Suite)\\.scala","[^/]+Tests?\\.swift","[^/]+_test\\.exs","[^/]+_test\\.dart","[^/]+_test\\.(c|cc|cpp|cxx)","test_[^/]+\\.(c|cc|cpp|cxx)","[^/]+(Spec|Test)\\.groovy"].join("|")+")$","i");var jC="outputs/preflight.json",xa="pr-diff.txt",GC="related-diffs";function VC(e){return M1.join(GC,`${e.toLowerCase().replace(/\//g,"__").replace(/[^a-z0-9._-]/g,"_")}.diff`)}o(VC,"relatedDiffArtifact");var us=re(require("path"));var Ip=re(require("path"));var ro="Skyramp Testbot",$a="test-bot@skyramp.dev";var Cu=o(e=>e.slice(0,12),"shortCommit");var Coe=o((e,t)=>jt(t,{cwd:e,encoding:"utf-8",stdio:["ignore","pipe","ignore"]}).trim(),"git");function L1(e){let t="";try{t=Coe(e,["remote","get-url","origin"])}catch{}let n=/[:/]([A-Za-z0-9._-]+)\/([A-Za-z0-9._-]+?)(?:\.git)?\/?$/.exec(t);return n&&!t.startsWith("/")&&!t.startsWith(".")?`${n[1]}/${n[2]}`:`local/${Ip.basename(Ip.resolve(e)).replace(/[^A-Za-z0-9._-]/g,"-")||"repo"}`}o(L1,"repositorySlug");var jBe=new Set(Object.values(Xs));var GBe=d.object({checks:d.array(d.object({repository:d.string().optional(),name:d.string().min(1),headSha:d.string().regex(/^[0-9a-f]{40}$|^[0-9a-f]{64}$/i),status:d.string().default("completed"),conclusion:d.string().nullable().optional(),url:d.string().optional(),summary:d.string().optional()}))});var Soe=["generate-unit","native-run"],JBe=["preflight","plan","write",...Soe,"report","deliver"];var um=(i=>(i.Unit="unit",i.Integration="integration",i.E2e="e2e",i))(um||{}),koe=Object.values(um);var j1=8e3,zC=new Map;function Roe(e){return e.repositorySlug?e.repositorySlug:(zC.has(e.repositoryPath)||zC.set(e.repositoryPath,L1(e.repositoryPath)),zC.get(e.repositoryPath))}o(Roe,"workingSlug");function un(e){return[{slug:Roe(e),path:e.repositoryPath,writable:!0,working:!0},...(e.relatedRepos??[]).map(t=>({slug:t.slug,path:t.path,writable:t.writable===!0,working:!1}))]}o(un,"runSources");var Di=o((e,t)=>e.toLowerCase()===t.toLowerCase(),"sameSlug");function lm(e,t){return t?.trim()?e.find(n=>Di(n.slug,t.trim())):e[0]}o(lm,"findSource");function mr(e,t){return lm(un(e),t)}o(mr,"resolveSource");var Qoe=o((e,t)=>`${t} is not a repository of this run (${un(e).map(n=>n.slug).join(", ")})`,"notARepository");function io(e,t){let n=mr(e,t);return n?n.writable?{source:n}:{error:`${n.slug} is read-only in this run: tests are written only to ${un(e).filter(i=>i.writable).map(i=>i.slug).join(", ")}`}:{error:Qoe(e,t)}}o(io,"writableSource");var qC=o(e=>us.basename(us.resolve(e.path)),"relatedDirName");var aRe={focused:"Focused",impacted_critical:"Impacted and critical",broad:"Broad"};var ku=o(e=>!!e.inputs?.scheduledValidation?.comparisonBaselineId,"retestsKnownFailures");var Kf=re(require("fs")),Zt=re(require("path"));function qt(e,t=[]){let n=e.trim();if(!n)return{error:"session produced no output"};let i=o(u=>{try{let l=JSON.parse(u);return typeof l=="object"&&l!==null&&!Array.isArray(l)?l:void 0}catch{return}},"tryParse"),r=i(n);if(r!==void 0)return{value:r};let s;if(n.startsWith("{")&&n.endsWith("}"))try{JSON.parse(n)}catch(u){s=u instanceof Error?u.message:String(u)}let a=[...n.matchAll(/```(?:json)?\s*\n([\s\S]*?)```/g)];for(let u=a.length-1;u>=0;u--){let l=i(a[u][1].trim());if(l!==void 0)return{value:l}}let c;for(let u=n.indexOf("{");u!==-1;u=n.indexOf("{",u+1)){let l=0,p=!1,f=!1;for(let g=u;g<n.length;g++){let h=n[g];if(f){f=!1;continue}if(h==="\\"){f=p;continue}if(h==='"'){p=!p;continue}if(!p){if(h==="{")l++;else if(h==="}"&&(l--,l===0)){let m=i(n.slice(u,g+1));m!==void 0&&Object.keys(m).length>0&&(c=m,u=g);break}}}}return s&&(c===void 0||Object.keys(c).length<3)?{error:`final message is not valid JSON \u2014 ${s}. Most often an unescaped double quote inside a string (e.g. in "summary" or "evidence"): escape it as \\" or use single quotes in prose`}:c!==void 0?{value:c}:s?{error:`final message is not valid JSON \u2014 ${s}. Most often an unescaped double quote inside a string (e.g. in "summary" or "evidence"): escape it as \\" or use single quotes in prose`}:{error:`no parseable JSON object found in session output \u2014 the final message was: "${$oe(ei(n,t))}"`}}o(qt,"extractJsonObject");var G1=240;function $oe(e){let t=e.replace(/\s+/g," ").trim();return t.length<=G1?t:`\u2026${t.slice(-G1)}`}o($oe,"snippetOf");function Toe(e){return e.issues.map(t=>{let n=t.path.map(r=>typeof r=="number"?`[${r}]`:`.${r}`).join("").replace(/^\./,""),i=n||"output";if(!/^(Expected |Required$|Invalid |String must|Array must|Number must)/.test(t.message))return`${i} ${t.message}`;switch(t.code){case"invalid_type":return n?t.expected==="object"?`${i} must be an object`:t.received==="undefined"?`${i} is required`:`${i} must be ${t.expected}, got ${t.received}`:"output is not a JSON object";case"invalid_enum_value":{let r=JSON.stringify(t.received),s=t.options.find(c=>typeof c=="string"&&typeof t.received=="string"&&t.received.startsWith(c)),a=s?` \u2014 you sent ${r}; the value must be exactly ${JSON.stringify(s)}, with any qualifier moved to a field that takes free text`:` \u2014 you sent ${r}`;return`${i} must be one of: ${t.options.join(", ")}${a}`}case"invalid_literal":return`${i} must be ${JSON.stringify(t.expected)}`;case"too_small":return t.type==="string"?`${i} must be a non-empty string`:`${i} must have at least ${t.minimum} item(s)`;case"unrecognized_keys":return`${i} has unknown key(s): ${t.keys.join(", ")}`;default:return`${i}: ${t.message}`}})}o(Toe,"issuesToMessages");function $n(e,t){let n=e.safeParse(t);if(n.success)return{value:n.data,errors:[]};let i=o((s,a)=>a.reduce((c,u)=>c&&typeof c=="object"?c[u]:void 0,s),"at"),r=n.error.issues.filter(s=>s.path.length&&i(t,s.path)===null);if(r.length===n.error.issues.length)try{let s=e.safeParse(r.reduce((a,{path:c})=>V1(a,c),t));if(s.success)return{value:s.data,errors:[]}}catch{}return{errors:Toe(n.error)}}o($n,"validateWith");function V1(e,t){if(!t.length||!e||typeof e!="object")return e;let[n,...i]=t,r=Array.isArray(e)?e.slice():{...e};return i.length?r[n]=V1(r[n],i):delete r[n],r}o(V1,"withoutAt");var so=re(require("fs")),yr=re(require("path"));function Doe(e){try{return so.lstatSync(e),!0}catch{return!1}}o(Doe,"entryExists");function dm(e){let t=yr.resolve(e),n=[];for(;!Doe(t);){let r=yr.dirname(t);if(r===t)break;n.unshift(yr.basename(t)),t=r}let i=t;try{i=so.realpathSync(t)}catch{try{so.lstatSync(t).isSymbolicLink()&&(i=yr.resolve(yr.dirname(t),so.readlinkSync(t)))}catch{}}return n.length?yr.join(i,...n):i}o(dm,"realOfExisting");function Da(e){let t=e.split(/[\\/]/)[0];return t===".skyramp"||t===".testbot"}o(Da,"inUnshippedFolder");var z1=String.raw`(?:\[[^\]]*\]|\([^)]*\))`,_oe=String.raw`(?:["'\u201c\u2018\x60]|\*{1,2})?[^\s:"'\u201c\u201d\u2018\u2019\x60*()[\],]+(?:["'\u201d\u2019\x60]|\*{1,2})?`,q1=String.raw`(?:${z1}|${_oe}(?:\s*${z1})?)`,J1=String.raw`(?:\s*:|\s+[\u2014\u2013-])`,vRe=new RegExp(String.raw`^\s*(?:${q1}(?:,\s*${q1})*(?::L?\d+(?:[-\u2013]\d+)?${J1}?|${J1})|\[[^\]\s]+\]|\([^)\s]+\))\s+`);var pm=(r=>(r.RestApi="rest-api",r.Frontend="frontend",r.FullStack="full-stack",r.Other="other",r))(pm||{}),_a=(r=>(r.Critical="critical",r.High="high",r.Medium="medium",r.Low="low",r))(_a||{}),Na=(i=>(i.Suspected="suspected",i.Latent="latent",i.Refuted="refuted",i))(Na||{}),YC=(i=>(i.Skyramp="skyramp",i.External="external",i.Unknown="unknown",i))(YC||{}),WC=(r=>(r.Cascade="cascade",r.Restrict="restrict",r.Orphan="orphan",r.Unknown="unknown",r))(WC||{}),_i=(r=>(r.RequirementReference="requirement-reference",r.Spec="spec",r.PrDescription="pr-description",r.CouldBreak="could-break",r))(_i||{}),pt=d.string().trim().min(1),Bu=pt.describe("file:line"),H1=o(e=>pt.refine(t=>t.length<=400,t=>({message:`is ${t.length} characters, over the 400 cap \u2014 ${e}`})),"cap400"),vp=pt.optional().describe('multi-repo only: the OTHER checkout this lives in \u2014 its "owner/repo" slug, or the directory name if the run discovered it; omit for the working checkout'),HC=d.object({method:pt,path:pt,service:d.string().optional(),evidence:Bu,repository:vp}),Noe=d.object({id:pt.describe("short-slug, e.g. R9"),statement:pt.max(400,"exceeds 400 characters \u2014 state the requirement, do not paste the spec section").describe("a testable obligation, not a summary"),source:d.nativeEnum(_i).describe("spec outranks pr-description when both state it"),evidence:pt.describe("spec: file:line or a section locator. pr-description: the quoted phrase it comes from.")}),Poe=d.object({id:pt.describe("short-slug"),statement:pt.max(400,"exceeds 400 characters \u2014 state the behaviour, do not paste the code").describe("what the change makes true"),surface:pt.describe("METHOD /path, or a component/page name"),evidence:pt.describe("file:line from the diff that introduces it"),repository:vp,satisfies:d.array(pt).optional().describe("requirement ids (from `requirements`) this behaviour correctly implements \u2014 a requirement met only in part is ALSO named by the finding that shows the rest (conflictsWith)")}),Foe=d.object({id:pt.describe("short-slug"),file:pt,line:d.number().optional(),claim:H1("shorten it to the one sentence that states the defect, and move the supporting detail into `evidence`"),severity:d.nativeEnum(_a),evidence:H1("cite the file:line and the one line that shows it, rather than reproducing the surrounding code").describe("quoted diff/code line"),status:d.nativeEnum(Na),repository:vp,conflictsWith:d.array(pt).optional().describe("requirement ids (from `requirements`) this defect contradicts or leaves unimplemented \u2014 a lower-precedence source (the diff, or the PR description) lost")}),Uoe=d.object({name:pt,language:d.string().optional(),framework:d.string().optional(),evidence:Bu,repository:vp}),Ooe=d.object({dir:pt,framework:d.string().optional(),kind:d.nativeEnum(YC),evidence:Bu,repository:vp}),Moe=d.object({from:pt,to:pt,onDelete:d.nativeEnum(WC),evidence:Bu}),Loe=d.object({entity:pt,field:pt,values:d.array(d.string()),evidence:Bu}),joe=d.object({entities:d.array(d.object({name:pt,evidence:Bu})),references:d.array(Moe).describe("INBOUND references \u2014 what still points at an entity when it is deleted"),stateFields:d.array(Loe)}),ZC=d.object({schemaVersion:d.literal(1),repository:d.object({path:pt.describe("absolute repo path"),currentBranch:pt,baseBranch:pt}),project:d.object({type:d.nativeEnum(pm),primaryLanguage:pt,languages:d.array(d.string()),frameworks:d.array(d.string())}),services:d.array(Uoe),infrastructure:d.object({containerized:d.boolean(),hasDockerCompose:d.boolean(),composeFiles:d.array(d.string()),hasCiCd:d.boolean()}),diff:d.object({changedFiles:d.array(d.string()).describe("as git reports them; a file in another checkout may carry that repo's name"),nonApplicationOnly:d.boolean(),summary:pt.describe("\u2264400 chars")}),endpoints:d.object({new:d.array(HC),modified:d.array(HC),removed:d.array(HC)}),existingTests:d.object({locations:d.array(Ooe)}),entityMap:joe,requirements:d.array(Noe).describe("from a spec (attached or linked) and/or the PR description; empty when neither states a testable obligation"),behaviors:d.array(Poe),findings:d.array(Foe),unexamined:d.array(d.string()).describe("files or areas outside this change you did not open"),summary:pt.describe("one paragraph on what this change does and its test-relevant risk")});var bp=(n=>(n.Full="full",n.Static="static",n))(bp||{}),ri=(i=>(i.Contract="contract",i.Integration="integration",i.Ui="ui",i))(ri||{}),wp=(s=>(s.OwnSurface="own_surface",s.StateReadBack="state_read_back",s.Referential="referential",s.Lifecycle="lifecycle",s.Boundaries="boundaries",s))(wp||{}),Ni=(r=>(r.Update="update",r.Regenerate="regenerate",r.Delete="delete",r.Verify="verify",r))(Ni||{}),fm=(l=>(l.Equals="equals",l.NotEquals="not_equals",l.GreaterThan="greater_than",l.LessThan="less_than",l.Contains="contains",l.NotContains="not_contains",l.Matches="matches",l.Absent="absent",l.Present="present",l))(fm||{});var Er=d.string().trim().min(1),Goe=d.object({subject:Er.describe('what the test READS: a response field path, the literal "status", or the on-screen text for a ui case \u2014 the FINAL read in a multi-step case'),comparator:d.nativeEnum(fm),value:d.union([d.string(),d.number(),d.boolean(),d.null()]).optional().describe("the ONE value a broken build would not produce; OMIT for absent/present")}),Voe=d.object({test:Er.describe("existing test path, relative to its repository"),repository:Er.optional().describe("owner/repo the test lives in, when the run has several checkouts; omit for the working checkout"),action:d.nativeEnum(Ni),evidence:Er.describe("why \u2014 drift vs the diff, or a finding"),covers_behaviors:d.array(d.string()).optional().describe("analyze behavior ids this maintenance covers"),staleOnBase:d.boolean().optional().describe("[derived] the plan found the test already wrong on the base branch: it is left as it is and re-run")});var zoe=d.object({surface:Er.describe("a surface from the list, copied verbatim"),axis:d.nativeEnum(wp)}),qoe=d.object({id:Er.describe("short-slug, unique across generate[]"),type:d.nativeEnum(ri),target:Er.describe('"METHOD /path", or a business-flow name'),from_finding:d.string().optional().describe("analyze finding id this case catches"),from_behavior:d.string().optional().describe("analyze behavior id this case pins"),derived_from:zoe.optional().describe("the surface \xD7 axis this case pins when no analyze behavior or finding names it \u2014 one of the three is required"),rationale:Er.describe("why this test matters"),expected_observable:Er.describe("one sentence for a human: what a catching test asserts, and what a broken build does instead"),expected:Goe.describe("the same intent AS DATA \u2014 see the rules below"),seededPrecondition:Er.optional().describe("seeded non-initial state + how to reach it; only when a seeded-state transition applies"),verifiable:d.boolean().describe("true only when a live SUT could confirm this test (full mode)")}),Joe=d.object({covered:d.array(d.string()).optional(),abstain:d.string().optional()}).superRefine((e,t)=>{let n=Array.isArray(e.covered),i=typeof e.abstain=="string";if(n===i)return void t.addIssue({code:d.ZodIssueCode.custom,message:"must have exactly one of covered[] or abstain"});n&&e.covered.length===0&&t.addIssue({code:d.ZodIssueCode.custom,path:["covered"],message:"must list at least one id (else abstain)"}),i&&!e.abstain.trim()&&t.addIssue({code:d.ZodIssueCode.custom,path:["abstain"],message:"must give a reason"})}).describe('{ "covered": [ids] } OR { "abstain": "reason" } \u2014 exactly one'),Hoe=d.object({surface:Er.describe("a surface from the list, copied verbatim"),axes:d.object(Object.fromEntries(Object.values(wp).map(e=>[e,Joe])))}),Y1=d.object({schemaVersion:d.literal(1),mode:d.nativeEnum(bp),maintenance:d.array(Voe),generate:d.array(qoe),surfaces:d.array(Hoe).describe("one entry per changed surface in the list \u2014 none missing, none invented"),budget:d.object({total:d.number().describe("case count"),rationale:Er}),summary:Er.describe("one paragraph")});var ls=d.string().trim().min(1),ds=72,Yoe=d.object({repository:ls.optional().describe("owner/repo of the checkout this lint ran in, when the run has several; omit for the working checkout"),tool:d.string(),command:d.string().describe("the exact command you ran, scoped to the changed files"),clean:d.boolean(),notRun:d.string().optional().describe("why no linter checked the files, when none could (SKYR-5827): then `clean` is false and does not hold the tests back"),fixed:d.array(d.string()).optional().describe("files you fixed"),uncovered:d.array(d.string()).describe("changed/new files this linter's own config does not match (wrong extension, wrong directory) \u2014 so `clean` never examined them, even though CI may still execute them. Empty array, not omitted, when every changed/new file IS covered.")});var XC=d.object({schemaVersion:d.literal(1),lint:d.array(Yoe).min(1).describe("one entry per checkout this run wrote tests in, each run from that checkout"),fileConventions:d.object({ok:d.boolean(),notes:d.string().optional()}),ciReadiness:d.object({covered:d.boolean().describe("will the repo's CI run these tests?"),notes:d.string().optional(),unrecorded:d.array(d.string()).optional().describe("tests with no record of whether CI runs them: not covered, and not known to be left out")}),dependencies:d.object({added:d.array(d.object({package:d.string(),manifest:d.string(),repository:ls.optional().describe("owner/repo of the manifest's checkout; omit for the working checkout"),reason:ls.optional().describe("why the test must run inside the application's own test environment, so its manifest had to change \u2014 required for every entry")})).describe("every package added to an APPLICATION manifest (an exception, surfaced in the report); never the Testbot test package's own")}),support:d.array(d.object({file:ls,repository:ls.optional().describe("owner/repo of the file's checkout; omit for the working checkout")})).optional().describe("the files the tests need besides themselves (helper modules, page objects, fixtures, snapshots), delivered with them"),commit:d.object({message:ls.refine(e=>e.split(`
62
62
  `)[0].length<=ds,{message:`subject line must be <= ${ds} chars`})}),pr:d.object({title:ls.max(ds,`must be <= ${ds} chars`),body:ls}),ready:d.boolean().describe("a statement of fact: true only if the tests are fit to commit as they stand"),blockers:d.array(d.string()).describe("what blocks the commit \u2014 required non-empty when ready is false"),summary:ls.describe("one paragraph")});function Cp(e){return(e?.blockers??[]).slice(0,3).join("; ")}o(Cp,"leadBlockers");var wo=re(require("fs")),gl=re(require("path"));var vn="{junit}",Am=(s=>(s.Junit="junit",s.Trx="trx",s.GoTestJson="go-test-json",s.JestJson="jest-json",s.PlaywrightList="playwright-list",s))(Am||{}),eS=(t=>(t.Minitest="minitest",t))(eS||{}),W1=d.string().trim().min(1),Pa=d.object({cwd:W1.describe('repo-relative directory the command starts in ("." for the root)'),argv:d.array(W1).min(1).describe(`the command as separate arguments, run without a shell; for a junit or trx report an argument or env value holds ${vn}, where the report is written (not for Maven or Gradle, whose build writes its own)`),env:d.record(d.string(),d.string()).optional().describe("plain test or reporter settings beyond the repository's CI test job (RAILS_ENV=test, PLAYWRIGHT_JUNIT_OUTPUT_FILE={junit}); never a credential, PATH, or a tool's install path"),report:d.object({format:d.nativeEnum(Am).describe(`junit (JUnit XML to ${vn}), trx (to ${vn}), jest-json (Jest's --json or Vitest's --reporter=json, --outputFile=${vn}), or go-test-json (go test -json on the command's output)`),reporter:d.nativeEnum(eS).optional().describe("a reporter Testbot loads for a runner that writes no report: minitest")}).optional().describe("the report the command writes; junit when omitted")});var Ru="a framework other than pytest, jest, vitest and node --test (go test, rails test, mvn, dotnet test), or one the repository's test script runs through another command (ng test, nx test)";var PRe=`pytest, Jest, Vitest and node --test tests run as the run already knows them, unless the repository's test script runs them through another command (ng test, nx test), which may be the only one that compiles them. A test in any other framework, or one run that way, also gives "run": the repository's own command for only those tests, from the directory the repository runs it in, as separate arguments without a shell. Its "report" says what the runner writes: junit (JUnit XML to ${vn} in the reporter's argument or env setting), trx (a TRX file to ${vn}, which every dotnet test writes with its built-in logger), jest-json (Jest's --json --outputFile=${vn}, or Vitest's --reporter=json --outputFile=${vn}: built in, no reporter package), or go-test-json (go test -json, read from the command's output). A Maven or Gradle command names no ${vn}: its build writes JUnit XML to its own report directory, which the run reads. Use a reporter the repository already has, or one of those; a reporter or converter the command fetches is the version the repository pins, or else its latest release (an older one may not build with the repository's toolchain). For minitest, which writes none, give report.reporter "minitest" and the run fills ${vn} itself. A setting the tests or reporter read goes in "env" (RAILS_ENV=test, or PLAYWRIGHT_JUNIT_OUTPUT_FILE=${vn} with playwright test --reporter=junit): the run sets it, so never wrap the command in a shell to set one. The run replaces ${vn} in argv and env with its report path, executes the command, and reads that report.`;var ps=(r=>(r.ExistingEvidenceSufficient="existing_evidence_sufficient",r.TargetedUnit="targeted_unit",r.RuntimeRequired="runtime_required",r.BlockedPreflight="blocked_preflight",r))(ps||{}),fs=(s=>(s.ExistingEvidence="existing_evidence",s.Unaffected="unaffected",s.ExistingUnit="existing_unit",s.NewUnit="new_unit",s.Runtime="runtime",s))(fs||{}),tS=(n=>(n.Repository="repository",n.Testbot="testbot",n))(tS||{}),nS=(i=>(i.Identified="identified",i.Passed="passed",i.Failed="failed",i))(nS||{}),Yn=d.string().trim().min(1),Woe=d.string().regex(/^[a-z0-9][a-z0-9-]*$/,"must be a short lowercase slug").describe("short-slug");var Zoe=d.object({id:Woe,source:d.nativeEnum(tS),kind:d.nativeEnum(Xs),outcome:d.nativeEnum(nS),summary:Yn.max(400).describe("one line: what it shows"),tests:d.array(Yn).optional().describe("source repository: the existing tests, as repo-relative paths, optionally path::test-name"),repository:Yn.optional().describe("source repository: owner/repo the tests live in, when the run has several checkouts; omit for the working checkout"),command:Yn.optional().describe("source testbot: the exact command you ran, as you ran it"),run:Pa.optional().describe(`source repository, for tests in ${Ru}: how the run executes the whole of each of these test files, all of them in one command, never narrowed to the named tests and never only listed, with the repository's own runner writing JUnit XML to {junit}. A test is credited to a file only by its name or by a report that names the file`)}),Koe=d.object({behaviorId:Yn.describe("an id from analyze's behaviors"),mechanism:d.nativeEnum(fs),evidenceIds:d.array(Yn).default([]).describe("existing_evidence: the ci-<n> or evidence ids that establish it; existing_unit: the evidence id naming the tests to run"),covers:d.string().trim().optional().describe('new_unit / runtime: the missing evidence this obtains, e.g. "the boundary the change moved"; unaffected: why the change cannot reach it, citing path:line')}),rS=(i=>(i.Browser="browser",i.RunningApp="running-app",i.Outside="outside",i))(rS||{}),Xoe=d.object({behaviorId:d.string().trim().optional().describe("an id from analyze's behaviors, when it is about one"),missing:Yn.max(600).describe("the evidence that is required and cannot be obtained in this run"),needs:d.nativeEnum(rS).optional().describe("what that evidence needs: browser (only a real browser shows it), running-app (only the running app or its server shows it: its real requests, sign-in and permissions, what it saves), or outside (something the running app here could not give either: a third-party service it calls, hardware)")}),eae=d.object({file:Yn.describe("the changed file the failure is in"),repository:Yn.optional().describe("owner/repo the file is in, when the run has several checkouts; omit for the working checkout"),reason:Yn.max(300).describe("what prerequisite the change fails"),evidence:Yn.max(400).describe("the error line, quoted")}),tae=d.object({behaviorId:Yn.describe("an id from analyze's behaviors"),reason:Yn.max(600).describe("\u2264600 characters: why this change leaves the behavior's result as it was, citing the unchanged line that decides it (path:line)")}),kp=d.object({schemaVersion:d.literal(1),decision:d.nativeEnum(ps),evidence:d.array(Zoe).describe("evidence this session found or produced; CI results are the ci-<n> items and are not restated here"),plan:d.array(Koe).describe("how each changed behavior's evidence is obtained"),gaps:d.array(Xoe),outOfScope:d.array(tae).optional().describe("behaviors analyze found that this change neither changes nor states"),blocked:eae.optional().describe("only for blocked_preflight"),rationale:Yn.max(1200).describe("\u22641200 characters: why this evidence is enough, or what it still lacks \u2014 the scope you chose and why")});var Or=re(require("fs")),Yz=require("child_process"),Wz=require("module"),Zz=re(require("os")),Mi=re(require("path"));var De={};Vr(De,{$brand:()=>mS,$input:()=>YR,$output:()=>HR,INVALID:()=>_n,NEVER:()=>hS,TimePrecision:()=>aQ,ZodAny:()=>Hx,ZodArray:()=>Kx,ZodBase64:()=>aE,ZodBase64URL:()=>cE,ZodBigInt:()=>pl,ZodBigIntFormat:()=>dE,ZodBoolean:()=>dl,ZodCIDRv4:()=>sE,ZodCIDRv6:()=>oE,ZodCUID:()=>Ky,ZodCUID2:()=>Xy,ZodCatch:()=>E$,ZodCodec:()=>Sf,ZodCompileAsyncError:()=>si,ZodCompileUnsupportedError:()=>ze,ZodCreditCard:()=>Mx,ZodCustom:()=>kf,ZodCustomStringFormat:()=>Xa,ZodDate:()=>Ef,ZodDefault:()=>f$,ZodDiscriminatedUnion:()=>e$,ZodE164:()=>uE,ZodEmail:()=>Hy,ZodEmoji:()=>Wy,ZodEnum:()=>cl,ZodError:()=>Ide,ZodExactOptional:()=>gE,ZodFile:()=>u$,ZodFirstPartyTypeKind:()=>D$,ZodFunction:()=>Q$,ZodGUID:()=>Yy,ZodIBAN:()=>Lx,ZodIPv4:()=>rE,ZodIPv6:()=>iE,ZodISODate:()=>mo,ZodISODateTime:()=>ho,ZodISODuration:()=>Eo,ZodISOTime:()=>yo,ZodInstanceOf:()=>T$,ZodIntersection:()=>t$,ZodIssueCode:()=>wde,ZodJWT:()=>lE,ZodKSUID:()=>nE,ZodLazy:()=>k$,ZodLiteral:()=>c$,ZodMAC:()=>Ox,ZodMap:()=>o$,ZodNaN:()=>v$,ZodNanoID:()=>Zy,ZodNever:()=>Wx,ZodNonOptional:()=>hE,ZodNull:()=>qx,ZodNullable:()=>p$,ZodNumber:()=>ll,ZodNumberFormat:()=>ec,ZodObject:()=>vf,ZodOptional:()=>wf,ZodPipe:()=>Cf,ZodPrefault:()=>g$,ZodPreprocess:()=>b$,ZodPromise:()=>R$,ZodReadonly:()=>w$,ZodRealError:()=>er,ZodRecord:()=>al,ZodSet:()=>a$,ZodString:()=>ul,ZodStringFormat:()=>ft,ZodSuccess:()=>y$,ZodSymbol:()=>Vx,ZodTemplateLiteral:()=>S$,ZodTransform:()=>l$,ZodTuple:()=>r$,ZodType:()=>Ue,ZodULID:()=>eE,ZodURL:()=>yf,ZodUUID:()=>Oi,ZodUndefined:()=>zx,ZodUnion:()=>bf,ZodUnknown:()=>Yx,ZodVoid:()=>Zx,ZodXID:()=>tE,ZodXor:()=>Xx,_ZodString:()=>Jy,_default:()=>A$,_function:()=>Cz,any:()=>tz,array:()=>If,base64:()=>NV,base64url:()=>PV,bigint:()=>WV,boolean:()=>Gx,catch:()=>I$,check:()=>Sz,cidrv4:()=>DV,cidrv6:()=>_V,clone:()=>ct,codec:()=>Iz,coerce:()=>N$,compile:()=>XR,config:()=>Pt,core:()=>ys,creditCard:()=>UV,cuid:()=>SV,cuid2:()=>kV,currencyCode:()=>VV,custom:()=>kz,date:()=>rz,decode:()=>Tx,decodeAsync:()=>_x,deepPartial:()=>Oz,describe:()=>Bz,discriminatedUnion:()=>uz,e164:()=>FV,email:()=>gV,emoji:()=>wV,encode:()=>$x,encodeAsync:()=>Dx,endsWith:()=>Wu,enum:()=>fE,exactOptional:()=>d$,file:()=>hz,flattenError:()=>Fp,float32:()=>qV,float64:()=>JV,formatError:()=>Up,fromJSONSchema:()=>Fz,function:()=>Cz,getDiscriminatedOption:()=>hB,getErrorMap:()=>Sde,globalRegistry:()=>dn,gt:()=>Fi,gte:()=>vr,guid:()=>hV,hash:()=>zV,hex:()=>GV,hostname:()=>jV,httpUrl:()=>bV,iban:()=>OV,includes:()=>Hu,input:()=>Lz,instanceof:()=>Qz,int:()=>zy,int32:()=>HV,int64:()=>ZV,intersection:()=>n$,invertCodec:()=>vz,ipv4:()=>xV,ipv6:()=>TV,iso:()=>Bf,json:()=>$z,jwt:()=>MV,keyof:()=>iz,ksuid:()=>QV,lazy:()=>B$,length:()=>Ha,literal:()=>gz,locales:()=>cf,looseObject:()=>az,looseRecord:()=>dz,lowercase:()=>qu,lt:()=>Pi,lte:()=>Ir,mac:()=>$V,map:()=>pz,maxLength:()=>Ja,maxSize:()=>po,memoizer:()=>nf,meta:()=>Rz,mime:()=>Ku,minLength:()=>ms,minSize:()=>Ui,multipleOf:()=>lo,nan:()=>Ez,nanoid:()=>CV,nativeEnum:()=>Az,negative:()=>_y,never:()=>pE,nonnegative:()=>Py,nonoptional:()=>m$,nonpositive:()=>Ny,normalize:()=>Xu,null:()=>Jx,nullable:()=>mf,nullish:()=>mz,number:()=>jx,object:()=>sz,optional:()=>Za,output:()=>jz,overwrite:()=>oi,parse:()=>Bx,parseAsync:()=>Rx,partialRecord:()=>lz,pipe:()=>qy,positive:()=>Dy,prefault:()=>h$,preprocess:()=>Tz,prettifyError:()=>bS,promise:()=>wz,properties:()=>Zu,property:()=>Fy,readonly:()=>C$,record:()=>s$,refine:()=>x$,regex:()=>zu,regexes:()=>Fr,registry:()=>cy,safeDecode:()=>Px,safeDecodeAsync:()=>Ux,safeEncode:()=>Nx,safeEncodeAsync:()=>Fx,safeParse:()=>Qx,safeParseAsync:()=>xx,set:()=>fz,setErrorMap:()=>Cde,size:()=>qa,slugify:()=>rl,startsWith:()=>Yu,strictObject:()=>oz,string:()=>hf,stringFormat:()=>LV,stringbool:()=>xz,success:()=>yz,superRefine:()=>$$,symbol:()=>XV,templateLiteral:()=>bz,toJSONSchema:()=>Ly,toLowerCase:()=>tl,toUpperCase:()=>nl,toZod:()=>Bp,transform:()=>AE,treeifyError:()=>vS,trim:()=>el,tuple:()=>i$,uint32:()=>YV,uint64:()=>KV,ulid:()=>BV,undefined:()=>ez,union:()=>fl,unknown:()=>Wa,uppercase:()=>Ju,url:()=>vV,util:()=>N,uuid:()=>mV,uuidv4:()=>yV,uuidv6:()=>EV,uuidv7:()=>IV,validate:()=>Op,validateAsync:()=>Mp,void:()=>nz,withParser:()=>uy,xid:()=>RV,xor:()=>cz});var ys={};Vr(ys,{$ZodAny:()=>aB,$ZodArray:()=>fB,$ZodAsyncError:()=>Kn,$ZodBase64:()=>Yk,$ZodBase64URL:()=>Wk,$ZodBigInt:()=>Zm,$ZodBigIntFormat:()=>rB,$ZodBoolean:()=>Wp,$ZodCIDRv4:()=>Jk,$ZodCIDRv6:()=>Hk,$ZodCUID:()=>Nk,$ZodCUID2:()=>Pk,$ZodCatch:()=>TB,$ZodCheck:()=>ht,$ZodCheckBigIntFormat:()=>ck,$ZodCheckEndsWith:()=>Ik,$ZodCheckGreaterThan:()=>Nm,$ZodCheckIncludes:()=>yk,$ZodCheckLengthEquals:()=>Ak,$ZodCheckLessThan:()=>_m,$ZodCheckLowerCase:()=>hk,$ZodCheckMaxLength:()=>pk,$ZodCheckMaxSize:()=>uk,$ZodCheckMimeType:()=>wk,$ZodCheckMinLength:()=>fk,$ZodCheckMinSize:()=>lk,$ZodCheckMultipleOf:()=>ok,$ZodCheckNumberFormat:()=>ak,$ZodCheckOverwrite:()=>Ck,$ZodCheckProperties:()=>bk,$ZodCheckProperty:()=>vk,$ZodCheckRegex:()=>gk,$ZodCheckSizeEquals:()=>dk,$ZodCheckStartsWith:()=>Ek,$ZodCheckStringFormat:()=>Mu,$ZodCheckUpperCase:()=>mk,$ZodCodec:()=>Kp,$ZodCreditCard:()=>Kk,$ZodCustom:()=>OB,$ZodCustomStringFormat:()=>tB,$ZodCyclicError:()=>iy,$ZodDate:()=>dB,$ZodDefault:()=>RB,$ZodDiscriminatedUnion:()=>mB,$ZodE164:()=>Zk,$ZodEmail:()=>Qk,$ZodEmoji:()=>Dk,$ZodEncodeError:()=>co,$ZodEnum:()=>bB,$ZodError:()=>IS,$ZodExactOptional:()=>kB,$ZodFile:()=>CB,$ZodFunction:()=>FB,$ZodGUID:()=>Bk,$ZodIBAN:()=>Xk,$ZodIPv4:()=>Vk,$ZodIPv6:()=>zk,$ZodISODate:()=>Lk,$ZodISODateTime:()=>Mk,$ZodISODuration:()=>Gk,$ZodISOTime:()=>jk,$ZodIntersection:()=>yB,$ZodJWT:()=>eB,$ZodKSUID:()=>Ok,$ZodLazy:()=>Xp,$ZodLiteral:()=>wB,$ZodMAC:()=>qk,$ZodMap:()=>IB,$ZodNaN:()=>DB,$ZodNanoID:()=>_k,$ZodNever:()=>uB,$ZodNonOptional:()=>xB,$ZodNull:()=>oB,$ZodNullable:()=>BB,$ZodNumber:()=>Wm,$ZodNumberFormat:()=>nB,$ZodObject:()=>$G,$ZodObjectJIT:()=>AB,$ZodOptional:()=>Xm,$ZodPipe:()=>ey,$ZodPrefault:()=>QB,$ZodPreprocess:()=>_B,$ZodPromise:()=>UB,$ZodReadonly:()=>NB,$ZodRealError:()=>Xn,$ZodRecord:()=>EB,$ZodRegistry:()=>ay,$ZodSet:()=>vB,$ZodString:()=>ja,$ZodStringFormat:()=>ut,$ZodSuccess:()=>$B,$ZodSymbol:()=>iB,$ZodTemplateLiteral:()=>PB,$ZodTransform:()=>SB,$ZodTuple:()=>Km,$ZodType:()=>Te,$ZodULID:()=>Fk,$ZodURL:()=>Tk,$ZodUUID:()=>Rk,$ZodUndefined:()=>sB,$ZodUnion:()=>Zp,$ZodUnknown:()=>cB,$ZodVoid:()=>lB,$ZodXID:()=>Uk,$ZodXor:()=>gB,$brand:()=>mS,$constructor:()=>S,$input:()=>YR,$output:()=>HR,Doc:()=>La,INVALID:()=>_n,JSONSchema:()=>pV,JSONSchemaGenerator:()=>jy,NEVER:()=>hS,TimePrecision:()=>aQ,URL_BAD_FORMAT:()=>xk,URL_UNPARSEABLE:()=>zp,ZodCompileAsyncError:()=>si,ZodCompileUnsupportedError:()=>ze,_any:()=>CQ,_array:()=>$Q,_base64:()=>Qy,_base64url:()=>xy,_bigint:()=>mQ,_boolean:()=>gQ,_catch:()=>cde,_check:()=>WG,_cidrv4:()=>By,_cidrv6:()=>Ry,_coercedBigint:()=>yQ,_coercedBoolean:()=>hQ,_coercedDate:()=>QQ,_coercedNumber:()=>uQ,_coercedString:()=>rQ,_creditCard:()=>sQ,_cuid:()=>Iy,_cuid2:()=>vy,_custom:()=>DQ,_date:()=>RQ,_decode:()=>wm,_decodeAsync:()=>Sm,_default:()=>sde,_discriminatedUnion:()=>Jle,_e164:()=>$y,_email:()=>py,_emoji:()=>yy,_encode:()=>bm,_encodeAsync:()=>Cm,_endsWith:()=>Wu,_enum:()=>Xle,_file:()=>TQ,_float32:()=>dQ,_float64:()=>pQ,_gt:()=>Fi,_gte:()=>vr,_guid:()=>fy,_iban:()=>oQ,_includes:()=>Hu,_int:()=>lQ,_int32:()=>fQ,_int64:()=>EQ,_intersection:()=>Hle,_ipv4:()=>Sy,_ipv6:()=>ky,_isoDate:()=>df,_isoDateTime:()=>lf,_isoDuration:()=>ff,_isoTime:()=>pf,_jwt:()=>Ty,_ksuid:()=>Cy,_lazy:()=>pde,_length:()=>Ha,_literal:()=>tde,_lowercase:()=>qu,_lt:()=>Pi,_lte:()=>Ir,_mac:()=>iQ,_map:()=>Zle,_max:()=>Ir,_maxLength:()=>Ja,_maxSize:()=>po,_mime:()=>Ku,_min:()=>vr,_minLength:()=>ms,_minSize:()=>Ui,_multipleOf:()=>lo,_nan:()=>xQ,_nanoid:()=>Ey,_nativeEnum:()=>ede,_negative:()=>_y,_never:()=>kQ,_nonnegative:()=>Py,_nonoptional:()=>ode,_nonpositive:()=>Ny,_normalize:()=>Xu,_null:()=>wQ,_nullable:()=>ide,_number:()=>cQ,_optional:()=>rde,_overwrite:()=>oi,_parse:()=>Pu,_parseAsync:()=>Fu,_pipe:()=>ude,_positive:()=>Dy,_promise:()=>fde,_properties:()=>Zu,_property:()=>Fy,_readonly:()=>lde,_record:()=>Wle,_refine:()=>_Q,_regex:()=>zu,_safeDecode:()=>Bm,_safeDecodeAsync:()=>Qm,_safeEncode:()=>km,_safeEncodeAsync:()=>Rm,_safeParse:()=>Uu,_safeParseAsync:()=>Ou,_set:()=>Kle,_size:()=>qa,_slugify:()=>rl,_startsWith:()=>Yu,_string:()=>nQ,_stringFormat:()=>Ya,_stringbool:()=>UQ,_success:()=>ade,_superRefine:()=>NQ,_symbol:()=>vQ,_templateLiteral:()=>dde,_toLowerCase:()=>tl,_toUpperCase:()=>nl,_transform:()=>nde,_trim:()=>el,_tuple:()=>Yle,_uint32:()=>AQ,_uint64:()=>IQ,_ulid:()=>by,_undefined:()=>bQ,_union:()=>zle,_unknown:()=>SQ,_uppercase:()=>Ju,_url:()=>uf,_uuid:()=>Ay,_uuidv4:()=>gy,_uuidv6:()=>hy,_uuidv7:()=>my,_void:()=>BQ,_xid:()=>wy,_xor:()=>qle,base64Charset:()=>zm,base64urlCharset:()=>Yp,canParseURL:()=>$k,clone:()=>ct,compile:()=>XR,compileFn:()=>ly,config:()=>Pt,createStandardJSONSchemaMethod:()=>il,createToJSONSchemaMethod:()=>MQ,decode:()=>qae,decodeAsync:()=>Hae,describe:()=>PQ,encode:()=>zae,encodeAsync:()=>Jae,extractDefs:()=>Ao,finalize:()=>go,flattenError:()=>Fp,formatError:()=>Up,getDiscriminatedOption:()=>hB,globalConfig:()=>en,globalRegistry:()=>dn,handleUnrepresentable:()=>Jt,initializeContext:()=>fo,isBackEdge:()=>oy,isRecursiveSchema:()=>sy,isValidBase64:()=>Hp,isValidBase64URL:()=>qm,isValidCIDRv6:()=>Vm,isValidCreditCard:()=>Jm,isValidIBAN:()=>Hm,isValidIPv6:()=>Jp,isValidJWT:()=>Ym,locales:()=>cf,memoizer:()=>nf,mergeValues:()=>Lu,meta:()=>FQ,parse:()=>Im,parseAsync:()=>vm,parseURLObject:()=>RG,prettifyError:()=>bS,process:()=>lt,processSchema:()=>lt,regexes:()=>Fr,registry:()=>cy,safeDecode:()=>Wae,safeDecodeAsync:()=>Kae,safeEncode:()=>Yae,safeEncodeAsync:()=>Zae,safeParse:()=>Mae,safeParseAsync:()=>Lae,standardProps:()=>Mm,stripTabAndNewline:()=>qp,toDotPath:()=>aG,toJSONSchema:()=>Ly,toZod:()=>Bp,treeifyError:()=>vS,urlHostnameOk:()=>jm,urlProtocolOk:()=>Gm,util:()=>N,validate:()=>Op,validateAsync:()=>Mp,validateURL:()=>Lm,version:()=>Sk,withParser:()=>uy});var N={};Vr(N,{BIGINT_FORMAT_RANGES:()=>Tp,CONSTANT_CATCH:()=>ym,Class:()=>oS,NUMBER_FORMAT_RANGES:()=>$p,aborted:()=>Dn,allowsEval:()=>uS,assert:()=>oae,assertEqual:()=>nae,assertIs:()=>iae,assertNever:()=>sae,assertNotEqual:()=>rae,assignProp:()=>ln,attachSchema:()=>Dp,base64ToUint8Array:()=>tG,base64urlToUint8Array:()=>Sae,cached:()=>Tu,captureStackTrace:()=>hm,cleanEnum:()=>Cae,cleanRegex:()=>gs,clone:()=>ct,cloneDef:()=>uae,codePointLength:()=>Oa,constantCatch:()=>AS,createTransparentProxy:()=>gae,defineLazy:()=>aS,defineLazyInternal:()=>Le,derived:()=>Qae,esc:()=>Tn,escapeRegex:()=>Pr,explicitlyAborted:()=>pS,extend:()=>yae,finalizeIssue:()=>Zn,floatSafeRemainder:()=>Rp,getElementAtPath:()=>lae,getEnumValues:()=>xu,getLengthableOrigin:()=>Np,getParsedType:()=>Aae,getSizableOrigin:()=>_p,hexToUint8Array:()=>Bae,hide:()=>Pp,installLazyProp:()=>Dae,isObject:()=>Ua,isPlainObject:()=>Nr,issue:()=>Nu,joinValues:()=>B,jsonStringifyReplacer:()=>$u,members:()=>fS,merge:()=>Iae,mergeDefs:()=>ii,normalizeParams:()=>q,nullish:()=>gm,numKeys:()=>fae,objectClone:()=>aae,omit:()=>mae,optionalKeys:()=>dS,own:()=>ao,parsedType:()=>F,partial:()=>vae,pick:()=>hae,prefixIssues:()=>Wn,primitiveTypes:()=>lS,promiseAllObject:()=>dae,propertyKeyTypes:()=>xp,randomString:()=>pae,rawShape:()=>Du,required:()=>bae,safeExtend:()=>Eae,shallowClone:()=>Qp,sizeCaps:()=>_u,slugify:()=>cS,stringifyPrimitive:()=>P,toZod:()=>Bp,uint8ArrayToBase64:()=>nG,uint8ArrayToBase64url:()=>kae,uint8ArrayToHex:()=>Rae,unwrapMessage:()=>Qu});function nae(e){return e}o(nae,"assertEqual");function rae(e){return e}o(rae,"assertNotEqual");function Bp(){return e=>e}o(Bp,"toZod");function iae(e){}o(iae,"assertIs");function sae(e){throw new Error("Unexpected value in exhaustive check")}o(sae,"assertNever");function oae(e){}o(oae,"assert");function xu(e){let t=Object.values(e).filter(i=>typeof i=="number");return Object.entries(e).filter(([i,r])=>t.indexOf(+i)===-1).map(([i,r])=>r)}o(xu,"getEnumValues");function B(e,t="|"){return e.map(n=>P(n)).join(t)}o(B,"joinValues");function $u(e,t){return typeof t=="bigint"?t.toString():t}o($u,"jsonStringifyReplacer");var sS=class{static{o(this,"Cached")}constructor(t){this._getter=t,this._value=void 0}get value(){let t=this._getter;return t!==void 0&&(this._value=t(),this._getter=void 0),this._value}};function Tu(e){return new sS(e)}o(Tu,"cached");function gm(e){return e==null}o(gm,"nullish");function gs(e){let t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}o(gs,"cleanRegex");function Rp(e,t){let n=e/t,i=Math.round(n),r=4*Number.EPSILON*Math.max(Math.abs(n),1);return Math.abs(n-i)<r?0:n-i}o(Rp,"floatSafeRemainder");var Z1=Symbol("evaluating");function aS(e,t,n){let i;Object.defineProperty(e,t,{get(){if(i!==Z1)return i===void 0&&(i=Z1,i=n()),i},set(r){Object.defineProperty(e,t,{value:r})},configurable:!0})}o(aS,"defineLazy");function aae(e){return Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e))}o(aae,"objectClone");function ln(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}o(ln,"assignProp");function Du(e){let t=Object.getOwnPropertyDescriptor(e,"shape");return t?.get?t.get.raw:t?.value}o(Du,"rawShape");function As(e){return Du(e._zod.def)??e._zod.def.shape}o(As,"sourceShape");function K1(e,t,n){Object.defineProperty(e,t,{get(){let i=n();return ln(this,t,i),i},enumerable:!0,configurable:!0})}o(K1,"deferProp");function X1(e,t,n){t in e?ln(e,t,n):e[t]=n}o(X1,"putProp");function Fa(e,t,n,i){let r=As(t);for(let s of n){let a=Object.getOwnPropertyDescriptor(r,s);a.enumerable&&(a.get?K1(e,s,()=>{let c=t._zod.def.shape[s];return i?i(c,s):c}):X1(e,s,i?i(a.value,s):a.value))}}o(Fa,"mirrorShape");function cae(e,t){for(let n of Reflect.ownKeys(t)){let i=Object.getOwnPropertyDescriptor(t,n);i.enumerable&&(i.get?K1(e,n,()=>t[n]):X1(e,n,i.value))}}o(cae,"mirrorProps");function ii(...e){let t={};for(let n of e){let i=Object.getOwnPropertyDescriptors(n);Object.assign(t,i)}return Object.defineProperties({},t)}o(ii,"mergeDefs");function uae(e){return ii(e._zod.def)}o(uae,"cloneDef");function lae(e,t){return t?t.reduce((n,i)=>n?.[i],e):e}o(lae,"getElementAtPath");function dae(e){let t=Object.keys(e),n=t.map(i=>e[i]);return Promise.all(n).then(i=>{let r={};for(let s=0;s<t.length;s++)r[t[s]]=i[s];return r})}o(dae,"promiseAllObject");function pae(e=10){let t="abcdefghijklmnopqrstuvwxyz",n="";for(let i=0;i<e;i++)n+=t[Math.floor(Math.random()*t.length)];return n}o(pae,"randomString");function Tn(e){return JSON.stringify(e)}o(Tn,"esc");function cS(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}o(cS,"slugify");var hm="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Ua(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}o(Ua,"isObject");var uS=Tu(()=>{if(en.jitless||typeof navigator<"u"&&navigator?.userAgent?.includes("Cloudflare"))return!1;try{let e=Function;return new e(""),!0}catch{return!1}});function Nr(e){if(Ua(e)===!1)return!1;let t=e.constructor;if(t===void 0||typeof t!="function")return!0;let n=t.prototype;return!(Ua(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}o(Nr,"isPlainObject");function Qp(e){return Nr(e)?{...e}:Array.isArray(e)?[...e]:e instanceof Map?new Map(e):e instanceof Set?new Set(e):e}o(Qp,"shallowClone");function fae(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}o(fae,"numKeys");var Aae=o(e=>{let t=typeof e;switch(t){case"undefined":return"undefined";case"string":return"string";case"number":return Number.isNaN(e)?"nan":"number";case"boolean":return"boolean";case"function":return"function";case"bigint":return"bigint";case"symbol":return"symbol";case"object":return Array.isArray(e)?"array":e===null?"null":e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?"promise":typeof Map<"u"&&e instanceof Map?"map":typeof Set<"u"&&e instanceof Set?"set":typeof Date<"u"&&e instanceof Date?"date":typeof File<"u"&&e instanceof File?"file":"object";default:throw new Error(`Unknown data type: ${t}`)}},"getParsedType"),xp=new Set(["string","number","symbol"]),lS=new Set(["string","number","bigint","boolean","symbol","undefined"]);function Pr(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}o(Pr,"escapeRegex");function ct(e,t,n){let i=new e._zod.constr(t??e._zod.def);return(!t||n?.parent)&&(i._zod.parent=e),i}o(ct,"clone");function q(e){let t=e;if(!t)return{};if(typeof t=="string")return{error:o(()=>t,"error")};if(t?.message!==void 0){if(t?.error!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:o(()=>t.error,"error")}:t}o(q,"normalizeParams");function gae(e){let t;return new Proxy({},{get(n,i,r){return t??(t=e()),Reflect.get(t,i,r)},set(n,i,r,s){return t??(t=e()),Reflect.set(t,i,r,s)},has(n,i){return t??(t=e()),Reflect.has(t,i)},deleteProperty(n,i){return t??(t=e()),Reflect.deleteProperty(t,i)},ownKeys(n){return t??(t=e()),Reflect.ownKeys(t)},getOwnPropertyDescriptor(n,i){return t??(t=e()),Reflect.getOwnPropertyDescriptor(t,i)},defineProperty(n,i,r){return t??(t=e()),Reflect.defineProperty(t,i,r)}})}o(gae,"createTransparentProxy");function P(e){return typeof e=="bigint"?e.toString()+"n":typeof e=="string"?`"${e}"`:`${e}`}o(P,"stringifyPrimitive");function dS(e){return Object.keys(e).filter(t=>e[t]._zod.optin!==void 0&&e[t]._zod.optout==="optional")}o(dS,"optionalKeys");var $p={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]},Tp={int64:[BigInt("-9223372036854775808"),BigInt("9223372036854775807")],uint64:[BigInt(0),BigInt("18446744073709551615")]};function hae(e,t){let n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".pick() cannot be used on object schemas containing refinements");let s={};return Fa(s,e,mm(e,t)),ct(e,ii(n,{shape:s,checks:[]}))}o(hae,"pick");function mm(e,t){let n=As(e),i=[];for(let r of Reflect.ownKeys(t)){if(!Object.getOwnPropertyDescriptor(n,r)?.enumerable)throw new Error(`Unrecognized key: "${String(r)}"`);t[r]&&i.push(r)}return i}o(mm,"maskedKeys");function mae(e,t){let n=e._zod.def,i=n.checks;if(i&&i.length>0)throw new Error(".omit() cannot be used on object schemas containing refinements");let s=new Set(mm(e,t)),a={};return Fa(a,e,Reflect.ownKeys(As(e)).filter(c=>!s.has(c))),ct(e,ii(n,{shape:a,checks:[]}))}o(mae,"omit");function yae(e,t){if(!Nr(t))throw new Error("Invalid input to extend: expected a plain object");let n=e._zod.def.checks;if(n&&n.length>0){let r=As(e);for(let s of Reflect.ownKeys(t))if(Object.getOwnPropertyDescriptor(r,s)!==void 0)throw new Error("Cannot overwrite keys on object schemas containing refinements. Use `.safeExtend()` instead.")}return ct(e,ii(e._zod.def,{shape:eG(e,t)}))}o(yae,"extend");function eG(e,t){let n={};return Fa(n,e,Reflect.ownKeys(As(e))),cae(n,t),n}o(eG,"extended");function Eae(e,t){if(!Nr(t))throw new Error("Invalid input to safeExtend: expected a plain object");return ct(e,ii(e._zod.def,{shape:eG(e,t)}))}o(Eae,"safeExtend");function Iae(e,t){if(!t?._zod?.def)throw new Error("Invalid input to merge: expected an object schema. To merge a plain shape, use `.extend()`.");if(e._zod.def.checks?.length)throw new Error(".merge() cannot be used on object schemas containing refinements. Use .safeExtend() instead.");let n={};Fa(n,e,Reflect.ownKeys(As(e))),Fa(n,t,Reflect.ownKeys(As(t)));let i=ii(e._zod.def,{shape:n,get catchall(){return t._zod.def.catchall},checks:t._zod.def.checks??[]});return ct(e,i)}o(Iae,"merge");function vae(e,t,n,i="partial"){let s=t._zod.def.checks;if(s&&s.length>0)throw new Error(`.${i}() cannot be used on object schemas containing refinements`);let c=n?new Set(mm(t,n)):void 0,u={};return Fa(u,t,Reflect.ownKeys(As(t)),e&&((l,p)=>c&&!c.has(p)?l:new e({type:"optional",innerType:l}))),ct(t,ii(t._zod.def,{shape:u,checks:[]}))}o(vae,"partial");function bae(e,t,n){let i=n?new Set(mm(t,n)):void 0,r={};return Fa(r,t,Reflect.ownKeys(As(t)),(s,a)=>i&&!i.has(a)?s:new e({type:"nonoptional",innerType:s})),ct(t,ii(t._zod.def,{shape:r}))}o(bae,"required");function Dn(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue!==!0)return!0;return!1}o(Dn,"aborted");function pS(e,t=0){if(e.aborted===!0)return!0;for(let n=t;n<e.issues.length;n++)if(e.issues[n]?.continue===!1)return!0;return!1}o(pS,"explicitlyAborted");function Wn(e,t){return t.map(n=>{var i;return(i=n).path??(i.path=[]),n.path.unshift(e),n})}o(Wn,"prefixIssues");function Qu(e){return typeof e=="string"?e:e?.message}o(Qu,"unwrapMessage");function _u(e){let t=[];for(let n of e??[]){let i=n._zod.def;if(!/_(length|size)$|_equals$/.test(i.check))break;let r=i.maximum??i.length??i.size;r>=0&&t.push([r,n])}return t}o(_u,"sizeCaps");function Dp(e,t,n){var i;for(let r=t;r<e.length;r++)(i=e[r]).schema??(i.schema=n)}o(Dp,"attachSchema");function Zn(e,t,n){var i;let r=e.inst?._zod?.traits;r?.has("$ZodType")&&(r.has("$ZodCheck")?(i=e).schema??(i.schema=e.inst):e.schema=e.inst);let s=e.schema!==e.inst?e.schema?._zod.def?.error:void 0,a=e.message?e.message:Qu(e.inst?._zod.def?.error?.(e))??Qu(s?.(e))??Qu(t?.error?.(e))??Qu(n.customError?.(e))??Qu(n.localeError?.(e))??"Invalid input",c={};for(let u of Object.keys(e))u==="inst"||u==="schema"||u==="continue"||u==="input"||u==="__proto__"||(c[u]=e[u]);return c.path??(c.path=[]),c.message=a,t?.reportInput&&(c.input=e.input),c}o(Zn,"finalizeIssue");function _p(e){return e instanceof Set?"set":e instanceof Map?"map":e instanceof File?"file":"unknown"}o(_p,"getSizableOrigin");var wae=/[\uD800-\uDBFF]/;function Oa(e){let t=e.length;if(!wae.test(e))return t;let n=t;for(let i=0;i<t-1;i++)(e.charCodeAt(i)&64512)===55296&&(e.charCodeAt(i+1)&64512)===56320&&(n--,i++);return n}o(Oa,"codePointLength");function Np(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}o(Np,"getLengthableOrigin");function F(e){let t=typeof e;switch(t){case"number":return Number.isNaN(e)?"nan":"number";case"object":{if(e===null)return"null";if(Array.isArray(e))return"array";let n=e;if(n&&Object.getPrototypeOf(n)!==Object.prototype&&"constructor"in n&&n.constructor)return n.constructor.name}}return t}o(F,"parsedType");function Nu(...e){let[t,n,i]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:i}:{...t}}o(Nu,"issue");function Cae(e){return Object.entries(e).filter(([t,n])=>Number.isNaN(Number.parseInt(t,10))).map(t=>t[1])}o(Cae,"cleanEnum");function tG(e){let t=atob(e),n=new Uint8Array(t.length);for(let i=0;i<t.length;i++)n[i]=t.charCodeAt(i);return n}o(tG,"base64ToUint8Array");function nG(e){let t="";for(let n=0;n<e.length;n++)t+=String.fromCharCode(e[n]);return btoa(t)}o(nG,"uint8ArrayToBase64");function Sae(e){let t=e.replace(/-/g,"+").replace(/_/g,"/"),n="=".repeat((4-t.length%4)%4);return tG(t+n)}o(Sae,"base64urlToUint8Array");function kae(e){return nG(e).replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,"")}o(kae,"uint8ArrayToBase64url");function Bae(e){let t=e.replace(/^0x/,"");if(t.length%2!==0)throw new Error("Invalid hex string length");let n=new Uint8Array(t.length/2);for(let i=0;i<t.length;i+=2)n[i/2]=Number.parseInt(t.slice(i,i+2),16);return n}o(Bae,"hexToUint8Array");function Rae(e){return Array.from(e).map(t=>t.toString(16).padStart(2,"0")).join("")}o(Rae,"uint8ArrayToHex");var oS=class{static{o(this,"Class")}constructor(...t){}};function fS(e,t){for(let n in t){let i=Object.getOwnPropertyDescriptor(t,n);i.get?Object.defineProperty(e,n,{...i,enumerable:!1}):xae(e,n,i.value)}}o(fS,"members");function ao(e,t,n,i=!0){return Object.defineProperty(e,t,{configurable:!0,writable:!0,enumerable:i,value:n}),n}o(ao,"own");function Pp(e,t,n){return ao(e,t,n,!1)}o(Pp,"hide");function Qae(e,t){for(let n in e){let i=e[n];Object.defineProperty(t,n,{configurable:!0,enumerable:!0,get(){return ao(this,n,i(this))},set(r){ao(this,n,r)}})}return t}o(Qae,"derived");function xae(e,t,n){Object.defineProperty(e,t,{configurable:!0,get(){return this==null?n:ao(this,t,n.bind(this))},set(i){ao(this,t,i)}})}o(xae,"defineBound");function $ae(e,t){let n=Object.getPrototypeOf(e);return t in n?void 0:n}o($ae,"claim");var iS,oo=!1,Tae={configurable:!0,get(){oo=!0}};function Le(e,t,n){let i=Object.getPrototypeOf(e._zod);if(t in i&&iS!==e._zod){iS=void 0;return}iS=e._zod,Object.defineProperty(i,t,{configurable:!0,get(){Object.defineProperty(this,t,Tae);let r=oo;oo=!1;try{let s=n(this);return oo?delete this[t]:Object.defineProperty(this,t,{configurable:!0,writable:!0,value:s}),oo=oo||r,s}catch(s){throw delete this[t],oo=oo||r,s}},set(r){Object.defineProperty(this,t,{configurable:!0,writable:!0,value:r})}})}o(Le,"defineLazyInternal");function Dae(e,t,n,i){let r=$ae(e,t);r&&Object.defineProperty(r,t,{configurable:!0,get(){let s={configurable:!0,writable:!0,enumerable:i,value:void 0};return Object.defineProperty(this,t,s),s.value=n(this),Object.defineProperty(this,t,s),s.value},set(s){Object.defineProperty(this,t,{configurable:!0,writable:!0,enumerable:i,value:s})}})}o(Dae,"installLazyProp");var ym="~constantCatch";function AS(e){let t=o(()=>e,"fn");return t[ym]=!0,t}o(AS,"constantCatch");var rG,hS=Object.freeze({status:"aborted"}),gS={value:void 0,enumerable:!1},iG="captureStackTrace"in Error?Error:null;function _ae(e){let t=iG;if(t){let n=t.stackTraceLimit;if(typeof n=="number"){try{t.stackTraceLimit=0}catch{return iG=null,new e}try{return new e}finally{t.stackTraceLimit=n}}}return new e}o(_ae,"newError");function S(e,t,n,i){let r={};function s(g){this.def=g,this.constr=f,this.traits=new Set}o(s,"Internals"),s.prototype=r;let a=n,c=a&&new WeakSet;function u(g,h){if(g._zod){if(g._zod.traits.has(e))return}else{gS.value=new s(h);try{Object.defineProperty(g,"_zod",gS)}finally{gS.value=void 0}}if(g._zod.traits.add(e),t(g,h),c){let E=Object.getPrototypeOf(g),I=g._zod.constr.prototype,v=E;for(;v&&v!==I;)v=Object.getPrototypeOf(v);let b=v??E;c.has(b)||(c.add(b),fS(b,a))}let m=f.prototype;for(let E in m)Object.prototype.hasOwnProperty.call(m,E)&&(E in g||(g[E]=m[E].bind(g)))}o(u,"init");let l=i?.Parent??Object;class p extends l{static{o(this,"Definition")}}Object.defineProperty(p,"name",{value:e});function f(g){let h=i?.Parent?_ae(p):this;u(h,g);let m=h._zod.deferred;if(m){for(let I of m)I();h._zod.deferred=void 0}let E=globalThis.__zod_globalConfig?.postProcessor;return E&&E(h),h}return o(f,"_"),Object.defineProperty(f,"init",{value:u}),Object.defineProperty(f,Symbol.hasInstance,{value:o(g=>i?.Parent&&g instanceof i.Parent?!0:g?._zod?.traits?.has(e),"value")}),Object.defineProperty(f,"name",{value:e}),f}o(S,"$constructor");var mS=Symbol("zod_brand"),Kn=class extends Error{static{o(this,"$ZodAsyncError")}constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}},co=class extends Error{static{o(this,"$ZodEncodeError")}constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}};(rG=globalThis).__zod_globalConfig??(rG.__zod_globalConfig={});var en=globalThis.__zod_globalConfig;function Pt(e){return e&&Object.assign(en,e),en}o(Pt,"config");function Nae(){let e=this._zod;return e.message??(e.message=JSON.stringify(e.def,$u,2)),e.message}o(Nae,"_getMessage");function Pae(e){this._zod.message=e}o(Pae,"_setMessage");var Fae={get:Nae,set:Pae,enumerable:!0,configurable:!0},ES={value:void 0,enumerable:!1},sG=new WeakSet([Object.prototype,Error.prototype]),oG=o((e,t)=>{e.name="$ZodError",ES.value=t,Object.defineProperty(e,"issues",ES),ES.value=void 0,Object.defineProperty(e,"message",Fae);let n=Object.getPrototypeOf(e);sG.has(n)||(sG.add(n),Object.defineProperty(n,"toString",{configurable:!0,enumerable:!1,get(){let i=o(()=>this.message,"value");return Object.defineProperty(this,"toString",{value:i,configurable:!0,writable:!0}),i},set(i){Object.defineProperty(this,"toString",{value:i,configurable:!0,writable:!0})}}))},"initializer"),IS=S("$ZodError",oG),Xn=S("$ZodError",oG,void 0,{Parent:Error});function Uae(e,t,n){return Object.prototype.hasOwnProperty.call(e,t)||(t==="__proto__"?Object.defineProperty(e,t,{value:n(),writable:!0,enumerable:!0,configurable:!0}):e[t]=n()),e[t]}o(Uae,"node");function Fp(e,t=n=>n.message){let n={},i=[];for(let r of e.issues)r.path.length>0?Uae(n,r.path[0],()=>[]).push(t(r)):i.push(t(r));return{formErrors:i,fieldErrors:n}}o(Fp,"flattenError");function Up(e,t=n=>n.message){let n={_errors:[]},i=o((r,s=[])=>{for(let a of r.issues)if(a.code==="invalid_union"&&a.errors.length)a.errors.map(c=>i({issues:c},[...s,...a.path]));else if(a.code==="invalid_key")i({issues:a.issues},[...s,...a.path]);else if(a.code==="invalid_element")i({issues:a.issues},[...s,...a.path]);else{let c=[...s,...a.path];if(c.length===0)n._errors.push(t(a));else{let u=n,l=0;for(;l<c.length;){let p=c[l],f=l===c.length-1;if(p==="_errors"){f&&u._errors.push(t(a)),l++;continue}Object.prototype.hasOwnProperty.call(u,p)||Object.defineProperty(u,p,{value:{_errors:[]},enumerable:!0,writable:!0,configurable:!0});let g=u[p];f&&g._errors.push(t(a)),u=g,l++}}}},"processError");return i(e),n}o(Up,"formatError");function vS(e,t=n=>n.message){let n={errors:[]},i=o((r,s=[])=>{var a;for(let c of r.issues)if(c.code==="invalid_union"&&c.errors.length)c.errors.map(u=>i({issues:u},[...s,...c.path]));else if(c.code==="invalid_key")i({issues:c.issues},[...s,...c.path]);else if(c.code==="invalid_element")i({issues:c.issues},[...s,...c.path]);else{let u=[...s,...c.path];if(u.length===0){n.errors.push(t(c));continue}let l=n,p=0;for(;p<u.length;){let f=u[p],g=p===u.length-1;typeof f=="string"?(l.properties??(l.properties={}),Object.prototype.hasOwnProperty.call(l.properties,f)||Object.defineProperty(l.properties,f,{value:{errors:[]},enumerable:!0,writable:!0,configurable:!0}),l=l.properties[f]):(l.items??(l.items=[]),(a=l.items)[f]??(a[f]={errors:[]}),l=l.items[f]),g&&l.errors.push(t(c)),p++}}},"processError");return i(e),n}o(vS,"treeifyError");function aG(e){let t=[],n=e.map(i=>typeof i=="object"?i.key:i);for(let i of n)typeof i=="number"?t.push(`[${i}]`):typeof i=="symbol"?t.push(`[${JSON.stringify(String(i))}]`):/[^\w$]/.test(i)?t.push(`[${JSON.stringify(i)}]`):(t.length&&t.push("."),t.push(i));return t.join("")}o(aG,"toDotPath");function bS(e){let t=[],n=[...e.issues].sort((i,r)=>(i.path??[]).length-(r.path??[]).length);for(let i of n)t.push(`\u2716 ${i.message}`),i.path?.length&&t.push(` \u2192 at ${aG(i.path)}`);return t.join(`
63
63
  `)}o(bS,"prettifyError");function Em(e,t){return{callee:t?.callee??e,Err:t?.Err}}o(Em,"finalizeParams");var Pu=o(e=>{let t=o((n,i,r,s)=>{let a=r?{...r,async:!1}:{async:!1},c=n._zod.run({value:i,issues:[]},a);if(c instanceof Promise)throw new Kn;if(c.issues.length){let u=new(s?.Err??e)(c.issues.map(l=>Zn(l,a,Pt())));throw hm(u,s?.callee??t),u}return c.value},"fn");return t},"_parse"),Im=Pu(Xn),Fu=o(e=>{let t=o(async(n,i,r,s)=>{let a=r?{...r,async:!0}:{async:!0},c=n._zod.run({value:i,issues:[]},a);if(c instanceof Promise&&(c=await c),c.issues.length){let u=new(s?.Err??e)(c.issues.map(l=>Zn(l,a,Pt())));throw hm(u,s?.callee??t),u}return c.value},"fn");return t},"_parseAsync"),vm=Fu(Xn),Uu=o(e=>(t,n,i)=>{let r=i?{...i,async:!1}:{async:!1},s=t._zod.run({value:n,issues:[]},r);if(s instanceof Promise)throw new Kn;return s.issues.length?cG(e,s.issues,r):{success:!0,data:s.value}},"_safeParse"),Mae=Uu(Xn);function cG(e,t,n){let i;return{success:!1,get error(){return i||(i=new e(t.map(r=>Zn(r,n,Pt()))),t=void 0,n=void 0),i},set error(r){i=r,t=void 0,n=void 0}}}o(cG,"failure");var Ou=o(e=>async(t,n,i)=>{let r=i?{...i,async:!0}:{async:!0},s=t._zod.run({value:n,issues:[]},r);return s instanceof Promise&&(s=await s),s.issues.length?cG(e,s.issues,r):{success:!0,data:s.value}},"_safeParseAsync"),Lae=Ou(Xn),jae=Symbol.for("zod.compile.invalid"),Gae=Symbol.for("zod.compile.fallback"),Op=o(((e,t,n)=>{let i=e._zod.bag.validator;if(i!==void 0){if(i(t)!==jae)return!0;if(i.definite===!0&&n===void 0)return!1}return Vae(e,t,n)}),"validate");function Vae(e,t,n){let i=n?{...n,async:!1,abortEarly:!0}:{async:!1,abortEarly:!0},r=e._zod.bag.fallbackRun,s;if(r?(i[Gae]=!0,s=r({value:t,issues:[]},i)):s=e._zod.run({value:t,issues:[]},i),s instanceof Promise)throw new Kn;return s.issues.length===0}o(Vae,"validateFallback");var Mp=o(async(e,t,n)=>{let i=n?{...n,async:!0,abortEarly:!0}:{async:!0,abortEarly:!0},r=e._zod.run({value:t,issues:[]},i);return r instanceof Promise&&(r=await r),r.issues.length===0},"validateAsync"),bm=o(e=>{let t=Pu(e),n=o((i,r,s,a)=>{let c=s?{...s,direction:"backward"}:{direction:"backward"};return t(i,r,c,Em(n,a))},"fn");return n},"_encode"),zae=bm(Xn),wm=o(e=>{let t=Pu(e),n=o((i,r,s,a)=>t(i,r,s,Em(n,a)),"fn");return n},"_decode"),qae=wm(Xn),Cm=o(e=>{let t=Fu(e),n=o(async(i,r,s,a)=>{let c=s?{...s,direction:"backward"}:{direction:"backward"};return await t(i,r,c,Em(n,a))},"fn");return n},"_encodeAsync"),Jae=Cm(Xn),Sm=o(e=>{let t=Fu(e),n=o(async(i,r,s,a)=>await t(i,r,s,Em(n,a)),"fn");return n},"_decodeAsync"),Hae=Sm(Xn),km=o(e=>(t,n,i)=>{let r=i?{...i,direction:"backward"}:{direction:"backward"};return Uu(e)(t,n,r)},"_safeEncode"),Yae=km(Xn),Bm=o(e=>(t,n,i)=>Uu(e)(t,n,i),"_safeDecode"),Wae=Bm(Xn),Rm=o(e=>async(t,n,i)=>{let r=i?{...i,direction:"backward"}:{direction:"backward"};return Ou(e)(t,n,r)},"_safeEncodeAsync"),Zae=Rm(Xn),Qm=o(e=>async(t,n,i)=>Ou(e)(t,n,i),"_safeDecodeAsync"),Kae=Qm(Xn);var Fr={};Vr(Fr,{anyString:()=>YS,base64:()=>MS,base64url:()=>LS,bigint:()=>ZS,boolean:()=>KS,browserEmail:()=>oce,cidrv4:()=>US,cidrv6:()=>OS,creditCard:()=>xm,cuid:()=>CS,cuid2:()=>SS,currencyCode:()=>zS,date:()=>qS,datetime:()=>HS,domain:()=>GS,duration:()=>$S,e164:()=>VS,email:()=>DS,emoji:()=>_S,extendedDuration:()=>Xae,guid:()=>TS,hex:()=>rk,hostname:()=>jS,html5Email:()=>rce,httpProtocol:()=>Lp,iban:()=>$m,idnEmail:()=>sce,integer:()=>jp,ipv4:()=>NS,ipv6:()=>PS,ksuid:()=>RS,lowercase:()=>tk,mac:()=>FS,md5_base64:()=>lce,md5_base64url:()=>dce,md5_hex:()=>uce,nanoid:()=>QS,nanoidOfLength:()=>xS,null:()=>XS,number:()=>hs,rfc5322Email:()=>ice,sha1_base64:()=>fce,sha1_base64url:()=>Ace,sha1_hex:()=>pce,sha256_base64:()=>hce,sha256_base64url:()=>mce,sha256_hex:()=>gce,sha384_base64:()=>Ece,sha384_base64url:()=>Ice,sha384_hex:()=>yce,sha512_base64:()=>bce,sha512_base64url:()=>wce,sha512_hex:()=>vce,string:()=>WS,time:()=>JS,ulid:()=>kS,undefined:()=>ek,unicodeEmail:()=>uG,uppercase:()=>nk,uuid:()=>Ma,uuid4:()=>ece,uuid6:()=>tce,uuid7:()=>nce,xid:()=>BS});var CS=/^[cC][0-9a-z]{6,}$/,SS=/^[0-9a-z]+$/,kS=/^[0-7][0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{25}$/,BS=/^[0-9a-vA-V]{20}$/,RS=/^[A-Za-z0-9]{27}$/,QS=/^[a-zA-Z0-9_-]{21}$/;function xS(e){return new RegExp(`^[a-zA-Z0-9_-]{${e}}$`)}o(xS,"nanoidOfLength");var $S=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Xae=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,TS=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,Ma=o(e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,"uuid"),ece=Ma(4),tce=Ma(6),nce=Ma(7),DS=/^(?:[A-Za-z0-9_'+\-]+\.)*[A-Za-z0-9_'+\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,rce=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,ice=/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,uG=/^[^\s@"]{1,64}@[^\s@]{1,255}$/u,sce=uG,oce=/^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,ace="^(?=[\\s\\S]*[\\p{Extended_Pictographic}\\p{Regional_Indicator}\\u20E3])[\\p{Extended_Pictographic}\\p{Emoji_Component}]+$";function _S(){return new RegExp(ace,"u")}o(_S,"emoji");var NS=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,PS=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,FS=o(e=>{let t=Pr(e??":");return new RegExp(`^(?:[0-9A-F]{2}${t}){5}[0-9A-F]{2}$|^(?:[0-9a-f]{2}${t}){5}[0-9a-f]{2}$`)},"mac"),US=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,OS=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,MS=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,LS=/^(?:[A-Za-z0-9_-]{4})*(?:[A-Za-z0-9_-]{2,3})?$/,jS=/^(?=.{1,253}\.?$)[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[-0-9a-zA-Z]{0,61}[0-9a-zA-Z])?)*\.?$/,GS=/^(?=.{1,253}$)([a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?\.)+[a-zA-Z]{2,63}$/,Lp=/^https?$/,VS=/^\+[1-9]\d{6,14}$/,xm=/^\d(?:[ -]?\d){11,18}$/,zS=/^(?:AED|AFN|ALL|AMD|AOA|ARS|AUD|AWG|AZN|BAM|BBD|BDT|BHD|BIF|BMD|BND|BOB|BOV|BRL|BSD|BTN|BWP|BYN|BZD|CAD|CDF|CHE|CHF|CHW|CLF|CLP|CNY|COP|COU|CRC|CUP|CVE|CZK|DJF|DKK|DOP|DZD|EGP|ERN|ETB|EUR|FJD|FKP|GBP|GEL|GHS|GIP|GMD|GNF|GTQ|GYD|HKD|HNL|HTG|HUF|IDR|ILS|INR|IQD|IRR|ISK|JMD|JOD|JPY|KES|KGS|KHR|KMF|KPW|KRW|KWD|KYD|KZT|LAK|LBP|LKR|LRD|LSL|LYD|MAD|MDL|MGA|MKD|MMK|MNT|MOP|MRU|MUR|MVR|MWK|MXN|MXV|MYR|MZN|NAD|NGN|NIO|NOK|NPR|NZD|OMR|PAB|PEN|PGK|PHP|PKR|PLN|PYG|QAR|RON|RSD|RUB|RWF|SAR|SBD|SCR|SDG|SEK|SGD|SHP|SLE|SOS|SRD|SSP|STN|SVC|SYP|SZL|THB|TJS|TMT|TND|TOP|TRY|TTD|TWD|TZS|UAH|UGX|USD|USN|UYI|UYU|UYW|UZS|VED|VES|VND|VUV|WST|XAD|XAF|XAG|XAU|XBA|XBB|XBC|XBD|XCD|XCG|XDR|XOF|XPD|XPF|XPT|XSU|XTS|XUA|XXX|YER|ZAR|ZMW|ZWG)$/,$m=/^[A-Z]{2}(?!00|01|99)\d{2}[A-Z0-9]{11,30}$/,lG="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))";function cce(e){return new RegExp(`^${e}$`)}o(cce,"anchor");var qS=cce(lG);function wS(e){let t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:e.seconds?`${t}:[0-5]\\d(?:\\.\\d+)?`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}o(wS,"timeSource");function JS(e){return new RegExp(`^${wS(e)}$`)}o(JS,"time");function HS(e){let t=["Z"];e.offset&&t.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");let n=`${wS({precision:e.precision,seconds:!0})}(?:${t.join("|")})`,i=e.local?`${n}|${wS({precision:e.precision})}`:n;return new RegExp(`^${lG}T(?:${i})$`)}o(HS,"datetime");var YS=/^[\s\S]{0,}$/,WS=o(e=>{let t=e?`[\\s\\S]{${e?.minimum??0},${e?.maximum??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},"string"),ZS=/^-?\d+n?$/,jp=/^-?\d+$/,hs=/^-?\d+(?:\.\d+)?$/,KS=/^(?:true|false)$/i,XS=/^null$/i;var ek=/^undefined$/i;var tk=/^[^A-Z]*$/,nk=/^[^a-z]*$/,rk=/^[0-9a-fA-F]*$/;function Gp(e,t){return new RegExp(`^[A-Za-z0-9+/]{${e}}${t}$`)}o(Gp,"fixedBase64");function Vp(e){return new RegExp(`^[A-Za-z0-9_-]{${e}}$`)}o(Vp,"fixedBase64url");var uce=/^[0-9a-fA-F]{32}$/,lce=Gp(22,"=="),dce=Vp(22),pce=/^[0-9a-fA-F]{40}$/,fce=Gp(27,"="),Ace=Vp(27),gce=/^[0-9a-fA-F]{64}$/,hce=Gp(43,"="),mce=Vp(43),yce=/^[0-9a-fA-F]{96}$/,Ece=Gp(64,""),Ice=Vp(64),vce=/^[0-9a-fA-F]{128}$/,bce=Gp(86,"=="),wce=Vp(86);var ht=S("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),ik=o(e=>{let t=e.value;return!gm(t)&&t.size!==void 0},"_whenHasSize"),sk=o(e=>{let t=e.value;return!gm(t)&&t.length!==void 0},"_whenHasLength"),Tm={number:"number",bigint:"bigint",object:"date"},_m=S("$ZodCheckLessThan",(e,t)=>{ht.init(e,t);let n=Tm[typeof t.value];e._zod.check=i=>{(t.inclusive?i.value<=t.value:i.value<t.value)||i.issues.push({origin:Tm[typeof i.value]??n,code:"too_big",maximum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Nm=S("$ZodCheckGreaterThan",(e,t)=>{ht.init(e,t);let n=Tm[typeof t.value];e._zod.check=i=>{(t.inclusive?i.value>=t.value:i.value>t.value)||i.issues.push({origin:Tm[typeof i.value]??n,code:"too_small",minimum:typeof t.value=="object"?t.value.getTime():t.value,input:i.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),ok=S("$ZodCheckMultipleOf",(e,t)=>{ht.init(e,t),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?t.value!==BigInt(0)&&n.value%t.value===BigInt(0):Rp(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),ak=S("$ZodCheckNumberFormat",(e,t)=>{ht.init(e,t),t.format=t.format||"float64";let n=t.format?.includes("int"),i=n?"int":"number",[r,s]=$p[t.format];e._zod.check=a=>{let c=a.value;if(n){if(!Number.isInteger(c)){a.issues.push({expected:i,format:t.format,code:"invalid_type",continue:!1,input:c,inst:e});return}if(!Number.isSafeInteger(c)){c>0?a.issues.push({input:c,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort}):a.issues.push({input:c,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:i,inclusive:!0,continue:!t.abort});return}}c<r&&a.issues.push({origin:"number",input:c,code:"too_small",minimum:r,inclusive:!0,inst:e,continue:!t.abort}),c>s&&a.issues.push({origin:"number",input:c,code:"too_big",maximum:s,inclusive:!0,inst:e,continue:!t.abort})}}),ck=S("$ZodCheckBigIntFormat",(e,t)=>{ht.init(e,t);let[n,i]=Tp[t.format];e._zod.check=r=>{let s=r.value;s<n&&r.issues.push({origin:"bigint",input:s,code:"too_small",minimum:n,inclusive:!0,inst:e,continue:!t.abort}),s>i&&r.issues.push({origin:"bigint",input:s,code:"too_big",maximum:i,inclusive:!0,inst:e,continue:!t.abort})}}),uk=S("$ZodCheckMaxSize",(e,t)=>{var n;ht.init(e,t),(n=e._zod.def).when??(n.when=ik),e._zod.check=i=>{let r=i.value;r.size<=t.maximum||i.issues.push({origin:_p(r),code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),lk=S("$ZodCheckMinSize",(e,t)=>{var n;ht.init(e,t),(n=e._zod.def).when??(n.when=ik),e._zod.check=i=>{let r=i.value;r.size>=t.minimum||i.issues.push({origin:_p(r),code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),dk=S("$ZodCheckSizeEquals",(e,t)=>{var n;ht.init(e,t),(n=e._zod.def).when??(n.when=ik),e._zod.check=i=>{let r=i.value,s=r.size;if(s===t.size)return;let a=s>t.size;i.issues.push({origin:_p(r),...a?{code:"too_big",maximum:t.size}:{code:"too_small",minimum:t.size},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),pk=S("$ZodCheckMaxLength",(e,t)=>{var n;ht.init(e,t),(n=e._zod.def).when??(n.when=sk),e._zod.check=i=>{let r=i.value,s=r.length;if((typeof r=="string"&&s>t.maximum?Oa(r):s)<=t.maximum)return;let c=Np(r);i.issues.push({origin:c,code:"too_big",maximum:t.maximum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),fk=S("$ZodCheckMinLength",(e,t)=>{var n;ht.init(e,t),(n=e._zod.def).when??(n.when=sk),e._zod.check=i=>{let r=i.value,s=r.length;if((typeof r=="string"&&s>=t.minimum&&s<t.minimum*2?Oa(r):s)>=t.minimum)return;let c=Np(r);i.issues.push({origin:c,code:"too_small",minimum:t.minimum,inclusive:!0,input:r,inst:e,continue:!t.abort})}}),Ak=S("$ZodCheckLengthEquals",(e,t)=>{var n;ht.init(e,t),(n=e._zod.def).when??(n.when=sk),e._zod.check=i=>{let r=i.value,s=r.length,a=typeof r=="string"&&s>=t.length&&s<=t.length*2?Oa(r):s;if(a===t.length)return;let c=Np(r),u=a>t.length;i.issues.push({origin:c,...u?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:i.value,inst:e,continue:!t.abort})}}),Mu=S("$ZodCheckStringFormat",(e,t)=>{var n,i;ht.init(e,t),t.pattern?(n=e._zod).check??(n.check=r=>{t.pattern.lastIndex=0,!t.pattern.test(r.value)&&r.issues.push({origin:"string",code:"invalid_format",format:t.format,input:r.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(i=e._zod).check??(i.check=()=>{})}),gk=S("$ZodCheckRegex",(e,t)=>{Mu.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),hk=S("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=tk),Mu.init(e,t)}),mk=S("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=nk),Mu.init(e,t)}),yk=S("$ZodCheckIncludes",(e,t)=>{ht.init(e,t);let n=Pr(t.includes),i=new RegExp(typeof t.position=="number"?`^.{${t.position},}${n}`:n);t.pattern=i,e._zod.check=r=>{r.value.includes(t.includes,t.position)||r.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:r.value,inst:e,continue:!t.abort})}}),Ek=S("$ZodCheckStartsWith",(e,t)=>{ht.init(e,t);let n=new RegExp(`^${Pr(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.check=i=>{i.value.startsWith(t.prefix)||i.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:i.value,inst:e,continue:!t.abort})}}),Ik=S("$ZodCheckEndsWith",(e,t)=>{ht.init(e,t);let n=new RegExp(`.*${Pr(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.check=i=>{i.value.endsWith(t.suffix)||i.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:i.value,inst:e,continue:!t.abort})}});function Dm(e,t,n){e.issues.length&&t.issues.push(...Wn(n,e.issues))}o(Dm,"handleCheckPropertyResult");var vk=S("$ZodCheckProperty",(e,t)=>{ht.init(e,t),e._zod.check=n=>{let i=t.schema._zod.run({value:n.value[t.property],issues:[]},{});if(i instanceof Promise)return i.then(r=>Dm(r,n,t.property));Dm(i,n,t.property)}}),bk=S("$ZodCheckProperties",(e,t)=>{ht.init(e,t),Pp(e,Symbol.iterator,function*(){yield e});let n;e._zod.check=i=>{if(i.value==null){i.issues.push({expected:"object",code:"invalid_type",input:i.value,inst:e});return}n??(n=Reflect.ownKeys(t.shape).map(a=>[a,t.shape[a]]));let r=i.value,s;for(let[a,c]of n){let u=c._zod.run({value:r[a],issues:[]},{});u instanceof Promise?(s??(s=[]),s.push(u.then(l=>Dm(l,i,a)))):Dm(u,i,a)}if(s)return Promise.all(s).then(()=>{})}}),wk=S("$ZodCheckMimeType",(e,t)=>{ht.init(e,t);let n=new Set(t.mime);e._zod.check=i=>{n.has(i.value.type)||i.issues.push({code:"invalid_value",values:t.mime,input:i.value.type,inst:e,continue:!t.abort})}}),Ck=S("$ZodCheckOverwrite",(e,t)=>{ht.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});var La=class{static{o(this,"Doc")}constructor(t=[],n={}){this.content=[],this.indent=0,this.args=t,this.closed=n}indented(t){this.indent+=1;try{t(this)}finally{this.indent-=1}}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}let i=t.split(`
64
64
  `).filter(a=>a),r=Math.min(...i.map(a=>a.length-a.trimStart().length)),s=i.map(a=>a.slice(r)).map(a=>" ".repeat(this.indent*2)+a);for(let a of s)this.content.push(a)}compile(){let t=Function,n=this?.content??[""];return new t(...Object.keys(this.closed),`return function (${this.args.join(", ")}) {
@@ -173,7 +173,7 @@ try { runtime = require("@skyramp/testbot-core/dist/shared-environment-test.cjs"
173
173
  if (runtime && typeof runtime.sharedEnvironmentTest === "function") runtime.sharedEnvironmentTest(spec, __filename);
174
174
  else require("node:test").test(spec.name, () => { throw new Error("required shared-environment guard runtime is unavailable"); });
175
175
  `;function Yf(e){return dT+JSON.stringify($H.parse(e),null,2)+pT}o(Yf,"renderDeliveredSharedTest");function Bo(e){if(e.includes("\r")){if(/(?:^|[^\r])\n|\r(?!\n)/.test(e))return;e=e.replace(/\r\n/g,`
176
- `)}if(!(!e.startsWith(dT)||!e.endsWith(pT)))try{let t=$H.safeParse(JSON.parse(e.slice(dT.length,-pT.length)));return t.success&&Yf(t.data)===e?t.data:void 0}catch{return}}o(Bo,"parseDeliveredSharedTest");var Wf=d.string().trim().min(1),ime=d.object({cwd:Wf.describe(`directory the command starts in, relative to the test's checkout ("." for its root)`),argv:d.array(Wf).min(1).describe("the command as separate arguments, run without a shell"),env:d.record(d.string(),d.string()).optional().describe("plain settings the listing needs beyond the CI step's own; never a credential or PATH")}),TH=d.object({file:Wf.describe("a file of the test's checkout, relative to its root"),line:Wf.describe("a line of that file, quoted exactly from where its command starts to its end")}),DH=d.object({collected:d.boolean().describe("whether the repo's CI runs this test as it is"),steps:d.array(TH).optional().describe("when collected: the line in a CI file that starts the tests, then each line it runs on the way to the test runner"),runner:d.string().optional().describe("when collected: the test runner the last of those lines starts, by the name that line and the list command both use"),list:ime.optional().describe("when collected: a command that lists the tests that runner collects without running them; Testbot runs it, and its output must name this file"),why:d.string().optional().describe("when not collected: why the repo's CI will not run it"),needs:d.array(Wf).optional().describe("what the test needs running outside its own process (the app, a database, another service), one entry each; omit when it needs none"),starts:d.array(TH).optional().describe("when collected and it needs any: the line that starts each of those in the CI job that runs it, in a file of ci.steps")});var ame=d.object({route:d.string().describe('the page this step happens on, e.g. "/products/:id"'),action:d.string().describe('what the user does there, through the UI, e.g. "clicks Add to cart"'),clauses:d.array(d.string()).optional().describe("the plan clause ids this step exercises"),check:d.string().optional().describe("what the user then sees that shows the step worked; the test asserts it")}),Zf=(n=>(n.InProcess="in-process",n.Browser="browser",n))(Zf||{}),NH=(i=>(i.Spec="spec",i.PrDescription="pr-description",i.Inferred="inferred",i))(NH||{}),PH=d.object({id:d.string().describe('e.g. "J1"'),name:d.string().describe(`the flow in a user's words, e.g. "buy a product with a coupon"`),entry:d.string().describe("the route the user starts the flow on: the app's normal starting page for it, never a deep link into its middle"),steps:d.array(ame).describe("every step, in order, from the entry page to the outcome: at least two"),outcome:d.string().describe("what the user sees at the end that shows the flow worked: every part of it"),finishes:d.string().optional().describe('the user action that completes the task, verb first, e.g. "places the order"; the journey walks on to it'),kind:d.nativeEnum(Zf).optional().describe("in-process when the repo's in-process tests (components, app routes) can walk the whole flow and check it; else browser"),source:d.nativeEnum(NH).optional().describe("spec or pr-description when one describes this flow (quote it under evidence), else inferred"),evidence:d.string().optional().describe("for spec or pr-description: its words that describe the flow"),testFile:d.string().describe("the browser test file it goes in, beside the repo's existing e2e tests")}),VE=d.object({journey:d.string().describe("the plan's journey id"),file:d.string().describe("the browser test file that walks it"),brokeAt:d.object({step:d.number().int().describe("the 1-based step whose check failed first"),expected:d.string(),actual:d.string().describe("what the app did instead, from the runner's output"),notReached:d.array(d.number().int()).optional().describe("later steps the test could not get to")}).optional().describe("only when the journey's test failed on a check: where"),test:d.string().describe("the title of the one test in that file that walks it end to end")});var cLe=Object.fromEntries([...["ts","tsx","mts","cts","js","jsx","mjs","cjs"].map(e=>[e,"node"]),...["java","kt","kts","groovy","scala"].map(e=>[e,"jvm"]),["py","python"],["go","go"]]);var uLe=["stale_test","open_question"],lLe=["low","medium","high","critical"];var de=d.string().trim().min(1),Ame=o(e=>{if(!e||typeof e!="object")return e;let t=e;return typeof t.skip=="string"&&t.skip.trim()&&(t.expected===void 0||t.expected===null)?{...t,expected:"(not tested)"}:e},"skippedNeedsNoExpected"),gme=d.preprocess(Ame,d.object({id:de.describe(`its requirement's id plus a letter, e.g. "R1a", "AC-3a"`),clause:de.describe("one testable part of the requirement"),expected:de.describe("the outcome the requirement calls for \u2014 taken from the requirement, never from what the code does"),skip:d.string().optional().describe("only when no test can check this clause here: why"),type:d.nativeEnum(ri).optional().describe("the test that checks this clause: contract / integration (the API, or code called directly in-process: a function, hook or module) or ui (a page)"),target:d.string().optional().describe('its "METHOD /path", or the page / flow'),steps:d.string().optional().describe("what that test does; its expected outcome is this clause's"),finding:d.string().optional().describe("the finding id, when this clause's test also catches that defect (the defect still gets a case of its own)"),code:d.string().optional().describe("path:line of the code that decides this clause, when there is one; in another repo of the change, that repo's directory name then its path"),stated:d.string().optional().describe("the description's or spec's own words that state this clause, copied exactly, when they do"),mutates:d.boolean().optional().describe("true when its test changes state, in the test or its setup: an API POST, PUT, PATCH or DELETE, or a UI flow that submits, creates, edits or deletes"),browserOnly:d.boolean().optional().describe("true when its behaviour happens only in a browser: real clicks or keys driving page script, client-side sorting or filtering, script-driven DOM updates, focus, drag-and-drop, navigation, rendering that depends on CSS or JavaScript"),browserHarness:d.string().optional().describe("browserOnly, off the runtime path: the path of the repo's in-process browser suite its test goes in (e.g. a Django StaticLiveServerTestCase test that drives Selenium)"),quote:d.string().optional().describe("the words of the spec, plan, ticket, PR description or a test the change adds or edits that state this clause, copied exactly; a file of the repository: its path:line first. Leave it out when no source states it"),inferred:d.boolean().optional().describe("leave it out: Testbot sets it when no source states this clause (contracts/clause-grounding.ts)")})),UH=d.object({spec:d.string().optional().describe("file:line of a spec in the repository"),prDescription:d.boolean().optional().describe("or true when a pull request description says otherwise"),reference:d.string().optional().describe("or the key of an item the run was given, as listed"),says:de.describe("what it says there, in its own words, copied exactly"),criterion:d.number().int().positive().optional().describe("an item's only: leave it out; Testbot numbers it")}).refine(e=>[!!e.prDescription,!!e.spec?.trim(),!!e.reference?.trim()].filter(Boolean).length===1,{message:`names no source, or more than one: give "spec" its file:line or "reference" an item's key, or set "prDescription", one of them; list each source as its own entry`}),hme=d.object({id:de.describe('the label its source gives it ("AC-3", "REQ-12"; item 4 of a numbered list is "R4"), else "R1", "R2"\u2026 in order'),statement:de,source:d.nativeEnum(_i).describe("requirement-reference (an item the run was given), spec, pr-description (also for what the change is evidently meant to do when nothing is written down), or could-break (what the change could break that no requirement mentions)"),reference:d.string().optional().describe('requirement-reference only: the key of its item as listed, e.g. "PAY-184", or a Confluence page id such as "3021"'),evidence:de.describe("where it is stated: for requirement-reference, the item's own words, copied exactly; else file:line, a doc section, or the quoted phrase"),criterion:d.number().int().positive().optional().describe("requirement-reference only: leave it out; Testbot numbers each criterion by the item's own label (AC2, 2.), else after the item's labels"),alsoFrom:d.array(d.object({reference:de.regex(Ks).describe("the key of another uploaded document stating the same obligation"),says:de.describe("that document's own words, copied exactly; never infer equivalence from a shared criterion number"),criterion:d.number().int().positive().optional().describe("leave out; Testbot grounds and numbers this source separately")})).optional().describe("equivalent uploaded source criteria sharing this requirement's planned cases; retain every source with its own quote. Different conditions or boundaries need distinct requirements"),notInChange:d.string().optional().describe("requirement-reference only: when the PR description or the item defers this criterion to a later change, the words that defer it, copied exactly; give it no clauses. Never for words that only say what this change covers, or only because no changed file holds its code"),unchanged:d.boolean().optional().describe("true when it asks only that behaviour stay as it was (an update or refactor that must not change how something works), whatever its source"),overrules:d.array(UH).optional().describe("requirement-reference only: each lower-ranked source that says otherwise, a spec in the repository, a PR description or another item; this requirement wins, so test what it says"),clauses:d.array(gme)}),OH=(r=>(r.ServerError="server-error",r.DataLost="data-lost",r.FinalState="final-state",r.DerivedValues="derived-values",r))(OH||{}),mme=d.object({id:de.describe('e.g. "F1"'),file:de,line:d.number().optional(),claim:de.describe("the defect, in one sentence"),severity:d.nativeEnum(_a),evidence:de.describe("the code line, or the probe request and response, that shows it"),conflictsWith:d.array(de).optional().describe("requirement or clause ids it violates"),keeps:d.string().optional().describe("for a defect no requirement or clause states: path:line of the code beside the change that keeps the rule it breaks"),rule:d.nativeEnum(OH).optional().describe("for a defect that breaks a rule every app keeps, which nothing needs to state: which one"),existing:d.string().optional().describe("only when the base already does this, in code the change left as it was, and the change does not say it fixes it: where the base does it (its file:line); such a defect gets no case"),needsApp:d.enum(["browser","live-api"]).optional().describe("only when the running app alone can show this defect and the repo has no in-process test that can: browser (page script, what the user sees after a click or a save) or live-api (code the repo tests only against the running app's API)")}),yme=d.object({id:de.describe('e.g. "Q1"'),question:de.describe("what is unsettled, as a question the PR author can answer"),readings:d.array(de).min(2).describe("each reasonable behaviour, with what points to it (file:line, or the words that suggest it)"),about:d.string().optional().describe("the requirement or clause id it is about, when there is one"),sources:d.array(UH).optional().describe("when sources of the same rank disagree on it: each of them")}),Eme=d.object({id:de.describe('unique, a short kebab-case name for what the case checks, e.g. "ship-twice-409"'),type:d.nativeEnum(ri).describe("contract / integration: checks the API, or calls code directly in-process (a function, hook or module); ui: checks what a user sees or does on a page"),target:de.describe('"METHOD /path", or the page / flow'),clause:d.string().optional().describe("the clause id this case checks"),finding:d.string().optional().describe("the finding id this case catches"),steps:de.describe("what the test does"),expected:de.describe("the expected outcome, from the clause"),mutates:d.boolean().optional().describe("true when its test changes state, in the test or its setup: an API POST, PUT, PATCH or DELETE, or a UI flow that submits, creates, edits or deletes")}),Ime=d.object({test:de.describe("existing test file"),action:d.nativeEnum(Ni),reason:de,mutates:d.boolean().optional().describe("true when the maintained test changes state"),clauses:d.array(de).optional().describe("the clause ids this test checks"),staleOnBase:d.boolean().optional().describe("true when the test's own expectation was already wrong before this change: it fails the same way on the base branch, where the app does what it should. Not one the base app's own bug fails (that is an existing defect). It is verify, never update: re-run as it is, its failure the test's own. A delete the change justifies stays a delete")}),FH=d.array(AC).optional(),vme=d.object({components:d.preprocess(e=>FH.safeParse(e).success?e:void 0,FH).describe("when saving a new or changed recipe: every app and backing service actually brought up, its source repository, and whether it is healthy"),outcome:d.nativeEnum(Ri).describe("clean | recipe-drift (you had to fix the recipe) | change-broke-bringup (this PR broke start-up) | bringup-failed (the environment, not the PR)"),baseUrls:d.record(d.string()).optional().describe("service \u2192 base URL of the running app"),health:d.object({url:d.string().optional(),command:d.string().optional(),output:d.string().optional()}).optional().describe("the check that shows the app serves real data, and what it returned"),teardown:d.string().optional().describe("command that stops the app"),dependencies:d.record(d.boolean()).optional().describe("every backing service: true = really running, false = mocked"),recipeFixes:d.array(d.string()).optional().describe("what you changed in the recipe"),error:d.string().optional().describe("when it did not come up: the failing command and what it printed"),suspectFiles:d.array(d.string()).optional().describe("change-broke-bringup: the changed files to blame"),missingSecrets:d.array(d.string().regex(Zd)).optional().describe("bringup-failed only: each secret, key, token or password the app cannot start without that this run has no value for, by its environment variable name; never a value"),login:d.object({username:de,password:d.string()}).optional().describe("the account the tests sign in as, when they sign in: each a literal value the recipe seeds, or $VARIABLE when a secret in the environment holds it"),revisions:mC.optional()}),VLe=d.object({schemaVersion:d.literal(1),requirements:d.array(hme),findings:d.array(mme),cases:d.array(Eme).describe("a second test for a clause, and one case per finding that fails on this branch"),questions:d.array(yme).optional().describe("behaviours the change leaves unsettled; no case asserts any of them"),maintenance:d.array(Ime),journeys:d.array(PH).optional().describe("the user journeys that, together, pass through everything the change alters that a user sees or does; empty when it alters nothing a user sees"),notInJourney:d.array(d.object({clause:de,why:de})).optional().describe("a clause a user sees or does that no journey walks, and why: none can reach it through the UI, or it is downstream of this change and not walked here"),browserSuites:d.array(d.object({repository:de.optional().describe("owner/repo, for a checkout other than the working one"),path:de.describe("the folder its browser tests are in, relative to that checkout"),framework:de.describe("what runs them, the way the repo's CI or docs run them")})).default([]).describe("the repository's own browser test suites; empty when it has none"),unplannedComponents:d.array(d.object({components:d.array(de).min(1).describe("changed components, as the change lists them"),why:de})).optional().describe("changed components no clause reaches, and why their change needs no test; several may share one reason"),triage:kp.optional().describe("the validation triage decision, made before the app is started; its behaviorIds are clause ids"),app:vme.optional().describe("omit when no app was needed or none was started"),summary:de.describe("one paragraph: what the change does and where the risk is")});var Xf=(n=>(n.Backend="backend",n.Ui="ui",n))(Xf||{});var ci=(r=>(r.Added="added",r.Updated="updated",r.Deleted="deleted",r.Unchanged="unchanged",r))(ci||{}),bme=d.object({file:de.describe("repo-relative path; in another repo of the change, that repo's directory name then its path"),kind:d.nativeEnum(Xf),change:d.nativeEnum(ci).describe("added: a file you created; updated / deleted / unchanged: an existing test"),covers:d.array(d.string()).describe("the plan case or maintenance clause ids this file tests, each with its own result under result.cases"),guardedDelivery:GE.optional().describe("for a new test that calls the shared app: supply equivalent ordered HTTP requests and assertions only for one case and one test function in a .test.cjs file collected by node --test. The destination package must declare the exact released version of @skyramp/testbot-core used by this run. Use only CI variable names for credentials. Omit when the setup or steps cannot preserve the test; Testbot retains the source without a CI entry"),defect:d.boolean().optional().describe("true when a case of it fails because the app is wrong and the test is right \u2014 kept failing on purpose"),staleBecause:d.object({requirement:de.describe("the requirement or clause id the change deliberately alters"),line:de.describe("path:line (or path) of the application code the change altered that makes this test's old expectation wrong")}).optional().describe("for an existing test you updated or deleted: why it is out of date"),staleOnBase:d.boolean().optional().describe("for an existing test that fails: true when it fails the same way on the base branch because its own expectation is wrong (the app there does what it should), so this change did not make it wrong. Not when the base app's own bug fails it: that is an existing defect. Leave it as it is (unchanged): its failure is the test's own"),result:d.object({started:d.boolean().optional().describe("with exit null: true if this file's test command started (it was interrupted or timed out), false if it never started. Left out, Testbot counts it as possibly started, with its cleanup unknown"),exit:d.number().nullable().describe("exit code of your last run of this file; null if it could not be run"),cases:d.array(d.object({case:de,status:d.nativeEnum(Jn),environmentRestriction:de.optional().describe("for a skipped case whose test you wrote and could not run here: what this run lacks to run it (a build, a service, a database, a browser, an app). The test is still written; Testbot reports the case as not run. Never set it on a case that ran or for a time limit."),runtimeTargets:op.optional().describe("HTTP(S) URLs this case actually exercised in its current run, from its request or browser evidence; omit for local in-process/mocked checks, never list the shared app merely because it is configured"),defect:d.boolean().optional().describe("for a failing case: true when the app is wrong and the test is right; false when the test is at fault and you could not fix it"),testProblem:qh.optional().describe("for a failing case marked defect: false: what in the test is at fault"),failure:d.string().optional().describe("for a failing case: the runner's failure for it as printed (the error and the line it was raised at), not a summary"),cause:d.string().optional().describe("for a case you keep as a defect: path:line of the application code that makes it fail"),requires:d.string().optional().describe("for a case you keep as a defect: the words of the PR description, a requirement or clause of the plan, or the code a finding's keeps names, that state what its failing check expects, quoted exactly")}).refine(e=>!e.environmentRestriction||e.status==="skip"&&!e.runtimeTargets?.length,{message:"an environment-restricted case must be skipped and have no runtimeTargets"})).describe("one entry per covered case, from the runner's own output; a case you could not run here has none: record it as skipped with its environmentRestriction"),details:d.string().optional().describe("what failed and why, or why it was not run"),noCases:d.string().optional().describe("for a failed run whose runner reported none of this file's tests (it failed to compile, import or collect): why")}),assertions:d.array(d.object({case:de,evidence:de})).optional().describe("per covered case, the assertion line that checks its expected outcome"),functions:d.array(d.object({name:de.describe("the test function as the runner names it within its file, without the file (test_x, TestClass::test_x, TestSuite/TestCase)"),cases:d.array(de).describe("the plan case or maintenance clause ids it checks"),testProblem:qh.optional().describe("for a function that fails because of the test itself, while another function keeps a case it checks as a defect: what in it is at fault")})).optional().describe("for a file you added or updated, or an existing test to maintain that lists clauses: each test function in it and the plan case or maintenance clause ids it checks"),skyramp:d.object({draft:d.union([d.string(),d.array(d.string())]).optional().describe("the draft path the Skyramp helper returned for this test, or each path when the test was made from several drafts"),handWritten:d.string().optional().describe("why it is written by hand: the helper call you made and what it returned")}).optional().describe("only for a test of a case the Skyramp API block lists: where it came from"),context:d.array(sp).optional().describe("what the test sets up outside its own process that another test could run into: data it creates in the app, a Skyramp mock, an env override; omit when none"),isolatedRun:de.optional().describe("for a test with a context: the command, from its checkout's root and without a shell, that runs only this file"),ci:DH.optional().describe("for a file you added or updated: whether the repo's CI will run it, and how you know"),run:Pa.optional().describe(`for a file in ${Ru}, added, updated or re-run: how the run executes only this file's tests, with the repository's own runner and the report it writes (junit, trx or jest-json to ${vn}, or go-test-json); Testbot runs it before write ends and re-runs the tests with it`)}),wme=o(e=>{if(!e||typeof e!="object")return e;let{test:t,...n}=e;return typeof t=="string"&&t.trim()&&n.tests===void 0?{...n,tests:[t]}:e},"oneTestIsTests"),Cme=d.preprocess(wme,d.object({description:de.describe("what is wrong and how to reproduce it: endpoint or page, input, what you got vs what was expected"),severity:d.nativeEnum(_a).optional(),sourceFile:d.string().optional().describe("the app file at fault"),sourceLine:d.number().optional(),tests:d.array(de).optional().describe("every test file that fails because of it: a defect several tests show is one issue"),finding:d.string().optional().describe("the plan's finding id, when it is one"),requirements:d.array(de).optional().describe("the plan's requirement or clause ids it violates")})),zLe=d.object({schemaVersion:d.literal(1),tests:d.array(bme),notWritten:d.array(d.object({case:de,reason:de,coveredBy:d.object({file:de.describe("the test file, relative to the working checkout; prefix a related checkout as for tests[].file"),name:de.describe("the test function as the runner names it within its file, without the file (test_x, TestClass::test_x, TestSuite/TestCase)")}).optional().describe("only for an existing test triage independently linked to this exact case: its exact runner name (including class or describe titles). Testbot must finish re-running it with every result passed. If your own test covers the case, include the case in its covers and function cases instead")})).describe("every plan case no test covers, and why; also a maintenance clause that no function of its existing test asserts (it stays unproven)"),journeys:d.array(VE).optional().describe("one entry per planned user journey: the browser test that walks it end to end"),lint:d.object({command:d.string(),clean:d.boolean()}).optional().describe("the linter/formatter you ran on your test files, if the repo has one: the exact command, with its file paths (Testbot re-runs it)"),dependenciesAdded:d.array(d.object({package:de,manifest:de.describe("the manifest file's path relative to its checkout (e.g. package.json, pom.xml or pyproject.toml), and nothing else; name another checkout in repository"),repository:de.optional().describe("owner/repo of the manifest's checkout; omit for the repo under test"),reason:de.optional().describe("why the test must run inside the application's own test environment, so its manifest had to change \u2014 required for every entry")})).optional().describe("every package you added to an APPLICATION manifest (an exception, surfaced in the report); never the Testbot test package's own"),supportFiles:d.array(de).optional().describe("every file that is not a test you created or changed for your tests, which they need to compile or run (a helper module, page object, fixture, or a snapshot the runner wrote for them), named as you name a test; Testbot delivers only the tests you list and the files under supportFiles"),ciNotes:d.string().optional().describe("for each test whose ci says the repo's CI will not run it: the test, and the exact change the author must make for CI to run it"),importerRun:Pa.optional().describe("when you changed a module other test files import: the repository's own command for running its test files (its runner, its config, its folder); Testbot loads the files that reach your change with it and reports each; omit when you changed none"),commit:d.object({message:de.describe("subject line at most 72 characters, following the repository's commit-message checks"),prTitle:de.describe("at most 72 characters, following the repository's PR-title checks"),prBody:de.describe("what the tests cover and what they found")}),report:d.object({summary:de.describe("1-2 sentences for the PR author: does the change do what it says? No count of tests: the report gives it"),issues:d.array(Cme).describe("every defect the tests found"),nextSteps:d.array(d.string()),noTests:d.array(d.object({repository:de,reason:de.max(4096)})).max(1e3).optional().describe("each Change Set repository where no test was added or updated: its owner/repo and why, naming the other repository when its tests went there"),notesDeviation:d.string().trim().max(4096).optional().describe("when the Target notes say where tests go and a test you added went elsewhere: where it went, and why; omit otherwise")})});var qLe={added:"place",updated:"update",deleted:"delete",unchanged:"verify"};function Is(e){return e.rel!==""&&!e.rel.startsWith("..")&&!Zt.isAbsolute(e.rel)}o(Is,"insideCheckout");function ji(e,t,n=kH){let i=t.map(p=>({name:qC(p),root:Zt.resolve(p.path),slug:p.slug})),r=new Map([...i].reverse().map(p=>[p.name,p])),s=t.length?[{real:dm(Zt.resolve(e))},...i.map(p=>({...p,real:dm(p.root)}))].sort((p,f)=>f.real.length-p.real.length):[],a=new Map,c=o(p=>a.get(p)??a.set(p,new Set(n(p))).get(p),"touched"),u=o(p=>{let f=Zt.resolve(e,p),g=Kf.existsSync(f),h=o(Q=>({root:e,rel:cs(e,p),ambiguous:Q,exists:g}),"working");if(!t.length)return h(!1);let m=!1,E=p.replace(/^\.\//,""),I=E.split("/")[0],v=r.get(I);if(v){let Q=E.slice(I.length+1),C=Kf.existsSync(Zt.join(v.root,Q)),T=!Kf.existsSync(Zt.join(e,I))||!g&&C;if(C&&g&&Zt.join(v.root,Q)!==f){let k=c(v.root).has(cs(v.root,Q)),Z=c(e).has(cs(e,p));k&&!Z?T=!0:k===Z&&(m=!0)}if(T)return{root:v.root,rel:cs(v.root,Q),repository:v.slug,dir:v.name,ambiguous:m,exists:C}}let b=Zt.join(dm(Zt.dirname(f)),Zt.basename(f)),w=s.find(Q=>Is({rel:Zt.relative(Q.real,b)}));return w?"slug"in w?{root:w.root,rel:Zt.relative(w.real,b),repository:w.slug,dir:w.name,ambiguous:m,exists:g}:{...h(m),rel:Zt.relative(w.real,b)}:h(m)},"place"),l=new Map;return p=>l.get(p)??l.set(p,u(p)).get(p)}o(ji,"checkoutPlacer");uu();var uje=5*6e4,lje=12*6e4,dje=2*6e4;var yje=["class TestbotProjectBrowsers {"," onBegin(config) {",' const projects = config.projects.map((p) => ({ browserName: p.use.browserName ?? p.use.defaultBrowserType ?? "chromium", channel: p.use.channel ?? null }));',' process.stdout.write("TESTBOT_PROJECT_BROWSERS " + JSON.stringify(projects) + "\\n");'," }"," printsToStdio() { return true; }","}","module.exports = TestbotProjectBrowsers;",""].join(`
176
+ `)}if(!(!e.startsWith(dT)||!e.endsWith(pT)))try{let t=$H.safeParse(JSON.parse(e.slice(dT.length,-pT.length)));return t.success&&Yf(t.data)===e?t.data:void 0}catch{return}}o(Bo,"parseDeliveredSharedTest");var Wf=d.string().trim().min(1),ime=d.object({cwd:Wf.describe(`directory the command starts in, relative to the test's checkout ("." for its root)`),argv:d.array(Wf).min(1).describe("the command as separate arguments, run without a shell"),env:d.record(d.string(),d.string()).optional().describe("plain settings the listing needs beyond the CI step's own; never a credential or PATH")}),TH=d.object({file:Wf.describe("a file of the test's checkout, relative to its root"),line:Wf.describe("a line of that file, quoted exactly from where its command starts to its end")}),DH=d.object({collected:d.boolean().describe("whether the repo's CI runs this test as it is"),steps:d.array(TH).optional().describe("when collected: the line in a CI file that starts the tests, then each line it runs on the way to the test runner"),runner:d.string().optional().describe("when collected: the test runner the last of those lines starts, by the name that line and the list command both use"),list:ime.optional().describe("when collected: a command that lists the tests that runner collects without running them; Testbot runs it, and its output must name this file"),why:d.string().optional().describe("when not collected: why the repo's CI will not run it"),needs:d.array(Wf).optional().describe("what the test needs running outside its own process (the app, a database, another service), one entry each; omit when it needs none"),starts:d.array(TH).optional().describe("when collected and it needs any: the line that starts each of those in the CI job that runs it, in a file of ci.steps")});var ame=d.object({route:d.string().describe('the page this step happens on, e.g. "/products/:id"'),action:d.string().describe('what the user does there, through the UI, e.g. "clicks Add to cart"'),clauses:d.array(d.string()).optional().describe("the plan clause ids this step exercises"),check:d.string().optional().describe("what the user then sees that shows the step worked; the test asserts it")}),Zf=(n=>(n.InProcess="in-process",n.Browser="browser",n))(Zf||{}),NH=(i=>(i.Spec="spec",i.PrDescription="pr-description",i.Inferred="inferred",i))(NH||{}),PH=d.object({id:d.string().describe('e.g. "J1"'),name:d.string().describe(`the flow in a user's words, e.g. "buy a product with a coupon"`),entry:d.string().describe("the route the user starts the flow on: the app's normal starting page for it, never a deep link into its middle"),steps:d.array(ame).describe("every step, in order, from the entry page to the outcome: at least two"),outcome:d.string().describe("what the user sees at the end that shows the flow worked: every part of it"),finishes:d.string().optional().describe('the user action that completes the task, verb first, e.g. "places the order"; the journey walks on to it'),kind:d.nativeEnum(Zf).optional().describe("in-process when the repo's in-process tests (components, app routes) can walk the whole flow and check it; else browser"),source:d.nativeEnum(NH).optional().describe("spec or pr-description when one describes this flow (quote it under evidence), else inferred"),evidence:d.string().optional().describe("for spec or pr-description: its words that describe the flow"),testFile:d.string().describe("the browser test file it goes in, beside the repo's existing e2e tests")}),VE=d.object({journey:d.string().describe("the plan's journey id"),file:d.string().describe("the browser test file that walks it"),brokeAt:d.object({step:d.number().int().describe("the 1-based step whose check failed first"),expected:d.string(),actual:d.string().describe("what the app did instead, from the runner's output"),notReached:d.array(d.number().int()).optional().describe("later steps the test could not get to")}).optional().describe("only when the journey's test failed on a check: where"),test:d.string().describe("the title of the one test in that file that walks it end to end")});var cLe=Object.fromEntries([...["ts","tsx","mts","cts","js","jsx","mjs","cjs"].map(e=>[e,"node"]),...["java","kt","kts","groovy","scala"].map(e=>[e,"jvm"]),["py","python"],["go","go"]]);var uLe=["stale_test","open_question"],lLe=["low","medium","high","critical"];var ue=d.string().trim().min(1),Ame=o(e=>{if(!e||typeof e!="object")return e;let t=e;return typeof t.skip=="string"&&t.skip.trim()&&(t.expected===void 0||t.expected===null)?{...t,expected:"(not tested)"}:e},"skippedNeedsNoExpected"),gme=d.preprocess(Ame,d.object({id:ue.describe(`its requirement's id plus a letter, e.g. "R1a", "AC-3a"`),clause:ue.describe("one testable part of the requirement"),expected:ue.describe("the outcome the requirement calls for \u2014 taken from the requirement, never from what the code does"),skip:d.string().optional().describe("only when no test can check this clause here: why"),type:d.nativeEnum(ri).optional().describe("the test that checks this clause: contract / integration (the API, or code called directly in-process: a function, hook or module) or ui (a page)"),target:d.string().optional().describe('its "METHOD /path", or the page / flow'),steps:d.string().optional().describe("what that test does; its expected outcome is this clause's"),finding:d.string().optional().describe("the finding id, when this clause's test also catches that defect (the defect still gets a case of its own)"),code:d.string().optional().describe("path:line of the code that decides this clause, when there is one; in another repo of the change, that repo's directory name then its path"),stated:d.string().optional().describe("the description's or spec's own words that state this clause, copied exactly, when they do"),mutates:d.boolean().optional().describe("true when its test changes state, in the test or its setup: an API POST, PUT, PATCH or DELETE, or a UI flow that submits, creates, edits or deletes"),browserOnly:d.boolean().optional().describe("true when its behaviour happens only in a browser: real clicks or keys driving page script, client-side sorting or filtering, script-driven DOM updates, focus, drag-and-drop, navigation, rendering that depends on CSS or JavaScript"),browserHarness:d.string().optional().describe("browserOnly, off the runtime path: the path of the repo's in-process browser suite its test goes in (e.g. a Django StaticLiveServerTestCase test that drives Selenium)"),quote:d.string().optional().describe("the words of the spec, plan, ticket, PR description or a test the change adds or edits that state this clause, copied exactly; a file of the repository: its path:line first. Leave it out when no source states it"),inferred:d.boolean().optional().describe("leave it out: Testbot sets it when no source states this clause (contracts/clause-grounding.ts)")})),UH=d.object({spec:d.string().optional().describe("file:line of a spec in the repository"),prDescription:d.boolean().optional().describe("or true when a pull request description says otherwise"),reference:d.string().optional().describe("or the key of an item the run was given, as listed"),says:ue.describe("what it says there, in its own words, copied exactly"),criterion:d.number().int().positive().optional().describe("an item's only: leave it out; Testbot numbers it")}).refine(e=>[!!e.prDescription,!!e.spec?.trim(),!!e.reference?.trim()].filter(Boolean).length===1,{message:`names no source, or more than one: give "spec" its file:line or "reference" an item's key, or set "prDescription", one of them; list each source as its own entry`}),hme=d.object({id:ue.describe('the label its source gives it ("AC-3", "REQ-12"; item 4 of a numbered list is "R4"), else "R1", "R2"\u2026 in order'),statement:ue,source:d.nativeEnum(_i).describe("requirement-reference (an item the run was given), spec, pr-description (also for what the change is evidently meant to do when nothing is written down), or could-break (what the change could break that no requirement mentions)"),reference:d.string().optional().describe('requirement-reference only: the key of its item as listed, e.g. "PAY-184", or a Confluence page id such as "3021"'),evidence:ue.describe("where it is stated: for requirement-reference, the item's own words, copied exactly; else file:line, a doc section, or the quoted phrase"),criterion:d.number().int().positive().optional().describe("requirement-reference only: leave it out; Testbot numbers each criterion by the item's own label (AC2, 2.), else after the item's labels"),alsoFrom:d.array(d.object({reference:ue.regex(Ks).describe("the key of another uploaded document stating the same obligation"),says:ue.describe("that document's own words, copied exactly; never infer equivalence from a shared criterion number"),criterion:d.number().int().positive().optional().describe("leave out; Testbot grounds and numbers this source separately")})).optional().describe("equivalent uploaded source criteria sharing this requirement's planned cases; retain every source with its own quote. Different conditions or boundaries need distinct requirements"),notInChange:d.string().optional().describe("requirement-reference only: when the PR description or the item defers this criterion to a later change, the words that defer it, copied exactly; give it no clauses. Never for words that only say what this change covers, or only because no changed file holds its code"),unchanged:d.boolean().optional().describe("true when it asks only that behaviour stay as it was (an update or refactor that must not change how something works), whatever its source"),overrules:d.array(UH).optional().describe("requirement-reference only: each lower-ranked source that says otherwise, a spec in the repository, a PR description or another item; this requirement wins, so test what it says"),clauses:d.array(gme)}),OH=(r=>(r.ServerError="server-error",r.DataLost="data-lost",r.FinalState="final-state",r.DerivedValues="derived-values",r))(OH||{}),mme=d.object({id:ue.describe('e.g. "F1"'),file:ue,line:d.number().optional(),claim:ue.describe("the defect, in one sentence"),severity:d.nativeEnum(_a),evidence:ue.describe("the code line, or the probe request and response, that shows it"),conflictsWith:d.array(ue).optional().describe("requirement or clause ids it violates"),keeps:d.string().optional().describe("for a defect no requirement or clause states: path:line of the code beside the change that keeps the rule it breaks"),rule:d.nativeEnum(OH).optional().describe("for a defect that breaks a rule every app keeps, which nothing needs to state: which one"),existing:d.string().optional().describe("only when the base already does this, in code the change left as it was, and the change does not say it fixes it: where the base does it (its file:line); such a defect gets no case"),needsApp:d.enum(["browser","live-api"]).optional().describe("only when the running app alone can show this defect and the repo has no in-process test that can: browser (page script, what the user sees after a click or a save) or live-api (code the repo tests only against the running app's API)")}),yme=d.object({id:ue.describe('e.g. "Q1"'),question:ue.describe("what is unsettled, as a question the PR author can answer"),readings:d.array(ue).min(2).describe("each reasonable behaviour, with what points to it (file:line, or the words that suggest it)"),about:d.string().optional().describe("the requirement or clause id it is about, when there is one"),sources:d.array(UH).optional().describe("when sources of the same rank disagree on it: each of them")}),Eme=d.object({id:ue.describe('unique, a short kebab-case name for what the case checks, e.g. "ship-twice-409"'),type:d.nativeEnum(ri).describe("contract / integration: checks the API, or calls code directly in-process (a function, hook or module); ui: checks what a user sees or does on a page"),target:ue.describe('"METHOD /path", or the page / flow'),clause:d.string().optional().describe("the clause id this case checks"),finding:d.string().optional().describe("the finding id this case catches"),steps:ue.describe("what the test does"),expected:ue.describe("the expected outcome, from the clause"),mutates:d.boolean().optional().describe("true when its test changes state, in the test or its setup: an API POST, PUT, PATCH or DELETE, or a UI flow that submits, creates, edits or deletes")}),Ime=d.object({test:ue.describe("existing test file"),action:d.nativeEnum(Ni),reason:ue,mutates:d.boolean().optional().describe("true when the maintained test changes state"),clauses:d.array(ue).optional().describe("the clause ids this test checks"),staleOnBase:d.boolean().optional().describe("true when the test's own expectation was already wrong before this change: it fails the same way on the base branch, where the app does what it should. Not one the base app's own bug fails (that is an existing defect). It is verify, never update: re-run as it is, its failure the test's own. A delete the change justifies stays a delete")}),FH=d.array(AC).optional(),vme=d.object({components:d.preprocess(e=>FH.safeParse(e).success?e:void 0,FH).describe("when saving a new or changed recipe: every app and backing service actually brought up, its source repository, and whether it is healthy"),outcome:d.nativeEnum(Ri).describe("clean | recipe-drift (you had to fix the recipe) | change-broke-bringup (this PR broke start-up) | bringup-failed (the environment, not the PR)"),baseUrls:d.record(d.string()).optional().describe("service \u2192 base URL of the running app"),health:d.object({url:d.string().optional(),command:d.string().optional(),output:d.string().optional()}).optional().describe("the check that shows the app serves real data, and what it returned"),teardown:d.string().optional().describe("command that stops the app"),dependencies:d.record(d.boolean()).optional().describe("every backing service: true = really running, false = mocked"),recipeFixes:d.array(d.string()).optional().describe("what you changed in the recipe"),error:d.string().optional().describe("when it did not come up: the failing command and what it printed"),suspectFiles:d.array(d.string()).optional().describe("change-broke-bringup: the changed files to blame"),missingSecrets:d.array(d.string().regex(Zd)).optional().describe("bringup-failed only: each secret, key, token or password the app cannot start without that this run has no value for, by its environment variable name; never a value"),login:d.object({username:ue,password:d.string()}).optional().describe("the account the tests sign in as, when they sign in: each a literal value the recipe seeds, or $VARIABLE when a secret in the environment holds it"),revisions:mC.optional()}),VLe=d.object({schemaVersion:d.literal(1),requirements:d.array(hme),findings:d.array(mme),cases:d.array(Eme).describe("a second test for a clause, and one case per finding that fails on this branch"),questions:d.array(yme).optional().describe("behaviours the change leaves unsettled; no case asserts any of them"),maintenance:d.array(Ime),journeys:d.array(PH).optional().describe("the user journeys that, together, pass through everything the change alters that a user sees or does; empty when it alters nothing a user sees"),notInJourney:d.array(d.object({clause:ue,why:ue})).optional().describe("a clause a user sees or does that no journey walks, and why: none can reach it through the UI, or it is downstream of this change and not walked here"),browserSuites:d.array(d.object({repository:ue.optional().describe("owner/repo, for a checkout other than the working one"),path:ue.describe("the folder its browser tests are in, relative to that checkout"),framework:ue.describe("what runs them, the way the repo's CI or docs run them")})).default([]).describe("the repository's own browser test suites; empty when it has none"),unplannedComponents:d.array(d.object({components:d.array(ue).min(1).describe("changed components, as the change lists them"),why:ue})).optional().describe("changed components no clause reaches, and why their change needs no test; several may share one reason"),triage:kp.optional().describe("the validation triage decision, made before the app is started; its behaviorIds are clause ids"),app:vme.optional().describe("omit when no app was needed or none was started"),summary:ue.describe("one paragraph: what the change does and where the risk is")});var Xf=(n=>(n.Backend="backend",n.Ui="ui",n))(Xf||{});var ci=(r=>(r.Added="added",r.Updated="updated",r.Deleted="deleted",r.Unchanged="unchanged",r))(ci||{}),bme=d.object({file:ue.describe("repo-relative path; in another repo of the change, that repo's directory name then its path"),kind:d.nativeEnum(Xf),change:d.nativeEnum(ci).describe("added: a file you created; updated / deleted / unchanged: an existing test"),covers:d.array(d.string()).describe("the plan case or maintenance clause ids this file tests, each with its own result under result.cases"),guardedDelivery:GE.optional().describe("for a new test that calls the shared app: supply equivalent ordered HTTP requests and assertions only for one case and one test function in a .test.cjs file collected by node --test. The destination package must declare the exact released version of @skyramp/testbot-core used by this run. Use only CI variable names for credentials. Omit when the setup or steps cannot preserve the test; Testbot retains the source without a CI entry"),defect:d.boolean().optional().describe("true when a case of it fails because the app is wrong and the test is right \u2014 kept failing on purpose"),staleBecause:d.object({requirement:ue.describe("the requirement or clause id the change deliberately alters"),line:ue.describe("path:line (or path) of the application code the change altered that makes this test's old expectation wrong")}).optional().describe("for an existing test you updated or deleted: why it is out of date"),staleOnBase:d.boolean().optional().describe("for an existing test that fails: true when it fails the same way on the base branch because its own expectation is wrong (the app there does what it should), so this change did not make it wrong. Not when the base app's own bug fails it: that is an existing defect. Leave it as it is (unchanged): its failure is the test's own"),failsOnBase:d.array(d.object({test:ue.describe("its name, as its framework reports it"),failure:ue.describe("the failure message it gave on the base branch")})).optional().describe("for a file that was there before this run, which you left as it was or only added tests to: the tests already in it that fail here and fail the same way on the base branch, so this change did not make them fail. Never a test you wrote or changed"),result:d.object({started:d.boolean().optional().describe("with exit null: true if this file's test command started (it was interrupted or timed out), false if it never started. Left out, Testbot counts it as possibly started, with its cleanup unknown"),exit:d.number().nullable().describe("exit code of your last run of this file; null if it could not be run"),cases:d.array(d.object({case:ue,status:d.nativeEnum(Jn),environmentRestriction:ue.optional().describe("for a skipped case whose test you wrote and could not run here: what this run lacks to run it (a build, a service, a database, a browser, an app). The test is still written; Testbot reports the case as not run. Never set it on a case that ran or for a time limit."),runtimeTargets:op.optional().describe("HTTP(S) URLs this case actually exercised in its current run, from its request or browser evidence; omit for local in-process/mocked checks, never list the shared app merely because it is configured"),defect:d.boolean().optional().describe("for a failing case: true when the app is wrong and the test is right; false when the test is at fault and you could not fix it"),testProblem:qh.optional().describe("for a failing case marked defect: false: what in the test is at fault"),failure:d.string().optional().describe("for a failing case: the runner's failure for it as printed (the error and the line it was raised at), not a summary"),cause:d.string().optional().describe("for a case you keep as a defect: path:line of the application code that makes it fail"),requires:d.string().optional().describe("for a case you keep as a defect: the words of the PR description, a requirement or clause of the plan, or the code a finding's keeps names, that state what its failing check expects, quoted exactly")}).refine(e=>!e.environmentRestriction||e.status==="skip"&&!e.runtimeTargets?.length,{message:"an environment-restricted case must be skipped and have no runtimeTargets"})).describe("one entry per covered case, from the runner's own output; a case you could not run here has none: record it as skipped with its environmentRestriction"),details:d.string().optional().describe("what failed and why, or why it was not run"),noCases:d.string().optional().describe("for a failed run whose runner reported none of this file's tests (it failed to compile, import or collect): why")}),assertions:d.array(d.object({case:ue,evidence:ue})).optional().describe("per covered case, the assertion line that checks its expected outcome"),functions:d.array(d.object({name:ue.describe("the test function as the runner names it within its file, without the file (test_x, TestClass::test_x, TestSuite/TestCase)"),cases:d.array(ue).describe("the plan case or maintenance clause ids it checks"),testProblem:qh.optional().describe("for a function that fails because of the test itself, while another function keeps a case it checks as a defect: what in it is at fault")})).optional().describe("for a file you added or updated, or an existing test to maintain that lists clauses: each test function in it and the plan case or maintenance clause ids it checks"),skyramp:d.object({draft:d.union([d.string(),d.array(d.string())]).optional().describe("the draft path the Skyramp helper returned for this test, or each path when the test was made from several drafts"),handWritten:d.string().optional().describe("why it is written by hand: the helper call you made and what it returned")}).optional().describe("only for a test of a case the Skyramp API block lists: where it came from"),context:d.array(sp).optional().describe("what the test sets up outside its own process that another test could run into: data it creates in the app, a Skyramp mock, an env override; omit when none"),isolatedRun:ue.optional().describe("for a test with a context: the command, from its checkout's root and without a shell, that runs only this file"),ci:DH.optional().describe("for a file you added or updated: whether the repo's CI will run it, and how you know"),run:Pa.optional().describe(`for a file in ${Ru}, added, updated or re-run: how the run executes only this file's tests, with the repository's own runner and the report it writes (junit, trx or jest-json to ${vn}, or go-test-json); Testbot runs it before write ends and re-runs the tests with it`)}),wme=o(e=>{if(!e||typeof e!="object")return e;let{test:t,...n}=e;return typeof t=="string"&&t.trim()&&n.tests===void 0?{...n,tests:[t]}:e},"oneTestIsTests"),Cme=d.preprocess(wme,d.object({description:ue.describe("what is wrong and how to reproduce it: endpoint or page, input, what you got vs what was expected"),severity:d.nativeEnum(_a).optional(),sourceFile:d.string().optional().describe("the app file at fault"),sourceLine:d.number().optional(),tests:d.array(ue).optional().describe("every test file that fails because of it: a defect several tests show is one issue"),finding:d.string().optional().describe("the plan's finding id, when it is one"),requirements:d.array(ue).optional().describe("the plan's requirement or clause ids it violates")})),zLe=d.object({schemaVersion:d.literal(1),tests:d.array(bme),notWritten:d.array(d.object({case:ue,reason:ue,coveredBy:d.object({file:ue.describe("the test file, relative to the working checkout; prefix a related checkout as for tests[].file"),name:ue.describe("the test function as the runner names it within its file, without the file (test_x, TestClass::test_x, TestSuite/TestCase)")}).optional().describe("only for an existing test triage independently linked to this exact case: its exact runner name (including class or describe titles). Testbot must finish re-running it with every result passed. If your own test covers the case, include the case in its covers and function cases instead")})).describe("every plan case no test covers, and why; also a maintenance clause that no function of its existing test asserts (it stays unproven)"),journeys:d.array(VE).optional().describe("one entry per planned user journey: the browser test that walks it end to end"),lint:d.object({command:d.string(),clean:d.boolean()}).optional().describe("the linter/formatter you ran on your test files, if the repo has one: the exact command, with its file paths (Testbot re-runs it)"),dependenciesAdded:d.array(d.object({package:ue,manifest:ue.describe("the manifest file's path relative to its checkout (e.g. package.json, pom.xml or pyproject.toml), and nothing else; name another checkout in repository"),repository:ue.optional().describe("owner/repo of the manifest's checkout; omit for the repo under test"),reason:ue.optional().describe("why the test must run inside the application's own test environment, so its manifest had to change \u2014 required for every entry")})).optional().describe("every package you added to an APPLICATION manifest (an exception, surfaced in the report); never the Testbot test package's own"),supportFiles:d.array(ue).optional().describe("every file that is not a test you created or changed for your tests, which they need to compile or run (a helper module, page object, fixture, or a snapshot the runner wrote for them), named as you name a test; Testbot delivers only the tests you list and the files under supportFiles"),ciNotes:d.string().optional().describe("for each test whose ci says the repo's CI will not run it: the test, and the exact change the author must make for CI to run it"),importerRun:Pa.optional().describe("when you changed a module other test files import: the repository's own command for running its test files (its runner, its config, its folder); Testbot loads the files that reach your change with it and reports each; omit when you changed none"),commit:d.object({message:ue.describe("subject line at most 72 characters, following the repository's commit-message checks"),prTitle:ue.describe("at most 72 characters, following the repository's PR-title checks"),prBody:ue.describe("what the tests cover and what they found")}),report:d.object({summary:ue.describe("1-2 sentences for the PR author: does the change do what it says? No count of tests: the report gives it"),issues:d.array(Cme).describe("every defect the tests found"),nextSteps:d.array(d.string()),noTests:d.array(d.object({repository:ue,reason:ue.max(4096)})).max(1e3).optional().describe("each Change Set repository where no test was added or updated: its owner/repo and why, naming the other repository when its tests went there"),notesDeviation:d.string().trim().max(4096).optional().describe("when the Target notes say where tests go and a test you added went elsewhere: where it went, and why; omit otherwise")})});var qLe={added:"place",updated:"update",deleted:"delete",unchanged:"verify"};function Is(e){return e.rel!==""&&!e.rel.startsWith("..")&&!Zt.isAbsolute(e.rel)}o(Is,"insideCheckout");function ji(e,t,n=kH){let i=t.map(p=>({name:qC(p),root:Zt.resolve(p.path),slug:p.slug})),r=new Map([...i].reverse().map(p=>[p.name,p])),s=t.length?[{real:dm(Zt.resolve(e))},...i.map(p=>({...p,real:dm(p.root)}))].sort((p,f)=>f.real.length-p.real.length):[],a=new Map,c=o(p=>a.get(p)??a.set(p,new Set(n(p))).get(p),"touched"),u=o(p=>{let f=Zt.resolve(e,p),g=Kf.existsSync(f),h=o(Q=>({root:e,rel:cs(e,p),ambiguous:Q,exists:g}),"working");if(!t.length)return h(!1);let m=!1,E=p.replace(/^\.\//,""),I=E.split("/")[0],v=r.get(I);if(v){let Q=E.slice(I.length+1),C=Kf.existsSync(Zt.join(v.root,Q)),T=!Kf.existsSync(Zt.join(e,I))||!g&&C;if(C&&g&&Zt.join(v.root,Q)!==f){let k=c(v.root).has(cs(v.root,Q)),Z=c(e).has(cs(e,p));k&&!Z?T=!0:k===Z&&(m=!0)}if(T)return{root:v.root,rel:cs(v.root,Q),repository:v.slug,dir:v.name,ambiguous:m,exists:C}}let b=Zt.join(dm(Zt.dirname(f)),Zt.basename(f)),w=s.find(Q=>Is({rel:Zt.relative(Q.real,b)}));return w?"slug"in w?{root:w.root,rel:Zt.relative(w.real,b),repository:w.slug,dir:w.name,ambiguous:m,exists:g}:{...h(m),rel:Zt.relative(w.real,b)}:h(m)},"place"),l=new Map;return p=>l.get(p)??l.set(p,u(p)).get(p)}o(ji,"checkoutPlacer");uu();var uje=5*6e4,lje=12*6e4,dje=2*6e4;var yje=["class TestbotProjectBrowsers {"," onBegin(config) {",' const projects = config.projects.map((p) => ({ browserName: p.use.browserName ?? p.use.defaultBrowserType ?? "chromium", channel: p.use.channel ?? null }));',' process.stdout.write("TESTBOT_PROJECT_BROWSERS " + JSON.stringify(projects) + "\\n");'," }"," printsToStdio() { return true; }","}","module.exports = TestbotProjectBrowsers;",""].join(`
177
177
  `);var Tje=[...Nl,"AWS_REGION","AWS_DEFAULT_REGION","AWS_ENDPOINT_URL","AWS_ENDPOINT_URL_BEDROCK_RUNTIME","AWS_ENDPOINT_URL_STS","AWS_SHARED_CREDENTIALS_FILE","AWS_CONFIG_FILE","CLAUDE_CODE_USE_BEDROCK","CLAUDE_CODE_USE_VERTEX","ANTHROPIC_BASE_URL","ANTHROPIC_BEDROCK_BASE_URL"].filter((e,t,n)=>n.indexOf(e)===t);var Ro=re(z0());var c1e={jest:"jest",vitest:"vitest"};var Rme=[["target","surefire-reports"],["target","failsafe-reports"],["build","test-results"]],yGe=new Set(Rme.map(([e])=>e));var EGe=new Set(["jest","vitest","npm-test","playwright"]);var $me="ci-collect";var DGe=5*6e4;function GH(e,t){let n=new Set(t.tests.map(i=>i.file));return(ke(e,`${$me}.json`)?.checks??[]).filter(i=>n.has(i.file))}o(GH,"currentCiChecks");function AT(e){let t=ke(e,"write.json");if(!Array.isArray(t?.tests))return new Set;let n=new Set(t.tests.filter(i=>i.change==="added").map(i=>i.file));return new Set(GH(e,t).filter(i=>i.verdict==="unprovisioned"&&n.has(i.file)).map(i=>i.file))}o(AT,"withheldTests");var nr=re(require("fs")),vs=re(require("path"));var Qo=re(require("fs")),zE=re(require("path"));var Tme="change-inputs",Dme=o((e,t)=>`${t}-${e.replace(/[^\w.-]+/g,n=>n==="/"?"__":"-")}.md`,"fileName");function _me(e){return[...(e.pullRequests??[]).map(t=>({label:`${t.repository}#${t.number}`,body:t.body?.trim()??""})),...(e.relatedRepos??[]).map(t=>({label:t.slug,body:t.prDescription?.trim()??""}))].map((t,n)=>({...t,file:Dme(t.label,n)})).filter(t=>t.body.length>j1)}o(_me,"longDescriptions");function zH(e,t,n){let i=zE.join(t,Tme);Qo.rmSync(i,{recursive:!0,force:!0}),Qo.mkdirSync(i,{recursive:!0}),Qo.writeFileSync(zE.join(i,xa),n,{mode:292});for(let r of _me(e))Qo.writeFileSync(zE.join(i,r.file),`${r.body}
178
178
  `,{mode:292})}o(zH,"writeChangeInputs");var Nme=[/^\.github\//,/^\.gitlab(-ci)?/,/^\.circleci\//,/(^|\/)Jenkinsfile$/,/^docs?\//,/\.(md|mdx|rst)$/i,/(^|\/)LICENSE([._-].*)?$/i,/(^|\/)CODEOWNERS$/,/(^|\/)\.gitignore$/,/(^|\/)\.gitattributes$/,/(^|\/)\.editorconfig$/,/(^|\/)\.prettierrc[^/]*$/,/(^|\/)\.eslintrc[^/]*$/,/(^|\/)eslint\.config\.[^/]+$/,/(^|\/)package-lock\.json$/,/(^|\/)yarn\.lock$/,/(^|\/)pnpm-lock\.yaml$/,/(^|\/)poetry\.lock$/,/(^|\/)Pipfile\.lock$/,/(^|\/)Cargo\.lock$/,/(^|\/)go\.sum$/,/(^|\/)composer\.lock$/,/(^|\/)Gemfile\.lock$/,/\.(png|jpe?g|gif|svg|ico|webp)$/i];function qH(e){return Nme.some(t=>t.test(e))}o(qH,"isNonApplicationFile");function Pme(e){let t=[],n=e.inputs.repositoryPath;return!n||!nr.existsSync(n)?t.push(`repository path does not exist: ${n}`):e0(n)?Df(n,e.inputs.baseBranch)||t.push(e.inputs.baseBranch?`base branch "${e.inputs.baseBranch}" does not resolve`:"could not auto-detect a base branch (origin/HEAD, main, master)"):t.push(`not a git repository: ${n}`),{ok:t.length===0,reasons:t}}o(Pme,"validatePreflightInput");function Fme(e){return(e.inputs.relatedRepos??[]).map(t=>{let n=nr.existsSync(t.path)?bE(t.path,t.base):void 0;return n?{repository:t.slug,changedFiles:n.changedFiles}:{repository:t.slug,changedFiles:[],note:`could not read the change in ${t.path}`}})}o(Fme,"collectRelatedChanges");function Ume(e){nr.rmSync(vs.join(e.runDir,GC),{recursive:!0,force:!0});for(let t of e.inputs.relatedRepos??[]){let n=nr.existsSync(t.path)?t0(t.path,t.base):void 0;if(!n)continue;let i=vs.join(e.runDir,VC(t.slug));nr.mkdirSync(vs.dirname(i),{recursive:!0}),nr.writeFileSync(i,n.diffContent)}}o(Ume,"writeRelatedDiffs");function Ome(e){let{repositoryPath:t,baseBranch:n}=e.inputs;nr.rmSync(vs.join(t,H$),{recursive:!0,force:!0});let i=bE(t,n);if(!i)throw new Error(`could not compute git facts for ${t}`);let r=t0(t,n);if(!r)throw new Error(`could not compute the PR diff for ${t}`);let s=Fme(e),a=[i.changedFiles,...s.map(f=>f.changedFiles)].flat(),c=a.map(f=>f.path).filter(qH),u=!ku(e)&&a.length>0&&c.length===a.length,l={schemaVersion:1,repository:{path:t,currentBranch:i.currentBranch,baseBranch:i.baseBranch},changedFiles:i.changedFiles,...s.length?{relatedChanges:s}:{},newFiles:r.newFiles,deletedFiles:r.deletedFiles,diffStat:r.diffStat,diffBytes:r.diffContent.length,nonApplicationFiles:c,nonApplicationOnly:u,sutRequired:!u};nr.writeFileSync(vs.join(e.runDir,xa),r.diffContent),zH(e.inputs,e.runDir,r.diffContent),Ume(e);let p=vs.join(e.runDir,jC);return nr.mkdirSync(vs.dirname(p),{recursive:!0}),nr.writeFileSync(p,JSON.stringify(l,null,2)+`
179
179
  `),e.prepared={preflight:l},{preflight:jC,diff:xa}}o(Ome,"executePreflight");var OVe={name:"preflight",timeoutMinutes:1,requires:[],validateInput:Pme,execute:Ome};var ic=re(require("path"));var ZVe={python:"pytest",typescript:"playwright",javascript:"playwright"},KVe={pytest:"pytest",playwright:"playwright"};var Vme=new Set(["package.json","package-lock.json","npm-shrinkwrap.json","pnpm-lock.yaml","yarn.lock","bun.lock","bun.lockb","pyproject.toml","poetry.lock","uv.lock","pdm.lock","Pipfile","Pipfile.lock","setup.py","setup.cfg","go.mod","go.sum","Gemfile","Gemfile.lock","pom.xml","build.gradle","build.gradle.kts"]);function HH(e){let t=ic.basename(e);return Vme.has(t)||/^requirements[^/\\]*\.(txt|in)$/.test(t)}o(HH,"isDependencyFile");var nA=re(require("path"));var WH=(i=>(i.Requirement="requirement",i.PrDescription="pr_description",i.Code="code",i))(WH||{}),An=d.string().trim().min(1),Jme=d.object({expectation:An.max(300).describe("the behavior this assertion pins, in words"),source:d.nativeEnum(WH),expected:An.max(200).describe("the exact value or outcome asserted, as the test asserts it")}),Hme=d.object({file:An.describe("path of the NEW test file you wrote, relative to its repository"),repository:An.optional().describe("owner/repo the file lives in, when the run has several checkouts; omit for the working checkout"),framework:An.describe("the framework the repository runs this file with: pytest, jest, vitest, node-test, or the name of any other"),run:Pa.optional().describe(`for ${Ru}: how the run executes only the tests in names, with the repository's own runner writing JUnit XML to {junit}`),covers:d.array(An).length(1).describe("the ONE behavior id, or defect id, from the plan that the tests in names provide evidence for; a file covering several is listed once per id"),names:d.array(An).min(1).describe("the test functions/cases in the file that provide evidence for that behavior, as the framework names them"),assertions:d.array(Jme).min(1)}),eA=(n=>(n.Updated="updated",n.Deleted="deleted",n))(eA||{}),YH=300,Yme=d.object({file:An.describe("path of the EXISTING test file you updated or deleted, relative to its repository"),repository:An.optional().describe("owner/repo the file lives in, when the run has several checkouts; omit for the working checkout"),change:d.nativeEnum(eA),staleBecause:d.object({requirement:An.describe("the requirement or clause id the change deliberately alters"),line:An.describe("path:line (or path) of the application code the change altered that makes this test's old expectation wrong")}).optional().describe("for an existing test you updated: why it is out of date"),reason:d.preprocess(e=>typeof e=="string"?e.trim().slice(0,YH):e,An.max(YH)).describe("what the change deliberately altered that made the test wrong")}),gT=d.object({schemaVersion:d.literal(1),tests:d.array(Hme),maintained:d.array(Yme).optional().describe("existing tests the change made stale that you updated or deleted; omit when there were none"),defectsNotTested:d.array(d.object({id:An,reason:An.max(300)})).optional().describe("defects the plan found that no in-process test can reach, each with why; omit when every defect has a test"),journeys:d.array(VE).optional().describe("one entry per planned user journey: the in-process test that walks it end to end"),journeysNotWritten:d.array(d.object({journey:An,missing:An.transform(e=>e.length>300?`${e.slice(0,299)}\u2026`:e)})).optional().describe("a planned journey no in-process test can walk here, with what it needs that is missing; it is reported as not covered"),lint:d.object({command:d.string(),clean:d.boolean()}).optional().describe("the linter/formatter you ran on your test files, if the repository has one you can run; omit otherwise"),commitMessage:An.optional().describe("the commit message for your tests: a subject line of at most 72 characters, then what they cover")});var tA="generate-unit.json";function Zme(e){let{value:t,error:n}=qt(e);if(n)return{errors:[n]};let{value:i,errors:r}=$n(gT,t);return r.length?{errors:r}:{output:i,errors:[]}}o(Zme,"parseGenerateUnitText");function Kme(e){return Zme(e.stdout)}o(Kme,"parseGenerateUnitFromSession");var mqe=Hn("generate-unit-schema",(e,t)=>Kme(t));var qE=String.raw`(?:node:)?(?:http|https|http2|net|tls|dgram)`,yqe=[[/\b(localhost|127\.0\.0\.1|0\.0\.0\.0)\b/,"a local server address"],[/^\s*(import|from)\s+(requests|aiohttp|urllib3|websockets?)\b/m,"an HTTP client"],[/^\s*(?:import|from)\s+(?:urllib\.request|http\.client|http\.server|socket|ssl|ftplib|smtplib|telnetlib)\b|^\s*from\s+urllib\s+import\b[^\n]*\brequest\b|\burlopen\s*\(/m,"a standard-library network client"],[/\bfrom\s+["'](axios|node-fetch|undici|ws)["']|require\(\s*["'](axios|node-fetch|undici|ws)["']\s*\)/,"an HTTP client"],[new RegExp(String.raw`\bfrom\s+["']${qE}["']|\bimport\s+["']${qE}["']|require\(\s*["']${qE}["']\s*\)|\bimport\(\s*["']${qE}["']\s*\)`),"Node's network modules"],[/\bfetch\s*\(|\bnew\s+(XMLHttpRequest|WebSocket)\b/,"a network call (fetch, XMLHttpRequest, WebSocket)"],[/\bskyramp\b/i,"the Skyramp runtime (a runtime mock or client)"]];function Xme(e){return $n(XC,e).errors}o(Xme,"validateFinalizeOutput");function eye(e,t=[]){let{value:n,error:i}=qt(e,t);if(i)return{errors:[i]};let r=Xme(n);return r.length>0?{errors:r}:{finalize:n,errors:[]}}o(eye,"parseFinalizeText");var tye="finalize-scratch";function nye(e,t){let n=eye(e.stdout,t?.secretValues);if(!n.finalize||!t?.outputsDir)return n;let i=o((r,s)=>r.trim()&&gI(r.trim(),nA.join(t.outputsDir,tye,s),"finalize")||r,"script");return{...n,finalize:{...n.finalize,lint:n.finalize.lint.map((r,s)=>({...r,command:i(r.command??"",`lint-${s+1}.sh`)}))}}}o(nye,"parseFinalizeFromSession");var Oqe=Hn("finalize-schema",(e,t)=>nye(t,e));var XH=re(require("path"));var mJe=new Set(["targeted_unit","existing_evidence_sufficient"]);var cye="triage.json";var DHe=new Set(["existing_evidence","unaffected","existing_unit","new_unit","runtime"]),_He={existing_evidence:"existing evidence",unaffected:"showing the change cannot reach it",existing_unit:"running the existing unit tests",new_unit:"a new unit test",runtime:"tests against the running application"};function uye(e){let{value:t,error:n}=qt(e);if(n)return{errors:[n]};let{value:i,errors:r}=$n(kp,t);return r.length?{errors:r}:{triage:i,errors:[]}}o(uye,"parseTriageText");function lye(e){return uye(e.stdout)}o(lye,"parseTriageFromSession");var NHe=Hn("triage-schema",(e,t)=>lye(t));function dye(e){let t=e.inputs?.pipeline;return t?e.state.stages[t==="two-step"?"plan":"triage"]:e.state.stages.triage??e.state.stages.plan}o(dye,"triageDecider");function mT(e){if(dye(e)?.status==="passed")return no(XH.join(e.outputsDir,cye))}o(mT,"readTriage");function yT(e){return a2(G$(e.inputs,ke(e,`${Tf}.json`),mT(e)?.sutRequired))}o(yT,"revisionBlockReason");var PHe=new Set(["deploy","recommend","generate","generate-ui","adapt","generate-unit","native-run","finalize","deliver"]);function ET(e){return e.functions?.length?e.functions:[(e.testType==="unit"?e.testId.split("::").slice(1).join("::").replace(/\[.*\]$/,""):"")||e.testId]}o(ET,"rowFunctions");function Il(e){return new Set(e.flatMap(t=>ET(t).map(n=>`${t.repository??""}\0${t.fileName}\0${n}`))).size}o(Il,"testCount");function pye(e){return $n(ZC,e).errors}o(pye,"validateAnalysisOutput");function eY(e,t=[]){let{value:n,error:i}=qt(e,t);if(i)return{errors:[i]};let r=pye(n);return r.length>0?{errors:r}:{analysis:n,errors:[]}}o(eY,"parseAnalysisText");function fye(e,t=[]){return eY(e.stdout,t)}o(fye,"parseAnalysisFromSession");var rYe=Hn("analysis-schema",(e,t)=>fye(t,e.secretValues));var JWe=Nh.rows.notRun(!0);var rA="kept, not ";var iA="(declined the planned ";function IT(e){if(!e)return[];let t=[],n=0,i=0;for(let r=0;r<e.length;r++){let s=e[r];s==="("?n++:s===")"?n=Math.max(0,n-1):n===0&&s===";"&&e[r+1]===" "&&e[r-1]===")"&&(t.push(e.slice(i,r)),i=r+2)}return t.push(e.slice(i)),t.map(r=>{let s=r.trim();if(!s.endsWith(")"))return{expectation:s};let a=0;for(let c=s.length-1;c>=0;c--)if(s[c]===")")a++;else if(s[c]==="("&&--a===0){let u=s.slice(0,c).trim(),l=s.slice(c+1,-1).trim();return u&&l?{expectation:u,expected:l}:{expectation:s}}return{expectation:s}})}o(IT,"assertionParts");var vT=new Set(["update","regenerate","delete"]);var HWe={update:"updated",regenerate:"regenerated",delete:"deleted",verify:"verified",none:"touched"};var mt=re(require("node:fs")),Oe=re(require("node:path")),eI=require("node:crypto"),ST=require("node:child_process");var KE=re(require("fs")),gn=re(require("path"));var Tt=re(require("node:fs")),tn=re(require("node:path")),WE=require("node:child_process");var HE=re(require("fs")),br=re(require("path"));var hye={lf:`