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