@fern-api/go-dynamic-snippets 0.0.11 → 0.0.12
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/cjs/DynamicSnippetsGenerator.cjs +9 -9
- package/cjs/DynamicSnippetsGenerator.d.cts +1 -1
- package/cjs/{DynamicSnippetsGeneratorContext-DuDerGxa.d.cts → DynamicSnippetsGeneratorContext-f4OAff1R.d.cts} +5 -1
- package/cjs/EndpointSnippetGenerator.cjs +6 -6
- package/cjs/EndpointSnippetGenerator.d.cts +3 -1
- package/cjs/Result.d.cts +1 -1
- package/cjs/context/DynamicSnippetsGeneratorContext.cjs +5 -5
- package/cjs/context/DynamicSnippetsGeneratorContext.d.cts +1 -1
- package/cjs/context/DynamicTypeInstantiationMapper.cjs +5 -5
- package/cjs/context/DynamicTypeInstantiationMapper.d.cts +1 -1
- package/cjs/context/DynamicTypeMapper.d.cts +1 -1
- package/cjs/context/FilePropertyMapper.d.cts +1 -1
- package/cjs/index.cjs +9 -9
- package/cjs/index.d.cts +1 -1
- package/esm/DynamicSnippetsGenerator.d.ts +1 -1
- package/esm/DynamicSnippetsGenerator.js +1 -1
- package/esm/{DynamicSnippetsGeneratorContext-DKWsHJSo.d.ts → DynamicSnippetsGeneratorContext-Dyk9qWMy.d.ts} +5 -1
- package/esm/EndpointSnippetGenerator.d.ts +3 -1
- package/esm/EndpointSnippetGenerator.js +1 -1
- package/esm/Result.d.ts +1 -1
- package/esm/chunk-575DWQWD.js +1 -0
- package/esm/chunk-DMDZDIA7.js +1 -0
- package/esm/{chunk-775WBLQ5.js → chunk-HBFOF5YT.js} +1 -1
- package/esm/chunk-M3DYFCFN.js +1 -0
- package/esm/context/DynamicSnippetsGeneratorContext.d.ts +1 -1
- package/esm/context/DynamicSnippetsGeneratorContext.js +1 -1
- package/esm/context/DynamicTypeInstantiationMapper.d.ts +1 -1
- package/esm/context/DynamicTypeInstantiationMapper.js +1 -1
- package/esm/context/DynamicTypeMapper.d.ts +1 -1
- package/esm/context/FilePropertyMapper.d.ts +1 -1
- package/esm/index.d.ts +1 -1
- package/esm/index.js +1 -1
- package/package.json +2 -2
- package/esm/chunk-4PKXKUYU.js +0 -1
- package/esm/chunk-5XUC5IOB.js +0 -1
- package/esm/chunk-6JCPJA27.js +0 -1
- package/esm/chunk-BC35GX6S.js +0 -1
- package/esm/chunk-COBOWL3P.js +0 -1
- package/esm/chunk-I3J7ADQS.js +0 -1
- package/esm/chunk-IQODEXPX.js +0 -1
- package/esm/chunk-KJOW5AZT.js +0 -1
- package/esm/chunk-SUV3YIZ5.js +0 -1
- package/esm/chunk-UVYC4FWB.js +0 -1
- package/esm/chunk-VAYOWHUI.js +0 -19
- package/esm/chunk-ZQRLKIRW.js +0 -1
- package/esm/chunk-ZXKMRXFM.js +0 -1
- package/esm/chunk-ZYGZ4VN4.js +0 -1
package/esm/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { DynamicSnippetsGenerator } from './DynamicSnippetsGenerator.js';
|
|
2
2
|
import '@fern-api/browser-compatible-base-generator';
|
|
3
|
-
import './DynamicSnippetsGeneratorContext-
|
|
3
|
+
import './DynamicSnippetsGeneratorContext-Dyk9qWMy.js';
|
|
4
4
|
import '@fern-api/go-ast';
|
|
5
5
|
import '@fern-fern/ir-sdk/api';
|
|
6
6
|
import './TypeInstance.js';
|
package/esm/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as ji}from"./chunk-775WBLQ5.js";import"./chunk-SUV3YIZ5.js";import"./chunk-5TA7XQOD.js";import"./chunk-IIKN6XQS.js";import"./chunk-ZXKMRXFM.js";import"./chunk-I3J7ADQS.js";import"./chunk-VLNKANS2.js";import"./chunk-LLE63BZO.js";import"./chunk-E5FOYV6P.js";import"./chunk-ZI6CAI2V.js";import{e as ne,f as y,g as Gi,h as ki,i as zi,k as o,l as s,m as i}from"./chunk-2AZXIWKY.js";var ht=y((jl,vt)=>{"use strict";o();i();var Hi="Function.prototype.bind called on incompatible ",Ji=Object.prototype.toString,Ki=Math.max,Qi="[object Function]",gt=function(r,t){for(var n=[],u=0;u<r.length;u+=1)n[u]=r[u];for(var a=0;a<t.length;a+=1)n[a+r.length]=t[a];return n},Yi=function(r,t){for(var n=[],u=t||0,a=0;u<r.length;u+=1,a+=1)n[a]=r[u];return n},Xi=function(e,r){for(var t="",n=0;n<e.length;n+=1)t+=e[n],n+1<e.length&&(t+=r);return t};vt.exports=function(r){var t=this;if(typeof t!="function"||Ji.apply(t)!==Qi)throw new TypeError(Hi+t);for(var n=Yi(arguments,1),u,a=function(){if(this instanceof u){var v=t.apply(this,gt(n,arguments));return Object(v)===v?v:this}return t.apply(r,gt(n,arguments))},f=Ki(0,t.length-n.length),c=[],l=0;l<f;l++)c[l]="$"+l;if(u=Function("binder","return function ("+Xi(c,",")+"){ return binder.apply(this,arguments); }")(a),t.prototype){var m=function(){};m.prototype=t.prototype,u.prototype=new m,m.prototype=null}return u}});var Or=y((Kl,dt)=>{"use strict";o();i();var Zi=ht();dt.exports=Function.prototype.bind||Zi});var St=y((Xl,mt)=>{"use strict";o();i();mt.exports=Error});var wt=y((rs,bt)=>{"use strict";o();i();bt.exports=EvalError});var Ot=y((ns,At)=>{"use strict";o();i();At.exports=RangeError});var xt=y((as,qt)=>{"use strict";o();i();qt.exports=ReferenceError});var oe=y((ls,$t)=>{"use strict";o();i();$t.exports=SyntaxError});var w=y((cs,Et)=>{"use strict";o();i();Et.exports=TypeError});var It=y((vs,Pt)=>{"use strict";o();i();Pt.exports=URIError});var ie=y((ms,Tt)=>{"use strict";o();i();Tt.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var u=42;r[t]=u;for(t in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var a=Object.getOwnPropertySymbols(r);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var f=Object.getOwnPropertyDescriptor(r,t);if(f.value!==u||f.enumerable!==!0)return!1}return!0}});var ae=y((ws,Rt)=>{"use strict";o();i();var Ft=typeof Symbol!="undefined"&&Symbol,Vi=ie();Rt.exports=function(){return typeof Ft!="function"||typeof Symbol!="function"||typeof Ft("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Vi()}});var Dt=y((qs,Nt)=>{"use strict";o();i();var ue={__proto__:null,foo:{}},ra=Object;Nt.exports=function(){return{__proto__:ue}.foo===ue.foo&&!(ue instanceof ra)}});var Bt=y((Es,_t)=>{"use strict";o();i();var ea=Function.prototype.call,ta=Object.prototype.hasOwnProperty,na=Or();_t.exports=na.call(ea,ta)});var E=y((Ts,Lt)=>{"use strict";o();i();var d,oa=St(),ia=wt(),aa=Ot(),ua=xt(),Z=oe(),X=w(),fa=It(),Wt=Function,fe=function(e){try{return Wt('"use strict"; return ('+e+").constructor;")()}catch(r){}},G=Object.getOwnPropertyDescriptor;if(G)try{G({},"")}catch(e){G=null}var le=function(){throw new X},la=G?function(){try{return arguments.callee,le}catch(e){try{return G(arguments,"callee").get}catch(r){return le}}}():le,Q=ae()(),sa=Dt()(),b=Object.getPrototypeOf||(sa?function(e){return e.__proto__}:null),Y={},pa=typeof Uint8Array=="undefined"||!b?d:b(Uint8Array),k={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?d:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?d:ArrayBuffer,"%ArrayIteratorPrototype%":Q&&b?b([][Symbol.iterator]()):d,"%AsyncFromSyncIteratorPrototype%":d,"%AsyncFunction%":Y,"%AsyncGenerator%":Y,"%AsyncGeneratorFunction%":Y,"%AsyncIteratorPrototype%":Y,"%Atomics%":typeof Atomics=="undefined"?d:Atomics,"%BigInt%":typeof BigInt=="undefined"?d:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?d:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?d:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?d:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":oa,"%eval%":eval,"%EvalError%":ia,"%Float32Array%":typeof Float32Array=="undefined"?d:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?d:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?d:FinalizationRegistry,"%Function%":Wt,"%GeneratorFunction%":Y,"%Int8Array%":typeof Int8Array=="undefined"?d:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?d:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?d:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Q&&b?b(b([][Symbol.iterator]())):d,"%JSON%":typeof JSON=="object"?JSON:d,"%Map%":typeof Map=="undefined"?d:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!Q||!b?d:b(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?d:Promise,"%Proxy%":typeof Proxy=="undefined"?d:Proxy,"%RangeError%":aa,"%ReferenceError%":ua,"%Reflect%":typeof Reflect=="undefined"?d:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?d:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!Q||!b?d:b(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?d:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Q&&b?b(""[Symbol.iterator]()):d,"%Symbol%":Q?Symbol:d,"%SyntaxError%":Z,"%ThrowTypeError%":la,"%TypedArray%":pa,"%TypeError%":X,"%Uint8Array%":typeof Uint8Array=="undefined"?d:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?d:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?d:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?d:Uint32Array,"%URIError%":fa,"%WeakMap%":typeof WeakMap=="undefined"?d:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?d:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?d:WeakSet};if(b)try{null.error}catch(e){Mt=b(b(e)),k["%Error.prototype%"]=Mt}var Mt,ca=function e(r){var t;if(r==="%AsyncFunction%")t=fe("async function () {}");else if(r==="%GeneratorFunction%")t=fe("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=fe("async function* () {}");else if(r==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(r==="%AsyncIteratorPrototype%"){var u=e("%AsyncGenerator%");u&&b&&(t=b(u.prototype))}return k[r]=t,t},Ct={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ar=Or(),qr=Bt(),ya=ar.call(Function.call,Array.prototype.concat),ga=ar.call(Function.apply,Array.prototype.splice),Ut=ar.call(Function.call,String.prototype.replace),xr=ar.call(Function.call,String.prototype.slice),va=ar.call(Function.call,RegExp.prototype.exec),ha=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,da=/\\(\\)?/g,ma=function(r){var t=xr(r,0,1),n=xr(r,-1);if(t==="%"&&n!=="%")throw new Z("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new Z("invalid intrinsic syntax, expected opening `%`");var u=[];return Ut(r,ha,function(a,f,c,l){u[u.length]=c?Ut(l,da,"$1"):f||a}),u},Sa=function(r,t){var n=r,u;if(qr(Ct,n)&&(u=Ct[n],n="%"+u[0]+"%"),qr(k,n)){var a=k[n];if(a===Y&&(a=ca(n)),typeof a=="undefined"&&!t)throw new X("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:u,name:n,value:a}}throw new Z("intrinsic "+r+" does not exist!")};Lt.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new X("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new X('"allowMissing" argument must be a boolean');if(va(/^%?[^%]*%?$/,r)===null)throw new Z("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ma(r),u=n.length>0?n[0]:"",a=Sa("%"+u+"%",t),f=a.name,c=a.value,l=!1,m=a.alias;m&&(u=m[0],ga(n,ya([0,1],m)));for(var v=1,h=!0;v<n.length;v+=1){var g=n[v],A=xr(g,0,1),x=xr(g,-1);if((A==='"'||A==="'"||A==="`"||x==='"'||x==="'"||x==="`")&&A!==x)throw new Z("property names with quotes must have matching quotes");if((g==="constructor"||!h)&&(l=!0),u+="."+g,f="%"+u+"%",qr(k,f))c=k[f];else if(c!=null){if(!(g in c)){if(!t)throw new X("base intrinsic for "+r+" exists, but the property is not available.");return}if(G&&v+1>=n.length){var S=G(c,g);h=!!S,h&&"get"in S&&!("originalValue"in S.get)?c=S.get:c=c[g]}else h=qr(c,g),c=c[g];h&&!l&&(k[f]=c)}}return c}});var Er=y((Ns,Gt)=>{"use strict";o();i();var ba=E(),$r=ba("%Object.defineProperty%",!0)||!1;if($r)try{$r({},"a",{value:1})}catch(e){$r=!1}Gt.exports=$r});var se=y((Bs,kt)=>{"use strict";o();i();var wa=E(),Pr=wa("%Object.getOwnPropertyDescriptor%",!0);if(Pr)try{Pr([],"length")}catch(e){Pr=null}kt.exports=Pr});var pe=y((Us,Ht)=>{"use strict";o();i();var zt=Er(),Aa=oe(),V=w(),jt=se();Ht.exports=function(r,t,n){if(!r||typeof r!="object"&&typeof r!="function")throw new V("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new V("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new V("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new V("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new V("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new V("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,c=arguments.length>6?arguments[6]:!1,l=!!jt&&jt(r,t);if(zt)zt(r,t,{configurable:f===null&&l?l.configurable:!f,enumerable:u===null&&l?l.enumerable:!u,value:n,writable:a===null&&l?l.writable:!a});else if(c||!u&&!a&&!f)r[t]=n;else throw new Aa("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var ye=y((Gs,Kt)=>{"use strict";o();i();var ce=Er(),Jt=function(){return!!ce};Jt.hasArrayLengthDefineBug=function(){if(!ce)return null;try{return ce([],"length",{value:1}).length!==1}catch(r){return!0}};Kt.exports=Jt});var Vt=y((js,Zt)=>{"use strict";o();i();var Oa=E(),Qt=pe(),qa=ye()(),Yt=se(),Xt=w(),xa=Oa("%Math.floor%");Zt.exports=function(r,t){if(typeof r!="function")throw new Xt("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||xa(t)!==t)throw new Xt("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],u=!0,a=!0;if("length"in r&&Yt){var f=Yt(r,"length");f&&!f.configurable&&(u=!1),f&&!f.writable&&(a=!1)}return(u||a||!n)&&(qa?Qt(r,"length",t,!0,!0):Qt(r,"length",t)),r}});var Fr=y((Ks,Ir)=>{"use strict";o();i();var ge=Or(),Tr=E(),$a=Vt(),Ea=w(),tn=Tr("%Function.prototype.apply%"),nn=Tr("%Function.prototype.call%"),on=Tr("%Reflect.apply%",!0)||ge.call(nn,tn),rn=Er(),Pa=Tr("%Math.max%");Ir.exports=function(r){if(typeof r!="function")throw new Ea("a function is required");var t=on(ge,nn,arguments);return $a(t,1+Pa(0,r.length-(arguments.length-1)),!0)};var en=function(){return on(ge,tn,arguments)};rn?rn(Ir.exports,"apply",{value:en}):Ir.exports.apply=en});var ve=y((Xs,un)=>{"use strict";o();i();var an=Object.prototype.toString;un.exports=function(r){var t=an.call(r),n=t==="[object Arguments]";return n||(n=t!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&an.call(r.callee)==="[object Function]"),n}});var hn=y((rp,vn)=>{"use strict";o();i();var gn;Object.keys||(ur=Object.prototype.hasOwnProperty,he=Object.prototype.toString,fn=ve(),de=Object.prototype.propertyIsEnumerable,ln=!de.call({toString:null},"toString"),sn=de.call(function(){},"prototype"),fr=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Rr=function(e){var r=e.constructor;return r&&r.prototype===e},pn={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},cn=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!pn["$"+e]&&ur.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{Rr(window[e])}catch(r){return!0}}catch(r){return!0}return!1}(),yn=function(e){if(typeof window=="undefined"||!cn)return Rr(e);try{return Rr(e)}catch(r){return!1}},gn=function(r){var t=r!==null&&typeof r=="object",n=he.call(r)==="[object Function]",u=fn(r),a=t&&he.call(r)==="[object String]",f=[];if(!t&&!n&&!u)throw new TypeError("Object.keys called on a non-object");var c=sn&&n;if(a&&r.length>0&&!ur.call(r,0))for(var l=0;l<r.length;++l)f.push(String(l));if(u&&r.length>0)for(var m=0;m<r.length;++m)f.push(String(m));else for(var v in r)!(c&&v==="prototype")&&ur.call(r,v)&&f.push(String(v));if(ln)for(var h=yn(r),g=0;g<fr.length;++g)!(h&&fr[g]==="constructor")&&ur.call(r,fr[g])&&f.push(fr[g]);return f});var ur,he,fn,de,ln,sn,fr,Rr,pn,cn,yn;vn.exports=gn});var bn=y((np,Sn)=>{"use strict";o();i();var Ia=Array.prototype.slice,Ta=ve(),dn=Object.keys,Nr=dn?function(r){return dn(r)}:hn(),mn=Object.keys;Nr.shim=function(){if(Object.keys){var r=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);r||(Object.keys=function(n){return Ta(n)?mn(Ia.call(n)):mn(n)})}else Object.keys=Nr;return Object.keys||Nr};Sn.exports=Nr});var lr=y((ap,qn)=>{"use strict";o();i();var Fa=bn(),Ra=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",Na=Object.prototype.toString,Da=Array.prototype.concat,wn=pe(),_a=function(e){return typeof e=="function"&&Na.call(e)==="[object Function]"},An=ye()(),Ba=function(e,r,t,n){if(r in e){if(n===!0){if(e[r]===t)return}else if(!_a(n)||!n())return}An?wn(e,r,t,!0):wn(e,r,t)},On=function(e,r){var t=arguments.length>2?arguments[2]:{},n=Fa(r);Ra&&(n=Da.call(n,Object.getOwnPropertySymbols(r)));for(var u=0;u<n.length;u+=1)Ba(e,n[u],r[n[u]],t[n[u]])};On.supportsDescriptors=!!An;qn.exports=On});var P=y((lp,En)=>{"use strict";o();i();var xn=E(),$n=Fr(),Ma=$n(xn("String.prototype.indexOf"));En.exports=function(r,t){var n=xn(r,!!t);return typeof n=="function"&&Ma(r,".prototype.")>-1?$n(n):n}});var Tn=y((cp,In)=>{"use strict";o();i();var Ca=E(),Pn=Ca("%Array%"),Ua=!Pn.isArray&&P()("Object.prototype.toString");In.exports=Pn.isArray||function(r){return Ua(r)==="[object Array]"}});var me=y((vp,Fn)=>{"use strict";o();i();Fn.exports=Tn()});var Nn=y((mp,Rn)=>{"use strict";o();i();var Wa=E(),La=P(),Ga=w(),ka=me(),za=Wa("%Reflect.apply%",!0)||La("Function.prototype.apply");Rn.exports=function(r,t){var n=arguments.length>2?arguments[2]:[];if(!ka(n))throw new Ga("Assertion failed: optional `argumentsList`, if provided, must be a List");return za(r,t,n)}});function Dn(){throw new Error("setTimeout has not been defined")}function _n(){throw new Error("clearTimeout has not been defined")}function Bn(e){if(B===setTimeout)return setTimeout(e,0);if((B===Dn||!B)&&setTimeout)return B=setTimeout,setTimeout(e,0);try{return B(e,0)}catch(r){try{return B.call(null,e,0)}catch(t){return B.call(this,e,0)}}}function ja(e){if(M===clearTimeout)return clearTimeout(e);if((M===_n||!M)&&clearTimeout)return M=clearTimeout,clearTimeout(e);try{return M(e)}catch(r){try{return M.call(null,e)}catch(t){return M.call(this,e)}}}function Ha(){!er||!z||(er=!1,z.length?N=z.concat(N):Dr=-1,N.length&&Mn())}function Mn(){if(!er){var e=Bn(Ha);er=!0;for(var r=N.length;r;){for(z=N,N=[];++Dr<r;)z&&z[Dr].run();Dr=-1,r=N.length}z=null,er=!1,ja(e)}}function Ja(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];N.push(new Cn(e,r)),N.length===1&&!er&&Bn(Mn)}function Cn(e,r){this.fun=e,this.array=r}function j(){}function su(e){throw new Error("process.binding is not supported")}function pu(){return"/"}function cu(e){throw new Error("process.chdir is not supported")}function yu(){return 0}function vu(e){var r=gu.call(rr)*.001,t=Math.floor(r),n=Math.floor(r%1*1e9);return e&&(t=t-e[0],n=n-e[1],n<0&&(t--,n+=1e9)),[t,n]}function du(){var e=new Date,r=e-hu;return r/1e3}var B,M,N,er,z,Dr,Ka,Qa,Ya,Xa,Za,Va,ru,eu,tu,nu,ou,iu,au,uu,fu,lu,rr,gu,hu,mu,sr,Un=ne(()=>{"use strict";o();i();B=Dn,M=_n;typeof globalThis.setTimeout=="function"&&(B=setTimeout);typeof globalThis.clearTimeout=="function"&&(M=clearTimeout);N=[],er=!1,Dr=-1;Cn.prototype.run=function(){this.fun.apply(null,this.array)};Ka="browser",Qa="browser",Ya=!0,Xa={},Za=[],Va="",ru={},eu={},tu={};nu=j,ou=j,iu=j,au=j,uu=j,fu=j,lu=j;rr=globalThis.performance||{},gu=rr.now||rr.mozNow||rr.msNow||rr.oNow||rr.webkitNow||function(){return new Date().getTime()};hu=new Date;mu={nextTick:Ja,title:Ka,browser:Ya,env:Xa,argv:Za,version:Va,versions:ru,on:nu,addListener:ou,once:iu,off:au,removeListener:uu,removeAllListeners:fu,emit:lu,binding:su,cwd:pu,chdir:cu,umask:yu,hrtime:vu,platform:Qa,release:eu,config:tu,uptime:du},sr=mu});var Se,be,Wn=ne(()=>{"use strict";o();i();typeof Object.create=="function"?Se=function(r,t){r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}})}:Se=function(r,t){r.super_=t;var n=function(){};n.prototype=t.prototype,r.prototype=new n,r.prototype.constructor=r};be=Se});var Kn={};Gi(Kn,{_extend:()=>Ie,debuglog:()=>Ln,default:()=>Pu,deprecate:()=>xe,format:()=>Cr,inherits:()=>be,inspect:()=>T,isArray:()=>$e,isBoolean:()=>Ur,isBuffer:()=>jn,isDate:()=>Mr,isError:()=>cr,isFunction:()=>yr,isNull:()=>gr,isNullOrUndefined:()=>Gn,isNumber:()=>Ee,isObject:()=>H,isPrimitive:()=>zn,isRegExp:()=>pr,isString:()=>vr,isSymbol:()=>kn,isUndefined:()=>I,log:()=>Hn});function Cr(e){if(!vr(e)){for(var r=[],t=0;t<arguments.length;t++)r.push(T(arguments[t]));return r.join(" ")}for(var t=1,n=arguments,u=n.length,a=String(e).replace(Su,function(c){if(c==="%%")return"%";if(t>=u)return c;switch(c){case"%s":return String(n[t++]);case"%d":return Number(n[t++]);case"%j":try{return JSON.stringify(n[t++])}catch(l){return"[Circular]"}default:return c}}),f=n[t];t<u;f=n[++t])gr(f)||!H(f)?a+=" "+f:a+=" "+T(f);return a}function xe(e,r){if(I(globalThis.process))return function(){return xe(e,r).apply(this,arguments)};if(sr.noDeprecation===!0)return e;var t=!1;function n(){if(!t){if(sr.throwDeprecation)throw new Error(r);sr.traceDeprecation?console.trace(r):console.error(r),t=!0}return e.apply(this,arguments)}return n}function Ln(e){if(I(we)&&(we=sr.env.NODE_DEBUG||""),e=e.toUpperCase(),!_r[e])if(new RegExp("\\b"+e+"\\b","i").test(we)){var r=0;_r[e]=function(){var t=Cr.apply(null,arguments);console.error("%s %d: %s",e,r,t)}}else _r[e]=function(){};return _r[e]}function T(e,r){var t={seen:[],stylize:wu};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),Ur(r)?t.showHidden=r:r&&Ie(t,r),I(t.showHidden)&&(t.showHidden=!1),I(t.depth)&&(t.depth=2),I(t.colors)&&(t.colors=!1),I(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=bu),Br(t,e,t.depth)}function bu(e,r){var t=T.styles[r];return t?"\x1B["+T.colors[t][0]+"m"+e+"\x1B["+T.colors[t][1]+"m":e}function wu(e,r){return e}function Au(e){var r={};return e.forEach(function(t,n){r[t]=!0}),r}function Br(e,r,t){if(e.customInspect&&r&&yr(r.inspect)&&r.inspect!==T&&!(r.constructor&&r.constructor.prototype===r)){var n=r.inspect(t,e);return vr(n)||(n=Br(e,n,t)),n}var u=Ou(e,r);if(u)return u;var a=Object.keys(r),f=Au(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),cr(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return Ae(r);if(a.length===0){if(yr(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(pr(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(Mr(r))return e.stylize(Date.prototype.toString.call(r),"date");if(cr(r))return Ae(r)}var l="",m=!1,v=["{","}"];if($e(r)&&(m=!0,v=["[","]"]),yr(r)){var h=r.name?": "+r.name:"";l=" [Function"+h+"]"}if(pr(r)&&(l=" "+RegExp.prototype.toString.call(r)),Mr(r)&&(l=" "+Date.prototype.toUTCString.call(r)),cr(r)&&(l=" "+Ae(r)),a.length===0&&(!m||r.length==0))return v[0]+l+v[1];if(t<0)return pr(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var g;return m?g=qu(e,r,t,f,a):g=a.map(function(A){return qe(e,r,t,f,A,m)}),e.seen.pop(),xu(g,l,v)}function Ou(e,r){if(I(r))return e.stylize("undefined","undefined");if(vr(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(Ee(r))return e.stylize(""+r,"number");if(Ur(r))return e.stylize(""+r,"boolean");if(gr(r))return e.stylize("null","null")}function Ae(e){return"["+Error.prototype.toString.call(e)+"]"}function qu(e,r,t,n,u){for(var a=[],f=0,c=r.length;f<c;++f)Jn(r,String(f))?a.push(qe(e,r,t,n,String(f),!0)):a.push("");return u.forEach(function(l){l.match(/^\d+$/)||a.push(qe(e,r,t,n,l,!0))}),a}function qe(e,r,t,n,u,a){var f,c,l;if(l=Object.getOwnPropertyDescriptor(r,u)||{value:r[u]},l.get?l.set?c=e.stylize("[Getter/Setter]","special"):c=e.stylize("[Getter]","special"):l.set&&(c=e.stylize("[Setter]","special")),Jn(n,u)||(f="["+u+"]"),c||(e.seen.indexOf(l.value)<0?(gr(t)?c=Br(e,l.value,null):c=Br(e,l.value,t-1),c.indexOf(`
|
|
1
|
+
import{a as ji}from"./chunk-HBFOF5YT.js";import"./chunk-575DWQWD.js";import"./chunk-5TA7XQOD.js";import"./chunk-IIKN6XQS.js";import"./chunk-M3DYFCFN.js";import"./chunk-DMDZDIA7.js";import"./chunk-VLNKANS2.js";import"./chunk-LLE63BZO.js";import"./chunk-E5FOYV6P.js";import"./chunk-ZI6CAI2V.js";import{e as ne,f as y,g as Gi,h as ki,i as zi,k as o,l as s,m as i}from"./chunk-2AZXIWKY.js";var ht=y((jl,vt)=>{"use strict";o();i();var Hi="Function.prototype.bind called on incompatible ",Ji=Object.prototype.toString,Ki=Math.max,Qi="[object Function]",gt=function(r,t){for(var n=[],u=0;u<r.length;u+=1)n[u]=r[u];for(var a=0;a<t.length;a+=1)n[a+r.length]=t[a];return n},Yi=function(r,t){for(var n=[],u=t||0,a=0;u<r.length;u+=1,a+=1)n[a]=r[u];return n},Xi=function(e,r){for(var t="",n=0;n<e.length;n+=1)t+=e[n],n+1<e.length&&(t+=r);return t};vt.exports=function(r){var t=this;if(typeof t!="function"||Ji.apply(t)!==Qi)throw new TypeError(Hi+t);for(var n=Yi(arguments,1),u,a=function(){if(this instanceof u){var v=t.apply(this,gt(n,arguments));return Object(v)===v?v:this}return t.apply(r,gt(n,arguments))},f=Ki(0,t.length-n.length),c=[],l=0;l<f;l++)c[l]="$"+l;if(u=Function("binder","return function ("+Xi(c,",")+"){ return binder.apply(this,arguments); }")(a),t.prototype){var m=function(){};m.prototype=t.prototype,u.prototype=new m,m.prototype=null}return u}});var Or=y((Kl,dt)=>{"use strict";o();i();var Zi=ht();dt.exports=Function.prototype.bind||Zi});var St=y((Xl,mt)=>{"use strict";o();i();mt.exports=Error});var wt=y((rs,bt)=>{"use strict";o();i();bt.exports=EvalError});var Ot=y((ns,At)=>{"use strict";o();i();At.exports=RangeError});var xt=y((as,qt)=>{"use strict";o();i();qt.exports=ReferenceError});var oe=y((ls,$t)=>{"use strict";o();i();$t.exports=SyntaxError});var w=y((cs,Et)=>{"use strict";o();i();Et.exports=TypeError});var It=y((vs,Pt)=>{"use strict";o();i();Pt.exports=URIError});var ie=y((ms,Tt)=>{"use strict";o();i();Tt.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var r={},t=Symbol("test"),n=Object(t);if(typeof t=="string"||Object.prototype.toString.call(t)!=="[object Symbol]"||Object.prototype.toString.call(n)!=="[object Symbol]")return!1;var u=42;r[t]=u;for(t in r)return!1;if(typeof Object.keys=="function"&&Object.keys(r).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(r).length!==0)return!1;var a=Object.getOwnPropertySymbols(r);if(a.length!==1||a[0]!==t||!Object.prototype.propertyIsEnumerable.call(r,t))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var f=Object.getOwnPropertyDescriptor(r,t);if(f.value!==u||f.enumerable!==!0)return!1}return!0}});var ae=y((ws,Rt)=>{"use strict";o();i();var Ft=typeof Symbol!="undefined"&&Symbol,Vi=ie();Rt.exports=function(){return typeof Ft!="function"||typeof Symbol!="function"||typeof Ft("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Vi()}});var Dt=y((qs,Nt)=>{"use strict";o();i();var ue={__proto__:null,foo:{}},ra=Object;Nt.exports=function(){return{__proto__:ue}.foo===ue.foo&&!(ue instanceof ra)}});var Bt=y((Es,_t)=>{"use strict";o();i();var ea=Function.prototype.call,ta=Object.prototype.hasOwnProperty,na=Or();_t.exports=na.call(ea,ta)});var E=y((Ts,Lt)=>{"use strict";o();i();var d,oa=St(),ia=wt(),aa=Ot(),ua=xt(),Z=oe(),X=w(),fa=It(),Wt=Function,fe=function(e){try{return Wt('"use strict"; return ('+e+").constructor;")()}catch(r){}},G=Object.getOwnPropertyDescriptor;if(G)try{G({},"")}catch(e){G=null}var le=function(){throw new X},la=G?function(){try{return arguments.callee,le}catch(e){try{return G(arguments,"callee").get}catch(r){return le}}}():le,Q=ae()(),sa=Dt()(),b=Object.getPrototypeOf||(sa?function(e){return e.__proto__}:null),Y={},pa=typeof Uint8Array=="undefined"||!b?d:b(Uint8Array),k={__proto__:null,"%AggregateError%":typeof AggregateError=="undefined"?d:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer=="undefined"?d:ArrayBuffer,"%ArrayIteratorPrototype%":Q&&b?b([][Symbol.iterator]()):d,"%AsyncFromSyncIteratorPrototype%":d,"%AsyncFunction%":Y,"%AsyncGenerator%":Y,"%AsyncGeneratorFunction%":Y,"%AsyncIteratorPrototype%":Y,"%Atomics%":typeof Atomics=="undefined"?d:Atomics,"%BigInt%":typeof BigInt=="undefined"?d:BigInt,"%BigInt64Array%":typeof BigInt64Array=="undefined"?d:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array=="undefined"?d:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView=="undefined"?d:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":oa,"%eval%":eval,"%EvalError%":ia,"%Float32Array%":typeof Float32Array=="undefined"?d:Float32Array,"%Float64Array%":typeof Float64Array=="undefined"?d:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry=="undefined"?d:FinalizationRegistry,"%Function%":Wt,"%GeneratorFunction%":Y,"%Int8Array%":typeof Int8Array=="undefined"?d:Int8Array,"%Int16Array%":typeof Int16Array=="undefined"?d:Int16Array,"%Int32Array%":typeof Int32Array=="undefined"?d:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Q&&b?b(b([][Symbol.iterator]())):d,"%JSON%":typeof JSON=="object"?JSON:d,"%Map%":typeof Map=="undefined"?d:Map,"%MapIteratorPrototype%":typeof Map=="undefined"||!Q||!b?d:b(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise=="undefined"?d:Promise,"%Proxy%":typeof Proxy=="undefined"?d:Proxy,"%RangeError%":aa,"%ReferenceError%":ua,"%Reflect%":typeof Reflect=="undefined"?d:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set=="undefined"?d:Set,"%SetIteratorPrototype%":typeof Set=="undefined"||!Q||!b?d:b(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer=="undefined"?d:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Q&&b?b(""[Symbol.iterator]()):d,"%Symbol%":Q?Symbol:d,"%SyntaxError%":Z,"%ThrowTypeError%":la,"%TypedArray%":pa,"%TypeError%":X,"%Uint8Array%":typeof Uint8Array=="undefined"?d:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray=="undefined"?d:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array=="undefined"?d:Uint16Array,"%Uint32Array%":typeof Uint32Array=="undefined"?d:Uint32Array,"%URIError%":fa,"%WeakMap%":typeof WeakMap=="undefined"?d:WeakMap,"%WeakRef%":typeof WeakRef=="undefined"?d:WeakRef,"%WeakSet%":typeof WeakSet=="undefined"?d:WeakSet};if(b)try{null.error}catch(e){Mt=b(b(e)),k["%Error.prototype%"]=Mt}var Mt,ca=function e(r){var t;if(r==="%AsyncFunction%")t=fe("async function () {}");else if(r==="%GeneratorFunction%")t=fe("function* () {}");else if(r==="%AsyncGeneratorFunction%")t=fe("async function* () {}");else if(r==="%AsyncGenerator%"){var n=e("%AsyncGeneratorFunction%");n&&(t=n.prototype)}else if(r==="%AsyncIteratorPrototype%"){var u=e("%AsyncGenerator%");u&&b&&(t=b(u.prototype))}return k[r]=t,t},Ct={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},ar=Or(),qr=Bt(),ya=ar.call(Function.call,Array.prototype.concat),ga=ar.call(Function.apply,Array.prototype.splice),Ut=ar.call(Function.call,String.prototype.replace),xr=ar.call(Function.call,String.prototype.slice),va=ar.call(Function.call,RegExp.prototype.exec),ha=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,da=/\\(\\)?/g,ma=function(r){var t=xr(r,0,1),n=xr(r,-1);if(t==="%"&&n!=="%")throw new Z("invalid intrinsic syntax, expected closing `%`");if(n==="%"&&t!=="%")throw new Z("invalid intrinsic syntax, expected opening `%`");var u=[];return Ut(r,ha,function(a,f,c,l){u[u.length]=c?Ut(l,da,"$1"):f||a}),u},Sa=function(r,t){var n=r,u;if(qr(Ct,n)&&(u=Ct[n],n="%"+u[0]+"%"),qr(k,n)){var a=k[n];if(a===Y&&(a=ca(n)),typeof a=="undefined"&&!t)throw new X("intrinsic "+r+" exists, but is not available. Please file an issue!");return{alias:u,name:n,value:a}}throw new Z("intrinsic "+r+" does not exist!")};Lt.exports=function(r,t){if(typeof r!="string"||r.length===0)throw new X("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof t!="boolean")throw new X('"allowMissing" argument must be a boolean');if(va(/^%?[^%]*%?$/,r)===null)throw new Z("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=ma(r),u=n.length>0?n[0]:"",a=Sa("%"+u+"%",t),f=a.name,c=a.value,l=!1,m=a.alias;m&&(u=m[0],ga(n,ya([0,1],m)));for(var v=1,h=!0;v<n.length;v+=1){var g=n[v],A=xr(g,0,1),x=xr(g,-1);if((A==='"'||A==="'"||A==="`"||x==='"'||x==="'"||x==="`")&&A!==x)throw new Z("property names with quotes must have matching quotes");if((g==="constructor"||!h)&&(l=!0),u+="."+g,f="%"+u+"%",qr(k,f))c=k[f];else if(c!=null){if(!(g in c)){if(!t)throw new X("base intrinsic for "+r+" exists, but the property is not available.");return}if(G&&v+1>=n.length){var S=G(c,g);h=!!S,h&&"get"in S&&!("originalValue"in S.get)?c=S.get:c=c[g]}else h=qr(c,g),c=c[g];h&&!l&&(k[f]=c)}}return c}});var Er=y((Ns,Gt)=>{"use strict";o();i();var ba=E(),$r=ba("%Object.defineProperty%",!0)||!1;if($r)try{$r({},"a",{value:1})}catch(e){$r=!1}Gt.exports=$r});var se=y((Bs,kt)=>{"use strict";o();i();var wa=E(),Pr=wa("%Object.getOwnPropertyDescriptor%",!0);if(Pr)try{Pr([],"length")}catch(e){Pr=null}kt.exports=Pr});var pe=y((Us,Ht)=>{"use strict";o();i();var zt=Er(),Aa=oe(),V=w(),jt=se();Ht.exports=function(r,t,n){if(!r||typeof r!="object"&&typeof r!="function")throw new V("`obj` must be an object or a function`");if(typeof t!="string"&&typeof t!="symbol")throw new V("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new V("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new V("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new V("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new V("`loose`, if provided, must be a boolean");var u=arguments.length>3?arguments[3]:null,a=arguments.length>4?arguments[4]:null,f=arguments.length>5?arguments[5]:null,c=arguments.length>6?arguments[6]:!1,l=!!jt&&jt(r,t);if(zt)zt(r,t,{configurable:f===null&&l?l.configurable:!f,enumerable:u===null&&l?l.enumerable:!u,value:n,writable:a===null&&l?l.writable:!a});else if(c||!u&&!a&&!f)r[t]=n;else throw new Aa("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var ye=y((Gs,Kt)=>{"use strict";o();i();var ce=Er(),Jt=function(){return!!ce};Jt.hasArrayLengthDefineBug=function(){if(!ce)return null;try{return ce([],"length",{value:1}).length!==1}catch(r){return!0}};Kt.exports=Jt});var Vt=y((js,Zt)=>{"use strict";o();i();var Oa=E(),Qt=pe(),qa=ye()(),Yt=se(),Xt=w(),xa=Oa("%Math.floor%");Zt.exports=function(r,t){if(typeof r!="function")throw new Xt("`fn` is not a function");if(typeof t!="number"||t<0||t>4294967295||xa(t)!==t)throw new Xt("`length` must be a positive 32-bit integer");var n=arguments.length>2&&!!arguments[2],u=!0,a=!0;if("length"in r&&Yt){var f=Yt(r,"length");f&&!f.configurable&&(u=!1),f&&!f.writable&&(a=!1)}return(u||a||!n)&&(qa?Qt(r,"length",t,!0,!0):Qt(r,"length",t)),r}});var Fr=y((Ks,Ir)=>{"use strict";o();i();var ge=Or(),Tr=E(),$a=Vt(),Ea=w(),tn=Tr("%Function.prototype.apply%"),nn=Tr("%Function.prototype.call%"),on=Tr("%Reflect.apply%",!0)||ge.call(nn,tn),rn=Er(),Pa=Tr("%Math.max%");Ir.exports=function(r){if(typeof r!="function")throw new Ea("a function is required");var t=on(ge,nn,arguments);return $a(t,1+Pa(0,r.length-(arguments.length-1)),!0)};var en=function(){return on(ge,tn,arguments)};rn?rn(Ir.exports,"apply",{value:en}):Ir.exports.apply=en});var ve=y((Xs,un)=>{"use strict";o();i();var an=Object.prototype.toString;un.exports=function(r){var t=an.call(r),n=t==="[object Arguments]";return n||(n=t!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&an.call(r.callee)==="[object Function]"),n}});var hn=y((rp,vn)=>{"use strict";o();i();var gn;Object.keys||(ur=Object.prototype.hasOwnProperty,he=Object.prototype.toString,fn=ve(),de=Object.prototype.propertyIsEnumerable,ln=!de.call({toString:null},"toString"),sn=de.call(function(){},"prototype"),fr=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],Rr=function(e){var r=e.constructor;return r&&r.prototype===e},pn={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},cn=function(){if(typeof window=="undefined")return!1;for(var e in window)try{if(!pn["$"+e]&&ur.call(window,e)&&window[e]!==null&&typeof window[e]=="object")try{Rr(window[e])}catch(r){return!0}}catch(r){return!0}return!1}(),yn=function(e){if(typeof window=="undefined"||!cn)return Rr(e);try{return Rr(e)}catch(r){return!1}},gn=function(r){var t=r!==null&&typeof r=="object",n=he.call(r)==="[object Function]",u=fn(r),a=t&&he.call(r)==="[object String]",f=[];if(!t&&!n&&!u)throw new TypeError("Object.keys called on a non-object");var c=sn&&n;if(a&&r.length>0&&!ur.call(r,0))for(var l=0;l<r.length;++l)f.push(String(l));if(u&&r.length>0)for(var m=0;m<r.length;++m)f.push(String(m));else for(var v in r)!(c&&v==="prototype")&&ur.call(r,v)&&f.push(String(v));if(ln)for(var h=yn(r),g=0;g<fr.length;++g)!(h&&fr[g]==="constructor")&&ur.call(r,fr[g])&&f.push(fr[g]);return f});var ur,he,fn,de,ln,sn,fr,Rr,pn,cn,yn;vn.exports=gn});var bn=y((np,Sn)=>{"use strict";o();i();var Ia=Array.prototype.slice,Ta=ve(),dn=Object.keys,Nr=dn?function(r){return dn(r)}:hn(),mn=Object.keys;Nr.shim=function(){if(Object.keys){var r=function(){var t=Object.keys(arguments);return t&&t.length===arguments.length}(1,2);r||(Object.keys=function(n){return Ta(n)?mn(Ia.call(n)):mn(n)})}else Object.keys=Nr;return Object.keys||Nr};Sn.exports=Nr});var lr=y((ap,qn)=>{"use strict";o();i();var Fa=bn(),Ra=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",Na=Object.prototype.toString,Da=Array.prototype.concat,wn=pe(),_a=function(e){return typeof e=="function"&&Na.call(e)==="[object Function]"},An=ye()(),Ba=function(e,r,t,n){if(r in e){if(n===!0){if(e[r]===t)return}else if(!_a(n)||!n())return}An?wn(e,r,t,!0):wn(e,r,t)},On=function(e,r){var t=arguments.length>2?arguments[2]:{},n=Fa(r);Ra&&(n=Da.call(n,Object.getOwnPropertySymbols(r)));for(var u=0;u<n.length;u+=1)Ba(e,n[u],r[n[u]],t[n[u]])};On.supportsDescriptors=!!An;qn.exports=On});var P=y((lp,En)=>{"use strict";o();i();var xn=E(),$n=Fr(),Ma=$n(xn("String.prototype.indexOf"));En.exports=function(r,t){var n=xn(r,!!t);return typeof n=="function"&&Ma(r,".prototype.")>-1?$n(n):n}});var Tn=y((cp,In)=>{"use strict";o();i();var Ca=E(),Pn=Ca("%Array%"),Ua=!Pn.isArray&&P()("Object.prototype.toString");In.exports=Pn.isArray||function(r){return Ua(r)==="[object Array]"}});var me=y((vp,Fn)=>{"use strict";o();i();Fn.exports=Tn()});var Nn=y((mp,Rn)=>{"use strict";o();i();var Wa=E(),La=P(),Ga=w(),ka=me(),za=Wa("%Reflect.apply%",!0)||La("Function.prototype.apply");Rn.exports=function(r,t){var n=arguments.length>2?arguments[2]:[];if(!ka(n))throw new Ga("Assertion failed: optional `argumentsList`, if provided, must be a List");return za(r,t,n)}});function Dn(){throw new Error("setTimeout has not been defined")}function _n(){throw new Error("clearTimeout has not been defined")}function Bn(e){if(B===setTimeout)return setTimeout(e,0);if((B===Dn||!B)&&setTimeout)return B=setTimeout,setTimeout(e,0);try{return B(e,0)}catch(r){try{return B.call(null,e,0)}catch(t){return B.call(this,e,0)}}}function ja(e){if(M===clearTimeout)return clearTimeout(e);if((M===_n||!M)&&clearTimeout)return M=clearTimeout,clearTimeout(e);try{return M(e)}catch(r){try{return M.call(null,e)}catch(t){return M.call(this,e)}}}function Ha(){!er||!z||(er=!1,z.length?N=z.concat(N):Dr=-1,N.length&&Mn())}function Mn(){if(!er){var e=Bn(Ha);er=!0;for(var r=N.length;r;){for(z=N,N=[];++Dr<r;)z&&z[Dr].run();Dr=-1,r=N.length}z=null,er=!1,ja(e)}}function Ja(e){var r=new Array(arguments.length-1);if(arguments.length>1)for(var t=1;t<arguments.length;t++)r[t-1]=arguments[t];N.push(new Cn(e,r)),N.length===1&&!er&&Bn(Mn)}function Cn(e,r){this.fun=e,this.array=r}function j(){}function su(e){throw new Error("process.binding is not supported")}function pu(){return"/"}function cu(e){throw new Error("process.chdir is not supported")}function yu(){return 0}function vu(e){var r=gu.call(rr)*.001,t=Math.floor(r),n=Math.floor(r%1*1e9);return e&&(t=t-e[0],n=n-e[1],n<0&&(t--,n+=1e9)),[t,n]}function du(){var e=new Date,r=e-hu;return r/1e3}var B,M,N,er,z,Dr,Ka,Qa,Ya,Xa,Za,Va,ru,eu,tu,nu,ou,iu,au,uu,fu,lu,rr,gu,hu,mu,sr,Un=ne(()=>{"use strict";o();i();B=Dn,M=_n;typeof globalThis.setTimeout=="function"&&(B=setTimeout);typeof globalThis.clearTimeout=="function"&&(M=clearTimeout);N=[],er=!1,Dr=-1;Cn.prototype.run=function(){this.fun.apply(null,this.array)};Ka="browser",Qa="browser",Ya=!0,Xa={},Za=[],Va="",ru={},eu={},tu={};nu=j,ou=j,iu=j,au=j,uu=j,fu=j,lu=j;rr=globalThis.performance||{},gu=rr.now||rr.mozNow||rr.msNow||rr.oNow||rr.webkitNow||function(){return new Date().getTime()};hu=new Date;mu={nextTick:Ja,title:Ka,browser:Ya,env:Xa,argv:Za,version:Va,versions:ru,on:nu,addListener:ou,once:iu,off:au,removeListener:uu,removeAllListeners:fu,emit:lu,binding:su,cwd:pu,chdir:cu,umask:yu,hrtime:vu,platform:Qa,release:eu,config:tu,uptime:du},sr=mu});var Se,be,Wn=ne(()=>{"use strict";o();i();typeof Object.create=="function"?Se=function(r,t){r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}})}:Se=function(r,t){r.super_=t;var n=function(){};n.prototype=t.prototype,r.prototype=new n,r.prototype.constructor=r};be=Se});var Kn={};Gi(Kn,{_extend:()=>Ie,debuglog:()=>Ln,default:()=>Pu,deprecate:()=>xe,format:()=>Cr,inherits:()=>be,inspect:()=>T,isArray:()=>$e,isBoolean:()=>Ur,isBuffer:()=>jn,isDate:()=>Mr,isError:()=>cr,isFunction:()=>yr,isNull:()=>gr,isNullOrUndefined:()=>Gn,isNumber:()=>Ee,isObject:()=>H,isPrimitive:()=>zn,isRegExp:()=>pr,isString:()=>vr,isSymbol:()=>kn,isUndefined:()=>I,log:()=>Hn});function Cr(e){if(!vr(e)){for(var r=[],t=0;t<arguments.length;t++)r.push(T(arguments[t]));return r.join(" ")}for(var t=1,n=arguments,u=n.length,a=String(e).replace(Su,function(c){if(c==="%%")return"%";if(t>=u)return c;switch(c){case"%s":return String(n[t++]);case"%d":return Number(n[t++]);case"%j":try{return JSON.stringify(n[t++])}catch(l){return"[Circular]"}default:return c}}),f=n[t];t<u;f=n[++t])gr(f)||!H(f)?a+=" "+f:a+=" "+T(f);return a}function xe(e,r){if(I(globalThis.process))return function(){return xe(e,r).apply(this,arguments)};if(sr.noDeprecation===!0)return e;var t=!1;function n(){if(!t){if(sr.throwDeprecation)throw new Error(r);sr.traceDeprecation?console.trace(r):console.error(r),t=!0}return e.apply(this,arguments)}return n}function Ln(e){if(I(we)&&(we=sr.env.NODE_DEBUG||""),e=e.toUpperCase(),!_r[e])if(new RegExp("\\b"+e+"\\b","i").test(we)){var r=0;_r[e]=function(){var t=Cr.apply(null,arguments);console.error("%s %d: %s",e,r,t)}}else _r[e]=function(){};return _r[e]}function T(e,r){var t={seen:[],stylize:wu};return arguments.length>=3&&(t.depth=arguments[2]),arguments.length>=4&&(t.colors=arguments[3]),Ur(r)?t.showHidden=r:r&&Ie(t,r),I(t.showHidden)&&(t.showHidden=!1),I(t.depth)&&(t.depth=2),I(t.colors)&&(t.colors=!1),I(t.customInspect)&&(t.customInspect=!0),t.colors&&(t.stylize=bu),Br(t,e,t.depth)}function bu(e,r){var t=T.styles[r];return t?"\x1B["+T.colors[t][0]+"m"+e+"\x1B["+T.colors[t][1]+"m":e}function wu(e,r){return e}function Au(e){var r={};return e.forEach(function(t,n){r[t]=!0}),r}function Br(e,r,t){if(e.customInspect&&r&&yr(r.inspect)&&r.inspect!==T&&!(r.constructor&&r.constructor.prototype===r)){var n=r.inspect(t,e);return vr(n)||(n=Br(e,n,t)),n}var u=Ou(e,r);if(u)return u;var a=Object.keys(r),f=Au(a);if(e.showHidden&&(a=Object.getOwnPropertyNames(r)),cr(r)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return Ae(r);if(a.length===0){if(yr(r)){var c=r.name?": "+r.name:"";return e.stylize("[Function"+c+"]","special")}if(pr(r))return e.stylize(RegExp.prototype.toString.call(r),"regexp");if(Mr(r))return e.stylize(Date.prototype.toString.call(r),"date");if(cr(r))return Ae(r)}var l="",m=!1,v=["{","}"];if($e(r)&&(m=!0,v=["[","]"]),yr(r)){var h=r.name?": "+r.name:"";l=" [Function"+h+"]"}if(pr(r)&&(l=" "+RegExp.prototype.toString.call(r)),Mr(r)&&(l=" "+Date.prototype.toUTCString.call(r)),cr(r)&&(l=" "+Ae(r)),a.length===0&&(!m||r.length==0))return v[0]+l+v[1];if(t<0)return pr(r)?e.stylize(RegExp.prototype.toString.call(r),"regexp"):e.stylize("[Object]","special");e.seen.push(r);var g;return m?g=qu(e,r,t,f,a):g=a.map(function(A){return qe(e,r,t,f,A,m)}),e.seen.pop(),xu(g,l,v)}function Ou(e,r){if(I(r))return e.stylize("undefined","undefined");if(vr(r)){var t="'"+JSON.stringify(r).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(t,"string")}if(Ee(r))return e.stylize(""+r,"number");if(Ur(r))return e.stylize(""+r,"boolean");if(gr(r))return e.stylize("null","null")}function Ae(e){return"["+Error.prototype.toString.call(e)+"]"}function qu(e,r,t,n,u){for(var a=[],f=0,c=r.length;f<c;++f)Jn(r,String(f))?a.push(qe(e,r,t,n,String(f),!0)):a.push("");return u.forEach(function(l){l.match(/^\d+$/)||a.push(qe(e,r,t,n,l,!0))}),a}function qe(e,r,t,n,u,a){var f,c,l;if(l=Object.getOwnPropertyDescriptor(r,u)||{value:r[u]},l.get?l.set?c=e.stylize("[Getter/Setter]","special"):c=e.stylize("[Getter]","special"):l.set&&(c=e.stylize("[Setter]","special")),Jn(n,u)||(f="["+u+"]"),c||(e.seen.indexOf(l.value)<0?(gr(t)?c=Br(e,l.value,null):c=Br(e,l.value,t-1),c.indexOf(`
|
|
2
2
|
`)>-1&&(a?c=c.split(`
|
|
3
3
|
`).map(function(m){return" "+m}).join(`
|
|
4
4
|
`).substr(2):c=`
|
package/package.json
CHANGED
package/esm/chunk-4PKXKUYU.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as s}from"./chunk-KJOW5AZT.js";import{a}from"./chunk-COBOWL3P.js";import{a as m,b as d}from"./chunk-UVYC4FWB.js";import{i as c}from"./chunk-6JCPJA27.js";var f=class extends m{constructor({ir:t,config:r,formatter:n}){super(new d({ir:t,config:r}));c(this,"formatter");this.formatter=n}async generate(t){let r=this.context.resolveEndpointLocationOrThrow(t.endpoint);if(r.length===0)throw new Error(`No endpoints found that match "${t.endpoint.method} ${t.endpoint.path}"`);let n=new a;for(let i of r){let o=this.context.clone(),p=new s({context:o,formatter:this.formatter});try{let e=await p.generateSnippet({endpoint:i,request:t});if(o.errors.empty())return{snippet:e,errors:void 0};n.update({context:o,snippet:e})}catch(e){n.err==null&&(n.err=e)}}return n.getResponseOrThrow({endpoint:t.endpoint})}generateSync(t){let r=this.context.resolveEndpointLocationOrThrow(t.endpoint);if(r.length===0)throw new Error(`No endpoints found that match "${t.endpoint.method} ${t.endpoint.path}"`);let n=new a;for(let i of r){let o=this.context.clone(),p=new s({context:o,formatter:this.formatter});try{let e=p.generateSnippetSync({endpoint:i,request:t});if(o.errors.empty())return{snippet:e,errors:void 0};n.update({context:o,snippet:e})}catch(e){n.err==null&&(n.err=e)}}return n.getResponseOrThrow({endpoint:t.endpoint})}};export{f as a};
|
package/esm/chunk-5XUC5IOB.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as o,b as s,i}from"./chunk-6JCPJA27.js";var n={Critical:"CRITICAL",Warning:"WARNING"},p=class a{constructor(){i(this,"errors");i(this,"path");this.errors=[],this.path=[]}add(r){this.errors.push(s(o({},r),{path:[...this.path]}))}scope(r){this.path.push(r)}unscope(){this.path.pop()}getBySeverity(r){return this.errors.filter(e=>e.severity===r)}empty(){return this.errors.length===0}size(){return this.errors.length}clone(){let r=new a;return r.errors=[...this.errors],r.path=[...this.path],r}reset(){this.errors=[],this.path=[]}toDynamicSnippetErrors(){return this.errors.map(r=>({severity:r.severity,path:r.path!=null?this.pathToStringArray(r.path):void 0,message:r.message}))}pathToStringArray(r){let e=[];for(let t of r){if(typeof t=="string"){e.push(t);continue}e[e.length-1]+=`[${t.index}]`}return e}};export{n as a,p as b};
|
package/esm/chunk-6JCPJA27.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var k=Object.create;var g=Object.defineProperty,l=Object.defineProperties,m=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyDescriptors,o=Object.getOwnPropertyNames,f=Object.getOwnPropertySymbols,p=Object.getPrototypeOf,i=Object.prototype.hasOwnProperty,j=Object.prototype.propertyIsEnumerable;var h=(a,b,c)=>b in a?g(a,b,{enumerable:!0,configurable:!0,writable:!0,value:c}):a[b]=c,r=(a,b)=>{for(var c in b||(b={}))i.call(b,c)&&h(a,c,b[c]);if(f)for(var c of f(b))j.call(b,c)&&h(a,c,b[c]);return a},s=(a,b)=>l(a,n(b));var t=(a=>typeof require!="undefined"?require:typeof Proxy!="undefined"?new Proxy(a,{get:(b,c)=>(typeof require!="undefined"?require:b)[c]}):a)(function(a){if(typeof require!="undefined")return require.apply(this,arguments);throw Error('Dynamic require of "'+a+'" is not supported')});var u=a=>typeof a=="symbol"?a:a+"",v=(a,b)=>{var c={};for(var d in a)i.call(a,d)&&b.indexOf(d)<0&&(c[d]=a[d]);if(a!=null&&f)for(var d of f(a))b.indexOf(d)<0&&j.call(a,d)&&(c[d]=a[d]);return c};var w=(a,b)=>()=>(b||a((b={exports:{}}).exports,b),b.exports),x=(a,b)=>{for(var c in b)g(a,c,{get:b[c],enumerable:!0})},q=(a,b,c,d)=>{if(b&&typeof b=="object"||typeof b=="function")for(let e of o(b))!i.call(a,e)&&e!==c&&g(a,e,{get:()=>b[e],enumerable:!(d=m(b,e))||d.enumerable});return a};var y=(a,b,c)=>(c=a!=null?k(p(a)):{},q(b||!a||!a.__esModule?g(c,"default",{value:a,enumerable:!0}):c,a));var z=(a,b,c)=>h(a,typeof b!="symbol"?b+"":b,c);export{r as a,s as b,t as c,u as d,v as e,w as f,x as g,y as h,z as i};
|
package/esm/chunk-BC35GX6S.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as y,c as r}from"./chunk-VAYOWHUI.js";import{a as s}from"./chunk-5XUC5IOB.js";import{i as p}from"./chunk-6JCPJA27.js";var l=class{constructor({context:t}){p(this,"context");this.context=t}getFilePropertyInfo({body:t,value:i}){var n;let e={fileFields:[],bodyPropertyFields:[]},a=(n=this.context.getRecord(i))!=null?n:{};for(let o of t.properties)switch(o.type){case"file":e.fileFields.push({name:this.context.getTypeName(o.name),value:this.getSingleFileProperty({property:o,record:a})});break;case"fileArray":e.fileFields.push({name:this.context.getTypeName(o.name),value:this.getArrayFileProperty({property:o,record:a})});break;case"bodyProperty":e.bodyPropertyFields.push({name:this.context.getTypeName(o.name.name),value:this.getBodyProperty({property:o,record:a})});break;default:y(o)}return e}getSingleFileProperty({property:t,record:i}){let e=i[t.wireValue];return e==null?r.TypeInstantiation.nop():typeof e!="string"?(this.context.errors.add({severity:s.Critical,message:`Expected file value to be a string, got ${typeof e}`}),r.TypeInstantiation.nop()):r.TypeInstantiation.reference(this.context.getNewStringsReaderFunctionInvocation(e))}getArrayFileProperty({property:t,record:i}){let e=i[t.wireValue];if(e==null)return r.TypeInstantiation.nop();if(!Array.isArray(e))return this.context.errors.add({severity:s.Critical,message:`Expected file array value to be an array of strings, got ${typeof e}`}),r.TypeInstantiation.nop();let a=[];for(let n of e)typeof n!="string"&&this.context.errors.add({severity:s.Critical,message:`Expected file array value to be an array of strings, got ${typeof n}`}),a.push(n);return r.TypeInstantiation.slice({valueType:r.Type.reference(this.context.getIoReaderTypeReference()),values:a.map(n=>r.TypeInstantiation.reference(this.context.getNewStringsReaderFunctionInvocation(n)))})}getBodyProperty({property:t,record:i}){let e=i[t.name.wireValue];return e==null?r.TypeInstantiation.nop():this.context.dynamicTypeInstantiationMapper.convert({typeReference:t.typeReference,value:e})}};export{l as a};
|
package/esm/chunk-COBOWL3P.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{i as t}from"./chunk-6JCPJA27.js";var i=class{constructor(){t(this,"reporter");t(this,"snippet");t(this,"err");this.snippet=void 0,this.reporter=void 0,this.err=void 0}update({context:r,snippet:e}){(this.reporter==null||this.reporter.size()>r.errors.size())&&(this.reporter=r.errors.clone(),this.snippet=e)}getResponseOrThrow({endpoint:r}){var e;if(this.snippet!=null&&this.reporter!=null)return{snippet:this.snippet,errors:this.reporter.toDynamicSnippetErrors()};throw(e=this.err)!=null?e:new Error(`Failed to generate snippet for endpoint "${r.method} ${r.path}"`)}};export{i as a};
|