@fern-api/cli-dynamic-snippets 0.61.1 → 0.61.3

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.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";var ge=Object.defineProperty;var Gt=Object.getOwnPropertyDescriptor;var qt=Object.getOwnPropertyNames;var Wt=Object.prototype.hasOwnProperty;var zt=(l,t,o)=>t in l?ge(l,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):l[t]=o;var te=(l,t,o)=>()=>{if(o)throw o[0];try{return l&&(t=l(l=0)),t}catch(u){throw o=[u],u}};var He=(l,t)=>{for(var o in t)ge(l,o,{get:t[o],enumerable:!0})},Ht=(l,t,o,u)=>{if(t&&typeof t=="object"||typeof t=="function")for(let c of qt(t))!Wt.call(l,c)&&c!==o&&ge(l,c,{get:()=>t[c],enumerable:!(u=Gt(t,c))||u.enumerable});return l};var Jt=l=>Ht(ge({},"__esModule",{value:!0}),l);var I=(l,t,o)=>zt(l,typeof t!="symbol"?t+"":t,o);var d=te(()=>{"use strict"});var b={};He(b,{_debugEnd:()=>Lr,_debugProcess:()=>kr,_events:()=>Qr,_eventsCount:()=>Zr,_exiting:()=>yr,_fatalExceptions:()=>Cr,_getActiveHandles:()=>xr,_getActiveRequests:()=>Er,_kill:()=>Ir,_linkedBinding:()=>dr,_maxListeners:()=>Xr,_preload_modules:()=>Jr,_rawDebug:()=>fr,_startProfilerIdleNotifier:()=>Or,_stopProfilerIdleNotifier:()=>$r,_tickCallback:()=>_r,abort:()=>jr,addListener:()=>et,allowedNodeEnvironmentFlags:()=>Pr,arch:()=>Qe,argv:()=>rr,argv0:()=>Hr,assert:()=>Nr,binding:()=>sr,browser:()=>cr,chdir:()=>pr,config:()=>gr,cpuUsage:()=>xe,cwd:()=>ur,debugPort:()=>zr,default:()=>pt,dlopen:()=>wr,domain:()=>mr,emit:()=>ot,emitWarning:()=>or,env:()=>er,execArgv:()=>tr,execPath:()=>Wr,exit:()=>Ar,features:()=>Tr,hasUncaughtExceptionCaptureCallback:()=>Ur,hrtime:()=>Ee,kill:()=>br,listeners:()=>ut,memoryUsage:()=>Rr,moduleLoadList:()=>hr,nextTick:()=>Ye,off:()=>tt,on:()=>J,once:()=>rt,openStdin:()=>Sr,pid:()=>Gr,platform:()=>Ze,ppid:()=>qr,prependListener:()=>st,prependOnceListener:()=>at,reallyExit:()=>Br,release:()=>lr,removeAllListeners:()=>it,removeListener:()=>nt,resourceUsage:()=>vr,setSourceMapsEnabled:()=>Yr,setUncaughtExceptionCaptureCallback:()=>Fr,stderr:()=>Dr,stdin:()=>Vr,stdout:()=>Mr,title:()=>Xe,umask:()=>ar,uptime:()=>Kr,version:()=>nr,versions:()=>ir});function _e(l){throw new Error("Node.js process "+l+" is not supported by JSPM core outside of Node.js")}function Yt(){!ne||!X||(ne=!1,X.length?H=X.concat(H):we=-1,H.length&&Je())}function Je(){if(!ne){var l=setTimeout(Yt,0);ne=!0;for(var t=H.length;t;){for(X=H,H=[];++we<t;)X&&X[we].run();we=-1,t=H.length}X=null,ne=!1,clearTimeout(l)}}function Ye(l){var t=new Array(arguments.length-1);if(arguments.length>1)for(var o=1;o<arguments.length;o++)t[o-1]=arguments[o];H.push(new Ke(l,t)),H.length===1&&!ne&&setTimeout(Je,0)}function Ke(l,t){this.fun=l,this.array=t}function $(){}function dr(l){_e("_linkedBinding")}function wr(l){_e("dlopen")}function Er(){return[]}function xr(){return[]}function Nr(l,t){if(!l)throw new Error(t||"assertion error")}function Ur(){return!1}function Kr(){return K.now()/1e3}function Ee(l){var t=Math.floor((Date.now()-K.now())*.001),o=K.now()*.001,u=Math.floor(o)+t,c=Math.floor(o%1*1e9);return l&&(u=u-l[0],c=c-l[1],c<0&&(u--,c+=Ue)),[u,c]}function J(){return pt}function ut(l){return[]}var H,ne,X,we,Xe,Qe,Ze,er,rr,tr,nr,ir,or,sr,ar,ur,pr,lr,cr,fr,hr,mr,yr,gr,Br,Ir,xe,vr,Rr,br,Ar,Sr,Pr,Tr,Cr,Fr,_r,kr,Lr,Or,$r,Mr,Dr,Vr,jr,Gr,qr,Wr,zr,Hr,Jr,Yr,K,Fe,Ue,Xr,Qr,Zr,et,rt,tt,nt,it,ot,st,at,pt,lt=te(()=>{"use strict";d();y();m();H=[],ne=!1,we=-1;Ke.prototype.run=function(){this.fun.apply(null,this.array)};Xe="browser",Qe="x64",Ze="browser",er={PATH:"/usr/bin",LANG:typeof navigator<"u"?navigator.language+".UTF-8":void 0,PWD:"/",HOME:"/home",TMP:"/tmp"},rr=["/usr/bin/node"],tr=[],nr="v16.8.0",ir={},or=function(l,t){console.warn((t?t+": ":"")+l)},sr=function(l){_e("binding")},ar=function(l){return 0},ur=function(){return"/"},pr=function(l){},lr={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};cr=!0,fr=$,hr=[];mr={},yr=!1,gr={};Br=$,Ir=$,xe=function(){return{}},vr=xe,Rr=xe,br=$,Ar=$,Sr=$,Pr={};Tr={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},Cr=$,Fr=$;_r=$,kr=$,Lr=$,Or=$,$r=$,Mr=void 0,Dr=void 0,Vr=void 0,jr=$,Gr=2,qr=1,Wr="/bin/usr/node",zr=9229,Hr="node",Jr=[],Yr=$,K={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};K.now===void 0&&(Fe=Date.now(),K.timing&&K.timing.navigationStart&&(Fe=K.timing.navigationStart),K.now=()=>Date.now()-Fe);Ue=1e9;Ee.bigint=function(l){var t=Ee(l);return typeof BigInt>"u"?t[0]*Ue+t[1]:BigInt(t[0]*Ue)+BigInt(t[1])};Xr=10,Qr={},Zr=0;et=J,rt=J,tt=J,nt=J,it=J,ot=$,st=J,at=J;pt={version:nr,versions:ir,arch:Qe,platform:Ze,browser:cr,release:lr,_rawDebug:fr,moduleLoadList:hr,binding:sr,_linkedBinding:dr,_events:Qr,_eventsCount:Zr,_maxListeners:Xr,on:J,addListener:et,once:rt,off:tt,removeListener:nt,removeAllListeners:it,emit:ot,prependListener:st,prependOnceListener:at,listeners:ut,domain:mr,_exiting:yr,config:gr,dlopen:wr,uptime:Kr,_getActiveRequests:Er,_getActiveHandles:xr,reallyExit:Br,_kill:Ir,cpuUsage:xe,resourceUsage:vr,memoryUsage:Rr,kill:br,exit:Ar,openStdin:Sr,allowedNodeEnvironmentFlags:Pr,assert:Nr,features:Tr,_fatalExceptions:Cr,setUncaughtExceptionCaptureCallback:Fr,hasUncaughtExceptionCaptureCallback:Ur,emitWarning:or,nextTick:Ye,_tickCallback:_r,_debugProcess:kr,_debugEnd:Lr,_startProfilerIdleNotifier:Or,_stopProfilerIdleNotifier:$r,stdout:Mr,stdin:Vr,stderr:Dr,abort:jr,umask:ar,chdir:pr,cwd:ur,env:er,title:Xe,argv:rr,execArgv:tr,pid:Gr,ppid:qr,execPath:Wr,debugPort:zr,hrtime:Ee,argv0:Hr,_preload_modules:Jr,setSourceMapsEnabled:Yr}});var m=te(()=>{"use strict";lt()});function Kt(){if(ct)return oe;ct=!0,oe.byteLength=w,oe.toByteArray=O,oe.fromByteArray=q;for(var l=[],t=[],o=typeof Uint8Array<"u"?Uint8Array:Array,u="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,h=u.length;c<h;++c)l[c]=u[c],t[u.charCodeAt(c)]=c;t[45]=62,t[95]=63;function s(g){var B=g.length;if(B%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var R=g.indexOf("=");R===-1&&(R=B);var _=R===B?0:4-R%4;return[R,_]}function w(g){var B=s(g),R=B[0],_=B[1];return(R+_)*3/4-_}function E(g,B,R){return(B+R)*3/4-R}function O(g){var B,R=s(g),_=R[0],D=R[1],U=new o(E(g,_,D)),V=0,G=D>0?_-4:_,M;for(M=0;M<G;M+=4)B=t[g.charCodeAt(M)]<<18|t[g.charCodeAt(M+1)]<<12|t[g.charCodeAt(M+2)]<<6|t[g.charCodeAt(M+3)],U[V++]=B>>16&255,U[V++]=B>>8&255,U[V++]=B&255;return D===2&&(B=t[g.charCodeAt(M)]<<2|t[g.charCodeAt(M+1)]>>4,U[V++]=B&255),D===1&&(B=t[g.charCodeAt(M)]<<10|t[g.charCodeAt(M+1)]<<4|t[g.charCodeAt(M+2)]>>2,U[V++]=B>>8&255,U[V++]=B&255),U}function A(g){return l[g>>18&63]+l[g>>12&63]+l[g>>6&63]+l[g&63]}function L(g,B,R){for(var _,D=[],U=B;U<R;U+=3)_=(g[U]<<16&16711680)+(g[U+1]<<8&65280)+(g[U+2]&255),D.push(A(_));return D.join("")}function q(g){for(var B,R=g.length,_=R%3,D=[],U=16383,V=0,G=R-_;V<G;V+=U)D.push(L(g,V,V+U>G?G:V+U));return _===1?(B=g[R-1],D.push(l[B>>2]+l[B<<4&63]+"==")):_===2&&(B=(g[R-2]<<8)+g[R-1],D.push(l[B>>10]+l[B>>4&63]+l[B<<2&63]+"=")),D.join("")}return oe}function Xt(){if(ft)return Be;ft=!0;return Be.read=function(l,t,o,u,c){var h,s,w=c*8-u-1,E=(1<<w)-1,O=E>>1,A=-7,L=o?c-1:0,q=o?-1:1,g=l[t+L];for(L+=q,h=g&(1<<-A)-1,g>>=-A,A+=w;A>0;h=h*256+l[t+L],L+=q,A-=8);for(s=h&(1<<-A)-1,h>>=-A,A+=u;A>0;s=s*256+l[t+L],L+=q,A-=8);if(h===0)h=1-O;else{if(h===E)return s?NaN:(g?-1:1)*(1/0);s=s+Math.pow(2,u),h=h-O}return(g?-1:1)*s*Math.pow(2,h-u)},Be.write=function(l,t,o,u,c,h){var s,w,E,O=h*8-c-1,A=(1<<O)-1,L=A>>1,q=c===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=u?0:h-1,B=u?1:-1,R=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(w=isNaN(t)?1:0,s=A):(s=Math.floor(Math.log(t)/Math.LN2),t*(E=Math.pow(2,-s))<1&&(s--,E*=2),s+L>=1?t+=q/E:t+=q*Math.pow(2,1-L),t*E>=2&&(s++,E/=2),s+L>=A?(w=0,s=A):s+L>=1?(w=(t*E-1)*Math.pow(2,c),s=s+L):(w=t*Math.pow(2,L-1)*Math.pow(2,c),s=0));c>=8;l[o+g]=w&255,g+=B,w/=256,c-=8);for(s=s<<c|w,O+=c;O>0;l[o+g]=s&255,g+=B,s/=256,O-=8);l[o+g-B]|=R*128},Be}function dt(){if(ht)return Q;ht=!0;let l=Kt(),t=Xt(),o=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Q.Buffer=s,Q.SlowBuffer=D,Q.INSPECT_MAX_BYTES=50;let u=2147483647;Q.kMaxLength=u,s.TYPED_ARRAY_SUPPORT=c(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function c(){try{let n=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(n,e),n.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function h(n){if(n>u)throw new RangeError('The value "'+n+'" is invalid for option "size"');let e=new Uint8Array(n);return Object.setPrototypeOf(e,s.prototype),e}function s(n,e,r){if(typeof n=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return A(n)}return w(n,e,r)}s.poolSize=8192;function w(n,e,r){if(typeof n=="string")return L(n,e);if(ArrayBuffer.isView(n))return g(n);if(n==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n);if(z(n,ArrayBuffer)||n&&z(n.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(z(n,SharedArrayBuffer)||n&&z(n.buffer,SharedArrayBuffer)))return B(n,e,r);if(typeof n=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let i=n.valueOf&&n.valueOf();if(i!=null&&i!==n)return s.from(i,e,r);let a=R(n);if(a)return a;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof n[Symbol.toPrimitive]=="function")return s.from(n[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n)}s.from=function(n,e,r){return w(n,e,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function E(n){if(typeof n!="number")throw new TypeError('"size" argument must be of type number');if(n<0)throw new RangeError('The value "'+n+'" is invalid for option "size"')}function O(n,e,r){return E(n),n<=0?h(n):e!==void 0?typeof r=="string"?h(n).fill(e,r):h(n).fill(e):h(n)}s.alloc=function(n,e,r){return O(n,e,r)};function A(n){return E(n),h(n<0?0:_(n)|0)}s.allocUnsafe=function(n){return A(n)},s.allocUnsafeSlow=function(n){return A(n)};function L(n,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let r=U(n,e)|0,i=h(r),a=i.write(n,e);return a!==r&&(i=i.slice(0,a)),i}function q(n){let e=n.length<0?0:_(n.length)|0,r=h(e);for(let i=0;i<e;i+=1)r[i]=n[i]&255;return r}function g(n){if(z(n,Uint8Array)){let e=new Uint8Array(n);return B(e.buffer,e.byteOffset,e.byteLength)}return q(n)}function B(n,e,r){if(e<0||n.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(n.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let i;return e===void 0&&r===void 0?i=new Uint8Array(n):r===void 0?i=new Uint8Array(n,e):i=new Uint8Array(n,e,r),Object.setPrototypeOf(i,s.prototype),i}function R(n){if(s.isBuffer(n)){let e=_(n.length)|0,r=h(e);return r.length===0||n.copy(r,0,0,e),r}if(n.length!==void 0)return typeof n.length!="number"||Ce(n.length)?h(0):q(n);if(n.type==="Buffer"&&Array.isArray(n.data))return q(n.data)}function _(n){if(n>=u)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+u.toString(16)+" bytes");return n|0}function D(n){return+n!=n&&(n=0),s.alloc(+n)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype},s.compare=function(e,r){if(z(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),z(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(e)||!s.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;let i=e.length,a=r.length;for(let p=0,f=Math.min(i,a);p<f;++p)if(e[p]!==r[p]){i=e[p],a=r[p];break}return i<a?-1:a<i?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);let i;if(r===void 0)for(r=0,i=0;i<e.length;++i)r+=e[i].length;let a=s.allocUnsafe(r),p=0;for(i=0;i<e.length;++i){let f=e[i];if(z(f,Uint8Array))p+f.length>a.length?(s.isBuffer(f)||(f=s.from(f)),f.copy(a,p)):Uint8Array.prototype.set.call(a,f,p);else if(s.isBuffer(f))f.copy(a,p);else throw new TypeError('"list" argument must be an Array of Buffers');p+=f.length}return a};function U(n,e){if(s.isBuffer(n))return n.length;if(ArrayBuffer.isView(n)||z(n,ArrayBuffer))return n.byteLength;if(typeof n!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof n);let r=n.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&r===0)return 0;let a=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Te(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return ze(n).length;default:if(a)return i?-1:Te(n).length;e=(""+e).toLowerCase(),a=!0}}s.byteLength=U;function V(n,e,r){let i=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(n||(n="utf8");;)switch(n){case"hex":return _t(this,e,r);case"utf8":case"utf-8":return Oe(this,e,r);case"ascii":return Ft(this,e,r);case"latin1":case"binary":return Ut(this,e,r);case"base64":return Tt(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return kt(this,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),i=!0}}s.prototype._isBuffer=!0;function G(n,e,r){let i=n[e];n[e]=n[r],n[r]=i}s.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<e;r+=2)G(this,r,r+1);return this},s.prototype.swap32=function(){let e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<e;r+=4)G(this,r,r+3),G(this,r+1,r+2);return this},s.prototype.swap64=function(){let e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<e;r+=8)G(this,r,r+7),G(this,r+1,r+6),G(this,r+2,r+5),G(this,r+3,r+4);return this},s.prototype.toString=function(){let e=this.length;return e===0?"":arguments.length===0?Oe(this,0,e):V.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0},s.prototype.inspect=function(){let e="",r=Q.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,r,i,a,p){if(z(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),i===void 0&&(i=e?e.length:0),a===void 0&&(a=0),p===void 0&&(p=this.length),r<0||i>e.length||a<0||p>this.length)throw new RangeError("out of range index");if(a>=p&&r>=i)return 0;if(a>=p)return-1;if(r>=i)return 1;if(r>>>=0,i>>>=0,a>>>=0,p>>>=0,this===e)return 0;let f=p-a,x=i-r,T=Math.min(f,x),S=this.slice(a,p),C=e.slice(r,i);for(let v=0;v<T;++v)if(S[v]!==C[v]){f=S[v],x=C[v];break}return f<x?-1:x<f?1:0};function M(n,e,r,i,a){if(n.length===0)return-1;if(typeof r=="string"?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Ce(r)&&(r=a?0:n.length-1),r<0&&(r=n.length+r),r>=n.length){if(a)return-1;r=n.length-1}else if(r<0)if(a)r=0;else return-1;if(typeof e=="string"&&(e=s.from(e,i)),s.isBuffer(e))return e.length===0?-1:Le(n,e,r,i,a);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?a?Uint8Array.prototype.indexOf.call(n,e,r):Uint8Array.prototype.lastIndexOf.call(n,e,r):Le(n,[e],r,i,a);throw new TypeError("val must be string, number or Buffer")}function Le(n,e,r,i,a){let p=1,f=n.length,x=e.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(n.length<2||e.length<2)return-1;p=2,f/=2,x/=2,r/=2}function T(C,v){return p===1?C[v]:C.readUInt16BE(v*p)}let S;if(a){let C=-1;for(S=r;S<f;S++)if(T(n,S)===T(e,C===-1?0:S-C)){if(C===-1&&(C=S),S-C+1===x)return C*p}else C!==-1&&(S-=S-C),C=-1}else for(r+x>f&&(r=f-x),S=r;S>=0;S--){let C=!0;for(let v=0;v<x;v++)if(T(n,S+v)!==T(e,v)){C=!1;break}if(C)return S}return-1}s.prototype.includes=function(e,r,i){return this.indexOf(e,r,i)!==-1},s.prototype.indexOf=function(e,r,i){return M(this,e,r,i,!0)},s.prototype.lastIndexOf=function(e,r,i){return M(this,e,r,i,!1)};function bt(n,e,r,i){r=Number(r)||0;let a=n.length-r;i?(i=Number(i),i>a&&(i=a)):i=a;let p=e.length;i>p/2&&(i=p/2);let f;for(f=0;f<i;++f){let x=parseInt(e.substr(f*2,2),16);if(Ce(x))return f;n[r+f]=x}return f}function At(n,e,r,i){return ye(Te(e,n.length-r),n,r,i)}function St(n,e,r,i){return ye(Mt(e),n,r,i)}function Pt(n,e,r,i){return ye(ze(e),n,r,i)}function Nt(n,e,r,i){return ye(Dt(e,n.length-r),n,r,i)}s.prototype.write=function(e,r,i,a){if(r===void 0)a="utf8",i=this.length,r=0;else if(i===void 0&&typeof r=="string")a=r,i=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(i)?(i=i>>>0,a===void 0&&(a="utf8")):(a=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let p=this.length-r;if((i===void 0||i>p)&&(i=p),e.length>0&&(i<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");a||(a="utf8");let f=!1;for(;;)switch(a){case"hex":return bt(this,e,r,i);case"utf8":case"utf-8":return At(this,e,r,i);case"ascii":case"latin1":case"binary":return St(this,e,r,i);case"base64":return Pt(this,e,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Nt(this,e,r,i);default:if(f)throw new TypeError("Unknown encoding: "+a);a=(""+a).toLowerCase(),f=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Tt(n,e,r){return e===0&&r===n.length?l.fromByteArray(n):l.fromByteArray(n.slice(e,r))}function Oe(n,e,r){r=Math.min(n.length,r);let i=[],a=e;for(;a<r;){let p=n[a],f=null,x=p>239?4:p>223?3:p>191?2:1;if(a+x<=r){let T,S,C,v;switch(x){case 1:p<128&&(f=p);break;case 2:T=n[a+1],(T&192)===128&&(v=(p&31)<<6|T&63,v>127&&(f=v));break;case 3:T=n[a+1],S=n[a+2],(T&192)===128&&(S&192)===128&&(v=(p&15)<<12|(T&63)<<6|S&63,v>2047&&(v<55296||v>57343)&&(f=v));break;case 4:T=n[a+1],S=n[a+2],C=n[a+3],(T&192)===128&&(S&192)===128&&(C&192)===128&&(v=(p&15)<<18|(T&63)<<12|(S&63)<<6|C&63,v>65535&&v<1114112&&(f=v))}}f===null?(f=65533,x=1):f>65535&&(f-=65536,i.push(f>>>10&1023|55296),f=56320|f&1023),i.push(f),a+=x}return Ct(i)}let $e=4096;function Ct(n){let e=n.length;if(e<=$e)return String.fromCharCode.apply(String,n);let r="",i=0;for(;i<e;)r+=String.fromCharCode.apply(String,n.slice(i,i+=$e));return r}function Ft(n,e,r){let i="";r=Math.min(n.length,r);for(let a=e;a<r;++a)i+=String.fromCharCode(n[a]&127);return i}function Ut(n,e,r){let i="";r=Math.min(n.length,r);for(let a=e;a<r;++a)i+=String.fromCharCode(n[a]);return i}function _t(n,e,r){let i=n.length;(!e||e<0)&&(e=0),(!r||r<0||r>i)&&(r=i);let a="";for(let p=e;p<r;++p)a+=Vt[n[p]];return a}function kt(n,e,r){let i=n.slice(e,r),a="";for(let p=0;p<i.length-1;p+=2)a+=String.fromCharCode(i[p]+i[p+1]*256);return a}s.prototype.slice=function(e,r){let i=this.length;e=~~e,r=r===void 0?i:~~r,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),r<e&&(r=e);let a=this.subarray(e,r);return Object.setPrototypeOf(a,s.prototype),a};function k(n,e,r){if(n%1!==0||n<0)throw new RangeError("offset is not uint");if(n+e>r)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,i){e=e>>>0,r=r>>>0,i||k(e,r,this.length);let a=this[e],p=1,f=0;for(;++f<r&&(p*=256);)a+=this[e+f]*p;return a},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,i){e=e>>>0,r=r>>>0,i||k(e,r,this.length);let a=this[e+--r],p=1;for(;r>0&&(p*=256);)a+=this[e+--r]*p;return a},s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||k(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||k(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||k(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||k(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||k(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=Y(function(e){e=e>>>0,re(e,"offset");let r=this[e],i=this[e+7];(r===void 0||i===void 0)&&ie(e,this.length-8);let a=r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,p=this[++e]+this[++e]*2**8+this[++e]*2**16+i*2**24;return BigInt(a)+(BigInt(p)<<BigInt(32))}),s.prototype.readBigUInt64BE=Y(function(e){e=e>>>0,re(e,"offset");let r=this[e],i=this[e+7];(r===void 0||i===void 0)&&ie(e,this.length-8);let a=r*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],p=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+i;return(BigInt(a)<<BigInt(32))+BigInt(p)}),s.prototype.readIntLE=function(e,r,i){e=e>>>0,r=r>>>0,i||k(e,r,this.length);let a=this[e],p=1,f=0;for(;++f<r&&(p*=256);)a+=this[e+f]*p;return p*=128,a>=p&&(a-=Math.pow(2,8*r)),a},s.prototype.readIntBE=function(e,r,i){e=e>>>0,r=r>>>0,i||k(e,r,this.length);let a=r,p=1,f=this[e+--a];for(;a>0&&(p*=256);)f+=this[e+--a]*p;return p*=128,f>=p&&(f-=Math.pow(2,8*r)),f},s.prototype.readInt8=function(e,r){return e=e>>>0,r||k(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,r){e=e>>>0,r||k(e,2,this.length);let i=this[e]|this[e+1]<<8;return i&32768?i|4294901760:i},s.prototype.readInt16BE=function(e,r){e=e>>>0,r||k(e,2,this.length);let i=this[e+1]|this[e]<<8;return i&32768?i|4294901760:i},s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||k(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||k(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=Y(function(e){e=e>>>0,re(e,"offset");let r=this[e],i=this[e+7];(r===void 0||i===void 0)&&ie(e,this.length-8);let a=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(i<<24);return(BigInt(a)<<BigInt(32))+BigInt(r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),s.prototype.readBigInt64BE=Y(function(e){e=e>>>0,re(e,"offset");let r=this[e],i=this[e+7];(r===void 0||i===void 0)&&ie(e,this.length-8);let a=(r<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(a)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+i)}),s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||k(e,4,this.length),t.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||k(e,4,this.length),t.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||k(e,8,this.length),t.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||k(e,8,this.length),t.read(this,e,!1,52,8)};function j(n,e,r,i,a,p){if(!s.isBuffer(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>a||e<p)throw new RangeError('"value" argument is out of bounds');if(r+i>n.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,i,a){if(e=+e,r=r>>>0,i=i>>>0,!a){let x=Math.pow(2,8*i)-1;j(this,e,r,i,x,0)}let p=1,f=0;for(this[r]=e&255;++f<i&&(p*=256);)this[r+f]=e/p&255;return r+i},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,i,a){if(e=+e,r=r>>>0,i=i>>>0,!a){let x=Math.pow(2,8*i)-1;j(this,e,r,i,x,0)}let p=i-1,f=1;for(this[r+p]=e&255;--p>=0&&(f*=256);)this[r+p]=e/f&255;return r+i},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,i){return e=+e,r=r>>>0,i||j(this,e,r,1,255,0),this[r]=e&255,r+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,i){return e=+e,r=r>>>0,i||j(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,i){return e=+e,r=r>>>0,i||j(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,i){return e=+e,r=r>>>0,i||j(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,i){return e=+e,r=r>>>0,i||j(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function Me(n,e,r,i,a){We(e,i,a,n,r,7);let p=Number(e&BigInt(4294967295));n[r++]=p,p=p>>8,n[r++]=p,p=p>>8,n[r++]=p,p=p>>8,n[r++]=p;let f=Number(e>>BigInt(32)&BigInt(4294967295));return n[r++]=f,f=f>>8,n[r++]=f,f=f>>8,n[r++]=f,f=f>>8,n[r++]=f,r}function De(n,e,r,i,a){We(e,i,a,n,r,7);let p=Number(e&BigInt(4294967295));n[r+7]=p,p=p>>8,n[r+6]=p,p=p>>8,n[r+5]=p,p=p>>8,n[r+4]=p;let f=Number(e>>BigInt(32)&BigInt(4294967295));return n[r+3]=f,f=f>>8,n[r+2]=f,f=f>>8,n[r+1]=f,f=f>>8,n[r]=f,r+8}s.prototype.writeBigUInt64LE=Y(function(e,r=0){return Me(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=Y(function(e,r=0){return De(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(e,r,i,a){if(e=+e,r=r>>>0,!a){let T=Math.pow(2,8*i-1);j(this,e,r,i,T-1,-T)}let p=0,f=1,x=0;for(this[r]=e&255;++p<i&&(f*=256);)e<0&&x===0&&this[r+p-1]!==0&&(x=1),this[r+p]=(e/f>>0)-x&255;return r+i},s.prototype.writeIntBE=function(e,r,i,a){if(e=+e,r=r>>>0,!a){let T=Math.pow(2,8*i-1);j(this,e,r,i,T-1,-T)}let p=i-1,f=1,x=0;for(this[r+p]=e&255;--p>=0&&(f*=256);)e<0&&x===0&&this[r+p+1]!==0&&(x=1),this[r+p]=(e/f>>0)-x&255;return r+i},s.prototype.writeInt8=function(e,r,i){return e=+e,r=r>>>0,i||j(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1},s.prototype.writeInt16LE=function(e,r,i){return e=+e,r=r>>>0,i||j(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2},s.prototype.writeInt16BE=function(e,r,i){return e=+e,r=r>>>0,i||j(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2},s.prototype.writeInt32LE=function(e,r,i){return e=+e,r=r>>>0,i||j(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4},s.prototype.writeInt32BE=function(e,r,i){return e=+e,r=r>>>0,i||j(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4},s.prototype.writeBigInt64LE=Y(function(e,r=0){return Me(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=Y(function(e,r=0){return De(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function Ve(n,e,r,i,a,p){if(r+i>n.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function je(n,e,r,i,a){return e=+e,r=r>>>0,a||Ve(n,e,r,4),t.write(n,e,r,i,23,4),r+4}s.prototype.writeFloatLE=function(e,r,i){return je(this,e,r,!0,i)},s.prototype.writeFloatBE=function(e,r,i){return je(this,e,r,!1,i)};function Ge(n,e,r,i,a){return e=+e,r=r>>>0,a||Ve(n,e,r,8),t.write(n,e,r,i,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,i){return Ge(this,e,r,!0,i)},s.prototype.writeDoubleBE=function(e,r,i){return Ge(this,e,r,!1,i)},s.prototype.copy=function(e,r,i,a){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(i||(i=0),!a&&a!==0&&(a=this.length),r>=e.length&&(r=e.length),r||(r=0),a>0&&a<i&&(a=i),a===i||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(a<0)throw new RangeError("sourceEnd out of bounds");a>this.length&&(a=this.length),e.length-r<a-i&&(a=e.length-r+i);let p=a-i;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,i,a):Uint8Array.prototype.set.call(e,this.subarray(i,a),r),p},s.prototype.fill=function(e,r,i,a){if(typeof e=="string"){if(typeof r=="string"?(a=r,r=0,i=this.length):typeof i=="string"&&(a=i,i=this.length),a!==void 0&&typeof a!="string")throw new TypeError("encoding must be a string");if(typeof a=="string"&&!s.isEncoding(a))throw new TypeError("Unknown encoding: "+a);if(e.length===1){let f=e.charCodeAt(0);(a==="utf8"&&f<128||a==="latin1")&&(e=f)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<i)throw new RangeError("Out of range index");if(i<=r)return this;r=r>>>0,i=i===void 0?this.length:i>>>0,e||(e=0);let p;if(typeof e=="number")for(p=r;p<i;++p)this[p]=e;else{let f=s.isBuffer(e)?e:s.from(e,a),x=f.length;if(x===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(p=0;p<i-r;++p)this[p+r]=f[p%x]}return this};let ee={};function Ne(n,e,r){ee[n]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${n}]`,this.stack,delete this.name}get code(){return n}set code(a){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:a,writable:!0})}toString(){return`${this.name} [${n}]: ${this.message}`}}}Ne("ERR_BUFFER_OUT_OF_BOUNDS",function(n){return n?`${n} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Ne("ERR_INVALID_ARG_TYPE",function(n,e){return`The "${n}" argument must be of type number. Received type ${typeof e}`},TypeError),Ne("ERR_OUT_OF_RANGE",function(n,e,r){let i=`The value of "${n}" is out of range.`,a=r;return Number.isInteger(r)&&Math.abs(r)>2**32?a=qe(String(r)):typeof r=="bigint"&&(a=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(a=qe(a)),a+="n"),i+=` It must be ${e}. Received ${a}`,i},RangeError);function qe(n){let e="",r=n.length,i=n[0]==="-"?1:0;for(;r>=i+4;r-=3)e=`_${n.slice(r-3,r)}${e}`;return`${n.slice(0,r)}${e}`}function Lt(n,e,r){re(e,"offset"),(n[e]===void 0||n[e+r]===void 0)&&ie(e,n.length-(r+1))}function We(n,e,r,i,a,p){if(n>r||n<e){let f=typeof e=="bigint"?"n":"",x;throw e===0||e===BigInt(0)?x=`>= 0${f} and < 2${f} ** ${(p+1)*8}${f}`:x=`>= -(2${f} ** ${(p+1)*8-1}${f}) and < 2 ** ${(p+1)*8-1}${f}`,new ee.ERR_OUT_OF_RANGE("value",x,n)}Lt(i,a,p)}function re(n,e){if(typeof n!="number")throw new ee.ERR_INVALID_ARG_TYPE(e,"number",n)}function ie(n,e,r){throw Math.floor(n)!==n?(re(n,r),new ee.ERR_OUT_OF_RANGE("offset","an integer",n)):e<0?new ee.ERR_BUFFER_OUT_OF_BOUNDS:new ee.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${e}`,n)}let Ot=/[^+/0-9A-Za-z-_]/g;function $t(n){if(n=n.split("=")[0],n=n.trim().replace(Ot,""),n.length<2)return"";for(;n.length%4!==0;)n=n+"=";return n}function Te(n,e){e=e||1/0;let r,i=n.length,a=null,p=[];for(let f=0;f<i;++f){if(r=n.charCodeAt(f),r>55295&&r<57344){if(!a){if(r>56319){(e-=3)>-1&&p.push(239,191,189);continue}else if(f+1===i){(e-=3)>-1&&p.push(239,191,189);continue}a=r;continue}if(r<56320){(e-=3)>-1&&p.push(239,191,189),a=r;continue}r=(a-55296<<10|r-56320)+65536}else a&&(e-=3)>-1&&p.push(239,191,189);if(a=null,r<128){if((e-=1)<0)break;p.push(r)}else if(r<2048){if((e-=2)<0)break;p.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;p.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;p.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return p}function Mt(n){let e=[];for(let r=0;r<n.length;++r)e.push(n.charCodeAt(r)&255);return e}function Dt(n,e){let r,i,a,p=[];for(let f=0;f<n.length&&!((e-=2)<0);++f)r=n.charCodeAt(f),i=r>>8,a=r%256,p.push(a),p.push(i);return p}function ze(n){return l.toByteArray($t(n))}function ye(n,e,r,i){let a;for(a=0;a<i&&!(a+r>=e.length||a>=n.length);++a)e[a+r]=n[a];return a}function z(n,e){return n instanceof e||n!=null&&n.constructor!=null&&n.constructor.name!=null&&n.constructor.name===e.name}function Ce(n){return n!==n}let Vt=(function(){let n="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){let i=r*16;for(let a=0;a<16;++a)e[i+a]=n[r]+n[a]}return e})();function Y(n){return typeof BigInt>"u"?jt:n}function jt(){throw new Error("BigInt not supported")}return Q}var oe,ct,Be,ft,Q,ht,mt=te(()=>{"use strict";d();y();m();oe={},ct=!1;Be={},ft=!1;Q={},ht=!1});var Z,P,vn,Rn,yt=te(()=>{"use strict";d();y();m();mt();Z=dt();Z.Buffer;Z.SlowBuffer;Z.INSPECT_MAX_BYTES;Z.kMaxLength;P=Z.Buffer,vn=Z.INSPECT_MAX_BYTES,Rn=Z.kMaxLength});var y=te(()=>{"use strict";yt()});var ln={};He(ln,{DynamicSnippetsGenerator:()=>Pe});module.exports=Jt(ln);d();y();m();d();y();m();d();y();m();d();y();m();function W(l){throw new Error("Unexpected value: "+JSON.stringify(l))}d();y();m();function se(l){return Object.keys(l)}d();y();m();d();y();m();d();y();m();var ae=b.env.FERN_STACK_TRACK?.toLowerCase()??"",Qt=ae!==""&&ae!=="0"&&ae!=="false",Qn=["single","multiline","box"].includes(ae)?ae:"single";Qt&&(Error.stackTraceLimit=50);var Zt;function gt(l){Zt?.tag(l)}var Ie=class{constructor(){gt(this)}};d();y();m();var ue=class extends Ie{constructor(o){super();I(this,"value");this.value=o}write(o){typeof this.value=="string"?o.write(this.value):typeof this.value=="function"?this.value(o):this.value.write(o)}};d();y();m();d();y();m();d();y();m();var pe=class{constructor(){I(this,"reporter");I(this,"snippet");I(this,"err");this.snippet=void 0,this.reporter=void 0,this.err=void 0}update({context:t,snippet:o}){this.shouldUpdate({snippet:o,reporter:t.errors})&&(this.reporter=t.errors.clone(),this.snippet=o)}getResponseOrThrow({endpoint:t}){if(this.snippet!=null&&this.reporter!=null)return{snippet:this.snippet,errors:this.reporter.toDynamicSnippetErrors()};throw this.err??new Error(`Failed to generate snippet for endpoint "${t.method} ${t.path}"`)}shouldUpdate({snippet:t,reporter:o}){return this.reporter==null||this.reporter.size()>0&&o.size()===0?!0:t.length>(this.snippet?.length??0)}};var le=class{constructor(t){I(this,"context");this.context=t}async generate(t,o={}){let u=this.resolveEndpoints({request:t,options:o});if(u.length===0)throw new Error(`No endpoints found that match "${t.endpoint.method} ${t.endpoint.path}"`);let c=new pe;for(let h of u){let s=this.context.clone(),w=this.createSnippetGenerator(s);try{let E=await w.generateSnippet({endpoint:h,request:t,options:o});if(s.errors.empty())return{snippet:E,errors:void 0};c.update({context:s,snippet:E})}catch(E){c.err==null&&(c.err=E)}}return c.getResponseOrThrow({endpoint:t.endpoint})}async generateSnippetAst(t,o={}){let u=this.resolveEndpoints({request:t,options:o});if(u.length===0)throw new Error(`No endpoints found that match "${t.endpoint.method} ${t.endpoint.path}"`);let c;for(let h of u){let s=this.context.clone(),w=this.createSnippetGenerator(s);try{return await w.generateSnippetAst({endpoint:h,request:t,options:o})}catch(E){c=E}}throw c??new Error(`Failed to generate snippet AST for endpoint: ${t.endpoint.method} ${t.endpoint.path}`)}generateSync(t,o={}){let u=this.resolveEndpoints({request:t,options:o});if(u.length===0)throw new Error(`No endpoints found that match "${t.endpoint.method} ${t.endpoint.path}"`);let c=new pe;for(let h of u){let s=this.context.clone(),w=this.createSnippetGenerator(s);try{let E=w.generateSnippetSync({endpoint:h,request:t,options:o});if(s.errors.empty())return{snippet:E,errors:void 0};c.update({context:s,snippet:E})}catch(E){c.err==null&&(c.err=E)}}return c.getResponseOrThrow({endpoint:t.endpoint})}resolveEndpoints({request:t,options:o}){if(o.endpointId!=null){let u=this.context.resolveEndpointById(o.endpointId);if(u==null)throw new Error(`No endpoint found with ID "${o.endpointId}"`);return[u]}return this.context.resolveEndpointLocationOrThrow(t.endpoint)}};d();y();m();d();y();m();d();y();m();var ce=class{constructor(){I(this,"REFERENCE_REGEX",/^(?:(\w+)::)?(GET|POST|PUT|DELETE|PATCH|HEAD)\s(\/\S*)$/)}validate(t){return this.REFERENCE_REGEX.test(t)?{type:"valid"}:{type:"invalid"}}tryParse(t){if(this.validate(t).type==="invalid")return;let u=t.match(this.REFERENCE_REGEX);if(!(u==null||u[2]==null||u[3]==null))return{namespace:u[1],method:u[2],path:u[3]}}};d();y();m();var N={Critical:"CRITICAL",Warning:"WARNING"},fe=class l{constructor(){I(this,"errors");I(this,"path");this.errors=[],this.path=[]}add(t){this.errors.push({...t,path:[...this.path]})}scope(t){this.path.push(t)}unscope(){this.path.pop()}getBySeverity(t){return this.errors.filter(o=>o.severity===t)}empty(){return this.errors.length===0}size(){return this.errors.length}truncate(t){this.errors.length=t}clone(){let t=new l;return t.errors=[...this.errors],t.path=[...this.path],t}reset(){this.errors=[],this.path=[]}toDynamicSnippetErrors(){return this.errors.map(t=>({severity:t.severity,path:t.path!=null?this.pathToStringArray(t.path):void 0,message:t.message}))}pathToStringArray(t){let o=[];for(let u of t){if(typeof u=="string"){o.push(u);continue}o[o.length-1]+=`[${u.index}]`}return o}};var he=class{constructor({ir:t,config:o,options:u={}}){I(this,"config");I(this,"options");I(this,"errors");I(this,"_ir");I(this,"httpEndpointReferenceParser");this._ir=t,this.config=o,this.options=u,this.errors=new fe,this.httpEndpointReferenceParser=new ce}associateQueryParametersByWireValue({parameters:t,values:o}){let u=[];for(let[c,h]of Object.entries(o))if(h!==void 0){this.errors.scope(c);try{let s=t.find(E=>E.name.wireValue===c);if(s==null)throw this.newParameterNotRecognizedError(c);let w=this.isListTypeReference(s.typeReference)&&!Array.isArray(h)?[h]:h;u.push({name:s.name,typeReference:s.typeReference,value:w})}finally{this.errors.unscope()}}return u}associateByWireValueOrDefault({parameters:t,values:o}){let u=[];for(let c of t){this.errors.scope(c.name.wireValue);try{let h=o[c.name.wireValue];if(h==null)if(c.typeReference.type==="primitive"&&c.typeReference.value==="STRING")h=`<${c.name.wireValue}>`;else{this.errors.add({severity:N.Critical,message:this.newParameterNotRecognizedError(c.name.wireValue).message});continue}u.push({name:c.name,typeReference:c.typeReference,value:h})}finally{this.errors.unscope()}}return u}associateByWireValue({parameters:t,values:o,ignoreMissingParameters:u}){let c=[],h=new Set;for(let s of t){let w=s.name.wireValue,E=o[w];if(E!==void 0){h.add(w),this.errors.scope(w);try{c.push({name:s.name,typeReference:s.typeReference,value:E})}finally{this.errors.unscope()}}}if(!u){for(let[s,w]of Object.entries(o))if(!(w===void 0||h.has(s))){this.errors.scope(s);try{this.errors.add({severity:N.Critical,message:this.newParameterNotRecognizedError(s).message})}finally{this.errors.unscope()}}}return c}getExampleObjectProperties({parameters:t,snippetObject:o}){let u=typeof o=="object"&&o!==null&&!Array.isArray(o)?o:{},c=[];for(let h of t){let s=u[h.name.wireValue];s==null?h.typeReference.type==="nullable"&&c.push({name:h.name,typeReference:h.typeReference,value:null}):c.push({name:h.name,typeReference:h.typeReference,value:s})}return c}getSingleFileValue({property:t,record:o}){let u=o[t.wireValue];if(u!=null){if(typeof u!="string"){this.errors.add({severity:N.Critical,message:`Expected file value to be a string, got ${typeof u}`});return}return u}}getFileArrayValues({property:t,record:o}){let u=o[t.wireValue];if(u==null)return;if(!Array.isArray(u)){this.errors.add({severity:N.Critical,message:`Expected file array value to be an array of strings, got ${typeof u}`});return}let c=[];for(let h of u){if(typeof h!="string"){this.errors.add({severity:N.Critical,message:`Expected file array value to be an array of strings, got ${typeof h}`});return}c.push(h)}return c}getRecord(t){if(typeof t!="object"||Array.isArray(t)){this.errors.add({severity:N.Critical,message:`Expected object with key, value pairs but got: ${Array.isArray(t)?"array":typeof t}`});return}return t??{}}resolveNamedType({typeId:t}){let o=this._ir.types[t];if(o==null){this.errors.add({severity:N.Critical,message:`Type identified by "${t}" could not be found`});return}return o}resolveDiscriminatedUnionTypeInstance({discriminatedUnion:t,value:o}){let u=this.getRecord(o);if(u==null)return;let c=t.discriminant.wireValue,h=u[c];if(h==null){this.errors.add({severity:N.Critical,message:this.newParameterNotRecognizedError(c).message});return}if(typeof h!="string"){this.errors.add({severity:N.Critical,message:`Expected discriminant value to be a string but got: ${typeof h}`});return}let s=t.types[h];if(s==null){this.errors.add({severity:N.Critical,message:`No type found for discriminant value "${h}"`});return}let{[c]:w,...E}=u;return{singleDiscriminatedUnionType:s,discriminantValue:s.discriminantValue,value:E}}resolveEndpointOrThrow(t){let o=this.httpEndpointReferenceParser.tryParse(t);if(o==null)throw new Error(`Failed to parse endpoint reference "${t}"`);return this.resolveEndpointLocationOrThrow(o)}resolveEndpointLocation(t){let o=[];for(let u of Object.values(this._ir.endpoints))this.parsedEndpointMatches({endpoint:u,parsedEndpoint:t})&&o.push(u);return o}resolveEndpointLocationOrThrow(t){let o=this.resolveEndpointLocation(t);if(o.length===0)throw new Error(`Failed to find endpoint identified by "${t.method} ${t.path}"`);return o}resolveEndpointById(t){return this._ir.endpoints[t]}resolveEndpointByIdOrThrow(t){let o=this.resolveEndpointById(t);if(o==null)throw new Error(`Failed to find endpoint with ID "${t}"`);return o}needsRequestParameter({request:t,inlinePathParameters:o,inlineFileProperties:u}){return this.includePathParametersInWrappedRequest({request:t,inlinePathParameters:o})||t.queryParameters!=null&&t.queryParameters.length>0||t.headers!=null&&t.headers.length>0?!0:t.body!=null?this.includeRequestBodyInWrappedRequest({body:t.body,inlineFileProperties:u}):!t.metadata?.onlyPathParameters}includePathParametersInWrappedRequest({request:t,inlinePathParameters:o}){return o&&(t.metadata?.includePathParameters??!1)}isFileUploadRequestBody(t){switch(t.type){case"fileUpload":return!0;case"properties":case"referenced":return!1;default:W(t)}}resolveEnvironmentName(t){if(this._ir.environments==null)return;let o=this._ir.environments.environments;switch(o.type){case"singleBaseUrl":{let u=o.environments.find(c=>c.id===t);return u?.name}case"multipleBaseUrls":{let u=o.environments.find(c=>c.id===t);return u?.name}default:W(o)}}isSingleEnvironmentID(t){return typeof t=="string"}isMultiEnvironmentValues(t){return typeof t=="object"}validateMultiEnvironmentUrlValues(t){if(this._ir.environments==null)return this.errors.add({severity:N.Critical,message:"Multiple environments are not supported for single base URL environments; use the baseUrl option instead"}),!1;let o=this._ir.environments.environments;switch(o.type){case"singleBaseUrl":return this.errors.add({severity:N.Critical,message:"Multiple environments are not supported for single base URL environments; use the baseUrl option instead"}),!1;case"multipleBaseUrls":{let u=o.environments[0];if(u==null)return this.errors.add({severity:N.Critical,message:"Multiple environments are not supported; use the baseUrl option instead"}),!1;let c=new Set(se(u.urls));for(let h of se(t))c.has(h)&&c.delete(h);return c.size>0?(this.errors.add({severity:N.Critical,message:`The provided environments are invalid; got: [${Object.keys(t).join(", ")}], expected: [${se(u.urls).join(", ")}]`}),!1):!0}}}getValueAsNumber({value:t}){if(typeof t!="number"){this.errors.add({severity:N.Critical,message:this.newTypeMismatchError({expected:"number",value:t}).message});return}return t}getValueAsBoolean({value:t}){if(typeof t!="boolean"){this.errors.add({severity:N.Critical,message:this.newTypeMismatchError({expected:"boolean",value:t}).message});return}return t}getValueAsString({value:t}){if(typeof t!="string"){this.errors.add({severity:N.Critical,message:this.newTypeMismatchError({expected:"string",value:t}).message});return}return t}isOptional(t){switch(t.type){case"nullable":return this.isOptional(t.value);case"optional":return!0;case"named":{let o=this.resolveNamedType({typeId:t.value});return o==null?!1:o.type==="alias"?this.isNullable(o.typeReference):!1}}return!1}isNullable(t){switch(t.type){case"nullable":return!0;case"optional":return this.isNullable(t.value);case"named":{let o=this.resolveNamedType({typeId:t.value});return o==null?!1:o.type==="alias"?this.isNullable(o.typeReference):!1}}return!1}newAuthMismatchError({auth:t,values:o}){return new Error(`Expected auth type ${t.type}, got ${o.type}`)}newParameterNotRecognizedError(t){return new Error(`"${t}" is not a recognized parameter for this endpoint`)}newTypeMismatchError({expected:t,value:o}){return new Error(`Expected ${t}, got ${typeof o}`)}includeRequestBodyInWrappedRequest({body:t,inlineFileProperties:o}){switch(t.type){case"properties":case"referenced":return!0;case"fileUpload":return this.includeFileUploadBodyInWrappedRequest({fileUpload:t,inlineFileProperties:o});default:W(t)}}includeFileUploadBodyInWrappedRequest({fileUpload:t,inlineFileProperties:o}){return this.fileUploadHasBodyProperties({fileUpload:t})||o&&this.fileUploadHasFileProperties({fileUpload:t})}fileUploadHasBodyProperties({fileUpload:t}){return t.properties.some(o=>{switch(o.type){case"file":case"fileArray":return!1;case"bodyProperty":return!0;default:W(o)}})}fileUploadHasFileProperties({fileUpload:t}){return t.properties.some(o=>{switch(o.type){case"file":case"fileArray":return!0;case"bodyProperty":return!1;default:W(o)}})}isListTypeReference(t){return t.type==="optional"?this.isListTypeReference(t.value):t.type==="list"||t.type==="set"}parsedEndpointMatches({endpoint:t,parsedEndpoint:o}){return t.location.method===o.method&&t.location.path===o.path}};d();y();m();d();y();m();var en=["params","output","json","format","dry-run","base-url","page-all","page-limit","page-delay","no-pager","no-extract","retries","no-retry","no-stream","quiet","query","help","debug","schema","user-agent-suffix"],rn=new Set(en);function wt(l,t){return rn.has(l)||(t?.has(l)??!1)}function de(l){let t="";for(let o of l)Rt(o)?ke(o)?(t.length>0&&!t.endsWith("-")&&(t+="-"),t+=o.toLowerCase()):t+=o:t.length>0&&!t.endsWith("-")&&(t+="-");for(;t.endsWith("-");)t=t.slice(0,-1);return t}function ve(l){let t=[...l],o="";for(let u=0;u<t.length;u++){let c=t[u];c==="_"||c==="-"?o.length>0&&!o.endsWith("-")&&(o+="-"):ke(c)?(u>0&&o.length>0&&!o.endsWith("-")&&(o+="-"),o+=c.toLowerCase()):o+=c}return o}function Et(l){if(l.length===0)return;for(let u of l){let c=u.codePointAt(0)??0;if(c<=31||c===127||/\s/u.test(u))return}let t=l.normalize("NFKD").replace(/\p{M}/gu,"").replace(/[\u200B-\u200F\u202A-\u202E\u2060-\u2064\uFEFF]/gu,"");for(let u of t)if((u.codePointAt(0)??0)>127)return;let o=tn(t);if(o.length!==0)return o}function tn(l){let t=[...l],o="";for(let u=0;u<t.length;u++){let c=t[u];Rt(c)?ke(c)?(u>0&&o.length>0&&!o.endsWith("-")&&(o+="-"),o+=c.toLowerCase()):o+=c:o.length>0&&!o.endsWith("-")&&(o+="-")}for(;o.endsWith("-");)o=o.slice(0,-1);return o}function xt(l,t,o){let u;if(l.flagNameOverride!=null)u=l.flagNameOverride;else{let c=l.displayName??t;if(l.location==="body")u=ve(c);else{let h=Et(c);if(h==null)return;u=h}}return wt(u,o)&&(u=`${u}-param`),u}function Bt(l,t){let o=ve(l);return wt(o,t)?void 0:o}function It(l,t){return/[^A-Za-z0-9_-]/.test(l)&&Et(l)!=null?t:l}function vt(l){return l.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").replace(/-{2,}/g,"-")}function Rt(l){return/^[A-Za-z0-9]$/.test(l)}function ke(l){return l>="A"&&l<="Z"}var Re=class l extends he{constructor({ir:o,config:u}){super({ir:o,config:u});I(this,"ir");I(this,"customConfig");this.ir=o,this.customConfig=u.customConfig!=null?u.customConfig:void 0}clone(){return new l({ir:this.ir,config:this.config})}getBinaryName(){let o=this.customConfig?.binaryName?.trim(),u=o!=null&&o.length>0?o:this.config.workspaceName;return vt(u)}getCommandPrefix(o){let u=[this.getBinaryName()],c=this.customConfig?.rootGroup?.trim();return c!=null&&c.length>0&&u.push(de(c)),u.push(...this.getGroupPath(o.declaration.fernFilepath.allParts.map(h=>h.originalName))),u.push(de(o.declaration.name.originalName)),u}getGroupPath(o){let[u,...c]=o,h=u!=null?this.customConfig?.namespaces?.[u]:void 0;if(h==null)return o.map(de);let s=h.split("/").filter(E=>E.length>0),w=c.map(de);return w.length>0&&w[0]===s[s.length-1]&&w.shift(),[...s,...w]}getReservedFlagNames(){let o=new Set,u=this.customConfig?.userAgentSuffixFlag?.trim();return u!=null&&u.length>0&&o.add(ve(u)),this.customConfig?.profiles?.enabled===!0&&o.add("profile"),o}};d();y();m();d();y();m();var nn="--params",on="--json",Ae=class{constructor(t){I(this,"tokens");I(this,"paramsPayload",{});I(this,"seenFlags",new Set);I(this,"hasParamsPayload",!1);I(this,"jsonBody");I(this,"jsonBodySet",!1);this.tokens=[...t]}pushFlag(t,o){return this.seenFlags.has(t)?!1:(this.seenFlags.add(t),this.pushFlagValue(t,o),!0)}pushRepeatedFlag(t,o){if(this.seenFlags.has(t))return!1;this.seenFlags.add(t);for(let u of o)u!=null&&this.pushFlagValue(t,u);return!0}pushFlagValue(t,o){let u=sn(o);u.startsWith("-")?this.tokens.push(`${t}=${be(u)}`):this.tokens.push(t,be(u))}routeToParams(t,o){an(this.paramsPayload,t,o),this.hasParamsPayload=!0}setJsonBody(t){this.jsonBody=t,this.jsonBodySet=!0}build(){let t=[...this.tokens];return this.jsonBodySet&&this.jsonBody!=null&&(me(this.jsonBody)&&Object.keys(this.jsonBody).length===0||t.push(on,be(JSON.stringify(this.jsonBody)))),this.hasParamsPayload&&t.push(nn,be(JSON.stringify(this.paramsPayload))),t.join(" ")}};function sn(l){return typeof l=="boolean"?l?"true":"false":String(l)}function be(l){return l.length>0&&/^[A-Za-z0-9_.:/@%+=-]+$/.test(l)?l:`'${l.replace(/'/g,"'\\''")}'`}function me(l){return typeof l=="object"&&l!=null&&!Array.isArray(l)}function an(l,t,o){let u=l;for(let c=0;c<t.length-1;c++){let h=t[c],s=u[h];me(s)||(u[h]={}),u=u[h]}u[t[t.length-1]]=o}var Se=class{constructor({context:t}){I(this,"context");this.context=t}async generateSnippet({endpoint:t,request:o}){return this.buildCommand({endpoint:t,snippet:o})}generateSnippetSync({endpoint:t,request:o}){return this.buildCommand({endpoint:t,snippet:o})}async generateSnippetAst({endpoint:t,request:o}){return new ue(this.buildCommand({endpoint:t,snippet:o}))}buildCommand({endpoint:t,snippet:o}){let u=new Ae(this.context.getCommandPrefix(t));switch(t.request.type){case"inlined":this.emitInlinedRequest({builder:u,request:t.request,snippet:o});break;case"body":this.emitBodyRequest({builder:u,request:t.request,snippet:o});break;default:W(t.request)}return u.build()}emitInlinedRequest({builder:t,request:o,snippet:u}){this.emitPathParameters({builder:t,requestPathParameters:o.pathParameters,snippet:u}),this.emitNamedParameters({builder:t,location:"query",parameters:o.queryParameters,values:u.queryParameters}),this.emitNamedParameters({builder:t,location:"header",parameters:o.headers,values:u.headers}),o.body!=null&&u.requestBody!=null&&this.emitInlinedRequestBody({builder:t,body:o.body,snippet:u})}emitBodyRequest({builder:t,request:o,snippet:u}){this.emitPathParameters({builder:t,requestPathParameters:o.pathParameters,snippet:u}),o.body!=null&&u.requestBody!=null&&this.emitReferencedBody({builder:t,body:o.body,value:u.requestBody})}emitPathParameters({builder:t,requestPathParameters:o,snippet:u}){let c=[...this.context.ir.pathParameters??[],...o??[]].filter(h=>h.variable==null);this.emitNamedParameters({builder:t,location:"path",parameters:c,values:u.pathParameters})}emitNamedParameters({builder:t,location:o,parameters:u,values:c}){if(!(u==null||u.length===0)){this.context.errors.scope(un(o));try{let h=this.context.associateByWireValue({parameters:u,values:c??{},ignoreMissingParameters:!0});for(let s of h)this.emitValue({builder:t,location:o,name:s.name,value:s.value})}finally{this.context.errors.unscope()}}}emitInlinedRequestBody({builder:t,body:o,snippet:u}){this.context.errors.scope("Body");try{switch(o.type){case"properties":this.emitObjectBody({builder:t,properties:o.value,value:u.requestBody});break;case"referenced":this.emitReferencedBody({builder:t,body:o.bodyType,value:u.requestBody});break;case"fileUpload":this.emitObjectBody({builder:t,properties:pn(o),value:u.requestBody,multipart:!0});break;default:W(o)}}finally{this.context.errors.unscope()}}emitReferencedBody({builder:t,body:o,value:u}){switch(o.type){case"typeReference":{let c=this.resolveObjectProperties(o.value);c!=null?this.emitObjectBody({builder:t,properties:c,value:u}):t.setJsonBody(u);break}case"bytes":this.context.errors.add({severity:N.Warning,message:"Binary (bytes) request body omitted from the CLI snippet: the dynamic IR does not carry the runtime's file-flag metadata."});break;default:W(o)}}emitObjectBody({builder:t,properties:o,value:u,multipart:c=!1}){let h=this.context.getRecord(u);if(h==null)return;if(o.some(w=>w.name.wireValue.includes("."))){t.setJsonBody(h);return}let s=this.context.associateByWireValue({parameters:o,values:h});for(let w of s)this.emitValue({builder:t,location:"body",name:w.name,value:w.value,multipart:c})}emitValue({builder:t,location:o,name:u,value:c,multipart:h=!1}){if(c===void 0)return;let s=u.wireValue,w=this.context.getReservedFlagNames(),E=h?Bt(s,w):xt({location:o,displayName:It(s,u.name.originalName)},s,w);if(E==null){this.context.errors.add({severity:N.Warning,message:`Parameter "${s}" was omitted from the CLI snippet: its name cannot be expressed as a flag and the runtime cannot accept it via --params.`});return}let O=`--${E}`;if(Array.isArray(c)){c.every(A=>!me(A)&&!Array.isArray(A))?this.warnIfFlagCollision(t.pushRepeatedFlag(O,c),O,s):t.routeToParams([s],c);return}if(me(c)){t.routeToParams([s],c);return}this.warnIfFlagCollision(t.pushFlag(O,c),O,s)}warnIfFlagCollision(t,o,u){t||this.context.errors.add({severity:N.Warning,message:`Parameter "${u}" was omitted from the CLI snippet: its flag "${o}" collides with another parameter's and the runtime keeps only the first.`})}resolveObjectProperties(t){if(t.type!=="named")return;let o=this.context.resolveNamedType({typeId:t.value});if(o!=null){if(o.type==="object")return o.properties;if(o.type==="alias")return this.resolveObjectProperties(o.typeReference)}}};function un(l){switch(l){case"path":return"PathParameters";case"query":return"QueryParameters";case"header":return"Headers";case"body":return"Body"}}function pn(l){let t=[];for(let o of l.properties)switch(o.type){case"bodyProperty":t.push(o);break;case"file":case"fileArray":{let u={name:{wireValue:o.wireValue,name:o.name},typeReference:{type:"primitive",value:"STRING"}};t.push(u);break}default:break}return t}var Pe=class extends le{constructor({ir:t,config:o}){super(new Re({ir:t,config:o}))}async generate(t,o={}){return super.generate(t,o)}generateSync(t){return super.generateSync(t)}async generateSnippetAst(t,o){return super.generateSnippetAst(t,o)}createSnippetGenerator(t){return new Se({context:t})}};0&&(module.exports={DynamicSnippetsGenerator});
1
+ "use strict";var ge=Object.defineProperty;var Gt=Object.getOwnPropertyDescriptor;var qt=Object.getOwnPropertyNames;var Wt=Object.prototype.hasOwnProperty;var zt=(c,t,o)=>t in c?ge(c,t,{enumerable:!0,configurable:!0,writable:!0,value:o}):c[t]=o;var te=(c,t,o)=>()=>{if(o)throw o[0];try{return c&&(t=c(c=0)),t}catch(a){throw o=[a],a}};var He=(c,t)=>{for(var o in t)ge(c,o,{get:t[o],enumerable:!0})},Ht=(c,t,o,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let l of qt(t))!Wt.call(c,l)&&l!==o&&ge(c,l,{get:()=>t[l],enumerable:!(a=Gt(t,l))||a.enumerable});return c};var Jt=c=>Ht(ge({},"__esModule",{value:!0}),c);var I=(c,t,o)=>zt(c,typeof t!="symbol"?t+"":t,o);var d=te(()=>{"use strict"});var R={};He(R,{_debugEnd:()=>Lr,_debugProcess:()=>kr,_events:()=>Qr,_eventsCount:()=>Zr,_exiting:()=>yr,_fatalExceptions:()=>Cr,_getActiveHandles:()=>xr,_getActiveRequests:()=>Er,_kill:()=>Ir,_linkedBinding:()=>dr,_maxListeners:()=>Xr,_preload_modules:()=>Jr,_rawDebug:()=>fr,_startProfilerIdleNotifier:()=>Or,_stopProfilerIdleNotifier:()=>$r,_tickCallback:()=>_r,abort:()=>Vr,addListener:()=>et,allowedNodeEnvironmentFlags:()=>Pr,arch:()=>Qe,argv:()=>rr,argv0:()=>Hr,assert:()=>Tr,binding:()=>sr,browser:()=>lr,chdir:()=>pr,config:()=>gr,cpuUsage:()=>xe,cwd:()=>ur,debugPort:()=>zr,default:()=>pt,dlopen:()=>wr,domain:()=>mr,emit:()=>ot,emitWarning:()=>or,env:()=>er,execArgv:()=>tr,execPath:()=>Wr,exit:()=>Ar,features:()=>Nr,hasUncaughtExceptionCaptureCallback:()=>Ur,hrtime:()=>Ee,kill:()=>Rr,listeners:()=>ut,memoryUsage:()=>br,moduleLoadList:()=>hr,nextTick:()=>Ye,off:()=>tt,on:()=>J,once:()=>rt,openStdin:()=>Sr,pid:()=>Gr,platform:()=>Ze,ppid:()=>qr,prependListener:()=>st,prependOnceListener:()=>at,reallyExit:()=>Br,release:()=>cr,removeAllListeners:()=>it,removeListener:()=>nt,resourceUsage:()=>vr,setSourceMapsEnabled:()=>Yr,setUncaughtExceptionCaptureCallback:()=>Fr,stderr:()=>Dr,stdin:()=>jr,stdout:()=>Mr,title:()=>Xe,umask:()=>ar,uptime:()=>Kr,version:()=>nr,versions:()=>ir});function _e(c){throw new Error("Node.js process "+c+" is not supported by JSPM core outside of Node.js")}function Yt(){!ne||!X||(ne=!1,X.length?H=X.concat(H):we=-1,H.length&&Je())}function Je(){if(!ne){var c=setTimeout(Yt,0);ne=!0;for(var t=H.length;t;){for(X=H,H=[];++we<t;)X&&X[we].run();we=-1,t=H.length}X=null,ne=!1,clearTimeout(c)}}function Ye(c){var t=new Array(arguments.length-1);if(arguments.length>1)for(var o=1;o<arguments.length;o++)t[o-1]=arguments[o];H.push(new Ke(c,t)),H.length===1&&!ne&&setTimeout(Je,0)}function Ke(c,t){this.fun=c,this.array=t}function $(){}function dr(c){_e("_linkedBinding")}function wr(c){_e("dlopen")}function Er(){return[]}function xr(){return[]}function Tr(c,t){if(!c)throw new Error(t||"assertion error")}function Ur(){return!1}function Kr(){return K.now()/1e3}function Ee(c){var t=Math.floor((Date.now()-K.now())*.001),o=K.now()*.001,a=Math.floor(o)+t,l=Math.floor(o%1*1e9);return c&&(a=a-c[0],l=l-c[1],l<0&&(a--,l+=Ue)),[a,l]}function J(){return pt}function ut(c){return[]}var H,ne,X,we,Xe,Qe,Ze,er,rr,tr,nr,ir,or,sr,ar,ur,pr,cr,lr,fr,hr,mr,yr,gr,Br,Ir,xe,vr,br,Rr,Ar,Sr,Pr,Nr,Cr,Fr,_r,kr,Lr,Or,$r,Mr,Dr,jr,Vr,Gr,qr,Wr,zr,Hr,Jr,Yr,K,Fe,Ue,Xr,Qr,Zr,et,rt,tt,nt,it,ot,st,at,pt,ct=te(()=>{"use strict";d();y();m();H=[],ne=!1,we=-1;Ke.prototype.run=function(){this.fun.apply(null,this.array)};Xe="browser",Qe="x64",Ze="browser",er={PATH:"/usr/bin",LANG:typeof navigator<"u"?navigator.language+".UTF-8":void 0,PWD:"/",HOME:"/home",TMP:"/tmp"},rr=["/usr/bin/node"],tr=[],nr="v16.8.0",ir={},or=function(c,t){console.warn((t?t+": ":"")+c)},sr=function(c){_e("binding")},ar=function(c){return 0},ur=function(){return"/"},pr=function(c){},cr={name:"node",sourceUrl:"",headersUrl:"",libUrl:""};lr=!0,fr=$,hr=[];mr={},yr=!1,gr={};Br=$,Ir=$,xe=function(){return{}},vr=xe,br=xe,Rr=$,Ar=$,Sr=$,Pr={};Nr={inspector:!1,debug:!1,uv:!1,ipv6:!1,tls_alpn:!1,tls_sni:!1,tls_ocsp:!1,tls:!1,cached_builtins:!0},Cr=$,Fr=$;_r=$,kr=$,Lr=$,Or=$,$r=$,Mr=void 0,Dr=void 0,jr=void 0,Vr=$,Gr=2,qr=1,Wr="/bin/usr/node",zr=9229,Hr="node",Jr=[],Yr=$,K={now:typeof performance<"u"?performance.now.bind(performance):void 0,timing:typeof performance<"u"?performance.timing:void 0};K.now===void 0&&(Fe=Date.now(),K.timing&&K.timing.navigationStart&&(Fe=K.timing.navigationStart),K.now=()=>Date.now()-Fe);Ue=1e9;Ee.bigint=function(c){var t=Ee(c);return typeof BigInt>"u"?t[0]*Ue+t[1]:BigInt(t[0]*Ue)+BigInt(t[1])};Xr=10,Qr={},Zr=0;et=J,rt=J,tt=J,nt=J,it=J,ot=$,st=J,at=J;pt={version:nr,versions:ir,arch:Qe,platform:Ze,browser:lr,release:cr,_rawDebug:fr,moduleLoadList:hr,binding:sr,_linkedBinding:dr,_events:Qr,_eventsCount:Zr,_maxListeners:Xr,on:J,addListener:et,once:rt,off:tt,removeListener:nt,removeAllListeners:it,emit:ot,prependListener:st,prependOnceListener:at,listeners:ut,domain:mr,_exiting:yr,config:gr,dlopen:wr,uptime:Kr,_getActiveRequests:Er,_getActiveHandles:xr,reallyExit:Br,_kill:Ir,cpuUsage:xe,resourceUsage:vr,memoryUsage:br,kill:Rr,exit:Ar,openStdin:Sr,allowedNodeEnvironmentFlags:Pr,assert:Tr,features:Nr,_fatalExceptions:Cr,setUncaughtExceptionCaptureCallback:Fr,hasUncaughtExceptionCaptureCallback:Ur,emitWarning:or,nextTick:Ye,_tickCallback:_r,_debugProcess:kr,_debugEnd:Lr,_startProfilerIdleNotifier:Or,_stopProfilerIdleNotifier:$r,stdout:Mr,stdin:jr,stderr:Dr,abort:Vr,umask:ar,chdir:pr,cwd:ur,env:er,title:Xe,argv:rr,execArgv:tr,pid:Gr,ppid:qr,execPath:Wr,debugPort:zr,hrtime:Ee,argv0:Hr,_preload_modules:Jr,setSourceMapsEnabled:Yr}});var m=te(()=>{"use strict";ct()});function Kt(){if(lt)return oe;lt=!0,oe.byteLength=w,oe.toByteArray=O,oe.fromByteArray=q;for(var c=[],t=[],o=typeof Uint8Array<"u"?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",l=0,h=a.length;l<h;++l)c[l]=a[l],t[a.charCodeAt(l)]=l;t[45]=62,t[95]=63;function s(g){var B=g.length;if(B%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var b=g.indexOf("=");b===-1&&(b=B);var _=b===B?0:4-b%4;return[b,_]}function w(g){var B=s(g),b=B[0],_=B[1];return(b+_)*3/4-_}function E(g,B,b){return(B+b)*3/4-b}function O(g){var B,b=s(g),_=b[0],D=b[1],U=new o(E(g,_,D)),j=0,G=D>0?_-4:_,M;for(M=0;M<G;M+=4)B=t[g.charCodeAt(M)]<<18|t[g.charCodeAt(M+1)]<<12|t[g.charCodeAt(M+2)]<<6|t[g.charCodeAt(M+3)],U[j++]=B>>16&255,U[j++]=B>>8&255,U[j++]=B&255;return D===2&&(B=t[g.charCodeAt(M)]<<2|t[g.charCodeAt(M+1)]>>4,U[j++]=B&255),D===1&&(B=t[g.charCodeAt(M)]<<10|t[g.charCodeAt(M+1)]<<4|t[g.charCodeAt(M+2)]>>2,U[j++]=B>>8&255,U[j++]=B&255),U}function A(g){return c[g>>18&63]+c[g>>12&63]+c[g>>6&63]+c[g&63]}function L(g,B,b){for(var _,D=[],U=B;U<b;U+=3)_=(g[U]<<16&16711680)+(g[U+1]<<8&65280)+(g[U+2]&255),D.push(A(_));return D.join("")}function q(g){for(var B,b=g.length,_=b%3,D=[],U=16383,j=0,G=b-_;j<G;j+=U)D.push(L(g,j,j+U>G?G:j+U));return _===1?(B=g[b-1],D.push(c[B>>2]+c[B<<4&63]+"==")):_===2&&(B=(g[b-2]<<8)+g[b-1],D.push(c[B>>10]+c[B>>4&63]+c[B<<2&63]+"=")),D.join("")}return oe}function Xt(){if(ft)return Be;ft=!0;return Be.read=function(c,t,o,a,l){var h,s,w=l*8-a-1,E=(1<<w)-1,O=E>>1,A=-7,L=o?l-1:0,q=o?-1:1,g=c[t+L];for(L+=q,h=g&(1<<-A)-1,g>>=-A,A+=w;A>0;h=h*256+c[t+L],L+=q,A-=8);for(s=h&(1<<-A)-1,h>>=-A,A+=a;A>0;s=s*256+c[t+L],L+=q,A-=8);if(h===0)h=1-O;else{if(h===E)return s?NaN:(g?-1:1)*(1/0);s=s+Math.pow(2,a),h=h-O}return(g?-1:1)*s*Math.pow(2,h-a)},Be.write=function(c,t,o,a,l,h){var s,w,E,O=h*8-l-1,A=(1<<O)-1,L=A>>1,q=l===23?Math.pow(2,-24)-Math.pow(2,-77):0,g=a?0:h-1,B=a?1:-1,b=t<0||t===0&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(w=isNaN(t)?1:0,s=A):(s=Math.floor(Math.log(t)/Math.LN2),t*(E=Math.pow(2,-s))<1&&(s--,E*=2),s+L>=1?t+=q/E:t+=q*Math.pow(2,1-L),t*E>=2&&(s++,E/=2),s+L>=A?(w=0,s=A):s+L>=1?(w=(t*E-1)*Math.pow(2,l),s=s+L):(w=t*Math.pow(2,L-1)*Math.pow(2,l),s=0));l>=8;c[o+g]=w&255,g+=B,w/=256,l-=8);for(s=s<<l|w,O+=l;O>0;c[o+g]=s&255,g+=B,s/=256,O-=8);c[o+g-B]|=b*128},Be}function dt(){if(ht)return Q;ht=!0;let c=Kt(),t=Xt(),o=typeof Symbol=="function"&&typeof Symbol.for=="function"?Symbol.for("nodejs.util.inspect.custom"):null;Q.Buffer=s,Q.SlowBuffer=D,Q.INSPECT_MAX_BYTES=50;let a=2147483647;Q.kMaxLength=a,s.TYPED_ARRAY_SUPPORT=l(),!s.TYPED_ARRAY_SUPPORT&&typeof console<"u"&&typeof console.error=="function"&&console.error("This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.");function l(){try{let n=new Uint8Array(1),e={foo:function(){return 42}};return Object.setPrototypeOf(e,Uint8Array.prototype),Object.setPrototypeOf(n,e),n.foo()===42}catch{return!1}}Object.defineProperty(s.prototype,"parent",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.buffer}}),Object.defineProperty(s.prototype,"offset",{enumerable:!0,get:function(){if(s.isBuffer(this))return this.byteOffset}});function h(n){if(n>a)throw new RangeError('The value "'+n+'" is invalid for option "size"');let e=new Uint8Array(n);return Object.setPrototypeOf(e,s.prototype),e}function s(n,e,r){if(typeof n=="number"){if(typeof e=="string")throw new TypeError('The "string" argument must be of type string. Received type number');return A(n)}return w(n,e,r)}s.poolSize=8192;function w(n,e,r){if(typeof n=="string")return L(n,e);if(ArrayBuffer.isView(n))return g(n);if(n==null)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n);if(z(n,ArrayBuffer)||n&&z(n.buffer,ArrayBuffer)||typeof SharedArrayBuffer<"u"&&(z(n,SharedArrayBuffer)||n&&z(n.buffer,SharedArrayBuffer)))return B(n,e,r);if(typeof n=="number")throw new TypeError('The "value" argument must not be of type number. Received type number');let i=n.valueOf&&n.valueOf();if(i!=null&&i!==n)return s.from(i,e,r);let u=b(n);if(u)return u;if(typeof Symbol<"u"&&Symbol.toPrimitive!=null&&typeof n[Symbol.toPrimitive]=="function")return s.from(n[Symbol.toPrimitive]("string"),e,r);throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof n)}s.from=function(n,e,r){return w(n,e,r)},Object.setPrototypeOf(s.prototype,Uint8Array.prototype),Object.setPrototypeOf(s,Uint8Array);function E(n){if(typeof n!="number")throw new TypeError('"size" argument must be of type number');if(n<0)throw new RangeError('The value "'+n+'" is invalid for option "size"')}function O(n,e,r){return E(n),n<=0?h(n):e!==void 0?typeof r=="string"?h(n).fill(e,r):h(n).fill(e):h(n)}s.alloc=function(n,e,r){return O(n,e,r)};function A(n){return E(n),h(n<0?0:_(n)|0)}s.allocUnsafe=function(n){return A(n)},s.allocUnsafeSlow=function(n){return A(n)};function L(n,e){if((typeof e!="string"||e==="")&&(e="utf8"),!s.isEncoding(e))throw new TypeError("Unknown encoding: "+e);let r=U(n,e)|0,i=h(r),u=i.write(n,e);return u!==r&&(i=i.slice(0,u)),i}function q(n){let e=n.length<0?0:_(n.length)|0,r=h(e);for(let i=0;i<e;i+=1)r[i]=n[i]&255;return r}function g(n){if(z(n,Uint8Array)){let e=new Uint8Array(n);return B(e.buffer,e.byteOffset,e.byteLength)}return q(n)}function B(n,e,r){if(e<0||n.byteLength<e)throw new RangeError('"offset" is outside of buffer bounds');if(n.byteLength<e+(r||0))throw new RangeError('"length" is outside of buffer bounds');let i;return e===void 0&&r===void 0?i=new Uint8Array(n):r===void 0?i=new Uint8Array(n,e):i=new Uint8Array(n,e,r),Object.setPrototypeOf(i,s.prototype),i}function b(n){if(s.isBuffer(n)){let e=_(n.length)|0,r=h(e);return r.length===0||n.copy(r,0,0,e),r}if(n.length!==void 0)return typeof n.length!="number"||Ce(n.length)?h(0):q(n);if(n.type==="Buffer"&&Array.isArray(n.data))return q(n.data)}function _(n){if(n>=a)throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+a.toString(16)+" bytes");return n|0}function D(n){return+n!=n&&(n=0),s.alloc(+n)}s.isBuffer=function(e){return e!=null&&e._isBuffer===!0&&e!==s.prototype},s.compare=function(e,r){if(z(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),z(r,Uint8Array)&&(r=s.from(r,r.offset,r.byteLength)),!s.isBuffer(e)||!s.isBuffer(r))throw new TypeError('The "buf1", "buf2" arguments must be one of type Buffer or Uint8Array');if(e===r)return 0;let i=e.length,u=r.length;for(let p=0,f=Math.min(i,u);p<f;++p)if(e[p]!==r[p]){i=e[p],u=r[p];break}return i<u?-1:u<i?1:0},s.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},s.concat=function(e,r){if(!Array.isArray(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return s.alloc(0);let i;if(r===void 0)for(r=0,i=0;i<e.length;++i)r+=e[i].length;let u=s.allocUnsafe(r),p=0;for(i=0;i<e.length;++i){let f=e[i];if(z(f,Uint8Array))p+f.length>u.length?(s.isBuffer(f)||(f=s.from(f)),f.copy(u,p)):Uint8Array.prototype.set.call(u,f,p);else if(s.isBuffer(f))f.copy(u,p);else throw new TypeError('"list" argument must be an Array of Buffers');p+=f.length}return u};function U(n,e){if(s.isBuffer(n))return n.length;if(ArrayBuffer.isView(n)||z(n,ArrayBuffer))return n.byteLength;if(typeof n!="string")throw new TypeError('The "string" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof n);let r=n.length,i=arguments.length>2&&arguments[2]===!0;if(!i&&r===0)return 0;let u=!1;for(;;)switch(e){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":return Ne(n).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return r*2;case"hex":return r>>>1;case"base64":return ze(n).length;default:if(u)return i?-1:Ne(n).length;e=(""+e).toLowerCase(),u=!0}}s.byteLength=U;function j(n,e,r){let i=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((r===void 0||r>this.length)&&(r=this.length),r<=0)||(r>>>=0,e>>>=0,r<=e))return"";for(n||(n="utf8");;)switch(n){case"hex":return _t(this,e,r);case"utf8":case"utf-8":return Oe(this,e,r);case"ascii":return Ft(this,e,r);case"latin1":case"binary":return Ut(this,e,r);case"base64":return Nt(this,e,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return kt(this,e,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(n+"").toLowerCase(),i=!0}}s.prototype._isBuffer=!0;function G(n,e,r){let i=n[e];n[e]=n[r],n[r]=i}s.prototype.swap16=function(){let e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(let r=0;r<e;r+=2)G(this,r,r+1);return this},s.prototype.swap32=function(){let e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(let r=0;r<e;r+=4)G(this,r,r+3),G(this,r+1,r+2);return this},s.prototype.swap64=function(){let e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(let r=0;r<e;r+=8)G(this,r,r+7),G(this,r+1,r+6),G(this,r+2,r+5),G(this,r+3,r+4);return this},s.prototype.toString=function(){let e=this.length;return e===0?"":arguments.length===0?Oe(this,0,e):j.apply(this,arguments)},s.prototype.toLocaleString=s.prototype.toString,s.prototype.equals=function(e){if(!s.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:s.compare(this,e)===0},s.prototype.inspect=function(){let e="",r=Q.INSPECT_MAX_BYTES;return e=this.toString("hex",0,r).replace(/(.{2})/g,"$1 ").trim(),this.length>r&&(e+=" ... "),"<Buffer "+e+">"},o&&(s.prototype[o]=s.prototype.inspect),s.prototype.compare=function(e,r,i,u,p){if(z(e,Uint8Array)&&(e=s.from(e,e.offset,e.byteLength)),!s.isBuffer(e))throw new TypeError('The "target" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(r===void 0&&(r=0),i===void 0&&(i=e?e.length:0),u===void 0&&(u=0),p===void 0&&(p=this.length),r<0||i>e.length||u<0||p>this.length)throw new RangeError("out of range index");if(u>=p&&r>=i)return 0;if(u>=p)return-1;if(r>=i)return 1;if(r>>>=0,i>>>=0,u>>>=0,p>>>=0,this===e)return 0;let f=p-u,x=i-r,N=Math.min(f,x),S=this.slice(u,p),C=e.slice(r,i);for(let v=0;v<N;++v)if(S[v]!==C[v]){f=S[v],x=C[v];break}return f<x?-1:x<f?1:0};function M(n,e,r,i,u){if(n.length===0)return-1;if(typeof r=="string"?(i=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,Ce(r)&&(r=u?0:n.length-1),r<0&&(r=n.length+r),r>=n.length){if(u)return-1;r=n.length-1}else if(r<0)if(u)r=0;else return-1;if(typeof e=="string"&&(e=s.from(e,i)),s.isBuffer(e))return e.length===0?-1:Le(n,e,r,i,u);if(typeof e=="number")return e=e&255,typeof Uint8Array.prototype.indexOf=="function"?u?Uint8Array.prototype.indexOf.call(n,e,r):Uint8Array.prototype.lastIndexOf.call(n,e,r):Le(n,[e],r,i,u);throw new TypeError("val must be string, number or Buffer")}function Le(n,e,r,i,u){let p=1,f=n.length,x=e.length;if(i!==void 0&&(i=String(i).toLowerCase(),i==="ucs2"||i==="ucs-2"||i==="utf16le"||i==="utf-16le")){if(n.length<2||e.length<2)return-1;p=2,f/=2,x/=2,r/=2}function N(C,v){return p===1?C[v]:C.readUInt16BE(v*p)}let S;if(u){let C=-1;for(S=r;S<f;S++)if(N(n,S)===N(e,C===-1?0:S-C)){if(C===-1&&(C=S),S-C+1===x)return C*p}else C!==-1&&(S-=S-C),C=-1}else for(r+x>f&&(r=f-x),S=r;S>=0;S--){let C=!0;for(let v=0;v<x;v++)if(N(n,S+v)!==N(e,v)){C=!1;break}if(C)return S}return-1}s.prototype.includes=function(e,r,i){return this.indexOf(e,r,i)!==-1},s.prototype.indexOf=function(e,r,i){return M(this,e,r,i,!0)},s.prototype.lastIndexOf=function(e,r,i){return M(this,e,r,i,!1)};function Rt(n,e,r,i){r=Number(r)||0;let u=n.length-r;i?(i=Number(i),i>u&&(i=u)):i=u;let p=e.length;i>p/2&&(i=p/2);let f;for(f=0;f<i;++f){let x=parseInt(e.substr(f*2,2),16);if(Ce(x))return f;n[r+f]=x}return f}function At(n,e,r,i){return ye(Ne(e,n.length-r),n,r,i)}function St(n,e,r,i){return ye(Mt(e),n,r,i)}function Pt(n,e,r,i){return ye(ze(e),n,r,i)}function Tt(n,e,r,i){return ye(Dt(e,n.length-r),n,r,i)}s.prototype.write=function(e,r,i,u){if(r===void 0)u="utf8",i=this.length,r=0;else if(i===void 0&&typeof r=="string")u=r,i=this.length,r=0;else if(isFinite(r))r=r>>>0,isFinite(i)?(i=i>>>0,u===void 0&&(u="utf8")):(u=i,i=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");let p=this.length-r;if((i===void 0||i>p)&&(i=p),e.length>0&&(i<0||r<0)||r>this.length)throw new RangeError("Attempt to write outside buffer bounds");u||(u="utf8");let f=!1;for(;;)switch(u){case"hex":return Rt(this,e,r,i);case"utf8":case"utf-8":return At(this,e,r,i);case"ascii":case"latin1":case"binary":return St(this,e,r,i);case"base64":return Pt(this,e,r,i);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return Tt(this,e,r,i);default:if(f)throw new TypeError("Unknown encoding: "+u);u=(""+u).toLowerCase(),f=!0}},s.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function Nt(n,e,r){return e===0&&r===n.length?c.fromByteArray(n):c.fromByteArray(n.slice(e,r))}function Oe(n,e,r){r=Math.min(n.length,r);let i=[],u=e;for(;u<r;){let p=n[u],f=null,x=p>239?4:p>223?3:p>191?2:1;if(u+x<=r){let N,S,C,v;switch(x){case 1:p<128&&(f=p);break;case 2:N=n[u+1],(N&192)===128&&(v=(p&31)<<6|N&63,v>127&&(f=v));break;case 3:N=n[u+1],S=n[u+2],(N&192)===128&&(S&192)===128&&(v=(p&15)<<12|(N&63)<<6|S&63,v>2047&&(v<55296||v>57343)&&(f=v));break;case 4:N=n[u+1],S=n[u+2],C=n[u+3],(N&192)===128&&(S&192)===128&&(C&192)===128&&(v=(p&15)<<18|(N&63)<<12|(S&63)<<6|C&63,v>65535&&v<1114112&&(f=v))}}f===null?(f=65533,x=1):f>65535&&(f-=65536,i.push(f>>>10&1023|55296),f=56320|f&1023),i.push(f),u+=x}return Ct(i)}let $e=4096;function Ct(n){let e=n.length;if(e<=$e)return String.fromCharCode.apply(String,n);let r="",i=0;for(;i<e;)r+=String.fromCharCode.apply(String,n.slice(i,i+=$e));return r}function Ft(n,e,r){let i="";r=Math.min(n.length,r);for(let u=e;u<r;++u)i+=String.fromCharCode(n[u]&127);return i}function Ut(n,e,r){let i="";r=Math.min(n.length,r);for(let u=e;u<r;++u)i+=String.fromCharCode(n[u]);return i}function _t(n,e,r){let i=n.length;(!e||e<0)&&(e=0),(!r||r<0||r>i)&&(r=i);let u="";for(let p=e;p<r;++p)u+=jt[n[p]];return u}function kt(n,e,r){let i=n.slice(e,r),u="";for(let p=0;p<i.length-1;p+=2)u+=String.fromCharCode(i[p]+i[p+1]*256);return u}s.prototype.slice=function(e,r){let i=this.length;e=~~e,r=r===void 0?i:~~r,e<0?(e+=i,e<0&&(e=0)):e>i&&(e=i),r<0?(r+=i,r<0&&(r=0)):r>i&&(r=i),r<e&&(r=e);let u=this.subarray(e,r);return Object.setPrototypeOf(u,s.prototype),u};function k(n,e,r){if(n%1!==0||n<0)throw new RangeError("offset is not uint");if(n+e>r)throw new RangeError("Trying to access beyond buffer length")}s.prototype.readUintLE=s.prototype.readUIntLE=function(e,r,i){e=e>>>0,r=r>>>0,i||k(e,r,this.length);let u=this[e],p=1,f=0;for(;++f<r&&(p*=256);)u+=this[e+f]*p;return u},s.prototype.readUintBE=s.prototype.readUIntBE=function(e,r,i){e=e>>>0,r=r>>>0,i||k(e,r,this.length);let u=this[e+--r],p=1;for(;r>0&&(p*=256);)u+=this[e+--r]*p;return u},s.prototype.readUint8=s.prototype.readUInt8=function(e,r){return e=e>>>0,r||k(e,1,this.length),this[e]},s.prototype.readUint16LE=s.prototype.readUInt16LE=function(e,r){return e=e>>>0,r||k(e,2,this.length),this[e]|this[e+1]<<8},s.prototype.readUint16BE=s.prototype.readUInt16BE=function(e,r){return e=e>>>0,r||k(e,2,this.length),this[e]<<8|this[e+1]},s.prototype.readUint32LE=s.prototype.readUInt32LE=function(e,r){return e=e>>>0,r||k(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},s.prototype.readUint32BE=s.prototype.readUInt32BE=function(e,r){return e=e>>>0,r||k(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},s.prototype.readBigUInt64LE=Y(function(e){e=e>>>0,re(e,"offset");let r=this[e],i=this[e+7];(r===void 0||i===void 0)&&ie(e,this.length-8);let u=r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24,p=this[++e]+this[++e]*2**8+this[++e]*2**16+i*2**24;return BigInt(u)+(BigInt(p)<<BigInt(32))}),s.prototype.readBigUInt64BE=Y(function(e){e=e>>>0,re(e,"offset");let r=this[e],i=this[e+7];(r===void 0||i===void 0)&&ie(e,this.length-8);let u=r*2**24+this[++e]*2**16+this[++e]*2**8+this[++e],p=this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+i;return(BigInt(u)<<BigInt(32))+BigInt(p)}),s.prototype.readIntLE=function(e,r,i){e=e>>>0,r=r>>>0,i||k(e,r,this.length);let u=this[e],p=1,f=0;for(;++f<r&&(p*=256);)u+=this[e+f]*p;return p*=128,u>=p&&(u-=Math.pow(2,8*r)),u},s.prototype.readIntBE=function(e,r,i){e=e>>>0,r=r>>>0,i||k(e,r,this.length);let u=r,p=1,f=this[e+--u];for(;u>0&&(p*=256);)f+=this[e+--u]*p;return p*=128,f>=p&&(f-=Math.pow(2,8*r)),f},s.prototype.readInt8=function(e,r){return e=e>>>0,r||k(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},s.prototype.readInt16LE=function(e,r){e=e>>>0,r||k(e,2,this.length);let i=this[e]|this[e+1]<<8;return i&32768?i|4294901760:i},s.prototype.readInt16BE=function(e,r){e=e>>>0,r||k(e,2,this.length);let i=this[e+1]|this[e]<<8;return i&32768?i|4294901760:i},s.prototype.readInt32LE=function(e,r){return e=e>>>0,r||k(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},s.prototype.readInt32BE=function(e,r){return e=e>>>0,r||k(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},s.prototype.readBigInt64LE=Y(function(e){e=e>>>0,re(e,"offset");let r=this[e],i=this[e+7];(r===void 0||i===void 0)&&ie(e,this.length-8);let u=this[e+4]+this[e+5]*2**8+this[e+6]*2**16+(i<<24);return(BigInt(u)<<BigInt(32))+BigInt(r+this[++e]*2**8+this[++e]*2**16+this[++e]*2**24)}),s.prototype.readBigInt64BE=Y(function(e){e=e>>>0,re(e,"offset");let r=this[e],i=this[e+7];(r===void 0||i===void 0)&&ie(e,this.length-8);let u=(r<<24)+this[++e]*2**16+this[++e]*2**8+this[++e];return(BigInt(u)<<BigInt(32))+BigInt(this[++e]*2**24+this[++e]*2**16+this[++e]*2**8+i)}),s.prototype.readFloatLE=function(e,r){return e=e>>>0,r||k(e,4,this.length),t.read(this,e,!0,23,4)},s.prototype.readFloatBE=function(e,r){return e=e>>>0,r||k(e,4,this.length),t.read(this,e,!1,23,4)},s.prototype.readDoubleLE=function(e,r){return e=e>>>0,r||k(e,8,this.length),t.read(this,e,!0,52,8)},s.prototype.readDoubleBE=function(e,r){return e=e>>>0,r||k(e,8,this.length),t.read(this,e,!1,52,8)};function V(n,e,r,i,u,p){if(!s.isBuffer(n))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>u||e<p)throw new RangeError('"value" argument is out of bounds');if(r+i>n.length)throw new RangeError("Index out of range")}s.prototype.writeUintLE=s.prototype.writeUIntLE=function(e,r,i,u){if(e=+e,r=r>>>0,i=i>>>0,!u){let x=Math.pow(2,8*i)-1;V(this,e,r,i,x,0)}let p=1,f=0;for(this[r]=e&255;++f<i&&(p*=256);)this[r+f]=e/p&255;return r+i},s.prototype.writeUintBE=s.prototype.writeUIntBE=function(e,r,i,u){if(e=+e,r=r>>>0,i=i>>>0,!u){let x=Math.pow(2,8*i)-1;V(this,e,r,i,x,0)}let p=i-1,f=1;for(this[r+p]=e&255;--p>=0&&(f*=256);)this[r+p]=e/f&255;return r+i},s.prototype.writeUint8=s.prototype.writeUInt8=function(e,r,i){return e=+e,r=r>>>0,i||V(this,e,r,1,255,0),this[r]=e&255,r+1},s.prototype.writeUint16LE=s.prototype.writeUInt16LE=function(e,r,i){return e=+e,r=r>>>0,i||V(this,e,r,2,65535,0),this[r]=e&255,this[r+1]=e>>>8,r+2},s.prototype.writeUint16BE=s.prototype.writeUInt16BE=function(e,r,i){return e=+e,r=r>>>0,i||V(this,e,r,2,65535,0),this[r]=e>>>8,this[r+1]=e&255,r+2},s.prototype.writeUint32LE=s.prototype.writeUInt32LE=function(e,r,i){return e=+e,r=r>>>0,i||V(this,e,r,4,4294967295,0),this[r+3]=e>>>24,this[r+2]=e>>>16,this[r+1]=e>>>8,this[r]=e&255,r+4},s.prototype.writeUint32BE=s.prototype.writeUInt32BE=function(e,r,i){return e=+e,r=r>>>0,i||V(this,e,r,4,4294967295,0),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4};function Me(n,e,r,i,u){We(e,i,u,n,r,7);let p=Number(e&BigInt(4294967295));n[r++]=p,p=p>>8,n[r++]=p,p=p>>8,n[r++]=p,p=p>>8,n[r++]=p;let f=Number(e>>BigInt(32)&BigInt(4294967295));return n[r++]=f,f=f>>8,n[r++]=f,f=f>>8,n[r++]=f,f=f>>8,n[r++]=f,r}function De(n,e,r,i,u){We(e,i,u,n,r,7);let p=Number(e&BigInt(4294967295));n[r+7]=p,p=p>>8,n[r+6]=p,p=p>>8,n[r+5]=p,p=p>>8,n[r+4]=p;let f=Number(e>>BigInt(32)&BigInt(4294967295));return n[r+3]=f,f=f>>8,n[r+2]=f,f=f>>8,n[r+1]=f,f=f>>8,n[r]=f,r+8}s.prototype.writeBigUInt64LE=Y(function(e,r=0){return Me(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeBigUInt64BE=Y(function(e,r=0){return De(this,e,r,BigInt(0),BigInt("0xffffffffffffffff"))}),s.prototype.writeIntLE=function(e,r,i,u){if(e=+e,r=r>>>0,!u){let N=Math.pow(2,8*i-1);V(this,e,r,i,N-1,-N)}let p=0,f=1,x=0;for(this[r]=e&255;++p<i&&(f*=256);)e<0&&x===0&&this[r+p-1]!==0&&(x=1),this[r+p]=(e/f>>0)-x&255;return r+i},s.prototype.writeIntBE=function(e,r,i,u){if(e=+e,r=r>>>0,!u){let N=Math.pow(2,8*i-1);V(this,e,r,i,N-1,-N)}let p=i-1,f=1,x=0;for(this[r+p]=e&255;--p>=0&&(f*=256);)e<0&&x===0&&this[r+p+1]!==0&&(x=1),this[r+p]=(e/f>>0)-x&255;return r+i},s.prototype.writeInt8=function(e,r,i){return e=+e,r=r>>>0,i||V(this,e,r,1,127,-128),e<0&&(e=255+e+1),this[r]=e&255,r+1},s.prototype.writeInt16LE=function(e,r,i){return e=+e,r=r>>>0,i||V(this,e,r,2,32767,-32768),this[r]=e&255,this[r+1]=e>>>8,r+2},s.prototype.writeInt16BE=function(e,r,i){return e=+e,r=r>>>0,i||V(this,e,r,2,32767,-32768),this[r]=e>>>8,this[r+1]=e&255,r+2},s.prototype.writeInt32LE=function(e,r,i){return e=+e,r=r>>>0,i||V(this,e,r,4,2147483647,-2147483648),this[r]=e&255,this[r+1]=e>>>8,this[r+2]=e>>>16,this[r+3]=e>>>24,r+4},s.prototype.writeInt32BE=function(e,r,i){return e=+e,r=r>>>0,i||V(this,e,r,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[r]=e>>>24,this[r+1]=e>>>16,this[r+2]=e>>>8,this[r+3]=e&255,r+4},s.prototype.writeBigInt64LE=Y(function(e,r=0){return Me(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))}),s.prototype.writeBigInt64BE=Y(function(e,r=0){return De(this,e,r,-BigInt("0x8000000000000000"),BigInt("0x7fffffffffffffff"))});function je(n,e,r,i,u,p){if(r+i>n.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function Ve(n,e,r,i,u){return e=+e,r=r>>>0,u||je(n,e,r,4),t.write(n,e,r,i,23,4),r+4}s.prototype.writeFloatLE=function(e,r,i){return Ve(this,e,r,!0,i)},s.prototype.writeFloatBE=function(e,r,i){return Ve(this,e,r,!1,i)};function Ge(n,e,r,i,u){return e=+e,r=r>>>0,u||je(n,e,r,8),t.write(n,e,r,i,52,8),r+8}s.prototype.writeDoubleLE=function(e,r,i){return Ge(this,e,r,!0,i)},s.prototype.writeDoubleBE=function(e,r,i){return Ge(this,e,r,!1,i)},s.prototype.copy=function(e,r,i,u){if(!s.isBuffer(e))throw new TypeError("argument should be a Buffer");if(i||(i=0),!u&&u!==0&&(u=this.length),r>=e.length&&(r=e.length),r||(r=0),u>0&&u<i&&(u=i),u===i||e.length===0||this.length===0)return 0;if(r<0)throw new RangeError("targetStart out of bounds");if(i<0||i>=this.length)throw new RangeError("Index out of range");if(u<0)throw new RangeError("sourceEnd out of bounds");u>this.length&&(u=this.length),e.length-r<u-i&&(u=e.length-r+i);let p=u-i;return this===e&&typeof Uint8Array.prototype.copyWithin=="function"?this.copyWithin(r,i,u):Uint8Array.prototype.set.call(e,this.subarray(i,u),r),p},s.prototype.fill=function(e,r,i,u){if(typeof e=="string"){if(typeof r=="string"?(u=r,r=0,i=this.length):typeof i=="string"&&(u=i,i=this.length),u!==void 0&&typeof u!="string")throw new TypeError("encoding must be a string");if(typeof u=="string"&&!s.isEncoding(u))throw new TypeError("Unknown encoding: "+u);if(e.length===1){let f=e.charCodeAt(0);(u==="utf8"&&f<128||u==="latin1")&&(e=f)}}else typeof e=="number"?e=e&255:typeof e=="boolean"&&(e=Number(e));if(r<0||this.length<r||this.length<i)throw new RangeError("Out of range index");if(i<=r)return this;r=r>>>0,i=i===void 0?this.length:i>>>0,e||(e=0);let p;if(typeof e=="number")for(p=r;p<i;++p)this[p]=e;else{let f=s.isBuffer(e)?e:s.from(e,u),x=f.length;if(x===0)throw new TypeError('The value "'+e+'" is invalid for argument "value"');for(p=0;p<i-r;++p)this[p+r]=f[p%x]}return this};let ee={};function Te(n,e,r){ee[n]=class extends r{constructor(){super(),Object.defineProperty(this,"message",{value:e.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${n}]`,this.stack,delete this.name}get code(){return n}set code(u){Object.defineProperty(this,"code",{configurable:!0,enumerable:!0,value:u,writable:!0})}toString(){return`${this.name} [${n}]: ${this.message}`}}}Te("ERR_BUFFER_OUT_OF_BOUNDS",function(n){return n?`${n} is outside of buffer bounds`:"Attempt to access memory outside buffer bounds"},RangeError),Te("ERR_INVALID_ARG_TYPE",function(n,e){return`The "${n}" argument must be of type number. Received type ${typeof e}`},TypeError),Te("ERR_OUT_OF_RANGE",function(n,e,r){let i=`The value of "${n}" is out of range.`,u=r;return Number.isInteger(r)&&Math.abs(r)>2**32?u=qe(String(r)):typeof r=="bigint"&&(u=String(r),(r>BigInt(2)**BigInt(32)||r<-(BigInt(2)**BigInt(32)))&&(u=qe(u)),u+="n"),i+=` It must be ${e}. Received ${u}`,i},RangeError);function qe(n){let e="",r=n.length,i=n[0]==="-"?1:0;for(;r>=i+4;r-=3)e=`_${n.slice(r-3,r)}${e}`;return`${n.slice(0,r)}${e}`}function Lt(n,e,r){re(e,"offset"),(n[e]===void 0||n[e+r]===void 0)&&ie(e,n.length-(r+1))}function We(n,e,r,i,u,p){if(n>r||n<e){let f=typeof e=="bigint"?"n":"",x;throw e===0||e===BigInt(0)?x=`>= 0${f} and < 2${f} ** ${(p+1)*8}${f}`:x=`>= -(2${f} ** ${(p+1)*8-1}${f}) and < 2 ** ${(p+1)*8-1}${f}`,new ee.ERR_OUT_OF_RANGE("value",x,n)}Lt(i,u,p)}function re(n,e){if(typeof n!="number")throw new ee.ERR_INVALID_ARG_TYPE(e,"number",n)}function ie(n,e,r){throw Math.floor(n)!==n?(re(n,r),new ee.ERR_OUT_OF_RANGE("offset","an integer",n)):e<0?new ee.ERR_BUFFER_OUT_OF_BOUNDS:new ee.ERR_OUT_OF_RANGE("offset",`>= 0 and <= ${e}`,n)}let Ot=/[^+/0-9A-Za-z-_]/g;function $t(n){if(n=n.split("=")[0],n=n.trim().replace(Ot,""),n.length<2)return"";for(;n.length%4!==0;)n=n+"=";return n}function Ne(n,e){e=e||1/0;let r,i=n.length,u=null,p=[];for(let f=0;f<i;++f){if(r=n.charCodeAt(f),r>55295&&r<57344){if(!u){if(r>56319){(e-=3)>-1&&p.push(239,191,189);continue}else if(f+1===i){(e-=3)>-1&&p.push(239,191,189);continue}u=r;continue}if(r<56320){(e-=3)>-1&&p.push(239,191,189),u=r;continue}r=(u-55296<<10|r-56320)+65536}else u&&(e-=3)>-1&&p.push(239,191,189);if(u=null,r<128){if((e-=1)<0)break;p.push(r)}else if(r<2048){if((e-=2)<0)break;p.push(r>>6|192,r&63|128)}else if(r<65536){if((e-=3)<0)break;p.push(r>>12|224,r>>6&63|128,r&63|128)}else if(r<1114112){if((e-=4)<0)break;p.push(r>>18|240,r>>12&63|128,r>>6&63|128,r&63|128)}else throw new Error("Invalid code point")}return p}function Mt(n){let e=[];for(let r=0;r<n.length;++r)e.push(n.charCodeAt(r)&255);return e}function Dt(n,e){let r,i,u,p=[];for(let f=0;f<n.length&&!((e-=2)<0);++f)r=n.charCodeAt(f),i=r>>8,u=r%256,p.push(u),p.push(i);return p}function ze(n){return c.toByteArray($t(n))}function ye(n,e,r,i){let u;for(u=0;u<i&&!(u+r>=e.length||u>=n.length);++u)e[u+r]=n[u];return u}function z(n,e){return n instanceof e||n!=null&&n.constructor!=null&&n.constructor.name!=null&&n.constructor.name===e.name}function Ce(n){return n!==n}let jt=(function(){let n="0123456789abcdef",e=new Array(256);for(let r=0;r<16;++r){let i=r*16;for(let u=0;u<16;++u)e[i+u]=n[r]+n[u]}return e})();function Y(n){return typeof BigInt>"u"?Vt:n}function Vt(){throw new Error("BigInt not supported")}return Q}var oe,lt,Be,ft,Q,ht,mt=te(()=>{"use strict";d();y();m();oe={},lt=!1;Be={},ft=!1;Q={},ht=!1});var Z,P,vn,bn,yt=te(()=>{"use strict";d();y();m();mt();Z=dt();Z.Buffer;Z.SlowBuffer;Z.INSPECT_MAX_BYTES;Z.kMaxLength;P=Z.Buffer,vn=Z.INSPECT_MAX_BYTES,bn=Z.kMaxLength});var y=te(()=>{"use strict";yt()});var cn={};He(cn,{DynamicSnippetsGenerator:()=>Pe});module.exports=Jt(cn);d();y();m();d();y();m();d();y();m();d();y();m();function W(c){throw new Error("Unexpected value: "+JSON.stringify(c))}d();y();m();function se(c){return Object.keys(c)}d();y();m();d();y();m();d();y();m();var ae=R.env.FERN_STACK_TRACK?.toLowerCase()??"",Qt=ae!==""&&ae!=="0"&&ae!=="false",Qn=["single","multiline","box"].includes(ae)?ae:"single";Qt&&(Error.stackTraceLimit=50);var Zt;function gt(c){Zt?.tag(c)}var Ie=class{constructor(){gt(this)}};d();y();m();var ue=class extends Ie{constructor(o){super();I(this,"value");this.value=o}write(o){typeof this.value=="string"?o.write(this.value):typeof this.value=="function"?this.value(o):this.value.write(o)}};d();y();m();d();y();m();d();y();m();var pe=class{constructor(){I(this,"reporter");I(this,"snippet");I(this,"err");this.snippet=void 0,this.reporter=void 0,this.err=void 0}update({context:t,snippet:o}){this.shouldUpdate({snippet:o,reporter:t.errors})&&(this.reporter=t.errors.clone(),this.snippet=o)}getResponseOrThrow({endpoint:t}){if(this.snippet!=null&&this.reporter!=null)return{snippet:this.snippet,errors:this.reporter.toDynamicSnippetErrors()};throw this.err??new Error(`Failed to generate snippet for endpoint "${t.method} ${t.path}"`)}shouldUpdate({snippet:t,reporter:o}){return this.reporter==null||this.reporter.size()>0&&o.size()===0?!0:t.length>(this.snippet?.length??0)}};var ce=class{constructor(t){I(this,"context");this.context=t}async generate(t,o={}){let a=this.resolveEndpoints({request:t,options:o});if(a.length===0)throw new Error(`No endpoints found that match "${t.endpoint.method} ${t.endpoint.path}"`);let l=new pe;for(let h of a){let s=this.context.clone(),w=this.createSnippetGenerator(s);try{let E=await w.generateSnippet({endpoint:h,request:t,options:o});if(s.errors.empty())return{snippet:E,errors:void 0};l.update({context:s,snippet:E})}catch(E){l.err==null&&(l.err=E)}}return l.getResponseOrThrow({endpoint:t.endpoint})}async generateSnippetAst(t,o={}){let a=this.resolveEndpoints({request:t,options:o});if(a.length===0)throw new Error(`No endpoints found that match "${t.endpoint.method} ${t.endpoint.path}"`);let l;for(let h of a){let s=this.context.clone(),w=this.createSnippetGenerator(s);try{return await w.generateSnippetAst({endpoint:h,request:t,options:o})}catch(E){l=E}}throw l??new Error(`Failed to generate snippet AST for endpoint: ${t.endpoint.method} ${t.endpoint.path}`)}generateSync(t,o={}){let a=this.resolveEndpoints({request:t,options:o});if(a.length===0)throw new Error(`No endpoints found that match "${t.endpoint.method} ${t.endpoint.path}"`);let l=new pe;for(let h of a){let s=this.context.clone(),w=this.createSnippetGenerator(s);try{let E=w.generateSnippetSync({endpoint:h,request:t,options:o});if(s.errors.empty())return{snippet:E,errors:void 0};l.update({context:s,snippet:E})}catch(E){l.err==null&&(l.err=E)}}return l.getResponseOrThrow({endpoint:t.endpoint})}async generateTypeSnippet(t){throw new Error(`Type snippets are not supported by this generator (requested "${t.typeId}")`)}resolveEndpoints({request:t,options:o}){if(o.endpointId!=null){let a=this.context.resolveEndpointById(o.endpointId);if(a==null)throw new Error(`No endpoint found with ID "${o.endpointId}"`);return[a]}return this.context.resolveEndpointLocationOrThrow(t.endpoint)}};d();y();m();d();y();m();d();y();m();var le=class{constructor(){I(this,"REFERENCE_REGEX",/^(?:(\w+)::)?(GET|POST|PUT|DELETE|PATCH|HEAD)\s(\/\S*)$/)}validate(t){return this.REFERENCE_REGEX.test(t)?{type:"valid"}:{type:"invalid"}}tryParse(t){if(this.validate(t).type==="invalid")return;let a=t.match(this.REFERENCE_REGEX);if(!(a==null||a[2]==null||a[3]==null))return{namespace:a[1],method:a[2],path:a[3]}}};d();y();m();var T={Critical:"CRITICAL",Warning:"WARNING"},fe=class c{constructor(){I(this,"errors");I(this,"path");this.errors=[],this.path=[]}add(t){this.errors.push({...t,path:[...this.path]})}scope(t){this.path.push(t)}unscope(){this.path.pop()}getBySeverity(t){return this.errors.filter(o=>o.severity===t)}empty(){return this.errors.length===0}size(){return this.errors.length}truncate(t){this.errors.length=t}clone(){let t=new c;return t.errors=[...this.errors],t.path=[...this.path],t}reset(){this.errors=[],this.path=[]}toDynamicSnippetErrors(){return this.errors.map(t=>({severity:t.severity,path:t.path!=null?this.pathToStringArray(t.path):void 0,message:t.message}))}pathToStringArray(t){let o=[];for(let a of t){if(typeof a=="string"){o.push(a);continue}o[o.length-1]+=`[${a.index}]`}return o}};var he=class{constructor({ir:t,config:o,options:a={}}){I(this,"config");I(this,"options");I(this,"errors");I(this,"_ir");I(this,"httpEndpointReferenceParser");this._ir=t,this.config=o,this.options=a,this.errors=new fe,this.httpEndpointReferenceParser=new le}associateQueryParametersByWireValue({parameters:t,values:o}){let a=[];for(let[l,h]of Object.entries(o))if(h!==void 0){this.errors.scope(l);try{let s=t.find(E=>E.name.wireValue===l);if(s==null)throw this.newParameterNotRecognizedError(l);let w=this.isListTypeReference(s.typeReference)&&!Array.isArray(h)?[h]:h;a.push({name:s.name,typeReference:s.typeReference,value:w})}finally{this.errors.unscope()}}return a}associateByWireValueOrDefault({parameters:t,values:o}){let a=[];for(let l of t){this.errors.scope(l.name.wireValue);try{let h=o[l.name.wireValue];if(h==null)if(l.typeReference.type==="primitive"&&l.typeReference.value==="STRING")h=`<${l.name.wireValue}>`;else{this.errors.add({severity:T.Critical,message:this.newParameterNotRecognizedError(l.name.wireValue).message});continue}a.push({name:l.name,typeReference:l.typeReference,value:h})}finally{this.errors.unscope()}}return a}associateByWireValue({parameters:t,values:o,ignoreMissingParameters:a}){let l=[],h=new Set;for(let s of t){let w=s.name.wireValue,E=o[w];if(E!==void 0){h.add(w),this.errors.scope(w);try{l.push({name:s.name,typeReference:s.typeReference,value:E})}finally{this.errors.unscope()}}}if(!a){for(let[s,w]of Object.entries(o))if(!(w===void 0||h.has(s))){this.errors.scope(s);try{this.errors.add({severity:T.Critical,message:this.newParameterNotRecognizedError(s).message})}finally{this.errors.unscope()}}}return l}getExampleObjectProperties({parameters:t,snippetObject:o}){let a=typeof o=="object"&&o!==null&&!Array.isArray(o)?o:{},l=[];for(let h of t){let s=a[h.name.wireValue];s==null?h.typeReference.type==="nullable"&&l.push({name:h.name,typeReference:h.typeReference,value:null}):l.push({name:h.name,typeReference:h.typeReference,value:s})}return l}getSingleFileValue({property:t,record:o}){let a=o[t.wireValue];if(a!=null){if(typeof a!="string"){this.errors.add({severity:T.Critical,message:`Expected file value to be a string, got ${typeof a}`});return}return a}}getFileArrayValues({property:t,record:o}){let a=o[t.wireValue];if(a==null)return;if(!Array.isArray(a)){this.errors.add({severity:T.Critical,message:`Expected file array value to be an array of strings, got ${typeof a}`});return}let l=[];for(let h of a){if(typeof h!="string"){this.errors.add({severity:T.Critical,message:`Expected file array value to be an array of strings, got ${typeof h}`});return}l.push(h)}return l}getRecord(t){if(typeof t!="object"||Array.isArray(t)){this.errors.add({severity:T.Critical,message:`Expected object with key, value pairs but got: ${Array.isArray(t)?"array":typeof t}`});return}return t??{}}resolveNamedType({typeId:t}){let o=this._ir.types[t];if(o==null){this.errors.add({severity:T.Critical,message:`Type identified by "${t}" could not be found`});return}return o}orderUndiscriminatedUnionTypes({types:t,value:o}){if(typeof o!="object"||o==null||Array.isArray(o)||Object.keys(o).length>0)return t;let a=[],l=[];for(let h of t){let s=h.type==="named"?this.resolveNamedType({typeId:h.value}):void 0;s?.type==="object"&&s.properties.length===0&&(s.extends??[]).length===0?a.push(h):l.push(h)}return[...a,...l]}resolveDiscriminatedUnionTypeInstance({discriminatedUnion:t,value:o}){let a=this.getRecord(o);if(a==null)return;let l=t.discriminant.wireValue,h=a[l];if(h==null){this.errors.add({severity:T.Critical,message:this.newParameterNotRecognizedError(l).message});return}if(typeof h!="string"){this.errors.add({severity:T.Critical,message:`Expected discriminant value to be a string but got: ${typeof h}`});return}let s=t.types[h];if(s==null){this.errors.add({severity:T.Critical,message:`No type found for discriminant value "${h}"`});return}let{[l]:w,...E}=a;return{singleDiscriminatedUnionType:s,discriminantValue:s.discriminantValue,value:E}}resolveEndpointOrThrow(t){let o=this.httpEndpointReferenceParser.tryParse(t);if(o==null)throw new Error(`Failed to parse endpoint reference "${t}"`);return this.resolveEndpointLocationOrThrow(o)}resolveEndpointLocation(t){let o=[];for(let a of Object.values(this._ir.endpoints))this.parsedEndpointMatches({endpoint:a,parsedEndpoint:t})&&o.push(a);return o}resolveEndpointLocationOrThrow(t){let o=this.resolveEndpointLocation(t);if(o.length===0)throw new Error(`Failed to find endpoint identified by "${t.method} ${t.path}"`);return o}resolveEndpointById(t){return this._ir.endpoints[t]}resolveEndpointByIdOrThrow(t){let o=this.resolveEndpointById(t);if(o==null)throw new Error(`Failed to find endpoint with ID "${t}"`);return o}needsRequestParameter({request:t,inlinePathParameters:o,inlineFileProperties:a}){return this.includePathParametersInWrappedRequest({request:t,inlinePathParameters:o})||t.queryParameters!=null&&t.queryParameters.length>0||t.headers!=null&&t.headers.length>0?!0:t.body!=null?this.includeRequestBodyInWrappedRequest({body:t.body,inlineFileProperties:a}):!t.metadata?.onlyPathParameters}includePathParametersInWrappedRequest({request:t,inlinePathParameters:o}){return o&&(t.metadata?.includePathParameters??!1)}isFileUploadRequestBody(t){switch(t.type){case"fileUpload":return!0;case"properties":case"referenced":return!1;default:W(t)}}resolveEnvironmentName(t){if(this._ir.environments==null)return;let o=this._ir.environments.environments;switch(o.type){case"singleBaseUrl":{let a=o.environments.find(l=>l.id===t);return a?.name}case"multipleBaseUrls":{let a=o.environments.find(l=>l.id===t);return a?.name}default:W(o)}}isSingleEnvironmentID(t){return typeof t=="string"}isMultiEnvironmentValues(t){return typeof t=="object"}validateMultiEnvironmentUrlValues(t){if(this._ir.environments==null)return this.errors.add({severity:T.Critical,message:"Multiple environments are not supported for single base URL environments; use the baseUrl option instead"}),!1;let o=this._ir.environments.environments;switch(o.type){case"singleBaseUrl":return this.errors.add({severity:T.Critical,message:"Multiple environments are not supported for single base URL environments; use the baseUrl option instead"}),!1;case"multipleBaseUrls":{let a=o.environments[0];if(a==null)return this.errors.add({severity:T.Critical,message:"Multiple environments are not supported; use the baseUrl option instead"}),!1;let l=new Set(se(a.urls));for(let h of se(t))l.has(h)&&l.delete(h);return l.size>0?(this.errors.add({severity:T.Critical,message:`The provided environments are invalid; got: [${Object.keys(t).join(", ")}], expected: [${se(a.urls).join(", ")}]`}),!1):!0}}}getValueAsNumber({value:t}){if(typeof t!="number"){this.errors.add({severity:T.Critical,message:this.newTypeMismatchError({expected:"number",value:t}).message});return}return t}getValueAsBoolean({value:t}){if(typeof t!="boolean"){this.errors.add({severity:T.Critical,message:this.newTypeMismatchError({expected:"boolean",value:t}).message});return}return t}getValueAsString({value:t}){if(typeof t!="string"){this.errors.add({severity:T.Critical,message:this.newTypeMismatchError({expected:"string",value:t}).message});return}return t}isOptional(t){switch(t.type){case"nullable":return this.isOptional(t.value);case"optional":return!0;case"named":{let o=this.resolveNamedType({typeId:t.value});return o==null?!1:o.type==="alias"?this.isNullable(o.typeReference):!1}}return!1}isNullable(t){switch(t.type){case"nullable":return!0;case"optional":return this.isNullable(t.value);case"named":{let o=this.resolveNamedType({typeId:t.value});return o==null?!1:o.type==="alias"?this.isNullable(o.typeReference):!1}}return!1}newAuthMismatchError({auth:t,values:o}){return new Error(`Expected auth type ${t.type}, got ${o.type}`)}newParameterNotRecognizedError(t){return new Error(`"${t}" is not a recognized parameter for this endpoint`)}newTypeMismatchError({expected:t,value:o}){return new Error(`Expected ${t}, got ${typeof o}`)}includeRequestBodyInWrappedRequest({body:t,inlineFileProperties:o}){switch(t.type){case"properties":case"referenced":return!0;case"fileUpload":return this.includeFileUploadBodyInWrappedRequest({fileUpload:t,inlineFileProperties:o});default:W(t)}}includeFileUploadBodyInWrappedRequest({fileUpload:t,inlineFileProperties:o}){return this.fileUploadHasBodyProperties({fileUpload:t})||o&&this.fileUploadHasFileProperties({fileUpload:t})}fileUploadHasBodyProperties({fileUpload:t}){return t.properties.some(o=>{switch(o.type){case"file":case"fileArray":return!1;case"bodyProperty":return!0;default:W(o)}})}fileUploadHasFileProperties({fileUpload:t}){return t.properties.some(o=>{switch(o.type){case"file":case"fileArray":return!0;case"bodyProperty":return!1;default:W(o)}})}isListTypeReference(t){return t.type==="optional"?this.isListTypeReference(t.value):t.type==="list"||t.type==="set"}parsedEndpointMatches({endpoint:t,parsedEndpoint:o}){return t.location.method===o.method&&t.location.path===o.path}};d();y();m();d();y();m();var en=["params","output","json","format","dry-run","base-url","page-all","page-limit","page-delay","no-pager","no-extract","retries","no-retry","no-stream","quiet","query","help","debug","schema","user-agent-suffix"],rn=new Set(en);function wt(c,t){return rn.has(c)||(t?.has(c)??!1)}function de(c){let t="";for(let o of c)bt(o)?ke(o)?(t.length>0&&!t.endsWith("-")&&(t+="-"),t+=o.toLowerCase()):t+=o:t.length>0&&!t.endsWith("-")&&(t+="-");for(;t.endsWith("-");)t=t.slice(0,-1);return t}function ve(c){let t=[...c],o="";for(let a=0;a<t.length;a++){let l=t[a];l==="_"||l==="-"?o.length>0&&!o.endsWith("-")&&(o+="-"):ke(l)?(a>0&&o.length>0&&!o.endsWith("-")&&(o+="-"),o+=l.toLowerCase()):o+=l}return o}function Et(c){if(c.length===0)return;for(let a of c){let l=a.codePointAt(0)??0;if(l<=31||l===127||/\s/u.test(a))return}let t=c.normalize("NFKD").replace(/\p{M}/gu,"").replace(/[\u200B-\u200F\u202A-\u202E\u2060-\u2064\uFEFF]/gu,"");for(let a of t)if((a.codePointAt(0)??0)>127)return;let o=tn(t);if(o.length!==0)return o}function tn(c){let t=[...c],o="";for(let a=0;a<t.length;a++){let l=t[a];bt(l)?ke(l)?(a>0&&o.length>0&&!o.endsWith("-")&&(o+="-"),o+=l.toLowerCase()):o+=l:o.length>0&&!o.endsWith("-")&&(o+="-")}for(;o.endsWith("-");)o=o.slice(0,-1);return o}function xt(c,t,o){let a;if(c.flagNameOverride!=null)a=c.flagNameOverride;else{let l=c.displayName??t;if(c.location==="body")a=ve(l);else{let h=Et(l);if(h==null)return;a=h}}return wt(a,o)&&(a=`${a}-param`),a}function Bt(c,t){let o=ve(c);return wt(o,t)?void 0:o}function It(c,t){return/[^A-Za-z0-9_-]/.test(c)&&Et(c)!=null?t:c}function vt(c){return c.trim().toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").replace(/-{2,}/g,"-")}function bt(c){return/^[A-Za-z0-9]$/.test(c)}function ke(c){return c>="A"&&c<="Z"}var be=class c extends he{constructor({ir:o,config:a}){super({ir:o,config:a});I(this,"ir");I(this,"customConfig");this.ir=o,this.customConfig=a.customConfig!=null?a.customConfig:void 0}clone(){return new c({ir:this.ir,config:this.config})}getBinaryName(){let o=this.customConfig?.binaryName?.trim(),a=o!=null&&o.length>0?o:this.config.workspaceName;return vt(a)}getCommandPrefix(o){let a=[this.getBinaryName()],l=this.customConfig?.rootGroup?.trim();return l!=null&&l.length>0&&a.push(de(l)),a.push(...this.getGroupPath(o.declaration.fernFilepath.allParts.map(h=>h.originalName))),a.push(de(o.declaration.name.originalName)),a}getGroupPath(o){let[a,...l]=o,h=a!=null?this.customConfig?.namespaces?.[a]:void 0;if(h==null)return o.map(de);let s=h.split("/").filter(E=>E.length>0),w=l.map(de);return w.length>0&&w[0]===s[s.length-1]&&w.shift(),[...s,...w]}getReservedFlagNames(){let o=new Set,a=this.customConfig?.userAgentSuffixFlag?.trim();return a!=null&&a.length>0&&o.add(ve(a)),this.customConfig?.profiles?.enabled===!0&&o.add("profile"),o}};d();y();m();d();y();m();var nn="--params",on="--json",Ae=class{constructor(t){I(this,"tokens");I(this,"paramsPayload",{});I(this,"seenFlags",new Set);I(this,"hasParamsPayload",!1);I(this,"jsonBody");I(this,"jsonBodySet",!1);this.tokens=[...t]}pushFlag(t,o){return this.seenFlags.has(t)?!1:(this.seenFlags.add(t),this.pushFlagValue(t,o),!0)}pushRepeatedFlag(t,o){if(this.seenFlags.has(t))return!1;this.seenFlags.add(t);for(let a of o)a!=null&&this.pushFlagValue(t,a);return!0}pushFlagValue(t,o){let a=sn(o);a.startsWith("-")?this.tokens.push(`${t}=${Re(a)}`):this.tokens.push(t,Re(a))}routeToParams(t,o){an(this.paramsPayload,t,o),this.hasParamsPayload=!0}setJsonBody(t){this.jsonBody=t,this.jsonBodySet=!0}build(){let t=[...this.tokens];return this.jsonBodySet&&this.jsonBody!=null&&(me(this.jsonBody)&&Object.keys(this.jsonBody).length===0||t.push(on,Re(JSON.stringify(this.jsonBody)))),this.hasParamsPayload&&t.push(nn,Re(JSON.stringify(this.paramsPayload))),t.join(" ")}};function sn(c){return typeof c=="boolean"?c?"true":"false":String(c)}function Re(c){return c.length>0&&/^[A-Za-z0-9_.:/@%+=-]+$/.test(c)?c:`'${c.replace(/'/g,"'\\''")}'`}function me(c){return typeof c=="object"&&c!=null&&!Array.isArray(c)}function an(c,t,o){let a=c;for(let l=0;l<t.length-1;l++){let h=t[l],s=a[h];me(s)||(a[h]={}),a=a[h]}a[t[t.length-1]]=o}var Se=class{constructor({context:t}){I(this,"context");this.context=t}async generateSnippet({endpoint:t,request:o}){return this.buildCommand({endpoint:t,snippet:o})}generateSnippetSync({endpoint:t,request:o}){return this.buildCommand({endpoint:t,snippet:o})}async generateSnippetAst({endpoint:t,request:o}){return new ue(this.buildCommand({endpoint:t,snippet:o}))}buildCommand({endpoint:t,snippet:o}){let a=new Ae(this.context.getCommandPrefix(t));switch(t.request.type){case"inlined":this.emitInlinedRequest({builder:a,request:t.request,snippet:o});break;case"body":this.emitBodyRequest({builder:a,request:t.request,snippet:o});break;default:W(t.request)}return a.build()}emitInlinedRequest({builder:t,request:o,snippet:a}){this.emitPathParameters({builder:t,requestPathParameters:o.pathParameters,snippet:a}),this.emitNamedParameters({builder:t,location:"query",parameters:o.queryParameters,values:a.queryParameters}),this.emitNamedParameters({builder:t,location:"header",parameters:o.headers,values:a.headers}),o.body!=null&&a.requestBody!=null&&this.emitInlinedRequestBody({builder:t,body:o.body,snippet:a})}emitBodyRequest({builder:t,request:o,snippet:a}){this.emitPathParameters({builder:t,requestPathParameters:o.pathParameters,snippet:a}),o.body!=null&&a.requestBody!=null&&this.emitReferencedBody({builder:t,body:o.body,value:a.requestBody})}emitPathParameters({builder:t,requestPathParameters:o,snippet:a}){let l=[...this.context.ir.pathParameters??[],...o??[]].filter(h=>h.variable==null);this.emitNamedParameters({builder:t,location:"path",parameters:l,values:a.pathParameters})}emitNamedParameters({builder:t,location:o,parameters:a,values:l}){if(!(a==null||a.length===0)){this.context.errors.scope(un(o));try{let h=this.context.associateByWireValue({parameters:a,values:l??{},ignoreMissingParameters:!0});for(let s of h)this.emitValue({builder:t,location:o,name:s.name,value:s.value})}finally{this.context.errors.unscope()}}}emitInlinedRequestBody({builder:t,body:o,snippet:a}){this.context.errors.scope("Body");try{switch(o.type){case"properties":this.emitObjectBody({builder:t,properties:o.value,value:a.requestBody});break;case"referenced":this.emitReferencedBody({builder:t,body:o.bodyType,value:a.requestBody});break;case"fileUpload":this.emitObjectBody({builder:t,properties:pn(o),value:a.requestBody,multipart:!0});break;default:W(o)}}finally{this.context.errors.unscope()}}emitReferencedBody({builder:t,body:o,value:a}){switch(o.type){case"typeReference":{let l=this.resolveObjectProperties(o.value);l!=null?this.emitObjectBody({builder:t,properties:l,value:a}):t.setJsonBody(a);break}case"bytes":this.context.errors.add({severity:T.Warning,message:"Binary (bytes) request body omitted from the CLI snippet: the dynamic IR does not carry the runtime's file-flag metadata."});break;default:W(o)}}emitObjectBody({builder:t,properties:o,value:a,multipart:l=!1}){let h=this.context.getRecord(a);if(h==null)return;if(o.some(w=>w.name.wireValue.includes("."))){t.setJsonBody(h);return}let s=this.context.associateByWireValue({parameters:o,values:h});for(let w of s)this.emitValue({builder:t,location:"body",name:w.name,value:w.value,multipart:l})}emitValue({builder:t,location:o,name:a,value:l,multipart:h=!1}){if(l===void 0)return;let s=a.wireValue,w=this.context.getReservedFlagNames(),E=h?Bt(s,w):xt({location:o,displayName:It(s,a.name.originalName)},s,w);if(E==null){this.context.errors.add({severity:T.Warning,message:`Parameter "${s}" was omitted from the CLI snippet: its name cannot be expressed as a flag and the runtime cannot accept it via --params.`});return}let O=`--${E}`;if(Array.isArray(l)){l.every(A=>!me(A)&&!Array.isArray(A))?this.warnIfFlagCollision(t.pushRepeatedFlag(O,l),O,s):t.routeToParams([s],l);return}if(me(l)){t.routeToParams([s],l);return}this.warnIfFlagCollision(t.pushFlag(O,l),O,s)}warnIfFlagCollision(t,o,a){t||this.context.errors.add({severity:T.Warning,message:`Parameter "${a}" was omitted from the CLI snippet: its flag "${o}" collides with another parameter's and the runtime keeps only the first.`})}resolveObjectProperties(t){if(t.type!=="named")return;let o=this.context.resolveNamedType({typeId:t.value});if(o!=null){if(o.type==="object")return o.properties;if(o.type==="alias")return this.resolveObjectProperties(o.typeReference)}}};function un(c){switch(c){case"path":return"PathParameters";case"query":return"QueryParameters";case"header":return"Headers";case"body":return"Body"}}function pn(c){let t=[];for(let o of c.properties)switch(o.type){case"bodyProperty":t.push(o);break;case"file":case"fileArray":{let a={name:{wireValue:o.wireValue,name:o.name},typeReference:{type:"primitive",value:"STRING"}};t.push(a);break}default:break}return t}var Pe=class extends ce{constructor({ir:t,config:o}){super(new be({ir:t,config:o}))}async generate(t,o={}){return super.generate(t,o)}generateSync(t){return super.generateSync(t)}async generateSnippetAst(t,o){return super.generateSnippetAst(t,o)}createSnippetGenerator(t){return new Se({context:t})}};0&&(module.exports={DynamicSnippetsGenerator});
2
2
  /*! Bundled license information:
3
3
 
4
4
  @jspm/core/nodelibs/browser/chunk-DtuTasat.js: