(function(){"use strict";var FR=Object.defineProperty;var DR=(Et,bt,Nt)=>bt in Et?FR(Et,bt,{enumerable:!0,configurable:!0,writable:!0,value:Nt}):Et[bt]=Nt;var Pe=(Et,bt,Nt)=>(DR(Et,typeof bt!="symbol"?bt+"":bt,Nt),Nt);function Et(){}function bt(e){return e}var Nt={debug:0,info:1,warn:2,error:3},fu=Nt.warn;Cr("info");var it=Cr("warn"),Ns=Cr("error"),Ue=Cr("debug");function Cr(e){if(typeof console<"u"&&console[e]&&typeof console[e].apply=="function"){var t=Nt[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 I=typeof window<"u"?window:void 0,Ie=I==null?void 0:I.document,Ir=I==null?void 0:I.navigator,$o=typeof location<"u"?location:void 0,ke=(I==null?void 0:I.performance)||(I==null?void 0:I.webkitPerformance)||(I==null?void 0:I.msPerformance)||(I==null?void 0:I.mozPerformance);I==null||I.encodeURIComponent;var js=I==null?void 0:I.fetch,zt=function(){try{var e;return(e=I==null?void 0:I.localStorage)!==null&&e!==void 0?e:null}catch{return null}}(),Yt=function(){try{var e;return(e=I==null?void 0:I.sessionStorage)!==null&&e!==void 0?e:null}catch{return null}}(),Ur=Array(32);function Jt(e){for(var t=0;t<2*e;t++)Ur[t]=Math.floor(16*Math.random())+48,Ur[t]>=58&&(Ur[t]+=39);return String.fromCharCode.apply(null,Ur.slice(0,2*e))}function Ba(e,t,a){e.addEventListener?e.addEventListener(t,a,!1):e.attachEvent&&e.attachEvent("on"+t,a)}var xr=zt!=null&&typeof zt.getItem=="function"&&typeof zt.setItem=="function";function ks(e,t){(t==null||t>e.length)&&(t=e.length);for(var a=0,r=Array(t);a<t;a++)r[a]=e[a];return r}function Ho(e,t,a,r,s,n,o){try{var i=e[n](o),l=i.value}catch(c){return void a(c)}i.done?t(l):Promise.resolve(l).then(r,s)}function $a(e){return function(){var t=this,a=arguments;return new Promise(function(r,s){var n=e.apply(t,a);function o(l){Ho(n,r,s,o,i,"next",l)}function i(l){Ho(n,r,s,o,i,"throw",l)}o(void 0)})}}function Bs(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $s(e,t,a){return t&&function(r,s){for(var n=0;n<s.length;n++){var o=s[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(r,Wo(o.key),o)}}(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function ot(e,t){var a=typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(!a){if(Array.isArray(e)||(a=Hs(e))||t){a&&(e=a);var r=0,s=function(){};return{s,n:function(){return r>=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 _?S:_,Ae=Object.create(ne.prototype),Le=new Sr(ge||[]);return s(Ae,"_invoke",{value:ja(R,k,Le)}),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 _(){}function N(){}function j(){}var ce={};c(ce,o,function(){return this});var pe=Object.getPrototypeOf,Ee=pe&&pe(pe(je([])));Ee&&Ee!==a&&r.call(Ee,o)&&(ce=Ee);var Re=j.prototype=_.prototype=Object.create(ce);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,Le,st){var nt=h(R[ne],R,Ae);if(nt.type!=="throw"){var ka=nt.arg,Tr=ka.value;return Tr&&typeof Tr=="object"&&r.call(Tr,"__await")?S.resolve(Tr.__await).then(function(ma){k("next",ma,Le,st)},function(ma){k("throw",ma,Le,st)}):S.resolve(Tr).then(function(ma){ka.value=ma,Le(ka)},function(ma){return k("throw",ma,Le,st)})}st(nt.arg)}var ge;s(this,"_invoke",{value:function(ne,Ae){function Le(){return new S(function(st,nt){k(ne,Ae,st,nt)})}return ge=ge?ge.then(Le,Le):Le()}})}function ja(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 Le=k.delegate;if(Le){var st=Ms(Le,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 Rr(R){var S=R.completion||{};S.type="normal",delete S.arg,R.completion=S}function Sr(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<R.length;)if(r.call(R,k))return ne.value=R[k],ne.done=!1,ne;return ne.value=e,ne.done=!0,ne};return ge.next=ge}}throw new TypeError(typeof R+" is not iterable")}return N.prototype=j,s(Re,"constructor",{value:j,configurable:!0}),s(j,"constructor",{value:N,configurable:!0}),N.displayName=c(j,l,"GeneratorFunction"),t.isGeneratorFunction=function(R){var S=typeof R=="function"&&R.constructor;return!!S&&(S===N||(S.displayName||S.name)==="GeneratorFunction")},t.mark=function(R){return Object.setPrototypeOf?Object.setPrototypeOf(R,j):(R.__proto__=j,c(R,l,"GeneratorFunction")),R.prototype=Object.create(Re),R},t.awrap=function(R){return{__await:R}},gt(Ot.prototype),c(Ot.prototype,i,function(){return this}),t.AsyncIterator=Ot,t.async=function(R,S,k,ge,ne){ne===void 0&&(ne=Promise);var Ae=new Ot(d(R,S,k,ge),ne);return t.isGeneratorFunction(S)?Ae:Ae.next().then(function(Le){return Le.done?Le.value:Ae.next()})},gt(Re),c(Re,l,"Generator"),c(Re,o,function(){return this}),c(Re,"toString",function(){return"[object Generator]"}),t.keys=function(R){var S=Object(R),k=[];for(var ge in S)k.push(ge);return k.reverse(),function ne(){for(;k.length;){var Ae=k.pop();if(Ae in S)return ne.value=Ae,ne.done=!1,ne}return ne.done=!0,ne}},t.values=je,Sr.prototype={constructor:Sr,reset:function(R){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(Rr),!R)for(var S in this)S.charAt(0)==="t"&&r.call(this,S)&&!isNaN(+S.slice(1))&&(this[S]=e)},stop:function(){this.done=!0;var R=this.tryEntries[0].completion;if(R.type==="throw")throw R.arg;return this.rval},dispatchException:function(R){if(this.done)throw R;var S=this;function k(nt,ka){return Ae.type="throw",Ae.arg=R,S.next=nt,ka&&(S.method="next",S.arg=e),!!ka}for(var ge=this.tryEntries.length-1;ge>=0;--ge){var ne=this.tryEntries[ge],Ae=ne.completion;if(ne.tryLoc==="root")return k("end");if(ne.tryLoc<=this.prev){var Le=r.call(ne,"catchLoc"),st=r.call(ne,"finallyLoc");if(Le&&st){if(this.prev<ne.catchLoc)return k(ne.catchLoc,!0);if(this.prev<ne.finallyLoc)return k(ne.finallyLoc)}else if(Le){if(this.prev<ne.catchLoc)return k(ne.catchLoc,!0)}else{if(!st)throw Error("try statement without catch or finally");if(this.prev<ne.finallyLoc)return k(ne.finallyLoc)}}}},abrupt:function(R,S){for(var k=this.tryEntries.length-1;k>=0;--k){var ge=this.tryEntries[k];if(ge.tryLoc<=this.prev&&r.call(ge,"finallyLoc")&&this.prev<ge.finallyLoc){var ne=ge;break}}ne&&(R==="break"||R==="continue")&&ne.tryLoc<=S&&S<=ne.finallyLoc&&(ne=null);var Ae=ne?ne.completion:{};return Ae.type=R,Ae.arg=S,ne?(this.method="next",this.next=ne.finallyLoc,g):this.complete(Ae)},complete:function(R,S){if(R.type==="throw")throw R.arg;return R.type==="break"||R.type==="continue"?this.next=R.arg:R.type==="return"?(this.rval=this.arg=R.arg,this.method="return",this.next="end"):R.type==="normal"&&S&&(this.next=S),g},finish:function(R){for(var S=this.tryEntries.length-1;S>=0;--S){var k=this.tryEntries[S];if(k.finallyLoc===R)return this.complete(k.completion,k.afterLoc),Rr(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;Rr(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 Ha(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 _r(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 Vt(e){return Vt=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},Vt(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 Xt(){return new Date().getTime()}function Kt(){var e=qs();return e?String(1e6*(ke.now()+e)):Lr(new Date)}function Lr(e){return Vt(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:I==null?void 0:I.setTimeout,clearTimeout:I==null?void 0:I.clearTimeout,setInterval:I==null?void 0:I.setInterval,clearInterval:I==null?void 0:I.clearInterval},Ws=I!=null&&I.Zone!=null&&I.Zone.root!=null&&typeof I.Zone.root.run=="function";function fa(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return Qs.apply("setTimeout",arguments)}function Go(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return Qs.apply("clearTimeout",arguments)}function zo(){for(var e=arguments.length,t=new Array(e),a=0;a<e;a++)t[a]=arguments[a];return Qs.apply("setInterval",arguments)}function Qs(){var e,t=this;if(Ws)try{var a=Array.prototype.slice.apply(arguments);return I.Zone.root.run(Qo[t],I,a)}catch(r){it("Failed to execute %s inside of zone (via Zone.js). Falling back to execution inside currently active zone.",t,r)}return(e=Qo[t])===null||e===void 0?void 0:e.apply(I,arguments)}Ws&&Ue("Discovered Zone.js globals. Will attempt to register all timers inside the root Zone."),ke&&ke.getEntriesByType;var bu=ke&&typeof I.PerformanceObserver=="function"&&typeof ke.now=="function",Rt=Object.freeze({CONNECT_END:"connectEnd",CONNECT_START:"connectStart",DECODED_BODY_SIZE:"decodedBodySize",DOM_COMPLETE:"domComplete",DOM_CONTENT_LOADED_EVENT_END:"domContentLoadedEventEnd",DOM_CONTENT_LOADED_EVENT_START:"domContentLoadedEventStart",DOM_INTERACTIVE:"domInteractive",DOMAIN_LOOKUP_END:"domainLookupEnd",DOMAIN_LOOKUP_START:"domainLookupStart",ENCODED_BODY_SIZE:"encodedBodySize",FETCH_START:"fetchStart",LOAD_EVENT_END:"loadEventEnd",LOAD_EVENT_START:"loadEventStart",NAVIGATION_START:"navigationStart",REDIRECT_END:"redirectEnd",REDIRECT_START:"redirectStart",REQUEST_START:"requestStart",RESPONSE_END:"responseEnd",RESPONSE_START:"responseStart",SECURE_CONNECTION_START:"secureConnectionStart",START_TIME:"startTime",UNLOAD_EVENT_END:"unloadEventEnd",UNLOAD_EVENT_START:"unloadEventStart"}),Yo=new WeakSet;function yu(e){if(!bu)return function(m){var O=0;return{start:function(){O=Xt()},end:function(){return m({duration:Xt()-O})},cancel:Et}}(e.onEnd);var t,a,r,s,n,o=[];return{start:function(){t=ke.now();try{var m,O=I==null?void 0:I.PerformanceObserver;O&&((m=r=new O(l))===null||m===void 0||m.observe({type:"resource"}))}catch{}n=fa(d,6e5)},end:function(m){if(!a){if(a=m??ke.now(),h(),!Jo())return i();fa(function(){return i()},Math.min(300,e.maxWaitForResourceMillis)),Ba(Ie,"visibilitychange",c),s=fa(i,e.maxWaitForResourceMillis)}},cancel:d};function i(){d();var m=function(){if(o.length){var O,p,b=o.filter(function(ce){return ce.responseEnd<=a+e.maxToleranceForResourceTimingsMillis&&!Yo.has(ce)});if(b.length){if(b.length===1&&(O=b[0]),!O){var g,_=ot(b);try{for(_.s();!(g=_.n()).done;){var N=g.value,j=Math.abs(a-t-N.duration)+Math.abs(N.responseEnd-a);(p===void 0||j<p)&&(p=j,O=N)}}catch(ce){_.e(ce)}finally{_.f()}}if(O)return Yo.add(O),O}}}();m!=null&&m.duration&&m.duration<864e5?e.onEnd({resource:m,duration:m.duration}):e.onEnd({resource:m,duration:a-t})}function l(m){m.getEntriesByType("resource").filter(function(O){var p=O;return p.startTime>=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 qa="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",Eu="deployment.name",Vu="deployment.id",Wa="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",Qa={PAGE_VIEW:"browser.page_view",NAVIGATION_TIMING:"browser.navigation_timing",WEB_VITAL:"browser.web_vital",ERROR:"browser.error"},Ga={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:!xr},t=0,e.ephemeralSession&&(t|=xu),t.toString(16).padStart(2,"0"))).concat(Jt(7))}var ti="d0_session",Zs="#",ai=864e5,za=null;function _u(e,t){if(!xr)return Ue("Storage API is not available and session tracking is therefore not supported."),void(za=ei());e||(e=108e5),t||(t=216e5),e=Math.min(e,ai),t=Math.min(t,ai);try{var a=function(s){return xr&&zt?zt.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=Xt()-n;if(s.lastActivityTime<i)return!1;var l=Xt()-o;return s.startTime>=l}(r,e,t)&&(r=null),r?r.lastActivityTime=Xt():r={id:ei(),startTime:Xt(),lastActivityTime:Xt()},function(s,n){xr&&zt&&zt.setItem(s,n)}(ti,function(s){return s.id+Zs+s.startTime+Zs+s.lastActivityTime}(r)),za=r.id}catch(s){it("Failed to record session information",s)}}var ri=-1,Ya=function(e){addEventListener("pageshow",function(t){t.persisted&&(ri=t.timeStamp,e(t))},!0)},jt=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.responseStart<performance.now())return e},Fr=function(){var e,t=si();return(e=t==null?void 0:t.activationStart)!==null&&e!==void 0?e:0},kt=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1,a=si(),r="navigate";return ri>=0?r="back-forward-cache":a&&(document.prerendering||Fr()>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,Lu=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)}}}])}(),Ja=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<arguments.length;n++){var o=arguments[n]!=null?arguments[n]:{};n%2?qo(Object(o),!0).forEach(function(i){He(s,i,o[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(s,Object.getOwnPropertyDescriptors(o)):qo(Object(o)).forEach(function(i){Object.defineProperty(s,i,Object.getOwnPropertyDescriptor(o,i))})}return s}({type:e,buffered:!0},a)),r}}catch{}},sn=function(e){var t=!1;return function(){t||(e(),t=!0)}},ga=-1,ni=function(){return document.visibilityState!=="hidden"||document.prerendering?1/0:0},Dr=function(e){document.visibilityState==="hidden"&&ga>-1&&(ga=e.type==="visibilitychange"?e.timeStamp:0,Fu())},oi=function(){addEventListener("visibilitychange",Dr,!0),addEventListener("prerenderingchange",Dr,!0)},Fu=function(){removeEventListener("visibilitychange",Dr,!0),removeEventListener("prerenderingchange",Dr,!0)},ii=function(){if(ga<0){var e,t=Fr(),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;ga=a??ni(),oi(),Ya(function(){setTimeout(function(){ga=ni(),oi()})})}return{get firstHiddenTime(){return ga}}},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=kt("FCP"),i=Ja("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.startTime<n.firstHiddenTime&&(o.value=Math.max(h.startTime-Fr(),0),o.entries.push(h),s(!0)))}}catch(m){d.e(m)}finally{d.f()}});i&&(s=jt(a,o,li,r.reportAllChanges),Ya(function(l){o=kt("FCP"),s=jt(a,o,li,r.reportAllChanges),en(function(){o.value=performance.now()-l.timeStamp,s(!0)})}))})})(sn(function(){var a,r=kt("CLS",0),s=an(t,Lu),n=function(i){var l,c=ot(i);try{for(c.s();!(l=c.n()).done;){var d=l.value;s.h(d)}}catch(h){c.e(h)}finally{c.f()}s.i>r.value&&(r.value=s.i,r.entries=s.o,a())},o=Ja("layout-shift",n);o&&(a=jt(e,r,ci,t.reportAllChanges),document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"&&(n(o.takeRecords()),a(!0))}),Ya(function(){s.i=0,r=kt("CLS",0),a=jt(e,r,ci,t.reportAllChanges),en(function(){return a()})}),setTimeout(a))}))},di=0,on=1/0,Mr=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),Mr=Math.max(Mr,r.interactionId),di=Mr?(Mr-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=Ja("event",Mu,{type:"event",buffered:!0,durationThreshold:0}));var r,s=kt("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=Ja("event",o,{durationThreshold:(a=t.durationThreshold)!==null&&a!==void 0?a:40});r=jt(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))}),Ya(function(){n.p(),s=kt("INP"),r=jt(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&&I&&(Ba(Ie,"visibilitychange",function(){Ie.visibilityState!=="visible"&&a()}),Ba(I,"pagehide",function(){ln=!0,a()}),Ba(I,"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=fa(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=$a(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=$a(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=$a(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 Xa(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||Vt(a)!=="object")return!1;var r=Object.keys(a);return r.length===1&&qu.includes(r[0])}(e)?t=e:Vt(e)==="object"&&(t.kvlistValue={values:Object.entries(e).map(function(a){var r=Ha(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 Ei(){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 Vi="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),Nr=0;Nr<256;Nr++){for(var Ka=Nr,Ti=0;Ti<8;Ti++)Ka=1&Ka?3988292384^Ka>>>1:Ka>>>1;Si[Nr]=Ka>>>0}function zu(e){var t=function(a){for(var r=new Uint8Array(a.length/2),s=0;s<a.length;s+=2)r[s/2]=parseInt(a.substring(s,s+2),16);for(var n=4294967295,o=0;o<r.length;o++){var i=r[o];n=n>>>8^Si[255&(n^i)]}return(4294967295^n)>>>0}(e).toString(16).padStart(8,"0");return"".concat(t).concat(Jt(4))}function Yu(e){var t=function(s){return s?"".concat(Vi).concat(Ri({withoutSession:!1})).concat(s).concat(Jt(5)):"".concat(Vi).concat(Ri({withoutSession:!0})).concat(Jt(13))}(za),a=zu(t),r=[];return ie(r,Js,a),{traceId:t,spanId:a,name:e,kind:3,startTimeUnixNano:Kt(),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)):Kt(),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??Kt(),attributes:n??[]})}function Ui(e,t,a){var r=function(o){return o?Array.isArray(o)?function(i){return[].concat(_r(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=Ha(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=Yt!=null&&typeof Yt.getItem=="function"&&typeof Yt.setItem=="function",xi="d0_tab",Za=null;function Ju(){if(hn)try{var e=function(t){return hn&&Yt?Yt.getItem(t):null}(xi);if(e)return void(Za=e);Za=Jt(8),function(t,a){hn&&Yt&&Yt.setItem(t,a)}(xi,Za)}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 Oa(e,t){var a,r,s,n,o;e.find(function(c){return c.key===Js})===void 0&&ie(e,Js,Jt(8));for(var i=0;i<le.signalAttributes.length;i++)e.push(le.signalAttributes[i]);Ui(e,(a=(r=t==null?void 0:t.url)!==null&&r!==void 0?r:I==null?void 0:I.location.href)!==null&&a!==void 0?a:qa,"page"),za&&ie(e,"session.id",za),Za&&ie(e,"browser.tab.id",Za),ie(e,"browser.window.width",(s=I==null?void 0:I.innerWidth)!==null&&s!==void 0?s:qa),ie(e,"browser.window.height",(n=I==null?void 0:I.innerHeight)!==null&&n!==void 0?n:qa);var l=Ir==null||(o=Ir.connection)===null||o===void 0?void 0:o.effectiveType;l&&ie(e,"network.connection.subtype",l)}function Xu(){(function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};nn(function(){var a,r=ii(),s=kt("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.startTime<r.firstHiddenTime&&(s.value=Math.max(p.startTime-Fr(),0),s.entries=[p],a())}}catch(b){O.e(b)}finally{O.f()}},i=Ja("largest-contentful-paint",o);if(i){a=jt(e,s,fi,t.reportAllChanges);for(var l=sn(function(){o(i.takeRecords()),i.disconnect(),a(!0)}),c=0,d=["keydown","click","visibilitychange"];c<d.length;c++)addEventListener(d[c],function(){return pi(l)},{capture:!0,once:!0});Ya(function(h){s=kt("LCP"),a=jt(e,s,fi,t.reportAllChanges),en(function(){s.value=performance.now()-h.timeStamp,a(!0)})})}})})(pn,{reportAllChanges:!0}),ju(pn,{reportAllChanges:!0}),Du(pn,{reportAllChanges:!0})}function pn(e){var t=[];ie(t,Wa,Qa.WEB_VITAL);var a=[];ie(a,"name",e.name),ie(a,"value",Gs(e.value)),ie(a,"delta",Gs(e.delta));var r={timeUnixNano:Kt(),attributes:t,severityNumber:Ga.INFO,severityText:"INFO",body:{kvlistValue:{values:a}}};Oa(r.attributes),Xa(r)}function mn(e,t){for(var a=0,r=e.length;a<r;a++)if(e[a].test(t))return!0;return!1}var Ku="data:";function Zu(e){return!e||!(e=String(e))||e.substring==null||e.substring(0,5).toLowerCase()===Ku||!!function(t){for(var a=t.toLowerCase(),r=0,s=le.endpoints.length;r<s;r++){var n=le.endpoints[r];if(a.startsWith(n.url))return!0}return!1}(e)||mn(le.ignoreUrls,e)}var er,_i=0,jr=0,Zt={},fn=!1;function Li(){fn=!0}function tr(e,t){e&&Fi(typeof e=="string"?{message:e,opts:t}:{message:e.message,type:e.name,stack:e.stack,opts:t})}function Fi(e){var t=e.message,a=e.type,r=e.stack,s=e.opts;if(t&&!(_i>100)&&!function(l){return!l||mn(le.ignoreErrorMessages,l)}(t)){jr>=20&&(Zt={},jr=0);var n=(t=String(t).substring(0,300))+(r=function(l){return String(l||"").split(`
`).slice(0,30).join(`
`)}(r))+(I==null?void 0:I.location.href),o=Zt[n];if(o)o.seenCount++;else{var i=[];ie(i,Wa,Qa.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)),Oa(i),o={seenCount:1,transmittedCount:0,log:{timeUnixNano:Kt(),attributes:i,severityNumber:Ga.ERROR,severityText:"ERROR",body:{stringValue:t}}},Zt[n]=o,jr++}(function(){er||(er=setTimeout(eh,1e3))})()}}function eh(){for(var e in er&&(clearTimeout(er),er=null),Zt)if(Ou(Zt,e)){var t=Zt[e];t.seenCount>t.transmittedCount&&(Xa(t.log),_i++)}Zt={},jr=0}var gn="Unhandled promise rejection: ",On="<unavailable because Promise wasn't rejected with an Error object>";function th(e){e.reason==null?tr({message:gn+"<no reason defined>",stack:On}):typeof e.reason.message=="string"?tr({message:gn+e.reason.message,stack:typeof e.reason.stack=="string"?e.reason.stack:On}):Vt(e.reason)!=="object"&&tr({message:gn+e.reason,stack:On})}var kr="__dash0OriginalFunctions";function Di(e,t){for(var a=e[kr],r=0;r<a.length;r++)if(ah(a[r].valuesForEqualityCheck,t))return r;return-1}function ah(e,t){if(e.length!==t.length)return!1;for(var a=0;a<e.length;a++)if(e[a]!==t[a])return!1;return!0}function rh(e,t,a,r,s){return function(n,o,i){if(!n)return o;var l=n[kr]=n[kr]||[],c=Di(n,i);return c!==-1?l[c].wrappedFunction:(l.push({wrappedFunction:o,valuesForEqualityCheck:i}),o)}(e,t,Mi(a,r,s))}function Mi(e,t,a){return[e,t,sh(a)]}function sh(e){return e!=null&&(Vt(e)==="object"?!!e.capture:!!e)}function nh(e,t,a,r,s){return function(n,o,i){var l=n==null?void 0:n[kr];if(l==null)return i;var c=Di(n,o);if(c===-1)return i;var d=l[c];return l.splice(c,1),d.wrappedFunction}(e,Mi(t,a,r),s)}function oh(){le.wrapEventHandlers&&function(e){if(!(!e||typeof e.prototype.addEventListener!="function"||typeof e.prototype.removeEventListener!="function")){var t=e.prototype.addEventListener,a=e.prototype.removeEventListener;e.prototype.addEventListener=function(r,s,n){if(typeof s!="function")return t.apply(this,arguments);for(var o=new Array(arguments.length),i=0;i<arguments.length;i++)o[i]=arguments[i];return o[1]=function(){try{return s.apply(this,arguments)}catch(l){throw tr(l),Li(),l}},o[1]=rh(this,o[1],r,s,n),t.apply(this,o)},e.prototype.removeEventListener=function(r,s,n){if(typeof s!="function")return a.apply(this,arguments);for(var o=new Array(arguments.length),i=0;i<arguments.length;i++)o[i]=arguments[i];return o[1]=nh(this,r,s,n,s),a.apply(this,o)}}}(I==null?void 0:I.EventTarget)}function Ni(e){var t=I==null?void 0:I[e];typeof t=="function"&&(I[e]=function(a){for(var r=new Array(arguments.length),s=0;s<arguments.length;s++)r[s]=arguments[s];return r[0]=function(n){return typeof n!="function"?n:function(){try{return n.apply(this,arguments)}catch(o){throw reportError(o),Li(),o}}}(a),t.apply(this,r)})}function ih(){(function(){if(I){var e=I.onerror;I.onerror=function(t,a,r,s,n){if(fn)return fn=!1,typeof e=="function"?e.apply(this,arguments):void 0;var o=n&&n.stack;return o||(o="at "+a+" "+r,s!=null&&(o+=":"+s)),Fi({message:String(t),stack:o}),typeof e=="function"?e.apply(this,arguments):void 0}}})(),typeof(I==null?void 0:I.addEventListener)=="function"&&I.addEventListener("unhandledrejection",th),oh(),function(){if(le.wrapTimers){if(Ws)return void it("We discovered a usage of Zone.js. In order to avoid any incompatibility issues timer wrapping is not going to be enabled.");Ni("setTimeout"),Ni("setInterval")}}()}var lh=["GET","HEAD","POST","PUT","DELETE","CONNECT","OPTIONS","TRACE","PATCH"];function ji(e){return lh.includes(e)}function ch(e,t){var a=t.startTime!==0;St(e,Rt.FETCH_START,t,a),St(e,Rt.DOMAIN_LOOKUP_START,t,a),St(e,Rt.DOMAIN_LOOKUP_END,t,a),St(e,Rt.CONNECT_START,t,a),St(e,Rt.SECURE_CONNECTION_START,t,a),St(e,Rt.CONNECT_END,t,a),St(e,Rt.REQUEST_START,t,a),St(e,Rt.RESPONSE_START,t,a),St(e,Rt.RESPONSE_END,t,a)}function St(e,t,a){var r,s=!(arguments.length>3&&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=$a(lt().mark(function a(r,s){var n,o,i,l,c,d,h,m,O,p,b,g,_,N,j;return lt().wrap(function(ce){for(;;)switch(ce.prev=ce.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)){ce.next=9;break}return Ue("Not creating span for fetch call because the url is ignored, URL: ".concat(d)),ce.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",Oa((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&&((_=i)!==null&&_!==void 0&&_.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 Ee=pe,"".concat("http.request.header",".").concat(Ee.toLowerCase());var Ee}),(N=yu({resourceMatcher:function(pe){var Ee=pe.initiatorType,Re=pe.name;return(Ee==="fetch"||Ee==="xmlhttprequest")&&Re===zs(d).href},maxWaitForResourceMillis:le.maxWaitForResourceTimingsMillis,maxToleranceForResourceTimingsMillis:le.maxToleranceForResourceTimingsMillis,onEnd:function(pe){var Ee=pe.duration,Re=pe.resource;Re&&(ch(b,Re),dh(b,Re)),vi(Ci(b,void 0,1e6*Ee))}})).start(),ce.prev=25,ce.next=28,e(r instanceof Request?c:r,i);case 28:return j=ce.sent,ph(b,j),ce.abrupt("return",mh(j,le.maxToleranceForResourceTimingsMillis,function(){return N.end()},function(pe){N.cancel(),Bi(b,pe)}));case 33:throw ce.prev=33,ce.t0=ce.catch(25),N.cancel(),Bi(b,ce.t0),ce.t0;case 38:case"end":return ce.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=fa(function(){return c(o)},t),m=i.getReader(),O=new ReadableStream({pull:function(p){return $a(lt().mark(function b(){var g,_;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,_=g.value,g.done?(m.releaseLock(),p.close(),c()):(o=ke.now(),h=fa(function(){return c(o)},t),p.enqueue(_)),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&&Vt(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,Wa,Qa.PAGE_VIEW),o.attributes&&Object.entries(o.attributes).forEach(function(h){var m=Ha(h,2),O=m[0],p=m[1];return ie(i,O,p)}),Oa(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:qa),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:Ga.INFO,severityText:"INFO",body:{kvlistValue:{values:l}}},d=Ei();d&&(c.traceId=d.traceId,c.spanId=d.spanId),Xa(c)}function Hi(){var e=I==null?void 0:I.performance.getEntriesByType("navigation")[0];if(e){var t=[];ie(t,Wa,Qa.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:Ga.INFO,severityText:"INFO",body:{kvlistValue:{values:a}}};Oa(r.attributes);var s=Ei();s&&(r.traceId=s.traceId,r.spanId=s.spanId),Xa(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 ba={},Wi=!1,Qi=!1;function gh(){Br(I==null?void 0:I.location.href)}function Oh(e){Br(e.newURL)}function Br(e,t){var a;if(e)try{var r=new URL(e,I==null?void 0:I.location.href);((a=r).pathname!==ba.path||Qi&&a.search!==ba.search||Wi&&a.hash!==ba.hash)&&(Gi(r),$i(Kt(),r,!0,!!t))}catch(s){Ue("Failed to handle url change",s)}}function Gi(e){ba.path=e.pathname,ba.search=e.search,ba.hash=e.hash}function bh(){(function(){try{$i(qi(),I!=null&&I.location.href?new URL(I==null?void 0:I.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();I&&Ba(I,"load",function(){setTimeout(Hi,0)})})(),function(){var e,t,a,r;if(I&&I.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(I.history,"replaceState",function(s){return function(n,o,i){return Br(i?String(i):void 0,!0),s.apply(this,[n,o,i])}}),Ys(I.history,"pushState",function(s){return function(n,o,i){return Br(i?String(i):void 0),s.apply(this,[n,o,i])}}),I.addEventListener("hashchange",Oh),I.addEventListener("popstate",gh);try{Gi(new URL(I.location.href))}catch{}}}else Ue("Browser does not support history API, skipping instrumentation")}()}var $r=function(e){if(Vt(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;a<e;a++)t[a]=arguments[a];return t.reduce(function(r,s){if(s===void 0)return r;if(Array.isArray(s))throw new TypeError("Arguments provided to ts-deepmerge must be objects, not arrays.");return Object.keys(s).forEach(function(n){["__proto__","constructor","prototype"].includes(n)||(Array.isArray(r[n])&&Array.isArray(s[n])?r[n]=dt.options.mergeArrays?dt.options.uniqueArrayItems?Array.from(new Set(r[n].concat(s[n]))):[].concat(_r(r[n]),_r(s[n])):s[n]:$r(r[n])&&$r(s[n])?r[n]=dt(r[n],s[n]):!$r(r[n])&&$r(s[n])?r[n]=dt(s[n],void 0):r[n]=s[n]===void 0?dt.options.allowUndefinedOverrides?s[n]:r[n]:s[n])}),r},{})},yn={allowUndefinedOverrides:!0,mergeArrays:!0,uniqueArrayItems:!0};dt.options=yn,dt.withOptions=function(e){dt.options=Object.assign(Object.assign({},yn),e);for(var t=arguments.length,a=new Array(t>1?t-1:0),r=1;r<t;r++)a[r-1]=arguments[r];var s=dt.apply(void 0,a);return dt.options=yn,s};var zi=!1;function yh(e){zi?Ue("Dash0 SDK is being reinitialized, skipping ..."):I!=null?typeof js=="function"&&ke&&ke.getEntriesByType?(le.endpoints=e.endpoint instanceof Array?e.endpoint:[e.endpoint],le.endpoints.length!==0?(Object.assign(le,dt(le,function(t,a){var r,s={},n=ot(a);try{for(n.s();!(r=n.n()).done;){var o=r.value;o in t&&(s[o]=t[o])}}catch(i){n.e(i)}finally{n.f()}return s}(e,["ignoreUrls","ignoreErrorMessages","wrapEventHandlers","wrapTimers","propagateTraceHeadersCorsURLs","maxWaitForResourceTimingsMillis","maxToleranceForResourceTimingsMillis","headersToCapture","urlAttributeScrubber","pageViewInstrumentation","enableTransportCompression"]))),function(t){t.propagators?(t.propagateTraceHeadersCorsURLs&&it("Both 'propagators' and deprecated 'propagateTraceHeadersCorsURLs' were provided. Using 'propagators' configuration. Please migrate to the new 'propagators' config."),le.propagators=t.propagators):t.propagateTraceHeadersCorsURLs&&t.propagateTraceHeadersCorsURLs.length>0?(it("'propagateTraceHeadersCorsURLs' is deprecated. Please use the new 'propagators' configuration."),le.propagators=[{type:"traceparent",match:_r(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,Eu,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,Vu,s)}(e),function(t){var a;ie(le.signalAttributes,Ru,Jt(16)),ie(le.signalAttributes,Su,(a=Ir==null?void 0:Ir.userAgent)!==null&&a!==void 0?a:qa),t.additionalSignalAttributes&&Object.entries(t.additionalSignalAttributes).forEach(function(r){var s=Ha(r,2),n=s[0],o=s[1];ie(le.signalAttributes,n,o)})}(e),Ju(),_u(e.sessionInactivityTimeoutMillis,e.sessionTerminationTimeoutMillis),Hr("@dash0/navigation",e)&&bh(),Hr("@dash0/web-vitals",e)&&Xu(),Hr("@dash0/error",e)&&ih(),Hr("@dash0/fetch",e)&&(I&&I.fetch&&I.Request?Ys(I,"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 Hr(e,t){var a=t.enabledInstrumentations;return!a||a.includes(e)}function qr(e,t){var a;if(Object.values(Qa).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=[];Oa(r),Object.entries((a=t==null?void 0:t.attributes)!==null&&a!==void 0?a:{}).forEach(function(s){var n=Ha(s,2),o=n[0],i=n[1];return ie(r,o,i)}),ie(r,Wa,e),t!=null&&t.title&&ie(r,"dash0.web.event.title",t.title),Xa({timeUnixNano:(t==null?void 0:t.timestamp)!=null?Lr(t.timestamp):Kt(),attributes:r,body:un(t==null?void 0:t.data),severityText:t==null?void 0:t.severity,severityNumber:t!=null&&t.severity?Ga[t.severity]:void 0})}}function vh(e,t){tr(e,t)}function wh(e){Ue("".concat("Initializing Dash0 Web SDK"," (via package)")),yh(e)}const Ph="service.version",Ah=!!{APP_REGION:'"eu"',APP_PULL_REQUEST:'"false"',APP_ENV:'"stage"',APP_FV_REGION:'"stage"',APP_VERSION:'"1.1632.0"',APP_NAME:'"sdk-loader"'}.APP_LOCAL,Yi=["dev","stage","prod"],Ji=["eu","eu2","us1"],Eh=["APP_LOCAL","APP_PREVIEW"];function Wr(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 Vh(){return Object.keys({APP_REGION:'"eu"',APP_PULL_REQUEST:'"false"',APP_ENV:'"stage"',APP_FV_REGION:'"stage"',APP_VERSION:'"1.1632.0"',APP_NAME:'"sdk-loader"'}).filter(e=>/^APP_/.test(e)&&!Eh.includes(e)).reduce((e,t)=>{const a={APP_REGION:'"eu"',APP_PULL_REQUEST:'"false"',APP_ENV:'"stage"',APP_FV_REGION:'"stage"',APP_VERSION:'"1.1632.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]:Wr(a)})},{})}function Xi(){let e='"eu"'.toLowerCase();return Ji.indexOf(e)===-1&&(e=Wr(e)),Ji.indexOf(e)===-1&&(e="eu"),e}function Rh(){if(Xi()!=="eu")return"prod";let t='"stage"'.toLowerCase();return Yi.indexOf(t)===-1&&(t=Wr(t)),Yi.indexOf(t)===-1&&(t="dev"),t}const Ki=["dev","stage","eu1","eu2","us1"];function Sh(){let e='"stage"'.toLowerCase();return Ki.indexOf(e)===-1&&(e=Wr(e)),Ki.indexOf(e)===-1&&(e="dev"),e}function ea(){const e=Rh(),t=Xi(),a=Sh();return{...Vh(),env:e,region:t,fvRegion:a,isLocalProcess:!!{APP_REGION:'"eu"',APP_PULL_REQUEST:'"false"',APP_ENV:'"stage"',APP_FV_REGION:'"stage"',APP_VERSION:'"1.1632.0"',APP_NAME:'"sdk-loader"'}.APP_LOCAL,isPullRequest:!1,isDev:e==="dev",isStage:e==="stage",isProd:e==="prod",isPreview:!!{APP_REGION:'"eu"',APP_PULL_REQUEST:'"false"',APP_ENV:'"stage"',APP_FV_REGION:'"stage"',APP_VERSION:'"1.1632.0"',APP_NAME:'"sdk-loader"'}.APP_PREVIEW}}class qe{constructor(t){Pe(this,"ws");Pe(this,"http");this.ws=new ar(t,"ws",t.sameOnAllRegions),this.http=new ar(t,"http",t.sameOnAllRegions)}}class ar{constructor(t,a,r=!1){Pe(this,"map");Pe(this,"protocol");Pe(this,"locked");Pe(this,"runtime",ea());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 ar(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 ar({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<t.length;c++){const d=t.charAt(c);switch(d){case"{":s=[],l=!0;break;case"}":if(s!==null)me.expandToken(n,s.join(""),o,me.getMaxChar(i,c),l,a,r,c)&&l&&(l=!1),s=null,n=null,o=!1,i=null;else throw new Error(`Failed to expand token, invalid at col: ${c}`);break;case",":if(s!==null){me.expandToken(n,s.join(""),o,me.getMaxChar(i,c),l,a,r,c)&&l&&(l=!1),s=[],o=!1,i=null;break}default:if(s!==null)if(n===null)n=me.getOperator(d,s,c);else if(i!==null)if(d.match(/^\d$/))i.push(d);else throw new Error(`Illegal character identified in the token at col: ${c}`);else d===":"?i=[]:d==="*"?o=!0:(me.validateLiteral(d,c),s.push(d));else r.push(d);break}}if(s===null)return r.join("");throw new Error("Unterminated token")}static addPrefix(t,a){switch(t){case 2:a.push("#");break;case 3:a.push(".");break;case 4:a.push("/");break;case 5:a.push(";");break;case 6:a.push("?");break;case 7:a.push("&");break;default:return}}static addSeparator(t,a){switch(t){case 3:a.push(".");break;case 4:a.push("/");break;case 5:a.push(";");break;case 6:case 7:a.push("&");break;default:a.push(",");return}}static addValue(t,a,r,s,n){switch(t){case 1:case 2:me.addExpandedValue(null,r,s,n,!1);break;case 6:case 7:s.push(`${a}=`),me.addExpandedValue(null,r,s,n,!0);break;case 5:s.push(a),me.addExpandedValue("=",r,s,n,!0);break;case 3:case 4:case 0:me.addExpandedValue(null,r,s,n,!0);break}}static addValueElement(t,a,r,s,n){switch(t){case 1:case 2:me.addExpandedValue(null,r,s,n,!1);break;case 6:case 7:case 5:case 3:case 4:case 0:me.addExpandedValue(null,r,s,n,!0);break}}static isSurrogate(t){const a=t.charCodeAt(0);return a>=55296&&a<=56319}static isIprivate(t){return 57344<=t.charCodeAt(0)&&t.charCodeAt(0)<=63743}static isUcschar(t){const a=t.codePointAt(0)||0;return 160<=a&&a<=55295||63744<=a&&a<=64975||65008<=a&&a<=65519}static addExpandedValue(t,a,r,s,n){const o=me.convertNativeTypes(a),i=s!==-1?Math.min(s,o.length):o.length;let l;i>0&&t!=null&&r.push(t);for(let c=0;c<i;c++){const d=o.charAt(c);d==="%"&&!n&&(l=[]);let h=d;if(me.isSurrogate(d)?(h=encodeURIComponent(o.charAt(c)+o.charAt(c+1)),c++):(n||me.isUcschar(d)||me.isIprivate(d))&&(d==="!"?h="%21":h=encodeURIComponent(h)),l){if(l.push(h),l.length===3){let m=!1;try{const O=l.join(""),p=decodeURIComponent(l.join(""));m=O!==p}catch{}m?r.push(l.join("")):(r.push("%25"),r.push(l.slice(1).join(""))),l=void 0}}else d===" "?r.push("%20"):d==="%"?r.push("%25"):r.push(h)}l&&(r.push("%25"),r.push(l.slice(1).join("")))}static isList(t){return Array.isArray(t)||t instanceof Set}static isMap(t){return t instanceof Map||typeof t=="object"}static getSubstitutionType(t,a){if(t==null)return 0;if(me.isNativeType(t))return 1;if(me.isList(t))return 2;if(me.isMap(t))return 3;throw new Error(`Illegal class passed as substitution, found ${typeof t} at col: ${a}`)}static isEmpty(t,a){if(a==null)return!0;switch(t){case 1:return!1;case 2:return a.length===0;case 3:return Object.keys(a).length===0;default:return!0}}static isNativeType(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"}static convertNativeTypes(t){if(typeof t=="string")return t;if(typeof t=="number"||typeof t=="boolean")return t.toString();throw new Error(`Illegal class passed as substitution, found ${typeof t}`)}static expandToken(t,a,r,s,n,o,i,l){if(a.length===0)throw new Error(`Found an empty token at col: ${l}`);const c=o[a],d=me.getSubstitutionType(c,l);if(d===0||me.isEmpty(d,c))return!1;switch(n?me.addPrefix(t,i):me.addSeparator(t,i),d){case 1:me.addStringValue(t,a,c,i,s);break;case 2:me.addListValue(t,a,c,i,s,r);break;case 3:me.addMapValue(t,a,c,i,s,r);break}return!0}static addStringValue(t,a,r,s,n){me.addValue(t,a,r,s,n)}static addListValue(t,a,r,s,n,o){let i=!0;for(const l of r)i?(me.addValue(t,a,l,s,n),i=!1):o?(me.addSeparator(t,s),me.addValue(t,a,l,s,n)):(s.push(","),me.addValueElement(t,a,l,s,n))}static addMapValue(t,a,r,s,n,o){let i=!0;if(n!==-1)throw new Error("Value trimming is not allowed on Maps");for(const l in r){const c=r[l];o?(i||me.addSeparator(t,s),me.addValueElement(t,a,l,s,n),s.push("=")):(i?me.addValue(t,a,l,s,n):(s.push(","),me.addValueElement(t,a,l,s,n)),s.push(",")),me.addValueElement(t,a,c,s,n),i=!1}}}class rr{constructor(t,a){Pe(this,"runtime",ea());Pe(this,"template");Pe(this,"overrides");Pe(this,"ws");Pe(this,"http");this.template=t,this.overrides=a;const r=this.resolveRuntimeTemplate();this.ws=new vn(r,"ws"),this.http=new vn(r,"http")}getLocalURL(t,a="http"){return this.getURLForEnvironment("local",t,a)}getPreviewURL(t,a="http"){return this.getURLForEnvironment("preview",t,a)}getURLForEnvironment(t,a,r){const s=this.resolveTemplate(t);return new vn(s,r).get(a)}resolveRuntimeTemplate(){return this.runtime.isLocalProcess?this.resolveTemplate(this.runtime.isPreview?"preview":"local"):this.resolveNonLocalTemplate()}resolveNonLocalTemplate(){var t;return((t=this.overrides)==null?void 0:t[this.runtime.fvRegion])??this.template}resolveTemplate(t){var r,s,n;const a=this.resolveNonLocalTemplate();return t==="preview"?((r=this.overrides)==null?void 0:r.preview)??((s=this.overrides)==null?void 0:s.local)??a:((n=this.overrides)==null?void 0:n.local)??a}}class vn{constructor(t,a){Pe(this,"runtime",ea());Pe(this,"template");this.template=t.replace(/^(http|ws)/,a)}get(t){return me.expand(this.template,{...t,fvRegion:t.fvRegion??this.runtime.fvRegion,version:t.version??this.runtime.version})}}new qe({dev:"https://api.dev.fullview.io/v4/log",stage:"https://api.stage.fullview.io/v4/log",prod:"https://api.fullview.io/v4/log"}),new qe({local:"http://localhost:3003",preview:"http://localhost:3003",dev:"https://call.dev.fullview.io",stage:"https://call.stage.fullview.io",prod:"https://call.fullview.io"});const Th=new qe({dev:"https://api.dev.fullview.io/v1/assets",stage:"https://api.stage.fullview.io/v1/assets",prod:"https://api.fullview.io/v1/assets"}),Zi=ea(),wn=new rr("https://install.{fvRegion}.fullview.io",{local:"http://localhost:3001/src/index.ts{?o,w,s}",preview:"http://localhost:3001/main.js{?o,w,s}"}),Ch=new rr("https://install.{fvRegion}.fullview.io/v{version}/main.js",{local:"http://localhost:3001/src/index.ts{?o,w,s}",preview:"http://localhost:3001/main.js{?o,w,s}"});new rr("https://api.{fvRegion}.fullview.io/v1/install");const Pn=new rr("https://install.{fvRegion}.fullview.io/v{version}/sdk.js",{local:"http://localhost:3002/src/index.tsx{?o,w,s}",preview:"http://localhost:3002/sdk.js{?o,w,s}"});new rr("https://install.{fvRegion}.fullview.io/v{version}/sdkWorker.js",{local:"http://localhost:3004/build/sdkWorker.js",preview:"http://localhost:3004/sdkWorker.js"}),new qe({local:"http://localhost:3005/build/dashboardWorker.js",preview:"http://localhost:3005/build/dashboardWorker.js",dev:"https://dev.fullview.io/dashboardWorker.js",stage:"https://stage.fullview.io/dashboardWorker.js",prod:"https://app.fullview.io/dashboardWorker.js"}),new qe({dev:"https://api.dev.fullview.io/v1/daily",stage:"https://api.stage.fullview.io/v1/daily",prod:"https://api.fullview.io/v1/daily"}),new qe({dev:"https://api.dev.fullview.io/v1/fonts",stage:"https://api.stage.fullview.io/v1/fonts",prod:"https://api.fullview.io/v1/fonts"});const Tt=new qe({dev:"https://api.dev.fullview.io/nexus",stage:"https://api.stage.fullview.io/nexus",prod:"https://api.fullview.io/nexus"}),ut=new qe({dev:"https://api.dev.fullview.io/citadel",stage:"https://api.stage.fullview.io/citadel",prod:"https://api.fullview.io/citadel"}),Ge=new qe({dev:"https://api.dev.fullview.io/access",stage:"https://api.stage.fullview.io/access",prod:"https://api.fullview.io/access"}),Ih=new qe({dev:"https://api.dev.fullview.io/v1/collector",stage:"https://api.stage.fullview.io/v1/collector",prod:"https://api.fullview.io/v1/collector"}),Me=new qe({local:Zi.aiAgentUrl?Zi.aiAgentUrl:void 0,dev:"https://api.dev.fullview.io/ai-agent",stage:"https://api.stage.fullview.io/ai-agent",prod:"https://api.fullview.io/ai-agent"});new qe({local:"http://localhost:3000",dev:"https://dev.fullview.io",stage:"https://stage.fullview.io",prod:"https://app.fullview.io"});const el=new qe({sameOnAllRegions:!0,dev:"https://api.dev.fullview.io/v1/connect",stage:"https://api.stage.fullview.io/v1/connect",prod:"https://api.fullview.io/v1/connect"}),tl=new qe({dev:"https://api.dev.fullview.io/integrations",stage:"https://api.stage.fullview.io/integrations",prod:"https://api.fullview.io/integrations"});new qe({sameOnAllRegions:!0,local:"http://localhost:5175",preview:"http://localhost:5175",dev:"https://demo.fullview.io",stage:"https://demo.fullview.io",prod:"https://demo.fullview.io"});function Uh({serviceName:e,enabledInstrumentations:t=[],additionalAttributes:a}={}){const r=ea();wh({serviceName:e??r.name,endpoint:{url:`https://api.${r.fvRegion}.fullview.io/otel`,authToken:"dummy-token"},environment:r.env,deploymentName:r.fvRegion,serviceVersion:r.version,propagators:[{match:[/.*\.fullview\.io(?!\/v1\/fonts\/)/],type:"traceparent"}],ignoreUrls:[/^(?!.*fullview\.io.*).*$/],enabledInstrumentations:t,additionalSignalAttributes:{"deployment.environment":r.env,"deployment.fv_region":r.fvRegion,[Ph]:r.version,version:r.version,...a}})}class xh{constructor(){this.meta={}}debug(t,a,r){qr(`logger.${t}`,{title:a,severity:"DEBUG",attributes:this.argsToAttributes(r)})}log(t,a,r){qr(`logger.${t}`,{title:a,severity:"INFO",attributes:this.argsToAttributes(r)})}warn(t,a,r){qr(`logger.${t}`,{title:a,severity:"WARN",attributes:this.argsToAttributes(r)})}error(t,a,r){r instanceof Error&&vh(r,{componentStack:r.stack}),qr(`logger.${t}`,{title:a,severity:"ERROR",attributes:this.argsToAttributes(r)})}setMeta(t){this.meta=this.argsToAttributes(t)}argsToAttributes(t){return t===void 0?this.meta:t instanceof Error?{...this.meta,error:An(t)}:{...this.meta,...Object.fromEntries(Object.entries(t).map(([a,r])=>[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 En=[{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"}];En.filter(e=>e.intercom),En.filter(e=>e.zendesk),En.filter(e=>e.salesforce);const _h=()=>{},Qr="–",Gr="fvDebug",Lh=e=>!((!Ah||e!=="error")&&(!globalThis.localStorage||localStorage.getItem(Gr)!=="true"));function zr(e,t,a){const r=a.value;return a.value=function(s,n,o){if(Lh(t))return r.apply(this,[s,n,o])},a}var Fh=Object.defineProperty,Dh=Object.getOwnPropertyDescriptor,Yr=(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&&Fh(t,a,s),s};class ya{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}]`}}Yr([zr],ya.prototype,"debug",1),Yr([zr],ya.prototype,"log",1),Yr([zr],ya.prototype,"warn",1),Yr([zr],ya.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 ya))}}const ht=new Mh;ht.addLogger(new ya),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 Jr{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]}}Jr.tonePaths=jh,Jr.toneInstances={},Jr.toneControllerInstances={};function sr(e){"@babel/helpers - typeof";return sr=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},sr(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 ue(e,t){if(t.length<e)throw new TypeError(e+" argument"+(e>1?"s":"")+" required, but only "+t.length+" present")}function fe(e){ue(1,arguments);var t=Object.prototype.toString.call(e);return e instanceof Date||sr(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){ue(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){ue(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(ue(2,arguments),!t||sr(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){ue(2,arguments);var a=fe(e).getTime(),r=Ne(t);return new Date(a+r)}var $h={};function nr(){return $h}function or(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 ir(e){ue(1,arguments);var t=fe(e);return t.setHours(0,0,0,0),t}var Hh=864e5;function qh(e,t){ue(2,arguments);var a=ir(e),r=ir(t),s=a.getTime()-or(a),n=r.getTime()-or(r);return Math.round((s-n)/Hh)}function ta(e,t){ue(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 Vn(e,t){ue(2,arguments);var a=ir(e),r=ir(t);return a.getTime()===r.getTime()}function Gh(e){return ue(1,arguments),e instanceof Date||sr(e)==="object"&&Object.prototype.toString.call(e)==="[object Date]"}function zh(e){if(ue(1,arguments),!Gh(e)&&typeof e!="number")return!1;var t=fe(e);return!isNaN(Number(t))}function Yh(e,t){ue(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){ue(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){ue(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 ue(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){ue(2,arguments);var r=Rn(e,t)/Qh;return Sn(a==null?void 0:a.roundingMethod)(r)}function ep(e,t,a){ue(2,arguments);var r=Rn(e,t)/Wh;return Sn(a==null?void 0:a.roundingMethod)(r)}function Xr(e){ue(1,arguments);var t=fe(e);return t.setHours(23,59,59,999),t}function tp(e){ue(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){ue(1,arguments);var t=fe(e);return Xr(t).getTime()===tp(t).getTime()}function nl(e,t){ue(2,arguments);var a=fe(e),r=fe(t),s=ta(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=ta(a,r)===-s;ap(fe(e))&&n===1&&ta(e,r)===1&&(i=!1),o=s*(n-Number(i))}return o===0?0:o}function ol(e,t,a){ue(2,arguments);var r=Rn(e,t)/1e3;return Sn(a==null?void 0:a.roundingMethod)(r)}function rp(e,t){ue(2,arguments);var a=fe(e),r=fe(t),s=ta(a,r),n=Math.abs(Jh(a,r));a.setFullYear(1584),r.setFullYear(1584);var o=ta(a,r)===-s,i=s*(n-Number(o));return i===0?0:i}function sp(e,t){ue(2,arguments);var a=Ne(t);return Bh(e,-a)}var np=864e5;function op(e){ue(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 Kr(e){ue(1,arguments);var t=1,a=fe(e),r=a.getUTCDay(),s=(r<t?7:0)+r-t;return a.setUTCDate(a.getUTCDate()-s),a.setUTCHours(0,0,0,0),a}function il(e){ue(1,arguments);var t=fe(e),a=t.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(a+1,0,4),r.setUTCHours(0,0,0,0);var s=Kr(r),n=new Date(0);n.setUTCFullYear(a,0,4),n.setUTCHours(0,0,0,0);var o=Kr(n);return t.getTime()>=s.getTime()?a+1:t.getTime()>=o.getTime()?a:a-1}function ip(e){ue(1,arguments);var t=il(e),a=new Date(0);a.setUTCFullYear(t,0,4),a.setUTCHours(0,0,0,0);var r=Kr(a);return r}var lp=6048e5;function cp(e){ue(1,arguments);var t=fe(e),a=Kr(t).getTime()-ip(t).getTime();return Math.round(a/lp)+1}function Zr(e,t){var a,r,s,n,o,i,l,c;ue(1,arguments);var d=nr(),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<h?7:0)+O-h;return m.setUTCDate(m.getUTCDate()-p),m.setUTCHours(0,0,0,0),m}function ll(e,t){var a,r,s,n,o,i,l,c;ue(1,arguments);var d=fe(e),h=d.getUTCFullYear(),m=nr(),O=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:m.firstWeekContainsDate)!==null&&r!==void 0?r:(l=m.locale)===null||l===void 0||(c=l.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(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=Zr(p,t),g=new Date(0);g.setUTCFullYear(h,0,O),g.setUTCHours(0,0,0,0);var _=Zr(g,t);return d.getTime()>=b.getTime()?h+1:d.getTime()>=_.getTime()?h:h-1}function dp(e,t){var a,r,s,n,o,i,l,c;ue(1,arguments);var d=nr(),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=Zr(O,t);return p}var up=6048e5;function hp(e,t){ue(1,arguments);var a=fe(e),r=Zr(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.length<t;)r="0"+r;return a+r}var pp={y:function(t,a){var r=t.getUTCFullYear(),s=r>0?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 Bt=pp;var va={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 Bt.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 Bt.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"}):Bt.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=va.noon:s===0?n=va.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=va.evening:s>=12?n=va.afternoon:s>=4?n=va.morning:n=va.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 Bt.h(t,a)},H:function(t,a,r){return a==="Ho"?r.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Bt.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"}):Bt.m(t,a)},s:function(t,a,r){return a==="so"?r.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Bt.s(t,a)},S:function(t,a){return Bt.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 aa(o);case"XXXXX":case"XXX":default:return aa(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 aa(o);case"xxxxx":case"xxx":default:return aa(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"+aa(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"+aa(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 aa(e,t)}function aa(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"}},Ep=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 Vp=Ep;function Fe(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:Fe({formats:Rp,defaultWidth:"full"}),time:Fe({formats:Sp,defaultWidth:"full"}),dateTime:Fe({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 Lp={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},Fp={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:Lp,defaultWidth:"wide"}),quarter:be({values:Fp,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;a<e.length;a++)if(t(e[a]))return a}function wa(e){return function(t){var a=arguments.length>1&&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:wa({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:Vp,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,_,N,j,ce;ue(2,arguments);var pe=String(t),Ee=nr(),Re=(r=(s=a==null?void 0:a.locale)!==null&&s!==void 0?s:Ee.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:Ee.firstWeekContainsDate)!==null&&o!==void 0?o:(h=Ee.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&&gt<=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||(_=a.locale)===null||_===void 0||(N=_.options)===null||N===void 0?void 0:N.weekStartsOn)!==null&&b!==void 0?b:Ee.weekStartsOn)!==null&&p!==void 0?p:(j=Ee.locale)===null||j===void 0||(ce=j.options)===null||ce===void 0?void 0:ce.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 ja=fe(e);if(!zh(ja))throw new RangeError("Invalid time value");var Ms=or(ja),ko=sp(ja,Ms),Rr={firstWeekContainsDate:gt,weekStartsOn:Ot,locale:Re,_originalDate:ja},Sr=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,Rr);if(R.match(cm))throw new RangeError("Format string contains an unescaped latin alphabet character `"+R+"`");return je}).join("");return Sr}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;ue(2,arguments);var n=nr(),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=ta(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=(or(d)-or(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(O<fl){var b=Math.round(O/60);return o.formatDistance("aboutXHours",b,l)}else{if(O<hm)return o.formatDistance("xDays",1,l);if(O<Cn){var g=Math.round(O/fl);return o.formatDistance("xDays",g,l)}else if(O<pm)return p=Math.round(O/Cn),o.formatDistance("aboutXMonths",p,l)}if(p=nl(d,c),p<12){var _=Math.round(O/Cn);return o.formatDistance("xMonths",_,l)}else{var N=p%12,j=Math.floor(p/12);return N<3?o.formatDistance("aboutXYears",j,l):N<9?o.formatDistance("overXYears",j,l):o.formatDistance("almostXYears",j+1,l)}}function fm(e,t){return ue(1,arguments),mm(e,Date.now(),t)}function In(e){ue(1,arguments);var t=fe(e.start),a=fe(e.end);if(isNaN(t.getTime()))throw new RangeError("Start Date is invalid");if(isNaN(a.getTime()))throw new RangeError("End Date is invalid");var r={};r.years=Math.abs(rp(a,t));var s=ta(a,t),n=ze(t,{years:s*r.years});r.months=Math.abs(nl(a,n));var o=ze(n,{months:s*r.months});r.days=Math.abs(Xh(a,o));var i=ze(o,{days:s*r.days});r.hours=Math.abs(Zh(a,i));var l=ze(i,{hours:s*r.hours});r.minutes=Math.abs(ep(a,l));var c=ze(l,{minutes:s*r.minutes});return r.seconds=Math.abs(ol(a,c)),r}function Un(e,t){ue(2,arguments);var a=fe(e),r=fe(t);return a.getFullYear()===r.getFullYear()}function gm(e){return ue(1,arguments),Vn(e,Date.now())}function Om(e,t){ue(2,arguments);var a=Ne(t);return al(e,-a)}function bm(e){return ue(1,arguments),Vn(e,Om(Date.now(),1))}var ym={lessThanXSeconds:{one:"mindre end ét sekund",other:"mindre end {{count}} sekunder"},xSeconds:{one:"1 sekund",other:"{{count}} sekunder"},halfAMinute:"ét halvt minut",lessThanXMinutes:{one:"mindre end ét minut",other:"mindre end {{count}} minutter"},xMinutes:{one:"1 minut",other:"{{count}} minutter"},aboutXHours:{one:"cirka 1 time",other:"cirka {{count}} timer"},xHours:{one:"1 time",other:"{{count}} timer"},xDays:{one:"1 dag",other:"{{count}} dage"},aboutXWeeks:{one:"cirka 1 uge",other:"cirka {{count}} uger"},xWeeks:{one:"1 uge",other:"{{count}} uger"},aboutXMonths:{one:"cirka 1 måned",other:"cirka {{count}} måneder"},xMonths:{one:"1 måned",other:"{{count}} måneder"},aboutXYears:{one:"cirka 1 år",other:"cirka {{count}} år"},xYears:{one:"1 år",other:"{{count}} år"},overXYears:{one:"over 1 år",other:"over {{count}} år"},almostXYears:{one:"næsten 1 år",other:"næsten {{count}} år"}},vm=function(t,a,r){var s,n=ym[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?"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"},Em={full:"{{date}} 'kl'. {{time}}",long:"{{date}} 'kl'. {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},Vm={date:Fe({formats:Pm,defaultWidth:"full"}),time:Fe({formats:Am,defaultWidth:"full"}),dateTime:Fe({formats:Em,defaultWidth:"full"})};const Rm=Vm;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"]},Lm={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"}},Fm={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:Lm,defaultWidth:"wide",formattingValues:Fm,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:wa({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:Fe({formats:af,defaultWidth:"full"}),time:Fe({formats:rf,defaultWidth:"full"}),dateTime:Fe({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]},Ef={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](\.)? Quartal/i},Vf={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:wa({matchPattern:vf,parsePattern:wf,valueCallback:function(t){return parseInt(t)}}),era:ye({matchPatterns:Pf,defaultMatchWidth:"wide",parsePatterns:Af,defaultParseWidth:"any"}),quarter:ye({matchPatterns:Ef,defaultMatchWidth:"wide",parsePatterns:Vf,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 Lf=_f;var Ff={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=Ff[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:Fe({formats:Nf,defaultWidth:"full"}),time:Fe({formats:jf,defaultWidth:"full"}),dateTime:Fe({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:wa({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"]},Eg={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"]},Vg={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:Eg,defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:be({values:Vg,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},Lg={any:[/^av/i,/^ap/i]},Fg={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:wa({matchPattern:Ug,parsePattern:xg,valueCallback:function(t){return parseInt(t)}}),era:ye({matchPatterns:_g,defaultMatchWidth:"wide",parsePatterns:Lg,defaultParseWidth:"any"}),quarter:ye({matchPatterns:Fg,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:Fe({formats:Wg,defaultWidth:"full"}),time:Fe({formats:Qg,defaultWidth:"full"}),dateTime:Fe({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:Fe({formats:tO,defaultWidth:"full"}),time:Fe({formats:aO,defaultWidth:"full"}),dateTime:Fe({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]},EO={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},VO={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:wa({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:EO,defaultMatchWidth:"wide",parsePatterns:VO,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:Lf,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 Qr;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 Qr;const a=In({start:0,end:t});return!a.years&&!a.months&&!a.days&&!a.hours&&!a.minutes&&!a.seconds?Qr:(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 Qr;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?Xr(t.to):Xr(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=ir(n),i=Xr(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 Vn(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 Ct(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 LO(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]<n[3])){a.label=c[1];break}if(c[0]===6&&a.label<n[1]){a.label=n[1],n=c;break}if(n&&a.label<n[2]){a.label=n[2],a.ops.push(c);break}n[2]&&a.ops.pop(),a.trys.pop();continue}c=t.call(e,a)}catch(d){c=[6,d],s=0}finally{r=n=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}}function Pa(e){var t=typeof Symbol=="function"&&Symbol.iterator,a=t&&e[t],r=0;if(a)return a.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&r>=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 $t(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 ra(e,t,a){if(a||arguments.length===2)for(var r=0,s=t.length,n;r<s;r++)(n||!(r in t))&&(n||(n=Array.prototype.slice.call(t,0,r)),n[r]=t[r]);return e.concat(n||Array.prototype.slice.call(t))}function Aa(e){return this instanceof Aa?(this.v=e,this):new Aa(e)}function FO(e,t,a){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r=a.apply(e,t||[]),s,n=[];return s={},o("next"),o("throw"),o("return"),s[Symbol.asyncIterator]=function(){return this},s;function o(m){r[m]&&(s[m]=function(O){return new Promise(function(p,b){n.push([m,O,p,b])>1||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 Aa?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 Pa=="function"?Pa(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 Ve(e){return typeof e=="function"}function Ln(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 Fn=Ln(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 es(e,t){if(e){var a=e.indexOf(t);0<=a&&e.splice(a,1)}}var lr=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=Pa(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(Ve(d))try{d()}catch(b){n=b instanceof Fn?b.errors:[b]}var h=this._finalizers;if(h){this._finalizers=null;try{for(var m=Pa(h),O=m.next();!O.done;O=m.next()){var p=O.value;try{vl(p)}catch(b){n=n??[],b instanceof Fn?n=ra(ra([],$t(n)),$t(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 Fn(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)&&es(a,t)},e.prototype.remove=function(t){var a=this._finalizers;a&&es(a,t),t instanceof e&&t._removeParent(this)},e.EMPTY=function(){var t=new e;return t.closed=!0,t}(),e}(),bl=lr.EMPTY;function yl(e){return e instanceof lr||e&&"closed"in e&&Ve(e.remove)&&Ve(e.add)&&Ve(e.unsubscribe)}function vl(e){Ve(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;r<arguments.length;r++)a[r-2]=arguments[r];var s=Dn.delegate;return s!=null&&s.setTimeout?s.setTimeout.apply(s,ra([e,t],$t(a))):setTimeout.apply(void 0,ra([e,t],$t(a)))},clearTimeout:function(e){var t=Dn.delegate;return((t==null?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function Pl(e){Dn.setTimeout(function(){throw e})}function Mn(){}function ts(e){e()}var Nn=function(e){Ct(t,e);function t(a){var r=e.call(this)||this;return r.isStopped=!1,a?(r.destination=a,yl(a)&&a.add(r)):r.destination=kO,r}return t.create=function(a,r,s){return new as(a,r,s)},t.prototype.next=function(a){this.isStopped||this._next(a)},t.prototype.error=function(a){this.isStopped||(this.isStopped=!0,this._error(a))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(a){this.destination.next(a)},t.prototype._error=function(a){try{this.destination.error(a)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}(lr),MO=Function.prototype.bind;function jn(e,t){return MO.call(e,t)}var NO=function(){function e(t){this.partialObserver=t}return e.prototype.next=function(t){var a=this.partialObserver;if(a.next)try{a.next(t)}catch(r){rs(r)}},e.prototype.error=function(t){var a=this.partialObserver;if(a.error)try{a.error(t)}catch(r){rs(r)}else rs(t)},e.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(a){rs(a)}},e}(),as=function(e){Ct(t,e);function t(a,r,s){var n=e.call(this)||this,o;if(Ve(a)||!a)o={next:a??void 0,error:r??void 0,complete:s??void 0};else{var i;n&&wl.useDeprecatedNextContext?(i=Object.create(a),i.unsubscribe=function(){return n.unsubscribe()},o={next:a.next&&jn(a.next,i),error:a.error&&jn(a.error,i),complete:a.complete&&jn(a.complete,i)}):o=a}return n.destination=new NO(o),n}return t}(Nn);function rs(e){Pl(e)}function jO(e){throw e}var kO={closed:!0,next:Mn,error:jO,complete:Mn},kn=function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"}();function Al(e){return e}function BO(e){return e.length===0?Al:e.length===1?e[0]:function(a){return e.reduce(function(r,s){return s(r)},a)}}var Ye=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var a=new e;return a.source=this,a.operator=t,a},e.prototype.subscribe=function(t,a,r){var s=this,n=HO(t)?t:new as(t,a,r);return ts(function(){var o=s,i=o.operator,l=o.source;n.add(i?i.call(n,l):l?s._subscribe(n):s._trySubscribe(n))}),n},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(a){t.error(a)}},e.prototype.forEach=function(t,a){var r=this;return a=El(a),new a(function(s,n){var o=new as({next:function(i){try{t(i)}catch(l){n(l),o.unsubscribe()}},error:n,complete:s});r.subscribe(o)})},e.prototype._subscribe=function(t){var a;return(a=this.source)===null||a===void 0?void 0:a.subscribe(t)},e.prototype[kn]=function(){return this},e.prototype.pipe=function(){for(var t=[],a=0;a<arguments.length;a++)t[a]=arguments[a];return BO(t)(this)},e.prototype.toPromise=function(t){var a=this;return t=El(t),new t(function(r,s){var n;a.subscribe(function(o){return n=o},function(o){return s(o)},function(){return r(n)})})},e.create=function(t){return new e(t)},e}();function El(e){var t;return(t=e??wl.Promise)!==null&&t!==void 0?t:Promise}function $O(e){return e&&Ve(e.next)&&Ve(e.error)&&Ve(e.complete)}function HO(e){return e&&e instanceof Nn||$O(e)&&yl(e)}function qO(e){return Ve(e==null?void 0:e.lift)}function sa(e){return function(t){if(qO(t))return t.lift(function(a){try{return e(a,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}function na(e,t,a,r,s){return new WO(e,t,a,r,s)}var WO=function(e){Ct(t,e);function t(a,r,s,n,o,i){var l=e.call(this,a)||this;return l.onFinalize=o,l.shouldUnsubscribe=i,l._next=r?function(c){try{r(c)}catch(d){a.error(d)}}:e.prototype._next,l._error=n?function(c){try{n(c)}catch(d){a.error(d)}finally{this.unsubscribe()}}:e.prototype._error,l._complete=s?function(){try{s()}catch(c){a.error(c)}finally{this.unsubscribe()}}:e.prototype._complete,l}return t.prototype.unsubscribe=function(){var a;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;e.prototype.unsubscribe.call(this),!r&&((a=this.onFinalize)===null||a===void 0||a.call(this))}},t}(Nn),QO=Ln(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),ss=function(e){Ct(t,e);function t(){var a=e.call(this)||this;return a.closed=!1,a.currentObservers=null,a.observers=[],a.isStopped=!1,a.hasError=!1,a.thrownError=null,a}return t.prototype.lift=function(a){var r=new Vl(this,this);return r.operator=a,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new QO},t.prototype.next=function(a){var r=this;ts(function(){var s,n;if(r._throwIfClosed(),!r.isStopped){r.currentObservers||(r.currentObservers=Array.from(r.observers));try{for(var o=Pa(r.currentObservers),i=o.next();!i.done;i=o.next()){var l=i.value;l.next(a)}}catch(c){s={error:c}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(s)throw s.error}}}})},t.prototype.error=function(a){var r=this;ts(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=a;for(var s=r.observers;s.length;)s.shift().error(a)}})},t.prototype.complete=function(){var a=this;ts(function(){if(a._throwIfClosed(),!a.isStopped){a.isStopped=!0;for(var r=a.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var a;return((a=this.observers)===null||a===void 0?void 0:a.length)>0},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 lr(function(){r.currentObservers=null,es(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 Vl(a,r)},t}(Ye),Vl=function(e){Ct(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}(ss),Rl=function(e){Ct(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}(ss),Sl={now:function(){return(Sl.delegate||Date).now()},delegate:void 0},GO=function(e){Ct(t,e);function t(a,r){return e.call(this)||this}return t.prototype.schedule=function(a,r){return this},t}(lr),ns={setInterval:function(e,t){for(var a=[],r=2;r<arguments.length;r++)a[r-2]=arguments[r];var s=ns.delegate;return s!=null&&s.setInterval?s.setInterval.apply(s,ra([e,t],$t(a))):setInterval.apply(void 0,ra([e,t],$t(a)))},clearInterval:function(e){var t=ns.delegate;return((t==null?void 0:t.clearInterval)||clearInterval)(e)},delegate:void 0},zO=function(e){Ct(t,e);function t(a,r){var s=e.call(this,a,r)||this;return s.scheduler=a,s.work=r,s.pending=!1,s}return t.prototype.schedule=function(a,r){var s;if(r===void 0&&(r=0),this.closed)return this;this.state=a;var n=this.id,o=this.scheduler;return n!=null&&(this.id=this.recycleAsyncId(o,n,r)),this.pending=!0,this.delay=r,this.id=(s=this.id)!==null&&s!==void 0?s:this.requestAsyncId(o,this.id,r),this},t.prototype.requestAsyncId=function(a,r,s){return s===void 0&&(s=0),ns.setInterval(a.flush.bind(a,this),s)},t.prototype.recycleAsyncId=function(a,r,s){if(s===void 0&&(s=0),s!=null&&this.delay===s&&this.pending===!1)return r;r!=null&&ns.clearInterval(r)},t.prototype.execute=function(a,r){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var s=this._execute(a,r);if(s)return s;this.pending===!1&&this.id!=null&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(a,r){var s=!1,n;try{this.work(a)}catch(o){s=!0,n=o||new Error("Scheduled action threw falsy error")}if(s)return this.unsubscribe(),n},t.prototype.unsubscribe=function(){if(!this.closed){var a=this,r=a.id,s=a.scheduler,n=s.actions;this.work=this.state=this.scheduler=null,this.pending=!1,es(n,this),r!=null&&(this.id=this.recycleAsyncId(s,r,null)),this.delay=null,e.prototype.unsubscribe.call(this)}},t}(GO),Tl=function(){function e(t,a){a===void 0&&(a=e.now),this.schedulerActionCtor=t,this.now=a}return e.prototype.schedule=function(t,a,r){return a===void 0&&(a=0),new this.schedulerActionCtor(this,t).schedule(r,a)},e.now=Sl.now,e}(),YO=function(e){Ct(t,e);function t(a,r){r===void 0&&(r=Tl.now);var s=e.call(this,a,r)||this;return s.actions=[],s._active=!1,s}return t.prototype.flush=function(a){var r=this.actions;if(this._active){r.push(a);return}var s;this._active=!0;do if(s=a.execute(a.state,a.delay))break;while(a=r.shift());if(this._active=!1,s){for(;a=r.shift();)a.unsubscribe();throw s}},t}(Tl),Cl=new YO(zO),JO=Cl,Il=new Ye(function(e){return e.complete()});function Ul(e){return e&&Ve(e.schedule)}function xl(e){return e[e.length-1]}function XO(e){return Ul(xl(e))?e.pop():void 0}function KO(e,t){return typeof xl(e)=="number"?e.pop():t}var Bn=function(e){return e&&typeof e.length=="number"&&typeof e!="function"};function _l(e){return Ve(e==null?void 0:e.then)}function Ll(e){return Ve(e[kn])}function Fl(e){return Symbol.asyncIterator&&Ve(e==null?void 0:e[Symbol.asyncIterator])}function Dl(e){return new TypeError("You provided "+(e!==null&&typeof e=="object"?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function ZO(){return typeof Symbol!="function"||!Symbol.iterator?"@@iterator":Symbol.iterator}var Ml=ZO();function Nl(e){return Ve(e==null?void 0:e[Ml])}function jl(e){return FO(this,arguments,function(){var a,r,s,n;return Ol(this,function(o){switch(o.label){case 0:a=e.getReader(),o.label=1;case 1:o.trys.push([1,,9,10]),o.label=2;case 2:return[4,Aa(a.read())];case 3:return r=o.sent(),s=r.value,n=r.done,n?[4,Aa(void 0)]:[3,5];case 4:return[2,o.sent()];case 5:return[4,Aa(s)];case 6:return[4,o.sent()];case 7:return o.sent(),[3,2];case 8:return[3,10];case 9:return a.releaseLock(),[7];case 10:return[2]}})})}function kl(e){return Ve(e==null?void 0:e.getReader)}function Ht(e){if(e instanceof Ye)return e;if(e!=null){if(Ll(e))return eb(e);if(Bn(e))return tb(e);if(_l(e))return ab(e);if(Fl(e))return Bl(e);if(Nl(e))return rb(e);if(kl(e))return sb(e)}throw Dl(e)}function eb(e){return new Ye(function(t){var a=e[kn]();if(Ve(a.subscribe))return a.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}function tb(e){return new Ye(function(t){for(var a=0;a<e.length&&!t.closed;a++)t.next(e[a]);t.complete()})}function ab(e){return new Ye(function(t){e.then(function(a){t.closed||(t.next(a),t.complete())},function(a){return t.error(a)}).then(null,Pl)})}function rb(e){return new Ye(function(t){var a,r;try{for(var s=Pa(e),n=s.next();!n.done;n=s.next()){var o=n.value;if(t.next(o),t.closed)return}}catch(i){a={error:i}}finally{try{n&&!n.done&&(r=s.return)&&r.call(s)}finally{if(a)throw a.error}}t.complete()})}function Bl(e){return new Ye(function(t){nb(e,t).catch(function(a){return t.error(a)})})}function sb(e){return Bl(jl(e))}function nb(e,t){var a,r,s,n;return LO(this,void 0,void 0,function(){var o,i;return Ol(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),a=DO(e),l.label=1;case 1:return[4,a.next()];case 2:if(r=l.sent(),!!r.done)return[3,4];if(o=r.value,t.next(o),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return i=l.sent(),s={error:i},[3,11];case 6:return l.trys.push([6,,9,10]),r&&!r.done&&(n=a.return)?[4,n.call(a)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(s)throw s.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})}function qt(e,t,a,r,s){r===void 0&&(r=0),s===void 0&&(s=!1);var n=t.schedule(function(){a(),s?e.add(this.schedule(null,r)):this.unsubscribe()},r);if(e.add(n),!s)return n}function $l(e,t){return t===void 0&&(t=0),sa(function(a,r){a.subscribe(na(r,function(s){return qt(r,e,function(){return r.next(s)},t)},function(){return qt(r,e,function(){return r.complete()},t)},function(s){return qt(r,e,function(){return r.error(s)},t)}))})}function Hl(e,t){return t===void 0&&(t=0),sa(function(a,r){r.add(e.schedule(function(){return a.subscribe(r)},t))})}function ob(e,t){return Ht(e).pipe(Hl(t),$l(t))}function ib(e,t){return Ht(e).pipe(Hl(t),$l(t))}function lb(e,t){return new Ye(function(a){var r=0;return t.schedule(function(){r===e.length?a.complete():(a.next(e[r++]),a.closed||this.schedule())})})}function cb(e,t){return new Ye(function(a){var r;return qt(a,t,function(){r=e[Ml](),qt(a,t,function(){var s,n,o;try{s=r.next(),n=s.value,o=s.done}catch(i){a.error(i);return}o?a.complete():a.next(n)},0,!0)}),function(){return Ve(r==null?void 0:r.return)&&r.return()}})}function ql(e,t){if(!e)throw new Error("Iterable cannot be null");return new Ye(function(a){qt(a,t,function(){var r=e[Symbol.asyncIterator]();qt(a,t,function(){r.next().then(function(s){s.done?a.complete():a.next(s.value)})},0,!0)})})}function db(e,t){return ql(jl(e),t)}function ub(e,t){if(e!=null){if(Ll(e))return ob(e,t);if(Bn(e))return lb(e,t);if(_l(e))return ib(e,t);if(Fl(e))return ql(e,t);if(Nl(e))return cb(e,t);if(kl(e))return db(e,t)}throw Dl(e)}function hb(e,t){return t?ub(e,t):Ht(e)}var pb=Ln(function(e){return function(){e(this),this.name="EmptyError",this.message="no elements in sequence"}});function mb(e,t){var a=typeof t=="object";return new Promise(function(r,s){var n=new as({next:function(o){r(o),n.unsubscribe()},error:s,complete:function(){a?r(t.defaultValue):s(new pb)}});e.subscribe(n)})}function fb(e){return e instanceof Date&&!isNaN(e)}function Wl(e,t){return sa(function(a,r){var s=0;a.subscribe(na(r,function(n){r.next(e.call(t,n,s++))}))})}var gb=Array.isArray;function Ob(e,t){return gb(t)?e.apply(void 0,ra([],$t(t))):e(t)}function bb(e){return Wl(function(t){return Ob(e,t)})}function yb(e,t,a,r,s,n,o,i){var l=[],c=0,d=0,h=!1,m=function(){h&&!l.length&&!c&&t.complete()},O=function(b){return c<r?p(b):l.push(b)},p=function(b){n&&t.next(b),c++;var g=!1;Ht(a(b,d++)).subscribe(na(t,function(_){s==null||s(_),n?O(_):t.next(_)},function(){g=!0},void 0,function(){if(g)try{c--;for(var _=function(){var N=l.shift();o?qt(t,o,function(){return p(N)}):p(N)};l.length&&c<r;)_();m()}catch(N){t.error(N)}}))};return e.subscribe(na(t,O,function(){h=!0,m()})),function(){i==null||i()}}function $n(e,t,a){return a===void 0&&(a=1/0),Ve(t)?$n(function(r,s){return Wl(function(n,o){return t(r,n,s,o)})(Ht(e(r,s)))},a):(typeof t=="number"&&(a=t),sa(function(r,s){return yb(r,s,e,a)}))}function vb(e){return e===void 0&&(e=1/0),$n(Al,e)}var wb=["addListener","removeListener"],Pb=["addEventListener","removeEventListener"],Ab=["on","off"];function cr(e,t,a,r){if(Ve(a)&&(r=a,a=void 0),r)return cr(e,t,a).pipe(bb(r));var s=$t(Rb(e)?Pb.map(function(i){return function(l){return e[i](t,l,a)}}):Eb(e)?wb.map(Ql(e,t)):Vb(e)?Ab.map(Ql(e,t)):[],2),n=s[0],o=s[1];if(!n&&Bn(e))return $n(function(i){return cr(i,t,a)})(Ht(e));if(!n)throw new TypeError("Invalid event target");return new Ye(function(i){var l=function(){for(var c=[],d=0;d<arguments.length;d++)c[d]=arguments[d];return i.next(1<c.length?c:c[0])};return n(l),function(){return o(l)}})}function Ql(e,t){return function(a){return function(r){return e[a](t,r)}}}function Eb(e){return Ve(e.addListener)&&Ve(e.removeListener)}function Vb(e){return Ve(e.on)&&Ve(e.off)}function Rb(e){return Ve(e.addEventListener)&&Ve(e.removeEventListener)}function Sb(e,t,a){e===void 0&&(e=0),a===void 0&&(a=JO);var r=-1;return t!=null&&(Ul(t)?a=t:r=t),new Ye(function(s){var n=fb(e)?+e-a.now():e;n<0&&(n=0);var o=0;return a.schedule(function(){s.closed||(s.next(o++),0<=r?this.schedule(void 0,r):s.complete())},n)})}function Tb(e,t){return e===void 0&&(e=0),t===void 0&&(t=Cl),e<0&&(e=0),Sb(e,e,t)}function Cb(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var a=XO(e),r=KO(e,1/0),s=e;return s.length?s.length===1?Ht(s[0]):vb(r)(hb(s,a)):Il}function Ib(e,t){return sa(function(a,r){var s=0;a.subscribe(na(r,function(n){return e.call(t,n,s++)&&r.next(n)}))})}function Ub(e){return e<=0?function(){return Il}:sa(function(t,a){var r=0;t.subscribe(na(a,function(s){++r<=e&&(a.next(s),e<=r&&a.complete())}))})}function Gl(e){return sa(function(t,a){Ht(e).subscribe(na(a,function(){return a.complete()},Mn)),!a.closed&&t.subscribe(a)})}class xb{constructor(){var t;this.$debugEnabled=new Rl(((t=self.localStorage)==null?void 0:t.getItem(Gr))==="true")}toggle(){const t=!this.$debugEnabled.value;t?localStorage.setItem(Gr,"true"):localStorage.removeItem(Gr),this.$debugEnabled.next(t)}}new xb;class _b{constructor(){Pe(this,"vault",new Map)}get(t,a){let r=this.vault.get(t);return r||(r=a(),this.set(t,r)),r}set(t,a){this.vault.set(t,a)}}const re=new _b;function zl(e,t){return function(){return e.apply(t,arguments)}}const{toString:Lb}=Object.prototype,{getPrototypeOf:Hn}=Object,os=(e=>t=>{const a=Lb.call(t);return e[a]||(e[a]=a.slice(8,-1).toLowerCase())})(Object.create(null)),pt=e=>(e=e.toLowerCase(),t=>os(t)===e),is=e=>t=>typeof t===e,{isArray:Ea}=Array,dr=is("undefined");function Fb(e){return e!==null&&!dr(e)&&e.constructor!==null&&!dr(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=is("string"),tt=is("function"),Jl=is("number"),ls=e=>e!==null&&typeof e=="object",Nb=e=>e===!0||e===!1,cs=e=>{if(os(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=>ls(e)&&tt(e.pipe),qb=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||tt(e.append)&&((t=os(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 ur(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;r<s;r++)t.call(null,e[r],r,e);else{const n=a?Object.getOwnPropertyNames(e):Object.keys(e),o=n.length;let i;for(r=0;r<o;r++)i=n[r],t.call(null,e[i],i,e)}}function Xl(e,t){t=t.toLowerCase();const a=Object.keys(e);let r=a.length,s;for(;r-- >0;)if(s=a[r],t===s.toLowerCase())return s;return null}const oa=(()=>typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:globalThis)(),Kl=e=>!dr(e)&&e!==oa;function qn(){const{caseless:e}=Kl(this)&&this||{},t={},a=(r,s)=>{const n=e&&Xl(t,s)||s;cs(t[n])&&cs(r)?t[n]=qn(t[n],r):cs(r)?t[n]=qn({},r):Ea(r)?t[n]=r.slice():t[n]=r};for(let r=0,s=arguments.length;r<s;r++)arguments[r]&&ur(arguments[r],a);return t}const Xb=(e,t,a,{allOwnKeys:r}={})=>(ur(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={};ur(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(ls(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[s]=r;const n=Ea(r)?[]:{};return ur(r,(o,i)=>{const l=a(o,s+1);!dr(l)&&(n[i]=l)}),t[s]=void 0,n}}return r};return a(e,0)},fy=pt("AsyncFunction"),gy=e=>e&&(ls(e)||tt(e))&&tt(e.then)&&tt(e.catch),tc=((e,t)=>e?setImmediate:t?((a,r)=>(oa.addEventListener("message",({source:s,data:n})=>{s===oa&&n===a&&r.length&&r.shift()()},!1),s=>{r.push(s),oa.postMessage(a,"*")}))(`axios@${Math.random()}`,[]):a=>setTimeout(a))(typeof setImmediate=="function",tt(oa.postMessage)),Oy=typeof queueMicrotask<"u"?queueMicrotask.bind(oa):typeof process<"u"&&process.nextTick||tc,y={isArray:Ea,isArrayBuffer:Yl,isBuffer:Fb,isFormData:qb,isArrayBufferView:Db,isString:Mb,isNumber:Jl,isBoolean:Nb,isObject:ls,isPlainObject:cs,isReadableStream:Qb,isRequest:Gb,isResponse:zb,isHeaders:Yb,isUndefined:dr,isDate:jb,isFile:kb,isBlob:Bb,isRegExp:ly,isFunction:tt,isStream:Hb,isURLSearchParams:Wb,isTypedArray:ry,isFileList:$b,forEach:ur,merge:qn,extend:Xb,trim:Jb,stripBOM:Kb,inherits:Zb,toFlatObject:ey,kindOf:os,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:oa,isContextDefined:Kl,isSpecCompliantForm:py,toJSONObject:my,isAsyncFn:fy,isThenable:gy,setImmediate:tc,asap:Oy};function de(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(de,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=de.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(de,rc),Object.defineProperty(ac,"isAxiosError",{value:!0}),de.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"),de.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 ds(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 de("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 _=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,"[]"))&&(_=y.toArray(p)))return b=sc(b),_.forEach(function(j,ce){!(y.isUndefined(j)||j===null)&&t.append(o===!0?nc([b],ce,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(_,N){(!(y.isUndefined(_)||_===null)&&s.call(t,_,y.isString(N)?N.trim():N,b,m))===!0&&O(_,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&&ds(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,Ey=Gn&&(!zn||["ReactNative","NativeScript","NS"].indexOf(zn.product)<0),Vy=(()=>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:Ey,hasStandardBrowserWebWorkerEnv:Vy,navigator:zn,origin:Ry},Symbol.toStringTag,{value:"Module"})),...Ay};function Sy(e,t){return ds(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<s;r++)n=a[r],t[n]=e[n];return t}function uc(e){function t(a,r,s,n){let o=a[n++];if(o==="__proto__")return!0;const i=Number.isFinite(+o),l=n>=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 ds(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"?de.from(i,de.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 hr(e){return e&&String(e).trim().toLowerCase()}function us(e){return e===!1||e==null?e:y.isArray(e)?e.map(us):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 Ly=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 Fy(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 hs{constructor(t){t&&this.set(t)}set(t,a,r){const s=this;function n(i,l,c){const d=hr(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]=us(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())&&!Ly(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=hr(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=hr(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=hr(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]=us(s),delete a[n];return}const i=t?Fy(n):String(n).trim();i!==n&&delete a[n],a[i]=us(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=hr(o);r[i]||(Dy(s,o),r[i]=!0)}return y.isArray(t)?t.forEach(n):n(t),this}}hs.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]),y.reduceDescriptors(hs.prototype,({value:e},t)=>{let a=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[a]=r}}}),y.freezeMethods(hs);const mt=hs;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 Va(e,t,a){de.call(this,e??"canceled",de.ERR_CANCELED,t,a),this.name="CanceledError"}y.inherits(Va,de,{__CANCEL__:!0});function mc(e,t,a){const r=a.config.validateStatus;!a.status||!r||r(a.status)?e(a):t(new de("Request failed with status code "+a.status,[de.ERR_BAD_REQUEST,de.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<t)return;const O=d&&c-d;return O?Math.round(m*1e3/O):void 0}}function jy(e,t){let a=0,r=1e3/t,s,n;const o=(c,d=Date.now())=>{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 ps=(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 ia(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=ia({},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 _(){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=_:g.onreadystatechange=function(){!g||g.readyState!==4||g.status===0&&!(g.responseURL&&g.responseURL.indexOf("file:")===0)||setTimeout(_)},g.onabort=function(){g&&(r(new de("Request aborted",de.ECONNABORTED,e,g)),g=null)},g.onerror=function(){r(new de("Network Error",de.ERR_NETWORK,e,g)),g=null},g.ontimeout=function(){let ce=s.timeout?"timeout of "+s.timeout+"ms exceeded":"timeout exceeded";const pe=s.transitional||dc;s.timeoutErrorMessage&&(ce=s.timeoutErrorMessage),r(new de(ce,pe.clarifyTimeoutError?de.ETIMEDOUT:de.ECONNABORTED,e,g)),g=null},n===void 0&&o.setContentType(null),"setRequestHeader"in g&&y.forEach(o.toJSON(),function(ce,pe){g.setRequestHeader(pe,ce)}),y.isUndefined(s.withCredentials)||(g.withCredentials=!!s.withCredentials),i&&i!=="json"&&(g.responseType=s.responseType),c&&([m,p]=ps(c,!0),g.addEventListener("progress",m)),l&&g.upload&&([h,O]=ps(l),g.upload.addEventListener("progress",h),g.upload.addEventListener("loadend",O)),(s.cancelToken||s.signal)&&(d=j=>{g&&(r(!j||j.type?new Va(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 de("Unsupported protocol "+N+":",de.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 de?d:new Va(d instanceof Error?d.message:d))}};let o=t&&setTimeout(()=>{o=null,n(new de(`timeout ${t} of ms exceeded`,de.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<t){yield e;return}let r=0,s;for(;r<a;)s=r+t,yield e.slice(r,s),r=s},Gy=async function*(e,t){for await(const a of zy(e))yield*Qy(a,t)},zy=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:a,value:r}=await t.read();if(a)break;yield r}}finally{await t.cancel()}},vc=(e,t,a,r)=>{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})},ms=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",wc=ms&&typeof ReadableStream=="function",Yy=ms&&(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)),fs={stream:Zn&&(e=>e.body)};ms&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!fs[t]&&(fs[t]=y.isFunction(e[t])?a=>a[t]():(a,r)=>{throw new de(`Response type '${t}' is not supported`,de.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:ms&&(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"}),Ee;if(y.isFormData(r)&&(Ee=pe.headers.get("content-type"))&&d.setContentType(Ee),pe.body){const[Re,gt]=fc(g,ps(gc(l)));r=vc(pe.body,Ac,Re,gt)}}y.isString(h)||(h=h?"include":"omit");const _="credentials"in Request.prototype;p=new Request(t,{...m,signal:O,method:a.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:_?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 Ee=y.toFiniteNumber(N.headers.get("content-length")),[Re,gt]=i&&fc(Ee,ps(gc(i),!0))||[];N=new Response(vc(N.body,Ac,Re,()=>{gt&&gt(),b&&b()}),pe)}c=c||"text";let ce=await fs[y.findKey(fs,c)||"text"](N,e);return!j&&b&&b(),await new Promise((pe,Ee)=>{mc(pe,Ee,{data:ce,headers:mt.from(N.headers),status:N.status,statusText:N.statusText,config:e,request:p})})}catch(_){throw b&&b(),_&&_.name==="TypeError"&&/fetch/i.test(_.message)?Object.assign(new de("Network Error",de.ERR_NETWORK,e,p),{cause:_.cause||_}):de.from(_,_&&_.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 Ec=e=>`- ${e}`,Zy=e=>y.isFunction(e)||e===null||e===!1,Vc={getAdapter:e=>{e=y.isArray(e)?e:[e];const{length:t}=e;let a,r;const s={};for(let n=0;n<t;n++){a=e[n];let o;if(r=a,!Zy(a)&&(r=eo[(o=String(a)).toLowerCase()],r===void 0))throw new de(`Unknown adapter '${o}'`);if(r)break;s[o||"#"+n]=r}if(!r){const n=Object.entries(s).map(([i,l])=>`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(Ec).join(`
`):" "+Ec(n[0]):"as no adapter specified";throw new de("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 Va(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),Vc.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",gs={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{gs[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Tc={};gs.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 de(s(o," has been removed"+(a?" in "+a:"")),de.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}},gs.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 de("options must be an object",de.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 de("option "+n+" must be "+l,de.ERR_BAD_OPTION_VALUE);continue}if(a!==!0)throw new de("Unknown option "+n,de.ERR_BAD_OPTION)}}const Os={assertOptions:ev,validators:gs},yt=Os.validators;class bs{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=ia(this.defaults,a);const{transitional:r,paramsSerializer:s,headers:n}=a;r!==void 0&&Os.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}:Os.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),Os.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<m;)d=d.then(p[h++],p[h++]);return d}m=i.length;let O=a;for(h=0;h<m;){const p=i[h++],b=i[h++];try{O=p(O)}catch(g){b.call(this,g);break}}try{d=Rc.call(this,O)}catch(p){return Promise.reject(p)}for(h=0,m=c.length;h<m;)d=d.then(c[h++],c[h++]);return d}getUri(t){t=ia(this.defaults,t);const a=Oc(t.baseURL,t.url,t.allowAbsoluteUrls);return lc(a,t.params,t.paramsSerializer)}}y.forEach(["delete","get","head","options"],function(t){bs.prototype[t]=function(a,r){return this.request(ia(r||{},{method:t,url:a,data:(r||{}).data}))}}),y.forEach(["post","put","patch"],function(t){function a(r){return function(n,o,i){return this.request(ia(i||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:n,data:o}))}}bs.prototype[t]=a(),bs.prototype[t+"Form"]=a(!0)});const ys=bs;class ao{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let a;this.promise=new Promise(function(n){a=n});const r=this;this.promise.then(s=>{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 Va(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 ys(e),a=zl(ys.prototype.request,t);return y.extend(a,ys.prototype,t,{allOwnKeys:!0}),y.extend(a,t,null,{allOwnKeys:!0}),a.create=function(s){return Cc(ia(e,s))},a}const xe=Cc(Jn);xe.Axios=ys,xe.CanceledError=Va,xe.CancelToken=tv,xe.isCancel=pc,xe.VERSION=Sc,xe.toFormData=ds,xe.AxiosError=de,xe.Cancel=xe.CanceledError,xe.all=function(t){return Promise.all(t)},xe.spread=av,xe.isAxiosError=rv,xe.mergeConfig=ia,xe.AxiosHeaders=mt,xe.formToJSON=e=>uc(y.isHTMLForm(e)?new FormData(e):e),xe.getAdapter=Vc.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",te=function(e,t,a){if(a==null)throw new nv(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},V=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()},ae=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},E=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={})=>{te("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 V(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=ae(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 V(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 V(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=ae(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 V(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=ae(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 V(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=ae(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 V(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=ae(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 V(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=ae(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 V(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=ae(t,o,e),{url:A(s),options:o}},cancelMeetingInvitation:async(t,a,r={})=>{te("cancelMeetingInvitation","meetingId",t),te("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 V(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 V(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={})=>{te("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 V(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={})=>{te("deleteFile","coBrowseId",t),te("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 V(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={})=>{te("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 V(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={})=>{te("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 V(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={})=>{te("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 V(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=ae(a,i,e),{url:A(n),options:i}},editSalesforceAIArticleImportConfiguration:async(t,a,r={})=>{te("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 V(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=ae(a,i,e),{url:A(n),options:i}},editWebsiteScrapeAIArticleImportConfiguration:async(t,a,r={})=>{te("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 V(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=ae(a,i,e),{url:A(n),options:i}},editZendeskAIArticleImportConfiguration:async(t,a,r={})=>{te("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 V(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=ae(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 V(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=ae(t,o,e),{url:A(s),options:o}},getAIArticle:async(t,a={})=>{te("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 V(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 V(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=ae(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 V(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 V(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=ae(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 V(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 V(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 V(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 V(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 V(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 V(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=ae(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 V(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=ae(t,o,e),{url:A(s),options:o}},getFile:async(t,a,r={})=>{te("getFile","coBrowseId",t),te("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 V(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={})=>{te("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 V(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={})=>{te("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 V(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 V(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={})=>{te("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 V(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 V(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={})=>{te("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 V(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 V(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 V(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={})=>{te("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 V(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 V(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=ae(t,o,e),{url:A(s),options:o}},getSalesforceBodyFieldsBasedOnConfiguration:async(t,a={})=>{te("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 V(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 V(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=ae(t,o,e),{url:A(s),options:o}},getSalesforceCategoriesBasedOnConfiguration:async(t,a={})=>{te("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 V(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 V(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=ae(t,o,e),{url:A(s),options:o}},getSalesforceLanguagesBasedOnConfiguration:async(t,a={})=>{te("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 V(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={})=>{te("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 V(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={})=>{te("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 V(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={})=>{te("inviteAgentToMeeting","meetingId",t),te("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 V(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={})=>{te("inviteCustomerToMeeting","meetingId",t),te("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 V(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=ae(r,l,e),{url:A(o),options:l}},joinMeeting:async(t,a={})=>{te("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 V(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={})=>{te("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 V(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={})=>{te("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 V(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=ae(a,i,e),{url:A(n),options:i}},onPaintReceived:async(t,a={})=>{te("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 V(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 V(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=ae(t,o,e),{url:A(s),options:o}},rescheduleAIArticleImportConfiguration:async(t,a={})=>{te("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 V(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={})=>{te("respondToAccessRequest","meetingId",t),te("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 V(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={})=>{te("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 V(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 V(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=ae(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 V(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=ae(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 V(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=ae(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 V(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=ae(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 V(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=ae(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 V(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 V(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 V(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=ae(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 V(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=ae(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 V(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=ae(t,o,e),{url:A(s),options:o}},updateParticipant:async(t,a,r={})=>{te("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 V(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=ae(a,i,e),{url:A(n),options:i}},updateParticipantRTC:async(t,a,r={})=>{te("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 V(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=ae(a,i,e),{url:A(n),options:i}},uploadFile:async(t,a,r={})=>{te("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 V(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 E(n,u,v,e)},async addFileUploadAIArticleImportConfiguration(a,r){const s=await t.addFileUploadAIArticleImportConfiguration(a,r);return E(s,u,v,e)},async addIntercomAIArticleImportConfiguration(a,r){const s=await t.addIntercomAIArticleImportConfiguration(a,r);return E(s,u,v,e)},async addSalesforceAIArticleImportConfiguration(a,r){const s=await t.addSalesforceAIArticleImportConfiguration(a,r);return E(s,u,v,e)},async addSignedIdentityPublicKey(a,r){const s=await t.addSignedIdentityPublicKey(a,r);return E(s,u,v,e)},async addWebsiteScrapeAIArticleImportConfiguration(a,r){const s=await t.addWebsiteScrapeAIArticleImportConfiguration(a,r);return E(s,u,v,e)},async addZendeskAIArticleImportConfiguration(a,r){const s=await t.addZendeskAIArticleImportConfiguration(a,r);return E(s,u,v,e)},async cancelCoBrowseRequest(a,r){const s=await t.cancelCoBrowseRequest(a,r);return E(s,u,v,e)},async cancelMeetingInvitation(a,r,s){const n=await t.cancelMeetingInvitation(a,r,s);return E(n,u,v,e)},async createOrganisation(a,r){const s=await t.createOrganisation(a,r);return E(s,u,v,e)},async deleteAIArticleImportConfiguration(a,r){const s=await t.deleteAIArticleImportConfiguration(a,r);return E(s,u,v,e)},async deleteFile(a,r,s){const n=await t.deleteFile(a,r,s);return E(n,u,v,e)},async deleteSignedIdentityPublicKey(a,r){const s=await t.deleteSignedIdentityPublicKey(a,r);return E(s,u,v,e)},async downloadFileUploadAIArticleImportConfiguration(a,r){const s=await t.downloadFileUploadAIArticleImportConfiguration(a,r);return E(s,u,v,e)},async editIntercomAIArticleImportConfiguration(a,r,s){const n=await t.editIntercomAIArticleImportConfiguration(a,r,s);return E(n,u,v,e)},async editSalesforceAIArticleImportConfiguration(a,r,s){const n=await t.editSalesforceAIArticleImportConfiguration(a,r,s);return E(n,u,v,e)},async editWebsiteScrapeAIArticleImportConfiguration(a,r,s){const n=await t.editWebsiteScrapeAIArticleImportConfiguration(a,r,s);return E(n,u,v,e)},async editZendeskAIArticleImportConfiguration(a,r,s){const n=await t.editZendeskAIArticleImportConfiguration(a,r,s);return E(n,u,v,e)},async endCoBrowse(a,r){const s=await t.endCoBrowse(a,r);return E(s,u,v,e)},async getAIArticle(a,r){const s=await t.getAIArticle(a,r);return E(s,u,v,e)},async getAIArticles(a,r){const s=await t.getAIArticles(a,r);return E(s,u,v,e)},async getAgentOpenCoBrowses(a){const r=await t.getAgentOpenCoBrowses(a);return E(r,u,v,e)},async getAgents(a,r){const s=await t.getAgents(a,r);return E(s,u,v,e)},async getAiConfig(a){const r=await t.getAiConfig(a);return E(r,u,v,e)},async getCoBrowseAudioMetadata(a,r){const s=await t.getCoBrowseAudioMetadata(a,r);return E(s,u,v,e)},async getCoBrowseRequests(a){const r=await t.getCoBrowseRequests(a);return E(r,u,v,e)},async getCobrowseAudioRecording(a,r,s){const n=await t.getCobrowseAudioRecording(a,r,s);return E(n,u,v,e)},async getConfigurations(a){const r=await t.getConfigurations(a);return E(r,u,v,e)},async getCustomers(a,r){const s=await t.getCustomers(a,r);return E(s,u,v,e)},async getCustomersStatus(a,r){const s=await t.getCustomersStatus(a,r);return E(s,u,v,e)},async getFile(a,r,s){const n=await t.getFile(a,r,s);return E(n,u,v,e)},async getFileUploadAIArticleImportConfiguration(a,r){const s=await t.getFileUploadAIArticleImportConfiguration(a,r);return E(s,u,v,e)},async getIntercomAIArticleImportConfiguration(a,r){const s=await t.getIntercomAIArticleImportConfiguration(a,r);return E(s,u,v,e)},async getIntercomCollections(a){const r=await t.getIntercomCollections(a);return E(r,u,v,e)},async getMeeting(a,r){const s=await t.getMeeting(a,r);return E(s,u,v,e)},async getMeetingInvitations(a){const r=await t.getMeetingInvitations(a);return E(r,u,v,e)},async getMeetingToken(a,r){const s=await t.getMeetingToken(a,r);return E(s,u,v,e)},async getOnboardingStatus(a){const r=await t.getOnboardingStatus(a);return E(r,u,v,e)},async getOrganisationCode(a){const r=await t.getOrganisationCode(a);return E(r,u,v,e)},async getSalesforceAIArticleImportConfiguration(a,r){const s=await t.getSalesforceAIArticleImportConfiguration(a,r);return E(s,u,v,e)},async getSalesforceBodyFields(a,r){const s=await t.getSalesforceBodyFields(a,r);return E(s,u,v,e)},async getSalesforceBodyFieldsBasedOnConfiguration(a,r){const s=await t.getSalesforceBodyFieldsBasedOnConfiguration(a,r);return E(s,u,v,e)},async getSalesforceCategories(a,r){const s=await t.getSalesforceCategories(a,r);return E(s,u,v,e)},async getSalesforceCategoriesBasedOnConfiguration(a,r){const s=await t.getSalesforceCategoriesBasedOnConfiguration(a,r);return E(s,u,v,e)},async getSalesforceLanguages(a,r){const s=await t.getSalesforceLanguages(a,r);return E(s,u,v,e)},async getSalesforceLanguagesBasedOnConfiguration(a,r){const s=await t.getSalesforceLanguagesBasedOnConfiguration(a,r);return E(s,u,v,e)},async getWebsiteScrapeAIArticleImportConfiguration(a,r){const s=await t.getWebsiteScrapeAIArticleImportConfiguration(a,r);return E(s,u,v,e)},async getZendeskAIArticleImportConfiguration(a,r){const s=await t.getZendeskAIArticleImportConfiguration(a,r);return E(s,u,v,e)},async inviteAgentToMeeting(a,r,s){const n=await t.inviteAgentToMeeting(a,r,s);return E(n,u,v,e)},async inviteCustomerToMeeting(a,r,s,n){const o=await t.inviteCustomerToMeeting(a,r,s,n);return E(o,u,v,e)},async joinMeeting(a,r){const s=await t.joinMeeting(a,r);return E(s,u,v,e)},async leaveMeeting(a,r){const s=await t.leaveMeeting(a,r);return E(s,u,v,e)},async notifyCustomer(a,r,s){const n=await t.notifyCustomer(a,r,s);return E(n,u,v,e)},async onPaintReceived(a,r){const s=await t.onPaintReceived(a,r);return E(s,u,v,e)},async registerCustomerForPlayground(a,r){const s=await t.registerCustomerForPlayground(a,r);return E(s,u,v,e)},async rescheduleAIArticleImportConfiguration(a,r){const s=await t.rescheduleAIArticleImportConfiguration(a,r);return E(s,u,v,e)},async respondToAccessRequest(a,r,s,n){const o=await t.respondToAccessRequest(a,r,s,n);return E(o,u,v,e)},async respondToInvitation(a,r,s){const n=await t.respondToInvitation(a,r,s);return E(n,u,v,e)},async selectOrgFeatures(a,r){const s=await t.selectOrgFeatures(a,r);return E(s,u,v,e)},async sendCoBrowseEmail(a,r){const s=await t.sendCoBrowseEmail(a,r);return E(s,u,v,e)},async setSignedIdentityValidation(a,r){const s=await t.setSignedIdentityValidation(a,r);return E(s,u,v,e)},async startCoBrowseUsingCode(a,r){const s=await t.startCoBrowseUsingCode(a,r);return E(s,u,v,e)},async startCoBrowseWithCustomer(a,r){const s=await t.startCoBrowseWithCustomer(a,r);return E(s,u,v,e)},async startCoBrowseWithVisitor(a){const r=await t.startCoBrowseWithVisitor(a);return E(r,u,v,e)},async startMeeting(a){const r=await t.startMeeting(a);return E(r,u,v,e)},async updateAiConfig(a,r){const s=await t.updateAiConfig(a,r);return E(s,u,v,e)},async updateCoBrowseConfig(a,r){const s=await t.updateCoBrowseConfig(a,r);return E(s,u,v,e)},async updateContentMaskingConfig(a,r){const s=await t.updateContentMaskingConfig(a,r);return E(s,u,v,e)},async updateParticipant(a,r,s){const n=await t.updateParticipant(a,r,s);return E(n,u,v,e)},async updateParticipantRTC(a,r,s){const n=await t.updateParticipantRTC(a,r,s);return E(n,u,v,e)},async uploadFile(a,r,s){const n=await t.uploadFile(a,r,s);return E(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={})=>{te("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 V(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={})=>{te("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 V(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 V(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=ae(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 V(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}}}},vs=function(e){const t=lv(e);return{async deleteFile(a,r){const s=await t.deleteFile(a,r);return E(s,u,v,e)},async getFile(a,r){const s=await t.getFile(a,r);return E(s,u,v,e)},async updateParticipant(a,r){const s=await t.updateParticipant(a,r);return E(s,u,v,e)},async uploadFile(a,r){const s=await t.uploadFile(a,r);return E(s,u,v,e)}}};class cv extends at{deleteFile(t,a){return vs(this.configuration).deleteFile(t,a).then(r=>r(this.axios,this.basePath))}getFile(t,a){return vs(this.configuration).getFile(t,a).then(r=>r(this.axios,this.basePath))}updateParticipant(t,a){return vs(this.configuration).updateParticipant(t,a).then(r=>r(this.axios,this.basePath))}uploadFile(t,a){return vs(this.configuration).uploadFile(t,a).then(r=>r(this.axios,this.basePath))}}const dv=function(e){return{getCoBrowse:async(t,a={})=>{te("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 V(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 E(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 V(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=ae(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 V(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=ae(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 E(r,u,v,e)},async register(a,r){const s=await t.register(a,r);return E(s,u,v,e)},async updateParticipant(a,r){const s=await t.updateParticipant(a,r);return E(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 V(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=ae(t,o,e),{url:A(s),options:o}},addFeedback:async(t,a,r={})=>{te("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 V(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=ae(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 V(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 V(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=ae(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 V(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=ae(t,o,e),{url:A(s),options:o}},deleteFile:async(t,a={})=>{te("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 V(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={})=>{te("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 V(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 V(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 V(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={})=>{te("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 V(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={})=>{te("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 V(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 V(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=ae(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 V(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 V(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 V(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 V(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 V(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=ae(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=ae(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=ae(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 V(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=ae(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 V(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=ae(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 V(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 V(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=ae(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 V(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=ae(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 V(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=ae(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 V(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=ae(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 V(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 V(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 E(s,u,v,e)},async addFeedback(a,r,s){const n=await t.addFeedback(a,r,s);return E(n,u,v,e)},async cancelSupportRequest(a){const r=await t.cancelSupportRequest(a);return E(r,u,v,e)},async changeWindowPosition(a,r){const s=await t.changeWindowPosition(a,r);return E(s,u,v,e)},async declineCoBrowse(a,r){const s=await t.declineCoBrowse(a,r);return E(s,u,v,e)},async deleteFile(a,r){const s=await t.deleteFile(a,r);return E(s,u,v,e)},async deleteMeetingFile(a,r){const s=await t.deleteMeetingFile(a,r);return E(s,u,v,e)},async endCoBrowse(a){const r=await t.endCoBrowse(a);return E(r,u,v,e)},async generateIdentificationCode(a){const r=await t.generateIdentificationCode(a);return E(r,u,v,e)},async getFile(a,r){const s=await t.getFile(a,r);return E(s,u,v,e)},async getMeetingFile(a,r){const s=await t.getMeetingFile(a,r);return E(s,u,v,e)},async joinCoBrowse(a,r){const s=await t.joinCoBrowse(a,r);return E(s,u,v,e)},async leaveMeeting(a){const r=await t.leaveMeeting(a);return E(r,u,v,e)},async loginCustomer(a){const r=await t.loginCustomer(a);return E(r,u,v,e)},async onCoBrowseInvitationReceived(a){const r=await t.onCoBrowseInvitationReceived(a);return E(r,u,v,e)},async onConnectFailed(a){const r=await t.onConnectFailed(a);return E(r,u,v,e)},async onFullSnapshotSent(a){const r=await t.onFullSnapshotSent(a);return E(r,u,v,e)},async registerCustomer(a,r){const s=await t.registerCustomer(a,r);return E(s,u,v,e)},async registerCustomerWithSignedIdentity(a,r){const s=await t.registerCustomerWithSignedIdentity(a,r);return E(s,u,v,e)},async registerLobby(a,r){const s=await t.registerLobby(a,r);return E(s,u,v,e)},async requestSupport(a,r){const s=await t.requestSupport(a,r);return E(s,u,v,e)},async resizeWindow(a,r){const s=await t.resizeWindow(a,r);return E(s,u,v,e)},async respondToMeetingInvitation(a,r){const s=await t.respondToMeetingInvitation(a,r);return E(s,u,v,e)},async updateAnonymousDetails(a,r){const s=await t.updateAnonymousDetails(a,r);return E(s,u,v,e)},async updateMeetingParticipant(a,r){const s=await t.updateMeetingParticipant(a,r);return E(s,u,v,e)},async updateParticipant(a,r){const s=await t.updateParticipant(a,r);return E(s,u,v,e)},async updateParticipantRTC(a,r){const s=await t.updateParticipantRTC(a,r);return E(s,u,v,e)},async uploadFile(a,r){const s=await t.uploadFile(a,r);return E(s,u,v,e)},async uploadMeetingFile(a,r){const s=await t.uploadMeetingFile(a,r);return E(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 V(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 V(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=ae(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 V(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=ae(t,o,e),{url:A(s),options:o}}}},ws=function(e){const t=Ov(e);return{async getMeeting(a){const r=await t.getMeeting(a);return E(r,u,v,e)},async leaveMeeting(a){const r=await t.leaveMeeting(a);return E(r,u,v,e)},async register(a,r){const s=await t.register(a,r);return E(s,u,v,e)},async updateParticipant(a,r){const s=await t.updateParticipant(a,r);return E(s,u,v,e)}}};class bv extends at{getMeeting(t){return ws(this.configuration).getMeeting(t).then(a=>a(this.axios,this.basePath))}leaveMeeting(t){return ws(this.configuration).leaveMeeting(t).then(a=>a(this.axios,this.basePath))}register(t,a){return ws(this.configuration).register(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))}}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 E(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={})=>{te("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=ae(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 E(n,u,v,e)}}};class Ev extends at{increment(t,a,r){return Av(this.configuration).increment(t,a,r).then(s=>s(this.axios,this.basePath))}}const Vv=function(e){return{getCoBrowseWindowConfig:async(t,a={})=>{te("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={})=>{te("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 V(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={})=>{te("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={})=>{te("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}}}},Ps=function(e){const t=Vv(e);return{async getCoBrowseWindowConfig(a,r){const s=await t.getCoBrowseWindowConfig(a,r);return E(s,u,v,e)},async getDashboardConfig(a,r){const s=await t.getDashboardConfig(a,r);return E(s,u,v,e)},async getLoaderConfig(a,r,s){const n=await t.getLoaderConfig(a,r,s);return E(n,u,v,e)},async getSdkConfig(a,r){const s=await t.getSdkConfig(a,r);return E(s,u,v,e)}}};let Rv=class extends at{getCoBrowseWindowConfig(t,a){return Ps(this.configuration).getCoBrowseWindowConfig(t,a).then(r=>r(this.axios,this.basePath))}getDashboardConfig(t,a){return Ps(this.configuration).getDashboardConfig(t,a).then(r=>r(this.axios,this.basePath))}getLoaderConfig(t,a,r){return Ps(this.configuration).getLoaderConfig(t,a,r).then(s=>s(this.axios,this.basePath))}getSdkConfig(t,a){return Ps(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 V(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={})=>{te("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 V(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={})=>{te("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 V(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=ae(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 E(r,u,v,e)},async getMappedFields(a,r){const s=await t.getMappedFields(a,r);return E(s,u,v,e)},async updateMappings(a,r,s){const n=await t.updateMappings(a,r,s);return E(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={})=>{te("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 V(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=ae(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 E(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={})=>{te("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={})=>{te("setComponentVersion","component",t),te("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 E(s,u,v,e)},async getServerTime(a){const r=await t.getServerTime(a);return E(r,u,v,e)},async setComponentVersion(a,r,s,n){const o=await t.setComponentVersion(a,r,s,n);return E(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 Lv=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 V(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=ae(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 V(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=ae(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 V(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=ae(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 V(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=ae(t,o,e),{url:A(s),options:o}}}},Ra=function(e){const t=Lv(e);return{async getMeeting(a){const r=await t.getMeeting(a);return E(r,u,v,e)},async joinCoBrowse(a,r){const s=await t.joinCoBrowse(a,r);return E(s,u,v,e)},async joinMeeting(a,r){const s=await t.joinMeeting(a,r);return E(s,u,v,e)},async leaveMeeting(a){const r=await t.leaveMeeting(a);return E(r,u,v,e)},async register(a,r){const s=await t.register(a,r);return E(s,u,v,e)},async updateParticipant(a,r){const s=await t.updateParticipant(a,r);return E(s,u,v,e)}}};class Fv extends at{getMeeting(t){return Ra(this.configuration).getMeeting(t).then(a=>a(this.axios,this.basePath))}joinCoBrowse(t,a){return Ra(this.configuration).joinCoBrowse(t,a).then(r=>r(this.axios,this.basePath))}joinMeeting(t,a){return Ra(this.configuration).joinMeeting(t,a).then(r=>r(this.axios,this.basePath))}leaveMeeting(t){return Ra(this.configuration).leaveMeeting(t).then(a=>a(this.axios,this.basePath))}register(t,a){return Ra(this.configuration).register(t,a).then(r=>r(this.axios,this.basePath))}updateParticipant(t,a){return Ra(this.configuration).updateParticipant(t,a).then(r=>r(this.axios,this.basePath))}}const x="http://localhost".replace(/\/+$/,"");let Je=class{constructor(t,a=x,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 L="https://example.com",U=function(e,t,a){if(a==null)throw new Dv(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},se=async function(e,t){if(t&&t.accessToken){const a=typeof t.accessToken=="function"?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+a}},F=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()},he=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||""},D=function(e){return e.pathname+e.search+e.hash},M=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={})=>{U("getAllConversations","getAllAnalyticsRequestDto",t);const r="/analytics/all-conversations",s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};i["Content-Type"]="application/json",F(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=he(t,o,e),{url:D(s),options:o}}}},Nv=function(e){const t=Mv(e);return{async getAllConversations(a,r){const s=await t.getAllConversations(a,r);return M(s,u,x,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={})=>{U("applyCoaching","applyCoachingRequestDto",t);const r="/coaching",s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await se(i,e),i["Content-Type"]="application/json",F(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=he(t,o,e),{url:D(s),options:o}},previewCoaching:async(t,a={})=>{U("previewCoaching","previewCoachingRequestDto",t);const r="/coaching/preview",s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await se(i,e),i["Content-Type"]="application/json",F(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=he(t,o,e),{url:D(s),options:o}}}},Ic=function(e){const t=kv(e);return{async applyCoaching(a,r){const s=await t.applyCoaching(a,r);return M(s,u,x,e)},async previewCoaching(a,r){const s=await t.previewCoaching(a,r);return M(s,u,x,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={})=>{U("createConversation","createConversationDto",t);const r="/conversations",s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await se(i,e),i["Content-Type"]="application/json",F(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=he(t,o,e),{url:D(s),options:o}},getConversation:async(t,a={})=>{U("getConversation","id",t);const r="/conversations/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await se(i,e),F(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:D(s),options:o}},listConversations:async(t,a,r,s={})=>{const n="/conversations",o=new URL(n,L);let i;e&&(i=e.baseOptions);const l={method:"GET",...i,...s},c={},d={};await se(c,e),t!==void 0&&(d.cursor=t),a!==void 0&&(d.limit=a),r!==void 0&&(d.direction=r),F(o,d);let h=i&&i.headers?i.headers:{};return l.headers={...c,...h,...s.headers},{url:D(o),options:l}},listMessages:async(t,a,r,s,n={})=>{U("listMessages","id",t);const o="/conversations/{id}/messages".replace("{id}",encodeURIComponent(String(t))),i=new URL(o,L);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...n},d={},h={};await se(d,e),a!==void 0&&(h.cursor=a),r!==void 0&&(h.limit=r),s!==void 0&&(h.direction=s),F(i,h);let m=l&&l.headers?l.headers:{};return c.headers={...d,...m,...n.headers},{url:D(i),options:c}},replayWithToolPrompt:async(t,a,r={})=>{U("replayWithToolPrompt","id",t),U("replayWithToolPrompt","replayWithToolPromptDto",a);const s="/conversations/{id}/playground/replay-with-tool-prompt".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,L);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await se(l,e),l["Content-Type"]="application/json",F(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=he(a,i,e),{url:D(n),options:i}},sendMessage:async(t,a,r={})=>{U("sendMessage","id",t),U("sendMessage","sendMessageDto",a);const s="/conversations/{id}/messages".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,L);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await se(l,e),l["Content-Type"]="application/json",F(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=he(a,i,e),{url:D(n),options:i}},streamConversationEvents:async(t,a={})=>{U("streamConversationEvents","id",t);const r="/conversations/{id}/events".replace("{id}",encodeURIComponent(String(t))),s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await se(i,e),F(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:D(s),options:o}},submitMessageFeedback:async(t,a,r,s={})=>{U("submitMessageFeedback","conversationId",t),U("submitMessageFeedback","messageId",a),U("submitMessageFeedback","submitMessageFeedbackDto",r);const n="/conversations/{conversationId}/messages/{messageId}/feedback".replace("{conversationId}",encodeURIComponent(String(t))).replace("{messageId}",encodeURIComponent(String(a))),o=new URL(n,L);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...s},c={},d={};await se(c,e),c["Content-Type"]="application/json",F(o,d);let h=i&&i.headers?i.headers:{};return l.headers={...c,...h,...s.headers},l.data=he(r,l,e),{url:D(o),options:l}},triggerVisualGuidanceForMessage:async(t,a,r,s={})=>{U("triggerVisualGuidanceForMessage","conversationId",t),U("triggerVisualGuidanceForMessage","messageId",a),U("triggerVisualGuidanceForMessage","triggerVisualGuidanceDto",r);const n="/conversations/{conversationId}/messages/{messageId}/guide".replace("{conversationId}",encodeURIComponent(String(t))).replace("{messageId}",encodeURIComponent(String(a))),o=new URL(n,L);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...s},c={},d={};await se(c,e),c["Content-Type"]="application/json",F(o,d);let h=i&&i.headers?i.headers:{};return l.headers={...c,...h,...s.headers},l.data=he(r,l,e),{url:D(o),options:l}},triggerVisualGuidanceForQuery:async(t,a,r={})=>{U("triggerVisualGuidanceForQuery","conversationId",t),U("triggerVisualGuidanceForQuery","triggerVisualGuidanceForQueryDto",a);const s="/conversations/{conversationId}/guide".replace("{conversationId}",encodeURIComponent(String(t))),n=new URL(s,L);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await se(l,e),l["Content-Type"]="application/json",F(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=he(a,i,e),{url:D(n),options:i}}}},vt=function(e){const t=Uc(e);return{async createConversation(a,r){const s=await t.createConversation(a,r);return M(s,u,x,e)},async getConversation(a,r){const s=await t.getConversation(a,r);return M(s,u,x,e)},async listConversations(a,r,s,n){const o=await t.listConversations(a,r,s,n);return M(o,u,x,e)},async listMessages(a,r,s,n,o){const i=await t.listMessages(a,r,s,n,o);return M(i,u,x,e)},async replayWithToolPrompt(a,r,s){const n=await t.replayWithToolPrompt(a,r,s);return M(n,u,x,e)},async sendMessage(a,r,s){const n=await t.sendMessage(a,r,s);return M(n,u,x,e)},async streamConversationEvents(a,r){const s=await t.streamConversationEvents(a,r);return M(s,u,x,e)},async submitMessageFeedback(a,r,s,n){const o=await t.submitMessageFeedback(a,r,s,n);return M(o,u,x,e)},async triggerVisualGuidanceForMessage(a,r,s,n){const o=await t.triggerVisualGuidanceForMessage(a,r,s,n);return M(o,u,x,e)},async triggerVisualGuidanceForQuery(a,r,s){const n=await t.triggerVisualGuidanceForQuery(a,r,s);return M(n,u,x,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={})=>{U("applyCoaching","applyCoachingRequestDto",t);const r="/dashboard-coaching",s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await se(i,e),i["Content-Type"]="application/json",F(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=he(t,o,e),{url:D(s),options:o}},createEntry:async(t,a={})=>{U("createEntry","createCoachingEntryDto",t);const r="/dashboard-coaching/entries",s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await se(i,e),i["Content-Type"]="application/json",F(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=he(t,o,e),{url:D(s),options:o}},deleteEntry:async(t,a={})=>{U("deleteEntry","id",t);const r="/dashboard-coaching/entries/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"DELETE",...n,...a},i={},l={};await se(i,e),F(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:D(s),options:o}},getEntry:async(t,a={})=>{U("getEntry","id",t);const r="/dashboard-coaching/entries/{id}".replace("{id}",encodeURIComponent(String(t))),s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await se(i,e),F(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:D(s),options:o}},listEntries:async(t={})=>{const a="/dashboard-coaching/entries",r=new URL(a,L);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await se(o,e),F(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:D(r),options:n}},previewCoaching:async(t,a={})=>{U("previewCoaching","previewCoachingRequestDto",t);const r="/dashboard-coaching/preview",s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await se(i,e),i["Content-Type"]="application/json",F(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=he(t,o,e),{url:D(s),options:o}},updateEntry:async(t,a,r={})=>{U("updateEntry","id",t),U("updateEntry","updateCoachingEntryDto",a);const s="/dashboard-coaching/entries/{id}".replace("{id}",encodeURIComponent(String(t))),n=new URL(s,L);let o;e&&(o=e.baseOptions);const i={method:"PUT",...o,...r},l={},c={};await se(l,e),l["Content-Type"]="application/json",F(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=he(a,i,e),{url:D(n),options:i}}}},la=function(e){const t=$v(e);return{async applyCoaching(a,r){const s=await t.applyCoaching(a,r);return M(s,u,x,e)},async createEntry(a,r){const s=await t.createEntry(a,r);return M(s,u,x,e)},async deleteEntry(a,r){const s=await t.deleteEntry(a,r);return M(s,u,x,e)},async getEntry(a,r){const s=await t.getEntry(a,r);return M(s,u,x,e)},async listEntries(a){const r=await t.listEntries(a);return M(r,u,x,e)},async previewCoaching(a,r){const s=await t.previewCoaching(a,r);return M(s,u,x,e)},async updateEntry(a,r,s){const n=await t.updateEntry(a,r,s);return M(n,u,x,e)}}};class Hv extends Je{applyCoaching(t,a){return la(this.configuration).applyCoaching(t,a).then(r=>r(this.axios,this.basePath))}createEntry(t,a){return la(this.configuration).createEntry(t,a).then(r=>r(this.axios,this.basePath))}deleteEntry(t,a){return la(this.configuration).deleteEntry(t,a).then(r=>r(this.axios,this.basePath))}getEntry(t,a){return la(this.configuration).getEntry(t,a).then(r=>r(this.axios,this.basePath))}listEntries(t){return la(this.configuration).listEntries(t).then(a=>a(this.axios,this.basePath))}previewCoaching(t,a){return la(this.configuration).previewCoaching(t,a).then(r=>r(this.axios,this.basePath))}updateEntry(t,a,r){return la(this.configuration).updateEntry(t,a,r).then(s=>s(this.axios,this.basePath))}}const qv=function(e){return{getZendeskOauthLink:async(t,a,r,s,n={})=>{U("getZendeskOauthLink","subdomain",t);const o="/dashboard-connections/zendesk/oauth-link",i=new URL(o,L);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...n},d={},h={};await se(d,e),t!==void 0&&(h.subdomain=t),a!==void 0&&(h.referer=a),r!==void 0&&(h.region=r),s!==void 0&&(h.ssoDomain=s),F(i,h);let m=l&&l.headers?l.headers:{};return c.headers={...d,...m,...n.headers},{url:D(i),options:c}},listConnectors:async(t,a={})=>{const r="/dashboard-connections/connectors",s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await se(i,e),t!==void 0&&(l.category=t),F(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:D(s),options:o}},startAuth:async(t,a={})=>{U("startAuth","startAuthDto",t);const r="/dashboard-connections/auth/start",s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await se(i,e),i["Content-Type"]="application/json",F(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=he(t,o,e),{url:D(s),options:o}},updateConnectionPermissions:async(t,a,r={})=>{U("updateConnectionPermissions","integrationType",t),U("updateConnectionPermissions","requestBody",a);const s="/dashboard-connections/connections/{integrationType}/permissions".replace("{integrationType}",encodeURIComponent(String(t))),n=new URL(s,L);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await se(l,e),l["Content-Type"]="application/json",F(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=he(a,i,e),{url:D(n),options:i}}}},As=function(e){const t=qv(e);return{async getZendeskOauthLink(a,r,s,n,o){const i=await t.getZendeskOauthLink(a,r,s,n,o);return M(i,u,x,e)},async listConnectors(a,r){const s=await t.listConnectors(a,r);return M(s,u,x,e)},async startAuth(a,r){const s=await t.startAuth(a,r);return M(s,u,x,e)},async updateConnectionPermissions(a,r,s){const n=await t.updateConnectionPermissions(a,r,s);return M(n,u,x,e)}}};class Wv extends Je{getZendeskOauthLink(t,a,r,s,n){return As(this.configuration).getZendeskOauthLink(t,a,r,s,n).then(o=>o(this.axios,this.basePath))}listConnectors(t,a){return As(this.configuration).listConnectors(t,a).then(r=>r(this.axios,this.basePath))}startAuth(t,a){return As(this.configuration).startAuth(t,a).then(r=>r(this.axios,this.basePath))}updateConnectionPermissions(t,a,r){return As(this.configuration).updateConnectionPermissions(t,a,r).then(s=>s(this.axios,this.basePath))}}const Qv=function(e){return{deleteConfig:async(t,a={})=>{U("deleteConfig","type",t);const r="/dashboard-connectors/{type}".replace("{type}",encodeURIComponent(String(t))),s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"DELETE",...n,...a},i={},l={};await se(i,e),F(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:D(s),options:o}},getConfig:async(t,a={})=>{U("getConfig","type",t);const r="/dashboard-connectors/{type}".replace("{type}",encodeURIComponent(String(t))),s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await se(i,e),F(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:D(s),options:o}},listConfigs:async(t={})=>{const a="/dashboard-connectors",r=new URL(a,L);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await se(o,e),F(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:D(r),options:n}},upsertConfig:async(t,a,r={})=>{U("upsertConfig","type",t),U("upsertConfig","upsertConnectorConfigDto",a);const s="/dashboard-connectors/{type}".replace("{type}",encodeURIComponent(String(t))),n=new URL(s,L);let o;e&&(o=e.baseOptions);const i={method:"PUT",...o,...r},l={},c={};await se(l,e),l["Content-Type"]="application/json",F(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=he(a,i,e),{url:D(n),options:i}}}},Es=function(e){const t=Qv(e);return{async deleteConfig(a,r){const s=await t.deleteConfig(a,r);return M(s,u,x,e)},async getConfig(a,r){const s=await t.getConfig(a,r);return M(s,u,x,e)},async listConfigs(a){const r=await t.listConfigs(a);return M(r,u,x,e)},async upsertConfig(a,r,s){const n=await t.upsertConfig(a,r,s);return M(n,u,x,e)}}};class Gv extends Je{deleteConfig(t,a){return Es(this.configuration).deleteConfig(t,a).then(r=>r(this.axios,this.basePath))}getConfig(t,a){return Es(this.configuration).getConfig(t,a).then(r=>r(this.axios,this.basePath))}listConfigs(t){return Es(this.configuration).listConfigs(t).then(a=>a(this.axios,this.basePath))}upsertConfig(t,a,r){return Es(this.configuration).upsertConfig(t,a,r).then(s=>s(this.axios,this.basePath))}}const zv=function(e){return{getAll:async(t,a={})=>{U("getAll","getAllDashboardConversationsRequestDto",t);const r="/dashboard-conversations",s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};i["Content-Type"]="application/json",F(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=he(t,o,e),{url:D(s),options:o}},getById:async(t,a={})=>{U("getById","conversationId",t);const r="/dashboard-conversations/{conversationId}".replace("{conversationId}",encodeURIComponent(String(t))),s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={};F(s,{});let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:D(s),options:o}},getMetadata:async(t,a={})=>{U("getMetadata","conversationId",t);const r="/dashboard-conversations/{conversationId}/metadata".replace("{conversationId}",encodeURIComponent(String(t))),s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={};F(s,{});let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:D(s),options:o}},shareWith:async(t,a,r={})=>{U("shareWith","conversationId",t),U("shareWith","shareConversationRequestDto",a);const s="/dashboard-conversations/{conversationId}/share-with".replace("{conversationId}",encodeURIComponent(String(t))),n=new URL(s,L);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};l["Content-Type"]="application/json",F(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=he(a,i,e),{url:D(n),options:i}}}},Vs=function(e){const t=zv(e);return{async getAll(a,r){const s=await t.getAll(a,r);return M(s,u,x,e)},async getById(a,r){const s=await t.getById(a,r);return M(s,u,x,e)},async getMetadata(a,r){const s=await t.getMetadata(a,r);return M(s,u,x,e)},async shareWith(a,r,s){const n=await t.shareWith(a,r,s);return M(n,u,x,e)}}};class Yv extends Je{getAll(t,a){return Vs(this.configuration).getAll(t,a).then(r=>r(this.axios,this.basePath))}getById(t,a){return Vs(this.configuration).getById(t,a).then(r=>r(this.axios,this.basePath))}getMetadata(t,a){return Vs(this.configuration).getMetadata(t,a).then(r=>r(this.axios,this.basePath))}shareWith(t,a,r){return Vs(this.configuration).shareWith(t,a,r).then(s=>s(this.axios,this.basePath))}}const Jv=function(e){return{createPersona:async(t,a={})=>{U("createPersona","createPersonaDto",t);const r="/dashboard-personas",s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await se(i,e),i["Content-Type"]="application/json",F(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=he(t,o,e),{url:D(s),options:o}},deletePersona:async(t,a={})=>{U("deletePersona","personaId",t);const r="/dashboard-personas/{personaId}".replace("{personaId}",encodeURIComponent(String(t))),s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"DELETE",...n,...a},i={},l={};await se(i,e),F(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:D(s),options:o}},listPersonas:async(t={})=>{const a="/dashboard-personas",r=new URL(a,L);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await se(o,e),F(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:D(r),options:n}},updatePersona:async(t,a,r={})=>{U("updatePersona","personaId",t),U("updatePersona","updatePersonaDto",a);const s="/dashboard-personas/{personaId}".replace("{personaId}",encodeURIComponent(String(t))),n=new URL(s,L);let o;e&&(o=e.baseOptions);const i={method:"PUT",...o,...r},l={},c={};await se(l,e),l["Content-Type"]="application/json",F(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=he(a,i,e),{url:D(n),options:i}}}},Rs=function(e){const t=Jv(e);return{async createPersona(a,r){const s=await t.createPersona(a,r);return M(s,u,x,e)},async deletePersona(a,r){const s=await t.deletePersona(a,r);return M(s,u,x,e)},async listPersonas(a){const r=await t.listPersonas(a);return M(r,u,x,e)},async updatePersona(a,r,s){const n=await t.updatePersona(a,r,s);return M(n,u,x,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,L);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await se(o,e),F(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:D(r),options:n}},upsertSettings:async(t,a={})=>{U("upsertSettings","upsertAISettingsDto",t);const r="/dashboard-settings",s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"PUT",...n,...a},i={},l={};await se(i,e),i["Content-Type"]="application/json",F(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=he(t,o,e),{url:D(s),options:o}}}},_c=function(e){const t=Kv(e);return{async getSettings(a){const r=await t.getSettings(a);return M(r,u,x,e)},async upsertSettings(a,r){const s=await t.upsertSettings(a,r);return M(s,u,x,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={})=>{U("createConfiguration","createEscalationConfigurationDto",t);const r="/escalation-configurations",s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};i["Content-Type"]="application/json",F(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=he(t,o,e),{url:D(s),options:o}},deleteConfiguration:async(t,a={})=>{U("deleteConfiguration","configurationId",t);const r="/escalation-configurations/{configurationId}".replace("{configurationId}",encodeURIComponent(String(t))),s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"DELETE",...n,...a},i={};F(s,{});let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:D(s),options:o}},generateZendeskApiBearer:async(t,a={})=>{U("generateZendeskApiBearer","configurationId",t);const r="/escalation-configurations/zendesk/{configurationId}/generate-api-bearer".replace("{configurationId}",encodeURIComponent(String(t))),s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={};F(s,{});let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:D(s),options:o}},getConfiguration:async(t={})=>{const a="/escalation-configurations",r=new URL(a,L);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={};F(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:D(r),options:n}},getCustomerProperties:async(t={})=>{const a="/escalation-configurations/customer-properties",r=new URL(a,L);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={};F(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:D(r),options:n}},getFreshchatChannelsAndGroups:async(t,a={})=>{U("getFreshchatChannelsAndGroups","getFreshchatChannelsAndGroupsBodyDto",t);const r="/escalation-configurations/freshchat/channels-and-groups",s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};i["Content-Type"]="application/json",F(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=he(t,o,e),{url:D(s),options:o}},getHubspotOwnersAndPipelines:async(t={})=>{const a="/escalation-configurations/hubspot/owners-and-pipelines",r=new URL(a,L);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={};F(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:D(r),options:n}},getZendeskAdminsAndAgents:async(t={})=>{const a="/escalation-configurations/zendesk/admins-and-agents",r=new URL(a,L);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={};F(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:D(r),options:n}},updateConfiguration:async(t,a,r={})=>{U("updateConfiguration","configurationId",t),U("updateConfiguration","updateEscalationConfigurationDto",a);const s="/escalation-configurations/{configurationId}".replace("{configurationId}",encodeURIComponent(String(t))),n=new URL(s,L);let o;e&&(o=e.baseOptions);const i={method:"PUT",...o,...r},l={},c={};l["Content-Type"]="application/json",F(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=he(a,i,e),{url:D(n),options:i}}}},It=function(e){const t=ew(e);return{async createConfiguration(a,r){const s=await t.createConfiguration(a,r);return M(s,u,x,e)},async deleteConfiguration(a,r){const s=await t.deleteConfiguration(a,r);return M(s,u,x,e)},async generateZendeskApiBearer(a,r){const s=await t.generateZendeskApiBearer(a,r);return M(s,u,x,e)},async getConfiguration(a){const r=await t.getConfiguration(a);return M(r,u,x,e)},async getCustomerProperties(a){const r=await t.getCustomerProperties(a);return M(r,u,x,e)},async getFreshchatChannelsAndGroups(a,r){const s=await t.getFreshchatChannelsAndGroups(a,r);return M(s,u,x,e)},async getHubspotOwnersAndPipelines(a){const r=await t.getHubspotOwnersAndPipelines(a);return M(r,u,x,e)},async getZendeskAdminsAndAgents(a){const r=await t.getZendeskAdminsAndAgents(a);return M(r,u,x,e)},async updateConfiguration(a,r,s){const n=await t.updateConfiguration(a,r,s);return M(n,u,x,e)}}};class tw extends Je{createConfiguration(t,a){return It(this.configuration).createConfiguration(t,a).then(r=>r(this.axios,this.basePath))}deleteConfiguration(t,a){return It(this.configuration).deleteConfiguration(t,a).then(r=>r(this.axios,this.basePath))}generateZendeskApiBearer(t,a){return It(this.configuration).generateZendeskApiBearer(t,a).then(r=>r(this.axios,this.basePath))}getConfiguration(t){return It(this.configuration).getConfiguration(t).then(a=>a(this.axios,this.basePath))}getCustomerProperties(t){return It(this.configuration).getCustomerProperties(t).then(a=>a(this.axios,this.basePath))}getFreshchatChannelsAndGroups(t,a){return It(this.configuration).getFreshchatChannelsAndGroups(t,a).then(r=>r(this.axios,this.basePath))}getHubspotOwnersAndPipelines(t){return It(this.configuration).getHubspotOwnersAndPipelines(t).then(a=>a(this.axios,this.basePath))}getZendeskAdminsAndAgents(t){return It(this.configuration).getZendeskAdminsAndAgents(t).then(a=>a(this.axios,this.basePath))}updateConfiguration(t,a,r){return It(this.configuration).updateConfiguration(t,a,r).then(s=>s(this.axios,this.basePath))}}const aw=function(e){return{addAndRemoveEmails:async(t,a={})=>{U("addAndRemoveEmails","fullviewWidgetVisibilityUpdateEmailsDto",t);const r="/fullview-widget-visibility/add-and-remove-emails",s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};i["Content-Type"]="application/json",F(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=he(t,o,e),{url:D(s),options:o}},addEmail:async(t,a={})=>{U("addEmail","fullviewWidgetVisibilityAddRemoveEmailDto",t);const r="/fullview-widget-visibility/add-email",s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};i["Content-Type"]="application/json",F(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=he(t,o,e),{url:D(s),options:o}},getEmails:async(t={})=>{const a="/fullview-widget-visibility/get-emails",r=new URL(a,L);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={};F(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:D(r),options:n}},getVisibilityMode:async(t={})=>{const a="/fullview-widget-visibility/mode",r=new URL(a,L);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={};F(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:D(r),options:n}},removeEmail:async(t,a={})=>{U("removeEmail","fullviewWidgetVisibilityAddRemoveEmailDto",t);const r="/fullview-widget-visibility/remove-email",s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};i["Content-Type"]="application/json",F(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=he(t,o,e),{url:D(s),options:o}},updateVisibilityMode:async(t,a={})=>{U("updateVisibilityMode","updateVisibilityModeDto",t);const r="/fullview-widget-visibility/mode",s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};i["Content-Type"]="application/json",F(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=he(t,o,e),{url:D(s),options:o}}}},Sa=function(e){const t=aw(e);return{async addAndRemoveEmails(a,r){const s=await t.addAndRemoveEmails(a,r);return M(s,u,x,e)},async addEmail(a,r){const s=await t.addEmail(a,r);return M(s,u,x,e)},async getEmails(a){const r=await t.getEmails(a);return M(r,u,x,e)},async getVisibilityMode(a){const r=await t.getVisibilityMode(a);return M(r,u,x,e)},async removeEmail(a,r){const s=await t.removeEmail(a,r);return M(s,u,x,e)},async updateVisibilityMode(a,r){const s=await t.updateVisibilityMode(a,r);return M(s,u,x,e)}}};class rw extends Je{addAndRemoveEmails(t,a){return Sa(this.configuration).addAndRemoveEmails(t,a).then(r=>r(this.axios,this.basePath))}addEmail(t,a){return Sa(this.configuration).addEmail(t,a).then(r=>r(this.axios,this.basePath))}getEmails(t){return Sa(this.configuration).getEmails(t).then(a=>a(this.axios,this.basePath))}getVisibilityMode(t){return Sa(this.configuration).getVisibilityMode(t).then(a=>a(this.axios,this.basePath))}removeEmail(t,a){return Sa(this.configuration).removeEmail(t,a).then(r=>r(this.axios,this.basePath))}updateVisibilityMode(t,a){return Sa(this.configuration).updateVisibilityMode(t,a).then(r=>r(this.axios,this.basePath))}}const sw=function(e){return{abortSession:async(t,a={})=>{U("abortSession","sessionId",t);const r="/sessions/{sessionId}/abort".replace("{sessionId}",encodeURIComponent(String(t))),s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await se(i,e),F(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:D(s),options:o}},generateStep:async(t,a,r={})=>{U("generateStep","sessionId",t),U("generateStep","generateStepDto",a);const s="/sessions/{sessionId}/step".replace("{sessionId}",encodeURIComponent(String(t))),n=new URL(s,L);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await se(l,e),l["Content-Type"]="application/json",F(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=he(a,i,e),{url:D(n),options:i}},getCurrentSession:async(t={})=>{const a="/sessions/current",r=new URL(a,L);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await se(o,e),F(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:D(r),options:n}},getCustomerStatus:async(t={})=>{const a="/sessions/customer-status",r=new URL(a,L);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await se(o,e),F(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:D(r),options:n}},getSessionById:async(t,a={})=>{U("getSessionById","sessionId",t);const r="/sessions/{sessionId}".replace("{sessionId}",encodeURIComponent(String(t))),s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await se(i,e),F(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:D(s),options:o}},markStepAsPerformed:async(t,a,r,s={})=>{U("markStepAsPerformed","sessionId",t),U("markStepAsPerformed","stepId",a),U("markStepAsPerformed","markStepAsPerformedDto",r);const n="/sessions/{sessionId}/steps/{stepId}/performed".replace("{sessionId}",encodeURIComponent(String(t))).replace("{stepId}",encodeURIComponent(String(a))),o=new URL(n,L);let i;e&&(i=e.baseOptions);const l={method:"POST",...i,...s},c={},d={};await se(c,e),c["Content-Type"]="application/json",F(o,d);let h=i&&i.headers?i.headers:{};return l.headers={...c,...h,...s.headers},l.data=he(r,l,e),{url:D(o),options:l}},rollbackSession:async(t,a,r={})=>{U("rollbackSession","sessionId",t),U("rollbackSession","rollbackSessionDto",a);const s="/sessions/{sessionId}/rollback".replace("{sessionId}",encodeURIComponent(String(t))),n=new URL(s,L);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await se(l,e),l["Content-Type"]="application/json",F(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=he(a,i,e),{url:D(n),options:i}},sendFeedback:async(t,a,r={})=>{U("sendFeedback","sessionId",t),U("sendFeedback","sendFeedbackDto",a);const s="/sessions/{sessionId}/feedback".replace("{sessionId}",encodeURIComponent(String(t))),n=new URL(s,L);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await se(l,e),l["Content-Type"]="application/json",F(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=he(a,i,e),{url:D(n),options:i}},sendFeedbackDetails:async(t,a,r={})=>{U("sendFeedbackDetails","sessionId",t),U("sendFeedbackDetails","sendFeedbackDetailsDto",a);const s="/sessions/{sessionId}/feedback-details".replace("{sessionId}",encodeURIComponent(String(t))),n=new URL(s,L);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await se(l,e),l["Content-Type"]="application/json",F(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=he(a,i,e),{url:D(n),options:i}}}},Ut=function(e){const t=sw(e);return{async abortSession(a,r){const s=await t.abortSession(a,r);return M(s,u,x,e)},async generateStep(a,r,s){const n=await t.generateStep(a,r,s);return M(n,u,x,e)},async getCurrentSession(a){const r=await t.getCurrentSession(a);return M(r,u,x,e)},async getCustomerStatus(a){const r=await t.getCustomerStatus(a);return M(r,u,x,e)},async getSessionById(a,r){const s=await t.getSessionById(a,r);return M(s,u,x,e)},async markStepAsPerformed(a,r,s,n){const o=await t.markStepAsPerformed(a,r,s,n);return M(o,u,x,e)},async rollbackSession(a,r,s){const n=await t.rollbackSession(a,r,s);return M(n,u,x,e)},async sendFeedback(a,r,s){const n=await t.sendFeedback(a,r,s);return M(n,u,x,e)},async sendFeedbackDetails(a,r,s){const n=await t.sendFeedbackDetails(a,r,s);return M(n,u,x,e)}}};let Lc=class extends Je{abortSession(t,a){return Ut(this.configuration).abortSession(t,a).then(r=>r(this.axios,this.basePath))}generateStep(t,a,r){return Ut(this.configuration).generateStep(t,a,r).then(s=>s(this.axios,this.basePath))}getCurrentSession(t){return Ut(this.configuration).getCurrentSession(t).then(a=>a(this.axios,this.basePath))}getCustomerStatus(t){return Ut(this.configuration).getCustomerStatus(t).then(a=>a(this.axios,this.basePath))}getSessionById(t,a){return Ut(this.configuration).getSessionById(t,a).then(r=>r(this.axios,this.basePath))}markStepAsPerformed(t,a,r,s){return Ut(this.configuration).markStepAsPerformed(t,a,r,s).then(n=>n(this.axios,this.basePath))}rollbackSession(t,a,r){return Ut(this.configuration).rollbackSession(t,a,r).then(s=>s(this.axios,this.basePath))}sendFeedback(t,a,r){return Ut(this.configuration).sendFeedback(t,a,r).then(s=>s(this.axios,this.basePath))}sendFeedbackDetails(t,a,r){return Ut(this.configuration).sendFeedbackDetails(t,a,r).then(s=>s(this.axios,this.basePath))}};const nw=function(e){return{createTopic:async(t,a={})=>{U("createTopic","createTopicDto",t);const r="/topic-tree",s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await se(i,e),i["Content-Type"]="application/json",F(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=he(t,o,e),{url:D(s),options:o}},getConfigurationCleanupCounts:async(t,a={})=>{U("getConfigurationCleanupCounts","configurationId",t);const r="/topic-tree/configuration/{configurationId}/counts".replace("{configurationId}",encodeURIComponent(String(t))),s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await se(i,e),F(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:D(s),options:o}},getKnowledgeGap:async(t={})=>{const a="/topic-tree/knowledge-gap",r=new URL(a,L);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await se(o,e),F(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:D(r),options:n}},getKnowledgeGapSessions:async(t,a,r,s,n={})=>{U("getKnowledgeGapSessions","category",t);const o="/topic-tree/knowledge-gap/{category}/sessions".replace("{category}",encodeURIComponent(String(t))),i=new URL(o,L);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...n},d={},h={};await se(d,e),a!==void 0&&(h.cursor=a),r!==void 0&&(h.limit=r),s!==void 0&&(h.direction=s),F(i,h);let m=l&&l.headers?l.headers:{};return c.headers={...d,...m,...n.headers},{url:D(i),options:c}},getKnowledgeGapTree:async(t,a={})=>{const r="/topic-tree/knowledge-gap-tree",s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await se(i,e),t!==void 0&&(l.useSuggestion=t),F(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:D(s),options:o}},getSuggestionSessionsPaginated:async(t,a,r,s,n,o={})=>{U("getSuggestionSessionsPaginated","runId",t),U("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,L);let c;e&&(c=e.baseOptions);const d={method:"GET",...c,...o},h={},m={};await se(h,e),r!==void 0&&(m.cursor=r),s!==void 0&&(m.limit=s),n!==void 0&&(m.direction=n),F(l,m);let O=c&&c.headers?c.headers:{};return d.headers={...h,...O,...o.headers},{url:D(l),options:d}},getTopicDetails:async(t,a={})=>{U("getTopicDetails","topicId",t);const r="/topic-tree/topic/{topicId}/details".replace("{topicId}",encodeURIComponent(String(t))),s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await se(i,e),F(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:D(s),options:o}},getTopicSessions:async(t,a,r,s,n={})=>{U("getTopicSessions","topicId",t);const o="/topic-tree/topic/{topicId}/sessions".replace("{topicId}",encodeURIComponent(String(t))),i=new URL(o,L);let l;e&&(l=e.baseOptions);const c={method:"GET",...l,...n},d={},h={};await se(d,e),a!==void 0&&(h.cursor=a),r!==void 0&&(h.limit=r),s!==void 0&&(h.direction=s),F(i,h);let m=l&&l.headers?l.headers:{};return c.headers={...d,...m,...n.headers},{url:D(i),options:c}},getTopicTree:async(t={})=>{const a="/topic-tree/tree",r=new URL(a,L);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await se(o,e),F(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:D(r),options:n}},getTopicTreeWithFilters:async(t,a={})=>{U("getTopicTreeWithFilters","topicTreeFilterRequestDto",t);const r="/topic-tree/tree-collection",s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await se(i,e),i["Content-Type"]="application/json",F(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=he(t,o,e),{url:D(s),options:o}},moveTopic:async(t,a,r={})=>{U("moveTopic","topicId",t),U("moveTopic","moveTopicDto",a);const s="/topic-tree/topic/{topicId}/move".replace("{topicId}",encodeURIComponent(String(t))),n=new URL(s,L);let o;e&&(o=e.baseOptions);const i={method:"PUT",...o,...r},l={},c={};await se(l,e),l["Content-Type"]="application/json",F(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=he(a,i,e),{url:D(n),options:i}},triggerKnowledgeGapSuggestion:async(t={})=>{const a="/topic-tree/knowledge-gap/suggest",r=new URL(a,L);let s;e&&(s=e.baseOptions);const n={method:"POST",...s,...t},o={},i={};await se(o,e),F(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:D(r),options:n}},updateTopic:async(t,a,r={})=>{U("updateTopic","topicId",t),U("updateTopic","updateTopicDto",a);const s="/topic-tree/topic/{topicId}".replace("{topicId}",encodeURIComponent(String(t))),n=new URL(s,L);let o;e&&(o=e.baseOptions);const i={method:"PUT",...o,...r},l={},c={};await se(l,e),l["Content-Type"]="application/json",F(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=he(a,i,e),{url:D(n),options:i}},updateTopicState:async(t,a,r={})=>{U("updateTopicState","topicId",t),U("updateTopicState","updateTopicStateDto",a);const s="/topic-tree/topic/{topicId}/state".replace("{topicId}",encodeURIComponent(String(t))),n=new URL(s,L);let o;e&&(o=e.baseOptions);const i={method:"PUT",...o,...r},l={},c={};await se(l,e),l["Content-Type"]="application/json",F(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=he(a,i,e),{url:D(n),options:i}}}},Xe=function(e){const t=nw(e);return{async createTopic(a,r){const s=await t.createTopic(a,r);return M(s,u,x,e)},async getConfigurationCleanupCounts(a,r){const s=await t.getConfigurationCleanupCounts(a,r);return M(s,u,x,e)},async getKnowledgeGap(a){const r=await t.getKnowledgeGap(a);return M(r,u,x,e)},async getKnowledgeGapSessions(a,r,s,n,o){const i=await t.getKnowledgeGapSessions(a,r,s,n,o);return M(i,u,x,e)},async getKnowledgeGapTree(a,r){const s=await t.getKnowledgeGapTree(a,r);return M(s,u,x,e)},async getSuggestionSessionsPaginated(a,r,s,n,o,i){const l=await t.getSuggestionSessionsPaginated(a,r,s,n,o,i);return M(l,u,x,e)},async getTopicDetails(a,r){const s=await t.getTopicDetails(a,r);return M(s,u,x,e)},async getTopicSessions(a,r,s,n,o){const i=await t.getTopicSessions(a,r,s,n,o);return M(i,u,x,e)},async getTopicTree(a){const r=await t.getTopicTree(a);return M(r,u,x,e)},async getTopicTreeWithFilters(a,r){const s=await t.getTopicTreeWithFilters(a,r);return M(s,u,x,e)},async moveTopic(a,r,s){const n=await t.moveTopic(a,r,s);return M(n,u,x,e)},async triggerKnowledgeGapSuggestion(a){const r=await t.triggerKnowledgeGapSuggestion(a);return M(r,u,x,e)},async updateTopic(a,r,s){const n=await t.updateTopic(a,r,s);return M(n,u,x,e)},async updateTopicState(a,r,s){const n=await t.updateTopicState(a,r,s);return M(n,u,x,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={})=>{U("addAndRemoveEmails","topicWhitelistUpdateEntriesDto",t);const r="/topic-whitelist/add-and-remove-emails",s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};i["Content-Type"]="application/json",F(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=he(t,o,e),{url:D(s),options:o}},addEntry:async(t,a={})=>{U("addEntry","topicWhitelistAddRemoveEmailDto",t);const r="/topic-whitelist/add",s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};i["Content-Type"]="application/json",F(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=he(t,o,e),{url:D(s),options:o}},getWhitelist:async(t={})=>{const a="/topic-whitelist/get",r=new URL(a,L);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={};F(r,{});let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:D(r),options:n}},removeEntry:async(t,a={})=>{U("removeEntry","topicWhitelistAddRemoveEmailDto",t);const r="/topic-whitelist/remove",s=new URL(r,L);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};i["Content-Type"]="application/json",F(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=he(t,o,e),{url:D(s),options:o}}}},Ss=function(e){const t=iw(e);return{async addAndRemoveEmails(a,r){const s=await t.addAndRemoveEmails(a,r);return M(s,u,x,e)},async addEntry(a,r){const s=await t.addEntry(a,r);return M(s,u,x,e)},async getWhitelist(a){const r=await t.getWhitelist(a);return M(r,u,x,e)},async removeEntry(a,r){const s=await t.removeEntry(a,r);return M(s,u,x,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.stage.fullview.io/citadel".replace(/\/+$/,"");let wt=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",pr=function(e,t,a){if(a==null)throw new cw(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}},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}}}},Fc=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 wt{citadelOnlyLogout(t,a){return Fc(this.configuration).citadelOnlyLogout(t,a).then(r=>r(this.axios,this.basePath))}logOut(t,a){return Fc(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 wt{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={})=>{pr("exchange","state",t),pr("exchange","code",a),pr("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 wt{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 z(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 z(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={})=>{pr("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 z(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 z(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 z(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 z(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 z(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 z(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 z(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 z(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}}}},Pt=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 wt{createJoinLink(t){return Pt(this.configuration).createJoinLink(t).then(a=>a(this.axios,this.basePath))}createOrganisationWithRolesSetup(t,a){return Pt(this.configuration).createOrganisationWithRolesSetup(t,a).then(r=>r(this.axios,this.basePath))}deleteUser(t,a){return Pt(this.configuration).deleteUser(t,a).then(r=>r(this.axios,this.basePath))}multiInviteUsersToOrganisation(t,a){return Pt(this.configuration).multiInviteUsersToOrganisation(t,a).then(r=>r(this.axios,this.basePath))}organisationAcceptAccessRequestsPost(t,a){return Pt(this.configuration).organisationAcceptAccessRequestsPost(t,a).then(r=>r(this.axios,this.basePath))}organisationRequestSessionReplayAccessPost(t){return Pt(this.configuration).organisationRequestSessionReplayAccessPost(t).then(a=>a(this.axios,this.basePath))}organisationRequestSessionReplayUpgradePost(t){return Pt(this.configuration).organisationRequestSessionReplayUpgradePost(t).then(a=>a(this.axios,this.basePath))}rejectJoinRequest(t,a){return Pt(this.configuration).rejectJoinRequest(t,a).then(r=>r(this.axios,this.basePath))}requestAccessToOrganisation(t,a){return Pt(this.configuration).requestAccessToOrganisation(t,a).then(r=>r(this.axios,this.basePath))}resendInvite(t,a){return Pt(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 z(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 z(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 z(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 z(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 z(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 z(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 z(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 z(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 z(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 z(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 z(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 z(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 z(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 z(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 wt{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 z(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 z(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 z(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 wt{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 z(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 z(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 z(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 z(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 z(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 z(o,e),q(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:W(r),options:n}}}},Ta=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 Ew extends wt{adminOrganisationCreateOrganisationPost(t,a){return Ta(this.configuration).adminOrganisationCreateOrganisationPost(t,a).then(r=>r(this.axios,this.basePath))}adminOrganisationDeleteOrganisationPost(t,a){return Ta(this.configuration).adminOrganisationDeleteOrganisationPost(t,a).then(r=>r(this.axios,this.basePath))}adminOrganisationDeleteOrganisationsPost(t,a){return Ta(this.configuration).adminOrganisationDeleteOrganisationsPost(t,a).then(r=>r(this.axios,this.basePath))}adminOrganisationListOrganisationIdPatch(t,a){return Ta(this.configuration).adminOrganisationListOrganisationIdPatch(t,a).then(r=>r(this.axios,this.basePath))}adminOrganisationListOrganisationNamePatch(t,a){return Ta(this.configuration).adminOrganisationListOrganisationNamePatch(t,a).then(r=>r(this.axios,this.basePath))}adminOrganisationListOrganisationsFullGet(t){return Ta(this.configuration).adminOrganisationListOrganisationsFullGet(t).then(a=>a(this.axios,this.basePath))}}const Vw=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 z(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 z(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 z(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 z(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 z(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 z(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 z(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 z(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 z(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 z(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 z(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 z(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 z(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 z(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 z(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 z(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 z(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 z(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=Vw(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 wt{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 z(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 z(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={})=>{pr("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 z(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 z(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 z(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 z(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 z(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}}}},ca=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 wt{deleteUsers(t,a){return ca(this.configuration).deleteUsers(t,a).then(r=>r(this.axios,this.basePath))}designateSuperAdmin(t,a){return ca(this.configuration).designateSuperAdmin(t,a).then(r=>r(this.axios,this.basePath))}hardDeleteUser(t,a){return ca(this.configuration).hardDeleteUser(t,a).then(r=>r(this.axios,this.basePath))}inviteUsers(t,a){return ca(this.configuration).inviteUsers(t,a).then(r=>r(this.axios,this.basePath))}listOrganisationUsers(t,a){return ca(this.configuration).listOrganisationUsers(t,a).then(r=>r(this.axios,this.basePath))}listUsers(t,a){return ca(this.configuration).listUsers(t,a).then(r=>r(this.axios,this.basePath))}sendInvitationEmail(t,a){return ca(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 z(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 z(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 z(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 z(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 wt{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.stage.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}},Lw=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)}},Fw=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 Lw(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=Fw(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.stage.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.stage.fullview.io/nexus".replace(/\/+$/,"");class Wt{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 Y="https://example.com",ee=function(e,t,a){if(a==null)throw new Yw(t,`Required parameter ${t} was null or undefined when calling ${e}.`)},J=async function(e,t){if(t&&t.accessToken){const a=typeof t.accessToken=="function"?await t.accessToken():await t.accessToken;e.Authorization="Bearer "+a}},X=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||""},K=function(e){return e.pathname+e.search+e.hash},Z=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={})=>{ee("getCallRecordingsCountForCustomer","customerId",t);const r="/v1/customers/{customerId}/recordings/count".replace("{customerId}",encodeURIComponent(String(t))),s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await J(i,e),X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:K(s),options:o}},getCallRecordingsForCustomer:async(t,a,r={})=>{ee("getCallRecordingsForCustomer","customerId",t),ee("getCallRecordingsForCustomer","getCustomerSessionsPayload",a);const s="/v1/customers/{customerId}/recordings".replace("{customerId}",encodeURIComponent(String(t))),n=new URL(s,Y);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await J(l,e),l["Content-Type"]="application/json",X(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=Se(a,i,e),{url:K(n),options:i}},getCustomerDetails:async(t,a={})=>{ee("getCustomerDetails","id",t);const r="/v1/customers/{id}/details".replace("{id}",encodeURIComponent(String(t))),s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await J(i,e),X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:K(s),options:o}},getSessionsCountForCustomer:async(t,a={})=>{ee("getSessionsCountForCustomer","customerId",t);const r="/v1/customers/{customerId}/sessions/count".replace("{customerId}",encodeURIComponent(String(t))),s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await J(i,e),X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:K(s),options:o}},getSessionsForCustomer:async(t,a,r={})=>{ee("getSessionsForCustomer","customerId",t),ee("getSessionsForCustomer","getCustomerSessionsPayload",a);const s="/v1/customers/{customerId}/sessions".replace("{customerId}",encodeURIComponent(String(t))),n=new URL(s,Y);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await J(l,e),l["Content-Type"]="application/json",X(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=Se(a,i,e),{url:K(n),options:i}}}},mr=function(e){const t=Jw(e);return{async getCallRecordingsCountForCustomer(a,r){const s=await t.getCallRecordingsCountForCustomer(a,r);return Z(s,u,G,e)},async getCallRecordingsForCustomer(a,r,s){const n=await t.getCallRecordingsForCustomer(a,r,s);return Z(n,u,G,e)},async getCustomerDetails(a,r){const s=await t.getCustomerDetails(a,r);return Z(s,u,G,e)},async getSessionsCountForCustomer(a,r){const s=await t.getSessionsCountForCustomer(a,r);return Z(s,u,G,e)},async getSessionsForCustomer(a,r,s){const n=await t.getSessionsForCustomer(a,r,s);return Z(n,u,G,e)}}};class Xw extends Wt{getCallRecordingsCountForCustomer(t,a){return mr(this.configuration).getCallRecordingsCountForCustomer(t,a).then(r=>r(this.axios,this.basePath))}getCallRecordingsForCustomer(t,a,r){return mr(this.configuration).getCallRecordingsForCustomer(t,a,r).then(s=>s(this.axios,this.basePath))}getCustomerDetails(t,a){return mr(this.configuration).getCustomerDetails(t,a).then(r=>r(this.axios,this.basePath))}getSessionsCountForCustomer(t,a){return mr(this.configuration).getSessionsCountForCustomer(t,a).then(r=>r(this.axios,this.basePath))}getSessionsForCustomer(t,a,r){return mr(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,Y);let s;e&&(s=e.baseOptions);const n={method:"POST",...s,...t},o={},i={};await J(o,e),X(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:K(r),options:n}}}},Zw=function(e){const t=Kw(e);return{async setupOrganisation(a){const r=await t.setupOrganisation(a);return Z(r,u,G,e)}}};class eP extends Wt{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={})=>{ee("getDemoRelatedReplays","sessionId",t),ee("getDemoRelatedReplays","getRelatedSessionsRequestPayloadDto",a);const s="/v1/demo-sessions/{sessionId}/related".replace("{sessionId}",encodeURIComponent(String(t))),n=new URL(s,Y);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await J(l,e),l["Content-Type"]="application/json",X(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=Se(a,i,e),{url:K(n),options:i}},getDemoSessionBounds:async(t,a={})=>{ee("getDemoSessionBounds","sessionId",t);const r="/v1/demo-sessions/{sessionId}/bounds".replace("{sessionId}",encodeURIComponent(String(t))),s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await J(i,e),X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:K(s),options:o}},getDemoSessionById:async(t,a={})=>{ee("getDemoSessionById","sessionId",t);const r="/v1/demo-sessions/{sessionId}".replace("{sessionId}",encodeURIComponent(String(t))),s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await J(i,e),X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:K(s),options:o}},getDemoSessionEvents:async(t,a,r={})=>{ee("getDemoSessionEvents","sessionId",t),ee("getDemoSessionEvents","getSessionEventsPayloadRequestDto",a);const s="/v1/demo-sessions/{sessionId}/events".replace("{sessionId}",encodeURIComponent(String(t))),n=new URL(s,Y);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await J(l,e),l["Content-Type"]="application/json",X(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=Se(a,i,e),{url:K(n),options:i}},getDemoSessionMetadata:async(t,a={})=>{ee("getDemoSessionMetadata","sessionId",t);const r="/v1/demo-sessions/{sessionId}/metadata".replace("{sessionId}",encodeURIComponent(String(t))),s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await J(i,e),X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:K(s),options:o}},getDemoSessionSinkEvents:async(t,a={})=>{ee("getDemoSessionSinkEvents","sessionId",t);const r="/v1/demo-sessions/{sessionId}/sink-events".replace("{sessionId}",encodeURIComponent(String(t))),s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await J(i,e),X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:K(s),options:o}},getDemoSessionTimelineDetails:async(t,a={})=>{ee("getDemoSessionTimelineDetails","sessionId",t);const r="/v1/demo-sessions/{sessionId}/timeline".replace("{sessionId}",encodeURIComponent(String(t))),s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await J(i,e),X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:K(s),options:o}},getDemoSessions:async(t={})=>{const a="/v1/demo-sessions/byOrg",r=new URL(a,Y);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await J(o,e),X(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:K(r),options:n}},getDemoSharedWithUsers:async(t,a={})=>{ee("getDemoSharedWithUsers","sessionId",t);const r="/v1/demo-sessions/{sessionId}/shared-with".replace("{sessionId}",encodeURIComponent(String(t))),s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await J(i,e),X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:K(s),options:o}},removeShareWithDemoSession:async(t,a,r={})=>{ee("removeShareWithDemoSession","sessionId",t),ee("removeShareWithDemoSession","sessionSharePayloadDto",a);const s="/v1/demo-sessions/{sessionId}/remove-share-with".replace("{sessionId}",encodeURIComponent(String(t))),n=new URL(s,Y);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await J(l,e),l["Content-Type"]="application/json",X(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=Se(a,i,e),{url:K(n),options:i}},shareDemoSession:async(t,a={})=>{ee("shareDemoSession","sessionId",t);const r="/v1/demo-sessions/{sessionId}/share".replace("{sessionId}",encodeURIComponent(String(t))),s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await J(i,e),X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:K(s),options:o}},shareWithDemoSession:async(t,a,r={})=>{ee("shareWithDemoSession","sessionId",t),ee("shareWithDemoSession","sessionSharePayloadDto",a);const s="/v1/demo-sessions/{sessionId}/share-with".replace("{sessionId}",encodeURIComponent(String(t))),n=new URL(s,Y);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await J(l,e),l["Content-Type"]="application/json",X(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=Se(a,i,e),{url:K(n),options:i}},trySelfShareDemoSession:async(t,a={})=>{ee("trySelfShareDemoSession","sessionId",t);const r="/v1/demo-sessions/{sessionId}/try-self-share".replace("{sessionId}",encodeURIComponent(String(t))),s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await J(i,e),X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:K(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 Z(n,u,G,e)},async getDemoSessionBounds(a,r){const s=await t.getDemoSessionBounds(a,r);return Z(s,u,G,e)},async getDemoSessionById(a,r){const s=await t.getDemoSessionById(a,r);return Z(s,u,G,e)},async getDemoSessionEvents(a,r,s){const n=await t.getDemoSessionEvents(a,r,s);return Z(n,u,G,e)},async getDemoSessionMetadata(a,r){const s=await t.getDemoSessionMetadata(a,r);return Z(s,u,G,e)},async getDemoSessionSinkEvents(a,r){const s=await t.getDemoSessionSinkEvents(a,r);return Z(s,u,G,e)},async getDemoSessionTimelineDetails(a,r){const s=await t.getDemoSessionTimelineDetails(a,r);return Z(s,u,G,e)},async getDemoSessions(a){const r=await t.getDemoSessions(a);return Z(r,u,G,e)},async getDemoSharedWithUsers(a,r){const s=await t.getDemoSharedWithUsers(a,r);return Z(s,u,G,e)},async removeShareWithDemoSession(a,r,s){const n=await t.removeShareWithDemoSession(a,r,s);return Z(n,u,G,e)},async shareDemoSession(a,r){const s=await t.shareDemoSession(a,r);return Z(s,u,G,e)},async shareWithDemoSession(a,r,s){const n=await t.shareWithDemoSession(a,r,s);return Z(n,u,G,e)},async trySelfShareDemoSession(a,r){const s=await t.trySelfShareDemoSession(a,r);return Z(s,u,G,e)}}};class aP extends Wt{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={})=>{ee("getClickedElementSuggestions","input",t);const r="/v1/organisations/clicked-elements",s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await J(i,e),t!==void 0&&(l.input=t),X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:K(s),options:o}},getContentMaskingConfig:async(t={})=>{const a="/v1/organisations/config/screen-recording/content-masking",r=new URL(a,Y);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await J(o,e),X(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:K(r),options:n}},getJoinOrganisationList:async(t={})=>{const a="/v1/organisations/join-organisation-list",r=new URL(a,Y);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await J(o,e),X(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:K(r),options:n}},getJoinReasonRequired:async(t,a={})=>{ee("getJoinReasonRequired","organisationName",t);const r="/v1/organisations/join-reason-required",s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await J(i,e),t!==void 0&&(l.organisationName=t),X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:K(s),options:o}},getOrganisation:async(t={})=>{const a="/v1/organisations/data",r=new URL(a,Y);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await J(o,e),X(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:K(r),options:n}},getOrganisationAccessRequestsCount:async(t={})=>{const a="/v1/organisations/access-requests-count",r=new URL(a,Y);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await J(o,e),X(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:K(r),options:n}},getOrganisationSetupStatus:async(t={})=>{const a="/v1/organisations/status",r=new URL(a,Y);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await J(o,e),X(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:K(r),options:n}},getVisitedPageSuggestions:async(t,a={})=>{ee("getVisitedPageSuggestions","input",t);const r="/v1/organisations/visited-pages",s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await J(i,e),t!==void 0&&(l.input=t),X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:K(s),options:o}},listUsers:async(t,a={})=>{ee("listUsers","getPaginatedOrganisationUsersRequestDto",t);const r="/v1/organisations/users",s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await J(i,e),i["Content-Type"]="application/json",X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=Se(t,o,e),{url:K(s),options:o}},requestAIAgent:async(t={})=>{const a="/v1/organisations/ai-agent",r=new URL(a,Y);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await J(o,e),X(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:K(r),options:n}},requestAccessToOrganisation:async(t,a={})=>{ee("requestAccessToOrganisation","requestAccessToOrganisationPayloadDto",t);const r="/v1/organisations/request-access",s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await J(i,e),i["Content-Type"]="application/json",X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=Se(t,o,e),{url:K(s),options:o}},requestEnterprisePlan:async(t={})=>{const a="/v1/organisations/enterprise-plan",r=new URL(a,Y);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await J(o,e),X(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:K(r),options:n}},resetContentMaskingConfig:async(t={})=>{const a="/v1/organisations/config/screen-recording/content-masking/reset",r=new URL(a,Y);let s;e&&(s=e.baseOptions);const n={method:"POST",...s,...t},o={},i={};await J(o,e),X(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:K(r),options:n}},updateContentMaskingConfig:async(t,a={})=>{ee("updateContentMaskingConfig","organisationUpdateContentMaskingConfigDto",t);const r="/v1/organisations/config/screen-recording/content-masking",s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await J(i,e),i["Content-Type"]="application/json",X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=Se(t,o,e),{url:K(s),options:o}},updateGettingStartedOrganisationSettings:async(t,a={})=>{ee("updateGettingStartedOrganisationSettings","gettingStartedSettingsConfigurationDto",t);const r="/v1/organisations/getting-started-setup",s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await J(i,e),i["Content-Type"]="application/json",X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=Se(t,o,e),{url:K(s),options:o}}}},Qe=function(e){const t=rP(e);return{async getClickedElementSuggestions(a,r){const s=await t.getClickedElementSuggestions(a,r);return Z(s,u,G,e)},async getContentMaskingConfig(a){const r=await t.getContentMaskingConfig(a);return Z(r,u,G,e)},async getJoinOrganisationList(a){const r=await t.getJoinOrganisationList(a);return Z(r,u,G,e)},async getJoinReasonRequired(a,r){const s=await t.getJoinReasonRequired(a,r);return Z(s,u,G,e)},async getOrganisation(a){const r=await t.getOrganisation(a);return Z(r,u,G,e)},async getOrganisationAccessRequestsCount(a){const r=await t.getOrganisationAccessRequestsCount(a);return Z(r,u,G,e)},async getOrganisationSetupStatus(a){const r=await t.getOrganisationSetupStatus(a);return Z(r,u,G,e)},async getVisitedPageSuggestions(a,r){const s=await t.getVisitedPageSuggestions(a,r);return Z(s,u,G,e)},async listUsers(a,r){const s=await t.listUsers(a,r);return Z(s,u,G,e)},async requestAIAgent(a){const r=await t.requestAIAgent(a);return Z(r,u,G,e)},async requestAccessToOrganisation(a,r){const s=await t.requestAccessToOrganisation(a,r);return Z(s,u,G,e)},async requestEnterprisePlan(a){const r=await t.requestEnterprisePlan(a);return Z(r,u,G,e)},async resetContentMaskingConfig(a){const r=await t.resetContentMaskingConfig(a);return Z(r,u,G,e)},async updateContentMaskingConfig(a,r){const s=await t.updateContentMaskingConfig(a,r);return Z(s,u,G,e)},async updateGettingStartedOrganisationSettings(a,r){const s=await t.updateGettingStartedOrganisationSettings(a,r);return Z(s,u,G,e)}}};class sP extends Wt{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,Y);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await J(o,e),X(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:K(r),options:n}},getCoBrowseRecordings:async(t,a={})=>{ee("getCoBrowseRecordings","getCobrowseRecordingsRequestPayloadDto",t);const r="/v1/sessions/cobrowse-recordings",s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await J(i,e),i["Content-Type"]="application/json",X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=Se(t,o,e),{url:K(s),options:o}},getCobrowseRecordingsSink:async(t,a={})=>{ee("getCobrowseRecordingsSink","callId",t);const r="/v1/sessions/cobrowse-recordings/{callId}/sink".replace("{callId}",encodeURIComponent(String(t))),s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await J(i,e),X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:K(s),options:o}},getRelatedReplays:async(t,a,r={})=>{ee("getRelatedReplays","sessionId",t),ee("getRelatedReplays","getRelatedSessionsRequestPayloadDto",a);const s="/v1/sessions/{sessionId}/related".replace("{sessionId}",encodeURIComponent(String(t))),n=new URL(s,Y);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await J(l,e),l["Content-Type"]="application/json",X(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=Se(a,i,e),{url:K(n),options:i}},getSessionBounds:async(t,a={})=>{ee("getSessionBounds","sessionId",t);const r="/v1/sessions/{sessionId}/bounds".replace("{sessionId}",encodeURIComponent(String(t))),s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await J(i,e),X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:K(s),options:o}},getSessionById:async(t,a={})=>{ee("getSessionById","sessionId",t);const r="/v1/sessions/{sessionId}".replace("{sessionId}",encodeURIComponent(String(t))),s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await J(i,e),X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:K(s),options:o}},getSessionEvents:async(t,a,r={})=>{ee("getSessionEvents","sessionId",t),ee("getSessionEvents","getSessionEventsPayloadRequestDto",a);const s="/v1/sessions/{sessionId}/events".replace("{sessionId}",encodeURIComponent(String(t))),n=new URL(s,Y);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await J(l,e),l["Content-Type"]="application/json",X(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=Se(a,i,e),{url:K(n),options:i}},getSessionMetadata:async(t,a={})=>{ee("getSessionMetadata","sessionId",t);const r="/v1/sessions/{sessionId}/metadata".replace("{sessionId}",encodeURIComponent(String(t))),s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await J(i,e),X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:K(s),options:o}},getSessionSinkEvents:async(t,a={})=>{ee("getSessionSinkEvents","sessionId",t);const r="/v1/sessions/{sessionId}/sink-events".replace("{sessionId}",encodeURIComponent(String(t))),s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await J(i,e),X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:K(s),options:o}},getSessionTimelineDetails:async(t,a={})=>{ee("getSessionTimelineDetails","sessionId",t);const r="/v1/sessions/{sessionId}/timeline".replace("{sessionId}",encodeURIComponent(String(t))),s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await J(i,e),X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:K(s),options:o}},getSessions:async(t,a={})=>{ee("getSessions","getSessionsByOrgRequestPayloadDto",t);const r="/v1/sessions/byOrg",s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await J(i,e),i["Content-Type"]="application/json",X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=Se(t,o,e),{url:K(s),options:o}},getSharedWithUsers:async(t,a={})=>{ee("getSharedWithUsers","sessionId",t);const r="/v1/sessions/{sessionId}/shared-with".replace("{sessionId}",encodeURIComponent(String(t))),s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await J(i,e),X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:K(s),options:o}},removeShareWithSession:async(t,a,r={})=>{ee("removeShareWithSession","sessionId",t),ee("removeShareWithSession","sessionSharePayloadDto",a);const s="/v1/sessions/{sessionId}/remove-share-with".replace("{sessionId}",encodeURIComponent(String(t))),n=new URL(s,Y);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await J(l,e),l["Content-Type"]="application/json",X(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=Se(a,i,e),{url:K(n),options:i}},shareSession:async(t,a={})=>{ee("shareSession","sessionId",t);const r="/v1/sessions/{sessionId}/share".replace("{sessionId}",encodeURIComponent(String(t))),s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await J(i,e),X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:K(s),options:o}},shareWithSession:async(t,a,r={})=>{ee("shareWithSession","sessionId",t),ee("shareWithSession","sessionSharePayloadDto",a);const s="/v1/sessions/{sessionId}/share-with".replace("{sessionId}",encodeURIComponent(String(t))),n=new URL(s,Y);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await J(l,e),l["Content-Type"]="application/json",X(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=Se(a,i,e),{url:K(n),options:i}},trySelfShareSession:async(t,a={})=>{ee("trySelfShareSession","sessionId",t);const r="/v1/sessions/{sessionId}/try-self-share".replace("{sessionId}",encodeURIComponent(String(t))),s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"GET",...n,...a},i={},l={};await J(i,e),X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:K(s),options:o}}}},$e=function(e){const t=nP(e);return{async exampleRoute(a){const r=await t.exampleRoute(a);return Z(r,u,G,e)},async getCoBrowseRecordings(a,r){const s=await t.getCoBrowseRecordings(a,r);return Z(s,u,G,e)},async getCobrowseRecordingsSink(a,r){const s=await t.getCobrowseRecordingsSink(a,r);return Z(s,u,G,e)},async getRelatedReplays(a,r,s){const n=await t.getRelatedReplays(a,r,s);return Z(n,u,G,e)},async getSessionBounds(a,r){const s=await t.getSessionBounds(a,r);return Z(s,u,G,e)},async getSessionById(a,r){const s=await t.getSessionById(a,r);return Z(s,u,G,e)},async getSessionEvents(a,r,s){const n=await t.getSessionEvents(a,r,s);return Z(n,u,G,e)},async getSessionMetadata(a,r){const s=await t.getSessionMetadata(a,r);return Z(s,u,G,e)},async getSessionSinkEvents(a,r){const s=await t.getSessionSinkEvents(a,r);return Z(s,u,G,e)},async getSessionTimelineDetails(a,r){const s=await t.getSessionTimelineDetails(a,r);return Z(s,u,G,e)},async getSessions(a,r){const s=await t.getSessions(a,r);return Z(s,u,G,e)},async getSharedWithUsers(a,r){const s=await t.getSharedWithUsers(a,r);return Z(s,u,G,e)},async removeShareWithSession(a,r,s){const n=await t.removeShareWithSession(a,r,s);return Z(n,u,G,e)},async shareSession(a,r){const s=await t.shareSession(a,r);return Z(s,u,G,e)},async shareWithSession(a,r,s){const n=await t.shareWithSession(a,r,s);return Z(n,u,G,e)},async trySelfShareSession(a,r){const s=await t.trySelfShareSession(a,r);return Z(s,u,G,e)}}};class oP extends Wt{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={})=>{ee("composeOrganisationStats","superAdminOrganisationStatsRequestDto",t);const r="/v1/super-admin/compose-organisation-stats",s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await J(i,e),i["Content-Type"]="application/json",X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=Se(t,o,e),{url:K(s),options:o}},downloadSessionEvents:async(t,a={})=>{ee("downloadSessionEvents","downloadSessionEventsPayloadDto",t);const r="/v1/super-admin/download-session-events",s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await J(i,e),i["Content-Type"]="application/json",X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=Se(t,o,e),{url:K(s),options:o}},listOrganisations:async(t,a={})=>{ee("listOrganisations","getPaginatedOrganisationsRequestDto",t);const r="/v1/super-admin/list-organisations",s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await J(i,e),i["Content-Type"]="application/json",X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=Se(t,o,e),{url:K(s),options:o}},listUsersWithOrganisationId:async(t,a={})=>{ee("listUsersWithOrganisationId","getPaginatedUsersRequestDto",t);const r="/v1/super-admin/list-users",s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await J(i,e),i["Content-Type"]="application/json",X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=Se(t,o,e),{url:K(s),options:o}},softDeleteUser:async(t,a={})=>{ee("softDeleteUser","softDeleteUserPayloadDto",t);const r="/v1/super-admin/soft-delete-user",s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await J(i,e),i["Content-Type"]="application/json",X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=Se(t,o,e),{url:K(s),options:o}}}},fr=function(e){const t=iP(e);return{async composeOrganisationStats(a,r){const s=await t.composeOrganisationStats(a,r);return Z(s,u,G,e)},async downloadSessionEvents(a,r){const s=await t.downloadSessionEvents(a,r);return Z(s,u,G,e)},async listOrganisations(a,r){const s=await t.listOrganisations(a,r);return Z(s,u,G,e)},async listUsersWithOrganisationId(a,r){const s=await t.listUsersWithOrganisationId(a,r);return Z(s,u,G,e)},async softDeleteUser(a,r){const s=await t.softDeleteUser(a,r);return Z(s,u,G,e)}}};class lP extends Wt{composeOrganisationStats(t,a){return fr(this.configuration).composeOrganisationStats(t,a).then(r=>r(this.axios,this.basePath))}downloadSessionEvents(t,a){return fr(this.configuration).downloadSessionEvents(t,a).then(r=>r(this.axios,this.basePath))}listOrganisations(t,a){return fr(this.configuration).listOrganisations(t,a).then(r=>r(this.axios,this.basePath))}listUsersWithOrganisationId(t,a){return fr(this.configuration).listUsersWithOrganisationId(t,a).then(r=>r(this.axios,this.basePath))}softDeleteUser(t,a){return fr(this.configuration).softDeleteUser(t,a).then(r=>r(this.axios,this.basePath))}}const cP=function(e){return{createView:async(t,a={})=>{ee("createView","createUserViewPayloadDto",t);const r="/v1/user-views/create",s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await J(i,e),i["Content-Type"]="application/json",X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=Se(t,o,e),{url:K(s),options:o}},deleteUserView:async(t,a={})=>{ee("deleteUserView","viewId",t);const r="/v1/user-views/{viewId}/delete".replace("{viewId}",encodeURIComponent(String(t))),s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await J(i,e),X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:K(s),options:o}},getInMemoryUserView:async(t,a={})=>{ee("getInMemoryUserView","userViewTypePayloadDto",t);const r="/v1/user-views/in-memory",s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await J(i,e),i["Content-Type"]="application/json",X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=Se(t,o,e),{url:K(s),options:o}},getUserView:async(t,a={})=>{ee("getUserView","viewId",t);const r="/v1/user-views/{viewId}".replace("{viewId}",encodeURIComponent(String(t))),s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await J(i,e),X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},{url:K(s),options:o}},getUserViews:async(t,a={})=>{ee("getUserViews","userViewTypePayloadDto",t);const r="/v1/user-views/views",s=new URL(r,Y);let n;e&&(n=e.baseOptions);const o={method:"POST",...n,...a},i={},l={};await J(i,e),i["Content-Type"]="application/json",X(s,l);let c=n&&n.headers?n.headers:{};return o.headers={...i,...c,...a.headers},o.data=Se(t,o,e),{url:K(s),options:o}},updateUserView:async(t,a,r={})=>{ee("updateUserView","viewId",t),ee("updateUserView","updateUserViewPayloadDto",a);const s="/v1/user-views/{viewId}/update".replace("{viewId}",encodeURIComponent(String(t))),n=new URL(s,Y);let o;e&&(o=e.baseOptions);const i={method:"POST",...o,...r},l={},c={};await J(l,e),l["Content-Type"]="application/json",X(n,c);let d=o&&o.headers?o.headers:{};return i.headers={...l,...d,...r.headers},i.data=Se(a,i,e),{url:K(n),options:i}}}},Ca=function(e){const t=cP(e);return{async createView(a,r){const s=await t.createView(a,r);return Z(s,u,G,e)},async deleteUserView(a,r){const s=await t.deleteUserView(a,r);return Z(s,u,G,e)},async getInMemoryUserView(a,r){const s=await t.getInMemoryUserView(a,r);return Z(s,u,G,e)},async getUserView(a,r){const s=await t.getUserView(a,r);return Z(s,u,G,e)},async getUserViews(a,r){const s=await t.getUserViews(a,r);return Z(s,u,G,e)},async updateUserView(a,r,s){const n=await t.updateUserView(a,r,s);return Z(n,u,G,e)}}};class dP extends Wt{createView(t,a){return Ca(this.configuration).createView(t,a).then(r=>r(this.axios,this.basePath))}deleteUserView(t,a){return Ca(this.configuration).deleteUserView(t,a).then(r=>r(this.axios,this.basePath))}getInMemoryUserView(t,a){return Ca(this.configuration).getInMemoryUserView(t,a).then(r=>r(this.axios,this.basePath))}getUserView(t,a){return Ca(this.configuration).getUserView(t,a).then(r=>r(this.axios,this.basePath))}getUserViews(t,a){return Ca(this.configuration).getUserViews(t,a).then(r=>r(this.axios,this.basePath))}updateUserView(t,a,r){return Ca(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,Y);let s;e&&(s=e.baseOptions);const n={method:"GET",...s,...t},o={},i={};await J(o,e),X(r,i);let l=s&&s.headers?s.headers:{};return n.headers={...o,...l,...t.headers},{url:K(r),options:n}}}},hP=function(e){const t=uP(e);return{async loggedInUserDetails(a){const r=await t.loggedInUserDetails(a);return Z(r,u,G,e)}}};class pP extends Wt{loggedInUserDetails(t){return hP(this.configuration).loggedInUserDetails(t).then(a=>a(this.axios,this.basePath))}}function Ia(){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,[_,N]=fP(`${n}${g}`);for(const j of _)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 _=b.slice(0,g),N=b[g+1]===" "?2:1,j=b.slice(g+N);m(_,j,b);return}m(b,"",b)}function m(b,g,_){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:_}));break;default:a(new Wc(`Unknown field "${b.length>20?`${b.slice(0,20)}…`:b}"`,{type:"unknown-field",field:b,value:g,line:_}));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<e.length;){const s=e.indexOf("\r",r),n=e.indexOf(`
`,r);let o=-1;if(s!==-1&&n!==-1?o=Math.min(s,n):s!==-1?s===e.length-1?o=-1:o=s:n!==-1&&(o=n),o===-1){a=e.slice(r);break}else{const i=e.slice(r,o);t.push(i),r=o+1,e[r-1]==="\r"&&e[r]===`
`&&r++}}return[t,a]}class Qc extends Event{constructor(t,a){var r,s;super(t),this.code=(r=a==null?void 0:a.code)!=null?r:void 0,this.message=(s=a==null?void 0:a.message)!=null?s:void 0}[Symbol.for("nodejs.util.inspect.custom")](t,a,r){return r(Gc(this),a)}[Symbol.for("Deno.customInspect")](t,a){return t(Gc(this),a)}}function gP(e){const t=globalThis.DOMException;return typeof t=="function"?new t(e,"SyntaxError"):new SyntaxError(e)}function uo(e){return e instanceof Error?"errors"in e&&Array.isArray(e.errors)?e.errors.map(uo).join(", "):"cause"in e&&e.cause instanceof Error?`${e}: ${uo(e.cause)}`:e.message:`${e}`}function Gc(e){return{type:e.type,message:e.message,code:e.code,defaultPrevented:e.defaultPrevented,cancelable:e.cancelable,timeStamp:e.timeStamp}}var zc=e=>{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),xt=(e,t,a)=>(ho(e,t,"access private method"),a),Ze,da,Ua,Cs,Is,gr,xa,Or,Qt,_a,La,Fa,br,ft,po,mo,fo,Yc,go,Oo,yr,bo,yo;class vr 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,da),_e(this,Ua),_e(this,Cs),_e(this,Is),_e(this,gr),_e(this,xa),_e(this,Or,null),_e(this,Qt),_e(this,_a),_e(this,La,null),_e(this,Fa,null),_e(this,br,null),_e(this,mo,async n=>{var o;Oe(this,_a).reset();const{body:i,redirected:l,status:c,headers:d}=n;if(c===204){xt(this,ft,yr).call(this,"Server sent HTTP 204, not reconnecting",204),this.close();return}if(l?Ce(this,Ua,new URL(n.url)):Ce(this,Ua,void 0),c!==200){xt(this,ft,yr).call(this,`Non-200 status code (${c})`,c);return}if(!(d.get("content-type")||"").startsWith("text/event-stream")){xt(this,ft,yr).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,br))==null||o.call(this,h),this.dispatchEvent(h),typeof i!="object"||!i||!("getReader"in i)){xt(this,ft,yr).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,_a).feed(m.decode(g,{stream:!b})),b&&(p=!1,Oe(this,_a).reset(),xt(this,ft,bo).call(this))}while(p)}),_e(this,fo,n=>{Ce(this,Qt,void 0),!(n.name==="AbortError"||n.type==="aborted")&&xt(this,ft,bo).call(this,uo(n))}),_e(this,go,n=>{typeof n.id=="string"&&Ce(this,Or,n.id);const o=new MessageEvent(n.event||"message",{data:n.data,origin:Oe(this,Ua)?Oe(this,Ua).origin:Oe(this,da).origin,lastEventId:n.id||""});Oe(this,Fa)&&(!n.event||n.event==="message")&&Oe(this,Fa).call(this,o),this.dispatchEvent(o)}),_e(this,Oo,n=>{Ce(this,gr,n)}),_e(this,yo,()=>{Ce(this,xa,void 0),Oe(this,Ze)===this.CONNECTING&&xt(this,ft,po).call(this)});try{if(t instanceof URL)Ce(this,da,t);else if(typeof t=="string")Ce(this,da,new URL(t,OP()));else throw new Error("Invalid URL")}catch{throw gP("An invalid or illegal string was specified")}Ce(this,_a,mP({onEvent:Oe(this,go),onRetry:Oe(this,Oo)})),Ce(this,Ze,this.CONNECTING),Ce(this,gr,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),xt(this,ft,po).call(this)}get readyState(){return Oe(this,Ze)}get url(){return Oe(this,da).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,Fa)}set onmessage(t){Ce(this,Fa,t)}get onopen(){return Oe(this,br)}set onopen(t){Ce(this,br,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,xa)&&clearTimeout(Oe(this,xa)),Oe(this,Ze)!==this.CLOSED&&(Oe(this,Qt)&&Oe(this,Qt).abort(),Ce(this,Ze,this.CLOSED),Ce(this,Qt,void 0))}}Ze=new WeakMap,da=new WeakMap,Ua=new WeakMap,Cs=new WeakMap,Is=new WeakMap,gr=new WeakMap,xa=new WeakMap,Or=new WeakMap,Qt=new WeakMap,_a=new WeakMap,La=new WeakMap,Fa=new WeakMap,br=new WeakMap,ft=new WeakSet,po=function(){Ce(this,Ze,this.CONNECTING),Ce(this,Qt,new AbortController),Oe(this,Is)(Oe(this,da),xt(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,Or)?{"Last-Event-ID":Oe(this,Or)}:void 0},cache:"no-store",signal:(e=Oe(this,Qt))==null?void 0:e.signal};return"window"in globalThis&&(t.credentials=this.withCredentials?"include":"same-origin"),t},go=new WeakMap,Oo=new WeakMap,yr=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,xa,setTimeout(Oe(this,yo),Oe(this,gr)))},yo=new WeakMap,vr.CONNECTING=0,vr.OPEN=1,vr.CLOSED=2,Object.defineProperty(vr,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 vr(s,{fetch:async(o,i)=>fetch(o,{...i,headers:{...(i==null?void 0:i.headers)??{},...n}})})}}}Tt.http,tl.http,el.http,Me.http,ut.http,Ge.http,Ih.http;const Xc={get axios(){return re.get("axios",Ia)},get axiosForAuth(){return re.get("axiosForAuth",Ia)},get axiosForCoBrowseAuth(){return re.get("axiosForCoBrowseAuth",Ia)},get axiosForMeetingAuth(){return re.get("axiosForMeetingAuth",Ia)},get axiosForVisitorAuth(){return re.get("axiosForVisitorAuth",Ia)},get axiosForOnboarding(){return re.get("axiosForOnboarding",Ia)},get nexusSessionApi(){return re.get("nexusSessionApi",()=>new oP(void 0,Tt.http.url,this.axios))},get nexusDemoSessionApi(){return re.get("nexusDemoSessionApi",()=>new aP(void 0,Tt.http.url,this.axios))},get nexusOrgApi(){return re.get("nexusOrgApi",()=>new sP(void 0,Tt.http.url,this.axios))},get nexusCustomerApi(){return re.get("nexusCustomerApi",()=>new Xw(void 0,Tt.http.url,this.axios))},get nexusUserApi(){return re.get("nexusUserApi",()=>new pP(void 0,Tt.http.url,this.axios))},get nexusUserViewsApi(){return re.get("nexusUserViewsApi",()=>new dP(void 0,Tt.http.url,this.axios))},get nexusSuperAdminApi(){return re.get("nexusSuperAdminApi",()=>new lP(void 0,Tt.http.url,this.axios))},get nexusDemoApi(){return re.get("nexusDemoApi",()=>new eP(void 0,Tt.http.url,this.axios))},get citadelAuthorizationApi(){return re.get("citadelAuthorizationApi",()=>new mw(void 0,ut.http.url,this.axios))},get citadelAccountApi(){return re.get("citadelAccountApi",()=>new uw(void 0,ut.http.url,this.axios))},get citadelOAuthApi(){return re.get("citadelOAuthApi",()=>new gw(void 0,ut.http.url,this.axios))},get citadelRolesApi(){return re.get("citadelRolesApi",()=>new vw(void 0,ut.http.url,this.axios))},get citadelOrgApi(){return re.get("citadelOrgApi",()=>new bw(void 0,ut.http.url,this.axios))},get citadelUser(){return re.get("citadelUser",()=>new Iw(void 0,ut.http.url,this.axios))},get citadelSsoConfigurationApi(){return re.get("citadelSSOConfigurationApi",()=>new Pw(void 0,ut.http.url,this.axios))},get connect(){return re.get("connect",()=>new Dw(void 0,el.http.url,this.axios))},get integrations(){return re.get("integrations",()=>new zw(void 0,tl.http.url,this.axios))},get citadelSuperAdminOrgApi(){return re.get("citadelSuperAdminOrgApi",()=>new Ew(void 0,ut.http.url,this.axios))},get citadelSuperAdminUserApi(){return re.get("citadelSuperAdminUserApi",()=>new Tw(void 0,ut.http.url,this.axios))},get citadelSuperAdminRoleApi(){return re.get("citadelSuperAdminRoleApi",()=>new Rw(void 0,ut.http.url,this.axios))},get accessVisitor(){return re.get("accessVisitor",()=>new Fv(void 0,Ge.http.url,this.axiosForVisitorAuth))},get accessCoBrowse(){return re.get("accessCoBrowse",()=>new hv(void 0,Ge.http.url,this.axiosForAuth))},get accessCustomer(){return re.get("accessCustomer",()=>new gv(void 0,Ge.http.url,this.axiosForAuth))},get accessCoBrowseWindow(){return re.get("accessCoBrowseWindow",()=>new mv(void 0,Ge.http.url,this.axiosForAuth))},get accessSuperAdmin(){return re.get("accessSuperAdmin",()=>new Uv(void 0,Ge.http.url,this.axiosForAuth))},get accessAgent(){return re.get("accessAgent",()=>new iv(void 0,Ge.http.url,this.axiosForAuth))},get ui(){return re.get("ui",()=>new _v(void 0,Ge.http.url,this.axiosForAuth))},get organisation(){return re.get("organisation",()=>new Rv(void 0,Ge.http.url,this.axiosForAuth))},get flag(){return re.get("flag",()=>new wv(void 0,Ge.http.url,this.axiosForAuth))},get metric(){return re.get("metric",()=>new Ev(void 0,Ge.http.url,this.axiosForAuth))},get agentMeeting(){return re.get("agentMeeting",()=>new cv(void 0,Ge.http.url,this.axiosForMeetingAuth))},get customerMeetingWindow(){return re.get("customerMeetingWindow",()=>new bv(void 0,Ge.http.url,this.axiosForAuth))},get aiAgent(){return re.get("aiAgent",()=>new Lc(void 0,Me.http.url,this.axiosForAuth))},get aiAgentOnboarding(){return re.get("aiAgentOnboarding",()=>new Lc(void 0,Me.http.url,this.axiosForOnboarding))},get aiAgentOnboardingConversations(){return re.get("aiAgentOnboardingConversations",()=>new xc(void 0,Me.http.url,this.axiosForOnboarding))},get aiAgentOnboardingConversationsSse(){return re.get("aiAgentOnboardingConversationsSse",()=>Jc(this.aiAgentOnboardingConversations))},get aiTopicTree(){return re.get("aiTopicTree",()=>new ow(void 0,Me.http.url,this.axiosForAuth))},get aiConversations(){return re.get("aiConversations",()=>new xc(void 0,Me.http.url,this.axiosForAuth))},get aiConversationsSse(){return re.get("aiConversationsSse",()=>Jc(this.aiConversations))},get aiAnalyticsApi(){return re.get("aiAnalytics",()=>new jv(void 0,Me.http.url,this.axiosForAuth))},get aiEscalationConfiguration(){return re.get("aiEscalationConfiguration",()=>new tw(void 0,Me.http.url,this.axiosForAuth))},get topicWhitelist(){return re.get("topicAccessApi",()=>new lw(void 0,Me.http.url,this.axiosForAuth))},get organisationIntegration(){return re.get("accessOrganisationIntegration",()=>new Tv(void 0,Ge.http.url,this.axiosForAuth))},get widgetVisibility(){return re.get("widgetVisibility",()=>new rw(void 0,Me.http.url,this.axiosForAuth))},get dashboardAIConversations(){return re.get("dashboardAIConversations",()=>new Yv(void 0,Me.http.url,this.axiosForAuth))},get dashboardAISettings(){return re.get("dashboardAISettings",()=>new Zv(void 0,Me.http.url,this.axiosForAuth))},get coaching(){return re.get("coaching",()=>new Bv(void 0,Me.http.url,this.axiosForAuth))},get dashboardCoaching(){return re.get("dashboardCoaching",()=>new Hv(void 0,Me.http.url,this.axiosForAuth))},get dashboardConnectors(){return re.get("dashboardConnectors",()=>new Gv(void 0,Me.http.url,this.axiosForAuth))},get dashboardPersonas(){return re.get("dashboardPersonas",()=>new Xv(void 0,Me.http.url,this.axiosForAuth))},get dashboardConnections(){return re.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 T;(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"})(T||(T={}));var C;(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"})(C||(C={}));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(C.E0000,"An unknown error has occurred.",T.INTERNAL_SERVER_ERROR),f.E0040=new f(C.E0040,"Log Error",T.BAD_REQUEST),f.E0041=new f(C.E0041,"Cannot add log",T.BAD_REQUEST),f.E0050=new f(C.E0050,"Room cannot be created.",T.INTERNAL_SERVER_ERROR),f.E0090=new f(C.E0090,"Role cannot be assigned.",T.BAD_REQUEST),f.E0091=new f(C.E0091,"Role cannot be removed.",T.BAD_REQUEST),f.E0092=new f(C.E0092,"Cannot get users by role.",T.BAD_REQUEST),f.E0093=new f(C.E0093,"User doesn't have the required role.",T.FORBIDDEN),f.E0094=new f(C.E0094,"Role not found.",T.NOT_FOUND),f.E0095=new f(C.E0095,"Role already exists.",T.BAD_REQUEST),f.E0096=new f(C.E0096,"Role cannot be created.",T.BAD_REQUEST),f.E0097=new f(C.E0097,"Cannot add claim to role.",T.BAD_REQUEST),f.E0098=new f(C.E0098,"Invalid claim provided.",T.BAD_REQUEST),f.E2000=new f(C.E2000,"The user could not be found.",T.NOT_FOUND),f.E2001=new f(C.E2001,"The user already exists.",T.BAD_REQUEST),f.E2002=new f(C.E2002,"User cannot be created",T.BAD_REQUEST),f.E2003=new f(C.E2003,"User cannot be deleted",T.BAD_REQUEST),f.E2050=new f(C.E2050,"The organisation already exists.",T.BAD_REQUEST),f.E2051=new f(C.E2051,"The organisation could not be found.",T.NOT_FOUND),f.E2052=new f(C.E2052,"The organisation could not be created.",T.BAD_REQUEST),f.E2053=new f(C.E2053,"Organisation access request cannot be created.",T.BAD_REQUEST),f.E2054=new f(C.E2054,"Organisation access already requested.",T.BAD_REQUEST),f.E2055=new f(C.E2055,"Organisation access request not found.",T.NOT_FOUND),f.E2056=new f(C.E2056,"Organisation invitation cannot be created.",T.BAD_REQUEST),f.E2057=new f(C.E2057,"Organisation invitation already sent.",T.BAD_REQUEST),f.E2058=new f(C.E2058,"Organisation invitation not found.",T.NOT_FOUND),f.E2059=new f(C.E2059,"Organisation join link cannot be created.",T.BAD_REQUEST),f.E2060=new f(C.E2060,"Organisation join link not found.",T.NOT_FOUND),f.E2061=new f(C.E2061,"Organisation doesn't has script installed.",T.BAD_REQUEST),f.E2062=new f(C.E2062,"Organisation validation updates error.",T.BAD_REQUEST),f.E3000=new f(C.E3000,"The data is invalid.",T.BAD_REQUEST),f.E4000=new f(C.E4000,"No email event handler was found to handle the event, this should not have happened!",T.INTERNAL_SERVER_ERROR),f.E4050=new f(C.E4050,"Zendesk client not authorised.",T.UNAUTHORIZED),f.E5000=new f(C.E5000,"The username or password is invalid.",T.UNAUTHORIZED),f.E5001=new f(C.E5001,"The token provided is invalid.",T.UNAUTHORIZED),f.E5002=new f(C.E5002,"Cannot force change password",T.BAD_REQUEST),f.E5003=new f(C.E5003,"Cannot login",T.UNAUTHORIZED),f.E5004=new f(C.E5004,"Cannot proceed on authentication process",T.UNAUTHORIZED),f.E5005=new f(C.E5005,"Cannot logout",T.BAD_REQUEST),f.E5006=new f(C.E5006,"Cannot refresh token",T.UNAUTHORIZED),f.E5007=new f(C.E5007,"Cannot signup",T.BAD_REQUEST),f.E5008=new f(C.E5008,"Cannot move forward with the forgot password flow",T.BAD_REQUEST),f.E5009=new f(C.E5009,"The password reset flow encountered an error",T.INTERNAL_SERVER_ERROR),f.E5010=new f(C.E5010,"Cannot create password reset request",T.BAD_REQUEST),f.E5011=new f(C.E5011,"Password reset request not found",T.NOT_FOUND),f.E5012=new f(C.E5012,"Password cannot be changed",T.INTERNAL_SERVER_ERROR),f.E5013=new f(C.E5013,"Password too weak",T.BAD_REQUEST),f.E5014=new f(C.E5014,"Invalid domain for email",T.BAD_REQUEST),f.E5015=new f(C.E5015,"Okta domain not configured",T.BAD_REQUEST),f.E5016=new f(C.E5016,"Insuficient scope",T.FORBIDDEN),f.E5017=new f(C.E5017,"Token not present on headers",T.UNAUTHORIZED),f.E5055=new f(C.E5055,"The provided token is expired",T.UNAUTHORIZED),f.E5056=new f(C.E5056,"The provided token fails Audience URI validation",T.UNAUTHORIZED),f.E5057=new f(C.E5057,"The provided token is not yet valid: nbf is into the future.",T.UNAUTHORIZED),f.E5058=new f(C.E5058,"The provided token is missing claims to access this resource.",T.UNAUTHORIZED),f.E6000=new f(C.E6000,"Unknown session error occurred: this should not have happened",T.INTERNAL_SERVER_ERROR),f.E6001=new f(C.E6001,"A session error occurred",T.INTERNAL_SERVER_ERROR),f.E6002=new f(C.E6002,"The session workflow encountered an error",T.INTERNAL_SERVER_ERROR),f.E6003=new f(C.E6003,"The session could not be found",T.NOT_FOUND),f.E7000=new f(C.E7000,"A websocket error occurred",T.INTERNAL_SERVER_ERROR),f.E7001=new f(C.E7001,"A websocket connection error occurred",T.INTERNAL_SERVER_ERROR),f.E7002=new f(C.E7002,"A websocket message error occurred",T.INTERNAL_SERVER_ERROR),f.E7003=new f(C.E7003,"A websocket state error occurred",T.INTERNAL_SERVER_ERROR),f.E7004=new f(C.E7004,"The websocket session was not found",T.NOT_FOUND),f.E7500=new f(C.E7500,"A call error occurred",T.INTERNAL_SERVER_ERROR),f.E7501=new f(C.E7501,"The call not found",T.NOT_FOUND),f.E7502=new f(C.E7502,"Participant was not invited to the call",T.BAD_REQUEST),f.E7503=new f(C.E7503,"Call has already ended",T.BAD_REQUEST),f.E7504=new f(C.E7504,"Participant has already joined the call",T.BAD_REQUEST),f.E7505=new f(C.E7505,"Call does not belong to the same organisation",T.BAD_REQUEST),f.E7506=new f(C.E7506,"Call not available for anonymous users",T.BAD_REQUEST),f.E8000=new f(C.E8000,"A customer error occurred",T.INTERNAL_SERVER_ERROR),f.E8001=new f(C.E8001,"Customer cannot be created",T.BAD_REQUEST),f.E8002=new f(C.E8002,"Customer cannot be updated",T.BAD_REQUEST),f.E8003=new f(C.E8003,"Customer could not be found",T.NOT_FOUND),f.E8004=new f(C.E8004,"No active end user connections found",T.BAD_REQUEST),f.E8030=new f(C.E8030,"Generic replay error",T.INTERNAL_SERVER_ERROR),f.E8031=new f(C.E8031,"Replay cannot be found",T.NOT_FOUND),f.E8032=new f(C.E8032,"Replay view cannot be found",T.NOT_FOUND),f.E8033=new f(C.E8033,"Default replay view cannot be deleted",T.BAD_REQUEST),f.E8034=new f(C.E8034,"You don't have access to this replay",T.FORBIDDEN),f.E8005=new f(C.E8005,"Customer is in another call",T.BAD_REQUEST),f.E8006=new f(C.E8006,"Multiple customers found with given email or externalId",T.BAD_REQUEST),f.E9000=new f(C.E9000,"A database error has occurred",T.INTERNAL_SERVER_ERROR),f.E10000=new f(C.E10000,"Missing or invalid customer identity",T.BAD_REQUEST),f.E15401=new f(C.E15401,"You are not authorized to access this resource",T.UNAUTHORIZED),f.E15403=new f(C.E15403,"You are not authorized to access this resource",T.FORBIDDEN),f.E15404=new f(C.E15404,"The resource you are looking for was not found",T.NOT_FOUND);var wr=(e=>(e.RrWebFullSnapshot="RRWebFullSnapshot",e.RrWebMeta="RRWebMeta",e.RrWebUserInteraction="RRWebUserInteraction",e.RrWebOther="RRWebOther",e.RrWebAgentInteraction="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))(wr||{});const PP=e=>e===wr.RrWebFullSnapshot||e===wr.RrWebMeta||e===wr.RrWebUserInteraction||e===wr.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 EP=0;function VP(e,t){return(t.component==="sdk"?Pn:ea().isPullRequest?Ch:wn).http.get({fvRegion:e,version:t.version,o:t.organisationId,w:t.sdkWorkerCustomPath,s:EP++}).toString().replace(/\/$/,"")}function RP(e,t){const a=VP(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 _t=CP;var IP=_t.Symbol;const Gt=IP;var Ed=Object.prototype,UP=Ed.hasOwnProperty,xP=Ed.toString,Pr=Gt?Gt.toStringTag:void 0;function _P(e){var t=UP.call(e,Pr),a=e[Pr];try{e[Pr]=void 0;var r=!0}catch{}var s=xP.call(e);return r&&(t?e[Pr]=a:delete e[Pr]),s}var LP=Object.prototype,FP=LP.toString;function DP(e){return FP.call(e)}var MP="[object Null]",NP="[object Undefined]",Vd=Gt?Gt.toStringTag:void 0;function Da(e){return e==null?e===void 0?NP:MP:Vd&&Vd in Object(e)?_P(e):DP(e)}function Ma(e){return e!=null&&typeof e=="object"}var jP="[object Symbol]";function vo(e){return typeof e=="symbol"||Ma(e)&&Da(e)==jP}function kP(e,t){for(var a=-1,r=e==null?0:e.length,s=Array(r);++a<r;)s[a]=t(e[a],a,e);return s}var BP=Array.isArray;const At=BP;var $P=1/0,Rd=Gt?Gt.prototype:void 0,Sd=Rd?Rd.toString:void 0;function Td(e){if(typeof e=="string")return e;if(At(e))return kP(e,Td)+"";if(vo(e))return Sd?Sd.call(e):"";var t=e+"";return t=="0"&&1/e==-$P?"-0":t}function Us(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}function HP(e){return e}var qP="[object AsyncFunction]",WP="[object Function]",QP="[object GeneratorFunction]",GP="[object Proxy]";function Cd(e){if(!Us(e))return!1;var t=Da(e);return t==WP||t==QP||t==qP||t==GP}var zP=_t["__core-js_shared__"];const wo=zP;var Id=function(){var e=/[^.]+$/.exec(wo&&wo.keys&&wo.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function YP(e){return!!Id&&Id in e}var JP=Function.prototype,XP=JP.toString;function ua(e){if(e!=null){try{return XP.call(e)}catch{}try{return e+""}catch{}}return""}var KP=/[\\^$.*+?()[\]{}|]/g,ZP=/^\[object .+?Constructor\]$/,eA=Function.prototype,tA=Object.prototype,aA=eA.toString,rA=tA.hasOwnProperty,sA=RegExp("^"+aA.call(rA).replace(KP,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function nA(e){if(!Us(e)||YP(e))return!1;var t=Cd(e)?sA:ZP;return t.test(ua(e))}function oA(e,t){return e==null?void 0:e[t]}function Na(e,t){var a=oA(e,t);return nA(a)?a:void 0}var iA=Na(_t,"WeakMap");const Po=iA;var lA=9007199254740991,cA=/^(?:0|[1-9]\d*)$/;function Ao(e,t){var a=typeof e;return t=t??lA,!!t&&(a=="number"||a!="symbol"&&cA.test(e))&&e>-1&&e%1==0&&e<t}function Eo(e,t){return e===t||e!==e&&t!==t}var dA=9007199254740991;function Vo(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=dA}function Ro(e){return e!=null&&Vo(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)?Eo(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<e;)r[a]=t(a);return r}var fA="[object Arguments]";function Ud(e){return Ma(e)&&Da(e)==fA}var xd=Object.prototype,gA=xd.hasOwnProperty,OA=xd.propertyIsEnumerable,bA=Ud(function(){return arguments}())?Ud:function(e){return Ma(e)&&gA.call(e,"callee")&&!OA.call(e,"callee")};const _d=bA;function yA(){return!1}var Ld=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Fd=Ld&&typeof module=="object"&&module&&!module.nodeType&&module,vA=Fd&&Fd.exports===Ld,Dd=vA?_t.Buffer:void 0,wA=Dd?Dd.isBuffer:void 0,PA=wA||yA;const So=PA;var AA="[object Arguments]",EA="[object Array]",VA="[object Boolean]",RA="[object Date]",SA="[object Error]",TA="[object Function]",CA="[object Map]",IA="[object Number]",UA="[object Object]",xA="[object RegExp]",_A="[object Set]",LA="[object String]",FA="[object WeakMap]",DA="[object ArrayBuffer]",MA="[object DataView]",NA="[object Float32Array]",jA="[object Float64Array]",kA="[object Int8Array]",BA="[object Int16Array]",$A="[object Int32Array]",HA="[object Uint8Array]",qA="[object Uint8ClampedArray]",WA="[object Uint16Array]",QA="[object Uint32Array]",Te={};Te[NA]=Te[jA]=Te[kA]=Te[BA]=Te[$A]=Te[HA]=Te[qA]=Te[WA]=Te[QA]=!0,Te[AA]=Te[EA]=Te[DA]=Te[VA]=Te[MA]=Te[RA]=Te[SA]=Te[TA]=Te[CA]=Te[IA]=Te[UA]=Te[xA]=Te[_A]=Te[LA]=Te[FA]=!1;function GA(e){return Ma(e)&&Vo(e.length)&&!!Te[Da(e)]}function zA(e){return function(t){return e(t)}}var Md=typeof exports=="object"&&exports&&!exports.nodeType&&exports,Ar=Md&&typeof module=="object"&&module&&!module.nodeType&&module,YA=Ar&&Ar.exports===Md,To=YA&&Ad.process,JA=function(){try{var e=Ar&&Ar.require&&Ar.require("util").types;return e||To&&To.binding&&To.binding("util")}catch{}}();const Nd=JA;var jd=Nd&&Nd.isTypedArray,XA=jd?zA(jd):GA;const kd=XA;var KA=Object.prototype,ZA=KA.hasOwnProperty;function eE(e,t){var a=At(e),r=!a&&_d(e),s=!a&&!r&&So(e),n=!a&&!r&&!s&&kd(e),o=a||r||s||n,i=o?mA(e.length,String):[],l=i.length;for(var c in e)(t||ZA.call(e,c))&&!(o&&(c=="length"||s&&(c=="offset"||c=="parent")||n&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||Ao(c,l)))&&i.push(c);return i}function tE(e,t){return function(a){return e(t(a))}}var aE=tE(Object.keys,Object);const rE=aE;var sE=Object.prototype,nE=sE.hasOwnProperty;function oE(e){if(!pA(e))return rE(e);var t=[];for(var a in Object(e))nE.call(e,a)&&a!="constructor"&&t.push(a);return t}function Co(e){return Ro(e)?eE(e):oE(e)}var iE=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,lE=/^\w*$/;function Io(e,t){if(At(e))return!1;var a=typeof e;return a=="number"||a=="symbol"||a=="boolean"||e==null||vo(e)?!0:lE.test(e)||!iE.test(e)||t!=null&&e in Object(t)}var cE=Na(Object,"create");const Er=cE;function dE(){this.__data__=Er?Er(null):{},this.size=0}function uE(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var hE="__lodash_hash_undefined__",pE=Object.prototype,mE=pE.hasOwnProperty;function fE(e){var t=this.__data__;if(Er){var a=t[e];return a===hE?void 0:a}return mE.call(t,e)?t[e]:void 0}var gE=Object.prototype,OE=gE.hasOwnProperty;function bE(e){var t=this.__data__;return Er?t[e]!==void 0:OE.call(t,e)}var yE="__lodash_hash_undefined__";function vE(e,t){var a=this.__data__;return this.size+=this.has(e)?0:1,a[e]=Er&&t===void 0?yE:t,this}function ha(e){var t=-1,a=e==null?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}ha.prototype.clear=dE,ha.prototype.delete=uE,ha.prototype.get=fE,ha.prototype.has=bE,ha.prototype.set=vE;function wE(){this.__data__=[],this.size=0}function xs(e,t){for(var a=e.length;a--;)if(Eo(e[a][0],t))return a;return-1}var PE=Array.prototype,AE=PE.splice;function EE(e){var t=this.__data__,a=xs(t,e);if(a<0)return!1;var r=t.length-1;return a==r?t.pop():AE.call(t,a,1),--this.size,!0}function VE(e){var t=this.__data__,a=xs(t,e);return a<0?void 0:t[a][1]}function RE(e){return xs(this.__data__,e)>-1}function SE(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();++t<a;){var r=e[t];this.set(r[0],r[1])}}Lt.prototype.clear=wE,Lt.prototype.delete=EE,Lt.prototype.get=VE,Lt.prototype.has=RE,Lt.prototype.set=SE;var TE=Na(_t,"Map");const Vr=TE;function CE(){this.size=0,this.__data__={hash:new ha,map:new(Vr||Lt),string:new ha}}function IE(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}function _s(e,t){var a=e.__data__;return IE(t)?a[typeof t=="string"?"string":"hash"]:a.map}function UE(e){var t=_s(this,e).delete(e);return this.size-=t?1:0,t}function xE(e){return _s(this,e).get(e)}function _E(e){return _s(this,e).has(e)}function LE(e,t){var a=_s(this,e),r=a.size;return a.set(e,t),this.size+=a.size==r?0:1,this}function Ft(e){var t=-1,a=e==null?0:e.length;for(this.clear();++t<a;){var r=e[t];this.set(r[0],r[1])}}Ft.prototype.clear=CE,Ft.prototype.delete=UE,Ft.prototype.get=xE,Ft.prototype.has=_E,Ft.prototype.set=LE;var FE="Expected a function";function Uo(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(FE);var a=function(){var r=arguments,s=t?t.apply(this,r):r[0],n=a.cache;if(n.has(s))return n.get(s);var o=e.apply(this,r);return a.cache=n.set(s,o)||n,o};return a.cache=new(Uo.Cache||Ft),a}Uo.Cache=Ft;var DE=500;function ME(e){var t=Uo(e,function(r){return a.size===DE&&a.clear(),r}),a=t.cache;return t}var NE=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,jE=/\\(\\)?/g,kE=ME(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(NE,function(a,r,s,n){t.push(s?n.replace(jE,"$1"):r||a)}),t});const BE=kE;function $E(e){return e==null?"":Td(e)}function Bd(e,t){return At(e)?e:Io(e,t)?[e]:BE($E(e))}var HE=1/0;function Ls(e){if(typeof e=="string"||vo(e))return e;var t=e+"";return t=="0"&&1/e==-HE?"-0":t}function $d(e,t){t=Bd(t,e);for(var a=0,r=t.length;e!=null&&a<r;)e=e[Ls(t[a++])];return a&&a==r?e:void 0}function qE(e,t,a){var r=e==null?void 0:$d(e,t);return r===void 0?a:r}function WE(e,t){for(var a=-1,r=t.length,s=e.length;++a<r;)e[s+a]=t[a];return e}function QE(){this.__data__=new Lt,this.size=0}function GE(e){var t=this.__data__,a=t.delete(e);return this.size=t.size,a}function zE(e){return this.__data__.get(e)}function YE(e){return this.__data__.has(e)}var JE=200;function XE(e,t){var a=this.__data__;if(a instanceof Lt){var r=a.__data__;if(!Vr||r.length<JE-1)return r.push([e,t]),this.size=++a.size,this;a=this.__data__=new Ft(r)}return a.set(e,t),this.size=a.size,this}function Dt(e){var t=this.__data__=new Lt(e);this.size=t.size}Dt.prototype.clear=QE,Dt.prototype.delete=GE,Dt.prototype.get=zE,Dt.prototype.has=YE,Dt.prototype.set=XE;function KE(e,t){for(var a=-1,r=e==null?0:e.length,s=0,n=[];++a<r;){var o=e[a];t(o,a,e)&&(n[s++]=o)}return n}function ZE(){return[]}var eV=Object.prototype,tV=eV.propertyIsEnumerable,Hd=Object.getOwnPropertySymbols,aV=Hd?function(e){return e==null?[]:(e=Object(e),KE(Hd(e),function(t){return tV.call(e,t)}))}:ZE;const rV=aV;function sV(e,t,a){var r=t(e);return At(e)?r:WE(r,a(e))}function qd(e){return sV(e,Co,rV)}var nV=Na(_t,"DataView");const xo=nV;var oV=Na(_t,"Promise");const _o=oV;var iV=Na(_t,"Set");const Lo=iV;var Wd="[object Map]",lV="[object Object]",Qd="[object Promise]",Gd="[object Set]",zd="[object WeakMap]",Yd="[object DataView]",cV=ua(xo),dV=ua(Vr),uV=ua(_o),hV=ua(Lo),pV=ua(Po),pa=Da;(xo&&pa(new xo(new ArrayBuffer(1)))!=Yd||Vr&&pa(new Vr)!=Wd||_o&&pa(_o.resolve())!=Qd||Lo&&pa(new Lo)!=Gd||Po&&pa(new Po)!=zd)&&(pa=function(e){var t=Da(e),a=t==lV?e.constructor:void 0,r=a?ua(a):"";if(r)switch(r){case cV:return Yd;case dV:return Wd;case uV:return Qd;case hV:return Gd;case pV:return zd}return t});const Jd=pa;var mV=_t.Uint8Array;const Xd=mV;var fV="__lodash_hash_undefined__";function gV(e){return this.__data__.set(e,fV),this}function OV(e){return this.__data__.has(e)}function Fs(e){var t=-1,a=e==null?0:e.length;for(this.__data__=new Ft;++t<a;)this.add(e[t])}Fs.prototype.add=Fs.prototype.push=gV,Fs.prototype.has=OV;function Kd(e,t){for(var a=-1,r=e==null?0:e.length;++a<r;)if(t(e[a],a,e))return!0;return!1}function bV(e,t){return e.has(t)}var yV=1,vV=2;function Zd(e,t,a,r,s,n){var o=a&yV,i=e.length,l=t.length;if(i!=l&&!(o&&l>i))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&vV?new Fs:void 0;for(n.set(e,t),n.set(t,e);++h<i;){var p=e[h],b=t[h];if(r)var g=o?r(b,p,h,t,e,n):r(p,b,h,e,t,n);if(g!==void 0){if(g)continue;m=!1;break}if(O){if(!Kd(t,function(_,N){if(!bV(O,N)&&(p===_||s(p,_,a,r,n)))return O.push(N)})){m=!1;break}}else if(!(p===b||s(p,b,a,r,n))){m=!1;break}}return n.delete(e),n.delete(t),m}function wV(e){var t=-1,a=Array(e.size);return e.forEach(function(r,s){a[++t]=[s,r]}),a}function PV(e){var t=-1,a=Array(e.size);return e.forEach(function(r){a[++t]=r}),a}var AV=1,EV=2,VV="[object Boolean]",RV="[object Date]",SV="[object Error]",TV="[object Map]",CV="[object Number]",IV="[object RegExp]",UV="[object Set]",xV="[object String]",_V="[object Symbol]",LV="[object ArrayBuffer]",FV="[object DataView]",eu=Gt?Gt.prototype:void 0,Fo=eu?eu.valueOf:void 0;function DV(e,t,a,r,s,n,o){switch(a){case FV:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case LV:return!(e.byteLength!=t.byteLength||!n(new Xd(e),new Xd(t)));case VV:case RV:case CV:return Eo(+e,+t);case SV:return e.name==t.name&&e.message==t.message;case IV:case xV:return e==t+"";case TV:var i=wV;case UV:var l=r&AV;if(i||(i=PV),e.size!=t.size&&!l)return!1;var c=o.get(e);if(c)return c==t;r|=EV,o.set(e,t);var d=Zd(i(e),i(t),r,s,n,o);return o.delete(e),d;case _V:if(Fo)return Fo.call(e)==Fo.call(t)}return!1}var MV=1,NV=Object.prototype,jV=NV.hasOwnProperty;function kV(e,t,a,r,s,n){var o=a&MV,i=qd(e),l=i.length,c=qd(t),d=c.length;if(l!=d&&!o)return!1;for(var h=l;h--;){var m=i[h];if(!(o?m in t:jV.call(t,m)))return!1}var O=n.get(e),p=n.get(t);if(O&&p)return O==t&&p==e;var b=!0;n.set(e,t),n.set(t,e);for(var g=o;++h<l;){m=i[h];var _=e[m],N=t[m];if(r)var j=o?r(N,_,m,t,e,n):r(_,N,m,e,t,n);if(!(j===void 0?_===N||s(_,N,a,r,n):j)){b=!1;break}g||(g=m=="constructor")}if(b&&!g){var ce=e.constructor,pe=t.constructor;ce!=pe&&"constructor"in e&&"constructor"in t&&!(typeof ce=="function"&&ce instanceof ce&&typeof pe=="function"&&pe instanceof pe)&&(b=!1)}return n.delete(e),n.delete(t),b}var BV=1,tu="[object Arguments]",au="[object Array]",Ds="[object Object]",$V=Object.prototype,ru=$V.hasOwnProperty;function HV(e,t,a,r,s,n){var o=At(e),i=At(t),l=o?au:Jd(e),c=i?au:Jd(t);l=l==tu?Ds:l,c=c==tu?Ds:c;var d=l==Ds,h=c==Ds,m=l==c;if(m&&So(e)){if(!So(t))return!1;o=!0,d=!1}if(m&&!d)return n||(n=new Dt),o||kd(e)?Zd(e,t,a,r,s,n):DV(e,t,l,a,r,s,n);if(!(a&BV)){var O=d&&ru.call(e,"__wrapped__"),p=h&&ru.call(t,"__wrapped__");if(O||p){var b=O?e.value():e,g=p?t.value():t;return n||(n=new Dt),s(b,g,a,r,n)}}return m?(n||(n=new Dt),kV(e,t,a,r,s,n)):!1}function Do(e,t,a,r,s){return e===t?!0:e==null||t==null||!Ma(e)&&!Ma(t)?e!==e&&t!==t:HV(e,t,a,r,Do,s)}var qV=1,WV=2;function QV(e,t,a,r){var s=a.length,n=s,o=!r;if(e==null)return!n;for(e=Object(e);s--;){var i=a[s];if(o&&i[2]?i[1]!==e[i[0]]:!(i[0]in e))return!1}for(;++s<n;){i=a[s];var l=i[0],c=e[l],d=i[1];if(o&&i[2]){if(c===void 0&&!(l in e))return!1}else{var h=new Dt;if(r)var m=r(c,d,l,e,t,h);if(!(m===void 0?Do(d,c,qV|WV,r,h):m))return!1}}return!0}function su(e){return e===e&&!Us(e)}function GV(e){for(var t=Co(e),a=t.length;a--;){var r=t[a],s=e[r];t[a]=[r,s,su(s)]}return t}function nu(e,t){return function(a){return a==null?!1:a[e]===t&&(t!==void 0||e in Object(a))}}function zV(e){var t=GV(e);return t.length==1&&t[0][2]?nu(t[0][0],t[0][1]):function(a){return a===e||QV(a,e,t)}}function YV(e,t){return e!=null&&t in Object(e)}function JV(e,t,a){t=Bd(t,e);for(var r=-1,s=t.length,n=!1;++r<s;){var o=Ls(t[r]);if(!(n=e!=null&&a(e,o)))break;e=e[o]}return n||++r!=s?n:(s=e==null?0:e.length,!!s&&Vo(s)&&Ao(o,s)&&(At(e)||_d(e)))}function XV(e,t){return e!=null&&JV(e,t,YV)}var KV=1,ZV=2;function eR(e,t){return Io(e)&&su(t)?nu(Ls(e),t):function(a){var r=qE(a,e);return r===void 0&&r===t?XV(a,e):Do(t,r,KV|ZV)}}function tR(e){return function(t){return t==null?void 0:t[e]}}function aR(e){return function(t){return $d(t,e)}}function rR(e){return Io(e)?tR(Ls(e)):aR(e)}function sR(e){return typeof e=="function"?e:e==null?HP:typeof e=="object"?At(e)?eR(e[0],e[1]):zV(e):rR(e)}function nR(e){return function(t,a,r){for(var s=-1,n=Object(t),o=r(t),i=o.length;i--;){var l=o[e?i:++s];if(a(n[l],l,n)===!1)break}return t}}var oR=nR();const iR=oR;function lR(e,t){return e&&iR(e,t,Co)}function cR(e,t){return function(a,r){if(a==null)return a;if(!Ro(a))return e(a,r);for(var s=a.length,n=t?s:-1,o=Object(a);(t?n--:++n<s)&&r(o[n],n,o)!==!1;);return a}}var dR=cR(lR);const uR=dR;function hR(e,t){var a;return uR(e,function(r,s,n){return a=t(r,s,n),!a}),!!a}function pR(e,t,a){var r=At(e)?Kd:hR;return a&&uA(e,t,a)&&(t=void 0),r(e,sR(t))}typeof window<"u"&&(window.$fvSDKScript=document.currentScript);function mR({isProd:e,isLocalProcess:t,isPreview:a,context:r}){const s="fvOrg",n=fR({isProd:e,isLocalProcess:t,isPreview:a,context:r}),o=OR(n);let i;try{i=o?new URL(o):void 0}catch{}let l;const c=localStorage.getItem(s);c?l=c:window.$fvSDKScript&&window.$fvSDKScript.dataset.org?l=window.$fvSDKScript.dataset.org:i&&(l=i.searchParams.get("o")||void 0);let d;return window.$fvSDKScript&&window.$fvSDKScript.dataset.worker?d=window.$fvSDKScript.dataset.worker:i&&(d=i.searchParams.get("w")||void 0),{organisationId:l,sdkWorkerCustomPath:d}}function fR({isProd:e,isLocalProcess:t,isPreview:a,context:r}){const s=[];switch(r){case"sdkLoader":s.push(/^(https?:)?\/\/install\.(\w+\.)?fullview\.io(\/(main\.js)?)?/i),s.push(/^(https?:)?\/\/api\.(\w+\.)?fullview\.io\/v1\/install(\/(main\.js)?)?/i),(t||!e)&&ou(a?wn.getPreviewURL({o:""}):wn.getLocalURL({o:""}),s);break;case"sdk":s.push(/^(https?:)?\/\/install\.(\w+\.)?fullview\.io\/sdk\.js/i),s.push(/^(https?:)?\/\/api\.(\w+\.)?fullview\.io\/v1\/install\/sdk\.js/i),(t||!e)&&ou(a?Pn.getPreviewURL({o:""}):Pn.getLocalURL({o:""}),s);break}return s}function ou(e,t){try{const a=new URL(e),r=gR(`${a.host}${a.pathname}`);t.push(new RegExp(`^(https?:)?\\/\\/${r}(\\?.*)?$`,"i"))}catch{}}function gR(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function OR(e){var r;const a=Array.from(document.querySelectorAll("script")).filter(s=>pR(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 r<a?Promise.reject():e().catch(async o=>n!=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:'"eu"',APP_PULL_REQUEST:'"false"',APP_ENV:'"stage"',APP_FV_REGION:'"stage"',APP_VERSION:'"1.1632.0"',APP_NAME:'"sdk-loader"'}&&{APP_REGION:'"eu"',APP_PULL_REQUEST:'"false"',APP_ENV:'"stage"',APP_FV_REGION:'"stage"',APP_VERSION:'"1.1632.0"',APP_NAME:'"sdk-loader"'}.NODE_DEBUG&&/\bsemver\b/i.test({APP_REGION:'"eu"',APP_PULL_REQUEST:'"false"',APP_ENV:'"stage"',APP_FV_REGION:'"stage"',APP_VERSION:'"1.1632.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,ER=16,VR=lu-6;var RR={MAX_LENGTH:lu,MAX_SAFE_COMPONENT_LENGTH:ER,MAX_SAFE_BUILD_LENGTH:VR,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,_]of m)b=b.split(`${g}*`).join(`${g}{0,${_}}`).split(`${g}+`).join(`${g}{1,${_}}`);return b},p=(b,g,_)=>{const N=O(g),j=d++;n(b,j,g),c[b]=j,l[j]=g,o[j]=new RegExp(g,_?"g":void 0),i[j]=new RegExp(N,_?"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&&t<this.__interval*Bo.intervalScale){this.timerId=this.timerObject.setTimeout(this.boundTick,this.__interval-t);return}this.timerId!==null&&(this.timerObject.clearTimeout(this.timerId),this.timerId=null),this.dispatchEvent(new CustomEvent(Bo.TICK,{detail:{elapsed:t}})),this.enabled&&(this.stop(),this.start())}}};du.TICK="tick",du.intervalScale=.8;const SR=1e3*60*10;class TR{constructor(){this.$isReady=new Rl(!1),this.offset=0,this.$destroy=new ss,this.isReady=()=>mb(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 ss}init(){Cb(cr(document,"click"),cr(document,"dblclick"),cr(document,"contextmenu")).pipe(Ub(1),Gl(this.$disable)).subscribe(()=>{const t=Jr.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);m<O;m++)p[m]=h[m].fn;return p},i.prototype.listenerCount=function(c){var d=a?a+c:c,h=this._events[d];return h?h.fn?1:h.length:0},i.prototype.emit=function(c,d,h,m,O,p){var b=a?a+c:c;if(!this._events[b])return!1;var g=this._events[b],_=arguments.length,N,j;if(g.fn){switch(g.once&&this.removeListener(c,g.fn,void 0,!0),_){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,d),!0;case 3:return g.fn.call(g.context,d,h),!0;case 4:return g.fn.call(g.context,d,h,m),!0;case 5:return g.fn.call(g.context,d,h,m,O),!0;case 6:return g.fn.call(g.context,d,h,m,O,p),!0}for(j=1,N=new Array(_-1);j<_;j++)N[j-1]=arguments[j];g.fn.apply(g.context,N)}else{var ce=g.length,pe;for(j=0;j<ce;j++)switch(g[j].once&&this.removeListener(c,g[j].fn,void 0,!0),_){case 1:g[j].fn.call(g[j].context);break;case 2:g[j].fn.call(g[j].context,d);break;case 3:g[j].fn.call(g[j].context,d,h);break;case 4:g[j].fn.call(g[j].context,d,h,m);break;default:if(!N)for(pe=1,N=new Array(_-1);pe<_;pe++)N[pe-1]=arguments[pe];g[j].fn.apply(g[j].context,N)}}return!0},i.prototype.on=function(c,d,h){return n(this,c,d,h,!1)},i.prototype.once=function(c,d,h){return n(this,c,d,h,!0)},i.prototype.removeListener=function(c,d,h,m){var O=a?a+c:c;if(!this._events[O])return this;if(!d)return o(this,O),this;var p=this._events[O];if(p.fn)p.fn===d&&(!m||p.once)&&(!h||p.context===h)&&o(this,O);else{for(var b=0,g=[],_=p.length;b<_;b++)(p[b].fn!==d||m&&!p[b].once||h&&p[b].context!==h)&&g.push(p[b]);g.length?this._events[O]=g.length===1?g[0]:g:o(this,O)}return this},i.prototype.removeAllListeners=function(c){var d;return c?(d=a?a+c:c,this._events[d]&&o(this,d)):(this._events=new r,this._eventsCount=0),this},i.prototype.off=i.prototype.removeListener,i.prototype.addListener=i.prototype.on,i.prefixed=a,i.EventEmitter=i,e.exports=i})(uu);var IR=uu.exports;class UR{constructor(){this.emitter=new IR.EventEmitter}emit(t,...a){this.emitter.emit(t,...a)}off(t,a){this.emitter.off(t,a)}offPipe(t,a){return this.off(t,a),this}on(t,a){return this.emitter.on(t,a),()=>this.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 Mt=ea();let No=!1;const hu=e=>{if(No){ht.log("runtime","SDK Script is already attached");return}const t=RP(Mt.fvRegion,{...e,component:"sdk"});Mt.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${Mt.version}`,Mt),()=>{}}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 LR(){return window.Fullview=mu,()=>{window.Fullview=mu}}Uh();const jo=document.currentScript;try{const{organisationId:e,sdkWorkerCustomPath:t}=mR({isProd:Mt.isProd,isLocalProcess:Mt.isLocalProcess,isPreview:Mt.isPreview,context:"sdkLoader"}),a=Mt.isPullRequest?Mt.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=[LR(),_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})}})();
