@botpress/client 0.40.0 → 0.41.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 vu=Object.create;var he=Object.defineProperty;var Pu=Object.getOwnPropertyDescriptor;var Tu=Object.getOwnPropertyNames;var Au=Object.getPrototypeOf,Bu=Object.prototype.hasOwnProperty;var h=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),$t=(e,t)=>{for(var s in t)he(e,s,{get:t[s],enumerable:!0})},Kt=(e,t,s,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Tu(t))!Bu.call(e,n)&&n!==s&&he(e,n,{get:()=>t[n],enumerable:!(a=Pu(t,n))||a.enumerable});return e};var D=(e,t,s)=>(s=e!=null?vu(Au(e)):{},Kt(t||!e||!e.__esModule?he(s,"default",{value:e,enumerable:!0}):s,e)),Cu=e=>Kt(he({},"__esModule",{value:!0}),e);var jt=h((nl,zt)=>{"use strict";var wu=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=>!wu.has(e&&e.code)});var ir=h((pl,or)=>{"use strict";or.exports=Error});var ur=h((ul,pr)=>{"use strict";pr.exports=EvalError});var dr=h((cl,cr)=>{"use strict";cr.exports=RangeError});var gr=h((dl,lr)=>{"use strict";lr.exports=ReferenceError});var Rt=h((ll,yr)=>{"use strict";yr.exports=SyntaxError});var le=h((gl,mr)=>{"use strict";mr.exports=TypeError});var qr=h((yl,Rr)=>{"use strict";Rr.exports=URIError});var fr=h((ml,hr)=>{"use strict";hr.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=h((Rl,xr)=>{"use strict";var br=typeof Symbol<"u"&&Symbol,Zu=fr();xr.exports=function(){return typeof br!="function"||typeof Symbol!="function"||typeof br("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Zu()}});var vr=h((ql,kr)=>{"use strict";var qt={__proto__:null,foo:{}},ec=Object;kr.exports=function(){return{__proto__:qt}.foo===qt.foo&&!(qt instanceof ec)}});var Ar=h((hl,Tr)=>{"use strict";var tc="Function.prototype.bind called on incompatible ",rc=Object.prototype.toString,sc=Math.max,ac="[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},nc=function(t,s){for(var a=[],n=s||0,o=0;n<t.length;n+=1,o+=1)a[o]=t[n];return a},oc=function(e,t){for(var s="",a=0;a<e.length;a+=1)s+=e[a],a+1<e.length&&(s+=t);return s};Tr.exports=function(t){var s=this;if(typeof s!="function"||rc.apply(s)!==ac)throw new TypeError(tc+s);for(var a=nc(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=sc(0,s.length-a.length),i=[],r=0;r<p;r++)i[r]="$"+r;if(n=Function("binder","return function ("+oc(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=h((fl,Br)=>{"use strict";var ic=Ar();Br.exports=Function.prototype.bind||ic});var wr=h((bl,Cr)=>{"use strict";var pc=Function.prototype.call,uc=Object.prototype.hasOwnProperty,cc=$e();Cr.exports=cc.call(pc,uc)});var z=h((xl,Sr)=>{"use strict";var y,dc=ir(),lc=ur(),gc=dr(),yc=gr(),re=Rt(),te=le(),mc=qr(),Wr=Function,ht=function(e){try{return Wr('"use strict"; return ('+e+").constructor;")()}catch{}},$=Object.getOwnPropertyDescriptor;if($)try{$({},"")}catch{$=null}var ft=function(){throw new te},Rc=$?function(){try{return arguments.callee,ft}catch{try{return $(arguments,"callee").get}catch{return ft}}}():ft,Z=Ir()(),qc=vr()(),k=Object.getPrototypeOf||(qc?function(e){return e.__proto__}:null),ee={},hc=typeof Uint8Array>"u"||!k?y:k(Uint8Array),K={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?y:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?y:ArrayBuffer,"%ArrayIteratorPrototype%":Z&&k?k([][Symbol.iterator]()):y,"%AsyncFromSyncIteratorPrototype%":y,"%AsyncFunction%":ee,"%AsyncGenerator%":ee,"%AsyncGeneratorFunction%":ee,"%AsyncIteratorPrototype%":ee,"%Atomics%":typeof Atomics>"u"?y:Atomics,"%BigInt%":typeof BigInt>"u"?y:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?y:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?y:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?y:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":dc,"%eval%":eval,"%EvalError%":lc,"%Float32Array%":typeof Float32Array>"u"?y:Float32Array,"%Float64Array%":typeof Float64Array>"u"?y:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?y:FinalizationRegistry,"%Function%":Wr,"%GeneratorFunction%":ee,"%Int8Array%":typeof Int8Array>"u"?y:Int8Array,"%Int16Array%":typeof Int16Array>"u"?y:Int16Array,"%Int32Array%":typeof Int32Array>"u"?y:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":Z&&k?k(k([][Symbol.iterator]())):y,"%JSON%":typeof JSON=="object"?JSON:y,"%Map%":typeof Map>"u"?y:Map,"%MapIteratorPrototype%":typeof Map>"u"||!Z||!k?y:k(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?y:Promise,"%Proxy%":typeof Proxy>"u"?y:Proxy,"%RangeError%":gc,"%ReferenceError%":yc,"%Reflect%":typeof Reflect>"u"?y:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?y:Set,"%SetIteratorPrototype%":typeof Set>"u"||!Z||!k?y:k(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?y:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":Z&&k?k(""[Symbol.iterator]()):y,"%Symbol%":Z?Symbol:y,"%SyntaxError%":re,"%ThrowTypeError%":Rc,"%TypedArray%":hc,"%TypeError%":te,"%Uint8Array%":typeof Uint8Array>"u"?y:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?y:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?y:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?y:Uint32Array,"%URIError%":mc,"%WeakMap%":typeof WeakMap>"u"?y:WeakMap,"%WeakRef%":typeof WeakRef>"u"?y:WeakRef,"%WeakSet%":typeof WeakSet>"u"?y:WeakSet};if(k)try{null.error}catch(e){Ur=k(k(e)),K["%Error.prototype%"]=Ur}var Ur,fc=function e(t){var s;if(t==="%AsyncFunction%")s=ht("async function () {}");else if(t==="%GeneratorFunction%")s=ht("function* () {}");else if(t==="%AsyncGeneratorFunction%")s=ht("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(),bc=ge.call(Function.call,Array.prototype.concat),xc=ge.call(Function.apply,Array.prototype.splice),Lr=ge.call(Function.call,String.prototype.replace),ze=ge.call(Function.call,String.prototype.slice),Ic=ge.call(Function.call,RegExp.prototype.exec),kc=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,vc=/\\(\\)?/g,Pc=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 Lr(t,kc,function(o,p,i,r){n[n.length]=i?Lr(r,vc,"$1"):p||o}),n},Tc=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=fc(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(Ic(/^%?[^%]*%?$/,t)===null)throw new re("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=Pc(t),n=a.length>0?a[0]:"",o=Tc("%"+n+"%",s),p=o.name,i=o.value,r=!1,d=o.alias;d&&(n=d[0],xc(a,bc([0,1],d)));for(var l=1,m=!0;l<a.length;l+=1){var g=a[l],q=ze(g,0,1),R=ze(g,-1);if((q==='"'||q==="'"||q==="`"||R==='"'||R==="'"||R==="`")&&q!==R)throw new re("property names with quotes must have matching quotes");if((g==="constructor"||!m)&&(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 x=$(i,g);m=!!x,m&&"get"in x&&!("originalValue"in x.get)?i=x.get:i=i[g]}else m=Ke(i,g),i=i[g];m&&!r&&(K[p]=i)}}return i}});var Je=h((Il,Er)=>{"use strict";var Ac=z(),je=Ac("%Object.defineProperty%",!0)||!1;if(je)try{je({},"a",{value:1})}catch{je=!1}Er.exports=je});var bt=h((kl,Qr)=>{"use strict";var Bc=z(),Ye=Bc("%Object.getOwnPropertyDescriptor%",!0);if(Ye)try{Ye([],"length")}catch{Ye=null}Qr.exports=Ye});var Mr=h((vl,Hr)=>{"use strict";var Dr=Je(),Cc=Rt(),se=le(),_r=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=!!_r&&_r(t,s);if(Dr)Dr(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 Cc("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var Nr=h((Pl,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=h((Tl,zr)=>{"use strict";var wc=z(),Vr=Mr(),Uc=Nr()(),$r=bt(),Kr=le(),Gc=wc("%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||Gc(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)&&(Uc?Vr(t,"length",s,!0,!0):Vr(t,"length",s)),t}});var ts=h((Al,Xe)=>{"use strict";var It=$e(),Ze=z(),Lc=jr(),Wc=le(),Xr=Ze("%Function.prototype.apply%"),Zr=Ze("%Function.prototype.call%"),es=Ze("%Reflect.apply%",!0)||It.call(Zr,Xr),Jr=Je(),Sc=Ze("%Math.max%");Xe.exports=function(t){if(typeof t!="function")throw new Wc("a function is required");var s=es(It,Zr,arguments);return Lc(s,1+Sc(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=h((Bl,as)=>{"use strict";var rs=z(),ss=ts(),Ec=ss(rs("String.prototype.indexOf"));as.exports=function(t,s){var a=rs(t,!!s);return typeof a=="function"&&Ec(t,".prototype.")>-1?ss(a):a}});var is=h((Cl,os)=>{os.exports=require("util").inspect});var As=h((wl,Ts)=>{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,Lt=typeof Set=="function"&&Set.prototype,vt=Object.getOwnPropertyDescriptor&&Lt?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,rt=Lt&&vt&&typeof vt.get=="function"?vt.get:null,us=Lt&&Set.prototype.forEach,Qc=typeof WeakMap=="function"&&WeakMap.prototype,me=Qc?WeakMap.prototype.has:null,Dc=typeof WeakSet=="function"&&WeakSet.prototype,Re=Dc?WeakSet.prototype.has:null,_c=typeof WeakRef=="function"&&WeakRef.prototype,cs=_c?WeakRef.prototype.deref:null,Hc=Boolean.prototype.valueOf,Mc=Object.prototype.toString,Oc=Function.prototype.toString,Fc=String.prototype.match,Wt=String.prototype.slice,O=String.prototype.replace,Nc=String.prototype.toUpperCase,ds=String.prototype.toLowerCase,bs=RegExp.prototype.test,ls=Array.prototype.concat,C=Array.prototype.join,Vc=Array.prototype.slice,gs=Math.floor,At=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",T=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=Wt.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;Ts.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 m=ud(o,a);if(typeof n>"u")n=[];else if(vs(n,t)>=0)return"[Circular]";function g(B,Q,G){if(Q&&(n=Vc.call(n),n.push(Q)),G){var ce={depth:o.depth};return M(o,"quoteStyle")&&(ce.quoteStyle=o.quoteStyle),e(B,ce,a+1,n)}return e(B,o,a+1,n)}if(typeof t=="function"&&!hs(t)){var q=ed(t),R=et(t,g);return"[Function"+(q?": "+q:" (anonymous)")+"]"+(R.length>0?" { "+C.call(R,", ")+" }":"")}if(ks(t)){var x=ae?O.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Bt.call(t);return typeof t=="object"&&!ae?ye(x):x}if(od(t)){for(var A="<"+ds.call(String(t.nodeName)),f=t.attributes||[],U=0;U<f.length;U++)A+=" "+f[U].name+"="+Is($c(f[U].value),"double",o);return A+=">",t.childNodes&&t.childNodes.length&&(A+="..."),A+="</"+ds.call(String(t.nodeName))+">",A}if(wt(t)){if(t.length===0)return"[]";var S=et(t,g);return m&&!pd(S)?"["+Ut(S,m)+"]":"[ "+C.call(S,", ")+" ]"}if(zc(t)){var J=et(t,g);return!("cause"in Error.prototype)&&"cause"in t&&!xs.call(t,"cause")?"{ ["+String(t)+"] "+C.call(ls.call("[cause]: "+g(t.cause),J),", ")+" }":J.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+C.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(td(t)){var ie=[];return ps&&ps.call(t,function(B,Q){ie.push(g(Q,t,!0)+" => "+g(B,t))}),fs("Map",tt.call(t),ie,m)}if(ad(t)){var pe=[];return us&&us.call(t,function(B){pe.push(g(B,t))}),fs("Set",rt.call(t),pe,m)}if(rd(t))return Tt("WeakMap");if(nd(t))return Tt("WeakSet");if(sd(t))return Tt("WeakRef");if(Jc(t))return ye(g(Number(t)));if(Xc(t))return ye(g(At.call(t)));if(Yc(t))return ye(Hc.call(t));if(jc(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(!Kc(t)&&!hs(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&&T&&Object(t)===t&&T in t?Wt.call(F(t),8,-1):E?"Object":"",V=ue||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",X=V+(Y||E?"["+C.call(ls.call([],Y||[],E||[]),": ")+"] ":"");return N.length===0?X+"{}":m?X+"{"+Ut(N,m)+"}":X+"{ "+C.call(N,", ")+" }"}return String(t)};function Is(e,t,s){var a=(s.quoteStyle||t)==="double"?'"':"'";return a+e+a}function $c(e){return O.call(String(e),/"/g,"&quot;")}function wt(e){return F(e)==="[object Array]"&&(!T||!(typeof e=="object"&&T in e))}function Kc(e){return F(e)==="[object Date]"&&(!T||!(typeof e=="object"&&T in e))}function hs(e){return F(e)==="[object RegExp]"&&(!T||!(typeof e=="object"&&T in e))}function zc(e){return F(e)==="[object Error]"&&(!T||!(typeof e=="object"&&T in e))}function jc(e){return F(e)==="[object String]"&&(!T||!(typeof e=="object"&&T in e))}function Jc(e){return F(e)==="[object Number]"&&(!T||!(typeof e=="object"&&T in e))}function Yc(e){return F(e)==="[object Boolean]"&&(!T||!(typeof e=="object"&&T 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 Xc(e){if(!e||typeof e!="object"||!At)return!1;try{return At.call(e),!0}catch{}return!1}var Zc=Object.prototype.hasOwnProperty||function(e){return e in this};function M(e,t){return Zc.call(e,t)}function F(e){return Mc.call(e)}function ed(e){if(e.name)return e.name;var t=Fc.call(Oc.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 td(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 rd(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 sd(e){if(!cs||!e||typeof e!="object")return!1;try{return cs.call(e),!0}catch{}return!1}function ad(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 nd(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 od(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(Wt.call(e,0,t.maxStringLength),t)+a}var n=O.call(O.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,id);return Is(n,"single",t)}function id(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":"")+Nc.call(t.toString(16))}function ye(e){return"Object("+e+")"}function Tt(e){return e+" { ? }"}function fs(e,t,s,a){var n=a?Ut(s,a):C.call(s,", ");return e+" ("+t+") {"+n+"}"}function pd(e){for(var t=0;t<e.length;t++)if(vs(e[t],`
2
- `)>=0)return!1;return!0}function ud(e,t){var s;if(e.indent===" ")s=" ";else if(typeof e.indent=="number"&&e.indent>0)s=C.call(Array(e.indent+1)," ");else return null;return{base:s,prev:C.call(Array(t+1),s)}}function Ut(e,t){if(e.length===0)return"";var s=`
3
- `+t.prev+t.base;return s+C.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=h((Ul,Bs)=>{"use strict";var St=z(),ne=ns(),cd=As(),dd=St("%TypeError%"),st=St("%WeakMap%",!0),at=St("%Map%",!0),ld=ne("WeakMap.prototype.get",!0),gd=ne("WeakMap.prototype.set",!0),yd=ne("WeakMap.prototype.has",!0),md=ne("Map.prototype.get",!0),Rd=ne("Map.prototype.set",!0),qd=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},hd=function(e,t){var s=Et(e,t);return s&&s.value},fd=function(e,t,s){var a=Et(e,t);a?a.value=s:e.next={key:t,next:e.next,value:s}},bd=function(e,t){return!!Et(e,t)};Bs.exports=function(){var t,s,a,n={assert:function(o){if(!n.has(o))throw new dd("Side channel does not contain "+cd(o))},get:function(o){if(st&&o&&(typeof o=="object"||typeof o=="function")){if(t)return ld(t,o)}else if(at){if(s)return md(s,o)}else if(a)return hd(a,o)},has:function(o){if(st&&o&&(typeof o=="object"||typeof o=="function")){if(t)return yd(t,o)}else if(at){if(s)return qd(s,o)}else if(a)return bd(a,o);return!1},set:function(o,p){st&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new st),gd(t,o,p)):at?(s||(s=new at),Rd(s,o,p)):(a||(a={key:{},next:null}),fd(a,o,p))}};return n}});var nt=h((Gl,ws)=>{"use strict";var xd=String.prototype.replace,Id=/%20/g,Qt={RFC1738:"RFC1738",RFC3986:"RFC3986"};ws.exports={default:Qt.RFC3986,formatters:{RFC1738:function(e){return xd.call(e,Id,"+")},RFC3986:function(e){return String(e)}},RFC1738:Qt.RFC1738,RFC3986:Qt.RFC3986}});var _t=h((Ll,Gs)=>{"use strict";var kd=nt(),Dt=Object.prototype.hasOwnProperty,j=Array.isArray,w=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),vd=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},Pd=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)||!Dt.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(Dt.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 Dt.call(o,p)?o[p]=e(o[p],i,a):o[p]=i,o},n)},Td=function(t,s){return Object.keys(s).reduce(function(a,n){return a[n]=s[n],a},t)},Ad=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}},Bd=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===kd.RFC1738&&(d===40||d===41)){i+=p.charAt(r);continue}if(d<128){i=i+w[d];continue}if(d<2048){i=i+(w[192|d>>6]+w[128|d&63]);continue}if(d<55296||d>=57344){i=i+(w[224|d>>12]+w[128|d>>6&63]+w[128|d&63]);continue}r+=1,d=65536+((d&1023)<<10|p.charCodeAt(r)&1023),i+=w[240|d>>18]+w[128|d>>12&63]+w[128|d>>6&63]+w[128|d&63]}return i},Cd=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 vd(s),t},wd=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Ud=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},Gd=function(t,s){return[].concat(t,s)},Ld=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:Td,combine:Gd,compact:Cd,decode:Ad,encode:Bd,isBuffer:Ud,isRegExp:wd,maybeMap:Ld,merge:Pd}});var Ds=h((Wl,Qs)=>{"use strict";var Ss=Cs(),Mt=_t(),qe=nt(),Wd=Object.prototype.hasOwnProperty,Ls={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,s){return t+"["+s+"]"},repeat:function(t){return t}},W=Array.isArray,Sd=String.prototype.split,Ed=Array.prototype.push,Es=function(e,t){Ed.apply(e,W(t)?t:[t])},Qd=Date.prototype.toISOString,Ws=qe.default,P={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:Mt.encode,encodeValuesOnly:!1,format:Ws,formatter:qe.formatters[Ws],indices:!1,serializeDate:function(t){return Qd.call(t)},skipNulls:!1,strictNullHandling:!1},Dd=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},Ht={},_d=function e(t,s,a,n,o,p,i,r,d,l,m,g,q,R,x,A){for(var f=t,U=A,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=m(f):a==="comma"&&W(f)&&(f=Mt.maybeMap(f,function(ut){return ut instanceof Date?m(ut):ut})),f===null){if(o)return i&&!R?i(s,P.encoder,x,"key",g):s;f=""}if(Dd(f)||Mt.isBuffer(f)){if(i){var pe=R?s:i(s,P.encoder,x,"key",g);if(a==="comma"&&R){for(var N=Sd.call(String(f),","),ue="",E=0;E<N.length;++E)ue+=(E===0?"":",")+q(i(N[E],P.encoder,x,"value",g));return[q(pe)+(n&&W(f)&&N.length===1?"[]":"")+"="+ue]}return[q(pe)+"="+q(i(f,P.encoder,x,"value",g))]}return[q(s)+"="+q(String(f))]}var Y=[];if(typeof f>"u")return Y;var V;if(a==="comma"&&W(f))V=[{value:f.length>0?f.join(",")||null:void 0}];else if(W(r))V=r;else{var X=Object.keys(f);V=d?X.sort(d):X}for(var B=n&&W(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 ku=W(f)?typeof a=="function"?a(B,G):B:B+(l?"."+G:"["+G+"]");A.set(t,S);var Vt=Ss();Vt.set(Ht,A),Es(Y,e(ce,ku,a,n,o,p,i,r,d,l,m,g,q,R,x,Vt))}}return Y},Hd=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(!Wd.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"||W(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=Hd(t),n,o;typeof a.filter=="function"?(o=a.filter,s=o("",s)):W(a.filter)&&(o=a.filter,n=o);var p=[];if(typeof s!="object"||s===null)return"";var i;t&&t.arrayFormat in Ls?i=t.arrayFormat:t&&"indices"in t?i=t.indices?"indices":"repeat":i="indices";var r=Ls[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(),m=0;m<n.length;++m){var g=n[m];a.skipNulls&&s[g]===null||Es(p,_d(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 q=p.join(a.delimiter),R=a.addQueryPrefix===!0?"?":"";return a.charsetSentinel&&(a.charset==="iso-8859-1"?R+="utf8=%26%2310003%3B&":R+="utf8=%E2%9C%93&"),q.length>0?R+q:""}});var Ms=h((Sl,Hs)=>{"use strict";var oe=_t(),Ot=Object.prototype.hasOwnProperty,Md=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},Od=function(e){return e.replace(/&#(\d+);/g,function(t,s){return String.fromCharCode(parseInt(s,10))})},_s=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Fd="utf8=%26%2310003%3B",Nd="utf8=%E2%9C%93",Vd=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]===Nd?d="utf-8":p[r]===Fd&&(d="iso-8859-1"),i=r,r=p.length);for(r=0;r<p.length;++r)if(r!==i){var l=p[r],m=l.indexOf("]="),g=m===-1?l.indexOf("="):m+1,q,R;g===-1?(q=s.decoder(l,v.decoder,d,"key"),R=s.strictNullHandling?null:""):(q=s.decoder(l.slice(0,g),v.decoder,d,"key"),R=oe.maybeMap(_s(l.slice(g+1),s),function(x){return s.decoder(x,v.decoder,d,"value")})),R&&s.interpretNumericEntities&&d==="iso-8859-1"&&(R=Od(R)),l.indexOf("[]=")>-1&&(R=Md(R)?[R]:R),Ot.call(a,q)?a[q]=oe.combine(a[q],R):a[q]=R}return a},$d=function(e,t,s,a){for(var n=a?t:_s(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},Kd=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 m=0;a.depth>0&&(r=i.exec(o))!==null&&m<a.depth;){if(m+=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)+"]"),$d(l,s,a,n)}},zd=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=zd(t);if(e===""||e===null||typeof e>"u")return s.plainObjects?Object.create(null):{};for(var a=typeof e=="string"?Vd(e,s):e,n=s.plainObjects?Object.create(null):{},o=Object.keys(a),p=0;p<o.length;++p){var i=o[p],r=Kd(i,a[i],s,typeof e=="string");n=oe.merge(n,r,s)}return s.allowSparse===!0?n:oe.compact(n)}});var Fs=h((El,Os)=>{"use strict";var jd=Ds(),Jd=Ms(),Yd=nt();Os.exports={formats:Yd,parse:Jd,stringify:jd}});var rl={};$t(rl,{AlreadyExistsError:()=>_e,BreakingChangesError:()=>Ne,Client:()=>Nt,ForbiddenError:()=>ve,InternalError:()=>Ie,InvalidDataFormatError:()=>Ue,InvalidIdentifierError:()=>Ge,InvalidJsonSchemaError:()=>we,InvalidPayloadError:()=>Te,InvalidQueryError:()=>Qe,LimitExceededError:()=>Fe,MethodNotFoundError:()=>Be,PayloadTooLargeError:()=>Pe,PaymentRequiredError:()=>Me,QuotaExceededError:()=>Oe,RateLimitedError:()=>He,ReferenceConstraintError:()=>We,ReferenceNotFoundError:()=>Ee,RelationConflictError:()=>Le,ResourceLockedConflictError:()=>Se,ResourceNotFoundError:()=>Ce,RuntimeError:()=>De,UnauthorizedError:()=>ke,UnknownError:()=>H,UnsupportedMediaTypeError:()=>Ae,UploadFileError:()=>L,axios:()=>sl,axiosRetry:()=>yt,errorFrom:()=>Ve,isApiError:()=>ar});module.exports=Cu(rl);var sl=D(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:()=>fe,retryAfter:()=>xe});var Yt=D(jt(),1),fe="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"],Uu=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)&&Uu.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 Gu(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:Gu,shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function Lu(e,t){return{...rr,...t,...e[fe]}}function Jt(e,t,s=!1){let a=Lu(e,t||{});return a.retryCount=a.retryCount||0,(!a.lastRequestTime||s)&&(a.lastRequestTime=Date.now()),e[fe]=a,a}function Wu(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 Su(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 Eu(e,t,s,a){t.retryCount+=1;let{retryDelay:n,shouldResetTimeout:o,onRetry:p}=t,i=n(t.retryCount,s);if(Wu(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 Qu(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}var _=(e,t)=>{let s=e.interceptors.request.use(n=>(Jt(n,t,!0),n[fe]?.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 Su(p,n)?Eu(e,p,n,o):(await Qu(p,n),Promise.reject(n))});return{requestInterceptorId:s,responseInterceptorId:a}};_.isNetworkError=ct;_.isSafeRequestError=Zt;_.isIdempotentRequestError=dt;_.isNetworkOrIdempotentRequestError=lt;_.exponentialDelay=er;_.linearDelay=tr;_.isRetryableError=be;var gt=_;var sr=D(require("crypto"));var Du={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=Du);var b=class extends Error{constructor(s,a,n,o,p,i,r){super(o);this.code=s;this.description=a;this.type=n;this.message=o;this.error=p;this.id=i;this.metadata=r;this.id||(this.id=b.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,metadata:this.metadata}}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"}},_u=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,ar=e=>e instanceof b||_u(e)&&e.isApiError===!0,H=class extends b{constructor(t,s,a,n){super(500,"An unknown error occurred","Unknown",t,s,a,n)}},Ie=class extends b{constructor(t,s,a,n){super(500,"An internal error occurred","Internal",t,s,a,n)}},ke=class extends b{constructor(t,s,a,n){super(401,"The request requires to be authenticated.","Unauthorized",t,s,a,n)}},ve=class extends b{constructor(t,s,a,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,a,n)}},Pe=class extends b{constructor(t,s,a,n){super(413,"The request payload is too large.","PayloadTooLarge",t,s,a,n)}},Te=class extends b{constructor(t,s,a,n){super(400,"The request payload is invalid.","InvalidPayload",t,s,a,n)}},Ae=class extends b{constructor(t,s,a,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,a,n)}},Be=class extends b{constructor(t,s,a,n){super(405,"The requested method does not exist.","MethodNotFound",t,s,a,n)}},Ce=class extends b{constructor(t,s,a,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,a,n)}},we=class extends b{constructor(t,s,a,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,a,n)}},Ue=class extends b{constructor(t,s,a,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,a,n)}},Ge=class extends b{constructor(t,s,a,n){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,n)}},Le=class extends b{constructor(t,s,a,n){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,n)}},We=class extends b{constructor(t,s,a,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,a,n)}},Se=class extends b{constructor(t,s,a,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,a,n)}},Ee=class extends b{constructor(t,s,a,n){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,n)}},Qe=class extends b{constructor(t,s,a,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,a,n)}},De=class extends b{constructor(t,s,a,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,a,n)}},_e=class extends b{constructor(t,s,a,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,a,n)}},He=class extends b{constructor(t,s,a,n){super(429,"The request has been rate limited.","RateLimited",t,s,a,n)}},Me=class extends b{constructor(t,s,a,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,a,n)}},Oe=class extends b{constructor(t,s,a,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,a,n)}},Fe=class extends b{constructor(t,s,a,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,a,n)}},Ne=class extends b{constructor(t,s,a,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,a,n)}},Hu={Unknown:H,Internal:Ie,Unauthorized:ke,Forbidden:ve,PayloadTooLarge:Pe,InvalidPayload:Te,UnsupportedMediaType:Ae,MethodNotFound:Be,ResourceNotFound:Ce,InvalidJsonSchema:we,InvalidDataFormat:Ue,InvalidIdentifier:Ge,RelationConflict:Le,ReferenceConstraint:We,ResourceLockedConflict:Se,ReferenceNotFound:Ee,InvalidQuery:Qe,Runtime:De,AlreadyExists:_e,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):Mu(e);function Mu(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=Hu[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):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 L=class extends Error{constructor(s,a,n){super(s);this.innerError=a;this.file=n;this.name="FileUploadError"}};var pt=D(require("axios"));var Ft=require("browser-or-node"),bu=D(require("http")),xu=D(require("https"));var de=require("browser-or-node"),Fu="https://api.botpress.cloud",Nu=6e4,Vu="BP_API_URL",$u="BP_BOT_ID",Ku="BP_INTEGRATION_ID",zu="BP_WORKSPACE_ID",ju="BP_TOKEN";function nr(e){let t=Ju(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??Fu,n=t.timeout??Nu;return{apiUrl:a,timeout:n,withCredentials:de.isBrowser,headers:s}}function Ju(e){return de.isBrowser?e:de.isNode?Yu(e):e}function Yu(e){let t={...e,apiUrl:e.apiUrl??process.env[Vu],botId:e.botId??process.env[$u],integrationId:e.integrationId??process.env[Ku],workspaceId:e.workspaceId??process.env[zu]},s=t.token??process.env[ju];return s&&(t.token=s),t}var fu=D(require("axios"));var Ns=D(Fs()),Xd=e=>e[1]!==void 0,u=e=>{let{method:t,path:s,query:a,headers:n,body:o}=e,p=Object.entries(n).filter(Xd),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 fa=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 Aa=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 La=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 _a=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 hn=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 Tn=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 Wn=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 Dn=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,tags:e.tags,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,tags:e.tags,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,level:e.level,userId:e.userId,workflowId:e.workflowId,conversationId:e.conversationId,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 fo=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 Ao=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 Lo=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 _o=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 fi=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 Ai=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 Li=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,conversationId:e.conversationId,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 _i=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,name:e.name},params:{},body:{}});var Zi=e=>({path:"/v1/admin/plugins",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,code:e.code}});var tp=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var sp=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var np=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,code:e.code}});var ip=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var up=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name},params:{},body:{}});var dp=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var gp=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var mp=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var qp=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/activity`,headers:{},query:{type:e.type,nextToken:e.nextToken},params:{id:e.id},body:{}});var fp=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var xp=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var kp=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var Pp=e=>({path:"/v1/files",headers:{},query:{},params:{},body:{key:e.key,tags:e.tags,size:e.size,index:e.index,indexing:e.indexing,accessPolicies:e.accessPolicies,contentType:e.contentType,expiresAt:e.expiresAt,publicContentImmediatelyAccessible:e.publicContentImmediatelyAccessible,metadata:e.metadata}});var Ap=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Cp=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,tags:e.tags,ids:e.ids},params:{},body:{}});var Up=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Lp=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{metadata:e.metadata,tags:e.tags,accessPolicies:e.accessPolicies,expiresAt:e.expiresAt}});var Sp=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 Qp=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var _p=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});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)}`,headers:{},query:{},params:{table:e.table},body:{factor:e.factor,frozen:e.frozen,schema:e.schema,tags:e.tags,isComputeEnabled:e.isComputeEnabled}});var Vp=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 Kp=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 jp=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var Yp=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var Zp=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var tu=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 su=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var nu=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var iu=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var uu=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 du=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var gu=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 mu=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var qu=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}=fa(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}=Aa(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}=La(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}=_a(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}=hn(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}=Tn(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}=Wn(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}=Dn(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}=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)})};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}=Ao(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}=Lo(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}=_o(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}=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)})};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}=Ai(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}=Li(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}=_i(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)})};createPlugin=async t=>{let{path:s,headers:a,query:n,body:o}=Zi(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)})};getPlugin=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)})};getPluginByName=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)})};updatePlugin=async t=>{let{path:s,headers:a,query:n,body:o}=np(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)})};deletePlugin=async t=>{let{path:s,headers:a,query:n,body:o}=ip(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)})};listPlugins=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)})};getUsage=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)})};getMultipleUsages=async t=>{let{path:s,headers:a,query:n,body:o}=gp(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}=mp(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}=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)})};changeAISpendQuota=async t=>{let{path:s,headers:a,query:n,body:o}=fp(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}=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)})};introspect=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)})};upsertFile=async t=>{let{path:s,headers:a,query:n,body:o}=Pp(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}=Ap(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}=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)})};getFile=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)})};updateFileMetadata=async t=>{let{path:s,headers:a,query:n,body:o}=Lp(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}=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)})};listFilePassages=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)})};listTables=async t=>{let{path:s,headers:a,query:n,body:o}=_p(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}=Mp(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}=Fp(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}=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)})};duplicateTable=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)})};exportTable=async t=>{let{path:s,headers:a,query:n,body:o}=jp(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)})};getTableJobs=async t=>{let{path:s,headers:a,query:n,body:o}=Yp(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)})};importTable=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)})};updateTable=async t=>{let{path:s,headers:a,query:n,body:o}=tu(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}=su(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}=nu(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}=iu(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}=uu(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}=du(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}=gu(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}=mu(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}=qu(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 fu.default.isAxiosError(e)&&e.response?.data?Ve(e.response.data):Ve(e)}var I=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 I(({nextToken:s})=>this._client.listConversations({nextToken:s,...t}).then(a=>({...a,items:a.conversations})));participants=t=>new I(({nextToken:s})=>this._client.listParticipants({nextToken:s,...t}).then(a=>({...a,items:a.participants})));events=t=>new I(({nextToken:s})=>this._client.listEvents({nextToken:s,...t}).then(a=>({...a,items:a.events})));messages=t=>new I(({nextToken:s})=>this._client.listMessages({nextToken:s,...t}).then(a=>({...a,items:a.messages})));users=t=>new I(({nextToken:s})=>this._client.listUsers({nextToken:s,...t}).then(a=>({...a,items:a.users})));tasks=t=>new I(({nextToken:s})=>this._client.listTasks({nextToken:s,...t}).then(a=>({...a,items:a.tasks})));publicIntegrations=t=>new I(({nextToken:s})=>this._client.listPublicIntegrations({nextToken:s,...t}).then(a=>({...a,items:a.integrations})));bots=t=>new I(({nextToken:s})=>this._client.listBots({nextToken:s,...t}).then(a=>({...a,items:a.bots})));botIssues=t=>new I(({nextToken:s})=>this._client.listBotIssues({nextToken:s,...t}).then(a=>({...a,items:a.issues})));workspaces=t=>new I(({nextToken:s})=>this._client.listWorkspaces({nextToken:s,...t}).then(a=>({...a,items:a.workspaces})));publicWorkspaces=t=>new I(({nextToken:s})=>this._client.listPublicWorkspaces({nextToken:s,...t}).then(a=>({...a,items:a.workspaces})));workspaceMembers=t=>new I(({nextToken:s})=>this._client.listWorkspaceMembers({nextToken:s,...t}).then(a=>({...a,items:a.members})));integrations=t=>new I(({nextToken:s})=>this._client.listIntegrations({nextToken:s,...t}).then(a=>({...a,items:a.integrations})));interfaces=t=>new I(({nextToken:s})=>this._client.listInterfaces({nextToken:s,...t}).then(a=>({...a,items:a.interfaces})));activities=t=>new I(({nextToken:s})=>this._client.listActivities({nextToken:s,...t}).then(a=>({...a,items:a.activities})));files=t=>new I(({nextToken:s})=>this._client.listFiles({nextToken:s,...t}).then(a=>({...a,items:a.files})));filePassages=t=>new I(({nextToken:s})=>this._client.listFilePassages({nextToken:s,...t}).then(a=>({...a,items:a.passages})))};var Iu=100*1024*1024,el=Iu,tl=Iu,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:el,maxContentLength:tl,httpAgent:Ft.isNode?new bu.default.Agent({keepAlive:!0}):void 0,httpsAgent:Ft.isNode?new xu.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,indexing:r,expiresAt:d,publicContentImmediatelyAccessible:l})=>{if(i&&p)throw new L("Cannot provide both content and URL, please provide only one of them");if(i&&(p=await pt.default.get(i,{responseType:"arraybuffer"}).then(x=>x.data).catch(x=>{throw new L(`Failed to download file from provided URL: ${x.message}`,x)})),!p)throw new L("No content was provided for the file");let m,g;if(typeof p=="string"){let A=new TextEncoder().encode(p);m=A,g=A.byteLength}else if(p instanceof Uint8Array)m=p,g=m.byteLength;else if(p instanceof ArrayBuffer)m=p,g=m.byteLength;else if(p instanceof Blob)m=p,g=p.size;else throw new L("The provided content is not supported");let{file:q}=await this.upsertFile({key:t,tags:a,index:s,accessPolicies:o,contentType:n,size:g,expiresAt:d,indexing:r,publicContentImmediatelyAccessible:l}),R={"Content-Type":q.contentType};l&&(R["x-amz-tagging"]="public=true");try{await pt.default.put(q.uploadUrl,m,{maxBodyLength:1/0,headers:R})}catch(x){throw new L(`Failed to upload file: ${x.message}`,x,q)}return{file:{...q,size:g}}}};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});
1
+ "use strict";var Qc=Object.create;var we=Object.defineProperty;var Hc=Object.getOwnPropertyDescriptor;var Mc=Object.getOwnPropertyNames;var Oc=Object.getPrototypeOf,Fc=Object.prototype.hasOwnProperty;var g=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),hr=(e,t)=>{for(var s in t)we(e,s,{get:t[s],enumerable:!0})},br=(e,t,s,a)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Mc(t))!Fc.call(e,n)&&n!==s&&we(e,n,{get:()=>t[n],enumerable:!(a=Hc(t,n))||a.enumerable});return e};var H=(e,t,s)=>(s=e!=null?Qc(Oc(e)):{},br(t||!e||!e.__esModule?we(s,"default",{value:e,enumerable:!0}):s,e)),Nc=e=>br(we({},"__esModule",{value:!0}),e);var Ir=g((ty,xr)=>{"use strict";var Vc=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"]);xr.exports=e=>!Vc.has(e&&e.code)});var Ut=g((ay,Lr)=>{"use strict";Lr.exports=Error});var Gt=g((ny,Wr)=>{"use strict";Wr.exports=EvalError});var Lt=g((oy,Sr)=>{"use strict";Sr.exports=RangeError});var Wt=g((iy,Er)=>{"use strict";Er.exports=ReferenceError});var at=g((py,_r)=>{"use strict";_r.exports=SyntaxError});var j=g((uy,Dr)=>{"use strict";Dr.exports=TypeError});var St=g((cy,Qr)=>{"use strict";Qr.exports=URIError});var Mr=g((dy,Hr)=>{"use strict";Hr.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(var o 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 p=Object.getOwnPropertySymbols(t);if(p.length!==1||p[0]!==s||!Object.prototype.propertyIsEnumerable.call(t,s))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var i=Object.getOwnPropertyDescriptor(t,s);if(i.value!==n||i.enumerable!==!0)return!1}return!0}});var Et=g((ly,Fr)=>{"use strict";var Or=typeof Symbol<"u"&&Symbol,yd=Mr();Fr.exports=function(){return typeof Or!="function"||typeof Symbol!="function"||typeof Or("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:yd()}});var Vr=g((gy,Nr)=>{"use strict";var _t={__proto__:null,foo:{}},md=Object;Nr.exports=function(){return{__proto__:_t}.foo===_t.foo&&!(_t instanceof md)}});var jr=g((yy,Kr)=>{"use strict";var Rd="Function.prototype.bind called on incompatible ",qd=Object.prototype.toString,fd=Math.max,hd="[object Function]",$r=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},bd=function(t,s){for(var a=[],n=s||0,o=0;n<t.length;n+=1,o+=1)a[o]=t[n];return a},xd=function(e,t){for(var s="",a=0;a<e.length;a+=1)s+=e[a],a+1<e.length&&(s+=t);return s};Kr.exports=function(t){var s=this;if(typeof s!="function"||qd.apply(s)!==hd)throw new TypeError(Rd+s);for(var a=bd(arguments,1),n,o=function(){if(this instanceof n){var y=s.apply(this,$r(a,arguments));return Object(y)===y?y:this}return s.apply(t,$r(a,arguments))},p=fd(0,s.length-a.length),i=[],r=0;r<p;r++)i[r]="$"+r;if(n=Function("binder","return function ("+xd(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 z=g((my,zr)=>{"use strict";var Id=jr();zr.exports=Function.prototype.bind||Id});var Dt=g((Ry,Jr)=>{"use strict";var kd=Function.prototype.call,vd=Object.prototype.hasOwnProperty,Pd=z();Jr.exports=Pd.call(kd,vd)});var rs=g((qy,ts)=>{"use strict";var q,Ad=Ut(),Td=Gt(),Bd=Lt(),Cd=Wt(),oe=at(),ne=j(),wd=St(),es=Function,Qt=function(e){try{return es('"use strict"; return ('+e+").constructor;")()}catch{}},J=Object.getOwnPropertyDescriptor;if(J)try{J({},"")}catch{J=null}var Ht=function(){throw new ne},Ud=J?function(){try{return arguments.callee,Ht}catch{try{return J(arguments,"callee").get}catch{return Ht}}}():Ht,se=Et()(),Gd=Vr()(),v=Object.getPrototypeOf||(Gd?function(e){return e.__proto__}:null),ae={},Ld=typeof Uint8Array>"u"||!v?q:v(Uint8Array),Y={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?q:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?q:ArrayBuffer,"%ArrayIteratorPrototype%":se&&v?v([][Symbol.iterator]()):q,"%AsyncFromSyncIteratorPrototype%":q,"%AsyncFunction%":ae,"%AsyncGenerator%":ae,"%AsyncGeneratorFunction%":ae,"%AsyncIteratorPrototype%":ae,"%Atomics%":typeof Atomics>"u"?q:Atomics,"%BigInt%":typeof BigInt>"u"?q:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?q:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?q:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?q:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Ad,"%eval%":eval,"%EvalError%":Td,"%Float32Array%":typeof Float32Array>"u"?q:Float32Array,"%Float64Array%":typeof Float64Array>"u"?q:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?q:FinalizationRegistry,"%Function%":es,"%GeneratorFunction%":ae,"%Int8Array%":typeof Int8Array>"u"?q:Int8Array,"%Int16Array%":typeof Int16Array>"u"?q:Int16Array,"%Int32Array%":typeof Int32Array>"u"?q:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":se&&v?v(v([][Symbol.iterator]())):q,"%JSON%":typeof JSON=="object"?JSON:q,"%Map%":typeof Map>"u"?q:Map,"%MapIteratorPrototype%":typeof Map>"u"||!se||!v?q:v(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?q:Promise,"%Proxy%":typeof Proxy>"u"?q:Proxy,"%RangeError%":Bd,"%ReferenceError%":Cd,"%Reflect%":typeof Reflect>"u"?q:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?q:Set,"%SetIteratorPrototype%":typeof Set>"u"||!se||!v?q:v(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?q:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":se&&v?v(""[Symbol.iterator]()):q,"%Symbol%":se?Symbol:q,"%SyntaxError%":oe,"%ThrowTypeError%":Ud,"%TypedArray%":Ld,"%TypeError%":ne,"%Uint8Array%":typeof Uint8Array>"u"?q:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?q:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?q:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?q:Uint32Array,"%URIError%":wd,"%WeakMap%":typeof WeakMap>"u"?q:WeakMap,"%WeakRef%":typeof WeakRef>"u"?q:WeakRef,"%WeakSet%":typeof WeakSet>"u"?q:WeakSet};if(v)try{null.error}catch(e){Yr=v(v(e)),Y["%Error.prototype%"]=Yr}var Yr,Wd=function e(t){var s;if(t==="%AsyncFunction%")s=Qt("async function () {}");else if(t==="%GeneratorFunction%")s=Qt("function* () {}");else if(t==="%AsyncGeneratorFunction%")s=Qt("async function* () {}");else if(t==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(s=a.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&v&&(s=v(n.prototype))}return Y[t]=s,s},Xr={__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"]},be=z(),nt=Dt(),Sd=be.call(Function.call,Array.prototype.concat),Ed=be.call(Function.apply,Array.prototype.splice),Zr=be.call(Function.call,String.prototype.replace),ot=be.call(Function.call,String.prototype.slice),_d=be.call(Function.call,RegExp.prototype.exec),Dd=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Qd=/\\(\\)?/g,Hd=function(t){var s=ot(t,0,1),a=ot(t,-1);if(s==="%"&&a!=="%")throw new oe("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&s!=="%")throw new oe("invalid intrinsic syntax, expected opening `%`");var n=[];return Zr(t,Dd,function(o,p,i,r){n[n.length]=i?Zr(r,Qd,"$1"):p||o}),n},Md=function(t,s){var a=t,n;if(nt(Xr,a)&&(n=Xr[a],a="%"+n[0]+"%"),nt(Y,a)){var o=Y[a];if(o===ae&&(o=Wd(a)),typeof o>"u"&&!s)throw new ne("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:o}}throw new oe("intrinsic "+t+" does not exist!")};ts.exports=function(t,s){if(typeof t!="string"||t.length===0)throw new ne("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof s!="boolean")throw new ne('"allowMissing" argument must be a boolean');if(_d(/^%?[^%]*%?$/,t)===null)throw new oe("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=Hd(t),n=a.length>0?a[0]:"",o=Md("%"+n+"%",s),p=o.name,i=o.value,r=!1,d=o.alias;d&&(n=d[0],Ed(a,Sd([0,1],d)));for(var y=1,m=!0;y<a.length;y+=1){var l=a[y],h=ot(l,0,1),R=ot(l,-1);if((h==='"'||h==="'"||h==="`"||R==='"'||R==="'"||R==="`")&&h!==R)throw new oe("property names with quotes must have matching quotes");if((l==="constructor"||!m)&&(r=!0),n+="."+l,p="%"+n+"%",nt(Y,p))i=Y[p];else if(i!=null){if(!(l in i)){if(!s)throw new ne("base intrinsic for "+t+" exists, but the property is not available.");return}if(J&&y+1>=a.length){var b=J(i,l);m=!!b,m&&"get"in b&&!("originalValue"in b.get)?i=b.get:i=i[l]}else m=nt(i,l),i=i[l];m&&!r&&(Y[p]=i)}}return i}});var Mt=g((fy,ss)=>{"use strict";ss.exports=Object});var ns=g((hy,as)=>{"use strict";as.exports=Math.abs});var is=g((by,os)=>{"use strict";os.exports=Math.floor});var us=g((xy,ps)=>{"use strict";ps.exports=Math.max});var ds=g((Iy,cs)=>{"use strict";cs.exports=Math.min});var gs=g((ky,ls)=>{"use strict";ls.exports=Math.pow});var ms=g((vy,ys)=>{"use strict";ys.exports=Math.round});var qs=g((Py,Rs)=>{"use strict";Rs.exports=Number.isNaN||function(t){return t!==t}});var hs=g((Ay,fs)=>{"use strict";var Od=qs();fs.exports=function(t){return Od(t)||t===0?t:t<0?-1:1}});var xs=g((Ty,bs)=>{"use strict";bs.exports=Object.getOwnPropertyDescriptor});var xe=g((By,Is)=>{"use strict";var it=xs();if(it)try{it([],"length")}catch{it=null}Is.exports=it});var Ie=g((Cy,ks)=>{"use strict";var pt=Object.defineProperty||!1;if(pt)try{pt({},"a",{value:1})}catch{pt=!1}ks.exports=pt});var Ot=g((wy,vs)=>{"use strict";vs.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var Ft=g((Uy,Ps)=>{"use strict";var Fd=Mt();Ps.exports=Fd.getPrototypeOf||null});var ut=g((Gy,As)=>{"use strict";As.exports=Function.prototype.call});var Nt=g((Ly,Ts)=>{"use strict";Ts.exports=Function.prototype.apply});var Cs=g((Wy,Bs)=>{"use strict";Bs.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var Us=g((Sy,ws)=>{"use strict";var Nd=z(),Vd=Nt(),$d=ut(),Kd=Cs();ws.exports=Kd||Nd.call($d,Vd)});var Ls=g((Ey,Gs)=>{"use strict";var jd=z(),zd=j(),Jd=ut(),Yd=Us();Gs.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new zd("a function is required");return Yd(jd,Jd,t)}});var Qs=g((_y,Ds)=>{"use strict";var Xd=Ls(),Ws=xe(),Es;try{Es=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var Vt=!!Es&&Ws&&Ws(Object.prototype,"__proto__"),_s=Object,Ss=_s.getPrototypeOf;Ds.exports=Vt&&typeof Vt.get=="function"?Xd([Vt.get]):typeof Ss=="function"?function(t){return Ss(t==null?t:_s(t))}:!1});var Ns=g((Dy,Fs)=>{"use strict";var Hs=Ot(),Ms=Ft(),Os=Qs();Fs.exports=Hs?function(t){return Hs(t)}:Ms?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return Ms(t)}:Os?function(t){return Os(t)}:null});var lt=g((Qy,Js)=>{"use strict";var f,Zd=Mt(),el=Ut(),tl=Gt(),rl=Lt(),sl=Wt(),ce=at(),ue=j(),al=St(),nl=ns(),ol=is(),il=us(),pl=ds(),ul=gs(),cl=ms(),dl=hs(),js=Function,$t=function(e){try{return js('"use strict"; return ('+e+").constructor;")()}catch{}},ke=xe(),ll=Ie(),Kt=function(){throw new ue},gl=ke?function(){try{return arguments.callee,Kt}catch{try{return ke(arguments,"callee").get}catch{return Kt}}}():Kt,ie=Et()(),P=Ns(),yl=Ft(),ml=Ot(),zs=Nt(),ve=ut(),pe={},Rl=typeof Uint8Array>"u"||!P?f:P(Uint8Array),X={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?f:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?f:ArrayBuffer,"%ArrayIteratorPrototype%":ie&&P?P([][Symbol.iterator]()):f,"%AsyncFromSyncIteratorPrototype%":f,"%AsyncFunction%":pe,"%AsyncGenerator%":pe,"%AsyncGeneratorFunction%":pe,"%AsyncIteratorPrototype%":pe,"%Atomics%":typeof Atomics>"u"?f:Atomics,"%BigInt%":typeof BigInt>"u"?f:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?f:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?f:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?f:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":el,"%eval%":eval,"%EvalError%":tl,"%Float32Array%":typeof Float32Array>"u"?f:Float32Array,"%Float64Array%":typeof Float64Array>"u"?f:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?f:FinalizationRegistry,"%Function%":js,"%GeneratorFunction%":pe,"%Int8Array%":typeof Int8Array>"u"?f:Int8Array,"%Int16Array%":typeof Int16Array>"u"?f:Int16Array,"%Int32Array%":typeof Int32Array>"u"?f:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":ie&&P?P(P([][Symbol.iterator]())):f,"%JSON%":typeof JSON=="object"?JSON:f,"%Map%":typeof Map>"u"?f:Map,"%MapIteratorPrototype%":typeof Map>"u"||!ie||!P?f:P(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":Zd,"%Object.getOwnPropertyDescriptor%":ke,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?f:Promise,"%Proxy%":typeof Proxy>"u"?f:Proxy,"%RangeError%":rl,"%ReferenceError%":sl,"%Reflect%":typeof Reflect>"u"?f:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?f:Set,"%SetIteratorPrototype%":typeof Set>"u"||!ie||!P?f:P(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?f:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":ie&&P?P(""[Symbol.iterator]()):f,"%Symbol%":ie?Symbol:f,"%SyntaxError%":ce,"%ThrowTypeError%":gl,"%TypedArray%":Rl,"%TypeError%":ue,"%Uint8Array%":typeof Uint8Array>"u"?f:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?f:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?f:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?f:Uint32Array,"%URIError%":al,"%WeakMap%":typeof WeakMap>"u"?f:WeakMap,"%WeakRef%":typeof WeakRef>"u"?f:WeakRef,"%WeakSet%":typeof WeakSet>"u"?f:WeakSet,"%Function.prototype.call%":ve,"%Function.prototype.apply%":zs,"%Object.defineProperty%":ll,"%Object.getPrototypeOf%":yl,"%Math.abs%":nl,"%Math.floor%":ol,"%Math.max%":il,"%Math.min%":pl,"%Math.pow%":ul,"%Math.round%":cl,"%Math.sign%":dl,"%Reflect.getPrototypeOf%":ml};if(P)try{null.error}catch(e){Vs=P(P(e)),X["%Error.prototype%"]=Vs}var Vs,ql=function e(t){var s;if(t==="%AsyncFunction%")s=$t("async function () {}");else if(t==="%GeneratorFunction%")s=$t("function* () {}");else if(t==="%AsyncGeneratorFunction%")s=$t("async function* () {}");else if(t==="%AsyncGenerator%"){var a=e("%AsyncGeneratorFunction%");a&&(s=a.prototype)}else if(t==="%AsyncIteratorPrototype%"){var n=e("%AsyncGenerator%");n&&P&&(s=P(n.prototype))}return X[t]=s,s},$s={__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"]},Pe=z(),ct=Dt(),fl=Pe.call(ve,Array.prototype.concat),hl=Pe.call(zs,Array.prototype.splice),Ks=Pe.call(ve,String.prototype.replace),dt=Pe.call(ve,String.prototype.slice),bl=Pe.call(ve,RegExp.prototype.exec),xl=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,Il=/\\(\\)?/g,kl=function(t){var s=dt(t,0,1),a=dt(t,-1);if(s==="%"&&a!=="%")throw new ce("invalid intrinsic syntax, expected closing `%`");if(a==="%"&&s!=="%")throw new ce("invalid intrinsic syntax, expected opening `%`");var n=[];return Ks(t,xl,function(o,p,i,r){n[n.length]=i?Ks(r,Il,"$1"):p||o}),n},vl=function(t,s){var a=t,n;if(ct($s,a)&&(n=$s[a],a="%"+n[0]+"%"),ct(X,a)){var o=X[a];if(o===pe&&(o=ql(a)),typeof o>"u"&&!s)throw new ue("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:n,name:a,value:o}}throw new ce("intrinsic "+t+" does not exist!")};Js.exports=function(t,s){if(typeof t!="string"||t.length===0)throw new ue("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof s!="boolean")throw new ue('"allowMissing" argument must be a boolean');if(bl(/^%?[^%]*%?$/,t)===null)throw new ce("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var a=kl(t),n=a.length>0?a[0]:"",o=vl("%"+n+"%",s),p=o.name,i=o.value,r=!1,d=o.alias;d&&(n=d[0],hl(a,fl([0,1],d)));for(var y=1,m=!0;y<a.length;y+=1){var l=a[y],h=dt(l,0,1),R=dt(l,-1);if((h==='"'||h==="'"||h==="`"||R==='"'||R==="'"||R==="`")&&h!==R)throw new ce("property names with quotes must have matching quotes");if((l==="constructor"||!m)&&(r=!0),n+="."+l,p="%"+n+"%",ct(X,p))i=X[p];else if(i!=null){if(!(l in i)){if(!s)throw new ue("base intrinsic for "+t+" exists, but the property is not available.");return}if(ke&&y+1>=a.length){var b=ke(i,l);m=!!b,m&&"get"in b&&!("originalValue"in b.get)?i=b.get:i=i[l]}else m=ct(i,l),i=i[l];m&&!r&&(X[p]=i)}}return i}});var ea=g((Hy,Zs)=>{"use strict";var Ys=Ie(),Pl=at(),de=j(),Xs=xe();Zs.exports=function(t,s,a){if(!t||typeof t!="object"&&typeof t!="function")throw new de("`obj` must be an object or a function`");if(typeof s!="string"&&typeof s!="symbol")throw new de("`property` must be a string or a symbol`");if(arguments.length>3&&typeof arguments[3]!="boolean"&&arguments[3]!==null)throw new de("`nonEnumerable`, if provided, must be a boolean or null");if(arguments.length>4&&typeof arguments[4]!="boolean"&&arguments[4]!==null)throw new de("`nonWritable`, if provided, must be a boolean or null");if(arguments.length>5&&typeof arguments[5]!="boolean"&&arguments[5]!==null)throw new de("`nonConfigurable`, if provided, must be a boolean or null");if(arguments.length>6&&typeof arguments[6]!="boolean")throw new de("`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=!!Xs&&Xs(t,s);if(Ys)Ys(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 Pl("This environment does not support defining a property as non-configurable, non-writable, or non-enumerable.")}});var sa=g((My,ra)=>{"use strict";var jt=Ie(),ta=function(){return!!jt};ta.hasArrayLengthDefineBug=function(){if(!jt)return null;try{return jt([],"length",{value:1}).length!==1}catch{return!0}};ra.exports=ta});var pa=g((Oy,ia)=>{"use strict";var Al=lt(),aa=ea(),Tl=sa()(),na=xe(),oa=j(),Bl=Al("%Math.floor%");ia.exports=function(t,s){if(typeof t!="function")throw new oa("`fn` is not a function");if(typeof s!="number"||s<0||s>4294967295||Bl(s)!==s)throw new oa("`length` must be a positive 32-bit integer");var a=arguments.length>2&&!!arguments[2],n=!0,o=!0;if("length"in t&&na){var p=na(t,"length");p&&!p.configurable&&(n=!1),p&&!p.writable&&(o=!1)}return(n||o||!a)&&(Tl?aa(t,"length",s,!0,!0):aa(t,"length",s)),t}});var ya=g((Fy,gt)=>{"use strict";var zt=z(),yt=lt(),Cl=pa(),wl=j(),da=yt("%Function.prototype.apply%"),la=yt("%Function.prototype.call%"),ga=yt("%Reflect.apply%",!0)||zt.call(la,da),ua=Ie(),Ul=yt("%Math.max%");gt.exports=function(t){if(typeof t!="function")throw new wl("a function is required");var s=ga(zt,la,arguments);return Cl(s,1+Ul(0,t.length-(arguments.length-1)),!0)};var ca=function(){return ga(zt,da,arguments)};ua?ua(gt.exports,"apply",{value:ca}):gt.exports.apply=ca});var fa=g((Ny,qa)=>{"use strict";var ma=lt(),Ra=ya(),Gl=Ra(ma("String.prototype.indexOf"));qa.exports=function(t,s){var a=ma(t,!!s);return typeof a=="function"&&Gl(t,".prototype.")>-1?Ra(a):a}});var ba=g((Vy,ha)=>{ha.exports=require("util").inspect});var Ha=g(($y,Qa)=>{var nr=typeof Map=="function"&&Map.prototype,Jt=Object.getOwnPropertyDescriptor&&nr?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Rt=nr&&Jt&&typeof Jt.get=="function"?Jt.get:null,xa=nr&&Map.prototype.forEach,or=typeof Set=="function"&&Set.prototype,Yt=Object.getOwnPropertyDescriptor&&or?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,qt=or&&Yt&&typeof Yt.get=="function"?Yt.get:null,Ia=or&&Set.prototype.forEach,Ll=typeof WeakMap=="function"&&WeakMap.prototype,Te=Ll?WeakMap.prototype.has:null,Wl=typeof WeakSet=="function"&&WeakSet.prototype,Be=Wl?WeakSet.prototype.has:null,Sl=typeof WeakRef=="function"&&WeakRef.prototype,ka=Sl?WeakRef.prototype.deref:null,El=Boolean.prototype.valueOf,_l=Object.prototype.toString,Dl=Function.prototype.toString,Ql=String.prototype.match,ir=String.prototype.slice,N=String.prototype.replace,Hl=String.prototype.toUpperCase,va=String.prototype.toLowerCase,La=RegExp.prototype.test,Pa=Array.prototype.concat,U=Array.prototype.join,Ml=Array.prototype.slice,Aa=Math.floor,er=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Xt=Object.getOwnPropertySymbols,tr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,le=typeof Symbol=="function"&&typeof Symbol.iterator=="object",B=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===le||"symbol")?Symbol.toStringTag:null,Wa=Object.prototype.propertyIsEnumerable,Ta=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function Ba(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||La.call(/e/,t))return t;var s=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var a=e<0?-Aa(-e):Aa(e);if(a!==e){var n=String(a),o=ir.call(t,n.length+1);return N.call(n,s,"$&_")+"."+N.call(N.call(o,/([0-9]{3})/g,"$&_"),/_$/,"")}}return N.call(t,s,"$&_")}var rr=ba(),Ca=rr.custom,wa=Ea(Ca)?Ca:null;Qa.exports=function e(t,s,a,n){var o=s||{};if(F(o,"quoteStyle")&&o.quoteStyle!=="single"&&o.quoteStyle!=="double")throw new TypeError('option "quoteStyle" must be "single" or "double"');if(F(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=F(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(F(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(F(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 Da(t,o);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var r=String(t);return i?Ba(t,r):r}if(typeof t=="bigint"){var d=String(t)+"n";return i?Ba(t,d):d}var y=typeof o.depth>"u"?5:o.depth;if(typeof a>"u"&&(a=0),a>=y&&y>0&&typeof t=="object")return sr(t)?"[Array]":"[Object]";var m=ng(o,a);if(typeof n>"u")n=[];else if(_a(n,t)>=0)return"[Circular]";function l(w,Q,W){if(Q&&(n=Ml.call(n),n.push(Q)),W){var fe={depth:o.depth};return F(o,"quoteStyle")&&(fe.quoteStyle=o.quoteStyle),e(w,fe,a+1,n)}return e(w,o,a+1,n)}if(typeof t=="function"&&!Ua(t)){var h=Jl(t),R=mt(t,l);return"[Function"+(h?": "+h:" (anonymous)")+"]"+(R.length>0?" { "+U.call(R,", ")+" }":"")}if(Ea(t)){var b=le?N.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):tr.call(t);return typeof t=="object"&&!le?Ae(b):b}if(rg(t)){for(var C="<"+va.call(String(t.nodeName)),x=t.attributes||[],L=0;L<x.length;L++)C+=" "+x[L].name+"="+Sa(Ol(x[L].value),"double",o);return C+=">",t.childNodes&&t.childNodes.length&&(C+="..."),C+="</"+va.call(String(t.nodeName))+">",C}if(sr(t)){if(t.length===0)return"[]";var _=mt(t,l);return m&&!ag(_)?"["+ar(_,m)+"]":"[ "+U.call(_,", ")+" ]"}if(Nl(t)){var ee=mt(t,l);return!("cause"in Error.prototype)&&"cause"in t&&!Wa.call(t,"cause")?"{ ["+String(t)+"] "+U.call(Pa.call("[cause]: "+l(t.cause),ee),", ")+" }":ee.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+U.call(ee,", ")+" }"}if(typeof t=="object"&&p){if(wa&&typeof t[wa]=="function"&&rr)return rr(t,{depth:y-a});if(p!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(Yl(t)){var me=[];return xa&&xa.call(t,function(w,Q){me.push(l(Q,t,!0)+" => "+l(w,t))}),Ga("Map",Rt.call(t),me,m)}if(eg(t)){var Re=[];return Ia&&Ia.call(t,function(w){Re.push(l(w,t))}),Ga("Set",qt.call(t),Re,m)}if(Xl(t))return Zt("WeakMap");if(tg(t))return Zt("WeakSet");if(Zl(t))return Zt("WeakRef");if($l(t))return Ae(l(Number(t)));if(jl(t))return Ae(l(er.call(t)));if(Kl(t))return Ae(El.call(t));if(Vl(t))return Ae(l(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(!Fl(t)&&!Ua(t)){var $=mt(t,l),qe=Ta?Ta(t)===Object.prototype:t instanceof Object||t.constructor===Object,D=t instanceof Object?"":"null prototype",te=!qe&&B&&Object(t)===t&&B in t?ir.call(V(t),8,-1):D?"Object":"",K=qe||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",re=K+(te||D?"["+U.call(Pa.call([],te||[],D||[]),": ")+"] ":"");return $.length===0?re+"{}":m?re+"{"+ar($,m)+"}":re+"{ "+U.call($,", ")+" }"}return String(t)};function Sa(e,t,s){var a=(s.quoteStyle||t)==="double"?'"':"'";return a+e+a}function Ol(e){return N.call(String(e),/"/g,"&quot;")}function sr(e){return V(e)==="[object Array]"&&(!B||!(typeof e=="object"&&B in e))}function Fl(e){return V(e)==="[object Date]"&&(!B||!(typeof e=="object"&&B in e))}function Ua(e){return V(e)==="[object RegExp]"&&(!B||!(typeof e=="object"&&B in e))}function Nl(e){return V(e)==="[object Error]"&&(!B||!(typeof e=="object"&&B in e))}function Vl(e){return V(e)==="[object String]"&&(!B||!(typeof e=="object"&&B in e))}function $l(e){return V(e)==="[object Number]"&&(!B||!(typeof e=="object"&&B in e))}function Kl(e){return V(e)==="[object Boolean]"&&(!B||!(typeof e=="object"&&B in e))}function Ea(e){if(le)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!tr)return!1;try{return tr.call(e),!0}catch{}return!1}function jl(e){if(!e||typeof e!="object"||!er)return!1;try{return er.call(e),!0}catch{}return!1}var zl=Object.prototype.hasOwnProperty||function(e){return e in this};function F(e,t){return zl.call(e,t)}function V(e){return _l.call(e)}function Jl(e){if(e.name)return e.name;var t=Ql.call(Dl.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function _a(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 Yl(e){if(!Rt||!e||typeof e!="object")return!1;try{Rt.call(e);try{qt.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function Xl(e){if(!Te||!e||typeof e!="object")return!1;try{Te.call(e,Te);try{Be.call(e,Be)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function Zl(e){if(!ka||!e||typeof e!="object")return!1;try{return ka.call(e),!0}catch{}return!1}function eg(e){if(!qt||!e||typeof e!="object")return!1;try{qt.call(e);try{Rt.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function tg(e){if(!Be||!e||typeof e!="object")return!1;try{Be.call(e,Be);try{Te.call(e,Te)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function rg(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function Da(e,t){if(e.length>t.maxStringLength){var s=e.length-t.maxStringLength,a="... "+s+" more character"+(s>1?"s":"");return Da(ir.call(e,0,t.maxStringLength),t)+a}var n=N.call(N.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,sg);return Sa(n,"single",t)}function sg(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":"")+Hl.call(t.toString(16))}function Ae(e){return"Object("+e+")"}function Zt(e){return e+" { ? }"}function Ga(e,t,s,a){var n=a?ar(s,a):U.call(s,", ");return e+" ("+t+") {"+n+"}"}function ag(e){for(var t=0;t<e.length;t++)if(_a(e[t],`
2
+ `)>=0)return!1;return!0}function ng(e,t){var s;if(e.indent===" ")s=" ";else if(typeof e.indent=="number"&&e.indent>0)s=U.call(Array(e.indent+1)," ");else return null;return{base:s,prev:U.call(Array(t+1),s)}}function ar(e,t){if(e.length===0)return"";var s=`
3
+ `+t.prev+t.base;return s+U.call(e,","+s)+`
4
+ `+t.prev}function mt(e,t){var s=sr(e),a=[];if(s){a.length=e.length;for(var n=0;n<e.length;n++)a[n]=F(e,n)?t(e[n],e):""}var o=typeof Xt=="function"?Xt(e):[],p;if(le){p={};for(var i=0;i<o.length;i++)p["$"+o[i]]=o[i]}for(var r in e)F(e,r)&&(s&&String(Number(r))===r&&r<e.length||le&&p["$"+r]instanceof Symbol||(La.call(/[^\w$]/,r)?a.push(t(r,e)+": "+t(e[r],e)):a.push(r+": "+t(e[r],e))));if(typeof Xt=="function")for(var d=0;d<o.length;d++)Wa.call(e,o[d])&&a.push("["+t(o[d])+"]: "+t(e[o[d]],e));return a}});var Oa=g((Ky,Ma)=>{"use strict";var pr=rs(),ge=fa(),og=Ha(),ig=pr("%TypeError%"),ft=pr("%WeakMap%",!0),ht=pr("%Map%",!0),pg=ge("WeakMap.prototype.get",!0),ug=ge("WeakMap.prototype.set",!0),cg=ge("WeakMap.prototype.has",!0),dg=ge("Map.prototype.get",!0),lg=ge("Map.prototype.set",!0),gg=ge("Map.prototype.has",!0),ur=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},yg=function(e,t){var s=ur(e,t);return s&&s.value},mg=function(e,t,s){var a=ur(e,t);a?a.value=s:e.next={key:t,next:e.next,value:s}},Rg=function(e,t){return!!ur(e,t)};Ma.exports=function(){var t,s,a,n={assert:function(o){if(!n.has(o))throw new ig("Side channel does not contain "+og(o))},get:function(o){if(ft&&o&&(typeof o=="object"||typeof o=="function")){if(t)return pg(t,o)}else if(ht){if(s)return dg(s,o)}else if(a)return yg(a,o)},has:function(o){if(ft&&o&&(typeof o=="object"||typeof o=="function")){if(t)return cg(t,o)}else if(ht){if(s)return gg(s,o)}else if(a)return Rg(a,o);return!1},set:function(o,p){ft&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new ft),ug(t,o,p)):ht?(s||(s=new ht),lg(s,o,p)):(a||(a={key:{},next:null}),mg(a,o,p))}};return n}});var bt=g((jy,Fa)=>{"use strict";var qg=String.prototype.replace,fg=/%20/g,cr={RFC1738:"RFC1738",RFC3986:"RFC3986"};Fa.exports={default:cr.RFC3986,formatters:{RFC1738:function(e){return qg.call(e,fg,"+")},RFC3986:function(e){return String(e)}},RFC1738:cr.RFC1738,RFC3986:cr.RFC3986}});var lr=g((zy,Va)=>{"use strict";var hg=bt(),dr=Object.prototype.hasOwnProperty,Z=Array.isArray,G=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),bg=function(t){for(;t.length>1;){var s=t.pop(),a=s.obj[s.prop];if(Z(a)){for(var n=[],o=0;o<a.length;++o)typeof a[o]<"u"&&n.push(a[o]);s.obj[s.prop]=n}}},Na=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},xg=function e(t,s,a){if(!s)return t;if(typeof s!="object"){if(Z(t))t.push(s);else if(t&&typeof t=="object")(a&&(a.plainObjects||a.allowPrototypes)||!dr.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 Z(t)&&!Z(s)&&(n=Na(t,a)),Z(t)&&Z(s)?(s.forEach(function(o,p){if(dr.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 dr.call(o,p)?o[p]=e(o[p],i,a):o[p]=i,o},n)},Ig=function(t,s){return Object.keys(s).reduce(function(a,n){return a[n]=s[n],a},t)},kg=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}},vg=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(y){return"%26%23"+parseInt(y.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===hg.RFC1738&&(d===40||d===41)){i+=p.charAt(r);continue}if(d<128){i=i+G[d];continue}if(d<2048){i=i+(G[192|d>>6]+G[128|d&63]);continue}if(d<55296||d>=57344){i=i+(G[224|d>>12]+G[128|d>>6&63]+G[128|d&63]);continue}r+=1,d=65536+((d&1023)<<10|p.charCodeAt(r)&1023),i+=G[240|d>>18]+G[128|d>>12&63]+G[128|d>>6&63]+G[128|d&63]}return i},Pg=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],y=p[d];typeof y=="object"&&y!==null&&a.indexOf(y)===-1&&(s.push({obj:p,prop:d}),a.push(y))}return bg(s),t},Ag=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},Tg=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},Bg=function(t,s){return[].concat(t,s)},Cg=function(t,s){if(Z(t)){for(var a=[],n=0;n<t.length;n+=1)a.push(s(t[n]));return a}return s(t)};Va.exports={arrayToObject:Na,assign:Ig,combine:Bg,compact:Pg,decode:kg,encode:vg,isBuffer:Tg,isRegExp:Ag,maybeMap:Cg,merge:xg}});var Ya=g((Jy,Ja)=>{"use strict";var ja=Oa(),yr=lr(),Ce=bt(),wg=Object.prototype.hasOwnProperty,$a={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,s){return t+"["+s+"]"},repeat:function(t){return t}},E=Array.isArray,Ug=String.prototype.split,Gg=Array.prototype.push,za=function(e,t){Gg.apply(e,E(t)?t:[t])},Lg=Date.prototype.toISOString,Ka=Ce.default,T={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:yr.encode,encodeValuesOnly:!1,format:Ka,formatter:Ce.formatters[Ka],indices:!1,serializeDate:function(t){return Lg.call(t)},skipNulls:!1,strictNullHandling:!1},Wg=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},gr={},Sg=function e(t,s,a,n,o,p,i,r,d,y,m,l,h,R,b,C){for(var x=t,L=C,_=0,ee=!1;(L=L.get(gr))!==void 0&&!ee;){var me=L.get(t);if(_+=1,typeof me<"u"){if(me===_)throw new RangeError("Cyclic object value");ee=!0}typeof L.get(gr)>"u"&&(_=0)}if(typeof r=="function"?x=r(s,x):x instanceof Date?x=m(x):a==="comma"&&E(x)&&(x=yr.maybeMap(x,function(vt){return vt instanceof Date?m(vt):vt})),x===null){if(o)return i&&!R?i(s,T.encoder,b,"key",l):s;x=""}if(Wg(x)||yr.isBuffer(x)){if(i){var Re=R?s:i(s,T.encoder,b,"key",l);if(a==="comma"&&R){for(var $=Ug.call(String(x),","),qe="",D=0;D<$.length;++D)qe+=(D===0?"":",")+h(i($[D],T.encoder,b,"value",l));return[h(Re)+(n&&E(x)&&$.length===1?"[]":"")+"="+qe]}return[h(Re)+"="+h(i(x,T.encoder,b,"value",l))]}return[h(s)+"="+h(String(x))]}var te=[];if(typeof x>"u")return te;var K;if(a==="comma"&&E(x))K=[{value:x.length>0?x.join(",")||null:void 0}];else if(E(r))K=r;else{var re=Object.keys(x);K=d?re.sort(d):re}for(var w=n&&E(x)&&x.length===1?s+"[]":s,Q=0;Q<K.length;++Q){var W=K[Q],fe=typeof W=="object"&&typeof W.value<"u"?W.value:x[W];if(!(p&&fe===null)){var Dc=E(x)?typeof a=="function"?a(w,W):w:w+(y?"."+W:"["+W+"]");C.set(t,_);var fr=ja();fr.set(gr,C),za(te,e(fe,Dc,a,n,o,p,i,r,d,y,m,l,h,R,b,fr))}}return te},Eg=function(t){if(!t)return T;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||T.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=Ce.default;if(typeof t.format<"u"){if(!wg.call(Ce.formatters,t.format))throw new TypeError("Unknown format option provided.");a=t.format}var n=Ce.formatters[a],o=T.filter;return(typeof t.filter=="function"||E(t.filter))&&(o=t.filter),{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:T.addQueryPrefix,allowDots:typeof t.allowDots>"u"?T.allowDots:!!t.allowDots,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:T.charsetSentinel,delimiter:typeof t.delimiter>"u"?T.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:T.encode,encoder:typeof t.encoder=="function"?t.encoder:T.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:T.encodeValuesOnly,filter:o,format:a,formatter:n,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:T.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:T.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:T.strictNullHandling}};Ja.exports=function(e,t){var s=e,a=Eg(t),n,o;typeof a.filter=="function"?(o=a.filter,s=o("",s)):E(a.filter)&&(o=a.filter,n=o);var p=[];if(typeof s!="object"||s===null)return"";var i;t&&t.arrayFormat in $a?i=t.arrayFormat:t&&"indices"in t?i=t.indices?"indices":"repeat":i="indices";var r=$a[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 y=ja(),m=0;m<n.length;++m){var l=n[m];a.skipNulls&&s[l]===null||za(p,Sg(s[l],l,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,y))}var h=p.join(a.delimiter),R=a.addQueryPrefix===!0?"?":"";return a.charsetSentinel&&(a.charset==="iso-8859-1"?R+="utf8=%26%2310003%3B&":R+="utf8=%E2%9C%93&"),h.length>0?R+h:""}});var en=g((Yy,Za)=>{"use strict";var ye=lr(),mr=Object.prototype.hasOwnProperty,_g=Array.isArray,A={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:ye.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},Dg=function(e){return e.replace(/&#(\d+);/g,function(t,s){return String.fromCharCode(parseInt(s,10))})},Xa=function(e,t){return e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1?e.split(","):e},Qg="utf8=%26%2310003%3B",Hg="utf8=%E2%9C%93",Mg=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]===Hg?d="utf-8":p[r]===Qg&&(d="iso-8859-1"),i=r,r=p.length);for(r=0;r<p.length;++r)if(r!==i){var y=p[r],m=y.indexOf("]="),l=m===-1?y.indexOf("="):m+1,h,R;l===-1?(h=s.decoder(y,A.decoder,d,"key"),R=s.strictNullHandling?null:""):(h=s.decoder(y.slice(0,l),A.decoder,d,"key"),R=ye.maybeMap(Xa(y.slice(l+1),s),function(b){return s.decoder(b,A.decoder,d,"value")})),R&&s.interpretNumericEntities&&d==="iso-8859-1"&&(R=Dg(R)),y.indexOf("[]=")>-1&&(R=_g(R)?[R]:R),mr.call(a,h)?a[h]=ye.combine(a[h],R):a[h]=R}return a},Og=function(e,t,s,a){for(var n=a?t:Xa(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},Fg=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,y=[];if(d){if(!a.plainObjects&&mr.call(Object.prototype,d)&&!a.allowPrototypes)return;y.push(d)}for(var m=0;a.depth>0&&(r=i.exec(o))!==null&&m<a.depth;){if(m+=1,!a.plainObjects&&mr.call(Object.prototype,r[1].slice(1,-1))&&!a.allowPrototypes)return;y.push(r[1])}return r&&y.push("["+o.slice(r.index)+"]"),Og(y,s,a,n)}},Ng=function(t){if(!t)return A;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"?A.charset:t.charset;return{allowDots:typeof t.allowDots>"u"?A.allowDots:!!t.allowDots,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:A.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:A.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:A.arrayLimit,charset:s,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:A.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:A.comma,decoder:typeof t.decoder=="function"?t.decoder:A.decoder,delimiter:typeof t.delimiter=="string"||ye.isRegExp(t.delimiter)?t.delimiter:A.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:A.depth,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:A.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:A.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:A.plainObjects,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:A.strictNullHandling}};Za.exports=function(e,t){var s=Ng(t);if(e===""||e===null||typeof e>"u")return s.plainObjects?Object.create(null):{};for(var a=typeof e=="string"?Mg(e,s):e,n=s.plainObjects?Object.create(null):{},o=Object.keys(a),p=0;p<o.length;++p){var i=o[p],r=Fg(i,a[i],s,typeof e=="string");n=ye.merge(n,r,s)}return s.allowSparse===!0?n:ye.compact(n)}});var rn=g((Xy,tn)=>{"use strict";var Vg=Ya(),$g=en(),Kg=bt();tn.exports={formats:Kg,parse:$g,stringify:Vg}});var Xg={};hr(Xg,{AlreadyExistsError:()=>Ye,BreakingChangesError:()=>rt,Client:()=>qr,ForbiddenError:()=>Ee,InternalError:()=>We,InvalidDataFormatError:()=>Fe,InvalidIdentifierError:()=>Ne,InvalidJsonSchemaError:()=>Oe,InvalidPayloadError:()=>De,InvalidQueryError:()=>ze,LimitExceededError:()=>tt,MethodNotFoundError:()=>He,PayloadTooLargeError:()=>_e,PaymentRequiredError:()=>Ze,QuotaExceededError:()=>et,RateLimitedError:()=>Xe,ReferenceConstraintError:()=>$e,ReferenceNotFoundError:()=>je,RelationConflictError:()=>Ve,ResourceLockedConflictError:()=>Ke,ResourceNotFoundError:()=>Me,RuntimeError:()=>Je,UnauthorizedError:()=>Se,UnknownError:()=>O,UnsupportedMediaTypeError:()=>Qe,UploadFileError:()=>S,axios:()=>Zg,axiosRetry:()=>Ct,errorFrom:()=>st,isApiError:()=>Ur});module.exports=Nc(Xg);var Zg=H(require("axios"));var Ct={};hr(Ct,{DEFAULT_OPTIONS:()=>Cr,default:()=>Bt,exponentialDelay:()=>Tr,isIdempotentRequestError:()=>At,isNetworkError:()=>Pt,isNetworkOrIdempotentRequestError:()=>Tt,isRetryableError:()=>Ge,isSafeRequestError:()=>Ar,linearDelay:()=>Br,namespace:()=>Ue,retryAfter:()=>Le});var vr=H(Ir(),1),Ue="axios-retry";function Pt(e){let t=["ERR_CANCELED","ECONNABORTED"];return e.response||!e.code||t.includes(e.code)?!1:(0,vr.default)(e)}var Pr=["get","head","options"],$c=Pr.concat(["put","delete"]);function Ge(e){return e.code!=="ECONNABORTED"&&(!e.response||e.response.status===429||e.response.status>=500&&e.response.status<=599)}function Ar(e){return e.config?.method?Ge(e)&&Pr.indexOf(e.config.method)!==-1:!1}function At(e){return e.config?.method?Ge(e)&&$c.indexOf(e.config.method)!==-1:!1}function Tt(e){return Pt(e)||At(e)}function Le(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 Kc(e=0,t=void 0){return Math.max(0,Le(t))}function Tr(e=0,t=void 0,s=100){let a=2**e*s,n=Math.max(a,Le(t)),o=n*.2*Math.random();return n+o}function Br(e=100){return(t=0,s=void 0)=>{let a=t*e;return Math.max(a,Le(s))}}var Cr={retries:3,retryCondition:Tt,retryDelay:Kc,shouldResetTimeout:!1,onRetry:()=>{},onMaxRetryTimesExceeded:()=>{},validateResponse:null};function jc(e,t){return{...Cr,...t,...e[Ue]}}function kr(e,t,s=!1){let a=jc(e,t||{});return a.retryCount=a.retryCount||0,(!a.lastRequestTime||s)&&(a.lastRequestTime=Date.now()),e[Ue]=a,a}function zc(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 Jc(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 Yc(e,t,s,a){t.retryCount+=1;let{retryDelay:n,shouldResetTimeout:o,onRetry:p}=t,i=n(t.retryCount,s);if(zc(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(y),r(e(a))},y=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 Xc(e,t){e.retryCount>=e.retries&&await e.onMaxRetryTimesExceeded(t,e.retryCount)}var M=(e,t)=>{let s=e.interceptors.request.use(n=>(kr(n,t,!0),n[Ue]?.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=kr(o,t);return n.response&&p.validateResponse?.(n.response)?n.response:await Jc(p,n)?Yc(e,p,n,o):(await Xc(p,n),Promise.reject(n))});return{requestInterceptorId:s,responseInterceptorId:a}};M.isNetworkError=Pt;M.isSafeRequestError=Ar;M.isIdempotentRequestError=At;M.isNetworkOrIdempotentRequestError=Tt;M.exponentialDelay=Tr;M.linearDelay=Br;M.isRetryableError=Ge;var Bt=M;var wr=H(require("crypto"));var Zc={getRandomValues:e=>new Uint8Array(e.map(()=>Math.floor(Math.random()*256)))},wt=typeof window<"u"&&typeof window.document<"u"?window.crypto:wr.default;wt.getRandomValues||(wt=Zc);var I=class extends Error{constructor(s,a,n,o,p,i,r){super(o);this.code=s;this.description=a;this.type=n;this.message=o;this.error=p;this.id=i;this.metadata=r;this.id||(this.id=I.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,metadata:this.metadata}}static generateId(){let s=this.getPrefix(),a=new Date().toISOString().replace(/[\-:TZ]/g,"").split(".")[0],n=4,o=Array.from(wt.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"}},ed=e=>typeof e=="object"&&!Array.isArray(e)&&e!==null,Ur=e=>e instanceof I||ed(e)&&e.isApiError===!0,O=class extends I{constructor(t,s,a,n){super(500,"An unknown error occurred","Unknown",t,s,a,n)}},We=class extends I{constructor(t,s,a,n){super(500,"An internal error occurred","Internal",t,s,a,n)}},Se=class extends I{constructor(t,s,a,n){super(401,"The request requires to be authenticated.","Unauthorized",t,s,a,n)}},Ee=class extends I{constructor(t,s,a,n){super(403,"The requested action can't be peform by this resource.","Forbidden",t,s,a,n)}},_e=class extends I{constructor(t,s,a,n){super(413,"The request payload is too large.","PayloadTooLarge",t,s,a,n)}},De=class extends I{constructor(t,s,a,n){super(400,"The request payload is invalid.","InvalidPayload",t,s,a,n)}},Qe=class extends I{constructor(t,s,a,n){super(415,"The request is invalid because the content-type is not supported.","UnsupportedMediaType",t,s,a,n)}},He=class extends I{constructor(t,s,a,n){super(405,"The requested method does not exist.","MethodNotFound",t,s,a,n)}},Me=class extends I{constructor(t,s,a,n){super(404,"The requested resource does not exist.","ResourceNotFound",t,s,a,n)}},Oe=class extends I{constructor(t,s,a,n){super(400,"The provided JSON schema is invalid.","InvalidJsonSchema",t,s,a,n)}},Fe=class extends I{constructor(t,s,a,n){super(400,"The provided data doesn't respect the provided JSON schema.","InvalidDataFormat",t,s,a,n)}},Ne=class extends I{constructor(t,s,a,n){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,n)}},Ve=class extends I{constructor(t,s,a,n){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,n)}},$e=class extends I{constructor(t,s,a,n){super(409,"The resource cannot be deleted because it's referenced by another resource","ReferenceConstraint",t,s,a,n)}},Ke=class extends I{constructor(t,s,a,n){super(409,"The resource is current locked and cannot be operated on until the lock is released.","ResourceLockedConflict",t,s,a,n)}},je=class extends I{constructor(t,s,a,n){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,n)}},ze=class extends I{constructor(t,s,a,n){super(400,"The provided query is invalid. This is usually caused when providing an invalid parameter for querying a resource.","InvalidQuery",t,s,a,n)}},Je=class extends I{constructor(t,s,a,n){super(400,"An error happened during the execution of a runtime (bot or integration).","Runtime",t,s,a,n)}},Ye=class extends I{constructor(t,s,a,n){super(409,"The record attempted to be created already exists.","AlreadyExists",t,s,a,n)}},Xe=class extends I{constructor(t,s,a,n){super(429,"The request has been rate limited.","RateLimited",t,s,a,n)}},Ze=class extends I{constructor(t,s,a,n){super(402,"A payment is required to perform this request.","PaymentRequired",t,s,a,n)}},et=class extends I{constructor(t,s,a,n){super(403,"The request exceeds the allowed quota. Quotas are a soft limit that can be increased.","QuotaExceeded",t,s,a,n)}},tt=class extends I{constructor(t,s,a,n){super(413,"The request exceeds the allowed limit. Limits are a hard limit that cannot be increased.","LimitExceeded",t,s,a,n)}},rt=class extends I{constructor(t,s,a,n){super(400,"Request payload contains breaking changes which is not allowed for this resource without a version increment.","BreakingChanges",t,s,a,n)}},td={Unknown:O,Internal:We,Unauthorized:Se,Forbidden:Ee,PayloadTooLarge:_e,InvalidPayload:De,UnsupportedMediaType:Qe,MethodNotFound:He,ResourceNotFound:Me,InvalidJsonSchema:Oe,InvalidDataFormat:Fe,InvalidIdentifier:Ne,RelationConflict:Ve,ReferenceConstraint:$e,ResourceLockedConflict:Ke,ReferenceNotFound:je,InvalidQuery:ze,Runtime:Je,AlreadyExists:Ye,RateLimited:Xe,PaymentRequired:Ze,QuotaExceeded:et,LimitExceeded:tt,BreakingChanges:rt},st=e=>Ur(e)?e:e instanceof Error?new O(e.message,e):typeof e=="string"?new O(e):rd(e);function rd(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=td[e.type];return t?new t(e.message,void 0,e.id||"UNKNOWN",e.metadata):new O(`An unclassified API error occurred: ${e.message} (Type: ${e.type}, Code: ${e.code})`)}return new O("An invalid error occurred: "+JSON.stringify(e))}var S=class extends Error{constructor(s,a,n){super(s);this.innerError=a;this.file=n;this.name="FileUploadError"}};var kt=H(require("axios"));var Rr=require("browser-or-node"),Sc=H(require("http")),Ec=H(require("https"));var he=require("browser-or-node"),ad="https://api.botpress.cloud",nd=6e4,od="BP_API_URL",id="BP_BOT_ID",pd="BP_INTEGRATION_ID",ud="BP_WORKSPACE_ID",cd="BP_TOKEN";function Gr(e){let t=dd(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??ad,n=t.timeout??nd;return{apiUrl:a,timeout:n,withCredentials:he.isBrowser,headers:s}}function dd(e){return he.isBrowser?e:he.isNode?ld(e):e}function ld(e){let t={...e,apiUrl:e.apiUrl??process.env[od],botId:e.botId??process.env[id],integrationId:e.integrationId??process.env[pd],workspaceId:e.workspaceId??process.env[ud]},s=t.token??process.env[cd];return s&&(t.token=s),t}var Wc=H(require("axios"));var sn=H(rn()),jg=e=>e[1]!==void 0,u=e=>{let{method:t,path:s,query:a,headers:n,body:o}=e,p=Object.entries(n).filter(jg),i=Object.fromEntries(p),r=sn.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 an=e=>({path:"/v1/chat/conversations",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var on=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var un=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 dn=e=>({path:"/v1/chat/conversations/get-or-create",headers:{},query:{},params:{},body:{channel:e.channel,tags:e.tags,integrationName:e.integrationName}});var gn=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{currentTaskId:e.currentTaskId,tags:e.tags}});var mn=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var qn=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var hn=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants`,headers:{},query:{},params:{id:e.id},body:{userId:e.userId}});var xn=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var kn=e=>({path:`/v1/chat/conversations/${encodeURIComponent(e.id)}/participants/${encodeURIComponent(e.userId)}`,headers:{},query:{},params:{id:e.id,userId:e.userId},body:{}});var Pn=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 Tn=e=>({path:`/v1/chat/events/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Cn=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 Un=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 Ln=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 Sn=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var _n=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{tags:e.tags}});var Qn=e=>({path:"/v1/chat/messages",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var Mn=e=>({path:`/v1/chat/messages/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Fn=e=>({path:"/v1/chat/users",headers:{},query:{},params:{},body:{tags:e.tags,integrationName:e.integrationName,name:e.name,pictureUrl:e.pictureUrl}});var Vn=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Kn=e=>({path:"/v1/chat/users",headers:{},query:{nextToken:e.nextToken,conversationId:e.conversationId,tags:e.tags},params:{},body:{}});var zn=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 Yn=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 Zn=e=>({path:`/v1/chat/users/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var to=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 so=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 no=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 io=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 uo=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 lo=e=>({path:"/v1/chat/actions",headers:{},query:{},params:{},body:{type:e.type,input:e.input}});var yo=e=>({path:"/v1/chat/integrations/configure",headers:{},query:{},params:{},body:{identifier:e.identifier,scheduleRegisterCall:e.scheduleRegisterCall}});var Ro=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fo=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 bo=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 Io=e=>({path:`/v1/chat/tasks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var vo=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 Ao=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 Bo=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var wo=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 Go=e=>({path:`/v1/chat/workflows/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Wo=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 Eo=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 Do=e=>({path:`/v1/chat/tags/${encodeURIComponent(e.key)}/values`,headers:{},query:{nextToken:e.nextToken,type:e.type},params:{key:e.key},body:{}});var Ho=e=>({path:"/v1/chat/analytics",headers:{},query:{},params:{},body:{name:e.name,count:e.count}});var Oo=e=>({path:"/v1/admin/helper/vrl",headers:{},query:{},params:{},body:{data:e.data,script:e.script}});var No=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{}});var $o=e=>({path:"/v1/admin/account/me",headers:{},query:{},params:{},body:{displayName:e.displayName,profilePicture:e.profilePicture,refresh:e.refresh}});var jo=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{}});var Jo=e=>({path:"/v1/admin/account/pats",headers:{},query:{},params:{},body:{note:e.note}});var Xo=e=>({path:`/v1/admin/account/pats/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ei=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{value:e.value}});var ri=e=>({path:`/v1/admin/account/preferences/${encodeURIComponent(e.key)}`,headers:{},query:{},params:{key:e.key},body:{}});var ai=e=>({path:"/v1/admin/hub/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version},params:{},body:{}});var oi=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var pi=e=>({path:`/v1/admin/hub/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var ci=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,tags:e.tags,code:e.code,name:e.name,medias:e.medias,url:e.url,dev:e.dev}});var li=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{url:e.url,authentication:e.authentication,configuration:e.configuration,tags:e.tags,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 yi=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/transfer`,headers:{},query:{},params:{id:e.id},body:{targetWorkspaceId:e.targetWorkspaceId}});var Ri=e=>({path:"/v1/admin/bots",headers:{},query:{dev:e.dev,nextToken:e.nextToken,sortField:e.sortField,sortDirection:e.sortDirection},params:{},body:{}});var fi=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var bi=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ii=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,workflowId:e.workflowId,conversationId:e.conversationId,nextToken:e.nextToken},params:{id:e.id},body:{}});var vi=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/webchat`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Ai=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/analytics`,headers:{},query:{startDate:e.startDate,endDate:e.endDate},params:{id:e.id},body:{}});var Bi=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var wi=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var Gi=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Wi=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/issues/${encodeURIComponent(e.issueId)}/events`,headers:{},query:{},params:{id:e.id,issueId:e.issueId},body:{}});var Ei=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{}});var Di=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/${encodeURIComponent(e.versionId)}`,headers:{},query:{},params:{id:e.id,versionId:e.versionId},body:{}});var Hi=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions`,headers:{},query:{},params:{id:e.id},body:{name:e.name,description:e.description}});var Oi=e=>({path:`/v1/admin/bots/${encodeURIComponent(e.id)}/versions/deploy`,headers:{},query:{},params:{id:e.id},body:{versionId:e.versionId}});var Ni=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices`,headers:{},query:{},params:{id:e.id},body:{}});var $i=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/upcoming-invoice`,headers:{},query:{},params:{id:e.id},body:{}});var ji=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/billing/invoices/charge-unpaid`,headers:{},query:{},params:{id:e.id},body:{invoiceIds:e.invoiceIds}});var Ji=e=>({path:"/v1/admin/workspaces",headers:{},query:{},params:{},body:{name:e.name}});var Xi=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/public`,headers:{},query:{},params:{id:e.id},body:{}});var ep=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var rp=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/usages`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var ap=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 op=e=>({path:"/v1/admin/workspaces/usages/quota-completion",headers:{},query:{},params:{},body:{}});var pp=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quota`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var cp=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/quotas`,headers:{},query:{period:e.period},params:{id:e.id},body:{}});var lp=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 yp=e=>({path:"/v1/admin/workspaces/handle-availability",headers:{},query:{},params:{},body:{handle:e.handle}});var Rp=e=>({path:"/v1/admin/workspaces",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var fp=e=>({path:"/v1/admin/workspaces/public",headers:{},query:{nextToken:e.nextToken,workspaceIds:e.workspaceIds,search:e.search},params:{},body:{}});var bp=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Ip=e=>({path:`/v1/admin/workspaces/${encodeURIComponent(e.id)}/audit-records`,headers:{},query:{nextToken:e.nextToken},params:{id:e.id},body:{}});var vp=e=>({path:"/v1/admin/workspace-members",headers:{},query:{nextToken:e.nextToken},params:{},body:{}});var Ap=e=>({path:"/v1/admin/workspace-members/me",headers:{},query:{},params:{},body:{}});var Bp=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var wp=e=>({path:"/v1/admin/workspace-members",headers:{},query:{},params:{},body:{email:e.email,role:e.role}});var Gp=e=>({path:`/v1/admin/workspace-members/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{role:e.role}});var Wp=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{integrationId:e.integrationId},params:{},body:{}});var Ep=e=>({path:"/v1/admin/integrations/iaks",headers:{},query:{},params:{},body:{integrationId:e.integrationId,note:e.note}});var Dp=e=>({path:`/v1/admin/integrations/iaks/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Hp=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 Op=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 Np=e=>({path:"/v1/admin/integrations",headers:{},query:{nextToken:e.nextToken,name:e.name,version:e.version,dev:e.dev},params:{},body:{}});var $p=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var jp=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}/logs`,headers:{},query:{timeStart:e.timeStart,timeEnd:e.timeEnd,level:e.level,userId:e.userId,conversationId:e.conversationId,nextToken:e.nextToken},params:{id:e.id},body:{}});var Jp=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var Xp=e=>({path:`/v1/admin/integrations/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var eu=e=>({path:"/v1/admin/integrations/request-verification",headers:{},query:{},params:{},body:{integrationId:e.integrationId}});var ru=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 au=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ou=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var pu=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 cu=e=>({path:`/v1/admin/interfaces/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var lu=e=>({path:"/v1/admin/interfaces",headers:{},query:{nextToken:e.nextToken,name:e.name},params:{},body:{}});var yu=e=>({path:"/v1/admin/plugins",headers:{},query:{},params:{},body:{name:e.name,version:e.version,configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,code:e.code,dependencies:e.dependencies}});var Ru=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var fu=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.name)}/${encodeURIComponent(e.version)}`,headers:{},query:{},params:{name:e.name,version:e.version},body:{}});var bu=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{configuration:e.configuration,states:e.states,events:e.events,actions:e.actions,user:e.user,code:e.code,dependencies:e.dependencies}});var Iu=e=>({path:`/v1/admin/plugins/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var vu=e=>({path:"/v1/admin/plugins",headers:{},query:{nextToken:e.nextToken,name:e.name},params:{},body:{}});var Au=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}`,headers:{},query:{type:e.type,period:e.period},params:{id:e.id},body:{}});var Bu=e=>({path:"/v1/admin/usages/multiple",headers:{},query:{types:e.types,ids:e.ids,period:e.period},params:{},body:{}});var wu=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/history`,headers:{},query:{type:e.type},params:{id:e.id},body:{}});var Gu=e=>({path:`/v1/admin/usages/${encodeURIComponent(e.id)}/activity`,headers:{},query:{type:e.type,nextToken:e.nextToken},params:{id:e.id},body:{}});var Wu=e=>({path:"/v1/admin/quotas/ai-spend",headers:{},query:{},params:{},body:{monthlySpendingLimit:e.monthlySpendingLimit}});var Eu=e=>({path:"/v1/admin/activities",headers:{},query:{nextToken:e.nextToken,taskId:e.taskId,botId:e.botId},params:{},body:{}});var Du=e=>({path:"/v1/admin/introspect",headers:{},query:{},params:{},body:{botId:e.botId}});var Hu=e=>({path:"/v1/files",headers:{},query:{},params:{},body:{key:e.key,tags:e.tags,size:e.size,index:e.index,indexing:e.indexing,accessPolicies:e.accessPolicies,contentType:e.contentType,expiresAt:e.expiresAt,publicContentImmediatelyAccessible:e.publicContentImmediatelyAccessible,metadata:e.metadata}});var Ou=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var Nu=e=>({path:"/v1/files",headers:{},query:{nextToken:e.nextToken,tags:e.tags,ids:e.ids},params:{},body:{}});var $u=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{}});var ju=e=>({path:`/v1/files/${encodeURIComponent(e.id)}`,headers:{},query:{},params:{id:e.id},body:{metadata:e.metadata,tags:e.tags,accessPolicies:e.accessPolicies,expiresAt:e.expiresAt}});var Ju=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 Xu=e=>({path:`/v1/files/${encodeURIComponent(e.id)}/passages`,headers:{},query:{nextToken:e.nextToken,limit:e.limit},params:{id:e.id},body:{}});var ec=e=>({path:"/v1/tables",headers:{},query:{tags:e.tags},params:{},body:{}});var rc=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var ac=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 oc=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 pc=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 cc=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/export`,headers:{},query:{format:e.format,compress:e.compress},params:{table:e.table},body:{}});var lc=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/jobs`,headers:{},query:{},params:{table:e.table},body:{}});var yc=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/import`,headers:{},query:{},params:{table:e.table},body:{fileId:e.fileId}});var Rc=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 fc=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/column`,headers:{},query:{},params:{table:e.table},body:{name:e.name,newName:e.newName}});var bc=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}`,headers:{},query:{},params:{table:e.table},body:{}});var Ic=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/row`,headers:{},query:{id:e.id},params:{table:e.table},body:{}});var vc=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 Ac=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Bc=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 wc=e=>({path:`/v1/tables/${encodeURIComponent(e.table)}/rows`,headers:{},query:{},params:{table:e.table},body:{rows:e.rows,waitComputed:e.waitComputed}});var Gc=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 xt=class{constructor(t,s={}){this.axiosInstance=t;this.props=s}createConversation=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)})};getConversation=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)})};listConversations=async t=>{let{path:s,headers:a,query:n,body:o}=un(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}=dn(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}=gn(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}=mn(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}=qn(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}=hn(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}=xn(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}=kn(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}=Pn(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}=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)})};listEvents=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)})};createMessage=async t=>{let{path:s,headers:a,query:n,body:o}=Un(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}=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)})};getMessage=async t=>{let{path:s,headers:a,query:n,body:o}=Sn(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}=_n(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}=Qn(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}=Mn(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}=Fn(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}=Vn(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}=Kn(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}=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)})};updateUser=async t=>{let{path:s,headers:a,query:n,body:o}=Yn(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}=Zn(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}=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)})};getState=async t=>{let{path:s,headers:a,query:n,body:o}=so(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}=no(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}=io(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}=uo(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}=lo(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}=yo(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}=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)})};createTask=async t=>{let{path:s,headers:a,query:n,body:o}=fo(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}=bo(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}=Io(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}=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)})};createWorkflow=async t=>{let{path:s,headers:a,query:n,body:o}=Ao(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}=Bo(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}=wo(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}=Go(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}=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)})};getOrCreateWorkflow=async t=>{let{path:s,headers:a,query:n,body:o}=Eo(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)})};listTagValues=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)})};trackAnalytics=async t=>{let{path:s,headers:a,query:n,body:o}=Ho(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}=Oo(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}=No(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}=$o(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}=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)})};createPersonalAccessToken=async t=>{let{path:s,headers:a,query:n,body:o}=Jo(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}=Xo(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}=ei(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}=ri(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}=ai(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}=oi(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}=pi(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}=ci(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}=li(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}=yi(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}=Ri(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}=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)})};deleteBot=async t=>{let{path:s,headers:a,query:n,body:o}=bi(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}=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)})};getBotWebchat=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)})};getBotAnalytics=async t=>{let{path:s,headers:a,query:n,body:o}=Ai(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}=Bi(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}=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)})};deleteBotIssue=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)})};listBotIssueEvents=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)})};listBotVersions=async t=>{let{path:s,headers:a,query:n,body:o}=Ei(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}=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)})};createBotVersion=async t=>{let{path:s,headers:a,query:n,body:o}=Hi(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}=Oi(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}=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)})};getUpcomingInvoice=async t=>{let{path:s,headers:a,query:n,body:o}=$i(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}=ji(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}=Ji(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}=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)})};getWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=ep(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}=rp(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}=ap(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}=op(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}=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)})};listWorkspaceQuotas=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)})};updateWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=lp(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}=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)})};listWorkspaces=async t=>{let{path:s,headers:a,query:n,body:o}=Rp(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}=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)})};deleteWorkspace=async t=>{let{path:s,headers:a,query:n,body:o}=bp(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}=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)})};listWorkspaceMembers=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)})};getWorkspaceMember=async t=>{let{path:s,headers:a,query:n,body:o}=Ap(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}=Bp(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}=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)})};updateWorkspaceMember=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)})};listIntegrationApiKeys=async t=>{let{path:s,headers:a,query:n,body:o}=Wp(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}=Ep(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}=Dp(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}=Hp(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}=Op(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}=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)})};getIntegration=async t=>{let{path:s,headers:a,query:n,body:o}=$p(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}=jp(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}=Jp(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}=Xp(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}=eu(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}=ru(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}=au(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}=ou(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}=pu(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}=cu(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}=lu(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)})};createPlugin=async t=>{let{path:s,headers:a,query:n,body:o}=yu(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)})};getPlugin=async t=>{let{path:s,headers:a,query:n,body:o}=Ru(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)})};getPluginByName=async t=>{let{path:s,headers:a,query:n,body:o}=fu(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)})};updatePlugin=async t=>{let{path:s,headers:a,query:n,body:o}=bu(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)})};deletePlugin=async t=>{let{path:s,headers:a,query:n,body:o}=Iu(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)})};listPlugins=async t=>{let{path:s,headers:a,query:n,body:o}=vu(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}=Au(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}=Bu(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}=wu(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}=Gu(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}=Wu(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}=Eu(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}=Du(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}=Hu(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}=Ou(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}=Nu(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}=$u(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}=ju(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}=Ju(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}=Xu(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}=ec(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}=rc(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}=ac(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}=oc(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}=pc(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)})};exportTable=async t=>{let{path:s,headers:a,query:n,body:o}=cc(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)})};getTableJobs=async t=>{let{path:s,headers:a,query:n,body:o}=lc(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)})};importTable=async t=>{let{path:s,headers:a,query:n,body:o}=yc(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}=Rc(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}=fc(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}=bc(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}=Ic(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}=vc(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}=Ac(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}=Bc(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}=wc(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}=Gc(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 Wc.default.isAxiosError(e)&&e.response?.data?st(e.response.data):st(e)}var k=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 k(({nextToken:s})=>this._client.listConversations({nextToken:s,...t}).then(a=>({...a,items:a.conversations})));participants=t=>new k(({nextToken:s})=>this._client.listParticipants({nextToken:s,...t}).then(a=>({...a,items:a.participants})));events=t=>new k(({nextToken:s})=>this._client.listEvents({nextToken:s,...t}).then(a=>({...a,items:a.events})));messages=t=>new k(({nextToken:s})=>this._client.listMessages({nextToken:s,...t}).then(a=>({...a,items:a.messages})));users=t=>new k(({nextToken:s})=>this._client.listUsers({nextToken:s,...t}).then(a=>({...a,items:a.users})));tasks=t=>new k(({nextToken:s})=>this._client.listTasks({nextToken:s,...t}).then(a=>({...a,items:a.tasks})));publicIntegrations=t=>new k(({nextToken:s})=>this._client.listPublicIntegrations({nextToken:s,...t}).then(a=>({...a,items:a.integrations})));bots=t=>new k(({nextToken:s})=>this._client.listBots({nextToken:s,...t}).then(a=>({...a,items:a.bots})));botIssues=t=>new k(({nextToken:s})=>this._client.listBotIssues({nextToken:s,...t}).then(a=>({...a,items:a.issues})));workspaces=t=>new k(({nextToken:s})=>this._client.listWorkspaces({nextToken:s,...t}).then(a=>({...a,items:a.workspaces})));publicWorkspaces=t=>new k(({nextToken:s})=>this._client.listPublicWorkspaces({nextToken:s,...t}).then(a=>({...a,items:a.workspaces})));workspaceMembers=t=>new k(({nextToken:s})=>this._client.listWorkspaceMembers({nextToken:s,...t}).then(a=>({...a,items:a.members})));integrations=t=>new k(({nextToken:s})=>this._client.listIntegrations({nextToken:s,...t}).then(a=>({...a,items:a.integrations})));interfaces=t=>new k(({nextToken:s})=>this._client.listInterfaces({nextToken:s,...t}).then(a=>({...a,items:a.interfaces})));activities=t=>new k(({nextToken:s})=>this._client.listActivities({nextToken:s,...t}).then(a=>({...a,items:a.activities})));files=t=>new k(({nextToken:s})=>this._client.listFiles({nextToken:s,...t}).then(a=>({...a,items:a.files})));filePassages=t=>new k(({nextToken:s})=>this._client.listFilePassages({nextToken:s,...t}).then(a=>({...a,items:a.passages})))};var _c=100*1024*1024,Jg=_c,Yg=_c,qr=class extends xt{config;constructor(t={}){let s=Gr(t),{apiUrl:a,headers:n,withCredentials:o,timeout:p}=s,i=kt.default.create({baseURL:a,headers:n,withCredentials:o,timeout:p,maxBodyLength:Jg,maxContentLength:Yg,httpAgent:Rr.isNode?new Sc.default.Agent({keepAlive:!0}):void 0,httpsAgent:Rr.isNode?new Ec.default.Agent({keepAlive:!0}):void 0});super(i),t.retry&&Bt(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,indexing:r,expiresAt:d,publicContentImmediatelyAccessible:y})=>{if(i&&p)throw new S("Cannot provide both content and URL, please provide only one of them");if(i&&(p=await kt.default.get(i,{responseType:"arraybuffer"}).then(b=>b.data).catch(b=>{throw new S(`Failed to download file from provided URL: ${b.message}`,b)})),!p)throw new S("No content was provided for the file");let m,l;if(typeof p=="string"){let C=new TextEncoder().encode(p);m=C,l=C.byteLength}else if(p instanceof Uint8Array)m=p,l=m.byteLength;else if(p instanceof ArrayBuffer)m=p,l=m.byteLength;else if(p instanceof Blob)m=p,l=p.size;else throw new S("The provided content is not supported");let{file:h}=await this.upsertFile({key:t,tags:a,index:s,accessPolicies:o,contentType:n,size:l,expiresAt:d,indexing:r,publicContentImmediatelyAccessible:y}),R={"Content-Type":h.contentType};y&&(R["x-amz-tagging"]="public=true");try{await kt.default.put(h.uploadUrl,m,{maxBodyLength:1/0,headers:R})}catch(b){throw new S(`Failed to upload file: ${b.message}`,b,h)}return{file:{...h,size:l}}}};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