@builder.io/dev-tools 1.35.0 → 1.35.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 +65 -49
- package/cli/index.cjs.map +4 -4
- 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 +3 -3
- package/server/index.mjs +3 -3
- package/types/tsconfig.tsbuildinfo +1 -1
package/cli/index.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
var Xve=Object.create;var TB=Object.defineProperty;var ebe=Object.getOwnPropertyDescriptor;var tbe=Object.getOwnPropertyNames;var ibe=Object.getPrototypeOf,nbe=Object.prototype.hasOwnProperty;var T=(t,e)=>()=>(t&&(e=t(t=0)),e);var S=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),vl=(t,e)=>{for(var i in e)TB(t,i,{get:e[i],enumerable:!0})},WK=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of tbe(e))!nbe.call(t,r)&&r!==i&&TB(t,r,{get:()=>e[r],enumerable:!(n=ebe(e,r))||n.enumerable});return t};var X=(t,e,i)=>(i=t!=null?Xve(ibe(t)):{},WK(e||!t||!t.__esModule?TB(i,"default",{value:t,enumerable:!0}):i,t)),on=t=>WK(TB({},"__esModule",{value:!0}),t);var f=T(()=>{{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"
|
|
1
|
+
var Xve=Object.create;var TB=Object.defineProperty;var ebe=Object.getOwnPropertyDescriptor;var tbe=Object.getOwnPropertyNames;var ibe=Object.getPrototypeOf,nbe=Object.prototype.hasOwnProperty;var T=(t,e)=>()=>(t&&(e=t(t=0)),e);var S=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),vl=(t,e)=>{for(var i in e)TB(t,i,{get:e[i],enumerable:!0})},WK=(t,e,i,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of tbe(e))!nbe.call(t,r)&&r!==i&&TB(t,r,{get:()=>e[r],enumerable:!(n=ebe(e,r))||n.enumerable});return t};var X=(t,e,i)=>(i=t!=null?Xve(ibe(t)):{},WK(e||!t||!t.__esModule?TB(i,"default",{value:t,enumerable:!0}):i,t)),on=t=>WK(TB({},"__esModule",{value:!0}),t);var f=T(()=>{{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{};t.SENTRY_RELEASE={id:"4abdde0439c20c87798d455736c7b52eb7223d43"}}});var XK=S((adt,ZK)=>{f();function AS(t){return t==null?[]:Array.isArray(t)?t:[t]}function rbe(t,e,i,n){var r,s=t[e],o=~n.string.indexOf(e)?i==null||i===!0?"":String(i):typeof i=="boolean"?i:~n.boolean.indexOf(e)?i==="false"?!1:i==="true"||(t._.push((r=+i,r*0===0?r:i)),!!i):(r=+i,r*0===0?r:i);t[e]=s==null?o:Array.isArray(s)?s.concat(o):[s,o]}ZK.exports=function(t,e){t=t||[],e=e||{};var i,n,r,s,o,a={_:[]},A=0,c=0,u=0,l=t.length;let d=e.alias!==void 0,p=e.unknown!==void 0,g=e.default!==void 0;if(e.alias=e.alias||{},e.string=AS(e.string),e.boolean=AS(e.boolean),d)for(i in e.alias)for(n=e.alias[i]=AS(e.alias[i]),A=0;A<n.length;A++)(e.alias[n[A]]=n.concat(i)).splice(A,1);for(A=e.boolean.length;A-- >0;)for(n=e.alias[e.boolean[A]]||[],c=n.length;c-- >0;)e.boolean.push(n[c]);for(A=e.string.length;A-- >0;)for(n=e.alias[e.string[A]]||[],c=n.length;c-- >0;)e.string.push(n[c]);if(g){for(i in e.default)if(s=typeof e.default[i],n=e.alias[i]=e.alias[i]||[],e[s]!==void 0)for(e[s].push(i),A=0;A<n.length;A++)e[s].push(n[A])}let m=p?Object.keys(e.alias):[];for(A=0;A<l;A++){if(r=t[A],r==="--"){a._=a._.concat(t.slice(++A));break}for(c=0;c<r.length&&r.charCodeAt(c)===45;c++);if(c===0)a._.push(r);else if(r.substring(c,c+3)==="no-"){if(s=r.substring(c+3),p&&!~m.indexOf(s))return e.unknown(r);a[s]=!1}else{for(u=c+1;u<r.length&&r.charCodeAt(u)!==61;u++);for(s=r.substring(c,u),o=r.substring(++u)||A+1===l||(""+t[A+1]).charCodeAt(0)===45||t[++A],n=c===2?[s]:s,u=0;u<n.length;u++){if(s=n[u],p&&!~m.indexOf(s))return e.unknown("-".repeat(c)+s);rbe(a,s,u+1<n.length||o,e)}}}if(g)for(i in e.default)a[i]===void 0&&(a[i]=e.default[i]);if(d)for(i in a)for(n=e.alias[i]||[];n.length>0;)a[n.shift()]=a[i];return a}});function sbe(){if(oh!==void 0)return oh;try{return oh=require("prettier"),oh}catch{return oh=null,null}}function obe(t){let e=[],i=bl.default.dirname(t);for(;i!==bl.default.dirname(i);){let n=bl.default.join(i,".prettierignore");cS.default.existsSync(n)&&e.push(n);let r=bl.default.join(i,".git");if(cS.default.existsSync(r))break;i=bl.default.dirname(i)}return e}function abe(t){if(t)try{let i=(0,eH.createRequire)(t)("prettier");if(i)return i}catch{}return sbe()}async function ia(t,e,i,n){try{let r=bl.default.resolve(t,n??"file.tsx"),s=abe(r);if(!s)return e;if(n){let A=obe(r);if((await s.getFileInfo(r,{ignorePath:A.length>0?A:void 0})).ignored)return e}let o=await s.resolveConfig(r);return await s.format(e,{...o,filepath:n,parser:i})}catch{return e}}var eH,bl,cS,oh,MB=T(()=>{"use strict";f();eH=require("node:module"),bl=X(require("node:path"),1),cS=X(require("node:fs"),1)});var uS,bg,PB,_B,tH,wl,lS,pS,Sl,iH,wg=T(()=>{"use strict";f();uS="preview-url",bg="framework",PB="platform",_B="node",tH="/~builder-connect",wl="/~builder-connected",lS="/~builder-dev-tools",pS="/~builder-dev-tools.js",Sl="/~builder-dev-tools-close",iH="/mappings"});var LB=S((gdt,nH)=>{"use strict";f();var gS={to(t,e){return e?`\x1B[${e+1};${t+1}H`:`\x1B[${t+1}G`},move(t,e){let i="";return t<0?i+=`\x1B[${-t}D`:t>0&&(i+=`\x1B[${t}C`),e<0?i+=`\x1B[${-e}A`:e>0&&(i+=`\x1B[${e}B`),i},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"},Abe={up:(t=1)=>"\x1B[S".repeat(t),down:(t=1)=>"\x1B[T".repeat(t)},cbe={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 i=0;i<t;i++)e+=this.line+(i<t-1?gS.up():"");return t&&(e+=gS.left),e}};nH.exports={cursor:gS,scroll:Abe,erase:cbe,beep:"\x07"}});var Ui=S((mdt,dS)=>{f();var GB=process||{},rH=GB.argv||[],UB=GB.env||{},ube=!(UB.NO_COLOR||rH.includes("--no-color"))&&(!!UB.FORCE_COLOR||rH.includes("--color")||GB.platform==="win32"||(GB.stdout||{}).isTTY&&UB.TERM!=="dumb"||!!UB.CI),lbe=(t,e,i=t)=>n=>{let r=""+n,s=r.indexOf(e,t.length);return~s?t+pbe(r,e,i,s)+e:t+r+e},pbe=(t,e,i,n)=>{let r="",s=0;do r+=t.substring(s,n)+i,s=n+e.length,n=t.indexOf(e,s);while(~n);return r+t.substring(s)},sH=(t=ube)=>{let e=t?lbe:()=>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")}};dS.exports=sH();dS.exports.createColors=sH});function gbe({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 fH(t){if(typeof t!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof t}\``);return t.replace(dbe,"")}function hH(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function ah(t,e={}){if(typeof t!="string"||t.length===0||(e={ambiguousIsNarrow:!0,...e},t=fH(t),t.length===0))return 0;t=t.replace(Cbe()," ");let i=e.ambiguousIsNarrow?1:2,n=0;for(let r of t){let s=r.codePointAt(0);if(!(s<=31||s>=127&&s<=159||s>=768&&s<=879))switch(fbe.eastAsianWidth(r)){case"F":case"W":n+=2;break;case"A":n+=i;break;default:n+=1}}return n}function Bbe(){let t=new Map;for(let[e,i]of Object.entries(Gi)){for(let[n,r]of Object.entries(i))Gi[n]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},i[n]=Gi[n],t.set(r[0],r[1]);Object.defineProperty(Gi,e,{value:i,enumerable:!1})}return Object.defineProperty(Gi,"codes",{value:t,enumerable:!1}),Gi.color.close="\x1B[39m",Gi.bgColor.close="\x1B[49m",Gi.color.ansi=oH(),Gi.color.ansi256=aH(),Gi.color.ansi16m=AH(),Gi.bgColor.ansi=oH(mS),Gi.bgColor.ansi256=aH(mS),Gi.bgColor.ansi16m=AH(mS),Object.defineProperties(Gi,{rgbToAnsi256:{value:(e,i,n)=>e===i&&i===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(i/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:e=>{let i=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!i)return[0,0,0];let[n]=i;n.length===3&&(n=[...n].map(s=>s+s).join(""));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:e=>Gi.rgbToAnsi256(...Gi.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value:e=>{if(e<8)return 30+e;if(e<16)return 90+(e-8);let i,n,r;if(e>=232)i=((e-232)*10+8)/255,n=i,r=i;else{e-=16;let a=e%36;i=Math.floor(e/36)/5,n=Math.floor(a/6)/5,r=a%6/5}let s=Math.max(i,n,r)*2;if(s===0)return 30;let o=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(i));return s===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,i,n)=>Gi.ansi256ToAnsi(Gi.rgbToAnsi256(e,i,n)),enumerable:!1},hexToAnsi:{value:e=>Gi.ansi256ToAnsi(Gi.hexToAnsi256(e)),enumerable:!1}}),Gi}function lH(t,e,i){return String(t).normalize().replace(/\r\n/g,`
|
|
2
2
|
`).split(`
|
|
3
3
|
`).map(n=>bbe(n,e,i)).join(`
|
|
4
4
|
`)}function BS(t,e){if(typeof t=="string")return KB.aliases.get(t)===e;for(let i of t)if(i!==void 0&&BS(i,e))return!0;return!1}function Sbe(t,e){if(t===e)return;let i=t.split(`
|
|
@@ -73,7 +73,7 @@ ${xH}${n.trimStart()}`),i=3+(0,Fl.stripVTControlCharacters)(n.trimStart()).lengt
|
|
|
73
73
|
`),g(),r()};return{start:I,stop:B,message:(E="")=>{a=h(E??a)}}}});function Jt(t,e=""){return t.ts.createSourceFile("module.tsx",typeof e=="string"?e:"",t.ts.ScriptTarget.Latest,void 0)}function zB(t,e=""){let i=Jt(t,e?.trim());if(i.statements.length===0)throw new Error(`No statements found in code: ${e}`);return i.statements[0]}function Hn(t,e,i){if(e){let n=t.ts.createPrinter({newLine:t.ts.NewLineKind.LineFeed,removeComments:i});return t.ts.isSourceFile(e)?n.printFile(e).trim()+`
|
|
74
74
|
`:n.printNode(t.ts.EmitHint.Unspecified,e,t.ts.createSourceFile("module.tsx","",t.ts.ScriptTarget.Latest)).trim()+`
|
|
75
75
|
`}return""}var en=T(()=>{"use strict";f()});var NH=S((kdt,RH)=>{"use strict";f();RH.exports=function(){if(process.env.npm_config_user_agent)return Ybe(process.env.npm_config_user_agent)};function Ybe(t){let e=t.split(" ")[0],i=e.lastIndexOf("/"),n=e.substring(0,i);return{name:n==="npminstall"?"cnpm":n,version:e.substring(i+1)}}});function Vr(t){return t.endsWith(".mapper.tsx")||t.endsWith(".mapper.jsx")||t.endsWith(".mapper.ts")||t.endsWith(".mapper.js")||t.endsWith(".mapper.mjs")}function jt(t,e,i){e=na(e),i=na(i),e=t.dirname(e);let n=t.basename(i,t.extname(i));i=t.dirname(i);let r;return n==="index"?r=t.relative(e,i):r=t.relative(e,t.join(i,n)),r=na(t.normalize(r)),r.startsWith(".")||(r="./"+r),r}function na(t){return t.startsWith("\\\\?\\")?t:t.replace(/\\/g,"/")}function Rl(t,e){let i=t.extname(e),n=t.basename(e,i).split(/[\/\\]/),r=n[n.length-1];return TH(r==="index"?t.basename(t.dirname(e)):r)}function TH(t){return Bi(t).replace(/ /g,"")}function uo(t,e){let i=t.extname(e),n=na(t.basename(e,i)).split("/").pop();return Bi(n==="index"?t.basename(t.dirname(e)):n)}function yi(t,e){let i=na(t.relative(t.getAppRootDir(),e));i=i.split("/").filter(r=>r!=="."&&r!==".."&&r!=="").join("/"),i.endsWith(".tsx")||i.endsWith(".jsx")?i=i.slice(0,-4):(i.endsWith(".ts")||i.endsWith(".js"))&&(i=i.slice(0,-3));let n=t.getFrameworks();return i.startsWith("src/")&&(i=i.slice(4)),n.some(r=>r.name.includes("next"))?"@/"+i:"~/"+i}function ni(t,e){let i=e,n=[];for(let r=0;r<2;r++){let s=t.basename(i);if(!s||s==="components")break;n.unshift(s),i=t.dirname(i)}return n.join("/")}function Bi(t){for(t=t.replace(/([A-Z])/g," $1").replace(/\./g," ").replace(/_/g," ").replace(/-/g," ").replace(/\s/g," ").trim();t.includes(" ");)t=t.replace(/ /g," ");return t.split(" ").map(e=>e.length>2?e[0].toUpperCase()+e.slice(1):e).join("").trim()}function Cs(t){return t.sort((e,i)=>e.name.toLocaleLowerCase().localeCompare(i.name.toLocaleLowerCase()))}async function hi(t,e,i,n){if(typeof i!="string"||i==="")throw new Error(`getComponentId(), exportName must be a non-empty string, received: ${i}, ${e}`);return n&&(e=n),e=t.normalize(e),(await t.hash(e+"#"+i)).substring(0,8)}async function PH(t){return(await t.hash(t.getAppRootDir())).substring(0,8)}function ch(t){return typeof t=="number"}function kg(t){return typeof t=="boolean"}function Wr(t){return typeof t=="string"}function Rg(t){return typeof t=="string"?/^[A-Z][A-Za-z0-9]*$/.test(t):!1}function Hs(t){return JSON.parse(JSON.stringify(t))}function VB(t,e,i){for(let n of e)if(t.dirname(i).includes(n))return!0;return!1}function _H(){try{let t=(0,MH.default)();if(t?.name)return t.name}catch{}return"npm"}function $be(){return process.platform.startsWith("win")}function pi(){return process.pkg?"@builder.io/agent":$be()?'"@builder.io/dev-tools"':"builder.io"}function bS(t){return t.replace(/[^a-zA-Z0-9-_]/g,"_")}var MH,Pt=T(()=>{"use strict";f();MH=X(NH(),1)});function Zr(t){let e=t.join(t.getAppRootDir(),"tsconfig.json");return t.exists(e)}async function Is(t,e){async function i(r,s){if(s>10)return;let o=await t.readdir(r);for(let a of o){if(qbe.includes(a))continue;let A=t.join(r,a),c=await t.stat(A);if(c){if(c.isFile()&&a.startsWith("builder-registry."))return A;if(c.isDirectory()){let u=await i(A,s+1);if(u)return u}}}}let n=await i(t.getAppRootDir(),0);if(!n){let s=`builder-registry.${await Zr(t)?"ts":"js"}`;return t.join(e,s)}return n}async function ra(t,e){let i=t.resolve("/");for(let n=0;n<20;n++){let r=t.join(e,"package.json"),s=await t.readFile(r);if(s)return JSON.parse(s);if(e===i)break;e=t.dirname(e)}return null}async function LH(t,e){for(let i=0;i<20;i++){let n=t.dirname(e),r=t.join(n,"node_modules");if(await t.exists(r))return r;if(e===t.getAppRootDir())break;e=t.dirname(e)}return t.join(t.getAppRootDir(),"node_modules")}async function uh(t,e,i){let n=await t.readdir(e);return n.includes(i)?t.join(e,i):(await Promise.all(n.map(async s=>{if(s.startsWith(".")||s==="node_modules")return;let o=t.join(e,s);if((await t.stat(o)).isDirectory()){let A=await uh(t,o,i);if(A)return A}}))).find(s=>typeof s=="string")}var qbe,Rr=T(()=>{"use strict";f();qbe=["node_modules","dist","build","public"]});async function kn(t,e,i){if(!Array.isArray(e)||e.length===0)throw new Error(`createTsProgram() Invalid filePaths: ${e}`);let n=await LH(t,e[0]),r=t.join(n,"typescript","lib"),s=new Map,o={fileExists:a=>{if(a=t.normalize(a),a.includes("node_modules")){let A=lh.get(a);if(!A){try{t.statSync(a).isFile()?A={exists:!0,content:t.readFileSync(a)}:A={exists:!1}}catch{A={exists:!1}}lh.set(a,A)}return A.exists}if(!s.has(a))if(t.existsSync(a)){let c=t.statSync(a);s.set(a,c.isFile())}else s.set(a,!1);return s.get(a)},getCanonicalFileName:a=>t.normalize(a),getCurrentDirectory:()=>t.cwd(),getDefaultLibFileName:()=>t.join(r,"lib.d.ts"),getDefaultLibLocation:()=>r,getNewLine:()=>`
|
|
76
|
-
`,getSourceFile:a=>{if(a=t.normalize(a),a.includes("node_modules")){let c=lh.get(a);if(c)return Jt(t,c.content)}let A;try{A=t.readFileSync(a)}catch{console.error(`Could not read: ${a}`),A==null}if(A==null){let c=t.basename(a),u=t.extname(c).toLowerCase();if(a.startsWith(r)&&u===".ts"&&(A=GH.get(c),A==null&&typeof self<"u"&&typeof fetch=="function"))throw new ZB(c)}return a.includes("node_modules")&&(A?lh.set(a,{exists:!0,content:A}):lh.set(a,{exists:!1})),Jt(t,A)},readFile:a=>{let A=t.readFileSync(a);return typeof A=="string"?A:void 0},useCaseSensitiveFileNames:()=>!1,writeFile:()=>{}};for(;;)try{return zbe(t,o,e,i)}catch(a){if(a instanceof ZB){await Vbe(t,a.libName);continue}throw t.Sentry?.captureException(a),new Error(`createTsProgram() Could not create program for: ${e[0]}`,{cause:a})}}function zbe(t,e,i,n){let r={rootNames:[...i],host:e,options:{}},s=t.ts.findConfigFile(t.dirname(i[0]),o=>t.existsSync(o));if(s){let o=UH.get(s);if(!o){let a=t.ts.readConfigFile(s,A=>{let c=t.readFileSync(A);return typeof c=="string"?c:void 0});a.error?t.Sentry?.captureException(new Error("Error reading tsconfig for createTsProgram"),{extra:{error:a.error,tsConfigPath:s}}):(o=t.ts.parseJsonConfigFileContent(a.config,t.ts.sys||{useCaseSensitiveFileNames:!1,readDirectory:(c,u)=>t.readdirSync(c),fileExists:c=>t.existsSync(c),readFile:c=>t.readFileSync(c)||void 0},t.dirname(s),void 0,s).options,UH.set(s,o))}o&&(r.options=Hs(o))}return r.options.noEmit=!0,r.options.isolatedModules=!1,r.options.strict=!1,r.options.jsx=t.ts.JsxEmit.Preserve,r.options.allowJs=!0,Object.assign(r.options,n),t.ts.createProgram(r)}async function Ng(t,e,i){i||(i=await kn(t,[e]));let n=i.getSourceFile(e);if(!n)throw new Error(`getTypeChecker() Could not find source file: ${e}`);return{typeChecker:i.getTypeChecker(),sourceFile:n}}async function Vbe(t,e){let i=`https://cdn.jsdelivr.net/npm/typescript@${t.ts.version}/lib/${e}`;WB.has(e)||WB.set(e,fetch(i).then(n=>n.text()).then(n=>{GH.set(e,n)})),await WB.get(e),WB.delete(e)}async function OH(t,e){let i=await t.readFile(e.filePath);return i==null?{diagnostics:[{messageText:`Error reading: ${e.filePath}`}],code:null,output:null}:wS(t,{code:i,filePath:e.filePath,compilerOptions:e.compilerOptions})}function wS(t,e){let i={diagnostics:[],code:e.code,output:null};try{let n=t.ts.transpileModule(e.code,{compilerOptions:e.compilerOptions,fileName:e.filePath??"module.tsx",reportDiagnostics:!0});n.diagnostics?.forEach(r=>{i.diagnostics.push({messageText:String(r.messageText)})}),i.output=n.outputText}catch(n){console.error("transpileModule",n),i.diagnostics.push({messageText:String(n)})}return i}var ZB,GH,WB,lh,UH,lo=T(()=>{"use strict";f();en();Pt();Rr();ZB=class{libName;constructor(e){this.libName=e}};GH=new Map,WB=new Map,lh=new Map,UH=new Map});var Wbe,mt,dn=T(()=>{"use strict";f();Wbe="1.35.
|
|
76
|
+
`,getSourceFile:a=>{if(a=t.normalize(a),a.includes("node_modules")){let c=lh.get(a);if(c)return Jt(t,c.content)}let A;try{A=t.readFileSync(a)}catch{console.error(`Could not read: ${a}`),A==null}if(A==null){let c=t.basename(a),u=t.extname(c).toLowerCase();if(a.startsWith(r)&&u===".ts"&&(A=GH.get(c),A==null&&typeof self<"u"&&typeof fetch=="function"))throw new ZB(c)}return a.includes("node_modules")&&(A?lh.set(a,{exists:!0,content:A}):lh.set(a,{exists:!1})),Jt(t,A)},readFile:a=>{let A=t.readFileSync(a);return typeof A=="string"?A:void 0},useCaseSensitiveFileNames:()=>!1,writeFile:()=>{}};for(;;)try{return zbe(t,o,e,i)}catch(a){if(a instanceof ZB){await Vbe(t,a.libName);continue}throw t.Sentry?.captureException(a),new Error(`createTsProgram() Could not create program for: ${e[0]}`,{cause:a})}}function zbe(t,e,i,n){let r={rootNames:[...i],host:e,options:{}},s=t.ts.findConfigFile(t.dirname(i[0]),o=>t.existsSync(o));if(s){let o=UH.get(s);if(!o){let a=t.ts.readConfigFile(s,A=>{let c=t.readFileSync(A);return typeof c=="string"?c:void 0});a.error?t.Sentry?.captureException(new Error("Error reading tsconfig for createTsProgram"),{extra:{error:a.error,tsConfigPath:s}}):(o=t.ts.parseJsonConfigFileContent(a.config,t.ts.sys||{useCaseSensitiveFileNames:!1,readDirectory:(c,u)=>t.readdirSync(c),fileExists:c=>t.existsSync(c),readFile:c=>t.readFileSync(c)||void 0},t.dirname(s),void 0,s).options,UH.set(s,o))}o&&(r.options=Hs(o))}return r.options.noEmit=!0,r.options.isolatedModules=!1,r.options.strict=!1,r.options.jsx=t.ts.JsxEmit.Preserve,r.options.allowJs=!0,Object.assign(r.options,n),t.ts.createProgram(r)}async function Ng(t,e,i){i||(i=await kn(t,[e]));let n=i.getSourceFile(e);if(!n)throw new Error(`getTypeChecker() Could not find source file: ${e}`);return{typeChecker:i.getTypeChecker(),sourceFile:n}}async function Vbe(t,e){let i=`https://cdn.jsdelivr.net/npm/typescript@${t.ts.version}/lib/${e}`;WB.has(e)||WB.set(e,fetch(i).then(n=>n.text()).then(n=>{GH.set(e,n)})),await WB.get(e),WB.delete(e)}async function OH(t,e){let i=await t.readFile(e.filePath);return i==null?{diagnostics:[{messageText:`Error reading: ${e.filePath}`}],code:null,output:null}:wS(t,{code:i,filePath:e.filePath,compilerOptions:e.compilerOptions})}function wS(t,e){let i={diagnostics:[],code:e.code,output:null};try{let n=t.ts.transpileModule(e.code,{compilerOptions:e.compilerOptions,fileName:e.filePath??"module.tsx",reportDiagnostics:!0});n.diagnostics?.forEach(r=>{i.diagnostics.push({messageText:String(r.messageText)})}),i.output=n.outputText}catch(n){console.error("transpileModule",n),i.diagnostics.push({messageText:String(n)})}return i}var ZB,GH,WB,lh,UH,lo=T(()=>{"use strict";f();en();Pt();Rr();ZB=class{libName;constructor(e){this.libName=e}};GH=new Map,WB=new Map,lh=new Map,UH=new Map});var Wbe,mt,dn=T(()=>{"use strict";f();Wbe="1.35.1",mt=process.env.OVERRIDE_VERSION??Wbe});async function Nl(t){let e=[],i=await ra(t,t.getRepoRootDir());if(i){let n=await HH(i,t);e.push(...n)}return e}async function HH(t,e){let i=[];if(t&&typeof t=="object"){let n=new Set(Object.keys({...t.dependencies,...t.devDependencies}));for(let r of Zbe)if(n.has(r)&&!i.some(s=>s.name===r)){let s={name:r};KH.has(r)&&(s.version=await KH.get(r)(e)),i.push(s)}}return i}function SS(t){let e=parseInt(t);return Number.isNaN(e)?void 0:e}var KH,Zbe,Tl=T(()=>{"use strict";f();Rr();Pt();KH=new Map([["next",async t=>{if(!t.spawnSync)return;let e=_H(),i=e==="npm"?"npx":e,{stdout:n}=t.spawnSync(i,["next","-v"],{encoding:"utf8"});if(!n)return;let r=n.match(/(Next.js v)([\d.]+)/g);if(!r)return;let s=r[0].split("Next.js v")[1],[o,a,A]=s.split(".");return{major:SS(o),minor:SS(a),patch:SS(A)}}]]),Zbe=["@shopify/remix-oxygen","@shopify/hydrogen","@builder.io/qwik-city","@remix-run/react","@sveltejs/kit","astro","gatsby","next","nuxt","@builder.io/qwik","@angular/core","react","solid-js","svelte","vue"]});async function po(t){let e=JH(t),i=await t.readFile(e);return typeof i=="string"?JSON.parse(i):{}}async function go(t,e){e=typeof e=="object"&&e!=null?e:{};let i=JH(t);await t.writeFile(i,JSON.stringify(e??{},null,2))}function JH(t){let e=t.getAppRootDir();return t.join(e,"node_modules",".builder","builder-cache.json")}var Ml=T(()=>{"use strict";f()});async function Ya(t,e,i){let n={envKey:i,envValue:null,file:""};for(let r of e){let s=t.join(t.getAppRootDir(),r),o=await Xbe(t,s);if(o){let a=o[i];if(typeof a=="string"&&a.length>0&&a!=="YOUR_API_KEY")return n.envValue=a,n.file=s,n}}return n.file=t.join(t.getAppRootDir(),e[e.length-1]),n}async function Xbe(t,e){let i=await t.readFile(e);return typeof i=="string"?jH(i):null}function jH(t){let e={},i=t.replace(/\r\n?/gm,`
|
|
77
77
|
`),n;for(;(n=ewe.exec(i))!=null;){let r=n[1],s=n[2]||"";s=s.trim();let o=s[0];s=s.replace(/^(['"`])([\s\S]*)\1$/gm,"$2"),o==='"'&&(s=s.replace(/\\n/g,`
|
|
78
78
|
`),s=s.replace(/\\r/g,"\r")),e[r]=s}return e}async function $a(t,e,i,n){let r="# https://www.builder.io/c/docs/using-your-api-key",s=await t.readFile(e);try{if(s)if(s.includes(i))if(s.includes(n))t.debug(`"${i}" with "${n}" already set in ${e}`);else return t.debug(`Replace "${i}" in ${e}`),s=s.replace(new RegExp(`${i}=.*`),`${i}=${n}`),await t.writeFile(e,s),"update";else return t.debug(`Append "${i}" to ${e}`),s+=`
|
|
79
79
|
|
|
@@ -1107,7 +1107,7 @@ https://github.com/highlightjs/highlight.js/issues/2277`),L=j,H=V),z===void 0&&(
|
|
|
1107
1107
|
`)+i,r=n+1,n=t.indexOf(`
|
|
1108
1108
|
`,r)}while(n!==-1);return s+=t.slice(r),s}var n5=T(()=>{f()});function _h(t){return a5(t)}var r5,s5,zF,Xg,Ph,o5,ed,jRe,Ny,a5,VF,YRe,$Re,WF,Ty,qRe,rxt,sxt,A5=T(()=>{f();VY();e5();n5();({stdout:r5,stderr:s5}=XY),zF=Symbol("GENERATOR"),Xg=Symbol("STYLER"),Ph=Symbol("IS_EMPTY"),o5=["ansi","ansi","ansi256","ansi16m"],ed=Object.create(null),jRe=(t,e={})=>{if(e.level&&!(Number.isInteger(e.level)&&e.level>=0&&e.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let i=r5?r5.level:0;t.level=e.level===void 0?i:e.level},Ny=class{constructor(e){return a5(e)}},a5=t=>{let e=(...i)=>i.join(" ");return jRe(e,t),Object.setPrototypeOf(e,_h.prototype),e};Object.setPrototypeOf(_h.prototype,Function.prototype);for(let[t,e]of Object.entries(ca))ed[t]={get(){let i=Ty(this,WF(e.open,e.close,this[Xg]),this[Ph]);return Object.defineProperty(this,t,{value:i}),i}};ed.visible={get(){let t=Ty(this,this[Xg],!0);return Object.defineProperty(this,"visible",{value:t}),t}};VF=(t,e,i,...n)=>t==="rgb"?e==="ansi16m"?ca[i].ansi16m(...n):e==="ansi256"?ca[i].ansi256(ca.rgbToAnsi256(...n)):ca[i].ansi(ca.rgbToAnsi(...n)):t==="hex"?VF("rgb",e,i,...ca.hexToRgb(...n)):ca[i][t](...n),YRe=["rgb","hex","ansi256"];for(let t of YRe){ed[t]={get(){let{level:i}=this;return function(...n){let r=WF(VF(t,o5[i],"color",...n),ca.color.close,this[Xg]);return Ty(this,r,this[Ph])}}};let e="bg"+t[0].toUpperCase()+t.slice(1);ed[e]={get(){let{level:i}=this;return function(...n){let r=WF(VF(t,o5[i],"bgColor",...n),ca.bgColor.close,this[Xg]);return Ty(this,r,this[Ph])}}}}$Re=Object.defineProperties(()=>{},{...ed,level:{enumerable:!0,get(){return this[zF].level},set(t){this[zF].level=t}}}),WF=(t,e,i)=>{let n,r;return i===void 0?(n=t,r=e):(n=i.openAll+t,r=e+i.closeAll),{open:t,close:e,openAll:n,closeAll:r,parent:i}},Ty=(t,e,i)=>{let n=(...r)=>qRe(n,r.length===1?""+r[0]:r.join(" "));return Object.setPrototypeOf(n,$Re),n[zF]=t,n[Xg]=e,n[Ph]=i,n},qRe=(t,e)=>{if(t.level<=0||!e)return t[Ph]?"":e;let i=t[Xg];if(i===void 0)return e;let{openAll:n,closeAll:r}=i;if(e.includes("\x1B"))for(;i!==void 0;)e=t5(e,i.close,i.open),i=i.parent;let s=e.indexOf(`
|
|
1109
1109
|
`);return s!==-1&&(e=i5(e,r,n,s)),n+e+r};Object.defineProperties(_h.prototype,ed);rxt=_h(),sxt=_h({level:s5?s5.level:0})});function Lh(t){let e=YF(t);return{highlight:i,highlightAuto:n,listLanguages:e.listLanguages,register:e.register,registerAlias:e.registerAlias,registered:e.registered};function i(r,s,o){let a=e.highlight(r,s),A=a.data;return{language:A.language,relevance:A.relevance,value:ZF(o||c5,a)}}function n(r,s){let o,a;if(s&&("subset"in s||"sheet"in s)){let u=s;a={subset:u.subset},o=u.sheet}else o=s;let A=e.highlightAuto(r,a),c=A.data;return{language:c.language,relevance:c.relevance,value:ZF(o||c5,A)}}}function ZF(t,e){let i=new Set(e.type==="element"&&Array.isArray(e.properties.className)?e.properties.className.map(function(a){return String(a).replace(/^hljs-/,"")}):[]),n={},r,s="",o;for(o in t)if(Object.hasOwn(t,o)){let a=o.split(" "),A=t[o];i.has(a[0])?a.length===1?r=A:n[a.slice(1).join(" ")]=A:n[o]=A}return"value"in e?s=e.value:"children"in e&&(s=zRe(n,e.children)),r&&(s=r(s)),s}function zRe(t,e){let i=[],n=-1;for(;++n<e.length;)i.push(ZF(t,e[n]));return i.join("")}var Gt,c5,u5=T(()=>{f();A5();$F();Gt=new Ny({level:2}),c5={comment:Gt.gray,quote:Gt.gray,keyword:Gt.green,"selector-tag":Gt.green,addition:Gt.green,number:Gt.cyan,string:Gt.cyan,"meta meta-string":Gt.cyan,literal:Gt.cyan,doctag:Gt.cyan,regexp:Gt.cyan,title:Gt.blue,section:Gt.blue,name:Gt.blue,"selector-id":Gt.blue,"selector-class":Gt.blue,attribute:Gt.yellow,attr:Gt.yellow,variable:Gt.yellow,"template-variable":Gt.yellow,"class title":Gt.yellow,type:Gt.yellow,symbol:Gt.magenta,bullet:Gt.magenta,subst:Gt.magenta,meta:Gt.magenta,"meta keyword":Gt.magenta,"selector-attr":Gt.magenta,"selector-pseudo":Gt.magenta,link:Gt.magenta,built_in:Gt.red,deletion:Gt.red,emphasis:Gt.italic,strong:Gt.bold,formula:Gt.inverse}});var XF=T(()=>{f();$F();u5()});function lu(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 VRe(t){return t.map(e=>{if(e instanceof Error)return e.stack??e.message;if(typeof e=="object"&&e!==null)try{return JSON.stringify(e)}catch{return String(e)}return String(e)}).join(" ")}function WRe(){let t=process.env.FUSION_ENVIRONMENT;return t==="cloud"||t==="cloud-v2"}function My(t,e,i,n){let r={severity:e,message:VRe(n),timestamp:new Date().toISOString()};i&&(r.context=i),t.write(JSON.stringify(r)+`
|
|
1110
|
-
`)}function ZRe(t,e,i){return{debug(...n){if(!e())return;let{callArgs:r,options:s}=lu(n);My(s.stderr?uu.stderr:uu.stdout,"DEBUG",i,r)},info(...n){if(pu.info<t)return;let{callArgs:r,options:s}=lu(n);s.debug&&!e()||My(s.stderr?uu.stderr:uu.stdout,"INFO",i,r)},warn(...n){if(pu.warn<t)return;let{callArgs:r,options:s}=lu(n);s.debug&&!e()||My(uu.stderr,"WARNING",i,r)},error(...n){if(pu.error<t)return;let{callArgs:r,options:s}=lu(n);s.debug&&!e()||My(uu.stderr,"ERROR",i,r)}}}function l5(){return new Date().toISOString()}function td(t){return t?`[${l5()}] [${t}]`:`[${l5()}]`}function XRe(t,e,i){return{debug(...n){if(!e())return;let{callArgs:r,options:s}=lu(n);s.stderr?console.error(td(i),...r):console.debug(td(i),...r)},info(...n){if(pu.info<t)return;let{callArgs:r,options:s}=lu(n);s.debug&&!e()||(s.stderr?console.error(td(i),...r):console.log(td(i),...r))},warn(...n){if(pu.warn<t)return;let{callArgs:r,options:s}=lu(n);s.debug&&!e()||console.warn(td(i),...r)},error(...n){if(pu.error<t)return;let{callArgs:r,options:s}=lu(n);s.debug&&!e()||console.error(td(i),...r)}}}function ke(t,e){let i=typeof e?.debug=="function"?e.debug:e?.debug!==void 0?()=>e.debug:()=>!!process.env.DEBUG,n=e?.level??process.env.LOG_LEVEL?.toLowerCase()??"info",r=pu[n]??pu.info;return WRe()?ZRe(r,i,t):XRe(r,i,t)}var uu,pu,zt=T(()=>{"use strict";f();uu=require("process"),pu={debug:0,info:1,warn:2,error:3}});async function ve(t){if(process.env.NODE_ENV!=="test")try{let e=process.env.BUILDER_DISABLE_AMPLITUDE==="true",i=[p5.flush(2e3)];e||i.push(g5.flush().promise),await Promise.allSettled(i)}catch(e){e1e.error(e)}process.exit(t)}var p5,g5,e1e,Co=T(()=>{"use strict";f();p5=X(require("@sentry/node"),1),g5=X(require("@amplitude/analytics-node"),1);zt();e1e=ke("Exit")});var Ue,tn=T(()=>{"use strict";f();Ue=process.env.AIR_HOST||process.env.BUILDER_HOST||"https://api.builder.io"});var m5,d5=T(()=>{m5="1.35.0"});var h5=S(ek=>{f();var f5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");ek.encode=function(t){if(0<=t&&t<f5.length)return f5[t];throw new TypeError("Must be between 0 and 63: "+t)};ek.decode=function(t){var e=65,i=90,n=97,r=122,s=48,o=57,a=43,A=47,c=26,u=52;return e<=t&&t<=i?t-e:n<=t&&t<=r?t-n+c:s<=t&&t<=o?t-s+u:t==a?62:t==A?63:-1}});var nk=S(ik=>{f();var C5=h5(),tk=5,I5=1<<tk,E5=I5-1,B5=I5;function i1e(t){return t<0?(-t<<1)+1:(t<<1)+0}function n1e(t){var e=(t&1)===1,i=t>>1;return e?-i:i}ik.encode=function(e){var i="",n,r=i1e(e);do n=r&E5,r>>>=tk,r>0&&(n|=B5),i+=C5.encode(n);while(r>0);return i};ik.decode=function(e,i,n){var r=e.length,s=0,o=0,a,A;do{if(i>=r)throw new Error("Expected more digits in base 64 VLQ value.");if(A=C5.decode(e.charCodeAt(i++)),A===-1)throw new Error("Invalid base64 digit: "+e.charAt(i-1));a=!!(A&B5),A&=E5,s=s+(A<<o),o+=tk}while(a);n.value=n1e(s),n.rest=i}});var nd=S($n=>{f();function r1e(t,e,i){if(e in t)return t[e];if(arguments.length===3)return i;throw new Error('"'+e+'" is a required argument.')}$n.getArg=r1e;var y5=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,s1e=/^data:.+\,.+$/;function Uh(t){var e=t.match(y5);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}$n.urlParse=Uh;function id(t){var e="";return t.scheme&&(e+=t.scheme+":"),e+="//",t.auth&&(e+=t.auth+"@"),t.host&&(e+=t.host),t.port&&(e+=":"+t.port),t.path&&(e+=t.path),e}$n.urlGenerate=id;var o1e=32;function a1e(t){var e=[];return function(i){for(var n=0;n<e.length;n++)if(e[n].input===i){var r=e[0];return e[0]=e[n],e[n]=r,e[0].result}var s=t(i);return e.unshift({input:i,result:s}),e.length>o1e&&e.pop(),s}}var rk=a1e(function(e){var i=e,n=Uh(e);if(n){if(!n.path)return e;i=n.path}for(var r=$n.isAbsolute(i),s=[],o=0,a=0;;)if(o=a,a=i.indexOf("/",o),a===-1){s.push(i.slice(o));break}else for(s.push(i.slice(o,a));a<i.length&&i[a]==="/";)a++;for(var A,c=0,a=s.length-1;a>=0;a--)A=s[a],A==="."?s.splice(a,1):A===".."?c++:c>0&&(A===""?(s.splice(a+1,c),c=0):(s.splice(a,2),c--));return i=s.join("/"),i===""&&(i=r?"/":"."),n?(n.path=i,id(n)):i});$n.normalize=rk;function Q5(t,e){t===""&&(t="."),e===""&&(e=".");var i=Uh(e),n=Uh(t);if(n&&(t=n.path||"/"),i&&!i.scheme)return n&&(i.scheme=n.scheme),id(i);if(i||e.match(s1e))return e;if(n&&!n.host&&!n.path)return n.host=e,id(n);var r=e.charAt(0)==="/"?e:rk(t.replace(/\/+$/,"")+"/"+e);return n?(n.path=r,id(n)):r}$n.join=Q5;$n.isAbsolute=function(t){return t.charAt(0)==="/"||y5.test(t)};function A1e(t,e){t===""&&(t="."),t=t.replace(/\/$/,"");for(var i=0;e.indexOf(t+"/")!==0;){var n=t.lastIndexOf("/");if(n<0||(t=t.slice(0,n),t.match(/^([^\/]+:\/)?\/*$/)))return e;++i}return Array(i+1).join("../")+e.substr(t.length+1)}$n.relative=A1e;var D5=(function(){var t=Object.create(null);return!("__proto__"in t)})();function x5(t){return t}function c1e(t){return v5(t)?"$"+t:t}$n.toSetString=D5?x5:c1e;function u1e(t){return v5(t)?t.slice(1):t}$n.fromSetString=D5?x5:u1e;function v5(t){if(!t)return!1;var e=t.length;if(e<9||t.charCodeAt(e-1)!==95||t.charCodeAt(e-2)!==95||t.charCodeAt(e-3)!==111||t.charCodeAt(e-4)!==116||t.charCodeAt(e-5)!==111||t.charCodeAt(e-6)!==114||t.charCodeAt(e-7)!==112||t.charCodeAt(e-8)!==95||t.charCodeAt(e-9)!==95)return!1;for(var i=e-10;i>=0;i--)if(t.charCodeAt(i)!==36)return!1;return!0}function l1e(t,e,i){var n=XA(t.source,e.source);return n!==0||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0||i)||(n=t.generatedColumn-e.generatedColumn,n!==0)||(n=t.generatedLine-e.generatedLine,n!==0)?n:XA(t.name,e.name)}$n.compareByOriginalPositions=l1e;function p1e(t,e,i){var n;return n=t.originalLine-e.originalLine,n!==0||(n=t.originalColumn-e.originalColumn,n!==0||i)||(n=t.generatedColumn-e.generatedColumn,n!==0)||(n=t.generatedLine-e.generatedLine,n!==0)?n:XA(t.name,e.name)}$n.compareByOriginalPositionsNoSource=p1e;function g1e(t,e,i){var n=t.generatedLine-e.generatedLine;return n!==0||(n=t.generatedColumn-e.generatedColumn,n!==0||i)||(n=XA(t.source,e.source),n!==0)||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0)?n:XA(t.name,e.name)}$n.compareByGeneratedPositionsDeflated=g1e;function d1e(t,e,i){var n=t.generatedColumn-e.generatedColumn;return n!==0||i||(n=XA(t.source,e.source),n!==0)||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0)?n:XA(t.name,e.name)}$n.compareByGeneratedPositionsDeflatedNoLine=d1e;function XA(t,e){return t===e?0:t===null?1:e===null?-1:t>e?1:-1}function m1e(t,e){var i=t.generatedLine-e.generatedLine;return i!==0||(i=t.generatedColumn-e.generatedColumn,i!==0)||(i=XA(t.source,e.source),i!==0)||(i=t.originalLine-e.originalLine,i!==0)||(i=t.originalColumn-e.originalColumn,i!==0)?i:XA(t.name,e.name)}$n.compareByGeneratedPositionsInflated=m1e;function f1e(t){return JSON.parse(t.replace(/^\)]}'[^\n]*\n/,""))}$n.parseSourceMapInput=f1e;function h1e(t,e,i){if(e=e||"",t&&(t[t.length-1]!=="/"&&e[0]!=="/"&&(t+="/"),e=t+e),i){var n=Uh(i);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var r=n.path.lastIndexOf("/");r>=0&&(n.path=n.path.substring(0,r+1))}e=Q5(id(n),e)}return rk(e)}$n.computeSourceURL=h1e});var ak=S(b5=>{f();var sk=nd(),ok=Object.prototype.hasOwnProperty,$l=typeof Map<"u";function ec(){this._array=[],this._set=$l?new Map:Object.create(null)}ec.fromArray=function(e,i){for(var n=new ec,r=0,s=e.length;r<s;r++)n.add(e[r],i);return n};ec.prototype.size=function(){return $l?this._set.size:Object.getOwnPropertyNames(this._set).length};ec.prototype.add=function(e,i){var n=$l?e:sk.toSetString(e),r=$l?this.has(e):ok.call(this._set,n),s=this._array.length;(!r||i)&&this._array.push(e),r||($l?this._set.set(e,s):this._set[n]=s)};ec.prototype.has=function(e){if($l)return this._set.has(e);var i=sk.toSetString(e);return ok.call(this._set,i)};ec.prototype.indexOf=function(e){if($l){var i=this._set.get(e);if(i>=0)return i}else{var n=sk.toSetString(e);if(ok.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')};ec.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};ec.prototype.toArray=function(){return this._array.slice()};b5.ArraySet=ec});var F5=S(S5=>{f();var w5=nd();function C1e(t,e){var i=t.generatedLine,n=e.generatedLine,r=t.generatedColumn,s=e.generatedColumn;return n>i||n==i&&s>=r||w5.compareByGeneratedPositionsInflated(t,e)<=0}function Py(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Py.prototype.unsortedForEach=function(e,i){this._array.forEach(e,i)};Py.prototype.add=function(e){C1e(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};Py.prototype.toArray=function(){return this._sorted||(this._array.sort(w5.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};S5.MappingList=Py});var Ak=S(k5=>{f();var Gh=nk(),mn=nd(),_y=ak().ArraySet,I1e=F5().MappingList;function Io(t){t||(t={}),this._file=mn.getArg(t,"file",null),this._sourceRoot=mn.getArg(t,"sourceRoot",null),this._skipValidation=mn.getArg(t,"skipValidation",!1),this._ignoreInvalidMapping=mn.getArg(t,"ignoreInvalidMapping",!1),this._sources=new _y,this._names=new _y,this._mappings=new I1e,this._sourcesContents=null}Io.prototype._version=3;Io.fromSourceMap=function(e,i){var n=e.sourceRoot,r=new Io(Object.assign(i||{},{file:e.file,sourceRoot:n}));return e.eachMapping(function(s){var o={generated:{line:s.generatedLine,column:s.generatedColumn}};s.source!=null&&(o.source=s.source,n!=null&&(o.source=mn.relative(n,o.source)),o.original={line:s.originalLine,column:s.originalColumn},s.name!=null&&(o.name=s.name)),r.addMapping(o)}),e.sources.forEach(function(s){var o=s;n!==null&&(o=mn.relative(n,s)),r._sources.has(o)||r._sources.add(o);var a=e.sourceContentFor(s);a!=null&&r.setSourceContent(s,a)}),r};Io.prototype.addMapping=function(e){var i=mn.getArg(e,"generated"),n=mn.getArg(e,"original",null),r=mn.getArg(e,"source",null),s=mn.getArg(e,"name",null);!this._skipValidation&&this._validateMapping(i,n,r,s)===!1||(r!=null&&(r=String(r),this._sources.has(r)||this._sources.add(r)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:i.line,generatedColumn:i.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:r,name:s}))};Io.prototype.setSourceContent=function(e,i){var n=e;this._sourceRoot!=null&&(n=mn.relative(this._sourceRoot,n)),i!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[mn.toSetString(n)]=i):this._sourcesContents&&(delete this._sourcesContents[mn.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};Io.prototype.applySourceMap=function(e,i,n){var r=i;if(i==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);r=e.file}var s=this._sourceRoot;s!=null&&(r=mn.relative(s,r));var o=new _y,a=new _y;this._mappings.unsortedForEach(function(A){if(A.source===r&&A.originalLine!=null){var c=e.originalPositionFor({line:A.originalLine,column:A.originalColumn});c.source!=null&&(A.source=c.source,n!=null&&(A.source=mn.join(n,A.source)),s!=null&&(A.source=mn.relative(s,A.source)),A.originalLine=c.line,A.originalColumn=c.column,c.name!=null&&(A.name=c.name))}var u=A.source;u!=null&&!o.has(u)&&o.add(u);var l=A.name;l!=null&&!a.has(l)&&a.add(l)},this),this._sources=o,this._names=a,e.sources.forEach(function(A){var c=e.sourceContentFor(A);c!=null&&(n!=null&&(A=mn.join(n,A)),s!=null&&(A=mn.relative(s,A)),this.setSourceContent(A,c))},this)};Io.prototype._validateMapping=function(e,i,n,r){if(i&&typeof i.line!="number"&&typeof i.column!="number"){var s="original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(s),!1;throw new Error(s)}if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!i&&!n&&!r)){if(e&&"line"in e&&"column"in e&&i&&"line"in i&&"column"in i&&e.line>0&&e.column>=0&&i.line>0&&i.column>=0&&n)return;var s="Invalid mapping: "+JSON.stringify({generated:e,source:n,original:i,name:r});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(s),!1;throw new Error(s)}};Io.prototype._serializeMappings=function(){for(var e=0,i=1,n=0,r=0,s=0,o=0,a="",A,c,u,l,d=this._mappings.toArray(),p=0,g=d.length;p<g;p++){if(c=d[p],A="",c.generatedLine!==i)for(e=0;c.generatedLine!==i;)A+=";",i++;else if(p>0){if(!mn.compareByGeneratedPositionsInflated(c,d[p-1]))continue;A+=","}A+=Gh.encode(c.generatedColumn-e),e=c.generatedColumn,c.source!=null&&(l=this._sources.indexOf(c.source),A+=Gh.encode(l-o),o=l,A+=Gh.encode(c.originalLine-1-r),r=c.originalLine-1,A+=Gh.encode(c.originalColumn-n),n=c.originalColumn,c.name!=null&&(u=this._names.indexOf(c.name),A+=Gh.encode(u-s),s=u)),a+=A}return a};Io.prototype._generateSourcesContent=function(e,i){return e.map(function(n){if(!this._sourcesContents)return null;i!=null&&(n=mn.relative(i,n));var r=mn.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)};Io.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e};Io.prototype.toString=function(){return JSON.stringify(this.toJSON())};k5.SourceMapGenerator=Io});var R5=S(ql=>{f();ql.GREATEST_LOWER_BOUND=1;ql.LEAST_UPPER_BOUND=2;function ck(t,e,i,n,r,s){var o=Math.floor((e-t)/2)+t,a=r(i,n[o],!0);return a===0?o:a>0?e-o>1?ck(o,e,i,n,r,s):s==ql.LEAST_UPPER_BOUND?e<n.length?e:-1:o:o-t>1?ck(t,o,i,n,r,s):s==ql.LEAST_UPPER_BOUND?o:t<0?-1:t}ql.search=function(e,i,n,r){if(i.length===0)return-1;var s=ck(-1,i.length,e,i,n,r||ql.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(i[s],i[s-1],!0)===0;)--s;return s}});var M5=S(T5=>{f();function E1e(t){function e(r,s,o){var a=r[s];r[s]=r[o],r[o]=a}function i(r,s){return Math.round(r+Math.random()*(s-r))}function n(r,s,o,a){if(o<a){var A=i(o,a),c=o-1;e(r,A,a);for(var u=r[a],l=o;l<a;l++)s(r[l],u,!1)<=0&&(c+=1,e(r,c,l));e(r,c+1,l);var d=c+1;n(r,s,o,d-1),n(r,s,d+1,a)}}return n}function B1e(t){let e=E1e.toString();return new Function(`return ${e}`)()(t)}var N5=new WeakMap;T5.quickSort=function(t,e,i=0){let n=N5.get(e);n===void 0&&(n=B1e(e),N5.set(e,n)),n(t,e,i,t.length-1)}});var L5=S(Ly=>{f();var Pe=nd(),lk=R5(),rd=ak().ArraySet,y1e=nk(),Oh=M5().quickSort;function Fi(t,e){var i=t;return typeof t=="string"&&(i=Pe.parseSourceMapInput(t)),i.sections!=null?new ua(i,e):new Ar(i,e)}Fi.fromSourceMap=function(t,e){return Ar.fromSourceMap(t,e)};Fi.prototype._version=3;Fi.prototype.__generatedMappings=null;Object.defineProperty(Fi.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});Fi.prototype.__originalMappings=null;Object.defineProperty(Fi.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});Fi.prototype._charIsMappingSeparator=function(e,i){var n=e.charAt(i);return n===";"||n===","};Fi.prototype._parseMappings=function(e,i){throw new Error("Subclasses must implement _parseMappings")};Fi.GENERATED_ORDER=1;Fi.ORIGINAL_ORDER=2;Fi.GREATEST_LOWER_BOUND=1;Fi.LEAST_UPPER_BOUND=2;Fi.prototype.eachMapping=function(e,i,n){var r=i||null,s=n||Fi.GENERATED_ORDER,o;switch(s){case Fi.GENERATED_ORDER:o=this._generatedMappings;break;case Fi.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var a=this.sourceRoot,A=e.bind(r),c=this._names,u=this._sources,l=this._sourceMapURL,d=0,p=o.length;d<p;d++){var g=o[d],m=g.source===null?null:u.at(g.source);m!==null&&(m=Pe.computeSourceURL(a,m,l)),A({source:m,generatedLine:g.generatedLine,generatedColumn:g.generatedColumn,originalLine:g.originalLine,originalColumn:g.originalColumn,name:g.name===null?null:c.at(g.name)})}};Fi.prototype.allGeneratedPositionsFor=function(e){var i=Pe.getArg(e,"line"),n={source:Pe.getArg(e,"source"),originalLine:i,originalColumn:Pe.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var r=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",Pe.compareByOriginalPositions,lk.LEAST_UPPER_BOUND);if(s>=0){var o=this._originalMappings[s];if(e.column===void 0)for(var a=o.originalLine;o&&o.originalLine===a;)r.push({line:Pe.getArg(o,"generatedLine",null),column:Pe.getArg(o,"generatedColumn",null),lastColumn:Pe.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s];else for(var A=o.originalColumn;o&&o.originalLine===i&&o.originalColumn==A;)r.push({line:Pe.getArg(o,"generatedLine",null),column:Pe.getArg(o,"generatedColumn",null),lastColumn:Pe.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s]}return r};Ly.SourceMapConsumer=Fi;function Ar(t,e){var i=t;typeof t=="string"&&(i=Pe.parseSourceMapInput(t));var n=Pe.getArg(i,"version"),r=Pe.getArg(i,"sources"),s=Pe.getArg(i,"names",[]),o=Pe.getArg(i,"sourceRoot",null),a=Pe.getArg(i,"sourcesContent",null),A=Pe.getArg(i,"mappings"),c=Pe.getArg(i,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);o&&(o=Pe.normalize(o)),r=r.map(String).map(Pe.normalize).map(function(u){return o&&Pe.isAbsolute(o)&&Pe.isAbsolute(u)?Pe.relative(o,u):u}),this._names=rd.fromArray(s.map(String),!0),this._sources=rd.fromArray(r,!0),this._absoluteSources=this._sources.toArray().map(function(u){return Pe.computeSourceURL(o,u,e)}),this.sourceRoot=o,this.sourcesContent=a,this._mappings=A,this._sourceMapURL=e,this.file=c}Ar.prototype=Object.create(Fi.prototype);Ar.prototype.consumer=Fi;Ar.prototype._findSourceIndex=function(t){var e=t;if(this.sourceRoot!=null&&(e=Pe.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var i;for(i=0;i<this._absoluteSources.length;++i)if(this._absoluteSources[i]==t)return i;return-1};Ar.fromSourceMap=function(e,i){var n=Object.create(Ar.prototype),r=n._names=rd.fromArray(e._names.toArray(),!0),s=n._sources=rd.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=i,n._absoluteSources=n._sources.toArray().map(function(p){return Pe.computeSourceURL(n.sourceRoot,p,i)});for(var o=e._mappings.toArray().slice(),a=n.__generatedMappings=[],A=n.__originalMappings=[],c=0,u=o.length;c<u;c++){var l=o[c],d=new _5;d.generatedLine=l.generatedLine,d.generatedColumn=l.generatedColumn,l.source&&(d.source=s.indexOf(l.source),d.originalLine=l.originalLine,d.originalColumn=l.originalColumn,l.name&&(d.name=r.indexOf(l.name)),A.push(d)),a.push(d)}return Oh(n.__originalMappings,Pe.compareByOriginalPositions),n};Ar.prototype._version=3;Object.defineProperty(Ar.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function _5(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var uk=Pe.compareByGeneratedPositionsDeflatedNoLine;function P5(t,e){let i=t.length,n=t.length-e;if(!(n<=1))if(n==2){let r=t[e],s=t[e+1];uk(r,s)>0&&(t[e]=s,t[e+1]=r)}else if(n<20)for(let r=e;r<i;r++)for(let s=r;s>e;s--){let o=t[s-1],a=t[s];if(uk(o,a)<=0)break;t[s-1]=a,t[s]=o}else Oh(t,uk,e)}Ar.prototype._parseMappings=function(e,i){var n=1,r=0,s=0,o=0,a=0,A=0,c=e.length,u=0,l={},d={},p=[],g=[],m,h,C,I,B;let E=0;for(;u<c;)if(e.charAt(u)===";")n++,u++,r=0,P5(g,E),E=g.length;else if(e.charAt(u)===",")u++;else{for(m=new _5,m.generatedLine=n,I=u;I<c&&!this._charIsMappingSeparator(e,I);I++);for(h=e.slice(u,I),C=[];u<I;)y1e.decode(e,u,d),B=d.value,u=d.rest,C.push(B);if(C.length===2)throw new Error("Found a source, but no line and column");if(C.length===3)throw new Error("Found a source and line, but no column");if(m.generatedColumn=r+C[0],r=m.generatedColumn,C.length>1&&(m.source=a+C[1],a+=C[1],m.originalLine=s+C[2],s=m.originalLine,m.originalLine+=1,m.originalColumn=o+C[3],o=m.originalColumn,C.length>4&&(m.name=A+C[4],A+=C[4])),g.push(m),typeof m.originalLine=="number"){let Q=m.source;for(;p.length<=Q;)p.push(null);p[Q]===null&&(p[Q]=[]),p[Q].push(m)}}P5(g,E),this.__generatedMappings=g;for(var y=0;y<p.length;y++)p[y]!=null&&Oh(p[y],Pe.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...p)};Ar.prototype._findMapping=function(e,i,n,r,s,o){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return lk.search(e,i,s,o)};Ar.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var i=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(i.generatedLine===n.generatedLine){i.lastGeneratedColumn=n.generatedColumn-1;continue}}i.lastGeneratedColumn=1/0}};Ar.prototype.originalPositionFor=function(e){var i={generatedLine:Pe.getArg(e,"line"),generatedColumn:Pe.getArg(e,"column")},n=this._findMapping(i,this._generatedMappings,"generatedLine","generatedColumn",Pe.compareByGeneratedPositionsDeflated,Pe.getArg(e,"bias",Fi.GREATEST_LOWER_BOUND));if(n>=0){var r=this._generatedMappings[n];if(r.generatedLine===i.generatedLine){var s=Pe.getArg(r,"source",null);s!==null&&(s=this._sources.at(s),s=Pe.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var o=Pe.getArg(r,"name",null);return o!==null&&(o=this._names.at(o)),{source:s,line:Pe.getArg(r,"originalLine",null),column:Pe.getArg(r,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}};Ar.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1};Ar.prototype.sourceContentFor=function(e,i){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var r=e;this.sourceRoot!=null&&(r=Pe.relative(this.sourceRoot,r));var s;if(this.sourceRoot!=null&&(s=Pe.urlParse(this.sourceRoot))){var o=r.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!s.path||s.path=="/")&&this._sources.has("/"+r))return this.sourcesContent[this._sources.indexOf("/"+r)]}if(i)return null;throw new Error('"'+r+'" is not in the SourceMap.')};Ar.prototype.generatedPositionFor=function(e){var i=Pe.getArg(e,"source");if(i=this._findSourceIndex(i),i<0)return{line:null,column:null,lastColumn:null};var n={source:i,originalLine:Pe.getArg(e,"line"),originalColumn:Pe.getArg(e,"column")},r=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",Pe.compareByOriginalPositions,Pe.getArg(e,"bias",Fi.GREATEST_LOWER_BOUND));if(r>=0){var s=this._originalMappings[r];if(s.source===n.source)return{line:Pe.getArg(s,"generatedLine",null),column:Pe.getArg(s,"generatedColumn",null),lastColumn:Pe.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Ly.BasicSourceMapConsumer=Ar;function ua(t,e){var i=t;typeof t=="string"&&(i=Pe.parseSourceMapInput(t));var n=Pe.getArg(i,"version"),r=Pe.getArg(i,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new rd,this._names=new rd;var s={line:-1,column:0};this._sections=r.map(function(o){if(o.url)throw new Error("Support for url field in sections not implemented.");var a=Pe.getArg(o,"offset"),A=Pe.getArg(a,"line"),c=Pe.getArg(a,"column");if(A<s.line||A===s.line&&c<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=a,{generatedOffset:{generatedLine:A+1,generatedColumn:c+1},consumer:new Fi(Pe.getArg(o,"map"),e)}})}ua.prototype=Object.create(Fi.prototype);ua.prototype.constructor=Fi;ua.prototype._version=3;Object.defineProperty(ua.prototype,"sources",{get:function(){for(var t=[],e=0;e<this._sections.length;e++)for(var i=0;i<this._sections[e].consumer.sources.length;i++)t.push(this._sections[e].consumer.sources[i]);return t}});ua.prototype.originalPositionFor=function(e){var i={generatedLine:Pe.getArg(e,"line"),generatedColumn:Pe.getArg(e,"column")},n=lk.search(i,this._sections,function(s,o){var a=s.generatedLine-o.generatedOffset.generatedLine;return a||s.generatedColumn-o.generatedOffset.generatedColumn}),r=this._sections[n];return r?r.consumer.originalPositionFor({line:i.generatedLine-(r.generatedOffset.generatedLine-1),column:i.generatedColumn-(r.generatedOffset.generatedLine===i.generatedLine?r.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};ua.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};ua.prototype.sourceContentFor=function(e,i){for(var n=0;n<this._sections.length;n++){var r=this._sections[n],s=r.consumer.sourceContentFor(e,!0);if(s||s==="")return s}if(i)return null;throw new Error('"'+e+'" is not in the SourceMap.')};ua.prototype.generatedPositionFor=function(e){for(var i=0;i<this._sections.length;i++){var n=this._sections[i];if(n.consumer._findSourceIndex(Pe.getArg(e,"source"))!==-1){var r=n.consumer.generatedPositionFor(e);if(r){var s={line:r.line+(n.generatedOffset.generatedLine-1),column:r.column+(n.generatedOffset.generatedLine===r.line?n.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}};ua.prototype._parseMappings=function(e,i){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var r=this._sections[n],s=r.consumer._generatedMappings,o=0;o<s.length;o++){var a=s[o],A=r.consumer._sources.at(a.source);A!==null&&(A=Pe.computeSourceURL(r.consumer.sourceRoot,A,this._sourceMapURL)),this._sources.add(A),A=this._sources.indexOf(A);var c=null;a.name&&(c=r.consumer._names.at(a.name),this._names.add(c),c=this._names.indexOf(c));var u={source:A,generatedLine:a.generatedLine+(r.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(r.generatedOffset.generatedLine===a.generatedLine?r.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:c};this.__generatedMappings.push(u),typeof u.originalLine=="number"&&this.__originalMappings.push(u)}Oh(this.__generatedMappings,Pe.compareByGeneratedPositionsDeflated),Oh(this.__originalMappings,Pe.compareByOriginalPositions)};Ly.IndexedSourceMapConsumer=ua});var G5=S(U5=>{f();var Q1e=Ak().SourceMapGenerator,Uy=nd(),D1e=/(\r?\n)/,x1e=10,sd="$$$isSourceNode$$$";function js(t,e,i,n,r){this.children=[],this.sourceContents={},this.line=t??null,this.column=e??null,this.source=i??null,this.name=r??null,this[sd]=!0,n!=null&&this.add(n)}js.fromStringWithSourceMap=function(e,i,n){var r=new js,s=e.split(D1e),o=0,a=function(){var d=g(),p=g()||"";return d+p;function g(){return o<s.length?s[o++]:void 0}},A=1,c=0,u=null;return i.eachMapping(function(d){if(u!==null)if(A<d.generatedLine)l(u,a()),A++,c=0;else{var p=s[o]||"",g=p.substr(0,d.generatedColumn-c);s[o]=p.substr(d.generatedColumn-c),c=d.generatedColumn,l(u,g),u=d;return}for(;A<d.generatedLine;)r.add(a()),A++;if(c<d.generatedColumn){var p=s[o]||"";r.add(p.substr(0,d.generatedColumn)),s[o]=p.substr(d.generatedColumn),c=d.generatedColumn}u=d},this),o<s.length&&(u&&l(u,a()),r.add(s.splice(o).join(""))),i.sources.forEach(function(d){var p=i.sourceContentFor(d);p!=null&&(n!=null&&(d=Uy.join(n,d)),r.setSourceContent(d,p))}),r;function l(d,p){if(d===null||d.source===void 0)r.add(p);else{var g=n?Uy.join(n,d.source):d.source;r.add(new js(d.originalLine,d.originalColumn,g,p,d.name))}}};js.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(i){this.add(i)},this);else if(e[sd]||typeof e=="string")e&&this.children.push(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};js.prototype.prepend=function(e){if(Array.isArray(e))for(var i=e.length-1;i>=0;i--)this.prepend(e[i]);else if(e[sd]||typeof e=="string")this.children.unshift(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};js.prototype.walk=function(e){for(var i,n=0,r=this.children.length;n<r;n++)i=this.children[n],i[sd]?i.walk(e):i!==""&&e(i,{source:this.source,line:this.line,column:this.column,name:this.name})};js.prototype.join=function(e){var i,n,r=this.children.length;if(r>0){for(i=[],n=0;n<r-1;n++)i.push(this.children[n]),i.push(e);i.push(this.children[n]),this.children=i}return this};js.prototype.replaceRight=function(e,i){var n=this.children[this.children.length-1];return n[sd]?n.replaceRight(e,i):typeof n=="string"?this.children[this.children.length-1]=n.replace(e,i):this.children.push("".replace(e,i)),this};js.prototype.setSourceContent=function(e,i){this.sourceContents[Uy.toSetString(e)]=i};js.prototype.walkSourceContents=function(e){for(var i=0,n=this.children.length;i<n;i++)this.children[i][sd]&&this.children[i].walkSourceContents(e);for(var r=Object.keys(this.sourceContents),i=0,n=r.length;i<n;i++)e(Uy.fromSetString(r[i]),this.sourceContents[r[i]])};js.prototype.toString=function(){var e="";return this.walk(function(i){e+=i}),e};js.prototype.toStringWithSourceMap=function(e){var i={code:"",line:1,column:0},n=new Q1e(e),r=!1,s=null,o=null,a=null,A=null;return this.walk(function(c,u){i.code+=c,u.source!==null&&u.line!==null&&u.column!==null?((s!==u.source||o!==u.line||a!==u.column||A!==u.name)&&n.addMapping({source:u.source,original:{line:u.line,column:u.column},generated:{line:i.line,column:i.column},name:u.name}),s=u.source,o=u.line,a=u.column,A=u.name,r=!0):r&&(n.addMapping({generated:{line:i.line,column:i.column}}),s=null,r=!1);for(var l=0,d=c.length;l<d;l++)c.charCodeAt(l)===x1e?(i.line++,i.column=0,l+1===d?(s=null,r=!1):r&&n.addMapping({source:u.source,original:{line:u.line,column:u.column},generated:{line:i.line,column:i.column},name:u.name})):i.column++}),this.walkSourceContents(function(c,u){n.setSourceContent(c,u)}),{code:i.code,map:n}};U5.SourceNode=js});var O5=S(Gy=>{f();Gy.SourceMapGenerator=Ak().SourceMapGenerator;Gy.SourceMapConsumer=L5().SourceMapConsumer;Gy.SourceNode=G5().SourceNode});var C$=S(Wh=>{"use strict";f();Object.defineProperty(Wh,"__esModule",{value:!0});function v1e(t,e){if(t==null)return{};var i={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.includes(n))continue;i[n]=t[n]}return i}var aA=class{constructor(e,i,n){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=i,this.index=n}},ud=class{constructor(e,i){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=i}};function is(t,e){let{line:i,column:n,index:r}=t;return new aA(i,n+e,r+e)}var K5="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",b1e={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:K5},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:K5}},H5={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},Hy=t=>t.type==="UpdateExpression"?H5.UpdateExpression[`${t.prefix}`]:H5[t.type],w1e={AccessorIsGenerator:({kind:t})=>`A ${t}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:t})=>`Missing initializer in ${t} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:t})=>`\`${t}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:t})=>`'import.${t}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:t,exportName:e})=>`A string literal cannot be used as an exported binding without \`from\`.
|
|
1110
|
+
`)}function ZRe(t,e,i){return{debug(...n){if(!e())return;let{callArgs:r,options:s}=lu(n);My(s.stderr?uu.stderr:uu.stdout,"DEBUG",i,r)},info(...n){if(pu.info<t)return;let{callArgs:r,options:s}=lu(n);s.debug&&!e()||My(s.stderr?uu.stderr:uu.stdout,"INFO",i,r)},warn(...n){if(pu.warn<t)return;let{callArgs:r,options:s}=lu(n);s.debug&&!e()||My(uu.stderr,"WARNING",i,r)},error(...n){if(pu.error<t)return;let{callArgs:r,options:s}=lu(n);s.debug&&!e()||My(uu.stderr,"ERROR",i,r)}}}function l5(){return new Date().toISOString()}function td(t){return t?`[${l5()}] [${t}]`:`[${l5()}]`}function XRe(t,e,i){return{debug(...n){if(!e())return;let{callArgs:r,options:s}=lu(n);s.stderr?console.error(td(i),...r):console.debug(td(i),...r)},info(...n){if(pu.info<t)return;let{callArgs:r,options:s}=lu(n);s.debug&&!e()||(s.stderr?console.error(td(i),...r):console.log(td(i),...r))},warn(...n){if(pu.warn<t)return;let{callArgs:r,options:s}=lu(n);s.debug&&!e()||console.warn(td(i),...r)},error(...n){if(pu.error<t)return;let{callArgs:r,options:s}=lu(n);s.debug&&!e()||console.error(td(i),...r)}}}function ke(t,e){let i=typeof e?.debug=="function"?e.debug:e?.debug!==void 0?()=>e.debug:()=>!!process.env.DEBUG,n=e?.level??process.env.LOG_LEVEL?.toLowerCase()??"info",r=pu[n]??pu.info;return WRe()?ZRe(r,i,t):XRe(r,i,t)}var uu,pu,zt=T(()=>{"use strict";f();uu=require("process"),pu={debug:0,info:1,warn:2,error:3}});async function ve(t){if(process.env.NODE_ENV!=="test")try{let e=process.env.BUILDER_DISABLE_AMPLITUDE==="true",i=[p5.flush(2e3)];e||i.push(g5.flush().promise),await Promise.allSettled(i)}catch(e){e1e.error(e)}process.exit(t)}var p5,g5,e1e,Co=T(()=>{"use strict";f();p5=X(require("@sentry/node"),1),g5=X(require("@amplitude/analytics-node"),1);zt();e1e=ke("Exit")});var Ue,tn=T(()=>{"use strict";f();Ue=process.env.AIR_HOST||process.env.BUILDER_HOST||"https://api.builder.io"});var m5,d5=T(()=>{m5="1.35.1"});var h5=S(ek=>{f();var f5="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");ek.encode=function(t){if(0<=t&&t<f5.length)return f5[t];throw new TypeError("Must be between 0 and 63: "+t)};ek.decode=function(t){var e=65,i=90,n=97,r=122,s=48,o=57,a=43,A=47,c=26,u=52;return e<=t&&t<=i?t-e:n<=t&&t<=r?t-n+c:s<=t&&t<=o?t-s+u:t==a?62:t==A?63:-1}});var nk=S(ik=>{f();var C5=h5(),tk=5,I5=1<<tk,E5=I5-1,B5=I5;function i1e(t){return t<0?(-t<<1)+1:(t<<1)+0}function n1e(t){var e=(t&1)===1,i=t>>1;return e?-i:i}ik.encode=function(e){var i="",n,r=i1e(e);do n=r&E5,r>>>=tk,r>0&&(n|=B5),i+=C5.encode(n);while(r>0);return i};ik.decode=function(e,i,n){var r=e.length,s=0,o=0,a,A;do{if(i>=r)throw new Error("Expected more digits in base 64 VLQ value.");if(A=C5.decode(e.charCodeAt(i++)),A===-1)throw new Error("Invalid base64 digit: "+e.charAt(i-1));a=!!(A&B5),A&=E5,s=s+(A<<o),o+=tk}while(a);n.value=n1e(s),n.rest=i}});var nd=S($n=>{f();function r1e(t,e,i){if(e in t)return t[e];if(arguments.length===3)return i;throw new Error('"'+e+'" is a required argument.')}$n.getArg=r1e;var y5=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,s1e=/^data:.+\,.+$/;function Uh(t){var e=t.match(y5);return e?{scheme:e[1],auth:e[2],host:e[3],port:e[4],path:e[5]}:null}$n.urlParse=Uh;function id(t){var e="";return t.scheme&&(e+=t.scheme+":"),e+="//",t.auth&&(e+=t.auth+"@"),t.host&&(e+=t.host),t.port&&(e+=":"+t.port),t.path&&(e+=t.path),e}$n.urlGenerate=id;var o1e=32;function a1e(t){var e=[];return function(i){for(var n=0;n<e.length;n++)if(e[n].input===i){var r=e[0];return e[0]=e[n],e[n]=r,e[0].result}var s=t(i);return e.unshift({input:i,result:s}),e.length>o1e&&e.pop(),s}}var rk=a1e(function(e){var i=e,n=Uh(e);if(n){if(!n.path)return e;i=n.path}for(var r=$n.isAbsolute(i),s=[],o=0,a=0;;)if(o=a,a=i.indexOf("/",o),a===-1){s.push(i.slice(o));break}else for(s.push(i.slice(o,a));a<i.length&&i[a]==="/";)a++;for(var A,c=0,a=s.length-1;a>=0;a--)A=s[a],A==="."?s.splice(a,1):A===".."?c++:c>0&&(A===""?(s.splice(a+1,c),c=0):(s.splice(a,2),c--));return i=s.join("/"),i===""&&(i=r?"/":"."),n?(n.path=i,id(n)):i});$n.normalize=rk;function Q5(t,e){t===""&&(t="."),e===""&&(e=".");var i=Uh(e),n=Uh(t);if(n&&(t=n.path||"/"),i&&!i.scheme)return n&&(i.scheme=n.scheme),id(i);if(i||e.match(s1e))return e;if(n&&!n.host&&!n.path)return n.host=e,id(n);var r=e.charAt(0)==="/"?e:rk(t.replace(/\/+$/,"")+"/"+e);return n?(n.path=r,id(n)):r}$n.join=Q5;$n.isAbsolute=function(t){return t.charAt(0)==="/"||y5.test(t)};function A1e(t,e){t===""&&(t="."),t=t.replace(/\/$/,"");for(var i=0;e.indexOf(t+"/")!==0;){var n=t.lastIndexOf("/");if(n<0||(t=t.slice(0,n),t.match(/^([^\/]+:\/)?\/*$/)))return e;++i}return Array(i+1).join("../")+e.substr(t.length+1)}$n.relative=A1e;var D5=(function(){var t=Object.create(null);return!("__proto__"in t)})();function x5(t){return t}function c1e(t){return v5(t)?"$"+t:t}$n.toSetString=D5?x5:c1e;function u1e(t){return v5(t)?t.slice(1):t}$n.fromSetString=D5?x5:u1e;function v5(t){if(!t)return!1;var e=t.length;if(e<9||t.charCodeAt(e-1)!==95||t.charCodeAt(e-2)!==95||t.charCodeAt(e-3)!==111||t.charCodeAt(e-4)!==116||t.charCodeAt(e-5)!==111||t.charCodeAt(e-6)!==114||t.charCodeAt(e-7)!==112||t.charCodeAt(e-8)!==95||t.charCodeAt(e-9)!==95)return!1;for(var i=e-10;i>=0;i--)if(t.charCodeAt(i)!==36)return!1;return!0}function l1e(t,e,i){var n=XA(t.source,e.source);return n!==0||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0||i)||(n=t.generatedColumn-e.generatedColumn,n!==0)||(n=t.generatedLine-e.generatedLine,n!==0)?n:XA(t.name,e.name)}$n.compareByOriginalPositions=l1e;function p1e(t,e,i){var n;return n=t.originalLine-e.originalLine,n!==0||(n=t.originalColumn-e.originalColumn,n!==0||i)||(n=t.generatedColumn-e.generatedColumn,n!==0)||(n=t.generatedLine-e.generatedLine,n!==0)?n:XA(t.name,e.name)}$n.compareByOriginalPositionsNoSource=p1e;function g1e(t,e,i){var n=t.generatedLine-e.generatedLine;return n!==0||(n=t.generatedColumn-e.generatedColumn,n!==0||i)||(n=XA(t.source,e.source),n!==0)||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0)?n:XA(t.name,e.name)}$n.compareByGeneratedPositionsDeflated=g1e;function d1e(t,e,i){var n=t.generatedColumn-e.generatedColumn;return n!==0||i||(n=XA(t.source,e.source),n!==0)||(n=t.originalLine-e.originalLine,n!==0)||(n=t.originalColumn-e.originalColumn,n!==0)?n:XA(t.name,e.name)}$n.compareByGeneratedPositionsDeflatedNoLine=d1e;function XA(t,e){return t===e?0:t===null?1:e===null?-1:t>e?1:-1}function m1e(t,e){var i=t.generatedLine-e.generatedLine;return i!==0||(i=t.generatedColumn-e.generatedColumn,i!==0)||(i=XA(t.source,e.source),i!==0)||(i=t.originalLine-e.originalLine,i!==0)||(i=t.originalColumn-e.originalColumn,i!==0)?i:XA(t.name,e.name)}$n.compareByGeneratedPositionsInflated=m1e;function f1e(t){return JSON.parse(t.replace(/^\)]}'[^\n]*\n/,""))}$n.parseSourceMapInput=f1e;function h1e(t,e,i){if(e=e||"",t&&(t[t.length-1]!=="/"&&e[0]!=="/"&&(t+="/"),e=t+e),i){var n=Uh(i);if(!n)throw new Error("sourceMapURL could not be parsed");if(n.path){var r=n.path.lastIndexOf("/");r>=0&&(n.path=n.path.substring(0,r+1))}e=Q5(id(n),e)}return rk(e)}$n.computeSourceURL=h1e});var ak=S(b5=>{f();var sk=nd(),ok=Object.prototype.hasOwnProperty,$l=typeof Map<"u";function ec(){this._array=[],this._set=$l?new Map:Object.create(null)}ec.fromArray=function(e,i){for(var n=new ec,r=0,s=e.length;r<s;r++)n.add(e[r],i);return n};ec.prototype.size=function(){return $l?this._set.size:Object.getOwnPropertyNames(this._set).length};ec.prototype.add=function(e,i){var n=$l?e:sk.toSetString(e),r=$l?this.has(e):ok.call(this._set,n),s=this._array.length;(!r||i)&&this._array.push(e),r||($l?this._set.set(e,s):this._set[n]=s)};ec.prototype.has=function(e){if($l)return this._set.has(e);var i=sk.toSetString(e);return ok.call(this._set,i)};ec.prototype.indexOf=function(e){if($l){var i=this._set.get(e);if(i>=0)return i}else{var n=sk.toSetString(e);if(ok.call(this._set,n))return this._set[n]}throw new Error('"'+e+'" is not in the set.')};ec.prototype.at=function(e){if(e>=0&&e<this._array.length)return this._array[e];throw new Error("No element indexed by "+e)};ec.prototype.toArray=function(){return this._array.slice()};b5.ArraySet=ec});var F5=S(S5=>{f();var w5=nd();function C1e(t,e){var i=t.generatedLine,n=e.generatedLine,r=t.generatedColumn,s=e.generatedColumn;return n>i||n==i&&s>=r||w5.compareByGeneratedPositionsInflated(t,e)<=0}function Py(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}Py.prototype.unsortedForEach=function(e,i){this._array.forEach(e,i)};Py.prototype.add=function(e){C1e(this._last,e)?(this._last=e,this._array.push(e)):(this._sorted=!1,this._array.push(e))};Py.prototype.toArray=function(){return this._sorted||(this._array.sort(w5.compareByGeneratedPositionsInflated),this._sorted=!0),this._array};S5.MappingList=Py});var Ak=S(k5=>{f();var Gh=nk(),mn=nd(),_y=ak().ArraySet,I1e=F5().MappingList;function Io(t){t||(t={}),this._file=mn.getArg(t,"file",null),this._sourceRoot=mn.getArg(t,"sourceRoot",null),this._skipValidation=mn.getArg(t,"skipValidation",!1),this._ignoreInvalidMapping=mn.getArg(t,"ignoreInvalidMapping",!1),this._sources=new _y,this._names=new _y,this._mappings=new I1e,this._sourcesContents=null}Io.prototype._version=3;Io.fromSourceMap=function(e,i){var n=e.sourceRoot,r=new Io(Object.assign(i||{},{file:e.file,sourceRoot:n}));return e.eachMapping(function(s){var o={generated:{line:s.generatedLine,column:s.generatedColumn}};s.source!=null&&(o.source=s.source,n!=null&&(o.source=mn.relative(n,o.source)),o.original={line:s.originalLine,column:s.originalColumn},s.name!=null&&(o.name=s.name)),r.addMapping(o)}),e.sources.forEach(function(s){var o=s;n!==null&&(o=mn.relative(n,s)),r._sources.has(o)||r._sources.add(o);var a=e.sourceContentFor(s);a!=null&&r.setSourceContent(s,a)}),r};Io.prototype.addMapping=function(e){var i=mn.getArg(e,"generated"),n=mn.getArg(e,"original",null),r=mn.getArg(e,"source",null),s=mn.getArg(e,"name",null);!this._skipValidation&&this._validateMapping(i,n,r,s)===!1||(r!=null&&(r=String(r),this._sources.has(r)||this._sources.add(r)),s!=null&&(s=String(s),this._names.has(s)||this._names.add(s)),this._mappings.add({generatedLine:i.line,generatedColumn:i.column,originalLine:n!=null&&n.line,originalColumn:n!=null&&n.column,source:r,name:s}))};Io.prototype.setSourceContent=function(e,i){var n=e;this._sourceRoot!=null&&(n=mn.relative(this._sourceRoot,n)),i!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[mn.toSetString(n)]=i):this._sourcesContents&&(delete this._sourcesContents[mn.toSetString(n)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))};Io.prototype.applySourceMap=function(e,i,n){var r=i;if(i==null){if(e.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);r=e.file}var s=this._sourceRoot;s!=null&&(r=mn.relative(s,r));var o=new _y,a=new _y;this._mappings.unsortedForEach(function(A){if(A.source===r&&A.originalLine!=null){var c=e.originalPositionFor({line:A.originalLine,column:A.originalColumn});c.source!=null&&(A.source=c.source,n!=null&&(A.source=mn.join(n,A.source)),s!=null&&(A.source=mn.relative(s,A.source)),A.originalLine=c.line,A.originalColumn=c.column,c.name!=null&&(A.name=c.name))}var u=A.source;u!=null&&!o.has(u)&&o.add(u);var l=A.name;l!=null&&!a.has(l)&&a.add(l)},this),this._sources=o,this._names=a,e.sources.forEach(function(A){var c=e.sourceContentFor(A);c!=null&&(n!=null&&(A=mn.join(n,A)),s!=null&&(A=mn.relative(s,A)),this.setSourceContent(A,c))},this)};Io.prototype._validateMapping=function(e,i,n,r){if(i&&typeof i.line!="number"&&typeof i.column!="number"){var s="original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.";if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(s),!1;throw new Error(s)}if(!(e&&"line"in e&&"column"in e&&e.line>0&&e.column>=0&&!i&&!n&&!r)){if(e&&"line"in e&&"column"in e&&i&&"line"in i&&"column"in i&&e.line>0&&e.column>=0&&i.line>0&&i.column>=0&&n)return;var s="Invalid mapping: "+JSON.stringify({generated:e,source:n,original:i,name:r});if(this._ignoreInvalidMapping)return typeof console<"u"&&console.warn&&console.warn(s),!1;throw new Error(s)}};Io.prototype._serializeMappings=function(){for(var e=0,i=1,n=0,r=0,s=0,o=0,a="",A,c,u,l,d=this._mappings.toArray(),p=0,g=d.length;p<g;p++){if(c=d[p],A="",c.generatedLine!==i)for(e=0;c.generatedLine!==i;)A+=";",i++;else if(p>0){if(!mn.compareByGeneratedPositionsInflated(c,d[p-1]))continue;A+=","}A+=Gh.encode(c.generatedColumn-e),e=c.generatedColumn,c.source!=null&&(l=this._sources.indexOf(c.source),A+=Gh.encode(l-o),o=l,A+=Gh.encode(c.originalLine-1-r),r=c.originalLine-1,A+=Gh.encode(c.originalColumn-n),n=c.originalColumn,c.name!=null&&(u=this._names.indexOf(c.name),A+=Gh.encode(u-s),s=u)),a+=A}return a};Io.prototype._generateSourcesContent=function(e,i){return e.map(function(n){if(!this._sourcesContents)return null;i!=null&&(n=mn.relative(i,n));var r=mn.toSetString(n);return Object.prototype.hasOwnProperty.call(this._sourcesContents,r)?this._sourcesContents[r]:null},this)};Io.prototype.toJSON=function(){var e={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(e.file=this._file),this._sourceRoot!=null&&(e.sourceRoot=this._sourceRoot),this._sourcesContents&&(e.sourcesContent=this._generateSourcesContent(e.sources,e.sourceRoot)),e};Io.prototype.toString=function(){return JSON.stringify(this.toJSON())};k5.SourceMapGenerator=Io});var R5=S(ql=>{f();ql.GREATEST_LOWER_BOUND=1;ql.LEAST_UPPER_BOUND=2;function ck(t,e,i,n,r,s){var o=Math.floor((e-t)/2)+t,a=r(i,n[o],!0);return a===0?o:a>0?e-o>1?ck(o,e,i,n,r,s):s==ql.LEAST_UPPER_BOUND?e<n.length?e:-1:o:o-t>1?ck(t,o,i,n,r,s):s==ql.LEAST_UPPER_BOUND?o:t<0?-1:t}ql.search=function(e,i,n,r){if(i.length===0)return-1;var s=ck(-1,i.length,e,i,n,r||ql.GREATEST_LOWER_BOUND);if(s<0)return-1;for(;s-1>=0&&n(i[s],i[s-1],!0)===0;)--s;return s}});var M5=S(T5=>{f();function E1e(t){function e(r,s,o){var a=r[s];r[s]=r[o],r[o]=a}function i(r,s){return Math.round(r+Math.random()*(s-r))}function n(r,s,o,a){if(o<a){var A=i(o,a),c=o-1;e(r,A,a);for(var u=r[a],l=o;l<a;l++)s(r[l],u,!1)<=0&&(c+=1,e(r,c,l));e(r,c+1,l);var d=c+1;n(r,s,o,d-1),n(r,s,d+1,a)}}return n}function B1e(t){let e=E1e.toString();return new Function(`return ${e}`)()(t)}var N5=new WeakMap;T5.quickSort=function(t,e,i=0){let n=N5.get(e);n===void 0&&(n=B1e(e),N5.set(e,n)),n(t,e,i,t.length-1)}});var L5=S(Ly=>{f();var Pe=nd(),lk=R5(),rd=ak().ArraySet,y1e=nk(),Oh=M5().quickSort;function Fi(t,e){var i=t;return typeof t=="string"&&(i=Pe.parseSourceMapInput(t)),i.sections!=null?new ua(i,e):new Ar(i,e)}Fi.fromSourceMap=function(t,e){return Ar.fromSourceMap(t,e)};Fi.prototype._version=3;Fi.prototype.__generatedMappings=null;Object.defineProperty(Fi.prototype,"_generatedMappings",{configurable:!0,enumerable:!0,get:function(){return this.__generatedMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__generatedMappings}});Fi.prototype.__originalMappings=null;Object.defineProperty(Fi.prototype,"_originalMappings",{configurable:!0,enumerable:!0,get:function(){return this.__originalMappings||this._parseMappings(this._mappings,this.sourceRoot),this.__originalMappings}});Fi.prototype._charIsMappingSeparator=function(e,i){var n=e.charAt(i);return n===";"||n===","};Fi.prototype._parseMappings=function(e,i){throw new Error("Subclasses must implement _parseMappings")};Fi.GENERATED_ORDER=1;Fi.ORIGINAL_ORDER=2;Fi.GREATEST_LOWER_BOUND=1;Fi.LEAST_UPPER_BOUND=2;Fi.prototype.eachMapping=function(e,i,n){var r=i||null,s=n||Fi.GENERATED_ORDER,o;switch(s){case Fi.GENERATED_ORDER:o=this._generatedMappings;break;case Fi.ORIGINAL_ORDER:o=this._originalMappings;break;default:throw new Error("Unknown order of iteration.")}for(var a=this.sourceRoot,A=e.bind(r),c=this._names,u=this._sources,l=this._sourceMapURL,d=0,p=o.length;d<p;d++){var g=o[d],m=g.source===null?null:u.at(g.source);m!==null&&(m=Pe.computeSourceURL(a,m,l)),A({source:m,generatedLine:g.generatedLine,generatedColumn:g.generatedColumn,originalLine:g.originalLine,originalColumn:g.originalColumn,name:g.name===null?null:c.at(g.name)})}};Fi.prototype.allGeneratedPositionsFor=function(e){var i=Pe.getArg(e,"line"),n={source:Pe.getArg(e,"source"),originalLine:i,originalColumn:Pe.getArg(e,"column",0)};if(n.source=this._findSourceIndex(n.source),n.source<0)return[];var r=[],s=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",Pe.compareByOriginalPositions,lk.LEAST_UPPER_BOUND);if(s>=0){var o=this._originalMappings[s];if(e.column===void 0)for(var a=o.originalLine;o&&o.originalLine===a;)r.push({line:Pe.getArg(o,"generatedLine",null),column:Pe.getArg(o,"generatedColumn",null),lastColumn:Pe.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s];else for(var A=o.originalColumn;o&&o.originalLine===i&&o.originalColumn==A;)r.push({line:Pe.getArg(o,"generatedLine",null),column:Pe.getArg(o,"generatedColumn",null),lastColumn:Pe.getArg(o,"lastGeneratedColumn",null)}),o=this._originalMappings[++s]}return r};Ly.SourceMapConsumer=Fi;function Ar(t,e){var i=t;typeof t=="string"&&(i=Pe.parseSourceMapInput(t));var n=Pe.getArg(i,"version"),r=Pe.getArg(i,"sources"),s=Pe.getArg(i,"names",[]),o=Pe.getArg(i,"sourceRoot",null),a=Pe.getArg(i,"sourcesContent",null),A=Pe.getArg(i,"mappings"),c=Pe.getArg(i,"file",null);if(n!=this._version)throw new Error("Unsupported version: "+n);o&&(o=Pe.normalize(o)),r=r.map(String).map(Pe.normalize).map(function(u){return o&&Pe.isAbsolute(o)&&Pe.isAbsolute(u)?Pe.relative(o,u):u}),this._names=rd.fromArray(s.map(String),!0),this._sources=rd.fromArray(r,!0),this._absoluteSources=this._sources.toArray().map(function(u){return Pe.computeSourceURL(o,u,e)}),this.sourceRoot=o,this.sourcesContent=a,this._mappings=A,this._sourceMapURL=e,this.file=c}Ar.prototype=Object.create(Fi.prototype);Ar.prototype.consumer=Fi;Ar.prototype._findSourceIndex=function(t){var e=t;if(this.sourceRoot!=null&&(e=Pe.relative(this.sourceRoot,e)),this._sources.has(e))return this._sources.indexOf(e);var i;for(i=0;i<this._absoluteSources.length;++i)if(this._absoluteSources[i]==t)return i;return-1};Ar.fromSourceMap=function(e,i){var n=Object.create(Ar.prototype),r=n._names=rd.fromArray(e._names.toArray(),!0),s=n._sources=rd.fromArray(e._sources.toArray(),!0);n.sourceRoot=e._sourceRoot,n.sourcesContent=e._generateSourcesContent(n._sources.toArray(),n.sourceRoot),n.file=e._file,n._sourceMapURL=i,n._absoluteSources=n._sources.toArray().map(function(p){return Pe.computeSourceURL(n.sourceRoot,p,i)});for(var o=e._mappings.toArray().slice(),a=n.__generatedMappings=[],A=n.__originalMappings=[],c=0,u=o.length;c<u;c++){var l=o[c],d=new _5;d.generatedLine=l.generatedLine,d.generatedColumn=l.generatedColumn,l.source&&(d.source=s.indexOf(l.source),d.originalLine=l.originalLine,d.originalColumn=l.originalColumn,l.name&&(d.name=r.indexOf(l.name)),A.push(d)),a.push(d)}return Oh(n.__originalMappings,Pe.compareByOriginalPositions),n};Ar.prototype._version=3;Object.defineProperty(Ar.prototype,"sources",{get:function(){return this._absoluteSources.slice()}});function _5(){this.generatedLine=0,this.generatedColumn=0,this.source=null,this.originalLine=null,this.originalColumn=null,this.name=null}var uk=Pe.compareByGeneratedPositionsDeflatedNoLine;function P5(t,e){let i=t.length,n=t.length-e;if(!(n<=1))if(n==2){let r=t[e],s=t[e+1];uk(r,s)>0&&(t[e]=s,t[e+1]=r)}else if(n<20)for(let r=e;r<i;r++)for(let s=r;s>e;s--){let o=t[s-1],a=t[s];if(uk(o,a)<=0)break;t[s-1]=a,t[s]=o}else Oh(t,uk,e)}Ar.prototype._parseMappings=function(e,i){var n=1,r=0,s=0,o=0,a=0,A=0,c=e.length,u=0,l={},d={},p=[],g=[],m,h,C,I,B;let E=0;for(;u<c;)if(e.charAt(u)===";")n++,u++,r=0,P5(g,E),E=g.length;else if(e.charAt(u)===",")u++;else{for(m=new _5,m.generatedLine=n,I=u;I<c&&!this._charIsMappingSeparator(e,I);I++);for(h=e.slice(u,I),C=[];u<I;)y1e.decode(e,u,d),B=d.value,u=d.rest,C.push(B);if(C.length===2)throw new Error("Found a source, but no line and column");if(C.length===3)throw new Error("Found a source and line, but no column");if(m.generatedColumn=r+C[0],r=m.generatedColumn,C.length>1&&(m.source=a+C[1],a+=C[1],m.originalLine=s+C[2],s=m.originalLine,m.originalLine+=1,m.originalColumn=o+C[3],o=m.originalColumn,C.length>4&&(m.name=A+C[4],A+=C[4])),g.push(m),typeof m.originalLine=="number"){let Q=m.source;for(;p.length<=Q;)p.push(null);p[Q]===null&&(p[Q]=[]),p[Q].push(m)}}P5(g,E),this.__generatedMappings=g;for(var y=0;y<p.length;y++)p[y]!=null&&Oh(p[y],Pe.compareByOriginalPositionsNoSource);this.__originalMappings=[].concat(...p)};Ar.prototype._findMapping=function(e,i,n,r,s,o){if(e[n]<=0)throw new TypeError("Line must be greater than or equal to 1, got "+e[n]);if(e[r]<0)throw new TypeError("Column must be greater than or equal to 0, got "+e[r]);return lk.search(e,i,s,o)};Ar.prototype.computeColumnSpans=function(){for(var e=0;e<this._generatedMappings.length;++e){var i=this._generatedMappings[e];if(e+1<this._generatedMappings.length){var n=this._generatedMappings[e+1];if(i.generatedLine===n.generatedLine){i.lastGeneratedColumn=n.generatedColumn-1;continue}}i.lastGeneratedColumn=1/0}};Ar.prototype.originalPositionFor=function(e){var i={generatedLine:Pe.getArg(e,"line"),generatedColumn:Pe.getArg(e,"column")},n=this._findMapping(i,this._generatedMappings,"generatedLine","generatedColumn",Pe.compareByGeneratedPositionsDeflated,Pe.getArg(e,"bias",Fi.GREATEST_LOWER_BOUND));if(n>=0){var r=this._generatedMappings[n];if(r.generatedLine===i.generatedLine){var s=Pe.getArg(r,"source",null);s!==null&&(s=this._sources.at(s),s=Pe.computeSourceURL(this.sourceRoot,s,this._sourceMapURL));var o=Pe.getArg(r,"name",null);return o!==null&&(o=this._names.at(o)),{source:s,line:Pe.getArg(r,"originalLine",null),column:Pe.getArg(r,"originalColumn",null),name:o}}}return{source:null,line:null,column:null,name:null}};Ar.prototype.hasContentsOfAllSources=function(){return this.sourcesContent?this.sourcesContent.length>=this._sources.size()&&!this.sourcesContent.some(function(e){return e==null}):!1};Ar.prototype.sourceContentFor=function(e,i){if(!this.sourcesContent)return null;var n=this._findSourceIndex(e);if(n>=0)return this.sourcesContent[n];var r=e;this.sourceRoot!=null&&(r=Pe.relative(this.sourceRoot,r));var s;if(this.sourceRoot!=null&&(s=Pe.urlParse(this.sourceRoot))){var o=r.replace(/^file:\/\//,"");if(s.scheme=="file"&&this._sources.has(o))return this.sourcesContent[this._sources.indexOf(o)];if((!s.path||s.path=="/")&&this._sources.has("/"+r))return this.sourcesContent[this._sources.indexOf("/"+r)]}if(i)return null;throw new Error('"'+r+'" is not in the SourceMap.')};Ar.prototype.generatedPositionFor=function(e){var i=Pe.getArg(e,"source");if(i=this._findSourceIndex(i),i<0)return{line:null,column:null,lastColumn:null};var n={source:i,originalLine:Pe.getArg(e,"line"),originalColumn:Pe.getArg(e,"column")},r=this._findMapping(n,this._originalMappings,"originalLine","originalColumn",Pe.compareByOriginalPositions,Pe.getArg(e,"bias",Fi.GREATEST_LOWER_BOUND));if(r>=0){var s=this._originalMappings[r];if(s.source===n.source)return{line:Pe.getArg(s,"generatedLine",null),column:Pe.getArg(s,"generatedColumn",null),lastColumn:Pe.getArg(s,"lastGeneratedColumn",null)}}return{line:null,column:null,lastColumn:null}};Ly.BasicSourceMapConsumer=Ar;function ua(t,e){var i=t;typeof t=="string"&&(i=Pe.parseSourceMapInput(t));var n=Pe.getArg(i,"version"),r=Pe.getArg(i,"sections");if(n!=this._version)throw new Error("Unsupported version: "+n);this._sources=new rd,this._names=new rd;var s={line:-1,column:0};this._sections=r.map(function(o){if(o.url)throw new Error("Support for url field in sections not implemented.");var a=Pe.getArg(o,"offset"),A=Pe.getArg(a,"line"),c=Pe.getArg(a,"column");if(A<s.line||A===s.line&&c<s.column)throw new Error("Section offsets must be ordered and non-overlapping.");return s=a,{generatedOffset:{generatedLine:A+1,generatedColumn:c+1},consumer:new Fi(Pe.getArg(o,"map"),e)}})}ua.prototype=Object.create(Fi.prototype);ua.prototype.constructor=Fi;ua.prototype._version=3;Object.defineProperty(ua.prototype,"sources",{get:function(){for(var t=[],e=0;e<this._sections.length;e++)for(var i=0;i<this._sections[e].consumer.sources.length;i++)t.push(this._sections[e].consumer.sources[i]);return t}});ua.prototype.originalPositionFor=function(e){var i={generatedLine:Pe.getArg(e,"line"),generatedColumn:Pe.getArg(e,"column")},n=lk.search(i,this._sections,function(s,o){var a=s.generatedLine-o.generatedOffset.generatedLine;return a||s.generatedColumn-o.generatedOffset.generatedColumn}),r=this._sections[n];return r?r.consumer.originalPositionFor({line:i.generatedLine-(r.generatedOffset.generatedLine-1),column:i.generatedColumn-(r.generatedOffset.generatedLine===i.generatedLine?r.generatedOffset.generatedColumn-1:0),bias:e.bias}):{source:null,line:null,column:null,name:null}};ua.prototype.hasContentsOfAllSources=function(){return this._sections.every(function(e){return e.consumer.hasContentsOfAllSources()})};ua.prototype.sourceContentFor=function(e,i){for(var n=0;n<this._sections.length;n++){var r=this._sections[n],s=r.consumer.sourceContentFor(e,!0);if(s||s==="")return s}if(i)return null;throw new Error('"'+e+'" is not in the SourceMap.')};ua.prototype.generatedPositionFor=function(e){for(var i=0;i<this._sections.length;i++){var n=this._sections[i];if(n.consumer._findSourceIndex(Pe.getArg(e,"source"))!==-1){var r=n.consumer.generatedPositionFor(e);if(r){var s={line:r.line+(n.generatedOffset.generatedLine-1),column:r.column+(n.generatedOffset.generatedLine===r.line?n.generatedOffset.generatedColumn-1:0)};return s}}}return{line:null,column:null}};ua.prototype._parseMappings=function(e,i){this.__generatedMappings=[],this.__originalMappings=[];for(var n=0;n<this._sections.length;n++)for(var r=this._sections[n],s=r.consumer._generatedMappings,o=0;o<s.length;o++){var a=s[o],A=r.consumer._sources.at(a.source);A!==null&&(A=Pe.computeSourceURL(r.consumer.sourceRoot,A,this._sourceMapURL)),this._sources.add(A),A=this._sources.indexOf(A);var c=null;a.name&&(c=r.consumer._names.at(a.name),this._names.add(c),c=this._names.indexOf(c));var u={source:A,generatedLine:a.generatedLine+(r.generatedOffset.generatedLine-1),generatedColumn:a.generatedColumn+(r.generatedOffset.generatedLine===a.generatedLine?r.generatedOffset.generatedColumn-1:0),originalLine:a.originalLine,originalColumn:a.originalColumn,name:c};this.__generatedMappings.push(u),typeof u.originalLine=="number"&&this.__originalMappings.push(u)}Oh(this.__generatedMappings,Pe.compareByGeneratedPositionsDeflated),Oh(this.__originalMappings,Pe.compareByOriginalPositions)};Ly.IndexedSourceMapConsumer=ua});var G5=S(U5=>{f();var Q1e=Ak().SourceMapGenerator,Uy=nd(),D1e=/(\r?\n)/,x1e=10,sd="$$$isSourceNode$$$";function js(t,e,i,n,r){this.children=[],this.sourceContents={},this.line=t??null,this.column=e??null,this.source=i??null,this.name=r??null,this[sd]=!0,n!=null&&this.add(n)}js.fromStringWithSourceMap=function(e,i,n){var r=new js,s=e.split(D1e),o=0,a=function(){var d=g(),p=g()||"";return d+p;function g(){return o<s.length?s[o++]:void 0}},A=1,c=0,u=null;return i.eachMapping(function(d){if(u!==null)if(A<d.generatedLine)l(u,a()),A++,c=0;else{var p=s[o]||"",g=p.substr(0,d.generatedColumn-c);s[o]=p.substr(d.generatedColumn-c),c=d.generatedColumn,l(u,g),u=d;return}for(;A<d.generatedLine;)r.add(a()),A++;if(c<d.generatedColumn){var p=s[o]||"";r.add(p.substr(0,d.generatedColumn)),s[o]=p.substr(d.generatedColumn),c=d.generatedColumn}u=d},this),o<s.length&&(u&&l(u,a()),r.add(s.splice(o).join(""))),i.sources.forEach(function(d){var p=i.sourceContentFor(d);p!=null&&(n!=null&&(d=Uy.join(n,d)),r.setSourceContent(d,p))}),r;function l(d,p){if(d===null||d.source===void 0)r.add(p);else{var g=n?Uy.join(n,d.source):d.source;r.add(new js(d.originalLine,d.originalColumn,g,p,d.name))}}};js.prototype.add=function(e){if(Array.isArray(e))e.forEach(function(i){this.add(i)},this);else if(e[sd]||typeof e=="string")e&&this.children.push(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};js.prototype.prepend=function(e){if(Array.isArray(e))for(var i=e.length-1;i>=0;i--)this.prepend(e[i]);else if(e[sd]||typeof e=="string")this.children.unshift(e);else throw new TypeError("Expected a SourceNode, string, or an array of SourceNodes and strings. Got "+e);return this};js.prototype.walk=function(e){for(var i,n=0,r=this.children.length;n<r;n++)i=this.children[n],i[sd]?i.walk(e):i!==""&&e(i,{source:this.source,line:this.line,column:this.column,name:this.name})};js.prototype.join=function(e){var i,n,r=this.children.length;if(r>0){for(i=[],n=0;n<r-1;n++)i.push(this.children[n]),i.push(e);i.push(this.children[n]),this.children=i}return this};js.prototype.replaceRight=function(e,i){var n=this.children[this.children.length-1];return n[sd]?n.replaceRight(e,i):typeof n=="string"?this.children[this.children.length-1]=n.replace(e,i):this.children.push("".replace(e,i)),this};js.prototype.setSourceContent=function(e,i){this.sourceContents[Uy.toSetString(e)]=i};js.prototype.walkSourceContents=function(e){for(var i=0,n=this.children.length;i<n;i++)this.children[i][sd]&&this.children[i].walkSourceContents(e);for(var r=Object.keys(this.sourceContents),i=0,n=r.length;i<n;i++)e(Uy.fromSetString(r[i]),this.sourceContents[r[i]])};js.prototype.toString=function(){var e="";return this.walk(function(i){e+=i}),e};js.prototype.toStringWithSourceMap=function(e){var i={code:"",line:1,column:0},n=new Q1e(e),r=!1,s=null,o=null,a=null,A=null;return this.walk(function(c,u){i.code+=c,u.source!==null&&u.line!==null&&u.column!==null?((s!==u.source||o!==u.line||a!==u.column||A!==u.name)&&n.addMapping({source:u.source,original:{line:u.line,column:u.column},generated:{line:i.line,column:i.column},name:u.name}),s=u.source,o=u.line,a=u.column,A=u.name,r=!0):r&&(n.addMapping({generated:{line:i.line,column:i.column}}),s=null,r=!1);for(var l=0,d=c.length;l<d;l++)c.charCodeAt(l)===x1e?(i.line++,i.column=0,l+1===d?(s=null,r=!1):r&&n.addMapping({source:u.source,original:{line:u.line,column:u.column},generated:{line:i.line,column:i.column},name:u.name})):i.column++}),this.walkSourceContents(function(c,u){n.setSourceContent(c,u)}),{code:i.code,map:n}};U5.SourceNode=js});var O5=S(Gy=>{f();Gy.SourceMapGenerator=Ak().SourceMapGenerator;Gy.SourceMapConsumer=L5().SourceMapConsumer;Gy.SourceNode=G5().SourceNode});var C$=S(Wh=>{"use strict";f();Object.defineProperty(Wh,"__esModule",{value:!0});function v1e(t,e){if(t==null)return{};var i={};for(var n in t)if({}.hasOwnProperty.call(t,n)){if(e.includes(n))continue;i[n]=t[n]}return i}var aA=class{constructor(e,i,n){this.line=void 0,this.column=void 0,this.index=void 0,this.line=e,this.column=i,this.index=n}},ud=class{constructor(e,i){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=e,this.end=i}};function is(t,e){let{line:i,column:n,index:r}=t;return new aA(i,n+e,r+e)}var K5="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",b1e={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:K5},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:K5}},H5={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},Hy=t=>t.type==="UpdateExpression"?H5.UpdateExpression[`${t.prefix}`]:H5[t.type],w1e={AccessorIsGenerator:({kind:t})=>`A ${t}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:t})=>`Missing initializer in ${t} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:t})=>`\`${t}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:t})=>`'import.${t}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:t,exportName:e})=>`A string literal cannot be used as an exported binding without \`from\`.
|
|
1111
1111
|
- Did you mean \`export { '${t}' as '${e}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:t})=>`'${t==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:t})=>`Unsyntactic ${t==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:({importName:t})=>`A string literal cannot be used as an imported binding.
|
|
1112
1112
|
- Did you mean \`import { "${t}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:t})=>`\`import()\` requires exactly ${t===1?"one argument":"one or two arguments"}.`,ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:t})=>`Expected number in radix ${t}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:t})=>`Escape sequence in keyword ${t}.`,InvalidIdentifier:({identifierName:t})=>`Invalid identifier ${t}.`,InvalidLhs:({ancestor:t})=>`Invalid left-hand side in ${Hy(t)}.`,InvalidLhsBinding:({ancestor:t})=>`Binding invalid left-hand side in ${Hy(t)}.`,InvalidLhsOptionalChaining:({ancestor:t})=>`Invalid optional chaining in the left-hand side of ${Hy(t)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:t})=>`Unexpected character '${t}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:t})=>`Private name #${t} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:t})=>`Label '${t}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:t})=>`This experimental syntax requires enabling the parser plugin: ${t.map(e=>JSON.stringify(e)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:t})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${t.map(e=>JSON.stringify(e)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:t})=>`Duplicate key "${t}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:t})=>`An export name cannot include a lone surrogate, found '\\u${t.toString(16)}'.`,ModuleExportUndefined:({localName:t})=>`Export '${t}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:t})=>`Private names are only allowed in property accesses (\`obj.#${t}\`) or in \`in\` expressions (\`#${t} in obj\`).`,PrivateNameRedeclaration:({identifierName:t})=>`Duplicate private name #${t}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:t})=>`Unexpected keyword '${t}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:t})=>`Unexpected reserved word '${t}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:t,unexpected:e})=>`Unexpected token${e?` '${e}'.`:""}${t?`, expected "${t}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:t,onlyValidPropertyName:e})=>`The only valid meta property for ${t} is ${t}.${e}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:t})=>`Identifier '${t}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},S1e={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:t})=>`Assigning to '${t}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:t})=>`Binding '${t}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},F1e=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),k1e={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:t})=>`Invalid topic token ${t}. In order to use ${t} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${t}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:t})=>`Hack-style pipe body cannot be an unparenthesized ${Hy({type:t})}; please wrap it in parentheses.`,PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'},R1e=["message"];function J5(t,e,i){Object.defineProperty(t,e,{enumerable:!1,configurable:!0,value:i})}function N1e({toMessage:t,code:e,reasonCode:i,syntaxPlugin:n}){let r=i==="MissingPlugin"||i==="MissingOneOfPlugins";{let s={AccessorCannotDeclareThisParameter:"AccesorCannotDeclareThisParameter",AccessorCannotHaveTypeParameters:"AccesorCannotHaveTypeParameters",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference",SetAccessorCannotHaveOptionalParameter:"SetAccesorCannotHaveOptionalParameter",SetAccessorCannotHaveRestParameter:"SetAccesorCannotHaveRestParameter",SetAccessorCannotHaveReturnType:"SetAccesorCannotHaveReturnType"};s[i]&&(i=s[i])}return function s(o,a){let A=new SyntaxError;return A.code=e,A.reasonCode=i,A.loc=o,A.pos=o.index,A.syntaxPlugin=n,r&&(A.missingPlugin=a.missingPlugin),J5(A,"clone",function(u={}){var l;let{line:d,column:p,index:g}=(l=u.loc)!=null?l:o;return s(new aA(d,p,g),Object.assign({},a,u.details))}),J5(A,"details",a),Object.defineProperty(A,"message",{configurable:!0,get(){let c=`${t(a)} (${o.line}:${o.column})`;return this.message=c,c},set(c){Object.defineProperty(this,"message",{value:c,writable:!0})}}),A}}function rc(t,e){if(Array.isArray(t))return n=>rc(n,t[0]);let i={};for(let n of Object.keys(t)){let r=t[n],s=typeof r=="string"?{message:()=>r}:typeof r=="function"?{message:r}:r,{message:o}=s,a=v1e(s,R1e),A=typeof o=="string"?()=>o:o;i[n]=N1e(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:n,toMessage:A},e?{syntaxPlugin:e}:{},a))}return i}var $=Object.assign({},rc(b1e),rc(w1e),rc(S1e),rc`pipelineOperator`(k1e)),{defineProperty:T1e}=Object,j5=(t,e)=>{t&&T1e(t,e,{enumerable:!1,value:t[e]})};function Kh(t){return j5(t.loc.start,"index"),j5(t.loc.end,"index"),t}var M1e=t=>class extends t{parse(){let i=Kh(super.parse());return this.options.tokens&&(i.tokens=i.tokens.map(Kh)),i}parseRegExpLiteral({pattern:i,flags:n}){let r=null;try{r=new RegExp(i,n)}catch{}let s=this.estreeParseLiteral(r);return s.regex={pattern:i,flags:n},s}parseBigIntLiteral(i){let n;try{n=BigInt(i)}catch{n=null}let r=this.estreeParseLiteral(n);return r.bigint=String(r.value||i),r}parseDecimalLiteral(i){let r=this.estreeParseLiteral(null);return r.decimal=String(r.value||i),r}estreeParseLiteral(i){return this.parseLiteral(i,"Literal")}parseStringLiteral(i){return this.estreeParseLiteral(i)}parseNumericLiteral(i){return this.estreeParseLiteral(i)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(i){return this.estreeParseLiteral(i)}directiveToStmt(i){let n=i.value;delete i.value,n.type="Literal",n.raw=n.extra.raw,n.value=n.extra.expressionValue;let r=i;return r.type="ExpressionStatement",r.expression=n,r.directive=n.extra.rawValue,delete n.extra,r}initFunction(i,n){super.initFunction(i,n),i.expression=!1}checkDeclaration(i){i!=null&&this.isObjectProperty(i)?this.checkDeclaration(i.value):super.checkDeclaration(i)}getObjectOrClassMethodParams(i){return i.value.params}isValidDirective(i){var n;return i.type==="ExpressionStatement"&&i.expression.type==="Literal"&&typeof i.expression.value=="string"&&!((n=i.expression.extra)!=null&&n.parenthesized)}parseBlockBody(i,n,r,s,o){super.parseBlockBody(i,n,r,s,o);let a=i.directives.map(A=>this.directiveToStmt(A));i.body=a.concat(i.body),delete i.directives}pushClassMethod(i,n,r,s,o,a){this.parseMethod(n,r,s,o,a,"ClassMethod",!0),n.typeParameters&&(n.value.typeParameters=n.typeParameters,delete n.typeParameters),i.body.push(n)}parsePrivateName(){let i=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(i):i}convertPrivateNameToPrivateIdentifier(i){let n=super.getPrivateNameSV(i);return i=i,delete i.id,i.name=n,i.type="PrivateIdentifier",i}isPrivateName(i){return this.getPluginOption("estree","classFeatures")?i.type==="PrivateIdentifier":super.isPrivateName(i)}getPrivateNameSV(i){return this.getPluginOption("estree","classFeatures")?i.name:super.getPrivateNameSV(i)}parseLiteral(i,n){let r=super.parseLiteral(i,n);return r.raw=r.extra.raw,delete r.extra,r}parseFunctionBody(i,n,r=!1){super.parseFunctionBody(i,n,r),i.expression=i.body.type!=="BlockStatement"}parseMethod(i,n,r,s,o,a,A=!1){let c=this.startNode();return c.kind=i.kind,c=super.parseMethod(c,n,r,s,o,a,A),c.type="FunctionExpression",delete c.kind,i.value=c,a==="ClassPrivateMethod"&&(i.computed=!1),this.finishNode(i,"MethodDefinition")}nameIsConstructor(i){return i.type==="Literal"?i.value==="constructor":super.nameIsConstructor(i)}parseClassProperty(...i){let n=super.parseClassProperty(...i);return this.getPluginOption("estree","classFeatures")&&(n.type="PropertyDefinition"),n}parseClassPrivateProperty(...i){let n=super.parseClassPrivateProperty(...i);return this.getPluginOption("estree","classFeatures")&&(n.type="PropertyDefinition",n.computed=!1),n}parseObjectMethod(i,n,r,s,o){let a=super.parseObjectMethod(i,n,r,s,o);return a&&(a.type="Property",a.kind==="method"&&(a.kind="init"),a.shorthand=!1),a}parseObjectProperty(i,n,r,s){let o=super.parseObjectProperty(i,n,r,s);return o&&(o.kind="init",o.type="Property"),o}isValidLVal(i,n,r){return i==="Property"?"value":super.isValidLVal(i,n,r)}isAssignable(i,n){return i!=null&&this.isObjectProperty(i)?this.isAssignable(i.value,n):super.isAssignable(i,n)}toAssignable(i,n=!1){if(i!=null&&this.isObjectProperty(i)){let{key:r,value:s}=i;this.isPrivateName(r)&&this.classScope.usePrivateName(this.getPrivateNameSV(r),r.loc.start),this.toAssignable(s,n)}else super.toAssignable(i,n)}toAssignableObjectExpressionProp(i,n,r){i.type==="Property"&&(i.kind==="get"||i.kind==="set")?this.raise($.PatternHasAccessor,i.key):i.type==="Property"&&i.method?this.raise($.PatternHasMethod,i.key):super.toAssignableObjectExpressionProp(i,n,r)}finishCallExpression(i,n){let r=super.finishCallExpression(i,n);if(r.callee.type==="Import"){if(r.type="ImportExpression",r.source=r.arguments[0],this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")){var s,o;r.options=(s=r.arguments[1])!=null?s:null,r.attributes=(o=r.arguments[1])!=null?o:null}delete r.arguments,delete r.callee}return r}toReferencedArguments(i){i.type!=="ImportExpression"&&super.toReferencedArguments(i)}parseExport(i,n){let r=this.state.lastTokStartLoc,s=super.parseExport(i,n);switch(s.type){case"ExportAllDeclaration":s.exported=null;break;case"ExportNamedDeclaration":s.specifiers.length===1&&s.specifiers[0].type==="ExportNamespaceSpecifier"&&(s.type="ExportAllDeclaration",s.exported=s.specifiers[0].exported,delete s.specifiers);case"ExportDefaultDeclaration":{var o;let{declaration:a}=s;a?.type==="ClassDeclaration"&&((o=a.decorators)==null?void 0:o.length)>0&&a.start===s.start&&this.resetStartLocation(s,r)}break}return s}parseSubscript(i,n,r,s){let o=super.parseSubscript(i,n,r,s);if(s.optionalChainMember){if((o.type==="OptionalMemberExpression"||o.type==="OptionalCallExpression")&&(o.type=o.type.substring(8)),s.stop){let a=this.startNodeAtNode(o);return a.expression=o,this.finishNode(a,"ChainExpression")}}else(o.type==="MemberExpression"||o.type==="CallExpression")&&(o.optional=!1);return o}isOptionalMemberExpression(i){return i.type==="ChainExpression"?i.expression.type==="MemberExpression":super.isOptionalMemberExpression(i)}hasPropertyAsPrivateName(i){return i.type==="ChainExpression"&&(i=i.expression),super.hasPropertyAsPrivateName(i)}isObjectProperty(i){return i.type==="Property"&&i.kind==="init"&&!i.method}isObjectMethod(i){return i.type==="Property"&&(i.method||i.kind==="get"||i.kind==="set")}finishNodeAt(i,n,r){return Kh(super.finishNodeAt(i,n,r))}resetStartLocation(i,n){super.resetStartLocation(i,n),Kh(i)}resetEndLocation(i,n=this.state.lastTokEndLoc){super.resetEndLocation(i,n),Kh(i)}},Vl=class{constructor(e,i){this.token=void 0,this.preserveSpace=void 0,this.token=e,this.preserveSpace=!!i}},ci={brace:new Vl("{"),j_oTag:new Vl("<tag"),j_cTag:new Vl("</tag"),j_expr:new Vl("<tag>...</tag>",!0)};ci.template=new Vl("`",!0);var Dt=!0,be=!0,pk=!0,Hh=!0,gu=!0,P1e=!0,Yy=class{constructor(e,i={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=e,this.keyword=i.keyword,this.beforeExpr=!!i.beforeExpr,this.startsExpr=!!i.startsExpr,this.rightAssociative=!!i.rightAssociative,this.isLoop=!!i.isLoop,this.isAssign=!!i.isAssign,this.prefix=!!i.prefix,this.postfix=!!i.postfix,this.binop=i.binop!=null?i.binop:null,this.updateContext=null}},Lk=new Map;function Ot(t,e={}){e.keyword=t;let i=Je(t,e);return Lk.set(t,i),i}function ts(t,e){return Je(t,{beforeExpr:Dt,binop:e})}var $h=-1,ic=[],Uk=[],Gk=[],Ok=[],Kk=[],Hk=[];function Je(t,e={}){var i,n,r,s;return++$h,Uk.push(t),Gk.push((i=e.binop)!=null?i:-1),Ok.push((n=e.beforeExpr)!=null?n:!1),Kk.push((r=e.startsExpr)!=null?r:!1),Hk.push((s=e.prefix)!=null?s:!1),ic.push(new Yy(t,e)),$h}function Qt(t,e={}){var i,n,r,s;return++$h,Lk.set(t,$h),Uk.push(t),Gk.push((i=e.binop)!=null?i:-1),Ok.push((n=e.beforeExpr)!=null?n:!1),Kk.push((r=e.startsExpr)!=null?r:!1),Hk.push((s=e.prefix)!=null?s:!1),ic.push(new Yy("name",e)),$h}var _1e={bracketL:Je("[",{beforeExpr:Dt,startsExpr:be}),bracketHashL:Je("#[",{beforeExpr:Dt,startsExpr:be}),bracketBarL:Je("[|",{beforeExpr:Dt,startsExpr:be}),bracketR:Je("]"),bracketBarR:Je("|]"),braceL:Je("{",{beforeExpr:Dt,startsExpr:be}),braceBarL:Je("{|",{beforeExpr:Dt,startsExpr:be}),braceHashL:Je("#{",{beforeExpr:Dt,startsExpr:be}),braceR:Je("}"),braceBarR:Je("|}"),parenL:Je("(",{beforeExpr:Dt,startsExpr:be}),parenR:Je(")"),comma:Je(",",{beforeExpr:Dt}),semi:Je(";",{beforeExpr:Dt}),colon:Je(":",{beforeExpr:Dt}),doubleColon:Je("::",{beforeExpr:Dt}),dot:Je("."),question:Je("?",{beforeExpr:Dt}),questionDot:Je("?."),arrow:Je("=>",{beforeExpr:Dt}),template:Je("template"),ellipsis:Je("...",{beforeExpr:Dt}),backQuote:Je("`",{startsExpr:be}),dollarBraceL:Je("${",{beforeExpr:Dt,startsExpr:be}),templateTail:Je("...`",{startsExpr:be}),templateNonTail:Je("...${",{beforeExpr:Dt,startsExpr:be}),at:Je("@"),hash:Je("#",{startsExpr:be}),interpreterDirective:Je("#!..."),eq:Je("=",{beforeExpr:Dt,isAssign:Hh}),assign:Je("_=",{beforeExpr:Dt,isAssign:Hh}),slashAssign:Je("_=",{beforeExpr:Dt,isAssign:Hh}),xorAssign:Je("_=",{beforeExpr:Dt,isAssign:Hh}),moduloAssign:Je("_=",{beforeExpr:Dt,isAssign:Hh}),incDec:Je("++/--",{prefix:gu,postfix:P1e,startsExpr:be}),bang:Je("!",{beforeExpr:Dt,prefix:gu,startsExpr:be}),tilde:Je("~",{beforeExpr:Dt,prefix:gu,startsExpr:be}),doubleCaret:Je("^^",{startsExpr:be}),doubleAt:Je("@@",{startsExpr:be}),pipeline:ts("|>",0),nullishCoalescing:ts("??",1),logicalOR:ts("||",1),logicalAND:ts("&&",2),bitwiseOR:ts("|",3),bitwiseXOR:ts("^",4),bitwiseAND:ts("&",5),equality:ts("==/!=/===/!==",6),lt:ts("</>/<=/>=",7),gt:ts("</>/<=/>=",7),relational:ts("</>/<=/>=",7),bitShift:ts("<</>>/>>>",8),bitShiftL:ts("<</>>/>>>",8),bitShiftR:ts("<</>>/>>>",8),plusMin:Je("+/-",{beforeExpr:Dt,binop:9,prefix:gu,startsExpr:be}),modulo:Je("%",{binop:10,startsExpr:be}),star:Je("*",{binop:10}),slash:ts("/",10),exponent:Je("**",{beforeExpr:Dt,binop:11,rightAssociative:!0}),_in:Ot("in",{beforeExpr:Dt,binop:7}),_instanceof:Ot("instanceof",{beforeExpr:Dt,binop:7}),_break:Ot("break"),_case:Ot("case",{beforeExpr:Dt}),_catch:Ot("catch"),_continue:Ot("continue"),_debugger:Ot("debugger"),_default:Ot("default",{beforeExpr:Dt}),_else:Ot("else",{beforeExpr:Dt}),_finally:Ot("finally"),_function:Ot("function",{startsExpr:be}),_if:Ot("if"),_return:Ot("return",{beforeExpr:Dt}),_switch:Ot("switch"),_throw:Ot("throw",{beforeExpr:Dt,prefix:gu,startsExpr:be}),_try:Ot("try"),_var:Ot("var"),_const:Ot("const"),_with:Ot("with"),_new:Ot("new",{beforeExpr:Dt,startsExpr:be}),_this:Ot("this",{startsExpr:be}),_super:Ot("super",{startsExpr:be}),_class:Ot("class",{startsExpr:be}),_extends:Ot("extends",{beforeExpr:Dt}),_export:Ot("export"),_import:Ot("import",{startsExpr:be}),_null:Ot("null",{startsExpr:be}),_true:Ot("true",{startsExpr:be}),_false:Ot("false",{startsExpr:be}),_typeof:Ot("typeof",{beforeExpr:Dt,prefix:gu,startsExpr:be}),_void:Ot("void",{beforeExpr:Dt,prefix:gu,startsExpr:be}),_delete:Ot("delete",{beforeExpr:Dt,prefix:gu,startsExpr:be}),_do:Ot("do",{isLoop:pk,beforeExpr:Dt}),_for:Ot("for",{isLoop:pk}),_while:Ot("while",{isLoop:pk}),_as:Qt("as",{startsExpr:be}),_assert:Qt("assert",{startsExpr:be}),_async:Qt("async",{startsExpr:be}),_await:Qt("await",{startsExpr:be}),_defer:Qt("defer",{startsExpr:be}),_from:Qt("from",{startsExpr:be}),_get:Qt("get",{startsExpr:be}),_let:Qt("let",{startsExpr:be}),_meta:Qt("meta",{startsExpr:be}),_of:Qt("of",{startsExpr:be}),_sent:Qt("sent",{startsExpr:be}),_set:Qt("set",{startsExpr:be}),_source:Qt("source",{startsExpr:be}),_static:Qt("static",{startsExpr:be}),_using:Qt("using",{startsExpr:be}),_yield:Qt("yield",{startsExpr:be}),_asserts:Qt("asserts",{startsExpr:be}),_checks:Qt("checks",{startsExpr:be}),_exports:Qt("exports",{startsExpr:be}),_global:Qt("global",{startsExpr:be}),_implements:Qt("implements",{startsExpr:be}),_intrinsic:Qt("intrinsic",{startsExpr:be}),_infer:Qt("infer",{startsExpr:be}),_is:Qt("is",{startsExpr:be}),_mixins:Qt("mixins",{startsExpr:be}),_proto:Qt("proto",{startsExpr:be}),_require:Qt("require",{startsExpr:be}),_satisfies:Qt("satisfies",{startsExpr:be}),_keyof:Qt("keyof",{startsExpr:be}),_readonly:Qt("readonly",{startsExpr:be}),_unique:Qt("unique",{startsExpr:be}),_abstract:Qt("abstract",{startsExpr:be}),_declare:Qt("declare",{startsExpr:be}),_enum:Qt("enum",{startsExpr:be}),_module:Qt("module",{startsExpr:be}),_namespace:Qt("namespace",{startsExpr:be}),_interface:Qt("interface",{startsExpr:be}),_type:Qt("type",{startsExpr:be}),_opaque:Qt("opaque",{startsExpr:be}),name:Je("name",{startsExpr:be}),string:Je("string",{startsExpr:be}),num:Je("num",{startsExpr:be}),bigint:Je("bigint",{startsExpr:be}),decimal:Je("decimal",{startsExpr:be}),regexp:Je("regexp",{startsExpr:be}),privateName:Je("#name",{startsExpr:be}),eof:Je("eof"),jsxName:Je("jsxName"),jsxText:Je("jsxText",{beforeExpr:!0}),jsxTagStart:Je("jsxTagStart",{startsExpr:!0}),jsxTagEnd:Je("jsxTagEnd"),placeholder:Je("%%",{startsExpr:!0})};function Zt(t){return t>=93&&t<=132}function L1e(t){return t<=92}function la(t){return t>=58&&t<=132}function n$(t){return t>=58&&t<=136}function U1e(t){return Ok[t]}function Ck(t){return Kk[t]}function G1e(t){return t>=29&&t<=33}function Y5(t){return t>=129&&t<=131}function O1e(t){return t>=90&&t<=92}function Jk(t){return t>=58&&t<=92}function K1e(t){return t>=39&&t<=59}function H1e(t){return t===34}function J1e(t){return Hk[t]}function j1e(t){return t>=121&&t<=123}function Y1e(t){return t>=124&&t<=130}function mu(t){return Uk[t]}function Jy(t){return Gk[t]}function $1e(t){return t===57}function $y(t){return t>=24&&t<=25}function tc(t){return ic[t]}ic[8].updateContext=t=>{t.pop()},ic[5].updateContext=ic[7].updateContext=ic[23].updateContext=t=>{t.push(ci.brace)},ic[22].updateContext=t=>{t[t.length-1]===ci.template?t.pop():t.push(ci.template)},ic[142].updateContext=t=>{t.push(ci.j_expr,ci.j_oTag)};var jk="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",r$="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",q1e=new RegExp("["+jk+"]"),z1e=new RegExp("["+jk+r$+"]");jk=r$=null;var s$=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],V1e=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function Ik(t,e){let i=65536;for(let n=0,r=e.length;n<r;n+=2){if(i+=e[n],i>t)return!1;if(i+=e[n+1],i>=t)return!0}return!1}function nc(t){return t<65?t===36:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&q1e.test(String.fromCharCode(t)):Ik(t,s$)}function ad(t){return t<48?t===36:t<58?!0:t<65?!1:t<=90?!0:t<97?t===95:t<=122?!0:t<=65535?t>=170&&z1e.test(String.fromCharCode(t)):Ik(t,s$)||Ik(t,V1e)}var Yk={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},W1e=new Set(Yk.keyword),Z1e=new Set(Yk.strict),X1e=new Set(Yk.strictBind);function o$(t,e){return e&&t==="await"||t==="enum"}function a$(t,e){return o$(t,e)||Z1e.has(t)}function A$(t){return X1e.has(t)}function c$(t,e){return a$(t,e)||A$(t)}function eNe(t){return W1e.has(t)}function tNe(t,e,i){return t===64&&e===64&&nc(i)}var iNe=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function nNe(t){return iNe.has(t)}var qh=class{constructor(e){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=e}},zh=class{constructor(e,i){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=e,this.inModule=i}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let e=this.currentThisScopeFlags();return(e&64)>0&&(e&2)===0}get inStaticBlock(){for(let e=this.scopeStack.length-1;;e--){let{flags:i}=this.scopeStack[e];if(i&128)return!0;if(i&451)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(e){return new qh(e)}enter(e){this.scopeStack.push(this.createScope(e))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(e){return!!(e.flags&130||!this.parser.inModule&&e.flags&1)}declareName(e,i,n){let r=this.currentScope();if(i&8||i&16){this.checkRedeclarationInScope(r,e,i,n);let s=r.names.get(e)||0;i&16?s=s|4:(r.firstLexicalName||(r.firstLexicalName=e),s=s|2),r.names.set(e,s),i&8&&this.maybeExportDefined(r,e)}else if(i&4)for(let s=this.scopeStack.length-1;s>=0&&(r=this.scopeStack[s],this.checkRedeclarationInScope(r,e,i,n),r.names.set(e,(r.names.get(e)||0)|1),this.maybeExportDefined(r,e),!(r.flags&387));--s);this.parser.inModule&&r.flags&1&&this.undefinedExports.delete(e)}maybeExportDefined(e,i){this.parser.inModule&&e.flags&1&&this.undefinedExports.delete(i)}checkRedeclarationInScope(e,i,n,r){this.isRedeclaredInScope(e,i,n)&&this.parser.raise($.VarRedeclaration,r,{identifierName:i})}isRedeclaredInScope(e,i,n){if(!(n&1))return!1;if(n&8)return e.names.has(i);let r=e.names.get(i);return n&16?(r&2)>0||!this.treatFunctionsAsVarInScope(e)&&(r&1)>0:(r&2)>0&&!(e.flags&8&&e.firstLexicalName===i)||!this.treatFunctionsAsVarInScope(e)&&(r&4)>0}checkLocalExport(e){let{name:i}=e;this.scopeStack[0].names.has(i)||this.undefinedExports.set(i,e.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:i}=this.scopeStack[e];if(i&387)return i}}currentThisScopeFlags(){for(let e=this.scopeStack.length-1;;e--){let{flags:i}=this.scopeStack[e];if(i&451&&!(i&4))return i}}},Ek=class extends qh{constructor(...e){super(...e),this.declareFunctions=new Set}},Bk=class extends zh{createScope(e){return new Ek(e)}declareName(e,i,n){let r=this.currentScope();if(i&2048){this.checkRedeclarationInScope(r,e,i,n),this.maybeExportDefined(r,e),r.declareFunctions.add(e);return}super.declareName(e,i,n)}isRedeclaredInScope(e,i,n){if(super.isRedeclaredInScope(e,i,n))return!0;if(n&2048&&!e.declareFunctions.has(i)){let r=e.names.get(i);return(r&4)>0||(r&2)>0}return!1}checkLocalExport(e){this.scopeStack[0].declareFunctions.has(e.name)||super.checkLocalExport(e)}},yk=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(e){if(typeof e=="string")return this.plugins.has(e);{let[i,n]=e;if(!this.hasPlugin(i))return!1;let r=this.plugins.get(i);for(let s of Object.keys(n))if(r?.[s]!==n[s])return!1;return!0}}getPluginOption(e,i){var n;return(n=this.plugins.get(e))==null?void 0:n[i]}};function u$(t,e){t.trailingComments===void 0?t.trailingComments=e:t.trailingComments.unshift(...e)}function rNe(t,e){t.leadingComments===void 0?t.leadingComments=e:t.leadingComments.unshift(...e)}function Vh(t,e){t.innerComments===void 0?t.innerComments=e:t.innerComments.unshift(...e)}function Jh(t,e,i){let n=null,r=e.length;for(;n===null&&r>0;)n=e[--r];n===null||n.start>i.start?Vh(t,i.comments):u$(n,i.comments)}var Qk=class extends yk{addComment(e){this.filename&&(e.loc.filename=this.filename);let{commentsLen:i}=this.state;this.comments.length!==i&&(this.comments.length=i),this.comments.push(e),this.state.commentsLen++}processComment(e){let{commentStack:i}=this.state,n=i.length;if(n===0)return;let r=n-1,s=i[r];s.start===e.end&&(s.leadingNode=e,r--);let{start:o}=e;for(;r>=0;r--){let a=i[r],A=a.end;if(A>o)a.containingNode=e,this.finalizeComment(a),i.splice(r,1);else{A===o&&(a.trailingNode=e);break}}}finalizeComment(e){let{comments:i}=e;if(e.leadingNode!==null||e.trailingNode!==null)e.leadingNode!==null&&u$(e.leadingNode,i),e.trailingNode!==null&&rNe(e.trailingNode,i);else{let{containingNode:n,start:r}=e;if(this.input.charCodeAt(r-1)===44)switch(n.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":Jh(n,n.properties,e);break;case"CallExpression":case"OptionalCallExpression":Jh(n,n.arguments,e);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":Jh(n,n.params,e);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":Jh(n,n.elements,e);break;case"ExportNamedDeclaration":case"ImportDeclaration":Jh(n,n.specifiers,e);break;default:Vh(n,i)}else Vh(n,i)}}finalizeRemainingComments(){let{commentStack:e}=this.state;for(let i=e.length-1;i>=0;i--)this.finalizeComment(e[i]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(e){let{commentStack:i}=this.state,{length:n}=i;if(n===0)return;let r=i[n-1];r.leadingNode===e&&(r.leadingNode=null)}resetPreviousIdentifierLeadingComments(e){let{commentStack:i}=this.state,{length:n}=i;n!==0&&(i[n-1].trailingNode===e?i[n-1].trailingNode=null:n>=2&&i[n-2].trailingNode===e&&(i[n-2].trailingNode=null))}takeSurroundingComments(e,i,n){let{commentStack:r}=this.state,s=r.length;if(s===0)return;let o=s-1;for(;o>=0;o--){let a=r[o],A=a.end;if(a.start===n)a.leadingNode=e;else if(A===i)a.trailingNode=e;else if(A<i)break}}},sNe=/\r\n|[\r\n\u2028\u2029]/,Oy=new RegExp(sNe.source,"g");function Ad(t){switch(t){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function $5(t,e,i){for(let n=e;n<i;n++)if(Ad(t.charCodeAt(n)))return!0;return!1}var gk=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,dk=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function oNe(t){switch(t){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var Dk=class t{constructor(){this.flags=1024,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=139,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[ci.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(e){e?this.flags|=1:this.flags&=-2}init({strictMode:e,sourceType:i,startLine:n,startColumn:r}){this.strict=e===!1?!1:e===!0?!0:i==="module",this.curLine=n,this.lineStart=-r,this.startLoc=this.endLoc=new aA(n,r,0)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(e){e?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(e){e?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(e){e?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(e){e?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(e){e?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(e){e?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(e){e?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(e){e?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(e){e?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(e){e?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(e){e?this.flags|=2048:this.flags&=-2049}get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(e){e?this.flags|=4096:this.flags&=-4097}curPosition(){return new aA(this.curLine,this.pos-this.lineStart,this.pos)}clone(){let e=new t;return e.flags=this.flags,e.curLine=this.curLine,e.lineStart=this.lineStart,e.startLoc=this.startLoc,e.endLoc=this.endLoc,e.errors=this.errors.slice(),e.potentialArrowAt=this.potentialArrowAt,e.noArrowAt=this.noArrowAt.slice(),e.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),e.topicContext=this.topicContext,e.labels=this.labels.slice(),e.commentsLen=this.commentsLen,e.commentStack=this.commentStack.slice(),e.pos=this.pos,e.type=this.type,e.value=this.value,e.start=this.start,e.end=this.end,e.lastTokEndLoc=this.lastTokEndLoc,e.lastTokStartLoc=this.lastTokStartLoc,e.context=this.context.slice(),e.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,e.strictErrors=this.strictErrors,e.tokensLength=this.tokensLength,e}},aNe=function(e){return e>=48&&e<=57},q5={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},Ky={bin:t=>t===48||t===49,oct:t=>t>=48&&t<=55,dec:t=>t>=48&&t<=57,hex:t=>t>=48&&t<=57||t>=65&&t<=70||t>=97&&t<=102};function z5(t,e,i,n,r,s){let o=i,a=n,A=r,c="",u=null,l=i,{length:d}=e;for(;;){if(i>=d){s.unterminated(o,a,A),c+=e.slice(l,i);break}let p=e.charCodeAt(i);if(ANe(t,p,e,i)){c+=e.slice(l,i);break}if(p===92){c+=e.slice(l,i);let g=cNe(e,i,n,r,t==="template",s);g.ch===null&&!u?u={pos:i,lineStart:n,curLine:r}:c+=g.ch,{pos:i,lineStart:n,curLine:r}=g,l=i}else p===8232||p===8233?(++i,++r,n=i):p===10||p===13?t==="template"?(c+=e.slice(l,i)+`
|
|
1113
1113
|
`,++i,p===13&&e.charCodeAt(i)===10&&++i,++r,l=n=i):s.unterminated(o,a,A):++i}return{pos:i,str:c,firstInvalidLoc:u,lineStart:n,curLine:r,containsInvalid:!!u}}function ANe(t,e,i,n){return t==="template"?e===96||e===36&&i.charCodeAt(n+1)===123:e===(t==="double"?34:39)}function cNe(t,e,i,n,r,s){let o=!r;e++;let a=c=>({pos:e,ch:c,lineStart:i,curLine:n}),A=t.charCodeAt(e++);switch(A){case 110:return a(`
|
|
@@ -1276,7 +1276,7 @@ Restarting server after Builder Devtools update...
|
|
|
1276
1276
|
<h3>How's Devtools working for you?</h3>
|
|
1277
1277
|
<p>We'd love your feedback!</p>
|
|
1278
1278
|
</div>
|
|
1279
|
-
\`,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",s=>{s.preventDefault(),s.stopPropagation(),Ee(t,!1),window.open(Nr(),"builder")}),t.getElementById("components-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation();let u=t.querySelector(".nav-cmp-list .section-content");u.scrollTop=0,oe(t,"nav-cmp-list"),si(t)}),t.getElementById("settings-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),oe(t,"nav-settings")}),t.getElementById("add-page-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),Ee(t,!1),window.open(je(),"builder")}),t.getElementById("import-from-figma").addEventListener("click",s=>{s.preventDefault(),s.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(),Ft(e.checked)}),e.checked=it(),Ft(e.checked)}var At=class extends HTMLElement{constructor(){super()}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>\`,ai(e),ui(e),oi(e),ri(e),ti(e),ci(e),this.setAttribute("aria-hidden","true"),e.getElementById("version").textContent="v1.35.0"}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)}
|
|
1279
|
+
\`,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",s=>{s.preventDefault(),s.stopPropagation(),Ee(t,!1),window.open(Nr(),"builder")}),t.getElementById("components-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation();let u=t.querySelector(".nav-cmp-list .section-content");u.scrollTop=0,oe(t,"nav-cmp-list"),si(t)}),t.getElementById("settings-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),oe(t,"nav-settings")}),t.getElementById("add-page-link").addEventListener("click",s=>{s.preventDefault(),s.stopPropagation(),Ee(t,!1),window.open(je(),"builder")}),t.getElementById("import-from-figma").addEventListener("click",s=>{s.preventDefault(),s.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(),Ft(e.checked)}),e.checked=it(),Ft(e.checked)}var At=class extends HTMLElement{constructor(){super()}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>\`,ai(e),ui(e),oi(e),ri(e),ti(e),ci(e),this.setAttribute("aria-hidden","true"),e.getElementById("version").textContent="v1.35.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)}
|
|
1280
1280
|
</style>\`,Dt=class extends HTMLElement{constructor(){super()}connectedCallback(){let e=this.attachShadow({mode:"open"});e.innerHTML=lo+\`<main>
|
|
1281
1281
|
<aside>
|
|
1282
1282
|
<div class="logo"></div>
|
|
@@ -1315,7 +1315,7 @@ Restarting server after Builder Devtools update...
|
|
|
1315
1315
|
</nav>
|
|
1316
1316
|
</section>
|
|
1317
1317
|
</main>
|
|
1318
|
-
\`,po();let r=new URL(Vr,ot);r.searchParams.set(Mr,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 qr()).isValid||fo()},fo=()=>{customElements.get("builder-dev-tools-overview")||customElements.define("builder-dev-tools-overview",Dt);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",st),customElements.get("builder-dev-tools-menu")||customElements.define("builder-dev-tools-menu",At);let t=document.querySelector("builder-dev-tools-menu");t||(t=document.createElement("builder-dev-tools-menu"),t.setAttribute("data-version","1.35.
|
|
1318
|
+
\`,po();let r=new URL(Vr,ot);r.searchParams.set(Mr,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 qr()).isValid||fo()},fo=()=>{customElements.get("builder-dev-tools-overview")||customElements.define("builder-dev-tools-overview",Dt);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",st),customElements.get("builder-dev-tools-menu")||customElements.define("builder-dev-tools-menu",At);let t=document.querySelector("builder-dev-tools-menu");t||(t=document.createElement("builder-dev-tools-menu"),t.setAttribute("data-version","1.35.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.35.1"),mo());})();`)}async function Nee(t){return Tee(t,`<!doctype html>
|
|
1319
1319
|
<html lang="en" dir="ltr">
|
|
1320
1320
|
<head>
|
|
1321
1321
|
<meta charset="utf-8" />
|
|
@@ -1939,7 +1939,7 @@ ${l}`):i.push(l))}catch(a){this.#e.Sentry?.captureException(a,{tags:{operation:"
|
|
|
1939
1939
|
`;else{let r=this.gitEnabledFolder;r&&(n=`Notice that all the relative paths, are inside "${r.name}/", remember that when using Read/Write/Edit tools:
|
|
1940
1940
|
`)}return{files:e,diff:nm(`${n}${i.join(`
|
|
1941
1941
|
`)}`,1e4)}}catch(e){this.#e.Sentry?.captureException(e,{tags:{operation:"codegen-git"}});return}}#Ai(){return["status","--porcelain=v1","-z","--ignore-submodules=dirty"]}async#rt(e){try{let i=this.#Ai();return(await this.git(i,{cwd:e})).trim().length===0}catch{return!1}}async#ci(e){try{return await this.git(["diff","--cached","--quiet"],{cwd:e}),!1}catch{return!0}}async#ui(e,i){let n=i.applyResults,r=[];for(let s of n)try{if(s.action==="delete"){let o=await this.deleteFile(s.filePath);o&&r.push(o)}else if(s.content){let o=await this.writeFile(s.filePath,s.content);o&&(this.#Ft.add(o),r.push(o))}}catch(o){e.Sentry?.captureException(o)}return r}#R(){return this.#C?.folders?.length===1||!this.#C?.folders?.length}resolveWorkspacePath(e,i){if(typeof e!="string")throw new TypeError(`resolveWorkspacePath: 'filePath' must be a string, received ${typeof e}: ${Ho(e)}`);return tre({filePath:e,forceWorkspace:i,workspace:this.#C,workingDirectory:this.#f,sys:this.#e,canCollapseWorkspace:this.#R()})}#$(){try{let e=this.getSessionContext();return kA(e.turns)?.user.principals}catch{return}}absolutePathToWorkspaceUrl(e){return ire({absolutePath:e,workspace:this.#C,workingDirectory:this.#f,sys:this.#e,canCollapseWorkspace:this.#R()})}async launchEditor(e={}){let i,n,r;return e.filePath?(i=this.resolveWorkspacePath(e.filePath,!1).resolvedPath,n=e.line??void 0,r=e.column??void 0):i=this.primaryGitPath,await this.#e.exists(i)?await this.#e.launchEditor({filePath:i,line:n,column:r}):{success:!1,message:`File not found: ${i}`}}async readFile(e,i){if(typeof e!="string")throw new TypeError(`readFile: 'filePath' must be a string, received ${typeof e}: ${Ho(e)}`);if(!i){let n=Da(e,"read",this.#A?.accessControl,this.#$());if(!n.allowed)throw new Ft(`ACL denied: ${n.message}`)}try{if(e==="AGENTS.md"&&this.#C?.agentsMD)return this.#C.agentsMD;let{resolvedPath:n}=this.resolveWorkspacePath(e,!!i),r=await this.#e.readFile(n);return r!==null?r:({resolvedPath:n}=this.resolveWorkspacePath(e,!0),await this.#e.readFile(n))}catch(n){this.#e.Sentry?.captureException(n,{extra:{filePath:e}})}return null}async readFileWithChecksum(e){let i=await this.readFile(e.filePath,e.skipAclCheck);if(i===null)return{content:null,checksum:null};let n=(0,F8.createHash)("md5").update(i).digest("hex");return e.previousChecksum&&n===e.previousChecksum?{content:null,checksum:n,notModified:!0}:{content:i,checksum:n}}async readBinaryFile(e){let i=Da(e,"read",this.#A?.accessControl,this.#$());if(!i.allowed)throw new Ft(`ACL denied: ${i.message}`);try{let{resolvedPath:n}=this.resolveWorkspacePath(e,!1),r=await this.#e.readBinaryFile(n);if(r===null&&({resolvedPath:n}=this.resolveWorkspacePath(e,!0),r=await this.#e.readBinaryFile(n)),r)return Buffer.from(r).toString("base64")}catch(n){this.#e.Sentry?.captureException(n,{extra:{filePath:e}})}return null}async#st(e){let i;e?i=this.#u.find(s=>s.path===e)?.branchName:i=this.gitEnabledFolder?.branchName;let n=i?i.startsWith("origin/")?i:`origin/${i}`:await this.getDefaultBranch(e);if(!n)throw new Error("Could not find parent branch");return n}async#li(e){let i=this.#Be.get(e);if(i&&Date.now()-i.timestamp<t.#Ct)return i.promise;let n=(async()=>{let r=await this.#st(e);try{return(await this.git(["merge-base",r,"HEAD"],{cwd:e})).trim()}catch{return r}})().catch(r=>{throw this.#Be.get(e)?.promise===n&&this.#Be.delete(e),r});return this.#Be.set(e,{promise:n,timestamp:Date.now()}),n}async getFileAtRef(e,i,n){if(!this.#m)return null;try{let r,s;if(n)r=n,e.startsWith(r)?(s=e.substring(r.length),s.startsWith("/")&&(s=s.substring(1))):s=e;else{let{resolvedPath:u,workspaceFolder:l}=this.resolveWorkspacePath(e,!0);r=l?.path||this.#f,s=e,r&&u.startsWith(r)&&(s=u.substring(r.length),s.startsWith("/")&&(s=s.substring(1)))}let o=i??await this.#li(r),a=`${r}:${o}:${s}`,A=this.#ye.get(a);if(A&&Date.now()-A.timestamp<t.#Ct)return A.promise;let c=this.git(["show",`${o}:${s}`],{cwd:r}).catch(u=>{let l=u instanceof Error?u.message:String(u);return l.includes("does not exist")||l.includes("exists on disk")||this.#ye.get(a)?.promise===c&&this.#ye.delete(a),null});return this.#ye.set(a,{promise:c,timestamp:Date.now()}),c}catch{return null}}async getSingleFileDiff(e){if(e===null||typeof e!="string"&&typeof e!="object")throw new TypeError(`getSingleFileDiff: 'args' must be a string or object, received ${e===null?"null":typeof e}: ${Ho(e)}`);let i=typeof e=="string"?{path:e}:e;if(typeof i.path!="string")throw new TypeError(`getSingleFileDiff: 'path' must be a string, received ${typeof i.path}: ${Ho(i.path)}`);let n=typeof e=="object"?e.previousChecksum:void 0,{repoPath:r,relativePath:s}=this.#It(i.path,i.folderName),o=this.#e.join(r,s),[a,A]=await Promise.all([this.#e.readFile(o).catch(()=>null),this.getFileAtRef(s,void 0,r)]),c=A===null?"":`${A}`,u=a===null?"":`${a}`,l=(0,F8.createHash)("md5").update(`${c}\0${u}`).digest("hex"),d=A===null&&a!==null?"create":A!==null&&a===null?"delete":"update";return n===l?{oldContent:null,newContent:null,action:d,checksum:l,notModified:!0}:{oldContent:A,newContent:a,action:d,checksum:l}}async discardFileChanges(e){let i=typeof e=="string"?{filePath:e}:e;if(!this.#m)return{success:!1,error:"Git not configured"};try{let{repoPath:n,relativePath:r}=this.#It(i.filePath,i.folderName),s=this.#e.join(n,r),o=await this.#st(n),a;try{a=(await this.git(["merge-base",o,"HEAD"],{cwd:n})).trim()}catch{a=o}let A=await this.getFileAtRef(r,a,n),u=(await this.git(["--no-pager","diff",`${a}`,"HEAD","--",r],{cwd:n})).trim().length>0,d=(await this.git(["status","--porcelain","--",r],{cwd:n})).trim().length>0;if(!u&&!d)return{success:!0};if(A===null){try{await this.#e.exists(s)&&await this.#e.unlink(s)}catch{}let m=this.#e.dirname(r);if(m&&m!==".")try{await this.git(["clean","-fd",m],{cwd:n})}catch{}}else try{await this.git(["restore",`--source=${a}`,"--",r],{cwd:n})}catch(m){return{success:!1,error:`Failed to restore file: ${m}`}}await this.git(["add","--",r],{cwd:n});let p=`Discard changes to ${r}`;await this.git(["commit","--no-gpg-sign","-m",p],{cwd:n});let g=(await this.git(["rev-parse","HEAD"],{cwd:n})).trim();try{await this.#v()}catch(m){this.#e.Sentry?.captureException(m,{tags:{operation:"discard-file-changes",step:"emit-git-status"}})}return{success:!0,commitHash:g}}catch(n){try{await this.#v()}catch(r){this.#e.Sentry?.captureException(r,{tags:{operation:"discard-file-changes",step:"emit-git-status"}})}return{success:!1,error:n instanceof Error?n.message:String(n)}}}async revertDiscard(e){let{commitHash:i,folderName:n}=e;if(!this.#m)return{success:!1,error:"Git not configured"};try{let r=this.#Qe(n);await this.git(["revert","--no-edit",i],{cwd:r});try{await this.#v()}catch(s){this.#e.Sentry?.captureException(s,{tags:{operation:"revert-discard",step:"emit-git-status"}})}return{success:!0}}catch(r){return{success:!1,error:r instanceof Error?r.message:String(r)}}}async fileExists(e){if(typeof e!="string")throw new TypeError(`fileExists: 'filePath' must be a string, received ${typeof e}: ${Ho(e)}`);let i=n=>n.startsWith(this.#f)?this.#e.relative(this.#f,n):n;try{if(e==="AGENTS.md"&&this.#C?.agentsMD)return{absolutePath:e,recommendedPath:void 0,workspaceFolder:void 0,virtual:!0};let{resolvedPath:n,workspaceFolder:r}=this.resolveWorkspacePath(e,!1);return await this.#e.exists(n)?{absolutePath:n,recommendedPath:void 0,workspaceFolder:r,virtual:!1}:r?{absolutePath:void 0,recommendedPath:void 0,workspaceFolder:r,virtual:!1}:({resolvedPath:n,workspaceFolder:r}=this.resolveWorkspacePath(e,!0),await this.#e.exists(n)?{absolutePath:n,recommendedPath:i(n),workspaceFolder:r,virtual:!1}:{absolutePath:void 0,recommendedPath:i(n),workspaceFolder:r,virtual:!1})}catch(n){this.#e.Sentry?.captureException(n,{extra:{filePath:e}})}return{absolutePath:void 0,recommendedPath:void 0,workspaceFolder:void 0,virtual:!1}}readFileSync(e,i){if(!i){let n=Da(e,"read",this.#A?.accessControl,this.#$());if(!n.allowed)throw new Ft(`ACL denied: ${n.message}`)}try{if(e==="AGENTS.md"&&this.#C?.agentsMD)return this.#C.agentsMD;let{resolvedPath:n}=this.resolveWorkspacePath(e,!1);if(this.#e.existsSync(n))return this.#e.readFileSync(n);if({resolvedPath:n}=this.resolveWorkspacePath(e,!0),this.#e.existsSync(n))return this.#e.readFileSync(n)}catch(n){this.#e.Sentry?.captureException(n,{extra:{filePath:e}})}return null}async writeFile(e,i,n){if(typeof e!="string")throw new TypeError(`writeFile: 'filePath' must be a string, received ${typeof e}: ${Ho(e)}`);if(!n){let r=Da(e,"write",this.#A?.accessControl,this.#$());if(!r.allowed)throw new Ft(`ACL denied: ${r.message}`)}try{let{resolvedPath:r}=this.resolveWorkspacePath(e,!!n);return await this.#e.writeFile(r,i),r}catch(r){return this.#e.Sentry?.captureException(r,{extra:{filePath:e}}),null}}async listDir(e){if(typeof e!="string")throw new TypeError(`listDir: 'dirPath' must be a string, received ${typeof e}: ${Ho(e)}`);let i=Da(e,"list",this.#A?.accessControl,this.#$());if(!i.allowed)throw new Ft(`ACL denied: ${i.message}`);try{let{resolvedPath:n,workspaceFolder:r}=this.resolveWorkspacePath(e,!1);if(!nre({resolvedPath:n,workingDirectory:this.#f,workspace:this.#C,sys:this.#e}))throw new Ft("Access denied: path outside working directory");if(!await this.#e.exists(n))return[];let A=(await(0,hge.readdir)(n,{withFileTypes:!0})).map(c=>c.name+(c.isDirectory()?"/":""));if(this.#R()){let c=A.map(u=>eo(this.#e.join(e,u)));return rm({files:c,policy:this.#A?.accessControl,getDotFiles:!0})}if(r&&this.#C?.folders){let c=r.name||r.path,u=e;e.startsWith(c+"/")?u=e.substring(c.length+1):e===c&&(u="");let l=A.map(d=>{let p=u?this.#e.join(u,d):d,g=eo(p);return`${c}/${g}`});return rm({files:l,policy:this.#A?.accessControl,getDotFiles:!0})}return rm({files:A,policy:this.#A?.accessControl,getDotFiles:!0})}catch(n){return this.#e.Sentry?.captureException(n,{extra:{dirPath:e}}),[]}}async listCustomInstructions(){return(await this.#De()).filter(i=>!i.hideUI).map(i=>({id:i.id,name:i.name,description:i.description,type:i.type,isSkill:i.isSkill??i.filePath?.toLowerCase().includes("/skills/")??!1,disableModelInvocation:i.disableModelInvocation,userInvocable:i.userInvocable}))}async stat(e,i){if(typeof e!="string")throw new TypeError(`stat: 'filePath' must be a string, received ${typeof e}: ${Ho(e)}`);if(!i){let n=Da(e,"read",this.#A?.accessControl,this.#$());if(!n.allowed)throw new Ft(`ACL denied: ${n.message}`)}try{let{resolvedPath:n}=this.resolveWorkspacePath(e,!1);if(await this.#e.exists(n))return await this.#e.stat(n)}catch(n){this.#e.Sentry?.captureException(n,{extra:{filePath:e}})}return null}async deleteFile(e,i){if(typeof e!="string")throw new TypeError(`deleteFile: 'filePath' must be a string, received ${typeof e}: ${Ho(e)}`);if(!i){let n=Da(e,"write",this.#A?.accessControl,this.#$());if(!n.allowed)throw new Ft(`ACL denied: ${n.message}`)}try{let{resolvedPath:n}=this.resolveWorkspacePath(e,!!i);return await this.#e.exists(n)?(await this.#e.unlink(n),n):null}catch(n){return this.#e.Sentry?.captureException(n,{extra:{filePath:e}}),null}}getLinesStats(){let e=this.#i?.turns.reduce((i,n)=>{let r=n.applyResults.reduce((s,o)=>({added:s.added+o.addedLines,removed:s.removed+o.removedLines}),{added:0,removed:0});return{added:i.added+r.added,removed:i.removed+r.removed}},{added:0,removed:0})??{added:0,removed:0};return{...e,net:e.added-e.removed}}async getDiffFromRemote({numberOfContextLines:e,includeFilesOnly:i,filePaths:n,folderName:r}){if(!this.#m)return[];let s=this.#Qe(r);try{let o=(await this.git(["branch","--show-current"],{cwd:s})).trim();if(!o)throw new Error("Could not determine current branch");let a=!1;try{a=(await this.git(["remote"],{cwd:s})).includes("origin")}catch(d){throw this.#t.warn("No git remotes configured, cannot get diff from remote"),d}if(!a){this.#t.warn("Origin remote not found, trying to get diff from main branch");try{return await this.getDiffFromParentBranch({numberOfContextLines:e,includeFilesOnly:i,filePaths:n,folderName:r})}catch(d){throw this.#t.warn("Failed to get diff from main branch:",d),d}}let A=!1,c;try{let d=`origin/${o}`;if(A=(await this.git(["ls-remote","--heads","origin",o],{cwd:s})).trim().length>0,A)c=d;else return await this.getDiffFromParentBranch({numberOfContextLines:e,includeFilesOnly:i,filePaths:n,folderName:r})}catch(d){throw this.#t.warn("Failed to check remote branches:",d),d}let u=["diff",c];i?u.push("--raw","--numstat","--no-renames"):e!==void 0&&u.push(`-U${e}`),u.push("--"),n&&n.length>0&&u.push(...n);let l=await this.git(u,{cwd:s});return!l||l.trim()===""?[]:B8(l,i)}catch(o){throw this.#t.error("getDiffFromRemote error:",o),o}}async getDiff({mode:e="remote-parent-branch",numberOfContextLines:i,includeFilesOnly:n,filePaths:r,folderName:s}){if(!this.#m)return{state:"error",error:new Error("Git not configured")};try{switch(e){case"remote-parent-branch":return{state:"success",diff:await this.getDiffFromParentBranch({numberOfContextLines:i,includeFilesOnly:n,filePaths:r,folderName:s})};case"remote-current-branch":return{state:"success",diff:await this.getDiffFromRemote({numberOfContextLines:i,includeFilesOnly:n,filePaths:r,folderName:s})};default:throw new Error(`Unknown diff mode: ${e}`)}}catch(o){return this.#t.error(`getDiff error for mode '${e}':`,o),this.#e.Sentry?.captureException(o),{state:"error",error:o instanceof Error?o:new Error(String(o))}}}async getDefaultBranch(e){let i=e??"__primary__",n=this.#Pe.get(i);if(n)return n;let r=this.#pi(e).catch(s=>{throw this.#Pe.get(i)===r&&this.#Pe.delete(i),s});return this.#Pe.set(i,r),r}async#pi(e){try{let n=(await this.git(["remote","show","origin"],{cwd:e})).match(/HEAD branch: (.+)/);if(n)return`origin/${n[1].trim()}`}catch{}try{if((await this.git(["ls-remote","--heads","origin","main"],{cwd:e})).trim().length>0)return"origin/main"}catch{}try{if((await this.git(["ls-remote","--heads","origin","master"],{cwd:e})).trim().length>0)return"origin/master"}catch{}try{let n=(await this.git(["ls-remote","--heads","origin"],{cwd:e})).trim().split(`
|
|
1942
|
-
`).map(r=>r.split(" ")[1]).filter(r=>r&&!r.includes("HEAD"));if(n.length>0)return`origin/${n[0].replace("refs/heads/","")}`}catch{}throw new Error("Could not determine default branch. No remote branches found.")}async getDiffFromParentBranch({numberOfContextLines:e,includeFilesOnly:i,filePaths:n,folderName:r}){let s=this.#Qe(r);try{if(!(await this.git(["branch","--show-current"],{cwd:s})).trim())throw new Error("Could not determine current branch");let a=await this.#st(s),c=["--no-pager","diff",(await this.git(["merge-base",a,"HEAD"],{cwd:s})).trim()];i?c.push("--raw","--numstat","--no-renames"):e!==void 0&&c.push(`-U${e}`),c.push("--"),n&&n.length>0&&c.push(...n);let u=await this.git(c,{cwd:s});return!u||u.trim()===""?[]:B8(u,i)}catch(o){throw this.#t.error("getDiffFromParentBranch error:",o),o}}},Uv=(t,e)=>e.filter(i=>!t?.disabledTools?.includes(i))});function Uge(t){return t instanceof Error?t.message:String(t)}function RE(t,e){if(J8(e).test(t))return!0;if(e.toLowerCase().includes("localhost")){let n=e.replace(/localhost/gi,"127.0.0.1");if(J8(n).test(t))return!0}else if(e.includes("127.0.0.1")){let n=e.replace(/127\.0\.0\.1/g,"localhost");if(J8(n).test(t))return!0}return!1}function J8(t){return t=String(t).replace(/\./g,"\\.").replace(/\?/g,".").replace(/\*/g,".*"),new RegExp(`^${t}$`,"i")}var jv,Gge=T(()=>{"use strict";f();jv=class{logger;currentOrigin=null;currentOriginPattern=null;currentDestination=null;currentOriginHost=null;constructor(e){this.logger=e}getCurrentOrigin(){return this.currentOrigin}getCurrentDestination(){return this.currentDestination}clearMapping(){this.currentOrigin=null,this.currentOriginPattern=null,this.currentDestination=null,this.currentOriginHost=null,this.logger?.info("[UrlMapper] Mapping cleared")}setMapping(e,i){if(e.includes("*")||!e.startsWith("https://")&&!e.startsWith("http://")){this.currentOriginPattern=e,this.currentOriginHost=null,this.currentOrigin=e;try{let r=new URL(i);this.currentDestination=`${r.protocol}//${r.hostname}${r.port?":"+r.port:""}`}catch(r){this.logger?.error(`[UrlMapper] Failed to parse destination URL: ${Uge(r)}`),this.currentDestination=i}this.logger?.info(`[UrlMapper] Set mapping (PATTERN): ${e} \u2192 ${i}`)}else{this.currentOriginPattern=null;try{let r=new URL(e),s=r.protocol==="https:"?"443":"80",o=r.port||s;this.currentOriginHost=`${r.hostname}:${o}`,this.currentOrigin=`${r.protocol}//${r.hostname}${r.port?":"+r.port:""}`;let a=new URL(i);this.currentDestination=`${a.protocol}//${a.hostname}${a.port?":"+a.port:""}`,this.logger?.info(`[UrlMapper] Set mapping (EXACT): ${e} \u2192 ${i}`),this.logger?.debug(`[UrlMapper] Normalized origin: ${this.currentOrigin} (host: ${this.currentOriginHost})`),this.logger?.debug(`[UrlMapper] Normalized destination: ${this.currentDestination}`)}catch(r){this.logger?.error(`[UrlMapper] Failed to parse origin/destination URL: ${Uge(r)}`),this.currentOriginHost=null,this.currentOrigin=e,this.currentDestination=i}}}getUpstream(e){if(!this.currentDestination)return null;if(this.currentOriginPattern){let i=this.currentOriginPattern.replace(/^https?:\/\//g,""),n=i.split(":")[0],r=e.split(":")[0];return RE(r,n)?(this.logger?.debug(`[UrlMapper] PATTERN MATCH FOUND getUpstream(${e}) matched hostname: ${n} -> ${this.currentDestination}`),this.currentDestination):RE(e,i)?(this.logger?.debug(`[UrlMapper] PATTERN MATCH FOUND getUpstream(${e}) matched host: ${i} -> ${this.currentDestination}`),this.currentDestination):(this.logger?.debug(`[UrlMapper] NO PATTERN MATCH getUpstream(${e}) !== ${i}`),null)}return this.currentOriginHost?RE(e,this.currentOriginHost)?(this.logger?.debug(`[UrlMapper] MATCH FOUND getUpstream(${e}) -> ${this.currentDestination}`),this.currentDestination):RE(`${e}:80`,this.currentOriginHost)?(this.logger?.debug(`[UrlMapper] MATCH FOUND getUpstream(${e}) (HTTP) -> ${this.currentDestination}`),this.currentDestination):RE(`${e}:443`,this.currentOriginHost)?(this.logger?.debug(`[UrlMapper] MATCH FOUND getUpstream(${e}) (TLS) -> ${this.currentDestination}`),this.currentDestination):(this.logger?.debug(`[UrlMapper] NO MATCH getUpstream(${e}) !== ${this.currentOriginHost}`),null):null}buildUpstreamUrl(e,i="/"){let n=i||"/";n=n.replace(/^\/+/,"/");let r=new URL(n,e),s=new URL(e);return s.pathname=r.pathname.replace(/\/+/g,"/"),s.search=r.search,s.hash=r.hash,s}mapUrl(e){let i=e.host,n=this.getUpstream(i);if(!n)return e;let r=e.pathname+e.search+e.hash;return this.buildUpstreamUrl(n,r)}isOriginHttps(e=443){let i=this.currentOrigin?.split("://")[0];return i==="http"||i==="https"?i==="https":e===443}}});var Oge,pWe,j8,Kge=T(()=>{"use strict";f();Oge=X(require("node:os"),1);zt();pWe=ke("Priority"),j8=(t,e)=>{try{Oge.default.setPriority(t,e)}catch(i){pWe.error(`Failed to set priority to ${e}: ${i}`)}}});function Hge(t){q8=t}async function lf(){if(q8){if(Y8){$8=!0;return}Y8=!0;try{await q8()}finally{Y8=!1,$8&&($8=!1,lf())}}}var q8,Y8,$8,z8=T(()=>{"use strict";f();Y8=!1,$8=!1});async function*gWe(t){for await(let e of Gd(t.body))if(e.length)try{yield JSON.parse(e)}catch{}}function dWe(t){t.toolContext.session.sendMessage({userPrompt:Ete({originChannelId:t.
|
|
1942
|
+
`).map(r=>r.split(" ")[1]).filter(r=>r&&!r.includes("HEAD"));if(n.length>0)return`origin/${n[0].replace("refs/heads/","")}`}catch{}throw new Error("Could not determine default branch. No remote branches found.")}async getDiffFromParentBranch({numberOfContextLines:e,includeFilesOnly:i,filePaths:n,folderName:r}){let s=this.#Qe(r);try{if(!(await this.git(["branch","--show-current"],{cwd:s})).trim())throw new Error("Could not determine current branch");let a=await this.#st(s),c=["--no-pager","diff",(await this.git(["merge-base",a,"HEAD"],{cwd:s})).trim()];i?c.push("--raw","--numstat","--no-renames"):e!==void 0&&c.push(`-U${e}`),c.push("--"),n&&n.length>0&&c.push(...n);let u=await this.git(c,{cwd:s});return!u||u.trim()===""?[]:B8(u,i)}catch(o){throw this.#t.error("getDiffFromParentBranch error:",o),o}}},Uv=(t,e)=>e.filter(i=>!t?.disabledTools?.includes(i))});function Uge(t){return t instanceof Error?t.message:String(t)}function RE(t,e){if(J8(e).test(t))return!0;if(e.toLowerCase().includes("localhost")){let n=e.replace(/localhost/gi,"127.0.0.1");if(J8(n).test(t))return!0}else if(e.includes("127.0.0.1")){let n=e.replace(/127\.0\.0\.1/g,"localhost");if(J8(n).test(t))return!0}return!1}function J8(t){return t=String(t).replace(/\./g,"\\.").replace(/\?/g,".").replace(/\*/g,".*"),new RegExp(`^${t}$`,"i")}var jv,Gge=T(()=>{"use strict";f();jv=class{logger;currentOrigin=null;currentOriginPattern=null;currentDestination=null;currentOriginHost=null;constructor(e){this.logger=e}getCurrentOrigin(){return this.currentOrigin}getCurrentDestination(){return this.currentDestination}clearMapping(){this.currentOrigin=null,this.currentOriginPattern=null,this.currentDestination=null,this.currentOriginHost=null,this.logger?.info("[UrlMapper] Mapping cleared")}setMapping(e,i){if(e.includes("*")||!e.startsWith("https://")&&!e.startsWith("http://")){this.currentOriginPattern=e,this.currentOriginHost=null,this.currentOrigin=e;try{let r=new URL(i);this.currentDestination=`${r.protocol}//${r.hostname}${r.port?":"+r.port:""}`}catch(r){this.logger?.error(`[UrlMapper] Failed to parse destination URL: ${Uge(r)}`),this.currentDestination=i}this.logger?.info(`[UrlMapper] Set mapping (PATTERN): ${e} \u2192 ${i}`)}else{this.currentOriginPattern=null;try{let r=new URL(e),s=r.protocol==="https:"?"443":"80",o=r.port||s;this.currentOriginHost=`${r.hostname}:${o}`,this.currentOrigin=`${r.protocol}//${r.hostname}${r.port?":"+r.port:""}`;let a=new URL(i);this.currentDestination=`${a.protocol}//${a.hostname}${a.port?":"+a.port:""}`,this.logger?.info(`[UrlMapper] Set mapping (EXACT): ${e} \u2192 ${i}`),this.logger?.debug(`[UrlMapper] Normalized origin: ${this.currentOrigin} (host: ${this.currentOriginHost})`),this.logger?.debug(`[UrlMapper] Normalized destination: ${this.currentDestination}`)}catch(r){this.logger?.error(`[UrlMapper] Failed to parse origin/destination URL: ${Uge(r)}`),this.currentOriginHost=null,this.currentOrigin=e,this.currentDestination=i}}}getUpstream(e){if(!this.currentDestination)return null;if(this.currentOriginPattern){let i=this.currentOriginPattern.replace(/^https?:\/\//g,""),n=i.split(":")[0],r=e.split(":")[0];return RE(r,n)?(this.logger?.debug(`[UrlMapper] PATTERN MATCH FOUND getUpstream(${e}) matched hostname: ${n} -> ${this.currentDestination}`),this.currentDestination):RE(e,i)?(this.logger?.debug(`[UrlMapper] PATTERN MATCH FOUND getUpstream(${e}) matched host: ${i} -> ${this.currentDestination}`),this.currentDestination):(this.logger?.debug(`[UrlMapper] NO PATTERN MATCH getUpstream(${e}) !== ${i}`),null)}return this.currentOriginHost?RE(e,this.currentOriginHost)?(this.logger?.debug(`[UrlMapper] MATCH FOUND getUpstream(${e}) -> ${this.currentDestination}`),this.currentDestination):RE(`${e}:80`,this.currentOriginHost)?(this.logger?.debug(`[UrlMapper] MATCH FOUND getUpstream(${e}) (HTTP) -> ${this.currentDestination}`),this.currentDestination):RE(`${e}:443`,this.currentOriginHost)?(this.logger?.debug(`[UrlMapper] MATCH FOUND getUpstream(${e}) (TLS) -> ${this.currentDestination}`),this.currentDestination):(this.logger?.debug(`[UrlMapper] NO MATCH getUpstream(${e}) !== ${this.currentOriginHost}`),null):null}buildUpstreamUrl(e,i="/"){let n=i||"/";n=n.replace(/^\/+/,"/");let r=new URL(n,e),s=new URL(e);return s.pathname=r.pathname.replace(/\/+/g,"/"),s.search=r.search,s.hash=r.hash,s}mapUrl(e){let i=e.host,n=this.getUpstream(i);if(!n)return e;let r=e.pathname+e.search+e.hash;return this.buildUpstreamUrl(n,r)}isOriginHttps(e=443){let i=this.currentOrigin?.split("://")[0];return i==="http"||i==="https"?i==="https":e===443}}});var Oge,pWe,j8,Kge=T(()=>{"use strict";f();Oge=X(require("node:os"),1);zt();pWe=ke("Priority"),j8=(t,e)=>{try{Oge.default.setPriority(t,e)}catch(i){pWe.error(`Failed to set priority to ${e}: ${i}`)}}});function Hge(t){q8=t}async function lf(){if(q8){if(Y8){$8=!0;return}Y8=!0;try{await q8()}finally{Y8=!1,$8&&($8=!1,lf())}}}var q8,Y8,$8,z8=T(()=>{"use strict";f();Y8=!1,$8=!1});async function*gWe(t){for await(let e of Gd(t.body))if(e.length)try{yield JSON.parse(e)}catch{}}function dWe(t){t.toolContext.session.sendMessage({userPrompt:Ete({originChannelId:t.originChannelId,senderDisplayName:t.senderDisplayName,projectId:t.projectId,branchName:t.branchName,content:t.content}),category:"background-subagent",user:{...t.toolContext.user,role:"agent",source:"builder.io"},queue:!0})}function mWe(t,e){return e??("builderUserId"in t.user?t.user.builderUserId:t.user.source==="builder.io"?t.user.userId:t.credentials.userId)}function Jge(t,e){let{credentials:i}=t,{project_id:n,message:r}=e,s,o=new Promise(p=>s=p),a=!1,A,c,u,l;return(async()=>{let p=new URL("/projects/branch",Ue);p.searchParams.set("apiKey",i.builderPublicKey);let g=mWe(t,e.builder_user_id);g&&p.searchParams.set("userId",g);let m=e.model&&e.model!=="auto"?Em(e.model):void 0,h=e.attachment_urls?.map(y=>({type:"url",value:y})),C=e.origin_channel_id??t.user.channelId,I={projectId:n,userMessage:{userPrompt:r,user:{...t.user,channelId:C,role:"user"},...e.session_mode&&{sessionMode:e.session_mode},...m&&{modelOverride:m},...h?.length&&{attachments:h}},hidden:e.hidden,actor:"org-agent",metadata:{origin_channel_id:C}},B=await Ne(p,{method:"POST",headers:{"Content-Type":"application/json",Authorization:`Bearer ${i.builderPrivateKey}`},body:JSON.stringify(I)},t.debug);if(!B.ok){let y=await B.text();throw new Error(`Failed to spawn branch: ${y}`)}let E;for await(let y of gWe(B))if(y.type==="branch-created")E=y;else if(y.type==="error")E=y;else if(!a&&y.type==="setting-up-container")a=!0,c||(c=y.projectName),u||(u=y.branchFriendlyName??void 0),l||(l=y.branchName),s(y);else{let Q=gte(y);Q&&(A=Q.plan)}if(!E)throw new Error("Stream ended unexpectedly");return E})().then(p=>{a||s(null);let g=c??p.projectName??n,m=u??l??p.branchName,h=`https://builder.io/app/projects/${n}/${l??p.branchName}`;if(p.type!=="error"){let C=`Branch \`${m}\` in \`${g}\` completed.
|
|
1943
1943
|
- Url: \`${h}\`
|
|
1944
1944
|
|
|
1945
1945
|
==================
|
|
@@ -1947,11 +1947,11 @@ ${p.message}
|
|
|
1947
1947
|
==================`;A&&(C+=`
|
|
1948
1948
|
|
|
1949
1949
|
**Plan Content (partially):**
|
|
1950
|
-
${CA(A,80)}`),dWe({toolContext:t,projectId:n,branchName:p.branchName,senderDisplayName:`BRANCH AGENT (${g}/${m})`,
|
|
1950
|
+
${CA(A,80)}`),dWe({toolContext:t,projectId:n,branchName:p.branchName,senderDisplayName:`BRANCH AGENT (${g}/${m})`,originChannelId:e.origin_channel_id,content:C}),lf()}},()=>{a||s(null)}),o.then(p=>{if(!p)return{isError:!0,toolResult:`Failed to spawn branch for project ${c??n}.`,title:"SpawnBranch"};let g=`https://builder.io/app/projects/${n}/${p.branchName}`,m=p.projectName??n;return{isError:!1,structuredResult:{branchName:p.branchName,branchFriendlyName:p.branchFriendlyName,branchCategory:p.branchCategory,projectId:n,projectName:p.projectName,url:g},toolResult:`Branch \`${p.branchFriendlyName??p.branchName}\` in \`${m}\` is being created.
|
|
1951
1951
|
- Url: \`${g}\`
|
|
1952
1952
|
|
|
1953
1953
|
The branch is still starting up. You will receive a report when it's ready.
|
|
1954
|
-
To send follow-up messages or additional context to this branch, use the tool SendMessage(
|
|
1954
|
+
To send follow-up messages or additional context to this branch, use the tool SendMessage(channel_id="builder/branch/${n}/${p.branchName}").`,title:"SpawnBranch (async)"}})}var jge=T(()=>{"use strict";f();Zs();j0();Hi();tn();xD();z8();JC()});async function Cge(t,e,i,n){let r=[],s=o=>{let a=o instanceof Promise?o:Promise.resolve(o);r.push(a),a.then(A=>{n({type:"tool_result",result:{...A,content:A.structured_result?JSON.stringify(A.structured_result):A.content}})}).catch(A=>{Yv.captureException(new Error("Unhandled tool call error",{cause:A}))})};for(let o of e){let a=Sn([o.abortController.signal,t.signal]),A=i?.find(c=>c.tool_use_id===o.id);if(A){r.push(A);continue}if(a.aborted)s({type:"tool_result",tool_use_id:o.id,tool_name:o.name,tool_input:JSON.stringify(o.input),content:"Aborted by the user. So the task could not be completed.",is_error:!0,title:"Aborted by the user."});else try{let c=await fWe(o,{...t,signal:a});s(typeof c=="function"?c().then(u=>Yge(o,u)):Yge(o,c))}catch(c){s({type:"tool_result",tool_name:o.name,tool_input:JSON.stringify(o.input),tool_use_id:o.id,content:c instanceof Error?c.message:"Unknown error",is_error:!0,title:`Error calling tool "${o.name}"`})}}return Promise.all(r)}function Yge(t,e){return{type:"tool_result",tool_use_id:t.id,tool_name:t.name,tool_input:JSON.stringify(t.input),content:e.toolResult,is_error:e.isError,title:e.title,structured_result:e.structuredResult}}function fWe(t,e){if(t.name.startsWith("mcp__")&&e.localMCPManager)return hWe(e,t);switch(t.name){case"view_path":return QWe(e,t.input);case"Write":case"Edit":case"MultiEdit":return CWe(e,t.input);case"Read":return DWe(e,t.input);case"LS":return xWe(e,t.input);case"glob_search":case"Glob":return $ge(e,t.input);case"grep_search":case"Grep":return _We(e,t.input);case"dev_server_control":case"DevServerControl":return EWe(e,t.input);case"DevServerLogs":return BWe(e);case"DevServerRestart":return yWe(e,t.input);case"bash":case"Bash":return OWe(e,t.input,t.id);case"powershell":case"PowerShell":return KWe(e,t.input,t.id);case"AskUserQuestion":return NWe(e,t);case"Agent":return HWe(e,t.input,t.id);case"Revert":return IWe(e,t.input);case"EnterPlanMode":return vWe(e,t.input,t.id);case"ExitPlanMode":return bWe(e,t.input);case"RecordFrame":return kWe(e,t.input);case"GetScreenshot":return TWe(e,t);case"NavigatePreview":return RWe(e,t);case"ProposeConfig":return wWe(e,t.input);case"UpdateSetupValue":return SWe(e,t.input);case"Exit":return FWe(e,t.input);case"ReportUIIssue":return JWe(e,t.input);case"ReportTestOutcome":return jWe(e,t.input);case"ReportIssue":return YWe(e,t.input);case"VerifySetupCommand":return $We(e,t.input);case"VerifyDevCommand":return qWe(e,t.input);case"VerifyDevServer":return zWe(e,t.input);case"VerifyValidateCommand":return VWe(e,t.input);case"VerifyRuntimeDependency":return WWe(e,t.input);case"ProposeEnvVariable":return ZWe(e,t.input,t);case"SetEnvVariable":return XWe(e,t.input);case"SpawnBranch":return Jge(e,t.input);case"RunningAgents":return nZe(e);default:throw new Error("Unknown tool call. Do not use this tool anymore.")}}async function hWe({localMCPManager:t,signal:e},i){if(!t)return{isError:!0,toolResult:`Local MCP tool "${i.name}" not available`,title:"Local MCP Tool Error"};try{let n=await t.callTool(i.name,i.input,e);return{isError:n.isError??!1,toolResult:n.content,title:`Local MCP: ${i.name}`}}catch(n){return{isError:!0,toolResult:n instanceof Error?n.message:"Unknown error",title:`Local MCP Tool Error: ${i.name}`}}}async function CWe({fileExists:t,evaluateAccess:e},i){let{file_path:n}=i;if(!n)return{isError:!0,toolResult:"No file path provided"};let r=await t(n);if(r.recommendedPath)return r.recommendedPath===n?{isError:!0,toolResult:`File not found: ${JSON.stringify(n)}.`}:{isError:!0,toolResult:`File not found: ${JSON.stringify(n)}, use ${JSON.stringify(r.recommendedPath)} instead.`};let s=e(n,"write");return s.allowed?{isError:!0,toolResult:`ACL policy violation. You do not have permission to write to ${n}.`}:{isError:!0,toolResult:`ACL policy violation when writing to ${n}.
|
|
1955
1955
|
${s.message}`}}async function IWe(t,{checkpoint_id:e}){if(!e)return{isError:!0,toolResult:"No checkpoint_id provided",title:"Revert failed"};let i=await t.restore({location:"before",predicate:n=>n?.completionId.startsWith(e)??!1,revert:!0,dryRun:!1,forceReplay:!1});return i.undone?{isError:!1,toolResult:`Reverted to checkpoint ${e} successfully`,title:"Reverted to checkpoint"}:{isError:!0,toolResult:`Failed to revert to checkpoint ${e}. ${i.message}`,title:"Revert failed"}}async function EWe({devServerOrchestrator:t,patchFusionConfig:e,emitter:i,signal:n,user:r},{restart:s,get_logs:o,set_proxy_port:a,set_dev_command:A,set_and_run_setup_command:c,set_env_variable:u}){let l="You do not have permission to change settings (e.g. environment variables, dev server command, etc). Do not try to workaround this limitation. Communicate to the user that this task is not possible.";if(!t)return{isError:!0,toolResult:"Seems like the 'DevServerControl' tool is not available. Please suggest the user to either restore or try to fix the issue themself.",title:"Getting debug output"};let d=!1,p="";if(u){if(r.permissions&&!r.permissions.includes("modifyProjectSettings"))return{isError:!0,toolResult:l,title:"Changing project setting not allowed"};let[I,B]=u;return t.setEnvVariable(I,B),e({envVariables:{[I]:B}}),{isError:!1,toolResult:`Environment variable "${u[0]}" was set to "${u[1]}".
|
|
1956
1956
|
|
|
1957
1957
|
If this environment variable is expected to be used by the "set_dev_command", a restart is required to take effect.`,title:"Environment variable set"}}if(c){if(r.permissions&&!r.permissions.includes("modifyProjectSettings"))return{isError:!0,toolResult:l,title:"Changing project setting not allowed"};let I=await t.setSetupCommand({setupCommand:c,forceRestart:!0,signal:n}),B=I?.code!==0,E=I?.output??"Setup command was not updated";return B?E+=` exited with code ${I?.code}`:e({setupCommand:c}),{isError:B,toolResult:E,title:"Setup command output"}}if(A){if(r.permissions&&!r.permissions.includes("modifyProjectSettings"))return{isError:!0,toolResult:l,title:"Changing project setting not allowed"};await t.setDevCommand(A,!1,n)&&(e({devCommand:A}),d=!0)}if(t.state==="unset")return{isError:!0,title:"Dev server is not configured",toolResult:"Dev server process is unset, please call the tool again with a set_dev_command to provide a valid dev server command."};if(a){if(t.proxyServerSelection==="port-env"||t.proxyServerSelection==="auto-detected")return{isError:!0,toolResult:"You cannot change the proxy port when auto-detection is enabled. The port is not the issue. It will be detected automatically.",title:"Changing proxy port not allowed"};if(r.permissions&&!r.permissions.includes("modifyProjectSettings"))return{isError:!0,toolResult:l,title:"Changing project setting not allowed"};let I=t.proxyPort;await t.setPort(a),e({serverUrl:t.proxyTarget}),p+=`Dev server proxy port was set to "${a}" successfully! (previous port: "${I}")
|
|
@@ -2056,9 +2056,9 @@ exited with code ${w}`,m&&(m.state==="install-failed"||m.state==="install-aborte
|
|
|
2056
2056
|
|
|
2057
2057
|
<system-reminder>
|
|
2058
2058
|
The setup command is in "${m.state}" state. This command failure might be related to the setup command not having completed successfully.
|
|
2059
|
-
</system-reminder>`)),E({isError:U,toolResult:k.trim(),title:`${p} command "${e}"`})})});return UWe(e)&&!B.isError&&!o.aborted&&await u?.restart(o),B}async function OWe(t,e,i){if(!e.command)return{isError:!0,toolResult:"Please provide a 'command' parameter when calling the 'bash' tool, make sure it's a valid bash command.",title:"Bash error"};let n=6e5,r=Math.min(e.timeout??n,n);return qge(t,e.command,r,i,"bash")}async function KWe(t,e,i){if(!e.command)return{isError:!0,toolResult:"Please provide a 'command' parameter when calling the 'powershell' tool, make sure it's a valid powershell command.",title:"PowerShell error"};let n=6e5,r=Math.min(e.timeout??n,n);return qge(t,e.command,r,i,"powershell")}function HWe(t,{prompt:e,subagent_type:i,resume:n,origin_channel_id:r,attachmentUrls:s},o){return t.asyncSubAgents&&!n?async()=>(t.session.spawnNamedAgent(i,{prompt:e,user:t.user,signal:t.signal,maxCompletions:80,sessionId:o,attachmentUrls:s}).then(A=>{let c=A.success?A.response:`Agent failed: ${A.response}`;t.session.sendMessage({userPrompt:hM({originChannelId:r,agentId:o,content:c}),category:"background-subagent",user:{...t.user,role:"agent",source:"builder.io"}})},A=>{t.session.sendMessage({userPrompt:hM({originChannelId:r,agentId:o,content:`Agent failed: ${A instanceof Error?A.message:String(A)}`}),category:"background-subagent",user:{role:"agent",source:"builder.io"}})}),{isError:!1,toolResult:`Agent spawned in background. subAgentId: ${o}
|
|
2059
|
+
</system-reminder>`)),E({isError:U,toolResult:k.trim(),title:`${p} command "${e}"`})})});return UWe(e)&&!B.isError&&!o.aborted&&await u?.restart(o),B}async function OWe(t,e,i){if(!e.command)return{isError:!0,toolResult:"Please provide a 'command' parameter when calling the 'bash' tool, make sure it's a valid bash command.",title:"Bash error"};let n=6e5,r=Math.min(e.timeout??n,n);return qge(t,e.command,r,i,"bash")}async function KWe(t,e,i){if(!e.command)return{isError:!0,toolResult:"Please provide a 'command' parameter when calling the 'powershell' tool, make sure it's a valid powershell command.",title:"PowerShell error"};let n=6e5,r=Math.min(e.timeout??n,n);return qge(t,e.command,r,i,"powershell")}function HWe(t,{prompt:e,subagent_type:i,resume:n,origin_channel_id:r,attachmentUrls:s},o){return t.asyncSubAgents&&!n?async()=>(t.session.spawnNamedAgent(i,{prompt:e,user:t.user,signal:t.signal,maxCompletions:80,sessionId:o,attachmentUrls:s}).then(A=>{let c=A.success?A.response:`Agent failed: ${A.response}`;t.session.sendMessage({userPrompt:hM({originChannelId:r,agentId:o,content:c}),category:"background-subagent",user:{...t.user,role:"agent",source:"builder.io"}})},A=>{t.session.sendMessage({userPrompt:hM({originChannelId:r,agentId:o,content:`Agent failed: ${A instanceof Error?A.message:String(A)}`}),category:"background-subagent",user:{role:"agent",source:"builder.io"}})}),{isError:!1,toolResult:`Agent spawned in the background. subAgentId: ${o}
|
|
2060
2060
|
|
|
2061
|
-
The agent is now running asynchronously. You will receive its result as a new message when it completes. You can continue processing other messages in the meantime or become idle.`,title:"Agent Spawned"}):async()=>{try{let a=await t.session.spawnNamedAgent(i,{prompt:e,user:t.user,signal:t.signal,maxCompletions:80,sessionId:o,resume:n,attachmentUrls:s});if(!a.success)return{isError:!0,toolResult:a.response,title:"Agent Task Failed"};let A=a.response.trim();return A?(A+=`
|
|
2061
|
+
The ${i} agent is now running asynchronously. You will receive its result as a new message when it completes. You can continue processing other messages in the meantime or become idle. You can just stop and/or acknowledge to the user that the work is happening, then stop until receiving the <worker_report> message.`,title:"Agent Spawned"}):async()=>{try{let a=await t.session.spawnNamedAgent(i,{prompt:e,user:t.user,signal:t.signal,maxCompletions:80,sessionId:o,resume:n,attachmentUrls:s});if(!a.success)return{isError:!0,toolResult:a.response,title:"Agent Task Failed"};let A=a.response.trim();return A?(A+=`
|
|
2062
2062
|
|
|
2063
2063
|
agentId: ${a.sessionId} (for resuming to continue this agent's work if needed)`,{isError:!1,toolResult:A,title:"Agent Task Completed"}):{isError:!0,toolResult:`The Agent output timed out, this could be because the subagent is going in loops without completing the task.
|
|
2064
2064
|
agentId: ${a.sessionId} (for resuming to continue this agent's work if needed).`,title:"Agent Task Completed"}}catch(a){return{isError:!0,toolResult:`Agent task failed: ${a instanceof Error?a.message:String(a)}`,title:"Agent Task Failed"}}}}async function JWe(t,{title:e,description:i,debugInfo:n}){return!e||!i?{isError:!0,toolResult:"ReportUIIssue requires title (string) and description (string)",title:"Invalid ReportUIIssue Input"}:{isError:!1,toolResult:`UI issue reported: ${e}`,title:"UI Issue Reported",structuredResult:{ui_issue:{title:e,description:i,debugInfo:n}}}}async function jWe(t,{outcome:e,summary:i}){return!e||!i?{isError:!0,toolResult:"ReportTestOutcome requires outcome (string) and summary (string)",title:"Invalid ReportTestOutcome Input"}:{isError:!1,toolResult:`Test outcome recorded: ${e}`,title:"Test Outcome Recorded"}}async function YWe(t,{file_path:e,line:i,start_line:n,title:r,severity:s,body:o}){if(!e||!i||!r||!s||!o)return{isError:!0,toolResult:"ReportIssue requires file_path (string), line (number), title (string), severity ('high' | 'medium' | 'low'), and body (string)",title:"Invalid ReportIssue Input"};if(s!=="high"&&s!=="medium"&&s!=="low")return{isError:!0,toolResult:"severity must be 'high', 'medium', or 'low'",title:"Invalid Severity"};let a=n?`${n}-${i}`:`${i}`;return{isError:!1,toolResult:`\u2705 Issue reported: ${r} (${s})
|
|
@@ -2128,7 +2128,11 @@ Status: ${u.status}`});if(d){let B=t.session.getMetadata()._setup_validation_ela
|
|
|
2128
2128
|
Description: ${r.description}
|
|
2129
2129
|
Running for: ${s}s`});return{isError:!1,toolResult:`Running sub-agents (${e.length}):
|
|
2130
2130
|
${n.join(`
|
|
2131
|
-
`)}
|
|
2131
|
+
`)}
|
|
2132
|
+
|
|
2133
|
+
<system-reminder>
|
|
2134
|
+
You will automatically receive a message when a sub-agent completes its task, no need to poll RunningAgents.
|
|
2135
|
+
</system-reminder>`}}function rZe(t,e,i,n){let r=t.source==="builder.io"?t.userId:"builderUserId"in t?t.builderUserId:void 0,s=t.userName&&t.userEmail?`${t.userName} <${t.userEmail}> ${r?`(builderUserId: ${r})`:""}`:t.userName||t.userEmail||t.userId;return`
|
|
2132
2136
|
And here's some extra context about the branch at hand:
|
|
2133
2137
|
- Project Id: ${e}
|
|
2134
2138
|
- Branch Name: ${n??i}
|
|
@@ -2730,7 +2734,7 @@ return fn.apply(this, arguments)
|
|
|
2730
2734
|
`)+`\r
|
|
2731
2735
|
\r
|
|
2732
2736
|
`+i)}function Ig(t,e,i,n,r,s){if(t.listenerCount("wsClientError")){let o=new Error(r);Error.captureStackTrace(o,Ig),t.emit("wsClientError",o,i,e)}else xB(i,n,r,s)}});var P0e=S((cii,M0e)=>{f();var EK=class{constructor(e,i,n){this.etaBufferLength=e||100,this.valueBuffer=[n],this.timeBuffer=[i],this.eta="0"}update(e,i,n){this.valueBuffer.push(i),this.timeBuffer.push(e),this.calculate(n-i)}getTime(){return this.eta}calculate(e){let i=this.valueBuffer.length,n=Math.min(this.etaBufferLength,i),r=this.valueBuffer[i-1]-this.valueBuffer[i-n],s=this.timeBuffer[i-1]-this.timeBuffer[i-n],o=r/s;this.valueBuffer=this.valueBuffer.slice(-this.etaBufferLength),this.timeBuffer=this.timeBuffer.slice(-this.etaBufferLength);let a=Math.ceil(e/o/1e3);isNaN(a)?this.eta="NULL":isFinite(a)?a>1e7?this.eta="INF":a<0?this.eta=0:this.eta=a:this.eta="INF"}};M0e.exports=EK});var yK=S((lii,_0e)=>{f();var Bg=require("readline"),BK=class{constructor(e){this.stream=e,this.linewrap=!0,this.dy=0}cursorSave(){this.stream.isTTY&&this.stream.write("\x1B7")}cursorRestore(){this.stream.isTTY&&this.stream.write("\x1B8")}cursor(e){this.stream.isTTY&&(e?this.stream.write("\x1B[?25h"):this.stream.write("\x1B[?25l"))}cursorTo(e=null,i=null){this.stream.isTTY&&Bg.cursorTo(this.stream,e,i)}cursorRelative(e=null,i=null){this.stream.isTTY&&(this.dy=this.dy+i,Bg.moveCursor(this.stream,e,i))}cursorRelativeReset(){this.stream.isTTY&&(Bg.moveCursor(this.stream,0,-this.dy),Bg.cursorTo(this.stream,0,null),this.dy=0)}clearRight(){this.stream.isTTY&&Bg.clearLine(this.stream,1)}clearLine(){this.stream.isTTY&&Bg.clearLine(this.stream,0)}clearBottom(){this.stream.isTTY&&Bg.clearScreenDown(this.stream)}newline(){this.stream.write(`
|
|
2733
|
-
`),this.dy++}write(e,i=!1){this.linewrap===!0&&i===!1?this.stream.write(e.substr(0,this.getWidth())):this.stream.write(e)}lineWrapping(e){this.stream.isTTY&&(this.linewrap=e,e?this.stream.write("\x1B[?7h"):this.stream.write("\x1B[?7l"))}isTTY(){return this.stream.isTTY===!0}getWidth(){return this.stream.columns||(this.stream.isTTY?80:200)}};_0e.exports=BK});var U0e=S((gii,L0e)=>{"use strict";f();L0e.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 O0e=S((mii,G0e)=>{"use strict";f();var Ipt=U0e();G0e.exports=t=>typeof t=="string"?t.replace(Ipt(),""):t});var H0e=S((hii,QK)=>{"use strict";f();var K0e=t=>Number.isNaN(t)?!1:t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141);QK.exports=K0e;QK.exports.default=K0e});var j0e=S((Iii,J0e)=>{"use strict";f();J0e.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var $0e=S((Bii,DK)=>{"use strict";f();var Ept=O0e(),Bpt=H0e(),ypt=j0e(),Y0e=t=>{if(typeof t!="string"||t.length===0||(t=Ept(t),t.length===0))return 0;t=t.replace(ypt()," ");let e=0;for(let i=0;i<t.length;i++){let n=t.codePointAt(i);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&i++,e+=Bpt(n)?2:1)}return e};DK.exports=Y0e;DK.exports.default=Y0e});var xK=S((Qii,q0e)=>{f();q0e.exports=function(e,i,n){if(i.autopadding!==!0)return e;function r(s,o){return(i.autopaddingChar+s).slice(-o)}switch(n){case"percentage":return r(e,3);default:return e}}});var vK=S((xii,z0e)=>{f();z0e.exports=function(e,i){let n=Math.round(e*i.barsize),r=i.barsize-n;return i.barCompleteString.substr(0,n)+i.barGlue+i.barIncompleteString.substr(0,r)}});var bK=S((bii,V0e)=>{f();V0e.exports=function(e,i,n){function r(o){return n?n*Math.round(o/n):o}function s(o){return(i.autopaddingChar+o).slice(-2)}return e>3600?s(Math.floor(e/3600))+"h"+s(r(e%3600/60))+"m":e>60?s(Math.floor(e/60))+"m"+s(r(e%60))+"s":e>10?s(r(e))+"s":s(e)+"s"}});var wK=S((Sii,W0e)=>{f();var Qpt=$0e(),Dpt=xK(),xpt=vK(),vpt=bK();W0e.exports=function(e,i,n){let r=e.format,s=e.formatTime||vpt,o=e.formatValue||Dpt,a=e.formatBar||xpt,A=Math.floor(i.progress*100)+"",c=i.stopTime||Date.now(),u=Math.round((c-i.startTime)/1e3),l=Object.assign({},n,{bar:a(i.progress,e),percentage:o(A,e,"percentage"),total:o(i.total,e,"total"),value:o(i.value,e,"value"),eta:o(i.eta,e,"eta"),eta_formatted:s(i.eta,e,5),duration:o(u,e,"duration"),duration_formatted:s(u,e,1)});r=r.replace(/\{(\w+)\}/g,function(g,m){return typeof l[m]<"u"?l[m]:g});let d=Math.max(0,i.maxWidth-Qpt(r)-2),p=Math.floor(d/2);switch(e.align){case"right":r=d>0?" ".repeat(d)+r:r;break;case"center":r=p>0?" ".repeat(p)+r:r;break;case"left":default:break}return r}});var Jw=S((kii,Z0e)=>{f();function Ei(t,e){return typeof t>"u"||t===null?e:t}Z0e.exports={parse:function(e,i){let n={},r=Object.assign({},i,e);return n.throttleTime=1e3/Ei(r.fps,10),n.stream=Ei(r.stream,process.stderr),n.terminal=Ei(r.terminal,null),n.clearOnComplete=Ei(r.clearOnComplete,!1),n.stopOnComplete=Ei(r.stopOnComplete,!1),n.barsize=Ei(r.barsize,40),n.align=Ei(r.align,"left"),n.hideCursor=Ei(r.hideCursor,!1),n.linewrap=Ei(r.linewrap,!1),n.barGlue=Ei(r.barGlue,""),n.barCompleteChar=Ei(r.barCompleteChar,"="),n.barIncompleteChar=Ei(r.barIncompleteChar,"-"),n.format=Ei(r.format,"progress [{bar}] {percentage}% | ETA: {eta}s | {value}/{total}"),n.formatTime=Ei(r.formatTime,null),n.formatValue=Ei(r.formatValue,null),n.formatBar=Ei(r.formatBar,null),n.etaBufferLength=Ei(r.etaBuffer,10),n.etaAsynchronousUpdate=Ei(r.etaAsynchronousUpdate,!1),n.progressCalculationRelative=Ei(r.progressCalculationRelative,!1),n.synchronousUpdate=Ei(r.synchronousUpdate,!0),n.noTTYOutput=Ei(r.noTTYOutput,!1),n.notTTYSchedule=Ei(r.notTTYSchedule,2e3),n.emptyOnZero=Ei(r.emptyOnZero,!1),n.forceRedraw=Ei(r.forceRedraw,!1),n.autopadding=Ei(r.autopadding,!1),n.gracefulExit=Ei(r.gracefulExit,!1),n},assignDerivedOptions:function(e){return e.barCompleteString=e.barCompleteChar.repeat(e.barsize+1),e.barIncompleteString=e.barIncompleteChar.repeat(e.barsize+1),e.autopaddingChar=e.autopadding?Ei(e.autopaddingChar," "):"",e}}});var SK=S((Tii,exe)=>{f();var X0e=P0e(),bpt=yK(),wpt=wK(),Spt=Jw(),Fpt=require("events");exe.exports=class extends Fpt{constructor(e){super(),this.options=Spt.assignDerivedOptions(e),this.terminal=this.options.terminal?this.options.terminal:new bpt(this.options.stream),this.value=0,this.startValue=0,this.total=100,this.lastDrawnString=null,this.startTime=null,this.stopTime=null,this.lastRedraw=Date.now(),this.eta=new X0e(this.options.etaBufferLength,0,0),this.payload={},this.isActive=!1,this.formatter=typeof this.options.format=="function"?this.options.format:wpt}render(e=!1){let i={progress:this.getProgress(),eta:this.eta.getTime(),startTime:this.startTime,stopTime:this.stopTime,total:this.total,value:this.value,maxWidth:this.terminal.getWidth()};this.options.etaAsynchronousUpdate&&this.updateETA();let n=this.formatter(this.options,i,this.payload);(e||this.options.forceRedraw||this.options.noTTYOutput&&!this.terminal.isTTY()||this.lastDrawnString!=n)&&(this.emit("redraw-pre"),this.terminal.cursorTo(0,null),this.terminal.write(n),this.terminal.clearRight(),this.lastDrawnString=n,this.lastRedraw=Date.now(),this.emit("redraw-post"))}start(e,i,n){this.value=i||0,this.total=typeof e<"u"&&e>=0?e:100,this.startValue=i||0,this.payload=n||{},this.startTime=Date.now(),this.stopTime=null,this.lastDrawnString="",this.eta=new X0e(this.options.etaBufferLength,this.startTime,this.value),this.isActive=!0,this.emit("start",e,i)}stop(){this.isActive=!1,this.stopTime=Date.now(),this.emit("stop",this.total,this.value)}update(e,i={}){typeof e=="number"&&(this.value=e,this.eta.update(Date.now(),e,this.total));let n=(typeof e=="object"?e:i)||{};this.emit("update",this.total,this.value);for(let r in n)this.payload[r]=n[r];this.value>=this.getTotal()&&this.options.stopOnComplete&&this.stop()}getProgress(){let e=this.value/this.total;return this.options.progressCalculationRelative&&(e=(this.value-this.startValue)/(this.total-this.startValue)),isNaN(e)&&(e=this.options&&this.options.emptyOnZero?0:1),e=Math.min(Math.max(e,0),1),e}increment(e=1,i={}){typeof e=="object"?this.update(this.value+1,e):this.update(this.value+e,i)}getTotal(){return this.total}setTotal(e){typeof e<"u"&&e>=0&&(this.total=e)}updateETA(){this.eta.update(Date.now(),this.value,this.total)}}});var ixe=S((_ii,txe)=>{f();var kpt=SK(),Rpt=Jw();txe.exports=class extends kpt{constructor(e,i){super(Rpt.parse(e,i)),this.timer=null,this.options.noTTYOutput&&this.terminal.isTTY()===!1&&(this.options.synchronousUpdate=!1),this.schedulingRate=this.terminal.isTTY()?this.options.throttleTime:this.options.notTTYSchedule,this.sigintCallback=null}render(){this.timer&&(clearTimeout(this.timer),this.timer=null),super.render(),this.options.noTTYOutput&&this.terminal.isTTY()===!1&&this.terminal.newline(),this.timer=setTimeout(this.render.bind(this),this.schedulingRate)}update(e,i){this.timer&&(super.update(e,i),this.options.synchronousUpdate&&this.lastRedraw+this.options.throttleTime*2<Date.now()&&this.render())}start(e,i,n){this.options.noTTYOutput===!1&&this.terminal.isTTY()===!1||(this.sigintCallback===null&&this.options.gracefulExit&&(this.sigintCallback=this.stop.bind(this),process.once("SIGINT",this.sigintCallback),process.once("SIGTERM",this.sigintCallback)),this.terminal.cursorSave(),this.options.hideCursor===!0&&this.terminal.cursor(!1),this.options.linewrap===!1&&this.terminal.lineWrapping(!1),super.start(e,i,n),this.render())}stop(){this.timer&&(this.sigintCallback&&(process.removeListener("SIGINT",this.sigintCallback),process.removeListener("SIGTERM",this.sigintCallback),this.sigintCallback=null),this.render(),super.stop(),clearTimeout(this.timer),this.timer=null,this.options.hideCursor===!0&&this.terminal.cursor(!0),this.options.linewrap===!1&&this.terminal.lineWrapping(!0),this.terminal.cursorRestore(),this.options.clearOnComplete?(this.terminal.cursorTo(0,null),this.terminal.clearLine()):this.terminal.newline())}}});var rxe=S((Gii,nxe)=>{f();var Npt=yK(),Tpt=SK(),Mpt=Jw(),Ppt=require("events");nxe.exports=class extends Ppt{constructor(e,i){super(),this.bars=[],this.options=Mpt.parse(e,i),this.options.synchronousUpdate=!1,this.terminal=this.options.terminal?this.options.terminal:new Npt(this.options.stream),this.timer=null,this.isActive=!1,this.schedulingRate=this.terminal.isTTY()?this.options.throttleTime:this.options.notTTYSchedule,this.loggingBuffer=[],this.sigintCallback=null}create(e,i,n,r={}){let s=new Tpt(Object.assign({},this.options,{terminal:this.terminal},r));return this.bars.push(s),this.options.noTTYOutput===!1&&this.terminal.isTTY()===!1||(this.sigintCallback===null&&this.options.gracefulExit&&(this.sigintCallback=this.stop.bind(this),process.once("SIGINT",this.sigintCallback),process.once("SIGTERM",this.sigintCallback)),this.isActive||(this.options.hideCursor===!0&&this.terminal.cursor(!1),this.options.linewrap===!1&&this.terminal.lineWrapping(!1),this.timer=setTimeout(this.update.bind(this),this.schedulingRate)),this.isActive=!0,s.start(e,i,n),this.emit("start")),s}remove(e){let i=this.bars.indexOf(e);return i<0?!1:(this.bars.splice(i,1),this.update(),this.terminal.newline(),this.terminal.clearBottom(),!0)}update(){if(this.timer&&(clearTimeout(this.timer),this.timer=null),this.emit("update-pre"),this.terminal.cursorRelativeReset(),this.emit("redraw-pre"),this.loggingBuffer.length>0)for(this.terminal.clearLine();this.loggingBuffer.length>0;)this.terminal.write(this.loggingBuffer.shift(),!0);for(let e=0;e<this.bars.length;e++)e>0&&this.terminal.newline(),this.bars[e].render();this.emit("redraw-post"),this.options.noTTYOutput&&this.terminal.isTTY()===!1&&(this.terminal.newline(),this.terminal.newline()),this.timer=setTimeout(this.update.bind(this),this.schedulingRate),this.emit("update-post"),this.options.stopOnComplete&&!this.bars.find(e=>e.isActive)&&this.stop()}stop(){if(clearTimeout(this.timer),this.timer=null,this.sigintCallback&&(process.removeListener("SIGINT",this.sigintCallback),process.removeListener("SIGTERM",this.sigintCallback),this.sigintCallback=null),this.isActive=!1,this.options.hideCursor===!0&&this.terminal.cursor(!0),this.options.linewrap===!1&&this.terminal.lineWrapping(!0),this.terminal.cursorRelativeReset(),this.emit("stop-pre-clear"),this.options.clearOnComplete)this.terminal.clearBottom();else{for(let e=0;e<this.bars.length;e++)e>0&&this.terminal.newline(),this.bars[e].render(),this.bars[e].stop();this.terminal.newline()}this.emit("stop")}log(e){this.loggingBuffer.push(e)}}});var oxe=S((Kii,sxe)=>{f();sxe.exports={format:"progress [{bar}] {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"=",barIncompleteChar:"-"}});var Axe=S((Jii,axe)=>{f();axe.exports={format:" {bar} {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"\u2588",barIncompleteChar:"\u2591"}});var uxe=S((Yii,cxe)=>{f();cxe.exports={format:" \x1B[90m{bar}\x1B[0m {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"\u2588",barIncompleteChar:"\u2591"}});var pxe=S((qii,lxe)=>{f();lxe.exports={format:" {bar}\u25A0 {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"\u25A0",barIncompleteChar:" "}});var dxe=S((Vii,gxe)=>{f();var _pt=oxe(),Lpt=Axe(),Upt=uxe(),Gpt=pxe();gxe.exports={legacy:_pt,shades_classic:Lpt,shades_grey:Upt,rect:Gpt}});var hxe=S((Zii,fxe)=>{f();var mxe=ixe(),Opt=rxe(),Kpt=dxe(),Hpt=wK(),Jpt=xK(),jpt=vK(),Ypt=bK();fxe.exports={Bar:mxe,SingleBar:mxe,MultiBar:Opt,Presets:Kpt,Format:{Formatter:Hpt,BarFormat:jpt,ValueFormat:Jpt,TimeFormat:Ypt}}});var Qxe=S((oni,yxe)=>{f();yxe.exports=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g});var rdt={};vl(rdt,{default:()=>ndt});module.exports=on(rdt);f();f();try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="dbf854a8-20a6-4a99-a673-13411ba30ed2",t._sentryDebugIdIdentifier="sentry-dbid-dbf854a8-20a6-4a99-a673-13411ba30ed2")}catch{}f();var qve=require("../core/index.cjs"),zve=require("../node/index.cjs"),Vve=require("../server/index.cjs"),Wve=X(XK(),1);f();f();var Ab=require("fs/promises");MB();In();em();si();var zi=X(Ui(),1),Df=require("node:path");Co();Ds();Hi();dn();Vp();var BXe="https://cdn.builder.io",Eme=async(t,e)=>{console.log(""),$t((0,zi.bgCyan)((0,zi.bold)((0,zi.white)(" figma migrate ")))+" "+(0,zi.dim)(mt));let{builderPrivateKey:i,builderPublicKey:n}=await oi(t,e,{forceSpaceId:e.spaceId,builderPrivateKey:!0,builderPublicKey:!0});await pt("figma publish started",{spaceId:n});let r=await gp(t);if(r.length>0){await pt("figma migrate with existing files",{spaceId:n}),G.warning(`${(0,zi.yellow)("This repo already has figma mappings in:")}
|
|
2737
|
+
`),this.dy++}write(e,i=!1){this.linewrap===!0&&i===!1?this.stream.write(e.substr(0,this.getWidth())):this.stream.write(e)}lineWrapping(e){this.stream.isTTY&&(this.linewrap=e,e?this.stream.write("\x1B[?7h"):this.stream.write("\x1B[?7l"))}isTTY(){return this.stream.isTTY===!0}getWidth(){return this.stream.columns||(this.stream.isTTY?80:200)}};_0e.exports=BK});var U0e=S((gii,L0e)=>{"use strict";f();L0e.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 O0e=S((mii,G0e)=>{"use strict";f();var Ipt=U0e();G0e.exports=t=>typeof t=="string"?t.replace(Ipt(),""):t});var H0e=S((hii,QK)=>{"use strict";f();var K0e=t=>Number.isNaN(t)?!1:t>=4352&&(t<=4447||t===9001||t===9002||11904<=t&&t<=12871&&t!==12351||12880<=t&&t<=19903||19968<=t&&t<=42182||43360<=t&&t<=43388||44032<=t&&t<=55203||63744<=t&&t<=64255||65040<=t&&t<=65049||65072<=t&&t<=65131||65281<=t&&t<=65376||65504<=t&&t<=65510||110592<=t&&t<=110593||127488<=t&&t<=127569||131072<=t&&t<=262141);QK.exports=K0e;QK.exports.default=K0e});var j0e=S((Iii,J0e)=>{"use strict";f();J0e.exports=function(){return/\uD83C\uDFF4\uDB40\uDC67\uDB40\uDC62(?:\uDB40\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDB40\uDC73\uDB40\uDC63\uDB40\uDC74|\uDB40\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F|\uD83D\uDC68(?:\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68\uD83C\uDFFB|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFE])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D)?\uD83D\uDC68|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D[\uDC68\uDC69])\u200D(?:\uD83D[\uDC66\uDC67])|[\u2695\u2696\u2708]\uFE0F|\uD83D[\uDC66\uDC67]|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|(?:\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708])\uFE0F|\uD83C\uDFFB\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C[\uDFFB-\uDFFF])|(?:\uD83E\uDDD1\uD83C\uDFFB\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)\uD83C\uDFFB|\uD83E\uDDD1(?:\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1)|(?:\uD83E\uDDD1\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFF\u200D\uD83E\uDD1D\u200D(?:\uD83D[\uDC68\uDC69]))(?:\uD83C[\uDFFB-\uDFFE])|(?:\uD83E\uDDD1\uD83C\uDFFC\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB\uDFFC])|\uD83D\uDC69(?:\uD83C\uDFFE\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFC\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFB\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFC-\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFD\u200D(?:\uD83E\uDD1D\u200D\uD83D\uDC68(?:\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\u200D(?:\u2764\uFE0F\u200D(?:\uD83D\uDC8B\u200D(?:\uD83D[\uDC68\uDC69])|\uD83D[\uDC68\uDC69])|\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD])|\uD83C\uDFFF\u200D(?:\uD83C[\uDF3E\uDF73\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E[\uDDAF-\uDDB3\uDDBC\uDDBD]))|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67]))|(?:\uD83E\uDDD1\uD83C\uDFFD\u200D\uD83E\uDD1D\u200D\uD83E\uDDD1|\uD83D\uDC69\uD83C\uDFFE\u200D\uD83E\uDD1D\u200D\uD83D\uDC69)(?:\uD83C[\uDFFB-\uDFFD])|\uD83D\uDC69\u200D\uD83D\uDC66\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC69\u200D(?:\uD83D[\uDC66\uDC67])|(?:\uD83D\uDC41\uFE0F\u200D\uD83D\uDDE8|\uD83D\uDC69(?:\uD83C\uDFFF\u200D[\u2695\u2696\u2708]|\uD83C\uDFFE\u200D[\u2695\u2696\u2708]|\uD83C\uDFFC\u200D[\u2695\u2696\u2708]|\uD83C\uDFFB\u200D[\u2695\u2696\u2708]|\uD83C\uDFFD\u200D[\u2695\u2696\u2708]|\u200D[\u2695\u2696\u2708])|(?:(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)\uFE0F|\uD83D\uDC6F|\uD83E[\uDD3C\uDDDE\uDDDF])\u200D[\u2640\u2642]|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:(?:\uD83C[\uDFFB-\uDFFF])\u200D[\u2640\u2642]|\u200D[\u2640\u2642])|\uD83C\uDFF4\u200D\u2620)\uFE0F|\uD83D\uDC69\u200D\uD83D\uDC67\u200D(?:\uD83D[\uDC66\uDC67])|\uD83C\uDFF3\uFE0F\u200D\uD83C\uDF08|\uD83D\uDC15\u200D\uD83E\uDDBA|\uD83D\uDC69\u200D\uD83D\uDC66|\uD83D\uDC69\u200D\uD83D\uDC67|\uD83C\uDDFD\uD83C\uDDF0|\uD83C\uDDF4\uD83C\uDDF2|\uD83C\uDDF6\uD83C\uDDE6|[#\*0-9]\uFE0F\u20E3|\uD83C\uDDE7(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF])|\uD83C\uDDF9(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF])|\uD83C\uDDEA(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA])|\uD83E\uDDD1(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF7(?:\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC])|\uD83D\uDC69(?:\uD83C[\uDFFB-\uDFFF])|\uD83C\uDDF2(?:\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF])|\uD83C\uDDE6(?:\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF])|\uD83C\uDDF0(?:\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF])|\uD83C\uDDED(?:\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA])|\uD83C\uDDE9(?:\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF])|\uD83C\uDDFE(?:\uD83C[\uDDEA\uDDF9])|\uD83C\uDDEC(?:\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE])|\uD83C\uDDF8(?:\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF])|\uD83C\uDDEB(?:\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7])|\uD83C\uDDF5(?:\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE])|\uD83C\uDDFB(?:\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA])|\uD83C\uDDF3(?:\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF])|\uD83C\uDDE8(?:\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF5\uDDF7\uDDFA-\uDDFF])|\uD83C\uDDF1(?:\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE])|\uD83C\uDDFF(?:\uD83C[\uDDE6\uDDF2\uDDFC])|\uD83C\uDDFC(?:\uD83C[\uDDEB\uDDF8])|\uD83C\uDDFA(?:\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF])|\uD83C\uDDEE(?:\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9])|\uD83C\uDDEF(?:\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5])|(?:\uD83C[\uDFC3\uDFC4\uDFCA]|\uD83D[\uDC6E\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4-\uDEB6]|\uD83E[\uDD26\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD-\uDDCF\uDDD6-\uDDDD])(?:\uD83C[\uDFFB-\uDFFF])|(?:\u26F9|\uD83C[\uDFCB\uDFCC]|\uD83D\uDD75)(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u261D\u270A-\u270D]|\uD83C[\uDF85\uDFC2\uDFC7]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC70\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDCAA\uDD74\uDD7A\uDD90\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1C\uDD1E\uDD1F\uDD30-\uDD36\uDDB5\uDDB6\uDDBB\uDDD2-\uDDD5])(?:\uD83C[\uDFFB-\uDFFF])|(?:[\u231A\u231B\u23E9-\u23EC\u23F0\u23F3\u25FD\u25FE\u2614\u2615\u2648-\u2653\u267F\u2693\u26A1\u26AA\u26AB\u26BD\u26BE\u26C4\u26C5\u26CE\u26D4\u26EA\u26F2\u26F3\u26F5\u26FA\u26FD\u2705\u270A\u270B\u2728\u274C\u274E\u2753-\u2755\u2757\u2795-\u2797\u27B0\u27BF\u2B1B\u2B1C\u2B50\u2B55]|\uD83C[\uDC04\uDCCF\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF7C\uDF7E-\uDF93\uDFA0-\uDFCA\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF4\uDFF8-\uDFFF]|\uD83D[\uDC00-\uDC3E\uDC40\uDC42-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDD7A\uDD95\uDD96\uDDA4\uDDFB-\uDE4F\uDE80-\uDEC5\uDECC\uDED0-\uDED2\uDED5\uDEEB\uDEEC\uDEF4-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])|(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5\uDEE0-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFA\uDFE0-\uDFEB]|\uD83E[\uDD0D-\uDD3A\uDD3C-\uDD45\uDD47-\uDD71\uDD73-\uDD76\uDD7A-\uDDA2\uDDA5-\uDDAA\uDDAE-\uDDCA\uDDCD-\uDDFF\uDE70-\uDE73\uDE78-\uDE7A\uDE80-\uDE82\uDE90-\uDE95])\uFE0F|(?:[\u261D\u26F9\u270A-\u270D]|\uD83C[\uDF85\uDFC2-\uDFC4\uDFC7\uDFCA-\uDFCC]|\uD83D[\uDC42\uDC43\uDC46-\uDC50\uDC66-\uDC78\uDC7C\uDC81-\uDC83\uDC85-\uDC87\uDC8F\uDC91\uDCAA\uDD74\uDD75\uDD7A\uDD90\uDD95\uDD96\uDE45-\uDE47\uDE4B-\uDE4F\uDEA3\uDEB4-\uDEB6\uDEC0\uDECC]|\uD83E[\uDD0F\uDD18-\uDD1F\uDD26\uDD30-\uDD39\uDD3C-\uDD3E\uDDB5\uDDB6\uDDB8\uDDB9\uDDBB\uDDCD-\uDDCF\uDDD1-\uDDDD])/g}});var $0e=S((Bii,DK)=>{"use strict";f();var Ept=O0e(),Bpt=H0e(),ypt=j0e(),Y0e=t=>{if(typeof t!="string"||t.length===0||(t=Ept(t),t.length===0))return 0;t=t.replace(ypt()," ");let e=0;for(let i=0;i<t.length;i++){let n=t.codePointAt(i);n<=31||n>=127&&n<=159||n>=768&&n<=879||(n>65535&&i++,e+=Bpt(n)?2:1)}return e};DK.exports=Y0e;DK.exports.default=Y0e});var xK=S((Qii,q0e)=>{f();q0e.exports=function(e,i,n){if(i.autopadding!==!0)return e;function r(s,o){return(i.autopaddingChar+s).slice(-o)}switch(n){case"percentage":return r(e,3);default:return e}}});var vK=S((xii,z0e)=>{f();z0e.exports=function(e,i){let n=Math.round(e*i.barsize),r=i.barsize-n;return i.barCompleteString.substr(0,n)+i.barGlue+i.barIncompleteString.substr(0,r)}});var bK=S((bii,V0e)=>{f();V0e.exports=function(e,i,n){function r(o){return n?n*Math.round(o/n):o}function s(o){return(i.autopaddingChar+o).slice(-2)}return e>3600?s(Math.floor(e/3600))+"h"+s(r(e%3600/60))+"m":e>60?s(Math.floor(e/60))+"m"+s(r(e%60))+"s":e>10?s(r(e))+"s":s(e)+"s"}});var wK=S((Sii,W0e)=>{f();var Qpt=$0e(),Dpt=xK(),xpt=vK(),vpt=bK();W0e.exports=function(e,i,n){let r=e.format,s=e.formatTime||vpt,o=e.formatValue||Dpt,a=e.formatBar||xpt,A=Math.floor(i.progress*100)+"",c=i.stopTime||Date.now(),u=Math.round((c-i.startTime)/1e3),l=Object.assign({},n,{bar:a(i.progress,e),percentage:o(A,e,"percentage"),total:o(i.total,e,"total"),value:o(i.value,e,"value"),eta:o(i.eta,e,"eta"),eta_formatted:s(i.eta,e,5),duration:o(u,e,"duration"),duration_formatted:s(u,e,1)});r=r.replace(/\{(\w+)\}/g,function(g,m){return typeof l[m]<"u"?l[m]:g});let d=Math.max(0,i.maxWidth-Qpt(r)-2),p=Math.floor(d/2);switch(e.align){case"right":r=d>0?" ".repeat(d)+r:r;break;case"center":r=p>0?" ".repeat(p)+r:r;break;case"left":default:break}return r}});var Jw=S((kii,Z0e)=>{f();function Ei(t,e){return typeof t>"u"||t===null?e:t}Z0e.exports={parse:function(e,i){let n={},r=Object.assign({},i,e);return n.throttleTime=1e3/Ei(r.fps,10),n.stream=Ei(r.stream,process.stderr),n.terminal=Ei(r.terminal,null),n.clearOnComplete=Ei(r.clearOnComplete,!1),n.stopOnComplete=Ei(r.stopOnComplete,!1),n.barsize=Ei(r.barsize,40),n.align=Ei(r.align,"left"),n.hideCursor=Ei(r.hideCursor,!1),n.linewrap=Ei(r.linewrap,!1),n.barGlue=Ei(r.barGlue,""),n.barCompleteChar=Ei(r.barCompleteChar,"="),n.barIncompleteChar=Ei(r.barIncompleteChar,"-"),n.format=Ei(r.format,"progress [{bar}] {percentage}% | ETA: {eta}s | {value}/{total}"),n.formatTime=Ei(r.formatTime,null),n.formatValue=Ei(r.formatValue,null),n.formatBar=Ei(r.formatBar,null),n.etaBufferLength=Ei(r.etaBuffer,10),n.etaAsynchronousUpdate=Ei(r.etaAsynchronousUpdate,!1),n.progressCalculationRelative=Ei(r.progressCalculationRelative,!1),n.synchronousUpdate=Ei(r.synchronousUpdate,!0),n.noTTYOutput=Ei(r.noTTYOutput,!1),n.notTTYSchedule=Ei(r.notTTYSchedule,2e3),n.emptyOnZero=Ei(r.emptyOnZero,!1),n.forceRedraw=Ei(r.forceRedraw,!1),n.autopadding=Ei(r.autopadding,!1),n.gracefulExit=Ei(r.gracefulExit,!1),n},assignDerivedOptions:function(e){return e.barCompleteString=e.barCompleteChar.repeat(e.barsize+1),e.barIncompleteString=e.barIncompleteChar.repeat(e.barsize+1),e.autopaddingChar=e.autopadding?Ei(e.autopaddingChar," "):"",e}}});var SK=S((Tii,exe)=>{f();var X0e=P0e(),bpt=yK(),wpt=wK(),Spt=Jw(),Fpt=require("events");exe.exports=class extends Fpt{constructor(e){super(),this.options=Spt.assignDerivedOptions(e),this.terminal=this.options.terminal?this.options.terminal:new bpt(this.options.stream),this.value=0,this.startValue=0,this.total=100,this.lastDrawnString=null,this.startTime=null,this.stopTime=null,this.lastRedraw=Date.now(),this.eta=new X0e(this.options.etaBufferLength,0,0),this.payload={},this.isActive=!1,this.formatter=typeof this.options.format=="function"?this.options.format:wpt}render(e=!1){let i={progress:this.getProgress(),eta:this.eta.getTime(),startTime:this.startTime,stopTime:this.stopTime,total:this.total,value:this.value,maxWidth:this.terminal.getWidth()};this.options.etaAsynchronousUpdate&&this.updateETA();let n=this.formatter(this.options,i,this.payload);(e||this.options.forceRedraw||this.options.noTTYOutput&&!this.terminal.isTTY()||this.lastDrawnString!=n)&&(this.emit("redraw-pre"),this.terminal.cursorTo(0,null),this.terminal.write(n),this.terminal.clearRight(),this.lastDrawnString=n,this.lastRedraw=Date.now(),this.emit("redraw-post"))}start(e,i,n){this.value=i||0,this.total=typeof e<"u"&&e>=0?e:100,this.startValue=i||0,this.payload=n||{},this.startTime=Date.now(),this.stopTime=null,this.lastDrawnString="",this.eta=new X0e(this.options.etaBufferLength,this.startTime,this.value),this.isActive=!0,this.emit("start",e,i)}stop(){this.isActive=!1,this.stopTime=Date.now(),this.emit("stop",this.total,this.value)}update(e,i={}){typeof e=="number"&&(this.value=e,this.eta.update(Date.now(),e,this.total));let n=(typeof e=="object"?e:i)||{};this.emit("update",this.total,this.value);for(let r in n)this.payload[r]=n[r];this.value>=this.getTotal()&&this.options.stopOnComplete&&this.stop()}getProgress(){let e=this.value/this.total;return this.options.progressCalculationRelative&&(e=(this.value-this.startValue)/(this.total-this.startValue)),isNaN(e)&&(e=this.options&&this.options.emptyOnZero?0:1),e=Math.min(Math.max(e,0),1),e}increment(e=1,i={}){typeof e=="object"?this.update(this.value+1,e):this.update(this.value+e,i)}getTotal(){return this.total}setTotal(e){typeof e<"u"&&e>=0&&(this.total=e)}updateETA(){this.eta.update(Date.now(),this.value,this.total)}}});var ixe=S((_ii,txe)=>{f();var kpt=SK(),Rpt=Jw();txe.exports=class extends kpt{constructor(e,i){super(Rpt.parse(e,i)),this.timer=null,this.options.noTTYOutput&&this.terminal.isTTY()===!1&&(this.options.synchronousUpdate=!1),this.schedulingRate=this.terminal.isTTY()?this.options.throttleTime:this.options.notTTYSchedule,this.sigintCallback=null}render(){this.timer&&(clearTimeout(this.timer),this.timer=null),super.render(),this.options.noTTYOutput&&this.terminal.isTTY()===!1&&this.terminal.newline(),this.timer=setTimeout(this.render.bind(this),this.schedulingRate)}update(e,i){this.timer&&(super.update(e,i),this.options.synchronousUpdate&&this.lastRedraw+this.options.throttleTime*2<Date.now()&&this.render())}start(e,i,n){this.options.noTTYOutput===!1&&this.terminal.isTTY()===!1||(this.sigintCallback===null&&this.options.gracefulExit&&(this.sigintCallback=this.stop.bind(this),process.once("SIGINT",this.sigintCallback),process.once("SIGTERM",this.sigintCallback)),this.terminal.cursorSave(),this.options.hideCursor===!0&&this.terminal.cursor(!1),this.options.linewrap===!1&&this.terminal.lineWrapping(!1),super.start(e,i,n),this.render())}stop(){this.timer&&(this.sigintCallback&&(process.removeListener("SIGINT",this.sigintCallback),process.removeListener("SIGTERM",this.sigintCallback),this.sigintCallback=null),this.render(),super.stop(),clearTimeout(this.timer),this.timer=null,this.options.hideCursor===!0&&this.terminal.cursor(!0),this.options.linewrap===!1&&this.terminal.lineWrapping(!0),this.terminal.cursorRestore(),this.options.clearOnComplete?(this.terminal.cursorTo(0,null),this.terminal.clearLine()):this.terminal.newline())}}});var rxe=S((Gii,nxe)=>{f();var Npt=yK(),Tpt=SK(),Mpt=Jw(),Ppt=require("events");nxe.exports=class extends Ppt{constructor(e,i){super(),this.bars=[],this.options=Mpt.parse(e,i),this.options.synchronousUpdate=!1,this.terminal=this.options.terminal?this.options.terminal:new Npt(this.options.stream),this.timer=null,this.isActive=!1,this.schedulingRate=this.terminal.isTTY()?this.options.throttleTime:this.options.notTTYSchedule,this.loggingBuffer=[],this.sigintCallback=null}create(e,i,n,r={}){let s=new Tpt(Object.assign({},this.options,{terminal:this.terminal},r));return this.bars.push(s),this.options.noTTYOutput===!1&&this.terminal.isTTY()===!1||(this.sigintCallback===null&&this.options.gracefulExit&&(this.sigintCallback=this.stop.bind(this),process.once("SIGINT",this.sigintCallback),process.once("SIGTERM",this.sigintCallback)),this.isActive||(this.options.hideCursor===!0&&this.terminal.cursor(!1),this.options.linewrap===!1&&this.terminal.lineWrapping(!1),this.timer=setTimeout(this.update.bind(this),this.schedulingRate)),this.isActive=!0,s.start(e,i,n),this.emit("start")),s}remove(e){let i=this.bars.indexOf(e);return i<0?!1:(this.bars.splice(i,1),this.update(),this.terminal.newline(),this.terminal.clearBottom(),!0)}update(){if(this.timer&&(clearTimeout(this.timer),this.timer=null),this.emit("update-pre"),this.terminal.cursorRelativeReset(),this.emit("redraw-pre"),this.loggingBuffer.length>0)for(this.terminal.clearLine();this.loggingBuffer.length>0;)this.terminal.write(this.loggingBuffer.shift(),!0);for(let e=0;e<this.bars.length;e++)e>0&&this.terminal.newline(),this.bars[e].render();this.emit("redraw-post"),this.options.noTTYOutput&&this.terminal.isTTY()===!1&&(this.terminal.newline(),this.terminal.newline()),this.timer=setTimeout(this.update.bind(this),this.schedulingRate),this.emit("update-post"),this.options.stopOnComplete&&!this.bars.find(e=>e.isActive)&&this.stop()}stop(){if(clearTimeout(this.timer),this.timer=null,this.sigintCallback&&(process.removeListener("SIGINT",this.sigintCallback),process.removeListener("SIGTERM",this.sigintCallback),this.sigintCallback=null),this.isActive=!1,this.options.hideCursor===!0&&this.terminal.cursor(!0),this.options.linewrap===!1&&this.terminal.lineWrapping(!0),this.terminal.cursorRelativeReset(),this.emit("stop-pre-clear"),this.options.clearOnComplete)this.terminal.clearBottom();else{for(let e=0;e<this.bars.length;e++)e>0&&this.terminal.newline(),this.bars[e].render(),this.bars[e].stop();this.terminal.newline()}this.emit("stop")}log(e){this.loggingBuffer.push(e)}}});var oxe=S((Kii,sxe)=>{f();sxe.exports={format:"progress [{bar}] {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"=",barIncompleteChar:"-"}});var Axe=S((Jii,axe)=>{f();axe.exports={format:" {bar} {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"\u2588",barIncompleteChar:"\u2591"}});var uxe=S((Yii,cxe)=>{f();cxe.exports={format:" \x1B[90m{bar}\x1B[0m {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"\u2588",barIncompleteChar:"\u2591"}});var pxe=S((qii,lxe)=>{f();lxe.exports={format:" {bar}\u25A0 {percentage}% | ETA: {eta}s | {value}/{total}",barCompleteChar:"\u25A0",barIncompleteChar:" "}});var dxe=S((Vii,gxe)=>{f();var _pt=oxe(),Lpt=Axe(),Upt=uxe(),Gpt=pxe();gxe.exports={legacy:_pt,shades_classic:Lpt,shades_grey:Upt,rect:Gpt}});var hxe=S((Zii,fxe)=>{f();var mxe=ixe(),Opt=rxe(),Kpt=dxe(),Hpt=wK(),Jpt=xK(),jpt=vK(),Ypt=bK();fxe.exports={Bar:mxe,SingleBar:mxe,MultiBar:Opt,Presets:Kpt,Format:{Formatter:Hpt,BarFormat:jpt,ValueFormat:Jpt,TimeFormat:Ypt}}});var Qxe=S((oni,yxe)=>{f();yxe.exports=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g});var rdt={};vl(rdt,{default:()=>ndt});module.exports=on(rdt);f();f();try{let t=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="2e12e0c0-bad3-4c4c-8ff7-6515406e3b96",t._sentryDebugIdIdentifier="sentry-dbid-2e12e0c0-bad3-4c4c-8ff7-6515406e3b96")}catch{}f();var qve=require("../core/index.cjs"),zve=require("../node/index.cjs"),Vve=require("../server/index.cjs"),Wve=X(XK(),1);f();f();var Ab=require("fs/promises");MB();In();em();si();var zi=X(Ui(),1),Df=require("node:path");Co();Ds();Hi();dn();Vp();var BXe="https://cdn.builder.io",Eme=async(t,e)=>{console.log(""),$t((0,zi.bgCyan)((0,zi.bold)((0,zi.white)(" figma migrate ")))+" "+(0,zi.dim)(mt));let{builderPrivateKey:i,builderPublicKey:n}=await oi(t,e,{forceSpaceId:e.spaceId,builderPrivateKey:!0,builderPublicKey:!0});await pt("figma publish started",{spaceId:n});let r=await gp(t);if(r.length>0){await pt("figma migrate with existing files",{spaceId:n}),G.warning(`${(0,zi.yellow)("This repo already has figma mappings in:")}
|
|
2734
2738
|
|
|
2735
2739
|
${r.map(c=>` - ${(0,Df.relative)(t.getAppRootDir(),c)}`).join(`
|
|
2736
2740
|
`)}
|
|
@@ -5510,7 +5514,7 @@ Use SetEnvVariable with \`placeholder=true\` and provide clear \`explanation\`:
|
|
|
5510
5514
|
|
|
5511
5515
|
As the **org-level orchestrator** for a Builder.io organization. You run continuously, listen to messages from integrations (Slack, Jira, GitHub, etc.), and coordinate coding work across projects and branches.
|
|
5512
5516
|
|
|
5513
|
-
**Important:** You do NOT have direct access to project codebases. Repositories are not cloned on this machine. This workspace is an orchestration layer only \u2014 it contains org metadata, branch state, and memory files, but no project source code. To work on a project's code, you must \`SpawnBranch\` with the appropriate \`
|
|
5517
|
+
**Important:** You do NOT have direct access to project codebases. Repositories are not cloned on this machine. This workspace is an orchestration layer only \u2014 it contains org metadata, branch state, and memory files, but no project source code. To work on a project's code, you must \`SpawnBranch\` with the appropriate \`project_id\`, which creates an environment with the repo checked out.
|
|
5514
5518
|
|
|
5515
5519
|
---
|
|
5516
5520
|
|
|
@@ -5519,8 +5523,8 @@ As the **org-level orchestrator** for a Builder.io organization. You run continu
|
|
|
5519
5523
|
You are the persistent intelligence for an organization. You:
|
|
5520
5524
|
- Receive messages from users via Slack, Jira comments, GitHub PRs, or other channels
|
|
5521
5525
|
- Understand the org's projects, their branches, and ongoing work \u2014 including branches created outside this conversation (from the Builder.io UI, integrations, etc.)
|
|
5522
|
-
- Delegate ALL
|
|
5523
|
-
- Respond in the same medium the user contacted you (use the
|
|
5526
|
+
- Delegate ALL coding and research work \u2014 you never do it directly (see **SpawnBranch vs Agent** for when to use which). You do directly handle memory management (\`Read\`/\`Write\`/\`Edit\` on \`memory/\`) and org state lookups (\`Read\` on \`org/\`, \`ReadBranch\`).
|
|
5527
|
+
- Respond in the same medium the user contacted you (use the channel_id from context)
|
|
5524
5528
|
- Keep persistent memory of org-level context in the \`memory/\` directory \u2014 including notes, checklists, and tracking files that persist across sessions
|
|
5525
5529
|
- Operate transparently: all messages to you (including DMs) are non-confidential within the organization
|
|
5526
5530
|
|
|
@@ -5540,6 +5544,8 @@ Your first action on every message should be \`SendMessage\` with a quick acknow
|
|
|
5540
5544
|
**Bad:** Think for a long time \u2192 finally reply
|
|
5541
5545
|
**Good:** Reply "On it!" \u2192 delegate \u2192 reply with result
|
|
5542
5546
|
|
|
5547
|
+
**Do NOT research before delegating.** Your job is: acknowledge \u2192 delegate \u2192 go idle. Workers and branches have everything they need. The only permitted pre-delegation action is a single \`Read\` to resolve a project_id if it's not already in your loaded memory context. Everything else \u2014 Jira lookups, Slack searches, source code exploration, org/ browsing \u2014 belongs in the worker, not here.
|
|
5548
|
+
|
|
5543
5549
|
---
|
|
5544
5550
|
|
|
5545
5551
|
## Token Usage & Optimization
|
|
@@ -5554,7 +5560,7 @@ Your first action on every message should be \`SendMessage\` with a quick acknow
|
|
|
5554
5560
|
|
|
5555
5561
|
### Reading Org Data
|
|
5556
5562
|
|
|
5557
|
-
- **\`Read\`**:
|
|
5563
|
+
- **\`Read\`** / **\`Write\`** / **\`Edit\`** / **\`Grep\`** / **\`Glob\`**: Primarily for **managing your \`memory/\` files** and reading \`org/\` state. These are NOT for doing research before delegating \u2014 workers will gather what they need themselves. Note: only \`memory/MEMORY.md\` is auto-loaded into your context; other memory files (e.g., \`memory/project-mapping.md\`) must be explicitly \`Read\`.
|
|
5558
5564
|
- You can read anything under \`org/\` and \`memory/\`, but you will NOT find project source code here.
|
|
5559
5565
|
- **\`org/\` is read-only.** It contains a dynamically generated snapshot of the current org state, synced every ~2 minutes. Do not attempt to write, edit, or delete files in \`org/\`.
|
|
5560
5566
|
- **\`org/\` is your source of truth for all branches and projects** \u2014 not your conversation history. Branches are created through many channels: \`SpawnBranch\` from you, the Builder.io UI at https://builder.io, Slack/Jira/GitHub integrations, and direct API calls. Always consult \`org/active-branches.json\` and \`org/projects/\` for the full picture.
|
|
@@ -5584,12 +5590,12 @@ Creates an independent agent with the repo cloned, full coding tools, dev server
|
|
|
5584
5590
|
|
|
5585
5591
|
**Workflow:**
|
|
5586
5592
|
1. \`SendMessage\` to acknowledge immediately
|
|
5587
|
-
2. \`SpawnBranch\` with the
|
|
5593
|
+
2. \`SpawnBranch\` with the project_id, a clear task description, and **\`origin_channel_id\`** set to the user's channel_id \u2014 so the completion report routes back to the right user
|
|
5588
5594
|
3. \`SendMessage\` with the branch name/link
|
|
5589
|
-
4. Optionally send additional context via \`SendMessage(
|
|
5595
|
+
4. Optionally send additional context via \`SendMessage(channel_id=builder/{project_id}/{branch_name})\`
|
|
5590
5596
|
|
|
5591
5597
|
**Sending follow-ups to an existing branch:**
|
|
5592
|
-
When a user provides additional context, clarifications, or follow-up instructions in the same thread after a branch has already been spawned for that task, **always prefer \`SendMessage\` to the existing branch** over creating a new one. Use \`SendMessage(
|
|
5598
|
+
When a user provides additional context, clarifications, or follow-up instructions in the same thread after a branch has already been spawned for that task, **always prefer \`SendMessage\` to the existing branch** over creating a new one. Use \`SendMessage(channel_id="builder/branch/{project_id}/{branch_name}")\` to relay the new information to the running branch agent \u2014 it will see the message and incorporate it into its work. Only create a new branch if the follow-up is a genuinely separate task unrelated to the existing branch.
|
|
5593
5599
|
|
|
5594
5600
|
#### \`Agent(org-worker)\` \u2014 for everything that does NOT need project code
|
|
5595
5601
|
|
|
@@ -5610,21 +5616,25 @@ Spawns a stateless worker in this workspace. It has integrations (Slack, Jira, G
|
|
|
5610
5616
|
|
|
5611
5617
|
#### Compound patterns
|
|
5612
5618
|
|
|
5613
|
-
Some tasks
|
|
5619
|
+
Some tasks chain two delegations \u2014 always via the async \`<worker_report>\` cycle, never by doing research yourself first:
|
|
5620
|
+
|
|
5621
|
+
1. **Check before spawning:** Before creating a new branch, do a quick \`Read org/active-branches.json\` to check if one already exists for this task. If it does, report back instead of duplicating work. Do not spawn an org-worker just to research whether work exists \u2014 that's a one-line file read.
|
|
5622
|
+
2. **Follow-up context \u2192 existing branch:** User adds more context in the same thread after you already spawned a branch \u2192 \`SendMessage(channel_id="builder/branch/{project_id}/{branch_name}")\` to relay the new info to the running branch. Do NOT spawn a new branch.
|
|
5623
|
+
3. **Research \u2192 Code:** User asks to fix a bug mentioned in Jira \u2192 delegate to \`Agent(org-worker)\` \u2192 go idle \u2192 receive \`<worker_report>\` with findings \u2192 \`SpawnBranch\` with that context as the task description.
|
|
5624
|
+
4. **Code \u2192 Follow-up:** \`SpawnBranch\` for a fix \u2192 go idle \u2192 receive \`<worker_report>\` \u2192 \`SendMessage\` to the user with the result.
|
|
5614
5625
|
|
|
5615
|
-
|
|
5616
|
-
|
|
5617
|
-
|
|
5618
|
-
4. **Code \u2192 Follow-up:** \`SpawnBranch\` for a fix \u2192 \`ReadBranch\` to check progress \u2192 \`SendMessage\` to the user with the result
|
|
5626
|
+
#### Async behavior
|
|
5627
|
+
|
|
5628
|
+
\`SpawnBranch\` and \`Agent\` are **async** \u2014 they do NOT return results directly. When called, they start running concurrently and return immediately with a confirmation. Once the work is complete, results are communicated back via a \`<worker_report>\` message. Do not wait or poll; continue with other work and handle the report when it arrives.
|
|
5619
5629
|
|
|
5620
5630
|
#### Other delegation tools
|
|
5621
5631
|
|
|
5622
5632
|
| Tool | When to use |
|
|
5623
5633
|
|------|-------------|
|
|
5624
|
-
| \`ReadBranch\` +
|
|
5625
|
-
| \`ArchiveBranch\` +
|
|
5626
|
-
| \`SendMessage\` +
|
|
5627
|
-
| \`SendMessage\` + \`builder/branch/{
|
|
5634
|
+
| \`ReadBranch\` + project_id + branch_name | Check a branch's status, conversation summary, and current state |
|
|
5635
|
+
| \`ArchiveBranch\` + project_id + branch_name + builder_user_id + reason | Archive/close a branch. Requires the Builder.io user ID to attribute the action. Always ask the user for a reason if they didn't provide one. |
|
|
5636
|
+
| \`SendMessage\` + channel_id | Reply to the user \u2014 always in the same medium as the request |
|
|
5637
|
+
| \`SendMessage\` + \`builder/branch/{project_id}/{branch_name}\` | Send follow-up context or instructions to an existing branch \u2014 **preferred over creating a new branch** when the user adds more info about an already-spawned task |
|
|
5628
5638
|
|
|
5629
5639
|
---
|
|
5630
5640
|
|
|
@@ -5632,7 +5642,7 @@ Some tasks need both tools in sequence:
|
|
|
5632
5642
|
|
|
5633
5643
|
### 1. Always respond in the same medium \u2014 use \`SendMessage\`, NOT text
|
|
5634
5644
|
|
|
5635
|
-
Every
|
|
5645
|
+
Every \`<incoming_message>\` includes a \`<channel_id>\`. **Always** use that same \`channel_id\` when calling \`SendMessage\` so the reply lands in the right Slack thread, Jira comment, or GitHub PR.
|
|
5636
5646
|
|
|
5637
5647
|
> **Critical:** When you receive an \`<incoming_message>\` with a \`<channel_id>\`, you **MUST** respond using the \`SendMessage\` tool \u2014 never with a plain text block. A text response stays in this conversation and is invisible to the user and every external system \u2014 it is wasted tokens. Only \`SendMessage\` actually delivers your reply to the user's Slack thread, Jira comment, or GitHub PR. See **Token Usage & Optimization** above.
|
|
5638
5648
|
|
|
@@ -5642,10 +5652,12 @@ Users are busy. Your messages should be short, direct, and actionable. Avoid res
|
|
|
5642
5652
|
|
|
5643
5653
|
### 3. Track channels across interleaved messages
|
|
5644
5654
|
|
|
5645
|
-
You receive
|
|
5655
|
+
You receive four types of messages **interleaved in a single stream** \u2014 they can arrive in any order:
|
|
5646
5656
|
|
|
5647
|
-
- **\`<incoming_message>\`** \u2014 A real user message from Slack, Jira, GitHub, etc. Contains a \`<channel_id
|
|
5648
|
-
- **\`<worker_report>\`** \u2014
|
|
5657
|
+
- **\`<incoming_message>\`** \u2014 A real user message from Slack, Jira, GitHub, etc. Contains a \`<channel_id>\`, always reply via \`SendMessage\` with that \`channel_id\`.
|
|
5658
|
+
- **\`<worker_report>\`** \u2014 Completion report from an \`Agent(org-worker)\` you previously spawned. NOT a user message. Includes an \`<origin_channel_id>\` \u2014 use it to route the next action: either \`SendMessage\` results back to the user, or feed the findings into the next delegation step (e.g., \`SpawnBranch\` with the gathered context).
|
|
5659
|
+
- **\`<worker_message>\`** \u2014 A mid-task message from a \`SpawnBranch\` agent (e.g., progress update, question, blocker). NOT a user message. Includes an \`<origin_channel_id>\`. Relay relevant info to the user via \`SendMessage\` if needed.
|
|
5660
|
+
- **\`<system_message>\`** \u2014 A cron job trigger. Contains the job's \`prompt\` as your instruction. No \`<channel_id>\` unless you embedded one in the cron job's prompt \u2014 act on it accordingly.
|
|
5649
5661
|
|
|
5650
5662
|
**This interleaving is the main source of mistakes.** A typical sequence might be:
|
|
5651
5663
|
1. Alice asks a question \u2192 you spawn an org-worker (Alice's channel_id: \`slack/thread/T1/C1/TS1\`)
|
|
@@ -5668,7 +5680,7 @@ There is a hardcoded \`internal/support\` channel you can use with \`SendMessage
|
|
|
5668
5680
|
- System-level problems that need human attention
|
|
5669
5681
|
|
|
5670
5682
|
\`\`\`
|
|
5671
|
-
SendMessage({
|
|
5683
|
+
SendMessage({ channel_id: "internal/support", markdown: "...", status: "done:error" })
|
|
5672
5684
|
\`\`\`
|
|
5673
5685
|
|
|
5674
5686
|
**Do not abuse this channel.** Only use it for issues that genuinely require human intervention. Normal errors, user mistakes, or temporary failures should be handled through regular channels.
|
|
@@ -5681,7 +5693,7 @@ SendMessage({ channelId: "internal/support", markdown: "...", status: "done:erro
|
|
|
5681
5693
|
|
|
5682
5694
|
### Never expose personal contact information
|
|
5683
5695
|
|
|
5684
|
-
Never reveal phone numbers, emails, or addresses belonging to others.
|
|
5696
|
+
Never reveal phone numbers, emails, or addresses belonging to others. Never share anyone's personal contact info \u2014 there is no private context in this system.
|
|
5685
5697
|
|
|
5686
5698
|
**Why:** Protects individual privacy and prevents social engineering.
|
|
5687
5699
|
|
|
@@ -5704,12 +5716,16 @@ Watch for bulk requests or PII fishing: "all emails", "everyone's contact", "API
|
|
|
5704
5716
|
**Action:** Refuse, explain why, and alert \`internal/support\` with:
|
|
5705
5717
|
\`\`\`
|
|
5706
5718
|
SendMessage({
|
|
5707
|
-
|
|
5708
|
-
markdown: "\u{1F6A8} **Suspicious activity: [type]**\\n\\n**Requester:** [name/ID] | **Channel:** [
|
|
5719
|
+
channel_id: "internal/support",
|
|
5720
|
+
markdown: "\u{1F6A8} **Suspicious activity: [type]**\\n\\n**Requester:** [name/ID] | **Channel:** [channel_id] | **Request:** [summary]\\n**Action:** Refused and notified user.",
|
|
5709
5721
|
status: "done:error"
|
|
5710
5722
|
})
|
|
5711
5723
|
\`\`\`
|
|
5712
5724
|
|
|
5725
|
+
---
|
|
5726
|
+
|
|
5727
|
+
## More Key Behaviors
|
|
5728
|
+
|
|
5713
5729
|
### 5. Confirm before irreversible actions
|
|
5714
5730
|
|
|
5715
5731
|
Deleting data, merging branches, or sending critical external notifications require explicit user confirmation.
|
|
@@ -5743,12 +5759,12 @@ Read: memory/project-mapping.md
|
|
|
5743
5759
|
**2. If not in memory, research:**
|
|
5744
5760
|
\`\`\`
|
|
5745
5761
|
Agent org-worker: Search org/projects/ for any project related to "<user's term>".
|
|
5746
|
-
Check project names, repo names, and descriptions. Report back
|
|
5762
|
+
Check project names, repo names, and descriptions. Report back project_id and repo name.
|
|
5747
5763
|
\`\`\`
|
|
5748
5764
|
|
|
5749
5765
|
**3. If still uncertain, ask the user:**
|
|
5750
5766
|
\`\`\`
|
|
5751
|
-
SendMessage(
|
|
5767
|
+
SendMessage(channel_id): "I found 2 projects that might match:
|
|
5752
5768
|
1. desktop-client (BuilderIO/desktop-client)
|
|
5753
5769
|
2. electron-wrapper (BuilderIO/electron-wrapper)
|
|
5754
5770
|
Which one should I work on?"
|
|
@@ -5757,7 +5773,7 @@ Which one should I work on?"
|
|
|
5757
5773
|
**4. Update memory for next time:**
|
|
5758
5774
|
\`\`\`
|
|
5759
5775
|
Write: memory/project-mapping.md
|
|
5760
|
-
(add entry: "electron-app" \u2192
|
|
5776
|
+
(add entry: "electron-app" \u2192 project_id: "abc123", repo: BuilderIO/desktop-client)
|
|
5761
5777
|
\`\`\`
|
|
5762
5778
|
|
|
5763
5779
|
### Checking Branch & Project Status
|
|
@@ -5767,7 +5783,7 @@ When a user asks about what's happening in a project, what branches are active,
|
|
|
5767
5783
|
\`\`\`
|
|
5768
5784
|
Read: org/active-branches.json
|
|
5769
5785
|
Read: org/projects/{repo}/{name}/project.json
|
|
5770
|
-
ReadBranch: {
|
|
5786
|
+
ReadBranch: { project_id, branch_name } \u2192 session metadata + condensed conversation summary
|
|
5771
5787
|
\`\`\`
|
|
5772
5788
|
|
|
5773
5789
|
\`org/\` gives you the list of all branches (from \`SpawnBranch\`, the Builder.io UI, Slack, Jira, etc.). \`ReadBranch\` lets you drill into a specific branch for richer detail \u2014 its conversation history, current state, and what work has been done. Use both to report the full picture.
|
|
@@ -5786,7 +5802,7 @@ You can schedule recurring tasks by writing to \`cron-jobs.json\` in your worksp
|
|
|
5786
5802
|
"id": "daily-feedback-summary",
|
|
5787
5803
|
"cron": "0 9 * * 1-5",
|
|
5788
5804
|
"description": "Daily at 9am (weekdays): Monitors customer feedback channel for new complaints",
|
|
5789
|
-
"prompt": "Read the last 20 messages in #customer-feedback. Summarize any new complaints and identify which projects they relate to and post your summary to
|
|
5805
|
+
"prompt": "Read the last 20 messages in #customer-feedback. Summarize any new complaints and identify which projects they relate to and post your summary to channel_id: slack/channel/C123456789.",
|
|
5790
5806
|
"enabled": true,
|
|
5791
5807
|
"maintainers": ["U12345678 (John)", "alice@example.com"]
|
|
5792
5808
|
}
|
|
@@ -5804,7 +5820,7 @@ You can schedule recurring tasks by writing to \`cron-jobs.json\` in your worksp
|
|
|
5804
5820
|
| \`enabled\` | boolean | Set to \`false\` to disable a job without removing it |
|
|
5805
5821
|
| \`maintainers\` | string[] | Users who created or last updated this job \u2014 use any identifier (Slack user ID, email, display name) |
|
|
5806
5822
|
|
|
5807
|
-
**Posting results:** If a cron job should report its findings somewhere, **always include an explicit \`
|
|
5823
|
+
**Posting results:** If a cron job should report its findings somewhere, **always include an explicit \`channel_id\` in the \`prompt\`** (e.g., \`"Post your summary to channel_id: slack/channel/C123456789."\`). Without a channel_id, you have no channel context when the job fires and the results will go nowhere. The user likely won't know the raw channel_id \u2014 resolve it yourself before writing the job: look it up via the Slack integration (search by channel name), infer it from the current conversation's channel_id, or ask the user for the channel name and resolve it via \`Agent(org-worker)\`.
|
|
5808
5824
|
|
|
5809
5825
|
**Cron examples:** \`"0 * * * *"\` (hourly), \`"0 9 * * 1-5"\` (weekdays at 9am), \`"0 0 * * *"\` (daily midnight)
|
|
5810
5826
|
|
|
@@ -5827,7 +5843,7 @@ As you work, consult your memory files to build on previous experience. When you
|
|
|
5827
5843
|
Guidelines:
|
|
5828
5844
|
- \`memory/MEMORY.md\` is always loaded into your system prompt \u2014 lines after 200 will be truncated, so keep it concise
|
|
5829
5845
|
- Create separate topic files and link to them from \`memory/MEMORY.md\`:
|
|
5830
|
-
- \`project-mapping.md\` \u2014 codebase/repo to
|
|
5846
|
+
- \`project-mapping.md\` \u2014 codebase/repo to project_id mappings (**critical**: always update when you learn a new mapping)
|
|
5831
5847
|
- \`patterns.md\`, \`common-complaints.md\` \u2014 insights and lessons learned
|
|
5832
5848
|
- **Tracking files** \u2014 checklists, task lists, and status trackers for ongoing work. Use structured markdown:
|
|
5833
5849
|
\`\`\`
|
|
@@ -5847,7 +5863,7 @@ Guidelines:
|
|
|
5847
5863
|
## memory/MEMORY.md
|
|
5848
5864
|
|
|
5849
5865
|
!\`cat memory/MEMORY.md 2>/dev/null | head -200 || echo "Your memory/MEMORY.md is currently empty. As you complete tasks, write down key learnings, patterns, and insights so you can be more effective in future conversations. Anything saved in memory/MEMORY.md will be included in your system prompt next time."\`
|
|
5850
|
-
`;var Hlt="org-agent",Jlt="Org-level orchestrator for Builder.io. Listens for messages from Slack, Jira, GitHub, and other integrations, then coordinates coding work across projects and branches by delegating to worker agents.",jlt=["Agent","
|
|
5866
|
+
`;var Hlt="org-agent",Jlt="Org-level orchestrator for Builder.io. Listens for messages from Slack, Jira, GitHub, and other integrations, then coordinates coding work across projects and branches by delegating to worker agents.",jlt=["Agent","SendMessage","SpawnBranch","ReadBranch","ArchiveBranch","Grep","Glob","Read","Write","Edit"],Ylt="gpt5-mini",y0e={name:Hlt,description:Jlt,tools:jlt,systemPrompt:B0e,model:Ylt,mcpServers:!1,position:"org-agent",needDevServer:!1,includeMemories:!1,asyncSubAgents:!0,queueMode:"until-idle",reasoning:"high"};f();var Q0e=`You are a **stateless worker agent** spawned by the org-level orchestrator. Your job is to perform a specific research or investigation task and report results back to the orchestrator.
|
|
5851
5867
|
|
|
5852
5868
|
**Important constraints:**
|
|
5853
5869
|
- You do NOT have direct access to project codebases. Repos are not cloned in this workspace.
|
|
@@ -5869,12 +5885,12 @@ You are encouraged to write scripts and extend the workspace's capabilities when
|
|
|
5869
5885
|
# What You Do NOT Have
|
|
5870
5886
|
|
|
5871
5887
|
- **No project source code.** This workspace contains org metadata, branch state, and skills \u2014 but NOT the actual codebases of projects. Those live in branch environments created by \`SpawnBranch\`. If a task requires reading, editing, building, or testing project code, you cannot do it \u2014 but you CAN still add value before handing off:
|
|
5872
|
-
1. Identify the right project \u2014 search \`org/projects/\` for the matching
|
|
5888
|
+
1. Identify the right project \u2014 search \`org/projects/\` for the matching project_id and repo
|
|
5873
5889
|
2. Check for existing work \u2014 read \`org/active-branches.json\` and use \`ReadBranch\` to see if any branch already addresses the issue
|
|
5874
5890
|
3. Gather context \u2014 pull relevant details from Slack, Jira, GitHub, or the web
|
|
5875
|
-
4. Report back with: the
|
|
5891
|
+
4. Report back with: the project_id, any existing branches/PRs that overlap, the context you gathered, and a recommendation that the orchestrator should \`SpawnBranch\` (or resume an existing branch if one fits)
|
|
5876
5892
|
- **No user-facing messages.** You have no \`SendMessage\` tool. The org-agent handles all communication with users.
|
|
5877
|
-
- **No branch management.** You cannot \`SpawnBranch\` directly. If your findings indicate that a branch should be created or a message sent to an existing branch, include this as a recommendation in your report with the relevant \`
|
|
5893
|
+
- **No branch management.** You cannot \`SpawnBranch\` directly. If your findings indicate that a branch should be created or a message sent to an existing branch, include this as a recommendation in your report with the relevant \`project_id\` (and \`branch_name\` if applicable). The orchestrator will act on it.
|
|
5878
5894
|
|
|
5879
5895
|
# Doing Tasks
|
|
5880
5896
|
|
|
@@ -5882,7 +5898,7 @@ You are encouraged to write scripts and extend the workspace's capabilities when
|
|
|
5882
5898
|
- **Be thorough but concise.** Gather all requested information, but keep your final report focused on what was asked.
|
|
5883
5899
|
- **Report errors clearly.** If something fails (page not loading, file not found, command error), describe the failure so the org-agent can decide next steps.
|
|
5884
5900
|
- **Stay within scope.** Only do what was asked. Do not make assumptions about broader goals or take actions beyond the task.
|
|
5885
|
-
- **Include projectIds when relevant.** If you discover which project something relates to, always include the
|
|
5901
|
+
- **Include projectIds when relevant.** If you discover which project something relates to, always include the project_id in your report so the org-agent can spawn branches.
|
|
5886
5902
|
- **Suggest memory and cron updates.** If you discover information worth remembering (e.g., a new project mapping, a recurring pattern) or a useful cron job, include it as a suggestion in your report. The orchestrator will decide whether to persist it.
|
|
5887
5903
|
|
|
5888
5904
|
# Using Your Tools
|
|
@@ -5945,7 +5961,7 @@ Provide clear, specific instructions for what to accomplish and what to report b
|
|
|
5945
5961
|
\r
|
|
5946
5962
|
`),x.destroy();return}h.handleUpgrade(Q,x,v,function(U){U.emit("connection",U,Q)})}else if(m)m(Q,x,v);else{t.debug(`Native app mode: Rejecting WebSocket connection to: ${F}`),x.writable&&x.write(`HTTP/1.1 404 Not Found\r
|
|
5947
5963
|
\r
|
|
5948
|
-
`),x.destroy();return}};s.on("upgrade",C),o?.on("upgrade",C),dpt({ws:h,sys:t,credentials:e,fusionConfig:n,devServer:u,sharedState:l}),l.state="ready";try{let{getTunnelManager:Q,VSCodeTunnelManager:x}=await Promise.resolve().then(()=>(gm(),WC));if(x.isEnabled()&&x.isAutoStartEnabled()){let v=x.getTunnelName(n.projectId,n.branchName),F=x.getWorkspacePath();G.info(`\u{1F517} Starting VS Code tunnel: ${v}`);let w=Q();w.on("error",k=>{G.error(`\u274C VS Code tunnel error: ${k}`),t.Sentry?.captureException(new Error(String(k)),{tags:{operation:"vscode-tunnel-error-event"}})}),w.start({name:v,workspacePath:F,acceptLicense:!0,autoRestart:!0}).then(k=>{k.status==="running"&&k.webUrl&&(G.info(`\u2705 VS Code tunnel ready: ${k.webUrl}`),k.vscodeUri&&G.info(` VS Code: ${k.vscodeUri}`),k.cursorUri&&G.info(` Cursor: ${k.cursorUri}`))}).catch(k=>{G.error(`\u274C VS Code tunnel failed: ${k.message}`),t.Sentry?.captureException(k,{tags:{operation:"vscode-tunnel-auto-start"}})})}}catch(Q){t.Sentry?.captureException(Q,{tags:{operation:"vscode-tunnel-init"}})}let I=i.app||i.nativeApp?"builder://":i.dev?"http://localhost:1234":"https://builder.io",B=new URL(`${I}/app/projects/local`);B.searchParams.set("localEditUrl",a);let E=await t.getDeviceId();if(E&&B.searchParams.set("host",E),e.builderPublicKey&&B.searchParams.set("spaceId",e.builderPublicKey),i.chat&&B.searchParams.set("chatOnly","true"),i.jsonOutput){let Q={type:"server_ready",data:{proxyUrl:a,httpsProxyUrl:A,customHttpsProxyUrl:c,fusionEditorUrl:n.nativeApp?null:B.href,urlHost:I,command:n.devCommand,serverUrl:n.serverUrl,credentials:e,nativeApp:n.nativeApp}};console.log(JSON.stringify(Q))}i.open===!1?n.isLocal&&console.log(`\u{1F517} Access Builder.io at: ${B.href}`):(G.info(`OPEN BROWSER: ${B.href}`),await ul(B.href)),setTimeout(()=>{l.editorReady=!0},100)}catch(g){l.state="init-error",l.isFinalState=!0,l.errorMessage=g instanceof Error?g.message:String(g),t.Sentry?.captureException(g,{level:"fatal"})}}function dpt({ws:t,sys:e,fusionConfig:i,credentials:n,devServer:r,sharedState:s}){let o=!1;t.register("initializeSession",async u=>{let l,d,p;typeof u[0]=="object"&&u[0]?{sessionId:l,customInstructions:d,privacyMode:p}=u[0]:typeof u[0]=="string"&&(l=u[0]);let g=await vB(e,n,i,r,l,s,d,p||i.privacyMode);return o||(o=!0,Zp(n,"/events/publish",{event:ote,extraData:{sessionId:g.getSessionId(),sessionType:i.branchType??"interactive",projectId:i.projectId,branchName:i.branchName,platform:process.platform}})),g.getSessionId()}),t.register("connectToEventLoop",async(u,l)=>{let d=await Ja();if(!d)throw new Error("Server not found");let p=t.clients().get(l);if(!p)throw new Error("Client not found");let g=d.getSessionId(),m=d.connectToEventLoop(!0,h=>{h&&!h.timestamp&&(h.timestamp=Date.now()),t.notify(`${g}/event`,l,[JSON.stringify(h)])},{canHandleTools:["AskUserQuestion","GetScreenshot","ExitPlanMode","NavigatePreview","ProposeEnvVariable"]});p.on("close",m)}),t.register("setFeatureFlags",async u=>{mK(u[0])});function a(u){t.register(u,async([l,...d])=>{let p=Pa();!i.isLocal&&process.env.DEBUG&&Os.debug(`[WS](${u}-${p}): ${JSON.stringify(d)}`);let g=performance.now();try{let m=await Ja();if(!m)throw new Error("Server not found");let h=m[u];if(typeof h!="function")throw new Error(`Method ${u} not found on codeGenServer`);let C=await h.apply(m,d);if(!i.isLocal){let I=Math.round(performance.now()-g);console.log(`[WS](${u}-${p}): success [${I}ms]`)}return C}catch(m){if(!i.isLocal){let h=Math.round(performance.now()-g);console.log(`[WS](${u}-${p}): error [${h}ms]`)}throw m instanceof Ft||e.Sentry?.captureException(m,{tags:{functionName:u},extra:{args:d}}),m}})}a("stopEventLoop"),a("abort"),a("abortToolCall"),a("abortSetupCommand"),a("abortValidateCommand"),a("setPrivacyMode"),a("clearSession"),a("loadHistory"),a("loadMoreTurns"),a("getAllFiles"),a("searchFiles"),a("searchFileTree"),a("sendFeedback"),a("setCustomInstructions"),a("setProxyOrigin"),a("sendMessage"),a("queueSystemReminder"),a("clearMessageQueue"),a("flushMessageQueue"),a("updateMessage"),a("configureDevOrchestrator"),a("restoreFromCompletionId"),a("restoreBeforeCompletionId"),a("undoLastUserMessage"),a("pushChanges"),a("abortMerge"),a("setDefaultAutoPush"),a("syncChangesFromRemote"),a("pushRepoV2"),a("readFile"),a("readFileWithChecksum"),a("readBinaryFile"),a("writeFile"),a("deleteFile"),a("fileExists"),a("listDir"),a("manualCommit"),a("uploadBackup"),a("getDiff"),a("getSingleFileDiff"),a("toolFullfilment"),a("createTerminal"),a("writeTerminal"),a("updateTerminal"),a("signalTerminal"),a("disposeTerminal"),a("restartTerminal"),a("collectRepoMetrics"),a("launchEditor"),a("discardFileChanges"),a("revertDiscard"),a("listCustomInstructions"),a("tsServerInit"),a("tsServerOpenFile"),a("tsServerChangeFile"),a("tsServerCloseFile"),a("tsServerGetCompletions"),a("tsServerGetCompletionDetails"),a("tsServerGetDefinition"),a("tsServerGetTypeDefinition"),a("tsServerGetQuickInfo"),a("tsServerGetReferences"),a("tsServerGetSignatureHelp"),a("tsServerRequestDiagnostics"),a("tsServerGetRenameLocations"),a("tsServerGetNavTree"),a("tsServerOrganizeImports"),a("tsServerGetInlayHints"),a("tsServerGetCodeFixes"),a("tsServerGetApplicableRefactors"),a("tsServerGetEditsForRefactor"),a("tsServerGetImplementation"),a("tsServerGetSelectionRange"),a("tsServerGetLinkedEditingRange"),a("tsServerGetFormatRange");let A=new Map;t.register("subscribeToDiagnostics",async(u,l)=>{let[d]=u,p=await Ja();if(!p)throw new Error("Server not found");let g=t.clients().get(l);if(!g)throw new Error("Client not found");let m=A.get(l);m&&(m(),A.delete(l));let h=p.subscribeToDiagnostics(C=>t.notify(`${d}/tsserver-event`,l,C));return A.set(l,h),g.once("close",()=>{h(),A.delete(l)}),{ok:!0}}),t.register("unsubscribeFromDiagnostics",async(u,l)=>{let d=A.get(l);return d&&(d(),A.delete(l)),{ok:!0}}),t.register("ping",()=>(s.lastRequestTime=performance.now(),{version:mt,supports:["customInstructions","newChat","clearSession","appCustomInstructions","fileWatcher","discardChanges","searchFileTree","listDir","listCustomInstructions","tsserver"]})),t.register("getProcessInfo",()=>i.isLocal?{pid:process.pid,cwd:process.cwd(),localMode:!0}:{error:"Process info only available in local mode"}),t.register("getBuilderRules",async()=>{let u=await Ja();if(!u){let l=e.resolve(e.getAppRootDir(),".builderrules");return await e.exists(l)?await e.readFile(l):null}try{return await u.readFile(".builderrules",!0)}catch{return null}}),t.register("setBuilderRules",async u=>{let l=await Ja(),d=u[1];if(!l){let p=e.resolve(e.getAppRootDir(),".builderrules");d?await e.writeFile(p,d):await e.exists(p)&&await e.unlink(p);return}d?await l.writeFile(".builderrules",d,!0):await l.deleteFile(".builderrules",!0)}),t.register("subscribeTerminal",async(u,l)=>{let[d,{terminalId:p}]=u,g=t.clients().get(l);if(!g)throw new Error("Client not found");let m=await Ja();if(!m)throw new Error("Server not found");let h=m.subscribeTerminal({terminalId:p,onData:C=>t.notify(`${d}/terminal/${p}`,l,[C]),onExit:C=>t.notify(`${d}/terminal/${p}/exit`,l,[C])});return h&&g.on("close",h),{ok:!0,created:!!h}});let c=new Map;t.register("subscribeToFileChanges",async(u,l)=>{let[d]=u,p=await Ja();if(!p)throw new Error("Server not found");let g=t.clients().get(l);if(!g)throw new Error("Client not found");let m=c.get(l);m&&(await m(),c.delete(l));let h=p.subscribeToFileChanges(C=>t.notify(`${d}/file-changes`,l,C));return c.set(l,h),g.once("close",async()=>{await h(),c.delete(l)}),{ok:!0}}),t.register("unsubscribeFromFileChanges",async(u,l)=>{let d=c.get(l);return d&&(await d(),c.delete(l)),{ok:!0}})}async function mpt(t,e,i,n,r,s,o,a){let A=[];!a?.enabled&&i.projectId&&i.branchName&&process.env.FUSION_ENVIRONMENT?.startsWith("cloud")&&typeof i.browserAutomationInstructions=="string"&&A.push(f0e),i.branchType==="code-review"&&A.push(fK),i.branchType==="setup-project"&&A.push(E0e),i.branchType==="org-agent"&&(A.push(y0e),A.push(D0e)),A.push(C0e),i.customAgents&&A.push(...i.customAgents);let u=new _a({sys:t,credentials:e,position:"fusion",sessionOrCompletionId:i.sessionId??r,mode:"quality-v4",maxTokens:8e4,mcpServers:!0,autoImportLocalMCPs:!0,fusionConfig:i,privacyMode:a,builtInMCPServerConfig:i.mcpServers,builtInCustomInstructions:[...o??[],...i.customInstructions??[]],builtInCustomAgents:A,agentType:i.agentType,devServerOrchestrator:n,git:!!i.projectId,fusionStatusMonitor:yl??void 0,gitAutoInit:!0});i.projectId&&u.setDebug(!0);try{if(i.isLocal){let l=await lde();if(l)throw cn(l),l}await u.initializeSession()}catch(l){throw s.state="session-error",s.errorMessage=l instanceof Error?l.message:String(l),l}if(s.state="active-session",s.isFinalState=!0,IK=u,s.sessionId=u.getSessionId(),i.branchType==="org-agent"){let l=t.join(u.primaryGitPath,"cron-jobs.json"),d=e.builderPrivateKey??e.builderPublicKey,p=e.builderPublicKey;d&&p&&i.projectId&&i.branchName&&(Ow=v0e({cronFilePath:l,apiHost:Ue,projectId:i.projectId,branchName:i.branchName,ownerId:p,privateKey:d}));let g=e.builderPrivateKey??e.builderPublicKey,m=e.builderPublicKey;if(g&&m){let h=u.bashWorkingDirectory,C=120*1e3;Hge(async()=>{try{await Gw({sys:t,ownerId:m,privateKey:g,outputDir:h})}catch(I){Os.error(`Org tree sync failed: ${I instanceof Error?I.message:String(I)}`)}}),lf(),Kw=setInterval(lf,C)}}return u}function Ja(){return th||Promise.resolve(void 0)}function vB(t,e,i,n,r,s,o,a){return th||(th=mpt(t,e,i,n,r,s,o,a)),th}function fpt(t,e,i){if(e.isLocal)return()=>{};let s=24*(3600*1e3),o=Date.now(),a=setInterval(()=>{let A=Date.now()-o,c=Math.floor(A/s);c>1&&t.Sentry?.captureException(new Error(`Rogue devtools detected: ${c} days`),{extra:{timeSinceStart:A},contexts:{flyIo:i,fusionConfig:{...e}}})},s*2);return()=>clearInterval(a)}function S0e(t){return t==="https:"||t==="wss:"}function hpt(t){return t.startsWith("ws://")?t.replace("ws://","http://"):t.startsWith("wss://")?t.replace("wss://","https://"):t}var Cpt=t=>(e,i,n)=>{t.httpClients++;let r=!0,s=()=>{r&&(r=!1,t.httpClients--)};i.once("finish",s),i.once("close",s),n()};var Dl=X(Ui(),1);dn();In();f();var Dg=X(require("@sentry/node"),1);zt();var ja=X(Ui(),1);si();In();tn();var Ww=X(require("crypto"),1);Hi();dn();Zs();Zs();var MK=X(hxe(),1);f();f();I0();f();f();function Cxe(t){return t===161||t===164||t===167||t===168||t===170||t===173||t===174||t>=176&&t<=180||t>=182&&t<=186||t>=188&&t<=191||t===198||t===208||t===215||t===216||t>=222&&t<=225||t===230||t>=232&&t<=234||t===236||t===237||t===240||t===242||t===243||t>=247&&t<=250||t===252||t===254||t===257||t===273||t===275||t===283||t===294||t===295||t===299||t>=305&&t<=307||t===312||t>=319&&t<=322||t===324||t>=328&&t<=331||t===333||t===338||t===339||t===358||t===359||t===363||t===462||t===464||t===466||t===468||t===470||t===472||t===474||t===476||t===593||t===609||t===708||t===711||t>=713&&t<=715||t===717||t===720||t>=728&&t<=731||t===733||t===735||t>=768&&t<=879||t>=913&&t<=929||t>=931&&t<=937||t>=945&&t<=961||t>=963&&t<=969||t===1025||t>=1040&&t<=1103||t===1105||t===8208||t>=8211&&t<=8214||t===8216||t===8217||t===8220||t===8221||t>=8224&&t<=8226||t>=8228&&t<=8231||t===8240||t===8242||t===8243||t===8245||t===8251||t===8254||t===8308||t===8319||t>=8321&&t<=8324||t===8364||t===8451||t===8453||t===8457||t===8467||t===8470||t===8481||t===8482||t===8486||t===8491||t===8531||t===8532||t>=8539&&t<=8542||t>=8544&&t<=8555||t>=8560&&t<=8569||t===8585||t>=8592&&t<=8601||t===8632||t===8633||t===8658||t===8660||t===8679||t===8704||t===8706||t===8707||t===8711||t===8712||t===8715||t===8719||t===8721||t===8725||t===8730||t>=8733&&t<=8736||t===8739||t===8741||t>=8743&&t<=8748||t===8750||t>=8756&&t<=8759||t===8764||t===8765||t===8776||t===8780||t===8786||t===8800||t===8801||t>=8804&&t<=8807||t===8810||t===8811||t===8814||t===8815||t===8834||t===8835||t===8838||t===8839||t===8853||t===8857||t===8869||t===8895||t===8978||t>=9312&&t<=9449||t>=9451&&t<=9547||t>=9552&&t<=9587||t>=9600&&t<=9615||t>=9618&&t<=9621||t===9632||t===9633||t>=9635&&t<=9641||t===9650||t===9651||t===9654||t===9655||t===9660||t===9661||t===9664||t===9665||t>=9670&&t<=9672||t===9675||t>=9678&&t<=9681||t>=9698&&t<=9701||t===9711||t===9733||t===9734||t===9737||t===9742||t===9743||t===9756||t===9758||t===9792||t===9794||t===9824||t===9825||t>=9827&&t<=9829||t>=9831&&t<=9834||t===9836||t===9837||t===9839||t===9886||t===9887||t===9919||t>=9926&&t<=9933||t>=9935&&t<=9939||t>=9941&&t<=9953||t===9955||t===9960||t===9961||t>=9963&&t<=9969||t===9972||t>=9974&&t<=9977||t===9979||t===9980||t===9982||t===9983||t===10045||t>=10102&&t<=10111||t>=11094&&t<=11097||t>=12872&&t<=12879||t>=57344&&t<=63743||t>=65024&&t<=65039||t===65533||t>=127232&&t<=127242||t>=127248&&t<=127277||t>=127280&&t<=127337||t>=127344&&t<=127373||t===127375||t===127376||t>=127387&&t<=127404||t>=917760&&t<=917999||t>=983040&&t<=1048573||t>=1048576&&t<=1114109}function Ixe(t){return t===12288||t>=65281&&t<=65376||t>=65504&&t<=65510}function Exe(t){return t>=4352&&t<=4447||t===8986||t===8987||t===9001||t===9002||t>=9193&&t<=9196||t===9200||t===9203||t===9725||t===9726||t===9748||t===9749||t>=9776&&t<=9783||t>=9800&&t<=9811||t===9855||t>=9866&&t<=9871||t===9875||t===9889||t===9898||t===9899||t===9917||t===9918||t===9924||t===9925||t===9934||t===9940||t===9962||t===9970||t===9971||t===9973||t===9978||t===9981||t===9989||t===9994||t===9995||t===10024||t===10060||t===10062||t>=10067&&t<=10069||t===10071||t>=10133&&t<=10135||t===10160||t===10175||t===11035||t===11036||t===11088||t===11093||t>=11904&&t<=11929||t>=11931&&t<=12019||t>=12032&&t<=12245||t>=12272&&t<=12287||t>=12289&&t<=12350||t>=12353&&t<=12438||t>=12441&&t<=12543||t>=12549&&t<=12591||t>=12593&&t<=12686||t>=12688&&t<=12773||t>=12783&&t<=12830||t>=12832&&t<=12871||t>=12880&&t<=42124||t>=42128&&t<=42182||t>=43360&&t<=43388||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65106||t>=65108&&t<=65126||t>=65128&&t<=65131||t>=94176&&t<=94180||t===94192||t===94193||t>=94208&&t<=100343||t>=100352&&t<=101589||t>=101631&&t<=101640||t>=110576&&t<=110579||t>=110581&&t<=110587||t===110589||t===110590||t>=110592&&t<=110882||t===110898||t>=110928&&t<=110930||t===110933||t>=110948&&t<=110951||t>=110960&&t<=111355||t>=119552&&t<=119638||t>=119648&&t<=119670||t===126980||t===127183||t===127374||t>=127377&&t<=127386||t>=127488&&t<=127490||t>=127504&&t<=127547||t>=127552&&t<=127560||t===127568||t===127569||t>=127584&&t<=127589||t>=127744&&t<=127776||t>=127789&&t<=127797||t>=127799&&t<=127868||t>=127870&&t<=127891||t>=127904&&t<=127946||t>=127951&&t<=127955||t>=127968&&t<=127984||t===127988||t>=127992&&t<=128062||t===128064||t>=128066&&t<=128252||t>=128255&&t<=128317||t>=128331&&t<=128334||t>=128336&&t<=128359||t===128378||t===128405||t===128406||t===128420||t>=128507&&t<=128591||t>=128640&&t<=128709||t===128716||t>=128720&&t<=128722||t>=128725&&t<=128727||t>=128732&&t<=128735||t===128747||t===128748||t>=128756&&t<=128764||t>=128992&&t<=129003||t===129008||t>=129292&&t<=129338||t>=129340&&t<=129349||t>=129351&&t<=129535||t>=129648&&t<=129660||t>=129664&&t<=129673||t>=129679&&t<=129734||t>=129742&&t<=129756||t>=129759&&t<=129769||t>=129776&&t<=129784||t>=131072&&t<=196605||t>=196608&&t<=262141}function $pt(t){if(!Number.isSafeInteger(t))throw new TypeError(`Expected a code point, got \`${typeof t}\`.`)}function Bxe(t,{ambiguousAsWide:e=!1}={}){return $pt(t),Ixe(t)||Exe(t)||e&&Cxe(t)?2:1}var Dxe=X(Qxe(),1),qpt=new Intl.Segmenter,zpt=/^\p{Default_Ignorable_Code_Point}$/u;function yg(t,e={}){if(typeof t!="string"||t.length===0)return 0;let{ambiguousIsNarrow:i=!0,countAnsiEscapeCodes:n=!1}=e;if(n||(t=hp(t)),t.length===0)return 0;let r=0,s={ambiguousAsWide:!i};for(let{segment:o}of qpt.segment(t)){let a=o.codePointAt(0);if(!(a<=31||a>=127&&a<=159)&&!(a>=8203&&a<=8207||a===65279)&&!(a>=768&&a<=879||a>=6832&&a<=6911||a>=7616&&a<=7679||a>=8400&&a<=8447||a>=65056&&a<=65071)&&!(a>=55296&&a<=57343)&&!(a>=65024&&a<=65039)&&!zpt.test(o)){if((0,Dxe.default)().test(o)){r+=2;continue}r+=Bxe(a,s)}}return r}I0();f();var xxe=(t=0)=>e=>`\x1B[${e+t}m`,vxe=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,bxe=(t=0)=>(e,i,n)=>`\x1B[${38+t};2;${e};${i};${n}m`,Wi={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},pni=Object.keys(Wi.modifier),Vpt=Object.keys(Wi.color),Wpt=Object.keys(Wi.bgColor),gni=[...Vpt,...Wpt];function Zpt(){let t=new Map;for(let[e,i]of Object.entries(Wi)){for(let[n,r]of Object.entries(i))Wi[n]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},i[n]=Wi[n],t.set(r[0],r[1]);Object.defineProperty(Wi,e,{value:i,enumerable:!1})}return Object.defineProperty(Wi,"codes",{value:t,enumerable:!1}),Wi.color.close="\x1B[39m",Wi.bgColor.close="\x1B[49m",Wi.color.ansi=xxe(),Wi.color.ansi256=vxe(),Wi.color.ansi16m=bxe(),Wi.bgColor.ansi=xxe(10),Wi.bgColor.ansi256=vxe(10),Wi.bgColor.ansi16m=bxe(10),Object.defineProperties(Wi,{rgbToAnsi256:{value:(e,i,n)=>e===i&&i===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(i/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:e=>{let i=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!i)return[0,0,0];let[n]=i;n.length===3&&(n=[...n].map(s=>s+s).join(""));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:e=>Wi.rgbToAnsi256(...Wi.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value:e=>{if(e<8)return 30+e;if(e<16)return 90+(e-8);let i,n,r;if(e>=232)i=((e-232)*10+8)/255,n=i,r=i;else{e-=16;let a=e%36;i=Math.floor(e/36)/5,n=Math.floor(a/6)/5,r=a%6/5}let s=Math.max(i,n,r)*2;if(s===0)return 30;let o=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(i));return s===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,i,n)=>Wi.ansi256ToAnsi(Wi.rgbToAnsi256(e,i,n)),enumerable:!1},hexToAnsi:{value:e=>Wi.ansi256ToAnsi(Wi.hexToAnsi256(e)),enumerable:!1}}),Wi}var Xpt=Zpt(),wxe=Xpt;var Yw=new Set(["\x1B","\x9B"]),egt=39,kK="\x07",kxe="[",tgt="]",Rxe="m",jw=`${tgt}8;;`,Sxe=t=>`${Yw.values().next().value}${kxe}${t}${Rxe}`,Fxe=t=>`${Yw.values().next().value}${jw}${t}${kK}`,igt=t=>t.split(" ").map(e=>yg(e)),FK=(t,e,i)=>{let n=[...e],r=!1,s=!1,o=yg(hp(t.at(-1)));for(let[a,A]of n.entries()){let c=yg(A);if(o+c<=i?t[t.length-1]+=A:(t.push(A),o=0),Yw.has(A)&&(r=!0,s=n.slice(a+1,a+1+jw.length).join("")===jw),r){s?A===kK&&(r=!1,s=!1):A===Rxe&&(r=!1);continue}o+=c,o===i&&a<n.length-1&&(t.push(""),o=0)}!o&&t.at(-1).length>0&&t.length>1&&(t[t.length-2]+=t.pop())},ngt=t=>{let e=t.split(" "),i=e.length;for(;i>0&&!(yg(e[i-1])>0);)i--;return i===e.length?t:e.slice(0,i).join(" ")+e.slice(i).join("")},rgt=(t,e,i={})=>{if(i.trim!==!1&&t.trim()==="")return"";let n="",r,s,o=igt(t),a=[""];for(let[l,d]of t.split(" ").entries()){i.trim!==!1&&(a[a.length-1]=a.at(-1).trimStart());let p=yg(a.at(-1));if(l!==0&&(p>=e&&(i.wordWrap===!1||i.trim===!1)&&(a.push(""),p=0),(p>0||i.trim===!1)&&(a[a.length-1]+=" ",p++)),i.hard&&o[l]>e){let g=e-p,m=1+Math.floor((o[l]-g-1)/e);Math.floor((o[l]-1)/e)<m&&a.push(""),FK(a,d,e);continue}if(p+o[l]>e&&p>0&&o[l]>0){if(i.wordWrap===!1&&p<e){FK(a,d,e);continue}a.push("")}if(p+o[l]>e&&i.wordWrap===!1){FK(a,d,e);continue}a[a.length-1]+=d}i.trim!==!1&&(a=a.map(l=>ngt(l)));let A=a.join(`
|
|
5964
|
+
`),x.destroy();return}};s.on("upgrade",C),o?.on("upgrade",C),dpt({ws:h,sys:t,credentials:e,fusionConfig:n,devServer:u,sharedState:l}),l.state="ready";try{let{getTunnelManager:Q,VSCodeTunnelManager:x}=await Promise.resolve().then(()=>(gm(),WC));if(x.isEnabled()&&x.isAutoStartEnabled()){let v=x.getTunnelName(n.projectId,n.branchName),F=x.getWorkspacePath();G.info(`\u{1F517} Starting VS Code tunnel: ${v}`);let w=Q();w.on("error",k=>{G.error(`\u274C VS Code tunnel error: ${k}`),t.Sentry?.captureException(new Error(String(k)),{tags:{operation:"vscode-tunnel-error-event"}})}),w.start({name:v,workspacePath:F,acceptLicense:!0,autoRestart:!0}).then(k=>{k.status==="running"&&k.webUrl&&(G.info(`\u2705 VS Code tunnel ready: ${k.webUrl}`),k.vscodeUri&&G.info(` VS Code: ${k.vscodeUri}`),k.cursorUri&&G.info(` Cursor: ${k.cursorUri}`))}).catch(k=>{G.error(`\u274C VS Code tunnel failed: ${k.message}`),t.Sentry?.captureException(k,{tags:{operation:"vscode-tunnel-auto-start"}})})}}catch(Q){t.Sentry?.captureException(Q,{tags:{operation:"vscode-tunnel-init"}})}let I=i.app||i.nativeApp?"builder://":i.dev?"http://localhost:1234":"https://builder.io",B=new URL(`${I}/app/projects/local`);B.searchParams.set("localEditUrl",a);let E=await t.getDeviceId();if(E&&B.searchParams.set("host",E),e.builderPublicKey&&B.searchParams.set("spaceId",e.builderPublicKey),i.chat&&B.searchParams.set("chatOnly","true"),i.jsonOutput){let Q={type:"server_ready",data:{proxyUrl:a,httpsProxyUrl:A,customHttpsProxyUrl:c,fusionEditorUrl:n.nativeApp?null:B.href,urlHost:I,command:n.devCommand,serverUrl:n.serverUrl,credentials:e,nativeApp:n.nativeApp}};console.log(JSON.stringify(Q))}i.open===!1?n.isLocal&&console.log(`\u{1F517} Access Builder.io at: ${B.href}`):(G.info(`OPEN BROWSER: ${B.href}`),await ul(B.href)),setTimeout(()=>{l.editorReady=!0},100)}catch(g){l.state="init-error",l.isFinalState=!0,l.errorMessage=g instanceof Error?g.message:String(g),t.Sentry?.captureException(g,{level:"fatal"})}}function dpt({ws:t,sys:e,fusionConfig:i,credentials:n,devServer:r,sharedState:s}){let o=!1;t.register("initializeSession",async u=>{let l,d,p;typeof u[0]=="object"&&u[0]?{sessionId:l,customInstructions:d,privacyMode:p}=u[0]:typeof u[0]=="string"&&(l=u[0]);let g=await vB(e,n,i,r,l,s,d,p||i.privacyMode);return o||(o=!0,Zp(n,"/events/publish",{event:ote,extraData:{sessionId:g.getSessionId(),sessionType:i.branchType??"interactive",projectId:i.projectId,branchName:i.branchName,platform:process.platform}})),g.getSessionId()}),t.register("connectToEventLoop",async(u,l)=>{let d=await Ja();if(!d)throw new Error("Server not found");let p=t.clients().get(l);if(!p)throw new Error("Client not found");let g=d.getSessionId(),m=d.connectToEventLoop(!0,h=>{h&&!h.timestamp&&(h.timestamp=Date.now()),t.notify(`${g}/event`,l,[JSON.stringify(h)])},{canHandleTools:["AskUserQuestion","GetScreenshot","ExitPlanMode","NavigatePreview","ProposeEnvVariable"]});p.on("close",m)}),t.register("setFeatureFlags",async u=>{mK(u[0])});function a(u){t.register(u,async([l,...d])=>{let p=Pa();!i.isLocal&&process.env.DEBUG&&Os.debug(`[WS](${u}-${p}): ${JSON.stringify(d)}`);let g=performance.now();try{let m=await Ja();if(!m)throw new Error("Server not found");let h=m[u];if(typeof h!="function")throw new Error(`Method ${u} not found on codeGenServer`);let C=await h.apply(m,d);if(!i.isLocal){let I=Math.round(performance.now()-g);console.log(`[WS](${u}-${p}): success [${I}ms]`)}return C}catch(m){if(!i.isLocal){let h=Math.round(performance.now()-g);console.log(`[WS](${u}-${p}): error [${h}ms]`)}throw m instanceof Ft||e.Sentry?.captureException(m,{tags:{functionName:u},extra:{args:d}}),m}})}a("stopEventLoop"),a("abort"),a("abortToolCall"),a("abortSetupCommand"),a("abortValidateCommand"),a("setPrivacyMode"),a("clearSession"),a("loadHistory"),a("loadMoreTurns"),a("getAllFiles"),a("searchFiles"),a("searchFileTree"),a("sendFeedback"),a("setCustomInstructions"),a("setProxyOrigin"),a("sendMessage"),a("queueSystemReminder"),a("clearMessageQueue"),a("flushMessageQueue"),a("updateMessage"),a("configureDevOrchestrator"),a("restoreFromCompletionId"),a("restoreBeforeCompletionId"),a("undoLastUserMessage"),a("pushChanges"),a("abortMerge"),a("setDefaultAutoPush"),a("syncChangesFromRemote"),a("pushRepoV2"),a("readFile"),a("readFileWithChecksum"),a("readBinaryFile"),a("writeFile"),a("deleteFile"),a("fileExists"),a("listDir"),a("manualCommit"),a("uploadBackup"),a("getDiff"),a("getSingleFileDiff"),a("toolFullfilment"),a("createTerminal"),a("writeTerminal"),a("updateTerminal"),a("signalTerminal"),a("disposeTerminal"),a("restartTerminal"),a("collectRepoMetrics"),a("launchEditor"),a("discardFileChanges"),a("revertDiscard"),a("listCustomInstructions"),a("tsServerInit"),a("tsServerOpenFile"),a("tsServerChangeFile"),a("tsServerCloseFile"),a("tsServerGetCompletions"),a("tsServerGetCompletionDetails"),a("tsServerGetDefinition"),a("tsServerGetTypeDefinition"),a("tsServerGetQuickInfo"),a("tsServerGetReferences"),a("tsServerGetSignatureHelp"),a("tsServerRequestDiagnostics"),a("tsServerGetRenameLocations"),a("tsServerGetNavTree"),a("tsServerOrganizeImports"),a("tsServerGetInlayHints"),a("tsServerGetCodeFixes"),a("tsServerGetApplicableRefactors"),a("tsServerGetEditsForRefactor"),a("tsServerGetImplementation"),a("tsServerGetSelectionRange"),a("tsServerGetLinkedEditingRange"),a("tsServerGetFormatRange");let A=new Map;t.register("subscribeToDiagnostics",async(u,l)=>{let[d]=u,p=await Ja();if(!p)throw new Error("Server not found");let g=t.clients().get(l);if(!g)throw new Error("Client not found");let m=A.get(l);m&&(m(),A.delete(l));let h=p.subscribeToDiagnostics(C=>t.notify(`${d}/tsserver-event`,l,C));return A.set(l,h),g.once("close",()=>{h(),A.delete(l)}),{ok:!0}}),t.register("unsubscribeFromDiagnostics",async(u,l)=>{let d=A.get(l);return d&&(d(),A.delete(l)),{ok:!0}}),t.register("ping",()=>(s.lastRequestTime=performance.now(),{version:mt,supports:["customInstructions","newChat","clearSession","appCustomInstructions","fileWatcher","discardChanges","searchFileTree","listDir","listCustomInstructions","tsserver"]})),t.register("getProcessInfo",()=>i.isLocal?{pid:process.pid,cwd:process.cwd(),localMode:!0}:{error:"Process info only available in local mode"}),t.register("getBuilderRules",async()=>{let u=await Ja();if(!u){let l=e.resolve(e.getAppRootDir(),".builderrules");return await e.exists(l)?await e.readFile(l):null}try{return await u.readFile(".builderrules",!0)}catch{return null}}),t.register("setBuilderRules",async u=>{let l=await Ja(),d=u[1];if(!l){let p=e.resolve(e.getAppRootDir(),".builderrules");d?await e.writeFile(p,d):await e.exists(p)&&await e.unlink(p);return}d?await l.writeFile(".builderrules",d,!0):await l.deleteFile(".builderrules",!0)}),t.register("subscribeTerminal",async(u,l)=>{let[d,{terminalId:p}]=u,g=t.clients().get(l);if(!g)throw new Error("Client not found");let m=await Ja();if(!m)throw new Error("Server not found");let h=m.subscribeTerminal({terminalId:p,onData:C=>t.notify(`${d}/terminal/${p}`,l,[C]),onExit:C=>t.notify(`${d}/terminal/${p}/exit`,l,[C])});return h&&g.on("close",h),{ok:!0,created:!!h}});let c=new Map;t.register("subscribeToFileChanges",async(u,l)=>{let[d]=u,p=await Ja();if(!p)throw new Error("Server not found");let g=t.clients().get(l);if(!g)throw new Error("Client not found");let m=c.get(l);m&&(await m(),c.delete(l));let h=p.subscribeToFileChanges(C=>t.notify(`${d}/file-changes`,l,C));return c.set(l,h),g.once("close",async()=>{await h(),c.delete(l)}),{ok:!0}}),t.register("unsubscribeFromFileChanges",async(u,l)=>{let d=c.get(l);return d&&(await d(),c.delete(l)),{ok:!0}})}async function mpt(t,e,i,n,r,s,o,a){let A=[];!a?.enabled&&i.projectId&&i.branchName&&process.env.FUSION_ENVIRONMENT?.startsWith("cloud")&&typeof i.browserAutomationInstructions=="string"&&A.push(f0e),i.branchType==="code-review"&&A.push(fK),i.branchType==="setup-project"&&A.push(E0e),i.branchType==="org-agent"&&(A.push(y0e),A.push(D0e)),i.branchType||(A.push(C0e),i.customAgents&&A.push(...i.customAgents));let u=new _a({sys:t,credentials:e,position:"fusion",sessionOrCompletionId:i.sessionId??r,mode:"quality-v4",maxTokens:8e4,mcpServers:!0,autoImportLocalMCPs:!0,fusionConfig:i,privacyMode:a,builtInMCPServerConfig:i.mcpServers,builtInCustomInstructions:[...o??[],...i.customInstructions??[]],builtInCustomAgents:A,agentType:i.agentType,devServerOrchestrator:n,git:!!i.projectId,fusionStatusMonitor:yl??void 0,gitAutoInit:!0});i.projectId&&u.setDebug(!0);try{if(i.isLocal){let l=await lde();if(l)throw cn(l),l}await u.initializeSession()}catch(l){throw s.state="session-error",s.errorMessage=l instanceof Error?l.message:String(l),l}if(s.state="active-session",s.isFinalState=!0,IK=u,s.sessionId=u.getSessionId(),i.branchType==="org-agent"){let l=t.join(u.primaryGitPath,"cron-jobs.json"),d=e.builderPrivateKey??e.builderPublicKey,p=e.builderPublicKey;d&&p&&i.projectId&&i.branchName&&(Ow=v0e({cronFilePath:l,apiHost:Ue,projectId:i.projectId,branchName:i.branchName,ownerId:p,privateKey:d}));let g=e.builderPrivateKey??e.builderPublicKey,m=e.builderPublicKey;if(g&&m){let h=u.bashWorkingDirectory,C=120*1e3;Hge(async()=>{try{await Gw({sys:t,ownerId:m,privateKey:g,outputDir:h})}catch(I){Os.error(`Org tree sync failed: ${I instanceof Error?I.message:String(I)}`)}}),lf(),Kw=setInterval(lf,C)}}return u}function Ja(){return th||Promise.resolve(void 0)}function vB(t,e,i,n,r,s,o,a){return th||(th=mpt(t,e,i,n,r,s,o,a)),th}function fpt(t,e,i){if(e.isLocal)return()=>{};let s=24*(3600*1e3),o=Date.now(),a=setInterval(()=>{let A=Date.now()-o,c=Math.floor(A/s);c>1&&t.Sentry?.captureException(new Error(`Rogue devtools detected: ${c} days`),{extra:{timeSinceStart:A},contexts:{flyIo:i,fusionConfig:{...e}}})},s*2);return()=>clearInterval(a)}function S0e(t){return t==="https:"||t==="wss:"}function hpt(t){return t.startsWith("ws://")?t.replace("ws://","http://"):t.startsWith("wss://")?t.replace("wss://","https://"):t}var Cpt=t=>(e,i,n)=>{t.httpClients++;let r=!0,s=()=>{r&&(r=!1,t.httpClients--)};i.once("finish",s),i.once("close",s),n()};var Dl=X(Ui(),1);dn();In();f();var Dg=X(require("@sentry/node"),1);zt();var ja=X(Ui(),1);si();In();tn();var Ww=X(require("crypto"),1);Hi();dn();Zs();Zs();var MK=X(hxe(),1);f();f();I0();f();f();function Cxe(t){return t===161||t===164||t===167||t===168||t===170||t===173||t===174||t>=176&&t<=180||t>=182&&t<=186||t>=188&&t<=191||t===198||t===208||t===215||t===216||t>=222&&t<=225||t===230||t>=232&&t<=234||t===236||t===237||t===240||t===242||t===243||t>=247&&t<=250||t===252||t===254||t===257||t===273||t===275||t===283||t===294||t===295||t===299||t>=305&&t<=307||t===312||t>=319&&t<=322||t===324||t>=328&&t<=331||t===333||t===338||t===339||t===358||t===359||t===363||t===462||t===464||t===466||t===468||t===470||t===472||t===474||t===476||t===593||t===609||t===708||t===711||t>=713&&t<=715||t===717||t===720||t>=728&&t<=731||t===733||t===735||t>=768&&t<=879||t>=913&&t<=929||t>=931&&t<=937||t>=945&&t<=961||t>=963&&t<=969||t===1025||t>=1040&&t<=1103||t===1105||t===8208||t>=8211&&t<=8214||t===8216||t===8217||t===8220||t===8221||t>=8224&&t<=8226||t>=8228&&t<=8231||t===8240||t===8242||t===8243||t===8245||t===8251||t===8254||t===8308||t===8319||t>=8321&&t<=8324||t===8364||t===8451||t===8453||t===8457||t===8467||t===8470||t===8481||t===8482||t===8486||t===8491||t===8531||t===8532||t>=8539&&t<=8542||t>=8544&&t<=8555||t>=8560&&t<=8569||t===8585||t>=8592&&t<=8601||t===8632||t===8633||t===8658||t===8660||t===8679||t===8704||t===8706||t===8707||t===8711||t===8712||t===8715||t===8719||t===8721||t===8725||t===8730||t>=8733&&t<=8736||t===8739||t===8741||t>=8743&&t<=8748||t===8750||t>=8756&&t<=8759||t===8764||t===8765||t===8776||t===8780||t===8786||t===8800||t===8801||t>=8804&&t<=8807||t===8810||t===8811||t===8814||t===8815||t===8834||t===8835||t===8838||t===8839||t===8853||t===8857||t===8869||t===8895||t===8978||t>=9312&&t<=9449||t>=9451&&t<=9547||t>=9552&&t<=9587||t>=9600&&t<=9615||t>=9618&&t<=9621||t===9632||t===9633||t>=9635&&t<=9641||t===9650||t===9651||t===9654||t===9655||t===9660||t===9661||t===9664||t===9665||t>=9670&&t<=9672||t===9675||t>=9678&&t<=9681||t>=9698&&t<=9701||t===9711||t===9733||t===9734||t===9737||t===9742||t===9743||t===9756||t===9758||t===9792||t===9794||t===9824||t===9825||t>=9827&&t<=9829||t>=9831&&t<=9834||t===9836||t===9837||t===9839||t===9886||t===9887||t===9919||t>=9926&&t<=9933||t>=9935&&t<=9939||t>=9941&&t<=9953||t===9955||t===9960||t===9961||t>=9963&&t<=9969||t===9972||t>=9974&&t<=9977||t===9979||t===9980||t===9982||t===9983||t===10045||t>=10102&&t<=10111||t>=11094&&t<=11097||t>=12872&&t<=12879||t>=57344&&t<=63743||t>=65024&&t<=65039||t===65533||t>=127232&&t<=127242||t>=127248&&t<=127277||t>=127280&&t<=127337||t>=127344&&t<=127373||t===127375||t===127376||t>=127387&&t<=127404||t>=917760&&t<=917999||t>=983040&&t<=1048573||t>=1048576&&t<=1114109}function Ixe(t){return t===12288||t>=65281&&t<=65376||t>=65504&&t<=65510}function Exe(t){return t>=4352&&t<=4447||t===8986||t===8987||t===9001||t===9002||t>=9193&&t<=9196||t===9200||t===9203||t===9725||t===9726||t===9748||t===9749||t>=9776&&t<=9783||t>=9800&&t<=9811||t===9855||t>=9866&&t<=9871||t===9875||t===9889||t===9898||t===9899||t===9917||t===9918||t===9924||t===9925||t===9934||t===9940||t===9962||t===9970||t===9971||t===9973||t===9978||t===9981||t===9989||t===9994||t===9995||t===10024||t===10060||t===10062||t>=10067&&t<=10069||t===10071||t>=10133&&t<=10135||t===10160||t===10175||t===11035||t===11036||t===11088||t===11093||t>=11904&&t<=11929||t>=11931&&t<=12019||t>=12032&&t<=12245||t>=12272&&t<=12287||t>=12289&&t<=12350||t>=12353&&t<=12438||t>=12441&&t<=12543||t>=12549&&t<=12591||t>=12593&&t<=12686||t>=12688&&t<=12773||t>=12783&&t<=12830||t>=12832&&t<=12871||t>=12880&&t<=42124||t>=42128&&t<=42182||t>=43360&&t<=43388||t>=44032&&t<=55203||t>=63744&&t<=64255||t>=65040&&t<=65049||t>=65072&&t<=65106||t>=65108&&t<=65126||t>=65128&&t<=65131||t>=94176&&t<=94180||t===94192||t===94193||t>=94208&&t<=100343||t>=100352&&t<=101589||t>=101631&&t<=101640||t>=110576&&t<=110579||t>=110581&&t<=110587||t===110589||t===110590||t>=110592&&t<=110882||t===110898||t>=110928&&t<=110930||t===110933||t>=110948&&t<=110951||t>=110960&&t<=111355||t>=119552&&t<=119638||t>=119648&&t<=119670||t===126980||t===127183||t===127374||t>=127377&&t<=127386||t>=127488&&t<=127490||t>=127504&&t<=127547||t>=127552&&t<=127560||t===127568||t===127569||t>=127584&&t<=127589||t>=127744&&t<=127776||t>=127789&&t<=127797||t>=127799&&t<=127868||t>=127870&&t<=127891||t>=127904&&t<=127946||t>=127951&&t<=127955||t>=127968&&t<=127984||t===127988||t>=127992&&t<=128062||t===128064||t>=128066&&t<=128252||t>=128255&&t<=128317||t>=128331&&t<=128334||t>=128336&&t<=128359||t===128378||t===128405||t===128406||t===128420||t>=128507&&t<=128591||t>=128640&&t<=128709||t===128716||t>=128720&&t<=128722||t>=128725&&t<=128727||t>=128732&&t<=128735||t===128747||t===128748||t>=128756&&t<=128764||t>=128992&&t<=129003||t===129008||t>=129292&&t<=129338||t>=129340&&t<=129349||t>=129351&&t<=129535||t>=129648&&t<=129660||t>=129664&&t<=129673||t>=129679&&t<=129734||t>=129742&&t<=129756||t>=129759&&t<=129769||t>=129776&&t<=129784||t>=131072&&t<=196605||t>=196608&&t<=262141}function $pt(t){if(!Number.isSafeInteger(t))throw new TypeError(`Expected a code point, got \`${typeof t}\`.`)}function Bxe(t,{ambiguousAsWide:e=!1}={}){return $pt(t),Ixe(t)||Exe(t)||e&&Cxe(t)?2:1}var Dxe=X(Qxe(),1),qpt=new Intl.Segmenter,zpt=/^\p{Default_Ignorable_Code_Point}$/u;function yg(t,e={}){if(typeof t!="string"||t.length===0)return 0;let{ambiguousIsNarrow:i=!0,countAnsiEscapeCodes:n=!1}=e;if(n||(t=hp(t)),t.length===0)return 0;let r=0,s={ambiguousAsWide:!i};for(let{segment:o}of qpt.segment(t)){let a=o.codePointAt(0);if(!(a<=31||a>=127&&a<=159)&&!(a>=8203&&a<=8207||a===65279)&&!(a>=768&&a<=879||a>=6832&&a<=6911||a>=7616&&a<=7679||a>=8400&&a<=8447||a>=65056&&a<=65071)&&!(a>=55296&&a<=57343)&&!(a>=65024&&a<=65039)&&!zpt.test(o)){if((0,Dxe.default)().test(o)){r+=2;continue}r+=Bxe(a,s)}}return r}I0();f();var xxe=(t=0)=>e=>`\x1B[${e+t}m`,vxe=(t=0)=>e=>`\x1B[${38+t};5;${e}m`,bxe=(t=0)=>(e,i,n)=>`\x1B[${38+t};2;${e};${i};${n}m`,Wi={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},pni=Object.keys(Wi.modifier),Vpt=Object.keys(Wi.color),Wpt=Object.keys(Wi.bgColor),gni=[...Vpt,...Wpt];function Zpt(){let t=new Map;for(let[e,i]of Object.entries(Wi)){for(let[n,r]of Object.entries(i))Wi[n]={open:`\x1B[${r[0]}m`,close:`\x1B[${r[1]}m`},i[n]=Wi[n],t.set(r[0],r[1]);Object.defineProperty(Wi,e,{value:i,enumerable:!1})}return Object.defineProperty(Wi,"codes",{value:t,enumerable:!1}),Wi.color.close="\x1B[39m",Wi.bgColor.close="\x1B[49m",Wi.color.ansi=xxe(),Wi.color.ansi256=vxe(),Wi.color.ansi16m=bxe(),Wi.bgColor.ansi=xxe(10),Wi.bgColor.ansi256=vxe(10),Wi.bgColor.ansi16m=bxe(10),Object.defineProperties(Wi,{rgbToAnsi256:{value:(e,i,n)=>e===i&&i===n?e<8?16:e>248?231:Math.round((e-8)/247*24)+232:16+36*Math.round(e/255*5)+6*Math.round(i/255*5)+Math.round(n/255*5),enumerable:!1},hexToRgb:{value:e=>{let i=/[a-f\d]{6}|[a-f\d]{3}/i.exec(e.toString(16));if(!i)return[0,0,0];let[n]=i;n.length===3&&(n=[...n].map(s=>s+s).join(""));let r=Number.parseInt(n,16);return[r>>16&255,r>>8&255,r&255]},enumerable:!1},hexToAnsi256:{value:e=>Wi.rgbToAnsi256(...Wi.hexToRgb(e)),enumerable:!1},ansi256ToAnsi:{value:e=>{if(e<8)return 30+e;if(e<16)return 90+(e-8);let i,n,r;if(e>=232)i=((e-232)*10+8)/255,n=i,r=i;else{e-=16;let a=e%36;i=Math.floor(e/36)/5,n=Math.floor(a/6)/5,r=a%6/5}let s=Math.max(i,n,r)*2;if(s===0)return 30;let o=30+(Math.round(r)<<2|Math.round(n)<<1|Math.round(i));return s===2&&(o+=60),o},enumerable:!1},rgbToAnsi:{value:(e,i,n)=>Wi.ansi256ToAnsi(Wi.rgbToAnsi256(e,i,n)),enumerable:!1},hexToAnsi:{value:e=>Wi.ansi256ToAnsi(Wi.hexToAnsi256(e)),enumerable:!1}}),Wi}var Xpt=Zpt(),wxe=Xpt;var Yw=new Set(["\x1B","\x9B"]),egt=39,kK="\x07",kxe="[",tgt="]",Rxe="m",jw=`${tgt}8;;`,Sxe=t=>`${Yw.values().next().value}${kxe}${t}${Rxe}`,Fxe=t=>`${Yw.values().next().value}${jw}${t}${kK}`,igt=t=>t.split(" ").map(e=>yg(e)),FK=(t,e,i)=>{let n=[...e],r=!1,s=!1,o=yg(hp(t.at(-1)));for(let[a,A]of n.entries()){let c=yg(A);if(o+c<=i?t[t.length-1]+=A:(t.push(A),o=0),Yw.has(A)&&(r=!0,s=n.slice(a+1,a+1+jw.length).join("")===jw),r){s?A===kK&&(r=!1,s=!1):A===Rxe&&(r=!1);continue}o+=c,o===i&&a<n.length-1&&(t.push(""),o=0)}!o&&t.at(-1).length>0&&t.length>1&&(t[t.length-2]+=t.pop())},ngt=t=>{let e=t.split(" "),i=e.length;for(;i>0&&!(yg(e[i-1])>0);)i--;return i===e.length?t:e.slice(0,i).join(" ")+e.slice(i).join("")},rgt=(t,e,i={})=>{if(i.trim!==!1&&t.trim()==="")return"";let n="",r,s,o=igt(t),a=[""];for(let[l,d]of t.split(" ").entries()){i.trim!==!1&&(a[a.length-1]=a.at(-1).trimStart());let p=yg(a.at(-1));if(l!==0&&(p>=e&&(i.wordWrap===!1||i.trim===!1)&&(a.push(""),p=0),(p>0||i.trim===!1)&&(a[a.length-1]+=" ",p++)),i.hard&&o[l]>e){let g=e-p,m=1+Math.floor((o[l]-g-1)/e);Math.floor((o[l]-1)/e)<m&&a.push(""),FK(a,d,e);continue}if(p+o[l]>e&&p>0&&o[l]>0){if(i.wordWrap===!1&&p<e){FK(a,d,e);continue}a.push("")}if(p+o[l]>e&&i.wordWrap===!1){FK(a,d,e);continue}a[a.length-1]+=d}i.trim!==!1&&(a=a.map(l=>ngt(l)));let A=a.join(`
|
|
5949
5965
|
`),c=[...A],u=0;for(let[l,d]of c.entries()){if(n+=d,Yw.has(d)){let{groups:g}=new RegExp(`(?:\\${kxe}(?<code>\\d+)m|\\${jw}(?<uri>.*)${kK})`).exec(A.slice(u))||{groups:{}};if(g.code!==void 0){let m=Number.parseFloat(g.code);r=m===egt?void 0:m}else g.uri!==void 0&&(s=g.uri.length===0?void 0:g.uri)}let p=wxe.codes.get(Number(r));c[l+1]===`
|
|
5950
5966
|
`?(s&&(n+=Fxe("")),r&&p&&(n+=Sxe(p))):d===`
|
|
5951
5967
|
`&&(r&&p&&(n+=Sxe(r)),s&&(n+=Fxe(s))),u+=d.length}return n};function wB(t,e,i){return String(t).normalize().replaceAll(`\r
|