@builder.io/dev-tools 1.71.0-beta.202606291611.cb6097a.fix-two-ux-issues-in-the-buildercode-cli → 1.71.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/cli/index.cjs +6 -6
- package/cli/index.cjs.map +3 -3
- package/core/index.cjs +1 -1
- package/core/index.mjs +1 -1
- package/node/index.cjs +1 -1
- package/node/index.mjs +1 -1
- package/package.json +1 -1
- package/server/index.cjs +6 -6
- package/server/index.mjs +7 -7
- package/types/tsconfig.tsbuildinfo +1 -1
package/server/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire } from 'module'; const require = createRequire(import.meta.url);
|
|
2
|
-
var Fq=Object.create;var Nc=Object.defineProperty;var Rq=Object.getOwnPropertyDescriptor;var kq=Object.getOwnPropertyNames;var Mq=Object.getPrototypeOf,Nq=Object.prototype.hasOwnProperty;var zv=t=>{throw TypeError(t)};var Tq=(t,e,r)=>e in t?Nc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var W=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var x=(t,e)=>()=>(t&&(e=t(t=0)),e);var w=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Zv=(t,e)=>{for(var r in e)Nc(t,r,{get:e[r],enumerable:!0})},Xv=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of kq(e))!Nq.call(t,i)&&i!==r&&Nc(t,i,{get:()=>e[i],enumerable:!(n=Rq(e,i))||n.enumerable});return t};var Ze=(t,e,r)=>(r=t!=null?Fq(Mq(t)):{},Xv(e||!t||!t.__esModule?Nc(r,"default",{value:t,enumerable:!0}):r,t)),Pt=t=>Xv(Nc({},"__esModule",{value:!0}),t);var De=(t,e,r)=>Tq(t,typeof e!="symbol"?e+"":e,r),Ff=(t,e,r)=>e.has(t)||zv("Cannot "+r);var Z=(t,e,r)=>(Ff(t,e,"read from private field"),r?r.call(t):e.get(t)),Mt=(t,e,r)=>e.has(t)?zv("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),At=(t,e,r,n)=>(Ff(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),Je=(t,e,r)=>(Ff(t,e,"access private method"),r);var Pq,Bn,li=x(()=>{"use strict";Pq="1.71.
|
|
2
|
+
var Fq=Object.create;var Nc=Object.defineProperty;var Rq=Object.getOwnPropertyDescriptor;var kq=Object.getOwnPropertyNames;var Mq=Object.getPrototypeOf,Nq=Object.prototype.hasOwnProperty;var zv=t=>{throw TypeError(t)};var Tq=(t,e,r)=>e in t?Nc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var W=(t=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(t,{get:(e,r)=>(typeof require<"u"?require:e)[r]}):t)(function(t){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+t+'" is not supported')});var x=(t,e)=>()=>(t&&(e=t(t=0)),e);var w=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Zv=(t,e)=>{for(var r in e)Nc(t,r,{get:e[r],enumerable:!0})},Xv=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let i of kq(e))!Nq.call(t,i)&&i!==r&&Nc(t,i,{get:()=>e[i],enumerable:!(n=Rq(e,i))||n.enumerable});return t};var Ze=(t,e,r)=>(r=t!=null?Fq(Mq(t)):{},Xv(e||!t||!t.__esModule?Nc(r,"default",{value:t,enumerable:!0}):r,t)),Pt=t=>Xv(Nc({},"__esModule",{value:!0}),t);var De=(t,e,r)=>Tq(t,typeof e!="symbol"?e+"":e,r),Ff=(t,e,r)=>e.has(t)||zv("Cannot "+r);var Z=(t,e,r)=>(Ff(t,e,"read from private field"),r?r.call(t):e.get(t)),Mt=(t,e,r)=>e.has(t)?zv("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),At=(t,e,r,n)=>(Ff(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r),Je=(t,e,r)=>(Ff(t,e,"access private method"),r);var Pq,Bn,li=x(()=>{"use strict";Pq="1.71.1",Bn=process.env.OVERRIDE_VERSION??Pq});var Rf,Bs,ml,hl,eb,Io,kf,Mf,fo,tb,Qs=x(()=>{"use strict";Rf="preview-url",Bs="framework",ml="platform",hl="node",eb="/~builder-connect",Io="/~builder-connected",kf="/~builder-dev-tools",Mf="/~builder-dev-tools.js",fo="/~builder-dev-tools-close",tb="/mappings"});var nb=w((ESe,rb)=>{"use strict";rb.exports=function(){if(process.env.npm_config_user_agent)return Uq(process.env.npm_config_user_agent)};function Uq(t){let e=t.split(" ")[0],r=e.lastIndexOf("/"),n=e.substring(0,r);return{name:n==="npminstall"?"cnpm":n,version:e.substring(r+1)}}});function mo(t){return t.endsWith(".mapper.tsx")||t.endsWith(".mapper.jsx")||t.endsWith(".mapper.ts")||t.endsWith(".mapper.js")||t.endsWith(".mapper.mjs")}async function ib(t){return(await t.hash(t.getAppRootDir())).substring(0,8)}function El(t){return JSON.parse(JSON.stringify(t))}function Gq(){return process.platform.startsWith("win")}function st(){return process.pkg?"@builder.io/agent":Gq()?'"@builder.io/dev-tools"':"builder.io"}var Lq,tt=x(()=>{"use strict";Lq=Ze(nb(),1)});async function ys(t,e){let r=t.resolve("/");for(let n=0;n<20;n++){let i=t.join(e,"package.json"),A=await t.readFile(i);if(A)return JSON.parse(A);if(e===r)break;e=t.dirname(e)}return null}async function Ab(t,e){for(let r=0;r<20;r++){let n=t.dirname(e),i=t.join(n,"node_modules");if(await t.exists(i))return i;if(e===t.getAppRootDir())break;e=t.dirname(e)}return t.join(t.getAppRootDir(),"node_modules")}var Kr=x(()=>{"use strict"});function SA(t){let e=t[t.length-1];return e&&typeof e=="object"&&!(e instanceof Error)&&!Array.isArray(e)&&"loggerOptions"in e?{callArgs:t.slice(0,-1),options:e.loggerOptions}:{callArgs:t,options:{}}}function Oq(t,e){return`[${t.toUpperCase()}]`+e.map(r=>{if(r instanceof Error)return r.stack??r.message;if(typeof r=="object"&&r!==null)try{return JSON.stringify(r)}catch{return String(r)}return String(r)}).join(" ")}function Kq(){let t=process.env.FUSION_ENVIRONMENT;return t==="cloud"||t==="cloud-v2"}function yl(t,e,r,n){let i={severity:e,message:Oq(r,n),timestamp:new Date().toISOString()};r&&(i.context=r),t.write(JSON.stringify(i)+`
|
|
3
3
|
`)}function Jq(t,e,r){return{debug(...n){if(!e())return;let{callArgs:i,options:A}=SA(n);yl(A.stderr?process.stderr:process.stdout,"DEBUG",r,i)},info(...n){if(t>vA.info)return;let{callArgs:i,options:A}=SA(n);A.debug&&!e()||yl(A.stderr?process.stderr:process.stdout,"INFO",r,i)},warn(...n){if(t>vA.warn)return;let{callArgs:i,options:A}=SA(n);A.debug&&!e()||yl(process.stderr,"WARNING",r,i)},error(...n){if(t>vA.error)return;let{callArgs:i,options:A}=SA(n);A.debug&&!e()||yl(process.stderr,"ERROR",r,i)}}}function Ds(t){return t?`[${t}]`:""}function Yq(t,e,r){return{debug(...n){if(!e())return;let{callArgs:i,options:A}=SA(n);A.stderr?console.error(Ds(r),...i):console.debug(Ds(r),...i)},info(...n){if(vA.info<t)return;let{callArgs:i,options:A}=SA(n);A.debug&&!e()||(A.stderr?console.error(Ds(r),...i):console.log(Ds(r),...i))},warn(...n){if(vA.warn<t)return;let{callArgs:i,options:A}=SA(n);A.debug&&!e()||console.warn(Ds(r),...i)},error(...n){if(vA.error<t)return;let{callArgs:i,options:A}=SA(n);A.debug&&!e()||console.error(Ds(r),...i)}}}function de(t,e){let r=typeof e?.debug=="function"?e.debug:e?.debug!==void 0?()=>e.debug:()=>jq||!!process.env.DEBUG,n=e?.level??process.env.LOG_LEVEL?.toLowerCase();return Kq()?Jq(cb(n??"info"),r,t):Yq(cb(n??"info"),r,t)}function cb(t){return vA[t]??vA.info}var vA,jq,rt=x(()=>{"use strict";vA={debug:0,info:1,warn:2,error:3};jq=!1});var FSe,Tf=x(()=>{"use strict";rt();FSe=de("ConnectionTracker")});var ho=x(()=>{"use strict";Kr();tt()});var cn,ws=x(()=>{cn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__});var Fr,Eo=x(()=>{Fr=globalThis});var Bo,ub=x(()=>{Bo="10.58.0"});function Hi(){return Pc(Fr),Fr}function Pc(t){let e=t.__SENTRY__=t.__SENTRY__||{};return e.version=e.version||Bo,e[Bo]=e[Bo]||{}}function Ss(t,e,r=Fr){let n=r.__SENTRY__=r.__SENTRY__||{},i=n[Bo]=n[Bo]||{};return i[t]||(i[t]=e())}var bA=x(()=>{ub();Eo()});function Vq(t){if(!("console"in Fr))return t();let e=Fr.console,r={},n=Object.keys(gb);n.forEach(i=>{let A=gb[i];r[i]=e[i],e[i]=A});try{return t()}finally{n.forEach(i=>{e[i]=r[i]})}}function $q(){Uf().enabled=!0}function Wq(){Uf().enabled=!1}function lb(){return Uf().enabled}function zq(...t){Pf("log",...t)}function Zq(...t){Pf("warn",...t)}function Xq(...t){Pf("error",...t)}function Pf(t,...e){cn&&lb()&&Vq(()=>{Fr.console[t](`${qq}[${t}]:`,...e)})}function Uf(){return cn?Ss("loggerSettings",()=>({enabled:!1})):{enabled:!1}}var qq,gb,Qn,vs=x(()=>{bA();ws();Eo();qq="Sentry Logger ",gb={};Qn={enable:$q,disable:Wq,isEnabled:lb,log:zq,warn:Zq,error:Xq}});function pb(t,e){return e9.call(t)===`[object ${e}]`}function db(t){return pb(t,"String")}function Cb(t){return pb(t,"Object")}function Ib(t){return!!(t?.then&&typeof t.then=="function")}var e9,Dl=x(()=>{e9=Object.prototype.toString});function fb(t,e,r){try{Object.defineProperty(t,e,{value:r,writable:!0,configurable:!0})}catch{cn&&Qn.log(`Failed to add non-enumerable property "${String(e)}" to object`,t)}}var mb=x(()=>{ws();vs()});function xs(t){if(bs!==void 0)return bs?bs(t):t();let e=Symbol.for("__SENTRY_SAFE_RANDOM_ID_WRAPPER__"),r=Fr;return e in r&&typeof r[e]=="function"?(bs=r[e],bs(t)):(bs=null,t())}function Uc(){return xs(()=>Math.random())}function hb(){return xs(()=>Date.now())}var bs,wl=x(()=>{Eo()});function Eb(t,e=0){return typeof t!="string"||e===0||t.length<=e?t:`${t.slice(0,e)}...`}var Bb=x(()=>{});function t9(){let t=Fr;return t.crypto||t.msCrypto}function r9(){return Uc()*16}function Oi(t=t9()){try{if(t?.randomUUID)return xs(()=>t.randomUUID()).replace(/-/g,"")}catch{}return Lf||(Lf="10000000100040008000"+1e11),Lf.replace(/[018]/g,e=>(e^(r9()&15)>>e/4).toString(16))}var Lf,Sl=x(()=>{wl();Eo()});function Gf(){return hb()/yb}function n9(){let{performance:t}=Fr;if(!t?.now||!t.timeOrigin)return Gf;let e=t.timeOrigin;return()=>(e+xs(()=>t.now()))/yb}function vl(){return(Qb??(Qb=n9()))()}var yb,Qb,bl=x(()=>{wl();Eo();yb=1e3});function Db(t,e={}){if(e.user&&(!t.ipAddress&&e.user.ip_address&&(t.ipAddress=e.user.ip_address),!t.did&&!e.did&&(t.did=e.user.id||e.user.email||e.user.username)),t.timestamp=e.timestamp||vl(),e.abnormal_mechanism&&(t.abnormal_mechanism=e.abnormal_mechanism),e.ignoreDuration&&(t.ignoreDuration=e.ignoreDuration),e.sid&&(t.sid=e.sid.length===32?e.sid:Oi()),e.init!==void 0&&(t.init=e.init),!t.did&&e.did&&(t.did=`${e.did}`),typeof e.started=="number"&&(t.started=e.started),t.ignoreDuration)t.duration=void 0;else if(typeof e.duration=="number")t.duration=e.duration;else{let r=t.timestamp-t.started;t.duration=r>=0?r:0}e.release&&(t.release=e.release),e.environment&&(t.environment=e.environment),!t.ipAddress&&e.ipAddress&&(t.ipAddress=e.ipAddress),!t.userAgent&&e.userAgent&&(t.userAgent=e.userAgent),typeof e.errors=="number"&&(t.errors=e.errors),e.status&&(t.status=e.status)}var wb=x(()=>{Sl();bl()});function _f(t,e,r=2){if(!e||typeof e!="object"||r<=0)return e;if(t&&Object.keys(e).length===0)return t;let n={...t};for(let i in e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=_f(n[i],e[i],r-1));return n}var Sb=x(()=>{});function Fs(){return Oi()}function Hf(){return Oi().substring(16)}var Of=x(()=>{Sl()});function Kf(t){try{let e=Fr.WeakRef;if(typeof e=="function")return new e(t)}catch{}return t}function xl(t){if(t){if(typeof t=="object"&&"deref"in t&&typeof t.deref=="function")try{return t.deref()}catch{return}return t}}var Jf=x(()=>{Eo()});function jf(t,e){e?fb(t,Yf,Kf(e)):delete t[Yf]}function Lc(t){return xl(t[Yf])}var Yf,qf=x(()=>{mb();Jf();Yf="_sentrySpan"});var i9,Ki,Vf=x(()=>{ws();wb();vs();Dl();Sb();Sl();Of();wl();qf();Bb();bl();i9=100,Ki=class t{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._attributes={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Fs(),sampleRand:Uc()}}clone(){let e=new t;return e._breadcrumbs=[...this._breadcrumbs],e._tags={...this._tags},e._attributes={...this._attributes},e._extra={...this._extra},e._contexts={...this._contexts},this._contexts.flags&&(e._contexts.flags={values:[...this._contexts.flags.values]}),e._user=this._user,e._level=this._level,e._session=this._session,e._transactionName=this._transactionName,e._fingerprint=this._fingerprint,e._eventProcessors=[...this._eventProcessors],e._attachments=[...this._attachments],e._sdkProcessingMetadata={...this._sdkProcessingMetadata},e._propagationContext={...this._propagationContext},e._client=this._client,e._lastEventId=this._lastEventId,e._conversationId=this._conversationId,jf(e,Lc(this)),e}setClient(e){this._client=e}setLastEventId(e){this._lastEventId=e}getClient(){return this._client}lastEventId(){return this._lastEventId}addScopeListener(e){this._scopeListeners.push(e)}addEventProcessor(e){return this._eventProcessors.push(e),this}setUser(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Db(this._session,{user:e}),this._notifyScopeListeners(),this}getUser(){return this._user}setConversationId(e){return this._conversationId=e||void 0,this._notifyScopeListeners(),this}setTags(e){return this._tags={...this._tags,...e},this._notifyScopeListeners(),this}setTag(e,r){return this.setTags({[e]:r})}setAttributes(e){return this._attributes={...this._attributes,...e},this._notifyScopeListeners(),this}setAttribute(e,r){return this.setAttributes({[e]:r})}removeAttribute(e){return e in this._attributes&&(delete this._attributes[e],this._notifyScopeListeners()),this}setExtras(e){return this._extra={...this._extra,...e},this._notifyScopeListeners(),this}setExtra(e,r){return this._extra={...this._extra,[e]:r},this._notifyScopeListeners(),this}setFingerprint(e){return this._fingerprint=e,this._notifyScopeListeners(),this}setLevel(e){return this._level=e,this._notifyScopeListeners(),this}setTransactionName(e){return this._transactionName=e,this._notifyScopeListeners(),this}setContext(e,r){return r===null?delete this._contexts[e]:this._contexts[e]=r,this._notifyScopeListeners(),this}setSession(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(e){if(!e)return this;let r=typeof e=="function"?e(this):e,n=r instanceof t?r.getScopeData():Cb(r)?e:void 0,{tags:i,attributes:A,extra:o,user:s,contexts:c,level:u,fingerprint:g=[],propagationContext:d,conversationId:p}=n||{};return this._tags={...this._tags,...i},this._attributes={...this._attributes,...A},this._extra={...this._extra,...o},this._contexts={...this._contexts,...c},s&&Object.keys(s).length&&(this._user=s),u&&(this._level=u),g.length&&(this._fingerprint=g),d&&(this._propagationContext=d),p&&(this._conversationId=p),this}clear(){return this._breadcrumbs=[],this._tags={},this._attributes={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._session=void 0,this._conversationId=void 0,jf(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Fs(),sampleRand:Uc()}),this._notifyScopeListeners(),this}addBreadcrumb(e,r){let n=typeof r=="number"?r:i9;if(n<=0)return this;let i={timestamp:Gf(),...e,message:e.message?Eb(e.message,2048):e.message};return this._breadcrumbs.push(i),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client?.recordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(e){return this._attachments.push(e),this}clearAttachments(){return this._attachments=[],this}getScopeData(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,attributes:this._attributes,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:Lc(this),conversationId:this._conversationId}}setSDKProcessingMetadata(e){return this._sdkProcessingMetadata=_f(this._sdkProcessingMetadata,e,2),this}setPropagationContext(e){return this._propagationContext=e,this}getPropagationContext(){return this._propagationContext}captureException(e,r){let n=r?.event_id||Oi();if(!this._client)return cn&&Qn.warn("No client configured on scope - will not capture exception!"),n;let i=new Error("Sentry syntheticException");return this._client.captureException(e,{originalException:e,syntheticException:i,...r,event_id:n},this),n}captureMessage(e,r,n){let i=n?.event_id||Oi();if(!this._client)return cn&&Qn.warn("No client configured on scope - will not capture message!"),i;let A=n?.syntheticException??new Error(e);return this._client.captureMessage(e,r,{originalException:e,syntheticException:A,...n,event_id:i},this),i}captureEvent(e,r){let n=e.event_id||r?.event_id||Oi();return this._client?(this._client.captureEvent(e,{...r,event_id:n},this),n):(cn&&Qn.warn("No client configured on scope - will not capture event!"),n)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(e=>{e(this)}),this._notifyingListeners=!1)}}});function vb(){return Ss("defaultCurrentScope",()=>new Ki)}function bb(){return Ss("defaultIsolationScope",()=>new Ki)}var xb=x(()=>{bA();Vf()});var Fb,Rb,kb,A9,Mb=x(()=>{Fb=t=>t instanceof Promise&&!t[Rb],Rb=Symbol("chained PromiseLike"),kb=(t,e,r)=>{let n=t.then(i=>(e(i),i),i=>{throw r(i),i});return Fb(n)&&Fb(t)?n:A9(t,n)},A9=(t,e)=>{if(!e)return t;let r=!1;for(let n in t){if(n in e)continue;r=!0;let i=t[n];typeof i=="function"?Object.defineProperty(e,n,{value:(...A)=>i.apply(t,A),enumerable:!0,configurable:!0,writable:!0}):e[n]=i}return r&&Object.assign(e,{[Rb]:!0}),e}});function Rs(){let t=Hi(),e=Pc(t);return e.stack=e.stack||new $f(vb(),bb())}function o9(t){return Rs().withScope(t)}function s9(t,e){let r=Rs();return r.withScope(()=>(r.getStackTop().scope=t,e(t)))}function Nb(t){return Rs().withScope(()=>t(Rs().getIsolationScope()))}function Tb(){return{withIsolationScope:Nb,withScope:o9,withSetScope:s9,withSetIsolationScope:(t,e)=>Nb(e),getCurrentScope:()=>Rs().getScope(),getIsolationScope:()=>Rs().getIsolationScope()}}var $f,Pb=x(()=>{xb();Vf();Mb();Dl();bA();$f=class{constructor(e,r){let n;e?n=e:n=new Ki;let i;r?i=r:i=new Ki,this._stack=[{scope:n}],this._isolationScope=i}withScope(e){let r=this._pushScope(),n;try{n=e(r)}catch(i){throw this._popScope(),i}return Ib(n)?kb(n,()=>this._popScope(),()=>this._popScope()):(this._popScope(),n)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStackTop(){return this._stack[this._stack.length-1]}_pushScope(){let e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}_popScope(){return this._stack.length<=1?!1:!!this._stack.pop()}}});function ks(t){let e=Pc(t);return e.acs?e.acs:Tb()}var Fl=x(()=>{bA();Pb()});function Ub(){return a9!==void 0}function Qo(){let t=Hi();return ks(t).getCurrentScope()}function di(){return Qo().getClient()}var a9,Ms=x(()=>{Fl();bA()});var Rl,Wf,Lb,zf,Zf,Xf=x(()=>{Rl="sentry.source",Wf="sentry.sample_rate",Lb="sentry.previous_trace_sample_rate",zf="sentry.op",Zf="sentry.origin"});function Gb(t){let e=t;return{scope:e[c9],isolationScope:xl(e[u9])}}var c9,u9,_b=x(()=>{Jf();c9="_sentryScope",u9="_sentryIsolationScope"});function Ob(t){let e=l9(t);if(!e)return;let r=Object.entries(e).reduce((n,[i,A])=>{if(i.startsWith(em)){let o=i.slice(em.length);n[o]=A}return n},{});if(Object.keys(r).length>0)return r}function tm(t){if(!t)return;let e=Object.entries(t).reduce((r,[n,i])=>(i&&(r[`${em}${n}`]=i),r),{});return p9(e)}function l9(t){if(!(!t||!db(t)&&!Array.isArray(t)))return Array.isArray(t)?t.reduce((e,r)=>{let n=Hb(r);return Object.entries(n).forEach(([i,A])=>{e[i]=A}),e},{}):Hb(t)}function Hb(t){return t.split(",").map(e=>{let r=e.indexOf("=");if(r===-1)return[];let n=e.slice(0,r),i=e.slice(r+1);return[n,i].map(A=>{try{return decodeURIComponent(A.trim())}catch{return}})}).reduce((e,[r,n])=>(r&&n&&(e[r]=n),e),{})}function p9(t){if(Object.keys(t).length!==0)return Object.entries(t).reduce((e,[r,n],i)=>{let A=`${encodeURIComponent(r)}=${encodeURIComponent(n)}`,o=i===0?A:`${e},${A}`;return o.length>g9?(cn&&Qn.warn(`Not adding key: ${r} with val: ${n} to baggage header due to exceeding baggage size limits.`),e):o},"")}var em,g9,rm=x(()=>{ws();vs();Dl();em="sentry-",g9=8192});function C9(t){return t.match(d9)?.[1]}function Kb(t){let e=t.getOptions(),{host:r}=t.getDsn()||{},n;return e.orgId?n=String(e.orgId):r&&(n=C9(r)),n}var d9,Jb=x(()=>{d9=/^o(\d+)\./});function kl(t=Fs(),e=Hf(),r){let n="";return r!==void 0&&(n=r?"-1":"-0"),`${t}-${e}${n}`}function Ml(t=Fs(),e=Hf(),r){return`00-${t}-${e}-${r?"01":"00"}`}var Yb,nm=x(()=>{Of();Yb=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$")});function im(t){let{traceId:e,spanId:r}=t.spanContext(),n=Nl(t);return kl(e,r,n)}function $b(t){let{traceId:e,spanId:r}=t.spanContext(),n=Nl(t);return Ml(e,r,n)}function I9(t){if(t&&t.length>0)return t.map(({context:{spanId:e,traceId:r,traceFlags:n,...i},attributes:A})=>({span_id:e,trace_id:r,sampled:n===Vb,attributes:A,...i}))}function jb(t){return typeof t=="number"?qb(t):Array.isArray(t)?t[0]+t[1]/1e9:t instanceof Date?qb(t.getTime()):vl()}function qb(t){return t>9999999999?t/1e3:t}function Am(t){if(h9(t))return t.getSpanJSON();let{spanId:e,traceId:r}=t.spanContext();if(m9(t)){let{attributes:n,startTime:i,name:A,endTime:o,status:s,links:c}=t;return{span_id:e,trace_id:r,data:n,description:A,parent_span_id:f9(t),start_timestamp:jb(i),timestamp:jb(o)||void 0,status:E9(s),op:n[zf],origin:n[Zf],links:I9(c)}}return{span_id:e,trace_id:r,start_timestamp:0,data:{}}}function f9(t){return"parentSpanId"in t?t.parentSpanId:"parentSpanContext"in t?t.parentSpanContext?.spanId:void 0}function m9(t){let e=t;return!!e.attributes&&!!e.startTime&&!!e.name&&!!e.endTime&&!!e.status}function h9(t){return typeof t.getSpanJSON=="function"}function Nl(t){let{traceFlags:e}=t.spanContext();return e===Vb}function E9(t){if(!(!t||t.code===0))return t.code===1?"ok":t.message||"internal_error"}function Q9(t){return t[B9]||t}function sm(){let t=Hi(),e=ks(t);return e.getActiveSpan?e.getActiveSpan():Lc(Qo())}var Vb,B9,om,am=x(()=>{Fl();bA();Ms();Xf();bl();nm();qf();Vb=1;B9="_sentryRootSpan",om=Q9});function Wb(t){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;let e=t||di()?.getOptions();return!!e&&(e.tracesSampleRate!=null||!!e.tracesSampler)}var zb=x(()=>{Ms()});var Zb,Xb=x(()=>{Zb="production"});function ex(t,e){let r=e.getOptions(),{publicKey:n}=e.getDsn()||{},i={environment:r.environment||Zb,release:r.release,public_key:n,trace_id:t,org_id:Kb(e)};return e.emit("createDsc",i),i}function tx(t,e){let r=e.getPropagationContext();return r.dsc||ex(r.traceId,t)}function rx(t){let e=di();if(!e)return{};let r=om(t),n=Am(r),i=n.data,A=r.spanContext().traceState,o=A?.get("sentry.sample_rate")??i[Wf]??i[Lb];function s(l){return(typeof o=="number"||typeof o=="string")&&(l.sample_rate=`${o}`),l}let c=r[y9];if(c)return s(c);let u=A?.get("sentry.dsc"),g=u&&Ob(u);if(g)return s(g);let d=ex(t.spanContext().traceId,e),p=i[Rl]??i["sentry.span.source"],a=n.description;return p!=="url"&&a&&(d.transaction=a),Wb()&&(d.sampled=String(Nl(r)),d.sample_rand=A?.get("sentry.sample_rand")??Gb(r).scope?.getPropagationContext().sampleRand.toString()),s(d),e.emit("createDsc",d,r),d}var y9,nx=x(()=>{Xb();Ms();Xf();rm();Jb();zb();am();_b();y9="_frozenDsc"});async function Tl(t){let e=di();return e?e.flush(t):(cn&&Qn.warn("Cannot flush events. No client defined."),Promise.resolve(!1))}function Pl(){let t=di();return t?.getOptions().enabled!==!1&&!!t?.getTransport()}var cm=x(()=>{Ms();ws();vs()});function Ul(t={}){let e=t.client||di();if(!Pl()||!e)return{};let r=Hi(),n=ks(r);if(n.getTraceData)return n.getTraceData(t);let i=t.scope||Qo(),A=t.span||sm();if(!A&&Ub())return{};let o=A?im(A):S9(i),s=A?rx(A):tx(e,i),c=tm(s);if(!Yb.test(o))return Qn.warn("Invalid sentry-trace data. Cannot generate trace data"),{};let g={"sentry-trace":o,baggage:c};return t.propagateTraceparent&&(g.traceparent=A?$b(A):v9(i)),g}function S9(t){let{traceId:e,sampled:r,propagationSpanId:n}=t.getPropagationContext();return kl(e,n,r)}function v9(t){let{traceId:e,sampled:r,propagationSpanId:n}=t.getPropagationContext();return Ml(e,n,r)}var ix=x(()=>{Fl();bA();Ms();cm();vs();am();nx();rm();nm()});var Ax=x(()=>{cm();ix()});var um=x(()=>{Ax()});import{access as Txe,mkdir as q9,readdir as Pxe,readFile as sx,rm as Uxe,stat as Lxe,unlink as V9,writeFile as $9}from"node:fs/promises";import{homedir as ax,hostname as _xe}from"node:os";import gm from"node:path";import Kxe from"launch-editor";function cx(){let t=ax();return gm.join(t,".builder","config","dev-tools.json")}function W9(){let t=ax();return gm.join(t,".config","builder","dev-tools.json")}function lm(t,e){return typeof t=="object"&&t!=null&&e in t}async function Ns(){let t=cx();try{let r=await sx(t,"utf-8");if(typeof r=="string")return JSON.parse(r)}catch(r){if(r.code!=="ENOENT")return null}let e=W9();try{let r=await sx(e,"utf-8");if(typeof r=="string"){let n=JSON.parse(r);try{await Gl(n),await V9(e).catch(()=>{})}catch{}return n}}catch(r){if(r.code==="ENOENT")return null}return null}async function Gl(t){let e=cx();t=typeof t=="object"&&t!=null?t:{},await q9(gm.dirname(e),{recursive:!0}),await $9(e,JSON.stringify(t??{},null,2))}var pm=x(()=>{"use strict";Tf();ho();li()});var _l=w((hFe,Dx)=>{"use strict";var Cm={to(t,e){return e?`\x1B[${e+1};${t+1}H`:`\x1B[${t+1}G`},move(t,e){let r="";return t<0?r+=`\x1B[${-t}D`:t>0&&(r+=`\x1B[${t}C`),e<0?r+=`\x1B[${-e}A`:e>0&&(r+=`\x1B[${e}B`),r},up:(t=1)=>`\x1B[${t}A`,down:(t=1)=>`\x1B[${t}B`,forward:(t=1)=>`\x1B[${t}C`,backward:(t=1)=>`\x1B[${t}D`,nextLine:(t=1)=>"\x1B[E".repeat(t),prevLine:(t=1)=>"\x1B[F".repeat(t),left:"\x1B[G",hide:"\x1B[?25l",show:"\x1B[?25h",save:"\x1B7",restore:"\x1B8"},oV={up:(t=1)=>"\x1B[S".repeat(t),down:(t=1)=>"\x1B[T".repeat(t)},sV={screen:"\x1B[2J",up:(t=1)=>"\x1B[1J".repeat(t),down:(t=1)=>"\x1B[J".repeat(t),line:"\x1B[2K",lineEnd:"\x1B[K",lineStart:"\x1B[1K",lines(t){let e="";for(let r=0;r<t;r++)e+=this.line+(r<t-1?Cm.up():"");return t&&(e+=Cm.left),e}};Dx.exports={cursor:Cm,scroll:oV,erase:sV,beep:"\x07"}});var yo=w((EFe,Im)=>{var Ol=process||{},wx=Ol.argv||[],Hl=Ol.env||{},aV=!(Hl.NO_COLOR||wx.includes("--no-color"))&&(!!Hl.FORCE_COLOR||wx.includes("--color")||Ol.platform==="win32"||(Ol.stdout||{}).isTTY&&Hl.TERM!=="dumb"||!!Hl.CI),cV=(t,e,r=t)=>n=>{let i=""+n,A=i.indexOf(e,t.length);return~A?t+uV(i,e,r,A)+e:t+i+e},uV=(t,e,r,n)=>{let i="",A=0;do i+=t.substring(A,n)+r,A=n+e.length,n=t.indexOf(e,A);while(~n);return i+t.substring(A)},Sx=(t=aV)=>{let e=t?cV:()=>String;return{isColorSupported:t,reset:e("\x1B[0m","\x1B[0m"),bold:e("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:e("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:e("\x1B[3m","\x1B[23m"),underline:e("\x1B[4m","\x1B[24m"),inverse:e("\x1B[7m","\x1B[27m"),hidden:e("\x1B[8m","\x1B[28m"),strikethrough:e("\x1B[9m","\x1B[29m"),black:e("\x1B[30m","\x1B[39m"),red:e("\x1B[31m","\x1B[39m"),green:e("\x1B[32m","\x1B[39m"),yellow:e("\x1B[33m","\x1B[39m"),blue:e("\x1B[34m","\x1B[39m"),magenta:e("\x1B[35m","\x1B[39m"),cyan:e("\x1B[36m","\x1B[39m"),white:e("\x1B[37m","\x1B[39m"),gray:e("\x1B[90m","\x1B[39m"),bgBlack:e("\x1B[40m","\x1B[49m"),bgRed:e("\x1B[41m","\x1B[49m"),bgGreen:e("\x1B[42m","\x1B[49m"),bgYellow:e("\x1B[43m","\x1B[49m"),bgBlue:e("\x1B[44m","\x1B[49m"),bgMagenta:e("\x1B[45m","\x1B[49m"),bgCyan:e("\x1B[46m","\x1B[49m"),bgWhite:e("\x1B[47m","\x1B[49m"),blackBright:e("\x1B[90m","\x1B[39m"),redBright:e("\x1B[91m","\x1B[39m"),greenBright:e("\x1B[92m","\x1B[39m"),yellowBright:e("\x1B[93m","\x1B[39m"),blueBright:e("\x1B[94m","\x1B[39m"),magentaBright:e("\x1B[95m","\x1B[39m"),cyanBright:e("\x1B[96m","\x1B[39m"),whiteBright:e("\x1B[97m","\x1B[39m"),bgBlackBright:e("\x1B[100m","\x1B[49m"),bgRedBright:e("\x1B[101m","\x1B[49m"),bgGreenBright:e("\x1B[102m","\x1B[49m"),bgYellowBright:e("\x1B[103m","\x1B[49m"),bgBlueBright:e("\x1B[104m","\x1B[49m"),bgMagentaBright:e("\x1B[105m","\x1B[49m"),bgCyanBright:e("\x1B[106m","\x1B[49m"),bgWhiteBright:e("\x1B[107m","\x1B[49m")}};Im.exports=Sx();Im.exports.createColors=Sx});import{stdin as gV,stdout as lV}from"node:process";import vx from"node:readline";import{Writable as pV}from"node:stream";function dV({onlyFirst:t=!1}={}){let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?(?:\\u0007|\\u001B\\u005C|\\u009C))","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}function Px(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(CV,"")}function Ux(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function _c(t,e={}){if(typeof t!="string"||t.length===0||(e={ambiguousIsNarrow:!0,...e},t=Px(t),t.length===0))return 0;t=t.replace(hV()," ");let r=e.ambiguousIsNarrow?1:2,n=0;for(let i of t){let A=i.codePointAt(0);if(!(A<=31||A>=127&&A<=159||A>=768&&A<=879))switch(fV.eastAsianWidth(i)){case"F":case"W":n+=2;break;case"A":n+=r;break;default:n+=1}}return n}function QV(){let t=new Map;for(let[e,r]of Object.entries(wt)){for(let[n,i]of Object.entries(r))wt[n]={open:`\x1B[${i[0]}m`,close:`\x1B[${i[1]}m`},r[n]=wt[n],t.set(i[0],i[1]);Object.defineProperty(wt,e,{value:r,enumerable:!1})}return Object.defineProperty(wt,"codes",{value:t,enumerable:!1}),wt.color.close="\x1B[39m",wt.bgColor.close="\x1B[49m",wt.color.ansi=bx(),wt.color.ansi256=xx(),wt.color.ansi16m=Fx(),wt.bgColor.ansi=bx(fm),wt.bgColor.ansi256=xx(fm),wt.bgColor.ansi16m=Fx(fm),Object.defineProperties(wt,{rgbToAnsi256:{value:(e,r,n)=>e===r&&r===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(r/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:e=>{let r=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!r)return[0,0,0];let[n]=r;n.length===3&&(n=[...n].map(A=>A+A).join(""));let i=Number.parseInt(n,16);return[i>>16&255,i>>8&255,i&255]},enumerable:!1},hexToAnsi256:{value:e=>wt.rgbToAnsi256(...wt.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value:e=>{if(e<8)return 30+e;if(e<16)return 90+(e-8);let r,n,i;if(e>=232)r=((e-232)*10+8)/255,n=r,i=r;else{e-=16;let s=e%36;r=Math.floor(e/36)/5,n=Math.floor(s/6)/5,i=s%6/5}let A=Math.max(r,n,i)*2;if(A===0)return 30;let o=30+(Math.round(i)<<2|Math.round(n)<<1|Math.round(r));return A===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,r,n)=>wt.ansi256ToAnsi(wt.rgbToAnsi256(e,r,n)),enumerable:!1},hexToAnsi:{value:e=>wt.ansi256ToAnsi(wt.hexToAnsi256(e)),enumerable:!1}}),wt}function Mx(t,e,r){return String(t).normalize().replace(/\r\n/g,`
|
|
4
4
|
`).split(`
|
|
5
5
|
`).map(n=>bV(n,e,r)).join(`
|
|
@@ -27,9 +27,9 @@ ${ot.default.gray(Jx)} ${t}
|
|
|
27
27
|
`);r.push(`${e} ${n}`,...i.map(A=>`${ot.default.gray($n)} ${A}`))}process.stdout.write(`${r.join(`
|
|
28
28
|
`)}
|
|
29
29
|
`)},info:t=>{Te.message(t,{symbol:ot.default.blue(JV)})},success:t=>{Te.message(t,{symbol:ot.default.green(YV)})},step:t=>{Te.message(t,{symbol:ot.default.green(Kx)})},warn:t=>{Te.message(t,{symbol:ot.default.yellow(jV)})},warning:t=>{Te.warn(t)},error:t=>{Te.message(t,{symbol:ot.default.red(qV)})}},JFe=`${ot.default.gray($n)} `});function Yx(t,e=0){return(Cr[t[e+0]]+Cr[t[e+1]]+Cr[t[e+2]]+Cr[t[e+3]]+"-"+Cr[t[e+4]]+Cr[t[e+5]]+"-"+Cr[t[e+6]]+Cr[t[e+7]]+"-"+Cr[t[e+8]]+Cr[t[e+9]]+"-"+Cr[t[e+10]]+Cr[t[e+11]]+Cr[t[e+12]]+Cr[t[e+13]]+Cr[t[e+14]]+Cr[t[e+15]]).toLowerCase()}var Cr,jx=x(()=>{Cr=[];for(let t=0;t<256;++t)Cr.push((t+256).toString(16).slice(1))});import WV from"node:crypto";function ym(){return Vl>$l.length-16&&(WV.randomFillSync($l),Vl=0),$l.slice(Vl,Vl+=16)}var $l,Vl,qx=x(()=>{$l=new Uint8Array(256),Vl=$l.length});import zV from"node:crypto";var Dm,Vx=x(()=>{Dm={randomUUID:zV.randomUUID}});function ZV(t,e,r){if(Dm.randomUUID&&!e&&!t)return Dm.randomUUID();t=t||{};let n=t.random||(t.rng||ym)();if(n[6]=n[6]&15|64,n[8]=n[8]&63|128,e){r=r||0;for(let i=0;i<16;++i)e[r+i]=n[i];return e}return Yx(n)}var wm,$x=x(()=>{Vx();qx();jx();wm=ZV});var Wx=x(()=>{$x()});function e$(t){return Wl?`tracert ${t}`:`traceroute ${t}`}function t$(){return XV?"sudo dscacheutil -flushcache && sudo killall -HUP mDNSResponder":Wl?"ipconfig /flushdns":"sudo systemd-resolve --flush-caches"}function r$(t,e){return Wl?`Test-NetConnection -ComputerName ${t} -Port ${e}`:`nc -zv ${t} ${e}`}function n$(t){return Wl?`nslookup ${t}`:`dig ${t}`}function i$(t,e){return`openssl s_client -connect ${t}:${e} -showcerts`}function Sm(t,e,r){let n=t.code,i=`${e}${r?`:${r}`:""}`;if(n==="ECONNREFUSED"){let A=r||443;return new ut({type:"connection_refused",cause:t,message:`Connection refused to ${i}. The server may be down or not accepting connections on this port.`,suggestions:["Verify the server is running and accepting connections",`Test if the port is reachable: ${r$(e,A)}`,"Check if a firewall is blocking the connection","Ensure the correct port number is being used","If using a proxy, verify proxy settings are correct","Try again in a few minutes - the service may be temporarily unavailable"],hostname:e,port:r,errorCode:n})}if(n==="ECONNRESET")return new ut({type:"connection_reset",cause:t,message:`Connection to ${i} was reset. The server closed the connection unexpectedly.`,suggestions:["The server may have restarted or timed out - try again","Check if a proxy or firewall is terminating connections","If behind a corporate network, the connection may be blocked","Verify network stability - intermittent connectivity can cause resets","If using keep-alive connections, the server may have closed an idle connection"],hostname:e,port:r,errorCode:n});if(n==="ECONNABORTED")return new ut({type:"connection_aborted",cause:t,message:`Connection to ${i} was aborted before completing.`,suggestions:["The request may have been interrupted - try again","Check for network instability or packet loss","If using a proxy, verify the proxy is functioning correctly","The server may have terminated the connection early"],hostname:e,port:r,errorCode:n});if(n==="ETIMEDOUT"||n==="ESOCKETTIMEDOUT"||n==="ERR_SOCKET_CONNECTION_TIMEOUT"||n==="ERR_HTTP_REQUEST_TIMEOUT")return new ut({type:"connection_timeout",cause:t,message:`Connection to ${i} timed out. The server did not respond in time.`,suggestions:["Check your internet connection speed and stability","The server may be overloaded - try again in a few minutes","If behind a proxy, ensure the proxy is not causing delays","Corporate firewalls may be slowing or blocking the connection","Try using a different network (e.g., mobile hotspot) to isolate the issue"],hostname:e,port:r,errorCode:n});if(n==="ENOTFOUND"||n==="EAI_AGAIN")return new ut({type:"dns_not_found",cause:t,message:`Cannot resolve hostname '${e}'. DNS lookup failed.`,suggestions:["Check your internet connection","Verify the hostname is spelled correctly",`Test DNS resolution: ${n$(e)}`,"Try using a different DNS server (e.g., 8.8.8.8 or 1.1.1.1)","If on a VPN, try disconnecting and reconnecting",`Flush your DNS cache: ${t$()}`],hostname:e,errorCode:n});if(n&&A$.has(n)){let A=r||443;return new ut({type:"ssl_self_signed",cause:t,message:`SSL certificate error: The server at ${i} is using a self-signed certificate that is not trusted.`,suggestions:["If on a corporate network, add your company's CA certificate:"," \u2192 npm config set cafile /path/to/company-cert.pem"," \u2192 Or set NODE_EXTRA_CA_CERTS=/path/to/company-cert.pem","For Node.js 22+, use --use-system-ca flag if the CA is installed in your system",`Inspect the certificate: ${i$(e,A)}`,"Contact your IT department to get the corporate root CA certificate","If this is your server, consider using Let's Encrypt for free valid certificates","\u26A0\uFE0F Temporary workaround (not secure): npm config set strict-ssl false"],hostname:e,port:r,errorCode:n})}if(n&&s$.has(n))return new ut({type:"ssl_certificate_expired",cause:t,message:`SSL certificate error: The certificate for ${i} has expired.`,suggestions:["Contact the server administrator to renew the SSL certificate","Check if your system clock is set correctly - incorrect time can cause certificate errors","If this is your server, renew the certificate immediately","This may indicate a security issue - proceed with caution"],hostname:e,port:r,errorCode:n});if(n&&a$.has(n))return new ut({type:"ssl_certificate_not_yet_valid",cause:t,message:`SSL certificate error: The certificate for ${i} is not yet valid. The certificate's validity period has not started yet.`,suggestions:["Check if your system clock is set correctly - this is the most common cause","Verify your system date and time are accurate","If the clock is correct, wait until the certificate becomes valid","Contact the server administrator - they may have deployed a certificate too early"],hostname:e,port:r,errorCode:n});if(n&&c$.has(n)){let A=n==="CRL_HAS_EXPIRED",o=n==="CRL_NOT_YET_VALID";return new ut({type:"ssl_certificate_invalid",cause:t,message:`SSL error: The Certificate Revocation List (CRL) for ${i} ${A?"has expired":o?"is not yet valid":"has invalid date fields"}. This means the revocation list is stale, not that the certificate itself has expired.`,suggestions:["This is often a server-side configuration issue - the server needs to update its CRL","Check if your system clock is set correctly - incorrect time can cause CRL validation errors","If behind a corporate proxy, the proxy may be caching an outdated CRL","Try again later - the server administrator may need to refresh the CRL","If on a corporate network, contact your IT department","\u26A0\uFE0F Temporary workaround (not secure): npm config set strict-ssl false"],hostname:e,port:r,errorCode:n})}if(n&&o$.has(n))return new ut({type:"ssl_certificate_invalid",cause:t,message:`SSL certificate error: The certificate for ${i} could not be verified. ${C$(n)}`,suggestions:["If on a corporate network, add your company's CA certificate:"," \u2192 npm config set cafile /path/to/company-cert.pem"," \u2192 Or set NODE_EXTRA_CA_CERTS=/path/to/company-cert.pem","For Node.js 22+, use --use-system-ca flag if certificates are installed in your system","The server may be missing intermediate certificates in its chain","If behind a corporate proxy, contact IT for the proxy's root CA certificate","Verify you're connecting to the correct server (check for DNS hijacking)","\u26A0\uFE0F Temporary workaround (not secure): npm config set strict-ssl false"],hostname:e,port:r,errorCode:n});if(n&&g$.has(n))return new ut({type:"ssl_handshake_failed",cause:t,message:`SSL/TLS handshake with ${i} failed. Could not establish a secure connection.`,suggestions:["The server may be temporarily unavailable - try again","Check if a proxy or firewall is intercepting HTTPS traffic","Your corporate network may require specific certificates to be installed","The server may require a specific TLS version your client doesn't support","Try connecting from a different network to isolate the issue"],hostname:e,port:r,errorCode:n});if(n&&l$.has(n)){let A=n==="CRYPT_E_REVOCATION_OFFLINE";return new ut({type:"ssl_certificate_invalid",cause:t,message:`Certificate revocation check failed for ${i}. ${A?"The revocation server is offline.":"Unable to verify certificate revocation status."}`,suggestions:["This is often a temporary issue - try again in a few minutes","The certificate revocation server (CRL/OCSP) may be unreachable","If on a corporate network, add your company's CA certificate:"," \u2192 npm config set cafile /path/to/company-cert.pem","Check if a firewall or proxy is blocking access to revocation servers","Contact your IT department for assistance with certificate configuration","\u26A0\uFE0F Temporary workaround (not secure): npm config set strict-ssl false"],hostname:e,port:r,errorCode:n})}return n&&u$.has(n)?new ut({type:"ssl_protocol_error",cause:t,message:`SSL/TLS protocol error connecting to ${i}. ${I$(n)}`,suggestions:["The server may require a different TLS version (try TLS 1.2 or 1.3)","If behind a proxy, it may not support modern TLS protocols","Corporate firewalls sometimes downgrade TLS - contact your IT department","The server's SSL configuration may be outdated or misconfigured","Try updating Node.js to get the latest TLS support"],hostname:e,port:r,errorCode:n}):n&&p$.has(n)?new ut({type:"proxy_error",cause:t,message:`Proxy error while connecting to ${i}. The proxy server could not establish a tunnel.`,suggestions:["Verify your proxy settings (HTTP_PROXY, HTTPS_PROXY environment variables)","Check if the proxy server is running and accessible","Ensure the proxy allows connections to the target host","Try bypassing the proxy by adding the host to NO_PROXY","Corporate proxies may require authentication - check credentials","The proxy may be blocking this specific destination"],hostname:e,port:r,errorCode:n}):n&&d$.has(n)?new ut({type:"network_unreachable",cause:t,message:`Cannot reach ${i}. ${n==="EHOSTUNREACH"?"The host":"The network"} is unreachable.`,suggestions:["Check your internet connection is active","If on WiFi, try reconnecting to the network","VPN connection may have dropped - reconnect if using VPN","The destination network may be down or unreachable from your location","Check if a firewall is blocking outbound connections",`Diagnose the route: ${e$(e)}`],hostname:e,port:r,errorCode:n}):n==="EPIPE"?new ut({type:"connection_reset",cause:t,message:`Broken pipe to ${i}. The connection was closed while data was being sent.`,suggestions:["The server closed the connection unexpectedly - try again","Check if the request payload is too large","Network instability may have caused the connection to drop","If using keep-alive, the server may have closed an idle connection"],hostname:e,port:r,errorCode:n}):n==="ERR_SOCKET_BAD_PORT"?new ut({type:"socket_error",cause:t,message:`Invalid port number for ${e}. Port must be a number between 1 and 65535.`,suggestions:["Check your configuration for the correct port number","Ensure the port is a valid integer (1-65535)","Common ports: HTTP (80), HTTPS (443), custom services typically use 3000-9999","If using environment variables, verify they are set correctly"],hostname:e,port:r,errorCode:n}):n==="ERR_SOCKET_CLOSED"||n==="ERR_SOCKET_CLOSED_BEFORE_CONNECTION"?new ut({type:"socket_error",cause:t,message:`Socket closed unexpectedly while connecting to ${i}.`,suggestions:["The connection was closed unexpectedly - try again","Check for network instability","The server may have rejected the connection"],hostname:e,port:r,errorCode:n}):new ut({type:"unknown",cause:t,errorCode:n,message:`Network error connecting to ${i}: ${n?`[${n}] `:""}${t.message}`,suggestions:["Check your internet connection","If behind a proxy, verify proxy settings are correct","Try connecting from a different network","Check if a firewall or antivirus is blocking the connection","Try again in a few minutes - the service may be temporarily unavailable"],hostname:e,port:r})}function C$(t){return{UNABLE_TO_GET_ISSUER_CERT:"The certificate issuer could not be found.",UNABLE_TO_GET_ISSUER_CERT_LOCALLY:"The certificate issuer is not in the local trusted store.",UNABLE_TO_VERIFY_LEAF_SIGNATURE:"The first certificate in the chain could not be verified.",INVALID_CA:"The CA certificate is invalid.",CERT_SIGNATURE_FAILURE:"The certificate signature is invalid.",CERT_REVOKED:"The certificate has been revoked.",CERT_REJECTED:"The certificate was rejected.",CERT_UNTRUSTED:"The certificate is not trusted.",HOSTNAME_MISMATCH:"The certificate hostname does not match the requested hostname.",ERR_TLS_CERT_ALTNAME_INVALID:"The hostname is not in the certificate's subject alternative names."}[t]||""}function I$(t){return{ERR_TLS_INVALID_PROTOCOL_VERSION:"The TLS protocol version is not supported.",ERR_TLS_INVALID_PROTOCOL_METHOD:"The TLS protocol method is invalid.",ERR_TLS_PROTOCOL_VERSION_CONFLICT:"There is a conflict between TLS protocol versions.",EPROTO:"A protocol error occurred during the SSL/TLS handshake.",ERR_SSL_WRONG_VERSION_NUMBER:"SSL version number mismatch.",ERR_TLS_DH_PARAM_SIZE:"The Diffie-Hellman parameters are too small (insecure)."}[t]||""}var Ji,ut,Wl,XV,A$,o$,s$,a$,c$,u$,g$,l$,p$,d$,xA=x(()=>{"use strict";zr();Ji=class extends Error{},ut=class extends Ji{constructor({type:r,cause:n,message:i,suggestions:A=[],hostname:o,port:s,statusCode:c,errorCode:u}){super(i,{cause:n});De(this,"type");De(this,"suggestions");De(this,"hostname");De(this,"port");De(this,"statusCode");De(this,"errorCode");this.name="NetworkError",this.type=r,this.suggestions=A,this.hostname=o,this.port=s,this.statusCode=c,this.errorCode=u}},Wl=process.platform==="win32",XV=process.platform==="darwin";A$=new Set(["DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN"]),o$=new Set(["UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","INVALID_CA","CERT_SIGNATURE_FAILURE","CERT_REVOKED","CERT_REJECTED","CERT_UNTRUSTED","CERT_CHAIN_TOO_LONG","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","UNABLE_TO_DECRYPT_CERT_SIGNATURE","HOSTNAME_MISMATCH","ERR_TLS_CERT_ALTNAME_INVALID"]),s$=new Set(["CERT_HAS_EXPIRED","ERROR_IN_CERT_NOT_AFTER_FIELD"]),a$=new Set(["CERT_NOT_YET_VALID","ERROR_IN_CERT_NOT_BEFORE_FIELD"]),c$=new Set(["CRL_HAS_EXPIRED","CRL_NOT_YET_VALID","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD"]),u$=new Set(["ERR_TLS_INVALID_PROTOCOL_VERSION","ERR_TLS_INVALID_PROTOCOL_METHOD","ERR_TLS_PROTOCOL_VERSION_CONFLICT","ERR_TLS_INVALID_STATE","ERR_TLS_INVALID_CONTEXT","ERR_TLS_RENEGOTIATION_DISABLED","ERR_TLS_REQUIRED_SERVER_NAME","ERR_TLS_SESSION_ATTACK","ERR_TLS_SNI_FROM_SERVER","ERR_TLS_DH_PARAM_SIZE","ERR_SSL_WRONG_VERSION_NUMBER","EPROTO"]),g$=new Set(["ERR_TLS_HANDSHAKE_TIMEOUT","ERR_SSL_HANDSHAKE_FAILURE"]),l$=new Set(["CRYPT_E_NO_REVOCATION_CHECK","CRYPT_E_REVOCATION_OFFLINE","CRYPT_E_NO_REVOCATION_DLL","CRYPT_E_NOT_IN_REVOCATION_DATABASE","UNABLE_TO_GET_CRL","CRL_SIGNATURE_FAILURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE"]),p$=new Set(["ERR_PROXY_INVALID_CONFIG","ERR_PROXY_TUNNEL","ERR_TUNNEL_CONNECTION_FAILED"]),d$=new Set(["ENETUNREACH","EHOSTUNREACH","ENETDOWN","ENONET"])});import*as Ls from"@amplitude/analytics-node";async function Gs(t,e){if(process.env.BUILDER_DISABLE_AMPLITUDE==="true")return Promise.resolve();let n={...e,app:"dev-tools-cli",package:"cli"},i=await f$(),A=await m$();return await Ls.track(t,n,{user_id:i,device_id:A}).promise}async function zx(t){zl=t;let e=await Ns();await Gl({...e,userId:t})}async function f$(){if(zl)return zl;let t=await Ns(),e;return lm(t,"userId")&&(e=t.userId),zl=e,e}async function m$(){if(vm)return vm;let t=await Ns(),e=wm();return lm(t,"deviceId")?e=t.deviceId:await Gl({...t,deviceId:e}),vm=e,e}var aRe,zl,vm,wo=x(()=>{"use strict";rt();pm();Wx();xA();aRe=de("Track")});var Xx,Zx=x(()=>{Xx="0.0.0"});var FA,_s=x(()=>{"use strict";FA=class extends Error{constructor(r,n,i){super(r,i);De(this,"code");this.name="CodeGenError",this.code=n}}});var Wt,E$,Kt=x(()=>{"use strict";Wt=process.env.AIR_HOST||process.env.BUILDER_HOST||"https://api.builder.io",E$=process.env.GIT_CONFIGS_HOST||Wt});var eF=x(()=>{"use strict"});var Zl=x(()=>{"use strict"});var bm=x(()=>{"use strict"});var xm=x(()=>{"use strict"});var tF=x(()=>{"use strict";xm()});var aF=w((DRe,sF)=>{"use strict";var iF=W("child_process"),Q$=iF.spawn,y$=iF.exec;sF.exports=function(t,e,r){if(typeof e=="function"&&r===void 0&&(r=e,e=void 0),t=parseInt(t),Number.isNaN(t)){if(r)return r(new Error("pid must be a number"));throw new Error("pid must be a number")}var n={},i={};switch(n[t]=[],i[t]=1,process.platform){case"win32":y$("taskkill /pid "+t+" /T /F",r);break;case"darwin":oF(t,n,i,function(){rF(n,e,r)});break;default:AF(t,n,i,function(A){return Q$("ps",["-o","pid","--no-headers","--ppid",A])},function(){rF(n,e,r)});break}};function rF(t,e,r){var n={};try{Object.keys(t).forEach(function(i){t[i].forEach(function(A){n[A]||(nF(A,e),n[A]=1)}),n[i]||(nF(i,e),n[i]=1)})}catch(i){if(r)return r(i);throw i}if(r)return r()}function nF(t,e){try{process.kill(parseInt(t,10),e)}catch(r){if(r.code!=="ESRCH")throw r}}function AF(t,e,r,n,i){var A=n(t),o="";A.stdout.on("data",function(u){var u=u.toString("ascii");o+=u});var s=function(c){if(delete r[t],c!=0){Object.keys(r).length==0&&i();return}o.match(/\d+/g).forEach(function(u){u=parseInt(u,10),e[t].push(u),e[u]=[],r[u]=1,AF(u,e,r,n,i)})};A.on("close",s)}function oF(t,e,r,n){try{let i="";try{i=execSync("pgrep -P "+t,{encoding:"utf8",timeout:2e3,maxBuffer:1024*1024})}catch(o){if(o.status!==1)throw o}delete r[t];let A=i.trim().split(`
|
|
30
|
-
`).filter(Boolean);if(A.length===0){Object.keys(r).length===0&&n();return}A.forEach(function(o){let s=parseInt(o,10);isNaN(s)||(e[t].push(s),e[s]=[],r[s]=1,oF(s,e,r,n))})}catch{delete r[t],Object.keys(r).length===0&&n()}}});function km(t){try{return process.kill(t,0),!0}catch(e){return e.code==="EPERM"}}async function Kc(t,e,r,n=5e3,i="SIGTERM"){if(typeof e!="number"&&(!e||(Oc(e)?e.getExitCode()!==null:e.exitCode!==null)))return null;if(r?.aborted)return Jc(r.reason);let A=new Promise((u,g)=>{r?.addEventListener("abort",()=>{g(new Error("killProcess aborted by the user"))},{once:!0})}),o,s;if(typeof e=="number"?o=e:(s=e,o=Oc(s)?s.getPid():s.pid),!o){if(t?.Sentry?.captureMessage("killProcess: no pid (process never spawned or already exited)",{level:"info",extra:{procType:s?Oc(s)?"DevCommandProcess":"ChildProcess":"number"}}),s)try{s.kill("SIGKILL")}catch{}return null}let c=u=>{if(s){if(Oc(s)?s.getExitCode()!==null:s.exitCode!==null||s.signalCode!==null){u();return}Oc(s)?s.onClose(()=>u()):s.on("close",u)}else{let d=Math.floor(n/100),p=0,a=()=>{if(!km(o)){u();return}++p>=d||setTimeout(a,100)};a()}};try{return await Promise.race([new Promise((u,g)=>(0,Fm.default)(o,i,d=>{if(d){g(d);return}s?.removeAllListeners(),c(u)})),new Promise((u,g)=>setTimeout(()=>g(new Error(`${i} killProcess timeout`)),n)),A]),null}catch(u){if(u.code==="ESRCH")return null;t?.Sentry?.captureException(u,{level:"warning"});try{return await Promise.race([new Promise((g,d)=>(0,Fm.default)(o,"SIGKILL",p=>{if(p){d(p);return}s?.removeAllListeners(),c(g)})),new Promise((g,d)=>setTimeout(()=>d(new Error("SIGKILL killProcess timeout")),n)),A]),null}catch(g){return g.code==="ESRCH"||!km(o)?null:(t?.Sentry?.captureException(g,{level:"warning"}),g instanceof Error?g:new Error("killProcess: failed to kill process: "+String(g)))}}finally{s&&s.removeAllListeners()}}var Fm,D$,Rm,w$,Oc,Ci=x(()=>{"use strict";Fm=Ze(aF(),1);rt();Wn();D$=de("ProcessTracker"),Rm=class{constructor(){De(this,"processes",new Set);De(this,"cleanupHandlersRegistered",!1);this.registerCleanupHandlers()}track(e){this.processes.add(e),e.on("exit",()=>{this.processes.delete(e)})}untrack(e){this.processes.delete(e)}async killAll(e){if(this.processes.size===0)return;let r=[];for(let n of this.processes)n.pid&&n.exitCode===null&&r.push(Kc(e,n));await Promise.all(r),this.processes.clear()}registerCleanupHandlers(){if(this.cleanupHandlersRegistered)return;this.cleanupHandlersRegistered=!0;let e=async r=>{try{await this.killAll()}catch(n){D$.error("Error during cleanup:",n)}};process.on("SIGINT",()=>e("SIGINT")),process.on("SIGTERM",()=>e("SIGTERM")),process.on("SIGHUP",()=>e("SIGHUP")),process.on("exit",()=>{for(let r of this.processes)if(r.pid&&r.exitCode===null)try{process.kill(r.pid,"SIGKILL")}catch{}})}get count(){return this.processes.size}},w$=new Rm;Oc=t=>"type"in t});var cF=x(()=>{"use strict"});var uF=x(()=>{"use strict";cF()});var Hs=x(()=>{"use strict"});var gF=x(()=>{"use strict";Kt();Zt();Hs()});var Mm=x(()=>{"use strict"});import{z as Rr}from"zod";var S$,v$,lF,KRe,pF=x(()=>{"use strict";S$=Rr.object({kind:Rr.literal("postgres"),migrations:Rr.literal("drizzle"),schemaDir:Rr.string().default("drizzle")}),v$=Rr.object({build:Rr.record(Rr.string(),Rr.string()).optional(),prod:Rr.record(Rr.string(),Rr.string()).optional()}),lF=Rr.object({buildCommand:Rr.string().optional(),nodeVersion:Rr.string().optional(),buildOutputDir:Rr.string().optional(),environment:v$.optional()}),KRe=Rr.object({database:S$.optional(),hosting:lF.optional()})});var dF=x(()=>{"use strict"});var CF=x(()=>{"use strict"});import{z as Ae}from"zod";var b$,x$,F$,R$,k$,Nm,M$,N$,T$,P$,U$,L$,G$,_$,H$,O$,IF,Tm=x(()=>{"use strict";b$=Ae.object({type:Ae.literal("url"),value:Ae.string()}).meta({title:"URL"}),x$=Ae.object({type:Ae.literal("upload"),contentType:Ae.enum(["image/webp","image/png","image/jpeg","image/gif","application/pdf","application/json","text/plain"]),name:Ae.string(),dataUrl:Ae.string(),text:Ae.string().optional(),size:Ae.number(),id:Ae.string(),originalUrl:Ae.string().optional(),ephemeral:Ae.boolean().optional()}).meta({title:"FileUpload"}),F$=Ae.object({type:Ae.literal("template"),name:Ae.string(),id:Ae.number()}).meta({title:"Template"}),R$=Ae.object({type:Ae.literal("builder"),html:Ae.string()}).meta({title:"BuilderContentAttachment"}),k$=Ae.object({type:Ae.literal("figma"),html:Ae.string()}).meta({title:"FigmaContentAttachment"}),Nm=Ae.discriminatedUnion("type",[x$,F$,b$,R$,k$]).meta({title:"Attachment"}),M$=Ae.object({cited_text:Ae.string(),document_index:Ae.number(),document_title:Ae.string().nullable(),end_char_index:Ae.number(),start_char_index:Ae.number(),type:Ae.literal("char_location")}).meta({title:"CitationCharLocationParam"}),N$=Ae.object({cited_text:Ae.string(),document_index:Ae.number(),document_title:Ae.string().nullable(),end_block_index:Ae.number(),start_block_index:Ae.number(),type:Ae.literal("content_block_location")}).meta({title:"CitationContentBlockLocationParam"}),T$=Ae.object({cited_text:Ae.string(),document_index:Ae.number(),document_title:Ae.string().nullable(),end_page_number:Ae.number(),start_page_number:Ae.number(),type:Ae.literal("page_location")}).meta({title:"CitationPageLocationParam"}),P$=Ae.object({cited_text:Ae.string(),encrypted_index:Ae.string(),title:Ae.string().nullable(),type:Ae.literal("web_search_result_location"),url:Ae.string()}).meta({title:"CitationWebSearchResultLocationParam"}),U$=Ae.discriminatedUnion("type",[M$,T$,N$,P$]).meta({title:"TextCitationParam"}),L$=Ae.object({type:Ae.literal("base64"),media_type:Ae.enum(["image/webp","image/png","image/jpeg","image/gif"]),data:Ae.string(),original_url:Ae.string().optional()}).meta({title:"ImageBase64Source"}),G$=Ae.object({type:Ae.literal("url"),url:Ae.string()}).meta({title:"ImageUrlSource"}),_$=Ae.object({type:Ae.literal("text"),text:Ae.string(),cache:Ae.boolean().optional(),citations:Ae.array(U$).nullish(),ephemeral:Ae.boolean().optional(),thoughtSignature:Ae.string().optional(),tag:Ae.string().optional()}).meta({title:"ContentMessageItemText"}),H$=Ae.object({type:Ae.literal("image"),source:Ae.discriminatedUnion("type",[L$,G$]),cache:Ae.boolean().optional(),ephemeral:Ae.boolean().optional()}).meta({title:"ContentMessageItemImage"}),O$=Ae.object({type:Ae.literal("resource"),resource:Ae.object({uri:Ae.string(),mimeType:Ae.string().optional(),text:Ae.string().optional(),blob:Ae.string().optional()})}).meta({title:"ContentMessageItemResource"}),IF=Ae.object({type:Ae.literal("tool_result"),tool_use_id:Ae.string(),tool_name:Ae.string().optional(),tool_input:Ae.string().optional(),title:Ae.string().optional(),content:Ae.union([Ae.string(),Ae.array(Ae.discriminatedUnion("type",[_$,H$,O$]))]),is_error:Ae.boolean().optional(),cache:Ae.boolean().optional(),ephemeral:Ae.boolean().optional(),structured_result:Ae.record(Ae.string(),Ae.any()).optional()}).meta({title:"ContentMessageItemToolResult"})});var fF=x(()=>{"use strict"});import{z as Ir}from"zod";var mF,Pm=x(()=>{"use strict";mF=Ir.object({client:Ir.string(),clientVersion:Ir.string(),nodeVersion:Ir.string(),systemPlatform:Ir.string(),frameworks:Ir.array(Ir.string()),systemEOL:Ir.string(),systemArch:Ir.string(),systemShell:Ir.string().optional(),inGitRepo:Ir.boolean().optional()}).catchall(Ir.union([Ir.string(),Ir.array(Ir.string()),Ir.boolean(),Ir.undefined()])).meta({title:"UserContext"})});import{z as fr}from"zod";var Os,K$,J$,hF,ep=x(()=>{"use strict";Os=fr.object({key:fr.string(),value:fr.string(),isSecret:fr.boolean(),placeholder:fr.boolean().optional().meta({description:"If true, indicates this is a placeholder value that needs user replacement"}),explanation:fr.string().optional().meta({description:"Explanation of why this env var is needed and what value the user should provide"})}).meta({title:"EnvironmentVariable"}),K$=fr.object({key:fr.string(),type:fr.literal("mise"),tool:fr.string(),version:fr.string().optional()}).meta({title:"SetupMiseDependency"}),J$=fr.object({key:fr.string(),type:fr.literal("script"),name:fr.string(),script:fr.string()}).meta({title:"SetupScriptDependency"}),hF=fr.discriminatedUnion("type",[K$,J$]).meta({title:"SetupDependency"})});import{z as f}from"zod";var Y$,nke,j$,BF,q$,QF,V$,$$,W$,ike,rp,z$,Z$,X$,e5,t5,r5,Ake,n5,i5,A5,o5,s5,a5,c5,u5,g5,l5,p5,d5,C5,I5,f5,Um,m5,h5,E5,B5,Q5,y5,D5,w5,S5,v5,b5,x5,F5,R5,k5,M5,N5,T5,P5,U5,L5,G5,_5,H5,O5,K5,J5,Y5,tp,j5,q5,V5,$5,W5,z5,yF,DF,oke,ske,Z5,X5,e6,t6,r6,n6,i6,A6,o6,s6,a6,c6,u6,Lm,g6,l6,p6,d6,C6,I6,f6,m6,h6,E6,B6,Q6,y6,D6,w6,S6,wF,v6,b6,EF,x6,F6,R6,SF,k6,np,ake,M6,N6,T6,vF,P6,U6,L6,bF,G6,cke,_6,H6,uke,gke,lke,pke,dke,xF=x(()=>{"use strict";Tm();ep();Pm();Y$=f.string().meta({title:"GitSnapshot",description:"Multi-repo git snapshot. Format: 'folder:hash,folder:hash' with URL-encoded folder names. Legacy single-hash form ('abc123') is also accepted. Empty string means no commits."}),nke=f.enum(["named","default"]).meta({title:"ImportType"}),j$=f.object({filePath:f.string(),content:f.string().optional(),importance:f.number().optional(),dropReason:f.string().optional(),wasIncluded:f.boolean().optional(),virtual:f.boolean().optional()}).meta({title:"ProjectFile"}),BF=f.object({name:f.string(),description:f.string().optional()}).meta({title:"CustomAgentInfo"}),q$=f.object({id:f.string(),name:f.string(),content:f.string(),type:f.enum(["always","agent-mode"]).optional(),filePath:f.string().optional(),glob:f.string().optional(),description:f.string().optional(),allowedTools:f.array(f.string()).optional(),hideUI:f.boolean().optional(),isSkill:f.boolean().optional(),disableModelInvocation:f.boolean().optional(),userInvocable:f.boolean().optional(),scope:f.enum(["project","user","plugin","builtin"]).optional(),pluginName:f.string().optional(),ownedAgents:f.array(BF).optional()}).meta({title:"CustomInstruction"}),QF=f.enum(["auto","none","minimal","low","medium","high","xhigh","max"]).meta({title:"ReasoningEffort"}),V$=f.record(f.string(),f.union([f.string(),f.array(f.string())])).meta({title:"AgentModelOverrides"}),$$=f.enum(["react","html","mitosis","react-native","angular","vue","svelte","qwik","solid","marko","swiftui","jetpack-compose","flutter"]).meta({title:"CodeGenFramework"}),W$=f.enum(["tailwind","tailwind-precise","emotion","styled-components","styled-jsx","react-native"]).meta({title:"CodeGenStyleLibrary"}),ike=f.enum(["max_tokens","stop_sequence","tool_use","end_turn","content_filter","error","aborted","pause_turn","refusal","compaction","model_context_window_exceeded"]).nullable().meta({title:"CompletionStopReason"}),rp="The path of the file. Accepts a path relative to the project working directory, an absolute path (`/Users/.../skill.md`), or a tilde path (`~/.builder/skills/.../SKILL.md`). User-level Builder state under `~/.builder/**` is allowed by default for plugin operations; other absolute paths require an explicit ACL policy.",z$=f.object({file_path:f.string().meta({description:rp}),offset:f.number().nullish().meta({description:"The line number to start reading from."}),limit:f.number().nullish().meta({description:"The number of lines to read."})}).meta({title:"ReadToolInput"}),Z$=f.object({pattern:f.string().meta({description:"The pattern to search for"})}).meta({title:"GlobSearchToolInput"}),X$=f.object({query:f.string().meta({description:'A string literal or a JavaScript-flavored regex to search for in all project files. Only escape special characters such as {} and () in string literals to avoid confusion with regex patterns (e.g. "import \\{ foo \\}"). Avoid over-escaping as that will cause errors. Do NOT use inline regex flags like (?i) or (?s) \u2014 they are not supported. The search is case-insensitive by default; use the case_sensitive parameter to control this.'}),include_glob:f.string().nullish().meta({description:"An optional single glob pattern to include only specific files (e.g. '**/*.(ts|tsx)' for all TypeScript files)"}),exclude_glob:f.string().nullish().meta({description:"Optional glob pattern to exclude specific files or directories"}),case_sensitive:f.boolean().nullish().meta({description:"Whether the search should be case-sensitive. Defaults to false (case-insensitive). Set to true for case-sensitive search."})}).meta({title:"GrepSearchToolInput"}),e5=f.object({skill:f.string().meta({description:"The name of a skill from the available-skills list. Do not guess names."}),args:f.string().nullish().meta({description:"Optional invocation arguments; forwarded with the skill body in the tool result."}),userInvoked:f.boolean().nullish().meta({description:"Set to true when the user explicitly mentioned or requested this skill by name in their message (including slash commands). Set to false or omit when invoking proactively based on context."})}).meta({title:"SkillToolInput"}),t5=f.object({name:f.string().meta({description:"The name of the rule to get"})}).meta({title:"GetRuleToolInput"}),r5=f.object({url:f.string().meta({description:"The URL of the website to analyze and mimic the style of, for example 'https://airbnb.com' or 'https://instagram.com'"})}).meta({title:"GetStyleInspirationToolInput"}),Ake=f.object({}).meta({title:"GetBuildOutputToolInput"}),n5=f.object({restart:f.boolean().nullish().meta({description:"Whether to restart the dev server, it will also return the initial logs coming from the dev server. This tool can be very slow, only use as last resort, most of the times file changes do not require a restart."}),set_dev_command:f.string().nullish().meta({description:"Use to set the command of the dev server, for example 'npm run dev' or 'cd packages/frontend && yarn dev'. When updating the command, the dev server will be automatically restarted. After changing a command, the proxy port might change, so you need to use the 'set_proxy_port' tool to update the proxy port. Only use if there are explicit issues"}),set_proxy_port:f.number().nullish().meta({description:"Used to configure the proxy port of the dev server. For example, if `npm run dev` open a port in 8392, but current proxy server listens 3000, you can use this tool to update the proxy port. Only use if there are explicit issues."}),get_logs:f.boolean().nullish().meta({description:"When used standalone, the tool will return logs of the dev server and other status. But don't change or restart anything. It's a read-only operation."}),set_env_variable:f.tuple([f.string(),f.string()]).nullish().meta({description:"Tuple of two strings, the first string is the name of the environment variable, the second string is the value of the environment variable. For example, ['DB_API_KEY', '___PRIVATE_KEY___']"}),set_and_run_setup_command:f.string().nullish().meta({description:"Use to set the command of the setup command, for example 'npm install' or 'yarn'. Only use if there are explicit issues."})}).meta({title:"DevServerControlInput"}),i5=f.object({}).meta({title:"DevServerLogsInput"}),A5=f.object({}).meta({title:"GenerateDesignSystemAgentMdInput",description:"Generates and writes `.builder/output/AGENTS.md` from the token and component CSS files produced during DSI approximation indexing. Reads `.builder/sources/figma/manifest.json` for the design system name, `.builder/output/_index/tokens-report.json` for token categories, and globs `.builder/output/tokens/components/*.css` for component slugs. Call this as the final step after all CSS files have been written."}),o5=f.object({}).meta({title:"DevServerRestartInput",description:"Restarts the dev server with current configuration."}),s5=f.object({description:f.string().meta({description:"A human readable description of the command to run, for example 'install dependencies' or 'run tests'. This description will be used to explain the command to the user."}),command:f.string().meta({description:"The shell command to run, for example 'npm install --save uuid', 'yarn test' or 'npm run build'..."}),timeout:f.number().nullish().meta({description:"Optional timeout in milliseconds (max/default 600000)"})}).meta({title:"BashToolInput"}),a5=f.object({command:f.string().nullish().meta({description:"The PowerShell command to run, for example 'npm install' or 'yarn test'"}),timeout:f.number().nullish().meta({description:"The timeout in milliseconds for the command to run. Choose an appropriate timeout based on the command"}),description:f.string().nullish().meta({description:"A human readable description of the command to run, for example 'install dependencies' or 'run tests'. This description will be used to explain the command to the user."})}).meta({title:"PowerShellToolInput"}),c5=f.object({query:f.string().meta({description:"The question to search on the internet, be specific and concise."})}).meta({title:"WebSearchToolInput"}),u5=f.object({title:f.string().meta({description:"Human readable description of the change or generated code, it's mandatory"}),file_path:f.string().meta({description:rp}),content:f.string().meta({description:"Actual content to write into the file, use an empty string to remove the file"})}).meta({title:"WriteFileInput"}),g5=f.object({title:f.string().meta({description:"Human readable description of the change or generated code, it's mandatory"}),file_path:f.string().meta({description:`${rp} The content of this path must be previously known.`}),old_str:f.string().meta({description:"The text to replace"}),new_str:f.string().meta({description:"The text to replace it with (must be different from old_str)"}),replace_all:f.boolean().optional().meta({description:"Replace all occurences of old_str (default false)"}),apply_with_error:f.boolean().optional()}).meta({title:"SearchReplaceInput"}),l5=f.object({title:f.string().meta({description:"Human readable description of the change or generated code, it's mandatory"}),file_path:f.string().meta({description:`${rp} The content of this path must be previously known.`}),edits:f.array(f.object({old_str:f.string().meta({description:"The text to replace (must match the file contents exactly, including all whitespace and indentation)"}),new_str:f.string().meta({description:"The edited text to replace the old_str"}),replace_all:f.boolean().optional().meta({description:"Replace all occurrences of old_str. This parameter is optional and defaults to false."})})).meta({description:"An array of edit operations to perform, where each edit contains: old_str, new_str, replace_all"}),apply_with_error:f.boolean().nullish()}).meta({title:"MultiSearchReplaceInput"}),p5=f.object({query:f.string(),type:f.enum(["image","video"]),orientation:f.enum(["landscape","portrait","square"]).nullish(),hex_color:f.string().nullish()}).meta({title:"FindMediaToolInput"}),d5=f.object({query:f.string().meta({description:"The text prompt describing the media to find or generate"}),type:f.enum(["image","video","gen-image"]).meta({description:"The type of media: 'image' to search images, 'video' to search videos, or 'gen-image' to generate an AI image"}),orientation:f.enum(["landscape","portrait","square"]).nullish().meta({description:"The orientation/aspect ratio of the media (landscape=wide, portrait=tall, square=1:1)"}),hex_color:f.string().nullish().meta({description:"Optionally use to find images with the predominant specified hex color, for example '#000000' or '#FFFFFF'"}),input_image_urls:f.array(f.string()).nullish().meta({description:'Reference image URLs for AI image generation (only used with type: "gen-image")'})}).meta({title:"MediaToolInput"}),C5=f.object({content:f.string().meta({description:"Markdown content of the memory, keep it factual and to the point. Avoid using line numbers, code snippets as they are likely to change."}),when:f.string().meta({description:"The semantic search query that will be used to retrieve this memory later. Describe the situation, task, or context when this memory should be surfaced."}),category:f.union([f.literal("architecture").meta({description:"System structure, layers, and responsibilities"}),f.literal("data-and-sync").meta({description:"Data storage, persistence, synchronization, IPC, and state flow"}),f.literal("patterns-and-standards").meta({description:"Canonical ways of doing things in this codebase"}),f.literal("coupling-and-duplication").meta({description:"Cross-file, cross-surface, or duplicated logic that must stay aligned"}),f.literal("ui-and-ux-contracts").meta({description:"User-visible behavior, UX guarantees, and UI rules"}),f.literal("concurrency-and-lifecycle").meta({description:"Async behavior, ordering, lifecycle, and race prevention"}),f.literal("invariants").meta({description:"Hard rules that must always remain true"}),f.literal("security-and-trust").meta({description:"Security, permissions, and trust boundaries"}),f.literal("gotchas").meta({description:"Known sharp edges that will break things if ignored"}),f.literal("constraints-and-limits").meta({description:"System limits, assumptions, and non-obvious constraints"}),f.literal("rationale-and-history").meta({description:"Why something is the way it is (tradeoffs, history, intent)"})]).meta({description:"The general category that this memory fits into"}),glob:f.string().optional().meta({description:"Glob pattern for file-based memory retrieval. Use specific paths (e.g., 'src/components/Button.tsx', 'lib/api/**/*.ts') rather than broad patterns (e.g., '*.tsx'). When files matching this glob are read, this memory will be suggested."}),importance:f.number().optional(),glob_auto_include:f.boolean().optional().meta({description:"Whenever the memory should be included whenever the glob is matched."})}).meta({title:"MemoryToolInput"}),I5=f.object({query:f.string(),limit:f.number().optional(),minSimilarity:f.number().optional()}).meta({title:"SearchMemoriesToolInput"}),f5=f.object({outcome:f.enum(["worked","failed","partial","unknown"]).meta({description:"Overall exchange outcome based on user reaction"}),memory_scores:f.object({}).catchall(f.enum(["worked","failed","partial","unknown"])).meta({description:"Score for each memory used: { memory_id: outcome }"})}).meta({title:"ScoreMemoriesToolInput"}),Um=f.object({label:f.string(),description:f.string()}).meta({title:"LabelOption"}),m5=f.strictObject({label:f.string().meta({description:"The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice."}),description:f.string().meta({description:"Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications."}),preview:f.string().nullish().meta({description:"Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format."})}).meta({title:"AskUserQuestionOption"}),h5=f.strictObject({question:f.string().meta({description:'The complete question to ask the user. Should be clear, specific, and end with a question mark. Example: "Which library should we use for date formatting?" If multiSelect is true, phrase it accordingly, e.g. "Which features do you want to enable?"'}),header:f.string().meta({description:'Very short label displayed as a chip/tag (max 12 chars). Examples: "Auth method", "Library", "Approach".'}),options:f.array(m5).min(2).max(4).meta({description:"The available choices for this question. Must have 2-4 options. Each option should be a distinct, mutually exclusive choice (unless multiSelect is enabled). Provide only concrete, substantive choices. Do NOT add a free-form / catch-all option such as 'Other', 'Custom', 'Something else', 'Let me specify', 'None of these', etc. \u2014 the UI always appends an implicit 'Other' option that lets the user type a custom answer, so adding your own would create a duplicate that cannot accept input."}),multiSelect:f.boolean().optional().meta({description:"Set to true to allow the user to select multiple options instead of just one. Use when choices are not mutually exclusive."})}).meta({title:"AskUserQuestion"}),E5=f.strictObject({questions:f.array(h5).min(1,"Must have at least 1 question").max(4).meta({description:"Questions to ask the user (1-4 questions)"})}).meta({title:"AskUserQuestionToolInput"}),B5=f.object({description:f.string().meta({description:"A short (3-5 word) description of the task"}),prompt:f.string().meta({description:"The task for the agent to perform"}),subagent_type:f.string().optional().meta({description:"The type of specialized agent to use for this task"}),resume:f.string().optional().meta({description:"Optional agent ID to resume from"}),origin_channel_id:f.string().optional().meta({description:"The original user's channel_id that triggered this work. When provided, it will be included in the worker report so you can route the response back to the correct channel. Always pass this when spawning agents on behalf of a user request."}),attachmentUrls:f.array(f.string()).optional().meta({description:"URLs of images or files to attach to the agent's context. Useful for providing visual context like screenshots, designs, or reference images."})}).meta({title:"AgentToolInput"}),Q5=f.object({checkpoint_id:f.string().meta({description:"The checkpoint ID to revert back to. All changes from this checkpoint to HEAD will be reverted."})}).meta({title:"RevertToolInput"}),y5=f.object({}).meta({title:"TodoReadToolInput"}),D5=f.object({}).meta({title:"RunningAgentsToolInput"}),w5=f.object({mode:f.enum(["replace","patch"]).meta({description:"Determine how the new todos update the current list: 'patch' means existing items will remain and only the provided items will be updated. The same 'id' must be provided for items you want to update. 'replace' means all existing items will be replaced with the new array of todos."}),todos:f.array(f.object({content:f.string().meta({description:"The imperative form describing what needs to be done"}),status:f.enum(["pending","in_progress","completed"]),id:f.string()}))}).meta({title:"TodoWriteToolInput"}),S5=f.object({subject:f.string().meta({description:"A brief title for the task"}),description:f.string().meta({description:"What needs to be done"}),metadata:f.looseObject({}).optional()}).meta({title:"TaskCreateToolInput"}),v5=f.object({taskId:f.string().meta({description:"The ID of the task to update"}),subject:f.string().optional().meta({description:"New subject for the task"}),description:f.string().optional().meta({description:"New description for the task"}),status:f.enum(["pending","in_progress","completed","deleted"]).optional().meta({description:"New status for the task"}),owner:f.string().optional().meta({description:"New owner for the task"}),addBlocks:f.array(f.string()).optional().meta({description:"Task IDs that this task blocks"}),addBlockedBy:f.array(f.string()).optional().meta({description:"Task IDs that block this task"}),metadata:f.looseObject({}).optional()}).meta({title:"TaskUpdateToolInput"}),b5=f.object({}).meta({title:"TaskListToolInput"}),x5=f.object({filePath:f.string().meta({description:"The path of the Mitosis file to edit (e.g., index.lite.tsx)"}),old_str:f.string().meta({description:"Content to be replaced, this substring should appear verbatim in the selected file_path"}),new_str:f.string().meta({description:"New content to replace the old content with"})}).meta({title:"BuilderEditToolInput"}),F5=f.object({href:f.string().optional(),selector:f.string().optional(),width:f.number().optional(),height:f.number().optional()}).meta({title:"GetScreenshotToolInput"}),R5=f.object({href:f.string().meta({description:"The URL or relative path to navigate the preview to (e.g., '/about' or 'https://example.com')"})}).meta({title:"NavigatePreviewToolInput"}),k5=f.object({url:f.string().meta({description:"The URL to fetch content from"}),prompt:f.string().optional().meta({description:"Optional prompt to describe the content you want to extract from the URL. Leave it blank to fetch images."}),include_styles:f.boolean().optional().meta({description:"If true, the computed styles of the page will be extracted, as well as a screenshot. Prompt must be provided"})}).meta({title:"WebFetchToolInput"}),M5=f.object({category:f.enum(["reusable_knowledge","one_off","bad_quality"]).optional(),gif_id:f.string().optional(),timeline_id:f.string().optional(),recording_id:f.string().optional(),important_files:f.array(f.object({file_path:f.string().meta({description:"The relative path of the file to read"}),relevance:f.enum(["high","medium","low"]).optional().meta({description:"The relevance of the file based on the initial user_prompt"}),offset:f.number().optional().meta({description:"The offset of the file to read, in lines"}),limit:f.number().optional().meta({description:"The limit of the file to read, in lines"})}))}).meta({title:"ExplorationMetadataToolInput"}),N5=f.object({}).meta({title:"EnterPlanModeToolInput"}),T5=f.object({plan:f.string().meta({description:"The plan you came up with, that you want to run by the user for approval. Supports markdown. The plan should be pretty concise. Do not include follow up questions in the plan."}),handled:f.boolean().optional()}).meta({title:"ExitPlanModeToolInput"}),P5=f.object({uri:f.string().meta({description:"The URI of the resource to read, matching a resource template pattern (e.g., 'file:///path/to/file')"}),serverName:f.string().optional().meta({description:"Optional name of the MCP server to use. If not provided, will auto-detect based on URI."})}).meta({title:"ReadMcpResourceToolInput"}),U5=f.enum(["navigation","interaction","assertion","error","milestone","code-change","observation","verified"]).meta({title:"TimelineEventCategory"}),L5=f.enum(["succeeded","couldnt_verify","failed","other"]).meta({title:"TestOutcome"}),G5=f.enum(["env_issue","creds_missing","needs_user_input","server_not_ready","feature_not_reachable","timeout","assertion_failed","unexpected_error","not_applicable","escalated"]).meta({title:"TestCaseFailureCategory"}),_5=f.object({title:f.string().meta({description:"A descriptive title for this frame (e.g., 'Login page loaded', 'Form submitted successfully')"}),frame:f.literal("last-image").meta({description:"The frame source. Use 'last-image' to record the most recent screenshot."}),category:U5.optional().meta({description:"Category of this frame for timeline organization. Default: 'milestone'"}),description:f.string().optional().meta({description:"Optional longer description providing context about what this frame shows."}),pr_highlight:f.boolean().optional().meta({description:"Set true to mark this as a 'verified screenshot' worth showing in the PR description \u2014 visual proof of how the fix/feature behaves. The title is the caption; `description` supports bullet points / multiple lines. Only flag a frame when it shows a GENUINELY DISTINCT UI state \u2014 never flag multiple shots of the same screen. For a single-screen change: flag exactly ONE frame and list ALL the changes as bullet points in `description`. For a multi-step flow: flag one frame per unique screen (e.g. step 1, 2, 3 \u2014 each a different UI). The first flagged frame is shown full-width as the hero, so make it the most representative."})}).meta({title:"RecordFrameToolInput"}),H5=f.object({outcome:L5.meta({description:"The structured test outcome"}),summary:f.string().meta({description:"A concise 1\u20132 sentence summary explaining the test outcome"}),details:f.string().optional().meta({description:"Optional additional context: error messages, steps attempted, etc."}),test_case_id:f.string().optional().meta({description:"Links to a test case ID (e.g., 'TC-01'). If present, this is a per-case report. If absent, this is the session-level summary."}),evidence_frame_count:f.number().optional().meta({description:"Number of RecordFrame calls made for this test case. Should be >= 1 for per-case reports."}),failure_category:G5.optional().meta({description:"Structured failure reason. Required when outcome is failed or couldnt_verify."}),failure_detail:f.string().optional().meta({description:"Human-readable failure explanation. E.g., 'Login page returned 403 \u2014 test account may have been disabled'"}),console_errors:f.string().optional(),network_failures:f.string().optional(),steps_attempted:f.string().optional(),urls_tested:f.array(f.string()).optional()}).meta({title:"ReportTestOutcomeToolInput"}),O5=f.object({projectOverview:f.object({framework:f.string().nullable(),packageManager:f.enum(["npm","yarn","pnpm","bun"]).nullable(),isMonorepo:f.boolean(),detectedLanguage:f.enum(["typescript","javascript"]).nullable()}),rootDirectory:f.object({path:f.string(),reason:f.string()}).nullable(),installCommand:f.object({command:f.string(),reason:f.string()}).nullable(),runtimeDependencies:f.array(f.object({tool:f.string(),version:f.string(),source:f.string()})),devServer:f.object({command:f.string(),url:f.string(),port:f.number(),reason:f.string()}).nullable(),environmentVariables:f.array(f.object({key:f.string(),description:f.string(),isRequired:f.boolean(),isSecret:f.boolean(),defaultValue:f.string().nullable(),source:f.string()})),validationScript:f.object({command:f.string(),reason:f.string()}).nullable(),npmrcContents:f.string().nullable(),hasHotModuleReload:f.object({value:f.boolean(),reason:f.string()}).nullable()}).meta({title:"SetupAnalysisValues"}),K5=f.object({config:O5,message:f.string().optional()}).meta({title:"ProposeConfigToolInput"}),J5=f.enum(["installCommand","devServer","validationScript","environmentVariables"]).meta({title:"SetupValueField"}),Y5=f.object({field:J5.meta({description:"Which field to update"}),value:f.object({command:f.string().optional().meta({description:"The command to run (for installCommand, devServer, validationScript)"}),url:f.string().optional().meta({description:"Dev server URL (only for devServer)"}),port:f.number().optional().meta({description:"Dev server port (only for devServer)"}),environmentVariables:f.array(f.object({key:f.string().meta({description:"Variable name"}),description:f.string().optional().meta({description:"What this variable is for"}),isRequired:f.boolean().optional().meta({description:"Whether this variable is required"}),isSecret:f.boolean().optional().meta({description:"Whether this is a secret/credential"}),defaultValue:f.string().nullish()})).optional()}),reason:f.string()}).meta({title:"UpdateSetupValueToolInput"}),tp=f.enum(["verified","no-frontend","empty-project","mobile-project","user-question","code-change-required","other","started","failed"]).meta({title:"ExitState",description:"Current state: verified (all done), no-frontend (project has no dev server), empty-project (project has almost no code), mobile-project (mobile app e.g. Expo/React Native \u2014 recommend desktop local mode), user-question (need input), code-change-required (repo has code issues user must fix), other (other problem), started (Session started but Exit tool was never called (orphaned session)), failed (Session failed before reaching the agent (e.g. branch/container creation failed))"}),j5=f.object({state:tp.meta({description:"Current state: verified (all done), no-frontend (project has no dev server), empty-project (project has almost no code), mobile-project (mobile app e.g. Expo/React Native), user-question (need input), code-change-required (repo has code issues user must fix), other (other problem)"}),summary:f.string().meta({description:"Brief summary of configuration outcome (what succeeded or what's needed)"}),questions:f.array(f.object({question:f.string().meta({description:"Full question text"}),context:f.string().meta({description:"Why this information is needed"}),header:f.string().optional().meta({description:'Short label (e.g., "API Key", "Database URL")'}),type:f.enum(["select","multi-select","text"]).optional().meta({description:'Question type: "select" for single-choice, "multi-select" for multiple choices, "text" for free-form input. Defaults to "select" if options are present, "text" if not.'}),placeholder:f.string().optional().meta({description:"Placeholder/hint text for 'text' type questions (e.g., 'Enter your API key', 'https://localhost:3000')"}),options:f.array(Um).optional().meta({description:"Suggested answer choices (for 'select' and 'multi-select' types). User can always choose 'Other'."})})).optional().meta({description:"Questions for user (only when state is 'user-question'). Include suggested options when possible."}),isMonorepo:f.boolean().optional().meta({description:"Repository contains multiple packages/apps"}),isMicrofrontend:f.boolean().optional().meta({description:"Frontend code served over multiple ports/servers"}),setupNeedsCredentials:f.boolean().optional().meta({description:"Setup requires credentials (e.g., NPM_TOKEN for private packages)"}),devServerNeedsCredentials:f.boolean().optional().meta({description:"Dev server needs special environment variables to run"}),needsVPN:f.boolean().optional().meta({description:"Setup requires a VPN connection"}),autoReload:f.boolean().optional().meta({description:"The dev server is able to reload the page automatically when the code changes, either through HMR or full page reload. Usually vite, webpack etc support this."}),usesBuilderCms:f.boolean().optional().meta({description:"The connected app uses Builder CMS (detected via @builder.io/react or @builder.io/sdk-* dependencies, a builder-registry file, or Builder CMS API keys such as BUILDER_PUBLIC_KEY)"}),stack:f.array(f.string()).optional().meta({description:'Technologies used by the connected application (not monorepo-wide). Include specific, high-confidence signals only, e.g. ["React", "Next.js", "Postgres", "Drizzle", "Tailwind CSS", "Clerk"]. Omit vague or uncertain entries.'}),projectDescription:f.string().optional().meta({description:"A human-readable description of what this project is about \u2014 focus on purpose and domain, not technical stack. This helps route user requests to the right project (e.g., 'Company blog and content management', 'E-commerce storefront for selling shoes', 'Internal admin dashboard for managing users')."})}).meta({title:"ExitToolInput"}),q5=["running","stopped","starting","failed","unset"],V5=["not-installed","installing","installed","install-failed","install-aborted"],$5=["ok-2xx","error-4xx","error-5xx","error-fetch","stopped","connecting"],W5=["unset","running","stopped","success","failure"],z5=f.object({question:f.string(),context:f.string(),whatYouTried:f.string().optional(),header:f.string().optional().meta({description:"Short label (e.g., 'API Key', 'Database URL')"}),type:f.enum(["select","multi-select","text"]).optional().meta({description:'Question type: "select" for single-choice, "multi-select" for multiple choices, "text" for free-form input'}),placeholder:f.string().optional().meta({description:"Placeholder text for text-type questions"}),options:f.array(Um).optional()}),yF=f.object({setupCommand:f.object({value:f.string().optional(),verified:f.boolean().meta({description:"Based on setupState === 'installed'"}),elapsed:f.number().optional().meta({description:"Time taken in milliseconds (if verified)"})}),setupDependencies:f.object({value:f.array(hF).optional(),verified:f.boolean().meta({description:"Based on setupState === 'installed'"})}),devCommand:f.object({value:f.string().optional(),verified:f.boolean().meta({description:"Based on devState === 'running'"}),elapsed:f.number().optional().meta({description:"Time taken in milliseconds (if verified)"})}),devServer:f.object({value:f.string().optional(),verified:f.boolean().meta({description:"Based on httpServerState === 'ok-2xx'"}),elapsed:f.number().optional().meta({description:"Time taken in milliseconds waiting for the server to respond"})}),validateCommand:f.object({value:f.string().optional(),verified:f.boolean().meta({description:"Based on validateState === 'success'"}),elapsed:f.number().optional().meta({description:"Time taken in milliseconds (if verified)"})}),appOrigin:f.object({value:f.string().optional(),verified:f.boolean().meta({description:"Based on httpServerState === 'ok-2xx'"})}),defaultOrigin:f.object({value:f.string().optional(),verified:f.boolean().meta({description:"Always true if set (used with wildcard appOrigin)"})}),environmentVariables:f.object({value:f.array(Os).optional(),verified:f.boolean().meta({description:"Based on devState === 'running'"})}),autoDetectDevServer:f.object({value:f.boolean().optional(),verified:f.boolean().meta({description:"Always true if set"})}),autoDetectDevServerPatterns:f.object({value:f.array(f.string()).optional(),verified:f.boolean().meta({description:"Always true if set"})}),hasHotModuleReload:f.object({value:f.boolean().optional(),reason:f.string().optional().meta({description:"Detection-only, not auto-applied"})})}),DF=f.object({setupState:f.enum(V5),devState:f.enum(q5),httpServerState:f.enum($5),validateState:f.enum(W5)}),oke=f.object({id:f.string().meta({description:"Auto-generated document ID"}),projectId:f.string(),branchName:f.string(),createdAt:f.number(),updatedAt:f.number(),ownerId:f.string(),userInitiated:f.boolean(),autoApply:f.boolean(),state:tp.meta({description:"Configuration state from Exit tool"}),running:f.boolean().default(!1),previousStates:f.array(tp).optional(),summary:f.string().meta({description:"Summary from Exit tool"}),questions:f.array(z5).optional(),configuration:yF,sessionId:f.string(),orchestratorStates:DF,peakDiskUsage:f.number().optional().meta({description:"Peak disk usage in bytes"}),peakMemoryUsage:f.number().optional().meta({description:"Peak memory usage in bytes"}),screenshotUrl:f.string().optional().meta({description:"Screenshot URL from verification (e.g., error page screenshot)"}),isMonorepo:f.boolean().optional(),isMicrofrontend:f.boolean().optional(),setupNeedsCredentials:f.boolean().optional(),devServerNeedsCredentials:f.boolean().optional(),projectDescription:f.string().optional(),cost:f.number().optional(),durationMs:f.number().optional(),needsVPN:f.boolean().optional(),autoReload:f.boolean().optional(),usesBuilderCms:f.boolean().optional(),stack:f.array(f.string()).optional()}).meta({title:"ProposedConfig",description:"Configuration proposed by the configuration agent, stored in Firebase"}),ske=f.object({projectId:f.string(),branchName:f.string(),state:tp,summary:f.string(),questions:f.array(f.object({question:f.string(),context:f.string(),whatYouTried:f.string().optional(),header:f.string().optional(),options:f.array(Um).optional(),multiSelect:f.boolean().optional()})).optional(),configuration:yF,sessionId:f.string(),orchestratorStates:DF,peakDiskUsage:f.number().optional(),peakMemoryUsage:f.number().optional(),screenshotUrl:f.string().optional(),isMonorepo:f.boolean().optional(),isMicrofrontend:f.boolean().optional(),setupNeedsCredentials:f.boolean().optional(),devServerNeedsCredentials:f.boolean().optional(),needsVPN:f.boolean().optional(),projectDescription:f.string().optional(),autoReload:f.boolean().optional(),usesBuilderCms:f.boolean().optional(),stack:f.array(f.string()).optional()}).meta({title:"ProposeConfigParams"}),Z5=f.object({command:f.string().meta({description:"The install command to run (e.g., 'npm install', 'yarn', 'pnpm install'). It can be a multi-line command too, just like a shell script."}),dependencies:f.array(f.object({tool:f.string().meta({description:"The tool/binary to verify (e.g., 'node', 'npm', 'git')"}),version:f.string().optional().meta({description:"Optional version requirement (e.g., '>=18.0.0', '20.x')"})})).optional()}).meta({title:"VerifySetupCommandToolInput"}),X5=f.object({command:f.string().meta({description:"The dev server command to run (e.g., 'npm run dev', 'cd packages/frontend && yarn dev')"})}).meta({title:"VerifyDevCommandToolInput"}),e6=f.object({autoDetect:f.boolean().meta({description:"Whether to automatically detect the dev server URL from terminal output"}),autoDetectPattern:f.string().optional().meta({description:"Pattern to match and extract URL from terminal output when multiple URLs are present (e.g., 'Local:.*http://localhost:\\\\d+')"}),hardcodedUrl:f.string().optional().meta({description:"The hardcoded dev server URL to use when autoDetect is false (e.g., 'http://localhost:3000')"}),appOrigin:f.string().meta({description:"The origin where the app should be accessed (e.g., 'https://acme.com', 'https://*.acme.com'). Can be a pattern with wildcard."}),defaultOrigin:f.string().optional().meta({description:"Default origin to use when appOrigin is a pattern (e.g., 'https://dev.acme.com'). Required if appOrigin contains a wildcard."})}).meta({title:"VerifyDevServerToolInput"}),t6=f.object({command:f.string(),timeout:f.number().optional().meta({description:"Default: 300000 (5 minutes)"})}).meta({title:"VerifyValidateCommandToolInput"}),r6=f.object({key:f.string().meta({description:"The environment variable name (e.g., 'NODE_ENV', 'API_KEY')"}),value:f.string().meta({description:"The environment variable value. Must be a concrete value, not a placeholder."}),secret:f.boolean().optional().meta({description:"Whether this is a secret value (will be masked in logs). Default: false"})}).meta({title:"ProposeEnvVariableToolInput"}),n6=f.object({key:f.string().meta({description:"The environment variable name (e.g., 'NODE_ENV', 'API_KEY')"}),value:f.string().meta({description:"The environment variable value. Use clear placeholder like 'PLACEHOLDER_DATABASE_URL' if actual value is unknown."}),secret:f.boolean().optional().meta({description:"Whether this is a secret value (will be masked in logs). Default: false"}),placeholder:f.boolean().optional().meta({description:"If true, indicates this is a placeholder value that needs user replacement"}),explanation:f.string().optional().meta({description:"Explanation of why this env var is needed and what value the user should provide"})}).meta({title:"SetEnvVariableToolInput"}),i6=f.object({path:f.string().meta({description:'Path where the file should be written. Supports absolute paths ("/app/.npmrc"), tilde ("~/.npmrc") and paths relative to the project working directory ("./.npmrc"). Use this tool ONLY for configuration-only files that should NOT be committed to the repo (e.g. `.npmrc` with auth tokens, machine-local env files) \u2014 never to patch source code or fix software issues.'}),content:f.string().optional().meta({description:"Plain text content to write to the file. Mutually exclusive with `base64`."}),base64:f.string().optional().meta({description:"Base64-encoded binary content to write to the file. Mutually exclusive with `content`. Use only when the file is genuinely binary."})}).meta({title:"SetFileOverrideToolInput"}),A6=f.object({channel_id:f.string().meta({description:"The channel identifier in URI format (see supported formats in the tool description)"}),markdown:f.string().meta({description:"The message content to send in markdown format"}),status:f.enum(["starting","question","will-follow-up","done:success","done:error"]),loading_message:f.string().optional().meta({description:"Loading message displayed in the Slack thread while the agent is working (only used when status is 'starting')."}),voice_response:f.boolean().optional().meta({description:"When true, send the response as a voice message using text-to-speech. Only supported for Telegram channels. Only set to true when the user's original message was a voice/audio message (look for '[Voice message transcription]' or '[Audio' markers), the channel is Telegram, and the response is short and conversational with no URLs, code, lists, or other content that doesn't translate to audio. Default to false (text) for all text-originated messages."}),from_user_id:f.string().optional().meta({description:"Builder.io user ID this message is from / should be attributed to. Only allowed when channel_id is 'builder/branch/{project_id}/{branch_name}'. When set, the message is delivered to the target branch as coming from this user (role 'user') instead of from the agent. Use whenever the message represents user feedback/intent that should be assigned to someone \u2014 even if it was composed, summarized, or merged from multiple people."})}).meta({title:"SendMessageToolInput"}),o6=f.object({project_id:f.string().meta({description:"The project ID to create the branch in"}),message:f.string().meta({description:"The initial message or task description for the branch. Do NOT include instructions to open or create a PR unless the user's original request explicitly asked for a PR."}),builder_user_id:f.string().optional().meta({description:"Builder.io user ID to act as. When provided, the branch will be created as if this user created it."}),hidden:f.boolean().optional().meta({description:"Whether to hide the branch from the user. Useful for exploratory branches not intended to ever get merged back to main. Default: false."}),origin_channel_id:f.string().optional().meta({description:"The channel identifier that originally triggered this work. Used for tracking purposes and coming back to the original slack thread with updates."}),session_mode:f.enum(["normal","planning","deep-research"]).optional(),model:f.enum(["auto","opus","sonnet","haiku"]).optional(),attachment_urls:f.array(f.string()).optional(),git_base_branch:f.string().optional()}).meta({title:"SpawnBranchToolInput"}),s6=f.object({repo_url:f.string().meta({description:"Repository URL (regular Git URL or template:// URL)"}),name:f.string().optional().meta({description:"Human-readable name for the project. If not provided, a name will be generated from the repo name."}),builder_user_id:f.string().meta({description:"Builder.io user ID to act as. The project and branch will be created as if this user created them, and their git credentials will be validated before creation."}),origin_channel_id:f.string().optional().meta({description:"The channel_id identifier that originally triggered this work. Used for routing status updates back to the user."}),initial_message:f.string().optional().meta({description:"Only valid for template:// URLs \u2014 creates a branch with this message"})}).meta({title:"CreateProjectToolInput"}),a6=f.object({}).meta({title:"GetAvailableReposToolInput"}),c6=f.object({project_id:f.string().meta({description:"The project ID containing the branch"}),branch_name:f.string().meta({description:"The name of the branch to read"})}).meta({title:"ReadBranchToolInput"}),u6=f.object({project_id:f.string().meta({description:"The project ID containing the branch"}),branch_name:f.string().meta({description:"The name of the branch to archive"}),builder_user_id:f.string().meta({description:"The Builder.io user ID of the person requesting the archive. This is used to attribute the archive action to a specific user."}),reason:f.string().optional().meta({description:"The reason for archiving this branch (max 500 chars). Examples: 'Work completed and merged', 'No longer needed', 'Superseded by branch X'."})}).meta({title:"ArchiveBranchToolInput"}),Lm=f.enum(["high","medium","low"]).meta({title:"ReviewSeverity"}),g6=f.object({file_path:f.string().meta({description:"Relative file path - MUST be a file that appears in the PR diff"}),line:f.number().meta({description:"Line number in the file (end line for multi-line). MUST be a line within the PR diff"}),start_line:f.number().optional().meta({description:"For multi-line comments (optional)"}),side:f.enum(["LEFT","RIGHT"]).optional().meta({description:"Diff side. RIGHT (default) = NEW file (added/context). LEFT = OLD file (removed/context). Use LEFT only when commenting on deleted code with no semantically related new-side anchor."}),title:f.string().meta({description:"Brief plain-text issue title. MUST NOT start with severity emojis"}),body:f.string().meta({description:"Review comment (1-2 sentences)"}),severity:Lm.meta({description:"Issue severity: high (blocking), medium (should fix), or low (minor observation)"}),debugInfo:f.string().optional(),gif_id:f.string().optional().meta({description:"Per-comment GIF (optional)"})}).meta({title:"PRReviewComment"}),l6=f.enum(["looks_good","has_findings","blocking"]).meta({title:"ReviewVerdict"}),p6=f.object({summary:f.string().meta({description:"Your detailed analysis of the changes (displayed in a collapsible 'Review Details' section)"}),comments:f.array(g6).optional(),risk_level:Lm.optional(),verdict:l6.optional()}).meta({title:"SubmitPRReviewToolInput"}),d6=f.object({type:f.string().min(1).meta({description:"Comment category that drives how the UI renders it, e.g. 'code-review'"}),content:f.string().min(1).meta({description:"The comment body (plain text or markdown)"}),metadata:f.looseObject({filePath:f.string().min(1).optional().meta({description:"Project-relative file path the comment refers to. Required for 'code-review'."}),startLine:f.number().int().positive().optional().meta({description:"1-indexed start line the comment refers to. Required for 'code-review'. Use the [L:N] markers from the annotated diff."}),endLine:f.number().int().positive().optional().meta({description:"1-indexed end line; defaults to startLine when omitted."}),severity:f.enum(["high","medium","low"]).optional().meta({description:"Finding severity for 'code-review'."})}).optional().meta({description:"Type-specific fields. For 'code-review': filePath and startLine are required; endLine and severity are optional. originalSnippet is populated automatically."})}).meta({title:"AddCommentToolInput"}),C6=f.object({thread_node_ids:f.array(f.string()).meta({description:"GraphQL thread node_ids (PRRT_...) from previous review response"})}).meta({title:"ResolveQACommentsToolInput"}),I6=f.object({title:f.string().meta({description:"Brief summary of the issue (e.g., 'Button click has no effect')"}),description:f.string().meta({description:"Detailed description of what went wrong, what was expected, and what actually happened"}),debugInfo:f.string().optional().meta({description:"Optional console errors, stack traces, or other diagnostic information"})}).meta({title:"ReportUIIssueToolInput"}),f6=f.object({file_path:f.string().meta({description:"File path where the issue occurs (e.g., 'packages/api/src/auth.ts')"}),line:f.number().meta({description:"End line number of the issue range (or single line if no start_line)"}),start_line:f.number().optional().meta({description:"Optional start line for multi-line issues. When provided, the comment spans from start_line to line"}),title:f.string().meta({description:"Short, descriptive title (one line, no markdown)"}),severity:Lm.meta({description:"Issue severity: high for critical bugs, medium for should-fix, low for minor observations"}),body:f.string().meta({description:"Detailed explanation in markdown format. Should include: What the issue is, Why it's problematic, Impact, How to fix it, Evidence"})}).meta({title:"ReportIssueToolInput"}),m6=f.object({issue:f.string().meta({description:"What's blocking execution"}),steps_attempted:f.string().meta({description:"What was tried before escalating"}),current_url:f.string().meta({description:"Current browser URL"}),test_case_id:f.string().meta({description:"Which test case is blocked"})}).meta({title:"EscalateToPlanner"}),h6=f.object({}).meta({title:"GetLastBrowserTestToolInput"}),E6=f.object({file_path:f.string().optional().meta({description:"Optional relative or absolute path to filter diagnostics to a single file. Omit to retrieve diagnostics for the entire workspace."})}).meta({title:"IDEDiagnosticsToolInput"}),B6=f.object({url:f.string().meta({description:"The prototype URL (e.g., https://builder.io/app/projects/<projectId>/<branchName>)"}),project_id:f.string().optional().meta({description:"The project ID (optional, parsed from URL if not provided)"}),branch_name:f.string().optional().meta({description:"The branch name (optional, parsed from URL if not provided)"})}).meta({title:"PullPrototypeToolInput"}),Q6=f.object({project_id:f.string().meta({description:"The Builder.io project ID containing the branch"}),branch_name:f.string().meta({description:"The Fusion branch name to push and open a PR for"}),builder_user_id:f.string().optional().meta({description:"Builder.io user ID to attribute the PR to. When provided, the PR body will credit this user and the user must be a member of the organization. Highly recommended when the PR is being opened on behalf of a specific user."}),draft:f.boolean().optional().meta({description:`Whether to create the PR as a draft. When omitted, defaults to the branch's configured commitMode: true for "draft-prs" branches, false for "prs" branches.`})}).meta({title:"EnsurePRToolInput"}),y6=f.object({purpose:f.string().optional().meta({description:"Brief non-technical note about what data will be stored (e.g. 'contact form submissions'). Used in the user-facing summary."})}).meta({title:"EnableDatabaseToolInput"}),D6=f.object({name:f.string().meta({description:'Human-readable name of the service to connect, e.g. "Jira", "Linear", "Sentry"'}),url:f.string().optional().meta({description:"Remote MCP endpoint URL (e.g. https://mcp.linear.app/mcp). When omitted, the tool discovers known URLs for the named service instead."})}).meta({title:"ConnectMCPToolInput"}),w6=f.object({Read:z$,Write:u5,Edit:g5,ReadRule:t5,Skill:e5,GetStyleInspiration:r5,GetScreenshot:F5,NavigatePreview:R5,MultiEdit:l5,FindMedia:p5,Media:d5,AddMemory:C5,SearchMemories:I5,ScoreMemories:f5,Bash:s5,PowerShell:a5,WebSearch:c5,AskUserQuestion:E5,Agent:B5,Grep:X$,Glob:Z$,DevServerControl:n5,DevServerLogs:i5,DevServerRestart:o5,Revert:Q5,TodoRead:y5,TodoWrite:w5,TaskCreate:S5,TaskUpdate:v5,TaskList:b5,BuilderEdit:x5,WebFetch:k5,ExplorationMetadata:M5,EnterPlanMode:N5,ExitPlanMode:T5,ReadMcpResource:P5,RecordFrame:_5,SubmitPRReview:p6,AddComment:d6,ProposeConfig:K5,UpdateSetupValue:Y5,Exit:j5,ResolveQAComments:C6,GetLastBrowserTest:h6,ReportUIIssue:I6,ReportIssue:f6,ReportTestOutcome:H5,VerifySetupCommand:Z5,VerifyDevCommand:X5,VerifyDevServer:e6,VerifyValidateCommand:t6,ProposeEnvVariable:r6,SetEnvVariable:n6,SetFileOverride:i6,SendMessage:A6,SpawnBranch:o6,CreateProject:s6,GetAvailableRepos:a6,ReadBranch:c6,ArchiveBranch:u6,RunningAgents:D5,IDEDiagnostics:E6,EscalateToPlanner:m6,PullPrototype:B6,ConnectMCP:D6,EnsurePR:Q6,EnableDatabase:y6,GenerateDesignSystemAgentMd:A5}),S6=w6.keyof().meta({title:"CodeGenTools"}),wF=f.enum(["planning","normal","auto-planning","deep-research"]).meta({title:"SessionMode"}),v6=f.enum(["quality","quality-v4","quality-v4-agent"]).meta({title:"CodeGenMode"}),b6=["fusion","editor-ai","repo-indexing","cli","create-app-firebase","create-app-lovable","builder-code-panel","setup-project","code-review-orchestrator","project-configuration","org-agent","org-worker","browser-testing","projects-scheduler-memory-extraction","builder-code","unknown","dsi-mcp","design-system-indexer","builder-publish-integration"],EF=f.enum(b6).meta({title:"BaseCodeGenPosition"}),x6=f.union([EF,f.templateLiteral([EF,"-agent"])]).meta({title:"CodeGenPosition"}),F6=f.object({designSystems:f.array(f.string())}).meta({title:"RepoIndexingConfig"}),R6=f.object({name:f.string(),description:f.string().optional(),inputSchema:f.any().optional(),serverName:f.string(),deferLoading:f.boolean().optional()}).meta({title:"LocalMCPTools"}),SF=f.union([f.templateLiteral(["repair-",f.string()]),f.literal("user-normal"),f.literal("user-figma"),f.literal("user-pdf"),f.literal("user-image"),f.literal("setup-agent"),f.templateLiteral(["background-",f.string()]),f.templateLiteral(["indexing-",f.string()])]).meta({title:"CodeGenCategory"}),k6=f.enum(["editCode","modifyMcpServers","modifyProjectSettings","createBranches","sendPullRequests","view"]).meta({title:"UserSourcePermission"}),np={role:f.enum(["user","agent"]),principals:f.array(f.string()).optional().meta({description:"teams/roles like ['developer', 'admin']"}),jobs:f.array(f.string()).optional().meta({description:"job titles like ['designer', 'developer'] - used for role-aware communication instead of principals when available"}),permissions:f.array(k6).optional(),channelId:f.string().optional()},ake=f.object(np).meta({title:"UserSourceBase"}),M6=f.object({...np,source:f.enum(["slack","telegram","whatsapp","teams","jira","linear","github","gitlab","azure","bitbucket"]),userId:f.string().optional().meta({description:"User ID from the external platform (Slack user ID, GitHub user id, etc.)"}),userName:f.string().optional(),userEmail:f.string().optional(),photoURL:f.string().optional(),builderUserId:f.string().optional().meta({description:"Resolved Builder user ID for attribution/credits"}),link:f.string().optional().meta({description:"Optional link (e.g. comment/PR URL) for git provider sources"})}).meta({title:"UserSourceOther"}),N6=f.object({...np,source:f.literal("builder.io"),userId:f.string().optional(),userName:f.string().optional(),userEmail:f.string().optional(),photoURL:f.string().optional()}).meta({title:"UserSourceBuilder"}),T6=f.object({...np,source:f.literal("agent"),userId:f.string().optional(),userName:f.string().optional(),userEmail:f.string().optional()}).meta({title:"UserSourceAgent"}),vF=f.discriminatedUnion("source",[M6,N6,T6]).meta({title:"UserSource"}),P6=f.enum(["read","write","list"]).meta({title:"Permission"}),U6=f.object({action:f.enum(["allow","deny"]).meta({description:"whether this rule allows or denies access"}),resource:f.string().meta({description:"what \u2014 supports glob patterns like /files/*.txt"}),permissions:f.array(P6).meta({description:"actions this rule applies to"}),description:f.string().optional().meta({description:"custom message, in deny case, this is the error message. This will override denyDescription on AclPolicy if defined."}),principals:f.array(f.string()).optional().meta({description:"array of teams/roles this rule applies to (e.g., ['developer', 'admin'])"})}).meta({title:"AclEntry"}),L6=f.object({secrets:f.array(f.string()).optional(),entries:f.array(U6).optional(),denyDescription:f.string().optional().meta({description:"Default message to use when a resource is denied access"})}).meta({title:"AclPolicy"}),bF=f.object({text:f.string(),tag:f.string().optional(),ephemeral:f.boolean().optional()}).meta({title:"SystemReminderObj"}),G6=f.union([f.string(),bF]).meta({title:"SystemReminder"}),cke=f.looseObject({position:x6,eventName:f.string().optional(),sessionId:f.string(),codeGenMode:v6.optional(),sessionMode:wF.optional(),url:f.string().optional(),diffActions:f.boolean().optional(),planningPrompt:f.boolean().optional(),customInstructions:f.array(q$).optional(),customAgents:f.array(BF).optional(),systemPromptOverride:f.union([f.string(),f.array(f.string())]).optional(),userPrompt:f.string().optional(),systemReminders:f.array(G6).optional(),ephemeralUserPrompt:f.string().optional(),uiContextPrompt:f.string().optional(),displayUserPrompt:f.string().optional(),files:f.array(j$).optional(),rerankFiles:f.number().optional(),toolResults:f.array(IF).optional(),attachments:f.array(Nm).optional(),beforeCommit:Y$.optional(),workingDirectory:f.string().optional(),includeRelevantMemories:f.boolean().optional(),encryptKey:f.string().optional(),modelOverride:f.string().optional(),errorIfHadCompaction:f.boolean().optional(),softContextWindow:f.number().optional(),promptVersion:f.enum(["v1","v2","v3"]).optional(),reasoning:QF.optional(),redactUserMessages:f.boolean().optional(),redactLLMMessages:f.boolean().optional(),environmentVariables:f.array(Os).optional(),skipCommandSecurity:f.boolean().optional(),builderContent:f.custom().optional(),framework:$$.optional(),styleLibrary:W$.optional(),typescript:f.boolean().optional(),userContext:mF.optional(),aclPolicy:L6.optional(),repoIndexingConfig:F6.optional(),recommendedRoot:f.string().optional(),enabledTools:f.array(S6).optional(),enabledMCPs:f.array(f.string()).optional(),skippedMCPs:f.array(f.string()).optional().meta({description:"Per-message denylist of MCP server ids to skip. Skipped servers are not mounted or connected for this message and will not trigger an `mcp-auth-required` event. Tokens and org-level enabled state are untouched; this is purely message-scoped."}),skipFileDiff:f.boolean().optional(),interruptActiveTask:f.boolean().optional().meta({description:"When true, the agent should interrupt its current task to handle this message immediately, rather than finishing the current task first."}),localMCPTools:f.array(R6).optional().meta({description:"Local MCP tool definitions from stdio servers (CLI-side only). These tools will be executed on the client side and passed through from the server."}),isLocal:f.boolean().optional().meta({description:"Indicates whether the codegen is running in local mode (local filesystem) vs cloud/container mode. Used to determine git auto-commit behavior."}),maxAgentLoops:f.number().optional(),maxAgentTiming:f.number().optional(),maxTokens:f.number().optional().meta({description:"Maximum output tokens allowed in the LLM response. This will set the maximum token output for the LLM."}),maxPages:f.number().optional(),autoContinue:f.number().optional(),isManualContinue:f.boolean().optional(),llmSuggestions:f.boolean().optional(),conclusionText:f.boolean().optional(),mcpServers:f.boolean().optional(),pingEvents:f.boolean().optional(),forceCompact:f.boolean().optional(),hadPagination:f.boolean().optional(),category:SF.optional(),metadata:f.record(f.string(),f.any()).optional(),searchResponse:f.any().nullish(),prettierConfig:f.custom().optional(),role:f.enum(["user","agent"]).optional(),user:vF.optional(),projectId:f.string().optional(),branchName:f.string().optional(),repoHash:f.string().optional(),repoBranch:f.string().optional(),parentSessionId:f.string().optional().meta({description:"Immediate parent session id when this completion runs inside a sub-agent."}),mainSessionId:f.string().optional().meta({description:"Root session of the agent tree. Sub-agents inherit this from their parent so cost rolls up to the root in one hop, regardless of nesting depth."}),prevId:f.string().optional(),vcpId:f.string().optional(),repair:f.boolean().optional(),systemReminderPrompt:f.string().optional()}).meta({title:"CodeGenInputOptions"}),_6=f.enum(["force-push","merge-push","ff-push","safe-push","none"]).meta({title:"AutoPushMode"}),H6=f.object({remoteBranches:f.enum(["both","main","ai"]).optional(),fastForward:f.enum(["never","required","auto"]).optional(),canPush:f.boolean().optional(),uncommittedChanges:f.enum(["stash","commit","fail"]).optional(),requestRefresh:f.boolean().optional(),allowUnrelatedHistory:f.boolean().optional(),resetToBase:f.boolean().optional().meta({description:"When true, reset the AI branch hard to the remote feature/base branch instead of merging. This gives a clean slate that exactly matches the checked-out feature branch on remote, avoiding any merge-style conflicts or divergence. Fails clearly if the feature/base branch cannot be determined or is absent from the remote."}),updateLastCommits:f.boolean().optional().meta({description:"Whether to update the internal 'last AI commits' baseline after the sync completes. Defaults to `true` for backwards compatibility. Set to `false` when the caller wants `getChangesReport()` to keep diffing from the pre-sync baseline (e.g. so a downstream prompt can see exactly what changed since the last reset/sync)"})}).meta({title:"SyncChangesFromRemote"}),uke=f.object({idempotencyKey:f.string().optional(),user:vF.optional(),userPrompt:f.string(),uiContextPrompt:f.string().optional(),ephemeralUserPrompt:f.string().optional(),displayPrompt:f.string().optional(),files:f.array(f.string()).optional(),systemReminders:f.array(bF).optional(),includeBaseFiles:f.boolean().optional(),attachments:f.array(Nm).optional(),logsCheckpoint:f.boolean().optional(),dropAbortedPrompt:f.boolean().optional(),runValidateCommand:f.boolean().optional(),modelOverride:f.string().optional(),agentModelOverrides:V$.optional(),softContextWindow:f.number().optional(),maxCompletions:f.number().optional(),isManualContinue:f.boolean().optional(),includeRelevantMemories:f.boolean().optional(),category:SF.optional(),metadata:f.record(f.string(),f.any()).optional(),autoPush:_6.optional(),syncChanges:H6.optional(),enabledMCPs:f.array(f.string()).optional(),skippedMCPs:f.array(f.string()).optional().meta({description:"Per-message denylist of MCP server names to skip. Skipped servers are not mounted or connected for this message and will not trigger an `mcp-auth-required` event. Tokens and org-level enabled state are untouched; this is purely message-scoped."}),sessionMode:wF.optional(),queue:f.boolean().optional(),agentType:f.string().optional().meta({description:"Custom agent type to use for this message"}),enableQAReviewTool:f.boolean().optional().meta({description:"Enable AddQAReview tool for QA PR review branches"}),reasoning:QF.optional().meta({description:"Per-message reasoning effort override"}),repair:f.boolean().optional(),forceCompact:f.boolean().optional().meta({description:"Force compaction of the conversation before generating the next completion"})}).meta({title:"GenerateUserMessage"}),gke=f.object({sessionId:f.string().optional(),projectName:f.string().optional(),branchName:f.string().optional(),repoHash:f.string().optional()}).meta({title:"CodegenSettingsRequest"}),lke=f.object({diff:f.string().meta({description:"Git diff from previous commit"}),userMessages:f.array(f.string()).meta({description:"User messages sent during AI work"}),recentCommits:f.array(f.string()).meta({description:"Last 10 commits from main branch for style reference"}),longCommit:f.boolean().optional().meta({description:"Whether to generate a long commit message"}),projectId:f.string().optional().meta({description:"Project ID for fetching project-specific commit instructions"})}).meta({title:"CommitMessageRequest"}),pke=f.object({message:f.string().meta({description:"Full commit message"}),title:f.string().meta({description:"First line (50-72 chars) - the commit title"}),body:f.string().optional().meta({description:"Optional extended description"})}).meta({title:"CommitMessageResponse"}),dke=f.object({sessionId:f.string(),toolId:f.string(),approved:f.boolean(),reason:f.string().optional()}).meta({title:"ModelPermissionResponseRequest"})});var FF=x(()=>{"use strict"});var RF=x(()=>{"use strict"});import{z}from"zod";var O6,kF,K6,MF,ip,Eke,Bke,J6,Qke,Gm,Y6,j6,yke,q6,Dke,wke,V6,Ske,$6,W6,vke,bke,z6,xke,Fke,Rke,kke,Mke,Nke,Tke,Pke,NF=x(()=>{"use strict";ep();O6=["steve8708/mui-vite","steve8708/carbon-vite","steve8708/vite-react-shopify-polaris","steve8708/cloudscape-demos","BuilderIO/fusion-angular-tailwind-starter","BuilderIO/fusion-svelte-tailwind-starter","BuilderIO/fusion-vue-tailwind-starter","BuilderIO/org-agent-starter"],kF="BuilderIO/fusion-starter",K6="BuilderIO/dsi-starter",MF="BuilderIO/builder-agent-native-starter",ip=[...O6,kF,K6,MF],Eke=ip.map(t=>`https://github.com/${t}`),Bke=720*60*60*1e3,J6=z.discriminatedUnion("kind",[z.object({kind:z.literal("repo"),repoUrl:z.string().url()}),z.object({kind:z.literal("template"),templateId:z.string()})]),Qke=z.object({source:J6,name:z.string(),initialMessage:z.string().optional(),designSystems:z.array(z.string()).optional()}),Gm=z.enum(["queued","building","migrating","uploading","deploying","live","failed","canceled"]),Y6=z.enum(["unpublished","publishing","published"]),j6=z.object({buildCommand:z.string().optional(),buildOutputDir:z.string().optional(),nodeVersion:z.string().optional()}),yke=z.object({enabled:z.boolean().optional().meta({description:"Whether hosting is enabled for this project or not."}),slug:z.string().optional().meta({description:'e.g. "my-cool-app" \u2014 set once on first publish, immutable'}),netlifySiteId:z.string().optional().meta({description:"Netlify site ID for management API calls. Set once on first publish, immutable."}),netlifySiteName:z.string().optional().meta({description:"<name> in <name>.netlify.app \u2014 the upstream the HTTPRoute filter rewrites Host to. Set once on first publish, immutable."}),url:z.string().optional().meta({description:'"https://my-cool-app.builder.cloud" \u2014 derived from slug'}),buildConfig:j6.optional(),environment:z.object({build:z.array(Os).optional().meta({description:"Env vars available to the build itself"}),prod:z.array(Os).optional().meta({description:"Env vars for the production deploy served via Netlify"})}).optional(),publishStatus:Y6.optional().meta({description:"Outer publish lifecycle. Absent === unpublished. Denormalized cache of the per-slug HTTPRoute (the source of truth); flipped only after the route op succeeds. Deploy.status is the interior detail of the publishing step."}),lastDeployId:z.string().optional(),lastDeployAt:z.number().optional(),lastDeployStatus:Gm.optional(),publishedCommit:z.string().optional(),customDomain:z.string().optional(),customDomainVerified:z.boolean().optional(),autoDeploy:z.boolean().optional().meta({description:"auto-deploy on push/merge"})}),q6=z.object({id:z.string(),projectId:z.string(),ownerId:z.string(),checkoutBranch:z.string().optional().meta({description:'The git ref that was deployed (always "main" in v0/v1; the feature branch for row 2 in v2). This is the value passed as `checkoutBranch` when the deploy pod was created.'}),checkoutCommit:z.string().optional().meta({description:"Exact git commit hash deployed. When set, the deploy pod pinned to this commit instead of the branch tip."}),builtCommit:z.string().optional().meta({description:"Actual git commit hash built by the deploy pod (from git rev-parse HEAD after checkout). Set when build.uploaded fires."}),deployBranchId:z.string().optional().meta({description:'Fusion branch id of the ephemeral hidden deploy branch (`type: "deploy"`) that ran the build.'}),deployBranchName:z.string().optional().meta({description:'Fusion branch name of the ephemeral hidden deploy branch (`type: "deploy"`) that ran the build.'}),devBranchId:z.string().optional().meta({description:"Fusion dev branch's id (unset if we are deploying project default branch)"}),status:Gm,netlifyDeployId:z.string().optional(),url:z.string().optional(),migrationApplied:z.boolean().optional().meta({description:"Whether Drizzle migrations were applied during this deploy. Absent when no migration ran."}),error:z.string().optional().meta({description:"Single human-readable line on failure; raw build logs not surfaced in v0"}),createdAt:z.number(),completedAt:z.number().optional(),triggeredBy:z.string().meta({description:'user ID for manual publish, or "auto-deploy" (v1)'})}),Dke=z.object({projectId:z.string(),ownerId:z.string(),createdAt:z.number(),createdBy:z.string().meta({description:"user ID of the user who first clicked Publish on the project"})}),wke=z.object({ownerId:z.string(),holderId:z.string().meta({description:"unique per acquisition (the fencing token); == deployId for a deploy holder"}),holderKind:z.enum(["deploy","unpublish"]),deployId:z.string().optional().meta({description:'set when holderKind === "deploy"'}),acquiredAt:z.number().meta({description:"unix time (ms)"}),expiresAt:z.number().meta({description:"acquiredAt + 15min (same ceiling as the deploy lazy-timeout)"})}),V6=q6.pick({id:!0,status:!0,url:!0,createdAt:!0,completedAt:!0,error:!0,checkoutBranch:!0,checkoutCommit:!0,builtCommit:!0}).meta({title:"DeployListItem"}),Ske=z.object({files:z.record(z.string(),z.string()).meta({description:"static file path \u2192 sha1 hash"}),functions:z.record(z.string(),z.string()).meta({description:"serverless function name \u2192 sha256 hash"})}),$6=z.object({buildCommand:z.string().optional(),buildOutputDir:z.string().optional(),nodeVersion:z.string().optional(),environment:z.record(z.string(),z.string()).optional()}),W6=z.object({projectId:z.string(),deployId:z.string(),gcsManifestUploadUrl:z.string().url(),gcsArtifactUploadUrl:z.string().url(),buildConfigOverrides:$6.optional()}),vke=z.object({projectId:z.string(),slug:z.string()}),bke=z.object({slug:z.string()}),z6=z.string().regex(/^[0-9a-f]{7,40}$/i,"Must be a valid git commit hash (7\u201340 hex chars)"),xke=z.object({projectId:z.string(),checkoutBranch:z.string().optional(),checkoutCommit:z6.optional()}),Fke=z.object({deployId:z.string(),status:Gm}),Rke=z.object({projectId:z.string()}),kke=z.object({success:z.literal(!0)}),Mke=z.object({projectId:z.string(),deployId:z.string().optional()}),Nke=z.object({deploys:z.array(V6)}),Tke=z.object({sourceProjectId:z.string().min(1).meta({description:"Project to clone from."}),sourceBranchName:z.string().min(1).default("main").meta({description:"Branch to seed the clone's branch from."}),newProjectName:z.string().min(1).max(200).optional().meta({description:'Name for the new project. Defaults to "{source} (cloned)" for clones.'}),intent:z.enum(["clone","duplicate"]).meta({description:`"clone": public example/starter \u2192 caller's space (always full backup, isExample, name suffixed). "duplicate": copy one of the caller's own projects. Required.`}),userEmail:z.string().optional().meta({description:"Attributes the new project to a concrete user when the request has no user session (e.g. API-key auth). Resolved to a user id that must belong to the caller's org; without it a no-session request can't be attributed and project creation fails with 401."}),useKube:z.boolean().default(!1).meta({description:"Whether to provision on cloud-v2 (Kubernetes). Defaults to false."}),useBranchesCollection:z.boolean().default(!1).meta({description:"Whether the new project stores branches in the standalone `branches` collection rather than embedded in the project doc. Defaults to false."})}),Pke=z.object({projectId:z.string().min(1).meta({description:"Project that owns the branch being duplicated."}),sourceBranchName:z.string().min(1).meta({description:"Branch to duplicate."}),friendlyName:z.string().max(200).optional().meta({description:"Optional friendly (display) name for the new branch."})})});var TF=x(()=>{"use strict"});var PF=x(()=>{"use strict"});var UF=x(()=>{"use strict"});var LF=x(()=>{"use strict"});var GF=x(()=>{"use strict"});var _F=x(()=>{"use strict"});var HF=x(()=>{"use strict"});var OF=x(()=>{"use strict"});import{z as Ct}from"zod";var KF,Z6,JF,YF,X6,eW,Kke,Jke,Yke,jF=x(()=>{"use strict";KF=/^https:\/\/github\.com\/[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+(?:\.git)?\/?$/,Z6=2*1024*1024*1024,JF=50,YF=0,X6=Ct.object({projectName:Ct.string().trim().min(1).max(200).optional(),devToolsVersion:Ct.string().trim().min(1).max(64).optional(),selection:Ct.preprocess(t=>{if(typeof t!="string")return t;let e=t.trim();if(e)try{return JSON.parse(e)}catch{return t}},Ct.record(Ct.string(),Ct.array(Ct.string().min(1)).max(1e4))).optional(),githubRepoUrl:Ct.string().trim().regex(KF,"must be a public github.com repo URL").optional(),connectedProjectId:Ct.string().trim().min(1).max(128).optional()}),eW=Ct.object({name:Ct.string().trim().min(1).max(512),mimetype:Ct.string().trim().min(1).max(255),declaredSize:Ct.number().int().positive().max(Z6)}),Kke=Ct.object({attachments:Ct.array(eW).min(YF).max(JF)}),Jke=Ct.object({jobId:Ct.string().min(1),gcsObject:Ct.string().min(1),ownerId:Ct.string().min(1),mimetype:Ct.string().min(1),originalName:Ct.string().min(1),idx:Ct.number().int().nonnegative()}),Yke=Ct.object({...X6.shape,uploads:Ct.array(Ct.string().min(1)).min(YF).max(JF)})});var qF=x(()=>{"use strict"});var kr=x(()=>{"use strict";pF();dF();CF();Tm();fF();Pm();ep();xF();FF();RF();NF();TF();PF();UF();LF();GF();_F();HF();OF();jF();qF()});var _m=x(()=>{"use strict";kr()});var Yc=x(()=>{"use strict"});var Hm=x(()=>{"use strict"});var jc=x(()=>{"use strict"});var iW,VF=x(()=>{iW=globalThis.crypto?.webcrypto??globalThis.crypto??import("node:crypto").then(t=>t.webcrypto)});import*as B from"zod/v4";var $F,op,mr,WF,zF,QMe,AW,oW,Om,gn,sp,hr,Dn,wn,Er,ap,sW,aW,ZF,qc,XF,Km,yMe,Jm,cW,Ym,uW,Vc,Ks,eR,gW,lW,pW,dW,CW,IW,fW,mW,tR,hW,jm,EW,BW,qm,QW,$c,Wc,yW,zc,cp,DW,Vm,$m,Wm,zm,DMe,Zm,Xm,eh,wW,rR,nR,th,iR,Zc,Js,AR,SW,vW,oR,bW,sR,rh,xW,FW,aR,cR,RW,kW,MW,NW,TW,PW,UW,LW,GW,uR,_W,HW,nh,ih,Ah,OW,KW,JW,oh,YW,gR,lR,jW,qW,pR,VW,dR,up,wMe,$W,WW,CR,zW,IR,ZW,XW,ez,tz,rz,nz,iz,Az,oz,Ap,sz,az,fR,mR,hR,cz,uz,gz,lz,pz,dz,Cz,Iz,fz,mz,hz,Ez,Bz,Qz,yz,ER,Dz,wz,BR,Sz,vz,bz,xz,QR,Fz,Rz,kz,Mz,SMe,vMe,bMe,xMe,FMe,RMe,RA=x(()=>{$F="io.modelcontextprotocol/related-task",op="2.0",mr=B.custom(t=>t!==null&&(typeof t=="object"||typeof t=="function")),WF=B.union([B.string(),B.number().int()]),zF=B.string(),QMe=B.looseObject({ttl:B.union([B.number(),B.null()]).optional(),pollInterval:B.number().optional()}),AW=B.object({ttl:B.number().optional()}),oW=B.object({taskId:B.string()}),Om=B.looseObject({progressToken:WF.optional(),[$F]:oW.optional()}),gn=B.object({_meta:Om.optional()}),sp=gn.extend({task:AW.optional()}),hr=B.object({method:B.string(),params:gn.loose().optional()}),Dn=B.object({_meta:Om.optional()}),wn=B.object({method:B.string(),params:Dn.loose().optional()}),Er=B.looseObject({_meta:Om.optional()}),ap=B.union([B.string(),B.number().int()]),sW=B.object({jsonrpc:B.literal(op),id:ap,...hr.shape}).strict(),aW=B.object({jsonrpc:B.literal(op),...wn.shape}).strict(),ZF=B.object({jsonrpc:B.literal(op),id:ap,result:Er}).strict();(function(t){t[t.ConnectionClosed=-32e3]="ConnectionClosed",t[t.RequestTimeout=-32001]="RequestTimeout",t[t.ParseError=-32700]="ParseError",t[t.InvalidRequest=-32600]="InvalidRequest",t[t.MethodNotFound=-32601]="MethodNotFound",t[t.InvalidParams=-32602]="InvalidParams",t[t.InternalError=-32603]="InternalError",t[t.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(qc||(qc={}));XF=B.object({jsonrpc:B.literal(op),id:ap.optional(),error:B.object({code:B.number().int(),message:B.string(),data:B.unknown().optional()})}).strict(),Km=B.union([sW,aW,ZF,XF]),yMe=B.union([ZF,XF]),Jm=Er.strict(),cW=Dn.extend({requestId:ap.optional(),reason:B.string().optional()}),Ym=wn.extend({method:B.literal("notifications/cancelled"),params:cW}),uW=B.object({src:B.string(),mimeType:B.string().optional(),sizes:B.array(B.string()).optional(),theme:B.enum(["light","dark"]).optional()}),Vc=B.object({icons:B.array(uW).optional()}),Ks=B.object({name:B.string(),title:B.string().optional()}),eR=Ks.extend({...Ks.shape,...Vc.shape,version:B.string(),websiteUrl:B.string().optional(),description:B.string().optional()}),gW=B.intersection(B.object({applyDefaults:B.boolean().optional()}),B.record(B.string(),B.unknown())),lW=B.preprocess(t=>t&&typeof t=="object"&&!Array.isArray(t)&&Object.keys(t).length===0?{form:{}}:t,B.intersection(B.object({form:gW.optional(),url:mr.optional()}),B.record(B.string(),B.unknown()).optional())),pW=B.looseObject({list:mr.optional(),cancel:mr.optional(),requests:B.looseObject({sampling:B.looseObject({createMessage:mr.optional()}).optional(),elicitation:B.looseObject({create:mr.optional()}).optional()}).optional()}),dW=B.looseObject({list:mr.optional(),cancel:mr.optional(),requests:B.looseObject({tools:B.looseObject({call:mr.optional()}).optional()}).optional()}),CW=B.object({experimental:B.record(B.string(),mr).optional(),sampling:B.object({context:mr.optional(),tools:mr.optional()}).optional(),elicitation:lW.optional(),roots:B.object({listChanged:B.boolean().optional()}).optional(),tasks:pW.optional()}),IW=gn.extend({protocolVersion:B.string(),capabilities:CW,clientInfo:eR}),fW=hr.extend({method:B.literal("initialize"),params:IW}),mW=B.object({experimental:B.record(B.string(),mr).optional(),logging:mr.optional(),completions:mr.optional(),prompts:B.object({listChanged:B.boolean().optional()}).optional(),resources:B.object({subscribe:B.boolean().optional(),listChanged:B.boolean().optional()}).optional(),tools:B.object({listChanged:B.boolean().optional()}).optional(),tasks:dW.optional()}),tR=Er.extend({protocolVersion:B.string(),capabilities:mW,serverInfo:eR,instructions:B.string().optional()}),hW=wn.extend({method:B.literal("notifications/initialized"),params:Dn.optional()}),jm=hr.extend({method:B.literal("ping"),params:gn.optional()}),EW=B.object({progress:B.number(),total:B.optional(B.number()),message:B.optional(B.string())}),BW=B.object({...Dn.shape,...EW.shape,progressToken:WF}),qm=wn.extend({method:B.literal("notifications/progress"),params:BW}),QW=gn.extend({cursor:zF.optional()}),$c=hr.extend({params:QW.optional()}),Wc=Er.extend({nextCursor:zF.optional()}),yW=B.enum(["working","input_required","completed","failed","cancelled"]),zc=B.object({taskId:B.string(),status:yW,ttl:B.union([B.number(),B.null()]),createdAt:B.string(),lastUpdatedAt:B.string(),pollInterval:B.optional(B.number()),statusMessage:B.optional(B.string())}),cp=Er.extend({task:zc}),DW=Dn.merge(zc),Vm=wn.extend({method:B.literal("notifications/tasks/status"),params:DW}),$m=hr.extend({method:B.literal("tasks/get"),params:gn.extend({taskId:B.string()})}),Wm=Er.merge(zc),zm=hr.extend({method:B.literal("tasks/result"),params:gn.extend({taskId:B.string()})}),DMe=Er.loose(),Zm=$c.extend({method:B.literal("tasks/list")}),Xm=Wc.extend({tasks:B.array(zc)}),eh=hr.extend({method:B.literal("tasks/cancel"),params:gn.extend({taskId:B.string()})}),wW=Er.merge(zc),rR=B.object({uri:B.string(),mimeType:B.optional(B.string()),_meta:B.record(B.string(),B.unknown()).optional()}),nR=rR.extend({text:B.string()}),th=B.string().refine(t=>{try{return atob(t),!0}catch{return!1}},{message:"Invalid Base64 string"}),iR=rR.extend({blob:th}),Zc=B.enum(["user","assistant"]),Js=B.object({audience:B.array(Zc).optional(),priority:B.number().min(0).max(1).optional(),lastModified:B.iso.datetime({offset:!0}).optional()}),AR=B.object({...Ks.shape,...Vc.shape,uri:B.string(),description:B.optional(B.string()),mimeType:B.optional(B.string()),annotations:Js.optional(),_meta:B.optional(B.looseObject({}))}),SW=B.object({...Ks.shape,...Vc.shape,uriTemplate:B.string(),description:B.optional(B.string()),mimeType:B.optional(B.string()),annotations:Js.optional(),_meta:B.optional(B.looseObject({}))}),vW=$c.extend({method:B.literal("resources/list")}),oR=Wc.extend({resources:B.array(AR)}),bW=$c.extend({method:B.literal("resources/templates/list")}),sR=Wc.extend({resourceTemplates:B.array(SW)}),rh=gn.extend({uri:B.string()}),xW=rh,FW=hr.extend({method:B.literal("resources/read"),params:xW}),aR=Er.extend({contents:B.array(B.union([nR,iR]))}),cR=wn.extend({method:B.literal("notifications/resources/list_changed"),params:Dn.optional()}),RW=rh,kW=hr.extend({method:B.literal("resources/subscribe"),params:RW}),MW=rh,NW=hr.extend({method:B.literal("resources/unsubscribe"),params:MW}),TW=Dn.extend({uri:B.string()}),PW=wn.extend({method:B.literal("notifications/resources/updated"),params:TW}),UW=B.object({name:B.string(),description:B.optional(B.string()),required:B.optional(B.boolean())}),LW=B.object({...Ks.shape,...Vc.shape,description:B.optional(B.string()),arguments:B.optional(B.array(UW)),_meta:B.optional(B.looseObject({}))}),GW=$c.extend({method:B.literal("prompts/list")}),uR=Wc.extend({prompts:B.array(LW)}),_W=gn.extend({name:B.string(),arguments:B.record(B.string(),B.string()).optional()}),HW=hr.extend({method:B.literal("prompts/get"),params:_W}),nh=B.object({type:B.literal("text"),text:B.string(),annotations:Js.optional(),_meta:B.record(B.string(),B.unknown()).optional()}),ih=B.object({type:B.literal("image"),data:th,mimeType:B.string(),annotations:Js.optional(),_meta:B.record(B.string(),B.unknown()).optional()}),Ah=B.object({type:B.literal("audio"),data:th,mimeType:B.string(),annotations:Js.optional(),_meta:B.record(B.string(),B.unknown()).optional()}),OW=B.object({type:B.literal("tool_use"),name:B.string(),id:B.string(),input:B.record(B.string(),B.unknown()),_meta:B.record(B.string(),B.unknown()).optional()}),KW=B.object({type:B.literal("resource"),resource:B.union([nR,iR]),annotations:Js.optional(),_meta:B.record(B.string(),B.unknown()).optional()}),JW=AR.extend({type:B.literal("resource_link")}),oh=B.union([nh,ih,Ah,JW,KW]),YW=B.object({role:Zc,content:oh}),gR=Er.extend({description:B.string().optional(),messages:B.array(YW)}),lR=wn.extend({method:B.literal("notifications/prompts/list_changed"),params:Dn.optional()}),jW=B.object({title:B.string().optional(),readOnlyHint:B.boolean().optional(),destructiveHint:B.boolean().optional(),idempotentHint:B.boolean().optional(),openWorldHint:B.boolean().optional()}),qW=B.object({taskSupport:B.enum(["required","optional","forbidden"]).optional()}),pR=B.object({...Ks.shape,...Vc.shape,description:B.string().optional(),inputSchema:B.object({type:B.literal("object"),properties:B.record(B.string(),mr).optional(),required:B.array(B.string()).optional()}).catchall(B.unknown()),outputSchema:B.object({type:B.literal("object"),properties:B.record(B.string(),mr).optional(),required:B.array(B.string()).optional()}).catchall(B.unknown()).optional(),annotations:jW.optional(),execution:qW.optional(),_meta:B.record(B.string(),B.unknown()).optional()}),VW=$c.extend({method:B.literal("tools/list")}),dR=Wc.extend({tools:B.array(pR)}),up=Er.extend({content:B.array(oh).default([]),structuredContent:B.record(B.string(),B.unknown()).optional(),isError:B.boolean().optional()}),wMe=up.or(Er.extend({toolResult:B.unknown()})),$W=sp.extend({name:B.string(),arguments:B.record(B.string(),B.unknown()).optional()}),WW=hr.extend({method:B.literal("tools/call"),params:$W}),CR=wn.extend({method:B.literal("notifications/tools/list_changed"),params:Dn.optional()}),zW=B.object({autoRefresh:B.boolean().default(!0),debounceMs:B.number().int().nonnegative().default(300)}),IR=B.enum(["debug","info","notice","warning","error","critical","alert","emergency"]),ZW=gn.extend({level:IR}),XW=hr.extend({method:B.literal("logging/setLevel"),params:ZW}),ez=Dn.extend({level:IR,logger:B.string().optional(),data:B.unknown()}),tz=wn.extend({method:B.literal("notifications/message"),params:ez}),rz=B.object({name:B.string().optional()}),nz=B.object({hints:B.array(rz).optional(),costPriority:B.number().min(0).max(1).optional(),speedPriority:B.number().min(0).max(1).optional(),intelligencePriority:B.number().min(0).max(1).optional()}),iz=B.object({mode:B.enum(["auto","required","none"]).optional()}),Az=B.object({type:B.literal("tool_result"),toolUseId:B.string().describe("The unique identifier for the corresponding tool call."),content:B.array(oh).default([]),structuredContent:B.object({}).loose().optional(),isError:B.boolean().optional(),_meta:B.record(B.string(),B.unknown()).optional()}),oz=B.discriminatedUnion("type",[nh,ih,Ah]),Ap=B.discriminatedUnion("type",[nh,ih,Ah,OW,Az]),sz=B.object({role:Zc,content:B.union([Ap,B.array(Ap)]),_meta:B.record(B.string(),B.unknown()).optional()}),az=sp.extend({messages:B.array(sz),modelPreferences:nz.optional(),systemPrompt:B.string().optional(),includeContext:B.enum(["none","thisServer","allServers"]).optional(),temperature:B.number().optional(),maxTokens:B.number().int(),stopSequences:B.array(B.string()).optional(),metadata:mr.optional(),tools:B.array(pR).optional(),toolChoice:iz.optional()}),fR=hr.extend({method:B.literal("sampling/createMessage"),params:az}),mR=Er.extend({model:B.string(),stopReason:B.optional(B.enum(["endTurn","stopSequence","maxTokens"]).or(B.string())),role:Zc,content:oz}),hR=Er.extend({model:B.string(),stopReason:B.optional(B.enum(["endTurn","stopSequence","maxTokens","toolUse"]).or(B.string())),role:Zc,content:B.union([Ap,B.array(Ap)])}),cz=B.object({type:B.literal("boolean"),title:B.string().optional(),description:B.string().optional(),default:B.boolean().optional()}),uz=B.object({type:B.literal("string"),title:B.string().optional(),description:B.string().optional(),minLength:B.number().optional(),maxLength:B.number().optional(),format:B.enum(["email","uri","date","date-time"]).optional(),default:B.string().optional()}),gz=B.object({type:B.enum(["number","integer"]),title:B.string().optional(),description:B.string().optional(),minimum:B.number().optional(),maximum:B.number().optional(),default:B.number().optional()}),lz=B.object({type:B.literal("string"),title:B.string().optional(),description:B.string().optional(),enum:B.array(B.string()),default:B.string().optional()}),pz=B.object({type:B.literal("string"),title:B.string().optional(),description:B.string().optional(),oneOf:B.array(B.object({const:B.string(),title:B.string()})),default:B.string().optional()}),dz=B.object({type:B.literal("string"),title:B.string().optional(),description:B.string().optional(),enum:B.array(B.string()),enumNames:B.array(B.string()).optional(),default:B.string().optional()}),Cz=B.union([lz,pz]),Iz=B.object({type:B.literal("array"),title:B.string().optional(),description:B.string().optional(),minItems:B.number().optional(),maxItems:B.number().optional(),items:B.object({type:B.literal("string"),enum:B.array(B.string())}),default:B.array(B.string()).optional()}),fz=B.object({type:B.literal("array"),title:B.string().optional(),description:B.string().optional(),minItems:B.number().optional(),maxItems:B.number().optional(),items:B.object({anyOf:B.array(B.object({const:B.string(),title:B.string()}))}),default:B.array(B.string()).optional()}),mz=B.union([Iz,fz]),hz=B.union([dz,Cz,mz]),Ez=B.union([hz,cz,uz,gz]),Bz=sp.extend({mode:B.literal("form").optional(),message:B.string(),requestedSchema:B.object({type:B.literal("object"),properties:B.record(B.string(),Ez),required:B.array(B.string()).optional()})}),Qz=sp.extend({mode:B.literal("url"),message:B.string(),elicitationId:B.string(),url:B.string().url()}),yz=B.union([Bz,Qz]),ER=hr.extend({method:B.literal("elicitation/create"),params:yz}),Dz=Dn.extend({elicitationId:B.string()}),wz=wn.extend({method:B.literal("notifications/elicitation/complete"),params:Dz}),BR=Er.extend({action:B.enum(["accept","decline","cancel"]),content:B.preprocess(t=>t===null?void 0:t,B.record(B.string(),B.union([B.string(),B.number(),B.boolean(),B.array(B.string())])).optional())}),Sz=B.object({type:B.literal("ref/resource"),uri:B.string()}),vz=B.object({type:B.literal("ref/prompt"),name:B.string()}),bz=gn.extend({ref:B.union([vz,Sz]),argument:B.object({name:B.string(),value:B.string()}),context:B.object({arguments:B.record(B.string(),B.string()).optional()}).optional()}),xz=hr.extend({method:B.literal("completion/complete"),params:bz}),QR=Er.extend({completion:B.looseObject({values:B.array(B.string()).max(100),total:B.optional(B.number().int()),hasMore:B.optional(B.boolean())})}),Fz=B.object({uri:B.string().startsWith("file://"),name:B.string().optional(),_meta:B.record(B.string(),B.unknown()).optional()}),Rz=hr.extend({method:B.literal("roots/list"),params:gn.optional()}),kz=Er.extend({roots:B.array(Fz)}),Mz=wn.extend({method:B.literal("notifications/roots/list_changed"),params:Dn.optional()}),SMe=B.union([jm,fW,xz,XW,HW,GW,vW,bW,FW,kW,NW,WW,VW,$m,zm,Zm,eh]),vMe=B.union([Ym,qm,hW,Mz,Vm]),bMe=B.union([Jm,mR,hR,BR,kz,Wm,Xm,cp]),xMe=B.union([jm,fR,ER,Rz,$m,zm,Zm,eh]),FMe=B.union([Ym,qm,tz,PW,cR,CR,lR,Vm,wz]),RMe=B.union([Jm,tR,QR,gR,uR,oR,sR,aR,up,dR,Wm,Xm,cp])});import*as H from"zod/v4";var Br,Nz,DR,Tz,Pz,Uz,Lz,yR,Gz,_z,Hz,MMe,NMe,sh=x(()=>{Br=H.url().superRefine((t,e)=>{if(!URL.canParse(t))return e.addIssue({code:H.ZodIssueCode.custom,message:"URL must be parseable",fatal:!0}),H.NEVER}).refine(t=>{let e=new URL(t);return e.protocol!=="javascript:"&&e.protocol!=="data:"&&e.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),Nz=H.looseObject({resource:H.string().url(),authorization_servers:H.array(Br).optional(),jwks_uri:H.string().url().optional(),scopes_supported:H.array(H.string()).optional(),bearer_methods_supported:H.array(H.string()).optional(),resource_signing_alg_values_supported:H.array(H.string()).optional(),resource_name:H.string().optional(),resource_documentation:H.string().optional(),resource_policy_uri:H.string().url().optional(),resource_tos_uri:H.string().url().optional(),tls_client_certificate_bound_access_tokens:H.boolean().optional(),authorization_details_types_supported:H.array(H.string()).optional(),dpop_signing_alg_values_supported:H.array(H.string()).optional(),dpop_bound_access_tokens_required:H.boolean().optional()}),DR=H.looseObject({issuer:H.string(),authorization_endpoint:Br,token_endpoint:Br,registration_endpoint:Br.optional(),scopes_supported:H.array(H.string()).optional(),response_types_supported:H.array(H.string()),response_modes_supported:H.array(H.string()).optional(),grant_types_supported:H.array(H.string()).optional(),token_endpoint_auth_methods_supported:H.array(H.string()).optional(),token_endpoint_auth_signing_alg_values_supported:H.array(H.string()).optional(),service_documentation:Br.optional(),revocation_endpoint:Br.optional(),revocation_endpoint_auth_methods_supported:H.array(H.string()).optional(),revocation_endpoint_auth_signing_alg_values_supported:H.array(H.string()).optional(),introspection_endpoint:H.string().optional(),introspection_endpoint_auth_methods_supported:H.array(H.string()).optional(),introspection_endpoint_auth_signing_alg_values_supported:H.array(H.string()).optional(),code_challenge_methods_supported:H.array(H.string()).optional(),client_id_metadata_document_supported:H.boolean().optional()}),Tz=H.looseObject({issuer:H.string(),authorization_endpoint:Br,token_endpoint:Br,userinfo_endpoint:Br.optional(),jwks_uri:Br,registration_endpoint:Br.optional(),scopes_supported:H.array(H.string()).optional(),response_types_supported:H.array(H.string()),response_modes_supported:H.array(H.string()).optional(),grant_types_supported:H.array(H.string()).optional(),acr_values_supported:H.array(H.string()).optional(),subject_types_supported:H.array(H.string()),id_token_signing_alg_values_supported:H.array(H.string()),id_token_encryption_alg_values_supported:H.array(H.string()).optional(),id_token_encryption_enc_values_supported:H.array(H.string()).optional(),userinfo_signing_alg_values_supported:H.array(H.string()).optional(),userinfo_encryption_alg_values_supported:H.array(H.string()).optional(),userinfo_encryption_enc_values_supported:H.array(H.string()).optional(),request_object_signing_alg_values_supported:H.array(H.string()).optional(),request_object_encryption_alg_values_supported:H.array(H.string()).optional(),request_object_encryption_enc_values_supported:H.array(H.string()).optional(),token_endpoint_auth_methods_supported:H.array(H.string()).optional(),token_endpoint_auth_signing_alg_values_supported:H.array(H.string()).optional(),display_values_supported:H.array(H.string()).optional(),claim_types_supported:H.array(H.string()).optional(),claims_supported:H.array(H.string()).optional(),service_documentation:H.string().optional(),claims_locales_supported:H.array(H.string()).optional(),ui_locales_supported:H.array(H.string()).optional(),claims_parameter_supported:H.boolean().optional(),request_parameter_supported:H.boolean().optional(),request_uri_parameter_supported:H.boolean().optional(),require_request_uri_registration:H.boolean().optional(),op_policy_uri:Br.optional(),op_tos_uri:Br.optional(),client_id_metadata_document_supported:H.boolean().optional()}),Pz=H.object({...Tz.shape,...DR.pick({code_challenge_methods_supported:!0}).shape}),Uz=H.object({access_token:H.string(),id_token:H.string().optional(),token_type:H.string(),expires_in:H.coerce.number().optional(),scope:H.string().optional(),refresh_token:H.string().optional()}).strip(),Lz=H.object({error:H.string(),error_description:H.string().optional(),error_uri:H.string().optional()}),yR=Br.optional().or(H.literal("").transform(()=>{})),Gz=H.object({redirect_uris:H.array(Br),token_endpoint_auth_method:H.string().optional(),grant_types:H.array(H.string()).optional(),response_types:H.array(H.string()).optional(),client_name:H.string().optional(),client_uri:Br.optional(),logo_uri:yR,scope:H.string().optional(),contacts:H.array(H.string()).optional(),tos_uri:yR,policy_uri:H.string().optional(),jwks_uri:Br.optional(),jwks:H.any().optional(),software_id:H.string().optional(),software_version:H.string().optional(),software_statement:H.string().optional()}).strip(),_z=H.object({client_id:H.string(),client_secret:H.string().optional(),client_id_issued_at:H.number().optional(),client_secret_expires_at:H.number().optional()}).strip(),Hz=Gz.merge(_z),MMe=H.object({error:H.string(),error_description:H.string().optional()}).strip(),NMe=H.object({token:H.string(),token_type_hint:H.string().optional()}).strip()});var wR=x(()=>{});var Jt,Xc,So,vo,bo,eu,tu,Ys,js,ru,nu,iu,qs,Au,ou,Vs,su,au,Oz,ah=x(()=>{Jt=class extends Error{constructor(e,r){super(e),this.errorUri=r,this.name=this.constructor.name}toResponseObject(){let e={error:this.errorCode,error_description:this.message};return this.errorUri&&(e.error_uri=this.errorUri),e}get errorCode(){return this.constructor.errorCode}},Xc=class extends Jt{};Xc.errorCode="invalid_request";So=class extends Jt{};So.errorCode="invalid_client";vo=class extends Jt{};vo.errorCode="invalid_grant";bo=class extends Jt{};bo.errorCode="unauthorized_client";eu=class extends Jt{};eu.errorCode="unsupported_grant_type";tu=class extends Jt{};tu.errorCode="invalid_scope";Ys=class extends Jt{};Ys.errorCode="access_denied";js=class extends Jt{};js.errorCode="server_error";ru=class extends Jt{};ru.errorCode="temporarily_unavailable";nu=class extends Jt{};nu.errorCode="unsupported_response_type";iu=class extends Jt{};iu.errorCode="unsupported_token_type";qs=class extends Jt{};qs.errorCode="invalid_token";Au=class extends Jt{};Au.errorCode="method_not_allowed";ou=class extends Jt{};ou.errorCode="too_many_requests";Vs=class extends Jt{};Vs.errorCode="invalid_client_metadata";su=class extends Jt{};su.errorCode="insufficient_scope";au=class extends Jt{};au.errorCode="invalid_target";Oz={[Xc.errorCode]:Xc,[So.errorCode]:So,[vo.errorCode]:vo,[bo.errorCode]:bo,[eu.errorCode]:eu,[tu.errorCode]:tu,[Ys.errorCode]:Ys,[js.errorCode]:js,[ru.errorCode]:ru,[nu.errorCode]:nu,[iu.errorCode]:iu,[qs.errorCode]:qs,[Au.errorCode]:Au,[ou.errorCode]:ou,[Vs.errorCode]:Vs,[su.errorCode]:su,[au.errorCode]:au}});var $s=x(()=>{VF();RA();sh();sh();wR();ah()});var ch=x(()=>{"use strict";ah();$s()});var gp=x(()=>{"use strict"});import vR from"node:fs";function Jz(){try{return vR.statSync("/.dockerenv"),!0}catch{return!1}}function Yz(){try{return vR.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}function gh(){return uh===void 0&&(uh=Jz()||Yz()),uh}var uh,bR=x(()=>{});import jz from"node:fs";function xo(){return lh===void 0&&(lh=qz()||gh()),lh}var lh,qz,ph=x(()=>{bR();qz=()=>{try{return jz.statSync("/run/.containerenv"),!0}catch{return!1}}});import FR from"node:process";import Vz from"node:os";import dh from"node:fs";var xR,kA,Ch=x(()=>{ph();xR=()=>{if(FR.platform!=="linux")return!1;if(Vz.release().toLowerCase().includes("microsoft"))return!xo();try{if(dh.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft"))return!xo()}catch{}return dh.existsSync("/proc/sys/fs/binfmt_misc/WSLInterop")||dh.existsSync("/run/WSL")?!xo():!1},kA=FR.env.__IS_WSL_TEST__?xR:xR()});import RR from"node:process";import kR,{constants as $z}from"node:fs/promises";var Wz,zz,Ih,MR=x(()=>{Ch();Ch();Wz=(()=>{let t="/mnt/",e;return async function(){if(e)return e;let r="/etc/wsl.conf",n=!1;try{await kR.access(r,$z.F_OK),n=!0}catch{}if(!n)return t;let i=await kR.readFile(r,{encoding:"utf8"}),A=/(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(i);return A?(e=A.groups.mountPoint.trim(),e=e.endsWith("/")?e:`${e}/`,e):t}})(),zz=async()=>`${await Wz()}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`,Ih=async()=>kA?zz():`${RR.env.SYSTEMROOT||RR.env.windir||String.raw`C:\Windows`}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`});function MA(t,e,r){let n=i=>Object.defineProperty(t,e,{value:i,enumerable:!0,writable:!0});return Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get(){let i=r();return n(i),i},set(i){n(i)}}),t}var NR=x(()=>{});import{promisify as Zz}from"node:util";import Xz from"node:process";import{execFile as e7}from"node:child_process";async function fh(){if(Xz.platform!=="darwin")throw new Error("macOS only");let{stdout:t}=await t7("defaults",["read","com.apple.LaunchServices/com.apple.launchservices.secure","LSHandlers"]),r=/LSHandlerRoleAll = "(?!-)(?<id>[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.exec(t)?.groups.id??"com.apple.Safari";return r==="com.apple.safari"?"com.apple.Safari":r}var t7,TR=x(()=>{t7=Zz(e7)});import r7 from"node:process";import{promisify as n7}from"node:util";import{execFile as i7,execFileSync as vNe}from"node:child_process";async function PR(t,{humanReadableOutput:e=!0,signal:r}={}){if(r7.platform!=="darwin")throw new Error("macOS only");let n=e?[]:["-ss"],i={};r&&(i.signal=r);let{stdout:A}=await A7("osascript",["-e",t,n],i);return A.trim()}var A7,UR=x(()=>{A7=n7(i7)});async function mh(t){return PR(`tell application "Finder" to set app_path to application file id "${t}" as string
|
|
31
|
-
tell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":Contents:Info.plist")`)}var LR=x(()=>{UR()});import{promisify as o7}from"node:util";import{execFile as s7}from"node:child_process";async function Eh(t=a7){let{stdout:e}=await t("reg",["QUERY"," HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice","/v","ProgId"]),r=/ProgId\s*REG_SZ\s*(?<id>\S+)/.exec(e);if(!r)throw new hh(`Cannot find Windows browser in stdout: ${JSON.stringify(e)}`);let{id:n}=r.groups,i=n.lastIndexOf("."),A=n.lastIndexOf("-"),o=i===-1?void 0:n.slice(0,i),s=A===-1?void 0:n.slice(0,A);return lp[n]??lp[o]??lp[s]??{name:n,id:n}}var a7,lp,MNe,hh,GR=x(()=>{a7=o7(s7),lp={MSEdgeHTM:{name:"Edge",id:"com.microsoft.edge"},MSEdgeBHTML:{name:"Edge Beta",id:"com.microsoft.edge.beta"},MSEdgeDHTML:{name:"Edge Dev",id:"com.microsoft.edge.dev"},AppXq0fevzme2pys62n3e0fbqa7peapykr8v:{name:"Edge",id:"com.microsoft.edge.old"},ChromeHTML:{name:"Chrome",id:"com.google.chrome"},ChromeBHTML:{name:"Chrome Beta",id:"com.google.chrome.beta"},ChromeDHTML:{name:"Chrome Dev",id:"com.google.chrome.dev"},ChromiumHTM:{name:"Chromium",id:"org.chromium.Chromium"},BraveHTML:{name:"Brave",id:"com.brave.Browser"},BraveBHTML:{name:"Brave Beta",id:"com.brave.Browser.beta"},BraveDHTML:{name:"Brave Dev",id:"com.brave.Browser.dev"},BraveSSHTM:{name:"Brave Nightly",id:"com.brave.Browser.nightly"},FirefoxURL:{name:"Firefox",id:"org.mozilla.firefox"},OperaStable:{name:"Opera",id:"com.operasoftware.Opera"},VivaldiHTM:{name:"Vivaldi",id:"com.vivaldi.Vivaldi"},"IE.HTTP":{name:"Internet Explorer",id:"com.microsoft.ie"}},MNe=new Map(Object.entries(lp)),hh=class extends Error{}});import{promisify as c7}from"node:util";import Bh from"node:process";import{execFile as u7}from"node:child_process";async function Qh(){if(Bh.platform==="darwin"){let t=await fh();return{name:await mh(t),id:t}}if(Bh.platform==="linux"){let{stdout:t}=await g7("xdg-mime",["query","default","x-scheme-handler/http"]),e=t.trim();return{name:l7(e.replace(/.desktop$/,"").replace("-"," ")),id:e}}if(Bh.platform==="win32")return Eh();throw new Error("Only macOS, Linux, and Windows are supported")}var g7,l7,_R=x(()=>{TR();LR();GR();g7=c7(u7),l7=t=>t.toLowerCase().replaceAll(/(?:^|\s|-)\S/g,e=>e.toUpperCase())});import YR from"node:process";import{Buffer as jR}from"node:buffer";import qR from"node:path";import{fileURLToPath as p7}from"node:url";import{promisify as d7}from"node:util";import VR from"node:child_process";import C7,{constants as I7}from"node:fs/promises";async function m7(){let t=await Ih(),e=String.raw`(Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice").ProgId`,r=jR.from(e,"utf16le").toString("base64"),{stdout:n}=await f7(t,["-NoProfile","-NonInteractive","-ExecutionPolicy","Bypass","-EncodedCommand",r],{encoding:"utf8"}),i=n.trim(),A={ChromeHTML:"com.google.chrome",BraveHTML:"com.brave.Browser",MSEdgeHTM:"com.microsoft.edge",FirefoxURL:"org.mozilla.firefox"};return A[i]?{id:A[i]}:{}}function JR(t){if(typeof t=="string"||Array.isArray(t))return t;let{[OR]:e}=t;if(!e)throw new Error(`${OR} is not supported`);return e}function dp({[Ws]:t},{wsl:e}){if(e&&kA)return JR(e);if(!t)throw new Error(`${Ws} is not supported`);return JR(t)}var f7,yh,HR,Ws,OR,KR,pp,h7,Fo,$R,WR=x(()=>{MR();NR();_R();ph();f7=d7(VR.execFile),yh=qR.dirname(p7(import.meta.url)),HR=qR.join(yh,"xdg-open"),{platform:Ws,arch:OR}=YR;KR=async(t,e)=>{let r;for(let n of t)try{return await e(n)}catch(i){r=i}throw r},pp=async t=>{if(t={wait:!1,background:!1,newInstance:!1,allowNonzeroExitCode:!1,...t},Array.isArray(t.app))return KR(t.app,s=>pp({...t,app:s}));let{name:e,arguments:r=[]}=t.app??{};if(r=[...r],Array.isArray(e))return KR(e,s=>pp({...t,app:{name:s,arguments:r}}));if(e==="browser"||e==="browserPrivate"){let s={"com.google.chrome":"chrome","google-chrome.desktop":"chrome","com.brave.Browser":"brave","org.mozilla.firefox":"firefox","firefox.desktop":"firefox","com.microsoft.msedge":"edge","com.microsoft.edge":"edge","com.microsoft.edgemac":"edge","microsoft-edge.desktop":"edge"},c={chrome:"--incognito",brave:"--incognito",firefox:"--private-window",edge:"--inPrivate"},u=kA?await m7():await Qh();if(u.id in s){let g=s[u.id];return e==="browserPrivate"&&r.push(c[g]),pp({...t,app:{name:Fo[g],arguments:r}})}throw new Error(`${u.name} is not supported as a default browser`)}let n,i=[],A={};if(Ws==="darwin")n="open",t.wait&&i.push("--wait-apps"),t.background&&i.push("--background"),t.newInstance&&i.push("--new"),e&&i.push("-a",e);else if(Ws==="win32"||kA&&!xo()&&!e){n=await Ih(),i.push("-NoProfile","-NonInteractive","-ExecutionPolicy","Bypass","-EncodedCommand"),kA||(A.windowsVerbatimArguments=!0);let s=["Start"];t.wait&&s.push("-Wait"),e?(s.push(`"\`"${e}\`""`),t.target&&r.push(t.target)):t.target&&s.push(`"${t.target}"`),r.length>0&&(r=r.map(c=>`"\`"${c}\`""`),s.push("-ArgumentList",r.join(","))),t.target=jR.from(s.join(" "),"utf16le").toString("base64")}else{if(e)n=e;else{let s=!yh||yh==="/",c=!1;try{await C7.access(HR,I7.X_OK),c=!0}catch{}n=YR.versions.electron??(Ws==="android"||s||!c)?"xdg-open":HR}r.length>0&&i.push(...r),t.wait||(A.stdio="ignore",A.detached=!0)}Ws==="darwin"&&r.length>0&&i.push("--args",...r),t.target&&i.push(t.target);let o=VR.spawn(n,i,A);return t.wait?new Promise((s,c)=>{o.once("error",c),o.once("close",u=>{if(!t.allowNonzeroExitCode&&u>0){c(new Error(`Exited with code ${u}`));return}s(o)})}):(o.unref(),o)},h7=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a `target`");return pp({...e,target:t})};Fo={};MA(Fo,"chrome",()=>dp({darwin:"google chrome",win32:"chrome",linux:["google-chrome","google-chrome-stable","chromium"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",x64:["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe","/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]}}));MA(Fo,"brave",()=>dp({darwin:"brave browser",win32:"brave",linux:["brave-browser","brave"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe",x64:["/mnt/c/Program Files/BraveSoftware/Brave-Browser/Application/brave.exe","/mnt/c/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe"]}}));MA(Fo,"firefox",()=>dp({darwin:"firefox",win32:String.raw`C:\Program Files\Mozilla Firefox\firefox.exe`,linux:"firefox"},{wsl:"/mnt/c/Program Files/Mozilla Firefox/firefox.exe"}));MA(Fo,"edge",()=>dp({darwin:"microsoft edge",win32:"msedge",linux:["microsoft-edge","microsoft-edge-dev"]},{wsl:"/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"}));MA(Fo,"browser",()=>"browser");MA(Fo,"browserPrivate",()=>"browserPrivate");$R=h7});var eTe,Dh=x(()=>{"use strict";eTe=300*1e3});var E7,wh,aTe,Sh=x(()=>{"use strict";Dh();E7=300*1e3,wh=class{constructor(){De(this,"waiters",new Map)}register(e,r=E7){return this.clear(e,new Error("SharedServerRedirect: superseded by a newer flow")),new Promise((n,i)=>{let A=setTimeout(()=>{this.waiters.delete(e),i(new Error(`SharedServerRedirect: timed out waiting for callback after ${r}ms`))},r);typeof A=="object"&&A&&"unref"in A&&A.unref?.(),this.waiters.set(e,{resolve:n,reject:i,timeout:A})})}resolve(e,r){let n=this.waiters.get(e);n&&(clearTimeout(n.timeout),this.waiters.delete(e),n.resolve({code:r.code,state:e}))}fail(e,r){this.clear(e,r)}failUnscoped(e){if(this.waiters.size!==1)return;let[r]=this.waiters.keys();r&&this.clear(r,e)}cancel(e,r=new Error("SharedServerRedirect: cancelled before callback received")){this.clear(e,r)}clear(e,r){let n=this.waiters.get(e);n&&(clearTimeout(n.timeout),this.waiters.delete(e),n.reject(r))}},aTe=new wh});var Cp=x(()=>{"use strict"});var zR=w(Ip=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});Ip.ToolError=void 0;var vh=class extends Error{constructor(e){let r=typeof e=="string"?e:e.map(n=>n.type==="text"?n.text:`[${n.type}]`).join(" ");super(r),this.name="ToolError",this.content=e}};Ip.ToolError=vh});var XR=w(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.SDK_HELPER_SYMBOL=void 0;ln.wasCreatedByStainlessHelper=cu;ln.collectStainlessHelpers=ZR;ln.stainlessHelperHeader=B7;ln.stainlessHelperHeaderFromFile=Q7;ln.SDK_HELPER_SYMBOL=Symbol("anthropic.sdk.stainlessHelper");function cu(t){return typeof t=="object"&&t!==null&&ln.SDK_HELPER_SYMBOL in t}function ZR(t,e){let r=new Set;if(t)for(let n of t)cu(n)&&r.add(n[ln.SDK_HELPER_SYMBOL]);if(e){for(let n of e)if(cu(n)&&r.add(n[ln.SDK_HELPER_SYMBOL]),Array.isArray(n.content))for(let i of n.content)cu(i)&&r.add(i[ln.SDK_HELPER_SYMBOL])}return Array.from(r)}function B7(t,e){let r=ZR(t,e);return r.length===0?{}:{"x-stainless-helper":r.join(", ")}}function Q7(t){return cu(t)?{"x-stainless-helper":t[ln.SDK_HELPER_SYMBOL]}:{}}});var ek=w(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.castToError=void 0;uu.isAbortError=y7;function y7(t){return typeof t=="object"&&t!==null&&("name"in t&&t.name==="AbortError"||"message"in t&&String(t.message).includes("FetchRequestCanceledException"))}var D7=t=>{if(t instanceof Error)return t;if(typeof t=="object"&&t!==null){try{if(Object.prototype.toString.call(t)==="[object Error]"){let e=new Error(t.message,t.cause?{cause:t.cause}:{});return t.stack&&(e.stack=t.stack),t.cause&&!e.cause&&(e.cause=t.cause),t.name&&(e.name=t.name),e}}catch{}try{return new Error(JSON.stringify(t))}catch{}}return new Error(t)};uu.castToError=D7});var tk=w(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.InternalServerError=gt.RateLimitError=gt.UnprocessableEntityError=gt.ConflictError=gt.NotFoundError=gt.PermissionDeniedError=gt.AuthenticationError=gt.BadRequestError=gt.APIConnectionTimeoutError=gt.APIConnectionError=gt.APIUserAbortError=gt.APIError=gt.AnthropicError=void 0;var w7=ek(),fp=class extends Error{};gt.AnthropicError=fp;var pn=class t extends fp{constructor(e,r,n,i,A){super(`${t.makeMessage(e,r,n)}`),this.status=e,this.headers=i,this.requestID=i?.get("request-id"),this.error=r,this.type=A??null}static makeMessage(e,r,n){let i=r?.message?typeof r.message=="string"?r.message:JSON.stringify(r.message):r?JSON.stringify(r):n;return e&&i?`${e} ${i}`:e?`${e} status code (no body)`:i||"(no status code or body)"}static generate(e,r,n,i){if(!e||!i)return new gu({message:n,cause:(0,w7.castToError)(r)});let A=r,o=A?.error?.type;return e===400?new mp(e,A,n,i,o):e===401?new hp(e,A,n,i,o):e===403?new Ep(e,A,n,i,o):e===404?new Bp(e,A,n,i,o):e===409?new Qp(e,A,n,i,o):e===422?new yp(e,A,n,i,o):e===429?new Dp(e,A,n,i,o):e>=500?new wp(e,A,n,i,o):new t(e,A,n,i,o)}};gt.APIError=pn;var bh=class extends pn{constructor({message:e}={}){super(void 0,void 0,e||"Request was aborted.",void 0)}};gt.APIUserAbortError=bh;var gu=class extends pn{constructor({message:e,cause:r}){super(void 0,void 0,e||"Connection error.",void 0),r&&(this.cause=r)}};gt.APIConnectionError=gu;var xh=class extends gu{constructor({message:e}={}){super({message:e??"Request timed out."})}};gt.APIConnectionTimeoutError=xh;var mp=class extends pn{};gt.BadRequestError=mp;var hp=class extends pn{};gt.AuthenticationError=hp;var Ep=class extends pn{};gt.PermissionDeniedError=Ep;var Bp=class extends pn{};gt.NotFoundError=Bp;var Qp=class extends pn{};gt.ConflictError=Qp;var yp=class extends pn{};gt.UnprocessableEntityError=yp;var Dp=class extends pn{};gt.RateLimitError=Dp;var wp=class extends pn{};gt.InternalServerError=wp});var ik=w(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.concatBytes=S7;lu.encodeUTF8=v7;lu.decodeUTF8=b7;function S7(t){let e=0;for(let i of t)e+=i.length;let r=new Uint8Array(e),n=0;for(let i of t)r.set(i,n),n+=i.length;return r}var rk;function v7(t){let e;return(rk??(e=new globalThis.TextEncoder,rk=e.encode.bind(e)))(t)}var nk;function b7(t){let e;return(nk??(e=new globalThis.TextDecoder,nk=e.decode.bind(e)))(t)}});var ok=w(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.fromBase64=zs.toBase64=void 0;var Ak=tk(),x7=ik(),F7=t=>{if(!t)return"";if(typeof globalThis.Buffer<"u")return globalThis.Buffer.from(t).toString("base64");if(typeof t=="string"&&(t=(0,x7.encodeUTF8)(t)),typeof btoa<"u")return btoa(String.fromCharCode.apply(null,t));throw new Ak.AnthropicError("Cannot generate base64 string; Expected `Buffer` or `btoa` to be defined")};zs.toBase64=F7;var R7=t=>{if(typeof globalThis.Buffer<"u"){let e=globalThis.Buffer.from(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}if(typeof atob<"u"){let e=atob(t),r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return r}throw new Ak.AnthropicError("Cannot decode base64 string; Expected `Buffer` or `atob` to be defined")};zs.fromBase64=R7});var gk=w(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.UnsupportedMCPValueError=Qr.stainlessHelperHeader=Qr.collectStainlessHelpers=Qr.SDK_HELPER_SYMBOL=void 0;Qr.mcpTool=ak;Qr.mcpTools=T7;Qr.mcpMessage=ck;Qr.mcpMessages=P7;Qr.mcpContent=Sp;Qr.mcpResourceToContent=U7;Qr.mcpResourceToFile=_7;var k7=zR(),zn=XR();Object.defineProperty(Qr,"SDK_HELPER_SYMBOL",{enumerable:!0,get:function(){return zn.SDK_HELPER_SYMBOL}});Object.defineProperty(Qr,"collectStainlessHelpers",{enumerable:!0,get:function(){return zn.collectStainlessHelpers}});Object.defineProperty(Qr,"stainlessHelperHeader",{enumerable:!0,get:function(){return zn.stainlessHelperHeader}});var sk=ok(),M7=["image/jpeg","image/png","image/gif","image/webp"];function Fh(t){return M7.includes(t)}function N7(t){return!t||t.startsWith("text/")||t==="application/pdf"||Fh(t)}var Sn=class extends Error{constructor(e){super(e),this.name="UnsupportedMCPValueError"}};Qr.UnsupportedMCPValueError=Sn;function ak(t,e,r){let n={...t.inputSchema,type:"object",properties:t.inputSchema.properties??null,required:t.inputSchema.required??null};return{...{name:t.name,input_schema:n,...t.description!==void 0?{description:t.description}:{},...r},run:async o=>{let s=await e.callTool({name:t.name,arguments:o});if(s.isError){let c=s.content.map(u=>Sp(u));throw new k7.ToolError(c)}return s.content.length===0&&typeof s.structuredContent=="object"&&s.structuredContent!==null?JSON.stringify(s.structuredContent):s.content.map(c=>Sp(c))},parse:o=>o,[zn.SDK_HELPER_SYMBOL]:"mcpTool"}}function T7(t,e,r){return t.map(n=>ak(n,e,r))}function ck(t,e){return{role:t.role,content:[Sp(t.content,e)],[zn.SDK_HELPER_SYMBOL]:"mcpMessage"}}function P7(t,e){return t.map(r=>ck(r,e))}function Sp(t,e){switch(t.type){case"text":return{type:"text",text:t.text,...e,[zn.SDK_HELPER_SYMBOL]:"mcpContent"};case"image":{if(!Fh(t.mimeType))throw new Sn(`Unsupported image MIME type: ${t.mimeType}`);return{type:"image",source:{type:"base64",data:t.data,media_type:t.mimeType},...e,[zn.SDK_HELPER_SYMBOL]:"mcpContent"}}case"resource":return uk(t.resource,e,"mcpContent");case"resource_link":case"audio":throw new Sn(`Unsupported MCP content type: ${t.type}`);default:throw new Sn(`Unsupported MCP content type: ${t.type}`)}}function uk(t,e,r="mcpResourceToContent"){let n=t.mimeType;if(n&&Fh(n)){if(!("blob"in t))throw new Sn(`Image resource must have blob data, not text. URI: ${t.uri}`);return{type:"image",source:{type:"base64",data:t.blob,media_type:n},...e,[zn.SDK_HELPER_SYMBOL]:r}}if(n==="application/pdf"){if(!("blob"in t))throw new Sn(`PDF resource must have blob data, not text. URI: ${t.uri}`);return{type:"document",source:{type:"base64",data:t.blob,media_type:"application/pdf"},...e,[zn.SDK_HELPER_SYMBOL]:r}}if(!n||n.startsWith("text/"))return{type:"document",source:G7(t),...e,[zn.SDK_HELPER_SYMBOL]:r};throw new Sn(`Unsupported MIME type "${n}" for resource: ${t.uri}`)}function U7(t,e){if(t.contents.length===0)throw new Sn("Resource contents array must contain at least one item");let r=t.contents.find(n=>N7(n.mimeType));if(!r){let n=t.contents.map(i=>i.mimeType).filter(i=>i!==void 0);throw new Sn(`No supported MIME type found in resource contents. Available: ${n.join(", ")}`)}return uk(r,e)}function L7(t){return"blob"in t?(0,sk.fromBase64)(t.blob):new TextEncoder().encode(t.text)}function G7(t){return{type:"text",data:"text"in t?t.text:new TextDecoder().decode((0,sk.fromBase64)(t.blob)),media_type:"text/plain"}}function _7(t){if(t.contents.length===0)throw new Sn("Resource contents array must contain at least one item");let e=t.contents[0],r=new URL(e.uri).pathname.split("/").at(-1)||"file",n=e.mimeType,i=L7(e),A=new File([i],r,n?{type:n}:void 0);return A[zn.SDK_HELPER_SYMBOL]="mcpResourceToFile",A}});var O7,pu=x(()=>{"use strict";Cp();O7=Ze(gk(),1)});var pk=x(()=>{"use strict";ch();gp();Dh();Sh();pu()});var Rh=x(()=>{"use strict";$s();pk()});var du=x(()=>{"use strict"});var vp=w(vn=>{"use strict";vn.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;vn.find=(t,e)=>t.nodes.find(r=>r.type===e);vn.exceedsLimit=(t,e,r=1,n)=>n===!1||!vn.isInteger(t)||!vn.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=n;vn.escapeNode=(t,e=0,r)=>{let n=t.nodes[e];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};vn.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0===0?(t.invalid=!0,!0):!1;vn.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:t.commas>>0+t.ranges>>0===0||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;vn.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;vn.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);vn.flatten=(...t)=>{let e=[],r=n=>{for(let i=0;i<n.length;i++){let A=n[i];if(Array.isArray(A)){r(A);continue}A!==void 0&&e.push(A)}return e};return r(t),e}});var bp=w((LTe,Ik)=>{"use strict";var Ck=vp();Ik.exports=(t,e={})=>{let r=(n,i={})=>{let A=e.escapeInvalid&&Ck.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,s="";if(n.value)return(A||o)&&Ck.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let c of n.nodes)s+=r(c);return s};return r(t)}});var mk=w((GTe,fk)=>{"use strict";fk.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var vk=w((_Te,Sk)=>{"use strict";var hk=mk(),Ro=(t,e,r)=>{if(hk(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(hk(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),A=String(n.shorthand),o=String(n.capture),s=String(n.wrap),c=t+":"+e+"="+i+A+o+s;if(Ro.cache.hasOwnProperty(c))return Ro.cache[c].result;let u=Math.min(t,e),g=Math.max(t,e);if(Math.abs(u-g)===1){let C=t+"|"+e;return n.capture?`(${C})`:n.wrap===!1?C:`(?:${C})`}let d=wk(t)||wk(e),p={min:t,max:e,a:u,b:g},a=[],l=[];if(d&&(p.isPadded=d,p.maxLen=String(p.max).length),u<0){let C=g<0?Math.abs(g):1;l=Ek(C,Math.abs(u),p,n),u=p.a=0}return g>=0&&(a=Ek(u,g,p,n)),p.negatives=l,p.positives=a,p.result=J7(l,a,n),n.capture===!0?p.result=`(${p.result})`:n.wrap!==!1&&a.length+l.length>1&&(p.result=`(?:${p.result})`),Ro.cache[c]=p,p.result};function J7(t,e,r){let n=kh(t,e,"-",!1,r)||[],i=kh(e,t,"",!1,r)||[],A=kh(t,e,"-?",!0,r)||[];return n.concat(A).concat(i).join("|")}function Y7(t,e){let r=1,n=1,i=Qk(t,r),A=new Set([e]);for(;t<=i&&i<=e;)A.add(i),r+=1,i=Qk(t,r);for(i=yk(e+1,n)-1;t<i&&i<=e;)A.add(i),n+=1,i=yk(e+1,n)-1;return A=[...A],A.sort(V7),A}function j7(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let n=q7(t,e),i=n.length,A="",o=0;for(let s=0;s<i;s++){let[c,u]=n[s];c===u?A+=c:c!=="0"||u!=="9"?A+=$7(c,u,r):o++}return o&&(A+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:A,count:[o],digits:i}}function Ek(t,e,r,n){let i=Y7(t,e),A=[],o=t,s;for(let c=0;c<i.length;c++){let u=i[c],g=j7(String(o),String(u),n),d="";if(!r.isPadded&&s&&s.pattern===g.pattern){s.count.length>1&&s.count.pop(),s.count.push(g.count[0]),s.string=s.pattern+Dk(s.count),o=u+1;continue}r.isPadded&&(d=W7(u,r,n)),g.string=d+g.pattern+Dk(g.count),A.push(g),o=u+1,s=g}return A}function kh(t,e,r,n,i){let A=[];for(let o of t){let{string:s}=o;!n&&!Bk(e,"string",s)&&A.push(r+s),n&&Bk(e,"string",s)&&A.push(r+s)}return A}function q7(t,e){let r=[];for(let n=0;n<t.length;n++)r.push([t[n],e[n]]);return r}function V7(t,e){return t>e?1:e>t?-1:0}function Bk(t,e,r){return t.some(n=>n[e]===r)}function Qk(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function yk(t,e){return t-t%Math.pow(10,e)}function Dk(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function $7(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function wk(t){return/^-?(0+)\d/.test(t)}function W7(t,e,r){if(!e.isPadded)return t;let n=Math.abs(e.maxLen-String(t).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}Ro.cache={};Ro.clearCache=()=>Ro.cache={};Sk.exports=Ro});var Th=w((HTe,Nk)=>{"use strict";var z7=W("util"),xk=vk(),bk=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),Z7=t=>e=>t===!0?Number(e):String(e),Mh=t=>typeof t=="number"||typeof t=="string"&&t!=="",Cu=t=>Number.isInteger(+t),Nh=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},X7=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,eZ=(t,e,r)=>{if(e>0){let n=t[0]==="-"?"-":"";n&&(t=t.slice(1)),t=n+t.padStart(n?e-1:e,"0")}return r===!1?String(t):t},Fp=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},tZ=(t,e,r)=>{t.negatives.sort((s,c)=>s<c?-1:s>c?1:0),t.positives.sort((s,c)=>s<c?-1:s>c?1:0);let n=e.capture?"":"?:",i="",A="",o;return t.positives.length&&(i=t.positives.map(s=>Fp(String(s),r)).join("|")),t.negatives.length&&(A=`-(${n}${t.negatives.map(s=>Fp(String(s),r)).join("|")})`),i&&A?o=`${i}|${A}`:o=i||A,e.wrap?`(${n}${o})`:o},Fk=(t,e,r,n)=>{if(r)return xk(t,e,{wrap:!1,...n});let i=String.fromCharCode(t);if(t===e)return i;let A=String.fromCharCode(e);return`[${i}-${A}]`},Rk=(t,e,r)=>{if(Array.isArray(t)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${t.join("|")})`:t.join("|")}return xk(t,e,r)},kk=(...t)=>new RangeError("Invalid range arguments: "+z7.inspect(...t)),Mk=(t,e,r)=>{if(r.strictRanges===!0)throw kk([t,e]);return[]},rZ=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},nZ=(t,e,r=1,n={})=>{let i=Number(t),A=Number(e);if(!Number.isInteger(i)||!Number.isInteger(A)){if(n.strictRanges===!0)throw kk([t,e]);return[]}i===0&&(i=0),A===0&&(A=0);let o=i>A,s=String(t),c=String(e),u=String(r);r=Math.max(Math.abs(r),1);let g=Nh(s)||Nh(c)||Nh(u),d=g?Math.max(s.length,c.length,u.length):0,p=g===!1&&X7(t,e,n)===!1,a=n.transform||Z7(p);if(n.toRegex&&r===1)return Fk(Fp(t,d),Fp(e,d),!0,n);let l={negatives:[],positives:[]},C=E=>l[E<0?"negatives":"positives"].push(Math.abs(E)),I=[],m=0;for(;o?i>=A:i<=A;)n.toRegex===!0&&r>1?C(i):I.push(eZ(a(i,m),d,p)),i=o?i-r:i+r,m++;return n.toRegex===!0?r>1?tZ(l,n,d):Rk(I,null,{wrap:!1,...n}):I},iZ=(t,e,r=1,n={})=>{if(!Cu(t)&&t.length>1||!Cu(e)&&e.length>1)return Mk(t,e,n);let i=n.transform||(p=>String.fromCharCode(p)),A=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),s=A>o,c=Math.min(A,o),u=Math.max(A,o);if(n.toRegex&&r===1)return Fk(c,u,!1,n);let g=[],d=0;for(;s?A>=o:A<=o;)g.push(i(A,d)),A=s?A-r:A+r,d++;return n.toRegex===!0?Rk(g,null,{wrap:!1,options:n}):g},xp=(t,e,r,n={})=>{if(e==null&&Mh(t))return[t];if(!Mh(t)||!Mh(e))return Mk(t,e,n);if(typeof r=="function")return xp(t,e,1,{transform:r});if(bk(r))return xp(t,e,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Cu(r)?Cu(t)&&Cu(e)?nZ(t,e,r,i):iZ(t,e,Math.max(Math.abs(r),1),i):r!=null&&!bk(r)?rZ(r,i):xp(t,e,1,r)};Nk.exports=xp});var Uk=w((OTe,Pk)=>{"use strict";var AZ=Th(),Tk=vp(),oZ=(t,e={})=>{let r=(n,i={})=>{let A=Tk.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,s=A===!0||o===!0,c=e.escapeInvalid===!0?"\\":"",u="";if(n.isOpen===!0)return c+n.value;if(n.isClose===!0)return console.log("node.isClose",c,n.value),c+n.value;if(n.type==="open")return s?c+n.value:"(";if(n.type==="close")return s?c+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":s?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let g=Tk.reduce(n.nodes),d=AZ(...g,{...e,wrap:!1,toRegex:!0,strictZeros:!0});if(d.length!==0)return g.length>1&&d.length>1?`(${d})`:d}if(n.nodes)for(let g of n.nodes)u+=r(g,n);return u};return r(t)};Pk.exports=oZ});var _k=w((KTe,Gk)=>{"use strict";var sZ=Th(),Lk=bp(),Zs=vp(),ko=(t="",e="",r=!1)=>{let n=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?Zs.flatten(e).map(i=>`{${i}}`):e;for(let i of t)if(Array.isArray(i))for(let A of i)n.push(ko(A,e,r));else for(let A of e)r===!0&&typeof A=="string"&&(A=`{${A}}`),n.push(Array.isArray(A)?ko(i,A,r):i+A);return Zs.flatten(n)},aZ=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,n=(i,A={})=>{i.queue=[];let o=A,s=A.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,s=o.queue;if(i.invalid||i.dollar){s.push(ko(s.pop(),Lk(i,e)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){s.push(ko(s.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let d=Zs.reduce(i.nodes);if(Zs.exceedsLimit(...d,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let p=sZ(...d,e);p.length===0&&(p=Lk(i,e)),s.push(ko(s.pop(),p)),i.nodes=[];return}let c=Zs.encloseBrace(i),u=i.queue,g=i;for(;g.type!=="brace"&&g.type!=="root"&&g.parent;)g=g.parent,u=g.queue;for(let d=0;d<i.nodes.length;d++){let p=i.nodes[d];if(p.type==="comma"&&i.type==="brace"){d===1&&u.push(""),u.push("");continue}if(p.type==="close"){s.push(ko(s.pop(),u,c));continue}if(p.value&&p.type!=="open"){u.push(ko(u.pop(),p.value));continue}p.nodes&&n(p,i)}return u};return Zs.flatten(n(t))};Gk.exports=aZ});var Ok=w((JTe,Hk)=>{"use strict";Hk.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
32
|
-
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var qk=w((YTe,jk)=>{"use strict";var cZ=bp(),{MAX_LENGTH:Kk,CHAR_BACKSLASH:Ph,CHAR_BACKTICK:uZ,CHAR_COMMA:gZ,CHAR_DOT:lZ,CHAR_LEFT_PARENTHESES:pZ,CHAR_RIGHT_PARENTHESES:dZ,CHAR_LEFT_CURLY_BRACE:CZ,CHAR_RIGHT_CURLY_BRACE:IZ,CHAR_LEFT_SQUARE_BRACKET:Jk,CHAR_RIGHT_SQUARE_BRACKET:Yk,CHAR_DOUBLE_QUOTE:fZ,CHAR_SINGLE_QUOTE:mZ,CHAR_NO_BREAK_SPACE:hZ,CHAR_ZERO_WIDTH_NOBREAK_SPACE:EZ}=Ok(),BZ=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},n=typeof r.maxLength=="number"?Math.min(Kk,r.maxLength):Kk;if(t.length>n)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${n})`);let i={type:"root",input:t,nodes:[]},A=[i],o=i,s=i,c=0,u=t.length,g=0,d=0,p,a=()=>t[g++],l=C=>{if(C.type==="text"&&s.type==="dot"&&(s.type="text"),s&&s.type==="text"&&C.type==="text"){s.value+=C.value;return}return o.nodes.push(C),C.parent=o,C.prev=s,s=C,C};for(l({type:"bos"});g<u;)if(o=A[A.length-1],p=a(),!(p===EZ||p===hZ)){if(p===Ph){l({type:"text",value:(e.keepEscaping?p:"")+a()});continue}if(p===Yk){l({type:"text",value:"\\"+p});continue}if(p===Jk){c++;let C;for(;g<u&&(C=a());){if(p+=C,C===Jk){c++;continue}if(C===Ph){p+=a();continue}if(C===Yk&&(c--,c===0))break}l({type:"text",value:p});continue}if(p===pZ){o=l({type:"paren",nodes:[]}),A.push(o),l({type:"text",value:p});continue}if(p===dZ){if(o.type!=="paren"){l({type:"text",value:p});continue}o=A.pop(),l({type:"text",value:p}),o=A[A.length-1];continue}if(p===fZ||p===mZ||p===uZ){let C=p,I;for(e.keepQuotes!==!0&&(p="");g<u&&(I=a());){if(I===Ph){p+=I+a();continue}if(I===C){e.keepQuotes===!0&&(p+=I);break}p+=I}l({type:"text",value:p});continue}if(p===CZ){d++;let I={type:"brace",open:!0,close:!1,dollar:s.value&&s.value.slice(-1)==="$"||o.dollar===!0,depth:d,commas:0,ranges:0,nodes:[]};o=l(I),A.push(o),l({type:"open",value:p});continue}if(p===IZ){if(o.type!=="brace"){l({type:"text",value:p});continue}let C="close";o=A.pop(),o.close=!0,l({type:C,value:p}),d--,o=A[A.length-1];continue}if(p===gZ&&d>0){if(o.ranges>0){o.ranges=0;let C=o.nodes.shift();o.nodes=[C,{type:"text",value:cZ(o)}]}l({type:"comma",value:p}),o.commas++;continue}if(p===lZ&&d>0&&o.commas===0){let C=o.nodes;if(d===0||C.length===0){l({type:"text",value:p});continue}if(s.type==="dot"){if(o.range=[],s.value+=p,s.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,s.type="text";continue}o.ranges++,o.args=[];continue}if(s.type==="range"){C.pop();let I=C[C.length-1];I.value+=s.value+p,s=I,o.ranges--;continue}l({type:"dot",value:p});continue}l({type:"text",value:p})}do if(o=A.pop(),o.type!=="root"){o.nodes.forEach(m=>{m.nodes||(m.type==="open"&&(m.isOpen=!0),m.type==="close"&&(m.isClose=!0),m.nodes||(m.type="text"),m.invalid=!0)});let C=A[A.length-1],I=C.nodes.indexOf(o);C.nodes.splice(I,1,...o.nodes)}while(A.length>0);return l({type:"eos"}),i};jk.exports=BZ});var Wk=w((jTe,$k)=>{"use strict";var Vk=bp(),QZ=Uk(),yZ=_k(),DZ=qk(),dn=(t,e={})=>{let r=[];if(Array.isArray(t))for(let n of t){let i=dn.create(n,e);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(dn.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};dn.parse=(t,e={})=>DZ(t,e);dn.stringify=(t,e={})=>Vk(typeof t=="string"?dn.parse(t,e):t,e);dn.compile=(t,e={})=>(typeof t=="string"&&(t=dn.parse(t,e)),QZ(t,e));dn.expand=(t,e={})=>{typeof t=="string"&&(t=dn.parse(t,e));let r=yZ(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};dn.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?dn.compile(t,e):dn.expand(t,e);$k.exports=dn});var Iu=w((qTe,tM)=>{"use strict";var wZ=W("path"),Ii="\\\\/",zk=`[^${Ii}]`,SZ=0,Yi="\\.",vZ="\\+",bZ="\\?",Rp="\\/",xZ="(?=.)",Zk="[^/]",Uh=`(?:${Rp}|$)`,Xk=`(?:^|${Rp})`,Lh=`${Yi}{1,2}${Uh}`,FZ=`(?!${Yi})`,RZ=`(?!${Xk}${Lh})`,kZ=`(?!${Yi}{0,1}${Uh})`,MZ=`(?!${Lh})`,NZ=`[^.${Rp}]`,TZ=`${Zk}*?`,eM={DOT_LITERAL:Yi,PLUS_LITERAL:vZ,QMARK_LITERAL:bZ,SLASH_LITERAL:Rp,ONE_CHAR:xZ,QMARK:Zk,END_ANCHOR:Uh,DOTS_SLASH:Lh,NO_DOT:FZ,NO_DOTS:RZ,NO_DOT_SLASH:kZ,NO_DOTS_SLASH:MZ,QMARK_NO_DOT:NZ,STAR:TZ,START_ANCHOR:Xk},PZ={...eM,SLASH_LITERAL:`[${Ii}]`,QMARK:zk,STAR:`${zk}*?`,DOTS_SLASH:`${Yi}{1,2}(?:[${Ii}]|$)`,NO_DOT:`(?!${Yi})`,NO_DOTS:`(?!(?:^|[${Ii}])${Yi}{1,2}(?:[${Ii}]|$))`,NO_DOT_SLASH:`(?!${Yi}{0,1}(?:[${Ii}]|$))`,NO_DOTS_SLASH:`(?!${Yi}{1,2}(?:[${Ii}]|$))`,QMARK_NO_DOT:`[^.${Ii}]`,START_ANCHOR:`(?:^|[${Ii}])`,END_ANCHOR:`(?:[${Ii}]|$)`},UZ={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};tM.exports={DEFAULT_MAX_EXTGLOB_RECURSION:SZ,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:UZ,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:wZ.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?PZ:eM}}});var fu=w(Zr=>{"use strict";var LZ=W("path"),GZ=process.platform==="win32",{REGEX_BACKSLASH:_Z,REGEX_REMOVE_BACKSLASH:HZ,REGEX_SPECIAL_CHARS:OZ,REGEX_SPECIAL_CHARS_GLOBAL:KZ}=Iu();Zr.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);Zr.hasRegexChars=t=>OZ.test(t);Zr.isRegexChar=t=>t.length===1&&Zr.hasRegexChars(t);Zr.escapeRegex=t=>t.replace(KZ,"\\$1");Zr.toPosixSlashes=t=>t.replace(_Z,"/");Zr.removeBackslashes=t=>t.replace(HZ,e=>e==="\\"?"":e);Zr.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};Zr.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:GZ===!0||LZ.sep==="\\";Zr.escapeLast=(t,e,r)=>{let n=t.lastIndexOf(e,r);return n===-1?t:t[n-1]==="\\"?Zr.escapeLast(t,e,n-1):`${t.slice(0,n)}\\${t.slice(n)}`};Zr.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};Zr.wrapOutput=(t,e={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",A=`${n}(?:${t})${i}`;return e.negated===!0&&(A=`(?:^(?!${A}).*$)`),A}});var cM=w(($Te,aM)=>{"use strict";var rM=fu(),{CHAR_ASTERISK:Gh,CHAR_AT:JZ,CHAR_BACKWARD_SLASH:mu,CHAR_COMMA:YZ,CHAR_DOT:_h,CHAR_EXCLAMATION_MARK:Hh,CHAR_FORWARD_SLASH:sM,CHAR_LEFT_CURLY_BRACE:Oh,CHAR_LEFT_PARENTHESES:Kh,CHAR_LEFT_SQUARE_BRACKET:jZ,CHAR_PLUS:qZ,CHAR_QUESTION_MARK:nM,CHAR_RIGHT_CURLY_BRACE:VZ,CHAR_RIGHT_PARENTHESES:iM,CHAR_RIGHT_SQUARE_BRACKET:$Z}=Iu(),AM=t=>t===sM||t===mu,oM=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},WZ=(t,e)=>{let r=e||{},n=t.length-1,i=r.parts===!0||r.scanToEnd===!0,A=[],o=[],s=[],c=t,u=-1,g=0,d=0,p=!1,a=!1,l=!1,C=!1,I=!1,m=!1,E=!1,Q=!1,D=!1,S=!1,R=0,k,U,L={value:"",depth:0,isGlob:!1},ee=()=>u>=n,M=()=>c.charCodeAt(u+1),q=()=>(k=U,c.charCodeAt(++u));for(;u<n;){U=q();let ge;if(U===mu){E=L.backslashes=!0,U=q(),U===Oh&&(m=!0);continue}if(m===!0||U===Oh){for(R++;ee()!==!0&&(U=q());){if(U===mu){E=L.backslashes=!0,q();continue}if(U===Oh){R++;continue}if(m!==!0&&U===_h&&(U=q())===_h){if(p=L.isBrace=!0,l=L.isGlob=!0,S=!0,i===!0)continue;break}if(m!==!0&&U===YZ){if(p=L.isBrace=!0,l=L.isGlob=!0,S=!0,i===!0)continue;break}if(U===VZ&&(R--,R===0)){m=!1,p=L.isBrace=!0,S=!0;break}}if(i===!0)continue;break}if(U===sM){if(A.push(u),o.push(L),L={value:"",depth:0,isGlob:!1},S===!0)continue;if(k===_h&&u===g+1){g+=2;continue}d=u+1;continue}if(r.noext!==!0&&(U===qZ||U===JZ||U===Gh||U===nM||U===Hh)===!0&&M()===Kh){if(l=L.isGlob=!0,C=L.isExtglob=!0,S=!0,U===Hh&&u===g&&(D=!0),i===!0){for(;ee()!==!0&&(U=q());){if(U===mu){E=L.backslashes=!0,U=q();continue}if(U===iM){l=L.isGlob=!0,S=!0;break}}continue}break}if(U===Gh){if(k===Gh&&(I=L.isGlobstar=!0),l=L.isGlob=!0,S=!0,i===!0)continue;break}if(U===nM){if(l=L.isGlob=!0,S=!0,i===!0)continue;break}if(U===jZ){for(;ee()!==!0&&(ge=q());){if(ge===mu){E=L.backslashes=!0,q();continue}if(ge===$Z){a=L.isBracket=!0,l=L.isGlob=!0,S=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&U===Hh&&u===g){Q=L.negated=!0,g++;continue}if(r.noparen!==!0&&U===Kh){if(l=L.isGlob=!0,i===!0){for(;ee()!==!0&&(U=q());){if(U===Kh){E=L.backslashes=!0,U=q();continue}if(U===iM){S=!0;break}}continue}break}if(l===!0){if(S=!0,i===!0)continue;break}}r.noext===!0&&(C=!1,l=!1);let oe=c,ue="",P="";g>0&&(ue=c.slice(0,g),c=c.slice(g),d-=g),oe&&l===!0&&d>0?(oe=c.slice(0,d),P=c.slice(d)):l===!0?(oe="",P=c):oe=c,oe&&oe!==""&&oe!=="/"&&oe!==c&&AM(oe.charCodeAt(oe.length-1))&&(oe=oe.slice(0,-1)),r.unescape===!0&&(P&&(P=rM.removeBackslashes(P)),oe&&E===!0&&(oe=rM.removeBackslashes(oe)));let G={prefix:ue,input:t,start:g,base:oe,glob:P,isBrace:p,isBracket:a,isGlob:l,isExtglob:C,isGlobstar:I,negated:Q,negatedExtglob:D};if(r.tokens===!0&&(G.maxDepth=0,AM(U)||o.push(L),G.tokens=o),r.parts===!0||r.tokens===!0){let ge;for(let me=0;me<A.length;me++){let $=ge?ge+1:g,te=A[me],_=t.slice($,te);r.tokens&&(me===0&&g!==0?(o[me].isPrefix=!0,o[me].value=ue):o[me].value=_,oM(o[me]),G.maxDepth+=o[me].depth),(me!==0||_!=="")&&s.push(_),ge=te}if(ge&&ge+1<t.length){let me=t.slice(ge+1);s.push(me),r.tokens&&(o[o.length-1].value=me,oM(o[o.length-1]),G.maxDepth+=o[o.length-1].depth)}G.slashes=A,G.parts=s}return G};aM.exports=WZ});var dM=w((WTe,pM)=>{"use strict";var hu=Iu(),Mr=fu(),{MAX_LENGTH:kp,POSIX_REGEX_SOURCE:zZ,REGEX_NON_SPECIAL_CHARS:ZZ,REGEX_SPECIAL_CHARS_BACKREF:XZ,REPLACEMENTS:uM}=hu,eX=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let r=`[${t.join("-")}]`;try{new RegExp(r)}catch{return t.map(i=>Mr.escapeRegex(i)).join("..")}return r},Xs=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,gM=t=>{let e=[],r=0,n=0,i=0,A="",o=!1;for(let s of t){if(o===!0){A+=s,o=!1;continue}if(s==="\\"){A+=s,o=!0;continue}if(s==='"'){i=i===1?0:1,A+=s;continue}if(i===0){if(s==="[")r++;else if(s==="]"&&r>0)r--;else if(r===0){if(s==="(")n++;else if(s===")"&&n>0)n--;else if(s==="|"&&n===0){e.push(A),A="";continue}}}A+=s}return e.push(A),e},tX=t=>{let e=!1;for(let r of t){if(e===!0){e=!1;continue}if(r==="\\"){e=!0;continue}if(/[?*+@!()[\]{}]/.test(r))return!1}return!0},lM=t=>{let e=t.trim(),r=!0;for(;r===!0;)r=!1,/^@\([^\\()[\]{}|]+\)$/.test(e)&&(e=e.slice(2,-1),r=!0);if(tX(e))return e.replace(/\\(.)/g,"$1")},rX=t=>{let e=t.map(lM).filter(Boolean);for(let r=0;r<e.length;r++)for(let n=r+1;n<e.length;n++){let i=e[r],A=e[n],o=i[0];if(!(!o||i!==o.repeat(i.length)||A!==o.repeat(A.length))&&(i===A||i.startsWith(A)||A.startsWith(i)))return!0}return!1},Jh=(t,e=!0)=>{if(t[0]!=="+"&&t[0]!=="*"||t[1]!=="(")return;let r=0,n=0,i=0,A=!1;for(let o=1;o<t.length;o++){let s=t[o];if(A===!0){A=!1;continue}if(s==="\\"){A=!0;continue}if(s==='"'){i=i===1?0:1;continue}if(i!==1){if(s==="["){r++;continue}if(s==="]"&&r>0){r--;continue}if(!(r>0)){if(s==="("){n++;continue}if(s===")"&&(n--,n===0))return e===!0&&o!==t.length-1?void 0:{type:t[0],body:t.slice(2,o),end:o}}}}},nX=t=>{let e=0,r=[];for(;e<t.length;){let i=Jh(t.slice(e),!1);if(!i||i.type!=="*")return;let A=gM(i.body).map(s=>s.trim());if(A.length!==1)return;let o=lM(A[0]);if(!o||o.length!==1)return;r.push(o),e+=i.end+1}return r.length<1?void 0:`${r.length===1?Mr.escapeRegex(r[0]):`[${r.map(i=>Mr.escapeRegex(i)).join("")}]`}*`},iX=t=>{let e=0,r=t.trim(),n=Jh(r);for(;n;)e++,r=n.body.trim(),n=Jh(r);return e},AX=(t,e)=>{if(e.maxExtglobRecursion===!1)return{risky:!1};let r=typeof e.maxExtglobRecursion=="number"?e.maxExtglobRecursion:hu.DEFAULT_MAX_EXTGLOB_RECURSION,n=gM(t).map(i=>i.trim());if(n.length>1&&(n.some(i=>i==="")||n.some(i=>/^[*?]+$/.test(i))||rX(n)))return{risky:!0};for(let i of n){let A=nX(i);if(A)return{risky:!0,safeOutput:A};if(iX(i)>r)return{risky:!0}}return{risky:!1}},Yh=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=uM[t]||t;let r={...e},n=typeof r.maxLength=="number"?Math.min(kp,r.maxLength):kp,i=t.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let A={type:"bos",value:"",output:r.prepend||""},o=[A],s=r.capture?"":"?:",c=Mr.isWindows(e),u=hu.globChars(c),g=hu.extglobChars(u),{DOT_LITERAL:d,PLUS_LITERAL:p,SLASH_LITERAL:a,ONE_CHAR:l,DOTS_SLASH:C,NO_DOT:I,NO_DOT_SLASH:m,NO_DOTS_SLASH:E,QMARK:Q,QMARK_NO_DOT:D,STAR:S,START_ANCHOR:R}=u,k=ie=>`(${s}(?:(?!${R}${ie.dot?C:d}).)*?)`,U=r.dot?"":I,L=r.dot?Q:D,ee=r.bash===!0?k(r):S;r.capture&&(ee=`(${ee})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let M={input:t,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};t=Mr.removePrefix(t,M),i=t.length;let q=[],oe=[],ue=[],P=A,G,ge=()=>M.index===i-1,me=M.peek=(ie=1)=>t[M.index+ie],$=M.advance=()=>t[++M.index]||"",te=()=>t.slice(M.index+1),_=(ie="",Ne=0)=>{M.consumed+=ie,M.index+=Ne},Ce=ie=>{M.output+=ie.output!=null?ie.output:ie.value,_(ie.value)},Re=()=>{let ie=1;for(;me()==="!"&&(me(2)!=="("||me(3)==="?");)$(),M.start++,ie++;return ie%2===0?!1:(M.negated=!0,M.start++,!0)},ye=ie=>{M[ie]++,ue.push(ie)},Ee=ie=>{M[ie]--,ue.pop()},ce=ie=>{if(P.type==="globstar"){let Ne=M.braces>0&&(ie.type==="comma"||ie.type==="brace"),ne=ie.extglob===!0||q.length&&(ie.type==="pipe"||ie.type==="paren");ie.type!=="slash"&&ie.type!=="paren"&&!Ne&&!ne&&(M.output=M.output.slice(0,-P.output.length),P.type="star",P.value="*",P.output=ee,M.output+=P.output)}if(q.length&&ie.type!=="paren"&&(q[q.length-1].inner+=ie.value),(ie.value||ie.output)&&Ce(ie),P&&P.type==="text"&&ie.type==="text"){P.value+=ie.value,P.output=(P.output||"")+ie.value;return}ie.prev=P,o.push(ie),P=ie},je=(ie,Ne)=>{let ne={...g[Ne],conditions:1,inner:""};ne.prev=P,ne.parens=M.parens,ne.output=M.output,ne.startIndex=M.index,ne.tokensIndex=o.length;let we=(r.capture?"(":"")+ne.open;ye("parens"),ce({type:ie,value:Ne,output:M.output?"":l}),ce({type:"paren",extglob:!0,value:$(),output:we}),q.push(ne)},lr=ie=>{let Ne=t.slice(ie.startIndex,M.index+1),ne=t.slice(ie.startIndex+2,M.index),we=AX(ne,r);if((ie.type==="plus"||ie.type==="star")&&we.risky){let Le=we.safeOutput?(ie.output?"":l)+(r.capture?`(${we.safeOutput})`:we.safeOutput):void 0,pr=o[ie.tokensIndex];pr.type="text",pr.value=Ne,pr.output=Le||Mr.escapeRegex(Ne);for(let Vt=ie.tokensIndex+1;Vt<o.length;Vt++)o[Vt].value="",o[Vt].output="",delete o[Vt].suffix;M.output=ie.output+pr.output,M.backtrack=!0,ce({type:"paren",extglob:!0,value:G,output:""}),Ee("parens");return}let Be=ie.close+(r.capture?")":""),ct;if(ie.type==="negate"){let Le=ee;if(ie.inner&&ie.inner.length>1&&ie.inner.includes("/")&&(Le=k(r)),(Le!==ee||ge()||/^\)+$/.test(te()))&&(Be=ie.close=`)$))${Le}`),ie.inner.includes("*")&&(ct=te())&&/^\.[^\\/.]+$/.test(ct)){let pr=Yh(ct,{...e,fastpaths:!1}).output;Be=ie.close=`)${pr})${Le})`}ie.prev.type==="bos"&&(M.negatedExtglob=!0)}ce({type:"paren",extglob:!0,value:G,output:Be}),Ee("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let ie=!1,Ne=t.replace(XZ,(ne,we,Be,ct,Le,pr)=>ct==="\\"?(ie=!0,ne):ct==="?"?we?we+ct+(Le?Q.repeat(Le.length):""):pr===0?L+(Le?Q.repeat(Le.length):""):Q.repeat(Be.length):ct==="."?d.repeat(Be.length):ct==="*"?we?we+ct+(Le?ee:""):ee:we?ne:`\\${ne}`);return ie===!0&&(r.unescape===!0?Ne=Ne.replace(/\\/g,""):Ne=Ne.replace(/\\+/g,ne=>ne.length%2===0?"\\\\":ne?"\\":"")),Ne===t&&r.contains===!0?(M.output=t,M):(M.output=Mr.wrapOutput(Ne,M,e),M)}for(;!ge();){if(G=$(),G==="\0")continue;if(G==="\\"){let ne=me();if(ne==="/"&&r.bash!==!0||ne==="."||ne===";")continue;if(!ne){G+="\\",ce({type:"text",value:G});continue}let we=/^\\+/.exec(te()),Be=0;if(we&&we[0].length>2&&(Be=we[0].length,M.index+=Be,Be%2!==0&&(G+="\\")),r.unescape===!0?G=$():G+=$(),M.brackets===0){ce({type:"text",value:G});continue}}if(M.brackets>0&&(G!=="]"||P.value==="["||P.value==="[^")){if(r.posix!==!1&&G===":"){let ne=P.value.slice(1);if(ne.includes("[")&&(P.posix=!0,ne.includes(":"))){let we=P.value.lastIndexOf("["),Be=P.value.slice(0,we),ct=P.value.slice(we+2),Le=zZ[ct];if(Le){P.value=Be+Le,M.backtrack=!0,$(),!A.output&&o.indexOf(P)===1&&(A.output=l);continue}}}(G==="["&&me()!==":"||G==="-"&&me()==="]")&&(G=`\\${G}`),G==="]"&&(P.value==="["||P.value==="[^")&&(G=`\\${G}`),r.posix===!0&&G==="!"&&P.value==="["&&(G="^"),P.value+=G,Ce({value:G});continue}if(M.quotes===1&&G!=='"'){G=Mr.escapeRegex(G),P.value+=G,Ce({value:G});continue}if(G==='"'){M.quotes=M.quotes===1?0:1,r.keepQuotes===!0&&ce({type:"text",value:G});continue}if(G==="("){ye("parens"),ce({type:"paren",value:G});continue}if(G===")"){if(M.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Xs("opening","("));let ne=q[q.length-1];if(ne&&M.parens===ne.parens+1){lr(q.pop());continue}ce({type:"paren",value:G,output:M.parens?")":"\\)"}),Ee("parens");continue}if(G==="["){if(r.nobracket===!0||!te().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Xs("closing","]"));G=`\\${G}`}else ye("brackets");ce({type:"bracket",value:G});continue}if(G==="]"){if(r.nobracket===!0||P&&P.type==="bracket"&&P.value.length===1){ce({type:"text",value:G,output:`\\${G}`});continue}if(M.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Xs("opening","["));ce({type:"text",value:G,output:`\\${G}`});continue}Ee("brackets");let ne=P.value.slice(1);if(P.posix!==!0&&ne[0]==="^"&&!ne.includes("/")&&(G=`/${G}`),P.value+=G,Ce({value:G}),r.literalBrackets===!1||Mr.hasRegexChars(ne))continue;let we=Mr.escapeRegex(P.value);if(M.output=M.output.slice(0,-P.value.length),r.literalBrackets===!0){M.output+=we,P.value=we;continue}P.value=`(${s}${we}|${P.value})`,M.output+=P.value;continue}if(G==="{"&&r.nobrace!==!0){ye("braces");let ne={type:"brace",value:G,output:"(",outputIndex:M.output.length,tokensIndex:M.tokens.length};oe.push(ne),ce(ne);continue}if(G==="}"){let ne=oe[oe.length-1];if(r.nobrace===!0||!ne){ce({type:"text",value:G,output:G});continue}let we=")";if(ne.dots===!0){let Be=o.slice(),ct=[];for(let Le=Be.length-1;Le>=0&&(o.pop(),Be[Le].type!=="brace");Le--)Be[Le].type!=="dots"&&ct.unshift(Be[Le].value);we=eX(ct,r),M.backtrack=!0}if(ne.comma!==!0&&ne.dots!==!0){let Be=M.output.slice(0,ne.outputIndex),ct=M.tokens.slice(ne.tokensIndex);ne.value=ne.output="\\{",G=we="\\}",M.output=Be;for(let Le of ct)M.output+=Le.output||Le.value}ce({type:"brace",value:G,output:we}),Ee("braces"),oe.pop();continue}if(G==="|"){q.length>0&&q[q.length-1].conditions++,ce({type:"text",value:G});continue}if(G===","){let ne=G,we=oe[oe.length-1];we&&ue[ue.length-1]==="braces"&&(we.comma=!0,ne="|"),ce({type:"comma",value:G,output:ne});continue}if(G==="/"){if(P.type==="dot"&&M.index===M.start+1){M.start=M.index+1,M.consumed="",M.output="",o.pop(),P=A;continue}ce({type:"slash",value:G,output:a});continue}if(G==="."){if(M.braces>0&&P.type==="dot"){P.value==="."&&(P.output=d);let ne=oe[oe.length-1];P.type="dots",P.output+=G,P.value+=G,ne.dots=!0;continue}if(M.braces+M.parens===0&&P.type!=="bos"&&P.type!=="slash"){ce({type:"text",value:G,output:d});continue}ce({type:"dot",value:G,output:d});continue}if(G==="?"){if(!(P&&P.value==="(")&&r.noextglob!==!0&&me()==="("&&me(2)!=="?"){je("qmark",G);continue}if(P&&P.type==="paren"){let we=me(),Be=G;if(we==="<"&&!Mr.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(P.value==="("&&!/[!=<:]/.test(we)||we==="<"&&!/<([!=]|\w+>)/.test(te()))&&(Be=`\\${G}`),ce({type:"text",value:G,output:Be});continue}if(r.dot!==!0&&(P.type==="slash"||P.type==="bos")){ce({type:"qmark",value:G,output:D});continue}ce({type:"qmark",value:G,output:Q});continue}if(G==="!"){if(r.noextglob!==!0&&me()==="("&&(me(2)!=="?"||!/[!=<:]/.test(me(3)))){je("negate",G);continue}if(r.nonegate!==!0&&M.index===0){Re();continue}}if(G==="+"){if(r.noextglob!==!0&&me()==="("&&me(2)!=="?"){je("plus",G);continue}if(P&&P.value==="("||r.regex===!1){ce({type:"plus",value:G,output:p});continue}if(P&&(P.type==="bracket"||P.type==="paren"||P.type==="brace")||M.parens>0){ce({type:"plus",value:G});continue}ce({type:"plus",value:p});continue}if(G==="@"){if(r.noextglob!==!0&&me()==="("&&me(2)!=="?"){ce({type:"at",extglob:!0,value:G,output:""});continue}ce({type:"text",value:G});continue}if(G!=="*"){(G==="$"||G==="^")&&(G=`\\${G}`);let ne=ZZ.exec(te());ne&&(G+=ne[0],M.index+=ne[0].length),ce({type:"text",value:G});continue}if(P&&(P.type==="globstar"||P.star===!0)){P.type="star",P.star=!0,P.value+=G,P.output=ee,M.backtrack=!0,M.globstar=!0,_(G);continue}let ie=te();if(r.noextglob!==!0&&/^\([^?]/.test(ie)){je("star",G);continue}if(P.type==="star"){if(r.noglobstar===!0){_(G);continue}let ne=P.prev,we=ne.prev,Be=ne.type==="slash"||ne.type==="bos",ct=we&&(we.type==="star"||we.type==="globstar");if(r.bash===!0&&(!Be||ie[0]&&ie[0]!=="/")){ce({type:"star",value:G,output:""});continue}let Le=M.braces>0&&(ne.type==="comma"||ne.type==="brace"),pr=q.length&&(ne.type==="pipe"||ne.type==="paren");if(!Be&&ne.type!=="paren"&&!Le&&!pr){ce({type:"star",value:G,output:""});continue}for(;ie.slice(0,3)==="/**";){let Vt=t[M.index+4];if(Vt&&Vt!=="/")break;ie=ie.slice(3),_("/**",3)}if(ne.type==="bos"&&ge()){P.type="globstar",P.value+=G,P.output=k(r),M.output=P.output,M.globstar=!0,_(G);continue}if(ne.type==="slash"&&ne.prev.type!=="bos"&&!ct&&ge()){M.output=M.output.slice(0,-(ne.output+P.output).length),ne.output=`(?:${ne.output}`,P.type="globstar",P.output=k(r)+(r.strictSlashes?")":"|$)"),P.value+=G,M.globstar=!0,M.output+=ne.output+P.output,_(G);continue}if(ne.type==="slash"&&ne.prev.type!=="bos"&&ie[0]==="/"){let Vt=ie[1]!==void 0?"|$":"";M.output=M.output.slice(0,-(ne.output+P.output).length),ne.output=`(?:${ne.output}`,P.type="globstar",P.output=`${k(r)}${a}|${a}${Vt})`,P.value+=G,M.output+=ne.output+P.output,M.globstar=!0,_(G+$()),ce({type:"slash",value:"/",output:""});continue}if(ne.type==="bos"&&ie[0]==="/"){P.type="globstar",P.value+=G,P.output=`(?:^|${a}|${k(r)}${a})`,M.output=P.output,M.globstar=!0,_(G+$()),ce({type:"slash",value:"/",output:""});continue}M.output=M.output.slice(0,-P.output.length),P.type="globstar",P.output=k(r),P.value+=G,M.output+=P.output,M.globstar=!0,_(G);continue}let Ne={type:"star",value:G,output:ee};if(r.bash===!0){Ne.output=".*?",(P.type==="bos"||P.type==="slash")&&(Ne.output=U+Ne.output),ce(Ne);continue}if(P&&(P.type==="bracket"||P.type==="paren")&&r.regex===!0){Ne.output=G,ce(Ne);continue}(M.index===M.start||P.type==="slash"||P.type==="dot")&&(P.type==="dot"?(M.output+=m,P.output+=m):r.dot===!0?(M.output+=E,P.output+=E):(M.output+=U,P.output+=U),me()!=="*"&&(M.output+=l,P.output+=l)),ce(Ne)}for(;M.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Xs("closing","]"));M.output=Mr.escapeLast(M.output,"["),Ee("brackets")}for(;M.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Xs("closing",")"));M.output=Mr.escapeLast(M.output,"("),Ee("parens")}for(;M.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Xs("closing","}"));M.output=Mr.escapeLast(M.output,"{"),Ee("braces")}if(r.strictSlashes!==!0&&(P.type==="star"||P.type==="bracket")&&ce({type:"maybe_slash",value:"",output:`${a}?`}),M.backtrack===!0){M.output="";for(let ie of M.tokens)M.output+=ie.output!=null?ie.output:ie.value,ie.suffix&&(M.output+=ie.suffix)}return M};Yh.fastpaths=(t,e)=>{let r={...e},n=typeof r.maxLength=="number"?Math.min(kp,r.maxLength):kp,i=t.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);t=uM[t]||t;let A=Mr.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:s,ONE_CHAR:c,DOTS_SLASH:u,NO_DOT:g,NO_DOTS:d,NO_DOTS_SLASH:p,STAR:a,START_ANCHOR:l}=hu.globChars(A),C=r.dot?d:g,I=r.dot?p:g,m=r.capture?"":"?:",E={negated:!1,prefix:""},Q=r.bash===!0?".*?":a;r.capture&&(Q=`(${Q})`);let D=U=>U.noglobstar===!0?Q:`(${m}(?:(?!${l}${U.dot?u:o}).)*?)`,S=U=>{switch(U){case"*":return`${C}${c}${Q}`;case".*":return`${o}${c}${Q}`;case"*.*":return`${C}${Q}${o}${c}${Q}`;case"*/*":return`${C}${Q}${s}${c}${I}${Q}`;case"**":return C+D(r);case"**/*":return`(?:${C}${D(r)}${s})?${I}${c}${Q}`;case"**/*.*":return`(?:${C}${D(r)}${s})?${I}${Q}${o}${c}${Q}`;case"**/.*":return`(?:${C}${D(r)}${s})?${o}${c}${Q}`;default:{let L=/^(.*?)\.(\w+)$/.exec(U);if(!L)return;let ee=S(L[1]);return ee?ee+o+L[2]:void 0}}},R=Mr.removePrefix(t,E),k=S(R);return k&&r.strictSlashes!==!0&&(k+=`${s}?`),k};pM.exports=Yh});var IM=w((zTe,CM)=>{"use strict";var oX=W("path"),sX=cM(),jh=dM(),qh=fu(),aX=Iu(),cX=t=>t&&typeof t=="object"&&!Array.isArray(t),Lt=(t,e,r=!1)=>{if(Array.isArray(t)){let g=t.map(p=>Lt(p,e,r));return p=>{for(let a of g){let l=a(p);if(l)return l}return!1}}let n=cX(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=e||{},A=qh.isWindows(e),o=n?Lt.compileRe(t,e):Lt.makeRe(t,e,!1,!0),s=o.state;delete o.state;let c=()=>!1;if(i.ignore){let g={...e,ignore:null,onMatch:null,onResult:null};c=Lt(i.ignore,g,r)}let u=(g,d=!1)=>{let{isMatch:p,match:a,output:l}=Lt.test(g,o,e,{glob:t,posix:A}),C={glob:t,state:s,regex:o,posix:A,input:g,output:l,match:a,isMatch:p};return typeof i.onResult=="function"&&i.onResult(C),p===!1?(C.isMatch=!1,d?C:!1):c(g)?(typeof i.onIgnore=="function"&&i.onIgnore(C),C.isMatch=!1,d?C:!1):(typeof i.onMatch=="function"&&i.onMatch(C),d?C:!0)};return r&&(u.state=s),u};Lt.test=(t,e,r,{glob:n,posix:i}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let A=r||{},o=A.format||(i?qh.toPosixSlashes:null),s=t===n,c=s&&o?o(t):t;return s===!1&&(c=o?o(t):t,s=c===n),(s===!1||A.capture===!0)&&(A.matchBase===!0||A.basename===!0?s=Lt.matchBase(t,e,r,i):s=e.exec(c)),{isMatch:!!s,match:s,output:c}};Lt.matchBase=(t,e,r,n=qh.isWindows(r))=>(e instanceof RegExp?e:Lt.makeRe(e,r)).test(oX.basename(t));Lt.isMatch=(t,e,r)=>Lt(e,r)(t);Lt.parse=(t,e)=>Array.isArray(t)?t.map(r=>Lt.parse(r,e)):jh(t,{...e,fastpaths:!1});Lt.scan=(t,e)=>sX(t,e);Lt.compileRe=(t,e,r=!1,n=!1)=>{if(r===!0)return t.output;let i=e||{},A=i.contains?"":"^",o=i.contains?"":"$",s=`${A}(?:${t.output})${o}`;t&&t.negated===!0&&(s=`^(?!${s}).*$`);let c=Lt.toRegex(s,e);return n===!0&&(c.state=t),c};Lt.makeRe=(t,e={},r=!1,n=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(i.output=jh.fastpaths(t,e)),i.output||(i=jh(t,e)),Lt.compileRe(i,e,r,n)};Lt.toRegex=(t,e)=>{try{let r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(r){if(e&&e.debug===!0)throw r;return/$^/}};Lt.constants=aX;CM.exports=Lt});var mM=w((ZTe,fM)=>{"use strict";fM.exports=IM()});var $h=w((XTe,yM)=>{"use strict";var EM=W("util"),BM=Wk(),fi=mM(),Vh=fu(),hM=t=>t===""||t==="./",QM=t=>{let e=t.indexOf("{");return e>-1&&t.indexOf("}",e)>-1},ht=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let n=new Set,i=new Set,A=new Set,o=0,s=g=>{A.add(g.output),r&&r.onResult&&r.onResult(g)};for(let g=0;g<e.length;g++){let d=fi(String(e[g]),{...r,onResult:s},!0),p=d.state.negated||d.state.negatedExtglob;p&&o++;for(let a of t){let l=d(a,!0);(p?!l.isMatch:l.isMatch)&&(p?n.add(l.output):(n.delete(l.output),i.add(l.output)))}}let u=(o===e.length?[...A]:[...i]).filter(g=>!n.has(g));if(r&&u.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(g=>g.replace(/\\/g,"")):e}return u};ht.match=ht;ht.matcher=(t,e)=>fi(t,e);ht.isMatch=(t,e,r)=>fi(e,r)(t);ht.any=ht.isMatch;ht.not=(t,e,r={})=>{e=[].concat(e).map(String);let n=new Set,i=[],A=s=>{r.onResult&&r.onResult(s),i.push(s.output)},o=new Set(ht(t,e,{...r,onResult:A}));for(let s of i)o.has(s)||n.add(s);return[...n]};ht.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${EM.inspect(t)}"`);if(Array.isArray(e))return e.some(n=>ht.contains(t,n,r));if(typeof e=="string"){if(hM(t)||hM(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return ht.isMatch(t,e,{...r,contains:!0})};ht.matchKeys=(t,e,r)=>{if(!Vh.isObject(t))throw new TypeError("Expected the first argument to be an object");let n=ht(Object.keys(t),e,r),i={};for(let A of n)i[A]=t[A];return i};ht.some=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let A=fi(String(i),r);if(n.some(o=>A(o)))return!0}return!1};ht.every=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let A=fi(String(i),r);if(!n.every(o=>A(o)))return!1}return!0};ht.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${EM.inspect(t)}"`);return[].concat(e).every(n=>fi(n,r)(t))};ht.capture=(t,e,r)=>{let n=Vh.isWindows(r),A=fi.makeRe(String(t),{...r,capture:!0}).exec(n?Vh.toPosixSlashes(e):e);if(A)return A.slice(1).map(o=>o===void 0?"":o)};ht.makeRe=(...t)=>fi.makeRe(...t);ht.scan=(...t)=>fi.scan(...t);ht.parse=(t,e)=>{let r=[];for(let n of[].concat(t||[]))for(let i of BM(String(n),e))r.push(fi.parse(i,e));return r};ht.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!QM(t)?[t]:BM(t,e)};ht.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return ht.braces(t,{...e,expand:!0})};ht.hasBraces=QM;yM.exports=ht});var Mp=x(()=>{"use strict"});var uX,Wh=x(()=>{"use strict";uX=Ze($h(),1);Mp()});var lX,DM=x(()=>{"use strict";lX=Ze($h(),1);Wh()});var Np=x(()=>{"use strict"});var wM=x(()=>{"use strict";Ci()});var vM=w((gPe,SM)=>{"use strict";SM.exports=({onlyFirst:t=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}});var xM=w((lPe,bM)=>{"use strict";var pX=vM();bM.exports=t=>typeof t=="string"?t.replace(pX(),""):t});var dX,FM=x(()=>{"use strict";dX=Ze(xM(),1)});var dPe,RM=x(()=>{"use strict";dPe=process.platform==="win32"?"C:\\Windows\\System32\\drivers\\etc\\hosts":"/etc/hosts"});var Bu=x(()=>{"use strict";Mp();Mp()});var zh=x(()=>{"use strict";Bu();Bu()});var kM=x(()=>{"use strict"});var Zh=w((yPe,MM)=>{var ea=1e3,ta=ea*60,ra=ta*60,Mo=ra*24,CX=Mo*7,IX=Mo*365.25;MM.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return fX(t);if(r==="number"&&isFinite(t))return e.long?hX(t):mX(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function fX(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*IX;case"weeks":case"week":case"w":return r*CX;case"days":case"day":case"d":return r*Mo;case"hours":case"hour":case"hrs":case"hr":case"h":return r*ra;case"minutes":case"minute":case"mins":case"min":case"m":return r*ta;case"seconds":case"second":case"secs":case"sec":case"s":return r*ea;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function mX(t){var e=Math.abs(t);return e>=Mo?Math.round(t/Mo)+"d":e>=ra?Math.round(t/ra)+"h":e>=ta?Math.round(t/ta)+"m":e>=ea?Math.round(t/ea)+"s":t+"ms"}function hX(t){var e=Math.abs(t);return e>=Mo?Tp(t,e,Mo,"day"):e>=ra?Tp(t,e,ra,"hour"):e>=ta?Tp(t,e,ta,"minute"):e>=ea?Tp(t,e,ea,"second"):t+" ms"}function Tp(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var Xh=w((DPe,NM)=>{function EX(t){r.debug=r,r.default=r,r.coerce=c,r.disable=o,r.enable=i,r.enabled=s,r.humanize=Zh(),r.destroy=u,Object.keys(t).forEach(g=>{r[g]=t[g]}),r.names=[],r.skips=[],r.formatters={};function e(g){let d=0;for(let p=0;p<g.length;p++)d=(d<<5)-d+g.charCodeAt(p),d|=0;return r.colors[Math.abs(d)%r.colors.length]}r.selectColor=e;function r(g){let d,p=null,a,l;function C(...I){if(!C.enabled)return;let m=C,E=Number(new Date),Q=E-(d||E);m.diff=Q,m.prev=d,m.curr=E,d=E,I[0]=r.coerce(I[0]),typeof I[0]!="string"&&I.unshift("%O");let D=0;I[0]=I[0].replace(/%([a-zA-Z%])/g,(R,k)=>{if(R==="%%")return"%";D++;let U=r.formatters[k];if(typeof U=="function"){let L=I[D];R=U.call(m,L),I.splice(D,1),D--}return R}),r.formatArgs.call(m,I),(m.log||r.log).apply(m,I)}return C.namespace=g,C.useColors=r.useColors(),C.color=r.selectColor(g),C.extend=n,C.destroy=r.destroy,Object.defineProperty(C,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(a!==r.namespaces&&(a=r.namespaces,l=r.enabled(g)),l),set:I=>{p=I}}),typeof r.init=="function"&&r.init(C),C}function n(g,d){let p=r(this.namespace+(typeof d>"u"?":":d)+g);return p.log=this.log,p}function i(g){r.save(g),r.namespaces=g,r.names=[],r.skips=[];let d=(typeof g=="string"?g:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let p of d)p[0]==="-"?r.skips.push(p.slice(1)):r.names.push(p)}function A(g,d){let p=0,a=0,l=-1,C=0;for(;p<g.length;)if(a<d.length&&(d[a]===g[p]||d[a]==="*"))d[a]==="*"?(l=a,C=p,a++):(p++,a++);else if(l!==-1)a=l+1,C++,p=C;else return!1;for(;a<d.length&&d[a]==="*";)a++;return a===d.length}function o(){let g=[...r.names,...r.skips.map(d=>"-"+d)].join(",");return r.enable(""),g}function s(g){for(let d of r.skips)if(A(g,d))return!1;for(let d of r.names)if(A(g,d))return!0;return!1}function c(g){return g instanceof Error?g.stack||g.message:g}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}NM.exports=EX});var TM=w((Xr,Pp)=>{Xr.formatArgs=QX;Xr.save=yX;Xr.load=DX;Xr.useColors=BX;Xr.storage=wX();Xr.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Xr.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function BX(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function QX(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Pp.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),t.splice(n,0,e)}Xr.log=console.debug||console.log||(()=>{});function yX(t){try{t?Xr.storage.setItem("debug",t):Xr.storage.removeItem("debug")}catch{}}function DX(){let t;try{t=Xr.storage.getItem("debug")||Xr.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function wX(){try{return localStorage}catch{}}Pp.exports=Xh()(Xr);var{formatters:SX}=Pp.exports;SX.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var UM=w((wPe,PM)=>{"use strict";PM.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}});var _M=w((SPe,GM)=>{"use strict";var vX=W("os"),LM=W("tty"),bn=UM(),{env:rr}=process,Up;bn("no-color")||bn("no-colors")||bn("color=false")||bn("color=never")?Up=0:(bn("color")||bn("colors")||bn("color=true")||bn("color=always"))&&(Up=1);function bX(){if("FORCE_COLOR"in rr)return rr.FORCE_COLOR==="true"?1:rr.FORCE_COLOR==="false"?0:rr.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(rr.FORCE_COLOR,10),3)}function xX(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function FX(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let n=bX();n!==void 0&&(Up=n);let i=r?Up:n;if(i===0)return 0;if(r){if(bn("color=16m")||bn("color=full")||bn("color=truecolor"))return 3;if(bn("color=256"))return 2}if(t&&!e&&i===void 0)return 0;let A=i||0;if(rr.TERM==="dumb")return A;if(process.platform==="win32"){let o=vX.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in rr)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(o=>o in rr)||rr.CI_NAME==="codeship"?1:A;if("TEAMCITY_VERSION"in rr)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(rr.TEAMCITY_VERSION)?1:0;if(rr.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in rr){let o=Number.parseInt((rr.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(rr.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(rr.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(rr.TERM)||"COLORTERM"in rr?1:A}function eE(t,e={}){let r=FX(t,{streamIsTTY:t&&t.isTTY,...e});return xX(r)}GM.exports={supportsColor:eE,stdout:eE({isTTY:LM.isatty(1)}),stderr:eE({isTTY:LM.isatty(2)})}});var OM=w((nr,Gp)=>{var RX=W("tty"),Lp=W("util");nr.init=LX;nr.log=TX;nr.formatArgs=MX;nr.save=PX;nr.load=UX;nr.useColors=kX;nr.destroy=Lp.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");nr.colors=[6,2,3,4,5,1];try{let t=_M();t&&(t.stderr||t).level>=2&&(nr.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}nr.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(i,A)=>A.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function kX(){return"colors"in nr.inspectOpts?!!nr.inspectOpts.colors:RX.isatty(process.stderr.fd)}function MX(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),A=` ${i};1m${e} \x1B[0m`;t[0]=A+t[0].split(`
|
|
30
|
+
`).filter(Boolean);if(A.length===0){Object.keys(r).length===0&&n();return}A.forEach(function(o){let s=parseInt(o,10);isNaN(s)||(e[t].push(s),e[s]=[],r[s]=1,oF(s,e,r,n))})}catch{delete r[t],Object.keys(r).length===0&&n()}}});function km(t){try{return process.kill(t,0),!0}catch(e){return e.code==="EPERM"}}async function Kc(t,e,r,n=5e3,i="SIGTERM"){if(typeof e!="number"&&(!e||(Oc(e)?e.getExitCode()!==null:e.exitCode!==null)))return null;if(r?.aborted)return Jc(r.reason);let A=new Promise((u,g)=>{r?.addEventListener("abort",()=>{g(new Error("killProcess aborted by the user"))},{once:!0})}),o,s;if(typeof e=="number"?o=e:(s=e,o=Oc(s)?s.getPid():s.pid),!o){if(t?.Sentry?.captureMessage("killProcess: no pid (process never spawned or already exited)",{level:"info",extra:{procType:s?Oc(s)?"DevCommandProcess":"ChildProcess":"number"}}),s)try{s.kill("SIGKILL")}catch{}return null}let c=u=>{if(s){if(Oc(s)?s.getExitCode()!==null:s.exitCode!==null||s.signalCode!==null){u();return}Oc(s)?s.onClose(()=>u()):s.on("close",u)}else{let d=Math.floor(n/100),p=0,a=()=>{if(!km(o)){u();return}++p>=d||setTimeout(a,100)};a()}};try{return await Promise.race([new Promise((u,g)=>(0,Fm.default)(o,i,d=>{if(d){g(d);return}s?.removeAllListeners(),c(u)})),new Promise((u,g)=>setTimeout(()=>g(new Error(`${i} killProcess timeout`)),n)),A]),null}catch(u){if(u.code==="ESRCH")return null;t?.Sentry?.captureException(u,{level:"warning"});try{return await Promise.race([new Promise((g,d)=>(0,Fm.default)(o,"SIGKILL",p=>{if(p){d(p);return}s?.removeAllListeners(),c(g)})),new Promise((g,d)=>setTimeout(()=>d(new Error("SIGKILL killProcess timeout")),n)),A]),null}catch(g){return g.code==="ESRCH"||!km(o)?null:(t?.Sentry?.captureException(g,{level:"warning"}),g instanceof Error?g:new Error("killProcess: failed to kill process: "+String(g)))}}finally{s&&s.removeAllListeners()}}var Fm,D$,Rm,w$,Oc,Ci=x(()=>{"use strict";Fm=Ze(aF(),1);rt();Wn();D$=de("ProcessTracker"),Rm=class{constructor(){De(this,"processes",new Set);De(this,"cleanupHandlersRegistered",!1);this.registerCleanupHandlers()}track(e){this.processes.add(e),e.on("exit",()=>{this.processes.delete(e)})}untrack(e){this.processes.delete(e)}async killAll(e){if(this.processes.size===0)return;let r=[];for(let n of this.processes)n.pid&&n.exitCode===null&&r.push(Kc(e,n));await Promise.all(r),this.processes.clear()}registerCleanupHandlers(){if(this.cleanupHandlersRegistered)return;this.cleanupHandlersRegistered=!0;let e=async r=>{try{await this.killAll()}catch(n){D$.error("Error during cleanup:",n)}};process.on("SIGINT",()=>e("SIGINT")),process.on("SIGTERM",()=>e("SIGTERM")),process.on("SIGHUP",()=>e("SIGHUP")),process.on("exit",()=>{for(let r of this.processes)if(r.pid&&r.exitCode===null)try{process.kill(r.pid,"SIGKILL")}catch{}})}get count(){return this.processes.size}},w$=new Rm;Oc=t=>"type"in t});var cF=x(()=>{"use strict"});var uF=x(()=>{"use strict";cF()});var Hs=x(()=>{"use strict"});var gF=x(()=>{"use strict";Kt();Zt();Hs()});var Mm=x(()=>{"use strict"});import{z as Rr}from"zod";var S$,v$,lF,KRe,pF=x(()=>{"use strict";S$=Rr.object({kind:Rr.literal("postgres"),migrations:Rr.literal("drizzle"),schemaDir:Rr.string().default("drizzle")}),v$=Rr.object({build:Rr.record(Rr.string(),Rr.string()).optional(),prod:Rr.record(Rr.string(),Rr.string()).optional()}),lF=Rr.object({buildCommand:Rr.string().optional(),nodeVersion:Rr.string().optional(),buildOutputDir:Rr.string().optional(),environment:v$.optional()}),KRe=Rr.object({database:S$.optional(),hosting:lF.optional()})});var dF=x(()=>{"use strict"});var CF=x(()=>{"use strict"});import{z as Ae}from"zod";var b$,x$,F$,R$,k$,Nm,M$,N$,T$,P$,U$,L$,G$,_$,H$,O$,IF,Tm=x(()=>{"use strict";b$=Ae.object({type:Ae.literal("url"),value:Ae.string()}).meta({title:"URL"}),x$=Ae.object({type:Ae.literal("upload"),contentType:Ae.enum(["image/webp","image/png","image/jpeg","image/gif","application/pdf","application/json","text/plain"]),name:Ae.string(),dataUrl:Ae.string(),text:Ae.string().optional(),size:Ae.number(),id:Ae.string(),originalUrl:Ae.string().optional(),ephemeral:Ae.boolean().optional()}).meta({title:"FileUpload"}),F$=Ae.object({type:Ae.literal("template"),name:Ae.string(),id:Ae.number()}).meta({title:"Template"}),R$=Ae.object({type:Ae.literal("builder"),html:Ae.string()}).meta({title:"BuilderContentAttachment"}),k$=Ae.object({type:Ae.literal("figma"),html:Ae.string()}).meta({title:"FigmaContentAttachment"}),Nm=Ae.discriminatedUnion("type",[x$,F$,b$,R$,k$]).meta({title:"Attachment"}),M$=Ae.object({cited_text:Ae.string(),document_index:Ae.number(),document_title:Ae.string().nullable(),end_char_index:Ae.number(),start_char_index:Ae.number(),type:Ae.literal("char_location")}).meta({title:"CitationCharLocationParam"}),N$=Ae.object({cited_text:Ae.string(),document_index:Ae.number(),document_title:Ae.string().nullable(),end_block_index:Ae.number(),start_block_index:Ae.number(),type:Ae.literal("content_block_location")}).meta({title:"CitationContentBlockLocationParam"}),T$=Ae.object({cited_text:Ae.string(),document_index:Ae.number(),document_title:Ae.string().nullable(),end_page_number:Ae.number(),start_page_number:Ae.number(),type:Ae.literal("page_location")}).meta({title:"CitationPageLocationParam"}),P$=Ae.object({cited_text:Ae.string(),encrypted_index:Ae.string(),title:Ae.string().nullable(),type:Ae.literal("web_search_result_location"),url:Ae.string()}).meta({title:"CitationWebSearchResultLocationParam"}),U$=Ae.discriminatedUnion("type",[M$,T$,N$,P$]).meta({title:"TextCitationParam"}),L$=Ae.object({type:Ae.literal("base64"),media_type:Ae.enum(["image/webp","image/png","image/jpeg","image/gif"]),data:Ae.string(),original_url:Ae.string().optional()}).meta({title:"ImageBase64Source"}),G$=Ae.object({type:Ae.literal("url"),url:Ae.string()}).meta({title:"ImageUrlSource"}),_$=Ae.object({type:Ae.literal("text"),text:Ae.string(),cache:Ae.boolean().optional(),citations:Ae.array(U$).nullish(),ephemeral:Ae.boolean().optional(),thoughtSignature:Ae.string().optional(),tag:Ae.string().optional()}).meta({title:"ContentMessageItemText"}),H$=Ae.object({type:Ae.literal("image"),source:Ae.discriminatedUnion("type",[L$,G$]),cache:Ae.boolean().optional(),ephemeral:Ae.boolean().optional()}).meta({title:"ContentMessageItemImage"}),O$=Ae.object({type:Ae.literal("resource"),resource:Ae.object({uri:Ae.string(),mimeType:Ae.string().optional(),text:Ae.string().optional(),blob:Ae.string().optional()})}).meta({title:"ContentMessageItemResource"}),IF=Ae.object({type:Ae.literal("tool_result"),tool_use_id:Ae.string(),tool_name:Ae.string().optional(),tool_input:Ae.string().optional(),title:Ae.string().optional(),content:Ae.union([Ae.string(),Ae.array(Ae.discriminatedUnion("type",[_$,H$,O$]))]),is_error:Ae.boolean().optional(),cache:Ae.boolean().optional(),ephemeral:Ae.boolean().optional(),structured_result:Ae.record(Ae.string(),Ae.any()).optional()}).meta({title:"ContentMessageItemToolResult"})});var fF=x(()=>{"use strict"});import{z as Ir}from"zod";var mF,Pm=x(()=>{"use strict";mF=Ir.object({client:Ir.string(),clientVersion:Ir.string(),nodeVersion:Ir.string(),systemPlatform:Ir.string(),frameworks:Ir.array(Ir.string()),systemEOL:Ir.string(),systemArch:Ir.string(),systemShell:Ir.string().optional(),inGitRepo:Ir.boolean().optional()}).catchall(Ir.union([Ir.string(),Ir.array(Ir.string()),Ir.boolean(),Ir.undefined()])).meta({title:"UserContext"})});import{z as fr}from"zod";var Os,K$,J$,hF,ep=x(()=>{"use strict";Os=fr.object({key:fr.string(),value:fr.string(),isSecret:fr.boolean(),placeholder:fr.boolean().optional().meta({description:"If true, indicates this is a placeholder value that needs user replacement"}),explanation:fr.string().optional().meta({description:"Explanation of why this env var is needed and what value the user should provide"})}).meta({title:"EnvironmentVariable"}),K$=fr.object({key:fr.string(),type:fr.literal("mise"),tool:fr.string(),version:fr.string().optional()}).meta({title:"SetupMiseDependency"}),J$=fr.object({key:fr.string(),type:fr.literal("script"),name:fr.string(),script:fr.string()}).meta({title:"SetupScriptDependency"}),hF=fr.discriminatedUnion("type",[K$,J$]).meta({title:"SetupDependency"})});import{z as f}from"zod";var Y$,nke,j$,BF,q$,QF,V$,$$,W$,ike,rp,z$,Z$,X$,e5,t5,r5,Ake,n5,i5,A5,o5,s5,a5,c5,u5,g5,l5,p5,d5,C5,I5,f5,Um,m5,h5,E5,B5,Q5,y5,D5,w5,S5,v5,b5,x5,F5,R5,k5,M5,N5,T5,P5,U5,L5,G5,_5,H5,O5,K5,J5,Y5,tp,j5,q5,V5,$5,W5,z5,yF,DF,oke,ske,Z5,X5,e6,t6,r6,n6,i6,A6,o6,s6,a6,c6,u6,Lm,g6,l6,p6,d6,C6,I6,f6,m6,h6,E6,B6,Q6,y6,D6,w6,S6,wF,v6,b6,EF,x6,F6,R6,SF,k6,np,ake,M6,N6,T6,vF,P6,U6,L6,bF,G6,cke,_6,H6,uke,gke,lke,pke,dke,xF=x(()=>{"use strict";Tm();ep();Pm();Y$=f.string().meta({title:"GitSnapshot",description:"Multi-repo git snapshot. Format: 'folder:hash,folder:hash' with URL-encoded folder names. Legacy single-hash form ('abc123') is also accepted. Empty string means no commits."}),nke=f.enum(["named","default"]).meta({title:"ImportType"}),j$=f.object({filePath:f.string(),content:f.string().optional(),importance:f.number().optional(),dropReason:f.string().optional(),wasIncluded:f.boolean().optional(),virtual:f.boolean().optional()}).meta({title:"ProjectFile"}),BF=f.object({name:f.string(),description:f.string().optional()}).meta({title:"CustomAgentInfo"}),q$=f.object({id:f.string(),name:f.string(),content:f.string(),type:f.enum(["always","agent-mode"]).optional(),filePath:f.string().optional(),glob:f.string().optional(),description:f.string().optional(),allowedTools:f.array(f.string()).optional(),hideUI:f.boolean().optional(),isSkill:f.boolean().optional(),disableModelInvocation:f.boolean().optional(),userInvocable:f.boolean().optional(),scope:f.enum(["project","user","plugin","builtin"]).optional(),pluginName:f.string().optional(),ownedAgents:f.array(BF).optional()}).meta({title:"CustomInstruction"}),QF=f.enum(["auto","none","minimal","low","medium","high","xhigh","max"]).meta({title:"ReasoningEffort"}),V$=f.record(f.string(),f.union([f.string(),f.array(f.string())])).meta({title:"AgentModelOverrides"}),$$=f.enum(["react","html","mitosis","react-native","angular","vue","svelte","qwik","solid","marko","swiftui","jetpack-compose","flutter"]).meta({title:"CodeGenFramework"}),W$=f.enum(["tailwind","tailwind-precise","emotion","styled-components","styled-jsx","react-native"]).meta({title:"CodeGenStyleLibrary"}),ike=f.enum(["max_tokens","stop_sequence","tool_use","end_turn","content_filter","error","aborted","pause_turn","refusal","compaction","model_context_window_exceeded"]).nullable().meta({title:"CompletionStopReason"}),rp="The path of the file. Accepts a path relative to the project working directory, an absolute path (`/Users/.../skill.md`), or a tilde path (`~/.builder/skills/.../SKILL.md`). User-level Builder state under `~/.builder/**` is allowed by default for plugin operations; other absolute paths require an explicit ACL policy.",z$=f.object({file_path:f.string().meta({description:rp}),offset:f.number().nullish().meta({description:"The line number to start reading from."}),limit:f.number().nullish().meta({description:"The number of lines to read."})}).meta({title:"ReadToolInput"}),Z$=f.object({pattern:f.string().meta({description:"The pattern to search for"})}).meta({title:"GlobSearchToolInput"}),X$=f.object({query:f.string().meta({description:'A string literal or a JavaScript-flavored regex to search for in all project files. Only escape special characters such as {} and () in string literals to avoid confusion with regex patterns (e.g. "import \\{ foo \\}"). Avoid over-escaping as that will cause errors. Do NOT use inline regex flags like (?i) or (?s) \u2014 they are not supported. The search is case-insensitive by default; use the case_sensitive parameter to control this.'}),include_glob:f.string().nullish().meta({description:"An optional single glob pattern to include only specific files (e.g. '**/*.(ts|tsx)' for all TypeScript files)"}),exclude_glob:f.string().nullish().meta({description:"Optional glob pattern to exclude specific files or directories"}),case_sensitive:f.boolean().nullish().meta({description:"Whether the search should be case-sensitive. Defaults to false (case-insensitive). Set to true for case-sensitive search."})}).meta({title:"GrepSearchToolInput"}),e5=f.object({skill:f.string().meta({description:"The name of a skill from the available-skills list. Do not guess names."}),args:f.string().nullish().meta({description:"Optional invocation arguments; forwarded with the skill body in the tool result."}),userInvoked:f.boolean().nullish().meta({description:"Set to true when the user explicitly mentioned or requested this skill by name in their message (including slash commands). Set to false or omit when invoking proactively based on context."})}).meta({title:"SkillToolInput"}),t5=f.object({name:f.string().meta({description:"The name of the rule to get"})}).meta({title:"GetRuleToolInput"}),r5=f.object({url:f.string().meta({description:"The URL of the website to analyze and mimic the style of, for example 'https://airbnb.com' or 'https://instagram.com'"})}).meta({title:"GetStyleInspirationToolInput"}),Ake=f.object({}).meta({title:"GetBuildOutputToolInput"}),n5=f.object({restart:f.boolean().nullish().meta({description:"Whether to restart the dev server, it will also return the initial logs coming from the dev server. This tool can be very slow, only use as last resort, most of the times file changes do not require a restart."}),set_dev_command:f.string().nullish().meta({description:"Use to set the command of the dev server, for example 'npm run dev' or 'cd packages/frontend && yarn dev'. When updating the command, the dev server will be automatically restarted. After changing a command, the proxy port might change, so you need to use the 'set_proxy_port' tool to update the proxy port. Only use if there are explicit issues"}),set_proxy_port:f.number().nullish().meta({description:"Used to configure the proxy port of the dev server. For example, if `npm run dev` open a port in 8392, but current proxy server listens 3000, you can use this tool to update the proxy port. Only use if there are explicit issues."}),get_logs:f.boolean().nullish().meta({description:"When used standalone, the tool will return logs of the dev server and other status. But don't change or restart anything. It's a read-only operation."}),set_env_variable:f.tuple([f.string(),f.string()]).nullish().meta({description:"Tuple of two strings, the first string is the name of the environment variable, the second string is the value of the environment variable. For example, ['DB_API_KEY', '___PRIVATE_KEY___']"}),set_and_run_setup_command:f.string().nullish().meta({description:"Use to set the command of the setup command, for example 'npm install' or 'yarn'. Only use if there are explicit issues."})}).meta({title:"DevServerControlInput"}),i5=f.object({}).meta({title:"DevServerLogsInput"}),A5=f.object({}).meta({title:"GenerateDesignSystemAgentMdInput",description:"Generates and writes `.builder/output/AGENTS.md` from the token and component CSS files produced during DSI approximation indexing. Reads `.builder/sources/figma/manifest.json` for the design system name, `.builder/output/_index/tokens-report.json` for token categories, and globs `.builder/output/tokens/components/*.css` for component slugs. Call this as the final step after all CSS files have been written."}),o5=f.object({}).meta({title:"DevServerRestartInput",description:"Restarts the dev server with current configuration."}),s5=f.object({description:f.string().meta({description:"A human readable description of the command to run, for example 'install dependencies' or 'run tests'. This description will be used to explain the command to the user."}),command:f.string().meta({description:"The shell command to run, for example 'npm install --save uuid', 'yarn test' or 'npm run build'..."}),timeout:f.number().nullish().meta({description:"Optional timeout in milliseconds (max/default 600000)"})}).meta({title:"BashToolInput"}),a5=f.object({command:f.string().nullish().meta({description:"The PowerShell command to run, for example 'npm install' or 'yarn test'"}),timeout:f.number().nullish().meta({description:"The timeout in milliseconds for the command to run. Choose an appropriate timeout based on the command"}),description:f.string().nullish().meta({description:"A human readable description of the command to run, for example 'install dependencies' or 'run tests'. This description will be used to explain the command to the user."})}).meta({title:"PowerShellToolInput"}),c5=f.object({query:f.string().meta({description:"The question to search on the internet, be specific and concise."})}).meta({title:"WebSearchToolInput"}),u5=f.object({title:f.string().meta({description:"Human readable description of the change or generated code, it's mandatory"}),file_path:f.string().meta({description:rp}),content:f.string().meta({description:"Actual content to write into the file, use an empty string to remove the file"})}).meta({title:"WriteFileInput"}),g5=f.object({title:f.string().meta({description:"Human readable description of the change or generated code, it's mandatory"}),file_path:f.string().meta({description:`${rp} The content of this path must be previously known.`}),old_str:f.string().meta({description:"The text to replace"}),new_str:f.string().meta({description:"The text to replace it with (must be different from old_str)"}),replace_all:f.boolean().optional().meta({description:"Replace all occurences of old_str (default false)"}),apply_with_error:f.boolean().optional()}).meta({title:"SearchReplaceInput"}),l5=f.object({title:f.string().meta({description:"Human readable description of the change or generated code, it's mandatory"}),file_path:f.string().meta({description:`${rp} The content of this path must be previously known.`}),edits:f.array(f.object({old_str:f.string().meta({description:"The text to replace (must match the file contents exactly, including all whitespace and indentation)"}),new_str:f.string().meta({description:"The edited text to replace the old_str"}),replace_all:f.boolean().optional().meta({description:"Replace all occurrences of old_str. This parameter is optional and defaults to false."})})).meta({description:"An array of edit operations to perform, where each edit contains: old_str, new_str, replace_all"}),apply_with_error:f.boolean().nullish()}).meta({title:"MultiSearchReplaceInput"}),p5=f.object({query:f.string(),type:f.enum(["image","video"]),orientation:f.enum(["landscape","portrait","square"]).nullish(),hex_color:f.string().nullish()}).meta({title:"FindMediaToolInput"}),d5=f.object({query:f.string().meta({description:"The text prompt describing the media to find or generate"}),type:f.enum(["image","video","gen-image"]).meta({description:"The type of media: 'image' to search images, 'video' to search videos, or 'gen-image' to generate an AI image"}),orientation:f.enum(["landscape","portrait","square"]).nullish().meta({description:"The orientation/aspect ratio of the media (landscape=wide, portrait=tall, square=1:1)"}),hex_color:f.string().nullish().meta({description:"Optionally use to find images with the predominant specified hex color, for example '#000000' or '#FFFFFF'"}),input_image_urls:f.array(f.string()).nullish().meta({description:'Reference image URLs for AI image generation (only used with type: "gen-image")'})}).meta({title:"MediaToolInput"}),C5=f.object({content:f.string().meta({description:"Markdown content of the memory, keep it factual and to the point. Avoid using line numbers, code snippets as they are likely to change."}),when:f.string().meta({description:"The semantic search query that will be used to retrieve this memory later. Describe the situation, task, or context when this memory should be surfaced."}),category:f.union([f.literal("architecture").meta({description:"System structure, layers, and responsibilities"}),f.literal("data-and-sync").meta({description:"Data storage, persistence, synchronization, IPC, and state flow"}),f.literal("patterns-and-standards").meta({description:"Canonical ways of doing things in this codebase"}),f.literal("coupling-and-duplication").meta({description:"Cross-file, cross-surface, or duplicated logic that must stay aligned"}),f.literal("ui-and-ux-contracts").meta({description:"User-visible behavior, UX guarantees, and UI rules"}),f.literal("concurrency-and-lifecycle").meta({description:"Async behavior, ordering, lifecycle, and race prevention"}),f.literal("invariants").meta({description:"Hard rules that must always remain true"}),f.literal("security-and-trust").meta({description:"Security, permissions, and trust boundaries"}),f.literal("gotchas").meta({description:"Known sharp edges that will break things if ignored"}),f.literal("constraints-and-limits").meta({description:"System limits, assumptions, and non-obvious constraints"}),f.literal("rationale-and-history").meta({description:"Why something is the way it is (tradeoffs, history, intent)"})]).meta({description:"The general category that this memory fits into"}),glob:f.string().optional().meta({description:"Glob pattern for file-based memory retrieval. Use specific paths (e.g., 'src/components/Button.tsx', 'lib/api/**/*.ts') rather than broad patterns (e.g., '*.tsx'). When files matching this glob are read, this memory will be suggested."}),importance:f.number().optional(),glob_auto_include:f.boolean().optional().meta({description:"Whenever the memory should be included whenever the glob is matched."})}).meta({title:"MemoryToolInput"}),I5=f.object({query:f.string(),limit:f.number().optional(),minSimilarity:f.number().optional()}).meta({title:"SearchMemoriesToolInput"}),f5=f.object({outcome:f.enum(["worked","failed","partial","unknown"]).meta({description:"Overall exchange outcome based on user reaction"}),memory_scores:f.object({}).catchall(f.enum(["worked","failed","partial","unknown"])).meta({description:"Score for each memory used: { memory_id: outcome }"})}).meta({title:"ScoreMemoriesToolInput"}),Um=f.object({label:f.string(),description:f.string()}).meta({title:"LabelOption"}),m5=f.strictObject({label:f.string().meta({description:"The display text for this option that the user will see and select. Should be concise (1-5 words) and clearly describe the choice."}),description:f.string().meta({description:"Explanation of what this option means or what will happen if chosen. Useful for providing context about trade-offs or implications."}),preview:f.string().nullish().meta({description:"Optional preview content rendered when this option is focused. Use for mockups, code snippets, or visual comparisons that help users compare options. See the tool description for the expected content format."})}).meta({title:"AskUserQuestionOption"}),h5=f.strictObject({question:f.string().meta({description:'The complete question to ask the user. Should be clear, specific, and end with a question mark. Example: "Which library should we use for date formatting?" If multiSelect is true, phrase it accordingly, e.g. "Which features do you want to enable?"'}),header:f.string().meta({description:'Very short label displayed as a chip/tag (max 12 chars). Examples: "Auth method", "Library", "Approach".'}),options:f.array(m5).min(2).max(4).meta({description:"The available choices for this question. Must have 2-4 options. Each option should be a distinct, mutually exclusive choice (unless multiSelect is enabled). Provide only concrete, substantive choices. Do NOT add a free-form / catch-all option such as 'Other', 'Custom', 'Something else', 'Let me specify', 'None of these', etc. \u2014 the UI always appends an implicit 'Other' option that lets the user type a custom answer, so adding your own would create a duplicate that cannot accept input."}),multiSelect:f.boolean().optional().meta({description:"Set to true to allow the user to select multiple options instead of just one. Use when choices are not mutually exclusive."})}).meta({title:"AskUserQuestion"}),E5=f.strictObject({questions:f.array(h5).min(1,"Must have at least 1 question").max(4).meta({description:"Questions to ask the user (1-4 questions)"})}).meta({title:"AskUserQuestionToolInput"}),B5=f.object({description:f.string().meta({description:"A short (3-5 word) description of the task"}),prompt:f.string().meta({description:"The task for the agent to perform"}),subagent_type:f.string().optional().meta({description:"The type of specialized agent to use for this task"}),resume:f.string().optional().meta({description:"Optional agent ID to resume from"}),origin_channel_id:f.string().optional().meta({description:"The original user's channel_id that triggered this work. When provided, it will be included in the worker report so you can route the response back to the correct channel. Always pass this when spawning agents on behalf of a user request."}),attachmentUrls:f.array(f.string()).optional().meta({description:"URLs of images or files to attach to the agent's context. Useful for providing visual context like screenshots, designs, or reference images."})}).meta({title:"AgentToolInput"}),Q5=f.object({checkpoint_id:f.string().meta({description:"The checkpoint ID to revert back to. All changes from this checkpoint to HEAD will be reverted."})}).meta({title:"RevertToolInput"}),y5=f.object({}).meta({title:"TodoReadToolInput"}),D5=f.object({}).meta({title:"RunningAgentsToolInput"}),w5=f.object({mode:f.enum(["replace","patch"]).meta({description:"Determine how the new todos update the current list: 'patch' means existing items will remain and only the provided items will be updated. The same 'id' must be provided for items you want to update. 'replace' means all existing items will be replaced with the new array of todos."}),todos:f.array(f.object({content:f.string().meta({description:"The imperative form describing what needs to be done"}),status:f.enum(["pending","in_progress","completed"]),id:f.string()}))}).meta({title:"TodoWriteToolInput"}),S5=f.object({subject:f.string().meta({description:"A brief title for the task"}),description:f.string().meta({description:"What needs to be done"}),metadata:f.looseObject({}).optional()}).meta({title:"TaskCreateToolInput"}),v5=f.object({taskId:f.string().meta({description:"The ID of the task to update"}),subject:f.string().optional().meta({description:"New subject for the task"}),description:f.string().optional().meta({description:"New description for the task"}),status:f.enum(["pending","in_progress","completed","deleted"]).optional().meta({description:"New status for the task"}),owner:f.string().optional().meta({description:"New owner for the task"}),addBlocks:f.array(f.string()).optional().meta({description:"Task IDs that this task blocks"}),addBlockedBy:f.array(f.string()).optional().meta({description:"Task IDs that block this task"}),metadata:f.looseObject({}).optional()}).meta({title:"TaskUpdateToolInput"}),b5=f.object({}).meta({title:"TaskListToolInput"}),x5=f.object({filePath:f.string().meta({description:"The path of the Mitosis file to edit (e.g., index.lite.tsx)"}),old_str:f.string().meta({description:"Content to be replaced, this substring should appear verbatim in the selected file_path"}),new_str:f.string().meta({description:"New content to replace the old content with"})}).meta({title:"BuilderEditToolInput"}),F5=f.object({href:f.string().optional(),selector:f.string().optional(),width:f.number().optional(),height:f.number().optional()}).meta({title:"GetScreenshotToolInput"}),R5=f.object({href:f.string().meta({description:"The URL or relative path to navigate the preview to (e.g., '/about' or 'https://example.com')"})}).meta({title:"NavigatePreviewToolInput"}),k5=f.object({url:f.string().meta({description:"The URL to fetch content from"}),prompt:f.string().optional().meta({description:"Optional prompt to describe the content you want to extract from the URL. Leave it blank to fetch images."}),include_styles:f.boolean().optional().meta({description:"If true, the computed styles of the page will be extracted, as well as a screenshot. Prompt must be provided"})}).meta({title:"WebFetchToolInput"}),M5=f.object({category:f.enum(["reusable_knowledge","one_off","bad_quality"]).optional(),gif_id:f.string().optional(),timeline_id:f.string().optional(),recording_id:f.string().optional(),important_files:f.array(f.object({file_path:f.string().meta({description:"The relative path of the file to read"}),relevance:f.enum(["high","medium","low"]).optional().meta({description:"The relevance of the file based on the initial user_prompt"}),offset:f.number().optional().meta({description:"The offset of the file to read, in lines"}),limit:f.number().optional().meta({description:"The limit of the file to read, in lines"})}))}).meta({title:"ExplorationMetadataToolInput"}),N5=f.object({}).meta({title:"EnterPlanModeToolInput"}),T5=f.object({plan:f.string().meta({description:"The plan you came up with, that you want to run by the user for approval. Supports markdown. The plan should be pretty concise. Do not include follow up questions in the plan."}),handled:f.boolean().optional()}).meta({title:"ExitPlanModeToolInput"}),P5=f.object({uri:f.string().meta({description:"The URI of the resource to read, matching a resource template pattern (e.g., 'file:///path/to/file')"}),serverName:f.string().optional().meta({description:"Optional name of the MCP server to use. If not provided, will auto-detect based on URI."})}).meta({title:"ReadMcpResourceToolInput"}),U5=f.enum(["navigation","interaction","assertion","error","milestone","code-change","observation","verified"]).meta({title:"TimelineEventCategory"}),L5=f.enum(["succeeded","couldnt_verify","failed","other"]).meta({title:"TestOutcome"}),G5=f.enum(["env_issue","creds_missing","needs_user_input","server_not_ready","feature_not_reachable","timeout","assertion_failed","unexpected_error","not_applicable","escalated"]).meta({title:"TestCaseFailureCategory"}),_5=f.object({title:f.string().meta({description:"A descriptive title for this frame (e.g., 'Login page loaded', 'Form submitted successfully')"}),frame:f.literal("last-image").meta({description:"The frame source. Use 'last-image' to record the most recent screenshot."}),category:U5.optional().meta({description:"Category of this frame for timeline organization. Default: 'milestone'"}),description:f.string().optional().meta({description:"Optional longer description providing context about what this frame shows."}),pr_highlight:f.boolean().optional().meta({description:"Set true to mark this as a 'verified screenshot' worth showing in the PR description \u2014 visual proof of how the fix/feature behaves. The title is the caption; `description` supports bullet points / multiple lines. Only flag a frame when it shows a GENUINELY DISTINCT UI state \u2014 never flag multiple shots of the same screen. For a single-screen change: flag exactly ONE frame and list ALL the changes as bullet points in `description`. For a multi-step flow: flag one frame per unique screen (e.g. step 1, 2, 3 \u2014 each a different UI). The first flagged frame is shown full-width as the hero, so make it the most representative."})}).meta({title:"RecordFrameToolInput"}),H5=f.object({outcome:L5.meta({description:"The structured test outcome"}),summary:f.string().meta({description:"A concise 1\u20132 sentence summary explaining the test outcome"}),details:f.string().optional().meta({description:"Optional additional context: error messages, steps attempted, etc."}),test_case_id:f.string().optional().meta({description:"Links to a test case ID (e.g., 'TC-01'). If present, this is a per-case report. If absent, this is the session-level summary."}),evidence_frame_count:f.number().optional().meta({description:"Number of RecordFrame calls made for this test case. Should be >= 1 for per-case reports."}),failure_category:G5.optional().meta({description:"Structured failure reason. Required when outcome is failed or couldnt_verify."}),failure_detail:f.string().optional().meta({description:"Human-readable failure explanation. E.g., 'Login page returned 403 \u2014 test account may have been disabled'"}),console_errors:f.string().optional(),network_failures:f.string().optional(),steps_attempted:f.string().optional(),urls_tested:f.array(f.string()).optional()}).meta({title:"ReportTestOutcomeToolInput"}),O5=f.object({projectOverview:f.object({framework:f.string().nullable(),packageManager:f.enum(["npm","yarn","pnpm","bun"]).nullable(),isMonorepo:f.boolean(),detectedLanguage:f.enum(["typescript","javascript"]).nullable()}),rootDirectory:f.object({path:f.string(),reason:f.string()}).nullable(),installCommand:f.object({command:f.string(),reason:f.string()}).nullable(),runtimeDependencies:f.array(f.object({tool:f.string(),version:f.string(),source:f.string()})),devServer:f.object({command:f.string(),url:f.string(),port:f.number(),reason:f.string()}).nullable(),environmentVariables:f.array(f.object({key:f.string(),description:f.string(),isRequired:f.boolean(),isSecret:f.boolean(),defaultValue:f.string().nullable(),source:f.string()})),validationScript:f.object({command:f.string(),reason:f.string()}).nullable(),npmrcContents:f.string().nullable(),hasHotModuleReload:f.object({value:f.boolean(),reason:f.string()}).nullable()}).meta({title:"SetupAnalysisValues"}),K5=f.object({config:O5,message:f.string().optional()}).meta({title:"ProposeConfigToolInput"}),J5=f.enum(["installCommand","devServer","validationScript","environmentVariables"]).meta({title:"SetupValueField"}),Y5=f.object({field:J5.meta({description:"Which field to update"}),value:f.object({command:f.string().optional().meta({description:"The command to run (for installCommand, devServer, validationScript)"}),url:f.string().optional().meta({description:"Dev server URL (only for devServer)"}),port:f.number().optional().meta({description:"Dev server port (only for devServer)"}),environmentVariables:f.array(f.object({key:f.string().meta({description:"Variable name"}),description:f.string().optional().meta({description:"What this variable is for"}),isRequired:f.boolean().optional().meta({description:"Whether this variable is required"}),isSecret:f.boolean().optional().meta({description:"Whether this is a secret/credential"}),defaultValue:f.string().nullish()})).optional()}),reason:f.string()}).meta({title:"UpdateSetupValueToolInput"}),tp=f.enum(["verified","no-frontend","empty-project","mobile-project","user-question","code-change-required","other","started","failed"]).meta({title:"ExitState",description:"Current state: verified (all done), no-frontend (project has no dev server), empty-project (project has almost no code), mobile-project (mobile app e.g. Expo/React Native \u2014 recommend desktop local mode), user-question (need input), code-change-required (repo has code issues user must fix), other (other problem), started (Session started but Exit tool was never called (orphaned session)), failed (Session failed before reaching the agent (e.g. branch/container creation failed))"}),j5=f.object({state:tp.meta({description:"Current state: verified (all done), no-frontend (project has no dev server), empty-project (project has almost no code), mobile-project (mobile app e.g. Expo/React Native), user-question (need input), code-change-required (repo has code issues user must fix), other (other problem)"}),summary:f.string().meta({description:"Brief summary of configuration outcome (what succeeded or what's needed)"}),questions:f.array(f.object({question:f.string().meta({description:"Full question text"}),context:f.string().meta({description:"Why this information is needed"}),header:f.string().optional().meta({description:'Short label (e.g., "API Key", "Database URL")'}),type:f.enum(["select","multi-select","text"]).optional().meta({description:'Question type: "select" for single-choice, "multi-select" for multiple choices, "text" for free-form input. Defaults to "select" if options are present, "text" if not.'}),placeholder:f.string().optional().meta({description:"Placeholder/hint text for 'text' type questions (e.g., 'Enter your API key', 'https://localhost:3000')"}),options:f.array(Um).optional().meta({description:"Suggested answer choices (for 'select' and 'multi-select' types). User can always choose 'Other'."})})).optional().meta({description:"Questions for user (only when state is 'user-question'). Include suggested options when possible."}),isMonorepo:f.boolean().optional().meta({description:"Repository contains multiple packages/apps"}),isMicrofrontend:f.boolean().optional().meta({description:"Frontend code served over multiple ports/servers"}),setupNeedsCredentials:f.boolean().optional().meta({description:"Setup requires credentials (e.g., NPM_TOKEN for private packages)"}),devServerNeedsCredentials:f.boolean().optional().meta({description:"Dev server needs special environment variables to run"}),needsVPN:f.boolean().optional().meta({description:"Setup requires a VPN connection"}),autoReload:f.boolean().optional().meta({description:"The dev server is able to reload the page automatically when the code changes, either through HMR or full page reload. Usually vite, webpack etc support this."}),usesBuilderCms:f.boolean().optional().meta({description:"The connected app uses Builder CMS (detected via @builder.io/react or @builder.io/sdk-* dependencies, a builder-registry file, or Builder CMS API keys such as BUILDER_PUBLIC_KEY)"}),stack:f.array(f.string()).optional().meta({description:'Technologies used by the connected application (not monorepo-wide). Include specific, high-confidence signals only, e.g. ["React", "Next.js", "Postgres", "Drizzle", "Tailwind CSS", "Clerk"]. Omit vague or uncertain entries.'}),projectDescription:f.string().optional().meta({description:"A human-readable description of what this project is about \u2014 focus on purpose and domain, not technical stack. This helps route user requests to the right project (e.g., 'Company blog and content management', 'E-commerce storefront for selling shoes', 'Internal admin dashboard for managing users')."})}).meta({title:"ExitToolInput"}),q5=["running","stopped","starting","failed","unset"],V5=["not-installed","installing","installed","install-failed","install-aborted"],$5=["ok-2xx","error-4xx","error-5xx","error-fetch","stopped","connecting"],W5=["unset","running","stopped","success","failure"],z5=f.object({question:f.string(),context:f.string(),whatYouTried:f.string().optional(),header:f.string().optional().meta({description:"Short label (e.g., 'API Key', 'Database URL')"}),type:f.enum(["select","multi-select","text"]).optional().meta({description:'Question type: "select" for single-choice, "multi-select" for multiple choices, "text" for free-form input'}),placeholder:f.string().optional().meta({description:"Placeholder text for text-type questions"}),options:f.array(Um).optional()}),yF=f.object({setupCommand:f.object({value:f.string().optional(),verified:f.boolean().meta({description:"Based on setupState === 'installed'"}),elapsed:f.number().optional().meta({description:"Time taken in milliseconds (if verified)"})}),setupDependencies:f.object({value:f.array(hF).optional(),verified:f.boolean().meta({description:"Based on setupState === 'installed'"})}),devCommand:f.object({value:f.string().optional(),verified:f.boolean().meta({description:"Based on devState === 'running'"}),elapsed:f.number().optional().meta({description:"Time taken in milliseconds (if verified)"})}),devServer:f.object({value:f.string().optional(),verified:f.boolean().meta({description:"Based on httpServerState === 'ok-2xx'"}),elapsed:f.number().optional().meta({description:"Time taken in milliseconds waiting for the server to respond"})}),validateCommand:f.object({value:f.string().optional(),verified:f.boolean().meta({description:"Based on validateState === 'success'"}),elapsed:f.number().optional().meta({description:"Time taken in milliseconds (if verified)"})}),appOrigin:f.object({value:f.string().optional(),verified:f.boolean().meta({description:"Based on httpServerState === 'ok-2xx'"})}),defaultOrigin:f.object({value:f.string().optional(),verified:f.boolean().meta({description:"Always true if set (used with wildcard appOrigin)"})}),environmentVariables:f.object({value:f.array(Os).optional(),verified:f.boolean().meta({description:"Based on devState === 'running'"})}),autoDetectDevServer:f.object({value:f.boolean().optional(),verified:f.boolean().meta({description:"Always true if set"})}),autoDetectDevServerPatterns:f.object({value:f.array(f.string()).optional(),verified:f.boolean().meta({description:"Always true if set"})}),hasHotModuleReload:f.object({value:f.boolean().optional(),reason:f.string().optional().meta({description:"Detection-only, not auto-applied"})})}),DF=f.object({setupState:f.enum(V5),devState:f.enum(q5),httpServerState:f.enum($5),validateState:f.enum(W5)}),oke=f.object({id:f.string().meta({description:"Auto-generated document ID"}),projectId:f.string(),branchName:f.string(),createdAt:f.number(),updatedAt:f.number(),ownerId:f.string(),userInitiated:f.boolean(),autoApply:f.boolean(),state:tp.meta({description:"Configuration state from Exit tool"}),running:f.boolean().default(!1),previousStates:f.array(tp).optional(),summary:f.string().meta({description:"Summary from Exit tool"}),questions:f.array(z5).optional(),configuration:yF,sessionId:f.string(),orchestratorStates:DF,peakDiskUsage:f.number().optional().meta({description:"Peak disk usage in bytes"}),peakMemoryUsage:f.number().optional().meta({description:"Peak memory usage in bytes"}),screenshotUrl:f.string().optional().meta({description:"Screenshot URL from verification (e.g., error page screenshot)"}),isMonorepo:f.boolean().optional(),isMicrofrontend:f.boolean().optional(),setupNeedsCredentials:f.boolean().optional(),devServerNeedsCredentials:f.boolean().optional(),projectDescription:f.string().optional(),cost:f.number().optional(),durationMs:f.number().optional(),needsVPN:f.boolean().optional(),autoReload:f.boolean().optional(),usesBuilderCms:f.boolean().optional(),stack:f.array(f.string()).optional()}).meta({title:"ProposedConfig",description:"Configuration proposed by the configuration agent, stored in Firebase"}),ske=f.object({projectId:f.string(),branchName:f.string(),state:tp,summary:f.string(),questions:f.array(f.object({question:f.string(),context:f.string(),whatYouTried:f.string().optional(),header:f.string().optional(),options:f.array(Um).optional(),multiSelect:f.boolean().optional()})).optional(),configuration:yF,sessionId:f.string(),orchestratorStates:DF,peakDiskUsage:f.number().optional(),peakMemoryUsage:f.number().optional(),screenshotUrl:f.string().optional(),isMonorepo:f.boolean().optional(),isMicrofrontend:f.boolean().optional(),setupNeedsCredentials:f.boolean().optional(),devServerNeedsCredentials:f.boolean().optional(),needsVPN:f.boolean().optional(),projectDescription:f.string().optional(),autoReload:f.boolean().optional(),usesBuilderCms:f.boolean().optional(),stack:f.array(f.string()).optional()}).meta({title:"ProposeConfigParams"}),Z5=f.object({command:f.string().meta({description:"The install command to run (e.g., 'npm install', 'yarn', 'pnpm install'). It can be a multi-line command too, just like a shell script."}),dependencies:f.array(f.object({tool:f.string().meta({description:"The tool/binary to verify (e.g., 'node', 'npm', 'git')"}),version:f.string().optional().meta({description:"Optional version requirement (e.g., '>=18.0.0', '20.x')"})})).optional()}).meta({title:"VerifySetupCommandToolInput"}),X5=f.object({command:f.string().meta({description:"The dev server command to run (e.g., 'npm run dev', 'cd packages/frontend && yarn dev')"})}).meta({title:"VerifyDevCommandToolInput"}),e6=f.object({autoDetect:f.boolean().meta({description:"Whether to automatically detect the dev server URL from terminal output"}),autoDetectPattern:f.string().optional().meta({description:"Pattern to match and extract URL from terminal output when multiple URLs are present (e.g., 'Local:.*http://localhost:\\\\d+')"}),hardcodedUrl:f.string().optional().meta({description:"The hardcoded dev server URL to use when autoDetect is false (e.g., 'http://localhost:3000')"}),appOrigin:f.string().meta({description:"The origin where the app should be accessed (e.g., 'https://acme.com', 'https://*.acme.com'). Can be a pattern with wildcard."}),defaultOrigin:f.string().optional().meta({description:"Default origin to use when appOrigin is a pattern (e.g., 'https://dev.acme.com'). Required if appOrigin contains a wildcard."})}).meta({title:"VerifyDevServerToolInput"}),t6=f.object({command:f.string(),timeout:f.number().optional().meta({description:"Default: 300000 (5 minutes)"})}).meta({title:"VerifyValidateCommandToolInput"}),r6=f.object({key:f.string().meta({description:"The environment variable name (e.g., 'NODE_ENV', 'API_KEY')"}),value:f.string().meta({description:"The environment variable value. Must be a concrete value, not a placeholder."}),secret:f.boolean().optional().meta({description:"Whether this is a secret value (will be masked in logs). Default: false"})}).meta({title:"ProposeEnvVariableToolInput"}),n6=f.object({key:f.string().meta({description:"The environment variable name (e.g., 'NODE_ENV', 'API_KEY')"}),value:f.string().meta({description:"The environment variable value. Use clear placeholder like 'PLACEHOLDER_DATABASE_URL' if actual value is unknown."}),secret:f.boolean().optional().meta({description:"Whether this is a secret value (will be masked in logs). Default: false"}),placeholder:f.boolean().optional().meta({description:"If true, indicates this is a placeholder value that needs user replacement"}),explanation:f.string().optional().meta({description:"Explanation of why this env var is needed and what value the user should provide"})}).meta({title:"SetEnvVariableToolInput"}),i6=f.object({path:f.string().meta({description:'Path where the file should be written. Supports absolute paths ("/app/.npmrc"), tilde ("~/.npmrc") and paths relative to the project working directory ("./.npmrc"). Use this tool ONLY for configuration-only files that should NOT be committed to the repo (e.g. `.npmrc` with auth tokens, machine-local env files) \u2014 never to patch source code or fix software issues.'}),content:f.string().optional().meta({description:"Plain text content to write to the file. Mutually exclusive with `base64`."}),base64:f.string().optional().meta({description:"Base64-encoded binary content to write to the file. Mutually exclusive with `content`. Use only when the file is genuinely binary."})}).meta({title:"SetFileOverrideToolInput"}),A6=f.object({channel_id:f.string().meta({description:"The channel identifier in URI format (see supported formats in the tool description)"}),markdown:f.string().meta({description:"The message content to send in markdown format"}),status:f.enum(["starting","question","will-follow-up","done:success","done:error"]),loading_message:f.string().optional().meta({description:"Loading message displayed in the Slack thread while the agent is working (only used when status is 'starting')."}),voice_response:f.boolean().optional().meta({description:"When true, send the response as a voice message using text-to-speech. Only supported for Telegram channels. Only set to true when the user's original message was a voice/audio message (look for '[Voice message transcription]' or '[Audio' markers), the channel is Telegram, and the response is short and conversational with no URLs, code, lists, or other content that doesn't translate to audio. Default to false (text) for all text-originated messages."}),from_user_id:f.string().optional().meta({description:"Builder.io user ID this message is from / should be attributed to. Only allowed when channel_id is 'builder/branch/{project_id}/{branch_name}'. When set, the message is delivered to the target branch as coming from this user (role 'user') instead of from the agent. Use whenever the message represents user feedback/intent that should be assigned to someone \u2014 even if it was composed, summarized, or merged from multiple people."})}).meta({title:"SendMessageToolInput"}),o6=f.object({project_id:f.string().meta({description:"The project ID to create the branch in"}),message:f.string().meta({description:"The initial message or task description for the branch. Do NOT include instructions to open or create a PR unless the user's original request explicitly asked for a PR."}),builder_user_id:f.string().optional().meta({description:"Builder.io user ID to act as. When provided, the branch will be created as if this user created it."}),hidden:f.boolean().optional().meta({description:"Whether to hide the branch from the user. Useful for exploratory branches not intended to ever get merged back to main. Default: false."}),origin_channel_id:f.string().optional().meta({description:"The channel identifier that originally triggered this work. Used for tracking purposes and coming back to the original slack thread with updates."}),session_mode:f.enum(["normal","planning","deep-research"]).optional(),model:f.enum(["auto","opus","sonnet","haiku"]).optional(),attachment_urls:f.array(f.string()).optional(),git_base_branch:f.string().optional()}).meta({title:"SpawnBranchToolInput"}),s6=f.object({repo_url:f.string().meta({description:"Repository URL (regular Git URL or template:// URL)"}),name:f.string().optional().meta({description:"Human-readable name for the project. If not provided, a name will be generated from the repo name."}),builder_user_id:f.string().meta({description:"Builder.io user ID to act as. The project and branch will be created as if this user created them, and their git credentials will be validated before creation."}),origin_channel_id:f.string().optional().meta({description:"The channel_id identifier that originally triggered this work. Used for routing status updates back to the user."}),initial_message:f.string().optional().meta({description:"Only valid for template:// URLs \u2014 creates a branch with this message"})}).meta({title:"CreateProjectToolInput"}),a6=f.object({}).meta({title:"GetAvailableReposToolInput"}),c6=f.object({project_id:f.string().meta({description:"The project ID containing the branch"}),branch_name:f.string().meta({description:"The name of the branch to read"})}).meta({title:"ReadBranchToolInput"}),u6=f.object({project_id:f.string().meta({description:"The project ID containing the branch"}),branch_name:f.string().meta({description:"The name of the branch to archive"}),builder_user_id:f.string().meta({description:"The Builder.io user ID of the person requesting the archive. This is used to attribute the archive action to a specific user."}),reason:f.string().optional().meta({description:"The reason for archiving this branch (max 500 chars). Examples: 'Work completed and merged', 'No longer needed', 'Superseded by branch X'."})}).meta({title:"ArchiveBranchToolInput"}),Lm=f.enum(["high","medium","low"]).meta({title:"ReviewSeverity"}),g6=f.object({file_path:f.string().meta({description:"Relative file path - MUST be a file that appears in the PR diff"}),line:f.number().meta({description:"Line number in the file (end line for multi-line). MUST be a line within the PR diff"}),start_line:f.number().optional().meta({description:"For multi-line comments (optional)"}),side:f.enum(["LEFT","RIGHT"]).optional().meta({description:"Diff side. RIGHT (default) = NEW file (added/context). LEFT = OLD file (removed/context). Use LEFT only when commenting on deleted code with no semantically related new-side anchor."}),title:f.string().meta({description:"Brief plain-text issue title. MUST NOT start with severity emojis"}),body:f.string().meta({description:"Review comment (1-2 sentences)"}),severity:Lm.meta({description:"Issue severity: high (blocking), medium (should fix), or low (minor observation)"}),debugInfo:f.string().optional(),gif_id:f.string().optional().meta({description:"Per-comment GIF (optional)"})}).meta({title:"PRReviewComment"}),l6=f.enum(["looks_good","has_findings","blocking"]).meta({title:"ReviewVerdict"}),p6=f.object({summary:f.string().meta({description:"Your detailed analysis of the changes (displayed in a collapsible 'Review Details' section)"}),comments:f.array(g6).optional(),risk_level:Lm.optional(),verdict:l6.optional()}).meta({title:"SubmitPRReviewToolInput"}),d6=f.object({type:f.string().min(1).meta({description:"Comment category that drives how the UI renders it, e.g. 'code-review'"}),content:f.string().min(1).meta({description:"The comment body (plain text or markdown)"}),metadata:f.looseObject({filePath:f.string().min(1).optional().meta({description:"Project-relative file path the comment refers to. Required for 'code-review'."}),startLine:f.number().int().positive().optional().meta({description:"1-indexed start line the comment refers to. Required for 'code-review'. Use the [L:N] markers from the annotated diff."}),endLine:f.number().int().positive().optional().meta({description:"1-indexed end line; defaults to startLine when omitted."}),severity:f.enum(["high","medium","low"]).optional().meta({description:"Finding severity for 'code-review'."})}).optional().meta({description:"Type-specific fields. For 'code-review': filePath and startLine are required; endLine and severity are optional. originalSnippet is populated automatically."})}).meta({title:"AddCommentToolInput"}),C6=f.object({thread_node_ids:f.array(f.string()).meta({description:"GraphQL thread node_ids (PRRT_...) from previous review response"})}).meta({title:"ResolveQACommentsToolInput"}),I6=f.object({title:f.string().meta({description:"Brief summary of the issue (e.g., 'Button click has no effect')"}),description:f.string().meta({description:"Detailed description of what went wrong, what was expected, and what actually happened"}),debugInfo:f.string().optional().meta({description:"Optional console errors, stack traces, or other diagnostic information"})}).meta({title:"ReportUIIssueToolInput"}),f6=f.object({file_path:f.string().meta({description:"File path where the issue occurs (e.g., 'packages/api/src/auth.ts')"}),line:f.number().meta({description:"End line number of the issue range (or single line if no start_line)"}),start_line:f.number().optional().meta({description:"Optional start line for multi-line issues. When provided, the comment spans from start_line to line"}),title:f.string().meta({description:"Short, descriptive title (one line, no markdown)"}),severity:Lm.meta({description:"Issue severity: high for critical bugs, medium for should-fix, low for minor observations"}),body:f.string().meta({description:"Detailed explanation in markdown format. Should include: What the issue is, Why it's problematic, Impact, How to fix it, Evidence"})}).meta({title:"ReportIssueToolInput"}),m6=f.object({issue:f.string().meta({description:"What's blocking execution"}),steps_attempted:f.string().meta({description:"What was tried before escalating"}),current_url:f.string().meta({description:"Current browser URL"}),test_case_id:f.string().meta({description:"Which test case is blocked"})}).meta({title:"EscalateToPlanner"}),h6=f.object({}).meta({title:"GetLastBrowserTestToolInput"}),E6=f.object({file_path:f.string().optional().meta({description:"Optional relative or absolute path to filter diagnostics to a single file. Omit to retrieve diagnostics for the entire workspace."})}).meta({title:"IDEDiagnosticsToolInput"}),B6=f.object({url:f.string().meta({description:"The prototype URL (e.g., https://builder.io/app/projects/<projectId>/<branchName>)"}),project_id:f.string().optional().meta({description:"The project ID (optional, parsed from URL if not provided)"}),branch_name:f.string().optional().meta({description:"The branch name (optional, parsed from URL if not provided)"})}).meta({title:"PullPrototypeToolInput"}),Q6=f.object({project_id:f.string().meta({description:"The Builder.io project ID containing the branch"}),branch_name:f.string().meta({description:"The Fusion branch name to push and open a PR for"}),builder_user_id:f.string().optional().meta({description:"Builder.io user ID to attribute the PR to. When provided, the PR body will credit this user and the user must be a member of the organization. Highly recommended when the PR is being opened on behalf of a specific user."}),draft:f.boolean().optional().meta({description:`Whether to create the PR as a draft. When omitted, defaults to the branch's configured commitMode: true for "draft-prs" branches, false for "prs" branches.`})}).meta({title:"EnsurePRToolInput"}),y6=f.object({purpose:f.string().optional().meta({description:"Brief non-technical note about what data will be stored (e.g. 'contact form submissions'). Used in the user-facing summary."})}).meta({title:"EnableDatabaseToolInput"}),D6=f.object({name:f.string().meta({description:'Human-readable name of the service to connect, e.g. "Jira", "Linear", "Sentry"'}),url:f.string().optional().meta({description:"Remote MCP endpoint URL (e.g. https://mcp.linear.app/mcp). When omitted, the tool discovers known URLs for the named service instead."})}).meta({title:"ConnectMCPToolInput"}),w6=f.object({Read:z$,Write:u5,Edit:g5,ReadRule:t5,Skill:e5,GetStyleInspiration:r5,GetScreenshot:F5,NavigatePreview:R5,MultiEdit:l5,FindMedia:p5,Media:d5,AddMemory:C5,SearchMemories:I5,ScoreMemories:f5,Bash:s5,PowerShell:a5,WebSearch:c5,AskUserQuestion:E5,Agent:B5,Grep:X$,Glob:Z$,DevServerControl:n5,DevServerLogs:i5,DevServerRestart:o5,Revert:Q5,TodoRead:y5,TodoWrite:w5,TaskCreate:S5,TaskUpdate:v5,TaskList:b5,BuilderEdit:x5,WebFetch:k5,ExplorationMetadata:M5,EnterPlanMode:N5,ExitPlanMode:T5,ReadMcpResource:P5,RecordFrame:_5,SubmitPRReview:p6,AddComment:d6,ProposeConfig:K5,UpdateSetupValue:Y5,Exit:j5,ResolveQAComments:C6,GetLastBrowserTest:h6,ReportUIIssue:I6,ReportIssue:f6,ReportTestOutcome:H5,VerifySetupCommand:Z5,VerifyDevCommand:X5,VerifyDevServer:e6,VerifyValidateCommand:t6,ProposeEnvVariable:r6,SetEnvVariable:n6,SetFileOverride:i6,SendMessage:A6,SpawnBranch:o6,CreateProject:s6,GetAvailableRepos:a6,ReadBranch:c6,ArchiveBranch:u6,RunningAgents:D5,IDEDiagnostics:E6,EscalateToPlanner:m6,PullPrototype:B6,ConnectMCP:D6,EnsurePR:Q6,EnableDatabase:y6,GenerateDesignSystemAgentMd:A5}),S6=w6.keyof().meta({title:"CodeGenTools"}),wF=f.enum(["planning","normal","auto-planning","deep-research"]).meta({title:"SessionMode"}),v6=f.enum(["quality","quality-v4","quality-v4-agent"]).meta({title:"CodeGenMode"}),b6=["fusion","editor-ai","repo-indexing","cli","create-app-firebase","create-app-lovable","builder-code-panel","setup-project","code-review-orchestrator","project-configuration","org-agent","org-worker","browser-testing","projects-scheduler-memory-extraction","builder-code","unknown","dsi-mcp","design-system-indexer","builder-publish-integration"],EF=f.enum(b6).meta({title:"BaseCodeGenPosition"}),x6=f.union([EF,f.templateLiteral([EF,"-agent"])]).meta({title:"CodeGenPosition"}),F6=f.object({designSystems:f.array(f.string())}).meta({title:"RepoIndexingConfig"}),R6=f.object({name:f.string(),description:f.string().optional(),inputSchema:f.any().optional(),serverName:f.string(),deferLoading:f.boolean().optional()}).meta({title:"LocalMCPTools"}),SF=f.union([f.templateLiteral(["repair-",f.string()]),f.literal("user-normal"),f.literal("user-figma"),f.literal("user-pdf"),f.literal("user-image"),f.literal("setup-agent"),f.templateLiteral(["background-",f.string()]),f.templateLiteral(["indexing-",f.string()])]).meta({title:"CodeGenCategory"}),k6=f.enum(["editCode","modifyMcpServers","modifyProjectSettings","createBranches","sendPullRequests","view"]).meta({title:"UserSourcePermission"}),np={role:f.enum(["user","agent"]),principals:f.array(f.string()).optional().meta({description:"teams/roles like ['developer', 'admin']"}),jobs:f.array(f.string()).optional().meta({description:"job titles like ['designer', 'developer'] - used for role-aware communication instead of principals when available"}),permissions:f.array(k6).optional(),channelId:f.string().optional()},ake=f.object(np).meta({title:"UserSourceBase"}),M6=f.object({...np,source:f.enum(["slack","telegram","whatsapp","teams","jira","linear","github","gitlab","azure","bitbucket"]),userId:f.string().optional().meta({description:"User ID from the external platform (Slack user ID, GitHub user id, etc.)"}),userName:f.string().optional(),userEmail:f.string().optional(),photoURL:f.string().optional(),builderUserId:f.string().optional().meta({description:"Resolved Builder user ID for attribution/credits"}),link:f.string().optional().meta({description:"Optional link (e.g. comment/PR URL) for git provider sources"})}).meta({title:"UserSourceOther"}),N6=f.object({...np,source:f.literal("builder.io"),userId:f.string().optional(),userName:f.string().optional(),userEmail:f.string().optional(),photoURL:f.string().optional()}).meta({title:"UserSourceBuilder"}),T6=f.object({...np,source:f.literal("agent"),userId:f.string().optional(),userName:f.string().optional(),userEmail:f.string().optional()}).meta({title:"UserSourceAgent"}),vF=f.discriminatedUnion("source",[M6,N6,T6]).meta({title:"UserSource"}),P6=f.enum(["read","write","list"]).meta({title:"Permission"}),U6=f.object({action:f.enum(["allow","deny"]).meta({description:"whether this rule allows or denies access"}),resource:f.string().meta({description:"what \u2014 supports glob patterns like /files/*.txt"}),permissions:f.array(P6).meta({description:"actions this rule applies to"}),description:f.string().optional().meta({description:"custom message, in deny case, this is the error message. This will override denyDescription on AclPolicy if defined."}),principals:f.array(f.string()).optional().meta({description:"array of teams/roles this rule applies to (e.g., ['developer', 'admin'])"})}).meta({title:"AclEntry"}),L6=f.object({secrets:f.array(f.string()).optional(),entries:f.array(U6).optional(),denyDescription:f.string().optional().meta({description:"Default message to use when a resource is denied access"})}).meta({title:"AclPolicy"}),bF=f.object({text:f.string(),tag:f.string().optional(),ephemeral:f.boolean().optional()}).meta({title:"SystemReminderObj"}),G6=f.union([f.string(),bF]).meta({title:"SystemReminder"}),cke=f.looseObject({position:x6,eventName:f.string().optional(),sessionId:f.string(),codeGenMode:v6.optional(),sessionMode:wF.optional(),url:f.string().optional(),diffActions:f.boolean().optional(),planningPrompt:f.boolean().optional(),customInstructions:f.array(q$).optional(),customAgents:f.array(BF).optional(),systemPromptOverride:f.union([f.string(),f.array(f.string())]).optional(),userPrompt:f.string().optional(),systemReminders:f.array(G6).optional(),ephemeralUserPrompt:f.string().optional(),uiContextPrompt:f.string().optional(),displayUserPrompt:f.string().optional(),files:f.array(j$).optional(),rerankFiles:f.number().optional(),toolResults:f.array(IF).optional(),attachments:f.array(Nm).optional(),beforeCommit:Y$.optional(),workingDirectory:f.string().optional(),includeRelevantMemories:f.boolean().optional(),encryptKey:f.string().optional(),modelOverride:f.string().optional(),errorIfHadCompaction:f.boolean().optional(),softContextWindow:f.number().optional(),promptVersion:f.enum(["v1","v2","v3"]).optional(),reasoning:QF.optional(),redactUserMessages:f.boolean().optional(),redactLLMMessages:f.boolean().optional(),environmentVariables:f.array(Os).optional(),skipCommandSecurity:f.boolean().optional(),builderContent:f.custom().optional(),framework:$$.optional(),styleLibrary:W$.optional(),typescript:f.boolean().optional(),userContext:mF.optional(),aclPolicy:L6.optional(),repoIndexingConfig:F6.optional(),recommendedRoot:f.string().optional(),enabledTools:f.array(S6).optional(),enabledMCPs:f.array(f.string()).optional(),skippedMCPs:f.array(f.string()).optional().meta({description:"Per-message denylist of MCP server ids to skip. Skipped servers are not mounted or connected for this message and will not trigger an `mcp-auth-required` event. Tokens and org-level enabled state are untouched; this is purely message-scoped."}),skipFileDiff:f.boolean().optional(),interruptActiveTask:f.boolean().optional().meta({description:"When true, the agent should interrupt its current task to handle this message immediately, rather than finishing the current task first."}),localMCPTools:f.array(R6).optional().meta({description:"Local MCP tool definitions from stdio servers (CLI-side only). These tools will be executed on the client side and passed through from the server."}),isLocal:f.boolean().optional().meta({description:"Indicates whether the codegen is running in local mode (local filesystem) vs cloud/container mode. Used to determine git auto-commit behavior."}),maxAgentLoops:f.number().optional(),maxAgentTiming:f.number().optional(),maxTokens:f.number().optional().meta({description:"Maximum output tokens allowed in the LLM response. This will set the maximum token output for the LLM."}),maxPages:f.number().optional(),autoContinue:f.number().optional(),isManualContinue:f.boolean().optional(),llmSuggestions:f.boolean().optional(),conclusionText:f.boolean().optional(),mcpServers:f.boolean().optional(),pingEvents:f.boolean().optional(),forceCompact:f.boolean().optional(),hadPagination:f.boolean().optional(),category:SF.optional(),metadata:f.record(f.string(),f.any()).optional(),searchResponse:f.any().nullish(),prettierConfig:f.custom().optional(),role:f.enum(["user","agent"]).optional(),user:vF.optional(),projectId:f.string().optional(),branchName:f.string().optional(),repoHash:f.string().optional(),repoBranch:f.string().optional(),parentSessionId:f.string().optional().meta({description:"Immediate parent session id when this completion runs inside a sub-agent."}),mainSessionId:f.string().optional().meta({description:"Root session of the agent tree. Sub-agents inherit this from their parent so cost rolls up to the root in one hop, regardless of nesting depth."}),prevId:f.string().optional(),vcpId:f.string().optional(),repair:f.boolean().optional(),systemReminderPrompt:f.string().optional()}).meta({title:"CodeGenInputOptions"}),_6=f.enum(["force-push","merge-push","ff-push","safe-push","none"]).meta({title:"AutoPushMode"}),H6=f.object({remoteBranches:f.enum(["both","main","ai"]).optional(),fastForward:f.enum(["never","required","auto"]).optional(),canPush:f.boolean().optional(),uncommittedChanges:f.enum(["stash","commit","fail"]).optional(),requestRefresh:f.boolean().optional(),allowUnrelatedHistory:f.boolean().optional(),resetToBase:f.boolean().optional().meta({description:"When true, reset the AI branch hard to the remote feature/base branch instead of merging. This gives a clean slate that exactly matches the checked-out feature branch on remote, avoiding any merge-style conflicts or divergence. Fails clearly if the feature/base branch cannot be determined or is absent from the remote."}),updateLastCommits:f.boolean().optional().meta({description:"Whether to update the internal 'last AI commits' baseline after the sync completes. Defaults to `true` for backwards compatibility. Set to `false` when the caller wants `getChangesReport()` to keep diffing from the pre-sync baseline (e.g. so a downstream prompt can see exactly what changed since the last reset/sync)"})}).meta({title:"SyncChangesFromRemote"}),uke=f.object({idempotencyKey:f.string().optional(),user:vF.optional(),userPrompt:f.string(),uiContextPrompt:f.string().optional(),ephemeralUserPrompt:f.string().optional(),displayPrompt:f.string().optional(),files:f.array(f.string()).optional(),systemReminders:f.array(bF).optional(),includeBaseFiles:f.boolean().optional(),attachments:f.array(Nm).optional(),logsCheckpoint:f.boolean().optional(),dropAbortedPrompt:f.boolean().optional(),runValidateCommand:f.boolean().optional(),modelOverride:f.string().optional(),agentModelOverrides:V$.optional(),softContextWindow:f.number().optional(),maxCompletions:f.number().optional(),isManualContinue:f.boolean().optional(),includeRelevantMemories:f.boolean().optional(),category:SF.optional(),metadata:f.record(f.string(),f.any()).optional(),autoPush:_6.optional(),syncChanges:H6.optional(),enabledMCPs:f.array(f.string()).optional(),skippedMCPs:f.array(f.string()).optional().meta({description:"Per-message denylist of MCP server names to skip. Skipped servers are not mounted or connected for this message and will not trigger an `mcp-auth-required` event. Tokens and org-level enabled state are untouched; this is purely message-scoped."}),sessionMode:wF.optional(),queue:f.boolean().optional(),agentType:f.string().optional().meta({description:"Custom agent type to use for this message"}),enableQAReviewTool:f.boolean().optional().meta({description:"Enable AddQAReview tool for QA PR review branches"}),reasoning:QF.optional().meta({description:"Per-message reasoning effort override"}),repair:f.boolean().optional(),forceCompact:f.boolean().optional().meta({description:"Force compaction of the conversation before generating the next completion"})}).meta({title:"GenerateUserMessage"}),gke=f.object({sessionId:f.string().optional(),projectName:f.string().optional(),branchName:f.string().optional(),repoHash:f.string().optional()}).meta({title:"CodegenSettingsRequest"}),lke=f.object({diff:f.string().meta({description:"Git diff from previous commit"}),userMessages:f.array(f.string()).meta({description:"User messages sent during AI work"}),recentCommits:f.array(f.string()).meta({description:"Last 10 commits from main branch for style reference"}),longCommit:f.boolean().optional().meta({description:"Whether to generate a long commit message"}),projectId:f.string().optional().meta({description:"Project ID for fetching project-specific commit instructions"})}).meta({title:"CommitMessageRequest"}),pke=f.object({message:f.string().meta({description:"Full commit message"}),title:f.string().meta({description:"First line (50-72 chars) - the commit title"}),body:f.string().optional().meta({description:"Optional extended description"})}).meta({title:"CommitMessageResponse"}),dke=f.object({sessionId:f.string(),toolId:f.string(),approved:f.boolean(),reason:f.string().optional()}).meta({title:"ModelPermissionResponseRequest"})});var FF=x(()=>{"use strict"});var RF=x(()=>{"use strict"});import{z}from"zod";var O6,kF,K6,MF,ip,Eke,Bke,J6,Qke,Gm,Y6,j6,yke,q6,Dke,wke,V6,Ske,$6,W6,vke,bke,z6,xke,Fke,Rke,kke,Mke,Nke,Tke,Pke,NF=x(()=>{"use strict";ep();O6=["steve8708/mui-vite","steve8708/carbon-vite","steve8708/vite-react-shopify-polaris","steve8708/cloudscape-demos","BuilderIO/fusion-angular-tailwind-starter","BuilderIO/fusion-svelte-tailwind-starter","BuilderIO/fusion-vue-tailwind-starter","BuilderIO/org-agent-starter"],kF="BuilderIO/fusion-starter",K6="BuilderIO/dsi-starter",MF="BuilderIO/builder-agent-native-starter",ip=[...O6,kF,K6,MF],Eke=ip.map(t=>`https://github.com/${t}`),Bke=720*60*60*1e3,J6=z.discriminatedUnion("kind",[z.object({kind:z.literal("repo"),repoUrl:z.string().url()}),z.object({kind:z.literal("template"),templateId:z.string()})]),Qke=z.object({source:J6,name:z.string(),initialMessage:z.string().optional(),designSystems:z.array(z.string()).optional()}),Gm=z.enum(["queued","building","migrating","uploading","deploying","live","failed","canceled"]),Y6=z.enum(["unpublished","publishing","published"]),j6=z.object({buildCommand:z.string().optional(),buildOutputDir:z.string().optional(),nodeVersion:z.string().optional()}),yke=z.object({enabled:z.boolean().optional().meta({description:"Whether hosting is enabled for this project or not."}),slug:z.string().optional().meta({description:'e.g. "my-cool-app" \u2014 set once on first publish, immutable'}),netlifySiteId:z.string().optional().meta({description:"Netlify site ID for management API calls. Set once on first publish, immutable."}),netlifySiteName:z.string().optional().meta({description:"<name> in <name>.netlify.app \u2014 the upstream the HTTPRoute filter rewrites Host to. Set once on first publish, immutable."}),url:z.string().optional().meta({description:'"https://my-cool-app.builder.cloud" \u2014 derived from slug'}),buildConfig:j6.optional(),environment:z.object({build:z.array(Os).optional().meta({description:"Env vars available to the build itself"}),prod:z.array(Os).optional().meta({description:"Env vars for the production deploy served via Netlify"})}).optional(),publishStatus:Y6.optional().meta({description:"Outer publish lifecycle. Absent === unpublished. Denormalized cache of the per-slug HTTPRoute (the source of truth); flipped only after the route op succeeds. Deploy.status is the interior detail of the publishing step."}),lastDeployId:z.string().optional(),lastDeployAt:z.number().optional(),lastDeployStatus:Gm.optional(),publishedCommit:z.string().optional(),customDomain:z.string().optional(),customDomainVerified:z.boolean().optional(),autoDeploy:z.boolean().optional().meta({description:"auto-deploy on push/merge"})}),q6=z.object({id:z.string(),projectId:z.string(),ownerId:z.string(),checkoutBranch:z.string().optional().meta({description:'The git ref that was deployed (always "main" in v0/v1; the feature branch for row 2 in v2). This is the value passed as `checkoutBranch` when the deploy pod was created.'}),checkoutCommit:z.string().optional().meta({description:"Exact git commit hash deployed. When set, the deploy pod pinned to this commit instead of the branch tip."}),builtCommit:z.string().optional().meta({description:"Actual git commit hash built by the deploy pod (from git rev-parse HEAD after checkout). Set when build.uploaded fires."}),deployBranchId:z.string().optional().meta({description:'Fusion branch id of the ephemeral hidden deploy branch (`type: "deploy"`) that ran the build.'}),deployBranchName:z.string().optional().meta({description:'Fusion branch name of the ephemeral hidden deploy branch (`type: "deploy"`) that ran the build.'}),devBranchId:z.string().optional().meta({description:"Fusion dev branch's id (unset if we are deploying project default branch)"}),status:Gm,netlifyDeployId:z.string().optional(),url:z.string().optional(),migrationApplied:z.boolean().optional().meta({description:"Whether Drizzle migrations were applied during this deploy. Absent when no migration ran."}),error:z.string().optional().meta({description:"Single human-readable line on failure; raw build logs not surfaced in v0"}),createdAt:z.number(),completedAt:z.number().optional(),triggeredBy:z.string().meta({description:'user ID for manual publish, or "auto-deploy" (v1)'})}),Dke=z.object({projectId:z.string(),ownerId:z.string(),createdAt:z.number(),createdBy:z.string().meta({description:"user ID of the user who first clicked Publish on the project"})}),wke=z.object({ownerId:z.string(),holderId:z.string().meta({description:"unique per acquisition (the fencing token); == deployId for a deploy holder"}),holderKind:z.enum(["deploy","unpublish"]),deployId:z.string().optional().meta({description:'set when holderKind === "deploy"'}),acquiredAt:z.number().meta({description:"unix time (ms)"}),expiresAt:z.number().meta({description:"acquiredAt + 15min (same ceiling as the deploy lazy-timeout)"})}),V6=q6.pick({id:!0,status:!0,url:!0,createdAt:!0,completedAt:!0,error:!0,checkoutBranch:!0,checkoutCommit:!0,builtCommit:!0}).meta({title:"DeployListItem"}),Ske=z.object({files:z.record(z.string(),z.string()).meta({description:"static file path \u2192 sha1 hash"}),functions:z.record(z.string(),z.string()).meta({description:"serverless function name \u2192 sha256 hash"})}),$6=z.object({buildCommand:z.string().optional(),buildOutputDir:z.string().optional(),nodeVersion:z.string().optional(),environment:z.record(z.string(),z.string()).optional()}),W6=z.object({projectId:z.string(),deployId:z.string(),gcsManifestUploadUrl:z.string().url(),gcsArtifactUploadUrl:z.string().url(),buildConfigOverrides:$6.optional()}),vke=z.object({projectId:z.string(),slug:z.string()}),bke=z.object({slug:z.string()}),z6=z.string().regex(/^[0-9a-f]{7,40}$/i,"Must be a valid git commit hash (7\u201340 hex chars)"),xke=z.object({projectId:z.string(),checkoutBranch:z.string().optional(),checkoutCommit:z6.optional()}),Fke=z.object({deployId:z.string(),status:Gm}),Rke=z.object({projectId:z.string()}),kke=z.object({success:z.literal(!0)}),Mke=z.object({projectId:z.string(),deployId:z.string().optional()}),Nke=z.object({deploys:z.array(V6)}),Tke=z.object({sourceProjectId:z.string().min(1).meta({description:"Project to clone from."}),sourceBranchName:z.string().min(1).default("main").meta({description:"Branch to seed the clone's branch from."}),newProjectName:z.string().min(1).max(200).optional().meta({description:'Name for the new project. Defaults to "{source} (cloned)" for clones.'}),intent:z.enum(["clone","duplicate"]).meta({description:`"clone": public example/starter \u2192 caller's space (always full backup, isExample, name suffixed). "duplicate": copy one of the caller's own projects. Required.`}),userEmail:z.string().optional().meta({description:"Attributes the new project to a concrete user when the request has no user session (e.g. API-key auth). Resolved to a user id that must belong to the caller's org; without it a no-session request can't be attributed and project creation fails with 401."}),useKube:z.boolean().default(!1).meta({description:"Whether to provision on cloud-v2 (Kubernetes). Defaults to false."}),useBranchesCollection:z.boolean().default(!1).meta({description:"Whether the new project stores branches in the standalone `branches` collection rather than embedded in the project doc. Defaults to false."})}),Pke=z.object({projectId:z.string().min(1).meta({description:"Project that owns the branch being duplicated."}),sourceBranchName:z.string().min(1).meta({description:"Branch to duplicate."}),friendlyName:z.string().max(200).optional().meta({description:"Optional friendly (display) name for the new branch."})})});var TF=x(()=>{"use strict"});var PF=x(()=>{"use strict"});var UF=x(()=>{"use strict"});var LF=x(()=>{"use strict"});var GF=x(()=>{"use strict"});var _F=x(()=>{"use strict"});var HF=x(()=>{"use strict"});var OF=x(()=>{"use strict"});import{z as Ct}from"zod";var KF,Z6,JF,YF,X6,eW,Kke,Jke,Yke,jF=x(()=>{"use strict";KF=/^https:\/\/github\.com\/[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+(?:\.git)?\/?$/,Z6=2*1024*1024*1024,JF=50,YF=0,X6=Ct.object({projectName:Ct.string().trim().min(1).max(200).optional(),devToolsVersion:Ct.string().trim().min(1).max(64).optional(),selection:Ct.preprocess(t=>{if(typeof t!="string")return t;let e=t.trim();if(e)try{return JSON.parse(e)}catch{return t}},Ct.record(Ct.string(),Ct.array(Ct.string().min(1)).max(1e4))).optional(),githubRepoUrl:Ct.string().trim().regex(KF,"must be a public github.com repo URL").optional(),connectedProjectId:Ct.string().trim().min(1).max(128).optional()}),eW=Ct.object({name:Ct.string().trim().min(1).max(512),mimetype:Ct.string().trim().min(1).max(255),declaredSize:Ct.number().int().positive().max(Z6)}),Kke=Ct.object({attachments:Ct.array(eW).min(YF).max(JF)}),Jke=Ct.object({jobId:Ct.string().min(1),gcsObject:Ct.string().min(1),ownerId:Ct.string().min(1),mimetype:Ct.string().min(1),originalName:Ct.string().min(1),idx:Ct.number().int().nonnegative()}),Yke=Ct.object({...X6.shape,uploads:Ct.array(Ct.string().min(1)).min(YF).max(JF)})});var qF=x(()=>{"use strict"});var kr=x(()=>{"use strict";pF();dF();CF();Tm();fF();Pm();ep();xF();FF();RF();NF();TF();PF();UF();LF();GF();_F();HF();OF();jF();qF()});var _m=x(()=>{"use strict";kr()});var Yc=x(()=>{"use strict"});var Hm=x(()=>{"use strict"});var jc=x(()=>{"use strict"});var iW,VF=x(()=>{iW=globalThis.crypto?.webcrypto??globalThis.crypto??import("node:crypto").then(t=>t.webcrypto)});import*as B from"zod/v4";var $F,op,mr,WF,zF,QMe,AW,oW,Om,gn,sp,hr,Dn,wn,Er,ap,sW,aW,ZF,qc,XF,Km,yMe,Jm,cW,Ym,uW,Vc,Ks,eR,gW,lW,pW,dW,CW,IW,fW,mW,tR,hW,jm,EW,BW,qm,QW,$c,Wc,yW,zc,cp,DW,Vm,$m,Wm,zm,DMe,Zm,Xm,eh,wW,rR,nR,th,iR,Zc,Js,AR,SW,vW,oR,bW,sR,rh,xW,FW,aR,cR,RW,kW,MW,NW,TW,PW,UW,LW,GW,uR,_W,HW,nh,ih,Ah,OW,KW,JW,oh,YW,gR,lR,jW,qW,pR,VW,dR,up,wMe,$W,WW,CR,zW,IR,ZW,XW,ez,tz,rz,nz,iz,Az,oz,Ap,sz,az,fR,mR,hR,cz,uz,gz,lz,pz,dz,Cz,Iz,fz,mz,hz,Ez,Bz,Qz,yz,ER,Dz,wz,BR,Sz,vz,bz,xz,QR,Fz,Rz,kz,Mz,SMe,vMe,bMe,xMe,FMe,RMe,RA=x(()=>{$F="io.modelcontextprotocol/related-task",op="2.0",mr=B.custom(t=>t!==null&&(typeof t=="object"||typeof t=="function")),WF=B.union([B.string(),B.number().int()]),zF=B.string(),QMe=B.looseObject({ttl:B.union([B.number(),B.null()]).optional(),pollInterval:B.number().optional()}),AW=B.object({ttl:B.number().optional()}),oW=B.object({taskId:B.string()}),Om=B.looseObject({progressToken:WF.optional(),[$F]:oW.optional()}),gn=B.object({_meta:Om.optional()}),sp=gn.extend({task:AW.optional()}),hr=B.object({method:B.string(),params:gn.loose().optional()}),Dn=B.object({_meta:Om.optional()}),wn=B.object({method:B.string(),params:Dn.loose().optional()}),Er=B.looseObject({_meta:Om.optional()}),ap=B.union([B.string(),B.number().int()]),sW=B.object({jsonrpc:B.literal(op),id:ap,...hr.shape}).strict(),aW=B.object({jsonrpc:B.literal(op),...wn.shape}).strict(),ZF=B.object({jsonrpc:B.literal(op),id:ap,result:Er}).strict();(function(t){t[t.ConnectionClosed=-32e3]="ConnectionClosed",t[t.RequestTimeout=-32001]="RequestTimeout",t[t.ParseError=-32700]="ParseError",t[t.InvalidRequest=-32600]="InvalidRequest",t[t.MethodNotFound=-32601]="MethodNotFound",t[t.InvalidParams=-32602]="InvalidParams",t[t.InternalError=-32603]="InternalError",t[t.UrlElicitationRequired=-32042]="UrlElicitationRequired"})(qc||(qc={}));XF=B.object({jsonrpc:B.literal(op),id:ap.optional(),error:B.object({code:B.number().int(),message:B.string(),data:B.unknown().optional()})}).strict(),Km=B.union([sW,aW,ZF,XF]),yMe=B.union([ZF,XF]),Jm=Er.strict(),cW=Dn.extend({requestId:ap.optional(),reason:B.string().optional()}),Ym=wn.extend({method:B.literal("notifications/cancelled"),params:cW}),uW=B.object({src:B.string(),mimeType:B.string().optional(),sizes:B.array(B.string()).optional(),theme:B.enum(["light","dark"]).optional()}),Vc=B.object({icons:B.array(uW).optional()}),Ks=B.object({name:B.string(),title:B.string().optional()}),eR=Ks.extend({...Ks.shape,...Vc.shape,version:B.string(),websiteUrl:B.string().optional(),description:B.string().optional()}),gW=B.intersection(B.object({applyDefaults:B.boolean().optional()}),B.record(B.string(),B.unknown())),lW=B.preprocess(t=>t&&typeof t=="object"&&!Array.isArray(t)&&Object.keys(t).length===0?{form:{}}:t,B.intersection(B.object({form:gW.optional(),url:mr.optional()}),B.record(B.string(),B.unknown()).optional())),pW=B.looseObject({list:mr.optional(),cancel:mr.optional(),requests:B.looseObject({sampling:B.looseObject({createMessage:mr.optional()}).optional(),elicitation:B.looseObject({create:mr.optional()}).optional()}).optional()}),dW=B.looseObject({list:mr.optional(),cancel:mr.optional(),requests:B.looseObject({tools:B.looseObject({call:mr.optional()}).optional()}).optional()}),CW=B.object({experimental:B.record(B.string(),mr).optional(),sampling:B.object({context:mr.optional(),tools:mr.optional()}).optional(),elicitation:lW.optional(),roots:B.object({listChanged:B.boolean().optional()}).optional(),tasks:pW.optional()}),IW=gn.extend({protocolVersion:B.string(),capabilities:CW,clientInfo:eR}),fW=hr.extend({method:B.literal("initialize"),params:IW}),mW=B.object({experimental:B.record(B.string(),mr).optional(),logging:mr.optional(),completions:mr.optional(),prompts:B.object({listChanged:B.boolean().optional()}).optional(),resources:B.object({subscribe:B.boolean().optional(),listChanged:B.boolean().optional()}).optional(),tools:B.object({listChanged:B.boolean().optional()}).optional(),tasks:dW.optional()}),tR=Er.extend({protocolVersion:B.string(),capabilities:mW,serverInfo:eR,instructions:B.string().optional()}),hW=wn.extend({method:B.literal("notifications/initialized"),params:Dn.optional()}),jm=hr.extend({method:B.literal("ping"),params:gn.optional()}),EW=B.object({progress:B.number(),total:B.optional(B.number()),message:B.optional(B.string())}),BW=B.object({...Dn.shape,...EW.shape,progressToken:WF}),qm=wn.extend({method:B.literal("notifications/progress"),params:BW}),QW=gn.extend({cursor:zF.optional()}),$c=hr.extend({params:QW.optional()}),Wc=Er.extend({nextCursor:zF.optional()}),yW=B.enum(["working","input_required","completed","failed","cancelled"]),zc=B.object({taskId:B.string(),status:yW,ttl:B.union([B.number(),B.null()]),createdAt:B.string(),lastUpdatedAt:B.string(),pollInterval:B.optional(B.number()),statusMessage:B.optional(B.string())}),cp=Er.extend({task:zc}),DW=Dn.merge(zc),Vm=wn.extend({method:B.literal("notifications/tasks/status"),params:DW}),$m=hr.extend({method:B.literal("tasks/get"),params:gn.extend({taskId:B.string()})}),Wm=Er.merge(zc),zm=hr.extend({method:B.literal("tasks/result"),params:gn.extend({taskId:B.string()})}),DMe=Er.loose(),Zm=$c.extend({method:B.literal("tasks/list")}),Xm=Wc.extend({tasks:B.array(zc)}),eh=hr.extend({method:B.literal("tasks/cancel"),params:gn.extend({taskId:B.string()})}),wW=Er.merge(zc),rR=B.object({uri:B.string(),mimeType:B.optional(B.string()),_meta:B.record(B.string(),B.unknown()).optional()}),nR=rR.extend({text:B.string()}),th=B.string().refine(t=>{try{return atob(t),!0}catch{return!1}},{message:"Invalid Base64 string"}),iR=rR.extend({blob:th}),Zc=B.enum(["user","assistant"]),Js=B.object({audience:B.array(Zc).optional(),priority:B.number().min(0).max(1).optional(),lastModified:B.iso.datetime({offset:!0}).optional()}),AR=B.object({...Ks.shape,...Vc.shape,uri:B.string(),description:B.optional(B.string()),mimeType:B.optional(B.string()),annotations:Js.optional(),_meta:B.optional(B.looseObject({}))}),SW=B.object({...Ks.shape,...Vc.shape,uriTemplate:B.string(),description:B.optional(B.string()),mimeType:B.optional(B.string()),annotations:Js.optional(),_meta:B.optional(B.looseObject({}))}),vW=$c.extend({method:B.literal("resources/list")}),oR=Wc.extend({resources:B.array(AR)}),bW=$c.extend({method:B.literal("resources/templates/list")}),sR=Wc.extend({resourceTemplates:B.array(SW)}),rh=gn.extend({uri:B.string()}),xW=rh,FW=hr.extend({method:B.literal("resources/read"),params:xW}),aR=Er.extend({contents:B.array(B.union([nR,iR]))}),cR=wn.extend({method:B.literal("notifications/resources/list_changed"),params:Dn.optional()}),RW=rh,kW=hr.extend({method:B.literal("resources/subscribe"),params:RW}),MW=rh,NW=hr.extend({method:B.literal("resources/unsubscribe"),params:MW}),TW=Dn.extend({uri:B.string()}),PW=wn.extend({method:B.literal("notifications/resources/updated"),params:TW}),UW=B.object({name:B.string(),description:B.optional(B.string()),required:B.optional(B.boolean())}),LW=B.object({...Ks.shape,...Vc.shape,description:B.optional(B.string()),arguments:B.optional(B.array(UW)),_meta:B.optional(B.looseObject({}))}),GW=$c.extend({method:B.literal("prompts/list")}),uR=Wc.extend({prompts:B.array(LW)}),_W=gn.extend({name:B.string(),arguments:B.record(B.string(),B.string()).optional()}),HW=hr.extend({method:B.literal("prompts/get"),params:_W}),nh=B.object({type:B.literal("text"),text:B.string(),annotations:Js.optional(),_meta:B.record(B.string(),B.unknown()).optional()}),ih=B.object({type:B.literal("image"),data:th,mimeType:B.string(),annotations:Js.optional(),_meta:B.record(B.string(),B.unknown()).optional()}),Ah=B.object({type:B.literal("audio"),data:th,mimeType:B.string(),annotations:Js.optional(),_meta:B.record(B.string(),B.unknown()).optional()}),OW=B.object({type:B.literal("tool_use"),name:B.string(),id:B.string(),input:B.record(B.string(),B.unknown()),_meta:B.record(B.string(),B.unknown()).optional()}),KW=B.object({type:B.literal("resource"),resource:B.union([nR,iR]),annotations:Js.optional(),_meta:B.record(B.string(),B.unknown()).optional()}),JW=AR.extend({type:B.literal("resource_link")}),oh=B.union([nh,ih,Ah,JW,KW]),YW=B.object({role:Zc,content:oh}),gR=Er.extend({description:B.string().optional(),messages:B.array(YW)}),lR=wn.extend({method:B.literal("notifications/prompts/list_changed"),params:Dn.optional()}),jW=B.object({title:B.string().optional(),readOnlyHint:B.boolean().optional(),destructiveHint:B.boolean().optional(),idempotentHint:B.boolean().optional(),openWorldHint:B.boolean().optional()}),qW=B.object({taskSupport:B.enum(["required","optional","forbidden"]).optional()}),pR=B.object({...Ks.shape,...Vc.shape,description:B.string().optional(),inputSchema:B.object({type:B.literal("object"),properties:B.record(B.string(),mr).optional(),required:B.array(B.string()).optional()}).catchall(B.unknown()),outputSchema:B.object({type:B.literal("object"),properties:B.record(B.string(),mr).optional(),required:B.array(B.string()).optional()}).catchall(B.unknown()).optional(),annotations:jW.optional(),execution:qW.optional(),_meta:B.record(B.string(),B.unknown()).optional()}),VW=$c.extend({method:B.literal("tools/list")}),dR=Wc.extend({tools:B.array(pR)}),up=Er.extend({content:B.array(oh).default([]),structuredContent:B.record(B.string(),B.unknown()).optional(),isError:B.boolean().optional()}),wMe=up.or(Er.extend({toolResult:B.unknown()})),$W=sp.extend({name:B.string(),arguments:B.record(B.string(),B.unknown()).optional()}),WW=hr.extend({method:B.literal("tools/call"),params:$W}),CR=wn.extend({method:B.literal("notifications/tools/list_changed"),params:Dn.optional()}),zW=B.object({autoRefresh:B.boolean().default(!0),debounceMs:B.number().int().nonnegative().default(300)}),IR=B.enum(["debug","info","notice","warning","error","critical","alert","emergency"]),ZW=gn.extend({level:IR}),XW=hr.extend({method:B.literal("logging/setLevel"),params:ZW}),ez=Dn.extend({level:IR,logger:B.string().optional(),data:B.unknown()}),tz=wn.extend({method:B.literal("notifications/message"),params:ez}),rz=B.object({name:B.string().optional()}),nz=B.object({hints:B.array(rz).optional(),costPriority:B.number().min(0).max(1).optional(),speedPriority:B.number().min(0).max(1).optional(),intelligencePriority:B.number().min(0).max(1).optional()}),iz=B.object({mode:B.enum(["auto","required","none"]).optional()}),Az=B.object({type:B.literal("tool_result"),toolUseId:B.string().describe("The unique identifier for the corresponding tool call."),content:B.array(oh).default([]),structuredContent:B.object({}).loose().optional(),isError:B.boolean().optional(),_meta:B.record(B.string(),B.unknown()).optional()}),oz=B.discriminatedUnion("type",[nh,ih,Ah]),Ap=B.discriminatedUnion("type",[nh,ih,Ah,OW,Az]),sz=B.object({role:Zc,content:B.union([Ap,B.array(Ap)]),_meta:B.record(B.string(),B.unknown()).optional()}),az=sp.extend({messages:B.array(sz),modelPreferences:nz.optional(),systemPrompt:B.string().optional(),includeContext:B.enum(["none","thisServer","allServers"]).optional(),temperature:B.number().optional(),maxTokens:B.number().int(),stopSequences:B.array(B.string()).optional(),metadata:mr.optional(),tools:B.array(pR).optional(),toolChoice:iz.optional()}),fR=hr.extend({method:B.literal("sampling/createMessage"),params:az}),mR=Er.extend({model:B.string(),stopReason:B.optional(B.enum(["endTurn","stopSequence","maxTokens"]).or(B.string())),role:Zc,content:oz}),hR=Er.extend({model:B.string(),stopReason:B.optional(B.enum(["endTurn","stopSequence","maxTokens","toolUse"]).or(B.string())),role:Zc,content:B.union([Ap,B.array(Ap)])}),cz=B.object({type:B.literal("boolean"),title:B.string().optional(),description:B.string().optional(),default:B.boolean().optional()}),uz=B.object({type:B.literal("string"),title:B.string().optional(),description:B.string().optional(),minLength:B.number().optional(),maxLength:B.number().optional(),format:B.enum(["email","uri","date","date-time"]).optional(),default:B.string().optional()}),gz=B.object({type:B.enum(["number","integer"]),title:B.string().optional(),description:B.string().optional(),minimum:B.number().optional(),maximum:B.number().optional(),default:B.number().optional()}),lz=B.object({type:B.literal("string"),title:B.string().optional(),description:B.string().optional(),enum:B.array(B.string()),default:B.string().optional()}),pz=B.object({type:B.literal("string"),title:B.string().optional(),description:B.string().optional(),oneOf:B.array(B.object({const:B.string(),title:B.string()})),default:B.string().optional()}),dz=B.object({type:B.literal("string"),title:B.string().optional(),description:B.string().optional(),enum:B.array(B.string()),enumNames:B.array(B.string()).optional(),default:B.string().optional()}),Cz=B.union([lz,pz]),Iz=B.object({type:B.literal("array"),title:B.string().optional(),description:B.string().optional(),minItems:B.number().optional(),maxItems:B.number().optional(),items:B.object({type:B.literal("string"),enum:B.array(B.string())}),default:B.array(B.string()).optional()}),fz=B.object({type:B.literal("array"),title:B.string().optional(),description:B.string().optional(),minItems:B.number().optional(),maxItems:B.number().optional(),items:B.object({anyOf:B.array(B.object({const:B.string(),title:B.string()}))}),default:B.array(B.string()).optional()}),mz=B.union([Iz,fz]),hz=B.union([dz,Cz,mz]),Ez=B.union([hz,cz,uz,gz]),Bz=sp.extend({mode:B.literal("form").optional(),message:B.string(),requestedSchema:B.object({type:B.literal("object"),properties:B.record(B.string(),Ez),required:B.array(B.string()).optional()})}),Qz=sp.extend({mode:B.literal("url"),message:B.string(),elicitationId:B.string(),url:B.string().url()}),yz=B.union([Bz,Qz]),ER=hr.extend({method:B.literal("elicitation/create"),params:yz}),Dz=Dn.extend({elicitationId:B.string()}),wz=wn.extend({method:B.literal("notifications/elicitation/complete"),params:Dz}),BR=Er.extend({action:B.enum(["accept","decline","cancel"]),content:B.preprocess(t=>t===null?void 0:t,B.record(B.string(),B.union([B.string(),B.number(),B.boolean(),B.array(B.string())])).optional())}),Sz=B.object({type:B.literal("ref/resource"),uri:B.string()}),vz=B.object({type:B.literal("ref/prompt"),name:B.string()}),bz=gn.extend({ref:B.union([vz,Sz]),argument:B.object({name:B.string(),value:B.string()}),context:B.object({arguments:B.record(B.string(),B.string()).optional()}).optional()}),xz=hr.extend({method:B.literal("completion/complete"),params:bz}),QR=Er.extend({completion:B.looseObject({values:B.array(B.string()).max(100),total:B.optional(B.number().int()),hasMore:B.optional(B.boolean())})}),Fz=B.object({uri:B.string().startsWith("file://"),name:B.string().optional(),_meta:B.record(B.string(),B.unknown()).optional()}),Rz=hr.extend({method:B.literal("roots/list"),params:gn.optional()}),kz=Er.extend({roots:B.array(Fz)}),Mz=wn.extend({method:B.literal("notifications/roots/list_changed"),params:Dn.optional()}),SMe=B.union([jm,fW,xz,XW,HW,GW,vW,bW,FW,kW,NW,WW,VW,$m,zm,Zm,eh]),vMe=B.union([Ym,qm,hW,Mz,Vm]),bMe=B.union([Jm,mR,hR,BR,kz,Wm,Xm,cp]),xMe=B.union([jm,fR,ER,Rz,$m,zm,Zm,eh]),FMe=B.union([Ym,qm,tz,PW,cR,CR,lR,Vm,wz]),RMe=B.union([Jm,tR,QR,gR,uR,oR,sR,aR,up,dR,Wm,Xm,cp])});import*as H from"zod/v4";var Br,Nz,DR,Tz,Pz,Uz,Lz,yR,Gz,_z,Hz,MMe,NMe,sh=x(()=>{Br=H.url().superRefine((t,e)=>{if(!URL.canParse(t))return e.addIssue({code:H.ZodIssueCode.custom,message:"URL must be parseable",fatal:!0}),H.NEVER}).refine(t=>{let e=new URL(t);return e.protocol!=="javascript:"&&e.protocol!=="data:"&&e.protocol!=="vbscript:"},{message:"URL cannot use javascript:, data:, or vbscript: scheme"}),Nz=H.looseObject({resource:H.string().url(),authorization_servers:H.array(Br).optional(),jwks_uri:H.string().url().optional(),scopes_supported:H.array(H.string()).optional(),bearer_methods_supported:H.array(H.string()).optional(),resource_signing_alg_values_supported:H.array(H.string()).optional(),resource_name:H.string().optional(),resource_documentation:H.string().optional(),resource_policy_uri:H.string().url().optional(),resource_tos_uri:H.string().url().optional(),tls_client_certificate_bound_access_tokens:H.boolean().optional(),authorization_details_types_supported:H.array(H.string()).optional(),dpop_signing_alg_values_supported:H.array(H.string()).optional(),dpop_bound_access_tokens_required:H.boolean().optional()}),DR=H.looseObject({issuer:H.string(),authorization_endpoint:Br,token_endpoint:Br,registration_endpoint:Br.optional(),scopes_supported:H.array(H.string()).optional(),response_types_supported:H.array(H.string()),response_modes_supported:H.array(H.string()).optional(),grant_types_supported:H.array(H.string()).optional(),token_endpoint_auth_methods_supported:H.array(H.string()).optional(),token_endpoint_auth_signing_alg_values_supported:H.array(H.string()).optional(),service_documentation:Br.optional(),revocation_endpoint:Br.optional(),revocation_endpoint_auth_methods_supported:H.array(H.string()).optional(),revocation_endpoint_auth_signing_alg_values_supported:H.array(H.string()).optional(),introspection_endpoint:H.string().optional(),introspection_endpoint_auth_methods_supported:H.array(H.string()).optional(),introspection_endpoint_auth_signing_alg_values_supported:H.array(H.string()).optional(),code_challenge_methods_supported:H.array(H.string()).optional(),client_id_metadata_document_supported:H.boolean().optional()}),Tz=H.looseObject({issuer:H.string(),authorization_endpoint:Br,token_endpoint:Br,userinfo_endpoint:Br.optional(),jwks_uri:Br,registration_endpoint:Br.optional(),scopes_supported:H.array(H.string()).optional(),response_types_supported:H.array(H.string()),response_modes_supported:H.array(H.string()).optional(),grant_types_supported:H.array(H.string()).optional(),acr_values_supported:H.array(H.string()).optional(),subject_types_supported:H.array(H.string()),id_token_signing_alg_values_supported:H.array(H.string()),id_token_encryption_alg_values_supported:H.array(H.string()).optional(),id_token_encryption_enc_values_supported:H.array(H.string()).optional(),userinfo_signing_alg_values_supported:H.array(H.string()).optional(),userinfo_encryption_alg_values_supported:H.array(H.string()).optional(),userinfo_encryption_enc_values_supported:H.array(H.string()).optional(),request_object_signing_alg_values_supported:H.array(H.string()).optional(),request_object_encryption_alg_values_supported:H.array(H.string()).optional(),request_object_encryption_enc_values_supported:H.array(H.string()).optional(),token_endpoint_auth_methods_supported:H.array(H.string()).optional(),token_endpoint_auth_signing_alg_values_supported:H.array(H.string()).optional(),display_values_supported:H.array(H.string()).optional(),claim_types_supported:H.array(H.string()).optional(),claims_supported:H.array(H.string()).optional(),service_documentation:H.string().optional(),claims_locales_supported:H.array(H.string()).optional(),ui_locales_supported:H.array(H.string()).optional(),claims_parameter_supported:H.boolean().optional(),request_parameter_supported:H.boolean().optional(),request_uri_parameter_supported:H.boolean().optional(),require_request_uri_registration:H.boolean().optional(),op_policy_uri:Br.optional(),op_tos_uri:Br.optional(),client_id_metadata_document_supported:H.boolean().optional()}),Pz=H.object({...Tz.shape,...DR.pick({code_challenge_methods_supported:!0}).shape}),Uz=H.object({access_token:H.string(),id_token:H.string().optional(),token_type:H.string(),expires_in:H.coerce.number().optional(),scope:H.string().optional(),refresh_token:H.string().optional()}).strip(),Lz=H.object({error:H.string(),error_description:H.string().optional(),error_uri:H.string().optional()}),yR=Br.optional().or(H.literal("").transform(()=>{})),Gz=H.object({redirect_uris:H.array(Br),token_endpoint_auth_method:H.string().optional(),grant_types:H.array(H.string()).optional(),response_types:H.array(H.string()).optional(),client_name:H.string().optional(),client_uri:Br.optional(),logo_uri:yR,scope:H.string().optional(),contacts:H.array(H.string()).optional(),tos_uri:yR,policy_uri:H.string().optional(),jwks_uri:Br.optional(),jwks:H.any().optional(),software_id:H.string().optional(),software_version:H.string().optional(),software_statement:H.string().optional()}).strip(),_z=H.object({client_id:H.string(),client_secret:H.string().optional(),client_id_issued_at:H.number().optional(),client_secret_expires_at:H.number().optional()}).strip(),Hz=Gz.merge(_z),MMe=H.object({error:H.string(),error_description:H.string().optional()}).strip(),NMe=H.object({token:H.string(),token_type_hint:H.string().optional()}).strip()});var wR=x(()=>{});var Jt,Xc,So,vo,bo,eu,tu,Ys,js,ru,nu,iu,qs,Au,ou,Vs,su,au,Oz,ah=x(()=>{Jt=class extends Error{constructor(e,r){super(e),this.errorUri=r,this.name=this.constructor.name}toResponseObject(){let e={error:this.errorCode,error_description:this.message};return this.errorUri&&(e.error_uri=this.errorUri),e}get errorCode(){return this.constructor.errorCode}},Xc=class extends Jt{};Xc.errorCode="invalid_request";So=class extends Jt{};So.errorCode="invalid_client";vo=class extends Jt{};vo.errorCode="invalid_grant";bo=class extends Jt{};bo.errorCode="unauthorized_client";eu=class extends Jt{};eu.errorCode="unsupported_grant_type";tu=class extends Jt{};tu.errorCode="invalid_scope";Ys=class extends Jt{};Ys.errorCode="access_denied";js=class extends Jt{};js.errorCode="server_error";ru=class extends Jt{};ru.errorCode="temporarily_unavailable";nu=class extends Jt{};nu.errorCode="unsupported_response_type";iu=class extends Jt{};iu.errorCode="unsupported_token_type";qs=class extends Jt{};qs.errorCode="invalid_token";Au=class extends Jt{};Au.errorCode="method_not_allowed";ou=class extends Jt{};ou.errorCode="too_many_requests";Vs=class extends Jt{};Vs.errorCode="invalid_client_metadata";su=class extends Jt{};su.errorCode="insufficient_scope";au=class extends Jt{};au.errorCode="invalid_target";Oz={[Xc.errorCode]:Xc,[So.errorCode]:So,[vo.errorCode]:vo,[bo.errorCode]:bo,[eu.errorCode]:eu,[tu.errorCode]:tu,[Ys.errorCode]:Ys,[js.errorCode]:js,[ru.errorCode]:ru,[nu.errorCode]:nu,[iu.errorCode]:iu,[qs.errorCode]:qs,[Au.errorCode]:Au,[ou.errorCode]:ou,[Vs.errorCode]:Vs,[su.errorCode]:su,[au.errorCode]:au}});var $s=x(()=>{VF();RA();sh();sh();wR();ah()});var ch=x(()=>{"use strict";ah();$s()});var gp=x(()=>{"use strict"});import vR from"node:fs";function Jz(){try{return vR.statSync("/.dockerenv"),!0}catch{return!1}}function Yz(){try{return vR.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return!1}}function gh(){return uh===void 0&&(uh=Jz()||Yz()),uh}var uh,bR=x(()=>{});import jz from"node:fs";function xo(){return lh===void 0&&(lh=qz()||gh()),lh}var lh,qz,ph=x(()=>{bR();qz=()=>{try{return jz.statSync("/run/.containerenv"),!0}catch{return!1}}});import FR from"node:process";import Vz from"node:os";import dh from"node:fs";var xR,kA,Ch=x(()=>{ph();xR=()=>{if(FR.platform!=="linux")return!1;if(Vz.release().toLowerCase().includes("microsoft"))return!xo();try{if(dh.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft"))return!xo()}catch{}return dh.existsSync("/proc/sys/fs/binfmt_misc/WSLInterop")||dh.existsSync("/run/WSL")?!xo():!1},kA=FR.env.__IS_WSL_TEST__?xR:xR()});import RR from"node:process";import kR,{constants as $z}from"node:fs/promises";var Wz,zz,Ih,MR=x(()=>{Ch();Ch();Wz=(()=>{let t="/mnt/",e;return async function(){if(e)return e;let r="/etc/wsl.conf",n=!1;try{await kR.access(r,$z.F_OK),n=!0}catch{}if(!n)return t;let i=await kR.readFile(r,{encoding:"utf8"}),A=/(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(i);return A?(e=A.groups.mountPoint.trim(),e=e.endsWith("/")?e:`${e}/`,e):t}})(),zz=async()=>`${await Wz()}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`,Ih=async()=>kA?zz():`${RR.env.SYSTEMROOT||RR.env.windir||String.raw`C:\Windows`}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`});function MA(t,e,r){let n=i=>Object.defineProperty(t,e,{value:i,enumerable:!0,writable:!0});return Object.defineProperty(t,e,{configurable:!0,enumerable:!0,get(){let i=r();return n(i),i},set(i){n(i)}}),t}var NR=x(()=>{});import{promisify as Zz}from"node:util";import Xz from"node:process";import{execFile as eZ}from"node:child_process";async function fh(){if(Xz.platform!=="darwin")throw new Error("macOS only");let{stdout:t}=await tZ("defaults",["read","com.apple.LaunchServices/com.apple.launchservices.secure","LSHandlers"]),r=/LSHandlerRoleAll = "(?!-)(?<id>[^"]+?)";\s+?LSHandlerURLScheme = (?:http|https);/.exec(t)?.groups.id??"com.apple.Safari";return r==="com.apple.safari"?"com.apple.Safari":r}var tZ,TR=x(()=>{tZ=Zz(eZ)});import rZ from"node:process";import{promisify as nZ}from"node:util";import{execFile as iZ,execFileSync as vNe}from"node:child_process";async function PR(t,{humanReadableOutput:e=!0,signal:r}={}){if(rZ.platform!=="darwin")throw new Error("macOS only");let n=e?[]:["-ss"],i={};r&&(i.signal=r);let{stdout:A}=await AZ("osascript",["-e",t,n],i);return A.trim()}var AZ,UR=x(()=>{AZ=nZ(iZ)});async function mh(t){return PR(`tell application "Finder" to set app_path to application file id "${t}" as string
|
|
31
|
+
tell application "System Events" to get value of property list item "CFBundleName" of property list file (app_path & ":Contents:Info.plist")`)}var LR=x(()=>{UR()});import{promisify as oZ}from"node:util";import{execFile as sZ}from"node:child_process";async function Eh(t=aZ){let{stdout:e}=await t("reg",["QUERY"," HKEY_CURRENT_USER\\Software\\Microsoft\\Windows\\Shell\\Associations\\UrlAssociations\\http\\UserChoice","/v","ProgId"]),r=/ProgId\s*REG_SZ\s*(?<id>\S+)/.exec(e);if(!r)throw new hh(`Cannot find Windows browser in stdout: ${JSON.stringify(e)}`);let{id:n}=r.groups,i=n.lastIndexOf("."),A=n.lastIndexOf("-"),o=i===-1?void 0:n.slice(0,i),s=A===-1?void 0:n.slice(0,A);return lp[n]??lp[o]??lp[s]??{name:n,id:n}}var aZ,lp,MNe,hh,GR=x(()=>{aZ=oZ(sZ),lp={MSEdgeHTM:{name:"Edge",id:"com.microsoft.edge"},MSEdgeBHTML:{name:"Edge Beta",id:"com.microsoft.edge.beta"},MSEdgeDHTML:{name:"Edge Dev",id:"com.microsoft.edge.dev"},AppXq0fevzme2pys62n3e0fbqa7peapykr8v:{name:"Edge",id:"com.microsoft.edge.old"},ChromeHTML:{name:"Chrome",id:"com.google.chrome"},ChromeBHTML:{name:"Chrome Beta",id:"com.google.chrome.beta"},ChromeDHTML:{name:"Chrome Dev",id:"com.google.chrome.dev"},ChromiumHTM:{name:"Chromium",id:"org.chromium.Chromium"},BraveHTML:{name:"Brave",id:"com.brave.Browser"},BraveBHTML:{name:"Brave Beta",id:"com.brave.Browser.beta"},BraveDHTML:{name:"Brave Dev",id:"com.brave.Browser.dev"},BraveSSHTM:{name:"Brave Nightly",id:"com.brave.Browser.nightly"},FirefoxURL:{name:"Firefox",id:"org.mozilla.firefox"},OperaStable:{name:"Opera",id:"com.operasoftware.Opera"},VivaldiHTM:{name:"Vivaldi",id:"com.vivaldi.Vivaldi"},"IE.HTTP":{name:"Internet Explorer",id:"com.microsoft.ie"}},MNe=new Map(Object.entries(lp)),hh=class extends Error{}});import{promisify as cZ}from"node:util";import Bh from"node:process";import{execFile as uZ}from"node:child_process";async function Qh(){if(Bh.platform==="darwin"){let t=await fh();return{name:await mh(t),id:t}}if(Bh.platform==="linux"){let{stdout:t}=await gZ("xdg-mime",["query","default","x-scheme-handler/http"]),e=t.trim();return{name:lZ(e.replace(/.desktop$/,"").replace("-"," ")),id:e}}if(Bh.platform==="win32")return Eh();throw new Error("Only macOS, Linux, and Windows are supported")}var gZ,lZ,_R=x(()=>{TR();LR();GR();gZ=cZ(uZ),lZ=t=>t.toLowerCase().replaceAll(/(?:^|\s|-)\S/g,e=>e.toUpperCase())});import YR from"node:process";import{Buffer as jR}from"node:buffer";import qR from"node:path";import{fileURLToPath as pZ}from"node:url";import{promisify as dZ}from"node:util";import VR from"node:child_process";import CZ,{constants as IZ}from"node:fs/promises";async function mZ(){let t=await Ih(),e=String.raw`(Get-ItemProperty -Path "HKCU:\Software\Microsoft\Windows\Shell\Associations\UrlAssociations\http\UserChoice").ProgId`,r=jR.from(e,"utf16le").toString("base64"),{stdout:n}=await fZ(t,["-NoProfile","-NonInteractive","-ExecutionPolicy","Bypass","-EncodedCommand",r],{encoding:"utf8"}),i=n.trim(),A={ChromeHTML:"com.google.chrome",BraveHTML:"com.brave.Browser",MSEdgeHTM:"com.microsoft.edge",FirefoxURL:"org.mozilla.firefox"};return A[i]?{id:A[i]}:{}}function JR(t){if(typeof t=="string"||Array.isArray(t))return t;let{[OR]:e}=t;if(!e)throw new Error(`${OR} is not supported`);return e}function dp({[Ws]:t},{wsl:e}){if(e&&kA)return JR(e);if(!t)throw new Error(`${Ws} is not supported`);return JR(t)}var fZ,yh,HR,Ws,OR,KR,pp,hZ,Fo,$R,WR=x(()=>{MR();NR();_R();ph();fZ=dZ(VR.execFile),yh=qR.dirname(pZ(import.meta.url)),HR=qR.join(yh,"xdg-open"),{platform:Ws,arch:OR}=YR;KR=async(t,e)=>{let r;for(let n of t)try{return await e(n)}catch(i){r=i}throw r},pp=async t=>{if(t={wait:!1,background:!1,newInstance:!1,allowNonzeroExitCode:!1,...t},Array.isArray(t.app))return KR(t.app,s=>pp({...t,app:s}));let{name:e,arguments:r=[]}=t.app??{};if(r=[...r],Array.isArray(e))return KR(e,s=>pp({...t,app:{name:s,arguments:r}}));if(e==="browser"||e==="browserPrivate"){let s={"com.google.chrome":"chrome","google-chrome.desktop":"chrome","com.brave.Browser":"brave","org.mozilla.firefox":"firefox","firefox.desktop":"firefox","com.microsoft.msedge":"edge","com.microsoft.edge":"edge","com.microsoft.edgemac":"edge","microsoft-edge.desktop":"edge"},c={chrome:"--incognito",brave:"--incognito",firefox:"--private-window",edge:"--inPrivate"},u=kA?await mZ():await Qh();if(u.id in s){let g=s[u.id];return e==="browserPrivate"&&r.push(c[g]),pp({...t,app:{name:Fo[g],arguments:r}})}throw new Error(`${u.name} is not supported as a default browser`)}let n,i=[],A={};if(Ws==="darwin")n="open",t.wait&&i.push("--wait-apps"),t.background&&i.push("--background"),t.newInstance&&i.push("--new"),e&&i.push("-a",e);else if(Ws==="win32"||kA&&!xo()&&!e){n=await Ih(),i.push("-NoProfile","-NonInteractive","-ExecutionPolicy","Bypass","-EncodedCommand"),kA||(A.windowsVerbatimArguments=!0);let s=["Start"];t.wait&&s.push("-Wait"),e?(s.push(`"\`"${e}\`""`),t.target&&r.push(t.target)):t.target&&s.push(`"${t.target}"`),r.length>0&&(r=r.map(c=>`"\`"${c}\`""`),s.push("-ArgumentList",r.join(","))),t.target=jR.from(s.join(" "),"utf16le").toString("base64")}else{if(e)n=e;else{let s=!yh||yh==="/",c=!1;try{await CZ.access(HR,IZ.X_OK),c=!0}catch{}n=YR.versions.electron??(Ws==="android"||s||!c)?"xdg-open":HR}r.length>0&&i.push(...r),t.wait||(A.stdio="ignore",A.detached=!0)}Ws==="darwin"&&r.length>0&&i.push("--args",...r),t.target&&i.push(t.target);let o=VR.spawn(n,i,A);return t.wait?new Promise((s,c)=>{o.once("error",c),o.once("close",u=>{if(!t.allowNonzeroExitCode&&u>0){c(new Error(`Exited with code ${u}`));return}s(o)})}):(o.unref(),o)},hZ=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a `target`");return pp({...e,target:t})};Fo={};MA(Fo,"chrome",()=>dp({darwin:"google chrome",win32:"chrome",linux:["google-chrome","google-chrome-stable","chromium"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",x64:["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe","/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]}}));MA(Fo,"brave",()=>dp({darwin:"brave browser",win32:"brave",linux:["brave-browser","brave"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe",x64:["/mnt/c/Program Files/BraveSoftware/Brave-Browser/Application/brave.exe","/mnt/c/Program Files (x86)/BraveSoftware/Brave-Browser/Application/brave.exe"]}}));MA(Fo,"firefox",()=>dp({darwin:"firefox",win32:String.raw`C:\Program Files\Mozilla Firefox\firefox.exe`,linux:"firefox"},{wsl:"/mnt/c/Program Files/Mozilla Firefox/firefox.exe"}));MA(Fo,"edge",()=>dp({darwin:"microsoft edge",win32:"msedge",linux:["microsoft-edge","microsoft-edge-dev"]},{wsl:"/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"}));MA(Fo,"browser",()=>"browser");MA(Fo,"browserPrivate",()=>"browserPrivate");$R=hZ});var eTe,Dh=x(()=>{"use strict";eTe=300*1e3});var EZ,wh,aTe,Sh=x(()=>{"use strict";Dh();EZ=300*1e3,wh=class{constructor(){De(this,"waiters",new Map)}register(e,r=EZ){return this.clear(e,new Error("SharedServerRedirect: superseded by a newer flow")),new Promise((n,i)=>{let A=setTimeout(()=>{this.waiters.delete(e),i(new Error(`SharedServerRedirect: timed out waiting for callback after ${r}ms`))},r);typeof A=="object"&&A&&"unref"in A&&A.unref?.(),this.waiters.set(e,{resolve:n,reject:i,timeout:A})})}resolve(e,r){let n=this.waiters.get(e);n&&(clearTimeout(n.timeout),this.waiters.delete(e),n.resolve({code:r.code,state:e}))}fail(e,r){this.clear(e,r)}failUnscoped(e){if(this.waiters.size!==1)return;let[r]=this.waiters.keys();r&&this.clear(r,e)}cancel(e,r=new Error("SharedServerRedirect: cancelled before callback received")){this.clear(e,r)}clear(e,r){let n=this.waiters.get(e);n&&(clearTimeout(n.timeout),this.waiters.delete(e),n.reject(r))}},aTe=new wh});var Cp=x(()=>{"use strict"});var zR=w(Ip=>{"use strict";Object.defineProperty(Ip,"__esModule",{value:!0});Ip.ToolError=void 0;var vh=class extends Error{constructor(e){let r=typeof e=="string"?e:e.map(n=>n.type==="text"?n.text:`[${n.type}]`).join(" ");super(r),this.name="ToolError",this.content=e}};Ip.ToolError=vh});var XR=w(ln=>{"use strict";Object.defineProperty(ln,"__esModule",{value:!0});ln.SDK_HELPER_SYMBOL=void 0;ln.wasCreatedByStainlessHelper=cu;ln.collectStainlessHelpers=ZR;ln.stainlessHelperHeader=BZ;ln.stainlessHelperHeaderFromFile=QZ;ln.SDK_HELPER_SYMBOL=Symbol("anthropic.sdk.stainlessHelper");function cu(t){return typeof t=="object"&&t!==null&&ln.SDK_HELPER_SYMBOL in t}function ZR(t,e){let r=new Set;if(t)for(let n of t)cu(n)&&r.add(n[ln.SDK_HELPER_SYMBOL]);if(e){for(let n of e)if(cu(n)&&r.add(n[ln.SDK_HELPER_SYMBOL]),Array.isArray(n.content))for(let i of n.content)cu(i)&&r.add(i[ln.SDK_HELPER_SYMBOL])}return Array.from(r)}function BZ(t,e){let r=ZR(t,e);return r.length===0?{}:{"x-stainless-helper":r.join(", ")}}function QZ(t){return cu(t)?{"x-stainless-helper":t[ln.SDK_HELPER_SYMBOL]}:{}}});var ek=w(uu=>{"use strict";Object.defineProperty(uu,"__esModule",{value:!0});uu.castToError=void 0;uu.isAbortError=yZ;function yZ(t){return typeof t=="object"&&t!==null&&("name"in t&&t.name==="AbortError"||"message"in t&&String(t.message).includes("FetchRequestCanceledException"))}var DZ=t=>{if(t instanceof Error)return t;if(typeof t=="object"&&t!==null){try{if(Object.prototype.toString.call(t)==="[object Error]"){let e=new Error(t.message,t.cause?{cause:t.cause}:{});return t.stack&&(e.stack=t.stack),t.cause&&!e.cause&&(e.cause=t.cause),t.name&&(e.name=t.name),e}}catch{}try{return new Error(JSON.stringify(t))}catch{}}return new Error(t)};uu.castToError=DZ});var tk=w(gt=>{"use strict";Object.defineProperty(gt,"__esModule",{value:!0});gt.InternalServerError=gt.RateLimitError=gt.UnprocessableEntityError=gt.ConflictError=gt.NotFoundError=gt.PermissionDeniedError=gt.AuthenticationError=gt.BadRequestError=gt.APIConnectionTimeoutError=gt.APIConnectionError=gt.APIUserAbortError=gt.APIError=gt.AnthropicError=void 0;var wZ=ek(),fp=class extends Error{};gt.AnthropicError=fp;var pn=class t extends fp{constructor(e,r,n,i,A){super(`${t.makeMessage(e,r,n)}`),this.status=e,this.headers=i,this.requestID=i?.get("request-id"),this.error=r,this.type=A??null}static makeMessage(e,r,n){let i=r?.message?typeof r.message=="string"?r.message:JSON.stringify(r.message):r?JSON.stringify(r):n;return e&&i?`${e} ${i}`:e?`${e} status code (no body)`:i||"(no status code or body)"}static generate(e,r,n,i){if(!e||!i)return new gu({message:n,cause:(0,wZ.castToError)(r)});let A=r,o=A?.error?.type;return e===400?new mp(e,A,n,i,o):e===401?new hp(e,A,n,i,o):e===403?new Ep(e,A,n,i,o):e===404?new Bp(e,A,n,i,o):e===409?new Qp(e,A,n,i,o):e===422?new yp(e,A,n,i,o):e===429?new Dp(e,A,n,i,o):e>=500?new wp(e,A,n,i,o):new t(e,A,n,i,o)}};gt.APIError=pn;var bh=class extends pn{constructor({message:e}={}){super(void 0,void 0,e||"Request was aborted.",void 0)}};gt.APIUserAbortError=bh;var gu=class extends pn{constructor({message:e,cause:r}){super(void 0,void 0,e||"Connection error.",void 0),r&&(this.cause=r)}};gt.APIConnectionError=gu;var xh=class extends gu{constructor({message:e}={}){super({message:e??"Request timed out."})}};gt.APIConnectionTimeoutError=xh;var mp=class extends pn{};gt.BadRequestError=mp;var hp=class extends pn{};gt.AuthenticationError=hp;var Ep=class extends pn{};gt.PermissionDeniedError=Ep;var Bp=class extends pn{};gt.NotFoundError=Bp;var Qp=class extends pn{};gt.ConflictError=Qp;var yp=class extends pn{};gt.UnprocessableEntityError=yp;var Dp=class extends pn{};gt.RateLimitError=Dp;var wp=class extends pn{};gt.InternalServerError=wp});var ik=w(lu=>{"use strict";Object.defineProperty(lu,"__esModule",{value:!0});lu.concatBytes=SZ;lu.encodeUTF8=vZ;lu.decodeUTF8=bZ;function SZ(t){let e=0;for(let i of t)e+=i.length;let r=new Uint8Array(e),n=0;for(let i of t)r.set(i,n),n+=i.length;return r}var rk;function vZ(t){let e;return(rk??(e=new globalThis.TextEncoder,rk=e.encode.bind(e)))(t)}var nk;function bZ(t){let e;return(nk??(e=new globalThis.TextDecoder,nk=e.decode.bind(e)))(t)}});var ok=w(zs=>{"use strict";Object.defineProperty(zs,"__esModule",{value:!0});zs.fromBase64=zs.toBase64=void 0;var Ak=tk(),xZ=ik(),FZ=t=>{if(!t)return"";if(typeof globalThis.Buffer<"u")return globalThis.Buffer.from(t).toString("base64");if(typeof t=="string"&&(t=(0,xZ.encodeUTF8)(t)),typeof btoa<"u")return btoa(String.fromCharCode.apply(null,t));throw new Ak.AnthropicError("Cannot generate base64 string; Expected `Buffer` or `btoa` to be defined")};zs.toBase64=FZ;var RZ=t=>{if(typeof globalThis.Buffer<"u"){let e=globalThis.Buffer.from(t,"base64");return new Uint8Array(e.buffer,e.byteOffset,e.byteLength)}if(typeof atob<"u"){let e=atob(t),r=new Uint8Array(e.length);for(let n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return r}throw new Ak.AnthropicError("Cannot decode base64 string; Expected `Buffer` or `atob` to be defined")};zs.fromBase64=RZ});var gk=w(Qr=>{"use strict";Object.defineProperty(Qr,"__esModule",{value:!0});Qr.UnsupportedMCPValueError=Qr.stainlessHelperHeader=Qr.collectStainlessHelpers=Qr.SDK_HELPER_SYMBOL=void 0;Qr.mcpTool=ak;Qr.mcpTools=TZ;Qr.mcpMessage=ck;Qr.mcpMessages=PZ;Qr.mcpContent=Sp;Qr.mcpResourceToContent=UZ;Qr.mcpResourceToFile=_Z;var kZ=zR(),zn=XR();Object.defineProperty(Qr,"SDK_HELPER_SYMBOL",{enumerable:!0,get:function(){return zn.SDK_HELPER_SYMBOL}});Object.defineProperty(Qr,"collectStainlessHelpers",{enumerable:!0,get:function(){return zn.collectStainlessHelpers}});Object.defineProperty(Qr,"stainlessHelperHeader",{enumerable:!0,get:function(){return zn.stainlessHelperHeader}});var sk=ok(),MZ=["image/jpeg","image/png","image/gif","image/webp"];function Fh(t){return MZ.includes(t)}function NZ(t){return!t||t.startsWith("text/")||t==="application/pdf"||Fh(t)}var Sn=class extends Error{constructor(e){super(e),this.name="UnsupportedMCPValueError"}};Qr.UnsupportedMCPValueError=Sn;function ak(t,e,r){let n={...t.inputSchema,type:"object",properties:t.inputSchema.properties??null,required:t.inputSchema.required??null};return{...{name:t.name,input_schema:n,...t.description!==void 0?{description:t.description}:{},...r},run:async o=>{let s=await e.callTool({name:t.name,arguments:o});if(s.isError){let c=s.content.map(u=>Sp(u));throw new kZ.ToolError(c)}return s.content.length===0&&typeof s.structuredContent=="object"&&s.structuredContent!==null?JSON.stringify(s.structuredContent):s.content.map(c=>Sp(c))},parse:o=>o,[zn.SDK_HELPER_SYMBOL]:"mcpTool"}}function TZ(t,e,r){return t.map(n=>ak(n,e,r))}function ck(t,e){return{role:t.role,content:[Sp(t.content,e)],[zn.SDK_HELPER_SYMBOL]:"mcpMessage"}}function PZ(t,e){return t.map(r=>ck(r,e))}function Sp(t,e){switch(t.type){case"text":return{type:"text",text:t.text,...e,[zn.SDK_HELPER_SYMBOL]:"mcpContent"};case"image":{if(!Fh(t.mimeType))throw new Sn(`Unsupported image MIME type: ${t.mimeType}`);return{type:"image",source:{type:"base64",data:t.data,media_type:t.mimeType},...e,[zn.SDK_HELPER_SYMBOL]:"mcpContent"}}case"resource":return uk(t.resource,e,"mcpContent");case"resource_link":case"audio":throw new Sn(`Unsupported MCP content type: ${t.type}`);default:throw new Sn(`Unsupported MCP content type: ${t.type}`)}}function uk(t,e,r="mcpResourceToContent"){let n=t.mimeType;if(n&&Fh(n)){if(!("blob"in t))throw new Sn(`Image resource must have blob data, not text. URI: ${t.uri}`);return{type:"image",source:{type:"base64",data:t.blob,media_type:n},...e,[zn.SDK_HELPER_SYMBOL]:r}}if(n==="application/pdf"){if(!("blob"in t))throw new Sn(`PDF resource must have blob data, not text. URI: ${t.uri}`);return{type:"document",source:{type:"base64",data:t.blob,media_type:"application/pdf"},...e,[zn.SDK_HELPER_SYMBOL]:r}}if(!n||n.startsWith("text/"))return{type:"document",source:GZ(t),...e,[zn.SDK_HELPER_SYMBOL]:r};throw new Sn(`Unsupported MIME type "${n}" for resource: ${t.uri}`)}function UZ(t,e){if(t.contents.length===0)throw new Sn("Resource contents array must contain at least one item");let r=t.contents.find(n=>NZ(n.mimeType));if(!r){let n=t.contents.map(i=>i.mimeType).filter(i=>i!==void 0);throw new Sn(`No supported MIME type found in resource contents. Available: ${n.join(", ")}`)}return uk(r,e)}function LZ(t){return"blob"in t?(0,sk.fromBase64)(t.blob):new TextEncoder().encode(t.text)}function GZ(t){return{type:"text",data:"text"in t?t.text:new TextDecoder().decode((0,sk.fromBase64)(t.blob)),media_type:"text/plain"}}function _Z(t){if(t.contents.length===0)throw new Sn("Resource contents array must contain at least one item");let e=t.contents[0],r=new URL(e.uri).pathname.split("/").at(-1)||"file",n=e.mimeType,i=LZ(e),A=new File([i],r,n?{type:n}:void 0);return A[zn.SDK_HELPER_SYMBOL]="mcpResourceToFile",A}});var OZ,pu=x(()=>{"use strict";Cp();OZ=Ze(gk(),1)});var pk=x(()=>{"use strict";ch();gp();Dh();Sh();pu()});var Rh=x(()=>{"use strict";$s();pk()});var du=x(()=>{"use strict"});var vp=w(vn=>{"use strict";vn.isInteger=t=>typeof t=="number"?Number.isInteger(t):typeof t=="string"&&t.trim()!==""?Number.isInteger(Number(t)):!1;vn.find=(t,e)=>t.nodes.find(r=>r.type===e);vn.exceedsLimit=(t,e,r=1,n)=>n===!1||!vn.isInteger(t)||!vn.isInteger(e)?!1:(Number(e)-Number(t))/Number(r)>=n;vn.escapeNode=(t,e=0,r)=>{let n=t.nodes[e];n&&(r&&n.type===r||n.type==="open"||n.type==="close")&&n.escaped!==!0&&(n.value="\\"+n.value,n.escaped=!0)};vn.encloseBrace=t=>t.type!=="brace"?!1:t.commas>>0+t.ranges>>0===0?(t.invalid=!0,!0):!1;vn.isInvalidBrace=t=>t.type!=="brace"?!1:t.invalid===!0||t.dollar?!0:t.commas>>0+t.ranges>>0===0||t.open!==!0||t.close!==!0?(t.invalid=!0,!0):!1;vn.isOpenOrClose=t=>t.type==="open"||t.type==="close"?!0:t.open===!0||t.close===!0;vn.reduce=t=>t.reduce((e,r)=>(r.type==="text"&&e.push(r.value),r.type==="range"&&(r.type="text"),e),[]);vn.flatten=(...t)=>{let e=[],r=n=>{for(let i=0;i<n.length;i++){let A=n[i];if(Array.isArray(A)){r(A);continue}A!==void 0&&e.push(A)}return e};return r(t),e}});var bp=w((LTe,Ik)=>{"use strict";var Ck=vp();Ik.exports=(t,e={})=>{let r=(n,i={})=>{let A=e.escapeInvalid&&Ck.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,s="";if(n.value)return(A||o)&&Ck.isOpenOrClose(n)?"\\"+n.value:n.value;if(n.value)return n.value;if(n.nodes)for(let c of n.nodes)s+=r(c);return s};return r(t)}});var mk=w((GTe,fk)=>{"use strict";fk.exports=function(t){return typeof t=="number"?t-t===0:typeof t=="string"&&t.trim()!==""?Number.isFinite?Number.isFinite(+t):isFinite(+t):!1}});var vk=w((_Te,Sk)=>{"use strict";var hk=mk(),Ro=(t,e,r)=>{if(hk(t)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||t===e)return String(t);if(hk(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let n={relaxZeros:!0,...r};typeof n.strictZeros=="boolean"&&(n.relaxZeros=n.strictZeros===!1);let i=String(n.relaxZeros),A=String(n.shorthand),o=String(n.capture),s=String(n.wrap),c=t+":"+e+"="+i+A+o+s;if(Ro.cache.hasOwnProperty(c))return Ro.cache[c].result;let u=Math.min(t,e),g=Math.max(t,e);if(Math.abs(u-g)===1){let C=t+"|"+e;return n.capture?`(${C})`:n.wrap===!1?C:`(?:${C})`}let d=wk(t)||wk(e),p={min:t,max:e,a:u,b:g},a=[],l=[];if(d&&(p.isPadded=d,p.maxLen=String(p.max).length),u<0){let C=g<0?Math.abs(g):1;l=Ek(C,Math.abs(u),p,n),u=p.a=0}return g>=0&&(a=Ek(u,g,p,n)),p.negatives=l,p.positives=a,p.result=JZ(l,a,n),n.capture===!0?p.result=`(${p.result})`:n.wrap!==!1&&a.length+l.length>1&&(p.result=`(?:${p.result})`),Ro.cache[c]=p,p.result};function JZ(t,e,r){let n=kh(t,e,"-",!1,r)||[],i=kh(e,t,"",!1,r)||[],A=kh(t,e,"-?",!0,r)||[];return n.concat(A).concat(i).join("|")}function YZ(t,e){let r=1,n=1,i=Qk(t,r),A=new Set([e]);for(;t<=i&&i<=e;)A.add(i),r+=1,i=Qk(t,r);for(i=yk(e+1,n)-1;t<i&&i<=e;)A.add(i),n+=1,i=yk(e+1,n)-1;return A=[...A],A.sort(VZ),A}function jZ(t,e,r){if(t===e)return{pattern:t,count:[],digits:0};let n=qZ(t,e),i=n.length,A="",o=0;for(let s=0;s<i;s++){let[c,u]=n[s];c===u?A+=c:c!=="0"||u!=="9"?A+=$Z(c,u,r):o++}return o&&(A+=r.shorthand===!0?"\\d":"[0-9]"),{pattern:A,count:[o],digits:i}}function Ek(t,e,r,n){let i=YZ(t,e),A=[],o=t,s;for(let c=0;c<i.length;c++){let u=i[c],g=jZ(String(o),String(u),n),d="";if(!r.isPadded&&s&&s.pattern===g.pattern){s.count.length>1&&s.count.pop(),s.count.push(g.count[0]),s.string=s.pattern+Dk(s.count),o=u+1;continue}r.isPadded&&(d=WZ(u,r,n)),g.string=d+g.pattern+Dk(g.count),A.push(g),o=u+1,s=g}return A}function kh(t,e,r,n,i){let A=[];for(let o of t){let{string:s}=o;!n&&!Bk(e,"string",s)&&A.push(r+s),n&&Bk(e,"string",s)&&A.push(r+s)}return A}function qZ(t,e){let r=[];for(let n=0;n<t.length;n++)r.push([t[n],e[n]]);return r}function VZ(t,e){return t>e?1:e>t?-1:0}function Bk(t,e,r){return t.some(n=>n[e]===r)}function Qk(t,e){return Number(String(t).slice(0,-e)+"9".repeat(e))}function yk(t,e){return t-t%Math.pow(10,e)}function Dk(t){let[e=0,r=""]=t;return r||e>1?`{${e+(r?","+r:"")}}`:""}function $Z(t,e,r){return`[${t}${e-t===1?"":"-"}${e}]`}function wk(t){return/^-?(0+)\d/.test(t)}function WZ(t,e,r){if(!e.isPadded)return t;let n=Math.abs(e.maxLen-String(t).length),i=r.relaxZeros!==!1;switch(n){case 0:return"";case 1:return i?"0?":"0";case 2:return i?"0{0,2}":"00";default:return i?`0{0,${n}}`:`0{${n}}`}}Ro.cache={};Ro.clearCache=()=>Ro.cache={};Sk.exports=Ro});var Th=w((HTe,Nk)=>{"use strict";var zZ=W("util"),xk=vk(),bk=t=>t!==null&&typeof t=="object"&&!Array.isArray(t),ZZ=t=>e=>t===!0?Number(e):String(e),Mh=t=>typeof t=="number"||typeof t=="string"&&t!=="",Cu=t=>Number.isInteger(+t),Nh=t=>{let e=`${t}`,r=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return!1;for(;e[++r]==="0";);return r>0},XZ=(t,e,r)=>typeof t=="string"||typeof e=="string"?!0:r.stringify===!0,e7=(t,e,r)=>{if(e>0){let n=t[0]==="-"?"-":"";n&&(t=t.slice(1)),t=n+t.padStart(n?e-1:e,"0")}return r===!1?String(t):t},Fp=(t,e)=>{let r=t[0]==="-"?"-":"";for(r&&(t=t.slice(1),e--);t.length<e;)t="0"+t;return r?"-"+t:t},t7=(t,e,r)=>{t.negatives.sort((s,c)=>s<c?-1:s>c?1:0),t.positives.sort((s,c)=>s<c?-1:s>c?1:0);let n=e.capture?"":"?:",i="",A="",o;return t.positives.length&&(i=t.positives.map(s=>Fp(String(s),r)).join("|")),t.negatives.length&&(A=`-(${n}${t.negatives.map(s=>Fp(String(s),r)).join("|")})`),i&&A?o=`${i}|${A}`:o=i||A,e.wrap?`(${n}${o})`:o},Fk=(t,e,r,n)=>{if(r)return xk(t,e,{wrap:!1,...n});let i=String.fromCharCode(t);if(t===e)return i;let A=String.fromCharCode(e);return`[${i}-${A}]`},Rk=(t,e,r)=>{if(Array.isArray(t)){let n=r.wrap===!0,i=r.capture?"":"?:";return n?`(${i}${t.join("|")})`:t.join("|")}return xk(t,e,r)},kk=(...t)=>new RangeError("Invalid range arguments: "+zZ.inspect(...t)),Mk=(t,e,r)=>{if(r.strictRanges===!0)throw kk([t,e]);return[]},r7=(t,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${t}" to be a number`);return[]},n7=(t,e,r=1,n={})=>{let i=Number(t),A=Number(e);if(!Number.isInteger(i)||!Number.isInteger(A)){if(n.strictRanges===!0)throw kk([t,e]);return[]}i===0&&(i=0),A===0&&(A=0);let o=i>A,s=String(t),c=String(e),u=String(r);r=Math.max(Math.abs(r),1);let g=Nh(s)||Nh(c)||Nh(u),d=g?Math.max(s.length,c.length,u.length):0,p=g===!1&&XZ(t,e,n)===!1,a=n.transform||ZZ(p);if(n.toRegex&&r===1)return Fk(Fp(t,d),Fp(e,d),!0,n);let l={negatives:[],positives:[]},C=E=>l[E<0?"negatives":"positives"].push(Math.abs(E)),I=[],m=0;for(;o?i>=A:i<=A;)n.toRegex===!0&&r>1?C(i):I.push(e7(a(i,m),d,p)),i=o?i-r:i+r,m++;return n.toRegex===!0?r>1?t7(l,n,d):Rk(I,null,{wrap:!1,...n}):I},i7=(t,e,r=1,n={})=>{if(!Cu(t)&&t.length>1||!Cu(e)&&e.length>1)return Mk(t,e,n);let i=n.transform||(p=>String.fromCharCode(p)),A=`${t}`.charCodeAt(0),o=`${e}`.charCodeAt(0),s=A>o,c=Math.min(A,o),u=Math.max(A,o);if(n.toRegex&&r===1)return Fk(c,u,!1,n);let g=[],d=0;for(;s?A>=o:A<=o;)g.push(i(A,d)),A=s?A-r:A+r,d++;return n.toRegex===!0?Rk(g,null,{wrap:!1,options:n}):g},xp=(t,e,r,n={})=>{if(e==null&&Mh(t))return[t];if(!Mh(t)||!Mh(e))return Mk(t,e,n);if(typeof r=="function")return xp(t,e,1,{transform:r});if(bk(r))return xp(t,e,0,r);let i={...n};return i.capture===!0&&(i.wrap=!0),r=r||i.step||1,Cu(r)?Cu(t)&&Cu(e)?n7(t,e,r,i):i7(t,e,Math.max(Math.abs(r),1),i):r!=null&&!bk(r)?r7(r,i):xp(t,e,1,r)};Nk.exports=xp});var Uk=w((OTe,Pk)=>{"use strict";var A7=Th(),Tk=vp(),o7=(t,e={})=>{let r=(n,i={})=>{let A=Tk.isInvalidBrace(i),o=n.invalid===!0&&e.escapeInvalid===!0,s=A===!0||o===!0,c=e.escapeInvalid===!0?"\\":"",u="";if(n.isOpen===!0)return c+n.value;if(n.isClose===!0)return console.log("node.isClose",c,n.value),c+n.value;if(n.type==="open")return s?c+n.value:"(";if(n.type==="close")return s?c+n.value:")";if(n.type==="comma")return n.prev.type==="comma"?"":s?n.value:"|";if(n.value)return n.value;if(n.nodes&&n.ranges>0){let g=Tk.reduce(n.nodes),d=A7(...g,{...e,wrap:!1,toRegex:!0,strictZeros:!0});if(d.length!==0)return g.length>1&&d.length>1?`(${d})`:d}if(n.nodes)for(let g of n.nodes)u+=r(g,n);return u};return r(t)};Pk.exports=o7});var _k=w((KTe,Gk)=>{"use strict";var s7=Th(),Lk=bp(),Zs=vp(),ko=(t="",e="",r=!1)=>{let n=[];if(t=[].concat(t),e=[].concat(e),!e.length)return t;if(!t.length)return r?Zs.flatten(e).map(i=>`{${i}}`):e;for(let i of t)if(Array.isArray(i))for(let A of i)n.push(ko(A,e,r));else for(let A of e)r===!0&&typeof A=="string"&&(A=`{${A}}`),n.push(Array.isArray(A)?ko(i,A,r):i+A);return Zs.flatten(n)},a7=(t,e={})=>{let r=e.rangeLimit===void 0?1e3:e.rangeLimit,n=(i,A={})=>{i.queue=[];let o=A,s=A.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,s=o.queue;if(i.invalid||i.dollar){s.push(ko(s.pop(),Lk(i,e)));return}if(i.type==="brace"&&i.invalid!==!0&&i.nodes.length===2){s.push(ko(s.pop(),["{}"]));return}if(i.nodes&&i.ranges>0){let d=Zs.reduce(i.nodes);if(Zs.exceedsLimit(...d,e.step,r))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let p=s7(...d,e);p.length===0&&(p=Lk(i,e)),s.push(ko(s.pop(),p)),i.nodes=[];return}let c=Zs.encloseBrace(i),u=i.queue,g=i;for(;g.type!=="brace"&&g.type!=="root"&&g.parent;)g=g.parent,u=g.queue;for(let d=0;d<i.nodes.length;d++){let p=i.nodes[d];if(p.type==="comma"&&i.type==="brace"){d===1&&u.push(""),u.push("");continue}if(p.type==="close"){s.push(ko(s.pop(),u,c));continue}if(p.value&&p.type!=="open"){u.push(ko(u.pop(),p.value));continue}p.nodes&&n(p,i)}return u};return Zs.flatten(n(t))};Gk.exports=a7});var Ok=w((JTe,Hk)=>{"use strict";Hk.exports={MAX_LENGTH:1e4,CHAR_0:"0",CHAR_9:"9",CHAR_UPPERCASE_A:"A",CHAR_LOWERCASE_A:"a",CHAR_UPPERCASE_Z:"Z",CHAR_LOWERCASE_Z:"z",CHAR_LEFT_PARENTHESES:"(",CHAR_RIGHT_PARENTHESES:")",CHAR_ASTERISK:"*",CHAR_AMPERSAND:"&",CHAR_AT:"@",CHAR_BACKSLASH:"\\",CHAR_BACKTICK:"`",CHAR_CARRIAGE_RETURN:"\r",CHAR_CIRCUMFLEX_ACCENT:"^",CHAR_COLON:":",CHAR_COMMA:",",CHAR_DOLLAR:"$",CHAR_DOT:".",CHAR_DOUBLE_QUOTE:'"',CHAR_EQUAL:"=",CHAR_EXCLAMATION_MARK:"!",CHAR_FORM_FEED:"\f",CHAR_FORWARD_SLASH:"/",CHAR_HASH:"#",CHAR_HYPHEN_MINUS:"-",CHAR_LEFT_ANGLE_BRACKET:"<",CHAR_LEFT_CURLY_BRACE:"{",CHAR_LEFT_SQUARE_BRACKET:"[",CHAR_LINE_FEED:`
|
|
32
|
+
`,CHAR_NO_BREAK_SPACE:"\xA0",CHAR_PERCENT:"%",CHAR_PLUS:"+",CHAR_QUESTION_MARK:"?",CHAR_RIGHT_ANGLE_BRACKET:">",CHAR_RIGHT_CURLY_BRACE:"}",CHAR_RIGHT_SQUARE_BRACKET:"]",CHAR_SEMICOLON:";",CHAR_SINGLE_QUOTE:"'",CHAR_SPACE:" ",CHAR_TAB:" ",CHAR_UNDERSCORE:"_",CHAR_VERTICAL_LINE:"|",CHAR_ZERO_WIDTH_NOBREAK_SPACE:"\uFEFF"}});var qk=w((YTe,jk)=>{"use strict";var c7=bp(),{MAX_LENGTH:Kk,CHAR_BACKSLASH:Ph,CHAR_BACKTICK:u7,CHAR_COMMA:g7,CHAR_DOT:l7,CHAR_LEFT_PARENTHESES:p7,CHAR_RIGHT_PARENTHESES:d7,CHAR_LEFT_CURLY_BRACE:C7,CHAR_RIGHT_CURLY_BRACE:I7,CHAR_LEFT_SQUARE_BRACKET:Jk,CHAR_RIGHT_SQUARE_BRACKET:Yk,CHAR_DOUBLE_QUOTE:f7,CHAR_SINGLE_QUOTE:m7,CHAR_NO_BREAK_SPACE:h7,CHAR_ZERO_WIDTH_NOBREAK_SPACE:E7}=Ok(),B7=(t,e={})=>{if(typeof t!="string")throw new TypeError("Expected a string");let r=e||{},n=typeof r.maxLength=="number"?Math.min(Kk,r.maxLength):Kk;if(t.length>n)throw new SyntaxError(`Input length (${t.length}), exceeds max characters (${n})`);let i={type:"root",input:t,nodes:[]},A=[i],o=i,s=i,c=0,u=t.length,g=0,d=0,p,a=()=>t[g++],l=C=>{if(C.type==="text"&&s.type==="dot"&&(s.type="text"),s&&s.type==="text"&&C.type==="text"){s.value+=C.value;return}return o.nodes.push(C),C.parent=o,C.prev=s,s=C,C};for(l({type:"bos"});g<u;)if(o=A[A.length-1],p=a(),!(p===E7||p===h7)){if(p===Ph){l({type:"text",value:(e.keepEscaping?p:"")+a()});continue}if(p===Yk){l({type:"text",value:"\\"+p});continue}if(p===Jk){c++;let C;for(;g<u&&(C=a());){if(p+=C,C===Jk){c++;continue}if(C===Ph){p+=a();continue}if(C===Yk&&(c--,c===0))break}l({type:"text",value:p});continue}if(p===p7){o=l({type:"paren",nodes:[]}),A.push(o),l({type:"text",value:p});continue}if(p===d7){if(o.type!=="paren"){l({type:"text",value:p});continue}o=A.pop(),l({type:"text",value:p}),o=A[A.length-1];continue}if(p===f7||p===m7||p===u7){let C=p,I;for(e.keepQuotes!==!0&&(p="");g<u&&(I=a());){if(I===Ph){p+=I+a();continue}if(I===C){e.keepQuotes===!0&&(p+=I);break}p+=I}l({type:"text",value:p});continue}if(p===C7){d++;let I={type:"brace",open:!0,close:!1,dollar:s.value&&s.value.slice(-1)==="$"||o.dollar===!0,depth:d,commas:0,ranges:0,nodes:[]};o=l(I),A.push(o),l({type:"open",value:p});continue}if(p===I7){if(o.type!=="brace"){l({type:"text",value:p});continue}let C="close";o=A.pop(),o.close=!0,l({type:C,value:p}),d--,o=A[A.length-1];continue}if(p===g7&&d>0){if(o.ranges>0){o.ranges=0;let C=o.nodes.shift();o.nodes=[C,{type:"text",value:c7(o)}]}l({type:"comma",value:p}),o.commas++;continue}if(p===l7&&d>0&&o.commas===0){let C=o.nodes;if(d===0||C.length===0){l({type:"text",value:p});continue}if(s.type==="dot"){if(o.range=[],s.value+=p,s.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,s.type="text";continue}o.ranges++,o.args=[];continue}if(s.type==="range"){C.pop();let I=C[C.length-1];I.value+=s.value+p,s=I,o.ranges--;continue}l({type:"dot",value:p});continue}l({type:"text",value:p})}do if(o=A.pop(),o.type!=="root"){o.nodes.forEach(m=>{m.nodes||(m.type==="open"&&(m.isOpen=!0),m.type==="close"&&(m.isClose=!0),m.nodes||(m.type="text"),m.invalid=!0)});let C=A[A.length-1],I=C.nodes.indexOf(o);C.nodes.splice(I,1,...o.nodes)}while(A.length>0);return l({type:"eos"}),i};jk.exports=B7});var Wk=w((jTe,$k)=>{"use strict";var Vk=bp(),Q7=Uk(),y7=_k(),D7=qk(),dn=(t,e={})=>{let r=[];if(Array.isArray(t))for(let n of t){let i=dn.create(n,e);Array.isArray(i)?r.push(...i):r.push(i)}else r=[].concat(dn.create(t,e));return e&&e.expand===!0&&e.nodupes===!0&&(r=[...new Set(r)]),r};dn.parse=(t,e={})=>D7(t,e);dn.stringify=(t,e={})=>Vk(typeof t=="string"?dn.parse(t,e):t,e);dn.compile=(t,e={})=>(typeof t=="string"&&(t=dn.parse(t,e)),Q7(t,e));dn.expand=(t,e={})=>{typeof t=="string"&&(t=dn.parse(t,e));let r=y7(t,e);return e.noempty===!0&&(r=r.filter(Boolean)),e.nodupes===!0&&(r=[...new Set(r)]),r};dn.create=(t,e={})=>t===""||t.length<3?[t]:e.expand!==!0?dn.compile(t,e):dn.expand(t,e);$k.exports=dn});var Iu=w((qTe,tM)=>{"use strict";var w7=W("path"),Ii="\\\\/",zk=`[^${Ii}]`,S7=0,Yi="\\.",v7="\\+",b7="\\?",Rp="\\/",x7="(?=.)",Zk="[^/]",Uh=`(?:${Rp}|$)`,Xk=`(?:^|${Rp})`,Lh=`${Yi}{1,2}${Uh}`,F7=`(?!${Yi})`,R7=`(?!${Xk}${Lh})`,k7=`(?!${Yi}{0,1}${Uh})`,M7=`(?!${Lh})`,N7=`[^.${Rp}]`,T7=`${Zk}*?`,eM={DOT_LITERAL:Yi,PLUS_LITERAL:v7,QMARK_LITERAL:b7,SLASH_LITERAL:Rp,ONE_CHAR:x7,QMARK:Zk,END_ANCHOR:Uh,DOTS_SLASH:Lh,NO_DOT:F7,NO_DOTS:R7,NO_DOT_SLASH:k7,NO_DOTS_SLASH:M7,QMARK_NO_DOT:N7,STAR:T7,START_ANCHOR:Xk},P7={...eM,SLASH_LITERAL:`[${Ii}]`,QMARK:zk,STAR:`${zk}*?`,DOTS_SLASH:`${Yi}{1,2}(?:[${Ii}]|$)`,NO_DOT:`(?!${Yi})`,NO_DOTS:`(?!(?:^|[${Ii}])${Yi}{1,2}(?:[${Ii}]|$))`,NO_DOT_SLASH:`(?!${Yi}{0,1}(?:[${Ii}]|$))`,NO_DOTS_SLASH:`(?!${Yi}{1,2}(?:[${Ii}]|$))`,QMARK_NO_DOT:`[^.${Ii}]`,START_ANCHOR:`(?:^|[${Ii}])`,END_ANCHOR:`(?:[${Ii}]|$)`},U7={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};tM.exports={DEFAULT_MAX_EXTGLOB_RECURSION:S7,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:U7,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,SEP:w7.sep,extglobChars(t){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${t.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(t){return t===!0?P7:eM}}});var fu=w(Zr=>{"use strict";var L7=W("path"),G7=process.platform==="win32",{REGEX_BACKSLASH:_7,REGEX_REMOVE_BACKSLASH:H7,REGEX_SPECIAL_CHARS:O7,REGEX_SPECIAL_CHARS_GLOBAL:K7}=Iu();Zr.isObject=t=>t!==null&&typeof t=="object"&&!Array.isArray(t);Zr.hasRegexChars=t=>O7.test(t);Zr.isRegexChar=t=>t.length===1&&Zr.hasRegexChars(t);Zr.escapeRegex=t=>t.replace(K7,"\\$1");Zr.toPosixSlashes=t=>t.replace(_7,"/");Zr.removeBackslashes=t=>t.replace(H7,e=>e==="\\"?"":e);Zr.supportsLookbehinds=()=>{let t=process.version.slice(1).split(".").map(Number);return t.length===3&&t[0]>=9||t[0]===8&&t[1]>=10};Zr.isWindows=t=>t&&typeof t.windows=="boolean"?t.windows:G7===!0||L7.sep==="\\";Zr.escapeLast=(t,e,r)=>{let n=t.lastIndexOf(e,r);return n===-1?t:t[n-1]==="\\"?Zr.escapeLast(t,e,n-1):`${t.slice(0,n)}\\${t.slice(n)}`};Zr.removePrefix=(t,e={})=>{let r=t;return r.startsWith("./")&&(r=r.slice(2),e.prefix="./"),r};Zr.wrapOutput=(t,e={},r={})=>{let n=r.contains?"":"^",i=r.contains?"":"$",A=`${n}(?:${t})${i}`;return e.negated===!0&&(A=`(?:^(?!${A}).*$)`),A}});var cM=w(($Te,aM)=>{"use strict";var rM=fu(),{CHAR_ASTERISK:Gh,CHAR_AT:J7,CHAR_BACKWARD_SLASH:mu,CHAR_COMMA:Y7,CHAR_DOT:_h,CHAR_EXCLAMATION_MARK:Hh,CHAR_FORWARD_SLASH:sM,CHAR_LEFT_CURLY_BRACE:Oh,CHAR_LEFT_PARENTHESES:Kh,CHAR_LEFT_SQUARE_BRACKET:j7,CHAR_PLUS:q7,CHAR_QUESTION_MARK:nM,CHAR_RIGHT_CURLY_BRACE:V7,CHAR_RIGHT_PARENTHESES:iM,CHAR_RIGHT_SQUARE_BRACKET:$7}=Iu(),AM=t=>t===sM||t===mu,oM=t=>{t.isPrefix!==!0&&(t.depth=t.isGlobstar?1/0:1)},W7=(t,e)=>{let r=e||{},n=t.length-1,i=r.parts===!0||r.scanToEnd===!0,A=[],o=[],s=[],c=t,u=-1,g=0,d=0,p=!1,a=!1,l=!1,C=!1,I=!1,m=!1,E=!1,Q=!1,D=!1,S=!1,R=0,k,U,L={value:"",depth:0,isGlob:!1},ee=()=>u>=n,M=()=>c.charCodeAt(u+1),q=()=>(k=U,c.charCodeAt(++u));for(;u<n;){U=q();let ge;if(U===mu){E=L.backslashes=!0,U=q(),U===Oh&&(m=!0);continue}if(m===!0||U===Oh){for(R++;ee()!==!0&&(U=q());){if(U===mu){E=L.backslashes=!0,q();continue}if(U===Oh){R++;continue}if(m!==!0&&U===_h&&(U=q())===_h){if(p=L.isBrace=!0,l=L.isGlob=!0,S=!0,i===!0)continue;break}if(m!==!0&&U===Y7){if(p=L.isBrace=!0,l=L.isGlob=!0,S=!0,i===!0)continue;break}if(U===V7&&(R--,R===0)){m=!1,p=L.isBrace=!0,S=!0;break}}if(i===!0)continue;break}if(U===sM){if(A.push(u),o.push(L),L={value:"",depth:0,isGlob:!1},S===!0)continue;if(k===_h&&u===g+1){g+=2;continue}d=u+1;continue}if(r.noext!==!0&&(U===q7||U===J7||U===Gh||U===nM||U===Hh)===!0&&M()===Kh){if(l=L.isGlob=!0,C=L.isExtglob=!0,S=!0,U===Hh&&u===g&&(D=!0),i===!0){for(;ee()!==!0&&(U=q());){if(U===mu){E=L.backslashes=!0,U=q();continue}if(U===iM){l=L.isGlob=!0,S=!0;break}}continue}break}if(U===Gh){if(k===Gh&&(I=L.isGlobstar=!0),l=L.isGlob=!0,S=!0,i===!0)continue;break}if(U===nM){if(l=L.isGlob=!0,S=!0,i===!0)continue;break}if(U===j7){for(;ee()!==!0&&(ge=q());){if(ge===mu){E=L.backslashes=!0,q();continue}if(ge===$7){a=L.isBracket=!0,l=L.isGlob=!0,S=!0;break}}if(i===!0)continue;break}if(r.nonegate!==!0&&U===Hh&&u===g){Q=L.negated=!0,g++;continue}if(r.noparen!==!0&&U===Kh){if(l=L.isGlob=!0,i===!0){for(;ee()!==!0&&(U=q());){if(U===Kh){E=L.backslashes=!0,U=q();continue}if(U===iM){S=!0;break}}continue}break}if(l===!0){if(S=!0,i===!0)continue;break}}r.noext===!0&&(C=!1,l=!1);let oe=c,ue="",P="";g>0&&(ue=c.slice(0,g),c=c.slice(g),d-=g),oe&&l===!0&&d>0?(oe=c.slice(0,d),P=c.slice(d)):l===!0?(oe="",P=c):oe=c,oe&&oe!==""&&oe!=="/"&&oe!==c&&AM(oe.charCodeAt(oe.length-1))&&(oe=oe.slice(0,-1)),r.unescape===!0&&(P&&(P=rM.removeBackslashes(P)),oe&&E===!0&&(oe=rM.removeBackslashes(oe)));let G={prefix:ue,input:t,start:g,base:oe,glob:P,isBrace:p,isBracket:a,isGlob:l,isExtglob:C,isGlobstar:I,negated:Q,negatedExtglob:D};if(r.tokens===!0&&(G.maxDepth=0,AM(U)||o.push(L),G.tokens=o),r.parts===!0||r.tokens===!0){let ge;for(let me=0;me<A.length;me++){let $=ge?ge+1:g,te=A[me],_=t.slice($,te);r.tokens&&(me===0&&g!==0?(o[me].isPrefix=!0,o[me].value=ue):o[me].value=_,oM(o[me]),G.maxDepth+=o[me].depth),(me!==0||_!=="")&&s.push(_),ge=te}if(ge&&ge+1<t.length){let me=t.slice(ge+1);s.push(me),r.tokens&&(o[o.length-1].value=me,oM(o[o.length-1]),G.maxDepth+=o[o.length-1].depth)}G.slashes=A,G.parts=s}return G};aM.exports=W7});var dM=w((WTe,pM)=>{"use strict";var hu=Iu(),Mr=fu(),{MAX_LENGTH:kp,POSIX_REGEX_SOURCE:z7,REGEX_NON_SPECIAL_CHARS:Z7,REGEX_SPECIAL_CHARS_BACKREF:X7,REPLACEMENTS:uM}=hu,eX=(t,e)=>{if(typeof e.expandRange=="function")return e.expandRange(...t,e);t.sort();let r=`[${t.join("-")}]`;try{new RegExp(r)}catch{return t.map(i=>Mr.escapeRegex(i)).join("..")}return r},Xs=(t,e)=>`Missing ${t}: "${e}" - use "\\\\${e}" to match literal characters`,gM=t=>{let e=[],r=0,n=0,i=0,A="",o=!1;for(let s of t){if(o===!0){A+=s,o=!1;continue}if(s==="\\"){A+=s,o=!0;continue}if(s==='"'){i=i===1?0:1,A+=s;continue}if(i===0){if(s==="[")r++;else if(s==="]"&&r>0)r--;else if(r===0){if(s==="(")n++;else if(s===")"&&n>0)n--;else if(s==="|"&&n===0){e.push(A),A="";continue}}}A+=s}return e.push(A),e},tX=t=>{let e=!1;for(let r of t){if(e===!0){e=!1;continue}if(r==="\\"){e=!0;continue}if(/[?*+@!()[\]{}]/.test(r))return!1}return!0},lM=t=>{let e=t.trim(),r=!0;for(;r===!0;)r=!1,/^@\([^\\()[\]{}|]+\)$/.test(e)&&(e=e.slice(2,-1),r=!0);if(tX(e))return e.replace(/\\(.)/g,"$1")},rX=t=>{let e=t.map(lM).filter(Boolean);for(let r=0;r<e.length;r++)for(let n=r+1;n<e.length;n++){let i=e[r],A=e[n],o=i[0];if(!(!o||i!==o.repeat(i.length)||A!==o.repeat(A.length))&&(i===A||i.startsWith(A)||A.startsWith(i)))return!0}return!1},Jh=(t,e=!0)=>{if(t[0]!=="+"&&t[0]!=="*"||t[1]!=="(")return;let r=0,n=0,i=0,A=!1;for(let o=1;o<t.length;o++){let s=t[o];if(A===!0){A=!1;continue}if(s==="\\"){A=!0;continue}if(s==='"'){i=i===1?0:1;continue}if(i!==1){if(s==="["){r++;continue}if(s==="]"&&r>0){r--;continue}if(!(r>0)){if(s==="("){n++;continue}if(s===")"&&(n--,n===0))return e===!0&&o!==t.length-1?void 0:{type:t[0],body:t.slice(2,o),end:o}}}}},nX=t=>{let e=0,r=[];for(;e<t.length;){let i=Jh(t.slice(e),!1);if(!i||i.type!=="*")return;let A=gM(i.body).map(s=>s.trim());if(A.length!==1)return;let o=lM(A[0]);if(!o||o.length!==1)return;r.push(o),e+=i.end+1}return r.length<1?void 0:`${r.length===1?Mr.escapeRegex(r[0]):`[${r.map(i=>Mr.escapeRegex(i)).join("")}]`}*`},iX=t=>{let e=0,r=t.trim(),n=Jh(r);for(;n;)e++,r=n.body.trim(),n=Jh(r);return e},AX=(t,e)=>{if(e.maxExtglobRecursion===!1)return{risky:!1};let r=typeof e.maxExtglobRecursion=="number"?e.maxExtglobRecursion:hu.DEFAULT_MAX_EXTGLOB_RECURSION,n=gM(t).map(i=>i.trim());if(n.length>1&&(n.some(i=>i==="")||n.some(i=>/^[*?]+$/.test(i))||rX(n)))return{risky:!0};for(let i of n){let A=nX(i);if(A)return{risky:!0,safeOutput:A};if(iX(i)>r)return{risky:!0}}return{risky:!1}},Yh=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");t=uM[t]||t;let r={...e},n=typeof r.maxLength=="number"?Math.min(kp,r.maxLength):kp,i=t.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);let A={type:"bos",value:"",output:r.prepend||""},o=[A],s=r.capture?"":"?:",c=Mr.isWindows(e),u=hu.globChars(c),g=hu.extglobChars(u),{DOT_LITERAL:d,PLUS_LITERAL:p,SLASH_LITERAL:a,ONE_CHAR:l,DOTS_SLASH:C,NO_DOT:I,NO_DOT_SLASH:m,NO_DOTS_SLASH:E,QMARK:Q,QMARK_NO_DOT:D,STAR:S,START_ANCHOR:R}=u,k=ie=>`(${s}(?:(?!${R}${ie.dot?C:d}).)*?)`,U=r.dot?"":I,L=r.dot?Q:D,ee=r.bash===!0?k(r):S;r.capture&&(ee=`(${ee})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let M={input:t,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};t=Mr.removePrefix(t,M),i=t.length;let q=[],oe=[],ue=[],P=A,G,ge=()=>M.index===i-1,me=M.peek=(ie=1)=>t[M.index+ie],$=M.advance=()=>t[++M.index]||"",te=()=>t.slice(M.index+1),_=(ie="",Ne=0)=>{M.consumed+=ie,M.index+=Ne},Ce=ie=>{M.output+=ie.output!=null?ie.output:ie.value,_(ie.value)},Re=()=>{let ie=1;for(;me()==="!"&&(me(2)!=="("||me(3)==="?");)$(),M.start++,ie++;return ie%2===0?!1:(M.negated=!0,M.start++,!0)},ye=ie=>{M[ie]++,ue.push(ie)},Ee=ie=>{M[ie]--,ue.pop()},ce=ie=>{if(P.type==="globstar"){let Ne=M.braces>0&&(ie.type==="comma"||ie.type==="brace"),ne=ie.extglob===!0||q.length&&(ie.type==="pipe"||ie.type==="paren");ie.type!=="slash"&&ie.type!=="paren"&&!Ne&&!ne&&(M.output=M.output.slice(0,-P.output.length),P.type="star",P.value="*",P.output=ee,M.output+=P.output)}if(q.length&&ie.type!=="paren"&&(q[q.length-1].inner+=ie.value),(ie.value||ie.output)&&Ce(ie),P&&P.type==="text"&&ie.type==="text"){P.value+=ie.value,P.output=(P.output||"")+ie.value;return}ie.prev=P,o.push(ie),P=ie},je=(ie,Ne)=>{let ne={...g[Ne],conditions:1,inner:""};ne.prev=P,ne.parens=M.parens,ne.output=M.output,ne.startIndex=M.index,ne.tokensIndex=o.length;let we=(r.capture?"(":"")+ne.open;ye("parens"),ce({type:ie,value:Ne,output:M.output?"":l}),ce({type:"paren",extglob:!0,value:$(),output:we}),q.push(ne)},lr=ie=>{let Ne=t.slice(ie.startIndex,M.index+1),ne=t.slice(ie.startIndex+2,M.index),we=AX(ne,r);if((ie.type==="plus"||ie.type==="star")&&we.risky){let Le=we.safeOutput?(ie.output?"":l)+(r.capture?`(${we.safeOutput})`:we.safeOutput):void 0,pr=o[ie.tokensIndex];pr.type="text",pr.value=Ne,pr.output=Le||Mr.escapeRegex(Ne);for(let Vt=ie.tokensIndex+1;Vt<o.length;Vt++)o[Vt].value="",o[Vt].output="",delete o[Vt].suffix;M.output=ie.output+pr.output,M.backtrack=!0,ce({type:"paren",extglob:!0,value:G,output:""}),Ee("parens");return}let Be=ie.close+(r.capture?")":""),ct;if(ie.type==="negate"){let Le=ee;if(ie.inner&&ie.inner.length>1&&ie.inner.includes("/")&&(Le=k(r)),(Le!==ee||ge()||/^\)+$/.test(te()))&&(Be=ie.close=`)$))${Le}`),ie.inner.includes("*")&&(ct=te())&&/^\.[^\\/.]+$/.test(ct)){let pr=Yh(ct,{...e,fastpaths:!1}).output;Be=ie.close=`)${pr})${Le})`}ie.prev.type==="bos"&&(M.negatedExtglob=!0)}ce({type:"paren",extglob:!0,value:G,output:Be}),Ee("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(t)){let ie=!1,Ne=t.replace(X7,(ne,we,Be,ct,Le,pr)=>ct==="\\"?(ie=!0,ne):ct==="?"?we?we+ct+(Le?Q.repeat(Le.length):""):pr===0?L+(Le?Q.repeat(Le.length):""):Q.repeat(Be.length):ct==="."?d.repeat(Be.length):ct==="*"?we?we+ct+(Le?ee:""):ee:we?ne:`\\${ne}`);return ie===!0&&(r.unescape===!0?Ne=Ne.replace(/\\/g,""):Ne=Ne.replace(/\\+/g,ne=>ne.length%2===0?"\\\\":ne?"\\":"")),Ne===t&&r.contains===!0?(M.output=t,M):(M.output=Mr.wrapOutput(Ne,M,e),M)}for(;!ge();){if(G=$(),G==="\0")continue;if(G==="\\"){let ne=me();if(ne==="/"&&r.bash!==!0||ne==="."||ne===";")continue;if(!ne){G+="\\",ce({type:"text",value:G});continue}let we=/^\\+/.exec(te()),Be=0;if(we&&we[0].length>2&&(Be=we[0].length,M.index+=Be,Be%2!==0&&(G+="\\")),r.unescape===!0?G=$():G+=$(),M.brackets===0){ce({type:"text",value:G});continue}}if(M.brackets>0&&(G!=="]"||P.value==="["||P.value==="[^")){if(r.posix!==!1&&G===":"){let ne=P.value.slice(1);if(ne.includes("[")&&(P.posix=!0,ne.includes(":"))){let we=P.value.lastIndexOf("["),Be=P.value.slice(0,we),ct=P.value.slice(we+2),Le=z7[ct];if(Le){P.value=Be+Le,M.backtrack=!0,$(),!A.output&&o.indexOf(P)===1&&(A.output=l);continue}}}(G==="["&&me()!==":"||G==="-"&&me()==="]")&&(G=`\\${G}`),G==="]"&&(P.value==="["||P.value==="[^")&&(G=`\\${G}`),r.posix===!0&&G==="!"&&P.value==="["&&(G="^"),P.value+=G,Ce({value:G});continue}if(M.quotes===1&&G!=='"'){G=Mr.escapeRegex(G),P.value+=G,Ce({value:G});continue}if(G==='"'){M.quotes=M.quotes===1?0:1,r.keepQuotes===!0&&ce({type:"text",value:G});continue}if(G==="("){ye("parens"),ce({type:"paren",value:G});continue}if(G===")"){if(M.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Xs("opening","("));let ne=q[q.length-1];if(ne&&M.parens===ne.parens+1){lr(q.pop());continue}ce({type:"paren",value:G,output:M.parens?")":"\\)"}),Ee("parens");continue}if(G==="["){if(r.nobracket===!0||!te().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Xs("closing","]"));G=`\\${G}`}else ye("brackets");ce({type:"bracket",value:G});continue}if(G==="]"){if(r.nobracket===!0||P&&P.type==="bracket"&&P.value.length===1){ce({type:"text",value:G,output:`\\${G}`});continue}if(M.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Xs("opening","["));ce({type:"text",value:G,output:`\\${G}`});continue}Ee("brackets");let ne=P.value.slice(1);if(P.posix!==!0&&ne[0]==="^"&&!ne.includes("/")&&(G=`/${G}`),P.value+=G,Ce({value:G}),r.literalBrackets===!1||Mr.hasRegexChars(ne))continue;let we=Mr.escapeRegex(P.value);if(M.output=M.output.slice(0,-P.value.length),r.literalBrackets===!0){M.output+=we,P.value=we;continue}P.value=`(${s}${we}|${P.value})`,M.output+=P.value;continue}if(G==="{"&&r.nobrace!==!0){ye("braces");let ne={type:"brace",value:G,output:"(",outputIndex:M.output.length,tokensIndex:M.tokens.length};oe.push(ne),ce(ne);continue}if(G==="}"){let ne=oe[oe.length-1];if(r.nobrace===!0||!ne){ce({type:"text",value:G,output:G});continue}let we=")";if(ne.dots===!0){let Be=o.slice(),ct=[];for(let Le=Be.length-1;Le>=0&&(o.pop(),Be[Le].type!=="brace");Le--)Be[Le].type!=="dots"&&ct.unshift(Be[Le].value);we=eX(ct,r),M.backtrack=!0}if(ne.comma!==!0&&ne.dots!==!0){let Be=M.output.slice(0,ne.outputIndex),ct=M.tokens.slice(ne.tokensIndex);ne.value=ne.output="\\{",G=we="\\}",M.output=Be;for(let Le of ct)M.output+=Le.output||Le.value}ce({type:"brace",value:G,output:we}),Ee("braces"),oe.pop();continue}if(G==="|"){q.length>0&&q[q.length-1].conditions++,ce({type:"text",value:G});continue}if(G===","){let ne=G,we=oe[oe.length-1];we&&ue[ue.length-1]==="braces"&&(we.comma=!0,ne="|"),ce({type:"comma",value:G,output:ne});continue}if(G==="/"){if(P.type==="dot"&&M.index===M.start+1){M.start=M.index+1,M.consumed="",M.output="",o.pop(),P=A;continue}ce({type:"slash",value:G,output:a});continue}if(G==="."){if(M.braces>0&&P.type==="dot"){P.value==="."&&(P.output=d);let ne=oe[oe.length-1];P.type="dots",P.output+=G,P.value+=G,ne.dots=!0;continue}if(M.braces+M.parens===0&&P.type!=="bos"&&P.type!=="slash"){ce({type:"text",value:G,output:d});continue}ce({type:"dot",value:G,output:d});continue}if(G==="?"){if(!(P&&P.value==="(")&&r.noextglob!==!0&&me()==="("&&me(2)!=="?"){je("qmark",G);continue}if(P&&P.type==="paren"){let we=me(),Be=G;if(we==="<"&&!Mr.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(P.value==="("&&!/[!=<:]/.test(we)||we==="<"&&!/<([!=]|\w+>)/.test(te()))&&(Be=`\\${G}`),ce({type:"text",value:G,output:Be});continue}if(r.dot!==!0&&(P.type==="slash"||P.type==="bos")){ce({type:"qmark",value:G,output:D});continue}ce({type:"qmark",value:G,output:Q});continue}if(G==="!"){if(r.noextglob!==!0&&me()==="("&&(me(2)!=="?"||!/[!=<:]/.test(me(3)))){je("negate",G);continue}if(r.nonegate!==!0&&M.index===0){Re();continue}}if(G==="+"){if(r.noextglob!==!0&&me()==="("&&me(2)!=="?"){je("plus",G);continue}if(P&&P.value==="("||r.regex===!1){ce({type:"plus",value:G,output:p});continue}if(P&&(P.type==="bracket"||P.type==="paren"||P.type==="brace")||M.parens>0){ce({type:"plus",value:G});continue}ce({type:"plus",value:p});continue}if(G==="@"){if(r.noextglob!==!0&&me()==="("&&me(2)!=="?"){ce({type:"at",extglob:!0,value:G,output:""});continue}ce({type:"text",value:G});continue}if(G!=="*"){(G==="$"||G==="^")&&(G=`\\${G}`);let ne=Z7.exec(te());ne&&(G+=ne[0],M.index+=ne[0].length),ce({type:"text",value:G});continue}if(P&&(P.type==="globstar"||P.star===!0)){P.type="star",P.star=!0,P.value+=G,P.output=ee,M.backtrack=!0,M.globstar=!0,_(G);continue}let ie=te();if(r.noextglob!==!0&&/^\([^?]/.test(ie)){je("star",G);continue}if(P.type==="star"){if(r.noglobstar===!0){_(G);continue}let ne=P.prev,we=ne.prev,Be=ne.type==="slash"||ne.type==="bos",ct=we&&(we.type==="star"||we.type==="globstar");if(r.bash===!0&&(!Be||ie[0]&&ie[0]!=="/")){ce({type:"star",value:G,output:""});continue}let Le=M.braces>0&&(ne.type==="comma"||ne.type==="brace"),pr=q.length&&(ne.type==="pipe"||ne.type==="paren");if(!Be&&ne.type!=="paren"&&!Le&&!pr){ce({type:"star",value:G,output:""});continue}for(;ie.slice(0,3)==="/**";){let Vt=t[M.index+4];if(Vt&&Vt!=="/")break;ie=ie.slice(3),_("/**",3)}if(ne.type==="bos"&&ge()){P.type="globstar",P.value+=G,P.output=k(r),M.output=P.output,M.globstar=!0,_(G);continue}if(ne.type==="slash"&&ne.prev.type!=="bos"&&!ct&&ge()){M.output=M.output.slice(0,-(ne.output+P.output).length),ne.output=`(?:${ne.output}`,P.type="globstar",P.output=k(r)+(r.strictSlashes?")":"|$)"),P.value+=G,M.globstar=!0,M.output+=ne.output+P.output,_(G);continue}if(ne.type==="slash"&&ne.prev.type!=="bos"&&ie[0]==="/"){let Vt=ie[1]!==void 0?"|$":"";M.output=M.output.slice(0,-(ne.output+P.output).length),ne.output=`(?:${ne.output}`,P.type="globstar",P.output=`${k(r)}${a}|${a}${Vt})`,P.value+=G,M.output+=ne.output+P.output,M.globstar=!0,_(G+$()),ce({type:"slash",value:"/",output:""});continue}if(ne.type==="bos"&&ie[0]==="/"){P.type="globstar",P.value+=G,P.output=`(?:^|${a}|${k(r)}${a})`,M.output=P.output,M.globstar=!0,_(G+$()),ce({type:"slash",value:"/",output:""});continue}M.output=M.output.slice(0,-P.output.length),P.type="globstar",P.output=k(r),P.value+=G,M.output+=P.output,M.globstar=!0,_(G);continue}let Ne={type:"star",value:G,output:ee};if(r.bash===!0){Ne.output=".*?",(P.type==="bos"||P.type==="slash")&&(Ne.output=U+Ne.output),ce(Ne);continue}if(P&&(P.type==="bracket"||P.type==="paren")&&r.regex===!0){Ne.output=G,ce(Ne);continue}(M.index===M.start||P.type==="slash"||P.type==="dot")&&(P.type==="dot"?(M.output+=m,P.output+=m):r.dot===!0?(M.output+=E,P.output+=E):(M.output+=U,P.output+=U),me()!=="*"&&(M.output+=l,P.output+=l)),ce(Ne)}for(;M.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Xs("closing","]"));M.output=Mr.escapeLast(M.output,"["),Ee("brackets")}for(;M.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Xs("closing",")"));M.output=Mr.escapeLast(M.output,"("),Ee("parens")}for(;M.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Xs("closing","}"));M.output=Mr.escapeLast(M.output,"{"),Ee("braces")}if(r.strictSlashes!==!0&&(P.type==="star"||P.type==="bracket")&&ce({type:"maybe_slash",value:"",output:`${a}?`}),M.backtrack===!0){M.output="";for(let ie of M.tokens)M.output+=ie.output!=null?ie.output:ie.value,ie.suffix&&(M.output+=ie.suffix)}return M};Yh.fastpaths=(t,e)=>{let r={...e},n=typeof r.maxLength=="number"?Math.min(kp,r.maxLength):kp,i=t.length;if(i>n)throw new SyntaxError(`Input length: ${i}, exceeds maximum allowed length: ${n}`);t=uM[t]||t;let A=Mr.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:s,ONE_CHAR:c,DOTS_SLASH:u,NO_DOT:g,NO_DOTS:d,NO_DOTS_SLASH:p,STAR:a,START_ANCHOR:l}=hu.globChars(A),C=r.dot?d:g,I=r.dot?p:g,m=r.capture?"":"?:",E={negated:!1,prefix:""},Q=r.bash===!0?".*?":a;r.capture&&(Q=`(${Q})`);let D=U=>U.noglobstar===!0?Q:`(${m}(?:(?!${l}${U.dot?u:o}).)*?)`,S=U=>{switch(U){case"*":return`${C}${c}${Q}`;case".*":return`${o}${c}${Q}`;case"*.*":return`${C}${Q}${o}${c}${Q}`;case"*/*":return`${C}${Q}${s}${c}${I}${Q}`;case"**":return C+D(r);case"**/*":return`(?:${C}${D(r)}${s})?${I}${c}${Q}`;case"**/*.*":return`(?:${C}${D(r)}${s})?${I}${Q}${o}${c}${Q}`;case"**/.*":return`(?:${C}${D(r)}${s})?${o}${c}${Q}`;default:{let L=/^(.*?)\.(\w+)$/.exec(U);if(!L)return;let ee=S(L[1]);return ee?ee+o+L[2]:void 0}}},R=Mr.removePrefix(t,E),k=S(R);return k&&r.strictSlashes!==!0&&(k+=`${s}?`),k};pM.exports=Yh});var IM=w((zTe,CM)=>{"use strict";var oX=W("path"),sX=cM(),jh=dM(),qh=fu(),aX=Iu(),cX=t=>t&&typeof t=="object"&&!Array.isArray(t),Lt=(t,e,r=!1)=>{if(Array.isArray(t)){let g=t.map(p=>Lt(p,e,r));return p=>{for(let a of g){let l=a(p);if(l)return l}return!1}}let n=cX(t)&&t.tokens&&t.input;if(t===""||typeof t!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let i=e||{},A=qh.isWindows(e),o=n?Lt.compileRe(t,e):Lt.makeRe(t,e,!1,!0),s=o.state;delete o.state;let c=()=>!1;if(i.ignore){let g={...e,ignore:null,onMatch:null,onResult:null};c=Lt(i.ignore,g,r)}let u=(g,d=!1)=>{let{isMatch:p,match:a,output:l}=Lt.test(g,o,e,{glob:t,posix:A}),C={glob:t,state:s,regex:o,posix:A,input:g,output:l,match:a,isMatch:p};return typeof i.onResult=="function"&&i.onResult(C),p===!1?(C.isMatch=!1,d?C:!1):c(g)?(typeof i.onIgnore=="function"&&i.onIgnore(C),C.isMatch=!1,d?C:!1):(typeof i.onMatch=="function"&&i.onMatch(C),d?C:!0)};return r&&(u.state=s),u};Lt.test=(t,e,r,{glob:n,posix:i}={})=>{if(typeof t!="string")throw new TypeError("Expected input to be a string");if(t==="")return{isMatch:!1,output:""};let A=r||{},o=A.format||(i?qh.toPosixSlashes:null),s=t===n,c=s&&o?o(t):t;return s===!1&&(c=o?o(t):t,s=c===n),(s===!1||A.capture===!0)&&(A.matchBase===!0||A.basename===!0?s=Lt.matchBase(t,e,r,i):s=e.exec(c)),{isMatch:!!s,match:s,output:c}};Lt.matchBase=(t,e,r,n=qh.isWindows(r))=>(e instanceof RegExp?e:Lt.makeRe(e,r)).test(oX.basename(t));Lt.isMatch=(t,e,r)=>Lt(e,r)(t);Lt.parse=(t,e)=>Array.isArray(t)?t.map(r=>Lt.parse(r,e)):jh(t,{...e,fastpaths:!1});Lt.scan=(t,e)=>sX(t,e);Lt.compileRe=(t,e,r=!1,n=!1)=>{if(r===!0)return t.output;let i=e||{},A=i.contains?"":"^",o=i.contains?"":"$",s=`${A}(?:${t.output})${o}`;t&&t.negated===!0&&(s=`^(?!${s}).*$`);let c=Lt.toRegex(s,e);return n===!0&&(c.state=t),c};Lt.makeRe=(t,e={},r=!1,n=!1)=>{if(!t||typeof t!="string")throw new TypeError("Expected a non-empty string");let i={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(t[0]==="."||t[0]==="*")&&(i.output=jh.fastpaths(t,e)),i.output||(i=jh(t,e)),Lt.compileRe(i,e,r,n)};Lt.toRegex=(t,e)=>{try{let r=e||{};return new RegExp(t,r.flags||(r.nocase?"i":""))}catch(r){if(e&&e.debug===!0)throw r;return/$^/}};Lt.constants=aX;CM.exports=Lt});var mM=w((ZTe,fM)=>{"use strict";fM.exports=IM()});var $h=w((XTe,yM)=>{"use strict";var EM=W("util"),BM=Wk(),fi=mM(),Vh=fu(),hM=t=>t===""||t==="./",QM=t=>{let e=t.indexOf("{");return e>-1&&t.indexOf("}",e)>-1},ht=(t,e,r)=>{e=[].concat(e),t=[].concat(t);let n=new Set,i=new Set,A=new Set,o=0,s=g=>{A.add(g.output),r&&r.onResult&&r.onResult(g)};for(let g=0;g<e.length;g++){let d=fi(String(e[g]),{...r,onResult:s},!0),p=d.state.negated||d.state.negatedExtglob;p&&o++;for(let a of t){let l=d(a,!0);(p?!l.isMatch:l.isMatch)&&(p?n.add(l.output):(n.delete(l.output),i.add(l.output)))}}let u=(o===e.length?[...A]:[...i]).filter(g=>!n.has(g));if(r&&u.length===0){if(r.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(r.nonull===!0||r.nullglob===!0)return r.unescape?e.map(g=>g.replace(/\\/g,"")):e}return u};ht.match=ht;ht.matcher=(t,e)=>fi(t,e);ht.isMatch=(t,e,r)=>fi(e,r)(t);ht.any=ht.isMatch;ht.not=(t,e,r={})=>{e=[].concat(e).map(String);let n=new Set,i=[],A=s=>{r.onResult&&r.onResult(s),i.push(s.output)},o=new Set(ht(t,e,{...r,onResult:A}));for(let s of i)o.has(s)||n.add(s);return[...n]};ht.contains=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${EM.inspect(t)}"`);if(Array.isArray(e))return e.some(n=>ht.contains(t,n,r));if(typeof e=="string"){if(hM(t)||hM(e))return!1;if(t.includes(e)||t.startsWith("./")&&t.slice(2).includes(e))return!0}return ht.isMatch(t,e,{...r,contains:!0})};ht.matchKeys=(t,e,r)=>{if(!Vh.isObject(t))throw new TypeError("Expected the first argument to be an object");let n=ht(Object.keys(t),e,r),i={};for(let A of n)i[A]=t[A];return i};ht.some=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let A=fi(String(i),r);if(n.some(o=>A(o)))return!0}return!1};ht.every=(t,e,r)=>{let n=[].concat(t);for(let i of[].concat(e)){let A=fi(String(i),r);if(!n.every(o=>A(o)))return!1}return!0};ht.all=(t,e,r)=>{if(typeof t!="string")throw new TypeError(`Expected a string: "${EM.inspect(t)}"`);return[].concat(e).every(n=>fi(n,r)(t))};ht.capture=(t,e,r)=>{let n=Vh.isWindows(r),A=fi.makeRe(String(t),{...r,capture:!0}).exec(n?Vh.toPosixSlashes(e):e);if(A)return A.slice(1).map(o=>o===void 0?"":o)};ht.makeRe=(...t)=>fi.makeRe(...t);ht.scan=(...t)=>fi.scan(...t);ht.parse=(t,e)=>{let r=[];for(let n of[].concat(t||[]))for(let i of BM(String(n),e))r.push(fi.parse(i,e));return r};ht.braces=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!QM(t)?[t]:BM(t,e)};ht.braceExpand=(t,e)=>{if(typeof t!="string")throw new TypeError("Expected a string");return ht.braces(t,{...e,expand:!0})};ht.hasBraces=QM;yM.exports=ht});var Mp=x(()=>{"use strict"});var uX,Wh=x(()=>{"use strict";uX=Ze($h(),1);Mp()});var lX,DM=x(()=>{"use strict";lX=Ze($h(),1);Wh()});var Np=x(()=>{"use strict"});var wM=x(()=>{"use strict";Ci()});var vM=w((gPe,SM)=>{"use strict";SM.exports=({onlyFirst:t=!1}={})=>{let e=["[\\u001B\\u009B][[\\]()#;?]*(?:(?:(?:(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]+)*|[a-zA-Z\\d]+(?:;[-a-zA-Z\\d\\/#&.:=?%@~_]*)*)?\\u0007)","(?:(?:\\d{1,4}(?:;\\d{0,4})*)?[\\dA-PR-TZcf-ntqry=><~]))"].join("|");return new RegExp(e,t?void 0:"g")}});var xM=w((lPe,bM)=>{"use strict";var pX=vM();bM.exports=t=>typeof t=="string"?t.replace(pX(),""):t});var dX,FM=x(()=>{"use strict";dX=Ze(xM(),1)});var dPe,RM=x(()=>{"use strict";dPe=process.platform==="win32"?"C:\\Windows\\System32\\drivers\\etc\\hosts":"/etc/hosts"});var Bu=x(()=>{"use strict";Mp();Mp()});var zh=x(()=>{"use strict";Bu();Bu()});var kM=x(()=>{"use strict"});var Zh=w((yPe,MM)=>{var ea=1e3,ta=ea*60,ra=ta*60,Mo=ra*24,CX=Mo*7,IX=Mo*365.25;MM.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return fX(t);if(r==="number"&&isFinite(t))return e.long?hX(t):mX(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function fX(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),n=(e[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return r*IX;case"weeks":case"week":case"w":return r*CX;case"days":case"day":case"d":return r*Mo;case"hours":case"hour":case"hrs":case"hr":case"h":return r*ra;case"minutes":case"minute":case"mins":case"min":case"m":return r*ta;case"seconds":case"second":case"secs":case"sec":case"s":return r*ea;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function mX(t){var e=Math.abs(t);return e>=Mo?Math.round(t/Mo)+"d":e>=ra?Math.round(t/ra)+"h":e>=ta?Math.round(t/ta)+"m":e>=ea?Math.round(t/ea)+"s":t+"ms"}function hX(t){var e=Math.abs(t);return e>=Mo?Tp(t,e,Mo,"day"):e>=ra?Tp(t,e,ra,"hour"):e>=ta?Tp(t,e,ta,"minute"):e>=ea?Tp(t,e,ea,"second"):t+" ms"}function Tp(t,e,r,n){var i=e>=r*1.5;return Math.round(t/r)+" "+n+(i?"s":"")}});var Xh=w((DPe,NM)=>{function EX(t){r.debug=r,r.default=r,r.coerce=c,r.disable=o,r.enable=i,r.enabled=s,r.humanize=Zh(),r.destroy=u,Object.keys(t).forEach(g=>{r[g]=t[g]}),r.names=[],r.skips=[],r.formatters={};function e(g){let d=0;for(let p=0;p<g.length;p++)d=(d<<5)-d+g.charCodeAt(p),d|=0;return r.colors[Math.abs(d)%r.colors.length]}r.selectColor=e;function r(g){let d,p=null,a,l;function C(...I){if(!C.enabled)return;let m=C,E=Number(new Date),Q=E-(d||E);m.diff=Q,m.prev=d,m.curr=E,d=E,I[0]=r.coerce(I[0]),typeof I[0]!="string"&&I.unshift("%O");let D=0;I[0]=I[0].replace(/%([a-zA-Z%])/g,(R,k)=>{if(R==="%%")return"%";D++;let U=r.formatters[k];if(typeof U=="function"){let L=I[D];R=U.call(m,L),I.splice(D,1),D--}return R}),r.formatArgs.call(m,I),(m.log||r.log).apply(m,I)}return C.namespace=g,C.useColors=r.useColors(),C.color=r.selectColor(g),C.extend=n,C.destroy=r.destroy,Object.defineProperty(C,"enabled",{enumerable:!0,configurable:!1,get:()=>p!==null?p:(a!==r.namespaces&&(a=r.namespaces,l=r.enabled(g)),l),set:I=>{p=I}}),typeof r.init=="function"&&r.init(C),C}function n(g,d){let p=r(this.namespace+(typeof d>"u"?":":d)+g);return p.log=this.log,p}function i(g){r.save(g),r.namespaces=g,r.names=[],r.skips=[];let d=(typeof g=="string"?g:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let p of d)p[0]==="-"?r.skips.push(p.slice(1)):r.names.push(p)}function A(g,d){let p=0,a=0,l=-1,C=0;for(;p<g.length;)if(a<d.length&&(d[a]===g[p]||d[a]==="*"))d[a]==="*"?(l=a,C=p,a++):(p++,a++);else if(l!==-1)a=l+1,C++,p=C;else return!1;for(;a<d.length&&d[a]==="*";)a++;return a===d.length}function o(){let g=[...r.names,...r.skips.map(d=>"-"+d)].join(",");return r.enable(""),g}function s(g){for(let d of r.skips)if(A(g,d))return!1;for(let d of r.names)if(A(g,d))return!0;return!1}function c(g){return g instanceof Error?g.stack||g.message:g}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}NM.exports=EX});var TM=w((Xr,Pp)=>{Xr.formatArgs=QX;Xr.save=yX;Xr.load=DX;Xr.useColors=BX;Xr.storage=wX();Xr.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();Xr.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function BX(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function QX(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+Pp.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,n=0;t[0].replace(/%[a-zA-Z%]/g,i=>{i!=="%%"&&(r++,i==="%c"&&(n=r))}),t.splice(n,0,e)}Xr.log=console.debug||console.log||(()=>{});function yX(t){try{t?Xr.storage.setItem("debug",t):Xr.storage.removeItem("debug")}catch{}}function DX(){let t;try{t=Xr.storage.getItem("debug")||Xr.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function wX(){try{return localStorage}catch{}}Pp.exports=Xh()(Xr);var{formatters:SX}=Pp.exports;SX.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var UM=w((wPe,PM)=>{"use strict";PM.exports=(t,e=process.argv)=>{let r=t.startsWith("-")?"":t.length===1?"-":"--",n=e.indexOf(r+t),i=e.indexOf("--");return n!==-1&&(i===-1||n<i)}});var _M=w((SPe,GM)=>{"use strict";var vX=W("os"),LM=W("tty"),bn=UM(),{env:rr}=process,Up;bn("no-color")||bn("no-colors")||bn("color=false")||bn("color=never")?Up=0:(bn("color")||bn("colors")||bn("color=true")||bn("color=always"))&&(Up=1);function bX(){if("FORCE_COLOR"in rr)return rr.FORCE_COLOR==="true"?1:rr.FORCE_COLOR==="false"?0:rr.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(rr.FORCE_COLOR,10),3)}function xX(t){return t===0?!1:{level:t,hasBasic:!0,has256:t>=2,has16m:t>=3}}function FX(t,{streamIsTTY:e,sniffFlags:r=!0}={}){let n=bX();n!==void 0&&(Up=n);let i=r?Up:n;if(i===0)return 0;if(r){if(bn("color=16m")||bn("color=full")||bn("color=truecolor"))return 3;if(bn("color=256"))return 2}if(t&&!e&&i===void 0)return 0;let A=i||0;if(rr.TERM==="dumb")return A;if(process.platform==="win32"){let o=vX.release().split(".");return Number(o[0])>=10&&Number(o[2])>=10586?Number(o[2])>=14931?3:2:1}if("CI"in rr)return["TRAVIS","CIRCLECI","APPVEYOR","GITLAB_CI","GITHUB_ACTIONS","BUILDKITE","DRONE"].some(o=>o in rr)||rr.CI_NAME==="codeship"?1:A;if("TEAMCITY_VERSION"in rr)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(rr.TEAMCITY_VERSION)?1:0;if(rr.COLORTERM==="truecolor")return 3;if("TERM_PROGRAM"in rr){let o=Number.parseInt((rr.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(rr.TERM_PROGRAM){case"iTerm.app":return o>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(rr.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(rr.TERM)||"COLORTERM"in rr?1:A}function eE(t,e={}){let r=FX(t,{streamIsTTY:t&&t.isTTY,...e});return xX(r)}GM.exports={supportsColor:eE,stdout:eE({isTTY:LM.isatty(1)}),stderr:eE({isTTY:LM.isatty(2)})}});var OM=w((nr,Gp)=>{var RX=W("tty"),Lp=W("util");nr.init=LX;nr.log=TX;nr.formatArgs=MX;nr.save=PX;nr.load=UX;nr.useColors=kX;nr.destroy=Lp.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");nr.colors=[6,2,3,4,5,1];try{let t=_M();t&&(t.stderr||t).level>=2&&(nr.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}nr.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(i,A)=>A.toUpperCase()),n=process.env[e];return/^(yes|on|true|enabled)$/i.test(n)?n=!0:/^(no|off|false|disabled)$/i.test(n)?n=!1:n==="null"?n=null:n=Number(n),t[r]=n,t},{});function kX(){return"colors"in nr.inspectOpts?!!nr.inspectOpts.colors:RX.isatty(process.stderr.fd)}function MX(t){let{namespace:e,useColors:r}=this;if(r){let n=this.color,i="\x1B[3"+(n<8?n:"8;5;"+n),A=` ${i};1m${e} \x1B[0m`;t[0]=A+t[0].split(`
|
|
33
33
|
`).join(`
|
|
34
34
|
`+A),t.push(i+"m+"+Gp.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=NX()+e+" "+t[0]}function NX(){return nr.inspectOpts.hideDate?"":new Date().toISOString()+" "}function TX(...t){return process.stderr.write(Lp.formatWithOptions(nr.inspectOpts,...t)+`
|
|
35
35
|
`)}function PX(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function UX(){return process.env.DEBUG}function LX(t){t.inspectOpts={};let e=Object.keys(nr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=nr.inspectOpts[e[r]]}Gp.exports=Xh()(nr);var{formatters:HM}=Gp.exports;HM.o=function(t){return this.inspectOpts.colors=this.useColors,Lp.inspect(t,this.inspectOpts).split(`
|
|
@@ -622,7 +622,7 @@ Restarting server after Builder Devtools update...
|
|
|
622
622
|
<h3>How's Devtools working for you?</h3>
|
|
623
623
|
<p>We'd love your feedback!</p>
|
|
624
624
|
</div>
|
|
625
|
-
\`,t.appendChild(e),setTimeout(()=>{e.classList.add("menu-toggle-tooltip-show"),e.addEventListener("click",()=>{e.classList.remove("menu-toggle-tooltip-show")})},1e3)};function ui(t){t.getElementById("go-to-builder").addEventListener("click",a=>{a.preventDefault(),a.stopPropagation(),Ee(t,!1),window.open(Ur(),"builder")}),t.getElementById("components-link").addEventListener("click",a=>{a.preventDefault(),a.stopPropagation();let c=t.querySelector(".nav-cmp-list .section-content");c.scrollTop=0,oe(t,"nav-cmp-list"),ai(t)}),t.getElementById("settings-link").addEventListener("click",a=>{a.preventDefault(),a.stopPropagation(),oe(t,"nav-settings")}),t.getElementById("add-page-link").addEventListener("click",a=>{a.preventDefault(),a.stopPropagation(),Ee(t,!1),window.open(je(),"builder")}),t.getElementById("import-from-figma").addEventListener("click",a=>{a.preventDefault(),a.stopPropagation(),Ee(t,!1),window.open("https://www.figma.com/community/plugin/747985167520967365/builder-io-ai-powered-figma-to-code-react-vue-tailwind-more")})}function ci(t){let e=t.getElementById("enable-edit");e.addEventListener("change",r=>{r.stopPropagation(),Ht(e.checked)}),e.checked=it(),Ht(e.checked)}var Dt=class extends HTMLElement{connectedCallback(){let e=this.attachShadow({mode:"open"});e.innerHTML=\`<style>*,*:before,*:after{box-sizing:border-box}:host{--background-color: rgba(40, 40, 40, 1);--primary-color: rgba(72, 161, 255, 1);--primary-color-subdued: rgb(72, 161, 255, .6);--primary-color-highlight: rgb(126, 188, 255);--primary-contrast-color: white;--edit-color: #1d74e2;--edit-color-highlight: #1c6bd1;--edit-color-alpha: rgb(72, 161, 255, .15);--error-color: #ff2b55;--text-color: white;--text-color-highlight: white;--border-color: #454545;--button-background-color-hover: rgba(255, 255, 255, .1);--menu-width: 320px;--transition-time: .15s;--font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";font-family:var(--font-family);line-height:1.6}button{cursor:pointer;color:var(--text-color);-webkit-tap-highlight-color:transparent}input,select,button{font-family:var(--font-family)}.menu-toggle{position:absolute;right:0;bottom:0;pointer-events:auto;padding:8px;background:transparent;border:none;appearance:none}.menu-toggle div{position:relative;width:64px;height:64px;pointer-events:none;border-radius:50%;background:#000;border:1px solid white;box-shadow:#00000054 0 0 8px}.menu-toggle:hover div{background-color:var(--background-color);border:1px solid rgb(220,220,220)}.menu-toggle svg{position:absolute;top:15px;left:15px;width:33px;height:32px}div.highlight-bg{position:absolute;top:-1px;left:-1px;background-color:#1a1a1a;pointer-events:none;transition:all .4s ease-out;opacity:0}.menu-toggle-highlight-no-transition div.highlight-bg{transition:none}.menu-toggle-highlight div.highlight-bg{opacity:1}.menu-toggle-tooltip{position:absolute;bottom:0;right:0;width:382px;height:72px;padding:0;text-align:left;appearance:none;background-color:transparent;border:none;pointer-events:none;transform:translate3d(320px,0,0);opacity:0;transition:all .15s ease-in-out;color:#fff}.menu-toggle-tooltip.menu-toggle-tooltip-show{pointer-events:auto;opacity:1;transform:translateZ(0)}.menu-toggle-tooltip-content{position:absolute;inset:0 95px 10px 0;padding:8px 12px;background-color:var(--primary-color);box-shadow:#00000054 0 0 20px;border-radius:2px}.menu-toggle-tooltip-content:before{content:"";position:absolute;bottom:15px;right:-6px;width:30px;height:30px;background-color:var(--primary-color);transform:rotate(45deg)}.menu-toggle-tooltip:hover .menu-toggle-tooltip-content,.menu-toggle-tooltip:hover .menu-toggle-tooltip-content:before{background-color:var(--primary-color-highlight)}.menu-toggle-tooltip-content h3{margin:0;font-size:16px}.menu-toggle-tooltip-content p{margin:0;font-size:12px}section{position:absolute;display:grid;grid-template-rows:64px auto 64px;top:0;left:0;width:100%;height:100%;padding:0;pointer-events:none}.section-content{margin:0;padding:0 0 10px;font-weight:300;transform:translate3d(105%,0,0);transition:transform var(--transition-time) ease-in-out;overflow-y:auto}.section-content .error{color:var(--error-color);font-weight:700}section a{text-decoration:none;color:var(--text-color)}section h3,section p{margin-left:16px;margin-right:16px}.info{font-size:12px}ul.list{list-style:none;padding:0;margin:0}ul.list li{display:block;padding:0;margin:0}ul.list a,ul.list button{display:grid;grid-template-columns:24px auto;grid-gap:16px;padding:12px;margin:8px 0;border:none;background:transparent;appearance:none;width:100%;font-weight:300;text-align:left;text-decoration:none;color:var(--text-color)}ul.list a:hover,ul.list button:hover{text-decoration:none;color:var(--text-color);background-color:var(--button-background-color-hover)}ul.list a span,ul.list button span{display:block;font-size:16px;font-weight:500;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}header{position:relative;display:grid;grid-template-columns:44px 1fr;gap:8px;padding-left:8px;border-bottom:1px solid var(--border-color);transition:opacity var(--transition-time) ease-in-out;opacity:0;pointer-events:none}header>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-home header>div{margin-right:56px}header h2{margin:7px 0 0;font-size:18px;font-weight:500;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header p{margin:2px 0 0;font-size:12px;font-weight:300;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header p button{display:block;margin:0;padding:0;width:100%;font-size:12px;font-weight:300;text-decoration:none;appearance:none;text-align:left;background-color:transparent;border:none;color:var(--primary-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header p button:hover{text-decoration:underline;color:var(--primary-color)}.builder-logo{margin:12px 0 0 8px}#close{display:block;position:absolute;appearance:none;background:transparent;border:none;border-radius:50%;margin:0;padding:0;right:4px;top:8px;width:48px;height:48px;z-index:1;opacity:.7}#close:hover{opacity:1;background-color:var(--button-background-color-hover)}#close svg{position:absolute;top:12px;left:12px;width:24px;height:24px;fill:currentColor;pointer-events:none}.back-button{position:relative;display:block;margin:7px 0 0 -2px;width:48px;height:48px;background:transparent;border:none;appearance:none;border-radius:50%}.back-button:hover{background-color:var(--button-background-color-hover)}.back-button svg{position:absolute;top:12px;left:12px;width:24px;height:24px;fill:currentColor;pointer-events:none}footer{border-top:1px solid var(--border-color);transition:opacity var(--transition-time) ease-in-out;opacity:0;pointer-events:none}section.nav-cmp-list{grid-template-rows:64px auto 120px}footer a{text-decoration:underline;color:var(--primary-color)}footer a:hover{color:var(--primary-color);text-decoration:none}.nav-list{padding:2px 0}.nav-loading{pointer-events:none}.nav-loading-icon{position:absolute;display:inline-block;top:170px;left:0;width:100%;transform:translateZ(0);pointer-events:auto;opacity:0;transition:all 50ms ease-in-out;transition-delay:50ms;pointer-events:none}.nav-loading .nav-loading-icon{opacity:.5}.nav-list h4{margin:8px 8px 8px 10px;font-size:14px;font-weight:600}.nav-list .nav-list-item+h4{margin-top:30px}.nav-list-item{display:grid;grid-template-columns:1fr 1fr;gap:8px;position:relative;margin:2px 0;padding:8px 28px 8px 46px;width:100%;font-size:14px;font-weight:300;text-align:left;border:none;background:transparent;appearance:none}.nav-list-item:hover{background-color:var(--button-background-color-hover)}.nav-list-item-icon{position:absolute;top:4px;left:10px;width:24px;height:24px;object-fit:contain;filter:invert(100%);background-size:24px 24px;background-repeat:no-repeat;background-position:center center}.nav-list-item span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}.nav-list-item:after{display:block;position:absolute;content:"";background-image:url('data:image/svg+xml,<svg width="8" height="14" viewBox="0 0 8 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L7 7L1 13" stroke="%23F2F2F2" stroke-opacity="0.5" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/></svg>');background-repeat:no-repeat;background-position:12px 9px;top:0;right:0;width:32px;height:32px;pointer-events:none}.nav-list-item-note{opacity:0;font-size:12px;padding-top:1px;text-align:right}.nav-list-item:hover .nav-list-item-note{opacity:.5}.ui-select{display:block;margin:8px 0 16px;padding:8px 16px;cursor:pointer}.ui-select h3{margin:0;font-size:14px;font-weight:500}.ui-select p{margin:8px 0;font-size:12px;font-weight:300}.ui-select .select{position:relative;margin:8px 0;border-radius:4px;padding:0;line-height:1.1;overflow:hidden;border:1px solid var(--border-color)}.ui-select select{appearance:none;background-color:transparent;border:none;outline:none;padding:8px 32px 8px 8px;margin:0;width:100%;font-size:14px;cursor:pointer;text-overflow:ellipsis;opacity:.6;color:var(--text-color)}.ui-select .select:after{content:"";top:6px;right:5px;width:24px;height:24px;position:absolute;background-image:url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="%23F2F2F2" d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"/></svg>');background-repeat:no-repeat;background-position:center;pointer-events:none;opacity:.6}.ui-select .select:hover{border-color:var(--primary-color-subdued)}.ui-text-input .select:focus-within{border-color:var(--primary-color)}.ui-text-input .select:focus-within select{opacity:1}.spinner:after{content:" ";display:block;width:32px;height:32px;margin:0 auto;pointer-events:auto;border-radius:50%;border:3px solid var(--text-color);border-color:var(--text-color) transparent var(--text-color) transparent;animation:spinner .75s linear infinite}@keyframes spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ui-switch{display:grid;grid-template-columns:auto 48px;grid-gap:20px;margin:8px 0 16px;padding:8px 0 8px 16px;cursor:pointer}.ui-switch>*{pointer-events:none}.ui-switch input{display:none;visibility:hidden}.ui-switch .switcher{display:inline-block;border-radius:100px;width:35px;height:14px;background-color:#ccc;position:relative;top:6px;vertical-align:middle;cursor:pointer}.ui-switch input[type=checkbox]:checked+.switcher{background-color:var(--primary-color-subdued)}.ui-switch .switcher:before{content:"";display:block;width:20px;height:20px;background-color:var(--text-color);box-shadow:0 1px 3px #0009;border-radius:50%;position:absolute;top:-3px;left:0;margin-right:0;transition:all .15s}.ui-switch input[type=checkbox]:checked+.switcher:before{left:100%;margin-left:-20px;background-color:var(--primary-color)}.ui-switch h3{margin:0;font-size:14px;font-weight:500}.ui-switch p{margin:4px 0 0;font-size:12px;font-weight:300}.ui-text-input{display:block;margin:8px 0 16px;padding:8px 16px;cursor:pointer}.ui-text-input h3{margin:0;font-size:14px;font-weight:500}.ui-text-input p{margin:8px 0;font-size:12px;font-weight:300}.ui-text-input .input{position:relative;margin:8px 0;border:1px solid var(--border-color);border-radius:4px;background:transparent;padding:2px;overflow:hidden}.ui-text-input input{display:block;width:235px;font-size:14px;border:none;background:transparent;padding:6px;appearance:none;color:var(--text-color);opacity:.6;outline:none}.ui-text-input .input:hover{border-color:var(--primary-color-subdued)}.ui-text-input .input:focus-within{border-color:var(--primary-color)}.ui-text-input .input:focus-within input{opacity:1}.ui-text-input .input:after{content:"";position:absolute;top:5px;right:14px;width:8px;height:17px;border:2px solid rgba(51,181,51,1);border-top:none;border-left:none;transform:rotate(45deg);opacity:0;transition:opacity 80ms ease-in-out;pointer-events:none}.ui-text-input.saved .input:after{opacity:1}.ui-toast{position:fixed;bottom:8px;left:8px;right:8px;padding:6px 12px;font-size:14px;border-radius:4px;transform:translate3d(0,150%,0);opacity:0;transition:all var(--transition-time) ease-in-out;background-color:var(--primary-color-subdued);color:var(--text-color);pointer-events:none}.ui-toast.ui-toast-show{transform:translateZ(0);opacity:1;pointer-events:auto}[data-view=nav-home] .nav-home .section-content,[data-view=nav-cmp-list] .nav-cmp-list .section-content,[data-view=nav-cmp-detail] .nav-cmp-detail .section-content,[data-view=nav-cmp-input] .nav-cmp-input .section-content,[data-view=nav-settings] .nav-settings .section-content{transform:translateZ(0);pointer-events:auto}[data-view=nav-home] .nav-home header,[data-view=nav-home] .nav-home footer,[data-view=nav-cmp-list] .nav-cmp-list header,[data-view=nav-cmp-list] .nav-cmp-list footer,[data-view=nav-cmp-detail] .nav-cmp-detail header,[data-view=nav-cmp-detail] .nav-cmp-detail footer,[data-view=nav-cmp-input] .nav-cmp-input header,[data-view=nav-cmp-input] .nav-cmp-input footer,[data-view=nav-settings] .nav-settings header,[data-view=nav-settings] .nav-settings footer{opacity:1;pointer-events:auto}[data-view=nav-cmp-list] .nav-home .section-content,[data-view=nav-cmp-detail] .nav-home .section-content,[data-view=nav-cmp-detail] .nav-cmp-list .section-content,[data-view=nav-cmp-input] .nav-home .section-content,[data-view=nav-cmp-input] .nav-cmp-list .section-content,[data-view=nav-cmp-input] .nav-cmp-detail .section-content,[data-view=nav-settings] .nav-home .section-content{transform:translate3d(-105%,0,0)}.cmp-item .nav-list-item-icon{background-image:url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20.83 16.809C20.94 16.561 21 16.289 21 16.008V7.99001C20.9994 7.64108 20.9066 7.29851 20.731 6.99699C20.5554 6.69547 20.3032 6.44571 20 6.27301L13 2.26501C12.6954 2.09103 12.3508 1.99951 12 1.99951C11.6492 1.99951 11.3046 2.09103 11 2.26501L7.988 3.99001M5.441 5.44801L4 6.27301C3.381 6.62801 3 7.28301 3 7.99101V16.009C3 16.718 3.381 17.372 4 17.726L11 21.734C11.3046 21.908 11.6492 21.9995 12 21.9995C12.3508 21.9995 12.6954 21.908 13 21.734L18.544 18.56" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 22V12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M14.532 10.538L20.73 6.95996" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M3.27002 6.95996L12 12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M3 3L21 21" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/></svg>');opacity:.3}.cmp-item.registered .nav-list-item-icon{background-image:url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M21 16.008V7.99001C20.9994 7.64108 20.9066 7.29851 20.731 6.99699C20.5554 6.69547 20.3032 6.44571 20 6.27301L13 2.26501C12.6954 2.09103 12.3508 1.99951 12 1.99951C11.6492 1.99951 11.3046 2.09103 11 2.26501L4 6.27301C3.381 6.62801 3 7.28301 3 7.99101V16.009C3 16.718 3.381 17.372 4 17.726L11 21.734C11.3046 21.908 11.6492 21.9995 12 21.9995C12.3508 21.9995 12.6954 21.908 13 21.734L20 17.726C20.619 17.371 21 16.716 21 16.008Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 22V12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 12L20.73 6.95996" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M3.26999 6.95996L12 12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /></svg>');opacity:.8}.search-highlight{background-color:var(--primary-color-alpha);padding:0 2px;border-radius:2px;font-weight:500}.search-container{position:sticky;top:0;z-index:10;padding:12px 16px;background:var(--background-color);border-bottom:1px solid var(--border-color)}.search-input-wrapper{position:relative;display:flex;align-items:center}.search-icon{position:absolute;left:12px;color:var(--text-color-secondary);pointer-events:none}.component-search-input{width:100%;height:36px;padding:8px 36px;border:1px solid var(--border-color);border-radius:6px;background:var(--input-background);color:var(--text-color);font-size:14px;transition:border-color .2s,box-shadow .2s}.component-search-input:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 2px var(--primary-color-alpha)}.component-search-input::placeholder{color:var(--text-color-tertiary)}.clear-search-button{position:absolute;right:8px;padding:4px;color:var(--text-color-secondary);border:none;background:transparent;border-radius:4px;cursor:pointer;opacity:0;transition:opacity .2s,background-color .2s;display:flex;align-items:center;justify-content:center}.clear-search-button:hover{background-color:var(--hover-color)}.component-search-input:not(:placeholder-shown)+.clear-search-button{opacity:1}.no-results{padding:32px 16px;text-align:center;color:var(--text-color-secondary);font-size:14px}#cmp-detail{position:relative}.cmp-loading{pointer-events:none!important}.cmp-loading-icon{position:absolute;display:inline-block;top:170px;left:0;width:100%;transform:translateZ(0);pointer-events:auto;opacity:0;transition:all 50ms ease-in-out;transition-delay:50ms;pointer-events:none}.cmp-loading .cmp-loading-icon{opacity:.5}.cmp-cover{position:absolute;top:160px;left:0;width:100%;height:100vh;background:var(--background-color);transform:translateZ(0);pointer-events:none;display:none}[data-view=nav-cmp-detail] .cmp-cover{display:block;pointer-events:auto}.cmp-enabled .cmp-cover{transform:translate3d(0,105%,0);pointer-events:none}.section-ready .cmp-cover{transition:all var(--transition-time) ease-in-out}.cmp-detail-inputs-container{margin:8px 0 16px;padding:0}.cmp-detail-inputs-container h3{margin:0 0 6px;padding-left:16px;padding-right:8px;font-size:14px;font-weight:500;display:flex;justify-content:space-between;align-items:center}.cmp-detail-inputs-reload{font-weight:300;font-size:.9em;text-decoration:none;appearance:none;text-align:left;background-color:transparent;border:none;color:var(--primary-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cmp-detail-inputs-reload:hover{text-decoration:underline;color:var(--primary-color)}.cmp-detail-inputs-container .cmp-inputs-empty{padding:0;margin-top:12px;font-size:12px;font-weight:300;opacity:.5;font-style:italic}.cmp-detail-inputs-container .nav-list-item-icon{opacity:.8;background-size:20px 20px;background-position:4px center}.input-icon{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path></svg>')}.input-icon-array{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 16v-6a2 2 0 1 1 4 0v6"></path> <path d="M10 13h4"></path></svg>')}.input-icon-boolean{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 16h2a2 2 0 1 0 0 -4h-2h2a2 2 0 1 0 0 -4h-2v8z"></path></svg>')}.input-icon-number{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 16v-8l4 8v-8"></path></svg>')}.input-icon-object{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M12 8a2 2 0 0 1 2 2v4a2 2 0 1 1 -4 0v-4a2 2 0 0 1 2 -2z"></path></svg>')}.input-icon-string{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 15a1 1 0 0 0 1 1h2a1 1 0 0 0 1 -1v-2a1 1 0 0 0 -1 -1h-2a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1"></path></svg>')}.cmp-input-item-unregistered{opacity:.4}.cmp-input-item-unregistered .input-icon:after{content:"";position:absolute;top:11px;left:4px;width:20px;height:2px;background-color:#000;transform:rotate(-45deg)}.cmp-prop-info{border-bottom:1px solid var(--border-color)}.cmp-input-readonly{margin:16px 0;padding:0 16px;display:grid;grid-template-columns:50% 50%;gap:12px}.cmp-input-readonly h3{margin:0;font-size:14px;font-weight:500}.cmp-input-readonly span{margin-top:2px;font-size:12px;font-weight:300;opacity:.8}.cmp-input-detail{margin:16px 0}.cmp-input-detail a{color:var(--primary-color);text-decoration:none}.cmp-input-detail a:hover{text-decoration:underline}.input-cover{position:absolute;top:175px;left:0;width:100%;height:100%;background:var(--background-color);transform:translateZ(0);transition:all var(--transition-time) ease-in-out;pointer-events:auto}.input-enabled .input-cover{transform:translate3d(0,105%,0);pointer-events:none}.input-loading-icon{position:absolute;display:inline-block;top:190px;left:0;width:100%;transform:translateZ(0);pointer-events:auto;opacity:0;transition:all 50ms ease-in-out;transition-delay:50ms;pointer-events:none}.input-loading .input-loading-icon{opacity:.5}:host{position:fixed;inset:0;z-index:2147483646;user-select:none;pointer-events:none;color:var(--text-color)}aside{position:absolute;top:0;right:0;width:var(--menu-width);height:100%;transform:translate3d(105%,0,0);transition:transform var(--transition-time) ease-in-out;background:var(--background-color);box-shadow:#000000c9 5px 0 20px;overflow:hidden;z-index:1}:host(.show-builder-menu) aside{pointer-events:auto;transform:translateZ(0)}#hit{position:absolute;inset:0;display:none}:host(.show-builder-menu) #hit{display:block;pointer-events:auto}#version{position:absolute;bottom:6px;right:6px;font-size:8px;color:#9b9b9b}</style><div id="hit"></div> <aside data-view="nav-home"> <section class="nav-home"> <header> <svg class="builder-logo" viewBox="0 0 31 36" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M31 9.96854C31.0016 11.4553 30.6701 12.9236 30.03 14.2654C29.3898 15.6072 28.4572 16.7884 27.3007 17.7221L0.702841 2.61812C0.601104 2.56012 0.506714 2.49008 0.421705 2.40951C0.288323 2.27871 0.182333 2.12263 0.109928 1.95039C0.0375215 1.77814 0.000151253 1.59319 0 1.40633C0 1.03335 0.148098 0.675643 0.411715 0.411905C0.675332 0.148167 1.03287 0 1.40568 0L21.036 0C23.6786 0 26.213 1.05025 28.0816 2.91972C29.9502 4.78918 31 7.32472 31 9.96854Z" fill="#18B4F4" /> <path d="M31 25.4757C31.0004 26.7849 30.7429 28.0815 30.2423 29.2912C29.7417 30.5009 29.0078 31.6001 28.0825 32.526C27.1572 33.4519 26.0587 34.1864 24.8497 34.6875C23.6406 35.1886 22.3448 35.4465 21.0361 35.4465H1.40573C1.12766 35.4436 0.856725 35.3581 0.627199 35.201C0.397672 35.044 0.219871 34.8223 0.116289 34.5641C0.0127078 34.3059 -0.011999 34.0228 0.0452946 33.7505C0.102588 33.4783 0.239308 33.2292 0.438156 33.0347C0.517415 32.9551 0.606358 32.8858 0.702893 32.8284L11.1705 26.8843L27.2984 17.7244C28.4548 18.6579 29.3874 19.8387 30.028 21.18C30.6685 22.5213 31.0007 23.9891 31 25.4757Z" fill="#FD6B3C" /> <path d="M27.3011 17.7221L11.1709 26.8843L0.703209 32.8284C0.602697 32.8843 0.509784 32.9528 0.426758 33.0323C4.41799 28.9369 6.6496 23.442 6.64456 17.7221C6.65208 12.0015 4.42111 6.50517 0.429101 2.40948C0.51411 2.49005 0.6085 2.56009 0.710237 2.61809L27.3011 17.7221Z" fill="#A97FF2" /> </svg> <div> <h2 class="builder-home-title">Builder Devtools</h2> <p><button id="go-to-builder">Go to Builder</button></p> </div> <button id="close" aria-label="Close Menu"> <svg viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M18 6l-12 12" /> <path d="M6 6l12 12" /> </svg> </button> </header> <div class="section-content"> <ul class="list"> <li> <button id="components-link"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M21 16.008V7.99001C20.9994 7.64108 20.9066 7.29851 20.731 6.99699C20.5554 6.69547 20.3032 6.44571 20 6.27301L13 2.26501C12.6954 2.09103 12.3508 1.99951 12 1.99951C11.6492 1.99951 11.3046 2.09103 11 2.26501L4 6.27301C3.381 6.62801 3 7.28301 3 7.99101V16.009C3 16.718 3.381 17.372 4 17.726L11 21.734C11.3046 21.908 11.6492 21.9995 12 21.9995C12.3508 21.9995 12.6954 21.908 13 21.734L20 17.726C20.619 17.371 21 16.716 21 16.008Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 22V12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 12L20.73 6.95996" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M3.26999 6.95996L12 12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> </svg> <span>Components</span> </button> </li> <li> <button id="settings-link"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M10.325 4.317C10.751 2.561 13.249 2.561 13.675 4.317C13.7389 4.5808 13.8642 4.82578 14.0407 5.032C14.2172 5.23822 14.4399 5.39985 14.6907 5.50375C14.9414 5.60764 15.2132 5.65085 15.4838 5.62987C15.7544 5.60889 16.0162 5.5243 16.248 5.383C17.791 4.443 19.558 6.209 18.618 7.753C18.4769 7.98466 18.3924 8.24634 18.3715 8.51677C18.3506 8.78721 18.3938 9.05877 18.4975 9.30938C18.6013 9.55999 18.7627 9.78258 18.9687 9.95905C19.1747 10.1355 19.4194 10.2609 19.683 10.325C21.439 10.751 21.439 13.249 19.683 13.675C19.4192 13.7389 19.1742 13.8642 18.968 14.0407C18.7618 14.2172 18.6001 14.4399 18.4963 14.6907C18.3924 14.9414 18.3491 15.2132 18.3701 15.4838C18.3911 15.7544 18.4757 16.0162 18.617 16.248C19.557 17.791 17.791 19.558 16.247 18.618C16.0153 18.4769 15.7537 18.3924 15.4832 18.3715C15.2128 18.3506 14.9412 18.3938 14.6906 18.4975C14.44 18.6013 14.2174 18.7627 14.0409 18.9687C13.8645 19.1747 13.7391 19.4194 13.675 19.683C13.249 21.439 10.751 21.439 10.325 19.683C10.2611 19.4192 10.1358 19.1742 9.95929 18.968C9.7828 18.7618 9.56011 18.6001 9.30935 18.4963C9.05859 18.3924 8.78683 18.3491 8.51621 18.3701C8.24559 18.3911 7.98375 18.4757 7.752 18.617C6.209 19.557 4.442 17.791 5.382 16.247C5.5231 16.0153 5.60755 15.7537 5.62848 15.4832C5.64942 15.2128 5.60624 14.9412 5.50247 14.6906C5.3987 14.44 5.23726 14.2174 5.03127 14.0409C4.82529 13.8645 4.58056 13.7391 4.317 13.675C2.561 13.249 2.561 10.751 4.317 10.325C4.5808 10.2611 4.82578 10.1358 5.032 9.95929C5.23822 9.7828 5.39985 9.56011 5.50375 9.30935C5.60764 9.05859 5.65085 8.78683 5.62987 8.51621C5.60889 8.24559 5.5243 7.98375 5.383 7.752C4.443 6.209 6.209 4.442 7.753 5.382C8.753 5.99 10.049 5.452 10.325 4.317Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M9 12C9 12.7956 9.31607 13.5587 9.87868 14.1213C10.4413 14.6839 11.2044 15 12 15C12.7956 15 13.5587 14.6839 14.1213 14.1213C14.6839 13.5587 15 12.7956 15 12C15 11.2044 14.6839 10.4413 14.1213 9.87868C13.5587 9.31607 12.7956 9 12 9C11.2044 9 10.4413 9.31607 9.87868 9.87868C9.31607 10.4413 9 11.2044 9 12Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> </svg> <span>Settings</span> </button> </li> <li> <button id="add-page-link"> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M14 3v4a1 1 0 0 0 1 1h4" /> <path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z" /> <path d="M12 11l0 6" /> <path d="M9 14l6 0" /> </svg> <span>Add Builder Page</span> </button> </li> <li> <button id="import-from-figma"> <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-figma" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M15 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0" /> <path d="M6 3m0 3a3 3 0 0 1 3 -3h6a3 3 0 0 1 3 3v0a3 3 0 0 1 -3 3h-6a3 3 0 0 1 -3 -3z" /> <path d="M9 9a3 3 0 0 0 0 6h3m-3 0a3 3 0 1 0 3 3v-15" /> </svg> <span>Import From Figma</span> </button> </li> </ul> </div> <footer> <ul class="list"> <li> <a href="https://docs.google.com/forms/d/e/1FAIpQLSdqZcJpRtm_Ia5DTHP6SDY9Xa6LID3KiTjRWkjMzWyJRUtSHw/viewform" target="_blank" > <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M11.013 17.0114L10.013 18.0114L2.513 10.5834C2.0183 10.102 1.62864 9.52342 1.36854 8.88404C1.10845 8.24466 0.983558 7.55836 1.00173 6.86834C1.01991 6.17832 1.18076 5.49954 1.47415 4.87474C1.76755 4.24994 2.18713 3.69266 2.70648 3.23799C3.22583 2.78331 3.8337 2.4411 4.49181 2.23289C5.14991 2.02468 5.844 1.95499 6.53036 2.02821C7.21673 2.10143 7.8805 2.31596 8.47987 2.65831C9.07925 3.00066 9.60124 3.46341 10.013 4.01741C10.8086 2.95654 11.9931 2.2552 13.3059 2.06766C14.6186 1.88012 15.9521 2.22176 17.013 3.01741C18.0739 3.81306 18.7752 4.99755 18.9627 6.3103C19.1503 7.62305 18.8086 8.95654 18.013 10.0174" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> <path d="M18.2006 19.8175L16.0286 20.9555C15.9642 20.989 15.8917 21.004 15.8192 20.9987C15.7467 20.9934 15.6771 20.9681 15.6182 20.9256C15.5593 20.8831 15.5134 20.825 15.4855 20.7579C15.4577 20.6907 15.4491 20.6172 15.4606 20.5455L15.8756 18.1345L14.1186 16.4275C14.0662 16.3768 14.0291 16.3123 14.0115 16.2416C13.9939 16.1708 13.9966 16.0965 14.0192 16.0271C14.0418 15.9578 14.0835 15.8962 14.1394 15.8494C14.1954 15.8026 14.2634 15.7725 14.3356 15.7625L16.7636 15.4105L17.8496 13.2175C17.8821 13.1521 17.9322 13.0972 17.9942 13.0588C18.0562 13.0204 18.1277 13 18.2006 13C18.2736 13 18.3451 13.0204 18.4071 13.0588C18.4691 13.0972 18.5191 13.1521 18.5516 13.2175L19.6376 15.4105L22.0656 15.7625C22.1377 15.7728 22.2054 15.8031 22.2611 15.85C22.3168 15.8968 22.3583 15.9583 22.3809 16.0275C22.4034 16.0967 22.4062 16.1708 22.3888 16.2415C22.3715 16.3122 22.3347 16.3766 22.2826 16.4275L20.5256 18.1345L20.9396 20.5445C20.9521 20.6163 20.9441 20.6902 20.9166 20.7578C20.8891 20.8254 20.8433 20.8839 20.7842 20.9267C20.7252 20.9695 20.6553 20.9949 20.5825 21C20.5098 21.005 20.4371 20.9896 20.3726 20.9555L18.2006 19.8175Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> </svg> <span>Give Feedback</span> </a> </li> </ul> <div id="version"></div> </footer> </section> <section class="nav-cmp-list"> <header> <button class="back-button"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div class="search-container"> <div class="search-input-wrapper"> <svg class="search-icon" viewBox="0 0 24 24" width="16" height="16"> <path fill="none" stroke="currentColor" stroke-width="2" d="M15.5 15.5L20 20M10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 13.866 13.866 17 10 17Z" /> </svg> <input type="text" id="component-search" class="component-search-input" placeholder="Search components..." autocomplete="off" spellcheck="false" /> <button id="clear-search" class="clear-search-button" type="button" aria-label="Clear search" > <svg viewBox="0 0 24 24" width="16" height="16"> <path fill="none" stroke="currentColor" stroke-width="2" d="M6 6l12 12M6 18L18 6" /> </svg> </button> </div> </div> <div> <h2>Custom Components</h2> <p> <button id="open-builder-registry"></button> </p> </div> </header> <div class="section-content"> <div id="cmp-list" class="cmp-list nav-list"></div> </div> <div class="nav-loading-icon spinner"></div> <footer> <p class="info"> Expand on Builder's selection of built-in blocks by <a target="_blank" href="https://www.builder.io/c/docs/custom-components-intro" >registering components</a > from your codebase. This way, teammates can drag and drop your components within Builder's Visual Editor just like any other block. </p> </footer> </section> <section class="nav-cmp-detail"> <header> <button class="back-button" data-back="nav-cmp-list"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div> <h2 id="cmp-detail-title"></h2> <p> <button id="cmp-open-source"></button> </p> </div> </header> <div class="section-content"> <div id="cmp-error"></div> <label class="ui-switch"> <div> <h3>Register Component</h3> <p> Registers this component so it can be used within Builder Visual CMS </p> </div> <input type="checkbox" role="switch" id="cmp-register" /> <span class="switcher"></span> </label> <div id="cmp-detail"> <label class="ui-text-input"> <h3>Component Name</h3> <div class="input"> <input type="text" id="cmp-name" autocapitalize="off" autocorrect="off" spellcheck="false" autocomplete="off" minlength="2" maxlength="30" required placeholder="e.g. My Counter" /> </div> <p> Unique name to identify this custom component within Builder. Press ESC to cancel </p> </label> <div class="cmp-detail-inputs-container"> <h3> <span>Builder Inputs (Props)</span> <button class="cmp-detail-inputs-reload" id="btn-inputs-reload"> Reload </button> </h3> <div id="cmp-detail-inputs"></div> </div> </div> </div> <div class="cmp-cover"></div> <div class="cmp-loading-icon spinner"></div> </section> <section class="nav-cmp-input"> <header> <button class="back-button" data-back="nav-cmp-detail"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div> <h2 id="cmp-input-title"></h2> <p> <button id="input-open-source"></button> </p> </div> </header> <div class="section-content"> <label class="ui-switch"> <div> <h3>Enable Input</h3> <p>Add this component prop as a Builder input</p> </div> <input type="checkbox" role="switch" id="input-register" /> <span class="switcher"></span> </label> <div class="cmp-prop-info"> <div class="cmp-input-readonly"> <h3>Prop Name</h3> <span id="cmp-prop-name"></span> </div> <div class="cmp-input-readonly"> <h3>Prop Type</h3> <span id="cmp-prop-type"></span> </div> </div> <div class="cmp-input-detail"> <label class="ui-text-input"> <h3>Builder Input Name</h3> <div class="input"> <input type="text" id="input-name" autocapitalize="off" autocorrect="off" spellcheck="false" autocomplete="off" minlength="1" maxlength="30" required placeholder="e.g. Text" /> </div> <p> Friendly name to identify this component prop as a Builder input. Press ESC to cancel </p> </label> <label class="ui-select"> <h3>Builder Input Type</h3> <div class="select"> <select id="input-type"></select> </div> <p> Correlate to what editing UI is appropriate for this Builder input. <a href="https://www.builder.io/c/docs/custom-components-input-types" target="_blank" >Read more about input types.</a > </p> </label> </div> <div class="input-cover"></div> <div class="input-loading-icon spinner"></div> </div> </section> <section class="nav-settings"> <header> <button class="back-button"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div> <h2>Settings</h2> <p>Configure Builder's Devtools</p> </div> </header> <div class="section-content"> <label class="ui-switch"> <div> <h3>Enable edit button in UI</h3> <p>Enables the edit button so you can edit content in Builder</p> </div> <input type="checkbox" role="switch" id="enable-edit" /> <span class="switcher"></span> </label> </div> </section> <div class="ui-toast" id="toast"></div> </aside> <button class="menu-toggle" aria-label="Toggle Builder Devtools"> <div> <div class="highlight-bg"></div> <svg viewBox="0 0 31 36" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M31 9.96854C31.0016 11.4553 30.6701 12.9236 30.03 14.2654C29.3898 15.6072 28.4572 16.7884 27.3007 17.7221L0.702841 2.61812C0.601104 2.56012 0.506714 2.49008 0.421705 2.40951C0.288323 2.27871 0.182333 2.12263 0.109928 1.95039C0.0375215 1.77814 0.000151253 1.59319 0 1.40633C0 1.03335 0.148098 0.675643 0.411715 0.411905C0.675332 0.148167 1.03287 0 1.40568 0L21.036 0C23.6786 0 26.213 1.05025 28.0816 2.91972C29.9502 4.78918 31 7.32472 31 9.96854Z" fill="#18B4F4" /> <path d="M31 25.4757C31.0004 26.7849 30.7429 28.0815 30.2423 29.2912C29.7417 30.5009 29.0078 31.6001 28.0825 32.526C27.1572 33.4519 26.0587 34.1864 24.8497 34.6875C23.6406 35.1886 22.3448 35.4465 21.0361 35.4465H1.40573C1.12766 35.4436 0.856725 35.3581 0.627199 35.201C0.397672 35.044 0.219871 34.8223 0.116289 34.5641C0.0127078 34.3059 -0.011999 34.0228 0.0452946 33.7505C0.102588 33.4783 0.239308 33.2292 0.438156 33.0347C0.517415 32.9551 0.606358 32.8858 0.702893 32.8284L11.1705 26.8843L27.2984 17.7244C28.4548 18.6579 29.3874 19.8387 30.028 21.18C30.6685 22.5213 31.0007 23.9891 31 25.4757Z" fill="#FD6B3C" /> <path d="M27.3011 17.7221L11.1709 26.8843L0.703209 32.8284C0.602697 32.8843 0.509784 32.9528 0.426758 33.0323C4.41799 28.9369 6.6496 23.442 6.64456 17.7221C6.65208 12.0015 4.42111 6.50517 0.429101 2.40948C0.51411 2.49005 0.6085 2.56009 0.710237 2.61809L27.3011 17.7221Z" fill="#A97FF2" /> </svg> </div> </button>\`,si(e),ui(e),oi(e),ri(e),ti(e),ci(e),this.setAttribute("aria-hidden","true"),e.getElementById("version").textContent="v1.71.0-beta.202606291611.cb6097a.fix-two-ux-issues-in-the-buildercode-cli"}highlightOpener(){let e=this.shadowRoot.querySelector(".menu-toggle");e.classList.add("menu-toggle-highlight"),e.classList.add("menu-toggle-highlight-no-transition"),setTimeout(()=>{e.classList.remove("menu-toggle-highlight-no-transition"),setTimeout(()=>{e.classList.remove("menu-toggle-highlight")},20)},20)}};var lo=\`<style>*,*:before,*:after{box-sizing:border-box}html,body,:host{position:fixed;top:0;left:0;width:100%;height:100vh;z-index:2147483646;margin:0;padding:0;line-height:1.8;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";background-color:#252525;color:#fff;transition:opacity .25s ease-in-out}:host([aria-hidden="true"]){opacity:0;pointer-events:none}main{position:absolute;top:0;left:0;width:100%;height:100vh}h1{margin-top:0;font-size:24px;font-weight:300;line-height:1.4}p{margin:20px 0;font-weight:300}button{cursor:pointer}aside{position:absolute;top:0;left:0;width:350px;height:100vh;padding:60px 0 0 50px;background-color:#121212}aside ul{margin:30px 0 0;padding:0;list-style:none}aside li{position:relative;margin:0;padding:20px 10px;font-weight:300}aside li.highlight{color:#48a1ff}aside li.active{font-weight:700}aside li .circle{position:absolute;top:20px;left:10px;width:24px;height:24px;border:3px solid white;border-radius:50%;font-size:14px}aside li.highlight .circle{border-color:#48a1ff}aside li.active .circle:after{content:"";position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background-color:#48a1ff}aside li.completed .circle{background-color:#48a1ff}aside li.completed .circle:after{content:"";position:absolute;top:2px;left:6px;width:6px;height:13px;border:3px solid black;border-top:none;border-left:none;transform:rotate(45deg)}aside li .line{position:absolute;top:44px;left:21px;width:3px;height:45px;background-color:#fff}aside li.completed .line{background-color:#48a1ff}aside li span{display:block;margin-left:44px}nav{margin-top:30px}section{position:absolute;top:135px;left:350px;padding:0 80px 0 140px;transition:opacity .15s ease-in-out}section[aria-hidden=true]{pointer-events:none;opacity:0}section h1,section p{min-width:300px;max-width:600px}.button{position:relative;display:inline-block;color:#fff;background-color:#48a1ff;border-radius:4px;text-decoration:none;padding:10px 40px 10px 20px;white-space:nowrap}.button:hover{background-color:#48a1ffd9}#button-icon{position:absolute;top:1px;right:5px;bottom:0;width:30px;background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="none" stroke="white" stroke-linecap="square" stroke-miterlimit="10" stroke-width="48" d="M184 112l144 144-144 144"/></svg>');background-repeat:no-repeat;background-position:center;background-size:24px 24px}.button[aria-disabled=true]{opacity:.9;background-color:#ffffff4d;pointer-events:none;padding-right:60px}.button[aria-disabled=true] #button-icon{top:21px;right:29px;width:8px;height:8px;border-radius:4px;background:#fff;color:#fff;animation:dot-flashing .5s infinite linear alternate;animation-delay:.25s}.button[aria-disabled=true] #button-icon:before,.button[aria-disabled=true] #button-icon:after{content:"";display:inline-block;position:absolute;top:0}.button[aria-disabled=true] #button-icon:before{left:-12px;width:8px;height:8px;border-radius:4px;background-color:#fff;color:#fff;animation:dot-flashing .5s infinite alternate;animation-delay:0s}.button[aria-disabled=true] #button-icon:after{left:12px;width:8px;height:8px;border-radius:4px;background-color:#fff;color:#fff;animation:dot-flashing .5s infinite alternate;animation-delay:.5s}@keyframes dot-flashing{0%{background-color:#fff}50%,to{background-color:#ffffff4d}}.logo{margin-left:9px;background:url('data:image/svg+xml,<svg viewBox="0 0 150 32" fill="none" xmlns="http://www.w3.org/2000/svg" > <g clip-path="url(%23clip0_4_304)"> <path d="M27.9858 8.99927C27.9872 10.3415 27.688 11.667 27.1101 12.8783C26.5321 14.0896 25.6902 15.156 24.6462 15.9989V15.9989L0.634502 2.36355C0.542657 2.31119 0.457444 2.24796 0.380701 2.17523C0.260289 2.05715 0.164605 1.91624 0.0992389 1.76075C0.0338732 1.60525 0.000136546 1.43828 0 1.26959C0 0.932873 0.133698 0.609948 0.371683 0.371854C0.609667 0.13376 0.932443 0 1.269 0L18.9906 0C21.3763 0 23.6642 0.948135 25.3512 2.63583C27.0381 4.32352 27.9858 6.61252 27.9858 8.99927V8.99927Z" fill="%2318B4F4" /> <path d="M27.9858 22.9986C27.9861 24.1806 27.7536 25.351 27.3017 26.4431C26.8498 27.5352 26.1873 28.5275 25.352 29.3634C24.5167 30.1993 23.5249 30.8624 22.4335 31.3147C21.342 31.7671 20.1721 32 18.9907 32H1.26906C1.01802 31.9973 0.77343 31.9202 0.566221 31.7784C0.359012 31.6366 0.198499 31.4364 0.104989 31.2034C0.0114791 30.9703 -0.0108254 30.7147 0.0408974 30.4689C0.0926201 30.2231 0.216046 29.9982 0.395559 29.8226V29.8226C0.467112 29.7508 0.547407 29.6882 0.634555 29.6364L10.0844 24.2703L24.6441 16.001C25.688 16.8438 26.53 17.9097 27.1083 19.1206C27.6866 20.3315 27.9864 21.6566 27.9858 22.9986V22.9986Z" fill="%23FD6B3C" /> <path d="M24.6461 15.9989L10.0843 24.2703L0.634458 29.6365C0.54372 29.6868 0.459841 29.7487 0.384888 29.8205C3.98804 26.1233 6.00266 21.1627 5.99812 15.9989C6.0049 10.8346 3.99085 5.87268 0.387003 2.17523C0.463746 2.24796 0.548959 2.31119 0.640803 2.36355L24.6461 15.9989Z" fill="%23A97FF2" /> <path d="M47.6659 11.7352C51.8177 11.7352 54.1632 15.0531 54.1632 19.0714C54.1632 23.0896 51.8177 26.3821 47.6659 26.3821C45.5086 26.3821 43.8589 25.5188 42.9473 24.0545L42.5709 26.052H39.9736V6.77115H43.1884V13.8914C43.971 12.6959 45.5086 11.7352 47.6659 11.7352ZM47.0187 23.5488C49.4446 23.5488 50.9547 21.5809 50.9547 19.0714C50.9547 16.5089 49.4446 14.5664 47.0187 14.5664C44.5928 14.5664 43.0806 16.5047 43.0806 19.0714C43.0806 21.583 44.5653 23.5488 47.0187 23.5488V23.5488Z" fill="white" /> <path d="M65.4595 20.2859V12.0611H68.668V20.123C68.668 23.7202 67.0246 26.3821 62.4943 26.3821C57.9639 26.3821 56.3206 23.7117 56.3206 20.123V12.0611H59.529V20.2859C59.529 22.4696 60.5527 23.5488 62.49 23.5488C64.4274 23.5488 65.4595 22.4696 65.4595 20.2859Z" fill="white" /> <path d="M71.2355 7.74451C71.2247 7.46284 71.2724 7.18199 71.3755 6.91968C71.4787 6.65737 71.6351 6.41929 71.8348 6.22047C72.0345 6.02165 72.2732 5.8664 72.5359 5.76452C72.7986 5.66264 73.0796 5.61633 73.3611 5.62853C74.5793 5.62853 75.4571 6.50666 75.4571 7.75509C75.4571 9.00352 74.5793 9.8224 73.3611 9.8224C72.1428 9.8224 71.2355 8.9612 71.2355 7.74451Z" fill="white" /> <path d="M128.476 7.74451C128.465 7.46376 128.513 7.18383 128.615 6.92227C128.718 6.66071 128.873 6.42315 129.072 6.22449C129.27 6.02583 129.508 5.87035 129.769 5.7678C130.031 5.66524 130.31 5.61783 130.591 5.62852C131.809 5.62852 132.687 6.50666 132.687 7.75509C132.687 9.00352 131.809 9.8224 130.591 9.8224C129.373 9.8224 128.476 8.9612 128.476 7.74451Z" fill="white" /> <path d="M122.302 24.1031C122.291 23.8223 122.339 23.5422 122.441 23.2805C122.543 23.0188 122.699 22.7811 122.897 22.5824C123.096 22.3837 123.334 22.2282 123.595 22.1258C123.857 22.0233 124.137 21.9761 124.417 21.9872C125.636 21.9872 126.513 22.8653 126.513 24.1031C126.513 25.341 125.636 26.1726 124.417 26.1726C123.199 26.1726 122.302 25.3219 122.302 24.1031Z" fill="white" /> <path d="M74.9516 12.059H71.7432V26.0583H74.9516V12.059Z" fill="white" /> <path d="M78.16 26.0583V6.77115H81.3685V26.0626L78.16 26.0583Z" fill="white" /> <path d="M94.6063 6.77115H97.8148V26.0626H95.2239L94.8474 24.0651C93.9591 25.523 92.3094 26.3927 90.131 26.3927C86.0046 26.3927 83.6591 23.0748 83.6591 19.0819C83.6591 15.0891 86.0046 11.7458 90.131 11.7458C92.3137 11.7458 93.8238 12.7149 94.6063 13.902V6.77115ZM90.7993 14.5707C88.3734 14.5707 86.8633 16.5131 86.8633 19.0756C86.8633 21.5851 88.3734 23.553 90.7993 23.553C93.2252 23.553 94.7354 21.5851 94.7354 19.0756C94.7396 16.5047 93.257 14.5664 90.8036 14.5664L90.7993 14.5707Z" fill="white" /> <path d="M113.479 22.2284C112.482 24.7359 110.162 26.3821 107.117 26.3821C102.887 26.3821 100.137 23.225 100.137 19.0439C100.137 14.9706 102.942 11.7353 107.093 11.7353C111.245 11.7353 113.969 14.8902 113.969 18.991C113.982 19.3255 113.953 19.6604 113.883 19.9876H103.288C103.53 22.2009 104.959 23.6292 107.197 23.6292C108.735 23.6292 110.001 22.8738 110.594 21.473L113.479 22.2284ZM103.341 17.6156H110.784C110.513 15.6731 109.166 14.3506 107.089 14.3506C105.012 14.3506 103.665 15.7006 103.341 17.6156V17.6156Z" fill="white" /> <path d="M123.779 14.9452C123.538 14.9117 123.295 14.8933 123.051 14.8902C120.786 14.8902 119.439 16.0772 119.439 18.7751V26.0583H116.23V12.0611H118.821L119.195 14.0014C119.707 13.1127 120.887 11.9257 123.322 11.9257C123.455 11.9257 123.779 11.9532 123.779 11.9532V14.9452Z" fill="white" /> <path d="M132.192 12.059H128.984V26.0583H132.192V12.059Z" fill="white" /> <path d="M134.483 19.0714C134.483 15.1335 137.287 11.7353 141.735 11.7353C146.183 11.7353 149.015 15.1335 149.015 19.0714C149.015 23.0092 146.213 26.3821 141.735 26.3821C137.258 26.3821 134.483 23.0092 134.483 19.0714ZM141.735 23.5488C144.083 23.5488 145.806 21.7692 145.806 19.0714C145.806 16.3735 144.083 14.5664 141.735 14.5664C139.387 14.5664 137.687 16.346 137.687 19.0714C137.687 21.7968 139.417 23.5488 141.735 23.5488V23.5488Z" fill="white" /> </g> <defs> <clipPath id="clip0_4_304"> <rect width="149.015" height="32" fill="white" /> </clipPath> </defs> </svg>');background-repeat:no-repeat;width:150px;height:32px}@media(max-width:840px){aside{width:250px;padding:60px 0 0 20px}section{left:250px;padding:0 80px}}@media(max-width:590px){aside{width:230px;padding:60px 0 0 10px}section{left:230px;padding:0 40px}}#modified-files-message a{color:#cbcbcb;font-weight:300;text-decoration:underline}#modified-files-message a:hover{color:#fff;text-decoration:none}#restart-warning{border-radius:4px;padding:8px 16px;border:1px solid #fd6b3c;background:#fd6b3c1a}#react-router-steps{margin:0 0 5px;padding:0 20px}#need-help{color:#48a1ff;text-decoration:none}#router-message{border-radius:4px;padding:16px;border:1px solid #48a1ff}#router-finish-button{margin-top:12px}#router-checkbox-div{display:flex;align-items:center}#router-checkbox{margin-right:10px;width:15px;height:15px}#success-title{display:flex;align-items:center;gap:10px}#success-title .check-icon{display:inline-block;width:24px;height:24px;border:2px solid #28a745;border-radius:50%;position:relative}#success-title .check-icon:before{content:"";position:absolute;top:50%;left:50%;width:6px;height:12px;border:solid #28a745;border-width:0 2px 2px 0;transform:translate(-50%,-60%) rotate(45deg)}
|
|
625
|
+
\`,t.appendChild(e),setTimeout(()=>{e.classList.add("menu-toggle-tooltip-show"),e.addEventListener("click",()=>{e.classList.remove("menu-toggle-tooltip-show")})},1e3)};function ui(t){t.getElementById("go-to-builder").addEventListener("click",a=>{a.preventDefault(),a.stopPropagation(),Ee(t,!1),window.open(Ur(),"builder")}),t.getElementById("components-link").addEventListener("click",a=>{a.preventDefault(),a.stopPropagation();let c=t.querySelector(".nav-cmp-list .section-content");c.scrollTop=0,oe(t,"nav-cmp-list"),ai(t)}),t.getElementById("settings-link").addEventListener("click",a=>{a.preventDefault(),a.stopPropagation(),oe(t,"nav-settings")}),t.getElementById("add-page-link").addEventListener("click",a=>{a.preventDefault(),a.stopPropagation(),Ee(t,!1),window.open(je(),"builder")}),t.getElementById("import-from-figma").addEventListener("click",a=>{a.preventDefault(),a.stopPropagation(),Ee(t,!1),window.open("https://www.figma.com/community/plugin/747985167520967365/builder-io-ai-powered-figma-to-code-react-vue-tailwind-more")})}function ci(t){let e=t.getElementById("enable-edit");e.addEventListener("change",r=>{r.stopPropagation(),Ht(e.checked)}),e.checked=it(),Ht(e.checked)}var Dt=class extends HTMLElement{connectedCallback(){let e=this.attachShadow({mode:"open"});e.innerHTML=\`<style>*,*:before,*:after{box-sizing:border-box}:host{--background-color: rgba(40, 40, 40, 1);--primary-color: rgba(72, 161, 255, 1);--primary-color-subdued: rgb(72, 161, 255, .6);--primary-color-highlight: rgb(126, 188, 255);--primary-contrast-color: white;--edit-color: #1d74e2;--edit-color-highlight: #1c6bd1;--edit-color-alpha: rgb(72, 161, 255, .15);--error-color: #ff2b55;--text-color: white;--text-color-highlight: white;--border-color: #454545;--button-background-color-hover: rgba(255, 255, 255, .1);--menu-width: 320px;--transition-time: .15s;--font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";font-family:var(--font-family);line-height:1.6}button{cursor:pointer;color:var(--text-color);-webkit-tap-highlight-color:transparent}input,select,button{font-family:var(--font-family)}.menu-toggle{position:absolute;right:0;bottom:0;pointer-events:auto;padding:8px;background:transparent;border:none;appearance:none}.menu-toggle div{position:relative;width:64px;height:64px;pointer-events:none;border-radius:50%;background:#000;border:1px solid white;box-shadow:#00000054 0 0 8px}.menu-toggle:hover div{background-color:var(--background-color);border:1px solid rgb(220,220,220)}.menu-toggle svg{position:absolute;top:15px;left:15px;width:33px;height:32px}div.highlight-bg{position:absolute;top:-1px;left:-1px;background-color:#1a1a1a;pointer-events:none;transition:all .4s ease-out;opacity:0}.menu-toggle-highlight-no-transition div.highlight-bg{transition:none}.menu-toggle-highlight div.highlight-bg{opacity:1}.menu-toggle-tooltip{position:absolute;bottom:0;right:0;width:382px;height:72px;padding:0;text-align:left;appearance:none;background-color:transparent;border:none;pointer-events:none;transform:translate3d(320px,0,0);opacity:0;transition:all .15s ease-in-out;color:#fff}.menu-toggle-tooltip.menu-toggle-tooltip-show{pointer-events:auto;opacity:1;transform:translateZ(0)}.menu-toggle-tooltip-content{position:absolute;inset:0 95px 10px 0;padding:8px 12px;background-color:var(--primary-color);box-shadow:#00000054 0 0 20px;border-radius:2px}.menu-toggle-tooltip-content:before{content:"";position:absolute;bottom:15px;right:-6px;width:30px;height:30px;background-color:var(--primary-color);transform:rotate(45deg)}.menu-toggle-tooltip:hover .menu-toggle-tooltip-content,.menu-toggle-tooltip:hover .menu-toggle-tooltip-content:before{background-color:var(--primary-color-highlight)}.menu-toggle-tooltip-content h3{margin:0;font-size:16px}.menu-toggle-tooltip-content p{margin:0;font-size:12px}section{position:absolute;display:grid;grid-template-rows:64px auto 64px;top:0;left:0;width:100%;height:100%;padding:0;pointer-events:none}.section-content{margin:0;padding:0 0 10px;font-weight:300;transform:translate3d(105%,0,0);transition:transform var(--transition-time) ease-in-out;overflow-y:auto}.section-content .error{color:var(--error-color);font-weight:700}section a{text-decoration:none;color:var(--text-color)}section h3,section p{margin-left:16px;margin-right:16px}.info{font-size:12px}ul.list{list-style:none;padding:0;margin:0}ul.list li{display:block;padding:0;margin:0}ul.list a,ul.list button{display:grid;grid-template-columns:24px auto;grid-gap:16px;padding:12px;margin:8px 0;border:none;background:transparent;appearance:none;width:100%;font-weight:300;text-align:left;text-decoration:none;color:var(--text-color)}ul.list a:hover,ul.list button:hover{text-decoration:none;color:var(--text-color);background-color:var(--button-background-color-hover)}ul.list a span,ul.list button span{display:block;font-size:16px;font-weight:500;line-height:1.5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}header{position:relative;display:grid;grid-template-columns:44px 1fr;gap:8px;padding-left:8px;border-bottom:1px solid var(--border-color);transition:opacity var(--transition-time) ease-in-out;opacity:0;pointer-events:none}header>div{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.nav-home header>div{margin-right:56px}header h2{margin:7px 0 0;font-size:18px;font-weight:500;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header p{margin:2px 0 0;font-size:12px;font-weight:300;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header p button{display:block;margin:0;padding:0;width:100%;font-size:12px;font-weight:300;text-decoration:none;appearance:none;text-align:left;background-color:transparent;border:none;color:var(--primary-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}header p button:hover{text-decoration:underline;color:var(--primary-color)}.builder-logo{margin:12px 0 0 8px}#close{display:block;position:absolute;appearance:none;background:transparent;border:none;border-radius:50%;margin:0;padding:0;right:4px;top:8px;width:48px;height:48px;z-index:1;opacity:.7}#close:hover{opacity:1;background-color:var(--button-background-color-hover)}#close svg{position:absolute;top:12px;left:12px;width:24px;height:24px;fill:currentColor;pointer-events:none}.back-button{position:relative;display:block;margin:7px 0 0 -2px;width:48px;height:48px;background:transparent;border:none;appearance:none;border-radius:50%}.back-button:hover{background-color:var(--button-background-color-hover)}.back-button svg{position:absolute;top:12px;left:12px;width:24px;height:24px;fill:currentColor;pointer-events:none}footer{border-top:1px solid var(--border-color);transition:opacity var(--transition-time) ease-in-out;opacity:0;pointer-events:none}section.nav-cmp-list{grid-template-rows:64px auto 120px}footer a{text-decoration:underline;color:var(--primary-color)}footer a:hover{color:var(--primary-color);text-decoration:none}.nav-list{padding:2px 0}.nav-loading{pointer-events:none}.nav-loading-icon{position:absolute;display:inline-block;top:170px;left:0;width:100%;transform:translateZ(0);pointer-events:auto;opacity:0;transition:all 50ms ease-in-out;transition-delay:50ms;pointer-events:none}.nav-loading .nav-loading-icon{opacity:.5}.nav-list h4{margin:8px 8px 8px 10px;font-size:14px;font-weight:600}.nav-list .nav-list-item+h4{margin-top:30px}.nav-list-item{display:grid;grid-template-columns:1fr 1fr;gap:8px;position:relative;margin:2px 0;padding:8px 28px 8px 46px;width:100%;font-size:14px;font-weight:300;text-align:left;border:none;background:transparent;appearance:none}.nav-list-item:hover{background-color:var(--button-background-color-hover)}.nav-list-item-icon{position:absolute;top:4px;left:10px;width:24px;height:24px;object-fit:contain;filter:invert(100%);background-size:24px 24px;background-repeat:no-repeat;background-position:center center}.nav-list-item span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;pointer-events:none}.nav-list-item:after{display:block;position:absolute;content:"";background-image:url('data:image/svg+xml,<svg width="8" height="14" viewBox="0 0 8 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1 1L7 7L1 13" stroke="%23F2F2F2" stroke-opacity="0.5" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/></svg>');background-repeat:no-repeat;background-position:12px 9px;top:0;right:0;width:32px;height:32px;pointer-events:none}.nav-list-item-note{opacity:0;font-size:12px;padding-top:1px;text-align:right}.nav-list-item:hover .nav-list-item-note{opacity:.5}.ui-select{display:block;margin:8px 0 16px;padding:8px 16px;cursor:pointer}.ui-select h3{margin:0;font-size:14px;font-weight:500}.ui-select p{margin:8px 0;font-size:12px;font-weight:300}.ui-select .select{position:relative;margin:8px 0;border-radius:4px;padding:0;line-height:1.1;overflow:hidden;border:1px solid var(--border-color)}.ui-select select{appearance:none;background-color:transparent;border:none;outline:none;padding:8px 32px 8px 8px;margin:0;width:100%;font-size:14px;cursor:pointer;text-overflow:ellipsis;opacity:.6;color:var(--text-color)}.ui-select .select:after{content:"";top:6px;right:5px;width:24px;height:24px;position:absolute;background-image:url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path fill="%23F2F2F2" d="M16.59 8.59L12 13.17 7.41 8.59 6 10l6 6 6-6z"/></svg>');background-repeat:no-repeat;background-position:center;pointer-events:none;opacity:.6}.ui-select .select:hover{border-color:var(--primary-color-subdued)}.ui-text-input .select:focus-within{border-color:var(--primary-color)}.ui-text-input .select:focus-within select{opacity:1}.spinner:after{content:" ";display:block;width:32px;height:32px;margin:0 auto;pointer-events:auto;border-radius:50%;border:3px solid var(--text-color);border-color:var(--text-color) transparent var(--text-color) transparent;animation:spinner .75s linear infinite}@keyframes spinner{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.ui-switch{display:grid;grid-template-columns:auto 48px;grid-gap:20px;margin:8px 0 16px;padding:8px 0 8px 16px;cursor:pointer}.ui-switch>*{pointer-events:none}.ui-switch input{display:none;visibility:hidden}.ui-switch .switcher{display:inline-block;border-radius:100px;width:35px;height:14px;background-color:#ccc;position:relative;top:6px;vertical-align:middle;cursor:pointer}.ui-switch input[type=checkbox]:checked+.switcher{background-color:var(--primary-color-subdued)}.ui-switch .switcher:before{content:"";display:block;width:20px;height:20px;background-color:var(--text-color);box-shadow:0 1px 3px #0009;border-radius:50%;position:absolute;top:-3px;left:0;margin-right:0;transition:all .15s}.ui-switch input[type=checkbox]:checked+.switcher:before{left:100%;margin-left:-20px;background-color:var(--primary-color)}.ui-switch h3{margin:0;font-size:14px;font-weight:500}.ui-switch p{margin:4px 0 0;font-size:12px;font-weight:300}.ui-text-input{display:block;margin:8px 0 16px;padding:8px 16px;cursor:pointer}.ui-text-input h3{margin:0;font-size:14px;font-weight:500}.ui-text-input p{margin:8px 0;font-size:12px;font-weight:300}.ui-text-input .input{position:relative;margin:8px 0;border:1px solid var(--border-color);border-radius:4px;background:transparent;padding:2px;overflow:hidden}.ui-text-input input{display:block;width:235px;font-size:14px;border:none;background:transparent;padding:6px;appearance:none;color:var(--text-color);opacity:.6;outline:none}.ui-text-input .input:hover{border-color:var(--primary-color-subdued)}.ui-text-input .input:focus-within{border-color:var(--primary-color)}.ui-text-input .input:focus-within input{opacity:1}.ui-text-input .input:after{content:"";position:absolute;top:5px;right:14px;width:8px;height:17px;border:2px solid rgba(51,181,51,1);border-top:none;border-left:none;transform:rotate(45deg);opacity:0;transition:opacity 80ms ease-in-out;pointer-events:none}.ui-text-input.saved .input:after{opacity:1}.ui-toast{position:fixed;bottom:8px;left:8px;right:8px;padding:6px 12px;font-size:14px;border-radius:4px;transform:translate3d(0,150%,0);opacity:0;transition:all var(--transition-time) ease-in-out;background-color:var(--primary-color-subdued);color:var(--text-color);pointer-events:none}.ui-toast.ui-toast-show{transform:translateZ(0);opacity:1;pointer-events:auto}[data-view=nav-home] .nav-home .section-content,[data-view=nav-cmp-list] .nav-cmp-list .section-content,[data-view=nav-cmp-detail] .nav-cmp-detail .section-content,[data-view=nav-cmp-input] .nav-cmp-input .section-content,[data-view=nav-settings] .nav-settings .section-content{transform:translateZ(0);pointer-events:auto}[data-view=nav-home] .nav-home header,[data-view=nav-home] .nav-home footer,[data-view=nav-cmp-list] .nav-cmp-list header,[data-view=nav-cmp-list] .nav-cmp-list footer,[data-view=nav-cmp-detail] .nav-cmp-detail header,[data-view=nav-cmp-detail] .nav-cmp-detail footer,[data-view=nav-cmp-input] .nav-cmp-input header,[data-view=nav-cmp-input] .nav-cmp-input footer,[data-view=nav-settings] .nav-settings header,[data-view=nav-settings] .nav-settings footer{opacity:1;pointer-events:auto}[data-view=nav-cmp-list] .nav-home .section-content,[data-view=nav-cmp-detail] .nav-home .section-content,[data-view=nav-cmp-detail] .nav-cmp-list .section-content,[data-view=nav-cmp-input] .nav-home .section-content,[data-view=nav-cmp-input] .nav-cmp-list .section-content,[data-view=nav-cmp-input] .nav-cmp-detail .section-content,[data-view=nav-settings] .nav-home .section-content{transform:translate3d(-105%,0,0)}.cmp-item .nav-list-item-icon{background-image:url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M20.83 16.809C20.94 16.561 21 16.289 21 16.008V7.99001C20.9994 7.64108 20.9066 7.29851 20.731 6.99699C20.5554 6.69547 20.3032 6.44571 20 6.27301L13 2.26501C12.6954 2.09103 12.3508 1.99951 12 1.99951C11.6492 1.99951 11.3046 2.09103 11 2.26501L7.988 3.99001M5.441 5.44801L4 6.27301C3.381 6.62801 3 7.28301 3 7.99101V16.009C3 16.718 3.381 17.372 4 17.726L11 21.734C11.3046 21.908 11.6492 21.9995 12 21.9995C12.3508 21.9995 12.6954 21.908 13 21.734L18.544 18.56" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M12 22V12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M14.532 10.538L20.73 6.95996" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M3.27002 6.95996L12 12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/><path d="M3 3L21 21" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round"/></svg>');opacity:.3}.cmp-item.registered .nav-list-item-icon{background-image:url('data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M21 16.008V7.99001C20.9994 7.64108 20.9066 7.29851 20.731 6.99699C20.5554 6.69547 20.3032 6.44571 20 6.27301L13 2.26501C12.6954 2.09103 12.3508 1.99951 12 1.99951C11.6492 1.99951 11.3046 2.09103 11 2.26501L4 6.27301C3.381 6.62801 3 7.28301 3 7.99101V16.009C3 16.718 3.381 17.372 4 17.726L11 21.734C11.3046 21.908 11.6492 21.9995 12 21.9995C12.3508 21.9995 12.6954 21.908 13 21.734L20 17.726C20.619 17.371 21 16.716 21 16.008Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 22V12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 12L20.73 6.95996" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M3.26999 6.95996L12 12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /></svg>');opacity:.8}.search-highlight{background-color:var(--primary-color-alpha);padding:0 2px;border-radius:2px;font-weight:500}.search-container{position:sticky;top:0;z-index:10;padding:12px 16px;background:var(--background-color);border-bottom:1px solid var(--border-color)}.search-input-wrapper{position:relative;display:flex;align-items:center}.search-icon{position:absolute;left:12px;color:var(--text-color-secondary);pointer-events:none}.component-search-input{width:100%;height:36px;padding:8px 36px;border:1px solid var(--border-color);border-radius:6px;background:var(--input-background);color:var(--text-color);font-size:14px;transition:border-color .2s,box-shadow .2s}.component-search-input:focus{outline:none;border-color:var(--primary-color);box-shadow:0 0 0 2px var(--primary-color-alpha)}.component-search-input::placeholder{color:var(--text-color-tertiary)}.clear-search-button{position:absolute;right:8px;padding:4px;color:var(--text-color-secondary);border:none;background:transparent;border-radius:4px;cursor:pointer;opacity:0;transition:opacity .2s,background-color .2s;display:flex;align-items:center;justify-content:center}.clear-search-button:hover{background-color:var(--hover-color)}.component-search-input:not(:placeholder-shown)+.clear-search-button{opacity:1}.no-results{padding:32px 16px;text-align:center;color:var(--text-color-secondary);font-size:14px}#cmp-detail{position:relative}.cmp-loading{pointer-events:none!important}.cmp-loading-icon{position:absolute;display:inline-block;top:170px;left:0;width:100%;transform:translateZ(0);pointer-events:auto;opacity:0;transition:all 50ms ease-in-out;transition-delay:50ms;pointer-events:none}.cmp-loading .cmp-loading-icon{opacity:.5}.cmp-cover{position:absolute;top:160px;left:0;width:100%;height:100vh;background:var(--background-color);transform:translateZ(0);pointer-events:none;display:none}[data-view=nav-cmp-detail] .cmp-cover{display:block;pointer-events:auto}.cmp-enabled .cmp-cover{transform:translate3d(0,105%,0);pointer-events:none}.section-ready .cmp-cover{transition:all var(--transition-time) ease-in-out}.cmp-detail-inputs-container{margin:8px 0 16px;padding:0}.cmp-detail-inputs-container h3{margin:0 0 6px;padding-left:16px;padding-right:8px;font-size:14px;font-weight:500;display:flex;justify-content:space-between;align-items:center}.cmp-detail-inputs-reload{font-weight:300;font-size:.9em;text-decoration:none;appearance:none;text-align:left;background-color:transparent;border:none;color:var(--primary-color);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cmp-detail-inputs-reload:hover{text-decoration:underline;color:var(--primary-color)}.cmp-detail-inputs-container .cmp-inputs-empty{padding:0;margin-top:12px;font-size:12px;font-weight:300;opacity:.5;font-style:italic}.cmp-detail-inputs-container .nav-list-item-icon{opacity:.8;background-size:20px 20px;background-position:4px center}.input-icon{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path></svg>')}.input-icon-array{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 16v-6a2 2 0 1 1 4 0v6"></path> <path d="M10 13h4"></path></svg>')}.input-icon-boolean{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 16h2a2 2 0 1 0 0 -4h-2h2a2 2 0 1 0 0 -4h-2v8z"></path></svg>')}.input-icon-number{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 16v-8l4 8v-8"></path></svg>')}.input-icon-object{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M12 8a2 2 0 0 1 2 2v4a2 2 0 1 1 -4 0v-4a2 2 0 0 1 2 -2z"></path></svg>')}.input-icon-string{background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round"> <path stroke="none" d="M0 0h24v24H0z" fill="none"></path> <path d="M12 12m-9 0a9 9 0 1 0 18 0a9 9 0 1 0 -18 0"></path> <path d="M10 15a1 1 0 0 0 1 1h2a1 1 0 0 0 1 -1v-2a1 1 0 0 0 -1 -1h-2a1 1 0 0 1 -1 -1v-2a1 1 0 0 1 1 -1h2a1 1 0 0 1 1 1"></path></svg>')}.cmp-input-item-unregistered{opacity:.4}.cmp-input-item-unregistered .input-icon:after{content:"";position:absolute;top:11px;left:4px;width:20px;height:2px;background-color:#000;transform:rotate(-45deg)}.cmp-prop-info{border-bottom:1px solid var(--border-color)}.cmp-input-readonly{margin:16px 0;padding:0 16px;display:grid;grid-template-columns:50% 50%;gap:12px}.cmp-input-readonly h3{margin:0;font-size:14px;font-weight:500}.cmp-input-readonly span{margin-top:2px;font-size:12px;font-weight:300;opacity:.8}.cmp-input-detail{margin:16px 0}.cmp-input-detail a{color:var(--primary-color);text-decoration:none}.cmp-input-detail a:hover{text-decoration:underline}.input-cover{position:absolute;top:175px;left:0;width:100%;height:100%;background:var(--background-color);transform:translateZ(0);transition:all var(--transition-time) ease-in-out;pointer-events:auto}.input-enabled .input-cover{transform:translate3d(0,105%,0);pointer-events:none}.input-loading-icon{position:absolute;display:inline-block;top:190px;left:0;width:100%;transform:translateZ(0);pointer-events:auto;opacity:0;transition:all 50ms ease-in-out;transition-delay:50ms;pointer-events:none}.input-loading .input-loading-icon{opacity:.5}:host{position:fixed;inset:0;z-index:2147483646;user-select:none;pointer-events:none;color:var(--text-color)}aside{position:absolute;top:0;right:0;width:var(--menu-width);height:100%;transform:translate3d(105%,0,0);transition:transform var(--transition-time) ease-in-out;background:var(--background-color);box-shadow:#000000c9 5px 0 20px;overflow:hidden;z-index:1}:host(.show-builder-menu) aside{pointer-events:auto;transform:translateZ(0)}#hit{position:absolute;inset:0;display:none}:host(.show-builder-menu) #hit{display:block;pointer-events:auto}#version{position:absolute;bottom:6px;right:6px;font-size:8px;color:#9b9b9b}</style><div id="hit"></div> <aside data-view="nav-home"> <section class="nav-home"> <header> <svg class="builder-logo" viewBox="0 0 31 36" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M31 9.96854C31.0016 11.4553 30.6701 12.9236 30.03 14.2654C29.3898 15.6072 28.4572 16.7884 27.3007 17.7221L0.702841 2.61812C0.601104 2.56012 0.506714 2.49008 0.421705 2.40951C0.288323 2.27871 0.182333 2.12263 0.109928 1.95039C0.0375215 1.77814 0.000151253 1.59319 0 1.40633C0 1.03335 0.148098 0.675643 0.411715 0.411905C0.675332 0.148167 1.03287 0 1.40568 0L21.036 0C23.6786 0 26.213 1.05025 28.0816 2.91972C29.9502 4.78918 31 7.32472 31 9.96854Z" fill="#18B4F4" /> <path d="M31 25.4757C31.0004 26.7849 30.7429 28.0815 30.2423 29.2912C29.7417 30.5009 29.0078 31.6001 28.0825 32.526C27.1572 33.4519 26.0587 34.1864 24.8497 34.6875C23.6406 35.1886 22.3448 35.4465 21.0361 35.4465H1.40573C1.12766 35.4436 0.856725 35.3581 0.627199 35.201C0.397672 35.044 0.219871 34.8223 0.116289 34.5641C0.0127078 34.3059 -0.011999 34.0228 0.0452946 33.7505C0.102588 33.4783 0.239308 33.2292 0.438156 33.0347C0.517415 32.9551 0.606358 32.8858 0.702893 32.8284L11.1705 26.8843L27.2984 17.7244C28.4548 18.6579 29.3874 19.8387 30.028 21.18C30.6685 22.5213 31.0007 23.9891 31 25.4757Z" fill="#FD6B3C" /> <path d="M27.3011 17.7221L11.1709 26.8843L0.703209 32.8284C0.602697 32.8843 0.509784 32.9528 0.426758 33.0323C4.41799 28.9369 6.6496 23.442 6.64456 17.7221C6.65208 12.0015 4.42111 6.50517 0.429101 2.40948C0.51411 2.49005 0.6085 2.56009 0.710237 2.61809L27.3011 17.7221Z" fill="#A97FF2" /> </svg> <div> <h2 class="builder-home-title">Builder Devtools</h2> <p><button id="go-to-builder">Go to Builder</button></p> </div> <button id="close" aria-label="Close Menu"> <svg viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M18 6l-12 12" /> <path d="M6 6l12 12" /> </svg> </button> </header> <div class="section-content"> <ul class="list"> <li> <button id="components-link"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M21 16.008V7.99001C20.9994 7.64108 20.9066 7.29851 20.731 6.99699C20.5554 6.69547 20.3032 6.44571 20 6.27301L13 2.26501C12.6954 2.09103 12.3508 1.99951 12 1.99951C11.6492 1.99951 11.3046 2.09103 11 2.26501L4 6.27301C3.381 6.62801 3 7.28301 3 7.99101V16.009C3 16.718 3.381 17.372 4 17.726L11 21.734C11.3046 21.908 11.6492 21.9995 12 21.9995C12.3508 21.9995 12.6954 21.908 13 21.734L20 17.726C20.619 17.371 21 16.716 21 16.008Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 22V12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M12 12L20.73 6.95996" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M3.26999 6.95996L12 12" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> </svg> <span>Components</span> </button> </li> <li> <button id="settings-link"> <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M10.325 4.317C10.751 2.561 13.249 2.561 13.675 4.317C13.7389 4.5808 13.8642 4.82578 14.0407 5.032C14.2172 5.23822 14.4399 5.39985 14.6907 5.50375C14.9414 5.60764 15.2132 5.65085 15.4838 5.62987C15.7544 5.60889 16.0162 5.5243 16.248 5.383C17.791 4.443 19.558 6.209 18.618 7.753C18.4769 7.98466 18.3924 8.24634 18.3715 8.51677C18.3506 8.78721 18.3938 9.05877 18.4975 9.30938C18.6013 9.55999 18.7627 9.78258 18.9687 9.95905C19.1747 10.1355 19.4194 10.2609 19.683 10.325C21.439 10.751 21.439 13.249 19.683 13.675C19.4192 13.7389 19.1742 13.8642 18.968 14.0407C18.7618 14.2172 18.6001 14.4399 18.4963 14.6907C18.3924 14.9414 18.3491 15.2132 18.3701 15.4838C18.3911 15.7544 18.4757 16.0162 18.617 16.248C19.557 17.791 17.791 19.558 16.247 18.618C16.0153 18.4769 15.7537 18.3924 15.4832 18.3715C15.2128 18.3506 14.9412 18.3938 14.6906 18.4975C14.44 18.6013 14.2174 18.7627 14.0409 18.9687C13.8645 19.1747 13.7391 19.4194 13.675 19.683C13.249 21.439 10.751 21.439 10.325 19.683C10.2611 19.4192 10.1358 19.1742 9.95929 18.968C9.7828 18.7618 9.56011 18.6001 9.30935 18.4963C9.05859 18.3924 8.78683 18.3491 8.51621 18.3701C8.24559 18.3911 7.98375 18.4757 7.752 18.617C6.209 19.557 4.442 17.791 5.382 16.247C5.5231 16.0153 5.60755 15.7537 5.62848 15.4832C5.64942 15.2128 5.60624 14.9412 5.50247 14.6906C5.3987 14.44 5.23726 14.2174 5.03127 14.0409C4.82529 13.8645 4.58056 13.7391 4.317 13.675C2.561 13.249 2.561 10.751 4.317 10.325C4.5808 10.2611 4.82578 10.1358 5.032 9.95929C5.23822 9.7828 5.39985 9.56011 5.50375 9.30935C5.60764 9.05859 5.65085 8.78683 5.62987 8.51621C5.60889 8.24559 5.5243 7.98375 5.383 7.752C4.443 6.209 6.209 4.442 7.753 5.382C8.753 5.99 10.049 5.452 10.325 4.317Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> <path d="M9 12C9 12.7956 9.31607 13.5587 9.87868 14.1213C10.4413 14.6839 11.2044 15 12 15C12.7956 15 13.5587 14.6839 14.1213 14.1213C14.6839 13.5587 15 12.7956 15 12C15 11.2044 14.6839 10.4413 14.1213 9.87868C13.5587 9.31607 12.7956 9 12 9C11.2044 9 10.4413 9.31607 9.87868 9.87868C9.31607 10.4413 9 11.2044 9 12Z" stroke="currentColor" stroke-width="1.75" stroke-linecap="round" stroke-linejoin="round" /> </svg> <span>Settings</span> </button> </li> <li> <button id="add-page-link"> <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M14 3v4a1 1 0 0 0 1 1h4" /> <path d="M17 21h-10a2 2 0 0 1 -2 -2v-14a2 2 0 0 1 2 -2h7l5 5v11a2 2 0 0 1 -2 2z" /> <path d="M12 11l0 6" /> <path d="M9 14l6 0" /> </svg> <span>Add Builder Page</span> </button> </li> <li> <button id="import-from-figma"> <svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-brand-figma" width="24" height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none" stroke-linecap="round" stroke-linejoin="round" > <path stroke="none" d="M0 0h24v24H0z" fill="none" /> <path d="M15 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0" /> <path d="M6 3m0 3a3 3 0 0 1 3 -3h6a3 3 0 0 1 3 3v0a3 3 0 0 1 -3 3h-6a3 3 0 0 1 -3 -3z" /> <path d="M9 9a3 3 0 0 0 0 6h3m-3 0a3 3 0 1 0 3 3v-15" /> </svg> <span>Import From Figma</span> </button> </li> </ul> </div> <footer> <ul class="list"> <li> <a href="https://docs.google.com/forms/d/e/1FAIpQLSdqZcJpRtm_Ia5DTHP6SDY9Xa6LID3KiTjRWkjMzWyJRUtSHw/viewform" target="_blank" > <svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg" > <path d="M11.013 17.0114L10.013 18.0114L2.513 10.5834C2.0183 10.102 1.62864 9.52342 1.36854 8.88404C1.10845 8.24466 0.983558 7.55836 1.00173 6.86834C1.01991 6.17832 1.18076 5.49954 1.47415 4.87474C1.76755 4.24994 2.18713 3.69266 2.70648 3.23799C3.22583 2.78331 3.8337 2.4411 4.49181 2.23289C5.14991 2.02468 5.844 1.95499 6.53036 2.02821C7.21673 2.10143 7.8805 2.31596 8.47987 2.65831C9.07925 3.00066 9.60124 3.46341 10.013 4.01741C10.8086 2.95654 11.9931 2.2552 13.3059 2.06766C14.6186 1.88012 15.9521 2.22176 17.013 3.01741C18.0739 3.81306 18.7752 4.99755 18.9627 6.3103C19.1503 7.62305 18.8086 8.95654 18.013 10.0174" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> <path d="M18.2006 19.8175L16.0286 20.9555C15.9642 20.989 15.8917 21.004 15.8192 20.9987C15.7467 20.9934 15.6771 20.9681 15.6182 20.9256C15.5593 20.8831 15.5134 20.825 15.4855 20.7579C15.4577 20.6907 15.4491 20.6172 15.4606 20.5455L15.8756 18.1345L14.1186 16.4275C14.0662 16.3768 14.0291 16.3123 14.0115 16.2416C13.9939 16.1708 13.9966 16.0965 14.0192 16.0271C14.0418 15.9578 14.0835 15.8962 14.1394 15.8494C14.1954 15.8026 14.2634 15.7725 14.3356 15.7625L16.7636 15.4105L17.8496 13.2175C17.8821 13.1521 17.9322 13.0972 17.9942 13.0588C18.0562 13.0204 18.1277 13 18.2006 13C18.2736 13 18.3451 13.0204 18.4071 13.0588C18.4691 13.0972 18.5191 13.1521 18.5516 13.2175L19.6376 15.4105L22.0656 15.7625C22.1377 15.7728 22.2054 15.8031 22.2611 15.85C22.3168 15.8968 22.3583 15.9583 22.3809 16.0275C22.4034 16.0967 22.4062 16.1708 22.3888 16.2415C22.3715 16.3122 22.3347 16.3766 22.2826 16.4275L20.5256 18.1345L20.9396 20.5445C20.9521 20.6163 20.9441 20.6902 20.9166 20.7578C20.8891 20.8254 20.8433 20.8839 20.7842 20.9267C20.7252 20.9695 20.6553 20.9949 20.5825 21C20.5098 21.005 20.4371 20.9896 20.3726 20.9555L18.2006 19.8175Z" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" /> </svg> <span>Give Feedback</span> </a> </li> </ul> <div id="version"></div> </footer> </section> <section class="nav-cmp-list"> <header> <button class="back-button"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div class="search-container"> <div class="search-input-wrapper"> <svg class="search-icon" viewBox="0 0 24 24" width="16" height="16"> <path fill="none" stroke="currentColor" stroke-width="2" d="M15.5 15.5L20 20M10 17C6.13401 17 3 13.866 3 10C3 6.13401 6.13401 3 10 3C13.866 3 17 6.13401 17 10C17 13.866 13.866 17 10 17Z" /> </svg> <input type="text" id="component-search" class="component-search-input" placeholder="Search components..." autocomplete="off" spellcheck="false" /> <button id="clear-search" class="clear-search-button" type="button" aria-label="Clear search" > <svg viewBox="0 0 24 24" width="16" height="16"> <path fill="none" stroke="currentColor" stroke-width="2" d="M6 6l12 12M6 18L18 6" /> </svg> </button> </div> </div> <div> <h2>Custom Components</h2> <p> <button id="open-builder-registry"></button> </p> </div> </header> <div class="section-content"> <div id="cmp-list" class="cmp-list nav-list"></div> </div> <div class="nav-loading-icon spinner"></div> <footer> <p class="info"> Expand on Builder's selection of built-in blocks by <a target="_blank" href="https://www.builder.io/c/docs/custom-components-intro" >registering components</a > from your codebase. This way, teammates can drag and drop your components within Builder's Visual Editor just like any other block. </p> </footer> </section> <section class="nav-cmp-detail"> <header> <button class="back-button" data-back="nav-cmp-list"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div> <h2 id="cmp-detail-title"></h2> <p> <button id="cmp-open-source"></button> </p> </div> </header> <div class="section-content"> <div id="cmp-error"></div> <label class="ui-switch"> <div> <h3>Register Component</h3> <p> Registers this component so it can be used within Builder Visual CMS </p> </div> <input type="checkbox" role="switch" id="cmp-register" /> <span class="switcher"></span> </label> <div id="cmp-detail"> <label class="ui-text-input"> <h3>Component Name</h3> <div class="input"> <input type="text" id="cmp-name" autocapitalize="off" autocorrect="off" spellcheck="false" autocomplete="off" minlength="2" maxlength="30" required placeholder="e.g. My Counter" /> </div> <p> Unique name to identify this custom component within Builder. Press ESC to cancel </p> </label> <div class="cmp-detail-inputs-container"> <h3> <span>Builder Inputs (Props)</span> <button class="cmp-detail-inputs-reload" id="btn-inputs-reload"> Reload </button> </h3> <div id="cmp-detail-inputs"></div> </div> </div> </div> <div class="cmp-cover"></div> <div class="cmp-loading-icon spinner"></div> </section> <section class="nav-cmp-input"> <header> <button class="back-button" data-back="nav-cmp-detail"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div> <h2 id="cmp-input-title"></h2> <p> <button id="input-open-source"></button> </p> </div> </header> <div class="section-content"> <label class="ui-switch"> <div> <h3>Enable Input</h3> <p>Add this component prop as a Builder input</p> </div> <input type="checkbox" role="switch" id="input-register" /> <span class="switcher"></span> </label> <div class="cmp-prop-info"> <div class="cmp-input-readonly"> <h3>Prop Name</h3> <span id="cmp-prop-name"></span> </div> <div class="cmp-input-readonly"> <h3>Prop Type</h3> <span id="cmp-prop-type"></span> </div> </div> <div class="cmp-input-detail"> <label class="ui-text-input"> <h3>Builder Input Name</h3> <div class="input"> <input type="text" id="input-name" autocapitalize="off" autocorrect="off" spellcheck="false" autocomplete="off" minlength="1" maxlength="30" required placeholder="e.g. Text" /> </div> <p> Friendly name to identify this component prop as a Builder input. Press ESC to cancel </p> </label> <label class="ui-select"> <h3>Builder Input Type</h3> <div class="select"> <select id="input-type"></select> </div> <p> Correlate to what editing UI is appropriate for this Builder input. <a href="https://www.builder.io/c/docs/custom-components-input-types" target="_blank" >Read more about input types.</a > </p> </label> </div> <div class="input-cover"></div> <div class="input-loading-icon spinner"></div> </div> </section> <section class="nav-settings"> <header> <button class="back-button"> <svg viewBox="0 0 24 24"> <path d="M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z" /> </svg> </button> <div> <h2>Settings</h2> <p>Configure Builder's Devtools</p> </div> </header> <div class="section-content"> <label class="ui-switch"> <div> <h3>Enable edit button in UI</h3> <p>Enables the edit button so you can edit content in Builder</p> </div> <input type="checkbox" role="switch" id="enable-edit" /> <span class="switcher"></span> </label> </div> </section> <div class="ui-toast" id="toast"></div> </aside> <button class="menu-toggle" aria-label="Toggle Builder Devtools"> <div> <div class="highlight-bg"></div> <svg viewBox="0 0 31 36" fill="none" xmlns="http://www.w3.org/2000/svg"> <path d="M31 9.96854C31.0016 11.4553 30.6701 12.9236 30.03 14.2654C29.3898 15.6072 28.4572 16.7884 27.3007 17.7221L0.702841 2.61812C0.601104 2.56012 0.506714 2.49008 0.421705 2.40951C0.288323 2.27871 0.182333 2.12263 0.109928 1.95039C0.0375215 1.77814 0.000151253 1.59319 0 1.40633C0 1.03335 0.148098 0.675643 0.411715 0.411905C0.675332 0.148167 1.03287 0 1.40568 0L21.036 0C23.6786 0 26.213 1.05025 28.0816 2.91972C29.9502 4.78918 31 7.32472 31 9.96854Z" fill="#18B4F4" /> <path d="M31 25.4757C31.0004 26.7849 30.7429 28.0815 30.2423 29.2912C29.7417 30.5009 29.0078 31.6001 28.0825 32.526C27.1572 33.4519 26.0587 34.1864 24.8497 34.6875C23.6406 35.1886 22.3448 35.4465 21.0361 35.4465H1.40573C1.12766 35.4436 0.856725 35.3581 0.627199 35.201C0.397672 35.044 0.219871 34.8223 0.116289 34.5641C0.0127078 34.3059 -0.011999 34.0228 0.0452946 33.7505C0.102588 33.4783 0.239308 33.2292 0.438156 33.0347C0.517415 32.9551 0.606358 32.8858 0.702893 32.8284L11.1705 26.8843L27.2984 17.7244C28.4548 18.6579 29.3874 19.8387 30.028 21.18C30.6685 22.5213 31.0007 23.9891 31 25.4757Z" fill="#FD6B3C" /> <path d="M27.3011 17.7221L11.1709 26.8843L0.703209 32.8284C0.602697 32.8843 0.509784 32.9528 0.426758 33.0323C4.41799 28.9369 6.6496 23.442 6.64456 17.7221C6.65208 12.0015 4.42111 6.50517 0.429101 2.40948C0.51411 2.49005 0.6085 2.56009 0.710237 2.61809L27.3011 17.7221Z" fill="#A97FF2" /> </svg> </div> </button>\`,si(e),ui(e),oi(e),ri(e),ti(e),ci(e),this.setAttribute("aria-hidden","true"),e.getElementById("version").textContent="v1.71.1"}highlightOpener(){let e=this.shadowRoot.querySelector(".menu-toggle");e.classList.add("menu-toggle-highlight"),e.classList.add("menu-toggle-highlight-no-transition"),setTimeout(()=>{e.classList.remove("menu-toggle-highlight-no-transition"),setTimeout(()=>{e.classList.remove("menu-toggle-highlight")},20)},20)}};var lo=\`<style>*,*:before,*:after{box-sizing:border-box}html,body,:host{position:fixed;top:0;left:0;width:100%;height:100vh;z-index:2147483646;margin:0;padding:0;line-height:1.8;font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,"Apple Color Emoji","Segoe UI Emoji",Segoe UI Symbol,"Noto Color Emoji";background-color:#252525;color:#fff;transition:opacity .25s ease-in-out}:host([aria-hidden="true"]){opacity:0;pointer-events:none}main{position:absolute;top:0;left:0;width:100%;height:100vh}h1{margin-top:0;font-size:24px;font-weight:300;line-height:1.4}p{margin:20px 0;font-weight:300}button{cursor:pointer}aside{position:absolute;top:0;left:0;width:350px;height:100vh;padding:60px 0 0 50px;background-color:#121212}aside ul{margin:30px 0 0;padding:0;list-style:none}aside li{position:relative;margin:0;padding:20px 10px;font-weight:300}aside li.highlight{color:#48a1ff}aside li.active{font-weight:700}aside li .circle{position:absolute;top:20px;left:10px;width:24px;height:24px;border:3px solid white;border-radius:50%;font-size:14px}aside li.highlight .circle{border-color:#48a1ff}aside li.active .circle:after{content:"";position:absolute;top:3px;left:3px;width:12px;height:12px;border-radius:50%;background-color:#48a1ff}aside li.completed .circle{background-color:#48a1ff}aside li.completed .circle:after{content:"";position:absolute;top:2px;left:6px;width:6px;height:13px;border:3px solid black;border-top:none;border-left:none;transform:rotate(45deg)}aside li .line{position:absolute;top:44px;left:21px;width:3px;height:45px;background-color:#fff}aside li.completed .line{background-color:#48a1ff}aside li span{display:block;margin-left:44px}nav{margin-top:30px}section{position:absolute;top:135px;left:350px;padding:0 80px 0 140px;transition:opacity .15s ease-in-out}section[aria-hidden=true]{pointer-events:none;opacity:0}section h1,section p{min-width:300px;max-width:600px}.button{position:relative;display:inline-block;color:#fff;background-color:#48a1ff;border-radius:4px;text-decoration:none;padding:10px 40px 10px 20px;white-space:nowrap}.button:hover{background-color:#48a1ffd9}#button-icon{position:absolute;top:1px;right:5px;bottom:0;width:30px;background-image:url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><path fill="none" stroke="white" stroke-linecap="square" stroke-miterlimit="10" stroke-width="48" d="M184 112l144 144-144 144"/></svg>');background-repeat:no-repeat;background-position:center;background-size:24px 24px}.button[aria-disabled=true]{opacity:.9;background-color:#ffffff4d;pointer-events:none;padding-right:60px}.button[aria-disabled=true] #button-icon{top:21px;right:29px;width:8px;height:8px;border-radius:4px;background:#fff;color:#fff;animation:dot-flashing .5s infinite linear alternate;animation-delay:.25s}.button[aria-disabled=true] #button-icon:before,.button[aria-disabled=true] #button-icon:after{content:"";display:inline-block;position:absolute;top:0}.button[aria-disabled=true] #button-icon:before{left:-12px;width:8px;height:8px;border-radius:4px;background-color:#fff;color:#fff;animation:dot-flashing .5s infinite alternate;animation-delay:0s}.button[aria-disabled=true] #button-icon:after{left:12px;width:8px;height:8px;border-radius:4px;background-color:#fff;color:#fff;animation:dot-flashing .5s infinite alternate;animation-delay:.5s}@keyframes dot-flashing{0%{background-color:#fff}50%,to{background-color:#ffffff4d}}.logo{margin-left:9px;background:url('data:image/svg+xml,<svg viewBox="0 0 150 32" fill="none" xmlns="http://www.w3.org/2000/svg" > <g clip-path="url(%23clip0_4_304)"> <path d="M27.9858 8.99927C27.9872 10.3415 27.688 11.667 27.1101 12.8783C26.5321 14.0896 25.6902 15.156 24.6462 15.9989V15.9989L0.634502 2.36355C0.542657 2.31119 0.457444 2.24796 0.380701 2.17523C0.260289 2.05715 0.164605 1.91624 0.0992389 1.76075C0.0338732 1.60525 0.000136546 1.43828 0 1.26959C0 0.932873 0.133698 0.609948 0.371683 0.371854C0.609667 0.13376 0.932443 0 1.269 0L18.9906 0C21.3763 0 23.6642 0.948135 25.3512 2.63583C27.0381 4.32352 27.9858 6.61252 27.9858 8.99927V8.99927Z" fill="%2318B4F4" /> <path d="M27.9858 22.9986C27.9861 24.1806 27.7536 25.351 27.3017 26.4431C26.8498 27.5352 26.1873 28.5275 25.352 29.3634C24.5167 30.1993 23.5249 30.8624 22.4335 31.3147C21.342 31.7671 20.1721 32 18.9907 32H1.26906C1.01802 31.9973 0.77343 31.9202 0.566221 31.7784C0.359012 31.6366 0.198499 31.4364 0.104989 31.2034C0.0114791 30.9703 -0.0108254 30.7147 0.0408974 30.4689C0.0926201 30.2231 0.216046 29.9982 0.395559 29.8226V29.8226C0.467112 29.7508 0.547407 29.6882 0.634555 29.6364L10.0844 24.2703L24.6441 16.001C25.688 16.8438 26.53 17.9097 27.1083 19.1206C27.6866 20.3315 27.9864 21.6566 27.9858 22.9986V22.9986Z" fill="%23FD6B3C" /> <path d="M24.6461 15.9989L10.0843 24.2703L0.634458 29.6365C0.54372 29.6868 0.459841 29.7487 0.384888 29.8205C3.98804 26.1233 6.00266 21.1627 5.99812 15.9989C6.0049 10.8346 3.99085 5.87268 0.387003 2.17523C0.463746 2.24796 0.548959 2.31119 0.640803 2.36355L24.6461 15.9989Z" fill="%23A97FF2" /> <path d="M47.6659 11.7352C51.8177 11.7352 54.1632 15.0531 54.1632 19.0714C54.1632 23.0896 51.8177 26.3821 47.6659 26.3821C45.5086 26.3821 43.8589 25.5188 42.9473 24.0545L42.5709 26.052H39.9736V6.77115H43.1884V13.8914C43.971 12.6959 45.5086 11.7352 47.6659 11.7352ZM47.0187 23.5488C49.4446 23.5488 50.9547 21.5809 50.9547 19.0714C50.9547 16.5089 49.4446 14.5664 47.0187 14.5664C44.5928 14.5664 43.0806 16.5047 43.0806 19.0714C43.0806 21.583 44.5653 23.5488 47.0187 23.5488V23.5488Z" fill="white" /> <path d="M65.4595 20.2859V12.0611H68.668V20.123C68.668 23.7202 67.0246 26.3821 62.4943 26.3821C57.9639 26.3821 56.3206 23.7117 56.3206 20.123V12.0611H59.529V20.2859C59.529 22.4696 60.5527 23.5488 62.49 23.5488C64.4274 23.5488 65.4595 22.4696 65.4595 20.2859Z" fill="white" /> <path d="M71.2355 7.74451C71.2247 7.46284 71.2724 7.18199 71.3755 6.91968C71.4787 6.65737 71.6351 6.41929 71.8348 6.22047C72.0345 6.02165 72.2732 5.8664 72.5359 5.76452C72.7986 5.66264 73.0796 5.61633 73.3611 5.62853C74.5793 5.62853 75.4571 6.50666 75.4571 7.75509C75.4571 9.00352 74.5793 9.8224 73.3611 9.8224C72.1428 9.8224 71.2355 8.9612 71.2355 7.74451Z" fill="white" /> <path d="M128.476 7.74451C128.465 7.46376 128.513 7.18383 128.615 6.92227C128.718 6.66071 128.873 6.42315 129.072 6.22449C129.27 6.02583 129.508 5.87035 129.769 5.7678C130.031 5.66524 130.31 5.61783 130.591 5.62852C131.809 5.62852 132.687 6.50666 132.687 7.75509C132.687 9.00352 131.809 9.8224 130.591 9.8224C129.373 9.8224 128.476 8.9612 128.476 7.74451Z" fill="white" /> <path d="M122.302 24.1031C122.291 23.8223 122.339 23.5422 122.441 23.2805C122.543 23.0188 122.699 22.7811 122.897 22.5824C123.096 22.3837 123.334 22.2282 123.595 22.1258C123.857 22.0233 124.137 21.9761 124.417 21.9872C125.636 21.9872 126.513 22.8653 126.513 24.1031C126.513 25.341 125.636 26.1726 124.417 26.1726C123.199 26.1726 122.302 25.3219 122.302 24.1031Z" fill="white" /> <path d="M74.9516 12.059H71.7432V26.0583H74.9516V12.059Z" fill="white" /> <path d="M78.16 26.0583V6.77115H81.3685V26.0626L78.16 26.0583Z" fill="white" /> <path d="M94.6063 6.77115H97.8148V26.0626H95.2239L94.8474 24.0651C93.9591 25.523 92.3094 26.3927 90.131 26.3927C86.0046 26.3927 83.6591 23.0748 83.6591 19.0819C83.6591 15.0891 86.0046 11.7458 90.131 11.7458C92.3137 11.7458 93.8238 12.7149 94.6063 13.902V6.77115ZM90.7993 14.5707C88.3734 14.5707 86.8633 16.5131 86.8633 19.0756C86.8633 21.5851 88.3734 23.553 90.7993 23.553C93.2252 23.553 94.7354 21.5851 94.7354 19.0756C94.7396 16.5047 93.257 14.5664 90.8036 14.5664L90.7993 14.5707Z" fill="white" /> <path d="M113.479 22.2284C112.482 24.7359 110.162 26.3821 107.117 26.3821C102.887 26.3821 100.137 23.225 100.137 19.0439C100.137 14.9706 102.942 11.7353 107.093 11.7353C111.245 11.7353 113.969 14.8902 113.969 18.991C113.982 19.3255 113.953 19.6604 113.883 19.9876H103.288C103.53 22.2009 104.959 23.6292 107.197 23.6292C108.735 23.6292 110.001 22.8738 110.594 21.473L113.479 22.2284ZM103.341 17.6156H110.784C110.513 15.6731 109.166 14.3506 107.089 14.3506C105.012 14.3506 103.665 15.7006 103.341 17.6156V17.6156Z" fill="white" /> <path d="M123.779 14.9452C123.538 14.9117 123.295 14.8933 123.051 14.8902C120.786 14.8902 119.439 16.0772 119.439 18.7751V26.0583H116.23V12.0611H118.821L119.195 14.0014C119.707 13.1127 120.887 11.9257 123.322 11.9257C123.455 11.9257 123.779 11.9532 123.779 11.9532V14.9452Z" fill="white" /> <path d="M132.192 12.059H128.984V26.0583H132.192V12.059Z" fill="white" /> <path d="M134.483 19.0714C134.483 15.1335 137.287 11.7353 141.735 11.7353C146.183 11.7353 149.015 15.1335 149.015 19.0714C149.015 23.0092 146.213 26.3821 141.735 26.3821C137.258 26.3821 134.483 23.0092 134.483 19.0714ZM141.735 23.5488C144.083 23.5488 145.806 21.7692 145.806 19.0714C145.806 16.3735 144.083 14.5664 141.735 14.5664C139.387 14.5664 137.687 16.346 137.687 19.0714C137.687 21.7968 139.417 23.5488 141.735 23.5488V23.5488Z" fill="white" /> </g> <defs> <clipPath id="clip0_4_304"> <rect width="149.015" height="32" fill="white" /> </clipPath> </defs> </svg>');background-repeat:no-repeat;width:150px;height:32px}@media(max-width:840px){aside{width:250px;padding:60px 0 0 20px}section{left:250px;padding:0 80px}}@media(max-width:590px){aside{width:230px;padding:60px 0 0 10px}section{left:230px;padding:0 40px}}#modified-files-message a{color:#cbcbcb;font-weight:300;text-decoration:underline}#modified-files-message a:hover{color:#fff;text-decoration:none}#restart-warning{border-radius:4px;padding:8px 16px;border:1px solid #fd6b3c;background:#fd6b3c1a}#react-router-steps{margin:0 0 5px;padding:0 20px}#need-help{color:#48a1ff;text-decoration:none}#router-message{border-radius:4px;padding:16px;border:1px solid #48a1ff}#router-finish-button{margin-top:12px}#router-checkbox-div{display:flex;align-items:center}#router-checkbox{margin-right:10px;width:15px;height:15px}#success-title{display:flex;align-items:center;gap:10px}#success-title .check-icon{display:inline-block;width:24px;height:24px;border:2px solid #28a745;border-radius:50%;position:relative}#success-title .check-icon:before{content:"";position:absolute;top:50%;left:50%;width:6px;height:12px;border:solid #28a745;border-width:0 2px 2px 0;transform:translate(-50%,-60%) rotate(45deg)}
|
|
626
626
|
</style>\`,Nt=class extends HTMLElement{connectedCallback(){let e=this.attachShadow({mode:"open"});e.innerHTML=lo+\`<main>
|
|
627
627
|
<aside>
|
|
628
628
|
<div class="logo"></div>
|
|
@@ -661,7 +661,7 @@ Restarting server after Builder Devtools update...
|
|
|
661
661
|
</nav>
|
|
662
662
|
</section>
|
|
663
663
|
</main>
|
|
664
|
-
\`,po();let r=new URL(Fr,ot);r.searchParams.set(Br,location.href);let n=e.querySelectorAll(".next-step");for(let i of n)i.setAttribute("href",r.href);ye("overview step viewed")}},po=()=>{let t=document.head.querySelector("link[rel='icon'], link[rel='icon shortcut']");t?(t.href="https://cdn.builder.io/favicon.ico",t.removeAttribute("type")):(t=document.createElement("link"),t.rel="icon",t.href="https://cdn.builder.io/favicon.ico",document.head.appendChild(t))};var li=async()=>{(await jr()).isValid||fo()},fo=()=>{customElements.get("builder-dev-tools-overview")||customElements.define("builder-dev-tools-overview",Nt);let t=document.querySelector("builder-dev-tools-overview");t||(t=document.createElement("builder-dev-tools-overview"),t.setAttribute("aria-hidden","true"),document.body.appendChild(t)),setTimeout(()=>{t.removeAttribute("aria-hidden")},32)};var mo=()=>{try{customElements.get("builder-dev-tools-edit")||customElements.define("builder-dev-tools-edit",at),customElements.get("builder-dev-tools-menu")||customElements.define("builder-dev-tools-menu",Dt);let t=document.querySelector("builder-dev-tools-menu");t||(t=document.createElement("builder-dev-tools-menu"),t.setAttribute("data-version","1.71.
|
|
664
|
+
\`,po();let r=new URL(Fr,ot);r.searchParams.set(Br,location.href);let n=e.querySelectorAll(".next-step");for(let i of n)i.setAttribute("href",r.href);ye("overview step viewed")}},po=()=>{let t=document.head.querySelector("link[rel='icon'], link[rel='icon shortcut']");t?(t.href="https://cdn.builder.io/favicon.ico",t.removeAttribute("type")):(t=document.createElement("link"),t.rel="icon",t.href="https://cdn.builder.io/favicon.ico",document.head.appendChild(t))};var li=async()=>{(await jr()).isValid||fo()},fo=()=>{customElements.get("builder-dev-tools-overview")||customElements.define("builder-dev-tools-overview",Nt);let t=document.querySelector("builder-dev-tools-overview");t||(t=document.createElement("builder-dev-tools-overview"),t.setAttribute("aria-hidden","true"),document.body.appendChild(t)),setTimeout(()=>{t.removeAttribute("aria-hidden")},32)};var mo=()=>{try{customElements.get("builder-dev-tools-edit")||customElements.define("builder-dev-tools-edit",at),customElements.get("builder-dev-tools-menu")||customElements.define("builder-dev-tools-menu",Dt);let t=document.querySelector("builder-dev-tools-menu");t||(t=document.createElement("builder-dev-tools-menu"),t.setAttribute("data-version","1.71.1"),document.body.appendChild(t));let e=document.querySelector("builder-dev-tools-edit");e||(e=document.createElement("builder-dev-tools-edit"),document.body.appendChild(e));let r=document.getElementById("builder-dev-tools-style");r||(r=document.createElement("style"),r.id="builder-dev-tools-style",r.innerHTML=".builder-no-scroll{overflow:hidden !important}",document.head.appendChild(r)),li(),Jn()}catch(t){console.error("Builder Devtools:",t)}};window.location===window.parent.location&&(console.debug("Builder.io Devtools v1.71.1"),mo());})();`)}async function Bx(t){return Qx(t,`<!doctype html>
|
|
665
665
|
<html lang="en" dir="ltr">
|
|
666
666
|
<head>
|
|
667
667
|
<meta charset="utf-8" />
|
|
@@ -827,7 +827,7 @@ Restarting server after Builder Devtools update...
|
|
|
827
827
|
</script>
|
|
828
828
|
</body>
|
|
829
829
|
</html>
|
|
830
|
-
`)}async function Qx(t,e){let r=await ib(t),n=t.getFrameworks();return e.replace(/__LOCAL_APP_ID__/g,r).replace(/__DEV_TOOLS_URL__/g,t.devToolsServerUrl).replace(/__CLIENT_ID__/g,t.getClientId()).replace(/__FRAMEWORK__/g,n.length?n[0].name:"")}Qs();import{platform as AV}from"node:os";async function yx(t,e){let r=new URL("/cli-auth","https://builder.io");r.searchParams.set("client_id",t.getClientId()),r.searchParams.set("host",await t.getDeviceId()),r.searchParams.set("response_type","code"),r.searchParams.set("cli","true");let n=new URL(Io,t.devToolsServerUrl);n.searchParams.set(ml,AV()),n.searchParams.set(hl,process.versions.node);let i=t.getFrameworks();return i.length>0&&(r.searchParams.set(Bs,i[0].name),n.searchParams.set(Bs,i[0].name)),r.searchParams.set("redirect_url",n.href),r.searchParams.set("preview_url",e),r.href}On();On();zr();import Me from"typescript";li();ho();tt();var
|
|
830
|
+
`)}async function Qx(t,e){let r=await ib(t),n=t.getFrameworks();return e.replace(/__LOCAL_APP_ID__/g,r).replace(/__DEV_TOOLS_URL__/g,t.devToolsServerUrl).replace(/__CLIENT_ID__/g,t.getClientId()).replace(/__FRAMEWORK__/g,n.length?n[0].name:"")}Qs();import{platform as AV}from"node:os";async function yx(t,e){let r=new URL("/cli-auth","https://builder.io");r.searchParams.set("client_id",t.getClientId()),r.searchParams.set("host",await t.getDeviceId()),r.searchParams.set("response_type","code"),r.searchParams.set("cli","true");let n=new URL(Io,t.devToolsServerUrl);n.searchParams.set(ml,AV()),n.searchParams.set(hl,process.versions.node);let i=t.getFrameworks();return i.length>0&&(r.searchParams.set(Bs,i[0].name),n.searchParams.set(Bs,i[0].name)),r.searchParams.set("redirect_url",n.href),r.searchParams.set("preview_url",e),r.href}On();On();zr();import Me from"typescript";li();ho();tt();var t7e=new Set(["about","accessKey","accessKeyLabel","asChild","autoCapitalize","autoCorrect","autoFocus","autoSave","blur","contentEditable","contextMenu","dangerouslySetInnerHTML","datatype","defaultChecked","defaultValue","dir","draggable","enterKeyHint","focus","form","formAction","formEncType","formMethod","formNoValidate","formTarget","inlist","innerText","inputMode","is","isContentEditable","itemID","itemProp","itemRef","itemScope","itemType","lang","nonce","offsetHeight","offsetLeft","offsetTop","offsetWidth","outerText","prefix","property","radioGroup","rel","resource","results","rev","role","security","slot","spellCheck","suppressContentEditableWarning","suppressHydrationWarning","tabIndex","translate","typeof","unselectable","vocab"].map(t=>t.toLowerCase()));tt();tt();tt();tt();tt();tt();tt();tt();Kr();tt();Kr();Kr();tt();tt();tt();Kr();Kr();tt();tt();tt();tt();tt();tt();Kr();tt();Kr();rt();tt();var cnt=de("AngularComponents");tt();tt();tt();tt();var D0e=Ze(oq(),1);Kr();rt();var bit=de("VueComponents");Kr();tt();tt();rt();var Bq=Ze(Eq(),1),iAt=de("ImportExportRegistry");var an={react:"react",remix:"remix",angular:"angular",next:"next",qwik:"qwik",vue:"vue",native:"native"},sAt={[an.react]:[{version:mt.gen1,recommended:!0},{version:mt.gen2,recommended:!1}],[an.remix]:[{version:mt.gen1,recommended:!1},{version:mt.gen2,recommended:!0}],[an.angular]:[{version:mt.gen2,recommended:!0}],[an.next]:[{version:mt.gen1,recommended:!0},{version:mt.gen2,recommended:!1}],[an.qwik]:[{version:mt.gen2,recommended:!0}],[an.vue]:[{version:mt.gen1,recommended:!0},{version:mt.gen2,recommended:!1}]};var xAt={"@builder.io/qwik-city":an.qwik,next:an.next,"@remix-run/react":an.remix,react:an.react,"@angular/core":an.angular,vue:an.vue,native:an.native};Tf();ho();ho();ho();ho();rt();var KAt=de("NextConfig");var Iot=`
|
|
831
831
|
/** @type {import('next').NextConfig} */
|
|
832
832
|
const nextConfig = {
|
|
833
833
|
}
|