@upstart.gg/sdk 0.0.69 → 0.0.70

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.
@@ -1,4 +1,4 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
2
 
3
- import{createLogger as E}from"vite";var g="0.0.69";import i from"chalk";function h(e,t,o=!1){let s=E(e==="debug"?"info":e,{prefix:"[enpage]",allowClearScreen:t});return o&&s.info(i.hex("#7270c6").bold(`\u{1F680} Enpage v${g}
4
- `)),{...s,success:(r,n)=>s.info(i.green(r),n),error:(r,n)=>s.error(i.red(r),n),warn:(r,n)=>s.warn(i.yellow(r),n),warnOnce:(r,n)=>s.warnOnce(i.yellow(r),n),debug:(r,n)=>{e==="debug"&&s.info(i.gray(r),n)}}}var p=h();var m="enpage-cli";var I=process.env.PUBLIC_ENPAGE_OAUTH_CLIENT_ID??"50000000-0000-0000-0000-000000000001",u=process.env.PUBLIC_ENPAGE_API_BASE_URL??"https://api.enpage.co",b=process.env.PUBLIC_ENPAGE_FRONTEND_BASE_URL??"https://enpage.co";import T from"conf";import c from"node:path";import _ from"node:crypto";import a from"node:fs";import{fileURLToPath as L}from"node:url";import F from"chalk";var x=L(new URL(".",import.meta.url)),R=P(),d=new T({projectName:m,encryptionKey:R,clearInvalidConfig:!0});function O(){let e=x;for(;e!==c.parse(e).root;){let t=c.join(e,"node_modules");if(a.existsSync(t))return t;e=c.dirname(e)}return null}function P(){let e=O();if(!e)throw new Error("Could not find nearest node_modules directory.");let t=c.join(e,".enpage-tmp");a.existsSync(t)||a.mkdirSync(t,{recursive:!0,mode:448});let o=c.join(t,".enpage-key");if(!a.existsSync(o)){let r=_.randomBytes(32).toString("hex");return a.writeFileSync(o,r,{mode:384,flush:!0}),r}return a.readFileSync(o,"utf8")}async function J(e,t,o={}){d.get("access_token")&&(o.Authorization=`Bearer ${d.get("access_token")}`);let s=await fetch(l(e),{method:"POST",headers:{"Content-Type":t instanceof URLSearchParams?"application/x-www-form-urlencoded":"application/json",...o},body:t instanceof URLSearchParams?t:JSON.stringify(t)}).catch(r=>{p.error(`Fatal Error requesting API: ${r.message} (${r.cause.code})`),p.error("Please check your internet connection and try again, or retry later."),process.exit(1)});return y(s)}async function K(e,t={}){d.get("access_token")&&(t.Authorization=`Bearer ${d.get("access_token")}`);let o=await fetch(l(e),{headers:t,method:"GET"}).catch(s=>{p.error(`Fatal Error requesting API: ${s.message} (${s.cause.code})`),p.error("Please check your internet connection and try again, or retry later."),process.exit(1)});return y(o)}function l(e){let t=new URL(u.endsWith("/")?u:`${u}/`);return new URL(e,t)}async function y(e){let t=e.headers.get("content-type")?.startsWith("application/json")?await e.json():await e.text();return e.ok?{isSuccess:!0,isError:!1,status:e.status,statusText:e.statusText,data:t}:{isSuccess:!1,isError:!0,status:e.status,statusText:e.statusText,data:t}}export{K as get,J as post};
3
+ import{createLogger as E}from"vite";var g="0.0.70";import i from"chalk";function h(e,t,o=!1){let s=E(e==="debug"?"info":e,{prefix:"[enpage]",allowClearScreen:t});return o&&s.info(i.hex("#7270c6").bold(`\u{1F680} Enpage v${g}
4
+ `)),{...s,success:(r,n)=>s.info(i.green(r),n),error:(r,n)=>s.error(i.red(r),n),warn:(r,n)=>s.warn(i.yellow(r),n),warnOnce:(r,n)=>s.warnOnce(i.yellow(r),n),debug:(r,n)=>{e==="debug"&&s.info(i.gray(r),n)}}}var p=h();var m="enpage-cli";var I=process.env.PUBLIC_ENPAGE_OAUTH_CLIENT_ID??"50000000-0000-0000-0000-000000000001",d=process.env.PUBLIC_ENPAGE_API_BASE_URL??"https://api.enpage.co",A=process.env.PUBLIC_ENPAGE_FRONTEND_BASE_URL??"https://enpage.co";import T from"conf";import c from"node:path";import _ from"node:crypto";import a from"node:fs";import{fileURLToPath as L}from"node:url";import F from"chalk";var x=L(new URL(".",import.meta.url)),R=P(),u=new T({projectName:m,encryptionKey:R,clearInvalidConfig:!0});function O(){let e=x;for(;e!==c.parse(e).root;){let t=c.join(e,"node_modules");if(a.existsSync(t))return t;e=c.dirname(e)}return null}function P(){let e=O();if(!e)throw new Error("Could not find nearest node_modules directory.");let t=c.join(e,".enpage-tmp");a.existsSync(t)||a.mkdirSync(t,{recursive:!0,mode:448});let o=c.join(t,".enpage-key");if(!a.existsSync(o)){let r=_.randomBytes(32).toString("hex");return a.writeFileSync(o,r,{mode:384,flush:!0}),r}return a.readFileSync(o,"utf8")}async function J(e,t,o={}){u.get("access_token")&&(o.Authorization=`Bearer ${u.get("access_token")}`);let s=await fetch(l(e),{method:"POST",headers:{"Content-Type":t instanceof URLSearchParams?"application/x-www-form-urlencoded":"application/json",...o},body:t instanceof URLSearchParams?t:JSON.stringify(t)}).catch(r=>{p.error(`Fatal Error requesting API: ${r.message} (${r.cause.code})`),p.error("Please check your internet connection and try again, or retry later."),process.exit(1)});return y(s)}async function K(e,t={}){u.get("access_token")&&(t.Authorization=`Bearer ${u.get("access_token")}`);let o=await fetch(l(e),{headers:t,method:"GET"}).catch(s=>{p.error(`Fatal Error requesting API: ${s.message} (${s.cause.code})`),p.error("Please check your internet connection and try again, or retry later."),process.exit(1)});return y(o)}function l(e){let t=new URL(d.endsWith("/")?d:`${d}/`);return new URL(e,t)}async function y(e){let t=e.headers.get("content-type")?.startsWith("application/json")?await e.json():await e.text();return e.ok?{isSuccess:!0,isError:!1,status:e.status,statusText:e.statusText,data:t}:{isSuccess:!1,isError:!0,status:e.status,statusText:e.statusText,data:t}}export{K as get,J as post};
@@ -1,10 +1,10 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
2
 
