1!function(){try{var t="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new t.Error).stack;n&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[n]="a13507de-7345-4432-824a-441d6d918938",t._sentryDebugIdIdentifier="sentry-dbid-a13507de-7345-4432-824a-441d6d918938")}catch(t){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[1601],{4143:(t,n,r)=>{r.d(n,{R:()=>h});var o,i,a=r(12115),u=r(79709),c=r(84267);r(49509);function l(t){return void 0!==t}var f=r(49632);let p=t=>e.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:16,height:16,fill:"none",...t},e.createElement("path",{fill:"currentcolor",fillRule:"evenodd",d:"M5.293 2.293a1 1 0 0 1 1.414 0l4.823 4.823a1.25 1.25 0 0 1 0 1.768l-4.823 4.823a1 1 0 0 1-1.414-1.414L9.586 8 5.293 3.707a1 1 0 0 1 0-1.414z",clipRule:"evenodd"}));!function(){if(!i){i=1;var t=NaN,n=/^\s+|\s+$/g,r=/^[-+]0x[0-9a-f]+$/i,o=/^0b[01]+$/i,a=/^0o[0-7]+$/i,u=parseInt,c="object"==typeof f.ah&&f.ah&&f.ah.Object===Object&&f.ah,l="object"==typeof self&&self&&self.Object===Object&&self,p=c||l||Function("return this")(),d=Object.prototype.toString,h=Math.max,v=Math.min,y=function(){return p.Date.now()}}function b(t){var n=typeof t;return!!t&&("object"==n||"function"==n)}function m(i){if("number"==typeof i)return i;if("symbol"==typeof(c=i)||c&&"object"==typeof c&&"[object Symbol]"==d.call(c))return t;
1if(b(i)){var c,l="function"==typeof i.valueOf?i.valueOf():i;i=b(l)?l+"":l}if("string"!=typeof i)return 0===i?i:+i;i=i.replace(n,"");var f=o.test(i);return f||a.test(i)?u(i.slice(2),f?2:8):r.test(i)?t:+i}}();let d=a.forwardRef(function({trackRef:t,onSubscriptionStatusChanged:n,volume:r,...o},i){let u=(0,f.i)(t),p=a.useRef(null);a.useImperativeHandle(i,()=>p.current);let{elementProps:d,isSubscribed:h,track:v,publication:y}=function(t,n={}){let[r,o]=a.useState((0,f.X)(t)),[i,u]=a.useState(null==r?void 0:r.isMuted),[c,p]=a.useState(null==r?void 0:r.isSubscribed),[d,h]=a.useState(null==r?void 0:r.track),[v,y]=a.useState("landscape"),b=a.useRef(),{className:m,trackObserver:g}=a.useMemo(()=>(0,f.Y)(t),[t.participant.sid??t.participant.identity,t.source,(0,f.a1)(t)&&t.publication.trackSid]);return a.useEffect(()=>{let t=g.subscribe(t=>{f.l.debug("update track",t),o(t),u(null==t?void 0:t.isMuted),p(null==t?void 0:t.isSubscribed),h(null==t?void 0:t.track)});return()=>null==t?void 0:t.unsubscribe()},[g]),a.useEffect(()=>{var r,o;return d&&(b.current&&d.detach(b.current),null!=(r=n.element)&&r.current&&!(t.participant.isLocal&&(null==d?void 0:d.kind)==="audio")&&d.attach(n.element.current)),b.current=null==(o=n.element)?void 0:o.current,()=>{b.current&&(null==d||d.detach(b.current))}},[d,n.element]),a.useEffect(()=>{var t,n;"number"==typeof(null==(t=null==r?void 0:r.dimensions)?void 0:t.width)&&"number"==typeof(null==(n=null==r?void 0:r.dimensions)?void 0:n.height)&&y(r.dimensions.width>r.dimensions.height?"landscape":"portrait")},[r]),{publication:r,isMuted:i,isSubscribed:c,track:d,elementProps:function(...t){return function(...t){let n={...t[0]};for(let r=1;r<t.length;r++){let o=t[r];for(let t in o){let r=n[t],i=o[t];"function"==typeof r&&"function"==typeof i&&"o"===t[0]&&"n"===t[1]&&t.charCodeAt(2)>=65&&90>=t.charCodeAt(2)?n[t]=function(...t){return(...n)=>{for(let r of t)if("function"==typeof r)try{r(...n)}catch(t){console.error(t)}}}(r,i):("className"===t||"UNSAFE_className"===t)&&"string"==typeof r&&"string"==typeof i?n[t]=function(){for(var t,n,r=0,o="",i=arguments.length;r<i;r++)(t=arguments[r])&&(n=function t(n){var r,o,i="";if("string"==typeof n||"number"==typeof n)i+=n;else if("object"==typeof n)if(Array.isArray(n)){var a=n.length;for(r=0;r<a;r++)n[r]&&(o=t(n[r]))&&(i&&(i+=" "),i+=o)}else for(o in n)n[o]&&(i&&(i+=" "),i+=o);return i}(t))&&(o&&(o+=" "),o+=n);return o}(r,i):n[t]=void 0!==i?i:r}}return n}(...t.filter(l))}(n.props,{className:m,"data-lk-local-participant":t.participant.isLocal,"data-lk-source":null==r?void 0:r.source,...(null==r?void 0:r.kind)==="video"&&{"data-lk-orientation":v}})}}(u,{element:p,props:o});return a.useEffect(()=>{null==n||n(!!h)},[h,n]),a.useEffect(()=>{void 0===v||void 0===r||(v instanceof c.EQ?v.setVolume(r):f.l.warn("Volume can only be set on remote audio tracks."))},[r,v]),a.useEffect(()=>{void 0===y||void 0===o.muted||(y instanceof c.u6?y.setEnabled(!o.muted):f.l.warn("Can only call setEnabled on remote track publications."))},[o.muted,y,v]),a.createElement("audio",{ref:p,...d})});function h({room:t,volume:n,muted:r}){let o=(0,u.t)([c.CC.Source.Microphone,c.CC.Source.ScreenShareAudio,c.CC.Source.Unknown],{updateOnlyOn:[],onlySubscribed:!0,room:t}).filter(t=>!t.participant.isLocal&&t.publication.kind===c.CC.Kind.Audio);return a.createElement("div",{style:{display:"none"}},o.map(t=>a.createElement(d,{key:(0,f.p)(t),trackRef:t,volume:n,muted:r})))}},6076:(t,n,r)=>{r.d(n,{A:()=>o});let o=(0,r(90602).A)("phone-off",[["path",{d:"M10.1 13.9a14 14 0 0 0 3.732 2.668 1 1 0 0 0 1.213-.303l.355-.465A2 2 0 0 1 17 15h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2 18 18 0 0 1-12.728-5.272",key:"1wngk7"}],["path",{d:"M22 2 2 22",key:"y4kqgn"}],["path",{d:"M4.76 13.582A18 18 0 0 1 2 4a2 2 0 0 1 2-2h3a2 2 0 0 1 2 2v3a2 2 0 0 1-.8 1.6l-.468.351a1 1 0 0 0-.292 1.233 14 14 0 0 0 .244.473",key:"10hv5p"}]])},49632:(t,n,r)=>{r.d(n,{B:()=>t7,E:()=>tj,R:()=>t6,U:()=>tT,V:()=>tJ,W:()=>tO,X:()=>tP,Y:()=>t_,Z:()=>tB,a1:()=>tm,a2:()=>tK,a3:()=>tZ,a4:()=>tG,a5:()=>tk,a6:()=>tC,a7:()=>tN,a8:()=>tE,aa:()=>t3,ab:()=>tD,ah:()=>ei,e:()=>tA,f:()=>ne,g:()=>tU,i:()=>t5,l:()=>tS,p:()=>tg,t:()=>tM,u:()=>nt});var o=r(84267),i=r(12115);let a=Math.min,u=Math.max,c=Math.round,l=t=>({x:t,y:t}
1),f={left:"right",right:"left",bottom:"top",top:"bottom"},p={start:"end",end:"start"};function d(t){return t.split("-")[0]}let h=new Set(["top","bottom"]);function v(t){return h.has(d(t))?"y":"x"}function y(t){let{x:n,y:r,width:o,height:i}=t;return{width:o,height:i,top:r,left:n,right:n+o,bottom:r+i,x:n,y:r}}function b(t,n,r){let o,{reference:i,floating:a}=t;let u=v(n),c="x"===v(n)?"y":"x",l="y"===c?"height":"width",f=d(n),p="y"===u,h=i.x+i.width/2-a.width/2,y=i.y+i.height/2-a.height/2,b=i[l]/2-a[l]/2;switch(f){case"top":o={x:h,y:i.y-a.height};break;case"bottom":o={x:h,y:i.y+i.height};break;case"right":o={x:i.x+i.width,y:y};break;case"left":o={x:i.x-a.width,y:y};break;default:o={x:i.x,y:i.y}}switch(n.split("-")[1]){case"start":o[c]-=b*(r&&p?-1:1);break;case"end":o[c]+=b*(r&&p?-1:1)}return o}let m=async(t,n,r)=>{let{placement:o="bottom",strategy:i="absolute",middleware:a=[],platform:u}=r,c=a.filter(Boolean),l=await (null==u.isRTL?void 0:u.isRTL(n)),f=await u.getElementRects({reference:t,floating:n,strategy:i}),{x:p,y:d}=b(f,o,l),h=o,v={},y=0;for(let r=0;r<c.length;r++){let{name:a,fn:m}=c[r],{x:g,y:w,data:x,reset:S}=await m({x:p,y:d,initialPlacement:o,placement:h,strategy:i,middlewareData:v,rects:f,platform:u,elements:{reference:t,floating:n}});p=g??p,d=w??d,v={...v,[a]:{...v[a],...x}},S&&y<=50&&(y++,"object"==typeof S&&(S.placement&&(h=S.placement),S.rects&&(f=!0===S.rects?await u.getElementRects({reference:t,floating:n,strategy:i}):S.rects),{x:p,y:d}=b(f,h,l)),r=-1)}return{x:p,y:d,placement:h,strategy:i,middlewareData:v}};function g(){return"u">typeof window}function w(t){return C(t)?(t.nodeName||"").toLowerCase():"#document"}function x(t){var n;return(null==t||null==(n=t.ownerDocument)?void 0:n.defaultView)||window}function S(t){var n;return null==(n=(C(t)?t.ownerDocument:t.document)||window.document)?void 0:n.documentElement}function C(t){return!!g()&&(t instanceof Node||t instanceof x(t).Node)}function k(t){return!!g()&&(t instanceof Element||t instanceof x(t).Element)}function E(t){return!!g()&&(t instanceof HTMLElement||t instanceof x(t).HTMLElement)}function T(t){return!(!g()||typeof ShadowRoot>"u")&&(t instanceof ShadowRoot||t instanceof x(t).ShadowRoot)}let O=new Set(["inline","contents"]);function _(t){let{overflow:n,overflowX:r,overflowY:o,display:i}=Y(t);return/auto|scroll|overlay|hidden|clip/.test(n+o+r)&&!O.has(i)}let P=new Set(["table","td","th"]),I=[":popover-open",":modal"];function L(t){return I.some(n=>{try{return t.matches(n)}catch{return!1}})}let A=["transform","translate","scale","rotate","perspective"],R=["transform","translate","scale","rotate","perspective","filter"],M=["paint","layout","strict","content"];function j(t){let n=N(),r=k(t)?Y(t):t;return A.some(t=>!!r[t]&&"none"!==r[t])||!!r.containerType&&"normal"!==r.containerType||!n&&!!r.backdropFilter&&"none"!==r.backdropFilter||!n&&!!r.filter&&"none"!==r.filter||R.some(t=>(r.willChange||"").includes(t))||M.some(t=>(r.contain||"").includes(t))}function N(){return!(typeof CSS>"u")&&!!CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")}let D=new Set(["html","body","#document"]);function F(t){return D.has(w(t))}function Y(t){return x(t).getComputedStyle(t)}function U(t){return k(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function W(t){if("html"===w(t))return t;let n=t.assignedSlot||t.parentNode||T(t)&&t.host||S(t);return T(n)?n.host:n}function $(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function z(t){let n=Y(t),r=parseFloat(n.width)||0,o=parseFloat(n.height)||0,i=E(t),a=i?t.offsetWidth:r,u=i?t.offsetHeight:o,l=c(r)!==a||c(o)!==u;return l&&(r=a,o=u),{width:r,height:o,$:l}}function B(t){return k(t)?t:t.contextElement}function H(t){let n=B(t);if(!E(n))return l(1);let r=n.getBoundingClientRect(),{width:o,height:i,$:a}=z(n),u=(a?c(r.width):r.width)/o,f=(a?c(r.height):r.height)/i;return u&&Number.isFinite(u)||(u=1),f&&Number.isFinite(f)||(f=1),{x:u,y:f}}let V=l(0);function J(t){let n=x(t);return N()&&n.visualViewport?{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}:V}function K(t,n,r,o){var i;void 0===n&&(n=!1),void 0===r&&(r=!1);let a=t.getBoundingClientRect(),u=B(t),c=l(1);
1n&&(o?k(o)&&(c=H(o)):c=H(t));let f=(void 0===(i=r)&&(i=!1),o&&(!i||o===x(u))&&i)?J(u):l(0),p=(a.left+f.x)/c.x,d=(a.top+f.y)/c.y,h=a.width/c.x,v=a.height/c.y;if(u){let t=x(u),n=o&&k(o)?x(o):o,r=t,i=$(r);for(;i&&o&&n!==r;){let t=H(i),n=i.getBoundingClientRect(),o=Y(i),a=n.left+(i.clientLeft+parseFloat(o.paddingLeft))*t.x,u=n.top+(i.clientTop+parseFloat(o.paddingTop))*t.y;p*=t.x,d*=t.y,h*=t.x,v*=t.y,p+=a,d+=u,i=$(r=x(i))}}return y({width:h,height:v,x:p,y:d})}function q(t,n){let r=U(t).scrollLeft;return n?n.left+r:K(S(t)).left+r}function G(t,n){let r=t.getBoundingClientRect();return{x:r.left+n.scrollLeft-q(t,r),y:r.top+n.scrollTop}}let Z=new Set(["absolute","fixed"]);function X(t,n,r){let o;if("viewport"===n)o=function(t,n){let r=x(t),o=S(t),i=r.visualViewport,a=o.clientWidth,u=o.clientHeight,c=0,l=0;if(i){a=i.width,u=i.height;let t=N();(!t||t&&"fixed"===n)&&(c=i.offsetLeft,l=i.offsetTop)}let f=q(o);if(f<=0){let t=o.ownerDocument,n=t.body,r=getComputedStyle(n),i="CSS1Compat"===t.compatMode&&parseFloat(r.marginLeft)+parseFloat(r.marginRight)||0,u=Math.abs(o.clientWidth-n.clientWidth-i);u<=25&&(a-=u)}else f<=25&&(a+=f);return{width:a,height:u,x:c,y:l}}(t,r);else if("document"===n)o=function(t){let n=S(t),r=U(t),o=t.ownerDocument.body,i=u(n.scrollWidth,n.clientWidth,o.scrollWidth,o.clientWidth),a=u(n.scrollHeight,n.clientHeight,o.scrollHeight,o.clientHeight),c=-r.scrollLeft+q(t),l=-r.scrollTop;return"rtl"===Y(o).direction&&(c+=u(n.clientWidth,o.clientWidth)-i),{width:i,height:a,x:c,y:l}}(S(t));else if(k(n))o=function(t,n){let r=K(t,!0,"fixed"===n),o=r.top+t.clientTop,i=r.left+t.clientLeft,a=E(t)?H(t):l(1),u=t.clientWidth*a.x,c=t.clientHeight*a.y;return{width:u,height:c,x:i*a.x,y:o*a.y}}(n,r);else{let r=J(t);o={x:n.x-r.x,y:n.y-r.y,width:n.width,height:n.height}}return y(o)}function Q(t){return"static"===Y(t).position}function ee(t,n){if(!E(t)||"fixed"===Y(t).position)return null;if(n)return n(t);let r=t.offsetParent;return S(t)===r&&(r=r.ownerDocument.body),r}function et(t,n){var r;let o=x(t);if(L(t))return o;if(!E(t)){let n=W(t);for(;n&&!F(n);){if(k(n)&&!Q(n))return n;n=W(n)}return o}let i=ee(t,n);for(;i&&(r=i,P.has(w(r)))&&Q(i);)i=ee(i,n);return i&&F(i)&&Q(i)&&!j(i)?o:i||function(t){let n=W(t);for(;E(n)&&!F(n);){if(j(n))return n;if(L(n))break;n=W(n)}return null}(t)||o}let en=async function(t){let n=this.getOffsetParent||et,r=this.getDimensions,o=await r(t.floating);return{reference:function(t,n,r){let o=E(n),i=S(n),a="fixed"===r,u=K(t,!0,a,n),c={scrollLeft:0,scrollTop:0},f=l(0);if(o||!o&&!a)if(("body"!==w(n)||_(i))&&(c=U(n)),o){let t=K(n,!0,a,n);f.x=t.x+n.clientLeft,f.y=t.y+n.clientTop}else i&&(f.x=q(i));a&&!o&&i&&(f.x=q(i));let p=!i||o||a?l(0):G(i,c);return{x:u.left+c.scrollLeft-f.x-p.x,y:u.top+c.scrollTop-f.y-p.y,width:u.width,height:u.height}}(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:o.width,height:o.height}}},er={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{elements:n,rect:r,offsetParent:o,strategy:i}=t,a="fixed"===i,u=S(o),c=!!n&&L(n.floating);if(o===u||c&&a)return r;let f={scrollLeft:0,scrollTop:0},p=l(1),d=l(0),h=E(o);if((h||!h&&!a)&&(("body"!==w(o)||_(u))&&(f=U(o)),E(o))){let t=K(o);p=H(o),d.x=t.x+o.clientLeft,d.y=t.y+o.clientTop}let v=!u||h||a?l(0):G(u,f);return{width:r.width*p.x,height:r.height*p.y,x:r.x*p.x-f.scrollLeft*p.x+d.x+v.x,y:r.y*p.y-f.scrollTop*p.y+d.y+v.y}},getDocumentElement:S,getClippingRect:function(t){let{element:n,boundary:r,rootBoundary:o,strategy:i}=t,c=[..."clippingAncestors"===r?L(n)?[]:function(t,n){let r=n.get(t);if(r)return r;let o=(function t(n,r,o){var i;void 0===r&&(r=[]),void 0===o&&(o=!0);let a=function t(n){let r=W(n);return F(r)?n.ownerDocument?n.ownerDocument.body:n.body:E(r)&&_(r)?r:t(r)}(n),u=a===(null==(i=n.ownerDocument)?void 0:i.body),c=x(a);if(u){let n=$(c);return r.concat(c,c.visualViewport||[],_(a)?a:[],n&&o?t(n):[])}return r.concat(a,t(a,[],o))})(t,[],!1).filter(t=>k(t)&&"body"!==w(t)),i=null,a="fixed"===Y(t).position,u=a?W(t):t;for(;k(u)&&!F(u);){let n=Y(u),r=j(u);r||"fixed"!==n.position||(i=null),(a?!r&&!i:!r&&"static"===n.position&&!!i&&Z.has(i.position)||_(u)&&!r&&function t(n,r){let o=W(n);return!(o===r||!k(o)||F(o))&&("fixed"===Y(o).position||t(o,r))}(t,u))?o=o.filter(t=>t!==u):i=n,u=W(u)}return n.set(t,o),o}(n,this._c):[].concat(r),o],l=c[0],f=c.reduce((t,r)=>{let o=X(n,r,i);return t.top=u(o.top,t.top),t.right=a(o.right,t.right),t.bottom=a(o.bottom,t.bottom),t.left=u(o.left,t.left),t},X(n,l,i));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}},getOffsetParent:et,getElementRects:en,getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){let{width:n,height:r}=z(t);return{width:n,height:r}},getScale:H,isElement:k,isRTL:function(t){return"rtl"===Y(t).direction}};var eo,ei="u">typeof globalThis?globalThis:"u">typeof window?window:"u">typeof global?global:"u">typeof self?self:{},ea={exports:{}},eu=ea.exports;let ec=function(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}(function(){var t;return eo||(eo=1,t=function(){var t=function(){},n="undefined",r=typeof window!==n&&typeof window.navigator!==n&&/Trident\/|MSIE /.test(window.navigator.userAgent),o=["trace","debug","info","warn","error"],i={},a=null;function u(t,n){var r=t[n];if("function"==typeof r.bind)return r.bind(t);try{return Function.prototype.bind.call(r,t)}catch{return function(){return Function.prototype.apply.apply(r,[t,arguments])}}}function c(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function l(){for(var r=this.getLevel(),i=0;i<o.length;i++){var a=o[i];this[a]=i<r?t:this.methodFactory(a,r,this.name)}if(this.log=this.debug,typeof console===n&&r<this.levels.SILENT)return"No console available for logging"}function f(t){return function(){typeof console!==n&&(l.call(this),this[t].apply(this,arguments))}}function p(o,i,a){var l;return"debug"===(l=o)&&(l="log"),typeof console!==n&&("trace"===l&&r?c:void 0!==console[l]?u(console,l):void 0!==console.log?u(console,"log"):t)||f.apply(this,arguments)}function d(t,r){var u,c,f,d=this,h="loglevel";function v(){var t;if(!(typeof window===n||!h)){try{t=window.localStorage[h]}catch{}if(typeof t===n)try{var r=window.document.cookie,o=encodeURIComponent(h),i=r.indexOf(o+"=");-1!==i&&(t=/^([^;]+)/.exec(r.slice(i+o.length+1))[1])}catch{}return void 0===d.levels[t]&&(t=void 0),t}}function y(t){var n=t;if("string"==typeof n&&void 0!==d.levels[n.toUpperCase()]&&(n=d.levels[n.toUpperCase()]),"number"==typeof n&&n>=0&&n<=d.levels.SILENT)return n;
1throw TypeError("log.setLevel() called with invalid level: "+t)}"string"==typeof t?h+=":"+t:"symbol"==typeof t&&(h=void 0),d.name=t,d.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},d.methodFactory=r||p,d.getLevel=function(){return f??c??u},d.setLevel=function(t,r){return f=y(t),!1!==r&&function(t){var r=(o[t]||"silent").toUpperCase();if(!(typeof window===n||!h)){try{window.localStorage[h]=r;return}catch{}try{window.document.cookie=encodeURIComponent(h)+"="+r+";"}catch{}}}(f),l.call(d)},d.setDefaultLevel=function(t){c=y(t),v()||d.setLevel(t,!1)},d.resetLevel=function(){f=null,function(){if(!(typeof window===n||!h)){try{window.localStorage.removeItem(h)}catch{}try{window.document.cookie=encodeURIComponent(h)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}(),l.call(d)},d.enableAll=function(t){d.setLevel(d.levels.TRACE,t)},d.disableAll=function(t){d.setLevel(d.levels.SILENT,t)},d.rebuild=function(){if(a!==d&&(u=y(a.getLevel())),l.call(d),a===d)for(var t in i)i[t].rebuild()},u=y(a?a.getLevel():"WARN");var b=v();null!=b&&(f=y(b)),l.call(d)}(a=new d).getLogger=function(t){if("symbol"!=typeof t&&"string"!=typeof t||""===t)throw TypeError("You must supply a name when creating a logger.");var n=i[t];return n||(n=i[t]=new d(t,a.methodFactory)),n};var h=typeof window!==n?window.log:void 0;return a.noConflict=function(){return typeof window!==n&&window.log===a&&(window.log=h),a},a.getLoggers=function(){return i},a.default=a,a},ea.exports?ea.exports=t():eu.log=t()),ea.exports}());var es=function(t,n){return(es=Object.setPrototypeOf||({__proto__:[]})instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])})(t,n)};function el(t,n){if("function"!=typeof n&&null!==n)throw TypeError("Class extends value "+String(n)+" is not a constructor or null");function r(){this.constructor=t}es(t,n),t.prototype=null===n?Object.create(n):(r.prototype=n.prototype,new r)}function ef(t,n){var r,o,i,a={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]},u=Object.create(("function"==typeof Iterator?Iterator:Object).prototype);return u.next=c(0),u.throw=c(1),u.return=c(2),"function"==typeof Symbol&&(u[Symbol.iterator]=function(){return this}),u;function c(c){return function(l){var f=[c,l];if(r)throw TypeError("Generator is already executing.");for(;u&&(u=0,f[0]&&(a=0)),a;)try{if(r=1,o&&(i=2&f[0]?o.return:f[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,f[1])).done)return i;switch(o=0,i&&(f=[2&f[0],i.value]),f[0]){case 0:case 1:i=f;break;case 4:return a.label++,{value:f[1],done:!1};case 5:a.label++,o=f[1],f=[0];continue;case 7:f=a.ops.pop(),a.trys.pop();continue;default:if(!(i=(i=a.trys).length>0&&i[i.length-1])&&(6===f[0]||2===f[0])){a=0;continue}if(3===f[0]&&(!i||f[1]>i[0]&&f[1]<i[3])){a.label=f[1];break}if(6===f[0]&&a.label<i[1]){a.label=i[1],i=f;break}if(i&&a.label<i[2]){a.label=i[2],a.ops.push(f);break}i[2]&&a.ops.pop(),a.trys.pop();continue}f=n.call(t,a)}catch(t){f=[6,t],o=0}finally{r=i=0}if(5&f[0])throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}}function ep(t){var n="function"==typeof Symbol&&Symbol.iterator,r=n&&t[n],o=0;if(r)return r.call(t);if(t&&"number"==typeof t.length)return{next:function(){return t&&o>=t.length&&(t=void 0),{value:t&&t[o++],done:!t}}};throw TypeError(n?"Object is not iterable.":"Symbol.iterator is not defined.")}function ed(t,n){var r="function"==typeof Symbol&&t[Symbol.iterator];if(!r)return t;var o,i,a=r.call(t),u=[];try{for(;(void 0===n||n-- >0)&&!(o=a.next()).done;)u.push(o.value)}catch(t){i={error:t}}finally{try{o&&!o.done&&(r=a.return)&&r.call(a)}finally{if(i)throw i.error}}return u}function eh(t,n,r){if(r||2==arguments.length)for(var o,i=0,a=n.length;i<a;i++)!o&&i in n||(o||(o=Array.prototype.slice.call(n,0,i)),o[i]=n[i]);return t.concat(o||Array.prototype.slice.call(n))}function ev(t){return this instanceof ev?(this.v=t,this):new ev(t)}function ey(t){return"function"==typeof t}function eb(t){var n=t(function(t){Error.call(t),t.stack=Error().stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var em=eb(function(t){return function(n){t(this),this.message=n?n.length+` errors occurred during unsubscription: 2`+n.map(function(t,n){return n+1+") "+t.toString()}).join(` 3 `):"",this.name="UnsubscriptionError",this.errors=n}});function eg(t,n){if(t){var r=t.indexOf(n);0<=r&&t.splice(r,1)}}var ew=function(){var t;function n(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._finalizers=null}return n.prototype.unsubscribe=function(){var t,n,r,o,i;if(!this.closed){this.closed=!0;var a=this._parentage;if(a)if(this._parentage=null,Array.isArray(a))try{for(var u=ep(a),c=u.next();!c.done;c=u.next())c.value.remove(this)}catch(n){t={error:n}}finally{try{c&&!c.done&&(n=u.return)&&n.call(u)}finally{if(t)throw t.error}}else a.remove(this);var l=this.initialTeardown;
3if(ey(l))try{l()}catch(t){i=t instanceof em?t.errors:[t]}var f=this._finalizers;if(f){this._finalizers=null;try{for(var p=ep(f),d=p.next();!d.done;d=p.next()){var h=d.value;try{eC(h)}catch(t){i=i??[],t instanceof em?i=eh(eh([],ed(i)),ed(t.errors)):i.push(t)}}}catch(t){r={error:t}}finally{try{d&&!d.done&&(o=p.return)&&o.call(p)}finally{if(r)throw r.error}}}if(i)throw new em(i)}},n.prototype.add=function(t){var r;if(t&&t!==this)if(this.closed)eC(t);else{if(t instanceof n){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._finalizers=null!=(r=this._finalizers)?r:[]).push(t)}},n.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},n.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},n.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&eg(n,t)},n.prototype.remove=function(t){var r=this._finalizers;r&&eg(r,t),t instanceof n&&t._removeParent(this)},(t=new n).closed=!0,n.EMPTY=t,n}(),ex=ew.EMPTY;function eS(t){return t instanceof ew||t&&"closed"in t&&ey(t.remove)&&ey(t.add)&&ey(t.unsubscribe)}function eC(t){ey(t)?t():t.unsubscribe()}var ek={Promise:void 0},eE={setTimeout:function(t,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];return setTimeout.apply(void 0,eh([t,n],ed(r)))}};function eT(t){eE.setTimeout(function(){throw t})}function eO(){}var e_=function(t){function n(n){var r=t.call(this)||this;return r.isStopped=!1,n?(r.destination=n,eS(n)&&n.add(r)):r.destination=eL,r}return el(n,t),n.create=function(t,n,r){return new eI(t,n,r)},n.prototype.next=function(t){this.isStopped||this._next(t)},n.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this),this.destination=null)},n.prototype._next=function(t){this.destination.next(t)},n.prototype._error=function(t){try{this.destination.error(t)}finally{this.unsubscribe()}},n.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},n}(ew),eP=function(){function t(t){this.partialObserver=t}return t.prototype.next=function(t){var n=this.partialObserver;if(n.next)try{n.next(t)}catch(t){eT(t)}},t.prototype.error=function(t){var n=this.partialObserver;if(n.error)try{n.error(t)}catch(t){eT(t)}else eT(t)},t.prototype.complete=function(){var t=this.partialObserver;if(t.complete)try{t.complete()}catch(t){eT(t)}},t}(),eI=function(t){function n(n,r,o){var i,a=t.call(this)||this;return a.destination=new eP(ey(n)||!n?{next:n??void 0,error:r??void 0,complete:o??void 0}:n),a}return el(n,t),n}(e_),eL={closed:!0,next:eO,error:function(t){throw t},complete:eO},eA="function"==typeof Symbol&&Symbol.observable||"@@observable";function eR(t){return t}var eM=function(){function t(t){t&&(this._subscribe=t)}return t.prototype.lift=function(n){var r=new t;return r.source=this,r.operator=n,r},t.prototype.subscribe=function(t,n,r){var o,i,a=this,u=!function(t){return t&&t instanceof e_||t&&ey(t.next)&&ey(t.error)&&ey(t.complete)&&eS(t)}(t)?new eI(t,n,r):t;return o=a.operator,i=a.source,u.add(o?o.call(u,i):i?a._subscribe(u):a._trySubscribe(u)),u},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},t.prototype.forEach=function(t,n){var r=this;return new(n=ej(n))(function(n,o){var i=new eI({next:function(n){try{t(n)}catch(t){o(t),i.unsubscribe()}},error:o,complete:n});r.subscribe(i)})},t.prototype._subscribe=function(t){var n;return null==(n=this.source)?void 0:n.subscribe(t)},t.prototype[eA]=function(){return this},t.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(0===t.length?eR:1===t.length?t[0]:function(n){return t.reduce(function(t,n){return n(t)},n)})(this)},t.prototype.toPromise=function(t){var n=this;return new(t=ej(t))(function(t,r){var o;n.subscribe(function(t){return o=t},function(t){return r(t)},function(){return t(o)})})},t.create=function(n){return new t(n)},t}();function ej(t){var n;return null!=(n=t??ek.Promise)?n:Promise}function eN(t){return function(n){if(ey(null==n?void 0:n.lift))return n.lift(function(n){try{return t(n,this)}catch(t){this.error(t)}});throw TypeError("Unable to lift unknown Observable type")}}function eD(t,n,r,o,i){return new eF(t,n,r,o,i)}var eF=function(t){function n(n,r,o,i,a,u){var c=t.call(this,n)||this;return c.onFinalize=a,c.shouldUnsubscribe=u,c._next=r?function(t){try{r(t)}catch(t){n.error(t)}}:t.prototype._next,c._error=i?function(t){try{i(t)}catch(t){n.error(t)}finally{this.unsubscribe()}}:t.prototype._error,c._complete=o?function(){try{o()}catch(t){n.error(t)}finally{this.unsubscribe()}}:t.prototype._complete,c}return el(n,t),n.prototype.unsubscribe=function(){var n;if(!this.shouldUnsubscribe||this.shouldUnsubscribe()){var r=this.closed;t.prototype.unsubscribe.call(this),r||null==(n=this.onFinalize)||n.call(this)}},n}(e_),eY=eb(function(t){return function(){t(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),eU=function(t){function n(){var n=t.call(this)||this;return n.closed=!1,n.currentObservers=null,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return el(n,t),n.prototype.lift=function(t){var n=new eW(this,this);return n.operator=t,n},n.prototype._throwIfClosed=function(){if(this.closed)throw new eY},n.prototype.next=function(t){var n,r;if(this._throwIfClosed(),!this.isStopped){this.currentObservers||(this.currentObservers=Array.from(this.observers));try{for(var o=ep(this.currentObservers),i=o.next();!i.done;i=o.next())i.value.next(t)}catch(t){n={error:t}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}}},n.prototype.error=function(t){if(this._throwIfClosed(),!this.isStopped){this.hasError=this.isStopped=!0,this.thrownError=t;for(var n=this.observers;n.length;)n.shift().error(t)}},n.prototype.complete=function(){if(this._throwIfClosed(),!this.isStopped){this.isStopped=!0;for(var t=this.observers;t.length;)t.shift().complete()}},n.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=this.currentObservers=null},Object.defineProperty(n.prototype,"observed",{get:function(){var t;return(null==(t=this.observers)?void 0:t.length)>0}
3,enumerable:!1,configurable:!0}),n.prototype._trySubscribe=function(n){return this._throwIfClosed(),t.prototype._trySubscribe.call(this,n)},n.prototype._subscribe=function(t){return this._throwIfClosed(),this._checkFinalizedStatuses(t),this._innerSubscribe(t)},n.prototype._innerSubscribe=function(t){var n=this,r=this.hasError,o=this.isStopped,i=this.observers;return r||o?ex:(this.currentObservers=null,i.push(t),new ew(function(){n.currentObservers=null,eg(i,t)}))},n.prototype._checkFinalizedStatuses=function(t){var n=this.hasError,r=this.thrownError,o=this.isStopped;n?t.error(r):o&&t.complete()},n.prototype.asObservable=function(){var t=new eM;return t.source=this,t},n.create=function(t,n){return new eW(t,n)},n}(eM),eW=function(t){function n(n,r){var o=t.call(this)||this;return o.destination=n,o.source=r,o}return el(n,t),n.prototype.next=function(t){var n,r;null==(r=null==(n=this.destination)?void 0:n.next)||r.call(n,t)},n.prototype.error=function(t){var n,r;null==(r=null==(n=this.destination)?void 0:n.error)||r.call(n,t)},n.prototype.complete=function(){var t,n;null==(n=null==(t=this.destination)?void 0:t.complete)||n.call(t)},n.prototype._subscribe=function(t){var n,r;return null!=(r=null==(n=this.source)?void 0:n.subscribe(t))?r:ex},n}(eU),e$=function(t){function n(n){var r=t.call(this)||this;return r._value=n,r}return el(n,t),Object.defineProperty(n.prototype,"value",{get:function(){return this.getValue()},enumerable:!1,configurable:!0}),n.prototype._subscribe=function(n){var r=t.prototype._subscribe.call(this,n);return r.closed||n.next(this._value),r},n.prototype.getValue=function(){var t=this.hasError,n=this.thrownError,r=this._value;if(t)throw n;return this._throwIfClosed(),r},n.prototype.next=function(n){t.prototype.next.call(this,this._value=n)},n}(eU),ez={now:function(){return Date.now()}},eB=function(t){function n(n,r){return t.call(this)||this}return el(n,t),n.prototype.schedule=function(t,n){return this},n}(ew),eH={setInterval:function(t,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];return setInterval.apply(void 0,eh([t,n],ed(r)))},clearInterval:function(t){return clearInterval(t)}},eV=function(t){function n(n,r){var o=t.call(this,n,r)||this;return o.scheduler=n,o.work=r,o.pending=!1,o}return el(n,t),n.prototype.schedule=function(t,n){if(void 0===n&&(n=0),this.closed)return this;this.state=t;var r,o=this.id,i=this.scheduler;return null!=o&&(this.id=this.recycleAsyncId(i,o,n)),this.pending=!0,this.delay=n,this.id=null!=(r=this.id)?r:this.requestAsyncId(i,this.id,n),this},n.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),eH.setInterval(t.flush.bind(t,this),r)},n.prototype.recycleAsyncId=function(t,n,r){if(void 0===r&&(r=0),null!=r&&this.delay===r&&!1===this.pending)return n;null!=n&&eH.clearInterval(n)},n.prototype.execute=function(t,n){if(this.closed)return Error("executing a cancelled action");this.pending=!1;var r=this._execute(t,n);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},n.prototype._execute=function(t,n){var r,o=!1;try{this.work(t)}catch(t){o=!0,r=t||Error("Scheduled action threw falsy error")}if(o)return this.unsubscribe(),r},n.prototype.unsubscribe=function(){if(!this.closed){var n=this.id,r=this.scheduler,o=r.actions;this.work=this.state=this.scheduler=null,this.pending=!1,eg(o,this),null!=n&&(this.id=this.recycleAsyncId(r,n,null)),this.delay=null,t.prototype.unsubscribe.call(this)}},n}(eB),eJ=function(){function t(n,r){void 0===r&&(r=t.now),this.schedulerActionCtor=n,this.now=r}return t.prototype.schedule=function(t,n,r){return void 0===n&&(n=0),new this.schedulerActionCtor(this,t).schedule(r,n)},t.now=ez.now,t}();function eK(t){var n;return(n=t[t.length-1])&&ey(n.schedule)?t.pop():void 0}new(function(t){function n(n,r){void 0===r&&(r=eJ.now);var o=t.call(this,n,r)||this;return o.actions=[],o._active=!1,o}return el(n,t),n.prototype.flush=function(t){var n,r=this.actions;if(this._active)return void r.push(t);this._active=!0;do if(n=t.execute(t.state,t.delay))break;while(t=r.shift());if(this._active=!1,n){for(;t=r.shift();)t.unsubscribe();throw n}},n}(eJ))(eV);var eq=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function eG(t){return ey(null==t?void 0:t.then)}function eZ(t){return Symbol.asyncIterator&&ey(null==t?void 0:t[Symbol.asyncIterator])}function eX(t){return TypeError("You provided "+(null!==t&&"object"==typeof t?"an invali
3d object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}var eQ="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function e0(t){return ey(null==t?void 0:t[eQ])}function e1(t){return function(t,n,r){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var o,i=r.apply(t,n||[]),a=[];return o=Object.create(("function"==typeof AsyncIterator?AsyncIterator:Object).prototype),u("next"),u("throw"),u("return",function(t){return function(n){return Promise.resolve(n).then(t,f)}}),o[Symbol.asyncIterator]=function(){return this},o;function u(t,n){i[t]&&(o[t]=function(n){return new Promise(function(r,o){a.push([t,n,r,o])>1||c(t,n)})},n&&(o[t]=n(o[t])))}function c(t,n){try{var r;(r=i[t](n)).value instanceof ev?Promise.resolve(r.value.v).then(l,f):p(a[0][2],r)}catch(t){p(a[0][3],t)}}function l(t){c("next",t)}function f(t){c("throw",t)}function p(t,n){t(n),a.shift(),a.length&&c(a[0][0],a[0][1])}}(this,arguments,function(){var n,r,o;return ef(this,function(i){switch(i.label){case 0:n=t.getReader(),i.label=1;case 1:i.trys.push([1,,9,10]),i.label=2;case 2:return[4,ev(n.read())];case 3:return o=(r=i.sent()).value,r.done?[4,ev(void 0)]:[3,5];case 4:return[2,i.sent()];case 5:return[4,ev(o)];case 6:return[4,i.sent()];case 7:return i.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function e2(t){return ey(null==t?void 0:t.getReader)}function e9(t){if(t instanceof eM)return t;if(null!=t){var n,r,o,i;if(ey(t[eA])){return n=t,new eM(function(t){var r=n[eA]();if(ey(r.subscribe))return r.subscribe(t);throw TypeError("Provided object does not correctly implement Symbol.observable")})}if(eq(t)){return r=t,new eM(function(t){for(var n=0;n<r.length&&!t.closed;n++)t.next(r[n]);t.complete()})}if(eG(t)){return o=t,new eM(function(t){o.then(function(n){t.closed||(t.next(n),t.complete())},function(n){return t.error(n)}).then(null,eT)})}if(eZ(t))return e3(t);if(e0(t)){return i=t,new eM(function(t){var n,r;try{for(var o=ep(i),a=o.next();!a.done;a=o.next()){var u=a.value;if(t.next(u),t.closed)return}}catch(t){n={error:t}}finally{try{a&&!a.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}t.complete()})}if(e2(t))return e3(e1(t))}throw eX(t)}function e3(t){return new eM(function(n){(function(t,n){var r,o,i,a,u,c,l,f;return u=this,c=void 0,l=void 0,f=function(){var u;return ef(this,function(c){switch(c.label){case 0:c.trys.push([0,5,6,11]),r=function(t){if(!Symbol.asyncIterator)throw TypeError("Symbol.asyncIterator is not defined.");var n,r=t[Symbol.asyncIterator];return r?r.call(t):(t=ep(t),n={},o("next"),o("throw"),o("return"),n[Symbol.asyncIterator]=function(){return this},n);function o(r){n[r]=t[r]&&function(n){return new Promise(function(o,i){var a,u,c;a=o,u=i,c=(n=t[r](n)).done,Promise.resolve(n.value).then(function(t){a({value:t,done:c})},u)})}}}(t),c.label=1;case 1:return[4,r.next()];case 2:if((o=c.sent()).done)return[3,4];if(u=o.value,n.next(u),n.closed)return[2];c.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return i={error:c.sent()},[3,11];case 6:return c.trys.push([6,,9,10]),o&&!o.done&&(a=r.return)?[4,a.call(r)]:[3,8];case 7:c.sent(),c.label=8;case 8:return[3,10];case 9:if(i)throw i.error;return[7];case 10:return[7];case 11:return n.complete(),[2]}})},new(l||(l=Promise))(function(t,n){function r(t){try{i(f.next(t))}catch(t){n(t)}}function o(t){try{i(f.throw(t))}catch(t){n(t)}}function i(n){var i;n.done?t(n.value):((i=n.value)instanceof l?i:new l(function(t){t(i)})).then(r,o)}i((f=f.apply(u,c||[])).next())})})(t,n).catch(function(t){return n.error(t)})})}function e4(t,n,r,o,i){void 0===o&&(o=0),void 0===i&&(i=!1);var a=n.schedule(function(){r(),i?t.add(this.schedule(null,o)):this.unsubscribe()},o);if(t.add(a),!i)return a}function e5(t,n){return void 0===n&&(n=0),eN(function(r,o){r.subscribe(eD(o,function(r){return e4(o,t,function(){return o.next(r)},n)},function(){return e4(o,t,function(){return o.complete()},n)},function(r){return e4(o,t,function(){return o.error(r)},n)}))})}function e8(t,n){return void 0===n&&(n=0),eN(function(r,o){o.add(t.schedule(function(){return r.subscribe(o)},n))})}function e7(t,n){if(!t)throw Error("Iterable cannot be null");return new eM(function(r){e4(r,n,function(){var o=t[Symbol.asyncIterator]();e4(r,n,function(){o.next().then(function(t){t.done?r.complete():r.next(t.value)})},0,!0)})})}function e6(t,n){return n?function(t,n){if(null!=t){if(ey(t[eA]))return e9(t).pipe(e8(n),e5(n));if(eq(t))return new eM(function(r){var o=0;return n.schedule(function(){o===t.length?r.complete():(r.next(t[o++]),r.closed||this.schedule())})});if(eG(t))return e9(t).pipe(e8(n),e5(n));if(eZ(t))return e7(t,n);if(e0(t))return new eM(function(r){var o;return e4(r,n,function(){o=t[eQ](),e4(r,n,function(){var t,n,i;try{n=(t=o.next()).value,i=t.done}catch(t){r.error(t);return}i?r.complete():r.next(n)},0,!0)}),function(){return ey(null==o?void 0:o.return)&&o.return()}});if(e2(t))return e7(e1(t),n)}throw eX(t)}(t,n):e9(t)}var te=eb(function(t){return function(n){void 0===n&&(n=null),t(this),this.message="Timeout has occurred",this.name="TimeoutError",this.info=n}});function tt(t,n){return eN(function(r,o){var i=0;r.subscribe(eD(o,function(r){o.next(t.call(n,r,i++))}))})}function tn(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return(function t(n,r,o){return void 0===o&&(o=1/0),ey(r)?t(function(t,o){return tt(function(n,i){return r(t,n,o,i)})(e9(n(t,o)))},o):("number"==typeof r&&(o=r),eN(function(t,r){var i,a,u,c,l,f,p;return i=o,a=[],u=0,c=0,l=!1,f=function(){!l||a.length||u||r.complete()},p=function(t){u++;var o=!1;e9(n(t,c++)).subscribe(eD(r,function(t){r.next(t)},function(){o=!0},void 0,function(){if(o)try{for(u--;a.length&&u<i;)!function(){var t=a.shift();p(t)}();f()}catch(t){r.error(t)}}))},t.subscribe(eD(r,function(t){return u<i?p(t):a.push(t)},function(){l=!0,f()})),function(){}}))})(eR,1)(e6(t,eK(t)))}function tr(t,n){return eN(function(r,o){var i=0;r.subscribe(eD(o,function(r){return t.call(n,r,i++)&&o.next(r)}))})}function to(t,n){var r;return eN((r=arguments.length>=2,function(o,i){var a=r,u=n,c=0;o.subscribe(eD(i,function(n){var r=c++;u=a?t(u,n,r):(a=!0,n),i.next(u)},void 0))}))}function ti(t,n){for(var r=[],o=2;o<arguments.length;o++)r[o-2]=arguments[o];if(!0===n)return void t();if(!1!==n){var i=new eI({next:function(){i.unsubscribe(),t()}});return e9(n.apply(void 0,eh([],ed(r)))).subscribe(i)}}function ta(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var r=eK(t);return eN(function(n,o){(r?tn(t,n,r):tn(t,n)).subscribe(o)})}function tu(t){return eN(function(n,r){e9(t).subscribe(eD(r,function(){return r.complete()},eO)),r.closed||n.subscribe(r)})}var tc=Object.defineProperty,ts=Object.defineProperties,tl=Object.getOwnPropertyDescriptors,tf=Object.getOwnPropertySymbols,tp=Object.prototype.hasOwnProperty,td=Object.prototype.propertyIsEnumerable,th=(t,n,r)=>n in t?tc(t,n,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[n]=r,tv=(t,n)=>{for(var r in n||(n={}))tp.call(n,r)&&th(t,r,n[r]);if(tf)for(var r of tf(n))td.call(n,r)&&th(t,r,n[r]);return t},ty=(t,n)=>ts(t,tl(n)),tb=(t,n,r)=>new Promise((o,i)=>{var a=t=>{try{c(r.next(t))}catch(t){i(t)}},u=t=>{try{c(r.throw(t))}catch(t){i(t)}},c=t=>t.done?o(t.value):Promise.resolve(t.value).then(a,u);c((r=r.apply(t,n)).next())});function tm(t){var n,r,o;return!(typeof t>"u")&&(!!(n=t)&&n.hasOwnProperty("participant")&&n.hasOwnProperty("source")&&n.hasOwnProperty("track")&&"u">typeof(null==(r=n.publication)?void 0:r.track)||!!(o=t)&&o.hasOwnProperty("participant")&&o.hasOwnProperty("source")&&o.hasOwnProperty("publication")&&"u">typeof o.publication)}function tg(t){var n;if("string"==typeof t||"number"==typeof t)return`${t}`;if((n=t)&&n.hasOwnProperty("participant")&&n.hasOwnProperty("source")&&typeof n.publication>"u")return`${t.participant.identity}_${t.source}_placeholder`;if(tm(t))return`${t.participant.identity}_${t.publication.source}_${t.publication.trackSid}`;throw Error(`Can't generate a id for the given track reference: ${t}`)}var tw=[o.u9.ConnectionStateChanged,o.u9.RoomMetadataChanged,o.u9.ActiveSpeakersChanged,o.u9.ConnectionQualityChanged,o.u9.ParticipantConnected,o.u9.ParticipantDisconnected,o.u9.ParticipantPermissionsChanged,o.u9.ParticipantMetadataChanged,o.u9.ParticipantNameChanged,o.u9.ParticipantAttributesChanged,o.u9.TrackMuted,o.u9.TrackUnmuted,o.u9.TrackPublished,o.u9.TrackUnpublished,o.u9.TrackStreamStateChanged,o.u9.TrackSubscriptionFailed,o.u9.TrackSubscriptionPermissionChanged,o.u9.TrackSubscriptionStatusChanged,o.u9.LocalTrackPublished,o.u9.LocalTrackUnpublished],tx=[o.YI.TrackPublished,o.YI.TrackUnpublished,o.YI.TrackMuted,o.YI.TrackUnmuted,o.YI.TrackStreamStateChanged,o.YI.TrackSubscribed,o.YI.TrackUnsubscribed,o.YI.TrackSubscriptionPermissionChanged,o.YI.TrackSubscriptionFailed,o.YI.LocalTrackPublished,o.YI.LocalTrackUnpublished],tS=(o.YI.ConnectionQualityChanged,o.YI.IsSpeakingChanged,o.YI.ParticipantMetadataChanged,o.YI.ParticipantPermissionsChanged,o.YI.TrackMuted,o.YI.TrackUnmuted,o.YI.TrackPublished,o.YI.TrackUnpublished,o.YI.TrackStreamStateChanged,o.YI.TrackSubscriptionFailed,o.YI.TrackSubscriptionPermissionChanged,o.YI.TrackSubscriptionStatusChanged,o.YI.LocalTrackPublished,o.YI.LocalTrackUnpublished,ec.getLogger("lk-components-js"));function tC(t,n){var r;return ty(tv({},t),{receivedAtMediaTimestamp:null!=(r=n.rtpTimestamp)?r:0,receivedAt:n.timestamp})}function tk(t,n,r){return[...t,...n].reduceRight((t,n)=>(t.find(t=>
3t.id===n.id)||t.unshift(n),t),[]).slice(0-r)}tS.setDefaultLevel("WARN");var tE=(t=>(t.AgentState="lk.agent.state",t.PublishOnBehalf="lk.publish_on_behalf",t.TranscriptionFinal="lk.transcription_final",t.TranscriptionSegmentId="lk.segment_id",t.TranscribedTrackId="lk.transcribed_track_id",t))(tE||{});function tT(t){return"object"==typeof t}function tO(t){return Array.isArray(t)&&t.filter(tT).length>0}function t_(t){var n;let r=tP(t),i=tM(t.participant).pipe(tt(()=>tP(t)),ta(r));return{className:(n=t.source===o.CC.Source.Camera||t.source===o.CC.Source.ScreenShare?"participant-media-video":"participant-media-audio",`lk-${n}`),trackObserver:i}}function tP(t){if(tm(t))return t.publication;{let{source:n,name:r,participant:o}=t;if(n&&r)return o.getTrackPublications().find(t=>t.source===n&&t.trackName===r);if(r)return o.getTrackPublicationByName(r);if(n)return o.getTrackPublication(n);throw Error("At least one of source and name needs to be defined")}}function tI(t,...n){return new eM(r=>{let o=()=>{r.next(t)};return n.forEach(n=>{t.on(n,o)}),()=>{n.forEach(n=>{t.off(n,o)})}}).pipe(ta(t))}function tL(t,n){return new eM(r=>{let o=(...t)=>{r.next(t)};return t.on(n,o),()=>{t.off(n,o)}})}function tA(t){return tL(t,o.u9.ConnectionStateChanged).pipe(tt(([t])=>t),ta(t.state))}function tR(t,...n){return new eM(r=>{let o=()=>{r.next(t)};return n.forEach(n=>{t.on(n,o)}),()=>{n.forEach(n=>{t.off(n,o)})}}).pipe(ta(t))}function tM(t){return tR(t,o.YI.TrackMuted,o.YI.TrackUnmuted,o.YI.ParticipantPermissionsChanged,o.YI.TrackPublished,o.YI.TrackUnpublished,o.YI.LocalTrackPublished,o.YI.LocalTrackUnpublished,o.YI.MediaDevicesError,o.YI.TrackSubscriptionStatusChanged).pipe(tt(t=>{let{isMicrophoneEnabled:n,isCameraEnabled:r,isScreenShareEnabled:i}=t,a=t.getTrackPublication(o.CC.Source.Microphone);return{isCameraEnabled:r,isMicrophoneEnabled:n,isScreenShareEnabled:i,cameraTrack:t.getTrackPublication(o.CC.Source.Camera),microphoneTrack:a,participant:t}}))}function tj(t,n={}){var r;let i,a=new eM(t=>(i=t,()=>c.unsubscribe())).pipe(ta(Array.from(t.remoteParticipants.values()))),u=null!=(r=n.additionalRoomEvents)?r:tw,c=tI(t,...Array.from(new Set([o.u9.ParticipantConnected,o.u9.ParticipantDisconnected,o.u9.ConnectionStateChanged,...u]))).subscribe(t=>null==i?void 0:i.next(Array.from(t.remoteParticipants.values())));return t.remoteParticipants.size>0&&(null==i||i.next(Array.from(t.remoteParticipants.values()))),a}function tN(t){var n,r;return typeof t>"u"?new eM:(n=t,r=o.YI.AttributesChanged,new eM(t=>{let o=(...n)=>{t.next(n)};return n.on(r,o),()=>{n.off(r,o)}})).pipe(tt(([n])=>({changed:n,attributes:t.attributes})),ta({changed:t.attributes,attributes:t.attributes}))}var tD={CHAT:"lk.chat",TRANSCRIPTION:"lk.transcription"},tF={CHAT:"lk-chat-topic"};function tY(t,n){return tb(this,arguments,function*(t,n,r={}){let{reliable:o,destinationIdentities:i,topic:a}=r;yield t.publishData(n,{destinationIdentities:i,topic:a,reliable:o})})}function tU(t,n,r){let i,a=Array.isArray(n)?n:[n];return{messageObservable:tL(t,o.u9.DataReceived).pipe(tr(([,,,t])=>void 0===n||void 0!==t&&a.includes(t)),tt(([t,n,,o])=>{let i={payload:t,topic:o,from:n};return null==r||r(i),i})),isSendingObservable:new eM(t=>{i=t}),send:(n,...r)=>tb(this,[n,...r],function*(n,r={}){i.next(!0);try{yield tY(t.localParticipant,n,tv({topic:a[0]},r))}finally{i.next(!1)}})}}var tW=new WeakMap,t$=t=>JSON.parse(new TextDecoder().decode(t)),tz=t=>new TextEncoder().encode(JSON.stringify(t));function tB(t,n){var r,i,a,u,c,l;let f=()=>{var n,r,i;return(null==(n=t.serverInfo)?void 0:n.edition)===1||!!(null!=(r=t.serverInfo)&&r.version)&&(0,o.Zy)(null==(i=t.serverInfo)?void 0:i.version,"1.8.2")>0},p=new eU,d=null!=(r=null==n?void 0:n.channelTopic)?r:tD.CHAT,h=null!=(i=null==n?void 0:n.channelTopic)?i:tF.CHAT,v=!1;tW.has(t)||(v=!0);let y=null!=(a=tW.get(t))?a:new Map,b=null!=(u=y.get(d))?u:new eU;y.set(d,b),tW.set(t,y);let m=null!=(c=null==n?void 0:n.messageDecoder)?c:t$;if(v){t.registerTextStreamHandler(d,(n,r)=>tb(this,null,function*(){let{id:o,timestamp:i}=n.info;e6(n).pipe(to((t,n)=>t+n),tt(n=>({id:o,timestamp:i,message:n,from:t.getParticipantByIdentity(r.identity),type:"chatMessage"}))).subscribe({next:t=>b.next(t)})}));
3let{messageObservable:n}=tU(t,[h]);n.pipe(tt(t=>{let n=m(t.payload);return!0==n.ignoreLegacy?void 0:ty(tv({},n),{type:"chatMessage",from:t.from})}),tr(t=>!!t),tu(p)).subscribe(b)}let g=b.pipe(to((t,n)=>{if("id"in n&&t.find(t=>{var r,o;return(null==(r=t.from)?void 0:r.identity)===(null==(o=n.from)?void 0:o.identity)&&t.id===n.id})){let r=t.findIndex(t=>t.id===n.id);if(r>-1){let o=t[r];t[r]=ty(tv({},n),{timestamp:o.timestamp,editTimestamp:n.timestamp})}return[...t]}return[...t,n]},[]),tu(p)),w=new e$(!1),x=null!=(l=null==n?void 0:n.messageEncoder)?l:tz;return t.once(o.u9.Disconnected,function(){p.next(),p.complete(),b.complete(),tW.delete(t),t.unregisterTextStreamHandler(d)}),{messageObservable:g,isSendingObservable:w,send:(n,r)=>tb(this,null,function*(){r||(r={}),null!=r.topic||(r.topic=d),w.next(!0);try{let o={id:(yield t.localParticipant.sendText(n,r)).id,timestamp:Date.now(),message:n},i=ty(tv({},o),{attachedFiles:r.attachments}),a=ty(tv({},i),{type:"chatMessage",from:t.localParticipant,attributes:r.attributes});b.next(a);let u=x(ty(tv({},o),{ignoreLegacy:f()}));try{yield tY(t.localParticipant,u,{reliable:!0,topic:h})}catch(t){tS.info("could not send message in legacy chat format",t)}return a}finally{w.next(!1)}})}}function tH(t,n,r=!0){let o=[t.localParticipant,...Array.from(t.remoteParticipants.values())],i=[];return o.forEach(t=>{n.forEach(n=>{let o=Array.from(t.trackPublications.values()).filter(t=>t.source===n&&(!r||t.track)).map(n=>({participant:t,publication:n,source:n.source}));i.push(...o)})}),{trackReferences:i,participants:o}}function tV(t,n,r=!1){let{sources:o,kind:i,name:a}=n;return Array.from(t.trackPublications.values()).filter(t=>(!o||o.includes(t.source))&&(!i||t.kind===i)&&(!a||t.trackName===a)&&(!r||t.track)).map(n=>({participant:t,publication:n,source:n.source}))}function tJ(t,n,r){var i,a;let u=null!=(i=r.additionalRoomEvents)?i:tw,c=null==(a=r.onlySubscribed)||a;return tI(t,...Array.from(new Set([o.u9.ParticipantConnected,o.u9.ParticipantDisconnected,o.u9.ConnectionStateChanged,o.u9.LocalTrackPublished,o.u9.LocalTrackUnpublished,o.u9.TrackPublished,o.u9.TrackUnpublished,o.u9.TrackSubscriptionStatusChanged,...u]).values())).pipe(tt(t=>{let r=tH(t,n,c);return tS.debug(`TrackReference[] was updated. (length ${r.trackReferences.length})`,r),r}),ta(tH(t,n,c)))}function tK(t,n){return tR(t,...tx).pipe(tt(t=>{let r=tV(t,n);return tS.debug(`TrackReference[] was updated. (length ${r.length})`,r),r}),ta(tV(t,n)))}function tq(t,n){return new eM(r=>{let o=(...t)=>{r.next(t)};return t.on(n,o),()=>{t.off(n,o)}})}function tG(t){return tq(t,o.GI.TranscriptionReceived)}function tZ(t){return tq(t,o.GI.TimeSyncUpdate).pipe(tt(([t])=>t))}var{load:tX,save:tQ}=function(t){return{load:()=>(function(t){if(typeof localStorage>"u")return void tS.error("Local storage is not available.");try{let n=localStorage.getItem(t);if(!n)return void tS.warn(`Item with key ${t} does not exist in local storage.`);return JSON.parse(n)}catch(t){tS.error(`Error getting item from local storage: ${t}`);return}})(t),save:n=>(function(t,n){if(typeof localStorage>"u")return void tS.error("Local storage is not available.");try{if(n){let r=Object.fromEntries(Object.entries(n).filter(([,t])=>""!==t));localStorage.setItem(t,JSON.stringify(r))}}catch(t){tS.error(`Error setting item to local storage: ${t}`)}})(t,n)}}("lk-user-choices"),t0=null,t1=null,t2=0;function t9(){return t0||(t0=new Map),t0}function t3(t,n){var r,i,a,u,c,l,f,p,d,h,v,y,b;let m=function(t,n){let r=(t1||(t1=new WeakMap),t1),o=r.get(t);return o||(o=`room_${t2++}`,r.set(t,o)),`${o}:${n}`}(t,n),g=t9(),w=g.get(m);if(w)return w;let x=new eU,S=[],C="lk.segment_id",k=x.pipe((u=ey(r={subscribe:()=>{t.registerTextStreamHandler(n,(t,n)=>tb(this,null,function*(){var r;let o=e6(t).pipe(to((t,n)=>t+n,"")),i=!!(null!=(r=t.info.attributes)&&r[C]);o.subscribe(r=>{let o=S.findIndex(n=>{var r,o;return n.streamInfo.id===t.info.id||i&&(null==(r=n.streamInfo.attributes)?void 0:r[C])===(null==(o=t.info.attributes)?void 0:o[C])});-1!==o?S[o]=ty(tv({},S[o]),{text:r}):S.push({text:r,participantInfo:n,streamInfo:t.info}),x.next([...S])})}))},finalize:()=>{t.unregisterTextStreamHandler(n)}})?{next:r,error:i,complete:a}:r)?eN(function(t,n){null==(r=u.subscribe)||r.call(u);var r,o=!0;t.subscribe(eD(n,function(t){var r;null==(r=u.next)||r.call(u,t),n.next(t)},function(){var t;o=!1,null==(t=u.complete)||t.call(u),n.complete()},function(t){var r;o=!1,null==(r=u.error)||r.call(u,t),n.error(t)},function(){var t,n;o&&(null==(t=u.unsubscribe)||t.call(u)),null==(n=u.finalize)||n.call(u)}))}):eR,(void 0===c&&(c={}),f=void 0===(l=c.connector)?function(){return new eU}:l,d=void 0===(p=c.resetOnError)||p,v=void 0===(h=c.resetOnComplete)||h,b=void 0===(y=c.resetOnRefCountZero)||y,function(t){var n,r,o,i=0,a=!1,u=!1,
3c=function(){null==r||r.unsubscribe(),r=void 0},l=function(){c(),n=o=void 0,a=u=!1},p=function(){var t=n;l(),null==t||t.unsubscribe()};return eN(function(t,h){i++,u||a||c();var y=o=o??f();h.add(function(){0!=--i||u||a||(r=ti(p,b))}),y.subscribe(h),!n&&i>0&&(n=new eI({next:function(t){return y.next(t)},error:function(t){u=!0,c(),r=ti(l,d,t),y.error(t)},complete:function(){a=!0,c(),r=ti(l,v),y.complete()}}),e9(t).subscribe(n))})(t)}));return g.set(m,k),t.on(o.u9.Disconnected,()=>{t9().delete(m),S=[],x.next([])}),k}i.createContext(void 0);let t4=i.createContext(void 0);function t5(t){let n=i.useContext(t4),r=t??n;if(!r)throw Error("No TrackRef, make sure you are inside a TrackRefContext or pass the TrackRef explicitly");return r}let t8=i.createContext(void 0);function t7(){return i.useContext(t8)}let t6=i.createContext(void 0);function ne(){let t=i.useContext(t6);if(!t)throw Error("tried to access room context outside of livekit room component");return t}function nt(t){let n=i.useContext(t6),r=t??n;if(!r)throw Error("No room provided, make sure you are inside a Room context or pass the room explicitly");return r}i.createContext(void 0),i.createContext(void 0)},79709:(t,n,r)=>{let o;r.d(n,{C:()=>h,E:()=>d,M:()=>v,W:()=>w,X:()=>S,a0:()=>C,t:()=>y,w:()=>b});var i=r(12115),a=r(49632),u=r(84267);let c=t=>{let n=s.useRef(t);return s.useEffect(()=>{n.current=t}),n},l=()=>o||(o=function(){let t=!1,n=[],r=new Map;if(typeof window>"u")return;let o=new ResizeObserver((o,i)=>{n=n.concat(o),t||window.requestAnimationFrame(()=>{let o=new Set;for(let t=0;t<n.length;t++){if(o.has(n[t].target))continue;o.add(n[t].target);let a=r.get(n[t].target);null==a||a.forEach(r=>r(n[t],i))}n=[],t=!1}),t=!0});return{observer:o,subscribe(t,n){o.observe(t);let i=r.get(t)??[];i.push(n),r.set(t,i)},unsubscribe(t,n){let i=r.get(t)??[];if(1===i.length){o.unobserve(t),r.delete(t);return}let a=i.indexOf(n);-1!==a&&i.splice(a,1),r.set(t,i)}}}());function f(t,n,r=!0){let[o,a]=i.useState(n);return i.useEffect(()=>{if(r&&a(n),typeof window>"u"||!t)return;let o=t.subscribe(a);return()=>o.unsubscribe()},[t,r]),o}function p(t){let n=(0,a.u)(t);return f(i.useMemo(()=>(0,a.e)(n),[n]),n.state)}function d(t,n){let r="function"==typeof t?t:n,o="string"==typeof t?t:void 0,u=(0,a.f)(),{send:c,messageObservable:l,isSendingObservable:p}=i.useMemo(()=>(0,a.g)(u,o,r),[u,o,r]);return{message:f(l,void 0),send:c,isSending:f(p,!1)}}function h(t={}){let n=(0,a.u)(t.room),[r,o]=i.useState(n.localParticipant),[u,c]=i.useState(r.isMicrophoneEnabled),[l,f]=i.useState(r.isCameraEnabled),[p,d]=i.useState(r.isScreenShareEnabled),[v,y]=i.useState(r.lastMicrophoneError),[b,m]=i.useState(r.lastCameraError),[g,w]=i.useState(void 0),[x,S]=i.useState(void 0),C=t=>{f(t.isCameraEnabled),c(t.isMicrophoneEnabled),d(t.isScreenShareEnabled),S(t.cameraTrack),w(t.microphoneTrack),y(t.participant.lastMicrophoneError),m(t.participant.lastCameraError),o(t.participant)};return i.useEffect(()=>{let t=(0,a.t)(n.localParticipant).subscribe(C);return()=>t.unsubscribe()},[n]),{isMicrophoneEnabled:u,isScreenShareEnabled:p,isCameraEnabled:l,microphoneTrack:g,cameraTrack:x,lastMicrophoneError:v,lastCameraError:b,localParticipant:r}}function v(t={}){let n=(0,a.u)(t.room),[r,o]=i.useState([]);return i.useEffect(()=>{let r=(0,a.E)(n,{additionalRoomEvents:t.updateOnlyOn}).subscribe(o);return()=>r.unsubscribe()},[n,JSON.stringify(t.updateOnlyOn)]),r}function y(t=[u.CC.Source.Camera,u.CC.Source.Microphone,u.CC.Source.ScreenShare,u.CC.Source.ScreenShareAudio,u.CC.Source.Unknown],n={}){let r=(0,a.u)(n.room),[o,c]=i.useState([]),[l,f]=i.useState([]),p=i.useMemo(()=>t.map(t=>(0,a.U)(t)?t.source:t),[JSON.stringify(t)]);return i.useEffect(()=>{let t=(0,a.V)(r,p,{additionalRoomEvents:n.updateOnlyOn,onlySubscribed:n.onlySubscribed}).subscribe(({trackReferences:t,participants:n})=>{a.l.debug("setting track bundles",t,n),c(t),f(n)});return()=>t.unsubscribe()},[r,JSON.stringify(n.onlySubscribed),JSON.stringify(n.updateOnlyOn),JSON.stringify(t)]),i.useMemo(()=>{if(!(0,a.W)(t))return o;{let n=function(t,n){let r=new Map;if((0,a.W)(t)){let o=t.filter(t=>t.withPlaceholder).map(t=>t.source);
3n.forEach(t=>{let n=t.getTrackPublications().map(t=>{var n;return null==(n=t.track)?void 0:n.source}).filter(t=>void 0!==t),i=Array.from(function(t,n){let r=new Set(t);for(let t of n)r.delete(t);return r}(new Set(o),new Set(n)));i.length>0&&r.set(t.identity,i)})}return r}(t,l),r=Array.from(o);return l.forEach(t=>{n.has(t.identity)&&(n.get(t.identity)??[]).forEach(n=>{o.find(({participant:r,publication:o})=>t.identity===r.identity&&o.source===n)||(a.l.debug(`Add ${n} placeholder for participant ${t.identity}.`),r.push({participant:t,source:n}))})}),r}},[o,l,t])}function b(t){let n=(0,a.u)(null==t?void 0:t.room),r=p(n),o=i.useMemo(()=>r===u.KN.Disconnected,[r]),c=i.useMemo(()=>(0,a.Z)(n,t),[n,t,o]),l=f(c.isSendingObservable,!1),d=f(c.messageObservable,[]);return{send:c.send,chatMessages:d,isSending:l}}function m(t,n={}){let r,o;"string"==typeof n?r=n:(r=null==n?void 0:n.participantIdentity,o=null==n?void 0:n.room);let u=(0,a.B)(),c=function(t={}){let n=v(t),{localParticipant:r}=h(t);return i.useMemo(()=>[r,...n],[r,n])}({room:o,updateOnlyOn:[]}),l=i.useMemo(()=>r?c.find(t=>t.identity===r):u,[r,c,u]);return f(i.useMemo(()=>{if(l)return(0,a.a2)(l,{sources:t})},[l,JSON.stringify(t)]),[])}let g={bufferSize:100};function w(t,n){var r,o,u;let c={...g,...n},[l,p]=i.useState([]),d=f(i.useMemo(()=>{var n;return null!=(n=null==t?void 0:t.publication)&&n.track?(0,a.a3)(null==t?void 0:t.publication.track):void 0},[null==(r=null==t?void 0:t.publication)?void 0:r.track]),{timestamp:Date.now(),rtpTimestamp:null==(u=null==(o=null==t?void 0:t.publication)?void 0:o.track)?void 0:u.rtpTimestamp}),h=t=>{var n;null==(n=c.onTranscription)||n.call(c,t),p(n=>(0,a.a5)(n,t.map(t=>(0,a.a6)(t,d)),c.bufferSize))};return i.useEffect(()=>{if(!(null!=t&&t.publication))return;let n=(0,a.a4)(t.publication).subscribe(t=>{h(...t)});return()=>{n.unsubscribe()}},[t&&(0,a.p)(t),h]),{segments:l}}let x=a.a8.AgentState;function S(){let t=v(),n=t.find(t=>t.kind===u.UJ.AGENT&&!(a.a8.PublishOnBehalf in t.attributes)),r=t.find(t=>t.kind===u.UJ.AGENT&&t.attributes[a.a8.PublishOnBehalf]===(null==n?void 0:n.identity)),o=m([u.CC.Source.Microphone,u.CC.Source.Camera],null==n?void 0:n.identity),c=m([u.CC.Source.Microphone,u.CC.Source.Camera],null==r?void 0:r.identity),l=o.find(t=>t.source===u.CC.Source.Microphone)??c.find(t=>t.source===u.CC.Source.Microphone),d=o.find(t=>t.source===u.CC.Source.Camera)??c.find(t=>t.source===u.CC.Source.Camera),{segments:h}=w(l),y=p(),{attributes:b}=function(t={}){let n=(0,a.B)(),r=t.participant??n;return f(i.useMemo(()=>(0,a.a7)(r),[r]),{attributes:null==r?void 0:r.attributes})}({participant:n}),g=i.useMemo(()=>y===u.KN.Disconnected?"disconnected":y!==u.KN.Connecting&&n&&null!=b&&b[x]?b[x]:"connecting",[b,n,y]);return{agent:n,state:g,audioTrack:l,videoTrack:d,agentTranscriptions:h,agentAttributes:b}}function C(t){let{participantIdentities:n,trackSids:r}=t??{},{textStreams:o}=function(t,n){let r=(0,a.u)(null==n?void 0:n.room),o=p(r)===u.KN.Disconnected,c=i.useMemo(()=>(0,a.aa)(r,t),[r,t]);return{textStreams:f(o?void 0:c,[])}}(a.ab.TRANSCRIPTION,{room:null==t?void 0:t.room});return i.useMemo(()=>o.filter(t=>!n||n.includes(t.participantInfo.identity)).filter(t=>{var n;return!r||r.includes((null==(n=t.streamInfo.attributes)?void 0:n[a.a8.TranscribedTrackId])??"")}),[o,n,r])}var k,E={exports:{}},T=function(){if(k)return E.exports;k=1;var t,n="object"==typeof Reflect?Reflect:null,r=n&&"function"==typeof n.apply?n.apply:function(t,n,r){return Function.prototype.apply.call(t,n,r)};t=n&&"function"==typeof n.ownKeys?n.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var o=Number.isNaN||function(t){return t!=t};function i(){i.init.call(this)}E.exports=i,E.exports.once=function(t,n){return new Promise(function(r,o){var i,a,u;function c(r){t.removeListener(n,l),o(r)}function l(){"function"==typeof t.removeListener&&t.removeListener("error",c),r([].slice.call(arguments))}y(t,n,l,{once:!0}),"error"!==n&&(i=t,a=c,u={once:!0},"function"==typeof i.on&&y(i,"error",a,u))})},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var a=10;function u(t){if("function"!=typeof t)throw TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function c(t){return void 0===t._maxListeners?i.defaultMaxListeners:t._maxListeners}function l(t,n,r,o){var i,a,l;if(u(r),void 0===(a=t._events)?(a=t._events=Object.create(null),t._eventsCount=0):(void 0!==a.newListener&&(t.emit("newListener",n,r.listener?r.listener:r),a=t._events),l=a[n]),void 0===l)l=a[n]=r,++t._eventsCount;else if("function"==typeof l?l=a[n]=o?[r,l]:[l,r]:o?l.unshift(r):l.push(r),(i=c(t))>0&&l.length>i&&!l.warned){l.warned=!0;var f=Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(n)+" listeners added. Use emitter.setMaxListeners() to increase limit");f.name="MaxListenersExceededWarning",f.emitter=t,f.type=n,f.count=l.length,console&&console.warn&&console.warn(f)}return t}function f(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0==arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(t,n,r){var o={fired:!1,wrapFn:void 0,target:t,type:n,listener:r},i=f.bind(o);return i.listener=r,o.wrapFn=i,i}function d(t,n,r){var o=t._events;if(void 0===o)return[];var i=o[n];return void 0===i?[]:"function"==typeof i?r?[i.listener||i]:[i]:r?function(t){for(var n=Array(t.length),r=0;r<n.length;++r)n[r]=t[r].listener||t[r];return n}(i):v(i,i.length)}function h(t){var n=this._events;if(void 0!==n){var r=n[t];if("function"==typeof r)return 1;if(void 0!==r)return r.length}return 0}function v(t,n){for(var r=Array(n),o=0;o<n;++o)r[o]=t[o];return r}function y(t,n,r,o){if("function"==typeof t.on)o.once?t.once(n,r):t.on(n,r);else if("function"==typeof t.addEventListener)t.addEventListener(n,function i(a){o.once&&t.removeEventListener(n,i),r(a)});else throw TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof t)}return Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a}
3,set:function(t){if("number"!=typeof t||t<0||o(t))throw RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+t+".");a=t}}),i.init=function(){(void 0===this._events||this._events===Object.getPrototypeOf(this)._events)&&(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},i.prototype.setMaxListeners=function(t){if("number"!=typeof t||t<0||o(t))throw RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+t+".");return this._maxListeners=t,this},i.prototype.getMaxListeners=function(){return c(this)},i.prototype.emit=function(t){for(var n=[],o=1;o<arguments.length;o++)n.push(arguments[o]);var i="error"===t,a=this._events;if(void 0!==a)i=i&&void 0===a.error;else if(!i)return!1;if(i){if(n.length>0&&(u=n[0]),u instanceof Error)throw u;var u,c=Error("Unhandled error."+(u?" ("+u.message+")":""));throw c.context=u,c}var l=a[t];if(void 0===l)return!1;if("function"==typeof l)r(l,this,n);else for(var f=l.length,p=v(l,f),o=0;o<f;++o)r(p[o],this,n);return!0},i.prototype.addListener=function(t,n){return l(this,t,n,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(t,n){return l(this,t,n,!0)},i.prototype.once=function(t,n){return u(n),this.on(t,p(this,t,n)),this},i.prototype.prependOnceListener=function(t,n){return u(n),this.prependListener(t,p(this,t,n)),this},i.prototype.removeListener=function(t,n){var r,o,i,a,c;if(u(n),void 0===(o=this._events)||void 0===(r=o[t]))return this;if(r===n||r.listener===n)0==--this._eventsCount?this._events=Object.create(null):(delete o[t],o.removeListener&&this.emit("removeListener",t,r.listener||n));else if("function"!=typeof r){for(i=-1,a=r.length-1;a>=0;a--)if(r[a]===n||r[a].listener===n){c=r[a].listener,i=a;break}if(i<0)return this;0===i?r.shift():function(t,n){for(;n+1<t.length;n++)t[n]=t[n+1];t.pop()}(r,i),1===r.length&&(o[t]=r[0]),void 0!==o.removeListener&&this.emit("removeListener",t,c||n)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(t){var n,r,o;if(void 0===(r=this._events))return this;if(void 0===r.removeListener)return 0==arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==r[t]&&(0==--this._eventsCount?this._events=Object.create(null):delete r[t]),this;if(0==arguments.length){var i,a=Object.keys(r);for(o=0;o<a.length;++o)"removeListener"!==(i=a[o])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(n=r[t]))this.removeListener(t,n);else if(void 0!==n)for(o=n.length-1;o>=0;o--)this.removeListener(t,n[o]);return this},i.prototype.listeners=function(t){return d(this,t,!0)},i.prototype.rawListeners=function(t){return d(this,t,!1)},i.listenerCount=function(t,n){return"function"==typeof t.listenerCount?t.listenerCount(n):h.call(t,n)},i.prototype.listenerCount=h,i.prototype.eventNames=function(){return this._eventsCount>0?t(this._events):[]},E.exports}(),O=(t=>(t.CameraChanged="cameraChanged",t.MicrophoneChanged="microphoneChanged",t.StateChanged="stateChanged",t))(O||{});let _=t=>({isConnected:"listening"===t||"thinking"===t||"speaking"===t,canListen:"pre-connect-buffering"===t||"listening"===t||"thinking"===t||"speaking"===t,isFinished:"disconnected"===t||"failed"===t,isPending:"connecting"===t||"initializing"===t||"idle"===t});var P=(t=>(t.ConnectionStateChanged="connectionStateChanged",t.MediaDevicesError="mediaDevicesError",t.EncryptionError="encryptionError",t))(P||{}),I=(t=>(t.MessageReceived="messageReceived",t))(I||{})},84109:(t,n,r)=>{r.d(n,{A:()=>o});let o=(0,r(90602).A)("refresh-ccw",[["path",{d:"M21 12a9 9 0 0 0-9-9 9.75 9.75 0 0 0-6.74 2.74L3 8",key:"14sxne"}],["path",{d:"M3 3v5h5",key:"1xhq8a"}],["path",{d:"M3 12a9 9 0 0 0 9 9 9.75 9.75 0 0 0 6.74-2.74L21 16",key:"1hlbsb"}],["path",{d:"M16 16h5v5",key:"ccwih5"}]])},91951:(t,n,r)=>{r.d(n,{A:()=>o});let o=(0,r(90602).A)("mic-off",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M15 9.34V5a3 3 0 0 0-5.68-1.33",key:"1gzdoj"}],["path",{d:"M16.95 16.95A7 7 0 0 1 5 12v-2",key:"cqa7eg"}],["path",{d:"M18.89 13.23A7 7 0 0 0 19 12v-2",key:"16hl24"}],["path",{d:"m2 2 20 20",key:"1ooewy"}],["path",{d:"M9 9v3a3 3 0 0 0 5.12 2.12",key:"r2i35w"}]])},97207:(t,n,r)=>{r.d(n,{A:()=>o});let o=(0,r(90602).A)("mic",[["path",{d:"M12 19v3",key:"npa21l"}],["path",{d:"M19 10v2a7 7 0 0 1-14 0v-2",key:"1vc78b"}],["rect",{x:"9",y:"2",width:"6",height:"13",rx:"3",key:"s6n7sd"}]])},98176:(t,n,r)=>{r.d(n,{UC:()=>K,ZL:()=>J,bL:()=>H,l9:()=>V});var o=r(12115),i=r(85185),a=r(6101),u=r(46081),c=r(19178),l=r(92293),f=r(25519),p=r(61285),d=r(24218),h=r(34378),v=r(28905),y=r(63540),b=r(95155),m=Symbol("radix.slottable");function g(t){return o.isValidElement(t)&&"function"==typeof t.type&&"__radixId"in t.type&&t.type.__radixId===m}var w=r(5845),x=r(38168),S=r(58890),C="Popover",[k,E]=(0,u.A)(C,[d.Bk]),T=(0,d.Bk)(),[O,_]=k(C),P=t=>{let{__scopePopover:n,children:r,open:i,defaultOpen:a,onOpenChange:u,modal:c=!1}=t,l=T(n),f=o.useRef(null),[h,v]=o.useState(!1),[y,m]=(0,w.i)({prop:i,defaultProp:null!=a&&a,onChange:u,caller:C});return(0,b.jsx)(d.bL,{...l,children:(0,b.jsx)(O,{scope:n,contentId:(0,p.B)(),triggerRef:f,open:y,onOpenChange:m,onOpenToggle:o.useCallback(()=>m(t=>!t),[m]),hasCustomAnchor:h,onCustomAnchorAdd:o.useCallback(()=>v(!0),[]),onCustomAnchorRemove:o.useCallback(()=>v(!1),[]),modal:c,children:r})})};P.displayName=C;var I="PopoverAnchor";
3o.forwardRef((t,n)=>{let{__scopePopover:r,...i}=t,a=_(I,r),u=T(r),{onCustomAnchorAdd:c,onCustomAnchorRemove:l}=a;return o.useEffect(()=>(c(),()=>l()),[c,l]),(0,b.jsx)(d.Mz,{...u,...i,ref:n})}).displayName=I;var L="PopoverTrigger",A=o.forwardRef((t,n)=>{let{__scopePopover:r,...o}=t,u=_(L,r),c=T(r),l=(0,a.s)(n,u.triggerRef),f=(0,b.jsx)(y.sG.button,{type:"button","aria-haspopup":"dialog","aria-expanded":u.open,"aria-controls":u.contentId,"data-state":B(u.open),...o,ref:l,onClick:(0,i.mK)(t.onClick,u.onOpenToggle)});return u.hasCustomAnchor?f:(0,b.jsx)(d.Mz,{asChild:!0,...c,children:f})});A.displayName=L;var R="PopoverPortal",[M,j]=k(R,{forceMount:void 0}),N=t=>{let{__scopePopover:n,forceMount:r,children:o,container:i}=t,a=_(R,n);return(0,b.jsx)(M,{scope:n,forceMount:r,children:(0,b.jsx)(v.C,{present:r||a.open,children:(0,b.jsx)(h.Z,{asChild:!0,container:i,children:o})})})};N.displayName=R;var D="PopoverContent",F=o.forwardRef((t,n)=>{let r=j(D,t.__scopePopover),{forceMount:o=r.forceMount,...i}=t,a=_(D,t.__scopePopover);return(0,b.jsx)(v.C,{present:o||a.open,children:a.modal?(0,b.jsx)(U,{...i,ref:n}):(0,b.jsx)(W,{...i,ref:n})})});F.displayName=D;var Y=function(t){let n=function(t){let n=o.forwardRef((t,n)=>{let{children:r,...i}=t;if(o.isValidElement(r)){var u;let t,c,l=(u=r,(c=(t=Object.getOwnPropertyDescriptor(u.props,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?u.ref:(c=(t=Object.getOwnPropertyDescriptor(u,"ref")?.get)&&"isReactWarning"in t&&t.isReactWarning)?u.props.ref:u.props.ref||u.ref),f=function(t,n){let r={...n};for(let o in n){let i=t[o],a=n[o];/^on[A-Z]/.test(o)?i&&a?r[o]=(...t)=>{let n=a(...t);return i(...t),n}:i&&(r[o]=i):"style"===o?r[o]={...i,...a}:"className"===o&&(r[o]=[i,a].filter(Boolean).join(" "))}return{...t,...r}}(i,r.props);return r.type!==o.Fragment&&(f.ref=n?(0,a.t)(n,l):l),o.cloneElement(r,f)}return o.Children.count(r)>1?o.Children.only(null):null});return n.displayName=`${t}.SlotClone`,n}(t),r=o.forwardRef((t,r)=>{let{children:i,...a}=t,u=o.Children.toArray(i),c=u.find(g);if(c){let t=c.props.children,i=u.map(n=>n!==c?n:o.Children.count(t)>1?o.Children.only(null):o.isValidElement(t)?t.props.children:null);return(0,b.jsx)(n,{...a,ref:r,children:o.isValidElement(t)?o.cloneElement(t,void 0,i):null})}return(0,b.jsx)(n,{...a,ref:r,children:i})});return r.displayName=`${t}.Slot`,r}("PopoverContent.RemoveScroll"),U=o.forwardRef((t,n)=>{let r=_(D,t.__scopePopover),u=o.useRef(null),c=(0,a.s)(n,u),l=o.useRef(!1);return o.useEffect(()=>{let t=u.current;if(t)return(0,x.Eq)(t)},[]),(0,b.jsx)(S.A,{as:Y,allowPinchZoom:!0,children:(0,b.jsx)($,{...t,ref:c,trapFocus:r.open,disableOutsidePointerEvents:!0,onCloseAutoFocus:(0,i.mK)(t.onCloseAutoFocus,t=>{var n;t.preventDefault(),l.current||null==(n=r.triggerRef.current)||n.focus()}),onPointerDownOutside:(0,i.mK)(t.onPointerDownOutside,t=>{let n=t.detail.originalEvent,r=0===n.button&&!0===n.ctrlKey;l.current=2===n.button||r},{checkForDefaultPrevented:!1}),onFocusOutside:(0,i.mK)(t.onFocusOutside,t=>t.preventDefault(),{checkForDefaultPrevented:!1})})})}),W=o.forwardRef((t,n)=>{let r=_(D,t.__scopePopover),i=o.useRef(!1),a=o.useRef(!1);return(0,b.jsx)($,{...t,ref:n,trapFocus:!1,disableOutsidePointerEvents:!1,onCloseAutoFocus:n=>{var o,u;null==(o=t.onCloseAutoFocus)||o.call(t,n),n.defaultPrevented||(i.current||null==(u=r.triggerRef.current)||u.focus(),n.preventDefault()),i.current=!1,a.current=!1},onInteractOutside:n=>{var o,u;null==(o=t.onInteractOutside)||o.call(t,n),n.defaultPrevented||(i.current=!0,"pointerdown"===n.detail.originalEvent.type&&(a.current=!0));let c=n.target;(null==(u=r.triggerRef.current)?void 0:u.contains(c))&&n.preventDefault(),"focusin"===n.detail.originalEvent.type&&a.current&&n.preventDefault()}})}),$=o.forwardRef((t,n)=>{let{__scopePopover:r,trapFocus:o,onOpenAutoFocus:i,onCloseAutoFocus:a,disableOutsidePointerEvents:u,onEscapeKeyDown:p,onPointerDownOutside:h,onFocusOutside:v,onInteractOutside:y,...m}=t,g=_(D,r),w=T(r);return(0,l.Oh)(),(0,b.jsx)(f.n,{asChild:!0,loop:!0,trapped:o,onMountAutoFocus:i,onUnmountAutoFocus:a,children:(0,b.jsx)(c.qW,{asChild:!0,disableOutsidePointerEvents:u,onInteractOutside:y,onEscapeKeyDown:p,onPointerDownOutside:h,onFocusOutside:v,onDismiss:()=>g.onOpenChange(!1),children:(0,b.jsx)(d.UC,{"data-state":B(g.open),role:"dialog",id:g.contentId,...w,...m,ref:n,style:{...m.style,"--radix-popover-content-transform-origin":"var(--radix-popper-transform-origin)","--radix-popover-content-available-width":"var(--radix-popper-available-width)","--radix-popover-content-available-height":"var(--radix-popper-available-height)","--radix-popover-trigger-width":"var(--radix-popper-anchor-width)","--radix-popover-trigger-height":"var(--radix-popper-anchor-height)"}})})})}),z="PopoverClose";function B(t){return t?"open":"closed"}
3o.forwardRef((t,n)=>{let{__scopePopover:r,...o}=t,a=_(z,r);return(0,b.jsx)(y.sG.button,{type:"button",...o,ref:n,onClick:(0,i.mK)(t.onClick,()=>a.onOpenChange(!1))})}).displayName=z,o.forwardRef((t,n)=>{let{__scopePopover:r,...o}=t,i=T(r);return(0,b.jsx)(d.i3,{...i,...o,ref:n})}).displayName="PopoverArrow";var H=P,V=A,J=N,K=F}}]);
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.