@botpress/client 0.33.2 → 0.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -1,5 +1,5 @@
1
- "use strict";var pu=Object.create;var fe=Object.defineProperty;var uu=Object.getOwnPropertyDescriptor;var cu=Object.getOwnPropertyNames;var du=Object.getPrototypeOf,lu=Object.prototype.hasOwnProperty;var q=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),$t=(e,t)=>{for(var s in t)fe(e,s,{get:t[s],enumerable:!0})},Kt=(e,t,s,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of cu(t))!lu.call(e,n)&&n!==s&&fe(e,n,{get:()=>t[n],enumerable:!(a=uu(t,n))||a.enumerable});return e};var _=(e,t,s)=>(s=e!=null?pu(du(e)):{},Kt(t||!e||!e.__esModule?fe(s,"default",{value:e,enumerable:!0}):s,e)),gu=e=>Kt(fe({},"__esModule",{value:!0}),e);var jt=q((Fd,zt)=>{"use strict";var yu=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);zt.exports=e=>!yu.has(e&&e.code)});var ir=q(($d,or)=>{"use strict";or.exports=Error});var ur=q((Kd,pr)=>{"use strict";pr.exports=EvalError});var dr=q((zd,cr)=>{"use strict";cr.exports=RangeError});var gr=q((jd,lr)=>{"use strict";lr.exports=ReferenceError});var Rt=q((Jd,yr)=>{"use strict";yr.exports=SyntaxError});var le=q((Yd,mr)=>{"use strict";mr.exports=TypeError});var qr=q((Xd,Rr)=>{"use strict";Rr.exports=URIError});var hr=q((Zd,fr)=>{"use strict";fr.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},s=Symbol("test"),a=Object(s);if(typeof s=="string"||Object.prototype.toString.call(s)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var n=42;t[s]=n;for(s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==s||!Object.prototype.propertyIsEnumerable.call(t,s))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var p=Object.getOwnPropertyDescriptor(t,s);if(p.value!==n||p.enumerable!==!0)return!1}return!0}});var Ir=q((el,xr)=>{"use strict";var br=typeof Symbol<"u"&&Symbol,Qu=hr();xr.exports=function(){return typeof br!="function"||typeof Symbol!="function"||typeof br("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Qu()}});var vr=q((tl,kr)=>{"use strict";var qt={__proto__:null,foo:{}},_u=Object;kr.exports=function(){return{__proto__:qt}.foo===qt.foo&&!(qt instanceof _u)}});var Tr=q((rl,Ar)=>{"use strict";var Du="Function.prototype.bind called on incompatible ",Hu=Object.prototype.toString,Mu=Math.max,Ou="[object Function]",Pr=function(t,s){for(var a=[],n=0;n<t.length;n+=1)a[n]=t[n];for(var o=0;o<s.length;o+=1)a[o+t.length]=s[o];return a},Fu=function(t,s){for(var a=[],n=s||0,o=0;n<t.length;n+=1,o+=1)a[o]=t[n];return a},Nu=function(e,t){for(var s="",a=0;a<e.length;a+=1)s+=e[a],a+1<e.length&&(s+=t);return s};Ar.exports=function(t){var s=this;if(typeof s!="function"||Hu.apply(s)!==Ou)throw new TypeError(Du+s);for(var a=Fu(arguments,1),n,o=function(){if(this instanceof n){var l=s.apply(this,Pr(a,arguments));return Object(l)===l?l:this}return s.apply(t,Pr(a,arguments))},p=Mu(0,s.length-a.length),i=[],r=0;r<p;r++)i[r]="$"+r;if(n=Function("binder","return function ("+Nu(i,",")+"){ return binder.apply(this,arguments); }")(o),s.prototype){var d=function(){};d.prototype=s.prototype,n.prototype=new d,d.prototype=null}return n}});var $e=q((sl,Br)=>{"use strict";var Vu=Tr();Br.exports=Function.prototype.bind||Vu});var wr=q((al,Cr)=>{"use strict";var $u=Function.prototype.call,Ku=Object.prototype.hasOwnProperty,zu=$e();Cr.exports=zu.call($u,Ku)});var z=q((nl,Sr)=>{"use strict";var m,ju=ir(),Ju=ur(),Yu=dr(),Xu=gr(),re=Rt(),te=le(),Zu=qr(),Lr=Function,ft=function(e){try{return Lr('"use strict"; return ('+e+").constructor;")()}catch{}},$=Object.getOwnPropertyDescriptor;if($)try{$({},"")}catch{$=null}var ht=function(){throw new te},ec=$?function(){try{return arguments.callee,ht}catch{try{return $(arguments,"callee").get}catch{return ht}}}():ht,Z=Ir()(),tc=vr()(),k=Object.getPrototypeOf||(tc?function(e){return e.__proto__}:null),ee={},rc=typeof Uint8Array>"u"||!k?m:k(Uint8Array),K={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?m:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?m:ArrayBuffer,"%ArrayIteratorPrototype%":Z&&k?k([][Symbol.iterator]()):m,"%AsyncFromSyncIteratorPrototype%":m,"%AsyncFunction%":ee,"%AsyncGenerator%":ee,"%AsyncGeneratorFunction%":ee,"%AsyncIteratorPrototype%":ee,"%Atomics%":typeof Atomics>"u"?m:Atomics,"%BigInt%":typeof BigInt>"u"?m:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?m:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?m:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?m:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":ju,"%eval%":eval,"%EvalError%":Ju,"%Float32Array%":typeof Float32Array>"u"?m:Float32Array,"%Float64Array%":typeof Float64Array>"u"?m:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?m:FinalizationRegistry,"%Function%":Lr,"%GeneratorFunction%":ee,"%Int8Array%":typeof Int8Array>"u"?m:Int8Array,"%Int16Array%":typeof Int16Array>"u"?m:Int16Array,"%Int32Array%":typeof Int32Array>"u"?m:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Z&&k?k(k([][Symbol.iterator]())):m,"%JSON%":typeof JSON=="object"?JSON:m,"%Map%":typeof Map>"u"?m:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Z||!k?m:k(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?m:Promise,"%Proxy%":typeof Proxy>"u"?m:Proxy,"%RangeError%":Yu,"%ReferenceError%":Xu,"%Reflect%":typeof Reflect>"u"?m:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?m:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Z||!k?m:k(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?m:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Z&&k?k(""[Symbol.iterator]()):m,"%Symbol%":Z?Symbol:m,"%SyntaxError%":re,"%ThrowTypeError%":ec,"%TypedArray%":rc,"%TypeError%":te,"%Uint8Array%":typeof Uint8Array>"u"?m:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?m:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?m:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?m:Uint32Array,"%URIError%":Zu,"%WeakMap%":typeof WeakMap>"u"?m:WeakMap,"%WeakRef%":typeof WeakRef>"u"?m:WeakRef,"%WeakSet%":typeof WeakSet>"u"?m:WeakSet};if(k)try{null.error}catch(e){Ur=k(k(e)),K["%Error.prototype%"]=Ur}var Ur,sc=function e(t){var s;if(t==="%AsyncFunction%")s=ft("async function () {}");else if(t==="%GeneratorFunction%")s=ft("function* () {}");else if(t==="%AsyncGeneratorFunction%")s=ft("async function* () {}");else if(t==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(s=a.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&k&&(s=k(n.prototype))}return K[t]=s,s},Gr={__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"]},ge=$e(),Ke=wr(),ac=ge.call(Function.call,Array.prototype.concat),nc=ge.call(Function.apply,Array.prototype.splice),Wr=ge.call(Function.call,String.prototype.replace),ze=ge.call(Function.call,String.prototype.slice),oc=ge.call(Function.call,RegExp.prototype.exec),ic=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,pc=/\\(\\)?/g,uc=function(t){var s=ze(t,0,1),a=ze(t,-1);if(s==="%"&&a!=="%")throw new re("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&s!=="%")throw new re("invalid intrinsic syntax, expected opening `%`");var n=[];return Wr(t,ic,function(o,p,i,r){n[n.length]=i?Wr(r,pc,"$1"):p||o}),n},cc=function(t,s){var a=t,n;if(Ke(Gr,a)&&(n=Gr[a],a="%"+n[0]+"%"),Ke(K,a)){var o=K[a];if(o===ee&&(o=sc(a)),typeof o>"u"&&!s)throw new te("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:o}}throw new re("intrinsic "+t+" does not exist!")};Sr.exports=function(t,s){if(typeof t!="string"||t.length===0)throw new te("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof s!="boolean")throw new te('"allowMissing" argument must be a boolean');if(oc(/^%?[^%]*%?$/,t)===null)throw new re("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=uc(t),n=a.length>0?a[0]:"",o=cc("%"+n+"%",s),p=o.name,i=o.value,r=!1,d=o.alias;d&&(n=d[0],nc(a,ac([0,1],d)));for(var l=1,R=!0;l<a.length;l+=1){var g=a[l],b=ze(g,0,1),y=ze(g,-1);if((b==='"'||b==="'"||b==="`"||y==='"'||y==="'"||y==="`")&&b!==y)throw new re("property names with quotes must have matching quotes");if((g==="constructor"||!R)&&(r=!0),n+="."+g,p="%"+n+"%",Ke(K,p))i=K[p];else if(i!=null){if(!(g in i)){if(!s)throw new te("base intrinsic for "+t+" exists, but the property is not available.");return}if($&&l+1>=a.length){var I=$(i,g);R=!!I,R&&"get"in I&&!("originalValue"in I.get)?i=I.get:i=i[g]}else R=Ke(i,g),i=i[g];R&&!r&&(K[p]=i)}}return i}});var Je=q((ol,Er)=>{"use strict";var dc=z(),je=dc("%Object.defineProperty%",!0)||!1;if(je)try{je({},"a",{value:1})}catch{je=!1}Er.exports=je});var bt=q((il,Qr)=>{"use strict";var lc=z(),Ye=lc("%Object.getOwnPropertyDescriptor%",!0);if(Ye)try{Ye([],"length")}catch{Ye=null}Qr.exports=Ye});var Mr=q((pl,Hr)=>{"use strict";var _r=Je(),gc=Rt(),se=le(),Dr=bt();Hr.exports=function(t,s,a){if(!t||typeof t!="object"&&typeof t!="function")throw new se("`obj` must be an object or a function`");if(typeof s!="string"&&typeof s!="symbol")throw new se("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new se("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new se("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new se("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new se("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,p=arguments.length>5?arguments[5]:null,i=arguments.length>6?arguments[6]:!1,r=!!Dr&&Dr(t,s);if(_r)_r(t,s,{configurable:p===null&&r?r.configurable:!p,enumerable:n===null&&r?r.enumerable:!n,value:a,writable:o===null&&r?r.writable:!o});else if(i||!n&&!o&&!p)t[s]=a;else throw new gc("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Nr=q((ul,Fr)=>{"use strict";var xt=Je(),Or=function(){return!!xt};Or.hasArrayLengthDefineBug=function(){if(!xt)return null;try{return xt([],"length",{value:1}).length!==1}catch{return!0}};Fr.exports=Or});var jr=q((cl,zr)=>{"use strict";var yc=z(),Vr=Mr(),mc=Nr()(),$r=bt(),Kr=le(),Rc=yc("%Math.floor%");zr.exports=function(t,s){if(typeof t!="function")throw new Kr("`fn` is not a function");if(typeof s!="number"||s<0||s>4294967295||Rc(s)!==s)throw new Kr("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],n=!0,o=!0;if("length"in t&&$r){var p=$r(t,"length");p&&!p.configurable&&(n=!1),p&&!p.writable&&(o=!1)}return(n||o||!a)&&(mc?Vr(t,"length",s,!0,!0):Vr(t,"length",s)),t}});var ts=q((dl,Xe)=>{"use strict";var It=$e(),Ze=z(),qc=jr(),fc=le(),Xr=Ze("%Function.prototype.apply%"),Zr=Ze("%Function.prototype.call%"),es=Ze("%Reflect.apply%",!0)||It.call(Zr,Xr),Jr=Je(),hc=Ze("%Math.max%");Xe.exports=function(t){if(typeof t!="function")throw new fc("a function is required");var s=es(It,Zr,arguments);return qc(s,1+hc(0,t.length-(arguments.length-1)),!0)};var Yr=function(){return es(It,Xr,arguments)};Jr?Jr(Xe.exports,"apply",{value:Yr}):Xe.exports.apply=Yr});var ns=q((ll,as)=>{"use strict";var rs=z(),ss=ts(),bc=ss(rs("String.prototype.indexOf"));as.exports=function(t,s){var a=rs(t,!!s);return typeof a=="function"&&bc(t,".prototype.")>-1?ss(a):a}});var is=q((gl,os)=>{os.exports=require("util").inspect});var Ts=q((yl,As)=>{var Gt=typeof Map=="function"&&Map.prototype,kt=Object.getOwnPropertyDescriptor&&Gt?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,tt=Gt&&kt&&typeof kt.get=="function"?kt.get:null,ps=Gt&&Map.prototype.forEach,Wt=typeof Set=="function"&&Set.prototype,vt=Object.getOwnPropertyDescriptor&&Wt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,rt=Wt&&vt&&typeof vt.get=="function"?vt.get:null,us=Wt&&Set.prototype.forEach,xc=typeof WeakMap=="function"&&WeakMap.prototype,me=xc?WeakMap.prototype.has:null,Ic=typeof WeakSet=="function"&&WeakSet.prototype,Re=Ic?WeakSet.prototype.has:null,kc=typeof WeakRef=="function"&&WeakRef.prototype,cs=kc?WeakRef.prototype.deref:null,vc=Boolean.prototype.valueOf,Pc=Object.prototype.toString,Ac=Function.prototype.toString,Tc=String.prototype.match,Lt=String.prototype.slice,O=String.prototype.replace,Bc=String.prototype.toUpperCase,ds=String.prototype.toLowerCase,bs=RegExp.prototype.test,ls=Array.prototype.concat,B=Array.prototype.join,Cc=Array.prototype.slice,gs=Math.floor,Tt=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Pt=Object.getOwnPropertySymbols,Bt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ae=typeof Symbol=="function"&&typeof Symbol.iterator=="object",A=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ae||"symbol")?Symbol.toStringTag:null,xs=Object.prototype.propertyIsEnumerable,ys=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function ms(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||bs.call(/e/,t))return t;var s=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var a=e<0?-gs(-e):gs(e);if(a!==e){var n=String(a),o=Lt.call(t,n.length+1);return O.call(n,s,"$&_")+"."+O.call(O.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return O.call(t,s,"$&_")}var Ct=is(),Rs=Ct.custom,qs=ks(Rs)?Rs:null;As.exports=function e(t,s,a,n){var o=s||{};if(M(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(M(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var p=M(o,"customInspect")?o.customInspect:!0;if(typeof p!="boolean"&&p!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(M(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(M(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var i=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Ps(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var r=String(t);return i?ms(t,r):r}if(typeof t=="bigint"){var d=String(t)+"n";return i?ms(t,d):d}var l=typeof o.depth>"u"?5:o.depth;if(typeof a>"u"&&(a=0),a>=l&&l>0&&typeof t=="object")return wt(t)?"[Array]":"[Object]";var R=Kc(o,a);if(typeof n>"u")n=[];else if(vs(n,t)>=0)return"[Circular]";function g(T,Q,G){if(Q&&(n=Cc.call(n),n.push(Q)),G){var ce={depth:o.depth};return M(o,"quoteStyle")&&(ce.quoteStyle=o.quoteStyle),e(T,ce,a+1,n)}return e(T,o,a+1,n)}if(typeof t=="function"&&!fs(t)){var b=_c(t),y=et(t,g);return"[Function"+(b?": "+b:" (anonymous)")+"]"+(y.length>0?" { "+B.call(y,", ")+" }":"")}if(ks(t)){var I=ae?O.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Bt.call(t);return typeof t=="object"&&!ae?ye(I):I}if(Nc(t)){for(var w="<"+ds.call(String(t.nodeName)),f=t.attributes||[],U=0;U<f.length;U++)w+=" "+f[U].name+"="+Is(wc(f[U].value),"double",o);return w+=">",t.childNodes&&t.childNodes.length&&(w+="..."),w+="</"+ds.call(String(t.nodeName))+">",w}if(wt(t)){if(t.length===0)return"[]";var S=et(t,g);return R&&!$c(S)?"["+Ut(S,R)+"]":"[ "+B.call(S,", ")+" ]"}if(Gc(t)){var J=et(t,g);return!("cause"in Error.prototype)&&"cause"in t&&!xs.call(t,"cause")?"{ ["+String(t)+"] "+B.call(ls.call("[cause]: "+g(t.cause),J),", ")+" }":J.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+B.call(J,", ")+" }"}if(typeof t=="object"&&p){if(qs&&typeof t[qs]=="function"&&Ct)return Ct(t,{depth:l-a});if(p!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Dc(t)){var ie=[];return ps&&ps.call(t,function(T,Q){ie.push(g(Q,t,!0)+" => "+g(T,t))}),hs("Map",tt.call(t),ie,R)}if(Oc(t)){var pe=[];return us&&us.call(t,function(T){pe.push(g(T,t))}),hs("Set",rt.call(t),pe,R)}if(Hc(t))return At("WeakMap");if(Fc(t))return At("WeakSet");if(Mc(t))return At("WeakRef");if(Lc(t))return ye(g(Number(t)));if(Ec(t))return ye(g(Tt.call(t)));if(Sc(t))return ye(vc.call(t));if(Wc(t))return ye(g(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof global<"u"&&t===global)return"{ [object globalThis] }";if(!Uc(t)&&!fs(t)){var N=et(t,g),ue=ys?ys(t)===Object.prototype:t instanceof Object||t.constructor===Object,E=t instanceof Object?"":"null prototype",Y=!ue&&A&&Object(t)===t&&A in t?Lt.call(F(t),8,-1):E?"Object":"",V=ue||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",X=V+(Y||E?"["+B.call(ls.call([],Y||[],E||[]),": ")+"] ":"");return N.length===0?X+"{}":R?X+"{"+Ut(N,R)+"}":X+"{ "+B.call(N,", ")+" }"}return String(t)};function Is(e,t,s){var a=(s.quoteStyle||t)==="double"?'"':"'";return a+e+a}function wc(e){return O.call(String(e),/"/g,"&quot;")}function wt(e){return F(e)==="[object Array]"&&(!A||!(typeof e=="object"&&A in e))}function Uc(e){return F(e)==="[object Date]"&&(!A||!(typeof e=="object"&&A in e))}function fs(e){return F(e)==="[object RegExp]"&&(!A||!(typeof e=="object"&&A in e))}function Gc(e){return F(e)==="[object Error]"&&(!A||!(typeof e=="object"&&A in e))}function Wc(e){return F(e)==="[object String]"&&(!A||!(typeof e=="object"&&A in e))}function Lc(e){return F(e)==="[object Number]"&&(!A||!(typeof e=="object"&&A in e))}function Sc(e){return F(e)==="[object Boolean]"&&(!A||!(typeof e=="object"&&A in e))}function ks(e){if(ae)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Bt)return!1;try{return Bt.call(e),!0}catch{}return!1}function Ec(e){if(!e||typeof e!="object"||!Tt)return!1;try{return Tt.call(e),!0}catch{}return!1}var Qc=Object.prototype.hasOwnProperty||function(e){return e in this};function M(e,t){return Qc.call(e,t)}function F(e){return Pc.call(e)}function _c(e){if(e.name)return e.name;var t=Tc.call(Ac.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function vs(e,t){if(e.indexOf)return e.indexOf(t);for(var s=0,a=e.length;s<a;s++)if(e[s]===t)return s;return-1}function Dc(e){if(!tt||!e||typeof e!="object")return!1;try{tt.call(e);try{rt.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Hc(e){if(!me||!e||typeof e!="object")return!1;try{me.call(e,me);try{Re.call(e,Re)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Mc(e){if(!cs||!e||typeof e!="object")return!1;try{return cs.call(e),!0}catch{}return!1}function Oc(e){if(!rt||!e||typeof e!="object")return!1;try{rt.call(e);try{tt.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Fc(e){if(!Re||!e||typeof e!="object")return!1;try{Re.call(e,Re);try{me.call(e,me)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Nc(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Ps(e,t){if(e.length>t.maxStringLength){var s=e.length-t.maxStringLength,a="... "+s+" more character"+(s>1?"s":"");return Ps(Lt.call(e,0,t.maxStringLength),t)+a}var n=O.call(O.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Vc);return Is(n,"single",t)}function Vc(e){var t=e.charCodeAt(0),s={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return s?"\\"+s:"\\x"+(t<16?"0":"")+Bc.call(t.toString(16))}function ye(e){return"Object("+e+")"}function At(e){return e+" { ? }"}function hs(e,t,s,a){var n=a?Ut(s,a):B.call(s,", ");return e+" ("+t+") {"+n+"}"}function $c(e){for(var t=0;t<e.length;t++)if(vs(e[t],`
2
- `)>=0)return!1;return!0}function Kc(e,t){var s;if(e.indent===" ")s=" ";else if(typeof e.indent=="number"&&e.indent>0)s=B.call(Array(e.indent+1)," ");else return null;return{base:s,prev:B.call(Array(t+1),s)}}function Ut(e,t){if(e.length===0)return"";var s=`
1
+ "use strict";var ou=Object.create;var fe=Object.defineProperty;var iu=Object.getOwnPropertyDescriptor;var pu=Object.getOwnPropertyNames;var uu=Object.getPrototypeOf,cu=Object.prototype.hasOwnProperty;var q=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),$t=(e,t)=>{for(var s in t)fe(e,s,{get:t[s],enumerable:!0})},Kt=(e,t,s,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of pu(t))!cu.call(e,n)&&n!==s&&fe(e,n,{get:()=>t[n],enumerable:!(a=iu(t,n))||a.enumerable});return e};var _=(e,t,s)=>(s=e!=null?ou(uu(e)):{},Kt(t||!e||!e.__esModule?fe(s,"default",{value:e,enumerable:!0}):s,e)),du=e=>Kt(fe({},"__esModule",{value:!0}),e);var jt=q((Md,zt)=>{"use strict";var lu=new Set(["ENOTFOUND","ENETUNREACH","UNABLE_TO_GET_ISSUER_CERT","UNABLE_TO_GET_CRL","UNABLE_TO_DECRYPT_CERT_SIGNATURE","UNABLE_TO_DECRYPT_CRL_SIGNATURE","UNABLE_TO_DECODE_ISSUER_PUBLIC_KEY","CERT_SIGNATURE_FAILURE","CRL_SIGNATURE_FAILURE","CERT_NOT_YET_VALID","CERT_HAS_EXPIRED","CRL_NOT_YET_VALID","CRL_HAS_EXPIRED","ERROR_IN_CERT_NOT_BEFORE_FIELD","ERROR_IN_CERT_NOT_AFTER_FIELD","ERROR_IN_CRL_LAST_UPDATE_FIELD","ERROR_IN_CRL_NEXT_UPDATE_FIELD","OUT_OF_MEM","DEPTH_ZERO_SELF_SIGNED_CERT","SELF_SIGNED_CERT_IN_CHAIN","UNABLE_TO_GET_ISSUER_CERT_LOCALLY","UNABLE_TO_VERIFY_LEAF_SIGNATURE","CERT_CHAIN_TOO_LONG","CERT_REVOKED","INVALID_CA","PATH_LENGTH_EXCEEDED","INVALID_PURPOSE","CERT_UNTRUSTED","CERT_REJECTED","HOSTNAME_MISMATCH"]);zt.exports=e=>!lu.has(e&&e.code)});var ir=q((Nd,or)=>{"use strict";or.exports=Error});var ur=q((Vd,pr)=>{"use strict";pr.exports=EvalError});var dr=q(($d,cr)=>{"use strict";cr.exports=RangeError});var gr=q((Kd,lr)=>{"use strict";lr.exports=ReferenceError});var Rt=q((zd,yr)=>{"use strict";yr.exports=SyntaxError});var le=q((jd,mr)=>{"use strict";mr.exports=TypeError});var qr=q((Jd,Rr)=>{"use strict";Rr.exports=URIError});var hr=q((Yd,fr)=>{"use strict";fr.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},s=Symbol("test"),a=Object(s);if(typeof s=="string"||Object.prototype.toString.call(s)!=="[object Symbol]"||Object.prototype.toString.call(a)!=="[object Symbol]")return!1;var n=42;t[s]=n;for(s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var o=Object.getOwnPropertySymbols(t);if(o.length!==1||o[0]!==s||!Object.prototype.propertyIsEnumerable.call(t,s))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var p=Object.getOwnPropertyDescriptor(t,s);if(p.value!==n||p.enumerable!==!0)return!1}return!0}});var Ir=q((Xd,xr)=>{"use strict";var br=typeof Symbol<"u"&&Symbol,Su=hr();xr.exports=function(){return typeof br!="function"||typeof Symbol!="function"||typeof br("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Su()}});var vr=q((Zd,kr)=>{"use strict";var qt={__proto__:null,foo:{}},Eu=Object;kr.exports=function(){return{__proto__:qt}.foo===qt.foo&&!(qt instanceof Eu)}});var Tr=q((el,Ar)=>{"use strict";var Qu="Function.prototype.bind called on incompatible ",_u=Object.prototype.toString,Du=Math.max,Hu="[object Function]",Pr=function(t,s){for(var a=[],n=0;n<t.length;n+=1)a[n]=t[n];for(var o=0;o<s.length;o+=1)a[o+t.length]=s[o];return a},Mu=function(t,s){for(var a=[],n=s||0,o=0;n<t.length;n+=1,o+=1)a[o]=t[n];return a},Ou=function(e,t){for(var s="",a=0;a<e.length;a+=1)s+=e[a],a+1<e.length&&(s+=t);return s};Ar.exports=function(t){var s=this;if(typeof s!="function"||_u.apply(s)!==Hu)throw new TypeError(Qu+s);for(var a=Mu(arguments,1),n,o=function(){if(this instanceof n){var l=s.apply(this,Pr(a,arguments));return Object(l)===l?l:this}return s.apply(t,Pr(a,arguments))},p=Du(0,s.length-a.length),i=[],r=0;r<p;r++)i[r]="$"+r;if(n=Function("binder","return function ("+Ou(i,",")+"){ return binder.apply(this,arguments); }")(o),s.prototype){var d=function(){};d.prototype=s.prototype,n.prototype=new d,d.prototype=null}return n}});var $e=q((tl,Br)=>{"use strict";var Fu=Tr();Br.exports=Function.prototype.bind||Fu});var wr=q((rl,Cr)=>{"use strict";var Nu=Function.prototype.call,Vu=Object.prototype.hasOwnProperty,$u=$e();Cr.exports=$u.call(Nu,Vu)});var z=q((sl,Sr)=>{"use strict";var m,Ku=ir(),zu=ur(),ju=dr(),Ju=gr(),re=Rt(),te=le(),Yu=qr(),Lr=Function,ft=function(e){try{return Lr('"use strict"; return ('+e+").constructor;")()}catch{}},$=Object.getOwnPropertyDescriptor;if($)try{$({},"")}catch{$=null}var ht=function(){throw new te},Xu=$?function(){try{return arguments.callee,ht}catch{try{return $(arguments,"callee").get}catch{return ht}}}():ht,Z=Ir()(),Zu=vr()(),k=Object.getPrototypeOf||(Zu?function(e){return e.__proto__}:null),ee={},ec=typeof Uint8Array>"u"||!k?m:k(Uint8Array),K={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?m:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?m:ArrayBuffer,"%ArrayIteratorPrototype%":Z&&k?k([][Symbol.iterator]()):m,"%AsyncFromSyncIteratorPrototype%":m,"%AsyncFunction%":ee,"%AsyncGenerator%":ee,"%AsyncGeneratorFunction%":ee,"%AsyncIteratorPrototype%":ee,"%Atomics%":typeof Atomics>"u"?m:Atomics,"%BigInt%":typeof BigInt>"u"?m:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?m:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?m:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?m:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Ku,"%eval%":eval,"%EvalError%":zu,"%Float32Array%":typeof Float32Array>"u"?m:Float32Array,"%Float64Array%":typeof Float64Array>"u"?m:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?m:FinalizationRegistry,"%Function%":Lr,"%GeneratorFunction%":ee,"%Int8Array%":typeof Int8Array>"u"?m:Int8Array,"%Int16Array%":typeof Int16Array>"u"?m:Int16Array,"%Int32Array%":typeof Int32Array>"u"?m:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Z&&k?k(k([][Symbol.iterator]())):m,"%JSON%":typeof JSON=="object"?JSON:m,"%Map%":typeof Map>"u"?m:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Z||!k?m:k(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?m:Promise,"%Proxy%":typeof Proxy>"u"?m:Proxy,"%RangeError%":ju,"%ReferenceError%":Ju,"%Reflect%":typeof Reflect>"u"?m:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?m:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Z||!k?m:k(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?m:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Z&&k?k(""[Symbol.iterator]()):m,"%Symbol%":Z?Symbol:m,"%SyntaxError%":re,"%ThrowTypeError%":Xu,"%TypedArray%":ec,"%TypeError%":te,"%Uint8Array%":typeof Uint8Array>"u"?m:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?m:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?m:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?m:Uint32Array,"%URIError%":Yu,"%WeakMap%":typeof WeakMap>"u"?m:WeakMap,"%WeakRef%":typeof WeakRef>"u"?m:WeakRef,"%WeakSet%":typeof WeakSet>"u"?m:WeakSet};if(k)try{null.error}catch(e){Ur=k(k(e)),K["%Error.prototype%"]=Ur}var Ur,tc=function e(t){var s;if(t==="%AsyncFunction%")s=ft("async function () {}");else if(t==="%GeneratorFunction%")s=ft("function* () {}");else if(t==="%AsyncGeneratorFunction%")s=ft("async function* () {}");else if(t==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(s=a.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&k&&(s=k(n.prototype))}return K[t]=s,s},Gr={__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"]},ge=$e(),Ke=wr(),rc=ge.call(Function.call,Array.prototype.concat),sc=ge.call(Function.apply,Array.prototype.splice),Wr=ge.call(Function.call,String.prototype.replace),ze=ge.call(Function.call,String.prototype.slice),ac=ge.call(Function.call,RegExp.prototype.exec),nc=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,oc=/\\(\\)?/g,ic=function(t){var s=ze(t,0,1),a=ze(t,-1);if(s==="%"&&a!=="%")throw new re("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&s!=="%")throw new re("invalid intrinsic syntax, expected opening `%`");var n=[];return Wr(t,nc,function(o,p,i,r){n[n.length]=i?Wr(r,oc,"$1"):p||o}),n},pc=function(t,s){var a=t,n;if(Ke(Gr,a)&&(n=Gr[a],a="%"+n[0]+"%"),Ke(K,a)){var o=K[a];if(o===ee&&(o=tc(a)),typeof o>"u"&&!s)throw new te("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:o}}throw new re("intrinsic "+t+" does not exist!")};Sr.exports=function(t,s){if(typeof t!="string"||t.length===0)throw new te("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof s!="boolean")throw new te('"allowMissing" argument must be a boolean');if(ac(/^%?[^%]*%?$/,t)===null)throw new re("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=ic(t),n=a.length>0?a[0]:"",o=pc("%"+n+"%",s),p=o.name,i=o.value,r=!1,d=o.alias;d&&(n=d[0],sc(a,rc([0,1],d)));for(var l=1,R=!0;l<a.length;l+=1){var g=a[l],b=ze(g,0,1),y=ze(g,-1);if((b==='"'||b==="'"||b==="`"||y==='"'||y==="'"||y==="`")&&b!==y)throw new re("property names with quotes must have matching quotes");if((g==="constructor"||!R)&&(r=!0),n+="."+g,p="%"+n+"%",Ke(K,p))i=K[p];else if(i!=null){if(!(g in i)){if(!s)throw new te("base intrinsic for "+t+" exists, but the property is not available.");return}if($&&l+1>=a.length){var I=$(i,g);R=!!I,R&&"get"in I&&!("originalValue"in I.get)?i=I.get:i=i[g]}else R=Ke(i,g),i=i[g];R&&!r&&(K[p]=i)}}return i}});var Je=q((al,Er)=>{"use strict";var uc=z(),je=uc("%Object.defineProperty%",!0)||!1;if(je)try{je({},"a",{value:1})}catch{je=!1}Er.exports=je});var bt=q((nl,Qr)=>{"use strict";var cc=z(),Ye=cc("%Object.getOwnPropertyDescriptor%",!0);if(Ye)try{Ye([],"length")}catch{Ye=null}Qr.exports=Ye});var Mr=q((ol,Hr)=>{"use strict";var _r=Je(),dc=Rt(),se=le(),Dr=bt();Hr.exports=function(t,s,a){if(!t||typeof t!="object"&&typeof t!="function")throw new se("`obj` must be an object or a function`");if(typeof s!="string"&&typeof s!="symbol")throw new se("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new se("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new se("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new se("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new se("`loose`, if provided, must be a boolean");var n=arguments.length>3?arguments[3]:null,o=arguments.length>4?arguments[4]:null,p=arguments.length>5?arguments[5]:null,i=arguments.length>6?arguments[6]:!1,r=!!Dr&&Dr(t,s);if(_r)_r(t,s,{configurable:p===null&&r?r.configurable:!p,enumerable:n===null&&r?r.enumerable:!n,value:a,writable:o===null&&r?r.writable:!o});else if(i||!n&&!o&&!p)t[s]=a;else throw new dc("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Nr=q((il,Fr)=>{"use strict";var xt=Je(),Or=function(){return!!xt};Or.hasArrayLengthDefineBug=function(){if(!xt)return null;try{return xt([],"length",{value:1}).length!==1}catch{return!0}};Fr.exports=Or});var jr=q((pl,zr)=>{"use strict";var lc=z(),Vr=Mr(),gc=Nr()(),$r=bt(),Kr=le(),yc=lc("%Math.floor%");zr.exports=function(t,s){if(typeof t!="function")throw new Kr("`fn` is not a function");if(typeof s!="number"||s<0||s>4294967295||yc(s)!==s)throw new Kr("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],n=!0,o=!0;if("length"in t&&$r){var p=$r(t,"length");p&&!p.configurable&&(n=!1),p&&!p.writable&&(o=!1)}return(n||o||!a)&&(gc?Vr(t,"length",s,!0,!0):Vr(t,"length",s)),t}});var ts=q((ul,Xe)=>{"use strict";var It=$e(),Ze=z(),mc=jr(),Rc=le(),Xr=Ze("%Function.prototype.apply%"),Zr=Ze("%Function.prototype.call%"),es=Ze("%Reflect.apply%",!0)||It.call(Zr,Xr),Jr=Je(),qc=Ze("%Math.max%");Xe.exports=function(t){if(typeof t!="function")throw new Rc("a function is required");var s=es(It,Zr,arguments);return mc(s,1+qc(0,t.length-(arguments.length-1)),!0)};var Yr=function(){return es(It,Xr,arguments)};Jr?Jr(Xe.exports,"apply",{value:Yr}):Xe.exports.apply=Yr});var ns=q((cl,as)=>{"use strict";var rs=z(),ss=ts(),fc=ss(rs("String.prototype.indexOf"));as.exports=function(t,s){var a=rs(t,!!s);return typeof a=="function"&&fc(t,".prototype.")>-1?ss(a):a}});var is=q((dl,os)=>{os.exports=require("util").inspect});var Ts=q((ll,As)=>{var Gt=typeof Map=="function"&&Map.prototype,kt=Object.getOwnPropertyDescriptor&&Gt?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,tt=Gt&&kt&&typeof kt.get=="function"?kt.get:null,ps=Gt&&Map.prototype.forEach,Wt=typeof Set=="function"&&Set.prototype,vt=Object.getOwnPropertyDescriptor&&Wt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,rt=Wt&&vt&&typeof vt.get=="function"?vt.get:null,us=Wt&&Set.prototype.forEach,hc=typeof WeakMap=="function"&&WeakMap.prototype,me=hc?WeakMap.prototype.has:null,bc=typeof WeakSet=="function"&&WeakSet.prototype,Re=bc?WeakSet.prototype.has:null,xc=typeof WeakRef=="function"&&WeakRef.prototype,cs=xc?WeakRef.prototype.deref:null,Ic=Boolean.prototype.valueOf,kc=Object.prototype.toString,vc=Function.prototype.toString,Pc=String.prototype.match,Lt=String.prototype.slice,O=String.prototype.replace,Ac=String.prototype.toUpperCase,ds=String.prototype.toLowerCase,bs=RegExp.prototype.test,ls=Array.prototype.concat,B=Array.prototype.join,Tc=Array.prototype.slice,gs=Math.floor,Tt=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Pt=Object.getOwnPropertySymbols,Bt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,ae=typeof Symbol=="function"&&typeof Symbol.iterator=="object",A=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===ae||"symbol")?Symbol.toStringTag:null,xs=Object.prototype.propertyIsEnumerable,ys=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function ms(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||bs.call(/e/,t))return t;var s=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var a=e<0?-gs(-e):gs(e);if(a!==e){var n=String(a),o=Lt.call(t,n.length+1);return O.call(n,s,"$&_")+"."+O.call(O.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return O.call(t,s,"$&_")}var Ct=is(),Rs=Ct.custom,qs=ks(Rs)?Rs:null;As.exports=function e(t,s,a,n){var o=s||{};if(M(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(M(o,"maxStringLength")&&(typeof o.maxStringLength=="number"?o.maxStringLength<0&&o.maxStringLength!==1/0:o.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var p=M(o,"customInspect")?o.customInspect:!0;if(typeof p!="boolean"&&p!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(M(o,"indent")&&o.indent!==null&&o.indent!==" "&&!(parseInt(o.indent,10)===o.indent&&o.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(M(o,"numericSeparator")&&typeof o.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var i=o.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return Ps(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var r=String(t);return i?ms(t,r):r}if(typeof t=="bigint"){var d=String(t)+"n";return i?ms(t,d):d}var l=typeof o.depth>"u"?5:o.depth;if(typeof a>"u"&&(a=0),a>=l&&l>0&&typeof t=="object")return wt(t)?"[Array]":"[Object]";var R=Vc(o,a);if(typeof n>"u")n=[];else if(vs(n,t)>=0)return"[Circular]";function g(T,Q,G){if(Q&&(n=Tc.call(n),n.push(Q)),G){var ce={depth:o.depth};return M(o,"quoteStyle")&&(ce.quoteStyle=o.quoteStyle),e(T,ce,a+1,n)}return e(T,o,a+1,n)}if(typeof t=="function"&&!fs(t)){var b=Ec(t),y=et(t,g);return"[Function"+(b?": "+b:" (anonymous)")+"]"+(y.length>0?" { "+B.call(y,", ")+" }":"")}if(ks(t)){var I=ae?O.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Bt.call(t);return typeof t=="object"&&!ae?ye(I):I}if(Oc(t)){for(var w="<"+ds.call(String(t.nodeName)),f=t.attributes||[],U=0;U<f.length;U++)w+=" "+f[U].name+"="+Is(Bc(f[U].value),"double",o);return w+=">",t.childNodes&&t.childNodes.length&&(w+="..."),w+="</"+ds.call(String(t.nodeName))+">",w}if(wt(t)){if(t.length===0)return"[]";var S=et(t,g);return R&&!Nc(S)?"["+Ut(S,R)+"]":"[ "+B.call(S,", ")+" ]"}if(wc(t)){var J=et(t,g);return!("cause"in Error.prototype)&&"cause"in t&&!xs.call(t,"cause")?"{ ["+String(t)+"] "+B.call(ls.call("[cause]: "+g(t.cause),J),", ")+" }":J.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+B.call(J,", ")+" }"}if(typeof t=="object"&&p){if(qs&&typeof t[qs]=="function"&&Ct)return Ct(t,{depth:l-a});if(p!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Qc(t)){var ie=[];return ps&&ps.call(t,function(T,Q){ie.push(g(Q,t,!0)+" => "+g(T,t))}),hs("Map",tt.call(t),ie,R)}if(Hc(t)){var pe=[];return us&&us.call(t,function(T){pe.push(g(T,t))}),hs("Set",rt.call(t),pe,R)}if(_c(t))return At("WeakMap");if(Mc(t))return At("WeakSet");if(Dc(t))return At("WeakRef");if(Gc(t))return ye(g(Number(t)));if(Lc(t))return ye(g(Tt.call(t)));if(Wc(t))return ye(Ic.call(t));if(Uc(t))return ye(g(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof global<"u"&&t===global)return"{ [object globalThis] }";if(!Cc(t)&&!fs(t)){var N=et(t,g),ue=ys?ys(t)===Object.prototype:t instanceof Object||t.constructor===Object,E=t instanceof Object?"":"null prototype",Y=!ue&&A&&Object(t)===t&&A in t?Lt.call(F(t),8,-1):E?"Object":"",V=ue||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",X=V+(Y||E?"["+B.call(ls.call([],Y||[],E||[]),": ")+"] ":"");return N.length===0?X+"{}":R?X+"{"+Ut(N,R)+"}":X+"{ "+B.call(N,", ")+" }"}return String(t)};function Is(e,t,s){var a=(s.quoteStyle||t)==="double"?'"':"'";return a+e+a}function Bc(e){return O.call(String(e),/"/g,"&quot;")}function wt(e){return F(e)==="[object Array]"&&(!A||!(typeof e=="object"&&A in e))}function Cc(e){return F(e)==="[object Date]"&&(!A||!(typeof e=="object"&&A in e))}function fs(e){return F(e)==="[object RegExp]"&&(!A||!(typeof e=="object"&&A in e))}function wc(e){return F(e)==="[object Error]"&&(!A||!(typeof e=="object"&&A in e))}function Uc(e){return F(e)==="[object String]"&&(!A||!(typeof e=="object"&&A in e))}function Gc(e){return F(e)==="[object Number]"&&(!A||!(typeof e=="object"&&A in e))}function Wc(e){return F(e)==="[object Boolean]"&&(!A||!(typeof e=="object"&&A in e))}function ks(e){if(ae)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Bt)return!1;try{return Bt.call(e),!0}catch{}return!1}function Lc(e){if(!e||typeof e!="object"||!Tt)return!1;try{return Tt.call(e),!0}catch{}return!1}var Sc=Object.prototype.hasOwnProperty||function(e){return e in this};function M(e,t){return Sc.call(e,t)}function F(e){return kc.call(e)}function Ec(e){if(e.name)return e.name;var t=Pc.call(vc.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function vs(e,t){if(e.indexOf)return e.indexOf(t);for(var s=0,a=e.length;s<a;s++)if(e[s]===t)return s;return-1}function Qc(e){if(!tt||!e||typeof e!="object")return!1;try{tt.call(e);try{rt.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function _c(e){if(!me||!e||typeof e!="object")return!1;try{me.call(e,me);try{Re.call(e,Re)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Dc(e){if(!cs||!e||typeof e!="object")return!1;try{return cs.call(e),!0}catch{}return!1}function Hc(e){if(!rt||!e||typeof e!="object")return!1;try{rt.call(e);try{tt.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function Mc(e){if(!Re||!e||typeof e!="object")return!1;try{Re.call(e,Re);try{me.call(e,me)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function Oc(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Ps(e,t){if(e.length>t.maxStringLength){var s=e.length-t.maxStringLength,a="... "+s+" more character"+(s>1?"s":"");return Ps(Lt.call(e,0,t.maxStringLength),t)+a}var n=O.call(O.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,Fc);return Is(n,"single",t)}function Fc(e){var t=e.charCodeAt(0),s={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return s?"\\"+s:"\\x"+(t<16?"0":"")+Ac.call(t.toString(16))}function ye(e){return"Object("+e+")"}function At(e){return e+" { ? }"}function hs(e,t,s,a){var n=a?Ut(s,a):B.call(s,", ");return e+" ("+t+") {"+n+"}"}function Nc(e){for(var t=0;t<e.length;t++)if(vs(e[t],`
2
+ `)>=0)return!1;return!0}function Vc(e,t){var s;if(e.indent===" ")s=" ";else if(typeof e.indent=="number"&&e.indent>0)s=B.call(Array(e.indent+1)," ");else return null;return{base:s,prev:B.call(Array(t+1),s)}}function Ut(e,t){if(e.length===0)return"";var s=`
3
3
  `+t.prev+t.base;return s+B.call(e,","+s)+`
4
- `+t.prev}function et(e,t){var s=wt(e),a=[];if(s){a.length=e.length;for(var n=0;n<e.length;n++)a[n]=M(e,n)?t(e[n],e):""}var o=typeof Pt=="function"?Pt(e):[],p;if(ae){p={};for(var i=0;i<o.length;i++)p["$"+o[i]]=o[i]}for(var r in e)M(e,r)&&(s&&String(Number(r))===r&&r<e.length||ae&&p["$"+r]instanceof Symbol||(bs.call(/[^\w$]/,r)?a.push(t(r,e)+": "+t(e[r],e)):a.push(r+": "+t(e[r],e))));if(typeof Pt=="function")for(var d=0;d<o.length;d++)xs.call(e,o[d])&&a.push("["+t(o[d])+"]: "+t(e[o[d]],e));return a}});var Cs=q((ml,Bs)=>{"use strict";var St=z(),ne=ns(),zc=Ts(),jc=St("%TypeError%"),st=St("%WeakMap%",!0),at=St("%Map%",!0),Jc=ne("WeakMap.prototype.get",!0),Yc=ne("WeakMap.prototype.set",!0),Xc=ne("WeakMap.prototype.has",!0),Zc=ne("Map.prototype.get",!0),ed=ne("Map.prototype.set",!0),td=ne("Map.prototype.has",!0),Et=function(e,t){for(var s=e,a;(a=s.next)!==null;s=a)if(a.key===t)return s.next=a.next,a.next=e.next,e.next=a,a},rd=function(e,t){var s=Et(e,t);return s&&s.value},sd=function(e,t,s){var a=Et(e,t);a?a.value=s:e.next={key:t,next:e.next,value:s}},ad=function(e,t){return!!Et(e,t)};Bs.exports=function(){var t,s,a,n={assert:function(o){if(!n.has(o))throw new jc("Side channel does not contain "+zc(o))},get:function(o){if(st&&o&&(typeof o=="object"||typeof o=="function")){if(t)return Jc(t,o)}else if(at){if(s)return Zc(s,o)}else if(a)return rd(a,o)},has:function(o){if(st&&o&&(typeof o=="object"||typeof o=="function")){if(t)return Xc(t,o)}else if(at){if(s)return td(s,o)}else if(a)return ad(a,o);return!1},set:function(o,p){st&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new st),Yc(t,o,p)):at?(s||(s=new at),ed(s,o,p)):(a||(a={key:{},next:null}),sd(a,o,p))}};return n}});var nt=q((Rl,ws)=>{"use strict";var nd=String.prototype.replace,od=/%20/g,Qt={RFC1738:"RFC1738",RFC3986:"RFC3986"};ws.exports={default:Qt.RFC3986,formatters:{RFC1738:function(e){return nd.call(e,od,"+")},RFC3986:function(e){return String(e)}},RFC1738:Qt.RFC1738,RFC3986:Qt.RFC3986}});var Dt=q((ql,Gs)=>{"use strict";var id=nt(),_t=Object.prototype.hasOwnProperty,j=Array.isArray,C=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),pd=function(t){for(;t.length>1;){var s=t.pop(),a=s.obj[s.prop];if(j(a)){for(var n=[],o=0;o<a.length;++o)typeof a[o]<"u"&&n.push(a[o]);s.obj[s.prop]=n}}},Us=function(t,s){for(var a=s&&s.plainObjects?Object.create(null):{},n=0;n<t.length;++n)typeof t[n]<"u"&&(a[n]=t[n]);return a},ud=function e(t,s,a){if(!s)return t;if(typeof s!="object"){if(j(t))t.push(s);else if(t&&typeof t=="object")(a&&(a.plainObjects||a.allowPrototypes)||!_t.call(Object.prototype,s))&&(t[s]=!0);else return[t,s];return t}if(!t||typeof t!="object")return[t].concat(s);var n=t;return j(t)&&!j(s)&&(n=Us(t,a)),j(t)&&j(s)?(s.forEach(function(o,p){if(_t.call(t,p)){var i=t[p];i&&typeof i=="object"&&o&&typeof o=="object"?t[p]=e(i,o,a):t.push(o)}else t[p]=o}),t):Object.keys(s).reduce(function(o,p){var i=s[p];return _t.call(o,p)?o[p]=e(o[p],i,a):o[p]=i,o},n)},cd=function(t,s){return Object.keys(s).reduce(function(a,n){return a[n]=s[n],a},t)},dd=function(e,t,s){var a=e.replace(/\+/g," ");if(s==="iso-8859-1")return a.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(a)}catch{return a}},ld=function(t,s,a,n,o){if(t.length===0)return t;var p=t;if(typeof t=="symbol"?p=Symbol.prototype.toString.call(t):typeof t!="string"&&(p=String(t)),a==="iso-8859-1")return escape(p).replace(/%u[0-9a-f]{4}/gi,function(l){return"%26%23"+parseInt(l.slice(2),16)+"%3B"});for(var i="",r=0;r<p.length;++r){var d=p.charCodeAt(r);if(d===45||d===46||d===95||d===126||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||o===id.RFC1738&&(d===40||d===41)){i+=p.charAt(r);continue}if(d<128){i=i+C[d];continue}if(d<2048){i=i+(C[192|d>>6]+C[128|d&63]);continue}if(d<55296||d>=57344){i=i+(C[224|d>>12]+C[128|d>>6&63]+C[128|d&63]);continue}r+=1,d=65536+((d&1023)<<10|p.charCodeAt(r)&1023),i+=C[240|d>>18]+C[128|d>>12&63]+C[128|d>>6&63]+C[128|d&63]}return i},gd=function(t){for(var s=[{obj:{o:t},prop:"o"}],a=[],n=0;n<s.length;++n)for(var o=s[n],p=o.obj[o.prop],i=Object.keys(p),r=0;r<i.length;++r){var d=i[r],l=p[d];typeof l=="object"&&l!==null&&a.indexOf(l)===-1&&(s.push({obj:p,prop:d}),a.push(l))}return pd(s),t},yd=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},md=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},Rd=function(t,s){return[].concat(t,s)},qd=function(t,s){if(j(t)){for(var a=[],n=0;n<t.length;n+=1)a.push(s(t[n]));return a}return s(t)};Gs.exports={arrayToObject:Us,assign:cd,combine:Rd,compact:gd,decode:dd,encode:ld,isBuffer:md,isRegExp:yd,maybeMap:qd,merge:ud}});var _s=q((fl,Qs)=>{"use strict";var Ss=Cs(),Mt=Dt(),qe=nt(),fd=Object.prototype.hasOwnProperty,Ws={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,s){return t+"["+s+"]"},repeat:function(t){return t}},L=Array.isArray,hd=String.prototype.split,bd=Array.prototype.push,Es=function(e,t){bd.apply(e,L(t)?t:[t])},xd=Date.prototype.toISOString,Ls=qe.default,P={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Mt.encode,encodeValuesOnly:!1,format:Ls,formatter:qe.formatters[Ls],indices:!1,serializeDate:function(t){return xd.call(t)},skipNulls:!1,strictNullHandling:!1},Id=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Ht={},kd=function e(t,s,a,n,o,p,i,r,d,l,R,g,b,y,I,w){for(var f=t,U=w,S=0,J=!1;(U=U.get(Ht))!==void 0&&!J;){var ie=U.get(t);if(S+=1,typeof ie<"u"){if(ie===S)throw new RangeError("Cyclic object value");J=!0}typeof U.get(Ht)>"u"&&(S=0)}if(typeof r=="function"?f=r(s,f):f instanceof Date?f=R(f):a==="comma"&&L(f)&&(f=Mt.maybeMap(f,function(ut){return ut instanceof Date?R(ut):ut})),f===null){if(o)return i&&!y?i(s,P.encoder,I,"key",g):s;f=""}if(Id(f)||Mt.isBuffer(f)){if(i){var pe=y?s:i(s,P.encoder,I,"key",g);if(a==="comma"&&y){for(var N=hd.call(String(f),","),ue="",E=0;E<N.length;++E)ue+=(E===0?"":",")+b(i(N[E],P.encoder,I,"value",g));return[b(pe)+(n&&L(f)&&N.length===1?"[]":"")+"="+ue]}return[b(pe)+"="+b(i(f,P.encoder,I,"value",g))]}return[b(s)+"="+b(String(f))]}var Y=[];if(typeof f>"u")return Y;var V;if(a==="comma"&&L(f))V=[{value:f.length>0?f.join(",")||null:void 0}];else if(L(r))V=r;else{var X=Object.keys(f);V=d?X.sort(d):X}for(var T=n&&L(f)&&f.length===1?s+"[]":s,Q=0;Q<V.length;++Q){var G=V[Q],ce=typeof G=="object"&&typeof G.value<"u"?G.value:f[G];if(!(p&&ce===null)){var iu=L(f)?typeof a=="function"?a(T,G):T:T+(l?"."+G:"["+G+"]");w.set(t,S);var Vt=Ss();Vt.set(Ht,w),Es(Y,e(ce,iu,a,n,o,p,i,r,d,l,R,g,b,y,I,Vt))}}return Y},vd=function(t){if(!t)return P;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var s=t.charset||P.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var a=qe.default;if(typeof t.format<"u"){if(!fd.call(qe.formatters,t.format))throw new TypeError("Unknown format option provided.");a=t.format}var n=qe.formatters[a],o=P.filter;return(typeof t.filter=="function"||L(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:P.addQueryPrefix,allowDots:typeof t.allowDots>"u"?P.allowDots:!!t.allowDots,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:P.charsetSentinel,delimiter:typeof t.delimiter>"u"?P.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:P.encode,encoder:typeof t.encoder=="function"?t.encoder:P.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:P.encodeValuesOnly,filter:o,format:a,formatter:n,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:P.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:P.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:P.strictNullHandling}};Qs.exports=function(e,t){var s=e,a=vd(t),n,o;typeof a.filter=="function"?(o=a.filter,s=o("",s)):L(a.filter)&&(o=a.filter,n=o);var p=[];if(typeof s!="object"||s===null)return"";var i;t&&t.arrayFormat in Ws?i=t.arrayFormat:t&&"indices"in t?i=t.indices?"indices":"repeat":i="indices";var r=Ws[i];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var d=r==="comma"&&t&&t.commaRoundTrip;n||(n=Object.keys(s)),a.sort&&n.sort(a.sort);for(var l=Ss(),R=0;R<n.length;++R){var g=n[R];a.skipNulls&&s[g]===null||Es(p,kd(s[g],g,r,d,a.strictNullHandling,a.skipNulls,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,l))}var b=p.join(a.delimiter),y=a.addQueryPrefix===!0?"?":"";return a.charsetSentinel&&(a.charset==="iso-8859-1"?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),b.length>0?y+b:""}});var Ms=q((hl,Hs)=>{"use strict";var oe=Dt(),Ot=Object.prototype.hasOwnProperty,Pd=Array.isArray,v={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:oe.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Ad=function(e){return e.replace(/&#(\d+);/g,function(t,s){return String.fromCharCode(parseInt(s,10))})},Ds=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Td="utf8=%26%2310003%3B",Bd="utf8=%E2%9C%93",Cd=function(t,s){var a={},n=s.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=s.parameterLimit===1/0?void 0:s.parameterLimit,p=n.split(s.delimiter,o),i=-1,r,d=s.charset;if(s.charsetSentinel)for(r=0;r<p.length;++r)p[r].indexOf("utf8=")===0&&(p[r]===Bd?d="utf-8":p[r]===Td&&(d="iso-8859-1"),i=r,r=p.length);for(r=0;r<p.length;++r)if(r!==i){var l=p[r],R=l.indexOf("]="),g=R===-1?l.indexOf("="):R+1,b,y;g===-1?(b=s.decoder(l,v.decoder,d,"key"),y=s.strictNullHandling?null:""):(b=s.decoder(l.slice(0,g),v.decoder,d,"key"),y=oe.maybeMap(Ds(l.slice(g+1),s),function(I){return s.decoder(I,v.decoder,d,"value")})),y&&s.interpretNumericEntities&&d==="iso-8859-1"&&(y=Ad(y)),l.indexOf("[]=")>-1&&(y=Pd(y)?[y]:y),Ot.call(a,b)?a[b]=oe.combine(a[b],y):a[b]=y}return a},wd=function(e,t,s,a){for(var n=a?t:Ds(t,s),o=e.length-1;o>=0;--o){var p,i=e[o];if(i==="[]"&&s.parseArrays)p=[].concat(n);else{p=s.plainObjects?Object.create(null):{};var r=i.charAt(0)==="["&&i.charAt(i.length-1)==="]"?i.slice(1,-1):i,d=parseInt(r,10);!s.parseArrays&&r===""?p={0:n}:!isNaN(d)&&i!==r&&String(d)===r&&d>=0&&s.parseArrays&&d<=s.arrayLimit?(p=[],p[d]=n):r!=="__proto__"&&(p[r]=n)}n=p}return n},Ud=function(t,s,a,n){if(t){var o=a.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,p=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,r=a.depth>0&&p.exec(o),d=r?o.slice(0,r.index):o,l=[];if(d){if(!a.plainObjects&&Ot.call(Object.prototype,d)&&!a.allowPrototypes)return;l.push(d)}for(var R=0;a.depth>0&&(r=i.exec(o))!==null&&R<a.depth;){if(R+=1,!a.plainObjects&&Ot.call(Object.prototype,r[1].slice(1,-1))&&!a.allowPrototypes)return;l.push(r[1])}return r&&l.push("["+o.slice(r.index)+"]"),wd(l,s,a,n)}},Gd=function(t){if(!t)return v;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var s=typeof t.charset>"u"?v.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?v.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:v.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:v.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:v.arrayLimit,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:v.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:v.comma,decoder:typeof t.decoder=="function"?t.decoder:v.decoder,delimiter:typeof t.delimiter=="string"||oe.isRegExp(t.delimiter)?t.delimiter:v.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:v.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:v.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:v.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:v.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:v.strictNullHandling}};Hs.exports=function(e,t){var s=Gd(t);if(e===""||e===null||typeof e>"u")return s.plainObjects?Object.create(null):{};for(var a=typeof e=="string"?Cd(e,s):e,n=s.plainObjects?Object.create(null):{},o=Object.keys(a),p=0;p<o.length;++p){var i=o[p],r=Ud(i,a[i],s,typeof e=="string");n=oe.merge(n,r,s)}return s.allowSparse===!0?n:oe.compact(n)}});var Fs=q((bl,Os)=>{"use strict";var Wd=_s(),Ld=Ms(),Sd=nt();Os.exports={formats:Sd,parse:Ld,stringify:Wd}});var Hd={};$t(Hd,{AlreadyExistsError:()=>De,BreakingChangesError:()=>Ne,Client:()=>Nt,ForbiddenError:()=>ve,InternalError:()=>Ie,InvalidDataFormatError:()=>Ue,InvalidIdentifierError:()=>Ge,InvalidJsonSchemaError:()=>we,InvalidPayloadError:()=>Ae,InvalidQueryError:()=>Qe,LimitExceededError:()=>Fe,MethodNotFoundError:()=>Be,PayloadTooLargeError:()=>Pe,PaymentRequiredError:()=>Me,QuotaExceededError:()=>Oe,RateLimitedError:()=>He,ReferenceConstraintError:()=>Le,ReferenceNotFoundError:()=>Ee,RelationConflictError:()=>We,ResourceLockedConflictError:()=>Se,ResourceNotFoundError:()=>Ce,RuntimeError:()=>_e,UnauthorizedError:()=>ke,UnknownError:()=>H,UnsupportedMediaTypeError:()=>Te,UploadFileError:()=>W,axios:()=>Md,axiosRetry:()=>yt,errorFrom:()=>Ve,isApiError:()=>ar});module.exports=gu(Hd);var Md=_(require("axios"));var yt={};$t(yt,{DEFAULT_OPTIONS:()=>rr,default:()=>gt,exponentialDelay:()=>er,isIdempotentRequestError:()=>dt,isNetworkError:()=>ct,isNetworkOrIdempotentRequestError:()=>lt,isRetryableError:()=>be,isSafeRequestError:()=>Zt,linearDelay:()=>tr,namespace:()=>he,retryAfter:()=>xe});var Yt=_(jt(),1),he="axios-retry";function ct(e){let t=["ERR_CANCELED","ECONNABORTED"];return e.response||!e.code||t.includes(e.code)?!1:(0,Yt.default)(e)}var Xt=["get","head","options"],mu=Xt.concat(["put","delete"]);function be(e){return e.code!=="ECONNABORTED"&&(!e.response||e.response.status===429||e.response.status>=500&&e.response.status<=599)}function Zt(e){return e.config?.method?be(e)&&Xt.indexOf(e.config.method)!==-1:!1}function dt(e){return e.config?.method?be(e)&&mu.indexOf(e.config.method)!==-1:!1}function lt(e){return ct(e)||dt(e)}function xe(e=void 0){let t=e?.response?.headers["retry-after"];if(!t)return 0;let s=(Number(t)||0)*1e3;return s===0&&(s=(new Date(t).valueOf()||0)-Date.now()),Math.max(0,s)}function Ru(e=0,t=void 0){return Math.max(0,xe(t))}function er(e=0,t=void 0,s=100){let a=2**e*s,n=Math.max(a,xe(t)),o=n*.2*Math.random();return n+o}function tr(e=100){return(t=0,s=void 0)=>{let a=t*e;return Math.max(a,xe(s))}}var rr={retries:3,retryCondition:lt,retryDelay:Ru,shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function qu(e,t){return{...rr,...t,...e[he]}}function Jt(e,t,s=!1){let a=qu(e,t||{});return a.retryCount=a.retryCount||0,(!a.lastRequestTime||s)&&(a.lastRequestTime=Date.now()),e[he]=a,a}function fu(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent}async function hu(e,t){let{retries:s,retryCondition:a}=e,n=(e.retryCount||0)<s&&a(t);if(typeof n=="object")try{return await n!==!1}catch{return!1}return n}async function bu(e,t,s,a){t.retryCount+=1;let{retryDelay:n,shouldResetTimeout:o,onRetry:p}=t,i=n(t.retryCount,s);if(fu(e,a),!o&&a.timeout&&t.lastRequestTime){let r=Date.now()-t.lastRequestTime,d=a.timeout-r-i;if(d<=0)return Promise.reject(s);a.timeout=d}return a.transformRequest=[r=>r],await p(t.retryCount,s,a),a.signal?.aborted?Promise.resolve(e(a)):new Promise(r=>{let d=()=>{clearTimeout(l),r(e(a))},l=setTimeout(()=>{r(e(a)),a.signal?.removeEventListener&&a.signal.removeEventListener("abort",d)},i);a.signal?.addEventListener&&a.signal.addEventListener("abort",d,{once:!0})})}async function xu(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}var D=(e,t)=>{let s=e.interceptors.request.use(n=>(Jt(n,t,!0),n[he]?.validateResponse&&(n.validateStatus=()=>!1),n)),a=e.interceptors.response.use(null,async n=>{let{config:o}=n;if(!o)return Promise.reject(n);let p=Jt(o,t);return n.response&&p.validateResponse?.(n.response)?n.response:await hu(p,n)?bu(e,p,n,o):(await xu(p,n),Promise.reject(n))});return{requestInterceptorId:s,responseInterceptorId:a}};D.isNetworkError=ct;D.isSafeRequestError=Zt;D.isIdempotentRequestError=dt;D.isNetworkOrIdempotentRequestError=lt;D.exponentialDelay=er;D.linearDelay=tr;D.isRetryableError=be;var gt=D;var sr=_(require("crypto"));var Iu={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},mt=typeof window<"u"&&typeof window.document<"u"?window.crypto:sr.default;mt.getRandomValues||(mt=Iu);var h=class extends Error{constructor(s,a,n,o,p,i){super(o);this.code=s;this.description=a;this.type=n;this.message=o;this.error=p;this.id=i;this.id||(this.id=h.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message}}static generateId(){let s=this.getPrefix(),a=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(mt.getRandomValues(new Uint8Array(n))).map(p=>p.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${a}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},ku=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,ar=e=>e instanceof h||ku(e)&&e.isApiError===!0,H=class extends h{constructor(t,s,a){super(500,"An unknown error occurred","Unknown",t,s,a)}},Ie=class extends h{constructor(t,s,a){super(500,"An internal error occurred","Internal",t,s,a)}},ke=class extends h{constructor(t,s,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,a)}},ve=class extends h{constructor(t,s,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,a)}},Pe=class extends h{constructor(t,s,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,a)}},Ae=class extends h{constructor(t,s,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,a)}},Te=class extends h{constructor(t,s,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,a)}},Be=class extends h{constructor(t,s,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,a)}},Ce=class extends h{constructor(t,s,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,a)}},we=class extends h{constructor(t,s,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,a)}},Ue=class extends h{constructor(t,s,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,a)}},Ge=class extends h{constructor(t,s,a){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,s,a)}},We=class extends h{constructor(t,s,a){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,s,a)}},Le=class extends h{constructor(t,s,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,a)}},Se=class extends h{constructor(t,s,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,a)}},Ee=class extends h{constructor(t,s,a){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,s,a)}},Qe=class extends h{constructor(t,s,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,a)}},_e=class extends h{constructor(t,s,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,a)}},De=class extends h{constructor(t,s,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,a)}},He=class extends h{constructor(t,s,a){super(429,"The request has been rate limited.","RateLimited",t,s,a)}},Me=class extends h{constructor(t,s,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,a)}},Oe=class extends h{constructor(t,s,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,a)}},Fe=class extends h{constructor(t,s,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,a)}},Ne=class extends h{constructor(t,s,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,a)}},vu={Unknown:H,Internal:Ie,Unauthorized:ke,Forbidden:ve,PayloadTooLarge:Pe,InvalidPayload:Ae,UnsupportedMediaType:Te,MethodNotFound:Be,ResourceNotFound:Ce,InvalidJsonSchema:we,InvalidDataFormat:Ue,InvalidIdentifier:Ge,RelationConflict:We,ReferenceConstraint:Le,ResourceLockedConflict:Se,ReferenceNotFound:Ee,InvalidQuery:Qe,Runtime:_e,AlreadyExists:De,RateLimited:He,PaymentRequired:Me,QuotaExceeded:Oe,LimitExceeded:Fe,BreakingChanges:Ne},Ve=e=>ar(e)?e:e instanceof Error?new H(e.message,e):typeof e=="string"?new H(e):Pu(e);function Pu(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=vu[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN"):new H(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new H("An invalid error occurred: "+JSON.stringify(e))}var W=class extends Error{constructor(s,a,n){super(s);this.innerError=a;this.file=n;this.name="FileUploadError"}};var pt=_(require("axios"));var Ft=require("browser-or-node"),au=_(require("http")),nu=_(require("https"));var de=require("browser-or-node"),Tu="https://api.botpress.cloud",Bu=6e4,Cu="BP_API_URL",wu="BP_BOT_ID",Uu="BP_INTEGRATION_ID",Gu="BP_WORKSPACE_ID",Wu="BP_TOKEN";function nr(e){let t=Lu(e),s={};t.workspaceId&&(s["x-workspace-id"]=t.workspaceId),t.botId&&(s["x-bot-id"]=t.botId),t.integrationId&&(s["x-integration-id"]=t.integrationId),t.token&&(s.Authorization=`Bearer ${t.token}`),s={...s,...t.headers};let a=t.apiUrl??Tu,n=t.timeout??Bu;return{apiUrl:a,timeout:n,withCredentials:de.isBrowser,headers:s}}function Lu(e){return de.isBrowser?e:de.isNode?Su(e):e}function Su(e){let t={...e,apiUrl:e.apiUrl??process.env[Cu],botId:e.botId??process.env[wu],integrationId:e.integrationId??process.env[Uu],workspaceId:e.workspaceId??process.env[Gu]},s=t.token??process.env[Wu];return s&&(t.token=s),t}var su=_(require("axios"));var Ns=_(Fs()),Ed=e=>e[1]!==void 0,u=e=>{let{method:t,path:s,query:a,headers:n,body:o}=e,p=Object.entries(n).filter(Ed),i=Object.fromEntries(p),r=Ns.default.stringify(a,{encode:!0,arrayFormat:"repeat",allowDots:!0}),d=r?[s,r].join("?"):s;return{method:t,url:d,headers:i,data:o}};var Vs=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var Ks=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var js=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName},params:{},body:{}});var Ys=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var Zs=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var ta=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sa=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var na=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var ia=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var ua=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var da=e=>({path:"/v1/chat/events",headers:{},query:{},params:{},body:{type:e.type,payload:e.payload,schedule:e.schedule,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId}});var ga=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ma=e=>({path:"/v1/chat/events",headers:{},query:{nextToken:e.nextToken,type:e.type,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId,status:e.status},params:{},body:{}});var qa=e=>({path:"/v1/chat/messages",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule}});var ha=e=>({path:"/v1/chat/messages/get-or-create",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule}});var xa=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ka=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags}});var Pa=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Ta=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ca=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var Ua=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wa=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Sa=e=>({path:"/v1/chat/users/get-or-create",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var Qa=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,name:e.name,pictureUrl:e.pictureUrl}});var Da=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ma=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/expiry`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{expiry:e.expiry}});var Fa=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{}});var Va=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var Ka=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/get-or-set`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var ja=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload}});var Ya=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var Za=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier}});var tn=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sn=e=>({path:"/v1/chat/tasks",headers:{},query:{},params:{},body:{title:e.title,description:e.description,type:e.type,data:e.data,parentTaskId:e.parentTaskId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags}});var nn=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{title:e.title,description:e.description,data:e.data,timeoutAt:e.timeoutAt,status:e.status,tags:e.tags}});var pn=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cn=e=>({path:"/v1/chat/tasks",headers:{},query:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentTaskId:e.parentTaskId,status:e.status,type:e.type},params:{},body:{}});var ln=e=>({path:"/v1/chat/workflows",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId}});var yn=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Rn=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{output:e.output,timeoutAt:e.timeoutAt,status:e.status,failureReason:e.failureReason,tags:e.tags,userId:e.userId,eventId:e.eventId}});var fn=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var bn=e=>({path:"/v1/chat/workflows",headers:{},query:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentWorkflowId:e.parentWorkflowId,statuses:e.statuses,name:e.name},params:{},body:{}});var In=e=>({path:"/v1/chat/workflows/get-or-create",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId}});var vn=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var An=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var Bn=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var wn=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var Gn=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var Ln=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var En=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _n=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Hn=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var On=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Nn=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var $n=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var zn=e=>({path:"/v1/admin/bots",headers:{},query:{},params:{},body:{states:e.states,events:e.events,recurringEvents:e.recurringEvents,subscriptions:e.subscriptions,actions:e.actions,configuration:e.configuration,user:e.user,conversation:e.conversation,message:e.message,code:e.code,name:e.name,medias:e.medias,url:e.url,dev:e.dev}});var Jn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,blocked:e.blocked,alwaysAlive:e.alwaysAlive,user:e.user,message:e.message,conversation:e.conversation,events:e.events,actions:e.actions,states:e.states,recurringEvents:e.recurringEvents,integrations:e.integrations,subscriptions:e.subscriptions,code:e.code,name:e.name,medias:e.medias}});var Xn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var eo=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var ro=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ao=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var oo=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,nextToken:e.nextToken},params:{id:e.id},body:{}});var po=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var co=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var go=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var mo=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var qo=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var ho=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var xo=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var ko=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var Po=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var To=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var Co=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/payment-method`,headers:{},query:{},params:{id:e.id},body:{stripePaymentMethodId:e.stripePaymentMethodId}});var Uo=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var Wo=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var So=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var Qo=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var Do=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var Mo=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Fo=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Vo=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages/by-bot`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Ko=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var jo=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Yo=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var Zo=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,spendingLimit:e.spendingLimit,about:e.about,profilePicture:e.profilePicture,contactEmail:e.contactEmail,website:e.website,socialAccounts:e.socialAccounts,isPublic:e.isPublic,handle:e.handle}});var ti=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var si=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var ni=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var ii=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ui=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var di=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var gi=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var mi=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var qi=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var hi=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var xi=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var ki=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var Pi=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ti=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var Ci=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,channels:e.channels,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public}});var Ui=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version,dev:e.dev},params:{},body:{}});var Wi=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Si=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,nextToken:e.nextToken},params:{id:e.id},body:{}});var Qi=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Di=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Mi=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var Fi=e=>({path:"/v1/admin/interfaces",headers:{},query:{},params:{},body:{name:e.name,version:e.version,entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate}});var Vi=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ki=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var ji=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate}});var Yi=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Zi=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var tp=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var sp=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var np=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var ip=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/activity`,headers:{},query:{type:e.type,nextToken:e.nextToken},params:{id:e.id},body:{}});var up=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var dp=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var gp=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var mp=e=>({path:"/v1/files",headers:{},query:{},params:{},body:{key:e.key,tags:e.tags,size:e.size,index:e.index,accessPolicies:e.accessPolicies,contentType:e.contentType,expiresAt:e.expiresAt,publicContentImmediatelyAccessible:e.publicContentImmediatelyAccessible}});var qp=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var hp=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,tags:e.tags,ids:e.ids},params:{},body:{}});var xp=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var kp=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,accessPolicies:e.accessPolicies,expiresAt:e.expiresAt}});var Pp=e=>({path:"/v1/files/search",headers:{},query:{tags:e.tags,query:e.query,contextDepth:e.contextDepth,limit:e.limit,consolidate:e.consolidate,includeBreadcrumb:e.includeBreadcrumb},params:{},body:{}});var Tp=e=>({path:`/v1/files/${encodeURIComponent(e.fileId)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{fileId:e.fileId},body:{}});var Cp=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var Up=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Wp=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{factor:e.factor,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var Sp=e=>({path:"/v1/tables",headers:{},query:{},params:{},body:{name:e.name,factor:e.factor,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var Qp=e=>({path:`/v1/tables/${encodeURIComponent(e.sourceTableId)}/duplicate`,headers:{},query:{},params:{sourceTableId:e.sourceTableId},body:{tableName:e.tableName,schemaOnly:e.schemaOnly,factor:e.factor}});var Dp=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{name:e.name,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var Mp=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var Fp=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Vp=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var Kp=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/find`,headers:{},query:{},params:{table:e.table},body:{limit:e.limit,offset:e.offset,filter:e.filter,group:e.group,search:e.search,orderBy:e.orderBy,orderDirection:e.orderDirection}});var jp=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Yp=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/delete`,headers:{},query:{},params:{table:e.table},body:{ids:e.ids,filter:e.filter,deleteAllRows:e.deleteAllRows}});var Zp=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var tu=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/upsert`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,keyColumn:e.keyColumn,waitComputed:e.waitComputed}});var ot=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}createConversation=async t=>{let{path:s,headers:a,query:n,body:o}=Vs(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getConversation=async t=>{let{path:s,headers:a,query:n,body:o}=Ks(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listConversations=async t=>{let{path:s,headers:a,query:n,body:o}=js(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateConversation=async t=>{let{path:s,headers:a,query:n,body:o}=Ys(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateConversation=async t=>{let{path:s,headers:a,query:n,body:o}=Zs(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteConversation=async t=>{let{path:s,headers:a,query:n,body:o}=ta(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listParticipants=async t=>{let{path:s,headers:a,query:n,body:o}=sa(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};addParticipant=async t=>{let{path:s,headers:a,query:n,body:o}=na(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getParticipant=async t=>{let{path:s,headers:a,query:n,body:o}=ia(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};removeParticipant=async t=>{let{path:s,headers:a,query:n,body:o}=ua(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createEvent=async t=>{let{path:s,headers:a,query:n,body:o}=da(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getEvent=async t=>{let{path:s,headers:a,query:n,body:o}=ga(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listEvents=async t=>{let{path:s,headers:a,query:n,body:o}=ma(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createMessage=async t=>{let{path:s,headers:a,query:n,body:o}=qa(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateMessage=async t=>{let{path:s,headers:a,query:n,body:o}=ha(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getMessage=async t=>{let{path:s,headers:a,query:n,body:o}=xa(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateMessage=async t=>{let{path:s,headers:a,query:n,body:o}=ka(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listMessages=async t=>{let{path:s,headers:a,query:n,body:o}=Pa(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteMessage=async t=>{let{path:s,headers:a,query:n,body:o}=Ta(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createUser=async t=>{let{path:s,headers:a,query:n,body:o}=Ca(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getUser=async t=>{let{path:s,headers:a,query:n,body:o}=Ua(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listUsers=async t=>{let{path:s,headers:a,query:n,body:o}=Wa(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateUser=async t=>{let{path:s,headers:a,query:n,body:o}=Sa(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateUser=async t=>{let{path:s,headers:a,query:n,body:o}=Qa(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteUser=async t=>{let{path:s,headers:a,query:n,body:o}=Da(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};setStateExpiry=async t=>{let{path:s,headers:a,query:n,body:o}=Ma(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getState=async t=>{let{path:s,headers:a,query:n,body:o}=Fa(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};setState=async t=>{let{path:s,headers:a,query:n,body:o}=Va(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrSetState=async t=>{let{path:s,headers:a,query:n,body:o}=Ka(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};patchState=async t=>{let{path:s,headers:a,query:n,body:o}=ja(t),i=(this.props.toAxiosRequest??u)({method:"patch",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};callAction=async t=>{let{path:s,headers:a,query:n,body:o}=Ya(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};configureIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=Za(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getTask=async t=>{let{path:s,headers:a,query:n,body:o}=tn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createTask=async t=>{let{path:s,headers:a,query:n,body:o}=sn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateTask=async t=>{let{path:s,headers:a,query:n,body:o}=nn(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteTask=async t=>{let{path:s,headers:a,query:n,body:o}=pn(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listTasks=async t=>{let{path:s,headers:a,query:n,body:o}=cn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createWorkflow=async t=>{let{path:s,headers:a,query:n,body:o}=ln(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkflow=async t=>{let{path:s,headers:a,query:n,body:o}=yn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateWorkflow=async t=>{let{path:s,headers:a,query:n,body:o}=Rn(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteWorkflow=async t=>{let{path:s,headers:a,query:n,body:o}=fn(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkflows=async t=>{let{path:s,headers:a,query:n,body:o}=bn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateWorkflow=async t=>{let{path:s,headers:a,query:n,body:o}=In(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};trackAnalytics=async t=>{let{path:s,headers:a,query:n,body:o}=vn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};runVrl=async t=>{let{path:s,headers:a,query:n,body:o}=An(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAccount=async t=>{let{path:s,headers:a,query:n,body:o}=Bn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateAccount=async t=>{let{path:s,headers:a,query:n,body:o}=wn(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listPersonalAccessTokens=async t=>{let{path:s,headers:a,query:n,body:o}=Gn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createPersonalAccessToken=async t=>{let{path:s,headers:a,query:n,body:o}=Ln(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deletePersonalAccessToken=async t=>{let{path:s,headers:a,query:n,body:o}=En(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};setAccountPreference=async t=>{let{path:s,headers:a,query:n,body:o}=_n(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAccountPreference=async t=>{let{path:s,headers:a,query:n,body:o}=Hn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listPublicIntegrations=async t=>{let{path:s,headers:a,query:n,body:o}=On(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPublicIntegrationById=async t=>{let{path:s,headers:a,query:n,body:o}=Nn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPublicIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=$n(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createBot=async t=>{let{path:s,headers:a,query:n,body:o}=zn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateBot=async t=>{let{path:s,headers:a,query:n,body:o}=Jn(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};transferBot=async t=>{let{path:s,headers:a,query:n,body:o}=Xn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBots=async t=>{let{path:s,headers:a,query:n,body:o}=eo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBot=async t=>{let{path:s,headers:a,query:n,body:o}=ro(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteBot=async t=>{let{path:s,headers:a,query:n,body:o}=ao(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotLogs=async t=>{let{path:s,headers:a,query:n,body:o}=oo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotWebchat=async t=>{let{path:s,headers:a,query:n,body:o}=po(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotAnalytics=async t=>{let{path:s,headers:a,query:n,body:o}=co(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotIssue=async t=>{let{path:s,headers:a,query:n,body:o}=go(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBotIssues=async t=>{let{path:s,headers:a,query:n,body:o}=mo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteBotIssue=async t=>{let{path:s,headers:a,query:n,body:o}=qo(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBotIssueEvents=async t=>{let{path:s,headers:a,query:n,body:o}=ho(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBotVersions=async t=>{let{path:s,headers:a,query:n,body:o}=xo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotVersion=async t=>{let{path:s,headers:a,query:n,body:o}=ko(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createBotVersion=async t=>{let{path:s,headers:a,query:n,body:o}=Po(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deployBotVersion=async t=>{let{path:s,headers:a,query:n,body:o}=To(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};setWorkspacePaymentMethod=async t=>{let{path:s,headers:a,query:n,body:o}=Co(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceInvoices=async t=>{let{path:s,headers:a,query:n,body:o}=Uo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getUpcomingInvoice=async t=>{let{path:s,headers:a,query:n,body:o}=Wo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:s,headers:a,query:n,body:o}=So(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=Qo(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPublicWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=Do(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=Mo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceUsages=async t=>{let{path:s,headers:a,query:n,body:o}=Fo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};breakDownWorkspaceUsageByBot=async t=>{let{path:s,headers:a,query:n,body:o}=Vo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:s,headers:a,query:n,body:o}=Ko(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkspaceQuota=async t=>{let{path:s,headers:a,query:n,body:o}=jo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceQuotas=async t=>{let{path:s,headers:a,query:n,body:o}=Yo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=Zo(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};checkHandleAvailability=async t=>{let{path:s,headers:a,query:n,body:o}=ti(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaces=async t=>{let{path:s,headers:a,query:n,body:o}=si(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listPublicWorkspaces=async t=>{let{path:s,headers:a,query:n,body:o}=ni(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=ii(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAuditRecords=async t=>{let{path:s,headers:a,query:n,body:o}=ui(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceMembers=async t=>{let{path:s,headers:a,query:n,body:o}=di(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkspaceMember=async t=>{let{path:s,headers:a,query:n,body:o}=gi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteWorkspaceMember=async t=>{let{path:s,headers:a,query:n,body:o}=mi(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createWorkspaceMember=async t=>{let{path:s,headers:a,query:n,body:o}=qi(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateWorkspaceMember=async t=>{let{path:s,headers:a,query:n,body:o}=hi(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listIntegrationApiKeys=async t=>{let{path:s,headers:a,query:n,body:o}=xi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createIntegrationApiKey=async t=>{let{path:s,headers:a,query:n,body:o}=ki(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteIntegrationApiKey=async t=>{let{path:s,headers:a,query:n,body:o}=Pi(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=Ti(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=Ci(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listIntegrations=async t=>{let{path:s,headers:a,query:n,body:o}=Ui(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=Wi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getIntegrationLogs=async t=>{let{path:s,headers:a,query:n,body:o}=Si(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getIntegrationByName=async t=>{let{path:s,headers:a,query:n,body:o}=Qi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=Di(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};requestIntegrationVerification=async t=>{let{path:s,headers:a,query:n,body:o}=Mi(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createInterface=async t=>{let{path:s,headers:a,query:n,body:o}=Fi(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getInterface=async t=>{let{path:s,headers:a,query:n,body:o}=Vi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getInterfaceByName=async t=>{let{path:s,headers:a,query:n,body:o}=Ki(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateInterface=async t=>{let{path:s,headers:a,query:n,body:o}=ji(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteInterface=async t=>{let{path:s,headers:a,query:n,body:o}=Yi(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listInterfaces=async t=>{let{path:s,headers:a,query:n,body:o}=Zi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getUsage=async t=>{let{path:s,headers:a,query:n,body:o}=tp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getMultipleUsages=async t=>{let{path:s,headers:a,query:n,body:o}=sp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listUsageHistory=async t=>{let{path:s,headers:a,query:n,body:o}=np(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listUsageActivity=async t=>{let{path:s,headers:a,query:n,body:o}=ip(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};changeAISpendQuota=async t=>{let{path:s,headers:a,query:n,body:o}=up(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listActivities=async t=>{let{path:s,headers:a,query:n,body:o}=dp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};introspect=async t=>{let{path:s,headers:a,query:n,body:o}=gp(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};upsertFile=async t=>{let{path:s,headers:a,query:n,body:o}=mp(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteFile=async t=>{let{path:s,headers:a,query:n,body:o}=qp(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listFiles=async t=>{let{path:s,headers:a,query:n,body:o}=hp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getFile=async t=>{let{path:s,headers:a,query:n,body:o}=xp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateFileMetadata=async t=>{let{path:s,headers:a,query:n,body:o}=kp(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};searchFiles=async t=>{let{path:s,headers:a,query:n,body:o}=Pp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listFilePassages=async t=>{let{path:s,headers:a,query:n,body:o}=Tp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listTables=async t=>{let{path:s,headers:a,query:n,body:o}=Cp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getTable=async t=>{let{path:s,headers:a,query:n,body:o}=Up(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateTable=async t=>{let{path:s,headers:a,query:n,body:o}=Wp(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createTable=async t=>{let{path:s,headers:a,query:n,body:o}=Sp(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};duplicateTable=async t=>{let{path:s,headers:a,query:n,body:o}=Qp(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateTable=async t=>{let{path:s,headers:a,query:n,body:o}=Dp(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};renameTableColumn=async t=>{let{path:s,headers:a,query:n,body:o}=Mp(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteTable=async t=>{let{path:s,headers:a,query:n,body:o}=Fp(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getTableRow=async t=>{let{path:s,headers:a,query:n,body:o}=Vp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};findTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=Kp(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=jp(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=Yp(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=Zp(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};upsertTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=tu(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})}};function c(e){return su.default.isAxiosError(e)&&e.response?.data?Ve(e.response.data):Ve(e)}var x=class{constructor(t){this._list=t}async*[Symbol.asyncIterator](){let t;do{let{items:s,meta:a}=await this._list({nextToken:t});t=a.nextToken;for(let n of s)yield n}while(t)}async collect(t={}){let s=t.limit??Number.POSITIVE_INFINITY,a=[],n=0;for await(let o of this)if(a.push(o),n++,n>=s)break;return a}},it=class{constructor(t){this._client=t}conversations=t=>new x(({nextToken:s})=>this._client.listConversations({nextToken:s,...t}).then(a=>({...a,items:a.conversations})));participants=t=>new x(({nextToken:s})=>this._client.listParticipants({nextToken:s,...t}).then(a=>({...a,items:a.participants})));events=t=>new x(({nextToken:s})=>this._client.listEvents({nextToken:s,...t}).then(a=>({...a,items:a.events})));messages=t=>new x(({nextToken:s})=>this._client.listMessages({nextToken:s,...t}).then(a=>({...a,items:a.messages})));users=t=>new x(({nextToken:s})=>this._client.listUsers({nextToken:s,...t}).then(a=>({...a,items:a.users})));tasks=t=>new x(({nextToken:s})=>this._client.listTasks({nextToken:s,...t}).then(a=>({...a,items:a.tasks})));publicIntegrations=t=>new x(({nextToken:s})=>this._client.listPublicIntegrations({nextToken:s,...t}).then(a=>({...a,items:a.integrations})));bots=t=>new x(({nextToken:s})=>this._client.listBots({nextToken:s,...t}).then(a=>({...a,items:a.bots})));botIssues=t=>new x(({nextToken:s})=>this._client.listBotIssues({nextToken:s,...t}).then(a=>({...a,items:a.issues})));workspaces=t=>new x(({nextToken:s})=>this._client.listWorkspaces({nextToken:s,...t}).then(a=>({...a,items:a.workspaces})));publicWorkspaces=t=>new x(({nextToken:s})=>this._client.listPublicWorkspaces({nextToken:s,...t}).then(a=>({...a,items:a.workspaces})));workspaceMembers=t=>new x(({nextToken:s})=>this._client.listWorkspaceMembers({nextToken:s,...t}).then(a=>({...a,items:a.members})));integrations=t=>new x(({nextToken:s})=>this._client.listIntegrations({nextToken:s,...t}).then(a=>({...a,items:a.integrations})));interfaces=t=>new x(({nextToken:s})=>this._client.listInterfaces({nextToken:s,...t}).then(a=>({...a,items:a.interfaces})));activities=t=>new x(({nextToken:s})=>this._client.listActivities({nextToken:s,...t}).then(a=>({...a,items:a.activities})));files=t=>new x(({nextToken:s})=>this._client.listFiles({nextToken:s,...t}).then(a=>({...a,items:a.files})));filePassages=t=>new x(({nextToken:s})=>this._client.listFilePassages({nextToken:s,...t}).then(a=>({...a,items:a.passages})))};var ou=100*1024*1024,_d=ou,Dd=ou,Nt=class extends ot{config;constructor(t={}){let s=nr(t),{apiUrl:a,headers:n,withCredentials:o,timeout:p}=s,i=pt.default.create({baseURL:a,headers:n,withCredentials:o,timeout:p,maxBodyLength:_d,maxContentLength:Dd,httpAgent:Ft.isNode?new au.default.Agent({keepAlive:!0}):void 0,httpsAgent:Ft.isNode?new nu.default.Agent({keepAlive:!0}):void 0});super(i),t.retry&&gt(i,t.retry),this.config=s}get list(){return new it(this)}uploadFile=async({key:t,index:s,tags:a,contentType:n,accessPolicies:o,content:p,url:i,expiresAt:r,publicContentImmediatelyAccessible:d})=>{if(i&&p)throw new W("Cannot provide both content and URL, please provide only one of them");if(i&&(p=await pt.default.get(i,{responseType:"arraybuffer"}).then(y=>y.data).catch(y=>{throw new W(`Failed to download file from provided URL: ${y.message}`,y)})),!p)throw new W("No content was provided for the file");let l,R;if(typeof p=="string"){let I=new TextEncoder().encode(p);l=I,R=I.byteLength}else if(p instanceof Uint8Array)l=p,R=l.byteLength;else if(p instanceof ArrayBuffer)l=p,R=l.byteLength;else if(p instanceof Blob)l=p,R=p.size;else throw new W("The provided content is not supported");let{file:g}=await this.upsertFile({key:t,tags:a,index:s,accessPolicies:o,contentType:n,size:R,expiresAt:r,publicContentImmediatelyAccessible:d}),b={"Content-Type":g.contentType};d&&(b["x-amz-tagging"]="public=true");try{await pt.default.put(g.uploadUrl,l,{maxBodyLength:1/0,headers:b})}catch(y){throw new W(`Failed to upload file: ${y.message}`,y,g)}return{file:{...g,size:R}}}};0&&(module.exports={AlreadyExistsError,BreakingChangesError,Client,ForbiddenError,InternalError,InvalidDataFormatError,InvalidIdentifierError,InvalidJsonSchemaError,InvalidPayloadError,InvalidQueryError,LimitExceededError,MethodNotFoundError,PayloadTooLargeError,PaymentRequiredError,QuotaExceededError,RateLimitedError,ReferenceConstraintError,ReferenceNotFoundError,RelationConflictError,ResourceLockedConflictError,ResourceNotFoundError,RuntimeError,UnauthorizedError,UnknownError,UnsupportedMediaTypeError,UploadFileError,axios,axiosRetry,errorFrom,isApiError});
4
+ `+t.prev}function et(e,t){var s=wt(e),a=[];if(s){a.length=e.length;for(var n=0;n<e.length;n++)a[n]=M(e,n)?t(e[n],e):""}var o=typeof Pt=="function"?Pt(e):[],p;if(ae){p={};for(var i=0;i<o.length;i++)p["$"+o[i]]=o[i]}for(var r in e)M(e,r)&&(s&&String(Number(r))===r&&r<e.length||ae&&p["$"+r]instanceof Symbol||(bs.call(/[^\w$]/,r)?a.push(t(r,e)+": "+t(e[r],e)):a.push(r+": "+t(e[r],e))));if(typeof Pt=="function")for(var d=0;d<o.length;d++)xs.call(e,o[d])&&a.push("["+t(o[d])+"]: "+t(e[o[d]],e));return a}});var Cs=q((gl,Bs)=>{"use strict";var St=z(),ne=ns(),$c=Ts(),Kc=St("%TypeError%"),st=St("%WeakMap%",!0),at=St("%Map%",!0),zc=ne("WeakMap.prototype.get",!0),jc=ne("WeakMap.prototype.set",!0),Jc=ne("WeakMap.prototype.has",!0),Yc=ne("Map.prototype.get",!0),Xc=ne("Map.prototype.set",!0),Zc=ne("Map.prototype.has",!0),Et=function(e,t){for(var s=e,a;(a=s.next)!==null;s=a)if(a.key===t)return s.next=a.next,a.next=e.next,e.next=a,a},ed=function(e,t){var s=Et(e,t);return s&&s.value},td=function(e,t,s){var a=Et(e,t);a?a.value=s:e.next={key:t,next:e.next,value:s}},rd=function(e,t){return!!Et(e,t)};Bs.exports=function(){var t,s,a,n={assert:function(o){if(!n.has(o))throw new Kc("Side channel does not contain "+$c(o))},get:function(o){if(st&&o&&(typeof o=="object"||typeof o=="function")){if(t)return zc(t,o)}else if(at){if(s)return Yc(s,o)}else if(a)return ed(a,o)},has:function(o){if(st&&o&&(typeof o=="object"||typeof o=="function")){if(t)return Jc(t,o)}else if(at){if(s)return Zc(s,o)}else if(a)return rd(a,o);return!1},set:function(o,p){st&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new st),jc(t,o,p)):at?(s||(s=new at),Xc(s,o,p)):(a||(a={key:{},next:null}),td(a,o,p))}};return n}});var nt=q((yl,ws)=>{"use strict";var sd=String.prototype.replace,ad=/%20/g,Qt={RFC1738:"RFC1738",RFC3986:"RFC3986"};ws.exports={default:Qt.RFC3986,formatters:{RFC1738:function(e){return sd.call(e,ad,"+")},RFC3986:function(e){return String(e)}},RFC1738:Qt.RFC1738,RFC3986:Qt.RFC3986}});var Dt=q((ml,Gs)=>{"use strict";var nd=nt(),_t=Object.prototype.hasOwnProperty,j=Array.isArray,C=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),od=function(t){for(;t.length>1;){var s=t.pop(),a=s.obj[s.prop];if(j(a)){for(var n=[],o=0;o<a.length;++o)typeof a[o]<"u"&&n.push(a[o]);s.obj[s.prop]=n}}},Us=function(t,s){for(var a=s&&s.plainObjects?Object.create(null):{},n=0;n<t.length;++n)typeof t[n]<"u"&&(a[n]=t[n]);return a},id=function e(t,s,a){if(!s)return t;if(typeof s!="object"){if(j(t))t.push(s);else if(t&&typeof t=="object")(a&&(a.plainObjects||a.allowPrototypes)||!_t.call(Object.prototype,s))&&(t[s]=!0);else return[t,s];return t}if(!t||typeof t!="object")return[t].concat(s);var n=t;return j(t)&&!j(s)&&(n=Us(t,a)),j(t)&&j(s)?(s.forEach(function(o,p){if(_t.call(t,p)){var i=t[p];i&&typeof i=="object"&&o&&typeof o=="object"?t[p]=e(i,o,a):t.push(o)}else t[p]=o}),t):Object.keys(s).reduce(function(o,p){var i=s[p];return _t.call(o,p)?o[p]=e(o[p],i,a):o[p]=i,o},n)},pd=function(t,s){return Object.keys(s).reduce(function(a,n){return a[n]=s[n],a},t)},ud=function(e,t,s){var a=e.replace(/\+/g," ");if(s==="iso-8859-1")return a.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(a)}catch{return a}},cd=function(t,s,a,n,o){if(t.length===0)return t;var p=t;if(typeof t=="symbol"?p=Symbol.prototype.toString.call(t):typeof t!="string"&&(p=String(t)),a==="iso-8859-1")return escape(p).replace(/%u[0-9a-f]{4}/gi,function(l){return"%26%23"+parseInt(l.slice(2),16)+"%3B"});for(var i="",r=0;r<p.length;++r){var d=p.charCodeAt(r);if(d===45||d===46||d===95||d===126||d>=48&&d<=57||d>=65&&d<=90||d>=97&&d<=122||o===nd.RFC1738&&(d===40||d===41)){i+=p.charAt(r);continue}if(d<128){i=i+C[d];continue}if(d<2048){i=i+(C[192|d>>6]+C[128|d&63]);continue}if(d<55296||d>=57344){i=i+(C[224|d>>12]+C[128|d>>6&63]+C[128|d&63]);continue}r+=1,d=65536+((d&1023)<<10|p.charCodeAt(r)&1023),i+=C[240|d>>18]+C[128|d>>12&63]+C[128|d>>6&63]+C[128|d&63]}return i},dd=function(t){for(var s=[{obj:{o:t},prop:"o"}],a=[],n=0;n<s.length;++n)for(var o=s[n],p=o.obj[o.prop],i=Object.keys(p),r=0;r<i.length;++r){var d=i[r],l=p[d];typeof l=="object"&&l!==null&&a.indexOf(l)===-1&&(s.push({obj:p,prop:d}),a.push(l))}return od(s),t},ld=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},gd=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},yd=function(t,s){return[].concat(t,s)},md=function(t,s){if(j(t)){for(var a=[],n=0;n<t.length;n+=1)a.push(s(t[n]));return a}return s(t)};Gs.exports={arrayToObject:Us,assign:pd,combine:yd,compact:dd,decode:ud,encode:cd,isBuffer:gd,isRegExp:ld,maybeMap:md,merge:id}});var _s=q((Rl,Qs)=>{"use strict";var Ss=Cs(),Mt=Dt(),qe=nt(),Rd=Object.prototype.hasOwnProperty,Ws={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,s){return t+"["+s+"]"},repeat:function(t){return t}},L=Array.isArray,qd=String.prototype.split,fd=Array.prototype.push,Es=function(e,t){fd.apply(e,L(t)?t:[t])},hd=Date.prototype.toISOString,Ls=qe.default,P={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Mt.encode,encodeValuesOnly:!1,format:Ls,formatter:qe.formatters[Ls],indices:!1,serializeDate:function(t){return hd.call(t)},skipNulls:!1,strictNullHandling:!1},bd=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Ht={},xd=function e(t,s,a,n,o,p,i,r,d,l,R,g,b,y,I,w){for(var f=t,U=w,S=0,J=!1;(U=U.get(Ht))!==void 0&&!J;){var ie=U.get(t);if(S+=1,typeof ie<"u"){if(ie===S)throw new RangeError("Cyclic object value");J=!0}typeof U.get(Ht)>"u"&&(S=0)}if(typeof r=="function"?f=r(s,f):f instanceof Date?f=R(f):a==="comma"&&L(f)&&(f=Mt.maybeMap(f,function(ut){return ut instanceof Date?R(ut):ut})),f===null){if(o)return i&&!y?i(s,P.encoder,I,"key",g):s;f=""}if(bd(f)||Mt.isBuffer(f)){if(i){var pe=y?s:i(s,P.encoder,I,"key",g);if(a==="comma"&&y){for(var N=qd.call(String(f),","),ue="",E=0;E<N.length;++E)ue+=(E===0?"":",")+b(i(N[E],P.encoder,I,"value",g));return[b(pe)+(n&&L(f)&&N.length===1?"[]":"")+"="+ue]}return[b(pe)+"="+b(i(f,P.encoder,I,"value",g))]}return[b(s)+"="+b(String(f))]}var Y=[];if(typeof f>"u")return Y;var V;if(a==="comma"&&L(f))V=[{value:f.length>0?f.join(",")||null:void 0}];else if(L(r))V=r;else{var X=Object.keys(f);V=d?X.sort(d):X}for(var T=n&&L(f)&&f.length===1?s+"[]":s,Q=0;Q<V.length;++Q){var G=V[Q],ce=typeof G=="object"&&typeof G.value<"u"?G.value:f[G];if(!(p&&ce===null)){var nu=L(f)?typeof a=="function"?a(T,G):T:T+(l?"."+G:"["+G+"]");w.set(t,S);var Vt=Ss();Vt.set(Ht,w),Es(Y,e(ce,nu,a,n,o,p,i,r,d,l,R,g,b,y,I,Vt))}}return Y},Id=function(t){if(!t)return P;if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var s=t.charset||P.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var a=qe.default;if(typeof t.format<"u"){if(!Rd.call(qe.formatters,t.format))throw new TypeError("Unknown format option provided.");a=t.format}var n=qe.formatters[a],o=P.filter;return(typeof t.filter=="function"||L(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:P.addQueryPrefix,allowDots:typeof t.allowDots>"u"?P.allowDots:!!t.allowDots,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:P.charsetSentinel,delimiter:typeof t.delimiter>"u"?P.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:P.encode,encoder:typeof t.encoder=="function"?t.encoder:P.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:P.encodeValuesOnly,filter:o,format:a,formatter:n,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:P.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:P.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:P.strictNullHandling}};Qs.exports=function(e,t){var s=e,a=Id(t),n,o;typeof a.filter=="function"?(o=a.filter,s=o("",s)):L(a.filter)&&(o=a.filter,n=o);var p=[];if(typeof s!="object"||s===null)return"";var i;t&&t.arrayFormat in Ws?i=t.arrayFormat:t&&"indices"in t?i=t.indices?"indices":"repeat":i="indices";var r=Ws[i];if(t&&"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var d=r==="comma"&&t&&t.commaRoundTrip;n||(n=Object.keys(s)),a.sort&&n.sort(a.sort);for(var l=Ss(),R=0;R<n.length;++R){var g=n[R];a.skipNulls&&s[g]===null||Es(p,xd(s[g],g,r,d,a.strictNullHandling,a.skipNulls,a.encode?a.encoder:null,a.filter,a.sort,a.allowDots,a.serializeDate,a.format,a.formatter,a.encodeValuesOnly,a.charset,l))}var b=p.join(a.delimiter),y=a.addQueryPrefix===!0?"?":"";return a.charsetSentinel&&(a.charset==="iso-8859-1"?y+="utf8=%26%2310003%3B&":y+="utf8=%E2%9C%93&"),b.length>0?y+b:""}});var Ms=q((ql,Hs)=>{"use strict";var oe=Dt(),Ot=Object.prototype.hasOwnProperty,kd=Array.isArray,v={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:oe.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},vd=function(e){return e.replace(/&#(\d+);/g,function(t,s){return String.fromCharCode(parseInt(s,10))})},Ds=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Pd="utf8=%26%2310003%3B",Ad="utf8=%E2%9C%93",Td=function(t,s){var a={},n=s.ignoreQueryPrefix?t.replace(/^\?/,""):t,o=s.parameterLimit===1/0?void 0:s.parameterLimit,p=n.split(s.delimiter,o),i=-1,r,d=s.charset;if(s.charsetSentinel)for(r=0;r<p.length;++r)p[r].indexOf("utf8=")===0&&(p[r]===Ad?d="utf-8":p[r]===Pd&&(d="iso-8859-1"),i=r,r=p.length);for(r=0;r<p.length;++r)if(r!==i){var l=p[r],R=l.indexOf("]="),g=R===-1?l.indexOf("="):R+1,b,y;g===-1?(b=s.decoder(l,v.decoder,d,"key"),y=s.strictNullHandling?null:""):(b=s.decoder(l.slice(0,g),v.decoder,d,"key"),y=oe.maybeMap(Ds(l.slice(g+1),s),function(I){return s.decoder(I,v.decoder,d,"value")})),y&&s.interpretNumericEntities&&d==="iso-8859-1"&&(y=vd(y)),l.indexOf("[]=")>-1&&(y=kd(y)?[y]:y),Ot.call(a,b)?a[b]=oe.combine(a[b],y):a[b]=y}return a},Bd=function(e,t,s,a){for(var n=a?t:Ds(t,s),o=e.length-1;o>=0;--o){var p,i=e[o];if(i==="[]"&&s.parseArrays)p=[].concat(n);else{p=s.plainObjects?Object.create(null):{};var r=i.charAt(0)==="["&&i.charAt(i.length-1)==="]"?i.slice(1,-1):i,d=parseInt(r,10);!s.parseArrays&&r===""?p={0:n}:!isNaN(d)&&i!==r&&String(d)===r&&d>=0&&s.parseArrays&&d<=s.arrayLimit?(p=[],p[d]=n):r!=="__proto__"&&(p[r]=n)}n=p}return n},Cd=function(t,s,a,n){if(t){var o=a.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,p=/(\[[^[\]]*])/,i=/(\[[^[\]]*])/g,r=a.depth>0&&p.exec(o),d=r?o.slice(0,r.index):o,l=[];if(d){if(!a.plainObjects&&Ot.call(Object.prototype,d)&&!a.allowPrototypes)return;l.push(d)}for(var R=0;a.depth>0&&(r=i.exec(o))!==null&&R<a.depth;){if(R+=1,!a.plainObjects&&Ot.call(Object.prototype,r[1].slice(1,-1))&&!a.allowPrototypes)return;l.push(r[1])}return r&&l.push("["+o.slice(r.index)+"]"),Bd(l,s,a,n)}},wd=function(t){if(!t)return v;if(t.decoder!==null&&t.decoder!==void 0&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var s=typeof t.charset>"u"?v.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?v.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:v.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:v.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:v.arrayLimit,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:v.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:v.comma,decoder:typeof t.decoder=="function"?t.decoder:v.decoder,delimiter:typeof t.delimiter=="string"||oe.isRegExp(t.delimiter)?t.delimiter:v.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:v.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:v.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:v.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:v.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:v.strictNullHandling}};Hs.exports=function(e,t){var s=wd(t);if(e===""||e===null||typeof e>"u")return s.plainObjects?Object.create(null):{};for(var a=typeof e=="string"?Td(e,s):e,n=s.plainObjects?Object.create(null):{},o=Object.keys(a),p=0;p<o.length;++p){var i=o[p],r=Cd(i,a[i],s,typeof e=="string");n=oe.merge(n,r,s)}return s.allowSparse===!0?n:oe.compact(n)}});var Fs=q((fl,Os)=>{"use strict";var Ud=_s(),Gd=Ms(),Wd=nt();Os.exports={formats:Wd,parse:Gd,stringify:Ud}});var _d={};$t(_d,{AlreadyExistsError:()=>De,BreakingChangesError:()=>Ne,Client:()=>Nt,ForbiddenError:()=>ve,InternalError:()=>Ie,InvalidDataFormatError:()=>Ue,InvalidIdentifierError:()=>Ge,InvalidJsonSchemaError:()=>we,InvalidPayloadError:()=>Ae,InvalidQueryError:()=>Qe,LimitExceededError:()=>Fe,MethodNotFoundError:()=>Be,PayloadTooLargeError:()=>Pe,PaymentRequiredError:()=>Me,QuotaExceededError:()=>Oe,RateLimitedError:()=>He,ReferenceConstraintError:()=>Le,ReferenceNotFoundError:()=>Ee,RelationConflictError:()=>We,ResourceLockedConflictError:()=>Se,ResourceNotFoundError:()=>Ce,RuntimeError:()=>_e,UnauthorizedError:()=>ke,UnknownError:()=>H,UnsupportedMediaTypeError:()=>Te,UploadFileError:()=>W,axios:()=>Dd,axiosRetry:()=>yt,errorFrom:()=>Ve,isApiError:()=>ar});module.exports=du(_d);var Dd=_(require("axios"));var yt={};$t(yt,{DEFAULT_OPTIONS:()=>rr,default:()=>gt,exponentialDelay:()=>er,isIdempotentRequestError:()=>dt,isNetworkError:()=>ct,isNetworkOrIdempotentRequestError:()=>lt,isRetryableError:()=>be,isSafeRequestError:()=>Zt,linearDelay:()=>tr,namespace:()=>he,retryAfter:()=>xe});var Yt=_(jt(),1),he="axios-retry";function ct(e){let t=["ERR_CANCELED","ECONNABORTED"];return e.response||!e.code||t.includes(e.code)?!1:(0,Yt.default)(e)}var Xt=["get","head","options"],gu=Xt.concat(["put","delete"]);function be(e){return e.code!=="ECONNABORTED"&&(!e.response||e.response.status===429||e.response.status>=500&&e.response.status<=599)}function Zt(e){return e.config?.method?be(e)&&Xt.indexOf(e.config.method)!==-1:!1}function dt(e){return e.config?.method?be(e)&&gu.indexOf(e.config.method)!==-1:!1}function lt(e){return ct(e)||dt(e)}function xe(e=void 0){let t=e?.response?.headers["retry-after"];if(!t)return 0;let s=(Number(t)||0)*1e3;return s===0&&(s=(new Date(t).valueOf()||0)-Date.now()),Math.max(0,s)}function yu(e=0,t=void 0){return Math.max(0,xe(t))}function er(e=0,t=void 0,s=100){let a=2**e*s,n=Math.max(a,xe(t)),o=n*.2*Math.random();return n+o}function tr(e=100){return(t=0,s=void 0)=>{let a=t*e;return Math.max(a,xe(s))}}var rr={retries:3,retryCondition:lt,retryDelay:yu,shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function mu(e,t){return{...rr,...t,...e[he]}}function Jt(e,t,s=!1){let a=mu(e,t||{});return a.retryCount=a.retryCount||0,(!a.lastRequestTime||s)&&(a.lastRequestTime=Date.now()),e[he]=a,a}function Ru(e,t){e.defaults.agent===t.agent&&delete t.agent,e.defaults.httpAgent===t.httpAgent&&delete t.httpAgent,e.defaults.httpsAgent===t.httpsAgent&&delete t.httpsAgent}async function qu(e,t){let{retries:s,retryCondition:a}=e,n=(e.retryCount||0)<s&&a(t);if(typeof n=="object")try{return await n!==!1}catch{return!1}return n}async function fu(e,t,s,a){t.retryCount+=1;let{retryDelay:n,shouldResetTimeout:o,onRetry:p}=t,i=n(t.retryCount,s);if(Ru(e,a),!o&&a.timeout&&t.lastRequestTime){let r=Date.now()-t.lastRequestTime,d=a.timeout-r-i;if(d<=0)return Promise.reject(s);a.timeout=d}return a.transformRequest=[r=>r],await p(t.retryCount,s,a),a.signal?.aborted?Promise.resolve(e(a)):new Promise(r=>{let d=()=>{clearTimeout(l),r(e(a))},l=setTimeout(()=>{r(e(a)),a.signal?.removeEventListener&&a.signal.removeEventListener("abort",d)},i);a.signal?.addEventListener&&a.signal.addEventListener("abort",d,{once:!0})})}async function hu(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}var D=(e,t)=>{let s=e.interceptors.request.use(n=>(Jt(n,t,!0),n[he]?.validateResponse&&(n.validateStatus=()=>!1),n)),a=e.interceptors.response.use(null,async n=>{let{config:o}=n;if(!o)return Promise.reject(n);let p=Jt(o,t);return n.response&&p.validateResponse?.(n.response)?n.response:await qu(p,n)?fu(e,p,n,o):(await hu(p,n),Promise.reject(n))});return{requestInterceptorId:s,responseInterceptorId:a}};D.isNetworkError=ct;D.isSafeRequestError=Zt;D.isIdempotentRequestError=dt;D.isNetworkOrIdempotentRequestError=lt;D.exponentialDelay=er;D.linearDelay=tr;D.isRetryableError=be;var gt=D;var sr=_(require("crypto"));var bu={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},mt=typeof window<"u"&&typeof window.document<"u"?window.crypto:sr.default;mt.getRandomValues||(mt=bu);var h=class extends Error{constructor(s,a,n,o,p,i){super(o);this.code=s;this.description=a;this.type=n;this.message=o;this.error=p;this.id=i;this.id||(this.id=h.generateId())}isApiError=!0;format(){return`[${this.type}] ${this.message} (Error ID: ${this.id})`}toJSON(){return{id:this.id,code:this.code,type:this.type,message:this.message}}static generateId(){let s=this.getPrefix(),a=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(mt.getRandomValues(new Uint8Array(n))).map(p=>p.toString(16).padStart(2,"0")).join("").toUpperCase();return`${s}_${a}x${o}`}static getPrefix(){return typeof window<"u"&&typeof window.document<"u"?"err_bwsr":"err"}},xu=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,ar=e=>e instanceof h||xu(e)&&e.isApiError===!0,H=class extends h{constructor(t,s,a){super(500,"An unknown error occurred","Unknown",t,s,a)}},Ie=class extends h{constructor(t,s,a){super(500,"An internal error occurred","Internal",t,s,a)}},ke=class extends h{constructor(t,s,a){super(401,"The request requires to be authenticated.","Unauthorized",t,s,a)}},ve=class extends h{constructor(t,s,a){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,a)}},Pe=class extends h{constructor(t,s,a){super(413,"The request payload is too large.","PayloadTooLarge",t,s,a)}},Ae=class extends h{constructor(t,s,a){super(400,"The request payload is invalid.","InvalidPayload",t,s,a)}},Te=class extends h{constructor(t,s,a){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,a)}},Be=class extends h{constructor(t,s,a){super(405,"The requested method does not exist.","MethodNotFound",t,s,a)}},Ce=class extends h{constructor(t,s,a){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,a)}},we=class extends h{constructor(t,s,a){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,a)}},Ue=class extends h{constructor(t,s,a){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,a)}},Ge=class extends h{constructor(t,s,a){super(400,"The provided identifier is not valid. An identifier must start with a lowercase letter, be between 2 and 100 characters long and use only alphanumeric characters.","InvalidIdentifier",t,s,a)}},We=class extends h{constructor(t,s,a){super(409,"The resource is related with a different resource that the one referenced in the request. This is usually caused when providing two resource identifiers that aren't linked together.","RelationConflict",t,s,a)}},Le=class extends h{constructor(t,s,a){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,a)}},Se=class extends h{constructor(t,s,a){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,a)}},Ee=class extends h{constructor(t,s,a){super(400,"The provided resource reference is missing. This is usually caused when providing an invalid id inside the payload of a request.","ReferenceNotFound",t,s,a)}},Qe=class extends h{constructor(t,s,a){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,a)}},_e=class extends h{constructor(t,s,a){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,a)}},De=class extends h{constructor(t,s,a){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,a)}},He=class extends h{constructor(t,s,a){super(429,"The request has been rate limited.","RateLimited",t,s,a)}},Me=class extends h{constructor(t,s,a){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,a)}},Oe=class extends h{constructor(t,s,a){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,a)}},Fe=class extends h{constructor(t,s,a){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,a)}},Ne=class extends h{constructor(t,s,a){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,a)}},Iu={Unknown:H,Internal:Ie,Unauthorized:ke,Forbidden:ve,PayloadTooLarge:Pe,InvalidPayload:Ae,UnsupportedMediaType:Te,MethodNotFound:Be,ResourceNotFound:Ce,InvalidJsonSchema:we,InvalidDataFormat:Ue,InvalidIdentifier:Ge,RelationConflict:We,ReferenceConstraint:Le,ResourceLockedConflict:Se,ReferenceNotFound:Ee,InvalidQuery:Qe,Runtime:_e,AlreadyExists:De,RateLimited:He,PaymentRequired:Me,QuotaExceeded:Oe,LimitExceeded:Fe,BreakingChanges:Ne},Ve=e=>ar(e)?e:e instanceof Error?new H(e.message,e):typeof e=="string"?new H(e):ku(e);function ku(e){if(typeof e=="object"&&"code"in e&&"type"in e&&"id"in e&&"message"in e&&typeof e.type=="string"&&typeof e.message=="string"){let t=Iu[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN"):new H(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new H("An invalid error occurred: "+JSON.stringify(e))}var W=class extends Error{constructor(s,a,n){super(s);this.innerError=a;this.file=n;this.name="FileUploadError"}};var pt=_(require("axios"));var Ft=require("browser-or-node"),ru=_(require("http")),su=_(require("https"));var de=require("browser-or-node"),Pu="https://api.botpress.cloud",Au=6e4,Tu="BP_API_URL",Bu="BP_BOT_ID",Cu="BP_INTEGRATION_ID",wu="BP_WORKSPACE_ID",Uu="BP_TOKEN";function nr(e){let t=Gu(e),s={};t.workspaceId&&(s["x-workspace-id"]=t.workspaceId),t.botId&&(s["x-bot-id"]=t.botId),t.integrationId&&(s["x-integration-id"]=t.integrationId),t.token&&(s.Authorization=`Bearer ${t.token}`),s={...s,...t.headers};let a=t.apiUrl??Pu,n=t.timeout??Au;return{apiUrl:a,timeout:n,withCredentials:de.isBrowser,headers:s}}function Gu(e){return de.isBrowser?e:de.isNode?Wu(e):e}function Wu(e){let t={...e,apiUrl:e.apiUrl??process.env[Tu],botId:e.botId??process.env[Bu],integrationId:e.integrationId??process.env[Cu],workspaceId:e.workspaceId??process.env[wu]},s=t.token??process.env[Uu];return s&&(t.token=s),t}var tu=_(require("axios"));var Ns=_(Fs()),Ld=e=>e[1]!==void 0,u=e=>{let{method:t,path:s,query:a,headers:n,body:o}=e,p=Object.entries(n).filter(Ld),i=Object.fromEntries(p),r=Ns.default.stringify(a,{encode:!0,arrayFormat:"repeat",allowDots:!0}),d=r?[s,r].join("?"):s;return{method:t,url:d,headers:i,data:o}};var Vs=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var Ks=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var js=e=>({path:"/v1/chat/conversations",headers:{},query:{nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection,tags:e.tags,participantIds:e.participantIds,integrationName:e.integrationName,channel:e.channel},params:{},body:{}});var Ys=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var Zs=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var ta=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sa=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var na=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var ia=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var ua=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var da=e=>({path:"/v1/chat/events",headers:{},query:{},params:{},body:{type:e.type,payload:e.payload,schedule:e.schedule,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId}});var ga=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ma=e=>({path:"/v1/chat/events",headers:{},query:{nextToken:e.nextToken,type:e.type,conversationId:e.conversationId,userId:e.userId,messageId:e.messageId,status:e.status},params:{},body:{}});var qa=e=>({path:"/v1/chat/messages",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule}});var ha=e=>({path:"/v1/chat/messages/get-or-create",headers:{},query:{},params:{},body:{payload:e.payload,userId:e.userId,conversationId:e.conversationId,type:e.type,tags:e.tags,schedule:e.schedule}});var xa=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ka=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags}});var Pa=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Ta=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ca=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var Ua=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wa=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Sa=e=>({path:"/v1/chat/users/get-or-create",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var Qa=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,name:e.name,pictureUrl:e.pictureUrl}});var Da=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ma=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/expiry`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{expiry:e.expiry}});var Fa=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{}});var Va=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var Ka=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}/get-or-set`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload,expiry:e.expiry}});var ja=e=>({path:`/v1/chat/states/${encodeURIComponent(e.type)}/${encodeURIComponent(e.id)}/${encodeURIComponent(e.name)}`,headers:{},query:{},params:{type:e.type,id:e.id,name:e.name},body:{payload:e.payload}});var Ya=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var Za=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier}});var tn=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sn=e=>({path:"/v1/chat/tasks",headers:{},query:{},params:{},body:{title:e.title,description:e.description,type:e.type,data:e.data,parentTaskId:e.parentTaskId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags}});var nn=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{title:e.title,description:e.description,data:e.data,timeoutAt:e.timeoutAt,status:e.status,tags:e.tags}});var pn=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var cn=e=>({path:"/v1/chat/tasks",headers:{},query:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentTaskId:e.parentTaskId,status:e.status,type:e.type},params:{},body:{}});var ln=e=>({path:"/v1/chat/workflows",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId}});var yn=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Rn=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{output:e.output,timeoutAt:e.timeoutAt,status:e.status,failureReason:e.failureReason,tags:e.tags,userId:e.userId,eventId:e.eventId}});var fn=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var bn=e=>({path:"/v1/chat/workflows",headers:{},query:{nextToken:e.nextToken,tags:e.tags,conversationId:e.conversationId,userId:e.userId,parentWorkflowId:e.parentWorkflowId,statuses:e.statuses,name:e.name},params:{},body:{}});var In=e=>({path:"/v1/chat/workflows/get-or-create",headers:{},query:{},params:{},body:{name:e.name,input:e.input,parentWorkflowId:e.parentWorkflowId,conversationId:e.conversationId,userId:e.userId,timeoutAt:e.timeoutAt,tags:e.tags,status:e.status,eventId:e.eventId}});var vn=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var An=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var Bn=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var wn=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var Gn=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var Ln=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var En=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _n=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var Hn=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var On=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var Nn=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var $n=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var zn=e=>({path:"/v1/admin/bots",headers:{},query:{},params:{},body:{states:e.states,events:e.events,recurringEvents:e.recurringEvents,subscriptions:e.subscriptions,actions:e.actions,configuration:e.configuration,user:e.user,conversation:e.conversation,message:e.message,code:e.code,name:e.name,medias:e.medias,url:e.url,dev:e.dev}});var Jn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,blocked:e.blocked,alwaysAlive:e.alwaysAlive,user:e.user,message:e.message,conversation:e.conversation,events:e.events,actions:e.actions,states:e.states,recurringEvents:e.recurringEvents,integrations:e.integrations,subscriptions:e.subscriptions,code:e.code,name:e.name,medias:e.medias}});var Xn=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var eo=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var ro=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ao=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var oo=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,nextToken:e.nextToken},params:{id:e.id},body:{}});var po=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var co=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var go=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var mo=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var qo=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var ho=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var xo=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var ko=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var Po=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var To=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var Co=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var Uo=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var Wo=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var So=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var Qo=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var Do=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Mo=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Fo=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages/by-bot`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Vo=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var Ko=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var jo=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var Yo=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{name:e.name,spendingLimit:e.spendingLimit,about:e.about,profilePicture:e.profilePicture,contactEmail:e.contactEmail,website:e.website,socialAccounts:e.socialAccounts,isPublic:e.isPublic,handle:e.handle}});var Zo=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var ti=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var si=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var ni=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ii=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var ui=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var di=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var gi=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var mi=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var qi=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var hi=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var xi=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var ki=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Pi=e=>({path:"/v1/admin/integrations",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,configurations:e.configurations,states:e.states,events:e.events,actions:e.actions,entities:e.entities,identifier:e.identifier,channels:e.channels,user:e.user,interfaces:e.interfaces,secrets:e.secrets,code:e.code,url:e.url,dev:e.dev,icon:e.icon,readme:e.readme,title:e.title,description:e.description,public:e.public}});var Ti=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,configurations:e.configurations,channels:e.channels,identifier:e.identifier,actions:e.actions,events:e.events,states:e.states,user:e.user,entities:e.entities,interfaces:e.interfaces,secrets:e.secrets,code:e.code,icon:e.icon,readme:e.readme,title:e.title,description:e.description,url:e.url,public:e.public}});var Ci=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version,dev:e.dev},params:{},body:{}});var Ui=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wi=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,nextToken:e.nextToken},params:{id:e.id},body:{}});var Si=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Qi=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Di=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var Mi=e=>({path:"/v1/admin/interfaces",headers:{},query:{},params:{},body:{name:e.name,version:e.version,entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate}});var Fi=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Vi=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Ki=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{entities:e.entities,events:e.events,actions:e.actions,channels:e.channels,nameTemplate:e.nameTemplate}});var ji=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Yi=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Zi=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var tp=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var sp=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var np=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/activity`,headers:{},query:{type:e.type,nextToken:e.nextToken},params:{id:e.id},body:{}});var ip=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var up=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var dp=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var gp=e=>({path:"/v1/files",headers:{},query:{},params:{},body:{key:e.key,tags:e.tags,size:e.size,index:e.index,accessPolicies:e.accessPolicies,contentType:e.contentType,expiresAt:e.expiresAt,publicContentImmediatelyAccessible:e.publicContentImmediatelyAccessible}});var mp=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var qp=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,tags:e.tags,ids:e.ids},params:{},body:{}});var hp=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var xp=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags,accessPolicies:e.accessPolicies,expiresAt:e.expiresAt}});var kp=e=>({path:"/v1/files/search",headers:{},query:{tags:e.tags,query:e.query,contextDepth:e.contextDepth,limit:e.limit,consolidate:e.consolidate,includeBreadcrumb:e.includeBreadcrumb},params:{},body:{}});var Pp=e=>({path:`/v1/files/${encodeURIComponent(e.fileId)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{fileId:e.fileId},body:{}});var Tp=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var Cp=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Up=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{factor:e.factor,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var Wp=e=>({path:"/v1/tables",headers:{},query:{},params:{},body:{name:e.name,factor:e.factor,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var Sp=e=>({path:`/v1/tables/${encodeURIComponent(e.sourceTableId)}/duplicate`,headers:{},query:{},params:{sourceTableId:e.sourceTableId},body:{tableName:e.tableName,schemaOnly:e.schemaOnly,factor:e.factor}});var Qp=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{name:e.name,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var Dp=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var Mp=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Fp=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var Vp=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/find`,headers:{},query:{},params:{table:e.table},body:{limit:e.limit,offset:e.offset,filter:e.filter,group:e.group,search:e.search,orderBy:e.orderBy,orderDirection:e.orderDirection}});var Kp=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var jp=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/delete`,headers:{},query:{},params:{table:e.table},body:{ids:e.ids,filter:e.filter,deleteAllRows:e.deleteAllRows}});var Yp=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Zp=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows/upsert`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,keyColumn:e.keyColumn,waitComputed:e.waitComputed}});var ot=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}createConversation=async t=>{let{path:s,headers:a,query:n,body:o}=Vs(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getConversation=async t=>{let{path:s,headers:a,query:n,body:o}=Ks(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listConversations=async t=>{let{path:s,headers:a,query:n,body:o}=js(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateConversation=async t=>{let{path:s,headers:a,query:n,body:o}=Ys(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateConversation=async t=>{let{path:s,headers:a,query:n,body:o}=Zs(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteConversation=async t=>{let{path:s,headers:a,query:n,body:o}=ta(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listParticipants=async t=>{let{path:s,headers:a,query:n,body:o}=sa(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};addParticipant=async t=>{let{path:s,headers:a,query:n,body:o}=na(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getParticipant=async t=>{let{path:s,headers:a,query:n,body:o}=ia(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};removeParticipant=async t=>{let{path:s,headers:a,query:n,body:o}=ua(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createEvent=async t=>{let{path:s,headers:a,query:n,body:o}=da(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getEvent=async t=>{let{path:s,headers:a,query:n,body:o}=ga(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listEvents=async t=>{let{path:s,headers:a,query:n,body:o}=ma(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createMessage=async t=>{let{path:s,headers:a,query:n,body:o}=qa(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateMessage=async t=>{let{path:s,headers:a,query:n,body:o}=ha(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getMessage=async t=>{let{path:s,headers:a,query:n,body:o}=xa(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateMessage=async t=>{let{path:s,headers:a,query:n,body:o}=ka(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listMessages=async t=>{let{path:s,headers:a,query:n,body:o}=Pa(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteMessage=async t=>{let{path:s,headers:a,query:n,body:o}=Ta(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createUser=async t=>{let{path:s,headers:a,query:n,body:o}=Ca(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getUser=async t=>{let{path:s,headers:a,query:n,body:o}=Ua(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listUsers=async t=>{let{path:s,headers:a,query:n,body:o}=Wa(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateUser=async t=>{let{path:s,headers:a,query:n,body:o}=Sa(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateUser=async t=>{let{path:s,headers:a,query:n,body:o}=Qa(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteUser=async t=>{let{path:s,headers:a,query:n,body:o}=Da(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};setStateExpiry=async t=>{let{path:s,headers:a,query:n,body:o}=Ma(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getState=async t=>{let{path:s,headers:a,query:n,body:o}=Fa(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};setState=async t=>{let{path:s,headers:a,query:n,body:o}=Va(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrSetState=async t=>{let{path:s,headers:a,query:n,body:o}=Ka(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};patchState=async t=>{let{path:s,headers:a,query:n,body:o}=ja(t),i=(this.props.toAxiosRequest??u)({method:"patch",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};callAction=async t=>{let{path:s,headers:a,query:n,body:o}=Ya(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};configureIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=Za(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getTask=async t=>{let{path:s,headers:a,query:n,body:o}=tn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createTask=async t=>{let{path:s,headers:a,query:n,body:o}=sn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateTask=async t=>{let{path:s,headers:a,query:n,body:o}=nn(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteTask=async t=>{let{path:s,headers:a,query:n,body:o}=pn(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listTasks=async t=>{let{path:s,headers:a,query:n,body:o}=cn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createWorkflow=async t=>{let{path:s,headers:a,query:n,body:o}=ln(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkflow=async t=>{let{path:s,headers:a,query:n,body:o}=yn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateWorkflow=async t=>{let{path:s,headers:a,query:n,body:o}=Rn(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteWorkflow=async t=>{let{path:s,headers:a,query:n,body:o}=fn(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkflows=async t=>{let{path:s,headers:a,query:n,body:o}=bn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateWorkflow=async t=>{let{path:s,headers:a,query:n,body:o}=In(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};trackAnalytics=async t=>{let{path:s,headers:a,query:n,body:o}=vn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};runVrl=async t=>{let{path:s,headers:a,query:n,body:o}=An(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAccount=async t=>{let{path:s,headers:a,query:n,body:o}=Bn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateAccount=async t=>{let{path:s,headers:a,query:n,body:o}=wn(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listPersonalAccessTokens=async t=>{let{path:s,headers:a,query:n,body:o}=Gn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createPersonalAccessToken=async t=>{let{path:s,headers:a,query:n,body:o}=Ln(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deletePersonalAccessToken=async t=>{let{path:s,headers:a,query:n,body:o}=En(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};setAccountPreference=async t=>{let{path:s,headers:a,query:n,body:o}=_n(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAccountPreference=async t=>{let{path:s,headers:a,query:n,body:o}=Hn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listPublicIntegrations=async t=>{let{path:s,headers:a,query:n,body:o}=On(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPublicIntegrationById=async t=>{let{path:s,headers:a,query:n,body:o}=Nn(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPublicIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=$n(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createBot=async t=>{let{path:s,headers:a,query:n,body:o}=zn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateBot=async t=>{let{path:s,headers:a,query:n,body:o}=Jn(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};transferBot=async t=>{let{path:s,headers:a,query:n,body:o}=Xn(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBots=async t=>{let{path:s,headers:a,query:n,body:o}=eo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBot=async t=>{let{path:s,headers:a,query:n,body:o}=ro(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteBot=async t=>{let{path:s,headers:a,query:n,body:o}=ao(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotLogs=async t=>{let{path:s,headers:a,query:n,body:o}=oo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotWebchat=async t=>{let{path:s,headers:a,query:n,body:o}=po(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotAnalytics=async t=>{let{path:s,headers:a,query:n,body:o}=co(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotIssue=async t=>{let{path:s,headers:a,query:n,body:o}=go(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBotIssues=async t=>{let{path:s,headers:a,query:n,body:o}=mo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteBotIssue=async t=>{let{path:s,headers:a,query:n,body:o}=qo(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBotIssueEvents=async t=>{let{path:s,headers:a,query:n,body:o}=ho(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listBotVersions=async t=>{let{path:s,headers:a,query:n,body:o}=xo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getBotVersion=async t=>{let{path:s,headers:a,query:n,body:o}=ko(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createBotVersion=async t=>{let{path:s,headers:a,query:n,body:o}=Po(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deployBotVersion=async t=>{let{path:s,headers:a,query:n,body:o}=To(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceInvoices=async t=>{let{path:s,headers:a,query:n,body:o}=Co(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getUpcomingInvoice=async t=>{let{path:s,headers:a,query:n,body:o}=Uo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};chargeWorkspaceUnpaidInvoices=async t=>{let{path:s,headers:a,query:n,body:o}=Wo(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=So(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getPublicWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=Qo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=Do(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceUsages=async t=>{let{path:s,headers:a,query:n,body:o}=Mo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};breakDownWorkspaceUsageByBot=async t=>{let{path:s,headers:a,query:n,body:o}=Fo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAllWorkspaceQuotaCompletion=async t=>{let{path:s,headers:a,query:n,body:o}=Vo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkspaceQuota=async t=>{let{path:s,headers:a,query:n,body:o}=Ko(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceQuotas=async t=>{let{path:s,headers:a,query:n,body:o}=jo(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=Yo(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};checkHandleAvailability=async t=>{let{path:s,headers:a,query:n,body:o}=Zo(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaces=async t=>{let{path:s,headers:a,query:n,body:o}=ti(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listPublicWorkspaces=async t=>{let{path:s,headers:a,query:n,body:o}=si(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=ni(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getAuditRecords=async t=>{let{path:s,headers:a,query:n,body:o}=ii(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listWorkspaceMembers=async t=>{let{path:s,headers:a,query:n,body:o}=ui(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getWorkspaceMember=async t=>{let{path:s,headers:a,query:n,body:o}=di(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteWorkspaceMember=async t=>{let{path:s,headers:a,query:n,body:o}=gi(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createWorkspaceMember=async t=>{let{path:s,headers:a,query:n,body:o}=mi(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateWorkspaceMember=async t=>{let{path:s,headers:a,query:n,body:o}=qi(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listIntegrationApiKeys=async t=>{let{path:s,headers:a,query:n,body:o}=hi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createIntegrationApiKey=async t=>{let{path:s,headers:a,query:n,body:o}=xi(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteIntegrationApiKey=async t=>{let{path:s,headers:a,query:n,body:o}=ki(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=Pi(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=Ti(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listIntegrations=async t=>{let{path:s,headers:a,query:n,body:o}=Ci(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=Ui(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getIntegrationLogs=async t=>{let{path:s,headers:a,query:n,body:o}=Wi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getIntegrationByName=async t=>{let{path:s,headers:a,query:n,body:o}=Si(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=Qi(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};requestIntegrationVerification=async t=>{let{path:s,headers:a,query:n,body:o}=Di(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createInterface=async t=>{let{path:s,headers:a,query:n,body:o}=Mi(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getInterface=async t=>{let{path:s,headers:a,query:n,body:o}=Fi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getInterfaceByName=async t=>{let{path:s,headers:a,query:n,body:o}=Vi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateInterface=async t=>{let{path:s,headers:a,query:n,body:o}=Ki(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteInterface=async t=>{let{path:s,headers:a,query:n,body:o}=ji(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listInterfaces=async t=>{let{path:s,headers:a,query:n,body:o}=Yi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getUsage=async t=>{let{path:s,headers:a,query:n,body:o}=Zi(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getMultipleUsages=async t=>{let{path:s,headers:a,query:n,body:o}=tp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listUsageHistory=async t=>{let{path:s,headers:a,query:n,body:o}=sp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listUsageActivity=async t=>{let{path:s,headers:a,query:n,body:o}=np(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};changeAISpendQuota=async t=>{let{path:s,headers:a,query:n,body:o}=ip(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listActivities=async t=>{let{path:s,headers:a,query:n,body:o}=up(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};introspect=async t=>{let{path:s,headers:a,query:n,body:o}=dp(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};upsertFile=async t=>{let{path:s,headers:a,query:n,body:o}=gp(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteFile=async t=>{let{path:s,headers:a,query:n,body:o}=mp(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listFiles=async t=>{let{path:s,headers:a,query:n,body:o}=qp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getFile=async t=>{let{path:s,headers:a,query:n,body:o}=hp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateFileMetadata=async t=>{let{path:s,headers:a,query:n,body:o}=xp(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};searchFiles=async t=>{let{path:s,headers:a,query:n,body:o}=kp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listFilePassages=async t=>{let{path:s,headers:a,query:n,body:o}=Pp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};listTables=async t=>{let{path:s,headers:a,query:n,body:o}=Tp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getTable=async t=>{let{path:s,headers:a,query:n,body:o}=Cp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getOrCreateTable=async t=>{let{path:s,headers:a,query:n,body:o}=Up(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createTable=async t=>{let{path:s,headers:a,query:n,body:o}=Wp(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};duplicateTable=async t=>{let{path:s,headers:a,query:n,body:o}=Sp(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateTable=async t=>{let{path:s,headers:a,query:n,body:o}=Qp(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};renameTableColumn=async t=>{let{path:s,headers:a,query:n,body:o}=Dp(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteTable=async t=>{let{path:s,headers:a,query:n,body:o}=Mp(t),i=(this.props.toAxiosRequest??u)({method:"delete",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};getTableRow=async t=>{let{path:s,headers:a,query:n,body:o}=Fp(t),i=(this.props.toAxiosRequest??u)({method:"get",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};findTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=Vp(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};createTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=Kp(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};deleteTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=jp(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};updateTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=Yp(t),i=(this.props.toAxiosRequest??u)({method:"put",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})};upsertTableRows=async t=>{let{path:s,headers:a,query:n,body:o}=Zp(t),i=(this.props.toAxiosRequest??u)({method:"post",path:s,headers:{...a},query:{...n},body:o});return this.axiosInstance.request(i).then(r=>r.data).catch(r=>{throw c(r)})}};function c(e){return tu.default.isAxiosError(e)&&e.response?.data?Ve(e.response.data):Ve(e)}var x=class{constructor(t){this._list=t}async*[Symbol.asyncIterator](){let t;do{let{items:s,meta:a}=await this._list({nextToken:t});t=a.nextToken;for(let n of s)yield n}while(t)}async collect(t={}){let s=t.limit??Number.POSITIVE_INFINITY,a=[],n=0;for await(let o of this)if(a.push(o),n++,n>=s)break;return a}},it=class{constructor(t){this._client=t}conversations=t=>new x(({nextToken:s})=>this._client.listConversations({nextToken:s,...t}).then(a=>({...a,items:a.conversations})));participants=t=>new x(({nextToken:s})=>this._client.listParticipants({nextToken:s,...t}).then(a=>({...a,items:a.participants})));events=t=>new x(({nextToken:s})=>this._client.listEvents({nextToken:s,...t}).then(a=>({...a,items:a.events})));messages=t=>new x(({nextToken:s})=>this._client.listMessages({nextToken:s,...t}).then(a=>({...a,items:a.messages})));users=t=>new x(({nextToken:s})=>this._client.listUsers({nextToken:s,...t}).then(a=>({...a,items:a.users})));tasks=t=>new x(({nextToken:s})=>this._client.listTasks({nextToken:s,...t}).then(a=>({...a,items:a.tasks})));publicIntegrations=t=>new x(({nextToken:s})=>this._client.listPublicIntegrations({nextToken:s,...t}).then(a=>({...a,items:a.integrations})));bots=t=>new x(({nextToken:s})=>this._client.listBots({nextToken:s,...t}).then(a=>({...a,items:a.bots})));botIssues=t=>new x(({nextToken:s})=>this._client.listBotIssues({nextToken:s,...t}).then(a=>({...a,items:a.issues})));workspaces=t=>new x(({nextToken:s})=>this._client.listWorkspaces({nextToken:s,...t}).then(a=>({...a,items:a.workspaces})));publicWorkspaces=t=>new x(({nextToken:s})=>this._client.listPublicWorkspaces({nextToken:s,...t}).then(a=>({...a,items:a.workspaces})));workspaceMembers=t=>new x(({nextToken:s})=>this._client.listWorkspaceMembers({nextToken:s,...t}).then(a=>({...a,items:a.members})));integrations=t=>new x(({nextToken:s})=>this._client.listIntegrations({nextToken:s,...t}).then(a=>({...a,items:a.integrations})));interfaces=t=>new x(({nextToken:s})=>this._client.listInterfaces({nextToken:s,...t}).then(a=>({...a,items:a.interfaces})));activities=t=>new x(({nextToken:s})=>this._client.listActivities({nextToken:s,...t}).then(a=>({...a,items:a.activities})));files=t=>new x(({nextToken:s})=>this._client.listFiles({nextToken:s,...t}).then(a=>({...a,items:a.files})));filePassages=t=>new x(({nextToken:s})=>this._client.listFilePassages({nextToken:s,...t}).then(a=>({...a,items:a.passages})))};var au=100*1024*1024,Ed=au,Qd=au,Nt=class extends ot{config;constructor(t={}){let s=nr(t),{apiUrl:a,headers:n,withCredentials:o,timeout:p}=s,i=pt.default.create({baseURL:a,headers:n,withCredentials:o,timeout:p,maxBodyLength:Ed,maxContentLength:Qd,httpAgent:Ft.isNode?new ru.default.Agent({keepAlive:!0}):void 0,httpsAgent:Ft.isNode?new su.default.Agent({keepAlive:!0}):void 0});super(i),t.retry&&gt(i,t.retry),this.config=s}get list(){return new it(this)}uploadFile=async({key:t,index:s,tags:a,contentType:n,accessPolicies:o,content:p,url:i,expiresAt:r,publicContentImmediatelyAccessible:d})=>{if(i&&p)throw new W("Cannot provide both content and URL, please provide only one of them");if(i&&(p=await pt.default.get(i,{responseType:"arraybuffer"}).then(y=>y.data).catch(y=>{throw new W(`Failed to download file from provided URL: ${y.message}`,y)})),!p)throw new W("No content was provided for the file");let l,R;if(typeof p=="string"){let I=new TextEncoder().encode(p);l=I,R=I.byteLength}else if(p instanceof Uint8Array)l=p,R=l.byteLength;else if(p instanceof ArrayBuffer)l=p,R=l.byteLength;else if(p instanceof Blob)l=p,R=p.size;else throw new W("The provided content is not supported");let{file:g}=await this.upsertFile({key:t,tags:a,index:s,accessPolicies:o,contentType:n,size:R,expiresAt:r,publicContentImmediatelyAccessible:d}),b={"Content-Type":g.contentType};d&&(b["x-amz-tagging"]="public=true");try{await pt.default.put(g.uploadUrl,l,{maxBodyLength:1/0,headers:b})}catch(y){throw new W(`Failed to upload file: ${y.message}`,y,g)}return{file:{...g,size:R}}}};0&&(module.exports={AlreadyExistsError,BreakingChangesError,Client,ForbiddenError,InternalError,InvalidDataFormatError,InvalidIdentifierError,InvalidJsonSchemaError,InvalidPayloadError,InvalidQueryError,LimitExceededError,MethodNotFoundError,PayloadTooLargeError,PaymentRequiredError,QuotaExceededError,RateLimitedError,ReferenceConstraintError,ReferenceNotFoundError,RelationConflictError,ResourceLockedConflictError,ResourceNotFoundError,RuntimeError,UnauthorizedError,UnknownError,UnsupportedMediaTypeError,UploadFileError,axios,axiosRetry,errorFrom,isApiError});
5
5
  //# sourceMappingURL=index.cjs.map