3
- import I from"chalk";import{confirm as b}from"@inquirer/prompts";import A from"open";var y="enpage-cli";var g=process.env.PUBLIC_ENPAGE_OAUTH_CLIENT_ID??"50000000-0000-0000-0000-000000000001",u=process.env.PUBLIC_ENPAGE_API_BASE_URL??"https://api.enpage.co",j=process.env.PUBLIC_ENPAGE_FRONTEND_BASE_URL??"https://enpage.co";var _="oauth/devicecode",E="oauth/token";import{createLogger as L}from"vite";var h="0.0.69";import i from"chalk";function x(r,e,n=!1){let o=L(r==="debug"?"info":r,{prefix:"[enpage]",allowClearScreen:e});return n&&o.info(i.hex("#7270c6").bold(`\u{1F680} Enpage v${h}
4
- `)),{...o,success:(t,s)=>o.info(i.green(t),s),error:(t,s)=>o.error(i.red(t),s),warn:(t,s)=>o.warn(i.yellow(t),s),warnOnce:(t,s)=>o.warnOnce(i.yellow(t),s),debug:(t,s)=>{r==="debug"&&o.info(i.gray(t),s)}}}var m=x();import R from"conf";import c from"node:path";import O from"node:crypto";import a from"node:fs";import{fileURLToPath as v}from"node:url";import Q from"chalk";var w=v(new URL(".",import.meta.url)),k=C(),p=new R({projectName:y,encryptionKey:k,clearInvalidConfig:!0});function P(){let r=w;for(;r!==c.parse(r).root;){let e=c.join(r,"node_modules");if(a.existsSync(e))return e;r=c.dirname(r)}return null}function C(){let r=P();if(!r)throw new Error("Could not find nearest node_modules directory.");let e=c.join(r,".enpage-tmp");a.existsSync(e)||a.mkdirSync(e,{recursive:!0,mode:448});let n=c.join(e,".enpage-key");if(!a.existsSync(n)){let t=O.randomBytes(32).toString("hex");return a.writeFileSync(n,t,{mode:384,flush:!0}),t}return a.readFileSync(n,"utf8")}async function l(r,e,n={}){p.get("access_token")&&(n.Authorization=`Bearer ${p.get("access_token")}`);let o=await fetch(N(r),{method:"POST",headers:{"Content-Type":e instanceof URLSearchParams?"application/x-www-form-urlencoded":"application/json",...n},body:e instanceof URLSearchParams?e:JSON.stringify(e)}).catch(t=>{m.error(`Fatal Error requesting API: ${t.message} (${t.cause.code})`),m.error("Please check your internet connection and try again, or retry later."),process.exit(1)});return S(o)}function N(r){let e=new URL(u.endsWith("/")?u:`${u}/`);return new URL(r,e)}async function S(r){let e=r.headers.get("content-type")?.startsWith("application/json")?await r.json():await r.text();return r.ok?{isSuccess:!0,isError:!1,status:r.status,statusText:r.statusText,data:e}:{isSuccess:!1,isError:!0,status:r.status,statusText:r.statusText,data:e}}async function D(r,e){for(;;){let n=new URLSearchParams({grant_type:"device_code",device_code:r,client_id:g}),o=await l(E,n),{data:t,isSuccess:s}=o;if(s)return t;if(t.error==="authorization_pending")await new Promise(f=>setTimeout(f,5e3));else return e.error(`Error while polling for login: ${t.error_description??t.error}`),!1}}async function de({options:r,logger:e}){e.info(`Logging in to Enpage...
5
- `);let{isError:n,data:o}=await l(_,{client_id:g,scope:"profile,templates:publish"});n&&(e.error("Failed to get device code. Please try again."),e.error(`Error: ${o.error_description??o.error}`),process.exit(1));let{verification_uri:t,device_code:s}=o;await b({message:"Would you like to open the login page in your browser?",default:!0}).catch(U=>{process.exit(0)})?A(t):e.info(`
3
+ import I from"chalk";import{confirm as A}from"@inquirer/prompts";import b from"open";var y="enpage-cli";var g=process.env.PUBLIC_ENPAGE_OAUTH_CLIENT_ID??"50000000-0000-0000-0000-000000000001",u=process.env.PUBLIC_ENPAGE_API_BASE_URL??"https://api.enpage.co",j=process.env.PUBLIC_ENPAGE_FRONTEND_BASE_URL??"https://enpage.co";var _="oauth/devicecode",E="oauth/token";import{createLogger as L}from"vite";var h="0.0.70";import i from"chalk";function x(t,e,n=!1){let o=L(t==="debug"?"info":t,{prefix:"[enpage]",allowClearScreen:e});return n&&o.info(i.hex("#7270c6").bold(`\u{1F680} Enpage v${h}
4
+ `)),{...o,success:(r,s)=>o.info(i.green(r),s),error:(r,s)=>o.error(i.red(r),s),warn:(r,s)=>o.warn(i.yellow(r),s),warnOnce:(r,s)=>o.warnOnce(i.yellow(r),s),debug:(r,s)=>{t==="debug"&&o.info(i.gray(r),s)}}}var m=x();import R from"conf";import c from"node:path";import O from"node:crypto";import a from"node:fs";import{fileURLToPath as v}from"node:url";import Q from"chalk";var w=v(new URL(".",import.meta.url)),k=C(),p=new R({projectName:y,encryptionKey:k,clearInvalidConfig:!0});function P(){let t=w;for(;t!==c.parse(t).root;){let e=c.join(t,"node_modules");if(a.existsSync(e))return e;t=c.dirname(t)}return null}function C(){let t=P();if(!t)throw new Error("Could not find nearest node_modules directory.");let e=c.join(t,".enpage-tmp");a.existsSync(e)||a.mkdirSync(e,{recursive:!0,mode:448});let n=c.join(e,".enpage-key");if(!a.existsSync(n)){let r=O.randomBytes(32).toString("hex");return a.writeFileSync(n,r,{mode:384,flush:!0}),r}return a.readFileSync(n,"utf8")}async function l(t,e,n={}){p.get("access_token")&&(n.Authorization=`Bearer ${p.get("access_token")}`);let o=await fetch(N(t),{method:"POST",headers:{"Content-Type":e instanceof URLSearchParams?"application/x-www-form-urlencoded":"application/json",...n},body:e instanceof URLSearchParams?e:JSON.stringify(e)}).catch(r=>{m.error(`Fatal Error requesting API: ${r.message} (${r.cause.code})`),m.error("Please check your internet connection and try again, or retry later."),process.exit(1)});return S(o)}function N(t){let e=new URL(u.endsWith("/")?u:`${u}/`);return new URL(t,e)}async function S(t){let e=t.headers.get("content-type")?.startsWith("application/json")?await t.json():await t.text();return t.ok?{isSuccess:!0,isError:!1,status:t.status,statusText:t.statusText,data:e}:{isSuccess:!1,isError:!0,status:t.status,statusText:t.statusText,data:e}}async function D(t,e){for(;;){let n=new URLSearchParams({grant_type:"device_code",device_code:t,client_id:g}),o=await l(E,n),{data:r,isSuccess:s}=o;if(s)return r;if(r.error==="authorization_pending")await new Promise(f=>setTimeout(f,5e3));else return e.error(`Error while polling for login: ${r.error_description??r.error}`),!1}}async function de({options:t,logger:e}){e.info(`Logging in to Enpage...
5
+ `);let{isError:n,data:o}=await l(_,{client_id:g,scope:"profile,templates:publish"});n&&(e.error("Failed to get device code. Please try again."),e.error(`Error: ${o.error_description??o.error}`),process.exit(1));let{verification_uri:r,device_code:s}=o;await A({message:"Would you like to open the login page in your browser?",default:!0}).catch(U=>{process.exit(0)})?b(r):e.info(`
6
6
  Please visit the following URL to login:
7
- ${t}
7
+ ${r}
8
8
  `),e.info(I.gray(`
9
9
  Waiting for login...
10
10
  `));let d=await D(s,e);d||(e.error("Login failed. Please try again."),process.exit(1)),p.set({...d,...d.expires_in?{expires_at:Date.now()+d.expires_in*1e3}:{}}),e.info(`Login successful!
@@ -1,33 +1,33 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
2
 
3
- var ye=Object.defineProperty;var b=(e,t)=>()=>(e&&(t=e(e=0)),t);var he=(e,t)=>{for(var r in t)ye(e,r,{get:t[r],enumerable:!0})};function F(){let e;if(process.env.npm_config_user_agent){let t=process.env.npm_config_user_agent.split(" ")[0];e=t.slice(0,t.lastIndexOf("/"))}return e||(console.log("Warning: could not detect package manager"),e="npm"),e}function J(e){return`[${e.error}]${e.error_description?`: ${e.error_description}`:""}`}var q=b(()=>{"use strict"});var X,ft,x,yt,Y,K,V,R=b(()=>{"use strict";X="enpage-cli",ft=process.env.PUBLIC_ENPAGE_OAUTH_CLIENT_ID??"50000000-0000-0000-0000-000000000001",x=process.env.PUBLIC_ENPAGE_API_BASE_URL??"https://api.enpage.co",yt=process.env.PUBLIC_ENPAGE_FRONTEND_BASE_URL??"https://enpage.co",Y=10,K="oauth/userinfo",V="v1/templates"});import Se from"conf";import v from"node:path";import Ee from"node:crypto";import A from"node:fs";import{fileURLToPath as Te}from"node:url";import Pe from"chalk";function Q(){let e=y.get("access_token");if(!e){let t=F();throw new Error(`Access token not found. Please run ${Pe.cyan(`${t} run enpage:login`)} to authenticate.`)}return e}function _e(){let e=xe;for(;e!==v.parse(e).root;){let t=v.join(e,"node_modules");if(A.existsSync(t))return t;e=v.dirname(e)}return null}function be(){let e=_e();if(!e)throw new Error("Could not find nearest node_modules directory.");let t=v.join(e,".enpage-tmp");A.existsSync(t)||A.mkdirSync(t,{recursive:!0,mode:448});let r=v.join(t,".enpage-key");if(!A.existsSync(r)){let n=Ee.randomBytes(32).toString("hex");return A.writeFileSync(r,n,{mode:384,flush:!0}),n}return A.readFileSync(r,"utf8")}var xe,we,y,G=b(()=>{"use strict";R();q();xe=Te(new URL(".",import.meta.url)),we=be(),y=new Se({projectName:X,encryptionKey:we,clearInvalidConfig:!0})});var ee,Z=b(()=>{ee="0.0.69"});import{createLogger as Ae}from"vite";import O from"chalk";function Oe(e,t,r=!1){let o=Ae(e==="debug"?"info":e,{prefix:"[enpage]",allowClearScreen:t});return r&&o.info(O.hex("#7270c6").bold(`\u{1F680} Enpage v${ee}
4
- `)),{...o,success:(n,s)=>o.info(O.green(n),s),error:(n,s)=>o.error(O.red(n),s),warn:(n,s)=>o.warn(O.yellow(n),s),warnOnce:(n,s)=>o.warnOnce(O.yellow(n),s),debug:(n,s)=>{e==="debug"&&o.info(O.gray(n),s)}}}var g,M=b(()=>{"use strict";Z();g=Oe()});var se={};he(se,{get:()=>Ge,post:()=>N});async function N(e,t,r={}){y.get("access_token")&&(r.Authorization=`Bearer ${y.get("access_token")}`);let o=await fetch(oe(e),{method:"POST",headers:{"Content-Type":t instanceof URLSearchParams?"application/x-www-form-urlencoded":"application/json",...r},body:t instanceof URLSearchParams?t:JSON.stringify(t)}).catch(n=>{g.error(`Fatal Error requesting API: ${n.message} (${n.cause.code})`),g.error("Please check your internet connection and try again, or retry later."),process.exit(1)});return ne(o)}async function Ge(e,t={}){y.get("access_token")&&(t.Authorization=`Bearer ${y.get("access_token")}`);let r=await fetch(oe(e),{headers:t,method:"GET"}).catch(o=>{g.error(`Fatal Error requesting API: ${o.message} (${o.cause.code})`),g.error("Please check your internet connection and try again, or retry later."),process.exit(1)});return ne(r)}function oe(e){let t=new URL(x.endsWith("/")?x:`${x}/`);return new URL(e,t)}async function ne(e){let t=e.headers.get("content-type")?.startsWith("application/json")?await e.json():await e.text();return e.ok?{isSuccess:!0,isError:!1,status:e.status,statusText:e.statusText,data:t}:{isSuccess:!1,isError:!0,status:e.status,statusText:e.statusText,data:t}}var W=b(()=>{"use strict";M();R();G()});q();G();import{resolve as h}from"node:path";import{existsSync as D,readFileSync as ct,writeFileSync as lt}from"node:fs";import T from"chalk";R();M();import I from"node:path";import j from"node:fs";import Me from"node:crypto";import Be from"fast-glob";import ae from"node:http";import ze from"node:https";import{pipeline as We}from"node:stream";import ie from"chalk";import qe from"form-data";import*as B from"node:fs";var ke=/[<>"|?*\n\r\t\f\x00-\x1F]/,$e=/(?:^|\/)[*]{2}($|\/)/,Le=248,Ce=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),Ue=e=>typeof e=="string"&&e.length<=Le&&!ke.test(e),ve=e=>e.split(/\r\n?|\n/);var Ne=e=>Ce(e)&&Array.isArray(e.patterns)&&Array.isArray(e.sections);var z=(e,t={})=>{let r=t.path;if(Ne(e))return e;Ue(e)&&B.existsSync(e)&&(r=e,e=B.readFileSync(e,"utf8"));let o=ve(e),n=new Map,s={sections:[],patterns:[]},p={name:"default",patterns:[]},i=null;for(let a of o){let c=a.trim();if(c.startsWith("#")){let[,d]=/^#+\s*(.*)\s*$/.exec(c)||[];if(i){n.delete(i.name),i.comment=i.comment?`${i.comment}
5
- ${c}`:c,i.name=d?`${i.name.trim()}
6
- ${d.trim()}`:i.name.trim(),n.set(i.name.toLowerCase().trim(),i);continue}p={name:d?.trim()||"",comment:c,patterns:[]},n.set(p.name.toLowerCase(),p),s.sections.push(p),i=p;continue}c!==""&&(p.patterns.push(c),s.patterns.push(c)),i=null}return(t.dedupe===!0||t.unique===!0)&&(s=te(s,{...t,format:!1})),s.path=r,s.input=Buffer.from(e),s.format=a=>Fe(s,{...t,...a}),s.dedupe=a=>te(s,{...t,...a}),s.globs=a=>je(s,{path:r,...t,...a}),s};var te=(e,t)=>{let r=z(e,{...t,dedupe:!1}),o=new Map,n={sections:[],patterns:[]},s;for(let p of r.sections){let{name:i="",comment:a,patterns:c}=p,d=i.trim().toLowerCase();for(let f of c)n.patterns.includes(f)||n.patterns.push(f);i&&o.has(d)?(s=o.get(d),s.patterns=[...s.patterns,...c]):(s={name:i,comment:a,patterns:c},n.sections.push(s),o.set(d,s))}for(let p of n.sections)p.patterns=[...new Set(p.patterns)];return n},Ie=e=>{if($e.test(e))return e;let t=!1;return e.startsWith("/")?(e=e.slice(1),t=!0):e.slice(1,e.length-1).includes("/")&&(t=!0),e+=e.endsWith("/")?"**/":"/**",t?e:`**/${e}`},je=(e,t={})=>{let r=z(e,t),o=[],n=0,s=r.patterns.concat(t.ignore||[]).concat((t.unignore||[]).map(i=>i.startsWith("!")?i:`!${i}`)),p=(i,a)=>{let c=o[o.length-1],d=i?"unignore":"ignore";c&&c.type===d?c.patterns.includes(a)||c.patterns.push(a):(o.push({type:d,path:t.path||null,patterns:[a],index:n}),n++)};for(let i of s){let a="";i.startsWith("!")&&(i=i.slice(1),a="!"),p(a,i.startsWith("/")?i.slice(1):i),p(a,Ie(i))}return o},De=(e={name:"",patterns:[]})=>{let t=[e.comment||""];return e.patterns?.length&&(t.push(e.patterns.join(`
3
+ var ye=Object.defineProperty;var b=(e,t)=>()=>(e&&(t=e(e=0)),t);var he=(e,t)=>{for(var r in t)ye(e,r,{get:t[r],enumerable:!0})};function F(){let e;if(process.env.npm_config_user_agent){let t=process.env.npm_config_user_agent.split(" ")[0];e=t.slice(0,t.lastIndexOf("/"))}return e||(console.log("Warning: could not detect package manager"),e="npm"),e}function J(e){return`[${e.error}]${e.error_description?`: ${e.error_description}`:""}`}var q=b(()=>{"use strict"});var X,ft,x,yt,Y,K,V,R=b(()=>{"use strict";X="enpage-cli",ft=process.env.PUBLIC_ENPAGE_OAUTH_CLIENT_ID??"50000000-0000-0000-0000-000000000001",x=process.env.PUBLIC_ENPAGE_API_BASE_URL??"https://api.enpage.co",yt=process.env.PUBLIC_ENPAGE_FRONTEND_BASE_URL??"https://enpage.co",Y=10,K="oauth/userinfo",V="v1/templates"});import Se from"conf";import v from"node:path";import Ee from"node:crypto";import A from"node:fs";import{fileURLToPath as Te}from"node:url";import Pe from"chalk";function Q(){let e=y.get("access_token");if(!e){let t=F();throw new Error(`Access token not found. Please run ${Pe.cyan(`${t} run enpage:login`)} to authenticate.`)}return e}function _e(){let e=xe;for(;e!==v.parse(e).root;){let t=v.join(e,"node_modules");if(A.existsSync(t))return t;e=v.dirname(e)}return null}function be(){let e=_e();if(!e)throw new Error("Could not find nearest node_modules directory.");let t=v.join(e,".enpage-tmp");A.existsSync(t)||A.mkdirSync(t,{recursive:!0,mode:448});let r=v.join(t,".enpage-key");if(!A.existsSync(r)){let s=Ee.randomBytes(32).toString("hex");return A.writeFileSync(r,s,{mode:384,flush:!0}),s}return A.readFileSync(r,"utf8")}var xe,we,y,G=b(()=>{"use strict";R();q();xe=Te(new URL(".",import.meta.url)),we=be(),y=new Se({projectName:X,encryptionKey:we,clearInvalidConfig:!0})});var ee,Z=b(()=>{ee="0.0.70"});import{createLogger as Ae}from"vite";import O from"chalk";function Oe(e,t,r=!1){let o=Ae(e==="debug"?"info":e,{prefix:"[enpage]",allowClearScreen:t});return r&&o.info(O.hex("#7270c6").bold(`\u{1F680} Enpage v${ee}
4
+ `)),{...o,success:(s,n)=>o.info(O.green(s),n),error:(s,n)=>o.error(O.red(s),n),warn:(s,n)=>o.warn(O.yellow(s),n),warnOnce:(s,n)=>o.warnOnce(O.yellow(s),n),debug:(s,n)=>{e==="debug"&&o.info(O.gray(s),n)}}}var g,M=b(()=>{"use strict";Z();g=Oe()});var ne={};he(ne,{get:()=>Ge,post:()=>N});async function N(e,t,r={}){y.get("access_token")&&(r.Authorization=`Bearer ${y.get("access_token")}`);let o=await fetch(oe(e),{method:"POST",headers:{"Content-Type":t instanceof URLSearchParams?"application/x-www-form-urlencoded":"application/json",...r},body:t instanceof URLSearchParams?t:JSON.stringify(t)}).catch(s=>{g.error(`Fatal Error requesting API: ${s.message} (${s.cause.code})`),g.error("Please check your internet connection and try again, or retry later."),process.exit(1)});return se(o)}async function Ge(e,t={}){y.get("access_token")&&(t.Authorization=`Bearer ${y.get("access_token")}`);let r=await fetch(oe(e),{headers:t,method:"GET"}).catch(o=>{g.error(`Fatal Error requesting API: ${o.message} (${o.cause.code})`),g.error("Please check your internet connection and try again, or retry later."),process.exit(1)});return se(r)}function oe(e){let t=new URL(x.endsWith("/")?x:`${x}/`);return new URL(e,t)}async function se(e){let t=e.headers.get("content-type")?.startsWith("application/json")?await e.json():await e.text();return e.ok?{isSuccess:!0,isError:!1,status:e.status,statusText:e.statusText,data:t}:{isSuccess:!1,isError:!0,status:e.status,statusText:e.statusText,data:t}}var W=b(()=>{"use strict";M();R();G()});q();G();import{resolve as h}from"node:path";import{existsSync as D,readFileSync as ct,writeFileSync as lt}from"node:fs";import T from"chalk";R();M();import I from"node:path";import j from"node:fs";import Me from"node:crypto";import Be from"fast-glob";import ae from"node:http";import ze from"node:https";import{pipeline as We}from"node:stream";import ie from"chalk";import qe from"form-data";import*as B from"node:fs";var ke=/[<>"|?*\n\r\t\f\x00-\x1F]/,$e=/(?:^|\/)[*]{2}($|\/)/,Le=248,Ce=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),Ue=e=>typeof e=="string"&&e.length<=Le&&!ke.test(e),ve=e=>e.split(/\r\n?|\n/);var Ne=e=>Ce(e)&&Array.isArray(e.patterns)&&Array.isArray(e.sections);var z=(e,t={})=>{let r=t.path;if(Ne(e))return e;Ue(e)&&B.existsSync(e)&&(r=e,e=B.readFileSync(e,"utf8"));let o=ve(e),s=new Map,n={sections:[],patterns:[]},p={name:"default",patterns:[]},i=null;for(let a of o){let c=a.trim();if(c.startsWith("#")){let[,u]=/^#+\s*(.*)\s*$/.exec(c)||[];if(i){s.delete(i.name),i.comment=i.comment?`${i.comment}
5
+ ${c}`:c,i.name=u?`${i.name.trim()}
6
+ ${u.trim()}`:i.name.trim(),s.set(i.name.toLowerCase().trim(),i);continue}p={name:u?.trim()||"",comment:c,patterns:[]},s.set(p.name.toLowerCase(),p),n.sections.push(p),i=p;continue}c!==""&&(p.patterns.push(c),n.patterns.push(c)),i=null}return(t.dedupe===!0||t.unique===!0)&&(n=te(n,{...t,format:!1})),n.path=r,n.input=Buffer.from(e),n.format=a=>Fe(n,{...t,...a}),n.dedupe=a=>te(n,{...t,...a}),n.globs=a=>je(n,{path:r,...t,...a}),n};var te=(e,t)=>{let r=z(e,{...t,dedupe:!1}),o=new Map,s={sections:[],patterns:[]},n;for(let p of r.sections){let{name:i="",comment:a,patterns:c}=p,u=i.trim().toLowerCase();for(let f of c)s.patterns.includes(f)||s.patterns.push(f);i&&o.has(u)?(n=o.get(u),n.patterns=[...n.patterns,...c]):(n={name:i,comment:a,patterns:c},s.sections.push(n),o.set(u,n))}for(let p of s.sections)p.patterns=[...new Set(p.patterns)];return s},Ie=e=>{if($e.test(e))return e;let t=!1;return e.startsWith("/")?(e=e.slice(1),t=!0):e.slice(1,e.length-1).includes("/")&&(t=!0),e+=e.endsWith("/")?"**/":"/**",t?e:`**/${e}`},je=(e,t={})=>{let r=z(e,t),o=[],s=0,n=r.patterns.concat(t.ignore||[]).concat((t.unignore||[]).map(i=>i.startsWith("!")?i:`!${i}`)),p=(i,a)=>{let c=o[o.length-1],u=i?"unignore":"ignore";c&&c.type===u?c.patterns.includes(a)||c.patterns.push(a):(o.push({type:u,path:t.path||null,patterns:[a],index:s}),s++)};for(let i of n){let a="";i.startsWith("!")&&(i=i.slice(1),a="!"),p(a,i.startsWith("/")?i.slice(1):i),p(a,Ie(i))}return o},De=(e={name:"",patterns:[]})=>{let t=[e.comment||""];return e.patterns?.length&&(t.push(e.patterns.join(`
7
7
  `)),t.push("")),t.join(`
8
- `)},Fe=(e,t={})=>{let r=z(e,t),o=t.formatSection||De,n=r.sections||r,s=[];for(let p of[].concat(n))s.push(o(p));return s.join(`
9
- `)};var re=z;W();import He from"p-queue";import Je from"ora";import{customAlphabet as Xe}from"nanoid";var k=class extends Error{constructor(r,o,n){super(`${r}: ${o}`);this.error=r;this.error_description=o;this.filename=n;this.name="UploadError"}},Ye={maxDataSize:12*1024*1024,retryAttempts:2,retryDelay:1e3},Ke=new ae.Agent({keepAlive:!0,maxSockets:10,keepAliveMsecs:3e3});async function Ve(e){let t=I.join(e,".gitignore"),o=j.existsSync(t)?re(j.readFileSync(t,"utf-8")).patterns:[];return Be("**/*",{cwd:e,onlyFiles:!0,dot:!0,absolute:!0,ignore:["node_modules/**",".cache/**","**/.DS_Store",".gitignore",".env",".env.*",".git/**","dist/**",...o]})}async function Qe(e,t,r,o,n,s,p){let i=async a=>{try{return await Ze(e,t,r,o,n,s,p)}catch(c){if(a<p.retryAttempts)return g.warn(`Retrying upload for ${t} (attempt ${a+1})`),await new Promise(d=>setTimeout(d,p.retryDelay)),i(a+1);throw c}};return i(0)}async function Ze(e,t,r,o,n,s,p){return new Promise((i,a)=>{let c=j.statSync(e),d=I.basename(e),f=Date.now(),S=new qe({maxDataSize:p.maxDataSize}),$=j.createReadStream(e),L=0,w=l=>{L+=l.length};$.on("data",w),S.append("file",$,{filename:d,knownLength:c.size});let _={agent:Ke,method:"POST",headers:{authorization:`Bearer ${s}`,"x-enpage-template-file-path":t,"x-enpage-template-id":o,...S.getHeaders()}},P=(r.startsWith("https")?ze:ae).request(r,_,l=>{let E="";l.on("data",C=>{E+=C}),l.on("end",()=>{let C=Date.now(),fe={fileName:d,fileSize:c.size,uploadDuration:C-f,statusCode:l.statusCode??0,serverResponse:E};if(l.statusCode&&l.statusCode>=200&&l.statusCode<300)n.text=`Uploaded ${t}`,i(fe);else{let U;if(l.headers["content-type"]?.startsWith("application/json")){let H=JSON.parse(E);U=new k(H.error||"unknown_error",H.error_description||"Unknown error occurred",t)}else U=new k("unknown_error",E||"Unknown error occurred",t);n.fail(`Failed to upload ${t} [${U.error}] ${U.error_description}`),a(U)}})});P.on("error",l=>{a(new k("request_error",l.message,t))}),We(S,P,l=>{l&&a(new k("pipeline_error",`Pipeline failed for ${d}: ${l.message}`,t))})})}function et(e,t,r){r.length>0?(g.error(ie.red(`Failed to upload ${r.length} files:`)),r.forEach(o=>{let n=o.reason;g.error(`- ${n.filename}: ${n.error_description} (${n.error})`)})):g.info(ie.green(`Uploaded ${t.length} files successfully for template ${e}.
10
- `))}async function pe(e,t,r,o=!1,n={}){let s={...Ye,...n},p=new He({concurrency:Y}),i=await Ve(t),a=i.length,c={},d=rt(),f=0;for(let m of i){let P=I.relative(t,m),l=await tt(m);c[P]=l}o&&(g.info(`Dry run mode enabled. Skipping upload.
11
- `),g.info("The following files would have been uploaded:"),i.forEach(m=>g.info(`- ${m}`)),process.exit(0));let S=Je(`Uploading ${a} files...`).start(),$=i.map(m=>{let P=I.resolve(t,m),l=I.relative(t,m),E=`${x}/v1/templates/${e}/upload/${d}`;return p.add(async()=>{let C=await Qe(P,l,E,e,S,r,s);return f++,C})}),L=await Promise.allSettled($);S.stop();let w=L.filter(m=>m.status==="fulfilled"),_=L.filter(m=>m.status==="rejected");if(et(e,w.map(m=>m.value),_),!_.length&&w.length){let m=`${x}/v1/templates/${e}/upload/${d}/finalize`,l=await N(m,{signatures:c});if(l.isError)return g.error(`Failed to finalize upload: ${l.data.error_description} (${l.data.error})`),{filesCount:a,uploadedFiles:w.map(E=>E.value),failedFiles:[],success:!1}}return{filesCount:a,uploadedFiles:w.map(m=>m.value),failedFiles:_,success:_.length===0}}async function tt(e){let t=await Me.subtle.digest("SHA-1",j.readFileSync(e));return Array.from(new Uint8Array(t)).map(r=>r.toString(16).padStart(2,"0")).join("")}function rt(){let e=Xe("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",5),t=new Date,r=t.getUTCFullYear(),o=(t.getUTCMonth()+1).toString().padStart(2,"0"),n=t.getUTCDate().toString().padStart(2,"0"),s=t.getUTCHours().toString().padStart(2,"0"),p=t.getUTCMinutes().toString().padStart(2,"0"),i=t.getUTCSeconds().toString().padStart(2,"0");return`${r}${o}${n}${s}${p}${i}_${e()}`}W();R();import ge from"node:path";import{Type as u}from"@sinclair/typebox";var ce=u.Object({id:u.Optional(u.String({title:"Template ID",description:"A unique identifier for the template. Can be any string, but should be unique."})),name:u.String({title:"Template Name"}),description:u.Optional(u.String({title:"Show template description"})),readme:u.Optional(u.Record(u.RegExp(/^[a-z]{2}$/),u.String(),{title:"Readme texts.",description:"A dictionary of readme files for different languages (iso 2 letters code). Currently on supported for 'en' and 'fr'."})),tags:u.Optional(u.Array(u.String(),{title:"Tags"})),author:u.Optional(u.String({title:"Author name"})),thumbnail:u.Optional(u.String({title:"Thumbnail",description:"A URL to the thumbnail image for the template."})),homepage:u.Optional(u.String({title:"Homepage",description:"A URL to the homepage of the template."}))});M();import ot from"node:fs";import{readFile as nt}from"node:fs/promises";import st from"fast-glob";import{fromError as it}from"zod-validation-error";import{basename as le,dirname as at,extname as pt}from"node:path";async function de(e,t=g){ot.existsSync(e)||(t.error(`\u{1F534} No enpage.config.js found!
8
+ `)},Fe=(e,t={})=>{let r=z(e,t),o=t.formatSection||De,s=r.sections||r,n=[];for(let p of[].concat(s))n.push(o(p));return n.join(`
9
+ `)};var re=z;W();import He from"p-queue";import Je from"ora";import{customAlphabet as Xe}from"nanoid";var k=class extends Error{constructor(r,o,s){super(`${r}: ${o}`);this.error=r;this.error_description=o;this.filename=s;this.name="UploadError"}},Ye={maxDataSize:12*1024*1024,retryAttempts:2,retryDelay:1e3},Ke=new ae.Agent({keepAlive:!0,maxSockets:10,keepAliveMsecs:3e3});async function Ve(e){let t=I.join(e,".gitignore"),o=j.existsSync(t)?re(j.readFileSync(t,"utf-8")).patterns:[];return Be("**/*",{cwd:e,onlyFiles:!0,dot:!0,absolute:!0,ignore:["node_modules/**",".cache/**","**/.DS_Store",".gitignore",".env",".env.*",".git/**","dist/**",...o]})}async function Qe(e,t,r,o,s,n,p){let i=async a=>{try{return await Ze(e,t,r,o,s,n,p)}catch(c){if(a<p.retryAttempts)return g.warn(`Retrying upload for ${t} (attempt ${a+1})`),await new Promise(u=>setTimeout(u,p.retryDelay)),i(a+1);throw c}};return i(0)}async function Ze(e,t,r,o,s,n,p){return new Promise((i,a)=>{let c=j.statSync(e),u=I.basename(e),f=Date.now(),S=new qe({maxDataSize:p.maxDataSize}),$=j.createReadStream(e),L=0,w=l=>{L+=l.length};$.on("data",w),S.append("file",$,{filename:u,knownLength:c.size});let _={agent:Ke,method:"POST",headers:{authorization:`Bearer ${n}`,"x-enpage-template-file-path":t,"x-enpage-template-id":o,...S.getHeaders()}},P=(r.startsWith("https")?ze:ae).request(r,_,l=>{let E="";l.on("data",C=>{E+=C}),l.on("end",()=>{let C=Date.now(),fe={fileName:u,fileSize:c.size,uploadDuration:C-f,statusCode:l.statusCode??0,serverResponse:E};if(l.statusCode&&l.statusCode>=200&&l.statusCode<300)s.text=`Uploaded ${t}`,i(fe);else{let U;if(l.headers["content-type"]?.startsWith("application/json")){let H=JSON.parse(E);U=new k(H.error||"unknown_error",H.error_description||"Unknown error occurred",t)}else U=new k("unknown_error",E||"Unknown error occurred",t);s.fail(`Failed to upload ${t} [${U.error}] ${U.error_description}`),a(U)}})});P.on("error",l=>{a(new k("request_error",l.message,t))}),We(S,P,l=>{l&&a(new k("pipeline_error",`Pipeline failed for ${u}: ${l.message}`,t))})})}function et(e,t,r){r.length>0?(g.error(ie.red(`Failed to upload ${r.length} files:`)),r.forEach(o=>{let s=o.reason;g.error(`- ${s.filename}: ${s.error_description} (${s.error})`)})):g.info(ie.green(`Uploaded ${t.length} files successfully for template ${e}.
10
+ `))}async function pe(e,t,r,o=!1,s={}){let n={...Ye,...s},p=new He({concurrency:Y}),i=await Ve(t),a=i.length,c={},u=rt(),f=0;for(let m of i){let P=I.relative(t,m),l=await tt(m);c[P]=l}o&&(g.info(`Dry run mode enabled. Skipping upload.
11
+ `),g.info("The following files would have been uploaded:"),i.forEach(m=>g.info(`- ${m}`)),process.exit(0));let S=Je(`Uploading ${a} files...`).start(),$=i.map(m=>{let P=I.resolve(t,m),l=I.relative(t,m),E=`${x}/v1/templates/${e}/upload/${u}`;return p.add(async()=>{let C=await Qe(P,l,E,e,S,r,n);return f++,C})}),L=await Promise.allSettled($);S.stop();let w=L.filter(m=>m.status==="fulfilled"),_=L.filter(m=>m.status==="rejected");if(et(e,w.map(m=>m.value),_),!_.length&&w.length){let m=`${x}/v1/templates/${e}/upload/${u}/finalize`,l=await N(m,{signatures:c});if(l.isError)return g.error(`Failed to finalize upload: ${l.data.error_description} (${l.data.error})`),{filesCount:a,uploadedFiles:w.map(E=>E.value),failedFiles:[],success:!1}}return{filesCount:a,uploadedFiles:w.map(m=>m.value),failedFiles:_,success:_.length===0}}async function tt(e){let t=await Me.subtle.digest("SHA-1",j.readFileSync(e));return Array.from(new Uint8Array(t)).map(r=>r.toString(16).padStart(2,"0")).join("")}function rt(){let e=Xe("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",5),t=new Date,r=t.getUTCFullYear(),o=(t.getUTCMonth()+1).toString().padStart(2,"0"),s=t.getUTCDate().toString().padStart(2,"0"),n=t.getUTCHours().toString().padStart(2,"0"),p=t.getUTCMinutes().toString().padStart(2,"0"),i=t.getUTCSeconds().toString().padStart(2,"0");return`${r}${o}${s}${n}${p}${i}_${e()}`}W();R();import ge from"node:path";import{Type as d}from"@sinclair/typebox";var ce=d.Object({id:d.Optional(d.String({title:"Template ID",description:"A unique identifier for the template. Can be any string, but should be unique."})),name:d.String({title:"Template Name"}),description:d.Optional(d.String({title:"Show template description"})),readme:d.Optional(d.Record(d.RegExp(/^[a-z]{2}$/),d.String(),{title:"Readme texts.",description:"A dictionary of readme files for different languages (iso 2 letters code). Currently on supported for 'en' and 'fr'."})),tags:d.Optional(d.Array(d.String(),{title:"Tags"})),author:d.Optional(d.String({title:"Author name"})),thumbnail:d.Optional(d.String({title:"Thumbnail",description:"A URL to the thumbnail image for the template."})),homepage:d.Optional(d.String({title:"Homepage",description:"A URL to the homepage of the template."}))});M();import ot from"node:fs";import{readFile as st}from"node:fs/promises";import nt from"fast-glob";import{fromError as it}from"zod-validation-error";import{basename as le,dirname as at,extname as pt}from"node:path";async function ue(e,t=g){ot.existsSync(e)||(t.error(`\u{1F534} No enpage.config.js found!
12
12
  Your project must have an enpage.config.js file in the root directory.
13
13
 
14
- `),process.exit(1));let r=await import(e),o=at(e),n={},s=await st(["README.enpage.md","README.enpage.*.md"],{cwd:o,onlyFiles:!0,absolute:!0,caseSensitiveMatch:!1});for(let p of s){let i=le(p,".md"),a=pt(i),c=(a===".enpage"?"en":a.substring(1)).toLowerCase();t.debug(`Found template readme file (${c}): ${le(p)}`),n[c]=await nt(p,"utf-8")}return r.manifest.readme=n,r}function ue(e,t){for(let o in e.datasources)if(e.datasources[o].provider==="json"&&!e.datasources[o].sampleData)throw t.error(`\u{1F534} Error: Datasource "${o}" is missing sample data - nothing will be rendered during development! Please check your enpage.config.js file and add a "sampleData" key to your ${o} datasource.`),new Error(`Missing sample data for datasource "${o}"`);let r=ce.safeParse(e.manifest);if(!r.success){t.error(`\u{1F534} Error: template manifest is invalid. Check your call to defineManifest().
14
+ `),process.exit(1));let r=await import(e),o=at(e),s={},n=await nt(["README.enpage.md","README.enpage.*.md"],{cwd:o,onlyFiles:!0,absolute:!0,caseSensitiveMatch:!1});for(let p of n){let i=le(p,".md"),a=pt(i),c=(a===".enpage"?"en":a.substring(1)).toLowerCase();t.debug(`Found template readme file (${c}): ${le(p)}`),s[c]=await st(p,"utf-8")}return r.manifest.readme=s,r}function de(e,t){for(let o in e.datasources)if(e.datasources[o].provider==="json"&&!e.datasources[o].sampleData)throw t.error(`\u{1F534} Error: Datasource "${o}" is missing sample data - nothing will be rendered during development! Please check your enpage.config.js file and add a "sampleData" key to your ${o} datasource.`),new Error(`Missing sample data for datasource "${o}"`);let r=ce.safeParse(e.manifest);if(!r.success){t.error(`\u{1F534} Error: template manifest is invalid. Check your call to defineManifest().
15
15
  `);let o=it(r.error);t.error(`Hint: ${o.toString()}
16
16
 
17
- `),process.exit(1)}return e}R();G();async function me(e=!1){let t=y.get("access_token"),r=y.get("expires_at");if(!t)return!1;if(r&&r<Date.now())return console.log("Seems like your token expired..."),!1;if(!e)return!0;let{get:o}=await Promise.resolve().then(()=>(W(),se)),{isSuccess:n}=await o(K);return n}async function _r({options:e,args:t,logger:r}){if(!await me(!0)){let f=F();r.error(` ${T.redBright("Error")}: User token not found. Please run ${T.cyan(`${f} run enpage:login`)} to authenticate or set the ${T.cyan("ENPAGE_API_TOKEN")} environment variable.
17
+ `),process.exit(1)}return e}R();G();async function me(e=!1){let t=y.get("access_token"),r=y.get("expires_at");if(!t)return!1;if(r&&r<Date.now())return console.log("Seems like your token expired..."),!1;if(!e)return!0;let{get:o}=await Promise.resolve().then(()=>(W(),ne)),{isSuccess:s}=await o(K);return s}async function _r({options:e,args:t,logger:r}){if(!await me(!0)){let f=F();r.error(` ${T.redBright("Error")}: User token not found. Please run ${T.cyan(`${f} run enpage:login`)} to authenticate or set the ${T.cyan("ENPAGE_API_TOKEN")} environment variable.
18
18
  `),process.exit(1)}let o=t.length?ge.isAbsolute(t[0])?t[0]:h(process.cwd(),t[0]):process.cwd();D(o)||(r.error(` Template directory not found: ${o}. Aborting.
19
- `),process.exit(1));let n=t.length>1?ge.isAbsolute(t[1])?t[1]:h(process.cwd(),t[1]):h(o,"dist");D(n)||(r.error(` Dist directory not found: ${n}.
19
+ `),process.exit(1));let s=t.length>1?ge.isAbsolute(t[1])?t[1]:h(process.cwd(),t[1]):h(o,"dist");D(s)||(r.error(` Dist directory not found: ${s}.
20
20
  Please run 'build' before publishing. Aborting.
21
21
  `),process.exit(1)),D(h(o,"enpage.config.js"))||(r.error(` ${T.redBright("Error")}: file enpage.config.js not found in ${o}. Aborting.
22
- `),process.exit(1));let s=await de(h(o,"enpage.config.js"),r);ue(s,r);let p=Q(),i=dt(o);i||(r.error(` ${T.redBright("Error")}: package.json file not found in ${o}. Aborting.
23
- `),process.exit(1));let a=await ut(i);if(a||(r.error(` ${T.redBright("Error")}: cannot read/parse package.json file in ${o}. Aborting.
24
- `),process.exit(1)),!a.enpage?.id){let{data:f,isError:S,status:$}=await N(V,{manifest:s.manifest});S&&(r.error(` ${T.redBright("Error")}: Cannot register template: ${J(f)}
22
+ `),process.exit(1));let n=await ue(h(o,"enpage.config.js"),r);de(n,r);let p=Q(),i=ut(o);i||(r.error(` ${T.redBright("Error")}: package.json file not found in ${o}. Aborting.
23
+ `),process.exit(1));let a=await dt(i);if(a||(r.error(` ${T.redBright("Error")}: cannot read/parse package.json file in ${o}. Aborting.
24
+ `),process.exit(1)),!a.enpage?.id){let{data:f,isError:S,status:$}=await N(V,{manifest:n.manifest});S&&(r.error(` ${T.redBright("Error")}: Cannot register template: ${J(f)}
25
25
  `),process.exit(1)),a.enpage??={},a.enpage.id=f.template.id;try{e.dryRun||lt(i,JSON.stringify(a,null,2))}catch{r.error(` ${T.redBright("Error")}: Cannot update template id in package.json file located in ${o}. Aborting.
26
26
  `),process.exit(1)}}let c=a.enpage.id;r.info(`Submitting template to Enpage...
27
27
  `),(await pe(c,o,p,e.dryRun)).success||(r.error(`
28
28
  Upload failed. See details above.
29
29
  `),process.exit(1)),r.success(`Template ${c} published.
30
- `)}function dt(e){return D(h(e,"package.json"))?h(e,"package.json"):D(h(e,"template-package.json"))?h(e,"template-package.json"):!1}function ut(e){try{return JSON.parse(ct(e,"utf-8"))}catch{return null}}export{_r as publish};
30
+ `)}function ut(e){return D(h(e,"package.json"))?h(e,"package.json"):D(h(e,"template-package.json"))?h(e,"template-package.json"):!1}function dt(e){try{return JSON.parse(ct(e,"utf-8"))}catch{return null}}export{_r as publish};
31
31
  /*!
32
32
  * parse-gitignore <https://github.com/jonschlinkert/parse-gitignore>
33
33
  * Copyright (c) 2015-present, Jon Schlinkert.
@@ -1,14 +1,14 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
2
 
3
- import L from"node:path";import U from"node:fs";import ge from"node:crypto";import me from"fast-glob";var N="enpage-cli";var Oe=process.env.PUBLIC_ENPAGE_OAUTH_CLIENT_ID??"50000000-0000-0000-0000-000000000001",y=process.env.PUBLIC_ENPAGE_API_BASE_URL??"https://api.enpage.co",Ae=process.env.PUBLIC_ENPAGE_FRONTEND_BASE_URL??"https://enpage.co",I=10;import B from"node:http";import fe from"node:https";import{pipeline as ye}from"node:stream";import{createLogger as q}from"vite";var D="0.0.69";import _ from"chalk";function H(e,t,n=!1){let i=q(e==="debug"?"info":e,{prefix:"[enpage]",allowClearScreen:t});return n&&i.info(_.hex("#7270c6").bold(`\u{1F680} Enpage v${D}
4
- `)),{...i,success:(r,s)=>i.info(_.green(r),s),error:(r,s)=>i.error(_.red(r),s),warn:(r,s)=>i.warn(_.yellow(r),s),warnOnce:(r,s)=>i.warnOnce(_.yellow(r),s),debug:(r,s)=>{e==="debug"&&i.info(_.gray(r),s)}}}var g=H();import z from"chalk";import he from"form-data";import*as C from"node:fs";var X=/[<>"|?*\n\r\t\f\x00-\x1F]/,J=/(?:^|\/)[*]{2}($|\/)/,V=248,K=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),Y=e=>typeof e=="string"&&e.length<=V&&!X.test(e),Q=e=>e.split(/\r\n?|\n/);var Z=e=>K(e)&&Array.isArray(e.patterns)&&Array.isArray(e.sections);var $=(e,t={})=>{let n=t.path;if(Z(e))return e;Y(e)&&C.existsSync(e)&&(n=e,e=C.readFileSync(e,"utf8"));let i=Q(e),r=new Map,s={sections:[],patterns:[]},c={name:"default",patterns:[]},o=null;for(let a of i){let p=a.trim();if(p.startsWith("#")){let[,u]=/^#+\s*(.*)\s*$/.exec(p)||[];if(o){r.delete(o.name),o.comment=o.comment?`${o.comment}
3
+ import U from"node:path";import O from"node:fs";import ge from"node:crypto";import me from"fast-glob";var N="enpage-cli";var be=process.env.PUBLIC_ENPAGE_OAUTH_CLIENT_ID??"50000000-0000-0000-0000-000000000001",y=process.env.PUBLIC_ENPAGE_API_BASE_URL??"https://api.enpage.co",Ae=process.env.PUBLIC_ENPAGE_FRONTEND_BASE_URL??"https://enpage.co",I=10;import B from"node:http";import fe from"node:https";import{pipeline as ye}from"node:stream";import{createLogger as q}from"vite";var D="0.0.70";import _ from"chalk";function H(e,t,n=!1){let i=q(e==="debug"?"info":e,{prefix:"[enpage]",allowClearScreen:t});return n&&i.info(_.hex("#7270c6").bold(`\u{1F680} Enpage v${D}
4
+ `)),{...i,success:(r,s)=>i.info(_.green(r),s),error:(r,s)=>i.error(_.red(r),s),warn:(r,s)=>i.warn(_.yellow(r),s),warnOnce:(r,s)=>i.warnOnce(_.yellow(r),s),debug:(r,s)=>{e==="debug"&&i.info(_.gray(r),s)}}}var g=H();import z from"chalk";import he from"form-data";import*as C from"node:fs";var X=/[<>"|?*\n\r\t\f\x00-\x1F]/,J=/(?:^|\/)[*]{2}($|\/)/,V=248,K=e=>e!==null&&typeof e=="object"&&!Array.isArray(e),Y=e=>typeof e=="string"&&e.length<=V&&!X.test(e),Q=e=>e.split(/\r\n?|\n/);var Z=e=>K(e)&&Array.isArray(e.patterns)&&Array.isArray(e.sections);var k=(e,t={})=>{let n=t.path;if(Z(e))return e;Y(e)&&C.existsSync(e)&&(n=e,e=C.readFileSync(e,"utf8"));let i=Q(e),r=new Map,s={sections:[],patterns:[]},c={name:"default",patterns:[]},o=null;for(let a of i){let p=a.trim();if(p.startsWith("#")){let[,u]=/^#+\s*(.*)\s*$/.exec(p)||[];if(o){r.delete(o.name),o.comment=o.comment?`${o.comment}
5
5
  ${p}`:p,o.name=u?`${o.name.trim()}
6
- ${u.trim()}`:o.name.trim(),r.set(o.name.toLowerCase().trim(),o);continue}c={name:u?.trim()||"",comment:p,patterns:[]},r.set(c.name.toLowerCase(),c),s.sections.push(c),o=c;continue}p!==""&&(c.patterns.push(p),s.patterns.push(p)),o=null}return(t.dedupe===!0||t.unique===!0)&&(s=G(s,{...t,format:!1})),s.path=n,s.input=Buffer.from(e),s.format=a=>se(s,{...t,...a}),s.dedupe=a=>G(s,{...t,...a}),s.globs=a=>te(s,{path:n,...t,...a}),s};var G=(e,t)=>{let n=$(e,{...t,dedupe:!1}),i=new Map,r={sections:[],patterns:[]},s;for(let c of n.sections){let{name:o="",comment:a,patterns:p}=c,u=o.trim().toLowerCase();for(let h of p)r.patterns.includes(h)||r.patterns.push(h);o&&i.has(u)?(s=i.get(u),s.patterns=[...s.patterns,...p]):(s={name:o,comment:a,patterns:p},r.sections.push(s),i.set(u,s))}for(let c of r.sections)c.patterns=[...new Set(c.patterns)];return r},ee=e=>{if(J.test(e))return e;let t=!1;return e.startsWith("/")?(e=e.slice(1),t=!0):e.slice(1,e.length-1).includes("/")&&(t=!0),e+=e.endsWith("/")?"**/":"/**",t?e:`**/${e}`},te=(e,t={})=>{let n=$(e,t),i=[],r=0,s=n.patterns.concat(t.ignore||[]).concat((t.unignore||[]).map(o=>o.startsWith("!")?o:`!${o}`)),c=(o,a)=>{let p=i[i.length-1],u=o?"unignore":"ignore";p&&p.type===u?p.patterns.includes(a)||p.patterns.push(a):(i.push({type:u,path:t.path||null,patterns:[a],index:r}),r++)};for(let o of s){let a="";o.startsWith("!")&&(o=o.slice(1),a="!"),c(a,o.startsWith("/")?o.slice(1):o),c(a,ee(o))}return i},re=(e={name:"",patterns:[]})=>{let t=[e.comment||""];return e.patterns?.length&&(t.push(e.patterns.join(`
6
+ ${u.trim()}`:o.name.trim(),r.set(o.name.toLowerCase().trim(),o);continue}c={name:u?.trim()||"",comment:p,patterns:[]},r.set(c.name.toLowerCase(),c),s.sections.push(c),o=c;continue}p!==""&&(c.patterns.push(p),s.patterns.push(p)),o=null}return(t.dedupe===!0||t.unique===!0)&&(s=G(s,{...t,format:!1})),s.path=n,s.input=Buffer.from(e),s.format=a=>se(s,{...t,...a}),s.dedupe=a=>G(s,{...t,...a}),s.globs=a=>te(s,{path:n,...t,...a}),s};var G=(e,t)=>{let n=k(e,{...t,dedupe:!1}),i=new Map,r={sections:[],patterns:[]},s;for(let c of n.sections){let{name:o="",comment:a,patterns:p}=c,u=o.trim().toLowerCase();for(let h of p)r.patterns.includes(h)||r.patterns.push(h);o&&i.has(u)?(s=i.get(u),s.patterns=[...s.patterns,...p]):(s={name:o,comment:a,patterns:p},r.sections.push(s),i.set(u,s))}for(let c of r.sections)c.patterns=[...new Set(c.patterns)];return r},ee=e=>{if(J.test(e))return e;let t=!1;return e.startsWith("/")?(e=e.slice(1),t=!0):e.slice(1,e.length-1).includes("/")&&(t=!0),e+=e.endsWith("/")?"**/":"/**",t?e:`**/${e}`},te=(e,t={})=>{let n=k(e,t),i=[],r=0,s=n.patterns.concat(t.ignore||[]).concat((t.unignore||[]).map(o=>o.startsWith("!")?o:`!${o}`)),c=(o,a)=>{let p=i[i.length-1],u=o?"unignore":"ignore";p&&p.type===u?p.patterns.includes(a)||p.patterns.push(a):(i.push({type:u,path:t.path||null,patterns:[a],index:r}),r++)};for(let o of s){let a="";o.startsWith("!")&&(o=o.slice(1),a="!"),c(a,o.startsWith("/")?o.slice(1):o),c(a,ee(o))}return i},re=(e={name:"",patterns:[]})=>{let t=[e.comment||""];return e.patterns?.length&&(t.push(e.patterns.join(`
7
7
  `)),t.push("")),t.join(`
8
- `)},se=(e,t={})=>{let n=$(e,t),i=t.formatSection||re,r=n.sections||n,s=[];for(let c of[].concat(r))s.push(i(c));return s.join(`
9
- `)};var j=$;import Se from"p-queue";import Ee from"ora";import{customAlphabet as Pe}from"nanoid";import oe from"conf";import b from"node:path";import ne from"node:crypto";import T from"node:fs";import{fileURLToPath as ie}from"node:url";import He from"chalk";var ae=ie(new URL(".",import.meta.url)),ce=le(),k=new oe({projectName:N,encryptionKey:ce,clearInvalidConfig:!0});function pe(){let e=ae;for(;e!==b.parse(e).root;){let t=b.join(e,"node_modules");if(T.existsSync(t))return t;e=b.dirname(e)}return null}function le(){let e=pe();if(!e)throw new Error("Could not find nearest node_modules directory.");let t=b.join(e,".enpage-tmp");T.existsSync(t)||T.mkdirSync(t,{recursive:!0,mode:448});let n=b.join(t,".enpage-key");if(!T.existsSync(n)){let r=ne.randomBytes(32).toString("hex");return T.writeFileSync(n,r,{mode:384,flush:!0}),r}return T.readFileSync(n,"utf8")}async function F(e,t,n={}){k.get("access_token")&&(n.Authorization=`Bearer ${k.get("access_token")}`);let i=await fetch(ue(e),{method:"POST",headers:{"Content-Type":t instanceof URLSearchParams?"application/x-www-form-urlencoded":"application/json",...n},body:t instanceof URLSearchParams?t:JSON.stringify(t)}).catch(r=>{g.error(`Fatal Error requesting API: ${r.message} (${r.cause.code})`),g.error("Please check your internet connection and try again, or retry later."),process.exit(1)});return de(i)}function ue(e){let t=new URL(y.endsWith("/")?y:`${y}/`);return new URL(e,t)}async function de(e){let t=e.headers.get("content-type")?.startsWith("application/json")?await e.json():await e.text();return e.ok?{isSuccess:!0,isError:!1,status:e.status,statusText:e.statusText,data:t}:{isSuccess:!1,isError:!0,status:e.status,statusText:e.statusText,data:t}}var w=class extends Error{constructor(n,i,r){super(`${n}: ${i}`);this.error=n;this.error_description=i;this.filename=r;this.name="UploadError"}},_e={maxDataSize:12*1024*1024,retryAttempts:2,retryDelay:1e3},Te=new B.Agent({keepAlive:!0,maxSockets:10,keepAliveMsecs:3e3});async function we(e){let t=L.join(e,".gitignore"),i=U.existsSync(t)?j(U.readFileSync(t,"utf-8")).patterns:[];return me("**/*",{cwd:e,onlyFiles:!0,dot:!0,absolute:!0,ignore:["node_modules/**",".cache/**","**/.DS_Store",".gitignore",".env",".env.*",".git/**","dist/**",...i]})}async function Re(e,t,n,i,r,s,c){let o=async a=>{try{return await xe(e,t,n,i,r,s,c)}catch(p){if(a<c.retryAttempts)return g.warn(`Retrying upload for ${t} (attempt ${a+1})`),await new Promise(u=>setTimeout(u,c.retryDelay)),o(a+1);throw p}};return o(0)}async function xe(e,t,n,i,r,s,c){return new Promise((o,a)=>{let p=U.statSync(e),u=L.basename(e),h=Date.now(),S=new he({maxDataSize:c.maxDataSize}),O=U.createReadStream(e),A=0,E=l=>{A+=l.length};O.on("data",E),S.append("file",O,{filename:u,knownLength:p.size});let P={agent:Te,method:"POST",headers:{authorization:`Bearer ${s}`,"x-enpage-template-file-path":t,"x-enpage-template-id":i,...S.getHeaders()}},f=(n.startsWith("https")?fe:B).request(n,P,l=>{let m="";l.on("data",R=>{m+=R}),l.on("end",()=>{let R=Date.now(),W={fileName:u,fileSize:p.size,uploadDuration:R-h,statusCode:l.statusCode??0,serverResponse:m};if(l.statusCode&&l.statusCode>=200&&l.statusCode<300)r.text=`Uploaded ${t}`,o(W);else{let x;if(l.headers["content-type"]?.startsWith("application/json")){let v=JSON.parse(m);x=new w(v.error||"unknown_error",v.error_description||"Unknown error occurred",t)}else x=new w("unknown_error",m||"Unknown error occurred",t);r.fail(`Failed to upload ${t} [${x.error}] ${x.error_description}`),a(x)}})});f.on("error",l=>{a(new w("request_error",l.message,t))}),ye(S,f,l=>{l&&a(new w("pipeline_error",`Pipeline failed for ${u}: ${l.message}`,t))})})}function be(e,t,n){n.length>0?(g.error(z.red(`Failed to upload ${n.length} files:`)),n.forEach(i=>{let r=i.reason;g.error(`- ${r.filename}: ${r.error_description} (${r.error})`)})):g.info(z.green(`Uploaded ${t.length} files successfully for template ${e}.
10
- `))}async function mt(e,t,n,i=!1,r={}){let s={..._e,...r},c=new Se({concurrency:I}),o=await we(t),a=o.length,p={},u=Ue(),h=0;for(let d of o){let f=L.relative(t,d),l=await Le(d);p[f]=l}i&&(g.info(`Dry run mode enabled. Skipping upload.
11
- `),g.info("The following files would have been uploaded:"),o.forEach(d=>g.info(`- ${d}`)),process.exit(0));let S=Ee(`Uploading ${a} files...`).start(),O=o.map(d=>{let f=L.resolve(t,d),l=L.relative(t,d),m=`${y}/v1/templates/${e}/upload/${u}`;return c.add(async()=>{let R=await Re(f,l,m,e,S,n,s);return h++,R})}),A=await Promise.allSettled(O);S.stop();let E=A.filter(d=>d.status==="fulfilled"),P=A.filter(d=>d.status==="rejected");if(be(e,E.map(d=>d.value),P),!P.length&&E.length){let d=`${y}/v1/templates/${e}/upload/${u}/finalize`,l=await F(d,{signatures:p});if(l.isError)return g.error(`Failed to finalize upload: ${l.data.error_description} (${l.data.error})`),{filesCount:a,uploadedFiles:E.map(m=>m.value),failedFiles:[],success:!1}}return{filesCount:a,uploadedFiles:E.map(d=>d.value),failedFiles:P,success:P.length===0}}async function Le(e){let t=await ge.subtle.digest("SHA-1",U.readFileSync(e));return Array.from(new Uint8Array(t)).map(n=>n.toString(16).padStart(2,"0")).join("")}function Ue(){let e=Pe("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",5),t=new Date,n=t.getUTCFullYear(),i=(t.getUTCMonth()+1).toString().padStart(2,"0"),r=t.getUTCDate().toString().padStart(2,"0"),s=t.getUTCHours().toString().padStart(2,"0"),c=t.getUTCMinutes().toString().padStart(2,"0"),o=t.getUTCSeconds().toString().padStart(2,"0");return`${n}${i}${r}${s}${c}${o}_${e()}`}export{mt as uploadTemplate};
8
+ `)},se=(e,t={})=>{let n=k(e,t),i=t.formatSection||re,r=n.sections||n,s=[];for(let c of[].concat(r))s.push(i(c));return s.join(`
9
+ `)};var j=k;import Se from"p-queue";import Ee from"ora";import{customAlphabet as Pe}from"nanoid";import oe from"conf";import L from"node:path";import ne from"node:crypto";import T from"node:fs";import{fileURLToPath as ie}from"node:url";import He from"chalk";var ae=ie(new URL(".",import.meta.url)),ce=le(),$=new oe({projectName:N,encryptionKey:ce,clearInvalidConfig:!0});function pe(){let e=ae;for(;e!==L.parse(e).root;){let t=L.join(e,"node_modules");if(T.existsSync(t))return t;e=L.dirname(e)}return null}function le(){let e=pe();if(!e)throw new Error("Could not find nearest node_modules directory.");let t=L.join(e,".enpage-tmp");T.existsSync(t)||T.mkdirSync(t,{recursive:!0,mode:448});let n=L.join(t,".enpage-key");if(!T.existsSync(n)){let r=ne.randomBytes(32).toString("hex");return T.writeFileSync(n,r,{mode:384,flush:!0}),r}return T.readFileSync(n,"utf8")}async function F(e,t,n={}){$.get("access_token")&&(n.Authorization=`Bearer ${$.get("access_token")}`);let i=await fetch(ue(e),{method:"POST",headers:{"Content-Type":t instanceof URLSearchParams?"application/x-www-form-urlencoded":"application/json",...n},body:t instanceof URLSearchParams?t:JSON.stringify(t)}).catch(r=>{g.error(`Fatal Error requesting API: ${r.message} (${r.cause.code})`),g.error("Please check your internet connection and try again, or retry later."),process.exit(1)});return de(i)}function ue(e){let t=new URL(y.endsWith("/")?y:`${y}/`);return new URL(e,t)}async function de(e){let t=e.headers.get("content-type")?.startsWith("application/json")?await e.json():await e.text();return e.ok?{isSuccess:!0,isError:!1,status:e.status,statusText:e.statusText,data:t}:{isSuccess:!1,isError:!0,status:e.status,statusText:e.statusText,data:t}}var w=class extends Error{constructor(n,i,r){super(`${n}: ${i}`);this.error=n;this.error_description=i;this.filename=r;this.name="UploadError"}},_e={maxDataSize:12*1024*1024,retryAttempts:2,retryDelay:1e3},Te=new B.Agent({keepAlive:!0,maxSockets:10,keepAliveMsecs:3e3});async function we(e){let t=U.join(e,".gitignore"),i=O.existsSync(t)?j(O.readFileSync(t,"utf-8")).patterns:[];return me("**/*",{cwd:e,onlyFiles:!0,dot:!0,absolute:!0,ignore:["node_modules/**",".cache/**","**/.DS_Store",".gitignore",".env",".env.*",".git/**","dist/**",...i]})}async function Re(e,t,n,i,r,s,c){let o=async a=>{try{return await xe(e,t,n,i,r,s,c)}catch(p){if(a<c.retryAttempts)return g.warn(`Retrying upload for ${t} (attempt ${a+1})`),await new Promise(u=>setTimeout(u,c.retryDelay)),o(a+1);throw p}};return o(0)}async function xe(e,t,n,i,r,s,c){return new Promise((o,a)=>{let p=O.statSync(e),u=U.basename(e),h=Date.now(),S=new he({maxDataSize:c.maxDataSize}),b=O.createReadStream(e),A=0,E=l=>{A+=l.length};b.on("data",E),S.append("file",b,{filename:u,knownLength:p.size});let P={agent:Te,method:"POST",headers:{authorization:`Bearer ${s}`,"x-enpage-template-file-path":t,"x-enpage-template-id":i,...S.getHeaders()}},f=(n.startsWith("https")?fe:B).request(n,P,l=>{let m="";l.on("data",R=>{m+=R}),l.on("end",()=>{let R=Date.now(),W={fileName:u,fileSize:p.size,uploadDuration:R-h,statusCode:l.statusCode??0,serverResponse:m};if(l.statusCode&&l.statusCode>=200&&l.statusCode<300)r.text=`Uploaded ${t}`,o(W);else{let x;if(l.headers["content-type"]?.startsWith("application/json")){let v=JSON.parse(m);x=new w(v.error||"unknown_error",v.error_description||"Unknown error occurred",t)}else x=new w("unknown_error",m||"Unknown error occurred",t);r.fail(`Failed to upload ${t} [${x.error}] ${x.error_description}`),a(x)}})});f.on("error",l=>{a(new w("request_error",l.message,t))}),ye(S,f,l=>{l&&a(new w("pipeline_error",`Pipeline failed for ${u}: ${l.message}`,t))})})}function Le(e,t,n){n.length>0?(g.error(z.red(`Failed to upload ${n.length} files:`)),n.forEach(i=>{let r=i.reason;g.error(`- ${r.filename}: ${r.error_description} (${r.error})`)})):g.info(z.green(`Uploaded ${t.length} files successfully for template ${e}.
10
+ `))}async function mt(e,t,n,i=!1,r={}){let s={..._e,...r},c=new Se({concurrency:I}),o=await we(t),a=o.length,p={},u=Oe(),h=0;for(let d of o){let f=U.relative(t,d),l=await Ue(d);p[f]=l}i&&(g.info(`Dry run mode enabled. Skipping upload.
11
+ `),g.info("The following files would have been uploaded:"),o.forEach(d=>g.info(`- ${d}`)),process.exit(0));let S=Ee(`Uploading ${a} files...`).start(),b=o.map(d=>{let f=U.resolve(t,d),l=U.relative(t,d),m=`${y}/v1/templates/${e}/upload/${u}`;return c.add(async()=>{let R=await Re(f,l,m,e,S,n,s);return h++,R})}),A=await Promise.allSettled(b);S.stop();let E=A.filter(d=>d.status==="fulfilled"),P=A.filter(d=>d.status==="rejected");if(Le(e,E.map(d=>d.value),P),!P.length&&E.length){let d=`${y}/v1/templates/${e}/upload/${u}/finalize`,l=await F(d,{signatures:p});if(l.isError)return g.error(`Failed to finalize upload: ${l.data.error_description} (${l.data.error})`),{filesCount:a,uploadedFiles:E.map(m=>m.value),failedFiles:[],success:!1}}return{filesCount:a,uploadedFiles:E.map(d=>d.value),failedFiles:P,success:P.length===0}}async function Ue(e){let t=await ge.subtle.digest("SHA-1",O.readFileSync(e));return Array.from(new Uint8Array(t)).map(n=>n.toString(16).padStart(2,"0")).join("")}function Oe(){let e=Pe("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz",5),t=new Date,n=t.getUTCFullYear(),i=(t.getUTCMonth()+1).toString().padStart(2,"0"),r=t.getUTCDate().toString().padStart(2,"0"),s=t.getUTCHours().toString().padStart(2,"0"),c=t.getUTCMinutes().toString().padStart(2,"0"),o=t.getUTCSeconds().toString().padStart(2,"0");return`${n}${i}${r}${s}${c}${o}_${e()}`}export{mt as uploadTemplate};
12
12
  /*!
13
13
  * parse-gitignore <https://github.com/jonschlinkert/parse-gitignore>
14
14
  * Copyright (c) 2015-present, Jon Schlinkert.
@@ -1,4 +1,4 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
2
 
3
- var O=Object.defineProperty;var p=(e,t)=>()=>(e&&(t=e(e=0)),t);var S=(e,t)=>{for(var s in t)O(e,s,{get:t[s],enumerable:!0})};var y,F,g,M,f,m=p(()=>{"use strict";y="enpage-cli",F=process.env.PUBLIC_ENPAGE_OAUTH_CLIENT_ID??"50000000-0000-0000-0000-000000000001",g=process.env.PUBLIC_ENPAGE_API_BASE_URL??"https://api.enpage.co",M=process.env.PUBLIC_ENPAGE_FRONTEND_BASE_URL??"https://enpage.co",f="oauth/userinfo"});import N from"conf";import u from"node:path";import P from"node:crypto";import a from"node:fs";import{fileURLToPath as k}from"node:url";import X from"chalk";function I(){let e=v;for(;e!==u.parse(e).root;){let t=u.join(e,"node_modules");if(a.existsSync(t))return t;e=u.dirname(e)}return null}function b(){let e=I();if(!e)throw new Error("Could not find nearest node_modules directory.");let t=u.join(e,".enpage-tmp");a.existsSync(t)||a.mkdirSync(t,{recursive:!0,mode:448});let s=u.join(t,".enpage-key");if(!a.existsSync(s)){let r=P.randomBytes(32).toString("hex");return a.writeFileSync(s,r,{mode:384,flush:!0}),r}return a.readFileSync(s,"utf8")}var v,w,i,l=p(()=>{"use strict";m();v=k(new URL(".",import.meta.url)),w=b(),i=new N({projectName:y,encryptionKey:w,clearInvalidConfig:!0})});var h,E=p(()=>{h="0.0.69"});import{createLogger as U}from"vite";import c from"chalk";function C(e,t,s=!1){let o=U(e==="debug"?"info":e,{prefix:"[enpage]",allowClearScreen:t});return s&&o.info(c.hex("#7270c6").bold(`\u{1F680} Enpage v${h}
4
- `)),{...o,success:(r,n)=>o.info(c.green(r),n),error:(r,n)=>o.error(c.red(r),n),warn:(r,n)=>o.warn(c.yellow(r),n),warnOnce:(r,n)=>o.warnOnce(c.yellow(r),n),debug:(r,n)=>{e==="debug"&&o.info(c.gray(r),n)}}}var d,_=p(()=>{"use strict";E();d=C()});var x={};S(x,{get:()=>j,post:()=>D});async function D(e,t,s={}){i.get("access_token")&&(s.Authorization=`Bearer ${i.get("access_token")}`);let o=await fetch(T(e),{method:"POST",headers:{"Content-Type":t instanceof URLSearchParams?"application/x-www-form-urlencoded":"application/json",...s},body:t instanceof URLSearchParams?t:JSON.stringify(t)}).catch(r=>{d.error(`Fatal Error requesting API: ${r.message} (${r.cause.code})`),d.error("Please check your internet connection and try again, or retry later."),process.exit(1)});return L(o)}async function j(e,t={}){i.get("access_token")&&(t.Authorization=`Bearer ${i.get("access_token")}`);let s=await fetch(T(e),{headers:t,method:"GET"}).catch(o=>{d.error(`Fatal Error requesting API: ${o.message} (${o.cause.code})`),d.error("Please check your internet connection and try again, or retry later."),process.exit(1)});return L(s)}function T(e){let t=new URL(g.endsWith("/")?g:`${g}/`);return new URL(e,t)}async function L(e){let t=e.headers.get("content-type")?.startsWith("application/json")?await e.json():await e.text();return e.ok?{isSuccess:!0,isError:!1,status:e.status,statusText:e.statusText,data:t}:{isSuccess:!1,isError:!0,status:e.status,statusText:e.statusText,data:t}}var R=p(()=>{"use strict";_();m();l()});m();l();async function ce(e=!1){let t=i.get("access_token"),s=i.get("expires_at");if(!t)return!1;if(s&&s<Date.now())return console.log("Seems like your token expired..."),!1;if(!e)return!0;let{get:o}=await Promise.resolve().then(()=>(R(),x)),{isSuccess:r}=await o(f);return r}export{ce as isLoggedIn};
3
+ var O=Object.defineProperty;var c=(e,t)=>()=>(e&&(t=e(e=0)),t);var S=(e,t)=>{for(var s in t)O(e,s,{get:t[s],enumerable:!0})};var y,F,g,M,f,m=c(()=>{"use strict";y="enpage-cli",F=process.env.PUBLIC_ENPAGE_OAUTH_CLIENT_ID??"50000000-0000-0000-0000-000000000001",g=process.env.PUBLIC_ENPAGE_API_BASE_URL??"https://api.enpage.co",M=process.env.PUBLIC_ENPAGE_FRONTEND_BASE_URL??"https://enpage.co",f="oauth/userinfo"});import k from"conf";import u from"node:path";import N from"node:crypto";import a from"node:fs";import{fileURLToPath as P}from"node:url";import X from"chalk";function I(){let e=w;for(;e!==u.parse(e).root;){let t=u.join(e,"node_modules");if(a.existsSync(t))return t;e=u.dirname(e)}return null}function A(){let e=I();if(!e)throw new Error("Could not find nearest node_modules directory.");let t=u.join(e,".enpage-tmp");a.existsSync(t)||a.mkdirSync(t,{recursive:!0,mode:448});let s=u.join(t,".enpage-key");if(!a.existsSync(s)){let r=N.randomBytes(32).toString("hex");return a.writeFileSync(s,r,{mode:384,flush:!0}),r}return a.readFileSync(s,"utf8")}var w,v,i,l=c(()=>{"use strict";m();w=P(new URL(".",import.meta.url)),v=A(),i=new k({projectName:y,encryptionKey:v,clearInvalidConfig:!0})});var h,E=c(()=>{h="0.0.70"});import{createLogger as b}from"vite";import p from"chalk";function C(e,t,s=!1){let o=b(e==="debug"?"info":e,{prefix:"[enpage]",allowClearScreen:t});return s&&o.info(p.hex("#7270c6").bold(`\u{1F680} Enpage v${h}
4
+ `)),{...o,success:(r,n)=>o.info(p.green(r),n),error:(r,n)=>o.error(p.red(r),n),warn:(r,n)=>o.warn(p.yellow(r),n),warnOnce:(r,n)=>o.warnOnce(p.yellow(r),n),debug:(r,n)=>{e==="debug"&&o.info(p.gray(r),n)}}}var d,_=c(()=>{"use strict";E();d=C()});var x={};S(x,{get:()=>j,post:()=>D});async function D(e,t,s={}){i.get("access_token")&&(s.Authorization=`Bearer ${i.get("access_token")}`);let o=await fetch(T(e),{method:"POST",headers:{"Content-Type":t instanceof URLSearchParams?"application/x-www-form-urlencoded":"application/json",...s},body:t instanceof URLSearchParams?t:JSON.stringify(t)}).catch(r=>{d.error(`Fatal Error requesting API: ${r.message} (${r.cause.code})`),d.error("Please check your internet connection and try again, or retry later."),process.exit(1)});return L(o)}async function j(e,t={}){i.get("access_token")&&(t.Authorization=`Bearer ${i.get("access_token")}`);let s=await fetch(T(e),{headers:t,method:"GET"}).catch(o=>{d.error(`Fatal Error requesting API: ${o.message} (${o.cause.code})`),d.error("Please check your internet connection and try again, or retry later."),process.exit(1)});return L(s)}function T(e){let t=new URL(g.endsWith("/")?g:`${g}/`);return new URL(e,t)}async function L(e){let t=e.headers.get("content-type")?.startsWith("application/json")?await e.json():await e.text();return e.ok?{isSuccess:!0,isError:!1,status:e.status,statusText:e.statusText,data:t}:{isSuccess:!1,isError:!0,status:e.status,statusText:e.statusText,data:t}}var R=c(()=>{"use strict";_();m();l()});m();l();async function pe(e=!1){let t=i.get("access_token"),s=i.get("expires_at");if(!t)return!1;if(s&&s<Date.now())return console.log("Seems like your token expired..."),!1;if(!e)return!0;let{get:o}=await Promise.resolve().then(()=>(R(),x)),{isSuccess:r}=await o(f);return r}export{pe as isLoggedIn};
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
3
3
 
4
- var Ur=Object.create;var ze=Object.defineProperty;var $r=Object.getOwnPropertyDescriptor;var Wr=Object.getOwnPropertyNames;var Br=Object.getPrototypeOf,zr=Object.prototype.hasOwnProperty;var pt=(i,t)=>()=>(i&&(t=i(i=0)),t);var _s=(i,t)=>()=>(t||i((t={exports:{}}).exports,t),t.exports),Gr=(i,t)=>{for(var e in t)ze(i,e,{get:t[e],enumerable:!0})},Hr=(i,t,e,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Wr(t))!zr.call(i,r)&&r!==e&&ze(i,r,{get:()=>t[r],enumerable:!(s=$r(t,r))||s.enumerable});return i};var qr=(i,t,e)=>(e=i!=null?Ur(Br(i)):{},Hr(t||!i||!i.__esModule?ze(e,"default",{value:i,enumerable:!0}):e,i));function ae(){let i;if(process.env.npm_config_user_agent){let t=process.env.npm_config_user_agent.split(" ")[0];i=t.slice(0,t.lastIndexOf("/"))}return i||(console.log("Warning: could not detect package manager"),i="npm"),i}function ks(i){return`[${i.error}]${i.error_description?`: ${i.error_description}`:""}`}var Ge=pt(()=>{"use strict"});var Ns,He,lt,Ec,Ds,Ps,Ls,Fs,Ms,ft=pt(()=>{"use strict";Ns="enpage-cli",He=process.env.PUBLIC_ENPAGE_OAUTH_CLIENT_ID??"50000000-0000-0000-0000-000000000001",lt=process.env.PUBLIC_ENPAGE_API_BASE_URL??"https://api.enpage.co",Ec=process.env.PUBLIC_ENPAGE_FRONTEND_BASE_URL??"https://enpage.co",Ds=10,Ps="oauth/devicecode",Ls="oauth/token",Fs="oauth/userinfo",Ms="v1/templates"});import Vr from"conf";import It from"node:path";import Kr from"node:crypto";import mt from"node:fs";import{fileURLToPath as Yr}from"node:url";import Jr from"chalk";function Is(){let i=M.get("access_token");if(!i){let t=ae();throw new Error(`Access token not found. Please run ${Jr.cyan(`${t} run enpage:login`)} to authenticate.`)}return i}function Qr(){let i=Xr;for(;i!==It.parse(i).root;){let t=It.join(i,"node_modules");if(mt.existsSync(t))return t;i=It.dirname(i)}return null}function tn(){let i=Qr();if(!i)throw new Error("Could not find nearest node_modules directory.");let t=It.join(i,".enpage-tmp");mt.existsSync(t)||mt.mkdirSync(t,{recursive:!0,mode:448});let e=It.join(t,".enpage-key");if(!mt.existsSync(e)){let r=Kr.randomBytes(32).toString("hex");return mt.writeFileSync(e,r,{mode:384,flush:!0}),r}return mt.readFileSync(e,"utf8")}var Xr,Zr,M,gt=pt(()=>{"use strict";ft();Ge();Xr=Yr(new URL(".",import.meta.url)),Zr=tn(),M=new Vr({projectName:Ns,encryptionKey:Zr,clearInvalidConfig:!0})});var Us,js=pt(()=>{Us="0.0.69"});import{createLogger as sn}from"vite";import wt from"chalk";function qe(i,t,e=!1){let s=sn(i==="debug"?"info":i,{prefix:"[enpage]",allowClearScreen:t});return e&&s.info(wt.hex("#7270c6").bold(`\u{1F680} Enpage v${Us}
4
+ var Ur=Object.create;var ze=Object.defineProperty;var $r=Object.getOwnPropertyDescriptor;var Wr=Object.getOwnPropertyNames;var Br=Object.getPrototypeOf,zr=Object.prototype.hasOwnProperty;var pt=(i,t)=>()=>(i&&(t=i(i=0)),t);var _s=(i,t)=>()=>(t||i((t={exports:{}}).exports,t),t.exports),Gr=(i,t)=>{for(var e in t)ze(i,e,{get:t[e],enumerable:!0})},Hr=(i,t,e,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of Wr(t))!zr.call(i,r)&&r!==e&&ze(i,r,{get:()=>t[r],enumerable:!(s=$r(t,r))||s.enumerable});return i};var qr=(i,t,e)=>(e=i!=null?Ur(Br(i)):{},Hr(t||!i||!i.__esModule?ze(e,"default",{value:i,enumerable:!0}):e,i));function ae(){let i;if(process.env.npm_config_user_agent){let t=process.env.npm_config_user_agent.split(" ")[0];i=t.slice(0,t.lastIndexOf("/"))}return i||(console.log("Warning: could not detect package manager"),i="npm"),i}function ks(i){return`[${i.error}]${i.error_description?`: ${i.error_description}`:""}`}var Ge=pt(()=>{"use strict"});var Ns,He,lt,Ec,Ds,Ps,Ls,Fs,Ms,ft=pt(()=>{"use strict";Ns="enpage-cli",He=process.env.PUBLIC_ENPAGE_OAUTH_CLIENT_ID??"50000000-0000-0000-0000-000000000001",lt=process.env.PUBLIC_ENPAGE_API_BASE_URL??"https://api.enpage.co",Ec=process.env.PUBLIC_ENPAGE_FRONTEND_BASE_URL??"https://enpage.co",Ds=10,Ps="oauth/devicecode",Ls="oauth/token",Fs="oauth/userinfo",Ms="v1/templates"});import Vr from"conf";import It from"node:path";import Kr from"node:crypto";import mt from"node:fs";import{fileURLToPath as Yr}from"node:url";import Jr from"chalk";function Is(){let i=M.get("access_token");if(!i){let t=ae();throw new Error(`Access token not found. Please run ${Jr.cyan(`${t} run enpage:login`)} to authenticate.`)}return i}function Qr(){let i=Xr;for(;i!==It.parse(i).root;){let t=It.join(i,"node_modules");if(mt.existsSync(t))return t;i=It.dirname(i)}return null}function tn(){let i=Qr();if(!i)throw new Error("Could not find nearest node_modules directory.");let t=It.join(i,".enpage-tmp");mt.existsSync(t)||mt.mkdirSync(t,{recursive:!0,mode:448});let e=It.join(t,".enpage-key");if(!mt.existsSync(e)){let r=Kr.randomBytes(32).toString("hex");return mt.writeFileSync(e,r,{mode:384,flush:!0}),r}return mt.readFileSync(e,"utf8")}var Xr,Zr,M,gt=pt(()=>{"use strict";ft();Ge();Xr=Yr(new URL(".",import.meta.url)),Zr=tn(),M=new Vr({projectName:Ns,encryptionKey:Zr,clearInvalidConfig:!0})});var Us,js=pt(()=>{Us="0.0.70"});import{createLogger as sn}from"vite";import wt from"chalk";function qe(i,t,e=!1){let s=sn(i==="debug"?"info":i,{prefix:"[enpage]",allowClearScreen:t});return e&&s.info(wt.hex("#7270c6").bold(`\u{1F680} Enpage v${Us}
5
5
  `)),{...s,success:(r,n)=>s.info(wt.green(r),n),error:(r,n)=>s.error(wt.red(r),n),warn:(r,n)=>s.warn(wt.yellow(r),n),warnOnce:(r,n)=>s.warnOnce(wt.yellow(r),n),debug:(r,n)=>{i==="debug"&&s.info(wt.gray(r),n)}}}var k,jt=pt(()=>{"use strict";js();k=qe()});var Gs={};Gr(Gs,{get:()=>mn,post:()=>it});async function it(i,t,e={}){M.get("access_token")&&(e.Authorization=`Bearer ${M.get("access_token")}`);let s=await fetch(Bs(i),{method:"POST",headers:{"Content-Type":t instanceof URLSearchParams?"application/x-www-form-urlencoded":"application/json",...e},body:t instanceof URLSearchParams?t:JSON.stringify(t)}).catch(r=>{k.error(`Fatal Error requesting API: ${r.message} (${r.cause.code})`),k.error("Please check your internet connection and try again, or retry later."),process.exit(1)});return zs(s)}async function mn(i,t={}){M.get("access_token")&&(t.Authorization=`Bearer ${M.get("access_token")}`);let e=await fetch(Bs(i),{headers:t,method:"GET"}).catch(s=>{k.error(`Fatal Error requesting API: ${s.message} (${s.cause.code})`),k.error("Please check your internet connection and try again, or retry later."),process.exit(1)});return zs(e)}function Bs(i){let t=new URL(lt.endsWith("/")?lt:`${lt}/`);return new URL(i,t)}async function zs(i){let t=i.headers.get("content-type")?.startsWith("application/json")?await i.json():await i.text();return i.ok?{isSuccess:!0,isError:!1,status:i.status,statusText:i.statusText,data:t}:{isSuccess:!1,isError:!0,status:i.status,statusText:i.statusText,data:t}}var Ut=pt(()=>{"use strict";jt();ft();gt()});var oi=_s((Ih,ni)=>{"use strict";ni.exports=ii;function ii(i,t,e){i instanceof RegExp&&(i=si(i,e)),t instanceof RegExp&&(t=si(t,e));var s=ri(i,t,e);return s&&{start:s[0],end:s[1],pre:e.slice(0,s[0]),body:e.slice(s[0]+i.length,s[1]),post:e.slice(s[1]+t.length)}}function si(i,t){var e=t.match(i);return e?e[0]:null}ii.range=ri;function ri(i,t,e){var s,r,n,o,a,c=e.indexOf(i),h=e.indexOf(t,c+1),l=c;if(c>=0&&h>0){if(i===t)return[c,h];for(s=[],n=e.length;l>=0&&!a;)l==c?(s.push(l),c=e.indexOf(i,l+1)):s.length==1?a=[s.pop(),h]:(r=s.pop(),r<n&&(n=r,o=h),h=e.indexOf(t,l+1)),l=c<h&&c>=0?c:h;s.length&&(a=[n,o])}return a}});var pi=_s((jh,di)=>{"use strict";var ai=oi();di.exports=Kn;var ci="\0SLASH"+Math.random()+"\0",hi="\0OPEN"+Math.random()+"\0",Ke="\0CLOSE"+Math.random()+"\0",li="\0COMMA"+Math.random()+"\0",fi="\0PERIOD"+Math.random()+"\0";function Ve(i){return parseInt(i,10)==i?parseInt(i,10):i.charCodeAt(0)}function qn(i){return i.split("\\\\").join(ci).split("\\{").join(hi).split("\\}").join(Ke).split("\\,").join(li).split("\\.").join(fi)}function Vn(i){return i.split(ci).join("\\").split(hi).join("{").split(Ke).join("}").split(li).join(",").split(fi).join(".")}function ui(i){if(!i)return[""];var t=[],e=ai("{","}",i);if(!e)return i.split(",");var s=e.pre,r=e.body,n=e.post,o=s.split(",");o[o.length-1]+="{"+r+"}";var a=ui(n);return n.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),t.push.apply(t,o),t}function Kn(i){return i?(i.substr(0,2)==="{}"&&(i="\\{\\}"+i.substr(2)),zt(qn(i),!0).map(Vn)):[]}function Yn(i){return"{"+i+"}"}function Jn(i){return/^-?0\d/.test(i)}function Xn(i,t){return i<=t}function Zn(i,t){return i>=t}function zt(i,t){var e=[],s=ai("{","}",i);if(!s)return[i];var r=s.pre,n=s.post.length?zt(s.post,!1):[""];if(/\$$/.test(s.pre))for(var o=0;o<n.length;o++){var a=r+"{"+s.body+"}"+n[o];e.push(a)}else{var c=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(s.body),h=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(s.body),l=c||h,f=s.body.indexOf(",")>=0;if(!l&&!f)return s.post.match(/,.*\}/)?(i=s.pre+"{"+s.body+Ke+s.post,zt(i)):[i];var u;if(l)u=s.body.split(/\.\./);else if(u=ui(s.body),u.length===1&&(u=zt(u[0],!1).map(Yn),u.length===1))return n.map(function(oe){return s.pre+u[0]+oe});var d;if(l){var g=Ve(u[0]),p=Ve(u[1]),y=Math.max(u[0].length,u[1].length),m=u.length==3?Math.abs(Ve(u[2])):1,b=Xn,w=p<g;w&&(m*=-1,b=Zn);var S=u.some(Jn);d=[];for(var E=g;b(E,p);E+=m){var v;if(h)v=String.fromCharCode(E),v==="\\"&&(v="");else if(v=String(E),S){var C=y-v.length;if(C>0){var K=new Array(C+1).join("0");E<0?v="-"+K+v.slice(1):v=K+v}}d.push(v)}}else{d=[];for(var B=0;B<u.length;B++)d.push.apply(d,zt(u[B],!1))}for(var B=0;B<d.length;B++)for(var o=0;o<n.length;o++){var a=r+d[B]+n[o];(!t||l||a)&&e.push(a)}}return e}});import{program as Mt}from"commander";Ge();gt();import{resolve as X}from"node:path";import{existsSync as Bt,readFileSync as jn,writeFileSync as Un}from"node:fs";import rt from"chalk";ft();jt();import $t from"node:path";import Wt from"node:fs";import gn from"node:crypto";import wn from"fast-glob";import qs from"node:http";import yn from"node:https";import{pipeline as Sn}from"node:stream";import Hs from"chalk";import bn from"form-data";import*as ce from"node:fs";var rn=/[<>"|?*\n\r\t\f\x00-\x1F]/,nn=/(?:^|\/)[*]{2}($|\/)/,on=248,an=i=>i!==null&&typeof i=="object"&&!Array.isArray(i),cn=i=>typeof i=="string"&&i.length<=on&&!rn.test(i),hn=i=>i.split(/\r\n?|\n/);var ln=i=>an(i)&&Array.isArray(i.patterns)&&Array.isArray(i.sections);var he=(i,t={})=>{let e=t.path;if(ln(i))return i;cn(i)&&ce.existsSync(i)&&(e=i,i=ce.readFileSync(i,"utf8"));let s=hn(i),r=new Map,n={sections:[],patterns:[]},o={name:"default",patterns:[]},a=null;for(let c of s){let h=c.trim();if(h.startsWith("#")){let[,l]=/^#+\s*(.*)\s*$/.exec(h)||[];if(a){r.delete(a.name),a.comment=a.comment?`${a.comment}
6
6
  ${h}`:h,a.name=l?`${a.name.trim()}
7
7
  ${l.trim()}`:a.name.trim(),r.set(a.name.toLowerCase().trim(),a);continue}o={name:l?.trim()||"",comment:h,patterns:[]},r.set(o.name.toLowerCase(),o),n.sections.push(o),a=o;continue}h!==""&&(o.patterns.push(h),n.patterns.push(h)),a=null}return(t.dedupe===!0||t.unique===!0)&&(n=$s(n,{...t,format:!1})),n.path=e,n.input=Buffer.from(i),n.format=c=>pn(n,{...t,...c}),n.dedupe=c=>$s(n,{...t,...c}),n.globs=c=>un(n,{path:e,...t,...c}),n};var $s=(i,t)=>{let e=he(i,{...t,dedupe:!1}),s=new Map,r={sections:[],patterns:[]},n;for(let o of e.sections){let{name:a="",comment:c,patterns:h}=o,l=a.trim().toLowerCase();for(let f of h)r.patterns.includes(f)||r.patterns.push(f);a&&s.has(l)?(n=s.get(l),n.patterns=[...n.patterns,...h]):(n={name:a,comment:c,patterns:h},r.sections.push(n),s.set(l,n))}for(let o of r.sections)o.patterns=[...new Set(o.patterns)];return r},fn=i=>{if(nn.test(i))return i;let t=!1;return i.startsWith("/")?(i=i.slice(1),t=!0):i.slice(1,i.length-1).includes("/")&&(t=!0),i+=i.endsWith("/")?"**/":"/**",t?i:`**/${i}`},un=(i,t={})=>{let e=he(i,t),s=[],r=0,n=e.patterns.concat(t.ignore||[]).concat((t.unignore||[]).map(a=>a.startsWith("!")?a:`!${a}`)),o=(a,c)=>{let h=s[s.length-1],l=a?"unignore":"ignore";h&&h.type===l?h.patterns.includes(c)||h.patterns.push(c):(s.push({type:l,path:t.path||null,patterns:[c],index:r}),r++)};for(let a of n){let c="";a.startsWith("!")&&(a=a.slice(1),c="!"),o(c,a.startsWith("/")?a.slice(1):a),o(c,fn(a))}return s},dn=(i={name:"",patterns:[]})=>{let t=[i.comment||""];return i.patterns?.length&&(t.push(i.patterns.join(`
