@webflow/webflow-cli 1.14.0-next.1 → 1.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -1,62 +1,50 @@
1
1
  #!/usr/bin/env node
2
- "use strict";var hb=Object.create;var yo=Object.defineProperty;var gb=Object.getOwnPropertyDescriptor;var yb=Object.getOwnPropertyNames;var bb=Object.getPrototypeOf,Db=Object.prototype.hasOwnProperty;var k=(e,t)=>()=>(e&&(t=e(e=0)),t);var rs=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),os=(e,t)=>{for(var n in t)yo(e,n,{get:t[n],enumerable:!0})},_u=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of yb(t))!Db.call(e,o)&&o!==n&&yo(e,o,{get:()=>t[o],enumerable:!(r=gb(t,o))||r.enumerable});return e};var D=(e,t,n)=>(n=e!=null?hb(bb(e)):{},_u(t||!e||!e.__esModule?yo(n,"default",{value:e,enumerable:!0}):n,e)),wb=e=>_u(yo({},"__esModule",{value:!0}),e);function xb(){let e=new Map;for(let[t,n]of Object.entries(Q)){for(let[r,o]of Object.entries(n))Q[r]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},n[r]=Q[r],e.set(o[0],o[1]);Object.defineProperty(Q,t,{value:n,enumerable:!1})}return Object.defineProperty(Q,"codes",{value:e,enumerable:!1}),Q.color.close="\x1B[39m",Q.bgColor.close="\x1B[49m",Q.color.ansi=Su(),Q.color.ansi256=Tu(),Q.color.ansi16m=Au(),Q.bgColor.ansi=Su(10),Q.bgColor.ansi256=Tu(10),Q.bgColor.ansi16m=Au(10),Object.defineProperties(Q,{rgbToAnsi256:{value(t,n,r){return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},enumerable:!1},hexToRgb:{value(t){let n=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!n)return[0,0,0];let[r]=n;r.length===3&&(r=[...r].map(i=>i+i).join(""));let o=Number.parseInt(r,16);return[o>>16&255,o>>8&255,o&255]},enumerable:!1},hexToAnsi256:{value:t=>Q.rgbToAnsi256(...Q.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let n,r,o;if(t>=232)n=((t-232)*10+8)/255,r=n,o=n;else{t-=16;let a=t%36;n=Math.floor(t/36)/5,r=Math.floor(a/6)/5,o=a%6/5}let i=Math.max(n,r,o)*2;if(i===0)return 30;let s=30+(Math.round(o)<<2|Math.round(r)<<1|Math.round(n));return i===2&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(t,n,r)=>Q.ansi256ToAnsi(Q.rgbToAnsi256(t,n,r)),enumerable:!1},hexToAnsi:{value:t=>Q.ansi256ToAnsi(Q.hexToAnsi256(t)),enumerable:!1}}),Q}var Su,Tu,Au,Q,U_,vb,kb,V_,Cb,Me,Ou=k(()=>{"use strict";Su=(e=0)=>t=>`\x1B[${t+e}m`,Tu=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,Au=(e=0)=>(t,n,r)=>`\x1B[${38+e};2;${t};${n};${r}m`,Q={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},U_=Object.keys(Q.modifier),vb=Object.keys(Q.color),kb=Object.keys(Q.bgColor),V_=[...vb,...kb];Cb=xb(),Me=Cb});function _e(e,t=globalThis.Deno?globalThis.Deno.args:Do.default.argv){let n=e.startsWith("-")?"":e.length===1?"-":"--",r=t.indexOf(n+e),o=t.indexOf("--");return r!==-1&&(o===-1||r<o)}function Eb(){if("FORCE_COLOR"in ne)return ne.FORCE_COLOR==="true"?1:ne.FORCE_COLOR==="false"?0:ne.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(ne.FORCE_COLOR,10),3)}function Fb(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function _b(e,{streamIsTTY:t,sniffFlags:n=!0}={}){let r=Eb();r!==void 0&&(bo=r);let o=n?bo:r;if(o===0)return 0;if(n){if(_e("color=16m")||_e("color=full")||_e("color=truecolor"))return 3;if(_e("color=256"))return 2}if("TF_BUILD"in ne&&"AGENT_NAME"in ne)return 1;if(e&&!t&&o===void 0)return 0;let i=o||0;if(ne.TERM==="dumb")return i;if(Do.default.platform==="win32"){let s=Iu.default.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in ne)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(s=>s in ne)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(s=>s in ne)||ne.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in ne)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ne.TEAMCITY_VERSION)?1:0;if(ne.COLORTERM==="truecolor"||ne.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in ne){let s=Number.parseInt((ne.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ne.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ne.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ne.TERM)||"COLORTERM"in ne?1:i}function Pu(e,t={}){let n=_b(e,{streamIsTTY:e&&e.isTTY,...t});return Fb(n)}var Do,Iu,is,ne,bo,Sb,Bu,Ru=k(()=>{"use strict";Do=D(require("process"),1),Iu=D(require("os"),1),is=D(require("tty"),1);({env:ne}=Do.default);_e("no-color")||_e("no-colors")||_e("color=false")||_e("color=never")?bo=0:(_e("color")||_e("colors")||_e("color=true")||_e("color=always"))&&(bo=1);Sb={stdout:Pu({isTTY:is.default.isatty(1)}),stderr:Pu({isTTY:is.default.isatty(2)})},Bu=Sb});function ju(e,t,n){let r=e.indexOf(t);if(r===-1)return e;let o=t.length,i=0,s="";do s+=e.slice(i,r)+t+n,i=r+o,r=e.indexOf(t,i);while(r!==-1);return s+=e.slice(i),s}function Lu(e,t,n,r){let o=0,i="";do{let s=e[r-1]==="\r";i+=e.slice(o,s?r-1:r)+t+(s?`\r
2
+ "use strict";var Ey=Object.create;var Ni=Object.defineProperty;var Sy=Object.getOwnPropertyDescriptor;var Ty=Object.getOwnPropertyNames;var Ay=Object.getPrototypeOf,Oy=Object.prototype.hasOwnProperty;var E=(e,t)=>()=>(e&&(t=e(e=0)),t);var Mi=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),Ql=(e,t)=>{for(var n in t)Ni(e,n,{get:t[n],enumerable:!0})},Py=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of Ty(t))!Oy.call(e,o)&&o!==n&&Ni(e,o,{get:()=>t[o],enumerable:!(r=Sy(t,o))||r.enumerable});return e};var D=(e,t,n)=>(n=e!=null?Ey(Ay(e)):{},Py(t||!e||!e.__esModule?Ni(n,"default",{value:e,enumerable:!0}):n,e));function jy(){let e=new Map;for(let[t,n]of Object.entries(X)){for(let[r,o]of Object.entries(n))X[r]={open:`\x1B[${o[0]}m`,close:`\x1B[${o[1]}m`},n[r]=X[r],e.set(o[0],o[1]);Object.defineProperty(X,t,{value:n,enumerable:!1})}return Object.defineProperty(X,"codes",{value:e,enumerable:!1}),X.color.close="\x1B[39m",X.bgColor.close="\x1B[49m",X.color.ansi=eu(),X.color.ansi256=tu(),X.color.ansi16m=nu(),X.bgColor.ansi=eu(10),X.bgColor.ansi256=tu(10),X.bgColor.ansi16m=nu(10),Object.defineProperties(X,{rgbToAnsi256:{value(t,n,r){return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)},enumerable:!1},hexToRgb:{value(t){let n=/[a-f\d]{6}|[a-f\d]{3}/i.exec(t.toString(16));if(!n)return[0,0,0];let[r]=n;r.length===3&&(r=[...r].map(i=>i+i).join(""));let o=Number.parseInt(r,16);return[o>>16&255,o>>8&255,o&255]},enumerable:!1},hexToAnsi256:{value:t=>X.rgbToAnsi256(...X.hexToRgb(t)),enumerable:!1},ansi256ToAnsi:{value(t){if(t<8)return 30+t;if(t<16)return 90+(t-8);let n,r,o;if(t>=232)n=((t-232)*10+8)/255,r=n,o=n;else{t-=16;let a=t%36;n=Math.floor(t/36)/5,r=Math.floor(a/6)/5,o=a%6/5}let i=Math.max(n,r,o)*2;if(i===0)return 30;let s=30+(Math.round(o)<<2|Math.round(r)<<1|Math.round(n));return i===2&&(s+=60),s},enumerable:!1},rgbToAnsi:{value:(t,n,r)=>X.ansi256ToAnsi(X.rgbToAnsi256(t,n,r)),enumerable:!1},hexToAnsi:{value:t=>X.ansi256ToAnsi(X.hexToAnsi256(t)),enumerable:!1}}),X}var eu,tu,nu,X,I_,By,Iy,j_,Ry,Re,ru=E(()=>{"use strict";eu=(e=0)=>t=>`\x1B[${t+e}m`,tu=(e=0)=>t=>`\x1B[${38+e};5;${t}m`,nu=(e=0)=>(t,n,r)=>`\x1B[${38+e};2;${t};${n};${r}m`,X={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],overline:[53,55],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],blackBright:[90,39],gray:[90,39],grey:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgGray:[100,49],bgGrey:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}},I_=Object.keys(X.modifier),By=Object.keys(X.color),Iy=Object.keys(X.bgColor),j_=[...By,...Iy];Ry=jy(),Re=Ry});function Ce(e,t=globalThis.Deno?globalThis.Deno.args:eo.default.argv){let n=e.startsWith("-")?"":e.length===1?"-":"--",r=t.indexOf(n+e),o=t.indexOf("--");return r!==-1&&(o===-1||r<o)}function Ly(){if("FORCE_COLOR"in ee)return ee.FORCE_COLOR==="true"?1:ee.FORCE_COLOR==="false"?0:ee.FORCE_COLOR.length===0?1:Math.min(Number.parseInt(ee.FORCE_COLOR,10),3)}function Ny(e){return e===0?!1:{level:e,hasBasic:!0,has256:e>=2,has16m:e>=3}}function My(e,{streamIsTTY:t,sniffFlags:n=!0}={}){let r=Ly();r!==void 0&&(Qr=r);let o=n?Qr:r;if(o===0)return 0;if(n){if(Ce("color=16m")||Ce("color=full")||Ce("color=truecolor"))return 3;if(Ce("color=256"))return 2}if("TF_BUILD"in ee&&"AGENT_NAME"in ee)return 1;if(e&&!t&&o===void 0)return 0;let i=o||0;if(ee.TERM==="dumb")return i;if(eo.default.platform==="win32"){let s=iu.default.release().split(".");return Number(s[0])>=10&&Number(s[2])>=10586?Number(s[2])>=14931?3:2:1}if("CI"in ee)return["GITHUB_ACTIONS","GITEA_ACTIONS","CIRCLECI"].some(s=>s in ee)?3:["TRAVIS","APPVEYOR","GITLAB_CI","BUILDKITE","DRONE"].some(s=>s in ee)||ee.CI_NAME==="codeship"?1:i;if("TEAMCITY_VERSION"in ee)return/^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(ee.TEAMCITY_VERSION)?1:0;if(ee.COLORTERM==="truecolor"||ee.TERM==="xterm-kitty")return 3;if("TERM_PROGRAM"in ee){let s=Number.parseInt((ee.TERM_PROGRAM_VERSION||"").split(".")[0],10);switch(ee.TERM_PROGRAM){case"iTerm.app":return s>=3?3:2;case"Apple_Terminal":return 2}}return/-256(color)?$/i.test(ee.TERM)?2:/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(ee.TERM)||"COLORTERM"in ee?1:i}function ou(e,t={}){let n=My(e,{streamIsTTY:e&&e.isTTY,...t});return Ny(n)}var eo,iu,$i,ee,Qr,$y,su,au=E(()=>{"use strict";eo=D(require("process"),1),iu=D(require("os"),1),$i=D(require("tty"),1);({env:ee}=eo.default);Ce("no-color")||Ce("no-colors")||Ce("color=false")||Ce("color=never")?Qr=0:(Ce("color")||Ce("colors")||Ce("color=true")||Ce("color=always"))&&(Qr=1);$y={stdout:ou({isTTY:$i.default.isatty(1)}),stderr:ou({isTTY:$i.default.isatty(2)})},su=$y});function lu(e,t,n){let r=e.indexOf(t);if(r===-1)return e;let o=t.length,i=0,s="";do s+=e.slice(i,r)+t+n,i=r+o,r=e.indexOf(t,i);while(r!==-1);return s+=e.slice(i),s}function uu(e,t,n,r){let o=0,i="";do{let s=e[r-1]==="\r";i+=e.slice(o,s?r-1:r)+t+(s?`\r
3
3
  `:`
4
4
  `)+n,o=r+1,r=e.indexOf(`
5
- `,o)}while(r!==-1);return i+=e.slice(o),i}var Nu=k(()=>{"use strict"});function vr(e){return Ab(e)}var Mu,$u,ss,xn,wr,Wu,Cn,Tb,Ab,as,Ob,Pb,ls,wo,Ib,Bb,Y_,z,Ke=k(()=>{"use strict";Ou();Ru();Nu();({stdout:Mu,stderr:$u}=Bu),ss=Symbol("GENERATOR"),xn=Symbol("STYLER"),wr=Symbol("IS_EMPTY"),Wu=["ansi","ansi","ansi256","ansi16m"],Cn=Object.create(null),Tb=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let n=Mu?Mu.level:0;e.level=t.level===void 0?n:t.level},Ab=e=>{let t=(...n)=>n.join(" ");return Tb(t,e),Object.setPrototypeOf(t,vr.prototype),t};Object.setPrototypeOf(vr.prototype,Function.prototype);for(let[e,t]of Object.entries(Me))Cn[e]={get(){let n=wo(this,ls(t.open,t.close,this[xn]),this[wr]);return Object.defineProperty(this,e,{value:n}),n}};Cn.visible={get(){let e=wo(this,this[xn],!0);return Object.defineProperty(this,"visible",{value:e}),e}};as=(e,t,n,...r)=>e==="rgb"?t==="ansi16m"?Me[n].ansi16m(...r):t==="ansi256"?Me[n].ansi256(Me.rgbToAnsi256(...r)):Me[n].ansi(Me.rgbToAnsi(...r)):e==="hex"?as("rgb",t,n,...Me.hexToRgb(...r)):Me[n][e](...r),Ob=["rgb","hex","ansi256"];for(let e of Ob){Cn[e]={get(){let{level:n}=this;return function(...r){let o=ls(as(e,Wu[n],"color",...r),Me.color.close,this[xn]);return wo(this,o,this[wr])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);Cn[t]={get(){let{level:n}=this;return function(...r){let o=ls(as(e,Wu[n],"bgColor",...r),Me.bgColor.close,this[xn]);return wo(this,o,this[wr])}}}}Pb=Object.defineProperties(()=>{},{...Cn,level:{enumerable:!0,get(){return this[ss].level},set(e){this[ss].level=e}}}),ls=(e,t,n)=>{let r,o;return n===void 0?(r=e,o=t):(r=n.openAll+e,o=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:o,parent:n}},wo=(e,t,n)=>{let r=(...o)=>Ib(r,o.length===1?""+o[0]:o.join(" "));return Object.setPrototypeOf(r,Pb),r[ss]=e,r[xn]=t,r[wr]=n,r},Ib=(e,t)=>{if(e.level<=0||!t)return e[wr]?"":t;let n=e[xn];if(n===void 0)return t;let{openAll:r,closeAll:o}=n;if(t.includes("\x1B"))for(;n!==void 0;)t=ju(t,n.close,n.open),n=n.parent;let i=t.indexOf(`
6
- `);return i!==-1&&(t=Lu(t,o,r,i)),r+t+o};Object.defineProperties(vr.prototype,Cn);Bb=vr(),Y_=vr({level:$u?$u.level:0}),z=Bb});function us(e,t,{ignoreNonConfigurable:n=!1}={}){let{name:r}=e;for(let o of Reflect.ownKeys(t))Rb(e,t,o,n);return Lb(e,t),Wb(e,t,r),e}var Rb,jb,Lb,Nb,Mb,$b,Wb,zu=k(()=>{"use strict";Rb=(e,t,n,r)=>{if(n==="length"||n==="prototype"||n==="arguments"||n==="caller")return;let o=Object.getOwnPropertyDescriptor(e,n),i=Object.getOwnPropertyDescriptor(t,n);!jb(o,i)&&r||Object.defineProperty(e,n,i)},jb=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},Lb=(e,t)=>{let n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},Nb=(e,t)=>`/* Wrapped ${e}*/
7
- ${t}`,Mb=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),$b=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),Wb=(e,t,n)=>{let r=n===""?"":`with ${n.trim()}() `,o=Nb.bind(null,r,t.toString());Object.defineProperty(o,"name",$b);let{writable:i,enumerable:s,configurable:a}=Mb;Object.defineProperty(e,"toString",{value:o,writable:i,enumerable:s,configurable:a})}});var vo,Uu,Vu,Gu=k(()=>{"use strict";zu();vo=new WeakMap,Uu=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let n,r=0,o=e.displayName||e.name||"<anonymous>",i=function(...s){if(vo.set(i,++r),r===1)n=e.apply(this,s),e=void 0;else if(t.throw===!0)throw new Error(`Function \`${o}\` can only be called once`);return n};return us(i,e),vo.set(i,r),i};Uu.callCount=e=>{if(!vo.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return vo.get(e)};Vu=Uu});var Ut,qu=k(()=>{"use strict";Ut=[];Ut.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&Ut.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Ut.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT")});var ko,cs,ps,zb,ds,xo,Ub,fs,ms,hs,Hu,o2,i2,Ju=k(()=>{"use strict";qu();ko=e=>!!e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function",cs=Symbol.for("signal-exit emitter"),ps=globalThis,zb=Object.defineProperty.bind(Object),ds=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(ps[cs])return ps[cs];zb(ps,cs,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(t,n){this.listeners[t].push(n)}removeListener(t,n){let r=this.listeners[t],o=r.indexOf(n);o!==-1&&(o===0&&r.length===1?r.length=0:r.splice(o,1))}emit(t,n,r){if(this.emitted[t])return!1;this.emitted[t]=!0;let o=!1;for(let i of this.listeners[t])o=i(n,r)===!0||o;return t==="exit"&&(o=this.emit("afterExit",n,r)||o),o}},xo=class{},Ub=e=>({onExit(t,n){return e.onExit(t,n)},load(){return e.load()},unload(){return e.unload()}}),fs=class extends xo{onExit(){return()=>{}}load(){}unload(){}},ms=class extends xo{#s=hs.platform==="win32"?"SIGINT":"SIGHUP";#n=new ds;#e;#o;#d;#t={};#i=!1;constructor(t){super(),this.#e=t,this.#t={};for(let n of Ut)this.#t[n]=()=>{let r=this.#e.listeners(n),{count:o}=this.#n,i=t;if(typeof i.__signal_exit_emitter__=="object"&&typeof i.__signal_exit_emitter__.count=="number"&&(o+=i.__signal_exit_emitter__.count),r.length===o){this.unload();let s=this.#n.emit("exit",null,n),a=n==="SIGHUP"?this.#s:n;s||t.kill(t.pid,a)}};this.#d=t.reallyExit,this.#o=t.emit}onExit(t,n){if(!ko(this.#e))return()=>{};this.#i===!1&&this.load();let r=n?.alwaysLast?"afterExit":"exit";return this.#n.on(r,t),()=>{this.#n.removeListener(r,t),this.#n.listeners.exit.length===0&&this.#n.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#i){this.#i=!0,this.#n.count+=1;for(let t of Ut)try{let n=this.#t[t];n&&this.#e.on(t,n)}catch{}this.#e.emit=(t,...n)=>this.#f(t,...n),this.#e.reallyExit=t=>this.#r(t)}}unload(){this.#i&&(this.#i=!1,Ut.forEach(t=>{let n=this.#t[t];if(!n)throw new Error("Listener not defined for signal: "+t);try{this.#e.removeListener(t,n)}catch{}}),this.#e.emit=this.#o,this.#e.reallyExit=this.#d,this.#n.count-=1)}#r(t){return ko(this.#e)?(this.#e.exitCode=t||0,this.#n.emit("exit",this.#e.exitCode,null),this.#d.call(this.#e,this.#e.exitCode)):0}#f(t,...n){let r=this.#o;if(t==="exit"&&ko(this.#e)){typeof n[0]=="number"&&(this.#e.exitCode=n[0]);let o=r.call(this.#e,t,...n);return this.#n.emit("exit",this.#e.exitCode,null),o}else return r.call(this.#e,t,...n)}},hs=globalThis.process,{onExit:Hu,load:o2,unload:i2}=Ub(ko(hs)?new ms(hs):new fs)});var kr,Zu,Vb,Ku,Yu=k(()=>{"use strict";kr=D(require("process"),1);Gu();Ju();Zu=kr.default.stderr.isTTY?kr.default.stderr:kr.default.stdout.isTTY?kr.default.stdout:void 0,Vb=Zu?Vu(()=>{Hu(()=>{Zu.write("\x1B[?25h")},{alwaysLast:!0})}):()=>{},Ku=Vb});var gs,Co,En,ys,Xu=k(()=>{"use strict";gs=D(require("process"),1);Yu();Co=!1,En={};En.show=(e=gs.default.stderr)=>{e.isTTY&&(Co=!1,e.write("\x1B[?25h"))};En.hide=(e=gs.default.stderr)=>{e.isTTY&&(Ku(),Co=!0,e.write("\x1B[?25l"))};En.toggle=(e,t)=>{e!==void 0&&(Co=e),Co?En.show(t):En.hide(t)};ys=En});var Qu=rs((d2,Gb)=>{Gb.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]},dwarfFortress:{interval:80,frames:[" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A \u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A \xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A \xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\u2593\xA3 "," \u263A\u2593\xA3 "," \u263A\u2592\xA3 "," \u263A\u2592\xA3 "," \u263A\u2591\xA3 "," \u263A\u2591\xA3 "," \u263A \xA3 "," \u263A\xA3 "," \u263A\xA3 "," \u263A\u2593 "," \u263A\u2593 "," \u263A\u2592 "," \u263A\u2592 "," \u263A\u2591 "," \u263A\u2591 "," \u263A "," \u263A &"," \u263A \u263C&"," \u263A \u263C &"," \u263A\u263C &"," \u263A\u263C & "," \u203C & "," \u263A & "," \u203C & "," \u263A & "," \u203C & "," \u263A & ","\u203C & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xA3 "," & \u2591\xA3 "," & \u2592\xA3 "," & \u2593\xA3 "," & \xA3\xA3 "," & \u2591\xA3\xA3 "," & \u2592\xA3\xA3 ","& \u2593\xA3\xA3 ","& \xA3\xA3\xA3 "," \u2591\xA3\xA3\xA3 "," \u2592\xA3\xA3\xA3 "," \u2593\xA3\xA3\xA3 "," \u2588\xA3\xA3\xA3 "," \u2591\u2588\xA3\xA3\xA3 "," \u2592\u2588\xA3\xA3\xA3 "," \u2593\u2588\xA3\xA3\xA3 "," \u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "]}}});var bs=rs((f2,tc)=>{"use strict";var Eo=Object.assign({},Qu()),ec=Object.keys(Eo);Object.defineProperty(Eo,"random",{get(){let e=Math.floor(Math.random()*ec.length),t=ec[e];return Eo[t]}});tc.exports=Eo});function Ds(){return Se.default.platform!=="win32"?Se.default.env.TERM!=="linux":!!Se.default.env.CI||!!Se.default.env.WT_SESSION||!!Se.default.env.TERMINUS_SUBLIME||Se.default.env.ConEmuTask==="{cmd::Cmder}"||Se.default.env.TERM_PROGRAM==="Terminus-Sublime"||Se.default.env.TERM_PROGRAM==="vscode"||Se.default.env.TERM==="xterm-256color"||Se.default.env.TERM==="alacritty"||Se.default.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var Se,nc=k(()=>{"use strict";Se=D(require("process"),1)});var qb,Hb,Jb,xr,rc=k(()=>{"use strict";Ke();nc();qb={info:z.blue("\u2139"),success:z.green("\u2714"),warning:z.yellow("\u26A0"),error:z.red("\u2716")},Hb={info:z.blue("i"),success:z.green("\u221A"),warning:z.yellow("\u203C"),error:z.red("\xD7")},Jb=Ds()?qb:Hb,xr=Jb});function ws({onlyFirst:e=!1}={}){let o="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(o,e?void 0:"g")}var oc=k(()=>{"use strict"});function Cr(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return!e.includes("\x1B")&&!e.includes("\x9B")?e:e.replace(Zb,"")}var Zb,vs=k(()=>{"use strict";oc();Zb=ws()});function ic(e){return e===161||e===164||e===167||e===168||e===170||e===173||e===174||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||e===198||e===208||e===215||e===216||e>=222&&e<=225||e===230||e>=232&&e<=234||e===236||e===237||e===240||e===242||e===243||e>=247&&e<=250||e===252||e===254||e===257||e===273||e===275||e===283||e===294||e===295||e===299||e>=305&&e<=307||e===312||e>=319&&e<=322||e===324||e>=328&&e<=331||e===333||e===338||e===339||e===358||e===359||e===363||e===462||e===464||e===466||e===468||e===470||e===472||e===474||e===476||e===593||e===609||e===708||e===711||e>=713&&e<=715||e===717||e===720||e>=728&&e<=731||e===733||e===735||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||e===1025||e>=1040&&e<=1103||e===1105||e===8208||e>=8211&&e<=8214||e===8216||e===8217||e===8220||e===8221||e>=8224&&e<=8226||e>=8228&&e<=8231||e===8240||e===8242||e===8243||e===8245||e===8251||e===8254||e===8308||e===8319||e>=8321&&e<=8324||e===8364||e===8451||e===8453||e===8457||e===8467||e===8470||e===8481||e===8482||e===8486||e===8491||e===8531||e===8532||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||e===8585||e>=8592&&e<=8601||e===8632||e===8633||e===8658||e===8660||e===8679||e===8704||e===8706||e===8707||e===8711||e===8712||e===8715||e===8719||e===8721||e===8725||e===8730||e>=8733&&e<=8736||e===8739||e===8741||e>=8743&&e<=8748||e===8750||e>=8756&&e<=8759||e===8764||e===8765||e===8776||e===8780||e===8786||e===8800||e===8801||e>=8804&&e<=8807||e===8810||e===8811||e===8814||e===8815||e===8834||e===8835||e===8838||e===8839||e===8853||e===8857||e===8869||e===8895||e===8978||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||e===9632||e===9633||e>=9635&&e<=9641||e===9650||e===9651||e===9654||e===9655||e===9660||e===9661||e===9664||e===9665||e>=9670&&e<=9672||e===9675||e>=9678&&e<=9681||e>=9698&&e<=9701||e===9711||e===9733||e===9734||e===9737||e===9742||e===9743||e===9756||e===9758||e===9792||e===9794||e===9824||e===9825||e>=9827&&e<=9829||e>=9831&&e<=9834||e===9836||e===9837||e===9839||e===9886||e===9887||e===9919||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||e===9955||e===9960||e===9961||e>=9963&&e<=9969||e===9972||e>=9974&&e<=9977||e===9979||e===9980||e===9982||e===9983||e===10045||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||e===65533||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||e===127375||e===127376||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109}function sc(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function ac(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var lc=k(()=>{"use strict"});function Kb(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function uc(e,{ambiguousAsWide:t=!1}={}){return Kb(e),sc(e)||ac(e)||t&&ic(e)?2:1}var cc=k(()=>{"use strict";lc()});var pc,dc=k(()=>{"use strict";pc=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g});function ks(e,t={}){if(typeof e!="string"||e.length===0)return 0;let{ambiguousIsNarrow:n=!0,countAnsiEscapeCodes:r=!1}=t;if(r||(e=Cr(e)),e.length===0)return 0;let o=0,i={ambiguousAsWide:!n};for(let{segment:s}of Yb.segment(e)){let a=s.codePointAt(0);if(!(a<=31||a>=127&&a<=159)&&!(a>=8203&&a<=8207||a===65279)&&!(a>=768&&a<=879||a>=6832&&a<=6911||a>=7616&&a<=7679||a>=8400&&a<=8447||a>=65056&&a<=65071)&&!(a>=55296&&a<=57343)&&!(a>=65024&&a<=65039)&&!Xb.test(s)){if(pc().test(s)){o+=2;continue}o+=uc(a,i)}}return o}var Yb,Xb,fc=k(()=>{"use strict";vs();cc();dc();Yb=new Intl.Segmenter,Xb=new RegExp("^\\p{Default_Ignorable_Code_Point}$","u")});function xs({stream:e=process.stdout}={}){return!!(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}var mc=k(()=>{"use strict"});function Es(){let{env:e}=Cs.default,{TERM:t,TERM_PROGRAM:n}=e;return Cs.default.platform!=="win32"?t!=="linux":!!e.WT_SESSION||!!e.TERMINUS_SUBLIME||e.ConEmuTask==="{cmd::Cmder}"||n==="Terminus-Sublime"||n==="vscode"||t==="xterm-256color"||t==="alacritty"||t==="rxvt-unicode"||t==="rxvt-unicode-256color"||e.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var Cs,hc=k(()=>{"use strict";Cs=D(require("process"),1)});var $e,Qb,Fs,eD,_s,gc=k(()=>{"use strict";$e=D(require("process"),1),Qb=3,Fs=class{#s=0;start(){this.#s++,this.#s===1&&this.#n()}stop(){if(this.#s<=0)throw new Error("`stop` called more times than `start`");this.#s--,this.#s===0&&this.#e()}#n(){$e.default.platform==="win32"||!$e.default.stdin.isTTY||($e.default.stdin.setRawMode(!0),$e.default.stdin.on("data",this.#o),$e.default.stdin.resume())}#e(){$e.default.stdin.isTTY&&($e.default.stdin.off("data",this.#o),$e.default.stdin.pause(),$e.default.stdin.setRawMode(!1))}#o(t){t[0]===Qb&&$e.default.emit("SIGINT")}},eD=new Fs,_s=eD});function Fn(e){return new Ss(e)}var Er,Fr,tD,Ss,Ts=k(()=>{"use strict";Er=D(require("process"),1);Ke();Xu();Fr=D(bs(),1);rc();vs();fc();mc();hc();gc();tD=D(bs(),1),Ss=class{#s=0;#n=!1;#e=0;#o=-1;#d=0;#t;#i;#r;#f;#h;#u;#c;#p;#g;#a;#l;color;constructor(t){typeof t=="string"&&(t={text:t}),this.#t={color:"cyan",stream:Er.default.stderr,discardStdin:!0,hideCursor:!0,...t},this.color=this.#t.color,this.spinner=this.#t.spinner,this.#h=this.#t.interval,this.#r=this.#t.stream,this.#u=typeof this.#t.isEnabled=="boolean"?this.#t.isEnabled:xs({stream:this.#r}),this.#c=typeof this.#t.isSilent=="boolean"?this.#t.isSilent:!1,this.text=this.#t.text,this.prefixText=this.#t.prefixText,this.suffixText=this.#t.suffixText,this.indent=this.#t.indent,Er.default.env.NODE_ENV==="test"&&(this._stream=this.#r,this._isEnabled=this.#u,Object.defineProperty(this,"_linesToClear",{get(){return this.#s},set(n){this.#s=n}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#o}}),Object.defineProperty(this,"_lineCount",{get(){return this.#e}}))}get indent(){return this.#p}set indent(t=0){if(!(t>=0&&Number.isInteger(t)))throw new Error("The `indent` option must be an integer from 0 and up");this.#p=t,this.#m()}get interval(){return this.#h??this.#i.interval??100}get spinner(){return this.#i}set spinner(t){if(this.#o=-1,this.#h=void 0,typeof t=="object"){if(t.frames===void 0)throw new Error("The given spinner must have a `frames` property");this.#i=t}else if(!Es())this.#i=Fr.default.line;else if(t===void 0)this.#i=Fr.default.dots;else if(t!=="default"&&Fr.default[t])this.#i=Fr.default[t];else throw new Error(`There is no built-in spinner named '${t}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)}get text(){return this.#g}set text(t=""){this.#g=t,this.#m()}get prefixText(){return this.#a}set prefixText(t=""){this.#a=t,this.#m()}get suffixText(){return this.#l}set suffixText(t=""){this.#l=t,this.#m()}get isSpinning(){return this.#f!==void 0}#y(t=this.#a,n=" "){return typeof t=="string"&&t!==""?t+n:typeof t=="function"?t()+n:""}#b(t=this.#l,n=" "){return typeof t=="string"&&t!==""?n+t:typeof t=="function"?n+t():""}#m(){let t=this.#r.columns??80,n=this.#y(this.#a,"-"),r=this.#b(this.#l,"-"),o=" ".repeat(this.#p)+n+"--"+this.#g+"--"+r;this.#e=0;for(let i of Cr(o).split(`
8
- `))this.#e+=Math.max(1,Math.ceil(ks(i,{countAnsiEscapeCodes:!0})/t))}get isEnabled(){return this.#u&&!this.#c}set isEnabled(t){if(typeof t!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this.#u=t}get isSilent(){return this.#c}set isSilent(t){if(typeof t!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this.#c=t}frame(){let t=Date.now();(this.#o===-1||t-this.#d>=this.interval)&&(this.#o=++this.#o%this.#i.frames.length,this.#d=t);let{frames:n}=this.#i,r=n[this.#o];this.color&&(r=z[this.color](r));let o=typeof this.#a=="string"&&this.#a!==""?this.#a+" ":"",i=typeof this.text=="string"?" "+this.text:"",s=typeof this.#l=="string"&&this.#l!==""?" "+this.#l:"";return o+r+i+s}clear(){if(!this.#u||!this.#r.isTTY)return this;this.#r.cursorTo(0);for(let t=0;t<this.#s;t++)t>0&&this.#r.moveCursor(0,-1),this.#r.clearLine(1);return(this.#p||this.lastIndent!==this.#p)&&this.#r.cursorTo(this.#p),this.lastIndent=this.#p,this.#s=0,this}render(){return this.#c?this:(this.clear(),this.#r.write(this.frame()),this.#s=this.#e,this)}start(t){return t&&(this.text=t),this.#c?this:this.#u?this.isSpinning?this:(this.#t.hideCursor&&ys.hide(this.#r),this.#t.discardStdin&&Er.default.stdin.isTTY&&(this.#n=!0,_s.start()),this.render(),this.#f=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.#r.write(`- ${this.text}
9
- `),this)}stop(){return this.#u?(clearInterval(this.#f),this.#f=void 0,this.#o=0,this.clear(),this.#t.hideCursor&&ys.show(this.#r),this.#t.discardStdin&&Er.default.stdin.isTTY&&this.#n&&(_s.stop(),this.#n=!1),this):this}succeed(t){return this.stopAndPersist({symbol:xr.success,text:t})}fail(t){return this.stopAndPersist({symbol:xr.error,text:t})}warn(t){return this.stopAndPersist({symbol:xr.warning,text:t})}info(t){return this.stopAndPersist({symbol:xr.info,text:t})}stopAndPersist(t={}){if(this.#c)return this;let n=t.prefixText??this.#a,r=this.#y(n," "),o=t.symbol??" ",i=t.text??this.text,a=typeof i=="string"?(o?" ":"")+i:"",u=t.suffixText??this.#l,l=this.#b(u," "),c=r+o+a+l+`
10
- `;return this.stop(),this.#r.write(c),this}}});function Ps(e,{suffix:t="nodejs"}={}){if(typeof e!="string")throw new TypeError(`Expected a string, got ${typeof e}`);return t&&(e+=`-${t}`),Fo.default.platform==="darwin"?nD(e):Fo.default.platform==="win32"?rD(e):oD(e)}var ee,As,Fo,kt,Os,_n,nD,rD,oD,yc=k(()=>{"use strict";ee=D(require("path"),1),As=D(require("os"),1),Fo=D(require("process"),1),kt=As.default.homedir(),Os=As.default.tmpdir(),{env:_n}=Fo.default,nD=e=>{let t=ee.default.join(kt,"Library");return{data:ee.default.join(t,"Application Support",e),config:ee.default.join(t,"Preferences",e),cache:ee.default.join(t,"Caches",e),log:ee.default.join(t,"Logs",e),temp:ee.default.join(Os,e)}},rD=e=>{let t=_n.APPDATA||ee.default.join(kt,"AppData","Roaming"),n=_n.LOCALAPPDATA||ee.default.join(kt,"AppData","Local");return{data:ee.default.join(n,e,"Data"),config:ee.default.join(t,e,"Config"),cache:ee.default.join(n,e,"Cache"),log:ee.default.join(n,e,"Log"),temp:ee.default.join(Os,e)}},oD=e=>{let t=ee.default.basename(kt);return{data:ee.default.join(_n.XDG_DATA_HOME||ee.default.join(kt,".local","share"),e),config:ee.default.join(_n.XDG_CONFIG_HOME||ee.default.join(kt,".config"),e),cache:ee.default.join(_n.XDG_CACHE_HOME||ee.default.join(kt,".cache"),e),log:ee.default.join(_n.XDG_STATE_HOME||ee.default.join(kt,".local","state"),e),temp:ee.default.join(Os,t,e)}}});function _o(){return/[<>:"/\\|?*\u0000-\u001F]/g}function bc(){return/^(con|prn|aux|nul|com\d|lpt\d)$/i}var Dc=k(()=>{"use strict"});function _r(e,t={}){let n=/[\u0000-\u001F\u0080-\u009F]/g,r=/([<>:"/\\|?*\u0000-\u001F]){2,}/g;if(typeof e!="string")throw new TypeError("Expected a string");let o=t.replacement===void 0?"!":t.replacement;if(_o().test(o)&&n.test(o))throw new Error("Replacement string cannot contain reserved filename characters");o.length>0&&(e=e.replace(r,"$1")),e=e.normalize("NFD"),e=e.replace(sD,o),e=e.replace(_o(),o),e=e.replace(n,o),e=e.replace(aD,""),o.length>0&&(!(e[0]===".")&&e[0]==="."&&(e=o+e),e[e.length-1]==="."&&(e+=o)),e=bc().test(e)?e+o:e;let i=typeof t.maxLength=="number"?t.maxLength:iD;if(e.length>i){let s=e.lastIndexOf(".");if(s===-1)e=e.slice(0,i);else{let a=e.slice(0,s),u=e.slice(s);e=a.slice(0,Math.max(1,i-u.length))+u}}return e}var iD,sD,aD,Is=k(()=>{"use strict";Dc();iD=100,sD=/^\.+(\\|\/)|^\.+$/,aD=/\.+$/});var lD,wc=k(()=>{"use strict";lD=D(require("path"),1);Is()});var vc=k(()=>{"use strict";Is();wc()});var So,Bs=k(()=>{"use strict";So="webflow.json"});var Vt,Rs=k(()=>{"use strict";Vt=class extends Error{constructor(t){super(`Manifest config for key "${t}" not found`),this.name="ManifestConfigKeyNotFoundError"}}});function xc(e){js=e}function te(){return js}function Ye(){return!js}function Cc(e){kc=e}function Ec(){return kc}var js,kc,ke=k(()=>{"use strict";js=!1});function Gt(){let e=Ec();if(e){if(e.endsWith(".json"))return{path:e,isUserDefined:!0};try{if((0,Fc.statSync)(e)?.isDirectory())return{path:(0,_c.join)(e,So),isUserDefined:!0}}catch{if(e.endsWith(".json"))return{path:e,isUserDefined:!0}}throw new Error(`Manifest path must be either a directory or a .json file. Got: ${e}`)}return{path:`./${So}`,isUserDefined:!1}}var Fc,_c,Ls=k(()=>{"use strict";Fc=require("fs"),_c=require("path");Bs();ke()});var Sc,uD,cD,Ns,Tc=k(()=>{"use strict";Sc=D(require("ajv")),uD=new Sc.default,cD={type:"object",properties:{library:{type:"object",properties:{name:{type:"string",minLength:1},id:{type:"string",minLength:1},components:{type:"array",items:{type:"string"},minItems:1},renderer:{anyOf:[{type:"object",properties:{client:{type:"string",minLength:1},server:{type:"string",minLength:1}}},{type:"string",minLength:1}]},globals:{type:"string",minLength:1}},required:[]},devlink:{type:"object",properties:{rootDir:{type:"string",minLength:1},cssModules:{type:"boolean"},allowTelemetry:{type:"boolean"},overwriteModule:{type:"boolean"},skipTagSelectors:{type:"boolean"},envVariables:{type:"object",additionalProperties:{type:"string"}},components:{oneOf:[{type:"string"},{type:"array",items:{type:"string"}}]},fileExtensions:{type:"object",properties:{js:{type:"string"},css:{type:"string"}}},relativeHrefRoot:{oneOf:[{type:"boolean"},{type:"string"}]}},required:["rootDir"]},export:{type:"object",properties:{rootDir:{type:"string",minLength:1},components:{type:"string"},componentGroups:{type:"string"},ts:{type:"boolean"},cssModules:{type:"boolean"},camelCaseVariantNames:{type:"boolean"},relativeHrefRoot:{oneOf:[{type:"boolean",const:!1},{type:"string"}]},treeShake:{type:"boolean"}},required:[]}}},Ns=uD.compile(cD)});function Ac(e){return e instanceof Error?e:new Error("Unknown error")}function oe(){let{path:e}=Gt();if(!(0,To.existsSync)(e))return{manifest:{},manifestPath:e};let t;try{t=(0,To.readFileSync)(e,"utf8")}catch(o){throw new Error(`Failed to read manifest file: ${Ac(o).message}`)}if(t.trim()==="")return{manifest:{},manifestPath:e};let r;try{r=JSON.parse(t)}catch(o){throw new Error(`Invalid JSON in manifest file: ${Ac(o).message}`)}if(!Ns(r)){let o=Ns.errors?.map(i=>`${i.instancePath} ${i.message}`).join(", ")||"Unknown error";throw new Error(`Invalid manifest: ${o}.`)}return{manifest:r,manifestPath:e}}var To,Ms=k(()=>{"use strict";To=require("fs");Ls();Tc()});function Sr(e,t){let n=e[t];if(!n)throw new Vt(t);return n}var Oc=k(()=>{"use strict";Rs()});function ae(e){let t=oe(),n=t.manifest,r=t.manifestPath,o={...n};for(let i in e){let s=i,a=e[s];if(a!==void 0)if(typeof a=="string"||typeof a=="number"||typeof a=="boolean"||a===null)o[s]=a;else{let u=o[s];o[s]={...typeof u=="object"&&u!==null?u:{},...a}}}(0,Pc.writeFileSync)(r,JSON.stringify(o,null,2),"utf-8")}var Pc,$s=k(()=>{"use strict";Pc=require("fs");Ms()});var Te=k(()=>{"use strict";Bs();Rs();Ms();Ls();Oc();$s()});var Ao=rs((DS,pD)=>{pD.exports={name:"@webflow/webflow-cli",version:"1.14.0-next.1",license:"MIT",bin:{webflow:"./dist/index.js"},scripts:{build:"tsup",dev:"tsup",lint:"eslint .",test:"jest --ci","test:unit":"jest --ci --ignoreProjects e2e","test:local":"jest","test:e2e-cache-clear":"bash scripts/clear-e2e-cache.sh"},files:["CHANGELOG.md","dist/**/*"],publishConfig:{access:"public"},dependencies:{"@babel/preset-env":"^7.26.9","@babel/preset-react":"^7.26.3","@babel/preset-typescript":"^7.27.0","@dotenvx/dotenvx":"^1.44.1","@inquirer/prompts":"^7.9.0","@module-federation/enhanced":"0.20.0","@rspack/core":"^1.7.8","@webflow/data-types":"*",ajv:"^8.17.1",archiver:"^5.3.1","babel-loader":"^10.0.0",commander:"^10.0.0",cosmiconfig:"^8.2.0","css-loader":"^7.1.2","css-tree":"^2.3.1",dotenv:"^16.0.3","env-paths":"^3.0.0","fast-glob":"^3.3.3",filenamify:"^6.0.0","fork-ts-checker-webpack-plugin":"9.1.0","form-data":"4.0.4","fs-extra":"^11.3.0","jsonc-parser":"^3.2.0",md5:"^2.2.1",memfs:"4.17.0","mime-types":"^2.1.35","mini-css-extract-plugin":"^2.9.2","node-fetch":"^2.6.7",open:"^8.4.2",ora:"^8.2.0",postcss:"^8.5.6","postcss-loader":"^8.1.1","postcss-selector-parser":"^7.1.0",prettier:"^2.7.1",semver:"^7.7.2","serve-handler":"^6.1.5","source-map-support":"^0.5.21",tar:"^7.4.3","ts-checker-rspack-plugin":"^1.0.0","tsconfig-paths":"^4.2.0","tsconfig-paths-webpack-plugin":"^4.2.0",unionfs:"^4.5.4","webflow-api":"3.2.2",webpack:"^5.99.7","webpack-merge":"^6.0.1","webpack-node-externals":"^3.0.0",zod:"^3.22.4"},devDependencies:{"@types/archiver":"^5.3.2","@types/css-tree":"^2.3.1","@types/express":"^4.17.13","@types/fs-extra":"^11.0.4","@types/jest":"^29.2.3","@types/md5":"^2.3.2","@types/mime-types":"^2.1.4","@types/nock":"^8.0.33","@types/node":"^18.16.0","@types/node-fetch":"2.6.13","@types/prettier":"^2.7.1","@types/serve-handler":"^6.1.1","@types/source-map":"^0.5.2","@types/webpack-node-externals":"^3.0.4",astro:"^5.17.2","eslint-config-custom":"*",express:"^4.18.1",jest:"^29.3.1",nock:"13.3.1",tar:"^7.4.3","ts-jest":"^29.0.3","ts-node":"^10.9.1",tsconfig:"*",tsup:"^8.4.0",typescript:"^4.9.3"},engines:{node:">=18.16.0"}}});function at(){try{return Ao().version}catch{return"unknown"}}function Xe(e=""){if(!e)return"";let t=e;t=t.replace(/\/.*?\/webflow-cli/gi,"/REDACTED_PII/webflow-cli"),t=t.replace(/\/.*?\/node_modules/gi,"/REDACTED_PII/node_modules");let n=Tr.default.homedir();if(n){let o=new RegExp(n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi");t=t.replace(o,"~/REDACTED_PII")}let r=Tr.default.userInfo().username;if(r){let o=new RegExp(`/Users/${r}`,"gi");t=t.replace(o,"/Users/REDACTED_PII")}return t=t.replace(/\/Users\/[^\/\s]+/gi,"/Users/REDACTED_PII"),t=t.replace(/C:\\Users\\[^\\]+/gi,"C:\\Users\\REDACTED_PII"),t=t.replace(/[a-zA-Z0-9]{32,}/g,"[REDACTED_TOKEN]"),t=t.replace(/Bearer\s+[^\s]+/gi,"Bearer [REDACTED_TOKEN]"),t=t.replace(/token[=:]\s*[^\s]+/gi,"token=[REDACTED_TOKEN]"),t=t.replace(/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,"[REDACTED_EMAIL]"),t=t.replace(/\b(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b/g,"[REDACTED_IP]"),t}function Ws(e){if(e.stack)return Xe(e.stack)}function xt(e){let t=["password","token","secret","key","auth","bearer","authorization","apikey","api_key","access_token","refresh_token","client_secret","private_key"],n={};for(let[r,o]of Object.entries(e)){let i=r.toLowerCase();t.some(s=>i.includes(s))?n[r]="[REDACTED]":typeof o=="string"?n[r]=Xe(o):typeof o=="object"&&o!==null&&!Array.isArray(o)?n[r]=xt(o):Array.isArray(o)?n[r]=o.map(s=>typeof s=="object"&&s!==null?xt(s):typeof s=="string"?Xe(s):s):n[r]=o}return n}function Ic(){return{platform:process.platform,nodeVersion:process.version,arch:process.arch,os:`${Tr.default.type()} ${Tr.default.release()}`}}function zs(){let e=Date.now().toString(36),t=Math.random().toString(36).substring(2,8);return`${e}-${t}`}var Tr,Ar=k(()=>{"use strict";Tr=D(require("os"))});var le,We,qt,Sn,Us,kS,lt=k(()=>{"use strict";Ke();le=z.green("\u2714"),We=z.red("\u2716"),qt=z.cyan("\u2139"),Sn=z.green("\u279C"),Us=z.red("\u279C"),kS=z.yellow("\u26A0")});var Ct,Vs=k(()=>{"use strict";Ke();Te();Ar();G();lt();Ct=class e{static instance;cache=void 0;static isDoNotTrackEnabled(){let t=process.env.DO_NOT_TRACK;return t==="1"||t?.toLowerCase()==="true"}static getInstance(){return e.instance||(e.instance=new e),e.instance}async getPreference(){if(e.isDoNotTrackEnabled())return!1;if(this.cache!==void 0)return this.cache;try{let{manifest:t}=await oe(),n=t?.telemetry?.global?.allowTelemetry;return this.cache=n,n}catch{return}}async setPreference(t){this.cache=t,await this.setGlobalPreference(t)}async promptForConsent(t){return e.isDoNotTrackEnabled()?(d.info(`${qt} Telemetry is disabled because the DO_NOT_TRACK environment variable is set.`),!1):(d.info(`${qt} Telemetry is enabled. Usage data and error reports help us improve Webflow CLI.`),d.info(`${qt} To opt out, run: ${z.blue("webflow auth telemetry --disable")}`),await this.setPreference(!0),!0)}clearCache(){this.cache=void 0}async getGlobalPreference(){return this.getPreference()}async setGlobalPreference(t){let n={telemetry:{global:{allowTelemetry:t,lastPrompted:Date.now(),version:at()}}};await ae(n),this.cache=t}async hasGlobalPreference(){return await this.getPreference()!==void 0}async getTelemetryStatus(){let t=await this.getPreference();return t!==void 0?{enabled:t,source:"global",hasPreference:!0}:{enabled:!1,source:"none",hasPreference:!1}}setCacheValue(t,n){this.cache=n}}});async function ze(e,t){let r={"User-Agent":`webflow-cli@${at()}`};return(0,Bc.default)(e,{...t,headers:{...t?.headers,...r}})}var Bc,Tn=k(()=>{"use strict";Bc=D(require("node-fetch"));ut()});var Rc,jc=k(()=>{"use strict";Rc=e=>{try{let t=new URL(e);return!(!["http:","https:"].includes(t.protocol)||e.includes("?")||e.includes("#")||t.search||t.hash)}catch{return!1}}});var Gs,H,ct,An,Or,qs,Pr,Ir,On,pe=k(()=>{"use strict";jc();Gs=(e,t)=>(Rc(t)||(console.error(`Error: Invalid ${e} environment variable. Only valid plain HTTP/HTTPS URLs without query parameters and anchors is allowed.`),process.exit(1)),t),H=process.env.WEBFLOW_API_HOST?Gs("WEBFLOW_API_HOST",process.env.WEBFLOW_API_HOST):"https://api.webflow.com",ct=process.env.WEBFLOW_CDN_API_HOST?Gs("WEBFLOW_CDN_API_HOST",process.env.WEBFLOW_CDN_API_HOST):"https://api-cdn.webflow.com",An=process.env.WEBFLOW_HOST?Gs("WEBFLOW_HOST",process.env.WEBFLOW_HOST):"https://webflow.com",Or="wf-manifest.json",qs="mf-manifest.json",Pr="@webflow_renderer",Ir="ssr-bundle.tar",On="index.js"});var he,Hs=k(()=>{"use strict";Vs();Ar();G();Tn();pe();he=class e{config;consentManager;sessionId;platformInfo;constructor(t){this.config=t,this.consentManager=Ct.getInstance(),this.sessionId=zs(),this.platformInfo=Ic()}async sendEvent(t){try{if(!await this.isEnabled())return;let n=this.enrichEvent(t),r=this.sanitizeEvent(n);await this.transmitEvent(r)}catch(n){d.debug(`Failed to send telemetry event: ${n}`)}}async sendError(t,n,r){await this.sendEvent({eventType:"error",success:!1,name:t.name,message:t.message,cause:t.cause,stack:Ws(t),context:n,metadata:r?xt(r):void 0})}async sendUsage(t,n){let{duration:r,...o}=n??{};await this.sendEvent({eventType:"usage",success:!0,feature:t,duration:typeof r=="number"?r:void 0,data:Object.keys(o).length>0?xt(o):void 0})}async sendPerformance(t,n,r){await this.sendEvent({eventType:"performance",operation:t,duration:n,metrics:r})}async isEnabled(){return await this.consentManager.getPreference()!==!1}async isGloballyEnabled(){return await this.consentManager.getGlobalPreference()!==!1}async updatePreferences(t){await this.consentManager.setPreference(t)}static async promptForConsentIfNeeded(t){let n=Ct.getInstance(),r=await n.getPreference();return r!==void 0?r:await n.promptForConsent(t)}enrichEvent(t){return{...{eventType:t.eventType||"usage",timestamp:Date.now(),sessionId:this.sessionId,platform:this.platformInfo.platform,nodeVersion:this.platformInfo.nodeVersion,cliVersion:at(),command:process.argv.slice(2).join(" ")||void 0,metadata:{...t.metadata,commandType:this.config.commandType,siteId:this.config.siteId,projectId:this.config.projectId,os:this.platformInfo.os,arch:this.platformInfo.arch}},...t}}sanitizeEvent(t){let n=JSON.parse(JSON.stringify(t));return n.message&&(n.message=Xe(n.message)),n.stack&&(n.stack=Xe(n.stack)),n.context&&(n.context=Xe(n.context)),n.metadata&&(n.metadata=xt(n.metadata)),n.data&&(n.data=xt(n.data)),n}async transmitEvent(t){let n=this.getEndpoint(),r=process.env.WEBFLOW_TELEMETRY_DEBUG==="true";if(r){console.log(`\u{1F4CA} [Telemetry] Sending to: ${n}`);let i={...t};i.metadata&&(delete i.metadata.authToken,delete i.metadata.apiToken),console.log("\u{1F4CA} [Telemetry] Payload:",JSON.stringify(i,null,2))}let o=await ze(n,{method:"POST",headers:{Authorization:`Bearer ${this.config.authToken}`,"Content-Type":"application/json"},body:JSON.stringify(t),timeout:5e3});if(o.ok)r&&console.log(`\u{1F4CA} [Telemetry] Request successful: ${o.status}`);else throw r&&console.error(`\u{1F4CA} [Telemetry] Request failed: ${o.status} ${o.statusText}`),new Error(`Telemetry request failed: ${o.status} ${o.statusText}`)}getEndpoint(){let{host:t,commandType:n}=this.config;return`${t}/webflow-cli/${n}/telemetry`}static forDevlinkSync(t){return new e({host:t.host||H,authToken:t.authToken,siteId:t.siteId,commandType:"devlink"})}static forExport(t){return new e({host:t.host||H,authToken:t.authToken,siteId:t.siteId,commandType:"export"})}static forCloud(t){return new e({host:t.host||H,authToken:t.authToken,siteId:t.siteId,projectId:t.projectId,commandType:"cloud"})}static forExtension(t){return new e({host:t.host||H,authToken:t.authToken,siteId:t.siteId,commandType:"extension"})}static forCodeLibraries(t){return new e({host:t.host||H,authToken:t.authToken,commandType:"library"})}}});var Lc=k(()=>{"use strict"});function Nc(e){return async(t,n,r)=>{let o=Date.now(),i=process.memoryUsage().heapUsed;try{let s=await n(),a=Date.now()-o,u=process.memoryUsage().heapUsed;return await e.sendPerformance(t,a,{memoryDelta:u-i,...r}),s}catch(s){let a=Date.now()-o;throw await e.sendPerformance(t,a,{failed:1,...r}),s}}}var ut=k(()=>{"use strict";Hs();Vs();Lc();Ar();Ar()});var Zs,Js,dD,pt,Ks=k(()=>{"use strict";Zs=Symbol("webflow-cli-warn"),Js=class{warnings=[];originalConsoleWarn=null;isActive=!1;parseSource(t){let n=t.split(`
11
- `);for(let r=2;r<n.length;r++){let o=n[r],i=o.match(/at .+? \((.+?):\d+:\d+\)/)||o.match(/at (.+?):\d+:\d+/);if(i){let s=i[1];if(s.includes("node_modules")){let a=s.match(/node_modules\/(@?[^/]+(?:\/[^/]+)?)/);return a?`External: ${a[1]}`:"External Dependencies"}else if(s.includes("webflow-cli"))return s.includes("/metadata/")?"Metadata Collection":s.includes("/bundler/")?"Bundling":s.includes("/commands/")?"CLI Commands":"Webflow CLI"}}return"General"}start(){this.isActive||(this.warnings=[],this.originalConsoleWarn=console.warn,this.isActive=!0,console.warn=(...t)=>{if(t.length>1&&t[t.length-1]===Zs){let i=t.slice(0,-1);this.originalConsoleWarn&&this.originalConsoleWarn(...i);return}let n=t.map(i=>{if(typeof i=="string")return i;if(i instanceof Error)return i.message;try{return String(i)}catch{return"[Object]"}}).join(" "),r=new Error().stack||"",o=this.parseSource(r);this.warnings.push({message:n,timestamp:Date.now(),source:o,stackTrace:r})})}stop(){this.isActive&&(this.originalConsoleWarn&&(console.warn=this.originalConsoleWarn,this.originalConsoleWarn=null),this.isActive=!1)}displayGrouped(){if(this.warnings.length===0)return;console.log(`
5
+ `,o)}while(r!==-1);return i+=e.slice(o),i}var cu=E(()=>{"use strict"});function ur(e){return Wy(e)}var pu,du,zi,gn,lr,fu,yn,zy,Wy,Wi,Uy,Vy,Ui,to,Gy,qy,W_,W,Ge=E(()=>{"use strict";ru();au();cu();({stdout:pu,stderr:du}=su),zi=Symbol("GENERATOR"),gn=Symbol("STYLER"),lr=Symbol("IS_EMPTY"),fu=["ansi","ansi","ansi256","ansi16m"],yn=Object.create(null),zy=(e,t={})=>{if(t.level&&!(Number.isInteger(t.level)&&t.level>=0&&t.level<=3))throw new Error("The `level` option should be an integer from 0 to 3");let n=pu?pu.level:0;e.level=t.level===void 0?n:t.level},Wy=e=>{let t=(...n)=>n.join(" ");return zy(t,e),Object.setPrototypeOf(t,ur.prototype),t};Object.setPrototypeOf(ur.prototype,Function.prototype);for(let[e,t]of Object.entries(Re))yn[e]={get(){let n=to(this,Ui(t.open,t.close,this[gn]),this[lr]);return Object.defineProperty(this,e,{value:n}),n}};yn.visible={get(){let e=to(this,this[gn],!0);return Object.defineProperty(this,"visible",{value:e}),e}};Wi=(e,t,n,...r)=>e==="rgb"?t==="ansi16m"?Re[n].ansi16m(...r):t==="ansi256"?Re[n].ansi256(Re.rgbToAnsi256(...r)):Re[n].ansi(Re.rgbToAnsi(...r)):e==="hex"?Wi("rgb",t,n,...Re.hexToRgb(...r)):Re[n][e](...r),Uy=["rgb","hex","ansi256"];for(let e of Uy){yn[e]={get(){let{level:n}=this;return function(...r){let o=Ui(Wi(e,fu[n],"color",...r),Re.color.close,this[gn]);return to(this,o,this[lr])}}};let t="bg"+e[0].toUpperCase()+e.slice(1);yn[t]={get(){let{level:n}=this;return function(...r){let o=Ui(Wi(e,fu[n],"bgColor",...r),Re.bgColor.close,this[gn]);return to(this,o,this[lr])}}}}Vy=Object.defineProperties(()=>{},{...yn,level:{enumerable:!0,get(){return this[zi].level},set(e){this[zi].level=e}}}),Ui=(e,t,n)=>{let r,o;return n===void 0?(r=e,o=t):(r=n.openAll+e,o=t+n.closeAll),{open:e,close:t,openAll:r,closeAll:o,parent:n}},to=(e,t,n)=>{let r=(...o)=>Gy(r,o.length===1?""+o[0]:o.join(" "));return Object.setPrototypeOf(r,Vy),r[zi]=e,r[gn]=t,r[lr]=n,r},Gy=(e,t)=>{if(e.level<=0||!t)return e[lr]?"":t;let n=e[gn];if(n===void 0)return t;let{openAll:r,closeAll:o}=n;if(t.includes("\x1B"))for(;n!==void 0;)t=lu(t,n.close,n.open),n=n.parent;let i=t.indexOf(`
6
+ `);return i!==-1&&(t=uu(t,o,r,i)),r+t+o};Object.defineProperties(ur.prototype,yn);qy=ur(),W_=ur({level:du?du.level:0}),W=qy});function Vi(e,t,{ignoreNonConfigurable:n=!1}={}){let{name:r}=e;for(let o of Reflect.ownKeys(t))Hy(e,t,o,n);return Zy(e,t),Qy(e,t,r),e}var Hy,Jy,Zy,Ky,Yy,Xy,Qy,mu=E(()=>{"use strict";Hy=(e,t,n,r)=>{if(n==="length"||n==="prototype"||n==="arguments"||n==="caller")return;let o=Object.getOwnPropertyDescriptor(e,n),i=Object.getOwnPropertyDescriptor(t,n);!Jy(o,i)&&r||Object.defineProperty(e,n,i)},Jy=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},Zy=(e,t)=>{let n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},Ky=(e,t)=>`/* Wrapped ${e}*/
7
+ ${t}`,Yy=Object.getOwnPropertyDescriptor(Function.prototype,"toString"),Xy=Object.getOwnPropertyDescriptor(Function.prototype.toString,"name"),Qy=(e,t,n)=>{let r=n===""?"":`with ${n.trim()}() `,o=Ky.bind(null,r,t.toString());Object.defineProperty(o,"name",Xy);let{writable:i,enumerable:s,configurable:a}=Yy;Object.defineProperty(e,"toString",{value:o,writable:i,enumerable:s,configurable:a})}});var no,hu,gu,yu=E(()=>{"use strict";mu();no=new WeakMap,hu=(e,t={})=>{if(typeof e!="function")throw new TypeError("Expected a function");let n,r=0,o=e.displayName||e.name||"<anonymous>",i=function(...s){if(no.set(i,++r),r===1)n=e.apply(this,s),e=void 0;else if(t.throw===!0)throw new Error(`Function \`${o}\` can only be called once`);return n};return Vi(i,e),no.set(i,r),i};hu.callCount=e=>{if(!no.has(e))throw new Error(`The given function \`${e.name}\` is not wrapped by the \`onetime\` package`);return no.get(e)};gu=hu});var Rt,bu=E(()=>{"use strict";Rt=[];Rt.push("SIGHUP","SIGINT","SIGTERM");process.platform!=="win32"&&Rt.push("SIGALRM","SIGABRT","SIGVTALRM","SIGXCPU","SIGXFSZ","SIGUSR2","SIGTRAP","SIGSYS","SIGQUIT","SIGIOT");process.platform==="linux"&&Rt.push("SIGIO","SIGPOLL","SIGPWR","SIGSTKFLT")});var ro,Gi,qi,eb,Hi,oo,tb,Ji,Zi,Ki,Du,Z_,K_,wu=E(()=>{"use strict";bu();ro=e=>!!e&&typeof e=="object"&&typeof e.removeListener=="function"&&typeof e.emit=="function"&&typeof e.reallyExit=="function"&&typeof e.listeners=="function"&&typeof e.kill=="function"&&typeof e.pid=="number"&&typeof e.on=="function",Gi=Symbol.for("signal-exit emitter"),qi=globalThis,eb=Object.defineProperty.bind(Object),Hi=class{emitted={afterExit:!1,exit:!1};listeners={afterExit:[],exit:[]};count=0;id=Math.random();constructor(){if(qi[Gi])return qi[Gi];eb(qi,Gi,{value:this,writable:!1,enumerable:!1,configurable:!1})}on(t,n){this.listeners[t].push(n)}removeListener(t,n){let r=this.listeners[t],o=r.indexOf(n);o!==-1&&(o===0&&r.length===1?r.length=0:r.splice(o,1))}emit(t,n,r){if(this.emitted[t])return!1;this.emitted[t]=!0;let o=!1;for(let i of this.listeners[t])o=i(n,r)===!0||o;return t==="exit"&&(o=this.emit("afterExit",n,r)||o),o}},oo=class{},tb=e=>({onExit(t,n){return e.onExit(t,n)},load(){return e.load()},unload(){return e.unload()}}),Ji=class extends oo{onExit(){return()=>{}}load(){}unload(){}},Zi=class extends oo{#s=Ki.platform==="win32"?"SIGINT":"SIGHUP";#n=new Hi;#e;#o;#d;#t={};#i=!1;constructor(t){super(),this.#e=t,this.#t={};for(let n of Rt)this.#t[n]=()=>{let r=this.#e.listeners(n),{count:o}=this.#n,i=t;if(typeof i.__signal_exit_emitter__=="object"&&typeof i.__signal_exit_emitter__.count=="number"&&(o+=i.__signal_exit_emitter__.count),r.length===o){this.unload();let s=this.#n.emit("exit",null,n),a=n==="SIGHUP"?this.#s:n;s||t.kill(t.pid,a)}};this.#d=t.reallyExit,this.#o=t.emit}onExit(t,n){if(!ro(this.#e))return()=>{};this.#i===!1&&this.load();let r=n?.alwaysLast?"afterExit":"exit";return this.#n.on(r,t),()=>{this.#n.removeListener(r,t),this.#n.listeners.exit.length===0&&this.#n.listeners.afterExit.length===0&&this.unload()}}load(){if(!this.#i){this.#i=!0,this.#n.count+=1;for(let t of Rt)try{let n=this.#t[t];n&&this.#e.on(t,n)}catch{}this.#e.emit=(t,...n)=>this.#f(t,...n),this.#e.reallyExit=t=>this.#r(t)}}unload(){this.#i&&(this.#i=!1,Rt.forEach(t=>{let n=this.#t[t];if(!n)throw new Error("Listener not defined for signal: "+t);try{this.#e.removeListener(t,n)}catch{}}),this.#e.emit=this.#o,this.#e.reallyExit=this.#d,this.#n.count-=1)}#r(t){return ro(this.#e)?(this.#e.exitCode=t||0,this.#n.emit("exit",this.#e.exitCode,null),this.#d.call(this.#e,this.#e.exitCode)):0}#f(t,...n){let r=this.#o;if(t==="exit"&&ro(this.#e)){typeof n[0]=="number"&&(this.#e.exitCode=n[0]);let o=r.call(this.#e,t,...n);return this.#n.emit("exit",this.#e.exitCode,null),o}else return r.call(this.#e,t,...n)}},Ki=globalThis.process,{onExit:Du,load:Z_,unload:K_}=tb(ro(Ki)?new Zi(Ki):new Ji)});var cr,vu,nb,ku,xu=E(()=>{"use strict";cr=D(require("process"),1);yu();wu();vu=cr.default.stderr.isTTY?cr.default.stderr:cr.default.stdout.isTTY?cr.default.stdout:void 0,nb=vu?gu(()=>{Du(()=>{vu.write("\x1B[?25h")},{alwaysLast:!0})}):()=>{},ku=nb});var Yi,io,bn,Xi,Cu=E(()=>{"use strict";Yi=D(require("process"),1);xu();io=!1,bn={};bn.show=(e=Yi.default.stderr)=>{e.isTTY&&(io=!1,e.write("\x1B[?25h"))};bn.hide=(e=Yi.default.stderr)=>{e.isTTY&&(ku(),io=!0,e.write("\x1B[?25l"))};bn.toggle=(e,t)=>{e!==void 0&&(io=e),io?bn.show(t):bn.hide(t)};Xi=bn});var Fu=Mi((rE,rb)=>{rb.exports={dots:{interval:80,frames:["\u280B","\u2819","\u2839","\u2838","\u283C","\u2834","\u2826","\u2827","\u2807","\u280F"]},dots2:{interval:80,frames:["\u28FE","\u28FD","\u28FB","\u28BF","\u287F","\u28DF","\u28EF","\u28F7"]},dots3:{interval:80,frames:["\u280B","\u2819","\u281A","\u281E","\u2816","\u2826","\u2834","\u2832","\u2833","\u2813"]},dots4:{interval:80,frames:["\u2804","\u2806","\u2807","\u280B","\u2819","\u2838","\u2830","\u2820","\u2830","\u2838","\u2819","\u280B","\u2807","\u2806"]},dots5:{interval:80,frames:["\u280B","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B"]},dots6:{interval:80,frames:["\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2834","\u2832","\u2812","\u2802","\u2802","\u2812","\u281A","\u2819","\u2809","\u2801"]},dots7:{interval:80,frames:["\u2808","\u2809","\u280B","\u2813","\u2812","\u2810","\u2810","\u2812","\u2816","\u2826","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808"]},dots8:{interval:80,frames:["\u2801","\u2801","\u2809","\u2819","\u281A","\u2812","\u2802","\u2802","\u2812","\u2832","\u2834","\u2824","\u2804","\u2804","\u2824","\u2820","\u2820","\u2824","\u2826","\u2816","\u2812","\u2810","\u2810","\u2812","\u2813","\u280B","\u2809","\u2808","\u2808"]},dots9:{interval:80,frames:["\u28B9","\u28BA","\u28BC","\u28F8","\u28C7","\u2867","\u2857","\u284F"]},dots10:{interval:80,frames:["\u2884","\u2882","\u2881","\u2841","\u2848","\u2850","\u2860"]},dots11:{interval:100,frames:["\u2801","\u2802","\u2804","\u2840","\u2880","\u2820","\u2810","\u2808"]},dots12:{interval:80,frames:["\u2880\u2800","\u2840\u2800","\u2804\u2800","\u2882\u2800","\u2842\u2800","\u2805\u2800","\u2883\u2800","\u2843\u2800","\u280D\u2800","\u288B\u2800","\u284B\u2800","\u280D\u2801","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2888\u2829","\u2840\u2899","\u2804\u2859","\u2882\u2829","\u2842\u2898","\u2805\u2858","\u2883\u2828","\u2843\u2890","\u280D\u2850","\u288B\u2820","\u284B\u2880","\u280D\u2841","\u288B\u2801","\u284B\u2801","\u280D\u2809","\u280B\u2809","\u280B\u2809","\u2809\u2819","\u2809\u2819","\u2809\u2829","\u2808\u2899","\u2808\u2859","\u2808\u2829","\u2800\u2899","\u2800\u2859","\u2800\u2829","\u2800\u2898","\u2800\u2858","\u2800\u2828","\u2800\u2890","\u2800\u2850","\u2800\u2820","\u2800\u2880","\u2800\u2840"]},dots13:{interval:80,frames:["\u28FC","\u28F9","\u28BB","\u283F","\u285F","\u28CF","\u28E7","\u28F6"]},dots8Bit:{interval:80,frames:["\u2800","\u2801","\u2802","\u2803","\u2804","\u2805","\u2806","\u2807","\u2840","\u2841","\u2842","\u2843","\u2844","\u2845","\u2846","\u2847","\u2808","\u2809","\u280A","\u280B","\u280C","\u280D","\u280E","\u280F","\u2848","\u2849","\u284A","\u284B","\u284C","\u284D","\u284E","\u284F","\u2810","\u2811","\u2812","\u2813","\u2814","\u2815","\u2816","\u2817","\u2850","\u2851","\u2852","\u2853","\u2854","\u2855","\u2856","\u2857","\u2818","\u2819","\u281A","\u281B","\u281C","\u281D","\u281E","\u281F","\u2858","\u2859","\u285A","\u285B","\u285C","\u285D","\u285E","\u285F","\u2820","\u2821","\u2822","\u2823","\u2824","\u2825","\u2826","\u2827","\u2860","\u2861","\u2862","\u2863","\u2864","\u2865","\u2866","\u2867","\u2828","\u2829","\u282A","\u282B","\u282C","\u282D","\u282E","\u282F","\u2868","\u2869","\u286A","\u286B","\u286C","\u286D","\u286E","\u286F","\u2830","\u2831","\u2832","\u2833","\u2834","\u2835","\u2836","\u2837","\u2870","\u2871","\u2872","\u2873","\u2874","\u2875","\u2876","\u2877","\u2838","\u2839","\u283A","\u283B","\u283C","\u283D","\u283E","\u283F","\u2878","\u2879","\u287A","\u287B","\u287C","\u287D","\u287E","\u287F","\u2880","\u2881","\u2882","\u2883","\u2884","\u2885","\u2886","\u2887","\u28C0","\u28C1","\u28C2","\u28C3","\u28C4","\u28C5","\u28C6","\u28C7","\u2888","\u2889","\u288A","\u288B","\u288C","\u288D","\u288E","\u288F","\u28C8","\u28C9","\u28CA","\u28CB","\u28CC","\u28CD","\u28CE","\u28CF","\u2890","\u2891","\u2892","\u2893","\u2894","\u2895","\u2896","\u2897","\u28D0","\u28D1","\u28D2","\u28D3","\u28D4","\u28D5","\u28D6","\u28D7","\u2898","\u2899","\u289A","\u289B","\u289C","\u289D","\u289E","\u289F","\u28D8","\u28D9","\u28DA","\u28DB","\u28DC","\u28DD","\u28DE","\u28DF","\u28A0","\u28A1","\u28A2","\u28A3","\u28A4","\u28A5","\u28A6","\u28A7","\u28E0","\u28E1","\u28E2","\u28E3","\u28E4","\u28E5","\u28E6","\u28E7","\u28A8","\u28A9","\u28AA","\u28AB","\u28AC","\u28AD","\u28AE","\u28AF","\u28E8","\u28E9","\u28EA","\u28EB","\u28EC","\u28ED","\u28EE","\u28EF","\u28B0","\u28B1","\u28B2","\u28B3","\u28B4","\u28B5","\u28B6","\u28B7","\u28F0","\u28F1","\u28F2","\u28F3","\u28F4","\u28F5","\u28F6","\u28F7","\u28B8","\u28B9","\u28BA","\u28BB","\u28BC","\u28BD","\u28BE","\u28BF","\u28F8","\u28F9","\u28FA","\u28FB","\u28FC","\u28FD","\u28FE","\u28FF"]},sand:{interval:80,frames:["\u2801","\u2802","\u2804","\u2840","\u2848","\u2850","\u2860","\u28C0","\u28C1","\u28C2","\u28C4","\u28CC","\u28D4","\u28E4","\u28E5","\u28E6","\u28EE","\u28F6","\u28F7","\u28FF","\u287F","\u283F","\u289F","\u281F","\u285B","\u281B","\u282B","\u288B","\u280B","\u280D","\u2849","\u2809","\u2811","\u2821","\u2881"]},line:{interval:130,frames:["-","\\","|","/"]},line2:{interval:100,frames:["\u2802","-","\u2013","\u2014","\u2013","-"]},pipe:{interval:100,frames:["\u2524","\u2518","\u2534","\u2514","\u251C","\u250C","\u252C","\u2510"]},simpleDots:{interval:400,frames:[". ",".. ","..."," "]},simpleDotsScrolling:{interval:200,frames:[". ",".. ","..."," .."," ."," "]},star:{interval:70,frames:["\u2736","\u2738","\u2739","\u273A","\u2739","\u2737"]},star2:{interval:80,frames:["+","x","*"]},flip:{interval:70,frames:["_","_","_","-","`","`","'","\xB4","-","_","_","_"]},hamburger:{interval:100,frames:["\u2631","\u2632","\u2634"]},growVertical:{interval:120,frames:["\u2581","\u2583","\u2584","\u2585","\u2586","\u2587","\u2586","\u2585","\u2584","\u2583"]},growHorizontal:{interval:120,frames:["\u258F","\u258E","\u258D","\u258C","\u258B","\u258A","\u2589","\u258A","\u258B","\u258C","\u258D","\u258E"]},balloon:{interval:140,frames:[" ",".","o","O","@","*"," "]},balloon2:{interval:120,frames:[".","o","O","\xB0","O","o","."]},noise:{interval:100,frames:["\u2593","\u2592","\u2591"]},bounce:{interval:120,frames:["\u2801","\u2802","\u2804","\u2802"]},boxBounce:{interval:120,frames:["\u2596","\u2598","\u259D","\u2597"]},boxBounce2:{interval:100,frames:["\u258C","\u2580","\u2590","\u2584"]},triangle:{interval:50,frames:["\u25E2","\u25E3","\u25E4","\u25E5"]},binary:{interval:80,frames:["010010","001100","100101","111010","111101","010111","101011","111000","110011","110101"]},arc:{interval:100,frames:["\u25DC","\u25E0","\u25DD","\u25DE","\u25E1","\u25DF"]},circle:{interval:120,frames:["\u25E1","\u2299","\u25E0"]},squareCorners:{interval:180,frames:["\u25F0","\u25F3","\u25F2","\u25F1"]},circleQuarters:{interval:120,frames:["\u25F4","\u25F7","\u25F6","\u25F5"]},circleHalves:{interval:50,frames:["\u25D0","\u25D3","\u25D1","\u25D2"]},squish:{interval:100,frames:["\u256B","\u256A"]},toggle:{interval:250,frames:["\u22B6","\u22B7"]},toggle2:{interval:80,frames:["\u25AB","\u25AA"]},toggle3:{interval:120,frames:["\u25A1","\u25A0"]},toggle4:{interval:100,frames:["\u25A0","\u25A1","\u25AA","\u25AB"]},toggle5:{interval:100,frames:["\u25AE","\u25AF"]},toggle6:{interval:300,frames:["\u101D","\u1040"]},toggle7:{interval:80,frames:["\u29BE","\u29BF"]},toggle8:{interval:100,frames:["\u25CD","\u25CC"]},toggle9:{interval:100,frames:["\u25C9","\u25CE"]},toggle10:{interval:100,frames:["\u3282","\u3280","\u3281"]},toggle11:{interval:50,frames:["\u29C7","\u29C6"]},toggle12:{interval:120,frames:["\u2617","\u2616"]},toggle13:{interval:80,frames:["=","*","-"]},arrow:{interval:100,frames:["\u2190","\u2196","\u2191","\u2197","\u2192","\u2198","\u2193","\u2199"]},arrow2:{interval:80,frames:["\u2B06\uFE0F ","\u2197\uFE0F ","\u27A1\uFE0F ","\u2198\uFE0F ","\u2B07\uFE0F ","\u2199\uFE0F ","\u2B05\uFE0F ","\u2196\uFE0F "]},arrow3:{interval:120,frames:["\u25B9\u25B9\u25B9\u25B9\u25B9","\u25B8\u25B9\u25B9\u25B9\u25B9","\u25B9\u25B8\u25B9\u25B9\u25B9","\u25B9\u25B9\u25B8\u25B9\u25B9","\u25B9\u25B9\u25B9\u25B8\u25B9","\u25B9\u25B9\u25B9\u25B9\u25B8"]},bouncingBar:{interval:80,frames:["[ ]","[= ]","[== ]","[=== ]","[====]","[ ===]","[ ==]","[ =]","[ ]","[ =]","[ ==]","[ ===]","[====]","[=== ]","[== ]","[= ]"]},bouncingBall:{interval:80,frames:["( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF)","( \u25CF )","( \u25CF )","( \u25CF )","( \u25CF )","(\u25CF )"]},smiley:{interval:200,frames:["\u{1F604} ","\u{1F61D} "]},monkey:{interval:300,frames:["\u{1F648} ","\u{1F648} ","\u{1F649} ","\u{1F64A} "]},hearts:{interval:100,frames:["\u{1F49B} ","\u{1F499} ","\u{1F49C} ","\u{1F49A} ","\u2764\uFE0F "]},clock:{interval:100,frames:["\u{1F55B} ","\u{1F550} ","\u{1F551} ","\u{1F552} ","\u{1F553} ","\u{1F554} ","\u{1F555} ","\u{1F556} ","\u{1F557} ","\u{1F558} ","\u{1F559} ","\u{1F55A} "]},earth:{interval:180,frames:["\u{1F30D} ","\u{1F30E} ","\u{1F30F} "]},material:{interval:17,frames:["\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2588","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581","\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581\u2581"]},moon:{interval:80,frames:["\u{1F311} ","\u{1F312} ","\u{1F313} ","\u{1F314} ","\u{1F315} ","\u{1F316} ","\u{1F317} ","\u{1F318} "]},runner:{interval:140,frames:["\u{1F6B6} ","\u{1F3C3} "]},pong:{interval:80,frames:["\u2590\u2802 \u258C","\u2590\u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802\u258C","\u2590 \u2820\u258C","\u2590 \u2840\u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590 \u2820 \u258C","\u2590 \u2802 \u258C","\u2590 \u2808 \u258C","\u2590 \u2802 \u258C","\u2590 \u2820 \u258C","\u2590 \u2840 \u258C","\u2590\u2820 \u258C"]},shark:{interval:120,frames:["\u2590|\\____________\u258C","\u2590_|\\___________\u258C","\u2590__|\\__________\u258C","\u2590___|\\_________\u258C","\u2590____|\\________\u258C","\u2590_____|\\_______\u258C","\u2590______|\\______\u258C","\u2590_______|\\_____\u258C","\u2590________|\\____\u258C","\u2590_________|\\___\u258C","\u2590__________|\\__\u258C","\u2590___________|\\_\u258C","\u2590____________|\\\u258C","\u2590____________/|\u258C","\u2590___________/|_\u258C","\u2590__________/|__\u258C","\u2590_________/|___\u258C","\u2590________/|____\u258C","\u2590_______/|_____\u258C","\u2590______/|______\u258C","\u2590_____/|_______\u258C","\u2590____/|________\u258C","\u2590___/|_________\u258C","\u2590__/|__________\u258C","\u2590_/|___________\u258C","\u2590/|____________\u258C"]},dqpb:{interval:100,frames:["d","q","p","b"]},weather:{interval:100,frames:["\u2600\uFE0F ","\u2600\uFE0F ","\u2600\uFE0F ","\u{1F324} ","\u26C5\uFE0F ","\u{1F325} ","\u2601\uFE0F ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u26C8 ","\u{1F328} ","\u{1F327} ","\u{1F328} ","\u2601\uFE0F ","\u{1F325} ","\u26C5\uFE0F ","\u{1F324} ","\u2600\uFE0F ","\u2600\uFE0F "]},christmas:{interval:400,frames:["\u{1F332}","\u{1F384}"]},grenade:{interval:80,frames:["\u060C ","\u2032 "," \xB4 "," \u203E "," \u2E0C"," \u2E0A"," |"," \u204E"," \u2055"," \u0DF4 "," \u2053"," "," "," "]},point:{interval:125,frames:["\u2219\u2219\u2219","\u25CF\u2219\u2219","\u2219\u25CF\u2219","\u2219\u2219\u25CF","\u2219\u2219\u2219"]},layer:{interval:150,frames:["-","=","\u2261"]},betaWave:{interval:80,frames:["\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1\u03B2","\u03B2\u03B2\u03B2\u03B2\u03B2\u03B2\u03C1"]},fingerDance:{interval:160,frames:["\u{1F918} ","\u{1F91F} ","\u{1F596} ","\u270B ","\u{1F91A} ","\u{1F446} "]},fistBump:{interval:80,frames:["\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u{1F91C}\u3000\u3000\u3000\u3000\u{1F91B} ","\u3000\u{1F91C}\u3000\u3000\u{1F91B}\u3000 ","\u3000\u3000\u{1F91C}\u{1F91B}\u3000\u3000 ","\u3000\u{1F91C}\u2728\u{1F91B}\u3000\u3000 ","\u{1F91C}\u3000\u2728\u3000\u{1F91B}\u3000 "]},soccerHeader:{interval:80,frames:[" \u{1F9D1}\u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F\u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} ","\u{1F9D1} \u26BD\uFE0F \u{1F9D1} "]},mindblown:{interval:160,frames:["\u{1F610} ","\u{1F610} ","\u{1F62E} ","\u{1F62E} ","\u{1F626} ","\u{1F626} ","\u{1F627} ","\u{1F627} ","\u{1F92F} ","\u{1F4A5} ","\u2728 ","\u3000 ","\u3000 ","\u3000 "]},speaker:{interval:160,frames:["\u{1F508} ","\u{1F509} ","\u{1F50A} ","\u{1F509} "]},orangePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} "]},bluePulse:{interval:100,frames:["\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},orangeBluePulse:{interval:100,frames:["\u{1F538} ","\u{1F536} ","\u{1F7E0} ","\u{1F7E0} ","\u{1F536} ","\u{1F539} ","\u{1F537} ","\u{1F535} ","\u{1F535} ","\u{1F537} "]},timeTravel:{interval:100,frames:["\u{1F55B} ","\u{1F55A} ","\u{1F559} ","\u{1F558} ","\u{1F557} ","\u{1F556} ","\u{1F555} ","\u{1F554} ","\u{1F553} ","\u{1F552} ","\u{1F551} ","\u{1F550} "]},aesthetic:{interval:80,frames:["\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B1","\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0\u25B0","\u25B0\u25B1\u25B1\u25B1\u25B1\u25B1\u25B1"]},dwarfFortress:{interval:80,frames:[" \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A\u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 ","\u263A \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\u2588\xA3\xA3\xA3 "," \u263A \u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2588\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2593\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2592\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A\u2591\u2588\xA3\xA3\xA3 "," \u263A \u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2588\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2592\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A\u2591\xA3\xA3\xA3 "," \u263A \xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\xA3\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2593\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2592\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A\u2591\xA3\xA3 "," \u263A \xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\xA3\xA3 "," \u263A\u2593\xA3 "," \u263A\u2593\xA3 "," \u263A\u2592\xA3 "," \u263A\u2592\xA3 "," \u263A\u2591\xA3 "," \u263A\u2591\xA3 "," \u263A \xA3 "," \u263A\xA3 "," \u263A\xA3 "," \u263A\u2593 "," \u263A\u2593 "," \u263A\u2592 "," \u263A\u2592 "," \u263A\u2591 "," \u263A\u2591 "," \u263A "," \u263A &"," \u263A \u263C&"," \u263A \u263C &"," \u263A\u263C &"," \u263A\u263C & "," \u203C & "," \u263A & "," \u203C & "," \u263A & "," \u203C & "," \u263A & ","\u203C & "," & "," & "," & \u2591 "," & \u2592 "," & \u2593 "," & \xA3 "," & \u2591\xA3 "," & \u2592\xA3 "," & \u2593\xA3 "," & \xA3\xA3 "," & \u2591\xA3\xA3 "," & \u2592\xA3\xA3 ","& \u2593\xA3\xA3 ","& \xA3\xA3\xA3 "," \u2591\xA3\xA3\xA3 "," \u2592\xA3\xA3\xA3 "," \u2593\xA3\xA3\xA3 "," \u2588\xA3\xA3\xA3 "," \u2591\u2588\xA3\xA3\xA3 "," \u2592\u2588\xA3\xA3\xA3 "," \u2593\u2588\xA3\xA3\xA3 "," \u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2591\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2592\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2593\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "," \u2588\u2588\u2588\u2588\u2588\u2588\xA3\xA3\xA3 "]}}});var Qi=Mi((oE,Eu)=>{"use strict";var so=Object.assign({},Fu()),_u=Object.keys(so);Object.defineProperty(so,"random",{get(){let e=Math.floor(Math.random()*_u.length),t=_u[e];return so[t]}});Eu.exports=so});function es(){return Fe.default.platform!=="win32"?Fe.default.env.TERM!=="linux":!!Fe.default.env.CI||!!Fe.default.env.WT_SESSION||!!Fe.default.env.TERMINUS_SUBLIME||Fe.default.env.ConEmuTask==="{cmd::Cmder}"||Fe.default.env.TERM_PROGRAM==="Terminus-Sublime"||Fe.default.env.TERM_PROGRAM==="vscode"||Fe.default.env.TERM==="xterm-256color"||Fe.default.env.TERM==="alacritty"||Fe.default.env.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var Fe,Su=E(()=>{"use strict";Fe=D(require("process"),1)});var ob,ib,sb,pr,Tu=E(()=>{"use strict";Ge();Su();ob={info:W.blue("\u2139"),success:W.green("\u2714"),warning:W.yellow("\u26A0"),error:W.red("\u2716")},ib={info:W.blue("i"),success:W.green("\u221A"),warning:W.yellow("\u203C"),error:W.red("\xD7")},sb=es()?ob:ib,pr=sb});function ts({onlyFirst:e=!1}={}){let o="(?:\\u001B\\][\\s\\S]*?(?:\\u0007|\\u001B\\u005C|\\u009C))|[\\u001B\\u009B][[\\]()#;?]*(?:\\d{1,4}(?:[;:]\\d{0,4})*)?[\\dA-PR-TZcf-nq-uy=><~]";return new RegExp(o,e?void 0:"g")}var Au=E(()=>{"use strict"});function dr(e){if(typeof e!="string")throw new TypeError(`Expected a \`string\`, got \`${typeof e}\``);return!e.includes("\x1B")&&!e.includes("\x9B")?e:e.replace(ab,"")}var ab,ns=E(()=>{"use strict";Au();ab=ts()});function Ou(e){return e===161||e===164||e===167||e===168||e===170||e===173||e===174||e>=176&&e<=180||e>=182&&e<=186||e>=188&&e<=191||e===198||e===208||e===215||e===216||e>=222&&e<=225||e===230||e>=232&&e<=234||e===236||e===237||e===240||e===242||e===243||e>=247&&e<=250||e===252||e===254||e===257||e===273||e===275||e===283||e===294||e===295||e===299||e>=305&&e<=307||e===312||e>=319&&e<=322||e===324||e>=328&&e<=331||e===333||e===338||e===339||e===358||e===359||e===363||e===462||e===464||e===466||e===468||e===470||e===472||e===474||e===476||e===593||e===609||e===708||e===711||e>=713&&e<=715||e===717||e===720||e>=728&&e<=731||e===733||e===735||e>=768&&e<=879||e>=913&&e<=929||e>=931&&e<=937||e>=945&&e<=961||e>=963&&e<=969||e===1025||e>=1040&&e<=1103||e===1105||e===8208||e>=8211&&e<=8214||e===8216||e===8217||e===8220||e===8221||e>=8224&&e<=8226||e>=8228&&e<=8231||e===8240||e===8242||e===8243||e===8245||e===8251||e===8254||e===8308||e===8319||e>=8321&&e<=8324||e===8364||e===8451||e===8453||e===8457||e===8467||e===8470||e===8481||e===8482||e===8486||e===8491||e===8531||e===8532||e>=8539&&e<=8542||e>=8544&&e<=8555||e>=8560&&e<=8569||e===8585||e>=8592&&e<=8601||e===8632||e===8633||e===8658||e===8660||e===8679||e===8704||e===8706||e===8707||e===8711||e===8712||e===8715||e===8719||e===8721||e===8725||e===8730||e>=8733&&e<=8736||e===8739||e===8741||e>=8743&&e<=8748||e===8750||e>=8756&&e<=8759||e===8764||e===8765||e===8776||e===8780||e===8786||e===8800||e===8801||e>=8804&&e<=8807||e===8810||e===8811||e===8814||e===8815||e===8834||e===8835||e===8838||e===8839||e===8853||e===8857||e===8869||e===8895||e===8978||e>=9312&&e<=9449||e>=9451&&e<=9547||e>=9552&&e<=9587||e>=9600&&e<=9615||e>=9618&&e<=9621||e===9632||e===9633||e>=9635&&e<=9641||e===9650||e===9651||e===9654||e===9655||e===9660||e===9661||e===9664||e===9665||e>=9670&&e<=9672||e===9675||e>=9678&&e<=9681||e>=9698&&e<=9701||e===9711||e===9733||e===9734||e===9737||e===9742||e===9743||e===9756||e===9758||e===9792||e===9794||e===9824||e===9825||e>=9827&&e<=9829||e>=9831&&e<=9834||e===9836||e===9837||e===9839||e===9886||e===9887||e===9919||e>=9926&&e<=9933||e>=9935&&e<=9939||e>=9941&&e<=9953||e===9955||e===9960||e===9961||e>=9963&&e<=9969||e===9972||e>=9974&&e<=9977||e===9979||e===9980||e===9982||e===9983||e===10045||e>=10102&&e<=10111||e>=11094&&e<=11097||e>=12872&&e<=12879||e>=57344&&e<=63743||e>=65024&&e<=65039||e===65533||e>=127232&&e<=127242||e>=127248&&e<=127277||e>=127280&&e<=127337||e>=127344&&e<=127373||e===127375||e===127376||e>=127387&&e<=127404||e>=917760&&e<=917999||e>=983040&&e<=1048573||e>=1048576&&e<=1114109}function Pu(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Bu(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e===94192||e===94193||e>=94208&&e<=100343||e>=100352&&e<=101589||e>=101631&&e<=101640||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128727||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129673||e>=129679&&e<=129734||e>=129742&&e<=129756||e>=129759&&e<=129769||e>=129776&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var Iu=E(()=>{"use strict"});function lb(e){if(!Number.isSafeInteger(e))throw new TypeError(`Expected a code point, got \`${typeof e}\`.`)}function ju(e,{ambiguousAsWide:t=!1}={}){return lb(e),Pu(e)||Bu(e)||t&&Ou(e)?2:1}var Ru=E(()=>{"use strict";Iu()});var Lu,Nu=E(()=>{"use strict";Lu=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE])))?))?|\uDC6F(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3D\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE89\uDE8F-\uDEC2\uDEC6\uDECE-\uDEDC\uDEDF-\uDEE9]|\uDD3C(?:\u200D[\u2640\u2642]\uFE0F?|\uD83C[\uDFFB-\uDFFF])?|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g});function rs(e,t={}){if(typeof e!="string"||e.length===0)return 0;let{ambiguousIsNarrow:n=!0,countAnsiEscapeCodes:r=!1}=t;if(r||(e=dr(e)),e.length===0)return 0;let o=0,i={ambiguousAsWide:!n};for(let{segment:s}of ub.segment(e)){let a=s.codePointAt(0);if(!(a<=31||a>=127&&a<=159)&&!(a>=8203&&a<=8207||a===65279)&&!(a>=768&&a<=879||a>=6832&&a<=6911||a>=7616&&a<=7679||a>=8400&&a<=8447||a>=65056&&a<=65071)&&!(a>=55296&&a<=57343)&&!(a>=65024&&a<=65039)&&!cb.test(s)){if(Lu().test(s)){o+=2;continue}o+=ju(a,i)}}return o}var ub,cb,Mu=E(()=>{"use strict";ns();Ru();Nu();ub=new Intl.Segmenter,cb=new RegExp("^\\p{Default_Ignorable_Code_Point}$","u")});function os({stream:e=process.stdout}={}){return!!(e&&e.isTTY&&process.env.TERM!=="dumb"&&!("CI"in process.env))}var $u=E(()=>{"use strict"});function ss(){let{env:e}=is.default,{TERM:t,TERM_PROGRAM:n}=e;return is.default.platform!=="win32"?t!=="linux":!!e.WT_SESSION||!!e.TERMINUS_SUBLIME||e.ConEmuTask==="{cmd::Cmder}"||n==="Terminus-Sublime"||n==="vscode"||t==="xterm-256color"||t==="alacritty"||t==="rxvt-unicode"||t==="rxvt-unicode-256color"||e.TERMINAL_EMULATOR==="JetBrains-JediTerm"}var is,zu=E(()=>{"use strict";is=D(require("process"),1)});var Le,pb,as,db,ls,Wu=E(()=>{"use strict";Le=D(require("process"),1),pb=3,as=class{#s=0;start(){this.#s++,this.#s===1&&this.#n()}stop(){if(this.#s<=0)throw new Error("`stop` called more times than `start`");this.#s--,this.#s===0&&this.#e()}#n(){Le.default.platform==="win32"||!Le.default.stdin.isTTY||(Le.default.stdin.setRawMode(!0),Le.default.stdin.on("data",this.#o),Le.default.stdin.resume())}#e(){Le.default.stdin.isTTY&&(Le.default.stdin.off("data",this.#o),Le.default.stdin.pause(),Le.default.stdin.setRawMode(!1))}#o(t){t[0]===pb&&Le.default.emit("SIGINT")}},db=new as,ls=db});function Dn(e){return new us(e)}var fr,mr,fb,us,cs=E(()=>{"use strict";fr=D(require("process"),1);Ge();Cu();mr=D(Qi(),1);Tu();ns();Mu();$u();zu();Wu();fb=D(Qi(),1),us=class{#s=0;#n=!1;#e=0;#o=-1;#d=0;#t;#i;#r;#f;#h;#u;#c;#p;#g;#a;#l;color;constructor(t){typeof t=="string"&&(t={text:t}),this.#t={color:"cyan",stream:fr.default.stderr,discardStdin:!0,hideCursor:!0,...t},this.color=this.#t.color,this.spinner=this.#t.spinner,this.#h=this.#t.interval,this.#r=this.#t.stream,this.#u=typeof this.#t.isEnabled=="boolean"?this.#t.isEnabled:os({stream:this.#r}),this.#c=typeof this.#t.isSilent=="boolean"?this.#t.isSilent:!1,this.text=this.#t.text,this.prefixText=this.#t.prefixText,this.suffixText=this.#t.suffixText,this.indent=this.#t.indent,fr.default.env.NODE_ENV==="test"&&(this._stream=this.#r,this._isEnabled=this.#u,Object.defineProperty(this,"_linesToClear",{get(){return this.#s},set(n){this.#s=n}}),Object.defineProperty(this,"_frameIndex",{get(){return this.#o}}),Object.defineProperty(this,"_lineCount",{get(){return this.#e}}))}get indent(){return this.#p}set indent(t=0){if(!(t>=0&&Number.isInteger(t)))throw new Error("The `indent` option must be an integer from 0 and up");this.#p=t,this.#m()}get interval(){return this.#h??this.#i.interval??100}get spinner(){return this.#i}set spinner(t){if(this.#o=-1,this.#h=void 0,typeof t=="object"){if(t.frames===void 0)throw new Error("The given spinner must have a `frames` property");this.#i=t}else if(!ss())this.#i=mr.default.line;else if(t===void 0)this.#i=mr.default.dots;else if(t!=="default"&&mr.default[t])this.#i=mr.default[t];else throw new Error(`There is no built-in spinner named '${t}'. See https://github.com/sindresorhus/cli-spinners/blob/main/spinners.json for a full list.`)}get text(){return this.#g}set text(t=""){this.#g=t,this.#m()}get prefixText(){return this.#a}set prefixText(t=""){this.#a=t,this.#m()}get suffixText(){return this.#l}set suffixText(t=""){this.#l=t,this.#m()}get isSpinning(){return this.#f!==void 0}#y(t=this.#a,n=" "){return typeof t=="string"&&t!==""?t+n:typeof t=="function"?t()+n:""}#b(t=this.#l,n=" "){return typeof t=="string"&&t!==""?n+t:typeof t=="function"?n+t():""}#m(){let t=this.#r.columns??80,n=this.#y(this.#a,"-"),r=this.#b(this.#l,"-"),o=" ".repeat(this.#p)+n+"--"+this.#g+"--"+r;this.#e=0;for(let i of dr(o).split(`
8
+ `))this.#e+=Math.max(1,Math.ceil(rs(i,{countAnsiEscapeCodes:!0})/t))}get isEnabled(){return this.#u&&!this.#c}set isEnabled(t){if(typeof t!="boolean")throw new TypeError("The `isEnabled` option must be a boolean");this.#u=t}get isSilent(){return this.#c}set isSilent(t){if(typeof t!="boolean")throw new TypeError("The `isSilent` option must be a boolean");this.#c=t}frame(){let t=Date.now();(this.#o===-1||t-this.#d>=this.interval)&&(this.#o=++this.#o%this.#i.frames.length,this.#d=t);let{frames:n}=this.#i,r=n[this.#o];this.color&&(r=W[this.color](r));let o=typeof this.#a=="string"&&this.#a!==""?this.#a+" ":"",i=typeof this.text=="string"?" "+this.text:"",s=typeof this.#l=="string"&&this.#l!==""?" "+this.#l:"";return o+r+i+s}clear(){if(!this.#u||!this.#r.isTTY)return this;this.#r.cursorTo(0);for(let t=0;t<this.#s;t++)t>0&&this.#r.moveCursor(0,-1),this.#r.clearLine(1);return(this.#p||this.lastIndent!==this.#p)&&this.#r.cursorTo(this.#p),this.lastIndent=this.#p,this.#s=0,this}render(){return this.#c?this:(this.clear(),this.#r.write(this.frame()),this.#s=this.#e,this)}start(t){return t&&(this.text=t),this.#c?this:this.#u?this.isSpinning?this:(this.#t.hideCursor&&Xi.hide(this.#r),this.#t.discardStdin&&fr.default.stdin.isTTY&&(this.#n=!0,ls.start()),this.render(),this.#f=setInterval(this.render.bind(this),this.interval),this):(this.text&&this.#r.write(`- ${this.text}
9
+ `),this)}stop(){return this.#u?(clearInterval(this.#f),this.#f=void 0,this.#o=0,this.clear(),this.#t.hideCursor&&Xi.show(this.#r),this.#t.discardStdin&&fr.default.stdin.isTTY&&this.#n&&(ls.stop(),this.#n=!1),this):this}succeed(t){return this.stopAndPersist({symbol:pr.success,text:t})}fail(t){return this.stopAndPersist({symbol:pr.error,text:t})}warn(t){return this.stopAndPersist({symbol:pr.warning,text:t})}info(t){return this.stopAndPersist({symbol:pr.info,text:t})}stopAndPersist(t={}){if(this.#c)return this;let n=t.prefixText??this.#a,r=this.#y(n," "),o=t.symbol??" ",i=t.text??this.text,a=typeof i=="string"?(o?" ":"")+i:"",l=t.suffixText??this.#l,u=this.#b(l," "),c=r+o+a+u+`
10
+ `;return this.stop(),this.#r.write(c),this}}});function fs(e,{suffix:t="nodejs"}={}){if(typeof e!="string")throw new TypeError(`Expected a string, got ${typeof e}`);return t&&(e+=`-${t}`),ao.default.platform==="darwin"?mb(e):ao.default.platform==="win32"?hb(e):gb(e)}var Q,ps,ao,ht,ds,wn,mb,hb,gb,Uu=E(()=>{"use strict";Q=D(require("path"),1),ps=D(require("os"),1),ao=D(require("process"),1),ht=ps.default.homedir(),ds=ps.default.tmpdir(),{env:wn}=ao.default,mb=e=>{let t=Q.default.join(ht,"Library");return{data:Q.default.join(t,"Application Support",e),config:Q.default.join(t,"Preferences",e),cache:Q.default.join(t,"Caches",e),log:Q.default.join(t,"Logs",e),temp:Q.default.join(ds,e)}},hb=e=>{let t=wn.APPDATA||Q.default.join(ht,"AppData","Roaming"),n=wn.LOCALAPPDATA||Q.default.join(ht,"AppData","Local");return{data:Q.default.join(n,e,"Data"),config:Q.default.join(t,e,"Config"),cache:Q.default.join(n,e,"Cache"),log:Q.default.join(n,e,"Log"),temp:Q.default.join(ds,e)}},gb=e=>{let t=Q.default.basename(ht);return{data:Q.default.join(wn.XDG_DATA_HOME||Q.default.join(ht,".local","share"),e),config:Q.default.join(wn.XDG_CONFIG_HOME||Q.default.join(ht,".config"),e),cache:Q.default.join(wn.XDG_CACHE_HOME||Q.default.join(ht,".cache"),e),log:Q.default.join(wn.XDG_STATE_HOME||Q.default.join(ht,".local","state"),e),temp:Q.default.join(ds,t,e)}}});function lo(){return/[<>:"/\\|?*\u0000-\u001F]/g}function Vu(){return/^(con|prn|aux|nul|com\d|lpt\d)$/i}var Gu=E(()=>{"use strict"});function hr(e,t={}){let n=/[\u0000-\u001F\u0080-\u009F]/g,r=/([<>:"/\\|?*\u0000-\u001F]){2,}/g;if(typeof e!="string")throw new TypeError("Expected a string");let o=t.replacement===void 0?"!":t.replacement;if(lo().test(o)&&n.test(o))throw new Error("Replacement string cannot contain reserved filename characters");o.length>0&&(e=e.replace(r,"$1")),e=e.normalize("NFD"),e=e.replace(bb,o),e=e.replace(lo(),o),e=e.replace(n,o),e=e.replace(Db,""),o.length>0&&(!(e[0]===".")&&e[0]==="."&&(e=o+e),e[e.length-1]==="."&&(e+=o)),e=Vu().test(e)?e+o:e;let i=typeof t.maxLength=="number"?t.maxLength:yb;if(e.length>i){let s=e.lastIndexOf(".");if(s===-1)e=e.slice(0,i);else{let a=e.slice(0,s),l=e.slice(s);e=a.slice(0,Math.max(1,i-l.length))+l}}return e}var yb,bb,Db,ms=E(()=>{"use strict";Gu();yb=100,bb=/^\.+(\\|\/)|^\.+$/,Db=/\.+$/});var wb,qu=E(()=>{"use strict";wb=D(require("path"),1);ms()});var Hu=E(()=>{"use strict";ms();qu()});var uo,hs=E(()=>{"use strict";uo="webflow.json"});var Lt,gs=E(()=>{"use strict";Lt=class extends Error{constructor(t){super(`Manifest config for key "${t}" not found`),this.name="ManifestConfigKeyNotFoundError"}}});function Zu(e){ys=e}function re(){return ys}function gt(){return!ys}function Ku(e){Ju=e}function Yu(){return Ju}var ys,Ju,_e=E(()=>{"use strict";ys=!1});function Nt(){let e=Yu();if(e){if(e.endsWith(".json"))return{path:e,isUserDefined:!0};try{if((0,Xu.statSync)(e)?.isDirectory())return{path:(0,Qu.join)(e,uo),isUserDefined:!0}}catch{if(e.endsWith(".json"))return{path:e,isUserDefined:!0}}throw new Error(`Manifest path must be either a directory or a .json file. Got: ${e}`)}return{path:`./${uo}`,isUserDefined:!1}}var Xu,Qu,bs=E(()=>{"use strict";Xu=require("fs"),Qu=require("path");hs();_e()});var ec,vb,kb,Ds,tc=E(()=>{"use strict";ec=D(require("ajv")),vb=new ec.default,kb={type:"object",properties:{library:{type:"object",properties:{name:{type:"string",minLength:1},id:{type:"string",minLength:1},components:{type:"array",items:{type:"string"},minItems:1},renderer:{anyOf:[{type:"object",properties:{client:{type:"string",minLength:1},server:{type:"string",minLength:1}}},{type:"string",minLength:1}]},globals:{type:"string",minLength:1}},required:[]},devlink:{type:"object",properties:{rootDir:{type:"string",minLength:1},cssModules:{type:"boolean"},allowTelemetry:{type:"boolean"},overwriteModule:{type:"boolean"},skipTagSelectors:{type:"boolean"},envVariables:{type:"object",additionalProperties:{type:"string"}},components:{oneOf:[{type:"string"},{type:"array",items:{type:"string"}}]},fileExtensions:{type:"object",properties:{js:{type:"string"},css:{type:"string"}}},relativeHrefRoot:{oneOf:[{type:"boolean"},{type:"string"}]}},required:["rootDir"]},export:{type:"object",properties:{rootDir:{type:"string",minLength:1},components:{type:"string"},componentGroups:{type:"string"},ts:{type:"boolean"},cssScopes:{type:"boolean"},camelCaseVariantNames:{type:"boolean"},relativeHrefRoot:{oneOf:[{type:"boolean",const:!1},{type:"string"}]},treeShake:{type:"boolean"}},required:[]}}},Ds=vb.compile(kb)});function nc(e){return e instanceof Error?e:new Error("Unknown error")}function ne(){let{path:e}=Nt();if(!(0,co.existsSync)(e))return{manifest:{},manifestPath:e};let t;try{t=(0,co.readFileSync)(e,"utf8")}catch(o){throw new Error(`Failed to read manifest file: ${nc(o).message}`)}if(t.trim()==="")return{manifest:{},manifestPath:e};let r;try{r=JSON.parse(t)}catch(o){throw new Error(`Invalid JSON in manifest file: ${nc(o).message}`)}if(!Ds(r)){let o=Ds.errors?.map(i=>`${i.instancePath} ${i.message}`).join(", ")||"Unknown error";throw new Error(`Invalid manifest: ${o}.`)}return{manifest:r,manifestPath:e}}var co,ws=E(()=>{"use strict";co=require("fs");bs();tc()});function gr(e,t){let n=e[t];if(!n)throw new Lt(t);return n}var rc=E(()=>{"use strict";gs()});function le(e){let t=ne(),n=t.manifest,r=t.manifestPath,o={...n};for(let i in e){let s=i,a=e[s];if(a!==void 0)if(typeof a=="string"||typeof a=="number"||typeof a=="boolean"||a===null)o[s]=a;else{let l=o[s];o[s]={...typeof l=="object"&&l!==null?l:{},...a}}}(0,oc.writeFileSync)(r,JSON.stringify(o,null,2),"utf-8")}var oc,ic=E(()=>{"use strict";oc=require("fs");ws()});var De=E(()=>{"use strict";hs();gs();ws();bs();rc();ic()});var po=Mi((c2,xb)=>{xb.exports={name:"@webflow/webflow-cli",version:"1.14.0",license:"MIT",bin:{webflow:"./dist/index.js"},scripts:{build:"tsup",dev:"tsup",lint:"eslint .",test:"jest --ci","test:unit":"jest --ci --ignoreProjects e2e","test:local":"jest","test:e2e-cache-clear":"bash scripts/clear-e2e-cache.sh"},files:["CHANGELOG.md","dist/**/*"],publishConfig:{access:"public"},dependencies:{"@babel/preset-env":"^7.26.9","@babel/preset-react":"^7.26.3","@babel/preset-typescript":"^7.27.0","@dotenvx/dotenvx":"^1.44.1","@inquirer/prompts":"^7.9.0","@module-federation/enhanced":"0.20.0","@rspack/core":"^1.7.8","@webflow/data-types":"*",ajv:"^8.17.1",archiver:"^5.3.1","babel-loader":"^10.0.0",commander:"^10.0.0",cosmiconfig:"^8.2.0","css-loader":"^7.1.2","css-tree":"^2.3.1",dotenv:"^16.0.3","env-paths":"^3.0.0","fast-glob":"^3.3.3",filenamify:"^6.0.0","fork-ts-checker-webpack-plugin":"9.1.0","form-data":"4.0.4","fs-extra":"^11.3.0","jsonc-parser":"^3.2.0",md5:"^2.2.1",memfs:"4.17.0","mime-types":"^2.1.35","mini-css-extract-plugin":"^2.9.2","node-fetch":"^2.6.7",open:"^8.4.2",ora:"^8.2.0",postcss:"^8.5.6","postcss-loader":"^8.1.1","postcss-selector-parser":"^7.1.0",prettier:"^2.7.1",semver:"^7.7.2","serve-handler":"^6.1.5","source-map-support":"^0.5.21",tar:"^7.4.3","ts-checker-rspack-plugin":"^1.0.0","tsconfig-paths":"^4.2.0","tsconfig-paths-webpack-plugin":"^4.2.0",unionfs:"^4.5.4","webflow-api":"3.2.2",webpack:">=5.99.7 <5.106.0","webpack-merge":"^6.0.1","webpack-node-externals":"^3.0.0",zod:"^3.22.4"},devDependencies:{"@types/archiver":"^5.3.2","@types/css-tree":"^2.3.1","@types/express":"^4.17.13","@types/fs-extra":"^11.0.4","@types/jest":"^29.2.3","@types/md5":"^2.3.2","@types/mime-types":"^2.1.4","@types/nock":"^8.0.33","@types/node":"^18.16.0","@types/node-fetch":"2.6.13","@types/prettier":"^2.7.1","@types/serve-handler":"^6.1.1","@types/source-map":"^0.5.2","@types/webpack-node-externals":"^3.0.4",astro:"^5.17.2","eslint-config-custom":"*",express:"^4.18.1",jest:"^29.3.1",nock:"13.3.1",tar:"^7.4.3","ts-jest":"^29.0.3","ts-node":"^10.9.1",tsconfig:"*",tsup:"^8.4.0",typescript:"^4.9.3"},engines:{node:">=18.16.0"}}});function tt(){try{return po().version}catch{return"unknown"}}function qe(e=""){if(!e)return"";let t=e;t=t.replace(/\/.*?\/webflow-cli/gi,"/REDACTED_PII/webflow-cli"),t=t.replace(/\/.*?\/node_modules/gi,"/REDACTED_PII/node_modules");let n=yr.default.homedir();if(n){let o=new RegExp(n.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),"gi");t=t.replace(o,"~/REDACTED_PII")}let r=yr.default.userInfo().username;if(r){let o=new RegExp(`/Users/${r}`,"gi");t=t.replace(o,"/Users/REDACTED_PII")}return t=t.replace(/\/Users\/[^\/\s]+/gi,"/Users/REDACTED_PII"),t=t.replace(/C:\\Users\\[^\\]+/gi,"C:\\Users\\REDACTED_PII"),t=t.replace(/[a-zA-Z0-9]{32,}/g,"[REDACTED_TOKEN]"),t=t.replace(/Bearer\s+[^\s]+/gi,"Bearer [REDACTED_TOKEN]"),t=t.replace(/token[=:]\s*[^\s]+/gi,"token=[REDACTED_TOKEN]"),t=t.replace(/\b[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+\.[A-Z|a-z]{2,}\b/g,"[REDACTED_EMAIL]"),t=t.replace(/\b(?:[0-9]{1,3}\.){3}[0-9]{1,3}\b/g,"[REDACTED_IP]"),t}function vs(e){if(e.stack)return qe(e.stack)}function yt(e){let t=["password","token","secret","key","auth","bearer","authorization","apikey","api_key","access_token","refresh_token","client_secret","private_key"],n={};for(let[r,o]of Object.entries(e)){let i=r.toLowerCase();t.some(s=>i.includes(s))?n[r]="[REDACTED]":typeof o=="string"?n[r]=qe(o):typeof o=="object"&&o!==null&&!Array.isArray(o)?n[r]=yt(o):Array.isArray(o)?n[r]=o.map(s=>typeof s=="object"&&s!==null?yt(s):typeof s=="string"?qe(s):s):n[r]=o}return n}function sc(){return{platform:process.platform,nodeVersion:process.version,arch:process.arch,os:`${yr.default.type()} ${yr.default.release()}`}}function ks(){let e=Date.now().toString(36),t=Math.random().toString(36).substring(2,8);return`${e}-${t}`}var yr,br=E(()=>{"use strict";yr=D(require("os"))});var me,Ne,vn,kn,xs,ac,nt=E(()=>{"use strict";Ge();me=W.green("\u2714"),Ne=W.red("\u2716"),vn=W.cyan("\u2139"),kn=W.green("\u279C"),xs=W.red("\u279C"),ac=W.yellow("\u26A0")});var bt,Cs=E(()=>{"use strict";Ge();De();br();q();nt();bt=class e{static instance;cache=void 0;static isDoNotTrackEnabled(){let t=process.env.DO_NOT_TRACK;return t==="1"||t?.toLowerCase()==="true"}static getInstance(){return e.instance||(e.instance=new e),e.instance}async getPreference(){if(e.isDoNotTrackEnabled())return!1;if(this.cache!==void 0)return this.cache;try{let{manifest:t}=await ne(),n=t?.telemetry?.global?.allowTelemetry;return this.cache=n,n}catch{return}}async setPreference(t){this.cache=t,await this.setGlobalPreference(t)}async promptForConsent(t){return e.isDoNotTrackEnabled()?(d.info(`${vn} Telemetry is disabled because the DO_NOT_TRACK environment variable is set.`),!1):(d.info(`${vn} Telemetry is enabled. Usage data and error reports help us improve Webflow CLI.`),d.info(`${vn} To opt out, run: ${W.blue("webflow auth telemetry --disable")}`),await this.setPreference(!0),!0)}clearCache(){this.cache=void 0}async getGlobalPreference(){return this.getPreference()}async setGlobalPreference(t){let n={telemetry:{global:{allowTelemetry:t,lastPrompted:Date.now(),version:tt()}}};await le(n),this.cache=t}async hasGlobalPreference(){return await this.getPreference()!==void 0}async getTelemetryStatus(){let t=await this.getPreference();return t!==void 0?{enabled:t,source:"global",hasPreference:!0}:{enabled:!1,source:"none",hasPreference:!1}}setCacheValue(t,n){this.cache=n}}});async function Me(e,t){let r={"User-Agent":`webflow-cli@${tt()}`};return(0,lc.default)(e,{...t,headers:{...t?.headers,...r}})}var lc,xn=E(()=>{"use strict";lc=D(require("node-fetch"));Dt()});var uc,cc=E(()=>{"use strict";uc=e=>{try{let t=new URL(e);return!(!["http:","https:"].includes(t.protocol)||e.includes("?")||e.includes("#")||t.search||t.hash)}catch{return!1}}});var Fs,oe,fo,Cn,Dr,_s,wr,vr,Fn,ue=E(()=>{"use strict";cc();Fs=(e,t)=>(uc(t)||(console.error(`Error: Invalid ${e} environment variable. Only valid plain HTTP/HTTPS URLs without query parameters and anchors is allowed.`),process.exit(1)),t),oe=process.env.WEBFLOW_API_HOST?Fs("WEBFLOW_API_HOST",process.env.WEBFLOW_API_HOST):"https://api.webflow.com",fo=process.env.WEBFLOW_CDN_API_HOST?Fs("WEBFLOW_CDN_API_HOST",process.env.WEBFLOW_CDN_API_HOST):"https://api-cdn.webflow.com",Cn=process.env.WEBFLOW_HOST?Fs("WEBFLOW_HOST",process.env.WEBFLOW_HOST):"https://webflow.com",Dr="wf-manifest.json",_s="mf-manifest.json",wr="@webflow_renderer",vr="ssr-bundle.tar",Fn="index.js"});var we,Es=E(()=>{"use strict";Cs();br();q();xn();ue();we=class e{config;consentManager;sessionId;platformInfo;constructor(t){this.config=t,this.consentManager=bt.getInstance(),this.sessionId=ks(),this.platformInfo=sc()}async sendEvent(t){try{if(!await this.isEnabled())return;let n=this.enrichEvent(t),r=this.sanitizeEvent(n);await this.transmitEvent(r)}catch(n){d.debug(`Failed to send telemetry event: ${n}`)}}async sendError(t,n,r){await this.sendEvent({eventType:"error",success:!1,name:t.name,message:t.message,cause:t.cause,stack:vs(t),context:n,metadata:r?yt(r):void 0})}async sendUsage(t,n){let{duration:r,...o}=n??{};await this.sendEvent({eventType:"usage",success:!0,feature:t,duration:typeof r=="number"?r:void 0,data:Object.keys(o).length>0?yt(o):void 0})}async sendPerformance(t,n,r){await this.sendEvent({eventType:"performance",operation:t,duration:n,metrics:r})}async isEnabled(){return await this.consentManager.getPreference()!==!1}async isGloballyEnabled(){return await this.consentManager.getGlobalPreference()!==!1}async updatePreferences(t){await this.consentManager.setPreference(t)}static async promptForConsentIfNeeded(t){let n=bt.getInstance(),r=await n.getPreference();return r!==void 0?r:await n.promptForConsent(t)}enrichEvent(t){return{...{eventType:t.eventType||"usage",timestamp:Date.now(),sessionId:this.sessionId,platform:this.platformInfo.platform,nodeVersion:this.platformInfo.nodeVersion,cliVersion:tt(),command:process.argv.slice(2).join(" ")||void 0,metadata:{...t.metadata,commandType:this.config.commandType,siteId:this.config.siteId,projectId:this.config.projectId,os:this.platformInfo.os,arch:this.platformInfo.arch}},...t}}sanitizeEvent(t){let n=JSON.parse(JSON.stringify(t));return n.message&&(n.message=qe(n.message)),n.stack&&(n.stack=qe(n.stack)),n.context&&(n.context=qe(n.context)),n.metadata&&(n.metadata=yt(n.metadata)),n.data&&(n.data=yt(n.data)),n}async transmitEvent(t){let n=this.getEndpoint(),r=process.env.WEBFLOW_TELEMETRY_DEBUG==="true";if(r){console.log(`\u{1F4CA} [Telemetry] Sending to: ${n}`);let i={...t};i.metadata&&(delete i.metadata.authToken,delete i.metadata.apiToken),console.log("\u{1F4CA} [Telemetry] Payload:",JSON.stringify(i,null,2))}let o=await Me(n,{method:"POST",headers:{Authorization:`Bearer ${this.config.authToken}`,"Content-Type":"application/json"},body:JSON.stringify(t),timeout:5e3});if(o.ok)r&&console.log(`\u{1F4CA} [Telemetry] Request successful: ${o.status}`);else throw r&&console.error(`\u{1F4CA} [Telemetry] Request failed: ${o.status} ${o.statusText}`),new Error(`Telemetry request failed: ${o.status} ${o.statusText}`)}getEndpoint(){let{host:t,commandType:n}=this.config;return`${t}/webflow-cli/${n}/telemetry`}static forDevlinkSync(t){return new e({host:t.host||oe,authToken:t.authToken,siteId:t.siteId,commandType:"devlink"})}static forExport(t){return new e({host:t.host||oe,authToken:t.authToken,siteId:t.siteId,commandType:"export"})}static forCloud(t){return new e({host:t.host||oe,authToken:t.authToken,siteId:t.siteId,projectId:t.projectId,commandType:"cloud"})}static forExtension(t){return new e({host:t.host||oe,authToken:t.authToken,siteId:t.siteId,commandType:"extension"})}static forCodeLibraries(t){return new e({host:t.host||oe,authToken:t.authToken,commandType:"library"})}}});var pc=E(()=>{"use strict"});function dc(e){return async(t,n,r)=>{let o=Date.now(),i=process.memoryUsage().heapUsed;try{let s=await n(),a=Date.now()-o,l=process.memoryUsage().heapUsed;return await e.sendPerformance(t,a,{memoryDelta:l-i,...r}),s}catch(s){let a=Date.now()-o;throw await e.sendPerformance(t,a,{failed:1,...r}),s}}}var Dt=E(()=>{"use strict";Es();Cs();pc();br();br()});var Ts,Ss,Cb,rt,As=E(()=>{"use strict";Ts=Symbol("webflow-cli-warn"),Ss=class{warnings=[];originalConsoleWarn=null;isActive=!1;parseSource(t){let n=t.split(`
11
+ `);for(let r=2;r<n.length;r++){let o=n[r],i=o.match(/at .+? \((.+?):\d+:\d+\)/)||o.match(/at (.+?):\d+:\d+/);if(i){let s=i[1];if(s.includes("node_modules")){let a=s.match(/node_modules\/(@?[^/]+(?:\/[^/]+)?)/);return a?`External: ${a[1]}`:"External Dependencies"}else if(s.includes("webflow-cli"))return s.includes("/metadata/")?"Metadata Collection":s.includes("/bundler/")?"Bundling":s.includes("/commands/")?"CLI Commands":"Webflow CLI"}}return"General"}start(){this.isActive||(this.warnings=[],this.originalConsoleWarn=console.warn,this.isActive=!0,console.warn=(...t)=>{if(t.length>1&&t[t.length-1]===Ts){let i=t.slice(0,-1);this.originalConsoleWarn&&this.originalConsoleWarn(...i);return}let n=t.map(i=>{if(typeof i=="string")return i;if(i instanceof Error)return i.message;try{return String(i)}catch{return"[Object]"}}).join(" "),r=new Error().stack||"",o=this.parseSource(r);this.warnings.push({message:n,timestamp:Date.now(),source:o,stackTrace:r})})}stop(){this.isActive&&(this.originalConsoleWarn&&(console.warn=this.originalConsoleWarn,this.originalConsoleWarn=null),this.isActive=!1)}displayGrouped(){if(this.warnings.length===0)return;console.log(`
12
12
  \u26A0\uFE0F Warnings:
13
13
  `);let t=this.warnings.reduce((n,r)=>{let o=r.source||"General";return n[o]||(n[o]=[]),n[o].push(r),n},{});Object.entries(t).forEach(([n,r])=>{n!=="General"&&console.log(` ${n}:`),r.forEach((o,i)=>{let s=n!=="General"?" ":" ",a=o.message||"[Empty warning message]";console.log(`${s}${i+1}. ${a}`)}),n!=="General"&&console.log("")}),t.General&&console.log("")}debug(){console.log(`
14
14
  \u{1F41B} Debug: Captured Warnings
15
15
  `),this.warnings.forEach((t,n)=>{console.log(`Warning ${n+1}:`),console.log(` Source: ${t.source}`),console.log(` Message: ${t.message}`),console.log(` Message length: ${t.message.length}`),console.log(` Timestamp: ${new Date(t.timestamp).toISOString()}`),t.stackTrace&&(console.log(" Stack (first 3 lines):"),t.stackTrace.split(`
16
- `).slice(0,3).forEach(r=>{console.log(` ${r}`)})),console.log("")})}},dD=new Js,pt=dD});function fD(e){return e.replace(/\x1b\[[0-9;]*[a-zA-Z]/g,"")}function Mc(e,t){if(!e)return t;let n=parseInt(e,10);return isNaN(n)||n<=0?t:n}function Et(e){Br.push(Xe(e)),Br.length>gD&&Br.shift()}function $c(e){Xs=e}function bD(e){return Et(`DEBUG: ${e}`),e}function DD(e){return Et(`INFO: ${e}`),e}function wD(e){return Et(`WARN: ${e}`),e}function vD(e,t){let n=e instanceof Error?e.stack||e.message:e,r=t?.prefix?`${t.prefix} `:"";Et(`ERROR: ${r}${n}`),Qs=!0;let o=e instanceof Error?e.message:e;return`${r}${o}`}function kD(e){return Et(`SUCCESS: ${e}`),`${z.green(e)}`}function xD(e){let t=Fn(`${e}...`).start(),n=!1,r=o=>i=>{Et(`${{succeed:"INFO",fail:"ERROR",warn:"WARN",info:"INFO"}[o]||"INFO"}: ${i||e}`),o==="fail"&&(Qs=!0),!n&&(n=!0,t[o](i||e))};return{succeed:r("succeed"),fail:r("fail"),warn:r("warn"),info:r("info")}}function CD(){let e=Pn.default.readdirSync(xe).filter(t=>t.endsWith(".log")).map(t=>({name:t,time:Pn.default.statSync(Oo.default.join(xe,t)).mtime.getTime()})).sort((t,n)=>n.time-t.time);for(;e.length>=hD;)try{let t=e.pop();if(!t)break;Pn.default.removeSync(Oo.default.join(xe,t.name))}catch{}}function ea(e){try{let t=process.argv.slice(2).join(" ");if(/^(log|library\s+log)(\s|$)/.test(t))return;Pn.default.ensureDirSync(xe),CD(),Br.unshift(`CLI Version: ${at()}`,`Node Version: ${process.version}`,`Platform: ${process.platform}`,`Architecture: ${process.arch}`,`Command: ${t||"N/A"}`,`Exit Code: ${e??0}`,`Memory Usage: ${Math.round(process.memoryUsage().heapUsed/1024/1024)}MB`,`Timestamp: ${new Date().toISOString()}`,...Xs?[`Sync ID: ${Xs}`]:[],"");let n=Br.map(fD);Pn.default.writeFileSync(Ys,n.join(`
17
- `)),Qs&&(console.info(`
18
- ${We} An error occurred. See logs for more information:`),console.info(`${Us} Latest log: ${Ys}`),console.info(`${Us} All logs: ${xe}`)),(process.env.DEBUG||process.argv.includes("--verbose"))&&(console.info(`
19
- ${le} Command completed successfully. Logs written to:`),console.info(`${Sn} Latest log: ${Ys}`),console.info(`${Sn} All logs: ${xe}`))}catch(t){console.error("Failed to write logs:",t)}}var Pn,Oo,YS,mD,xe,hD,gD,yD,Ys,Br,Qs,Xs,In,d,G=k(()=>{"use strict";Pn=D(require("fs-extra")),Oo=D(require("path"));Ke();YS=require("source-map-support/register");Ts();yc();vc();ut();Ks();lt();mD=Ps("webflow-cli"),xe=mD.log;hD=Mc(process.env.MAX_PERSISTED_LOGS,50),gD=Mc(process.env.MAX_IN_MEMORY_LOGS,1e3),yD=`${_r(new Date().toISOString(),{replacement:"_"}).replace(/\./g,"_")}-debug.log`,Ys=Oo.default.join(xe,yD);Br=[],Qs=!1;In=!1;process.on("uncaughtException",e=>{In||(In=!0,Et(`UNCAUGHT EXCEPTION: ${e?.stack}`),ea(1)),pt.displayGrouped(),pt.stop(),process.exit(1)});process.on("unhandledRejection",e=>{In||(In=!0,Et(`UNHANDLED REJECTION: ${e?.stack}`),ea(1)),pt.displayGrouped(),pt.stop(),process.exit(1)});process.on("exit",e=>{In||(In=!0,ea(e))});d={debug:e=>{let t=bD(e);process.env.DEBUG&&console.debug(t)},dir:e=>console.dir(e,{depth:100}),info:e=>console.info(DD(e)),warn:e=>console.warn(wD(e),Zs),error:(e,t)=>{console.error(vD(e,t))},success:e=>console.log(kD(e)),spinner:xD}});async function Io(e){try{return await e()}catch(t){throw t instanceof Error&&FD.test(t.message)&&(d.debug(t.message),process.exit(130)),t}}async function ge(e){return te()?e.default??!1:Io(()=>Ft.confirm(e))}async function Ae(e){return te()?"default"in e?e.default:null:Io(()=>Ft.select(e))}async function ye(e){return te()?e.default!==void 0?await e.validate?.(e.default)!==!0?null:e.default:null:Io(()=>Ft.input(e))}async function Bo(e){if(te()){let t=[];return await e.validate?.(t)!==!0?null:t}return Io(()=>Ft.checkbox(e))}var Ft,FD,Ue=k(()=>{"use strict";Ft=D(require("@inquirer/prompts"));ke();G();FD=/SIGINT/i});function Kt({siteId:e,siteApiToken:t,workspaceApiToken:n,directory:r}){let o=Lr.resolve(r?Lr.join(r,".env"):Lr.join(process.cwd(),".env"));r&&!Zt.existsSync(r)&&Zt.mkdirSync(r,{recursive:!0}),Zt.existsSync(o)||Zt.writeFileSync(o,`# automatically generated at ${new Date().toISOString()}`,{encoding:"utf8"}),jr.default.config({path:o,quiet:!0}),e&&jr.default.set("WEBFLOW_SITE_ID",e,{path:o,encrypt:!1}),t&&jr.default.set("WEBFLOW_SITE_API_TOKEN",t,{path:o,encrypt:!1}),n&&jr.default.set("WEBFLOW_WORKSPACE_API_TOKEN",n,{path:o,encrypt:!1})}var Zt,Lr,jr,oa=k(()=>{"use strict";Zt=D(require("fs")),Lr=D(require("path")),jr=D(require("@dotenvx/dotenvx"))});var Nr,ia=k(()=>{"use strict";pe();Nr={serverUrl:An,timeoutMs:5*60*1e3}});var Jc,Zc,Kc,Yc,TD,Xc,AD,Qc,ep=k(()=>{"use strict";Jc=require("crypto"),Zc=D(require("open"));ia();G();Tn();Kc=e=>{let t=new Uint8Array(e);return Jc.webcrypto.getRandomValues(t),Array.from(t,n=>n.toString(16).padStart(2,"0")).join("")},Yc=({pollId:e,clientId:t,scope:n})=>`${Nr.serverUrl}/oauth/webflow/initiate?pollId=${e}&clientId=${t}&scope=${encodeURIComponent(n.join(" "))}`,TD=e=>`${Nr.serverUrl}/oauth/webflow/poll?pollId=${e}`,Xc=async e=>{let t=d.spinner("Opening browser for authentication. Please follow the instructions in your browser");try{await new Promise(n=>setTimeout(n,3e3)),await(0,Zc.default)(e),t.succeed()}catch{t.fail(),d.warn(`Could not automatically open browser. Please open this URL manually: ${e}`)}},AD=async e=>{let t=TD(e),n=await ze(t);if(!n.ok){let r=`Failed to poll for authentication status (${n.status})`;try{let o=await n.json();o&&o.error&&(r+=`: ${o.error}`)}catch{}throw new Error(r)}return n.json()},Qc=(e,t)=>{let n=d.spinner("Waiting for authentication");return new Promise((r,o)=>{let i=setTimeout(()=>{clearTimeout(i),clearInterval(s),o(new Error("Authentication timed out. Please try again."))},t),s=setInterval(async()=>{try{let a=await AD(e);a.status==="success"&&a.accessToken?(clearTimeout(i),clearInterval(s),n.succeed("Authentication successful! You can close the browser window."),r(a.accessToken)):a.status==="error"&&(clearTimeout(i),clearInterval(s),n.fail("Authentication failed"),o(new Error(a.error||"Authentication failed")))}catch(a){clearTimeout(i),clearInterval(s),n.fail("Authentication failed"),o(a instanceof Error?a:new Error(String(a)))}},2e3)})}});var S,de=k(()=>{"use strict";S=class e extends Error{prefix;skipLogging;constructor(t,n){let r=t instanceof Error?t.message:String(t);super(r),this.name="CLIError",this.prefix=n?.prefix,this.skipLogging=n?.skipLogging??!1,t instanceof Error?(this.cause=t,this.stack=t.stack):Error.captureStackTrace&&Error.captureStackTrace(this,e)}}});var tp=k(()=>{"use strict"});async function Bn({clientId:e,scope:t}){let n=Kc(16);try{let r=Yc({pollId:n,clientId:e,scope:t});return await Xc(r),await Qc(n,Nr.timeoutMs)}catch(r){throw new S(r)}}async function jo(e){try{let n=await new Mr.WebflowClient({accessToken:e,environment:{base:`${H}/v2`,dataApi:`${H}/v2`,contentDeliveryApi:`${ct}/v2`,production:`${H}/v2`,cdn:`${ct}/v2`}}).sites.list();if(!n||typeof n!="object"||!n.sites||!Array.isArray(n.sites))throw new S("Invalid response from Webflow API");return n.sites.map(r=>({id:r.id,displayName:r.displayName,shortName:r.shortName||r.displayName.toLowerCase().replace(/\s+/g,"-")}))}catch(t){throw new S(t,{prefix:`Failed to fetch Webflow sites. Please check your authorization.
20
- `})}}async function $r(e,t){try{let r=await new Mr.WebflowClient({accessToken:e,environment:{base:`${H}/v2`,dataApi:`${H}/v2`,contentDeliveryApi:`${ct}/v2`,production:`${H}/v2`,cdn:`${ct}/v2`}}).sites.get(t);return{id:r.id||t,displayName:r.displayName||"Unknown Site",shortName:r.shortName||"unknown-site",customDomains:r.customDomains?.map(o=>({id:o.id||"",url:o.url||""}))||[]}}catch(n){throw new S(n,{prefix:"Error fetching site details:"})}}async function sa(e,t){try{return{customDomains:(await new Mr.WebflowClient({accessToken:e,environment:{base:`${H}/v2`,dataApi:`${H}/v2`,contentDeliveryApi:`${ct}/v2`,production:`${H}/v2`,cdn:`${ct}/v2`}}).sites.getCustomDomain(t)).customDomains?.map(o=>({id:o.id||"",url:o.url||""}))||[]}}catch(n){throw new S(n,{prefix:"Error fetching custom domains:"})}}async function aa(e){try{let t=await fetch(`https://${e}/manifest.json`);if(!t.ok)throw new Error(`HTTP ${t.status}: ${t.statusText}`);return await t.json()}catch(t){throw new S(t,{prefix:`Failed to fetch manifest from ${e}:`})}}function la(e,t,n){return e.cosmic&&Array.isArray(e.cosmic)?e.cosmic.some(r=>{if(r.mountPath!==t)return!1;if(!n)return!0;if(r.workerUrl)try{return new URL(r.workerUrl).hostname.split(".")[0]===n}catch{return!1}return!1}):!1}async function np(e,t,n){try{let r=new Mr.WebflowClient({accessToken:e,environment:{base:`${H}/v2`,dataApi:`${H}/v2`,contentDeliveryApi:`${ct}/v2`,production:`${H}/v2`,cdn:`${ct}/v2`}}),o=await $r(e,t),i=[];if(n?.domains&&n.domains.length>0)for(let s of n.domains){let a=o.customDomains?.find(u=>u.url===s);a?.id&&i.push(a.id)}await r.sites.publish(t,{customDomains:i,publishToWebflowSubdomain:n?.publishToWebflowSubdomain??!0})}catch(r){throw new S(r,{prefix:"Error publishing site:"})}}async function Lo(e){let t=await Ae({message:"Select the Webflow site you want to connect:",choices:e.map(n=>({name:n.displayName,value:n}))});return t||(console.warn("Auto fallback to first site:",e[0].displayName),e[0])}var Mr,Rn=k(()=>{"use strict";Ue();Mr=require("webflow-api");ia();ep();pe();pe();de();tp();oa()});function pa(e){let t=e.siteId??process.env.WEBFLOW_SITE_ID,n=process.env.WEBFLOW_SITE_API_TOKEN;return t&&n?{siteId:t,accessToken:n}:null}function OD(){return process.env.WEBFLOW_SITE_API_TOKEN??null}function PD(e){let t=e.siteId??process.env.WEBFLOW_SITE_ID??null;return t&&!e.siteId&&ae({siteId:t}),t}async function No(e,t){let n=d.spinner("Loading Webflow credentials"),r=t?.site??PD(e),o,i=t?.apiToken??OD();if(te()&&(!r||!i||t?.force))throw r?(n.fail("No API token found for site exports"),new S(`To authenticate in CI/CD environments:
21
- 1. Run 'webflow auth login' locally to authenticate
22
- 2. Copy the WEBFLOW_SITE_ID and WEBFLOW_SITE_API_TOKEN from your .env file
23
- 3. Set these as environment variables in your CI/CD pipeline`)):(n.fail("No site ID configured for this project"),new S(`Run 'webflow auth login' locally to authenticate and associate this project with a Webflow site,
24
- or provide --site and --api-token when running a CLI command`));if((!i||t?.force)&&(n.info(`\u{1F510} Starting Webflow authentication...
25
- `),i=await Bn({clientId:ua,scope:ca}),Kt({siteApiToken:i}),n.succeed("Webflow authentication succeeded")),n.succeed("Webflow credentials loaded"),!r||t?.force){n=d.spinner("Fetching your Webflow sites");let s=await jo(i);if(s.length===0)throw n.fail("No Webflow sites found in your account"),new S("Please make sure you have at least one authorized site in your Webflow account");n.succeed(`Found ${s.length} site${s.length>1?"s":""} in your account`);let a=s.length>1?await Lo(s):s[0];r=a.id,o=a.displayName,Kt({siteId:r}),ae({siteId:r})}return{siteId:r,siteName:o,accessToken:i}}function Ve(){let{manifest:e}=oe(),t=pa(e);if(!t)throw new S(`Error: Missing required environment variables:
26
- - WEBFLOW_SITE_ID
27
- - WEBFLOW_SITE_API_TOKEN
16
+ `).slice(0,3).forEach(r=>{console.log(` ${r}`)})),console.log("")})}},Cb=new Ss,rt=Cb});function Fb(e){return e.replace(/\x1b\[[0-9;]*[a-zA-Z]/g,"")}function mc(e,t){if(!e)return t;let n=parseInt(e,10);return isNaN(n)||n<=0?t:n}function wt(e){kr.push(qe(e)),kr.length>Sb&&kr.shift()}function Ab(e){return wt(`DEBUG: ${e}`),e}function Ob(e){return wt(`INFO: ${e}`),e}function Pb(e){return wt(`WARN: ${e}`),e}function Bb(e,t){let n=e instanceof Error?e.stack||e.message:e,r=t?.prefix?`${t.prefix} `:"";wt(`ERROR: ${r}${n}`),Ps=!0;let o=e instanceof Error?e.message:e;return`${r}${o}`}function Ib(e){return wt(`SUCCESS: ${e}`),`${W.green(e)}`}function jb(e){let t=Dn(`${e}...`).start(),n=!1,r=o=>i=>{wt(`${{succeed:"INFO",fail:"ERROR",warn:"WARN",info:"INFO"}[o]||"INFO"}: ${i||e}`),o==="fail"&&(Ps=!0),!n&&(n=!0,t[o](i||e))};return{succeed:r("succeed"),fail:r("fail"),warn:r("warn"),info:r("info")}}function Rb(){let e=_n.default.readdirSync(ve).filter(t=>t.endsWith(".log")).map(t=>({name:t,time:_n.default.statSync(mo.default.join(ve,t)).mtime.getTime()})).sort((t,n)=>n.time-t.time);for(;e.length>=Eb;)try{let t=e.pop();if(!t)break;_n.default.removeSync(mo.default.join(ve,t.name))}catch{}}function Bs(e){try{let t=process.argv.slice(2).join(" ");if(/^(log|library\s+log)(\s|$)/.test(t))return;_n.default.ensureDirSync(ve),Rb(),kr.unshift(`CLI Version: ${tt()}`,`Node Version: ${process.version}`,`Platform: ${process.platform}`,`Architecture: ${process.arch}`,`Command: ${t||"N/A"}`,`Exit Code: ${e??0}`,`Memory Usage: ${Math.round(process.memoryUsage().heapUsed/1024/1024)}MB`,`Timestamp: ${new Date().toISOString()}`,...fc?[`Sync ID: ${fc}`]:[],"");let n=kr.map(Fb);_n.default.writeFileSync(Os,n.join(`
17
+ `)),Ps&&(console.info(`
18
+ ${Ne} An error occurred. See logs for more information:`),console.info(`${xs} Latest log: ${Os}`),console.info(`${xs} All logs: ${ve}`)),(process.env.DEBUG||process.argv.includes("--verbose"))&&(console.info(`
19
+ ${me} Command completed successfully. Logs written to:`),console.info(`${kn} Latest log: ${Os}`),console.info(`${kn} All logs: ${ve}`))}catch(t){console.error("Failed to write logs:",t)}}var _n,mo,z2,_b,ve,Eb,Sb,Tb,Os,kr,Ps,fc,En,d,q=E(()=>{"use strict";_n=D(require("fs-extra")),mo=D(require("path"));Ge();z2=require("source-map-support/register");cs();Uu();Hu();Dt();As();nt();_b=fs("webflow-cli"),ve=_b.log;Eb=mc(process.env.MAX_PERSISTED_LOGS,50),Sb=mc(process.env.MAX_IN_MEMORY_LOGS,1e3),Tb=`${hr(new Date().toISOString(),{replacement:"_"}).replace(/\./g,"_")}-debug.log`,Os=mo.default.join(ve,Tb);kr=[],Ps=!1;En=!1;process.on("uncaughtException",e=>{En||(En=!0,wt(`UNCAUGHT EXCEPTION: ${e?.stack}`),Bs(1)),rt.displayGrouped(),rt.stop(),process.exit(1)});process.on("unhandledRejection",e=>{En||(En=!0,wt(`UNHANDLED REJECTION: ${e?.stack}`),Bs(1)),rt.displayGrouped(),rt.stop(),process.exit(1)});process.on("exit",e=>{En||(En=!0,Bs(e))});d={debug:e=>{let t=Ab(e);process.env.DEBUG&&console.debug(t)},dir:e=>console.dir(e,{depth:100}),info:e=>console.info(Ob(e)),warn:e=>console.warn(Pb(e),Ts),error:(e,t)=>{console.error(Bb(e,t))},success:e=>console.log(Ib(e)),spinner:jb}});async function go(e){try{return await e()}catch(t){throw t instanceof Error&&Nb.test(t.message)&&(d.debug(t.message),process.stdin.isTTY&&typeof process.stdin.setRawMode=="function"&&process.stdin.setRawMode(!1),process.exit(130)),t}}async function ot(e){return re()?e.default??!1:go(()=>vt.confirm(e))}async function Ee(e){return re()?"default"in e?e.default:null:go(()=>vt.select(e))}async function $e(e){return re()?e.default!==void 0?await e.validate?.(e.default)!==!0?null:e.default:null:go(()=>vt.input(e))}async function yo(e){if(re()){let t=[];return await e.validate?.(t)!==!0?null:t}return go(()=>vt.checkbox(e))}var vt,Nb,it=E(()=>{"use strict";vt=D(require("@inquirer/prompts"));_e();q();Nb=/SIGINT/i});function bo({apiToken:e,directory:t}){let n=Cr.resolve(t?Cr.join(t,".env"):Cr.join(process.cwd(),".env"));t&&!Wt.existsSync(t)&&Wt.mkdirSync(t,{recursive:!0}),Wt.existsSync(n)||Wt.writeFileSync(n,`# automatically generated at ${new Date().toISOString()}`,{encoding:"utf8"}),Ls.default.config({path:n,quiet:!0}),e&&Ls.default.set("WEBFLOW_API_TOKEN",e,{path:n,encrypt:!1})}var Wt,Cr,Ls,Ns=E(()=>{"use strict";Wt=D(require("fs")),Cr=D(require("path")),Ls=D(require("@dotenvx/dotenvx"))});var T,ce=E(()=>{"use strict";T=class e extends Error{prefix;skipLogging;constructor(t,n){let r=t instanceof Error?t.message:String(t);super(r),this.name="CLIError",this.prefix=n?.prefix,this.skipLogging=n?.skipLogging??!1,t instanceof Error?(this.cause=t,this.stack=t.stack):Error.captureStackTrace&&Error.captureStackTrace(this,e)}}});var Fr,Ms=E(()=>{"use strict";ue();Fr={serverUrl:Cn,timeoutMs:5*60*1e3}});var kc,xc,Cc,Fc,zb,_c,Wb,Ec,Sc=E(()=>{"use strict";kc=require("crypto"),xc=D(require("open"));Ms();q();xn();Cc=e=>{let t=new Uint8Array(e);return kc.webcrypto.getRandomValues(t),Array.from(t,n=>n.toString(16).padStart(2,"0")).join("")},Fc=({pollId:e,clientId:t,scope:n})=>`${Fr.serverUrl}/oauth/webflow/initiate?pollId=${e}&clientId=${t}&scope=${encodeURIComponent(n.join(" "))}`,zb=e=>`${Fr.serverUrl}/oauth/webflow/poll?pollId=${e}`,_c=async e=>{let t=d.spinner("Opening browser for authentication. Please follow the instructions in your browser");try{await new Promise(n=>setTimeout(n,3e3)),await(0,xc.default)(e),t.succeed()}catch{t.fail(),d.warn(`Could not automatically open browser. Please open this URL manually: ${e}`)}},Wb=async e=>{let t=zb(e),n=await Me(t);if(!n.ok){let r=`Failed to poll for authentication status (${n.status})`;try{let o=await n.json();o&&o.error&&(r+=`: ${o.error}`)}catch{}throw new Error(r)}return n.json()},Ec=(e,t)=>{let n=d.spinner("Waiting for authentication");return new Promise((r,o)=>{let i=setTimeout(()=>{clearTimeout(i),clearInterval(s),o(new Error("Authentication timed out. Please try again."))},t),s=setInterval(async()=>{try{let a=await Wb(e);a.status==="success"&&a.accessToken?(clearTimeout(i),clearInterval(s),n.succeed("Authentication successful! You can close the browser window."),r(a.accessToken)):a.status==="error"&&(clearTimeout(i),clearInterval(s),n.fail("Authentication failed"),o(new Error(a.error||"Authentication failed")))}catch(a){clearTimeout(i),clearInterval(s),n.fail("Authentication failed"),o(a instanceof Error?a:new Error(String(a)))}},2e3)})}});function Do(){if(process.env.WEBFLOW_API_TOKEN)return process.env.WEBFLOW_API_TOKEN;let e=process.env.WEBFLOW_WORKSPACE_API_TOKEN??process.env.WEBFLOW_SITE_API_TOKEN??null;return e&&!Tc&&(Tc=!0,d.warn(`${ac} WEBFLOW_SITE_API_TOKEN / WEBFLOW_WORKSPACE_API_TOKEN are deprecated. Please use WEBFLOW_API_TOKEN instead. Run 'webflow auth login --force' to update your .env file.`)),e}async function Ut(e){if(e?.apiToken&&!e.force)return e.apiToken;if(!e?.force){let r=Do();if(r)return r}if(re())throw new T(`No API token found. To authenticate in CI/CD environments:
20
+ 1. Generate a Workspace API token in your Webflow Dashboard > Apps & Integrations > Manage > Workspace API Token
21
+ 2. Set it as the WEBFLOW_API_TOKEN environment variable in your CI/CD pipeline`);let t=Cc(16),n=Ub();try{let r=Fc({pollId:t,clientId:n,scope:Ac});await _c(r);let o=await Ec(t,Fr.timeoutMs);return bo({apiToken:o}),o}catch(r){throw new T(r)}}function Ub(){return"fbab9abdbeeb35bb2554a1b83b8bd060d719f22eca26ff9119b87608c87c0074"}var Ac,Tc,$s=E(()=>{"use strict";_e();q();nt();ce();Ns();Ms();Sc();Ac=["authorized_user:read","cloud_apps:write","code_components:read","code_components:write","devlink_export:read","sites:read","sites:write","workspace:read"],Tc=!1});function _r(e){let t=e.siteId??process.env.WEBFLOW_SITE_ID??null;return t&&!e.siteId&&le({siteId:t}),t}async function zs(e){try{let n=await new Oc.WebflowClient({accessToken:e,environment:{base:`${oe}/v2`,dataApi:`${oe}/v2`,contentDeliveryApi:`${fo}/v2`}}).sites.list();if(!n||typeof n!="object"||!n.sites||!Array.isArray(n.sites))throw new T("Invalid response from Webflow API");return n.sites.map(r=>({id:r.id,displayName:r.displayName??"",shortName:r.shortName||(r.displayName??"").toLowerCase().replace(/\s+/g,"-")}))}catch(t){throw new T(t,{prefix:`Failed to fetch Webflow sites. Please check your authorization.
22
+ `})}}async function Ws(e){let t=await Ee({message:"Select the Webflow site you want to connect:",choices:e.map(n=>({name:n.displayName,value:n}))});if(!t){if(e.length===0)throw new T("No sites available for selection");return d.warn(`Auto fallback to first site: ${e[0].displayName}`),e[0]}return t}var Oc,wo=E(()=>{"use strict";Oc=require("webflow-api");it();q();De();ue();ue();ce()});async function Vt(e,t){let n=t?.site??_r(e);if(re()&&!n)throw new T(`No site ID configured for this project.
23
+ Run 'webflow auth login' locally to authenticate and associate this project with a Webflow site,
24
+ or provide --site and --api-token when running a CLI command`);let r=await Ut({apiToken:t?.apiToken,force:t?.force});if(!n||t?.force){let o=d.spinner("Fetching your Webflow sites"),i=await zs(r);if(i.length===0)throw o.fail("No Webflow sites found in your account"),new T("Please make sure you have at least one authorized site in your Webflow account");o.succeed(`Found ${i.length} site${i.length>1?"s":""} in your account`);let s=i.length>1?await Ws(i):i[0];return n=s.id,le({siteId:n}),{siteId:n,siteName:s.displayName,accessToken:r}}return{siteId:n,accessToken:r}}var Pc=E(()=>{"use strict";q();De();_e();$s();wo();ce()});var Gt=E(()=>{"use strict";Ns();$s();Pc();wo();wo()});async function Hb(e){return(await import(process.platform==="win32"&&e?.match(/[a-zA-Z]:[\\\/]/)?(0,$c.pathToFileURL)(e).href:e)).default}function Mc(e,t){let n=t.filter(r=>!e[r]);if(n.length)throw new Hs(n.join(", "))}async function Sn(e=[],t=!1){if(!Uc){if(t)return{};throw new Fo(st)}if(!at)throw new qs;switch(at){case"js":case"cjs":{await He.access(st);let n=await Hb(st);return Mc(n,e),n}case"json":{let n=JSON.parse(await He.readFile(st,"utf8"));return Mc(n,e),n}default:throw new Co}}function Jb(e,t){if(at==="js"||at==="cjs"){let r=new RegExp(`${t}: process.env.([\\w]+),`,"gi").exec(e);if(r)return r[1]}}function Zb(e,t,n){let r=Jb(t,n);if(r){let o=new RegExp(`${n}: ".*?",`,"g");return e.replace(o,`${n}: process.env.${r},`)}return e}async function Kb(e){let t=["authToken","host","siteId"],n=await He.readFile(st,"utf-8");for(let r of t)e=Zb(e,n,r);return e}async function Yb(){try{let e=Er.join(Js,"package.json");return await He.access(e),JSON.parse(await He.readFile(e,"utf-8"))?.type==="module"}catch{return!1}}async function Vc(e){if(!Uc)throw new Fo(st);let t=JSON.stringify(e,null,2);switch(at){case"js":case"cjs":{let n=await Kb(t.replace(/"([^"]+)":/g,"$1:")),r=await Yb()&&at==="js"?"export default ":"module.exports = ";return He.writeFile(st,r+n)}case"json":return He.writeFile(st,t);default:throw new Co}}var Er,He,_o,$c,oT,zc,Js,Wc,at,st,Uc,qs,Co,Fo,Hs,Eo=E(()=>{"use strict";Er=D(require("path")),He=D(require("fs/promises")),_o=D(require("fs")),$c=require("url"),oT=require("dotenv/config"),zc=["js","cjs","json"],Js=process.cwd(),Wc=".webflowrc",at=Er.extname(_o.readdirSync(Js).find(e=>e.includes(Wc))??"").replace(/\./g,""),st=Er.join(Js,`${Wc}${at&&`.${at}`}`),Uc=_o.existsSync(st),qs=class extends Error{constructor(){super(`Missing extension for .webflowrc file. The supported extensions are: ${zc.join(", ")}`)}},Co=class extends Error{constructor(){super(`Unsupported extension for .webflowrc: ${at}. The supported extensions are: ${zc.join(", ")}`)}},Fo=class extends Error{constructor(t){let n=t.includes(".webflowrc"),r=t.includes("webflow.json"),o;n?o=`It seems like you don't have a .webflowrc file in your project (${t}). Make sure there is a .webflowrc file in your project root.`:r?o=`It seems like you don't have a webflow.json file in your project (${t}). Make sure there is a webflow.json file in your project root.`:o=`It seems like you don't have a config file in your project (${t}). Make sure there is a config file in your project root.`,super(o)}},Hs=class extends Error{constructor(t){super(`The following required fields are missing or undefined in your .webflowrc file: ${t}. If you're using process.env variables, make sure they're set up correctly.`)}}});async function Oo(e){let{authToken:t,siteId:n}=e||{},{path:r,isUserDefined:o}=Nt(),i=mp.existsSync(r),s=!1;try{let{manifest:a}=ne();s=!0,o&&d.info(`Using manifest file: ${r}`);try{let l=gr(a,"devlink");if(!t||!n)throw new Error(`Missing Site ID or API token. Make sure you have WEBFLOW_API_TOKEN and WEBFLOW_SITE_ID set in your environment variables, or pass them as arguments --site and --api-token.
28
25
 
29
26
  To set up your credentials, run:
30
- webflow auth login
31
- Alternatively, you can manually set these environment variables.`);return t}var ua,ca,Yt=k(()=>{"use strict";G();Te();oa();ke();Rn();de();ua="4e98f8e35a62b288d79dd0973ed7683d0886506ba6413ee1795c2805bb5dff51",ca=["sites:read","sites:write","authorized_user:read","devlink_export:read"]});async function jD(e){return(await import(process.platform==="win32"&&e?.match(/[a-zA-Z]:[\\\/]/)?(0,cp.pathToFileURL)(e).href:e)).default}function up(e,t){let n=t.filter(r=>!e[r]);if(n.length)throw new ga(n.join(", "))}async function jn(e=[],t=!1){if(!fp){if(t)return{};throw new Uo(dt)}if(!ft)throw new ha;switch(ft){case"js":case"cjs":{await Qe.access(dt);let n=await jD(dt);return up(n,e),n}case"json":{let n=JSON.parse(await Qe.readFile(dt,"utf8"));return up(n,e),n}default:throw new zo}}function LD(e,t){if(ft==="js"||ft==="cjs"){let r=new RegExp(`${t}: process.env.([\\w]+),`,"gi").exec(e);if(r)return r[1]}}function ND(e,t,n){let r=LD(t,n);if(r){let o=new RegExp(`${n}: ".*?",`,"g");return e.replace(o,`${n}: process.env.${r},`)}return e}async function MD(e){let t=["authToken","host","siteId"],n=await Qe.readFile(dt,"utf-8");for(let r of t)e=ND(e,n,r);return e}async function $D(){try{let e=Wr.join(ya,"package.json");return await Qe.access(e),JSON.parse(await Qe.readFile(e,"utf-8"))?.type==="module"}catch{return!1}}async function mp(e){if(!fp)throw new Uo(dt);let t=JSON.stringify(e,null,2);switch(ft){case"js":case"cjs":{let n=await MD(t.replace(/"([^"]+)":/g,"$1:")),r=await $D()&&ft==="js"?"export default ":"module.exports = ";return Qe.writeFile(dt,r+n)}case"json":return Qe.writeFile(dt,t);default:throw new zo}}var Wr,Qe,Vo,cp,nA,pp,ya,dp,ft,dt,fp,ha,zo,Uo,ga,Go=k(()=>{"use strict";Wr=D(require("path")),Qe=D(require("fs/promises")),Vo=D(require("fs")),cp=require("url"),nA=require("dotenv/config"),pp=["js","cjs","json"],ya=process.cwd(),dp=".webflowrc",ft=Wr.extname(Vo.readdirSync(ya).find(e=>e.includes(dp))??"").replace(/\./g,""),dt=Wr.join(ya,`${dp}${ft&&`.${ft}`}`),fp=Vo.existsSync(dt),ha=class extends Error{constructor(){super(`Missing extension for .webflowrc file. The supported extensions are: ${pp.join(", ")}`)}},zo=class extends Error{constructor(){super(`Unsupported extension for .webflowrc: ${ft}. The supported extensions are: ${pp.join(", ")}`)}},Uo=class extends Error{constructor(t){let n=t.includes(".webflowrc"),r=t.includes("webflow.json"),o;n?o=`It seems like you don't have a .webflowrc file in your project (${t}). Make sure there is a .webflowrc file in your project root.`:r?o=`It seems like you don't have a webflow.json file in your project (${t}). Make sure there is a webflow.json file in your project root.`:o=`It seems like you don't have a config file in your project (${t}). Make sure there is a config file in your project root.`,super(o)}},ga=class extends Error{constructor(t){super(`The following required fields are missing or undefined in your .webflowrc file: ${t}. If you're using process.env variables, make sure they're set up correctly.`)}}});async function Jo(e){let{authToken:t,siteId:n}=e||{},{path:r,isUserDefined:o}=Gt(),i=Np.existsSync(r),s=!1;try{let{manifest:a}=oe();s=!0,o&&d.info(`Using manifest file: ${r}`);try{let u=Sr(a,"devlink");if(!t||!n)throw new Error(`Missing Site ID or API token. Make sure you have WEBFLOW_SITE_API_TOKEN and WEBFLOW_SITE_ID set in your environment variables, or pass them as arguments --site and --api-token.
32
-
33
- To set up your credentials, run:
34
- webflow auth login`);return Lp(u?.relativeHrefRoot),{...u,host:H,authToken:t,siteId:n,cssModules:!!u?.cssModules,components:et(u?.components),fileExtensions:{...jp,...u.fileExtensions},...e}}catch(u){throw new S(u,{prefix:`Failed to read devlink config from manifest file: ${r}
35
- `})}}catch(a){if(o||i||s){let u=o?`The manifest file specified via --manifest flag was not found or is invalid: ${r}
27
+ webflow auth login`);return fp(l?.relativeHrefRoot),{...l,host:oe,authToken:t,siteId:n,cssModules:!!l?.cssModules,components:Ao(l?.components),fileExtensions:{...dp,...l.fileExtensions},...e}}catch(l){throw new T(l,{prefix:`Failed to read devlink config from manifest file: ${r}
28
+ `})}}catch(a){if(o||i||s){let l=o?`The manifest file specified via --manifest flag was not found or is invalid: ${r}
36
29
  `:`Your manifest file exists but is invalid or missing required properties: ${r}
37
- `;throw new S(a,{prefix:u})}}try{let a=[];t||a.push("authToken"),n||a.push("siteId");let u=await jn(a);return Lp(u?.relativeHrefRoot),{...u,host:u.host||H,cssModules:!!u?.cssModules,components:et(u?.components),fileExtensions:{...jp,...u.fileExtensions},...e}}catch(a){throw a instanceof Error&&a.message.includes(".webflowrc")&&(a.message=`No configuration file found. Please create either:
30
+ `;throw new T(a,{prefix:l})}}try{let a=[];t||a.push("authToken"),n||a.push("siteId");let l=await Sn(a);return fp(l?.relativeHrefRoot),{...l,host:l.host||oe,cssModules:!!l?.cssModules,components:Ao(l?.components),fileExtensions:{...dp,...l.fileExtensions},...e}}catch(a){throw a instanceof Error&&a.message.includes(".webflowrc")&&(a.message=`No configuration file found. Please create either:
38
31
  - webflow.json with a "devlink" section, or
39
32
  - .webflowrc file
40
- in your project root.`),new S(a)}}function Lp(e){if(!(e===void 0||e===!1)){if(typeof e=="string"){if(e==="/"||e.startsWith("http://")||e.startsWith("https://"))return;throw new Error(`Invalid relativeHrefRoot value "${e}". Must be false, "/" or an absolute URL starting with http:// or https://`)}throw new Error(`Invalid relativeHrefRoot type. Must be false, "/" or an absolute URL string, got: ${typeof e}`)}}function et(e){if(typeof e=="string")return e;if(Array.isArray(e))return e.map(t=>`^${t}$`).join("|")}var Np,jp,Ur=k(()=>{"use strict";G();pe();Go();Te();Np=D(require("fs"));de();jp={js:"js",css:"css"}});var Tt,ka=k(()=>{"use strict";Tt={printWidth:80,tabWidth:2,useTabs:!1,semi:!0,singleQuote:!1,quoteProps:"as-needed",jsxSingleQuote:!1,trailingComma:"es5",bracketSpacing:!0,bracketSameLine:!1,jsxBracketSameLine:!1,arrowParens:"always",requirePragma:!1,insertPragma:!1,proseWrap:"preserve",htmlWhitespaceSensitivity:"css",vueIndentScriptAndStyle:!1,endOfLine:"lf",embeddedLanguageFormatting:"auto",singleAttributePerLine:!1,parser:"babel",pluginSearchDirs:!1}});async function Wp(e,t){let{rootDir:n,cssModules:r,overwriteModule:o}=t,i=mt.join(process.cwd(),n);(0,Ce.existsSync)(i)||await(0,Ln.mkdir)(i),$p.forEach(a=>Ea.addEntry(a.name,a.options)),await HD(i,e,t,r);let s=e.reduce((a,u)=>({...a,[u.name]:u}),{});await zp(i,"",s,o??!1),t.addIndexFile&&ZD(Ea.getFile(),i)}function qD(e="",t){let n=t?.envVariables??{};return Object.entries(n).forEach(([r,o])=>{e=e.replace(new RegExp(`DEVLINK_ENV_${r}`,"g"),o.trim())}),e}function xa(e,t){let n=t.split("/");return mt.join(e,...n.slice(0,-1),n[n.length-1])}async function HD(e,t,n,r){await Promise.all(t.flatMap(o=>{let i=[];if(o.name.includes("/")){let s=o.name.substring(0,o.name.lastIndexOf("/"));JD(e,s)}if(o.js){let s=qD(o.js,n),a=Vr.default.format(s,Tt),u=n.fileExtensions.js.replace(/\W/gi,""),l=xa(e,`${o.name}.${u}`);i.push((0,Ce.writeFileSync)(l,a,{flag:"w+"}))}if(o.css){let s=n.fileExtensions.css.replace(/^\./,""),a=o.module?r?`${o.name}.module.${s}`:`global.${s}`:`${o.name}.${s}`,u=xa(e,a);i.push((0,Ce.writeFileSync)(u,Fa(o.css,r),{flag:"w+"}))}if(o.types){let s=xa(e,`${o.name}.d.ts`);i.push((0,Ce.writeFileSync)(s,Vr.default.format(o.types,{...Tt,parser:"typescript"}),{flag:"w+"}))}return i}))}function JD(e,t){let n=t.split("/"),r=e;for(let o of n)r=mt.join(r,o),(0,Ce.existsSync)(r)||(0,Ce.mkdirSync)(r)}async function zp(e,t,n,r){let o=mt.join(e,t),i=await(0,Ln.readdir)(o);await Promise.all(i.map(async s=>{let a=t?mt.join(t,s):s,u=mt.join(e,a);if((0,Ce.statSync)(u).isDirectory()){await zp(e,a,n,r);return}let l=a.split(".")[0].replace(/\\/g,"/"),c=n[l],p=!GD.test(l);return p&&r&&!c?(0,Ln.rm)(u,{recursive:!0,force:!0}):(p&&Ea.addEntry(l,{errorMessage:c?.error}),Promise.resolve())}))}function ZD(e,t){(0,Ce.writeFileSync)(mt.join(t,"index.js"),Vr.default.format(e,Tt),{flag:"w+"}),(0,Ce.writeFileSync)(mt.join(t,"index.d.ts"),Vr.default.format(e,{...Tt,parser:"typescript"}),{flag:"w+"})}function KD(e){let t=new Set,n=e.modules||{},r=e.useClient||!0;return{addEntry(o,i){t.add(o),n[o]={...n[o],...i}},getFile(){let o=r?`"use client";
41
-
42
- `:"";o+=`console.warn("\u26A0\uFE0F Avoid importing components from 'index.js' for better performance. This practice is deprecated and may be removed in the future.");
43
-
44
- `;let i=Array.from(t).sort((s,a)=>s.localeCompare(a));for(let s of i){let a=n[s]?.as,u=n[s]?.errorMessage,l=u?` // Error: ${u}`:"";o+=`export ${a?`* as ${a}`:"*"} from './${s}';${l}
45
- `}return o.trim()}}}function Fa(e,t){return t?Mp(e):(Ca={...Ca,...e},Mp(Ca))}function Mp(e){return Object.values(e??{}).flatMap(t=>[t.rule,...t.variants??[]]).filter(Boolean).join(`
46
-
47
- `)}var Ce,Ln,mt,Vr,VD,Ea,$p,GD,Ca,_a=k(()=>{"use strict";Ce=require("fs"),Ln=require("fs/promises"),mt=D(require("path")),Vr=D(require("prettier"));ka();VD={modules:{},useClient:!0},Ea=KD(VD),$p=[{name:"devlinkContext"},{name:"DevLinkProvider"},{name:"interactions"},{name:"utils"},{name:"devlink"}],GD=new RegExp(`^(${[...$p.map(e=>e.name.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")+"$"),"_Builtin(/|$)","types$","index$","global$"].join("|")})`);Ca={}});function ue(e){return e>=48&&e<=57}function It(e){return ue(e)||e>=65&&e<=70||e>=97&&e<=102}function pl(e){return e>=65&&e<=90}function jw(e){return e>=97&&e<=122}function Lw(e){return pl(e)||jw(e)}function Nw(e){return e>=128}function ai(e){return Lw(e)||Nw(e)||e===95}function dl(e){return ai(e)||ue(e)||e===45}function Mw(e){return e>=0&&e<=8||e===11||e>=14&&e<=31||e===127}function li(e){return e===10||e===13||e===12}function en(e){return li(e)||e===32||e===9}function qe(e,t){return!(e!==92||li(t)||t===0)}function ni(e,t,n){return e===45?ai(t)||t===45||qe(t,n):ai(e)?!0:e===92?qe(e,t):!1}function Sa(e,t,n){return e===43||e===45?ue(t)?2:t===46&&ue(n)?3:0:e===46?ue(t)?2:0:ue(e)?1:0}function Md(e){return e===65279||e===65534?1:0}function Ta(e){return e<128?Ha[e]:fl}function Un(e,t){return t<e.length?e.charCodeAt(t):0}function Ja(e,t,n){return n===13&&Un(e,t+1)===10?2:1}function Vn(e,t,n){let r=e.charCodeAt(t);return pl(r)&&(r=r|32),r===n}function Qr(e,t,n,r){if(n-t!==r.length||t<0||n>e.length)return!1;for(let o=t;o<n;o++){let i=r.charCodeAt(o-t),s=e.charCodeAt(o);if(pl(s)&&(s=s|32),s!==i)return!1}return!0}function Ww(e,t){for(;t>=0&&en(e.charCodeAt(t));t--);return t+1}function Zo(e,t){for(;t<e.length&&en(e.charCodeAt(t));t++);return t}function Aa(e,t){for(;t<e.length&&ue(e.charCodeAt(t));t++);return t}function tn(e,t){if(t+=2,It(Un(e,t-1))){for(let r=Math.min(e.length,t+5);t<r&&It(Un(e,t));t++);let n=Un(e,t);en(n)&&(t+=Ja(e,t,n))}return t}function Ko(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(!dl(n)){if(qe(n,Un(e,t+1))){t=tn(e,t)-1;continue}break}}return t}function hi(e,t){let n=e.charCodeAt(t);if((n===43||n===45)&&(n=e.charCodeAt(t+=1)),ue(n)&&(t=Aa(e,t+1),n=e.charCodeAt(t)),n===46&&ue(e.charCodeAt(t+1))&&(t+=2,t=Aa(e,t)),Vn(e,t,101)){let r=0;n=e.charCodeAt(t+1),(n===45||n===43)&&(r=1,n=e.charCodeAt(t+2)),ue(n)&&(t=Aa(e,t+1+r+1))}return t}function Oa(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(n===41){t++;break}qe(n,Un(e,t+1))&&(t=tn(e,t))}return t}function ml(e){if(e.length===1&&!It(e.charCodeAt(0)))return e[0];let t=parseInt(e,16);return(t===0||t>=55296&&t<=57343||t>1114111)&&(t=65533),String.fromCodePoint(t)}function ui(e=null,t){return e===null||e.length<t?new Uint32Array(Math.max(t+1024,16384)):e}function Gp(e){let t=e.source,n=t.length,r=t.length>0?Md(t.charCodeAt(0)):0,o=ui(e.lines,n),i=ui(e.columns,n),s=e.startLine,a=e.startColumn;for(let u=r;u<n;u++){let l=t.charCodeAt(u);o[u]=s,i[u]=a++,(l===Up||l===Vp||l===zw)&&(l===Vp&&u+1<n&&t.charCodeAt(u+1)===Up&&(u++,o[u]=s,i[u]=a),s++,a=1)}o[n]=s,i[n]=a,e.lines=o,e.columns=i,e.computed=!0}function gi(e,t){function n(p){return p<a?e.charCodeAt(p):0}function r(){if(l=hi(e,l),ni(n(l),n(l+1),n(l+2))){c=12,l=Ko(e,l);return}if(n(l)===37){c=11,l++;return}c=10}function o(){let p=l;if(l=Ko(e,l),Qr(e,p,l,"url")&&n(l)===40){if(l=Zo(e,l+1),n(l)===34||n(l)===39){c=2,l=p+4;return}s();return}if(n(l)===40){c=2,l++;return}c=1}function i(p){for(p||(p=n(l++)),c=5;l<e.length;l++){let m=e.charCodeAt(l);switch(Ta(m)){case p:l++;return;case ri:if(li(m)){l+=Ja(e,l,m),c=6;return}break;case 92:if(l===e.length-1)break;let f=n(l+1);li(f)?l+=Ja(e,l+1,f):qe(m,f)&&(l=tn(e,l)-1);break}}}function s(){for(c=7,l=Zo(e,l);l<e.length;l++){let p=e.charCodeAt(l);switch(Ta(p)){case 41:l++;return;case ri:if(l=Zo(e,l),n(l)===41||l>=e.length){l<e.length&&l++;return}l=Oa(e,l),c=8;return;case 34:case 39:case 40:case Wd:l=Oa(e,l),c=8;return;case 92:if(qe(p,n(l+1))){l=tn(e,l)-1;break}l=Oa(e,l),c=8;return}}}e=String(e||"");let a=e.length,u=Md(n(0)),l=u,c;for(;l<a;){let p=e.charCodeAt(l);switch(Ta(p)){case ri:c=13,l=Zo(e,l+1);break;case 34:i();break;case 35:dl(n(l+1))||qe(n(l+1),n(l+2))?(c=4,l=Ko(e,l+1)):(c=9,l++);break;case 39:i();break;case 40:c=21,l++;break;case 41:c=22,l++;break;case 43:Sa(p,n(l+1),n(l+2))?r():(c=9,l++);break;case 44:c=18,l++;break;case 45:Sa(p,n(l+1),n(l+2))?r():n(l+1)===45&&n(l+2)===62?(c=15,l=l+3):ni(p,n(l+1),n(l+2))?o():(c=9,l++);break;case 46:Sa(p,n(l+1),n(l+2))?r():(c=9,l++);break;case 47:n(l+1)===42?(c=25,l=e.indexOf("*/",l+2),l=l===-1?e.length:l+2):(c=9,l++);break;case 58:c=16,l++;break;case 59:c=17,l++;break;case 60:n(l+1)===33&&n(l+2)===45&&n(l+3)===45?(c=14,l=l+4):(c=9,l++);break;case 64:ni(n(l+1),n(l+2),n(l+3))?(c=3,l=Ko(e,l+1)):(c=9,l++);break;case 91:c=19,l++;break;case 92:qe(p,n(l+1))?o():(c=9,l++);break;case 93:c=20,l++;break;case 123:c=23,l++;break;case 125:c=24,l++;break;case $d:r();break;case fl:o();break;default:c=9,l++}t(c,u,u=l)}}function yi(e,t){let n=Object.create(SyntaxError.prototype),r=new Error;return Object.assign(n,{name:e,message:t,get stack(){return(r.stack||"").replace(/^(.+\n){1,3}/,`${e}: ${t}
48
- `)}})}function Jp({source:e,line:t,column:n},r){function o(c,p){return i.slice(c,p).map((m,f)=>String(c+f+1).padStart(u)+" |"+m).join(`
49
- `)}let i=e.split(/\r\n?|\n|\f/),s=Math.max(1,t-r)-1,a=Math.min(t+r,i.length+1),u=Math.max(4,String(a).length)+1,l=0;n+=(Hp.length-1)*(i[t-1].substr(0,n-1).match(/\t/g)||[]).length,n>Pa&&(l=n-qp+3,n=qp-2);for(let c=s;c<=a;c++)c>=0&&c<i.length&&(i[c]=i[c].replace(/\t/g,Hp),i[c]=(l>0&&i[c].length>l?"\u2026":"")+i[c].substr(l,Pa-2)+(i[c].length>l+Pa-1?"\u2026":""));return[o(s,t),new Array(n+u+2).join("-")+"^",o(t,a)].filter(Boolean).join(`
50
- `)}function Zp(e,t,n,r,o){return Object.assign(yi("SyntaxError",e),{source:t,offset:n,line:r,column:o,sourceFragment(i){return Jp({source:t,line:r,column:o},isNaN(i)?0:i)},get formattedMessage(){return`Parse error: ${e}
51
- `+Jp({source:t,line:r,column:o},2)}})}function qw(e){let t=this.createList(),n=!1,r={recognizer:e};for(;!this.eof;){switch(this.tokenType){case 25:this.next();continue;case 13:n=!0,this.next();continue}let o=e.getNode.call(this,r);if(o===void 0)break;n&&(e.onWhiteSpace&&e.onWhiteSpace.call(this,o,t,r),n=!1),t.push(o)}return n&&e.onWhiteSpace&&e.onWhiteSpace.call(this,null,t,r),t}function Zw(e){return function(){return this[e]()}}function Ba(e){let t=Object.create(null);for(let n in e){let r=e[n],o=r.parse||r;o&&(t[n]=o)}return t}function Kw(e){let t={context:Object.create(null),scope:Object.assign(Object.create(null),e.scope),atrule:Ba(e.atrule),pseudo:Ba(e.pseudo),node:Ba(e.node)};for(let n in e.parseContext)switch(typeof e.parseContext[n]){case"function":t.context[n]=e.parseContext[n];break;case"string":t.context[n]=Zw(e.parseContext[n]);break}return{config:t,...t,...t.node}}function Yw(e){let t="",n="<unknown>",r=!1,o=Kp,i=!1,s=new Uw,a=Object.assign(new Gw,Kw(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:qw,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket(u){return u===Yp?1:0},consumeUntilLeftCurlyBracketOrSemicolon(u){return u===Yp||u===Ia?1:0},consumeUntilExclamationMarkOrSemicolon(u){return u===Hw||u===Ia?1:0},consumeUntilSemicolonIncluded(u){return u===Ia?2:0},createList(){return new ie},createSingleNodeList(u){return new ie().appendData(u)},getFirstListNode(u){return u&&u.first},getLastListNode(u){return u&&u.last},parseWithFallback(u,l){let c=this.tokenIndex;try{return u.call(this)}catch(p){if(i)throw p;let m=l.call(this,c);return i=!0,o(p,m),i=!1,m}},lookupNonWSType(u){let l;do if(l=this.lookupType(u++),l!==13)return l;while(l!==Xp);return Xp},charCodeAt(u){return u>=0&&u<t.length?t.charCodeAt(u):0},substring(u,l){return t.substring(u,l)},substrToCursor(u){return this.source.substring(u,this.tokenStart)},cmpChar(u,l){return Vn(t,u,l)},cmpStr(u,l,c){return Qr(t,u,l,c)},consume(u){let l=this.tokenStart;return this.eat(u),this.substrToCursor(l)},consumeFunctionName(){let u=t.substring(this.tokenStart,this.tokenEnd-1);return this.eat(2),u},consumeNumber(u){let l=t.substring(this.tokenStart,hi(t,this.tokenStart));return this.eat(u),l},eat(u){if(this.tokenType!==u){let l=zd[u].slice(0,-6).replace(/-/g," ").replace(/^./,m=>m.toUpperCase()),c=`${/[[\](){}]/.test(l)?`"${l}"`:l} is expected`,p=this.tokenStart;switch(u){case 1:this.tokenType===2||this.tokenType===7?(p=this.tokenEnd-1,c="Identifier is expected but function found"):c="Identifier is expected";break;case 4:this.isDelim(Jw)&&(this.next(),p++,c="Name is expected");break;case 11:this.tokenType===10&&(p=this.tokenEnd,c="Percent sign is expected");break}this.error(c,p)}this.next()},eatIdent(u){(this.tokenType!==1||this.lookupValue(0,u)===!1)&&this.error(`Identifier "${u}" is expected`),this.next()},eatDelim(u){this.isDelim(u)||this.error(`Delim "${String.fromCharCode(u)}" is expected`),this.next()},getLocation(u,l){return r?s.getLocationRange(u,l,n):null},getLocationFromList(u){if(r){let l=this.getFirstListNode(u),c=this.getLastListNode(u);return s.getLocationRange(l!==null?l.loc.start.offset-s.startOffset:this.tokenStart,c!==null?c.loc.end.offset-s.startOffset:this.tokenStart,n)}return null},error(u,l){let c=typeof l<"u"&&l<t.length?s.getLocation(l):this.eof?s.getLocation(Ww(t,t.length-1)):s.getLocation(this.tokenStart);throw new Zp(u||"Unexpected input",t,c.offset,c.line,c.column)}});return Object.assign(function(u,l){t=u,l=l||{},a.setSource(t,gi),s.setSource(t,l.offset,l.line,l.column),n=l.filename||"<unknown>",r=!!l.positions,o=typeof l.onParseError=="function"?l.onParseError:Kp,i=!1,a.parseAtrulePrelude="parseAtrulePrelude"in l?!!l.parseAtrulePrelude:!0,a.parseRulePrelude="parseRulePrelude"in l?!!l.parseRulePrelude:!0,a.parseValue="parseValue"in l?!!l.parseValue:!0,a.parseCustomProperty="parseCustomProperty"in l?!!l.parseCustomProperty:!1;let{context:c="default",onComment:p}=l;if(!(c in a.context))throw new Error("Unknown context `"+c+"`");typeof p=="function"&&a.forEachToken((f,y,C)=>{if(f===25){let P=a.getLocation(y,C),_=Qr(t,C-2,C,"*/")?t.slice(y+2,C-2):t.slice(y+2,C);p(_,P)}});let m=a.context[c].call(a,l);return a.eof||a.error(),m},{SyntaxError:Zp,config:a.config})}function Qw(e){let t=new Xw.SourceMapGenerator,n={line:1,column:0},r={line:0,column:0},o={line:1,column:0},i={generated:o},s=1,a=0,u=!1,l=e.node;e.node=function(m){if(m.loc&&m.loc.start&&Qp.has(m.type)){let f=m.loc.start.line,y=m.loc.start.column-1;(r.line!==f||r.column!==y)&&(r.line=f,r.column=y,n.line=s,n.column=a,u&&(u=!1,(n.line!==o.line||n.column!==o.column)&&t.addMapping(i)),u=!0,t.addMapping({source:m.loc.source,original:r,generated:n}))}l.call(this,m),u&&Qp.has(m.type)&&(o.line=s,o.column=a)};let c=e.emit;e.emit=function(m,f,y){for(let C=0;C<m.length;C++)m.charCodeAt(C)===10?(s++,a=0):a++;c(m,f,y)};let p=e.result;return e.result=function(){return u&&t.addMapping(i),{css:p(),map:t}},e}function Vd(e){let t=new Set(e.map(([n,r])=>Ra(n)<<16|Ra(r)));return function(n,r,o){let i=Ra(r,o),s=o.charCodeAt(0);return(s===tv&&r!==1&&r!==2&&r!==15||s===ev?t.has(n<<16|s<<8):t.has(n<<16|i))&&this.emit(" ",13,!0),i}}function iv(e,t){if(typeof t=="function"){let n=null;e.children.forEach(r=>{n!==null&&t.call(this,n),this.node(r),n=r});return}e.children.forEach(this.node,this)}function sv(e){gi(e,(t,n,r)=>{this.token(t,e.slice(n,r))})}function av(e){let t=new Map;for(let n in e.node){let r=e.node[n];typeof(r.generate||r)=="function"&&t.set(n,r.generate||r)}return function(n,r){let o="",i=0,s={node(u){if(t.has(u.type))t.get(u.type).call(a,u);else throw new Error("Unknown node type: "+u.type)},tokenBefore:Gd,token(u,l){i=this.tokenBefore(i,u,l),this.emit(l,u,!1),u===9&&l.charCodeAt(0)===ov&&this.emit(`
52
- `,13,!0)},emit(u){o+=u},result(){return o}};r&&(typeof r.decorator=="function"&&(s=r.decorator(s)),r.sourceMap&&(s=Qw(s)),r.mode in Za&&(s.tokenBefore=Za[r.mode]));let a={node:u=>s.node(u),children:iv,token:(u,l)=>s.token(u,l),tokenize:sv};return s.node(n),s.result()}}function lv(e){return{fromPlainObject(t){return e(t,{enter(n){n.children&&!(n.children instanceof ie)&&(n.children=new ie().fromArray(n.children))}}),t},toPlainObject(t){return e(t,{leave(n){n.children&&n.children instanceof ie&&(n.children=n.children.toArray())}}),t}}}function ed(e){return typeof e=="function"?e:qr}function td(e,t){return function(n,r,o){n.type===t&&e.call(this,n,r,o)}}function uv(e,t){let n=t.structure,r=[];for(let o in n){if(hl.call(n,o)===!1)continue;let i=n[o],s={name:o,type:!1,nullable:!1};Array.isArray(i)||(i=[i]);for(let a of i)a===null?s.nullable=!0:typeof a=="string"?s.type="node":Array.isArray(a)&&(s.type="list");s.type&&r.push(s)}return r.length?{context:t.walkContext,fields:r}:null}function cv(e){let t={};for(let n in e.node)if(hl.call(e.node,n)){let r=e.node[n];if(!r.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");t[n]=uv(n,r)}return t}function nd(e,t){let n=e.fields.slice(),r=e.context,o=typeof r=="string";return t&&n.reverse(),function(i,s,a,u){let l;o&&(l=s[r],s[r]=i);for(let c of n){let p=i[c.name];if(!c.nullable||p){if(c.type==="list"){if(t?p.reduceRight(u,!1):p.reduce(u,!1))return!0}else if(a(p))return!0}}o&&(s[r]=l)}}function rd({StyleSheet:e,Atrule:t,Rule:n,Block:r,DeclarationList:o}){return{Atrule:{StyleSheet:e,Atrule:t,Rule:n,Block:r},Rule:{StyleSheet:e,Atrule:t,Rule:n,Block:r},Declaration:{StyleSheet:e,Atrule:t,Rule:n,Block:r,DeclarationList:o}}}function pv(e){let t=cv(e),n={},r={},o=Symbol("break-walk"),i=Symbol("skip-node");for(let l in t)hl.call(t,l)&&t[l]!==null&&(n[l]=nd(t[l],!1),r[l]=nd(t[l],!0));let s=rd(n),a=rd(r),u=function(l,c){function p(_,W,x){let T=m.call(P,_,W,x);return T===o?!0:T===i?!1:!!(y.hasOwnProperty(_.type)&&y[_.type](_,P,p,C)||f.call(P,_,W,x)===o)}let m=qr,f=qr,y=n,C=(_,W,x,T)=>_||p(W,x,T),P={break:o,skip:i,root:l,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if(typeof c=="function")m=c;else if(c&&(m=ed(c.enter),f=ed(c.leave),c.reverse&&(y=r),c.visit)){if(s.hasOwnProperty(c.visit))y=c.reverse?a[c.visit]:s[c.visit];else if(!t.hasOwnProperty(c.visit))throw new Error("Bad value `"+c.visit+"` for `visit` option (should be: "+Object.keys(t).sort().join(", ")+")");m=td(m,c.visit),f=td(f,c.visit)}if(m===qr&&f===qr)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");p(l)};return u.break=o,u.skip=i,u.find=function(l,c){let p=null;return u(l,function(m,f,y){if(c.call(this,m,f,y))return p=m,o}),p},u.findLast=function(l,c){let p=null;return u(l,{reverse:!0,enter(m,f,y){if(c.call(this,m,f,y))return p=m,o}}),p},u.findAll=function(l,c){let p=[];return u(l,function(m,f,y){c.call(this,m,f,y)&&p.push(m)}),p},u}function dv(e){return e}function fv(e){let{min:t,max:n,comma:r}=e;return t===0&&n===0?r?"#?":"*":t===0&&n===1?"?":t===1&&n===0?r?"#":"+":t===1&&n===1?"":(r?"#":"")+(t===n?"{"+t+"}":"{"+t+","+(n!==0?n:"")+"}")}function mv(e){switch(e.type){case"Range":return" ["+(e.min===null?"-\u221E":e.min)+","+(e.max===null?"\u221E":e.max)+"]";default:throw new Error("Unknown node type `"+e.type+"`")}}function hv(e,t,n,r){let o=e.combinator===" "||r?e.combinator:" "+e.combinator+" ",i=e.terms.map(s=>gl(s,t,n,r)).join(o);return e.explicit||n?(r||i[0]===","?"[":"[ ")+i+(r?"]":" ]"):i}function gl(e,t,n,r){let o;switch(e.type){case"Group":o=hv(e,t,n,r)+(e.disallowEmpty?"!":"");break;case"Multiplier":return gl(e.term,t,n,r)+t(fv(e),e);case"Type":o="<"+e.name+(e.opts?t(mv(e.opts),e.opts):"")+">";break;case"Property":o="<'"+e.name+"'>";break;case"Keyword":o=e.name;break;case"AtKeyword":o="@"+e.name;break;case"Function":o=e.name+"(";break;case"String":case"Token":o=e.value;break;case"Comma":o=",";break;default:throw new Error("Unknown node type `"+e.type+"`")}return t(o,e)}function bi(e,t){let n=dv,r=!1,o=!1;return typeof t=="function"?n=t:t&&(r=!!t.forceBraces,o=!!t.compact,typeof t.decorate=="function"&&(n=t.decorate)),gl(e,n,r,o)}function gv(e,t){let n=e.tokens,r=e.longestMatch,o=r<n.length&&n[r].node||null,i=o!==t?o:null,s=0,a=0,u=0,l="",c,p;for(let m=0;m<n.length;m++){let f=n[m].value;m===r&&(a=f.length,s=l.length),i!==null&&n[m].node===i&&(m<=r?u++:u=0),l+=f}return r===n.length||u>1?(c=Yo(i||t,"end")||Hr(od,l),p=Hr(c)):(c=Yo(i,"start")||Hr(Yo(t,"start")||od,l.slice(0,s)),p=Yo(i,"end")||Hr(c,l.substr(s,a))),{css:l,mismatchOffset:s,mismatchLength:a,start:c,end:p}}function Yo(e,t){let n=e&&e.loc&&e.loc[t];return n?"line"in n?Hr(n):n:null}function Hr({offset:e,line:t,column:n},r){let o={offset:e,line:t,column:n};if(r){let i=r.split(/\n|\r\n?|\f/);o.offset+=r.length,o.line+=i.length-1,o.column=i.length===1?o.column+r.length:i.pop().length+1}return o}function yl(e,t){return t=t||0,e.length-t>=2&&e.charCodeAt(t)===ci&&e.charCodeAt(t+1)===ci}function qd(e,t){if(t=t||0,e.length-t>=3&&e.charCodeAt(t)===ci&&e.charCodeAt(t+1)!==ci){let n=e.indexOf("-",t+2);if(n!==-1)return e.substring(t,n+1)}return""}function bv(e){if(Xo.has(e))return Xo.get(e);let t=e.toLowerCase(),n=Xo.get(t);if(n===void 0){let r=yl(t,0),o=r?"":qd(t,0);n=Object.freeze({basename:t.substr(o.length),name:t,prefix:o,vendor:o,custom:r})}return Xo.set(e,n),n}function Dv(e){if(Mn.has(e))return Mn.get(e);let t=e,n=e[0];n==="/"?n=e[1]==="/"?"//":"/":n!=="_"&&n!=="*"&&n!=="$"&&n!=="#"&&n!=="+"&&n!=="&"&&(n="");let r=yl(t,n.length);if(!r&&(t=t.toLowerCase(),Mn.has(t))){let a=Mn.get(t);return Mn.set(e,a),a}let o=r?"":qd(t,n.length),i=t.substr(0,n.length+o.length),s=Object.freeze({basename:t.substr(i.length),name:t.substr(n.length),hack:n,vendor:o,prefix:i,custom:r});return Mn.set(e,s),s}function Ka(e,t){return e!==null&&e.type===9&&e.value.charCodeAt(0)===t}function Yr(e,t,n){for(;e!==null&&(e.type===13||e.type===25);)e=n(++t);return t}function Pt(e,t,n,r){if(!e)return 0;let o=e.value.charCodeAt(t);if(o===eo||o===tt){if(n)return 0;t++}for(;t<e.value.length;t++)if(!ue(e.value.charCodeAt(t)))return 0;return r+1}function Na(e,t,n){let r=!1,o=Yr(e,t,n);if(e=n(o),e===null)return t;if(e.type!==10)if(Ka(e,eo)||Ka(e,tt)){if(r=!0,o=Yr(n(++o),o,n),e=n(o),e===null||e.type!==10)return 0}else return t;if(!r){let i=e.value.charCodeAt(0);if(i!==eo&&i!==tt)return 0}return Pt(e,r?0:1,r,o)}function vv(e,t){let n=0;if(!e)return 0;if(e.type===10)return Pt(e,0,wv,n);if(e.type===1&&e.value.charCodeAt(0)===tt){if(!Vn(e.value,1,La))return 0;switch(e.value.length){case 2:return Na(t(++n),n,t);case 3:return e.value.charCodeAt(2)!==tt?0:(n=Yr(t(++n),n,t),e=t(n),Pt(e,0,$n,n));default:return e.value.charCodeAt(2)!==tt?0:Pt(e,3,$n,n)}}else if(e.type===1||Ka(e,eo)&&t(n+1).type===1){if(e.type!==1&&(e=t(++n)),e===null||!Vn(e.value,0,La))return 0;switch(e.value.length){case 1:return Na(t(++n),n,t);case 2:return e.value.charCodeAt(1)!==tt?0:(n=Yr(t(++n),n,t),e=t(n),Pt(e,0,$n,n));default:return e.value.charCodeAt(1)!==tt?0:Pt(e,2,$n,n)}}else if(e.type===12){let r=e.value.charCodeAt(0),o=r===eo||r===tt?1:0,i=o;for(;i<e.value.length&&ue(e.value.charCodeAt(i));i++);return i===o||!Vn(e.value,i,La)?0:i+1===e.value.length?Na(t(++n),n,t):e.value.charCodeAt(i+1)!==tt?0:i+2===e.value.length?(n=Yr(t(++n),n,t),e=t(n),Pt(e,0,$n,n)):Pt(e,i+2,$n,n)}return 0}function Ya(e,t){return e!==null&&e.type===9&&e.value.charCodeAt(0)===t}function Cv(e,t){return e.value.charCodeAt(0)===t}function Jr(e,t,n){let r=0;for(let o=t;o<e.value.length;o++){let i=e.value.charCodeAt(o);if(i===Jd&&n&&r!==0)return Jr(e,t+r+1,!1),6;if(!It(i)||++r>6)return 0}return r}function Qo(e,t,n){if(!e)return 0;for(;Ya(n(t),Zd);){if(++e>6)return 0;t++}return t}function Ev(e,t){let n=0;if(e===null||e.type!==1||!Vn(e.value,0,xv)||(e=t(++n),e===null))return 0;if(Ya(e,kv))return e=t(++n),e===null?0:e.type===1?Qo(Jr(e,0,!0),++n,t):Ya(e,Zd)?Qo(1,++n,t):0;if(e.type===10){let r=Jr(e,1,!0);return r===0?0:(e=t(++n),e===null?n:e.type===12||e.type===10?!Cv(e,Jd)||!Jr(e,1,!1)?0:n+1:Qo(r,n,t))}return e.type===12?Qo(Jr(e,1,!0),++n,t):0}function He(e,t){return t<e.length?e.charCodeAt(t):0}function Kd(e,t){return Qr(e,0,e.length,t)}function Yd(e,t){for(let n=0;n<t.length;n++)if(Kd(e,t[n]))return!0;return!1}function Xd(e,t){return t!==e.length-2?!1:He(e,t)===92&&ue(He(e,t+1))}function Di(e,t,n){if(e&&e.type==="Range"){let r=Number(n!==void 0&&n!==t.length?t.substr(0,n):t);if(isNaN(r)||e.min!==null&&r<e.min&&typeof e.min!="string"||e.max!==null&&r>e.max&&typeof e.max!="string")return!0}return!1}function _v(e,t){let n=0,r=[],o=0;e:do{switch(e.type){case 24:case 22:case 20:if(e.type!==n)break e;if(n=r.pop(),r.length===0){o++;break e}break;case 2:case 21:case 19:case 23:r.push(n),n=bl.get(e.type);break}o++}while(e=t(o));return o}function Ie(e){return function(t,n,r){return t===null?0:t.type===2&&Yd(t.value,Fv)?_v(t,n):e(t,n,r)}}function Y(e){return function(t){return t===null||t.type!==e?0:1}}function Sv(e){if(e===null||e.type!==1)return 0;let t=e.value.toLowerCase();return Yd(t,Hd)||Kd(t,"default")?0:1}function Tv(e){return e===null||e.type!==1||He(e.value,0)!==45||He(e.value,1)!==45?0:1}function Av(e){if(e===null||e.type!==4)return 0;let t=e.value.length;if(t!==4&&t!==5&&t!==7&&t!==9)return 0;for(let n=1;n<t;n++)if(!It(He(e.value,n)))return 0;return 1}function Ov(e){return e===null||e.type!==4||!ni(He(e.value,1),He(e.value,2),He(e.value,3))?0:1}function Pv(e,t){if(!e)return 0;let n=0,r=[],o=0;e:do{switch(e.type){case 6:case 8:break e;case 24:case 22:case 20:if(e.type!==n)break e;n=r.pop();break;case 17:if(n===0)break e;break;case 9:if(n===0&&e.value==="!")break e;break;case 2:case 21:case 19:case 23:r.push(n),n=bl.get(e.type);break}o++}while(e=t(o));return o}function Iv(e,t){if(!e)return 0;let n=0,r=[],o=0;e:do{switch(e.type){case 6:case 8:break e;case 24:case 22:case 20:if(e.type!==n)break e;n=r.pop();break;case 2:case 21:case 19:case 23:r.push(n),n=bl.get(e.type);break}o++}while(e=t(o));return o}function ht(e){return e&&(e=new Set(e)),function(t,n,r){if(t===null||t.type!==12)return 0;let o=hi(t.value,0);if(e!==null){let i=t.value.indexOf("\\",o),s=i===-1||!Xd(t.value,i)?t.value.substr(o):t.value.substring(o,i);if(e.has(s.toLowerCase())===!1)return 0}return Di(r,t.value,o)?0:1}}function Bv(e,t,n){return e===null||e.type!==11||Di(n,e.value,e.value.length-1)?0:1}function Qd(e){return typeof e!="function"&&(e=function(){return 0}),function(t,n,r){return t!==null&&t.type===10&&Number(t.value)===0?1:e(t,n,r)}}function Rv(e,t,n){if(e===null)return 0;let r=hi(e.value,0);return r!==e.value.length&&!Xd(e.value,r)||Di(n,e.value,r)?0:1}function jv(e,t,n){if(e===null||e.type!==10)return 0;let r=He(e.value,0)===43||He(e.value,0)===45?1:0;for(;r<e.value.length;r++)if(!ue(He(e.value,r)))return 0;return Di(n,e.value,r)?0:1}function Mv(e){let{angle:t,decibel:n,frequency:r,flex:o,length:i,resolution:s,semitones:a,time:u}=e||{};return{dimension:Ie(ht(null)),angle:Ie(ht(t)),decibel:Ie(ht(n)),frequency:Ie(ht(r)),flex:Ie(ht(o)),length:Ie(Qd(ht(i))),resolution:Ie(ht(s)),semitones:Ie(ht(a)),time:Ie(ht(u))}}function $v(e){return{...Lv,...Nv,...Mv(e)}}function ef(e,t,n){return Object.assign(yi("SyntaxError",e),{input:t,offset:n,rawMessage:e,message:e+`
33
+ in your project root.`),new T(a)}}function fp(e){if(!(e===void 0||e===!1)){if(typeof e=="string"){if(e==="/"||e.startsWith("http://")||e.startsWith("https://"))return;throw new Error(`Invalid relativeHrefRoot value "${e}". Must be false, "/" or an absolute URL starting with http:// or https://`)}throw new Error(`Invalid relativeHrefRoot type. Must be false, "/" or an absolute URL string, got: ${typeof e}`)}}function Ao(e){if(typeof e=="string")return e;if(Array.isArray(e))return e.map(t=>`^${t}$`).join("|")}var mp,dp,Qs=E(()=>{"use strict";q();ue();Eo();De();mp=D(require("fs"));ce();dp={js:"js",css:"css"}});var ea,hp=E(()=>{"use strict";ea={printWidth:80,tabWidth:2,useTabs:!1,semi:!0,singleQuote:!1,quoteProps:"as-needed",jsxSingleQuote:!1,trailingComma:"es5",bracketSpacing:!0,bracketSameLine:!1,jsxBracketSameLine:!1,arrowParens:"always",requirePragma:!1,insertPragma:!1,proseWrap:"preserve",htmlWhitespaceSensitivity:"css",vueIndentScriptAndStyle:!1,endOfLine:"lf",embeddedLanguageFormatting:"auto",singleAttributePerLine:!1,parser:"babel",pluginSearchDirs:!1}});async function yp(e,t){let{rootDir:n,cssModules:r,overwriteModule:o}=t,i=Bo.join(process.cwd(),n);o&&(0,Je.existsSync)(i)&&await(0,Po.rm)(i,{recursive:!0,force:!0}),(0,Je.existsSync)(i)||await(0,Po.mkdir)(i),await nD(i,e,t,r)}function tD(e="",t){let n=t?.envVariables??{};return Object.entries(n).forEach(([r,o])=>{e=e.replace(new RegExp(`DEVLINK_ENV_${r}`,"g"),o.trim())}),e}function ta(e,t){let n=t.split("/");return Bo.join(e,...n.slice(0,-1),n[n.length-1])}async function nD(e,t,n,r){await Promise.all(t.flatMap(o=>{let i=[];if(o.name.includes("/")){let s=o.name.substring(0,o.name.lastIndexOf("/"));rD(e,s)}if(o.js){let s=tD(o.js,n),a=ra.default.format(s,ea),l=n.fileExtensions.js.replace(/\W/gi,""),u=ta(e,`${o.name}.${l}`);i.push((0,Je.writeFileSync)(u,a,{flag:"w+"}))}if(o.css){let s=n.fileExtensions.css.replace(/^\./,""),a=o.module?r?`${o.name}.module.${s}`:`global.${s}`:`${o.name}.${s}`,l=ta(e,a);i.push((0,Je.writeFileSync)(l,oa(o.css,r),{flag:"w+"}))}if(o.types){let s=ta(e,`${o.name}.d.ts`);i.push((0,Je.writeFileSync)(s,ra.default.format(o.types,{...ea,parser:"typescript"}),{flag:"w+"}))}return i}))}function rD(e,t){let n=t.split("/"),r=e;for(let o of n)r=Bo.join(r,o),(0,Je.existsSync)(r)||(0,Je.mkdirSync)(r)}function oa(e,t){return t?gp(e):(na={...na,...e},gp(na))}function gp(e){return Object.values(e??{}).flatMap(t=>[t.rule,...t.variants??[]]).filter(Boolean).join(`
34
+
35
+ `)}var Je,Po,Bo,ra,na,ia=E(()=>{"use strict";Je=require("fs"),Po=require("fs/promises"),Bo=D(require("path")),ra=D(require("prettier"));hp();na={}});function ae(e){return e>=48&&e<=57}function Et(e){return ae(e)||e>=65&&e<=70||e>=97&&e<=102}function Ua(e){return e>=65&&e<=90}function UD(e){return e>=97&&e<=122}function VD(e){return Ua(e)||UD(e)}function GD(e){return e>=128}function qo(e){return VD(e)||GD(e)||e===95}function Va(e){return qo(e)||ae(e)||e===45}function qD(e){return e>=0&&e<=8||e===11||e>=14&&e<=31||e===127}function Ho(e){return e===10||e===13||e===12}function Jt(e){return Ho(e)||e===32||e===9}function We(e,t){return!(e!==92||Ho(t)||t===0)}function zo(e,t,n){return e===45?qo(t)||t===45||We(t,n):qo(e)?!0:e===92?We(e,t):!1}function sa(e,t,n){return e===43||e===45?ae(t)?2:t===46&&ae(n)?3:0:e===46?ae(t)?2:0:ae(e)?1:0}function md(e){return e===65279||e===65534?1:0}function aa(e){return e<128?Fa[e]:Ga}function In(e,t){return t<e.length?e.charCodeAt(t):0}function _a(e,t,n){return n===13&&In(e,t+1)===10?2:1}function jn(e,t,n){let r=e.charCodeAt(t);return Ua(r)&&(r=r|32),r===n}function Lr(e,t,n,r){if(n-t!==r.length||t<0||n>e.length)return!1;for(let o=t;o<n;o++){let i=r.charCodeAt(o-t),s=e.charCodeAt(o);if(Ua(s)&&(s=s|32),s!==i)return!1}return!0}function JD(e,t){for(;t>=0&&Jt(e.charCodeAt(t));t--);return t+1}function Io(e,t){for(;t<e.length&&Jt(e.charCodeAt(t));t++);return t}function la(e,t){for(;t<e.length&&ae(e.charCodeAt(t));t++);return t}function Zt(e,t){if(t+=2,Et(In(e,t-1))){for(let r=Math.min(e.length,t+5);t<r&&Et(In(e,t));t++);let n=In(e,t);Jt(n)&&(t+=_a(e,t,n))}return t}function jo(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(!Va(n)){if(We(n,In(e,t+1))){t=Zt(e,t)-1;continue}break}}return t}function ei(e,t){let n=e.charCodeAt(t);if((n===43||n===45)&&(n=e.charCodeAt(t+=1)),ae(n)&&(t=la(e,t+1),n=e.charCodeAt(t)),n===46&&ae(e.charCodeAt(t+1))&&(t+=2,t=la(e,t)),jn(e,t,101)){let r=0;n=e.charCodeAt(t+1),(n===45||n===43)&&(r=1,n=e.charCodeAt(t+2)),ae(n)&&(t=la(e,t+1+r+1))}return t}function ua(e,t){for(;t<e.length;t++){let n=e.charCodeAt(t);if(n===41){t++;break}We(n,In(e,t+1))&&(t=Zt(e,t))}return t}function qa(e){if(e.length===1&&!Et(e.charCodeAt(0)))return e[0];let t=parseInt(e,16);return(t===0||t>=55296&&t<=57343||t>1114111)&&(t=65533),String.fromCodePoint(t)}function Jo(e=null,t){return e===null||e.length<t?new Uint32Array(Math.max(t+1024,16384)):e}function wp(e){let t=e.source,n=t.length,r=t.length>0?md(t.charCodeAt(0)):0,o=Jo(e.lines,n),i=Jo(e.columns,n),s=e.startLine,a=e.startColumn;for(let l=r;l<n;l++){let u=t.charCodeAt(l);o[l]=s,i[l]=a++,(u===bp||u===Dp||u===ZD)&&(u===Dp&&l+1<n&&t.charCodeAt(l+1)===bp&&(l++,o[l]=s,i[l]=a),s++,a=1)}o[n]=s,i[n]=a,e.lines=o,e.columns=i,e.computed=!0}function ti(e,t){function n(p){return p<a?e.charCodeAt(p):0}function r(){if(u=ei(e,u),zo(n(u),n(u+1),n(u+2))){c=12,u=jo(e,u);return}if(n(u)===37){c=11,u++;return}c=10}function o(){let p=u;if(u=jo(e,u),Lr(e,p,u,"url")&&n(u)===40){if(u=Io(e,u+1),n(u)===34||n(u)===39){c=2,u=p+4;return}s();return}if(n(u)===40){c=2,u++;return}c=1}function i(p){for(p||(p=n(u++)),c=5;u<e.length;u++){let f=e.charCodeAt(u);switch(aa(f)){case p:u++;return;case Wo:if(Ho(f)){u+=_a(e,u,f),c=6;return}break;case 92:if(u===e.length-1)break;let m=n(u+1);Ho(m)?u+=_a(e,u+1,m):We(f,m)&&(u=Zt(e,u)-1);break}}}function s(){for(c=7,u=Io(e,u);u<e.length;u++){let p=e.charCodeAt(u);switch(aa(p)){case 41:u++;return;case Wo:if(u=Io(e,u),n(u)===41||u>=e.length){u<e.length&&u++;return}u=ua(e,u),c=8;return;case 34:case 39:case 40:case gd:u=ua(e,u),c=8;return;case 92:if(We(p,n(u+1))){u=Zt(e,u)-1;break}u=ua(e,u),c=8;return}}}e=String(e||"");let a=e.length,l=md(n(0)),u=l,c;for(;u<a;){let p=e.charCodeAt(u);switch(aa(p)){case Wo:c=13,u=Io(e,u+1);break;case 34:i();break;case 35:Va(n(u+1))||We(n(u+1),n(u+2))?(c=4,u=jo(e,u+1)):(c=9,u++);break;case 39:i();break;case 40:c=21,u++;break;case 41:c=22,u++;break;case 43:sa(p,n(u+1),n(u+2))?r():(c=9,u++);break;case 44:c=18,u++;break;case 45:sa(p,n(u+1),n(u+2))?r():n(u+1)===45&&n(u+2)===62?(c=15,u=u+3):zo(p,n(u+1),n(u+2))?o():(c=9,u++);break;case 46:sa(p,n(u+1),n(u+2))?r():(c=9,u++);break;case 47:n(u+1)===42?(c=25,u=e.indexOf("*/",u+2),u=u===-1?e.length:u+2):(c=9,u++);break;case 58:c=16,u++;break;case 59:c=17,u++;break;case 60:n(u+1)===33&&n(u+2)===45&&n(u+3)===45?(c=14,u=u+4):(c=9,u++);break;case 64:zo(n(u+1),n(u+2),n(u+3))?(c=3,u=jo(e,u+1)):(c=9,u++);break;case 91:c=19,u++;break;case 92:We(p,n(u+1))?o():(c=9,u++);break;case 93:c=20,u++;break;case 123:c=23,u++;break;case 125:c=24,u++;break;case hd:r();break;case Ga:o();break;default:c=9,u++}t(c,l,l=u)}}function ni(e,t){let n=Object.create(SyntaxError.prototype),r=new Error;return Object.assign(n,{name:e,message:t,get stack(){return(r.stack||"").replace(/^(.+\n){1,3}/,`${e}: ${t}
36
+ `)}})}function xp({source:e,line:t,column:n},r){function o(c,p){return i.slice(c,p).map((f,m)=>String(c+m+1).padStart(l)+" |"+f).join(`
37
+ `)}let i=e.split(/\r\n?|\n|\f/),s=Math.max(1,t-r)-1,a=Math.min(t+r,i.length+1),l=Math.max(4,String(a).length)+1,u=0;n+=(kp.length-1)*(i[t-1].substr(0,n-1).match(/\t/g)||[]).length,n>ca&&(u=n-vp+3,n=vp-2);for(let c=s;c<=a;c++)c>=0&&c<i.length&&(i[c]=i[c].replace(/\t/g,kp),i[c]=(u>0&&i[c].length>u?"\u2026":"")+i[c].substr(u,ca-2)+(i[c].length>u+ca-1?"\u2026":""));return[o(s,t),new Array(n+l+2).join("-")+"^",o(t,a)].filter(Boolean).join(`
38
+ `)}function Cp(e,t,n,r,o){return Object.assign(ni("SyntaxError",e),{source:t,offset:n,line:r,column:o,sourceFragment(i){return xp({source:t,line:r,column:o},isNaN(i)?0:i)},get formattedMessage(){return`Parse error: ${e}
39
+ `+xp({source:t,line:r,column:o},2)}})}function QD(e){let t=this.createList(),n=!1,r={recognizer:e};for(;!this.eof;){switch(this.tokenType){case 25:this.next();continue;case 13:n=!0,this.next();continue}let o=e.getNode.call(this,r);if(o===void 0)break;n&&(e.onWhiteSpace&&e.onWhiteSpace.call(this,o,t,r),n=!1),t.push(o)}return n&&e.onWhiteSpace&&e.onWhiteSpace.call(this,null,t,r),t}function nw(e){return function(){return this[e]()}}function da(e){let t=Object.create(null);for(let n in e){let r=e[n],o=r.parse||r;o&&(t[n]=o)}return t}function rw(e){let t={context:Object.create(null),scope:Object.assign(Object.create(null),e.scope),atrule:da(e.atrule),pseudo:da(e.pseudo),node:da(e.node)};for(let n in e.parseContext)switch(typeof e.parseContext[n]){case"function":t.context[n]=e.parseContext[n];break;case"string":t.context[n]=nw(e.parseContext[n]);break}return{config:t,...t,...t.node}}function ow(e){let t="",n="<unknown>",r=!1,o=Fp,i=!1,s=new KD,a=Object.assign(new XD,rw(e||{}),{parseAtrulePrelude:!0,parseRulePrelude:!0,parseValue:!0,parseCustomProperty:!1,readSequence:QD,consumeUntilBalanceEnd:()=>0,consumeUntilLeftCurlyBracket(l){return l===_p?1:0},consumeUntilLeftCurlyBracketOrSemicolon(l){return l===_p||l===pa?1:0},consumeUntilExclamationMarkOrSemicolon(l){return l===ew||l===pa?1:0},consumeUntilSemicolonIncluded(l){return l===pa?2:0},createList(){return new ie},createSingleNodeList(l){return new ie().appendData(l)},getFirstListNode(l){return l&&l.first},getLastListNode(l){return l&&l.last},parseWithFallback(l,u){let c=this.tokenIndex;try{return l.call(this)}catch(p){if(i)throw p;let f=u.call(this,c);return i=!0,o(p,f),i=!1,f}},lookupNonWSType(l){let u;do if(u=this.lookupType(l++),u!==13)return u;while(u!==Ep);return Ep},charCodeAt(l){return l>=0&&l<t.length?t.charCodeAt(l):0},substring(l,u){return t.substring(l,u)},substrToCursor(l){return this.source.substring(l,this.tokenStart)},cmpChar(l,u){return jn(t,l,u)},cmpStr(l,u,c){return Lr(t,l,u,c)},consume(l){let u=this.tokenStart;return this.eat(l),this.substrToCursor(u)},consumeFunctionName(){let l=t.substring(this.tokenStart,this.tokenEnd-1);return this.eat(2),l},consumeNumber(l){let u=t.substring(this.tokenStart,ei(t,this.tokenStart));return this.eat(l),u},eat(l){if(this.tokenType!==l){let u=yd[l].slice(0,-6).replace(/-/g," ").replace(/^./,f=>f.toUpperCase()),c=`${/[[\](){}]/.test(u)?`"${u}"`:u} is expected`,p=this.tokenStart;switch(l){case 1:this.tokenType===2||this.tokenType===7?(p=this.tokenEnd-1,c="Identifier is expected but function found"):c="Identifier is expected";break;case 4:this.isDelim(tw)&&(this.next(),p++,c="Name is expected");break;case 11:this.tokenType===10&&(p=this.tokenEnd,c="Percent sign is expected");break}this.error(c,p)}this.next()},eatIdent(l){(this.tokenType!==1||this.lookupValue(0,l)===!1)&&this.error(`Identifier "${l}" is expected`),this.next()},eatDelim(l){this.isDelim(l)||this.error(`Delim "${String.fromCharCode(l)}" is expected`),this.next()},getLocation(l,u){return r?s.getLocationRange(l,u,n):null},getLocationFromList(l){if(r){let u=this.getFirstListNode(l),c=this.getLastListNode(l);return s.getLocationRange(u!==null?u.loc.start.offset-s.startOffset:this.tokenStart,c!==null?c.loc.end.offset-s.startOffset:this.tokenStart,n)}return null},error(l,u){let c=typeof u<"u"&&u<t.length?s.getLocation(u):this.eof?s.getLocation(JD(t,t.length-1)):s.getLocation(this.tokenStart);throw new Cp(l||"Unexpected input",t,c.offset,c.line,c.column)}});return Object.assign(function(l,u){t=l,u=u||{},a.setSource(t,ti),s.setSource(t,u.offset,u.line,u.column),n=u.filename||"<unknown>",r=!!u.positions,o=typeof u.onParseError=="function"?u.onParseError:Fp,i=!1,a.parseAtrulePrelude="parseAtrulePrelude"in u?!!u.parseAtrulePrelude:!0,a.parseRulePrelude="parseRulePrelude"in u?!!u.parseRulePrelude:!0,a.parseValue="parseValue"in u?!!u.parseValue:!0,a.parseCustomProperty="parseCustomProperty"in u?!!u.parseCustomProperty:!1;let{context:c="default",onComment:p}=u;if(!(c in a.context))throw new Error("Unknown context `"+c+"`");typeof p=="function"&&a.forEachToken((m,y,w)=>{if(m===25){let O=a.getLocation(y,w),F=Lr(t,w-2,w,"*/")?t.slice(y+2,w-2):t.slice(y+2,w);p(F,O)}});let f=a.context[c].call(a,u);return a.eof||a.error(),f},{SyntaxError:Cp,config:a.config})}function sw(e){let t=new iw.SourceMapGenerator,n={line:1,column:0},r={line:0,column:0},o={line:1,column:0},i={generated:o},s=1,a=0,l=!1,u=e.node;e.node=function(f){if(f.loc&&f.loc.start&&Sp.has(f.type)){let m=f.loc.start.line,y=f.loc.start.column-1;(r.line!==m||r.column!==y)&&(r.line=m,r.column=y,n.line=s,n.column=a,l&&(l=!1,(n.line!==o.line||n.column!==o.column)&&t.addMapping(i)),l=!0,t.addMapping({source:f.loc.source,original:r,generated:n}))}u.call(this,f),l&&Sp.has(f.type)&&(o.line=s,o.column=a)};let c=e.emit;e.emit=function(f,m,y){for(let w=0;w<f.length;w++)f.charCodeAt(w)===10?(s++,a=0):a++;c(f,m,y)};let p=e.result;return e.result=function(){return l&&t.addMapping(i),{css:p(),map:t}},e}function Dd(e){let t=new Set(e.map(([n,r])=>fa(n)<<16|fa(r)));return function(n,r,o){let i=fa(r,o),s=o.charCodeAt(0);return(s===lw&&r!==1&&r!==2&&r!==15||s===aw?t.has(n<<16|s<<8):t.has(n<<16|i))&&this.emit(" ",13,!0),i}}function dw(e,t){if(typeof t=="function"){let n=null;e.children.forEach(r=>{n!==null&&t.call(this,n),this.node(r),n=r});return}e.children.forEach(this.node,this)}function fw(e){ti(e,(t,n,r)=>{this.token(t,e.slice(n,r))})}function mw(e){let t=new Map;for(let n in e.node){let r=e.node[n];typeof(r.generate||r)=="function"&&t.set(n,r.generate||r)}return function(n,r){let o="",i=0,s={node(l){if(t.has(l.type))t.get(l.type).call(a,l);else throw new Error("Unknown node type: "+l.type)},tokenBefore:wd,token(l,u){i=this.tokenBefore(i,l,u),this.emit(u,l,!1),l===9&&u.charCodeAt(0)===pw&&this.emit(`
40
+ `,13,!0)},emit(l){o+=l},result(){return o}};r&&(typeof r.decorator=="function"&&(s=r.decorator(s)),r.sourceMap&&(s=sw(s)),r.mode in Ea&&(s.tokenBefore=Ea[r.mode]));let a={node:l=>s.node(l),children:dw,token:(l,u)=>s.token(l,u),tokenize:fw};return s.node(n),s.result()}}function hw(e){return{fromPlainObject(t){return e(t,{enter(n){n.children&&!(n.children instanceof ie)&&(n.children=new ie().fromArray(n.children))}}),t},toPlainObject(t){return e(t,{leave(n){n.children&&n.children instanceof ie&&(n.children=n.children.toArray())}}),t}}}function Tp(e){return typeof e=="function"?e:Ar}function Ap(e,t){return function(n,r,o){n.type===t&&e.call(this,n,r,o)}}function gw(e,t){let n=t.structure,r=[];for(let o in n){if(Ha.call(n,o)===!1)continue;let i=n[o],s={name:o,type:!1,nullable:!1};Array.isArray(i)||(i=[i]);for(let a of i)a===null?s.nullable=!0:typeof a=="string"?s.type="node":Array.isArray(a)&&(s.type="list");s.type&&r.push(s)}return r.length?{context:t.walkContext,fields:r}:null}function yw(e){let t={};for(let n in e.node)if(Ha.call(e.node,n)){let r=e.node[n];if(!r.structure)throw new Error("Missed `structure` field in `"+n+"` node type definition");t[n]=gw(n,r)}return t}function Op(e,t){let n=e.fields.slice(),r=e.context,o=typeof r=="string";return t&&n.reverse(),function(i,s,a,l){let u;o&&(u=s[r],s[r]=i);for(let c of n){let p=i[c.name];if(!c.nullable||p){if(c.type==="list"){if(t?p.reduceRight(l,!1):p.reduce(l,!1))return!0}else if(a(p))return!0}}o&&(s[r]=u)}}function Pp({StyleSheet:e,Atrule:t,Rule:n,Block:r,DeclarationList:o}){return{Atrule:{StyleSheet:e,Atrule:t,Rule:n,Block:r},Rule:{StyleSheet:e,Atrule:t,Rule:n,Block:r},Declaration:{StyleSheet:e,Atrule:t,Rule:n,Block:r,DeclarationList:o}}}function bw(e){let t=yw(e),n={},r={},o=Symbol("break-walk"),i=Symbol("skip-node");for(let u in t)Ha.call(t,u)&&t[u]!==null&&(n[u]=Op(t[u],!1),r[u]=Op(t[u],!0));let s=Pp(n),a=Pp(r),l=function(u,c){function p(F,$,x){let S=f.call(O,F,$,x);return S===o?!0:S===i?!1:!!(y.hasOwnProperty(F.type)&&y[F.type](F,O,p,w)||m.call(O,F,$,x)===o)}let f=Ar,m=Ar,y=n,w=(F,$,x,S)=>F||p($,x,S),O={break:o,skip:i,root:u,stylesheet:null,atrule:null,atrulePrelude:null,rule:null,selector:null,block:null,declaration:null,function:null};if(typeof c=="function")f=c;else if(c&&(f=Tp(c.enter),m=Tp(c.leave),c.reverse&&(y=r),c.visit)){if(s.hasOwnProperty(c.visit))y=c.reverse?a[c.visit]:s[c.visit];else if(!t.hasOwnProperty(c.visit))throw new Error("Bad value `"+c.visit+"` for `visit` option (should be: "+Object.keys(t).sort().join(", ")+")");f=Ap(f,c.visit),m=Ap(m,c.visit)}if(f===Ar&&m===Ar)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");p(u)};return l.break=o,l.skip=i,l.find=function(u,c){let p=null;return l(u,function(f,m,y){if(c.call(this,f,m,y))return p=f,o}),p},l.findLast=function(u,c){let p=null;return l(u,{reverse:!0,enter(f,m,y){if(c.call(this,f,m,y))return p=f,o}}),p},l.findAll=function(u,c){let p=[];return l(u,function(f,m,y){c.call(this,f,m,y)&&p.push(f)}),p},l}function Dw(e){return e}function ww(e){let{min:t,max:n,comma:r}=e;return t===0&&n===0?r?"#?":"*":t===0&&n===1?"?":t===1&&n===0?r?"#":"+":t===1&&n===1?"":(r?"#":"")+(t===n?"{"+t+"}":"{"+t+","+(n!==0?n:"")+"}")}function vw(e){switch(e.type){case"Range":return" ["+(e.min===null?"-\u221E":e.min)+","+(e.max===null?"\u221E":e.max)+"]";default:throw new Error("Unknown node type `"+e.type+"`")}}function kw(e,t,n,r){let o=e.combinator===" "||r?e.combinator:" "+e.combinator+" ",i=e.terms.map(s=>Ja(s,t,n,r)).join(o);return e.explicit||n?(r||i[0]===","?"[":"[ ")+i+(r?"]":" ]"):i}function Ja(e,t,n,r){let o;switch(e.type){case"Group":o=kw(e,t,n,r)+(e.disallowEmpty?"!":"");break;case"Multiplier":return Ja(e.term,t,n,r)+t(ww(e),e);case"Type":o="<"+e.name+(e.opts?t(vw(e.opts),e.opts):"")+">";break;case"Property":o="<'"+e.name+"'>";break;case"Keyword":o=e.name;break;case"AtKeyword":o="@"+e.name;break;case"Function":o=e.name+"(";break;case"String":case"Token":o=e.value;break;case"Comma":o=",";break;default:throw new Error("Unknown node type `"+e.type+"`")}return t(o,e)}function ri(e,t){let n=Dw,r=!1,o=!1;return typeof t=="function"?n=t:t&&(r=!!t.forceBraces,o=!!t.compact,typeof t.decorate=="function"&&(n=t.decorate)),Ja(e,n,r,o)}function xw(e,t){let n=e.tokens,r=e.longestMatch,o=r<n.length&&n[r].node||null,i=o!==t?o:null,s=0,a=0,l=0,u="",c,p;for(let f=0;f<n.length;f++){let m=n[f].value;f===r&&(a=m.length,s=u.length),i!==null&&n[f].node===i&&(f<=r?l++:l=0),u+=m}return r===n.length||l>1?(c=Ro(i||t,"end")||Or(Bp,u),p=Or(c)):(c=Ro(i,"start")||Or(Ro(t,"start")||Bp,u.slice(0,s)),p=Ro(i,"end")||Or(c,u.substr(s,a))),{css:u,mismatchOffset:s,mismatchLength:a,start:c,end:p}}function Ro(e,t){let n=e&&e.loc&&e.loc[t];return n?"line"in n?Or(n):n:null}function Or({offset:e,line:t,column:n},r){let o={offset:e,line:t,column:n};if(r){let i=r.split(/\n|\r\n?|\f/);o.offset+=r.length,o.line+=i.length-1,o.column=i.length===1?o.column+r.length:i.pop().length+1}return o}function Za(e,t){return t=t||0,e.length-t>=2&&e.charCodeAt(t)===Zo&&e.charCodeAt(t+1)===Zo}function vd(e,t){if(t=t||0,e.length-t>=3&&e.charCodeAt(t)===Zo&&e.charCodeAt(t+1)!==Zo){let n=e.indexOf("-",t+2);if(n!==-1)return e.substring(t,n+1)}return""}function Fw(e){if(Lo.has(e))return Lo.get(e);let t=e.toLowerCase(),n=Lo.get(t);if(n===void 0){let r=Za(t,0),o=r?"":vd(t,0);n=Object.freeze({basename:t.substr(o.length),name:t,prefix:o,vendor:o,custom:r})}return Lo.set(e,n),n}function _w(e){if(An.has(e))return An.get(e);let t=e,n=e[0];n==="/"?n=e[1]==="/"?"//":"/":n!=="_"&&n!=="*"&&n!=="$"&&n!=="#"&&n!=="+"&&n!=="&"&&(n="");let r=Za(t,n.length);if(!r&&(t=t.toLowerCase(),An.has(t))){let a=An.get(t);return An.set(e,a),a}let o=r?"":vd(t,n.length),i=t.substr(0,n.length+o.length),s=Object.freeze({basename:t.substr(i.length),name:t.substr(n.length),hack:n,vendor:o,prefix:i,custom:r});return An.set(e,s),s}function Sa(e,t){return e!==null&&e.type===9&&e.value.charCodeAt(0)===t}function jr(e,t,n){for(;e!==null&&(e.type===13||e.type===25);)e=n(++t);return t}function _t(e,t,n,r){if(!e)return 0;let o=e.value.charCodeAt(t);if(o===Nr||o===Ze){if(n)return 0;t++}for(;t<e.value.length;t++)if(!ae(e.value.charCodeAt(t)))return 0;return r+1}function ga(e,t,n){let r=!1,o=jr(e,t,n);if(e=n(o),e===null)return t;if(e.type!==10)if(Sa(e,Nr)||Sa(e,Ze)){if(r=!0,o=jr(n(++o),o,n),e=n(o),e===null||e.type!==10)return 0}else return t;if(!r){let i=e.value.charCodeAt(0);if(i!==Nr&&i!==Ze)return 0}return _t(e,r?0:1,r,o)}function Sw(e,t){let n=0;if(!e)return 0;if(e.type===10)return _t(e,0,Ew,n);if(e.type===1&&e.value.charCodeAt(0)===Ze){if(!jn(e.value,1,ha))return 0;switch(e.value.length){case 2:return ga(t(++n),n,t);case 3:return e.value.charCodeAt(2)!==Ze?0:(n=jr(t(++n),n,t),e=t(n),_t(e,0,On,n));default:return e.value.charCodeAt(2)!==Ze?0:_t(e,3,On,n)}}else if(e.type===1||Sa(e,Nr)&&t(n+1).type===1){if(e.type!==1&&(e=t(++n)),e===null||!jn(e.value,0,ha))return 0;switch(e.value.length){case 1:return ga(t(++n),n,t);case 2:return e.value.charCodeAt(1)!==Ze?0:(n=jr(t(++n),n,t),e=t(n),_t(e,0,On,n));default:return e.value.charCodeAt(1)!==Ze?0:_t(e,2,On,n)}}else if(e.type===12){let r=e.value.charCodeAt(0),o=r===Nr||r===Ze?1:0,i=o;for(;i<e.value.length&&ae(e.value.charCodeAt(i));i++);return i===o||!jn(e.value,i,ha)?0:i+1===e.value.length?ga(t(++n),n,t):e.value.charCodeAt(i+1)!==Ze?0:i+2===e.value.length?(n=jr(t(++n),n,t),e=t(n),_t(e,0,On,n)):_t(e,i+2,On,n)}return 0}function Ta(e,t){return e!==null&&e.type===9&&e.value.charCodeAt(0)===t}function Ow(e,t){return e.value.charCodeAt(0)===t}function Pr(e,t,n){let r=0;for(let o=t;o<e.value.length;o++){let i=e.value.charCodeAt(o);if(i===xd&&n&&r!==0)return Pr(e,t+r+1,!1),6;if(!Et(i)||++r>6)return 0}return r}function No(e,t,n){if(!e)return 0;for(;Ta(n(t),Cd);){if(++e>6)return 0;t++}return t}function Pw(e,t){let n=0;if(e===null||e.type!==1||!jn(e.value,0,Aw)||(e=t(++n),e===null))return 0;if(Ta(e,Tw))return e=t(++n),e===null?0:e.type===1?No(Pr(e,0,!0),++n,t):Ta(e,Cd)?No(1,++n,t):0;if(e.type===10){let r=Pr(e,1,!0);return r===0?0:(e=t(++n),e===null?n:e.type===12||e.type===10?!Ow(e,xd)||!Pr(e,1,!1)?0:n+1:No(r,n,t))}return e.type===12?No(Pr(e,1,!0),++n,t):0}function Ue(e,t){return t<e.length?e.charCodeAt(t):0}function Fd(e,t){return Lr(e,0,e.length,t)}function _d(e,t){for(let n=0;n<t.length;n++)if(Fd(e,t[n]))return!0;return!1}function Ed(e,t){return t!==e.length-2?!1:Ue(e,t)===92&&ae(Ue(e,t+1))}function oi(e,t,n){if(e&&e.type==="Range"){let r=Number(n!==void 0&&n!==t.length?t.substr(0,n):t);if(isNaN(r)||e.min!==null&&r<e.min&&typeof e.min!="string"||e.max!==null&&r>e.max&&typeof e.max!="string")return!0}return!1}function Iw(e,t){let n=0,r=[],o=0;e:do{switch(e.type){case 24:case 22:case 20:if(e.type!==n)break e;if(n=r.pop(),r.length===0){o++;break e}break;case 2:case 21:case 19:case 23:r.push(n),n=Ka.get(e.type);break}o++}while(e=t(o));return o}function Ae(e){return function(t,n,r){return t===null?0:t.type===2&&_d(t.value,Bw)?Iw(t,n):e(t,n,r)}}function K(e){return function(t){return t===null||t.type!==e?0:1}}function jw(e){if(e===null||e.type!==1)return 0;let t=e.value.toLowerCase();return _d(t,kd)||Fd(t,"default")?0:1}function Rw(e){return e===null||e.type!==1||Ue(e.value,0)!==45||Ue(e.value,1)!==45?0:1}function Lw(e){if(e===null||e.type!==4)return 0;let t=e.value.length;if(t!==4&&t!==5&&t!==7&&t!==9)return 0;for(let n=1;n<t;n++)if(!Et(Ue(e.value,n)))return 0;return 1}function Nw(e){return e===null||e.type!==4||!zo(Ue(e.value,1),Ue(e.value,2),Ue(e.value,3))?0:1}function Mw(e,t){if(!e)return 0;let n=0,r=[],o=0;e:do{switch(e.type){case 6:case 8:break e;case 24:case 22:case 20:if(e.type!==n)break e;n=r.pop();break;case 17:if(n===0)break e;break;case 9:if(n===0&&e.value==="!")break e;break;case 2:case 21:case 19:case 23:r.push(n),n=Ka.get(e.type);break}o++}while(e=t(o));return o}function $w(e,t){if(!e)return 0;let n=0,r=[],o=0;e:do{switch(e.type){case 6:case 8:break e;case 24:case 22:case 20:if(e.type!==n)break e;n=r.pop();break;case 2:case 21:case 19:case 23:r.push(n),n=Ka.get(e.type);break}o++}while(e=t(o));return o}function lt(e){return e&&(e=new Set(e)),function(t,n,r){if(t===null||t.type!==12)return 0;let o=ei(t.value,0);if(e!==null){let i=t.value.indexOf("\\",o),s=i===-1||!Ed(t.value,i)?t.value.substr(o):t.value.substring(o,i);if(e.has(s.toLowerCase())===!1)return 0}return oi(r,t.value,o)?0:1}}function zw(e,t,n){return e===null||e.type!==11||oi(n,e.value,e.value.length-1)?0:1}function Sd(e){return typeof e!="function"&&(e=function(){return 0}),function(t,n,r){return t!==null&&t.type===10&&Number(t.value)===0?1:e(t,n,r)}}function Ww(e,t,n){if(e===null)return 0;let r=ei(e.value,0);return r!==e.value.length&&!Ed(e.value,r)||oi(n,e.value,r)?0:1}function Uw(e,t,n){if(e===null||e.type!==10)return 0;let r=Ue(e.value,0)===43||Ue(e.value,0)===45?1:0;for(;r<e.value.length;r++)if(!ae(Ue(e.value,r)))return 0;return oi(n,e.value,r)?0:1}function qw(e){let{angle:t,decibel:n,frequency:r,flex:o,length:i,resolution:s,semitones:a,time:l}=e||{};return{dimension:Ae(lt(null)),angle:Ae(lt(t)),decibel:Ae(lt(n)),frequency:Ae(lt(r)),flex:Ae(lt(o)),length:Ae(Sd(lt(i))),resolution:Ae(lt(s)),semitones:Ae(lt(a)),time:Ae(lt(l))}}function Hw(e){return{...Vw,...Gw,...qw(e)}}function Td(e,t,n){return Object.assign(ni("SyntaxError",e),{input:t,offset:n,rawMessage:e,message:e+`
53
41
  `+t+`
54
- --`+new Array((n||t.length)+1).join("-")+"^"})}function fi(e){return e.substringToPos(e.findWsEnd(e.pos))}function Gn(e){let t=e.pos;for(;t<e.str.length;t++){let n=e.str.charCodeAt(t);if(n>=128||to[n]===0)break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function mi(e){let t=e.pos;for(;t<e.str.length;t++){let n=e.str.charCodeAt(t);if(n<48||n>57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function u0(e){let t=e.str.indexOf("'",e.pos+1);return t===-1&&(e.pos=e.str.length,e.error("Expect an apostrophe")),e.substringToPos(t+1)}function dd(e){let t=null,n=null;return e.eat(di),t=mi(e),e.charCode()===vl?(e.pos++,e.charCode()!==ud&&(n=mi(e))):n=t,e.eat(ud),{min:Number(t),max:n?Number(n):0}}function c0(e){let t=null,n=!1;switch(e.charCode()){case rf:e.pos++,t={min:0,max:0};break;case wl:e.pos++,t={min:1,max:0};break;case Qa:e.pos++,t={min:0,max:1};break;case Dl:e.pos++,n=!0,e.charCode()===di?t=dd(e):e.charCode()===Qa?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case di:t=dd(e);break;default:return null}return{type:"Multiplier",comma:n,min:t.min,max:t.max,term:null}}function qn(e,t){let n=c0(e);return n!==null?(n.term=t,e.charCode()===Dl&&e.charCodeAt(e.pos-1)===wl?qn(e,n):n):t}function Ma(e){let t=e.peek();return t===""?null:{type:"Token",value:t}}function p0(e){let t;return e.eat(kl),e.eat(pi),t=Gn(e),e.eat(pi),e.eat(of),qn(e,{type:"Property",name:t})}function d0(e){let t=null,n=null,r=1;return e.eat(wi),e.charCode()===ad&&(e.peek(),r=-1),r==-1&&e.charCode()===cd?e.peek():(t=r*Number(mi(e)),to[e.charCode()]!==0&&(t+=Gn(e))),fi(e),e.eat(vl),fi(e),e.charCode()===cd?e.peek():(r=1,e.charCode()===ad&&(e.peek(),r=-1),n=r*Number(mi(e)),to[e.charCode()]!==0&&(n+=Gn(e))),e.eat(xl),{type:"Range",min:t,max:n}}function f0(e){let t,n=null;return e.eat(kl),t=Gn(e),e.charCode()===nf&&e.nextCharCode()===a0&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===wi&&(fi(e),n=d0(e)),e.eat(of),qn(e,{type:"Type",name:t,opts:n})}function m0(e){let t=Gn(e);return e.charCode()===nf?(e.pos++,{type:"Function",name:t}):qn(e,{type:"Keyword",name:t})}function h0(e,t){function n(o,i){return{type:"Group",terms:o,combinator:i,disallowEmpty:!1,explicit:!1}}let r;for(t=Object.keys(t).sort((o,i)=>pd[o]-pd[i]);t.length>0;){r=t.shift();let o=0,i=0;for(;o<e.length;o++){let s=e[o];s.type==="Combinator"&&(s.value===r?(i===-1&&(i=o-1),e.splice(o,1),o--):(i!==-1&&o-i>1&&(e.splice(i,o-i,n(e.slice(i,o),r)),o=i+1),i=-1))}i!==-1&&t.length&&e.splice(i,o-i,n(e.slice(i,o),r))}return r}function sf(e){let t=[],n={},r,o=null,i=e.pos;for(;r=y0(e);)r.type!=="Spaces"&&(r.type==="Combinator"?((o===null||o.type==="Combinator")&&(e.pos=i,e.error("Unexpected combinator")),n[r.value]=!0):o!==null&&o.type!=="Combinator"&&(n[" "]=!0,t.push({type:"Combinator",value:" "})),t.push(r),o=r,i=e.pos);return o!==null&&o.type==="Combinator"&&(e.pos-=i,e.error("Unexpected combinator")),{type:"Group",terms:t,combinator:h0(t,n)||" ",disallowEmpty:!1,explicit:!1}}function g0(e){let t;return e.eat(wi),t=sf(e),e.eat(xl),t.explicit=!0,e.charCode()===tf&&(e.pos++,t.disallowEmpty=!0),t}function y0(e){let t=e.charCode();if(t<128&&to[t]===1)return m0(e);switch(t){case xl:break;case wi:return qn(e,g0(e));case kl:return e.nextCharCode()===pi?p0(e):f0(e);case ld:return{type:"Combinator",value:e.substringToPos(e.pos+(e.nextCharCode()===ld?2:1))};case sd:return e.pos++,e.eat(sd),{type:"Combinator",value:"&&"};case vl:return e.pos++,{type:"Comma"};case pi:return qn(e,{type:"String",value:u0(e)});case s0:case n0:case r0:case i0:case o0:return{type:"Spaces",value:fi(e)};case l0:return t=e.nextCharCode(),t<128&&to[t]===1?(e.pos++,{type:"AtKeyword",name:Gn(e)}):Ma(e);case rf:case wl:case Qa:case Dl:case tf:break;case di:if(t=e.nextCharCode(),t<48||t>57)return Ma(e);break;default:return Ma(e)}}function Cl(e){let t=new t0(e),n=sf(t);return t.pos!==e.length&&t.error("Unexpected input"),n.terms.length===1&&n.terms[0].type==="Group"?n.terms[0]:n}function fd(e){return typeof e=="function"?e:Zr}function af(e,t,n){function r(s){switch(o.call(n,s),s.type){case"Group":s.terms.forEach(r);break;case"Multiplier":r(s.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+s.type)}i.call(n,s)}let o=Zr,i=Zr;if(typeof t=="function"?o=t:t&&(o=fd(t.enter),i=fd(t.leave)),o===Zr&&i===Zr)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");r(e,n)}function D0(e){let t=[];return gi(e,(n,r,o)=>t.push({type:n,value:e.slice(r,o),node:null})),t}function w0(e,t){return typeof e=="string"?D0(e):t.generate(e,b0)}function fe(e,t,n){return t===J&&n===Z||e===J&&t===J&&n===J?e:(e.type==="If"&&e.else===Z&&t===J&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function lf(e){return e.length>2&&e.charCodeAt(e.length-2)===v0&&e.charCodeAt(e.length-1)===k0}function md(e){return e.type==="Keyword"||e.type==="AtKeyword"||e.type==="Function"||e.type==="Type"&&lf(e.name)}function el(e,t,n){switch(e){case" ":{let r=J;for(let o=t.length-1;o>=0;o--){let i=t[o];r=fe(i,r,Z)}return r}case"|":{let r=Z,o=null;for(let i=t.length-1;i>=0;i--){let s=t[i];if(md(s)&&(o===null&&i>0&&md(t[i-1])&&(o=Object.create(null),r=fe({type:"Enum",map:o},J,r)),o!==null)){let a=(lf(s.name)?s.name.slice(0,-1):s.name).toLowerCase();if(!(a in o)){o[a]=s;continue}}o=null,r=fe(s,J,r)}return r}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let r=Z;for(let o=t.length-1;o>=0;o--){let i=t[o],s;t.length>1?s=el(e,t.filter(function(a){return a!==i}),!1):s=J,r=fe(i,s,r)}return r}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let r=n?J:Z;for(let o=t.length-1;o>=0;o--){let i=t[o],s;t.length>1?s=el(e,t.filter(function(a){return a!==i}),!0):s=J,r=fe(i,s,r)}return r}}}function x0(e){let t=J,n=Fl(e.term);if(e.max===0)n=fe(n,El,Z),t=fe(n,null,Z),t.then=fe(J,J,t),e.comma&&(t.then.else=fe({type:"Comma",syntax:e},t,Z));else for(let r=e.min||1;r<=e.max;r++)e.comma&&t!==J&&(t=fe({type:"Comma",syntax:e},t,Z)),t=fe(n,fe(J,J,t),Z);if(e.min===0)t=fe(J,J,t);else for(let r=0;r<e.min-1;r++)e.comma&&t!==J&&(t=fe({type:"Comma",syntax:e},t,Z)),t=fe(n,t,Z);return t}function Fl(e){if(typeof e=="function")return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=el(e.combinator,e.terms.map(Fl),!1);return e.disallowEmpty&&(t=fe(t,El,Z)),t}case"Multiplier":return x0(e);case"Type":case"Property":return{type:e.type,name:e.name,syntax:e};case"Keyword":return{type:e.type,name:e.name.toLowerCase(),syntax:e};case"AtKeyword":return{type:e.type,name:"@"+e.name.toLowerCase(),syntax:e};case"Function":return{type:e.type,name:e.name.toLowerCase()+"(",syntax:e};case"String":return e.value.length===3?{type:"Token",value:e.value.charAt(1),syntax:e}:{type:e.type,value:e.value.substr(1,e.value.length-2).replace(/\\'/g,"'"),syntax:e};case"Token":return{type:e.type,value:e.value,syntax:e};case"Comma":return{type:e.type,syntax:e};default:throw new Error("Unknown node type:",e.type)}}function tl(e,t){return typeof e=="string"&&(e=Cl(e)),{type:"MatchGraph",match:Fl(e),syntax:t||null,source:e}}function T0(e){let t=null,n=null,r=e;for(;r!==null;)n=r.prev,r.prev=t,t=r,r=n;return t}function $a(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){let r=t.charCodeAt(n),o=e.charCodeAt(n);if(o>=65&&o<=90&&(o=o|32),o!==r)return!1}return!0}function A0(e){return e.type!==9?!1:e.value!=="?"}function bd(e){return e===null?!0:e.type===18||e.type===2||e.type===21||e.type===19||e.type===23||A0(e)}function Dd(e){return e===null?!0:e.type===22||e.type===20||e.type===24||e.type===9&&e.value==="/"}function O0(e,t,n){function r(){do W++,_=W<e.length?e[W]:null;while(_!==null&&(_.type===13||_.type===25))}function o(q){let j=W+q;return j<e.length?e[j]:null}function i(q,j){return{nextState:q,matchStack:T,syntaxStack:p,thenStack:m,tokenIndex:W,prev:j}}function s(q){m={nextState:q,matchStack:T,syntaxStack:p,prev:m}}function a(q){f=i(q,f)}function u(){T={type:E0,syntax:t.syntax,token:_,prev:T},r(),y=null,W>x&&(x=W)}function l(){p={syntax:t.syntax,opts:t.syntax.opts||p!==null&&p.opts||null,prev:p},T={type:nl,syntax:t.syntax,token:T.token,prev:T}}function c(){T.type===nl?T=T.prev:T={type:uf,syntax:p.syntax,token:T.token,prev:T},p=p.prev}let p=null,m=null,f=null,y=null,C=0,P=null,_=null,W=-1,x=0,T={type:C0,syntax:null,token:null,prev:null};for(r();P===null&&++C<yd;)switch(t.type){case"Match":if(m===null){if(_!==null&&(W!==e.length-1||_.value!=="\\0"&&_.value!=="\\9")){t=Z;break}P=gd;break}if(t=m.nextState,t===El)if(m.matchStack===T){t=Z;break}else t=J;for(;m.syntaxStack!==p;)c();m=m.prev;break;case"Mismatch":if(y!==null&&y!==!1)(f===null||W>f.tokenIndex)&&(f=y,y=!1);else if(f===null){P=F0;break}t=f.nextState,m=f.thenStack,p=f.syntaxStack,T=f.matchStack,W=f.tokenIndex,_=W<e.length?e[W]:null,f=f.prev;break;case"MatchGraph":t=t.match;break;case"If":t.else!==Z&&a(t.else),t.then!==J&&s(t.then),t=t.match;break;case"MatchOnce":t={type:"MatchOnceBuffer",syntax:t,index:0,mask:0};break;case"MatchOnceBuffer":{let F=t.syntax.terms;if(t.index===F.length){if(t.mask===0||t.syntax.all){t=Z;break}t=J;break}if(t.mask===(1<<F.length)-1){t=J;break}for(;t.index<F.length;t.index++){let h=1<<t.index;if((t.mask&h)===0){a(t),s({type:"AddMatchOnce",syntax:t.syntax,mask:t.mask|h}),t=F[t.index++];break}}break}case"AddMatchOnce":t={type:"MatchOnceBuffer",syntax:t.syntax,index:0,mask:t.mask};break;case"Enum":if(_!==null){let F=_.value.toLowerCase();if(F.indexOf("\\")!==-1&&(F=F.replace(/\\[09].*$/,"")),hd.call(t.map,F)){t=t.map[F];break}}t=Z;break;case"Generic":{let F=p!==null?p.opts:null,h=W+Math.floor(t.fn(_,o,F));if(!isNaN(h)&&h>W){for(;W<h;)u();t=J}else t=Z;break}case"Type":case"Property":{let F=t.type==="Type"?"types":"properties",h=hd.call(n,F)?n[F][t.name]:null;if(!h||!h.match)throw new Error("Bad syntax reference: "+(t.type==="Type"?"<"+t.name+">":"<'"+t.name+"'>"));if(y!==!1&&_!==null&&t.type==="Type"&&(t.name==="custom-ident"&&_.type===1||t.name==="length"&&_.value==="0")){y===null&&(y=i(t,f)),t=Z;break}l(),t=h.match;break}case"Keyword":{let F=t.name;if(_!==null){let h=_.value;if(h.indexOf("\\")!==-1&&(h=h.replace(/\\[09].*$/,"")),$a(h,F)){u(),t=J;break}}t=Z;break}case"AtKeyword":case"Function":if(_!==null&&$a(_.value,t.name)){u(),t=J;break}t=Z;break;case"Token":if(_!==null&&_.value===t.value){u(),t=J;break}t=Z;break;case"Comma":_!==null&&_.type===18?bd(T.token)?t=Z:(u(),t=Dd(_)?Z:J):t=bd(T.token)||Dd(_)?J:Z;break;case"String":let q="",j=W;for(;j<e.length&&q.length<t.value.length;j++)q+=e[j].value;if($a(q,t.value)){for(;W<j;)u();t=J}else t=Z;break;default:throw new Error("Unknown node type: "+t.type)}switch(S0+=C,P){case null:console.warn("[csstree-match] BREAK after "+yd+" iterations"),P=_0,T=null;break;case gd:for(;p!==null;)c();break;default:T=null}return{tokens:e,reason:P,iterations:C,match:T,longestMatch:x}}function wd(e,t,n){let r=O0(e,t,n||{});if(r.match===null)return r;let o=r.match,i=r.match={syntax:t.syntax||null,match:[]},s=[i];for(o=T0(o).prev;o!==null;){switch(o.type){case nl:i.match.push(i={syntax:o.syntax,match:[]}),s.push(i);break;case uf:s.pop(),i=s[s.length-1];break;default:i.match.push({syntax:o.syntax||null,token:o.token.value,node:o.token.node})}o=o.prev}return r}function pf(e){function t(o){return o===null?!1:o.type==="Type"||o.type==="Property"||o.type==="Keyword"}function n(o){if(Array.isArray(o.match)){for(let i=0;i<o.match.length;i++)if(n(o.match[i]))return t(o.syntax)&&r.unshift(o.syntax),!0}else if(o.node===e)return r=t(o.syntax)?[o.syntax]:[],!0;return!1}let r=null;return this.matched!==null&&n(this.matched),r}function P0(e,t){return _l(this,e,n=>n.type==="Type"&&n.name===t)}function I0(e,t){return _l(this,e,n=>n.type==="Property"&&n.name===t)}function B0(e){return _l(this,e,t=>t.type==="Keyword")}function _l(e,t,n){let r=pf.call(e,t);return r===null?!1:r.some(n)}function df(e){return"node"in e?e.node:df(e.match[0])}function ff(e){return"node"in e?e.node:ff(e.match[e.match.length-1])}function vd(e,t,n,r,o){function i(a){if(a.syntax!==null&&a.syntax.type===r&&a.syntax.name===o){let u=df(a),l=ff(a);e.syntax.walk(t,function(c,p,m){if(c===u){let f=new ie;do{if(f.appendData(p.data),p.data===l)break;p=p.next}while(p!==null);s.push({parent:m,nodes:f})}})}Array.isArray(a.match)&&a.match.forEach(i)}let s=[];return n.matched!==null&&i(n.matched),s}function Wa(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}function kd(e){return!!e&&Wa(e.offset)&&Wa(e.line)&&Wa(e.column)}function R0(e,t){return function(n,r){if(!n||n.constructor!==Object)return r(n,"Type of node should be an Object");for(let o in n){let i=!0;if(Xr.call(n,o)!==!1){if(o==="type")n.type!==e&&r(n,"Wrong node type `"+n.type+"`, expected `"+e+"`");else if(o==="loc"){if(n.loc===null)continue;if(n.loc&&n.loc.constructor===Object)if(typeof n.loc.source!="string")o+=".source";else if(!kd(n.loc.start))o+=".start";else if(!kd(n.loc.end))o+=".end";else continue;i=!1}else if(t.hasOwnProperty(o)){i=!1;for(let s=0;!i&&s<t[o].length;s++){let a=t[o][s];switch(a){case String:i=typeof n[o]=="string";break;case Boolean:i=typeof n[o]=="boolean";break;case null:i=n[o]===null;break;default:typeof a=="string"?i=n[o]&&n[o].type===a:Array.isArray(a)&&(i=n[o]instanceof ie)}}}else r(n,"Unknown field `"+o+"` for "+e+" node type");i||r(n,"Bad value for `"+e+"."+o+"`")}}for(let o in t)Xr.call(t,o)&&Xr.call(n,o)===!1&&r(n,"Field `"+e+"."+o+"` is missed")}}function j0(e,t){let n=t.structure,r={type:String,loc:!0},o={type:'"'+e+'"'};for(let i in n){if(Xr.call(n,i)===!1)continue;let s=[],a=r[i]=Array.isArray(n[i])?n[i].slice():[n[i]];for(let u=0;u<a.length;u++){let l=a[u];if(l===String||l===Boolean)s.push(l.name);else if(l===null)s.push("null");else if(typeof l=="string")s.push("<"+l+">");else if(Array.isArray(l))s.push("List");else throw new Error("Wrong value `"+l+"` in `"+e+"."+i+"` structure definition")}o[i]=s.join(" | ")}return{docs:o,check:R0(e,r)}}function L0(e){let t={};if(e.node){for(let n in e.node)if(Xr.call(e.node,n)){let r=e.node[n];if(r.structure)t[n]=j0(n,r);else throw new Error("Missed `structure` field in `"+n+"` node type definition")}}return t}function rl(e,t,n){let r={};for(let o in e)e[o].syntax&&(r[o]=n?e[o].syntax:bi(e[o].syntax,{compact:t}));return r}function M0(e,t,n){let r={};for(let[o,i]of Object.entries(e))r[o]={prelude:i.prelude&&(n?i.prelude.syntax:bi(i.prelude.syntax,{compact:t})),descriptors:i.descriptors&&rl(i.descriptors,t,n)};return r}function $0(e){for(let t=0;t<e.length;t++)if(e[t].value.toLowerCase()==="var(")return!0;return!1}function Ge(e,t,n){return{matched:e,iterations:n,error:t,...cf}}function Wn(e,t,n,r){let o=w0(n,e.syntax),i;return $0(o)?Ge(null,new Error("Matching for a tree with var() is not supported")):(r&&(i=wd(o,e.cssWideKeywordsSyntax,e)),(!r||!i.match)&&(i=wd(o,t.match,e),!i.match)?Ge(null,new yv(i.reason,t.syntax,n,i),i.iterations):Ge(i.match,null,i.iterations))}function za(e,t){return typeof t=="string"&&/^\s*\|/.test(t)?typeof e=="string"?e+t:t.replace(/^\s*\|\s*/,""):t||null}function Cd(e,t){let n=Object.create(null);for(let[r,o]of Object.entries(e))if(o){n[r]={};for(let i of Object.keys(o))t.includes(i)&&(n[r][i]=o[i])}return n}function ol(e,t){let n={...e};for(let[r,o]of Object.entries(t))switch(r){case"generic":n[r]=!!o;break;case"units":n[r]={...e[r]};for(let[i,s]of Object.entries(o))n[r][i]=Array.isArray(s)?s:[];break;case"atrules":n[r]={...e[r]};for(let[i,s]of Object.entries(o)){let a=n[r][i]||{},u=n[r][i]={prelude:a.prelude||null,descriptors:{...a.descriptors}};if(s){u.prelude=s.prelude?za(u.prelude,s.prelude):u.prelude||null;for(let[l,c]of Object.entries(s.descriptors||{}))u.descriptors[l]=c?za(u.descriptors[l],c):null;Object.keys(u.descriptors).length||(u.descriptors=null)}}break;case"types":case"properties":n[r]={...e[r]};for(let[i,s]of Object.entries(o))n[r][i]=za(n[r][i],s);break;case"scope":n[r]={...e[r]};for(let[i,s]of Object.entries(o))n[r][i]={...n[r][i],...s};break;case"parseContext":n[r]={...e[r],...o};break;case"atrule":case"pseudo":n[r]={...e[r],...Cd(o,["parse"])};break;case"node":n[r]={...e[r],...Cd(o,["name","structure","parse","generate","walkContext"])};break}return n}function mf(e){let t=Yw(e),n=pv(e),r=av(e),{fromPlainObject:o,toPlainObject:i}=lv(n),s={lexer:null,createLexer:a=>new xd(a,s,s.lexer.structure),tokenize:gi,parse:t,generate:r,walk:n,find:n.find,findLast:n.findLast,findAll:n.findAll,fromPlainObject:o,toPlainObject:i,fork(a){let u=ol({},e);return mf(typeof a=="function"?a(u,Object.assign):ol(u,a))}};return s.lexer=new xd({generic:!0,units:e.units,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},s),s}function ii(e,t){let n=this.tokenStart+e,r=this.charCodeAt(n);for((r===nt||r===Ee)&&(t&&this.error("Number sign is not allowed"),n++);n<this.tokenEnd;n++)ue(this.charCodeAt(n))||this.error("Integer is expected",n)}function zn(e){return ii.call(this,0,e)}function Ot(e,t){if(!this.cmpChar(this.tokenStart+e,t)){let n="";switch(t){case oi:n="N is expected";break;case Ee:n="HyphenMinus is expected";break}this.error(n,this.tokenStart+e)}}function Ua(){let e=0,t=0,n=this.tokenType;for(;n===13||n===25;)n=this.lookupType(++e);if(n!==10)if(this.isDelim(nt,e)||this.isDelim(Ee,e)){t=this.isDelim(nt,e)?nt:Ee;do n=this.lookupType(++e);while(n===13||n===25);n!==10&&(this.skip(e),zn.call(this,Qt))}else return null;return e>0&&this.skip(e),t===0&&(n=this.charCodeAt(this.tokenStart),n!==nt&&n!==Ee&&this.error("Number sign is expected")),zn.call(this,t!==0),t===Ee?"-"+this.consume(10):this.consume(10)}function gf(){let e=this.tokenStart,t=null,n=null;if(this.tokenType===10)zn.call(this,U0),n=this.consume(10);else if(this.tokenType===1&&this.cmpChar(this.tokenStart,Ee))switch(t="-1",Ot.call(this,1,oi),this.tokenEnd-this.tokenStart){case 2:this.next(),n=Ua.call(this);break;case 3:Ot.call(this,2,Ee),this.next(),this.skipSC(),zn.call(this,Qt),n="-"+this.consume(10);break;default:Ot.call(this,2,Ee),ii.call(this,3,Qt),this.next(),n=this.substrToCursor(e+2)}else if(this.tokenType===1||this.isDelim(nt)&&this.lookupType(1)===1){let r=0;switch(t="1",this.isDelim(nt)&&(r=1,this.next()),Ot.call(this,0,oi),this.tokenEnd-this.tokenStart){case 1:this.next(),n=Ua.call(this);break;case 2:Ot.call(this,1,Ee),this.next(),this.skipSC(),zn.call(this,Qt),n="-"+this.consume(10);break;default:Ot.call(this,1,Ee),ii.call(this,2,Qt),this.next(),n=this.substrToCursor(e+r+1)}}else if(this.tokenType===12){let r=this.charCodeAt(this.tokenStart),o=r===nt||r===Ee,i=this.tokenStart+o;for(;i<this.tokenEnd&&ue(this.charCodeAt(i));i++);i===this.tokenStart+o&&this.error("Integer is expected",this.tokenStart+o),Ot.call(this,i-this.tokenStart,oi),t=this.substring(e,i),i+1===this.tokenEnd?(this.next(),n=Ua.call(this)):(Ot.call(this,i-this.tokenStart+1,Ee),i+2===this.tokenEnd?(this.next(),this.skipSC(),zn.call(this,Qt),n="-"+this.consume(10)):(ii.call(this,i-this.tokenStart+2,Qt),this.next(),n=this.substrToCursor(i+1)))}else this.error();return t!==null&&t.charCodeAt(0)===nt&&(t=t.substr(1)),n!==null&&n.charCodeAt(0)===nt&&(n=n.substr(1)),{type:"AnPlusB",loc:this.getLocation(e,this.tokenStart),a:t,b:n}}function q0(e){if(e.a){let t=e.a==="+1"&&"n"||e.a==="1"&&"n"||e.a==="-1"&&"-n"||e.a+"n";if(e.b){let n=e.b[0]==="-"||e.b[0]==="+"?e.b:"+"+e.b;this.tokenize(t+n)}else this.tokenize(t)}else this.tokenize(e.b)}function Ed(e){return this.Raw(e,this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function H0(){for(let e=1,t;t=this.lookupType(e);e++){if(t===24)return!0;if(t===23||t===3)return!1}return!1}function bf(e=!1){let t=this.tokenStart,n,r,o=null,i=null;switch(this.eat(3),n=this.substrToCursor(t+1),r=n.toLowerCase(),this.skipSC(),this.eof===!1&&this.tokenType!==23&&this.tokenType!==17&&(this.parseAtrulePrelude?o=this.parseWithFallback(this.AtrulePrelude.bind(this,n,e),Ed):o=Ed.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case 17:this.next();break;case 23:hasOwnProperty.call(this.atrule,r)&&typeof this.atrule[r].block=="function"?i=this.atrule[r].block.call(this,e):i=this.Block(H0.call(this));break}return{type:"Atrule",loc:this.getLocation(t,this.tokenStart),name:n,prelude:o,block:i}}function Y0(e){this.token(3,"@"+e.name),e.prelude!==null&&this.node(e.prelude),e.block?this.node(e.block):this.token(17,";")}function wf(e){let t=null;return e!==null&&(e=e.toLowerCase()),this.skipSC(),hasOwnProperty.call(this.atrule,e)&&typeof this.atrule[e].prelude=="function"?t=this.atrule[e].prelude.call(this):t=this.readSequence(this.scope.AtrulePrelude),this.skipSC(),this.eof!==!0&&this.tokenType!==23&&this.tokenType!==17&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}}function tk(e){this.children(e)}function ik(){this.eof&&this.error("Unexpected end of input");let e=this.tokenStart,t=!1;return this.isDelim(kf)?(t=!0,this.next()):this.isDelim(il)||this.eat(1),this.isDelim(il)?this.charCodeAt(this.tokenStart+1)!==si?(this.next(),this.eat(1)):t&&this.error("Identifier is expected",this.tokenEnd):t&&this.error("Vertical line is expected"),{type:"Identifier",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function sk(){let e=this.tokenStart,t=this.charCodeAt(e);return t!==si&&t!==ok&&t!==rk&&t!==nk&&t!==kf&&t!==il&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),t!==si&&(this.isDelim(si)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}function xf(){let e=this.tokenStart,t,n=null,r=null,o=null;return this.eat(19),this.skipSC(),t=ik.call(this),this.skipSC(),this.tokenType!==20&&(this.tokenType!==1&&(n=sk.call(this),this.skipSC(),r=this.tokenType===5?this.String():this.Identifier(),this.skipSC()),this.tokenType===1&&(o=this.consume(1),this.skipSC())),this.eat(20),{type:"AttributeSelector",loc:this.getLocation(e,this.tokenStart),name:t,matcher:n,value:r,flags:o}}function uk(e){this.token(9,"["),this.node(e.name),e.matcher!==null&&(this.tokenize(e.matcher),this.node(e.value)),e.flags!==null&&this.token(1,e.flags),this.token(9,"]")}function Ef(e){return this.Raw(e,null,!0)}function Fd(){return this.parseWithFallback(this.Rule,Ef)}function _d(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function pk(){if(this.tokenType===17)return _d.call(this,this.tokenIndex);let e=this.parseWithFallback(this.Declaration,_d);return this.tokenType===17&&this.next(),e}function Ff(e){let t=e?pk:Fd,n=this.tokenStart,r=this.createList();this.eat(23);e:for(;!this.eof;)switch(this.tokenType){case 24:break e;case 13:case 25:this.next();break;case 3:r.push(this.parseWithFallback(this.Atrule.bind(this,e),Ef));break;default:e&&this.isDelim(ck)?r.push(Fd.call(this)):r.push(t.call(this))}return this.eof||this.eat(24),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}}function hk(e){this.token(23,"{"),this.children(e,t=>{t.type==="Declaration"&&this.token(17,";")}),this.token(24,"}")}function Sf(e,t){let n=this.tokenStart,r=null;return this.eat(19),r=e.call(this,t),this.eof||this.eat(20),{type:"Brackets",loc:this.getLocation(n,this.tokenStart),children:r}}function bk(e){this.token(9,"["),this.children(e),this.token(9,"]")}function Af(){let e=this.tokenStart;return this.eat(15),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function vk(){this.token(15,"-->")}function Pf(){let e=this.tokenStart;return this.eat(14),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function Ck(){this.token(14,"<!--")}function Bf(){return this.eatDelim(Ek),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(1)}}function Sk(e){this.token(9,"."),this.token(1,e.name)}function jf(){let e=this.tokenStart,t;switch(this.tokenType){case 13:t=" ";break;case 9:switch(this.charCodeAt(this.tokenStart)){case Ak:case Tk:case Ok:this.next();break;case Sd:this.next(),this.eatIdent("deep"),this.eatDelim(Sd);break;default:this.error("Combinator is expected")}t=this.substrToCursor(e);break}return{type:"Combinator",loc:this.getLocation(e,this.tokenStart),name:t}}function Bk(e){this.tokenize(e.name)}function Nf(){let e=this.tokenStart,t=this.tokenEnd;return this.eat(25),t-e+2>=2&&this.charCodeAt(t-2)===Rk&&this.charCodeAt(t-1)===jk&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function Mk(e){this.token(25,"/*"+e.value+"*/")}function Gk(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!0)}function qk(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!1)}function Hk(){let e=this.tokenIndex,t=this.Value();return t.type!=="Raw"&&this.eof===!1&&this.tokenType!==17&&this.isDelim($f)===!1&&this.isBalanceEdge(e)===!1&&this.error(),t}function Wf(){let e=this.tokenStart,t=this.tokenIndex,n=Xk.call(this),r=yl(n),o=r?this.parseCustomProperty:this.parseValue,i=r?qk:Gk,s=!1,a;this.skipSC(),this.eat(16);let u=this.tokenIndex;if(r||this.skipSC(),o?a=this.parseWithFallback(Hk,i):a=i.call(this,this.tokenIndex),r&&a.type==="Value"&&a.children.isEmpty){for(let l=u-this.tokenIndex;l<=0;l++)if(this.lookupType(l)===13){a.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}return this.isDelim($f)&&(s=Qk.call(this),this.skipSC()),this.eof===!1&&this.tokenType!==17&&this.isBalanceEdge(t)===!1&&this.error(),{type:"Declaration",loc:this.getLocation(e,this.tokenStart),important:s,property:n,value:a}}function Yk(e){this.token(1,e.property),this.token(16,":"),this.node(e.value),e.important&&(this.token(9,"!"),this.token(1,e.important===!0?"important":e.important))}function Xk(){let e=this.tokenStart;if(this.tokenType===9)switch(this.charCodeAt(this.tokenStart)){case Uk:case Wk:case Vk:case $k:case zk:this.next();break;case Td:this.next(),this.isDelim(Td)&&this.next();break}return this.tokenType===4?this.eat(4):this.eat(1),this.substrToCursor(e)}function Qk(){this.eat(9),this.skipSC();let e=this.consume(1);return e==="important"?!0:e}function Va(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function Uf(){let e=this.createList();for(;!this.eof;)switch(this.tokenType){case 13:case 25:case 17:this.next();break;case 3:e.push(this.parseWithFallback(this.Atrule.bind(this,!0),Va));break;default:this.isDelim(ex)?e.push(this.parseWithFallback(this.Rule,Va)):e.push(this.parseWithFallback(this.Declaration,Va))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function rx(e){this.children(e,t=>{t.type==="Declaration"&&this.token(17,";")})}function Gf(){let e=this.tokenStart,t=this.consumeNumber(12);return{type:"Dimension",loc:this.getLocation(e,this.tokenStart),value:t,unit:this.substring(e+t.length,this.tokenStart)}}function sx(e){this.token(12,e.value+e.unit)}function Hf(e,t){let n=this.tokenStart,r=this.consumeFunctionName(),o=r.toLowerCase(),i;return i=t.hasOwnProperty(o)?t[o].call(this,t):e.call(this,t),this.eof||this.eat(22),{type:"Function",loc:this.getLocation(n,this.tokenStart),name:r,children:i}}function cx(e){this.token(2,e.name+"("),this.children(e),this.token(22,")")}function Zf(){let e=this.tokenStart;return this.eat(4),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function mx(e){this.token(4,"#"+e.value)}function Yf(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(1)}}function yx(e){this.token(1,e.name)}function Qf(){let e=this.tokenStart;return this.eat(4),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function wx(e){this.token(9,"#"+e.name)}function tm(){let e=this.tokenStart,t,n=null;if(this.eat(21),this.skipSC(),t=this.consume(1),this.skipSC(),this.tokenType!==22){switch(this.eat(16),this.skipSC(),this.tokenType){case 10:this.lookupNonWSType(1)===9?n=this.Ratio():n=this.Number();break;case 12:n=this.Dimension();break;case 1:n=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eat(22),{type:"MediaFeature",loc:this.getLocation(e,this.tokenStart),name:t,value:n}}function xx(e){this.token(21,"("),this.token(1,e.name),e.value!==null&&(this.token(16,":"),this.node(e.value)),this.token(22,")")}function rm(){let e=this.createList(),t=null;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case 25:case 13:this.next();continue;case 1:t=this.Identifier();break;case 21:t=this.MediaFeature();break;default:break e}e.push(t)}return t===null&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(e),children:e}}function Fx(e){this.children(e)}function im(){let e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.MediaQuery()),this.tokenType===18);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}}function Tx(e){this.children(e,()=>this.token(18,","))}function am(){let e=this.tokenStart;return this.eatDelim(Ax),{type:"NestingSelector",loc:this.getLocation(e,this.tokenStart)}}function Ix(){this.token(9,"&")}function um(){this.skipSC();let e=this.tokenStart,t=e,n=null,r;return this.lookupValue(0,"odd")||this.lookupValue(0,"even")?r=this.Identifier():r=this.AnPlusB(),t=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),n=this.SelectorList(),t=this.tokenStart),{type:"Nth",loc:this.getLocation(e,t),nth:r,selector:n}}function jx(e){this.node(e.nth),e.selector!==null&&(this.token(1,"of"),this.node(e.selector))}function pm(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(10)}}function Mx(e){this.token(10,e.value)}function fm(){let e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function zx(e){this.tokenize(e.value)}function hm(e,t){let n=this.tokenStart,r=null;return this.eat(21),r=e.call(this,t),this.eof||this.eat(22),{type:"Parentheses",loc:this.getLocation(n,this.tokenStart),children:r}}function Gx(e){this.token(21,"("),this.children(e),this.token(22,")")}function ym(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(11)}}function Jx(e){this.token(11,e.value+"%")}function Dm(){let e=this.tokenStart,t=null,n,r;return this.eat(16),this.tokenType===2?(n=this.consumeFunctionName(),r=n.toLowerCase(),hasOwnProperty.call(this.pseudo,r)?(this.skipSC(),t=this.pseudo[r].call(this),this.skipSC()):(t=this.createList(),t.push(this.Raw(this.tokenIndex,null,!1))),this.eat(22)):n=this.consume(1),{type:"PseudoClassSelector",loc:this.getLocation(e,this.tokenStart),name:n,children:t}}function Xx(e){this.token(16,":"),e.children===null?this.token(1,e.name):(this.token(2,e.name+"("),this.children(e),this.token(22,")"))}function vm(){let e=this.tokenStart,t=null,n,r;return this.eat(16),this.eat(16),this.tokenType===2?(n=this.consumeFunctionName(),r=n.toLowerCase(),hasOwnProperty.call(this.pseudo,r)?(this.skipSC(),t=this.pseudo[r].call(this),this.skipSC()):(t=this.createList(),t.push(this.Raw(this.tokenIndex,null,!1))),this.eat(22)):n=this.consume(1),{type:"PseudoElementSelector",loc:this.getLocation(e,this.tokenStart),name:n,children:t}}function nC(e){this.token(16,":"),this.token(16,":"),e.children===null?this.token(1,e.name):(this.token(2,e.name+"("),this.children(e),this.token(22,")"))}function Ad(){this.skipSC();let e=this.consume(10);for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);!ue(n)&&n!==oC&&this.error("Unsigned number is expected",this.tokenStart-e.length+t)}return Number(e)===0&&this.error("Zero number is not allowed",this.tokenStart-e.length),e}function xm(){let e=this.tokenStart,t=Ad.call(this),n;return this.skipSC(),this.eatDelim(rC),n=Ad.call(this),{type:"Ratio",loc:this.getLocation(e,this.tokenStart),left:t,right:n}}function aC(e){this.token(10,e.left),this.token(9,"/"),this.token(10,e.right)}function lC(){return this.tokenIndex>0&&this.lookupType(-1)===13?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}function Em(e,t,n){let r=this.getTokenStart(e),o;return this.skipUntilBalanced(e,t||this.consumeUntilBalanceEnd),n&&this.tokenStart>r?o=lC.call(this):o=this.tokenStart,{type:"Raw",loc:this.getLocation(r,o),value:this.substring(r,o)}}function pC(e){this.tokenize(e.value)}function Od(e){return this.Raw(e,this.consumeUntilLeftCurlyBracket,!0)}function dC(){let e=this.SelectorList();return e.type!=="Raw"&&this.eof===!1&&this.tokenType!==23&&this.error(),e}function _m(){let e=this.tokenIndex,t=this.tokenStart,n,r;return this.parseRulePrelude?n=this.parseWithFallback(dC,Od):n=Od.call(this,e),r=this.Block(!0),{type:"Rule",loc:this.getLocation(t,this.tokenStart),prelude:n,block:r}}function gC(e){this.node(e.prelude),this.node(e.block)}function Tm(){let e=this.readSequence(this.scope.Selector);return this.getFirstListNode(e)===null&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(e),children:e}}function DC(e){this.children(e)}function Om(){let e=this.createList();for(;!this.eof;){if(e.push(this.Selector()),this.tokenType===18){this.next();continue}break}return{type:"SelectorList",loc:this.getLocationFromList(e),children:e}}function xC(e){this.children(e,()=>this.token(18,","))}function Tl(e){let t=e.length,n=e.charCodeAt(0),r=n===Im||n===Bm?1:0,o=r===1&&t>1&&e.charCodeAt(t-1)===n?t-2:t-1,i="";for(let s=r;s<=o;s++){let a=e.charCodeAt(s);if(a===sl){if(s===o){s!==t-1&&(i=e.substr(s+1));break}if(a=e.charCodeAt(++s),qe(sl,a)){let u=s-1,l=tn(e,u);s=l-1,i+=ml(e.substring(u+1,l))}else a===13&&e.charCodeAt(s+1)===10&&s++}else i+=e[s]}return i}function Rm(e,t){let n=t?"'":'"',r=t?Bm:Im,o="",i=!1;for(let s=0;s<e.length;s++){let a=e.charCodeAt(s);if(a===0){o+="\uFFFD";continue}if(a<=31||a===127){o+="\\"+a.toString(16),i=!0;continue}a===r||a===sl?(o+="\\"+e.charAt(s),i=!1):(i&&(It(a)||en(a))&&(o+=" "),o+=e.charAt(s),i=!1)}return n+o+n}function jm(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:Tl(this.consume(5))}}function _C(e){this.token(5,Rm(e.value))}function Pd(e){return this.Raw(e,null,!1)}function Nm(){let e=this.tokenStart,t=this.createList(),n;for(;!this.eof;){switch(this.tokenType){case 13:this.next();continue;case 25:if(this.charCodeAt(this.tokenStart+2)!==SC){this.next();continue}n=this.Comment();break;case 14:n=this.CDO();break;case 15:n=this.CDC();break;case 3:n=this.parseWithFallback(this.Atrule,Pd);break;default:n=this.parseWithFallback(this.Rule,Pd)}t.push(n)}return{type:"StyleSheet",loc:this.getLocation(e,this.tokenStart),children:t}}function PC(e){this.children(e)}function Ga(){this.tokenType!==1&&this.isDelim(IC)===!1&&this.error("Identifier or asterisk is expected"),this.next()}function $m(){let e=this.tokenStart;return this.isDelim(Id)?(this.next(),Ga.call(this)):(Ga.call(this),this.isDelim(Id)&&(this.next(),Ga.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function jC(e){this.tokenize(e.name)}function Kr(e,t){let n=0;for(let r=this.tokenStart+e;r<this.tokenEnd;r++){let o=this.charCodeAt(r);if(o===Um&&t&&n!==0)return Kr.call(this,e+n+1,!1),-1;It(o)||this.error(t&&n!==0?"Hyphen minus"+(n<6?" or hex digit":"")+" is expected":n<6?"Hex digit is expected":"Unexpected input",r),++n>6&&this.error("Too many hex digits",r)}return this.next(),n}function ei(e){let t=0;for(;this.isDelim(al);)++t>e&&this.error("Too many question marks"),this.next()}function LC(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===zm?"Plus sign":"Hyphen minus")+" is expected")}function NC(){let e=0;switch(this.tokenType){case 10:if(e=Kr.call(this,1,!0),this.isDelim(al)){ei.call(this,6-e);break}if(this.tokenType===12||this.tokenType===10){LC.call(this,Um),Kr.call(this,1,!1);break}break;case 12:e=Kr.call(this,1,!0),e>0&&ei.call(this,6-e);break;default:if(this.eatDelim(zm),this.tokenType===1){e=Kr.call(this,0,!0),e>0&&ei.call(this,6-e);break}if(this.isDelim(al)){this.next(),ei.call(this,5);break}this.error("Hex digit or question mark is expected")}}function Vm(){let e=this.tokenStart;return this.eatIdent("u"),NC.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function WC(e){this.tokenize(e.value)}function Hm(e){let t=e.length,n=4,r=e.charCodeAt(t-1)===qm?t-2:t-1,o="";for(;n<r&&en(e.charCodeAt(n));)n++;for(;n<r&&en(e.charCodeAt(r));)r--;for(let i=n;i<=r;i++){let s=e.charCodeAt(i);if(s===ll){if(i===r){i!==t-1&&(o=e.substr(i+1));break}if(s=e.charCodeAt(++i),qe(ll,s)){let a=i-1,u=tn(e,a);i=u-1,o+=ml(e.substring(a+1,u))}else s===13&&e.charCodeAt(i+1)===10&&i++}else o+=e[i]}return o}function Jm(e){let t="",n=!1;for(let r=0;r<e.length;r++){let o=e.charCodeAt(r);if(o===0){t+="\uFFFD";continue}if(o<=31||o===127){t+="\\"+o.toString(16),n=!0;continue}o===UC||o===ll||o===VC||o===GC||o===qC||o===qm?(t+="\\"+e.charAt(r),n=!1):(n&&It(o)&&(t+=" "),t+=e.charAt(r),n=!1)}return"url("+t+")"}function Zm(){let e=this.tokenStart,t;switch(this.tokenType){case 7:t=Hm(this.consume(7));break;case 2:this.cmpStr(this.tokenStart,this.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(2),this.skipSC(),t=Tl(this.consume(5)),this.skipSC(),this.eof||this.eat(22);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(e,this.tokenStart),value:t}}function ZC(e){this.token(7,Jm(e.value))}function Ym(){let e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.tokenStart),children:t}}function XC(e){this.children(e)}function Qm(){return this.eat(13),QC}function n1(e){this.token(13,e.value)}function th(e){switch(this.tokenType){case 4:return this.Hash();case 18:return this.Operator();case 21:return this.Parentheses(this.readSequence,e.recognizer);case 19:return this.Brackets(this.readSequence,e.recognizer);case 5:return this.String();case 12:return this.Dimension();case 11:return this.Percentage();case 10:return this.Number();case 2:return this.cmpStr(this.tokenStart,this.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,e.recognizer);case 7:return this.Url();case 1:return this.cmpChar(this.tokenStart,l1)&&this.cmpChar(this.tokenStart+1,Bd)?this.UnicodeRange():this.Identifier();case 9:{let t=this.charCodeAt(this.tokenStart);if(t===a1||t===i1||t===Bd||t===s1)return this.Operator();t===o1&&this.error("Hex or identifier is expected",this.tokenStart+1);break}}}function b1(e,t){t.last!==null&&t.last.type!=="Combinator"&&e!==null&&e.type!=="Combinator"&&t.push({type:"Combinator",loc:null,name:" "})}function D1(){switch(this.tokenType){case 19:return this.AttributeSelector();case 4:return this.IdSelector();case 16:return this.lookupType(1)===16?this.PseudoElementSelector():this.PseudoClassSelector();case 1:return this.TypeSelector();case 10:case 11:return this.Percentage();case 12:this.charCodeAt(this.tokenStart)===Rd&&this.error("Identifier is expected",this.tokenStart+1);break;case 9:{switch(this.charCodeAt(this.tokenStart)){case f1:case h1:case y1:case m1:return this.Combinator();case Rd:return this.ClassSelector();case d1:case g1:return this.TypeSelector();case c1:return this.IdSelector();case p1:return this.NestingSelector()}break}}}function v1(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function k1(){let e=this.createList();if(this.skipSC(),e.push(this.Identifier()),this.skipSC(),this.tokenType===18){e.push(this.Operator());let t=this.tokenIndex,n=this.parseCustomProperty?this.Value(null):this.Raw(this.tokenIndex,this.consumeUntilExclamationMarkOrSemicolon,!1);if(n.type==="Value"&&n.children.isEmpty){for(let r=t-this.tokenIndex;r<=0;r++)if(this.lookupType(r)===13){n.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}e.push(n)}return e}function jd(e){return e!==null&&e.type==="Operator"&&(e.value[e.value.length-1]==="-"||e.value[e.value.length-1]==="+")}function T1(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function A1(){return this.skipSC(),this.tokenType===1&&this.lookupNonWSType(1)===16?this.createSingleNodeList(this.Declaration()):nh.call(this)}function nh(){let e=this.createList(),t;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case 25:case 13:this.next();continue;case 2:t=this.Function(T1,this.scope.AtrulePrelude);break;case 1:t=this.Identifier();break;case 21:t=this.Parentheses(A1,this.scope.AtrulePrelude);break;default:break e}e.push(t)}return e}function N1(e){let t=e.length-1,n="";for(let r=0;r<e.length;r++){let o=e.charCodeAt(r);if(o===Nd){if(r===t)break;if(o=e.charCodeAt(++r),qe(Nd,o)){let i=r-1,s=tn(e,i);r=s-1,n+=ml(e.substring(i+1,s))}else o===13&&e.charCodeAt(r+1)===10&&r++}else n+=e[r]}return n}function M1(e){let t="";if(e.length===1&&e.charCodeAt(0)===45)return"\\-";for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r===0){t+="\uFFFD";continue}if(r<=31||r===127||r>=48&&r<=57&&(n===0||n===1&&e.charCodeAt(0)===45)){t+="\\"+r.toString(16)+" ";continue}dl(r)?t+=e.charAt(n):t+="\\"+e.charAt(n)}return t}var YD,ul,XD,QD,ew,tw,Hn,I,nw,rw,ow,iw,cl,sw,aw,lw,uw,cw,pw,dw,fw,mw,hw,gw,yw,bw,Dw,ww,vw,kw,xw,Cw,Ew,Fw,_w,Sw,Tw,Aw,Ow,Pw,Iw,Bw,Rw,Ha,$w,ri,$d,fl,Wd,zd,Up,zw,Vp,Uw,Pe,At,Vw,Gw,Nn,ie,Pa,qp,Hp,Kp,Hw,Jw,Ia,Yp,Xp,Xw,Qp,Za,ev,tv,Ra,Ud,nv,rv,Gd,ov,hl,qr,od,Gr,yv,Xo,Mn,ci,ja,id,Hd,eo,tt,La,$n,wv,kv,Jd,Zd,xv,Fv,bl,Lv,Nv,Xa,Wv,zv,Uv,Vv,Gv,qv,Hv,Jv,Zv,Kv,Yv,Xv,Qv,e0,t0,n0,r0,o0,i0,s0,tf,Dl,sd,pi,nf,a0,rf,wl,vl,ad,kl,of,Qa,l0,wi,xl,di,ld,ud,cd,to,pd,Zr,b0,J,Z,El,v0,k0,hd,C0,E0,nl,uf,gd,F0,_0,yd,S0,cf,Xr,N0,xd,W0,z0,Sl,hf,nt,Ee,oi,Qt,U0,V0,G0,yf,J0,Z0,K0,Df,X0,Q0,ek,vf,nk,kf,si,rk,il,ok,ak,lk,Cf,ck,dk,fk,mk,_f,gk,yk,Tf,Dk,wk,Of,kk,xk,If,Ek,Fk,_k,Rf,Tk,Sd,Ak,Ok,Pk,Ik,Lf,Rk,jk,Lk,Nk,Mf,$f,$k,Wk,zk,Uk,Vk,Td,Jk,Zk,Kk,zf,ex,tx,nx,Vf,ox,ix,qf,ax,lx,ux,Jf,px,dx,fx,Kf,hx,gx,Xf,bx,Dx,em,vx,kx,nm,Cx,Ex,om,_x,Sx,sm,Ax,Ox,Px,lm,Bx,Rx,cm,Lx,Nx,dm,$x,Wx,mm,Ux,Vx,gm,qx,Hx,bm,Zx,Kx,Yx,wm,Qx,eC,tC,km,rC,oC,iC,sC,Cm,uC,cC,Fm,fC,mC,hC,Sm,yC,bC,Am,wC,vC,kC,Pm,CC,sl,Im,Bm,EC,FC,Lm,SC,TC,AC,OC,Mm,IC,Id,BC,RC,Wm,zm,Um,al,MC,$C,Gm,zC,UC,ll,VC,GC,qC,qm,HC,JC,Km,KC,YC,Xm,QC,e1,t1,r1,eh,o1,i1,Bd,s1,a1,l1,u1,c1,p1,d1,f1,m1,Rd,h1,g1,y1,w1,x1,C1,E1,F1,_1,S1,O1,P1,Xt,qa,Ld,ti,I1,rh,B1,R1,j1,L1,Nd,FA,oh,ih,_A,SA,sh,TA,AA,OA,PA,IA,BA,ah=k(()=>{"use strict";YD=Object.create,ul=Object.defineProperty,XD=Object.getOwnPropertyDescriptor,QD=Object.getOwnPropertyNames,ew=Object.getPrototypeOf,tw=Object.prototype.hasOwnProperty,Hn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),I=(e,t)=>{for(var n in t)ul(e,n,{get:t[n],enumerable:!0})},nw=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of QD(t))!tw.call(e,o)&&o!==n&&ul(e,o,{get:()=>t[o],enumerable:!(r=XD(t,o))||r.enumerable});return e},rw=(e,t,n)=>(n=e!=null?YD(ew(e)):{},nw(t||!e||!e.__esModule?ul(n,"default",{value:e,enumerable:!0}):n,e)),ow=Hn(e=>{var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");e.encode=function(n){if(0<=n&&n<t.length)return t[n];throw new TypeError("Must be between 0 and 63: "+n)},e.decode=function(n){var r=65,o=90,i=97,s=122,a=48,u=57,l=43,c=47,p=26,m=52;return r<=n&&n<=o?n-r:i<=n&&n<=s?n-i+p:a<=n&&n<=u?n-a+m:n==l?62:n==c?63:-1}}),iw=Hn(e=>{var t=ow(),n=5,r=1<<n,o=r-1,i=r;function s(u){return u<0?(-u<<1)+1:(u<<1)+0}function a(u){var l=(u&1)===1,c=u>>1;return l?-c:c}e.encode=function(u){var l="",c,p=s(u);do c=p&o,p>>>=n,p>0&&(c|=i),l+=t.encode(c);while(p>0);return l},e.decode=function(u,l,c){var p=u.length,m=0,f=0,y,C;do{if(l>=p)throw new Error("Expected more digits in base 64 VLQ value.");if(C=t.decode(u.charCodeAt(l++)),C===-1)throw new Error("Invalid base64 digit: "+u.charAt(l-1));y=!!(C&i),C&=o,m=m+(C<<f),f+=n}while(y);c.value=a(m),c.rest=l}}),cl=Hn(e=>{function t(h,g,B){if(g in h)return h[g];if(arguments.length===3)return B;throw new Error('"'+g+'" is a required argument.')}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function o(h){var g=h.match(n);return g?{scheme:g[1],auth:g[2],host:g[3],port:g[4],path:g[5]}:null}e.urlParse=o;function i(h){var g="";return h.scheme&&(g+=h.scheme+":"),g+="//",h.auth&&(g+=h.auth+"@"),h.host&&(g+=h.host),h.port&&(g+=":"+h.port),h.path&&(g+=h.path),g}e.urlGenerate=i;var s=32;function a(h){var g=[];return function(B){for(var v=0;v<g.length;v++)if(g[v].input===B){var se=g[0];return g[0]=g[v],g[v]=se,g[0].result}var Ne=h(B);return g.unshift({input:B,result:Ne}),g.length>s&&g.pop(),Ne}}var u=a(function(h){var g=h,B=o(h);if(B){if(!B.path)return h;g=B.path}for(var v=e.isAbsolute(g),se=[],Ne=0,M=0;;)if(Ne=M,M=g.indexOf("/",Ne),M===-1){se.push(g.slice(Ne));break}else for(se.push(g.slice(Ne,M));M<g.length&&g[M]==="/";)M++;for(var X,vt=0,M=se.length-1;M>=0;M--)X=se[M],X==="."?se.splice(M,1):X===".."?vt++:vt>0&&(X===""?(se.splice(M+1,vt),vt=0):(se.splice(M,2),vt--));return g=se.join("/"),g===""&&(g=v?"/":"."),B?(B.path=g,i(B)):g});e.normalize=u;function l(h,g){h===""&&(h="."),g===""&&(g=".");var B=o(g),v=o(h);if(v&&(h=v.path||"/"),B&&!B.scheme)return v&&(B.scheme=v.scheme),i(B);if(B||g.match(r))return g;if(v&&!v.host&&!v.path)return v.host=g,i(v);var se=g.charAt(0)==="/"?g:u(h.replace(/\/+$/,"")+"/"+g);return v?(v.path=se,i(v)):se}e.join=l,e.isAbsolute=function(h){return h.charAt(0)==="/"||n.test(h)};function c(h,g){h===""&&(h="."),h=h.replace(/\/$/,"");for(var B=0;g.indexOf(h+"/")!==0;){var v=h.lastIndexOf("/");if(v<0||(h=h.slice(0,v),h.match(/^([^\/]+:\/)?\/*$/)))return g;++B}return Array(B+1).join("../")+g.substr(h.length+1)}e.relative=c;var p=function(){var h=Object.create(null);return!("__proto__"in h)}();function m(h){return h}function f(h){return C(h)?"$"+h:h}e.toSetString=p?m:f;function y(h){return C(h)?h.slice(1):h}e.fromSetString=p?m:y;function C(h){if(!h)return!1;var g=h.length;if(g<9||h.charCodeAt(g-1)!==95||h.charCodeAt(g-2)!==95||h.charCodeAt(g-3)!==111||h.charCodeAt(g-4)!==116||h.charCodeAt(g-5)!==111||h.charCodeAt(g-6)!==114||h.charCodeAt(g-7)!==112||h.charCodeAt(g-8)!==95||h.charCodeAt(g-9)!==95)return!1;for(var B=g-10;B>=0;B--)if(h.charCodeAt(B)!==36)return!1;return!0}function P(h,g,B){var v=T(h.source,g.source);return v!==0||(v=h.originalLine-g.originalLine,v!==0)||(v=h.originalColumn-g.originalColumn,v!==0||B)||(v=h.generatedColumn-g.generatedColumn,v!==0)||(v=h.generatedLine-g.generatedLine,v!==0)?v:T(h.name,g.name)}e.compareByOriginalPositions=P;function _(h,g,B){var v;return v=h.originalLine-g.originalLine,v!==0||(v=h.originalColumn-g.originalColumn,v!==0||B)||(v=h.generatedColumn-g.generatedColumn,v!==0)||(v=h.generatedLine-g.generatedLine,v!==0)?v:T(h.name,g.name)}e.compareByOriginalPositionsNoSource=_;function W(h,g,B){var v=h.generatedLine-g.generatedLine;return v!==0||(v=h.generatedColumn-g.generatedColumn,v!==0||B)||(v=T(h.source,g.source),v!==0)||(v=h.originalLine-g.originalLine,v!==0)||(v=h.originalColumn-g.originalColumn,v!==0)?v:T(h.name,g.name)}e.compareByGeneratedPositionsDeflated=W;function x(h,g,B){var v=h.generatedColumn-g.generatedColumn;return v!==0||B||(v=T(h.source,g.source),v!==0)||(v=h.originalLine-g.originalLine,v!==0)||(v=h.originalColumn-g.originalColumn,v!==0)?v:T(h.name,g.name)}e.compareByGeneratedPositionsDeflatedNoLine=x;function T(h,g){return h===g?0:h===null?1:g===null?-1:h>g?1:-1}function q(h,g){var B=h.generatedLine-g.generatedLine;return B!==0||(B=h.generatedColumn-g.generatedColumn,B!==0)||(B=T(h.source,g.source),B!==0)||(B=h.originalLine-g.originalLine,B!==0)||(B=h.originalColumn-g.originalColumn,B!==0)?B:T(h.name,g.name)}e.compareByGeneratedPositionsInflated=q;function j(h){return JSON.parse(h.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=j;function F(h,g,B){if(g=g||"",h&&(h[h.length-1]!=="/"&&g[0]!=="/"&&(h+="/"),g=h+g),B){var v=o(B);if(!v)throw new Error("sourceMapURL could not be parsed");if(v.path){var se=v.path.lastIndexOf("/");se>=0&&(v.path=v.path.substring(0,se+1))}g=l(i(v),g)}return u(g)}e.computeSourceURL=F}),sw=Hn(e=>{var t=cl(),n=Object.prototype.hasOwnProperty,r=typeof Map<"u";function o(){this._array=[],this._set=r?new Map:Object.create(null)}o.fromArray=function(i,s){for(var a=new o,u=0,l=i.length;u<l;u++)a.add(i[u],s);return a},o.prototype.size=function(){return r?this._set.size:Object.getOwnPropertyNames(this._set).length},o.prototype.add=function(i,s){var a=r?i:t.toSetString(i),u=r?this.has(i):n.call(this._set,a),l=this._array.length;(!u||s)&&this._array.push(i),u||(r?this._set.set(i,l):this._set[a]=l)},o.prototype.has=function(i){if(r)return this._set.has(i);var s=t.toSetString(i);return n.call(this._set,s)},o.prototype.indexOf=function(i){if(r){var s=this._set.get(i);if(s>=0)return s}else{var a=t.toSetString(i);if(n.call(this._set,a))return this._set[a]}throw new Error('"'+i+'" is not in the set.')},o.prototype.at=function(i){if(i>=0&&i<this._array.length)return this._array[i];throw new Error("No element indexed by "+i)},o.prototype.toArray=function(){return this._array.slice()},e.ArraySet=o}),aw=Hn(e=>{var t=cl();function n(o,i){var s=o.generatedLine,a=i.generatedLine,u=o.generatedColumn,l=i.generatedColumn;return a>s||a==s&&l>=u||t.compareByGeneratedPositionsInflated(o,i)<=0}function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}r.prototype.unsortedForEach=function(o,i){this._array.forEach(o,i)},r.prototype.add=function(o){n(this._last,o)?(this._last=o,this._array.push(o)):(this._sorted=!1,this._array.push(o))},r.prototype.toArray=function(){return this._sorted||(this._array.sort(t.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},e.MappingList=r}),lw=Hn(e=>{var t=iw(),n=cl(),r=sw().ArraySet,o=aw().MappingList;function i(s){s||(s={}),this._file=n.getArg(s,"file",null),this._sourceRoot=n.getArg(s,"sourceRoot",null),this._skipValidation=n.getArg(s,"skipValidation",!1),this._sources=new r,this._names=new r,this._mappings=new o,this._sourcesContents=null}i.prototype._version=3,i.fromSourceMap=function(s){var a=s.sourceRoot,u=new i({file:s.file,sourceRoot:a});return s.eachMapping(function(l){var c={generated:{line:l.generatedLine,column:l.generatedColumn}};l.source!=null&&(c.source=l.source,a!=null&&(c.source=n.relative(a,c.source)),c.original={line:l.originalLine,column:l.originalColumn},l.name!=null&&(c.name=l.name)),u.addMapping(c)}),s.sources.forEach(function(l){var c=l;a!==null&&(c=n.relative(a,l)),u._sources.has(c)||u._sources.add(c);var p=s.sourceContentFor(l);p!=null&&u.setSourceContent(l,p)}),u},i.prototype.addMapping=function(s){var a=n.getArg(s,"generated"),u=n.getArg(s,"original",null),l=n.getArg(s,"source",null),c=n.getArg(s,"name",null);this._skipValidation||this._validateMapping(a,u,l,c),l!=null&&(l=String(l),this._sources.has(l)||this._sources.add(l)),c!=null&&(c=String(c),this._names.has(c)||this._names.add(c)),this._mappings.add({generatedLine:a.line,generatedColumn:a.column,originalLine:u!=null&&u.line,originalColumn:u!=null&&u.column,source:l,name:c})},i.prototype.setSourceContent=function(s,a){var u=s;this._sourceRoot!=null&&(u=n.relative(this._sourceRoot,u)),a!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[n.toSetString(u)]=a):this._sourcesContents&&(delete this._sourcesContents[n.toSetString(u)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},i.prototype.applySourceMap=function(s,a,u){var l=a;if(a==null){if(s.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);l=s.file}var c=this._sourceRoot;c!=null&&(l=n.relative(c,l));var p=new r,m=new r;this._mappings.unsortedForEach(function(f){if(f.source===l&&f.originalLine!=null){var y=s.originalPositionFor({line:f.originalLine,column:f.originalColumn});y.source!=null&&(f.source=y.source,u!=null&&(f.source=n.join(u,f.source)),c!=null&&(f.source=n.relative(c,f.source)),f.originalLine=y.line,f.originalColumn=y.column,y.name!=null&&(f.name=y.name))}var C=f.source;C!=null&&!p.has(C)&&p.add(C);var P=f.name;P!=null&&!m.has(P)&&m.add(P)},this),this._sources=p,this._names=m,s.sources.forEach(function(f){var y=s.sourceContentFor(f);y!=null&&(u!=null&&(f=n.join(u,f)),c!=null&&(f=n.relative(c,f)),this.setSourceContent(f,y))},this)},i.prototype._validateMapping=function(s,a,u,l){if(a&&typeof a.line!="number"&&typeof a.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(s&&"line"in s&&"column"in s&&s.line>0&&s.column>=0&&!a&&!u&&!l)){if(s&&"line"in s&&"column"in s&&a&&"line"in a&&"column"in a&&s.line>0&&s.column>=0&&a.line>0&&a.column>=0&&u)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:s,source:u,original:a,name:l}))}},i.prototype._serializeMappings=function(){for(var s=0,a=1,u=0,l=0,c=0,p=0,m="",f,y,C,P,_=this._mappings.toArray(),W=0,x=_.length;W<x;W++){if(y=_[W],f="",y.generatedLine!==a)for(s=0;y.generatedLine!==a;)f+=";",a++;else if(W>0){if(!n.compareByGeneratedPositionsInflated(y,_[W-1]))continue;f+=","}f+=t.encode(y.generatedColumn-s),s=y.generatedColumn,y.source!=null&&(P=this._sources.indexOf(y.source),f+=t.encode(P-p),p=P,f+=t.encode(y.originalLine-1-l),l=y.originalLine-1,f+=t.encode(y.originalColumn-u),u=y.originalColumn,y.name!=null&&(C=this._names.indexOf(y.name),f+=t.encode(C-c),c=C)),m+=f}return m},i.prototype._generateSourcesContent=function(s,a){return s.map(function(u){if(!this._sourcesContents)return null;a!=null&&(u=n.relative(a,u));var l=n.toSetString(u);return Object.prototype.hasOwnProperty.call(this._sourcesContents,l)?this._sourcesContents[l]:null},this)},i.prototype.toJSON=function(){var s={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(s.file=this._file),this._sourceRoot!=null&&(s.sourceRoot=this._sourceRoot),this._sourcesContents&&(s.sourcesContent=this._generateSourcesContent(s.sources,s.sourceRoot)),s},i.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=i}),uw={};I(uw,{AtKeyword:()=>fw,BadString:()=>gw,BadUrl:()=>bw,CDC:()=>Ew,CDO:()=>Cw,Colon:()=>Fw,Comma:()=>Sw,Comment:()=>Rw,Delim:()=>Dw,Dimension:()=>kw,EOF:()=>cw,Function:()=>dw,Hash:()=>mw,Ident:()=>pw,LeftCurlyBracket:()=>Iw,LeftParenthesis:()=>Ow,LeftSquareBracket:()=>Tw,Number:()=>ww,Percentage:()=>vw,RightCurlyBracket:()=>Bw,RightParenthesis:()=>Pw,RightSquareBracket:()=>Aw,Semicolon:()=>_w,String:()=>hw,Url:()=>yw,WhiteSpace:()=>xw});cw=0,pw=1,dw=2,fw=3,mw=4,hw=5,gw=6,yw=7,bw=8,Dw=9,ww=10,vw=11,kw=12,xw=13,Cw=14,Ew=15,Fw=16,_w=17,Sw=18,Tw=19,Aw=20,Ow=21,Pw=22,Iw=23,Bw=24,Rw=25;Ha=new Array(128),$w=128,ri=130,$d=131,fl=132,Wd=133;for(let e=0;e<Ha.length;e++)Ha[e]=en(e)&&ri||ue(e)&&$d||ai(e)&&fl||Mw(e)&&Wd||e||$w;zd=["EOF-token","ident-token","function-token","at-keyword-token","hash-token","string-token","bad-string-token","url-token","bad-url-token","delim-token","number-token","percentage-token","dimension-token","whitespace-token","CDO-token","CDC-token","colon-token","semicolon-token","comma-token","[-token","]-token","(-token",")-token","{-token","}-token"];Up=10,zw=12,Vp=13;Uw=class{constructor(){this.lines=null,this.columns=null,this.computed=!1}setSource(e,t=0,n=1,r=1){this.source=e,this.startOffset=t,this.startLine=n,this.startColumn=r,this.computed=!1}getLocation(e,t){return this.computed||Gp(this),{source:t,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}getLocationRange(e,t,n){return this.computed||Gp(this),{source:n,start:{offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]},end:{offset:this.startOffset+t,line:this.lines[t],column:this.columns[t]}}}},Pe=16777215,At=24,Vw=new Map([[2,22],[21,22],[19,20],[23,24]]),Gw=class{constructor(e,t){this.setSource(e,t)}reset(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset}setSource(e="",t=()=>{}){e=String(e||"");let n=e.length,r=ui(this.offsetAndType,e.length+1),o=ui(this.balance,e.length+1),i=0,s=0,a=0,u=-1;for(this.offsetAndType=null,this.balance=null,t(e,(l,c,p)=>{switch(l){default:o[i]=n;break;case s:{let m=a&Pe;for(a=o[m],s=a>>At,o[i]=m,o[m++]=i;m<i;m++)o[m]===n&&(o[m]=i);break}case 21:case 2:case 19:case 23:o[i]=a,s=Vw.get(l),a=s<<At|i;break}r[i++]=l<<At|p,u===-1&&(u=c)}),r[i]=0<<At|n,o[i]=n,o[n]=n;a!==0;){let l=a&Pe;a=o[l],o[l]=n}this.source=e,this.firstCharOffset=u===-1?0:u,this.tokenCount=i,this.offsetAndType=r,this.balance=o,this.reset(),this.next()}lookupType(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e]>>At:0}lookupOffset(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e-1]&Pe:this.source.length}lookupValue(e,t){return e+=this.tokenIndex,e<this.tokenCount?Qr(this.source,this.offsetAndType[e-1]&Pe,this.offsetAndType[e]&Pe,t):!1}getTokenStart(e){return e===this.tokenIndex?this.tokenStart:e>0?e<this.tokenCount?this.offsetAndType[e-1]&Pe:this.offsetAndType[this.tokenCount]&Pe:this.firstCharOffset}substrToCursor(e){return this.source.substring(e,this.tokenStart)}isBalanceEdge(e){return this.balance[this.tokenIndex]<e}isDelim(e,t){return t?this.lookupType(t)===9&&this.source.charCodeAt(this.lookupOffset(t))===e:this.tokenType===9&&this.source.charCodeAt(this.tokenStart)===e}skip(e){let t=this.tokenIndex+e;t<this.tokenCount?(this.tokenIndex=t,this.tokenStart=this.offsetAndType[t-1]&Pe,t=this.offsetAndType[t],this.tokenType=t>>At,this.tokenEnd=t&Pe):(this.tokenIndex=this.tokenCount,this.next())}next(){let e=this.tokenIndex+1;e<this.tokenCount?(this.tokenIndex=e,this.tokenStart=this.tokenEnd,e=this.offsetAndType[e],this.tokenType=e>>At,this.tokenEnd=e&Pe):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=0,this.tokenStart=this.tokenEnd=this.source.length)}skipSC(){for(;this.tokenType===13||this.tokenType===25;)this.next()}skipUntilBalanced(e,t){let n=e,r,o;e:for(;n<this.tokenCount;n++){if(r=this.balance[n],r<e)break e;switch(o=n>0?this.offsetAndType[n-1]&Pe:this.firstCharOffset,t(this.source.charCodeAt(o))){case 1:break e;case 2:n++;break e;default:this.balance[r]===n&&(n=r)}}this.skip(n-this.tokenIndex)}forEachToken(e){for(let t=0,n=this.firstCharOffset;t<this.tokenCount;t++){let r=n,o=this.offsetAndType[t],i=o&Pe,s=o>>At;n=i,e(s,r,i,t)}}dump(){let e=new Array(this.tokenCount);return this.forEachToken((t,n,r,o)=>{e[o]={idx:o,type:zd[t],chunk:this.source.substring(n,r),balance:this.balance[o]}}),e}};Nn=null,ie=class{static createItem(e){return{prev:null,next:null,data:e}}constructor(){this.head=null,this.tail=null,this.cursor=null}createItem(e){return ie.createItem(e)}allocateCursor(e,t){let n;return Nn!==null?(n=Nn,Nn=Nn.cursor,n.prev=e,n.next=t,n.cursor=this.cursor):n={prev:e,next:t,cursor:this.cursor},this.cursor=n,n}releaseCursor(){let{cursor:e}=this;this.cursor=e.cursor,e.prev=null,e.next=null,e.cursor=Nn,Nn=e}updateCursors(e,t,n,r){let{cursor:o}=this;for(;o!==null;)o.prev===e&&(o.prev=t),o.next===n&&(o.next=r),o=o.cursor}*[Symbol.iterator](){for(let e=this.head;e!==null;e=e.next)yield e.data}get size(){let e=0;for(let t=this.head;t!==null;t=t.next)e++;return e}get isEmpty(){return this.head===null}get first(){return this.head&&this.head.data}get last(){return this.tail&&this.tail.data}fromArray(e){let t=null;this.head=null;for(let n of e){let r=ie.createItem(n);t!==null?t.next=r:this.head=r,r.prev=t,t=r}return this.tail=t,this}toArray(){return[...this]}toJSON(){return[...this]}forEach(e,t=this){let n=this.allocateCursor(null,this.head);for(;n.next!==null;){let r=n.next;n.next=r.next,e.call(t,r.data,r,this)}this.releaseCursor()}forEachRight(e,t=this){let n=this.allocateCursor(this.tail,null);for(;n.prev!==null;){let r=n.prev;n.prev=r.prev,e.call(t,r.data,r,this)}this.releaseCursor()}reduce(e,t,n=this){let r=this.allocateCursor(null,this.head),o=t,i;for(;r.next!==null;)i=r.next,r.next=i.next,o=e.call(n,o,i.data,i,this);return this.releaseCursor(),o}reduceRight(e,t,n=this){let r=this.allocateCursor(this.tail,null),o=t,i;for(;r.prev!==null;)i=r.prev,r.prev=i.prev,o=e.call(n,o,i.data,i,this);return this.releaseCursor(),o}some(e,t=this){for(let n=this.head;n!==null;n=n.next)if(e.call(t,n.data,n,this))return!0;return!1}map(e,t=this){let n=new ie;for(let r=this.head;r!==null;r=r.next)n.appendData(e.call(t,r.data,r,this));return n}filter(e,t=this){let n=new ie;for(let r=this.head;r!==null;r=r.next)e.call(t,r.data,r,this)&&n.appendData(r.data);return n}nextUntil(e,t,n=this){if(e===null)return;let r=this.allocateCursor(null,e);for(;r.next!==null;){let o=r.next;if(r.next=o.next,t.call(n,o.data,o,this))break}this.releaseCursor()}prevUntil(e,t,n=this){if(e===null)return;let r=this.allocateCursor(e,null);for(;r.prev!==null;){let o=r.prev;if(r.prev=o.prev,t.call(n,o.data,o,this))break}this.releaseCursor()}clear(){this.head=null,this.tail=null}copy(){let e=new ie;for(let t of this)e.appendData(t);return e}prepend(e){return this.updateCursors(null,e,this.head,e),this.head!==null?(this.head.prev=e,e.next=this.head):this.tail=e,this.head=e,this}prependData(e){return this.prepend(ie.createItem(e))}append(e){return this.insert(e)}appendData(e){return this.insert(ie.createItem(e))}insert(e,t=null){if(t!==null)if(this.updateCursors(t.prev,e,t,e),t.prev===null){if(this.head!==t)throw new Error("before doesn't belong to list");this.head=e,t.prev=e,e.next=t,this.updateCursors(null,e)}else t.prev.next=e,e.prev=t.prev,t.prev=e,e.next=t;else this.updateCursors(this.tail,e,null,e),this.tail!==null?(this.tail.next=e,e.prev=this.tail):this.head=e,this.tail=e;return this}insertData(e,t){return this.insert(ie.createItem(e),t)}remove(e){if(this.updateCursors(e,e.prev,e,e.next),e.prev!==null)e.prev.next=e.next;else{if(this.head!==e)throw new Error("item doesn't belong to list");this.head=e.next}if(e.next!==null)e.next.prev=e.prev;else{if(this.tail!==e)throw new Error("item doesn't belong to list");this.tail=e.prev}return e.prev=null,e.next=null,e}push(e){this.insert(ie.createItem(e))}pop(){return this.tail!==null?this.remove(this.tail):null}unshift(e){this.prepend(ie.createItem(e))}shift(){return this.head!==null?this.remove(this.head):null}prependList(e){return this.insertList(e,this.head)}appendList(e){return this.insertList(e)}insertList(e,t){return e.head===null?this:(t!=null?(this.updateCursors(t.prev,e.tail,t,e.head),t.prev!==null?(t.prev.next=e.head,e.head.prev=t.prev):this.head=e.head,t.prev=e.tail,e.tail.next=t):(this.updateCursors(this.tail,e.tail,null,e.head),this.tail!==null?(this.tail.next=e.head,e.head.prev=this.tail):this.head=e.head,this.tail=e.tail),e.head=null,e.tail=null,this)}replace(e,t){"head"in t?this.insertList(t,e):this.insert(t,e),this.remove(e)}};Pa=100,qp=60,Hp=" ";Kp=()=>{},Hw=33,Jw=35,Ia=59,Yp=123,Xp=0;Xw=rw(lw(),1),Qp=new Set(["Atrule","Selector","Declaration"]);Za={};I(Za,{safe:()=>Gd,spec:()=>rv});ev=43,tv=45,Ra=(e,t)=>{if(e===9&&(e=t),typeof e=="string"){let n=e.charCodeAt(0);return n>127?32768:n<<8}return e},Ud=[[1,1],[1,2],[1,7],[1,8],[1,"-"],[1,10],[1,11],[1,12],[1,15],[1,21],[3,1],[3,2],[3,7],[3,8],[3,"-"],[3,10],[3,11],[3,12],[3,15],[4,1],[4,2],[4,7],[4,8],[4,"-"],[4,10],[4,11],[4,12],[4,15],[12,1],[12,2],[12,7],[12,8],[12,"-"],[12,10],[12,11],[12,12],[12,15],["#",1],["#",2],["#",7],["#",8],["#","-"],["#",10],["#",11],["#",12],["#",15],["-",1],["-",2],["-",7],["-",8],["-","-"],["-",10],["-",11],["-",12],["-",15],[10,1],[10,2],[10,7],[10,8],[10,10],[10,11],[10,12],[10,"%"],[10,15],["@",1],["@",2],["@",7],["@",8],["@","-"],["@",15],[".",10],[".",11],[".",12],["+",10],["+",11],["+",12],["/","*"]],nv=Ud.concat([[1,4],[12,4],[4,4],[3,21],[3,5],[3,16],[11,11],[11,12],[11,2],[11,"-"],[22,1],[22,2],[22,11],[22,12],[22,4],[22,"-"]]);rv=Vd(Ud),Gd=Vd(nv),ov=92;({hasOwnProperty:hl}=Object.prototype),qr=function(){};od={offset:0,line:1,column:1};Gr=function(e,t){let n=yi("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n},yv=function(e,t,n,r){let o=yi("SyntaxMatchError",e),{css:i,mismatchOffset:s,mismatchLength:a,start:u,end:l}=gv(r,n);return o.rawMessage=e,o.syntax=t?bi(t):"<generic>",o.css=i,o.mismatchOffset=s,o.mismatchLength=a,o.message=e+`
42
+ --`+new Array((n||t.length)+1).join("-")+"^"})}function Xo(e){return e.substringToPos(e.findWsEnd(e.pos))}function Rn(e){let t=e.pos;for(;t<e.str.length;t++){let n=e.str.charCodeAt(t);if(n>=128||Mr[n]===0)break}return e.pos===t&&e.error("Expect a keyword"),e.substringToPos(t)}function Qo(e){let t=e.pos;for(;t<e.str.length;t++){let n=e.str.charCodeAt(t);if(n<48||n>57)break}return e.pos===t&&e.error("Expect a number"),e.substringToPos(t)}function g0(e){let t=e.str.indexOf("'",e.pos+1);return t===-1&&(e.pos=e.str.length,e.error("Expect an apostrophe")),e.substringToPos(t+1)}function zp(e){let t=null,n=null;return e.eat(Yo),t=Qo(e),e.charCode()===Qa?(e.pos++,e.charCode()!==Np&&(n=Qo(e))):n=t,e.eat(Np),{min:Number(t),max:n?Number(n):0}}function y0(e){let t=null,n=!1;switch(e.charCode()){case Pd:e.pos++,t={min:0,max:0};break;case Xa:e.pos++,t={min:1,max:0};break;case Oa:e.pos++,t={min:0,max:1};break;case Ya:e.pos++,n=!0,e.charCode()===Yo?t=zp(e):e.charCode()===Oa?(e.pos++,t={min:0,max:0}):t={min:1,max:0};break;case Yo:t=zp(e);break;default:return null}return{type:"Multiplier",comma:n,min:t.min,max:t.max,term:null}}function Ln(e,t){let n=y0(e);return n!==null?(n.term=t,e.charCode()===Ya&&e.charCodeAt(e.pos-1)===Xa?Ln(e,n):n):t}function ya(e){let t=e.peek();return t===""?null:{type:"Token",value:t}}function b0(e){let t;return e.eat(el),e.eat(Ko),t=Rn(e),e.eat(Ko),e.eat(Bd),Ln(e,{type:"Property",name:t})}function D0(e){let t=null,n=null,r=1;return e.eat(ii),e.charCode()===Rp&&(e.peek(),r=-1),r==-1&&e.charCode()===Mp?e.peek():(t=r*Number(Qo(e)),Mr[e.charCode()]!==0&&(t+=Rn(e))),Xo(e),e.eat(Qa),Xo(e),e.charCode()===Mp?e.peek():(r=1,e.charCode()===Rp&&(e.peek(),r=-1),n=r*Number(Qo(e)),Mr[e.charCode()]!==0&&(n+=Rn(e))),e.eat(tl),{type:"Range",min:t,max:n}}function w0(e){let t,n=null;return e.eat(el),t=Rn(e),e.charCode()===Od&&e.nextCharCode()===m0&&(e.pos+=2,t+="()"),e.charCodeAt(e.findWsEnd(e.pos))===ii&&(Xo(e),n=D0(e)),e.eat(Bd),Ln(e,{type:"Type",name:t,opts:n})}function v0(e){let t=Rn(e);return e.charCode()===Od?(e.pos++,{type:"Function",name:t}):Ln(e,{type:"Keyword",name:t})}function k0(e,t){function n(o,i){return{type:"Group",terms:o,combinator:i,disallowEmpty:!1,explicit:!1}}let r;for(t=Object.keys(t).sort((o,i)=>$p[o]-$p[i]);t.length>0;){r=t.shift();let o=0,i=0;for(;o<e.length;o++){let s=e[o];s.type==="Combinator"&&(s.value===r?(i===-1&&(i=o-1),e.splice(o,1),o--):(i!==-1&&o-i>1&&(e.splice(i,o-i,n(e.slice(i,o),r)),o=i+1),i=-1))}i!==-1&&t.length&&e.splice(i,o-i,n(e.slice(i,o),r))}return r}function Id(e){let t=[],n={},r,o=null,i=e.pos;for(;r=C0(e);)r.type!=="Spaces"&&(r.type==="Combinator"?((o===null||o.type==="Combinator")&&(e.pos=i,e.error("Unexpected combinator")),n[r.value]=!0):o!==null&&o.type!=="Combinator"&&(n[" "]=!0,t.push({type:"Combinator",value:" "})),t.push(r),o=r,i=e.pos);return o!==null&&o.type==="Combinator"&&(e.pos-=i,e.error("Unexpected combinator")),{type:"Group",terms:t,combinator:k0(t,n)||" ",disallowEmpty:!1,explicit:!1}}function x0(e){let t;return e.eat(ii),t=Id(e),e.eat(tl),t.explicit=!0,e.charCode()===Ad&&(e.pos++,t.disallowEmpty=!0),t}function C0(e){let t=e.charCode();if(t<128&&Mr[t]===1)return v0(e);switch(t){case tl:break;case ii:return Ln(e,x0(e));case el:return e.nextCharCode()===Ko?b0(e):w0(e);case Lp:return{type:"Combinator",value:e.substringToPos(e.pos+(e.nextCharCode()===Lp?2:1))};case jp:return e.pos++,e.eat(jp),{type:"Combinator",value:"&&"};case Qa:return e.pos++,{type:"Comma"};case Ko:return Ln(e,{type:"String",value:g0(e)});case f0:case u0:case c0:case d0:case p0:return{type:"Spaces",value:Xo(e)};case h0:return t=e.nextCharCode(),t<128&&Mr[t]===1?(e.pos++,{type:"AtKeyword",name:Rn(e)}):ya(e);case Pd:case Xa:case Oa:case Ya:case Ad:break;case Yo:if(t=e.nextCharCode(),t<48||t>57)return ya(e);break;default:return ya(e)}}function nl(e){let t=new l0(e),n=Id(t);return t.pos!==e.length&&t.error("Unexpected input"),n.terms.length===1&&n.terms[0].type==="Group"?n.terms[0]:n}function Wp(e){return typeof e=="function"?e:Br}function jd(e,t,n){function r(s){switch(o.call(n,s),s.type){case"Group":s.terms.forEach(r);break;case"Multiplier":r(s.term);break;case"Type":case"Property":case"Keyword":case"AtKeyword":case"Function":case"String":case"Token":case"Comma":break;default:throw new Error("Unknown type: "+s.type)}i.call(n,s)}let o=Br,i=Br;if(typeof t=="function"?o=t:t&&(o=Wp(t.enter),i=Wp(t.leave)),o===Br&&i===Br)throw new Error("Neither `enter` nor `leave` walker handler is set or both aren't a function");r(e,n)}function _0(e){let t=[];return ti(e,(n,r,o)=>t.push({type:n,value:e.slice(r,o),node:null})),t}function E0(e,t){return typeof e=="string"?_0(e):t.generate(e,F0)}function de(e,t,n){return t===H&&n===J||e===H&&t===H&&n===H?e:(e.type==="If"&&e.else===J&&t===H&&(t=e.then,e=e.match),{type:"If",match:e,then:t,else:n})}function Rd(e){return e.length>2&&e.charCodeAt(e.length-2)===S0&&e.charCodeAt(e.length-1)===T0}function Up(e){return e.type==="Keyword"||e.type==="AtKeyword"||e.type==="Function"||e.type==="Type"&&Rd(e.name)}function Pa(e,t,n){switch(e){case" ":{let r=H;for(let o=t.length-1;o>=0;o--){let i=t[o];r=de(i,r,J)}return r}case"|":{let r=J,o=null;for(let i=t.length-1;i>=0;i--){let s=t[i];if(Up(s)&&(o===null&&i>0&&Up(t[i-1])&&(o=Object.create(null),r=de({type:"Enum",map:o},H,r)),o!==null)){let a=(Rd(s.name)?s.name.slice(0,-1):s.name).toLowerCase();if(!(a in o)){o[a]=s;continue}}o=null,r=de(s,H,r)}return r}case"&&":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!0};let r=J;for(let o=t.length-1;o>=0;o--){let i=t[o],s;t.length>1?s=Pa(e,t.filter(function(a){return a!==i}),!1):s=H,r=de(i,s,r)}return r}case"||":{if(t.length>5)return{type:"MatchOnce",terms:t,all:!1};let r=n?H:J;for(let o=t.length-1;o>=0;o--){let i=t[o],s;t.length>1?s=Pa(e,t.filter(function(a){return a!==i}),!0):s=H,r=de(i,s,r)}return r}}}function A0(e){let t=H,n=ol(e.term);if(e.max===0)n=de(n,rl,J),t=de(n,null,J),t.then=de(H,H,t),e.comma&&(t.then.else=de({type:"Comma",syntax:e},t,J));else for(let r=e.min||1;r<=e.max;r++)e.comma&&t!==H&&(t=de({type:"Comma",syntax:e},t,J)),t=de(n,de(H,H,t),J);if(e.min===0)t=de(H,H,t);else for(let r=0;r<e.min-1;r++)e.comma&&t!==H&&(t=de({type:"Comma",syntax:e},t,J)),t=de(n,t,J);return t}function ol(e){if(typeof e=="function")return{type:"Generic",fn:e};switch(e.type){case"Group":{let t=Pa(e.combinator,e.terms.map(ol),!1);return e.disallowEmpty&&(t=de(t,rl,J)),t}case"Multiplier":return A0(e);case"Type":case"Property":return{type:e.type,name:e.name,syntax:e};case"Keyword":return{type:e.type,name:e.name.toLowerCase(),syntax:e};case"AtKeyword":return{type:e.type,name:"@"+e.name.toLowerCase(),syntax:e};case"Function":return{type:e.type,name:e.name.toLowerCase()+"(",syntax:e};case"String":return e.value.length===3?{type:"Token",value:e.value.charAt(1),syntax:e}:{type:e.type,value:e.value.substr(1,e.value.length-2).replace(/\\'/g,"'"),syntax:e};case"Token":return{type:e.type,value:e.value,syntax:e};case"Comma":return{type:e.type,syntax:e};default:throw new Error("Unknown node type:",e.type)}}function Ba(e,t){return typeof e=="string"&&(e=nl(e)),{type:"MatchGraph",match:ol(e),syntax:t||null,source:e}}function R0(e){let t=null,n=null,r=e;for(;r!==null;)n=r.prev,r.prev=t,t=r,r=n;return t}function ba(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++){let r=t.charCodeAt(n),o=e.charCodeAt(n);if(o>=65&&o<=90&&(o=o|32),o!==r)return!1}return!0}function L0(e){return e.type!==9?!1:e.value!=="?"}function Hp(e){return e===null?!0:e.type===18||e.type===2||e.type===21||e.type===19||e.type===23||L0(e)}function Jp(e){return e===null?!0:e.type===22||e.type===20||e.type===24||e.type===9&&e.value==="/"}function N0(e,t,n){function r(){do $++,F=$<e.length?e[$]:null;while(F!==null&&(F.type===13||F.type===25))}function o(G){let R=$+G;return R<e.length?e[R]:null}function i(G,R){return{nextState:G,matchStack:S,syntaxStack:p,thenStack:f,tokenIndex:$,prev:R}}function s(G){f={nextState:G,matchStack:S,syntaxStack:p,prev:f}}function a(G){m=i(G,m)}function l(){S={type:P0,syntax:t.syntax,token:F,prev:S},r(),y=null,$>x&&(x=$)}function u(){p={syntax:t.syntax,opts:t.syntax.opts||p!==null&&p.opts||null,prev:p},S={type:Ia,syntax:t.syntax,token:S.token,prev:S}}function c(){S.type===Ia?S=S.prev:S={type:Ld,syntax:p.syntax,token:S.token,prev:S},p=p.prev}let p=null,f=null,m=null,y=null,w=0,O=null,F=null,$=-1,x=0,S={type:O0,syntax:null,token:null,prev:null};for(r();O===null&&++w<qp;)switch(t.type){case"Match":if(f===null){if(F!==null&&($!==e.length-1||F.value!=="\\0"&&F.value!=="\\9")){t=J;break}O=Gp;break}if(t=f.nextState,t===rl)if(f.matchStack===S){t=J;break}else t=H;for(;f.syntaxStack!==p;)c();f=f.prev;break;case"Mismatch":if(y!==null&&y!==!1)(m===null||$>m.tokenIndex)&&(m=y,y=!1);else if(m===null){O=B0;break}t=m.nextState,f=m.thenStack,p=m.syntaxStack,S=m.matchStack,$=m.tokenIndex,F=$<e.length?e[$]:null,m=m.prev;break;case"MatchGraph":t=t.match;break;case"If":t.else!==J&&a(t.else),t.then!==H&&s(t.then),t=t.match;break;case"MatchOnce":t={type:"MatchOnceBuffer",syntax:t,index:0,mask:0};break;case"MatchOnceBuffer":{let _=t.syntax.terms;if(t.index===_.length){if(t.mask===0||t.syntax.all){t=J;break}t=H;break}if(t.mask===(1<<_.length)-1){t=H;break}for(;t.index<_.length;t.index++){let h=1<<t.index;if((t.mask&h)===0){a(t),s({type:"AddMatchOnce",syntax:t.syntax,mask:t.mask|h}),t=_[t.index++];break}}break}case"AddMatchOnce":t={type:"MatchOnceBuffer",syntax:t.syntax,index:0,mask:t.mask};break;case"Enum":if(F!==null){let _=F.value.toLowerCase();if(_.indexOf("\\")!==-1&&(_=_.replace(/\\[09].*$/,"")),Vp.call(t.map,_)){t=t.map[_];break}}t=J;break;case"Generic":{let _=p!==null?p.opts:null,h=$+Math.floor(t.fn(F,o,_));if(!isNaN(h)&&h>$){for(;$<h;)l();t=H}else t=J;break}case"Type":case"Property":{let _=t.type==="Type"?"types":"properties",h=Vp.call(n,_)?n[_][t.name]:null;if(!h||!h.match)throw new Error("Bad syntax reference: "+(t.type==="Type"?"<"+t.name+">":"<'"+t.name+"'>"));if(y!==!1&&F!==null&&t.type==="Type"&&(t.name==="custom-ident"&&F.type===1||t.name==="length"&&F.value==="0")){y===null&&(y=i(t,m)),t=J;break}u(),t=h.match;break}case"Keyword":{let _=t.name;if(F!==null){let h=F.value;if(h.indexOf("\\")!==-1&&(h=h.replace(/\\[09].*$/,"")),ba(h,_)){l(),t=H;break}}t=J;break}case"AtKeyword":case"Function":if(F!==null&&ba(F.value,t.name)){l(),t=H;break}t=J;break;case"Token":if(F!==null&&F.value===t.value){l(),t=H;break}t=J;break;case"Comma":F!==null&&F.type===18?Hp(S.token)?t=J:(l(),t=Jp(F)?J:H):t=Hp(S.token)||Jp(F)?H:J;break;case"String":let G="",R=$;for(;R<e.length&&G.length<t.value.length;R++)G+=e[R].value;if(ba(G,t.value)){for(;$<R;)l();t=H}else t=J;break;default:throw new Error("Unknown node type: "+t.type)}switch(j0+=w,O){case null:console.warn("[csstree-match] BREAK after "+qp+" iterations"),O=I0,S=null;break;case Gp:for(;p!==null;)c();break;default:S=null}return{tokens:e,reason:O,iterations:w,match:S,longestMatch:x}}function Zp(e,t,n){let r=N0(e,t,n||{});if(r.match===null)return r;let o=r.match,i=r.match={syntax:t.syntax||null,match:[]},s=[i];for(o=R0(o).prev;o!==null;){switch(o.type){case Ia:i.match.push(i={syntax:o.syntax,match:[]}),s.push(i);break;case Ld:s.pop(),i=s[s.length-1];break;default:i.match.push({syntax:o.syntax||null,token:o.token.value,node:o.token.node})}o=o.prev}return r}function Md(e){function t(o){return o===null?!1:o.type==="Type"||o.type==="Property"||o.type==="Keyword"}function n(o){if(Array.isArray(o.match)){for(let i=0;i<o.match.length;i++)if(n(o.match[i]))return t(o.syntax)&&r.unshift(o.syntax),!0}else if(o.node===e)return r=t(o.syntax)?[o.syntax]:[],!0;return!1}let r=null;return this.matched!==null&&n(this.matched),r}function M0(e,t){return il(this,e,n=>n.type==="Type"&&n.name===t)}function $0(e,t){return il(this,e,n=>n.type==="Property"&&n.name===t)}function z0(e){return il(this,e,t=>t.type==="Keyword")}function il(e,t,n){let r=Md.call(e,t);return r===null?!1:r.some(n)}function $d(e){return"node"in e?e.node:$d(e.match[0])}function zd(e){return"node"in e?e.node:zd(e.match[e.match.length-1])}function Kp(e,t,n,r,o){function i(a){if(a.syntax!==null&&a.syntax.type===r&&a.syntax.name===o){let l=$d(a),u=zd(a);e.syntax.walk(t,function(c,p,f){if(c===l){let m=new ie;do{if(m.appendData(p.data),p.data===u)break;p=p.next}while(p!==null);s.push({parent:f,nodes:m})}})}Array.isArray(a.match)&&a.match.forEach(i)}let s=[];return n.matched!==null&&i(n.matched),s}function Da(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&e>=0}function Yp(e){return!!e&&Da(e.offset)&&Da(e.line)&&Da(e.column)}function W0(e,t){return function(n,r){if(!n||n.constructor!==Object)return r(n,"Type of node should be an Object");for(let o in n){let i=!0;if(Rr.call(n,o)!==!1){if(o==="type")n.type!==e&&r(n,"Wrong node type `"+n.type+"`, expected `"+e+"`");else if(o==="loc"){if(n.loc===null)continue;if(n.loc&&n.loc.constructor===Object)if(typeof n.loc.source!="string")o+=".source";else if(!Yp(n.loc.start))o+=".start";else if(!Yp(n.loc.end))o+=".end";else continue;i=!1}else if(t.hasOwnProperty(o)){i=!1;for(let s=0;!i&&s<t[o].length;s++){let a=t[o][s];switch(a){case String:i=typeof n[o]=="string";break;case Boolean:i=typeof n[o]=="boolean";break;case null:i=n[o]===null;break;default:typeof a=="string"?i=n[o]&&n[o].type===a:Array.isArray(a)&&(i=n[o]instanceof ie)}}}else r(n,"Unknown field `"+o+"` for "+e+" node type");i||r(n,"Bad value for `"+e+"."+o+"`")}}for(let o in t)Rr.call(t,o)&&Rr.call(n,o)===!1&&r(n,"Field `"+e+"."+o+"` is missed")}}function U0(e,t){let n=t.structure,r={type:String,loc:!0},o={type:'"'+e+'"'};for(let i in n){if(Rr.call(n,i)===!1)continue;let s=[],a=r[i]=Array.isArray(n[i])?n[i].slice():[n[i]];for(let l=0;l<a.length;l++){let u=a[l];if(u===String||u===Boolean)s.push(u.name);else if(u===null)s.push("null");else if(typeof u=="string")s.push("<"+u+">");else if(Array.isArray(u))s.push("List");else throw new Error("Wrong value `"+u+"` in `"+e+"."+i+"` structure definition")}o[i]=s.join(" | ")}return{docs:o,check:W0(e,r)}}function V0(e){let t={};if(e.node){for(let n in e.node)if(Rr.call(e.node,n)){let r=e.node[n];if(r.structure)t[n]=U0(n,r);else throw new Error("Missed `structure` field in `"+n+"` node type definition")}}return t}function ja(e,t,n){let r={};for(let o in e)e[o].syntax&&(r[o]=n?e[o].syntax:ri(e[o].syntax,{compact:t}));return r}function q0(e,t,n){let r={};for(let[o,i]of Object.entries(e))r[o]={prelude:i.prelude&&(n?i.prelude.syntax:ri(i.prelude.syntax,{compact:t})),descriptors:i.descriptors&&ja(i.descriptors,t,n)};return r}function H0(e){for(let t=0;t<e.length;t++)if(e[t].value.toLowerCase()==="var(")return!0;return!1}function ze(e,t,n){return{matched:e,iterations:n,error:t,...Nd}}function Pn(e,t,n,r){let o=E0(n,e.syntax),i;return H0(o)?ze(null,new Error("Matching for a tree with var() is not supported")):(r&&(i=Zp(o,e.cssWideKeywordsSyntax,e)),(!r||!i.match)&&(i=Zp(o,t.match,e),!i.match)?ze(null,new Cw(i.reason,t.syntax,n,i),i.iterations):ze(i.match,null,i.iterations))}function wa(e,t){return typeof t=="string"&&/^\s*\|/.test(t)?typeof e=="string"?e+t:t.replace(/^\s*\|\s*/,""):t||null}function Qp(e,t){let n=Object.create(null);for(let[r,o]of Object.entries(e))if(o){n[r]={};for(let i of Object.keys(o))t.includes(i)&&(n[r][i]=o[i])}return n}function Ra(e,t){let n={...e};for(let[r,o]of Object.entries(t))switch(r){case"generic":n[r]=!!o;break;case"units":n[r]={...e[r]};for(let[i,s]of Object.entries(o))n[r][i]=Array.isArray(s)?s:[];break;case"atrules":n[r]={...e[r]};for(let[i,s]of Object.entries(o)){let a=n[r][i]||{},l=n[r][i]={prelude:a.prelude||null,descriptors:{...a.descriptors}};if(s){l.prelude=s.prelude?wa(l.prelude,s.prelude):l.prelude||null;for(let[u,c]of Object.entries(s.descriptors||{}))l.descriptors[u]=c?wa(l.descriptors[u],c):null;Object.keys(l.descriptors).length||(l.descriptors=null)}}break;case"types":case"properties":n[r]={...e[r]};for(let[i,s]of Object.entries(o))n[r][i]=wa(n[r][i],s);break;case"scope":n[r]={...e[r]};for(let[i,s]of Object.entries(o))n[r][i]={...n[r][i],...s};break;case"parseContext":n[r]={...e[r],...o};break;case"atrule":case"pseudo":n[r]={...e[r],...Qp(o,["parse"])};break;case"node":n[r]={...e[r],...Qp(o,["name","structure","parse","generate","walkContext"])};break}return n}function Wd(e){let t=ow(e),n=bw(e),r=mw(e),{fromPlainObject:o,toPlainObject:i}=hw(n),s={lexer:null,createLexer:a=>new Xp(a,s,s.lexer.structure),tokenize:ti,parse:t,generate:r,walk:n,find:n.find,findLast:n.findLast,findAll:n.findAll,fromPlainObject:o,toPlainObject:i,fork(a){let l=Ra({},e);return Wd(typeof a=="function"?a(l,Object.assign):Ra(l,a))}};return s.lexer=new Xp({generic:!0,units:e.units,types:e.types,atrules:e.atrules,properties:e.properties,node:e.node},s),s}function Vo(e,t){let n=this.tokenStart+e,r=this.charCodeAt(n);for((r===Ke||r===ke)&&(t&&this.error("Number sign is not allowed"),n++);n<this.tokenEnd;n++)ae(this.charCodeAt(n))||this.error("Integer is expected",n)}function Bn(e){return Vo.call(this,0,e)}function Ft(e,t){if(!this.cmpChar(this.tokenStart+e,t)){let n="";switch(t){case Uo:n="N is expected";break;case ke:n="HyphenMinus is expected";break}this.error(n,this.tokenStart+e)}}function va(){let e=0,t=0,n=this.tokenType;for(;n===13||n===25;)n=this.lookupType(++e);if(n!==10)if(this.isDelim(Ke,e)||this.isDelim(ke,e)){t=this.isDelim(Ke,e)?Ke:ke;do n=this.lookupType(++e);while(n===13||n===25);n!==10&&(this.skip(e),Bn.call(this,Ht))}else return null;return e>0&&this.skip(e),t===0&&(n=this.charCodeAt(this.tokenStart),n!==Ke&&n!==ke&&this.error("Number sign is expected")),Bn.call(this,t!==0),t===ke?"-"+this.consume(10):this.consume(10)}function Vd(){let e=this.tokenStart,t=null,n=null;if(this.tokenType===10)Bn.call(this,K0),n=this.consume(10);else if(this.tokenType===1&&this.cmpChar(this.tokenStart,ke))switch(t="-1",Ft.call(this,1,Uo),this.tokenEnd-this.tokenStart){case 2:this.next(),n=va.call(this);break;case 3:Ft.call(this,2,ke),this.next(),this.skipSC(),Bn.call(this,Ht),n="-"+this.consume(10);break;default:Ft.call(this,2,ke),Vo.call(this,3,Ht),this.next(),n=this.substrToCursor(e+2)}else if(this.tokenType===1||this.isDelim(Ke)&&this.lookupType(1)===1){let r=0;switch(t="1",this.isDelim(Ke)&&(r=1,this.next()),Ft.call(this,0,Uo),this.tokenEnd-this.tokenStart){case 1:this.next(),n=va.call(this);break;case 2:Ft.call(this,1,ke),this.next(),this.skipSC(),Bn.call(this,Ht),n="-"+this.consume(10);break;default:Ft.call(this,1,ke),Vo.call(this,2,Ht),this.next(),n=this.substrToCursor(e+r+1)}}else if(this.tokenType===12){let r=this.charCodeAt(this.tokenStart),o=r===Ke||r===ke,i=this.tokenStart+o;for(;i<this.tokenEnd&&ae(this.charCodeAt(i));i++);i===this.tokenStart+o&&this.error("Integer is expected",this.tokenStart+o),Ft.call(this,i-this.tokenStart,Uo),t=this.substring(e,i),i+1===this.tokenEnd?(this.next(),n=va.call(this)):(Ft.call(this,i-this.tokenStart+1,ke),i+2===this.tokenEnd?(this.next(),this.skipSC(),Bn.call(this,Ht),n="-"+this.consume(10)):(Vo.call(this,i-this.tokenStart+2,Ht),this.next(),n=this.substrToCursor(i+1)))}else this.error();return t!==null&&t.charCodeAt(0)===Ke&&(t=t.substr(1)),n!==null&&n.charCodeAt(0)===Ke&&(n=n.substr(1)),{type:"AnPlusB",loc:this.getLocation(e,this.tokenStart),a:t,b:n}}function Q0(e){if(e.a){let t=e.a==="+1"&&"n"||e.a==="1"&&"n"||e.a==="-1"&&"-n"||e.a+"n";if(e.b){let n=e.b[0]==="-"||e.b[0]==="+"?e.b:"+"+e.b;this.tokenize(t+n)}else this.tokenize(t)}else this.tokenize(e.b)}function ed(e){return this.Raw(e,this.consumeUntilLeftCurlyBracketOrSemicolon,!0)}function ev(){for(let e=1,t;t=this.lookupType(e);e++){if(t===24)return!0;if(t===23||t===3)return!1}return!1}function qd(e=!1){let t=this.tokenStart,n,r,o=null,i=null;switch(this.eat(3),n=this.substrToCursor(t+1),r=n.toLowerCase(),this.skipSC(),this.eof===!1&&this.tokenType!==23&&this.tokenType!==17&&(this.parseAtrulePrelude?o=this.parseWithFallback(this.AtrulePrelude.bind(this,n,e),ed):o=ed.call(this,this.tokenIndex),this.skipSC()),this.tokenType){case 17:this.next();break;case 23:hasOwnProperty.call(this.atrule,r)&&typeof this.atrule[r].block=="function"?i=this.atrule[r].block.call(this,e):i=this.Block(ev.call(this));break}return{type:"Atrule",loc:this.getLocation(t,this.tokenStart),name:n,prelude:o,block:i}}function ov(e){this.token(3,"@"+e.name),e.prelude!==null&&this.node(e.prelude),e.block?this.node(e.block):this.token(17,";")}function Jd(e){let t=null;return e!==null&&(e=e.toLowerCase()),this.skipSC(),hasOwnProperty.call(this.atrule,e)&&typeof this.atrule[e].prelude=="function"?t=this.atrule[e].prelude.call(this):t=this.readSequence(this.scope.AtrulePrelude),this.skipSC(),this.eof!==!0&&this.tokenType!==23&&this.tokenType!==17&&this.error("Semicolon or block is expected"),{type:"AtrulePrelude",loc:this.getLocationFromList(t),children:t}}function lv(e){this.children(e)}function dv(){this.eof&&this.error("Unexpected end of input");let e=this.tokenStart,t=!1;return this.isDelim(Kd)?(t=!0,this.next()):this.isDelim(La)||this.eat(1),this.isDelim(La)?this.charCodeAt(this.tokenStart+1)!==Go?(this.next(),this.eat(1)):t&&this.error("Identifier is expected",this.tokenEnd):t&&this.error("Vertical line is expected"),{type:"Identifier",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function fv(){let e=this.tokenStart,t=this.charCodeAt(e);return t!==Go&&t!==pv&&t!==cv&&t!==uv&&t!==Kd&&t!==La&&this.error("Attribute selector (=, ~=, ^=, $=, *=, |=) is expected"),this.next(),t!==Go&&(this.isDelim(Go)||this.error("Equal sign is expected"),this.next()),this.substrToCursor(e)}function Yd(){let e=this.tokenStart,t,n=null,r=null,o=null;return this.eat(19),this.skipSC(),t=dv.call(this),this.skipSC(),this.tokenType!==20&&(this.tokenType!==1&&(n=fv.call(this),this.skipSC(),r=this.tokenType===5?this.String():this.Identifier(),this.skipSC()),this.tokenType===1&&(o=this.consume(1),this.skipSC())),this.eat(20),{type:"AttributeSelector",loc:this.getLocation(e,this.tokenStart),name:t,matcher:n,value:r,flags:o}}function gv(e){this.token(9,"["),this.node(e.name),e.matcher!==null&&(this.tokenize(e.matcher),this.node(e.value)),e.flags!==null&&this.token(1,e.flags),this.token(9,"]")}function Qd(e){return this.Raw(e,null,!0)}function td(){return this.parseWithFallback(this.Rule,Qd)}function nd(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function bv(){if(this.tokenType===17)return nd.call(this,this.tokenIndex);let e=this.parseWithFallback(this.Declaration,nd);return this.tokenType===17&&this.next(),e}function ef(e){let t=e?bv:td,n=this.tokenStart,r=this.createList();this.eat(23);e:for(;!this.eof;)switch(this.tokenType){case 24:break e;case 13:case 25:this.next();break;case 3:r.push(this.parseWithFallback(this.Atrule.bind(this,e),Qd));break;default:e&&this.isDelim(yv)?r.push(td.call(this)):r.push(t.call(this))}return this.eof||this.eat(24),{type:"Block",loc:this.getLocation(n,this.tokenStart),children:r}}function kv(e){this.token(23,"{"),this.children(e,t=>{t.type==="Declaration"&&this.token(17,";")}),this.token(24,"}")}function nf(e,t){let n=this.tokenStart,r=null;return this.eat(19),r=e.call(this,t),this.eof||this.eat(20),{type:"Brackets",loc:this.getLocation(n,this.tokenStart),children:r}}function Fv(e){this.token(9,"["),this.children(e),this.token(9,"]")}function of(){let e=this.tokenStart;return this.eat(15),{type:"CDC",loc:this.getLocation(e,this.tokenStart)}}function Sv(){this.token(15,"-->")}function af(){let e=this.tokenStart;return this.eat(14),{type:"CDO",loc:this.getLocation(e,this.tokenStart)}}function Ov(){this.token(14,"<!--")}function uf(){return this.eatDelim(Pv),{type:"ClassSelector",loc:this.getLocation(this.tokenStart-1,this.tokenEnd),name:this.consume(1)}}function jv(e){this.token(9,"."),this.token(1,e.name)}function pf(){let e=this.tokenStart,t;switch(this.tokenType){case 13:t=" ";break;case 9:switch(this.charCodeAt(this.tokenStart)){case Lv:case Rv:case Nv:this.next();break;case rd:this.next(),this.eatIdent("deep"),this.eatDelim(rd);break;default:this.error("Combinator is expected")}t=this.substrToCursor(e);break}return{type:"Combinator",loc:this.getLocation(e,this.tokenStart),name:t}}function zv(e){this.tokenize(e.name)}function ff(){let e=this.tokenStart,t=this.tokenEnd;return this.eat(25),t-e+2>=2&&this.charCodeAt(t-2)===Wv&&this.charCodeAt(t-1)===Uv&&(t-=2),{type:"Comment",loc:this.getLocation(e,this.tokenStart),value:this.substring(e+2,t)}}function qv(e){this.token(25,"/*"+e.value+"*/")}function Xv(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!0)}function Qv(e){return this.Raw(e,this.consumeUntilExclamationMarkOrSemicolon,!1)}function ek(){let e=this.tokenIndex,t=this.Value();return t.type!=="Raw"&&this.eof===!1&&this.tokenType!==17&&this.isDelim(hf)===!1&&this.isBalanceEdge(e)===!1&&this.error(),t}function gf(){let e=this.tokenStart,t=this.tokenIndex,n=ik.call(this),r=Za(n),o=r?this.parseCustomProperty:this.parseValue,i=r?Qv:Xv,s=!1,a;this.skipSC(),this.eat(16);let l=this.tokenIndex;if(r||this.skipSC(),o?a=this.parseWithFallback(ek,i):a=i.call(this,this.tokenIndex),r&&a.type==="Value"&&a.children.isEmpty){for(let u=l-this.tokenIndex;u<=0;u++)if(this.lookupType(u)===13){a.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}return this.isDelim(hf)&&(s=sk.call(this),this.skipSC()),this.eof===!1&&this.tokenType!==17&&this.isBalanceEdge(t)===!1&&this.error(),{type:"Declaration",loc:this.getLocation(e,this.tokenStart),important:s,property:n,value:a}}function ok(e){this.token(1,e.property),this.token(16,":"),this.node(e.value),e.important&&(this.token(9,"!"),this.token(1,e.important===!0?"important":e.important))}function ik(){let e=this.tokenStart;if(this.tokenType===9)switch(this.charCodeAt(this.tokenStart)){case Kv:case Jv:case Yv:case Hv:case Zv:this.next();break;case od:this.next(),this.isDelim(od)&&this.next();break}return this.tokenType===4?this.eat(4):this.eat(1),this.substrToCursor(e)}function sk(){this.eat(9),this.skipSC();let e=this.consume(1);return e==="important"?!0:e}function ka(e){return this.Raw(e,this.consumeUntilSemicolonIncluded,!0)}function bf(){let e=this.createList();for(;!this.eof;)switch(this.tokenType){case 13:case 25:case 17:this.next();break;case 3:e.push(this.parseWithFallback(this.Atrule.bind(this,!0),ka));break;default:this.isDelim(ak)?e.push(this.parseWithFallback(this.Rule,ka)):e.push(this.parseWithFallback(this.Declaration,ka))}return{type:"DeclarationList",loc:this.getLocationFromList(e),children:e}}function ck(e){this.children(e,t=>{t.type==="Declaration"&&this.token(17,";")})}function wf(){let e=this.tokenStart,t=this.consumeNumber(12);return{type:"Dimension",loc:this.getLocation(e,this.tokenStart),value:t,unit:this.substring(e+t.length,this.tokenStart)}}function fk(e){this.token(12,e.value+e.unit)}function kf(e,t){let n=this.tokenStart,r=this.consumeFunctionName(),o=r.toLowerCase(),i;return i=t.hasOwnProperty(o)?t[o].call(this,t):e.call(this,t),this.eof||this.eat(22),{type:"Function",loc:this.getLocation(n,this.tokenStart),name:r,children:i}}function yk(e){this.token(2,e.name+"("),this.children(e),this.token(22,")")}function Cf(){let e=this.tokenStart;return this.eat(4),{type:"Hash",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e+1)}}function vk(e){this.token(4,"#"+e.value)}function _f(){return{type:"Identifier",loc:this.getLocation(this.tokenStart,this.tokenEnd),name:this.consume(1)}}function Ck(e){this.token(1,e.name)}function Sf(){let e=this.tokenStart;return this.eat(4),{type:"IdSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e+1)}}function Ek(e){this.token(9,"#"+e.name)}function Af(){let e=this.tokenStart,t,n=null;if(this.eat(21),this.skipSC(),t=this.consume(1),this.skipSC(),this.tokenType!==22){switch(this.eat(16),this.skipSC(),this.tokenType){case 10:this.lookupNonWSType(1)===9?n=this.Ratio():n=this.Number();break;case 12:n=this.Dimension();break;case 1:n=this.Identifier();break;default:this.error("Number, dimension, ratio or identifier is expected")}this.skipSC()}return this.eat(22),{type:"MediaFeature",loc:this.getLocation(e,this.tokenStart),name:t,value:n}}function Ak(e){this.token(21,"("),this.token(1,e.name),e.value!==null&&(this.token(16,":"),this.node(e.value)),this.token(22,")")}function Pf(){let e=this.createList(),t=null;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case 25:case 13:this.next();continue;case 1:t=this.Identifier();break;case 21:t=this.MediaFeature();break;default:break e}e.push(t)}return t===null&&this.error("Identifier or parenthesis is expected"),{type:"MediaQuery",loc:this.getLocationFromList(e),children:e}}function Bk(e){this.children(e)}function If(){let e=this.createList();for(this.skipSC();!this.eof&&(e.push(this.MediaQuery()),this.tokenType===18);)this.next();return{type:"MediaQueryList",loc:this.getLocationFromList(e),children:e}}function Rk(e){this.children(e,()=>this.token(18,","))}function Rf(){let e=this.tokenStart;return this.eatDelim(Lk),{type:"NestingSelector",loc:this.getLocation(e,this.tokenStart)}}function $k(){this.token(9,"&")}function Nf(){this.skipSC();let e=this.tokenStart,t=e,n=null,r;return this.lookupValue(0,"odd")||this.lookupValue(0,"even")?r=this.Identifier():r=this.AnPlusB(),t=this.tokenStart,this.skipSC(),this.lookupValue(0,"of")&&(this.next(),n=this.SelectorList(),t=this.tokenStart),{type:"Nth",loc:this.getLocation(e,t),nth:r,selector:n}}function Uk(e){this.node(e.nth),e.selector!==null&&(this.token(1,"of"),this.node(e.selector))}function $f(){return{type:"Number",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consume(10)}}function qk(e){this.token(10,e.value)}function Wf(){let e=this.tokenStart;return this.next(),{type:"Operator",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function Zk(e){this.tokenize(e.value)}function Vf(e,t){let n=this.tokenStart,r=null;return this.eat(21),r=e.call(this,t),this.eof||this.eat(22),{type:"Parentheses",loc:this.getLocation(n,this.tokenStart),children:r}}function Xk(e){this.token(21,"("),this.children(e),this.token(22,")")}function qf(){return{type:"Percentage",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:this.consumeNumber(11)}}function tx(e){this.token(11,e.value+"%")}function Jf(){let e=this.tokenStart,t=null,n,r;return this.eat(16),this.tokenType===2?(n=this.consumeFunctionName(),r=n.toLowerCase(),hasOwnProperty.call(this.pseudo,r)?(this.skipSC(),t=this.pseudo[r].call(this),this.skipSC()):(t=this.createList(),t.push(this.Raw(this.tokenIndex,null,!1))),this.eat(22)):n=this.consume(1),{type:"PseudoClassSelector",loc:this.getLocation(e,this.tokenStart),name:n,children:t}}function ix(e){this.token(16,":"),e.children===null?this.token(1,e.name):(this.token(2,e.name+"("),this.children(e),this.token(22,")"))}function Kf(){let e=this.tokenStart,t=null,n,r;return this.eat(16),this.eat(16),this.tokenType===2?(n=this.consumeFunctionName(),r=n.toLowerCase(),hasOwnProperty.call(this.pseudo,r)?(this.skipSC(),t=this.pseudo[r].call(this),this.skipSC()):(t=this.createList(),t.push(this.Raw(this.tokenIndex,null,!1))),this.eat(22)):n=this.consume(1),{type:"PseudoElementSelector",loc:this.getLocation(e,this.tokenStart),name:n,children:t}}function ux(e){this.token(16,":"),this.token(16,":"),e.children===null?this.token(1,e.name):(this.token(2,e.name+"("),this.children(e),this.token(22,")"))}function id(){this.skipSC();let e=this.consume(10);for(let t=0;t<e.length;t++){let n=e.charCodeAt(t);!ae(n)&&n!==px&&this.error("Unsigned number is expected",this.tokenStart-e.length+t)}return Number(e)===0&&this.error("Zero number is not allowed",this.tokenStart-e.length),e}function Xf(){let e=this.tokenStart,t=id.call(this),n;return this.skipSC(),this.eatDelim(cx),n=id.call(this),{type:"Ratio",loc:this.getLocation(e,this.tokenStart),left:t,right:n}}function mx(e){this.token(10,e.left),this.token(9,"/"),this.token(10,e.right)}function hx(){return this.tokenIndex>0&&this.lookupType(-1)===13?this.tokenIndex>1?this.getTokenStart(this.tokenIndex-1):this.firstCharOffset:this.tokenStart}function em(e,t,n){let r=this.getTokenStart(e),o;return this.skipUntilBalanced(e,t||this.consumeUntilBalanceEnd),n&&this.tokenStart>r?o=hx.call(this):o=this.tokenStart,{type:"Raw",loc:this.getLocation(r,o),value:this.substring(r,o)}}function bx(e){this.tokenize(e.value)}function sd(e){return this.Raw(e,this.consumeUntilLeftCurlyBracket,!0)}function Dx(){let e=this.SelectorList();return e.type!=="Raw"&&this.eof===!1&&this.tokenType!==23&&this.error(),e}function nm(){let e=this.tokenIndex,t=this.tokenStart,n,r;return this.parseRulePrelude?n=this.parseWithFallback(Dx,sd):n=sd.call(this,e),r=this.Block(!0),{type:"Rule",loc:this.getLocation(t,this.tokenStart),prelude:n,block:r}}function xx(e){this.node(e.prelude),this.node(e.block)}function om(){let e=this.readSequence(this.scope.Selector);return this.getFirstListNode(e)===null&&this.error("Selector is expected"),{type:"Selector",loc:this.getLocationFromList(e),children:e}}function _x(e){this.children(e)}function sm(){let e=this.createList();for(;!this.eof;){if(e.push(this.Selector()),this.tokenType===18){this.next();continue}break}return{type:"SelectorList",loc:this.getLocationFromList(e),children:e}}function Ax(e){this.children(e,()=>this.token(18,","))}function al(e){let t=e.length,n=e.charCodeAt(0),r=n===lm||n===um?1:0,o=r===1&&t>1&&e.charCodeAt(t-1)===n?t-2:t-1,i="";for(let s=r;s<=o;s++){let a=e.charCodeAt(s);if(a===Na){if(s===o){s!==t-1&&(i=e.substr(s+1));break}if(a=e.charCodeAt(++s),We(Na,a)){let l=s-1,u=Zt(e,l);s=u-1,i+=qa(e.substring(l+1,u))}else a===13&&e.charCodeAt(s+1)===10&&s++}else i+=e[s]}return i}function cm(e,t){let n=t?"'":'"',r=t?um:lm,o="",i=!1;for(let s=0;s<e.length;s++){let a=e.charCodeAt(s);if(a===0){o+="\uFFFD";continue}if(a<=31||a===127){o+="\\"+a.toString(16),i=!0;continue}a===r||a===Na?(o+="\\"+e.charAt(s),i=!1):(i&&(Et(a)||Jt(a))&&(o+=" "),o+=e.charAt(s),i=!1)}return n+o+n}function pm(){return{type:"String",loc:this.getLocation(this.tokenStart,this.tokenEnd),value:al(this.consume(5))}}function Ix(e){this.token(5,cm(e.value))}function ad(e){return this.Raw(e,null,!1)}function fm(){let e=this.tokenStart,t=this.createList(),n;for(;!this.eof;){switch(this.tokenType){case 13:this.next();continue;case 25:if(this.charCodeAt(this.tokenStart+2)!==jx){this.next();continue}n=this.Comment();break;case 14:n=this.CDO();break;case 15:n=this.CDC();break;case 3:n=this.parseWithFallback(this.Atrule,ad);break;default:n=this.parseWithFallback(this.Rule,ad)}t.push(n)}return{type:"StyleSheet",loc:this.getLocation(e,this.tokenStart),children:t}}function Mx(e){this.children(e)}function xa(){this.tokenType!==1&&this.isDelim($x)===!1&&this.error("Identifier or asterisk is expected"),this.next()}function hm(){let e=this.tokenStart;return this.isDelim(ld)?(this.next(),xa.call(this)):(xa.call(this),this.isDelim(ld)&&(this.next(),xa.call(this))),{type:"TypeSelector",loc:this.getLocation(e,this.tokenStart),name:this.substrToCursor(e)}}function Ux(e){this.tokenize(e.name)}function Ir(e,t){let n=0;for(let r=this.tokenStart+e;r<this.tokenEnd;r++){let o=this.charCodeAt(r);if(o===bm&&t&&n!==0)return Ir.call(this,e+n+1,!1),-1;Et(o)||this.error(t&&n!==0?"Hyphen minus"+(n<6?" or hex digit":"")+" is expected":n<6?"Hex digit is expected":"Unexpected input",r),++n>6&&this.error("Too many hex digits",r)}return this.next(),n}function Mo(e){let t=0;for(;this.isDelim(Ma);)++t>e&&this.error("Too many question marks"),this.next()}function Vx(e){this.charCodeAt(this.tokenStart)!==e&&this.error((e===ym?"Plus sign":"Hyphen minus")+" is expected")}function Gx(){let e=0;switch(this.tokenType){case 10:if(e=Ir.call(this,1,!0),this.isDelim(Ma)){Mo.call(this,6-e);break}if(this.tokenType===12||this.tokenType===10){Vx.call(this,bm),Ir.call(this,1,!1);break}break;case 12:e=Ir.call(this,1,!0),e>0&&Mo.call(this,6-e);break;default:if(this.eatDelim(ym),this.tokenType===1){e=Ir.call(this,0,!0),e>0&&Mo.call(this,6-e);break}if(this.isDelim(Ma)){this.next(),Mo.call(this,5);break}this.error("Hex digit or question mark is expected")}}function Dm(){let e=this.tokenStart;return this.eatIdent("u"),Gx.call(this),{type:"UnicodeRange",loc:this.getLocation(e,this.tokenStart),value:this.substrToCursor(e)}}function Jx(e){this.tokenize(e.value)}function km(e){let t=e.length,n=4,r=e.charCodeAt(t-1)===vm?t-2:t-1,o="";for(;n<r&&Jt(e.charCodeAt(n));)n++;for(;n<r&&Jt(e.charCodeAt(r));)r--;for(let i=n;i<=r;i++){let s=e.charCodeAt(i);if(s===$a){if(i===r){i!==t-1&&(o=e.substr(i+1));break}if(s=e.charCodeAt(++i),We($a,s)){let a=i-1,l=Zt(e,a);i=l-1,o+=qa(e.substring(a+1,l))}else s===13&&e.charCodeAt(i+1)===10&&i++}else o+=e[i]}return o}function xm(e){let t="",n=!1;for(let r=0;r<e.length;r++){let o=e.charCodeAt(r);if(o===0){t+="\uFFFD";continue}if(o<=31||o===127){t+="\\"+o.toString(16),n=!0;continue}o===Kx||o===$a||o===Yx||o===Xx||o===Qx||o===vm?(t+="\\"+e.charAt(r),n=!1):(n&&Et(o)&&(t+=" "),t+=e.charAt(r),n=!1)}return"url("+t+")"}function Cm(){let e=this.tokenStart,t;switch(this.tokenType){case 7:t=km(this.consume(7));break;case 2:this.cmpStr(this.tokenStart,this.tokenEnd,"url(")||this.error("Function name must be `url`"),this.eat(2),this.skipSC(),t=al(this.consume(5)),this.skipSC(),this.eof||this.eat(22);break;default:this.error("Url or Function is expected")}return{type:"Url",loc:this.getLocation(e,this.tokenStart),value:t}}function n1(e){this.token(7,xm(e.value))}function _m(){let e=this.tokenStart,t=this.readSequence(this.scope.Value);return{type:"Value",loc:this.getLocation(e,this.tokenStart),children:t}}function i1(e){this.children(e)}function Sm(){return this.eat(13),s1}function u1(e){this.token(13,e.value)}function Am(e){switch(this.tokenType){case 4:return this.Hash();case 18:return this.Operator();case 21:return this.Parentheses(this.readSequence,e.recognizer);case 19:return this.Brackets(this.readSequence,e.recognizer);case 5:return this.String();case 12:return this.Dimension();case 11:return this.Percentage();case 10:return this.Number();case 2:return this.cmpStr(this.tokenStart,this.tokenEnd,"url(")?this.Url():this.Function(this.readSequence,e.recognizer);case 7:return this.Url();case 1:return this.cmpChar(this.tokenStart,h1)&&this.cmpChar(this.tokenStart+1,ud)?this.UnicodeRange():this.Identifier();case 9:{let t=this.charCodeAt(this.tokenStart);if(t===m1||t===d1||t===ud||t===f1)return this.Operator();t===p1&&this.error("Hex or identifier is expected",this.tokenStart+1);break}}}function F1(e,t){t.last!==null&&t.last.type!=="Combinator"&&e!==null&&e.type!=="Combinator"&&t.push({type:"Combinator",loc:null,name:" "})}function _1(){switch(this.tokenType){case 19:return this.AttributeSelector();case 4:return this.IdSelector();case 16:return this.lookupType(1)===16?this.PseudoElementSelector():this.PseudoClassSelector();case 1:return this.TypeSelector();case 10:case 11:return this.Percentage();case 12:this.charCodeAt(this.tokenStart)===cd&&this.error("Identifier is expected",this.tokenStart+1);break;case 9:{switch(this.charCodeAt(this.tokenStart)){case w1:case k1:case C1:case v1:return this.Combinator();case cd:return this.ClassSelector();case D1:case x1:return this.TypeSelector();case y1:return this.IdSelector();case b1:return this.NestingSelector()}break}}}function S1(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function T1(){let e=this.createList();if(this.skipSC(),e.push(this.Identifier()),this.skipSC(),this.tokenType===18){e.push(this.Operator());let t=this.tokenIndex,n=this.parseCustomProperty?this.Value(null):this.Raw(this.tokenIndex,this.consumeUntilExclamationMarkOrSemicolon,!1);if(n.type==="Value"&&n.children.isEmpty){for(let r=t-this.tokenIndex;r<=0;r++)if(this.lookupType(r)===13){n.children.appendData({type:"WhiteSpace",loc:null,value:" "});break}}e.push(n)}return e}function pd(e){return e!==null&&e.type==="Operator"&&(e.value[e.value.length-1]==="-"||e.value[e.value.length-1]==="+")}function R1(){return this.createSingleNodeList(this.Raw(this.tokenIndex,null,!1))}function L1(){return this.skipSC(),this.tokenType===1&&this.lookupNonWSType(1)===16?this.createSingleNodeList(this.Declaration()):Om.call(this)}function Om(){let e=this.createList(),t;this.skipSC();e:for(;!this.eof;){switch(this.tokenType){case 25:case 13:this.next();continue;case 2:t=this.Function(R1,this.scope.AtrulePrelude);break;case 1:t=this.Identifier();break;case 21:t=this.Parentheses(L1,this.scope.AtrulePrelude);break;default:break e}e.push(t)}return e}function G1(e){let t=e.length-1,n="";for(let r=0;r<e.length;r++){let o=e.charCodeAt(r);if(o===fd){if(r===t)break;if(o=e.charCodeAt(++r),We(fd,o)){let i=r-1,s=Zt(e,i);r=s-1,n+=qa(e.substring(i+1,s))}else o===13&&e.charCodeAt(r+1)===10&&r++}else n+=e[r]}return n}function q1(e){let t="";if(e.length===1&&e.charCodeAt(0)===45)return"\\-";for(let n=0;n<e.length;n++){let r=e.charCodeAt(n);if(r===0){t+="\uFFFD";continue}if(r<=31||r===127||r>=48&&r<=57&&(n===0||n===1&&e.charCodeAt(0)===45)){t+="\\"+r.toString(16)+" ";continue}Va(r)?t+=e.charAt(n):t+="\\"+e.charAt(n)}return t}var oD,za,iD,sD,aD,lD,Nn,B,uD,cD,pD,dD,Wa,fD,mD,hD,gD,yD,bD,DD,wD,vD,kD,xD,CD,FD,_D,ED,SD,TD,AD,OD,PD,BD,ID,jD,RD,LD,ND,MD,$D,zD,WD,Fa,HD,Wo,hd,Ga,gd,yd,bp,ZD,Dp,KD,Te,Ct,YD,XD,Tn,ie,ca,vp,kp,Fp,ew,tw,pa,_p,Ep,iw,Sp,Ea,aw,lw,fa,bd,uw,cw,wd,pw,Ha,Ar,Bp,Tr,Cw,Lo,An,Zo,ma,Ip,kd,Nr,Ze,ha,On,Ew,Tw,xd,Cd,Aw,Bw,Ka,Vw,Gw,Aa,Jw,Zw,Kw,Yw,Xw,Qw,e0,t0,n0,r0,o0,i0,s0,a0,l0,u0,c0,p0,d0,f0,Ad,Ya,jp,Ko,Od,m0,Pd,Xa,Qa,Rp,el,Bd,Oa,h0,ii,tl,Yo,Lp,Np,Mp,Mr,$p,Br,F0,H,J,rl,S0,T0,Vp,O0,P0,Ia,Ld,Gp,B0,I0,qp,j0,Nd,Rr,G0,Xp,J0,Z0,sl,Ud,Ke,ke,Uo,Ht,K0,Y0,X0,Gd,tv,nv,rv,Hd,iv,sv,av,Zd,uv,Kd,Go,cv,La,pv,mv,hv,Xd,yv,Dv,wv,vv,tf,xv,Cv,rf,_v,Ev,sf,Tv,Av,lf,Pv,Bv,Iv,cf,Rv,rd,Lv,Nv,Mv,$v,df,Wv,Uv,Vv,Gv,mf,hf,Hv,Jv,Zv,Kv,Yv,od,tk,nk,rk,yf,ak,lk,uk,Df,pk,dk,vf,mk,hk,gk,xf,bk,Dk,wk,Ff,kk,xk,Ef,Fk,_k,Tf,Sk,Tk,Of,Ok,Pk,Bf,Ik,jk,jf,Lk,Nk,Mk,Lf,zk,Wk,Mf,Vk,Gk,zf,Hk,Jk,Uf,Kk,Yk,Gf,Qk,ex,Hf,nx,rx,ox,Zf,sx,ax,lx,Yf,cx,px,dx,fx,Qf,gx,yx,tm,wx,vx,kx,rm,Cx,Fx,im,Ex,Sx,Tx,am,Ox,Na,lm,um,Px,Bx,dm,jx,Rx,Lx,Nx,mm,$x,ld,zx,Wx,gm,ym,bm,Ma,qx,Hx,wm,Zx,Kx,$a,Yx,Xx,Qx,vm,e1,t1,Fm,r1,o1,Em,s1,a1,l1,c1,Tm,p1,d1,ud,f1,m1,h1,g1,y1,b1,D1,w1,v1,cd,k1,x1,C1,E1,A1,O1,P1,B1,I1,j1,N1,M1,qt,Ca,dd,$o,$1,Pm,z1,W1,U1,V1,fd,ST,Bm,Im,TT,AT,jm,OT,PT,BT,IT,jT,RT,Rm=E(()=>{"use strict";oD=Object.create,za=Object.defineProperty,iD=Object.getOwnPropertyDescriptor,sD=Object.getOwnPropertyNames,aD=Object.getPrototypeOf,lD=Object.prototype.hasOwnProperty,Nn=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),B=(e,t)=>{for(var n in t)za(e,n,{get:t[n],enumerable:!0})},uD=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of sD(t))!lD.call(e,o)&&o!==n&&za(e,o,{get:()=>t[o],enumerable:!(r=iD(t,o))||r.enumerable});return e},cD=(e,t,n)=>(n=e!=null?oD(aD(e)):{},uD(t||!e||!e.__esModule?za(n,"default",{value:e,enumerable:!0}):n,e)),pD=Nn(e=>{var t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split("");e.encode=function(n){if(0<=n&&n<t.length)return t[n];throw new TypeError("Must be between 0 and 63: "+n)},e.decode=function(n){var r=65,o=90,i=97,s=122,a=48,l=57,u=43,c=47,p=26,f=52;return r<=n&&n<=o?n-r:i<=n&&n<=s?n-i+p:a<=n&&n<=l?n-a+f:n==u?62:n==c?63:-1}}),dD=Nn(e=>{var t=pD(),n=5,r=1<<n,o=r-1,i=r;function s(l){return l<0?(-l<<1)+1:(l<<1)+0}function a(l){var u=(l&1)===1,c=l>>1;return u?-c:c}e.encode=function(l){var u="",c,p=s(l);do c=p&o,p>>>=n,p>0&&(c|=i),u+=t.encode(c);while(p>0);return u},e.decode=function(l,u,c){var p=l.length,f=0,m=0,y,w;do{if(u>=p)throw new Error("Expected more digits in base 64 VLQ value.");if(w=t.decode(l.charCodeAt(u++)),w===-1)throw new Error("Invalid base64 digit: "+l.charAt(u-1));y=!!(w&i),w&=o,f=f+(w<<m),m+=n}while(y);c.value=a(f),c.rest=u}}),Wa=Nn(e=>{function t(h,g,I){if(g in h)return h[g];if(arguments.length===3)return I;throw new Error('"'+g+'" is a required argument.')}e.getArg=t;var n=/^(?:([\w+\-.]+):)?\/\/(?:(\w+:\w+)@)?([\w.-]*)(?::(\d+))?(.*)$/,r=/^data:.+\,.+$/;function o(h){var g=h.match(n);return g?{scheme:g[1],auth:g[2],host:g[3],port:g[4],path:g[5]}:null}e.urlParse=o;function i(h){var g="";return h.scheme&&(g+=h.scheme+":"),g+="//",h.auth&&(g+=h.auth+"@"),h.host&&(g+=h.host),h.port&&(g+=":"+h.port),h.path&&(g+=h.path),g}e.urlGenerate=i;var s=32;function a(h){var g=[];return function(I){for(var k=0;k<g.length;k++)if(g[k].input===I){var se=g[0];return g[0]=g[k],g[k]=se,g[0].result}var je=h(I);return g.unshift({input:I,result:je}),g.length>s&&g.pop(),je}}var l=a(function(h){var g=h,I=o(h);if(I){if(!I.path)return h;g=I.path}for(var k=e.isAbsolute(g),se=[],je=0,M=0;;)if(je=M,M=g.indexOf("/",je),M===-1){se.push(g.slice(je));break}else for(se.push(g.slice(je,M));M<g.length&&g[M]==="/";)M++;for(var Y,mt=0,M=se.length-1;M>=0;M--)Y=se[M],Y==="."?se.splice(M,1):Y===".."?mt++:mt>0&&(Y===""?(se.splice(M+1,mt),mt=0):(se.splice(M,2),mt--));return g=se.join("/"),g===""&&(g=k?"/":"."),I?(I.path=g,i(I)):g});e.normalize=l;function u(h,g){h===""&&(h="."),g===""&&(g=".");var I=o(g),k=o(h);if(k&&(h=k.path||"/"),I&&!I.scheme)return k&&(I.scheme=k.scheme),i(I);if(I||g.match(r))return g;if(k&&!k.host&&!k.path)return k.host=g,i(k);var se=g.charAt(0)==="/"?g:l(h.replace(/\/+$/,"")+"/"+g);return k?(k.path=se,i(k)):se}e.join=u,e.isAbsolute=function(h){return h.charAt(0)==="/"||n.test(h)};function c(h,g){h===""&&(h="."),h=h.replace(/\/$/,"");for(var I=0;g.indexOf(h+"/")!==0;){var k=h.lastIndexOf("/");if(k<0||(h=h.slice(0,k),h.match(/^([^\/]+:\/)?\/*$/)))return g;++I}return Array(I+1).join("../")+g.substr(h.length+1)}e.relative=c;var p=function(){var h=Object.create(null);return!("__proto__"in h)}();function f(h){return h}function m(h){return w(h)?"$"+h:h}e.toSetString=p?f:m;function y(h){return w(h)?h.slice(1):h}e.fromSetString=p?f:y;function w(h){if(!h)return!1;var g=h.length;if(g<9||h.charCodeAt(g-1)!==95||h.charCodeAt(g-2)!==95||h.charCodeAt(g-3)!==111||h.charCodeAt(g-4)!==116||h.charCodeAt(g-5)!==111||h.charCodeAt(g-6)!==114||h.charCodeAt(g-7)!==112||h.charCodeAt(g-8)!==95||h.charCodeAt(g-9)!==95)return!1;for(var I=g-10;I>=0;I--)if(h.charCodeAt(I)!==36)return!1;return!0}function O(h,g,I){var k=S(h.source,g.source);return k!==0||(k=h.originalLine-g.originalLine,k!==0)||(k=h.originalColumn-g.originalColumn,k!==0||I)||(k=h.generatedColumn-g.generatedColumn,k!==0)||(k=h.generatedLine-g.generatedLine,k!==0)?k:S(h.name,g.name)}e.compareByOriginalPositions=O;function F(h,g,I){var k;return k=h.originalLine-g.originalLine,k!==0||(k=h.originalColumn-g.originalColumn,k!==0||I)||(k=h.generatedColumn-g.generatedColumn,k!==0)||(k=h.generatedLine-g.generatedLine,k!==0)?k:S(h.name,g.name)}e.compareByOriginalPositionsNoSource=F;function $(h,g,I){var k=h.generatedLine-g.generatedLine;return k!==0||(k=h.generatedColumn-g.generatedColumn,k!==0||I)||(k=S(h.source,g.source),k!==0)||(k=h.originalLine-g.originalLine,k!==0)||(k=h.originalColumn-g.originalColumn,k!==0)?k:S(h.name,g.name)}e.compareByGeneratedPositionsDeflated=$;function x(h,g,I){var k=h.generatedColumn-g.generatedColumn;return k!==0||I||(k=S(h.source,g.source),k!==0)||(k=h.originalLine-g.originalLine,k!==0)||(k=h.originalColumn-g.originalColumn,k!==0)?k:S(h.name,g.name)}e.compareByGeneratedPositionsDeflatedNoLine=x;function S(h,g){return h===g?0:h===null?1:g===null?-1:h>g?1:-1}function G(h,g){var I=h.generatedLine-g.generatedLine;return I!==0||(I=h.generatedColumn-g.generatedColumn,I!==0)||(I=S(h.source,g.source),I!==0)||(I=h.originalLine-g.originalLine,I!==0)||(I=h.originalColumn-g.originalColumn,I!==0)?I:S(h.name,g.name)}e.compareByGeneratedPositionsInflated=G;function R(h){return JSON.parse(h.replace(/^\)]}'[^\n]*\n/,""))}e.parseSourceMapInput=R;function _(h,g,I){if(g=g||"",h&&(h[h.length-1]!=="/"&&g[0]!=="/"&&(h+="/"),g=h+g),I){var k=o(I);if(!k)throw new Error("sourceMapURL could not be parsed");if(k.path){var se=k.path.lastIndexOf("/");se>=0&&(k.path=k.path.substring(0,se+1))}g=u(i(k),g)}return l(g)}e.computeSourceURL=_}),fD=Nn(e=>{var t=Wa(),n=Object.prototype.hasOwnProperty,r=typeof Map<"u";function o(){this._array=[],this._set=r?new Map:Object.create(null)}o.fromArray=function(i,s){for(var a=new o,l=0,u=i.length;l<u;l++)a.add(i[l],s);return a},o.prototype.size=function(){return r?this._set.size:Object.getOwnPropertyNames(this._set).length},o.prototype.add=function(i,s){var a=r?i:t.toSetString(i),l=r?this.has(i):n.call(this._set,a),u=this._array.length;(!l||s)&&this._array.push(i),l||(r?this._set.set(i,u):this._set[a]=u)},o.prototype.has=function(i){if(r)return this._set.has(i);var s=t.toSetString(i);return n.call(this._set,s)},o.prototype.indexOf=function(i){if(r){var s=this._set.get(i);if(s>=0)return s}else{var a=t.toSetString(i);if(n.call(this._set,a))return this._set[a]}throw new Error('"'+i+'" is not in the set.')},o.prototype.at=function(i){if(i>=0&&i<this._array.length)return this._array[i];throw new Error("No element indexed by "+i)},o.prototype.toArray=function(){return this._array.slice()},e.ArraySet=o}),mD=Nn(e=>{var t=Wa();function n(o,i){var s=o.generatedLine,a=i.generatedLine,l=o.generatedColumn,u=i.generatedColumn;return a>s||a==s&&u>=l||t.compareByGeneratedPositionsInflated(o,i)<=0}function r(){this._array=[],this._sorted=!0,this._last={generatedLine:-1,generatedColumn:0}}r.prototype.unsortedForEach=function(o,i){this._array.forEach(o,i)},r.prototype.add=function(o){n(this._last,o)?(this._last=o,this._array.push(o)):(this._sorted=!1,this._array.push(o))},r.prototype.toArray=function(){return this._sorted||(this._array.sort(t.compareByGeneratedPositionsInflated),this._sorted=!0),this._array},e.MappingList=r}),hD=Nn(e=>{var t=dD(),n=Wa(),r=fD().ArraySet,o=mD().MappingList;function i(s){s||(s={}),this._file=n.getArg(s,"file",null),this._sourceRoot=n.getArg(s,"sourceRoot",null),this._skipValidation=n.getArg(s,"skipValidation",!1),this._sources=new r,this._names=new r,this._mappings=new o,this._sourcesContents=null}i.prototype._version=3,i.fromSourceMap=function(s){var a=s.sourceRoot,l=new i({file:s.file,sourceRoot:a});return s.eachMapping(function(u){var c={generated:{line:u.generatedLine,column:u.generatedColumn}};u.source!=null&&(c.source=u.source,a!=null&&(c.source=n.relative(a,c.source)),c.original={line:u.originalLine,column:u.originalColumn},u.name!=null&&(c.name=u.name)),l.addMapping(c)}),s.sources.forEach(function(u){var c=u;a!==null&&(c=n.relative(a,u)),l._sources.has(c)||l._sources.add(c);var p=s.sourceContentFor(u);p!=null&&l.setSourceContent(u,p)}),l},i.prototype.addMapping=function(s){var a=n.getArg(s,"generated"),l=n.getArg(s,"original",null),u=n.getArg(s,"source",null),c=n.getArg(s,"name",null);this._skipValidation||this._validateMapping(a,l,u,c),u!=null&&(u=String(u),this._sources.has(u)||this._sources.add(u)),c!=null&&(c=String(c),this._names.has(c)||this._names.add(c)),this._mappings.add({generatedLine:a.line,generatedColumn:a.column,originalLine:l!=null&&l.line,originalColumn:l!=null&&l.column,source:u,name:c})},i.prototype.setSourceContent=function(s,a){var l=s;this._sourceRoot!=null&&(l=n.relative(this._sourceRoot,l)),a!=null?(this._sourcesContents||(this._sourcesContents=Object.create(null)),this._sourcesContents[n.toSetString(l)]=a):this._sourcesContents&&(delete this._sourcesContents[n.toSetString(l)],Object.keys(this._sourcesContents).length===0&&(this._sourcesContents=null))},i.prototype.applySourceMap=function(s,a,l){var u=a;if(a==null){if(s.file==null)throw new Error(`SourceMapGenerator.prototype.applySourceMap requires either an explicit source file, or the source map's "file" property. Both were omitted.`);u=s.file}var c=this._sourceRoot;c!=null&&(u=n.relative(c,u));var p=new r,f=new r;this._mappings.unsortedForEach(function(m){if(m.source===u&&m.originalLine!=null){var y=s.originalPositionFor({line:m.originalLine,column:m.originalColumn});y.source!=null&&(m.source=y.source,l!=null&&(m.source=n.join(l,m.source)),c!=null&&(m.source=n.relative(c,m.source)),m.originalLine=y.line,m.originalColumn=y.column,y.name!=null&&(m.name=y.name))}var w=m.source;w!=null&&!p.has(w)&&p.add(w);var O=m.name;O!=null&&!f.has(O)&&f.add(O)},this),this._sources=p,this._names=f,s.sources.forEach(function(m){var y=s.sourceContentFor(m);y!=null&&(l!=null&&(m=n.join(l,m)),c!=null&&(m=n.relative(c,m)),this.setSourceContent(m,y))},this)},i.prototype._validateMapping=function(s,a,l,u){if(a&&typeof a.line!="number"&&typeof a.column!="number")throw new Error("original.line and original.column are not numbers -- you probably meant to omit the original mapping entirely and only map the generated position. If so, pass null for the original mapping instead of an object with empty or null values.");if(!(s&&"line"in s&&"column"in s&&s.line>0&&s.column>=0&&!a&&!l&&!u)){if(s&&"line"in s&&"column"in s&&a&&"line"in a&&"column"in a&&s.line>0&&s.column>=0&&a.line>0&&a.column>=0&&l)return;throw new Error("Invalid mapping: "+JSON.stringify({generated:s,source:l,original:a,name:u}))}},i.prototype._serializeMappings=function(){for(var s=0,a=1,l=0,u=0,c=0,p=0,f="",m,y,w,O,F=this._mappings.toArray(),$=0,x=F.length;$<x;$++){if(y=F[$],m="",y.generatedLine!==a)for(s=0;y.generatedLine!==a;)m+=";",a++;else if($>0){if(!n.compareByGeneratedPositionsInflated(y,F[$-1]))continue;m+=","}m+=t.encode(y.generatedColumn-s),s=y.generatedColumn,y.source!=null&&(O=this._sources.indexOf(y.source),m+=t.encode(O-p),p=O,m+=t.encode(y.originalLine-1-u),u=y.originalLine-1,m+=t.encode(y.originalColumn-l),l=y.originalColumn,y.name!=null&&(w=this._names.indexOf(y.name),m+=t.encode(w-c),c=w)),f+=m}return f},i.prototype._generateSourcesContent=function(s,a){return s.map(function(l){if(!this._sourcesContents)return null;a!=null&&(l=n.relative(a,l));var u=n.toSetString(l);return Object.prototype.hasOwnProperty.call(this._sourcesContents,u)?this._sourcesContents[u]:null},this)},i.prototype.toJSON=function(){var s={version:this._version,sources:this._sources.toArray(),names:this._names.toArray(),mappings:this._serializeMappings()};return this._file!=null&&(s.file=this._file),this._sourceRoot!=null&&(s.sourceRoot=this._sourceRoot),this._sourcesContents&&(s.sourcesContent=this._generateSourcesContent(s.sources,s.sourceRoot)),s},i.prototype.toString=function(){return JSON.stringify(this.toJSON())},e.SourceMapGenerator=i}),gD={};B(gD,{AtKeyword:()=>wD,BadString:()=>xD,BadUrl:()=>FD,CDC:()=>PD,CDO:()=>OD,Colon:()=>BD,Comma:()=>jD,Comment:()=>WD,Delim:()=>_D,Dimension:()=>TD,EOF:()=>yD,Function:()=>DD,Hash:()=>vD,Ident:()=>bD,LeftCurlyBracket:()=>$D,LeftParenthesis:()=>ND,LeftSquareBracket:()=>RD,Number:()=>ED,Percentage:()=>SD,RightCurlyBracket:()=>zD,RightParenthesis:()=>MD,RightSquareBracket:()=>LD,Semicolon:()=>ID,String:()=>kD,Url:()=>CD,WhiteSpace:()=>AD});yD=0,bD=1,DD=2,wD=3,vD=4,kD=5,xD=6,CD=7,FD=8,_D=9,ED=10,SD=11,TD=12,AD=13,OD=14,PD=15,BD=16,ID=17,jD=18,RD=19,LD=20,ND=21,MD=22,$D=23,zD=24,WD=25;Fa=new Array(128),HD=128,Wo=130,hd=131,Ga=132,gd=133;for(let e=0;e<Fa.length;e++)Fa[e]=Jt(e)&&Wo||ae(e)&&hd||qo(e)&&Ga||qD(e)&&gd||e||HD;yd=["EOF-token","ident-token","function-token","at-keyword-token","hash-token","string-token","bad-string-token","url-token","bad-url-token","delim-token","number-token","percentage-token","dimension-token","whitespace-token","CDO-token","CDC-token","colon-token","semicolon-token","comma-token","[-token","]-token","(-token",")-token","{-token","}-token"];bp=10,ZD=12,Dp=13;KD=class{constructor(){this.lines=null,this.columns=null,this.computed=!1}setSource(e,t=0,n=1,r=1){this.source=e,this.startOffset=t,this.startLine=n,this.startColumn=r,this.computed=!1}getLocation(e,t){return this.computed||wp(this),{source:t,offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]}}getLocationRange(e,t,n){return this.computed||wp(this),{source:n,start:{offset:this.startOffset+e,line:this.lines[e],column:this.columns[e]},end:{offset:this.startOffset+t,line:this.lines[t],column:this.columns[t]}}}},Te=16777215,Ct=24,YD=new Map([[2,22],[21,22],[19,20],[23,24]]),XD=class{constructor(e,t){this.setSource(e,t)}reset(){this.eof=!1,this.tokenIndex=-1,this.tokenType=0,this.tokenStart=this.firstCharOffset,this.tokenEnd=this.firstCharOffset}setSource(e="",t=()=>{}){e=String(e||"");let n=e.length,r=Jo(this.offsetAndType,e.length+1),o=Jo(this.balance,e.length+1),i=0,s=0,a=0,l=-1;for(this.offsetAndType=null,this.balance=null,t(e,(u,c,p)=>{switch(u){default:o[i]=n;break;case s:{let f=a&Te;for(a=o[f],s=a>>Ct,o[i]=f,o[f++]=i;f<i;f++)o[f]===n&&(o[f]=i);break}case 21:case 2:case 19:case 23:o[i]=a,s=YD.get(u),a=s<<Ct|i;break}r[i++]=u<<Ct|p,l===-1&&(l=c)}),r[i]=0<<Ct|n,o[i]=n,o[n]=n;a!==0;){let u=a&Te;a=o[u],o[u]=n}this.source=e,this.firstCharOffset=l===-1?0:l,this.tokenCount=i,this.offsetAndType=r,this.balance=o,this.reset(),this.next()}lookupType(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e]>>Ct:0}lookupOffset(e){return e+=this.tokenIndex,e<this.tokenCount?this.offsetAndType[e-1]&Te:this.source.length}lookupValue(e,t){return e+=this.tokenIndex,e<this.tokenCount?Lr(this.source,this.offsetAndType[e-1]&Te,this.offsetAndType[e]&Te,t):!1}getTokenStart(e){return e===this.tokenIndex?this.tokenStart:e>0?e<this.tokenCount?this.offsetAndType[e-1]&Te:this.offsetAndType[this.tokenCount]&Te:this.firstCharOffset}substrToCursor(e){return this.source.substring(e,this.tokenStart)}isBalanceEdge(e){return this.balance[this.tokenIndex]<e}isDelim(e,t){return t?this.lookupType(t)===9&&this.source.charCodeAt(this.lookupOffset(t))===e:this.tokenType===9&&this.source.charCodeAt(this.tokenStart)===e}skip(e){let t=this.tokenIndex+e;t<this.tokenCount?(this.tokenIndex=t,this.tokenStart=this.offsetAndType[t-1]&Te,t=this.offsetAndType[t],this.tokenType=t>>Ct,this.tokenEnd=t&Te):(this.tokenIndex=this.tokenCount,this.next())}next(){let e=this.tokenIndex+1;e<this.tokenCount?(this.tokenIndex=e,this.tokenStart=this.tokenEnd,e=this.offsetAndType[e],this.tokenType=e>>Ct,this.tokenEnd=e&Te):(this.eof=!0,this.tokenIndex=this.tokenCount,this.tokenType=0,this.tokenStart=this.tokenEnd=this.source.length)}skipSC(){for(;this.tokenType===13||this.tokenType===25;)this.next()}skipUntilBalanced(e,t){let n=e,r,o;e:for(;n<this.tokenCount;n++){if(r=this.balance[n],r<e)break e;switch(o=n>0?this.offsetAndType[n-1]&Te:this.firstCharOffset,t(this.source.charCodeAt(o))){case 1:break e;case 2:n++;break e;default:this.balance[r]===n&&(n=r)}}this.skip(n-this.tokenIndex)}forEachToken(e){for(let t=0,n=this.firstCharOffset;t<this.tokenCount;t++){let r=n,o=this.offsetAndType[t],i=o&Te,s=o>>Ct;n=i,e(s,r,i,t)}}dump(){let e=new Array(this.tokenCount);return this.forEachToken((t,n,r,o)=>{e[o]={idx:o,type:yd[t],chunk:this.source.substring(n,r),balance:this.balance[o]}}),e}};Tn=null,ie=class{static createItem(e){return{prev:null,next:null,data:e}}constructor(){this.head=null,this.tail=null,this.cursor=null}createItem(e){return ie.createItem(e)}allocateCursor(e,t){let n;return Tn!==null?(n=Tn,Tn=Tn.cursor,n.prev=e,n.next=t,n.cursor=this.cursor):n={prev:e,next:t,cursor:this.cursor},this.cursor=n,n}releaseCursor(){let{cursor:e}=this;this.cursor=e.cursor,e.prev=null,e.next=null,e.cursor=Tn,Tn=e}updateCursors(e,t,n,r){let{cursor:o}=this;for(;o!==null;)o.prev===e&&(o.prev=t),o.next===n&&(o.next=r),o=o.cursor}*[Symbol.iterator](){for(let e=this.head;e!==null;e=e.next)yield e.data}get size(){let e=0;for(let t=this.head;t!==null;t=t.next)e++;return e}get isEmpty(){return this.head===null}get first(){return this.head&&this.head.data}get last(){return this.tail&&this.tail.data}fromArray(e){let t=null;this.head=null;for(let n of e){let r=ie.createItem(n);t!==null?t.next=r:this.head=r,r.prev=t,t=r}return this.tail=t,this}toArray(){return[...this]}toJSON(){return[...this]}forEach(e,t=this){let n=this.allocateCursor(null,this.head);for(;n.next!==null;){let r=n.next;n.next=r.next,e.call(t,r.data,r,this)}this.releaseCursor()}forEachRight(e,t=this){let n=this.allocateCursor(this.tail,null);for(;n.prev!==null;){let r=n.prev;n.prev=r.prev,e.call(t,r.data,r,this)}this.releaseCursor()}reduce(e,t,n=this){let r=this.allocateCursor(null,this.head),o=t,i;for(;r.next!==null;)i=r.next,r.next=i.next,o=e.call(n,o,i.data,i,this);return this.releaseCursor(),o}reduceRight(e,t,n=this){let r=this.allocateCursor(this.tail,null),o=t,i;for(;r.prev!==null;)i=r.prev,r.prev=i.prev,o=e.call(n,o,i.data,i,this);return this.releaseCursor(),o}some(e,t=this){for(let n=this.head;n!==null;n=n.next)if(e.call(t,n.data,n,this))return!0;return!1}map(e,t=this){let n=new ie;for(let r=this.head;r!==null;r=r.next)n.appendData(e.call(t,r.data,r,this));return n}filter(e,t=this){let n=new ie;for(let r=this.head;r!==null;r=r.next)e.call(t,r.data,r,this)&&n.appendData(r.data);return n}nextUntil(e,t,n=this){if(e===null)return;let r=this.allocateCursor(null,e);for(;r.next!==null;){let o=r.next;if(r.next=o.next,t.call(n,o.data,o,this))break}this.releaseCursor()}prevUntil(e,t,n=this){if(e===null)return;let r=this.allocateCursor(e,null);for(;r.prev!==null;){let o=r.prev;if(r.prev=o.prev,t.call(n,o.data,o,this))break}this.releaseCursor()}clear(){this.head=null,this.tail=null}copy(){let e=new ie;for(let t of this)e.appendData(t);return e}prepend(e){return this.updateCursors(null,e,this.head,e),this.head!==null?(this.head.prev=e,e.next=this.head):this.tail=e,this.head=e,this}prependData(e){return this.prepend(ie.createItem(e))}append(e){return this.insert(e)}appendData(e){return this.insert(ie.createItem(e))}insert(e,t=null){if(t!==null)if(this.updateCursors(t.prev,e,t,e),t.prev===null){if(this.head!==t)throw new Error("before doesn't belong to list");this.head=e,t.prev=e,e.next=t,this.updateCursors(null,e)}else t.prev.next=e,e.prev=t.prev,t.prev=e,e.next=t;else this.updateCursors(this.tail,e,null,e),this.tail!==null?(this.tail.next=e,e.prev=this.tail):this.head=e,this.tail=e;return this}insertData(e,t){return this.insert(ie.createItem(e),t)}remove(e){if(this.updateCursors(e,e.prev,e,e.next),e.prev!==null)e.prev.next=e.next;else{if(this.head!==e)throw new Error("item doesn't belong to list");this.head=e.next}if(e.next!==null)e.next.prev=e.prev;else{if(this.tail!==e)throw new Error("item doesn't belong to list");this.tail=e.prev}return e.prev=null,e.next=null,e}push(e){this.insert(ie.createItem(e))}pop(){return this.tail!==null?this.remove(this.tail):null}unshift(e){this.prepend(ie.createItem(e))}shift(){return this.head!==null?this.remove(this.head):null}prependList(e){return this.insertList(e,this.head)}appendList(e){return this.insertList(e)}insertList(e,t){return e.head===null?this:(t!=null?(this.updateCursors(t.prev,e.tail,t,e.head),t.prev!==null?(t.prev.next=e.head,e.head.prev=t.prev):this.head=e.head,t.prev=e.tail,e.tail.next=t):(this.updateCursors(this.tail,e.tail,null,e.head),this.tail!==null?(this.tail.next=e.head,e.head.prev=this.tail):this.head=e.head,this.tail=e.tail),e.head=null,e.tail=null,this)}replace(e,t){"head"in t?this.insertList(t,e):this.insert(t,e),this.remove(e)}};ca=100,vp=60,kp=" ";Fp=()=>{},ew=33,tw=35,pa=59,_p=123,Ep=0;iw=cD(hD(),1),Sp=new Set(["Atrule","Selector","Declaration"]);Ea={};B(Ea,{safe:()=>wd,spec:()=>cw});aw=43,lw=45,fa=(e,t)=>{if(e===9&&(e=t),typeof e=="string"){let n=e.charCodeAt(0);return n>127?32768:n<<8}return e},bd=[[1,1],[1,2],[1,7],[1,8],[1,"-"],[1,10],[1,11],[1,12],[1,15],[1,21],[3,1],[3,2],[3,7],[3,8],[3,"-"],[3,10],[3,11],[3,12],[3,15],[4,1],[4,2],[4,7],[4,8],[4,"-"],[4,10],[4,11],[4,12],[4,15],[12,1],[12,2],[12,7],[12,8],[12,"-"],[12,10],[12,11],[12,12],[12,15],["#",1],["#",2],["#",7],["#",8],["#","-"],["#",10],["#",11],["#",12],["#",15],["-",1],["-",2],["-",7],["-",8],["-","-"],["-",10],["-",11],["-",12],["-",15],[10,1],[10,2],[10,7],[10,8],[10,10],[10,11],[10,12],[10,"%"],[10,15],["@",1],["@",2],["@",7],["@",8],["@","-"],["@",15],[".",10],[".",11],[".",12],["+",10],["+",11],["+",12],["/","*"]],uw=bd.concat([[1,4],[12,4],[4,4],[3,21],[3,5],[3,16],[11,11],[11,12],[11,2],[11,"-"],[22,1],[22,2],[22,11],[22,12],[22,4],[22,"-"]]);cw=Dd(bd),wd=Dd(uw),pw=92;({hasOwnProperty:Ha}=Object.prototype),Ar=function(){};Bp={offset:0,line:1,column:1};Tr=function(e,t){let n=ni("SyntaxReferenceError",e+(t?" `"+t+"`":""));return n.reference=t,n},Cw=function(e,t,n,r){let o=ni("SyntaxMatchError",e),{css:i,mismatchOffset:s,mismatchLength:a,start:l,end:u}=xw(r,n);return o.rawMessage=e,o.syntax=t?ri(t):"<generic>",o.css=i,o.mismatchOffset=s,o.mismatchLength=a,o.message=e+`
55
43
  syntax: `+o.syntax+`
56
44
  value: `+(i||"<empty string>")+`
57
- --------`+new Array(o.mismatchOffset+1).join("-")+"^",Object.assign(o,u),o.loc={source:n&&n.loc&&n.loc.source||"<unknown>",start:u,end:l},o},Xo=new Map,Mn=new Map,ci=45,ja=bv,id=Dv;Hd=["initial","inherit","unset","revert","revert-layer"],eo=43,tt=45,La=110,$n=!0,wv=!1;kv=43,Jd=45,Zd=63,xv=117;Fv=["calc(","-moz-calc(","-webkit-calc("],bl=new Map([[2,22],[21,22],[19,20],[23,24]]);Lv={"ident-token":Y(1),"function-token":Y(2),"at-keyword-token":Y(3),"hash-token":Y(4),"string-token":Y(5),"bad-string-token":Y(6),"url-token":Y(7),"bad-url-token":Y(8),"delim-token":Y(9),"number-token":Y(10),"percentage-token":Y(11),"dimension-token":Y(12),"whitespace-token":Y(13),"CDO-token":Y(14),"CDC-token":Y(15),"colon-token":Y(16),"semicolon-token":Y(17),"comma-token":Y(18),"[-token":Y(19),"]-token":Y(20),"(-token":Y(21),")-token":Y(22),"{-token":Y(23),"}-token":Y(24)},Nv={string:Y(5),ident:Y(1),percentage:Ie(Bv),zero:Qd(),number:Ie(Rv),integer:Ie(jv),"custom-ident":Sv,"custom-property-name":Tv,"hex-color":Av,"id-selector":Ov,"an-plus-b":vv,urange:Ev,"declaration-value":Pv,"any-value":Iv};Xa={};I(Xa,{angle:()=>zv,decibel:()=>Hv,flex:()=>qv,frequency:()=>Vv,length:()=>Wv,resolution:()=>Gv,semitones:()=>Jv,time:()=>Uv});Wv=["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],zv=["deg","grad","rad","turn"],Uv=["s","ms"],Vv=["hz","khz"],Gv=["dpi","dpcm","dppx","x"],qv=["fr"],Hv=["db"],Jv=["st"],Zv={};I(Zv,{SyntaxError:()=>ef,generate:()=>bi,parse:()=>Cl,walk:()=>af});Kv=9,Yv=10,Xv=12,Qv=13,e0=32,t0=class{constructor(e){this.str=e,this.pos=0}charCodeAt(e){return e<this.str.length?this.str.charCodeAt(e):0}charCode(){return this.charCodeAt(this.pos)}nextCharCode(){return this.charCodeAt(this.pos+1)}nextNonWsCode(e){return this.charCodeAt(this.findWsEnd(e))}findWsEnd(e){for(;e<this.str.length;e++){let t=this.str.charCodeAt(e);if(t!==Qv&&t!==Yv&&t!==Xv&&t!==e0&&t!==Kv)break}return e}substringToPos(e){return this.str.substring(this.pos,this.pos=e)}eat(e){this.charCode()!==e&&this.error("Expect `"+String.fromCharCode(e)+"`"),this.pos++}peek(){return this.pos<this.str.length?this.str.charAt(this.pos++):""}error(e){throw new ef(e,this.str,this.pos)}},n0=9,r0=10,o0=12,i0=13,s0=32,tf=33,Dl=35,sd=38,pi=39,nf=40,a0=41,rf=42,wl=43,vl=44,ad=45,kl=60,of=62,Qa=63,l0=64,wi=91,xl=93,di=123,ld=124,ud=125,cd=8734,to=new Uint8Array(128).map((e,t)=>/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0),pd={" ":1,"&&":2,"||":3,"|":4};Zr=function(){};b0={decorator(e){let t=[],n=null;return{...e,node(r){let o=n;n=r,e.node.call(this,r),n=o},emit(r,o,i){t.push({type:o,value:r,node:i?null:n})},result(){return t}}}};J={type:"Match"},Z={type:"Mismatch"},El={type:"DisallowEmpty"},v0=40,k0=41;({hasOwnProperty:hd}=Object.prototype),C0=0,E0=1,nl=2,uf=3,gd="Match",F0="Mismatch",_0="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",yd=15e3,S0=0;cf={};I(cf,{getTrace:()=>pf,isKeyword:()=>B0,isProperty:()=>I0,isType:()=>P0});({hasOwnProperty:Xr}=Object.prototype);N0=tl(Hd.join(" | "));xd=class{constructor(e,t,n){if(this.cssWideKeywordsSyntax=N0,this.syntax=t,this.generic=!1,this.units={...Xa},this.atrules=Object.create(null),this.properties=Object.create(null),this.types=Object.create(null),this.structure=n||L0(e),e){if(e.units)for(let r of Object.keys(Xa))Array.isArray(e.units[r])&&(this.units[r]=e.units[r]);if(e.types)for(let r in e.types)this.addType_(r,e.types[r]);if(e.generic){this.generic=!0;for(let[r,o]of Object.entries($v(this.units)))this.addType_(r,o)}if(e.atrules)for(let r in e.atrules)this.addAtrule_(r,e.atrules[r]);if(e.properties)for(let r in e.properties)this.addProperty_(r,e.properties[r])}}checkStructure(e){function t(o,i){r.push({node:o,message:i})}let n=this.structure,r=[];return this.syntax.walk(e,function(o){n.hasOwnProperty(o.type)?n[o.type].check(o,t):t(o,"Unknown node type `"+o.type+"`")}),r.length?r:!1}createDescriptor(e,t,n,r=null){let o={type:t,name:n},i={type:t,name:n,parent:r,serializable:typeof e=="string"||e&&typeof e.type=="string",syntax:null,match:null};return typeof e=="function"?i.match=tl(e,o):(typeof e=="string"?Object.defineProperty(i,"syntax",{get(){return Object.defineProperty(i,"syntax",{value:Cl(e)}),i.syntax}}):i.syntax=e,Object.defineProperty(i,"match",{get(){return Object.defineProperty(i,"match",{value:tl(i.syntax,o)}),i.match}})),i}addAtrule_(e,t){!t||(this.atrules[e]={type:"Atrule",name:e,prelude:t.prelude?this.createDescriptor(t.prelude,"AtrulePrelude",e):null,descriptors:t.descriptors?Object.keys(t.descriptors).reduce((n,r)=>(n[r]=this.createDescriptor(t.descriptors[r],"AtruleDescriptor",r,e),n),Object.create(null)):null})}addProperty_(e,t){!t||(this.properties[e]=this.createDescriptor(t,"Property",e))}addType_(e,t){!t||(this.types[e]=this.createDescriptor(t,"Type",e))}checkAtruleName(e){if(!this.getAtrule(e))return new Gr("Unknown at-rule","@"+e)}checkAtrulePrelude(e,t){let n=this.checkAtruleName(e);if(n)return n;let r=this.getAtrule(e);if(!r.prelude&&t)return new SyntaxError("At-rule `@"+e+"` should not contain a prelude");if(r.prelude&&!t&&!Wn(this,r.prelude,"",!1).matched)return new SyntaxError("At-rule `@"+e+"` should contain a prelude")}checkAtruleDescriptorName(e,t){let n=this.checkAtruleName(e);if(n)return n;let r=this.getAtrule(e),o=ja(t);if(!r.descriptors)return new SyntaxError("At-rule `@"+e+"` has no known descriptors");if(!r.descriptors[o.name]&&!r.descriptors[o.basename])return new Gr("Unknown at-rule descriptor",t)}checkPropertyName(e){if(!this.getProperty(e))return new Gr("Unknown property",e)}matchAtrulePrelude(e,t){let n=this.checkAtrulePrelude(e,t);if(n)return Ge(null,n);let r=this.getAtrule(e);return r.prelude?Wn(this,r.prelude,t||"",!1):Ge(null,null)}matchAtruleDescriptor(e,t,n){let r=this.checkAtruleDescriptorName(e,t);if(r)return Ge(null,r);let o=this.getAtrule(e),i=ja(t);return Wn(this,o.descriptors[i.name]||o.descriptors[i.basename],n,!1)}matchDeclaration(e){return e.type!=="Declaration"?Ge(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}matchProperty(e,t){if(id(e).custom)return Ge(null,new Error("Lexer matching doesn't applicable for custom properties"));let n=this.checkPropertyName(e);return n?Ge(null,n):Wn(this,this.getProperty(e),t,!0)}matchType(e,t){let n=this.getType(e);return n?Wn(this,n,t,!1):Ge(null,new Gr("Unknown type",e))}match(e,t){return typeof e!="string"&&(!e||!e.type)?Ge(null,new Gr("Bad syntax")):((typeof e=="string"||!e.match)&&(e=this.createDescriptor(e,"Type","anonymous")),Wn(this,e,t,!1))}findValueFragments(e,t,n,r){return vd(this,t,this.matchProperty(e,t),n,r)}findDeclarationValueFragments(e,t,n){return vd(this,e.value,this.matchDeclaration(e),t,n)}findAllFragments(e,t,n){let r=[];return this.syntax.walk(e,{visit:"Declaration",enter:o=>{r.push.apply(r,this.findDeclarationValueFragments(o,t,n))}}),r}getAtrule(e,t=!0){let n=ja(e);return(n.vendor&&t?this.atrules[n.name]||this.atrules[n.basename]:this.atrules[n.name])||null}getAtrulePrelude(e,t=!0){let n=this.getAtrule(e,t);return n&&n.prelude||null}getAtruleDescriptor(e,t){return this.atrules.hasOwnProperty(e)&&this.atrules.declarators&&this.atrules[e].declarators[t]||null}getProperty(e,t=!0){let n=id(e);return(n.vendor&&t?this.properties[n.name]||this.properties[n.basename]:this.properties[n.name])||null}getType(e){return hasOwnProperty.call(this.types,e)?this.types[e]:null}validate(){function e(r,o,i,s){if(i.has(o))return i.get(o);i.set(o,!1),s.syntax!==null&&af(s.syntax,function(a){if(a.type!=="Type"&&a.type!=="Property")return;let u=a.type==="Type"?r.types:r.properties,l=a.type==="Type"?t:n;(!hasOwnProperty.call(u,a.name)||e(r,a.name,l,u[a.name]))&&i.set(o,!0)},this)}let t=new Map,n=new Map;for(let r in this.types)e(this,r,t,this.types[r]);for(let r in this.properties)e(this,r,n,this.properties[r]);return t=[...t.keys()].filter(r=>t.get(r)),n=[...n.keys()].filter(r=>n.get(r)),t.length||n.length?{types:t,properties:n}:null}dump(e,t){return{generic:this.generic,units:this.units,types:rl(this.types,!t,e),properties:rl(this.properties,!t,e),atrules:M0(this.atrules,!t,e)}}toString(){return JSON.stringify(this.dump())}};W0=e=>mf(ol({},e)),z0={generic:!0,units:{angle:["deg","grad","rad","turn"],decibel:["db"],flex:["fr"],frequency:["hz","khz"],length:["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],resolution:["dpi","dpcm","dppx","x"],semitones:["st"],time:["s","ms"]},types:{"abs()":"abs( <calc-sum> )","absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large","acos()":"acos( <calc-sum> )","alpha-value":"<number>|<percentage>","angle-percentage":"<angle>|<percentage>","angular-color-hint":"<angle-percentage>","angular-color-stop":"<color>&&<color-stop-angle>?","angular-color-stop-list":"[<angular-color-stop> [, <angular-color-hint>]?]# , <angular-color-stop>","animateable-feature":"scroll-position|contents|<custom-ident>","asin()":"asin( <calc-sum> )","atan()":"atan( <calc-sum> )","atan2()":"atan2( <calc-sum> , <calc-sum> )",attachment:"scroll|fixed|local","attr()":"attr( <attr-name> <type-or-unit>? [, <attr-fallback>]? )","attr-matcher":"['~'|'|'|'^'|'$'|'*']? '='","attr-modifier":"i|s","attribute-selector":"'[' <wq-name> ']'|'[' <wq-name> <attr-matcher> [<string-token>|<ident-token>] <attr-modifier>? ']'","auto-repeat":"repeat( [auto-fill|auto-fit] , [<line-names>? <fixed-size>]+ <line-names>? )","auto-track-list":"[<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>? <auto-repeat> [<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>?",axis:"block|inline|vertical|horizontal","baseline-position":"[first|last]? baseline","basic-shape":"<inset()>|<circle()>|<ellipse()>|<polygon()>|<path()>","bg-image":"none|<image>","bg-layer":"<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","bg-position":"[[left|center|right|top|bottom|<length-percentage>]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]|[center|[left|right] <length-percentage>?]&&[center|[top|bottom] <length-percentage>?]]","bg-size":"[<length-percentage>|auto]{1,2}|cover|contain","blur()":"blur( <length> )","blend-mode":"normal|multiply|screen|overlay|darken|lighten|color-dodge|color-burn|hard-light|soft-light|difference|exclusion|hue|saturation|color|luminosity",box:"border-box|padding-box|content-box","brightness()":"brightness( <number-percentage> )","calc()":"calc( <calc-sum> )","calc-sum":"<calc-product> [['+'|'-'] <calc-product>]*","calc-product":"<calc-value> ['*' <calc-value>|'/' <number>]*","calc-value":"<number>|<dimension>|<percentage>|<calc-constant>|( <calc-sum> )","calc-constant":"e|pi|infinity|-infinity|NaN","cf-final-image":"<image>|<color>","cf-mixing-image":"<percentage>?&&<image>","circle()":"circle( [<shape-radius>]? [at <position>]? )","clamp()":"clamp( <calc-sum>#{3} )","class-selector":"'.' <ident-token>","clip-source":"<url>",color:"<rgb()>|<rgba()>|<hsl()>|<hsla()>|<hwb()>|<lab()>|<lch()>|<hex-color>|<named-color>|currentcolor|<deprecated-system-color>","color-stop":"<color-stop-length>|<color-stop-angle>","color-stop-angle":"<angle-percentage>{1,2}","color-stop-length":"<length-percentage>{1,2}","color-stop-list":"[<linear-color-stop> [, <linear-color-hint>]?]# , <linear-color-stop>",combinator:"'>'|'+'|'~'|['||']","common-lig-values":"[common-ligatures|no-common-ligatures]","compat-auto":"searchfield|textarea|push-button|slider-horizontal|checkbox|radio|square-button|menulist|listbox|meter|progress-bar|button","composite-style":"clear|copy|source-over|source-in|source-out|source-atop|destination-over|destination-in|destination-out|destination-atop|xor","compositing-operator":"add|subtract|intersect|exclude","compound-selector":"[<type-selector>? <subclass-selector>* [<pseudo-element-selector> <pseudo-class-selector>*]*]!","compound-selector-list":"<compound-selector>#","complex-selector":"<compound-selector> [<combinator>? <compound-selector>]*","complex-selector-list":"<complex-selector>#","conic-gradient()":"conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","contextual-alt-values":"[contextual|no-contextual]","content-distribution":"space-between|space-around|space-evenly|stretch","content-list":"[<string>|contents|<image>|<counter>|<quote>|<target>|<leader()>|<attr()>]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"<image>","contrast()":"contrast( [<number-percentage>] )","cos()":"cos( <calc-sum> )",counter:"<counter()>|<counters()>","counter()":"counter( <counter-name> , <counter-style>? )","counter-name":"<custom-ident>","counter-style":"<counter-style-name>|symbols( )","counter-style-name":"<custom-ident>","counters()":"counters( <counter-name> , <string> , <counter-style>? )","cross-fade()":"cross-fade( <cf-mixing-image> , <cf-final-image>? )","cubic-bezier-timing-function":"ease|ease-in|ease-out|ease-in-out|cubic-bezier( <number [0,1]> , <number> , <number [0,1]> , <number> )","deprecated-system-color":"ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText","discretionary-lig-values":"[discretionary-ligatures|no-discretionary-ligatures]","display-box":"contents|none","display-inside":"flow|flow-root|table|flex|grid|ruby","display-internal":"table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption|ruby-base|ruby-text|ruby-base-container|ruby-text-container","display-legacy":"inline-block|inline-list-item|inline-table|inline-flex|inline-grid","display-listitem":"<display-outside>?&&[flow|flow-root]?&&list-item","display-outside":"block|inline|run-in","drop-shadow()":"drop-shadow( <length>{2,3} <color>? )","east-asian-variant-values":"[jis78|jis83|jis90|jis04|simplified|traditional]","east-asian-width-values":"[full-width|proportional-width]","element()":"element( <custom-ident> , [first|start|last|first-except]? )|element( <id-selector> )","ellipse()":"ellipse( [<shape-radius>{2}]? [at <position>]? )","ending-shape":"circle|ellipse","env()":"env( <custom-ident> , <declaration-value>? )","exp()":"exp( <calc-sum> )","explicit-track-list":"[<line-names>? <track-size>]+ <line-names>?","family-name":"<string>|<custom-ident>+","feature-tag-value":"<string> [<integer>|on|off]?","feature-type":"@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation","feature-value-block":"<feature-type> '{' <feature-value-declaration-list> '}'","feature-value-block-list":"<feature-value-block>+","feature-value-declaration":"<custom-ident> : <integer>+ ;","feature-value-declaration-list":"<feature-value-declaration>","feature-value-name":"<custom-ident>","fill-rule":"nonzero|evenodd","filter-function":"<blur()>|<brightness()>|<contrast()>|<drop-shadow()>|<grayscale()>|<hue-rotate()>|<invert()>|<opacity()>|<saturate()>|<sepia()>","filter-function-list":"[<filter-function>|<url>]+","final-bg-layer":"<'background-color'>||<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","fixed-breadth":"<length-percentage>","fixed-repeat":"repeat( [<integer [1,\u221E]>] , [<line-names>? <fixed-size>]+ <line-names>? )","fixed-size":"<fixed-breadth>|minmax( <fixed-breadth> , <track-breadth> )|minmax( <inflexible-breadth> , <fixed-breadth> )","font-stretch-absolute":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|<percentage>","font-variant-css21":"[normal|small-caps]","font-weight-absolute":"normal|bold|<number [1,1000]>","frequency-percentage":"<frequency>|<percentage>","general-enclosed":"[<function-token> <any-value> )]|( <ident> <any-value> )","generic-family":"serif|sans-serif|cursive|fantasy|monospace|-apple-system","generic-name":"serif|sans-serif|cursive|fantasy|monospace","geometry-box":"<shape-box>|fill-box|stroke-box|view-box",gradient:"<linear-gradient()>|<repeating-linear-gradient()>|<radial-gradient()>|<repeating-radial-gradient()>|<conic-gradient()>|<repeating-conic-gradient()>|<-legacy-gradient>","grayscale()":"grayscale( <number-percentage> )","grid-line":"auto|<custom-ident>|[<integer>&&<custom-ident>?]|[span&&[<integer>||<custom-ident>]]","historical-lig-values":"[historical-ligatures|no-historical-ligatures]","hsl()":"hsl( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsl( <hue> , <percentage> , <percentage> , <alpha-value>? )","hsla()":"hsla( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsla( <hue> , <percentage> , <percentage> , <alpha-value>? )",hue:"<number>|<angle>","hue-rotate()":"hue-rotate( <angle> )","hwb()":"hwb( [<hue>|none] [<percentage>|none] [<percentage>|none] [/ [<alpha-value>|none]]? )","hypot()":"hypot( <calc-sum># )",image:"<url>|<image()>|<image-set()>|<element()>|<paint()>|<cross-fade()>|<gradient>","image()":"image( <image-tags>? [<image-src>? , <color>?]! )","image-set()":"image-set( <image-set-option># )","image-set-option":"[<image>|<string>] [<resolution>||type( <string> )]","image-src":"<url>|<string>","image-tags":"ltr|rtl","inflexible-breadth":"<length-percentage>|min-content|max-content|auto","inset()":"inset( <length-percentage>{1,4} [round <'border-radius'>]? )","invert()":"invert( <number-percentage> )","keyframes-name":"<custom-ident>|<string>","keyframe-block":"<keyframe-selector># { <declaration-list> }","keyframe-block-list":"<keyframe-block>+","keyframe-selector":"from|to|<percentage>","lab()":"lab( [<percentage>|<number>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )","layer()":"layer( <layer-name> )","layer-name":"<ident> ['.' <ident>]*","lch()":"lch( [<percentage>|<number>|none] [<percentage>|<number>|none] [<hue>|none] [/ [<alpha-value>|none]]? )","leader()":"leader( <leader-type> )","leader-type":"dotted|solid|space|<string>","length-percentage":"<length>|<percentage>","line-names":"'[' <custom-ident>* ']'","line-name-list":"[<line-names>|<name-repeat>]+","line-style":"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset","line-width":"<length>|thin|medium|thick","linear-color-hint":"<length-percentage>","linear-color-stop":"<color> <color-stop-length>?","linear-gradient()":"linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","log()":"log( <calc-sum> , <calc-sum>? )","mask-layer":"<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||<geometry-box>||[<geometry-box>|no-clip]||<compositing-operator>||<masking-mode>","mask-position":"[<length-percentage>|left|center|right] [<length-percentage>|top|center|bottom]?","mask-reference":"none|<image>|<mask-source>","mask-source":"<url>","masking-mode":"alpha|luminance|match-source","matrix()":"matrix( <number>#{6} )","matrix3d()":"matrix3d( <number>#{16} )","max()":"max( <calc-sum># )","media-and":"<media-in-parens> [and <media-in-parens>]+","media-condition":"<media-not>|<media-and>|<media-or>|<media-in-parens>","media-condition-without-or":"<media-not>|<media-and>|<media-in-parens>","media-feature":"( [<mf-plain>|<mf-boolean>|<mf-range>] )","media-in-parens":"( <media-condition> )|<media-feature>|<general-enclosed>","media-not":"not <media-in-parens>","media-or":"<media-in-parens> [or <media-in-parens>]+","media-query":"<media-condition>|[not|only]? <media-type> [and <media-condition-without-or>]?","media-query-list":"<media-query>#","media-type":"<ident>","mf-boolean":"<mf-name>","mf-name":"<ident>","mf-plain":"<mf-name> : <mf-value>","mf-range":"<mf-name> ['<'|'>']? '='? <mf-value>|<mf-value> ['<'|'>']? '='? <mf-name>|<mf-value> '<' '='? <mf-name> '<' '='? <mf-value>|<mf-value> '>' '='? <mf-name> '>' '='? <mf-value>","mf-value":"<number>|<dimension>|<ident>|<ratio>","min()":"min( <calc-sum># )","minmax()":"minmax( [<length-percentage>|min-content|max-content|auto] , [<length-percentage>|<flex>|min-content|max-content|auto] )","mod()":"mod( <calc-sum> , <calc-sum> )","name-repeat":"repeat( [<integer [1,\u221E]>|auto-fill] , <line-names>+ )","named-color":"transparent|aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|<-non-standard-color>","namespace-prefix":"<ident>","ns-prefix":"[<ident-token>|'*']? '|'","number-percentage":"<number>|<percentage>","numeric-figure-values":"[lining-nums|oldstyle-nums]","numeric-fraction-values":"[diagonal-fractions|stacked-fractions]","numeric-spacing-values":"[proportional-nums|tabular-nums]",nth:"<an-plus-b>|even|odd","opacity()":"opacity( [<number-percentage>] )","overflow-position":"unsafe|safe","outline-radius":"<length>|<percentage>","page-body":"<declaration>? [; <page-body>]?|<page-margin-box> <page-body>","page-margin-box":"<page-margin-box-type> '{' <declaration-list> '}'","page-margin-box-type":"@top-left-corner|@top-left|@top-center|@top-right|@top-right-corner|@bottom-left-corner|@bottom-left|@bottom-center|@bottom-right|@bottom-right-corner|@left-top|@left-middle|@left-bottom|@right-top|@right-middle|@right-bottom","page-selector-list":"[<page-selector>#]?","page-selector":"<pseudo-page>+|<ident> <pseudo-page>*","page-size":"A5|A4|A3|B5|B4|JIS-B5|JIS-B4|letter|legal|ledger","path()":"path( [<fill-rule> ,]? <string> )","paint()":"paint( <ident> , <declaration-value>? )","perspective()":"perspective( [<length [0,\u221E]>|none] )","polygon()":"polygon( <fill-rule>? , [<length-percentage> <length-percentage>]# )",position:"[[left|center|right]||[top|center|bottom]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]?|[[left|right] <length-percentage>]&&[[top|bottom] <length-percentage>]]","pow()":"pow( <calc-sum> , <calc-sum> )","pseudo-class-selector":"':' <ident-token>|':' <function-token> <any-value> ')'","pseudo-element-selector":"':' <pseudo-class-selector>","pseudo-page":": [left|right|first|blank]",quote:"open-quote|close-quote|no-open-quote|no-close-quote","radial-gradient()":"radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )",ratio:"<number [0,\u221E]> [/ <number [0,\u221E]>]?","relative-selector":"<combinator>? <complex-selector>","relative-selector-list":"<relative-selector>#","relative-size":"larger|smaller","rem()":"rem( <calc-sum> , <calc-sum> )","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","repeating-conic-gradient()":"repeating-conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","repeating-linear-gradient()":"repeating-linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","repeating-radial-gradient()":"repeating-radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )","reversed-counter-name":"reversed( <counter-name> )","rgb()":"rgb( <percentage>{3} [/ <alpha-value>]? )|rgb( <number>{3} [/ <alpha-value>]? )|rgb( <percentage>#{3} , <alpha-value>? )|rgb( <number>#{3} , <alpha-value>? )","rgba()":"rgba( <percentage>{3} [/ <alpha-value>]? )|rgba( <number>{3} [/ <alpha-value>]? )|rgba( <percentage>#{3} , <alpha-value>? )|rgba( <number>#{3} , <alpha-value>? )","rotate()":"rotate( [<angle>|<zero>] )","rotate3d()":"rotate3d( <number> , <number> , <number> , [<angle>|<zero>] )","rotateX()":"rotateX( [<angle>|<zero>] )","rotateY()":"rotateY( [<angle>|<zero>] )","rotateZ()":"rotateZ( [<angle>|<zero>] )","round()":"round( <rounding-strategy>? , <calc-sum> , <calc-sum> )","rounding-strategy":"nearest|up|down|to-zero","saturate()":"saturate( <number-percentage> )","scale()":"scale( [<number>|<percentage>]#{1,2} )","scale3d()":"scale3d( [<number>|<percentage>]#{3} )","scaleX()":"scaleX( [<number>|<percentage>] )","scaleY()":"scaleY( [<number>|<percentage>] )","scaleZ()":"scaleZ( [<number>|<percentage>] )",scroller:"root|nearest","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","shape-radius":"<length-percentage>|closest-side|farthest-side","sign()":"sign( <calc-sum> )","skew()":"skew( [<angle>|<zero>] , [<angle>|<zero>]? )","skewX()":"skewX( [<angle>|<zero>] )","skewY()":"skewY( [<angle>|<zero>] )","sepia()":"sepia( <number-percentage> )",shadow:"inset?&&<length>{2,4}&&<color>?","shadow-t":"[<length>{2,3}&&<color>?]",shape:"rect( <top> , <right> , <bottom> , <left> )|rect( <top> <right> <bottom> <left> )","shape-box":"<box>|margin-box","side-or-corner":"[left|right]||[top|bottom]","sin()":"sin( <calc-sum> )","single-animation":"<time>||<easing-function>||<time>||<single-animation-iteration-count>||<single-animation-direction>||<single-animation-fill-mode>||<single-animation-play-state>||[none|<keyframes-name>]","single-animation-direction":"normal|reverse|alternate|alternate-reverse","single-animation-fill-mode":"none|forwards|backwards|both","single-animation-iteration-count":"infinite|<number>","single-animation-play-state":"running|paused","single-animation-timeline":"auto|none|<timeline-name>|scroll( <axis>? <scroller>? )","single-transition":"[none|<single-transition-property>]||<time>||<easing-function>||<time>","single-transition-property":"all|<custom-ident>",size:"closest-side|farthest-side|closest-corner|farthest-corner|<length>|<length-percentage>{2}","sqrt()":"sqrt( <calc-sum> )","step-position":"jump-start|jump-end|jump-none|jump-both|start|end","step-timing-function":"step-start|step-end|steps( <integer> [, <step-position>]? )","subclass-selector":"<id-selector>|<class-selector>|<attribute-selector>|<pseudo-class-selector>","supports-condition":"not <supports-in-parens>|<supports-in-parens> [and <supports-in-parens>]*|<supports-in-parens> [or <supports-in-parens>]*","supports-in-parens":"( <supports-condition> )|<supports-feature>|<general-enclosed>","supports-feature":"<supports-decl>|<supports-selector-fn>","supports-decl":"( <declaration> )","supports-selector-fn":"selector( <complex-selector> )",symbol:"<string>|<image>|<custom-ident>","tan()":"tan( <calc-sum> )",target:"<target-counter()>|<target-counters()>|<target-text()>","target-counter()":"target-counter( [<string>|<url>] , <custom-ident> , <counter-style>? )","target-counters()":"target-counters( [<string>|<url>] , <custom-ident> , <string> , <counter-style>? )","target-text()":"target-text( [<string>|<url>] , [content|before|after|first-letter]? )","time-percentage":"<time>|<percentage>","timeline-name":"<custom-ident>|<string>","easing-function":"linear|<cubic-bezier-timing-function>|<step-timing-function>","track-breadth":"<length-percentage>|<flex>|min-content|max-content|auto","track-list":"[<line-names>? [<track-size>|<track-repeat>]]+ <line-names>?","track-repeat":"repeat( [<integer [1,\u221E]>] , [<line-names>? <track-size>]+ <line-names>? )","track-size":"<track-breadth>|minmax( <inflexible-breadth> , <track-breadth> )|fit-content( <length-percentage> )","transform-function":"<matrix()>|<translate()>|<translateX()>|<translateY()>|<scale()>|<scaleX()>|<scaleY()>|<rotate()>|<skew()>|<skewX()>|<skewY()>|<matrix3d()>|<translate3d()>|<translateZ()>|<scale3d()>|<scaleZ()>|<rotate3d()>|<rotateX()>|<rotateY()>|<rotateZ()>|<perspective()>","transform-list":"<transform-function>+","translate()":"translate( <length-percentage> , <length-percentage>? )","translate3d()":"translate3d( <length-percentage> , <length-percentage> , <length> )","translateX()":"translateX( <length-percentage> )","translateY()":"translateY( <length-percentage> )","translateZ()":"translateZ( <length> )","type-or-unit":"string|color|url|integer|number|length|angle|time|frequency|cap|ch|em|ex|ic|lh|rlh|rem|vb|vi|vw|vh|vmin|vmax|mm|Q|cm|in|pt|pc|px|deg|grad|rad|turn|ms|s|Hz|kHz|%","type-selector":"<wq-name>|<ns-prefix>? '*'","var()":"var( <custom-property-name> , <declaration-value>? )","viewport-length":"auto|<length-percentage>","visual-box":"content-box|padding-box|border-box","wq-name":"<ns-prefix>? <ident-token>","-legacy-gradient":"<-webkit-gradient()>|<-legacy-linear-gradient>|<-legacy-repeating-linear-gradient>|<-legacy-radial-gradient>|<-legacy-repeating-radial-gradient>","-legacy-linear-gradient":"-moz-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-repeating-linear-gradient":"-moz-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-linear-gradient-arguments":"[<angle>|<side-or-corner>]? , <color-stop-list>","-legacy-radial-gradient":"-moz-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-repeating-radial-gradient":"-moz-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-radial-gradient-arguments":"[<position> ,]? [[[<-legacy-radial-gradient-shape>||<-legacy-radial-gradient-size>]|[<length>|<percentage>]{2}] ,]? <color-stop-list>","-legacy-radial-gradient-size":"closest-side|closest-corner|farthest-side|farthest-corner|contain|cover","-legacy-radial-gradient-shape":"circle|ellipse","-non-standard-font":"-apple-system-body|-apple-system-headline|-apple-system-subheadline|-apple-system-caption1|-apple-system-caption2|-apple-system-footnote|-apple-system-short-body|-apple-system-short-headline|-apple-system-short-subheadline|-apple-system-short-caption1|-apple-system-short-footnote|-apple-system-tall-body","-non-standard-color":"-moz-ButtonDefault|-moz-ButtonHoverFace|-moz-ButtonHoverText|-moz-CellHighlight|-moz-CellHighlightText|-moz-Combobox|-moz-ComboboxText|-moz-Dialog|-moz-DialogText|-moz-dragtargetzone|-moz-EvenTreeRow|-moz-Field|-moz-FieldText|-moz-html-CellHighlight|-moz-html-CellHighlightText|-moz-mac-accentdarkestshadow|-moz-mac-accentdarkshadow|-moz-mac-accentface|-moz-mac-accentlightesthighlight|-moz-mac-accentlightshadow|-moz-mac-accentregularhighlight|-moz-mac-accentregularshadow|-moz-mac-chrome-active|-moz-mac-chrome-inactive|-moz-mac-focusring|-moz-mac-menuselect|-moz-mac-menushadow|-moz-mac-menutextselect|-moz-MenuHover|-moz-MenuHoverText|-moz-MenuBarText|-moz-MenuBarHoverText|-moz-nativehyperlinktext|-moz-OddTreeRow|-moz-win-communicationstext|-moz-win-mediatext|-moz-activehyperlinktext|-moz-default-background-color|-moz-default-color|-moz-hyperlinktext|-moz-visitedhyperlinktext|-webkit-activelink|-webkit-focus-ring-color|-webkit-link|-webkit-text","-non-standard-image-rendering":"optimize-contrast|-moz-crisp-edges|-o-crisp-edges|-webkit-optimize-contrast","-non-standard-overflow":"-moz-scrollbars-none|-moz-scrollbars-horizontal|-moz-scrollbars-vertical|-moz-hidden-unscrollable","-non-standard-width":"fill-available|min-intrinsic|intrinsic|-moz-available|-moz-fit-content|-moz-min-content|-moz-max-content|-webkit-min-content|-webkit-max-content","-webkit-gradient()":"-webkit-gradient( <-webkit-gradient-type> , <-webkit-gradient-point> [, <-webkit-gradient-point>|, <-webkit-gradient-radius> , <-webkit-gradient-point>] [, <-webkit-gradient-radius>]? [, <-webkit-gradient-color-stop>]* )","-webkit-gradient-color-stop":"from( <color> )|color-stop( [<number-zero-one>|<percentage>] , <color> )|to( <color> )","-webkit-gradient-point":"[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]","-webkit-gradient-radius":"<length>|<percentage>","-webkit-gradient-type":"linear|radial","-webkit-mask-box-repeat":"repeat|stretch|round","-webkit-mask-clip-style":"border|border-box|padding|padding-box|content|content-box|text","-ms-filter-function-list":"<-ms-filter-function>+","-ms-filter-function":"<-ms-filter-function-progid>|<-ms-filter-function-legacy>","-ms-filter-function-progid":"'progid:' [<ident-token> '.']* [<ident-token>|<function-token> <any-value>? )]","-ms-filter-function-legacy":"<ident-token>|<function-token> <any-value>? )","-ms-filter":"<string>",age:"child|young|old","attr-name":"<wq-name>","attr-fallback":"<any-value>","bg-clip":"<box>|border|text",bottom:"<length>|auto","container-name":"<custom-ident>","container-condition":"not <query-in-parens>|<query-in-parens> [[and <query-in-parens>]*|[or <query-in-parens>]*]","generic-voice":"[<age>? <gender> <integer>?]",gender:"male|female|neutral",left:"<length>|auto","mask-image":"<mask-reference>#",paint:"none|<color>|<url> [none|<color>]?|context-fill|context-stroke",right:"<length>|auto","scroll-timeline-axis":"block|inline|vertical|horizontal","scroll-timeline-name":"none|<custom-ident>","single-animation-composition":"replace|add|accumulate","svg-length":"<percentage>|<length>|<number>","svg-writing-mode":"lr-tb|rl-tb|tb-rl|lr|rl|tb",top:"<length>|auto",x:"<number>",y:"<number>",declaration:"<ident-token> : <declaration-value>? ['!' important]?","declaration-list":"[<declaration>? ';']* <declaration>?",url:"url( <string> <url-modifier>* )|<url-token>","url-modifier":"<ident>|<function-token> <any-value> )","number-zero-one":"<number [0,1]>","number-one-or-greater":"<number [1,\u221E]>","query-in-parens":"( <container-condition> )|( <size-feature> )|style( <style-query> )|<general-enclosed>","size-feature":"<mf-plain>|<mf-boolean>|<mf-range>","style-feature":"<declaration>","style-query":"<style-condition>|<style-feature>","style-condition":"not <style-in-parens>|<style-in-parens> [[and <style-in-parens>]*|[or <style-in-parens>]*]","style-in-parens":"( <style-condition> )|( <style-feature> )|<general-enclosed>","-non-standard-display":"-ms-inline-flexbox|-ms-grid|-ms-inline-grid|-webkit-flex|-webkit-inline-flex|-webkit-box|-webkit-inline-box|-moz-inline-stack|-moz-box|-moz-inline-box"},properties:{"--*":"<declaration-value>","-ms-accelerator":"false|true","-ms-block-progression":"tb|rl|bt|lr","-ms-content-zoom-chaining":"none|chained","-ms-content-zooming":"none|zoom","-ms-content-zoom-limit":"<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>","-ms-content-zoom-limit-max":"<percentage>","-ms-content-zoom-limit-min":"<percentage>","-ms-content-zoom-snap":"<'-ms-content-zoom-snap-type'>||<'-ms-content-zoom-snap-points'>","-ms-content-zoom-snap-points":"snapInterval( <percentage> , <percentage> )|snapList( <percentage># )","-ms-content-zoom-snap-type":"none|proximity|mandatory","-ms-filter":"<string>","-ms-flow-from":"[none|<custom-ident>]#","-ms-flow-into":"[none|<custom-ident>]#","-ms-grid-columns":"none|<track-list>|<auto-track-list>","-ms-grid-rows":"none|<track-list>|<auto-track-list>","-ms-high-contrast-adjust":"auto|none","-ms-hyphenate-limit-chars":"auto|<integer>{1,3}","-ms-hyphenate-limit-lines":"no-limit|<integer>","-ms-hyphenate-limit-zone":"<percentage>|<length>","-ms-ime-align":"auto|after","-ms-overflow-style":"auto|none|scrollbar|-ms-autohiding-scrollbar","-ms-scrollbar-3dlight-color":"<color>","-ms-scrollbar-arrow-color":"<color>","-ms-scrollbar-base-color":"<color>","-ms-scrollbar-darkshadow-color":"<color>","-ms-scrollbar-face-color":"<color>","-ms-scrollbar-highlight-color":"<color>","-ms-scrollbar-shadow-color":"<color>","-ms-scrollbar-track-color":"<color>","-ms-scroll-chaining":"chained|none","-ms-scroll-limit":"<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> <'-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>","-ms-scroll-limit-x-max":"auto|<length>","-ms-scroll-limit-x-min":"<length>","-ms-scroll-limit-y-max":"auto|<length>","-ms-scroll-limit-y-min":"<length>","-ms-scroll-rails":"none|railed","-ms-scroll-snap-points-x":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-points-y":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-type":"none|proximity|mandatory","-ms-scroll-snap-x":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-x'>","-ms-scroll-snap-y":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-y'>","-ms-scroll-translation":"none|vertical-to-horizontal","-ms-text-autospace":"none|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space","-ms-touch-select":"grippers|none","-ms-user-select":"none|element|text","-ms-wrap-flow":"auto|both|start|end|maximum|clear","-ms-wrap-margin":"<length>","-ms-wrap-through":"wrap|none","-moz-appearance":"none|button|button-arrow-down|button-arrow-next|button-arrow-previous|button-arrow-up|button-bevel|button-focus|caret|checkbox|checkbox-container|checkbox-label|checkmenuitem|dualbutton|groupbox|listbox|listitem|menuarrow|menubar|menucheckbox|menuimage|menuitem|menuitemtext|menulist|menulist-button|menulist-text|menulist-textfield|menupopup|menuradio|menuseparator|meterbar|meterchunk|progressbar|progressbar-vertical|progresschunk|progresschunk-vertical|radio|radio-container|radio-label|radiomenuitem|range|range-thumb|resizer|resizerpanel|scale-horizontal|scalethumbend|scalethumb-horizontal|scalethumbstart|scalethumbtick|scalethumb-vertical|scale-vertical|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|separator|sheet|spinner|spinner-downbutton|spinner-textfield|spinner-upbutton|splitter|statusbar|statusbarpanel|tab|tabpanel|tabpanels|tab-scroll-arrow-back|tab-scroll-arrow-forward|textfield|textfield-multiline|toolbar|toolbarbutton|toolbarbutton-dropdown|toolbargripper|toolbox|tooltip|treeheader|treeheadercell|treeheadersortarrow|treeitem|treeline|treetwisty|treetwistyopen|treeview|-moz-mac-unified-toolbar|-moz-win-borderless-glass|-moz-win-browsertabbar-toolbox|-moz-win-communicationstext|-moz-win-communications-toolbox|-moz-win-exclude-glass|-moz-win-glass|-moz-win-mediatext|-moz-win-media-toolbox|-moz-window-button-box|-moz-window-button-box-maximized|-moz-window-button-close|-moz-window-button-maximize|-moz-window-button-minimize|-moz-window-button-restore|-moz-window-frame-bottom|-moz-window-frame-left|-moz-window-frame-right|-moz-window-titlebar|-moz-window-titlebar-maximized","-moz-binding":"<url>|none","-moz-border-bottom-colors":"<color>+|none","-moz-border-left-colors":"<color>+|none","-moz-border-right-colors":"<color>+|none","-moz-border-top-colors":"<color>+|none","-moz-context-properties":"none|[fill|fill-opacity|stroke|stroke-opacity]#","-moz-float-edge":"border-box|content-box|margin-box|padding-box","-moz-force-broken-image-icon":"0|1","-moz-image-region":"<shape>|auto","-moz-orient":"inline|block|horizontal|vertical","-moz-outline-radius":"<outline-radius>{1,4} [/ <outline-radius>{1,4}]?","-moz-outline-radius-bottomleft":"<outline-radius>","-moz-outline-radius-bottomright":"<outline-radius>","-moz-outline-radius-topleft":"<outline-radius>","-moz-outline-radius-topright":"<outline-radius>","-moz-stack-sizing":"ignore|stretch-to-fit","-moz-text-blink":"none|blink","-moz-user-focus":"ignore|normal|select-after|select-before|select-menu|select-same|select-all|none","-moz-user-input":"auto|none|enabled|disabled","-moz-user-modify":"read-only|read-write|write-only","-moz-window-dragging":"drag|no-drag","-moz-window-shadow":"default|menu|tooltip|sheet|none","-webkit-appearance":"none|button|button-bevel|caps-lock-indicator|caret|checkbox|default-button|inner-spin-button|listbox|listitem|media-controls-background|media-controls-fullscreen-background|media-current-time-display|media-enter-fullscreen-button|media-exit-fullscreen-button|media-fullscreen-button|media-mute-button|media-overlay-play-button|media-play-button|media-seek-back-button|media-seek-forward-button|media-slider|media-sliderthumb|media-time-remaining-display|media-toggle-closed-captions-button|media-volume-slider|media-volume-slider-container|media-volume-sliderthumb|menulist|menulist-button|menulist-text|menulist-textfield|meter|progress-bar|progress-bar-value|push-button|radio|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbargripper-horizontal|scrollbargripper-vertical|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|searchfield-cancel-button|searchfield-decoration|searchfield-results-button|searchfield-results-decoration|slider-horizontal|slider-vertical|sliderthumb-horizontal|sliderthumb-vertical|square-button|textarea|textfield|-apple-pay-button","-webkit-border-before":"<'border-width'>||<'border-style'>||<color>","-webkit-border-before-color":"<color>","-webkit-border-before-style":"<'border-style'>","-webkit-border-before-width":"<'border-width'>","-webkit-box-reflect":"[above|below|right|left]? <length>? <image>?","-webkit-line-clamp":"none|<integer>","-webkit-mask":"[<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||[<box>|border|padding|content|text]||[<box>|border|padding|content]]#","-webkit-mask-attachment":"<attachment>#","-webkit-mask-clip":"[<box>|border|padding|content|text]#","-webkit-mask-composite":"<composite-style>#","-webkit-mask-image":"<mask-reference>#","-webkit-mask-origin":"[<box>|border|padding|content]#","-webkit-mask-position":"<position>#","-webkit-mask-position-x":"[<length-percentage>|left|center|right]#","-webkit-mask-position-y":"[<length-percentage>|top|center|bottom]#","-webkit-mask-repeat":"<repeat-style>#","-webkit-mask-repeat-x":"repeat|no-repeat|space|round","-webkit-mask-repeat-y":"repeat|no-repeat|space|round","-webkit-mask-size":"<bg-size>#","-webkit-overflow-scrolling":"auto|touch","-webkit-tap-highlight-color":"<color>","-webkit-text-fill-color":"<color>","-webkit-text-stroke":"<length>||<color>","-webkit-text-stroke-color":"<color>","-webkit-text-stroke-width":"<length>","-webkit-touch-callout":"default|none","-webkit-user-modify":"read-only|read-write|read-write-plaintext-only","accent-color":"auto|<color>","align-content":"normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>","align-items":"normal|stretch|<baseline-position>|[<overflow-position>? <self-position>]","align-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? <self-position>","align-tracks":"[normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>]#",all:"initial|inherit|unset|revert|revert-layer",animation:"<single-animation>#","animation-composition":"<single-animation-composition>#","animation-delay":"<time>#","animation-direction":"<single-animation-direction>#","animation-duration":"<time>#","animation-fill-mode":"<single-animation-fill-mode>#","animation-iteration-count":"<single-animation-iteration-count>#","animation-name":"[none|<keyframes-name>]#","animation-play-state":"<single-animation-play-state>#","animation-timing-function":"<easing-function>#","animation-timeline":"<single-animation-timeline>#",appearance:"none|auto|textfield|menulist-button|<compat-auto>","aspect-ratio":"auto|<ratio>",azimuth:"<angle>|[[left-side|far-left|left|center-left|center|center-right|right|far-right|right-side]||behind]|leftwards|rightwards","backdrop-filter":"none|<filter-function-list>","backface-visibility":"visible|hidden",background:"[<bg-layer> ,]* <final-bg-layer>","background-attachment":"<attachment>#","background-blend-mode":"<blend-mode>#","background-clip":"<bg-clip>#","background-color":"<color>","background-image":"<bg-image>#","background-origin":"<box>#","background-position":"<bg-position>#","background-position-x":"[center|[[left|right|x-start|x-end]? <length-percentage>?]!]#","background-position-y":"[center|[[top|bottom|y-start|y-end]? <length-percentage>?]!]#","background-repeat":"<repeat-style>#","background-size":"<bg-size>#","block-overflow":"clip|ellipsis|<string>","block-size":"<'width'>",border:"<line-width>||<line-style>||<color>","border-block":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-color":"<'border-top-color'>{1,2}","border-block-style":"<'border-top-style'>","border-block-width":"<'border-top-width'>","border-block-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-end-color":"<'border-top-color'>","border-block-end-style":"<'border-top-style'>","border-block-end-width":"<'border-top-width'>","border-block-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-start-color":"<'border-top-color'>","border-block-start-style":"<'border-top-style'>","border-block-start-width":"<'border-top-width'>","border-bottom":"<line-width>||<line-style>||<color>","border-bottom-color":"<'border-top-color'>","border-bottom-left-radius":"<length-percentage>{1,2}","border-bottom-right-radius":"<length-percentage>{1,2}","border-bottom-style":"<line-style>","border-bottom-width":"<line-width>","border-collapse":"collapse|separate","border-color":"<color>{1,4}","border-end-end-radius":"<length-percentage>{1,2}","border-end-start-radius":"<length-percentage>{1,2}","border-image":"<'border-image-source'>||<'border-image-slice'> [/ <'border-image-width'>|/ <'border-image-width'>? / <'border-image-outset'>]?||<'border-image-repeat'>","border-image-outset":"[<length>|<number>]{1,4}","border-image-repeat":"[stretch|repeat|round|space]{1,2}","border-image-slice":"<number-percentage>{1,4}&&fill?","border-image-source":"none|<image>","border-image-width":"[<length-percentage>|<number>|auto]{1,4}","border-inline":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-color":"<'border-top-color'>{1,2}","border-inline-style":"<'border-top-style'>","border-inline-width":"<'border-top-width'>","border-inline-end-color":"<'border-top-color'>","border-inline-end-style":"<'border-top-style'>","border-inline-end-width":"<'border-top-width'>","border-inline-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-start-color":"<'border-top-color'>","border-inline-start-style":"<'border-top-style'>","border-inline-start-width":"<'border-top-width'>","border-left":"<line-width>||<line-style>||<color>","border-left-color":"<color>","border-left-style":"<line-style>","border-left-width":"<line-width>","border-radius":"<length-percentage>{1,4} [/ <length-percentage>{1,4}]?","border-right":"<line-width>||<line-style>||<color>","border-right-color":"<color>","border-right-style":"<line-style>","border-right-width":"<line-width>","border-spacing":"<length> <length>?","border-start-end-radius":"<length-percentage>{1,2}","border-start-start-radius":"<length-percentage>{1,2}","border-style":"<line-style>{1,4}","border-top":"<line-width>||<line-style>||<color>","border-top-color":"<color>","border-top-left-radius":"<length-percentage>{1,2}","border-top-right-radius":"<length-percentage>{1,2}","border-top-style":"<line-style>","border-top-width":"<line-width>","border-width":"<line-width>{1,4}",bottom:"<length>|<percentage>|auto","box-align":"start|center|end|baseline|stretch","box-decoration-break":"slice|clone","box-direction":"normal|reverse|inherit","box-flex":"<number>","box-flex-group":"<integer>","box-lines":"single|multiple","box-ordinal-group":"<integer>","box-orient":"horizontal|vertical|inline-axis|block-axis|inherit","box-pack":"start|center|end|justify","box-shadow":"none|<shadow>#","box-sizing":"content-box|border-box","break-after":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-before":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-inside":"auto|avoid|avoid-page|avoid-column|avoid-region","caption-side":"top|bottom|block-start|block-end|inline-start|inline-end",caret:"<'caret-color'>||<'caret-shape'>","caret-color":"auto|<color>","caret-shape":"auto|bar|block|underscore",clear:"none|left|right|both|inline-start|inline-end",clip:"<shape>|auto","clip-path":"<clip-source>|[<basic-shape>||<geometry-box>]|none",color:"<color>","print-color-adjust":"economy|exact","color-scheme":"normal|[light|dark|<custom-ident>]+&&only?","column-count":"<integer>|auto","column-fill":"auto|balance|balance-all","column-gap":"normal|<length-percentage>","column-rule":"<'column-rule-width'>||<'column-rule-style'>||<'column-rule-color'>","column-rule-color":"<color>","column-rule-style":"<'border-style'>","column-rule-width":"<'border-width'>","column-span":"none|all","column-width":"<length>|auto",columns:"<'column-width'>||<'column-count'>",contain:"none|strict|content|[[size||inline-size]||layout||style||paint]","contain-intrinsic-size":"[none|<length>|auto <length>]{1,2}","contain-intrinsic-block-size":"none|<length>|auto <length>","contain-intrinsic-height":"none|<length>|auto <length>","contain-intrinsic-inline-size":"none|<length>|auto <length>","contain-intrinsic-width":"none|<length>|auto <length>",content:"normal|none|[<content-replacement>|<content-list>] [/ [<string>|<counter>]+]?","content-visibility":"visible|auto|hidden","counter-increment":"[<counter-name> <integer>?]+|none","counter-reset":"[<counter-name> <integer>?|<reversed-counter-name> <integer>?]+|none","counter-set":"[<counter-name> <integer>?]+|none",cursor:"[[<url> [<x> <y>]? ,]* [auto|default|none|context-menu|help|pointer|progress|wait|cell|crosshair|text|vertical-text|alias|copy|move|no-drop|not-allowed|e-resize|n-resize|ne-resize|nw-resize|s-resize|se-resize|sw-resize|w-resize|ew-resize|ns-resize|nesw-resize|nwse-resize|col-resize|row-resize|all-scroll|zoom-in|zoom-out|grab|grabbing|hand|-webkit-grab|-webkit-grabbing|-webkit-zoom-in|-webkit-zoom-out|-moz-grab|-moz-grabbing|-moz-zoom-in|-moz-zoom-out]]",direction:"ltr|rtl",display:"[<display-outside>||<display-inside>]|<display-listitem>|<display-internal>|<display-box>|<display-legacy>|<-non-standard-display>","empty-cells":"show|hide",filter:"none|<filter-function-list>|<-ms-filter-function-list>",flex:"none|[<'flex-grow'> <'flex-shrink'>?||<'flex-basis'>]","flex-basis":"content|<'width'>","flex-direction":"row|row-reverse|column|column-reverse","flex-flow":"<'flex-direction'>||<'flex-wrap'>","flex-grow":"<number>","flex-shrink":"<number>","flex-wrap":"nowrap|wrap|wrap-reverse",float:"left|right|none|inline-start|inline-end",font:"[[<'font-style'>||<font-variant-css21>||<'font-weight'>||<'font-stretch'>]? <'font-size'> [/ <'line-height'>]? <'font-family'>]|caption|icon|menu|message-box|small-caption|status-bar","font-family":"[<family-name>|<generic-family>]#","font-feature-settings":"normal|<feature-tag-value>#","font-kerning":"auto|normal|none","font-language-override":"normal|<string>","font-optical-sizing":"auto|none","font-variation-settings":"normal|[<string> <number>]#","font-size":"<absolute-size>|<relative-size>|<length-percentage>","font-size-adjust":"none|[ex-height|cap-height|ch-width|ic-width|ic-height]? [from-font|<number>]","font-smooth":"auto|never|always|<absolute-size>|<length>","font-stretch":"<font-stretch-absolute>","font-style":"normal|italic|oblique <angle>?","font-synthesis":"none|[weight||style||small-caps]","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-alternates":"normal|[stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )]","font-variant-caps":"normal|small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps","font-variant-east-asian":"normal|[<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-ligatures":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>]","font-variant-numeric":"normal|[<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero]","font-variant-position":"normal|sub|super","font-weight":"<font-weight-absolute>|bolder|lighter","forced-color-adjust":"auto|none",gap:"<'row-gap'> <'column-gap'>?",grid:"<'grid-template'>|<'grid-template-rows'> / [auto-flow&&dense?] <'grid-auto-columns'>?|[auto-flow&&dense?] <'grid-auto-rows'>? / <'grid-template-columns'>","grid-area":"<grid-line> [/ <grid-line>]{0,3}","grid-auto-columns":"<track-size>+","grid-auto-flow":"[row|column]||dense","grid-auto-rows":"<track-size>+","grid-column":"<grid-line> [/ <grid-line>]?","grid-column-end":"<grid-line>","grid-column-gap":"<length-percentage>","grid-column-start":"<grid-line>","grid-gap":"<'grid-row-gap'> <'grid-column-gap'>?","grid-row":"<grid-line> [/ <grid-line>]?","grid-row-end":"<grid-line>","grid-row-gap":"<length-percentage>","grid-row-start":"<grid-line>","grid-template":"none|[<'grid-template-rows'> / <'grid-template-columns'>]|[<line-names>? <string> <track-size>? <line-names>?]+ [/ <explicit-track-list>]?","grid-template-areas":"none|<string>+","grid-template-columns":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","grid-template-rows":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","hanging-punctuation":"none|[first||[force-end|allow-end]||last]",height:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","hyphenate-character":"auto|<string>",hyphens:"none|manual|auto","image-orientation":"from-image|<angle>|[<angle>? flip]","image-rendering":"auto|crisp-edges|pixelated|optimizeSpeed|optimizeQuality|<-non-standard-image-rendering>","image-resolution":"[from-image||<resolution>]&&snap?","ime-mode":"auto|normal|active|inactive|disabled","initial-letter":"normal|[<number> <integer>?]","initial-letter-align":"[auto|alphabetic|hanging|ideographic]","inline-size":"<'width'>","input-security":"auto|none",inset:"<'top'>{1,4}","inset-block":"<'top'>{1,2}","inset-block-end":"<'top'>","inset-block-start":"<'top'>","inset-inline":"<'top'>{1,2}","inset-inline-end":"<'top'>","inset-inline-start":"<'top'>",isolation:"auto|isolate","justify-content":"normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]","justify-items":"normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]|legacy|legacy&&[left|right|center]","justify-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]","justify-tracks":"[normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]]#",left:"<length>|<percentage>|auto","letter-spacing":"normal|<length-percentage>","line-break":"auto|loose|normal|strict|anywhere","line-clamp":"none|<integer>","line-height":"normal|<number>|<length>|<percentage>","line-height-step":"<length>","list-style":"<'list-style-type'>||<'list-style-position'>||<'list-style-image'>","list-style-image":"<image>|none","list-style-position":"inside|outside","list-style-type":"<counter-style>|<string>|none",margin:"[<length>|<percentage>|auto]{1,4}","margin-block":"<'margin-left'>{1,2}","margin-block-end":"<'margin-left'>","margin-block-start":"<'margin-left'>","margin-bottom":"<length>|<percentage>|auto","margin-inline":"<'margin-left'>{1,2}","margin-inline-end":"<'margin-left'>","margin-inline-start":"<'margin-left'>","margin-left":"<length>|<percentage>|auto","margin-right":"<length>|<percentage>|auto","margin-top":"<length>|<percentage>|auto","margin-trim":"none|in-flow|all",mask:"<mask-layer>#","mask-border":"<'mask-border-source'>||<'mask-border-slice'> [/ <'mask-border-width'>? [/ <'mask-border-outset'>]?]?||<'mask-border-repeat'>||<'mask-border-mode'>","mask-border-mode":"luminance|alpha","mask-border-outset":"[<length>|<number>]{1,4}","mask-border-repeat":"[stretch|repeat|round|space]{1,2}","mask-border-slice":"<number-percentage>{1,4} fill?","mask-border-source":"none|<image>","mask-border-width":"[<length-percentage>|<number>|auto]{1,4}","mask-clip":"[<geometry-box>|no-clip]#","mask-composite":"<compositing-operator>#","mask-image":"<mask-reference>#","mask-mode":"<masking-mode>#","mask-origin":"<geometry-box>#","mask-position":"<position>#","mask-repeat":"<repeat-style>#","mask-size":"<bg-size>#","mask-type":"luminance|alpha","masonry-auto-flow":"[pack|next]||[definite-first|ordered]","math-depth":"auto-add|add( <integer> )|<integer>","math-shift":"normal|compact","math-style":"normal|compact","max-block-size":"<'max-width'>","max-height":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","max-inline-size":"<'max-width'>","max-lines":"none|<integer>","max-width":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|<-non-standard-width>","min-block-size":"<'min-width'>","min-height":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","min-inline-size":"<'min-width'>","min-width":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|<-non-standard-width>","mix-blend-mode":"<blend-mode>|plus-lighter","object-fit":"fill|contain|cover|none|scale-down","object-position":"<position>",offset:"[<'offset-position'>? [<'offset-path'> [<'offset-distance'>||<'offset-rotate'>]?]?]! [/ <'offset-anchor'>]?","offset-anchor":"auto|<position>","offset-distance":"<length-percentage>","offset-path":"none|ray( [<angle>&&<size>&&contain?] )|<path()>|<url>|[<basic-shape>||<geometry-box>]","offset-position":"auto|<position>","offset-rotate":"[auto|reverse]||<angle>",opacity:"<alpha-value>",order:"<integer>",orphans:"<integer>",outline:"[<'outline-color'>||<'outline-style'>||<'outline-width'>]","outline-color":"<color>|invert","outline-offset":"<length>","outline-style":"auto|<'border-style'>","outline-width":"<line-width>",overflow:"[visible|hidden|clip|scroll|auto]{1,2}|<-non-standard-overflow>","overflow-anchor":"auto|none","overflow-block":"visible|hidden|clip|scroll|auto","overflow-clip-box":"padding-box|content-box","overflow-clip-margin":"<visual-box>||<length [0,\u221E]>","overflow-inline":"visible|hidden|clip|scroll|auto","overflow-wrap":"normal|break-word|anywhere","overflow-x":"visible|hidden|clip|scroll|auto","overflow-y":"visible|hidden|clip|scroll|auto","overscroll-behavior":"[contain|none|auto]{1,2}","overscroll-behavior-block":"contain|none|auto","overscroll-behavior-inline":"contain|none|auto","overscroll-behavior-x":"contain|none|auto","overscroll-behavior-y":"contain|none|auto",padding:"[<length>|<percentage>]{1,4}","padding-block":"<'padding-left'>{1,2}","padding-block-end":"<'padding-left'>","padding-block-start":"<'padding-left'>","padding-bottom":"<length>|<percentage>","padding-inline":"<'padding-left'>{1,2}","padding-inline-end":"<'padding-left'>","padding-inline-start":"<'padding-left'>","padding-left":"<length>|<percentage>","padding-right":"<length>|<percentage>","padding-top":"<length>|<percentage>","page-break-after":"auto|always|avoid|left|right|recto|verso","page-break-before":"auto|always|avoid|left|right|recto|verso","page-break-inside":"auto|avoid","paint-order":"normal|[fill||stroke||markers]",perspective:"none|<length>","perspective-origin":"<position>","place-content":"<'align-content'> <'justify-content'>?","place-items":"<'align-items'> <'justify-items'>?","place-self":"<'align-self'> <'justify-self'>?","pointer-events":"auto|none|visiblePainted|visibleFill|visibleStroke|visible|painted|fill|stroke|all|inherit",position:"static|relative|absolute|sticky|fixed|-webkit-sticky",quotes:"none|auto|[<string> <string>]+",resize:"none|both|horizontal|vertical|block|inline",right:"<length>|<percentage>|auto",rotate:"none|<angle>|[x|y|z|<number>{3}]&&<angle>","row-gap":"normal|<length-percentage>","ruby-align":"start|center|space-between|space-around","ruby-merge":"separate|collapse|auto","ruby-position":"[alternate||[over|under]]|inter-character",scale:"none|<number>{1,3}","scrollbar-color":"auto|<color>{2}","scrollbar-gutter":"auto|stable&&both-edges?","scrollbar-width":"auto|thin|none","scroll-behavior":"auto|smooth","scroll-margin":"<length>{1,4}","scroll-margin-block":"<length>{1,2}","scroll-margin-block-start":"<length>","scroll-margin-block-end":"<length>","scroll-margin-bottom":"<length>","scroll-margin-inline":"<length>{1,2}","scroll-margin-inline-start":"<length>","scroll-margin-inline-end":"<length>","scroll-margin-left":"<length>","scroll-margin-right":"<length>","scroll-margin-top":"<length>","scroll-padding":"[auto|<length-percentage>]{1,4}","scroll-padding-block":"[auto|<length-percentage>]{1,2}","scroll-padding-block-start":"auto|<length-percentage>","scroll-padding-block-end":"auto|<length-percentage>","scroll-padding-bottom":"auto|<length-percentage>","scroll-padding-inline":"[auto|<length-percentage>]{1,2}","scroll-padding-inline-start":"auto|<length-percentage>","scroll-padding-inline-end":"auto|<length-percentage>","scroll-padding-left":"auto|<length-percentage>","scroll-padding-right":"auto|<length-percentage>","scroll-padding-top":"auto|<length-percentage>","scroll-snap-align":"[none|start|end|center]{1,2}","scroll-snap-coordinate":"none|<position>#","scroll-snap-destination":"<position>","scroll-snap-points-x":"none|repeat( <length-percentage> )","scroll-snap-points-y":"none|repeat( <length-percentage> )","scroll-snap-stop":"normal|always","scroll-snap-type":"none|[x|y|block|inline|both] [mandatory|proximity]?","scroll-snap-type-x":"none|mandatory|proximity","scroll-snap-type-y":"none|mandatory|proximity","scroll-timeline":"<scroll-timeline-name>||<scroll-timeline-axis>","scroll-timeline-axis":"block|inline|vertical|horizontal","scroll-timeline-name":"none|<custom-ident>","shape-image-threshold":"<alpha-value>","shape-margin":"<length-percentage>","shape-outside":"none|[<shape-box>||<basic-shape>]|<image>","tab-size":"<integer>|<length>","table-layout":"auto|fixed","text-align":"start|end|left|right|center|justify|match-parent","text-align-last":"auto|start|end|left|right|center|justify","text-combine-upright":"none|all|[digits <integer>?]","text-decoration":"<'text-decoration-line'>||<'text-decoration-style'>||<'text-decoration-color'>||<'text-decoration-thickness'>","text-decoration-color":"<color>","text-decoration-line":"none|[underline||overline||line-through||blink]|spelling-error|grammar-error","text-decoration-skip":"none|[objects||[spaces|[leading-spaces||trailing-spaces]]||edges||box-decoration]","text-decoration-skip-ink":"auto|all|none","text-decoration-style":"solid|double|dotted|dashed|wavy","text-decoration-thickness":"auto|from-font|<length>|<percentage>","text-emphasis":"<'text-emphasis-style'>||<'text-emphasis-color'>","text-emphasis-color":"<color>","text-emphasis-position":"[over|under]&&[right|left]","text-emphasis-style":"none|[[filled|open]||[dot|circle|double-circle|triangle|sesame]]|<string>","text-indent":"<length-percentage>&&hanging?&&each-line?","text-justify":"auto|inter-character|inter-word|none","text-orientation":"mixed|upright|sideways","text-overflow":"[clip|ellipsis|<string>]{1,2}","text-rendering":"auto|optimizeSpeed|optimizeLegibility|geometricPrecision","text-shadow":"none|<shadow-t>#","text-size-adjust":"none|auto|<percentage>","text-transform":"none|capitalize|uppercase|lowercase|full-width|full-size-kana","text-underline-offset":"auto|<length>|<percentage>","text-underline-position":"auto|from-font|[under||[left|right]]",top:"<length>|<percentage>|auto","touch-action":"auto|none|[[pan-x|pan-left|pan-right]||[pan-y|pan-up|pan-down]||pinch-zoom]|manipulation",transform:"none|<transform-list>","transform-box":"content-box|border-box|fill-box|stroke-box|view-box","transform-origin":"[<length-percentage>|left|center|right|top|bottom]|[[<length-percentage>|left|center|right]&&[<length-percentage>|top|center|bottom]] <length>?","transform-style":"flat|preserve-3d",transition:"<single-transition>#","transition-delay":"<time>#","transition-duration":"<time>#","transition-property":"none|<single-transition-property>#","transition-timing-function":"<easing-function>#",translate:"none|<length-percentage> [<length-percentage> <length>?]?","unicode-bidi":"normal|embed|isolate|bidi-override|isolate-override|plaintext|-moz-isolate|-moz-isolate-override|-moz-plaintext|-webkit-isolate|-webkit-isolate-override|-webkit-plaintext","user-select":"auto|text|none|contain|all","vertical-align":"baseline|sub|super|text-top|text-bottom|middle|top|bottom|<percentage>|<length>",visibility:"visible|hidden|collapse","white-space":"normal|pre|nowrap|pre-wrap|pre-line|break-spaces",widows:"<integer>",width:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|fill|stretch|intrinsic|-moz-max-content|-webkit-max-content|-moz-fit-content|-webkit-fit-content","will-change":"auto|<animateable-feature>#","word-break":"normal|break-all|keep-all|break-word","word-spacing":"normal|<length>","word-wrap":"normal|break-word","writing-mode":"horizontal-tb|vertical-rl|vertical-lr|sideways-rl|sideways-lr|<svg-writing-mode>","z-index":"auto|<integer>",zoom:"normal|reset|<number>|<percentage>","-moz-background-clip":"padding|border","-moz-border-radius-bottomleft":"<'border-bottom-left-radius'>","-moz-border-radius-bottomright":"<'border-bottom-right-radius'>","-moz-border-radius-topleft":"<'border-top-left-radius'>","-moz-border-radius-topright":"<'border-bottom-right-radius'>","-moz-control-character-visibility":"visible|hidden","-moz-osx-font-smoothing":"auto|grayscale","-moz-user-select":"none|text|all|-moz-none","-ms-flex-align":"start|end|center|baseline|stretch","-ms-flex-item-align":"auto|start|end|center|baseline|stretch","-ms-flex-line-pack":"start|end|center|justify|distribute|stretch","-ms-flex-negative":"<'flex-shrink'>","-ms-flex-pack":"start|end|center|justify|distribute","-ms-flex-order":"<integer>","-ms-flex-positive":"<'flex-grow'>","-ms-flex-preferred-size":"<'flex-basis'>","-ms-interpolation-mode":"nearest-neighbor|bicubic","-ms-grid-column-align":"start|end|center|stretch","-ms-grid-row-align":"start|end|center|stretch","-ms-hyphenate-limit-last":"none|always|column|page|spread","-webkit-background-clip":"[<box>|border|padding|content|text]#","-webkit-column-break-after":"always|auto|avoid","-webkit-column-break-before":"always|auto|avoid","-webkit-column-break-inside":"always|auto|avoid","-webkit-font-smoothing":"auto|none|antialiased|subpixel-antialiased","-webkit-mask-box-image":"[<url>|<gradient>|none] [<length-percentage>{4} <-webkit-mask-box-repeat>{2}]?","-webkit-print-color-adjust":"economy|exact","-webkit-text-security":"none|circle|disc|square","-webkit-user-drag":"none|element|auto","-webkit-user-select":"auto|none|text|all","alignment-baseline":"auto|baseline|before-edge|text-before-edge|middle|central|after-edge|text-after-edge|ideographic|alphabetic|hanging|mathematical","baseline-shift":"baseline|sub|super|<svg-length>",behavior:"<url>+","clip-rule":"nonzero|evenodd",container:"<'container-name'> [/ <'container-type'>]?","container-name":"none|<custom-ident>+","container-type":"normal||[size|inline-size]",cue:"<'cue-before'> <'cue-after'>?","cue-after":"<url> <decibel>?|none","cue-before":"<url> <decibel>?|none","dominant-baseline":"auto|use-script|no-change|reset-size|ideographic|alphabetic|hanging|mathematical|central|middle|text-after-edge|text-before-edge",fill:"<paint>","fill-opacity":"<number-zero-one>","fill-rule":"nonzero|evenodd","glyph-orientation-horizontal":"<angle>","glyph-orientation-vertical":"<angle>",kerning:"auto|<svg-length>",marker:"none|<url>","marker-end":"none|<url>","marker-mid":"none|<url>","marker-start":"none|<url>",pause:"<'pause-before'> <'pause-after'>?","pause-after":"<time>|none|x-weak|weak|medium|strong|x-strong","pause-before":"<time>|none|x-weak|weak|medium|strong|x-strong",rest:"<'rest-before'> <'rest-after'>?","rest-after":"<time>|none|x-weak|weak|medium|strong|x-strong","rest-before":"<time>|none|x-weak|weak|medium|strong|x-strong","shape-rendering":"auto|optimizeSpeed|crispEdges|geometricPrecision",src:"[<url> [format( <string># )]?|local( <family-name> )]#",speak:"auto|none|normal","speak-as":"normal|spell-out||digits||[literal-punctuation|no-punctuation]",stroke:"<paint>","stroke-dasharray":"none|[<svg-length>+]#","stroke-dashoffset":"<svg-length>","stroke-linecap":"butt|round|square","stroke-linejoin":"miter|round|bevel","stroke-miterlimit":"<number-one-or-greater>","stroke-opacity":"<number-zero-one>","stroke-width":"<svg-length>","text-anchor":"start|middle|end","unicode-range":"<urange>#","voice-balance":"<number>|left|center|right|leftwards|rightwards","voice-duration":"auto|<time>","voice-family":"[[<family-name>|<generic-voice>] ,]* [<family-name>|<generic-voice>]|preserve","voice-pitch":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-range":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-rate":"[normal|x-slow|slow|medium|fast|x-fast]||<percentage>","voice-stress":"normal|strong|moderate|none|reduced","voice-volume":"silent|[[x-soft|soft|medium|loud|x-loud]||<decibel>]"},atrules:{charset:{prelude:"<string>",descriptors:null},"counter-style":{prelude:"<counter-style-name>",descriptors:{"additive-symbols":"[<integer>&&<symbol>]#",fallback:"<counter-style-name>",negative:"<symbol> <symbol>?",pad:"<integer>&&<symbol>",prefix:"<symbol>",range:"[[<integer>|infinite]{2}]#|auto","speak-as":"auto|bullets|numbers|words|spell-out|<counter-style-name>",suffix:"<symbol>",symbols:"<symbol>+",system:"cyclic|numeric|alphabetic|symbolic|additive|[fixed <integer>?]|[extends <counter-style-name>]"}},document:{prelude:"[<url>|url-prefix( <string> )|domain( <string> )|media-document( <string> )|regexp( <string> )]#",descriptors:null},"font-face":{prelude:null,descriptors:{"ascent-override":"normal|<percentage>","descent-override":"normal|<percentage>","font-display":"[auto|block|swap|fallback|optional]","font-family":"<family-name>","font-feature-settings":"normal|<feature-tag-value>#","font-variation-settings":"normal|[<string> <number>]#","font-stretch":"<font-stretch-absolute>{1,2}","font-style":"normal|italic|oblique <angle>{0,2}","font-weight":"<font-weight-absolute>{1,2}","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","line-gap-override":"normal|<percentage>","size-adjust":"<percentage>",src:"[<url> [format( <string># )]?|local( <family-name> )]#","unicode-range":"<urange>#"}},"font-feature-values":{prelude:"<family-name>#",descriptors:null},import:{prelude:"[<string>|<url>] [layer|layer( <layer-name> )]? [supports( [<supports-condition>|<declaration>] )]? <media-query-list>?",descriptors:null},keyframes:{prelude:"<keyframes-name>",descriptors:null},layer:{prelude:"[<layer-name>#|<layer-name>?]",descriptors:null},media:{prelude:"<media-query-list>",descriptors:null},namespace:{prelude:"<namespace-prefix>? [<string>|<url>]",descriptors:null},page:{prelude:"<page-selector-list>",descriptors:{bleed:"auto|<length>",marks:"none|[crop||cross]",size:"<length>{1,2}|auto|[<page-size>||[portrait|landscape]]"}},property:{prelude:"<custom-property-name>",descriptors:{syntax:"<string>",inherits:"true|false","initial-value":"<string>"}},"scroll-timeline":{prelude:"<timeline-name>",descriptors:null},supports:{prelude:"<supports-condition>",descriptors:null},viewport:{prelude:null,descriptors:{height:"<viewport-length>{1,2}","max-height":"<viewport-length>","max-width":"<viewport-length>","max-zoom":"auto|<number>|<percentage>","min-height":"<viewport-length>","min-width":"<viewport-length>","min-zoom":"auto|<number>|<percentage>",orientation:"auto|portrait|landscape","user-zoom":"zoom|fixed","viewport-fit":"auto|contain|cover",width:"<viewport-length>{1,2}",zoom:"auto|<number>|<percentage>"}},container:{prelude:"[<container-name>]? <container-condition>",descriptors:null},nest:{prelude:"<complex-selector-list>",descriptors:null}}},Sl={};I(Sl,{AnPlusB:()=>hf,Atrule:()=>yf,AtrulePrelude:()=>Df,AttributeSelector:()=>vf,Block:()=>Cf,Brackets:()=>_f,CDC:()=>Tf,CDO:()=>Of,ClassSelector:()=>If,Combinator:()=>Rf,Comment:()=>Lf,Declaration:()=>Mf,DeclarationList:()=>zf,Dimension:()=>Vf,Function:()=>qf,Hash:()=>Jf,IdSelector:()=>Xf,Identifier:()=>Kf,MediaFeature:()=>em,MediaQuery:()=>nm,MediaQueryList:()=>om,NestingSelector:()=>sm,Nth:()=>lm,Number:()=>cm,Operator:()=>dm,Parentheses:()=>mm,Percentage:()=>gm,PseudoClassSelector:()=>bm,PseudoElementSelector:()=>wm,Ratio:()=>km,Raw:()=>Cm,Rule:()=>Fm,Selector:()=>Sm,SelectorList:()=>Am,String:()=>Pm,StyleSheet:()=>Lm,TypeSelector:()=>Mm,UnicodeRange:()=>Wm,Url:()=>Gm,Value:()=>Km,WhiteSpace:()=>Xm});hf={};I(hf,{generate:()=>q0,name:()=>V0,parse:()=>gf,structure:()=>G0});nt=43,Ee=45,oi=110,Qt=!0,U0=!1;V0="AnPlusB",G0={a:[String,null],b:[String,null]};yf={};I(yf,{generate:()=>Y0,name:()=>J0,parse:()=>bf,structure:()=>K0,walkContext:()=>Z0});J0="Atrule",Z0="atrule",K0={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};Df={};I(Df,{generate:()=>tk,name:()=>X0,parse:()=>wf,structure:()=>ek,walkContext:()=>Q0});X0="AtrulePrelude",Q0="atrulePrelude",ek={children:[[]]};vf={};I(vf,{generate:()=>uk,name:()=>ak,parse:()=>xf,structure:()=>lk});nk=36,kf=42,si=61,rk=94,il=124,ok=126;ak="AttributeSelector",lk={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};Cf={};I(Cf,{generate:()=>hk,name:()=>dk,parse:()=>Ff,structure:()=>mk,walkContext:()=>fk});ck=38;dk="Block",fk="block",mk={children:[["Atrule","Rule","Declaration"]]};_f={};I(_f,{generate:()=>bk,name:()=>gk,parse:()=>Sf,structure:()=>yk});gk="Brackets",yk={children:[[]]};Tf={};I(Tf,{generate:()=>vk,name:()=>Dk,parse:()=>Af,structure:()=>wk});Dk="CDC",wk=[];Of={};I(Of,{generate:()=>Ck,name:()=>kk,parse:()=>Pf,structure:()=>xk});kk="CDO",xk=[];If={};I(If,{generate:()=>Sk,name:()=>Fk,parse:()=>Bf,structure:()=>_k});Ek=46,Fk="ClassSelector",_k={name:String};Rf={};I(Rf,{generate:()=>Bk,name:()=>Pk,parse:()=>jf,structure:()=>Ik});Tk=43,Sd=47,Ak=62,Ok=126,Pk="Combinator",Ik={name:String};Lf={};I(Lf,{generate:()=>Mk,name:()=>Lk,parse:()=>Nf,structure:()=>Nk});Rk=42,jk=47,Lk="Comment",Nk={value:String};Mf={};I(Mf,{generate:()=>Yk,name:()=>Jk,parse:()=>Wf,structure:()=>Kk,walkContext:()=>Zk});$f=33,$k=35,Wk=36,zk=38,Uk=42,Vk=43,Td=47;Jk="Declaration",Zk="declaration",Kk={important:[Boolean,String],property:String,value:["Value","Raw"]};zf={};I(zf,{generate:()=>rx,name:()=>tx,parse:()=>Uf,structure:()=>nx});ex=38;tx="DeclarationList",nx={children:[["Declaration","Atrule","Rule"]]};Vf={};I(Vf,{generate:()=>sx,name:()=>ox,parse:()=>Gf,structure:()=>ix});ox="Dimension",ix={value:String,unit:String};qf={};I(qf,{generate:()=>cx,name:()=>ax,parse:()=>Hf,structure:()=>ux,walkContext:()=>lx});ax="Function",lx="function",ux={name:String,children:[[]]};Jf={};I(Jf,{generate:()=>mx,name:()=>dx,parse:()=>Zf,structure:()=>fx,xxx:()=>px});px="XXX",dx="Hash",fx={value:String};Kf={};I(Kf,{generate:()=>yx,name:()=>hx,parse:()=>Yf,structure:()=>gx});hx="Identifier",gx={name:String};Xf={};I(Xf,{generate:()=>wx,name:()=>bx,parse:()=>Qf,structure:()=>Dx});bx="IdSelector",Dx={name:String};em={};I(em,{generate:()=>xx,name:()=>vx,parse:()=>tm,structure:()=>kx});vx="MediaFeature",kx={name:String,value:["Identifier","Number","Dimension","Ratio",null]};nm={};I(nm,{generate:()=>Fx,name:()=>Cx,parse:()=>rm,structure:()=>Ex});Cx="MediaQuery",Ex={children:[["Identifier","MediaFeature","WhiteSpace"]]};om={};I(om,{generate:()=>Tx,name:()=>_x,parse:()=>im,structure:()=>Sx});_x="MediaQueryList",Sx={children:[["MediaQuery"]]};sm={};I(sm,{generate:()=>Ix,name:()=>Ox,parse:()=>am,structure:()=>Px});Ax=38,Ox="NestingSelector",Px={};lm={};I(lm,{generate:()=>jx,name:()=>Bx,parse:()=>um,structure:()=>Rx});Bx="Nth",Rx={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};cm={};I(cm,{generate:()=>Mx,name:()=>Lx,parse:()=>pm,structure:()=>Nx});Lx="Number",Nx={value:String};dm={};I(dm,{generate:()=>zx,name:()=>$x,parse:()=>fm,structure:()=>Wx});$x="Operator",Wx={value:String};mm={};I(mm,{generate:()=>Gx,name:()=>Ux,parse:()=>hm,structure:()=>Vx});Ux="Parentheses",Vx={children:[[]]};gm={};I(gm,{generate:()=>Jx,name:()=>qx,parse:()=>ym,structure:()=>Hx});qx="Percentage",Hx={value:String};bm={};I(bm,{generate:()=>Xx,name:()=>Zx,parse:()=>Dm,structure:()=>Yx,walkContext:()=>Kx});Zx="PseudoClassSelector",Kx="function",Yx={name:String,children:[["Raw"],null]};wm={};I(wm,{generate:()=>nC,name:()=>Qx,parse:()=>vm,structure:()=>tC,walkContext:()=>eC});Qx="PseudoElementSelector",eC="function",tC={name:String,children:[["Raw"],null]};km={};I(km,{generate:()=>aC,name:()=>iC,parse:()=>xm,structure:()=>sC});rC=47,oC=46;iC="Ratio",sC={left:String,right:String};Cm={};I(Cm,{generate:()=>pC,name:()=>uC,parse:()=>Em,structure:()=>cC});uC="Raw",cC={value:String};Fm={};I(Fm,{generate:()=>gC,name:()=>fC,parse:()=>_m,structure:()=>hC,walkContext:()=>mC});fC="Rule",mC="rule",hC={prelude:["SelectorList","Raw"],block:["Block"]};Sm={};I(Sm,{generate:()=>DC,name:()=>yC,parse:()=>Tm,structure:()=>bC});yC="Selector",bC={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};Am={};I(Am,{generate:()=>xC,name:()=>wC,parse:()=>Om,structure:()=>kC,walkContext:()=>vC});wC="SelectorList",vC="selector",kC={children:[["Selector","Raw"]]};Pm={};I(Pm,{generate:()=>_C,name:()=>EC,parse:()=>jm,structure:()=>FC});CC={};I(CC,{decode:()=>Tl,encode:()=>Rm});sl=92,Im=34,Bm=39;EC="String",FC={value:String};Lm={};I(Lm,{generate:()=>PC,name:()=>TC,parse:()=>Nm,structure:()=>OC,walkContext:()=>AC});SC=33;TC="StyleSheet",AC="stylesheet",OC={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};Mm={};I(Mm,{generate:()=>jC,name:()=>BC,parse:()=>$m,structure:()=>RC});IC=42,Id=124;BC="TypeSelector",RC={name:String};Wm={};I(Wm,{generate:()=>WC,name:()=>MC,parse:()=>Vm,structure:()=>$C});zm=43,Um=45,al=63;MC="UnicodeRange",$C={value:String};Gm={};I(Gm,{generate:()=>ZC,name:()=>HC,parse:()=>Zm,structure:()=>JC});zC={};I(zC,{decode:()=>Hm,encode:()=>Jm});UC=32,ll=92,VC=34,GC=39,qC=40,qm=41;HC="Url",JC={value:String};Km={};I(Km,{generate:()=>XC,name:()=>KC,parse:()=>Ym,structure:()=>YC});KC="Value",YC={children:[[]]};Xm={};I(Xm,{generate:()=>n1,name:()=>e1,parse:()=>Qm,structure:()=>t1});QC=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),e1="WhiteSpace",t1={value:String};r1={generic:!0,...z0,node:Sl},eh={};I(eh,{AtrulePrelude:()=>u1,Selector:()=>w1,Value:()=>x1});o1=35,i1=42,Bd=43,s1=45,a1=47,l1=117;u1={getNode:th},c1=35,p1=38,d1=42,f1=43,m1=47,Rd=46,h1=62,g1=124,y1=126;w1={onWhiteSpace:b1,getNode:D1};x1={getNode:th,onWhiteSpace(e,t){jd(e)&&(e.value=" "+e.value),jd(t.last)&&(t.last.value+=" ")},expression:v1,var:k1},C1={parse:{prelude:null,block(){return this.Block(!0)}}},E1={parse:{prelude(){let e=this.createList();switch(this.skipSC(),this.tokenType){case 5:e.push(this.String());break;case 7:case 2:e.push(this.Url());break;default:this.error("String or url() is expected")}return(this.lookupNonWSType(0)===1||this.lookupNonWSType(0)===21)&&e.push(this.MediaQueryList()),e},block:null}},F1={parse:{prelude(){return this.createSingleNodeList(this.MediaQueryList())},block(e=!1){return this.Block(e)}}},_1={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},S1={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}};O1={parse:{prelude(){let e=nh.call(this);return this.getFirstListNode(e)===null&&this.error("Condition is expected"),e},block(e=!1){return this.Block(e)}}},P1={"font-face":C1,import:E1,media:F1,nest:_1,page:S1,supports:O1},Xt={parse(){return this.createSingleNodeList(this.SelectorList())}},qa={parse(){return this.createSingleNodeList(this.Selector())}},Ld={parse(){return this.createSingleNodeList(this.Identifier())}},ti={parse(){return this.createSingleNodeList(this.Nth())}},I1={dir:Ld,has:Xt,lang:Ld,matches:Xt,is:Xt,"-moz-any":Xt,"-webkit-any":Xt,where:Xt,not:Xt,"nth-child":ti,"nth-last-child":ti,"nth-last-of-type":ti,"nth-of-type":ti,slotted:qa,host:qa,"host-context":qa},rh={};I(rh,{AnPlusB:()=>gf,Atrule:()=>bf,AtrulePrelude:()=>wf,AttributeSelector:()=>xf,Block:()=>Ff,Brackets:()=>Sf,CDC:()=>Af,CDO:()=>Pf,ClassSelector:()=>Bf,Combinator:()=>jf,Comment:()=>Nf,Declaration:()=>Wf,DeclarationList:()=>Uf,Dimension:()=>Gf,Function:()=>Hf,Hash:()=>Zf,IdSelector:()=>Qf,Identifier:()=>Yf,MediaFeature:()=>tm,MediaQuery:()=>rm,MediaQueryList:()=>im,NestingSelector:()=>am,Nth:()=>um,Number:()=>pm,Operator:()=>fm,Parentheses:()=>hm,Percentage:()=>ym,PseudoClassSelector:()=>Dm,PseudoElementSelector:()=>vm,Ratio:()=>xm,Raw:()=>Em,Rule:()=>_m,Selector:()=>Tm,SelectorList:()=>Om,String:()=>jm,StyleSheet:()=>Nm,TypeSelector:()=>$m,UnicodeRange:()=>Vm,Url:()=>Zm,Value:()=>Ym,WhiteSpace:()=>Qm});B1={parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude(e){return this.AtrulePrelude(e.atrule?String(e.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",rule:"Rule",selectorList:"SelectorList",selector:"Selector",block(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},scope:eh,atrule:P1,pseudo:I1,node:rh},R1={node:Sl},j1=W0({...r1,...B1,...R1}),L1={};I(L1,{decode:()=>N1,encode:()=>M1});Nd=92;({tokenize:FA,parse:oh,generate:ih,lexer:_A,createLexer:SA,walk:sh,find:TA,findLast:AA,findAll:OA,toPlainObject:PA,fromPlainObject:IA,fork:BA}=j1)});function W1(e,t,n){let r=["ClassSelector","AttributeSelector","IdSelector","PseudoClassSelector"],o=["type"],i=["root"];if(e.type==="Rule"&&(e.prelude.type==="SelectorList"&&(e.prelude.children=new ie().fromArray(e.prelude.children.toArray().filter(s=>{let a="children"in s?s.children?.first:null;return!a||!r.includes(a.type)?!1:a.type==="PseudoClassSelector"?i.includes(a.name):a.type==="AttributeSelector"?!o.includes(a.name.name):!0}))),e.prelude.children.toArray().length===0&&n)){n.remove(t);return}}function ch(e){if(d.info("Detected skipTagSelectors flag is enabled. Skipping global CSS tags."),!e)return lh("");let t=Fa(e?.css,!0);try{let n=oh(t);sh(n,{enter:W1});let r=uh.default.format([ih(n),$1].join(`
45
+ --------`+new Array(o.mismatchOffset+1).join("-")+"^",Object.assign(o,l),o.loc={source:n&&n.loc&&n.loc.source||"<unknown>",start:l,end:u},o},Lo=new Map,An=new Map,Zo=45,ma=Fw,Ip=_w;kd=["initial","inherit","unset","revert","revert-layer"],Nr=43,Ze=45,ha=110,On=!0,Ew=!1;Tw=43,xd=45,Cd=63,Aw=117;Bw=["calc(","-moz-calc(","-webkit-calc("],Ka=new Map([[2,22],[21,22],[19,20],[23,24]]);Vw={"ident-token":K(1),"function-token":K(2),"at-keyword-token":K(3),"hash-token":K(4),"string-token":K(5),"bad-string-token":K(6),"url-token":K(7),"bad-url-token":K(8),"delim-token":K(9),"number-token":K(10),"percentage-token":K(11),"dimension-token":K(12),"whitespace-token":K(13),"CDO-token":K(14),"CDC-token":K(15),"colon-token":K(16),"semicolon-token":K(17),"comma-token":K(18),"[-token":K(19),"]-token":K(20),"(-token":K(21),")-token":K(22),"{-token":K(23),"}-token":K(24)},Gw={string:K(5),ident:K(1),percentage:Ae(zw),zero:Sd(),number:Ae(Ww),integer:Ae(Uw),"custom-ident":jw,"custom-property-name":Rw,"hex-color":Lw,"id-selector":Nw,"an-plus-b":Sw,urange:Pw,"declaration-value":Mw,"any-value":$w};Aa={};B(Aa,{angle:()=>Zw,decibel:()=>e0,flex:()=>Qw,frequency:()=>Yw,length:()=>Jw,resolution:()=>Xw,semitones:()=>t0,time:()=>Kw});Jw=["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],Zw=["deg","grad","rad","turn"],Kw=["s","ms"],Yw=["hz","khz"],Xw=["dpi","dpcm","dppx","x"],Qw=["fr"],e0=["db"],t0=["st"],n0={};B(n0,{SyntaxError:()=>Td,generate:()=>ri,parse:()=>nl,walk:()=>jd});r0=9,o0=10,i0=12,s0=13,a0=32,l0=class{constructor(e){this.str=e,this.pos=0}charCodeAt(e){return e<this.str.length?this.str.charCodeAt(e):0}charCode(){return this.charCodeAt(this.pos)}nextCharCode(){return this.charCodeAt(this.pos+1)}nextNonWsCode(e){return this.charCodeAt(this.findWsEnd(e))}findWsEnd(e){for(;e<this.str.length;e++){let t=this.str.charCodeAt(e);if(t!==s0&&t!==o0&&t!==i0&&t!==a0&&t!==r0)break}return e}substringToPos(e){return this.str.substring(this.pos,this.pos=e)}eat(e){this.charCode()!==e&&this.error("Expect `"+String.fromCharCode(e)+"`"),this.pos++}peek(){return this.pos<this.str.length?this.str.charAt(this.pos++):""}error(e){throw new Td(e,this.str,this.pos)}},u0=9,c0=10,p0=12,d0=13,f0=32,Ad=33,Ya=35,jp=38,Ko=39,Od=40,m0=41,Pd=42,Xa=43,Qa=44,Rp=45,el=60,Bd=62,Oa=63,h0=64,ii=91,tl=93,Yo=123,Lp=124,Np=125,Mp=8734,Mr=new Uint8Array(128).map((e,t)=>/[a-zA-Z0-9\-]/.test(String.fromCharCode(t))?1:0),$p={" ":1,"&&":2,"||":3,"|":4};Br=function(){};F0={decorator(e){let t=[],n=null;return{...e,node(r){let o=n;n=r,e.node.call(this,r),n=o},emit(r,o,i){t.push({type:o,value:r,node:i?null:n})},result(){return t}}}};H={type:"Match"},J={type:"Mismatch"},rl={type:"DisallowEmpty"},S0=40,T0=41;({hasOwnProperty:Vp}=Object.prototype),O0=0,P0=1,Ia=2,Ld=3,Gp="Match",B0="Mismatch",I0="Maximum iteration number exceeded (please fill an issue on https://github.com/csstree/csstree/issues)",qp=15e3,j0=0;Nd={};B(Nd,{getTrace:()=>Md,isKeyword:()=>z0,isProperty:()=>$0,isType:()=>M0});({hasOwnProperty:Rr}=Object.prototype);G0=Ba(kd.join(" | "));Xp=class{constructor(e,t,n){if(this.cssWideKeywordsSyntax=G0,this.syntax=t,this.generic=!1,this.units={...Aa},this.atrules=Object.create(null),this.properties=Object.create(null),this.types=Object.create(null),this.structure=n||V0(e),e){if(e.units)for(let r of Object.keys(Aa))Array.isArray(e.units[r])&&(this.units[r]=e.units[r]);if(e.types)for(let r in e.types)this.addType_(r,e.types[r]);if(e.generic){this.generic=!0;for(let[r,o]of Object.entries(Hw(this.units)))this.addType_(r,o)}if(e.atrules)for(let r in e.atrules)this.addAtrule_(r,e.atrules[r]);if(e.properties)for(let r in e.properties)this.addProperty_(r,e.properties[r])}}checkStructure(e){function t(o,i){r.push({node:o,message:i})}let n=this.structure,r=[];return this.syntax.walk(e,function(o){n.hasOwnProperty(o.type)?n[o.type].check(o,t):t(o,"Unknown node type `"+o.type+"`")}),r.length?r:!1}createDescriptor(e,t,n,r=null){let o={type:t,name:n},i={type:t,name:n,parent:r,serializable:typeof e=="string"||e&&typeof e.type=="string",syntax:null,match:null};return typeof e=="function"?i.match=Ba(e,o):(typeof e=="string"?Object.defineProperty(i,"syntax",{get(){return Object.defineProperty(i,"syntax",{value:nl(e)}),i.syntax}}):i.syntax=e,Object.defineProperty(i,"match",{get(){return Object.defineProperty(i,"match",{value:Ba(i.syntax,o)}),i.match}})),i}addAtrule_(e,t){!t||(this.atrules[e]={type:"Atrule",name:e,prelude:t.prelude?this.createDescriptor(t.prelude,"AtrulePrelude",e):null,descriptors:t.descriptors?Object.keys(t.descriptors).reduce((n,r)=>(n[r]=this.createDescriptor(t.descriptors[r],"AtruleDescriptor",r,e),n),Object.create(null)):null})}addProperty_(e,t){!t||(this.properties[e]=this.createDescriptor(t,"Property",e))}addType_(e,t){!t||(this.types[e]=this.createDescriptor(t,"Type",e))}checkAtruleName(e){if(!this.getAtrule(e))return new Tr("Unknown at-rule","@"+e)}checkAtrulePrelude(e,t){let n=this.checkAtruleName(e);if(n)return n;let r=this.getAtrule(e);if(!r.prelude&&t)return new SyntaxError("At-rule `@"+e+"` should not contain a prelude");if(r.prelude&&!t&&!Pn(this,r.prelude,"",!1).matched)return new SyntaxError("At-rule `@"+e+"` should contain a prelude")}checkAtruleDescriptorName(e,t){let n=this.checkAtruleName(e);if(n)return n;let r=this.getAtrule(e),o=ma(t);if(!r.descriptors)return new SyntaxError("At-rule `@"+e+"` has no known descriptors");if(!r.descriptors[o.name]&&!r.descriptors[o.basename])return new Tr("Unknown at-rule descriptor",t)}checkPropertyName(e){if(!this.getProperty(e))return new Tr("Unknown property",e)}matchAtrulePrelude(e,t){let n=this.checkAtrulePrelude(e,t);if(n)return ze(null,n);let r=this.getAtrule(e);return r.prelude?Pn(this,r.prelude,t||"",!1):ze(null,null)}matchAtruleDescriptor(e,t,n){let r=this.checkAtruleDescriptorName(e,t);if(r)return ze(null,r);let o=this.getAtrule(e),i=ma(t);return Pn(this,o.descriptors[i.name]||o.descriptors[i.basename],n,!1)}matchDeclaration(e){return e.type!=="Declaration"?ze(null,new Error("Not a Declaration node")):this.matchProperty(e.property,e.value)}matchProperty(e,t){if(Ip(e).custom)return ze(null,new Error("Lexer matching doesn't applicable for custom properties"));let n=this.checkPropertyName(e);return n?ze(null,n):Pn(this,this.getProperty(e),t,!0)}matchType(e,t){let n=this.getType(e);return n?Pn(this,n,t,!1):ze(null,new Tr("Unknown type",e))}match(e,t){return typeof e!="string"&&(!e||!e.type)?ze(null,new Tr("Bad syntax")):((typeof e=="string"||!e.match)&&(e=this.createDescriptor(e,"Type","anonymous")),Pn(this,e,t,!1))}findValueFragments(e,t,n,r){return Kp(this,t,this.matchProperty(e,t),n,r)}findDeclarationValueFragments(e,t,n){return Kp(this,e.value,this.matchDeclaration(e),t,n)}findAllFragments(e,t,n){let r=[];return this.syntax.walk(e,{visit:"Declaration",enter:o=>{r.push.apply(r,this.findDeclarationValueFragments(o,t,n))}}),r}getAtrule(e,t=!0){let n=ma(e);return(n.vendor&&t?this.atrules[n.name]||this.atrules[n.basename]:this.atrules[n.name])||null}getAtrulePrelude(e,t=!0){let n=this.getAtrule(e,t);return n&&n.prelude||null}getAtruleDescriptor(e,t){return this.atrules.hasOwnProperty(e)&&this.atrules.declarators&&this.atrules[e].declarators[t]||null}getProperty(e,t=!0){let n=Ip(e);return(n.vendor&&t?this.properties[n.name]||this.properties[n.basename]:this.properties[n.name])||null}getType(e){return hasOwnProperty.call(this.types,e)?this.types[e]:null}validate(){function e(r,o,i,s){if(i.has(o))return i.get(o);i.set(o,!1),s.syntax!==null&&jd(s.syntax,function(a){if(a.type!=="Type"&&a.type!=="Property")return;let l=a.type==="Type"?r.types:r.properties,u=a.type==="Type"?t:n;(!hasOwnProperty.call(l,a.name)||e(r,a.name,u,l[a.name]))&&i.set(o,!0)},this)}let t=new Map,n=new Map;for(let r in this.types)e(this,r,t,this.types[r]);for(let r in this.properties)e(this,r,n,this.properties[r]);return t=[...t.keys()].filter(r=>t.get(r)),n=[...n.keys()].filter(r=>n.get(r)),t.length||n.length?{types:t,properties:n}:null}dump(e,t){return{generic:this.generic,units:this.units,types:ja(this.types,!t,e),properties:ja(this.properties,!t,e),atrules:q0(this.atrules,!t,e)}}toString(){return JSON.stringify(this.dump())}};J0=e=>Wd(Ra({},e)),Z0={generic:!0,units:{angle:["deg","grad","rad","turn"],decibel:["db"],flex:["fr"],frequency:["hz","khz"],length:["cm","mm","q","in","pt","pc","px","em","rem","ex","rex","cap","rcap","ch","rch","ic","ric","lh","rlh","vw","svw","lvw","dvw","vh","svh","lvh","dvh","vi","svi","lvi","dvi","vb","svb","lvb","dvb","vmin","svmin","lvmin","dvmin","vmax","svmax","lvmax","dvmax","cqw","cqh","cqi","cqb","cqmin","cqmax"],resolution:["dpi","dpcm","dppx","x"],semitones:["st"],time:["s","ms"]},types:{"abs()":"abs( <calc-sum> )","absolute-size":"xx-small|x-small|small|medium|large|x-large|xx-large|xxx-large","acos()":"acos( <calc-sum> )","alpha-value":"<number>|<percentage>","angle-percentage":"<angle>|<percentage>","angular-color-hint":"<angle-percentage>","angular-color-stop":"<color>&&<color-stop-angle>?","angular-color-stop-list":"[<angular-color-stop> [, <angular-color-hint>]?]# , <angular-color-stop>","animateable-feature":"scroll-position|contents|<custom-ident>","asin()":"asin( <calc-sum> )","atan()":"atan( <calc-sum> )","atan2()":"atan2( <calc-sum> , <calc-sum> )",attachment:"scroll|fixed|local","attr()":"attr( <attr-name> <type-or-unit>? [, <attr-fallback>]? )","attr-matcher":"['~'|'|'|'^'|'$'|'*']? '='","attr-modifier":"i|s","attribute-selector":"'[' <wq-name> ']'|'[' <wq-name> <attr-matcher> [<string-token>|<ident-token>] <attr-modifier>? ']'","auto-repeat":"repeat( [auto-fill|auto-fit] , [<line-names>? <fixed-size>]+ <line-names>? )","auto-track-list":"[<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>? <auto-repeat> [<line-names>? [<fixed-size>|<fixed-repeat>]]* <line-names>?",axis:"block|inline|vertical|horizontal","baseline-position":"[first|last]? baseline","basic-shape":"<inset()>|<circle()>|<ellipse()>|<polygon()>|<path()>","bg-image":"none|<image>","bg-layer":"<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","bg-position":"[[left|center|right|top|bottom|<length-percentage>]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]|[center|[left|right] <length-percentage>?]&&[center|[top|bottom] <length-percentage>?]]","bg-size":"[<length-percentage>|auto]{1,2}|cover|contain","blur()":"blur( <length> )","blend-mode":"normal|multiply|screen|overlay|darken|lighten|color-dodge|color-burn|hard-light|soft-light|difference|exclusion|hue|saturation|color|luminosity",box:"border-box|padding-box|content-box","brightness()":"brightness( <number-percentage> )","calc()":"calc( <calc-sum> )","calc-sum":"<calc-product> [['+'|'-'] <calc-product>]*","calc-product":"<calc-value> ['*' <calc-value>|'/' <number>]*","calc-value":"<number>|<dimension>|<percentage>|<calc-constant>|( <calc-sum> )","calc-constant":"e|pi|infinity|-infinity|NaN","cf-final-image":"<image>|<color>","cf-mixing-image":"<percentage>?&&<image>","circle()":"circle( [<shape-radius>]? [at <position>]? )","clamp()":"clamp( <calc-sum>#{3} )","class-selector":"'.' <ident-token>","clip-source":"<url>",color:"<rgb()>|<rgba()>|<hsl()>|<hsla()>|<hwb()>|<lab()>|<lch()>|<hex-color>|<named-color>|currentcolor|<deprecated-system-color>","color-stop":"<color-stop-length>|<color-stop-angle>","color-stop-angle":"<angle-percentage>{1,2}","color-stop-length":"<length-percentage>{1,2}","color-stop-list":"[<linear-color-stop> [, <linear-color-hint>]?]# , <linear-color-stop>",combinator:"'>'|'+'|'~'|['||']","common-lig-values":"[common-ligatures|no-common-ligatures]","compat-auto":"searchfield|textarea|push-button|slider-horizontal|checkbox|radio|square-button|menulist|listbox|meter|progress-bar|button","composite-style":"clear|copy|source-over|source-in|source-out|source-atop|destination-over|destination-in|destination-out|destination-atop|xor","compositing-operator":"add|subtract|intersect|exclude","compound-selector":"[<type-selector>? <subclass-selector>* [<pseudo-element-selector> <pseudo-class-selector>*]*]!","compound-selector-list":"<compound-selector>#","complex-selector":"<compound-selector> [<combinator>? <compound-selector>]*","complex-selector-list":"<complex-selector>#","conic-gradient()":"conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","contextual-alt-values":"[contextual|no-contextual]","content-distribution":"space-between|space-around|space-evenly|stretch","content-list":"[<string>|contents|<image>|<counter>|<quote>|<target>|<leader()>|<attr()>]+","content-position":"center|start|end|flex-start|flex-end","content-replacement":"<image>","contrast()":"contrast( [<number-percentage>] )","cos()":"cos( <calc-sum> )",counter:"<counter()>|<counters()>","counter()":"counter( <counter-name> , <counter-style>? )","counter-name":"<custom-ident>","counter-style":"<counter-style-name>|symbols( )","counter-style-name":"<custom-ident>","counters()":"counters( <counter-name> , <string> , <counter-style>? )","cross-fade()":"cross-fade( <cf-mixing-image> , <cf-final-image>? )","cubic-bezier-timing-function":"ease|ease-in|ease-out|ease-in-out|cubic-bezier( <number [0,1]> , <number> , <number [0,1]> , <number> )","deprecated-system-color":"ActiveBorder|ActiveCaption|AppWorkspace|Background|ButtonFace|ButtonHighlight|ButtonShadow|ButtonText|CaptionText|GrayText|Highlight|HighlightText|InactiveBorder|InactiveCaption|InactiveCaptionText|InfoBackground|InfoText|Menu|MenuText|Scrollbar|ThreeDDarkShadow|ThreeDFace|ThreeDHighlight|ThreeDLightShadow|ThreeDShadow|Window|WindowFrame|WindowText","discretionary-lig-values":"[discretionary-ligatures|no-discretionary-ligatures]","display-box":"contents|none","display-inside":"flow|flow-root|table|flex|grid|ruby","display-internal":"table-row-group|table-header-group|table-footer-group|table-row|table-cell|table-column-group|table-column|table-caption|ruby-base|ruby-text|ruby-base-container|ruby-text-container","display-legacy":"inline-block|inline-list-item|inline-table|inline-flex|inline-grid","display-listitem":"<display-outside>?&&[flow|flow-root]?&&list-item","display-outside":"block|inline|run-in","drop-shadow()":"drop-shadow( <length>{2,3} <color>? )","east-asian-variant-values":"[jis78|jis83|jis90|jis04|simplified|traditional]","east-asian-width-values":"[full-width|proportional-width]","element()":"element( <custom-ident> , [first|start|last|first-except]? )|element( <id-selector> )","ellipse()":"ellipse( [<shape-radius>{2}]? [at <position>]? )","ending-shape":"circle|ellipse","env()":"env( <custom-ident> , <declaration-value>? )","exp()":"exp( <calc-sum> )","explicit-track-list":"[<line-names>? <track-size>]+ <line-names>?","family-name":"<string>|<custom-ident>+","feature-tag-value":"<string> [<integer>|on|off]?","feature-type":"@stylistic|@historical-forms|@styleset|@character-variant|@swash|@ornaments|@annotation","feature-value-block":"<feature-type> '{' <feature-value-declaration-list> '}'","feature-value-block-list":"<feature-value-block>+","feature-value-declaration":"<custom-ident> : <integer>+ ;","feature-value-declaration-list":"<feature-value-declaration>","feature-value-name":"<custom-ident>","fill-rule":"nonzero|evenodd","filter-function":"<blur()>|<brightness()>|<contrast()>|<drop-shadow()>|<grayscale()>|<hue-rotate()>|<invert()>|<opacity()>|<saturate()>|<sepia()>","filter-function-list":"[<filter-function>|<url>]+","final-bg-layer":"<'background-color'>||<bg-image>||<bg-position> [/ <bg-size>]?||<repeat-style>||<attachment>||<box>||<box>","fixed-breadth":"<length-percentage>","fixed-repeat":"repeat( [<integer [1,\u221E]>] , [<line-names>? <fixed-size>]+ <line-names>? )","fixed-size":"<fixed-breadth>|minmax( <fixed-breadth> , <track-breadth> )|minmax( <inflexible-breadth> , <fixed-breadth> )","font-stretch-absolute":"normal|ultra-condensed|extra-condensed|condensed|semi-condensed|semi-expanded|expanded|extra-expanded|ultra-expanded|<percentage>","font-variant-css21":"[normal|small-caps]","font-weight-absolute":"normal|bold|<number [1,1000]>","frequency-percentage":"<frequency>|<percentage>","general-enclosed":"[<function-token> <any-value> )]|( <ident> <any-value> )","generic-family":"serif|sans-serif|cursive|fantasy|monospace|-apple-system","generic-name":"serif|sans-serif|cursive|fantasy|monospace","geometry-box":"<shape-box>|fill-box|stroke-box|view-box",gradient:"<linear-gradient()>|<repeating-linear-gradient()>|<radial-gradient()>|<repeating-radial-gradient()>|<conic-gradient()>|<repeating-conic-gradient()>|<-legacy-gradient>","grayscale()":"grayscale( <number-percentage> )","grid-line":"auto|<custom-ident>|[<integer>&&<custom-ident>?]|[span&&[<integer>||<custom-ident>]]","historical-lig-values":"[historical-ligatures|no-historical-ligatures]","hsl()":"hsl( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsl( <hue> , <percentage> , <percentage> , <alpha-value>? )","hsla()":"hsla( <hue> <percentage> <percentage> [/ <alpha-value>]? )|hsla( <hue> , <percentage> , <percentage> , <alpha-value>? )",hue:"<number>|<angle>","hue-rotate()":"hue-rotate( <angle> )","hwb()":"hwb( [<hue>|none] [<percentage>|none] [<percentage>|none] [/ [<alpha-value>|none]]? )","hypot()":"hypot( <calc-sum># )",image:"<url>|<image()>|<image-set()>|<element()>|<paint()>|<cross-fade()>|<gradient>","image()":"image( <image-tags>? [<image-src>? , <color>?]! )","image-set()":"image-set( <image-set-option># )","image-set-option":"[<image>|<string>] [<resolution>||type( <string> )]","image-src":"<url>|<string>","image-tags":"ltr|rtl","inflexible-breadth":"<length-percentage>|min-content|max-content|auto","inset()":"inset( <length-percentage>{1,4} [round <'border-radius'>]? )","invert()":"invert( <number-percentage> )","keyframes-name":"<custom-ident>|<string>","keyframe-block":"<keyframe-selector># { <declaration-list> }","keyframe-block-list":"<keyframe-block>+","keyframe-selector":"from|to|<percentage>","lab()":"lab( [<percentage>|<number>|none] [<percentage>|<number>|none] [<percentage>|<number>|none] [/ [<alpha-value>|none]]? )","layer()":"layer( <layer-name> )","layer-name":"<ident> ['.' <ident>]*","lch()":"lch( [<percentage>|<number>|none] [<percentage>|<number>|none] [<hue>|none] [/ [<alpha-value>|none]]? )","leader()":"leader( <leader-type> )","leader-type":"dotted|solid|space|<string>","length-percentage":"<length>|<percentage>","line-names":"'[' <custom-ident>* ']'","line-name-list":"[<line-names>|<name-repeat>]+","line-style":"none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset","line-width":"<length>|thin|medium|thick","linear-color-hint":"<length-percentage>","linear-color-stop":"<color> <color-stop-length>?","linear-gradient()":"linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","log()":"log( <calc-sum> , <calc-sum>? )","mask-layer":"<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||<geometry-box>||[<geometry-box>|no-clip]||<compositing-operator>||<masking-mode>","mask-position":"[<length-percentage>|left|center|right] [<length-percentage>|top|center|bottom]?","mask-reference":"none|<image>|<mask-source>","mask-source":"<url>","masking-mode":"alpha|luminance|match-source","matrix()":"matrix( <number>#{6} )","matrix3d()":"matrix3d( <number>#{16} )","max()":"max( <calc-sum># )","media-and":"<media-in-parens> [and <media-in-parens>]+","media-condition":"<media-not>|<media-and>|<media-or>|<media-in-parens>","media-condition-without-or":"<media-not>|<media-and>|<media-in-parens>","media-feature":"( [<mf-plain>|<mf-boolean>|<mf-range>] )","media-in-parens":"( <media-condition> )|<media-feature>|<general-enclosed>","media-not":"not <media-in-parens>","media-or":"<media-in-parens> [or <media-in-parens>]+","media-query":"<media-condition>|[not|only]? <media-type> [and <media-condition-without-or>]?","media-query-list":"<media-query>#","media-type":"<ident>","mf-boolean":"<mf-name>","mf-name":"<ident>","mf-plain":"<mf-name> : <mf-value>","mf-range":"<mf-name> ['<'|'>']? '='? <mf-value>|<mf-value> ['<'|'>']? '='? <mf-name>|<mf-value> '<' '='? <mf-name> '<' '='? <mf-value>|<mf-value> '>' '='? <mf-name> '>' '='? <mf-value>","mf-value":"<number>|<dimension>|<ident>|<ratio>","min()":"min( <calc-sum># )","minmax()":"minmax( [<length-percentage>|min-content|max-content|auto] , [<length-percentage>|<flex>|min-content|max-content|auto] )","mod()":"mod( <calc-sum> , <calc-sum> )","name-repeat":"repeat( [<integer [1,\u221E]>|auto-fill] , <line-names>+ )","named-color":"transparent|aliceblue|antiquewhite|aqua|aquamarine|azure|beige|bisque|black|blanchedalmond|blue|blueviolet|brown|burlywood|cadetblue|chartreuse|chocolate|coral|cornflowerblue|cornsilk|crimson|cyan|darkblue|darkcyan|darkgoldenrod|darkgray|darkgreen|darkgrey|darkkhaki|darkmagenta|darkolivegreen|darkorange|darkorchid|darkred|darksalmon|darkseagreen|darkslateblue|darkslategray|darkslategrey|darkturquoise|darkviolet|deeppink|deepskyblue|dimgray|dimgrey|dodgerblue|firebrick|floralwhite|forestgreen|fuchsia|gainsboro|ghostwhite|gold|goldenrod|gray|green|greenyellow|grey|honeydew|hotpink|indianred|indigo|ivory|khaki|lavender|lavenderblush|lawngreen|lemonchiffon|lightblue|lightcoral|lightcyan|lightgoldenrodyellow|lightgray|lightgreen|lightgrey|lightpink|lightsalmon|lightseagreen|lightskyblue|lightslategray|lightslategrey|lightsteelblue|lightyellow|lime|limegreen|linen|magenta|maroon|mediumaquamarine|mediumblue|mediumorchid|mediumpurple|mediumseagreen|mediumslateblue|mediumspringgreen|mediumturquoise|mediumvioletred|midnightblue|mintcream|mistyrose|moccasin|navajowhite|navy|oldlace|olive|olivedrab|orange|orangered|orchid|palegoldenrod|palegreen|paleturquoise|palevioletred|papayawhip|peachpuff|peru|pink|plum|powderblue|purple|rebeccapurple|red|rosybrown|royalblue|saddlebrown|salmon|sandybrown|seagreen|seashell|sienna|silver|skyblue|slateblue|slategray|slategrey|snow|springgreen|steelblue|tan|teal|thistle|tomato|turquoise|violet|wheat|white|whitesmoke|yellow|yellowgreen|<-non-standard-color>","namespace-prefix":"<ident>","ns-prefix":"[<ident-token>|'*']? '|'","number-percentage":"<number>|<percentage>","numeric-figure-values":"[lining-nums|oldstyle-nums]","numeric-fraction-values":"[diagonal-fractions|stacked-fractions]","numeric-spacing-values":"[proportional-nums|tabular-nums]",nth:"<an-plus-b>|even|odd","opacity()":"opacity( [<number-percentage>] )","overflow-position":"unsafe|safe","outline-radius":"<length>|<percentage>","page-body":"<declaration>? [; <page-body>]?|<page-margin-box> <page-body>","page-margin-box":"<page-margin-box-type> '{' <declaration-list> '}'","page-margin-box-type":"@top-left-corner|@top-left|@top-center|@top-right|@top-right-corner|@bottom-left-corner|@bottom-left|@bottom-center|@bottom-right|@bottom-right-corner|@left-top|@left-middle|@left-bottom|@right-top|@right-middle|@right-bottom","page-selector-list":"[<page-selector>#]?","page-selector":"<pseudo-page>+|<ident> <pseudo-page>*","page-size":"A5|A4|A3|B5|B4|JIS-B5|JIS-B4|letter|legal|ledger","path()":"path( [<fill-rule> ,]? <string> )","paint()":"paint( <ident> , <declaration-value>? )","perspective()":"perspective( [<length [0,\u221E]>|none] )","polygon()":"polygon( <fill-rule>? , [<length-percentage> <length-percentage>]# )",position:"[[left|center|right]||[top|center|bottom]|[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]?|[[left|right] <length-percentage>]&&[[top|bottom] <length-percentage>]]","pow()":"pow( <calc-sum> , <calc-sum> )","pseudo-class-selector":"':' <ident-token>|':' <function-token> <any-value> ')'","pseudo-element-selector":"':' <pseudo-class-selector>","pseudo-page":": [left|right|first|blank]",quote:"open-quote|close-quote|no-open-quote|no-close-quote","radial-gradient()":"radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )",ratio:"<number [0,\u221E]> [/ <number [0,\u221E]>]?","relative-selector":"<combinator>? <complex-selector>","relative-selector-list":"<relative-selector>#","relative-size":"larger|smaller","rem()":"rem( <calc-sum> , <calc-sum> )","repeat-style":"repeat-x|repeat-y|[repeat|space|round|no-repeat]{1,2}","repeating-conic-gradient()":"repeating-conic-gradient( [from <angle>]? [at <position>]? , <angular-color-stop-list> )","repeating-linear-gradient()":"repeating-linear-gradient( [<angle>|to <side-or-corner>]? , <color-stop-list> )","repeating-radial-gradient()":"repeating-radial-gradient( [<ending-shape>||<size>]? [at <position>]? , <color-stop-list> )","reversed-counter-name":"reversed( <counter-name> )","rgb()":"rgb( <percentage>{3} [/ <alpha-value>]? )|rgb( <number>{3} [/ <alpha-value>]? )|rgb( <percentage>#{3} , <alpha-value>? )|rgb( <number>#{3} , <alpha-value>? )","rgba()":"rgba( <percentage>{3} [/ <alpha-value>]? )|rgba( <number>{3} [/ <alpha-value>]? )|rgba( <percentage>#{3} , <alpha-value>? )|rgba( <number>#{3} , <alpha-value>? )","rotate()":"rotate( [<angle>|<zero>] )","rotate3d()":"rotate3d( <number> , <number> , <number> , [<angle>|<zero>] )","rotateX()":"rotateX( [<angle>|<zero>] )","rotateY()":"rotateY( [<angle>|<zero>] )","rotateZ()":"rotateZ( [<angle>|<zero>] )","round()":"round( <rounding-strategy>? , <calc-sum> , <calc-sum> )","rounding-strategy":"nearest|up|down|to-zero","saturate()":"saturate( <number-percentage> )","scale()":"scale( [<number>|<percentage>]#{1,2} )","scale3d()":"scale3d( [<number>|<percentage>]#{3} )","scaleX()":"scaleX( [<number>|<percentage>] )","scaleY()":"scaleY( [<number>|<percentage>] )","scaleZ()":"scaleZ( [<number>|<percentage>] )",scroller:"root|nearest","self-position":"center|start|end|self-start|self-end|flex-start|flex-end","shape-radius":"<length-percentage>|closest-side|farthest-side","sign()":"sign( <calc-sum> )","skew()":"skew( [<angle>|<zero>] , [<angle>|<zero>]? )","skewX()":"skewX( [<angle>|<zero>] )","skewY()":"skewY( [<angle>|<zero>] )","sepia()":"sepia( <number-percentage> )",shadow:"inset?&&<length>{2,4}&&<color>?","shadow-t":"[<length>{2,3}&&<color>?]",shape:"rect( <top> , <right> , <bottom> , <left> )|rect( <top> <right> <bottom> <left> )","shape-box":"<box>|margin-box","side-or-corner":"[left|right]||[top|bottom]","sin()":"sin( <calc-sum> )","single-animation":"<time>||<easing-function>||<time>||<single-animation-iteration-count>||<single-animation-direction>||<single-animation-fill-mode>||<single-animation-play-state>||[none|<keyframes-name>]","single-animation-direction":"normal|reverse|alternate|alternate-reverse","single-animation-fill-mode":"none|forwards|backwards|both","single-animation-iteration-count":"infinite|<number>","single-animation-play-state":"running|paused","single-animation-timeline":"auto|none|<timeline-name>|scroll( <axis>? <scroller>? )","single-transition":"[none|<single-transition-property>]||<time>||<easing-function>||<time>","single-transition-property":"all|<custom-ident>",size:"closest-side|farthest-side|closest-corner|farthest-corner|<length>|<length-percentage>{2}","sqrt()":"sqrt( <calc-sum> )","step-position":"jump-start|jump-end|jump-none|jump-both|start|end","step-timing-function":"step-start|step-end|steps( <integer> [, <step-position>]? )","subclass-selector":"<id-selector>|<class-selector>|<attribute-selector>|<pseudo-class-selector>","supports-condition":"not <supports-in-parens>|<supports-in-parens> [and <supports-in-parens>]*|<supports-in-parens> [or <supports-in-parens>]*","supports-in-parens":"( <supports-condition> )|<supports-feature>|<general-enclosed>","supports-feature":"<supports-decl>|<supports-selector-fn>","supports-decl":"( <declaration> )","supports-selector-fn":"selector( <complex-selector> )",symbol:"<string>|<image>|<custom-ident>","tan()":"tan( <calc-sum> )",target:"<target-counter()>|<target-counters()>|<target-text()>","target-counter()":"target-counter( [<string>|<url>] , <custom-ident> , <counter-style>? )","target-counters()":"target-counters( [<string>|<url>] , <custom-ident> , <string> , <counter-style>? )","target-text()":"target-text( [<string>|<url>] , [content|before|after|first-letter]? )","time-percentage":"<time>|<percentage>","timeline-name":"<custom-ident>|<string>","easing-function":"linear|<cubic-bezier-timing-function>|<step-timing-function>","track-breadth":"<length-percentage>|<flex>|min-content|max-content|auto","track-list":"[<line-names>? [<track-size>|<track-repeat>]]+ <line-names>?","track-repeat":"repeat( [<integer [1,\u221E]>] , [<line-names>? <track-size>]+ <line-names>? )","track-size":"<track-breadth>|minmax( <inflexible-breadth> , <track-breadth> )|fit-content( <length-percentage> )","transform-function":"<matrix()>|<translate()>|<translateX()>|<translateY()>|<scale()>|<scaleX()>|<scaleY()>|<rotate()>|<skew()>|<skewX()>|<skewY()>|<matrix3d()>|<translate3d()>|<translateZ()>|<scale3d()>|<scaleZ()>|<rotate3d()>|<rotateX()>|<rotateY()>|<rotateZ()>|<perspective()>","transform-list":"<transform-function>+","translate()":"translate( <length-percentage> , <length-percentage>? )","translate3d()":"translate3d( <length-percentage> , <length-percentage> , <length> )","translateX()":"translateX( <length-percentage> )","translateY()":"translateY( <length-percentage> )","translateZ()":"translateZ( <length> )","type-or-unit":"string|color|url|integer|number|length|angle|time|frequency|cap|ch|em|ex|ic|lh|rlh|rem|vb|vi|vw|vh|vmin|vmax|mm|Q|cm|in|pt|pc|px|deg|grad|rad|turn|ms|s|Hz|kHz|%","type-selector":"<wq-name>|<ns-prefix>? '*'","var()":"var( <custom-property-name> , <declaration-value>? )","viewport-length":"auto|<length-percentage>","visual-box":"content-box|padding-box|border-box","wq-name":"<ns-prefix>? <ident-token>","-legacy-gradient":"<-webkit-gradient()>|<-legacy-linear-gradient>|<-legacy-repeating-linear-gradient>|<-legacy-radial-gradient>|<-legacy-repeating-radial-gradient>","-legacy-linear-gradient":"-moz-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-repeating-linear-gradient":"-moz-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-webkit-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )|-o-repeating-linear-gradient( <-legacy-linear-gradient-arguments> )","-legacy-linear-gradient-arguments":"[<angle>|<side-or-corner>]? , <color-stop-list>","-legacy-radial-gradient":"-moz-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-repeating-radial-gradient":"-moz-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-webkit-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )|-o-repeating-radial-gradient( <-legacy-radial-gradient-arguments> )","-legacy-radial-gradient-arguments":"[<position> ,]? [[[<-legacy-radial-gradient-shape>||<-legacy-radial-gradient-size>]|[<length>|<percentage>]{2}] ,]? <color-stop-list>","-legacy-radial-gradient-size":"closest-side|closest-corner|farthest-side|farthest-corner|contain|cover","-legacy-radial-gradient-shape":"circle|ellipse","-non-standard-font":"-apple-system-body|-apple-system-headline|-apple-system-subheadline|-apple-system-caption1|-apple-system-caption2|-apple-system-footnote|-apple-system-short-body|-apple-system-short-headline|-apple-system-short-subheadline|-apple-system-short-caption1|-apple-system-short-footnote|-apple-system-tall-body","-non-standard-color":"-moz-ButtonDefault|-moz-ButtonHoverFace|-moz-ButtonHoverText|-moz-CellHighlight|-moz-CellHighlightText|-moz-Combobox|-moz-ComboboxText|-moz-Dialog|-moz-DialogText|-moz-dragtargetzone|-moz-EvenTreeRow|-moz-Field|-moz-FieldText|-moz-html-CellHighlight|-moz-html-CellHighlightText|-moz-mac-accentdarkestshadow|-moz-mac-accentdarkshadow|-moz-mac-accentface|-moz-mac-accentlightesthighlight|-moz-mac-accentlightshadow|-moz-mac-accentregularhighlight|-moz-mac-accentregularshadow|-moz-mac-chrome-active|-moz-mac-chrome-inactive|-moz-mac-focusring|-moz-mac-menuselect|-moz-mac-menushadow|-moz-mac-menutextselect|-moz-MenuHover|-moz-MenuHoverText|-moz-MenuBarText|-moz-MenuBarHoverText|-moz-nativehyperlinktext|-moz-OddTreeRow|-moz-win-communicationstext|-moz-win-mediatext|-moz-activehyperlinktext|-moz-default-background-color|-moz-default-color|-moz-hyperlinktext|-moz-visitedhyperlinktext|-webkit-activelink|-webkit-focus-ring-color|-webkit-link|-webkit-text","-non-standard-image-rendering":"optimize-contrast|-moz-crisp-edges|-o-crisp-edges|-webkit-optimize-contrast","-non-standard-overflow":"-moz-scrollbars-none|-moz-scrollbars-horizontal|-moz-scrollbars-vertical|-moz-hidden-unscrollable","-non-standard-width":"fill-available|min-intrinsic|intrinsic|-moz-available|-moz-fit-content|-moz-min-content|-moz-max-content|-webkit-min-content|-webkit-max-content","-webkit-gradient()":"-webkit-gradient( <-webkit-gradient-type> , <-webkit-gradient-point> [, <-webkit-gradient-point>|, <-webkit-gradient-radius> , <-webkit-gradient-point>] [, <-webkit-gradient-radius>]? [, <-webkit-gradient-color-stop>]* )","-webkit-gradient-color-stop":"from( <color> )|color-stop( [<number-zero-one>|<percentage>] , <color> )|to( <color> )","-webkit-gradient-point":"[left|center|right|<length-percentage>] [top|center|bottom|<length-percentage>]","-webkit-gradient-radius":"<length>|<percentage>","-webkit-gradient-type":"linear|radial","-webkit-mask-box-repeat":"repeat|stretch|round","-webkit-mask-clip-style":"border|border-box|padding|padding-box|content|content-box|text","-ms-filter-function-list":"<-ms-filter-function>+","-ms-filter-function":"<-ms-filter-function-progid>|<-ms-filter-function-legacy>","-ms-filter-function-progid":"'progid:' [<ident-token> '.']* [<ident-token>|<function-token> <any-value>? )]","-ms-filter-function-legacy":"<ident-token>|<function-token> <any-value>? )","-ms-filter":"<string>",age:"child|young|old","attr-name":"<wq-name>","attr-fallback":"<any-value>","bg-clip":"<box>|border|text",bottom:"<length>|auto","container-name":"<custom-ident>","container-condition":"not <query-in-parens>|<query-in-parens> [[and <query-in-parens>]*|[or <query-in-parens>]*]","generic-voice":"[<age>? <gender> <integer>?]",gender:"male|female|neutral",left:"<length>|auto","mask-image":"<mask-reference>#",paint:"none|<color>|<url> [none|<color>]?|context-fill|context-stroke",right:"<length>|auto","scroll-timeline-axis":"block|inline|vertical|horizontal","scroll-timeline-name":"none|<custom-ident>","single-animation-composition":"replace|add|accumulate","svg-length":"<percentage>|<length>|<number>","svg-writing-mode":"lr-tb|rl-tb|tb-rl|lr|rl|tb",top:"<length>|auto",x:"<number>",y:"<number>",declaration:"<ident-token> : <declaration-value>? ['!' important]?","declaration-list":"[<declaration>? ';']* <declaration>?",url:"url( <string> <url-modifier>* )|<url-token>","url-modifier":"<ident>|<function-token> <any-value> )","number-zero-one":"<number [0,1]>","number-one-or-greater":"<number [1,\u221E]>","query-in-parens":"( <container-condition> )|( <size-feature> )|style( <style-query> )|<general-enclosed>","size-feature":"<mf-plain>|<mf-boolean>|<mf-range>","style-feature":"<declaration>","style-query":"<style-condition>|<style-feature>","style-condition":"not <style-in-parens>|<style-in-parens> [[and <style-in-parens>]*|[or <style-in-parens>]*]","style-in-parens":"( <style-condition> )|( <style-feature> )|<general-enclosed>","-non-standard-display":"-ms-inline-flexbox|-ms-grid|-ms-inline-grid|-webkit-flex|-webkit-inline-flex|-webkit-box|-webkit-inline-box|-moz-inline-stack|-moz-box|-moz-inline-box"},properties:{"--*":"<declaration-value>","-ms-accelerator":"false|true","-ms-block-progression":"tb|rl|bt|lr","-ms-content-zoom-chaining":"none|chained","-ms-content-zooming":"none|zoom","-ms-content-zoom-limit":"<'-ms-content-zoom-limit-min'> <'-ms-content-zoom-limit-max'>","-ms-content-zoom-limit-max":"<percentage>","-ms-content-zoom-limit-min":"<percentage>","-ms-content-zoom-snap":"<'-ms-content-zoom-snap-type'>||<'-ms-content-zoom-snap-points'>","-ms-content-zoom-snap-points":"snapInterval( <percentage> , <percentage> )|snapList( <percentage># )","-ms-content-zoom-snap-type":"none|proximity|mandatory","-ms-filter":"<string>","-ms-flow-from":"[none|<custom-ident>]#","-ms-flow-into":"[none|<custom-ident>]#","-ms-grid-columns":"none|<track-list>|<auto-track-list>","-ms-grid-rows":"none|<track-list>|<auto-track-list>","-ms-high-contrast-adjust":"auto|none","-ms-hyphenate-limit-chars":"auto|<integer>{1,3}","-ms-hyphenate-limit-lines":"no-limit|<integer>","-ms-hyphenate-limit-zone":"<percentage>|<length>","-ms-ime-align":"auto|after","-ms-overflow-style":"auto|none|scrollbar|-ms-autohiding-scrollbar","-ms-scrollbar-3dlight-color":"<color>","-ms-scrollbar-arrow-color":"<color>","-ms-scrollbar-base-color":"<color>","-ms-scrollbar-darkshadow-color":"<color>","-ms-scrollbar-face-color":"<color>","-ms-scrollbar-highlight-color":"<color>","-ms-scrollbar-shadow-color":"<color>","-ms-scrollbar-track-color":"<color>","-ms-scroll-chaining":"chained|none","-ms-scroll-limit":"<'-ms-scroll-limit-x-min'> <'-ms-scroll-limit-y-min'> <'-ms-scroll-limit-x-max'> <'-ms-scroll-limit-y-max'>","-ms-scroll-limit-x-max":"auto|<length>","-ms-scroll-limit-x-min":"<length>","-ms-scroll-limit-y-max":"auto|<length>","-ms-scroll-limit-y-min":"<length>","-ms-scroll-rails":"none|railed","-ms-scroll-snap-points-x":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-points-y":"snapInterval( <length-percentage> , <length-percentage> )|snapList( <length-percentage># )","-ms-scroll-snap-type":"none|proximity|mandatory","-ms-scroll-snap-x":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-x'>","-ms-scroll-snap-y":"<'-ms-scroll-snap-type'> <'-ms-scroll-snap-points-y'>","-ms-scroll-translation":"none|vertical-to-horizontal","-ms-text-autospace":"none|ideograph-alpha|ideograph-numeric|ideograph-parenthesis|ideograph-space","-ms-touch-select":"grippers|none","-ms-user-select":"none|element|text","-ms-wrap-flow":"auto|both|start|end|maximum|clear","-ms-wrap-margin":"<length>","-ms-wrap-through":"wrap|none","-moz-appearance":"none|button|button-arrow-down|button-arrow-next|button-arrow-previous|button-arrow-up|button-bevel|button-focus|caret|checkbox|checkbox-container|checkbox-label|checkmenuitem|dualbutton|groupbox|listbox|listitem|menuarrow|menubar|menucheckbox|menuimage|menuitem|menuitemtext|menulist|menulist-button|menulist-text|menulist-textfield|menupopup|menuradio|menuseparator|meterbar|meterchunk|progressbar|progressbar-vertical|progresschunk|progresschunk-vertical|radio|radio-container|radio-label|radiomenuitem|range|range-thumb|resizer|resizerpanel|scale-horizontal|scalethumbend|scalethumb-horizontal|scalethumbstart|scalethumbtick|scalethumb-vertical|scale-vertical|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|separator|sheet|spinner|spinner-downbutton|spinner-textfield|spinner-upbutton|splitter|statusbar|statusbarpanel|tab|tabpanel|tabpanels|tab-scroll-arrow-back|tab-scroll-arrow-forward|textfield|textfield-multiline|toolbar|toolbarbutton|toolbarbutton-dropdown|toolbargripper|toolbox|tooltip|treeheader|treeheadercell|treeheadersortarrow|treeitem|treeline|treetwisty|treetwistyopen|treeview|-moz-mac-unified-toolbar|-moz-win-borderless-glass|-moz-win-browsertabbar-toolbox|-moz-win-communicationstext|-moz-win-communications-toolbox|-moz-win-exclude-glass|-moz-win-glass|-moz-win-mediatext|-moz-win-media-toolbox|-moz-window-button-box|-moz-window-button-box-maximized|-moz-window-button-close|-moz-window-button-maximize|-moz-window-button-minimize|-moz-window-button-restore|-moz-window-frame-bottom|-moz-window-frame-left|-moz-window-frame-right|-moz-window-titlebar|-moz-window-titlebar-maximized","-moz-binding":"<url>|none","-moz-border-bottom-colors":"<color>+|none","-moz-border-left-colors":"<color>+|none","-moz-border-right-colors":"<color>+|none","-moz-border-top-colors":"<color>+|none","-moz-context-properties":"none|[fill|fill-opacity|stroke|stroke-opacity]#","-moz-float-edge":"border-box|content-box|margin-box|padding-box","-moz-force-broken-image-icon":"0|1","-moz-image-region":"<shape>|auto","-moz-orient":"inline|block|horizontal|vertical","-moz-outline-radius":"<outline-radius>{1,4} [/ <outline-radius>{1,4}]?","-moz-outline-radius-bottomleft":"<outline-radius>","-moz-outline-radius-bottomright":"<outline-radius>","-moz-outline-radius-topleft":"<outline-radius>","-moz-outline-radius-topright":"<outline-radius>","-moz-stack-sizing":"ignore|stretch-to-fit","-moz-text-blink":"none|blink","-moz-user-focus":"ignore|normal|select-after|select-before|select-menu|select-same|select-all|none","-moz-user-input":"auto|none|enabled|disabled","-moz-user-modify":"read-only|read-write|write-only","-moz-window-dragging":"drag|no-drag","-moz-window-shadow":"default|menu|tooltip|sheet|none","-webkit-appearance":"none|button|button-bevel|caps-lock-indicator|caret|checkbox|default-button|inner-spin-button|listbox|listitem|media-controls-background|media-controls-fullscreen-background|media-current-time-display|media-enter-fullscreen-button|media-exit-fullscreen-button|media-fullscreen-button|media-mute-button|media-overlay-play-button|media-play-button|media-seek-back-button|media-seek-forward-button|media-slider|media-sliderthumb|media-time-remaining-display|media-toggle-closed-captions-button|media-volume-slider|media-volume-slider-container|media-volume-sliderthumb|menulist|menulist-button|menulist-text|menulist-textfield|meter|progress-bar|progress-bar-value|push-button|radio|scrollbarbutton-down|scrollbarbutton-left|scrollbarbutton-right|scrollbarbutton-up|scrollbargripper-horizontal|scrollbargripper-vertical|scrollbarthumb-horizontal|scrollbarthumb-vertical|scrollbartrack-horizontal|scrollbartrack-vertical|searchfield|searchfield-cancel-button|searchfield-decoration|searchfield-results-button|searchfield-results-decoration|slider-horizontal|slider-vertical|sliderthumb-horizontal|sliderthumb-vertical|square-button|textarea|textfield|-apple-pay-button","-webkit-border-before":"<'border-width'>||<'border-style'>||<color>","-webkit-border-before-color":"<color>","-webkit-border-before-style":"<'border-style'>","-webkit-border-before-width":"<'border-width'>","-webkit-box-reflect":"[above|below|right|left]? <length>? <image>?","-webkit-line-clamp":"none|<integer>","-webkit-mask":"[<mask-reference>||<position> [/ <bg-size>]?||<repeat-style>||[<box>|border|padding|content|text]||[<box>|border|padding|content]]#","-webkit-mask-attachment":"<attachment>#","-webkit-mask-clip":"[<box>|border|padding|content|text]#","-webkit-mask-composite":"<composite-style>#","-webkit-mask-image":"<mask-reference>#","-webkit-mask-origin":"[<box>|border|padding|content]#","-webkit-mask-position":"<position>#","-webkit-mask-position-x":"[<length-percentage>|left|center|right]#","-webkit-mask-position-y":"[<length-percentage>|top|center|bottom]#","-webkit-mask-repeat":"<repeat-style>#","-webkit-mask-repeat-x":"repeat|no-repeat|space|round","-webkit-mask-repeat-y":"repeat|no-repeat|space|round","-webkit-mask-size":"<bg-size>#","-webkit-overflow-scrolling":"auto|touch","-webkit-tap-highlight-color":"<color>","-webkit-text-fill-color":"<color>","-webkit-text-stroke":"<length>||<color>","-webkit-text-stroke-color":"<color>","-webkit-text-stroke-width":"<length>","-webkit-touch-callout":"default|none","-webkit-user-modify":"read-only|read-write|read-write-plaintext-only","accent-color":"auto|<color>","align-content":"normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>","align-items":"normal|stretch|<baseline-position>|[<overflow-position>? <self-position>]","align-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? <self-position>","align-tracks":"[normal|<baseline-position>|<content-distribution>|<overflow-position>? <content-position>]#",all:"initial|inherit|unset|revert|revert-layer",animation:"<single-animation>#","animation-composition":"<single-animation-composition>#","animation-delay":"<time>#","animation-direction":"<single-animation-direction>#","animation-duration":"<time>#","animation-fill-mode":"<single-animation-fill-mode>#","animation-iteration-count":"<single-animation-iteration-count>#","animation-name":"[none|<keyframes-name>]#","animation-play-state":"<single-animation-play-state>#","animation-timing-function":"<easing-function>#","animation-timeline":"<single-animation-timeline>#",appearance:"none|auto|textfield|menulist-button|<compat-auto>","aspect-ratio":"auto|<ratio>",azimuth:"<angle>|[[left-side|far-left|left|center-left|center|center-right|right|far-right|right-side]||behind]|leftwards|rightwards","backdrop-filter":"none|<filter-function-list>","backface-visibility":"visible|hidden",background:"[<bg-layer> ,]* <final-bg-layer>","background-attachment":"<attachment>#","background-blend-mode":"<blend-mode>#","background-clip":"<bg-clip>#","background-color":"<color>","background-image":"<bg-image>#","background-origin":"<box>#","background-position":"<bg-position>#","background-position-x":"[center|[[left|right|x-start|x-end]? <length-percentage>?]!]#","background-position-y":"[center|[[top|bottom|y-start|y-end]? <length-percentage>?]!]#","background-repeat":"<repeat-style>#","background-size":"<bg-size>#","block-overflow":"clip|ellipsis|<string>","block-size":"<'width'>",border:"<line-width>||<line-style>||<color>","border-block":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-color":"<'border-top-color'>{1,2}","border-block-style":"<'border-top-style'>","border-block-width":"<'border-top-width'>","border-block-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-end-color":"<'border-top-color'>","border-block-end-style":"<'border-top-style'>","border-block-end-width":"<'border-top-width'>","border-block-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-block-start-color":"<'border-top-color'>","border-block-start-style":"<'border-top-style'>","border-block-start-width":"<'border-top-width'>","border-bottom":"<line-width>||<line-style>||<color>","border-bottom-color":"<'border-top-color'>","border-bottom-left-radius":"<length-percentage>{1,2}","border-bottom-right-radius":"<length-percentage>{1,2}","border-bottom-style":"<line-style>","border-bottom-width":"<line-width>","border-collapse":"collapse|separate","border-color":"<color>{1,4}","border-end-end-radius":"<length-percentage>{1,2}","border-end-start-radius":"<length-percentage>{1,2}","border-image":"<'border-image-source'>||<'border-image-slice'> [/ <'border-image-width'>|/ <'border-image-width'>? / <'border-image-outset'>]?||<'border-image-repeat'>","border-image-outset":"[<length>|<number>]{1,4}","border-image-repeat":"[stretch|repeat|round|space]{1,2}","border-image-slice":"<number-percentage>{1,4}&&fill?","border-image-source":"none|<image>","border-image-width":"[<length-percentage>|<number>|auto]{1,4}","border-inline":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-end":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-color":"<'border-top-color'>{1,2}","border-inline-style":"<'border-top-style'>","border-inline-width":"<'border-top-width'>","border-inline-end-color":"<'border-top-color'>","border-inline-end-style":"<'border-top-style'>","border-inline-end-width":"<'border-top-width'>","border-inline-start":"<'border-top-width'>||<'border-top-style'>||<color>","border-inline-start-color":"<'border-top-color'>","border-inline-start-style":"<'border-top-style'>","border-inline-start-width":"<'border-top-width'>","border-left":"<line-width>||<line-style>||<color>","border-left-color":"<color>","border-left-style":"<line-style>","border-left-width":"<line-width>","border-radius":"<length-percentage>{1,4} [/ <length-percentage>{1,4}]?","border-right":"<line-width>||<line-style>||<color>","border-right-color":"<color>","border-right-style":"<line-style>","border-right-width":"<line-width>","border-spacing":"<length> <length>?","border-start-end-radius":"<length-percentage>{1,2}","border-start-start-radius":"<length-percentage>{1,2}","border-style":"<line-style>{1,4}","border-top":"<line-width>||<line-style>||<color>","border-top-color":"<color>","border-top-left-radius":"<length-percentage>{1,2}","border-top-right-radius":"<length-percentage>{1,2}","border-top-style":"<line-style>","border-top-width":"<line-width>","border-width":"<line-width>{1,4}",bottom:"<length>|<percentage>|auto","box-align":"start|center|end|baseline|stretch","box-decoration-break":"slice|clone","box-direction":"normal|reverse|inherit","box-flex":"<number>","box-flex-group":"<integer>","box-lines":"single|multiple","box-ordinal-group":"<integer>","box-orient":"horizontal|vertical|inline-axis|block-axis|inherit","box-pack":"start|center|end|justify","box-shadow":"none|<shadow>#","box-sizing":"content-box|border-box","break-after":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-before":"auto|avoid|always|all|avoid-page|page|left|right|recto|verso|avoid-column|column|avoid-region|region","break-inside":"auto|avoid|avoid-page|avoid-column|avoid-region","caption-side":"top|bottom|block-start|block-end|inline-start|inline-end",caret:"<'caret-color'>||<'caret-shape'>","caret-color":"auto|<color>","caret-shape":"auto|bar|block|underscore",clear:"none|left|right|both|inline-start|inline-end",clip:"<shape>|auto","clip-path":"<clip-source>|[<basic-shape>||<geometry-box>]|none",color:"<color>","print-color-adjust":"economy|exact","color-scheme":"normal|[light|dark|<custom-ident>]+&&only?","column-count":"<integer>|auto","column-fill":"auto|balance|balance-all","column-gap":"normal|<length-percentage>","column-rule":"<'column-rule-width'>||<'column-rule-style'>||<'column-rule-color'>","column-rule-color":"<color>","column-rule-style":"<'border-style'>","column-rule-width":"<'border-width'>","column-span":"none|all","column-width":"<length>|auto",columns:"<'column-width'>||<'column-count'>",contain:"none|strict|content|[[size||inline-size]||layout||style||paint]","contain-intrinsic-size":"[none|<length>|auto <length>]{1,2}","contain-intrinsic-block-size":"none|<length>|auto <length>","contain-intrinsic-height":"none|<length>|auto <length>","contain-intrinsic-inline-size":"none|<length>|auto <length>","contain-intrinsic-width":"none|<length>|auto <length>",content:"normal|none|[<content-replacement>|<content-list>] [/ [<string>|<counter>]+]?","content-visibility":"visible|auto|hidden","counter-increment":"[<counter-name> <integer>?]+|none","counter-reset":"[<counter-name> <integer>?|<reversed-counter-name> <integer>?]+|none","counter-set":"[<counter-name> <integer>?]+|none",cursor:"[[<url> [<x> <y>]? ,]* [auto|default|none|context-menu|help|pointer|progress|wait|cell|crosshair|text|vertical-text|alias|copy|move|no-drop|not-allowed|e-resize|n-resize|ne-resize|nw-resize|s-resize|se-resize|sw-resize|w-resize|ew-resize|ns-resize|nesw-resize|nwse-resize|col-resize|row-resize|all-scroll|zoom-in|zoom-out|grab|grabbing|hand|-webkit-grab|-webkit-grabbing|-webkit-zoom-in|-webkit-zoom-out|-moz-grab|-moz-grabbing|-moz-zoom-in|-moz-zoom-out]]",direction:"ltr|rtl",display:"[<display-outside>||<display-inside>]|<display-listitem>|<display-internal>|<display-box>|<display-legacy>|<-non-standard-display>","empty-cells":"show|hide",filter:"none|<filter-function-list>|<-ms-filter-function-list>",flex:"none|[<'flex-grow'> <'flex-shrink'>?||<'flex-basis'>]","flex-basis":"content|<'width'>","flex-direction":"row|row-reverse|column|column-reverse","flex-flow":"<'flex-direction'>||<'flex-wrap'>","flex-grow":"<number>","flex-shrink":"<number>","flex-wrap":"nowrap|wrap|wrap-reverse",float:"left|right|none|inline-start|inline-end",font:"[[<'font-style'>||<font-variant-css21>||<'font-weight'>||<'font-stretch'>]? <'font-size'> [/ <'line-height'>]? <'font-family'>]|caption|icon|menu|message-box|small-caption|status-bar","font-family":"[<family-name>|<generic-family>]#","font-feature-settings":"normal|<feature-tag-value>#","font-kerning":"auto|normal|none","font-language-override":"normal|<string>","font-optical-sizing":"auto|none","font-variation-settings":"normal|[<string> <number>]#","font-size":"<absolute-size>|<relative-size>|<length-percentage>","font-size-adjust":"none|[ex-height|cap-height|ch-width|ic-width|ic-height]? [from-font|<number>]","font-smooth":"auto|never|always|<absolute-size>|<length>","font-stretch":"<font-stretch-absolute>","font-style":"normal|italic|oblique <angle>?","font-synthesis":"none|[weight||style||small-caps]","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-alternates":"normal|[stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )]","font-variant-caps":"normal|small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps","font-variant-east-asian":"normal|[<east-asian-variant-values>||<east-asian-width-values>||ruby]","font-variant-ligatures":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>]","font-variant-numeric":"normal|[<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero]","font-variant-position":"normal|sub|super","font-weight":"<font-weight-absolute>|bolder|lighter","forced-color-adjust":"auto|none",gap:"<'row-gap'> <'column-gap'>?",grid:"<'grid-template'>|<'grid-template-rows'> / [auto-flow&&dense?] <'grid-auto-columns'>?|[auto-flow&&dense?] <'grid-auto-rows'>? / <'grid-template-columns'>","grid-area":"<grid-line> [/ <grid-line>]{0,3}","grid-auto-columns":"<track-size>+","grid-auto-flow":"[row|column]||dense","grid-auto-rows":"<track-size>+","grid-column":"<grid-line> [/ <grid-line>]?","grid-column-end":"<grid-line>","grid-column-gap":"<length-percentage>","grid-column-start":"<grid-line>","grid-gap":"<'grid-row-gap'> <'grid-column-gap'>?","grid-row":"<grid-line> [/ <grid-line>]?","grid-row-end":"<grid-line>","grid-row-gap":"<length-percentage>","grid-row-start":"<grid-line>","grid-template":"none|[<'grid-template-rows'> / <'grid-template-columns'>]|[<line-names>? <string> <track-size>? <line-names>?]+ [/ <explicit-track-list>]?","grid-template-areas":"none|<string>+","grid-template-columns":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","grid-template-rows":"none|<track-list>|<auto-track-list>|subgrid <line-name-list>?","hanging-punctuation":"none|[first||[force-end|allow-end]||last]",height:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","hyphenate-character":"auto|<string>",hyphens:"none|manual|auto","image-orientation":"from-image|<angle>|[<angle>? flip]","image-rendering":"auto|crisp-edges|pixelated|optimizeSpeed|optimizeQuality|<-non-standard-image-rendering>","image-resolution":"[from-image||<resolution>]&&snap?","ime-mode":"auto|normal|active|inactive|disabled","initial-letter":"normal|[<number> <integer>?]","initial-letter-align":"[auto|alphabetic|hanging|ideographic]","inline-size":"<'width'>","input-security":"auto|none",inset:"<'top'>{1,4}","inset-block":"<'top'>{1,2}","inset-block-end":"<'top'>","inset-block-start":"<'top'>","inset-inline":"<'top'>{1,2}","inset-inline-end":"<'top'>","inset-inline-start":"<'top'>",isolation:"auto|isolate","justify-content":"normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]","justify-items":"normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]|legacy|legacy&&[left|right|center]","justify-self":"auto|normal|stretch|<baseline-position>|<overflow-position>? [<self-position>|left|right]","justify-tracks":"[normal|<content-distribution>|<overflow-position>? [<content-position>|left|right]]#",left:"<length>|<percentage>|auto","letter-spacing":"normal|<length-percentage>","line-break":"auto|loose|normal|strict|anywhere","line-clamp":"none|<integer>","line-height":"normal|<number>|<length>|<percentage>","line-height-step":"<length>","list-style":"<'list-style-type'>||<'list-style-position'>||<'list-style-image'>","list-style-image":"<image>|none","list-style-position":"inside|outside","list-style-type":"<counter-style>|<string>|none",margin:"[<length>|<percentage>|auto]{1,4}","margin-block":"<'margin-left'>{1,2}","margin-block-end":"<'margin-left'>","margin-block-start":"<'margin-left'>","margin-bottom":"<length>|<percentage>|auto","margin-inline":"<'margin-left'>{1,2}","margin-inline-end":"<'margin-left'>","margin-inline-start":"<'margin-left'>","margin-left":"<length>|<percentage>|auto","margin-right":"<length>|<percentage>|auto","margin-top":"<length>|<percentage>|auto","margin-trim":"none|in-flow|all",mask:"<mask-layer>#","mask-border":"<'mask-border-source'>||<'mask-border-slice'> [/ <'mask-border-width'>? [/ <'mask-border-outset'>]?]?||<'mask-border-repeat'>||<'mask-border-mode'>","mask-border-mode":"luminance|alpha","mask-border-outset":"[<length>|<number>]{1,4}","mask-border-repeat":"[stretch|repeat|round|space]{1,2}","mask-border-slice":"<number-percentage>{1,4} fill?","mask-border-source":"none|<image>","mask-border-width":"[<length-percentage>|<number>|auto]{1,4}","mask-clip":"[<geometry-box>|no-clip]#","mask-composite":"<compositing-operator>#","mask-image":"<mask-reference>#","mask-mode":"<masking-mode>#","mask-origin":"<geometry-box>#","mask-position":"<position>#","mask-repeat":"<repeat-style>#","mask-size":"<bg-size>#","mask-type":"luminance|alpha","masonry-auto-flow":"[pack|next]||[definite-first|ordered]","math-depth":"auto-add|add( <integer> )|<integer>","math-shift":"normal|compact","math-style":"normal|compact","max-block-size":"<'max-width'>","max-height":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","max-inline-size":"<'max-width'>","max-lines":"none|<integer>","max-width":"none|<length-percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|<-non-standard-width>","min-block-size":"<'min-width'>","min-height":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )","min-inline-size":"<'min-width'>","min-width":"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|<-non-standard-width>","mix-blend-mode":"<blend-mode>|plus-lighter","object-fit":"fill|contain|cover|none|scale-down","object-position":"<position>",offset:"[<'offset-position'>? [<'offset-path'> [<'offset-distance'>||<'offset-rotate'>]?]?]! [/ <'offset-anchor'>]?","offset-anchor":"auto|<position>","offset-distance":"<length-percentage>","offset-path":"none|ray( [<angle>&&<size>&&contain?] )|<path()>|<url>|[<basic-shape>||<geometry-box>]","offset-position":"auto|<position>","offset-rotate":"[auto|reverse]||<angle>",opacity:"<alpha-value>",order:"<integer>",orphans:"<integer>",outline:"[<'outline-color'>||<'outline-style'>||<'outline-width'>]","outline-color":"<color>|invert","outline-offset":"<length>","outline-style":"auto|<'border-style'>","outline-width":"<line-width>",overflow:"[visible|hidden|clip|scroll|auto]{1,2}|<-non-standard-overflow>","overflow-anchor":"auto|none","overflow-block":"visible|hidden|clip|scroll|auto","overflow-clip-box":"padding-box|content-box","overflow-clip-margin":"<visual-box>||<length [0,\u221E]>","overflow-inline":"visible|hidden|clip|scroll|auto","overflow-wrap":"normal|break-word|anywhere","overflow-x":"visible|hidden|clip|scroll|auto","overflow-y":"visible|hidden|clip|scroll|auto","overscroll-behavior":"[contain|none|auto]{1,2}","overscroll-behavior-block":"contain|none|auto","overscroll-behavior-inline":"contain|none|auto","overscroll-behavior-x":"contain|none|auto","overscroll-behavior-y":"contain|none|auto",padding:"[<length>|<percentage>]{1,4}","padding-block":"<'padding-left'>{1,2}","padding-block-end":"<'padding-left'>","padding-block-start":"<'padding-left'>","padding-bottom":"<length>|<percentage>","padding-inline":"<'padding-left'>{1,2}","padding-inline-end":"<'padding-left'>","padding-inline-start":"<'padding-left'>","padding-left":"<length>|<percentage>","padding-right":"<length>|<percentage>","padding-top":"<length>|<percentage>","page-break-after":"auto|always|avoid|left|right|recto|verso","page-break-before":"auto|always|avoid|left|right|recto|verso","page-break-inside":"auto|avoid","paint-order":"normal|[fill||stroke||markers]",perspective:"none|<length>","perspective-origin":"<position>","place-content":"<'align-content'> <'justify-content'>?","place-items":"<'align-items'> <'justify-items'>?","place-self":"<'align-self'> <'justify-self'>?","pointer-events":"auto|none|visiblePainted|visibleFill|visibleStroke|visible|painted|fill|stroke|all|inherit",position:"static|relative|absolute|sticky|fixed|-webkit-sticky",quotes:"none|auto|[<string> <string>]+",resize:"none|both|horizontal|vertical|block|inline",right:"<length>|<percentage>|auto",rotate:"none|<angle>|[x|y|z|<number>{3}]&&<angle>","row-gap":"normal|<length-percentage>","ruby-align":"start|center|space-between|space-around","ruby-merge":"separate|collapse|auto","ruby-position":"[alternate||[over|under]]|inter-character",scale:"none|<number>{1,3}","scrollbar-color":"auto|<color>{2}","scrollbar-gutter":"auto|stable&&both-edges?","scrollbar-width":"auto|thin|none","scroll-behavior":"auto|smooth","scroll-margin":"<length>{1,4}","scroll-margin-block":"<length>{1,2}","scroll-margin-block-start":"<length>","scroll-margin-block-end":"<length>","scroll-margin-bottom":"<length>","scroll-margin-inline":"<length>{1,2}","scroll-margin-inline-start":"<length>","scroll-margin-inline-end":"<length>","scroll-margin-left":"<length>","scroll-margin-right":"<length>","scroll-margin-top":"<length>","scroll-padding":"[auto|<length-percentage>]{1,4}","scroll-padding-block":"[auto|<length-percentage>]{1,2}","scroll-padding-block-start":"auto|<length-percentage>","scroll-padding-block-end":"auto|<length-percentage>","scroll-padding-bottom":"auto|<length-percentage>","scroll-padding-inline":"[auto|<length-percentage>]{1,2}","scroll-padding-inline-start":"auto|<length-percentage>","scroll-padding-inline-end":"auto|<length-percentage>","scroll-padding-left":"auto|<length-percentage>","scroll-padding-right":"auto|<length-percentage>","scroll-padding-top":"auto|<length-percentage>","scroll-snap-align":"[none|start|end|center]{1,2}","scroll-snap-coordinate":"none|<position>#","scroll-snap-destination":"<position>","scroll-snap-points-x":"none|repeat( <length-percentage> )","scroll-snap-points-y":"none|repeat( <length-percentage> )","scroll-snap-stop":"normal|always","scroll-snap-type":"none|[x|y|block|inline|both] [mandatory|proximity]?","scroll-snap-type-x":"none|mandatory|proximity","scroll-snap-type-y":"none|mandatory|proximity","scroll-timeline":"<scroll-timeline-name>||<scroll-timeline-axis>","scroll-timeline-axis":"block|inline|vertical|horizontal","scroll-timeline-name":"none|<custom-ident>","shape-image-threshold":"<alpha-value>","shape-margin":"<length-percentage>","shape-outside":"none|[<shape-box>||<basic-shape>]|<image>","tab-size":"<integer>|<length>","table-layout":"auto|fixed","text-align":"start|end|left|right|center|justify|match-parent","text-align-last":"auto|start|end|left|right|center|justify","text-combine-upright":"none|all|[digits <integer>?]","text-decoration":"<'text-decoration-line'>||<'text-decoration-style'>||<'text-decoration-color'>||<'text-decoration-thickness'>","text-decoration-color":"<color>","text-decoration-line":"none|[underline||overline||line-through||blink]|spelling-error|grammar-error","text-decoration-skip":"none|[objects||[spaces|[leading-spaces||trailing-spaces]]||edges||box-decoration]","text-decoration-skip-ink":"auto|all|none","text-decoration-style":"solid|double|dotted|dashed|wavy","text-decoration-thickness":"auto|from-font|<length>|<percentage>","text-emphasis":"<'text-emphasis-style'>||<'text-emphasis-color'>","text-emphasis-color":"<color>","text-emphasis-position":"[over|under]&&[right|left]","text-emphasis-style":"none|[[filled|open]||[dot|circle|double-circle|triangle|sesame]]|<string>","text-indent":"<length-percentage>&&hanging?&&each-line?","text-justify":"auto|inter-character|inter-word|none","text-orientation":"mixed|upright|sideways","text-overflow":"[clip|ellipsis|<string>]{1,2}","text-rendering":"auto|optimizeSpeed|optimizeLegibility|geometricPrecision","text-shadow":"none|<shadow-t>#","text-size-adjust":"none|auto|<percentage>","text-transform":"none|capitalize|uppercase|lowercase|full-width|full-size-kana","text-underline-offset":"auto|<length>|<percentage>","text-underline-position":"auto|from-font|[under||[left|right]]",top:"<length>|<percentage>|auto","touch-action":"auto|none|[[pan-x|pan-left|pan-right]||[pan-y|pan-up|pan-down]||pinch-zoom]|manipulation",transform:"none|<transform-list>","transform-box":"content-box|border-box|fill-box|stroke-box|view-box","transform-origin":"[<length-percentage>|left|center|right|top|bottom]|[[<length-percentage>|left|center|right]&&[<length-percentage>|top|center|bottom]] <length>?","transform-style":"flat|preserve-3d",transition:"<single-transition>#","transition-delay":"<time>#","transition-duration":"<time>#","transition-property":"none|<single-transition-property>#","transition-timing-function":"<easing-function>#",translate:"none|<length-percentage> [<length-percentage> <length>?]?","unicode-bidi":"normal|embed|isolate|bidi-override|isolate-override|plaintext|-moz-isolate|-moz-isolate-override|-moz-plaintext|-webkit-isolate|-webkit-isolate-override|-webkit-plaintext","user-select":"auto|text|none|contain|all","vertical-align":"baseline|sub|super|text-top|text-bottom|middle|top|bottom|<percentage>|<length>",visibility:"visible|hidden|collapse","white-space":"normal|pre|nowrap|pre-wrap|pre-line|break-spaces",widows:"<integer>",width:"auto|<length>|<percentage>|min-content|max-content|fit-content|fit-content( <length-percentage> )|fill|stretch|intrinsic|-moz-max-content|-webkit-max-content|-moz-fit-content|-webkit-fit-content","will-change":"auto|<animateable-feature>#","word-break":"normal|break-all|keep-all|break-word","word-spacing":"normal|<length>","word-wrap":"normal|break-word","writing-mode":"horizontal-tb|vertical-rl|vertical-lr|sideways-rl|sideways-lr|<svg-writing-mode>","z-index":"auto|<integer>",zoom:"normal|reset|<number>|<percentage>","-moz-background-clip":"padding|border","-moz-border-radius-bottomleft":"<'border-bottom-left-radius'>","-moz-border-radius-bottomright":"<'border-bottom-right-radius'>","-moz-border-radius-topleft":"<'border-top-left-radius'>","-moz-border-radius-topright":"<'border-bottom-right-radius'>","-moz-control-character-visibility":"visible|hidden","-moz-osx-font-smoothing":"auto|grayscale","-moz-user-select":"none|text|all|-moz-none","-ms-flex-align":"start|end|center|baseline|stretch","-ms-flex-item-align":"auto|start|end|center|baseline|stretch","-ms-flex-line-pack":"start|end|center|justify|distribute|stretch","-ms-flex-negative":"<'flex-shrink'>","-ms-flex-pack":"start|end|center|justify|distribute","-ms-flex-order":"<integer>","-ms-flex-positive":"<'flex-grow'>","-ms-flex-preferred-size":"<'flex-basis'>","-ms-interpolation-mode":"nearest-neighbor|bicubic","-ms-grid-column-align":"start|end|center|stretch","-ms-grid-row-align":"start|end|center|stretch","-ms-hyphenate-limit-last":"none|always|column|page|spread","-webkit-background-clip":"[<box>|border|padding|content|text]#","-webkit-column-break-after":"always|auto|avoid","-webkit-column-break-before":"always|auto|avoid","-webkit-column-break-inside":"always|auto|avoid","-webkit-font-smoothing":"auto|none|antialiased|subpixel-antialiased","-webkit-mask-box-image":"[<url>|<gradient>|none] [<length-percentage>{4} <-webkit-mask-box-repeat>{2}]?","-webkit-print-color-adjust":"economy|exact","-webkit-text-security":"none|circle|disc|square","-webkit-user-drag":"none|element|auto","-webkit-user-select":"auto|none|text|all","alignment-baseline":"auto|baseline|before-edge|text-before-edge|middle|central|after-edge|text-after-edge|ideographic|alphabetic|hanging|mathematical","baseline-shift":"baseline|sub|super|<svg-length>",behavior:"<url>+","clip-rule":"nonzero|evenodd",container:"<'container-name'> [/ <'container-type'>]?","container-name":"none|<custom-ident>+","container-type":"normal||[size|inline-size]",cue:"<'cue-before'> <'cue-after'>?","cue-after":"<url> <decibel>?|none","cue-before":"<url> <decibel>?|none","dominant-baseline":"auto|use-script|no-change|reset-size|ideographic|alphabetic|hanging|mathematical|central|middle|text-after-edge|text-before-edge",fill:"<paint>","fill-opacity":"<number-zero-one>","fill-rule":"nonzero|evenodd","glyph-orientation-horizontal":"<angle>","glyph-orientation-vertical":"<angle>",kerning:"auto|<svg-length>",marker:"none|<url>","marker-end":"none|<url>","marker-mid":"none|<url>","marker-start":"none|<url>",pause:"<'pause-before'> <'pause-after'>?","pause-after":"<time>|none|x-weak|weak|medium|strong|x-strong","pause-before":"<time>|none|x-weak|weak|medium|strong|x-strong",rest:"<'rest-before'> <'rest-after'>?","rest-after":"<time>|none|x-weak|weak|medium|strong|x-strong","rest-before":"<time>|none|x-weak|weak|medium|strong|x-strong","shape-rendering":"auto|optimizeSpeed|crispEdges|geometricPrecision",src:"[<url> [format( <string># )]?|local( <family-name> )]#",speak:"auto|none|normal","speak-as":"normal|spell-out||digits||[literal-punctuation|no-punctuation]",stroke:"<paint>","stroke-dasharray":"none|[<svg-length>+]#","stroke-dashoffset":"<svg-length>","stroke-linecap":"butt|round|square","stroke-linejoin":"miter|round|bevel","stroke-miterlimit":"<number-one-or-greater>","stroke-opacity":"<number-zero-one>","stroke-width":"<svg-length>","text-anchor":"start|middle|end","unicode-range":"<urange>#","voice-balance":"<number>|left|center|right|leftwards|rightwards","voice-duration":"auto|<time>","voice-family":"[[<family-name>|<generic-voice>] ,]* [<family-name>|<generic-voice>]|preserve","voice-pitch":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-range":"<frequency>&&absolute|[[x-low|low|medium|high|x-high]||[<frequency>|<semitones>|<percentage>]]","voice-rate":"[normal|x-slow|slow|medium|fast|x-fast]||<percentage>","voice-stress":"normal|strong|moderate|none|reduced","voice-volume":"silent|[[x-soft|soft|medium|loud|x-loud]||<decibel>]"},atrules:{charset:{prelude:"<string>",descriptors:null},"counter-style":{prelude:"<counter-style-name>",descriptors:{"additive-symbols":"[<integer>&&<symbol>]#",fallback:"<counter-style-name>",negative:"<symbol> <symbol>?",pad:"<integer>&&<symbol>",prefix:"<symbol>",range:"[[<integer>|infinite]{2}]#|auto","speak-as":"auto|bullets|numbers|words|spell-out|<counter-style-name>",suffix:"<symbol>",symbols:"<symbol>+",system:"cyclic|numeric|alphabetic|symbolic|additive|[fixed <integer>?]|[extends <counter-style-name>]"}},document:{prelude:"[<url>|url-prefix( <string> )|domain( <string> )|media-document( <string> )|regexp( <string> )]#",descriptors:null},"font-face":{prelude:null,descriptors:{"ascent-override":"normal|<percentage>","descent-override":"normal|<percentage>","font-display":"[auto|block|swap|fallback|optional]","font-family":"<family-name>","font-feature-settings":"normal|<feature-tag-value>#","font-variation-settings":"normal|[<string> <number>]#","font-stretch":"<font-stretch-absolute>{1,2}","font-style":"normal|italic|oblique <angle>{0,2}","font-weight":"<font-weight-absolute>{1,2}","font-variant":"normal|none|[<common-lig-values>||<discretionary-lig-values>||<historical-lig-values>||<contextual-alt-values>||stylistic( <feature-value-name> )||historical-forms||styleset( <feature-value-name># )||character-variant( <feature-value-name># )||swash( <feature-value-name> )||ornaments( <feature-value-name> )||annotation( <feature-value-name> )||[small-caps|all-small-caps|petite-caps|all-petite-caps|unicase|titling-caps]||<numeric-figure-values>||<numeric-spacing-values>||<numeric-fraction-values>||ordinal||slashed-zero||<east-asian-variant-values>||<east-asian-width-values>||ruby]","line-gap-override":"normal|<percentage>","size-adjust":"<percentage>",src:"[<url> [format( <string># )]?|local( <family-name> )]#","unicode-range":"<urange>#"}},"font-feature-values":{prelude:"<family-name>#",descriptors:null},import:{prelude:"[<string>|<url>] [layer|layer( <layer-name> )]? [supports( [<supports-condition>|<declaration>] )]? <media-query-list>?",descriptors:null},keyframes:{prelude:"<keyframes-name>",descriptors:null},layer:{prelude:"[<layer-name>#|<layer-name>?]",descriptors:null},media:{prelude:"<media-query-list>",descriptors:null},namespace:{prelude:"<namespace-prefix>? [<string>|<url>]",descriptors:null},page:{prelude:"<page-selector-list>",descriptors:{bleed:"auto|<length>",marks:"none|[crop||cross]",size:"<length>{1,2}|auto|[<page-size>||[portrait|landscape]]"}},property:{prelude:"<custom-property-name>",descriptors:{syntax:"<string>",inherits:"true|false","initial-value":"<string>"}},"scroll-timeline":{prelude:"<timeline-name>",descriptors:null},supports:{prelude:"<supports-condition>",descriptors:null},viewport:{prelude:null,descriptors:{height:"<viewport-length>{1,2}","max-height":"<viewport-length>","max-width":"<viewport-length>","max-zoom":"auto|<number>|<percentage>","min-height":"<viewport-length>","min-width":"<viewport-length>","min-zoom":"auto|<number>|<percentage>",orientation:"auto|portrait|landscape","user-zoom":"zoom|fixed","viewport-fit":"auto|contain|cover",width:"<viewport-length>{1,2}",zoom:"auto|<number>|<percentage>"}},container:{prelude:"[<container-name>]? <container-condition>",descriptors:null},nest:{prelude:"<complex-selector-list>",descriptors:null}}},sl={};B(sl,{AnPlusB:()=>Ud,Atrule:()=>Gd,AtrulePrelude:()=>Hd,AttributeSelector:()=>Zd,Block:()=>Xd,Brackets:()=>tf,CDC:()=>rf,CDO:()=>sf,ClassSelector:()=>lf,Combinator:()=>cf,Comment:()=>df,Declaration:()=>mf,DeclarationList:()=>yf,Dimension:()=>Df,Function:()=>vf,Hash:()=>xf,IdSelector:()=>Ef,Identifier:()=>Ff,MediaFeature:()=>Tf,MediaQuery:()=>Of,MediaQueryList:()=>Bf,NestingSelector:()=>jf,Nth:()=>Lf,Number:()=>Mf,Operator:()=>zf,Parentheses:()=>Uf,Percentage:()=>Gf,PseudoClassSelector:()=>Hf,PseudoElementSelector:()=>Zf,Ratio:()=>Yf,Raw:()=>Qf,Rule:()=>tm,Selector:()=>rm,SelectorList:()=>im,String:()=>am,StyleSheet:()=>dm,TypeSelector:()=>mm,UnicodeRange:()=>gm,Url:()=>wm,Value:()=>Fm,WhiteSpace:()=>Em});Ud={};B(Ud,{generate:()=>Q0,name:()=>Y0,parse:()=>Vd,structure:()=>X0});Ke=43,ke=45,Uo=110,Ht=!0,K0=!1;Y0="AnPlusB",X0={a:[String,null],b:[String,null]};Gd={};B(Gd,{generate:()=>ov,name:()=>tv,parse:()=>qd,structure:()=>rv,walkContext:()=>nv});tv="Atrule",nv="atrule",rv={name:String,prelude:["AtrulePrelude","Raw",null],block:["Block",null]};Hd={};B(Hd,{generate:()=>lv,name:()=>iv,parse:()=>Jd,structure:()=>av,walkContext:()=>sv});iv="AtrulePrelude",sv="atrulePrelude",av={children:[[]]};Zd={};B(Zd,{generate:()=>gv,name:()=>mv,parse:()=>Yd,structure:()=>hv});uv=36,Kd=42,Go=61,cv=94,La=124,pv=126;mv="AttributeSelector",hv={name:"Identifier",matcher:[String,null],value:["String","Identifier",null],flags:[String,null]};Xd={};B(Xd,{generate:()=>kv,name:()=>Dv,parse:()=>ef,structure:()=>vv,walkContext:()=>wv});yv=38;Dv="Block",wv="block",vv={children:[["Atrule","Rule","Declaration"]]};tf={};B(tf,{generate:()=>Fv,name:()=>xv,parse:()=>nf,structure:()=>Cv});xv="Brackets",Cv={children:[[]]};rf={};B(rf,{generate:()=>Sv,name:()=>_v,parse:()=>of,structure:()=>Ev});_v="CDC",Ev=[];sf={};B(sf,{generate:()=>Ov,name:()=>Tv,parse:()=>af,structure:()=>Av});Tv="CDO",Av=[];lf={};B(lf,{generate:()=>jv,name:()=>Bv,parse:()=>uf,structure:()=>Iv});Pv=46,Bv="ClassSelector",Iv={name:String};cf={};B(cf,{generate:()=>zv,name:()=>Mv,parse:()=>pf,structure:()=>$v});Rv=43,rd=47,Lv=62,Nv=126,Mv="Combinator",$v={name:String};df={};B(df,{generate:()=>qv,name:()=>Vv,parse:()=>ff,structure:()=>Gv});Wv=42,Uv=47,Vv="Comment",Gv={value:String};mf={};B(mf,{generate:()=>ok,name:()=>tk,parse:()=>gf,structure:()=>rk,walkContext:()=>nk});hf=33,Hv=35,Jv=36,Zv=38,Kv=42,Yv=43,od=47;tk="Declaration",nk="declaration",rk={important:[Boolean,String],property:String,value:["Value","Raw"]};yf={};B(yf,{generate:()=>ck,name:()=>lk,parse:()=>bf,structure:()=>uk});ak=38;lk="DeclarationList",uk={children:[["Declaration","Atrule","Rule"]]};Df={};B(Df,{generate:()=>fk,name:()=>pk,parse:()=>wf,structure:()=>dk});pk="Dimension",dk={value:String,unit:String};vf={};B(vf,{generate:()=>yk,name:()=>mk,parse:()=>kf,structure:()=>gk,walkContext:()=>hk});mk="Function",hk="function",gk={name:String,children:[[]]};xf={};B(xf,{generate:()=>vk,name:()=>Dk,parse:()=>Cf,structure:()=>wk,xxx:()=>bk});bk="XXX",Dk="Hash",wk={value:String};Ff={};B(Ff,{generate:()=>Ck,name:()=>kk,parse:()=>_f,structure:()=>xk});kk="Identifier",xk={name:String};Ef={};B(Ef,{generate:()=>Ek,name:()=>Fk,parse:()=>Sf,structure:()=>_k});Fk="IdSelector",_k={name:String};Tf={};B(Tf,{generate:()=>Ak,name:()=>Sk,parse:()=>Af,structure:()=>Tk});Sk="MediaFeature",Tk={name:String,value:["Identifier","Number","Dimension","Ratio",null]};Of={};B(Of,{generate:()=>Bk,name:()=>Ok,parse:()=>Pf,structure:()=>Pk});Ok="MediaQuery",Pk={children:[["Identifier","MediaFeature","WhiteSpace"]]};Bf={};B(Bf,{generate:()=>Rk,name:()=>Ik,parse:()=>If,structure:()=>jk});Ik="MediaQueryList",jk={children:[["MediaQuery"]]};jf={};B(jf,{generate:()=>$k,name:()=>Nk,parse:()=>Rf,structure:()=>Mk});Lk=38,Nk="NestingSelector",Mk={};Lf={};B(Lf,{generate:()=>Uk,name:()=>zk,parse:()=>Nf,structure:()=>Wk});zk="Nth",Wk={nth:["AnPlusB","Identifier"],selector:["SelectorList",null]};Mf={};B(Mf,{generate:()=>qk,name:()=>Vk,parse:()=>$f,structure:()=>Gk});Vk="Number",Gk={value:String};zf={};B(zf,{generate:()=>Zk,name:()=>Hk,parse:()=>Wf,structure:()=>Jk});Hk="Operator",Jk={value:String};Uf={};B(Uf,{generate:()=>Xk,name:()=>Kk,parse:()=>Vf,structure:()=>Yk});Kk="Parentheses",Yk={children:[[]]};Gf={};B(Gf,{generate:()=>tx,name:()=>Qk,parse:()=>qf,structure:()=>ex});Qk="Percentage",ex={value:String};Hf={};B(Hf,{generate:()=>ix,name:()=>nx,parse:()=>Jf,structure:()=>ox,walkContext:()=>rx});nx="PseudoClassSelector",rx="function",ox={name:String,children:[["Raw"],null]};Zf={};B(Zf,{generate:()=>ux,name:()=>sx,parse:()=>Kf,structure:()=>lx,walkContext:()=>ax});sx="PseudoElementSelector",ax="function",lx={name:String,children:[["Raw"],null]};Yf={};B(Yf,{generate:()=>mx,name:()=>dx,parse:()=>Xf,structure:()=>fx});cx=47,px=46;dx="Ratio",fx={left:String,right:String};Qf={};B(Qf,{generate:()=>bx,name:()=>gx,parse:()=>em,structure:()=>yx});gx="Raw",yx={value:String};tm={};B(tm,{generate:()=>xx,name:()=>wx,parse:()=>nm,structure:()=>kx,walkContext:()=>vx});wx="Rule",vx="rule",kx={prelude:["SelectorList","Raw"],block:["Block"]};rm={};B(rm,{generate:()=>_x,name:()=>Cx,parse:()=>om,structure:()=>Fx});Cx="Selector",Fx={children:[["TypeSelector","IdSelector","ClassSelector","AttributeSelector","PseudoClassSelector","PseudoElementSelector","Combinator","WhiteSpace"]]};im={};B(im,{generate:()=>Ax,name:()=>Ex,parse:()=>sm,structure:()=>Tx,walkContext:()=>Sx});Ex="SelectorList",Sx="selector",Tx={children:[["Selector","Raw"]]};am={};B(am,{generate:()=>Ix,name:()=>Px,parse:()=>pm,structure:()=>Bx});Ox={};B(Ox,{decode:()=>al,encode:()=>cm});Na=92,lm=34,um=39;Px="String",Bx={value:String};dm={};B(dm,{generate:()=>Mx,name:()=>Rx,parse:()=>fm,structure:()=>Nx,walkContext:()=>Lx});jx=33;Rx="StyleSheet",Lx="stylesheet",Nx={children:[["Comment","CDO","CDC","Atrule","Rule","Raw"]]};mm={};B(mm,{generate:()=>Ux,name:()=>zx,parse:()=>hm,structure:()=>Wx});$x=42,ld=124;zx="TypeSelector",Wx={name:String};gm={};B(gm,{generate:()=>Jx,name:()=>qx,parse:()=>Dm,structure:()=>Hx});ym=43,bm=45,Ma=63;qx="UnicodeRange",Hx={value:String};wm={};B(wm,{generate:()=>n1,name:()=>e1,parse:()=>Cm,structure:()=>t1});Zx={};B(Zx,{decode:()=>km,encode:()=>xm});Kx=32,$a=92,Yx=34,Xx=39,Qx=40,vm=41;e1="Url",t1={value:String};Fm={};B(Fm,{generate:()=>i1,name:()=>r1,parse:()=>_m,structure:()=>o1});r1="Value",o1={children:[[]]};Em={};B(Em,{generate:()=>u1,name:()=>a1,parse:()=>Sm,structure:()=>l1});s1=Object.freeze({type:"WhiteSpace",loc:null,value:" "}),a1="WhiteSpace",l1={value:String};c1={generic:!0,...Z0,node:sl},Tm={};B(Tm,{AtrulePrelude:()=>g1,Selector:()=>E1,Value:()=>A1});p1=35,d1=42,ud=43,f1=45,m1=47,h1=117;g1={getNode:Am},y1=35,b1=38,D1=42,w1=43,v1=47,cd=46,k1=62,x1=124,C1=126;E1={onWhiteSpace:F1,getNode:_1};A1={getNode:Am,onWhiteSpace(e,t){pd(e)&&(e.value=" "+e.value),pd(t.last)&&(t.last.value+=" ")},expression:S1,var:T1},O1={parse:{prelude:null,block(){return this.Block(!0)}}},P1={parse:{prelude(){let e=this.createList();switch(this.skipSC(),this.tokenType){case 5:e.push(this.String());break;case 7:case 2:e.push(this.Url());break;default:this.error("String or url() is expected")}return(this.lookupNonWSType(0)===1||this.lookupNonWSType(0)===21)&&e.push(this.MediaQueryList()),e},block:null}},B1={parse:{prelude(){return this.createSingleNodeList(this.MediaQueryList())},block(e=!1){return this.Block(e)}}},I1={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}},j1={parse:{prelude(){return this.createSingleNodeList(this.SelectorList())},block(){return this.Block(!0)}}};N1={parse:{prelude(){let e=Om.call(this);return this.getFirstListNode(e)===null&&this.error("Condition is expected"),e},block(e=!1){return this.Block(e)}}},M1={"font-face":O1,import:P1,media:B1,nest:I1,page:j1,supports:N1},qt={parse(){return this.createSingleNodeList(this.SelectorList())}},Ca={parse(){return this.createSingleNodeList(this.Selector())}},dd={parse(){return this.createSingleNodeList(this.Identifier())}},$o={parse(){return this.createSingleNodeList(this.Nth())}},$1={dir:dd,has:qt,lang:dd,matches:qt,is:qt,"-moz-any":qt,"-webkit-any":qt,where:qt,not:qt,"nth-child":$o,"nth-last-child":$o,"nth-last-of-type":$o,"nth-of-type":$o,slotted:Ca,host:Ca,"host-context":Ca},Pm={};B(Pm,{AnPlusB:()=>Vd,Atrule:()=>qd,AtrulePrelude:()=>Jd,AttributeSelector:()=>Yd,Block:()=>ef,Brackets:()=>nf,CDC:()=>of,CDO:()=>af,ClassSelector:()=>uf,Combinator:()=>pf,Comment:()=>ff,Declaration:()=>gf,DeclarationList:()=>bf,Dimension:()=>wf,Function:()=>kf,Hash:()=>Cf,IdSelector:()=>Sf,Identifier:()=>_f,MediaFeature:()=>Af,MediaQuery:()=>Pf,MediaQueryList:()=>If,NestingSelector:()=>Rf,Nth:()=>Nf,Number:()=>$f,Operator:()=>Wf,Parentheses:()=>Vf,Percentage:()=>qf,PseudoClassSelector:()=>Jf,PseudoElementSelector:()=>Kf,Ratio:()=>Xf,Raw:()=>em,Rule:()=>nm,Selector:()=>om,SelectorList:()=>sm,String:()=>pm,StyleSheet:()=>fm,TypeSelector:()=>hm,UnicodeRange:()=>Dm,Url:()=>Cm,Value:()=>_m,WhiteSpace:()=>Sm});z1={parseContext:{default:"StyleSheet",stylesheet:"StyleSheet",atrule:"Atrule",atrulePrelude(e){return this.AtrulePrelude(e.atrule?String(e.atrule):null)},mediaQueryList:"MediaQueryList",mediaQuery:"MediaQuery",rule:"Rule",selectorList:"SelectorList",selector:"Selector",block(){return this.Block(!0)},declarationList:"DeclarationList",declaration:"Declaration",value:"Value"},scope:Tm,atrule:M1,pseudo:$1,node:Pm},W1={node:sl},U1=J0({...c1,...z1,...W1}),V1={};B(V1,{decode:()=>G1,encode:()=>q1});fd=92;({tokenize:ST,parse:Bm,generate:Im,lexer:TT,createLexer:AT,walk:jm,find:OT,findLast:PT,findAll:BT,toPlainObject:IT,fromPlainObject:jT,fork:RT}=U1)});function J1(e,t,n){let r=["ClassSelector","AttributeSelector","IdSelector","PseudoClassSelector"],o=["type"],i=["root"];if(e.type==="Rule"&&(e.prelude.type==="SelectorList"&&(e.prelude.children=new ie().fromArray(e.prelude.children.toArray().filter(s=>{let a="children"in s?s.children?.first:null;return!a||!r.includes(a.type)?!1:a.type==="PseudoClassSelector"?i.includes(a.name):a.type==="AttributeSelector"?!o.includes(a.name.name):!0}))),e.prelude.children.toArray().length===0&&n)){n.remove(t);return}}function Mm(e){if(d.info("Detected skipTagSelectors flag is enabled. Skipping global CSS tags."),!e)return Lm("");let t=oa(e?.css,!0);try{let n=Bm(t);jm(n,{enter:J1});let r=Nm.default.format([Im(n),H1].join(`
58
46
 
59
- `).trim(),{parser:"css"});return lh(r)}catch{return d.warn("There was a problem skipping global tags from CSS. Falling back to normal global CSS."),e}}function ph(e){return e.reduce((t,n)=>(n.name==="global"?t.globalCss=n:t.rest.push(n),t),{rest:[]})}var uh,$1,lh,dh=k(()=>{"use strict";ah();uh=D(require("prettier"));_a();G();$1=`
47
+ `).trim(),{parser:"css"});return Lm(r)}catch{return d.warn("There was a problem skipping global tags from CSS. Falling back to normal global CSS."),e}}function $m(e){return e.reduce((t,n)=>(n.name==="global"?t.globalCss=n:t.rest.push(n),t),{rest:[]})}var Nm,H1,Lm,zm=E(()=>{"use strict";Rm();Nm=D(require("prettier"));ia();q();H1=`
60
48
  .w-icon-slider-right:before {
61
49
  content: "\\e600";
62
50
  }
@@ -75,58 +63,54 @@ in your project root.`),new S(a)}}function Lp(e){if(!(e===void 0||e===!1)){if(ty
75
63
  .w-icon-file-upload-icon:before {
76
64
  content: "\\e903";
77
65
  }
78
- `;lh=e=>({name:"global",ext:"css",css:{__bootflow:{rule:e}},module:!1})});function z1(e){try{let t=JSON.parse(e);if(t.msg&&typeof t.msg=="string")return t.msg}catch{}return null}function fh(e){if(e.ok){switch(e.status){case 206:d.warn("You exceeded the limit of components and some components were not exported.");break;case 207:d.warn("Certain components couldn't be exported due to an unexpected error.");break}return}}async function mh(e){switch(e.status){case 400:{let t=await e.text(),n=z1(t);throw new Jn(n||"Bad request: The server rejected the request due to invalid input. Please check your configuration and try again.")}case 401:throw new Jn("Your access token is invalid for the provided siteId. Double check your configs in your .webflowrc configuration file.");case 404:throw new Jn("You're not currently enrolled in the DevLink beta. You can apply for access here: https://webflow.com/devlink");default:throw new Jn(`Something went wrong (HTTP ${e.status}).`)}}async function U1(e){try{let{siteId:t,host:n,authToken:r,components:o,cssModules:i,relativeHrefRoot:s}=e,a=new URLSearchParams({cssModules:i?"true":"false"});o&&a.append("components",o),s!==void 0&&a.append("relativeHrefRoot",String(s));let u=`?${a.toString()}`,l=await ze(`${n}/devlink/${t}${u}`,{headers:{Authorization:`Bearer ${r}`},timeout:6e4});if(fh(l),!l.ok)return mh(l);let c=await l.json();return c.components||c}catch(t){throw new S(t,{skipLogging:!0})}}async function V1(e){try{let{siteId:t,host:n,authToken:r}=e,o=await ze(`${n}/devlink/${t}/engine`,{headers:{Authorization:`Bearer ${r}`},timeout:6e4});return fh(o),o.ok?await o.json():mh(o)}catch(t){throw new S(t,{skipLogging:!0})}}async function Al(e){try{let[t,n]=await Promise.all([U1(e),V1(e)]),r=n;if(e.skipTagSelectors===!0){let{rest:o,globalCss:i}=ph(t),s=ch(i);r.push(...o,s)}else r.push(...t);await Wp(r,e)}catch(t){throw t instanceof S?t:new S(t,{skipLogging:!0})}}var Jn,hh=k(()=>{"use strict";G();_a();dh();Tn();de();Jn=class extends Error{constructor(t){super(t)}}});function vi(e){return async function(n){nn.default.removeListener("uncaughtException",vi),nn.default.removeListener("unhandledRejection",vi);let r=await Jo(e);if(!r)return;await new Ol(r,n).prompt()}}function gh(e){nn.default.on("uncaughtException",vi(e)),nn.default.on("unhandledRejection",vi(e))}var nn,Ol,yh=k(()=>{"use strict";nn=D(require("process"));G();Ur();Go();Te();Tn();Ol=class{config;error;constructor(t,n){this.config=t,this.error=n}stripPII(t=""){return t.replace(/\/(.*)webflow-cli/gi,"/REDACTED_PII/webflow-cli/").replace(/\/(.*)node_modules/gi,"/REDACTED_PII/node_modules")}sendTelemetry(){let t=this.config,n=this.error;ze(`${t.host}/devlink/${t.siteId}/telemetry`,{headers:{Authorization:`Bearer ${t.authToken}`,"Content-Type":"application/json"},method:"post",body:JSON.stringify({cause:n.cause,message:n.message,name:n.name,stack:this.stripPII(n.stack),platform:nn.default.platform,node:nn.default.version})})}async storeChoice(t){try{return ae({devlink:{allowTelemetry:t}})}catch{let r=await jn();await mp({...r,allowTelemetry:t})}}async prompt(){let t=this.config;if(d.error(this.error),t.allowTelemetry===!0)d.info("Sending crash report telemetry..."),this.sendTelemetry();else if(t.allowTelemetry===!1){d.info("Skipping crash report telemetry...");return}else d.info("Telemetry is enabled. Crash reports help us improve Webflow CLI."),d.info("To opt out, run: webflow auth telemetry --disable"),await this.storeChoice(!0),d.info("Sending crash report telemetry..."),this.sendTelemetry()}}});var bh={};os(bh,{syncComponents:()=>Pl});async function Pl(e,t){let n=Date.now(),r=t?.apiToken||no.default.env.WEBFLOW_SITE_API_TOKEN,o=t?.site||no.default.env.WEBFLOW_SITE_ID,i={...r?{authToken:r}:{},...o?{siteId:o}:{},...e&&e.length>0?{components:et(e),overwriteModule:!1}:{overwriteModule:!0},addIndexFile:!0};gh(i);let s=await Jo(i);if(!s)return no.default.exit();let a;try{a=he.forDevlinkSync(s)}catch(l){d.debug(`Failed to initialize telemetry: ${l}`)}await a?.sendUsage("devlink_sync_start",{specificComponents:e&&e.length>0,componentCount:e?.length||0,cssModules:s.cssModules,overwriteModule:s.overwriteModule,relativeHrefRoot:s.relativeHrefRoot});let u=d.spinner(`Exporting components into ${s.rootDir}`);try{await Al(s),u.succeed(`Successfully exported components into ${s.rootDir} folder`);let l=Date.now()-n;await a?.sendUsage("devlink_sync_success",{duration:l,specificComponents:e&&e.length>0,componentCount:e?.length||0,cssModules:s.cssModules,overwriteModule:s.overwriteModule,relativeHrefRoot:s.relativeHrefRoot})}catch(l){let c=l instanceof Error?l.message:String(l);u.fail(`Failed to export components: ${c}`);let p=Date.now()-n;throw await a?.sendError(l instanceof Error?l:new Error(String(l)),"devlink_sync_failure",{duration:p,specificComponents:e&&e.length>0,componentCount:e?.length||0,cssModules:s.cssModules,overwriteModule:s.overwriteModule,relativeHrefRoot:s.relativeHrefRoot,configOverrides:Object.keys(i),argv:no.default.argv.slice(2)}),l}}var no,Il=k(()=>{"use strict";no=D(require("process"));Ur();hh();yh();ut();G()});function Ji(e,t){try{let n=cu(),r=pu(Object.values(e)),o=t?.force;return r&&n&&!o}catch{return!1}}var Fy,_y,cu,pu,Zi=k(()=>{"use strict";Fy=require("path"),_y=require("fs-extra");cu=()=>{try{return(0,_y.existsSync)((0,Fy.join)(process.cwd(),"tsconfig.json"))}catch{return!1}},pu=e=>e.some(t=>t.endsWith(".ts")||t.endsWith(".tsx"))});function es(e,t){try{return new RegExp(e),e}catch{return t}}async function qy(e){let t=e.export||{},n=t.rootDir;n||(te()?n=Uy:n=await ye({message:"Enter the root directory for exported components:",default:Uy,validate:c=>!c||c.trim()===""?"Root directory is required":!0}));let r=t.ts;r===void 0&&(A_()?r=!0:te()?r=!1:r=await ge({message:"Use TypeScript?",default:!0}));let o=t.cssModules;o===void 0&&(te()?o=Vy:o=await ge({message:"Use CSS Modules?",default:Vy}));let i=t.components?es(t.components,yr):void 0,s=t.componentGroups?es(t.componentGroups,br):void 0;if(!i&&!s)if(te())i=yr,s=br;else if(await ge({message:"Do you want to export all components?",default:!0}))i=yr,s=br;else{let p=await ye({message:"Enter regex pattern to filter components (e.g., 'Button|Card' for specific):",default:yr,validate:f=>{try{return new RegExp(f),!0}catch{return"Invalid regex pattern. Please enter a valid regular expression."}}});i=es(p,yr);let m=await ye({message:"Enter regex pattern to filter component groups (e.g., 'mygroup'):",default:br,validate:f=>{try{return new RegExp(f),!0}catch{return"Invalid regex pattern. Please enter a valid regular expression."}}});s=es(m,br)}i=i||yr,s=s||br;let a=t.camelCaseVariantNames;a===void 0&&(a=__);let u=t.relativeHrefRoot;u===void 0&&(u=S_);let l={rootDir:n,components:i,componentGroups:s,ts:r,cssModules:o,camelCaseVariantNames:a,relativeHrefRoot:u,treeShake:t.treeShake};return(!t.rootDir||t.ts===void 0||t.cssModules===void 0||!t.components||!t.componentGroups||t.camelCaseVariantNames===void 0||t.relativeHrefRoot===void 0)&&T_(l),l}function T_(e){ae({export:{rootDir:e.rootDir,components:e.components,componentGroups:e.componentGroups,ts:e.ts,cssModules:e.cssModules,camelCaseVariantNames:e.camelCaseVariantNames,relativeHrefRoot:e.relativeHrefRoot,treeShake:e.treeShake}})}function A_(){try{let e=process.cwd();if(cu())return!0;let t=["src","app","pages","components"];for(let n of t){let r=Gy.join(e,n);if(ts.existsSync(r)&&pu(ts.readdirSync(r)))return!0}}catch{}return!1}var ts,Gy,Uy,yr,br,Vy,__,S_,Hy=k(()=>{"use strict";ts=D(require("fs")),Gy=D(require("path"));Ue();ke();$s();Zi();Uy="./webflow",yr=".*",br=".*",Vy=!0,__=!0,S_="/"});async function Zy(e,t){let{rootDir:n,cssModules:r,ts:o}=t,i=kn.join(process.cwd(),n);(0,Ze.existsSync)(i)||await(0,Dr.mkdir)(i),await I_(i,e,{js:o?".tsx":".jsx",css:".css"},r,o,{});let a=e.reduce((u,l)=>({...u,[l.name]:l}),{});await Ky(i,"",a,!0)}function P_(e="",t){return Object.entries(t).forEach(([n,r])=>{e=e.replace(new RegExp(`DEVLINK_ENV_${n}`,"g"),r.trim())}),e}function bu(e,t){let n=t.split("/");return kn.join(e,...n.slice(0,-1),n[n.length-1])}async function I_(e,t,n,r,o,i){await Promise.all(t.flatMap(s=>{let a=[];if(s.name.includes("/")){let u=s.name.substring(0,s.name.lastIndexOf("/"));B_(e,u)}if(s.js){let u=P_(s.js,i),l=s.ext==="ts"||s.ext==="tsx",c=wu.default.format(u,{...Tt,parser:l?"typescript":"babel"}),p=bu(e,`${s.name}.${s.ext}`);a.push((0,Ze.writeFileSync)(p,c,{flag:"w+"}))}if(s.css){let u=n.css.replace(/^\./,""),l=s.module?r?`${s.name}.module.${u}`:`global.${u}`:`${s.name}.${u}`,c=bu(e,l);a.push((0,Ze.writeFileSync)(c,R_(s.css,r),{flag:"w+"}))}if(s.types){let u=bu(e,`${s.name}.d.ts`);a.push((0,Ze.writeFileSync)(u,wu.default.format(s.types,{...Tt,parser:"typescript"}),{flag:"w+"}))}return a}))}function B_(e,t){let n=t.split("/"),r=e;for(let o of n)r=kn.join(r,o),(0,Ze.existsSync)(r)||(0,Ze.mkdirSync)(r)}async function Ky(e,t,n,r){let o=kn.join(e,t),i=await(0,Dr.readdir)(o);await Promise.all(i.map(async s=>{let a=t?kn.join(t,s):s,u=kn.join(e,a);if((0,Ze.statSync)(u).isDirectory()){await Ky(e,a,n,r);return}let l=a.split(".")[0].replace(/\\/g,"/"),c=n[l];if(!O_.test(l)&&r&&!c)return(0,Dr.rm)(u,{recursive:!0,force:!0})}))}function R_(e,t){return t?Jy(e):(Du={...Du,...e},Jy(Du))}function Jy(e){return Object.values(e??{}).flatMap(t=>[t.rule,...t.variants??[]]).filter(Boolean).join(`
79
-
80
- `)}var Ze,Dr,kn,wu,O_,Du,Yy=k(()=>{"use strict";Ze=require("fs"),Dr=require("fs/promises"),kn=D(require("path")),wu=D(require("prettier"));ka();O_=new RegExp(`^(${["_Builtin$","_Builtin(/|$)","devlinkContext$","DevLinkProvider$","interactions$","utils$","devlink$","types$","index$","global$"].join("|")})`);Du={}});function j_(e){try{let t=JSON.parse(e);if(t.message&&typeof t.message=="string")return t.message}catch{}return null}async function ku(e){switch(e.status){case 400:{let t=await e.text(),n=j_(t);throw new zt(n||"Bad request: The server rejected the request due to invalid input. Please check your configuration and try again.")}case 401:throw new zt("Your access token is invalid for the provided siteId. Double check your credentials.");case 403:throw new zt("Insufficient permissions. Your access token doesn't have the required scopes to export DevLink components.");default:throw new zt(`Something went wrong (HTTP ${e.status}).`)}}async function L_(e){switch(e.ok||await ku(e),e.status){case 206:d.warn("You exceeded the limit of components and some components were not exported.");break;case 207:d.warn("Certain components couldn't be exported due to an unexpected error.");break}}async function Qy(e,t,n,r,o){let i=new URL(`${H}/v2/devlink/${e}/export/metadata`);r&&i.searchParams.set("components",r),o&&i.searchParams.set("componentGroups",o);let s=await(0,ns.default)(i.toString(),{headers:{Authorization:`Bearer ${n}`,[vu]:t},timeout:6e4});return s.ok?await s.json():ku(s)}async function xu(e,t,n,r){let{components:o,engineFiles:i}=await N_(n,r,t,et(e.components),et(e.componentGroups),e.cssModules,e.relativeHrefRoot===!1?!1:e.relativeHrefRoot,e.ts,e.treeShake),s=[...o,...i];return await Zy(s,e),o}async function N_(e,t,n,r,o,i,s,a,u){let{taskId:l}=await M_(e,t,n,r,o,i,s,a,u);return $_(e,t,n,l)}async function M_(e,t,n,r,o,i,s,a,u){let l={...i!==void 0&&{cssModules:i},...r&&{components:r},...o&&{componentGroups:o},...s!==void 0&&{relativeHrefRoot:String(s)},...a!==void 0&&{ts:a},...u!==void 0&&{treeShake:u}},c=await(0,ns.default)(`${H}/v2/devlink/${e}/export`,{method:"POST",headers:{Authorization:`Bearer ${n}`,"Content-Type":"application/json",[vu]:t},body:JSON.stringify(l),timeout:6e4});return c.ok?await c.json():ku(c)}async function $_(e,t,n,r,o=55e3){let i=Date.now()+o,s=250;do{let a=await(0,ns.default)(`${H}/v2/devlink/${e}/export/${r}`,{headers:{Authorization:`Bearer ${n}`,[vu]:t},timeout:6e4});await L_(a);let u=await a.json();if(u.status==="finished")return u.result;if(u.status==="failed")throw new zt("The export task failed. Please try again or report a bug.");await(0,Xy.setTimeout)(s),s=Math.min(s*2,5e3)}while(Date.now()<i);throw new zt(`Export task timed out after ${o}ms. Please try again.`)}var ns,Xy,vu,zt,Cu=k(()=>{"use strict";ns=D(require("node-fetch")),Xy=require("timers/promises");G();Yy();Ur();pe();vu="X-WF-Sync-Id",zt=class extends Error{constructor(t){super(t)}}});function mo(e,t,n){let i=new Intl.PluralRules("en-US").select(e)==="one"&&e===1?t:n||`${t}s`;return`${e} ${i}`}var Eu=k(()=>{"use strict"});var eb,tb=k(()=>{"use strict";Ur();Cu();Ue();Eu();G();eb=async(e,t,n,r)=>{let o=et(e.components),i=et(e.componentGroups),s=await Qy(t,n,r,o,i);await ge({message:`Ready to export ${mo(s.componentCount,"component")} to ${e.rootDir}?`,default:!0})||(d.info("Export cancelled."),process.exit(0))}});async function Fu(e){let t=Date.now(),n;try{let{manifest:r}=oe(),{siteId:o,accessToken:i}=await No(r,e),s=(0,nb.randomUUID)();$c(s);let a=await qy(r);d.info(`${le} Export configuration loaded!`),await eb(a,o,s,i);let u=he.forExport({authToken:i,siteId:o});n=d.spinner("Exporting components"),await u.sendUsage("devlink_export_start",{cssModules:a.cssModules,ts:a.ts,relativeHrefRoot:a.relativeHrefRoot});try{let l=await xu(a,i,o,s),c=l.filter(f=>f.error||f.warnings&&f.warnings.length>0),p=l.filter(f=>!f.error&&f.module===!0);if(n.succeed(`${mo(p.length,"component")} exported to ${a.rootDir}`),c.length>0){d.warn(`
81
- ${mo(c.length,"component")} could not be fully exported. See code comments for more details:`);let f={"invalid-attribute":"Invalid attribute(s)","unsupported-element":"Unsupported element(s)","unsupported-prop":"Unsupported prop(s)"};c.forEach(y=>{let P=[...Array.from(new Set(y.warnings?.map(_=>_.type)||[])).map(_=>f[_]).filter(Boolean),...y.error?[y.error]:[]];d.warn(`- ${y.name}: ${P.join(", ")}`)})}let m=Date.now()-t;await u.sendUsage("devlink_export_success",{duration:m,cssModules:a.cssModules,ts:a.ts,relativeHrefRoot:a.relativeHrefRoot})}catch(l){let c=l instanceof Error?l.message:String(l);throw n.fail(`Components export failed: ${c}`),await u.sendError(l instanceof Error?l:new Error(String(l)),"devlink_export_failure",{cssModules:a.cssModules,ts:a.ts}),l}}catch(r){let o="Export failed: "+(r instanceof Error?r.message:r);throw n?n.fail(o):d.error(o),new S(r,{skipLogging:!0})}}var nb,rb=k(()=>{"use strict";nb=require("crypto");Hy();Cu();tb();ut();Yt();Te();Eu();G();de();lt()});var ob=k(()=>{"use strict";rb()});var ib={};os(ib,{init:()=>W_});var W_,sb=k(()=>{"use strict";ob();W_=e=>{e.command("export").description("Export Webflow components with guided setup. Uses site API token authentication (WEBFLOW_SITE_ID / WEBFLOW_SITE_API_TOKEN), or override with --site and --api-token.").option("--api-token <token>","Site API token. Default: value set in WEBFLOW_SITE_API_TOKEN env variable.").option("--site <site-id>","Site ID. Default: value set in WEBFLOW_SITE_ID env variable.").action(Fu)}});var fb=require("commander");var ho=require("commander");G();var Wc=require("child_process"),zc=require("fs"),ta=D(require("semver"));G();var na="@webflow/webflow-cli",Ht="@webflow/data-types",Po="@webflow/react",ED=[na,Ht,Po],Jt=class{getInstalledDependencies(){try{let t=(0,Wc.execSync)(`npm ls ${ED.join(" ")} --depth=0 --json --silent`,{encoding:"utf-8"}),n=JSON.parse(t);return n.dependencies?Object.entries(n.dependencies).reduce((r,[o,{version:i}])=>(r[o]=i,r),{}):{}}catch(t){return d.debug(`Failed to get installed dependencies: ${t}`),{}}}getRequiredDependencies(t){let n=JSON.parse((0,zc.readFileSync)(require.resolve(`${t}/package.json`),"utf8"));return{...n.dependencies,...n.devDependencies}}checkCLIAndDataTypes(t){let n=t[Ht];if(!n)return;let o=this.getRequiredDependencies(na)[Ht];if(!ta.default.satisfies(n,o))throw new Error(`Version mismatch: ${na} requires ${Ht} v${o} but found v${n}`)}checkReactAndDataTypes(t){let n=t[Ht],r=t[Po];if(!(!n||!r)&&!ta.default.eq(n,r))throw new Error(`Version mismatch: ${Po} and ${Ht} must be on the same version. Found ${Po}@${r} and ${Ht}@${n}`)}run(){let t=this.getInstalledDependencies();this.checkCLIAndDataTypes(t),this.checkReactAndDataTypes(t)}};var qc=require("fs-extra");Ue();var Hc=require("@dotenvx/dotenvx"),Ro=D(require("semver"));G();var Uc=require("child_process"),Vc=require("util"),_D=(0,Vc.promisify)(Uc.exec);async function _t(e,t){try{let{stdout:n,stderr:r}=await _D(e,t);return{stdout:n.toString().trim(),stderr:r.toString().trim(),code:0}}catch(n){return{stdout:n.stdout??"",stderr:n.stderr??String(n.message??""),code:n.code??1}}}ke();var ra=D(Ao());(0,Hc.config)({quiet:!0,ignore:["MISSING_ENV_FILE"]});var Gc={npm:{updateCommand:"npm install",update:async e=>await _t(`npm install ${e}`),getOutdated:async e=>{let{stdout:t}=await _t(`npm outdated --json ${e}`);return JSON.parse(t)},lockFile:"package-lock.json",globalFlag:"--global",supported:!0},pnpm:{updateCommand:"pnpm add",update:async e=>await _t(`pnpm add ${e}`),getOutdated:async e=>{let{stdout:t}=await _t(`pnpm outdated --json ${e}`);return JSON.parse(t)},lockFile:"pnpm-lock.yaml",globalFlag:"--global",supported:!0},yarn:{lockFile:"yarn.lock",globalFlag:"",updateCommand:"",getOutdated:async()=>({}),update:async()=>({}),supported:!1}},SD=["@webflow/webflow-cli","@webflow/data-types","@webflow/react","@webflow/emotion-utils","@webflow/styled-components-utils"],Rr=class{packageManager;constructor(){this.packageManager=this.getPackagerManagerInfo()}getPackagerManagerInfo(){for(let[,t]of Object.entries(Gc))if((0,qc.existsSync)(t.lockFile))return t;return Gc.npm}async listOutdatedPackages(t="local",n=SD){let{getOutdated:r,globalFlag:o}=this.packageManager,i=await r(`${t==="global"?o:""} ${n?.join(" ")}`);return Object.fromEntries(Object.entries(i).map(([s,a])=>Array.isArray(a)?[s,{current:a[0].current,latest:a[0].latest,installationType:t}]:[s,{current:a.current,latest:a.latest,installationType:t}]))}async getOutdatedPackages(){let t=await this.listOutdatedPackages();if(t["@webflow/webflow-cli"])return t;let n=await this.listOutdatedPackages("global",["@webflow/webflow-cli"]);return{...t,...n}}async showUpdatePrompt(t){if(Object.keys(t).length>1){let r=await Bo({message:"New versions of the following @webflow packages are available. Would you like to update?",choices:Object.entries(t).map(([o,{current:i,latest:s}])=>({name:`${o} (${i} \u2192 ${s})`,value:o}))});return r??[]}else{let[[r,{current:o,latest:i}]]=Object.entries(t);return await ge({message:`A new version of ${r} (${o} \u2192 ${i}) is available. Would you like to update?`,default:!1})?[r]:[]}}showUpdateSuggestions(t){let n=Object.keys(t).length>1,{updateCommand:r,globalFlag:o}=this.packageManager;if(n){console.log(`
82
- New versions of the following @webflow packages are available:`),Object.entries(t).forEach(([a,{current:u,latest:l}])=>{console.log(` ${a} (${u} \u2192 ${l})`)});let i=Object.entries(t).filter(([,{installationType:a}])=>a==="local").map(([a])=>`${a}@latest`),s=Object.entries(t).filter(([,{installationType:a}])=>a==="global").map(([a])=>`${a}@latest`);console.log(`
83
- To update, run:`),i.length>0&&console.log(` ${r} ${i.join(" ")}`),s.length>0&&console.log(` ${r} ${o} ${s.join(" ")}`)}else{let[[i,{current:s,latest:a,installationType:u}]]=Object.entries(t);console.log(`
84
- A new version of ${i} (${s} \u2192 ${a}) is available.`);let l=u==="global"?` ${o}`:"";console.log(`To update, run: ${r}${l} ${i}@latest`)}}shouldSkipUpdateChecks(){return!this.packageManager.supported||process.env.WEBFLOW_SKIP_UPDATE_CHECKS==="true"}getDistTag(){let t=Ro.prerelease(ra.default.version);return t&&t.length>0&&typeof t[0]=="string"?t[0]:"latest"}async promptPrerelease(t){let n;try{n=d.spinner("Checking for updates (to disable, use --skip-update-check)");let{stdout:r,code:o}=await _t(`npm view @webflow/webflow-cli@${t} version`);if(o!==0||!r.trim()){n.succeed("Up to date");return}let i=r.trim(),s=ra.default.version;if(!Ro.gt(i,s)){n.succeed("All @webflow packages are up to date");return}if(n.succeed(),!process.stdin.isTTY||te()){console.log(`
85
- A new version of @webflow/webflow-cli@${t} is available.`);let{code:p}=await _t("npm ls @webflow/webflow-cli --json"),f=(p===0?"local":"global")==="global"?" --global":"";console.log(`To update, run: ${this.packageManager.updateCommand}${f} @webflow/webflow-cli@${t}`);return}let{code:u}=await _t("npm ls @webflow/webflow-cli --json"),l=u===0?"local":"global";if(await ge({message:`A new version of @webflow/webflow-cli@${t} is available. Would you like to update?`,default:!1})){n=d.spinner("Updating");let p=l==="global"?` ${this.packageManager.globalFlag}`:"";try{await this.packageManager.update(`${p} @webflow/webflow-cli@${t}`),n.succeed("Updated successfully")}catch{let f=l==="global"?` ${this.packageManager.globalFlag}`:"";n.fail(`Update failed. Manually run: ${this.packageManager.updateCommand}${f} @webflow/webflow-cli@${t}`)}}}catch(r){n?.fail("Failed to check for updates"),d.debug(r)}}async prompt(){if(this.shouldSkipUpdateChecks())return;let t=this.getDistTag();if(t!=="latest")return this.promptPrerelease(t);let n;try{n=d.spinner("Checking for updates (to disable, use --skip-update-check)");let r=await this.getOutdatedPackages();if(!(Object.keys(r).length>0)){n.succeed("All @webflow packages are up to date");return}if(n.succeed(),!process.stdin.isTTY||te()){this.showUpdateSuggestions(r);return}let s=await this.showUpdatePrompt(r);if(s.length>0){n=d.spinner("Updating");let{local:a,global:u}=s.reduce((m,f)=>(m[r[f].installationType==="global"?"global":"local"].push(f),m),{local:[],global:[]}),{update:l,globalFlag:c,updateCommand:p}=this.packageManager;try{a.length>0&&await l(`${a.map(m=>`${m}@latest`).join(" ")}`),u.length>0&&await l(`${c} ${u.map(m=>`${m}@latest`).join(" ")}`),n.succeed("Updated successfully")}catch{n.fail(`Update failed. Manually run: ${p} ${s.map(f=>`${f}@latest`).join(" ")}`)}}}catch(r){n?.fail("Failed to check for updates"),d.debug(r)}}};ke();Ks();Hs();Ue();ut();Yt();ke();Te();G();de();lt();var op=e=>{let t=e.command("auth").description("Authentication and configuration commands");t.command("login").description("Authenticate with Webflow and save credentials to .env file").option("-f, --force","Force reauthentication even if credentials exist").action(async n=>{if(te()){d.info(`${We} No-input mode enabled. Aborting OAuth authentication`);return}let{manifest:r}=oe(),o=pa(r);if(!n.force&&o){d.info(`${le} Webflow credentials already exist:`),o.siteId&&d.info(` Site ID: ${o.siteId}`),d.info(" API Token: [hidden]"),d.info(`
86
- Use --force flag to reauthenticate anyway`);return}try{let{siteId:i,siteName:s}=await No(r,n);d.info(`
87
- ${qt} Authentication complete:`),d.info(`${le} Connected to site: ${s}`),d.info(`${le} Site ID: ${i}`),d.info(`${le} Credentials saved to .env file`),d.info(`
88
- You can now use other Webflow CLI commands that require authentication`)}catch(i){throw new S(i,{prefix:`${We} Authentication failed:`})}}),t.command("telemetry").description("Manage telemetry settings for all Webflow CLI commands").option("--enable","Enable telemetry for all commands").option("--disable","Disable telemetry for all commands").option("--status","Show current telemetry status").action(async n=>{let r=Ct.getInstance();if(n.status){let s=await r.getTelemetryStatus();d.info(rp(s.enabled));return}if(n.enable){await r.setGlobalPreference(!0),d.info(da(!0));return}if(n.disable){await r.setGlobalPreference(!1),d.info(da(!1));return}let o=await r.getTelemetryStatus();if(d.info(rp(o.enabled)),te()){d.info("\u{1F4A1} When --no-input mode is enabled please provide --enable or --disable option");return}let i=await Ae({message:"What would you like to do?",choices:[{name:"Enable telemetry for all commands",value:"enable"},{name:"Disable telemetry for all commands",value:"disable"},{name:"Cancel",value:"cancel"}]});if(i==="enable"||i==="disable"){let s=i==="enable";await r.setGlobalPreference(s),d.info(da(s))}})},da=e=>`${le} Telemetry ${e?"enabled":"disabled"} for all Webflow CLI commands`,rp=e=>`${qt} Telemetry status: ${e?`enabled ${le}`:`disabled ${We}`}`;var Ep=D(require("http")),Fp=D(require("node-fetch")),_p=D(require("serve-handler")),Sp=require("fs"),Tp=D(require("path")),Ap=require("commander");var sp=D(require("archiver")),ma=require("commander"),Wo=require("fs");var ip=require("cosmiconfig"),fa=require("commander"),Mo=async(e,t)=>{let n=await ID(t),r=n.config.apiVersion;return r&&typeof r!="string"&&fa.program.error('Error: The apiVersion field in webflow.json must be a string (i.e. "apiVersion": "2").'),{filepath:n.filepath,config:{publicDir:e,...n.config}}},ID=async e=>{let n=await(0,ip.cosmiconfig)("webflow",{searchPlaces:[e]}).search();return n||fa.program.error(`No ${e} file was found. Run this command within your extension folder.`),n};var ap=D(require("mime-types")),$o=D(require("path")),BD=5*1024*1024,RD=new Set(["application/javascript","application/json","application/xml","image/png","image/jpeg","image/gif","image/svg+xml","image/webp","image/vnd.microsoft.icon","image/x-icon","video/webm","font/ttf","font/otf","font/woff","font/woff2","text/plain","text/markdown","text/html","text/css"]),lp=async(e,t,n)=>{let{config:r,filepath:o}=await Mo(e,t),i=$o.join(o,".."),s=!0,a=!1,u=c=>{let p=c.name,m=ap.default.lookup(p);return p==="index.html"&&(a=!0),p&&p.endsWith(".DS_Store")||!m?!1:RD.has(m)?c:(console.log(`Invalid file type: ${m} for file: ${p}`),s=!1,!1)},l=c=>{(0,Wo.unlink)(n,p=>{p&&console.error(`Failed to delete file: ${p}`),ma.program.error(c)})};return console.log(`Packaging the contents of the ${r.publicDir} folder into ${n}...`),new Promise(c=>{let p=(0,sp.default)("zip",{zlib:{level:9}}),m=(0,Wo.createWriteStream)($o.join(i,n));m.on("close",()=>{c(void 0)}),p.directory($o.join(i,r.publicDir),!1,u),p.file(o,{name:t}),p.pipe(m),p.finalize(),p.on("warning",f=>{console.log(f)}),p.on("error",f=>{ma.program.error(f.message)}),p.on("finish",()=>{if(!a){l("Could not find index.html in your `publicDir`, all Designer Extension code needs to be inside of `publicDir`");return}if(!s){l("Bundling failed due to invalid file types");return}if(!p.pointer()||p.pointer()===0){l("Bundling failed with no output");return}if(p.pointer()>=BD){l("Bundling failed due to the bundle exceeding 5MB");return}console.log(`${p.pointer()} total bytes written`),console.log(`Done! ${n} is ready for you to upload to your Webflow app.`)})})};Go();var St=D(require("fs")),Oe=D(require("path"));var zr="webflow.json",hp="index.html",gp="bundle.zip",ba="public",Da="extension-scaffolds",qo="default",yp="./";var bp="package.json",Dp="wf-placeholder-name",wa=e=>JSON.stringify(e,null,2),wp=e=>{let t="\u2500".repeat(e.length+2);return"\u256D"+t+`\u256E
66
+ `;Lm=e=>({name:"global",ext:"css",css:{__bootflow:{rule:e}},module:!1})});function Z1(e){try{let t=JSON.parse(e);if(t.msg&&typeof t.msg=="string")return t.msg}catch{}return null}function Wm(e){if(e.ok){switch(e.status){case 206:d.warn("You exceeded the limit of components and some components were not exported.");break;case 207:d.warn("Certain components couldn't be exported due to an unexpected error.");break}return}}async function Um(e){switch(e.status){case 400:{let t=await e.text(),n=Z1(t);throw new Mn(n||"Bad request: The server rejected the request due to invalid input. Please check your configuration and try again.")}case 401:throw new Mn("Your access token is invalid for the provided siteId. Double check your configs in your .webflowrc configuration file.");case 404:throw new Mn("You're not currently enrolled in the DevLink beta. You can apply for access here: https://webflow.com/devlink");default:throw new Mn(`Something went wrong (HTTP ${e.status}).`)}}async function K1(e){try{let{siteId:t,host:n,authToken:r,components:o,cssModules:i,relativeHrefRoot:s}=e,a=new URLSearchParams({cssModules:i?"true":"false"});o&&a.append("components",o),s!==void 0&&a.append("relativeHrefRoot",String(s));let l=`?${a.toString()}`,u=await Me(`${n}/devlink/${t}${l}`,{headers:{Authorization:`Bearer ${r}`},timeout:6e4});if(Wm(u),!u.ok)return Um(u);let c=await u.json();return c.components||c}catch(t){throw new T(t,{skipLogging:!0})}}async function Y1(e){try{let{siteId:t,host:n,authToken:r}=e,o=await Me(`${n}/devlink/${t}/engine`,{headers:{Authorization:`Bearer ${r}`},timeout:6e4});return Wm(o),o.ok?await o.json():Um(o)}catch(t){throw new T(t,{skipLogging:!0})}}async function ll(e){try{let[t,n]=await Promise.all([K1(e),Y1(e)]),r=n;if(e.skipTagSelectors===!0){let{rest:o,globalCss:i}=$m(t),s=Mm(i);r.push(...o,s)}else r.push(...t);await yp(r,e)}catch(t){throw t instanceof T?t:new T(t,{skipLogging:!0})}}var Mn,Vm=E(()=>{"use strict";q();ia();zm();xn();ce();Mn=class extends Error{constructor(t){super(t)}}});function si(e){return async function(n){Kt.default.removeListener("uncaughtException",si),Kt.default.removeListener("unhandledRejection",si);let r=await Oo(e);if(!r)return;await new ul(r,n).prompt()}}function Gm(e){Kt.default.on("uncaughtException",si(e)),Kt.default.on("unhandledRejection",si(e))}var Kt,ul,qm=E(()=>{"use strict";Kt=D(require("process"));q();Qs();Eo();De();xn();ul=class{config;error;constructor(t,n){this.config=t,this.error=n}stripPII(t=""){return t.replace(/\/(.*)webflow-cli/gi,"/REDACTED_PII/webflow-cli/").replace(/\/(.*)node_modules/gi,"/REDACTED_PII/node_modules")}sendTelemetry(){let t=this.config,n=this.error;Me(`${t.host}/devlink/${t.siteId}/telemetry`,{headers:{Authorization:`Bearer ${t.authToken}`,"Content-Type":"application/json"},method:"post",body:JSON.stringify({cause:n.cause,message:n.message,name:n.name,stack:this.stripPII(n.stack),platform:Kt.default.platform,node:Kt.default.version})})}async storeChoice(t){try{return le({devlink:{allowTelemetry:t}})}catch{let r=await Sn();await Vc({...r,allowTelemetry:t})}}async prompt(){let t=this.config;if(d.error(this.error),t.allowTelemetry===!0)d.info("Sending crash report telemetry..."),this.sendTelemetry();else if(t.allowTelemetry===!1){d.info("Skipping crash report telemetry...");return}else d.info("Telemetry is enabled. Crash reports help us improve Webflow CLI."),d.info("To opt out, run: webflow auth telemetry --disable"),await this.storeChoice(!0),d.info("Sending crash report telemetry..."),this.sendTelemetry()}}});var Hm={};Ql(Hm,{syncComponents:()=>pl});async function pl(e,t){let n=Date.now(),{manifest:r}=ne(),{accessToken:o,siteId:i}=await Vt(r,{site:t?.site,apiToken:t?.apiToken}),s={...o?{authToken:o}:{},...i?{siteId:i}:{},...e&&e.length>0?{components:Ao(e),overwriteModule:!1}:{overwriteModule:!0}};Gm(s);let a=await Oo(s);if(!a)return cl.default.exit();let l;try{l=we.forDevlinkSync(a)}catch(c){d.debug(`Failed to initialize telemetry: ${c}`)}await l?.sendUsage("devlink_sync_start",{specificComponents:e&&e.length>0,componentCount:e?.length||0,cssModules:a.cssModules,overwriteModule:a.overwriteModule,relativeHrefRoot:a.relativeHrefRoot});let u=d.spinner(`Exporting components into ${a.rootDir}`);try{await ll(a),u.succeed(`Successfully exported components into ${a.rootDir} folder`);let c=Date.now()-n;await l?.sendUsage("devlink_sync_success",{duration:c,specificComponents:e&&e.length>0,componentCount:e?.length||0,cssModules:a.cssModules,overwriteModule:a.overwriteModule,relativeHrefRoot:a.relativeHrefRoot})}catch(c){let p=c instanceof Error?c.message:String(c);u.fail(`Failed to export components: ${p}`);let f=Date.now()-n;throw await l?.sendError(c instanceof Error?c:new Error(String(c)),"devlink_sync_failure",{duration:f,specificComponents:e&&e.length>0,componentCount:e?.length||0,cssModules:a.cssModules,overwriteModule:a.overwriteModule,relativeHrefRoot:a.relativeHrefRoot,configOverrides:Object.keys(s),argv:cl.default.argv.slice(2)}),c}}var cl,dl=E(()=>{"use strict";cl=D(require("process"));Qs();Vm();qm();Dt();q();Gt();De()});var Fy=require("commander");var Yr=require("commander");q();var hc=require("child_process"),gc=require("fs"),Is=D(require("semver"));q();var js="@webflow/webflow-cli",Mt="@webflow/data-types",ho="@webflow/react",Lb=[js,Mt,ho],$t=class{getInstalledDependencies(){try{let t=(0,hc.execSync)(`npm ls ${Lb.join(" ")} --depth=0 --json --silent`,{encoding:"utf-8"}),n=JSON.parse(t);return n.dependencies?Object.entries(n.dependencies).reduce((r,[o,{version:i}])=>(r[o]=i,r),{}):{}}catch(t){return d.debug(`Failed to get installed dependencies: ${t}`),{}}}getRequiredDependencies(t){let n=JSON.parse((0,gc.readFileSync)(require.resolve(`${t}/package.json`),"utf8"));return{...n.dependencies,...n.devDependencies}}checkCLIAndDataTypes(t){let n=t[Mt];if(!n)return;let o=this.getRequiredDependencies(js)[Mt];if(!Is.default.satisfies(n,o))throw new Error(`Version mismatch: ${js} requires ${Mt} v${o} but found v${n}`)}checkReactAndDataTypes(t){let n=t[Mt],r=t[ho];if(!(!n||!r)&&!Is.default.eq(n,r))throw new Error(`Version mismatch: ${ho} and ${Mt} must be on the same version. Found ${ho}@${r} and ${Mt}@${n}`)}run(){let t=this.getInstalledDependencies();this.checkCLIAndDataTypes(t),this.checkReactAndDataTypes(t)}};var wc=require("fs-extra");it();var vc=require("@dotenvx/dotenvx"),zt=D(require("semver"));q();var yc=require("child_process"),bc=require("util"),Mb=(0,bc.promisify)(yc.exec);async function kt(e,t){try{let{stdout:n,stderr:r}=await Mb(e,t);return{stdout:n.toString().trim(),stderr:r.toString().trim(),code:0}}catch(n){return{stdout:n.stdout??"",stderr:n.stderr??String(n.message??""),code:n.code??1}}}_e();var Rs=D(po());(0,vc.config)({quiet:!0,ignore:["MISSING_ENV_FILE"]});var Dc={npm:{updateCommand:"npm install",update:async e=>await kt(`npm install ${e}`),getOutdated:async e=>{let{stdout:t}=await kt(`npm outdated --json ${e}`);return JSON.parse(t)},lockFile:"package-lock.json",globalFlag:"--global",supported:!0},pnpm:{updateCommand:"pnpm add",update:async e=>await kt(`pnpm add ${e}`),getOutdated:async e=>{let{stdout:t}=await kt(`pnpm outdated --json ${e}`);return JSON.parse(t)},lockFile:"pnpm-lock.yaml",globalFlag:"--global",supported:!0},yarn:{lockFile:"yarn.lock",globalFlag:"",updateCommand:"",getOutdated:async()=>({}),update:async()=>({}),supported:!1}},$b=["@webflow/webflow-cli","@webflow/data-types","@webflow/react","@webflow/emotion-utils","@webflow/styled-components-utils"],xr=class{packageManager;constructor(){this.packageManager=this.getPackagerManagerInfo()}getPackagerManagerInfo(){for(let[,t]of Object.entries(Dc))if((0,wc.existsSync)(t.lockFile))return t;return Dc.npm}async listOutdatedPackages(t="local",n=$b){let{getOutdated:r,globalFlag:o}=this.packageManager,i=await r(`${t==="global"?o:""} ${n?.join(" ")}`);return Object.fromEntries(Object.entries(i).map(([s,a])=>Array.isArray(a)?[s,{current:a[0].current,latest:a[0].latest,installationType:t}]:[s,{current:a.current,latest:a.latest,installationType:t}]))}async getOutdatedPackages(){let t=await this.listOutdatedPackages();if(t["@webflow/webflow-cli"])return t;let n=await this.listOutdatedPackages("global",["@webflow/webflow-cli"]);return{...t,...n}}async showUpdatePrompt(t){if(Object.keys(t).length>1){let r=await yo({message:"New versions of the following @webflow packages are available. Would you like to update?",choices:Object.entries(t).map(([o,{current:i,latest:s}])=>({name:`${o} (${i} \u2192 ${s})`,value:o}))});return r??[]}else{let[[r,{current:o,latest:i}]]=Object.entries(t);return await ot({message:`A new version of ${r} (${o} \u2192 ${i}) is available. Would you like to update?`,default:!1})?[r]:[]}}showUpdateSuggestions(t){let n=Object.keys(t).length>1,{updateCommand:r,globalFlag:o}=this.packageManager;if(n){console.log(`
67
+ New versions of the following @webflow packages are available:`),Object.entries(t).forEach(([a,{current:l,latest:u}])=>{console.log(` ${a} (${l} \u2192 ${u})`)});let i=Object.entries(t).filter(([,{installationType:a}])=>a==="local").map(([a])=>`${a}@latest`),s=Object.entries(t).filter(([,{installationType:a}])=>a==="global").map(([a])=>`${a}@latest`);console.log(`
68
+ To update, run:`),i.length>0&&console.log(` ${r} ${i.join(" ")}`),s.length>0&&console.log(` ${r} ${o} ${s.join(" ")}`)}else{let[[i,{current:s,latest:a,installationType:l}]]=Object.entries(t);console.log(`
69
+ A new version of ${i} (${s} \u2192 ${a}) is available.`);let u=l==="global"?` ${o}`:"";console.log(`To update, run: ${r}${u} ${i}@latest`)}}shouldSkipUpdateChecks(){return!this.packageManager.supported||process.env.WEBFLOW_SKIP_UPDATE_CHECKS==="true"}getDistTag(){let t=zt.prerelease(Rs.default.version);return t&&t.length>0&&typeof t[0]=="string"?t[0]:"latest"}async promptPrerelease(t){let n;try{n=d.spinner("Checking for updates (to disable, use --skip-update-check)");let{stdout:r,code:o}=await kt(`npm view @webflow/webflow-cli@${t} version`);if(o!==0||!r.trim()){n.succeed("Up to date");return}let i=r.trim(),s=Rs.default.version;if(!zt.valid(i)||!zt.valid(s)){n.succeed("Up to date");return}if(!zt.gt(i,s)){n.succeed("All @webflow packages are up to date");return}if(n.succeed(),!process.stdin.isTTY||re()){console.log(`
70
+ A new version of @webflow/webflow-cli@${t} is available.`);let{code:p}=await kt("npm ls @webflow/webflow-cli --json"),m=(p===0?"local":"global")==="global"?" --global":"";console.log(`To update, run: ${this.packageManager.updateCommand}${m} @webflow/webflow-cli@${t}`);return}let{code:l}=await kt("npm ls @webflow/webflow-cli --json"),u=l===0?"local":"global";if(await ot({message:`A new version of @webflow/webflow-cli@${t} is available. Would you like to update?`,default:!1})){n=d.spinner("Updating");let p=u==="global"?` ${this.packageManager.globalFlag}`:"";try{await this.packageManager.update(`${p} @webflow/webflow-cli@${t}`),n.succeed("Updated successfully")}catch{let m=u==="global"?` ${this.packageManager.globalFlag}`:"";n.fail(`Update failed. Manually run: ${this.packageManager.updateCommand}${m} @webflow/webflow-cli@${t}`)}}}catch(r){n?.fail("Failed to check for updates"),d.debug(r)}}async prompt(){if(this.shouldSkipUpdateChecks())return;let t=this.getDistTag();if(t!=="latest")return this.promptPrerelease(t);let n;try{n=d.spinner("Checking for updates (to disable, use --skip-update-check)");let r=await this.getOutdatedPackages();if(!(Object.keys(r).length>0)){n.succeed("All @webflow packages are up to date");return}if(n.succeed(),!process.stdin.isTTY||re()){this.showUpdateSuggestions(r);return}let s=await this.showUpdatePrompt(r);if(s.length>0){n=d.spinner("Updating");let{local:a,global:l}=s.reduce((f,m)=>(f[r[m].installationType==="global"?"global":"local"].push(m),f),{local:[],global:[]}),{update:u,globalFlag:c,updateCommand:p}=this.packageManager;try{a.length>0&&await u(`${a.map(f=>`${f}@latest`).join(" ")}`),l.length>0&&await u(`${c} ${l.map(f=>`${f}@latest`).join(" ")}`),n.succeed("Updated successfully")}catch{n.fail(`Update failed. Manually run: ${p} ${s.map(m=>`${m}@latest`).join(" ")}`)}}}catch(r){n?.fail("Failed to check for updates"),d.debug(r)}}};_e();As();Es();it();Dt();Gt();_e();De();q();ce();nt();var Ic=e=>{let t=e.command("auth").description("Authentication and configuration commands");t.command("login").description("Authenticate with Webflow and save credentials to .env file").option("-f, --force","Force reauthentication even if credentials exist").action(async n=>{if(re()){d.info(`${Ne} No-input mode enabled. Aborting OAuth authentication`);return}let{manifest:r}=ne();if(!n.force&&Do()){let i=_r(r);d.info(`${me} Webflow credentials already exist:`),i&&d.info(` Site ID: ${i}`),d.info(" API Token: [hidden]"),d.info(`
71
+ Use --force flag to reauthenticate anyway`);return}try{await Ut({force:n.force}),d.info(`${me} Credentials saved to .env file`),d.info(`
72
+ You can now use other Webflow CLI commands that require authentication`)}catch(o){throw new T(o,{prefix:`${Ne} Authentication failed:`})}}),t.command("telemetry").description("Manage telemetry settings for all Webflow CLI commands").option("--enable","Enable telemetry for all commands").option("--disable","Disable telemetry for all commands").option("--status","Show current telemetry status").action(async n=>{let r=bt.getInstance();if(n.status){let s=await r.getTelemetryStatus();d.info(Bc(s.enabled));return}if(n.enable){await r.setGlobalPreference(!0),d.info(Us(!0));return}if(n.disable){await r.setGlobalPreference(!1),d.info(Us(!1));return}let o=await r.getTelemetryStatus();if(d.info(Bc(o.enabled)),re()){d.info("\u{1F4A1} When --no-input mode is enabled please provide --enable or --disable option");return}let i=await Ee({message:"What would you like to do?",choices:[{name:"Enable telemetry for all commands",value:"enable"},{name:"Disable telemetry for all commands",value:"disable"},{name:"Cancel",value:"cancel"}]});if(i==="enable"||i==="disable"){let s=i==="enable";await r.setGlobalPreference(s),d.info(Us(s))}})},Us=e=>`${me} Telemetry ${e?"enabled":"disabled"} for all Webflow CLI commands`,Bc=e=>`${vn} Telemetry status: ${e?`enabled ${me}`:`disabled ${Ne}`}`;var tp=D(require("http")),np=D(require("node-fetch")),rp=D(require("serve-handler")),op=require("fs"),ip=D(require("path")),sp=require("commander");var Rc=D(require("archiver")),Gs=require("commander"),xo=require("fs");var jc=require("cosmiconfig"),Vs=require("commander"),vo=async(e,t)=>{let n=await Vb(t),r=n.config.apiVersion;return r&&typeof r!="string"&&Vs.program.error('Error: The apiVersion field in webflow.json must be a string (i.e. "apiVersion": "2").'),{filepath:n.filepath,config:{publicDir:e,...n.config}}},Vb=async e=>{let n=await(0,jc.cosmiconfig)("webflow",{searchPlaces:[e]}).search();return n||Vs.program.error(`No ${e} file was found. Run this command within your extension folder.`),n};var Lc=D(require("mime-types")),ko=D(require("path")),Gb=5*1024*1024,qb=new Set(["application/javascript","application/json","application/xml","image/png","image/jpeg","image/gif","image/svg+xml","image/webp","image/vnd.microsoft.icon","image/x-icon","video/webm","font/ttf","font/otf","font/woff","font/woff2","text/plain","text/markdown","text/html","text/css"]),Nc=async(e,t,n)=>{let{config:r,filepath:o}=await vo(e,t),i=ko.join(o,".."),s=!0,a=!1,l=c=>{let p=c.name,f=Lc.default.lookup(p);return p==="index.html"&&(a=!0),p&&p.endsWith(".DS_Store")||!f?!1:qb.has(f)?c:(console.log(`Invalid file type: ${f} for file: ${p}`),s=!1,!1)},u=c=>{(0,xo.unlink)(n,p=>{p&&console.error(`Failed to delete file: ${p}`),Gs.program.error(c)})};return console.log(`Packaging the contents of the ${r.publicDir} folder into ${n}...`),new Promise(c=>{let p=(0,Rc.default)("zip",{zlib:{level:9}}),f=(0,xo.createWriteStream)(ko.join(i,n));f.on("close",()=>{c(void 0)}),p.directory(ko.join(i,r.publicDir),!1,l),p.file(o,{name:t}),p.pipe(f),p.finalize(),p.on("warning",m=>{console.log(m)}),p.on("error",m=>{Gs.program.error(m.message)}),p.on("finish",()=>{if(!a){u("Could not find index.html in your `publicDir`, all Designer Extension code needs to be inside of `publicDir`");return}if(!s){u("Bundling failed due to invalid file types");return}if(!p.pointer()||p.pointer()===0){u("Bundling failed with no output");return}if(p.pointer()>=Gb){u("Bundling failed due to the bundle exceeding 5MB");return}console.log(`${p.pointer()} total bytes written`),console.log(`Done! ${n} is ready for you to upload to your Webflow app.`)})})};Eo();var xt=D(require("fs")),Se=D(require("path"));var Sr="webflow.json",Gc="index.html",qc="bundle.zip",Zs="public",Ks="extension-scaffolds",So="default",Hc="./";var Jc="package.json",Zc="wf-placeholder-name",Ys=e=>JSON.stringify(e,null,2),Kc=e=>{let t="\u2500".repeat(e.length+2);return"\u256D"+t+`\u256E
89
73
  \u2502 `+e+` \u2502
90
- \u2570`+t+"\u256F"};var vp=async(e,t=yp,n=qo,r)=>{let o=r[n];try{for(let i of o){let s=Oe.join(t,i),a=zD(s,n,e);if(i.includes(bp)||i.includes(zr))await WD(i,a,e);else{let u=await St.promises.readFile(i);await Cp(a,u)}}}catch(i){console.error("Error writing file, ",i)}},kp=async()=>{let e={},t=Oe.resolve(__dirname),n=Oe.join(t,Da),r=await St.promises.readdir(n);for(let o of r){let i=Oe.join(n,o),s=await xp(i);e[o]=s}return e},xp=async e=>{let t=[];try{let n=await St.promises.readdir(e);for(let r of n){let o=Oe.join(e,r);if((await St.promises.stat(o)).isDirectory()){let s=await xp(o);t.push(...s)}else t.push(o)}}catch(n){console.error(`Error reading ${Oe}, `,n)}return t},Cp=async(e,t)=>{try{await St.promises.mkdir(Oe.dirname(e),{recursive:!0}),await St.promises.writeFile(e,t)}catch(n){console.error("Error writing file ",n)}},WD=async(e,t,n)=>St.promises.readFile(e,"utf8").then(async r=>{let o=r.replace(Dp,n);await Cp(t,o)}),zD=(e,t,n)=>{let r=Oe.join(Da,t),o=e.indexOf(r);if(o!==-1){let i=e.substring(o+r.length+1);return Oe.join(n,i)}return""};var Ho=async()=>await kp(),Op=async()=>{let e=await Ho(),t=Object.keys(e).join(", ");console.log(`Your available templates are: ${t}`),console.log('\u{1F4A1} Syntax: "webflow extension init projectName templateName"'),console.log('\u{1F31F} Example: "webflow extension init my-first-extension react"')},Pp=async(e,t=qo)=>{let n=`./${e}`;console.log(`Scaffolding your new extension named: ${e}...`);let r=await Ho();await vp(e,n,t,r),console.log(`Done! Check out ${n}/README.md for steps on how to develop your extension.`)},Ip=()=>lp(ba,zr,gp),Bp=async e=>{let{config:t,filepath:n}=await Mo(ba,zr),r=Tp.join(n,"..",t.publicDir,hp),i=(await jn([],!0)).extensionTemplateDomain||"webflow-ext.com",s=t.apiVersion==="2"?"template/v2":"template",a=Object.keys(t.featureFlags||{}).map(f=>t.featureFlags?.[f]===!0?`ff_on=${f}`:`ff_off=${f}`).join("&"),u=a?`&${a}`:"",c=await(await(0,Fp.default)(`https://${i}/${s}?name=${t.name}${u}`)).text(),p=new Ep.Server((f,y)=>{if(f.url==="/"){Sp.promises.readFile(r,{encoding:"utf-8"}).catch(C=>{Ap.program.error(C.message)}).then(C=>{let P=c.replace("{{ui}}",C);return y.writeHead(200,{"Content-Length":Buffer.byteLength(P),"Content-Type":"text/html"}),y.end(P)});return}if(f.url==="/__webflow")return y.writeHead(200,{"Content-Length":Buffer.byteLength(wa(t)),"Content-Type":"application/json","Access-Control-Allow-Origin":"*","Access-Control-Allow-Headers":"*"}),y.end(wa(t));(0,_p.default)(f,y,{public:t.publicDir,cleanUrls:!1,directoryListing:!1})}),m=UD(e);p.listen(m),console.log(wp(`Serving your extension at http://localhost:${m}`)+`
91
- `)},UD=e=>{if(e){let t=parseInt(e,10);return isNaN(t)?(console.log("Invalid port number provided. Using the default port "+1337),1337):t}return 1337};Ue();de();var Rp=e=>{let t=e.command("extension").description("CLI for developing Designer Extensions.");t.command("list").description("Get list of project templates that can be used for `init`").action(Op),t.command("init").description("Bootstrap a Designer Extension.").argument("[projectName]","What is your Designer Extension's name?").argument("[scaffoldName]","Which project template do you want to use?").action(async(n,r)=>{let o=await Ho(),i=Object.keys(o),s=await ye({message:"What would you like to name your Designer Extension?",default:n,validate:u=>u.trim()===""?"The Designer Extension name cannot be empty.":!0});if(s===null)throw new S("When --no-input mode is enabled please provide the [projectName] argument.");let a=await Ae({message:"Which project template would you like to use?",choices:i.map(u=>({name:u,value:u})),default:r||"default"});await Pp(s,a)}),t.command("bundle").description("Prepare package that can be uploaded to Webflow.").action(Ip),t.command("serve").description("Serve your extension locally.").argument("[port]","The port to serve your extension on").action(Bp)};Il();var Dh=e=>{e.command("devlink").description("CLI for managing your Webflow components. Make sure WEBFLOW_SITE_ID and WEBFLOW_SITE_API_TOKEN are set in your .env file. Or pass them as arguments --site and --api-token.").command("sync").argument("[components...]","A list of components to sync. If none is provided, all components will be synced.").option("--api-token <token>","Site API token. Default: value set in WEBFLOW_SITE_API_TOKEN env variable.").option("--site <site-id>","Site ID. Default: value set in WEBFLOW_SITE_ID env variable.").description("Sync your Webflow components to your filesystem.").action(Pl)};var Fe=D(require("fs")),be=D(require("path"));G();Rn();var ki="astro",Bl="cloud-scaffolds";var wh="package.json",vh="webflow.json",kh="wf-placeholder-name",xh="CLOUD_MOUNT_PATH",Ch="gitignore";var Rl=async(e,t,n=ki,r,o,i)=>{try{let s=r[n];if(!s)throw new Error(`Scaffold "${n}" not found`);for(let a of s)try{let u=be.join(e,a.split(be.join(Bl,n))[1]?.substring(1)||""),l=a.includes("next.config.ts"),c=a.includes("astro.config.mjs"),p=l||c;if(a.includes(wh)||a.includes(vh)){let f=(await Fe.promises.readFile(a,"utf8")).replace(kh,e);await xi(u,f)}else if(p){let m=await Fe.promises.readFile(a,"utf8");await xi(u,m.replace(xh,t))}else if(be.basename(u).toLowerCase()===Ch){let m=await Fe.promises.readFile(a,"utf8"),f=be.join(be.dirname(u),".gitignore");await xi(f,m)}else{let m=await Fe.promises.readFile(a);await xi(u,m)}}catch(u){d.error(`Error processing file ${a}: ${u}`)}if(o&&i)try{Kt({siteId:o,siteApiToken:i,directory:e})}catch(a){d.error(`Error creating .env file: ${a}`)}}catch(s){throw d.error(`Error applying scaffold: ${s}`),s}},jl=async()=>{try{let e={},t=be.join(be.resolve(__dirname),Bl);if(!Fe.existsSync(t))throw new Error(`Scaffolds directory not found at: ${t}`);let n=await Fe.promises.readdir(t);for(let r of n)try{let o=be.join(t,r);e[r]=await Eh(o)}catch(o){d.error(`Error processing scaffold ${r}: ${o}`)}return e}catch(e){throw d.error(`Error getting available scaffolds: ${e}`),e}},Eh=async e=>{let t=[];try{if(!Fe.existsSync(e))throw new Error(`Directory not found: ${e}`);let n=await Fe.promises.readdir(e);for(let r of n)try{let o=be.join(e,r);(await Fe.promises.stat(o)).isDirectory()?t.push(...await Eh(o)):t.push(o)}catch(o){d.error(`Error processing path ${r}: ${o}`)}}catch(n){throw d.error(`Error reading directory ${e}: ${n}`),n}return t},xi=async(e,t)=>{try{await Fe.promises.mkdir(be.dirname(e),{recursive:!0}),await Fe.promises.writeFile(e,t)}catch(n){throw d.error(`Error writing file ${e}: ${n}`),n}};Rn();ut();var Bt=D(require("fs")),Ll=D(require("path"));G();var Ci={angular:{package_identifier:"@angular/ssr",build_command:"ng build",config_template_path:"templates/angular/angular.json.template",wrangler_template_path:"templates/angular/wrangler.angular.json",assets_path:"dist/browser",deployment_type:"ssr",entrypoint_path:"./server.js"},astro:{package_identifier:"@astrojs/cloudflare",build_command:"astro build",config_template_path:"templates/astro/astro.config.mjs.template",additional_config_files:["templates/astro/webflow-loader.ts"],wrangler_template_path:"templates/astro/wrangler.astro.json",assets_path:"dist",deployment_type:"ssr",assets_exclude_path:"_worker.js",entrypoint_path:"./index.js"},docusaurus:{package_identifier:"@docusaurus/core",build_command:"docusaurus build",config_template_path:"templates/docusaurus/docusaurus.config.js.template",wrangler_template_path:"templates/docusaurus/wrangler.docusaurus.json",assets_path:"build",deployment_type:"ssg",entrypoint_path:"./no-op-worker.js"},gatsby:{package_identifier:"gatsby",build_command:"gatsby build",wrangler_template_path:"templates/gatsby/wrangler.gatsby.json",assets_path:"public",deployment_type:"ssg",entrypoint_path:"./no-op-worker.js"},nextjs:{package_identifier:"@opennextjs/cloudflare",build_command:"opennextjs-cloudflare build",config_template_path:"templates/nextjs/next.config.ts.template",additional_config_files:["templates/nextjs/webflow-loader.ts"],wrangler_template_path:"templates/nextjs/wrangler.nextjs.json",assets_path:".open-next/assets",entrypoint_path:"./worker.js",deployment_type:"ssr"},nuxt:{package_identifier:"nuxt",build_command:"nuxt build",config_template_path:"templates/nuxt/nuxt.config.ts.template",wrangler_template_path:"templates/nuxt/wrangler.nuxt.json",assets_path:".output/public",entrypoint_path:"./index.js",deployment_type:"ssr"},qwik:{package_identifier:"@builder.io/qwik",build_command:"qwik build",config_template_path:"templates/qwik/vite.config.ts.template",wrangler_template_path:"templates/qwik/wrangler.qwik.json",assets_path:"dist",deployment_type:"ssr",entrypoint_path:"./_worker.js"},react:{package_identifier:"@vitejs/plugin-react",build_command:"tsc -b && vite build",config_template_path:"templates/react/vite.config.ts.template",wrangler_template_path:"templates/react/wrangler.react.json",assets_path:"dist",deployment_type:"spa",entrypoint_path:"./index.js"},remix:{package_identifier:"@remix-run/cloudflare",build_command:"remix vite:build",config_template_path:"templates/remix/vite.config.ts.template",wrangler_template_path:"templates/remix/wrangler.remix.json",assets_path:"build/client",deployment_type:"ssr",entrypoint_path:"./server.js"},solid:{package_identifier:"@solidjs/start",build_command:"vinxi build",config_template_path:"templates/solid/app.config.ts.template",wrangler_template_path:"templates/solid/wrangler.solid.json",assets_path:".output/public",deployment_type:"ssr",entrypoint_path:"./index.js"},svelte:{package_identifier:"@sveltejs/vite-plugin-svelte",build_command:"vite build",config_template_path:"templates/svelte/vite.config.ts.template",wrangler_template_path:"templates/svelte/wrangler.svelte.json",assets_path:".svelte-kit/cloudflare",deployment_type:"ssr",entrypoint_path:"./_worker.js"},vue:{package_identifier:"@vitejs/plugin-vue",build_command:"vue-tsc --build && vite build",config_template_path:"templates/vue/vite.config.ts.template",wrangler_template_path:"templates/vue/wrangler.vue.json",assets_path:"dist",deployment_type:"spa",entrypoint_path:"./index.js"}},Ei=["nextjs","astro","remix"];async function Fh(e=process.cwd()){let t=Ll.join(e,"package.json"),n=Ll.join(e,"webflow.json");if(!Bt.existsSync(t))throw new Error("No package.json file found");let r=null;if(Bt.existsSync(n))try{let i=JSON.parse(Bt.readFileSync(n,"utf8")).cloud?.framework;if(i){if(!Ci[i]){let s=Object.keys(Ci).join(", ");throw new Error(`Framework '${i}' from webflow.json is not supported. Must be one of: ${s}`)}if(!Ei.includes(i))throw new Error(`Framework '${i}' is not currently supported. Must be one of: ${Ei.join(", ")}`);r=i,d.info(`Using framework type from webflow.json: ${r}`)}else throw new Error("webflow.json exists but doesn't contain valid framework information under the 'cloud' key")}catch(o){throw o instanceof SyntaxError?new Error("webflow.json contains invalid JSON"):o}if(!r)try{let o=JSON.parse(Bt.readFileSync(t,"utf8"));for(let s of Ei){let u=Ci[s].package_identifier;if(o.dependencies?.[u]||o.devDependencies?.[u]){r=s;break}}if(!r)throw new Error(`Framework not detected or not supported. Only ${Ei.join(", ")} are currently supported.`);d.info(`Detected framework: ${r}`),Bt.writeFileSync(n,JSON.stringify({cloud:{framework:r}},null,2))}catch(o){throw o instanceof SyntaxError?new Error("package.json contains invalid JSON"):o}return{framework:r,config:Ci[r]}}var O=D(require("fs")),N=D(require("path")),ir=require("child_process"),Zh=D(require("tar"));var re=D(require("fs")),ve=D(require("path"));var K={};os(K,{BRAND:()=>gE,DIRTY:()=>rn,EMPTY_PATH:()=>J1,INVALID:()=>R,NEVER:()=>eF,OK:()=>me,ParseStatus:()=>ce,Schema:()=>U,ZodAny:()=>Lt,ZodArray:()=>Dt,ZodBigInt:()=>sn,ZodBoolean:()=>an,ZodBranded:()=>oo,ZodCatch:()=>bn,ZodDate:()=>ln,ZodDefault:()=>yn,ZodDiscriminatedUnion:()=>Si,ZodEffects:()=>je,ZodEnum:()=>hn,ZodError:()=>De,ZodFirstPartyTypeKind:()=>L,ZodFunction:()=>Ai,ZodIntersection:()=>dn,ZodIssueCode:()=>b,ZodLazy:()=>fn,ZodLiteral:()=>mn,ZodMap:()=>er,ZodNaN:()=>nr,ZodNativeEnum:()=>gn,ZodNever:()=>Je,ZodNull:()=>cn,ZodNullable:()=>it,ZodNumber:()=>on,ZodObject:()=>we,ZodOptional:()=>Be,ZodParsedType:()=>E,ZodPipeline:()=>io,ZodPromise:()=>Nt,ZodReadonly:()=>Dn,ZodRecord:()=>Ti,ZodSchema:()=>U,ZodSet:()=>tr,ZodString:()=>jt,ZodSymbol:()=>Xn,ZodTransformer:()=>je,ZodTuple:()=>ot,ZodType:()=>U,ZodUndefined:()=>un,ZodUnion:()=>pn,ZodUnknown:()=>bt,ZodVoid:()=>Qn,addIssueToContext:()=>w,any:()=>EE,array:()=>TE,bigint:()=>wE,boolean:()=>Lh,coerce:()=>QE,custom:()=>Bh,date:()=>vE,datetimeRegex:()=>Ph,defaultErrorMap:()=>gt,discriminatedUnion:()=>IE,effect:()=>GE,enum:()=>zE,function:()=>ME,getErrorMap:()=>Zn,getParsedType:()=>rt,instanceof:()=>bE,intersection:()=>BE,isAborted:()=>Fi,isAsync:()=>Kn,isDirty:()=>_i,isValid:()=>Rt,late:()=>yE,lazy:()=>$E,literal:()=>WE,makeIssue:()=>ro,map:()=>LE,nan:()=>DE,nativeEnum:()=>UE,never:()=>_E,null:()=>CE,nullable:()=>HE,number:()=>jh,object:()=>AE,objectUtil:()=>Nl,oboolean:()=>XE,onumber:()=>YE,optional:()=>qE,ostring:()=>KE,pipeline:()=>ZE,preprocess:()=>JE,promise:()=>VE,quotelessJson:()=>G1,record:()=>jE,set:()=>NE,setErrorMap:()=>H1,strictObject:()=>OE,string:()=>Rh,symbol:()=>kE,transformer:()=>GE,tuple:()=>RE,undefined:()=>xE,union:()=>PE,unknown:()=>FE,util:()=>V,void:()=>SE});var V;(function(e){e.assertEqual=o=>{};function t(o){}e.assertIs=t;function n(o){throw new Error}e.assertNever=n,e.arrayToEnum=o=>{let i={};for(let s of o)i[s]=s;return i},e.getValidEnumValues=o=>{let i=e.objectKeys(o).filter(a=>typeof o[o[a]]!="number"),s={};for(let a of i)s[a]=o[a];return e.objectValues(s)},e.objectValues=o=>e.objectKeys(o).map(function(i){return o[i]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{let i=[];for(let s in o)Object.prototype.hasOwnProperty.call(o,s)&&i.push(s);return i},e.find=(o,i)=>{for(let s of o)if(i(s))return s},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function r(o,i=" | "){return o.map(s=>typeof s=="string"?`'${s}'`:s).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(o,i)=>typeof i=="bigint"?i.toString():i})(V||(V={}));var Nl;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(Nl||(Nl={}));var E=V.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),rt=e=>{switch(typeof e){case"undefined":return E.undefined;case"string":return E.string;case"number":return Number.isNaN(e)?E.nan:E.number;case"boolean":return E.boolean;case"function":return E.function;case"bigint":return E.bigint;case"symbol":return E.symbol;case"object":return Array.isArray(e)?E.array:e===null?E.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?E.promise:typeof Map<"u"&&e instanceof Map?E.map:typeof Set<"u"&&e instanceof Set?E.set:typeof Date<"u"&&e instanceof Date?E.date:E.object;default:return E.unknown}};var b=V.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),G1=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),De=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};let n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){let n=t||function(i){return i.message},r={_errors:[]},o=i=>{for(let s of i.issues)if(s.code==="invalid_union")s.unionErrors.map(o);else if(s.code==="invalid_return_type")o(s.returnTypeError);else if(s.code==="invalid_arguments")o(s.argumentsError);else if(s.path.length===0)r._errors.push(n(s));else{let a=r,u=0;for(;u<s.path.length;){let l=s.path[u];u===s.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(n(s))):a[l]=a[l]||{_errors:[]},a=a[l],u++}}};return o(this),r}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,V.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){let n={},r=[];for(let o of this.issues)if(o.path.length>0){let i=o.path[0];n[i]=n[i]||[],n[i].push(t(o))}else r.push(t(o));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}};De.create=e=>new De(e);var q1=(e,t)=>{let n;switch(e.code){case b.invalid_type:e.received===E.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case b.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,V.jsonStringifyReplacer)}`;break;case b.unrecognized_keys:n=`Unrecognized key(s) in object: ${V.joinValues(e.keys,", ")}`;break;case b.invalid_union:n="Invalid input";break;case b.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${V.joinValues(e.options)}`;break;case b.invalid_enum_value:n=`Invalid enum value. Expected ${V.joinValues(e.options)}, received '${e.received}'`;break;case b.invalid_arguments:n="Invalid function arguments";break;case b.invalid_return_type:n="Invalid function return type";break;case b.invalid_date:n="Invalid date";break;case b.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:V.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case b.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case b.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case b.custom:n="Invalid input";break;case b.invalid_intersection_types:n="Intersection results could not be merged";break;case b.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case b.not_finite:n="Number must be finite";break;default:n=t.defaultError,V.assertNever(e)}return{message:n}},gt=q1;var _h=gt;function H1(e){_h=e}function Zn(){return _h}var ro=e=>{let{data:t,path:n,errorMaps:r,issueData:o}=e,i=[...n,...o.path||[]],s={...o,path:i};if(o.message!==void 0)return{...o,path:i,message:o.message};let a="",u=r.filter(l=>!!l).slice().reverse();for(let l of u)a=l(s,{data:t,defaultError:a}).message;return{...o,path:i,message:a}},J1=[];function w(e,t){let n=Zn(),r=ro({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===gt?void 0:gt].filter(o=>!!o)});e.common.issues.push(r)}var ce=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){let r=[];for(let o of n){if(o.status==="aborted")return R;o.status==="dirty"&&t.dirty(),r.push(o.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){let r=[];for(let o of n){let i=await o.key,s=await o.value;r.push({key:i,value:s})}return e.mergeObjectSync(t,r)}static mergeObjectSync(t,n){let r={};for(let o of n){let{key:i,value:s}=o;if(i.status==="aborted"||s.status==="aborted")return R;i.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof s.value<"u"||o.alwaysSet)&&(r[i.value]=s.value)}return{status:t.value,value:r}}},R=Object.freeze({status:"aborted"}),rn=e=>({status:"dirty",value:e}),me=e=>({status:"valid",value:e}),Fi=e=>e.status==="aborted",_i=e=>e.status==="dirty",Rt=e=>e.status==="valid",Kn=e=>typeof Promise<"u"&&e instanceof Promise;var A;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(A||(A={}));var Re=class{constructor(t,n,r,o){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},Sh=(e,t)=>{if(Rt(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let n=new De(e.common.issues);return this._error=n,this._error}}};function $(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(s,a)=>{let{message:u}=e;return s.code==="invalid_enum_value"?{message:u??a.defaultError}:typeof a.data>"u"?{message:u??r??a.defaultError}:s.code!=="invalid_type"?{message:a.defaultError}:{message:u??n??a.defaultError}},description:o}}var U=class{get description(){return this._def.description}_getType(t){return rt(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:rt(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new ce,ctx:{common:t.parent.common,data:t.data,parsedType:rt(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let n=this._parse(t);if(Kn(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){let n=this._parse(t);return Promise.resolve(n)}parse(t,n){let r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){let r={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:rt(t)},o=this._parseSync({data:t,path:r.path,parent:r});return Sh(r,o)}"~validate"(t){let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:rt(t)};if(!this["~standard"].async)try{let r=this._parseSync({data:t,path:[],parent:n});return Rt(r)?{value:r.value}:{issues:n.common.issues}}catch(r){r?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(r=>Rt(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(t,n){let r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){let r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:rt(t)},o=this._parse({data:t,path:r.path,parent:r}),i=await(Kn(o)?o:Promise.resolve(o));return Sh(r,i)}refine(t,n){let r=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,i)=>{let s=t(o),a=()=>i.addIssue({code:b.custom,...r(o)});return typeof Promise<"u"&&s instanceof Promise?s.then(u=>u?!0:(a(),!1)):s?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,o)=>t(r)?!0:(o.addIssue(typeof n=="function"?n(r,o):n),!1))}_refinement(t){return new je({schema:this,typeName:L.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Be.create(this,this._def)}nullable(){return it.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return Dt.create(this)}promise(){return Nt.create(this,this._def)}or(t){return pn.create([this,t],this._def)}and(t){return dn.create(this,t,this._def)}transform(t){return new je({...$(this._def),schema:this,typeName:L.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let n=typeof t=="function"?t:()=>t;return new yn({...$(this._def),innerType:this,defaultValue:n,typeName:L.ZodDefault})}brand(){return new oo({typeName:L.ZodBranded,type:this,...$(this._def)})}catch(t){let n=typeof t=="function"?t:()=>t;return new bn({...$(this._def),innerType:this,catchValue:n,typeName:L.ZodCatch})}describe(t){let n=this.constructor;return new n({...this._def,description:t})}pipe(t){return io.create(this,t)}readonly(){return Dn.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},Z1=/^c[^\s-]{8,}$/i,K1=/^[0-9a-z]+$/,Y1=/^[0-9A-HJKMNP-TV-Z]{26}$/i,X1=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,Q1=/^[a-z0-9_-]{21}$/i,eE=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,tE=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,nE=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,rE="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",Ml,oE=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,iE=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,sE=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,aE=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,lE=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,uE=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,Ah="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",cE=new RegExp(`^${Ah}$`);function Oh(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function pE(e){return new RegExp(`^${Oh(e)}$`)}function Ph(e){let t=`${Ah}T${Oh(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function dE(e,t){return!!((t==="v4"||!t)&&oE.test(e)||(t==="v6"||!t)&&sE.test(e))}function fE(e,t){if(!eE.test(e))return!1;try{let[n]=e.split(".");if(!n)return!1;let r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),o=JSON.parse(atob(r));return!(typeof o!="object"||o===null||"typ"in o&&o?.typ!=="JWT"||!o.alg||t&&o.alg!==t)}catch{return!1}}function mE(e,t){return!!((t==="v4"||!t)&&iE.test(e)||(t==="v6"||!t)&&aE.test(e))}var jt=class e extends U{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==E.string){let i=this._getOrReturnCtx(t);return w(i,{code:b.invalid_type,expected:E.string,received:i.parsedType}),R}let r=new ce,o;for(let i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(o=this._getOrReturnCtx(t,o),w(o,{code:b.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")t.data.length>i.value&&(o=this._getOrReturnCtx(t,o),w(o,{code:b.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){let s=t.data.length>i.value,a=t.data.length<i.value;(s||a)&&(o=this._getOrReturnCtx(t,o),s?w(o,{code:b.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&w(o,{code:b.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")nE.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"email",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")Ml||(Ml=new RegExp(rE,"u")),Ml.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"emoji",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")X1.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"uuid",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")Q1.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"nanoid",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")Z1.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"cuid",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")K1.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"cuid2",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")Y1.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"ulid",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{o=this._getOrReturnCtx(t,o),w(o,{validation:"url",code:b.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"regex",code:b.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(o=this._getOrReturnCtx(t,o),w(o,{code:b.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(o=this._getOrReturnCtx(t,o),w(o,{code:b.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(o=this._getOrReturnCtx(t,o),w(o,{code:b.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?Ph(i).test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{code:b.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?cE.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{code:b.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?pE(i).test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{code:b.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?tE.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"duration",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?dE(t.data,i.version)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"ip",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="jwt"?fE(t.data,i.alg)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"jwt",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="cidr"?mE(t.data,i.version)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"cidr",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?lE.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"base64",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="base64url"?uE.test(t.data)||(o=this._getOrReturnCtx(t,o),w(o,{validation:"base64url",code:b.invalid_string,message:i.message}),r.dirty()):V.assertNever(i);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(o=>t.test(o),{validation:n,code:b.invalid_string,...A.errToObj(r)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...A.errToObj(t)})}url(t){return this._addCheck({kind:"url",...A.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...A.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...A.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...A.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...A.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...A.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...A.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...A.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...A.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...A.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...A.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...A.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...A.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...A.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...A.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...A.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...A.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...A.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...A.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...A.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...A.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...A.errToObj(n)})}nonempty(t){return this.min(1,A.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};jt.create=e=>new jt({checks:[],typeName:L.ZodString,coerce:e?.coerce??!1,...$(e)});function hE(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r,i=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return i%s/10**o}var on=class e extends U{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==E.number){let i=this._getOrReturnCtx(t);return w(i,{code:b.invalid_type,expected:E.number,received:i.parsedType}),R}let r,o=new ce;for(let i of this._def.checks)i.kind==="int"?V.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),w(r,{code:b.invalid_type,expected:"integer",received:"float",message:i.message}),o.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),w(r,{code:b.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),w(r,{code:b.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind==="multipleOf"?hE(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),w(r,{code:b.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),w(r,{code:b.not_finite,message:i.message}),o.dirty()):V.assertNever(i);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,A.toString(n))}gt(t,n){return this.setLimit("min",t,!1,A.toString(n))}lte(t,n){return this.setLimit("max",t,!0,A.toString(n))}lt(t,n){return this.setLimit("max",t,!1,A.toString(n))}setLimit(t,n,r,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:A.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:A.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:A.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:A.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:A.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:A.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:A.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:A.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:A.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:A.toString(t)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&V.isInteger(t.value))}get isFinite(){let t=null,n=null;for(let r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}};on.create=e=>new on({checks:[],typeName:L.ZodNumber,coerce:e?.coerce||!1,...$(e)});var sn=class e extends U{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==E.bigint)return this._getInvalidInput(t);let r,o=new ce;for(let i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),w(r,{code:b.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),w(r,{code:b.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),w(r,{code:b.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):V.assertNever(i);return{status:o.value,value:t.data}}_getInvalidInput(t){let n=this._getOrReturnCtx(t);return w(n,{code:b.invalid_type,expected:E.bigint,received:n.parsedType}),R}gte(t,n){return this.setLimit("min",t,!0,A.toString(n))}gt(t,n){return this.setLimit("min",t,!1,A.toString(n))}lte(t,n){return this.setLimit("max",t,!0,A.toString(n))}lt(t,n){return this.setLimit("max",t,!1,A.toString(n))}setLimit(t,n,r,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:A.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:A.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:A.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:A.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:A.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:A.toString(n)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};sn.create=e=>new sn({checks:[],typeName:L.ZodBigInt,coerce:e?.coerce??!1,...$(e)});var an=class extends U{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==E.boolean){let r=this._getOrReturnCtx(t);return w(r,{code:b.invalid_type,expected:E.boolean,received:r.parsedType}),R}return me(t.data)}};an.create=e=>new an({typeName:L.ZodBoolean,coerce:e?.coerce||!1,...$(e)});var ln=class e extends U{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==E.date){let i=this._getOrReturnCtx(t);return w(i,{code:b.invalid_type,expected:E.date,received:i.parsedType}),R}if(Number.isNaN(t.data.getTime())){let i=this._getOrReturnCtx(t);return w(i,{code:b.invalid_date}),R}let r=new ce,o;for(let i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(o=this._getOrReturnCtx(t,o),w(o,{code:b.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(o=this._getOrReturnCtx(t,o),w(o,{code:b.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):V.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:A.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:A.toString(n)})}get minDate(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}};ln.create=e=>new ln({checks:[],coerce:e?.coerce||!1,typeName:L.ZodDate,...$(e)});var Xn=class extends U{_parse(t){if(this._getType(t)!==E.symbol){let r=this._getOrReturnCtx(t);return w(r,{code:b.invalid_type,expected:E.symbol,received:r.parsedType}),R}return me(t.data)}};Xn.create=e=>new Xn({typeName:L.ZodSymbol,...$(e)});var un=class extends U{_parse(t){if(this._getType(t)!==E.undefined){let r=this._getOrReturnCtx(t);return w(r,{code:b.invalid_type,expected:E.undefined,received:r.parsedType}),R}return me(t.data)}};un.create=e=>new un({typeName:L.ZodUndefined,...$(e)});var cn=class extends U{_parse(t){if(this._getType(t)!==E.null){let r=this._getOrReturnCtx(t);return w(r,{code:b.invalid_type,expected:E.null,received:r.parsedType}),R}return me(t.data)}};cn.create=e=>new cn({typeName:L.ZodNull,...$(e)});var Lt=class extends U{constructor(){super(...arguments),this._any=!0}_parse(t){return me(t.data)}};Lt.create=e=>new Lt({typeName:L.ZodAny,...$(e)});var bt=class extends U{constructor(){super(...arguments),this._unknown=!0}_parse(t){return me(t.data)}};bt.create=e=>new bt({typeName:L.ZodUnknown,...$(e)});var Je=class extends U{_parse(t){let n=this._getOrReturnCtx(t);return w(n,{code:b.invalid_type,expected:E.never,received:n.parsedType}),R}};Je.create=e=>new Je({typeName:L.ZodNever,...$(e)});var Qn=class extends U{_parse(t){if(this._getType(t)!==E.undefined){let r=this._getOrReturnCtx(t);return w(r,{code:b.invalid_type,expected:E.void,received:r.parsedType}),R}return me(t.data)}};Qn.create=e=>new Qn({typeName:L.ZodVoid,...$(e)});var Dt=class e extends U{_parse(t){let{ctx:n,status:r}=this._processInputParams(t),o=this._def;if(n.parsedType!==E.array)return w(n,{code:b.invalid_type,expected:E.array,received:n.parsedType}),R;if(o.exactLength!==null){let s=n.data.length>o.exactLength.value,a=n.data.length<o.exactLength.value;(s||a)&&(w(n,{code:s?b.too_big:b.too_small,minimum:a?o.exactLength.value:void 0,maximum:s?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),r.dirty())}if(o.minLength!==null&&n.data.length<o.minLength.value&&(w(n,{code:b.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),r.dirty()),o.maxLength!==null&&n.data.length>o.maxLength.value&&(w(n,{code:b.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((s,a)=>o.type._parseAsync(new Re(n,s,n.path,a)))).then(s=>ce.mergeArray(r,s));let i=[...n.data].map((s,a)=>o.type._parseSync(new Re(n,s,n.path,a)));return ce.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:A.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:A.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:A.toString(n)}})}nonempty(t){return this.min(1,t)}};Dt.create=(e,t)=>new Dt({type:e,minLength:null,maxLength:null,exactLength:null,typeName:L.ZodArray,...$(t)});function Yn(e){if(e instanceof we){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=Be.create(Yn(r))}return new we({...e._def,shape:()=>t})}else return e instanceof Dt?new Dt({...e._def,type:Yn(e.element)}):e instanceof Be?Be.create(Yn(e.unwrap())):e instanceof it?it.create(Yn(e.unwrap())):e instanceof ot?ot.create(e.items.map(t=>Yn(t))):e}var we=class e extends U{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),n=V.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==E.object){let l=this._getOrReturnCtx(t);return w(l,{code:b.invalid_type,expected:E.object,received:l.parsedType}),R}let{status:r,ctx:o}=this._processInputParams(t),{shape:i,keys:s}=this._getCached(),a=[];if(!(this._def.catchall instanceof Je&&this._def.unknownKeys==="strip"))for(let l in o.data)s.includes(l)||a.push(l);let u=[];for(let l of s){let c=i[l],p=o.data[l];u.push({key:{status:"valid",value:l},value:c._parse(new Re(o,p,o.path,l)),alwaysSet:l in o.data})}if(this._def.catchall instanceof Je){let l=this._def.unknownKeys;if(l==="passthrough")for(let c of a)u.push({key:{status:"valid",value:c},value:{status:"valid",value:o.data[c]}});else if(l==="strict")a.length>0&&(w(o,{code:b.unrecognized_keys,keys:a}),r.dirty());else if(l!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let l=this._def.catchall;for(let c of a){let p=o.data[c];u.push({key:{status:"valid",value:c},value:l._parse(new Re(o,p,o.path,c)),alwaysSet:c in o.data})}}return o.common.async?Promise.resolve().then(async()=>{let l=[];for(let c of u){let p=await c.key,m=await c.value;l.push({key:p,value:m,alwaysSet:c.alwaysSet})}return l}).then(l=>ce.mergeObjectSync(r,l)):ce.mergeObjectSync(r,u)}get shape(){return this._def.shape()}strict(t){return A.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{let o=this._def.errorMap?.(n,r).message??r.defaultError;return n.code==="unrecognized_keys"?{message:A.errToObj(t).message??o}:{message:o}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:L.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};for(let r of V.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new e({...this._def,shape:()=>n})}omit(t){let n={};for(let r of V.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new e({...this._def,shape:()=>n})}deepPartial(){return Yn(this)}partial(t){let n={};for(let r of V.objectKeys(this.shape)){let o=this.shape[r];t&&!t[r]?n[r]=o:n[r]=o.optional()}return new e({...this._def,shape:()=>n})}required(t){let n={};for(let r of V.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof Be;)i=i._def.innerType;n[r]=i}return new e({...this._def,shape:()=>n})}keyof(){return Ih(V.objectKeys(this.shape))}};we.create=(e,t)=>new we({shape:()=>e,unknownKeys:"strip",catchall:Je.create(),typeName:L.ZodObject,...$(t)});we.strictCreate=(e,t)=>new we({shape:()=>e,unknownKeys:"strict",catchall:Je.create(),typeName:L.ZodObject,...$(t)});we.lazycreate=(e,t)=>new we({shape:e,unknownKeys:"strip",catchall:Je.create(),typeName:L.ZodObject,...$(t)});var pn=class extends U{_parse(t){let{ctx:n}=this._processInputParams(t),r=this._def.options;function o(i){for(let a of i)if(a.result.status==="valid")return a.result;for(let a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;let s=i.map(a=>new De(a.ctx.common.issues));return w(n,{code:b.invalid_union,unionErrors:s}),R}if(n.common.async)return Promise.all(r.map(async i=>{let s={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:s}),ctx:s}})).then(o);{let i,s=[];for(let u of r){let l={...n,common:{...n.common,issues:[]},parent:null},c=u._parseSync({data:n.data,path:n.path,parent:l});if(c.status==="valid")return c;c.status==="dirty"&&!i&&(i={result:c,ctx:l}),l.common.issues.length&&s.push(l.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;let a=s.map(u=>new De(u));return w(n,{code:b.invalid_union,unionErrors:a}),R}}get options(){return this._def.options}};pn.create=(e,t)=>new pn({options:e,typeName:L.ZodUnion,...$(t)});var yt=e=>e instanceof fn?yt(e.schema):e instanceof je?yt(e.innerType()):e instanceof mn?[e.value]:e instanceof hn?e.options:e instanceof gn?V.objectValues(e.enum):e instanceof yn?yt(e._def.innerType):e instanceof un?[void 0]:e instanceof cn?[null]:e instanceof Be?[void 0,...yt(e.unwrap())]:e instanceof it?[null,...yt(e.unwrap())]:e instanceof oo||e instanceof Dn?yt(e.unwrap()):e instanceof bn?yt(e._def.innerType):[],Si=class e extends U{_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==E.object)return w(n,{code:b.invalid_type,expected:E.object,received:n.parsedType}),R;let r=this.discriminator,o=n.data[r],i=this.optionsMap.get(o);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(w(n,{code:b.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),R)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){let o=new Map;for(let i of n){let s=yt(i.shape[t]);if(!s.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let a of s){if(o.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);o.set(a,i)}}return new e({typeName:L.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:o,...$(r)})}};function $l(e,t){let n=rt(e),r=rt(t);if(e===t)return{valid:!0,data:e};if(n===E.object&&r===E.object){let o=V.objectKeys(t),i=V.objectKeys(e).filter(a=>o.indexOf(a)!==-1),s={...e,...t};for(let a of i){let u=$l(e[a],t[a]);if(!u.valid)return{valid:!1};s[a]=u.data}return{valid:!0,data:s}}else if(n===E.array&&r===E.array){if(e.length!==t.length)return{valid:!1};let o=[];for(let i=0;i<e.length;i++){let s=e[i],a=t[i],u=$l(s,a);if(!u.valid)return{valid:!1};o.push(u.data)}return{valid:!0,data:o}}else return n===E.date&&r===E.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var dn=class extends U{_parse(t){let{status:n,ctx:r}=this._processInputParams(t),o=(i,s)=>{if(Fi(i)||Fi(s))return R;let a=$l(i.value,s.value);return a.valid?((_i(i)||_i(s))&&n.dirty(),{status:n.value,value:a.data}):(w(r,{code:b.invalid_intersection_types}),R)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,s])=>o(i,s)):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}};dn.create=(e,t,n)=>new dn({left:e,right:t,typeName:L.ZodIntersection,...$(n)});var ot=class e extends U{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==E.array)return w(r,{code:b.invalid_type,expected:E.array,received:r.parsedType}),R;if(r.data.length<this._def.items.length)return w(r,{code:b.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),R;!this._def.rest&&r.data.length>this._def.items.length&&(w(r,{code:b.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());let i=[...r.data].map((s,a)=>{let u=this._def.items[a]||this._def.rest;return u?u._parse(new Re(r,s,r.path,a)):null}).filter(s=>!!s);return r.common.async?Promise.all(i).then(s=>ce.mergeArray(n,s)):ce.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};ot.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new ot({items:e,typeName:L.ZodTuple,rest:null,...$(t)})};var Ti=class e extends U{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==E.object)return w(r,{code:b.invalid_type,expected:E.object,received:r.parsedType}),R;let o=[],i=this._def.keyType,s=this._def.valueType;for(let a in r.data)o.push({key:i._parse(new Re(r,a,r.path,a)),value:s._parse(new Re(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?ce.mergeObjectAsync(n,o):ce.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof U?new e({keyType:t,valueType:n,typeName:L.ZodRecord,...$(r)}):new e({keyType:jt.create(),valueType:t,typeName:L.ZodRecord,...$(n)})}},er=class extends U{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==E.map)return w(r,{code:b.invalid_type,expected:E.map,received:r.parsedType}),R;let o=this._def.keyType,i=this._def.valueType,s=[...r.data.entries()].map(([a,u],l)=>({key:o._parse(new Re(r,a,r.path,[l,"key"])),value:i._parse(new Re(r,u,r.path,[l,"value"]))}));if(r.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let u of s){let l=await u.key,c=await u.value;if(l.status==="aborted"||c.status==="aborted")return R;(l.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(l.value,c.value)}return{status:n.value,value:a}})}else{let a=new Map;for(let u of s){let l=u.key,c=u.value;if(l.status==="aborted"||c.status==="aborted")return R;(l.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(l.value,c.value)}return{status:n.value,value:a}}}};er.create=(e,t,n)=>new er({valueType:t,keyType:e,typeName:L.ZodMap,...$(n)});var tr=class e extends U{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==E.set)return w(r,{code:b.invalid_type,expected:E.set,received:r.parsedType}),R;let o=this._def;o.minSize!==null&&r.data.size<o.minSize.value&&(w(r,{code:b.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),n.dirty()),o.maxSize!==null&&r.data.size>o.maxSize.value&&(w(r,{code:b.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());let i=this._def.valueType;function s(u){let l=new Set;for(let c of u){if(c.status==="aborted")return R;c.status==="dirty"&&n.dirty(),l.add(c.value)}return{status:n.value,value:l}}let a=[...r.data.values()].map((u,l)=>i._parse(new Re(r,u,r.path,l)));return r.common.async?Promise.all(a).then(u=>s(u)):s(a)}min(t,n){return new e({...this._def,minSize:{value:t,message:A.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:A.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};tr.create=(e,t)=>new tr({valueType:e,minSize:null,maxSize:null,typeName:L.ZodSet,...$(t)});var Ai=class e extends U{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==E.function)return w(n,{code:b.invalid_type,expected:E.function,received:n.parsedType}),R;function r(a,u){return ro({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Zn(),gt].filter(l=>!!l),issueData:{code:b.invalid_arguments,argumentsError:u}})}function o(a,u){return ro({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,Zn(),gt].filter(l=>!!l),issueData:{code:b.invalid_return_type,returnTypeError:u}})}let i={errorMap:n.common.contextualErrorMap},s=n.data;if(this._def.returns instanceof Nt){let a=this;return me(async function(...u){let l=new De([]),c=await a._def.args.parseAsync(u,i).catch(f=>{throw l.addIssue(r(u,f)),l}),p=await Reflect.apply(s,this,c);return await a._def.returns._def.type.parseAsync(p,i).catch(f=>{throw l.addIssue(o(p,f)),l})})}else{let a=this;return me(function(...u){let l=a._def.args.safeParse(u,i);if(!l.success)throw new De([r(u,l.error)]);let c=Reflect.apply(s,this,l.data),p=a._def.returns.safeParse(c,i);if(!p.success)throw new De([o(c,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:ot.create(t).rest(bt.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new e({args:t||ot.create([]).rest(bt.create()),returns:n||bt.create(),typeName:L.ZodFunction,...$(r)})}},fn=class extends U{get schema(){return this._def.getter()}_parse(t){let{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}};fn.create=(e,t)=>new fn({getter:e,typeName:L.ZodLazy,...$(t)});var mn=class extends U{_parse(t){if(t.data!==this._def.value){let n=this._getOrReturnCtx(t);return w(n,{received:n.data,code:b.invalid_literal,expected:this._def.value}),R}return{status:"valid",value:t.data}}get value(){return this._def.value}};mn.create=(e,t)=>new mn({value:e,typeName:L.ZodLiteral,...$(t)});function Ih(e,t){return new hn({values:e,typeName:L.ZodEnum,...$(t)})}var hn=class e extends U{_parse(t){if(typeof t.data!="string"){let n=this._getOrReturnCtx(t),r=this._def.values;return w(n,{expected:V.joinValues(r),received:n.parsedType,code:b.invalid_type}),R}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let n=this._getOrReturnCtx(t),r=this._def.values;return w(n,{received:n.data,code:b.invalid_enum_value,options:r}),R}return me(t.data)}get options(){return this._def.values}get enum(){let t={};for(let n of this._def.values)t[n]=n;return t}get Values(){let t={};for(let n of this._def.values)t[n]=n;return t}get Enum(){let t={};for(let n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}};hn.create=Ih;var gn=class extends U{_parse(t){let n=V.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==E.string&&r.parsedType!==E.number){let o=V.objectValues(n);return w(r,{expected:V.joinValues(o),received:r.parsedType,code:b.invalid_type}),R}if(this._cache||(this._cache=new Set(V.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let o=V.objectValues(n);return w(r,{received:r.data,code:b.invalid_enum_value,options:o}),R}return me(t.data)}get enum(){return this._def.values}};gn.create=(e,t)=>new gn({values:e,typeName:L.ZodNativeEnum,...$(t)});var Nt=class extends U{unwrap(){return this._def.type}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==E.promise&&n.common.async===!1)return w(n,{code:b.invalid_type,expected:E.promise,received:n.parsedType}),R;let r=n.parsedType===E.promise?n.data:Promise.resolve(n.data);return me(r.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}};Nt.create=(e,t)=>new Nt({type:e,typeName:L.ZodPromise,...$(t)});var je=class extends U{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===L.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:n,ctx:r}=this._processInputParams(t),o=this._def.effect||null,i={addIssue:s=>{w(r,s),s.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),o.type==="preprocess"){let s=o.transform(r.data,i);if(r.common.async)return Promise.resolve(s).then(async a=>{if(n.value==="aborted")return R;let u=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return u.status==="aborted"?R:u.status==="dirty"?rn(u.value):n.value==="dirty"?rn(u.value):u});{if(n.value==="aborted")return R;let a=this._def.schema._parseSync({data:s,path:r.path,parent:r});return a.status==="aborted"?R:a.status==="dirty"?rn(a.value):n.value==="dirty"?rn(a.value):a}}if(o.type==="refinement"){let s=a=>{let u=o.refinement(a,i);if(r.common.async)return Promise.resolve(u);if(u instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){let a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?R:(a.status==="dirty"&&n.dirty(),s(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?R:(a.status==="dirty"&&n.dirty(),s(a.value).then(()=>({status:n.value,value:a.value}))))}if(o.type==="transform")if(r.common.async===!1){let s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Rt(s))return R;let a=o.transform(s.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>Rt(s)?Promise.resolve(o.transform(s.value,i)).then(a=>({status:n.value,value:a})):R);V.assertNever(o)}};je.create=(e,t,n)=>new je({schema:e,typeName:L.ZodEffects,effect:t,...$(n)});je.createWithPreprocess=(e,t,n)=>new je({schema:t,effect:{type:"preprocess",transform:e},typeName:L.ZodEffects,...$(n)});var Be=class extends U{_parse(t){return this._getType(t)===E.undefined?me(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Be.create=(e,t)=>new Be({innerType:e,typeName:L.ZodOptional,...$(t)});var it=class extends U{_parse(t){return this._getType(t)===E.null?me(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};it.create=(e,t)=>new it({innerType:e,typeName:L.ZodNullable,...$(t)});var yn=class extends U{_parse(t){let{ctx:n}=this._processInputParams(t),r=n.data;return n.parsedType===E.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};yn.create=(e,t)=>new yn({innerType:e,typeName:L.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...$(t)});var bn=class extends U{_parse(t){let{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return Kn(o)?o.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new De(r.common.issues)},input:r.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new De(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}};bn.create=(e,t)=>new bn({innerType:e,typeName:L.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...$(t)});var nr=class extends U{_parse(t){if(this._getType(t)!==E.nan){let r=this._getOrReturnCtx(t);return w(r,{code:b.invalid_type,expected:E.nan,received:r.parsedType}),R}return{status:"valid",value:t.data}}};nr.create=e=>new nr({typeName:L.ZodNaN,...$(e)});var gE=Symbol("zod_brand"),oo=class extends U{_parse(t){let{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}},io=class e extends U{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{let i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?R:i.status==="dirty"?(n.dirty(),rn(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{let o=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?R:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:r.path,parent:r})}}static create(t,n){return new e({in:t,out:n,typeName:L.ZodPipeline})}},Dn=class extends U{_parse(t){let n=this._def.innerType._parse(t),r=o=>(Rt(o)&&(o.value=Object.freeze(o.value)),o);return Kn(n)?n.then(o=>r(o)):r(n)}unwrap(){return this._def.innerType}};Dn.create=(e,t)=>new Dn({innerType:e,typeName:L.ZodReadonly,...$(t)});function Th(e,t){let n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function Bh(e,t={},n){return e?Lt.create().superRefine((r,o)=>{let i=e(r);if(i instanceof Promise)return i.then(s=>{if(!s){let a=Th(t,r),u=a.fatal??n??!0;o.addIssue({code:"custom",...a,fatal:u})}});if(!i){let s=Th(t,r),a=s.fatal??n??!0;o.addIssue({code:"custom",...s,fatal:a})}}):Lt.create()}var yE={object:we.lazycreate},L;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(L||(L={}));var bE=(e,t={message:`Input not instance of ${e.name}`})=>Bh(n=>n instanceof e,t),Rh=jt.create,jh=on.create,DE=nr.create,wE=sn.create,Lh=an.create,vE=ln.create,kE=Xn.create,xE=un.create,CE=cn.create,EE=Lt.create,FE=bt.create,_E=Je.create,SE=Qn.create,TE=Dt.create,AE=we.create,OE=we.strictCreate,PE=pn.create,IE=Si.create,BE=dn.create,RE=ot.create,jE=Ti.create,LE=er.create,NE=tr.create,ME=Ai.create,$E=fn.create,WE=mn.create,zE=hn.create,UE=gn.create,VE=Nt.create,GE=je.create,qE=Be.create,HE=it.create,JE=je.createWithPreprocess,ZE=io.create,KE=()=>Rh().optional(),YE=()=>jh().optional(),XE=()=>Lh().optional(),QE={string:e=>jt.create({...e,coerce:!0}),number:e=>on.create({...e,coerce:!0}),boolean:e=>an.create({...e,coerce:!0}),bigint:e=>sn.create({...e,coerce:!0}),date:e=>ln.create({...e,coerce:!0})};var eF=R;function Oi(e,t=!1){let n=e.length,r=0,o="",i=0,s=16,a=0,u=0,l=0,c=0,p=0;function m(x,T){let q=0,j=0;for(;q<x||!T;){let F=e.charCodeAt(r);if(F>=48&&F<=57)j=j*16+F-48;else if(F>=65&&F<=70)j=j*16+F-65+10;else if(F>=97&&F<=102)j=j*16+F-97+10;else break;r++,q++}return q<x&&(j=-1),j}function f(x){r=x,o="",i=0,s=16,p=0}function y(){let x=r;if(e.charCodeAt(r)===48)r++;else for(r++;r<e.length&&rr(e.charCodeAt(r));)r++;if(r<e.length&&e.charCodeAt(r)===46)if(r++,r<e.length&&rr(e.charCodeAt(r)))for(r++;r<e.length&&rr(e.charCodeAt(r));)r++;else return p=3,e.substring(x,r);let T=r;if(r<e.length&&(e.charCodeAt(r)===69||e.charCodeAt(r)===101))if(r++,(r<e.length&&e.charCodeAt(r)===43||e.charCodeAt(r)===45)&&r++,r<e.length&&rr(e.charCodeAt(r))){for(r++;r<e.length&&rr(e.charCodeAt(r));)r++;T=r}else p=3;return e.substring(x,T)}function C(){let x="",T=r;for(;;){if(r>=n){x+=e.substring(T,r),p=2;break}let q=e.charCodeAt(r);if(q===34){x+=e.substring(T,r),r++;break}if(q===92){if(x+=e.substring(T,r),r++,r>=n){p=2;break}switch(e.charCodeAt(r++)){case 34:x+='"';break;case 92:x+="\\";break;case 47:x+="/";break;case 98:x+="\b";break;case 102:x+="\f";break;case 110:x+=`
92
- `;break;case 114:x+="\r";break;case 116:x+=" ";break;case 117:let F=m(4,!0);F>=0?x+=String.fromCharCode(F):p=4;break;default:p=5}T=r;continue}if(q>=0&&q<=31)if(so(q)){x+=e.substring(T,r),p=2;break}else p=6;r++}return x}function P(){if(o="",p=0,i=r,u=a,c=l,r>=n)return i=n,s=17;let x=e.charCodeAt(r);if(Wl(x)){do r++,o+=String.fromCharCode(x),x=e.charCodeAt(r);while(Wl(x));return s=15}if(so(x))return r++,o+=String.fromCharCode(x),x===13&&e.charCodeAt(r)===10&&(r++,o+=`
93
- `),a++,l=r,s=14;switch(x){case 123:return r++,s=1;case 125:return r++,s=2;case 91:return r++,s=3;case 93:return r++,s=4;case 58:return r++,s=6;case 44:return r++,s=5;case 34:return r++,o=C(),s=10;case 47:let T=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<n&&!so(e.charCodeAt(r));)r++;return o=e.substring(T,r),s=12}if(e.charCodeAt(r+1)===42){r+=2;let q=n-1,j=!1;for(;r<q;){let F=e.charCodeAt(r);if(F===42&&e.charCodeAt(r+1)===47){r+=2,j=!0;break}r++,so(F)&&(F===13&&e.charCodeAt(r)===10&&r++,a++,l=r)}return j||(r++,p=1),o=e.substring(T,r),s=13}return o+=String.fromCharCode(x),r++,s=16;case 45:if(o+=String.fromCharCode(x),r++,r===n||!rr(e.charCodeAt(r)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return o+=y(),s=11;default:for(;r<n&&_(x);)r++,x=e.charCodeAt(r);if(i!==r){switch(o=e.substring(i,r),o){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return o+=String.fromCharCode(x),r++,s=16}}function _(x){if(Wl(x)||so(x))return!1;switch(x){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function W(){let x;do x=P();while(x>=12&&x<=15);return x}return{setPosition:f,getPosition:()=>r,scan:t?W:P,getToken:()=>s,getTokenValue:()=>o,getTokenOffset:()=>i,getTokenLength:()=>r-i,getTokenStartLine:()=>u,getTokenStartCharacter:()=>i-c,getTokenError:()=>p}}function Wl(e){return e===32||e===9}function so(e){return e===10||e===13}function rr(e){return e>=48&&e<=57}var Nh;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(Nh||(Nh={}));var nF=new Array(20).fill(0).map((e,t)=>" ".repeat(t)),or=200,rF={" ":{"\n":new Array(or).fill(0).map((e,t)=>`
94
- `+" ".repeat(t)),"\r":new Array(or).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(or).fill(0).map((e,t)=>`\r
95
- `+" ".repeat(t))}," ":{"\n":new Array(or).fill(0).map((e,t)=>`
96
- `+" ".repeat(t)),"\r":new Array(or).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(or).fill(0).map((e,t)=>`\r
97
- `+" ".repeat(t))}};var Pi;(function(e){e.DEFAULT={allowTrailingComma:!1}})(Pi||(Pi={}));function Mh(e,t=[],n=Pi.DEFAULT){let r=null,o=[],i=[];function s(u){Array.isArray(o)?o.push(u):r!==null&&(o[r]=u)}return $h(e,{onObjectBegin:()=>{let u={};s(u),i.push(o),o=u,r=null},onObjectProperty:u=>{r=u},onObjectEnd:()=>{o=i.pop()},onArrayBegin:()=>{let u=[];s(u),i.push(o),o=u,r=null},onArrayEnd:()=>{o=i.pop()},onLiteralValue:s,onError:(u,l,c)=>{t.push({error:u,offset:l,length:c})}},n),o[0]}function $h(e,t,n=Pi.DEFAULT){let r=Oi(e,!1),o=[],i=0;function s(M){return M?()=>i===0&&M(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function a(M){return M?X=>i===0&&M(X,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function u(M){return M?X=>i===0&&M(X,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>o.slice()):()=>!0}function l(M){return M?()=>{i>0?i++:M(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>o.slice())===!1&&(i=1)}:()=>!0}function c(M){return M?()=>{i>0&&i--,i===0&&M(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:()=>!0}let p=l(t.onObjectBegin),m=u(t.onObjectProperty),f=c(t.onObjectEnd),y=l(t.onArrayBegin),C=c(t.onArrayEnd),P=u(t.onLiteralValue),_=a(t.onSeparator),W=s(t.onComment),x=a(t.onError),T=n&&n.disallowComments,q=n&&n.allowTrailingComma;function j(){for(;;){let M=r.scan();switch(r.getTokenError()){case 4:F(14);break;case 5:F(15);break;case 3:F(13);break;case 1:T||F(11);break;case 2:F(12);break;case 6:F(16);break}switch(M){case 12:case 13:T?F(10):W();break;case 16:F(1);break;case 15:case 14:break;default:return M}}}function F(M,X=[],vt=[]){if(x(M),X.length+vt.length>0){let go=r.getToken();for(;go!==17;){if(X.indexOf(go)!==-1){j();break}else if(vt.indexOf(go)!==-1)break;go=j()}}}function h(M){let X=r.getTokenValue();return M?P(X):(m(X),o.push(X)),j(),!0}function g(){switch(r.getToken()){case 11:let M=r.getTokenValue(),X=Number(M);isNaN(X)&&(F(2),X=0),P(X);break;case 7:P(null);break;case 8:P(!0);break;case 9:P(!1);break;default:return!1}return j(),!0}function B(){return r.getToken()!==10?(F(3,[],[2,5]),!1):(h(!1),r.getToken()===6?(_(":"),j(),Ne()||F(4,[],[2,5])):F(5,[],[2,5]),o.pop(),!0)}function v(){p(),j();let M=!1;for(;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(M||F(4,[],[]),_(","),j(),r.getToken()===2&&q)break}else M&&F(6,[],[]);B()||F(4,[],[2,5]),M=!0}return f(),r.getToken()!==2?F(7,[2],[]):j(),!0}function se(){y(),j();let M=!0,X=!1;for(;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(X||F(4,[],[]),_(","),j(),r.getToken()===4&&q)break}else X&&F(6,[],[]);M?(o.push(0),M=!1):o[o.length-1]++,Ne()||F(4,[],[4,5]),X=!0}return C(),M||o.pop(),r.getToken()!==4?F(8,[4],[]):j(),!0}function Ne(){switch(r.getToken()){case 3:return se();case 1:return v();case 10:return h(!0);default:return g()}}return j(),r.getToken()===17?n.allowEmptyContent?!0:(F(4,[],[]),!1):Ne()?(r.getToken()!==17&&F(9,[],[]),!0):(F(4,[],[]),!1)}var Wh;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(Wh||(Wh={}));var zh;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(zh||(zh={}));var zl=Mh;var Uh;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(Uh||(Uh={}));G();var Vh=K.object({name:K.string(),main:K.string(),compatibility_date:K.string(),compatibility_flags:K.array(K.string()).optional(),placement:K.object({mode:K.string()}).passthrough().optional(),assets:K.object({directory:K.string(),binding:K.string().optional()}).passthrough().optional(),d1_databases:K.array(K.object({database_name:K.string(),database_id:K.string(),binding:K.string(),migrations_dir:K.string().optional()}).passthrough()).default([]),kv_namespaces:K.array(K.object({binding:K.string(),id:K.string()}).passthrough()).default([]),r2_buckets:K.array(K.object({binding:K.string(),bucket_name:K.string()}).passthrough()).default([])}).passthrough();function Gh(e,t="wrangler.json"){let n=ve.join(e,t);if(!re.existsSync(n)){if(t.endsWith(".json"))return d.warn(`/${t} not found, checking for /${t}c`),Gh(e,t+"c");d.warn(`/${t} not found`);return}let r=re.readFileSync(n,"utf8");d.info(`reading /${t}...`);let o;try{o=zl(r)}catch(i){d.error(`/${t} loaded but could not parse as JSONC: ${i}`);return}try{let i=Vh.parse(o);return d.info(`successfully loaded /${t}`),i}catch(i){d.error(`/${t} valid JSONC but schema validation failed: ${i}`);return}}function qh(e,t,n={}){if(!re.existsSync(e))return 0;re.mkdirSync(t,{recursive:!0});let r=re.readdirSync(e,{withFileTypes:!0}),o=0;for(let i of r){if(n.exclude&&i.name===n.exclude)continue;let s=ve.join(e,i.name),a=ve.join(t,i.name);i.isDirectory()?o+=qh(s,a,n):(re.copyFileSync(s,a),o++)}return o}async function Hh(e,t){let n=null,r=null,o=ve.join(t,"wrangler.json"),i=ve.join(t,"wrangler.jsonc");re.existsSync(o)?(n=o,r=".json"):re.existsSync(i)&&(n=i,r=".jsonc"),n&&r&&(d.info(`saving user-provided wrangler JSON as /clouduser.wrangler${r}...`),re.copyFileSync(n,ve.join(t,`clouduser.wrangler${r}`)));let s=n?Gh(t,ve.basename(n)):null,a=ve.join(__dirname,e.config.wrangler_template_path),u=ve.join(t,"wrangler.json");if(!re.existsSync(a))throw new Error(`Wrangler template not found at ${a}. Make sure the template is properly copied during build.`);if(d.info(`copying template /templates/${e.framework}/wrangler.${e.framework}.json to /wrangler.json`),re.copyFileSync(a,u),!s)return;let l=JSON.parse(re.readFileSync(u,"utf8"));if(s.kv_namespaces&&s.kv_namespaces.length>0&&(l.kv_namespaces=s.kv_namespaces,d.info(`merged ${s.kv_namespaces.length} KV namespace(s) into template`)),s.r2_buckets&&s.r2_buckets.length>0&&(l.r2_buckets=s.r2_buckets,d.info(`merged ${s.r2_buckets.length} R2 bucket(s) into template`)),s.d1_databases&&s.d1_databases.length>0&&(l.d1_databases=s.d1_databases,d.info(`merged ${s.d1_databases.length} D1 database(s) into template`)),re.writeFileSync(u,JSON.stringify(l,null,2)),s.d1_databases.length!==0)for(let c in s.d1_databases){let p=s.d1_databases[c];if(!p.migrations_dir){d.info(`skipping migrations for database ${c} in wrangler.json; migrations dir is not defined`);continue}let m=p.migrations_dir,f=ve.join(t,m);if(!re.existsSync(f)){d.info(`skipping migrations for database ${c} in wrangler.json; migrations dir (/${m}) does not exist`);continue}let y=ve.join(t,"clouduser","migrations",m),C=qh(f,y);C>0?d.info(`copied ${C} migrations to /clouduser/migrations/${m}`):d.info(`skipping migrations for database ${c} in wrangler.json; migrations dir (/${m}) is empty`)}}function pF(e){if(!/^[a-z0-9-]+$/.test(e))throw new Error(`Invalid object storage bucket name ${JSON.stringify(e)}: Only lowercase letters, numbers, and hyphens are allowed.`);if(e.startsWith("-")||e.endsWith("-"))throw new Error(`Invalid object storage bucket name "${e}": Cannot begin or end with a hyphen.`);if(e.length>27)throw new Error(`Invalid object storage bucket name "${e}": Must be 27 characters or fewer (currently ${e.length} characters).`)}function Jh(e){let t=null;for(let i of[".json",".jsonc"]){let s=ve.join(e,`clouduser.wrangler${i}`);if(re.existsSync(s)){t=s;break}}if(!t)return;let n=re.readFileSync(t,"utf8"),r;try{r=zl(n)}catch(i){throw new Error(`Failed to parse wrangler config at ${t} as JSONC: ${i}`)}let o=Vh.parse(r);if(o.d1_databases&&o.d1_databases.length>0&&o.d1_databases.length>5)throw new Error(`Too many D1 databases configured: ${o.d1_databases.length}. Maximum allowed is 5.`);if(o.kv_namespaces&&o.kv_namespaces.length>0&&o.kv_namespaces.length>5)throw new Error(`Too many KV namespaces configured: ${o.kv_namespaces.length}. Maximum allowed is 5.`);if(o.r2_buckets&&o.r2_buckets.length>0){if(o.r2_buckets.length>5)throw new Error(`Too many R2 buckets configured: ${o.r2_buckets.length}. Maximum allowed is 5.`);d.info(`validating ${o.r2_buckets.length} object storage bucket name(s)...`);for(let i of o.r2_buckets)pF(i.bucket_name)}}G();Ke();de();lt();async function Kh(e,t={}){let n=t.projectPath||process.cwd(),r=Date.now(),o=N.join(n,".tmp",`webflow-build-${r}`),i=t.outputDir||N.join(o,"output"),s=t.mountPath||"/app",a=Date.now(),u=Vl(n),l=t.telemetry;await l?.sendUsage("cloud_build_start",{framework:e.framework,buildCommand:e.config.build_command,deploymentType:e.config.deployment_type,mountPath:s,cloudflareBindings:u}),O.mkdirSync(o,{recursive:!0});try{d.info(z.green(`--- \u{1F4E6} Installing dependencies ------------------------------------
98
- `)),await dF(n,e.framework,t.telemetry),d.info(z.green(`--- \u{1F527} Setting up framework configuration ----------------------
99
- `)),await fF(n,e,s,t.deployUrl,t.environmentId),d.info(z.green(`--- \u{1F527} Setting up wrangler configuration -----------------------
100
- `)),await Hh(e,n),Jh(n),d.info(z.green(`--- \u{1F3D7}\uFE0F Building app -----------------------------------------------
101
- `)),d.info(`running ${e.config.build_command}...`),await mF(n,e.config.build_command,t.telemetry),d.info(z.green(`--- \u{1F9EA} Creating wrangler dry-run ----------------------------------
102
- `)),await hF(n,i),d.info(z.green(`--- \u{1F4C1} Copying assets ------------------------------------------
103
- `)),await gF(n,i,e,s),d.info(z.green(`--- \u{1F4E6} Creating tarball -----------------------------------------
104
- `));let c=await yF(i),p=Date.now()-a;return d.info(`${le} Build completed in ${(p/1e3).toFixed(1)}s`),await l?.sendUsage("cloud_build_success",{duration:p,framework:e.framework,buildCommand:e.config.build_command,deploymentType:e.config.deployment_type,mountPath:s,cloudflareBindings:u}),c}catch(c){let p=Date.now()-a;throw await l?.sendError(c instanceof Error?c:new Error(String(c)),"cloud_build_failure",{duration:p,framework:e.framework,buildCommand:e.config.build_command,deploymentType:e.config.deployment_type,mountPath:s,cloudflareBindings:u}),c}}function Vl(e){let t=N.join(e,"wrangler.json");if(!O.existsSync(t))return{hasKV:!1,hasD1:!1,hasR2:!1,hasVars:!1,kvCount:0,d1Count:0,r2Count:0,varCount:0};try{let n=JSON.parse(O.readFileSync(t,"utf8")),r=n.kv_namespaces||[],o=n.d1_databases||[],i=n.r2_buckets||[],s=n.vars||{};return{hasKV:r.length>0,hasD1:o.length>0,hasR2:i.length>0,hasVars:Object.keys(s).length>0,kvCount:r.length,d1Count:o.length,r2Count:i.length,varCount:Object.keys(s).length}}catch(n){return console.debug("Failed to parse wrangler.json for bindings detection:",n),{hasKV:!1,hasD1:!1,hasR2:!1,hasVars:!1,kvCount:0,d1Count:0,r2Count:0,varCount:0}}}function Yh(e){try{let t=N.dirname(e);t.includes(".tmp/webflow-build-")&&(d.info(z.green(`--- \u{1F9F9} Cleaning up build artifacts... -----------------
105
- `)),O.rmSync(t,{recursive:!0,force:!0}))}catch(t){d.warn(`Warning: Failed to clean up build artifacts: ${t}`)}}function Xh(e,t){try{if(!t.config.config_template_path)return;let n=N.join(__dirname,t.config.config_template_path),r=N.basename(n,".template"),o=r.slice(0,r.lastIndexOf("."));d.info(z.grey(`--- \u{1F9F9} Reverting framework configuration changes ---------------
106
- `));for(let s of["mjs","cjs","js","ts"]){let a=N.join(e,`clouduser.${o}.${s}`),u=N.join(e,`${o}.${s}`);if(O.existsSync(a)){d.info(`restoring /${o}.${s} from /clouduser.${o}.${s}...`),O.existsSync(u)&&O.unlinkSync(u),O.renameSync(a,u);break}}for(let s of[".jsonc",".json"]){let a=N.join(e,`clouduser.wrangler${s}`);if(O.existsSync(a)){d.info(`restoring user wrangler${s} from backup...`);let u=N.join(e,"wrangler.json");O.existsSync(u)&&O.unlinkSync(u);let l=N.join(e,`wrangler${s}`);O.renameSync(a,l);break}}let i=N.join(e,"clouduser");O.existsSync(i)&&(d.info("cleaning up clouduser directory..."),O.rmSync(i,{recursive:!0,force:!0}));for(let s of t.config.additional_config_files||[]){let a=N.join(e,N.basename(s));O.existsSync(a)&&(d.info(`cleaning up additional config file ${a}...`),O.unlinkSync(a))}}catch(n){d.warn(`Warning: Failed to cleanup framework configuration: ${n}`)}}async function dF(e,t,n){let r=Date.now(),o=["--no-update-notifier","--no-progress"];try{if(t==="astro"){let a=N.join(e,"package.json"),u=JSON.parse(O.readFileSync(a,"utf8"));u.dependencies?.["@astrojs/react"]||u.devDependencies?.["@astrojs/react"]||(d.info("Warning: cosmic astro integration requires @astrojs/react and this project doesn't require it. Installing now..."),(0,ir.execSync)("npm install --save @astrojs/react",{cwd:e,stdio:"inherit"}))}let i=N.join(e,"package-lock.json");O.existsSync(i)?(d.info("Running npm ci..."),(0,ir.execSync)(`npm ci ${o.join(" ")}`,{cwd:e,stdio:"inherit"})):(d.info("Warning: No package-lock.json found, installing dependencies with npm install"),(0,ir.execSync)(`npm install ${o.join(" ")}`,{cwd:e,stdio:"inherit"}));let s=Date.now()-r;await n?.sendUsage("cloud_install_dependencies_success",{duration:s,framework:t,hasPackageLock:O.existsSync(N.join(e,"package-lock.json"))})}catch(i){let s=Date.now()-r;throw await n?.sendError(i instanceof Error?i:new Error(String(i)),"cloud_install_dependencies_failure",{duration:s,framework:t,hasPackageLock:O.existsSync(N.join(e,"package-lock.json"))}),i}}async function fF(e,t,n,r,o){if(d.info(`Framework: ${t.framework}`),d.info(`Mount path: ${n}`),d.info(`Deployment type: ${t.config.deployment_type}`),!t.config.config_template_path)return;let i=N.join(__dirname,t.config.config_template_path),s=N.basename(i,".template"),a=s.slice(0,s.lastIndexOf("."));for(let p of["mjs","cjs","js","ts"]){let m=N.join(e,`${a}.${p}`);if(O.existsSync(m)){let f=N.join(e,`clouduser.${a}.${p}`);d.info(`renaming user base config /${a}.${p} to /clouduser.${a}.${p}...`),O.renameSync(m,f);break}}let u=N.join(e,s);d.info(`rendering override config from /templates/${t.framework}/${s}.template to /${s}`);let c=O.readFileSync(i,"utf8").replace(/\$\{([^}]+)\}/g,(p,m)=>({COSMIC_MOUNT_PATH:n,COSMIC_DEPLOY_URL:r||(o?`https://${o}.wf-app-prod.cosmic.webflow.services`:"")})[m]||p);O.writeFileSync(u,c);for(let p of t.config.additional_config_files||[]){let m=N.join(__dirname,p);O.statSync(m,{throwIfNoEntry:!1})?(d.info(`copying additional config file /${p} to ${N.join(e,N.basename(p))}`),O.copyFileSync(m,N.join(e,N.basename(p)))):d.warn(`additional config file /${p} does not exist; skipping`)}}async function mF(e,t,n){let r=Date.now();try{let o=t.split(" "),i=o[0],s=o.slice(1);(0,ir.execSync)(`npx ${i} ${s.join(" ")}`,{cwd:e,stdio:"inherit"});let a=Date.now()-r;await n?.sendUsage("cloud_build_command_success",{duration:a,buildCommand:t})}catch(o){let i=Date.now()-r;throw await n?.sendError(o instanceof Error?o:new Error(String(o)),"cloud_build_command_failure",{duration:i,buildCommand:t}),new Error(`Build command failed: ${t}`)}}async function hF(e,t){O.mkdirSync(t,{recursive:!0});let n=N.join(e,"wrangler.json"),r=N.join(e,"wrangler.jsonc");if(!O.existsSync(n)&&!O.existsSync(r))throw new Error("Missing wrangler configuration: wrangler.json or wrangler.jsonc file is required");(0,ir.execSync)(`npx wrangler deploy --dry-run --outdir="${t}"`,{cwd:e,stdio:"inherit"})}async function gF(e,t,n,r){let o=n.config.assets_path,i=n.config.assets_exclude_path,s=r.replace(/\/+$/,"").replace(/^\/+/,"");if(n.framework==="nextjs"||n.framework==="astro"){let p=N.join(e,o);if(O.existsSync(p)&&O.statSync(p).isDirectory()){let f=O.readdirSync(p,{withFileTypes:!0}).find(y=>!(!y.isDirectory()||i&&y.name===i||n.framework==="astro"&&(y.name==="_routes.json"||y.name==="_worker.js")));f&&(o=`${o}/${f.name}`)}}let a=N.join(t,"assets",s||"");O.mkdirSync(a,{recursive:!0});let u=N.join(e,o);if(O.existsSync(u)&&O.statSync(u).isDirectory()){d.info(`copying assets from /${o} to output/assets...`);try{i?(d.info(`excluding ${i}`),Qh(u,a,i)):Ul(u,a)}catch(p){d.error(p,{prefix:"Failed to copy assets:"})}}else d.info("No assets to copy or assets directory not found");let l=N.join(e,"webflow.json");O.existsSync(l)&&O.copyFileSync(l,N.join(t,"webflow.json"));let c=null;for(let p of[".json",".jsonc"]){let m=N.join(e,`clouduser.wrangler${p}`);if(O.existsSync(m)){c=m;break}}if(c){d.info("including user wrangler config in output..."),O.copyFileSync(c,N.join(t,"clouduser.wrangler.json"));let p=N.join(e,"clouduser","migrations");if(O.existsSync(p)){d.info("copying migrations from clouduser/migrations to output/migrations...");let m=N.join(t,"migrations");Ul(p,m)}}}async function yF(e){let t=`${e}.tar.gz`;try{return await Zh.create({gzip:!0,file:t,cwd:N.dirname(e)},[N.basename(e)]),d.info(`Tarball created: ${t}`),t}catch(n){throw new S(n,{prefix:"Failed to create tarball:"})}}function Ul(e,t){O.mkdirSync(t,{recursive:!0});let n=O.readdirSync(e,{withFileTypes:!0});for(let r of n){let o=N.join(e,r.name),i=N.join(t,r.name);r.isDirectory()?Ul(o,i):O.copyFileSync(o,i)}}function Qh(e,t,n){O.mkdirSync(t,{recursive:!0});let r=O.readdirSync(e,{withFileTypes:!0});for(let o of r){if(o.name===n)continue;let i=N.join(e,o.name),s=N.join(t,o.name);o.isDirectory()?Qh(i,s,n):O.copyFileSync(i,s)}}Yt();Te();pe();G();var bF="DUPLICATE_ENVIRONMENT_MOUNT",DF="ENVIRONMENT_MOUNT_MISMATCH",wF="DUPLICATE_ENVIRONMENT_BRANCH",vF="INVALID_MOUNT_PATH_FORMAT",kF="INVALID_PROJECT_ID",eg={[bF]:"An environment with this mount path already exists for this site. Please choose a different mount path.",[DF]:"This environment already exists with a different mount path. Please create a new environment or use the existing environment's mount path.",[wF]:"An environment with this branch already exists for this project.",[vF]:"Mount path format is invalid. It must start with a / and be followed by at least one character (e.g., /app).",[kF]:"Invalid project ID. This project may have been deleted or belongs to a different site. Please remove the 'project_id' from your webflow.json file and redeploy to create a new project."};function tg(e){let t={timestamp:new Date().toISOString()};e instanceof Error?(t.code=e.name,t.msg=e.message,t.stack=e.stack):typeof e=="object"&&e!==null&&(t.code=e.code,t.msg=e.msg,t.status=e.status);let n=t.msg||"";d.error(`Error Details: ${JSON.stringify({timestamp:t.timestamp,code:t.code,message:t.msg,status:t.status,stack:t.stack},null,2)}`);for(let r in eg)if(n.includes(r))return eg[r];return`An unknown error occurred. Error code: ${t.code||"N/A"}, Message: ${t.msg||"No message provided"}`}Yt();var sr=D(require("fs")),Gl=require("child_process");G();de();lt();var ng=104857600;function rg(e){if(e===0)return"0 B";let t=1024,n=["B","KB","MB","GB"],r=Math.floor(Math.log(e)/Math.log(t));return`${parseFloat((e/Math.pow(t,r)).toFixed(1))} ${n[r]}`}function xF(){try{let e=(0,Gl.execSync)("git rev-parse HEAD",{encoding:"utf-8",stdio:["pipe","pipe","pipe"]}).trim();if(!/^[0-9a-f]{40}$/.test(e))throw new Error("Invalid commit hash format");try{return(0,Gl.execSync)("git status --porcelain --untracked-files=no",{encoding:"utf-8",stdio:["pipe","pipe","pipe"]}).trim().length>0?`git@${e}+dirty`:`git@${e}`}catch{return`git@${e}`}}catch{return`noversion@${new Date().toISOString()}`}}async function ql(e,t){let{accessToken:n}=Ve(),r=await fetch(`${H}${e}`,{method:t.method,headers:{Authorization:`Bearer ${n}`,"Content-Type":"application/json"},body:t.body?JSON.stringify(t.body):void 0});if(!r.ok){let o=await r.text(),i;try{i=JSON.parse(o)}catch{i={msg:o}}let s=tg(i);throw new Error(s)}return r.json()}async function og(e,t,n){let{manifest:r}=oe(),o=r.cloud||{},i=o.project_id,s=o.framework;if(!s)throw new S("No framework specified in webflow.json. Please ensure your webflow.json has a cloud.framework property");let{siteId:a,accessToken:u}=Ve(),l=await CF({siteId:a,apiToken:u,framework:s,mountPath:t,environment:e,projectId:i,projectName:n?.projectName,description:n?.description,directory:n?.directory,version:xF()});return!i&&l.project_id&&(d.info("\u{1F4DD} Updating webflow.json with project ID..."),ae({cloud:{...o,project_id:l.project_id}})),l}async function CF(e){let{siteId:t,framework:n,mountPath:r,environment:o,version:i,projectId:s,projectName:a,description:u,directory:l}=e,c={framework:n,mount_path:r,environment:o,version:i};return s&&(c.project_id=s),a&&(c.project_name=a),u&&(c.description=u),l&&(c.app_path=l),ql(`/cosmic/${t}/cli-deploy-init`,{method:"POST",body:c})}async function ig(e){let{siteId:t}=Ve();return ql(`/cosmic/${t}/cli-project-environments/${e}`,{method:"GET"})}async function sg(){let{siteId:e}=Ve();return ql(`/cosmic/${e}/cli-projects`,{method:"GET"})}async function ag(e,t){if(!sr.existsSync(e))throw new Error(`Tarball not found at ${e}`);let n=sr.statSync(e);if(n.size>ng)throw new Error(`Build output is too large (${rg(n.size)}). Maximum allowed size is ${rg(ng)}.`);let r=sr.readFileSync(e),o=JSON.parse(t);if(!o.fields)throw new Error("Upload URL is missing fields property");let i=new FormData;Object.entries(o.fields).forEach(([u,l])=>{i.append(u,l)});let s=new Blob([r],{type:"application/gzip"});i.append("file",s,"output.tar.gz");let a=await fetch(o.url,{method:"POST",body:i});if(!a.ok){let u=await a.text();throw new S(u,{prefix:`${We} Upload failed with response:`})}}async function lg(e,t){if(!e||e==="undefined")throw new S("Completion URL is undefined or invalid");let n=new URL(e);t&&n.searchParams.set("failed","true");let r=await fetch(n.toString(),{method:"GET"});if(!r.ok)throw new S(`Failed to trigger deployment: ${r.status} ${r.statusText}`)}Rn();Yt();Ue();Ts();G();async function ug(e,t){let{siteId:n,accessToken:r}=Ve(),o=Fn("Validating mount path configuration...").start();try{let i=await $r(r,n),s=await sa(r,n),a=[`${i.shortName}.webflow.io`,...s.customDomains?.map(f=>f.url)||[]],u=0;o.text=`Validating ${a.length} domain(s) for mount path: ${e}... (0/${a.length})`;let l=a.map(async f=>{try{let y=await aa(f),C=Array.isArray(y.cosmic)?y.cosmic.map(_=>_.mountPath).filter(_=>typeof _=="string"):[],P=la(y,e,t);return{domain:f,mountPaths:C,isValid:P===!0}}catch(y){return{domain:f,mountPaths:[],isValid:!1,error:y instanceof Error?y.message:String(y)}}finally{u++,o.text=`Validating ${a.length} domain(s) for mount path: ${e}... (${u}/${a.length})`}}),c=await Promise.all(l),p=c.some(f=>!f.isValid),m=c.every(f=>f.isValid);return o.succeed("Mount path validation completed"),{isValid:m,domains:c,needsPublishing:p}}catch(i){throw o.fail("Mount path validation failed"),i}}async function cg(e,t){let{siteId:n,accessToken:r}=Ve();try{let o=await $r(r,n),i=await sa(r,n),a=[`${o.shortName}.webflow.io`,...i.customDomains?.map(l=>l.url)||[]].map(async l=>{try{let c=await aa(l),p=Array.isArray(c.cosmic)?c.cosmic.map(f=>f.mountPath).filter(f=>typeof f=="string"):[],m=la(c,e,t);return{domain:l,isValid:m}}catch(c){return d.debug(`Could not verify mount path for ${l}: ${c}`),{domain:l,isValid:!1}}});return(await Promise.all(a)).filter(l=>l.isValid).map(l=>l.domain)}catch(o){return d.debug(`Error getting valid domains: ${o}`),[]}}function pg(e,t){return e.map(n=>`${n.startsWith("localhost")||n.startsWith("127.0.0.1")?"http":"https"}://${n}${t}`)}async function dg(e){let t=e.map(r=>({name:r,value:r,checked:!0})),n=await Bo({message:"Select which domains you want to publish to update the mount path configuration:",choices:t,validate:r=>r.length===0?"Please select at least one domain to publish to.":!0});return n??[]}async function fg(){return await ge({message:"The mount path doesn't match on some domains. Would you like to publish the site to update the configuration?",default:!0})}async function Hl(e){let{siteId:t,accessToken:n}=Ve(),r=Fn(`Publishing site to ${e.length} domain(s)...`).start();try{let i=`${(await $r(n,t)).shortName}.webflow.io`,s=e.includes(i),a=e.filter(u=>u!==i);await np(n,t,{domains:a,publishToWebflowSubdomain:s}),r.succeed(`Site published successfully to selected domains: ${e.join(", ")}`)}catch{throw r.fail("Failed to publish site"),new Error("Failed to publish site")}}Te();G();Ke();pe();ke();de();lt();var Ii=async()=>{try{let e=await jl();return Object.keys(e)}catch(e){return d.error(e,{prefix:"Failed to get available scaffolds:"}),[]}},Jl=async(e,t,n=ki,r)=>{let o=`./${e}`,i=await jl(),s=null,a=!1;try{let u=Date.now(),l=await Bn({clientId:ua,scope:ca}),c=await jo(l);if(c.length===0)throw new S("No Webflow sites found in your account. Please make sure you have at least one site in your Webflow account.");let p;if(r){if(p=c.find(f=>f.id===r),!p)throw d.info("Available sites:"),c.forEach(f=>{d.info(`- ${f.displayName} (ID: ${f.id})`)}),new S(`Site with ID "${r}" not found in your account.`);d.info(`Using site: ${p.displayName} (${p.id})`)}else p=await Lo(c);s=he.forCloud({authToken:l,siteId:p.id}),await Rl(e,t,n,i,p.id,l),process.chdir(o),d.info("Running devlink sync to fetch your Webflow components...");try{await EF({site:p.id,apiToken:l}),a=!0}catch(f){d.error(f,{prefix:"Failed to run devlink sync:"}),d.info("You can manually run 'npx webflow devlink sync' later to sync your components.")}let m=Date.now()-u;await s?.sendUsage("project_init",{scaffold:n,scaffoldName:n,devlinkSyncStatus:a,totalDuration:m,mountPath:t}),mg(e)}catch(u){throw d.error(u,{prefix:"Error during Webflow authentication:"}),await Rl(e,t,n,i),process.chdir(o),d.error("Project scaffold was created, but authentication failed."),d.error("To set up Webflow credentials later, run:"),d.error(" webflow auth login"),mg(e),new S(u,{skipLogging:!0})}},EF=async e=>{let{syncComponents:t}=await Promise.resolve().then(()=>(Il(),bh));await t(void 0,{site:e.site,apiToken:e.apiToken})},FF=e=>{if(e?.skipMountPathCheck!==void 0)return e.skipMountPathCheck;try{let{manifest:t}=oe();return t.cloud?.skipMountPathCheck===!0}catch{return!1}},_F=async(e,t,n)=>{d.info("\u{1F50D} Validating mount path configuration...");let r=await ug(e,t);if(r.isValid)d.info(`${le} Mount path validation passed`);else if(d.info(`
107
- \u{1F4CB} Mount path validation results:`),r.domains.forEach(o=>{let i=o.isValid?le:We,s=o.isValid?`(mountPath: ${o.mountPaths[0]})`:"(no matching mountPath)";d.info(`${i} ${o.domain} ${s}`),o.error&&d.debug(` Error: ${o.error}`)}),r.needsPublishing)if(n){d.info("\u{1F680} Auto-publishing site to update mount path configuration...");let o=r.domains.filter(i=>!i.isValid).map(i=>i.domain);await Hl(o)}else if(await fg()&&Ye()){let i=r.domains.filter(a=>!a.isValid).map(a=>a.domain),s=await dg(i);await Hl(s)}else d.warn("\u26A0\uFE0F Continuing with deployment without publishing...")},SF=async(e,t,n,r)=>{d.info(`
108
- \u{1F3D7}\uFE0F Building project...`);let o=await Kh(e,{mountPath:n,telemetry:r?.telemetry,deployUrl:t.deploy_url,environmentId:t.environment_id});d.info("\u{1F4E4} Uploading build artifacts...");let i=Date.now();await ag(o,t.upload_url);let s=Date.now()-i;return d.info(`${le} Upload completed in ${(s/1e3).toFixed(1)}s`),o},TF=async(e,t)=>{d.success(`
109
- \u{1F310} Your cloud app will soon be available at:`);try{let n=await cg(e,t),r=pg(n,e);r.length>0?r.forEach(o=>{d.info(` ${o}`)}):d.warn(" No domains found with the correct mount path configuration yet.")}catch(n){d.warn(` Could not determine deployment links: ${n instanceof Error?n.message:n}`)}},AF=e=>{e.site_slug?d.success(`Visit your deployment:
110
-
111
- ${An}/dashboard/sites/${e.site_slug}/webflow-cloud/projects/${e.project_id}/environments/${e.environment_id}/deployments/${e.deployment_id}`):d.info(`
112
- Visit the webflow Cloud dashboard to view your deployment: https://webflow.com/dashboard/sites`)},OF=async(e,t,n)=>{try{await lg(e.completion_url,!!n),n?d.error(`
113
- ${We} Deployment failed due to build error.`):(d.success(`
114
- ${le} Deployment triggered successfully!`),await TF(t,e.environment_id),AF(e))}catch(r){throw new S(r,{prefix:"Failed to trigger deployment:"})}},PF=(e,t)=>{e&&Xh(process.cwd(),e),t&&Yh(t)},hg=async(e,t,n)=>{let r=null,o=null,i=Date.now(),s=null,a=null,u=Vl(process.cwd()),l=n?.telemetry;await l?.sendUsage("cloud_deploy_start",{environment:e,mountPath:t,projectName:n?.projectName,hasDescription:!!n?.description,hasDirectory:!!n?.directory,cloudflareBindings:u});try{d.info("\u{1F527} Detecting framework..."),s=await Fh(),d.info(`Framework: ${s.framework}`),d.info(`Build command: ${s.config.build_command}`),d.info("\u{1F3D7}\uFE0F Building project..."),r=await og(e,t,n),FF(n)?d.info("\u23ED\uFE0F Skipping mount path validation..."):await _F(t,r.environment_id,n?.autoPublish),o=await SF(s,r,t,n),d.info(`Starting deployment process for environment: ${e} at mount path: ${t}`);let c=Date.now()-i;await l?.sendUsage("cloud_deploy_success",{duration:c,environment:e,mountPath:t,projectName:n?.projectName,hasDescription:!!n?.description,hasDirectory:!!n?.directory,framework:s.framework,buildCommand:s.config.build_command,cloudflareBindings:u})}catch(c){a=c instanceof Error?c:new Error(String(c)),d.error(a,{prefix:"Error during deployment initialization:"});let p=Date.now()-i;await l?.sendError(a,"cloud_deploy_failure",{duration:p,environment:e,mountPath:t,projectName:n?.projectName,cloudflareBindings:u,argv:process.argv.slice(2)})}finally{if(PF(s,o),r&&await OF(r,t,a),a)throw new S(a,{skipLogging:!0})}},mg=e=>{d.info("--- "),d.info(z.bold.green("Get started with the following commands:")),d.info(` cd ${e}`),d.info(" npm install"),d.info(" npm run dev"),d.info(` webflow cloud deploy
74
+ \u2570`+t+"\u256F"};var Yc=async(e,t=Hc,n=So,r)=>{let o=r[n];try{for(let i of o){let s=Se.join(t,i),a=Qb(s,n,e);if(i.includes(Jc)||i.includes(Sr))await Xb(i,a,e);else{let l=await xt.promises.readFile(i);await ep(a,l)}}}catch(i){console.error("Error writing file, ",i)}},Xc=async()=>{let e={},t=Se.resolve(__dirname),n=Se.join(t,Ks),r=await xt.promises.readdir(n);for(let o of r){let i=Se.join(n,o),s=await Qc(i);e[o]=s}return e},Qc=async e=>{let t=[];try{let n=await xt.promises.readdir(e);for(let r of n){let o=Se.join(e,r);if((await xt.promises.stat(o)).isDirectory()){let s=await Qc(o);t.push(...s)}else t.push(o)}}catch(n){console.error(`Error reading ${Se}, `,n)}return t},ep=async(e,t)=>{try{await xt.promises.mkdir(Se.dirname(e),{recursive:!0}),await xt.promises.writeFile(e,t)}catch(n){console.error("Error writing file ",n)}},Xb=async(e,t,n)=>xt.promises.readFile(e,"utf8").then(async r=>{let o=r.replace(Zc,n);await ep(t,o)}),Qb=(e,t,n)=>{let r=Se.join(Ks,t),o=e.indexOf(r);if(o!==-1){let i=e.substring(o+r.length+1);return Se.join(n,i)}return""};var To=async()=>await Xc(),ap=async()=>{let e=await To(),t=Object.keys(e).join(", ");console.log(`Your available templates are: ${t}`),console.log('\u{1F4A1} Syntax: "webflow extension init projectName templateName"'),console.log('\u{1F31F} Example: "webflow extension init my-first-extension react"')},lp=async(e,t=So)=>{let n=`./${e}`;console.log(`Scaffolding your new extension named: ${e}...`);let r=await To();await Yc(e,n,t,r),console.log(`Done! Check out ${n}/README.md for steps on how to develop your extension.`)},up=()=>Nc(Zs,Sr,qc),cp=async e=>{let{config:t,filepath:n}=await vo(Zs,Sr),r=ip.join(n,"..",t.publicDir,Gc),i=(await Sn([],!0)).extensionTemplateDomain||"webflow-ext.com",s=t.apiVersion==="2"?"template/v2":"template",a=Object.keys(t.featureFlags||{}).map(m=>t.featureFlags?.[m]===!0?`ff_on=${m}`:`ff_off=${m}`).join("&"),l=a?`&${a}`:"",c=await(await(0,np.default)(`https://${i}/${s}?name=${t.name}${l}`)).text(),p=new tp.Server((m,y)=>{if(m.url==="/"){op.promises.readFile(r,{encoding:"utf-8"}).catch(w=>{sp.program.error(w.message)}).then(w=>{let O=c.replace("{{ui}}",w);return y.writeHead(200,{"Content-Length":Buffer.byteLength(O),"Content-Type":"text/html"}),y.end(O)});return}if(m.url==="/__webflow")return y.writeHead(200,{"Content-Length":Buffer.byteLength(Ys(t)),"Content-Type":"application/json","Access-Control-Allow-Origin":"*","Access-Control-Allow-Headers":"*"}),y.end(Ys(t));(0,rp.default)(m,y,{public:t.publicDir,cleanUrls:!1,directoryListing:!1})}),f=eD(e);p.listen(f),console.log(Kc(`Serving your extension at http://localhost:${f}`)+`
75
+ `)},eD=e=>{if(e){let t=parseInt(e,10);return isNaN(t)?(console.log("Invalid port number provided. Using the default port "+1337),1337):t}return 1337};it();ce();var pp=e=>{let t=e.command("extension").description("CLI for developing Designer Extensions.");t.command("list").description("Get list of project templates that can be used for `init`").action(ap),t.command("init").description("Bootstrap a Designer Extension.").argument("[projectName]","What is your Designer Extension's name?").argument("[scaffoldName]","Which project template do you want to use?").action(async(n,r)=>{let o=await To(),i=Object.keys(o),s=await $e({message:"What would you like to name your Designer Extension?",default:n,validate:l=>l.trim()===""?"The Designer Extension name cannot be empty.":!0});if(s===null)throw new T("When --no-input mode is enabled please provide the [projectName] argument.");let a=await Ee({message:"Which project template would you like to use?",choices:i.map(l=>({name:l,value:l})),default:r||"default"});await lp(s,a)}),t.command("bundle").description("Prepare package that can be uploaded to Webflow.").action(up),t.command("serve").description("Serve your extension locally.").argument("[port]","The port to serve your extension on").action(cp)};dl();var Jm=e=>{e.command("devlink").description("CLI for managing your Webflow components. Make sure WEBFLOW_SITE_ID and WEBFLOW_API_TOKEN are set in your .env file. Or pass them as arguments --site and --api-token.").command("sync").argument("[components...]","A list of components to sync. If none is provided, all components will be synced.").option("--api-token <token>","API token. Default: value set in WEBFLOW_API_TOKEN env variable.").option("--site <site-id>","Site ID. Default: value set in WEBFLOW_SITE_ID env variable.").description("Sync your Webflow components to your filesystem.").action(pl)};var xe=D(require("fs")),he=D(require("path"));q();Gt();var ai="astro",fl="cloud-scaffolds";var Zm="package.json",Km="webflow.json",Ym="wf-placeholder-name",Xm="CLOUD_MOUNT_PATH",Qm="gitignore";var ml=async(e,t,n=ai,r,o,i)=>{try{let s=r[n];if(!s)throw new Error(`Scaffold "${n}" not found`);for(let a of s)try{let l=he.join(e,a.split(he.join(fl,n))[1]?.substring(1)||""),u=a.includes("next.config.ts"),c=a.includes("astro.config.mjs"),p=u||c;if(a.includes(Zm)||a.includes(Km)){let m=(await xe.promises.readFile(a,"utf8")).replace(Ym,e);await li(l,m)}else if(p){let f=await xe.promises.readFile(a,"utf8");await li(l,f.replace(Xm,t))}else if(he.basename(l).toLowerCase()===Qm){let f=await xe.promises.readFile(a,"utf8"),m=he.join(he.dirname(l),".gitignore");await li(m,f)}else{let f=await xe.promises.readFile(a);await li(l,f)}}catch(l){d.error(`Error processing file ${a}: ${l}`)}if(o&&i)try{bo({siteId:o,apiToken:i,directory:e})}catch(a){d.error(`Error creating .env file: ${a}`)}}catch(s){throw d.error(`Error applying scaffold: ${s}`),s}},hl=async()=>{try{let e={},t=he.join(he.resolve(__dirname),fl);if(!xe.existsSync(t))throw new Error(`Scaffolds directory not found at: ${t}`);let n=await xe.promises.readdir(t);for(let r of n)try{let o=he.join(t,r);e[r]=await eh(o)}catch(o){d.error(`Error processing scaffold ${r}: ${o}`)}return e}catch(e){throw d.error(`Error getting available scaffolds: ${e}`),e}},eh=async e=>{let t=[];try{if(!xe.existsSync(e))throw new Error(`Directory not found: ${e}`);let n=await xe.promises.readdir(e);for(let r of n)try{let o=he.join(e,r);(await xe.promises.stat(o)).isDirectory()?t.push(...await eh(o)):t.push(o)}catch(o){d.error(`Error processing path ${r}: ${o}`)}}catch(n){throw d.error(`Error reading directory ${e}: ${n}`),n}return t},li=async(e,t)=>{try{await xe.promises.mkdir(he.dirname(e),{recursive:!0}),await xe.promises.writeFile(e,t)}catch(n){throw d.error(`Error writing file ${e}: ${n}`),n}};Gt();Dt();var St=D(require("fs")),gl=D(require("path"));q();var ui={angular:{package_identifier:"@angular/ssr",build_command:"ng build",config_template_path:"templates/angular/angular.json.template",wrangler_template_path:"templates/angular/wrangler.angular.json",assets_path:"dist/browser",deployment_type:"ssr",entrypoint_path:"./server.js"},astro:{package_identifier:"@astrojs/cloudflare",build_command:"astro build",config_template_path:"templates/astro/astro.config.mjs.template",additional_config_files:["templates/astro/webflow-loader.ts"],wrangler_template_path:"templates/astro/wrangler.astro.json",assets_path:"dist",deployment_type:"ssr",assets_exclude_path:"_worker.js",entrypoint_path:"./index.js"},docusaurus:{package_identifier:"@docusaurus/core",build_command:"docusaurus build",config_template_path:"templates/docusaurus/docusaurus.config.js.template",wrangler_template_path:"templates/docusaurus/wrangler.docusaurus.json",assets_path:"build",deployment_type:"ssg",entrypoint_path:"./no-op-worker.js"},gatsby:{package_identifier:"gatsby",build_command:"gatsby build",wrangler_template_path:"templates/gatsby/wrangler.gatsby.json",assets_path:"public",deployment_type:"ssg",entrypoint_path:"./no-op-worker.js"},nextjs:{package_identifier:"@opennextjs/cloudflare",build_command:"opennextjs-cloudflare build",config_template_path:"templates/nextjs/next.config.ts.template",additional_config_files:["templates/nextjs/webflow-loader.ts"],wrangler_template_path:"templates/nextjs/wrangler.nextjs.json",assets_path:".open-next/assets",entrypoint_path:"./worker.js",deployment_type:"ssr"},nuxt:{package_identifier:"nuxt",build_command:"nuxt build",config_template_path:"templates/nuxt/nuxt.config.ts.template",wrangler_template_path:"templates/nuxt/wrangler.nuxt.json",assets_path:".output/public",entrypoint_path:"./index.js",deployment_type:"ssr"},qwik:{package_identifier:"@builder.io/qwik",build_command:"qwik build",config_template_path:"templates/qwik/vite.config.ts.template",wrangler_template_path:"templates/qwik/wrangler.qwik.json",assets_path:"dist",deployment_type:"ssr",entrypoint_path:"./_worker.js"},react:{package_identifier:"@vitejs/plugin-react",build_command:"tsc -b && vite build",config_template_path:"templates/react/vite.config.ts.template",wrangler_template_path:"templates/react/wrangler.react.json",assets_path:"dist",deployment_type:"spa",entrypoint_path:"./index.js"},remix:{package_identifier:"@remix-run/cloudflare",build_command:"remix vite:build",config_template_path:"templates/remix/vite.config.ts.template",wrangler_template_path:"templates/remix/wrangler.remix.json",assets_path:"build/client",deployment_type:"ssr",entrypoint_path:"./server.js"},solid:{package_identifier:"@solidjs/start",build_command:"vinxi build",config_template_path:"templates/solid/app.config.ts.template",wrangler_template_path:"templates/solid/wrangler.solid.json",assets_path:".output/public",deployment_type:"ssr",entrypoint_path:"./index.js"},svelte:{package_identifier:"@sveltejs/vite-plugin-svelte",build_command:"vite build",config_template_path:"templates/svelte/vite.config.ts.template",wrangler_template_path:"templates/svelte/wrangler.svelte.json",assets_path:".svelte-kit/cloudflare",deployment_type:"ssr",entrypoint_path:"./_worker.js"},vue:{package_identifier:"@vitejs/plugin-vue",build_command:"vue-tsc --build && vite build",config_template_path:"templates/vue/vite.config.ts.template",wrangler_template_path:"templates/vue/wrangler.vue.json",assets_path:"dist",deployment_type:"spa",entrypoint_path:"./index.js"}},ci=["nextjs","astro","remix"];async function th(e=process.cwd()){let t=gl.join(e,"package.json"),n=gl.join(e,"webflow.json");if(!St.existsSync(t))throw new Error("No package.json file found");let r=null;if(St.existsSync(n))try{let i=JSON.parse(St.readFileSync(n,"utf8")).cloud?.framework;if(i){if(!ui[i]){let s=Object.keys(ui).join(", ");throw new Error(`Framework '${i}' from webflow.json is not supported. Must be one of: ${s}`)}if(!ci.includes(i))throw new Error(`Framework '${i}' is not currently supported. Must be one of: ${ci.join(", ")}`);r=i,d.info(`Using framework type from webflow.json: ${r}`)}else throw new Error("webflow.json exists but doesn't contain valid framework information under the 'cloud' key")}catch(o){throw o instanceof SyntaxError?new Error("webflow.json contains invalid JSON"):o}if(!r)try{let o=JSON.parse(St.readFileSync(t,"utf8"));for(let s of ci){let l=ui[s].package_identifier;if(o.dependencies?.[l]||o.devDependencies?.[l]){r=s;break}}if(!r)throw new Error(`Framework not detected or not supported. Only ${ci.join(", ")} are currently supported.`);d.info(`Detected framework: ${r}`),St.writeFileSync(n,JSON.stringify({cloud:{framework:r}},null,2))}catch(o){throw o instanceof SyntaxError?new Error("package.json contains invalid JSON"):o}return{framework:r,config:ui[r]}}var P=D(require("fs")),N=D(require("path")),Kn=require("child_process"),Ch=D(require("tar"));var te=D(require("fs")),be=D(require("path"));var Z={};Ql(Z,{BRAND:()=>xC,DIRTY:()=>Yt,EMPTY_PATH:()=>tC,INVALID:()=>j,NEVER:()=>aF,OK:()=>fe,ParseStatus:()=>pe,Schema:()=>U,ZodAny:()=>Ot,ZodArray:()=>dt,ZodBigInt:()=>Qt,ZodBoolean:()=>en,ZodBranded:()=>zr,ZodCatch:()=>dn,ZodDate:()=>tn,ZodDefault:()=>pn,ZodDiscriminatedUnion:()=>fi,ZodEffects:()=>Be,ZodEnum:()=>un,ZodError:()=>ge,ZodFirstPartyTypeKind:()=>L,ZodFunction:()=>hi,ZodIntersection:()=>sn,ZodIssueCode:()=>b,ZodLazy:()=>an,ZodLiteral:()=>ln,ZodMap:()=>Gn,ZodNaN:()=>Hn,ZodNativeEnum:()=>cn,ZodNever:()=>Ve,ZodNull:()=>rn,ZodNullable:()=>Qe,ZodNumber:()=>Xt,ZodObject:()=>ye,ZodOptional:()=>Oe,ZodParsedType:()=>C,ZodPipeline:()=>Wr,ZodPromise:()=>Pt,ZodReadonly:()=>fn,ZodRecord:()=>mi,ZodSchema:()=>U,ZodSet:()=>qn,ZodString:()=>At,ZodSymbol:()=>Un,ZodTransformer:()=>Be,ZodTuple:()=>Xe,ZodType:()=>U,ZodUndefined:()=>nn,ZodUnion:()=>on,ZodUnknown:()=>pt,ZodVoid:()=>Vn,addIssueToContext:()=>v,any:()=>PC,array:()=>RC,bigint:()=>EC,boolean:()=>dh,coerce:()=>sF,custom:()=>uh,date:()=>SC,datetimeRegex:()=>ah,defaultErrorMap:()=>ut,discriminatedUnion:()=>$C,effect:()=>XC,enum:()=>ZC,function:()=>qC,getErrorMap:()=>$n,getParsedType:()=>Ye,instanceof:()=>FC,intersection:()=>zC,isAborted:()=>pi,isAsync:()=>zn,isDirty:()=>di,isValid:()=>Tt,late:()=>CC,lazy:()=>HC,literal:()=>JC,makeIssue:()=>$r,map:()=>VC,nan:()=>_C,nativeEnum:()=>KC,never:()=>IC,null:()=>OC,nullable:()=>eF,number:()=>ph,object:()=>LC,objectUtil:()=>yl,oboolean:()=>iF,onumber:()=>oF,optional:()=>QC,ostring:()=>rF,pipeline:()=>nF,preprocess:()=>tF,promise:()=>YC,quotelessJson:()=>X1,record:()=>UC,set:()=>GC,setErrorMap:()=>eC,strictObject:()=>NC,string:()=>ch,symbol:()=>TC,transformer:()=>XC,tuple:()=>WC,undefined:()=>AC,union:()=>MC,unknown:()=>BC,util:()=>V,void:()=>jC});var V;(function(e){e.assertEqual=o=>{};function t(o){}e.assertIs=t;function n(o){throw new Error}e.assertNever=n,e.arrayToEnum=o=>{let i={};for(let s of o)i[s]=s;return i},e.getValidEnumValues=o=>{let i=e.objectKeys(o).filter(a=>typeof o[o[a]]!="number"),s={};for(let a of i)s[a]=o[a];return e.objectValues(s)},e.objectValues=o=>e.objectKeys(o).map(function(i){return o[i]}),e.objectKeys=typeof Object.keys=="function"?o=>Object.keys(o):o=>{let i=[];for(let s in o)Object.prototype.hasOwnProperty.call(o,s)&&i.push(s);return i},e.find=(o,i)=>{for(let s of o)if(i(s))return s},e.isInteger=typeof Number.isInteger=="function"?o=>Number.isInteger(o):o=>typeof o=="number"&&Number.isFinite(o)&&Math.floor(o)===o;function r(o,i=" | "){return o.map(s=>typeof s=="string"?`'${s}'`:s).join(i)}e.joinValues=r,e.jsonStringifyReplacer=(o,i)=>typeof i=="bigint"?i.toString():i})(V||(V={}));var yl;(function(e){e.mergeShapes=(t,n)=>({...t,...n})})(yl||(yl={}));var C=V.arrayToEnum(["string","nan","number","integer","float","boolean","date","bigint","symbol","function","undefined","null","array","object","unknown","promise","void","never","map","set"]),Ye=e=>{switch(typeof e){case"undefined":return C.undefined;case"string":return C.string;case"number":return Number.isNaN(e)?C.nan:C.number;case"boolean":return C.boolean;case"function":return C.function;case"bigint":return C.bigint;case"symbol":return C.symbol;case"object":return Array.isArray(e)?C.array:e===null?C.null:e.then&&typeof e.then=="function"&&e.catch&&typeof e.catch=="function"?C.promise:typeof Map<"u"&&e instanceof Map?C.map:typeof Set<"u"&&e instanceof Set?C.set:typeof Date<"u"&&e instanceof Date?C.date:C.object;default:return C.unknown}};var b=V.arrayToEnum(["invalid_type","invalid_literal","custom","invalid_union","invalid_union_discriminator","invalid_enum_value","unrecognized_keys","invalid_arguments","invalid_return_type","invalid_date","invalid_string","too_small","too_big","invalid_intersection_types","not_multiple_of","not_finite"]),X1=e=>JSON.stringify(e,null,2).replace(/"([^"]+)":/g,"$1:"),ge=class e extends Error{get errors(){return this.issues}constructor(t){super(),this.issues=[],this.addIssue=r=>{this.issues=[...this.issues,r]},this.addIssues=(r=[])=>{this.issues=[...this.issues,...r]};let n=new.target.prototype;Object.setPrototypeOf?Object.setPrototypeOf(this,n):this.__proto__=n,this.name="ZodError",this.issues=t}format(t){let n=t||function(i){return i.message},r={_errors:[]},o=i=>{for(let s of i.issues)if(s.code==="invalid_union")s.unionErrors.map(o);else if(s.code==="invalid_return_type")o(s.returnTypeError);else if(s.code==="invalid_arguments")o(s.argumentsError);else if(s.path.length===0)r._errors.push(n(s));else{let a=r,l=0;for(;l<s.path.length;){let u=s.path[l];l===s.path.length-1?(a[u]=a[u]||{_errors:[]},a[u]._errors.push(n(s))):a[u]=a[u]||{_errors:[]},a=a[u],l++}}};return o(this),r}static assert(t){if(!(t instanceof e))throw new Error(`Not a ZodError: ${t}`)}toString(){return this.message}get message(){return JSON.stringify(this.issues,V.jsonStringifyReplacer,2)}get isEmpty(){return this.issues.length===0}flatten(t=n=>n.message){let n={},r=[];for(let o of this.issues)if(o.path.length>0){let i=o.path[0];n[i]=n[i]||[],n[i].push(t(o))}else r.push(t(o));return{formErrors:r,fieldErrors:n}}get formErrors(){return this.flatten()}};ge.create=e=>new ge(e);var Q1=(e,t)=>{let n;switch(e.code){case b.invalid_type:e.received===C.undefined?n="Required":n=`Expected ${e.expected}, received ${e.received}`;break;case b.invalid_literal:n=`Invalid literal value, expected ${JSON.stringify(e.expected,V.jsonStringifyReplacer)}`;break;case b.unrecognized_keys:n=`Unrecognized key(s) in object: ${V.joinValues(e.keys,", ")}`;break;case b.invalid_union:n="Invalid input";break;case b.invalid_union_discriminator:n=`Invalid discriminator value. Expected ${V.joinValues(e.options)}`;break;case b.invalid_enum_value:n=`Invalid enum value. Expected ${V.joinValues(e.options)}, received '${e.received}'`;break;case b.invalid_arguments:n="Invalid function arguments";break;case b.invalid_return_type:n="Invalid function return type";break;case b.invalid_date:n="Invalid date";break;case b.invalid_string:typeof e.validation=="object"?"includes"in e.validation?(n=`Invalid input: must include "${e.validation.includes}"`,typeof e.validation.position=="number"&&(n=`${n} at one or more positions greater than or equal to ${e.validation.position}`)):"startsWith"in e.validation?n=`Invalid input: must start with "${e.validation.startsWith}"`:"endsWith"in e.validation?n=`Invalid input: must end with "${e.validation.endsWith}"`:V.assertNever(e.validation):e.validation!=="regex"?n=`Invalid ${e.validation}`:n="Invalid";break;case b.too_small:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at least":"more than"} ${e.minimum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at least":"over"} ${e.minimum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="bigint"?n=`Number must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${e.minimum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly equal to ":e.inclusive?"greater than or equal to ":"greater than "}${new Date(Number(e.minimum))}`:n="Invalid input";break;case b.too_big:e.type==="array"?n=`Array must contain ${e.exact?"exactly":e.inclusive?"at most":"less than"} ${e.maximum} element(s)`:e.type==="string"?n=`String must contain ${e.exact?"exactly":e.inclusive?"at most":"under"} ${e.maximum} character(s)`:e.type==="number"?n=`Number must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="bigint"?n=`BigInt must be ${e.exact?"exactly":e.inclusive?"less than or equal to":"less than"} ${e.maximum}`:e.type==="date"?n=`Date must be ${e.exact?"exactly":e.inclusive?"smaller than or equal to":"smaller than"} ${new Date(Number(e.maximum))}`:n="Invalid input";break;case b.custom:n="Invalid input";break;case b.invalid_intersection_types:n="Intersection results could not be merged";break;case b.not_multiple_of:n=`Number must be a multiple of ${e.multipleOf}`;break;case b.not_finite:n="Number must be finite";break;default:n=t.defaultError,V.assertNever(e)}return{message:n}},ut=Q1;var nh=ut;function eC(e){nh=e}function $n(){return nh}var $r=e=>{let{data:t,path:n,errorMaps:r,issueData:o}=e,i=[...n,...o.path||[]],s={...o,path:i};if(o.message!==void 0)return{...o,path:i,message:o.message};let a="",l=r.filter(u=>!!u).slice().reverse();for(let u of l)a=u(s,{data:t,defaultError:a}).message;return{...o,path:i,message:a}},tC=[];function v(e,t){let n=$n(),r=$r({issueData:t,data:e.data,path:e.path,errorMaps:[e.common.contextualErrorMap,e.schemaErrorMap,n,n===ut?void 0:ut].filter(o=>!!o)});e.common.issues.push(r)}var pe=class e{constructor(){this.value="valid"}dirty(){this.value==="valid"&&(this.value="dirty")}abort(){this.value!=="aborted"&&(this.value="aborted")}static mergeArray(t,n){let r=[];for(let o of n){if(o.status==="aborted")return j;o.status==="dirty"&&t.dirty(),r.push(o.value)}return{status:t.value,value:r}}static async mergeObjectAsync(t,n){let r=[];for(let o of n){let i=await o.key,s=await o.value;r.push({key:i,value:s})}return e.mergeObjectSync(t,r)}static mergeObjectSync(t,n){let r={};for(let o of n){let{key:i,value:s}=o;if(i.status==="aborted"||s.status==="aborted")return j;i.status==="dirty"&&t.dirty(),s.status==="dirty"&&t.dirty(),i.value!=="__proto__"&&(typeof s.value<"u"||o.alwaysSet)&&(r[i.value]=s.value)}return{status:t.value,value:r}}},j=Object.freeze({status:"aborted"}),Yt=e=>({status:"dirty",value:e}),fe=e=>({status:"valid",value:e}),pi=e=>e.status==="aborted",di=e=>e.status==="dirty",Tt=e=>e.status==="valid",zn=e=>typeof Promise<"u"&&e instanceof Promise;var A;(function(e){e.errToObj=t=>typeof t=="string"?{message:t}:t||{},e.toString=t=>typeof t=="string"?t:t?.message})(A||(A={}));var Pe=class{constructor(t,n,r,o){this._cachedPath=[],this.parent=t,this.data=n,this._path=r,this._key=o}get path(){return this._cachedPath.length||(Array.isArray(this._key)?this._cachedPath.push(...this._path,...this._key):this._cachedPath.push(...this._path,this._key)),this._cachedPath}},rh=(e,t)=>{if(Tt(t))return{success:!0,data:t.value};if(!e.common.issues.length)throw new Error("Validation failed but no issues detected.");return{success:!1,get error(){if(this._error)return this._error;let n=new ge(e.common.issues);return this._error=n,this._error}}};function z(e){if(!e)return{};let{errorMap:t,invalid_type_error:n,required_error:r,description:o}=e;if(t&&(n||r))throw new Error(`Can't use "invalid_type_error" or "required_error" in conjunction with custom error map.`);return t?{errorMap:t,description:o}:{errorMap:(s,a)=>{let{message:l}=e;return s.code==="invalid_enum_value"?{message:l??a.defaultError}:typeof a.data>"u"?{message:l??r??a.defaultError}:s.code!=="invalid_type"?{message:a.defaultError}:{message:l??n??a.defaultError}},description:o}}var U=class{get description(){return this._def.description}_getType(t){return Ye(t.data)}_getOrReturnCtx(t,n){return n||{common:t.parent.common,data:t.data,parsedType:Ye(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}_processInputParams(t){return{status:new pe,ctx:{common:t.parent.common,data:t.data,parsedType:Ye(t.data),schemaErrorMap:this._def.errorMap,path:t.path,parent:t.parent}}}_parseSync(t){let n=this._parse(t);if(zn(n))throw new Error("Synchronous parse encountered promise.");return n}_parseAsync(t){let n=this._parse(t);return Promise.resolve(n)}parse(t,n){let r=this.safeParse(t,n);if(r.success)return r.data;throw r.error}safeParse(t,n){let r={common:{issues:[],async:n?.async??!1,contextualErrorMap:n?.errorMap},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ye(t)},o=this._parseSync({data:t,path:r.path,parent:r});return rh(r,o)}"~validate"(t){let n={common:{issues:[],async:!!this["~standard"].async},path:[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ye(t)};if(!this["~standard"].async)try{let r=this._parseSync({data:t,path:[],parent:n});return Tt(r)?{value:r.value}:{issues:n.common.issues}}catch(r){r?.message?.toLowerCase()?.includes("encountered")&&(this["~standard"].async=!0),n.common={issues:[],async:!0}}return this._parseAsync({data:t,path:[],parent:n}).then(r=>Tt(r)?{value:r.value}:{issues:n.common.issues})}async parseAsync(t,n){let r=await this.safeParseAsync(t,n);if(r.success)return r.data;throw r.error}async safeParseAsync(t,n){let r={common:{issues:[],contextualErrorMap:n?.errorMap,async:!0},path:n?.path||[],schemaErrorMap:this._def.errorMap,parent:null,data:t,parsedType:Ye(t)},o=this._parse({data:t,path:r.path,parent:r}),i=await(zn(o)?o:Promise.resolve(o));return rh(r,i)}refine(t,n){let r=o=>typeof n=="string"||typeof n>"u"?{message:n}:typeof n=="function"?n(o):n;return this._refinement((o,i)=>{let s=t(o),a=()=>i.addIssue({code:b.custom,...r(o)});return typeof Promise<"u"&&s instanceof Promise?s.then(l=>l?!0:(a(),!1)):s?!0:(a(),!1)})}refinement(t,n){return this._refinement((r,o)=>t(r)?!0:(o.addIssue(typeof n=="function"?n(r,o):n),!1))}_refinement(t){return new Be({schema:this,typeName:L.ZodEffects,effect:{type:"refinement",refinement:t}})}superRefine(t){return this._refinement(t)}constructor(t){this.spa=this.safeParseAsync,this._def=t,this.parse=this.parse.bind(this),this.safeParse=this.safeParse.bind(this),this.parseAsync=this.parseAsync.bind(this),this.safeParseAsync=this.safeParseAsync.bind(this),this.spa=this.spa.bind(this),this.refine=this.refine.bind(this),this.refinement=this.refinement.bind(this),this.superRefine=this.superRefine.bind(this),this.optional=this.optional.bind(this),this.nullable=this.nullable.bind(this),this.nullish=this.nullish.bind(this),this.array=this.array.bind(this),this.promise=this.promise.bind(this),this.or=this.or.bind(this),this.and=this.and.bind(this),this.transform=this.transform.bind(this),this.brand=this.brand.bind(this),this.default=this.default.bind(this),this.catch=this.catch.bind(this),this.describe=this.describe.bind(this),this.pipe=this.pipe.bind(this),this.readonly=this.readonly.bind(this),this.isNullable=this.isNullable.bind(this),this.isOptional=this.isOptional.bind(this),this["~standard"]={version:1,vendor:"zod",validate:n=>this["~validate"](n)}}optional(){return Oe.create(this,this._def)}nullable(){return Qe.create(this,this._def)}nullish(){return this.nullable().optional()}array(){return dt.create(this)}promise(){return Pt.create(this,this._def)}or(t){return on.create([this,t],this._def)}and(t){return sn.create(this,t,this._def)}transform(t){return new Be({...z(this._def),schema:this,typeName:L.ZodEffects,effect:{type:"transform",transform:t}})}default(t){let n=typeof t=="function"?t:()=>t;return new pn({...z(this._def),innerType:this,defaultValue:n,typeName:L.ZodDefault})}brand(){return new zr({typeName:L.ZodBranded,type:this,...z(this._def)})}catch(t){let n=typeof t=="function"?t:()=>t;return new dn({...z(this._def),innerType:this,catchValue:n,typeName:L.ZodCatch})}describe(t){let n=this.constructor;return new n({...this._def,description:t})}pipe(t){return Wr.create(this,t)}readonly(){return fn.create(this)}isOptional(){return this.safeParse(void 0).success}isNullable(){return this.safeParse(null).success}},nC=/^c[^\s-]{8,}$/i,rC=/^[0-9a-z]+$/,oC=/^[0-9A-HJKMNP-TV-Z]{26}$/i,iC=/^[0-9a-fA-F]{8}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{4}\b-[0-9a-fA-F]{12}$/i,sC=/^[a-z0-9_-]{21}$/i,aC=/^[A-Za-z0-9-_]+\.[A-Za-z0-9-_]+\.[A-Za-z0-9-_]*$/,lC=/^[-+]?P(?!$)(?:(?:[-+]?\d+Y)|(?:[-+]?\d+[.,]\d+Y$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:(?:[-+]?\d+W)|(?:[-+]?\d+[.,]\d+W$))?(?:(?:[-+]?\d+D)|(?:[-+]?\d+[.,]\d+D$))?(?:T(?=[\d+-])(?:(?:[-+]?\d+H)|(?:[-+]?\d+[.,]\d+H$))?(?:(?:[-+]?\d+M)|(?:[-+]?\d+[.,]\d+M$))?(?:[-+]?\d+(?:[.,]\d+)?S)?)??$/,uC=/^(?!\.)(?!.*\.\.)([A-Z0-9_'+\-\.]*)[A-Z0-9_+-]@([A-Z0-9][A-Z0-9\-]*\.)+[A-Z]{2,}$/i,cC="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$",bl,pC=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,dC=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/(3[0-2]|[12]?[0-9])$/,fC=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))$/,mC=/^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,hC=/^([0-9a-zA-Z+/]{4})*(([0-9a-zA-Z+/]{2}==)|([0-9a-zA-Z+/]{3}=))?$/,gC=/^([0-9a-zA-Z-_]{4})*(([0-9a-zA-Z-_]{2}(==)?)|([0-9a-zA-Z-_]{3}(=)?))?$/,ih="((\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-((0[13578]|1[02])-(0[1-9]|[12]\\d|3[01])|(0[469]|11)-(0[1-9]|[12]\\d|30)|(02)-(0[1-9]|1\\d|2[0-8])))",yC=new RegExp(`^${ih}$`);function sh(e){let t="[0-5]\\d";e.precision?t=`${t}\\.\\d{${e.precision}}`:e.precision==null&&(t=`${t}(\\.\\d+)?`);let n=e.precision?"+":"?";return`([01]\\d|2[0-3]):[0-5]\\d(:${t})${n}`}function bC(e){return new RegExp(`^${sh(e)}$`)}function ah(e){let t=`${ih}T${sh(e)}`,n=[];return n.push(e.local?"Z?":"Z"),e.offset&&n.push("([+-]\\d{2}:?\\d{2})"),t=`${t}(${n.join("|")})`,new RegExp(`^${t}$`)}function DC(e,t){return!!((t==="v4"||!t)&&pC.test(e)||(t==="v6"||!t)&&fC.test(e))}function wC(e,t){if(!aC.test(e))return!1;try{let[n]=e.split(".");if(!n)return!1;let r=n.replace(/-/g,"+").replace(/_/g,"/").padEnd(n.length+(4-n.length%4)%4,"="),o=JSON.parse(atob(r));return!(typeof o!="object"||o===null||"typ"in o&&o?.typ!=="JWT"||!o.alg||t&&o.alg!==t)}catch{return!1}}function vC(e,t){return!!((t==="v4"||!t)&&dC.test(e)||(t==="v6"||!t)&&mC.test(e))}var At=class e extends U{_parse(t){if(this._def.coerce&&(t.data=String(t.data)),this._getType(t)!==C.string){let i=this._getOrReturnCtx(t);return v(i,{code:b.invalid_type,expected:C.string,received:i.parsedType}),j}let r=new pe,o;for(let i of this._def.checks)if(i.kind==="min")t.data.length<i.value&&(o=this._getOrReturnCtx(t,o),v(o,{code:b.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="max")t.data.length>i.value&&(o=this._getOrReturnCtx(t,o),v(o,{code:b.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!1,message:i.message}),r.dirty());else if(i.kind==="length"){let s=t.data.length>i.value,a=t.data.length<i.value;(s||a)&&(o=this._getOrReturnCtx(t,o),s?v(o,{code:b.too_big,maximum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}):a&&v(o,{code:b.too_small,minimum:i.value,type:"string",inclusive:!0,exact:!0,message:i.message}),r.dirty())}else if(i.kind==="email")uC.test(t.data)||(o=this._getOrReturnCtx(t,o),v(o,{validation:"email",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="emoji")bl||(bl=new RegExp(cC,"u")),bl.test(t.data)||(o=this._getOrReturnCtx(t,o),v(o,{validation:"emoji",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="uuid")iC.test(t.data)||(o=this._getOrReturnCtx(t,o),v(o,{validation:"uuid",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="nanoid")sC.test(t.data)||(o=this._getOrReturnCtx(t,o),v(o,{validation:"nanoid",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid")nC.test(t.data)||(o=this._getOrReturnCtx(t,o),v(o,{validation:"cuid",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="cuid2")rC.test(t.data)||(o=this._getOrReturnCtx(t,o),v(o,{validation:"cuid2",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="ulid")oC.test(t.data)||(o=this._getOrReturnCtx(t,o),v(o,{validation:"ulid",code:b.invalid_string,message:i.message}),r.dirty());else if(i.kind==="url")try{new URL(t.data)}catch{o=this._getOrReturnCtx(t,o),v(o,{validation:"url",code:b.invalid_string,message:i.message}),r.dirty()}else i.kind==="regex"?(i.regex.lastIndex=0,i.regex.test(t.data)||(o=this._getOrReturnCtx(t,o),v(o,{validation:"regex",code:b.invalid_string,message:i.message}),r.dirty())):i.kind==="trim"?t.data=t.data.trim():i.kind==="includes"?t.data.includes(i.value,i.position)||(o=this._getOrReturnCtx(t,o),v(o,{code:b.invalid_string,validation:{includes:i.value,position:i.position},message:i.message}),r.dirty()):i.kind==="toLowerCase"?t.data=t.data.toLowerCase():i.kind==="toUpperCase"?t.data=t.data.toUpperCase():i.kind==="startsWith"?t.data.startsWith(i.value)||(o=this._getOrReturnCtx(t,o),v(o,{code:b.invalid_string,validation:{startsWith:i.value},message:i.message}),r.dirty()):i.kind==="endsWith"?t.data.endsWith(i.value)||(o=this._getOrReturnCtx(t,o),v(o,{code:b.invalid_string,validation:{endsWith:i.value},message:i.message}),r.dirty()):i.kind==="datetime"?ah(i).test(t.data)||(o=this._getOrReturnCtx(t,o),v(o,{code:b.invalid_string,validation:"datetime",message:i.message}),r.dirty()):i.kind==="date"?yC.test(t.data)||(o=this._getOrReturnCtx(t,o),v(o,{code:b.invalid_string,validation:"date",message:i.message}),r.dirty()):i.kind==="time"?bC(i).test(t.data)||(o=this._getOrReturnCtx(t,o),v(o,{code:b.invalid_string,validation:"time",message:i.message}),r.dirty()):i.kind==="duration"?lC.test(t.data)||(o=this._getOrReturnCtx(t,o),v(o,{validation:"duration",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="ip"?DC(t.data,i.version)||(o=this._getOrReturnCtx(t,o),v(o,{validation:"ip",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="jwt"?wC(t.data,i.alg)||(o=this._getOrReturnCtx(t,o),v(o,{validation:"jwt",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="cidr"?vC(t.data,i.version)||(o=this._getOrReturnCtx(t,o),v(o,{validation:"cidr",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="base64"?hC.test(t.data)||(o=this._getOrReturnCtx(t,o),v(o,{validation:"base64",code:b.invalid_string,message:i.message}),r.dirty()):i.kind==="base64url"?gC.test(t.data)||(o=this._getOrReturnCtx(t,o),v(o,{validation:"base64url",code:b.invalid_string,message:i.message}),r.dirty()):V.assertNever(i);return{status:r.value,value:t.data}}_regex(t,n,r){return this.refinement(o=>t.test(o),{validation:n,code:b.invalid_string,...A.errToObj(r)})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}email(t){return this._addCheck({kind:"email",...A.errToObj(t)})}url(t){return this._addCheck({kind:"url",...A.errToObj(t)})}emoji(t){return this._addCheck({kind:"emoji",...A.errToObj(t)})}uuid(t){return this._addCheck({kind:"uuid",...A.errToObj(t)})}nanoid(t){return this._addCheck({kind:"nanoid",...A.errToObj(t)})}cuid(t){return this._addCheck({kind:"cuid",...A.errToObj(t)})}cuid2(t){return this._addCheck({kind:"cuid2",...A.errToObj(t)})}ulid(t){return this._addCheck({kind:"ulid",...A.errToObj(t)})}base64(t){return this._addCheck({kind:"base64",...A.errToObj(t)})}base64url(t){return this._addCheck({kind:"base64url",...A.errToObj(t)})}jwt(t){return this._addCheck({kind:"jwt",...A.errToObj(t)})}ip(t){return this._addCheck({kind:"ip",...A.errToObj(t)})}cidr(t){return this._addCheck({kind:"cidr",...A.errToObj(t)})}datetime(t){return typeof t=="string"?this._addCheck({kind:"datetime",precision:null,offset:!1,local:!1,message:t}):this._addCheck({kind:"datetime",precision:typeof t?.precision>"u"?null:t?.precision,offset:t?.offset??!1,local:t?.local??!1,...A.errToObj(t?.message)})}date(t){return this._addCheck({kind:"date",message:t})}time(t){return typeof t=="string"?this._addCheck({kind:"time",precision:null,message:t}):this._addCheck({kind:"time",precision:typeof t?.precision>"u"?null:t?.precision,...A.errToObj(t?.message)})}duration(t){return this._addCheck({kind:"duration",...A.errToObj(t)})}regex(t,n){return this._addCheck({kind:"regex",regex:t,...A.errToObj(n)})}includes(t,n){return this._addCheck({kind:"includes",value:t,position:n?.position,...A.errToObj(n?.message)})}startsWith(t,n){return this._addCheck({kind:"startsWith",value:t,...A.errToObj(n)})}endsWith(t,n){return this._addCheck({kind:"endsWith",value:t,...A.errToObj(n)})}min(t,n){return this._addCheck({kind:"min",value:t,...A.errToObj(n)})}max(t,n){return this._addCheck({kind:"max",value:t,...A.errToObj(n)})}length(t,n){return this._addCheck({kind:"length",value:t,...A.errToObj(n)})}nonempty(t){return this.min(1,A.errToObj(t))}trim(){return new e({...this._def,checks:[...this._def.checks,{kind:"trim"}]})}toLowerCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toLowerCase"}]})}toUpperCase(){return new e({...this._def,checks:[...this._def.checks,{kind:"toUpperCase"}]})}get isDatetime(){return!!this._def.checks.find(t=>t.kind==="datetime")}get isDate(){return!!this._def.checks.find(t=>t.kind==="date")}get isTime(){return!!this._def.checks.find(t=>t.kind==="time")}get isDuration(){return!!this._def.checks.find(t=>t.kind==="duration")}get isEmail(){return!!this._def.checks.find(t=>t.kind==="email")}get isURL(){return!!this._def.checks.find(t=>t.kind==="url")}get isEmoji(){return!!this._def.checks.find(t=>t.kind==="emoji")}get isUUID(){return!!this._def.checks.find(t=>t.kind==="uuid")}get isNANOID(){return!!this._def.checks.find(t=>t.kind==="nanoid")}get isCUID(){return!!this._def.checks.find(t=>t.kind==="cuid")}get isCUID2(){return!!this._def.checks.find(t=>t.kind==="cuid2")}get isULID(){return!!this._def.checks.find(t=>t.kind==="ulid")}get isIP(){return!!this._def.checks.find(t=>t.kind==="ip")}get isCIDR(){return!!this._def.checks.find(t=>t.kind==="cidr")}get isBase64(){return!!this._def.checks.find(t=>t.kind==="base64")}get isBase64url(){return!!this._def.checks.find(t=>t.kind==="base64url")}get minLength(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxLength(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};At.create=e=>new At({checks:[],typeName:L.ZodString,coerce:e?.coerce??!1,...z(e)});function kC(e,t){let n=(e.toString().split(".")[1]||"").length,r=(t.toString().split(".")[1]||"").length,o=n>r?n:r,i=Number.parseInt(e.toFixed(o).replace(".","")),s=Number.parseInt(t.toFixed(o).replace(".",""));return i%s/10**o}var Xt=class e extends U{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte,this.step=this.multipleOf}_parse(t){if(this._def.coerce&&(t.data=Number(t.data)),this._getType(t)!==C.number){let i=this._getOrReturnCtx(t);return v(i,{code:b.invalid_type,expected:C.number,received:i.parsedType}),j}let r,o=new pe;for(let i of this._def.checks)i.kind==="int"?V.isInteger(t.data)||(r=this._getOrReturnCtx(t,r),v(r,{code:b.invalid_type,expected:"integer",received:"float",message:i.message}),o.dirty()):i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),v(r,{code:b.too_small,minimum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),v(r,{code:b.too_big,maximum:i.value,type:"number",inclusive:i.inclusive,exact:!1,message:i.message}),o.dirty()):i.kind==="multipleOf"?kC(t.data,i.value)!==0&&(r=this._getOrReturnCtx(t,r),v(r,{code:b.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):i.kind==="finite"?Number.isFinite(t.data)||(r=this._getOrReturnCtx(t,r),v(r,{code:b.not_finite,message:i.message}),o.dirty()):V.assertNever(i);return{status:o.value,value:t.data}}gte(t,n){return this.setLimit("min",t,!0,A.toString(n))}gt(t,n){return this.setLimit("min",t,!1,A.toString(n))}lte(t,n){return this.setLimit("max",t,!0,A.toString(n))}lt(t,n){return this.setLimit("max",t,!1,A.toString(n))}setLimit(t,n,r,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:A.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}int(t){return this._addCheck({kind:"int",message:A.toString(t)})}positive(t){return this._addCheck({kind:"min",value:0,inclusive:!1,message:A.toString(t)})}negative(t){return this._addCheck({kind:"max",value:0,inclusive:!1,message:A.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:0,inclusive:!0,message:A.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:0,inclusive:!0,message:A.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:A.toString(n)})}finite(t){return this._addCheck({kind:"finite",message:A.toString(t)})}safe(t){return this._addCheck({kind:"min",inclusive:!0,value:Number.MIN_SAFE_INTEGER,message:A.toString(t)})._addCheck({kind:"max",inclusive:!0,value:Number.MAX_SAFE_INTEGER,message:A.toString(t)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}get isInt(){return!!this._def.checks.find(t=>t.kind==="int"||t.kind==="multipleOf"&&V.isInteger(t.value))}get isFinite(){let t=null,n=null;for(let r of this._def.checks){if(r.kind==="finite"||r.kind==="int"||r.kind==="multipleOf")return!0;r.kind==="min"?(n===null||r.value>n)&&(n=r.value):r.kind==="max"&&(t===null||r.value<t)&&(t=r.value)}return Number.isFinite(n)&&Number.isFinite(t)}};Xt.create=e=>new Xt({checks:[],typeName:L.ZodNumber,coerce:e?.coerce||!1,...z(e)});var Qt=class e extends U{constructor(){super(...arguments),this.min=this.gte,this.max=this.lte}_parse(t){if(this._def.coerce)try{t.data=BigInt(t.data)}catch{return this._getInvalidInput(t)}if(this._getType(t)!==C.bigint)return this._getInvalidInput(t);let r,o=new pe;for(let i of this._def.checks)i.kind==="min"?(i.inclusive?t.data<i.value:t.data<=i.value)&&(r=this._getOrReturnCtx(t,r),v(r,{code:b.too_small,type:"bigint",minimum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind==="max"?(i.inclusive?t.data>i.value:t.data>=i.value)&&(r=this._getOrReturnCtx(t,r),v(r,{code:b.too_big,type:"bigint",maximum:i.value,inclusive:i.inclusive,message:i.message}),o.dirty()):i.kind==="multipleOf"?t.data%i.value!==BigInt(0)&&(r=this._getOrReturnCtx(t,r),v(r,{code:b.not_multiple_of,multipleOf:i.value,message:i.message}),o.dirty()):V.assertNever(i);return{status:o.value,value:t.data}}_getInvalidInput(t){let n=this._getOrReturnCtx(t);return v(n,{code:b.invalid_type,expected:C.bigint,received:n.parsedType}),j}gte(t,n){return this.setLimit("min",t,!0,A.toString(n))}gt(t,n){return this.setLimit("min",t,!1,A.toString(n))}lte(t,n){return this.setLimit("max",t,!0,A.toString(n))}lt(t,n){return this.setLimit("max",t,!1,A.toString(n))}setLimit(t,n,r,o){return new e({...this._def,checks:[...this._def.checks,{kind:t,value:n,inclusive:r,message:A.toString(o)}]})}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}positive(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!1,message:A.toString(t)})}negative(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!1,message:A.toString(t)})}nonpositive(t){return this._addCheck({kind:"max",value:BigInt(0),inclusive:!0,message:A.toString(t)})}nonnegative(t){return this._addCheck({kind:"min",value:BigInt(0),inclusive:!0,message:A.toString(t)})}multipleOf(t,n){return this._addCheck({kind:"multipleOf",value:t,message:A.toString(n)})}get minValue(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t}get maxValue(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t}};Qt.create=e=>new Qt({checks:[],typeName:L.ZodBigInt,coerce:e?.coerce??!1,...z(e)});var en=class extends U{_parse(t){if(this._def.coerce&&(t.data=!!t.data),this._getType(t)!==C.boolean){let r=this._getOrReturnCtx(t);return v(r,{code:b.invalid_type,expected:C.boolean,received:r.parsedType}),j}return fe(t.data)}};en.create=e=>new en({typeName:L.ZodBoolean,coerce:e?.coerce||!1,...z(e)});var tn=class e extends U{_parse(t){if(this._def.coerce&&(t.data=new Date(t.data)),this._getType(t)!==C.date){let i=this._getOrReturnCtx(t);return v(i,{code:b.invalid_type,expected:C.date,received:i.parsedType}),j}if(Number.isNaN(t.data.getTime())){let i=this._getOrReturnCtx(t);return v(i,{code:b.invalid_date}),j}let r=new pe,o;for(let i of this._def.checks)i.kind==="min"?t.data.getTime()<i.value&&(o=this._getOrReturnCtx(t,o),v(o,{code:b.too_small,message:i.message,inclusive:!0,exact:!1,minimum:i.value,type:"date"}),r.dirty()):i.kind==="max"?t.data.getTime()>i.value&&(o=this._getOrReturnCtx(t,o),v(o,{code:b.too_big,message:i.message,inclusive:!0,exact:!1,maximum:i.value,type:"date"}),r.dirty()):V.assertNever(i);return{status:r.value,value:new Date(t.data.getTime())}}_addCheck(t){return new e({...this._def,checks:[...this._def.checks,t]})}min(t,n){return this._addCheck({kind:"min",value:t.getTime(),message:A.toString(n)})}max(t,n){return this._addCheck({kind:"max",value:t.getTime(),message:A.toString(n)})}get minDate(){let t=null;for(let n of this._def.checks)n.kind==="min"&&(t===null||n.value>t)&&(t=n.value);return t!=null?new Date(t):null}get maxDate(){let t=null;for(let n of this._def.checks)n.kind==="max"&&(t===null||n.value<t)&&(t=n.value);return t!=null?new Date(t):null}};tn.create=e=>new tn({checks:[],coerce:e?.coerce||!1,typeName:L.ZodDate,...z(e)});var Un=class extends U{_parse(t){if(this._getType(t)!==C.symbol){let r=this._getOrReturnCtx(t);return v(r,{code:b.invalid_type,expected:C.symbol,received:r.parsedType}),j}return fe(t.data)}};Un.create=e=>new Un({typeName:L.ZodSymbol,...z(e)});var nn=class extends U{_parse(t){if(this._getType(t)!==C.undefined){let r=this._getOrReturnCtx(t);return v(r,{code:b.invalid_type,expected:C.undefined,received:r.parsedType}),j}return fe(t.data)}};nn.create=e=>new nn({typeName:L.ZodUndefined,...z(e)});var rn=class extends U{_parse(t){if(this._getType(t)!==C.null){let r=this._getOrReturnCtx(t);return v(r,{code:b.invalid_type,expected:C.null,received:r.parsedType}),j}return fe(t.data)}};rn.create=e=>new rn({typeName:L.ZodNull,...z(e)});var Ot=class extends U{constructor(){super(...arguments),this._any=!0}_parse(t){return fe(t.data)}};Ot.create=e=>new Ot({typeName:L.ZodAny,...z(e)});var pt=class extends U{constructor(){super(...arguments),this._unknown=!0}_parse(t){return fe(t.data)}};pt.create=e=>new pt({typeName:L.ZodUnknown,...z(e)});var Ve=class extends U{_parse(t){let n=this._getOrReturnCtx(t);return v(n,{code:b.invalid_type,expected:C.never,received:n.parsedType}),j}};Ve.create=e=>new Ve({typeName:L.ZodNever,...z(e)});var Vn=class extends U{_parse(t){if(this._getType(t)!==C.undefined){let r=this._getOrReturnCtx(t);return v(r,{code:b.invalid_type,expected:C.void,received:r.parsedType}),j}return fe(t.data)}};Vn.create=e=>new Vn({typeName:L.ZodVoid,...z(e)});var dt=class e extends U{_parse(t){let{ctx:n,status:r}=this._processInputParams(t),o=this._def;if(n.parsedType!==C.array)return v(n,{code:b.invalid_type,expected:C.array,received:n.parsedType}),j;if(o.exactLength!==null){let s=n.data.length>o.exactLength.value,a=n.data.length<o.exactLength.value;(s||a)&&(v(n,{code:s?b.too_big:b.too_small,minimum:a?o.exactLength.value:void 0,maximum:s?o.exactLength.value:void 0,type:"array",inclusive:!0,exact:!0,message:o.exactLength.message}),r.dirty())}if(o.minLength!==null&&n.data.length<o.minLength.value&&(v(n,{code:b.too_small,minimum:o.minLength.value,type:"array",inclusive:!0,exact:!1,message:o.minLength.message}),r.dirty()),o.maxLength!==null&&n.data.length>o.maxLength.value&&(v(n,{code:b.too_big,maximum:o.maxLength.value,type:"array",inclusive:!0,exact:!1,message:o.maxLength.message}),r.dirty()),n.common.async)return Promise.all([...n.data].map((s,a)=>o.type._parseAsync(new Pe(n,s,n.path,a)))).then(s=>pe.mergeArray(r,s));let i=[...n.data].map((s,a)=>o.type._parseSync(new Pe(n,s,n.path,a)));return pe.mergeArray(r,i)}get element(){return this._def.type}min(t,n){return new e({...this._def,minLength:{value:t,message:A.toString(n)}})}max(t,n){return new e({...this._def,maxLength:{value:t,message:A.toString(n)}})}length(t,n){return new e({...this._def,exactLength:{value:t,message:A.toString(n)}})}nonempty(t){return this.min(1,t)}};dt.create=(e,t)=>new dt({type:e,minLength:null,maxLength:null,exactLength:null,typeName:L.ZodArray,...z(t)});function Wn(e){if(e instanceof ye){let t={};for(let n in e.shape){let r=e.shape[n];t[n]=Oe.create(Wn(r))}return new ye({...e._def,shape:()=>t})}else return e instanceof dt?new dt({...e._def,type:Wn(e.element)}):e instanceof Oe?Oe.create(Wn(e.unwrap())):e instanceof Qe?Qe.create(Wn(e.unwrap())):e instanceof Xe?Xe.create(e.items.map(t=>Wn(t))):e}var ye=class e extends U{constructor(){super(...arguments),this._cached=null,this.nonstrict=this.passthrough,this.augment=this.extend}_getCached(){if(this._cached!==null)return this._cached;let t=this._def.shape(),n=V.objectKeys(t);return this._cached={shape:t,keys:n},this._cached}_parse(t){if(this._getType(t)!==C.object){let u=this._getOrReturnCtx(t);return v(u,{code:b.invalid_type,expected:C.object,received:u.parsedType}),j}let{status:r,ctx:o}=this._processInputParams(t),{shape:i,keys:s}=this._getCached(),a=[];if(!(this._def.catchall instanceof Ve&&this._def.unknownKeys==="strip"))for(let u in o.data)s.includes(u)||a.push(u);let l=[];for(let u of s){let c=i[u],p=o.data[u];l.push({key:{status:"valid",value:u},value:c._parse(new Pe(o,p,o.path,u)),alwaysSet:u in o.data})}if(this._def.catchall instanceof Ve){let u=this._def.unknownKeys;if(u==="passthrough")for(let c of a)l.push({key:{status:"valid",value:c},value:{status:"valid",value:o.data[c]}});else if(u==="strict")a.length>0&&(v(o,{code:b.unrecognized_keys,keys:a}),r.dirty());else if(u!=="strip")throw new Error("Internal ZodObject error: invalid unknownKeys value.")}else{let u=this._def.catchall;for(let c of a){let p=o.data[c];l.push({key:{status:"valid",value:c},value:u._parse(new Pe(o,p,o.path,c)),alwaysSet:c in o.data})}}return o.common.async?Promise.resolve().then(async()=>{let u=[];for(let c of l){let p=await c.key,f=await c.value;u.push({key:p,value:f,alwaysSet:c.alwaysSet})}return u}).then(u=>pe.mergeObjectSync(r,u)):pe.mergeObjectSync(r,l)}get shape(){return this._def.shape()}strict(t){return A.errToObj,new e({...this._def,unknownKeys:"strict",...t!==void 0?{errorMap:(n,r)=>{let o=this._def.errorMap?.(n,r).message??r.defaultError;return n.code==="unrecognized_keys"?{message:A.errToObj(t).message??o}:{message:o}}}:{}})}strip(){return new e({...this._def,unknownKeys:"strip"})}passthrough(){return new e({...this._def,unknownKeys:"passthrough"})}extend(t){return new e({...this._def,shape:()=>({...this._def.shape(),...t})})}merge(t){return new e({unknownKeys:t._def.unknownKeys,catchall:t._def.catchall,shape:()=>({...this._def.shape(),...t._def.shape()}),typeName:L.ZodObject})}setKey(t,n){return this.augment({[t]:n})}catchall(t){return new e({...this._def,catchall:t})}pick(t){let n={};for(let r of V.objectKeys(t))t[r]&&this.shape[r]&&(n[r]=this.shape[r]);return new e({...this._def,shape:()=>n})}omit(t){let n={};for(let r of V.objectKeys(this.shape))t[r]||(n[r]=this.shape[r]);return new e({...this._def,shape:()=>n})}deepPartial(){return Wn(this)}partial(t){let n={};for(let r of V.objectKeys(this.shape)){let o=this.shape[r];t&&!t[r]?n[r]=o:n[r]=o.optional()}return new e({...this._def,shape:()=>n})}required(t){let n={};for(let r of V.objectKeys(this.shape))if(t&&!t[r])n[r]=this.shape[r];else{let i=this.shape[r];for(;i instanceof Oe;)i=i._def.innerType;n[r]=i}return new e({...this._def,shape:()=>n})}keyof(){return lh(V.objectKeys(this.shape))}};ye.create=(e,t)=>new ye({shape:()=>e,unknownKeys:"strip",catchall:Ve.create(),typeName:L.ZodObject,...z(t)});ye.strictCreate=(e,t)=>new ye({shape:()=>e,unknownKeys:"strict",catchall:Ve.create(),typeName:L.ZodObject,...z(t)});ye.lazycreate=(e,t)=>new ye({shape:e,unknownKeys:"strip",catchall:Ve.create(),typeName:L.ZodObject,...z(t)});var on=class extends U{_parse(t){let{ctx:n}=this._processInputParams(t),r=this._def.options;function o(i){for(let a of i)if(a.result.status==="valid")return a.result;for(let a of i)if(a.result.status==="dirty")return n.common.issues.push(...a.ctx.common.issues),a.result;let s=i.map(a=>new ge(a.ctx.common.issues));return v(n,{code:b.invalid_union,unionErrors:s}),j}if(n.common.async)return Promise.all(r.map(async i=>{let s={...n,common:{...n.common,issues:[]},parent:null};return{result:await i._parseAsync({data:n.data,path:n.path,parent:s}),ctx:s}})).then(o);{let i,s=[];for(let l of r){let u={...n,common:{...n.common,issues:[]},parent:null},c=l._parseSync({data:n.data,path:n.path,parent:u});if(c.status==="valid")return c;c.status==="dirty"&&!i&&(i={result:c,ctx:u}),u.common.issues.length&&s.push(u.common.issues)}if(i)return n.common.issues.push(...i.ctx.common.issues),i.result;let a=s.map(l=>new ge(l));return v(n,{code:b.invalid_union,unionErrors:a}),j}}get options(){return this._def.options}};on.create=(e,t)=>new on({options:e,typeName:L.ZodUnion,...z(t)});var ct=e=>e instanceof an?ct(e.schema):e instanceof Be?ct(e.innerType()):e instanceof ln?[e.value]:e instanceof un?e.options:e instanceof cn?V.objectValues(e.enum):e instanceof pn?ct(e._def.innerType):e instanceof nn?[void 0]:e instanceof rn?[null]:e instanceof Oe?[void 0,...ct(e.unwrap())]:e instanceof Qe?[null,...ct(e.unwrap())]:e instanceof zr||e instanceof fn?ct(e.unwrap()):e instanceof dn?ct(e._def.innerType):[],fi=class e extends U{_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==C.object)return v(n,{code:b.invalid_type,expected:C.object,received:n.parsedType}),j;let r=this.discriminator,o=n.data[r],i=this.optionsMap.get(o);return i?n.common.async?i._parseAsync({data:n.data,path:n.path,parent:n}):i._parseSync({data:n.data,path:n.path,parent:n}):(v(n,{code:b.invalid_union_discriminator,options:Array.from(this.optionsMap.keys()),path:[r]}),j)}get discriminator(){return this._def.discriminator}get options(){return this._def.options}get optionsMap(){return this._def.optionsMap}static create(t,n,r){let o=new Map;for(let i of n){let s=ct(i.shape[t]);if(!s.length)throw new Error(`A discriminator value for key \`${t}\` could not be extracted from all schema options`);for(let a of s){if(o.has(a))throw new Error(`Discriminator property ${String(t)} has duplicate value ${String(a)}`);o.set(a,i)}}return new e({typeName:L.ZodDiscriminatedUnion,discriminator:t,options:n,optionsMap:o,...z(r)})}};function Dl(e,t){let n=Ye(e),r=Ye(t);if(e===t)return{valid:!0,data:e};if(n===C.object&&r===C.object){let o=V.objectKeys(t),i=V.objectKeys(e).filter(a=>o.indexOf(a)!==-1),s={...e,...t};for(let a of i){let l=Dl(e[a],t[a]);if(!l.valid)return{valid:!1};s[a]=l.data}return{valid:!0,data:s}}else if(n===C.array&&r===C.array){if(e.length!==t.length)return{valid:!1};let o=[];for(let i=0;i<e.length;i++){let s=e[i],a=t[i],l=Dl(s,a);if(!l.valid)return{valid:!1};o.push(l.data)}return{valid:!0,data:o}}else return n===C.date&&r===C.date&&+e==+t?{valid:!0,data:e}:{valid:!1}}var sn=class extends U{_parse(t){let{status:n,ctx:r}=this._processInputParams(t),o=(i,s)=>{if(pi(i)||pi(s))return j;let a=Dl(i.value,s.value);return a.valid?((di(i)||di(s))&&n.dirty(),{status:n.value,value:a.data}):(v(r,{code:b.invalid_intersection_types}),j)};return r.common.async?Promise.all([this._def.left._parseAsync({data:r.data,path:r.path,parent:r}),this._def.right._parseAsync({data:r.data,path:r.path,parent:r})]).then(([i,s])=>o(i,s)):o(this._def.left._parseSync({data:r.data,path:r.path,parent:r}),this._def.right._parseSync({data:r.data,path:r.path,parent:r}))}};sn.create=(e,t,n)=>new sn({left:e,right:t,typeName:L.ZodIntersection,...z(n)});var Xe=class e extends U{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==C.array)return v(r,{code:b.invalid_type,expected:C.array,received:r.parsedType}),j;if(r.data.length<this._def.items.length)return v(r,{code:b.too_small,minimum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),j;!this._def.rest&&r.data.length>this._def.items.length&&(v(r,{code:b.too_big,maximum:this._def.items.length,inclusive:!0,exact:!1,type:"array"}),n.dirty());let i=[...r.data].map((s,a)=>{let l=this._def.items[a]||this._def.rest;return l?l._parse(new Pe(r,s,r.path,a)):null}).filter(s=>!!s);return r.common.async?Promise.all(i).then(s=>pe.mergeArray(n,s)):pe.mergeArray(n,i)}get items(){return this._def.items}rest(t){return new e({...this._def,rest:t})}};Xe.create=(e,t)=>{if(!Array.isArray(e))throw new Error("You must pass an array of schemas to z.tuple([ ... ])");return new Xe({items:e,typeName:L.ZodTuple,rest:null,...z(t)})};var mi=class e extends U{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==C.object)return v(r,{code:b.invalid_type,expected:C.object,received:r.parsedType}),j;let o=[],i=this._def.keyType,s=this._def.valueType;for(let a in r.data)o.push({key:i._parse(new Pe(r,a,r.path,a)),value:s._parse(new Pe(r,r.data[a],r.path,a)),alwaysSet:a in r.data});return r.common.async?pe.mergeObjectAsync(n,o):pe.mergeObjectSync(n,o)}get element(){return this._def.valueType}static create(t,n,r){return n instanceof U?new e({keyType:t,valueType:n,typeName:L.ZodRecord,...z(r)}):new e({keyType:At.create(),valueType:t,typeName:L.ZodRecord,...z(n)})}},Gn=class extends U{get keySchema(){return this._def.keyType}get valueSchema(){return this._def.valueType}_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==C.map)return v(r,{code:b.invalid_type,expected:C.map,received:r.parsedType}),j;let o=this._def.keyType,i=this._def.valueType,s=[...r.data.entries()].map(([a,l],u)=>({key:o._parse(new Pe(r,a,r.path,[u,"key"])),value:i._parse(new Pe(r,l,r.path,[u,"value"]))}));if(r.common.async){let a=new Map;return Promise.resolve().then(async()=>{for(let l of s){let u=await l.key,c=await l.value;if(u.status==="aborted"||c.status==="aborted")return j;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(u.value,c.value)}return{status:n.value,value:a}})}else{let a=new Map;for(let l of s){let u=l.key,c=l.value;if(u.status==="aborted"||c.status==="aborted")return j;(u.status==="dirty"||c.status==="dirty")&&n.dirty(),a.set(u.value,c.value)}return{status:n.value,value:a}}}};Gn.create=(e,t,n)=>new Gn({valueType:t,keyType:e,typeName:L.ZodMap,...z(n)});var qn=class e extends U{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.parsedType!==C.set)return v(r,{code:b.invalid_type,expected:C.set,received:r.parsedType}),j;let o=this._def;o.minSize!==null&&r.data.size<o.minSize.value&&(v(r,{code:b.too_small,minimum:o.minSize.value,type:"set",inclusive:!0,exact:!1,message:o.minSize.message}),n.dirty()),o.maxSize!==null&&r.data.size>o.maxSize.value&&(v(r,{code:b.too_big,maximum:o.maxSize.value,type:"set",inclusive:!0,exact:!1,message:o.maxSize.message}),n.dirty());let i=this._def.valueType;function s(l){let u=new Set;for(let c of l){if(c.status==="aborted")return j;c.status==="dirty"&&n.dirty(),u.add(c.value)}return{status:n.value,value:u}}let a=[...r.data.values()].map((l,u)=>i._parse(new Pe(r,l,r.path,u)));return r.common.async?Promise.all(a).then(l=>s(l)):s(a)}min(t,n){return new e({...this._def,minSize:{value:t,message:A.toString(n)}})}max(t,n){return new e({...this._def,maxSize:{value:t,message:A.toString(n)}})}size(t,n){return this.min(t,n).max(t,n)}nonempty(t){return this.min(1,t)}};qn.create=(e,t)=>new qn({valueType:e,minSize:null,maxSize:null,typeName:L.ZodSet,...z(t)});var hi=class e extends U{constructor(){super(...arguments),this.validate=this.implement}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==C.function)return v(n,{code:b.invalid_type,expected:C.function,received:n.parsedType}),j;function r(a,l){return $r({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,$n(),ut].filter(u=>!!u),issueData:{code:b.invalid_arguments,argumentsError:l}})}function o(a,l){return $r({data:a,path:n.path,errorMaps:[n.common.contextualErrorMap,n.schemaErrorMap,$n(),ut].filter(u=>!!u),issueData:{code:b.invalid_return_type,returnTypeError:l}})}let i={errorMap:n.common.contextualErrorMap},s=n.data;if(this._def.returns instanceof Pt){let a=this;return fe(async function(...l){let u=new ge([]),c=await a._def.args.parseAsync(l,i).catch(m=>{throw u.addIssue(r(l,m)),u}),p=await Reflect.apply(s,this,c);return await a._def.returns._def.type.parseAsync(p,i).catch(m=>{throw u.addIssue(o(p,m)),u})})}else{let a=this;return fe(function(...l){let u=a._def.args.safeParse(l,i);if(!u.success)throw new ge([r(l,u.error)]);let c=Reflect.apply(s,this,u.data),p=a._def.returns.safeParse(c,i);if(!p.success)throw new ge([o(c,p.error)]);return p.data})}}parameters(){return this._def.args}returnType(){return this._def.returns}args(...t){return new e({...this._def,args:Xe.create(t).rest(pt.create())})}returns(t){return new e({...this._def,returns:t})}implement(t){return this.parse(t)}strictImplement(t){return this.parse(t)}static create(t,n,r){return new e({args:t||Xe.create([]).rest(pt.create()),returns:n||pt.create(),typeName:L.ZodFunction,...z(r)})}},an=class extends U{get schema(){return this._def.getter()}_parse(t){let{ctx:n}=this._processInputParams(t);return this._def.getter()._parse({data:n.data,path:n.path,parent:n})}};an.create=(e,t)=>new an({getter:e,typeName:L.ZodLazy,...z(t)});var ln=class extends U{_parse(t){if(t.data!==this._def.value){let n=this._getOrReturnCtx(t);return v(n,{received:n.data,code:b.invalid_literal,expected:this._def.value}),j}return{status:"valid",value:t.data}}get value(){return this._def.value}};ln.create=(e,t)=>new ln({value:e,typeName:L.ZodLiteral,...z(t)});function lh(e,t){return new un({values:e,typeName:L.ZodEnum,...z(t)})}var un=class e extends U{_parse(t){if(typeof t.data!="string"){let n=this._getOrReturnCtx(t),r=this._def.values;return v(n,{expected:V.joinValues(r),received:n.parsedType,code:b.invalid_type}),j}if(this._cache||(this._cache=new Set(this._def.values)),!this._cache.has(t.data)){let n=this._getOrReturnCtx(t),r=this._def.values;return v(n,{received:n.data,code:b.invalid_enum_value,options:r}),j}return fe(t.data)}get options(){return this._def.values}get enum(){let t={};for(let n of this._def.values)t[n]=n;return t}get Values(){let t={};for(let n of this._def.values)t[n]=n;return t}get Enum(){let t={};for(let n of this._def.values)t[n]=n;return t}extract(t,n=this._def){return e.create(t,{...this._def,...n})}exclude(t,n=this._def){return e.create(this.options.filter(r=>!t.includes(r)),{...this._def,...n})}};un.create=lh;var cn=class extends U{_parse(t){let n=V.getValidEnumValues(this._def.values),r=this._getOrReturnCtx(t);if(r.parsedType!==C.string&&r.parsedType!==C.number){let o=V.objectValues(n);return v(r,{expected:V.joinValues(o),received:r.parsedType,code:b.invalid_type}),j}if(this._cache||(this._cache=new Set(V.getValidEnumValues(this._def.values))),!this._cache.has(t.data)){let o=V.objectValues(n);return v(r,{received:r.data,code:b.invalid_enum_value,options:o}),j}return fe(t.data)}get enum(){return this._def.values}};cn.create=(e,t)=>new cn({values:e,typeName:L.ZodNativeEnum,...z(t)});var Pt=class extends U{unwrap(){return this._def.type}_parse(t){let{ctx:n}=this._processInputParams(t);if(n.parsedType!==C.promise&&n.common.async===!1)return v(n,{code:b.invalid_type,expected:C.promise,received:n.parsedType}),j;let r=n.parsedType===C.promise?n.data:Promise.resolve(n.data);return fe(r.then(o=>this._def.type.parseAsync(o,{path:n.path,errorMap:n.common.contextualErrorMap})))}};Pt.create=(e,t)=>new Pt({type:e,typeName:L.ZodPromise,...z(t)});var Be=class extends U{innerType(){return this._def.schema}sourceType(){return this._def.schema._def.typeName===L.ZodEffects?this._def.schema.sourceType():this._def.schema}_parse(t){let{status:n,ctx:r}=this._processInputParams(t),o=this._def.effect||null,i={addIssue:s=>{v(r,s),s.fatal?n.abort():n.dirty()},get path(){return r.path}};if(i.addIssue=i.addIssue.bind(i),o.type==="preprocess"){let s=o.transform(r.data,i);if(r.common.async)return Promise.resolve(s).then(async a=>{if(n.value==="aborted")return j;let l=await this._def.schema._parseAsync({data:a,path:r.path,parent:r});return l.status==="aborted"?j:l.status==="dirty"?Yt(l.value):n.value==="dirty"?Yt(l.value):l});{if(n.value==="aborted")return j;let a=this._def.schema._parseSync({data:s,path:r.path,parent:r});return a.status==="aborted"?j:a.status==="dirty"?Yt(a.value):n.value==="dirty"?Yt(a.value):a}}if(o.type==="refinement"){let s=a=>{let l=o.refinement(a,i);if(r.common.async)return Promise.resolve(l);if(l instanceof Promise)throw new Error("Async refinement encountered during synchronous parse operation. Use .parseAsync instead.");return a};if(r.common.async===!1){let a=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});return a.status==="aborted"?j:(a.status==="dirty"&&n.dirty(),s(a.value),{status:n.value,value:a.value})}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(a=>a.status==="aborted"?j:(a.status==="dirty"&&n.dirty(),s(a.value).then(()=>({status:n.value,value:a.value}))))}if(o.type==="transform")if(r.common.async===!1){let s=this._def.schema._parseSync({data:r.data,path:r.path,parent:r});if(!Tt(s))return j;let a=o.transform(s.value,i);if(a instanceof Promise)throw new Error("Asynchronous transform encountered during synchronous parse operation. Use .parseAsync instead.");return{status:n.value,value:a}}else return this._def.schema._parseAsync({data:r.data,path:r.path,parent:r}).then(s=>Tt(s)?Promise.resolve(o.transform(s.value,i)).then(a=>({status:n.value,value:a})):j);V.assertNever(o)}};Be.create=(e,t,n)=>new Be({schema:e,typeName:L.ZodEffects,effect:t,...z(n)});Be.createWithPreprocess=(e,t,n)=>new Be({schema:t,effect:{type:"preprocess",transform:e},typeName:L.ZodEffects,...z(n)});var Oe=class extends U{_parse(t){return this._getType(t)===C.undefined?fe(void 0):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Oe.create=(e,t)=>new Oe({innerType:e,typeName:L.ZodOptional,...z(t)});var Qe=class extends U{_parse(t){return this._getType(t)===C.null?fe(null):this._def.innerType._parse(t)}unwrap(){return this._def.innerType}};Qe.create=(e,t)=>new Qe({innerType:e,typeName:L.ZodNullable,...z(t)});var pn=class extends U{_parse(t){let{ctx:n}=this._processInputParams(t),r=n.data;return n.parsedType===C.undefined&&(r=this._def.defaultValue()),this._def.innerType._parse({data:r,path:n.path,parent:n})}removeDefault(){return this._def.innerType}};pn.create=(e,t)=>new pn({innerType:e,typeName:L.ZodDefault,defaultValue:typeof t.default=="function"?t.default:()=>t.default,...z(t)});var dn=class extends U{_parse(t){let{ctx:n}=this._processInputParams(t),r={...n,common:{...n.common,issues:[]}},o=this._def.innerType._parse({data:r.data,path:r.path,parent:{...r}});return zn(o)?o.then(i=>({status:"valid",value:i.status==="valid"?i.value:this._def.catchValue({get error(){return new ge(r.common.issues)},input:r.data})})):{status:"valid",value:o.status==="valid"?o.value:this._def.catchValue({get error(){return new ge(r.common.issues)},input:r.data})}}removeCatch(){return this._def.innerType}};dn.create=(e,t)=>new dn({innerType:e,typeName:L.ZodCatch,catchValue:typeof t.catch=="function"?t.catch:()=>t.catch,...z(t)});var Hn=class extends U{_parse(t){if(this._getType(t)!==C.nan){let r=this._getOrReturnCtx(t);return v(r,{code:b.invalid_type,expected:C.nan,received:r.parsedType}),j}return{status:"valid",value:t.data}}};Hn.create=e=>new Hn({typeName:L.ZodNaN,...z(e)});var xC=Symbol("zod_brand"),zr=class extends U{_parse(t){let{ctx:n}=this._processInputParams(t),r=n.data;return this._def.type._parse({data:r,path:n.path,parent:n})}unwrap(){return this._def.type}},Wr=class e extends U{_parse(t){let{status:n,ctx:r}=this._processInputParams(t);if(r.common.async)return(async()=>{let i=await this._def.in._parseAsync({data:r.data,path:r.path,parent:r});return i.status==="aborted"?j:i.status==="dirty"?(n.dirty(),Yt(i.value)):this._def.out._parseAsync({data:i.value,path:r.path,parent:r})})();{let o=this._def.in._parseSync({data:r.data,path:r.path,parent:r});return o.status==="aborted"?j:o.status==="dirty"?(n.dirty(),{status:"dirty",value:o.value}):this._def.out._parseSync({data:o.value,path:r.path,parent:r})}}static create(t,n){return new e({in:t,out:n,typeName:L.ZodPipeline})}},fn=class extends U{_parse(t){let n=this._def.innerType._parse(t),r=o=>(Tt(o)&&(o.value=Object.freeze(o.value)),o);return zn(n)?n.then(o=>r(o)):r(n)}unwrap(){return this._def.innerType}};fn.create=(e,t)=>new fn({innerType:e,typeName:L.ZodReadonly,...z(t)});function oh(e,t){let n=typeof e=="function"?e(t):typeof e=="string"?{message:e}:e;return typeof n=="string"?{message:n}:n}function uh(e,t={},n){return e?Ot.create().superRefine((r,o)=>{let i=e(r);if(i instanceof Promise)return i.then(s=>{if(!s){let a=oh(t,r),l=a.fatal??n??!0;o.addIssue({code:"custom",...a,fatal:l})}});if(!i){let s=oh(t,r),a=s.fatal??n??!0;o.addIssue({code:"custom",...s,fatal:a})}}):Ot.create()}var CC={object:ye.lazycreate},L;(function(e){e.ZodString="ZodString",e.ZodNumber="ZodNumber",e.ZodNaN="ZodNaN",e.ZodBigInt="ZodBigInt",e.ZodBoolean="ZodBoolean",e.ZodDate="ZodDate",e.ZodSymbol="ZodSymbol",e.ZodUndefined="ZodUndefined",e.ZodNull="ZodNull",e.ZodAny="ZodAny",e.ZodUnknown="ZodUnknown",e.ZodNever="ZodNever",e.ZodVoid="ZodVoid",e.ZodArray="ZodArray",e.ZodObject="ZodObject",e.ZodUnion="ZodUnion",e.ZodDiscriminatedUnion="ZodDiscriminatedUnion",e.ZodIntersection="ZodIntersection",e.ZodTuple="ZodTuple",e.ZodRecord="ZodRecord",e.ZodMap="ZodMap",e.ZodSet="ZodSet",e.ZodFunction="ZodFunction",e.ZodLazy="ZodLazy",e.ZodLiteral="ZodLiteral",e.ZodEnum="ZodEnum",e.ZodEffects="ZodEffects",e.ZodNativeEnum="ZodNativeEnum",e.ZodOptional="ZodOptional",e.ZodNullable="ZodNullable",e.ZodDefault="ZodDefault",e.ZodCatch="ZodCatch",e.ZodPromise="ZodPromise",e.ZodBranded="ZodBranded",e.ZodPipeline="ZodPipeline",e.ZodReadonly="ZodReadonly"})(L||(L={}));var FC=(e,t={message:`Input not instance of ${e.name}`})=>uh(n=>n instanceof e,t),ch=At.create,ph=Xt.create,_C=Hn.create,EC=Qt.create,dh=en.create,SC=tn.create,TC=Un.create,AC=nn.create,OC=rn.create,PC=Ot.create,BC=pt.create,IC=Ve.create,jC=Vn.create,RC=dt.create,LC=ye.create,NC=ye.strictCreate,MC=on.create,$C=fi.create,zC=sn.create,WC=Xe.create,UC=mi.create,VC=Gn.create,GC=qn.create,qC=hi.create,HC=an.create,JC=ln.create,ZC=un.create,KC=cn.create,YC=Pt.create,XC=Be.create,QC=Oe.create,eF=Qe.create,tF=Be.createWithPreprocess,nF=Wr.create,rF=()=>ch().optional(),oF=()=>ph().optional(),iF=()=>dh().optional(),sF={string:e=>At.create({...e,coerce:!0}),number:e=>Xt.create({...e,coerce:!0}),boolean:e=>en.create({...e,coerce:!0}),bigint:e=>Qt.create({...e,coerce:!0}),date:e=>tn.create({...e,coerce:!0})};var aF=j;function gi(e,t=!1){let n=e.length,r=0,o="",i=0,s=16,a=0,l=0,u=0,c=0,p=0;function f(x,S){let G=0,R=0;for(;G<x||!S;){let _=e.charCodeAt(r);if(_>=48&&_<=57)R=R*16+_-48;else if(_>=65&&_<=70)R=R*16+_-65+10;else if(_>=97&&_<=102)R=R*16+_-97+10;else break;r++,G++}return G<x&&(R=-1),R}function m(x){r=x,o="",i=0,s=16,p=0}function y(){let x=r;if(e.charCodeAt(r)===48)r++;else for(r++;r<e.length&&Jn(e.charCodeAt(r));)r++;if(r<e.length&&e.charCodeAt(r)===46)if(r++,r<e.length&&Jn(e.charCodeAt(r)))for(r++;r<e.length&&Jn(e.charCodeAt(r));)r++;else return p=3,e.substring(x,r);let S=r;if(r<e.length&&(e.charCodeAt(r)===69||e.charCodeAt(r)===101))if(r++,(r<e.length&&e.charCodeAt(r)===43||e.charCodeAt(r)===45)&&r++,r<e.length&&Jn(e.charCodeAt(r))){for(r++;r<e.length&&Jn(e.charCodeAt(r));)r++;S=r}else p=3;return e.substring(x,S)}function w(){let x="",S=r;for(;;){if(r>=n){x+=e.substring(S,r),p=2;break}let G=e.charCodeAt(r);if(G===34){x+=e.substring(S,r),r++;break}if(G===92){if(x+=e.substring(S,r),r++,r>=n){p=2;break}switch(e.charCodeAt(r++)){case 34:x+='"';break;case 92:x+="\\";break;case 47:x+="/";break;case 98:x+="\b";break;case 102:x+="\f";break;case 110:x+=`
76
+ `;break;case 114:x+="\r";break;case 116:x+=" ";break;case 117:let _=f(4,!0);_>=0?x+=String.fromCharCode(_):p=4;break;default:p=5}S=r;continue}if(G>=0&&G<=31)if(Ur(G)){x+=e.substring(S,r),p=2;break}else p=6;r++}return x}function O(){if(o="",p=0,i=r,l=a,c=u,r>=n)return i=n,s=17;let x=e.charCodeAt(r);if(wl(x)){do r++,o+=String.fromCharCode(x),x=e.charCodeAt(r);while(wl(x));return s=15}if(Ur(x))return r++,o+=String.fromCharCode(x),x===13&&e.charCodeAt(r)===10&&(r++,o+=`
77
+ `),a++,u=r,s=14;switch(x){case 123:return r++,s=1;case 125:return r++,s=2;case 91:return r++,s=3;case 93:return r++,s=4;case 58:return r++,s=6;case 44:return r++,s=5;case 34:return r++,o=w(),s=10;case 47:let S=r-1;if(e.charCodeAt(r+1)===47){for(r+=2;r<n&&!Ur(e.charCodeAt(r));)r++;return o=e.substring(S,r),s=12}if(e.charCodeAt(r+1)===42){r+=2;let G=n-1,R=!1;for(;r<G;){let _=e.charCodeAt(r);if(_===42&&e.charCodeAt(r+1)===47){r+=2,R=!0;break}r++,Ur(_)&&(_===13&&e.charCodeAt(r)===10&&r++,a++,u=r)}return R||(r++,p=1),o=e.substring(S,r),s=13}return o+=String.fromCharCode(x),r++,s=16;case 45:if(o+=String.fromCharCode(x),r++,r===n||!Jn(e.charCodeAt(r)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return o+=y(),s=11;default:for(;r<n&&F(x);)r++,x=e.charCodeAt(r);if(i!==r){switch(o=e.substring(i,r),o){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return o+=String.fromCharCode(x),r++,s=16}}function F(x){if(wl(x)||Ur(x))return!1;switch(x){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function $(){let x;do x=O();while(x>=12&&x<=15);return x}return{setPosition:m,getPosition:()=>r,scan:t?$:O,getToken:()=>s,getTokenValue:()=>o,getTokenOffset:()=>i,getTokenLength:()=>r-i,getTokenStartLine:()=>l,getTokenStartCharacter:()=>i-c,getTokenError:()=>p}}function wl(e){return e===32||e===9}function Ur(e){return e===10||e===13}function Jn(e){return e>=48&&e<=57}var fh;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(fh||(fh={}));var uF=new Array(20).fill(0).map((e,t)=>" ".repeat(t)),Zn=200,cF={" ":{"\n":new Array(Zn).fill(0).map((e,t)=>`
78
+ `+" ".repeat(t)),"\r":new Array(Zn).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(Zn).fill(0).map((e,t)=>`\r
79
+ `+" ".repeat(t))}," ":{"\n":new Array(Zn).fill(0).map((e,t)=>`
80
+ `+" ".repeat(t)),"\r":new Array(Zn).fill(0).map((e,t)=>"\r"+" ".repeat(t)),"\r\n":new Array(Zn).fill(0).map((e,t)=>`\r
81
+ `+" ".repeat(t))}};var yi;(function(e){e.DEFAULT={allowTrailingComma:!1}})(yi||(yi={}));function mh(e,t=[],n=yi.DEFAULT){let r=null,o=[],i=[];function s(l){Array.isArray(o)?o.push(l):r!==null&&(o[r]=l)}return hh(e,{onObjectBegin:()=>{let l={};s(l),i.push(o),o=l,r=null},onObjectProperty:l=>{r=l},onObjectEnd:()=>{o=i.pop()},onArrayBegin:()=>{let l=[];s(l),i.push(o),o=l,r=null},onArrayEnd:()=>{o=i.pop()},onLiteralValue:s,onError:(l,u,c)=>{t.push({error:l,offset:u,length:c})}},n),o[0]}function hh(e,t,n=yi.DEFAULT){let r=gi(e,!1),o=[],i=0;function s(M){return M?()=>i===0&&M(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function a(M){return M?Y=>i===0&&M(Y,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter()):()=>!0}function l(M){return M?Y=>i===0&&M(Y,r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>o.slice()):()=>!0}function u(M){return M?()=>{i>0?i++:M(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter(),()=>o.slice())===!1&&(i=1)}:()=>!0}function c(M){return M?()=>{i>0&&i--,i===0&&M(r.getTokenOffset(),r.getTokenLength(),r.getTokenStartLine(),r.getTokenStartCharacter())}:()=>!0}let p=u(t.onObjectBegin),f=l(t.onObjectProperty),m=c(t.onObjectEnd),y=u(t.onArrayBegin),w=c(t.onArrayEnd),O=l(t.onLiteralValue),F=a(t.onSeparator),$=s(t.onComment),x=a(t.onError),S=n&&n.disallowComments,G=n&&n.allowTrailingComma;function R(){for(;;){let M=r.scan();switch(r.getTokenError()){case 4:_(14);break;case 5:_(15);break;case 3:_(13);break;case 1:S||_(11);break;case 2:_(12);break;case 6:_(16);break}switch(M){case 12:case 13:S?_(10):$();break;case 16:_(1);break;case 15:case 14:break;default:return M}}}function _(M,Y=[],mt=[]){if(x(M),Y.length+mt.length>0){let Xr=r.getToken();for(;Xr!==17;){if(Y.indexOf(Xr)!==-1){R();break}else if(mt.indexOf(Xr)!==-1)break;Xr=R()}}}function h(M){let Y=r.getTokenValue();return M?O(Y):(f(Y),o.push(Y)),R(),!0}function g(){switch(r.getToken()){case 11:let M=r.getTokenValue(),Y=Number(M);isNaN(Y)&&(_(2),Y=0),O(Y);break;case 7:O(null);break;case 8:O(!0);break;case 9:O(!1);break;default:return!1}return R(),!0}function I(){return r.getToken()!==10?(_(3,[],[2,5]),!1):(h(!1),r.getToken()===6?(F(":"),R(),je()||_(4,[],[2,5])):_(5,[],[2,5]),o.pop(),!0)}function k(){p(),R();let M=!1;for(;r.getToken()!==2&&r.getToken()!==17;){if(r.getToken()===5){if(M||_(4,[],[]),F(","),R(),r.getToken()===2&&G)break}else M&&_(6,[],[]);I()||_(4,[],[2,5]),M=!0}return m(),r.getToken()!==2?_(7,[2],[]):R(),!0}function se(){y(),R();let M=!0,Y=!1;for(;r.getToken()!==4&&r.getToken()!==17;){if(r.getToken()===5){if(Y||_(4,[],[]),F(","),R(),r.getToken()===4&&G)break}else Y&&_(6,[],[]);M?(o.push(0),M=!1):o[o.length-1]++,je()||_(4,[],[4,5]),Y=!0}return w(),M||o.pop(),r.getToken()!==4?_(8,[4],[]):R(),!0}function je(){switch(r.getToken()){case 3:return se();case 1:return k();case 10:return h(!0);default:return g()}}return R(),r.getToken()===17?n.allowEmptyContent?!0:(_(4,[],[]),!1):je()?(r.getToken()!==17&&_(9,[],[]),!0):(_(4,[],[]),!1)}var gh;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(gh||(gh={}));var yh;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(yh||(yh={}));var vl=mh;var bh;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(bh||(bh={}));q();var Dh=Z.object({name:Z.string(),main:Z.string(),compatibility_date:Z.string(),compatibility_flags:Z.array(Z.string()).optional(),placement:Z.object({mode:Z.string()}).passthrough().optional(),assets:Z.object({directory:Z.string(),binding:Z.string().optional()}).passthrough().optional(),d1_databases:Z.array(Z.object({database_name:Z.string(),database_id:Z.string(),binding:Z.string(),migrations_dir:Z.string().optional()}).passthrough()).default([]),kv_namespaces:Z.array(Z.object({binding:Z.string(),id:Z.string()}).passthrough()).default([]),r2_buckets:Z.array(Z.object({binding:Z.string(),bucket_name:Z.string()}).passthrough()).default([])}).passthrough();function wh(e,t="wrangler.json"){let n=be.join(e,t);if(!te.existsSync(n)){if(t.endsWith(".json"))return d.warn(`/${t} not found, checking for /${t}c`),wh(e,t+"c");d.warn(`/${t} not found`);return}let r=te.readFileSync(n,"utf8");d.info(`reading /${t}...`);let o;try{o=vl(r)}catch(i){d.error(`/${t} loaded but could not parse as JSONC: ${i}`);return}try{let i=Dh.parse(o);return d.info(`successfully loaded /${t}`),i}catch(i){d.error(`/${t} valid JSONC but schema validation failed: ${i}`);return}}function vh(e,t,n={}){if(!te.existsSync(e))return 0;te.mkdirSync(t,{recursive:!0});let r=te.readdirSync(e,{withFileTypes:!0}),o=0;for(let i of r){if(n.exclude&&i.name===n.exclude)continue;let s=be.join(e,i.name),a=be.join(t,i.name);i.isDirectory()?o+=vh(s,a,n):(te.copyFileSync(s,a),o++)}return o}async function kh(e,t){let n=null,r=null,o=be.join(t,"wrangler.json"),i=be.join(t,"wrangler.jsonc");te.existsSync(o)?(n=o,r=".json"):te.existsSync(i)&&(n=i,r=".jsonc"),n&&r&&(d.info(`saving user-provided wrangler JSON as /clouduser.wrangler${r}...`),te.copyFileSync(n,be.join(t,`clouduser.wrangler${r}`)));let s=n?wh(t,be.basename(n)):null,a=be.join(__dirname,e.config.wrangler_template_path),l=be.join(t,"wrangler.json");if(!te.existsSync(a))throw new Error(`Wrangler template not found at ${a}. Make sure the template is properly copied during build.`);if(d.info(`copying template /templates/${e.framework}/wrangler.${e.framework}.json to /wrangler.json`),te.copyFileSync(a,l),!s)return;let u=JSON.parse(te.readFileSync(l,"utf8"));if(s.kv_namespaces&&s.kv_namespaces.length>0&&(u.kv_namespaces=s.kv_namespaces,d.info(`merged ${s.kv_namespaces.length} KV namespace(s) into template`)),s.r2_buckets&&s.r2_buckets.length>0&&(u.r2_buckets=s.r2_buckets,d.info(`merged ${s.r2_buckets.length} R2 bucket(s) into template`)),s.d1_databases&&s.d1_databases.length>0&&(u.d1_databases=s.d1_databases,d.info(`merged ${s.d1_databases.length} D1 database(s) into template`)),te.writeFileSync(l,JSON.stringify(u,null,2)),s.d1_databases.length!==0)for(let c in s.d1_databases){let p=s.d1_databases[c];if(!p.migrations_dir){d.info(`skipping migrations for database ${c} in wrangler.json; migrations dir is not defined`);continue}let f=p.migrations_dir,m=be.join(t,f);if(!te.existsSync(m)){d.info(`skipping migrations for database ${c} in wrangler.json; migrations dir (/${f}) does not exist`);continue}let y=be.join(t,"clouduser","migrations",f),w=vh(m,y);w>0?d.info(`copied ${w} migrations to /clouduser/migrations/${f}`):d.info(`skipping migrations for database ${c} in wrangler.json; migrations dir (/${f}) is empty`)}}function bF(e){if(!/^[a-z0-9-]+$/.test(e))throw new Error(`Invalid object storage bucket name ${JSON.stringify(e)}: Only lowercase letters, numbers, and hyphens are allowed.`);if(e.startsWith("-")||e.endsWith("-"))throw new Error(`Invalid object storage bucket name "${e}": Cannot begin or end with a hyphen.`);if(e.length>27)throw new Error(`Invalid object storage bucket name "${e}": Must be 27 characters or fewer (currently ${e.length} characters).`)}function xh(e){let t=null;for(let i of[".json",".jsonc"]){let s=be.join(e,`clouduser.wrangler${i}`);if(te.existsSync(s)){t=s;break}}if(!t)return;let n=te.readFileSync(t,"utf8"),r;try{r=vl(n)}catch(i){throw new Error(`Failed to parse wrangler config at ${t} as JSONC: ${i}`)}let o=Dh.parse(r);if(o.d1_databases&&o.d1_databases.length>0&&o.d1_databases.length>5)throw new Error(`Too many D1 databases configured: ${o.d1_databases.length}. Maximum allowed is 5.`);if(o.kv_namespaces&&o.kv_namespaces.length>0&&o.kv_namespaces.length>5)throw new Error(`Too many KV namespaces configured: ${o.kv_namespaces.length}. Maximum allowed is 5.`);if(o.r2_buckets&&o.r2_buckets.length>0){if(o.r2_buckets.length>5)throw new Error(`Too many R2 buckets configured: ${o.r2_buckets.length}. Maximum allowed is 5.`);d.info(`validating ${o.r2_buckets.length} object storage bucket name(s)...`);for(let i of o.r2_buckets)bF(i.bucket_name)}}q();Ge();ce();nt();async function Fh(e,t={}){let n=t.projectPath||process.cwd(),r=Date.now(),o=N.join(n,".tmp",`webflow-build-${r}`),i=t.outputDir||N.join(o,"output"),s=t.mountPath||"/app",a=Date.now(),l=xl(n),u=t.telemetry;await u?.sendUsage("cloud_build_start",{framework:e.framework,buildCommand:e.config.build_command,deploymentType:e.config.deployment_type,mountPath:s,cloudflareBindings:l}),P.mkdirSync(o,{recursive:!0});try{d.info(W.green(`--- \u{1F4E6} Installing dependencies ------------------------------------
82
+ `)),await DF(n,e.framework,t.telemetry),d.info(W.green(`--- \u{1F527} Setting up framework configuration ----------------------
83
+ `)),await wF(n,e,s,t.deployUrl,t.environmentId),d.info(W.green(`--- \u{1F527} Setting up wrangler configuration -----------------------
84
+ `)),await kh(e,n),xh(n),d.info(W.green(`--- \u{1F3D7}\uFE0F Building app -----------------------------------------------
85
+ `)),d.info(`running ${e.config.build_command}...`),await vF(n,e.config.build_command,t.telemetry),d.info(W.green(`--- \u{1F9EA} Creating wrangler dry-run ----------------------------------
86
+ `)),await kF(n,i),d.info(W.green(`--- \u{1F4C1} Copying assets ------------------------------------------
87
+ `)),await xF(n,i,e,s),d.info(W.green(`--- \u{1F4E6} Creating tarball -----------------------------------------
88
+ `));let c=await CF(i),p=Date.now()-a;return d.info(`${me} Build completed in ${(p/1e3).toFixed(1)}s`),await u?.sendUsage("cloud_build_success",{duration:p,framework:e.framework,buildCommand:e.config.build_command,deploymentType:e.config.deployment_type,mountPath:s,cloudflareBindings:l}),c}catch(c){let p=Date.now()-a;throw await u?.sendError(c instanceof Error?c:new Error(String(c)),"cloud_build_failure",{duration:p,framework:e.framework,buildCommand:e.config.build_command,deploymentType:e.config.deployment_type,mountPath:s,cloudflareBindings:l}),c}}function xl(e){let t=N.join(e,"wrangler.json");if(!P.existsSync(t))return{hasKV:!1,hasD1:!1,hasR2:!1,hasVars:!1,kvCount:0,d1Count:0,r2Count:0,varCount:0};try{let n=JSON.parse(P.readFileSync(t,"utf8")),r=n.kv_namespaces||[],o=n.d1_databases||[],i=n.r2_buckets||[],s=n.vars||{};return{hasKV:r.length>0,hasD1:o.length>0,hasR2:i.length>0,hasVars:Object.keys(s).length>0,kvCount:r.length,d1Count:o.length,r2Count:i.length,varCount:Object.keys(s).length}}catch(n){return console.debug("Failed to parse wrangler.json for bindings detection:",n),{hasKV:!1,hasD1:!1,hasR2:!1,hasVars:!1,kvCount:0,d1Count:0,r2Count:0,varCount:0}}}function _h(e){try{let t=N.dirname(e);t.includes(".tmp/webflow-build-")&&(d.info(W.green(`--- \u{1F9F9} Cleaning up build artifacts... -----------------
89
+ `)),P.rmSync(t,{recursive:!0,force:!0}))}catch(t){d.warn(`Warning: Failed to clean up build artifacts: ${t}`)}}function Eh(e,t){try{if(!t.config.config_template_path)return;let n=N.join(__dirname,t.config.config_template_path),r=N.basename(n,".template"),o=r.slice(0,r.lastIndexOf("."));d.info(W.grey(`--- \u{1F9F9} Reverting framework configuration changes ---------------
90
+ `));for(let s of["mjs","cjs","js","ts"]){let a=N.join(e,`clouduser.${o}.${s}`),l=N.join(e,`${o}.${s}`);if(P.existsSync(a)){d.info(`restoring /${o}.${s} from /clouduser.${o}.${s}...`),P.existsSync(l)&&P.unlinkSync(l),P.renameSync(a,l);break}}for(let s of[".jsonc",".json"]){let a=N.join(e,`clouduser.wrangler${s}`);if(P.existsSync(a)){d.info(`restoring user wrangler${s} from backup...`);let l=N.join(e,"wrangler.json");P.existsSync(l)&&P.unlinkSync(l);let u=N.join(e,`wrangler${s}`);P.renameSync(a,u);break}}let i=N.join(e,"clouduser");P.existsSync(i)&&(d.info("cleaning up clouduser directory..."),P.rmSync(i,{recursive:!0,force:!0}));for(let s of t.config.additional_config_files||[]){let a=N.join(e,N.basename(s));P.existsSync(a)&&(d.info(`cleaning up additional config file ${a}...`),P.unlinkSync(a))}}catch(n){d.warn(`Warning: Failed to cleanup framework configuration: ${n}`)}}async function DF(e,t,n){let r=Date.now(),o=["--no-update-notifier","--no-progress"];try{if(t==="astro"){let a=N.join(e,"package.json"),l=JSON.parse(P.readFileSync(a,"utf8"));l.dependencies?.["@astrojs/react"]||l.devDependencies?.["@astrojs/react"]||(d.info("Warning: cosmic astro integration requires @astrojs/react and this project doesn't require it. Installing now..."),(0,Kn.execSync)("npm install --save @astrojs/react",{cwd:e,stdio:"inherit"}))}let i=N.join(e,"package-lock.json");P.existsSync(i)?(d.info("Running npm ci..."),(0,Kn.execSync)(`npm ci ${o.join(" ")}`,{cwd:e,stdio:"inherit"})):(d.info("Warning: No package-lock.json found, installing dependencies with npm install"),(0,Kn.execSync)(`npm install ${o.join(" ")}`,{cwd:e,stdio:"inherit"}));let s=Date.now()-r;await n?.sendUsage("cloud_install_dependencies_success",{duration:s,framework:t,hasPackageLock:P.existsSync(N.join(e,"package-lock.json"))})}catch(i){let s=Date.now()-r;throw await n?.sendError(i instanceof Error?i:new Error(String(i)),"cloud_install_dependencies_failure",{duration:s,framework:t,hasPackageLock:P.existsSync(N.join(e,"package-lock.json"))}),i}}async function wF(e,t,n,r,o){if(d.info(`Framework: ${t.framework}`),d.info(`Mount path: ${n}`),d.info(`Deployment type: ${t.config.deployment_type}`),!t.config.config_template_path)return;let i=N.join(__dirname,t.config.config_template_path),s=N.basename(i,".template"),a=s.slice(0,s.lastIndexOf("."));for(let p of["mjs","cjs","js","ts"]){let f=N.join(e,`${a}.${p}`);if(P.existsSync(f)){let m=N.join(e,`clouduser.${a}.${p}`);d.info(`renaming user base config /${a}.${p} to /clouduser.${a}.${p}...`),P.renameSync(f,m);break}}let l=N.join(e,s);d.info(`rendering override config from /templates/${t.framework}/${s}.template to /${s}`);let c=P.readFileSync(i,"utf8").replace(/\$\{([^}]+)\}/g,(p,f)=>({COSMIC_MOUNT_PATH:n,COSMIC_DEPLOY_URL:r||(o?`https://${o}.wf-app-prod.cosmic.webflow.services`:"")})[f]||p);P.writeFileSync(l,c);for(let p of t.config.additional_config_files||[]){let f=N.join(__dirname,p);P.statSync(f,{throwIfNoEntry:!1})?(d.info(`copying additional config file /${p} to ${N.join(e,N.basename(p))}`),P.copyFileSync(f,N.join(e,N.basename(p)))):d.warn(`additional config file /${p} does not exist; skipping`)}}async function vF(e,t,n){let r=Date.now();try{let o=t.split(" "),i=o[0],s=o.slice(1);(0,Kn.execSync)(`npx ${i} ${s.join(" ")}`,{cwd:e,stdio:"inherit"});let a=Date.now()-r;await n?.sendUsage("cloud_build_command_success",{duration:a,buildCommand:t})}catch(o){let i=Date.now()-r;throw await n?.sendError(o instanceof Error?o:new Error(String(o)),"cloud_build_command_failure",{duration:i,buildCommand:t}),new Error(`Build command failed: ${t}`)}}async function kF(e,t){P.mkdirSync(t,{recursive:!0});let n=N.join(e,"wrangler.json"),r=N.join(e,"wrangler.jsonc");if(!P.existsSync(n)&&!P.existsSync(r))throw new Error("Missing wrangler configuration: wrangler.json or wrangler.jsonc file is required");(0,Kn.execSync)(`npx wrangler deploy --dry-run --outdir="${t}"`,{cwd:e,stdio:"inherit"})}async function xF(e,t,n,r){let o=n.config.assets_path,i=n.config.assets_exclude_path,s=r.replace(/\/+$/,"").replace(/^\/+/,"");if(n.framework==="nextjs"||n.framework==="astro"){let p=N.join(e,o);if(P.existsSync(p)&&P.statSync(p).isDirectory()){let m=P.readdirSync(p,{withFileTypes:!0}).find(y=>!(!y.isDirectory()||i&&y.name===i||n.framework==="astro"&&(y.name==="_routes.json"||y.name==="_worker.js")));m&&(o=`${o}/${m.name}`)}}let a=N.join(t,"assets",s||"");P.mkdirSync(a,{recursive:!0});let l=N.join(e,o);if(P.existsSync(l)&&P.statSync(l).isDirectory()){d.info(`copying assets from /${o} to output/assets...`);try{i?(d.info(`excluding ${i}`),Sh(l,a,i)):kl(l,a)}catch(p){d.error(p,{prefix:"Failed to copy assets:"})}}else d.info("No assets to copy or assets directory not found");let u=N.join(e,"webflow.json");P.existsSync(u)&&P.copyFileSync(u,N.join(t,"webflow.json"));let c=null;for(let p of[".json",".jsonc"]){let f=N.join(e,`clouduser.wrangler${p}`);if(P.existsSync(f)){c=f;break}}if(c){d.info("including user wrangler config in output..."),P.copyFileSync(c,N.join(t,"clouduser.wrangler.json"));let p=N.join(e,"clouduser","migrations");if(P.existsSync(p)){d.info("copying migrations from clouduser/migrations to output/migrations...");let f=N.join(t,"migrations");kl(p,f)}}}async function CF(e){let t=`${e}.tar.gz`;try{return await Ch.create({gzip:!0,file:t,cwd:N.dirname(e)},[N.basename(e)]),d.info(`Tarball created: ${t}`),t}catch(n){throw new T(n,{prefix:"Failed to create tarball:"})}}function kl(e,t){P.mkdirSync(t,{recursive:!0});let n=P.readdirSync(e,{withFileTypes:!0});for(let r of n){let o=N.join(e,r.name),i=N.join(t,r.name);r.isDirectory()?kl(o,i):P.copyFileSync(o,i)}}function Sh(e,t,n){P.mkdirSync(t,{recursive:!0});let r=P.readdirSync(e,{withFileTypes:!0});for(let o of r){if(o.name===n)continue;let i=N.join(e,o.name),s=N.join(t,o.name);o.isDirectory()?Sh(i,s,n):P.copyFileSync(i,s)}}De();ue();q();var FF="DUPLICATE_ENVIRONMENT_MOUNT",_F="ENVIRONMENT_MOUNT_MISMATCH",EF="DUPLICATE_ENVIRONMENT_BRANCH",SF="INVALID_MOUNT_PATH_FORMAT",TF="INVALID_PROJECT_ID",Th={[FF]:"An environment with this mount path already exists for this site. Please choose a different mount path.",[_F]:"This environment already exists with a different mount path. Please create a new environment or use the existing environment's mount path.",[EF]:"An environment with this branch already exists for this project.",[SF]:"Mount path format is invalid. It must start with a / and be followed by at least one character (e.g., /app).",[TF]:"Invalid project ID. This project may have been deleted or belongs to a different site. Please remove the 'project_id' from your webflow.json file and redeploy to create a new project."};function Ah(e){let t={timestamp:new Date().toISOString()};e instanceof Error?(t.code=e.name,t.msg=e.message,t.stack=e.stack):typeof e=="object"&&e!==null&&(t.code=e.code,t.msg=e.msg,t.status=e.status);let n=t.msg||"";d.error(`Error Details: ${JSON.stringify({timestamp:t.timestamp,code:t.code,message:t.msg,status:t.status,stack:t.stack},null,2)}`);for(let r in Th)if(n.includes(r))return Th[r];return`An unknown error occurred. Error code: ${t.code||"N/A"}, Message: ${t.msg||"No message provided"}`}var Yn=D(require("fs")),Cl=require("child_process");q();ce();nt();var Oh=104857600;function Ph(e){if(e===0)return"0 B";let t=1024,n=["B","KB","MB","GB"],r=Math.floor(Math.log(e)/Math.log(t));return`${parseFloat((e/Math.pow(t,r)).toFixed(1))} ${n[r]}`}function AF(){try{let e=(0,Cl.execSync)("git rev-parse HEAD",{encoding:"utf-8",stdio:["pipe","pipe","pipe"]}).trim();if(!/^[0-9a-f]{40}$/.test(e))throw new Error("Invalid commit hash format");try{return(0,Cl.execSync)("git status --porcelain --untracked-files=no",{encoding:"utf-8",stdio:["pipe","pipe","pipe"]}).trim().length>0?`git@${e}+dirty`:`git@${e}`}catch{return`git@${e}`}}catch{return`noversion@${new Date().toISOString()}`}}async function Fl(e,t,n){let r=await fetch(`${oe}${t}`,{method:n.method,headers:{Authorization:`Bearer ${e}`,"Content-Type":"application/json"},body:n.body?JSON.stringify(n.body):void 0});if(!r.ok){let o=await r.text(),i;try{i=JSON.parse(o)}catch{i={msg:o}}let s=Ah(i);throw new Error(s)}return r.json()}async function Bh(e,t,n,r){let{manifest:o}=ne(),i=o.cloud||{},s=i.project_id,a=i.framework;if(!a)throw new T("No framework specified in webflow.json. Please ensure your webflow.json has a cloud.framework property");let l=await OF(e,{siteId:e.siteId,apiToken:e.accessToken,framework:a,mountPath:n,environment:t,projectId:s,projectName:r?.projectName,description:r?.description,directory:r?.directory,version:AF()});return!s&&l.project_id&&(d.info("\u{1F4DD} Updating webflow.json with project ID..."),le({cloud:{...i,project_id:l.project_id}})),l}async function OF(e,t){let{siteId:n,framework:r,mountPath:o,environment:i,version:s,projectId:a,projectName:l,description:u,directory:c}=t,p={framework:r,mount_path:o,environment:i,version:s};return a&&(p.project_id=a),l&&(p.project_name=l),u&&(p.description=u),c&&(p.app_path=c),Fl(e.accessToken,`/cosmic/${n}/cli-deploy-init`,{method:"POST",body:p})}async function Ih(e,t){return Fl(e.accessToken,`/cosmic/${e.siteId}/cli-project-environments/${t}`,{method:"GET"})}async function jh(e){return Fl(e.accessToken,`/cosmic/${e.siteId}/cli-projects`,{method:"GET"})}async function Rh(e,t){if(!Yn.existsSync(e))throw new Error(`Tarball not found at ${e}`);let n=Yn.statSync(e);if(n.size>Oh)throw new Error(`Build output is too large (${Ph(n.size)}). Maximum allowed size is ${Ph(Oh)}.`);let r=Yn.readFileSync(e),o=JSON.parse(t);if(!o.fields)throw new Error("Upload URL is missing fields property");let i=new FormData;Object.entries(o.fields).forEach(([l,u])=>{i.append(l,u)});let s=new Blob([r],{type:"application/gzip"});i.append("file",s,"output.tar.gz");let a=await fetch(o.url,{method:"POST",body:i});if(!a.ok){let l=await a.text();throw new T(l,{prefix:`${Ne} Upload failed with response:`})}}async function Lh(e,t){if(!e||e==="undefined")throw new T("Completion URL is undefined or invalid");let n=new URL(e);t&&n.searchParams.set("failed","true");let r=await fetch(n.toString(),{method:"GET"});if(!r.ok)throw new T(`Failed to trigger deployment: ${r.status} ${r.statusText}`)}var Nh=require("webflow-api");ue();ue();ce();function _l(e){return new Nh.WebflowClient({accessToken:e,environment:{base:`${oe}/v2`,dataApi:`${oe}/v2`,contentDeliveryApi:`${fo}/v2`}})}async function Vr(e,t){try{let r=await _l(e).sites.get(t);return{id:r.id||t,displayName:r.displayName||"Unknown Site",shortName:r.shortName||"unknown-site",customDomains:r.customDomains?.map(o=>({id:o.id||"",url:o.url||""}))||[]}}catch(n){throw new T(n,{prefix:"Error fetching site details:"})}}async function El(e,t){try{return{customDomains:(await _l(e).sites.getCustomDomain(t)).customDomains?.map(o=>({id:o.id||"",url:o.url||""}))||[]}}catch(n){throw new T(n,{prefix:"Error fetching custom domains:"})}}async function Sl(e){try{let t=await fetch(`https://${e}/manifest.json`);if(!t.ok)throw new Error(`HTTP ${t.status}: ${t.statusText}`);return await t.json()}catch(t){throw new T(t,{prefix:`Failed to fetch manifest from ${e}:`})}}function Tl(e,t,n){return e.cosmic&&Array.isArray(e.cosmic)?e.cosmic.some(r=>{if(r.mountPath!==t)return!1;if(!n)return!0;if(r.workerUrl)try{return new URL(r.workerUrl).hostname.split(".")[0]===n}catch{return!1}return!1}):!1}async function Mh(e,t,n){try{let r=_l(e),o=await Vr(e,t),i=[];if(n?.domains&&n.domains.length>0)for(let s of n.domains){let a=o.customDomains?.find(l=>l.url===s);a?.id&&i.push(a.id)}await r.sites.publish(t,{customDomains:i,publishToWebflowSubdomain:n?.publishToWebflowSubdomain??!0})}catch(r){throw new T(r,{prefix:"Error publishing site:"})}}it();cs();q();async function $h(e,t,n){let{siteId:r,accessToken:o}=e,i=Dn("Validating mount path configuration...").start();try{let s=await Vr(o,r),a=await El(o,r),l=[`${s.shortName}.webflow.io`,...a.customDomains?.map(y=>y.url)||[]],u=0;i.text=`Validating ${l.length} domain(s) for mount path: ${t}... (0/${l.length})`;let c=l.map(async y=>{try{let w=await Sl(y),O=Array.isArray(w.cosmic)?w.cosmic.map($=>$.mountPath).filter($=>typeof $=="string"):[],F=Tl(w,t,n);return{domain:y,mountPaths:O,isValid:F===!0}}catch(w){return{domain:y,mountPaths:[],isValid:!1,error:w instanceof Error?w.message:String(w)}}finally{u++,i.text=`Validating ${l.length} domain(s) for mount path: ${t}... (${u}/${l.length})`}}),p=await Promise.all(c),f=p.some(y=>!y.isValid),m=p.every(y=>y.isValid);return i.succeed("Mount path validation completed"),{isValid:m,domains:p,needsPublishing:f}}catch(s){throw i.fail("Mount path validation failed"),s}}async function zh(e,t,n){let{siteId:r,accessToken:o}=e;try{let i=await Vr(o,r),s=await El(o,r),l=[`${i.shortName}.webflow.io`,...s.customDomains?.map(c=>c.url)||[]].map(async c=>{try{let p=await Sl(c),f=Tl(p,t,n);return{domain:c,isValid:f}}catch(p){return d.debug(`Could not verify mount path for ${c}: ${p}`),{domain:c,isValid:!1}}});return(await Promise.all(l)).filter(c=>c.isValid).map(c=>c.domain)}catch(i){return d.debug(`Error getting valid domains: ${i}`),[]}}function Wh(e,t){return e.map(n=>`${n.startsWith("localhost")||n.startsWith("127.0.0.1")?"http":"https"}://${n}${t}`)}async function Uh(e){let t=e.map(r=>({name:r,value:r,checked:!0})),n=await yo({message:"Select which domains you want to publish to update the mount path configuration:",choices:t,validate:r=>r.length===0?"Please select at least one domain to publish to.":!0});return n??[]}async function Vh(){return await ot({message:"The mount path doesn't match on some domains. Would you like to publish the site to update the configuration?",default:!0})}async function Al(e,t){let{siteId:n,accessToken:r}=e,o=Dn(`Publishing site to ${t.length} domain(s)...`).start();try{let s=`${(await Vr(r,n)).shortName}.webflow.io`,a=t.includes(s),l=t.filter(u=>u!==s);await Mh(r,n,{domains:l,publishToWebflowSubdomain:a}),o.succeed(`Site published successfully to selected domains: ${t.join(", ")}`)}catch{throw o.fail("Failed to publish site"),new Error("Failed to publish site")}}De();q();Ge();ue();_e();ce();nt();var bi=async()=>{try{let e=await hl();return Object.keys(e)}catch(e){return d.error(e,{prefix:"Failed to get available scaffolds:"}),[]}},Ol=async(e,t,n=ai,r)=>{let o=`./${e}`,i=await hl(),s=null,a=!1;try{let l=Date.now(),{manifest:u}=ne(),c=await Vt(u,{site:r}),p=c.accessToken,f=c.siteId;if(s=we.forCloud({authToken:p,siteId:f}),await ml(e,t,n,i,f,p),process.chdir(o),f){d.info("Running devlink sync to fetch your Webflow components...");try{await PF({site:f,apiToken:p}),a=!0}catch(y){d.error(y,{prefix:"Failed to run devlink sync:"}),d.info("You can manually run 'npx webflow devlink sync' later to sync your components.")}}let m=Date.now()-l;await s?.sendUsage("project_init",{scaffold:n,scaffoldName:n,devlinkSyncStatus:a,totalDuration:m,mountPath:t}),Gh(e)}catch(l){throw d.error(l,{prefix:"Error during Webflow authentication:"}),await ml(e,t,n,i),process.chdir(o),d.error("Project scaffold was created, but authentication failed."),d.error("To set up Webflow credentials later, run:"),d.error(" webflow auth login"),Gh(e),new T(l,{skipLogging:!0})}},PF=async e=>{let{syncComponents:t}=await Promise.resolve().then(()=>(dl(),Hm));await t(void 0,{site:e.site,apiToken:e.apiToken})},BF=e=>{if(e?.skipMountPathCheck!==void 0)return e.skipMountPathCheck;try{let{manifest:t}=ne();return t.cloud?.skipMountPathCheck===!0}catch{return!1}},IF=async(e,t,n,r)=>{d.info("\u{1F50D} Validating mount path configuration...");let o=await $h(e,t,n);if(o.isValid)d.info(`${me} Mount path validation passed`);else if(d.info(`
91
+ \u{1F4CB} Mount path validation results:`),o.domains.forEach(i=>{let s=i.isValid?me:Ne,a=i.isValid?`(mountPath: ${i.mountPaths[0]})`:"(no matching mountPath)";d.info(`${s} ${i.domain} ${a}`),i.error&&d.debug(` Error: ${i.error}`)}),o.needsPublishing)if(r){d.info("\u{1F680} Auto-publishing site to update mount path configuration...");let i=o.domains.filter(s=>!s.isValid).map(s=>s.domain);await Al(e,i)}else if(await Vh()&&gt()){let s=o.domains.filter(l=>!l.isValid).map(l=>l.domain),a=await Uh(s);await Al(e,a)}else d.warn("\u26A0\uFE0F Continuing with deployment without publishing...")},jF=async(e,t,n,r)=>{d.info(`
92
+ \u{1F3D7}\uFE0F Building project...`);let o=await Fh(e,{mountPath:n,telemetry:r?.telemetry,deployUrl:t.deploy_url,environmentId:t.environment_id});d.info("\u{1F4E4} Uploading build artifacts...");let i=Date.now();await Rh(o,t.upload_url);let s=Date.now()-i;return d.info(`${me} Upload completed in ${(s/1e3).toFixed(1)}s`),o},RF=async(e,t,n)=>{d.success(`
93
+ \u{1F310} Your cloud app will soon be available at:`);try{let r=await zh(e,t,n),o=Wh(r,t);o.length>0?o.forEach(i=>{d.info(` ${i}`)}):d.warn(" No domains found with the correct mount path configuration yet.")}catch(r){d.warn(` Could not determine deployment links: ${r instanceof Error?r.message:r}`)}},LF=e=>{e.site_slug?d.success(`Visit your deployment:
94
+
95
+ ${Cn}/dashboard/sites/${e.site_slug}/webflow-cloud/projects/${e.project_id}/environments/${e.environment_id}/deployments/${e.deployment_id}`):d.info(`
96
+ Visit the webflow Cloud dashboard to view your deployment: https://webflow.com/dashboard/sites`)},NF=async(e,t,n,r)=>{try{await Lh(t.completion_url,!!r),r?d.error(`
97
+ ${Ne} Deployment failed due to build error.`):(d.success(`
98
+ ${me} Deployment triggered successfully!`),await RF(e,n,t.environment_id),LF(t))}catch(o){throw new T(o,{prefix:"Failed to trigger deployment:"})}},MF=(e,t)=>{e&&Eh(process.cwd(),e),t&&_h(t)},qh=async(e,t,n,r)=>{let o=null,i=null,s=Date.now(),a=null,l=null,u=xl(process.cwd()),c=r?.telemetry;await c?.sendUsage("cloud_deploy_start",{environment:t,mountPath:n,projectName:r?.projectName,hasDescription:!!r?.description,hasDirectory:!!r?.directory,cloudflareBindings:u});try{d.info("\u{1F527} Detecting framework..."),a=await th(),d.info(`Framework: ${a.framework}`),d.info(`Build command: ${a.config.build_command}`),d.info("\u{1F3D7}\uFE0F Building project..."),o=await Bh(e,t,n,r),BF(r)?d.info("\u23ED\uFE0F Skipping mount path validation..."):await IF(e,n,o.environment_id,r?.autoPublish),i=await jF(a,o,n,r),d.info(`Starting deployment process for environment: ${t} at mount path: ${n}`);let p=Date.now()-s;await c?.sendUsage("cloud_deploy_success",{duration:p,environment:t,mountPath:n,projectName:r?.projectName,hasDescription:!!r?.description,hasDirectory:!!r?.directory,framework:a.framework,buildCommand:a.config.build_command,cloudflareBindings:u})}catch(p){l=p instanceof Error?p:new Error(String(p)),d.error(l,{prefix:"Error during deployment initialization:"});let f=Date.now()-s;await c?.sendError(l,"cloud_deploy_failure",{duration:f,environment:t,mountPath:n,projectName:r?.projectName,cloudflareBindings:u,argv:process.argv.slice(2)})}finally{if(MF(a,i),o&&await NF(e,o,n,l),l)throw new T(l,{skipLogging:!0})}},Gh=e=>{d.info("--- "),d.info(W.bold.green("Get started with the following commands:")),d.info(` cd ${e}`),d.info(" npm install"),d.info(" npm run dev"),d.info(` webflow cloud deploy
115
99
 
116
100
  `),d.info("Run the following command to sync Webflow components when they update:"),d.info(` webflow devlink sync
117
- `),d.info("--- ")};Te();Ue();Yt();ut();G();ke();var gg=D(require("path"));function wn(e){if(!e||e.trim()==="")return"/";let t=gg.posix.normalize(e);return t.startsWith("/")||(t="/"+t),t.length>1&&t.endsWith("/")&&(t=t.slice(0,-1)),t=t.split("/").map((r,o)=>o===0?r:encodeURIComponent(r)).join("/"),t}function Bi(e){return!(!e||e.trim()===""||!e.startsWith("/")||e.includes(".."))}de();var yg=e=>{let t=e.command("cloud").description("Create and manage Webflow Cloud projects");t.command("create").description("Create a new Webflow Cloud project").argument("<name>","Project name").option("-f, --framework <framework>","Framework to use","nextjs").action(async(n,r)=>{let{framework:o}=r;if(!(await Ii()).find(a=>a===o)){d.error(`Framework ${o} not found`);return}await Jl(n,o,o)}),t.command("list").description("Get list of project templates that can be used for `init`").action(async()=>{let n=await Ii();d.info("Available project templates:"),n.length>0?n.forEach(r=>d.info(`- ${r}`)):d.info("No templates found.")}),t.command("init").description("Bootstrap a new Webflow Cloud project").option("-n, --project-name <name>","Project name").option("-f, --framework <framework>","Framework to use (e.g., astro, nextjs)").option("-m, --mount <mount>","Mount path (e.g., /app)").option("-s, --site-id <siteId>","Webflow site ID to connect to").action(async n=>{let r=process.stdin.isTTY,o=await Ii(),i={};if(r&&Ye()){if(!n.projectName){let p=await ye({message:"What would you like to name your project?",validate:m=>m.trim()===""?"Project name cannot be empty":!0});if(p==null)throw new S("When --no-input mode is enabled please provide the --project-name option or the cloud.project_id manifest field.");i.projectName=p}if(n.framework||(i.scaffoldName=await Ae({message:"Which framework would you like to use?",choices:o.map(p=>({name:p,value:p})),default:"astro"})),!n.mount){let p=await ye({message:"What path do you want to use locally? (e.g., /app)",default:"/app"});i.mountPath=wn(p)}}let s=n.projectName||i.projectName,a=n.framework||i.scaffoldName,u=n.mount||i.mountPath||"/app",l=n.siteId,c=wn(u);if(!s||typeof s!="string"||s.trim()==="")throw new S("--project-name cannot be empty");if(!a||typeof a!="string"||!o.includes(a)){let p=o.map(m=>`- ${m}`).join(`
118
- `);throw new S(`--framework "${a||"undefined"}" not found
101
+ `),d.info("--- ")};De();it();Gt();Dt();q();_e();var Hh=D(require("path"));function mn(e){if(!e||e.trim()==="")return"/";let t=Hh.posix.normalize(e);return t.startsWith("/")||(t="/"+t),t.length>1&&t.endsWith("/")&&(t=t.slice(0,-1)),t=t.split("/").map((r,o)=>o===0?r:encodeURIComponent(r)).join("/"),t}function Di(e){return!(!e||e.trim()===""||!e.startsWith("/")||e.includes(".."))}ce();var Jh=e=>{let t=e.command("cloud").description("Create and manage Webflow Cloud projects");t.command("create").description("Create a new Webflow Cloud project").argument("<name>","Project name").option("-f, --framework <framework>","Framework to use","nextjs").action(async(n,r)=>{let{framework:o}=r;if(!(await bi()).find(a=>a===o)){d.error(`Framework ${o} not found`);return}await Ol(n,o,o)}),t.command("list").description("Get list of project templates that can be used for `init`").action(async()=>{let n=await bi();d.info("Available project templates:"),n.length>0?n.forEach(r=>d.info(`- ${r}`)):d.info("No templates found.")}),t.command("init").description("Bootstrap a new Webflow Cloud project").option("-n, --project-name <name>","Project name").option("-f, --framework <framework>","Framework to use (e.g., astro, nextjs)").option("-m, --mount <mount>","Mount path (e.g., /app)").option("-s, --site-id <siteId>","Webflow site ID to connect to").action(async n=>{let r=process.stdin.isTTY,o=await bi(),i={};if(r&&gt()){if(!n.projectName){let p=await $e({message:"What would you like to name your project?",validate:f=>f.trim()===""?"Project name cannot be empty":!0});if(p==null)throw new T("When --no-input mode is enabled please provide the --project-name option or the cloud.project_id manifest field.");i.projectName=p}if(n.framework||(i.scaffoldName=await Ee({message:"Which framework would you like to use?",choices:o.map(p=>({name:p,value:p})),default:"astro"})),!n.mount){let p=await $e({message:"What path do you want to use locally? (e.g., /app)",default:"/app"});i.mountPath=mn(p)}}let s=n.projectName||i.projectName,a=n.framework||i.scaffoldName,l=n.mount||i.mountPath||"/app",u=n.siteId,c=mn(l);if(!s||typeof s!="string"||s.trim()==="")throw new T("--project-name cannot be empty");if(!a||typeof a!="string"||!o.includes(a)){let p=o.map(f=>`- ${f}`).join(`
102
+ `);throw new T(`--framework "${a||"undefined"}" not found
119
103
 
120
104
  Available frameworks:
121
- ${p}`)}if(typeof c!="string"||!Bi(c))throw new S("Invalid mount path: "+c);if(!l&&(!r||te()))throw new S("--site-id is required");await Jl(s,c,a,l)}),t.command("deploy").description("Deploy your Webflow Cloud project").option("-e, --environment <environment>","Environment name").option("-m, --mount <mount>","Mount path (e.g., /app)").option("-n, --project-name <name>","Project name (for new projects)").option("-d, --directory <path>","Project directory path (for new projects)").option("--description <description>","Project description (for new projects)").option("--skip-mount-path-check","Skip mount path checking").option("--auto-publish","Automatically publish site for mount path updates").action(async n=>{let r;try{let{siteId:o,accessToken:i}=Ve();r=he.forCloud({authToken:i,siteId:o})}catch(o){d.debug(`Failed to initialize telemetry: ${o}`)}try{if(n.directory)try{process.chdir(n.directory),d.info(`Changed directory to: ${n.directory}`)}catch(p){throw d.error(`Error: Could not change to directory ${n.directory}`),new S(p)}let{manifest:o}=oe(),s=(o.cloud||{}).project_id,a,u,l=n.projectName,c=n.description;if(n.environment&&n.mount){if(a=n.environment,u=wn(n.mount),!Bi(u))throw new S("Invalid mount path: "+u)}else{let p=[];if(!s){if(!l&&te())throw new S("When --no-input mode is enabled please provide the --project-name option or the cloud.project_id manifest field.");try{let f=await sg();if(f.projects.length>0){let y=await Ae({message:"Select a project to deploy to:",choices:[...f.projects.map(C=>({name:`${C.name} (${C.description||"No description"})`,value:C.id})),{name:"Create new project",value:null}]});y?(s=y,d.info("\u{1F4DD} Updating webflow.json with project ID..."),ae({cloud:{project_id:y}})):d.info("Creating a new project will be handled during deployment.")}else d.info("No existing projects found. A new project will be created during deployment.")}catch(f){d.warn("Could not fetch existing projects. A new project will be created during deployment."),d.warn(f instanceof Error?f.message:String(f))}}if(!s&&!l&&(l=await ye({message:"What would you like to name your new project?",default:"New Webflow Cloud Project",validate:f=>f.trim()===""?"Project name cannot be empty":!0})),s)try{let y=(await ig(s)).environments.map(C=>({name:`${C.branch} (${C.mount})`,value:{branch:C.branch,mount:C.mount}}));p.push(...y)}catch(f){throw new S(f,{prefix:"Error fetching project environments:"})}p.push({name:"Create new environment",value:null});let m=await Ae({message:"Select an environment to deploy to:",choices:p});if(m)a=m.branch,u=wn(m.mount);else if(n.environment?a=n.environment:a=await ye({message:"What environment would you like to deploy to?",default:"main",validate:f=>f.trim()===""?"Environment cannot be empty":!0}),n.mount)u=wn(n.mount);else{let f=await ye({message:"What path should this environment be mounted at? (e.g., /app)",default:"/app"});u=wn(f)}}if(!Bi(u))throw new S("Invalid mount path: "+u);await hg(a,u,{projectName:l,description:c,directory:n.directory,skipMountPathCheck:n.skipMountPathCheck,autoPublish:n.autoPublish,telemetry:r})}catch(o){throw new S(o,{prefix:"Error during deployment setup:"})}})};var gr=require("commander");var Xi=require("path"),mr=require("@webflow/data-types");pe();var bg=D(require("md5"));function ao(e,t,n){try{let r=new Blob([e]).size,o=Buffer.from(e,"utf-8");return{value:o,meta:{title:t.replace(/^.*[\\\/]/,""),fileHash:(0,bg.default)(o),size:r,...n}}}catch{throw new Error(`Error parsing '${t}' inline file`)}}var Dg=D(require("node-fetch")),wg=D(require("form-data"));async function Zl(e,t){let n={...t.fields,file:e.value},r=new wg.default;Object.entries(n).forEach(([i,s])=>{r.append(i,s)});let o=await(0,Dg.default)("https://"+t.fields.bucket+".s3.amazonaws.com",{method:"POST",body:r});IF(o)}function IF(e){switch(e.status){case 200:case 201:return;case 403:throw new Error("Unauthorized. Please check your AWS access key");default:throw new Error(`Something went wrong when uploading the file: ${e.statusText}`)}}G();Te();ut();pe();Tn();function BF({workspaceApiToken:e=process.env.WEBFLOW_WORKSPACE_API_TOKEN,siteApiToken:t=process.env.WEBFLOW_SITE_API_TOKEN,siteId:n=process.env.WEBFLOW_SITE_ID,libraryTarget:r=process.env.WEBFLOW_LIBRARY_TARGET}){if(r==="site"){if(!t)throw new Error("No API token provided");if(!n)throw new Error("No site provided");return{baseUrl:`${H}/v2/sites/${n}`,authToken:t}}if(!e)throw new Error("No API token provided");return{baseUrl:`${H}/v2/workspaces`,authToken:e}}function RF(e){if(e)return JSON.stringify(Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0)))}async function jF(e){if(e.ok)return;if(e.status===401||e.status===403)throw new Error("Your API token is invalid or not authorized to perform this action. Remove the token from .env and run the command again to generate a new token.");if(e.status===404)throw new Error("Code components are rolling out in phases. Check back soon for access.");let t=await e.json();throw new Error(t.message||e.statusText)}async function Mt({endpoint:e,method:t="GET",body:n,options:r}){let{baseUrl:o,authToken:i}=BF(r),s=`${o.replace(/\/+$/,"")}/${e.replace(/^\/+/,"")}`,a=await ze(s,{method:t,headers:{"Content-Type":"application/json",Authorization:`Bearer ${i}`},body:RF(n)});return await jF(a),a.json()}async function Kl({options:e}){return(await Mt({endpoint:"/code_libraries",options:e})).payload.workspaces[0]}async function Yl({name:e,description:t,slug:n,options:r}){return(await Mt({method:"POST",endpoint:"/code_library/init",body:{name:e,description:t,slug:n},options:r})).payload}async function Xl({resourceId:e,files:t,options:n}){return(await Mt({method:"POST",endpoint:`/code_library/${e}/files`,body:{files:t},options:n})).payload}async function Ql({resourceId:e,codeModule:t,components:n,options:r}){return(await Mt({method:"POST",endpoint:`/code_library/${e}/share`,body:{codeModule:t,components:n},options:r})).payload}var py=require("path"),dy=D(require("webpack-merge")),vn=require("@webflow/data-types");pe();G();var xg=require("memfs/lib/volume"),lo=require("@webflow/data-types");var st="./tmp_entry",vg="components";function LF(e){let t=NF(e);return/^[a-zA-Z]/.test(t.charAt(0))?t:"_"+t}function kg(e,t){let n=e.map(({name:u,path:l,isDefaultExport:c})=>c?`import ${u} from "${l}";`:`import { ${u} } from "${l}";`).join(`
122
- `),r=e.filter(u=>u.type==="internal").map(({name:u,exportKey:l})=>`${l}: ${u}`).join(", "),o=e.filter(u=>u.type==="component").map(({name:u,exportKey:l})=>`"${l}": ${u}`).join(", "),i=`env: "${t}"`,s=r,a=o?`components: { ${o} }`:void 0;return`${n}
105
+ ${p}`)}if(typeof c!="string"||!Di(c))throw new T("Invalid mount path: "+c);if(!u&&(!r||re()))throw new T("--site-id is required");await Ol(s,c,a,u)}),t.command("deploy").description("Deploy your Webflow Cloud project").option("-e, --environment <environment>","Environment name").option("-m, --mount <mount>","Mount path (e.g., /app)").option("-n, --project-name <name>","Project name (for new projects)").option("-d, --directory <path>","Project directory path (for new projects)").option("--description <description>","Project description (for new projects)").option("--skip-mount-path-check","Skip mount path checking").option("--auto-publish","Automatically publish site for mount path updates").action(async n=>{let{manifest:r}=ne(),o=await Vt(r),i;try{i=we.forCloud({authToken:o.accessToken,siteId:o.siteId})}catch(s){d.debug(`Failed to initialize telemetry: ${s}`)}try{if(n.directory)try{process.chdir(n.directory),d.info(`Changed directory to: ${n.directory}`)}catch(m){throw d.error(`Error: Could not change to directory ${n.directory}`),new T(m)}let{manifest:s}=ne(),l=(s.cloud||{}).project_id,u,c,p=n.projectName,f=n.description;if(n.environment&&n.mount){if(u=n.environment,c=mn(n.mount),!Di(c))throw new T("Invalid mount path: "+c)}else{let m=[];if(!l){if(!p&&re())throw new T("When --no-input mode is enabled please provide the --project-name option or the cloud.project_id manifest field.");try{let w=await jh(o);if(w.projects.length>0){let O=await Ee({message:"Select a project to deploy to:",choices:[...w.projects.map(F=>({name:`${F.name} (${F.description||"No description"})`,value:F.id})),{name:"Create new project",value:null}]});O?(l=O,d.info("\u{1F4DD} Updating webflow.json with project ID..."),le({cloud:{project_id:O}})):d.info("Creating a new project will be handled during deployment.")}else d.info("No existing projects found. A new project will be created during deployment.")}catch(w){d.warn("Could not fetch existing projects. A new project will be created during deployment."),d.warn(w instanceof Error?w.message:String(w))}}if(!l&&!p&&(p=await $e({message:"What would you like to name your new project?",default:"New Webflow Cloud Project",validate:w=>w.trim()===""?"Project name cannot be empty":!0})),l)try{let O=(await Ih(o,l)).environments.map(F=>({name:`${F.branch} (${F.mount})`,value:{branch:F.branch,mount:F.mount}}));m.push(...O)}catch(w){throw new T(w,{prefix:"Error fetching project environments:"})}m.push({name:"Create new environment",value:null});let y=await Ee({message:"Select an environment to deploy to:",choices:m});if(y)u=y.branch,c=mn(y.mount);else if(n.environment?u=n.environment:u=await $e({message:"What environment would you like to deploy to?",default:"main",validate:w=>w.trim()===""?"Environment cannot be empty":!0}),n.mount)c=mn(n.mount);else{let w=await $e({message:"What path should this environment be mounted at? (e.g., /app)",default:"/app"});c=mn(w)}}if(!Di(c))throw new T("Invalid mount path: "+c);await qh(o,u,c,{projectName:p,description:f,directory:n.directory,skipMountPathCheck:n.skipMountPathCheck,autoPublish:n.autoPublish,telemetry:i})}catch(s){throw new T(s,{prefix:"Error during deployment setup:"})}})};var ar=require("commander");var Ri=require("path"),ir=require("@webflow/data-types");ue();var Zh=D(require("md5"));function Gr(e,t,n){try{let r=new Blob([e]).size,o=Buffer.from(e,"utf-8");return{value:o,meta:{title:t.replace(/^.*[\\\/]/,""),fileHash:(0,Zh.default)(o),size:r,...n}}}catch{throw new Error(`Error parsing '${t}' inline file`)}}var Kh=D(require("node-fetch")),Yh=D(require("form-data"));async function Pl(e,t){let n={...t.fields,file:e.value},r=new Yh.default;Object.entries(n).forEach(([i,s])=>{r.append(i,s)});let o=await(0,Kh.default)("https://"+t.fields.bucket+".s3.amazonaws.com",{method:"POST",body:r});$F(o)}function $F(e){switch(e.status){case 200:case 201:return;case 403:throw new Error("Unauthorized. Please check your AWS access key");default:throw new Error(`Something went wrong when uploading the file: ${e.statusText}`)}}q();De();Dt();ue();xn();function zF({apiToken:e=process.env.WEBFLOW_API_TOKEN??process.env.WEBFLOW_WORKSPACE_API_TOKEN??process.env.WEBFLOW_SITE_API_TOKEN,siteId:t=process.env.WEBFLOW_SITE_ID,libraryTarget:n=process.env.WEBFLOW_LIBRARY_TARGET}){if(!e)throw new Error("No API token provided");if(n==="site"){if(!t)throw new Error("No site provided");return{baseUrl:`${oe}/v2/sites/${t}`,authToken:e}}return{baseUrl:`${oe}/v2/workspaces`,authToken:e}}function WF(e){if(e)return JSON.stringify(Object.fromEntries(Object.entries(e).filter(([,t])=>t!==void 0)))}async function UF(e){if(e.ok)return;if(e.status===401||e.status===403)throw new Error("Your API token is invalid or not authorized to perform this action. Remove the token from .env and run the command again to generate a new token.");if(e.status===404)throw new Error("Code components are rolling out in phases. Check back soon for access.");let t=await e.json();throw new Error(t.message||e.statusText)}async function Bt({endpoint:e,method:t="GET",body:n,options:r}){let{baseUrl:o,authToken:i}=zF(r),s=`${o.replace(/\/+$/,"")}/${e.replace(/^\/+/,"")}`,a=await Me(s,{method:t,headers:{"Content-Type":"application/json",Authorization:`Bearer ${i}`},body:WF(n)});return await UF(a),a.json()}async function Bl({options:e}){return(await Bt({endpoint:"/code_libraries",options:e})).payload.workspaces[0]}async function Il({name:e,description:t,slug:n,options:r}){return(await Bt({method:"POST",endpoint:"/code_library/init",body:{name:e,description:t,slug:n},options:r})).payload}async function jl({resourceId:e,files:t,options:n}){return(await Bt({method:"POST",endpoint:`/code_library/${e}/files`,body:{files:t},options:n})).payload}async function Rl({resourceId:e,codeModule:t,components:n,options:r}){return(await Bt({method:"POST",endpoint:`/code_library/${e}/share`,body:{codeModule:t,components:n},options:r})).payload}var Wg=require("path"),Ug=D(require("webpack-merge")),hn=require("@webflow/data-types");ue();q();var eg=require("memfs/lib/volume"),qr=require("@webflow/data-types");var et="./tmp_entry",Xh="components";function VF(e){let t=GF(e);return/^[a-zA-Z]/.test(t.charAt(0))?t:"_"+t}function Qh(e,t){let n=e.map(({name:l,path:u,isDefaultExport:c})=>c?`import ${l} from "${u}";`:`import { ${l} } from "${u}";`).join(`
106
+ `),r=e.filter(l=>l.type==="internal").map(({name:l,exportKey:u})=>`${u}: ${l}`).join(", "),o=e.filter(l=>l.type==="component").map(({name:l,exportKey:u})=>`"${u}": ${l}`).join(", "),i=`env: "${t}"`,s=r,a=o?`components: { ${o} }`:void 0;return`${n}
123
107
 
124
- export default { ${[i,s,a].filter(Boolean).join(", ")} };`}function Cg(e,t,n){let r={},o=`${st}/Client.js`,i=`${st}/Server.js`;r[o]=kg([{name:"ClientRenderer",path:e.client,exportKey:"Renderer",type:"internal"}],lo.Environment.Client);let s={},a=l=>{let c=LF(l);return s[c]?(s[c]+=1,`${c}${s[c]}`):(s[c]=1,c)};r[i]=kg([{name:"ServerRenderer",path:e.server,exportKey:"Renderer",type:"internal"},...Object.entries(t).filter(([l])=>n[l]?.ssr??!0).map(([l,c])=>{let p=a(l),m=c.startsWith(st)?c.replace(`${st}/`,"./"):c;return{name:p,path:m,exportKey:l,isDefaultExport:!0,type:"component"}})],lo.Environment.Server);let u={[lo.Environment.Client]:o,[lo.Environment.Server]:i};return{entryPointsVolume:xg.Volume.fromJSON(r),paths:u}}var NF=e=>e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/[-_]+|[^\p{L}\p{N}]/gu," ").toLowerCase().replace(new RegExp("(?:^|\\s)(\\p{L})","gu"),(t,n)=>n.toUpperCase()).replace(/\s+/g,"");var fy=require("memfs/lib/volume");var Tg=D(require("archiver")),ar=require("path");pe();var uo=require("@webflow/data-types");pe();G();var $t=e=>e.endsWith("/")||/%2F$/i.test(e)?e:`${e}/`;var Eg=2;function Fg(e){let t={type:uo.ModuleLoader.FEDERATION,version:Eg,entry:qs,renderer:Pr,components:e};return{title:Or,content:JSON.stringify(t)}}function _g(e){let t={type:uo.ModuleLoader.SSR,version:Eg,entry:On,components:e};return{title:Or,content:JSON.stringify(t)}}function Sg(e){let t=`/${uo.Environment.Client}/${qs}`;try{if(e.existsSync(t)){let n=e.readFileSync(t,"utf8"),r=JSON.parse(n.toString()),o="publicPath"in r.metaData?r.metaData.publicPath:null;if(!o)throw new Error("Public path not found in module federation manifest");return r.exposes.reduce((i,s)=>{let a=s.name;return a===Pr||(i[a]={css:[]},s.assets.css.sync.forEach(u=>{i[a].css.push(`${$t(o)}${u}`)})),i},{})}}catch(n){d.error(n,{prefix:"Failed to extract components metadata from MF manifest:"})}return{}}var Ri=require("@webflow/data-types"),MF=/\.css$/i;async function Ag(e,t,n){let r=!1;return new Promise(async(o,i)=>{e.length===0&&i(new Error("No assets to bundle"));let s=`/${Ri.Environment.Server}/${Ir}`,a=(0,Tg.default)("tar",{gzip:!1}),u=t.createWriteStream(s);a.on("error",p=>(r=!0,i(p))),u.on("close",()=>{if(!r)try{let p={type:"asset",name:Ir,info:{},size:a.pointer(),emitted:!0,comparedForEmit:!1,cached:!1};return e.forEach(m=>{let f=(0,ar.resolve)((0,ar.join)(`/${Ri.Environment.Server}`,m.name));t.existsSync(f)&&t.rmSync(f)}),o([p])}catch(p){return i(p)}finally{r=!0}}),a.pipe(u);let{title:l,content:c}=_g(n);a.append(c,{name:l}),e.forEach(p=>{if(!MF.test(p.name))try{let m=(0,ar.resolve)((0,ar.join)(`/${Ri.Environment.Server}`,p.name)),f=t.readFileSync(m,"utf8");a.append(f,{name:p.name})}catch(m){return r=!0,i(m)}}),await a.finalize()})}var Og=require("@webflow/data-types");async function Pg(e,t,n){let{title:r,content:o}=Fg(n);await t.promises.writeFile(`/${Og.Environment.Client}/${r}`,o);let i={type:"asset",name:r,info:{},size:o.length,emitted:!0,comparedForEmit:!1,cached:!1};return e.filter(s=>s.name!=="mf-stats.json").concat([i])}var oy=require("@rspack/core"),iy=D(require("fork-ts-checker-webpack-plugin")),sy=require("ts-checker-rspack-plugin"),ay=D(require("mini-css-extract-plugin")),ly=require("@webflow/data-types");var Bg=require("webpack"),tu=D(require("mini-css-extract-plugin")),Rg=D(require("tsconfig-paths-webpack-plugin")),jg=require("tsconfig-paths"),nu=require("@webflow/data-types"),Lg=require("path");pe();var Ig=D(require("postcss-selector-parser")),eu=()=>({postcssPlugin:"CSSinShadowDOM",Once(e){e.walkRules(t=>{t.selector=(0,Ig.default)(n=>{n.walkPseudos(r=>{r.value===":root"&&(r.value=":host")})}).processSync(t.selector)})}});eu.postcss=!0;eu.postcssPlugin="CSSinShadowDOM";var ji=eu;function $F(){return(0,jg.loadConfig)(process.cwd()).resultType==="success"}function Ng({entry:e,env:t,mode:n="production",publicPath:r,libraryName:o,outputPath:i}){let s={mode:n,module:{rules:[{test:/\.css$/i,use:[{ident:"mini-css-extract-loader",loader:tu.default.loader},{ident:"css-loader",loader:require.resolve("css-loader"),options:{importLoaders:1}},{ident:"postcss-loader",loader:require.resolve("postcss-loader"),options:{postcssOptions:{plugins:[ji]}}}]},{test:/\.(png|svg|jpg|jpeg|gif|woff|woff2|eot|ttf|otf)$/i,type:"asset/resource",generator:{filename:"[hash]-[name][ext]"}}]},plugins:[new tu.default({filename:"[contenthash].css",chunkFilename:"[contenthash].css",runtime:!1})],resolve:{plugins:[$F()?new Rg.default:null].filter(Boolean)},performance:{hints:!1}};if(t===nu.Environment.Client)return{...s,entry:()=>({}),output:{path:i?(0,Lg.join)(process.cwd(),i,t):"/",publicPath:r,clean:!0,uniqueName:o},target:"web"};if(t===nu.Environment.Server)return{...s,plugins:[...s.plugins||[],new Bg.optimize.LimitChunkCountPlugin({maxChunks:1})],entry:e,output:{filename:On,library:{type:"commonjs2"}},optimization:{splitChunks:!1},target:"async-node"};throw new Error(`Unknown environment ${t}`)}var Mg=require("@module-federation/enhanced"),ru=require("@webflow/data-types");function $g({libraryName:e,env:t,exposes:n}){if(t===ru.Environment.Client)return{plugins:[new Mg.ModuleFederationPlugin({name:e,filename:"remoteEntry.js",exposes:n,dts:!1,experiments:{optimization:{disableSnapshot:!0}}})]};if(t===ru.Environment.Server)return{};throw new Error(`Unknown environment ${t}`)}function Wg(){return{module:{rules:[{test:/\.(js|ts)x?$/,exclude:/node_modules/,use:[{ident:"babel-loader",loader:require.resolve("babel-loader"),options:{presets:[require.resolve("@babel/preset-env"),[require.resolve("@babel/preset-react"),{runtime:"automatic"}],require.resolve("@babel/preset-typescript")]}}]}]},resolve:{extensions:[".tsx",".ts",".jsx",".js",".json"]}}}function Li(){return{module:{rules:[{test:/\.(js|ts)x?$/,exclude:/node_modules/,loader:"builtin:swc-loader",options:{jsc:{parser:{syntax:"typescript",tsx:!0},transform:{react:{runtime:"automatic",development:!1,refresh:!1}}}}}]},resolve:{extensions:[".tsx",".ts",".jsx",".js",".json"]}}}var Ni=require("@rspack/core"),zg=require("tsconfig-paths"),ou=require("@webflow/data-types"),Ug=require("path");pe();function WF(){let e=(0,zg.loadConfig)(process.cwd());if(e.resultType==="success")return e.configFileAbsolutePath}function Vg({entry:e,env:t,mode:n="production",publicPath:r,libraryName:o,outputPath:i}){let s={mode:n,module:{rules:[{test:/\.css$/i,use:[{ident:"mini-css-extract-loader",loader:Ni.rspack.CssExtractRspackPlugin.loader},{ident:"css-loader",loader:require.resolve("css-loader"),options:{importLoaders:1}},{ident:"postcss-loader",loader:require.resolve("postcss-loader"),options:{postcssOptions:{plugins:[ji]}}}],type:"javascript/auto"},{test:/\.(png|svg|jpg|jpeg|gif|woff|woff2|eot|ttf|otf)$/i,type:"asset/resource",generator:{filename:"[hash]-[name][ext]"}}]},plugins:[new Ni.rspack.CssExtractRspackPlugin({filename:"[contenthash].css",chunkFilename:"[contenthash].css",runtime:!1})],resolve:(()=>{let a=WF();return a?{tsConfig:{configFile:a}}:{}})(),performance:{hints:!1}};if(t===ou.Environment.Client)return{...s,entry:()=>({}),output:{path:i?(0,Ug.join)(process.cwd(),i,t):"/",publicPath:r,clean:!0,uniqueName:o},target:"web"};if(t===ou.Environment.Server)return{...s,plugins:[...Array.isArray(s.plugins)?s.plugins:[],new Ni.rspack.optimize.LimitChunkCountPlugin({maxChunks:1})],entry:e,output:{filename:On,library:{type:"commonjs2"}},optimization:{splitChunks:!1},target:"async-node"};throw new Error(`Unknown environment ${t}`)}var Gg=require("@module-federation/enhanced/rspack"),iu=require("@webflow/data-types");function qg({libraryName:e,env:t,exposes:n}){if(t===iu.Environment.Client)return{plugins:[new Gg.ModuleFederationPlugin({name:e,filename:"remoteEntry.js",exposes:n,dts:!1,experiments:{optimization:{disableSnapshot:!0}}})]};if(t===iu.Environment.Server)return{};throw new Error(`Unknown environment ${t}`)}var UF=D(require("fs")),Hg=require("unionfs"),Jg=require("webpack");function zF(e){return{name:e.name,size:e.size,emitted:e.emitted,info:e.info}}function Mi(e){let t=e.toJson();return{hasErrors:()=>e.hasErrors(),hasWarnings:()=>e.hasWarnings(),toString:n=>e.toString(n),toJson:()=>({...t,assets:(t.assets??[]).map(zF)})}}async function Zg({config:e,sourceVolumes:t=[],outputVolume:n,outputPath:r,failOnWarnings:o=!0}){let i=t.reduce((s,a)=>(s.use(a),s),new Hg.Union().use(UF));return new Promise((s,a)=>{let u=(0,Jg.webpack)(e);u.inputFileSystem=i,n&&(u.outputFileSystem=n),r&&(u.outputPath=r),u.run((l,c)=>{u.close(p=>{l||p?a(l||p):c?c.hasErrors()||o&&c.hasWarnings()?a(new Error(c.toString("errors-warnings"))):s(Mi(c)):a(new Error("Webpack stats are undefined"))})})})}var VF=D(require("fs")),su=D(require("webpack-merge")),Kg=require("memfs"),Yg=require("unionfs"),Xg=require("@rspack/core");async function $i({config:e,sourceVolumes:t=[],outputVolume:n,outputPath:r,failOnWarnings:o=!0}){let i=t.reduce((a,u)=>(a.use(u),a),new Yg.Union().use(VF)),s=e;return t.length>0&&(s=(0,su.default)(s,{experiments:{...e.experiments,useInputFileSystem:[/./]}})),n&&(s=(0,su.default)(s,{output:{clean:!1,...r&&{path:r}}})),new Promise((a,u)=>{let l=(0,Xg.rspack)(s);l.inputFileSystem=i,n&&(l.outputFileSystem=(0,Kg.createFsFromVolume)(n)),r&&(l.outputPath=r),l.run((c,p)=>{l.close(m=>{c||m?u(c||m):p?p.hasErrors()||o&&p.hasWarnings()?u(new Error(p.toString("errors-warnings"))):a(Mi(p)):u(new Error("Rspack stats are undefined"))})})})}var ey=require("@module-federation/enhanced");var lr=D(require("webpack-merge"));G();function Wt(e){return e!==null&&typeof e=="object"&&"constructor"in e?e.constructor.name??"":""}function Qg(e,t){let n=Object.entries(e).filter(([r])=>!t.includes(r));return Object.fromEntries(n)}function zi(e){let{deduplicatePluginNames:t,ModuleFederationPluginClass:n,getPluginOptions:r,filterOverridePlugins:o}=e;return function(s,a,u){let l=["entry","output","target"],c=GF(s),p=Array.isArray(u)?Wi(...u.map(c)):Wi(c(u));Object.keys(p).some(j=>l.includes(j))&&d.warn(`Cannot override blocked properties: ${l.join(", ")}`);let f={...Qg(p,[...l,"ModuleFederationPlugin","module","plugins"]),module:Qg(p.module??{},["rules"])},y=(0,lr.default)(a,f),C=p.plugins??[];o&&(C=C.filter(o));let P=a.plugins??[],W=(0,lr.mergeWithCustomize)({customizeArray:(0,lr.unique)("plugins",t,j=>Wt(j))})({plugins:C},{plugins:P}).plugins,x=p?.ModuleFederationPlugin?.shared,T=W?.map(j=>{if(Wt(j)==="ModuleFederationPlugin"){let F=r(j);return new n({...F,...x?{shared:x}:{}})}return j});y.plugins=T;let q=p.module?.rules;if(q&&typeof q=="function"){let j=a.module?.rules??[];y.module={...y.module??{},rules:q(j)}}return y}}function Wi(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={};for(let n of e){let{module:r,ModuleFederationPlugin:o,plugins:i,...s}=n;if(t={...t,...s},r){let{rules:a,...u}=r;if(t.module={...t.module,...u},a){let l=t.module?.rules;l?t.module.rules=c=>{let p=l(c);return a(p)}:t.module.rules=a}}o?.shared&&(t.ModuleFederationPlugin={shared:{...t.ModuleFederationPlugin?.shared,...o.shared}}),i&&(t.plugins=[...t.plugins??[],...i])}return t}function GF(e){return t=>typeof t=="function"?t(e):t}var qF=zi({deduplicatePluginNames:["ModuleFederationPlugin","MiniCssExtractPlugin"],ModuleFederationPluginClass:ey.ModuleFederationPlugin,getPluginOptions:e=>e._options??{}});function ty(e,t,n){return qF(e,t,n)}var ny=require("@module-federation/enhanced/rspack");var HF=zi({deduplicatePluginNames:["ModuleFederationPlugin","CssExtractRspackPlugin"],ModuleFederationPluginClass:ny.ModuleFederationPlugin,getPluginOptions:e=>e._options??{},filterOverridePlugins:e=>Wt(e)!=="MiniCssExtractPlugin"});function ry(e,t,n){return HF(e,t,n)}var au={[ly.Framework.React]:{generateWebpackBundlerConfig:Wg,generateRspackBundlerConfig:Li}},JF={webpack:{generateBaseConfig:Ng,getFrameworkConfig:(e,t)=>au[e].generateWebpackBundlerConfig(t),generateFederationConfig:$g,mergeConfigs:(e,t,n)=>ty(e,t,n),bundle:e=>Zg({...e,config:e.config}),typeCheckerPlugin:iy.default,hashFunction:"md5",replaceCssPlugin:e=>({...e,plugins:e.plugins?.map(t=>Wt(t)==="MiniCssExtractPlugin"?new ay.default({filename:"[name].[contenthash].css"}):t)})},rspack:{generateBaseConfig:Vg,getFrameworkConfig:(e,t)=>au[e].generateRspackBundlerConfig(t),generateFederationConfig:qg,mergeConfigs:(e,t,n)=>ry(e,t,n),bundle:e=>$i({...e,config:e.config}),typeCheckerPlugin:sy.TsCheckerRspackPlugin,hashFunction:"md4",replaceCssPlugin:e=>({...e,plugins:e.plugins?.map(t=>Wt(t)==="CssExtractRspackPlugin"?new oy.CssExtractRspackPlugin({filename:"[name].[contenthash].css"}):t)})}},ur=e=>JF[e],uy=e=>!!au[e];var cy={colors:!0,chunks:!1,modules:!1,chunkModules:!1,reasons:!1,errorDetails:!1,assetsSpace:1/0,warnings:!1,assets:!0,entrypoints:!0,performance:!0};async function Ui(e){let t=e.bundler??"webpack";d.debug("Generating entry points...");let{entryPointsVolume:n,paths:r}=Cg(e.renderer,e.componentsFiles,e.componentsOptions),o=fy.Volume.fromJSON({"/Server":null,"/Client":null});d.debug("Generating bundling config...");let i=e.overrideConfig??{};Object.keys(i).length&&d.debug("Found bundle config overrides. Merging...");let s=ur(t),a=P=>{let _=ZF({env:P,mode:e.dev?"development":"production",framework:e.framework,publicPath:e.publicPath,components:e.componentsFiles,entryPaths:r,libraryName:e.libraryIdentifier,bundler:t}),W=s.mergeConfigs(P,_,i);return e?.debugBundler&&(d.info(`${t} config for env ${P}:`),d.dir(W)),W},u={sourceVolumes:[...e.sourceVolumes,n],outputVolume:o,failOnWarnings:e.failOnWarnings},[l,c]=await Promise.all([s.bundle({...u,config:a(vn.Environment.Server),outputPath:`/${vn.Environment.Server}`}),s.bundle({...u,config:a(vn.Environment.Client),outputPath:`/${vn.Environment.Client}`})]);e?.debugBundler&&(d.debug(o.toTree()),d.debug(`Server Bundler Stats: ${l.toString(cy)}`),d.debug(`Client Bundler Stats: ${c.toString(cy)}`));let p=Sg(o);d.debug("Packaging server bundle...");let m=await Ag(l.toJson().assets||[],o,p);d.debug("Packaging client bundle...");let f=await Pg(c.toJson().assets||[],o,p),y=P=>_=>[_,P];return{outputFiles:[...m.map(y(vn.Environment.Server)),...f.map(y(vn.Environment.Client))],outputVolume:o}}function ZF({env:e,mode:t="production",framework:n,publicPath:r,components:o,entryPaths:i,libraryName:s,outputPath:a,bundler:u="webpack"}){if(!uy(n))throw new Error(`Unknown framework: ${n}`);let l=Object.entries({[Pr]:i[e],...o}).reduce((y,[C,P])=>({...y,[`./${C}`]:`./${(0,py.relative)(process.cwd(),P)}`}),{}),c=ur(u),p=c.generateBaseConfig({entry:i[e],env:e,mode:t,libraryName:s,publicPath:r,outputPath:a}),m=c.getFrameworkConfig(n,e),f=c.generateFederationConfig({exposes:l,env:e,libraryName:s});return(0,dy.default)(p,m,f)}var hy=D(require("path")),lu=require("memfs/lib/volume"),uu=D(require("webpack-merge")),gy=D(require("webpack-node-externals")),Le=require("@webflow/data-types");var KF=D(require("fs")),cr=require("path"),pr=require("webpack");function YF(e,t=KF){let n=(0,cr.join)(process.cwd(),"node_modules",e);for(;n!==(0,cr.dirname)(n)&&n!=="node_modules";){let r=(0,cr.join)(n,"package.json");if(t.existsSync(r))try{let{name:o,version:i}=JSON.parse(t.readFileSync(r,"utf8"));return`${o}@${i}`}catch{return null}n=(0,cr.dirname)(n)}return null}var Vi=class{apply(t){t.hooks.compilation.tap("ProcessSourceMapsPlugin",function(n){n.hooks.processAssets.tap({name:"ProcessSourceMapsPlugin",stage:pr.Compilation.PROCESS_ASSETS_STAGE_OPTIMIZE_INLINE},function(){try{let r=n.getAssets(),o={};Object.values(r).forEach(({name:i,source:s})=>{if(!i.endsWith(".map"))return;let[a,u,l]=i.split("."),c=o[a]?.sources??{},p=o[a]?.dependencies??new Set;JSON.parse(s.source().toString()).sources.forEach(f=>{if(f.startsWith("external")){let y=f.match(/^external \S+ "(.+)"$/)?.[1];if(!y)throw new Error(`Could not extract package name from ${f}`);let C=YF(y,n.inputFileSystem);if(!C)throw new Error(`Could not find package information for ${y}`);C&&p.add(C)}}),o[a]={sources:{...c,[`./${a}.${l}`]:u},dependencies:p},n.deleteAsset(i)}),Object.entries(o).forEach(([i,{sources:s,dependencies:a}])=>{n.emitAsset(`${i}.js.map`,new pr.sources.RawSource(JSON.stringify({sources:s,dependencies:[...a]})))})}catch(r){n.errors.push(new pr.WebpackError(`[ProcessSourceMapsPlugin] Could not process source maps: ${r?.stack}`))}})})}};var my=D(require("module"));function co(e,t){let n=e.readFileSync(t,"utf-8"),r=new my.default(t,module);return r._compile(n,t),r}function XF(e,t){let n=`/${t}.js`,r=co(e,n),o=r.exports.default||r.exports;if(o&&typeof o=="object")try{let{name:i,description:s,group:a,props:u,options:l}=(0,Le.parseComponentData)(o);return{displayName:i,description:s,group:a,props:Object.entries(u||{}).map(([c,p])=>({...p,name:c,defaultValue:typeof p.defaultValue!="string"?JSON.stringify(p.defaultValue):p.defaultValue,settings:p.settings!==void 0?JSON.stringify(p.settings):p.settings})),options:l}}catch(i){let s=i instanceof Error?i.stack:String(i);throw new Error(`Error parsing component data for '${t}': ${s}`)}throw new Error(`Could not get declaration for '${t}'`)}async function QF({declarations:e,sources:t,overrideConfig:n={},performTypeCheck:r,bundler:o="webpack"}){let i=new lu.Volume,s=ur(o),a=(0,uu.default)(s.generateBaseConfig({entry:e,env:Le.Environment.Client,publicPath:"/",libraryName:"metadata"}),s.getFrameworkConfig(Le.Framework.React,Le.Environment.Client),{entry:e,mode:"development",output:{path:"/",library:{type:"commonjs2"}},target:"node",plugins:r?[new s.typeCheckerPlugin]:[]}),u=s.mergeConfigs(Le.Environment.Client,a,n);return await s.bundle({outputPath:"/",config:u,sourceVolumes:t?[t]:[],outputVolume:i,failOnWarnings:!1}),i}async function e_({declarations:e,sources:t,overrideConfig:n={},bundler:r}){let o=new lu.Volume,i=ur(r),s=(0,uu.default)(i.generateBaseConfig({entry:e,env:Le.Environment.Client,publicPath:"/",libraryName:"source-maps"}),i.getFrameworkConfig(Le.Framework.React,Le.Environment.Client),{entry:e,mode:"production",optimization:{mangleExports:"deterministic",moduleIds:"deterministic",chunkIds:"deterministic"},output:{filename:"[name].[contenthash].js",path:"/",library:{type:"commonjs2"},devtoolModuleFilenameTemplate:"[resource-path]",hashFunction:i.hashFunction},externalsPresets:{node:!0},devtool:"source-map",plugins:[new Vi],externals:[(0,gy.default)()]}),a=i.mergeConfigs(Le.Environment.Client,s,n);return a=i.replaceCssPlugin(a),await i.bundle({outputPath:"/",config:a,sourceVolumes:t?[t]:[],outputVolume:o,failOnWarnings:!1}),o}function t_(e){return Object.entries(e.toJSON()).reduce((t,[n,r])=>{if(n.endsWith(".map")&&r?.length){let o=hy.default.basename(n).split(".")[0];t[o]=r}return t},{})}async function Gi({declarations:e,sources:t,overrideConfig:n,performTypeCheck:r=!1,skipSourceMaps:o=!1,bundler:i="webpack"}){let[s,a]=await Promise.all([QF({declarations:e,sources:t,overrideConfig:n,performTypeCheck:r,bundler:i}),o||i==="rspack"?Promise.resolve(null):e_({declarations:e,sources:t,overrideConfig:n,bundler:i})]),{metadata:u,options:l}=Object.keys(e).reduce((p,m)=>{let f=XF(s,m);return p.metadata[m]=f,p.options[m]=f.options||{},p},{metadata:{},options:{}});return{sourceMaps:a?t_(a):{},metadata:u,options:l}}function yy(e,{framework:t,sourceMaps:n}){return Object.fromEntries(Object.keys(e).map(r=>[r,{...e[r],id:r,framework:t,exportPath:"default",hash:n[r]}]))}Ue();var Dy=D(require("md5"));Ke();ke();var wy=" - ";function n_(e){return e==="added"?` ${z.green("(Added)")}`:e==="removed"?` ${z.yellow("(Removed)")}`:e==="changed"?` ${z.blue("(Changed)")}`:""}function by(e){if(!e)return"";let t=JSON.parse(e);return(0,Dy.default)(JSON.stringify([...Object.values(t.sources),...t.dependencies.filter(n=>!n.includes("@webflow/data-types")&&!n.includes("@webflow/react"))].sort()))}function r_({componentsMetadata:e,latestVersion:t,sourceMaps:n}){let r=t.resource.codeLibraryResource.manifest.components.reduce((s,a)=>(s[a.id]=a,s),{}),o={};return Object.entries(r).forEach(([s,a])=>{if(!e[s])o[s]={component:a,status:"removed"};else{let u=e[s],l=by(n[s]),c=a.displayName&&u.displayName!==a.displayName,p=l&&a.hash&&l!==by(a.hash),m=c||p;o[s]={component:u,status:m?"changed":"unchanged",previousName:c?a.displayName:void 0}}}),Object.entries(e).forEach(([s,a])=>{r[s]||(o[s]={component:a,status:"added"})}),Object.values(o).map(({component:s,status:a,previousName:u})=>{let l=s.displayName,c=u?`${u} \u2192 ${l}`:l;return`${wy}${c}${n_(a)}`}).sort().join(`
125
- `)}function o_({componentsMetadata:e}){return Object.values(e).map(n=>`${wy}${n.displayName}`).sort().join(`
126
- `)}async function vy({libraryConfig:e,componentsMetadata:t,existingCodeLibraries:n,sourceMaps:r,workspaceInfo:o}){if(te())return Promise.resolve(!0);let i=e.id?n.find(({profile:p})=>p.slug===e.id):null,s=i&&i.profile.status==="ACTIVE",a="Code components:",u=s?r_({componentsMetadata:t,latestVersion:i,sourceMaps:r}):o_({componentsMetadata:t}),l=s?`Ready to update ${e.name} on ${o.name}?`:`Ready to share ${e.name} with ${o.name}?`;return await ge({message:`${a}
127
- ${u}
108
+ export default { ${[i,s,a].filter(Boolean).join(", ")} };`}function tg(e,t,n){let r={},o=`${et}/Client.js`,i=`${et}/Server.js`;r[o]=Qh([{name:"ClientRenderer",path:e.client,exportKey:"Renderer",type:"internal"}],qr.Environment.Client);let s={},a=u=>{let c=VF(u);return s[c]?(s[c]+=1,`${c}${s[c]}`):(s[c]=1,c)};r[i]=Qh([{name:"ServerRenderer",path:e.server,exportKey:"Renderer",type:"internal"},...Object.entries(t).filter(([u])=>n[u]?.ssr??!0).map(([u,c])=>{let p=a(u),f=c.startsWith(et)?c.replace(`${et}/`,"./"):c;return{name:p,path:f,exportKey:u,isDefaultExport:!0,type:"component"}})],qr.Environment.Server);let l={[qr.Environment.Client]:o,[qr.Environment.Server]:i};return{entryPointsVolume:eg.Volume.fromJSON(r),paths:l}}var GF=e=>e.replace(/([a-z])([A-Z])/g,"$1 $2").replace(/[-_]+|[^\p{L}\p{N}]/gu," ").toLowerCase().replace(new RegExp("(?:^|\\s)(\\p{L})","gu"),(t,n)=>n.toUpperCase()).replace(/\s+/g,"");var Vg=require("memfs/lib/volume");var sg=D(require("archiver")),Xn=require("path");ue();var Hr=require("@webflow/data-types");ue();q();var It=e=>e.endsWith("/")||/%2F$/i.test(e)?e:`${e}/`;var ng=2;function rg(e){let t={type:Hr.ModuleLoader.FEDERATION,version:ng,entry:_s,renderer:wr,components:e};return{title:Dr,content:JSON.stringify(t)}}function og(e){let t={type:Hr.ModuleLoader.SSR,version:ng,entry:Fn,components:e};return{title:Dr,content:JSON.stringify(t)}}function ig(e){let t=`/${Hr.Environment.Client}/${_s}`;try{if(e.existsSync(t)){let n=e.readFileSync(t,"utf8"),r=JSON.parse(n.toString()),o="publicPath"in r.metaData?r.metaData.publicPath:null;if(!o)throw new Error("Public path not found in module federation manifest");return r.exposes.reduce((i,s)=>{let a=s.name;return a===wr||(i[a]={css:[]},s.assets.css.sync.forEach(l=>{i[a].css.push(`${It(o)}${l}`)})),i},{})}}catch(n){d.error(n,{prefix:"Failed to extract components metadata from MF manifest:"})}return{}}var wi=require("@webflow/data-types"),qF=/\.css$/i;async function ag(e,t,n){let r=!1;return new Promise(async(o,i)=>{e.length===0&&i(new Error("No assets to bundle"));let s=`/${wi.Environment.Server}/${vr}`,a=(0,sg.default)("tar",{gzip:!1}),l=t.createWriteStream(s);a.on("error",p=>(r=!0,i(p))),l.on("close",()=>{if(!r)try{let p={type:"asset",name:vr,info:{},size:a.pointer(),emitted:!0,comparedForEmit:!1,cached:!1};return e.forEach(f=>{let m=(0,Xn.resolve)((0,Xn.join)(`/${wi.Environment.Server}`,f.name));t.existsSync(m)&&t.rmSync(m)}),o([p])}catch(p){return i(p)}finally{r=!0}}),a.pipe(l);let{title:u,content:c}=og(n);a.append(c,{name:u}),e.forEach(p=>{if(!qF.test(p.name))try{let f=(0,Xn.resolve)((0,Xn.join)(`/${wi.Environment.Server}`,p.name)),m=t.readFileSync(f,"utf8");a.append(m,{name:p.name})}catch(f){return r=!0,i(f)}}),await a.finalize()})}var lg=require("@webflow/data-types");async function ug(e,t,n){let{title:r,content:o}=rg(n);await t.promises.writeFile(`/${lg.Environment.Client}/${r}`,o);let i={type:"asset",name:r,info:{},size:o.length,emitted:!0,comparedForEmit:!1,cached:!1};return e.filter(s=>s.name!=="mf-stats.json").concat([i])}var jg=require("@rspack/core"),Rg=D(require("fork-ts-checker-webpack-plugin")),Lg=require("ts-checker-rspack-plugin"),Ng=D(require("mini-css-extract-plugin")),Mg=require("@webflow/data-types");var pg=require("webpack"),Nl=D(require("mini-css-extract-plugin")),dg=D(require("tsconfig-paths-webpack-plugin")),fg=require("tsconfig-paths"),Ml=require("@webflow/data-types"),mg=require("path");ue();var cg=D(require("postcss-selector-parser")),Ll=()=>({postcssPlugin:"CSSinShadowDOM",Once(e){e.walkRules(t=>{t.selector=(0,cg.default)(n=>{n.walkPseudos(r=>{r.value===":root"&&(r.value=":host")})}).processSync(t.selector)})}});Ll.postcss=!0;Ll.postcssPlugin="CSSinShadowDOM";var vi=Ll;function HF(){return(0,fg.loadConfig)(process.cwd()).resultType==="success"}function hg({entry:e,env:t,mode:n="production",publicPath:r,libraryName:o,outputPath:i}){let s={mode:n,module:{rules:[{test:/\.css$/i,use:[{ident:"mini-css-extract-loader",loader:Nl.default.loader},{ident:"css-loader",loader:require.resolve("css-loader"),options:{importLoaders:1}},{ident:"postcss-loader",loader:require.resolve("postcss-loader"),options:{postcssOptions:{plugins:[vi]}}}]},{test:/\.(png|svg|jpg|jpeg|gif|woff|woff2|eot|ttf|otf)$/i,type:"asset/resource",generator:{filename:"[hash]-[name][ext]"}}]},plugins:[new Nl.default({filename:"[contenthash].css",chunkFilename:"[contenthash].css",runtime:!1})],resolve:{plugins:[HF()?new dg.default:null].filter(Boolean)},performance:{hints:!1}};if(t===Ml.Environment.Client)return{...s,entry:()=>({}),output:{path:i?(0,mg.join)(process.cwd(),i,t):"/",publicPath:r,clean:!0,uniqueName:o},target:"web"};if(t===Ml.Environment.Server)return{...s,plugins:[...s.plugins||[],new pg.optimize.LimitChunkCountPlugin({maxChunks:1})],entry:e,output:{filename:Fn,library:{type:"commonjs2"}},optimization:{splitChunks:!1},target:"async-node"};throw new Error(`Unknown environment ${t}`)}var gg=require("@module-federation/enhanced"),$l=require("@webflow/data-types");function yg({libraryName:e,env:t,exposes:n}){if(t===$l.Environment.Client)return{plugins:[new gg.ModuleFederationPlugin({name:e,filename:"remoteEntry.js",exposes:n,dts:!1,experiments:{optimization:{disableSnapshot:!0}}})]};if(t===$l.Environment.Server)return{};throw new Error(`Unknown environment ${t}`)}function bg(){return{module:{rules:[{test:/\.(js|ts)x?$/,exclude:/node_modules/,use:[{ident:"babel-loader",loader:require.resolve("babel-loader"),options:{presets:[require.resolve("@babel/preset-env"),[require.resolve("@babel/preset-react"),{runtime:"automatic"}],require.resolve("@babel/preset-typescript")]}}]}]},resolve:{extensions:[".tsx",".ts",".jsx",".js",".json"]}}}function ki(){return{module:{rules:[{test:/\.(js|ts)x?$/,exclude:/node_modules/,loader:"builtin:swc-loader",options:{jsc:{parser:{syntax:"typescript",tsx:!0},transform:{react:{runtime:"automatic",development:!1,refresh:!1}}}}}]},resolve:{extensions:[".tsx",".ts",".jsx",".js",".json"]}}}var xi=require("@rspack/core"),Dg=require("tsconfig-paths"),zl=require("@webflow/data-types"),wg=require("path");ue();function JF(){let e=(0,Dg.loadConfig)(process.cwd());if(e.resultType==="success")return e.configFileAbsolutePath}function vg({entry:e,env:t,mode:n="production",publicPath:r,libraryName:o,outputPath:i}){let s={mode:n,module:{rules:[{test:/\.css$/i,use:[{ident:"mini-css-extract-loader",loader:xi.rspack.CssExtractRspackPlugin.loader},{ident:"css-loader",loader:require.resolve("css-loader"),options:{importLoaders:1}},{ident:"postcss-loader",loader:require.resolve("postcss-loader"),options:{postcssOptions:{plugins:[vi]}}}],type:"javascript/auto"},{test:/\.(png|svg|jpg|jpeg|gif|woff|woff2|eot|ttf|otf)$/i,type:"asset/resource",generator:{filename:"[hash]-[name][ext]"}}]},plugins:[new xi.rspack.CssExtractRspackPlugin({filename:"[contenthash].css",chunkFilename:"[contenthash].css",runtime:!1})],resolve:(()=>{let a=JF();return a?{tsConfig:{configFile:a}}:{}})(),performance:{hints:!1}};if(t===zl.Environment.Client)return{...s,entry:()=>({}),output:{path:i?(0,wg.join)(process.cwd(),i,t):"/",publicPath:r,clean:!0,uniqueName:o},target:"web"};if(t===zl.Environment.Server)return{...s,plugins:[...Array.isArray(s.plugins)?s.plugins:[],new xi.rspack.optimize.LimitChunkCountPlugin({maxChunks:1})],entry:e,output:{filename:Fn,library:{type:"commonjs2"}},optimization:{splitChunks:!1},target:"async-node"};throw new Error(`Unknown environment ${t}`)}var kg=require("@module-federation/enhanced/rspack"),Wl=require("@webflow/data-types");function xg({libraryName:e,env:t,exposes:n}){if(t===Wl.Environment.Client)return{plugins:[new kg.ModuleFederationPlugin({name:e,filename:"remoteEntry.js",exposes:n,dts:!1,experiments:{optimization:{disableSnapshot:!0}}})]};if(t===Wl.Environment.Server)return{};throw new Error(`Unknown environment ${t}`)}var KF=D(require("fs")),Cg=require("unionfs"),Fg=require("webpack");function ZF(e){return{name:e.name,size:e.size,emitted:e.emitted,info:e.info}}function Ci(e){let t=e.toJson();return{hasErrors:()=>e.hasErrors(),hasWarnings:()=>e.hasWarnings(),toString:n=>e.toString(n),toJson:()=>({...t,assets:(t.assets??[]).map(ZF)})}}async function _g({config:e,sourceVolumes:t=[],outputVolume:n,outputPath:r,failOnWarnings:o=!0}){let i=t.reduce((s,a)=>(s.use(a),s),new Cg.Union().use(KF));return new Promise((s,a)=>{let l=(0,Fg.webpack)(e);l.inputFileSystem=i,n&&(l.outputFileSystem=n),r&&(l.outputPath=r),l.run((u,c)=>{l.close(p=>{u||p?a(u||p):c?c.hasErrors()||o&&c.hasWarnings()?a(new Error(c.toString("errors-warnings"))):s(Ci(c)):a(new Error("Webpack stats are undefined"))})})})}var YF=D(require("fs")),Ul=D(require("webpack-merge")),Eg=require("memfs"),Sg=require("unionfs"),Tg=require("@rspack/core");async function Fi({config:e,sourceVolumes:t=[],outputVolume:n,outputPath:r,failOnWarnings:o=!0}){let i=t.reduce((a,l)=>(a.use(l),a),new Sg.Union().use(YF)),s=e;return t.length>0&&(s=(0,Ul.default)(s,{experiments:{...e.experiments,useInputFileSystem:[/./]}})),n&&(s=(0,Ul.default)(s,{output:{clean:!1,...r&&{path:r}}})),new Promise((a,l)=>{let u=(0,Tg.rspack)(s);u.inputFileSystem=i,n&&(u.outputFileSystem=(0,Eg.createFsFromVolume)(n)),r&&(u.outputPath=r),u.run((c,p)=>{u.close(f=>{c||f?l(c||f):p?p.hasErrors()||o&&p.hasWarnings()?l(new Error(p.toString("errors-warnings"))):a(Ci(p)):l(new Error("Rspack stats are undefined"))})})})}var Og=require("@module-federation/enhanced");var Qn=D(require("webpack-merge"));q();function jt(e){return e!==null&&typeof e=="object"&&"constructor"in e?e.constructor.name??"":""}function Ag(e,t){let n=Object.entries(e).filter(([r])=>!t.includes(r));return Object.fromEntries(n)}function Ei(e){let{deduplicatePluginNames:t,ModuleFederationPluginClass:n,getPluginOptions:r,filterOverridePlugins:o}=e;return function(s,a,l){let u=["entry","output","target"],c=XF(s),p=Array.isArray(l)?_i(...l.map(c)):_i(c(l));Object.keys(p).some(R=>u.includes(R))&&d.warn(`Cannot override blocked properties: ${u.join(", ")}`);let m={...Ag(p,[...u,"ModuleFederationPlugin","module","plugins"]),module:Ag(p.module??{},["rules"])},y=(0,Qn.default)(a,m),w=p.plugins??[];o&&(w=w.filter(o));let O=a.plugins??[],$=(0,Qn.mergeWithCustomize)({customizeArray:(0,Qn.unique)("plugins",t,R=>jt(R))})({plugins:w},{plugins:O}).plugins,x=p?.ModuleFederationPlugin?.shared,S=$?.map(R=>{if(jt(R)==="ModuleFederationPlugin"){let _=r(R);return new n({..._,...x?{shared:x}:{}})}return R});y.plugins=S;let G=p.module?.rules;if(G&&typeof G=="function"){let R=a.module?.rules??[];y.module={...y.module??{},rules:G(R)}}return y}}function _i(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={};for(let n of e){let{module:r,ModuleFederationPlugin:o,plugins:i,...s}=n;if(t={...t,...s},r){let{rules:a,...l}=r;if(t.module={...t.module,...l},a){let u=t.module?.rules;u?t.module.rules=c=>{let p=u(c);return a(p)}:t.module.rules=a}}o?.shared&&(t.ModuleFederationPlugin={shared:{...t.ModuleFederationPlugin?.shared,...o.shared}}),i&&(t.plugins=[...t.plugins??[],...i])}return t}function XF(e){return t=>typeof t=="function"?t(e):t}var QF=Ei({deduplicatePluginNames:["ModuleFederationPlugin","MiniCssExtractPlugin"],ModuleFederationPluginClass:Og.ModuleFederationPlugin,getPluginOptions:e=>e._options??{}});function Pg(e,t,n){return QF(e,t,n)}var Bg=require("@module-federation/enhanced/rspack");var e_=Ei({deduplicatePluginNames:["ModuleFederationPlugin","CssExtractRspackPlugin"],ModuleFederationPluginClass:Bg.ModuleFederationPlugin,getPluginOptions:e=>e._options??{},filterOverridePlugins:e=>jt(e)!=="MiniCssExtractPlugin"});function Ig(e,t,n){return e_(e,t,n)}var Vl={[Mg.Framework.React]:{generateWebpackBundlerConfig:bg,generateRspackBundlerConfig:ki}},t_={webpack:{generateBaseConfig:hg,getFrameworkConfig:(e,t)=>Vl[e].generateWebpackBundlerConfig(t),generateFederationConfig:yg,mergeConfigs:(e,t,n)=>Pg(e,t,n),bundle:e=>_g({...e,config:e.config}),typeCheckerPlugin:Rg.default,hashFunction:"md5",replaceCssPlugin:e=>({...e,plugins:e.plugins?.map(t=>jt(t)==="MiniCssExtractPlugin"?new Ng.default({filename:"[name].[contenthash].css"}):t)})},rspack:{generateBaseConfig:vg,getFrameworkConfig:(e,t)=>Vl[e].generateRspackBundlerConfig(t),generateFederationConfig:xg,mergeConfigs:(e,t,n)=>Ig(e,t,n),bundle:e=>Fi({...e,config:e.config}),typeCheckerPlugin:Lg.TsCheckerRspackPlugin,hashFunction:"md4",replaceCssPlugin:e=>({...e,plugins:e.plugins?.map(t=>jt(t)==="CssExtractRspackPlugin"?new jg.CssExtractRspackPlugin({filename:"[name].[contenthash].css"}):t)})}},er=e=>t_[e],$g=e=>!!Vl[e];var zg={colors:!0,chunks:!1,modules:!1,chunkModules:!1,reasons:!1,errorDetails:!1,assetsSpace:1/0,warnings:!1,assets:!0,entrypoints:!0,performance:!0};async function Si(e){let t=e.bundler??"webpack";d.debug("Generating entry points...");let{entryPointsVolume:n,paths:r}=tg(e.renderer,e.componentsFiles,e.componentsOptions),o=Vg.Volume.fromJSON({"/Server":null,"/Client":null});d.debug("Generating bundling config...");let i=e.overrideConfig??{};Object.keys(i).length&&d.debug("Found bundle config overrides. Merging...");let s=er(t),a=O=>{let F=n_({env:O,mode:e.dev?"development":"production",framework:e.framework,publicPath:e.publicPath,components:e.componentsFiles,entryPaths:r,libraryName:e.libraryIdentifier,bundler:t}),$=s.mergeConfigs(O,F,i);return e?.debugBundler&&(d.info(`${t} config for env ${O}:`),d.dir($)),$},l={sourceVolumes:[...e.sourceVolumes,n],outputVolume:o,failOnWarnings:e.failOnWarnings},[u,c]=await Promise.all([s.bundle({...l,config:a(hn.Environment.Server),outputPath:`/${hn.Environment.Server}`}),s.bundle({...l,config:a(hn.Environment.Client),outputPath:`/${hn.Environment.Client}`})]);e?.debugBundler&&(d.debug(o.toTree()),d.debug(`Server Bundler Stats: ${u.toString(zg)}`),d.debug(`Client Bundler Stats: ${c.toString(zg)}`));let p=ig(o);d.debug("Packaging server bundle...");let f=await ag(u.toJson().assets||[],o,p);d.debug("Packaging client bundle...");let m=await ug(c.toJson().assets||[],o,p),y=O=>F=>[F,O];return{outputFiles:[...f.map(y(hn.Environment.Server)),...m.map(y(hn.Environment.Client))],outputVolume:o}}function n_({env:e,mode:t="production",framework:n,publicPath:r,components:o,entryPaths:i,libraryName:s,outputPath:a,bundler:l="webpack"}){if(!$g(n))throw new Error(`Unknown framework: ${n}`);let u=Object.entries({[wr]:i[e],...o}).reduce((y,[w,O])=>({...y,[`./${w}`]:`./${(0,Wg.relative)(process.cwd(),O)}`}),{}),c=er(l),p=c.generateBaseConfig({entry:i[e],env:e,mode:t,libraryName:s,publicPath:r,outputPath:a}),f=c.getFrameworkConfig(n,e),m=c.generateFederationConfig({exposes:u,env:e,libraryName:s});return(0,Ug.default)(p,f,m)}var qg=D(require("path")),Gl=require("memfs/lib/volume"),ql=D(require("webpack-merge")),Hg=D(require("webpack-node-externals")),Ie=require("@webflow/data-types");var r_=D(require("fs")),tr=require("path"),nr=require("webpack");function o_(e,t=r_){let n=(0,tr.join)(process.cwd(),"node_modules",e);for(;n!==(0,tr.dirname)(n)&&n!=="node_modules";){let r=(0,tr.join)(n,"package.json");if(t.existsSync(r))try{let{name:o,version:i}=JSON.parse(t.readFileSync(r,"utf8"));return`${o}@${i}`}catch{return null}n=(0,tr.dirname)(n)}return null}var Ti=class{apply(t){t.hooks.compilation.tap("ProcessSourceMapsPlugin",function(n){n.hooks.processAssets.tap({name:"ProcessSourceMapsPlugin",stage:nr.Compilation.PROCESS_ASSETS_STAGE_OPTIMIZE_INLINE},function(){try{let r=n.getAssets(),o={};Object.values(r).forEach(({name:i,source:s})=>{if(!i.endsWith(".map"))return;let[a,l,u]=i.split("."),c=o[a]?.sources??{},p=o[a]?.dependencies??new Set;JSON.parse(s.source().toString()).sources.forEach(m=>{if(m.startsWith("external")){let y=m.match(/^external \S+ "(.+)"$/)?.[1];if(!y)throw new Error(`Could not extract package name from ${m}`);let w=o_(y,n.inputFileSystem);if(!w)throw new Error(`Could not find package information for ${y}`);w&&p.add(w)}}),o[a]={sources:{...c,[`./${a}.${u}`]:l},dependencies:p},n.deleteAsset(i)}),Object.entries(o).forEach(([i,{sources:s,dependencies:a}])=>{n.emitAsset(`${i}.js.map`,new nr.sources.RawSource(JSON.stringify({sources:s,dependencies:[...a]})))})}catch(r){n.errors.push(new nr.WebpackError(`[ProcessSourceMapsPlugin] Could not process source maps: ${r?.stack}`))}})})}};var Gg=D(require("module"));function Jr(e,t){let n=e.readFileSync(t,"utf-8"),r=new Gg.default(t,module);return r._compile(n,t),r}function i_(e,t){let n=`/${t}.js`,r=Jr(e,n),o=r.exports.default||r.exports;if(o&&typeof o=="object")try{let{name:i,description:s,group:a,props:l,options:u}=(0,Ie.parseComponentData)(o);return{displayName:i,description:s,group:a,props:Object.entries(l||{}).map(([c,p])=>({...p,name:c,defaultValue:typeof p.defaultValue!="string"?JSON.stringify(p.defaultValue):p.defaultValue,settings:p.settings!==void 0?JSON.stringify(p.settings):p.settings})),options:u}}catch(i){let s=i instanceof Error?i.stack:String(i);throw new Error(`Error parsing component data for '${t}': ${s}`)}throw new Error(`Could not get declaration for '${t}'`)}async function s_({declarations:e,sources:t,overrideConfig:n={},performTypeCheck:r,bundler:o="webpack"}){let i=new Gl.Volume,s=er(o),a=(0,ql.default)(s.generateBaseConfig({entry:e,env:Ie.Environment.Client,publicPath:"/",libraryName:"metadata"}),s.getFrameworkConfig(Ie.Framework.React,Ie.Environment.Client),{entry:e,mode:"development",output:{path:"/",library:{type:"commonjs2"}},target:"node",plugins:r?[new s.typeCheckerPlugin]:[]}),l=s.mergeConfigs(Ie.Environment.Client,a,n);return await s.bundle({outputPath:"/",config:l,sourceVolumes:t?[t]:[],outputVolume:i,failOnWarnings:!1}),i}async function a_({declarations:e,sources:t,overrideConfig:n={},bundler:r}){let o=new Gl.Volume,i=er(r),s=(0,ql.default)(i.generateBaseConfig({entry:e,env:Ie.Environment.Client,publicPath:"/",libraryName:"source-maps"}),i.getFrameworkConfig(Ie.Framework.React,Ie.Environment.Client),{entry:e,mode:"production",optimization:{mangleExports:"deterministic",moduleIds:"deterministic",chunkIds:"deterministic"},output:{filename:"[name].[contenthash].js",path:"/",library:{type:"commonjs2"},devtoolModuleFilenameTemplate:"[resource-path]",hashFunction:i.hashFunction},externalsPresets:{node:!0},devtool:"source-map",plugins:[new Ti],externals:[(0,Hg.default)()]}),a=i.mergeConfigs(Ie.Environment.Client,s,n);return a=i.replaceCssPlugin(a),await i.bundle({outputPath:"/",config:a,sourceVolumes:t?[t]:[],outputVolume:o,failOnWarnings:!1}),o}function l_(e){return Object.entries(e.toJSON()).reduce((t,[n,r])=>{if(n.endsWith(".map")&&r?.length){let o=qg.default.basename(n).split(".")[0];t[o]=r}return t},{})}async function Ai({declarations:e,sources:t,overrideConfig:n,performTypeCheck:r=!1,skipSourceMaps:o=!1,bundler:i="webpack"}){let[s,a]=await Promise.all([s_({declarations:e,sources:t,overrideConfig:n,performTypeCheck:r,bundler:i}),o||i==="rspack"?Promise.resolve(null):a_({declarations:e,sources:t,overrideConfig:n,bundler:i})]),{metadata:l,options:u}=Object.keys(e).reduce((p,f)=>{let m=i_(s,f);return p.metadata[f]=m,p.options[f]=m.options||{},p},{metadata:{},options:{}});return{sourceMaps:a?l_(a):{},metadata:l,options:u}}function Jg(e,{framework:t,sourceMaps:n}){return Object.fromEntries(Object.keys(e).map(r=>[r,{...e[r],id:r,framework:t,exportPath:"default",hash:n[r]}]))}it();var Kg=D(require("md5"));Ge();_e();var Yg=" - ";function u_(e){return e==="added"?` ${W.green("(Added)")}`:e==="removed"?` ${W.yellow("(Removed)")}`:e==="changed"?` ${W.blue("(Changed)")}`:""}function Zg(e){if(!e)return"";let t=JSON.parse(e);return(0,Kg.default)(JSON.stringify([...Object.values(t.sources),...t.dependencies.filter(n=>!n.includes("@webflow/data-types")&&!n.includes("@webflow/react"))].sort()))}function c_({componentsMetadata:e,latestVersion:t,sourceMaps:n}){let r=t.resource.codeLibraryResource.manifest.components.reduce((s,a)=>(s[a.id]=a,s),{}),o={};return Object.entries(r).forEach(([s,a])=>{if(!e[s])o[s]={component:a,status:"removed"};else{let l=e[s],u=Zg(n[s]),c=a.displayName&&l.displayName!==a.displayName,p=u&&a.hash&&u!==Zg(a.hash),f=c||p;o[s]={component:l,status:f?"changed":"unchanged",previousName:c?a.displayName:void 0}}}),Object.entries(e).forEach(([s,a])=>{r[s]||(o[s]={component:a,status:"added"})}),Object.values(o).map(({component:s,status:a,previousName:l})=>{let u=s.displayName,c=l?`${l} \u2192 ${u}`:u;return`${Yg}${c}${u_(a)}`}).sort().join(`
109
+ `)}function p_({componentsMetadata:e}){return Object.values(e).map(n=>`${Yg}${n.displayName}`).sort().join(`
110
+ `)}async function Xg({libraryConfig:e,componentsMetadata:t,existingCodeLibraries:n,sourceMaps:r,workspaceInfo:o}){if(re())return Promise.resolve(!0);let i=e.id?n.find(({profile:p})=>p.slug===e.id):null,s=i&&i.profile.status==="ACTIVE",a="Code components:",l=s?c_({componentsMetadata:t,latestVersion:i,sourceMaps:r}):p_({componentsMetadata:t}),u=s?`Ready to update ${e.name} on ${o.name}?`:`Ready to share ${e.name} with ${o.name}?`;return await ot({message:`${a}
111
+ ${l}
128
112
 
129
- ${l}`})}var qi=require("path"),Cy=require("memfs/lib/volume");var ky=D(require("fast-glob")),i_=e=>{let t=e.split("/");return t[t.length-1]},s_=e=>i_(e).split(".")[0];async function xy(e,t){return(await ky.default.glob(e,{absolute:!0,...t||{}})).reduce((r,o)=>{let i=s_(o);if(r[i])throw new Error(`Duplicate component '${i}' found. Already declared at ${r[i]}, but also found at ${o}.`);return{...r,[i]:o}},{})}async function Hi(e){let t=await xy(e.components,{cwd:(0,qi.dirname)(e.manifestPath),ignore:[e.globals,e.bundleConfig].filter(o=>o!=null)});if(!Object.keys(t).length)throw new Error("No declaration files found");let{componentsFiles:n,componentsVolume:r}=a_(t,e.renderer.client,e.globals);return{componentsFiles:n,componentsVolume:r}}function a_(e,t,n){let r={},o={};return Object.entries(e).forEach(([i,s])=>{let a=(0,qi.extname)(s),u=`${st}/${vg}/${i}${a}`;r[i]=u,o[u]=l_(t,s,n)}),{componentsFiles:r,componentsVolume:Cy.Volume.fromJSON(o)}}function l_(e,t,n){return n?`
113
+ ${u}`})}var Oi=require("path"),ty=require("memfs/lib/volume");var Qg=D(require("fast-glob")),d_=e=>{let t=e.split("/");return t[t.length-1]},f_=e=>d_(e).split(".")[0];async function ey(e,t){return(await Qg.default.glob(e,{absolute:!0,...t||{}})).reduce((r,o)=>{let i=f_(o);if(r[i])throw new Error(`Duplicate component '${i}' found. Already declared at ${r[i]}, but also found at ${o}.`);return{...r,[i]:o}},{})}async function Pi(e){let t=await ey(e.components,{cwd:(0,Oi.dirname)(e.manifestPath),ignore:[e.globals,e.bundleConfig].filter(o=>o!=null)});if(!Object.keys(t).length)throw new Error("No declaration files found");let{componentsFiles:n,componentsVolume:r}=m_(t,e.renderer.client,e.globals);return{componentsFiles:n,componentsVolume:r}}function m_(e,t,n){let r={},o={};return Object.entries(e).forEach(([i,s])=>{let a=(0,Oi.extname)(s),l=`${et}/${Xh}/${i}${a}`;r[i]=l,o[l]=h_(t,s,n)}),{componentsFiles:r,componentsVolume:ty.Volume.fromJSON(o)}}function h_(e,t,n){return n?`
130
114
  import { applyDecorators } from "${e}";
131
115
  import componentDefinition from "${t}";
132
116
  const globals = require("${n}") || {};
@@ -148,21 +132,21 @@ export default decoratedDefinition;
148
132
  `.trim():`
149
133
  import componentDefinition from "${t}";
150
134
  export default {...componentDefinition};
151
- `.trim()}Rn();G();ke();var u_="fbab9abdbeeb35bb2554a1b83b8bd060d719f22eca26ff9119b87608c87c0074",c_=["code_components:read","code_components:write"];function p_(){return u_}async function Ey(e){let t=e?.apiToken||process.env.WEBFLOW_WORKSPACE_API_TOKEN;if(!t&&Ye()&&(d.debug("No workspace API token found. Performing OAuth..."),t=await Bn({clientId:p_(),scope:c_}),t&&Kt({workspaceApiToken:t})),!t)throw new Error("Workspace API token is required.");return t}Zi();var Sy=require("@webflow/data-types"),Ki={renderer:{client:"@webflow/react",server:"@webflow/react"},components:["**/*.webflow.@(js|jsx|mjs|ts|tsx)"],framework:Sy.Framework.React};var dr=require("path"),fr=require("fs");Ke();Ue();G();Te();function wt(e){return e.replace(/\\/g,"/")}ke();de();function Ty(e){let t={...e};if(e.globals){let n=(0,dr.resolve)(process.cwd(),e.globals);if(!(0,fr.existsSync)(n))throw new Error(`Globals file not found: ${e.globals}
135
+ `.trim()}Gt();var ny=require("path"),ry=require("fs-extra");function Bi(e,t){try{let n=g_(),r=y_(Object.values(e)),o=t?.force;return r&&n&&!o}catch{return!1}}var g_=()=>{try{return(0,ry.existsSync)((0,ny.join)(process.cwd(),"tsconfig.json"))}catch{return!1}},y_=e=>e.some(t=>t.endsWith(".ts")||t.endsWith(".tsx"));var oy=require("@webflow/data-types"),Ii={renderer:{client:"@webflow/react",server:"@webflow/react"},components:["**/*.webflow.@(js|jsx|mjs|ts|tsx)"],framework:oy.Framework.React};var rr=require("path"),or=require("fs");Ge();it();q();De();function ft(e){return e.replace(/\\/g,"/")}_e();ce();function iy(e){let t={...e};if(e.globals){let n=(0,rr.resolve)(process.cwd(),e.globals);if(!(0,or.existsSync)(n))throw new Error(`Globals file not found: ${e.globals}
152
136
  Resolved path: ${n}
153
- Please ensure the file exists or remove the 'globals' field from your manifest.`);t.globals=wt(n)}if(e.bundleConfig){let n=(0,dr.resolve)(process.cwd(),e.bundleConfig);if(!(0,fr.existsSync)(n))throw new Error(`Bundle config file not found: ${e.bundleConfig}
137
+ Please ensure the file exists or remove the 'globals' field from your manifest.`);t.globals=ft(n)}if(e.bundleConfig){let n=(0,rr.resolve)(process.cwd(),e.bundleConfig);if(!(0,or.existsSync)(n))throw new Error(`Bundle config file not found: ${e.bundleConfig}
154
138
  Resolved path: ${n}
155
- Please ensure the file exists or remove the 'bundleConfig' field from your manifest.`);t.bundleConfig=wt(n)}if(typeof e.renderer=="string"){let n=(0,dr.resolve)(process.cwd(),e.renderer);(0,fr.existsSync)(n)&&(t.renderer=wt(n))}else if(typeof e.renderer=="object"&&typeof t.renderer=="object"){if(typeof e.renderer.client=="string"){let n=(0,dr.resolve)(process.cwd(),e.renderer.client);(0,fr.existsSync)(n)&&(t.renderer={...t.renderer,client:wt(n)})}if(typeof e.renderer.server=="string"){let n=(0,dr.resolve)(process.cwd(),e.renderer.server);(0,fr.existsSync)(n)&&(t.renderer={...t.renderer,server:wt(n)})}}return t}async function d_({initialData:e}){let t=await ye({message:"Enter a name for your code library",validate:o=>o.trim()===""?"The library name cannot be empty.":!0,default:e?.name});if(t==null)throw new S("When --no-input mode is enabled please provide a name in your library manifest");let n=await ye({message:"Enter a description for your code library",default:e?.description??""});if(!await ge({message:"Is the code (including 3rd party packages) you are uploading to Webflow trusted and secure?"}))throw new Error("Code library is not trusted and secure");return{name:t,description:n}}async function f_({existingCodeLibraries:e}){return await Ae({message:"Select existing code library (or create new)",choices:[{name:"[Create new code library]",value:null},...e.map(({resource:n,profile:r})=>{let o=`${n.codeLibraryResource.manifest.name} (${r.slug})`;r.status==="ARCHIVED"&&(o+=` ${z.yellow("(Unshared)")}`);let i={id:r.slug,name:n.codeLibraryResource.manifest.name,description:n.codeLibraryResource.manifest.description};return{name:o,value:i}})]})}async function du({initialData:e,existingCodeLibraries:t}){let n,r={components:Ki.components},o=t.length>0?await f_({existingCodeLibraries:t}):null;if(o)n={...r,...o,...e,id:o.id};else{let a=await d_({initialData:e});n={...r,...e,...a}}let i=Ty(n);ae({library:i});let{path:s}=Gt();return{libraryManifest:i,manifestPath:s}}async function Ay({existingCodeLibraries:e}){let t=d.spinner("Looking for webflow.json manifest");try{let{manifest:n,manifestPath:r}=oe(),o=Sr(n,"library");if(!o.id){if(Ye())return t.succeed(),du({initialData:o,existingCodeLibraries:e});throw new Error("Library manifest does not have an id")}let i=o.name??e.find(({profile:a})=>a.slug===o.id)?.resource.codeLibraryResource.manifest.name;if(!i&&Ye())return t.succeed(),du({initialData:o,existingCodeLibraries:e});i||(i=o.id),t.succeed();let s=Ty({...o,name:i});return Promise.resolve({libraryManifest:s,manifestPath:r})}catch(n){if(n instanceof Vt&&Ye())return t.info(n.message),du({existingCodeLibraries:e});throw t.fail(),n}}var fu=require("memfs/lib/volume"),Iy=D(require("webpack-merge"));var By="/client-renderer.js",Ry="/server-renderer.js",Oy=`${st}/test-renderers${By}`,Py=`${st}/test-renderers${Ry}`,m_=new Set(["@webflow/react"]),h_=new Set(["@webflow/react","@webflow/emotion-utils/server","@webflow/styled-components-utils/server"]);async function jy(e){if(!e.client||!e.server)throw new Error("Invalid renderer configuration. Both client and server renderers must be specified.");if(m_.has(e.client)&&h_.has(e.server))return;let t=await b_(e);g_(e.client,t),y_(e.server,t)}function g_(e,t){let n=co(t,By);if(typeof n.exports.ClientRenderer!="function")throw new Error(`Invalid client renderer: ${e} does not have a valid 'ClientRenderer' export.`);if(typeof n.exports.applyDecorators!="function")throw new Error(`Invalid client renderer: ${e} does not have a valid 'applyDecorators' export.`);let r=()=>null,o=n.exports.ClientRenderer(r),i=["mount","hydrate","render","createSlot"];for(let s of i)if(typeof o[s]!="function")throw new Error(`Invalid client renderer: ${e} ClientRenderer must return an object with a '${s}' function.`)}function y_(e,t){let n=co(t,Ry);if(typeof n.exports.ServerRenderer!="function")throw new Error(`Invalid server renderer: ${e} does not have a valid 'ServerRenderer' export.`);let r=()=>null,o=n.exports.ServerRenderer(r),i=["renderToStream","renderToString","createSlot"];for(let s of i)if(typeof o[s]!="function")throw new Error(`Invalid server renderer: ${e} ServerRenderer must return an object with a '${s}' function.`)}async function b_(e){let t=new fu.Volume,n=wt(e.client),r=wt(e.server),o={[Oy]:`
139
+ Please ensure the file exists or remove the 'bundleConfig' field from your manifest.`);t.bundleConfig=ft(n)}if(typeof e.renderer=="string"){let n=(0,rr.resolve)(process.cwd(),e.renderer);(0,or.existsSync)(n)&&(t.renderer=ft(n))}else if(typeof e.renderer=="object"&&typeof t.renderer=="object"){if(typeof e.renderer.client=="string"){let n=(0,rr.resolve)(process.cwd(),e.renderer.client);(0,or.existsSync)(n)&&(t.renderer={...t.renderer,client:ft(n)})}if(typeof e.renderer.server=="string"){let n=(0,rr.resolve)(process.cwd(),e.renderer.server);(0,or.existsSync)(n)&&(t.renderer={...t.renderer,server:ft(n)})}}return t}async function b_({initialData:e}){let t=await $e({message:"Enter a name for your code library",validate:o=>o.trim()===""?"The library name cannot be empty.":!0,default:e?.name});if(t==null)throw new T("When --no-input mode is enabled please provide a name in your library manifest");let n=await $e({message:"Enter a description for your code library",default:e?.description??""});if(!await ot({message:"Is the code (including 3rd party packages) you are uploading to Webflow trusted and secure?"}))throw new Error("Code library is not trusted and secure");return{name:t,description:n}}async function D_({existingCodeLibraries:e}){return await Ee({message:"Select existing code library (or create new)",choices:[{name:"[Create new code library]",value:null},...e.map(({resource:n,profile:r})=>{let o=`${n.codeLibraryResource.manifest.name} (${r.slug})`;r.status==="ARCHIVED"&&(o+=` ${W.yellow("(Unshared)")}`);let i={id:r.slug,name:n.codeLibraryResource.manifest.name,description:n.codeLibraryResource.manifest.description};return{name:o,value:i}})]})}async function Hl({initialData:e,existingCodeLibraries:t}){let n,r={components:Ii.components},o=t.length>0?await D_({existingCodeLibraries:t}):null;if(o)n={...r,...o,...e,id:o.id};else{let a=await b_({initialData:e});n={...r,...e,...a}}let i=iy(n);le({library:i});let{path:s}=Nt();return{libraryManifest:i,manifestPath:s}}async function sy({existingCodeLibraries:e}){let t=d.spinner("Looking for webflow.json manifest");try{let{manifest:n,manifestPath:r}=ne(),o=gr(n,"library");if(!o.id){if(gt())return t.succeed(),Hl({initialData:o,existingCodeLibraries:e});throw new Error("Library manifest does not have an id")}let i=o.name??e.find(({profile:a})=>a.slug===o.id)?.resource.codeLibraryResource.manifest.name;if(!i&&gt())return t.succeed(),Hl({initialData:o,existingCodeLibraries:e});i||(i=o.id),t.succeed();let s=iy({...o,name:i});return Promise.resolve({libraryManifest:s,manifestPath:r})}catch(n){if(n instanceof Lt&&gt())return t.info(n.message),Hl({existingCodeLibraries:e});throw t.fail(),n}}var Jl=require("memfs/lib/volume"),uy=D(require("webpack-merge"));var cy="/client-renderer.js",py="/server-renderer.js",ay=`${et}/test-renderers${cy}`,ly=`${et}/test-renderers${py}`,w_=new Set(["@webflow/react"]),v_=new Set(["@webflow/react","@webflow/emotion-utils/server","@webflow/styled-components-utils/server"]);async function dy(e){if(!e.client||!e.server)throw new Error("Invalid renderer configuration. Both client and server renderers must be specified.");if(w_.has(e.client)&&v_.has(e.server))return;let t=await C_(e);k_(e.client,t),x_(e.server,t)}function k_(e,t){let n=Jr(t,cy);if(typeof n.exports.ClientRenderer!="function")throw new Error(`Invalid client renderer: ${e} does not have a valid 'ClientRenderer' export.`);if(typeof n.exports.applyDecorators!="function")throw new Error(`Invalid client renderer: ${e} does not have a valid 'applyDecorators' export.`);let r=()=>null,o=n.exports.ClientRenderer(r),i=["mount","hydrate","render","createSlot"];for(let s of i)if(typeof o[s]!="function")throw new Error(`Invalid client renderer: ${e} ClientRenderer must return an object with a '${s}' function.`)}function x_(e,t){let n=Jr(t,py);if(typeof n.exports.ServerRenderer!="function")throw new Error(`Invalid server renderer: ${e} does not have a valid 'ServerRenderer' export.`);let r=()=>null,o=n.exports.ServerRenderer(r),i=["renderToStream","renderToString","createSlot"];for(let s of i)if(typeof o[s]!="function")throw new Error(`Invalid server renderer: ${e} ServerRenderer must return an object with a '${s}' function.`)}async function C_(e){let t=new Jl.Volume,n=ft(e.client),r=ft(e.server),o={[ay]:`
156
140
  export * from "${n}";
157
- `,[Py]:`
141
+ `,[ly]:`
158
142
  export * from "${r}";
159
- `},i=(0,Iy.default)(Li(),{entry:{"client-renderer":Oy,"server-renderer":Py},mode:"development",output:{path:"/",filename:"[name].js",library:{type:"commonjs2"}},target:"node"});return await $i({config:i,sourceVolumes:[fu.Volume.fromJSON(o)],outputVolume:t,failOnWarnings:!1}),t}async function Yi({existingCodeLibraries:e}){let{libraryManifest:t,manifestPath:n}=await Ay({existingCodeLibraries:e}),{renderer:r,...o}=Ki,i=typeof t.renderer=="string"?{client:t.renderer,server:t.renderer}:{client:t.renderer?.client??r.client,server:t.renderer?.server??r.server};return await jy(i),{...o,...t,renderer:i,manifestPath:n}}de();async function D_(e,t){let{trackPerformance:n,libraryConfig:r}=e;return await n("collect_metadata",async()=>{let{componentsFiles:o,componentsVolume:i}=await Hi(r);d.debug(`Components: ${JSON.stringify(o,null,2)}`);let{sourceMaps:s,metadata:a,options:u}=await Gi({declarations:o,sources:i,overrideConfig:e.overrideConfig,performTypeCheck:Ji(o,t),bundler:t?.bundler});return d.debug(`Metadata: ${JSON.stringify(a,null,2)}`),d.debug(`Source Maps:
143
+ `},i=(0,uy.default)(ki(),{entry:{"client-renderer":ay,"server-renderer":ly},mode:"development",output:{path:"/",filename:"[name].js",library:{type:"commonjs2"}},target:"node"});return await Fi({config:i,sourceVolumes:[Jl.Volume.fromJSON(o)],outputVolume:t,failOnWarnings:!1}),t}async function ji({existingCodeLibraries:e}){let{libraryManifest:t,manifestPath:n}=await sy({existingCodeLibraries:e}),{renderer:r,...o}=Ii,i=typeof t.renderer=="string"?{client:t.renderer,server:t.renderer}:{client:t.renderer?.client??r.client,server:t.renderer?.server??r.server};return await dy(i),{...o,...t,renderer:i,manifestPath:n}}ce();async function F_(e,t){let{trackPerformance:n,libraryConfig:r}=e;return await n("collect_metadata",async()=>{let{componentsFiles:o,componentsVolume:i}=await Pi(r);d.debug(`Components: ${JSON.stringify(o,null,2)}`);let{sourceMaps:s,metadata:a,options:l}=await Ai({declarations:o,sources:i,overrideConfig:e.overrideConfig,performTypeCheck:Bi(o,t),bundler:t?.bundler});return d.debug(`Metadata: ${JSON.stringify(a,null,2)}`),d.debug(`Source Maps:
160
144
 
161
- ${Object.entries(s).reduce((l,[c,p])=>(l+=`${c}: ${JSON.stringify(JSON.parse(p),null,2)}
145
+ ${Object.entries(s).reduce((u,[c,p])=>(u+=`${c}: ${JSON.stringify(JSON.parse(p),null,2)}
162
146
 
163
- `,l),"")}`),{componentsFiles:o,componentsVolume:i,componentsMetadata:a,componentsOptions:u,sourceMaps:s}})}async function w_(e,t,n,r,o,i,s){let{trackPerformance:a,libraryConfig:u}=e;return await a("generate_library_bundle",async()=>await Ui({libraryIdentifier:`_${o}`,renderer:u.renderer,framework:u.framework,publicPath:$t(i[mr.Environment.Client]),sourceVolumes:[n],componentsFiles:t,componentsOptions:r,debugBundler:s?.debugBundler,dev:s?.dev,overrideConfig:e.overrideConfig,failOnWarnings:!s?.force,bundler:s?.bundler}))}async function v_(e,t,n,r){let{trackPerformance:o,apiOptions:i}=e;return await o("upload_files",async()=>{let s=t.map(([u,l])=>{let c=(0,Xi.resolve)((0,Xi.join)(`/${l}`,`${u.name}`));return ao(n.readFileSync(c,"utf8").toString(),c,{bundleEnvironment:l})}),{signatures:a}=await Xl({resourceId:r,files:s.map(({meta:u})=>u),options:i});await Promise.all(a.map(async u=>{let l=s.find(c=>c.meta.fileHash===u.hash);if(!l)throw new Error(`File not found: ${u.hash}`);await Zl(l,u.value)}))})}async function k_(e,t,n,r,o){let{trackPerformance:i,libraryConfig:s,apiOptions:a}=e;return await i("share_library",async()=>{let u={clientModule:{bundleUrl:$t(o[mr.Environment.Client])+Or,loaderType:mr.ModuleLoader.FEDERATION},serverModule:{bundleUrl:$t(o[mr.Environment.Server])+Ir}},l=yy(t,{framework:s.framework,sourceMaps:n}),{taskId:c}=await Ql({resourceId:r,codeModule:u,components:Object.values(l),options:a});d.debug(JSON.stringify({taskId:c},null,2))})}async function mu(e){e?.verbose&&(process.env.DEBUG="true");let t,n=Date.now(),r;d.debug("Initializing workspace API token...");try{r=await Ey(e)}catch(s){throw d.error(s),s}d.debug("Initializing telemetry service...");let o=he.forCodeLibraries({authToken:r}),i=Nc(o);try{d.debug("Checking dependencies versions..."),new Jt().run();let s={workspaceApiToken:r};t=d.spinner("Initializing");let a=await i("get_code_libraries",async()=>await Kl({options:s})),{workspace:u,libraries:l}=a;t.succeed(),d.debug("Parsing library config...");let c=await Yi({existingCodeLibraries:l}),p=c.bundleConfig?require(c.bundleConfig):{},m={trackPerformance:i,apiOptions:s,libraryConfig:c,overrideConfig:p};t=d.spinner("Collecting metadata");let{componentsFiles:f,componentsVolume:y,componentsMetadata:C,componentsOptions:P,sourceMaps:_}=await D_(m,e);if(t.succeed(),!await vy({libraryConfig:c,componentsMetadata:C,existingCodeLibraries:l,sourceMaps:_,workspaceInfo:u}))return;t=d.spinner("Creating code library");let{resourceId:x,profileSlug:T,workspace:q,s3Urls:j,cdnUrls:F}=await i("init_code_library",async()=>await Yl({name:c.name,slug:c.id,description:c.description,options:s}));t.succeed(),d.debug(JSON.stringify({resourceId:x,profileSlug:T,s3Urls:j,cdnUrls:F},null,2)),await o.sendUsage("library_initialized",{libraryName:c.name,framework:c.framework,resourceId:x,profileSlug:T}),c.id||ae({library:{id:T}}),t=d.spinner("Compiling code components");let{outputFiles:h,outputVolume:g}=await w_(m,f,y,P,x,F,e);t.succeed(),await o.sendUsage("bundle_generated",{libraryName:c.name,componentCount:Object.keys(f).length,resourceId:x,profileSlug:T}),t=d.spinner("Uploading files"),await v_(m,h,g,x),t.succeed(),await o.sendUsage("files_uploaded",{libraryName:c.name,fileCount:h.length,resourceId:x,profileSlug:T}),t=d.spinner("Sharing library"),await k_(m,C,_,x,F),t.succeed(),d.success(`Code library shared successfully${q?.slug?`: ${An}/dashboard/workspace/${q?.slug}/shared-libraries-and-templates`:"!"}`);let B=Date.now()-n;await o.sendUsage("share_library",{duration:B,componentCount:Object.keys(f).length,libraryName:c.name,framework:c.framework,resourceId:x,profileSlug:T})}catch(s){t?.fail();let a=Date.now()-n;throw await o.sendError(s instanceof Error?s:new Error(String(s)),"share_library",{duration:a}),new S(s)}}var Qi=D(require("fs")),hr=require("path");G();Zi();de();function x_(e){return e.replace(/[-_]+/g," ").replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).replace(/\s+/g,"")}var C_="dist",E_="http://localhost/";async function hu(e){e.verbose&&(process.env.DEBUG="true");let t;try{d.debug("Checking dependencies versions..."),new Jt().run(),d.debug("Looking for manifest...");let n=await Yi({existingCodeLibraries:[]}),r=`_${e.libraryId||x_(n.name)}`;e?.debugBundler&&d.debug(`Library Config: ${JSON.stringify(n,null,2)}`),t=d.spinner("Collecting metadata");let{componentsFiles:o,componentsVolume:i}=await Hi(n);e?.debugBundler&&d.debug(`Components: ${JSON.stringify(o,null,2)}`);let s=n.bundleConfig?require(n.bundleConfig):{},{sourceMaps:a,metadata:u,options:l}=await Gi({declarations:o,sources:i,overrideConfig:s,performTypeCheck:Ji(o,e),skipSourceMaps:!e?.debugBundler,bundler:e.bundler});e?.debugBundler&&(d.debug(`Metadata: ${JSON.stringify(u,null,2)}`),d.debug(`Source Maps:
147
+ `,u),"")}`),{componentsFiles:o,componentsVolume:i,componentsMetadata:a,componentsOptions:l,sourceMaps:s}})}async function __(e,t,n,r,o,i,s){let{trackPerformance:a,libraryConfig:l}=e;return await a("generate_library_bundle",async()=>await Si({libraryIdentifier:`_${o}`,renderer:l.renderer,framework:l.framework,publicPath:It(i[ir.Environment.Client]),sourceVolumes:[n],componentsFiles:t,componentsOptions:r,debugBundler:s?.debugBundler,dev:s?.dev,overrideConfig:e.overrideConfig,failOnWarnings:!s?.force,bundler:s?.bundler}))}async function E_(e,t,n,r){let{trackPerformance:o,apiOptions:i}=e;return await o("upload_files",async()=>{let s=t.map(([l,u])=>{let c=(0,Ri.resolve)((0,Ri.join)(`/${u}`,`${l.name}`));return Gr(n.readFileSync(c,"utf8").toString(),c,{bundleEnvironment:u})}),{signatures:a}=await jl({resourceId:r,files:s.map(({meta:l})=>l),options:i});await Promise.all(a.map(async l=>{let u=s.find(c=>c.meta.fileHash===l.hash);if(!u)throw new Error(`File not found: ${l.hash}`);await Pl(u,l.value)}))})}async function S_(e,t,n,r,o){let{trackPerformance:i,libraryConfig:s,apiOptions:a}=e;return await i("share_library",async()=>{let l={clientModule:{bundleUrl:It(o[ir.Environment.Client])+Dr,loaderType:ir.ModuleLoader.FEDERATION},serverModule:{bundleUrl:It(o[ir.Environment.Server])+vr}},u=Jg(t,{framework:s.framework,sourceMaps:n}),{taskId:c}=await Rl({resourceId:r,codeModule:l,components:Object.values(u),options:a});d.debug(JSON.stringify({taskId:c},null,2))})}async function Zl(e){e?.verbose&&(process.env.DEBUG="true");let t,n=Date.now(),r;try{r=await Ut({apiToken:e?.apiToken})}catch(s){throw d.error(s),s}d.debug("Initializing telemetry service...");let o=we.forCodeLibraries({authToken:r}),i=dc(o);try{d.debug("Checking dependencies versions..."),new $t().run();let s={apiToken:r};t=d.spinner("Initializing");let a=await i("get_code_libraries",async()=>await Bl({options:s})),{workspace:l,libraries:u}=a;t.succeed(),d.debug("Parsing library config...");let c=await ji({existingCodeLibraries:u}),p=c.bundleConfig?require(c.bundleConfig):{},f={trackPerformance:i,apiOptions:s,libraryConfig:c,overrideConfig:p};t=d.spinner("Collecting metadata");let{componentsFiles:m,componentsVolume:y,componentsMetadata:w,componentsOptions:O,sourceMaps:F}=await F_(f,e);if(t.succeed(),!await Xg({libraryConfig:c,componentsMetadata:w,existingCodeLibraries:u,sourceMaps:F,workspaceInfo:l}))return;t=d.spinner("Creating code library");let{resourceId:x,profileSlug:S,workspace:G,s3Urls:R,cdnUrls:_}=await i("init_code_library",async()=>await Il({name:c.name,slug:c.id,description:c.description,options:s}));t.succeed(),d.debug(JSON.stringify({resourceId:x,profileSlug:S,s3Urls:R,cdnUrls:_},null,2)),await o.sendUsage("library_initialized",{libraryName:c.name,framework:c.framework,resourceId:x,profileSlug:S}),c.id||le({library:{id:S}}),t=d.spinner("Compiling code components");let{outputFiles:h,outputVolume:g}=await __(f,m,y,O,x,_,e);t.succeed(),await o.sendUsage("bundle_generated",{libraryName:c.name,componentCount:Object.keys(m).length,resourceId:x,profileSlug:S}),t=d.spinner("Uploading files"),await E_(f,h,g,x),t.succeed(),await o.sendUsage("files_uploaded",{libraryName:c.name,fileCount:h.length,resourceId:x,profileSlug:S}),t=d.spinner("Sharing library"),await S_(f,w,F,x,_),t.succeed(),d.success(`Code library shared successfully${G?.slug?`: ${Cn}/dashboard/workspace/${G?.slug}/shared-libraries-and-templates`:"!"}`);let I=Date.now()-n;await o.sendUsage("share_library",{duration:I,componentCount:Object.keys(m).length,libraryName:c.name,framework:c.framework,resourceId:x,profileSlug:S})}catch(s){t?.fail();let a=Date.now()-n;throw await o.sendError(s instanceof Error?s:new Error(String(s)),"share_library",{duration:a}),new T(s)}}var Li=D(require("fs")),sr=require("path");q();ce();function T_(e){return e.replace(/[-_]+/g," ").replace(/\w\S*/g,t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase()).replace(/\s+/g,"")}var A_="dist",O_="http://localhost/";async function Kl(e){e.verbose&&(process.env.DEBUG="true");let t;try{d.debug("Checking dependencies versions..."),new $t().run(),d.debug("Looking for manifest...");let n=await ji({existingCodeLibraries:[]}),r=`_${e.libraryId||T_(n.name)}`;e?.debugBundler&&d.debug(`Library Config: ${JSON.stringify(n,null,2)}`),t=d.spinner("Collecting metadata");let{componentsFiles:o,componentsVolume:i}=await Pi(n);e?.debugBundler&&d.debug(`Components: ${JSON.stringify(o,null,2)}`);let s=n.bundleConfig?require(n.bundleConfig):{},{sourceMaps:a,metadata:l,options:u}=await Ai({declarations:o,sources:i,overrideConfig:s,performTypeCheck:Bi(o,e),skipSourceMaps:!e?.debugBundler,bundler:e.bundler});e?.debugBundler&&(d.debug(`Metadata: ${JSON.stringify(l,null,2)}`),d.debug(`Source Maps:
164
148
 
165
- ${Object.entries(a).reduce((m,[f,y])=>(m+=`${f}: ${JSON.stringify(JSON.parse(y),null,2)}
149
+ ${Object.entries(a).reduce((f,[m,y])=>(f+=`${m}: ${JSON.stringify(JSON.parse(y),null,2)}
166
150
 
167
- `,m),"")}`)),t.succeed(),t=d.spinner("Generating library bundle");let{outputFiles:c,outputVolume:p}=await Ui({libraryIdentifier:r,renderer:n.renderer,framework:n.framework,publicPath:$t(e.publicPath||E_),sourceVolumes:[i],componentsFiles:o,componentsOptions:l,debugBundler:e?.debugBundler,dev:e?.dev,overrideConfig:s,failOnWarnings:!e.force,bundler:e.bundler});t.succeed(),t=d.spinner("Writing to disk"),c.forEach(([m,f])=>{let y=(0,hr.join)(`/${f}`,`${m.name}`),C=ao(p.readFileSync(y,"utf8").toString(),y,{bundleEnvironment:f}),P=(0,hr.join)(process.cwd(),e.outputPath||C_);Qi.default.existsSync((0,hr.join)(P,`${f}`))||Qi.default.mkdirSync((0,hr.join)(P,`${f}`),{recursive:!0}),Qi.default.writeFileSync((0,hr.join)(P,f,m.name),C.value.toString())}),t.succeed(),d.success("Code Library bundled successfully!")}catch(n){throw t?.fail(),new S(n)}}var po=D(require("fs-extra")),gu=D(require("path"));G();lt();function F_(){try{if(!po.default.existsSync(xe))return null;let e=po.default.readdirSync(xe).filter(t=>t.endsWith(".log")).map(t=>({name:t,path:gu.default.join(xe,t),time:po.default.statSync(gu.default.join(xe,t)).mtime.getTime()})).sort((t,n)=>n.time-t.time);if(e.length===0)return null;for(let t of e)try{let r=po.default.readFileSync(t.path,"utf8").match(/Command: (.+)/);if(r){let o=r[1];if(!/^(log|library\s+log)(\s|$)/.test(o))return t.path}}catch{continue}return null}catch{return null}}async function yu(){let e=F_();e&&console.info(`${Sn} Latest log: ${e}`),console.info(`${Sn} All logs: ${xe}`)}async function Ly(e){e.command("log").description("Display the logs directory and path to the latest log file, if available.").action(yu)}function fo(e,t){t.forEach(n=>{e.addOption(n)}),e.commands.forEach(n=>fo(n,t))}var Ny=new gr.Option("--force","Forces the bundler to finish compiling, even if there are warnings or type errors."),My=new gr.Option("--debug-bundler","Display final bundler configurations for debugging purposes."),$y=new gr.Option("--dev","Bundle in development mode for debugging purposes."),Wy=new gr.Option("--bundler <engine>","Bundler to use: webpack or rspack (experimental). Default: webpack").choices(["webpack","rspack"]).default("webpack").hideHelp(),zy=e=>{let t=e.command("library").description("CLI for managing your Webflow libraries of Code Components.").addOption(Ny).addOption(My).addOption($y);t.command("share").description("Share a library of Code Components to your Webflow Workspace.").option("--api-token <token>","Workspace API token. Default: value set in WEBFLOW_WORKSPACE_API_TOKEN env variable.").addOption(Wy).action(async(n,r)=>{let o=r.parent?.opts()||{},i={...n,...o};await mu(i)}),t.command("bundle").description("Bundle a library of Code Components for local development. Does not share to Webflow.").addOption(new gr.Option("--library-id <id>","Set the library identifier to use for the bundle.").hideHelp()).option("--public-path <path>","Set the public path for the bundle.").option("--output-path <path>","Override the output path for the bundle. Default is './dist'").addOption(Wy).action(async(n,r)=>{let o=r.parent?.opts()||{},i={...n,...o};await hu(i)}),t.command("log").description("Display the logs directory and path to the latest log file, if available.").action(yu),t.commands.forEach(n=>{fo(n,[Ny,My,$y])})};var pb=D(Ao());var ab=new ho.Option("--no-input","Avoid prompting or doing anything interactive. Use this for CI/CD pipelines."),lb=new ho.Option("--manifest <path>","Path to a manifest .json file or directory containing webflow.json. Default: ./webflow.json"),ub=new ho.Option("--skip-update-check","Skip checking for @webflow packages updates"),cb=new ho.Option("--verbose","Display more information for debugging purposes.");function db(e){let t=pb.default.version;e.name("webflow").description("Webflow CLI").version(t).addOption(ab).addOption(lb).addOption(ub).addOption(cb).showHelpAfterError(),e.hook("preAction",async n=>{let r=n.opts();r.input||xc(!0),pt.start(),r.manifest&&Cc(r.manifest);try{await he.promptForConsentIfNeeded()}catch(o){d.debug(`Failed to check telemetry preference: ${o}`)}try{r.skipUpdateCheck||await new Rr().prompt()}catch(o){d.debug(`Failed to check for package updates: ${o}`)}}),e.hook("postAction",async()=>{pt.displayGrouped(),pt.stop()}),op(e),Rp(e),Dh(e),yg(e),zy(e),Ly(e);{let{init:n}=(sb(),wb(ib));n(e)}e.commands.forEach(n=>{fo(n,[ab,lb,ub,cb])})}G();de();var mb=new fb.Command;db(mb);mb.parseAsync().catch(e=>{e instanceof S?e.skipLogging||d.error(e,{prefix:e.prefix}):d.error(e),process.exit(1)});
151
+ `,f),"")}`)),t.succeed(),t=d.spinner("Generating library bundle");let{outputFiles:c,outputVolume:p}=await Si({libraryIdentifier:r,renderer:n.renderer,framework:n.framework,publicPath:It(e.publicPath||O_),sourceVolumes:[i],componentsFiles:o,componentsOptions:u,debugBundler:e?.debugBundler,dev:e?.dev,overrideConfig:s,failOnWarnings:!e.force,bundler:e.bundler});t.succeed(),t=d.spinner("Writing to disk"),c.forEach(([f,m])=>{let y=(0,sr.join)(`/${m}`,`${f.name}`),w=Gr(p.readFileSync(y,"utf8").toString(),y,{bundleEnvironment:m}),O=(0,sr.join)(process.cwd(),e.outputPath||A_);Li.default.existsSync((0,sr.join)(O,`${m}`))||Li.default.mkdirSync((0,sr.join)(O,`${m}`),{recursive:!0}),Li.default.writeFileSync((0,sr.join)(O,m,f.name),w.value.toString())}),t.succeed(),d.success("Code Library bundled successfully!")}catch(n){throw t?.fail(),new T(n)}}var Zr=D(require("fs-extra")),Yl=D(require("path"));q();nt();function P_(){try{if(!Zr.default.existsSync(ve))return null;let e=Zr.default.readdirSync(ve).filter(t=>t.endsWith(".log")).map(t=>({name:t,path:Yl.default.join(ve,t),time:Zr.default.statSync(Yl.default.join(ve,t)).mtime.getTime()})).sort((t,n)=>n.time-t.time);if(e.length===0)return null;for(let t of e)try{let r=Zr.default.readFileSync(t.path,"utf8").match(/Command: (.+)/);if(r){let o=r[1];if(!/^(log|library\s+log)(\s|$)/.test(o))return t.path}}catch{continue}return null}catch{return null}}async function Xl(){let e=P_();e&&console.info(`${kn} Latest log: ${e}`),console.info(`${kn} All logs: ${ve}`)}async function fy(e){e.command("log").description("Display the logs directory and path to the latest log file, if available.").action(Xl)}function Kr(e,t){t.forEach(n=>{e.addOption(n)}),e.commands.forEach(n=>Kr(n,t))}var my=new ar.Option("--force","Forces the bundler to finish compiling, even if there are warnings or type errors."),hy=new ar.Option("--debug-bundler","Display final bundler configurations for debugging purposes."),gy=new ar.Option("--dev","Bundle in development mode for debugging purposes."),yy=new ar.Option("--bundler <engine>","Bundler to use: webpack or rspack (experimental). Default: webpack").choices(["webpack","rspack"]).default("webpack").hideHelp(),by=e=>{let t=e.command("library").description("CLI for managing your Webflow libraries of Code Components.").addOption(my).addOption(hy).addOption(gy);t.command("share").description("Share a library of Code Components to your Webflow Workspace.").option("--api-token <token>","API token. Default: value set in WEBFLOW_API_TOKEN env variable.").addOption(yy).action(async(n,r)=>{let o=r.parent?.opts()||{},i={...n,...o};await Zl(i)}),t.command("bundle").description("Bundle a library of Code Components for local development. Does not share to Webflow.").addOption(new ar.Option("--library-id <id>","Set the library identifier to use for the bundle.").hideHelp()).option("--public-path <path>","Set the public path for the bundle.").option("--output-path <path>","Override the output path for the bundle. Default is './dist'").addOption(yy).action(async(n,r)=>{let o=r.parent?.opts()||{},i={...n,...o};await Kl(i)}),t.command("log").description("Display the logs directory and path to the latest log file, if available.").action(Xl),t.commands.forEach(n=>{Kr(n,[my,hy,gy])})};var xy=D(po());var Dy=new Yr.Option("--no-input","Avoid prompting or doing anything interactive. Use this for CI/CD pipelines."),wy=new Yr.Option("--manifest <path>","Path to a manifest .json file or directory containing webflow.json. Default: ./webflow.json"),vy=new Yr.Option("--skip-update-check","Skip checking for @webflow packages updates"),ky=new Yr.Option("--verbose","Display more information for debugging purposes.");function Cy(e){let t=xy.default.version;e.name("webflow").description("Webflow CLI").version(t).addOption(Dy).addOption(wy).addOption(vy).addOption(ky).showHelpAfterError(),e.hook("preAction",async n=>{let r=n.opts();r.input||Zu(!0),rt.start(),r.manifest&&Ku(r.manifest);try{await we.promptForConsentIfNeeded()}catch(o){d.debug(`Failed to check telemetry preference: ${o}`)}try{r.skipUpdateCheck||await new xr().prompt()}catch(o){d.debug(`Failed to check for package updates: ${o}`)}}),e.hook("postAction",async()=>{rt.displayGrouped(),rt.stop()}),Ic(e),pp(e),Jm(e),Jh(e),by(e),fy(e),e.commands.forEach(n=>{Kr(n,[Dy,wy,vy,ky])})}q();ce();var _y=new Fy.Command;Cy(_y);_y.parseAsync().catch(e=>{e instanceof T?e.skipLogging||d.error(e,{prefix:e.prefix}):d.error(e),process.exit(1)});
168
152
  //# sourceMappingURL=index.js.map