(function(){"use strict";var LR=Object.defineProperty;var DR=(Et,bt,jt)=>bt in Et?LR(Et,bt,{enumerable:!0,configurable:!0,writable:!0,value:jt}):Et[bt]=jt;var Pe=(Et,bt,jt)=>(DR(Et,typeof bt!="symbol"?bt+"":bt,jt),jt);function Et(){}function bt(e){return e}var jt={debug:0,info:1,warn:2,error:3},fu=jt.warn;Ir("info");var it=Ir("warn"),Ns=Ir("error"),Ue=Ir("debug");function Ir(e){if(typeof console<"u"&&console[e]&&typeof console[e].apply=="function"){var t=jt[e];return function(){t>=fu&&console[e].apply(console,arguments)}}return Et}var gu=Object.prototype.hasOwnProperty;function Ou(e,t){return gu.call(e,t)}var D=typeof window<"u"?window:void 0,Ie=D==null?void 0:D.document,Ur=D==null?void 0:D.navigator,$o=typeof location<"u"?location:void 0,ke=(D==null?void 0:D.performance)||(D==null?void 0:D.webkitPerformance)||(D==null?void 0:D.msPerformance)||(D==null?void 0:D.mozPerformance);D==null||D.encodeURIComponent;var js=D==null?void 0:D.fetch,Yt=function(){try{var e;return(e=D==null?void 0:D.localStorage)!==null&&e!==void 0?e:null}catch{return null}}(),Jt=function(){try{var e;return(e=D==null?void 0:D.sessionStorage)!==null&&e!==void 0?e:null}catch{return null}}(),xr=Array(32);function Xt(e){for(var t=0;t<2*e;t++)xr[t]=Math.floor(16*Math.random())+48,xr[t]>=58&&(xr[t]+=39);return String.fromCharCode.apply(null,xr.slice(0,2*e))}function $a(e,t,a){e.addEventListener?e.addEventListener(t,a,!1):e.attachEvent&&e.attachEvent("on"+t,a)}var _r=Yt!=null&&typeof Yt.getItem=="function"&&typeof Yt.setItem=="function";function ks(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(l){throw l},f:s}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var n,o=!0,i=!1;return{s:function(){a=a.call(e)},n:function(){var l=a.next();return o=l.done,l},e:function(l){i=!0,n=l},f:function(){try{o||a.return==null||a.return()}finally{if(i)throw n}}}}function He(e,t,a){return(t=Wo(t))in e?Object.defineProperty(e,t,{value:a,enumerable:!0,configurable:!0,writable:!0}):e[t]=a,e}function qo(e,t){var a=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),a.push.apply(a,r)}return a}function lt(){lt=function(){return t};var e,t={},a=Object.prototype,r=a.hasOwnProperty,s=Object.defineProperty||function(R,S,k){R[S]=k.value},n=typeof Symbol=="function"?Symbol:{},o=n.iterator||"@@iterator",i=n.asyncIterator||"@@asyncIterator",l=n.toStringTag||"@@toStringTag";function c(R,S,k){return Object.defineProperty(R,S,{value:k,enumerable:!0,configurable:!0,writable:!0}),R[S]}try{c({},"")}catch{c=function(S,k,ge){return S[k]=ge}}function d(R,S,k,ge){var ne=S&&S.prototype instanceof M?S:M,Ae=Object.create(ne.prototype),Fe=new Tr(ge||[]);return s(Ae,"_invoke",{value:ka(R,k,Fe)}),Ae}function h(R,S,k){try{return{type:"normal",arg:R.call(S,k)}}catch(ge){return{type:"throw",arg:ge}}}t.wrap=d;var m="suspendedStart",O="suspendedYield",p="executing",b="completed",g={};function M(){}function N(){}function j(){}var de={};c(de,o,function(){return this});var pe=Object.getPrototypeOf,Ve=pe&&pe(pe(je([])));Ve&&Ve!==a&&r.call(Ve,o)&&(de=Ve);var Re=j.prototype=M.prototype=Object.create(de);function gt(R){["next","throw","return"].forEach(function(S){c(R,S,function(k){return this._invoke(S,k)})})}function Ot(R,S){function k(ne,Ae,Fe,st){var nt=h(R[ne],R,Ae);if(nt.type!=="throw"){var Ba=nt.arg,Cr=Ba.value;return Cr&&typeof Cr=="object"&&r.call(Cr,"__await")?S.resolve(Cr.__await).then(function(fa){k("next",fa,Fe,st)},function(fa){k("throw",fa,Fe,st)}):S.resolve(Cr).then(function(fa){Ba.value=fa,Fe(Ba)},function(fa){return k("throw",fa,Fe,st)})}st(nt.arg)}var ge;s(this,"_invoke",{value:function(ne,Ae){function Fe(){return new S(function(st,nt){k(ne,Ae,st,nt)})}return ge=ge?ge.then(Fe,Fe):Fe()}})}function ka(R,S,k){var ge=m;return function(ne,Ae){if(ge===p)throw Error("Generator is already running");if(ge===b){if(ne==="throw")throw Ae;return{value:e,done:!0}}for(k.method=ne,k.arg=Ae;;){var Fe=k.delegate;if(Fe){var st=Ms(Fe,k);if(st){if(st===g)continue;return st}}if(k.method==="next")k.sent=k._sent=k.arg;else if(k.method==="throw"){if(ge===m)throw ge=b,k.arg;k.dispatchException(k.arg)}else k.method==="return"&&k.abrupt("return",k.arg);ge=p;var nt=h(R,S,k);if(nt.type==="normal"){if(ge=k.done?b:O,nt.arg===g)continue;return{value:nt.arg,done:k.done}}nt.type==="throw"&&(ge=b,k.method="throw",k.arg=nt.arg)}}}function Ms(R,S){var k=S.method,ge=R.iterator[k];if(ge===e)return S.delegate=null,k==="throw"&&R.iterator.return&&(S.method="return",S.arg=e,Ms(R,S),S.method==="throw")||k!=="return"&&(S.method="throw",S.arg=new TypeError("The iterator does not provide a '"+k+"' method")),g;var ne=h(ge,R.iterator,S.arg);if(ne.type==="throw")return S.method="throw",S.arg=ne.arg,S.delegate=null,g;var Ae=ne.arg;return Ae?Ae.done?(S[R.resultName]=Ae.value,S.next=R.nextLoc,S.method!=="return"&&(S.method="next",S.arg=e),S.delegate=null,g):Ae:(S.method="throw",S.arg=new TypeError("iterator result is not an object"),S.delegate=null,g)}function ko(R){var S={tryLoc:R[0]};1 in R&&(S.catchLoc=R[1]),2 in R&&(S.finallyLoc=R[2],S.afterLoc=R[3]),this.tryEntries.push(S)}function Sr(R){var S=R.completion||{};S.type="normal",delete S.arg,R.completion=S}function Tr(R){this.tryEntries=[{tryLoc:"root"}],R.forEach(ko,this),this.reset(!0)}function je(R){if(R||R===""){var S=R[o];if(S)return S.call(R);if(typeof R.next=="function")return R;if(!isNaN(R.length)){var k=-1,ge=function ne(){for(;++k=0;--ge){var ne=this.tryEntries[ge],Ae=ne.completion;if(ne.tryLoc==="root")return k("end");if(ne.tryLoc<=this.prev){var Fe=r.call(ne,"catchLoc"),st=r.call(ne,"finallyLoc");if(Fe&&st){if(this.prev=0;--k){var ge=this.tryEntries[k];if(ge.tryLoc<=this.prev&&r.call(ge,"finallyLoc")&&this.prev=0;--S){var k=this.tryEntries[S];if(k.finallyLoc===R)return this.complete(k.completion,k.afterLoc),Sr(k),g}},catch:function(R){for(var S=this.tryEntries.length-1;S>=0;--S){var k=this.tryEntries[S];if(k.tryLoc===R){var ge=k.completion;if(ge.type==="throw"){var ne=ge.arg;Sr(k)}return ne}}throw Error("illegal catch attempt")},delegateYield:function(R,S,k){return this.delegate={iterator:je(R),resultName:S,nextLoc:k},this.method==="next"&&(this.arg=e),g}},t}function qa(e,t){return function(a){if(Array.isArray(a))return a}(e)||function(a,r){var s=a==null?null:typeof Symbol<"u"&&a[Symbol.iterator]||a["@@iterator"];if(s!=null){var n,o,i,l,c=[],d=!0,h=!1;try{if(i=(s=s.call(a)).next,r!==0)for(;!(d=(n=i.call(s)).done)&&(c.push(n.value),c.length!==r);d=!0);}catch(m){h=!0,o=m}finally{try{if(!d&&s.return!=null&&(l=s.return(),Object(l)!==l))return}finally{if(h)throw o}}return c}}(e,t)||Hs(e,t)||function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Fr(e){return function(t){if(Array.isArray(t))return ks(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||Hs(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance. In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function Wo(e){var t=function(a,r){if(typeof a!="object"||!a)return a;var s=a[Symbol.toPrimitive];if(s!==void 0){var n=s.call(a,r);if(typeof n!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(r==="string"?String:Number)(a)}(e,"string");return typeof t=="symbol"?t:t+""}function Rt(e){return Rt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rt(e)}function Hs(e,t){if(e){if(typeof e=="string")return ks(e,t);var a={}.toString.call(e).slice(8,-1);return a==="Object"&&e.constructor&&(a=e.constructor.name),a==="Map"||a==="Set"?Array.from(e):a==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(a)?ks(e,t):void 0}}function Kt(){return new Date().getTime()}function Zt(){var e=qs();return e?String(1e6*(ke.now()+e)):Lr(new Date)}function Lr(e){return Rt(e)==="object"?Lr(e.getTime()):String(e)+"000000"}function qs(){var e,t=ke==null?void 0:ke.timeOrigin;return typeof t!="number"&&(t=ke==null||(e=ke.timing)===null||e===void 0?void 0:e.fetchStart),t}var Qo={setTimeout:D==null?void 0:D.setTimeout,clearTimeout:D==null?void 0:D.clearTimeout,setInterval:D==null?void 0:D.setInterval,clearInterval:D==null?void 0:D.clearInterval},Ws=D!=null&&D.Zone!=null&&D.Zone.root!=null&&typeof D.Zone.root.run=="function";function ga(){for(var e=arguments.length,t=new Array(e),a=0;a=t&&e.resourceMatcher(p)}).forEach(function(O){o.length>=100&&o.shift(),o.push(O)})}function c(){Jo()||i()}function d(){(function(){if(r){try{var m;(m=r)===null||m===void 0||m.disconnect()}catch{}r=void 0}})(),s&&(clearTimeout(s),s=void 0),h(),function(){if(Ie){m=Ie,O="visibilitychange",p=c,m.removeEventListener?m.removeEventListener(O,p,!1):m.detachEvent&&m.detachEvent("on"+O,p);var m,O,p}}()}function h(){n&&(clearTimeout(n),n=void 0)}}function Jo(){return(Ie==null?void 0:Ie.visibilityState)==="visible"||(Ie==null?void 0:Ie.visibilityState)==="prerender"}var Wa="undefined";function Gs(e){return Math.round(100*e)/100}function zs(e){var t;return typeof e!="string"?e:new URL(e,(t=Ie==null?void 0:Ie.baseURI)!==null&&t!==void 0?t:$o==null?void 0:$o.href)}function vu(e){try{return zs(e).origin===(typeof location<"u"?location.origin:void 0)}catch{return!1}}var Xo=Symbol.for("INSTRUMENTED_BY_DASH0");function Ys(e,t,a){var r=e[t];r?r[Xo]!==!0?(function(s){s[Xo]=!0}(r),e[t]=a(r)):Ue("".concat(String(t)," has already been instrumented, skipping")):Ue("".concat(String(t)," is not defined, unable to instrument"))}var le={endpoints:[],resource:{attributes:[]},scope:{name:"dash0-web-sdk",version:"0.16.3",attributes:[]},signalAttributes:[],ignoreUrls:[],ignoreErrorMessages:[],wrapEventHandlers:!0,wrapTimers:!0,propagateTraceHeadersCorsURLs:[],maxWaitForResourceTimingsMillis:1e4,maxToleranceForResourceTimingsMillis:50,headersToCapture:[],urlAttributeScrubber:bt,pageViewInstrumentation:{trackVirtualPageViews:!0,includeParts:[]},enableTransportCompression:!1},wu="service.name",Pu="service.version",Au="deployment.environment.name",Vu="deployment.name",Eu="deployment.id",Qa="event.name",Js="dash0.web.event.id",Ru="page.load.id",Su="user_agent.original",Xs="exception.message",Ks="exception.type",Ko="exception.stacktrace",Zo="url.full",Ga={PAGE_VIEW:"browser.page_view",NAVIGATION_TIMING:"browser.navigation_timing",WEB_VITAL:"browser.web_vital",ERROR:"browser.error"},za={UNSPECIFIED:0,TRACE:1,DEBUG:5,INFO:9,WARN:13,ERROR:17,FATAL:21},Tu=0,Cu=1,Iu="pushState",Uu="replaceState",xu=1;function ei(){var e,t;return"".concat((e={ephemeralSession:!_r},t=0,e.ephemeralSession&&(t|=xu),t.toString(16).padStart(2,"0"))).concat(Xt(7))}var ti="d0_session",Zs="#",ai=864e5,Ya=null;function _u(e,t){if(!_r)return Ue("Storage API is not available and session tracking is therefore not supported."),void(Ya=ei());e||(e=108e5),t||(t=216e5),e=Math.min(e,ai),t=Math.min(t,ai);try{var a=function(s){return _r&&Yt?Yt.getItem(s):null}(ti),r=function(s){if(!s)return null;var n=s.split(Zs);if(n.length<3)return null;var o=n[0],i=parseInt(n[1],10),l=parseInt(n[2],10);return!o||isNaN(i)||isNaN(l)?null:{id:o,startTime:i,lastActivityTime:l}}(a);r&&!function(s,n,o){var i=Kt()-n;if(s.lastActivityTime=l}(r,e,t)&&(r=null),r?r.lastActivityTime=Kt():r={id:ei(),startTime:Kt(),lastActivityTime:Kt()},function(s,n){_r&&Yt&&Yt.setItem(s,n)}(ti,function(s){return s.id+Zs+s.startTime+Zs+s.lastActivityTime}(r)),Ya=r.id}catch(s){it("Failed to record session information",s)}}var ri=-1,Ja=function(e){addEventListener("pageshow",function(t){t.persisted&&(ri=t.timeStamp,e(t))},!0)},kt=function(e,t,a,r){var s,n;return function(o){t.value>=0&&(o||r)&&((n=t.value-(s??0))||s===void 0)&&(s=t.value,t.delta=n,t.rating=function(i,l){return i>l[1]?"poor":i>l[0]?"needs-improvement":"good"}(t.value,a),e(t))}},en=function(e){requestAnimationFrame(function(){return requestAnimationFrame(function(){return e()})})},si=function(){var e=performance.getEntriesByType("navigation")[0];if(e&&e.responseStart>0&&e.responseStart1&&arguments[1]!==void 0?arguments[1]:-1,a=si(),r="navigate";return ri>=0?r="back-forward-cache":a&&(document.prerendering||Dr()>0?r="prerender":document.wasDiscarded?r="restore":a.type&&(r=a.type.replace(/_/g,"-"))),{name:e,value:t,rating:"good",delta:0,entries:[],id:"v5-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:r}},tn=new WeakMap;function an(e,t){return tn.get(e)||tn.set(e,new t),tn.get(e)}var rn,Fu=function(){return $s(function e(){Bs(this,e),He(this,"t",void 0),He(this,"i",0),He(this,"o",[])},[{key:"h",value:function(e){var t;if(!e.hadRecentInput){var a=this.o[0],r=this.o.at(-1);this.i&&a&&r&&e.startTime-r.startTime<1e3&&e.startTime-a.startTime<5e3?(this.i+=e.value,this.o.push(e)):(this.i=e.value,this.o=[e]),(t=this.t)===null||t===void 0||t.call(this,e)}}}])}(),Xa=function(e,t){var a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var r=new PerformanceObserver(function(s){Promise.resolve().then(function(){t(s.getEntries())})});return r.observe(function(s){for(var n=1;n-1&&(Oa=e.type==="visibilitychange"?e.timeStamp:0,Lu())},oi=function(){addEventListener("visibilitychange",Mr,!0),addEventListener("prerenderingchange",Mr,!0)},Lu=function(){removeEventListener("visibilitychange",Mr,!0),removeEventListener("prerenderingchange",Mr,!0)},ii=function(){if(Oa<0){var e,t=Dr(),a=document.prerendering||(e=globalThis.performance.getEntriesByType("visibility-state").filter(function(r){return r.name==="hidden"&&r.startTime>t})[0])===null||e===void 0?void 0:e.startTime;Oa=a??ni(),oi(),Ja(function(){setTimeout(function(){Oa=ni(),oi()})})}return{get firstHiddenTime(){return Oa}}},nn=function(e){document.prerendering?addEventListener("prerenderingchange",function(){return e()},!0):e()},li=[1800,3e3],ci=[.1,.25],Du=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(function(a){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};nn(function(){var s,n=ii(),o=Bt("FCP"),i=Xa("paint",function(l){var c,d=ot(l);try{for(d.s();!(c=d.n()).done;){var h=c.value;h.name==="first-contentful-paint"&&(i.disconnect(),h.startTimer.value&&(r.value=s.i,r.entries=s.o,a())},o=Xa("layout-shift",n);o&&(a=kt(e,r,ci,t.reportAllChanges),document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&(n(o.takeRecords()),a(!0))}),Ja(function(){s.i=0,r=Bt("CLS",0),a=kt(e,r,ci,t.reportAllChanges),en(function(){return a()})}),setTimeout(a))}))},di=0,on=1/0,Nr=0,Mu=function(e){var t,a=ot(e);try{for(a.s();!(t=a.n()).done;){var r=t.value;r.interactionId&&(on=Math.min(on,r.interactionId),Nr=Math.max(Nr,r.interactionId),di=Nr?(Nr-on)/7+1:0)}}catch(s){a.e(s)}finally{a.f()}},ui=function(){var e;return rn?di:(e=performance.interactionCount)!==null&&e!==void 0?e:0},hi=0,Nu=function(){return $s(function e(){Bs(this,e),He(this,"u",[]),He(this,"l",new Map),He(this,"m",void 0),He(this,"v",void 0)},[{key:"p",value:function(){hi=ui(),this.u.length=0,this.l.clear()}},{key:"P",value:function(){var e=Math.min(this.u.length-1,Math.floor((ui()-hi)/50));return this.u[e]}},{key:"h",value:function(e){var t;if((t=this.m)!==null&&t!==void 0&&t.call(this,e),e.interactionId||e.entryType==="first-input"){var a=this.u.at(-1),r=this.l.get(e.interactionId);if(r||this.u.length<10||e.duration>a.T){var s;if(r?e.duration>r.T?(r.entries=[e],r.T=e.duration):e.duration===r.T&&e.startTime===r.entries[0].startTime&&r.entries.push(e):(r={id:e.interactionId,entries:[e],T:e.duration},this.l.set(r.id,r),this.u.push(r)),this.u.sort(function(l,c){return c.T-l.T}),this.u.length>10){var n,o=ot(this.u.splice(10));try{for(o.s();!(n=o.n()).done;){var i=n.value;this.l.delete(i.id)}}catch(l){o.e(l)}finally{o.f()}}(s=this.v)===null||s===void 0||s.call(this,r)}}}}])}(),pi=function(e){var t=globalThis.requestIdleCallback||setTimeout;document.visibilityState==="hidden"?e():(e=sn(e),document.addEventListener("visibilitychange",e,{once:!0}),t(function(){e(),document.removeEventListener("visibilitychange",e)}))},mi=[200,500],ju=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};globalThis.PerformanceEventTiming&&"interactionId"in PerformanceEventTiming.prototype&&nn(function(){var a;"interactionCount"in performance||rn||(rn=Xa("event",Mu,{type:"event",buffered:!0,durationThreshold:0}));var r,s=Bt("INP"),n=an(t,Nu),o=function(l){pi(function(){var c,d=ot(l);try{for(d.s();!(c=d.n()).done;){var h=c.value;n.h(h)}}catch(O){d.e(O)}finally{d.f()}var m=n.P();m&&m.T!==s.value&&(s.value=m.T,s.entries=m.entries,r())})},i=Xa("event",o,{durationThreshold:(a=t.durationThreshold)!==null&&a!==void 0?a:40});r=kt(e,s,mi,t.reportAllChanges),i&&(i.observe({type:"first-input",buffered:!0}),document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&(o(i.takeRecords()),r(!0))}),Ja(function(){n.p(),s=Bt("INP"),r=kt(e,s,mi,t.reportAllChanges)}))})},ku=function(){return $s(function e(){Bs(this,e),He(this,"m",void 0)},[{key:"h",value:function(e){var t;(t=this.m)===null||t===void 0||t.call(this,e)}}])}(),fi=[2500,4e3],ln=!1;function gi(e){var t,a,r=[];return a=s,ln&&a(),Ie&&D&&($a(Ie,"visibilitychange",function(){Ie.visibilityState!=="visible"&&a()}),$a(D,"pagehide",function(){ln=!0,a()}),$a(D,"beforeunload",function(){ln=!0,a()})),{send:function(n){(Ie==null?void 0:Ie.visibilityState)==="visible"?(r.push(n),r.length>=15?s():t==null&&(t=ga(s,1e3))):e([n])}};function s(){t!=null&&(clearTimeout(t),t=null),r.length>0&&(e(r.slice()),r.length=0)}}function Oi(e,t){return cn.apply(this,arguments)}function cn(){return cn=Ha(lt().mark(function e(t,a){var r,s,n,o;return lt().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(Ue("Transmitting telemetry to endpoints",a),r=JSON.stringify(a),s=r,n=r.length,o=!1,typeof CompressionStream>"u"||!le.enableTransportCompression){i.next=11;break}return i.next=8,Bu(r);case 8:s=i.sent,n=s.byteLength,o=!0;case 11:return i.next=13,Promise.all(le.endpoints.map(function(){var l=Ha(lt().mark(function c(d){var h,m,O;return lt().wrap(function(p){for(;;)switch(p.prev=p.next){case 0:if(p.prev=0,(h=new URL(d.url)).pathname=h.pathname+(h.pathname.endsWith("/")?t.substring(1):t),m={"Content-Type":"application/json",Authorization:"Bearer ".concat(d.authToken)},d.dataset&&(m["Dash0-Dataset"]=d.dataset),o&&(m["Content-Encoding"]="gzip"),js){p.next=9;break}return it("Unable to send telemetry, fetch is not defined"),p.abrupt("return");case 9:return p.next=11,js(h,{method:"POST",headers:m,body:s,keepalive:n<=6e4});case 11:(O=p.sent).text().catch(Et),O.ok||it("Failed to send telemetry to ".concat(h,": ").concat(O.status," ").concat(O.statusText)),p.next=19;break;case 16:p.prev=16,p.t0=p.catch(0),it("Error sending telemetry to ".concat(d.url).concat(t,":"),p.t0);case 19:case"end":return p.stop()}},c,null,[[0,16]])}));return function(c){return l.apply(this,arguments)}}()));case 13:case"end":return i.stop()}},e)})),cn.apply(this,arguments)}function Bu(e){return bi.apply(this,arguments)}function bi(){return(bi=Ha(lt().mark(function e(t){var a,r,s;return lt().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return a=new Blob([t]),r=a.stream(),s=r.pipeThrough(new CompressionStream("gzip")),n.abrupt("return",new Response(s).arrayBuffer());case 4:case"end":return n.stop()}},e)}))).apply(this,arguments)}var dn,$u=gi(function(e){Oi("/v1/logs",{resourceLogs:[{resource:le.resource,scopeLogs:[{scope:le.scope,logRecords:e}]}]}).catch(function(t){Ns("Failed to transmit logs",t)})}),Hu=gi(function(e){Oi("/v1/traces",{resourceSpans:[{resource:le.resource,scopeSpans:[{scope:le.scope,spans:e}]}]}).catch(function(t){Ns("Failed to transmit spans",t)})});function yi(){var e,t,a,r,s;return dn||(t=(e={maxCallsPerTenMinutes:4096,maxCallsPerTenSeconds:128}).maxCallsPerTenMinutes,a=e.maxCallsPerTenSeconds,r=0,s=0,zo(function(){r=0},6e5),zo(function(){s=0},1e4),dn=function(){return++r>t||++s>a}),dn()}function Ka(e){yi()?Ue("Transport rate limit. Will not send item.",e):$u.send(e)}function vi(e){e&&(yi()?Ue("Transport rate limit. Will not send item.",e):Hu.send(e))}var qu=["stringValue","boolValue","intValue","doubleValue","arrayValue","kvlistValue","bytesValue"];function un(e){if(e!=null){var t={};return Array.isArray(e)?t.arrayValue={values:e.map(function(a){return un(a)})}:typeof e=="string"?t.stringValue=e:typeof e=="number"?t.doubleValue=e:typeof e=="boolean"?t.boolValue=e:function(a){if(a==null||Rt(a)!=="object")return!1;var r=Object.keys(a);return r.length===1&&qu.includes(r[0])}(e)?t=e:Rt(e)==="object"&&(t.kvlistValue={values:Object.entries(e).map(function(a){var r=qa(a,2);return wi(r[0],r[1])})}),t}}function wi(e,t){return{key:e,value:un(t)}}function ie(e,t,a){t&&e.push(wi(t,a))}var Pi="traceparent",Ai=/^00-([a-f0-9]{32})-([a-f0-9]{16})-[0-9]{1,2}$/;function Vi(){var e,t,a=(((e=Array.from((t=Ie==null?void 0:Ie.getElementsByTagName("meta"))!==null&&t!==void 0?t:[]).find(function(r){var s;return((s=r.getAttribute("name"))===null||s===void 0?void 0:s.toLowerCase())===Pi}))===null||e===void 0?void 0:e.content.trim())||"").match(Ai)||function(){var r=ke.getEntriesByType("navigation")[0];return!r||!r.serverTiming?"":function(s){var n,o=ot(s);try{for(o.s();!(n=o.n()).done;){var i=n.value;if(i.name===Pi)return i.description.trim()}}catch(l){o.e(l)}finally{o.f()}return""}(r.serverTiming)}().match(Ai);if(a)return{traceId:a[1],spanId:a[2]}}function Wu(e,t,a){e.call(t,"traceparent","00-".concat(a.traceId,"-").concat(a.spanId,"-01"))}function Qu(e,t,a){var r,s,n,o=(r=a.traceId,s=r.substring(0,8),n=r.substring(8,32),"1-".concat(s,"-").concat(n)),i="Root=".concat(o,";Parent=").concat(a.spanId,";Sampled=1");e.call(t,"X-Amzn-Trace-Id",i)}var Ei="d042",Gu=1;function Ri(e){var t=0;return e.withoutSession&&(t|=Gu),t.toString(16).padStart(2,"0")}for(var Si=new Uint32Array(256),jr=0;jr<256;jr++){for(var Za=jr,Ti=0;Ti<8;Ti++)Za=1&Za?3988292384^Za>>>1:Za>>>1;Si[jr]=Za>>>0}function zu(e){var t=function(a){for(var r=new Uint8Array(a.length/2),s=0;s>>8^Si[255&(n^i)]}return(4294967295^n)>>>0}(e).toString(16).padStart(8,"0");return"".concat(t).concat(Xt(4))}function Yu(e){var t=function(s){return s?"".concat(Ei).concat(Ri({withoutSession:!1})).concat(s).concat(Xt(5)):"".concat(Ei).concat(Ri({withoutSession:!0})).concat(Xt(13))}(Ya),a=zu(t),r=[];return ie(r,Js,a),{traceId:t,spanId:a,name:e,kind:3,startTimeUnixNano:Zt(),attributes:r,events:[],links:[],status:{code:0}}}function Ci(e,t,a){var r=e;if(!r.endTimeUnixNano)return t&&(r.status=t),r.endTimeUnixNano=a!=null?String(Math.round(parseInt(r.startTimeUnixNano)+a)):Zt(),r;Ue("Attempting to end already ended span. Dropping...",r)}function Ii(e,t,a,r){var s=void 0,n=void 0;typeof a=="string"?s=a:Array.isArray(a)&&(n=a),e.events.push({name:t,timeUnixNano:s??Zt(),attributes:n??[]})}function Ui(e,t,a){var r=function(o){return o?Array.isArray(o)?function(i){return[].concat(Fr(o),[i]).join(".")}:function(i){return"".concat(o,".").concat(i)}:function(i){return i}}(a);try{var s=zs(t);s.username&&(s.username="REDACTED"),s.password&&(s.password="REDACTED");var n=le.urlAttributeScrubber(He(He(He(He(He(He({},Zo,s.href),"url.path",s.pathname),"url.domain",s.hostname),"url.scheme",s.protocol.replace(":","")),"url.fragment",s.hash?s.hash.replace("#",""):void 0),"url.query",s.search?s.search.replace("?",""):void 0));Object.entries(n).forEach(function(o){var i=qa(o,2),l=i[0],c=i[1];c!==void 0&&ie(e,r(l),c)})}catch{le.urlAttributeScrubber===bt&&ie(e,r(Zo),String(t))}}var hn=Jt!=null&&typeof Jt.getItem=="function"&&typeof Jt.setItem=="function",xi="d0_tab",er=null;function Ju(){if(hn)try{var e=function(t){return hn&&Jt?Jt.getItem(t):null}(xi);if(e)return void(er=e);er=Xt(8),function(t,a){hn&&Jt&&Jt.setItem(t,a)}(xi,er)}catch(t){it("Failed to record tab ID information",t)}else Ue("Storage API is not available and tab tracking is therefore not supported.")}function ba(e,t){var a,r,s,n,o;e.find(function(c){return c.key===Js})===void 0&&ie(e,Js,Xt(8));for(var i=0;i1&&arguments[1]!==void 0?arguments[1]:{};nn(function(){var a,r=ii(),s=Bt("LCP"),n=an(t,ku),o=function(h){t.reportAllChanges||(h=h.slice(-1));var m,O=ot(h);try{for(O.s();!(m=O.n()).done;){var p=m.value;n.h(p),p.startTime100)&&!function(l){return!l||mn(le.ignoreErrorMessages,l)}(t)){kr>=20&&(ea={},kr=0);var n=(t=String(t).substring(0,300))+(r=function(l){return String(l||"").split(` `).slice(0,30).join(` `)}(r))+(D==null?void 0:D.location.href),o=ea[n];if(o)o.seenCount++;else{var i=[];ie(i,Qa,Ga.ERROR),ie(i,Xs,t),a&&ie(i,Ks,a),r&&ie(i,Ko,r),s!=null&&s.componentStack&&ie(i,"exception.component_stack",s==null?void 0:s.componentStack.substring(0,2048)),ba(i),o={seenCount:1,transmittedCount:0,log:{timeUnixNano:Zt(),attributes:i,severityNumber:za.ERROR,severityText:"ERROR",body:{stringValue:t}}},ea[n]=o,kr++}(function(){tr||(tr=setTimeout(eh,1e3))})()}}function eh(){for(var e in tr&&(clearTimeout(tr),tr=null),ea)if(Ou(ea,e)){var t=ea[e];t.seenCount>t.transmittedCount&&(Ka(t.log),_i++)}ea={},kr=0}var gn="Unhandled promise rejection: ",On="";function th(e){e.reason==null?ar({message:gn+"",stack:On}):typeof e.reason.message=="string"?ar({message:gn+e.reason.message,stack:typeof e.reason.stack=="string"?e.reason.stack:On}):Rt(e.reason)!=="object"&&ar({message:gn+e.reason,stack:On})}var Br="__dash0OriginalFunctions";function Di(e,t){for(var a=e[Br],r=0;r3&&arguments[3]!==void 0)||arguments[3];!(t in a)||typeof a[t]!="number"||s&&a[t]===0||Ii(e,t,(r=a[t],String(Math.round(1e6*(r+qs())))))}function dh(e,t){var a=t.encodedBodySize;a!=null&&ie(e.attributes,"http.response.body.size",a)}function uh(e){return function(){var t=Ha(lt().mark(function a(r,s){var n,o,i,l,c,d,h,m,O,p,b,g,M,N,j;return lt().wrap(function(de){for(;;)switch(de.prev=de.next){case 0:if(i=s&&Object.assign({},s),l=null,(n=i)!==null&&n!==void 0&&n.body&&(l=i.body,i.body=void 0),c=new Request(r,i),l&&i&&(i.body=l),!Zu(d=c.url)){de.next=9;break}return Ue("Not creating span for fetch call because the url is ignored, URL: ".concat(d)),de.abrupt("return",e(r instanceof Request?c:r,s));case 9:return h=(o=c.method)!==null&&o!==void 0?o:"GET",m=ji(h),O=ji(h.toUpperCase()),p=O?h.toUpperCase():"_OTHER",ba((b=Yu("HTTP ".concat(p))).attributes),Ui(b.attributes,d),hh(r,s),ie(b.attributes,"http.request.method",p),m||ie(b.attributes,"http.request.method_original",h),g=fh(d),g.length>0&&((M=i)!==null&&M!==void 0&&M.headers?(i.headers=new Headers(i.headers),bn(i.headers.append,i.headers,b,g)):r instanceof Request?bn(c.headers.append,c.headers,b,g):(i||(i={}),i.headers=new Headers,bn(i.headers.append,i.headers,b,g))),ki(c.headers,b,function(pe){return Ve=pe,"".concat("http.request.header",".").concat(Ve.toLowerCase());var Ve}),(N=yu({resourceMatcher:function(pe){var Ve=pe.initiatorType,Re=pe.name;return(Ve==="fetch"||Ve==="xmlhttprequest")&&Re===zs(d).href},maxWaitForResourceMillis:le.maxWaitForResourceTimingsMillis,maxToleranceForResourceTimingsMillis:le.maxToleranceForResourceTimingsMillis,onEnd:function(pe){var Ve=pe.duration,Re=pe.resource;Re&&(ch(b,Re),dh(b,Re)),vi(Ci(b,void 0,1e6*Ve))}})).start(),de.prev=25,de.next=28,e(r instanceof Request?c:r,i);case 28:return j=de.sent,ph(b,j),de.abrupt("return",mh(j,le.maxToleranceForResourceTimingsMillis,function(){return N.end()},function(pe){N.cancel(),Bi(b,pe)}));case 33:throw de.prev=33,de.t0=de.catch(25),N.cancel(),Bi(b,de.t0),de.t0;case 38:case"end":return de.stop()}},a,null,[[25,33]])}));return function(a,r){return t.apply(this,arguments)}}()}function hh(e,t,a){try{return}catch(r){Ue("failed to analyze request for GraphQL insights",r,e,t)}}function ki(e,t,a){try{if(!le.headersToCapture.length)return;e.forEach(function(r,s){le.headersToCapture.some(function(n){return n.test(s)})&&ie(t.attributes,a(s),r)})}catch{Ue("unable to capture http headers due to CORS policy")}}function ph(e,t){var a=t.status;(function(r,s,n){r.status={code:s,message:n}})(e,a>=200&&a<400?0:2),a===0&&ie(e.attributes,"error.type",t.type),ie(e.attributes,"http.response.status_code",String(a)),ki(t.headers,e,function(r){return s=r,"".concat("http.response.header",".").concat(s.toLowerCase());var s})}function mh(e,t,a,r){var s,n,o=ke.now(),i=e.body;if(!(i&&(s=e,n=s.status,n>=200&&n!=204&&n!=205&&n!=304)))return a(),e;var l=!1,c=function(p){l||(a(p),l=!0)},d=function(p){l||(r(p),l=!0)},h=ga(function(){return c(o)},t),m=i.getReader(),O=new ReadableStream({pull:function(p){return Ha(lt().mark(function b(){var g,M;return lt().wrap(function(N){for(;;)switch(N.prev=N.next){case 0:return N.prev=0,Go(h),N.next=4,m.read();case 4:g=N.sent,M=g.value,g.done?(m.releaseLock(),p.close(),c()):(o=ke.now(),h=ga(function(){return c(o)},t),p.enqueue(M)),N.next=15;break;case 10:N.prev=10,N.t0=N.catch(0),d(N.t0),p.error(N.t0);try{m.releaseLock()}catch{}case 15:case"end":return N.stop()}},b,null,[[0,10]])}))()},cancel:function(p){return Go(h),c(),m.cancel(p)}});return new Response(O,{status:e.status,statusText:e.statusText,headers:e.headers})}function Bi(e,t){(function(a,r){var s=[];typeof r=="string"?ie(s,Xs,r):r&&(r.code?ie(s,Ks,r.code.toString()):r.name&&ie(s,Ks,r.name),r.message&&ie(s,Xs,r.message),r.stack&&ie(s,Ko,r.stack),Ii(a,"exception",s))})(e,t),vi(Ci(e,function(a){return{code:2,message:a&&Rt(a)==="object"&&"message"in a?a.message:String(a)}}(t),void 0))}function fh(e){var t=[];if(vu(e)){if(t.push("traceparent"),le.propagators){var a,r=ot(le.propagators);try{for(r.s();!(a=r.n()).done;){var s=a.value;s.type==="traceparent"||t.includes(s.type)||t.push(s.type)}}catch(l){r.e(l)}finally{r.f()}}return t}if(le.propagators){var n,o=ot(le.propagators);try{for(o.s();!(n=o.n()).done;){var i=n.value;mn(i.match,e)&&(t.includes(i.type)||t.push(i.type))}}catch(l){o.e(l)}finally{o.f()}return t}return[]}function bn(e,t,a,r){var s,n=ot(r);try{for(n.s();!(s=n.n()).done;)s.value==="xray"?Qu(e,t,a):Wu(e,t,a)}catch(o){n.e(o)}finally{n.f()}}function $i(e,t,a,r){var s,n,o=function(h){var m,O,p;return h&&(m=(O=(p=le.pageViewInstrumentation).generateMetadata)===null||O===void 0?void 0:O.call(p,h))!==null&&m!==void 0?m:{}}(t),i=[];ie(i,Qa,Ga.PAGE_VIEW),o.attributes&&Object.entries(o.attributes).forEach(function(h){var m=qa(h,2),O=m[0],p=m[1];return ie(i,O,p)}),ba(i,{url:t});var l=[];ie(l,"title",(s=(n=o.title)!==null&&n!==void 0?n:Ie==null?void 0:Ie.title)!==null&&s!==void 0?s:Wa),Ie!=null&&Ie.referrer&&ie(l,"referrer",Ie.referrer),ie(l,"type",a?Cu:Tu),ie(l,"change_state",r?Uu:Iu);var c={timeUnixNano:e,attributes:i,severityNumber:za.INFO,severityText:"INFO",body:{kvlistValue:{values:l}}},d=Vi();d&&(c.traceId=d.traceId,c.spanId=d.spanId),Ka(c)}function Hi(){var e=D==null?void 0:D.performance.getEntriesByType("navigation")[0];if(e){var t=[];ie(t,Qa,Ga.NAVIGATION_TIMING);var a=[];ie(a,"name",e.name),ct(a,e,"responseStatus"),ct(a,e,"fetchStart"),ct(a,e,"requestStart"),ct(a,e,"responseStart"),ct(a,e,"domInteractive"),ct(a,e,"domContentLoadedEventEnd"),ct(a,e,"domComplete"),ct(a,e,"loadEventEnd"),ct(a,e,"transferSize"),ct(a,e,"encodedBodySize"),ct(a,e,"decodedBodySize");var r={timeUnixNano:qi(),attributes:t,severityNumber:za.INFO,severityText:"INFO",body:{kvlistValue:{values:a}}};ba(r.attributes);var s=Vi();s&&(r.traceId=s.traceId,r.spanId=s.spanId),Ka(r)}else Ue("Navigation timings not available. Cannot emit navigation timing log")}function ct(e,t,a){var r=t[a];typeof r!="number"||isNaN(r)||ie(e,a,Number.isInteger(r)?r:Gs(r))}function qi(){return Lr(Math.round(qs()))}var ya={},Wi=!1,Qi=!1;function gh(){$r(D==null?void 0:D.location.href)}function Oh(e){$r(e.newURL)}function $r(e,t){var a;if(e)try{var r=new URL(e,D==null?void 0:D.location.href);((a=r).pathname!==ya.path||Qi&&a.search!==ya.search||Wi&&a.hash!==ya.hash)&&(Gi(r),$i(Zt(),r,!0,!!t))}catch(s){Ue("Failed to handle url change",s)}}function Gi(e){ya.path=e.pathname,ya.search=e.search,ya.hash=e.hash}function bh(){(function(){try{$i(qi(),D!=null&&D.location.href?new URL(D==null?void 0:D.location.href):void 0)}catch(e){Ns("Failed to transmit initial page view event",e)}if((Ie==null?void 0:Ie.readyState)==="complete")return Hi();D&&$a(D,"load",function(){setTimeout(Hi,0)})})(),function(){var e,t,a,r;if(D&&D.history){if(le.pageViewInstrumentation.trackVirtualPageViews){Qi=(e=(t=le.pageViewInstrumentation.includeParts)===null||t===void 0?void 0:t.includes("SEARCH"))!==null&&e!==void 0&&e,Wi=(a=(r=le.pageViewInstrumentation.includeParts)===null||r===void 0?void 0:r.includes("HASH"))!==null&&a!==void 0&&a,Ys(D.history,"replaceState",function(s){return function(n,o,i){return $r(i?String(i):void 0,!0),s.apply(this,[n,o,i])}}),Ys(D.history,"pushState",function(s){return function(n,o,i){return $r(i?String(i):void 0),s.apply(this,[n,o,i])}}),D.addEventListener("hashchange",Oh),D.addEventListener("popstate",gh);try{Gi(new URL(D.location.href))}catch{}}}else Ue("Browser does not support history API, skipping instrumentation")}()}var Hr=function(e){if(Rt(e)==="object"&&e!==null){if(typeof Object.getPrototypeOf=="function"){var t=Object.getPrototypeOf(e);return t===Object.prototype||t===null}return Object.prototype.toString.call(e)==="[object Object]"}return!1},dt=function(){for(var e=arguments.length,t=new Array(e),a=0;a1?t-1:0),r=1;r0?(it("'propagateTraceHeadersCorsURLs' is deprecated. Please use the new 'propagators' configuration."),le.propagators=[{type:"traceparent",match:Fr(t.propagateTraceHeadersCorsURLs)}]):le.propagators=[{type:"traceparent",match:[]}]}(e),function(t){ie(le.resource.attributes,wu,t.serviceName),t.serviceVersion&&ie(le.resource.attributes,Pu,t.serviceVersion);var a=function(n){if(n.environment)return n.environment;try{var o;return(o=process)===null||o===void 0||(o=o.env)===null||o===void 0?void 0:o.NEXT_PUBLIC_VERCEL_ENV}catch{return}}(t);a&&ie(le.resource.attributes,Au,a);var r=function(n){if(n.deploymentName)return n.deploymentName;try{var o;return(o=process)===null||o===void 0||(o=o.env)===null||o===void 0?void 0:o.NEXT_PUBLIC_VERCEL_TARGET_ENV}catch{return}}(t);r&&ie(le.resource.attributes,Vu,r);var s=function(n){if(n.deploymentId)return n.deploymentId;try{var o;return(o=process)===null||o===void 0||(o=o.env)===null||o===void 0?void 0:o.NEXT_PUBLIC_VERCEL_BRANCH_URL}catch{return}}(t);s&&ie(le.resource.attributes,Eu,s)}(e),function(t){var a;ie(le.signalAttributes,Ru,Xt(16)),ie(le.signalAttributes,Su,(a=Ur==null?void 0:Ur.userAgent)!==null&&a!==void 0?a:Wa),t.additionalSignalAttributes&&Object.entries(t.additionalSignalAttributes).forEach(function(r){var s=qa(r,2),n=s[0],o=s[1];ie(le.signalAttributes,n,o)})}(e),Ju(),_u(e.sessionInactivityTimeoutMillis,e.sessionTerminationTimeoutMillis),qr("@dash0/navigation",e)&&bh(),qr("@dash0/web-vitals",e)&&Xu(),qr("@dash0/error",e)&&ih(),qr("@dash0/fetch",e)&&(D&&D.fetch&&D.Request?Ys(D,"fetch",uh):Ue("Browser does not support the Fetch API, skipping instrumentation")),zi=!0):it("No telemetry endpoint configured. Aborting Dash0 Web SDK initialization process.")):Ue("Stopping Dash0 Web SDK initialization. This browser does not support the necessary APIs"):Ue("Looks like we are not running in a browser context. Stopping Dash0 Web SDK initialization.")}function qr(e,t){var a=t.enabledInstrumentations;return!a||a.includes(e)}function Wr(e,t){var a;if(Object.values(Ga).includes(e))it("Unable to send custom event ".concat(e,". You are not allowed to use an internal event name while sending a custom event. Dropping event..."));else{var r=[];ba(r),Object.entries((a=t==null?void 0:t.attributes)!==null&&a!==void 0?a:{}).forEach(function(s){var n=qa(s,2),o=n[0],i=n[1];return ie(r,o,i)}),ie(r,Qa,e),t!=null&&t.title&&ie(r,"dash0.web.event.title",t.title),Ka({timeUnixNano:(t==null?void 0:t.timestamp)!=null?Lr(t.timestamp):Zt(),attributes:r,body:un(t==null?void 0:t.data),severityText:t==null?void 0:t.severity,severityNumber:t!=null&&t.severity?za[t.severity]:void 0})}}function vh(e,t){ar(e,t)}function wh(e){Ue("".concat("Initializing Dash0 Web SDK"," (via package)")),yh(e)}const Ph="service.version",Ah=!!{APP_REGION:'"us1"',APP_PULL_REQUEST:'"false"',APP_ENV:'"prod"',APP_FV_REGION:'"us1"',APP_VERSION:'"1.1658.0"',APP_NAME:'"sdk-loader"'}.APP_LOCAL,Yi=["dev","stage","prod"],Ji=["eu","eu2","us1"],Vh=["APP_LOCAL","APP_PREVIEW"];function Qr(e){let t;if(typeof e=="string")try{t=JSON.parse(e)}catch{t=e}else t=e;return typeof t=="string"&&(["true","false"].includes(t)?t=!!t:isNaN(+t)||(t=+t)),t}function Eh(){return Object.keys({APP_REGION:'"us1"',APP_PULL_REQUEST:'"false"',APP_ENV:'"prod"',APP_FV_REGION:'"us1"',APP_VERSION:'"1.1658.0"',APP_NAME:'"sdk-loader"'}).filter(e=>/^APP_/.test(e)&&!Vh.includes(e)).reduce((e,t)=>{const a={APP_REGION:'"us1"',APP_PULL_REQUEST:'"false"',APP_ENV:'"prod"',APP_FV_REGION:'"us1"',APP_VERSION:'"1.1658.0"',APP_NAME:'"sdk-loader"'}[t],r=t.split("_").slice(1).map((s,n)=>`${s[0][n===0?"toLowerCase":"toUpperCase"]()}${s.slice(1).toLowerCase()}`).join("");return Object.assign(e,{[r]:Qr(a)})},{})}function Xi(){let e='"us1"'.toLowerCase();return Ji.indexOf(e)===-1&&(e=Qr(e)),Ji.indexOf(e)===-1&&(e="eu"),e}function Rh(){if(Xi()!=="eu")return"prod";let t='"prod"'.toLowerCase();return Yi.indexOf(t)===-1&&(t=Qr(t)),Yi.indexOf(t)===-1&&(t="dev"),t}const Ki=["dev","stage","eu1","eu2","us1"];function Sh(){let e='"us1"'.toLowerCase();return Ki.indexOf(e)===-1&&(e=Qr(e)),Ki.indexOf(e)===-1&&(e="dev"),e}function ta(){const e=Rh(),t=Xi(),a=Sh();return{...Eh(),env:e,region:t,fvRegion:a,isLocalProcess:!!{APP_REGION:'"us1"',APP_PULL_REQUEST:'"false"',APP_ENV:'"prod"',APP_FV_REGION:'"us1"',APP_VERSION:'"1.1658.0"',APP_NAME:'"sdk-loader"'}.APP_LOCAL,isPullRequest:!1,isDev:e==="dev",isStage:e==="stage",isProd:e==="prod",isPreview:!!{APP_REGION:'"us1"',APP_PULL_REQUEST:'"false"',APP_ENV:'"prod"',APP_FV_REGION:'"us1"',APP_VERSION:'"1.1658.0"',APP_NAME:'"sdk-loader"'}.APP_PREVIEW}}class qe{constructor(t){Pe(this,"ws");Pe(this,"http");this.ws=new rr(t,"ws",t.sameOnAllRegions),this.http=new rr(t,"http",t.sameOnAllRegions)}}class rr{constructor(t,a,r=!1){Pe(this,"map");Pe(this,"protocol");Pe(this,"locked");Pe(this,"runtime",ta());Pe(this,"urls");this.map=t,this.protocol=a,this.locked=r;const s={local:t.local?new URL(t.local):void 0,dev:new URL(t.dev),stage:new URL(t.stage),prod:new URL(t.prod),preview:t.preview?new URL(t.preview):void 0};this.adaptProtocol(s),this.adaptToRegion(s),this.urls={local:this.prettyURL(s.local),dev:this.prettyURL(s.dev),stage:this.prettyURL(s.stage),prod:this.prettyURL(s.prod),preview:this.prettyURL(s.preview)}}get local(){return this.urls.local}get dev(){return this.urls.dev}get stage(){return this.urls.stage}get prod(){return this.urls.prod}get preview(){return this.urls.preview}get url(){return this.runtime.isLocalProcess&&this.local?this.runtime.isPreview&&this.preview?this.preview:this.local:this[this.runtime.env]}region(t){switch(t){case"eu":return new rr(this.map,this.protocol,!0);case"eu2":case"us1":{const a=new URL(this.map.prod);a.hostname=this.regionalize(a.hostname,t);const r=this.prettyURL(a);return new rr({dev:r,stage:r,prod:r},this.protocol,!0)}}}regionalize(t,a){const[r,...s]=t.split(".");return`${r}.${a}.${s.join(".")}`}adaptProtocol(t){const a=this.protocol==="ws"?/^http/:/^ws/;t.local&&(t.local.protocol=t.local.protocol.replace(a,this.protocol)),t.dev.protocol=t.dev.protocol.replace(a,this.protocol),t.stage.protocol=t.stage.protocol.replace(a,this.protocol),t.prod.protocol=t.prod.protocol.replace(a,this.protocol),t.preview&&(t.preview.protocol=t.preview.protocol.replace(a,this.protocol))}adaptToRegion(t){if(!this.locked)switch(this.runtime.region){case"eu":break;case"eu2":case"us1":t.prod.hostname=this.regionalize(t.prod.hostname,this.runtime.region);break}}prettyURL(t){return t==null?void 0:t.toString().replace(/\/$/,"")}}class me{static expand(t,a){return me.expandImpl(t,a)}static validateLiteral(t,a){switch(t){case"+":case"#":case"/":case";":case"?":case"&":case" ":case"!":case"=":case"$":case"|":case"*":case":":case"~":case"-":throw new Error(`Illegal character identified in the token at col: ${a}`)}}static getMaxChar(t,a){if(t){const r=t.join("");if(r.length===0)return-1;try{return parseInt(r,10)}catch{throw new Error(`Cannot parse max chars at col: ${a}`)}}else return-1}static getOperator(t,a,r){switch(t){case"+":return 1;case"#":return 2;case".":return 3;case"/":return 4;case";":return 5;case"?":return 6;case"&":return 7;default:return me.validateLiteral(t,r),a.push(t),0}}static expandImpl(t,a){const r=[];let s=null,n=null,o=!1,i=null,l=!0;for(let c=0;c[a,An(r)]).filter(([a,r])=>r!==void 0))}}clone(){return Object.assign(Object.create(Object.getPrototypeOf(this)),this)}}function An(e){if(e!=null)switch(typeof e){case"boolean":return e;case"number":return e;case"string":return e;case"symbol":case"bigint":return e.toString();case"function":case"undefined":return;case"object":return Object.fromEntries(Object.entries(e).map(([t,a])=>[t,An(a)]).filter(([t,a])=>a!=null))}}const Vn=[{code:"aa",name:"Afar"},{code:"ab",name:"Abkhazian"},{code:"ae",name:"Avestan"},{code:"af",name:"Afrikaans"},{code:"af-za",name:"Afrikaans (South Africa)"},{code:"ak",name:"Akan"},{code:"am",name:"Amharic"},{code:"an",name:"Aragonese"},{code:"ar",name:"Arabic",intercom:!0,zendesk:!0},{code:"ar-sa",name:"Arabic (Saudi Arabia)"},{code:"ar-eg",name:"Arabic (Egypt)"},{code:"ar-ae",name:"Arabic (United Arab Emirates)"},{code:"as",name:"Assamese"},{code:"av",name:"Avaric"},{code:"ay",name:"Aymara"},{code:"az",name:"Azerbaijani"},{code:"az-az",name:"Azerbaijani (Azerbaijan)"},{code:"ba",name:"Bashkir"},{code:"be",name:"Belarusian"},{code:"be-by",name:"Belarusian (Belarus)"},{code:"bg",name:"Bulgarian",intercom:!0,zendesk:!0},{code:"bg-bg",name:"Bulgarian (Bulgaria)"},{code:"bh",name:"Bihari Languages"},{code:"bi",name:"Bislama"},{code:"bm",name:"Bambara"},{code:"bn",name:"Bengali",intercom:!0},{code:"bn-bd",name:"Bengali (Bangladesh)"},{code:"bn-in",name:"Bengali (India)"},{code:"bo",name:"Tibetan"},{code:"br",name:"Breton"},{code:"bs",name:"Bosnian",intercom:!0},{code:"bs-ba",name:"Bosnian (Bosnia and Herzegovina)"},{code:"ca",name:"Catalan",intercom:!0},{code:"ca-es",name:"Catalan (Spain)"},{code:"ce",name:"Chechen"},{code:"ch",name:"Chamorro"},{code:"co",name:"Corsican"},{code:"cr",name:"Cree"},{code:"cs",name:"Czech",intercom:!0,zendesk:!0},{code:"cs-cz",name:"Czech (Czech Republic)"},{code:"cu",name:"Church Slavic"},{code:"cv",name:"Chuvash"},{code:"cy",name:"Welsh"},{code:"cy-gb",name:"Welsh (United Kingdom)"},{code:"da",name:"Danish",intercom:!0,zendesk:!0,salesforce:!0},{code:"da-dk",name:"Danish (Denmark)"},{code:"de",name:"German",intercom:!0,zendesk:!0,salesforce:!0},{code:"de-de",name:"German (Germany)"},{code:"de-at",name:"German (Austria)"},{code:"de-ch",name:"German (Switzerland)"},{code:"de-form",name:"German (Formal)",intercom:!0},{code:"dv",name:"Divehi"},{code:"dz",name:"Dzongkha"},{code:"ee",name:"Ewe"},{code:"el",name:"Greek",intercom:!0,zendesk:!0},{code:"el-gr",name:"Greek (Greece)"},{code:"el-cy",name:"Greek (Cyprus)"},{code:"en",name:"English",intercom:!0},{code:"en-us",name:"English (United States)",zendesk:!0,salesforce:!0,salesforceName:"English"},{code:"en-gb",name:"English (United Kingdom)",zendesk:!0},{code:"en-be",name:"English (Belgium)",zendesk:!0},{code:"en-ca",name:"English (Canada)"},{code:"en-au",name:"English (Australia)"},{code:"eo",name:"Esperanto"},{code:"es",name:"Spanish",intercom:!0,zendesk:!0,salesforce:!0},{code:"es-es",name:"Spanish (Spain)"},{code:"es-mx",name:"Spanish (Mexico)",salesforce:!0},{code:"es-ar",name:"Spanish (Argentina)"},{code:"es-co",name:"Spanish (Colombia)"},{code:"et",name:"Estonian",intercom:!0},{code:"et-ee",name:"Estonian (Estonia)"},{code:"eu",name:"Basque"},{code:"eu-es",name:"Basque (Spain)"},{code:"fa",name:"Persian"},{code:"fa-ir",name:"Persian (Iran)",intercom:!0,intercomName:"Persian"},{code:"fa-af",name:"Persian (Afghanistan)",zendesk:!0,zendeskName:"Dari / Persian (Afghanistan)"},{code:"ff",name:"Fulah"},{code:"fi",name:"Finnish",intercom:!0,zendesk:!0,salesforce:!0},{code:"fi-fi",name:"Finnish (Finland)"},{code:"fil",name:"Filipino",zendesk:!0},{code:"fj",name:"Fijian"},{code:"fo",name:"Faroese"},{code:"fr",name:"French",intercom:!0,zendesk:!0,salesforce:!0},{code:"fr-fr",name:"French (France)"},{code:"fr-ca",name:"French (Canada)",zendesk:!0},{code:"fr-be",name:"French (Belgium)"},{code:"fy",name:"Western Frisian"},{code:"ga",name:"Irish"},{code:"ga-ie",name:"Irish (Ireland)"},{code:"gd",name:"Gaelic"},{code:"gl",name:"Galician"},{code:"gl-es",name:"Galician (Spain)"},{code:"gn",name:"Guarani"},{code:"gu",name:"Gujarati"},{code:"gu-in",name:"Gujarati (India)"},{code:"gv",name:"Manx"},{code:"ha",name:"Hausa"},{code:"he",name:"Hebrew",intercom:!0,zendesk:!0},{code:"he-il",name:"Hebrew (Israel)"},{code:"hi",name:"Hindi",intercom:!0,zendesk:!0},{code:"hi-in",name:"Hindi (India)"},{code:"ho",name:"Hiri Motu"},{code:"hr",name:"Croatian",intercom:!0},{code:"hr-hr",name:"Croatian (Croatia)"},{code:"ht",name:"Haitian"},{code:"hu",name:"Hungarian",intercom:!0,zendesk:!0},{code:"hu-hu",name:"Hungarian (Hungary)"},{code:"hy",name:"Armenian"},{code:"hy-am",name:"Armenian (Armenia)"},{code:"hz",name:"Herero"},{code:"ia",name:"Interlingua"},{code:"id",name:"Indonesian",intercom:!0,zendesk:!0},{code:"id-id",name:"Indonesian (Indonesia)"},{code:"ie",name:"Interlingue"},{code:"ig",name:"Igbo"},{code:"ii",name:"Sichuan Yi"},{code:"ik",name:"Inupiaq"},{code:"io",name:"Ido"},{code:"is",name:"Icelandic"},{code:"is-is",name:"Icelandic (Iceland)"},{code:"it",name:"Italian",intercom:!0,zendesk:!0,salesforce:!0},{code:"it-it",name:"Italian (Italy)"},{code:"it-ch",name:"Italian (Switzerland)"},{code:"iu",name:"Inuktitut"},{code:"ja",name:"Japanese",intercom:!0,zendesk:!0,salesforce:!0},{code:"ja-jp",name:"Japanese (Japan)"},{code:"jv",name:"Javanese"},{code:"ka",name:"Georgian"},{code:"ka-ge",name:"Georgian (Georgia)"},{code:"kg",name:"Kongo"},{code:"ki",name:"Kikuyu"},{code:"kj",name:"Kuanyama"},{code:"kk",name:"Kazakh"},{code:"kk-kz",name:"Kazakh (Kazakhstan)"},{code:"kl",name:"Kalaallisut"},{code:"km",name:"Khmer"},{code:"km-kh",name:"Khmer (Cambodia)"},{code:"kn",name:"Kannada"},{code:"kn-in",name:"Kannada (India)"},{code:"ko",name:"Korean",intercom:!0,zendesk:!0,salesforce:!0},{code:"ko-kr",name:"Korean (South Korea)"},{code:"kr",name:"Kanuri"},{code:"ks",name:"Kashmiri"},{code:"ku",name:"Kurdish"},{code:"kv",name:"Komi"},{code:"kw",name:"Cornish"},{code:"ky",name:"Kyrgyz"},{code:"ky-kg",name:"Kyrgyz (Kyrgyzstan)"},{code:"la",name:"Latin"},{code:"lb",name:"Luxembourgish"},{code:"lb-lu",name:"Luxembourgish (Luxembourg)"},{code:"lg",name:"Ganda"},{code:"li",name:"Limburgan"},{code:"ln",name:"Lingala"},{code:"lo",name:"Lao"},{code:"lo-la",name:"Lao (Laos)"},{code:"lt",name:"Lithuanian",intercom:!0},{code:"lt-lt",name:"Lithuanian (Lithuania)"},{code:"lu",name:"Luba-Katanga"},{code:"lv",name:"Latvian",intercom:!0},{code:"lv-lv",name:"Latvian (Latvia)"},{code:"mg",name:"Malagasy"},{code:"mh",name:"Marshallese"},{code:"mi",name:"Maori"},{code:"mi-nz",name:"Maori (New Zealand)"},{code:"mk",name:"Macedonian"},{code:"mk-mk",name:"Macedonian (North Macedonia)"},{code:"ml",name:"Malayalam"},{code:"ml-in",name:"Malayalam (India)"},{code:"mn",name:"Mongolian",intercom:!0},{code:"mn-mn",name:"Mongolian (Mongolia)"},{code:"mr",name:"Marathi"},{code:"mr-in",name:"Marathi (India)"},{code:"ms",name:"Malay",intercom:!0,zendesk:!0},{code:"ms-my",name:"Malay (Malaysia)"},{code:"mt",name:"Maltese"},{code:"mt-mt",name:"Maltese (Malta)"},{code:"my",name:"Burmese"},{code:"my-mm",name:"Burmese (Myanmar)"},{code:"na",name:"Nauru"},{code:"nb",name:"Norwegian Bokmål",intercom:!0,intercomName:"Norwegian"},{code:"nb-no",name:"Norwegian Bokmål (Norway)"},{code:"nd",name:"Ndebele, North"},{code:"ne",name:"Nepali"},{code:"ne-np",name:"Nepali (Nepal)"},{code:"ng",name:"Ndonga"},{code:"nl",name:"Dutch",intercom:!0,zendesk:!0},{code:"nl-nl",name:"Dutch (Netherlands)",salesforce:!0,salesforceName:"Dutch"},{code:"nl-be",name:"Dutch (Belgium)"},{code:"nn",name:"Norwegian Nynorsk"},{code:"nn-no",name:"Norwegian Nynorsk (Norway)"},{code:"no",name:"Norwegian",zendesk:!0,salesforce:!0},{code:"no-no",name:"Norwegian (Norway)"},{code:"nr",name:"Ndebele, South"},{code:"nv",name:"Navajo"},{code:"ny",name:"Chichewa"},{code:"oc",name:"Occitan"},{code:"oj",name:"Ojibwa"},{code:"om",name:"Oromo"},{code:"or",name:"Oriya"},{code:"or-in",name:"Oriya (India)"},{code:"os",name:"Ossetian"},{code:"pa",name:"Punjabi"},{code:"pa-in",name:"Punjabi (India)"},{code:"pi",name:"Pali"},{code:"pl",name:"Polish",intercom:!0,zendesk:!0},{code:"pl-pl",name:"Polish (Poland)"},{code:"ps",name:"Pashto"},{code:"ps-af",name:"Pashto (Afghanistan)"},{code:"pt",name:"Portuguese",intercom:!0},{code:"pt-pt",name:"Portuguese (Portugal)"},{code:"pt-br",name:"Portuguese (Brazil)",intercom:!0,intercomName:"Brazilian Portuguese",zendesk:!0,salesforce:!0},{code:"qu",name:"Quechua"},{code:"rm",name:"Romansh"},{code:"rn",name:"Rundi"},{code:"ro",name:"Romanian",intercom:!0,zendesk:!0},{code:"ro-ro",name:"Romanian (Romania)"},{code:"ru",name:"Russian",intercom:!0,zendesk:!0,salesforce:!0},{code:"ru-ru",name:"Russian (Russia)"},{code:"rw",name:"Kinyarwanda"},{code:"sa",name:"Sanskrit"},{code:"sc",name:"Sardinian"},{code:"sd",name:"Sindhi"},{code:"se",name:"Northern Sami"},{code:"sg",name:"Sango"},{code:"si",name:"Sinhala"},{code:"si-lk",name:"Sinhala (Sri Lanka)"},{code:"sk",name:"Slovak"},{code:"sk-sk",name:"Slovak (Slovakia)"},{code:"sl",name:"Slovenian",intercom:!0},{code:"sl-si",name:"Slovenian (Slovenia)"},{code:"sm",name:"Samoan"},{code:"sn",name:"Shona"},{code:"so",name:"Somali"},{code:"sq",name:"Albanian"},{code:"sq-al",name:"Albanian (Albania)"},{code:"sr",name:"Serbian",intercom:!0},{code:"sr-rs",name:"Serbian (Serbia)"},{code:"ss",name:"Swati"},{code:"st",name:"Sotho, Southern"},{code:"su",name:"Sundanese"},{code:"sv",name:"Swedish",intercom:!0,zendesk:!0,salesforce:!0},{code:"sv-se",name:"Swedish (Sweden)"},{code:"sw",name:"Swahili",intercom:!0},{code:"sw-ke",name:"Swahili (Kenya)"},{code:"ta",name:"Tamil"},{code:"ta-in",name:"Tamil (India)"},{code:"te",name:"Telugu"},{code:"te-in",name:"Telugu (India)"},{code:"tg",name:"Tajik"},{code:"th",name:"Thai",intercom:!0,zendesk:!0,salesforce:!0},{code:"th-th",name:"Thai (Thailand)"},{code:"ti",name:"Tigrinya"},{code:"tk",name:"Turkmen"},{code:"tl",name:"Tagalog"},{code:"tl-ph",name:"Tagalog (Philippines)"},{code:"tn",name:"Tswana"},{code:"to",name:"Tonga"},{code:"tr",name:"Turkish",intercom:!0,zendesk:!0},{code:"tr-tr",name:"Turkish (Turkey)"},{code:"ts",name:"Tsonga"},{code:"tt",name:"Tatar"},{code:"tw",name:"Twi"},{code:"ty",name:"Tahitian"},{code:"ug",name:"Uighur"},{code:"uk",name:"Ukrainian",intercom:!0},{code:"uk-ua",name:"Ukrainian (Ukraine)"},{code:"ur",name:"Urdu"},{code:"ur-pk",name:"Urdu (Pakistan)"},{code:"uz",name:"Uzbek"},{code:"uz-uz",name:"Uzbek (Uzbekistan)"},{code:"ve",name:"Venda"},{code:"vi",name:"Vietnamese",intercom:!0,zendesk:!0},{code:"vi-vn",name:"Vietnamese (Vietnam)"},{code:"vo",name:"Volapük"},{code:"wa",name:"Walloon"},{code:"wo",name:"Wolof"},{code:"xh",name:"Xhosa"},{code:"yi",name:"Yiddish"},{code:"yo",name:"Yoruba"},{code:"za",name:"Zhuang"},{code:"zh",name:"Chinese"},{code:"zh-cn",name:"Chinese (China)",intercom:!0,intercomName:"Simplified Chinese",zendesk:!0,zendeskName:"Simplified Chinese",salesforce:!0,salesforceName:"Chinese (Simplified)"},{code:"zh-tw",name:"Chinese (Taiwan)",intercom:!0,intercomName:"Traditional Chinese",zendesk:!0,zendeskName:"Traditional Chinese",salesforce:!0,salesforceName:"Chinese (Traditional)"},{code:"zh-hk",name:"Chinese (Hong Kong)"},{code:"zu",name:"Zulu"}];Vn.filter(e=>e.intercom),Vn.filter(e=>e.zendesk),Vn.filter(e=>e.salesforce);const _h=()=>{},Gr="–",zr="fvDebug",Fh=e=>!((!Ah||e!=="error")&&(!globalThis.localStorage||localStorage.getItem(zr)!=="true"));function Yr(e,t,a){const r=a.value;return a.value=function(s,n,o){if(Fh(t))return r.apply(this,[s,n,o])},a}var Lh=Object.defineProperty,Dh=Object.getOwnPropertyDescriptor,Jr=(e,t,a,r)=>{for(var s=r>1?void 0:r?Dh(t,a):t,n=e.length-1,o;n>=0;n--)(o=e[n])&&(s=(r?o(t,a,s):o(s))||s);return r&&s&&Lh(t,a,s),s};class va{get logger(){return self.console}debug(t,a,r){this.logger.debug(this.cookArea(t),a,r)}log(t,a,r){this.logger.log(this.cookArea(t),a,r)}warn(t,a,r){this.logger.warn(this.cookArea(t),a,r)}error(t,a,r){this.logger.error(this.cookArea(t),a,r)}clone(){return Object.assign(Object.create(Object.getPrototypeOf(this)),this)}cookArea(t){return`[fv/${t}]`}}Jr([Yr],va.prototype,"debug",1),Jr([Yr],va.prototype,"log",1),Jr([Yr],va.prototype,"warn",1),Jr([Yr],va.prototype,"error",1);class Mh{constructor(){Pe(this,"sinks",[])}addLogger(t){this.sinks.push(t)}removeLogger(t){this.sinks=this.sinks.filter(a=>a!==t)}debug(t,a,r){this.sinks.forEach(s=>s.debug(t,a,r))}log(t,a,r){this.sinks.forEach(s=>s.log(t,a,r))}warn(t,a,r){this.sinks.forEach(s=>s.warn(t,a,r))}error(t,a,r){this.sinks.forEach(s=>s.error(t,a,r))}setMeta(t){this.sinks.forEach(a=>{var r;return(r=a.setMeta)==null?void 0:r.call(a,t)})}setIgnoreFilter(t){this.sinks.forEach(a=>{var r;return(r=a.setIgnoreFilter)==null?void 0:r.call(a,t)})}clone(){return Object.assign(Object.create(Object.getPrototypeOf(this)),this,{sinks:this.sinks.map(t=>t.clone())})}with(t){var r;const a=this.clone();return(r=a.setMeta)==null||r.call(a,t),a}removeConsoleLogger(){this.sinks=this.sinks.filter(t=>!(t instanceof va))}}const ht=new Mh;ht.addLogger(new va),ht.addLogger(new xh);class Nh{constructor(t){this.audio=t,this.isPlaying=!1}get raw(){return this.audio}play({loop:t=!1,throttle:a=!1}={}){if(this.isPlaying&&a)return;this.audio.pause(),this.audio.currentTime=0,this.audio.loop=t,this.isPlaying=!0;const r=()=>{this.isPlaying=!1,this.audio.removeEventListener("ended",r)};this.audio.addEventListener("ended",r),this.audio.play().catch(()=>{this.isPlaying=!1})}pause(){this.audio.pause(),this.isPlaying=!1}}const jh={blank:"/tones/blank.mp3",chatMessage:"/tones/chatMessage.mp3",supportRequest:"/tones/supportRequest.ogg",incomingCall:"/tones/incomingCall.mp3",participantJoined:"/tones/participantJoined.ogg"};class Xr{static tone(t){var a,r;return(a=this.toneInstances)[t]??(a[t]=new Audio(`${Th.http.url}${this.tonePaths[t]}`)),(r=this.toneControllerInstances)[t]??(r[t]=new Nh(this.toneInstances[t])),this.toneControllerInstances[t]}}Xr.tonePaths=jh,Xr.toneInstances={},Xr.toneControllerInstances={};function nr(e){"@babel/helpers - typeof";return nr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nr(e)}function Ne(e){if(e===null||e===!0||e===!1)return NaN;var t=Number(e);return isNaN(t)?t:t<0?Math.ceil(t):Math.floor(t)}function he(e,t){if(t.length1?"s":"")+" required, but only "+t.length+" present")}function fe(e){he(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||nr(e)==="object"&&t==="[object Date]"?new Date(e.getTime()):typeof e=="number"||t==="[object Number]"?new Date(e):((typeof e=="string"||t==="[object String]")&&typeof console<"u"&&(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn(new Error().stack)),new Date(NaN))}function al(e,t){he(2,arguments);var a=fe(e),r=Ne(t);return isNaN(r)?new Date(NaN):(r&&a.setDate(a.getDate()+r),a)}function kh(e,t){he(2,arguments);var a=fe(e),r=Ne(t);if(isNaN(r))return new Date(NaN);if(!r)return a;var s=a.getDate(),n=new Date(a.getTime());n.setMonth(a.getMonth()+r+1,0);var o=n.getDate();return s>=o?n:(a.setFullYear(n.getFullYear(),n.getMonth(),s),a)}function ze(e,t){if(he(2,arguments),!t||nr(t)!=="object")return new Date(NaN);var a=t.years?Ne(t.years):0,r=t.months?Ne(t.months):0,s=t.weeks?Ne(t.weeks):0,n=t.days?Ne(t.days):0,o=t.hours?Ne(t.hours):0,i=t.minutes?Ne(t.minutes):0,l=t.seconds?Ne(t.seconds):0,c=fe(e),d=r||a?kh(c,r+a*12):c,h=n||s?al(d,n+s*7):d,m=i+o*60,O=l+m*60,p=O*1e3,b=new Date(h.getTime()+p);return b}function Bh(e,t){he(2,arguments);var a=fe(e).getTime(),r=Ne(t);return new Date(a+r)}var $h={};function or(){return $h}function ir(e){var t=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.setUTCFullYear(e.getFullYear()),e.getTime()-t.getTime()}function lr(e){he(1,arguments);var t=fe(e);return t.setHours(0,0,0,0),t}var Hh=864e5;function qh(e,t){he(2,arguments);var a=lr(e),r=lr(t),s=a.getTime()-ir(a),n=r.getTime()-ir(r);return Math.round((s-n)/Hh)}function aa(e,t){he(2,arguments);var a=fe(e),r=fe(t),s=a.getTime()-r.getTime();return s<0?-1:s>0?1:s}var Wh=6e4,Qh=36e5;function En(e,t){he(2,arguments);var a=lr(e),r=lr(t);return a.getTime()===r.getTime()}function Gh(e){return he(1,arguments),e instanceof Date||nr(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function zh(e){if(he(1,arguments),!Gh(e)&&typeof e!="number")return!1;var t=fe(e);return!isNaN(Number(t))}function Yh(e,t){he(2,arguments);var a=fe(e),r=fe(t),s=a.getFullYear()-r.getFullYear(),n=a.getMonth()-r.getMonth();return s*12+n}function Jh(e,t){he(2,arguments);var a=fe(e),r=fe(t);return a.getFullYear()-r.getFullYear()}function rl(e,t){var a=e.getFullYear()-t.getFullYear()||e.getMonth()-t.getMonth()||e.getDate()-t.getDate()||e.getHours()-t.getHours()||e.getMinutes()-t.getMinutes()||e.getSeconds()-t.getSeconds()||e.getMilliseconds()-t.getMilliseconds();return a<0?-1:a>0?1:a}function Xh(e,t){he(2,arguments);var a=fe(e),r=fe(t),s=rl(a,r),n=Math.abs(qh(a,r));a.setDate(a.getDate()-s*n);var o=+(rl(a,r)===-s),i=s*(n-o);return i===0?0:i}function Rn(e,t){return he(2,arguments),fe(e).getTime()-fe(t).getTime()}var sl={ceil:Math.ceil,round:Math.round,floor:Math.floor,trunc:function(t){return t<0?Math.ceil(t):Math.floor(t)}},Kh="trunc";function Sn(e){return e?sl[e]:sl[Kh]}function Zh(e,t,a){he(2,arguments);var r=Rn(e,t)/Qh;return Sn(a==null?void 0:a.roundingMethod)(r)}function ep(e,t,a){he(2,arguments);var r=Rn(e,t)/Wh;return Sn(a==null?void 0:a.roundingMethod)(r)}function Kr(e){he(1,arguments);var t=fe(e);return t.setHours(23,59,59,999),t}function tp(e){he(1,arguments);var t=fe(e),a=t.getMonth();return t.setFullYear(t.getFullYear(),a+1,0),t.setHours(23,59,59,999),t}function ap(e){he(1,arguments);var t=fe(e);return Kr(t).getTime()===tp(t).getTime()}function nl(e,t){he(2,arguments);var a=fe(e),r=fe(t),s=aa(a,r),n=Math.abs(Yh(a,r)),o;if(n<1)o=0;else{a.getMonth()===1&&a.getDate()>27&&a.setDate(30),a.setMonth(a.getMonth()-s*n);var i=aa(a,r)===-s;ap(fe(e))&&n===1&&aa(e,r)===1&&(i=!1),o=s*(n-Number(i))}return o===0?0:o}function ol(e,t,a){he(2,arguments);var r=Rn(e,t)/1e3;return Sn(a==null?void 0:a.roundingMethod)(r)}function rp(e,t){he(2,arguments);var a=fe(e),r=fe(t),s=aa(a,r),n=Math.abs(Jh(a,r));a.setFullYear(1584),r.setFullYear(1584);var o=aa(a,r)===-s,i=s*(n-Number(o));return i===0?0:i}function sp(e,t){he(2,arguments);var a=Ne(t);return Bh(e,-a)}var np=864e5;function op(e){he(1,arguments);var t=fe(e),a=t.getTime();t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0);var r=t.getTime(),s=a-r;return Math.floor(s/np)+1}function Zr(e){he(1,arguments);var t=1,a=fe(e),r=a.getUTCDay(),s=(r=s.getTime()?a+1:t.getTime()>=o.getTime()?a:a-1}function ip(e){he(1,arguments);var t=il(e),a=new Date(0);a.setUTCFullYear(t,0,4),a.setUTCHours(0,0,0,0);var r=Zr(a);return r}var lp=6048e5;function cp(e){he(1,arguments);var t=fe(e),a=Zr(t).getTime()-ip(t).getTime();return Math.round(a/lp)+1}function es(e,t){var a,r,s,n,o,i,l,c;he(1,arguments);var d=or(),h=Ne((a=(r=(s=(n=t==null?void 0:t.weekStartsOn)!==null&&n!==void 0?n:t==null||(o=t.locale)===null||o===void 0||(i=o.options)===null||i===void 0?void 0:i.weekStartsOn)!==null&&s!==void 0?s:d.weekStartsOn)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.weekStartsOn)!==null&&a!==void 0?a:0);if(!(h>=0&&h<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=fe(e),O=m.getUTCDay(),p=(O=1&&O<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(h+1,0,O),p.setUTCHours(0,0,0,0);var b=es(p,t),g=new Date(0);g.setUTCFullYear(h,0,O),g.setUTCHours(0,0,0,0);var M=es(g,t);return d.getTime()>=b.getTime()?h+1:d.getTime()>=M.getTime()?h:h-1}function dp(e,t){var a,r,s,n,o,i,l,c;he(1,arguments);var d=or(),h=Ne((a=(r=(s=(n=t==null?void 0:t.firstWeekContainsDate)!==null&&n!==void 0?n:t==null||(o=t.locale)===null||o===void 0||(i=o.options)===null||i===void 0?void 0:i.firstWeekContainsDate)!==null&&s!==void 0?s:d.firstWeekContainsDate)!==null&&r!==void 0?r:(l=d.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&a!==void 0?a:1),m=ll(e,t),O=new Date(0);O.setUTCFullYear(m,0,h),O.setUTCHours(0,0,0,0);var p=es(O,t);return p}var up=6048e5;function hp(e,t){he(1,arguments);var a=fe(e),r=es(a,t).getTime()-dp(a,t).getTime();return Math.round(r/up)+1}function ve(e,t){for(var a=e<0?"-":"",r=Math.abs(e).toString();r.length0?r:1-r;return ve(a==="yy"?s%100:s,a.length)},M:function(t,a){var r=t.getUTCMonth();return a==="M"?String(r+1):ve(r+1,2)},d:function(t,a){return ve(t.getUTCDate(),a.length)},a:function(t,a){var r=t.getUTCHours()/12>=1?"pm":"am";switch(a){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(t,a){return ve(t.getUTCHours()%12||12,a.length)},H:function(t,a){return ve(t.getUTCHours(),a.length)},m:function(t,a){return ve(t.getUTCMinutes(),a.length)},s:function(t,a){return ve(t.getUTCSeconds(),a.length)},S:function(t,a){var r=a.length,s=t.getUTCMilliseconds(),n=Math.floor(s*Math.pow(10,r-3));return ve(n,a.length)}};const $t=pp;var wa={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},mp={G:function(t,a,r){var s=t.getUTCFullYear()>0?1:0;switch(a){case"G":case"GG":case"GGG":return r.era(s,{width:"abbreviated"});case"GGGGG":return r.era(s,{width:"narrow"});case"GGGG":default:return r.era(s,{width:"wide"})}},y:function(t,a,r){if(a==="yo"){var s=t.getUTCFullYear(),n=s>0?s:1-s;return r.ordinalNumber(n,{unit:"year"})}return $t.y(t,a)},Y:function(t,a,r,s){var n=ll(t,s),o=n>0?n:1-n;if(a==="YY"){var i=o%100;return ve(i,2)}return a==="Yo"?r.ordinalNumber(o,{unit:"year"}):ve(o,a.length)},R:function(t,a){var r=il(t);return ve(r,a.length)},u:function(t,a){var r=t.getUTCFullYear();return ve(r,a.length)},Q:function(t,a,r){var s=Math.ceil((t.getUTCMonth()+1)/3);switch(a){case"Q":return String(s);case"QQ":return ve(s,2);case"Qo":return r.ordinalNumber(s,{unit:"quarter"});case"QQQ":return r.quarter(s,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(s,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(s,{width:"wide",context:"formatting"})}},q:function(t,a,r){var s=Math.ceil((t.getUTCMonth()+1)/3);switch(a){case"q":return String(s);case"qq":return ve(s,2);case"qo":return r.ordinalNumber(s,{unit:"quarter"});case"qqq":return r.quarter(s,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(s,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(s,{width:"wide",context:"standalone"})}},M:function(t,a,r){var s=t.getUTCMonth();switch(a){case"M":case"MM":return $t.M(t,a);case"Mo":return r.ordinalNumber(s+1,{unit:"month"});case"MMM":return r.month(s,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(s,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(s,{width:"wide",context:"formatting"})}},L:function(t,a,r){var s=t.getUTCMonth();switch(a){case"L":return String(s+1);case"LL":return ve(s+1,2);case"Lo":return r.ordinalNumber(s+1,{unit:"month"});case"LLL":return r.month(s,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(s,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(s,{width:"wide",context:"standalone"})}},w:function(t,a,r,s){var n=hp(t,s);return a==="wo"?r.ordinalNumber(n,{unit:"week"}):ve(n,a.length)},I:function(t,a,r){var s=cp(t);return a==="Io"?r.ordinalNumber(s,{unit:"week"}):ve(s,a.length)},d:function(t,a,r){return a==="do"?r.ordinalNumber(t.getUTCDate(),{unit:"date"}):$t.d(t,a)},D:function(t,a,r){var s=op(t);return a==="Do"?r.ordinalNumber(s,{unit:"dayOfYear"}):ve(s,a.length)},E:function(t,a,r){var s=t.getUTCDay();switch(a){case"E":case"EE":case"EEE":return r.day(s,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(s,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(s,{width:"short",context:"formatting"});case"EEEE":default:return r.day(s,{width:"wide",context:"formatting"})}},e:function(t,a,r,s){var n=t.getUTCDay(),o=(n-s.weekStartsOn+8)%7||7;switch(a){case"e":return String(o);case"ee":return ve(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(n,{width:"short",context:"formatting"});case"eeee":default:return r.day(n,{width:"wide",context:"formatting"})}},c:function(t,a,r,s){var n=t.getUTCDay(),o=(n-s.weekStartsOn+8)%7||7;switch(a){case"c":return String(o);case"cc":return ve(o,a.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(n,{width:"narrow",context:"standalone"});case"cccccc":return r.day(n,{width:"short",context:"standalone"});case"cccc":default:return r.day(n,{width:"wide",context:"standalone"})}},i:function(t,a,r){var s=t.getUTCDay(),n=s===0?7:s;switch(a){case"i":return String(n);case"ii":return ve(n,a.length);case"io":return r.ordinalNumber(n,{unit:"day"});case"iii":return r.day(s,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(s,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(s,{width:"short",context:"formatting"});case"iiii":default:return r.day(s,{width:"wide",context:"formatting"})}},a:function(t,a,r){var s=t.getUTCHours(),n=s/12>=1?"pm":"am";switch(a){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(t,a,r){var s=t.getUTCHours(),n;switch(s===12?n=wa.noon:s===0?n=wa.midnight:n=s/12>=1?"pm":"am",a){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(t,a,r){var s=t.getUTCHours(),n;switch(s>=17?n=wa.evening:s>=12?n=wa.afternoon:s>=4?n=wa.morning:n=wa.night,a){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(t,a,r){if(a==="ho"){var s=t.getUTCHours()%12;return s===0&&(s=12),r.ordinalNumber(s,{unit:"hour"})}return $t.h(t,a)},H:function(t,a,r){return a==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):$t.H(t,a)},K:function(t,a,r){var s=t.getUTCHours()%12;return a==="Ko"?r.ordinalNumber(s,{unit:"hour"}):ve(s,a.length)},k:function(t,a,r){var s=t.getUTCHours();return s===0&&(s=24),a==="ko"?r.ordinalNumber(s,{unit:"hour"}):ve(s,a.length)},m:function(t,a,r){return a==="mo"?r.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):$t.m(t,a)},s:function(t,a,r){return a==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):$t.s(t,a)},S:function(t,a){return $t.S(t,a)},X:function(t,a,r,s){var n=s._originalDate||t,o=n.getTimezoneOffset();if(o===0)return"Z";switch(a){case"X":return dl(o);case"XXXX":case"XX":return ra(o);case"XXXXX":case"XXX":default:return ra(o,":")}},x:function(t,a,r,s){var n=s._originalDate||t,o=n.getTimezoneOffset();switch(a){case"x":return dl(o);case"xxxx":case"xx":return ra(o);case"xxxxx":case"xxx":default:return ra(o,":")}},O:function(t,a,r,s){var n=s._originalDate||t,o=n.getTimezoneOffset();switch(a){case"O":case"OO":case"OOO":return"GMT"+cl(o,":");case"OOOO":default:return"GMT"+ra(o,":")}},z:function(t,a,r,s){var n=s._originalDate||t,o=n.getTimezoneOffset();switch(a){case"z":case"zz":case"zzz":return"GMT"+cl(o,":");case"zzzz":default:return"GMT"+ra(o,":")}},t:function(t,a,r,s){var n=s._originalDate||t,o=Math.floor(n.getTime()/1e3);return ve(o,a.length)},T:function(t,a,r,s){var n=s._originalDate||t,o=n.getTime();return ve(o,a.length)}};function cl(e,t){var a=e>0?"-":"+",r=Math.abs(e),s=Math.floor(r/60),n=r%60;if(n===0)return a+String(s);var o=t||"";return a+String(s)+o+ve(n,2)}function dl(e,t){if(e%60===0){var a=e>0?"-":"+";return a+ve(Math.abs(e)/60,2)}return ra(e,t)}function ra(e,t){var a=t||"",r=e>0?"-":"+",s=Math.abs(e),n=ve(Math.floor(s/60),2),o=ve(s%60,2);return r+n+a+o}const fp=mp;var ul=function(t,a){switch(t){case"P":return a.date({width:"short"});case"PP":return a.date({width:"medium"});case"PPP":return a.date({width:"long"});case"PPPP":default:return a.date({width:"full"})}},hl=function(t,a){switch(t){case"p":return a.time({width:"short"});case"pp":return a.time({width:"medium"});case"ppp":return a.time({width:"long"});case"pppp":default:return a.time({width:"full"})}},gp=function(t,a){var r=t.match(/(P+)(p+)?/)||[],s=r[1],n=r[2];if(!n)return ul(t,a);var o;switch(s){case"P":o=a.dateTime({width:"short"});break;case"PP":o=a.dateTime({width:"medium"});break;case"PPP":o=a.dateTime({width:"long"});break;case"PPPP":default:o=a.dateTime({width:"full"});break}return o.replace("{{date}}",ul(s,a)).replace("{{time}}",hl(n,a))},Op={p:hl,P:gp};const bp=Op;var yp=["D","DD"],vp=["YY","YYYY"];function wp(e){return yp.indexOf(e)!==-1}function Pp(e){return vp.indexOf(e)!==-1}function pl(e,t,a){if(e==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(t,"`) for formatting years to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(t,"`) for formatting years to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(t,"`) for formatting days of the month to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(e==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(t,"`) for formatting days of the month to the input `").concat(a,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var Ap={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Vp=function(t,a,r){var s,n=Ap[t];return typeof n=="string"?s=n:a===1?s=n.one:s=n.other.replace("{{count}}",a.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+s:s+" ago":s};const Ep=Vp;function Le(e){return function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=t.width?String(t.width):e.defaultWidth,r=e.formats[a]||e.formats[e.defaultWidth];return r}}var Rp={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},Sp={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Tp={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Cp={date:Le({formats:Rp,defaultWidth:"full"}),time:Le({formats:Sp,defaultWidth:"full"}),dateTime:Le({formats:Tp,defaultWidth:"full"})};const Ip=Cp;var Up={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},xp=function(t,a,r,s){return Up[t]};const _p=xp;function be(e){return function(t,a){var r=a!=null&&a.context?String(a.context):"standalone",s;if(r==="formatting"&&e.formattingValues){var n=e.defaultFormattingWidth||e.defaultWidth,o=a!=null&&a.width?String(a.width):n;s=e.formattingValues[o]||e.formattingValues[n]}else{var i=e.defaultWidth,l=a!=null&&a.width?String(a.width):e.defaultWidth;s=e.values[l]||e.values[i]}var c=e.argumentCallback?e.argumentCallback(t):t;return s[c]}}var Fp={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Lp={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Dp={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Mp={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Np={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},jp={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},kp=function(t,a){var r=Number(t),s=r%100;if(s>20||s<10)switch(s%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Bp={ordinalNumber:kp,era:be({values:Fp,defaultWidth:"wide"}),quarter:be({values:Lp,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:be({values:Dp,defaultWidth:"wide"}),day:be({values:Mp,defaultWidth:"wide"}),dayPeriod:be({values:Np,defaultWidth:"wide",formattingValues:jp,defaultFormattingWidth:"wide"})};const $p=Bp;function ye(e){return function(t){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=a.width,s=r&&e.matchPatterns[r]||e.matchPatterns[e.defaultMatchWidth],n=t.match(s);if(!n)return null;var o=n[0],i=r&&e.parsePatterns[r]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(i)?qp(i,function(h){return h.test(o)}):Hp(i,function(h){return h.test(o)}),c;c=e.valueCallback?e.valueCallback(l):l,c=a.valueCallback?a.valueCallback(c):c;var d=t.slice(o.length);return{value:c,rest:d}}}function Hp(e,t){for(var a in e)if(e.hasOwnProperty(a)&&t(e[a]))return a}function qp(e,t){for(var a=0;a1&&arguments[1]!==void 0?arguments[1]:{},r=t.match(e.matchPattern);if(!r)return null;var s=r[0],n=t.match(e.parsePattern);if(!n)return null;var o=e.valueCallback?e.valueCallback(n[0]):n[0];o=a.valueCallback?a.valueCallback(o):o;var i=t.slice(s.length);return{value:o,rest:i}}}var Wp=/^(\d+)(th|st|nd|rd)?/i,Qp=/\d+/i,Gp={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},zp={any:[/^b/i,/^(a|c)/i]},Yp={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Jp={any:[/1/i,/2/i,/3/i,/4/i]},Xp={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Kp={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Zp={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},em={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},tm={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},am={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},rm={ordinalNumber:Pa({matchPattern:Wp,parsePattern:Qp,valueCallback:function(t){return parseInt(t,10)}}),era:ye({matchPatterns:Gp,defaultMatchWidth:"wide",parsePatterns:zp,defaultParseWidth:"any"}),quarter:ye({matchPatterns:Yp,defaultMatchWidth:"wide",parsePatterns:Jp,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:ye({matchPatterns:Xp,defaultMatchWidth:"wide",parsePatterns:Kp,defaultParseWidth:"any"}),day:ye({matchPatterns:Zp,defaultMatchWidth:"wide",parsePatterns:em,defaultParseWidth:"any"}),dayPeriod:ye({matchPatterns:tm,defaultMatchWidth:"any",parsePatterns:am,defaultParseWidth:"any"})},sm={code:"en-US",formatDistance:Ep,formatLong:Ip,formatRelative:_p,localize:$p,match:rm,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Tn=sm;var nm=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,om=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,im=/^'([^]*?)'?$/,lm=/''/g,cm=/[a-zA-Z]/;function et(e,t,a){var r,s,n,o,i,l,c,d,h,m,O,p,b,g,M,N,j,de;he(2,arguments);var pe=String(t),Ve=or(),Re=(r=(s=a==null?void 0:a.locale)!==null&&s!==void 0?s:Ve.locale)!==null&&r!==void 0?r:Tn,gt=Ne((n=(o=(i=(l=a==null?void 0:a.firstWeekContainsDate)!==null&&l!==void 0?l:a==null||(c=a.locale)===null||c===void 0||(d=c.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&i!==void 0?i:Ve.firstWeekContainsDate)!==null&&o!==void 0?o:(h=Ve.locale)===null||h===void 0||(m=h.options)===null||m===void 0?void 0:m.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(gt>=1&><=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Ot=Ne((O=(p=(b=(g=a==null?void 0:a.weekStartsOn)!==null&&g!==void 0?g:a==null||(M=a.locale)===null||M===void 0||(N=M.options)===null||N===void 0?void 0:N.weekStartsOn)!==null&&b!==void 0?b:Ve.weekStartsOn)!==null&&p!==void 0?p:(j=Ve.locale)===null||j===void 0||(de=j.options)===null||de===void 0?void 0:de.weekStartsOn)!==null&&O!==void 0?O:0);if(!(Ot>=0&&Ot<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!Re.localize)throw new RangeError("locale must contain localize property");if(!Re.formatLong)throw new RangeError("locale must contain formatLong property");var ka=fe(e);if(!zh(ka))throw new RangeError("Invalid time value");var Ms=ir(ka),ko=sp(ka,Ms),Sr={firstWeekContainsDate:gt,weekStartsOn:Ot,locale:Re,_originalDate:ka},Tr=pe.match(om).map(function(je){var R=je[0];if(R==="p"||R==="P"){var S=bp[R];return S(je,Re.formatLong)}return je}).join("").match(nm).map(function(je){if(je==="''")return"'";var R=je[0];if(R==="'")return dm(je);var S=fp[R];if(S)return!(a!=null&&a.useAdditionalWeekYearTokens)&&Pp(je)&&pl(je,t,String(e)),!(a!=null&&a.useAdditionalDayOfYearTokens)&&wp(je)&&pl(je,t,String(e)),S(ko,je,Re.localize,Sr);if(R.match(cm))throw new RangeError("Format string contains an unescaped latin alphabet character `"+R+"`");return je}).join("");return Tr}function dm(e){var t=e.match(im);return t?t[1].replace(lm,"'"):e}function ml(e,t){if(e==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a]);return e}function um(e){return ml({},e)}var fl=1440,hm=2520,Cn=43200,pm=86400;function mm(e,t,a){var r,s;he(2,arguments);var n=or(),o=(r=(s=a==null?void 0:a.locale)!==null&&s!==void 0?s:n.locale)!==null&&r!==void 0?r:Tn;if(!o.formatDistance)throw new RangeError("locale must contain formatDistance property");var i=aa(e,t);if(isNaN(i))throw new RangeError("Invalid time value");var l=ml(um(a),{addSuffix:!!(a!=null&&a.addSuffix),comparison:i}),c,d;i>0?(c=fe(t),d=fe(e)):(c=fe(e),d=fe(t));var h=ol(d,c),m=(ir(d)-ir(c))/1e3,O=Math.round((h-m)/60),p;if(O<2)return a!=null&&a.includeSeconds?h<5?o.formatDistance("lessThanXSeconds",5,l):h<10?o.formatDistance("lessThanXSeconds",10,l):h<20?o.formatDistance("lessThanXSeconds",20,l):h<40?o.formatDistance("halfAMinute",0,l):h<60?o.formatDistance("lessThanXMinutes",1,l):o.formatDistance("xMinutes",1,l):O===0?o.formatDistance("lessThanXMinutes",1,l):o.formatDistance("xMinutes",O,l);if(O<45)return o.formatDistance("xMinutes",O,l);if(O<90)return o.formatDistance("aboutXHours",1,l);if(O0?"om "+s:s+" siden":s};const wm=vm;var Pm={full:"EEEE 'den' d. MMMM y",long:"d. MMMM y",medium:"d. MMM y",short:"dd/MM/y"},Am={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Vm={full:"{{date}} 'kl'. {{time}}",long:"{{date}} 'kl'. {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Em={date:Le({formats:Pm,defaultWidth:"full"}),time:Le({formats:Am,defaultWidth:"full"}),dateTime:Le({formats:Vm,defaultWidth:"full"})};const Rm=Em;var Sm={lastWeek:"'sidste' eeee 'kl.' p",yesterday:"'i går kl.' p",today:"'i dag kl.' p",tomorrow:"'i morgen kl.' p",nextWeek:"'på' eeee 'kl.' p",other:"P"},Tm=function(t,a,r,s){return Sm[t]};const Cm=Tm;var Im={narrow:["fvt","vt"],abbreviated:["f.v.t.","v.t."],wide:["før vesterlandsk tidsregning","vesterlandsk tidsregning"]},Um={narrow:["1","2","3","4"],abbreviated:["1. kvt.","2. kvt.","3. kvt.","4. kvt."],wide:["1. kvartal","2. kvartal","3. kvartal","4. kvartal"]},xm={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mar.","apr.","maj","jun.","jul.","aug.","sep.","okt.","nov.","dec."],wide:["januar","februar","marts","april","maj","juni","juli","august","september","oktober","november","december"]},_m={narrow:["S","M","T","O","T","F","L"],short:["sø","ma","ti","on","to","fr","lø"],abbreviated:["søn.","man.","tir.","ons.","tor.","fre.","lør."],wide:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},Fm={narrow:{am:"a",pm:"p",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"},abbreviated:{am:"AM",pm:"PM",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnat",noon:"middag",morning:"morgen",afternoon:"eftermiddag",evening:"aften",night:"nat"}},Lm={narrow:{am:"a",pm:"p",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"},abbreviated:{am:"AM",pm:"PM",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnat",noon:"middag",morning:"om morgenen",afternoon:"om eftermiddagen",evening:"om aftenen",night:"om natten"}},Dm=function(t,a){var r=Number(t);return r+"."},Mm={ordinalNumber:Dm,era:be({values:Im,defaultWidth:"wide"}),quarter:be({values:Um,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:be({values:xm,defaultWidth:"wide"}),day:be({values:_m,defaultWidth:"wide"}),dayPeriod:be({values:Fm,defaultWidth:"wide",formattingValues:Lm,defaultFormattingWidth:"wide"})};const Nm=Mm;var jm=/^(\d+)(\.)?/i,km=/\d+/i,Bm={narrow:/^(fKr|fvt|eKr|vt)/i,abbreviated:/^(f\.Kr\.?|f\.v\.t\.?|e\.Kr\.?|v\.t\.)/i,wide:/^(f.Kr.|før vesterlandsk tidsregning|e.Kr.|vesterlandsk tidsregning)/i},$m={any:[/^f/i,/^(v|e)/i]},Hm={narrow:/^[1234]/i,abbreviated:/^[1234]. kvt\./i,wide:/^[1234]\.? kvartal/i},qm={any:[/1/i,/2/i,/3/i,/4/i]},Wm={narrow:/^[jfmasond]/i,abbreviated:/^(jan.|feb.|mar.|apr.|maj|jun.|jul.|aug.|sep.|okt.|nov.|dec.)/i,wide:/^(januar|februar|marts|april|maj|juni|juli|august|september|oktober|november|december)/i},Qm={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Gm={narrow:/^[smtofl]/i,short:/^(søn.|man.|tir.|ons.|tor.|fre.|lør.)/i,abbreviated:/^(søn|man|tir|ons|tor|fre|lør)/i,wide:/^(søndag|mandag|tirsdag|onsdag|torsdag|fredag|lørdag)/i},zm={narrow:[/^s/i,/^m/i,/^t/i,/^o/i,/^t/i,/^f/i,/^l/i],any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},Ym={narrow:/^(a|p|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i,any:/^([ap]\.?\s?m\.?|midnat|middag|(om) (morgenen|eftermiddagen|aftenen|natten))/i},Jm={any:{am:/^a/i,pm:/^p/i,midnight:/midnat/i,noon:/middag/i,morning:/morgen/i,afternoon:/eftermiddag/i,evening:/aften/i,night:/nat/i}},Xm={ordinalNumber:Pa({matchPattern:jm,parsePattern:km,valueCallback:function(t){return parseInt(t,10)}}),era:ye({matchPatterns:Bm,defaultMatchWidth:"wide",parsePatterns:$m,defaultParseWidth:"any"}),quarter:ye({matchPatterns:Hm,defaultMatchWidth:"wide",parsePatterns:qm,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:ye({matchPatterns:Wm,defaultMatchWidth:"wide",parsePatterns:Qm,defaultParseWidth:"any"}),day:ye({matchPatterns:Gm,defaultMatchWidth:"wide",parsePatterns:zm,defaultParseWidth:"any"}),dayPeriod:ye({matchPatterns:Ym,defaultMatchWidth:"any",parsePatterns:Jm,defaultParseWidth:"any"})},Km={code:"da",formatDistance:wm,formatLong:Rm,formatRelative:Cm,localize:Nm,match:Xm,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Zm=Km;var gl={lessThanXSeconds:{standalone:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"},withPreposition:{one:"weniger als 1 Sekunde",other:"weniger als {{count}} Sekunden"}},xSeconds:{standalone:{one:"1 Sekunde",other:"{{count}} Sekunden"},withPreposition:{one:"1 Sekunde",other:"{{count}} Sekunden"}},halfAMinute:{standalone:"halbe Minute",withPreposition:"halben Minute"},lessThanXMinutes:{standalone:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"},withPreposition:{one:"weniger als 1 Minute",other:"weniger als {{count}} Minuten"}},xMinutes:{standalone:{one:"1 Minute",other:"{{count}} Minuten"},withPreposition:{one:"1 Minute",other:"{{count}} Minuten"}},aboutXHours:{standalone:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"},withPreposition:{one:"etwa 1 Stunde",other:"etwa {{count}} Stunden"}},xHours:{standalone:{one:"1 Stunde",other:"{{count}} Stunden"},withPreposition:{one:"1 Stunde",other:"{{count}} Stunden"}},xDays:{standalone:{one:"1 Tag",other:"{{count}} Tage"},withPreposition:{one:"1 Tag",other:"{{count}} Tagen"}},aboutXWeeks:{standalone:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"},withPreposition:{one:"etwa 1 Woche",other:"etwa {{count}} Wochen"}},xWeeks:{standalone:{one:"1 Woche",other:"{{count}} Wochen"},withPreposition:{one:"1 Woche",other:"{{count}} Wochen"}},aboutXMonths:{standalone:{one:"etwa 1 Monat",other:"etwa {{count}} Monate"},withPreposition:{one:"etwa 1 Monat",other:"etwa {{count}} Monaten"}},xMonths:{standalone:{one:"1 Monat",other:"{{count}} Monate"},withPreposition:{one:"1 Monat",other:"{{count}} Monaten"}},aboutXYears:{standalone:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahre"},withPreposition:{one:"etwa 1 Jahr",other:"etwa {{count}} Jahren"}},xYears:{standalone:{one:"1 Jahr",other:"{{count}} Jahre"},withPreposition:{one:"1 Jahr",other:"{{count}} Jahren"}},overXYears:{standalone:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahre"},withPreposition:{one:"mehr als 1 Jahr",other:"mehr als {{count}} Jahren"}},almostXYears:{standalone:{one:"fast 1 Jahr",other:"fast {{count}} Jahre"},withPreposition:{one:"fast 1 Jahr",other:"fast {{count}} Jahren"}}},ef=function(t,a,r){var s,n=r!=null&&r.addSuffix?gl[t].withPreposition:gl[t].standalone;return typeof n=="string"?s=n:a===1?s=n.one:s=n.other.replace("{{count}}",String(a)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+s:"vor "+s:s};const tf=ef;var af={full:"EEEE, do MMMM y",long:"do MMMM y",medium:"do MMM y",short:"dd.MM.y"},rf={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},sf={full:"{{date}} 'um' {{time}}",long:"{{date}} 'um' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},nf={date:Le({formats:af,defaultWidth:"full"}),time:Le({formats:rf,defaultWidth:"full"}),dateTime:Le({formats:sf,defaultWidth:"full"})};const of=nf;var lf={lastWeek:"'letzten' eeee 'um' p",yesterday:"'gestern um' p",today:"'heute um' p",tomorrow:"'morgen um' p",nextWeek:"eeee 'um' p",other:"P"},cf=function(t,a,r,s){return lf[t]};const df=cf;var uf={narrow:["v.Chr.","n.Chr."],abbreviated:["v.Chr.","n.Chr."],wide:["vor Christus","nach Christus"]},hf={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1. Quartal","2. Quartal","3. Quartal","4. Quartal"]},xn={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],wide:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},pf={narrow:xn.narrow,abbreviated:["Jan.","Feb.","März","Apr.","Mai","Juni","Juli","Aug.","Sep.","Okt.","Nov.","Dez."],wide:xn.wide},mf={narrow:["S","M","D","M","D","F","S"],short:["So","Mo","Di","Mi","Do","Fr","Sa"],abbreviated:["So.","Mo.","Di.","Mi.","Do.","Fr.","Sa."],wide:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},ff={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachm.",evening:"Abend",night:"Nacht"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"Morgen",afternoon:"Nachmittag",evening:"Abend",night:"Nacht"}},gf={narrow:{am:"vm.",pm:"nm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachm.",evening:"abends",night:"nachts"},abbreviated:{am:"vorm.",pm:"nachm.",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"},wide:{am:"vormittags",pm:"nachmittags",midnight:"Mitternacht",noon:"Mittag",morning:"morgens",afternoon:"nachmittags",evening:"abends",night:"nachts"}},Of=function(t){var a=Number(t);return a+"."},bf={ordinalNumber:Of,era:be({values:uf,defaultWidth:"wide"}),quarter:be({values:hf,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:be({values:xn,formattingValues:pf,defaultWidth:"wide"}),day:be({values:mf,defaultWidth:"wide"}),dayPeriod:be({values:ff,defaultWidth:"wide",formattingValues:gf,defaultFormattingWidth:"wide"})};const yf=bf;var vf=/^(\d+)(\.)?/i,wf=/\d+/i,Pf={narrow:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,abbreviated:/^(v\.? ?Chr\.?|n\.? ?Chr\.?)/i,wide:/^(vor Christus|vor unserer Zeitrechnung|nach Christus|unserer Zeitrechnung)/i},Af={any:[/^v/i,/^n/i]},Vf={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},Ef={any:[/1/i,/2/i,/3/i,/4/i]},Rf={narrow:/^[jfmasond]/i,abbreviated:/^(j[aä]n|feb|mär[z]?|apr|mai|jun[i]?|jul[i]?|aug|sep|okt|nov|dez)\.?/i,wide:/^(januar|februar|märz|april|mai|juni|juli|august|september|oktober|november|dezember)/i},Sf={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^j[aä]/i,/^f/i,/^mär/i,/^ap/i,/^mai/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Tf={narrow:/^[smdmf]/i,short:/^(so|mo|di|mi|do|fr|sa)/i,abbreviated:/^(son?|mon?|die?|mit?|don?|fre?|sam?)\.?/i,wide:/^(sonntag|montag|dienstag|mittwoch|donnerstag|freitag|samstag)/i},Cf={any:[/^so/i,/^mo/i,/^di/i,/^mi/i,/^do/i,/^f/i,/^sa/i]},If={narrow:/^(vm\.?|nm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,abbreviated:/^(vorm\.?|nachm\.?|Mitternacht|Mittag|morgens|nachm\.?|abends|nachts)/i,wide:/^(vormittags|nachmittags|Mitternacht|Mittag|morgens|nachmittags|abends|nachts)/i},Uf={any:{am:/^v/i,pm:/^n/i,midnight:/^Mitte/i,noon:/^Mitta/i,morning:/morgens/i,afternoon:/nachmittags/i,evening:/abends/i,night:/nachts/i}},xf={ordinalNumber:Pa({matchPattern:vf,parsePattern:wf,valueCallback:function(t){return parseInt(t)}}),era:ye({matchPatterns:Pf,defaultMatchWidth:"wide",parsePatterns:Af,defaultParseWidth:"any"}),quarter:ye({matchPatterns:Vf,defaultMatchWidth:"wide",parsePatterns:Ef,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:ye({matchPatterns:Rf,defaultMatchWidth:"wide",parsePatterns:Sf,defaultParseWidth:"any"}),day:ye({matchPatterns:Tf,defaultMatchWidth:"wide",parsePatterns:Cf,defaultParseWidth:"any"}),dayPeriod:ye({matchPatterns:If,defaultMatchWidth:"wide",parsePatterns:Uf,defaultParseWidth:"any"})},_f={code:"de",formatDistance:tf,formatLong:of,formatRelative:df,localize:yf,match:xf,options:{weekStartsOn:1,firstWeekContainsDate:4}};const Ff=_f;var Lf={lessThanXSeconds:{one:"menos de un segundo",other:"menos de {{count}} segundos"},xSeconds:{one:"1 segundo",other:"{{count}} segundos"},halfAMinute:"medio minuto",lessThanXMinutes:{one:"menos de un minuto",other:"menos de {{count}} minutos"},xMinutes:{one:"1 minuto",other:"{{count}} minutos"},aboutXHours:{one:"alrededor de 1 hora",other:"alrededor de {{count}} horas"},xHours:{one:"1 hora",other:"{{count}} horas"},xDays:{one:"1 día",other:"{{count}} días"},aboutXWeeks:{one:"alrededor de 1 semana",other:"alrededor de {{count}} semanas"},xWeeks:{one:"1 semana",other:"{{count}} semanas"},aboutXMonths:{one:"alrededor de 1 mes",other:"alrededor de {{count}} meses"},xMonths:{one:"1 mes",other:"{{count}} meses"},aboutXYears:{one:"alrededor de 1 año",other:"alrededor de {{count}} años"},xYears:{one:"1 año",other:"{{count}} años"},overXYears:{one:"más de 1 año",other:"más de {{count}} años"},almostXYears:{one:"casi 1 año",other:"casi {{count}} años"}},Df=function(t,a,r){var s,n=Lf[t];return typeof n=="string"?s=n:a===1?s=n.one:s=n.other.replace("{{count}}",a.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"en "+s:"hace "+s:s};const Mf=Df;var Nf={full:"EEEE, d 'de' MMMM 'de' y",long:"d 'de' MMMM 'de' y",medium:"d MMM y",short:"dd/MM/y"},jf={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},kf={full:"{{date}} 'a las' {{time}}",long:"{{date}} 'a las' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},Bf={date:Le({formats:Nf,defaultWidth:"full"}),time:Le({formats:jf,defaultWidth:"full"}),dateTime:Le({formats:kf,defaultWidth:"full"})};const $f=Bf;var Hf={lastWeek:"'el' eeee 'pasado a la' p",yesterday:"'ayer a la' p",today:"'hoy a la' p",tomorrow:"'mañana a la' p",nextWeek:"eeee 'a la' p",other:"P"},qf={lastWeek:"'el' eeee 'pasado a las' p",yesterday:"'ayer a las' p",today:"'hoy a las' p",tomorrow:"'mañana a las' p",nextWeek:"eeee 'a las' p",other:"P"},Wf=function(t,a,r,s){return a.getUTCHours()!==1?qf[t]:Hf[t]};const Qf=Wf;var Gf={narrow:["AC","DC"],abbreviated:["AC","DC"],wide:["antes de cristo","después de cristo"]},zf={narrow:["1","2","3","4"],abbreviated:["T1","T2","T3","T4"],wide:["1º trimestre","2º trimestre","3º trimestre","4º trimestre"]},Yf={narrow:["e","f","m","a","m","j","j","a","s","o","n","d"],abbreviated:["ene","feb","mar","abr","may","jun","jul","ago","sep","oct","nov","dic"],wide:["enero","febrero","marzo","abril","mayo","junio","julio","agosto","septiembre","octubre","noviembre","diciembre"]},Jf={narrow:["d","l","m","m","j","v","s"],short:["do","lu","ma","mi","ju","vi","sá"],abbreviated:["dom","lun","mar","mié","jue","vie","sáb"],wide:["domingo","lunes","martes","miércoles","jueves","viernes","sábado"]},Xf={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"mañana",afternoon:"tarde",evening:"tarde",night:"noche"}},Kf={narrow:{am:"a",pm:"p",midnight:"mn",noon:"md",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},abbreviated:{am:"AM",pm:"PM",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"},wide:{am:"a.m.",pm:"p.m.",midnight:"medianoche",noon:"mediodia",morning:"de la mañana",afternoon:"de la tarde",evening:"de la tarde",night:"de la noche"}},Zf=function(t,a){var r=Number(t);return r+"º"},eg={ordinalNumber:Zf,era:be({values:Gf,defaultWidth:"wide"}),quarter:be({values:zf,defaultWidth:"wide",argumentCallback:function(t){return Number(t)-1}}),month:be({values:Yf,defaultWidth:"wide"}),day:be({values:Jf,defaultWidth:"wide"}),dayPeriod:be({values:Xf,defaultWidth:"wide",formattingValues:Kf,defaultFormattingWidth:"wide"})};const tg=eg;var ag=/^(\d+)(º)?/i,rg=/\d+/i,sg={narrow:/^(ac|dc|a|d)/i,abbreviated:/^(a\.?\s?c\.?|a\.?\s?e\.?\s?c\.?|d\.?\s?c\.?|e\.?\s?c\.?)/i,wide:/^(antes de cristo|antes de la era com[uú]n|despu[eé]s de cristo|era com[uú]n)/i},ng={any:[/^ac/i,/^dc/i],wide:[/^(antes de cristo|antes de la era com[uú]n)/i,/^(despu[eé]s de cristo|era com[uú]n)/i]},og={narrow:/^[1234]/i,abbreviated:/^T[1234]/i,wide:/^[1234](º)? trimestre/i},ig={any:[/1/i,/2/i,/3/i,/4/i]},lg={narrow:/^[efmajsond]/i,abbreviated:/^(ene|feb|mar|abr|may|jun|jul|ago|sep|oct|nov|dic)/i,wide:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i},cg={narrow:[/^e/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^en/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i]},dg={narrow:/^[dlmjvs]/i,short:/^(do|lu|ma|mi|ju|vi|s[áa])/i,abbreviated:/^(dom|lun|mar|mi[ée]|jue|vie|s[áa]b)/i,wide:/^(domingo|lunes|martes|mi[ée]rcoles|jueves|viernes|s[áa]bado)/i},ug={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^do/i,/^lu/i,/^ma/i,/^mi/i,/^ju/i,/^vi/i,/^sa/i]},hg={narrow:/^(a|p|mn|md|(de la|a las) (mañana|tarde|noche))/i,any:/^([ap]\.?\s?m\.?|medianoche|mediodia|(de la|a las) (mañana|tarde|noche))/i},pg={any:{am:/^a/i,pm:/^p/i,midnight:/^mn/i,noon:/^md/i,morning:/mañana/i,afternoon:/tarde/i,evening:/tarde/i,night:/noche/i}},mg={ordinalNumber:Pa({matchPattern:ag,parsePattern:rg,valueCallback:function(t){return parseInt(t,10)}}),era:ye({matchPatterns:sg,defaultMatchWidth:"wide",parsePatterns:ng,defaultParseWidth:"any"}),quarter:ye({matchPatterns:og,defaultMatchWidth:"wide",parsePatterns:ig,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:ye({matchPatterns:lg,defaultMatchWidth:"wide",parsePatterns:cg,defaultParseWidth:"any"}),day:ye({matchPatterns:dg,defaultMatchWidth:"wide",parsePatterns:ug,defaultParseWidth:"any"}),dayPeriod:ye({matchPatterns:hg,defaultMatchWidth:"any",parsePatterns:pg,defaultParseWidth:"any"})},fg={code:"es",formatDistance:Mf,formatLong:$f,formatRelative:Qf,localize:tg,match:mg,options:{weekStartsOn:1,firstWeekContainsDate:1}};const gg=fg;var Og={lessThanXSeconds:{one:"moins d’une seconde",other:"moins de {{count}} secondes"},xSeconds:{one:"1 seconde",other:"{{count}} secondes"},halfAMinute:"30 secondes",lessThanXMinutes:{one:"moins d’une minute",other:"moins de {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"environ 1 heure",other:"environ {{count}} heures"},xHours:{one:"1 heure",other:"{{count}} heures"},xDays:{one:"1 jour",other:"{{count}} jours"},aboutXWeeks:{one:"environ 1 semaine",other:"environ {{count}} semaines"},xWeeks:{one:"1 semaine",other:"{{count}} semaines"},aboutXMonths:{one:"environ 1 mois",other:"environ {{count}} mois"},xMonths:{one:"1 mois",other:"{{count}} mois"},aboutXYears:{one:"environ 1 an",other:"environ {{count}} ans"},xYears:{one:"1 an",other:"{{count}} ans"},overXYears:{one:"plus d’un an",other:"plus de {{count}} ans"},almostXYears:{one:"presqu’un an",other:"presque {{count}} ans"}},bg=function(t,a,r){var s,n=Og[t];return typeof n=="string"?s=n:a===1?s=n.one:s=n.other.replace("{{count}}",String(a)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"dans "+s:"il y a "+s:s};const yg=bg;var vg={lastWeek:"eeee 'dernier à' p",yesterday:"'hier à' p",today:"'aujourd’hui à' p",tomorrow:"'demain à' p'",nextWeek:"eeee 'prochain à' p",other:"P"},wg=function(t,a,r,s){return vg[t]};const Pg=wg;var Ag={narrow:["av. J.-C","ap. J.-C"],abbreviated:["av. J.-C","ap. J.-C"],wide:["avant Jésus-Christ","après Jésus-Christ"]},Vg={narrow:["T1","T2","T3","T4"],abbreviated:["1er trim.","2ème trim.","3ème trim.","4ème trim."],wide:["1er trimestre","2ème trimestre","3ème trimestre","4ème trimestre"]},Eg={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["janv.","févr.","mars","avr.","mai","juin","juil.","août","sept.","oct.","nov.","déc."],wide:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},Rg={narrow:["D","L","M","M","J","V","S"],short:["di","lu","ma","me","je","ve","sa"],abbreviated:["dim.","lun.","mar.","mer.","jeu.","ven.","sam."],wide:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},Sg={narrow:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"mat.",afternoon:"ap.m.",evening:"soir",night:"mat."},abbreviated:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"matin",afternoon:"après-midi",evening:"soir",night:"matin"},wide:{am:"AM",pm:"PM",midnight:"minuit",noon:"midi",morning:"du matin",afternoon:"de l’après-midi",evening:"du soir",night:"du matin"}},Tg=function(t,a){var r=Number(t),s=a==null?void 0:a.unit;if(r===0)return"0";var n=["year","week","hour","minute","second"],o;return r===1?o=s&&n.includes(s)?"ère":"er":o="ème",r+o},Cg={ordinalNumber:Tg,era:be({values:Ag,defaultWidth:"wide"}),quarter:be({values:Vg,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:be({values:Eg,defaultWidth:"wide"}),day:be({values:Rg,defaultWidth:"wide"}),dayPeriod:be({values:Sg,defaultWidth:"wide"})};const Ig=Cg;var Ug=/^(\d+)(ième|ère|ème|er|e)?/i,xg=/\d+/i,_g={narrow:/^(av\.J\.C|ap\.J\.C|ap\.J\.-C)/i,abbreviated:/^(av\.J\.-C|av\.J-C|apr\.J\.-C|apr\.J-C|ap\.J-C)/i,wide:/^(avant Jésus-Christ|après Jésus-Christ)/i},Fg={any:[/^av/i,/^ap/i]},Lg={narrow:/^T?[1234]/i,abbreviated:/^[1234](er|ème|e)? trim\.?/i,wide:/^[1234](er|ème|e)? trimestre/i},Dg={any:[/1/i,/2/i,/3/i,/4/i]},Mg={narrow:/^[jfmasond]/i,abbreviated:/^(janv|févr|mars|avr|mai|juin|juill|juil|août|sept|oct|nov|déc)\.?/i,wide:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i},Ng={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^av/i,/^ma/i,/^juin/i,/^juil/i,/^ao/i,/^s/i,/^o/i,/^n/i,/^d/i]},jg={narrow:/^[lmjvsd]/i,short:/^(di|lu|ma|me|je|ve|sa)/i,abbreviated:/^(dim|lun|mar|mer|jeu|ven|sam)\.?/i,wide:/^(dimanche|lundi|mardi|mercredi|jeudi|vendredi|samedi)/i},kg={narrow:[/^d/i,/^l/i,/^m/i,/^m/i,/^j/i,/^v/i,/^s/i],any:[/^di/i,/^lu/i,/^ma/i,/^me/i,/^je/i,/^ve/i,/^sa/i]},Bg={narrow:/^(a|p|minuit|midi|mat\.?|ap\.?m\.?|soir|nuit)/i,any:/^([ap]\.?\s?m\.?|du matin|de l'après[-\s]midi|du soir|de la nuit)/i},$g={any:{am:/^a/i,pm:/^p/i,midnight:/^min/i,noon:/^mid/i,morning:/mat/i,afternoon:/ap/i,evening:/soir/i,night:/nuit/i}},Hg={ordinalNumber:Pa({matchPattern:Ug,parsePattern:xg,valueCallback:function(t){return parseInt(t)}}),era:ye({matchPatterns:_g,defaultMatchWidth:"wide",parsePatterns:Fg,defaultParseWidth:"any"}),quarter:ye({matchPatterns:Lg,defaultMatchWidth:"wide",parsePatterns:Dg,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:ye({matchPatterns:Mg,defaultMatchWidth:"wide",parsePatterns:Ng,defaultParseWidth:"any"}),day:ye({matchPatterns:jg,defaultMatchWidth:"wide",parsePatterns:kg,defaultParseWidth:"any"}),dayPeriod:ye({matchPatterns:Bg,defaultMatchWidth:"any",parsePatterns:$g,defaultParseWidth:"any"})};const qg=Hg;var Wg={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"yy-MM-dd"},Qg={full:"HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},Gg={full:"{{date}} 'à' {{time}}",long:"{{date}} 'à' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},zg={date:Le({formats:Wg,defaultWidth:"full"}),time:Le({formats:Qg,defaultWidth:"full"}),dateTime:Le({formats:Gg,defaultWidth:"full"})},Yg={code:"fr-CA",formatDistance:yg,formatLong:zg,formatRelative:Pg,localize:Ig,match:qg,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Jg=Yg;var Xg={lessThanXSeconds:{one:"mindre än en sekund",other:"mindre än {{count}} sekunder"},xSeconds:{one:"en sekund",other:"{{count}} sekunder"},halfAMinute:"en halv minut",lessThanXMinutes:{one:"mindre än en minut",other:"mindre än {{count}} minuter"},xMinutes:{one:"en minut",other:"{{count}} minuter"},aboutXHours:{one:"ungefär en timme",other:"ungefär {{count}} timmar"},xHours:{one:"en timme",other:"{{count}} timmar"},xDays:{one:"en dag",other:"{{count}} dagar"},aboutXWeeks:{one:"ungefär en vecka",other:"ungefär {{count}} vecka"},xWeeks:{one:"en vecka",other:"{{count}} vecka"},aboutXMonths:{one:"ungefär en månad",other:"ungefär {{count}} månader"},xMonths:{one:"en månad",other:"{{count}} månader"},aboutXYears:{one:"ungefär ett år",other:"ungefär {{count}} år"},xYears:{one:"ett år",other:"{{count}} år"},overXYears:{one:"över ett år",other:"över {{count}} år"},almostXYears:{one:"nästan ett år",other:"nästan {{count}} år"}},Kg=["noll","en","två","tre","fyra","fem","sex","sju","åtta","nio","tio","elva","tolv"],Zg=function(t,a,r){var s,n=Xg[t];return typeof n=="string"?s=n:a===1?s=n.one:r&&r.onlyNumeric?s=n.other.replace("{{count}}",String(a)):s=n.other.replace("{{count}}",a<13?Kg[a]:String(a)),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"om "+s:s+" sedan":s};const eO=Zg;var tO={full:"EEEE d MMMM y",long:"d MMMM y",medium:"d MMM y",short:"y-MM-dd"},aO={full:"'kl'. HH:mm:ss zzzz",long:"HH:mm:ss z",medium:"HH:mm:ss",short:"HH:mm"},rO={full:"{{date}} 'kl.' {{time}}",long:"{{date}} 'kl.' {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},sO={date:Le({formats:tO,defaultWidth:"full"}),time:Le({formats:aO,defaultWidth:"full"}),dateTime:Le({formats:rO,defaultWidth:"full"})};const nO=sO;var oO={lastWeek:"'i' EEEE's kl.' p",yesterday:"'igår kl.' p",today:"'idag kl.' p",tomorrow:"'imorgon kl.' p",nextWeek:"EEEE 'kl.' p",other:"P"},iO=function(t,a,r,s){return oO[t]};const lO=iO;var cO={narrow:["f.Kr.","e.Kr."],abbreviated:["f.Kr.","e.Kr."],wide:["före Kristus","efter Kristus"]},dO={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1:a kvartalet","2:a kvartalet","3:e kvartalet","4:e kvartalet"]},uO={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["jan.","feb.","mars","apr.","maj","juni","juli","aug.","sep.","okt.","nov.","dec."],wide:["januari","februari","mars","april","maj","juni","juli","augusti","september","oktober","november","december"]},hO={narrow:["S","M","T","O","T","F","L"],short:["sö","må","ti","on","to","fr","lö"],abbreviated:["sön","mån","tis","ons","tors","fre","lör"],wide:["söndag","måndag","tisdag","onsdag","torsdag","fredag","lördag"]},pO={narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"morg.",afternoon:"efterm.",evening:"kväll",night:"natt"},abbreviated:{am:"f.m.",pm:"e.m.",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"efterm.",evening:"kväll",night:"natt"},wide:{am:"förmiddag",pm:"eftermiddag",midnight:"midnatt",noon:"middag",morning:"morgon",afternoon:"eftermiddag",evening:"kväll",night:"natt"}},mO={narrow:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på efterm.",evening:"på kvällen",night:"på natten"},abbreviated:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morg.",afternoon:"på efterm.",evening:"på kvällen",night:"på natten"},wide:{am:"fm",pm:"em",midnight:"midnatt",noon:"middag",morning:"på morgonen",afternoon:"på eftermiddagen",evening:"på kvällen",night:"på natten"}},fO=function(t,a){var r=Number(t),s=r%100;if(s>20||s<10)switch(s%10){case 1:case 2:return r+":a"}return r+":e"},gO={ordinalNumber:fO,era:be({values:cO,defaultWidth:"wide"}),quarter:be({values:dO,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:be({values:uO,defaultWidth:"wide"}),day:be({values:hO,defaultWidth:"wide"}),dayPeriod:be({values:pO,defaultWidth:"wide",formattingValues:mO,defaultFormattingWidth:"wide"})};const OO=gO;var bO=/^(\d+)(:a|:e)?/i,yO=/\d+/i,vO={narrow:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,abbreviated:/^(f\.? ?Kr\.?|f\.? ?v\.? ?t\.?|e\.? ?Kr\.?|v\.? ?t\.?)/i,wide:/^(före Kristus|före vår tid|efter Kristus|vår tid)/i},wO={any:[/^f/i,/^[ev]/i]},PO={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](:a|:e)? kvartalet/i},AO={any:[/1/i,/2/i,/3/i,/4/i]},VO={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar[s]?|apr|maj|jun[i]?|jul[i]?|aug|sep|okt|nov|dec)\.?/i,wide:/^(januari|februari|mars|april|maj|juni|juli|augusti|september|oktober|november|december)/i},EO={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^maj/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},RO={narrow:/^[smtofl]/i,short:/^(sö|må|ti|on|to|fr|lö)/i,abbreviated:/^(sön|mån|tis|ons|tors|fre|lör)/i,wide:/^(söndag|måndag|tisdag|onsdag|torsdag|fredag|lördag)/i},SO={any:[/^s/i,/^m/i,/^ti/i,/^o/i,/^to/i,/^f/i,/^l/i]},TO={any:/^([fe]\.?\s?m\.?|midn(att)?|midd(ag)?|(på) (morgonen|eftermiddagen|kvällen|natten))/i},CO={any:{am:/^f/i,pm:/^e/i,midnight:/^midn/i,noon:/^midd/i,morning:/morgon/i,afternoon:/eftermiddag/i,evening:/kväll/i,night:/natt/i}},IO={ordinalNumber:Pa({matchPattern:bO,parsePattern:yO,valueCallback:function(t){return parseInt(t,10)}}),era:ye({matchPatterns:vO,defaultMatchWidth:"wide",parsePatterns:wO,defaultParseWidth:"any"}),quarter:ye({matchPatterns:PO,defaultMatchWidth:"wide",parsePatterns:AO,defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:ye({matchPatterns:VO,defaultMatchWidth:"wide",parsePatterns:EO,defaultParseWidth:"any"}),day:ye({matchPatterns:RO,defaultMatchWidth:"wide",parsePatterns:SO,defaultParseWidth:"any"}),dayPeriod:ye({matchPatterns:TO,defaultMatchWidth:"any",parsePatterns:CO,defaultParseWidth:"any"})},UO={code:"sv",formatDistance:eO,formatLong:nO,formatRelative:lO,localize:OO,match:IO,options:{weekStartsOn:1,firstWeekContainsDate:4}};const xO=UO;class We{constructor({label:t,offsetHours:a,utc:r}){this.label=t,this.offsetHours=a,this.utc=r}asUTC(){return new We({label:this.label,offsetHours:this.offsetHours,utc:!0})}}class _O{constructor(){this.today=new We({label:"Today",offsetHours:0}),this.yesterday=new We({label:"Yesterday",offsetHours:-24}),this.tomorrow=new We({label:"Tomorrow",offsetHours:24}),this.last3Days=new We({label:"Last 3 days",offsetHours:-(24*3)}),this.next3Days=new We({label:"Next 3 days",offsetHours:24*3}),this.lastWeek=new We({label:"Last week",offsetHours:-(24*7)}),this.nextWeek=new We({label:"Next week",offsetHours:24*7}),this.lastMonth=new We({label:"Last month",offsetHours:-(24*30)}),this.nextMonth=new We({label:"Next month",offsetHours:24*30}),this.last3Months=new We({label:"Last 3 months",offsetHours:-(24*30*3)}),this.next3Months=new We({label:"Next 3 months",offsetHours:24*30*3}),this.last6Months=new We({label:"Last 6 months",offsetHours:-(24*30*6)}),this.next6Months=new We({label:"Next 6 months",offsetHours:24*30*6}),this.presets=[this.today,this.yesterday,this.tomorrow,this.last3Days,this.next3Days,this.lastWeek,this.nextWeek,this.lastMonth,this.nextMonth,this.last3Months,this.next3Months,this.last6Months,this.next6Months],this.locales={en:Tn,fr:Jg,es:gg,de:Ff,sv:xO,da:Zm}}format(t,a="en"){const r=new Date(t),s=Un(r,Date.now());return et(r,s?"MMMM do":"MMMM do, yyyy",{locale:this.locales[a]})}formatWithTime(t){const a=new Date(t),r=Un(a,Date.now());return et(a,r?"H:mm, MMMM do":"H:mm, MMMM do, yyyy")}formatHM(t){return et(new Date(t),"H:mm")}formatHMS(t){return et(new Date(t),"H:mm:ss")}formatRawDuration(t){if(!t)return Gr;const a=In({start:0,end:t}),r=[a.minutes??0,a.seconds??0];return a.hours&&r.splice(0,0,a.hours),r.map(s=>s<10?`0${s}`:s).join(":")}formatReadableDuration(t){if(!t)return Gr;const a=In({start:0,end:t});return!a.years&&!a.months&&!a.days&&!a.hours&&!a.minutes&&!a.seconds?Gr:(a.years?`${a.years}y `:"")+(a.months?`${a.months}mo `:"")+(a.days?`${a.days}d `:"")+(a.hours?`${a.hours}h `:"")+(a.minutes?`${a.minutes}m `:"")+(a.seconds?`${a.seconds}s`:"")}formatDuration(t){if(!t)return Gr;const a=In({start:0,end:t});return a.hours?`${this.formatDurationValue(a.hours)}:${this.formatDurationValue(a.minutes)} hrs`:`${this.formatDurationValue(a.minutes)}:${this.formatDurationValue(a.seconds)} min`}formatDateRange(t,a){if(!t||!t.from)return{start:void 0,end:void 0};const r=a?-1*new Date().getTimezoneOffset():0,s=t.from,n=t.to?Kr(t.to):Kr(t.from);return{start:ze(s,{minutes:r}).toISOString(),end:ze(n,{minutes:r}).toISOString()}}distanceToNow(t){return fm(new Date(t),{addSuffix:!0})}getRelativeDate(t,a){const r=new Date,s=a?-1*new Date().getTimezoneOffset():0;if(t<=24&&t>=-24){const n=ze(r,{hours:t}),o=lr(n),i=Kr(n);return{start:ze(o,{minutes:s}).toISOString(),end:ze(i,{minutes:s}).toISOString()}}else return t>0?{start:ze(r,{minutes:s}).toISOString(),end:ze(r,{hours:t,minutes:s}).toISOString()}:{start:ze(r,{hours:t,minutes:s}).toISOString(),end:ze(r,{minutes:s}).toISOString()}}getFormattedDate(t){return et(new Date(t),"dd")}getFormattedMonth(t){return et(new Date(t),"MMM")}isSameDay(t,a){return En(new Date(t),new Date(a))}formatDurationValue(t){return t!==void 0?t<10?`0${t}`:`${t}`:"00"}formatDayMonth(t){return et(new Date(t),"d MMM")}formatForChart(t){return et(new Date(t),"MMM d")}formatForConfiguration(t){return et(new Date(t),"H:mm, MMM d")}formatRelative(t){return t=new Date(t),gm(t)?"Today, "+et(t,"H:mm"):bm(t)?"Yesterday, "+et(t,"H:mm"):Un(t,Date.now())?et(t,"MMMM do, H:mm"):et(t,"MMMM do yyyy, H:mm")}getThisMonth(){const t=new Date().getMonth(),a=new Date;a.setMonth(t,1),a.setHours(0,0,0,0);const r=new Date;return r.setMonth(t,0),r.setHours(23,59,59,999),{start:a.toISOString(),end:r.toISOString()}}getThisMonthUpToNow(){const t=new Date().getMonth(),a=new Date;return a.setMonth(t,1),a.setHours(0,0,0,0),{start:a.toISOString(),end:new Date().toISOString()}}getLastMonth(){const t=new Date().getMonth(),a=new Date;a.setMonth(t-1,1),a.setHours(0,0,0,0);const r=new Date;return r.setMonth(t,0),r.setHours(23,59,59,999),{start:a.toISOString(),end:r.toISOString()}}getThisYear(){const t=new Date().getFullYear(),a=new Date;a.setFullYear(t,0,1),a.setHours(0,0,0,0);const r=new Date;return r.setFullYear(t,11,31),r.setHours(23,59,59,999),{start:a.toISOString(),end:r.toISOString()}}getThisYearUpToNow(){const t=new Date().getFullYear(),a=new Date;return a.setFullYear(t,0,1),a.setHours(0,0,0,0),{start:a.toISOString(),end:new Date().toISOString()}}getLastYear(){const t=new Date().getFullYear(),a=new Date;a.setFullYear(t-1,0,1),a.setHours(0,0,0,0);const r=new Date;return r.setFullYear(t-1,11,31),r.setHours(23,59,59,999),{start:a.toISOString(),end:r.toISOString()}}}new _O;var _n=function(e,t){return _n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(a,r){a.__proto__=r}||function(a,r){for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(a[s]=r[s])},_n(e,t)};function It(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");_n(e,t);function a(){this.constructor=e}e.prototype=t===null?Object.create(t):(a.prototype=t.prototype,new a)}function FO(e,t,a,r){function s(n){return n instanceof a?n:new a(function(o){o(n)})}return new(a||(a=Promise))(function(n,o){function i(d){try{c(r.next(d))}catch(h){o(h)}}function l(d){try{c(r.throw(d))}catch(h){o(h)}}function c(d){d.done?n(d.value):s(d.value).then(i,l)}c((r=r.apply(e,t||[])).next())})}function Ol(e,t){var a={label:0,sent:function(){if(n[0]&1)throw n[1];return n[1]},trys:[],ops:[]},r,s,n,o;return o={next:i(0),throw:i(1),return:i(2)},typeof Symbol=="function"&&(o[Symbol.iterator]=function(){return this}),o;function i(c){return function(d){return l([c,d])}}function l(c){if(r)throw new TypeError("Generator is already executing.");for(;o&&(o=0,c[0]&&(a=0)),a;)try{if(r=1,s&&(n=c[0]&2?s.return:c[0]?s.throw||((n=s.return)&&n.call(s),0):s.next)&&!(n=n.call(s,c[1])).done)return n;switch(s=0,n&&(c=[c[0]&2,n.value]),c[0]){case 0:case 1:n=c;break;case 4:return a.label++,{value:c[1],done:!1};case 5:a.label++,s=c[1],c=[0];continue;case 7:c=a.ops.pop(),a.trys.pop();continue;default:if(n=a.trys,!(n=n.length>0&&n[n.length-1])&&(c[0]===6||c[0]===2)){a=0;continue}if(c[0]===3&&(!n||c[1]>n[0]&&c[1]=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function Ht(e,t){var a=typeof Symbol=="function"&&e[Symbol.iterator];if(!a)return e;var r=a.call(e),s,n=[],o;try{for(;(t===void 0||t-- >0)&&!(s=r.next()).done;)n.push(s.value)}catch(i){o={error:i}}finally{try{s&&!s.done&&(a=r.return)&&a.call(r)}finally{if(o)throw o.error}}return n}function sa(e,t,a){if(a||arguments.length===2)for(var r=0,s=t.length,n;r1||i(m,O)})})}function i(m,O){try{l(r[m](O))}catch(p){h(n[0][3],p)}}function l(m){m.value instanceof Va?Promise.resolve(m.value.v).then(c,d):h(n[0][2],m)}function c(m){i("next",m)}function d(m){i("throw",m)}function h(m,O){m(O),n.shift(),n.length&&i(n[0][0],n[0][1])}}function DO(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],a;return t?t.call(e):(e=typeof Aa=="function"?Aa(e):e[Symbol.iterator](),a={},r("next"),r("throw"),r("return"),a[Symbol.asyncIterator]=function(){return this},a);function r(n){a[n]=e[n]&&function(o){return new Promise(function(i,l){o=e[n](o),s(i,l,o.done,o.value)})}}function s(n,o,i,l){Promise.resolve(l).then(function(c){n({value:c,done:i})},o)}}typeof SuppressedError=="function"&&SuppressedError;function Ee(e){return typeof e=="function"}function Fn(e){var t=function(r){Error.call(r),r.stack=new Error().stack},a=e(t);return a.prototype=Object.create(Error.prototype),a.prototype.constructor=a,a}var Ln=Fn(function(e){return function(a){e(this),this.message=a?a.length+` errors occurred during unsubscription: `+a.map(function(r,s){return s+1+") "+r.toString()}).join(` `):"",this.name="UnsubscriptionError",this.errors=a}});function ts(e,t){if(e){var a=e.indexOf(t);0<=a&&e.splice(a,1)}}var cr=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return e.prototype.unsubscribe=function(){var t,a,r,s,n;if(!this.closed){this.closed=!0;var o=this._parentage;if(o)if(this._parentage=null,Array.isArray(o))try{for(var i=Aa(o),l=i.next();!l.done;l=i.next()){var c=l.value;c.remove(this)}}catch(b){t={error:b}}finally{try{l&&!l.done&&(a=i.return)&&a.call(i)}finally{if(t)throw t.error}}else o.remove(this);var d=this.initialTeardown;if(Ee(d))try{d()}catch(b){n=b instanceof Ln?b.errors:[b]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var m=Aa(h),O=m.next();!O.done;O=m.next()){var p=O.value;try{vl(p)}catch(b){n=n??[],b instanceof Ln?n=sa(sa([],Ht(n)),Ht(b.errors)):n.push(b)}}}catch(b){r={error:b}}finally{try{O&&!O.done&&(s=m.return)&&s.call(m)}finally{if(r)throw r.error}}}if(n)throw new Ln(n)}},e.prototype.add=function(t){var a;if(t&&t!==this)if(this.closed)vl(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=(a=this._finalizers)!==null&&a!==void 0?a:[]).push(t)}},e.prototype._hasParent=function(t){var a=this._parentage;return a===t||Array.isArray(a)&&a.includes(t)},e.prototype._addParent=function(t){var a=this._parentage;this._parentage=Array.isArray(a)?(a.push(t),a):a?[a,t]:t},e.prototype._removeParent=function(t){var a=this._parentage;a===t?this._parentage=null:Array.isArray(a)&&ts(a,t)},e.prototype.remove=function(t){var a=this._finalizers;a&&ts(a,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),bl=cr.EMPTY;function yl(e){return e instanceof cr||e&&"closed"in e&&Ee(e.remove)&&Ee(e.add)&&Ee(e.unsubscribe)}function vl(e){Ee(e)?e():e.unsubscribe()}var wl={onUnhandledError:null,onStoppedNotification:null,Promise:void 0,useDeprecatedSynchronousErrorHandling:!1,useDeprecatedNextContext:!1},Dn={setTimeout:function(e,t){for(var a=[],r=2;r0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(a){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,a)},t.prototype._subscribe=function(a){return this._throwIfClosed(),this._checkFinalizedStatuses(a),this._innerSubscribe(a)},t.prototype._innerSubscribe=function(a){var r=this,s=this,n=s.hasError,o=s.isStopped,i=s.observers;return n||o?bl:(this.currentObservers=null,i.push(a),new cr(function(){r.currentObservers=null,ts(i,a)}))},t.prototype._checkFinalizedStatuses=function(a){var r=this,s=r.hasError,n=r.thrownError,o=r.isStopped;s?a.error(n):o&&a.complete()},t.prototype.asObservable=function(){var a=new Ye;return a.source=this,a},t.create=function(a,r){return new El(a,r)},t}(Ye),El=function(e){It(t,e);function t(a,r){var s=e.call(this)||this;return s.destination=a,s.source=r,s}return t.prototype.next=function(a){var r,s;(s=(r=this.destination)===null||r===void 0?void 0:r.next)===null||s===void 0||s.call(r,a)},t.prototype.error=function(a){var r,s;(s=(r=this.destination)===null||r===void 0?void 0:r.error)===null||s===void 0||s.call(r,a)},t.prototype.complete=function(){var a,r;(r=(a=this.destination)===null||a===void 0?void 0:a.complete)===null||r===void 0||r.call(a)},t.prototype._subscribe=function(a){var r,s;return(s=(r=this.source)===null||r===void 0?void 0:r.subscribe(a))!==null&&s!==void 0?s:bl},t}(ns),Rl=function(e){It(t,e);function t(a){var r=e.call(this)||this;return r._value=a,r}return Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),t.prototype._subscribe=function(a){var r=e.prototype._subscribe.call(this,a);return!r.closed&&a.next(this._value),r},t.prototype.getValue=function(){var a=this,r=a.hasError,s=a.thrownError,n=a._value;if(r)throw s;return this._throwIfClosed(),n},t.prototype.next=function(a){e.prototype.next.call(this,this._value=a)},t}(ns),Sl={now:function(){return(Sl.delegate||Date).now()},delegate:void 0},GO=function(e){It(t,e);function t(a,r){return e.call(this)||this}return t.prototype.schedule=function(a,r){return this},t}(cr),os={setInterval:function(e,t){for(var a=[],r=2;rt=>{const a=Fb.call(t);return e[a]||(e[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),pt=e=>(e=e.toLowerCase(),t=>is(t)===e),ls=e=>t=>typeof t===e,{isArray:Ea}=Array,ur=ls("undefined");function Lb(e){return e!==null&&!ur(e)&&e.constructor!==null&&!ur(e.constructor)&&tt(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const Yl=pt("ArrayBuffer");function Db(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Yl(e.buffer),t}const Mb=ls("string"),tt=ls("function"),Jl=ls("number"),cs=e=>e!==null&&typeof e=="object",Nb=e=>e===!0||e===!1,ds=e=>{if(is(e)!=="object")return!1;const t=Hn(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},jb=pt("Date"),kb=pt("File"),Bb=pt("Blob"),$b=pt("FileList"),Hb=e=>cs(e)&&tt(e.pipe),qb=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||tt(e.append)&&((t=is(e))==="formdata"||t==="object"&&tt(e.toString)&&e.toString()==="[object FormData]"))},Wb=pt("URLSearchParams"),[Qb,Gb,zb,Yb]=["ReadableStream","Request","Response","Headers"].map(pt),Jb=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function hr(e,t,{allOwnKeys:a=!1}={}){if(e===null||typeof e>"u")return;let r,s;if(typeof e!="object"&&(e=[e]),Ea(e))for(r=0,s=e.length;r0;)if(s=a[r],t===s.toLowerCase())return s;return null}const ia=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:globalThis)(),Kl=e=>!ur(e)&&e!==ia;function qn(){const{caseless:e}=Kl(this)&&this||{},t={},a=(r,s)=>{const n=e&&Xl(t,s)||s;ds(t[n])&&ds(r)?t[n]=qn(t[n],r):ds(r)?t[n]=qn({},r):Ea(r)?t[n]=r.slice():t[n]=r};for(let r=0,s=arguments.length;r(hr(t,(s,n)=>{a&&tt(s)?e[n]=zl(s,a):e[n]=s},{allOwnKeys:r}),e),Kb=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),Zb=(e,t,a,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),a&&Object.assign(e.prototype,a)},ey=(e,t,a,r)=>{let s,n,o;const i={};if(t=t||{},e==null)return t;do{for(s=Object.getOwnPropertyNames(e),n=s.length;n-- >0;)o=s[n],(!r||r(o,e,t))&&!i[o]&&(t[o]=e[o],i[o]=!0);e=a!==!1&&Hn(e)}while(e&&(!a||a(e,t))&&e!==Object.prototype);return t},ty=(e,t,a)=>{e=String(e),(a===void 0||a>e.length)&&(a=e.length),a-=t.length;const r=e.indexOf(t,a);return r!==-1&&r===a},ay=e=>{if(!e)return null;if(Ea(e))return e;let t=e.length;if(!Jl(t))return null;const a=new Array(t);for(;t-- >0;)a[t]=e[t];return a},ry=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Hn(Uint8Array)),sy=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let s;for(;(s=r.next())&&!s.done;){const n=s.value;t.call(e,n[0],n[1])}},ny=(e,t)=>{let a;const r=[];for(;(a=e.exec(t))!==null;)r.push(a);return r},oy=pt("HTMLFormElement"),iy=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(a,r,s){return r.toUpperCase()+s}),Zl=(({hasOwnProperty:e})=>(t,a)=>e.call(t,a))(Object.prototype),ly=pt("RegExp"),ec=(e,t)=>{const a=Object.getOwnPropertyDescriptors(e),r={};hr(a,(s,n)=>{let o;(o=t(s,n,e))!==!1&&(r[n]=o||s)}),Object.defineProperties(e,r)},cy=e=>{ec(e,(t,a)=>{if(tt(e)&&["arguments","caller","callee"].indexOf(a)!==-1)return!1;const r=e[a];if(tt(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+a+"'")})}})},dy=(e,t)=>{const a={},r=s=>{s.forEach(n=>{a[n]=!0})};return Ea(e)?r(e):r(String(e).split(t)),a},uy=()=>{},hy=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function py(e){return!!(e&&tt(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const my=e=>{const t=new Array(10),a=(r,s)=>{if(cs(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const n=Ea(r)?[]:{};return hr(r,(o,i)=>{const l=a(o,s+1);!ur(l)&&(n[i]=l)}),t[s]=void 0,n}}return r};return a(e,0)},fy=pt("AsyncFunction"),gy=e=>e&&(cs(e)||tt(e))&&tt(e.then)&&tt(e.catch),tc=((e,t)=>e?setImmediate:t?((a,r)=>(ia.addEventListener("message",({source:s,data:n})=>{s===ia&&n===a&&r.length&&r.shift()()},!1),s=>{r.push(s),ia.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",tt(ia.postMessage)),Oy=typeof queueMicrotask<"u"?queueMicrotask.bind(ia):typeof process<"u"&&process.nextTick||tc,y={isArray:Ea,isArrayBuffer:Yl,isBuffer:Lb,isFormData:qb,isArrayBufferView:Db,isString:Mb,isNumber:Jl,isBoolean:Nb,isObject:cs,isPlainObject:ds,isReadableStream:Qb,isRequest:Gb,isResponse:zb,isHeaders:Yb,isUndefined:ur,isDate:jb,isFile:kb,isBlob:Bb,isRegExp:ly,isFunction:tt,isStream:Hb,isURLSearchParams:Wb,isTypedArray:ry,isFileList:$b,forEach:hr,merge:qn,extend:Xb,trim:Jb,stripBOM:Kb,inherits:Zb,toFlatObject:ey,kindOf:is,kindOfTest:pt,endsWith:ty,toArray:ay,forEachEntry:sy,matchAll:ny,isHTMLForm:oy,hasOwnProperty:Zl,hasOwnProp:Zl,reduceDescriptors:ec,freezeMethods:cy,toObjectSet:dy,toCamelCase:iy,noop:uy,toFiniteNumber:hy,findKey:Xl,globalThis:ia,isContextDefined:Kl,isSpecCompliantForm:py,toJSONObject:my,isAsyncFn:fy,isThenable:gy,setImmediate:tc,asap:Oy};function ue(e,t,a,r,s){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),a&&(this.config=a),r&&(this.request=r),s&&(this.response=s,this.status=s.status?s.status:null)}y.inherits(ue,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:y.toJSONObject(this.config),code:this.code,status:this.status}}});const ac=ue.prototype,rc={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{rc[e]={value:e}}),Object.defineProperties(ue,rc),Object.defineProperty(ac,"isAxiosError",{value:!0}),ue.from=(e,t,a,r,s,n)=>{const o=Object.create(ac);return y.toFlatObject(e,o,function(l){return l!==Error.prototype},i=>i!=="isAxiosError"),ue.call(o,e.message,t,a,r,s),o.cause=e,o.name=e.name,n&&Object.assign(o,n),o};const by=null;function Wn(e){return y.isPlainObject(e)||y.isArray(e)}function sc(e){return y.endsWith(e,"[]")?e.slice(0,-2):e}function nc(e,t,a){return e?e.concat(t).map(function(s,n){return s=sc(s),!a&&n?"["+s+"]":s}).join(a?".":""):t}function yy(e){return y.isArray(e)&&!e.some(Wn)}const vy=y.toFlatObject(y,{},null,function(t){return/^is[A-Z]/.test(t)});function us(e,t,a){if(!y.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,a=y.toFlatObject(a,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,g){return!y.isUndefined(g[b])});const r=a.metaTokens,s=a.visitor||d,n=a.dots,o=a.indexes,l=(a.Blob||typeof Blob<"u"&&Blob)&&y.isSpecCompliantForm(t);if(!y.isFunction(s))throw new TypeError("visitor must be a function");function c(p){if(p===null)return"";if(y.isDate(p))return p.toISOString();if(!l&&y.isBlob(p))throw new ue("Blob is not supported. Use a Buffer instead.");return y.isArrayBuffer(p)||y.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function d(p,b,g){let M=p;if(p&&!g&&typeof p=="object"){if(y.endsWith(b,"{}"))b=r?b:b.slice(0,-2),p=JSON.stringify(p);else if(y.isArray(p)&&yy(p)||(y.isFileList(p)||y.endsWith(b,"[]"))&&(M=y.toArray(p)))return b=sc(b),M.forEach(function(j,de){!(y.isUndefined(j)||j===null)&&t.append(o===!0?nc([b],de,n):o===null?b:b+"[]",c(j))}),!1}return Wn(p)?!0:(t.append(nc(g,b,n),c(p)),!1)}const h=[],m=Object.assign(vy,{defaultVisitor:d,convertValue:c,isVisitable:Wn});function O(p,b){if(!y.isUndefined(p)){if(h.indexOf(p)!==-1)throw Error("Circular reference detected in "+b.join("."));h.push(p),y.forEach(p,function(M,N){(!(y.isUndefined(M)||M===null)&&s.call(t,M,y.isString(N)?N.trim():N,b,m))===!0&&O(M,b?b.concat(N):[N])}),h.pop()}}if(!y.isObject(e))throw new TypeError("data must be an object");return O(e),t}function oc(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function Qn(e,t){this._pairs=[],e&&us(e,this,t)}const ic=Qn.prototype;ic.append=function(t,a){this._pairs.push([t,a])},ic.toString=function(t){const a=t?function(r){return t.call(this,r,oc)}:oc;return this._pairs.map(function(s){return a(s[0])+"="+a(s[1])},"").join("&")};function wy(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function lc(e,t,a){if(!t)return e;const r=a&&a.encode||wy;y.isFunction(a)&&(a={serialize:a});const s=a&&a.serialize;let n;if(s?n=s(t,a):n=y.isURLSearchParams(t)?t.toString():new Qn(t,a).toString(r),n){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+n}return e}class Py{constructor(){this.handlers=[]}use(t,a,r){return this.handlers.push({fulfilled:t,rejected:a,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){y.forEach(this.handlers,function(r){r!==null&&t(r)})}}const cc=Py,dc={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Ay={isBrowser:!0,classes:{URLSearchParams:typeof URLSearchParams<"u"?URLSearchParams:Qn,FormData:typeof FormData<"u"?FormData:null,Blob:typeof Blob<"u"?Blob:null},protocols:["http","https","file","blob","url","data"]},Gn=typeof window<"u"&&typeof document<"u",zn=typeof navigator=="object"&&navigator||void 0,Vy=Gn&&(!zn||["ReactNative","NativeScript","NS"].indexOf(zn.product)<0),Ey=(()=>typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function")(),Ry=Gn&&window.location.href||"http://localhost",Be={...Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Gn,hasStandardBrowserEnv:Vy,hasStandardBrowserWebWorkerEnv:Ey,navigator:zn,origin:Ry},Symbol.toStringTag,{value:"Module"})),...Ay};function Sy(e,t){return us(e,new Be.classes.URLSearchParams,Object.assign({visitor:function(a,r,s,n){return Be.isNode&&y.isBuffer(a)?(this.append(r,a.toString("base64")),!1):n.defaultVisitor.apply(this,arguments)}},t))}function Ty(e){return y.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Cy(e){const t={},a=Object.keys(e);let r;const s=a.length;let n;for(r=0;r=a.length;return o=!o&&y.isArray(s)?s.length:o,l?(y.hasOwnProp(s,o)?s[o]=[s[o],r]:s[o]=r,!i):((!s[o]||!y.isObject(s[o]))&&(s[o]=[]),t(a,r,s[o],n)&&y.isArray(s[o])&&(s[o]=Cy(s[o])),!i)}if(y.isFormData(e)&&y.isFunction(e.entries)){const a={};return y.forEachEntry(e,(r,s)=>{t(Ty(r),s,a,0)}),a}return null}function Iy(e,t,a){if(y.isString(e))try{return(t||JSON.parse)(e),y.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(a||JSON.stringify)(e)}const Yn={transitional:dc,adapter:["xhr","http","fetch"],transformRequest:[function(t,a){const r=a.getContentType()||"",s=r.indexOf("application/json")>-1,n=y.isObject(t);if(n&&y.isHTMLForm(t)&&(t=new FormData(t)),y.isFormData(t))return s?JSON.stringify(uc(t)):t;if(y.isArrayBuffer(t)||y.isBuffer(t)||y.isStream(t)||y.isFile(t)||y.isBlob(t)||y.isReadableStream(t))return t;if(y.isArrayBufferView(t))return t.buffer;if(y.isURLSearchParams(t))return a.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let i;if(n){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Sy(t,this.formSerializer).toString();if((i=y.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return us(i?{"files[]":t}:t,l&&new l,this.formSerializer)}}return n||s?(a.setContentType("application/json",!1),Iy(t)):t}],transformResponse:[function(t){const a=this.transitional||Yn.transitional,r=a&&a.forcedJSONParsing,s=this.responseType==="json";if(y.isResponse(t)||y.isReadableStream(t))return t;if(t&&y.isString(t)&&(r&&!this.responseType||s)){const o=!(a&&a.silentJSONParsing)&&s;try{return JSON.parse(t)}catch(i){if(o)throw i.name==="SyntaxError"?ue.from(i,ue.ERR_BAD_RESPONSE,this,null,this.response):i}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Be.classes.FormData,Blob:Be.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};y.forEach(["delete","get","head","post","put","patch"],e=>{Yn.headers[e]={}});const Jn=Yn,Uy=y.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),xy=e=>{const t={};let a,r,s;return e&&e.split(` `).forEach(function(o){s=o.indexOf(":"),a=o.substring(0,s).trim().toLowerCase(),r=o.substring(s+1).trim(),!(!a||t[a]&&Uy[a])&&(a==="set-cookie"?t[a]?t[a].push(r):t[a]=[r]:t[a]=t[a]?t[a]+", "+r:r)}),t},hc=Symbol("internals");function pr(e){return e&&String(e).trim().toLowerCase()}function hs(e){return e===!1||e==null?e:y.isArray(e)?e.map(hs):String(e)}function _y(e){const t=Object.create(null),a=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=a.exec(e);)t[r[1]]=r[2];return t}const Fy=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Xn(e,t,a,r,s){if(y.isFunction(r))return r.call(this,t,a);if(s&&(t=a),!!y.isString(t)){if(y.isString(r))return t.indexOf(r)!==-1;if(y.isRegExp(r))return r.test(t)}}function Ly(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,a,r)=>a.toUpperCase()+r)}function Dy(e,t){const a=y.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+a,{value:function(s,n,o){return this[r].call(this,t,s,n,o)},configurable:!0})})}class ps{constructor(t){t&&this.set(t)}set(t,a,r){const s=this;function n(i,l,c){const d=pr(l);if(!d)throw new Error("header name must be a non-empty string");const h=y.findKey(s,d);(!h||s[h]===void 0||c===!0||c===void 0&&s[h]!==!1)&&(s[h||l]=hs(i))}const o=(i,l)=>y.forEach(i,(c,d)=>n(c,d,l));if(y.isPlainObject(t)||t instanceof this.constructor)o(t,a);else if(y.isString(t)&&(t=t.trim())&&!Fy(t))o(xy(t),a);else if(y.isHeaders(t))for(const[i,l]of t.entries())n(l,i,r);else t!=null&&n(a,t,r);return this}get(t,a){if(t=pr(t),t){const r=y.findKey(this,t);if(r){const s=this[r];if(!a)return s;if(a===!0)return _y(s);if(y.isFunction(a))return a.call(this,s,r);if(y.isRegExp(a))return a.exec(s);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,a){if(t=pr(t),t){const r=y.findKey(this,t);return!!(r&&this[r]!==void 0&&(!a||Xn(this,this[r],r,a)))}return!1}delete(t,a){const r=this;let s=!1;function n(o){if(o=pr(o),o){const i=y.findKey(r,o);i&&(!a||Xn(r,r[i],i,a))&&(delete r[i],s=!0)}}return y.isArray(t)?t.forEach(n):n(t),s}clear(t){const a=Object.keys(this);let r=a.length,s=!1;for(;r--;){const n=a[r];(!t||Xn(this,this[n],n,t,!0))&&(delete this[n],s=!0)}return s}normalize(t){const a=this,r={};return y.forEach(this,(s,n)=>{const o=y.findKey(r,n);if(o){a[o]=hs(s),delete a[n];return}const i=t?Ly(n):String(n).trim();i!==n&&delete a[n],a[i]=hs(s),r[i]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const a=Object.create(null);return y.forEach(this,(r,s)=>{r!=null&&r!==!1&&(a[s]=t&&y.isArray(r)?r.join(", "):r)}),a}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,a])=>t+": "+a).join(` `)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...a){const r=new this(t);return a.forEach(s=>r.set(s)),r}static accessor(t){const r=(this[hc]=this[hc]={accessors:{}}).accessors,s=this.prototype;function n(o){const i=pr(o);r[i]||(Dy(s,o),r[i]=!0)}return y.isArray(t)?t.forEach(n):n(t),this}}ps.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),y.reduceDescriptors(ps.prototype,({value:e},t)=>{let a=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[a]=r}}}),y.freezeMethods(ps);const mt=ps;function Kn(e,t){const a=this||Jn,r=t||a,s=mt.from(r.headers);let n=r.data;return y.forEach(e,function(i){n=i.call(a,n,s.normalize(),t?t.status:void 0)}),s.normalize(),n}function pc(e){return!!(e&&e.__CANCEL__)}function Ra(e,t,a){ue.call(this,e??"canceled",ue.ERR_CANCELED,t,a),this.name="CanceledError"}y.inherits(Ra,ue,{__CANCEL__:!0});function mc(e,t,a){const r=a.config.validateStatus;!a.status||!r||r(a.status)?e(a):t(new ue("Request failed with status code "+a.status,[ue.ERR_BAD_REQUEST,ue.ERR_BAD_RESPONSE][Math.floor(a.status/100)-4],a.config,a.request,a))}function My(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Ny(e,t){e=e||10;const a=new Array(e),r=new Array(e);let s=0,n=0,o;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),d=r[n];o||(o=c),a[s]=l,r[s]=c;let h=n,m=0;for(;h!==s;)m+=a[h++],h=h%e;if(s=(s+1)%e,s===n&&(n=(n+1)%e),c-o{a=d,s=null,n&&(clearTimeout(n),n=null),e.apply(null,c)};return[(...c)=>{const d=Date.now(),h=d-a;h>=r?o(c,d):(s=c,n||(n=setTimeout(()=>{n=null,o(s)},r-h)))},()=>s&&o(s)]}const ms=(e,t,a=3)=>{let r=0;const s=Ny(50,250);return jy(n=>{const o=n.loaded,i=n.lengthComputable?n.total:void 0,l=o-r,c=s(l),d=o<=i;r=o;const h={loaded:o,total:i,progress:i?o/i:void 0,bytes:l,rate:c||void 0,estimated:c&&i&&d?(i-o)/c:void 0,event:n,lengthComputable:i!=null,[t?"download":"upload"]:!0};e(h)},a)},fc=(e,t)=>{const a=e!=null;return[r=>t[0]({lengthComputable:a,total:e,loaded:r}),t[1]]},gc=e=>(...t)=>y.asap(()=>e(...t)),ky=Be.hasStandardBrowserEnv?((e,t)=>a=>(a=new URL(a,Be.origin),e.protocol===a.protocol&&e.host===a.host&&(t||e.port===a.port)))(new URL(Be.origin),Be.navigator&&/(msie|trident)/i.test(Be.navigator.userAgent)):()=>!0,By=Be.hasStandardBrowserEnv?{write(e,t,a,r,s,n){const o=[e+"="+encodeURIComponent(t)];y.isNumber(a)&&o.push("expires="+new Date(a).toGMTString()),y.isString(r)&&o.push("path="+r),y.isString(s)&&o.push("domain="+s),n===!0&&o.push("secure"),document.cookie=o.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function $y(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function Hy(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Oc(e,t,a){let r=!$y(t);return e&&r||a==!1?Hy(e,t):t}const bc=e=>e instanceof mt?{...e}:e;function la(e,t){t=t||{};const a={};function r(c,d,h,m){return y.isPlainObject(c)&&y.isPlainObject(d)?y.merge.call({caseless:m},c,d):y.isPlainObject(d)?y.merge({},d):y.isArray(d)?d.slice():d}function s(c,d,h,m){if(y.isUndefined(d)){if(!y.isUndefined(c))return r(void 0,c,h,m)}else return r(c,d,h,m)}function n(c,d){if(!y.isUndefined(d))return r(void 0,d)}function o(c,d){if(y.isUndefined(d)){if(!y.isUndefined(c))return r(void 0,c)}else return r(void 0,d)}function i(c,d,h){if(h in t)return r(c,d);if(h in e)return r(void 0,c)}const l={url:n,method:n,data:n,baseURL:o,transformRequest:o,transformResponse:o,paramsSerializer:o,timeout:o,timeoutMessage:o,withCredentials:o,withXSRFToken:o,adapter:o,responseType:o,xsrfCookieName:o,xsrfHeaderName:o,onUploadProgress:o,onDownloadProgress:o,decompress:o,maxContentLength:o,maxBodyLength:o,beforeRedirect:o,transport:o,httpAgent:o,httpsAgent:o,cancelToken:o,socketPath:o,responseEncoding:o,validateStatus:i,headers:(c,d,h)=>s(bc(c),bc(d),h,!0)};return y.forEach(Object.keys(Object.assign({},e,t)),function(d){const h=l[d]||s,m=h(e[d],t[d],d);y.isUndefined(m)&&h!==i||(a[d]=m)}),a}const yc=e=>{const t=la({},e);let{data:a,withXSRFToken:r,xsrfHeaderName:s,xsrfCookieName:n,headers:o,auth:i}=t;t.headers=o=mt.from(o),t.url=lc(Oc(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),i&&o.set("Authorization","Basic "+btoa((i.username||"")+":"+(i.password?unescape(encodeURIComponent(i.password)):"")));let l;if(y.isFormData(a)){if(Be.hasStandardBrowserEnv||Be.hasStandardBrowserWebWorkerEnv)o.setContentType(void 0);else if((l=o.getContentType())!==!1){const[c,...d]=l?l.split(";").map(h=>h.trim()).filter(Boolean):[];o.setContentType([c||"multipart/form-data",...d].join("; "))}}if(Be.hasStandardBrowserEnv&&(r&&y.isFunction(r)&&(r=r(t)),r||r!==!1&&ky(t.url))){const c=s&&n&&By.read(n);c&&o.set(s,c)}return t},qy=typeof XMLHttpRequest<"u"&&function(e){return new Promise(function(a,r){const s=yc(e);let n=s.data;const o=mt.from(s.headers).normalize();let{responseType:i,onUploadProgress:l,onDownloadProgress:c}=s,d,h,m,O,p;function b(){O&&O(),p&&p(),s.cancelToken&&s.cancelToken.unsubscribe(d),s.signal&&s.signal.removeEventListener("abort",d)}let g=new XMLHttpRequest;g.open(s.method.toUpperCase(),s.url,!0),g.timeout=s.timeout;function M(){if(!g)return;const j=mt.from("getAllResponseHeaders"in g&&g.getAllResponseHeaders()),pe={data:!i||i==="text"||i==="json"?g.responseText:g.response,status:g.status,statusText:g.statusText,headers:j,config:e,request:g};mc(function(Re){a(Re),b()},function(Re){r(Re),b()},pe),g=null}"onloadend"in g?g.onloadend=M:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(M)},g.onabort=function(){g&&(r(new ue("Request aborted",ue.ECONNABORTED,e,g)),g=null)},g.onerror=function(){r(new ue("Network Error",ue.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let de=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const pe=s.transitional||dc;s.timeoutErrorMessage&&(de=s.timeoutErrorMessage),r(new ue(de,pe.clarifyTimeoutError?ue.ETIMEDOUT:ue.ECONNABORTED,e,g)),g=null},n===void 0&&o.setContentType(null),"setRequestHeader"in g&&y.forEach(o.toJSON(),function(de,pe){g.setRequestHeader(pe,de)}),y.isUndefined(s.withCredentials)||(g.withCredentials=!!s.withCredentials),i&&i!=="json"&&(g.responseType=s.responseType),c&&([m,p]=ms(c,!0),g.addEventListener("progress",m)),l&&g.upload&&([h,O]=ms(l),g.upload.addEventListener("progress",h),g.upload.addEventListener("loadend",O)),(s.cancelToken||s.signal)&&(d=j=>{g&&(r(!j||j.type?new Ra(null,e,g):j),g.abort(),g=null)},s.cancelToken&&s.cancelToken.subscribe(d),s.signal&&(s.signal.aborted?d():s.signal.addEventListener("abort",d)));const N=My(s.url);if(N&&Be.protocols.indexOf(N)===-1){r(new ue("Unsupported protocol "+N+":",ue.ERR_BAD_REQUEST,e));return}g.send(n||null)})},Wy=(e,t)=>{const{length:a}=e=e?e.filter(Boolean):[];if(t||a){let r=new AbortController,s;const n=function(c){if(!s){s=!0,i();const d=c instanceof Error?c:this.reason;r.abort(d instanceof ue?d:new Ra(d instanceof Error?d.message:d))}};let o=t&&setTimeout(()=>{o=null,n(new ue(`timeout ${t} of ms exceeded`,ue.ETIMEDOUT))},t);const i=()=>{e&&(o&&clearTimeout(o),o=null,e.forEach(c=>{c.unsubscribe?c.unsubscribe(n):c.removeEventListener("abort",n)}),e=null)};e.forEach(c=>c.addEventListener("abort",n));const{signal:l}=r;return l.unsubscribe=()=>y.asap(i),l}},Qy=function*(e,t){let a=e.byteLength;if(!t||a{const s=Gy(e,t);let n=0,o,i=l=>{o||(o=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:d}=await s.next();if(c){i(),l.close();return}let h=d.byteLength;if(a){let m=n+=h;a(m)}l.enqueue(new Uint8Array(d))}catch(c){throw i(c),c}},cancel(l){return i(l),s.return()}},{highWaterMark:2})},fs=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",wc=fs&&typeof ReadableStream=="function",Yy=fs&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Pc=(e,...t)=>{try{return!!e(...t)}catch{return!1}},Jy=wc&&Pc(()=>{let e=!1;const t=new Request(Be.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),Ac=64*1024,Zn=wc&&Pc(()=>y.isReadableStream(new Response("").body)),gs={stream:Zn&&(e=>e.body)};fs&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!gs[t]&&(gs[t]=y.isFunction(e[t])?a=>a[t]():(a,r)=>{throw new ue(`Response type '${t}' is not supported`,ue.ERR_NOT_SUPPORT,r)})})})(new Response);const Xy=async e=>{if(e==null)return 0;if(y.isBlob(e))return e.size;if(y.isSpecCompliantForm(e))return(await new Request(Be.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(y.isArrayBufferView(e)||y.isArrayBuffer(e))return e.byteLength;if(y.isURLSearchParams(e)&&(e=e+""),y.isString(e))return(await Yy(e)).byteLength},Ky=async(e,t)=>{const a=y.toFiniteNumber(e.getContentLength());return a??Xy(t)},eo={http:by,xhr:qy,fetch:fs&&(async e=>{let{url:t,method:a,data:r,signal:s,cancelToken:n,timeout:o,onDownloadProgress:i,onUploadProgress:l,responseType:c,headers:d,withCredentials:h="same-origin",fetchOptions:m}=yc(e);c=c?(c+"").toLowerCase():"text";let O=Wy([s,n&&n.toAbortSignal()],o),p;const b=O&&O.unsubscribe&&(()=>{O.unsubscribe()});let g;try{if(l&&Jy&&a!=="get"&&a!=="head"&&(g=await Ky(d,r))!==0){let pe=new Request(t,{method:"POST",body:r,duplex:"half"}),Ve;if(y.isFormData(r)&&(Ve=pe.headers.get("content-type"))&&d.setContentType(Ve),pe.body){const[Re,gt]=fc(g,ms(gc(l)));r=vc(pe.body,Ac,Re,gt)}}y.isString(h)||(h=h?"include":"omit");const M="credentials"in Request.prototype;p=new Request(t,{...m,signal:O,method:a.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:M?h:void 0});let N=await fetch(p);const j=Zn&&(c==="stream"||c==="response");if(Zn&&(i||j&&b)){const pe={};["status","statusText","headers"].forEach(Ot=>{pe[Ot]=N[Ot]});const Ve=y.toFiniteNumber(N.headers.get("content-length")),[Re,gt]=i&&fc(Ve,ms(gc(i),!0))||[];N=new Response(vc(N.body,Ac,Re,()=>{gt&>(),b&&b()}),pe)}c=c||"text";let de=await gs[y.findKey(gs,c)||"text"](N,e);return!j&&b&&b(),await new Promise((pe,Ve)=>{mc(pe,Ve,{data:de,headers:mt.from(N.headers),status:N.status,statusText:N.statusText,config:e,request:p})})}catch(M){throw b&&b(),M&&M.name==="TypeError"&&/fetch/i.test(M.message)?Object.assign(new ue("Network Error",ue.ERR_NETWORK,e,p),{cause:M.cause||M}):ue.from(M,M&&M.code,e,p)}})};y.forEach(eo,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Vc=e=>`- ${e}`,Zy=e=>y.isFunction(e)||e===null||e===!1,Ec={getAdapter:e=>{e=y.isArray(e)?e:[e];const{length:t}=e;let a,r;const s={};for(let n=0;n`adapter ${i} `+(l===!1?"is not supported by the environment":"is not available in the build"));let o=t?n.length>1?`since : `+n.map(Vc).join(` `):" "+Vc(n[0]):"as no adapter specified";throw new ue("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return r},adapters:eo};function to(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Ra(null,e)}function Rc(e){return to(e),e.headers=mt.from(e.headers),e.data=Kn.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ec.getAdapter(e.adapter||Jn.adapter)(e).then(function(r){return to(e),r.data=Kn.call(e,e.transformResponse,r),r.headers=mt.from(r.headers),r},function(r){return pc(r)||(to(e),r&&r.response&&(r.response.data=Kn.call(e,e.transformResponse,r.response),r.response.headers=mt.from(r.response.headers))),Promise.reject(r)})}const Sc="1.8.3",Os={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{Os[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Tc={};Os.transitional=function(t,a,r){function s(n,o){return"[Axios v"+Sc+"] Transitional option '"+n+"'"+o+(r?". "+r:"")}return(n,o,i)=>{if(t===!1)throw new ue(s(o," has been removed"+(a?" in "+a:"")),ue.ERR_DEPRECATED);return a&&!Tc[o]&&(Tc[o]=!0,console.warn(s(o," has been deprecated since v"+a+" and will be removed in the near future"))),t?t(n,o,i):!0}},Os.spelling=function(t){return(a,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function ev(e,t,a){if(typeof e!="object")throw new ue("options must be an object",ue.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let s=r.length;for(;s-- >0;){const n=r[s],o=t[n];if(o){const i=e[n],l=i===void 0||o(i,n,e);if(l!==!0)throw new ue("option "+n+" must be "+l,ue.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new ue("Unknown option "+n,ue.ERR_BAD_OPTION)}}const bs={assertOptions:ev,validators:Os},yt=bs.validators;class ys{constructor(t){this.defaults=t,this.interceptors={request:new cc,response:new cc}}async request(t,a){try{return await this._request(t,a)}catch(r){if(r instanceof Error){let s={};Error.captureStackTrace?Error.captureStackTrace(s):s=new Error;const n=s.stack?s.stack.replace(/^.+\n/,""):"";try{r.stack?n&&!String(r.stack).endsWith(n.replace(/^.+\n.+\n/,""))&&(r.stack+=` `+n):r.stack=n}catch{}}throw r}}_request(t,a){typeof t=="string"?(a=a||{},a.url=t):a=t||{},a=la(this.defaults,a);const{transitional:r,paramsSerializer:s,headers:n}=a;r!==void 0&&bs.assertOptions(r,{silentJSONParsing:yt.transitional(yt.boolean),forcedJSONParsing:yt.transitional(yt.boolean),clarifyTimeoutError:yt.transitional(yt.boolean)},!1),s!=null&&(y.isFunction(s)?a.paramsSerializer={serialize:s}:bs.assertOptions(s,{encode:yt.function,serialize:yt.function},!0)),a.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?a.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:a.allowAbsoluteUrls=!0),bs.assertOptions(a,{baseUrl:yt.spelling("baseURL"),withXsrfToken:yt.spelling("withXSRFToken")},!0),a.method=(a.method||this.defaults.method||"get").toLowerCase();let o=n&&y.merge(n.common,n[a.method]);n&&y.forEach(["delete","get","head","post","put","patch","common"],p=>{delete n[p]}),a.headers=mt.concat(o,n);const i=[];let l=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(a)===!1||(l=l&&b.synchronous,i.unshift(b.fulfilled,b.rejected))});const c=[];this.interceptors.response.forEach(function(b){c.push(b.fulfilled,b.rejected)});let d,h=0,m;if(!l){const p=[Rc.bind(this),void 0];for(p.unshift.apply(p,i),p.push.apply(p,c),m=p.length,d=Promise.resolve(a);h{if(!r._listeners)return;let n=r._listeners.length;for(;n-- >0;)r._listeners[n](s);r._listeners=null}),this.promise.then=s=>{let n;const o=new Promise(i=>{r.subscribe(i),n=i}).then(s);return o.cancel=function(){r.unsubscribe(n)},o},t(function(n,o,i){r.reason||(r.reason=new Ra(n,o,i),a(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const a=this._listeners.indexOf(t);a!==-1&&this._listeners.splice(a,1)}toAbortSignal(){const t=new AbortController,a=r=>{t.abort(r)};return this.subscribe(a),t.signal.unsubscribe=()=>this.unsubscribe(a),t.signal}static source(){let t;return{token:new ao(function(s){t=s}),cancel:t}}}const tv=ao;function av(e){return function(a){return e.apply(null,a)}}function rv(e){return y.isObject(e)&&e.isAxiosError===!0}const ro={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(ro).forEach(([e,t])=>{ro[t]=e});const sv=ro;function Cc(e){const t=new vs(e),a=zl(vs.prototype.request,t);return y.extend(a,vs.prototype,t,{allOwnKeys:!0}),y.extend(a,t,null,{allOwnKeys:!0}),a.create=function(s){return Cc(la(e,s))},a}const xe=Cc(Jn);xe.Axios=vs,xe.CanceledError=Ra,xe.CancelToken=tv,xe.isCancel=pc,xe.VERSION=Sc,xe.toFormData=us,xe.AxiosError=ue,xe.Cancel=xe.CanceledError,xe.all=function(t){return Promise.all(t)},xe.spread=av,xe.isAxiosError=rv,xe.mergeConfig=la,xe.AxiosHeaders=mt,xe.formToJSON=e=>uc(y.isHTMLForm(e)?new FormData(e):e),xe.getAdapter=Ec.getAdapter,xe.HttpStatusCode=sv,xe.default=xe;const u=xe,v="http://localhost".replace(/\/+$/,"");let at=class{constructor(t,a=v,r=u){Pe(this,"configuration");this.basePath=a,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)}},nv=class extends Error{constructor(a,r){super(r);Pe(this,"name","RequiredError");this.field=a}};const w="https://example.com",ae=function(e,t,a){if(a==null)throw new nv(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},E=async function(e,t){if(t&&t.accessToken){const a=typeof t.accessToken=="function"?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+a}},P=function(e,...t){const a=new URLSearchParams(e.search);for(const r of t)for(const s in r)if(Array.isArray(r[s])){a.delete(s);for(const n of r[s])a.append(s,n)}else a.set(s,r[s]);e.search=a.toString()},re=function(e,t,a){const r=typeof e!="string";return(r&&a&&a.isJsonMime?a.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(e!==void 0?e:{}):e||""},A=function(e){return e.pathname+e.search+e.hash},V=function(e,t,a,r){return(s=t,n=a)=>{const o={...e.options,url:((r==null?void 0:r.basePath)||n)+e.url};return s.request(o)}},ov=function(e){return{addFeedback:async(t,a,r={})=>{ae("addFeedback","coBrowseId",t);const s="/api/agents/{coBrowseId}/feedback".replace("{coBrowseId}",encodeURIComponent(String(t))),n=new URL(s,w);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await E(l,e),l["Content-Type"]="application/json",P(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=re(a,i,e),{url:A(n),options:i}},addFileUploadAIArticleImportConfiguration:async(t,a={})=>{const r="/api/agents/ai/article-import/file-upload",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={},c=new(e&&e.formDataCtor||FormData);await E(i,e),t!==void 0&&c.append("file",t),i["Content-Type"]="multipart/form-data",P(s,l);let d=n&&n.headers?n.headers:{};return o.headers={...i,...d,...a.headers},o.data=c,{url:A(s),options:o}},addIntercomAIArticleImportConfiguration:async(t,a={})=>{const r="/api/agents/ai/article-import/intercom",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},addSalesforceAIArticleImportConfiguration:async(t,a={})=>{const r="/api/agents/ai/article-import/salesforce",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},addSignedIdentityPublicKey:async(t,a={})=>{const r="/api/agents/org-config/signed-identity/public-keys",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},addWebsiteScrapeAIArticleImportConfiguration:async(t,a={})=>{const r="/api/agents/ai/article-import/website-scrape",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},addZendeskAIArticleImportConfiguration:async(t,a={})=>{const r="/api/agents/ai/article-import/zendesk",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},cancelCoBrowseRequest:async(t,a={})=>{const r="/api/agents/cancel-co-browse-request",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},cancelMeetingInvitation:async(t,a,r={})=>{ae("cancelMeetingInvitation","meetingId",t),ae("cancelMeetingInvitation","invitationId",a);const s="/api/agents/meetings/{meetingId}/invitation/{invitationId}/cancel".replace("{meetingId}",encodeURIComponent(String(t))).replace("{invitationId}",encodeURIComponent(String(a))),n=new URL(s,w);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await E(l,e),P(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:A(n),options:i}},createOrganisation:async(t,a={})=>{const r="/api/agents",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),t!==void 0&&(l.name=t),P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:A(s),options:o}},deleteAIArticleImportConfiguration:async(t,a={})=>{ae("deleteAIArticleImportConfiguration","configurationId",t);const r="/api/agents/ai/article-import/{configurationId}".replace("{configurationId}",encodeURIComponent(String(t))),s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"DELETE",...n,...a},i={},l={};await E(i,e),P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:A(s),options:o}},deleteFile:async(t,a,r={})=>{ae("deleteFile","coBrowseId",t),ae("deleteFile","fileId",a);const s="/api/agents/co-browse/{coBrowseId}/files/{fileId}".replace("{coBrowseId}",encodeURIComponent(String(t))).replace("{fileId}",encodeURIComponent(String(a))),n=new URL(s,w);let o;e&&(o=e.baseOptions);const i={method:"DELETE",...o,...r},l={},c={};await E(l,e),P(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:A(n),options:i}},deleteSignedIdentityPublicKey:async(t,a={})=>{ae("deleteSignedIdentityPublicKey","publicKeyId",t);const r="/api/agents/org-config/signed-identity/public-keys/{publicKeyId}".replace("{publicKeyId}",encodeURIComponent(String(t))),s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"DELETE",...n,...a},i={},l={};await E(i,e),P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:A(s),options:o}},downloadFileUploadAIArticleImportConfiguration:async(t,a={})=>{ae("downloadFileUploadAIArticleImportConfiguration","configurationId",t);const r="/api/agents/ai/article-import/file-upload/{configurationId}/download".replace("{configurationId}",encodeURIComponent(String(t))),s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await E(i,e),P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:A(s),options:o}},editIntercomAIArticleImportConfiguration:async(t,a,r={})=>{ae("editIntercomAIArticleImportConfiguration","configurationId",t);const s="/api/agents/ai/article-import/intercom/{configurationId}".replace("{configurationId}",encodeURIComponent(String(t))),n=new URL(s,w);let o;e&&(o=e.baseOptions);const i={method:"PUT",...o,...r},l={},c={};await E(l,e),l["Content-Type"]="application/json",P(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=re(a,i,e),{url:A(n),options:i}},editSalesforceAIArticleImportConfiguration:async(t,a,r={})=>{ae("editSalesforceAIArticleImportConfiguration","configurationId",t);const s="/api/agents/ai/article-import/salesforce/{configurationId}".replace("{configurationId}",encodeURIComponent(String(t))),n=new URL(s,w);let o;e&&(o=e.baseOptions);const i={method:"PUT",...o,...r},l={},c={};await E(l,e),l["Content-Type"]="application/json",P(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=re(a,i,e),{url:A(n),options:i}},editWebsiteScrapeAIArticleImportConfiguration:async(t,a,r={})=>{ae("editWebsiteScrapeAIArticleImportConfiguration","configurationId",t);const s="/api/agents/ai/article-import/website-scrape/{configurationId}".replace("{configurationId}",encodeURIComponent(String(t))),n=new URL(s,w);let o;e&&(o=e.baseOptions);const i={method:"PUT",...o,...r},l={},c={};await E(l,e),l["Content-Type"]="application/json",P(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=re(a,i,e),{url:A(n),options:i}},editZendeskAIArticleImportConfiguration:async(t,a,r={})=>{ae("editZendeskAIArticleImportConfiguration","configurationId",t);const s="/api/agents/ai/article-import/zendesk/{configurationId}".replace("{configurationId}",encodeURIComponent(String(t))),n=new URL(s,w);let o;e&&(o=e.baseOptions);const i={method:"PUT",...o,...r},l={},c={};await E(l,e),l["Content-Type"]="application/json",P(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=re(a,i,e),{url:A(n),options:i}},endCoBrowse:async(t,a={})=>{const r="/api/agents/end-co-browse",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},getAIArticle:async(t,a={})=>{ae("getAIArticle","articleId",t);const r="/api/agents/ai/articles/{articleId}".replace("{articleId}",encodeURIComponent(String(t))),s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await E(i,e),P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:A(s),options:o}},getAIArticles:async(t,a={})=>{const r="/api/agents/ai/articles",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},getAgentOpenCoBrowses:async(t={})=>{const a="/api/agents/open-co-browses",r=new URL(a,w);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await E(o,e),P(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:A(r),options:n}},getAgents:async(t,a={})=>{const r="/api/agents/search",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},getAiConfig:async(t={})=>{const a="/api/agents/org-config/ai-config",r=new URL(a,w);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await E(o,e),P(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:A(r),options:n}},getCoBrowseAudioMetadata:async(t,a={})=>{const r="/api/agents/co-browse-audio-metadata",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await E(i,e),t!==void 0&&(l.cobrowseId=t),P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:A(s),options:o}},getCoBrowseRequests:async(t={})=>{const a="/api/agents/co-browse-requests",r=new URL(a,w);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await E(o,e),P(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:A(r),options:n}},getCobrowseAudioRecording:async(t,a,r={})=>{const s="/api/agents/co-browse-audio-recording",n=new URL(s,w);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...r},l={},c={};await E(l,e),t!==void 0&&(c.cobrowseId=t),a!==void 0&&(c.fileName=a),P(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:A(n),options:i}},getConfigurations:async(t={})=>{const a="/api/agents/ai/article-import",r=new URL(a,w);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await E(o,e),P(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:A(r),options:n}},getCustomers:async(t,a={})=>{const r="/api/agents/get-customers",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},getCustomersStatus:async(t,a={})=>{const r="/api/agents/get-customers-status",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},getFile:async(t,a,r={})=>{ae("getFile","coBrowseId",t),ae("getFile","fileId",a);const s="/api/agents/co-browse/{coBrowseId}/files/{fileId}".replace("{coBrowseId}",encodeURIComponent(String(t))).replace("{fileId}",encodeURIComponent(String(a))),n=new URL(s,w);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...r},l={},c={};await E(l,e),P(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:A(n),options:i}},getFileUploadAIArticleImportConfiguration:async(t,a={})=>{ae("getFileUploadAIArticleImportConfiguration","configurationId",t);const r="/api/agents/ai/article-import/file-upload/{configurationId}".replace("{configurationId}",encodeURIComponent(String(t))),s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await E(i,e),P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:A(s),options:o}},getIntercomAIArticleImportConfiguration:async(t,a={})=>{ae("getIntercomAIArticleImportConfiguration","configurationId",t);const r="/api/agents/ai/article-import/intercom/{configurationId}".replace("{configurationId}",encodeURIComponent(String(t))),s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await E(i,e),P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:A(s),options:o}},getIntercomCollections:async(t={})=>{const a="/api/agents/ai/article-import/intercom/collections",r=new URL(a,w);let s;e&&(s=e.baseOptions);const n={method:"POST",...s,...t},o={},i={};await E(o,e),P(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:A(r),options:n}},getMeeting:async(t,a={})=>{ae("getMeeting","meetingId",t);const r="/api/agents/meetings/{meetingId}".replace("{meetingId}",encodeURIComponent(String(t))),s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await E(i,e),P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:A(s),options:o}},getMeetingInvitations:async(t={})=>{const a="/api/agents/meetings/invitations",r=new URL(a,w);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await E(o,e),P(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:A(r),options:n}},getMeetingToken:async(t,a={})=>{ae("getMeetingToken","meetingId",t);const r="/api/agents/meetings/{meetingId}/token".replace("{meetingId}",encodeURIComponent(String(t))),s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await E(i,e),P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:A(s),options:o}},getOnboardingStatus:async(t={})=>{const a="/api/agents/onboarding/status",r=new URL(a,w);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await E(o,e),P(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:A(r),options:n}},getOrganisationCode:async(t={})=>{const a="/api/agents/organisation-code",r=new URL(a,w);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await E(o,e),P(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:A(r),options:n}},getSalesforceAIArticleImportConfiguration:async(t,a={})=>{ae("getSalesforceAIArticleImportConfiguration","configurationId",t);const r="/api/agents/ai/article-import/salesforce/{configurationId}".replace("{configurationId}",encodeURIComponent(String(t))),s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await E(i,e),P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:A(s),options:o}},getSalesforceBodyFields:async(t,a={})=>{const r="/api/agents/ai/article-import/salesforce/body-fields",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},getSalesforceBodyFieldsBasedOnConfiguration:async(t,a={})=>{ae("getSalesforceBodyFieldsBasedOnConfiguration","configurationId",t);const r="/api/agents/ai/article-import/salesforce/{configurationId}/body-fields".replace("{configurationId}",encodeURIComponent(String(t))),s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:A(s),options:o}},getSalesforceCategories:async(t,a={})=>{const r="/api/agents/ai/article-import/salesforce/categories",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},getSalesforceCategoriesBasedOnConfiguration:async(t,a={})=>{ae("getSalesforceCategoriesBasedOnConfiguration","configurationId",t);const r="/api/agents/ai/article-import/salesforce/{configurationId}/categories".replace("{configurationId}",encodeURIComponent(String(t))),s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:A(s),options:o}},getSalesforceLanguages:async(t,a={})=>{const r="/api/agents/ai/article-import/salesforce/languages",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},getSalesforceLanguagesBasedOnConfiguration:async(t,a={})=>{ae("getSalesforceLanguagesBasedOnConfiguration","configurationId",t);const r="/api/agents/ai/article-import/salesforce/{configurationId}/languages".replace("{configurationId}",encodeURIComponent(String(t))),s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:A(s),options:o}},getWebsiteScrapeAIArticleImportConfiguration:async(t,a={})=>{ae("getWebsiteScrapeAIArticleImportConfiguration","configurationId",t);const r="/api/agents/ai/article-import/website-scrape/{configurationId}".replace("{configurationId}",encodeURIComponent(String(t))),s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await E(i,e),P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:A(s),options:o}},getZendeskAIArticleImportConfiguration:async(t,a={})=>{ae("getZendeskAIArticleImportConfiguration","configurationId",t);const r="/api/agents/ai/article-import/zendesk/{configurationId}".replace("{configurationId}",encodeURIComponent(String(t))),s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await E(i,e),P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:A(s),options:o}},inviteAgentToMeeting:async(t,a,r={})=>{ae("inviteAgentToMeeting","meetingId",t),ae("inviteAgentToMeeting","agentId",a);const s="/api/agents/meetings/{meetingId}/agent/{agentId}".replace("{meetingId}",encodeURIComponent(String(t))).replace("{agentId}",encodeURIComponent(String(a))),n=new URL(s,w);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await E(l,e),P(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:A(n),options:i}},inviteCustomerToMeeting:async(t,a,r,s={})=>{ae("inviteCustomerToMeeting","meetingId",t),ae("inviteCustomerToMeeting","customerId",a);const n="/api/agents/meetings/{meetingId}/customer/{customerId}".replace("{meetingId}",encodeURIComponent(String(t))).replace("{customerId}",encodeURIComponent(String(a))),o=new URL(n,w);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...s},c={},d={};await E(c,e),c["Content-Type"]="application/json",P(o,d);let h=i&&i.headers?i.headers:{};return l.headers={...c,...h,...s.headers},l.data=re(r,l,e),{url:A(o),options:l}},joinMeeting:async(t,a={})=>{ae("joinMeeting","meetingId",t);const r="/api/agents/meetings/{meetingId}/join".replace("{meetingId}",encodeURIComponent(String(t))),s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:A(s),options:o}},leaveMeeting:async(t,a={})=>{ae("leaveMeeting","meetingId",t);const r="/api/agents/meetings/{meetingId}/leave".replace("{meetingId}",encodeURIComponent(String(t))),s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:A(s),options:o}},notifyCustomer:async(t,a,r={})=>{ae("notifyCustomer","coBrowseId",t);const s="/api/agents/co-browse/{coBrowseId}/notify-customer".replace("{coBrowseId}",encodeURIComponent(String(t))),n=new URL(s,w);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await E(l,e),l["Content-Type"]="application/json",P(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=re(a,i,e),{url:A(n),options:i}},onPaintReceived:async(t,a={})=>{ae("onPaintReceived","coBrowseId",t);const r="/api/agents/co-browse/{coBrowseId}/received-paint".replace("{coBrowseId}",encodeURIComponent(String(t))),s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:A(s),options:o}},registerCustomerForPlayground:async(t,a={})=>{const r="/api/agents/register-playground",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},rescheduleAIArticleImportConfiguration:async(t,a={})=>{ae("rescheduleAIArticleImportConfiguration","configurationId",t);const r="/api/agents/ai/article-import/{configurationId}/reschedule".replace("{configurationId}",encodeURIComponent(String(t))),s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:A(s),options:o}},respondToAccessRequest:async(t,a,r,s={})=>{ae("respondToAccessRequest","meetingId",t),ae("respondToAccessRequest","requestId",a);const n="/api/agents/meetings/{meetingId}/access-request/{requestId}/respond".replace("{meetingId}",encodeURIComponent(String(t))).replace("{requestId}",encodeURIComponent(String(a))),o=new URL(n,w);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...s},c={},d={};await E(c,e),r!==void 0&&(d.accept=r),P(o,d);let h=i&&i.headers?i.headers:{};return l.headers={...c,...h,...s.headers},{url:A(o),options:l}},respondToInvitation:async(t,a,r={})=>{ae("respondToInvitation","meetingId",t);const s="/api/agents/meetings/{meetingId}/respond".replace("{meetingId}",encodeURIComponent(String(t))),n=new URL(s,w);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await E(l,e),a!==void 0&&(c.accept=a),P(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:A(n),options:i}},selectOrgFeatures:async(t,a={})=>{const r="/api/agents/org-setup/select-features",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},sendCoBrowseEmail:async(t,a={})=>{const r="/api/agents/send-co-browse-email",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},setSignedIdentityValidation:async(t,a={})=>{const r="/api/agents/org-config/signed-identity/validation",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"PUT",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},startCoBrowseUsingCode:async(t,a={})=>{const r="/api/agents/start-co-browse-using-code",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},startCoBrowseWithCustomer:async(t,a={})=>{const r="/api/agents/start-co-browse",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},startCoBrowseWithVisitor:async(t={})=>{const a="/api/agents/start-co-browse-with-visitor",r=new URL(a,w);let s;e&&(s=e.baseOptions);const n={method:"POST",...s,...t},o={},i={};await E(o,e),P(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:A(r),options:n}},startMeeting:async(t={})=>{const a="/api/agents/meetings",r=new URL(a,w);let s;e&&(s=e.baseOptions);const n={method:"POST",...s,...t},o={},i={};await E(o,e),P(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:A(r),options:n}},updateAiConfig:async(t,a={})=>{const r="/api/agents/org-config/ai-config",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},updateCoBrowseConfig:async(t,a={})=>{const r="/api/agents/org-config/co-browse",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"PUT",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},updateContentMaskingConfig:async(t,a={})=>{const r="/api/agents/org-config/content-masking",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"PUT",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},updateParticipant:async(t,a,r={})=>{ae("updateParticipant","coBrowseId",t);const s="/api/agents/co-browse/{coBrowseId}/update-participant".replace("{coBrowseId}",encodeURIComponent(String(t))),n=new URL(s,w);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await E(l,e),l["Content-Type"]="application/json",P(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=re(a,i,e),{url:A(n),options:i}},updateParticipantRTC:async(t,a,r={})=>{ae("updateParticipantRTC","coBrowseId",t);const s="/api/agents/co-browse/{coBrowseId}/update-participant-rtc".replace("{coBrowseId}",encodeURIComponent(String(t))),n=new URL(s,w);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await E(l,e),l["Content-Type"]="application/json",P(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=re(a,i,e),{url:A(n),options:i}},uploadFile:async(t,a,r={})=>{ae("uploadFile","coBrowseId",t);const s="/api/agents/co-browse/{coBrowseId}/files".replace("{coBrowseId}",encodeURIComponent(String(t))),n=new URL(s,w);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={},d=new(e&&e.formDataCtor||FormData);await E(l,e),a!==void 0&&d.append("file",a),l["Content-Type"]="multipart/form-data",P(n,c);let h=o&&o.headers?o.headers:{};return i.headers={...l,...h,...r.headers},i.data=d,{url:A(n),options:i}}}},B=function(e){const t=ov(e);return{async addFeedback(a,r,s){const n=await t.addFeedback(a,r,s);return V(n,u,v,e)},async addFileUploadAIArticleImportConfiguration(a,r){const s=await t.addFileUploadAIArticleImportConfiguration(a,r);return V(s,u,v,e)},async addIntercomAIArticleImportConfiguration(a,r){const s=await t.addIntercomAIArticleImportConfiguration(a,r);return V(s,u,v,e)},async addSalesforceAIArticleImportConfiguration(a,r){const s=await t.addSalesforceAIArticleImportConfiguration(a,r);return V(s,u,v,e)},async addSignedIdentityPublicKey(a,r){const s=await t.addSignedIdentityPublicKey(a,r);return V(s,u,v,e)},async addWebsiteScrapeAIArticleImportConfiguration(a,r){const s=await t.addWebsiteScrapeAIArticleImportConfiguration(a,r);return V(s,u,v,e)},async addZendeskAIArticleImportConfiguration(a,r){const s=await t.addZendeskAIArticleImportConfiguration(a,r);return V(s,u,v,e)},async cancelCoBrowseRequest(a,r){const s=await t.cancelCoBrowseRequest(a,r);return V(s,u,v,e)},async cancelMeetingInvitation(a,r,s){const n=await t.cancelMeetingInvitation(a,r,s);return V(n,u,v,e)},async createOrganisation(a,r){const s=await t.createOrganisation(a,r);return V(s,u,v,e)},async deleteAIArticleImportConfiguration(a,r){const s=await t.deleteAIArticleImportConfiguration(a,r);return V(s,u,v,e)},async deleteFile(a,r,s){const n=await t.deleteFile(a,r,s);return V(n,u,v,e)},async deleteSignedIdentityPublicKey(a,r){const s=await t.deleteSignedIdentityPublicKey(a,r);return V(s,u,v,e)},async downloadFileUploadAIArticleImportConfiguration(a,r){const s=await t.downloadFileUploadAIArticleImportConfiguration(a,r);return V(s,u,v,e)},async editIntercomAIArticleImportConfiguration(a,r,s){const n=await t.editIntercomAIArticleImportConfiguration(a,r,s);return V(n,u,v,e)},async editSalesforceAIArticleImportConfiguration(a,r,s){const n=await t.editSalesforceAIArticleImportConfiguration(a,r,s);return V(n,u,v,e)},async editWebsiteScrapeAIArticleImportConfiguration(a,r,s){const n=await t.editWebsiteScrapeAIArticleImportConfiguration(a,r,s);return V(n,u,v,e)},async editZendeskAIArticleImportConfiguration(a,r,s){const n=await t.editZendeskAIArticleImportConfiguration(a,r,s);return V(n,u,v,e)},async endCoBrowse(a,r){const s=await t.endCoBrowse(a,r);return V(s,u,v,e)},async getAIArticle(a,r){const s=await t.getAIArticle(a,r);return V(s,u,v,e)},async getAIArticles(a,r){const s=await t.getAIArticles(a,r);return V(s,u,v,e)},async getAgentOpenCoBrowses(a){const r=await t.getAgentOpenCoBrowses(a);return V(r,u,v,e)},async getAgents(a,r){const s=await t.getAgents(a,r);return V(s,u,v,e)},async getAiConfig(a){const r=await t.getAiConfig(a);return V(r,u,v,e)},async getCoBrowseAudioMetadata(a,r){const s=await t.getCoBrowseAudioMetadata(a,r);return V(s,u,v,e)},async getCoBrowseRequests(a){const r=await t.getCoBrowseRequests(a);return V(r,u,v,e)},async getCobrowseAudioRecording(a,r,s){const n=await t.getCobrowseAudioRecording(a,r,s);return V(n,u,v,e)},async getConfigurations(a){const r=await t.getConfigurations(a);return V(r,u,v,e)},async getCustomers(a,r){const s=await t.getCustomers(a,r);return V(s,u,v,e)},async getCustomersStatus(a,r){const s=await t.getCustomersStatus(a,r);return V(s,u,v,e)},async getFile(a,r,s){const n=await t.getFile(a,r,s);return V(n,u,v,e)},async getFileUploadAIArticleImportConfiguration(a,r){const s=await t.getFileUploadAIArticleImportConfiguration(a,r);return V(s,u,v,e)},async getIntercomAIArticleImportConfiguration(a,r){const s=await t.getIntercomAIArticleImportConfiguration(a,r);return V(s,u,v,e)},async getIntercomCollections(a){const r=await t.getIntercomCollections(a);return V(r,u,v,e)},async getMeeting(a,r){const s=await t.getMeeting(a,r);return V(s,u,v,e)},async getMeetingInvitations(a){const r=await t.getMeetingInvitations(a);return V(r,u,v,e)},async getMeetingToken(a,r){const s=await t.getMeetingToken(a,r);return V(s,u,v,e)},async getOnboardingStatus(a){const r=await t.getOnboardingStatus(a);return V(r,u,v,e)},async getOrganisationCode(a){const r=await t.getOrganisationCode(a);return V(r,u,v,e)},async getSalesforceAIArticleImportConfiguration(a,r){const s=await t.getSalesforceAIArticleImportConfiguration(a,r);return V(s,u,v,e)},async getSalesforceBodyFields(a,r){const s=await t.getSalesforceBodyFields(a,r);return V(s,u,v,e)},async getSalesforceBodyFieldsBasedOnConfiguration(a,r){const s=await t.getSalesforceBodyFieldsBasedOnConfiguration(a,r);return V(s,u,v,e)},async getSalesforceCategories(a,r){const s=await t.getSalesforceCategories(a,r);return V(s,u,v,e)},async getSalesforceCategoriesBasedOnConfiguration(a,r){const s=await t.getSalesforceCategoriesBasedOnConfiguration(a,r);return V(s,u,v,e)},async getSalesforceLanguages(a,r){const s=await t.getSalesforceLanguages(a,r);return V(s,u,v,e)},async getSalesforceLanguagesBasedOnConfiguration(a,r){const s=await t.getSalesforceLanguagesBasedOnConfiguration(a,r);return V(s,u,v,e)},async getWebsiteScrapeAIArticleImportConfiguration(a,r){const s=await t.getWebsiteScrapeAIArticleImportConfiguration(a,r);return V(s,u,v,e)},async getZendeskAIArticleImportConfiguration(a,r){const s=await t.getZendeskAIArticleImportConfiguration(a,r);return V(s,u,v,e)},async inviteAgentToMeeting(a,r,s){const n=await t.inviteAgentToMeeting(a,r,s);return V(n,u,v,e)},async inviteCustomerToMeeting(a,r,s,n){const o=await t.inviteCustomerToMeeting(a,r,s,n);return V(o,u,v,e)},async joinMeeting(a,r){const s=await t.joinMeeting(a,r);return V(s,u,v,e)},async leaveMeeting(a,r){const s=await t.leaveMeeting(a,r);return V(s,u,v,e)},async notifyCustomer(a,r,s){const n=await t.notifyCustomer(a,r,s);return V(n,u,v,e)},async onPaintReceived(a,r){const s=await t.onPaintReceived(a,r);return V(s,u,v,e)},async registerCustomerForPlayground(a,r){const s=await t.registerCustomerForPlayground(a,r);return V(s,u,v,e)},async rescheduleAIArticleImportConfiguration(a,r){const s=await t.rescheduleAIArticleImportConfiguration(a,r);return V(s,u,v,e)},async respondToAccessRequest(a,r,s,n){const o=await t.respondToAccessRequest(a,r,s,n);return V(o,u,v,e)},async respondToInvitation(a,r,s){const n=await t.respondToInvitation(a,r,s);return V(n,u,v,e)},async selectOrgFeatures(a,r){const s=await t.selectOrgFeatures(a,r);return V(s,u,v,e)},async sendCoBrowseEmail(a,r){const s=await t.sendCoBrowseEmail(a,r);return V(s,u,v,e)},async setSignedIdentityValidation(a,r){const s=await t.setSignedIdentityValidation(a,r);return V(s,u,v,e)},async startCoBrowseUsingCode(a,r){const s=await t.startCoBrowseUsingCode(a,r);return V(s,u,v,e)},async startCoBrowseWithCustomer(a,r){const s=await t.startCoBrowseWithCustomer(a,r);return V(s,u,v,e)},async startCoBrowseWithVisitor(a){const r=await t.startCoBrowseWithVisitor(a);return V(r,u,v,e)},async startMeeting(a){const r=await t.startMeeting(a);return V(r,u,v,e)},async updateAiConfig(a,r){const s=await t.updateAiConfig(a,r);return V(s,u,v,e)},async updateCoBrowseConfig(a,r){const s=await t.updateCoBrowseConfig(a,r);return V(s,u,v,e)},async updateContentMaskingConfig(a,r){const s=await t.updateContentMaskingConfig(a,r);return V(s,u,v,e)},async updateParticipant(a,r,s){const n=await t.updateParticipant(a,r,s);return V(n,u,v,e)},async updateParticipantRTC(a,r,s){const n=await t.updateParticipantRTC(a,r,s);return V(n,u,v,e)},async uploadFile(a,r,s){const n=await t.uploadFile(a,r,s);return V(n,u,v,e)}}};class iv extends at{addFeedback(t,a,r){return B(this.configuration).addFeedback(t,a,r).then(s=>s(this.axios,this.basePath))}addFileUploadAIArticleImportConfiguration(t,a){return B(this.configuration).addFileUploadAIArticleImportConfiguration(t,a).then(r=>r(this.axios,this.basePath))}addIntercomAIArticleImportConfiguration(t,a){return B(this.configuration).addIntercomAIArticleImportConfiguration(t,a).then(r=>r(this.axios,this.basePath))}addSalesforceAIArticleImportConfiguration(t,a){return B(this.configuration).addSalesforceAIArticleImportConfiguration(t,a).then(r=>r(this.axios,this.basePath))}addSignedIdentityPublicKey(t,a){return B(this.configuration).addSignedIdentityPublicKey(t,a).then(r=>r(this.axios,this.basePath))}addWebsiteScrapeAIArticleImportConfiguration(t,a){return B(this.configuration).addWebsiteScrapeAIArticleImportConfiguration(t,a).then(r=>r(this.axios,this.basePath))}addZendeskAIArticleImportConfiguration(t,a){return B(this.configuration).addZendeskAIArticleImportConfiguration(t,a).then(r=>r(this.axios,this.basePath))}cancelCoBrowseRequest(t,a){return B(this.configuration).cancelCoBrowseRequest(t,a).then(r=>r(this.axios,this.basePath))}cancelMeetingInvitation(t,a,r){return B(this.configuration).cancelMeetingInvitation(t,a,r).then(s=>s(this.axios,this.basePath))}createOrganisation(t,a){return B(this.configuration).createOrganisation(t,a).then(r=>r(this.axios,this.basePath))}deleteAIArticleImportConfiguration(t,a){return B(this.configuration).deleteAIArticleImportConfiguration(t,a).then(r=>r(this.axios,this.basePath))}deleteFile(t,a,r){return B(this.configuration).deleteFile(t,a,r).then(s=>s(this.axios,this.basePath))}deleteSignedIdentityPublicKey(t,a){return B(this.configuration).deleteSignedIdentityPublicKey(t,a).then(r=>r(this.axios,this.basePath))}downloadFileUploadAIArticleImportConfiguration(t,a){return B(this.configuration).downloadFileUploadAIArticleImportConfiguration(t,a).then(r=>r(this.axios,this.basePath))}editIntercomAIArticleImportConfiguration(t,a,r){return B(this.configuration).editIntercomAIArticleImportConfiguration(t,a,r).then(s=>s(this.axios,this.basePath))}editSalesforceAIArticleImportConfiguration(t,a,r){return B(this.configuration).editSalesforceAIArticleImportConfiguration(t,a,r).then(s=>s(this.axios,this.basePath))}editWebsiteScrapeAIArticleImportConfiguration(t,a,r){return B(this.configuration).editWebsiteScrapeAIArticleImportConfiguration(t,a,r).then(s=>s(this.axios,this.basePath))}editZendeskAIArticleImportConfiguration(t,a,r){return B(this.configuration).editZendeskAIArticleImportConfiguration(t,a,r).then(s=>s(this.axios,this.basePath))}endCoBrowse(t,a){return B(this.configuration).endCoBrowse(t,a).then(r=>r(this.axios,this.basePath))}getAIArticle(t,a){return B(this.configuration).getAIArticle(t,a).then(r=>r(this.axios,this.basePath))}getAIArticles(t,a){return B(this.configuration).getAIArticles(t,a).then(r=>r(this.axios,this.basePath))}getAgentOpenCoBrowses(t){return B(this.configuration).getAgentOpenCoBrowses(t).then(a=>a(this.axios,this.basePath))}getAgents(t,a){return B(this.configuration).getAgents(t,a).then(r=>r(this.axios,this.basePath))}getAiConfig(t){return B(this.configuration).getAiConfig(t).then(a=>a(this.axios,this.basePath))}getCoBrowseAudioMetadata(t,a){return B(this.configuration).getCoBrowseAudioMetadata(t,a).then(r=>r(this.axios,this.basePath))}getCoBrowseRequests(t){return B(this.configuration).getCoBrowseRequests(t).then(a=>a(this.axios,this.basePath))}getCobrowseAudioRecording(t,a,r){return B(this.configuration).getCobrowseAudioRecording(t,a,r).then(s=>s(this.axios,this.basePath))}getConfigurations(t){return B(this.configuration).getConfigurations(t).then(a=>a(this.axios,this.basePath))}getCustomers(t,a){return B(this.configuration).getCustomers(t,a).then(r=>r(this.axios,this.basePath))}getCustomersStatus(t,a){return B(this.configuration).getCustomersStatus(t,a).then(r=>r(this.axios,this.basePath))}getFile(t,a,r){return B(this.configuration).getFile(t,a,r).then(s=>s(this.axios,this.basePath))}getFileUploadAIArticleImportConfiguration(t,a){return B(this.configuration).getFileUploadAIArticleImportConfiguration(t,a).then(r=>r(this.axios,this.basePath))}getIntercomAIArticleImportConfiguration(t,a){return B(this.configuration).getIntercomAIArticleImportConfiguration(t,a).then(r=>r(this.axios,this.basePath))}getIntercomCollections(t){return B(this.configuration).getIntercomCollections(t).then(a=>a(this.axios,this.basePath))}getMeeting(t,a){return B(this.configuration).getMeeting(t,a).then(r=>r(this.axios,this.basePath))}getMeetingInvitations(t){return B(this.configuration).getMeetingInvitations(t).then(a=>a(this.axios,this.basePath))}getMeetingToken(t,a){return B(this.configuration).getMeetingToken(t,a).then(r=>r(this.axios,this.basePath))}getOnboardingStatus(t){return B(this.configuration).getOnboardingStatus(t).then(a=>a(this.axios,this.basePath))}getOrganisationCode(t){return B(this.configuration).getOrganisationCode(t).then(a=>a(this.axios,this.basePath))}getSalesforceAIArticleImportConfiguration(t,a){return B(this.configuration).getSalesforceAIArticleImportConfiguration(t,a).then(r=>r(this.axios,this.basePath))}getSalesforceBodyFields(t,a){return B(this.configuration).getSalesforceBodyFields(t,a).then(r=>r(this.axios,this.basePath))}getSalesforceBodyFieldsBasedOnConfiguration(t,a){return B(this.configuration).getSalesforceBodyFieldsBasedOnConfiguration(t,a).then(r=>r(this.axios,this.basePath))}getSalesforceCategories(t,a){return B(this.configuration).getSalesforceCategories(t,a).then(r=>r(this.axios,this.basePath))}getSalesforceCategoriesBasedOnConfiguration(t,a){return B(this.configuration).getSalesforceCategoriesBasedOnConfiguration(t,a).then(r=>r(this.axios,this.basePath))}getSalesforceLanguages(t,a){return B(this.configuration).getSalesforceLanguages(t,a).then(r=>r(this.axios,this.basePath))}getSalesforceLanguagesBasedOnConfiguration(t,a){return B(this.configuration).getSalesforceLanguagesBasedOnConfiguration(t,a).then(r=>r(this.axios,this.basePath))}getWebsiteScrapeAIArticleImportConfiguration(t,a){return B(this.configuration).getWebsiteScrapeAIArticleImportConfiguration(t,a).then(r=>r(this.axios,this.basePath))}getZendeskAIArticleImportConfiguration(t,a){return B(this.configuration).getZendeskAIArticleImportConfiguration(t,a).then(r=>r(this.axios,this.basePath))}inviteAgentToMeeting(t,a,r){return B(this.configuration).inviteAgentToMeeting(t,a,r).then(s=>s(this.axios,this.basePath))}inviteCustomerToMeeting(t,a,r,s){return B(this.configuration).inviteCustomerToMeeting(t,a,r,s).then(n=>n(this.axios,this.basePath))}joinMeeting(t,a){return B(this.configuration).joinMeeting(t,a).then(r=>r(this.axios,this.basePath))}leaveMeeting(t,a){return B(this.configuration).leaveMeeting(t,a).then(r=>r(this.axios,this.basePath))}notifyCustomer(t,a,r){return B(this.configuration).notifyCustomer(t,a,r).then(s=>s(this.axios,this.basePath))}onPaintReceived(t,a){return B(this.configuration).onPaintReceived(t,a).then(r=>r(this.axios,this.basePath))}registerCustomerForPlayground(t,a){return B(this.configuration).registerCustomerForPlayground(t,a).then(r=>r(this.axios,this.basePath))}rescheduleAIArticleImportConfiguration(t,a){return B(this.configuration).rescheduleAIArticleImportConfiguration(t,a).then(r=>r(this.axios,this.basePath))}respondToAccessRequest(t,a,r,s){return B(this.configuration).respondToAccessRequest(t,a,r,s).then(n=>n(this.axios,this.basePath))}respondToInvitation(t,a,r){return B(this.configuration).respondToInvitation(t,a,r).then(s=>s(this.axios,this.basePath))}selectOrgFeatures(t,a){return B(this.configuration).selectOrgFeatures(t,a).then(r=>r(this.axios,this.basePath))}sendCoBrowseEmail(t,a){return B(this.configuration).sendCoBrowseEmail(t,a).then(r=>r(this.axios,this.basePath))}setSignedIdentityValidation(t,a){return B(this.configuration).setSignedIdentityValidation(t,a).then(r=>r(this.axios,this.basePath))}startCoBrowseUsingCode(t,a){return B(this.configuration).startCoBrowseUsingCode(t,a).then(r=>r(this.axios,this.basePath))}startCoBrowseWithCustomer(t,a){return B(this.configuration).startCoBrowseWithCustomer(t,a).then(r=>r(this.axios,this.basePath))}startCoBrowseWithVisitor(t){return B(this.configuration).startCoBrowseWithVisitor(t).then(a=>a(this.axios,this.basePath))}startMeeting(t){return B(this.configuration).startMeeting(t).then(a=>a(this.axios,this.basePath))}updateAiConfig(t,a){return B(this.configuration).updateAiConfig(t,a).then(r=>r(this.axios,this.basePath))}updateCoBrowseConfig(t,a){return B(this.configuration).updateCoBrowseConfig(t,a).then(r=>r(this.axios,this.basePath))}updateContentMaskingConfig(t,a){return B(this.configuration).updateContentMaskingConfig(t,a).then(r=>r(this.axios,this.basePath))}updateParticipant(t,a,r){return B(this.configuration).updateParticipant(t,a,r).then(s=>s(this.axios,this.basePath))}updateParticipantRTC(t,a,r){return B(this.configuration).updateParticipantRTC(t,a,r).then(s=>s(this.axios,this.basePath))}uploadFile(t,a,r){return B(this.configuration).uploadFile(t,a,r).then(s=>s(this.axios,this.basePath))}}const lv=function(e){return{deleteFile:async(t,a={})=>{ae("deleteFile","fileId",t);const r="/api/agents/meeting/file/{fileId}".replace("{fileId}",encodeURIComponent(String(t))),s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"DELETE",...n,...a},i={},l={};await E(i,e),P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:A(s),options:o}},getFile:async(t,a={})=>{ae("getFile","fileId",t);const r="/api/agents/meeting/file/{fileId}".replace("{fileId}",encodeURIComponent(String(t))),s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await E(i,e),P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:A(s),options:o}},updateParticipant:async(t,a={})=>{const r="/api/agents/meeting/update-participant",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},uploadFile:async(t,a={})=>{const r="/api/agents/meeting/file",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={},c=new(e&&e.formDataCtor||FormData);await E(i,e),t!==void 0&&c.append("file",t),i["Content-Type"]="multipart/form-data",P(s,l);let d=n&&n.headers?n.headers:{};return o.headers={...i,...d,...a.headers},o.data=c,{url:A(s),options:o}}}},ws=function(e){const t=lv(e);return{async deleteFile(a,r){const s=await t.deleteFile(a,r);return V(s,u,v,e)},async getFile(a,r){const s=await t.getFile(a,r);return V(s,u,v,e)},async updateParticipant(a,r){const s=await t.updateParticipant(a,r);return V(s,u,v,e)},async uploadFile(a,r){const s=await t.uploadFile(a,r);return V(s,u,v,e)}}};class cv extends at{deleteFile(t,a){return ws(this.configuration).deleteFile(t,a).then(r=>r(this.axios,this.basePath))}getFile(t,a){return ws(this.configuration).getFile(t,a).then(r=>r(this.axios,this.basePath))}updateParticipant(t,a){return ws(this.configuration).updateParticipant(t,a).then(r=>r(this.axios,this.basePath))}uploadFile(t,a){return ws(this.configuration).uploadFile(t,a).then(r=>r(this.axios,this.basePath))}}const dv=function(e){return{getCoBrowse:async(t,a={})=>{ae("getCoBrowse","id",t);const r="/api/co-browse/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await E(i,e),P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:A(s),options:o}}}},uv=function(e){const t=dv(e);return{async getCoBrowse(a,r){const s=await t.getCoBrowse(a,r);return V(s,u,v,e)}}};class hv extends at{getCoBrowse(t,a){return uv(this.configuration).getCoBrowse(t,a).then(r=>r(this.axios,this.basePath))}}const pv=function(e){return{endCoBrowse:async(t={})=>{const a="/api/co-browse-window/end-co-browse",r=new URL(a,w);let s;e&&(s=e.baseOptions);const n={method:"POST",...s,...t},o={},i={};await E(o,e),P(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:A(r),options:n}},register:async(t,a={})=>{const r="/api/co-browse-window/register",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},updateParticipant:async(t,a={})=>{const r="/api/co-browse-window/update-participant",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}}}},so=function(e){const t=pv(e);return{async endCoBrowse(a){const r=await t.endCoBrowse(a);return V(r,u,v,e)},async register(a,r){const s=await t.register(a,r);return V(s,u,v,e)},async updateParticipant(a,r){const s=await t.updateParticipant(a,r);return V(s,u,v,e)}}};class mv extends at{endCoBrowse(t){return so(this.configuration).endCoBrowse(t).then(a=>a(this.axios,this.basePath))}register(t,a){return so(this.configuration).register(t,a).then(r=>r(this.axios,this.basePath))}updateParticipant(t,a){return so(this.configuration).updateParticipant(t,a).then(r=>r(this.axios,this.basePath))}}const fv=function(e){return{acceptCoBrowse:async(t,a={})=>{const r="/api/customers/accept-co-browse",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},addFeedback:async(t,a,r={})=>{ae("addFeedback","coBrowseId",t);const s="/api/customers/{coBrowseId}/feedback".replace("{coBrowseId}",encodeURIComponent(String(t))),n=new URL(s,w);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await E(l,e),l["Content-Type"]="application/json",P(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=re(a,i,e),{url:A(n),options:i}},cancelSupportRequest:async(t={})=>{const a="/api/customers/cancel-support-request",r=new URL(a,w);let s;e&&(s=e.baseOptions);const n={method:"POST",...s,...t},o={},i={};await E(o,e),P(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:A(r),options:n}},changeWindowPosition:async(t,a={})=>{const r="/api/customers/change-window-position",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},declineCoBrowse:async(t,a={})=>{const r="/api/customers/decline-co-browse",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},deleteFile:async(t,a={})=>{ae("deleteFile","fileId",t);const r="/api/customers/file/{fileId}".replace("{fileId}",encodeURIComponent(String(t))),s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"DELETE",...n,...a},i={},l={};await E(i,e),P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:A(s),options:o}},deleteMeetingFile:async(t,a={})=>{ae("deleteMeetingFile","fileId",t);const r="/api/customers/meeting/file/{fileId}".replace("{fileId}",encodeURIComponent(String(t))),s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"DELETE",...n,...a},i={},l={};await E(i,e),P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:A(s),options:o}},endCoBrowse:async(t={})=>{const a="/api/customers/end-co-browse",r=new URL(a,w);let s;e&&(s=e.baseOptions);const n={method:"POST",...s,...t},o={},i={};await E(o,e),P(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:A(r),options:n}},generateIdentificationCode:async(t={})=>{const a="/api/customers/generate-identification-code",r=new URL(a,w);let s;e&&(s=e.baseOptions);const n={method:"POST",...s,...t},o={},i={};await E(o,e),P(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:A(r),options:n}},getFile:async(t,a={})=>{ae("getFile","fileId",t);const r="/api/customers/file/{fileId}".replace("{fileId}",encodeURIComponent(String(t))),s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await E(i,e),P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:A(s),options:o}},getMeetingFile:async(t,a={})=>{ae("getMeetingFile","fileId",t);const r="/api/customers/meeting/file/{fileId}".replace("{fileId}",encodeURIComponent(String(t))),s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await E(i,e),P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:A(s),options:o}},joinCoBrowse:async(t,a={})=>{const r="/api/customers/join-co-browse",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},leaveMeeting:async(t={})=>{const a="/api/customers/meeting/leave",r=new URL(a,w);let s;e&&(s=e.baseOptions);const n={method:"POST",...s,...t},o={},i={};await E(o,e),P(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:A(r),options:n}},loginCustomer:async(t={})=>{const a="/api/customers/login",r=new URL(a,w);let s;e&&(s=e.baseOptions);const n={method:"POST",...s,...t},o={},i={};await E(o,e),P(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:A(r),options:n}},onCoBrowseInvitationReceived:async(t={})=>{const a="/api/customers/received-invitation",r=new URL(a,w);let s;e&&(s=e.baseOptions);const n={method:"POST",...s,...t},o={},i={};await E(o,e),P(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:A(r),options:n}},onConnectFailed:async(t={})=>{const a="/api/customers/connect-failed",r=new URL(a,w);let s;e&&(s=e.baseOptions);const n={method:"POST",...s,...t},o={},i={};await E(o,e),P(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:A(r),options:n}},onFullSnapshotSent:async(t={})=>{const a="/api/customers/full-snapshot-sent",r=new URL(a,w);let s;e&&(s=e.baseOptions);const n={method:"POST",...s,...t},o={},i={};await E(o,e),P(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:A(r),options:n}},registerCustomer:async(t,a={})=>{const r="/api/customers/register",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},registerCustomerWithSignedIdentity:async(t,a={})=>{const r="/api/customers/register-signed",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},registerLobby:async(t,a={})=>{const r="/api/customers/lobby/register",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},requestSupport:async(t,a={})=>{const r="/api/customers/request-support",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},resizeWindow:async(t,a={})=>{const r="/api/customers/resize-window",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},respondToMeetingInvitation:async(t,a={})=>{const r="/api/customers/meeting/respond",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),t!==void 0&&(l.accept=t),P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:A(s),options:o}},updateAnonymousDetails:async(t,a={})=>{const r="/api/customers/update-anonymous-details",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},updateMeetingParticipant:async(t,a={})=>{const r="/api/customers/meeting/update-participant",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},updateParticipant:async(t,a={})=>{const r="/api/customers/update-participant",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},updateParticipantRTC:async(t,a={})=>{const r="/api/customers/update-participant-rtc",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},uploadFile:async(t,a={})=>{const r="/api/customers/file",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={},c=new(e&&e.formDataCtor||FormData);await E(i,e),t!==void 0&&c.append("file",t),i["Content-Type"]="multipart/form-data",P(s,l);let d=n&&n.headers?n.headers:{};return o.headers={...i,...d,...a.headers},o.data=c,{url:A(s),options:o}},uploadMeetingFile:async(t,a={})=>{const r="/api/customers/meeting/file",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={},c=new(e&&e.formDataCtor||FormData);await E(i,e),t!==void 0&&c.append("file",t),i["Content-Type"]="multipart/form-data",P(s,l);let d=n&&n.headers?n.headers:{};return o.headers={...i,...d,...a.headers},o.data=c,{url:A(s),options:o}}}},we=function(e){const t=fv(e);return{async acceptCoBrowse(a,r){const s=await t.acceptCoBrowse(a,r);return V(s,u,v,e)},async addFeedback(a,r,s){const n=await t.addFeedback(a,r,s);return V(n,u,v,e)},async cancelSupportRequest(a){const r=await t.cancelSupportRequest(a);return V(r,u,v,e)},async changeWindowPosition(a,r){const s=await t.changeWindowPosition(a,r);return V(s,u,v,e)},async declineCoBrowse(a,r){const s=await t.declineCoBrowse(a,r);return V(s,u,v,e)},async deleteFile(a,r){const s=await t.deleteFile(a,r);return V(s,u,v,e)},async deleteMeetingFile(a,r){const s=await t.deleteMeetingFile(a,r);return V(s,u,v,e)},async endCoBrowse(a){const r=await t.endCoBrowse(a);return V(r,u,v,e)},async generateIdentificationCode(a){const r=await t.generateIdentificationCode(a);return V(r,u,v,e)},async getFile(a,r){const s=await t.getFile(a,r);return V(s,u,v,e)},async getMeetingFile(a,r){const s=await t.getMeetingFile(a,r);return V(s,u,v,e)},async joinCoBrowse(a,r){const s=await t.joinCoBrowse(a,r);return V(s,u,v,e)},async leaveMeeting(a){const r=await t.leaveMeeting(a);return V(r,u,v,e)},async loginCustomer(a){const r=await t.loginCustomer(a);return V(r,u,v,e)},async onCoBrowseInvitationReceived(a){const r=await t.onCoBrowseInvitationReceived(a);return V(r,u,v,e)},async onConnectFailed(a){const r=await t.onConnectFailed(a);return V(r,u,v,e)},async onFullSnapshotSent(a){const r=await t.onFullSnapshotSent(a);return V(r,u,v,e)},async registerCustomer(a,r){const s=await t.registerCustomer(a,r);return V(s,u,v,e)},async registerCustomerWithSignedIdentity(a,r){const s=await t.registerCustomerWithSignedIdentity(a,r);return V(s,u,v,e)},async registerLobby(a,r){const s=await t.registerLobby(a,r);return V(s,u,v,e)},async requestSupport(a,r){const s=await t.requestSupport(a,r);return V(s,u,v,e)},async resizeWindow(a,r){const s=await t.resizeWindow(a,r);return V(s,u,v,e)},async respondToMeetingInvitation(a,r){const s=await t.respondToMeetingInvitation(a,r);return V(s,u,v,e)},async updateAnonymousDetails(a,r){const s=await t.updateAnonymousDetails(a,r);return V(s,u,v,e)},async updateMeetingParticipant(a,r){const s=await t.updateMeetingParticipant(a,r);return V(s,u,v,e)},async updateParticipant(a,r){const s=await t.updateParticipant(a,r);return V(s,u,v,e)},async updateParticipantRTC(a,r){const s=await t.updateParticipantRTC(a,r);return V(s,u,v,e)},async uploadFile(a,r){const s=await t.uploadFile(a,r);return V(s,u,v,e)},async uploadMeetingFile(a,r){const s=await t.uploadMeetingFile(a,r);return V(s,u,v,e)}}};class gv extends at{acceptCoBrowse(t,a){return we(this.configuration).acceptCoBrowse(t,a).then(r=>r(this.axios,this.basePath))}addFeedback(t,a,r){return we(this.configuration).addFeedback(t,a,r).then(s=>s(this.axios,this.basePath))}cancelSupportRequest(t){return we(this.configuration).cancelSupportRequest(t).then(a=>a(this.axios,this.basePath))}changeWindowPosition(t,a){return we(this.configuration).changeWindowPosition(t,a).then(r=>r(this.axios,this.basePath))}declineCoBrowse(t,a){return we(this.configuration).declineCoBrowse(t,a).then(r=>r(this.axios,this.basePath))}deleteFile(t,a){return we(this.configuration).deleteFile(t,a).then(r=>r(this.axios,this.basePath))}deleteMeetingFile(t,a){return we(this.configuration).deleteMeetingFile(t,a).then(r=>r(this.axios,this.basePath))}endCoBrowse(t){return we(this.configuration).endCoBrowse(t).then(a=>a(this.axios,this.basePath))}generateIdentificationCode(t){return we(this.configuration).generateIdentificationCode(t).then(a=>a(this.axios,this.basePath))}getFile(t,a){return we(this.configuration).getFile(t,a).then(r=>r(this.axios,this.basePath))}getMeetingFile(t,a){return we(this.configuration).getMeetingFile(t,a).then(r=>r(this.axios,this.basePath))}joinCoBrowse(t,a){return we(this.configuration).joinCoBrowse(t,a).then(r=>r(this.axios,this.basePath))}leaveMeeting(t){return we(this.configuration).leaveMeeting(t).then(a=>a(this.axios,this.basePath))}loginCustomer(t){return we(this.configuration).loginCustomer(t).then(a=>a(this.axios,this.basePath))}onCoBrowseInvitationReceived(t){return we(this.configuration).onCoBrowseInvitationReceived(t).then(a=>a(this.axios,this.basePath))}onConnectFailed(t){return we(this.configuration).onConnectFailed(t).then(a=>a(this.axios,this.basePath))}onFullSnapshotSent(t){return we(this.configuration).onFullSnapshotSent(t).then(a=>a(this.axios,this.basePath))}registerCustomer(t,a){return we(this.configuration).registerCustomer(t,a).then(r=>r(this.axios,this.basePath))}registerCustomerWithSignedIdentity(t,a){return we(this.configuration).registerCustomerWithSignedIdentity(t,a).then(r=>r(this.axios,this.basePath))}registerLobby(t,a){return we(this.configuration).registerLobby(t,a).then(r=>r(this.axios,this.basePath))}requestSupport(t,a){return we(this.configuration).requestSupport(t,a).then(r=>r(this.axios,this.basePath))}resizeWindow(t,a){return we(this.configuration).resizeWindow(t,a).then(r=>r(this.axios,this.basePath))}respondToMeetingInvitation(t,a){return we(this.configuration).respondToMeetingInvitation(t,a).then(r=>r(this.axios,this.basePath))}updateAnonymousDetails(t,a){return we(this.configuration).updateAnonymousDetails(t,a).then(r=>r(this.axios,this.basePath))}updateMeetingParticipant(t,a){return we(this.configuration).updateMeetingParticipant(t,a).then(r=>r(this.axios,this.basePath))}updateParticipant(t,a){return we(this.configuration).updateParticipant(t,a).then(r=>r(this.axios,this.basePath))}updateParticipantRTC(t,a){return we(this.configuration).updateParticipantRTC(t,a).then(r=>r(this.axios,this.basePath))}uploadFile(t,a){return we(this.configuration).uploadFile(t,a).then(r=>r(this.axios,this.basePath))}uploadMeetingFile(t,a){return we(this.configuration).uploadMeetingFile(t,a).then(r=>r(this.axios,this.basePath))}}const Ov=function(e){return{getMeeting:async(t={})=>{const a="/api/customers/meeting-window/meeting",r=new URL(a,w);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await E(o,e),P(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:A(r),options:n}},leaveMeeting:async(t={})=>{const a="/api/customers/meeting-window/leave-meeting",r=new URL(a,w);let s;e&&(s=e.baseOptions);const n={method:"POST",...s,...t},o={},i={};await E(o,e),P(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:A(r),options:n}},register:async(t,a={})=>{const r="/api/customers/meeting-window/register",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},updateParticipant:async(t,a={})=>{const r="/api/customers/meeting-window/update-participant",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}}}},Ps=function(e){const t=Ov(e);return{async getMeeting(a){const r=await t.getMeeting(a);return V(r,u,v,e)},async leaveMeeting(a){const r=await t.leaveMeeting(a);return V(r,u,v,e)},async register(a,r){const s=await t.register(a,r);return V(s,u,v,e)},async updateParticipant(a,r){const s=await t.updateParticipant(a,r);return V(s,u,v,e)}}};class bv extends at{getMeeting(t){return Ps(this.configuration).getMeeting(t).then(a=>a(this.axios,this.basePath))}leaveMeeting(t){return Ps(this.configuration).leaveMeeting(t).then(a=>a(this.axios,this.basePath))}register(t,a){return Ps(this.configuration).register(t,a).then(r=>r(this.axios,this.basePath))}updateParticipant(t,a){return Ps(this.configuration).updateParticipant(t,a).then(r=>r(this.axios,this.basePath))}}const yv=function(e){return{getBooleanFlag:async(t,a={})=>{const r="/api/flags",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};t!==void 0&&(l.flagName=t),P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:A(s),options:o}}}},vv=function(e){const t=yv(e);return{async getBooleanFlag(a,r){const s=await t.getBooleanFlag(a,r);return V(s,u,v,e)}}};class wv extends at{getBooleanFlag(t,a){return vv(this.configuration).getBooleanFlag(t,a).then(r=>r(this.axios,this.basePath))}}const Pv=function(e){return{increment:async(t,a,r={})=>{ae("increment","metric",t);const s="/api/metrics/{metric}/increment".replace("{metric}",encodeURIComponent(String(t))),n=new URL(s,w);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};l["Content-Type"]="application/json",P(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=re(a,i,e),{url:A(n),options:i}}}},Av=function(e){const t=Pv(e);return{async increment(a,r,s){const n=await t.increment(a,r,s);return V(n,u,v,e)}}};class Vv extends at{increment(t,a,r){return Av(this.configuration).increment(t,a,r).then(s=>s(this.axios,this.basePath))}}const Ev=function(e){return{getCoBrowseWindowConfig:async(t,a={})=>{ae("getCoBrowseWindowConfig","organisationId",t);const r="/api/organisations/{organisationId}/config/co-browse-window".replace("{organisationId}",encodeURIComponent(String(t))),s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={};P(s,{});let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:A(s),options:o}},getDashboardConfig:async(t,a={})=>{ae("getDashboardConfig","organisationId",t);const r="/api/organisations/{organisationId}/config/dashboard".replace("{organisationId}",encodeURIComponent(String(t))),s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await E(i,e),P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:A(s),options:o}},getLoaderConfig:async(t,a,r={})=>{ae("getLoaderConfig","organisationId",t);const s="/api/organisations/{organisationId}/config/sdk-loader".replace("{organisationId}",encodeURIComponent(String(t))),n=new URL(s,w);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...r},l={},c={};a!==void 0&&(c.component=a),P(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:A(n),options:i}},getSdkConfig:async(t,a={})=>{ae("getSdkConfig","organisationId",t);const r="/api/organisations/{organisationId}/config/sdk".replace("{organisationId}",encodeURIComponent(String(t))),s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={};P(s,{});let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:A(s),options:o}}}},As=function(e){const t=Ev(e);return{async getCoBrowseWindowConfig(a,r){const s=await t.getCoBrowseWindowConfig(a,r);return V(s,u,v,e)},async getDashboardConfig(a,r){const s=await t.getDashboardConfig(a,r);return V(s,u,v,e)},async getLoaderConfig(a,r,s){const n=await t.getLoaderConfig(a,r,s);return V(n,u,v,e)},async getSdkConfig(a,r){const s=await t.getSdkConfig(a,r);return V(s,u,v,e)}}};let Rv=class extends at{getCoBrowseWindowConfig(t,a){return As(this.configuration).getCoBrowseWindowConfig(t,a).then(r=>r(this.axios,this.basePath))}getDashboardConfig(t,a){return As(this.configuration).getDashboardConfig(t,a).then(r=>r(this.axios,this.basePath))}getLoaderConfig(t,a,r){return As(this.configuration).getLoaderConfig(t,a,r).then(s=>s(this.axios,this.basePath))}getSdkConfig(t,a){return As(this.configuration).getSdkConfig(t,a).then(r=>r(this.axios,this.basePath))}};const Sv=function(e){return{getConnectedIntegrations:async(t={})=>{const a="/api/organisations-integrations/connected",r=new URL(a,w);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await E(o,e),P(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:A(r),options:n}},getMappedFields:async(t,a={})=>{ae("getMappedFields","integration",t);const r="/api/organisations-integrations/mappings/{integration}".replace("{integration}",encodeURIComponent(String(t))),s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await E(i,e),P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:A(s),options:o}},updateMappings:async(t,a,r={})=>{ae("updateMappings","integration",t);const s="/api/organisations-integrations/mappings/{integration}/update".replace("{integration}",encodeURIComponent(String(t))),n=new URL(s,w);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await E(l,e),l["Content-Type"]="application/json",P(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=re(a,i,e),{url:A(n),options:i}}}},no=function(e){const t=Sv(e);return{async getConnectedIntegrations(a){const r=await t.getConnectedIntegrations(a);return V(r,u,v,e)},async getMappedFields(a,r){const s=await t.getMappedFields(a,r);return V(s,u,v,e)},async updateMappings(a,r,s){const n=await t.updateMappings(a,r,s);return V(n,u,v,e)}}};class Tv extends at{getConnectedIntegrations(t){return no(this.configuration).getConnectedIntegrations(t).then(a=>a(this.axios,this.basePath))}getMappedFields(t,a){return no(this.configuration).getMappedFields(t,a).then(r=>r(this.axios,this.basePath))}updateMappings(t,a,r){return no(this.configuration).updateMappings(t,a,r).then(s=>s(this.axios,this.basePath))}}const Cv=function(e){return{updateOrganisationConfig:async(t,a,r={})=>{ae("updateOrganisationConfig","organisationId",t);const s="/api/super-admin/organisations/{organisationId}/config".replace("{organisationId}",encodeURIComponent(String(t))),n=new URL(s,w);let o;e&&(o=e.baseOptions);const i={method:"PUT",...o,...r},l={},c={};await E(l,e),l["Content-Type"]="application/json",P(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=re(a,i,e),{url:A(n),options:i}}}},Iv=function(e){const t=Cv(e);return{async updateOrganisationConfig(a,r,s){const n=await t.updateOrganisationConfig(a,r,s);return V(n,u,v,e)}}};let Uv=class extends at{updateOrganisationConfig(t,a,r){return Iv(this.configuration).updateOrganisationConfig(t,a,r).then(s=>s(this.axios,this.basePath))}};const xv=function(e){return{getComponentVersion:async(t,a={})=>{ae("getComponentVersion","component",t);const r="/api/ui/component/{component}/version".replace("{component}",encodeURIComponent(String(t))),s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={};P(s,{});let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:A(s),options:o}},getServerTime:async(t={})=>{const a="/api/ui/server-time",r=new URL(a,w);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={};P(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:A(r),options:n}},setComponentVersion:async(t,a,r,s={})=>{ae("setComponentVersion","component",t),ae("setComponentVersion","version",a);const n="/api/ui/component/{component}/version/{version}".replace("{component}",encodeURIComponent(String(t))).replace("{version}",encodeURIComponent(String(a))),o=new URL(n,w);let i;e&&(i=e.baseOptions);const l={method:"PUT",...i,...s},c={},d={};r!==void 0&&(d.forceRefresh=r),P(o,d);let h=i&&i.headers?i.headers:{};return l.headers={...c,...h,...s.headers},{url:A(o),options:l}}}},oo=function(e){const t=xv(e);return{async getComponentVersion(a,r){const s=await t.getComponentVersion(a,r);return V(s,u,v,e)},async getServerTime(a){const r=await t.getServerTime(a);return V(r,u,v,e)},async setComponentVersion(a,r,s,n){const o=await t.setComponentVersion(a,r,s,n);return V(o,u,v,e)}}};class _v extends at{getComponentVersion(t,a){return oo(this.configuration).getComponentVersion(t,a).then(r=>r(this.axios,this.basePath))}getServerTime(t){return oo(this.configuration).getServerTime(t).then(a=>a(this.axios,this.basePath))}setComponentVersion(t,a,r,s){return oo(this.configuration).setComponentVersion(t,a,r,s).then(n=>n(this.axios,this.basePath))}}const Fv=function(e){return{getMeeting:async(t={})=>{const a="/api/visitors/meeting",r=new URL(a,w);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await E(o,e),P(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:A(r),options:n}},joinCoBrowse:async(t,a={})=>{const r="/api/visitors/join-co-browse",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},joinMeeting:async(t,a={})=>{const r="/api/visitors/join-meeting",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},leaveMeeting:async(t={})=>{const a="/api/visitors/leave-meeting",r=new URL(a,w);let s;e&&(s=e.baseOptions);const n={method:"POST",...s,...t},o={},i={};await E(o,e),P(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:A(r),options:n}},register:async(t,a={})=>{const r="/api/visitors/register",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}},updateParticipant:async(t,a={})=>{const r="/api/visitors/update-participant",s=new URL(r,w);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await E(i,e),i["Content-Type"]="application/json",P(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=re(t,o,e),{url:A(s),options:o}}}},Sa=function(e){const t=Fv(e);return{async getMeeting(a){const r=await t.getMeeting(a);return V(r,u,v,e)},async joinCoBrowse(a,r){const s=await t.joinCoBrowse(a,r);return V(s,u,v,e)},async joinMeeting(a,r){const s=await t.joinMeeting(a,r);return V(s,u,v,e)},async leaveMeeting(a){const r=await t.leaveMeeting(a);return V(r,u,v,e)},async register(a,r){const s=await t.register(a,r);return V(s,u,v,e)},async updateParticipant(a,r){const s=await t.updateParticipant(a,r);return V(s,u,v,e)}}};class Lv extends at{getMeeting(t){return Sa(this.configuration).getMeeting(t).then(a=>a(this.axios,this.basePath))}joinCoBrowse(t,a){return Sa(this.configuration).joinCoBrowse(t,a).then(r=>r(this.axios,this.basePath))}joinMeeting(t,a){return Sa(this.configuration).joinMeeting(t,a).then(r=>r(this.axios,this.basePath))}leaveMeeting(t){return Sa(this.configuration).leaveMeeting(t).then(a=>a(this.axios,this.basePath))}register(t,a){return Sa(this.configuration).register(t,a).then(r=>r(this.axios,this.basePath))}updateParticipant(t,a){return Sa(this.configuration).updateParticipant(t,a).then(r=>r(this.axios,this.basePath))}}const U="http://localhost".replace(/\/+$/,"");let Je=class{constructor(t,a=U,r=u){Pe(this,"configuration");this.basePath=a,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)}},Dv=class extends Error{constructor(a,r){super(r);Pe(this,"name","RequiredError");this.field=a}};const x="https://example.com",T=function(e,t,a){if(a==null)throw new Dv(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},z=async function(e,t){if(t&&t.accessToken){const a=typeof t.accessToken=="function"?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+a}},_=function(e,...t){const a=new URLSearchParams(e.search);for(const r of t)for(const s in r)if(Array.isArray(r[s])){a.delete(s);for(const n of r[s])a.append(s,n)}else a.set(s,r[s]);e.search=a.toString()},ce=function(e,t,a){const r=typeof e!="string";return(r&&a&&a.isJsonMime?a.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(e!==void 0?e:{}):e||""},F=function(e){return e.pathname+e.search+e.hash},L=function(e,t,a,r){return(s=t,n=a)=>{const o={...e.options,url:((r==null?void 0:r.basePath)||n)+e.url};return s.request(o)}},Mv=function(e){return{getAllConversations:async(t,a={})=>{T("getAllConversations","getAllAnalyticsRequestDto",t);const r="/analytics/all-conversations",s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};i["Content-Type"]="application/json",_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=ce(t,o,e),{url:F(s),options:o}}}},Nv=function(e){const t=Mv(e);return{async getAllConversations(a,r){const s=await t.getAllConversations(a,r);return L(s,u,U,e)}}};class jv extends Je{getAllConversations(t,a){return Nv(this.configuration).getAllConversations(t,a).then(r=>r(this.axios,this.basePath))}}const kv=function(e){return{applyCoaching:async(t,a={})=>{T("applyCoaching","applyCoachingRequestDto",t);const r="/coaching",s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await z(i,e),i["Content-Type"]="application/json",_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=ce(t,o,e),{url:F(s),options:o}},previewCoaching:async(t,a={})=>{T("previewCoaching","previewCoachingRequestDto",t);const r="/coaching/preview",s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await z(i,e),i["Content-Type"]="application/json",_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=ce(t,o,e),{url:F(s),options:o}}}},Ic=function(e){const t=kv(e);return{async applyCoaching(a,r){const s=await t.applyCoaching(a,r);return L(s,u,U,e)},async previewCoaching(a,r){const s=await t.previewCoaching(a,r);return L(s,u,U,e)}}};class Bv extends Je{applyCoaching(t,a){return Ic(this.configuration).applyCoaching(t,a).then(r=>r(this.axios,this.basePath))}previewCoaching(t,a){return Ic(this.configuration).previewCoaching(t,a).then(r=>r(this.axios,this.basePath))}}const Uc=function(e){return{createConversation:async(t,a={})=>{T("createConversation","createConversationDto",t);const r="/conversations",s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await z(i,e),i["Content-Type"]="application/json",_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=ce(t,o,e),{url:F(s),options:o}},getConversation:async(t,a={})=>{T("getConversation","id",t);const r="/conversations/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await z(i,e),_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:F(s),options:o}},listConversations:async(t,a,r,s={})=>{const n="/conversations",o=new URL(n,x);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...s},c={},d={};await z(c,e),t!==void 0&&(d.cursor=t),a!==void 0&&(d.limit=a),r!==void 0&&(d.direction=r),_(o,d);let h=i&&i.headers?i.headers:{};return l.headers={...c,...h,...s.headers},{url:F(o),options:l}},listMessages:async(t,a,r,s,n={})=>{T("listMessages","id",t);const o="/conversations/{id}/messages".replace("{id}",encodeURIComponent(String(t))),i=new URL(o,x);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...n},d={},h={};await z(d,e),a!==void 0&&(h.cursor=a),r!==void 0&&(h.limit=r),s!==void 0&&(h.direction=s),_(i,h);let m=l&&l.headers?l.headers:{};return c.headers={...d,...m,...n.headers},{url:F(i),options:c}},replayWithToolPrompt:async(t,a,r={})=>{T("replayWithToolPrompt","id",t),T("replayWithToolPrompt","replayWithToolPromptDto",a);const s="/conversations/{id}/playground/replay-with-tool-prompt".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,x);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await z(l,e),l["Content-Type"]="application/json",_(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=ce(a,i,e),{url:F(n),options:i}},sendMessage:async(t,a,r={})=>{T("sendMessage","id",t),T("sendMessage","sendMessageDto",a);const s="/conversations/{id}/messages".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,x);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await z(l,e),l["Content-Type"]="application/json",_(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=ce(a,i,e),{url:F(n),options:i}},streamConversationEvents:async(t,a={})=>{T("streamConversationEvents","id",t);const r="/conversations/{id}/events".replace("{id}",encodeURIComponent(String(t))),s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await z(i,e),_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:F(s),options:o}},submitMessageFeedback:async(t,a,r,s={})=>{T("submitMessageFeedback","conversationId",t),T("submitMessageFeedback","messageId",a),T("submitMessageFeedback","submitMessageFeedbackDto",r);const n="/conversations/{conversationId}/messages/{messageId}/feedback".replace("{conversationId}",encodeURIComponent(String(t))).replace("{messageId}",encodeURIComponent(String(a))),o=new URL(n,x);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...s},c={},d={};await z(c,e),c["Content-Type"]="application/json",_(o,d);let h=i&&i.headers?i.headers:{};return l.headers={...c,...h,...s.headers},l.data=ce(r,l,e),{url:F(o),options:l}},triggerVisualGuidanceForMessage:async(t,a,r,s={})=>{T("triggerVisualGuidanceForMessage","conversationId",t),T("triggerVisualGuidanceForMessage","messageId",a),T("triggerVisualGuidanceForMessage","triggerVisualGuidanceDto",r);const n="/conversations/{conversationId}/messages/{messageId}/guide".replace("{conversationId}",encodeURIComponent(String(t))).replace("{messageId}",encodeURIComponent(String(a))),o=new URL(n,x);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...s},c={},d={};await z(c,e),c["Content-Type"]="application/json",_(o,d);let h=i&&i.headers?i.headers:{};return l.headers={...c,...h,...s.headers},l.data=ce(r,l,e),{url:F(o),options:l}},triggerVisualGuidanceForQuery:async(t,a,r={})=>{T("triggerVisualGuidanceForQuery","conversationId",t),T("triggerVisualGuidanceForQuery","triggerVisualGuidanceForQueryDto",a);const s="/conversations/{conversationId}/guide".replace("{conversationId}",encodeURIComponent(String(t))),n=new URL(s,x);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await z(l,e),l["Content-Type"]="application/json",_(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=ce(a,i,e),{url:F(n),options:i}}}},vt=function(e){const t=Uc(e);return{async createConversation(a,r){const s=await t.createConversation(a,r);return L(s,u,U,e)},async getConversation(a,r){const s=await t.getConversation(a,r);return L(s,u,U,e)},async listConversations(a,r,s,n){const o=await t.listConversations(a,r,s,n);return L(o,u,U,e)},async listMessages(a,r,s,n,o){const i=await t.listMessages(a,r,s,n,o);return L(i,u,U,e)},async replayWithToolPrompt(a,r,s){const n=await t.replayWithToolPrompt(a,r,s);return L(n,u,U,e)},async sendMessage(a,r,s){const n=await t.sendMessage(a,r,s);return L(n,u,U,e)},async streamConversationEvents(a,r){const s=await t.streamConversationEvents(a,r);return L(s,u,U,e)},async submitMessageFeedback(a,r,s,n){const o=await t.submitMessageFeedback(a,r,s,n);return L(o,u,U,e)},async triggerVisualGuidanceForMessage(a,r,s,n){const o=await t.triggerVisualGuidanceForMessage(a,r,s,n);return L(o,u,U,e)},async triggerVisualGuidanceForQuery(a,r,s){const n=await t.triggerVisualGuidanceForQuery(a,r,s);return L(n,u,U,e)}}};class xc extends Je{createConversation(t,a){return vt(this.configuration).createConversation(t,a).then(r=>r(this.axios,this.basePath))}getConversation(t,a){return vt(this.configuration).getConversation(t,a).then(r=>r(this.axios,this.basePath))}listConversations(t,a,r,s){return vt(this.configuration).listConversations(t,a,r,s).then(n=>n(this.axios,this.basePath))}listMessages(t,a,r,s,n){return vt(this.configuration).listMessages(t,a,r,s,n).then(o=>o(this.axios,this.basePath))}replayWithToolPrompt(t,a,r){return vt(this.configuration).replayWithToolPrompt(t,a,r).then(s=>s(this.axios,this.basePath))}sendMessage(t,a,r){return vt(this.configuration).sendMessage(t,a,r).then(s=>s(this.axios,this.basePath))}streamConversationEvents(t,a){return vt(this.configuration).streamConversationEvents(t,a).then(r=>r(this.axios,this.basePath))}submitMessageFeedback(t,a,r,s){return vt(this.configuration).submitMessageFeedback(t,a,r,s).then(n=>n(this.axios,this.basePath))}triggerVisualGuidanceForMessage(t,a,r,s){return vt(this.configuration).triggerVisualGuidanceForMessage(t,a,r,s).then(n=>n(this.axios,this.basePath))}triggerVisualGuidanceForQuery(t,a,r){return vt(this.configuration).triggerVisualGuidanceForQuery(t,a,r).then(s=>s(this.axios,this.basePath))}}const $v=function(e){return{applyCoaching:async(t,a={})=>{T("applyCoaching","applyCoachingRequestDto",t);const r="/dashboard-coaching",s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await z(i,e),i["Content-Type"]="application/json",_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=ce(t,o,e),{url:F(s),options:o}},createEntry:async(t,a={})=>{T("createEntry","createCoachingEntryDto",t);const r="/dashboard-coaching/entries",s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await z(i,e),i["Content-Type"]="application/json",_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=ce(t,o,e),{url:F(s),options:o}},deleteEntry:async(t,a={})=>{T("deleteEntry","id",t);const r="/dashboard-coaching/entries/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"DELETE",...n,...a},i={},l={};await z(i,e),_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:F(s),options:o}},getEntry:async(t,a={})=>{T("getEntry","id",t);const r="/dashboard-coaching/entries/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await z(i,e),_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:F(s),options:o}},listEntries:async(t={})=>{const a="/dashboard-coaching/entries",r=new URL(a,x);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await z(o,e),_(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:F(r),options:n}},previewCoaching:async(t,a={})=>{T("previewCoaching","previewCoachingRequestDto",t);const r="/dashboard-coaching/preview",s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await z(i,e),i["Content-Type"]="application/json",_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=ce(t,o,e),{url:F(s),options:o}},updateEntry:async(t,a,r={})=>{T("updateEntry","id",t),T("updateEntry","updateCoachingEntryDto",a);const s="/dashboard-coaching/entries/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,x);let o;e&&(o=e.baseOptions);const i={method:"PUT",...o,...r},l={},c={};await z(l,e),l["Content-Type"]="application/json",_(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=ce(a,i,e),{url:F(n),options:i}}}},ca=function(e){const t=$v(e);return{async applyCoaching(a,r){const s=await t.applyCoaching(a,r);return L(s,u,U,e)},async createEntry(a,r){const s=await t.createEntry(a,r);return L(s,u,U,e)},async deleteEntry(a,r){const s=await t.deleteEntry(a,r);return L(s,u,U,e)},async getEntry(a,r){const s=await t.getEntry(a,r);return L(s,u,U,e)},async listEntries(a){const r=await t.listEntries(a);return L(r,u,U,e)},async previewCoaching(a,r){const s=await t.previewCoaching(a,r);return L(s,u,U,e)},async updateEntry(a,r,s){const n=await t.updateEntry(a,r,s);return L(n,u,U,e)}}};class Hv extends Je{applyCoaching(t,a){return ca(this.configuration).applyCoaching(t,a).then(r=>r(this.axios,this.basePath))}createEntry(t,a){return ca(this.configuration).createEntry(t,a).then(r=>r(this.axios,this.basePath))}deleteEntry(t,a){return ca(this.configuration).deleteEntry(t,a).then(r=>r(this.axios,this.basePath))}getEntry(t,a){return ca(this.configuration).getEntry(t,a).then(r=>r(this.axios,this.basePath))}listEntries(t){return ca(this.configuration).listEntries(t).then(a=>a(this.axios,this.basePath))}previewCoaching(t,a){return ca(this.configuration).previewCoaching(t,a).then(r=>r(this.axios,this.basePath))}updateEntry(t,a,r){return ca(this.configuration).updateEntry(t,a,r).then(s=>s(this.axios,this.basePath))}}const qv=function(e){return{addConnector:async(t,a={})=>{T("addConnector","addConnectorDto",t);const r="/dashboard-connections/connectors",s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await z(i,e),i["Content-Type"]="application/json",_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=ce(t,o,e),{url:F(s),options:o}},deleteConnector:async(t,a,r={})=>{T("deleteConnector","id",t),T("deleteConnector","type",a);const s="/dashboard-connections/connectors/{id}/{type}".replace("{id}",encodeURIComponent(String(t))).replace("{type}",encodeURIComponent(String(a))),n=new URL(s,x);let o;e&&(o=e.baseOptions);const i={method:"DELETE",...o,...r},l={},c={};await z(l,e),_(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:F(n),options:i}},getConnector:async(t,a,r={})=>{T("getConnector","id",t),T("getConnector","type",a);const s="/dashboard-connections/connectors/{id}/{type}".replace("{id}",encodeURIComponent(String(t))).replace("{type}",encodeURIComponent(String(a))),n=new URL(s,x);let o;e&&(o=e.baseOptions);const i={method:"GET",...o,...r},l={},c={};await z(l,e),_(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},{url:F(n),options:i}},getNativeConnectorConfig:async(t,a={})=>{T("getNativeConnectorConfig","type",t);const r="/dashboard-connections/connectors/native/{type}/config".replace("{type}",encodeURIComponent(String(t))),s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await z(i,e),_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:F(s),options:o}},listConnectors:async(t,a={})=>{const r="/dashboard-connections/connectors",s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await z(i,e),t!==void 0&&(l.category=t),_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:F(s),options:o}},startAuth:async(t,a={})=>{T("startAuth","startAuthDto",t);const r="/dashboard-connections/auth/start",s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await z(i,e),i["Content-Type"]="application/json",_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=ce(t,o,e),{url:F(s),options:o}},startAuthV2:async(t,a={})=>{T("startAuthV2","startAuthV2Dto",t);const r="/dashboard-connections/auth/start/v2",s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await z(i,e),i["Content-Type"]="application/json",_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=ce(t,o,e),{url:F(s),options:o}},syncZendeskUserFields:async(t={})=>{const a="/dashboard-connections/connectors/zendesk/sync-user-fields",r=new URL(a,x);let s;e&&(s=e.baseOptions);const n={method:"POST",...s,...t},o={},i={};await z(o,e),_(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:F(r),options:n}},updateConnectionPermissions:async(t,a,r={})=>{T("updateConnectionPermissions","integrationType",t),T("updateConnectionPermissions","requestBody",a);const s="/dashboard-connections/connections/{integrationType}/permissions".replace("{integrationType}",encodeURIComponent(String(t))),n=new URL(s,x);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await z(l,e),l["Content-Type"]="application/json",_(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=ce(a,i,e),{url:F(n),options:i}},updateConnector:async(t,a,r,s={})=>{T("updateConnector","id",t),T("updateConnector","type",a),T("updateConnector","updateConnectorDto",r);const n="/dashboard-connections/connectors/{id}/{type}".replace("{id}",encodeURIComponent(String(t))).replace("{type}",encodeURIComponent(String(a))),o=new URL(n,x);let i;e&&(i=e.baseOptions);const l={method:"PATCH",...i,...s},c={},d={};await z(c,e),c["Content-Type"]="application/json",_(o,d);let h=i&&i.headers?i.headers:{};return l.headers={...c,...h,...s.headers},l.data=ce(r,l,e),{url:F(o),options:l}}}},wt=function(e){const t=qv(e);return{async addConnector(a,r){const s=await t.addConnector(a,r);return L(s,u,U,e)},async deleteConnector(a,r,s){const n=await t.deleteConnector(a,r,s);return L(n,u,U,e)},async getConnector(a,r,s){const n=await t.getConnector(a,r,s);return L(n,u,U,e)},async getNativeConnectorConfig(a,r){const s=await t.getNativeConnectorConfig(a,r);return L(s,u,U,e)},async listConnectors(a,r){const s=await t.listConnectors(a,r);return L(s,u,U,e)},async startAuth(a,r){const s=await t.startAuth(a,r);return L(s,u,U,e)},async startAuthV2(a,r){const s=await t.startAuthV2(a,r);return L(s,u,U,e)},async syncZendeskUserFields(a){const r=await t.syncZendeskUserFields(a);return L(r,u,U,e)},async updateConnectionPermissions(a,r,s){const n=await t.updateConnectionPermissions(a,r,s);return L(n,u,U,e)},async updateConnector(a,r,s,n){const o=await t.updateConnector(a,r,s,n);return L(o,u,U,e)}}};class Wv extends Je{addConnector(t,a){return wt(this.configuration).addConnector(t,a).then(r=>r(this.axios,this.basePath))}deleteConnector(t,a,r){return wt(this.configuration).deleteConnector(t,a,r).then(s=>s(this.axios,this.basePath))}getConnector(t,a,r){return wt(this.configuration).getConnector(t,a,r).then(s=>s(this.axios,this.basePath))}getNativeConnectorConfig(t,a){return wt(this.configuration).getNativeConnectorConfig(t,a).then(r=>r(this.axios,this.basePath))}listConnectors(t,a){return wt(this.configuration).listConnectors(t,a).then(r=>r(this.axios,this.basePath))}startAuth(t,a){return wt(this.configuration).startAuth(t,a).then(r=>r(this.axios,this.basePath))}startAuthV2(t,a){return wt(this.configuration).startAuthV2(t,a).then(r=>r(this.axios,this.basePath))}syncZendeskUserFields(t){return wt(this.configuration).syncZendeskUserFields(t).then(a=>a(this.axios,this.basePath))}updateConnectionPermissions(t,a,r){return wt(this.configuration).updateConnectionPermissions(t,a,r).then(s=>s(this.axios,this.basePath))}updateConnector(t,a,r,s){return wt(this.configuration).updateConnector(t,a,r,s).then(n=>n(this.axios,this.basePath))}}const Qv=function(e){return{deleteConfig:async(t,a={})=>{T("deleteConfig","type",t);const r="/dashboard-connectors/{type}".replace("{type}",encodeURIComponent(String(t))),s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"DELETE",...n,...a},i={},l={};await z(i,e),_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:F(s),options:o}},getConfig:async(t,a={})=>{T("getConfig","type",t);const r="/dashboard-connectors/{type}".replace("{type}",encodeURIComponent(String(t))),s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await z(i,e),_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:F(s),options:o}},listConfigs:async(t={})=>{const a="/dashboard-connectors",r=new URL(a,x);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await z(o,e),_(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:F(r),options:n}},upsertConfig:async(t,a,r={})=>{T("upsertConfig","type",t),T("upsertConfig","upsertConnectorConfigDto",a);const s="/dashboard-connectors/{type}".replace("{type}",encodeURIComponent(String(t))),n=new URL(s,x);let o;e&&(o=e.baseOptions);const i={method:"PUT",...o,...r},l={},c={};await z(l,e),l["Content-Type"]="application/json",_(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=ce(a,i,e),{url:F(n),options:i}}}},Vs=function(e){const t=Qv(e);return{async deleteConfig(a,r){const s=await t.deleteConfig(a,r);return L(s,u,U,e)},async getConfig(a,r){const s=await t.getConfig(a,r);return L(s,u,U,e)},async listConfigs(a){const r=await t.listConfigs(a);return L(r,u,U,e)},async upsertConfig(a,r,s){const n=await t.upsertConfig(a,r,s);return L(n,u,U,e)}}};class Gv extends Je{deleteConfig(t,a){return Vs(this.configuration).deleteConfig(t,a).then(r=>r(this.axios,this.basePath))}getConfig(t,a){return Vs(this.configuration).getConfig(t,a).then(r=>r(this.axios,this.basePath))}listConfigs(t){return Vs(this.configuration).listConfigs(t).then(a=>a(this.axios,this.basePath))}upsertConfig(t,a,r){return Vs(this.configuration).upsertConfig(t,a,r).then(s=>s(this.axios,this.basePath))}}const zv=function(e){return{getAll:async(t,a={})=>{T("getAll","getAllDashboardConversationsRequestDto",t);const r="/dashboard-conversations",s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};i["Content-Type"]="application/json",_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=ce(t,o,e),{url:F(s),options:o}},getById:async(t,a={})=>{T("getById","conversationId",t);const r="/dashboard-conversations/{conversationId}".replace("{conversationId}",encodeURIComponent(String(t))),s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={};_(s,{});let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:F(s),options:o}},getMetadata:async(t,a={})=>{T("getMetadata","conversationId",t);const r="/dashboard-conversations/{conversationId}/metadata".replace("{conversationId}",encodeURIComponent(String(t))),s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={};_(s,{});let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:F(s),options:o}},shareWith:async(t,a,r={})=>{T("shareWith","conversationId",t),T("shareWith","shareConversationRequestDto",a);const s="/dashboard-conversations/{conversationId}/share-with".replace("{conversationId}",encodeURIComponent(String(t))),n=new URL(s,x);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};l["Content-Type"]="application/json",_(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=ce(a,i,e),{url:F(n),options:i}}}},Es=function(e){const t=zv(e);return{async getAll(a,r){const s=await t.getAll(a,r);return L(s,u,U,e)},async getById(a,r){const s=await t.getById(a,r);return L(s,u,U,e)},async getMetadata(a,r){const s=await t.getMetadata(a,r);return L(s,u,U,e)},async shareWith(a,r,s){const n=await t.shareWith(a,r,s);return L(n,u,U,e)}}};class Yv extends Je{getAll(t,a){return Es(this.configuration).getAll(t,a).then(r=>r(this.axios,this.basePath))}getById(t,a){return Es(this.configuration).getById(t,a).then(r=>r(this.axios,this.basePath))}getMetadata(t,a){return Es(this.configuration).getMetadata(t,a).then(r=>r(this.axios,this.basePath))}shareWith(t,a,r){return Es(this.configuration).shareWith(t,a,r).then(s=>s(this.axios,this.basePath))}}const Jv=function(e){return{createPersona:async(t,a={})=>{T("createPersona","createPersonaDto",t);const r="/dashboard-personas",s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await z(i,e),i["Content-Type"]="application/json",_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=ce(t,o,e),{url:F(s),options:o}},deletePersona:async(t,a={})=>{T("deletePersona","personaId",t);const r="/dashboard-personas/{personaId}".replace("{personaId}",encodeURIComponent(String(t))),s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"DELETE",...n,...a},i={},l={};await z(i,e),_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:F(s),options:o}},listPersonas:async(t={})=>{const a="/dashboard-personas",r=new URL(a,x);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await z(o,e),_(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:F(r),options:n}},updatePersona:async(t,a,r={})=>{T("updatePersona","personaId",t),T("updatePersona","updatePersonaDto",a);const s="/dashboard-personas/{personaId}".replace("{personaId}",encodeURIComponent(String(t))),n=new URL(s,x);let o;e&&(o=e.baseOptions);const i={method:"PUT",...o,...r},l={},c={};await z(l,e),l["Content-Type"]="application/json",_(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=ce(a,i,e),{url:F(n),options:i}}}},Rs=function(e){const t=Jv(e);return{async createPersona(a,r){const s=await t.createPersona(a,r);return L(s,u,U,e)},async deletePersona(a,r){const s=await t.deletePersona(a,r);return L(s,u,U,e)},async listPersonas(a){const r=await t.listPersonas(a);return L(r,u,U,e)},async updatePersona(a,r,s){const n=await t.updatePersona(a,r,s);return L(n,u,U,e)}}};class Xv extends Je{createPersona(t,a){return Rs(this.configuration).createPersona(t,a).then(r=>r(this.axios,this.basePath))}deletePersona(t,a){return Rs(this.configuration).deletePersona(t,a).then(r=>r(this.axios,this.basePath))}listPersonas(t){return Rs(this.configuration).listPersonas(t).then(a=>a(this.axios,this.basePath))}updatePersona(t,a,r){return Rs(this.configuration).updatePersona(t,a,r).then(s=>s(this.axios,this.basePath))}}const Kv=function(e){return{getSettings:async(t={})=>{const a="/dashboard-settings",r=new URL(a,x);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await z(o,e),_(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:F(r),options:n}},upsertSettings:async(t,a={})=>{T("upsertSettings","upsertAISettingsDto",t);const r="/dashboard-settings",s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"PUT",...n,...a},i={},l={};await z(i,e),i["Content-Type"]="application/json",_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=ce(t,o,e),{url:F(s),options:o}}}},_c=function(e){const t=Kv(e);return{async getSettings(a){const r=await t.getSettings(a);return L(r,u,U,e)},async upsertSettings(a,r){const s=await t.upsertSettings(a,r);return L(s,u,U,e)}}};class Zv extends Je{getSettings(t){return _c(this.configuration).getSettings(t).then(a=>a(this.axios,this.basePath))}upsertSettings(t,a){return _c(this.configuration).upsertSettings(t,a).then(r=>r(this.axios,this.basePath))}}const ew=function(e){return{createConfiguration:async(t,a={})=>{T("createConfiguration","createEscalationConfigurationDto",t);const r="/escalation-configurations",s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};i["Content-Type"]="application/json",_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=ce(t,o,e),{url:F(s),options:o}},deleteConfiguration:async(t,a={})=>{T("deleteConfiguration","configurationId",t);const r="/escalation-configurations/{configurationId}".replace("{configurationId}",encodeURIComponent(String(t))),s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"DELETE",...n,...a},i={};_(s,{});let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:F(s),options:o}},generateZendeskApiBearer:async(t,a={})=>{T("generateZendeskApiBearer","configurationId",t);const r="/escalation-configurations/zendesk/{configurationId}/generate-api-bearer".replace("{configurationId}",encodeURIComponent(String(t))),s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={};_(s,{});let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:F(s),options:o}},getConfiguration:async(t={})=>{const a="/escalation-configurations",r=new URL(a,x);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={};_(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:F(r),options:n}},getCustomerProperties:async(t={})=>{const a="/escalation-configurations/customer-properties",r=new URL(a,x);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={};_(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:F(r),options:n}},getFreshchatChannelsAndGroups:async(t,a={})=>{T("getFreshchatChannelsAndGroups","getFreshchatChannelsAndGroupsBodyDto",t);const r="/escalation-configurations/freshchat/channels-and-groups",s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};i["Content-Type"]="application/json",_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=ce(t,o,e),{url:F(s),options:o}},getHubspotOwnersAndPipelines:async(t={})=>{const a="/escalation-configurations/hubspot/owners-and-pipelines",r=new URL(a,x);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={};_(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:F(r),options:n}},getZendeskAdminsAndAgents:async(t={})=>{const a="/escalation-configurations/zendesk/admins-and-agents",r=new URL(a,x);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={};_(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:F(r),options:n}},updateConfiguration:async(t,a,r={})=>{T("updateConfiguration","configurationId",t),T("updateConfiguration","updateEscalationConfigurationDto",a);const s="/escalation-configurations/{configurationId}".replace("{configurationId}",encodeURIComponent(String(t))),n=new URL(s,x);let o;e&&(o=e.baseOptions);const i={method:"PUT",...o,...r},l={},c={};l["Content-Type"]="application/json",_(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=ce(a,i,e),{url:F(n),options:i}}}},Ut=function(e){const t=ew(e);return{async createConfiguration(a,r){const s=await t.createConfiguration(a,r);return L(s,u,U,e)},async deleteConfiguration(a,r){const s=await t.deleteConfiguration(a,r);return L(s,u,U,e)},async generateZendeskApiBearer(a,r){const s=await t.generateZendeskApiBearer(a,r);return L(s,u,U,e)},async getConfiguration(a){const r=await t.getConfiguration(a);return L(r,u,U,e)},async getCustomerProperties(a){const r=await t.getCustomerProperties(a);return L(r,u,U,e)},async getFreshchatChannelsAndGroups(a,r){const s=await t.getFreshchatChannelsAndGroups(a,r);return L(s,u,U,e)},async getHubspotOwnersAndPipelines(a){const r=await t.getHubspotOwnersAndPipelines(a);return L(r,u,U,e)},async getZendeskAdminsAndAgents(a){const r=await t.getZendeskAdminsAndAgents(a);return L(r,u,U,e)},async updateConfiguration(a,r,s){const n=await t.updateConfiguration(a,r,s);return L(n,u,U,e)}}};class tw extends Je{createConfiguration(t,a){return Ut(this.configuration).createConfiguration(t,a).then(r=>r(this.axios,this.basePath))}deleteConfiguration(t,a){return Ut(this.configuration).deleteConfiguration(t,a).then(r=>r(this.axios,this.basePath))}generateZendeskApiBearer(t,a){return Ut(this.configuration).generateZendeskApiBearer(t,a).then(r=>r(this.axios,this.basePath))}getConfiguration(t){return Ut(this.configuration).getConfiguration(t).then(a=>a(this.axios,this.basePath))}getCustomerProperties(t){return Ut(this.configuration).getCustomerProperties(t).then(a=>a(this.axios,this.basePath))}getFreshchatChannelsAndGroups(t,a){return Ut(this.configuration).getFreshchatChannelsAndGroups(t,a).then(r=>r(this.axios,this.basePath))}getHubspotOwnersAndPipelines(t){return Ut(this.configuration).getHubspotOwnersAndPipelines(t).then(a=>a(this.axios,this.basePath))}getZendeskAdminsAndAgents(t){return Ut(this.configuration).getZendeskAdminsAndAgents(t).then(a=>a(this.axios,this.basePath))}updateConfiguration(t,a,r){return Ut(this.configuration).updateConfiguration(t,a,r).then(s=>s(this.axios,this.basePath))}}const aw=function(e){return{addAndRemoveEmails:async(t,a={})=>{T("addAndRemoveEmails","fullviewWidgetVisibilityUpdateEmailsDto",t);const r="/fullview-widget-visibility/add-and-remove-emails",s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};i["Content-Type"]="application/json",_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=ce(t,o,e),{url:F(s),options:o}},addEmail:async(t,a={})=>{T("addEmail","fullviewWidgetVisibilityAddRemoveEmailDto",t);const r="/fullview-widget-visibility/add-email",s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};i["Content-Type"]="application/json",_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=ce(t,o,e),{url:F(s),options:o}},getEmails:async(t={})=>{const a="/fullview-widget-visibility/get-emails",r=new URL(a,x);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={};_(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:F(r),options:n}},getVisibilityMode:async(t={})=>{const a="/fullview-widget-visibility/mode",r=new URL(a,x);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={};_(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:F(r),options:n}},removeEmail:async(t,a={})=>{T("removeEmail","fullviewWidgetVisibilityAddRemoveEmailDto",t);const r="/fullview-widget-visibility/remove-email",s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};i["Content-Type"]="application/json",_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=ce(t,o,e),{url:F(s),options:o}},updateVisibilityMode:async(t,a={})=>{T("updateVisibilityMode","updateVisibilityModeDto",t);const r="/fullview-widget-visibility/mode",s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};i["Content-Type"]="application/json",_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=ce(t,o,e),{url:F(s),options:o}}}},Ta=function(e){const t=aw(e);return{async addAndRemoveEmails(a,r){const s=await t.addAndRemoveEmails(a,r);return L(s,u,U,e)},async addEmail(a,r){const s=await t.addEmail(a,r);return L(s,u,U,e)},async getEmails(a){const r=await t.getEmails(a);return L(r,u,U,e)},async getVisibilityMode(a){const r=await t.getVisibilityMode(a);return L(r,u,U,e)},async removeEmail(a,r){const s=await t.removeEmail(a,r);return L(s,u,U,e)},async updateVisibilityMode(a,r){const s=await t.updateVisibilityMode(a,r);return L(s,u,U,e)}}};class rw extends Je{addAndRemoveEmails(t,a){return Ta(this.configuration).addAndRemoveEmails(t,a).then(r=>r(this.axios,this.basePath))}addEmail(t,a){return Ta(this.configuration).addEmail(t,a).then(r=>r(this.axios,this.basePath))}getEmails(t){return Ta(this.configuration).getEmails(t).then(a=>a(this.axios,this.basePath))}getVisibilityMode(t){return Ta(this.configuration).getVisibilityMode(t).then(a=>a(this.axios,this.basePath))}removeEmail(t,a){return Ta(this.configuration).removeEmail(t,a).then(r=>r(this.axios,this.basePath))}updateVisibilityMode(t,a){return Ta(this.configuration).updateVisibilityMode(t,a).then(r=>r(this.axios,this.basePath))}}const sw=function(e){return{abortSession:async(t,a={})=>{T("abortSession","sessionId",t);const r="/sessions/{sessionId}/abort".replace("{sessionId}",encodeURIComponent(String(t))),s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await z(i,e),_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:F(s),options:o}},generateStep:async(t,a,r={})=>{T("generateStep","sessionId",t),T("generateStep","generateStepDto",a);const s="/sessions/{sessionId}/step".replace("{sessionId}",encodeURIComponent(String(t))),n=new URL(s,x);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await z(l,e),l["Content-Type"]="application/json",_(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=ce(a,i,e),{url:F(n),options:i}},getCurrentSession:async(t={})=>{const a="/sessions/current",r=new URL(a,x);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await z(o,e),_(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:F(r),options:n}},getCustomerStatus:async(t={})=>{const a="/sessions/customer-status",r=new URL(a,x);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await z(o,e),_(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:F(r),options:n}},getSessionById:async(t,a={})=>{T("getSessionById","sessionId",t);const r="/sessions/{sessionId}".replace("{sessionId}",encodeURIComponent(String(t))),s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await z(i,e),_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:F(s),options:o}},markStepAsPerformed:async(t,a,r,s={})=>{T("markStepAsPerformed","sessionId",t),T("markStepAsPerformed","stepId",a),T("markStepAsPerformed","markStepAsPerformedDto",r);const n="/sessions/{sessionId}/steps/{stepId}/performed".replace("{sessionId}",encodeURIComponent(String(t))).replace("{stepId}",encodeURIComponent(String(a))),o=new URL(n,x);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...s},c={},d={};await z(c,e),c["Content-Type"]="application/json",_(o,d);let h=i&&i.headers?i.headers:{};return l.headers={...c,...h,...s.headers},l.data=ce(r,l,e),{url:F(o),options:l}},rollbackSession:async(t,a,r={})=>{T("rollbackSession","sessionId",t),T("rollbackSession","rollbackSessionDto",a);const s="/sessions/{sessionId}/rollback".replace("{sessionId}",encodeURIComponent(String(t))),n=new URL(s,x);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await z(l,e),l["Content-Type"]="application/json",_(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=ce(a,i,e),{url:F(n),options:i}},sendFeedback:async(t,a,r={})=>{T("sendFeedback","sessionId",t),T("sendFeedback","sendFeedbackDto",a);const s="/sessions/{sessionId}/feedback".replace("{sessionId}",encodeURIComponent(String(t))),n=new URL(s,x);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await z(l,e),l["Content-Type"]="application/json",_(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=ce(a,i,e),{url:F(n),options:i}},sendFeedbackDetails:async(t,a,r={})=>{T("sendFeedbackDetails","sessionId",t),T("sendFeedbackDetails","sendFeedbackDetailsDto",a);const s="/sessions/{sessionId}/feedback-details".replace("{sessionId}",encodeURIComponent(String(t))),n=new URL(s,x);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await z(l,e),l["Content-Type"]="application/json",_(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=ce(a,i,e),{url:F(n),options:i}}}},xt=function(e){const t=sw(e);return{async abortSession(a,r){const s=await t.abortSession(a,r);return L(s,u,U,e)},async generateStep(a,r,s){const n=await t.generateStep(a,r,s);return L(n,u,U,e)},async getCurrentSession(a){const r=await t.getCurrentSession(a);return L(r,u,U,e)},async getCustomerStatus(a){const r=await t.getCustomerStatus(a);return L(r,u,U,e)},async getSessionById(a,r){const s=await t.getSessionById(a,r);return L(s,u,U,e)},async markStepAsPerformed(a,r,s,n){const o=await t.markStepAsPerformed(a,r,s,n);return L(o,u,U,e)},async rollbackSession(a,r,s){const n=await t.rollbackSession(a,r,s);return L(n,u,U,e)},async sendFeedback(a,r,s){const n=await t.sendFeedback(a,r,s);return L(n,u,U,e)},async sendFeedbackDetails(a,r,s){const n=await t.sendFeedbackDetails(a,r,s);return L(n,u,U,e)}}};let Fc=class extends Je{abortSession(t,a){return xt(this.configuration).abortSession(t,a).then(r=>r(this.axios,this.basePath))}generateStep(t,a,r){return xt(this.configuration).generateStep(t,a,r).then(s=>s(this.axios,this.basePath))}getCurrentSession(t){return xt(this.configuration).getCurrentSession(t).then(a=>a(this.axios,this.basePath))}getCustomerStatus(t){return xt(this.configuration).getCustomerStatus(t).then(a=>a(this.axios,this.basePath))}getSessionById(t,a){return xt(this.configuration).getSessionById(t,a).then(r=>r(this.axios,this.basePath))}markStepAsPerformed(t,a,r,s){return xt(this.configuration).markStepAsPerformed(t,a,r,s).then(n=>n(this.axios,this.basePath))}rollbackSession(t,a,r){return xt(this.configuration).rollbackSession(t,a,r).then(s=>s(this.axios,this.basePath))}sendFeedback(t,a,r){return xt(this.configuration).sendFeedback(t,a,r).then(s=>s(this.axios,this.basePath))}sendFeedbackDetails(t,a,r){return xt(this.configuration).sendFeedbackDetails(t,a,r).then(s=>s(this.axios,this.basePath))}};const nw=function(e){return{createTopic:async(t,a={})=>{T("createTopic","createTopicDto",t);const r="/topic-tree",s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await z(i,e),i["Content-Type"]="application/json",_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=ce(t,o,e),{url:F(s),options:o}},getConfigurationCleanupCounts:async(t,a={})=>{T("getConfigurationCleanupCounts","configurationId",t);const r="/topic-tree/configuration/{configurationId}/counts".replace("{configurationId}",encodeURIComponent(String(t))),s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await z(i,e),_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:F(s),options:o}},getKnowledgeGap:async(t={})=>{const a="/topic-tree/knowledge-gap",r=new URL(a,x);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await z(o,e),_(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:F(r),options:n}},getKnowledgeGapSessions:async(t,a,r,s,n={})=>{T("getKnowledgeGapSessions","category",t);const o="/topic-tree/knowledge-gap/{category}/sessions".replace("{category}",encodeURIComponent(String(t))),i=new URL(o,x);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...n},d={},h={};await z(d,e),a!==void 0&&(h.cursor=a),r!==void 0&&(h.limit=r),s!==void 0&&(h.direction=s),_(i,h);let m=l&&l.headers?l.headers:{};return c.headers={...d,...m,...n.headers},{url:F(i),options:c}},getKnowledgeGapTree:async(t,a={})=>{const r="/topic-tree/knowledge-gap-tree",s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await z(i,e),t!==void 0&&(l.useSuggestion=t),_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:F(s),options:o}},getSuggestionSessionsPaginated:async(t,a,r,s,n,o={})=>{T("getSuggestionSessionsPaginated","runId",t),T("getSuggestionSessionsPaginated","categoryId",a);const i="/topic-tree/knowledge-gap-suggestion/{runId}/{categoryId}/sessions".replace("{runId}",encodeURIComponent(String(t))).replace("{categoryId}",encodeURIComponent(String(a))),l=new URL(i,x);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...o},h={},m={};await z(h,e),r!==void 0&&(m.cursor=r),s!==void 0&&(m.limit=s),n!==void 0&&(m.direction=n),_(l,m);let O=c&&c.headers?c.headers:{};return d.headers={...h,...O,...o.headers},{url:F(l),options:d}},getTopicDetails:async(t,a={})=>{T("getTopicDetails","topicId",t);const r="/topic-tree/topic/{topicId}/details".replace("{topicId}",encodeURIComponent(String(t))),s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await z(i,e),_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:F(s),options:o}},getTopicSessions:async(t,a,r,s,n={})=>{T("getTopicSessions","topicId",t);const o="/topic-tree/topic/{topicId}/sessions".replace("{topicId}",encodeURIComponent(String(t))),i=new URL(o,x);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...n},d={},h={};await z(d,e),a!==void 0&&(h.cursor=a),r!==void 0&&(h.limit=r),s!==void 0&&(h.direction=s),_(i,h);let m=l&&l.headers?l.headers:{};return c.headers={...d,...m,...n.headers},{url:F(i),options:c}},getTopicTree:async(t={})=>{const a="/topic-tree/tree",r=new URL(a,x);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await z(o,e),_(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:F(r),options:n}},getTopicTreeWithFilters:async(t,a={})=>{T("getTopicTreeWithFilters","topicTreeFilterRequestDto",t);const r="/topic-tree/tree-collection",s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await z(i,e),i["Content-Type"]="application/json",_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=ce(t,o,e),{url:F(s),options:o}},moveTopic:async(t,a,r={})=>{T("moveTopic","topicId",t),T("moveTopic","moveTopicDto",a);const s="/topic-tree/topic/{topicId}/move".replace("{topicId}",encodeURIComponent(String(t))),n=new URL(s,x);let o;e&&(o=e.baseOptions);const i={method:"PUT",...o,...r},l={},c={};await z(l,e),l["Content-Type"]="application/json",_(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=ce(a,i,e),{url:F(n),options:i}},triggerKnowledgeGapSuggestion:async(t={})=>{const a="/topic-tree/knowledge-gap/suggest",r=new URL(a,x);let s;e&&(s=e.baseOptions);const n={method:"POST",...s,...t},o={},i={};await z(o,e),_(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:F(r),options:n}},updateTopic:async(t,a,r={})=>{T("updateTopic","topicId",t),T("updateTopic","updateTopicDto",a);const s="/topic-tree/topic/{topicId}".replace("{topicId}",encodeURIComponent(String(t))),n=new URL(s,x);let o;e&&(o=e.baseOptions);const i={method:"PUT",...o,...r},l={},c={};await z(l,e),l["Content-Type"]="application/json",_(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=ce(a,i,e),{url:F(n),options:i}},updateTopicState:async(t,a,r={})=>{T("updateTopicState","topicId",t),T("updateTopicState","updateTopicStateDto",a);const s="/topic-tree/topic/{topicId}/state".replace("{topicId}",encodeURIComponent(String(t))),n=new URL(s,x);let o;e&&(o=e.baseOptions);const i={method:"PUT",...o,...r},l={},c={};await z(l,e),l["Content-Type"]="application/json",_(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=ce(a,i,e),{url:F(n),options:i}}}},Xe=function(e){const t=nw(e);return{async createTopic(a,r){const s=await t.createTopic(a,r);return L(s,u,U,e)},async getConfigurationCleanupCounts(a,r){const s=await t.getConfigurationCleanupCounts(a,r);return L(s,u,U,e)},async getKnowledgeGap(a){const r=await t.getKnowledgeGap(a);return L(r,u,U,e)},async getKnowledgeGapSessions(a,r,s,n,o){const i=await t.getKnowledgeGapSessions(a,r,s,n,o);return L(i,u,U,e)},async getKnowledgeGapTree(a,r){const s=await t.getKnowledgeGapTree(a,r);return L(s,u,U,e)},async getSuggestionSessionsPaginated(a,r,s,n,o,i){const l=await t.getSuggestionSessionsPaginated(a,r,s,n,o,i);return L(l,u,U,e)},async getTopicDetails(a,r){const s=await t.getTopicDetails(a,r);return L(s,u,U,e)},async getTopicSessions(a,r,s,n,o){const i=await t.getTopicSessions(a,r,s,n,o);return L(i,u,U,e)},async getTopicTree(a){const r=await t.getTopicTree(a);return L(r,u,U,e)},async getTopicTreeWithFilters(a,r){const s=await t.getTopicTreeWithFilters(a,r);return L(s,u,U,e)},async moveTopic(a,r,s){const n=await t.moveTopic(a,r,s);return L(n,u,U,e)},async triggerKnowledgeGapSuggestion(a){const r=await t.triggerKnowledgeGapSuggestion(a);return L(r,u,U,e)},async updateTopic(a,r,s){const n=await t.updateTopic(a,r,s);return L(n,u,U,e)},async updateTopicState(a,r,s){const n=await t.updateTopicState(a,r,s);return L(n,u,U,e)}}};class ow extends Je{createTopic(t,a){return Xe(this.configuration).createTopic(t,a).then(r=>r(this.axios,this.basePath))}getConfigurationCleanupCounts(t,a){return Xe(this.configuration).getConfigurationCleanupCounts(t,a).then(r=>r(this.axios,this.basePath))}getKnowledgeGap(t){return Xe(this.configuration).getKnowledgeGap(t).then(a=>a(this.axios,this.basePath))}getKnowledgeGapSessions(t,a,r,s,n){return Xe(this.configuration).getKnowledgeGapSessions(t,a,r,s,n).then(o=>o(this.axios,this.basePath))}getKnowledgeGapTree(t,a){return Xe(this.configuration).getKnowledgeGapTree(t,a).then(r=>r(this.axios,this.basePath))}getSuggestionSessionsPaginated(t,a,r,s,n,o){return Xe(this.configuration).getSuggestionSessionsPaginated(t,a,r,s,n,o).then(i=>i(this.axios,this.basePath))}getTopicDetails(t,a){return Xe(this.configuration).getTopicDetails(t,a).then(r=>r(this.axios,this.basePath))}getTopicSessions(t,a,r,s,n){return Xe(this.configuration).getTopicSessions(t,a,r,s,n).then(o=>o(this.axios,this.basePath))}getTopicTree(t){return Xe(this.configuration).getTopicTree(t).then(a=>a(this.axios,this.basePath))}getTopicTreeWithFilters(t,a){return Xe(this.configuration).getTopicTreeWithFilters(t,a).then(r=>r(this.axios,this.basePath))}moveTopic(t,a,r){return Xe(this.configuration).moveTopic(t,a,r).then(s=>s(this.axios,this.basePath))}triggerKnowledgeGapSuggestion(t){return Xe(this.configuration).triggerKnowledgeGapSuggestion(t).then(a=>a(this.axios,this.basePath))}updateTopic(t,a,r){return Xe(this.configuration).updateTopic(t,a,r).then(s=>s(this.axios,this.basePath))}updateTopicState(t,a,r){return Xe(this.configuration).updateTopicState(t,a,r).then(s=>s(this.axios,this.basePath))}}const iw=function(e){return{addAndRemoveEmails:async(t,a={})=>{T("addAndRemoveEmails","topicWhitelistUpdateEntriesDto",t);const r="/topic-whitelist/add-and-remove-emails",s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};i["Content-Type"]="application/json",_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=ce(t,o,e),{url:F(s),options:o}},addEntry:async(t,a={})=>{T("addEntry","topicWhitelistAddRemoveEmailDto",t);const r="/topic-whitelist/add",s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};i["Content-Type"]="application/json",_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=ce(t,o,e),{url:F(s),options:o}},getWhitelist:async(t={})=>{const a="/topic-whitelist/get",r=new URL(a,x);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={};_(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:F(r),options:n}},removeEntry:async(t,a={})=>{T("removeEntry","topicWhitelistAddRemoveEmailDto",t);const r="/topic-whitelist/remove",s=new URL(r,x);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};i["Content-Type"]="application/json",_(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=ce(t,o,e),{url:F(s),options:o}}}},Ss=function(e){const t=iw(e);return{async addAndRemoveEmails(a,r){const s=await t.addAndRemoveEmails(a,r);return L(s,u,U,e)},async addEntry(a,r){const s=await t.addEntry(a,r);return L(s,u,U,e)},async getWhitelist(a){const r=await t.getWhitelist(a);return L(r,u,U,e)},async removeEntry(a,r){const s=await t.removeEntry(a,r);return L(s,u,U,e)}}};class lw extends Je{addAndRemoveEmails(t,a){return Ss(this.configuration).addAndRemoveEmails(t,a).then(r=>r(this.axios,this.basePath))}addEntry(t,a){return Ss(this.configuration).addEntry(t,a).then(r=>r(this.axios,this.basePath))}getWhitelist(t){return Ss(this.configuration).getWhitelist(t).then(a=>a(this.axios,this.basePath))}removeEntry(t,a){return Ss(this.configuration).removeEntry(t,a).then(r=>r(this.axios,this.basePath))}}const $="https://api.us1.fullview.io/citadel".replace(/\/+$/,"");let Pt=class{constructor(t,a=$,r=u){Pe(this,"configuration");this.basePath=a,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)}},cw=class extends Error{constructor(a,r){super(r);Pe(this,"name","RequiredError");this.field=a}};const H="https://example.com",mr=function(e,t,a){if(a==null)throw new cw(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},Y=async function(e,t){if(t&&t.accessToken){const a=typeof t.accessToken=="function"?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+a}},q=function(e,...t){const a=new URLSearchParams(e.search);for(const r of t)for(const s in r)if(Array.isArray(r[s])){a.delete(s);for(const n of r[s])a.append(s,n)}else a.set(s,r[s]);e.search=a.toString()},oe=function(e,t,a){const r=typeof e!="string";return(r&&a&&a.isJsonMime?a.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(e!==void 0?e:{}):e||""},W=function(e){return e.pathname+e.search+e.hash},Q=function(e,t,a,r){return(s=t,n=a)=>{const o={...e.options,url:((r==null?void 0:r.basePath)||n)+e.url};return s.request(o)}},dw=function(e){return{citadelOnlyLogout:async(t,a={})=>{const r="/Account/citadel-only-logout",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},logOut:async(t,a={})=>{const r="/Account/logOut",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}}}},Lc=function(e){const t=dw(e);return{async citadelOnlyLogout(a,r){const s=await t.citadelOnlyLogout(a,r);return Q(s,u,$,e)},async logOut(a,r){const s=await t.logOut(a,r);return Q(s,u,$,e)}}};class uw extends Pt{citadelOnlyLogout(t,a){return Lc(this.configuration).citadelOnlyLogout(t,a).then(r=>r(this.axios,this.basePath))}logOut(t,a){return Lc(this.configuration).logOut(t,a).then(r=>r(this.axios,this.basePath))}}const hw=function(e){return{refreshAuthorization:async(t,a={})=>{const r="/Authorization/refresh",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}}}},pw=function(e){const t=hw(e);return{async refreshAuthorization(a,r){const s=await t.refreshAuthorization(a,r);return Q(s,u,$,e)}}};class mw extends Pt{refreshAuthorization(t,a){return pw(this.configuration).refreshAuthorization(t,a).then(r=>r(this.axios,this.basePath))}}const fw=function(e){return{exchange:async(t,a,r,s={})=>{mr("exchange","state",t),mr("exchange","code",a),mr("exchange","sessionState",r);const n="/oauth/exchange",o=new URL(n,H);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...s},c={},d={},h=new(e&&e.formDataCtor||FormData);t!==void 0&&h.append("State",t),a!==void 0&&h.append("Code",a),r!==void 0&&h.append("SessionState",r),c["Content-Type"]="multipart/form-data",q(o,d);let m=i&&i.headers?i.headers:{};return l.headers={...c,...m,...s.headers},l.data=h,{url:W(o),options:l}},start:async(t,a,r,s,n,o={})=>{const i="/oauth/start",l=new URL(i,H);let c;e&&(c=e.baseOptions);const d={method:"POST",...c,...o},h={},m={};t!==void 0&&(m.redirectUri=t),a!==void 0&&(m.inviteLinkId=a),r!==void 0&&(m.inviteEmail=r),s!==void 0&&(m.ssoDomain=s),n!==void 0&&(m.organisationId=n),q(l,m);let O=c&&c.headers?c.headers:{};return d.headers={...h,...O,...o.headers},{url:W(l),options:d}}}},Dc=function(e){const t=fw(e);return{async exchange(a,r,s,n){const o=await t.exchange(a,r,s,n);return Q(o,u,$,e)},async start(a,r,s,n,o,i){const l=await t.start(a,r,s,n,o,i);return Q(l,u,$,e)}}};class gw extends Pt{exchange(t,a,r,s){return Dc(this.configuration).exchange(t,a,r,s).then(n=>n(this.axios,this.basePath))}start(t,a,r,s,n,o){return Dc(this.configuration).start(t,a,r,s,n,o).then(i=>i(this.axios,this.basePath))}}const Ow=function(e){return{createJoinLink:async(t={})=>{const a="/Organisation/create-join-link",r=new URL(a,H);let s;e&&(s=e.baseOptions);const n={method:"POST",...s,...t},o={},i={};await Y(o,e),q(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:W(r),options:n}},createOrganisationWithRolesSetup:async(t,a={})=>{const r="/Organisation/create-organisation-reg",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},deleteUser:async(t,a={})=>{mr("deleteUser","userId",t);const r="/Organisation/users/{userId}".replace("{userId}",encodeURIComponent(String(t))),s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"DELETE",...n,...a},i={},l={};await Y(i,e),q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:W(s),options:o}},multiInviteUsersToOrganisation:async(t,a={})=>{const r="/Organisation/multi-invite",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},organisationAcceptAccessRequestsPost:async(t,a={})=>{const r="/Organisation/accept-access-requests",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},organisationRequestSessionReplayAccessPost:async(t={})=>{const a="/Organisation/request-session-replay-access",r=new URL(a,H);let s;e&&(s=e.baseOptions);const n={method:"POST",...s,...t},o={},i={};await Y(o,e),q(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:W(r),options:n}},organisationRequestSessionReplayUpgradePost:async(t={})=>{const a="/Organisation/request-session-replay-upgrade",r=new URL(a,H);let s;e&&(s=e.baseOptions);const n={method:"POST",...s,...t},o={},i={};await Y(o,e),q(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:W(r),options:n}},rejectJoinRequest:async(t,a={})=>{const r="/Organisation/reject-request",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},requestAccessToOrganisation:async(t,a={})=>{const r="/Organisation/request-access",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},resendInvite:async(t,a={})=>{const r="/Organisation/resend-invite",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}}}},At=function(e){const t=Ow(e);return{async createJoinLink(a){const r=await t.createJoinLink(a);return Q(r,u,$,e)},async createOrganisationWithRolesSetup(a,r){const s=await t.createOrganisationWithRolesSetup(a,r);return Q(s,u,$,e)},async deleteUser(a,r){const s=await t.deleteUser(a,r);return Q(s,u,$,e)},async multiInviteUsersToOrganisation(a,r){const s=await t.multiInviteUsersToOrganisation(a,r);return Q(s,u,$,e)},async organisationAcceptAccessRequestsPost(a,r){const s=await t.organisationAcceptAccessRequestsPost(a,r);return Q(s,u,$,e)},async organisationRequestSessionReplayAccessPost(a){const r=await t.organisationRequestSessionReplayAccessPost(a);return Q(r,u,$,e)},async organisationRequestSessionReplayUpgradePost(a){const r=await t.organisationRequestSessionReplayUpgradePost(a);return Q(r,u,$,e)},async rejectJoinRequest(a,r){const s=await t.rejectJoinRequest(a,r);return Q(s,u,$,e)},async requestAccessToOrganisation(a,r){const s=await t.requestAccessToOrganisation(a,r);return Q(s,u,$,e)},async resendInvite(a,r){const s=await t.resendInvite(a,r);return Q(s,u,$,e)}}};let bw=class extends Pt{createJoinLink(t){return At(this.configuration).createJoinLink(t).then(a=>a(this.axios,this.basePath))}createOrganisationWithRolesSetup(t,a){return At(this.configuration).createOrganisationWithRolesSetup(t,a).then(r=>r(this.axios,this.basePath))}deleteUser(t,a){return At(this.configuration).deleteUser(t,a).then(r=>r(this.axios,this.basePath))}multiInviteUsersToOrganisation(t,a){return At(this.configuration).multiInviteUsersToOrganisation(t,a).then(r=>r(this.axios,this.basePath))}organisationAcceptAccessRequestsPost(t,a){return At(this.configuration).organisationAcceptAccessRequestsPost(t,a).then(r=>r(this.axios,this.basePath))}organisationRequestSessionReplayAccessPost(t){return At(this.configuration).organisationRequestSessionReplayAccessPost(t).then(a=>a(this.axios,this.basePath))}organisationRequestSessionReplayUpgradePost(t){return At(this.configuration).organisationRequestSessionReplayUpgradePost(t).then(a=>a(this.axios,this.basePath))}rejectJoinRequest(t,a){return At(this.configuration).rejectJoinRequest(t,a).then(r=>r(this.axios,this.basePath))}requestAccessToOrganisation(t,a){return At(this.configuration).requestAccessToOrganisation(t,a).then(r=>r(this.axios,this.basePath))}resendInvite(t,a){return At(this.configuration).resendInvite(t,a).then(r=>r(this.axios,this.basePath))}};const yw=function(e){return{addClaimToARoleFromCurrentOrganisation:async(t,a={})=>{const r="/Role/add-claim-to-role",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},assignOrganisationRoleToAnOrganisationUser:async(t,a={})=>{const r="/Role/assign-role-to-user",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},createRoleForCurrentOrganisation:async(t,a={})=>{const r="/Role/create-role",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},getRolesWithClaimsAndUsers:async(t={})=>{const a="/Role/roles-with-claims-and-users",r=new URL(a,H);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await Y(o,e),q(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:W(r),options:n}},listDefaultRolesForCurrentOrganisation:async(t={})=>{const a="/Role/list-default-roles",r=new URL(a,H);let s;e&&(s=e.baseOptions);const n={method:"POST",...s,...t},o={},i={};await Y(o,e),q(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:W(r),options:n}},listRolesForCurrentOrganisation:async(t={})=>{const a="/Role/list-roles",r=new URL(a,H);let s;e&&(s=e.baseOptions);const n={method:"POST",...s,...t},o={},i={};await Y(o,e),q(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:W(r),options:n}},removeClaimFromOrganisationRole:async(t,a={})=>{const r="/Role/remove-claim-from-role",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},removeOrganisationRole:async(t,a={})=>{const r="/Role/remove-role",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},removeOrganisationRoleFromAnOrganisationUser:async(t,a={})=>{const r="/Role/remove-role-from-user",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},removeRoleWithoutUsers:async(t,a={})=>{const r="/Role/remove-role-without-users",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},updateAUsersRole:async(t,a={})=>{const r="/Role/update-user-role",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},updateAUsersRole_1:async(t,a={})=>{const r="/Role/update-users-role",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},updateRoleForCurrentOrganisation:async(t,a={})=>{const r="/Role/update-role",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},viewRole:async(t,a={})=>{const r="/Role/view-role",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}}}},Ke=function(e){const t=yw(e);return{async addClaimToARoleFromCurrentOrganisation(a,r){const s=await t.addClaimToARoleFromCurrentOrganisation(a,r);return Q(s,u,$,e)},async assignOrganisationRoleToAnOrganisationUser(a,r){const s=await t.assignOrganisationRoleToAnOrganisationUser(a,r);return Q(s,u,$,e)},async createRoleForCurrentOrganisation(a,r){const s=await t.createRoleForCurrentOrganisation(a,r);return Q(s,u,$,e)},async getRolesWithClaimsAndUsers(a){const r=await t.getRolesWithClaimsAndUsers(a);return Q(r,u,$,e)},async listDefaultRolesForCurrentOrganisation(a){const r=await t.listDefaultRolesForCurrentOrganisation(a);return Q(r,u,$,e)},async listRolesForCurrentOrganisation(a){const r=await t.listRolesForCurrentOrganisation(a);return Q(r,u,$,e)},async removeClaimFromOrganisationRole(a,r){const s=await t.removeClaimFromOrganisationRole(a,r);return Q(s,u,$,e)},async removeOrganisationRole(a,r){const s=await t.removeOrganisationRole(a,r);return Q(s,u,$,e)},async removeOrganisationRoleFromAnOrganisationUser(a,r){const s=await t.removeOrganisationRoleFromAnOrganisationUser(a,r);return Q(s,u,$,e)},async removeRoleWithoutUsers(a,r){const s=await t.removeRoleWithoutUsers(a,r);return Q(s,u,$,e)},async updateAUsersRole(a,r){const s=await t.updateAUsersRole(a,r);return Q(s,u,$,e)},async updateAUsersRole_1(a,r){const s=await t.updateAUsersRole_1(a,r);return Q(s,u,$,e)},async updateRoleForCurrentOrganisation(a,r){const s=await t.updateRoleForCurrentOrganisation(a,r);return Q(s,u,$,e)},async viewRole(a,r){const s=await t.viewRole(a,r);return Q(s,u,$,e)}}};class vw extends Pt{addClaimToARoleFromCurrentOrganisation(t,a){return Ke(this.configuration).addClaimToARoleFromCurrentOrganisation(t,a).then(r=>r(this.axios,this.basePath))}assignOrganisationRoleToAnOrganisationUser(t,a){return Ke(this.configuration).assignOrganisationRoleToAnOrganisationUser(t,a).then(r=>r(this.axios,this.basePath))}createRoleForCurrentOrganisation(t,a){return Ke(this.configuration).createRoleForCurrentOrganisation(t,a).then(r=>r(this.axios,this.basePath))}getRolesWithClaimsAndUsers(t){return Ke(this.configuration).getRolesWithClaimsAndUsers(t).then(a=>a(this.axios,this.basePath))}listDefaultRolesForCurrentOrganisation(t){return Ke(this.configuration).listDefaultRolesForCurrentOrganisation(t).then(a=>a(this.axios,this.basePath))}listRolesForCurrentOrganisation(t){return Ke(this.configuration).listRolesForCurrentOrganisation(t).then(a=>a(this.axios,this.basePath))}removeClaimFromOrganisationRole(t,a){return Ke(this.configuration).removeClaimFromOrganisationRole(t,a).then(r=>r(this.axios,this.basePath))}removeOrganisationRole(t,a){return Ke(this.configuration).removeOrganisationRole(t,a).then(r=>r(this.axios,this.basePath))}removeOrganisationRoleFromAnOrganisationUser(t,a){return Ke(this.configuration).removeOrganisationRoleFromAnOrganisationUser(t,a).then(r=>r(this.axios,this.basePath))}removeRoleWithoutUsers(t,a){return Ke(this.configuration).removeRoleWithoutUsers(t,a).then(r=>r(this.axios,this.basePath))}updateAUsersRole(t,a){return Ke(this.configuration).updateAUsersRole(t,a).then(r=>r(this.axios,this.basePath))}updateAUsersRole_1(t,a){return Ke(this.configuration).updateAUsersRole_1(t,a).then(r=>r(this.axios,this.basePath))}updateRoleForCurrentOrganisation(t,a){return Ke(this.configuration).updateRoleForCurrentOrganisation(t,a).then(r=>r(this.axios,this.basePath))}viewRole(t,a){return Ke(this.configuration).viewRole(t,a).then(r=>r(this.axios,this.basePath))}}const ww=function(e){return{changeOrgname:async(t,a={})=>{const r="/SSOConfiguration/change-orgname",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"PUT",...n,...a},i={},l={};await Y(i,e),t!==void 0&&(l.newName=t),q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:W(s),options:o}},getSsoConfig:async(t={})=>{const a="/SSOConfiguration/get-sso-config",r=new URL(a,H);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await Y(o,e),q(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:W(r),options:n}},setSsoConfig:async(t,a={})=>{const r="/SSOConfiguration/set-sso-config",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}}}},io=function(e){const t=ww(e);return{async changeOrgname(a,r){const s=await t.changeOrgname(a,r);return Q(s,u,$,e)},async getSsoConfig(a){const r=await t.getSsoConfig(a);return Q(r,u,$,e)},async setSsoConfig(a,r){const s=await t.setSsoConfig(a,r);return Q(s,u,$,e)}}};class Pw extends Pt{changeOrgname(t,a){return io(this.configuration).changeOrgname(t,a).then(r=>r(this.axios,this.basePath))}getSsoConfig(t){return io(this.configuration).getSsoConfig(t).then(a=>a(this.axios,this.basePath))}setSsoConfig(t,a){return io(this.configuration).setSsoConfig(t,a).then(r=>r(this.axios,this.basePath))}}const Aw=function(e){return{adminOrganisationCreateOrganisationPost:async(t,a={})=>{const r="/super-admin/organisation/create-organisation",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},adminOrganisationDeleteOrganisationPost:async(t,a={})=>{const r="/super-admin/organisation/delete-organisation",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},adminOrganisationDeleteOrganisationsPost:async(t,a={})=>{const r="/super-admin/organisation/delete-organisations",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},adminOrganisationListOrganisationIdPatch:async(t,a={})=>{const r="/super-admin/organisation/list-organisation-id",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"PATCH",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},adminOrganisationListOrganisationNamePatch:async(t,a={})=>{const r="/super-admin/organisation/list-organisation-name",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"PATCH",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},adminOrganisationListOrganisationsFullGet:async(t={})=>{const a="/super-admin/organisation/list-organisations-full",r=new URL(a,H);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await Y(o,e),q(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:W(r),options:n}}}},Ca=function(e){const t=Aw(e);return{async adminOrganisationCreateOrganisationPost(a,r){const s=await t.adminOrganisationCreateOrganisationPost(a,r);return Q(s,u,$,e)},async adminOrganisationDeleteOrganisationPost(a,r){const s=await t.adminOrganisationDeleteOrganisationPost(a,r);return Q(s,u,$,e)},async adminOrganisationDeleteOrganisationsPost(a,r){const s=await t.adminOrganisationDeleteOrganisationsPost(a,r);return Q(s,u,$,e)},async adminOrganisationListOrganisationIdPatch(a,r){const s=await t.adminOrganisationListOrganisationIdPatch(a,r);return Q(s,u,$,e)},async adminOrganisationListOrganisationNamePatch(a,r){const s=await t.adminOrganisationListOrganisationNamePatch(a,r);return Q(s,u,$,e)},async adminOrganisationListOrganisationsFullGet(a){const r=await t.adminOrganisationListOrganisationsFullGet(a);return Q(r,u,$,e)}}};class Vw extends Pt{adminOrganisationCreateOrganisationPost(t,a){return Ca(this.configuration).adminOrganisationCreateOrganisationPost(t,a).then(r=>r(this.axios,this.basePath))}adminOrganisationDeleteOrganisationPost(t,a){return Ca(this.configuration).adminOrganisationDeleteOrganisationPost(t,a).then(r=>r(this.axios,this.basePath))}adminOrganisationDeleteOrganisationsPost(t,a){return Ca(this.configuration).adminOrganisationDeleteOrganisationsPost(t,a).then(r=>r(this.axios,this.basePath))}adminOrganisationListOrganisationIdPatch(t,a){return Ca(this.configuration).adminOrganisationListOrganisationIdPatch(t,a).then(r=>r(this.axios,this.basePath))}adminOrganisationListOrganisationNamePatch(t,a){return Ca(this.configuration).adminOrganisationListOrganisationNamePatch(t,a).then(r=>r(this.axios,this.basePath))}adminOrganisationListOrganisationsFullGet(t){return Ca(this.configuration).adminOrganisationListOrganisationsFullGet(t).then(a=>a(this.axios,this.basePath))}}const Ew=function(e){return{addClaimToARole:async(t,a={})=>{const r="/super-admin/rbac/add-claim",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},addClaimsToRole:async(t,a={})=>{const r="/super-admin/rbac/add-claims-to-role",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},createANewClaimForAnyOrganisation:async(t,a={})=>{const r="/super-admin/rbac/create-claim",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},createDefaultRole:async(t,a={})=>{const r="/super-admin/rbac/create-default-role",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},createRoleForAnOrganisation:async(t,a={})=>{const r="/super-admin/rbac/create-organisation-role",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},createsUpdatesDemoRolesForAnOrganisation:async(t,a={})=>{const r="/super-admin/rbac/synchronize-demo-roles-for-organisation",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},forceCreateDefaultRolesForOrganisations:async(t,a={})=>{const r="/super-admin/rbac/force-create-default-roles",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},listAllClaims:async(t,a={})=>{const r="/super-admin/rbac/list-claims",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},listAllRoles:async(t,a={})=>{const r="/super-admin/rbac/list-roles",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},listAllRolesFromAnOrganisation:async(t,a={})=>{const r="/super-admin/rbac/list-organisation-roles",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},listAllUsersForAOrganisation:async(t,a={})=>{const r="/super-admin/rbac/list-organisation-users",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},listAllUsersWithAGivenEmailOrganisation:async(t,a={})=>{const r="/super-admin/rbac/list-users",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},removeAnyRole:async(t,a={})=>{const r="/super-admin/rbac/remove-role",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},removeClaimFromAnyRole:async(t,a={})=>{const r="/super-admin/rbac/remove-claim-from-role",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},revokeUserAccessToken:async(t,a={})=>{const r="/super-admin/rbac/revoke-user-access-token",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},testSuperAdmin:async(t={})=>{const a="/super-admin/rbac/test",r=new URL(a,H);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await Y(o,e),q(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:W(r),options:n}},updateTheRoleOfUsers:async(t,a={})=>{const r="/super-admin/rbac/update-role-for-users",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},viewAnyRoleFromAnyOrganisation:async(t,a={})=>{const r="/super-admin/rbac/view-organisation-role",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}}}},De=function(e){const t=Ew(e);return{async addClaimToARole(a,r){const s=await t.addClaimToARole(a,r);return Q(s,u,$,e)},async addClaimsToRole(a,r){const s=await t.addClaimsToRole(a,r);return Q(s,u,$,e)},async createANewClaimForAnyOrganisation(a,r){const s=await t.createANewClaimForAnyOrganisation(a,r);return Q(s,u,$,e)},async createDefaultRole(a,r){const s=await t.createDefaultRole(a,r);return Q(s,u,$,e)},async createRoleForAnOrganisation(a,r){const s=await t.createRoleForAnOrganisation(a,r);return Q(s,u,$,e)},async createsUpdatesDemoRolesForAnOrganisation(a,r){const s=await t.createsUpdatesDemoRolesForAnOrganisation(a,r);return Q(s,u,$,e)},async forceCreateDefaultRolesForOrganisations(a,r){const s=await t.forceCreateDefaultRolesForOrganisations(a,r);return Q(s,u,$,e)},async listAllClaims(a,r){const s=await t.listAllClaims(a,r);return Q(s,u,$,e)},async listAllRoles(a,r){const s=await t.listAllRoles(a,r);return Q(s,u,$,e)},async listAllRolesFromAnOrganisation(a,r){const s=await t.listAllRolesFromAnOrganisation(a,r);return Q(s,u,$,e)},async listAllUsersForAOrganisation(a,r){const s=await t.listAllUsersForAOrganisation(a,r);return Q(s,u,$,e)},async listAllUsersWithAGivenEmailOrganisation(a,r){const s=await t.listAllUsersWithAGivenEmailOrganisation(a,r);return Q(s,u,$,e)},async removeAnyRole(a,r){const s=await t.removeAnyRole(a,r);return Q(s,u,$,e)},async removeClaimFromAnyRole(a,r){const s=await t.removeClaimFromAnyRole(a,r);return Q(s,u,$,e)},async revokeUserAccessToken(a,r){const s=await t.revokeUserAccessToken(a,r);return Q(s,u,$,e)},async testSuperAdmin(a){const r=await t.testSuperAdmin(a);return Q(r,u,$,e)},async updateTheRoleOfUsers(a,r){const s=await t.updateTheRoleOfUsers(a,r);return Q(s,u,$,e)},async viewAnyRoleFromAnyOrganisation(a,r){const s=await t.viewAnyRoleFromAnyOrganisation(a,r);return Q(s,u,$,e)}}};class Rw extends Pt{addClaimToARole(t,a){return De(this.configuration).addClaimToARole(t,a).then(r=>r(this.axios,this.basePath))}addClaimsToRole(t,a){return De(this.configuration).addClaimsToRole(t,a).then(r=>r(this.axios,this.basePath))}createANewClaimForAnyOrganisation(t,a){return De(this.configuration).createANewClaimForAnyOrganisation(t,a).then(r=>r(this.axios,this.basePath))}createDefaultRole(t,a){return De(this.configuration).createDefaultRole(t,a).then(r=>r(this.axios,this.basePath))}createRoleForAnOrganisation(t,a){return De(this.configuration).createRoleForAnOrganisation(t,a).then(r=>r(this.axios,this.basePath))}createsUpdatesDemoRolesForAnOrganisation(t,a){return De(this.configuration).createsUpdatesDemoRolesForAnOrganisation(t,a).then(r=>r(this.axios,this.basePath))}forceCreateDefaultRolesForOrganisations(t,a){return De(this.configuration).forceCreateDefaultRolesForOrganisations(t,a).then(r=>r(this.axios,this.basePath))}listAllClaims(t,a){return De(this.configuration).listAllClaims(t,a).then(r=>r(this.axios,this.basePath))}listAllRoles(t,a){return De(this.configuration).listAllRoles(t,a).then(r=>r(this.axios,this.basePath))}listAllRolesFromAnOrganisation(t,a){return De(this.configuration).listAllRolesFromAnOrganisation(t,a).then(r=>r(this.axios,this.basePath))}listAllUsersForAOrganisation(t,a){return De(this.configuration).listAllUsersForAOrganisation(t,a).then(r=>r(this.axios,this.basePath))}listAllUsersWithAGivenEmailOrganisation(t,a){return De(this.configuration).listAllUsersWithAGivenEmailOrganisation(t,a).then(r=>r(this.axios,this.basePath))}removeAnyRole(t,a){return De(this.configuration).removeAnyRole(t,a).then(r=>r(this.axios,this.basePath))}removeClaimFromAnyRole(t,a){return De(this.configuration).removeClaimFromAnyRole(t,a).then(r=>r(this.axios,this.basePath))}revokeUserAccessToken(t,a){return De(this.configuration).revokeUserAccessToken(t,a).then(r=>r(this.axios,this.basePath))}testSuperAdmin(t){return De(this.configuration).testSuperAdmin(t).then(a=>a(this.axios,this.basePath))}updateTheRoleOfUsers(t,a){return De(this.configuration).updateTheRoleOfUsers(t,a).then(r=>r(this.axios,this.basePath))}viewAnyRoleFromAnyOrganisation(t,a){return De(this.configuration).viewAnyRoleFromAnyOrganisation(t,a).then(r=>r(this.axios,this.basePath))}}const Sw=function(e){return{deleteUsers:async(t,a={})=>{const r="/super-admin/user/delete-users",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},designateSuperAdmin:async(t,a={})=>{const r="/super-admin/user/promote-to-super-admin",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},hardDeleteUser:async(t,a={})=>{mr("hardDeleteUser","userId",t);const r="/super-admin/user/{userId}".replace("{userId}",encodeURIComponent(String(t))),s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"DELETE",...n,...a},i={},l={};await Y(i,e),q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:W(s),options:o}},inviteUsers:async(t,a={})=>{const r="/super-admin/user/invite-users",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},listOrganisationUsers:async(t,a={})=>{const r="/super-admin/user/list-organisation-users",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},listUsers:async(t,a={})=>{const r="/super-admin/user/list-users",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},sendInvitationEmail:async(t,a={})=>{const r="/super-admin/user/send-invitation-email",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}}}},da=function(e){const t=Sw(e);return{async deleteUsers(a,r){const s=await t.deleteUsers(a,r);return Q(s,u,$,e)},async designateSuperAdmin(a,r){const s=await t.designateSuperAdmin(a,r);return Q(s,u,$,e)},async hardDeleteUser(a,r){const s=await t.hardDeleteUser(a,r);return Q(s,u,$,e)},async inviteUsers(a,r){const s=await t.inviteUsers(a,r);return Q(s,u,$,e)},async listOrganisationUsers(a,r){const s=await t.listOrganisationUsers(a,r);return Q(s,u,$,e)},async listUsers(a,r){const s=await t.listUsers(a,r);return Q(s,u,$,e)},async sendInvitationEmail(a,r){const s=await t.sendInvitationEmail(a,r);return Q(s,u,$,e)}}};class Tw extends Pt{deleteUsers(t,a){return da(this.configuration).deleteUsers(t,a).then(r=>r(this.axios,this.basePath))}designateSuperAdmin(t,a){return da(this.configuration).designateSuperAdmin(t,a).then(r=>r(this.axios,this.basePath))}hardDeleteUser(t,a){return da(this.configuration).hardDeleteUser(t,a).then(r=>r(this.axios,this.basePath))}inviteUsers(t,a){return da(this.configuration).inviteUsers(t,a).then(r=>r(this.axios,this.basePath))}listOrganisationUsers(t,a){return da(this.configuration).listOrganisationUsers(t,a).then(r=>r(this.axios,this.basePath))}listUsers(t,a){return da(this.configuration).listUsers(t,a).then(r=>r(this.axios,this.basePath))}sendInvitationEmail(t,a){return da(this.configuration).sendInvitationEmail(t,a).then(r=>r(this.axios,this.basePath))}}const Cw=function(e){return{getUserOrgMembersCount:async(t={})=>{const a="/User/get-members-count",r=new URL(a,H);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await Y(o,e),q(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:W(r),options:n}},getUserOrganisations:async(t={})=>{const a="/User/get-user-orgs",r=new URL(a,H);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await Y(o,e),q(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:W(r),options:n}},updateOwnPassword:async(t,a={})=>{const r="/User/update-password",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}},updateProfile:async(t,a={})=>{const r="/User/update-profile",s=new URL(r,H);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Y(i,e),i["Content-Type"]="application/json",q(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=oe(t,o,e),{url:W(s),options:o}}}},Ts=function(e){const t=Cw(e);return{async getUserOrgMembersCount(a){const r=await t.getUserOrgMembersCount(a);return Q(r,u,$,e)},async getUserOrganisations(a){const r=await t.getUserOrganisations(a);return Q(r,u,$,e)},async updateOwnPassword(a,r){const s=await t.updateOwnPassword(a,r);return Q(s,u,$,e)},async updateProfile(a,r){const s=await t.updateProfile(a,r);return Q(s,u,$,e)}}};class Iw extends Pt{getUserOrgMembersCount(t){return Ts(this.configuration).getUserOrgMembersCount(t).then(a=>a(this.axios,this.basePath))}getUserOrganisations(t){return Ts(this.configuration).getUserOrganisations(t).then(a=>a(this.axios,this.basePath))}updateOwnPassword(t,a){return Ts(this.configuration).updateOwnPassword(t,a).then(r=>r(this.axios,this.basePath))}updateProfile(t,a){return Ts(this.configuration).updateProfile(t,a).then(r=>r(this.axios,this.basePath))}}const lo="https://api.fullview.io/v1/connect".replace(/\/+$/,"");let Uw=class{constructor(t,a=lo,r=u){Pe(this,"configuration");this.basePath=a,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)}},xw=class extends Error{constructor(a,r){super(r);Pe(this,"name","RequiredError");this.field=a}};const Mc="https://example.com",Nc=function(e,t,a){if(a==null)throw new xw(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},_w=async function(e,t,a){if(a&&a.apiKey){const r=typeof a.apiKey=="function"?await a.apiKey(t):await a.apiKey;e[t]=r}},Fw=async function(e,t){if(t&&t.accessToken){const a=typeof t.accessToken=="function"?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+a}},jc=function(e,...t){const a=new URLSearchParams(e.search);for(const r of t)for(const s in r)if(Array.isArray(r[s])){a.delete(s);for(const n of r[s])a.append(s,n)}else a.set(s,r[s]);e.search=a.toString()},kc=function(e,t,a){const r=typeof e!="string";return(r&&a&&a.isJsonMime?a.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(e!==void 0?e:{}):e||""},Bc=function(e){return e.pathname+e.search+e.hash},$c=function(e,t,a,r){return(s=t,n=a)=>{const o={...e.options,url:((r==null?void 0:r.basePath)||n)+e.url};return s.request(o)}},Lw=function(e){return{linkToClientObsolete:async(t,a={})=>{Nc("linkToClientObsolete","linkOrganisationToIntegrationPayloadDto",t);const r="/organisation/link-client",s=new URL(r,Mc);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await _w(i,"api-key",e),i["Content-Type"]="application/json",jc(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=kc(t,o,e),{url:Bc(s),options:o}},linkToIntegrationClient:async(t,a={})=>{Nc("linkToIntegrationClient","linkOrganisationPayloadDto",t);const r="/organisation/link-org-to-client",s=new URL(r,Mc);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Fw(i,e),i["Content-Type"]="application/json",jc(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=kc(t,o,e),{url:Bc(s),options:o}}}},Hc=function(e){const t=Lw(e);return{async linkToClientObsolete(a,r){const s=await t.linkToClientObsolete(a,r);return $c(s,u,lo,e)},async linkToIntegrationClient(a,r){const s=await t.linkToIntegrationClient(a,r);return $c(s,u,lo,e)}}};let Dw=class extends Uw{linkToClientObsolete(t,a){return Hc(this.configuration).linkToClientObsolete(t,a).then(r=>r(this.axios,this.basePath))}linkToIntegrationClient(t,a){return Hc(this.configuration).linkToIntegrationClient(t,a).then(r=>r(this.axios,this.basePath))}};const qc="https://api.us1.fullview.io/nexus".replace(/\/+$/,"");let Mw=class{constructor(t,a=qc,r=u){Pe(this,"configuration");this.basePath=a,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)}},Nw=class extends Error{constructor(a,r){super(r);Pe(this,"name","RequiredError");this.field=a}};const jw="https://example.com",kw=function(e,t,a){if(a==null)throw new Nw(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},Bw=async function(e,t){if(t&&t.accessToken){const a=typeof t.accessToken=="function"?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+a}},$w=function(e,...t){const a=new URLSearchParams(e.search);for(const r of t)for(const s in r)if(Array.isArray(r[s])){a.delete(s);for(const n of r[s])a.append(s,n)}else a.set(s,r[s]);e.search=a.toString()},Hw=function(e,t,a){const r=typeof e!="string";return(r&&a&&a.isJsonMime?a.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(e!==void 0?e:{}):e||""},qw=function(e){return e.pathname+e.search+e.hash},Ww=function(e,t,a,r){return(s=t,n=a)=>{const o={...e.options,url:((r==null?void 0:r.basePath)||n)+e.url};return s.request(o)}},Qw=function(e){return{linkToIntegrationClient:async(t,a={})=>{kw("linkToIntegrationClient","linkOrganisationPayloadDto",t);const r="/organisation/link-org-to-client",s=new URL(r,jw);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await Bw(i,e),i["Content-Type"]="application/json",$w(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=Hw(t,o,e),{url:qw(s),options:o}}}},Gw=function(e){const t=Qw(e);return{async linkToIntegrationClient(a,r){const s=await t.linkToIntegrationClient(a,r);return Ww(s,u,qc,e)}}};class zw extends Mw{linkToIntegrationClient(t,a){return Gw(this.configuration).linkToIntegrationClient(t,a).then(r=>r(this.axios,this.basePath))}}const G="https://api.us1.fullview.io/nexus".replace(/\/+$/,"");class Qt{constructor(t,a=G,r=u){Pe(this,"configuration");this.basePath=a,this.axios=r,t&&(this.configuration=t,this.basePath=t.basePath||this.basePath)}}class Yw extends Error{constructor(a,r){super(r);Pe(this,"name","RequiredError");this.field=a}}const J="https://example.com",te=function(e,t,a){if(a==null)throw new Yw(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},X=async function(e,t){if(t&&t.accessToken){const a=typeof t.accessToken=="function"?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+a}},K=function(e,...t){const a=new URLSearchParams(e.search);for(const r of t)for(const s in r)if(Array.isArray(r[s])){a.delete(s);for(const n of r[s])a.append(s,n)}else a.set(s,r[s]);e.search=a.toString()},Se=function(e,t,a){const r=typeof e!="string";return(r&&a&&a.isJsonMime?a.isJsonMime(t.headers["Content-Type"]):r)?JSON.stringify(e!==void 0?e:{}):e||""},Z=function(e){return e.pathname+e.search+e.hash},ee=function(e,t,a,r){return(s=t,n=a)=>{const o={...e.options,url:((r==null?void 0:r.basePath)||n)+e.url};return s.request(o)}},Jw=function(e){return{getCallRecordingsCountForCustomer:async(t,a={})=>{te("getCallRecordingsCountForCustomer","customerId",t);const r="/v1/customers/{customerId}/recordings/count".replace("{customerId}",encodeURIComponent(String(t))),s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await X(i,e),K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:Z(s),options:o}},getCallRecordingsForCustomer:async(t,a,r={})=>{te("getCallRecordingsForCustomer","customerId",t),te("getCallRecordingsForCustomer","getCustomerSessionsPayload",a);const s="/v1/customers/{customerId}/recordings".replace("{customerId}",encodeURIComponent(String(t))),n=new URL(s,J);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await X(l,e),l["Content-Type"]="application/json",K(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=Se(a,i,e),{url:Z(n),options:i}},getCustomerDetails:async(t,a={})=>{te("getCustomerDetails","id",t);const r="/v1/customers/{id}/details".replace("{id}",encodeURIComponent(String(t))),s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await X(i,e),K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:Z(s),options:o}},getSessionsCountForCustomer:async(t,a={})=>{te("getSessionsCountForCustomer","customerId",t);const r="/v1/customers/{customerId}/sessions/count".replace("{customerId}",encodeURIComponent(String(t))),s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await X(i,e),K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:Z(s),options:o}},getSessionsForCustomer:async(t,a,r={})=>{te("getSessionsForCustomer","customerId",t),te("getSessionsForCustomer","getCustomerSessionsPayload",a);const s="/v1/customers/{customerId}/sessions".replace("{customerId}",encodeURIComponent(String(t))),n=new URL(s,J);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await X(l,e),l["Content-Type"]="application/json",K(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=Se(a,i,e),{url:Z(n),options:i}}}},fr=function(e){const t=Jw(e);return{async getCallRecordingsCountForCustomer(a,r){const s=await t.getCallRecordingsCountForCustomer(a,r);return ee(s,u,G,e)},async getCallRecordingsForCustomer(a,r,s){const n=await t.getCallRecordingsForCustomer(a,r,s);return ee(n,u,G,e)},async getCustomerDetails(a,r){const s=await t.getCustomerDetails(a,r);return ee(s,u,G,e)},async getSessionsCountForCustomer(a,r){const s=await t.getSessionsCountForCustomer(a,r);return ee(s,u,G,e)},async getSessionsForCustomer(a,r,s){const n=await t.getSessionsForCustomer(a,r,s);return ee(n,u,G,e)}}};class Xw extends Qt{getCallRecordingsCountForCustomer(t,a){return fr(this.configuration).getCallRecordingsCountForCustomer(t,a).then(r=>r(this.axios,this.basePath))}getCallRecordingsForCustomer(t,a,r){return fr(this.configuration).getCallRecordingsForCustomer(t,a,r).then(s=>s(this.axios,this.basePath))}getCustomerDetails(t,a){return fr(this.configuration).getCustomerDetails(t,a).then(r=>r(this.axios,this.basePath))}getSessionsCountForCustomer(t,a){return fr(this.configuration).getSessionsCountForCustomer(t,a).then(r=>r(this.axios,this.basePath))}getSessionsForCustomer(t,a,r){return fr(this.configuration).getSessionsForCustomer(t,a,r).then(s=>s(this.axios,this.basePath))}}const Kw=function(e){return{setupOrganisation:async(t={})=>{const a="/v1/demo/setup-organisation",r=new URL(a,J);let s;e&&(s=e.baseOptions);const n={method:"POST",...s,...t},o={},i={};await X(o,e),K(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:Z(r),options:n}}}},Zw=function(e){const t=Kw(e);return{async setupOrganisation(a){const r=await t.setupOrganisation(a);return ee(r,u,G,e)}}};class eP extends Qt{setupOrganisation(t){return Zw(this.configuration).setupOrganisation(t).then(a=>a(this.axios,this.basePath))}}const tP=function(e){return{getDemoRelatedReplays:async(t,a,r={})=>{te("getDemoRelatedReplays","sessionId",t),te("getDemoRelatedReplays","getRelatedSessionsRequestPayloadDto",a);const s="/v1/demo-sessions/{sessionId}/related".replace("{sessionId}",encodeURIComponent(String(t))),n=new URL(s,J);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await X(l,e),l["Content-Type"]="application/json",K(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=Se(a,i,e),{url:Z(n),options:i}},getDemoSessionBounds:async(t,a={})=>{te("getDemoSessionBounds","sessionId",t);const r="/v1/demo-sessions/{sessionId}/bounds".replace("{sessionId}",encodeURIComponent(String(t))),s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await X(i,e),K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:Z(s),options:o}},getDemoSessionById:async(t,a={})=>{te("getDemoSessionById","sessionId",t);const r="/v1/demo-sessions/{sessionId}".replace("{sessionId}",encodeURIComponent(String(t))),s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await X(i,e),K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:Z(s),options:o}},getDemoSessionEvents:async(t,a,r={})=>{te("getDemoSessionEvents","sessionId",t),te("getDemoSessionEvents","getSessionEventsPayloadRequestDto",a);const s="/v1/demo-sessions/{sessionId}/events".replace("{sessionId}",encodeURIComponent(String(t))),n=new URL(s,J);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await X(l,e),l["Content-Type"]="application/json",K(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=Se(a,i,e),{url:Z(n),options:i}},getDemoSessionMetadata:async(t,a={})=>{te("getDemoSessionMetadata","sessionId",t);const r="/v1/demo-sessions/{sessionId}/metadata".replace("{sessionId}",encodeURIComponent(String(t))),s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await X(i,e),K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:Z(s),options:o}},getDemoSessionSinkEvents:async(t,a={})=>{te("getDemoSessionSinkEvents","sessionId",t);const r="/v1/demo-sessions/{sessionId}/sink-events".replace("{sessionId}",encodeURIComponent(String(t))),s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await X(i,e),K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:Z(s),options:o}},getDemoSessionTimelineDetails:async(t,a={})=>{te("getDemoSessionTimelineDetails","sessionId",t);const r="/v1/demo-sessions/{sessionId}/timeline".replace("{sessionId}",encodeURIComponent(String(t))),s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await X(i,e),K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:Z(s),options:o}},getDemoSessions:async(t={})=>{const a="/v1/demo-sessions/byOrg",r=new URL(a,J);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await X(o,e),K(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:Z(r),options:n}},getDemoSharedWithUsers:async(t,a={})=>{te("getDemoSharedWithUsers","sessionId",t);const r="/v1/demo-sessions/{sessionId}/shared-with".replace("{sessionId}",encodeURIComponent(String(t))),s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await X(i,e),K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:Z(s),options:o}},removeShareWithDemoSession:async(t,a,r={})=>{te("removeShareWithDemoSession","sessionId",t),te("removeShareWithDemoSession","sessionSharePayloadDto",a);const s="/v1/demo-sessions/{sessionId}/remove-share-with".replace("{sessionId}",encodeURIComponent(String(t))),n=new URL(s,J);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await X(l,e),l["Content-Type"]="application/json",K(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=Se(a,i,e),{url:Z(n),options:i}},shareDemoSession:async(t,a={})=>{te("shareDemoSession","sessionId",t);const r="/v1/demo-sessions/{sessionId}/share".replace("{sessionId}",encodeURIComponent(String(t))),s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await X(i,e),K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:Z(s),options:o}},shareWithDemoSession:async(t,a,r={})=>{te("shareWithDemoSession","sessionId",t),te("shareWithDemoSession","sessionSharePayloadDto",a);const s="/v1/demo-sessions/{sessionId}/share-with".replace("{sessionId}",encodeURIComponent(String(t))),n=new URL(s,J);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await X(l,e),l["Content-Type"]="application/json",K(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=Se(a,i,e),{url:Z(n),options:i}},trySelfShareDemoSession:async(t,a={})=>{te("trySelfShareDemoSession","sessionId",t);const r="/v1/demo-sessions/{sessionId}/try-self-share".replace("{sessionId}",encodeURIComponent(String(t))),s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await X(i,e),K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:Z(s),options:o}}}},rt=function(e){const t=tP(e);return{async getDemoRelatedReplays(a,r,s){const n=await t.getDemoRelatedReplays(a,r,s);return ee(n,u,G,e)},async getDemoSessionBounds(a,r){const s=await t.getDemoSessionBounds(a,r);return ee(s,u,G,e)},async getDemoSessionById(a,r){const s=await t.getDemoSessionById(a,r);return ee(s,u,G,e)},async getDemoSessionEvents(a,r,s){const n=await t.getDemoSessionEvents(a,r,s);return ee(n,u,G,e)},async getDemoSessionMetadata(a,r){const s=await t.getDemoSessionMetadata(a,r);return ee(s,u,G,e)},async getDemoSessionSinkEvents(a,r){const s=await t.getDemoSessionSinkEvents(a,r);return ee(s,u,G,e)},async getDemoSessionTimelineDetails(a,r){const s=await t.getDemoSessionTimelineDetails(a,r);return ee(s,u,G,e)},async getDemoSessions(a){const r=await t.getDemoSessions(a);return ee(r,u,G,e)},async getDemoSharedWithUsers(a,r){const s=await t.getDemoSharedWithUsers(a,r);return ee(s,u,G,e)},async removeShareWithDemoSession(a,r,s){const n=await t.removeShareWithDemoSession(a,r,s);return ee(n,u,G,e)},async shareDemoSession(a,r){const s=await t.shareDemoSession(a,r);return ee(s,u,G,e)},async shareWithDemoSession(a,r,s){const n=await t.shareWithDemoSession(a,r,s);return ee(n,u,G,e)},async trySelfShareDemoSession(a,r){const s=await t.trySelfShareDemoSession(a,r);return ee(s,u,G,e)}}};class aP extends Qt{getDemoRelatedReplays(t,a,r){return rt(this.configuration).getDemoRelatedReplays(t,a,r).then(s=>s(this.axios,this.basePath))}getDemoSessionBounds(t,a){return rt(this.configuration).getDemoSessionBounds(t,a).then(r=>r(this.axios,this.basePath))}getDemoSessionById(t,a){return rt(this.configuration).getDemoSessionById(t,a).then(r=>r(this.axios,this.basePath))}getDemoSessionEvents(t,a,r){return rt(this.configuration).getDemoSessionEvents(t,a,r).then(s=>s(this.axios,this.basePath))}getDemoSessionMetadata(t,a){return rt(this.configuration).getDemoSessionMetadata(t,a).then(r=>r(this.axios,this.basePath))}getDemoSessionSinkEvents(t,a){return rt(this.configuration).getDemoSessionSinkEvents(t,a).then(r=>r(this.axios,this.basePath))}getDemoSessionTimelineDetails(t,a){return rt(this.configuration).getDemoSessionTimelineDetails(t,a).then(r=>r(this.axios,this.basePath))}getDemoSessions(t){return rt(this.configuration).getDemoSessions(t).then(a=>a(this.axios,this.basePath))}getDemoSharedWithUsers(t,a){return rt(this.configuration).getDemoSharedWithUsers(t,a).then(r=>r(this.axios,this.basePath))}removeShareWithDemoSession(t,a,r){return rt(this.configuration).removeShareWithDemoSession(t,a,r).then(s=>s(this.axios,this.basePath))}shareDemoSession(t,a){return rt(this.configuration).shareDemoSession(t,a).then(r=>r(this.axios,this.basePath))}shareWithDemoSession(t,a,r){return rt(this.configuration).shareWithDemoSession(t,a,r).then(s=>s(this.axios,this.basePath))}trySelfShareDemoSession(t,a){return rt(this.configuration).trySelfShareDemoSession(t,a).then(r=>r(this.axios,this.basePath))}}const rP=function(e){return{getClickedElementSuggestions:async(t,a={})=>{te("getClickedElementSuggestions","input",t);const r="/v1/organisations/clicked-elements",s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await X(i,e),t!==void 0&&(l.input=t),K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:Z(s),options:o}},getContentMaskingConfig:async(t={})=>{const a="/v1/organisations/config/screen-recording/content-masking",r=new URL(a,J);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await X(o,e),K(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:Z(r),options:n}},getJoinOrganisationList:async(t={})=>{const a="/v1/organisations/join-organisation-list",r=new URL(a,J);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await X(o,e),K(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:Z(r),options:n}},getJoinReasonRequired:async(t,a={})=>{te("getJoinReasonRequired","organisationName",t);const r="/v1/organisations/join-reason-required",s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await X(i,e),t!==void 0&&(l.organisationName=t),K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:Z(s),options:o}},getOrganisation:async(t={})=>{const a="/v1/organisations/data",r=new URL(a,J);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await X(o,e),K(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:Z(r),options:n}},getOrganisationAccessRequestsCount:async(t={})=>{const a="/v1/organisations/access-requests-count",r=new URL(a,J);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await X(o,e),K(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:Z(r),options:n}},getOrganisationSetupStatus:async(t={})=>{const a="/v1/organisations/status",r=new URL(a,J);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await X(o,e),K(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:Z(r),options:n}},getVisitedPageSuggestions:async(t,a={})=>{te("getVisitedPageSuggestions","input",t);const r="/v1/organisations/visited-pages",s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await X(i,e),t!==void 0&&(l.input=t),K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:Z(s),options:o}},listUsers:async(t,a={})=>{te("listUsers","getPaginatedOrganisationUsersRequestDto",t);const r="/v1/organisations/users",s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await X(i,e),i["Content-Type"]="application/json",K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=Se(t,o,e),{url:Z(s),options:o}},requestAIAgent:async(t={})=>{const a="/v1/organisations/ai-agent",r=new URL(a,J);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await X(o,e),K(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:Z(r),options:n}},requestAccessToOrganisation:async(t,a={})=>{te("requestAccessToOrganisation","requestAccessToOrganisationPayloadDto",t);const r="/v1/organisations/request-access",s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await X(i,e),i["Content-Type"]="application/json",K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=Se(t,o,e),{url:Z(s),options:o}},requestEnterprisePlan:async(t={})=>{const a="/v1/organisations/enterprise-plan",r=new URL(a,J);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await X(o,e),K(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:Z(r),options:n}},resetContentMaskingConfig:async(t={})=>{const a="/v1/organisations/config/screen-recording/content-masking/reset",r=new URL(a,J);let s;e&&(s=e.baseOptions);const n={method:"POST",...s,...t},o={},i={};await X(o,e),K(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:Z(r),options:n}},updateContentMaskingConfig:async(t,a={})=>{te("updateContentMaskingConfig","organisationUpdateContentMaskingConfigDto",t);const r="/v1/organisations/config/screen-recording/content-masking",s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await X(i,e),i["Content-Type"]="application/json",K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=Se(t,o,e),{url:Z(s),options:o}},updateGettingStartedOrganisationSettings:async(t,a={})=>{te("updateGettingStartedOrganisationSettings","gettingStartedSettingsConfigurationDto",t);const r="/v1/organisations/getting-started-setup",s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await X(i,e),i["Content-Type"]="application/json",K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=Se(t,o,e),{url:Z(s),options:o}}}},Qe=function(e){const t=rP(e);return{async getClickedElementSuggestions(a,r){const s=await t.getClickedElementSuggestions(a,r);return ee(s,u,G,e)},async getContentMaskingConfig(a){const r=await t.getContentMaskingConfig(a);return ee(r,u,G,e)},async getJoinOrganisationList(a){const r=await t.getJoinOrganisationList(a);return ee(r,u,G,e)},async getJoinReasonRequired(a,r){const s=await t.getJoinReasonRequired(a,r);return ee(s,u,G,e)},async getOrganisation(a){const r=await t.getOrganisation(a);return ee(r,u,G,e)},async getOrganisationAccessRequestsCount(a){const r=await t.getOrganisationAccessRequestsCount(a);return ee(r,u,G,e)},async getOrganisationSetupStatus(a){const r=await t.getOrganisationSetupStatus(a);return ee(r,u,G,e)},async getVisitedPageSuggestions(a,r){const s=await t.getVisitedPageSuggestions(a,r);return ee(s,u,G,e)},async listUsers(a,r){const s=await t.listUsers(a,r);return ee(s,u,G,e)},async requestAIAgent(a){const r=await t.requestAIAgent(a);return ee(r,u,G,e)},async requestAccessToOrganisation(a,r){const s=await t.requestAccessToOrganisation(a,r);return ee(s,u,G,e)},async requestEnterprisePlan(a){const r=await t.requestEnterprisePlan(a);return ee(r,u,G,e)},async resetContentMaskingConfig(a){const r=await t.resetContentMaskingConfig(a);return ee(r,u,G,e)},async updateContentMaskingConfig(a,r){const s=await t.updateContentMaskingConfig(a,r);return ee(s,u,G,e)},async updateGettingStartedOrganisationSettings(a,r){const s=await t.updateGettingStartedOrganisationSettings(a,r);return ee(s,u,G,e)}}};class sP extends Qt{getClickedElementSuggestions(t,a){return Qe(this.configuration).getClickedElementSuggestions(t,a).then(r=>r(this.axios,this.basePath))}getContentMaskingConfig(t){return Qe(this.configuration).getContentMaskingConfig(t).then(a=>a(this.axios,this.basePath))}getJoinOrganisationList(t){return Qe(this.configuration).getJoinOrganisationList(t).then(a=>a(this.axios,this.basePath))}getJoinReasonRequired(t,a){return Qe(this.configuration).getJoinReasonRequired(t,a).then(r=>r(this.axios,this.basePath))}getOrganisation(t){return Qe(this.configuration).getOrganisation(t).then(a=>a(this.axios,this.basePath))}getOrganisationAccessRequestsCount(t){return Qe(this.configuration).getOrganisationAccessRequestsCount(t).then(a=>a(this.axios,this.basePath))}getOrganisationSetupStatus(t){return Qe(this.configuration).getOrganisationSetupStatus(t).then(a=>a(this.axios,this.basePath))}getVisitedPageSuggestions(t,a){return Qe(this.configuration).getVisitedPageSuggestions(t,a).then(r=>r(this.axios,this.basePath))}listUsers(t,a){return Qe(this.configuration).listUsers(t,a).then(r=>r(this.axios,this.basePath))}requestAIAgent(t){return Qe(this.configuration).requestAIAgent(t).then(a=>a(this.axios,this.basePath))}requestAccessToOrganisation(t,a){return Qe(this.configuration).requestAccessToOrganisation(t,a).then(r=>r(this.axios,this.basePath))}requestEnterprisePlan(t){return Qe(this.configuration).requestEnterprisePlan(t).then(a=>a(this.axios,this.basePath))}resetContentMaskingConfig(t){return Qe(this.configuration).resetContentMaskingConfig(t).then(a=>a(this.axios,this.basePath))}updateContentMaskingConfig(t,a){return Qe(this.configuration).updateContentMaskingConfig(t,a).then(r=>r(this.axios,this.basePath))}updateGettingStartedOrganisationSettings(t,a){return Qe(this.configuration).updateGettingStartedOrganisationSettings(t,a).then(r=>r(this.axios,this.basePath))}}const nP=function(e){return{exampleRoute:async(t={})=>{const a="/v1/sessions/example-route",r=new URL(a,J);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await X(o,e),K(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:Z(r),options:n}},getCoBrowseRecordings:async(t,a={})=>{te("getCoBrowseRecordings","getCobrowseRecordingsRequestPayloadDto",t);const r="/v1/sessions/cobrowse-recordings",s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await X(i,e),i["Content-Type"]="application/json",K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=Se(t,o,e),{url:Z(s),options:o}},getCobrowseRecordingsSink:async(t,a={})=>{te("getCobrowseRecordingsSink","callId",t);const r="/v1/sessions/cobrowse-recordings/{callId}/sink".replace("{callId}",encodeURIComponent(String(t))),s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await X(i,e),K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:Z(s),options:o}},getRelatedReplays:async(t,a,r={})=>{te("getRelatedReplays","sessionId",t),te("getRelatedReplays","getRelatedSessionsRequestPayloadDto",a);const s="/v1/sessions/{sessionId}/related".replace("{sessionId}",encodeURIComponent(String(t))),n=new URL(s,J);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await X(l,e),l["Content-Type"]="application/json",K(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=Se(a,i,e),{url:Z(n),options:i}},getSessionBounds:async(t,a={})=>{te("getSessionBounds","sessionId",t);const r="/v1/sessions/{sessionId}/bounds".replace("{sessionId}",encodeURIComponent(String(t))),s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await X(i,e),K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:Z(s),options:o}},getSessionById:async(t,a={})=>{te("getSessionById","sessionId",t);const r="/v1/sessions/{sessionId}".replace("{sessionId}",encodeURIComponent(String(t))),s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await X(i,e),K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:Z(s),options:o}},getSessionEvents:async(t,a,r={})=>{te("getSessionEvents","sessionId",t),te("getSessionEvents","getSessionEventsPayloadRequestDto",a);const s="/v1/sessions/{sessionId}/events".replace("{sessionId}",encodeURIComponent(String(t))),n=new URL(s,J);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await X(l,e),l["Content-Type"]="application/json",K(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=Se(a,i,e),{url:Z(n),options:i}},getSessionMetadata:async(t,a={})=>{te("getSessionMetadata","sessionId",t);const r="/v1/sessions/{sessionId}/metadata".replace("{sessionId}",encodeURIComponent(String(t))),s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await X(i,e),K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:Z(s),options:o}},getSessionSinkEvents:async(t,a={})=>{te("getSessionSinkEvents","sessionId",t);const r="/v1/sessions/{sessionId}/sink-events".replace("{sessionId}",encodeURIComponent(String(t))),s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await X(i,e),K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:Z(s),options:o}},getSessionTimelineDetails:async(t,a={})=>{te("getSessionTimelineDetails","sessionId",t);const r="/v1/sessions/{sessionId}/timeline".replace("{sessionId}",encodeURIComponent(String(t))),s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await X(i,e),K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:Z(s),options:o}},getSessions:async(t,a={})=>{te("getSessions","getSessionsByOrgRequestPayloadDto",t);const r="/v1/sessions/byOrg",s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await X(i,e),i["Content-Type"]="application/json",K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=Se(t,o,e),{url:Z(s),options:o}},getSharedWithUsers:async(t,a={})=>{te("getSharedWithUsers","sessionId",t);const r="/v1/sessions/{sessionId}/shared-with".replace("{sessionId}",encodeURIComponent(String(t))),s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await X(i,e),K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:Z(s),options:o}},removeShareWithSession:async(t,a,r={})=>{te("removeShareWithSession","sessionId",t),te("removeShareWithSession","sessionSharePayloadDto",a);const s="/v1/sessions/{sessionId}/remove-share-with".replace("{sessionId}",encodeURIComponent(String(t))),n=new URL(s,J);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await X(l,e),l["Content-Type"]="application/json",K(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=Se(a,i,e),{url:Z(n),options:i}},shareSession:async(t,a={})=>{te("shareSession","sessionId",t);const r="/v1/sessions/{sessionId}/share".replace("{sessionId}",encodeURIComponent(String(t))),s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await X(i,e),K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:Z(s),options:o}},shareWithSession:async(t,a,r={})=>{te("shareWithSession","sessionId",t),te("shareWithSession","sessionSharePayloadDto",a);const s="/v1/sessions/{sessionId}/share-with".replace("{sessionId}",encodeURIComponent(String(t))),n=new URL(s,J);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await X(l,e),l["Content-Type"]="application/json",K(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=Se(a,i,e),{url:Z(n),options:i}},trySelfShareSession:async(t,a={})=>{te("trySelfShareSession","sessionId",t);const r="/v1/sessions/{sessionId}/try-self-share".replace("{sessionId}",encodeURIComponent(String(t))),s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await X(i,e),K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:Z(s),options:o}}}},$e=function(e){const t=nP(e);return{async exampleRoute(a){const r=await t.exampleRoute(a);return ee(r,u,G,e)},async getCoBrowseRecordings(a,r){const s=await t.getCoBrowseRecordings(a,r);return ee(s,u,G,e)},async getCobrowseRecordingsSink(a,r){const s=await t.getCobrowseRecordingsSink(a,r);return ee(s,u,G,e)},async getRelatedReplays(a,r,s){const n=await t.getRelatedReplays(a,r,s);return ee(n,u,G,e)},async getSessionBounds(a,r){const s=await t.getSessionBounds(a,r);return ee(s,u,G,e)},async getSessionById(a,r){const s=await t.getSessionById(a,r);return ee(s,u,G,e)},async getSessionEvents(a,r,s){const n=await t.getSessionEvents(a,r,s);return ee(n,u,G,e)},async getSessionMetadata(a,r){const s=await t.getSessionMetadata(a,r);return ee(s,u,G,e)},async getSessionSinkEvents(a,r){const s=await t.getSessionSinkEvents(a,r);return ee(s,u,G,e)},async getSessionTimelineDetails(a,r){const s=await t.getSessionTimelineDetails(a,r);return ee(s,u,G,e)},async getSessions(a,r){const s=await t.getSessions(a,r);return ee(s,u,G,e)},async getSharedWithUsers(a,r){const s=await t.getSharedWithUsers(a,r);return ee(s,u,G,e)},async removeShareWithSession(a,r,s){const n=await t.removeShareWithSession(a,r,s);return ee(n,u,G,e)},async shareSession(a,r){const s=await t.shareSession(a,r);return ee(s,u,G,e)},async shareWithSession(a,r,s){const n=await t.shareWithSession(a,r,s);return ee(n,u,G,e)},async trySelfShareSession(a,r){const s=await t.trySelfShareSession(a,r);return ee(s,u,G,e)}}};class oP extends Qt{exampleRoute(t){return $e(this.configuration).exampleRoute(t).then(a=>a(this.axios,this.basePath))}getCoBrowseRecordings(t,a){return $e(this.configuration).getCoBrowseRecordings(t,a).then(r=>r(this.axios,this.basePath))}getCobrowseRecordingsSink(t,a){return $e(this.configuration).getCobrowseRecordingsSink(t,a).then(r=>r(this.axios,this.basePath))}getRelatedReplays(t,a,r){return $e(this.configuration).getRelatedReplays(t,a,r).then(s=>s(this.axios,this.basePath))}getSessionBounds(t,a){return $e(this.configuration).getSessionBounds(t,a).then(r=>r(this.axios,this.basePath))}getSessionById(t,a){return $e(this.configuration).getSessionById(t,a).then(r=>r(this.axios,this.basePath))}getSessionEvents(t,a,r){return $e(this.configuration).getSessionEvents(t,a,r).then(s=>s(this.axios,this.basePath))}getSessionMetadata(t,a){return $e(this.configuration).getSessionMetadata(t,a).then(r=>r(this.axios,this.basePath))}getSessionSinkEvents(t,a){return $e(this.configuration).getSessionSinkEvents(t,a).then(r=>r(this.axios,this.basePath))}getSessionTimelineDetails(t,a){return $e(this.configuration).getSessionTimelineDetails(t,a).then(r=>r(this.axios,this.basePath))}getSessions(t,a){return $e(this.configuration).getSessions(t,a).then(r=>r(this.axios,this.basePath))}getSharedWithUsers(t,a){return $e(this.configuration).getSharedWithUsers(t,a).then(r=>r(this.axios,this.basePath))}removeShareWithSession(t,a,r){return $e(this.configuration).removeShareWithSession(t,a,r).then(s=>s(this.axios,this.basePath))}shareSession(t,a){return $e(this.configuration).shareSession(t,a).then(r=>r(this.axios,this.basePath))}shareWithSession(t,a,r){return $e(this.configuration).shareWithSession(t,a,r).then(s=>s(this.axios,this.basePath))}trySelfShareSession(t,a){return $e(this.configuration).trySelfShareSession(t,a).then(r=>r(this.axios,this.basePath))}}const iP=function(e){return{composeOrganisationStats:async(t,a={})=>{te("composeOrganisationStats","superAdminOrganisationStatsRequestDto",t);const r="/v1/super-admin/compose-organisation-stats",s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await X(i,e),i["Content-Type"]="application/json",K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=Se(t,o,e),{url:Z(s),options:o}},downloadSessionEvents:async(t,a={})=>{te("downloadSessionEvents","downloadSessionEventsPayloadDto",t);const r="/v1/super-admin/download-session-events",s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await X(i,e),i["Content-Type"]="application/json",K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=Se(t,o,e),{url:Z(s),options:o}},listOrganisations:async(t,a={})=>{te("listOrganisations","getPaginatedOrganisationsRequestDto",t);const r="/v1/super-admin/list-organisations",s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await X(i,e),i["Content-Type"]="application/json",K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=Se(t,o,e),{url:Z(s),options:o}},listUsersWithOrganisationId:async(t,a={})=>{te("listUsersWithOrganisationId","getPaginatedUsersRequestDto",t);const r="/v1/super-admin/list-users",s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await X(i,e),i["Content-Type"]="application/json",K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=Se(t,o,e),{url:Z(s),options:o}},softDeleteUser:async(t,a={})=>{te("softDeleteUser","softDeleteUserPayloadDto",t);const r="/v1/super-admin/soft-delete-user",s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await X(i,e),i["Content-Type"]="application/json",K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=Se(t,o,e),{url:Z(s),options:o}}}},gr=function(e){const t=iP(e);return{async composeOrganisationStats(a,r){const s=await t.composeOrganisationStats(a,r);return ee(s,u,G,e)},async downloadSessionEvents(a,r){const s=await t.downloadSessionEvents(a,r);return ee(s,u,G,e)},async listOrganisations(a,r){const s=await t.listOrganisations(a,r);return ee(s,u,G,e)},async listUsersWithOrganisationId(a,r){const s=await t.listUsersWithOrganisationId(a,r);return ee(s,u,G,e)},async softDeleteUser(a,r){const s=await t.softDeleteUser(a,r);return ee(s,u,G,e)}}};class lP extends Qt{composeOrganisationStats(t,a){return gr(this.configuration).composeOrganisationStats(t,a).then(r=>r(this.axios,this.basePath))}downloadSessionEvents(t,a){return gr(this.configuration).downloadSessionEvents(t,a).then(r=>r(this.axios,this.basePath))}listOrganisations(t,a){return gr(this.configuration).listOrganisations(t,a).then(r=>r(this.axios,this.basePath))}listUsersWithOrganisationId(t,a){return gr(this.configuration).listUsersWithOrganisationId(t,a).then(r=>r(this.axios,this.basePath))}softDeleteUser(t,a){return gr(this.configuration).softDeleteUser(t,a).then(r=>r(this.axios,this.basePath))}}const cP=function(e){return{createView:async(t,a={})=>{te("createView","createUserViewPayloadDto",t);const r="/v1/user-views/create",s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await X(i,e),i["Content-Type"]="application/json",K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=Se(t,o,e),{url:Z(s),options:o}},deleteUserView:async(t,a={})=>{te("deleteUserView","viewId",t);const r="/v1/user-views/{viewId}/delete".replace("{viewId}",encodeURIComponent(String(t))),s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await X(i,e),K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:Z(s),options:o}},getInMemoryUserView:async(t,a={})=>{te("getInMemoryUserView","userViewTypePayloadDto",t);const r="/v1/user-views/in-memory",s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await X(i,e),i["Content-Type"]="application/json",K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=Se(t,o,e),{url:Z(s),options:o}},getUserView:async(t,a={})=>{te("getUserView","viewId",t);const r="/v1/user-views/{viewId}".replace("{viewId}",encodeURIComponent(String(t))),s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await X(i,e),K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:Z(s),options:o}},getUserViews:async(t,a={})=>{te("getUserViews","userViewTypePayloadDto",t);const r="/v1/user-views/views",s=new URL(r,J);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await X(i,e),i["Content-Type"]="application/json",K(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=Se(t,o,e),{url:Z(s),options:o}},updateUserView:async(t,a,r={})=>{te("updateUserView","viewId",t),te("updateUserView","updateUserViewPayloadDto",a);const s="/v1/user-views/{viewId}/update".replace("{viewId}",encodeURIComponent(String(t))),n=new URL(s,J);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await X(l,e),l["Content-Type"]="application/json",K(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=Se(a,i,e),{url:Z(n),options:i}}}},Ia=function(e){const t=cP(e);return{async createView(a,r){const s=await t.createView(a,r);return ee(s,u,G,e)},async deleteUserView(a,r){const s=await t.deleteUserView(a,r);return ee(s,u,G,e)},async getInMemoryUserView(a,r){const s=await t.getInMemoryUserView(a,r);return ee(s,u,G,e)},async getUserView(a,r){const s=await t.getUserView(a,r);return ee(s,u,G,e)},async getUserViews(a,r){const s=await t.getUserViews(a,r);return ee(s,u,G,e)},async updateUserView(a,r,s){const n=await t.updateUserView(a,r,s);return ee(n,u,G,e)}}};class dP extends Qt{createView(t,a){return Ia(this.configuration).createView(t,a).then(r=>r(this.axios,this.basePath))}deleteUserView(t,a){return Ia(this.configuration).deleteUserView(t,a).then(r=>r(this.axios,this.basePath))}getInMemoryUserView(t,a){return Ia(this.configuration).getInMemoryUserView(t,a).then(r=>r(this.axios,this.basePath))}getUserView(t,a){return Ia(this.configuration).getUserView(t,a).then(r=>r(this.axios,this.basePath))}getUserViews(t,a){return Ia(this.configuration).getUserViews(t,a).then(r=>r(this.axios,this.basePath))}updateUserView(t,a,r){return Ia(this.configuration).updateUserView(t,a,r).then(s=>s(this.axios,this.basePath))}}const uP=function(e){return{loggedInUserDetails:async(t={})=>{const a="/v1/users/me",r=new URL(a,J);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await X(o,e),K(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:Z(r),options:n}}}},hP=function(e){const t=uP(e);return{async loggedInUserDetails(a){const r=await t.loggedInUserDetails(a);return ee(r,u,G,e)}}};class pP extends Qt{loggedInUserDetails(t){return hP(this.configuration).loggedInUserDetails(t).then(a=>a(this.axios,this.basePath))}}function Ua(){const e=u.create({adapter:"fetch"});return e.interceptors.request.use(t=>AP({config:t})),e.interceptors.response.use(t=>(t.config.headers.clear(),t),t=>{var a;return(a=t.config)==null||a.headers.clear(),Promise.reject(t)}),e}class Wc extends Error{constructor(t,a){super(t),this.name="ParseError",this.type=a.type,this.field=a.field,this.value=a.value,this.line=a.line}}function co(e){}function mP(e){if(typeof e=="function")throw new TypeError("`callbacks` must be an object, got a function instead. Did you mean `{onEvent: fn}`?");const{onEvent:t=co,onError:a=co,onRetry:r=co,onComment:s}=e;let n="",o=!0,i,l="",c="";function d(b){const g=o?b.replace(/^\xEF\xBB\xBF/,""):b,[M,N]=fP(`${n}${g}`);for(const j of M)h(j);n=N,o=!1}function h(b){if(b===""){O();return}if(b.startsWith(":")){s&&s(b.slice(b.startsWith(": ")?2:1));return}const g=b.indexOf(":");if(g!==-1){const M=b.slice(0,g),N=b[g+1]===" "?2:1,j=b.slice(g+N);m(M,j,b);return}m(b,"",b)}function m(b,g,M){switch(b){case"event":c=g;break;case"data":l=`${l}${g} `;break;case"id":i=g.includes("\0")?void 0:g;break;case"retry":/^\d+$/.test(g)?r(parseInt(g,10)):a(new Wc(`Invalid \`retry\` value: "${g}"`,{type:"invalid-retry",value:g,line:M}));break;default:a(new Wc(`Unknown field "${b.length>20?`${b.slice(0,20)}…`:b}"`,{type:"unknown-field",field:b,value:g,line:M}));break}}function O(){l.length>0&&t({id:i,event:c||void 0,data:l.endsWith(` `)?l.slice(0,-1):l}),i=void 0,l="",c=""}function p(b={}){n&&b.consume&&h(n),o=!0,i=void 0,l="",c="",n=""}return{feed:d,reset:p}}function fP(e){const t=[];let a="",r=0;for(;r{throw TypeError(e)},ho=(e,t,a)=>t.has(e)||zc("Cannot "+a),Oe=(e,t,a)=>(ho(e,t,"read from private field"),a?a.call(e):t.get(e)),_e=(e,t,a)=>t.has(e)?zc("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,a),Ce=(e,t,a,r)=>(ho(e,t,"write to private field"),t.set(e,a),a),_t=(e,t,a)=>(ho(e,t,"access private method"),a),Ze,ua,xa,Cs,Is,Or,_a,br,Gt,Fa,La,Da,yr,ft,po,mo,fo,Yc,go,Oo,vr,bo,yo;class wr extends EventTarget{constructor(t,a){var r,s;super(),_e(this,ft),this.CONNECTING=0,this.OPEN=1,this.CLOSED=2,_e(this,Ze),_e(this,ua),_e(this,xa),_e(this,Cs),_e(this,Is),_e(this,Or),_e(this,_a),_e(this,br,null),_e(this,Gt),_e(this,Fa),_e(this,La,null),_e(this,Da,null),_e(this,yr,null),_e(this,mo,async n=>{var o;Oe(this,Fa).reset();const{body:i,redirected:l,status:c,headers:d}=n;if(c===204){_t(this,ft,vr).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if(l?Ce(this,xa,new URL(n.url)):Ce(this,xa,void 0),c!==200){_t(this,ft,vr).call(this,`Non-200 status code (${c})`,c);return}if(!(d.get("content-type")||"").startsWith("text/event-stream")){_t(this,ft,vr).call(this,'Invalid content type, expected "text/event-stream"',c);return}if(Oe(this,Ze)===this.CLOSED)return;Ce(this,Ze,this.OPEN);const h=new Event("open");if((o=Oe(this,yr))==null||o.call(this,h),this.dispatchEvent(h),typeof i!="object"||!i||!("getReader"in i)){_t(this,ft,vr).call(this,"Invalid response body, expected a web ReadableStream",c),this.close();return}const m=new TextDecoder,O=i.getReader();let p=!0;do{const{done:b,value:g}=await O.read();g&&Oe(this,Fa).feed(m.decode(g,{stream:!b})),b&&(p=!1,Oe(this,Fa).reset(),_t(this,ft,bo).call(this))}while(p)}),_e(this,fo,n=>{Ce(this,Gt,void 0),!(n.name==="AbortError"||n.type==="aborted")&&_t(this,ft,bo).call(this,uo(n))}),_e(this,go,n=>{typeof n.id=="string"&&Ce(this,br,n.id);const o=new MessageEvent(n.event||"message",{data:n.data,origin:Oe(this,xa)?Oe(this,xa).origin:Oe(this,ua).origin,lastEventId:n.id||""});Oe(this,Da)&&(!n.event||n.event==="message")&&Oe(this,Da).call(this,o),this.dispatchEvent(o)}),_e(this,Oo,n=>{Ce(this,Or,n)}),_e(this,yo,()=>{Ce(this,_a,void 0),Oe(this,Ze)===this.CONNECTING&&_t(this,ft,po).call(this)});try{if(t instanceof URL)Ce(this,ua,t);else if(typeof t=="string")Ce(this,ua,new URL(t,OP()));else throw new Error("Invalid URL")}catch{throw gP("An invalid or illegal string was specified")}Ce(this,Fa,mP({onEvent:Oe(this,go),onRetry:Oe(this,Oo)})),Ce(this,Ze,this.CONNECTING),Ce(this,Or,3e3),Ce(this,Is,(r=a==null?void 0:a.fetch)!=null?r:globalThis.fetch),Ce(this,Cs,(s=a==null?void 0:a.withCredentials)!=null?s:!1),_t(this,ft,po).call(this)}get readyState(){return Oe(this,Ze)}get url(){return Oe(this,ua).href}get withCredentials(){return Oe(this,Cs)}get onerror(){return Oe(this,La)}set onerror(t){Ce(this,La,t)}get onmessage(){return Oe(this,Da)}set onmessage(t){Ce(this,Da,t)}get onopen(){return Oe(this,yr)}set onopen(t){Ce(this,yr,t)}addEventListener(t,a,r){const s=a;super.addEventListener(t,s,r)}removeEventListener(t,a,r){const s=a;super.removeEventListener(t,s,r)}close(){Oe(this,_a)&&clearTimeout(Oe(this,_a)),Oe(this,Ze)!==this.CLOSED&&(Oe(this,Gt)&&Oe(this,Gt).abort(),Ce(this,Ze,this.CLOSED),Ce(this,Gt,void 0))}}Ze=new WeakMap,ua=new WeakMap,xa=new WeakMap,Cs=new WeakMap,Is=new WeakMap,Or=new WeakMap,_a=new WeakMap,br=new WeakMap,Gt=new WeakMap,Fa=new WeakMap,La=new WeakMap,Da=new WeakMap,yr=new WeakMap,ft=new WeakSet,po=function(){Ce(this,Ze,this.CONNECTING),Ce(this,Gt,new AbortController),Oe(this,Is)(Oe(this,ua),_t(this,ft,Yc).call(this)).then(Oe(this,mo)).catch(Oe(this,fo))},mo=new WeakMap,fo=new WeakMap,Yc=function(){var e;const t={mode:"cors",redirect:"follow",headers:{Accept:"text/event-stream",...Oe(this,br)?{"Last-Event-ID":Oe(this,br)}:void 0},cache:"no-store",signal:(e=Oe(this,Gt))==null?void 0:e.signal};return"window"in globalThis&&(t.credentials=this.withCredentials?"include":"same-origin"),t},go=new WeakMap,Oo=new WeakMap,vr=function(e,t){var a;Oe(this,Ze)!==this.CLOSED&&Ce(this,Ze,this.CLOSED);const r=new Qc("error",{code:t,message:e});(a=Oe(this,La))==null||a.call(this,r),this.dispatchEvent(r)},bo=function(e,t){var a;if(Oe(this,Ze)===this.CLOSED)return;Ce(this,Ze,this.CONNECTING);const r=new Qc("error",{code:t,message:e});(a=Oe(this,La))==null||a.call(this,r),this.dispatchEvent(r),Ce(this,_a,setTimeout(Oe(this,yo),Oe(this,Or)))},yo=new WeakMap,wr.CONNECTING=0,wr.OPEN=1,wr.CLOSED=2,Object.defineProperty(wr,Symbol.for("eventsource.supports-fetch-override"),{value:!0,writable:!1,configurable:!1,enumerable:!1});function OP(){const e="document"in globalThis?globalThis.document:void 0;return e&&typeof e=="object"&&"baseURI"in e&&typeof e.baseURI=="string"?e.baseURI:void 0}const bP=async(e,t)=>{const a=e.interceptors.request.handlers??[];let r=t;for(const s of a)s!=null&&s.fulfilled&&(r=await s.fulfilled(r));return r},yP=e=>{if(!e)return{};const t=typeof e.toJSON=="function"?e.toJSON():e;return Object.entries(t).reduce((a,[r,s])=>(s!=null&&(a[r]=String(s)),a),{})},vP=async(e,t,a)=>{const r=await bP(e,{url:t,method:"get",headers:{}}),s=yP(r.headers);return a&&(s["Last-Event-ID"]=a),s},wP=async(e,t)=>{const r=await Uc().streamConversationEvents(t),s=e.basePath??"";return s?`${s.replace(/\/$/,"")}${r.url}`:r.url};function Jc(e){const t=e.axios;return{async openConversationEvents(a,r={}){const s=await wP(e,a),n=await vP(t,s,r.lastEventId);return new wr(s,{fetch:async(o,i)=>fetch(o,{...i,headers:{...(i==null?void 0:i.headers)??{},...n}})})}}}Ct.http,tl.http,el.http,Me.http,ut.http,Ge.http,Ih.http;const Xc={get axios(){return se.get("axios",Ua)},get axiosForAuth(){return se.get("axiosForAuth",Ua)},get axiosForCoBrowseAuth(){return se.get("axiosForCoBrowseAuth",Ua)},get axiosForMeetingAuth(){return se.get("axiosForMeetingAuth",Ua)},get axiosForVisitorAuth(){return se.get("axiosForVisitorAuth",Ua)},get axiosForOnboarding(){return se.get("axiosForOnboarding",Ua)},get nexusSessionApi(){return se.get("nexusSessionApi",()=>new oP(void 0,Ct.http.url,this.axios))},get nexusDemoSessionApi(){return se.get("nexusDemoSessionApi",()=>new aP(void 0,Ct.http.url,this.axios))},get nexusOrgApi(){return se.get("nexusOrgApi",()=>new sP(void 0,Ct.http.url,this.axios))},get nexusCustomerApi(){return se.get("nexusCustomerApi",()=>new Xw(void 0,Ct.http.url,this.axios))},get nexusUserApi(){return se.get("nexusUserApi",()=>new pP(void 0,Ct.http.url,this.axios))},get nexusUserViewsApi(){return se.get("nexusUserViewsApi",()=>new dP(void 0,Ct.http.url,this.axios))},get nexusSuperAdminApi(){return se.get("nexusSuperAdminApi",()=>new lP(void 0,Ct.http.url,this.axios))},get nexusDemoApi(){return se.get("nexusDemoApi",()=>new eP(void 0,Ct.http.url,this.axios))},get citadelAuthorizationApi(){return se.get("citadelAuthorizationApi",()=>new mw(void 0,ut.http.url,this.axios))},get citadelAccountApi(){return se.get("citadelAccountApi",()=>new uw(void 0,ut.http.url,this.axios))},get citadelOAuthApi(){return se.get("citadelOAuthApi",()=>new gw(void 0,ut.http.url,this.axios))},get citadelRolesApi(){return se.get("citadelRolesApi",()=>new vw(void 0,ut.http.url,this.axios))},get citadelOrgApi(){return se.get("citadelOrgApi",()=>new bw(void 0,ut.http.url,this.axios))},get citadelUser(){return se.get("citadelUser",()=>new Iw(void 0,ut.http.url,this.axios))},get citadelSsoConfigurationApi(){return se.get("citadelSSOConfigurationApi",()=>new Pw(void 0,ut.http.url,this.axios))},get connect(){return se.get("connect",()=>new Dw(void 0,el.http.url,this.axios))},get integrations(){return se.get("integrations",()=>new zw(void 0,tl.http.url,this.axios))},get citadelSuperAdminOrgApi(){return se.get("citadelSuperAdminOrgApi",()=>new Vw(void 0,ut.http.url,this.axios))},get citadelSuperAdminUserApi(){return se.get("citadelSuperAdminUserApi",()=>new Tw(void 0,ut.http.url,this.axios))},get citadelSuperAdminRoleApi(){return se.get("citadelSuperAdminRoleApi",()=>new Rw(void 0,ut.http.url,this.axios))},get accessVisitor(){return se.get("accessVisitor",()=>new Lv(void 0,Ge.http.url,this.axiosForVisitorAuth))},get accessCoBrowse(){return se.get("accessCoBrowse",()=>new hv(void 0,Ge.http.url,this.axiosForAuth))},get accessCustomer(){return se.get("accessCustomer",()=>new gv(void 0,Ge.http.url,this.axiosForAuth))},get accessCoBrowseWindow(){return se.get("accessCoBrowseWindow",()=>new mv(void 0,Ge.http.url,this.axiosForAuth))},get accessSuperAdmin(){return se.get("accessSuperAdmin",()=>new Uv(void 0,Ge.http.url,this.axiosForAuth))},get accessAgent(){return se.get("accessAgent",()=>new iv(void 0,Ge.http.url,this.axiosForAuth))},get ui(){return se.get("ui",()=>new _v(void 0,Ge.http.url,this.axiosForAuth))},get organisation(){return se.get("organisation",()=>new Rv(void 0,Ge.http.url,this.axiosForAuth))},get flag(){return se.get("flag",()=>new wv(void 0,Ge.http.url,this.axiosForAuth))},get metric(){return se.get("metric",()=>new Vv(void 0,Ge.http.url,this.axiosForAuth))},get agentMeeting(){return se.get("agentMeeting",()=>new cv(void 0,Ge.http.url,this.axiosForMeetingAuth))},get customerMeetingWindow(){return se.get("customerMeetingWindow",()=>new bv(void 0,Ge.http.url,this.axiosForAuth))},get aiAgent(){return se.get("aiAgent",()=>new Fc(void 0,Me.http.url,this.axiosForAuth))},get aiAgentOnboarding(){return se.get("aiAgentOnboarding",()=>new Fc(void 0,Me.http.url,this.axiosForOnboarding))},get aiAgentOnboardingConversations(){return se.get("aiAgentOnboardingConversations",()=>new xc(void 0,Me.http.url,this.axiosForOnboarding))},get aiAgentOnboardingConversationsSse(){return se.get("aiAgentOnboardingConversationsSse",()=>Jc(this.aiAgentOnboardingConversations))},get aiTopicTree(){return se.get("aiTopicTree",()=>new ow(void 0,Me.http.url,this.axiosForAuth))},get aiConversations(){return se.get("aiConversations",()=>new xc(void 0,Me.http.url,this.axiosForAuth))},get aiConversationsSse(){return se.get("aiConversationsSse",()=>Jc(this.aiConversations))},get aiAnalyticsApi(){return se.get("aiAnalytics",()=>new jv(void 0,Me.http.url,this.axiosForAuth))},get aiEscalationConfiguration(){return se.get("aiEscalationConfiguration",()=>new tw(void 0,Me.http.url,this.axiosForAuth))},get topicWhitelist(){return se.get("topicAccessApi",()=>new lw(void 0,Me.http.url,this.axiosForAuth))},get organisationIntegration(){return se.get("accessOrganisationIntegration",()=>new Tv(void 0,Ge.http.url,this.axiosForAuth))},get widgetVisibility(){return se.get("widgetVisibility",()=>new rw(void 0,Me.http.url,this.axiosForAuth))},get dashboardAIConversations(){return se.get("dashboardAIConversations",()=>new Yv(void 0,Me.http.url,this.axiosForAuth))},get dashboardAISettings(){return se.get("dashboardAISettings",()=>new Zv(void 0,Me.http.url,this.axiosForAuth))},get coaching(){return se.get("coaching",()=>new Bv(void 0,Me.http.url,this.axiosForAuth))},get dashboardCoaching(){return se.get("dashboardCoaching",()=>new Hv(void 0,Me.http.url,this.axiosForAuth))},get dashboardConnectors(){return se.get("dashboardConnectors",()=>new Gv(void 0,Me.http.url,this.axiosForAuth))},get dashboardPersonas(){return se.get("dashboardPersonas",()=>new Xv(void 0,Me.http.url,this.axiosForAuth))},get dashboardConnections(){return se.get("dashboardConnections",()=>new Wv(void 0,Me.http.url,this.axiosForAuth))}};var Kc;(function(e){e.Good="good",e.Bad="bad"})(Kc||(Kc={}));var Zc;(function(e){e.INCREMENT="increment",e.DECREMENT="decrement"})(Zc||(Zc={}));var ed;(function(e){e.USERS="users",e.REPLAYS="replays",e.REPLAYS_TOTAL_WITH_INVALID="replays_total_with_invalid",e.REPLAYS_WATCHED="replays_watched",e.CUSTOMER_VALID_REPLAYS="customer_valid_replays",e.CUSTOMER_INVALID_REPLAYS="customer_invalid_replays",e.UNDEFINED="undefined"})(ed||(ed={}));var td;(function(e){e.Presence="presence",e.Replays="replays",e.Generic="generic"})(td||(td={}));var ad;(function(e){e.ONLINE="0_ONLINE",e.IDLE="1_IDLE",e.OFFLINE="2_OFFLINE"})(ad||(ad={}));var rd;(function(e){e.SessionReplay="customer-session-replay"})(rd||(rd={}));var sd;(function(e){e.SIGNUP="SIGNUP",e.WEEKLY_REPORT="WEEKLY_REPORT",e.RECOVER_ACCOUNT="RECOVER_ACCOUNT",e.INVITE_USER="INVITE_USER",e.REQUEST_ACCESS="REQUEST_ACCESS",e.SETUP_FULLVIEW="SETUP_FULLVIEW",e.ACCEPT_REQUEST_ACCESS="ACCEPT_REQUEST_ACCESS",e.ACCEPT_INVITATION="ACCEPT_INVITATION",e.ENTERPRISE_PLAN_REQUEST="ENTERPRISE_PLAN_REQUEST",e.SESSION_REPLAY_ACCESS_REQUEST="SESSION_REPLAY_ACCESS_REQUEST",e.SESSION_REPLAY_UPGRADE_REQUEST="SESSION_REPLAY_UPGRADE_REQUEST",e.RECORDED_REPLAYS_THRESHOLD_REACHED="RECORDED_REPLAYS_THRESHOLD_REACHED",e.SESSION_REPLAY_SHARED="SESSION_REPLAY_SHARED",e.USER_ROLE_CHANGED="USER_ROLE_CHANGED",e.BUG_REPORTED="BUG_REPORTED",e.TRIAL_REMINDER_5_DAYS_LEFT="TRIAL_REMINDER_5_DAYS_LEFT",e.TRIAL_REMINDER_2_DAYS_LEFT="TRIAL_REMINDER_2_DAYS_LEFT",e.CO_BROWSE_EMAIL="CO_BROWSE_EMAIL",e.SUPPORT_REQUESTED="SUPPORT_REQUESTED",e.CUSTOMER_CO_BROWSE_NOTIFICATION="CUSTOMER_CO_BROWSE_NOTIFICATION",e.AGENT_INVITED_TO_MEETING="AGENT_INVITED_TO_MEETING",e.AI_AGENT_REQUEST="AI_AGENT_REQUEST"})(sd||(sd={}));var nd;(function(e){e.AWS_EVENTS="aws.events",e.FV_EVENT="fv.event"})(nd||(nd={}));var od;(function(e){e.FV_WS_MESSAGE="fv.ws-message",e.FV_SEND_EMAIL="fv.send-email",e.FV_WS_SESSION_LINK_IDENTITY="fv.ws-session-link-identity",e.FV_CUSTOMER_IDENTITY="fv.customer-identity",e.FV_SYNC_ROLES="fv.sync-roles",e.FV_USER_SIGNED_UP="fv.user-signed-up",e.FV_USER_SIGNED_IN="fv.user-signed-in",e.FV_SCRIPT_INJECTED="fv.script-injected",e.FV_SCRIPT_INSTALLED="fv.script-installed",e.FV_API_INTEGRATED="fv.api-integrated",e.FV_CALL_CREATED="fv.call-created",e.FV_CALL_DENIED="fv.call-denied",e.FV_CALL_ENDED="fv.call-ended",e.FV_CALL_IGNORED="fv.call-ignored",e.FV_FIRST_CALL_CREATED="fv.first-call-created",e.FV_USER_FORCE_CHANGED_PASSWORD="fv.user-force-changed-password",e.FV_WS_BROADCAST_MESSAGE="fv.ws-broadcast-message",e.FV_USER_UPDATE="fv.user-update",e.FV_ACCEPT_INVITATION="fv.accept-invitation",e.FV_SESSION_REPLAY_METRIC="fv.session-replay-metric",e.FV_FIRST_WATCHED_SESSION_REPLAY="fv.first-watched-session-replay",e.FV_VALID_SESSION_REPLAY_PROCESSED="fv.valid-session-replay-processed",e.FV_ADMIN_ACCEPTED_ACCESS_REQUEST="fv.admin-accepted-access-request",e.FV_ORGANISATION_CREATED="fv.organisation-created",e.FV_WORKSPACE_ACTIVATED="fv.workspace-activated",e.FV_INBOUND_REQUEST="fv.inbound-request",e.FV_REPLAY_SHARED="fv.replay-shared",e.FV_INTEGRATION_AUTHORIZED="fv.integration-authorized",e.FV_SUPPORT_REQUESTED="fv.support-requested",e.FV_TRANSCRIPT_CREATED="fv.transcript-created",e.FV_COBROWSE_ACCEPTED="fv.cobrowse-accepted",e.FV_CUSTOMER_JOINED_MEETING="fv.customer-joined-meeting",e.FV_CUSTOMER_INVITED_TO_MEETING="fv.customer-invited-to-meeting",e.FV_CUSTOMER_LEFT_MEETING="fv.customer-left-meeting",e.FV_AI_SESSION_FAILED="fv.ai-session-failed",e.FV_AI_SESSION_COMPLETED="fv.ai-session-completed",e.FV_AI_SESSION_ABORTED="fv.ai-session-aborted",e.FV_AI_SESSION_UNSUCCESSFUL_RESOLUTION="fv.ai-unsuccessful-resolution",e.FV_BUG_REPORT_ENDED="fv.bug-report-ended"})(od||(od={}));var id;(function(e){e.SessionReplay_Data="fv-session-replay-data",e.SessionReplay_EnrichedData="fv-session-replay-enriched-data",e.SessionReplay_SessionCreated="fv-session-replay-created",e.SessionReplay_SessionMerged="fv-session-replay-merged",e.SessionReplay_SessionFinished="fv-session-replay-aggregates",e.SessionReplay_SessionPersisted="fv-session-replay-persisted",e.SessionReplay_ThresholdLimitReached="fv-session-replay-threshold-limit-reached",e.Customer_Activity="fv-customer-activity",e.Customer_Activity_Throttled="fv-customer-activity-throttled",e.Customer_Join_Room="fv-customer-join-room",e.Customer_Replay_Updates="fv-customer-replay-updates",e.SessionReplay_Events="fv-replay-events",e.SessionReplay_EnrichedEvents="fv-replay-events-enriched",e.Counts="fv-counts",e.Counts_Throttled="fv-counts-throttled",e.Interim_Events="fv-replay-interim-events",e.Organisation_Notifications="fv-organisation-notifications",e.Configs_Updated="fv-configs-updated",e.Auditor="fv-auditor"})(id||(id={}));var ld;(function(e){e.SINGLE_FIELD="SINGLE_FIELD",e.DATE="DATE",e.RANGE="RANGE",e.RANGE_DATE="RANGE_DATE",e.TRUTHY="TRUTHY"})(ld||(ld={}));var cd;(function(e){e.TICKET_CREATED="TICKET_CREATED"})(cd||(cd={}));var dd;(function(e){e.INTERCOM="intercom",e.ZENDESK="zendesk",e.SALESFORCE="salesforce",e.HUBSPOT="hubspot"})(dd||(dd={}));var ud;(function(e){e.ACCEPT_INVITATION="ACCEPT_INVITATION"})(ud||(ud={}));var hd;(function(e){e[e.Unspecified=0]="Unspecified",e[e.Count=1]="Count",e[e.Rate=2]="Rate",e[e.Gauge=3]="Gauge"})(hd||(hd={}));var pd;(function(e){e.Weekly="weekly"})(pd||(pd={}));var md;(function(e){e.ADMIN="admin",e.USER="user",e.SYSTEM_USERS="system-users",e.SUPER_ADMIN="super-admin"})(md||(md={}));var fd;(function(e){e.ASSIGN_ROLE="ASSIGN_ROLE",e.REMOVE_ROLE="REMOVE_ROLE"})(fd||(fd={}));var gd;(function(e){e.WATCHED_REPLAY="WATCHED_REPLAY"})(gd||(gd={}));var Od;(function(e){e.sdk="sdk",e.dashboard="dashboard",e.callWindow="call-window"})(Od||(Od={}));var bd;(function(e){e.REQUESTED="0_REQUESTED",e.INVITED="1_INVITED",e.ACTIVE="2_ACTIVE",e.CREATED="3_CREATED",e.DELETED="4_DELETED"})(bd||(bd={}));var yd;(function(e){e.LAST_ACTIVITY="LAST_ACTIVITY"})(yd||(yd={}));var vd;(function(e){e.GOOGLE="google",e.MICROSOFT="microsoft",e.OKTA="okta"})(vd||(vd={}));var wd;(function(e){e.SUPPORT="ticket_sidebar",e.CHAT="chat_sidebar"})(wd||(wd={}));var C;(function(e){e[e.CONTINUE=100]="CONTINUE",e[e.SWITCHING_PROTOCOLS=101]="SWITCHING_PROTOCOLS",e[e.PROCESSING=102]="PROCESSING",e[e.EARLY_HINTS=103]="EARLY_HINTS",e[e.OK=200]="OK",e[e.CREATED=201]="CREATED",e[e.ACCEPTED=202]="ACCEPTED",e[e.NON_AUTHORITATIVE_INFORMATION=203]="NON_AUTHORITATIVE_INFORMATION",e[e.NO_CONTENT=204]="NO_CONTENT",e[e.RESET_CONTENT=205]="RESET_CONTENT",e[e.PARTIAL_CONTENT=206]="PARTIAL_CONTENT",e[e.MULTI_STATUS=207]="MULTI_STATUS",e[e.MULTIPLE_CHOICES=300]="MULTIPLE_CHOICES",e[e.MOVED_PERMANENTLY=301]="MOVED_PERMANENTLY",e[e.MOVED_TEMPORARILY=302]="MOVED_TEMPORARILY",e[e.SEE_OTHER=303]="SEE_OTHER",e[e.NOT_MODIFIED=304]="NOT_MODIFIED",e[e.USE_PROXY=305]="USE_PROXY",e[e.TEMPORARY_REDIRECT=307]="TEMPORARY_REDIRECT",e[e.PERMANENT_REDIRECT=308]="PERMANENT_REDIRECT",e[e.BAD_REQUEST=400]="BAD_REQUEST",e[e.UNAUTHORIZED=401]="UNAUTHORIZED",e[e.PAYMENT_REQUIRED=402]="PAYMENT_REQUIRED",e[e.FORBIDDEN=403]="FORBIDDEN",e[e.NOT_FOUND=404]="NOT_FOUND",e[e.METHOD_NOT_ALLOWED=405]="METHOD_NOT_ALLOWED",e[e.NOT_ACCEPTABLE=406]="NOT_ACCEPTABLE",e[e.PROXY_AUTHENTICATION_REQUIRED=407]="PROXY_AUTHENTICATION_REQUIRED",e[e.REQUEST_TIMEOUT=408]="REQUEST_TIMEOUT",e[e.CONFLICT=409]="CONFLICT",e[e.GONE=410]="GONE",e[e.LENGTH_REQUIRED=411]="LENGTH_REQUIRED",e[e.PRECONDITION_FAILED=412]="PRECONDITION_FAILED",e[e.REQUEST_TOO_LONG=413]="REQUEST_TOO_LONG",e[e.REQUEST_URI_TOO_LONG=414]="REQUEST_URI_TOO_LONG",e[e.UNSUPPORTED_MEDIA_TYPE=415]="UNSUPPORTED_MEDIA_TYPE",e[e.REQUESTED_RANGE_NOT_SATISFIABLE=416]="REQUESTED_RANGE_NOT_SATISFIABLE",e[e.EXPECTATION_FAILED=417]="EXPECTATION_FAILED",e[e.IM_A_TEAPOT=418]="IM_A_TEAPOT",e[e.INSUFFICIENT_SPACE_ON_RESOURCE=419]="INSUFFICIENT_SPACE_ON_RESOURCE",e[e.METHOD_FAILURE=420]="METHOD_FAILURE",e[e.MISDIRECTED_REQUEST=421]="MISDIRECTED_REQUEST",e[e.UNPROCESSABLE_ENTITY=422]="UNPROCESSABLE_ENTITY",e[e.LOCKED=423]="LOCKED",e[e.FAILED_DEPENDENCY=424]="FAILED_DEPENDENCY",e[e.UPGRADE_REQUIRED=426]="UPGRADE_REQUIRED",e[e.PRECONDITION_REQUIRED=428]="PRECONDITION_REQUIRED",e[e.TOO_MANY_REQUESTS=429]="TOO_MANY_REQUESTS",e[e.REQUEST_HEADER_FIELDS_TOO_LARGE=431]="REQUEST_HEADER_FIELDS_TOO_LARGE",e[e.UNAVAILABLE_FOR_LEGAL_REASONS=451]="UNAVAILABLE_FOR_LEGAL_REASONS",e[e.INTERNAL_SERVER_ERROR=500]="INTERNAL_SERVER_ERROR",e[e.NOT_IMPLEMENTED=501]="NOT_IMPLEMENTED",e[e.BAD_GATEWAY=502]="BAD_GATEWAY",e[e.SERVICE_UNAVAILABLE=503]="SERVICE_UNAVAILABLE",e[e.GATEWAY_TIMEOUT=504]="GATEWAY_TIMEOUT",e[e.HTTP_VERSION_NOT_SUPPORTED=505]="HTTP_VERSION_NOT_SUPPORTED",e[e.INSUFFICIENT_STORAGE=507]="INSUFFICIENT_STORAGE",e[e.NETWORK_AUTHENTICATION_REQUIRED=511]="NETWORK_AUTHENTICATION_REQUIRED"})(C||(C={}));var I;(function(e){e.E0000="E0000",e.E0040="E0040",e.E0041="E0041",e.E0050="E0050",e.E0090="E0090",e.E0091="E0091",e.E0092="E0092",e.E0093="E0093",e.E0094="E0094",e.E0095="E0095",e.E0096="E0096",e.E0097="E0097",e.E0098="E0098",e.E2000="E2000",e.E2001="E2001",e.E2002="E2002",e.E2003="E2003",e.E2050="E2050",e.E2051="E2051",e.E2052="E2052",e.E2053="E2053",e.E2054="E2054",e.E2055="E2055",e.E2056="E2056",e.E2057="E2057",e.E2058="E2058",e.E2059="E2059",e.E2060="E2060",e.E2061="E2061",e.E2062="E2062",e.E3000="E3000",e.E4000="E4000",e.E4050="E4050",e.E5000="E5000",e.E5001="E5001",e.E5002="E5002",e.E5003="E5003",e.E5004="E5004",e.E5005="E5005",e.E5006="E5006",e.E5007="E5007",e.E5008="E5008",e.E5009="E5009",e.E5010="E5010",e.E5011="E5011",e.E5012="E5012",e.E5013="E5013",e.E5014="E5014",e.E5015="E5015",e.E5016="E5016",e.E5017="E5017",e.E5055="E5055",e.E5056="E5056",e.E5057="E5057",e.E5058="E5058",e.E6000="E6000",e.E6001="E6001",e.E6002="E6002",e.E6003="E6003",e.E7000="E7000",e.E7001="E7001",e.E7002="E7002",e.E7003="E7003",e.E7004="E7004",e.E7500="E7500",e.E7501="E7501",e.E7502="E7502",e.E7503="E7503",e.E7504="E7504",e.E7505="E7505",e.E7506="E7506",e.E8000="E8000",e.E8001="E8001",e.E8002="E8002",e.E8003="E8003",e.E8004="E8004",e.E8005="E8005",e.E8006="E8006",e.E8030="E8030",e.E8031="E8031",e.E8032="E8032",e.E8033="E8033",e.E8034="E8034",e.E9000="E9000",e.E10000="E10000",e.E15401="E15401",e.E15403="E15403",e.E15404="E15404"})(I||(I={}));var Pd;(function(e){e.ERROR="Error",e.LOG="LogError",e.ADD_LOG="AddLogError",e.USER_NOT_FOUND="UserNotFoundError",e.USER_EXISTS="UserExistsError",e.USER_CREATION="UserCreationError",e.USER_DELETION="UserDeletionError",e.ORGANISATION_EXISTS="OrganisationExistsError",e.ORGANISATION_NOT_FOUND="OrganisationNotFoundError",e.ORGANISATION_CREATION="OrganisationCreationError",e.ORGANISATION_ACCESS_REQUEST_CREATION="OrganisationAccessRequestCreationError",e.ORGANISATION_ACCESS_REQUEST_EXISTS="OrganisationAccessRequestExists",e.ORGANISATION_ACCESS_REQUEST_NOT_FOUND="OrganisationAccessRequestNotFound",e.ORGANISATION_INVITATION_CREATION="OrganisationInvitationCreationError",e.ORGANISATION_INVITATION_EXISTS="OrganisationInvitationExists",e.ORGANISATION_INVITATION_NOT_FOUND="OrganisationInvitationNotFound",e.ORGANISATION_JOIN_LINK_CREATION="OrganisationJoinLinkCreationError",e.ORGANISATION_JOIN_LINK_NOT_FOUND="OrganisationJoinLinkNotFoundError",e.ORGANISATION_SCRIPT_NOT_INSTALLED="OrganisationScriptNotInstalled",e.ORGANISATION_CONFIG_UPDATES_VALIDATION="OrganisationConfigUpdatesValidationError",e.VALIDATION="ValidationError",e.EMAIL_HANDLER="EmailHandlerError",e.INVALID_USERNAME_PASSWORD="InvalidUsernamePasswordError",e.INVALID_TOKEN="InvalidTokenError",e.TOKEN_NOT_PRESENT_ON_HEADERS="TokenNotPresentOnHeadersError",e.TOKEN_MISSING_CLAIMS="TokenMissingClaimsError",e.FORCE_CHANGE_PASSWORD="ForceChangePasswordError",e.FORGOT_PASSWORD="ForgotPasswordError",e.DAILY_ROOM_CREATION="DailyRoomCreationError",e.ROLE_ASSIGNMENT="AssignRoleError",e.ROLE_REMOVAL="RemoveRoleError",e.GET_USERS_BY_ROLE="GetUsersByRoleError",e.ROLE_REQUIRED="RoleRequiredError",e.LOGIN="LoginError",e.AUTH="AuthError",e.LOGOUT="LogoutError",e.REFRESH_TOKEN="RefreshTokenError",e.SIGNUP="SignupError",e.PASSWORD_RESET_REQUEST="PasswordResetRequestError",e.PASSWORD_RESET_REQUEST_CREATION="PasswordResetRequestCreationError",e.PASSWORD_RESET_REQUEST_NOT_FOUND="PasswordResetRequestNotFoundError",e.PASSWORD_CHANGE="PasswordChangeError",e.WEAK_PASSWORD="WeakPasswordError",e.INVALID_EMAIL_DOMAIN="InvalidEmailDomainError",e.OKTA_DOMAIN_NOT_CONFIGURED="OktaDomainNotConfiguredError",e.ZENDSEK_CLIENT_NOT_AUTHORISED="ZendeskClientNotAuthorisedError",e.SESSION_UNKNOWN="SessionUnknownError",e.SESSION="SessionError",e.SESSION_WORKFLOW="SessionWorkflowError",e.SESSION_NOT_FOUND="SessionNotFoundError",e.WEBSOCKET="WebsocketError",e.WEBSOCKET_CONNECTION="WebsocketConnectionError",e.WEBSOCKET_MESSAGE="WebsocketMessageError",e.WEBSOCKET_STATE="WebsocketStateError",e.WEBSOCKET_STATE_NOT_FOUND="WebsocketStateNotFoundError",e.CUSTOMER="CustomerError",e.CUSTOMER_CREATION="CustomerCreationError",e.CUSTOMER_UPDATE="CustomerUpdateError",e.CUSTOMER_NOT_FOUND="CustomerNotFoundError",e.MULTIPLE_CUSTOMERS_FOUND_FOR_GIVEN_EMAIL_OR_EXTERNAL_ID="MultipleCustomersFoundForGivenEmailOrExternalIdError",e.CUSTOMER_NO_ACTIVE_CONNECTION_FOUND="CustomerNoActiveConnectionFoundError",e.CUSTOMER_IN_ANOTHER_CALL="CustomerInAnotherCallError",e.REPLAY="ReplayError",e.REPLAY_NOT_FOUND="ReplayNotFoundError",e.REPLAY_VIEW_NOT_FOUND="ReplayViewNotFoundError",e.DEFAULT_VIEW_DELETION_ERROR="DefaultViewDeletionError",e.MONGODB_SERVER_ERROR="MongoDbServerError",e.CALL="CallError",e.CALL_NOT_FOUND="CallNotFoundError",e.PARTICIPANT_NOT_INVITED="ParticipantNotInvitedError",e.CALL_ENDED="CallEndedError",e.CALL_NOT_AVAILABLE_FOR_ANONYMOUS="CallNotAvailableForAnonymous",e.PARTICIPANT_ALREADY_JOINED="ParticipantAlreadyJoinedError",e.CALL_DOES_NOT_BELONG_TO_THE_SAME_ORGANISATION="CallDoesNotBelongToTheSameOrganisationError",e.INSUFFICIENT_SCOPE_ERROR="InsufficientScopeError",e.REPLAY_NOT_ACCESSIBLE="ReplayNotAccessibleError"})(Pd||(Pd={}));var f=function(){function e(a,r,s){this.code=a,this.description=r,this.status=s}e.get=function(r){var s=Object.entries(e).find(function(n){var o=n[0],i=e[o];return i.code===r});if(s)return s[1];throw new Error("Unknown error code provided: "+r)};var t=e.prototype;return t.toString=function(){return"["+this.code+"]: "+this.description},e}();f.E0000=new f(I.E0000,"An unknown error has occurred.",C.INTERNAL_SERVER_ERROR),f.E0040=new f(I.E0040,"Log Error",C.BAD_REQUEST),f.E0041=new f(I.E0041,"Cannot add log",C.BAD_REQUEST),f.E0050=new f(I.E0050,"Room cannot be created.",C.INTERNAL_SERVER_ERROR),f.E0090=new f(I.E0090,"Role cannot be assigned.",C.BAD_REQUEST),f.E0091=new f(I.E0091,"Role cannot be removed.",C.BAD_REQUEST),f.E0092=new f(I.E0092,"Cannot get users by role.",C.BAD_REQUEST),f.E0093=new f(I.E0093,"User doesn't have the required role.",C.FORBIDDEN),f.E0094=new f(I.E0094,"Role not found.",C.NOT_FOUND),f.E0095=new f(I.E0095,"Role already exists.",C.BAD_REQUEST),f.E0096=new f(I.E0096,"Role cannot be created.",C.BAD_REQUEST),f.E0097=new f(I.E0097,"Cannot add claim to role.",C.BAD_REQUEST),f.E0098=new f(I.E0098,"Invalid claim provided.",C.BAD_REQUEST),f.E2000=new f(I.E2000,"The user could not be found.",C.NOT_FOUND),f.E2001=new f(I.E2001,"The user already exists.",C.BAD_REQUEST),f.E2002=new f(I.E2002,"User cannot be created",C.BAD_REQUEST),f.E2003=new f(I.E2003,"User cannot be deleted",C.BAD_REQUEST),f.E2050=new f(I.E2050,"The organisation already exists.",C.BAD_REQUEST),f.E2051=new f(I.E2051,"The organisation could not be found.",C.NOT_FOUND),f.E2052=new f(I.E2052,"The organisation could not be created.",C.BAD_REQUEST),f.E2053=new f(I.E2053,"Organisation access request cannot be created.",C.BAD_REQUEST),f.E2054=new f(I.E2054,"Organisation access already requested.",C.BAD_REQUEST),f.E2055=new f(I.E2055,"Organisation access request not found.",C.NOT_FOUND),f.E2056=new f(I.E2056,"Organisation invitation cannot be created.",C.BAD_REQUEST),f.E2057=new f(I.E2057,"Organisation invitation already sent.",C.BAD_REQUEST),f.E2058=new f(I.E2058,"Organisation invitation not found.",C.NOT_FOUND),f.E2059=new f(I.E2059,"Organisation join link cannot be created.",C.BAD_REQUEST),f.E2060=new f(I.E2060,"Organisation join link not found.",C.NOT_FOUND),f.E2061=new f(I.E2061,"Organisation doesn't has script installed.",C.BAD_REQUEST),f.E2062=new f(I.E2062,"Organisation validation updates error.",C.BAD_REQUEST),f.E3000=new f(I.E3000,"The data is invalid.",C.BAD_REQUEST),f.E4000=new f(I.E4000,"No email event handler was found to handle the event, this should not have happened!",C.INTERNAL_SERVER_ERROR),f.E4050=new f(I.E4050,"Zendesk client not authorised.",C.UNAUTHORIZED),f.E5000=new f(I.E5000,"The username or password is invalid.",C.UNAUTHORIZED),f.E5001=new f(I.E5001,"The token provided is invalid.",C.UNAUTHORIZED),f.E5002=new f(I.E5002,"Cannot force change password",C.BAD_REQUEST),f.E5003=new f(I.E5003,"Cannot login",C.UNAUTHORIZED),f.E5004=new f(I.E5004,"Cannot proceed on authentication process",C.UNAUTHORIZED),f.E5005=new f(I.E5005,"Cannot logout",C.BAD_REQUEST),f.E5006=new f(I.E5006,"Cannot refresh token",C.UNAUTHORIZED),f.E5007=new f(I.E5007,"Cannot signup",C.BAD_REQUEST),f.E5008=new f(I.E5008,"Cannot move forward with the forgot password flow",C.BAD_REQUEST),f.E5009=new f(I.E5009,"The password reset flow encountered an error",C.INTERNAL_SERVER_ERROR),f.E5010=new f(I.E5010,"Cannot create password reset request",C.BAD_REQUEST),f.E5011=new f(I.E5011,"Password reset request not found",C.NOT_FOUND),f.E5012=new f(I.E5012,"Password cannot be changed",C.INTERNAL_SERVER_ERROR),f.E5013=new f(I.E5013,"Password too weak",C.BAD_REQUEST),f.E5014=new f(I.E5014,"Invalid domain for email",C.BAD_REQUEST),f.E5015=new f(I.E5015,"Okta domain not configured",C.BAD_REQUEST),f.E5016=new f(I.E5016,"Insuficient scope",C.FORBIDDEN),f.E5017=new f(I.E5017,"Token not present on headers",C.UNAUTHORIZED),f.E5055=new f(I.E5055,"The provided token is expired",C.UNAUTHORIZED),f.E5056=new f(I.E5056,"The provided token fails Audience URI validation",C.UNAUTHORIZED),f.E5057=new f(I.E5057,"The provided token is not yet valid: nbf is into the future.",C.UNAUTHORIZED),f.E5058=new f(I.E5058,"The provided token is missing claims to access this resource.",C.UNAUTHORIZED),f.E6000=new f(I.E6000,"Unknown session error occurred: this should not have happened",C.INTERNAL_SERVER_ERROR),f.E6001=new f(I.E6001,"A session error occurred",C.INTERNAL_SERVER_ERROR),f.E6002=new f(I.E6002,"The session workflow encountered an error",C.INTERNAL_SERVER_ERROR),f.E6003=new f(I.E6003,"The session could not be found",C.NOT_FOUND),f.E7000=new f(I.E7000,"A websocket error occurred",C.INTERNAL_SERVER_ERROR),f.E7001=new f(I.E7001,"A websocket connection error occurred",C.INTERNAL_SERVER_ERROR),f.E7002=new f(I.E7002,"A websocket message error occurred",C.INTERNAL_SERVER_ERROR),f.E7003=new f(I.E7003,"A websocket state error occurred",C.INTERNAL_SERVER_ERROR),f.E7004=new f(I.E7004,"The websocket session was not found",C.NOT_FOUND),f.E7500=new f(I.E7500,"A call error occurred",C.INTERNAL_SERVER_ERROR),f.E7501=new f(I.E7501,"The call not found",C.NOT_FOUND),f.E7502=new f(I.E7502,"Participant was not invited to the call",C.BAD_REQUEST),f.E7503=new f(I.E7503,"Call has already ended",C.BAD_REQUEST),f.E7504=new f(I.E7504,"Participant has already joined the call",C.BAD_REQUEST),f.E7505=new f(I.E7505,"Call does not belong to the same organisation",C.BAD_REQUEST),f.E7506=new f(I.E7506,"Call not available for anonymous users",C.BAD_REQUEST),f.E8000=new f(I.E8000,"A customer error occurred",C.INTERNAL_SERVER_ERROR),f.E8001=new f(I.E8001,"Customer cannot be created",C.BAD_REQUEST),f.E8002=new f(I.E8002,"Customer cannot be updated",C.BAD_REQUEST),f.E8003=new f(I.E8003,"Customer could not be found",C.NOT_FOUND),f.E8004=new f(I.E8004,"No active end user connections found",C.BAD_REQUEST),f.E8030=new f(I.E8030,"Generic replay error",C.INTERNAL_SERVER_ERROR),f.E8031=new f(I.E8031,"Replay cannot be found",C.NOT_FOUND),f.E8032=new f(I.E8032,"Replay view cannot be found",C.NOT_FOUND),f.E8033=new f(I.E8033,"Default replay view cannot be deleted",C.BAD_REQUEST),f.E8034=new f(I.E8034,"You don't have access to this replay",C.FORBIDDEN),f.E8005=new f(I.E8005,"Customer is in another call",C.BAD_REQUEST),f.E8006=new f(I.E8006,"Multiple customers found with given email or externalId",C.BAD_REQUEST),f.E9000=new f(I.E9000,"A database error has occurred",C.INTERNAL_SERVER_ERROR),f.E10000=new f(I.E10000,"Missing or invalid customer identity",C.BAD_REQUEST),f.E15401=new f(I.E15401,"You are not authorized to access this resource",C.UNAUTHORIZED),f.E15403=new f(I.E15403,"You are not authorized to access this resource",C.FORBIDDEN),f.E15404=new f(I.E15404,"The resource you are looking for was not found",C.NOT_FOUND);var Pr=(e=>(e.RrWebFullSnapshot="RRWebFullSnapshot",e.RrWebMeta="RRWebMeta",e.RrWebUserInteraction="proxy.php?url=RRWebUserInteraction",e.RrWebOther="RRWebOther",e.RrWebAgentInteraction="proxy.php?url=RRWebAgentInteraction",e.ConsoleLog="ConsoleLog",e.ConsoleError="ConsoleError",e.ConsoleWarn="ConsoleWarn",e.DomMouseClick="DomMouseClick",e.DomRageClick="DomRageClick",e.Network="Network",e.Navigation="Navigation",e.TabSwitch="TabSwitch",e.TabOpen="TabOpen",e.TabClose="TabClose",e.AgentDomMouseClick="AgentDomMouseClick",e.AgentDomRageClick="AgentDomRageClick",e.HiddenEvents="HiddenEvents",e.HiddenConsoleLog="HiddenConsoleLog",e.HiddenConsoleError="HiddenConsoleError",e.HiddenConsoleWarn="HiddenConsoleWarn",e.HiddenNetwork="HiddenNetwork",e.DeviceInfo="DeviceInfo",e.CoBrowseCameraOn="CoBrowseCameraOn",e))(Pr||{});const PP=e=>e===Pr.RrWebFullSnapshot||e===Pr.RrWebMeta||e===Pr.RrWebUserInteraction||e===Pr.RrWebOther,AP=e=>{var a,r;const t=e.config??{headers:{}};return((a=t.method)==null?void 0:a.toLowerCase())!=="get"&&!t.headers["Content-Type"]&&(t.headers["Content-Type"]="application/json"),!e.token||(r=t.url)!=null&&r.endsWith("/Authorization/refresh")||(t.headers.Authorization=`Bearer ${e.token}`),t};let VP=0;function EP(e,t){return(t.component==="sdk"?Pn:ta().isPullRequest?Ch:wn).http.get({fvRegion:e,version:t.version,o:t.organisationId,w:t.sdkWorkerCustomPath,s:VP++}).toString().replace(/\/$/,"")}function RP(e,t){const a=EP(e,t),r=document.createElement("script");return r.async=!0,r.src=a,r.dataset.org=t.organisationId,t.sdkWorkerCustomPath&&(r.dataset.worker=t.sdkWorkerCustomPath),r}var SP=typeof globalThis=="object"&&globalThis&&globalThis.Object===Object&&globalThis;const Ad=SP;var TP=typeof self=="object"&&self&&self.Object===Object&&self,CP=Ad||TP||Function("return this")();const Ft=CP;var IP=Ft.Symbol;const zt=IP;var Vd=Object.prototype,UP=Vd.hasOwnProperty,xP=Vd.toString,Ar=zt?zt.toStringTag:void 0;function _P(e){var t=UP.call(e,Ar),a=e[Ar];try{e[Ar]=void 0;var r=!0}catch{}var s=xP.call(e);return r&&(t?e[Ar]=a:delete e[Ar]),s}var FP=Object.prototype,LP=FP.toString;function DP(e){return LP.call(e)}var MP="[object Null]",NP="[object Undefined]",Ed=zt?zt.toStringTag:void 0;function Ma(e){return e==null?e===void 0?NP:MP:Ed&&Ed in Object(e)?_P(e):DP(e)}function Na(e){return e!=null&&typeof e=="object"}var jP="[object Symbol]";function vo(e){return typeof e=="symbol"||Na(e)&&Ma(e)==jP}function kP(e,t){for(var a=-1,r=e==null?0:e.length,s=Array(r);++a-1&&e%1==0&&e-1&&e%1==0&&e<=dA}function Ro(e){return e!=null&&Eo(e.length)&&!Cd(e)}function uA(e,t,a){if(!Us(a))return!1;var r=typeof t;return(r=="number"?Ro(a)&&Ao(t,a.length):r=="string"&&t in a)?Vo(a[t],e):!1}var hA=Object.prototype;function pA(e){var t=e&&e.constructor,a=typeof t=="function"&&t.prototype||hA;return e===a}function mA(e,t){for(var a=-1,r=Array(e);++a-1}function SV(e,t){var a=this.__data__,r=xs(a,e);return r<0?(++this.size,a.push([e,t])):a[r][1]=t,this}function Lt(e){var t=-1,a=e==null?0:e.length;for(this.clear();++ti))return!1;var c=n.get(e),d=n.get(t);if(c&&d)return c==t&&d==e;var h=-1,m=!0,O=a&vE?new Ls:void 0;for(n.set(e,t),n.set(t,e);++hpR(e,n=>n.test(s.src)));return(r=a==null?void 0:a[0])==null?void 0:r.src}async function bR(e){await new Promise(t=>setTimeout(t,e))}const iu=Symbol("BREAK_RETRY");async function Mo(e,t,a=1){const{noOfRetries:r=3,sleepFn:s,signal:n}=t;return rn!=null&&n.aborted||a>=r||o===iu?Promise.reject(iu):(await bR(s(a)),Mo(e,t,a+1)))}async function yR(e,t={}){if("sleepFn"in t)return Mo(e,t);{const{sleepTime:a=1e3}=t;return Mo(e,{...t,sleepFn:()=>a})}}const vR={noOfRetries:10,sleepTime:2500};var wR=typeof process=="object"&&{APP_REGION:'"us1"',APP_PULL_REQUEST:'"false"',APP_ENV:'"prod"',APP_FV_REGION:'"us1"',APP_VERSION:'"1.1658.0"',APP_NAME:'"sdk-loader"'}&&{APP_REGION:'"us1"',APP_PULL_REQUEST:'"false"',APP_ENV:'"prod"',APP_FV_REGION:'"us1"',APP_VERSION:'"1.1658.0"',APP_NAME:'"sdk-loader"'}.NODE_DEBUG&&/\bsemver\b/i.test({APP_REGION:'"us1"',APP_PULL_REQUEST:'"false"',APP_ENV:'"prod"',APP_FV_REGION:'"us1"',APP_VERSION:'"1.1658.0"',APP_NAME:'"sdk-loader"'}.NODE_DEBUG)?(...e)=>console.error("SEMVER",...e):()=>{};const PR="2.0.0",lu=256,AR=Number.MAX_SAFE_INTEGER||9007199254740991,VR=16,ER=lu-6;var RR={MAX_LENGTH:lu,MAX_SAFE_COMPONENT_LENGTH:VR,MAX_SAFE_BUILD_LENGTH:ER,MAX_SAFE_INTEGER:AR,RELEASE_TYPES:["major","premajor","minor","preminor","patch","prepatch","prerelease"],SEMVER_SPEC_VERSION:PR,FLAG_INCLUDE_PRERELEASE:1,FLAG_LOOSE:2},cu={exports:{}};(function(e,t){const{MAX_SAFE_COMPONENT_LENGTH:a,MAX_SAFE_BUILD_LENGTH:r,MAX_LENGTH:s}=RR,n=wR;t=e.exports={};const o=t.re=[],i=t.safeRe=[],l=t.src=[],c=t.t={};let d=0;const h="[a-zA-Z0-9-]",m=[["\\s",1],["\\d",s],[h,r]],O=b=>{for(const[g,M]of m)b=b.split(`${g}*`).join(`${g}{0,${M}}`).split(`${g}+`).join(`${g}{1,${M}}`);return b},p=(b,g,M)=>{const N=O(g),j=d++;n(b,j,g),c[b]=j,l[j]=g,o[j]=new RegExp(g,M?"g":void 0),i[j]=new RegExp(N,M?"g":void 0)};p("NUMERICIDENTIFIER","0|[1-9]\\d*"),p("NUMERICIDENTIFIERLOOSE","\\d+"),p("NONNUMERICIDENTIFIER",`\\d*[a-zA-Z-]${h}*`),p("MAINVERSION",`(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})\\.(${l[c.NUMERICIDENTIFIER]})`),p("MAINVERSIONLOOSE",`(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})\\.(${l[c.NUMERICIDENTIFIERLOOSE]})`),p("PRERELEASEIDENTIFIER",`(?:${l[c.NUMERICIDENTIFIER]}|${l[c.NONNUMERICIDENTIFIER]})`),p("PRERELEASEIDENTIFIERLOOSE",`(?:${l[c.NUMERICIDENTIFIERLOOSE]}|${l[c.NONNUMERICIDENTIFIER]})`),p("PRERELEASE",`(?:-(${l[c.PRERELEASEIDENTIFIER]}(?:\\.${l[c.PRERELEASEIDENTIFIER]})*))`),p("PRERELEASELOOSE",`(?:-?(${l[c.PRERELEASEIDENTIFIERLOOSE]}(?:\\.${l[c.PRERELEASEIDENTIFIERLOOSE]})*))`),p("BUILDIDENTIFIER",`${h}+`),p("BUILD",`(?:\\+(${l[c.BUILDIDENTIFIER]}(?:\\.${l[c.BUILDIDENTIFIER]})*))`),p("FULLPLAIN",`v?${l[c.MAINVERSION]}${l[c.PRERELEASE]}?${l[c.BUILD]}?`),p("FULL",`^${l[c.FULLPLAIN]}$`),p("LOOSEPLAIN",`[v=\\s]*${l[c.MAINVERSIONLOOSE]}${l[c.PRERELEASELOOSE]}?${l[c.BUILD]}?`),p("LOOSE",`^${l[c.LOOSEPLAIN]}$`),p("GTLT","((?:<|>)?=?)"),p("XRANGEIDENTIFIERLOOSE",`${l[c.NUMERICIDENTIFIERLOOSE]}|x|X|\\*`),p("XRANGEIDENTIFIER",`${l[c.NUMERICIDENTIFIER]}|x|X|\\*`),p("XRANGEPLAIN",`[v=\\s]*(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:\\.(${l[c.XRANGEIDENTIFIER]})(?:${l[c.PRERELEASE]})?${l[c.BUILD]}?)?)?`),p("XRANGEPLAINLOOSE",`[v=\\s]*(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:\\.(${l[c.XRANGEIDENTIFIERLOOSE]})(?:${l[c.PRERELEASELOOSE]})?${l[c.BUILD]}?)?)?`),p("XRANGE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAIN]}$`),p("XRANGELOOSE",`^${l[c.GTLT]}\\s*${l[c.XRANGEPLAINLOOSE]}$`),p("COERCEPLAIN",`(^|[^\\d])(\\d{1,${a}})(?:\\.(\\d{1,${a}}))?(?:\\.(\\d{1,${a}}))?`),p("COERCE",`${l[c.COERCEPLAIN]}(?:$|[^\\d])`),p("COERCEFULL",l[c.COERCEPLAIN]+`(?:${l[c.PRERELEASE]})?(?:${l[c.BUILD]})?(?:$|[^\\d])`),p("COERCERTL",l[c.COERCE],!0),p("COERCERTLFULL",l[c.COERCEFULL],!0),p("LONETILDE","(?:~>?)"),p("TILDETRIM",`(\\s*)${l[c.LONETILDE]}\\s+`,!0),t.tildeTrimReplace="$1~",p("TILDE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAIN]}$`),p("TILDELOOSE",`^${l[c.LONETILDE]}${l[c.XRANGEPLAINLOOSE]}$`),p("LONECARET","(?:\\^)"),p("CARETTRIM",`(\\s*)${l[c.LONECARET]}\\s+`,!0),t.caretTrimReplace="$1^",p("CARET",`^${l[c.LONECARET]}${l[c.XRANGEPLAIN]}$`),p("CARETLOOSE",`^${l[c.LONECARET]}${l[c.XRANGEPLAINLOOSE]}$`),p("COMPARATORLOOSE",`^${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]})$|^$`),p("COMPARATOR",`^${l[c.GTLT]}\\s*(${l[c.FULLPLAIN]})$|^$`),p("COMPARATORTRIM",`(\\s*)${l[c.GTLT]}\\s*(${l[c.LOOSEPLAIN]}|${l[c.XRANGEPLAIN]})`,!0),t.comparatorTrimReplace="$1$2$3",p("HYPHENRANGE",`^\\s*(${l[c.XRANGEPLAIN]})\\s+-\\s+(${l[c.XRANGEPLAIN]})\\s*$`),p("HYPHENRANGELOOSE",`^\\s*(${l[c.XRANGEPLAINLOOSE]})\\s+-\\s+(${l[c.XRANGEPLAINLOOSE]})\\s*$`),p("STAR","(<|>)?=?\\s*\\*"),p("GTE0","^\\s*>=\\s*0\\.0\\.0\\s*$"),p("GTE0PRE","^\\s*>=\\s*0\\.0\\.0-0\\s*$")})(cu,cu.exports);const du=class Bo extends EventTarget{constructor(t=1,a){super(),this.timerId=null,this.enabled=!1,this.__interval=t,this.timerObject=a,this.boundTick=this.tick.bind(this),this.last=Date.now()}get interval(){return this.__interval}setInterval(t){this.__interval=t,this.timerId!==null&&(this.stop(),this.enabled&&this.start())}start(){this.enabled=!0,this.timerId===null&&(this.timerId=this.timerObject.setTimeout(this.boundTick,this.__interval),this.last=Date.now())}stop(){this.enabled=!1,this.timerId!==null&&(this.timerObject.clearTimeout(this.timerId),this.timerId=null)}tick(){if(this.enabled){const t=Date.now()-this.last;if(t>0&&tmb(this.$isReady.pipe(Ib(Boolean)))}initialize(){return this.fetchServerTime(),Tb(SR).pipe(Gl(this.$destroy)).subscribe(this.fetchServerTime.bind(this)),()=>this.$destroy.next()}offsetTimestamp(t){return t?t+this.offset:Date.now()+this.offset}offsetDate(t){return t?new Date(t.getTime()+this.offset):new Date(Date.now()+this.offset)}offsetCustomerEventTimestamp(t){PP(t.type)&&(t.payload.timestamp+=this.offset),t.timestamp&&(t.timestamp+=this.offset)}fetchServerTime(){if(this.fetchTimePromise)return;let t;this.fetchTimePromise=yR(()=>(t=Date.now(),Xc.ui.getServerTime().catch(a=>{throw this.handleError(a,!0),a})),vR).then(({data:a})=>{const r=Date.now(),s=(r-t)/2;return this.setOffset(Math.trunc(a?a+s-r:0)),!0}).catch(a=>this.handleError(a)).finally(()=>delete this.fetchTimePromise)}setOffset(t){this.offset=t,this.$isReady.next(!0)}handleError(t,a=!1){ht.error("api","Failed to fetch server time",{error:t,isRetry:a})}}new TR;class CR{constructor(){this.$disable=new ns}init(){Cb(dr(document,"click"),dr(document,"dblclick"),dr(document,"contextmenu")).pipe(Ub(1),Gl(this.$disable)).subscribe(()=>{const t=Xr.tone("blank");t.raw.volume=0,t.play()})}}new CR;var uu={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,a="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(a=!1));function s(l,c,d){this.fn=l,this.context=c,this.once=d||!1}function n(l,c,d,h,m){if(typeof d!="function")throw new TypeError("The listener must be a function");var O=new s(d,h||l,m),p=a?a+c:c;return l._events[p]?l._events[p].fn?l._events[p]=[l._events[p],O]:l._events[p].push(O):(l._events[p]=O,l._eventsCount++),l}function o(l,c){--l._eventsCount===0?l._events=new r:delete l._events[c]}function i(){this._events=new r,this._eventsCount=0}i.prototype.eventNames=function(){var c=[],d,h;if(this._eventsCount===0)return c;for(h in d=this._events)t.call(d,h)&&c.push(a?h.slice(1):h);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(d)):c},i.prototype.listeners=function(c){var d=a?a+c:c,h=this._events[d];if(!h)return[];if(h.fn)return[h.fn];for(var m=0,O=h.length,p=new Array(O);mthis.off(t,a)}onPipe(t,a){return this.on(t,a),this}once(t,a){return this.emitter.once(t,a),()=>this.off(t,a)}oncePipe(t,a){return this.once(t,a),this}}class xR extends UR{initialize(){if(!(Storage!=null&&Storage.prototype))return _h;const t=Storage.prototype.setItem,a=Storage.prototype.removeItem,r=Storage.prototype.clear,s=this;return Storage.prototype.setItem=function(n,o){return s.emit("storageChanged",{key:n,oldValue:localStorage.getItem(n),newValue:o}),t.call(this,n,o)},Storage.prototype.removeItem=function(n){return s.emit("storageChanged",{key:n,oldValue:localStorage.getItem(n),newValue:null}),a.call(this,n)},Storage.prototype.clear=function(){return s.emit("storageCleared"),r.call(this)},()=>{Storage.prototype.setItem=t,Storage.prototype.removeItem=a,Storage.prototype.clear=r}}}new xR;const Nt=ta();let No=!1;const hu=e=>{if(No){ht.log("runtime","SDK Script is already attached");return}const t=RP(Nt.fvRegion,{...e,component:"sdk"});Nt.isLocalProcess&&(t.type="module"),document.head.insertBefore(t,document.head.firstChild),No=!0,window.$fvRemoveSDKScript=()=>{ht.log("process","Removing SDK Script"),t.remove(),No=!1}};function pu(e){if(e.version){hu(e);return}Xc.organisation.getLoaderConfig(e.organisationId,"sdk").then(({data:{version:t,isBlocked:a}={}})=>{if(a||!t){ht.log("version",`Organisation ${e.organisationId} is blocked or SDK version is not provided`);return}hu({...e,version:t})}).catch(t=>{ht.error("runtime","No SDK version provided. SDK will not be loaded.",{err:t})})}function _R(){return ht.log("runtime",`v${Nt.version}`,Nt),()=>{}}const mu={isMock:!0,identify(e,t){window.$fvIdentity={...t,id:e.toString()}},endSession(){},displayRequestSupportWidget(){},requestSupport(){return Promise.resolve(!1)},displayTriggerButton(){},requestFullSnapshot(){},cancelSupportRequest(){return Promise.resolve()},resizeCoBrowseWindow(e,t){},changeCoBrowseWindowPosition(e){},generateIdentificationCode(){},hideWidget(){},showChat(){},showWidget(){},setWidgetPosition(e){},clearWidgetPosition(){},setWidgetMargin({x:e,y:t}){},clearWidgetMargin(){}};function FR(){return window.Fullview=mu,()=>{window.Fullview=mu}}Uh();const jo=document.currentScript;try{const{organisationId:e,sdkWorkerCustomPath:t}=mR({isProd:Nt.isProd,isLocalProcess:Nt.isLocalProcess,isPreview:Nt.isPreview,context:"sdkLoader"}),a=Nt.isPullRequest?Nt.version:void 0;if(!e)throw new Error("No organisation ID provided. SDK Loader will not be loaded.");pu({organisationId:e,sdkWorkerCustomPath:t,version:a});const r=[FR(),_R()],s=()=>{var n;(n=window.$fvUnloadSDK)==null||n.call(window),r.forEach(o=>o()),jo==null||jo.remove()};window.$fvUnloadSDKLoader=()=>{ht.log("process","Unloading SDK Loader"),s()},window.$fvReloadSDKLoader=()=>{ht.log("process","Reloading SDK Loader"),s(),pu({organisationId:e,sdkWorkerCustomPath:t,version:a})}}catch(e){ht.error("unhandled","Top level error",e instanceof Error?e:{error:e})}})();