@@ -1,13 +1,13 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
2
 
3
- import{Type as e}from"@sinclair/typebox";var c=e.Object({id:e.Optional(e.String({title:"Template ID",description:"A unique identifier for the template. Can be any string, but should be unique."})),name:e.String({title:"Template Name"}),description:e.Optional(e.String({title:"Show template description"})),readme:e.Optional(e.Record(e.RegExp(/^[a-z]{2}$/),e.String(),{title:"Readme texts.",description:"A dictionary of readme files for different languages (iso 2 letters code). Currently on supported for 'en' and 'fr'."})),tags:e.Optional(e.Array(e.String(),{title:"Tags"})),author:e.Optional(e.String({title:"Author name"})),thumbnail:e.Optional(e.String({title:"Thumbnail",description:"A URL to the thumbnail image for the template."})),homepage:e.Optional(e.String({title:"Homepage",description:"A URL to the homepage of the template."}))});import d from"node:fs";import{readFile as x}from"node:fs/promises";import L from"fast-glob";import{createLogger as b}from"vite";var g="0.0.69";import n from"chalk";function v(r,s,a=!1){let t=b(r==="debug"?"info":r,{prefix:"[enpage]",allowClearScreen:s});return a&&t.info(n.hex("#7270c6").bold(`\u{1F680} Enpage v${g}
4
- `)),{...t,success:(o,i)=>t.info(n.green(o),i),error:(o,i)=>t.error(n.red(o),i),warn:(o,i)=>t.warn(n.yellow(o),i),warnOnce:(o,i)=>t.warnOnce(n.yellow(o),i),debug:(o,i)=>{r==="debug"&&t.info(n.gray(o),i)}}}var u=v();import{fromError as O}from"zod-validation-error";import{basename as f,dirname as w,extname as S}from"node:path";async function P(r,s=u){d.existsSync(r)||(s.error(`\u{1F534} No enpage.config.js found!
3
+ import{Type as e}from"@sinclair/typebox";var g=e.Object({id:e.Optional(e.String({title:"Template ID",description:"A unique identifier for the template. Can be any string, but should be unique."})),name:e.String({title:"Template Name"}),description:e.Optional(e.String({title:"Show template description"})),readme:e.Optional(e.Record(e.RegExp(/^[a-z]{2}$/),e.String(),{title:"Readme texts.",description:"A dictionary of readme files for different languages (iso 2 letters code). Currently on supported for 'en' and 'fr'."})),tags:e.Optional(e.Array(e.String(),{title:"Tags"})),author:e.Optional(e.String({title:"Author name"})),thumbnail:e.Optional(e.String({title:"Thumbnail",description:"A URL to the thumbnail image for the template."})),homepage:e.Optional(e.String({title:"Homepage",description:"A URL to the homepage of the template."}))});import d from"node:fs";import{readFile as x}from"node:fs/promises";import L from"fast-glob";import{createLogger as b}from"vite";var c="0.0.70";import n from"chalk";function v(r,i,a=!1){let t=b(r==="debug"?"info":r,{prefix:"[enpage]",allowClearScreen:i});return a&&t.info(n.hex("#7270c6").bold(`\u{1F680} Enpage v${c}
4
+ `)),{...t,success:(s,o)=>t.info(n.green(s),o),error:(s,o)=>t.error(n.red(s),o),warn:(s,o)=>t.warn(n.yellow(s),o),warnOnce:(s,o)=>t.warnOnce(n.yellow(s),o),debug:(s,o)=>{r==="debug"&&t.info(n.gray(s),o)}}}var u=v();import{fromError as O}from"zod-validation-error";import{basename as f,dirname as w,extname as S}from"node:path";async function P(r,i=u){d.existsSync(r)||(i.error(`\u{1F534} No enpage.config.js found!
5
5
  Your project must have an enpage.config.js file in the root directory.
6
6
 
7
- `),process.exit(1));let a=await import(r),t=w(r),o={},i=await L(["README.enpage.md","README.enpage.*.md"],{cwd:t,onlyFiles:!0,absolute:!0,caseSensitiveMatch:!1});for(let p of i){let y=f(p,".md"),l=S(y),m=(l===".enpage"?"en":l.substring(1)).toLowerCase();s.debug(`Found template readme file (${m}): ${f(p)}`),o[m]=await x(p,"utf-8")}return a.manifest.readme=o,a}function B(r,s){return d.existsSync(r)||(s.error(`\u{1F534} No enpage.manifest.json found!
7
+ `),process.exit(1));let a=await import(r),t=w(r),s={},o=await L(["README.enpage.md","README.enpage.*.md"],{cwd:t,onlyFiles:!0,absolute:!0,caseSensitiveMatch:!1});for(let p of o){let y=f(p,".md"),l=S(y),m=(l===".enpage"?"en":l.substring(1)).toLowerCase();i.debug(`Found template readme file (${m}): ${f(p)}`),s[m]=await x(p,"utf-8")}return a.manifest.readme=s,a}function B(r,i){return d.existsSync(r)||(i.error(`\u{1F534} No enpage.manifest.json found!
8
8
  You may want to 'build' your template.
9
9
 
10
- `),process.exit(1)),JSON.parse(d.readFileSync(r,"utf-8"))}function H(r,s){for(let t in r.datasources)if(r.datasources[t].provider==="json"&&!r.datasources[t].sampleData)throw s.error(`\u{1F534} Error: Datasource "${t}" is missing sample data - nothing will be rendered during development! Please check your enpage.config.js file and add a "sampleData" key to your ${t} datasource.`),new Error(`Missing sample data for datasource "${t}"`);let a=c.safeParse(r.manifest);if(!a.success){s.error(`\u{1F534} Error: template manifest is invalid. Check your call to defineManifest().
11
- `);let t=O(a.error);s.error(`Hint: ${t.toString()}
10
+ `),process.exit(1)),JSON.parse(d.readFileSync(r,"utf-8"))}function H(r,i){for(let t in r.datasources)if(r.datasources[t].provider==="json"&&!r.datasources[t].sampleData)throw i.error(`\u{1F534} Error: Datasource "${t}" is missing sample data - nothing will be rendered during development! Please check your enpage.config.js file and add a "sampleData" key to your ${t} datasource.`),new Error(`Missing sample data for datasource "${t}"`);let a=g.safeParse(r.manifest);if(!a.success){i.error(`\u{1F534} Error: template manifest is invalid. Check your call to defineManifest().
11
+ `);let t=O(a.error);i.error(`Hint: ${t.toString()}
12
12
 
13
13
  `),process.exit(1)}return r}export{P as loadConfigFromJsFile,B as loadConfigFromManifestFile,H as validateTemplateConfig};
@@ -1,4 +1,4 @@
1
1
  /*! Upstart.gg - Copyright (C) 2024 Flippable - https://github.com/enpage/enpage/blob/main/LICENSE */
2
2
 
3
- import{createLogger as d}from"vite";var o="0.0.69";import r from"chalk";function g(i,a,n=!1){let s=d(i==="debug"?"info":i,{prefix:"[enpage]",allowClearScreen:a});return n&&s.info(r.hex("#7270c6").bold(`\u{1F680} Enpage v${o}
4
- `)),{...s,success:(e,t)=>s.info(r.green(e),t),error:(e,t)=>s.error(r.red(e),t),warn:(e,t)=>s.warn(r.yellow(e),t),warnOnce:(e,t)=>s.warnOnce(r.yellow(e),t),debug:(e,t)=>{i==="debug"&&s.info(r.gray(e),t)}}}var y=g();export{g as createLogger,y as logger};
3
+ import{createLogger as d}from"vite";var i="0.0.70";import r from"chalk";function g(o,n,a=!1){let s=d(o==="debug"?"info":o,{prefix:"[enpage]",allowClearScreen:n});return a&&s.info(r.hex("#7270c6").bold(`\u{1F680} Enpage v${i}
4
+ `)),{...s,success:(e,t)=>s.info(r.green(e),t),error:(e,t)=>s.error(r.red(e),t),warn:(e,t)=>s.warn(r.yellow(e),t),warnOnce:(e,t)=>s.warnOnce(r.yellow(e),t),debug:(e,t)=>{o==="debug"&&s.info(r.gray(e),t)}}}var y=g();export{g as createLogger,y as logger};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@upstart.gg/sdk",
3
- "version": "0.0.69",
3
+ "version": "0.0.70",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -51,7 +51,6 @@
51
51
  "conf": "13.0.1",
52
52
  "date-fns": "3.6.0",
53
53
  "debug": "4.3.6",
54
- "dompurify": "3.1.6",
55
54
  "fast-glob": "3.3.2",
56
55
  "form-data": "4.0.0",
57
56
  "get-port": "7.1.0",
@@ -64,6 +63,8 @@
64
63
  "open": "10.1.0",
65
64
  "ora": "8.1.0",
66
65
  "p-queue": "8.0.1",
66
+ "react": "18.2.0",
67
+ "react-dom": "18.2.0",
67
68
  "react-hotkeys-hook": "4.5.1",
68
69
  "react-icons": "5.3.0",
69
70
  "react-selecto": "1.26.3",
@@ -73,38 +74,36 @@
73
74
  "zod": "3.23.8",
74
75
  "zod-validation-error": "3.3.1",
75
76
  "zundo": "2.1.0",
76
- "zustand": "4.5.5"
77
+ "zustand": "4.5.5",
78
+ "@upstart.gg/style-system": "0.0.32"
77
79
  },
78
80
  "peerDependencies": {
79
- "react": "18.3.0-canary-3d9b20132-20240124",
80
- "react-dom": "18.3.0-canary-3d9b20132-20240124",
81
- "@upstart.gg/style-system": "0.0.31"
81
+ "react": "18.2.0",
82
+ "react-dom": "18.2.0",
83
+ "@upstart.gg/style-system": "0.0.32"
82
84
  },
83
85
  "devDependencies": {
84
- "express": "^4.20.0",
85
- "vite": "5.4.6",
86
- "vite-plugin-dts": "4.2.1",
87
- "vite-plugin-image-optimizer": "1.1.8",
88
- "vite-plugin-inspect": "0.8.7",
89
- "vite-plugin-virtual": "0.3.0",
90
- "vite-tsconfig-paths": "5.0.1",
91
- "rimraf": "6.0.1",
92
- "@vitejs/plugin-react": "^4.3.1",
93
86
  "@cloudflare/workers-types": "4.20240806.0",
94
87
  "@types/chroma-js": "2.4.4",
95
88
  "@types/cli-progress": "3.11.6",
96
89
  "@types/debug": "4.1.12",
97
- "@types/dompurify": "3.0.5",
98
90
  "@types/express": "^4.17.21",
99
91
  "@types/lodash-es": "4.17.12",
100
92
  "@types/node": "^20.14.10",
101
93
  "@types/react": "18.3.3",
102
94
  "@types/react-dom": "^18.3.0",
103
95
  "@types/sortablejs": "1.15.8",
96
+ "@vitejs/plugin-react": "^4.3.4",
104
97
  "concurrently": "8.2.2",
105
- "react": "18.3.0-canary-3d9b20132-20240124",
106
- "react-dom": "18.3.0-canary-3d9b20132-20240124",
107
- "tsup": "8.2.4"
98
+ "express": "^4.21.2",
99
+ "rimraf": "6.0.1",
100
+ "tsup": "8.2.4",
101
+ "vite": "5.4.6",
102
+ "vite-plugin-dts": "4.2.1",
103
+ "vite-plugin-image-optimizer": "1.1.8",
104
+ "vite-plugin-inspect": "0.8.7",
105
+ "vite-plugin-virtual": "0.3.0",
106
+ "vite-tsconfig-paths": "5.0.1"
108
107
  },
109
108
  "author": "Matthias Etienne",
110
109
  "publishConfig": {
@@ -1 +0,0 @@
1
- {"inputs":{"package.json":{"bytes":3382,"imports":[]},"src/node/shared/logger.ts":{"bytes":1411,"imports":[{"path":"vite","kind":"import-statement","external":true},{"path":"package.json","kind":"import-statement","original":"../../../package.json"},{"path":"chalk","kind":"import-statement","external":true}],"format":"esm"},"src/node/cli/constants.ts":{"bytes":705,"imports":[],"format":"esm"},"src/node/cli/utils.ts":{"bytes":638,"imports":[],"format":"esm"},"src/node/cli/store.ts":{"bytes":1964,"imports":[{"path":"src/node/cli/constants.ts","kind":"import-statement","original":"./constants"},{"path":"conf","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:url","kind":"import-statement","external":true},{"path":"src/node/cli/utils.ts","kind":"import-statement","original":"./utils"},{"path":"chalk","kind":"import-statement","external":true}],"format":"esm"},"src/node/cli/api.ts":{"bytes":3038,"imports":[{"path":"src/node/shared/logger.ts","kind":"import-statement","original":"../shared/logger"},{"path":"src/node/cli/constants.ts","kind":"import-statement","original":"./constants"},{"path":"src/node/cli/store.ts","kind":"import-statement","original":"./store"}],"format":"esm"},"src/node/cli/is-logged-in.ts":{"bytes":694,"imports":[{"path":"src/node/cli/constants.ts","kind":"import-statement","original":"./constants"},{"path":"src/node/cli/store.ts","kind":"import-statement","original":"./store"},{"path":"src/node/cli/api.ts","kind":"dynamic-import","original":"./api"}],"format":"esm"},"src/node/cli/commands/publish/parse-gitignore.ts":{"bytes":8164,"imports":[{"path":"node:fs","kind":"import-statement","external":true}],"format":"esm"},"src/node/cli/commands/publish/uploader.ts":{"bytes":9822,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"fast-glob","kind":"import-statement","external":true},{"path":"src/node/cli/constants.ts","kind":"import-statement","original":"../../constants"},{"path":"node:http","kind":"import-statement","external":true},{"path":"node:https","kind":"import-statement","external":true},{"path":"node:stream","kind":"import-statement","external":true},{"path":"src/node/shared/logger.ts","kind":"import-statement","original":"~/node/shared/logger"},{"path":"chalk","kind":"import-statement","external":true},{"path":"form-data","kind":"import-statement","external":true},{"path":"src/node/cli/commands/publish/parse-gitignore.ts","kind":"import-statement","original":"./parse-gitignore"},{"path":"p-queue","kind":"import-statement","external":true},{"path":"ora","kind":"import-statement","external":true},{"path":"nanoid","kind":"import-statement","external":true},{"path":"src/node/cli/api.ts","kind":"import-statement","original":"../../api"}],"format":"esm"},"src/shared/manifest.ts":{"bytes":1382,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"format":"esm"},"src/node/shared/config.ts":{"bytes":2675,"imports":[{"path":"src/shared/manifest.ts","kind":"import-statement","original":"~/shared/manifest"},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"fast-glob","kind":"import-statement","external":true},{"path":"src/node/shared/logger.ts","kind":"import-statement","original":"./logger"},{"path":"zod-validation-error","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true}],"format":"esm"},"src/node/cli/commands/publish/cmd-publish.ts":{"bytes":4483,"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"chalk","kind":"import-statement","external":true},{"path":"src/node/cli/utils.ts","kind":"import-statement","original":"../../utils"},{"path":"src/node/cli/store.ts","kind":"import-statement","original":"../../store"},{"path":"src/node/cli/commands/publish/uploader.ts","kind":"import-statement","original":"./uploader"},{"path":"node:path","kind":"import-statement","external":true},{"path":"src/node/cli/api.ts","kind":"import-statement","original":"../../api"},{"path":"src/node/cli/constants.ts","kind":"import-statement","original":"../../constants"},{"path":"src/node/shared/config.ts","kind":"import-statement","original":"~/node/shared/config"},{"path":"src/node/cli/is-logged-in.ts","kind":"import-statement","original":"../../is-logged-in"}],"format":"esm"},"src/node/cli/commands/login/cmd-login.ts":{"bytes":3162,"imports":[{"path":"chalk","kind":"import-statement","external":true},{"path":"@inquirer/prompts","kind":"import-statement","external":true},{"path":"open","kind":"import-statement","external":true},{"path":"src/node/cli/constants.ts","kind":"import-statement","original":"../../constants"},{"path":"src/node/cli/api.ts","kind":"import-statement","original":"../../api"},{"path":"src/node/cli/store.ts","kind":"import-statement","original":"../../store"}],"format":"esm"},"../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js":{"bytes":1219,"imports":[],"format":"cjs"},"../../node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.js":{"bytes":4992,"imports":[{"path":"../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js","kind":"require-call","original":"balanced-match"}],"format":"cjs"},"../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/assert-valid-pattern.js":{"bytes":336,"imports":[],"format":"esm"},"../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/brace-expressions.js":{"bytes":5631,"imports":[],"format":"esm"},"../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/unescape.js":{"bytes":847,"imports":[],"format":"esm"},"../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/ast.js":{"bytes":22588,"imports":[{"path":"../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/brace-expressions.js","kind":"import-statement","original":"./brace-expressions.js"},{"path":"../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/unescape.js","kind":"import-statement","original":"./unescape.js"}],"format":"esm"},"../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/escape.js":{"bytes":848,"imports":[],"format":"esm"},"../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/index.js":{"bytes":39098,"imports":[{"path":"../../node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.js","kind":"import-statement","original":"brace-expansion"},{"path":"../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/assert-valid-pattern.js","kind":"import-statement","original":"./assert-valid-pattern.js"},{"path":"../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/ast.js","kind":"import-statement","original":"./ast.js"},{"path":"../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/escape.js","kind":"import-statement","original":"./escape.js"},{"path":"../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/unescape.js","kind":"import-statement","original":"./unescape.js"},{"path":"../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/ast.js","kind":"import-statement","original":"./ast.js"},{"path":"../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/escape.js","kind":"import-statement","original":"./escape.js"},{"path":"../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/unescape.js","kind":"import-statement","original":"./unescape.js"}],"format":"esm"},"../../node_modules/.pnpm/lru-cache@11.0.0/node_modules/lru-cache/dist/esm/index.js":{"bytes":54894,"imports":[],"format":"esm"},"../../node_modules/.pnpm/minipass@7.1.2/node_modules/minipass/dist/esm/index.js":{"bytes":33228,"imports":[{"path":"node:events","kind":"import-statement","external":true},{"path":"node:stream","kind":"import-statement","external":true},{"path":"node:string_decoder","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/path-scurry@2.0.0/node_modules/path-scurry/dist/esm/index.js":{"bytes":64343,"imports":[{"path":"../../node_modules/.pnpm/lru-cache@11.0.0/node_modules/lru-cache/dist/esm/index.js","kind":"import-statement","original":"lru-cache"},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:url","kind":"import-statement","external":true},{"path":"fs","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"../../node_modules/.pnpm/minipass@7.1.2/node_modules/minipass/dist/esm/index.js","kind":"import-statement","original":"minipass"}],"format":"esm"},"../../node_modules/.pnpm/glob@11.0.0/node_modules/glob/dist/esm/pattern.js":{"bytes":7161,"imports":[{"path":"../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/index.js","kind":"import-statement","original":"minimatch"}],"format":"esm"},"../../node_modules/.pnpm/glob@11.0.0/node_modules/glob/dist/esm/ignore.js":{"bytes":4101,"imports":[{"path":"../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/index.js","kind":"import-statement","original":"minimatch"},{"path":"../../node_modules/.pnpm/glob@11.0.0/node_modules/glob/dist/esm/pattern.js","kind":"import-statement","original":"./pattern.js"}],"format":"esm"},"../../node_modules/.pnpm/glob@11.0.0/node_modules/glob/dist/esm/processor.js":{"bytes":10453,"imports":[{"path":"../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/index.js","kind":"import-statement","original":"minimatch"}],"format":"esm"},"../../node_modules/.pnpm/glob@11.0.0/node_modules/glob/dist/esm/walker.js":{"bytes":12569,"imports":[{"path":"../../node_modules/.pnpm/minipass@7.1.2/node_modules/minipass/dist/esm/index.js","kind":"import-statement","original":"minipass"},{"path":"../../node_modules/.pnpm/glob@11.0.0/node_modules/glob/dist/esm/ignore.js","kind":"import-statement","original":"./ignore.js"},{"path":"../../node_modules/.pnpm/glob@11.0.0/node_modules/glob/dist/esm/processor.js","kind":"import-statement","original":"./processor.js"}],"format":"esm"},"../../node_modules/.pnpm/glob@11.0.0/node_modules/glob/dist/esm/glob.js":{"bytes":8339,"imports":[{"path":"../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/index.js","kind":"import-statement","original":"minimatch"},{"path":"node:url","kind":"import-statement","external":true},{"path":"../../node_modules/.pnpm/path-scurry@2.0.0/node_modules/path-scurry/dist/esm/index.js","kind":"import-statement","original":"path-scurry"},{"path":"../../node_modules/.pnpm/glob@11.0.0/node_modules/glob/dist/esm/pattern.js","kind":"import-statement","original":"./pattern.js"},{"path":"../../node_modules/.pnpm/glob@11.0.0/node_modules/glob/dist/esm/walker.js","kind":"import-statement","original":"./walker.js"}],"format":"esm"},"../../node_modules/.pnpm/glob@11.0.0/node_modules/glob/dist/esm/has-magic.js":{"bytes":917,"imports":[{"path":"../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/index.js","kind":"import-statement","original":"minimatch"}],"format":"esm"},"../../node_modules/.pnpm/glob@11.0.0/node_modules/glob/dist/esm/index.js":{"bytes":1647,"imports":[{"path":"../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/index.js","kind":"import-statement","original":"minimatch"},{"path":"../../node_modules/.pnpm/glob@11.0.0/node_modules/glob/dist/esm/glob.js","kind":"import-statement","original":"./glob.js"},{"path":"../../node_modules/.pnpm/glob@11.0.0/node_modules/glob/dist/esm/has-magic.js","kind":"import-statement","original":"./has-magic.js"},{"path":"../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/index.js","kind":"import-statement","original":"minimatch"},{"path":"../../node_modules/.pnpm/glob@11.0.0/node_modules/glob/dist/esm/glob.js","kind":"import-statement","original":"./glob.js"},{"path":"../../node_modules/.pnpm/glob@11.0.0/node_modules/glob/dist/esm/has-magic.js","kind":"import-statement","original":"./has-magic.js"},{"path":"../../node_modules/.pnpm/glob@11.0.0/node_modules/glob/dist/esm/ignore.js","kind":"import-statement","original":"./ignore.js"}],"format":"esm"},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/opt-arg.js":{"bytes":1459,"imports":[],"format":"esm"},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/platform.js":{"bytes":112,"imports":[],"format":"esm"},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/path-arg.js":{"bytes":1664,"imports":[{"path":"path","kind":"import-statement","external":true},{"path":"util","kind":"import-statement","external":true},{"path":"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/platform.js","kind":"import-statement","original":"./platform.js"}],"format":"esm"},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/fs.js":{"bytes":1796,"imports":[{"path":"fs","kind":"import-statement","external":true},{"path":"fs","kind":"import-statement","external":true},{"path":"fs","kind":"import-statement","external":true}],"format":"esm"},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/readdir-or-error.js":{"bytes":432,"imports":[{"path":"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/fs.js","kind":"import-statement","original":"./fs.js"}],"format":"esm"},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/ignore-enoent.js":{"bytes":332,"imports":[],"format":"esm"},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/rimraf-posix.js":{"bytes":3932,"imports":[{"path":"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/fs.js","kind":"import-statement","original":"./fs.js"},{"path":"path","kind":"import-statement","external":true},{"path":"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/readdir-or-error.js","kind":"import-statement","original":"./readdir-or-error.js"},{"path":"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/ignore-enoent.js","kind":"import-statement","original":"./ignore-enoent.js"}],"format":"esm"},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/fix-eperm.js":{"bytes":1260,"imports":[{"path":"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/fs.js","kind":"import-statement","original":"./fs.js"}],"format":"esm"},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/retry-busy.js":{"bytes":2049,"imports":[],"format":"esm"},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/default-tmp.js":{"bytes":2054,"imports":[{"path":"os","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/fs.js","kind":"import-statement","original":"./fs.js"},{"path":"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/platform.js","kind":"import-statement","original":"./platform.js"}],"format":"esm"},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/rimraf-move-remove.js":{"bytes":6181,"imports":[{"path":"path","kind":"import-statement","external":true},{"path":"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/default-tmp.js","kind":"import-statement","original":"./default-tmp.js"},{"path":"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/ignore-enoent.js","kind":"import-statement","original":"./ignore-enoent.js"},{"path":"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/fs.js","kind":"import-statement","original":"./fs.js"},{"path":"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/readdir-or-error.js","kind":"import-statement","original":"./readdir-or-error.js"}],"format":"esm"},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/rimraf-windows.js":{"bytes":6049,"imports":[{"path":"path","kind":"import-statement","external":true},{"path":"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/fix-eperm.js","kind":"import-statement","original":"./fix-eperm.js"},{"path":"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/fs.js","kind":"import-statement","original":"./fs.js"},{"path":"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/ignore-enoent.js","kind":"import-statement","original":"./ignore-enoent.js"},{"path":"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/readdir-or-error.js","kind":"import-statement","original":"./readdir-or-error.js"},{"path":"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/retry-busy.js","kind":"import-statement","original":"./retry-busy.js"},{"path":"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/rimraf-move-remove.js","kind":"import-statement","original":"./rimraf-move-remove.js"}],"format":"esm"},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/rimraf-manual.js":{"bytes":389,"imports":[{"path":"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/platform.js","kind":"import-statement","original":"./platform.js"},{"path":"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/rimraf-posix.js","kind":"import-statement","original":"./rimraf-posix.js"},{"path":"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/rimraf-windows.js","kind":"import-statement","original":"./rimraf-windows.js"}],"format":"esm"},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/rimraf-native.js":{"bytes":430,"imports":[{"path":"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/fs.js","kind":"import-statement","original":"./fs.js"}],"format":"esm"},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/use-native.js":{"bytes":771,"imports":[{"path":"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/platform.js","kind":"import-statement","original":"./platform.js"}],"format":"esm"},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/index.js":{"bytes":2688,"imports":[{"path":"../../node_modules/.pnpm/glob@11.0.0/node_modules/glob/dist/esm/index.js","kind":"import-statement","original":"glob"},{"path":"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/opt-arg.js","kind":"import-statement","original":"./opt-arg.js"},{"path":"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/path-arg.js","kind":"import-statement","original":"./path-arg.js"},{"path":"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/rimraf-manual.js","kind":"import-statement","original":"./rimraf-manual.js"},{"path":"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/rimraf-move-remove.js","kind":"import-statement","original":"./rimraf-move-remove.js"},{"path":"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/rimraf-native.js","kind":"import-statement","original":"./rimraf-native.js"},{"path":"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/rimraf-posix.js","kind":"import-statement","original":"./rimraf-posix.js"},{"path":"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/rimraf-windows.js","kind":"import-statement","original":"./rimraf-windows.js"},{"path":"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/use-native.js","kind":"import-statement","original":"./use-native.js"},{"path":"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/opt-arg.js","kind":"import-statement","original":"./opt-arg.js"}],"format":"esm"},"src/node/cli/commands/build/cmd-build.ts":{"bytes":1576,"imports":[{"path":"vite","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:url","kind":"import-statement","external":true},{"path":"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/index.js","kind":"import-statement","original":"rimraf"}],"format":"esm"},"src/node/cli/commands/logout/cmd-logout.ts":{"bytes":309,"imports":[{"path":"src/node/cli/store.ts","kind":"import-statement","original":"../../store"}],"format":"esm"},"src/node/cli/program.ts":{"bytes":2449,"imports":[{"path":"commander","kind":"import-statement","external":true},{"path":"src/node/cli/commands/publish/cmd-publish.ts","kind":"import-statement","original":"./commands/publish/cmd-publish"},{"path":"src/node/cli/commands/login/cmd-login.ts","kind":"import-statement","original":"./commands/login/cmd-login"},{"path":"src/node/cli/commands/build/cmd-build.ts","kind":"import-statement","original":"./commands/build/cmd-build"},{"path":"src/node/shared/logger.ts","kind":"import-statement","original":"../shared/logger"},{"path":"src/node/cli/commands/logout/cmd-logout.ts","kind":"import-statement","original":"./commands/logout/cmd-logout"}],"format":"esm"},"src/node/cli/types.ts":{"bytes":740,"imports":[],"format":"esm"}},"outputs":{"dist/node/cli/api.js":{"imports":[{"path":"vite","kind":"import-statement","external":true},{"path":"chalk","kind":"import-statement","external":true},{"path":"conf","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:url","kind":"import-statement","external":true},{"path":"chalk","kind":"import-statement","external":true}],"exports":["get","post"],"entryPoint":"src/node/cli/api.ts","inputs":{"src/node/shared/logger.ts":{"bytesInOutput":424},"package.json":{"bytesInOutput":15},"src/node/cli/constants.ts":{"bytesInOutput":240},"src/node/cli/store.ts":{"bytesInOutput":752},"src/node/cli/api.ts":{"bytesInOutput":1190}},"bytes":2752},"dist/node/cli/constants.js":{"imports":[],"exports":["API_BASE_URL","API_ENDPOINT_REGISTER_TEMPLATE","CLI_LOGIN_CLIENT_ID","CLI_LOGIN_POLL_INTERVAL","CLI_PROJECT_NAME","DEFAULT_UPLOAD_MAX_CONCURRENCY","FRONTEND_BASE_URL","OAUTH_ENDPOINT_DEVICE_CODE","OAUTH_ENDPOINT_TOKEN","OAUTH_ENDPOINT_USER_INFO"],"entryPoint":"src/node/cli/constants.ts","inputs":{"src/node/cli/constants.ts":{"bytesInOutput":320}},"bytes":709},"dist/node/cli/is-logged-in.js":{"imports":[{"path":"conf","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:url","kind":"import-statement","external":true},{"path":"chalk","kind":"import-statement","external":true},{"path":"vite","kind":"import-statement","external":true},{"path":"chalk","kind":"import-statement","external":true}],"exports":["isLoggedIn"],"entryPoint":"src/node/cli/is-logged-in.ts","inputs":{"src/node/cli/constants.ts":{"bytesInOutput":289},"src/node/cli/store.ts":{"bytesInOutput":786},"package.json":{"bytesInOutput":28},"src/node/shared/logger.ts":{"bytesInOutput":454},"src/node/cli/api.ts":{"bytesInOutput":1267},"src/node/cli/is-logged-in.ts":{"bytesInOutput":276}},"bytes":3354},"dist/node/cli/program.js":{"imports":[{"path":"conf","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:url","kind":"import-statement","external":true},{"path":"chalk","kind":"import-statement","external":true},{"path":"vite","kind":"import-statement","external":true},{"path":"chalk","kind":"import-statement","external":true},{"path":"commander","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"chalk","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"fast-glob","kind":"import-statement","external":true},{"path":"node:http","kind":"import-statement","external":true},{"path":"node:https","kind":"import-statement","external":true},{"path":"node:stream","kind":"import-statement","external":true},{"path":"chalk","kind":"import-statement","external":true},{"path":"form-data","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"p-queue","kind":"import-statement","external":true},{"path":"ora","kind":"import-statement","external":true},{"path":"nanoid","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"fast-glob","kind":"import-statement","external":true},{"path":"zod-validation-error","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"chalk","kind":"import-statement","external":true},{"path":"@inquirer/prompts","kind":"import-statement","external":true},{"path":"open","kind":"import-statement","external":true},{"path":"vite","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:url","kind":"import-statement","external":true},{"path":"node:url","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:url","kind":"import-statement","external":true},{"path":"fs","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:events","kind":"import-statement","external":true},{"path":"node:stream","kind":"import-statement","external":true},{"path":"node:string_decoder","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"util","kind":"import-statement","external":true},{"path":"fs","kind":"import-statement","external":true},{"path":"fs","kind":"import-statement","external":true},{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"os","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true}],"exports":[],"entryPoint":"src/node/cli/program.ts","inputs":{"src/node/cli/utils.ts":{"bytesInOutput":341},"src/node/cli/constants.ts":{"bytesInOutput":376},"src/node/cli/store.ts":{"bytesInOutput":1001},"package.json":{"bytesInOutput":32},"src/node/shared/logger.ts":{"bytesInOutput":469},"src/node/cli/api.ts":{"bytesInOutput":1288},"../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js":{"bytesInOutput":618},"../../node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.js":{"bytesInOutput":2124},"src/node/cli/program.ts":{"bytesInOutput":1353},"src/node/cli/commands/publish/cmd-publish.ts":{"bytesInOutput":2075},"src/node/cli/commands/publish/uploader.ts":{"bytesInOutput":4186},"src/node/cli/commands/publish/parse-gitignore.ts":{"bytesInOutput":2403},"src/shared/manifest.ts":{"bytesInOutput":846},"src/node/shared/config.ts":{"bytesInOutput":1346},"src/node/cli/is-logged-in.ts":{"bytesInOutput":281},"src/node/cli/commands/login/cmd-login.ts":{"bytesInOutput":1192},"src/node/cli/commands/build/cmd-build.ts":{"bytesInOutput":811},"../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/index.js":{"bytesInOutput":10898},"../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/assert-valid-pattern.js":{"bytesInOutput":134},"../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/brace-expressions.js":{"bytesInOutput":1543},"../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/unescape.js":{"bytesInOutput":150},"../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/ast.js":{"bytesInOutput":5374},"../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/escape.js":{"bytesInOutput":109},"../../node_modules/.pnpm/glob@11.0.0/node_modules/glob/dist/esm/glob.js":{"bytesInOutput":3638},"../../node_modules/.pnpm/lru-cache@11.0.0/node_modules/lru-cache/dist/esm/index.js":{"bytesInOutput":16623},"../../node_modules/.pnpm/path-scurry@2.0.0/node_modules/path-scurry/dist/esm/index.js":{"bytesInOutput":17233},"../../node_modules/.pnpm/minipass@7.1.2/node_modules/minipass/dist/esm/index.js":{"bytesInOutput":9806},"../../node_modules/.pnpm/glob@11.0.0/node_modules/glob/dist/esm/pattern.js":{"bytesInOutput":2120},"../../node_modules/.pnpm/glob@11.0.0/node_modules/glob/dist/esm/ignore.js":{"bytesInOutput":1314},"../../node_modules/.pnpm/glob@11.0.0/node_modules/glob/dist/esm/processor.js":{"bytesInOutput":3097},"../../node_modules/.pnpm/glob@11.0.0/node_modules/glob/dist/esm/walker.js":{"bytesInOutput":5324},"../../node_modules/.pnpm/glob@11.0.0/node_modules/glob/dist/esm/has-magic.js":{"bytesInOutput":103},"../../node_modules/.pnpm/glob@11.0.0/node_modules/glob/dist/esm/index.js":{"bytesInOutput":638},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/opt-arg.js":{"bytesInOutput":581},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/path-arg.js":{"bytesInOutput":890},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/platform.js":{"bytesInOutput":64},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/fs.js":{"bytesInOutput":901},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/rimraf-posix.js":{"bytesInOutput":1170},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/readdir-or-error.js":{"bytesInOutput":86},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/ignore-enoent.js":{"bytesInOutput":122},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/rimraf-windows.js":{"bytesInOutput":1726},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/fix-eperm.js":{"bytesInOutput":392},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/retry-busy.js":{"bytesInOutput":521},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/rimraf-move-remove.js":{"bytesInOutput":1990},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/default-tmp.js":{"bytesInOutput":532},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/rimraf-manual.js":{"bytesInOutput":46},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/rimraf-native.js":{"bytesInOutput":124},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/use-native.js":{"bytesInOutput":272},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/index.js":{"bytesInOutput":819},"src/node/cli/commands/logout/cmd-logout.ts":{"bytesInOutput":124}},"bytes":110186},"dist/node/cli/store.js":{"imports":[{"path":"conf","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:url","kind":"import-statement","external":true},{"path":"chalk","kind":"import-statement","external":true}],"exports":["accessStore","getTokenOrThrow"],"entryPoint":"src/node/cli/store.ts","inputs":{"src/node/cli/constants.ts":{"bytesInOutput":240},"src/node/cli/store.ts":{"bytesInOutput":925},"src/node/cli/utils.ts":{"bytesInOutput":222}},"bytes":1537},"dist/node/cli/types.js":{"imports":[],"exports":[],"entryPoint":"src/node/cli/types.ts","inputs":{"src/node/cli/types.ts":{"bytesInOutput":0}},"bytes":103},"dist/node/cli/utils.js":{"imports":[],"exports":["formatAPIError","getPackageManager"],"entryPoint":"src/node/cli/utils.ts","inputs":{"src/node/cli/utils.ts":{"bytesInOutput":309}},"bytes":464},"dist/node/shared/config.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"fast-glob","kind":"import-statement","external":true},{"path":"vite","kind":"import-statement","external":true},{"path":"chalk","kind":"import-statement","external":true},{"path":"zod-validation-error","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true}],"exports":["loadConfigFromJsFile","loadConfigFromManifestFile","validateTemplateConfig"],"entryPoint":"src/node/shared/config.ts","inputs":{"src/shared/manifest.ts":{"bytesInOutput":845},"src/node/shared/config.ts":{"bytesInOutput":1512},"src/node/shared/logger.ts":{"bytesInOutput":424},"package.json":{"bytesInOutput":15}},"bytes":2994},"dist/node/shared/logger.js":{"imports":[{"path":"vite","kind":"import-statement","external":true},{"path":"chalk","kind":"import-statement","external":true}],"exports":["createLogger","logger"],"entryPoint":"src/node/shared/logger.ts","inputs":{"src/node/shared/logger.ts":{"bytesInOutput":424},"package.json":{"bytesInOutput":15}},"bytes":581},"dist/node/cli/commands/build/cmd-build.js":{"imports":[{"path":"vite","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:url","kind":"import-statement","external":true},{"path":"node:url","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:url","kind":"import-statement","external":true},{"path":"fs","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"node:events","kind":"import-statement","external":true},{"path":"node:stream","kind":"import-statement","external":true},{"path":"node:string_decoder","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"util","kind":"import-statement","external":true},{"path":"fs","kind":"import-statement","external":true},{"path":"fs","kind":"import-statement","external":true},{"path":"fs","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true},{"path":"os","kind":"import-statement","external":true},{"path":"path","kind":"import-statement","external":true}],"exports":["buildTemplate"],"entryPoint":"src/node/cli/commands/build/cmd-build.ts","inputs":{"../../node_modules/.pnpm/balanced-match@1.0.2/node_modules/balanced-match/index.js":{"bytesInOutput":618},"../../node_modules/.pnpm/brace-expansion@2.0.1/node_modules/brace-expansion/index.js":{"bytesInOutput":2127},"src/node/cli/commands/build/cmd-build.ts":{"bytesInOutput":811},"../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/index.js":{"bytesInOutput":10898},"../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/assert-valid-pattern.js":{"bytesInOutput":134},"../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/brace-expressions.js":{"bytesInOutput":1543},"../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/unescape.js":{"bytesInOutput":150},"../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/ast.js":{"bytesInOutput":5374},"../../node_modules/.pnpm/minimatch@10.0.1/node_modules/minimatch/dist/esm/escape.js":{"bytesInOutput":109},"../../node_modules/.pnpm/glob@11.0.0/node_modules/glob/dist/esm/glob.js":{"bytesInOutput":3638},"../../node_modules/.pnpm/lru-cache@11.0.0/node_modules/lru-cache/dist/esm/index.js":{"bytesInOutput":16618},"../../node_modules/.pnpm/path-scurry@2.0.0/node_modules/path-scurry/dist/esm/index.js":{"bytesInOutput":17233},"../../node_modules/.pnpm/minipass@7.1.2/node_modules/minipass/dist/esm/index.js":{"bytesInOutput":9797},"../../node_modules/.pnpm/glob@11.0.0/node_modules/glob/dist/esm/pattern.js":{"bytesInOutput":2120},"../../node_modules/.pnpm/glob@11.0.0/node_modules/glob/dist/esm/ignore.js":{"bytesInOutput":1314},"../../node_modules/.pnpm/glob@11.0.0/node_modules/glob/dist/esm/processor.js":{"bytesInOutput":3097},"../../node_modules/.pnpm/glob@11.0.0/node_modules/glob/dist/esm/walker.js":{"bytesInOutput":5324},"../../node_modules/.pnpm/glob@11.0.0/node_modules/glob/dist/esm/has-magic.js":{"bytesInOutput":103},"../../node_modules/.pnpm/glob@11.0.0/node_modules/glob/dist/esm/index.js":{"bytesInOutput":638},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/opt-arg.js":{"bytesInOutput":581},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/path-arg.js":{"bytesInOutput":890},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/platform.js":{"bytesInOutput":64},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/fs.js":{"bytesInOutput":891},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/rimraf-posix.js":{"bytesInOutput":1166},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/readdir-or-error.js":{"bytesInOutput":86},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/ignore-enoent.js":{"bytesInOutput":120},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/rimraf-windows.js":{"bytesInOutput":1722},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/fix-eperm.js":{"bytesInOutput":392},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/retry-busy.js":{"bytesInOutput":521},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/rimraf-move-remove.js":{"bytesInOutput":1986},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/default-tmp.js":{"bytesInOutput":532},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/rimraf-manual.js":{"bytesInOutput":46},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/rimraf-native.js":{"bytesInOutput":124},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/use-native.js":{"bytesInOutput":272},"../../node_modules/.pnpm/rimraf@6.0.1/node_modules/rimraf/dist/esm/index.js":{"bytesInOutput":819}},"bytes":92528},"dist/node/cli/commands/login/cmd-login.js":{"imports":[{"path":"chalk","kind":"import-statement","external":true},{"path":"@inquirer/prompts","kind":"import-statement","external":true},{"path":"open","kind":"import-statement","external":true},{"path":"vite","kind":"import-statement","external":true},{"path":"chalk","kind":"import-statement","external":true},{"path":"conf","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:url","kind":"import-statement","external":true},{"path":"chalk","kind":"import-statement","external":true}],"exports":["login","pollForLogin"],"entryPoint":"src/node/cli/commands/login/cmd-login.ts","inputs":{"src/node/cli/commands/login/cmd-login.ts":{"bytesInOutput":1163},"src/node/cli/constants.ts":{"bytesInOutput":281},"src/node/shared/logger.ts":{"bytesInOutput":424},"package.json":{"bytesInOutput":15},"src/node/cli/store.ts":{"bytesInOutput":752},"src/node/cli/api.ts":{"bytesInOutput":851}},"bytes":3628},"dist/node/cli/commands/logout/cmd-logout.js":{"imports":[{"path":"conf","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:url","kind":"import-statement","external":true},{"path":"chalk","kind":"import-statement","external":true}],"exports":["logout"],"entryPoint":"src/node/cli/commands/logout/cmd-logout.ts","inputs":{"src/node/cli/constants.ts":{"bytesInOutput":240},"src/node/cli/store.ts":{"bytesInOutput":752},"src/node/cli/commands/logout/cmd-logout.ts":{"bytesInOutput":118}},"bytes":1234},"dist/node/cli/commands/publish/cmd-publish.js":{"imports":[{"path":"conf","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:url","kind":"import-statement","external":true},{"path":"chalk","kind":"import-statement","external":true},{"path":"vite","kind":"import-statement","external":true},{"path":"chalk","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"chalk","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"fast-glob","kind":"import-statement","external":true},{"path":"node:http","kind":"import-statement","external":true},{"path":"node:https","kind":"import-statement","external":true},{"path":"node:stream","kind":"import-statement","external":true},{"path":"chalk","kind":"import-statement","external":true},{"path":"form-data","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"p-queue","kind":"import-statement","external":true},{"path":"ora","kind":"import-statement","external":true},{"path":"nanoid","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:fs/promises","kind":"import-statement","external":true},{"path":"fast-glob","kind":"import-statement","external":true},{"path":"zod-validation-error","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true}],"exports":["publish"],"entryPoint":"src/node/cli/commands/publish/cmd-publish.ts","inputs":{"src/node/cli/utils.ts":{"bytesInOutput":337},"src/node/cli/constants.ts":{"bytesInOutput":319},"src/node/cli/store.ts":{"bytesInOutput":981},"package.json":{"bytesInOutput":30},"src/node/shared/logger.ts":{"bytesInOutput":459},"src/node/cli/api.ts":{"bytesInOutput":1278},"src/node/cli/commands/publish/cmd-publish.ts":{"bytesInOutput":2051},"src/node/cli/commands/publish/uploader.ts":{"bytesInOutput":4164},"src/node/cli/commands/publish/parse-gitignore.ts":{"bytesInOutput":2395},"src/shared/manifest.ts":{"bytesInOutput":846},"src/node/shared/config.ts":{"bytesInOutput":1345},"src/node/cli/is-logged-in.ts":{"bytesInOutput":277}},"bytes":14962},"dist/node/cli/commands/publish/parse-gitignore.js":{"imports":[{"path":"node:fs","kind":"import-statement","external":true}],"exports":["dedupe","default","format","formatSection","globs","parse","parseFile","patterns"],"entryPoint":"src/node/cli/commands/publish/parse-gitignore.ts","inputs":{"src/node/cli/commands/publish/parse-gitignore.ts":{"bytesInOutput":2471}},"bytes":2916},"dist/node/cli/commands/publish/uploader.js":{"imports":[{"path":"node:path","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"fast-glob","kind":"import-statement","external":true},{"path":"node:http","kind":"import-statement","external":true},{"path":"node:https","kind":"import-statement","external":true},{"path":"node:stream","kind":"import-statement","external":true},{"path":"vite","kind":"import-statement","external":true},{"path":"chalk","kind":"import-statement","external":true},{"path":"chalk","kind":"import-statement","external":true},{"path":"form-data","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"p-queue","kind":"import-statement","external":true},{"path":"ora","kind":"import-statement","external":true},{"path":"nanoid","kind":"import-statement","external":true},{"path":"conf","kind":"import-statement","external":true},{"path":"node:path","kind":"import-statement","external":true},{"path":"node:crypto","kind":"import-statement","external":true},{"path":"node:fs","kind":"import-statement","external":true},{"path":"node:url","kind":"import-statement","external":true},{"path":"chalk","kind":"import-statement","external":true}],"exports":["uploadTemplate"],"entryPoint":"src/node/cli/commands/publish/uploader.ts","inputs":{"src/node/cli/commands/publish/uploader.ts":{"bytesInOutput":4143},"src/node/cli/constants.ts":{"bytesInOutput":247},"src/node/shared/logger.ts":{"bytesInOutput":424},"package.json":{"bytesInOutput":15},"src/node/cli/commands/publish/parse-gitignore.ts":{"bytesInOutput":2377},"src/node/cli/store.ts":{"bytesInOutput":767},"src/node/cli/api.ts":{"bytesInOutput":855}},"bytes":9187}}}
@@ -1 +0,0 @@
1
- {"inputs":{"src/shared/attributes.ts":{"bytes":8693,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true}],"format":"esm"},"src/shared/layout-constants.ts":{"bytes":488,"imports":[],"format":"esm"},"src/shared/bricks/props/common.ts":{"bytes":833,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"format":"esm"},"src/shared/bricks/props/style-props.ts":{"bytes":6348,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"format":"esm"},"src/shared/brick-manifest.ts":{"bytes":2402,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"src/shared/layout-constants.ts","kind":"import-statement","original":"./layout-constants"}],"format":"esm"},"src/shared/bricks/manifests/button.manifest.ts":{"bytes":2020,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true},{"path":"src/shared/bricks/props/common.ts","kind":"import-statement","original":"../props/common"},{"path":"src/shared/bricks/props/style-props.ts","kind":"import-statement","original":"../props/style-props"},{"path":"src/shared/brick-manifest.ts","kind":"import-statement","original":"~/shared/brick-manifest"},{"path":"src/shared/layout-constants.ts","kind":"import-statement","original":"~/shared/layout-constants"},{"path":"@sinclair/typebox/compiler","kind":"import-statement","external":true}],"format":"esm"},"src/shared/bricks/manifests/card.manifest.ts":{"bytes":2143,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true},{"path":"src/shared/bricks/props/common.ts","kind":"import-statement","original":"../props/common"},{"path":"src/shared/bricks/props/style-props.ts","kind":"import-statement","original":"../props/style-props"},{"path":"src/shared/brick-manifest.ts","kind":"import-statement","original":"~/shared/brick-manifest"},{"path":"src/shared/layout-constants.ts","kind":"import-statement","original":"~/shared/layout-constants"}],"format":"esm"},"src/shared/bricks/manifests/carousel.manifest.ts":{"bytes":2136,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true},{"path":"src/shared/bricks/props/common.ts","kind":"import-statement","original":"../props/common"},{"path":"src/shared/bricks/props/style-props.ts","kind":"import-statement","original":"../props/style-props"},{"path":"src/shared/brick-manifest.ts","kind":"import-statement","original":"~/shared/brick-manifest"},{"path":"src/shared/layout-constants.ts","kind":"import-statement","original":"~/shared/layout-constants"}],"format":"esm"},"src/shared/bricks/manifests/countdown.manifest.ts":{"bytes":2560,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true},{"path":"src/shared/bricks/props/common.ts","kind":"import-statement","original":"../props/common"},{"path":"src/shared/bricks/props/style-props.ts","kind":"import-statement","original":"../props/style-props"},{"path":"src/shared/brick-manifest.ts","kind":"import-statement","original":"~/shared/brick-manifest"},{"path":"src/shared/layout-constants.ts","kind":"import-statement","original":"~/shared/layout-constants"}],"format":"esm"},"src/shared/bricks/manifests/footer.manifest.ts":{"bytes":2357,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true},{"path":"src/shared/bricks/props/common.ts","kind":"import-statement","original":"../props/common"},{"path":"src/shared/bricks/props/style-props.ts","kind":"import-statement","original":"../props/style-props"},{"path":"src/shared/brick-manifest.ts","kind":"import-statement","original":"~/shared/brick-manifest"},{"path":"src/shared/layout-constants.ts","kind":"import-statement","original":"~/shared/layout-constants"}],"format":"esm"},"src/shared/bricks/manifests/form.manifest.ts":{"bytes":2060,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true},{"path":"src/shared/bricks/props/common.ts","kind":"import-statement","original":"../props/common"},{"path":"src/shared/bricks/props/style-props.ts","kind":"import-statement","original":"../props/style-props"},{"path":"src/shared/brick-manifest.ts","kind":"import-statement","original":"~/shared/brick-manifest"},{"path":"src/shared/layout-constants.ts","kind":"import-statement","original":"~/shared/layout-constants"}],"format":"esm"},"src/shared/bricks/manifests/header.manifest.ts":{"bytes":2104,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true},{"path":"src/shared/bricks/props/common.ts","kind":"import-statement","original":"../props/common"},{"path":"src/shared/bricks/props/style-props.ts","kind":"import-statement","original":"../props/style-props"},{"path":"src/shared/brick-manifest.ts","kind":"import-statement","original":"~/shared/brick-manifest"},{"path":"src/shared/layout-constants.ts","kind":"import-statement","original":"~/shared/layout-constants"}],"format":"esm"},"src/shared/bricks/manifests/hero.manifest.ts":{"bytes":1872,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true},{"path":"src/shared/bricks/props/common.ts","kind":"import-statement","original":"../props/common"},{"path":"src/shared/bricks/props/style-props.ts","kind":"import-statement","original":"../props/style-props"},{"path":"src/shared/brick-manifest.ts","kind":"import-statement","original":"~/shared/brick-manifest"},{"path":"src/shared/layout-constants.ts","kind":"import-statement","original":"~/shared/layout-constants"}],"format":"esm"},"src/shared/bricks/manifests/icon.manifest.ts":{"bytes":1877,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true},{"path":"src/shared/bricks/props/common.ts","kind":"import-statement","original":"../props/common"},{"path":"src/shared/bricks/props/style-props.ts","kind":"import-statement","original":"../props/style-props"},{"path":"src/shared/brick-manifest.ts","kind":"import-statement","original":"~/shared/brick-manifest"},{"path":"src/shared/layout-constants.ts","kind":"import-statement","original":"~/shared/layout-constants"}],"format":"esm"},"src/shared/bricks/manifests/image.manifest.ts":{"bytes":1758,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true},{"path":"src/shared/bricks/props/common.ts","kind":"import-statement","original":"../props/common"},{"path":"src/shared/bricks/props/style-props.ts","kind":"import-statement","original":"../props/style-props"},{"path":"src/shared/brick-manifest.ts","kind":"import-statement","original":"~/shared/brick-manifest"},{"path":"src/shared/layout-constants.ts","kind":"import-statement","original":"~/shared/layout-constants"}],"format":"esm"},"src/shared/bricks/manifests/images-wall.manifest.ts":{"bytes":2088,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true},{"path":"src/shared/bricks/props/common.ts","kind":"import-statement","original":"../props/common"},{"path":"src/shared/bricks/props/style-props.ts","kind":"import-statement","original":"../props/style-props"},{"path":"src/shared/brick-manifest.ts","kind":"import-statement","original":"~/shared/brick-manifest"},{"path":"src/shared/layout-constants.ts","kind":"import-statement","original":"~/shared/layout-constants"}],"format":"esm"},"src/shared/bricks/manifests/map.manifest.ts":{"bytes":2302,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true},{"path":"src/shared/bricks/props/common.ts","kind":"import-statement","original":"../props/common"},{"path":"src/shared/bricks/props/style-props.ts","kind":"import-statement","original":"../props/style-props"},{"path":"src/shared/brick-manifest.ts","kind":"import-statement","original":"~/shared/brick-manifest"},{"path":"src/shared/layout-constants.ts","kind":"import-statement","original":"~/shared/layout-constants"}],"format":"esm"},"src/shared/bricks/manifests/social-links.manifest.ts":{"bytes":2395,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true},{"path":"src/shared/bricks/props/common.ts","kind":"import-statement","original":"../props/common"},{"path":"src/shared/bricks/props/style-props.ts","kind":"import-statement","original":"../props/style-props"},{"path":"src/shared/brick-manifest.ts","kind":"import-statement","original":"~/shared/brick-manifest"},{"path":"src/shared/layout-constants.ts","kind":"import-statement","original":"~/shared/layout-constants"}],"format":"esm"},"src/shared/bricks/manifests/text.manifest.ts":{"bytes":1192,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true},{"path":"src/shared/bricks/props/common.ts","kind":"import-statement","original":"../props/common"},{"path":"src/shared/bricks/props/style-props.ts","kind":"import-statement","original":"../props/style-props"},{"path":"src/shared/brick-manifest.ts","kind":"import-statement","original":"~/shared/brick-manifest"},{"path":"src/shared/layout-constants.ts","kind":"import-statement","original":"~/shared/layout-constants"}],"format":"esm"},"src/shared/bricks/manifests/video.manifest.ts":{"bytes":1589,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true},{"path":"src/shared/bricks/props/common.ts","kind":"import-statement","original":"../props/common"},{"path":"src/shared/brick-manifest.ts","kind":"import-statement","original":"~/shared/brick-manifest"},{"path":"src/shared/layout-constants.ts","kind":"import-statement","original":"~/shared/layout-constants"}],"format":"esm"},"src/shared/bricks.ts":{"bytes":10165,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"nanoid","kind":"import-statement","external":true},{"path":"src/shared/layout-constants.ts","kind":"import-statement","original":"./layout-constants"},{"path":"src/shared/bricks/manifests/button.manifest.ts","kind":"import-statement","original":"./bricks/manifests/button.manifest"},{"path":"src/shared/bricks/manifests/card.manifest.ts","kind":"import-statement","original":"./bricks/manifests/card.manifest"},{"path":"src/shared/bricks/manifests/carousel.manifest.ts","kind":"import-statement","original":"./bricks/manifests/carousel.manifest"},{"path":"src/shared/bricks/manifests/countdown.manifest.ts","kind":"import-statement","original":"./bricks/manifests/countdown.manifest"},{"path":"src/shared/bricks/manifests/footer.manifest.ts","kind":"import-statement","original":"./bricks/manifests/footer.manifest"},{"path":"src/shared/bricks/manifests/form.manifest.ts","kind":"import-statement","original":"./bricks/manifests/form.manifest"},{"path":"src/shared/bricks/manifests/header.manifest.ts","kind":"import-statement","original":"./bricks/manifests/header.manifest"},{"path":"src/shared/bricks/manifests/hero.manifest.ts","kind":"import-statement","original":"./bricks/manifests/hero.manifest"},{"path":"src/shared/bricks/manifests/icon.manifest.ts","kind":"import-statement","original":"./bricks/manifests/icon.manifest"},{"path":"src/shared/bricks/manifests/image.manifest.ts","kind":"import-statement","original":"./bricks/manifests/image.manifest"},{"path":"src/shared/bricks/manifests/images-wall.manifest.ts","kind":"import-statement","original":"./bricks/manifests/images-wall.manifest"},{"path":"src/shared/bricks/manifests/map.manifest.ts","kind":"import-statement","original":"./bricks/manifests/map.manifest"},{"path":"src/shared/bricks/manifests/social-links.manifest.ts","kind":"import-statement","original":"./bricks/manifests/social-links.manifest"},{"path":"src/shared/bricks/manifests/text.manifest.ts","kind":"import-statement","original":"./bricks/manifests/text.manifest"},{"path":"src/shared/bricks/manifests/video.manifest.ts","kind":"import-statement","original":"./bricks/manifests/video.manifest"}],"format":"esm"},"src/shared/utils/invariant.ts":{"bytes":846,"imports":[],"format":"esm"},"src/shared/theme.ts":{"bytes":8832,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"format":"esm"},"src/shared/datasources/provider-options.ts":{"bytes":217,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"format":"esm"},"src/shared/datasources/external/youtube/list/options.ts":{"bytes":510,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"src/shared/datasources/provider-options.ts","kind":"import-statement","original":"~/shared/datasources/provider-options"}],"format":"esm"},"src/shared/datasources/external/meta/options.ts":{"bytes":299,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"src/shared/datasources/provider-options.ts","kind":"import-statement","original":"../../provider-options"}],"format":"esm"},"src/shared/datasources/external/mastodon/options.ts":{"bytes":317,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"src/shared/datasources/provider-options.ts","kind":"import-statement","original":"../../provider-options"}],"format":"esm"},"src/shared/datasources/external/json/options.ts":{"bytes":365,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"src/shared/datasources/provider-options.ts","kind":"import-statement","original":"../../provider-options"}],"format":"esm"},"src/shared/datasources/external/rss/options.ts":{"bytes":296,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"src/shared/datasources/provider-options.ts","kind":"import-statement","original":"../../provider-options"}],"format":"esm"},"src/shared/datasources/external/tiktok/video/options.ts":{"bytes":389,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"src/shared/datasources/provider-options.ts","kind":"import-statement","original":"~/shared/datasources/provider-options"}],"format":"esm"},"src/shared/datasources/types.ts":{"bytes":4858,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"src/shared/datasources/external/youtube/list/options.ts","kind":"import-statement","original":"./external/youtube/list/options"},{"path":"./external/youtube/list/schema","kind":"import-statement","external":true},{"path":"src/shared/datasources/external/meta/options.ts","kind":"import-statement","original":"./external/meta/options"},{"path":"src/shared/datasources/external/mastodon/options.ts","kind":"import-statement","original":"./external/mastodon/options"},{"path":"./external/mastodon/status/schema","kind":"import-statement","external":true},{"path":"./external/facebook/posts/schema","kind":"import-statement","external":true},{"path":"./external/instagram/feed/schema","kind":"import-statement","external":true},{"path":"./external/threads/media/schema","kind":"import-statement","external":true},{"path":"./external/tiktok/video/schema","kind":"import-statement","external":true},{"path":"src/shared/datasources/external/json/options.ts","kind":"import-statement","original":"./external/json/options"},{"path":"src/shared/datasources/external/rss/options.ts","kind":"import-statement","original":"./external/rss/options"},{"path":"./external/rss/schema","kind":"import-statement","external":true},{"path":"src/shared/datasources/external/tiktok/video/options.ts","kind":"import-statement","original":"./external/tiktok/video/options"}],"format":"esm"},"src/shared/manifest.ts":{"bytes":1382,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"format":"esm"},"src/shared/page.ts":{"bytes":5097,"imports":[{"path":"src/shared/attributes.ts","kind":"import-statement","original":"./attributes"},{"path":"src/shared/bricks.ts","kind":"import-statement","original":"./bricks"},{"path":"src/shared/utils/invariant.ts","kind":"import-statement","original":"./utils/invariant"},{"path":"src/shared/theme.ts","kind":"import-statement","original":"./theme"},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"src/shared/datasources/types.ts","kind":"import-statement","original":"./datasources/types"},{"path":"src/shared/manifest.ts","kind":"import-statement","original":"./manifest"}],"format":"esm"},"src/shared/errors.ts":{"bytes":58,"imports":[{"path":"http-errors-enhanced","kind":"import-statement","external":true}],"format":"esm"},"src/shared/bricks/manifests/all-manifests.ts":{"bytes":3061,"imports":[{"path":"src/shared/bricks/manifests/hero.manifest.ts","kind":"import-statement","original":"./hero.manifest"},{"path":"src/shared/bricks/manifests/image.manifest.ts","kind":"import-statement","original":"./image.manifest"},{"path":"src/shared/bricks/manifests/video.manifest.ts","kind":"import-statement","original":"./video.manifest"},{"path":"src/shared/bricks/manifests/text.manifest.ts","kind":"import-statement","original":"./text.manifest"},{"path":"src/shared/bricks/manifests/card.manifest.ts","kind":"import-statement","original":"./card.manifest"},{"path":"src/shared/bricks/manifests/map.manifest.ts","kind":"import-statement","original":"./map.manifest"},{"path":"src/shared/bricks/manifests/form.manifest.ts","kind":"import-statement","original":"./form.manifest"},{"path":"src/shared/bricks/manifests/images-wall.manifest.ts","kind":"import-statement","original":"./images-wall.manifest"},{"path":"src/shared/bricks/manifests/carousel.manifest.ts","kind":"import-statement","original":"./carousel.manifest"},{"path":"src/shared/bricks/manifests/header.manifest.ts","kind":"import-statement","original":"./header.manifest"},{"path":"src/shared/bricks/manifests/footer.manifest.ts","kind":"import-statement","original":"./footer.manifest"},{"path":"src/shared/bricks/manifests/button.manifest.ts","kind":"import-statement","original":"./button.manifest"},{"path":"src/shared/bricks/manifests/icon.manifest.ts","kind":"import-statement","original":"./icon.manifest"},{"path":"src/shared/bricks/manifests/social-links.manifest.ts","kind":"import-statement","original":"./social-links.manifest"},{"path":"src/shared/bricks/manifests/countdown.manifest.ts","kind":"import-statement","original":"./countdown.manifest"}],"format":"esm"},"src/shared/datasources.ts":{"bytes":224,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"format":"esm"},"src/shared/utils/json-date.ts":{"bytes":394,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"format":"esm"},"src/shared/oauth.ts":{"bytes":549,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"src/shared/utils/json-date.ts","kind":"import-statement","original":"./utils/json-date"}],"format":"esm"},"src/shared/themes/all-themes.ts":{"bytes":57885,"imports":[],"format":"esm"},"src/shared/themes/color-system.ts":{"bytes":24726,"imports":[{"path":"chroma-js","kind":"import-statement","external":true},{"path":"chroma-js","kind":"import-statement","external":true},{"path":"@upstart.gg/style-system/twind","kind":"import-statement","external":true}],"format":"esm"},"src/shared/responsive.ts":{"bytes":144,"imports":[{"path":"zod","kind":"import-statement","external":true}],"format":"esm"},"src/shared/analytics/init.ts":{"bytes":491,"imports":[],"format":"esm"},"src/shared/analytics/track.ts":{"bytes":424,"imports":[],"format":"esm"},"src/shared/analytics/types.ts":{"bytes":257,"imports":[],"format":"esm"},"src/shared/datasources/external/meta/oauth/config.ts":{"bytes":615,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"src/shared/oauth.ts","kind":"import-statement","original":"~/shared/oauth"}],"format":"esm"},"src/shared/datasources/external/tiktok/oauth/config.ts":{"bytes":598,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"src/shared/oauth.ts","kind":"import-statement","original":"~/shared/oauth"}],"format":"esm"},"src/shared/datasources/external/youtube/oauth/config.ts":{"bytes":511,"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"src/shared/oauth.ts","kind":"import-statement","original":"~/shared/oauth"}],"format":"esm"},"src/shared/env.ts":{"bytes":768,"imports":[],"format":"esm"}},"outputs":{"dist/shared/analytics/track.js":{"imports":[],"exports":["track"],"entryPoint":"src/shared/analytics/track.ts","inputs":{"src/shared/analytics/track.ts":{"bytesInOutput":169}},"bytes":292},"dist/shared/analytics/types.js":{"imports":[],"exports":[],"entryPoint":"src/shared/analytics/types.ts","inputs":{"src/shared/analytics/types.ts":{"bytesInOutput":0}},"bytes":103},"dist/shared/datasources/external/meta/oauth/config.js":{"imports":[{"path":"dist/shared/chunk-A3ACTIE3.js","kind":"import-statement"},{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"exports":[],"entryPoint":"src/shared/datasources/external/meta/oauth/config.ts","inputs":{"src/shared/datasources/external/meta/oauth/config.ts":{"bytesInOutput":246}},"bytes":400},"dist/shared/datasources/external/tiktok/oauth/config.js":{"imports":[{"path":"dist/shared/chunk-A3ACTIE3.js","kind":"import-statement"},{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"exports":[],"entryPoint":"src/shared/datasources/external/tiktok/oauth/config.ts","inputs":{"src/shared/datasources/external/tiktok/oauth/config.ts":{"bytesInOutput":218}},"bytes":372},"dist/shared/datasources/external/youtube/oauth/config.js":{"imports":[{"path":"dist/shared/chunk-A3ACTIE3.js","kind":"import-statement"},{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"exports":[],"entryPoint":"src/shared/datasources/external/youtube/oauth/config.ts","inputs":{"src/shared/datasources/external/youtube/oauth/config.ts":{"bytesInOutput":218}},"bytes":372},"dist/shared/env.js":{"imports":[],"exports":[],"entryPoint":"src/shared/env.ts","inputs":{"src/shared/env.ts":{"bytesInOutput":0}},"bytes":103},"dist/shared/layout-constants.js":{"imports":[{"path":"dist/shared/chunk-PXAK7ZJ3.js","kind":"import-statement"}],"exports":["LAYOUT_BREAKPOINTS","LAYOUT_COLS","LAYOUT_ROW_HEIGHT"],"entryPoint":"src/shared/layout-constants.ts","inputs":{},"bytes":215},"dist/shared/utils/invariant.js":{"imports":[{"path":"dist/shared/chunk-XGI243DO.js","kind":"import-statement"}],"exports":["default"],"entryPoint":"src/shared/utils/invariant.ts","inputs":{},"bytes":161},"dist/shared/oauth.js":{"imports":[{"path":"dist/shared/chunk-A3ACTIE3.js","kind":"import-statement"}],"exports":["buildOAuthConfigSchema"],"entryPoint":"src/shared/oauth.ts","inputs":{},"bytes":175},"dist/shared/chunk-A3ACTIE3.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"exports":["a"],"inputs":{"src/shared/oauth.ts":{"bytesInOutput":211},"src/shared/utils/json-date.ts":{"bytesInOutput":141}},"bytes":471},"dist/shared/themes/all-themes.js":{"imports":[],"exports":["themes"],"entryPoint":"src/shared/themes/all-themes.ts","inputs":{"src/shared/themes/all-themes.ts":{"bytesInOutput":37034}},"bytes":37158},"dist/shared/themes/color-system.js":{"imports":[{"path":"chroma-js","kind":"import-statement","external":true},{"path":"chroma-js","kind":"import-statement","external":true},{"path":"@upstart.gg/style-system/twind","kind":"import-statement","external":true}],"exports":["chroma","colorAdjustmentBaseValues","colorAdjustments","colorAdjustmentsLuminous","colorAdjustmentsSubdued","colorFamilies","generateColorsVars","generateReadableTextColor","generateShades","generateTextColors","generateVariantClasses","getColorsSuggestions","getHarmoniousHues","isStandardColor","propToStyle","shades"],"entryPoint":"src/shared/themes/color-system.ts","inputs":{"src/shared/themes/color-system.ts":{"bytesInOutput":11223}},"bytes":11704},"dist/shared/theme.js":{"imports":[{"path":"dist/shared/chunk-V4SJKXET.js","kind":"import-statement"}],"exports":["getProcessedThemeSchema","themeArray","themeSchema"],"entryPoint":"src/shared/theme.ts","inputs":{},"bytes":213},"dist/shared/responsive.js":{"imports":[{"path":"zod","kind":"import-statement","external":true}],"exports":["responsiveMode"],"entryPoint":"src/shared/responsive.ts","inputs":{"src/shared/responsive.ts":{"bytesInOutput":54}},"bytes":186},"dist/shared/analytics/init.js":{"imports":[],"exports":["init"],"entryPoint":"src/shared/analytics/init.ts","inputs":{"src/shared/analytics/init.ts":{"bytesInOutput":338}},"bytes":460},"dist/shared/bricks/manifests/social-links.manifest.js":{"imports":[{"path":"dist/shared/chunk-WF7I53QW.js","kind":"import-statement"},{"path":"dist/shared/chunk-XL6LPHCI.js","kind":"import-statement"},{"path":"dist/shared/chunk-W6X5NC5M.js","kind":"import-statement"},{"path":"dist/shared/chunk-QOPZIE3U.js","kind":"import-statement"},{"path":"dist/shared/chunk-PXAK7ZJ3.js","kind":"import-statement"}],"exports":["defaults","manifest"],"entryPoint":"src/shared/bricks/manifests/social-links.manifest.ts","inputs":{},"bytes":309},"dist/shared/bricks/manifests/text.manifest.js":{"imports":[{"path":"dist/shared/chunk-EU3VNNEO.js","kind":"import-statement"},{"path":"dist/shared/chunk-XL6LPHCI.js","kind":"import-statement"},{"path":"dist/shared/chunk-W6X5NC5M.js","kind":"import-statement"},{"path":"dist/shared/chunk-QOPZIE3U.js","kind":"import-statement"},{"path":"dist/shared/chunk-PXAK7ZJ3.js","kind":"import-statement"}],"exports":["defaults","manifest"],"entryPoint":"src/shared/bricks/manifests/text.manifest.ts","inputs":{},"bytes":309},"dist/shared/bricks/manifests/video.manifest.js":{"imports":[{"path":"dist/shared/chunk-SL7GGSYB.js","kind":"import-statement"},{"path":"dist/shared/chunk-XL6LPHCI.js","kind":"import-statement"},{"path":"dist/shared/chunk-QOPZIE3U.js","kind":"import-statement"},{"path":"dist/shared/chunk-PXAK7ZJ3.js","kind":"import-statement"}],"exports":["defaults","manifest"],"entryPoint":"src/shared/bricks/manifests/video.manifest.ts","inputs":{},"bytes":277},"dist/shared/bricks/props/common.js":{"imports":[{"path":"dist/shared/chunk-XL6LPHCI.js","kind":"import-statement"}],"exports":["commonProps","content","contentAwareProps","editable"],"entryPoint":"src/shared/bricks/props/common.ts","inputs":{},"bytes":224},"dist/shared/bricks/props/style-props.js":{"imports":[{"path":"dist/shared/chunk-W6X5NC5M.js","kind":"import-statement"}],"exports":["commonStyleProps","textStyleProps"],"entryPoint":"src/shared/bricks/props/style-props.ts","inputs":{},"bytes":195},"dist/shared/bricks.js":{"imports":[{"path":"dist/shared/chunk-W4DP2HKI.js","kind":"import-statement"},{"path":"dist/shared/chunk-WF7I53QW.js","kind":"import-statement"},{"path":"dist/shared/chunk-EU3VNNEO.js","kind":"import-statement"},{"path":"dist/shared/chunk-SL7GGSYB.js","kind":"import-statement"},{"path":"dist/shared/chunk-2OS3QYKE.js","kind":"import-statement"},{"path":"dist/shared/chunk-Z4S5CCLQ.js","kind":"import-statement"},{"path":"dist/shared/chunk-TVKRK6P4.js","kind":"import-statement"},{"path":"dist/shared/chunk-J6I3OMQO.js","kind":"import-statement"},{"path":"dist/shared/chunk-FNY3QNEQ.js","kind":"import-statement"},{"path":"dist/shared/chunk-VEXGLSUP.js","kind":"import-statement"},{"path":"dist/shared/chunk-BND2TMDC.js","kind":"import-statement"},{"path":"dist/shared/chunk-2MYSBGXT.js","kind":"import-statement"},{"path":"dist/shared/chunk-NCF46HSZ.js","kind":"import-statement"},{"path":"dist/shared/chunk-XBV2Q4OR.js","kind":"import-statement"},{"path":"dist/shared/chunk-QXB632SL.js","kind":"import-statement"},{"path":"dist/shared/chunk-KGJQ6Z5A.js","kind":"import-statement"},{"path":"dist/shared/chunk-XL6LPHCI.js","kind":"import-statement"},{"path":"dist/shared/chunk-W6X5NC5M.js","kind":"import-statement"},{"path":"dist/shared/chunk-QOPZIE3U.js","kind":"import-statement"},{"path":"dist/shared/chunk-PXAK7ZJ3.js","kind":"import-statement"}],"exports":["brickSchema","createRow","defineBricks","generateId"],"entryPoint":"src/shared/bricks.ts","inputs":{},"bytes":751},"dist/shared/brick-manifest.js":{"imports":[{"path":"dist/shared/chunk-QOPZIE3U.js","kind":"import-statement"},{"path":"dist/shared/chunk-PXAK7ZJ3.js","kind":"import-statement"}],"exports":["defineBrickManifest"],"entryPoint":"src/shared/brick-manifest.ts","inputs":{},"bytes":200},"dist/shared/datasources.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"exports":["defineDataSources","ds"],"entryPoint":"src/shared/datasources.ts","inputs":{"src/shared/datasources.ts":{"bytesInOutput":64}},"bytes":207},"dist/shared/bricks/manifests/footer.manifest.js":{"imports":[{"path":"dist/shared/chunk-2OS3QYKE.js","kind":"import-statement"},{"path":"dist/shared/chunk-XL6LPHCI.js","kind":"import-statement"},{"path":"dist/shared/chunk-W6X5NC5M.js","kind":"import-statement"},{"path":"dist/shared/chunk-QOPZIE3U.js","kind":"import-statement"},{"path":"dist/shared/chunk-PXAK7ZJ3.js","kind":"import-statement"}],"exports":["defaults","manifest"],"entryPoint":"src/shared/bricks/manifests/footer.manifest.ts","inputs":{},"bytes":309},"dist/shared/bricks/manifests/form.manifest.js":{"imports":[{"path":"dist/shared/chunk-Z4S5CCLQ.js","kind":"import-statement"},{"path":"dist/shared/chunk-XL6LPHCI.js","kind":"import-statement"},{"path":"dist/shared/chunk-W6X5NC5M.js","kind":"import-statement"},{"path":"dist/shared/chunk-QOPZIE3U.js","kind":"import-statement"},{"path":"dist/shared/chunk-PXAK7ZJ3.js","kind":"import-statement"}],"exports":["defaults","manifest"],"entryPoint":"src/shared/bricks/manifests/form.manifest.ts","inputs":{},"bytes":309},"dist/shared/bricks/manifests/header.manifest.js":{"imports":[{"path":"dist/shared/chunk-TVKRK6P4.js","kind":"import-statement"},{"path":"dist/shared/chunk-XL6LPHCI.js","kind":"import-statement"},{"path":"dist/shared/chunk-W6X5NC5M.js","kind":"import-statement"},{"path":"dist/shared/chunk-QOPZIE3U.js","kind":"import-statement"},{"path":"dist/shared/chunk-PXAK7ZJ3.js","kind":"import-statement"}],"exports":["defaults","manifest"],"entryPoint":"src/shared/bricks/manifests/header.manifest.ts","inputs":{},"bytes":309},"dist/shared/bricks/manifests/hero.manifest.js":{"imports":[{"path":"dist/shared/chunk-J6I3OMQO.js","kind":"import-statement"},{"path":"dist/shared/chunk-XL6LPHCI.js","kind":"import-statement"},{"path":"dist/shared/chunk-W6X5NC5M.js","kind":"import-statement"},{"path":"dist/shared/chunk-QOPZIE3U.js","kind":"import-statement"},{"path":"dist/shared/chunk-PXAK7ZJ3.js","kind":"import-statement"}],"exports":["defaults","manifest"],"entryPoint":"src/shared/bricks/manifests/hero.manifest.ts","inputs":{},"bytes":309},"dist/shared/bricks/manifests/icon.manifest.js":{"imports":[{"path":"dist/shared/chunk-FNY3QNEQ.js","kind":"import-statement"},{"path":"dist/shared/chunk-XL6LPHCI.js","kind":"import-statement"},{"path":"dist/shared/chunk-W6X5NC5M.js","kind":"import-statement"},{"path":"dist/shared/chunk-QOPZIE3U.js","kind":"import-statement"},{"path":"dist/shared/chunk-PXAK7ZJ3.js","kind":"import-statement"}],"exports":["defaults","manifest"],"entryPoint":"src/shared/bricks/manifests/icon.manifest.ts","inputs":{},"bytes":309},"dist/shared/bricks/manifests/image.manifest.js":{"imports":[{"path":"dist/shared/chunk-VEXGLSUP.js","kind":"import-statement"},{"path":"dist/shared/chunk-XL6LPHCI.js","kind":"import-statement"},{"path":"dist/shared/chunk-W6X5NC5M.js","kind":"import-statement"},{"path":"dist/shared/chunk-QOPZIE3U.js","kind":"import-statement"},{"path":"dist/shared/chunk-PXAK7ZJ3.js","kind":"import-statement"}],"exports":["defaults","manifest"],"entryPoint":"src/shared/bricks/manifests/image.manifest.ts","inputs":{},"bytes":309},"dist/shared/bricks/manifests/images-wall.manifest.js":{"imports":[{"path":"dist/shared/chunk-BND2TMDC.js","kind":"import-statement"},{"path":"dist/shared/chunk-XL6LPHCI.js","kind":"import-statement"},{"path":"dist/shared/chunk-W6X5NC5M.js","kind":"import-statement"},{"path":"dist/shared/chunk-QOPZIE3U.js","kind":"import-statement"},{"path":"dist/shared/chunk-PXAK7ZJ3.js","kind":"import-statement"}],"exports":["defaults","manifest"],"entryPoint":"src/shared/bricks/manifests/images-wall.manifest.ts","inputs":{},"bytes":309},"dist/shared/bricks/manifests/map.manifest.js":{"imports":[{"path":"dist/shared/chunk-2MYSBGXT.js","kind":"import-statement"},{"path":"dist/shared/chunk-XL6LPHCI.js","kind":"import-statement"},{"path":"dist/shared/chunk-W6X5NC5M.js","kind":"import-statement"},{"path":"dist/shared/chunk-QOPZIE3U.js","kind":"import-statement"},{"path":"dist/shared/chunk-PXAK7ZJ3.js","kind":"import-statement"}],"exports":["defaults","manifest"],"entryPoint":"src/shared/bricks/manifests/map.manifest.ts","inputs":{},"bytes":309},"dist/shared/page.js":{"imports":[{"path":"dist/shared/chunk-XGI243DO.js","kind":"import-statement"},{"path":"dist/shared/chunk-V4SJKXET.js","kind":"import-statement"},{"path":"dist/shared/chunk-W4DP2HKI.js","kind":"import-statement"},{"path":"dist/shared/chunk-CXABUYX7.js","kind":"import-statement"},{"path":"dist/shared/chunk-WF7I53QW.js","kind":"import-statement"},{"path":"dist/shared/chunk-EU3VNNEO.js","kind":"import-statement"},{"path":"dist/shared/chunk-SL7GGSYB.js","kind":"import-statement"},{"path":"dist/shared/chunk-2OS3QYKE.js","kind":"import-statement"},{"path":"dist/shared/chunk-Z4S5CCLQ.js","kind":"import-statement"},{"path":"dist/shared/chunk-TVKRK6P4.js","kind":"import-statement"},{"path":"dist/shared/chunk-J6I3OMQO.js","kind":"import-statement"},{"path":"dist/shared/chunk-FNY3QNEQ.js","kind":"import-statement"},{"path":"dist/shared/chunk-VEXGLSUP.js","kind":"import-statement"},{"path":"dist/shared/chunk-BND2TMDC.js","kind":"import-statement"},{"path":"dist/shared/chunk-2MYSBGXT.js","kind":"import-statement"},{"path":"dist/shared/chunk-NCF46HSZ.js","kind":"import-statement"},{"path":"dist/shared/chunk-XBV2Q4OR.js","kind":"import-statement"},{"path":"dist/shared/chunk-QXB632SL.js","kind":"import-statement"},{"path":"dist/shared/chunk-KGJQ6Z5A.js","kind":"import-statement"},{"path":"dist/shared/chunk-XL6LPHCI.js","kind":"import-statement"},{"path":"dist/shared/chunk-W6X5NC5M.js","kind":"import-statement"},{"path":"dist/shared/chunk-QOPZIE3U.js","kind":"import-statement"},{"path":"dist/shared/chunk-PXAK7ZJ3.js","kind":"import-statement"},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"exports":["defineConfig","definedTemplatePage","getNewSiteConfig","getPageConfig","templatePageSchema","templateSchema"],"entryPoint":"src/shared/page.ts","inputs":{"src/shared/page.ts":{"bytesInOutput":1169},"src/shared/datasources/types.ts":{"bytesInOutput":2171},"src/shared/datasources/external/youtube/list/options.ts":{"bytesInOutput":235},"src/shared/datasources/provider-options.ts":{"bytesInOutput":98},"src/shared/datasources/external/meta/options.ts":{"bytesInOutput":105},"src/shared/datasources/external/mastodon/options.ts":{"bytesInOutput":96},"src/shared/datasources/external/json/options.ts":{"bytesInOutput":143},"src/shared/datasources/external/rss/options.ts":{"bytesInOutput":105},"src/shared/datasources/external/tiktok/video/options.ts":{"bytesInOutput":147},"src/shared/manifest.ts":{"bytesInOutput":845}},"bytes":6056},"dist/shared/chunk-XGI243DO.js":{"imports":[],"exports":["a"],"inputs":{"src/shared/utils/invariant.ts":{"bytesInOutput":124}},"bytes":243},"dist/shared/chunk-V4SJKXET.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"exports":["a","b","c"],"inputs":{"src/shared/theme.ts":{"bytesInOutput":5173}},"bytes":5301},"dist/shared/chunk-W4DP2HKI.js":{"imports":[{"path":"dist/shared/chunk-WF7I53QW.js","kind":"import-statement"},{"path":"dist/shared/chunk-EU3VNNEO.js","kind":"import-statement"},{"path":"dist/shared/chunk-SL7GGSYB.js","kind":"import-statement"},{"path":"dist/shared/chunk-2OS3QYKE.js","kind":"import-statement"},{"path":"dist/shared/chunk-Z4S5CCLQ.js","kind":"import-statement"},{"path":"dist/shared/chunk-TVKRK6P4.js","kind":"import-statement"},{"path":"dist/shared/chunk-J6I3OMQO.js","kind":"import-statement"},{"path":"dist/shared/chunk-FNY3QNEQ.js","kind":"import-statement"},{"path":"dist/shared/chunk-VEXGLSUP.js","kind":"import-statement"},{"path":"dist/shared/chunk-BND2TMDC.js","kind":"import-statement"},{"path":"dist/shared/chunk-2MYSBGXT.js","kind":"import-statement"},{"path":"dist/shared/chunk-NCF46HSZ.js","kind":"import-statement"},{"path":"dist/shared/chunk-XBV2Q4OR.js","kind":"import-statement"},{"path":"dist/shared/chunk-QXB632SL.js","kind":"import-statement"},{"path":"dist/shared/chunk-KGJQ6Z5A.js","kind":"import-statement"},{"path":"dist/shared/chunk-PXAK7ZJ3.js","kind":"import-statement"},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"nanoid","kind":"import-statement","external":true}],"exports":["a","b","c","d"],"inputs":{"src/shared/bricks.ts":{"bytesInOutput":3928}},"bytes":4703},"dist/shared/errors.js":{"imports":[{"path":"http-errors-enhanced","kind":"import-statement","external":true}],"exports":["UnauthorizedError"],"entryPoint":"src/shared/errors.ts","inputs":{"src/shared/errors.ts":{"bytesInOutput":57}},"bytes":192},"dist/shared/attributes.js":{"imports":[{"path":"dist/shared/chunk-CXABUYX7.js","kind":"import-statement"}],"exports":["attr","defineAttributes","resolveAttributes"],"entryPoint":"src/shared/attributes.ts","inputs":{},"bytes":206},"dist/shared/chunk-CXABUYX7.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true}],"exports":["a","b","c"],"inputs":{"src/shared/attributes.ts":{"bytesInOutput":4184}},"bytes":4317},"dist/shared/bricks/manifests/all-manifests.js":{"imports":[{"path":"dist/shared/chunk-WF7I53QW.js","kind":"import-statement"},{"path":"dist/shared/chunk-EU3VNNEO.js","kind":"import-statement"},{"path":"dist/shared/chunk-SL7GGSYB.js","kind":"import-statement"},{"path":"dist/shared/chunk-2OS3QYKE.js","kind":"import-statement"},{"path":"dist/shared/chunk-Z4S5CCLQ.js","kind":"import-statement"},{"path":"dist/shared/chunk-TVKRK6P4.js","kind":"import-statement"},{"path":"dist/shared/chunk-J6I3OMQO.js","kind":"import-statement"},{"path":"dist/shared/chunk-FNY3QNEQ.js","kind":"import-statement"},{"path":"dist/shared/chunk-VEXGLSUP.js","kind":"import-statement"},{"path":"dist/shared/chunk-BND2TMDC.js","kind":"import-statement"},{"path":"dist/shared/chunk-2MYSBGXT.js","kind":"import-statement"},{"path":"dist/shared/chunk-NCF46HSZ.js","kind":"import-statement"},{"path":"dist/shared/chunk-XBV2Q4OR.js","kind":"import-statement"},{"path":"dist/shared/chunk-QXB632SL.js","kind":"import-statement"},{"path":"dist/shared/chunk-KGJQ6Z5A.js","kind":"import-statement"},{"path":"dist/shared/chunk-XL6LPHCI.js","kind":"import-statement"},{"path":"dist/shared/chunk-W6X5NC5M.js","kind":"import-statement"},{"path":"dist/shared/chunk-QOPZIE3U.js","kind":"import-statement"},{"path":"dist/shared/chunk-PXAK7ZJ3.js","kind":"import-statement"}],"exports":["defaults","manifests"],"entryPoint":"src/shared/bricks/manifests/all-manifests.ts","inputs":{"src/shared/bricks/manifests/all-manifests.ts":{"bytesInOutput":342}},"bytes":1376},"dist/shared/chunk-WF7I53QW.js":{"imports":[{"path":"dist/shared/chunk-XL6LPHCI.js","kind":"import-statement"},{"path":"dist/shared/chunk-W6X5NC5M.js","kind":"import-statement"},{"path":"dist/shared/chunk-QOPZIE3U.js","kind":"import-statement"},{"path":"dist/shared/chunk-PXAK7ZJ3.js","kind":"import-statement"},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true}],"exports":["a","b"],"inputs":{"src/shared/bricks/manifests/social-links.manifest.ts":{"bytesInOutput":1602}},"bytes":1895},"dist/shared/chunk-EU3VNNEO.js":{"imports":[{"path":"dist/shared/chunk-XL6LPHCI.js","kind":"import-statement"},{"path":"dist/shared/chunk-W6X5NC5M.js","kind":"import-statement"},{"path":"dist/shared/chunk-QOPZIE3U.js","kind":"import-statement"},{"path":"dist/shared/chunk-PXAK7ZJ3.js","kind":"import-statement"},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true}],"exports":["a","b"],"inputs":{"src/shared/bricks/manifests/text.manifest.ts":{"bytesInOutput":606}},"bytes":899},"dist/shared/chunk-SL7GGSYB.js":{"imports":[{"path":"dist/shared/chunk-XL6LPHCI.js","kind":"import-statement"},{"path":"dist/shared/chunk-QOPZIE3U.js","kind":"import-statement"},{"path":"dist/shared/chunk-PXAK7ZJ3.js","kind":"import-statement"},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true}],"exports":["a","b"],"inputs":{"src/shared/bricks/manifests/video.manifest.ts":{"bytesInOutput":980}},"bytes":1226},"dist/shared/chunk-2OS3QYKE.js":{"imports":[{"path":"dist/shared/chunk-XL6LPHCI.js","kind":"import-statement"},{"path":"dist/shared/chunk-W6X5NC5M.js","kind":"import-statement"},{"path":"dist/shared/chunk-QOPZIE3U.js","kind":"import-statement"},{"path":"dist/shared/chunk-PXAK7ZJ3.js","kind":"import-statement"},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true}],"exports":["a","b"],"inputs":{"src/shared/bricks/manifests/footer.manifest.ts":{"bytesInOutput":1529}},"bytes":1822},"dist/shared/chunk-Z4S5CCLQ.js":{"imports":[{"path":"dist/shared/chunk-XL6LPHCI.js","kind":"import-statement"},{"path":"dist/shared/chunk-W6X5NC5M.js","kind":"import-statement"},{"path":"dist/shared/chunk-QOPZIE3U.js","kind":"import-statement"},{"path":"dist/shared/chunk-PXAK7ZJ3.js","kind":"import-statement"},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true}],"exports":["a","b"],"inputs":{"src/shared/bricks/manifests/form.manifest.ts":{"bytesInOutput":1267}},"bytes":1560},"dist/shared/chunk-TVKRK6P4.js":{"imports":[{"path":"dist/shared/chunk-XL6LPHCI.js","kind":"import-statement"},{"path":"dist/shared/chunk-W6X5NC5M.js","kind":"import-statement"},{"path":"dist/shared/chunk-QOPZIE3U.js","kind":"import-statement"},{"path":"dist/shared/chunk-PXAK7ZJ3.js","kind":"import-statement"},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true}],"exports":["a","b"],"inputs":{"src/shared/bricks/manifests/header.manifest.ts":{"bytesInOutput":1276}},"bytes":1569},"dist/shared/chunk-J6I3OMQO.js":{"imports":[{"path":"dist/shared/chunk-XL6LPHCI.js","kind":"import-statement"},{"path":"dist/shared/chunk-W6X5NC5M.js","kind":"import-statement"},{"path":"dist/shared/chunk-QOPZIE3U.js","kind":"import-statement"},{"path":"dist/shared/chunk-PXAK7ZJ3.js","kind":"import-statement"},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true}],"exports":["a","b"],"inputs":{"src/shared/bricks/manifests/hero.manifest.ts":{"bytesInOutput":1079}},"bytes":1372},"dist/shared/chunk-FNY3QNEQ.js":{"imports":[{"path":"dist/shared/chunk-XL6LPHCI.js","kind":"import-statement"},{"path":"dist/shared/chunk-W6X5NC5M.js","kind":"import-statement"},{"path":"dist/shared/chunk-QOPZIE3U.js","kind":"import-statement"},{"path":"dist/shared/chunk-PXAK7ZJ3.js","kind":"import-statement"},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true}],"exports":["a","b"],"inputs":{"src/shared/bricks/manifests/icon.manifest.ts":{"bytesInOutput":1084}},"bytes":1377},"dist/shared/chunk-VEXGLSUP.js":{"imports":[{"path":"dist/shared/chunk-XL6LPHCI.js","kind":"import-statement"},{"path":"dist/shared/chunk-W6X5NC5M.js","kind":"import-statement"},{"path":"dist/shared/chunk-QOPZIE3U.js","kind":"import-statement"},{"path":"dist/shared/chunk-PXAK7ZJ3.js","kind":"import-statement"},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true}],"exports":["a","b"],"inputs":{"src/shared/bricks/manifests/image.manifest.ts":{"bytesInOutput":1048}},"bytes":1334},"dist/shared/chunk-BND2TMDC.js":{"imports":[{"path":"dist/shared/chunk-XL6LPHCI.js","kind":"import-statement"},{"path":"dist/shared/chunk-W6X5NC5M.js","kind":"import-statement"},{"path":"dist/shared/chunk-QOPZIE3U.js","kind":"import-statement"},{"path":"dist/shared/chunk-PXAK7ZJ3.js","kind":"import-statement"},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true}],"exports":["a","b"],"inputs":{"src/shared/bricks/manifests/images-wall.manifest.ts":{"bytesInOutput":1295}},"bytes":1588},"dist/shared/chunk-2MYSBGXT.js":{"imports":[{"path":"dist/shared/chunk-XL6LPHCI.js","kind":"import-statement"},{"path":"dist/shared/chunk-W6X5NC5M.js","kind":"import-statement"},{"path":"dist/shared/chunk-QOPZIE3U.js","kind":"import-statement"},{"path":"dist/shared/chunk-PXAK7ZJ3.js","kind":"import-statement"},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true}],"exports":["a","b"],"inputs":{"src/shared/bricks/manifests/map.manifest.ts":{"bytesInOutput":1474}},"bytes":1767},"dist/shared/bricks/manifests/button.manifest.js":{"imports":[{"path":"dist/shared/chunk-NCF46HSZ.js","kind":"import-statement"},{"path":"dist/shared/chunk-XL6LPHCI.js","kind":"import-statement"},{"path":"dist/shared/chunk-W6X5NC5M.js","kind":"import-statement"},{"path":"dist/shared/chunk-QOPZIE3U.js","kind":"import-statement"},{"path":"dist/shared/chunk-PXAK7ZJ3.js","kind":"import-statement"}],"exports":["defaults","manifest"],"entryPoint":"src/shared/bricks/manifests/button.manifest.ts","inputs":{},"bytes":309},"dist/shared/chunk-NCF46HSZ.js":{"imports":[{"path":"dist/shared/chunk-XL6LPHCI.js","kind":"import-statement"},{"path":"dist/shared/chunk-W6X5NC5M.js","kind":"import-statement"},{"path":"dist/shared/chunk-QOPZIE3U.js","kind":"import-statement"},{"path":"dist/shared/chunk-PXAK7ZJ3.js","kind":"import-statement"},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true}],"exports":["a","b"],"inputs":{"src/shared/bricks/manifests/button.manifest.ts":{"bytesInOutput":1131}},"bytes":1424},"dist/shared/bricks/manifests/card.manifest.js":{"imports":[{"path":"dist/shared/chunk-XBV2Q4OR.js","kind":"import-statement"},{"path":"dist/shared/chunk-XL6LPHCI.js","kind":"import-statement"},{"path":"dist/shared/chunk-W6X5NC5M.js","kind":"import-statement"},{"path":"dist/shared/chunk-QOPZIE3U.js","kind":"import-statement"},{"path":"dist/shared/chunk-PXAK7ZJ3.js","kind":"import-statement"}],"exports":["defaults","manifest"],"entryPoint":"src/shared/bricks/manifests/card.manifest.ts","inputs":{},"bytes":309},"dist/shared/chunk-XBV2Q4OR.js":{"imports":[{"path":"dist/shared/chunk-XL6LPHCI.js","kind":"import-statement"},{"path":"dist/shared/chunk-W6X5NC5M.js","kind":"import-statement"},{"path":"dist/shared/chunk-QOPZIE3U.js","kind":"import-statement"},{"path":"dist/shared/chunk-PXAK7ZJ3.js","kind":"import-statement"},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true}],"exports":["a","b"],"inputs":{"src/shared/bricks/manifests/card.manifest.ts":{"bytesInOutput":1314}},"bytes":1607},"dist/shared/bricks/manifests/carousel.manifest.js":{"imports":[{"path":"dist/shared/chunk-QXB632SL.js","kind":"import-statement"},{"path":"dist/shared/chunk-XL6LPHCI.js","kind":"import-statement"},{"path":"dist/shared/chunk-W6X5NC5M.js","kind":"import-statement"},{"path":"dist/shared/chunk-QOPZIE3U.js","kind":"import-statement"},{"path":"dist/shared/chunk-PXAK7ZJ3.js","kind":"import-statement"}],"exports":["defaults","manifest"],"entryPoint":"src/shared/bricks/manifests/carousel.manifest.ts","inputs":{},"bytes":309},"dist/shared/chunk-QXB632SL.js":{"imports":[{"path":"dist/shared/chunk-XL6LPHCI.js","kind":"import-statement"},{"path":"dist/shared/chunk-W6X5NC5M.js","kind":"import-statement"},{"path":"dist/shared/chunk-QOPZIE3U.js","kind":"import-statement"},{"path":"dist/shared/chunk-PXAK7ZJ3.js","kind":"import-statement"},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true}],"exports":["a","b"],"inputs":{"src/shared/bricks/manifests/carousel.manifest.ts":{"bytesInOutput":1343}},"bytes":1636},"dist/shared/bricks/manifests/countdown.manifest.js":{"imports":[{"path":"dist/shared/chunk-KGJQ6Z5A.js","kind":"import-statement"},{"path":"dist/shared/chunk-XL6LPHCI.js","kind":"import-statement"},{"path":"dist/shared/chunk-W6X5NC5M.js","kind":"import-statement"},{"path":"dist/shared/chunk-QOPZIE3U.js","kind":"import-statement"},{"path":"dist/shared/chunk-PXAK7ZJ3.js","kind":"import-statement"}],"exports":["defaults","manifest"],"entryPoint":"src/shared/bricks/manifests/countdown.manifest.ts","inputs":{},"bytes":309},"dist/shared/chunk-KGJQ6Z5A.js":{"imports":[{"path":"dist/shared/chunk-XL6LPHCI.js","kind":"import-statement"},{"path":"dist/shared/chunk-W6X5NC5M.js","kind":"import-statement"},{"path":"dist/shared/chunk-QOPZIE3U.js","kind":"import-statement"},{"path":"dist/shared/chunk-PXAK7ZJ3.js","kind":"import-statement"},{"path":"@sinclair/typebox","kind":"import-statement","external":true},{"path":"@sinclair/typebox/value","kind":"import-statement","external":true}],"exports":["a","b"],"inputs":{"src/shared/bricks/manifests/countdown.manifest.ts":{"bytesInOutput":1732}},"bytes":2025},"dist/shared/chunk-XL6LPHCI.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"exports":["a","b","c","d"],"inputs":{"src/shared/bricks/props/common.ts":{"bytesInOutput":490}},"bytes":625},"dist/shared/chunk-W6X5NC5M.js":{"imports":[{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"exports":["a","b"],"inputs":{"src/shared/bricks/props/style-props.ts":{"bytesInOutput":4285}},"bytes":4411},"dist/shared/chunk-QOPZIE3U.js":{"imports":[{"path":"dist/shared/chunk-PXAK7ZJ3.js","kind":"import-statement"},{"path":"@sinclair/typebox","kind":"import-statement","external":true}],"exports":["a"],"inputs":{"src/shared/brick-manifest.ts":{"bytesInOutput":819}},"bytes":978},"dist/shared/chunk-PXAK7ZJ3.js":{"imports":[],"exports":["a","b","c"],"inputs":{"src/shared/layout-constants.ts":{"bytesInOutput":60}},"bytes":193}}}