cobrowse-sdk-js 3.24.0 → 3.24.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +14 -0
- package/dist/CobrowseIO.js +1 -1
- package/dist/CobrowseIO.mjs +1 -1
- package/dist/{CobrowseIO.static.C4ydqIN_.mjs → CobrowseIO.static.B7UDsxjP.mjs} +1 -1
- package/dist/{CobrowseIO.static.fveMib9t.mjs → CobrowseIO.static.D0KU8lRA.mjs} +1 -1
- package/dist/{CobrowseIO.static.DpIUswra.mjs → CobrowseIO.static.YcNudh90.mjs} +1 -1
- package/dist/CobrowseIO.static.exq-yM2T.mjs +1 -0
- package/dist/CobrowseIO.umd.js +1 -1
- package/dist/index.bundler.mjs +1 -1
- package/dist/pdf-viewer.umd.js +1 -1
- package/dist/universal-client.js +1 -1
- package/dist/universal-client.mjs +1 -1
- package/dist/{universal-client.static.DvXplm4V.mjs → universal-client.static.CAwmUYlo.mjs} +1 -1
- package/dist/{universal-client.static.CQXYGKmN.mjs → universal-client.static.gl5y6Om6.mjs} +1 -1
- package/package.json +2 -2
- package/dist/CobrowseIO.static.CUKXN9zU.mjs +0 -1
- /package/dist/{universal-client.static.Cl5FjAGj.mjs → universal-client.static.C7_tBjco.mjs} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function t(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var n,r,i={};function o(){if(r)return n;r=1;var t=function(e){return e&&e.Math===Math&&e};return n=t("object"==typeof globalThis&&globalThis)||t("object"==typeof window&&window)||t("object"==typeof self&&self)||t("object"==typeof e&&e)||t("object"==typeof n&&n)||function(){return this}()||Function("return this")()}var s,a,c,l,u,h,d,f,p={};function _(){return a?s:(a=1,s=function(e){try{return!!e()}catch(e){return!0}})}function E(){if(l)return c;l=1;var e=_();return c=!e(function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})}function v(){if(h)return u;h=1;var e=_();return u=!e(function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})}function m(){if(f)return d;f=1;var e=v(),t=Function.prototype.call;return d=e?t.bind(t):function(){return t.apply(t,arguments)},d}var g,I,L,w,C,y,A,N,S,T,b,O,R,k,P,M,D,G,x,U,W,F,V,j,z,B,H,Q,Y,K,$,J,X,q,Z,ee,te,ne,re,ie,oe,se={};function ae(){if(g)return se;g=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,n=t&&!e.call({1:2},1);return se.f=n?function(e){var n=t(this,e);return!!n&&n.enumerable}:e,se}function ce(){return L?I:(L=1,I=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function le(){if(C)return w;C=1;var e=v(),t=Function.prototype,n=t.call,r=e&&t.bind.bind(n,n);return w=e?r:function(e){return function(){return n.apply(e,arguments)}},w}function ue(){if(A)return y;A=1;var e=le(),t=e({}.toString),n=e("".slice);return y=function(e){return n(t(e),8,-1)}}function he(){if(S)return N;S=1;var e=le(),t=_(),n=ue(),r=Object,i=e("".split);return N=t(function(){return!r("z").propertyIsEnumerable(0)})?function(e){return"String"===n(e)?i(e,""):r(e)}:r}function de(){return b||(b=1,T=function(e){return null==e}),T}function fe(){if(R)return O;R=1;var e=de(),t=TypeError;return O=function(n){if(e(n))throw new t("Can't call method on "+n);return n}}function pe(){if(P)return k;P=1;var e=he(),t=fe();return k=function(n){return e(t(n))}}function _e(){if(D)return M;D=1;var e="object"==typeof document&&document.all;return M=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}function Ee(){if(x)return G;x=1;var e=_e();return G=function(t){return"object"==typeof t?null!==t:e(t)}}function ve(){if(W)return U;W=1;var e=o(),t=_e();return U=function(n,r){return arguments.length<2?(i=e[n],t(i)?i:void 0):e[n]&&e[n][r];var i},U}function me(){if(V)return F;V=1;var e=le();return F=e({}.isPrototypeOf)}function ge(){if(z)return j;z=1;var e=o().navigator,t=e&&e.userAgent;return j=t?String(t):""}function Ie(){if(H)return B;H=1;var e,t,n=o(),r=ge(),i=n.process,s=n.Deno,a=i&&i.versions||s&&s.version,c=a&&a.v8;return c&&(t=(e=c.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&r&&(!(e=r.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=r.match(/Chrome\/(\d+)/))&&(t=+e[1]),B=t}function Le(){if(Y)return Q;Y=1;var e=Ie(),t=_(),n=o().String;return Q=!!Object.getOwnPropertySymbols&&!t(function(){var t=Symbol("symbol detection");return!n(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}),Q}function we(){if($)return K;$=1;var e=Le();return K=e&&!Symbol.sham&&"symbol"==typeof Symbol.iterator}function Ce(){if(X)return J;X=1;var e=ve(),t=_e(),n=me(),r=we(),i=Object;return J=r?function(e){return"symbol"==typeof e}:function(r){var o=e("Symbol");return t(o)&&n(o.prototype,i(r))}}function ye(){if(Z)return q;Z=1;var e=String;return q=function(t){try{return e(t)}catch(e){return"Object"}}}function Ae(){if(te)return ee;te=1;var e=_e(),t=ye(),n=TypeError;return ee=function(r){if(e(r))return r;throw new n(t(r)+" is not a function")}}function Ne(){if(re)return ne;re=1;var e=Ae(),t=de();return ne=function(n,r){var i=n[r];return t(i)?void 0:e(i)},ne}function Se(){if(oe)return ie;oe=1;var e=m(),t=_e(),n=Ee(),r=TypeError;return ie=function(i,o){var s,a;if("string"===o&&t(s=i.toString)&&!n(a=e(s,i)))return a;if(t(s=i.valueOf)&&!n(a=e(s,i)))return a;if("string"!==o&&t(s=i.toString)&&!n(a=e(s,i)))return a;throw new r("Can't convert object to primitive value")}}var Te,be,Oe,Re,ke,Pe,Me,De,Ge,xe,Ue,We,Fe,Ve,je,ze,Be,He,Qe,Ye,Ke,$e,Je,Xe,qe={exports:{}};function Ze(){return be?Te:(be=1,Te=!1)}function et(){if(Re)return Oe;Re=1;var e=o(),t=Object.defineProperty;return Oe=function(n,r){try{t(e,n,{value:r,configurable:!0,writable:!0})}catch(t){e[n]=r}return r}}function tt(){if(ke)return qe.exports;ke=1;var e=Ze(),t=o(),n=et(),r="__core-js_shared__",i=qe.exports=t[r]||n(r,{});return(i.versions||(i.versions=[])).push({version:"3.47.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru), 2025 CoreJS Company (core-js.io)",license:"https://github.com/zloirock/core-js/blob/v3.47.0/LICENSE",source:"https://github.com/zloirock/core-js"}),qe.exports}function nt(){if(Me)return Pe;Me=1;var e=tt();return Pe=function(t,n){return e[t]||(e[t]=n||{})}}function rt(){if(Ge)return De;Ge=1;var e=fe(),t=Object;return De=function(n){return t(e(n))}}function it(){if(Ue)return xe;Ue=1;var e=le(),t=rt(),n=e({}.hasOwnProperty);return xe=Object.hasOwn||function(e,r){return n(t(e),r)}}function ot(){if(Fe)return We;Fe=1;var e=le(),t=0,n=Math.random(),r=e(1.1.toString);return We=function(e){return"Symbol("+(void 0===e?"":e)+")_"+r(++t+n,36)}}function st(){if(je)return Ve;je=1;var e=o(),t=nt(),n=it(),r=ot(),i=Le(),s=we(),a=e.Symbol,c=t("wks"),l=s?a.for||a:a&&a.withoutSetter||r;return Ve=function(e){return n(c,e)||(c[e]=i&&n(a,e)?a[e]:l("Symbol."+e)),c[e]}}function at(){if(Be)return ze;Be=1;var e=m(),t=Ee(),n=Ce(),r=Ne(),i=Se(),o=st(),s=TypeError,a=o("toPrimitive");return ze=function(o,c){if(!t(o)||n(o))return o;var l,u=r(o,a);if(u){if(void 0===c&&(c="default"),l=e(u,o,c),!t(l)||n(l))return l;throw new s("Can't convert object to primitive value")}return void 0===c&&(c="number"),i(o,c)}}function ct(){if(Qe)return He;Qe=1;var e=at(),t=Ce();return He=function(n){var r=e(n,"string");return t(r)?r:r+""}}function lt(){if(Ke)return Ye;Ke=1;var e=o(),t=Ee(),n=e.document,r=t(n)&&t(n.createElement);return Ye=function(e){return r?n.createElement(e):{}}}function ut(){if(Je)return $e;Je=1;var e=E(),t=_(),n=lt();return $e=!e&&!t(function(){return 7!==Object.defineProperty(n("div"),"a",{get:function(){return 7}}).a})}function ht(){if(Xe)return p;Xe=1;var e=E(),t=m(),n=ae(),r=ce(),i=pe(),o=ct(),s=it(),a=ut(),c=Object.getOwnPropertyDescriptor;return p.f=e?c:function(e,l){if(e=i(e),l=o(l),a)try{return c(e,l)}catch(e){}if(s(e,l))return r(!t(n.f,e,l),e[l])},p}var dt,ft,pt,_t,Et,vt,mt,gt={};function It(){if(ft)return dt;ft=1;var e=E(),t=_();return dt=e&&t(function(){return 42!==Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})}function Lt(){if(_t)return pt;_t=1;var e=Ee(),t=String,n=TypeError;return pt=function(r){if(e(r))return r;throw new n(t(r)+" is not an object")}}function wt(){if(Et)return gt;Et=1;var e=E(),t=ut(),n=It(),r=Lt(),i=ct(),o=TypeError,s=Object.defineProperty,a=Object.getOwnPropertyDescriptor,c="enumerable",l="configurable",u="writable";return gt.f=e?n?function(e,t,n){if(r(e),t=i(t),r(n),"function"==typeof e&&"prototype"===t&&"value"in n&&u in n&&!n[u]){var o=a(e,t);o&&o[u]&&(e[t]=n.value,n={configurable:l in n?n[l]:o[l],enumerable:c in n?n[c]:o[c],writable:!1})}return s(e,t,n)}:s:function(e,n,a){if(r(e),n=i(n),r(a),t)try{return s(e,n,a)}catch(e){}if("get"in a||"set"in a)throw new o("Accessors not supported");return"value"in a&&(e[n]=a.value),e},gt}function Ct(){if(mt)return vt;mt=1;var e=E(),t=wt(),n=ce();return vt=e?function(e,r,i){return t.f(e,r,n(1,i))}:function(e,t,n){return e[t]=n,e}}var yt,At,Nt,St,Tt,bt,Ot,Rt,kt,Pt,Mt,Dt,Gt,xt,Ut,Wt={exports:{}};function Ft(){if(At)return yt;At=1;var e=E(),t=it(),n=Function.prototype,r=e&&Object.getOwnPropertyDescriptor,i=t(n,"name"),o=i&&"something"===function(){}.name,s=i&&(!e||e&&r(n,"name").configurable);return yt={EXISTS:i,PROPER:o,CONFIGURABLE:s}}function Vt(){if(St)return Nt;St=1;var e=le(),t=_e(),n=tt(),r=e(Function.toString);return t(n.inspectSource)||(n.inspectSource=function(e){return r(e)}),Nt=n.inspectSource}function jt(){if(Rt)return Ot;Rt=1;var e=nt(),t=ot(),n=e("keys");return Ot=function(e){return n[e]||(n[e]=t(e))}}function zt(){return Pt?kt:(Pt=1,kt={})}function Bt(){if(Dt)return Mt;Dt=1;var e,t,n,r=function(){if(bt)return Tt;bt=1;var e=o(),t=_e(),n=e.WeakMap;return Tt=t(n)&&/native code/.test(String(n))}(),i=o(),s=Ee(),a=Ct(),c=it(),l=tt(),u=jt(),h=zt(),d="Object already initialized",f=i.TypeError,p=i.WeakMap;if(r||l.state){var _=l.state||(l.state=new p);_.get=_.get,_.has=_.has,_.set=_.set,e=function(e,t){if(_.has(e))throw new f(d);return t.facade=e,_.set(e,t),t},t=function(e){return _.get(e)||{}},n=function(e){return _.has(e)}}else{var E=u("state");h[E]=!0,e=function(e,t){if(c(e,E))throw new f(d);return t.facade=e,a(e,E,t),t},t=function(e){return c(e,E)?e[E]:{}},n=function(e){return c(e,E)}}return Mt={set:e,get:t,has:n,enforce:function(r){return n(r)?t(r):e(r,{})},getterFor:function(e){return function(n){var r;if(!s(n)||(r=t(n)).type!==e)throw new f("Incompatible receiver, "+e+" required");return r}}}}function Ht(){if(Gt)return Wt.exports;Gt=1;var e=le(),t=_(),n=_e(),r=it(),i=E(),o=Ft().CONFIGURABLE,s=Vt(),a=Bt(),c=a.enforce,l=a.get,u=String,h=Object.defineProperty,d=e("".slice),f=e("".replace),p=e([].join),v=i&&!t(function(){return 8!==h(function(){},"length",{value:8}).length}),m=String(String).split("String"),g=Wt.exports=function(e,t,n){"Symbol("===d(u(t),0,7)&&(t="["+f(u(t),/^Symbol\(([^)]*)\).*$/,"$1")+"]"),n&&n.getter&&(t="get "+t),n&&n.setter&&(t="set "+t),(!r(e,"name")||o&&e.name!==t)&&(i?h(e,"name",{value:t,configurable:!0}):e.name=t),v&&n&&r(n,"arity")&&e.length!==n.arity&&h(e,"length",{value:n.arity});try{n&&r(n,"constructor")&&n.constructor?i&&h(e,"prototype",{writable:!1}):e.prototype&&(e.prototype=void 0)}catch(e){}var s=c(e);return r(s,"source")||(s.source=p(m,"string"==typeof t?t:"")),e};return Function.prototype.toString=g(function(){return n(this)&&l(this).source||s(this)},"toString"),Wt.exports}function Qt(){if(Ut)return xt;Ut=1;var e=_e(),t=wt(),n=Ht(),r=et();return xt=function(i,o,s,a){a||(a={});var c=a.enumerable,l=void 0!==a.name?a.name:o;if(e(s)&&n(s,l,a),a.global)c?i[o]=s:r(o,s);else{try{a.unsafe?i[o]&&(c=!0):delete i[o]}catch(e){}c?i[o]=s:t.f(i,o,{value:s,enumerable:!1,configurable:!a.nonConfigurable,writable:!a.nonWritable})}return i},xt}var Yt,Kt,$t,Jt,Xt,qt,Zt,en,tn,nn,rn,on,sn,an,cn,ln,un,hn={};function dn(){if(Jt)return $t;Jt=1;var e=function(){if(Kt)return Yt;Kt=1;var e=Math.ceil,t=Math.floor;return Yt=Math.trunc||function(n){var r=+n;return(r>0?t:e)(r)},Yt}();return $t=function(t){var n=+t;return n!=n||0===n?0:e(n)}}function fn(){if(qt)return Xt;qt=1;var e=dn(),t=Math.max,n=Math.min;return Xt=function(r,i){var o=e(r);return o<0?t(o+i,0):n(o,i)}}function pn(){if(en)return Zt;en=1;var e=dn(),t=Math.min;return Zt=function(n){var r=e(n);return r>0?t(r,9007199254740991):0}}function _n(){if(nn)return tn;nn=1;var e=pn();return tn=function(t){return e(t.length)}}function En(){if(an)return sn;an=1;var e=le(),t=it(),n=pe(),r=function(){if(on)return rn;on=1;var e=pe(),t=fn(),n=_n(),r=function(r){return function(i,o,s){var a=e(i),c=n(a);if(0===c)return!r&&-1;var l,u=t(s,c);if(r&&o!=o){for(;c>u;)if((l=a[u++])!=l)return!0}else for(;c>u;u++)if((r||u in a)&&a[u]===o)return r||u||0;return!r&&-1}};return rn={includes:r(!0),indexOf:r(!1)}}().indexOf,i=zt(),o=e([].push);return sn=function(e,s){var a,c=n(e),l=0,u=[];for(a in c)!t(i,a)&&t(c,a)&&o(u,a);for(;s.length>l;)t(c,a=s[l++])&&(~r(u,a)||o(u,a));return u},sn}function vn(){return ln?cn:(ln=1,cn=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function mn(){if(un)return hn;un=1;var e=En(),t=vn().concat("length","prototype");return hn.f=Object.getOwnPropertyNames||function(n){return e(n,t)},hn}var gn,In,Ln,wn,Cn,yn,An,Nn,Sn,Tn,bn,On,Rn,kn,Pn,Mn,Dn,Gn,xn,Un,Wn,Fn,Vn,jn,zn,Bn,Hn,Qn,Yn,Kn,$n,Jn,Xn,qn,Zn,er,tr,nr,rr,ir,or,sr,ar={};function cr(){return gn||(gn=1,ar.f=Object.getOwnPropertySymbols),ar}function lr(){if(Cn)return wn;Cn=1;var e=it(),t=function(){if(Ln)return In;Ln=1;var e=ve(),t=le(),n=mn(),r=cr(),i=Lt(),o=t([].concat);return In=e("Reflect","ownKeys")||function(e){var t=n.f(i(e)),s=r.f;return s?o(t,s(e)):t}}(),n=ht(),r=wt();return wn=function(i,o,s){for(var a=t(o),c=r.f,l=n.f,u=0;u<a.length;u++){var h=a[u];e(i,h)||s&&e(s,h)||c(i,h,l(o,h))}},wn}function ur(){if(An)return yn;An=1;var e=_(),t=_e(),n=/#|\.prototype\./,r=function(n,r){var c=o[i(n)];return c===a||c!==s&&(t(r)?e(r):!!r)},i=r.normalize=function(e){return String(e).replace(n,".").toLowerCase()},o=r.data={},s=r.NATIVE="N",a=r.POLYFILL="P";return yn=r}function hr(){if(Sn)return Nn;Sn=1;var e=o(),t=ht().f,n=Ct(),r=Qt(),i=et(),s=lr(),a=ur();return Nn=function(o,c){var l,u,h,d,f,p=o.target,_=o.global,E=o.stat;if(l=_?e:E?e[p]||i(p,{}):e[p]&&e[p].prototype)for(u in c){if(d=c[u],h=o.dontCallGetSet?(f=t(l,u))&&f.value:l[u],!a(_?u:p+(E?".":"#")+u,o.forced)&&void 0!==h){if(typeof d==typeof h)continue;s(d,h)}(o.sham||h&&h.sham)&&n(d,"sham",!0),r(l,u,d,o)}}}function dr(){if(bn)return Tn;bn=1;var e=v(),t=Function.prototype,n=t.apply,r=t.call;return Tn="object"==typeof Reflect&&Reflect.apply||(e?r.bind(n):function(){return r.apply(n,arguments)}),Tn}function fr(){if(Rn)return On;Rn=1;var e=le(),t=Ae();return On=function(n,r,i){try{return e(t(Object.getOwnPropertyDescriptor(n,r)[i]))}catch(e){}}}function pr(){if(Pn)return kn;Pn=1;var e=Ee();return kn=function(t){return e(t)||null===t}}function _r(){if(Dn)return Mn;Dn=1;var e=pr(),t=String,n=TypeError;return Mn=function(r){if(e(r))return r;throw new n("Can't set "+t(r)+" as a prototype")}}function Er(){if(xn)return Gn;xn=1;var e=fr(),t=Ee(),n=fe(),r=_r();return Gn=Object.setPrototypeOf||("__proto__"in{}?function(){var i,o=!1,s={};try{(i=e(Object.prototype,"__proto__","set"))(s,[]),o=s instanceof Array}catch(e){}return function(e,s){return n(e),r(s),t(e)?(o?i(e,s):e.__proto__=s,e):e}}():void 0),Gn}function vr(){if(Wn)return Un;Wn=1;var e=wt().f;return Un=function(t,n,r){r in t||e(t,r,{configurable:!0,get:function(){return n[r]},set:function(e){n[r]=e}})}}function mr(){if(Vn)return Fn;Vn=1;var e=_e(),t=Ee(),n=Er();return Fn=function(r,i,o){var s,a;return n&&e(s=i.constructor)&&s!==o&&t(a=s.prototype)&&a!==o.prototype&&n(r,a),r}}function gr(){if(Hn)return Bn;Hn=1;var e=function(){if(zn)return jn;zn=1;var e={};return e[st()("toStringTag")]="z",jn="[object z]"===String(e)}(),t=_e(),n=ue(),r=st()("toStringTag"),i=Object,o="Arguments"===n(function(){return arguments}());return Bn=e?n:function(e){var s,a,c;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(a=function(e,t){try{return e[t]}catch(e){}}(s=i(e),r))?a:o?n(s):"Object"===(c=n(s))&&t(s.callee)?"Arguments":c},Bn}function Ir(){if(Yn)return Qn;Yn=1;var e=gr(),t=String;return Qn=function(n){if("Symbol"===e(n))throw new TypeError("Cannot convert a Symbol value to a string");return t(n)}}function Lr(){if($n)return Kn;$n=1;var e=Ir();return Kn=function(t,n){return void 0===t?arguments.length<2?"":n:e(t)},Kn}function wr(){if(Xn)return Jn;Xn=1;var e=Ee(),t=Ct();return Jn=function(n,r){e(r)&&"cause"in r&&t(n,"cause",r.cause)},Jn}function Cr(){if(Zn)return qn;Zn=1;var e=le(),t=Error,n=e("".replace),r=String(new t("zxcasd").stack),i=/\n\s*at [^:]*:[^\n]*/,o=i.test(r);return qn=function(e,r){if(o&&"string"==typeof e&&!t.prepareStackTrace)for(;r--;)e=n(e,i,"");return e}}function yr(){if(tr)return er;tr=1;var e=_(),t=ce();return er=!e(function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",t(1,7)),7!==e.stack)})}function Ar(){if(or)return ir;or=1;var e=ve(),t=it(),n=Ct(),r=me(),i=Er(),o=lr(),s=vr(),a=mr(),c=Lr(),l=wr(),u=function(){if(rr)return nr;rr=1;var e=Ct(),t=Cr(),n=yr(),r=Error.captureStackTrace;return nr=function(i,o,s,a){n&&(r?r(i,o):e(i,"stack",t(s,a)))},nr}(),h=E(),d=Ze();return ir=function(f,p,_,E){var v="stackTraceLimit",m=E?2:1,g=f.split("."),I=g[g.length-1],L=e.apply(null,g);if(L){var w=L.prototype;if(!d&&t(w,"cause")&&delete w.cause,!_)return L;var C=e("Error"),y=p(function(e,t){var i=c(E?t:e,void 0),o=E?new L(e):new L;return void 0!==i&&n(o,"message",i),u(o,y,o.stack,2),this&&r(w,this)&&a(o,this,y),arguments.length>m&&l(o,arguments[m]),o});if(y.prototype=w,"Error"!==I?i?i(y,C):o(y,C,{name:!0}):h&&v in L&&(s(y,L,v),s(y,L,"prepareStackTrace")),o(y,L),!d)try{w.name!==I&&n(w,"name",I),w.constructor=y}catch(e){}return y}},ir}function Nr(e,t){this.v=e,this.k=t}function Sr(e,t,n){if("function"==typeof e?e===t:e.has(t))return arguments.length<3?t:n;throw new TypeError("Private element is not present on this object")}function Tr(e){var t={},n=!1;function r(t,r){return n=!0,r=new Promise(function(n){n(e[t](r))}),{done:!1,value:new Nr(r,1)}}return t["undefined"!=typeof Symbol&&Symbol.iterator||"@@iterator"]=function(){return this},t.next=function(e){return n?(n=!1,e):r("next",e)},"function"==typeof e.throw&&(t.throw=function(e){if(n)throw n=!1,e;return r("throw",e)}),"function"==typeof e.return&&(t.return=function(e){return n?(n=!1,e):r("return",e)}),t}function br(e){var t,n,r,i=2;for("undefined"!=typeof Symbol&&(n=Symbol.asyncIterator,r=Symbol.iterator);i--;){if(n&&null!=(t=e[n]))return t.call(e);if(r&&null!=(t=e[r]))return new Or(t.call(e));n="@@asyncIterator",r="@@iterator"}throw new TypeError("Object is not async iterable")}function Or(e){function t(e){if(Object(e)!==e)return Promise.reject(new TypeError(e+" is not an object."));var t=e.done;return Promise.resolve(e.value).then(function(e){return{value:e,done:t}})}return Or=function(e){this.s=e,this.n=e.next},Or.prototype={s:null,n:null,next:function(){return t(this.n.apply(this.s,arguments))},return:function(e){var n=this.s.return;return void 0===n?Promise.resolve({value:e,done:!0}):t(n.apply(this.s,arguments))},throw:function(e){var n=this.s.return;return void 0===n?Promise.reject(e):t(n.apply(this.s,arguments))}},new Or(e)}function Rr(e){return new Nr(e,0)}function kr(e,t){if(t.has(e))throw new TypeError("Cannot initialize the same private elements twice on an object")}function Pr(e,t){return e.get(Sr(e,t))}function Mr(e,t,n){kr(e,t),t.set(e,n)}function Dr(e,t,n){return e.set(Sr(e,t),n),n}function Gr(e,t,n){return n(Sr(e,t))}function xr(e,t){kr(e,t),t.add(e)}function Ur(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t);if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e,"string");return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function Fr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wr(Object(n),!0).forEach(function(t){Ur(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wr(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function Vr(e,t){if(null==e)return{};var n,r,i=function(e,t){if(null==e)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(-1!==t.indexOf(r))continue;n[r]=e[r]}return n}(e,t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(r=0;r<o.length;r++)n=o[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function jr(e,t){return jr=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},jr(e,t)}function zr(e,t,n){t||(t=[]);var r=t.length++;return Object.defineProperty({},"_",{set:function(i){t[r]=i,e.apply(n,t)}})}function Br(e){return function(){return new Hr(e.apply(this,arguments))}}function Hr(e){var t,n;function r(t,n){try{var o=e[t](n),s=o.value,a=s instanceof Nr;Promise.resolve(a?s.v:s).then(function(n){if(a){var c="return"===t?"return":"next";if(!s.k||n.done)return r(c,n);n=e[c](n).value}i(o.done?"return":"normal",n)},function(e){r("throw",e)})}catch(e){i("throw",e)}}function i(e,i){switch(e){case"return":t.resolve({value:i,done:!0});break;case"throw":t.reject(i);break;default:t.resolve({value:i,done:!1})}(t=t.next)?r(t.key,t.arg):n=null}this._invoke=function(e,i){return new Promise(function(o,s){var a={key:e,arg:i,resolve:o,reject:s,next:null};n?n=n.next=a:(t=n=a,r(e,i))})},"function"!=typeof e.return&&(this.return=void 0)}function Qr(){Qr=function(e,t){return new n(e,void 0,t)};var e=RegExp.prototype,t=new WeakMap;function n(e,r,i){var o=RegExp(e,r);return t.set(o,i||t.get(e)),jr(o,n.prototype)}function r(e,n){var r=t.get(n);return Object.keys(r).reduce(function(t,n){var i=r[n];if("number"==typeof i)t[n]=e[i];else{for(var o=0;void 0===e[i[o]]&&o+1<i.length;)o++;t[n]=e[i[o]]}return t},Object.create(null))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jr(e,t)}(n,RegExp),n.prototype.exec=function(t){var n=e.exec.call(this,t);if(n){n.groups=r(n,this);var i=n.indices;i&&(i.groups=r(i,this))}return n},n.prototype[Symbol.replace]=function(n,i){if("string"==typeof i){var o=t.get(this);return e[Symbol.replace].call(this,n,i.replace(/\$<([^>]+)(>|$)/g,function(e,t,n){if(""===n)return e;var r=o[t];return Array.isArray(r)?"$"+r.join("$"):"number"==typeof r?"$"+r:""}))}if("function"==typeof i){var s=this;return e[Symbol.replace].call(this,n,function(){var e=arguments;return"object"!=typeof e[e.length-1]&&(e=[].slice.call(e)).push(r(e,s)),i.apply(this,e)})}return e[Symbol.replace].call(this,n,i)},Qr.apply(this,arguments)}!function(){if(sr)return i;sr=1;var e=hr(),t=o(),n=dr(),r=Ar(),s="WebAssembly",a=t[s],c=7!==new Error("e",{cause:7}).cause,l=function(t,n){var i={};i[t]=r(t,n,c),e({global:!0,constructor:!0,arity:1,forced:c},i)},u=function(t,n){if(a&&a[t]){var i={};i[t]=r(s+"."+t,n,c),e({target:s,stat:!0,constructor:!0,arity:1,forced:c},i)}};l("Error",function(e){return function(t){return n(e,this,arguments)}}),l("EvalError",function(e){return function(t){return n(e,this,arguments)}}),l("RangeError",function(e){return function(t){return n(e,this,arguments)}}),l("ReferenceError",function(e){return function(t){return n(e,this,arguments)}}),l("SyntaxError",function(e){return function(t){return n(e,this,arguments)}}),l("TypeError",function(e){return function(t){return n(e,this,arguments)}}),l("URIError",function(e){return function(t){return n(e,this,arguments)}}),u("CompileError",function(e){return function(t){return n(e,this,arguments)}}),u("LinkError",function(e){return function(t){return n(e,this,arguments)}}),u("RuntimeError",function(e){return function(t){return n(e,this,arguments)}})}(),Hr.prototype["function"==typeof Symbol&&Symbol.asyncIterator||"@@asyncIterator"]=function(){return this},Hr.prototype.next=function(e){return this._invoke("next",e)},Hr.prototype.throw=function(e){return this._invoke("throw",e)},Hr.prototype.return=function(e){return this._invoke("return",e)};var Yr,Kr,$r,Jr,Xr,qr={};function Zr(){if(Kr)return Yr;Kr=1;var e=Ht(),t=wt();return Yr=function(n,r,i){return i.get&&e(i.get,r,{getter:!0}),i.set&&e(i.set,r,{setter:!0}),t.f(n,r,i)}}function ei(){if(Xr)return Jr;Xr=1;var e=o();return Jr=e}!function(){if($r)return qr;$r=1;var e=hr(),t=E(),n=o(),r=le(),i=it(),s=_e(),a=me(),c=Ir(),l=Zr(),u=lr(),h=n.Symbol,d=h&&h.prototype;if(t&&s(h)&&(!("description"in d)||void 0!==h().description)){var f={},p=function(){var e=arguments.length<1||void 0===arguments[0]?void 0:c(arguments[0]),t=a(d,this)?new h(e):void 0===e?h():h(e);return""===e&&(f[t]=!0),t};u(p,h),p.prototype=d,d.constructor=p;var _="Symbol(description detection)"===String(h("description detection")),v=r(d.valueOf),m=r(d.toString),g=/^Symbol\((.*)\)[^)]+$/,I=r("".replace),L=r("".slice);l(d,"description",{configurable:!0,get:function(){var e=v(this);if(i(f,e))return"";var t=m(e),n=_?L(t,7,-1):I(t,g,"$1");return""===n?void 0:n}}),e({global:!0,constructor:!0,forced:!0},{Symbol:p})}}();var ti,ni,ri,ii,oi={};function si(){if(ri)return ni;ri=1;var e=ei(),t=it(),n=function(){if(ti)return oi;ti=1;var e=st();return oi.f=e,oi}(),r=wt().f;return ni=function(i){var o=e.Symbol||(e.Symbol={});t(o,i)||r(o,i,{value:n.f(i)})}}ii||(ii=1,si()("asyncIterator"));var ai,ci,li,ui,hi,di,fi,pi={};function _i(){if(ci)return ai;ci=1;var e=ue();return ai=Array.isArray||function(t){return"Array"===e(t)}}function Ei(){if(ui)return li;ui=1;var e=E(),t=_i(),n=TypeError,r=Object.getOwnPropertyDescriptor,i=e&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(e){return e instanceof TypeError}}();return li=i?function(e,i){if(t(e)&&!r(e,"length").writable)throw new n("Cannot set read only .length");return e.length=i}:function(e,t){return e.length=t},li}function vi(){if(di)return hi;di=1;var e=TypeError;return hi=function(t){if(t>9007199254740991)throw e("Maximum allowed index exceeded");return t}}!function(){if(fi)return pi;fi=1;var e=hr(),t=rt(),n=_n(),r=Ei(),i=vi();e({target:"Array",proto:!0,arity:1,forced:_()(function(){return 4294967297!==[].push.call({length:4294967296},1)})||!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(e){return e instanceof TypeError}}()},{push:function(e){var o=t(this),s=n(o),a=arguments.length;i(s+a);for(var c=0;c<a;c++)o[s]=arguments[c],s++;return r(o,s),s}})}();var mi,gi={};!function(){if(mi)return gi;mi=1;var e=hr(),t=le(),n=_i(),r=t([].reverse),i=[1,2];e({target:"Array",proto:!0,forced:String(i)===String(i.reverse())},{reverse:function(){return n(this)&&(this.length=this.length),r(this)}})}();var Ii,Li,wi,Ci,yi,Ai,Ni,Si,Ti,bi,Oi,Ri,ki,Pi,Mi,Di={};function Gi(){if(Li)return Ii;Li=1;var e=ye(),t=TypeError;return Ii=function(n,r){if(!delete n[r])throw new t("Cannot delete property "+e(r)+" of "+e(n))},Ii}function xi(){if(Ci)return wi;Ci=1;var e=le();return wi=e([].slice)}function Ui(){if(Ai)return yi;Ai=1;var e=xi(),t=Math.floor,n=function(r,i){var o=r.length;if(o<8)for(var s,a,c=1;c<o;){for(a=c,s=r[c];a&&i(r[a-1],s)>0;)r[a]=r[--a];a!==c++&&(r[a]=s)}else for(var l=t(o/2),u=n(e(r,0,l),i),h=n(e(r,l),i),d=u.length,f=h.length,p=0,_=0;p<d||_<f;)r[p+_]=p<d&&_<f?i(u[p],h[_])<=0?u[p++]:h[_++]:p<d?u[p++]:h[_++];return r};return yi=n}function Wi(){if(Si)return Ni;Si=1;var e=_();return Ni=function(t,n){var r=[][t];return!!r&&e(function(){r.call(null,n||function(){return 1},1)})}}function Fi(){if(bi)return Ti;bi=1;var e=ge().match(/firefox\/(\d+)/i);return Ti=!!e&&+e[1]}function Vi(){if(Ri)return Oi;Ri=1;var e=ge();return Oi=/MSIE|Trident/.test(e)}function ji(){if(Pi)return ki;Pi=1;var e=ge().match(/AppleWebKit\/(\d+)\./);return ki=!!e&&+e[1]}!function(){if(Mi)return Di;Mi=1;var e=hr(),t=le(),n=Ae(),r=rt(),i=_n(),o=Gi(),s=Ir(),a=_(),c=Ui(),l=Wi(),u=Fi(),h=Vi(),d=Ie(),f=ji(),p=[],E=t(p.sort),v=t(p.push),m=a(function(){p.sort(void 0)}),g=a(function(){p.sort(null)}),I=l("sort"),L=!a(function(){if(d)return d<70;if(!(u&&u>3)){if(h)return!0;if(f)return f<603;var e,t,n,r,i="";for(e=65;e<76;e++){switch(t=String.fromCharCode(e),e){case 66:case 69:case 70:case 72:n=3;break;case 68:case 71:n=4;break;default:n=2}for(r=0;r<47;r++)p.push({k:t+r,v:n})}for(p.sort(function(e,t){return t.v-e.v}),r=0;r<p.length;r++)t=p[r].k.charAt(0),i.charAt(i.length-1)!==t&&(i+=t);return"DGBEFHACIJK"!==i}});e({target:"Array",proto:!0,forced:m||!g||!I||!L},{sort:function(e){void 0!==e&&n(e);var t=r(this);if(L)return void 0===e?E(t):E(t,e);var a,l,u=[],h=i(t);for(l=0;l<h;l++)l in t&&v(u,t[l]);for(c(u,function(e){return function(t,n){return void 0===n?-1:void 0===t?1:void 0!==e?+e(t,n)||0:s(t)>s(n)?1:-1}}(e)),a=i(u),l=0;l<a;)t[l]=u[l++];for(;l<h;)o(t,l++);return t}})}();var zi,Bi={};!function(){if(zi)return Bi;zi=1;var e=hr(),t=rt(),n=_n(),r=Ei(),i=Gi(),o=vi();e({target:"Array",proto:!0,arity:1,forced:1!==[].unshift(0)||!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(e){return e instanceof TypeError}}()},{unshift:function(e){var s=t(this),a=n(s),c=arguments.length;if(c){o(a+c);for(var l=a;l--;){var u=l+c;l in s?s[u]=s[l]:i(s,u)}for(var h=0;h<c;h++)s[h]=arguments[h]}return r(s,a+c)}})}();var Hi,Qi,Yi,Ki,$i,Ji,Xi,qi,Zi,eo,to,no,ro,io,oo,so,ao,co,lo,uo,ho,fo,po,_o,Eo,vo,mo,go,Io,Lo,wo,Co={};function yo(){return Qi?Hi:(Qi=1,Hi="undefined"!=typeof ArrayBuffer&&"undefined"!=typeof DataView)}function Ao(){if(Ki)return Yi;Ki=1;var e=Qt();return Yi=function(t,n,r){for(var i in n)e(t,i,n[i],r);return t}}function No(){if(Ji)return $i;Ji=1;var e=me(),t=TypeError;return $i=function(n,r){if(e(r,n))return n;throw new t("Incorrect invocation")}}function So(){if(qi)return Xi;qi=1;var e=dn(),t=pn(),n=RangeError;return Xi=function(r){if(void 0===r)return 0;var i=e(r),o=t(i);if(i!==o)throw new n("Wrong length or index");return o}}function To(){if(co)return ao;co=1;var e=Array,t=Math.abs,n=Math.pow,r=Math.floor,i=Math.log,o=Math.LN2;return ao={pack:function(s,a,c){var l,u,h,d=e(c),f=8*c-a-1,p=(1<<f)-1,_=p>>1,E=23===a?n(2,-24)-n(2,-77):0,v=s<0||0===s&&1/s<0?1:0,m=0;for((s=t(s))!=s||s===1/0?(u=s!=s?1:0,l=p):(l=r(i(s)/o),s*(h=n(2,-l))<1&&(l--,h*=2),(s+=l+_>=1?E/h:E*n(2,1-_))*h>=2&&(l++,h/=2),l+_>=p?(u=0,l=p):l+_>=1?(u=(s*h-1)*n(2,a),l+=_):(u=s*n(2,_-1)*n(2,a),l=0));a>=8;)d[m++]=255&u,u/=256,a-=8;for(l=l<<a|u,f+=a;f>0;)d[m++]=255&l,l/=256,f-=8;return d[m-1]|=128*v,d},unpack:function(e,t){var r,i=e.length,o=8*i-t-1,s=(1<<o)-1,a=s>>1,c=o-7,l=i-1,u=e[l--],h=127&u;for(u>>=7;c>0;)h=256*h+e[l--],c-=8;for(r=h&(1<<-c)-1,h>>=-c,c+=t;c>0;)r=256*r+e[l--],c-=8;if(0===h)h=1-a;else{if(h===s)return r?NaN:u?-1/0:1/0;r+=n(2,t),h-=a}return(u?-1:1)*r*n(2,h-t)}},ao}function bo(){if(fo)return ho;fo=1;var e=it(),t=_e(),n=rt(),r=jt(),i=function(){if(uo)return lo;uo=1;var e=_();return lo=!e(function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype})}(),o=r("IE_PROTO"),s=Object,a=s.prototype;return ho=i?s.getPrototypeOf:function(r){var i=n(r);if(e(i,o))return i[o];var c=i.constructor;return t(c)&&i instanceof c?c.prototype:i instanceof s?a:null},ho}function Oo(){if(_o)return po;_o=1;var e=rt(),t=fn(),n=_n();return po=function(r){for(var i=e(this),o=n(i),s=arguments.length,a=t(s>1?arguments[1]:void 0,o),c=s>2?arguments[2]:void 0,l=void 0===c?o:t(c,o);l>a;)i[a++]=r;return i},po}function Ro(){if(vo)return Eo;vo=1;var e=wt().f,t=it(),n=st()("toStringTag");return Eo=function(r,i,o){r&&!o&&(r=r.prototype),r&&!t(r,n)&&e(r,n,{configurable:!0,value:i})}}function ko(){if(go)return mo;go=1;var e=o(),t=le(),n=E(),r=yo(),i=Ft(),s=Ct(),a=Zr(),c=Ao(),l=_(),u=No(),h=dn(),d=pn(),f=So(),p=function(){if(so)return oo;so=1;var e=function(){if(io)return ro;io=1;var e=(eo||(eo=1,Zi=Math.sign||function(e){var t=+e;return 0===t||t!=t?t:t<0?-1:1}),Zi),t=function(){if(no)return to;no=1;var e=4503599627370496;return to=function(t){return t+e-e},to}(),n=Math.abs;return ro=function(r,i,o,s){var a=+r,c=n(a),l=e(a);if(c<s)return l*t(c/s/i)*s*i;var u=(1+i/2220446049250313e-31)*c,h=u-(u-c);return h>o||h!=h?l*(1/0):l*h},ro}();return oo=Math.fround||function(t){return e(t,1.1920928955078125e-7,34028234663852886e22,11754943508222875e-54)},oo}(),v=To(),m=bo(),g=Er(),I=Oo(),L=xi(),w=mr(),C=lr(),y=Ro(),A=Bt(),N=i.PROPER,S=i.CONFIGURABLE,T="ArrayBuffer",b="DataView",O="prototype",R="Wrong index",k=A.getterFor(T),P=A.getterFor(b),M=A.set,D=e[T],G=D,x=G&&G[O],U=e[b],W=U&&U[O],F=Object.prototype,V=e.Array,j=e.RangeError,z=t(I),B=t([].reverse),H=v.pack,Q=v.unpack,Y=function(e){return[255&e]},K=function(e){return[255&e,e>>8&255]},$=function(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]},J=function(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]},X=function(e){return H(p(e),23,4)},q=function(e){return H(e,52,8)},Z=function(e,t,n){a(e[O],t,{configurable:!0,get:function(){return n(this)[t]}})},ee=function(e,t,n,r){var i=P(e),o=f(n),s=!!r;if(o+t>i.byteLength)throw new j(R);var a=i.bytes,c=o+i.byteOffset,l=L(a,c,c+t);return s?l:B(l)},te=function(e,t,n,r,i,o){var s=P(e),a=f(n),c=r(+i),l=!!o;if(a+t>s.byteLength)throw new j(R);for(var u=s.bytes,h=a+s.byteOffset,d=0;d<t;d++)u[h+d]=c[l?d:t-d-1]};if(r){var ne=N&&D.name!==T;l(function(){D(1)})&&l(function(){new D(-1)})&&!l(function(){return new D,new D(1.5),new D(NaN),1!==D.length||ne&&!S})?ne&&S&&s(D,"name",T):((G=function(e){return u(this,x),w(new D(f(e)),this,G)})[O]=x,x.constructor=G,C(G,D)),g&&m(W)!==F&&g(W,F);var re=new U(new G(2)),ie=t(W.setInt8);re.setInt8(0,2147483648),re.setInt8(1,2147483649),!re.getInt8(0)&&re.getInt8(1)||c(W,{setInt8:function(e,t){ie(this,e,t<<24>>24)},setUint8:function(e,t){ie(this,e,t<<24>>24)}},{unsafe:!0})}else x=(G=function(e){u(this,x);var t=f(e);M(this,{type:T,bytes:z(V(t),0),byteLength:t}),n||(this.byteLength=t,this.detached=!1)})[O],U=function(e,t,r){u(this,W),u(e,x);var i=k(e),o=i.byteLength,s=h(t);if(s<0||s>o)throw new j("Wrong offset");if(s+(r=void 0===r?o-s:d(r))>o)throw new j("Wrong length");M(this,{type:b,buffer:e,byteLength:r,byteOffset:s,bytes:i.bytes}),n||(this.buffer=e,this.byteLength=r,this.byteOffset=s)},W=U[O],n&&(Z(G,"byteLength",k),Z(U,"buffer",P),Z(U,"byteLength",P),Z(U,"byteOffset",P)),c(W,{getInt8:function(e){return ee(this,1,e)[0]<<24>>24},getUint8:function(e){return ee(this,1,e)[0]},getInt16:function(e){var t=ee(this,2,e,arguments.length>1&&arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=ee(this,2,e,arguments.length>1&&arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return J(ee(this,4,e,arguments.length>1&&arguments[1]))},getUint32:function(e){return J(ee(this,4,e,arguments.length>1&&arguments[1]))>>>0},getFloat32:function(e){return Q(ee(this,4,e,arguments.length>1&&arguments[1]),23)},getFloat64:function(e){return Q(ee(this,8,e,arguments.length>1&&arguments[1]),52)},setInt8:function(e,t){te(this,1,e,Y,t)},setUint8:function(e,t){te(this,1,e,Y,t)},setInt16:function(e,t){te(this,2,e,K,t,arguments.length>2&&arguments[2])},setUint16:function(e,t){te(this,2,e,K,t,arguments.length>2&&arguments[2])},setInt32:function(e,t){te(this,4,e,$,t,arguments.length>2&&arguments[2])},setUint32:function(e,t){te(this,4,e,$,t,arguments.length>2&&arguments[2])},setFloat32:function(e,t){te(this,4,e,X,t,arguments.length>2&&arguments[2])},setFloat64:function(e,t){te(this,8,e,q,t,arguments.length>2&&arguments[2])}});return y(G,T),y(U,b),mo={ArrayBuffer:G,DataView:U}}function Po(){if(Lo)return Io;Lo=1;var e=ve(),t=Zr(),n=st(),r=E(),i=n("species");return Io=function(n){var o=e(n);r&&o&&!o[i]&&t(o,i,{configurable:!0,get:function(){return this}})}}!function(){if(wo)return Co;wo=1;var e=hr(),t=o(),n=ko(),r=Po(),i="ArrayBuffer",s=n[i];e({global:!0,constructor:!0,forced:t[i]!==s},{ArrayBuffer:s}),r(i)}();var Mo,Do,Go,xo={};function Uo(){if(Do)return Mo;Do=1;var e=ue(),t=le();return Mo=function(n){if("Function"===e(n))return t(n)}}!function(){if(Go)return xo;Go=1;var e=hr(),t=Uo(),n=_(),r=ko(),i=Lt(),o=fn(),s=pn(),a=r.ArrayBuffer,c=r.DataView,l=c.prototype,u=t(a.prototype.slice),h=t(l.getUint8),d=t(l.setUint8);e({target:"ArrayBuffer",proto:!0,unsafe:!0,forced:n(function(){return!new a(2).slice(1,void 0).byteLength})},{slice:function(e,t){if(u&&void 0===t)return u(i(this),e);for(var n=i(this).byteLength,r=o(e,n),l=o(void 0===t?n:t,n),f=new a(s(l-r)),p=new c(this),_=new c(f),E=0;r<l;)d(_,E++,h(p,r++));return f}})}();var Wo,Fo,Vo,jo,zo,Bo={};function Ho(){if(Fo)return Wo;Fo=1;var e=o(),t=fr(),n=ue(),r=e.ArrayBuffer,i=e.TypeError;return Wo=r&&t(r.prototype,"byteLength","get")||function(e){if("ArrayBuffer"!==n(e))throw new i("ArrayBuffer expected");return e.byteLength},Wo}function Qo(){if(jo)return Vo;jo=1;var e=o(),t=yo(),n=Ho(),r=e.DataView;return Vo=function(e){if(!t||0!==n(e))return!1;try{return new r(e),!1}catch(e){return!0}},Vo}!function(){if(zo)return Bo;zo=1;var e=E(),t=Zr(),n=Qo(),r=ArrayBuffer.prototype;e&&!("detached"in r)&&t(r,"detached",{configurable:!0,get:function(){return n(this)}})}();var Yo,Ko,$o,Jo,Xo,qo,Zo,es,ts,ns,rs,is,os,ss,as,cs={};function ls(){if(Ko)return Yo;Ko=1;var e=Qo(),t=TypeError;return Yo=function(n){if(e(n))throw new t("ArrayBuffer is detached");return n}}function us(){if(Jo)return $o;Jo=1;var e=o(),t=ge(),n=ue(),r=function(e){return t.slice(0,e.length)===e};return $o=r("Bun/")?"BUN":r("Cloudflare-Workers")?"CLOUDFLARE":r("Deno/")?"DENO":r("Node.js/")?"NODE":e.Bun&&"string"==typeof Bun.version?"BUN":e.Deno&&"object"==typeof Deno.version?"DENO":"process"===n(e.process)?"NODE":e.window&&e.document?"BROWSER":"REST"}function hs(){if(qo)return Xo;qo=1;var e=us();return Xo="NODE"===e}function ds(){if(es)return Zo;es=1;var e=o(),t=hs();return Zo=function(n){if(t){try{return e.process.getBuiltinModule(n)}catch(e){}try{return Function('return require("'+n+'")')()}catch(e){}}}}function fs(){if(ns)return ts;ns=1;var e=o(),t=_(),n=Ie(),r=us(),i=e.structuredClone;return ts=!!i&&!t(function(){if("DENO"===r&&n>92||"NODE"===r&&n>94||"BROWSER"===r&&n>97)return!1;var e=new ArrayBuffer(8),t=i(e,{transfer:[e]});return 0!==e.byteLength||8!==t.byteLength}),ts}function ps(){if(is)return rs;is=1;var e,t,n,r,i=o(),s=ds(),a=fs(),c=i.structuredClone,l=i.ArrayBuffer,u=i.MessageChannel,h=!1;if(a)h=function(e){c(e,{transfer:[e]})};else if(l)try{u||(e=s("worker_threads"))&&(u=e.MessageChannel),u&&(t=new u,n=new l(2),r=function(e){t.port1.postMessage(null,[e])},2===n.byteLength&&(r(n),0===n.byteLength&&(h=r)))}catch(e){}return rs=h}function _s(){if(ss)return os;ss=1;var e=o(),t=le(),n=fr(),r=So(),i=ls(),s=Ho(),a=ps(),c=fs(),l=e.structuredClone,u=e.ArrayBuffer,h=e.DataView,d=Math.min,f=u.prototype,p=h.prototype,_=t(f.slice),E=n(f,"resizable","get"),v=n(f,"maxByteLength","get"),m=t(p.getInt8),g=t(p.setInt8);return os=(c||a)&&function(e,t,n){var o,f=s(e),p=void 0===t?f:r(t),I=!E||!E(e);if(i(e),c&&(e=l(e,{transfer:[e]}),f===p&&(n||I)))return e;if(f>=p&&(!n||I))o=_(e,0,p);else{var L=n&&!I&&v?{maxByteLength:v(e)}:void 0;o=new u(p,L);for(var w=new h(e),C=new h(o),y=d(p,f),A=0;A<y;A++)g(C,A,m(w,A))}return c||a(e),o},os}!function(){if(as)return cs;as=1;var e=hr(),t=_s();t&&e({target:"ArrayBuffer",proto:!0},{transfer:function(){return t(this,arguments.length?arguments[0]:void 0,!0)}})}();var Es,vs={};!function(){if(Es)return vs;Es=1;var e=hr(),t=_s();t&&e({target:"ArrayBuffer",proto:!0},{transferToFixedLength:function(){return t(this,arguments.length?arguments[0]:void 0,!1)}})}();var ms,gs={};!function(){if(ms)return gs;ms=1;var e=hr(),t=o();e({global:!0,forced:t.globalThis!==t},{globalThis:t})}();var Is,Ls,ws={};function Cs(){if(Ls)return Is;Ls=1;var e=E(),t=wt(),n=ce();return Is=function(r,i,o){e?t.f(r,i,n(0,o)):r[i]=o}}var ys,As,Ns,Ss,Ts,bs,Os,Rs,ks,Ps,Ms={};function Ds(){if(As)return ys;As=1;var e=En(),t=vn();return ys=Object.keys||function(n){return e(n,t)},ys}function Gs(){if(Ts)return Ss;Ts=1;var e=ve();return Ss=e("document","documentElement")}function xs(){if(Os)return bs;Os=1;var e,t=Lt(),n=function(){if(Ns)return Ms;Ns=1;var e=E(),t=It(),n=wt(),r=Lt(),i=pe(),o=Ds();return Ms.f=e&&!t?Object.defineProperties:function(e,t){r(e);for(var s,a=i(t),c=o(t),l=c.length,u=0;l>u;)n.f(e,s=c[u++],a[s]);return e},Ms}(),r=vn(),i=zt(),o=Gs(),s=lt(),a=jt(),c="prototype",l="script",u=a("IE_PROTO"),h=function(){},d=function(e){return"<"+l+">"+e+"</"+l+">"},f=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},p=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}p="undefined"!=typeof document?document.domain&&e?f(e):function(){var e,t=s("iframe"),n="java"+l+":";return t.style.display="none",o.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F}():f(e);for(var t=r.length;t--;)delete p[c][r[t]];return p()};return i[u]=!0,bs=Object.create||function(e,r){var i;return null!==e?(h[c]=t(e),i=new h,h[c]=null,i[u]=e):i=p(),void 0===r?i:n.f(i,r)},bs}function Us(){if(ks)return Rs;ks=1;var e,t,n,r=_(),i=_e(),o=Ee(),s=xs(),a=bo(),c=Qt(),l=st(),u=Ze(),h=l("iterator"),d=!1;return[].keys&&("next"in(n=[].keys())?(t=a(a(n)))!==Object.prototype&&(e=t):d=!0),!o(e)||r(function(){var t={};return e[h].call(t)!==t})?e={}:u&&(e=s(e)),i(e[h])||c(e,h,function(){return this}),Rs={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:d}}!function(){if(Ps)return ws;Ps=1;var e=hr(),t=o(),n=No(),r=Lt(),i=_e(),s=bo(),a=Zr(),c=Cs(),l=_(),u=it(),h=st(),d=Us().IteratorPrototype,f=E(),p=Ze(),v="constructor",m="Iterator",g=h("toStringTag"),I=TypeError,L=t[m],w=p||!i(L)||L.prototype!==d||!l(function(){L({})}),C=function(){if(n(this,d),s(this)===d)throw new I("Abstract class Iterator not directly constructable")},y=function(e,t){f?a(d,e,{configurable:!0,get:function(){return t},set:function(t){if(r(this),this===d)throw new I("You can't redefine this property");u(this,e)?this[e]=t:c(this,e,t)}}):d[e]=t};u(d,g)||y(g,m),!w&&u(d,v)&&d[v]!==Object||y(v,C),C.prototype=d,e({global:!0,constructor:!0,forced:w},{Iterator:C})}();var Ws,Fs,Vs,js,zs,Bs,Hs,Qs,Ys,Ks,$s,Js,Xs,qs,Zs,ea,ta,na,ra,ia={};function oa(){if(Fs)return Ws;Fs=1;var e=Uo(),t=Ae(),n=v(),r=e(e.bind);return Ws=function(e,i){return t(e),void 0===i?e:n?r(e,i):function(){return e.apply(i,arguments)}},Ws}function sa(){return js?Vs:(js=1,Vs={})}function aa(){if(Bs)return zs;Bs=1;var e=st(),t=sa(),n=e("iterator"),r=Array.prototype;return zs=function(e){return void 0!==e&&(t.Array===e||r[n]===e)}}function ca(){if(Qs)return Hs;Qs=1;var e=gr(),t=Ne(),n=de(),r=sa(),i=st()("iterator");return Hs=function(o){if(!n(o))return t(o,i)||t(o,"@@iterator")||r[e(o)]}}function la(){if(Ks)return Ys;Ks=1;var e=m(),t=Ae(),n=Lt(),r=ye(),i=ca(),o=TypeError;return Ys=function(s,a){var c=arguments.length<2?i(s):a;if(t(c))return n(e(c,s));throw new o(r(s)+" is not iterable")},Ys}function ua(){if(Js)return $s;Js=1;var e=m(),t=Lt(),n=Ne();return $s=function(r,i,o){var s,a;t(r);try{if(!(s=n(r,"return"))){if("throw"===i)throw o;return o}s=e(s,r)}catch(e){a=!0,s=e}if("throw"===i)throw o;if(a)throw s;return t(s),o}}function ha(){if(qs)return Xs;qs=1;var e=oa(),t=m(),n=Lt(),r=ye(),i=aa(),o=_n(),s=me(),a=la(),c=ca(),l=ua(),u=TypeError,h=function(e,t){this.stopped=e,this.result=t},d=h.prototype;return Xs=function(f,p,_){var E,v,m,g,I,L,w,C=_&&_.that,y=!(!_||!_.AS_ENTRIES),A=!(!_||!_.IS_RECORD),N=!(!_||!_.IS_ITERATOR),S=!(!_||!_.INTERRUPTED),T=e(p,C),b=function(e){return E&&l(E,"normal"),new h(!0,e)},O=function(e){return y?(n(e),S?T(e[0],e[1],b):T(e[0],e[1])):S?T(e,b):T(e)};if(A)E=f.iterator;else if(N)E=f;else{if(!(v=c(f)))throw new u(r(f)+" is not iterable");if(i(v)){for(m=0,g=o(f);g>m;m++)if((I=O(f[m]))&&s(d,I))return I;return new h(!1)}E=a(f,v)}for(L=A?f.next:E.next;!(w=t(L,E)).done;){try{I=O(w.value)}catch(e){l(E,"throw",e)}if("object"==typeof I&&I&&s(d,I))return I}return new h(!1)}}function da(){return ea?Zs:(ea=1,Zs=function(e){return{iterator:e,next:e.next,done:!1}})}function fa(){if(na)return ta;na=1;var e=o();return ta=function(t,n){var r=e.Iterator,i=r&&r.prototype,o=i&&i[t],s=!1;if(o)try{o.call({next:function(){return{done:!0}},return:function(){s=!0}},-1)}catch(e){e instanceof n||(s=!1)}if(!s)return o}}!function(){if(ra)return ia;ra=1;var e=hr(),t=m(),n=ha(),r=Ae(),i=Lt(),o=da(),s=ua(),a=fa()("find",TypeError);e({target:"Iterator",proto:!0,real:!0,forced:a},{find:function(e){i(this);try{r(e)}catch(e){s(this,"throw",e)}if(a)return t(a,this,e);var c=o(this),l=0;return n(c,function(t,n){if(e(t,l++))return n(t)},{IS_RECORD:!0,INTERRUPTED:!0}).result}})}();var pa,_a={};!function(){if(pa)return _a;pa=1;var e=hr(),t=m(),n=ha(),r=Ae(),i=Lt(),o=da(),s=ua(),a=fa()("forEach",TypeError);e({target:"Iterator",proto:!0,real:!0,forced:a},{forEach:function(e){i(this);try{r(e)}catch(e){s(this,"throw",e)}if(a)return t(a,this,e);var c=o(this),l=0;n(c,function(t){e(t,l++)},{IS_RECORD:!0})}})}();var Ea,va,ma,ga,Ia,La,wa,Ca,ya,Aa,Na,Sa={};function Ta(){return va?Ea:(va=1,Ea=function(e,t){return{value:e,done:t}})}function ba(){if(ga)return ma;ga=1;var e=ua();return ma=function(t,n,r){for(var i=t.length-1;i>=0;i--)if(void 0!==t[i])try{r=e(t[i].iterator,n,r)}catch(e){n="throw",r=e}if("throw"===n)throw r;return r},ma}function Oa(){if(La)return Ia;La=1;var e=m(),t=xs(),n=Ct(),r=Ao(),i=st(),o=Bt(),s=Ne(),a=Us().IteratorPrototype,c=Ta(),l=ua(),u=ba(),h=i("toStringTag"),d="IteratorHelper",f="WrapForValidIterator",p="normal",_="throw",E=o.set,v=function(n){var i=o.getterFor(n?f:d);return r(t(a),{next:function(){var e=i(this);if(n)return e.nextHandler();if(e.done)return c(void 0,!0);try{var t=e.nextHandler();return e.returnHandlerResult?t:c(t,e.done)}catch(t){throw e.done=!0,t}},return:function(){var t=i(this),r=t.iterator;if(t.done=!0,n){var o=s(r,"return");return o?e(o,r):c(void 0,!0)}if(t.inner)try{l(t.inner.iterator,p)}catch(e){return l(r,_,e)}if(t.openIters)try{u(t.openIters,p)}catch(e){return l(r,_,e)}return r&&l(r,p),c(void 0,!0)}})},g=v(!0),I=v(!1);return n(I,h,"Iterator Helper"),Ia=function(e,t,n){var r=function(r,i){i?(i.iterator=r.iterator,i.next=r.next):i=r,i.type=t?f:d,i.returnHandlerResult=!!n,i.nextHandler=e,i.counter=0,i.done=!1,E(this,i)};return r.prototype=t?g:I,r}}function Ra(){if(Ca)return wa;Ca=1;var e=Lt(),t=ua();return wa=function(n,r,i,o){try{return o?r(e(i)[0],i[1]):r(i)}catch(e){t(n,"throw",e)}}}function ka(){return Aa?ya:(Aa=1,ya=function(e,t){var n="function"==typeof Iterator&&Iterator.prototype[e];if(n)try{n.call({next:null},t).next()}catch(e){return!0}})}!function(){if(Na)return Sa;Na=1;var e=hr(),t=m(),n=Ae(),r=Lt(),i=da(),o=Oa(),s=Ra(),a=ua(),c=ka(),l=fa(),u=Ze(),h=!u&&!c("map",function(){}),d=!u&&!h&&l("map",TypeError),f=u||h||d,p=o(function(){var e=this.iterator,n=r(t(this.next,e));if(!(this.done=!!n.done))return s(e,this.mapper,[n.value,this.counter++],!0)});e({target:"Iterator",proto:!0,real:!0,forced:f},{map:function(e){r(this);try{n(e)}catch(e){a(this,"throw",e)}return d?t(d,this,e):new p(i(this),{mapper:e})}})}();var Pa,Ma,Da,Ga,xa,Ua,Wa,Fa={};function Va(){if(Ga)return Da;Ga=1;var e=le(),t=it(),n=SyntaxError,r=parseInt,i=String.fromCharCode,o=e("".charAt),s=e("".slice),a=e(/./.exec),c={'\\"':'"',"\\\\":"\\","\\/":"/","\\b":"\b","\\f":"\f","\\n":"\n","\\r":"\r","\\t":"\t"},l=/^[\da-f]{4}$/i,u=/^[\u0000-\u001F]$/;return Da=function(e,h){for(var d=!0,f="";h<e.length;){var p=o(e,h);if("\\"===p){var _=s(e,h,h+2);if(t(c,_))f+=c[_],h+=2;else{if("\\u"!==_)throw new n('Unknown escape sequence: "'+_+'"');var E=s(e,h+=2,h+4);if(!a(l,E))throw new n("Bad Unicode escape at: "+h);f+=i(r(E,16)),h+=4}}else{if('"'===p){d=!1,h++;break}if(a(u,p))throw new n("Bad control character in string literal at: "+h);f+=p,h++}}if(d)throw new n("Unterminated string at: "+h);return{value:f,end:h}},Da}!function(){if(Wa)return Fa;Wa=1;var e=hr(),t=ve(),n=dr(),r=m(),i=le(),o=_(),s=_i(),a=_e(),c=function(){if(Ma)return Pa;Ma=1;var e=Ee(),t=Bt().get;return Pa=function(n){if(!e(n))return!1;var r=t(n);return!!r&&"RawJSON"===r.type},Pa}(),l=Ce(),u=ue(),h=Ir(),d=xi(),f=Va(),p=ot(),E=Le(),v=function(){if(Ua)return xa;Ua=1;var e=_();return xa=!e(function(){var e="9007199254740993",t=JSON.rawJSON(e);return!JSON.isRawJSON(t)||JSON.stringify(t)!==e})}(),g=String,I=t("JSON","stringify"),L=i(/./.exec),w=i("".charAt),C=i("".charCodeAt),y=i("".replace),A=i("".slice),N=i([].push),S=i(1.1.toString),T=/[\uD800-\uDFFF]/g,b=/^[\uD800-\uDBFF]$/,O=/^[\uDC00-\uDFFF]$/,R=p(),k=R.length,P=!E||o(function(){var e=t("Symbol")("stringify detection");return"[null]"!==I([e])||"{}"!==I({a:e})||"{}"!==I(Object(e))}),M=o(function(){return'"\\udf06\\ud834"'!==I("\udf06\ud834")||'"\\udead"'!==I("\udead")}),D=P?function(e,t){var i=d(arguments),o=x(t);if(a(o)||void 0!==e&&!l(e))return i[1]=function(e,t){if(a(o)&&(t=r(o,this,g(e),t)),!l(t))return t},n(I,null,i)}:I,G=function(e,t,n){var r=w(n,t-1),i=w(n,t+1);return L(b,e)&&!L(O,i)||L(O,e)&&!L(b,r)?"\\u"+S(C(e,0),16):e},x=function(e){if(a(e))return e;if(s(e)){for(var t=e.length,n=[],r=0;r<t;r++){var i=e[r];"string"==typeof i?N(n,i):"number"!=typeof i&&"Number"!==u(i)&&"String"!==u(i)||N(n,h(i))}var o=n.length,c=!0;return function(e,t){if(c)return c=!1,t;if(s(this))return t;for(var r=0;r<o;r++)if(n[r]===e)return t}}};I&&e({target:"JSON",stat:!0,arity:3,forced:P||M||!v},{stringify:function(e,t,n){var i=x(t),o=[],s=D(e,function(e,t){var n=a(i)?r(i,this,g(e),t):t;return!v&&c(n)?R+(N(o,n.rawJSON)-1):n},n);if("string"!=typeof s)return s;if(M&&(s=y(s,T,G)),v)return s;for(var l="",u=s.length,h=0;h<u;h++){var d=w(s,h);if('"'===d){var p=f(s,++h).end-1,_=A(s,h,p);l+=A(_,0,k)===R?o[A(_,k)]:'"'+_+'"',h=p}else l+=d}return l}})}();var ja,za,Ba,Ha,Qa,Ya,Ka,$a,Ja,Xa,qa,Za,ec,tc,nc,rc={};function ic(){if(za)return ja;za=1;var e=Ee(),t=ue(),n=st()("match");return ja=function(r){var i;return e(r)&&(void 0!==(i=r[n])?!!i:"RegExp"===t(r))}}function oc(){if(Ha)return Ba;Ha=1;var e=o(),t=_(),n=e.RegExp,r=!t(function(){var e=!0;try{n(".","d")}catch(t){e=!1}var t={},r="",i=e?"dgimsy":"gimsy",o=function(e,n){Object.defineProperty(t,e,{get:function(){return r+=n,!0}})},s={dotAll:"s",global:"g",ignoreCase:"i",multiline:"m",sticky:"y"};for(var a in e&&(s.hasIndices="d"),s)o(a,s[a]);return Object.getOwnPropertyDescriptor(n.prototype,"flags").get.call(t)!==i||r!==i});return Ba={correct:r}}function sc(){if(Ya)return Qa;Ya=1;var e=Lt();return Qa=function(){var t=e(this),n="";return t.hasIndices&&(n+="d"),t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.dotAll&&(n+="s"),t.unicode&&(n+="u"),t.unicodeSets&&(n+="v"),t.sticky&&(n+="y"),n}}function ac(){if($a)return Ka;$a=1;var e=m(),t=it(),n=me(),r=oc(),i=sc(),o=RegExp.prototype;return Ka=r.correct?function(e){return e.flags}:function(s){return r.correct||!n(o,s)||t(s,"flags")?s.flags:e(i,s)}}function cc(){if(Xa)return Ja;Xa=1;var e=_(),t=o().RegExp,n=e(function(){var e=t("a","y");return e.lastIndex=2,null!==e.exec("abcd")}),r=n||e(function(){return!t("a","y").sticky}),i=n||e(function(){var e=t("^r","gy");return e.lastIndex=2,null!==e.exec("str")});return Ja={BROKEN_CARET:i,MISSED_STICKY:r,UNSUPPORTED_Y:n}}function lc(){if(Za)return qa;Za=1;var e=_(),t=o().RegExp;return qa=e(function(){var e=t(".","s");return!(e.dotAll&&e.test("\n")&&"s"===e.flags)})}function uc(){if(tc)return ec;tc=1;var e=_(),t=o().RegExp;return ec=e(function(){var e=t("(?<a>b)","g");return"b"!==e.exec("b").groups.a||"bc"!=="b".replace(e,"$<a>c")})}!function(){if(nc)return rc;nc=1;var e=E(),t=o(),n=le(),r=ur(),i=mr(),s=Ct(),a=xs(),c=mn().f,l=me(),u=ic(),h=Ir(),d=ac(),f=cc(),p=vr(),v=Qt(),m=_(),g=it(),I=Bt().enforce,L=Po(),w=st(),C=lc(),y=uc(),A=w("match"),N=t.RegExp,S=N.prototype,T=t.SyntaxError,b=n(S.exec),O=n("".charAt),R=n("".replace),k=n("".indexOf),P=n("".slice),M=/^\?<[^\s\d!#%&*+<=>@^][^\s!#%&*+<=>@^]*>/,D=/a/g,G=/a/g,x=new N(D)!==D,U=f.MISSED_STICKY,W=f.UNSUPPORTED_Y;if(r("RegExp",e&&(!x||U||C||y||m(function(){return G[A]=!1,N(D)!==D||N(G)===G||"/a/i"!==String(N(D,"i"))})))){for(var F=function(e,t){var n,r,o,c,f,p,_=l(S,this),E=u(e),v=void 0===t,m=[],L=e;if(!_&&E&&v&&e.constructor===F)return e;if((E||l(S,e))&&(e=e.source,v&&(t=d(L))),e=void 0===e?"":h(e),t=void 0===t?"":h(t),L=e,C&&"dotAll"in D&&(r=!!t&&k(t,"s")>-1)&&(t=R(t,/s/g,"")),n=t,U&&"sticky"in D&&(o=!!t&&k(t,"y")>-1)&&W&&(t=R(t,/y/g,"")),y&&(c=function(e){for(var t,n=e.length,r=0,i="",o=[],s=a(null),c=!1,l=!1,u=0,h="";r<=n;r++){if("\\"===(t=O(e,r)))t+=O(e,++r);else if("]"===t)c=!1;else if(!c)switch(!0){case"["===t:c=!0;break;case"("===t:if(i+=t,"?:"===P(e,r+1,r+3))continue;b(M,P(e,r+1))&&(r+=2,l=!0),u++;continue;case">"===t&&l:if(""===h||g(s,h))throw new T("Invalid capture group name");s[h]=!0,o[o.length]=[h,u],l=!1,h="";continue}l?h+=t:i+=t}return[i,o]}(e),e=c[0],m=c[1]),f=i(N(e,t),_?this:S,F),(r||o||m.length)&&(p=I(f),r&&(p.dotAll=!0,p.raw=F(function(e){for(var t,n=e.length,r=0,i="",o=!1;r<=n;r++)"\\"!==(t=O(e,r))?o||"."!==t?("["===t?o=!0:"]"===t&&(o=!1),i+=t):i+="[\\s\\S]":i+=t+O(e,++r);return i}(e),n)),o&&(p.sticky=!0),m.length&&(p.groups=m)),e!==L)try{s(f,"source",""===L?"(?:)":L)}catch(e){}return f},V=c(N),j=0;V.length>j;)p(F,N,V[j++]);S.constructor=F,F.prototype=S,v(t,"RegExp",F,{constructor:!0})}L("RegExp")}();var hc,dc={};!function(){if(hc)return dc;hc=1;var e=E(),t=lc(),n=ue(),r=Zr(),i=Bt().get,o=RegExp.prototype,s=TypeError;e&&t&&r(o,"dotAll",{configurable:!0,get:function(){if(this!==o){if("RegExp"===n(this))return!!i(this).dotAll;throw new s("Incompatible receiver, RegExp required")}}})}();var fc,pc,_c,Ec={};function vc(){if(pc)return fc;pc=1;var e,t,n=m(),r=le(),i=Ir(),o=sc(),s=cc(),a=nt(),c=xs(),l=Bt().get,u=lc(),h=uc(),d=a("native-string-replace",String.prototype.replace),f=RegExp.prototype.exec,p=f,_=r("".charAt),E=r("".indexOf),v=r("".replace),g=r("".slice),I=(t=/b*/g,n(f,e=/a/,"a"),n(f,t,"a"),0!==e.lastIndex||0!==t.lastIndex),L=s.BROKEN_CARET,w=void 0!==/()??/.exec("")[1];return(I||w||L||u||h)&&(p=function(e){var t,r,s,a,u,h,m,C=this,y=l(C),A=i(e),N=y.raw;if(N)return N.lastIndex=C.lastIndex,t=n(p,N,A),C.lastIndex=N.lastIndex,t;var S=y.groups,T=L&&C.sticky,b=n(o,C),O=C.source,R=0,k=A;if(T&&(b=v(b,"y",""),-1===E(b,"g")&&(b+="g"),k=g(A,C.lastIndex),C.lastIndex>0&&(!C.multiline||C.multiline&&"\n"!==_(A,C.lastIndex-1))&&(O="(?: "+O+")",k=" "+k,R++),r=new RegExp("^(?:"+O+")",b)),w&&(r=new RegExp("^"+O+"$(?!\\s)",b)),I&&(s=C.lastIndex),a=n(f,T?r:C,k),T?a?(a.input=g(a.input,R),a[0]=g(a[0],R),a.index=C.lastIndex,C.lastIndex+=a[0].length):C.lastIndex=0:I&&a&&(C.lastIndex=C.global?a.index+a[0].length:s),w&&a&&a.length>1&&n(d,a[0],r,function(){for(u=1;u<arguments.length-2;u++)void 0===arguments[u]&&(a[u]=void 0)}),a&&S)for(a.groups=h=c(null),u=0;u<S.length;u++)h[(m=S[u])[0]]=a[m[1]];return a}),fc=p}function mc(){if(_c)return Ec;_c=1;var e=hr(),t=vc();return e({target:"RegExp",proto:!0,forced:/./.exec!==t},{exec:t}),Ec}mc();var gc,Ic={};!function(){if(gc)return Ic;gc=1;var e=E(),t=Zr(),n=oc(),r=sc();e&&!n.correct&&(t(RegExp.prototype,"flags",{configurable:!0,get:r}),n.correct=!0)}();var Lc,wc,Cc,yc,Ac,Nc,Sc,Tc,bc,Oc,Rc,kc,Pc,Mc,Dc,Gc,xc,Uc,Wc,Fc={};function Vc(){if(wc)return Lc;wc=1;var e=le(),t=Set.prototype;return Lc={Set:Set,add:e(t.add),has:e(t.has),remove:e(t.delete),proto:t}}function jc(){if(yc)return Cc;yc=1;var e=Vc().has;return Cc=function(t){return e(t),t}}function zc(){if(Nc)return Ac;Nc=1;var e=m();return Ac=function(t,n,r){for(var i,o,s=r?t:t.iterator,a=t.next;!(i=e(a,s)).done;)if(void 0!==(o=n(i.value)))return o}}function Bc(){if(Tc)return Sc;Tc=1;var e=le(),t=zc(),n=Vc(),r=n.Set,i=n.proto,o=e(i.forEach),s=e(i.keys),a=s(new r).next;return Sc=function(e,n,r){return r?t({iterator:s(e),next:a},n):o(e,n)}}function Hc(){if(Oc)return bc;Oc=1;var e=Vc(),t=Bc(),n=e.Set,r=e.add;return bc=function(e){var i=new n;return t(e,function(e){r(i,e)}),i}}function Qc(){if(kc)return Rc;kc=1;var e=fr(),t=Vc();return Rc=e(t.proto,"size","get")||function(e){return e.size}}function Yc(){if(Mc)return Pc;Mc=1;var e=Ae(),t=Lt(),n=m(),r=dn(),i=da(),o="Invalid size",s=RangeError,a=TypeError,c=Math.max,l=function(t,n){this.set=t,this.size=c(n,0),this.has=e(t.has),this.keys=e(t.keys)};return l.prototype={getIterator:function(){return i(t(n(this.keys,this.set)))},includes:function(e){return n(this.has,this.set,e)}},Pc=function(e){t(e);var n=+e.size;if(n!=n)throw new a(o);var i=r(n);if(i<0)throw new s(o);return new l(e,i)}}function Kc(){if(Uc)return xc;Uc=1;var e=ve(),t=function(e){return{size:e,has:function(){return!1},keys:function(){return{next:function(){return{done:!0}}}}}},n=function(e){return{size:e,has:function(){return!0},keys:function(){throw new Error("e")}}};return xc=function(r,i){var o=e("Set");try{(new o)[r](t(0));try{return(new o)[r](t(-1)),!1}catch(e){if(!i)return!0;try{return(new o)[r](n(-1/0)),!1}catch(e){return i(new o([1,2])[r](n(1/0)))}}}catch(e){return!1}}}!function(){if(Wc)return Fc;Wc=1;var e=hr(),t=function(){if(Gc)return Dc;Gc=1;var e=jc(),t=Vc(),n=Hc(),r=Qc(),i=Yc(),o=Bc(),s=zc(),a=t.has,c=t.remove;return Dc=function(t){var l=e(this),u=i(t),h=n(l);return r(l)<=u.size?o(l,function(e){u.includes(e)&&c(h,e)}):s(u.getIterator(),function(e){a(h,e)&&c(h,e)}),h},Dc}(),n=_();e({target:"Set",proto:!0,real:!0,forced:!Kc()("difference",function(e){return 0===e.size})||n(function(){var e={size:1,has:function(){return!0},keys:function(){var e=0;return{next:function(){var n=e++>1;return t.has(1)&&t.clear(),{done:n,value:2}}}}},t=new Set([1,2,3,4]);return 3!==t.difference(e).size})},{difference:t})}();var $c,Jc,Xc,qc={};!function(){if(Xc)return qc;Xc=1;var e=hr(),t=_(),n=function(){if(Jc)return $c;Jc=1;var e=jc(),t=Vc(),n=Qc(),r=Yc(),i=Bc(),o=zc(),s=t.Set,a=t.add,c=t.has;return $c=function(t){var l=e(this),u=r(t),h=new s;return n(l)>u.size?o(u.getIterator(),function(e){c(l,e)&&a(h,e)}):i(l,function(e){u.includes(e)&&a(h,e)}),h},$c}();e({target:"Set",proto:!0,real:!0,forced:!Kc()("intersection",function(e){return 2===e.size&&e.has(1)&&e.has(2)})||t(function(){return"3,2"!==String(Array.from(new Set([1,2,3]).intersection(new Set([3,2]))))})},{intersection:n})}();var Zc,el,tl,nl={};!function(){if(tl)return nl;tl=1;var e=hr(),t=function(){if(el)return Zc;el=1;var e=jc(),t=Vc().has,n=Qc(),r=Yc(),i=Bc(),o=zc(),s=ua();return Zc=function(a){var c=e(this),l=r(a);if(n(c)<=l.size)return!1!==i(c,function(e){if(l.includes(e))return!1},!0);var u=l.getIterator();return!1!==o(u,function(e){if(t(c,e))return s(u,"normal",!1)})},Zc}();e({target:"Set",proto:!0,real:!0,forced:!Kc()("isDisjointFrom",function(e){return!e})},{isDisjointFrom:t})}();var rl,il,ol,sl={};!function(){if(ol)return sl;ol=1;var e=hr(),t=function(){if(il)return rl;il=1;var e=jc(),t=Qc(),n=Bc(),r=Yc();return rl=function(i){var o=e(this),s=r(i);return!(t(o)>s.size)&&!1!==n(o,function(e){if(!s.includes(e))return!1},!0)},rl}();e({target:"Set",proto:!0,real:!0,forced:!Kc()("isSubsetOf",function(e){return e})},{isSubsetOf:t})}();var al,cl,ll,ul={};!function(){if(ll)return ul;ll=1;var e=hr(),t=function(){if(cl)return al;cl=1;var e=jc(),t=Vc().has,n=Qc(),r=Yc(),i=zc(),o=ua();return al=function(s){var a=e(this),c=r(s);if(n(a)<c.size)return!1;var l=c.getIterator();return!1!==i(l,function(e){if(!t(a,e))return o(l,"normal",!1)})},al}();e({target:"Set",proto:!0,real:!0,forced:!Kc()("isSupersetOf",function(e){return!e})},{isSupersetOf:t})}();var hl,dl,fl,pl,_l,El={};function vl(){return pl?fl:(pl=1,fl=function(e){try{var t=new Set,n={size:0,has:function(){return!0},keys:function(){return Object.defineProperty({},"next",{get:function(){return t.clear(),t.add(4),function(){return{done:!0}}}})}},r=t[e](n);return 1===r.size&&4===r.values().next().value}catch(e){return!1}})}!function(){if(_l)return El;_l=1;var e=hr(),t=function(){if(dl)return hl;dl=1;var e=jc(),t=Vc(),n=Hc(),r=Yc(),i=zc(),o=t.add,s=t.has,a=t.remove;return hl=function(t){var c=e(this),l=r(t).getIterator(),u=n(c);return i(l,function(e){s(c,e)?a(u,e):o(u,e)}),u},hl}(),n=vl();e({target:"Set",proto:!0,real:!0,forced:!Kc()("symmetricDifference")||!n("symmetricDifference")},{symmetricDifference:t})}();var ml,gl,Il,Ll={};!function(){if(Il)return Ll;Il=1;var e=hr(),t=function(){if(gl)return ml;gl=1;var e=jc(),t=Vc().add,n=Hc(),r=Yc(),i=zc();return ml=function(o){var s=e(this),a=r(o).getIterator(),c=n(s);return i(a,function(e){t(c,e)}),c},ml}(),n=vl();e({target:"Set",proto:!0,real:!0,forced:!Kc()("union")||!n("union")},{union:t})}();var wl,Cl,yl,Al,Nl,Sl,Tl,bl,Ol,Rl,kl,Pl,Ml,Dl,Gl,xl,Ul,Wl,Fl,Vl,jl,zl,Bl,Hl,Ql,Yl,Kl,$l,Jl,Xl,ql,Zl,eu,tu,nu,ru,iu,ou,su,au,cu,lu,uu={exports:{}};function hu(){if(Cl)return wl;Cl=1;var e=st()("iterator"),t=!1;try{var n=0,r={next:function(){return{done:!!n++}},return:function(){t=!0}};r[e]=function(){return this},Array.from(r,function(){throw 2})}catch(e){}return wl=function(n,r){try{if(!r&&!t)return!1}catch(e){return!1}var i=!1;try{var o={};o[e]=function(){return{next:function(){return{done:i=!0}}}},n(o)}catch(e){}return i}}function du(){if(Al)return yl;Al=1;var e,t,n,r=yo(),i=E(),s=o(),a=_e(),c=Ee(),l=it(),u=gr(),h=ye(),d=Ct(),f=Qt(),p=Zr(),_=me(),v=bo(),m=Er(),g=st(),I=ot(),L=Bt(),w=L.enforce,C=L.get,y=s.Int8Array,A=y&&y.prototype,N=s.Uint8ClampedArray,S=N&&N.prototype,T=y&&v(y),b=A&&v(A),O=Object.prototype,R=s.TypeError,k=g("toStringTag"),P=I("TYPED_ARRAY_TAG"),M="TypedArrayConstructor",D=r&&!!m&&"Opera"!==u(s.opera),G=!1,x={Int8Array:1,Uint8Array:1,Uint8ClampedArray:1,Int16Array:2,Uint16Array:2,Int32Array:4,Uint32Array:4,Float32Array:4,Float64Array:8},U={BigInt64Array:8,BigUint64Array:8},W=function(e){var t=v(e);if(c(t)){var n=C(t);return n&&l(n,M)?n[M]:W(t)}},F=function(e){if(!c(e))return!1;var t=u(e);return l(x,t)||l(U,t)};for(e in x)(n=(t=s[e])&&t.prototype)?w(n)[M]=t:D=!1;for(e in U)(n=(t=s[e])&&t.prototype)&&(w(n)[M]=t);if((!D||!a(T)||T===Function.prototype)&&(T=function(){throw new R("Incorrect invocation")},D))for(e in x)s[e]&&m(s[e],T);if((!D||!b||b===O)&&(b=T.prototype,D))for(e in x)s[e]&&m(s[e].prototype,b);if(D&&v(S)!==b&&m(S,b),i&&!l(b,k))for(e in G=!0,p(b,k,{configurable:!0,get:function(){return c(this)?this[P]:void 0}}),x)s[e]&&d(s[e],P,e);return yl={NATIVE_ARRAY_BUFFER_VIEWS:D,TYPED_ARRAY_TAG:G&&P,aTypedArray:function(e){if(F(e))return e;throw new R("Target is not a typed array")},aTypedArrayConstructor:function(e){if(a(e)&&(!m||_(T,e)))return e;throw new R(h(e)+" is not a typed array constructor")},exportTypedArrayMethod:function(e,t,n,r){if(i){if(n)for(var o in x){var a=s[o];if(a&&l(a.prototype,e))try{delete a.prototype[e]}catch(n){try{a.prototype[e]=t}catch(e){}}}b[e]&&!n||f(b,e,n?t:D&&A[e]||t,r)}},exportTypedArrayStaticMethod:function(e,t,n){var r,o;if(i){if(m){if(n)for(r in x)if((o=s[r])&&l(o,e))try{delete o[e]}catch(e){}if(T[e]&&!n)return;try{return f(T,e,n?t:D&&T[e]||t)}catch(e){}}for(r in x)!(o=s[r])||o[e]&&!n||f(o,e,t)}},getTypedArrayConstructor:W,isView:function(e){if(!c(e))return!1;var t=u(e);return"DataView"===t||l(x,t)||l(U,t)},isTypedArray:F,TypedArray:T,TypedArrayPrototype:b},yl}function fu(){if(Sl)return Nl;Sl=1;var e=o(),t=_(),n=hu(),r=du().NATIVE_ARRAY_BUFFER_VIEWS,i=e.ArrayBuffer,s=e.Int8Array;return Nl=!r||!t(function(){s(1)})||!t(function(){new s(-1)})||!n(function(e){new s,new s(null),new s(1.5),new s(e)},!0)||t(function(){return 1!==new s(new i(2),1,void 0).length})}function pu(){if(bl)return Tl;bl=1;var e=Ee(),t=Math.floor;return Tl=Number.isInteger||function(n){return!e(n)&&isFinite(n)&&t(n)===n}}function _u(){if(Rl)return Ol;Rl=1;var e=dn(),t=RangeError;return Ol=function(n){var r=e(n);if(r<0)throw new t("The argument can't be less than 0");return r}}function Eu(){if(Pl)return kl;Pl=1;var e=_u(),t=RangeError;return kl=function(n,r){var i=e(n);if(i%r)throw new t("Wrong offset");return i},kl}function vu(){if(Dl)return Ml;Dl=1;var e=Math.round;return Ml=function(t){var n=e(t);return n<0?0:n>255?255:255&n}}function mu(){if(xl)return Gl;xl=1;var e=le(),t=_(),n=_e(),r=gr(),i=ve(),o=Vt(),s=function(){},a=i("Reflect","construct"),c=/^\s*(?:class|function)\b/,l=e(c.exec),u=!c.test(s),h=function(e){if(!n(e))return!1;try{return a(s,[],e),!0}catch(e){return!1}},d=function(e){if(!n(e))return!1;switch(r(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return u||!!l(c,o(e))}catch(e){return!0}};return d.sham=!0,Gl=!a||t(function(){var e;return h(h.call)||!h(Object)||!h(function(){e=!0})||e})?d:h}function gu(){if(Wl)return Ul;Wl=1;var e=mu(),t=ye(),n=TypeError;return Ul=function(r){if(e(r))return r;throw new n(t(r)+" is not a constructor")}}function Iu(){if(Vl)return Fl;Vl=1;var e=gr();return Fl=function(t){var n=e(t);return"BigInt64Array"===n||"BigUint64Array"===n}}function Lu(){if(zl)return jl;zl=1;var e=at(),t=TypeError;return jl=function(n){var r=e(n,"number");if("number"==typeof r)throw new t("Can't convert number to bigint");return BigInt(r)}}function wu(){if(Hl)return Bl;Hl=1;var e=oa(),t=m(),n=gu(),r=rt(),i=_n(),o=la(),s=ca(),a=aa(),c=Iu(),l=du().aTypedArrayConstructor,u=Lu();return Bl=function(h){var d,f,p,_,E,v,m,g,I=n(this),L=r(h),w=arguments.length,C=w>1?arguments[1]:void 0,y=void 0!==C,A=s(L);if(A&&!a(A))for(g=(m=o(L,A)).next,L=[];!(v=t(g,m)).done;)L.push(v.value);for(y&&w>2&&(C=e(C,arguments[2])),f=i(L),p=new(l(I))(f),_=c(p),d=0;f>d;d++)E=y?C(L[d],d):L[d],p[d]=_?u(E):+E;return p},Bl}function Cu(){if(Yl)return Ql;Yl=1;var e=_i(),t=mu(),n=Ee(),r=st()("species"),i=Array;return Ql=function(o){var s;return e(o)&&(s=o.constructor,(t(s)&&(s===i||e(s.prototype))||n(s)&&null===(s=s[r]))&&(s=void 0)),void 0===s?i:s},Ql}function yu(){if($l)return Kl;$l=1;var e=Cu();return Kl=function(t,n){return new(e(t))(0===n?0:n)}}function Au(){if(Zl)return ql;Zl=1;var e=_n();return ql=function(t,n,r){for(var i=0,o=arguments.length>2?r:e(n),s=new t(o);o>i;)s[i]=n[i++];return s},ql}function Nu(){if(eu)return uu.exports;eu=1;var e=hr(),t=o(),n=m(),r=E(),i=fu(),s=du(),a=ko(),c=No(),l=ce(),u=Ct(),h=pu(),d=pn(),f=So(),p=Eu(),_=vu(),v=ct(),g=it(),I=gr(),L=Ee(),w=Ce(),C=xs(),y=me(),A=Er(),N=mn().f,S=wu(),T=function(){if(Xl)return Jl;Xl=1;var e=oa(),t=le(),n=he(),r=rt(),i=_n(),o=yu(),s=t([].push),a=function(t){var a=1===t,c=2===t,l=3===t,u=4===t,h=6===t,d=7===t,f=5===t||h;return function(p,_,E,v){for(var m,g,I=r(p),L=n(I),w=i(L),C=e(_,E),y=0,A=v||o,N=a?A(p,w):c||d?A(p,0):void 0;w>y;y++)if((f||y in L)&&(g=C(m=L[y],y,I),t))if(a)N[y]=g;else if(g)switch(t){case 3:return!0;case 5:return m;case 6:return y;case 2:s(N,m)}else switch(t){case 4:return!1;case 7:s(N,m)}return h?-1:l||u?u:N}};return Jl={forEach:a(0),map:a(1),filter:a(2),some:a(3),every:a(4),find:a(5),findIndex:a(6),filterReject:a(7)}}().forEach,b=Po(),O=Zr(),R=wt(),k=ht(),P=Au(),M=Bt(),D=mr(),G=M.get,x=M.set,U=M.enforce,W=R.f,F=k.f,V=t.RangeError,j=a.ArrayBuffer,z=j.prototype,B=a.DataView,H=s.NATIVE_ARRAY_BUFFER_VIEWS,Q=s.TYPED_ARRAY_TAG,Y=s.TypedArray,K=s.TypedArrayPrototype,$=s.isTypedArray,J="BYTES_PER_ELEMENT",X="Wrong length",q=function(e,t){O(e,t,{configurable:!0,get:function(){return G(this)[t]}})},Z=function(e){var t;return y(z,e)||"ArrayBuffer"===(t=I(e))||"SharedArrayBuffer"===t},ee=function(e,t){return $(e)&&!w(t)&&t in e&&h(+t)&&t>=0},te=function(e,t){return t=v(t),ee(e,t)?l(2,e[t]):F(e,t)},ne=function(e,t,n){return t=v(t),!(ee(e,t)&&L(n)&&g(n,"value"))||g(n,"get")||g(n,"set")||n.configurable||g(n,"writable")&&!n.writable||g(n,"enumerable")&&!n.enumerable?W(e,t,n):(e[t]=n.value,e)};return r?(H||(k.f=te,R.f=ne,q(K,"buffer"),q(K,"byteOffset"),q(K,"byteLength"),q(K,"length")),e({target:"Object",stat:!0,forced:!H},{getOwnPropertyDescriptor:te,defineProperty:ne}),uu.exports=function(r,o,s){var a=r.match(/\d+/)[0]/8,l=r+(s?"Clamped":"")+"Array",h="get"+r,E="set"+r,v=t[l],m=v,g=m&&m.prototype,I={},w=function(e,t){W(e,t,{get:function(){return function(e,t){var n=G(e);return n.view[h](t*a+n.byteOffset,!0)}(this,t)},set:function(e){return function(e,t,n){var r=G(e);r.view[E](t*a+r.byteOffset,s?_(n):n,!0)}(this,t,e)},enumerable:!0})};H?i&&(m=o(function(e,t,r,i){return c(e,g),D(L(t)?Z(t)?void 0!==i?new v(t,p(r,a),i):void 0!==r?new v(t,p(r,a)):new v(t):$(t)?P(m,t):n(S,m,t):new v(f(t)),e,m)}),A&&A(m,Y),T(N(v),function(e){e in m||u(m,e,v[e])}),m.prototype=g):(m=o(function(e,t,r,i){c(e,g);var o,s,l,u=0,h=0;if(L(t)){if(!Z(t))return $(t)?P(m,t):n(S,m,t);o=t,h=p(r,a);var _=t.byteLength;if(void 0===i){if(_%a)throw new V(X);if((s=_-h)<0)throw new V(X)}else if((s=d(i)*a)+h>_)throw new V(X);l=s/a}else l=f(t),o=new j(s=l*a);for(x(e,{buffer:o,byteOffset:h,byteLength:s,length:l,view:new B(o)});u<l;)w(e,u++)}),A&&A(m,Y),g=m.prototype=C(K)),g.constructor!==m&&u(g,"constructor",m),U(g).TypedArrayConstructor=m,Q&&u(g,Q,l);var y=m!==v;I[l]=m,e({global:!0,constructor:!0,forced:y,sham:!H},I),J in m||u(m,J,a),J in g||u(g,J,a),b(l)}):uu.exports=function(){},uu.exports}tu||(tu=1,Nu()("Float32",function(e){return function(t,n,r){return e(this,t,n,r)}})),nu||(nu=1,Nu()("Float64",function(e){return function(t,n,r){return e(this,t,n,r)}})),ru||(ru=1,Nu()("Int8",function(e){return function(t,n,r){return e(this,t,n,r)}})),iu||(iu=1,Nu()("Int16",function(e){return function(t,n,r){return e(this,t,n,r)}})),ou||(ou=1,Nu()("Int32",function(e){return function(t,n,r){return e(this,t,n,r)}})),su||(su=1,Nu()("Uint8",function(e){return function(t,n,r){return e(this,t,n,r)}})),au||(au=1,Nu()("Uint8",function(e){return function(t,n,r){return e(this,t,n,r)}},!0)),cu||(cu=1,Nu()("Uint16",function(e){return function(t,n,r){return e(this,t,n,r)}})),lu||(lu=1,Nu()("Uint32",function(e){return function(t,n,r){return e(this,t,n,r)}}));var Su,Tu={};!function(){if(Su)return Tu;Su=1;var e=du(),t=_n(),n=dn(),r=e.aTypedArray;(0,e.exportTypedArrayMethod)("at",function(e){var i=r(this),o=t(i),s=n(e),a=s>=0?s:o+s;return a<0||a>=o?void 0:i[a]})}();var bu,Ou={};!function(){if(bu)return Ou;bu=1;var e=du(),t=Oo(),n=Lu(),r=gr(),i=m(),o=le(),s=_(),a=e.aTypedArray,c=e.exportTypedArrayMethod,l=o("".slice);c("fill",function(e){var o=arguments.length;a(this);var s="Big"===l(r(this),0,3)?n(e):+e;return i(t,this,s,o>1?arguments[1]:void 0,o>2?arguments[2]:void 0)},s(function(){var e=0;return new Int8Array(2).fill({valueOf:function(){return e++}}),1!==e}))}();var Ru,ku,Pu,Mu={};function Du(){if(ku)return Ru;ku=1;var e=oa(),t=he(),n=rt(),r=_n(),i=function(i){var o=1===i;return function(s,a,c){for(var l,u=n(s),h=t(u),d=r(h),f=e(a,c);d-- >0;)if(f(l=h[d],d,u))switch(i){case 0:return l;case 1:return d}return o?-1:void 0}};return Ru={findLast:i(0),findLastIndex:i(1)}}!function(){if(Pu)return Mu;Pu=1;var e=du(),t=Du().findLast,n=e.aTypedArray;(0,e.exportTypedArrayMethod)("findLast",function(e){return t(n(this),e,arguments.length>1?arguments[1]:void 0)})}();var Gu,xu={};!function(){if(Gu)return xu;Gu=1;var e=du(),t=Du().findLastIndex,n=e.aTypedArray;(0,e.exportTypedArrayMethod)("findLastIndex",function(e){return t(n(this),e,arguments.length>1?arguments[1]:void 0)})}();var Uu,Wu={};!function(){if(Uu)return Wu;Uu=1;var e=o(),t=m(),n=du(),r=_n(),i=Eu(),s=rt(),a=_(),c=e.RangeError,l=e.Int8Array,u=l&&l.prototype,h=u&&u.set,d=n.aTypedArray,f=n.exportTypedArrayMethod,p=!a(function(){var e=new Uint8ClampedArray(2);return t(h,e,{length:1,0:3},1),3!==e[1]}),E=p&&n.NATIVE_ARRAY_BUFFER_VIEWS&&a(function(){var e=new l(2);return e.set(1),e.set("2",1),0!==e[0]||2!==e[1]});f("set",function(e){d(this);var n=i(arguments.length>1?arguments[1]:void 0,1),o=s(e);if(p)return t(h,this,o,n);var a=this.length,l=r(o),u=0;if(l+n>a)throw new c("Wrong length");for(;u<l;)this[n+u]=o[u++]},!p||E)}();var Fu,Vu={};!function(){if(Fu)return Vu;Fu=1;var e=o(),t=Uo(),n=_(),r=Ae(),i=Ui(),s=du(),a=Fi(),c=Vi(),l=Ie(),u=ji(),h=s.aTypedArray,d=s.exportTypedArrayMethod,f=e.Uint16Array,p=f&&t(f.prototype.sort),E=!(!p||n(function(){p(new f(2),null)})&&n(function(){p(new f(2),{})})),v=!!p&&!n(function(){if(l)return l<74;if(a)return a<67;if(c)return!0;if(u)return u<602;var e,t,n=new f(516),r=Array(516);for(e=0;e<516;e++)t=e%4,n[e]=515-e,r[e]=e-2*t+3;for(p(n,function(e,t){return(e/4|0)-(t/4|0)}),e=0;e<516;e++)if(n[e]!==r[e])return!0});d("sort",function(e){return void 0!==e&&r(e),v?p(this,e):i(h(this),function(e){return function(t,n){return void 0!==e?+e(t,n)||0:n!=n?-1:t!=t?1:0===t&&0===n?1/t>0&&1/n<0?1:-1:t>n}}(e))},!v||E)}();var ju,zu,Bu,Hu={};function Qu(){if(zu)return ju;zu=1;var e=_n();return ju=function(t,n){for(var r=e(t),i=new n(r),o=0;o<r;o++)i[o]=t[r-o-1];return i},ju}!function(){if(Bu)return Hu;Bu=1;var e=Qu(),t=du(),n=t.aTypedArray,r=t.exportTypedArrayMethod,i=t.getTypedArrayConstructor;r("toReversed",function(){return e(n(this),i(this))})}();var Yu,Ku={};!function(){if(Yu)return Ku;Yu=1;var e=du(),t=le(),n=Ae(),r=Au(),i=e.aTypedArray,o=e.getTypedArrayConstructor,s=e.exportTypedArrayMethod,a=t(e.TypedArrayPrototype.sort);s("toSorted",function(e){void 0!==e&&n(e);var t=i(this),s=r(o(t),t);return a(s,e)})}();var $u,Ju,Xu,qu={};function Zu(){if(Ju)return $u;Ju=1;var e=_n(),t=dn(),n=RangeError;return $u=function(r,i,o,s){var a=e(r),c=t(o),l=c<0?a+c:c;if(l>=a||l<0)throw new n("Incorrect index");for(var u=new i(a),h=0;h<a;h++)u[h]=h===l?s:r[h];return u},$u}!function(){if(Xu)return qu;Xu=1;var e=Zu(),t=du(),n=Iu(),r=dn(),i=Lu(),o=t.aTypedArray,s=t.getTypedArrayConstructor,a=t.exportTypedArrayMethod,c=function(){try{new Int8Array(1).with(2,{valueOf:function(){throw 8}})}catch(e){return 8===e}}(),l=c&&function(){try{new Int8Array(1).with(-.5,1)}catch(e){return!0}}();a("with",{with:function(t,a){var c=o(this),l=r(t),u=n(c)?i(a):+a;return e(c,s(c),l,u)}}.with,!c||l)}();var eh,th,nh,rh,ih,oh,sh,ah,ch,lh,uh,hh,dh,fh,ph={};function _h(){if(th)return eh;th=1;var e=Ee(),t=String,n=TypeError;return eh=function(r){if(void 0===r||e(r))return r;throw new n(t(r)+" is not an object or undefined")}}function Eh(){if(rh)return nh;rh=1;var e=TypeError;return nh=function(t){if("string"==typeof t)return t;throw new e("Argument is not a string")}}function vh(){if(oh)return ih;oh=1;var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",t=e+"+/",n=e+"-_",r=function(e){for(var t={},n=0;n<64;n++)t[e.charAt(n)]=n;return t};return ih={i2c:t,c2i:r(t),i2cUrl:n,c2iUrl:r(n)}}function mh(){if(ah)return sh;ah=1;var e=TypeError;return sh=function(t){var n=t&&t.alphabet;if(void 0===n||"base64"===n||"base64url"===n)return n||"base64";throw new e("Incorrect `alphabet` option")}}function gh(){if(lh)return ch;lh=1;var e=o(),t=le(),n=_h(),r=Eh(),i=it(),s=vh(),a=mh(),c=ls(),l=s.c2i,u=s.c2iUrl,h=e.SyntaxError,d=e.TypeError,f=t("".charAt),p=function(e,t){for(var n=e.length;t<n;t++){var r=f(e,t);if(" "!==r&&"\t"!==r&&"\n"!==r&&"\f"!==r&&"\r"!==r)break}return t},_=function(e,t,n){var r=e.length;r<4&&(e+=2===r?"AA":"A");var i=(t[f(e,0)]<<18)+(t[f(e,1)]<<12)+(t[f(e,2)]<<6)+t[f(e,3)],o=[i>>16&255,i>>8&255,255&i];if(2===r){if(n&&0!==o[1])throw new h("Extra bits");return[o[0]]}if(3===r){if(n&&0!==o[2])throw new h("Extra bits");return[o[0],o[1]]}return o},E=function(e,t,n){for(var r=t.length,i=0;i<r;i++)e[n+i]=t[i];return n+r};return ch=function(e,t,o,s){r(e),n(t);var v="base64"===a(t)?l:u,m=t?t.lastChunkHandling:void 0;if(void 0===m&&(m="loose"),"loose"!==m&&"strict"!==m&&"stop-before-partial"!==m)throw new d("Incorrect `lastChunkHandling` option");o&&c(o.buffer);var g=e.length,I=o||[],L=0,w=0,C="",y=0;if(s)for(;;){if((y=p(e,y))===g){if(C.length>0){if("stop-before-partial"===m)break;if("loose"!==m)throw new h("Missing padding");if(1===C.length)throw new h("Malformed padding: exactly one additional character");L=E(I,_(C,v,!1),L)}w=g;break}var A=f(e,y);if(++y,"="===A){if(C.length<2)throw new h("Padding is too early");if(y=p(e,y),2===C.length){if(y===g){if("stop-before-partial"===m)break;throw new h("Malformed padding: only one =")}"="===f(e,y)&&(++y,y=p(e,y))}if(y<g)throw new h("Unexpected character after padding");L=E(I,_(C,v,"strict"===m),L),w=g;break}if(!i(v,A))throw new h("Unexpected character");var N=s-L;if(1===N&&2===C.length||2===N&&3===C.length)break;if(4===(C+=A).length&&(L=E(I,_(C,v,!1),L),C="",w=y,L===s))break}return{bytes:I,read:w,written:L}}}function Ih(){if(hh)return uh;hh=1;var e=gr(),t=TypeError;return uh=function(n){if("Uint8Array"===e(n))return n;throw new t("Argument is not an Uint8Array")}}fh||(fh=1,function(){if(dh)return ph;dh=1;var e=hr(),t=o(),n=gh(),r=Ih(),i=t.Uint8Array,s=!i||!i.prototype.setFromBase64||!function(){var e=new i([255,255,255,255,255]);try{return void e.setFromBase64("",null)}catch(e){}try{return void e.setFromBase64("a")}catch(e){}try{e.setFromBase64("MjYyZg===")}catch(t){return 50===e[0]&&54===e[1]&&50===e[2]&&255===e[3]&&255===e[4]}}();i&&e({target:"Uint8Array",proto:!0,forced:s},{setFromBase64:function(e){r(this);var t=n(e,arguments.length>1?arguments[1]:void 0,this,this.length);return{read:t.read,written:t.written}}})}());var Lh,wh,Ch,yh,Ah={};yh||(yh=1,function(){if(Ch)return Ah;Ch=1;var e=hr(),t=o(),n=Eh(),r=Ih(),i=ls(),s=function(){if(wh)return Lh;wh=1;var e=o(),t=le(),n=e.Uint8Array,r=e.SyntaxError,i=e.parseInt,s=Math.min,a=/[^\da-f]/i,c=t(a.exec),l=t("".slice);return Lh=function(e,t){var o=e.length;if(o%2!=0)throw new r("String should be an even number of characters");for(var u=t?s(t.length,o/2):o/2,h=t||new n(u),d=0,f=0;f<u;){var p=l(e,d,d+=2);if(c(a,p))throw new r("String should only contain hex characters");h[f++]=i(p,16)}return{bytes:h,read:d}}}();t.Uint8Array&&e({target:"Uint8Array",proto:!0},{setFromHex:function(e){r(this),n(e),i(this.buffer);var t=s(e,this).read;return{read:t,written:t/2}}})}());var Nh,Sh,Th={};Sh||(Sh=1,function(){if(Nh)return Th;Nh=1;var e=hr(),t=o(),n=le(),r=_h(),i=Ih(),s=ls(),a=vh(),c=mh(),l=a.i2c,u=a.i2cUrl,h=n("".charAt),d=t.Uint8Array,f=!d||!d.prototype.toBase64||!function(){try{(new d).toBase64(null)}catch(e){return!0}}();d&&e({target:"Uint8Array",proto:!0,forced:f},{toBase64:function(){var e=i(this),t=arguments.length?r(arguments[0]):void 0,n="base64"===c(t)?l:u,o=!!t&&!!t.omitPadding;s(this.buffer);for(var a,d="",f=0,p=e.length,_=function(e){return h(n,a>>6*e&63)};f+2<p;f+=3)a=(e[f]<<16)+(e[f+1]<<8)+e[f+2],d+=_(3)+_(2)+_(1)+_(0);return f+2===p?(a=(e[f]<<16)+(e[f+1]<<8),d+=_(3)+_(2)+_(1)+(o?"":"=")):f+1===p&&(a=e[f]<<16,d+=_(3)+_(2)+(o?"":"==")),d}})}());var bh,Oh,Rh={};Oh||(Oh=1,function(){if(bh)return Rh;bh=1;var e=hr(),t=o(),n=le(),r=Ih(),i=ls(),s=n(1.1.toString),a=t.Uint8Array,c=!a||!a.prototype.toHex||!function(){try{return"ffffffffffffffff"===new a([255,255,255,255,255,255,255,255]).toHex()}catch(e){return!1}}();a&&e({target:"Uint8Array",proto:!0,forced:c},{toHex:function(){r(this),i(this.buffer);for(var e="",t=0,n=this.length;t<n;t++){var o=s(this[t],16);e+=1===o.length?"0"+o:o}return e}})}());var kh,Ph,Mh,Dh,Gh,xh,Uh,Wh,Fh,Vh,jh,zh,Bh,Hh={};function Qh(){if(xh)return Gh;xh=1;var e=st(),t=xs(),n=wt().f,r=e("unscopables"),i=Array.prototype;return void 0===i[r]&&n(i,r,{configurable:!0,value:t(null)}),Gh=function(e){i[r][e]=!0}}function Yh(){if(Wh)return Uh;Wh=1;var e=Us().IteratorPrototype,t=xs(),n=ce(),r=Ro(),i=sa(),o=function(){return this};return Uh=function(s,a,c,l){var u=a+" Iterator";return s.prototype=t(e,{next:n(+!l,c)}),r(s,u,!1,!0),i[u]=o,s}}function Kh(){if(Vh)return Fh;Vh=1;var e=hr(),t=m(),n=Ze(),r=Ft(),i=_e(),o=Yh(),s=bo(),a=Er(),c=Ro(),l=Ct(),u=Qt(),h=st(),d=sa(),f=Us(),p=r.PROPER,_=r.CONFIGURABLE,E=f.IteratorPrototype,v=f.BUGGY_SAFARI_ITERATORS,g=h("iterator"),I="keys",L="values",w="entries",C=function(){return this};return Fh=function(r,h,f,m,y,A,N){o(f,h,m);var S,T,b,O=function(e){if(e===y&&D)return D;if(!v&&e&&e in P)return P[e];switch(e){case I:case L:case w:return function(){return new f(this,e)}}return function(){return new f(this)}},R=h+" Iterator",k=!1,P=r.prototype,M=P[g]||P["@@iterator"]||y&&P[y],D=!v&&M||O(y),G="Array"===h&&P.entries||M;if(G&&(S=s(G.call(new r)))!==Object.prototype&&S.next&&(n||s(S)===E||(a?a(S,E):i(S[g])||u(S,g,C)),c(S,R,!0,!0),n&&(d[R]=C)),p&&y===L&&M&&M.name!==L&&(!n&&_?l(P,"name",L):(k=!0,D=function(){return t(M,this)})),y)if(T={values:O(L),keys:A?D:O(I),entries:O(w)},N)for(b in T)(v||k||!(b in P))&&u(P,b,T[b]);else e({target:h,proto:!0,forced:v||k},T);return n&&!N||P[g]===D||u(P,g,D,{name:y}),d[h]=D,T}}function $h(){if(zh)return jh;zh=1;var e=pe(),t=Qh(),n=sa(),r=Bt(),i=wt().f,o=Kh(),s=Ta(),a=Ze(),c=E(),l="Array Iterator",u=r.set,h=r.getterFor(l);jh=o(Array,"Array",function(t,n){u(this,{type:l,target:e(t),index:0,kind:n})},function(){var e=h(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,s(void 0,!0);switch(e.kind){case"keys":return s(n,!1);case"values":return s(t[n],!1)}return s([n,t[n]],!1)},"values");var d=n.Arguments=n.Array;if(t("keys"),t("values"),t("entries"),!a&&c&&"values"!==d.name)try{i(d,"name",{value:"values"})}catch(e){}return jh}!function(){if(Bh)return Hh;Bh=1;var e=o(),t=Ph?kh:(Ph=1,kh={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}),n=function(){if(Dh)return Mh;Dh=1;var e=lt()("span").classList,t=e&&e.constructor&&e.constructor.prototype;return Mh=t===Object.prototype?void 0:t}(),r=$h(),i=Ct(),s=Ro(),a=st()("iterator"),c=r.values,l=function(e,n){if(e){if(e[a]!==c)try{i(e,a,c)}catch(t){e[a]=c}if(s(e,n,!0),t[n])for(var o in r)if(e[o]!==r[o])try{i(e,o,r[o])}catch(t){e[o]=r[o]}}};for(var u in t)l(e[u]&&e[u].prototype,u);l(n,"DOMTokenList")}();var Jh,Xh={};!function(){if(Jh)return Xh;Jh=1;var e=hr(),t=o(),n=Ro();e({global:!0},{Reflect:{}}),n(t.Reflect,"Reflect",!0)}();var qh,Zh={exports:{}};function ed(){if(qh)return Zh.exports;qh=1;var e,t="object"==typeof Reflect?Reflect:null,n=t&&"function"==typeof t.apply?t.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};e=t&&"function"==typeof t.ownKeys?t.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var r=Number.isNaN||function(e){return e!=e};function i(){i.init.call(this)}Zh.exports=i,Zh.exports.once=function(e,t){return new Promise(function(n,r){function i(n){e.removeListener(t,o),r(n)}function o(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}p(e,t,o,{once:!0}),"error"!==t&&function(e,t){"function"==typeof e.on&&p(e,"error",t,{once:!0})}(e,i)})},i.EventEmitter=i,i.prototype._events=void 0,i.prototype._eventsCount=0,i.prototype._maxListeners=void 0;var o=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function a(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function c(e,t,n,r){var i,o,c,l;if(s(n),void 0===(o=e._events)?(o=e._events=Object.create(null),e._eventsCount=0):(void 0!==o.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),o=e._events),c=o[t]),void 0===c)c=o[t]=n,++e._eventsCount;else if("function"==typeof c?c=o[t]=r?[n,c]:[c,n]:r?c.unshift(n):c.push(n),(i=a(e))>0&&c.length>i&&!c.warned){c.warned=!0;var u=new Error("Possible EventEmitter memory leak detected. "+c.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");u.name="MaxListenersExceededWarning",u.emitter=e,u.type=t,u.count=c.length,l=u,console&&console.warn&&console.warn(l)}return e}function l(){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 u(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=l.bind(r);return i.listener=n,r.wrapFn=i,i}function h(e,t,n){var r=e._events;if(void 0===r)return[];var i=r[t];return void 0===i?[]:"function"==typeof i?n?[i.listener||i]:[i]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(i):f(i,i.length)}function d(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function f(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function p(e,t,n,r){if("function"==typeof e.on)r.once?e.once(t,n):e.on(t,n);else{if("function"!=typeof e.addEventListener)throw new TypeError('The "emitter" argument must be of type EventEmitter. Received type '+typeof e);e.addEventListener(t,function i(o){r.once&&e.removeEventListener(t,i),n(o)})}}return Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");o=e}}),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(e){if("number"!=typeof e||e<0||r(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},i.prototype.getMaxListeners=function(){return a(this)},i.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var s;if(t.length>0&&(s=t[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)n(c,this,t);else{var l=c.length,u=f(c,l);for(r=0;r<l;++r)n(u[r],this,t)}return!0},i.prototype.addListener=function(e,t){return c(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return c(this,e,t,!0)},i.prototype.once=function(e,t){return s(t),this.on(e,u(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,u(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,i,o,a;if(s(t),void 0===(r=this._events))return this;if(void 0===(n=r[e]))return this;if(n===t||n.listener===t)0===--this._eventsCount?this._events=Object.create(null):(delete r[e],r.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(i=-1,o=n.length-1;o>=0;o--)if(n[o]===t||n[o].listener===t){a=n[o].listener,i=o;break}if(i<0)return this;0===i?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,i),1===n.length&&(r[e]=n[0]),void 0!==r.removeListener&&this.emit("removeListener",e,a||t)}return this},i.prototype.off=i.prototype.removeListener,i.prototype.removeAllListeners=function(e){var t,n,r;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0===--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var i,o=Object.keys(n);for(r=0;r<o.length;++r)"removeListener"!==(i=o[r])&&this.removeAllListeners(i);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(r=t.length-1;r>=0;r--)this.removeListener(e,t[r]);return this},i.prototype.listeners=function(e){return h(this,e,!0)},i.prototype.rawListeners=function(e){return h(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):d.call(e,t)},i.prototype.listenerCount=d,i.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]},Zh.exports}var td=ed();const nd=t(td);var rd,id,od,sd,ad,cd,ld,ud;function hd(){return id?rd:(id=1,rd=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)})}function dd(){if(sd)return od;sd=1;var t="object"==typeof e&&e&&e.Object===Object&&e;return od=t}function fd(){if(cd)return ad;cd=1;var e=dd(),t="object"==typeof self&&self&&self.Object===Object&&self,n=e||t||Function("return this")();return ad=n}var pd,_d,Ed,vd,md,gd,Id,Ld,wd,Cd,yd,Ad,Nd,Sd,Td,bd,Od,Rd,kd,Pd,Md,Dd,Gd,xd,Ud,Wd,Fd,Vd,jd,zd,Bd,Hd,Qd,Yd={};function Kd(){if(vd)return Ed;vd=1;var e=le(),t=dn(),n=Ir(),r=fe(),i=e("".charAt),o=e("".charCodeAt),s=e("".slice),a=function(e){return function(a,c){var l,u,h=n(r(a)),d=t(c),f=h.length;return d<0||d>=f?e?"":void 0:(l=o(h,d))<55296||l>56319||d+1===f||(u=o(h,d+1))<56320||u>57343?e?i(h,d):l:e?s(h,d,d+2):u-56320+(l-55296<<10)+65536}};return Ed={codeAt:a(!1),charAt:a(!0)}}function $d(){if(gd)return md;gd=1;var e=Kd().charAt;return md=function(t,n,r){return n+(r?e(t,n).length:1)},md}function Jd(){if(Ld)return Id;Ld=1;var e=le(),t=rt(),n=Math.floor,r=e("".charAt),i=e("".replace),o=e("".slice),s=/\$([$&'`]|\d{1,2}|<[^>]*>)/g,a=/\$([$&'`]|\d{1,2})/g;return Id=function(e,c,l,u,h,d){var f=l+e.length,p=u.length,_=a;return void 0!==h&&(h=t(h),_=s),i(d,_,function(t,i){var s;switch(r(i,0)){case"$":return"$";case"&":return e;case"`":return o(c,0,l);case"'":return o(c,f);case"<":s=h[o(i,1,-1)];break;default:var a=+i;if(0===a)return t;if(a>p){var d=n(a/10);return 0===d?t:d<=p?void 0===u[d-1]?r(i,1):u[d-1]+r(i,1):t}s=u[a-1]}return void 0===s?"":s})},Id}function Xd(){if(Od)return bd;Od=1;var e=fd().Symbol;return bd=e}function qd(){if(Gd)return Dd;Gd=1;var e=Xd(),t=function(){if(kd)return Rd;kd=1;var e=Xd(),t=Object.prototype,n=t.hasOwnProperty,r=t.toString,i=e?e.toStringTag:void 0;return Rd=function(e){var t=n.call(e,i),o=e[i];try{e[i]=void 0;var s=!0}catch(e){}var a=r.call(e);return s&&(t?e[i]=o:delete e[i]),a}}(),n=function(){if(Md)return Pd;Md=1;var e=Object.prototype.toString;return Pd=function(t){return e.call(t)}}(),r=e?e.toStringTag:void 0;return Dd=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":r&&r in Object(e)?t(e):n(e)}}function Zd(){return Ud?xd:(Ud=1,xd=function(e){return null!=e&&"object"==typeof e})}function ef(){if(Fd)return Wd;Fd=1;var e=qd(),t=Zd();return Wd=function(n){return"symbol"==typeof n||t(n)&&"[object Symbol]"==e(n)}}function tf(){if(Bd)return zd;Bd=1;var e=hd(),t=function(){if(ud)return ld;ud=1;var e=fd();return ld=function(){return e.Date.now()}}(),n=function(){if(jd)return Vd;jd=1;var e=function(){if(Td)return Sd;Td=1;var e=function(){if(Nd)return Ad;Nd=1;var e=/\s/;return Ad=function(t){for(var n=t.length;n--&&e.test(t.charAt(n)););return n}}(),t=/^\s+/;return Sd=function(n){return n?n.slice(0,e(n)+1).replace(t,""):n}}(),t=hd(),n=ef(),r=/^[-+]0x[0-9a-f]+$/i,i=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt;return Vd=function(a){if("number"==typeof a)return a;if(n(a))return NaN;if(t(a)){var c="function"==typeof a.valueOf?a.valueOf():a;a=t(c)?c+"":c}if("string"!=typeof a)return 0===a?a:+a;a=e(a);var l=i.test(a);return l||o.test(a)?s(a.slice(2),l?2:8):r.test(a)?NaN:+a}}(),r=Math.max,i=Math.min;return zd=function(o,s,a){var c,l,u,h,d,f,p=0,_=!1,E=!1,v=!0;if("function"!=typeof o)throw new TypeError("Expected a function");function m(e){var t=c,n=l;return c=l=void 0,p=e,h=o.apply(n,t)}function g(e){var t=e-f;return void 0===f||t>=s||t<0||E&&e-p>=u}function I(){var e=t();if(g(e))return L(e);d=setTimeout(I,function(e){var t=s-(e-f);return E?i(t,u-(e-p)):t}(e))}function L(e){return d=void 0,v&&c?m(e):(c=l=void 0,h)}function w(){var e=t(),n=g(e);if(c=arguments,l=this,f=e,n){if(void 0===d)return function(e){return p=e,d=setTimeout(I,s),_?m(e):h}(f);if(E)return clearTimeout(d),d=setTimeout(I,s),m(f)}return void 0===d&&(d=setTimeout(I,s)),h}return s=n(s)||0,e(a)&&(_=!!a.leading,u=(E="maxWait"in a)?r(n(a.maxWait)||0,s):u,v="trailing"in a?!!a.trailing:v),w.cancel=function(){void 0!==d&&clearTimeout(d),p=0,c=f=l=d=void 0},w.flush=function(){return void 0===d?h:L(t())},w},zd}!function(){if(yd)return Yd;yd=1;var e=dr(),t=m(),n=le(),r=function(){if(_d)return pd;_d=1,mc();var e=m(),t=Qt(),n=vc(),r=_(),i=st(),o=Ct(),s=i("species"),a=RegExp.prototype;return pd=function(c,l,u,h){var d=i(c),f=!r(function(){var e={};return e[d]=function(){return 7},7!==""[c](e)}),p=f&&!r(function(){var e=!1,t=/a/;if("split"===c){var n={};n[s]=function(){return t},(t={constructor:n,flags:""})[d]=/./[d]}return t.exec=function(){return e=!0,null},t[d](""),!e});if(!f||!p||u){var _=/./[d],E=l(d,""[c],function(t,r,i,o,s){var c=r.exec;return c===n||c===a.exec?f&&!s?{done:!0,value:e(_,r,i,o)}:{done:!0,value:e(t,i,r,o)}:{done:!1}});t(String.prototype,c,E[0]),t(a,d,E[1])}h&&o(a[d],"sham",!0)},pd}(),i=_(),o=Lt(),s=_e(),a=Ee(),c=dn(),l=pn(),u=Ir(),h=fe(),d=$d(),f=Ne(),p=Jd(),E=ac(),v=function(){if(Cd)return wd;Cd=1;var e=m(),t=Lt(),n=_e(),r=ue(),i=vc(),o=TypeError;return wd=function(s,a){var c=s.exec;if(n(c)){var l=e(c,s,a);return null!==l&&t(l),l}if("RegExp"===r(s))return e(i,s,a);throw new o("RegExp#exec called on incompatible receiver")},wd}(),g=st()("replace"),I=Math.max,L=Math.min,w=n([].concat),C=n([].push),y=n("".indexOf),A=n("".slice),N=function(e){return void 0===e?e:String(e)},S="$0"==="a".replace(/./,"$0"),T=!!/./[g]&&""===/./[g]("a","$0");r("replace",function(n,r,i){var _=T?"$":"$0";return[function(e,n){var i=h(this),o=a(e)?f(e,g):void 0;return o?t(o,e,i,n):t(r,u(i),e,n)},function(t,n){var a=o(this),h=u(t);if("string"==typeof n&&-1===y(n,_)&&-1===y(n,"$<")){var f=i(r,a,h,n);if(f.done)return f.value}var m=s(n);m||(n=u(n));var g,S=u(E(a)),T=-1!==y(S,"g");T&&(g=-1!==y(S,"u"),a.lastIndex=0);for(var b,O=[];null!==(b=v(a,h))&&(C(O,b),T);)""===u(b[0])&&(a.lastIndex=d(h,l(a.lastIndex),g));for(var R="",k=0,P=0;P<O.length;P++){for(var M,D=u((b=O[P])[0]),G=I(L(c(b.index),h.length),0),x=[],U=1;U<b.length;U++)C(x,N(b[U]));var W=b.groups;if(m){var F=w([D],x,G,h);void 0!==W&&C(F,W),M=u(e(n,void 0,F))}else M=p(D,h,G,x,W,n);G>=k&&(R+=A(h,k,G)+M,k=G+D.length)}return R+A(h,k)}]},!!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")})||!S||T)}();var nf=function(){if(Qd)return Hd;Qd=1;var e=tf(),t=hd();return Hd=function(n,r,i){var o=!0,s=!0;if("function"!=typeof n)throw new TypeError("Expected a function");return t(i)&&(o="leading"in i?!!i.leading:o,s="trailing"in i?!!i.trailing:s),e(n,r,{leading:o,maxWait:r,trailing:s})}}();const rf=t(nf);var of,sf={exports:{}},af={};!function(){if(of)return af;of=1;var e=hr(),t=m(),n=Ae(),r=Lt(),i=da(),o=Oa(),s=Ra(),a=Ze(),c=ua(),l=ka(),u=fa(),h=!a&&!l("filter",function(){}),d=!a&&!h&&u("filter",TypeError),f=a||h||d,p=o(function(){for(var e,n,i=this.iterator,o=this.predicate,a=this.next;;){if(e=r(t(a,i)),this.done=!!e.done)return;if(n=e.value,s(i,o,[n,this.counter++],!0))return n}});e({target:"Iterator",proto:!0,real:!0,forced:f},{filter:function(e){r(this);try{n(e)}catch(e){c(this,"throw",e)}return d?t(d,this,e):new p(i(this),{predicate:e})}})}();var cf,lf,uf,hf,df,ff,pf,_f,Ef,vf,mf,gf,If={};function Lf(){return lf?cf:(lf=1,cf="\t\n\v\f\r \u2028\u2029\ufeff")}function wf(){if(hf)return uf;hf=1;var e=le(),t=fe(),n=Ir(),r=Lf(),i=e("".replace),o=RegExp("^["+r+"]+"),s=RegExp("(^|[^"+r+"])["+r+"]+$"),a=function(e){return function(r){var a=n(t(r));return 1&e&&(a=i(a,o,"")),2&e&&(a=i(a,s,"$1")),a}};return uf={start:a(1),end:a(2),trim:a(3)}}function Cf(){if(ff)return df;ff=1;var e=Ft().PROPER,t=_(),n=Lf();return df=function(r){return t(function(){return!!n[r]()||"
"!=="
"[r]()||e&&n[r].name!==r})}}!function(){if(pf)return If;pf=1;var e=hr(),t=wf().trim;e({target:"String",proto:!0,forced:Cf()("trim")},{trim:function(){return t(this)}})}();var yf=(gf||(gf=1,function(e,t){t.formatArgs=function(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+e.exports.humanize(this.diff),!this.useColors)return;const n="color: "+this.color;t.splice(1,0,n,"color: inherit");let r=0,i=0;t[0].replace(/%[a-zA-Z%]/g,e=>{"%%"!==e&&(r++,"%c"===e&&(i=r))}),t.splice(i,0,n)},t.save=function(e){try{e?t.storage.setItem("debug",e):t.storage.removeItem("debug")}catch(e){}},t.load=function(){let e;try{e=t.storage.getItem("debug")||t.storage.getItem("DEBUG")}catch(e){}return!e&&"undefined"!=typeof process&&"env"in process&&(e=process.env.DEBUG),e},t.useColors=function(){if("undefined"!=typeof window&&window.process&&("renderer"===window.process.type||window.process.__nwjs))return!0;if("undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return"undefined"!=typeof document&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||"undefined"!=typeof window&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||"undefined"!=typeof navigator&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)},t.storage=function(){try{return localStorage}catch(e){}}(),t.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})(),t.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"],t.log=console.debug||console.log||(()=>{}),e.exports=(mf||(mf=1,vf=function(e){function t(e){let r,i,o,s=null;function a(...e){if(!a.enabled)return;const n=a,i=Number(new Date),o=i-(r||i);n.diff=o,n.prev=r,n.curr=i,r=i,e[0]=t.coerce(e[0]),"string"!=typeof e[0]&&e.unshift("%O");let s=0;e[0]=e[0].replace(/%([a-zA-Z%])/g,(r,i)=>{if("%%"===r)return"%";s++;const o=t.formatters[i];if("function"==typeof o){const t=e[s];r=o.call(n,t),e.splice(s,1),s--}return r}),t.formatArgs.call(n,e),(n.log||t.log).apply(n,e)}return a.namespace=e,a.useColors=t.useColors(),a.color=t.selectColor(e),a.extend=n,a.destroy=t.destroy,Object.defineProperty(a,"enabled",{enumerable:!0,configurable:!1,get:()=>null!==s?s:(i!==t.namespaces&&(i=t.namespaces,o=t.enabled(e)),o),set:e=>{s=e}}),"function"==typeof t.init&&t.init(a),a}function n(e,n){const r=t(this.namespace+(void 0===n?":":n)+e);return r.log=this.log,r}function r(e,t){let n=0,r=0,i=-1,o=0;for(;n<e.length;)if(r<t.length&&(t[r]===e[n]||"*"===t[r]))"*"===t[r]?(i=r,o=n,r++):(n++,r++);else{if(-1===i)return!1;r=i+1,o++,n=o}for(;r<t.length&&"*"===t[r];)r++;return r===t.length}return t.debug=t,t.default=t,t.coerce=function(e){return e instanceof Error?e.stack||e.message:e},t.disable=function(){const e=[...t.names,...t.skips.map(e=>"-"+e)].join(",");return t.enable(""),e},t.enable=function(e){t.save(e),t.namespaces=e,t.names=[],t.skips=[];const n=("string"==typeof e?e:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(const e of n)"-"===e[0]?t.skips.push(e.slice(1)):t.names.push(e)},t.enabled=function(e){for(const n of t.skips)if(r(e,n))return!1;for(const n of t.names)if(r(e,n))return!0;return!1},t.humanize=function(){if(Ef)return _f;Ef=1;var e=1e3,t=60*e,n=60*t,r=24*n,i=7*r;function o(e,t,n,r){var i=t>=1.5*n;return Math.round(e/n)+" "+r+(i?"s":"")}return _f=function(s,a){a=a||{};var c,l,u=typeof s;if("string"===u&&s.length>0)return function(o){if(!((o=String(o)).length>100)){var s=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(o);if(s){var a=parseFloat(s[1]);switch((s[2]||"ms").toLowerCase()){case"years":case"year":case"yrs":case"yr":case"y":return 315576e5*a;case"weeks":case"week":case"w":return a*i;case"days":case"day":case"d":return a*r;case"hours":case"hour":case"hrs":case"hr":case"h":return a*n;case"minutes":case"minute":case"mins":case"min":case"m":return a*t;case"seconds":case"second":case"secs":case"sec":case"s":return a*e;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return a;default:return}}}}(s);if("number"===u&&isFinite(s))return a.long?(c=s,(l=Math.abs(c))>=r?o(c,l,r,"day"):l>=n?o(c,l,n,"hour"):l>=t?o(c,l,t,"minute"):l>=e?o(c,l,e,"second"):c+" ms"):function(i){var o=Math.abs(i);return o>=r?Math.round(i/r)+"d":o>=n?Math.round(i/n)+"h":o>=t?Math.round(i/t)+"m":o>=e?Math.round(i/e)+"s":i+"ms"}(s);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(s))},_f}(),t.destroy=function(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")},Object.keys(e).forEach(n=>{t[n]=e[n]}),t.names=[],t.skips=[],t.formatters={},t.selectColor=function(e){let n=0;for(let t=0;t<e.length;t++)n=(n<<5)-n+e.charCodeAt(t),n|=0;return t.colors[Math.abs(n)%t.colors.length]},t.enable(t.load()),t}),vf)(t);const{formatters:n}=e.exports;n.j=function(e){try{return JSON.stringify(e)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}}(sf,sf.exports)),sf.exports);const Af=t(yf);var Nf,Sf,Tf=(Sf||(Sf=1,Nf=function(e,t){if("string"!=typeof e)throw new TypeError("Expected a string");for(var n,r=String(e),i="",o=!!t&&!!t.extended,s=!!t&&!!t.globstar,a=!1,c=t&&"string"==typeof t.flags?t.flags:"",l=0,u=r.length;l<u;l++)switch(n=r[l]){case"/":case"$":case"^":case"+":case".":case"(":case")":case"=":case"!":case"|":i+="\\"+n;break;case"?":if(o){i+=".";break}case"[":case"]":if(o){i+=n;break}case"{":if(o){a=!0,i+="(";break}case"}":if(o){a=!1,i+=")";break}case",":if(a){i+="|";break}i+="\\"+n;break;case"*":for(var h=r[l-1],d=1;"*"===r[l+1];)d++,l++;var f=r[l+1];s?!(d>1)||"/"!==h&&void 0!==h||"/"!==f&&void 0!==f?i+="([^/]*)":(i+="((?:[^/]*(?:/|$))*)",l++):i+=".*";break;default:i+=n}return c&&~c.indexOf("g")||(i="^"+i+"$"),new RegExp(i,c)}),Nf);const bf=t(Tf);var Of,Rf={};!function(){if(Of)return Rf;Of=1;var e=du(),t=fu(),n=e.aTypedArrayConstructor;(0,e.exportTypedArrayStaticMethod)("of",function(){for(var e=0,t=arguments.length,r=new(n(this))(t);t>e;)r[e]=arguments[e++];return r},t)}();const kf=[];for(let e=0;e<256;++e)kf.push((e+256).toString(16).slice(1));let Pf;const Mf=new Uint8Array(16),Df={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};const Gf=Af("cbio.ActivityDetection");var xf=new WeakMap,Uf=new WeakMap,Wf=new WeakMap,Ff=new WeakMap,Vf=new WeakMap,jf=new WeakMap,zf=new WeakMap;class Bf extends td.EventEmitter{constructor(e){super(),Mr(this,xf,!1),Mr(this,Uf,!1),Mr(this,Wf,null),Mr(this,Ff,9e5),Ur(this,"start",()=>{Pr(xf,this)||(Dr(xf,this,!0),Gf("started"),document.addEventListener("mouseenter",Pr(Vf,this),{capture:!0,passive:!0}),document.addEventListener("mouseleave",Pr(Vf,this),{capture:!0,passive:!0}),document.addEventListener("mousemove",Pr(Vf,this),{capture:!0,passive:!0}),document.addEventListener("touchstart",Pr(Vf,this),{capture:!0,passive:!0}),document.addEventListener("touchend",Pr(Vf,this),{capture:!0,passive:!0}),document.addEventListener("touchmove",Pr(Vf,this),{capture:!0,passive:!0}),document.addEventListener("visibilitychange",Pr(Vf,this),{capture:!0}),Pr(Vf,this).call(this))}),Ur(this,"stop",()=>{Dr(Uf,this,!1),Dr(xf,this,!1),Gf("stopped"),clearTimeout(Pr(Wf,this)),this.removeAllListeners(),document.removeEventListener("mouseenter",Pr(Vf,this),{capture:!0,passive:!0}),document.removeEventListener("mouseleave",Pr(Vf,this),{capture:!0,passive:!0}),document.removeEventListener("mousemove",Pr(Vf,this),{capture:!0,passive:!0}),document.removeEventListener("touchstart",Pr(Vf,this),{capture:!0,passive:!0}),document.removeEventListener("touchend",Pr(Vf,this),{capture:!0,passive:!0}),document.removeEventListener("touchmove",Pr(Vf,this),{capture:!0,passive:!0}),document.removeEventListener("visibilitychange",Pr(Vf,this),{capture:!0})}),Ur(this,"isActive",()=>Pr(Uf,this)),Mr(this,Vf,rf(()=>{Pr(jf,this).call(this),clearTimeout(Pr(Wf,this)),Dr(Wf,this,setTimeout(Pr(zf,this),Pr(Ff,this))),this.emit("activity")},500,{trailing:!1})),Mr(this,jf,()=>{Pr(Uf,this)||(document.hidden?Gf("window is hidden, not becoming active"):(Dr(Uf,this,!0),Gf("became active"),this.emit("active")))}),Mr(this,zf,()=>{Pr(Uf,this)&&(Dr(Uf,this,!1),Gf("became inactive"),this.emit("inactive"))}),e&&Dr(Ff,this,e)}}var Hf,Qf={exports:{}},Yf=(Hf||(Hf=1,function(e){let t,n,r;try{t=new TextDecoder}catch(e){}let i=0;const o={};let s,a,c,l,u,h,d,f=11281e4,p=1681e4,_={},E=0,v=0,m=[],g=[],I={useRecords:!1,mapsAsObjects:!0},L=!1,w=2;var C;try{new C("")}catch(e){w=1/0}class y{constructor(e){if(e&&(!e.keyMap&&!e._keyMap||e.useRecords||(e.useRecords=!1,e.mapsAsObjects=!0),!1===e.useRecords&&void 0===e.mapsAsObjects&&(e.mapsAsObjects=!0),e.getStructures&&(e.getShared=e.getStructures),e.getShared&&!e.structures&&((e.structures=[]).uninitialized=!0),e.keyMap)){this.mapKey=new Map;for(let[t,n]of Object.entries(e.keyMap))this.mapKey.set(n,t)}Object.assign(this,e)}decodeKey(e){return this.keyMap&&this.mapKey.get(e)||e}encodeKey(e){return this.keyMap&&this.keyMap.hasOwnProperty(e)?this.keyMap[e]:e}encodeKeys(e){if(!this._keyMap)return e;let t=new Map;for(let[n,r]of Object.entries(e))t.set(this._keyMap.hasOwnProperty(n)?this._keyMap[n]:n,r);return t}decodeKeys(e){if(!this._keyMap||"Map"!=e.constructor.name)return e;if(!this._mapKey){this._mapKey=new Map;for(let[e,t]of Object.entries(this._keyMap))this._mapKey.set(t,e)}let t={};return e.forEach((e,n)=>t[b(this._mapKey.has(n)?this._mapKey.get(n):n)]=e),t}mapDecode(e,t){let n=this.decode(e);return this._keyMap&&"Array"===n.constructor.name?n.map(e=>this.decodeKeys(e)):n}decode(e,t){if(n)return K(()=>($(),this?this.decode(e,t):y.prototype.decode.call(I,e,t)));r=t>-1?t:e.length,i=0,v=0,a=null,c=null,n=e;try{h=e.dataView||(e.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength))}catch(t){if(n=null,e instanceof Uint8Array)throw t;throw new Error("Source must be a Uint8Array or Buffer but was a "+(e&&"object"==typeof e?e.constructor.name:typeof e))}if(this instanceof y){if(_=this,u=this.sharedValues&&(this.pack?new Array(this.maxPrivatePackedValues||16).concat(this.sharedValues):this.sharedValues),this.structures)return s=this.structures,A();(!s||s.length>0)&&(s=[])}else _=I,(!s||s.length>0)&&(s=[]),u=null;return A()}decodeMultiple(e,t){let n,r=0;try{let o=e.length;L=!0;let s=this?this.decode(e,o):X.decode(e,o);if(!t){for(n=[s];i<o;)r=i,n.push(A());return n}if(!1===t(s))return;for(;i<o;)if(r=i,!1===t(A()))return}catch(e){throw e.lastPosition=r,e.values=n,e}finally{L=!1,$()}}}function A(){try{let e=N();if(c){if(i>=c.postBundlePosition){let e=new Error("Unexpected bundle position");throw e.incomplete=!0,e}i=c.postBundlePosition,c=null}if(i==r)s=null,n=null,l&&(l=null);else{if(i>r){let e=new Error("Unexpected end of CBOR data");throw e.incomplete=!0,e}if(!L)throw new Error("Data read, but end of buffer not reached")}return e}catch(e){throw $(),(e instanceof RangeError||e.message.startsWith("Unexpected end of buffer"))&&(e.incomplete=!0),e}}function N(){let e=n[i++],t=e>>5;if(e&=31,e>23)switch(e){case 24:e=n[i++];break;case 25:if(7==t)return function(){let e=n[i++],t=n[i++],r=(127&e)>>2;if(31===r)return t||3&e?NaN:128&e?-1/0:1/0;if(0===r){let n=((3&e)<<8|t)/(1<<24);return 128&e?-n:n}return D[3]=128&e|56+(r>>1),D[2]=(7&e)<<5|t>>3,D[1]=t<<5,D[0]=0,M[0]}();e=h.getUint16(i),i+=2;break;case 26:if(7==t){let e=h.getFloat32(i);if(_.useFloat32>2){let t=J[(127&n[i])<<1|n[i+1]>>7];return i+=4,(t*e+(e>0?.5:-.5)|0)/t}return i+=4,e}e=h.getUint32(i),i+=4;break;case 27:if(7==t){let e=h.getFloat64(i);return i+=8,e}if(t>1){if(h.getUint32(i)>0)throw new Error("JavaScript does not support arrays, maps, or strings with length over 4294967295");e=h.getUint32(i+4)}else _.int64AsNumber?(e=4294967296*h.getUint32(i),e+=h.getUint32(i+4)):e=h.getBigUint64(i);i+=8;break;case 31:switch(t){case 2:case 3:throw new Error("Indefinite length not supported for byte or text strings");case 4:let e,n=[],r=0;for(;(e=N())!=o;){if(r>=f)throw new Error(`Array length exceeds ${f}`);n[r++]=e}return 4==t?n:3==t?n.join(""):Buffer.concat(n);case 5:let i;if(_.mapsAsObjects){let e={},t=0;if(_.keyMap)for(;(i=N())!=o;){if(t++>=p)throw new Error(`Property count exceeds ${p}`);e[b(_.decodeKey(i))]=N()}else for(;(i=N())!=o;){if(t++>=p)throw new Error(`Property count exceeds ${p}`);e[b(i)]=N()}return e}{d&&(_.mapsAsObjects=!0,d=!1);let e=new Map;if(_.keyMap){let t=0;for(;(i=N())!=o;){if(t++>=p)throw new Error(`Map size exceeds ${p}`);e.set(_.decodeKey(i),N())}}else{let t=0;for(;(i=N())!=o;){if(t++>=p)throw new Error(`Map size exceeds ${p}`);e.set(i,N())}}return e}case 7:return o;default:throw new Error("Invalid major type for indefinite length "+t)}default:throw new Error("Unknown token "+e)}switch(t){case 0:return e;case 1:return~e;case 2:return l=e,_.copyBuffers?Uint8Array.prototype.slice.call(n,i,i+=l):n.subarray(i,i+=l);case 3:if(v>=i)return a.slice(i-E,(i+=e)-E);if(0==v&&r<140&&e<32){let t=e<16?P(e):function(e){let t=i,r=new Array(e);for(let o=0;o<e;o++){const e=n[i++];if((128&e)>0)return void(i=t);r[o]=e}return k.apply(String,r)}(e);if(null!=t)return t}return O(e);case 4:if(e>=f)throw new Error(`Array length exceeds ${f}`);let t=new Array(e);for(let n=0;n<e;n++)t[n]=N();return t;case 5:if(e>=p)throw new Error(`Map size exceeds ${f}`);if(_.mapsAsObjects){let t={};if(_.keyMap)for(let n=0;n<e;n++)t[b(_.decodeKey(N()))]=N();else for(let n=0;n<e;n++)t[b(N())]=N();return t}{d&&(_.mapsAsObjects=!0,d=!1);let t=new Map;if(_.keyMap)for(let n=0;n<e;n++)t.set(_.decodeKey(N()),N());else for(let n=0;n<e;n++)t.set(N(),N());return t}case 6:if(e>=57337){let t=s[8191&e];if(t)return t.read||(t.read=T(t)),t.read();if(e<65536){if(57343==e){let e=Q(),t=N(),n=N();x(t,n);let r={};if(_.keyMap)for(let t=2;t<e;t++)r[b(_.decodeKey(n[t-2]))]=N();else for(let t=2;t<e;t++)r[b(n[t-2])]=N();return r}if(57342==e){let e=Q(),t=N();for(let n=2;n<e;n++)x(t++,N());return N()}if(57337==e)return function(){let e=Q(),t=i+N();for(let t=2;t<e;t++){let e=Q();i+=e}let n=i;return i=t,c=[R(Q()),R(Q())],c.position0=0,c.position1=0,c.postBundlePosition=i,i=n,N()}();if(_.getShared&&(Y(),t=s[8191&e],t))return t.read||(t.read=T(t)),t.read()}}let o=m[e];if(o)return o.handlesRead?o(N):o(N());{let t=N();for(let n=0;n<g.length;n++){let r=g[n](e,t);if(void 0!==r)return r}return new G(t,e)}case 7:switch(e){case 20:return!1;case 21:return!0;case 22:return null;case 23:return;default:let t=(u||V())[e];if(void 0!==t)return t;throw new Error("Unknown token "+e)}default:if(isNaN(e)){let e=new Error("Unexpected end of CBOR data");throw e.incomplete=!0,e}throw new Error("Unknown CBOR token "+e)}var l}const S=/^[a-zA-Z_$][a-zA-Z\d_$]*$/;function T(e){if(!e)throw new Error("Structure is required in record definition");return e.slowReads=0,function(){let e=n[i++];if(e&=31,e>23)switch(e){case 24:e=n[i++];break;case 25:e=h.getUint16(i),i+=2;break;case 26:e=h.getUint32(i),i+=4;break;default:throw new Error("Expected array header, but got "+n[i-1])}let t=this.compiledReader;for(;t;){if(t.propertyCount===e)return t(N);t=t.next}if(this.slowReads++>=w){let n=this.length==e?this:this.slice(0,e);return t=_.keyMap?new C("r","return {"+n.map(e=>_.decodeKey(e)).map(e=>S.test(e)?b(e)+":r()":"["+JSON.stringify(e)+"]:r()").join(",")+"}"):new C("r","return {"+n.map(e=>S.test(e)?b(e)+":r()":"["+JSON.stringify(e)+"]:r()").join(",")+"}"),this.compiledReader&&(t.next=this.compiledReader),t.propertyCount=e,this.compiledReader=t,t(N)}let r={};if(_.keyMap)for(let t=0;t<e;t++)r[b(_.decodeKey(this[t]))]=N();else for(let t=0;t<e;t++)r[b(this[t])]=N();return r}}function b(e){if("string"==typeof e)return"__proto__"===e?"__proto_":e;if("number"==typeof e||"boolean"==typeof e||"bigint"==typeof e)return e.toString();if(null==e)return e+"";throw new Error("Invalid property name type "+typeof e)}let O=R;function R(e){let r;if(e<16&&(r=P(e)))return r;if(e>64&&t)return t.decode(n.subarray(i,i+=e));const o=i+e,s=[];for(r="";i<o;){const e=n[i++];if(128&e)if(192==(224&e)){const t=63&n[i++];s.push((31&e)<<6|t)}else if(224==(240&e)){const t=63&n[i++],r=63&n[i++];s.push((31&e)<<12|t<<6|r)}else if(240==(248&e)){let t=(7&e)<<18|(63&n[i++])<<12|(63&n[i++])<<6|63&n[i++];t>65535&&(t-=65536,s.push(t>>>10&1023|55296),t=56320|1023&t),s.push(t)}else s.push(e);else s.push(e);s.length>=4096&&(r+=k.apply(String,s),s.length=0)}return s.length>0&&(r+=k.apply(String,s)),r}let k=String.fromCharCode;function P(e){if(e<4){if(e<2){if(0===e)return"";{let e=n[i++];return(128&e)>1?void(i-=1):k(e)}}{let t=n[i++],r=n[i++];if((128&t)>0||(128&r)>0)return void(i-=2);if(e<3)return k(t,r);let o=n[i++];return(128&o)>0?void(i-=3):k(t,r,o)}}{let t=n[i++],r=n[i++],o=n[i++],s=n[i++];if((128&t)>0||(128&r)>0||(128&o)>0||(128&s)>0)return void(i-=4);if(e<6){if(4===e)return k(t,r,o,s);{let e=n[i++];return(128&e)>0?void(i-=5):k(t,r,o,s,e)}}if(e<8){let a=n[i++],c=n[i++];if((128&a)>0||(128&c)>0)return void(i-=6);if(e<7)return k(t,r,o,s,a,c);let l=n[i++];return(128&l)>0?void(i-=7):k(t,r,o,s,a,c,l)}{let a=n[i++],c=n[i++],l=n[i++],u=n[i++];if((128&a)>0||(128&c)>0||(128&l)>0||(128&u)>0)return void(i-=8);if(e<10){if(8===e)return k(t,r,o,s,a,c,l,u);{let e=n[i++];return(128&e)>0?void(i-=9):k(t,r,o,s,a,c,l,u,e)}}if(e<12){let h=n[i++],d=n[i++];if((128&h)>0||(128&d)>0)return void(i-=10);if(e<11)return k(t,r,o,s,a,c,l,u,h,d);let f=n[i++];return(128&f)>0?void(i-=11):k(t,r,o,s,a,c,l,u,h,d,f)}{let h=n[i++],d=n[i++],f=n[i++],p=n[i++];if((128&h)>0||(128&d)>0||(128&f)>0||(128&p)>0)return void(i-=12);if(e<14){if(12===e)return k(t,r,o,s,a,c,l,u,h,d,f,p);{let e=n[i++];return(128&e)>0?void(i-=13):k(t,r,o,s,a,c,l,u,h,d,f,p,e)}}{let _=n[i++],E=n[i++];if((128&_)>0||(128&E)>0)return void(i-=14);if(e<15)return k(t,r,o,s,a,c,l,u,h,d,f,p,_,E);let v=n[i++];return(128&v)>0?void(i-=15):k(t,r,o,s,a,c,l,u,h,d,f,p,_,E,v)}}}}}let M=new Float32Array(1),D=new Uint8Array(M.buffer,0,4);new Array(4096);class G{constructor(e,t){this.value=e,this.tag=t}}m[0]=e=>new Date(e),m[1]=e=>new Date(Math.round(1e3*e)),m[2]=e=>{let t=BigInt(0);for(let n=0,r=e.byteLength;n<r;n++)t=BigInt(e[n])+(t<<BigInt(8));return t},m[3]=e=>BigInt(-1)-m[2](e),m[4]=e=>+(e[1]+"e"+e[0]),m[5]=e=>e[1]*Math.exp(e[0]*Math.log(2));const x=(e,t)=>{let n=s[e-=57344];n&&n.isShared&&((s.restoreStructures||(s.restoreStructures=[]))[e]=n),s[e]=t,t.read=T(t)};m[105]=e=>{let t=e.length,n=e[1];x(e[0],n);let r={};for(let i=2;i<t;i++)r[b(n[i-2])]=e[i];return r},m[14]=e=>c?c[0].slice(c.position0,c.position0+=e):new G(e,14),m[15]=e=>c?c[1].slice(c.position1,c.position1+=e):new G(e,15);let U={Error:Error,RegExp:RegExp};m[27]=e=>(U[e[0]]||Error)(e[1],e[2]);const W=e=>{if(132!=n[i++]){let e=new Error("Packed values structure must be followed by a 4 element array");throw n.length<i&&(e.incomplete=!0),e}let t=e();if(!t||!t.length){let e=new Error("Packed values structure must be followed by a 4 element array");throw e.incomplete=!0,e}return u=u?t.concat(u.slice(t.length)):t,u.prefixes=e(),u.suffixes=e(),e()};function F(e,t){return"string"==typeof e?e+t:e instanceof Array?e.concat(t):Object.assign({},e,t)}function V(){if(!u){if(!_.getShared)throw new Error("No packed values available");Y()}return u}W.handlesRead=!0,m[51]=W,m[6]=e=>{if(!u){if(!_.getShared)return new G(e,6);Y()}if("number"==typeof e)return u[16+(e>=0?2*e:-2*e-1)];let t=new Error("No support for non-integer packed references yet");throw void 0===e&&(t.incomplete=!0),t},m[28]=e=>{l||(l=new Map,l.id=0);let t,r=l.id++,o=i;t=n[i]>>5==4?[]:{};let s={target:t};l.set(r,s);let a=e();return s.used?(Object.getPrototypeOf(t)!==Object.getPrototypeOf(a)&&(i=o,t=a,l.set(r,{target:t}),a=e()),Object.assign(t,a)):(s.target=a,a)},m[28].handlesRead=!0,m[29]=e=>{let t=l.get(e);return t.used=!0,t.target},m[258]=e=>new Set(e),(m[259]=e=>(_.mapsAsObjects&&(_.mapsAsObjects=!1,d=!0),e())).handlesRead=!0;g.push((e,t)=>e>=225&&e<=255?F(V().prefixes[e-224],t):e>=28704&&e<=32767?F(V().prefixes[e-28672],t):e>=1879052288&&e<=2147483647?F(V().prefixes[e-1879048192],t):e>=216&&e<=223?F(t,V().suffixes[e-216]):e>=27647&&e<=28671?F(t,V().suffixes[e-27639]):e>=1811940352&&e<=1879048191?F(t,V().suffixes[e-1811939328]):1399353956==e?{packedValues:u,structures:s.slice(0),version:t}:55799==e?t:void 0);const j=1==new Uint8Array(new Uint16Array([1]).buffer)[0],z=[Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,"undefined"==typeof BigUint64Array?{name:"BigUint64Array"}:BigUint64Array,Int8Array,Int16Array,Int32Array,"undefined"==typeof BigInt64Array?{name:"BigInt64Array"}:BigInt64Array,Float32Array,Float64Array],B=[64,68,69,70,71,72,77,78,79,85,86];for(let e=0;e<z.length;e++)H(z[e],B[e]);function H(e,t){let n,r="get"+e.name.slice(0,-5);"function"==typeof e?n=e.BYTES_PER_ELEMENT:e=null;for(let i=0;i<2;i++){if(!i&&1==n)continue;let o=2==n?1:4==n?2:8==n?3:0;m[i?t:t-4]=1==n||i==j?r=>{if(!e)throw new Error("Could not find typed array for code "+t);return _.copyBuffers||1!==n&&(2!==n||1&r.byteOffset)&&(4!==n||3&r.byteOffset)&&(8!==n||7&r.byteOffset)?new e(Uint8Array.prototype.slice.call(r,0).buffer):new e(r.buffer,r.byteOffset,r.byteLength>>o)}:n=>{if(!e)throw new Error("Could not find typed array for code "+t);let s=new DataView(n.buffer,n.byteOffset,n.byteLength),a=n.length>>o,c=new e(a),l=s[r];for(let e=0;e<a;e++)c[e]=l.call(s,e<<o,i);return c}}}function Q(){let e=31&n[i++];if(e>23)switch(e){case 24:e=n[i++];break;case 25:e=h.getUint16(i),i+=2;break;case 26:e=h.getUint32(i),i+=4}return e}function Y(){if(_.getShared){let e=K(()=>(n=null,_.getShared()))||{},t=e.structures||[];_.sharedVersion=e.version,u=_.sharedValues=e.packedValues,!0===s?_.structures=s=t:s.splice.apply(s,[0,t.length].concat(t))}}function K(e){let t=r,o=i,u=E,d=v,f=a,p=l,m=c,g=new Uint8Array(n.slice(0,r)),I=s,w=_,C=L,y=e();return r=t,i=o,E=u,v=d,a=f,l=p,c=m,n=g,L=C,s=I,_=w,h=new DataView(n.buffer,n.byteOffset,n.byteLength),y}function $(){n=null,l=null,s=null}const J=new Array(147);for(let e=0;e<256;e++)J[e]=+("1e"+Math.floor(45.15-.30103*e));let X=new y({useRecords:!1});const q=X.decode,Z=X.decodeMultiple,ee={NEVER:0,ALWAYS:1,DECIMAL_ROUND:3,DECIMAL_FIT:4};let te,ne,re;try{te=new TextEncoder}catch(e){}const ie="object"==typeof globalThis&&globalThis.Buffer,oe=void 0!==ie,se=oe?ie.allocUnsafeSlow:Uint8Array,ae=oe?ie:Uint8Array,ce=oe?4294967296:2144337920;let le,ue,he,de,fe=0,pe=null;const _e=/[\u0080-\uFFFF]/,Ee=Symbol("record-id");class ve extends y{constructor(e){let t,n,r,i,o;super(e),this.offset=0,e=e||{};let s=ae.prototype.utf8Write?function(e,t,n){return ue.utf8Write(e,t,n)}:!(!te||!te.encodeInto)&&function(e,t){return te.encodeInto(e,ue.subarray(t)).written},a=this,c=e.structures||e.saveStructures,l=e.maxSharedStructures;if(null==l&&(l=c?128:0),l>8190)throw new Error("Maximum maxSharedStructure is 8190");let u=e.sequential;u&&(l=0),this.structures||(this.structures=[]),this.saveStructures&&(this.saveShared=this.saveStructures);let h,d,f,p=e.sharedValues;if(p){f=Object.create(null);for(let e=0,t=p.length;e<t;e++)f[p[e]]=e}let _=[],E=0,v=0;this.mapEncode=function(e,t){return this._keyMap&&!this._mapped&&"Array"===e.constructor.name&&(e=e.map(e=>this.encodeKeys(e))),this.encode(e,t)},this.encode=function(s,c){if(ue||(ue=new se(8192),he=new DataView(ue.buffer,0,8192),fe=0),de=ue.length-10,de-fe<2048?(ue=new se(ue.length),he=new DataView(ue.buffer,0,ue.length),de=ue.length-10,fe=0):c===Ge&&(fe=fe+7&2147483640),t=fe,a.useSelfDescribedHeader&&(he.setUint32(fe,3654940416),fe+=3),o=a.structuredClone?new Map:null,a.bundleStrings&&"string"!=typeof s?(pe=[],pe.size=1/0):pe=null,n=a.structures,n){if(n.uninitialized){let e=a.getShared()||{};a.structures=n=e.structures||[],a.sharedVersion=e.version;let t=a.sharedValues=e.packedValues;if(t){f={};for(let e=0,n=t.length;e<n;e++)f[t[e]]=e}}let e=n.length;if(e>l&&!u&&(e=l),!n.transitions){n.transitions=Object.create(null);for(let t=0;t<e;t++){let e=n[t];if(!e)continue;let r,i=n.transitions;for(let n=0,o=e.length;n<o;n++){void 0===i[Ee]&&(i[Ee]=t);let o=e[n];r=i[o],r||(r=i[o]=Object.create(null)),i=r}i[Ee]=1048576|t}}u||(n.nextId=e)}if(r&&(r=!1),i=n||[],d=f,e.pack){let t=new Map;if(t.values=[],t.encoder=a,t.maxValues=e.maxPrivatePackedValues||(f?16:1/0),t.objectMap=f||!1,t.samplingPackedValues=h,Ce(s,t),t.values.length>0){ue[fe++]=216,ue[fe++]=51,Ie(4);let e=t.values;m(e),Ie(0),Ie(0),d=Object.create(f||null);for(let t=0,n=e.length;t<n;t++)d[e[t]]=t}}le=c&Ue;try{if(le)return;if(m(s),pe&&Se(t,m),a.offset=fe,o&&o.idsToInsert){fe+=2*o.idsToInsert.length,fe>de&&I(fe),a.offset=fe;let e=function(e,t){let n,r=2*t.length,i=e.length-r;t.sort((e,t)=>e.offset>t.offset?1:-1);for(let n=0;n<t.length;n++){let r=t[n];r.id=n;for(let t of r.references)e[t++]=n>>8,e[t]=255&n}for(;n=t.pop();){let t=n.offset;e.copyWithin(t+r,t,i),r-=2;let o=t+r;e[o++]=216,e[o++]=28,i=t}return e}(ue.subarray(t,fe),o.idsToInsert);return o=null,e}return c&Ge?(ue.start=t,ue.end=fe,ue):ue.subarray(t,fe)}finally{if(n)if(v<10&&v++,n.length>l&&(n.length=l),E>1e4)n.transitions=null,v=0,E=0,_.length>0&&(_=[]);else if(_.length>0&&!u){for(let e=0,t=_.length;e<t;e++)_[e][Ee]=void 0;_=[]}if(r&&a.saveShared){a.structures.length>l&&(a.structures=a.structures.slice(0,l));let e=ue.subarray(t,fe);return!1===a.updateSharedData()?a.encode(s):e}c&xe&&(fe=t)}},this.findCommonStringsToPack=()=>(h=new Map,f||(f=Object.create(null)),e=>{let t=e&&e.threshold||4,n=this.pack?e.maxPrivatePackedValues||16:0;p||(p=this.sharedValues=[]);for(let[e,i]of h)i.count>t&&(f[e]=n++,p.push(e),r=!0);for(;this.saveShared&&!1===this.updateSharedData(););h=null});const m=n=>{fe>de&&(ue=I(fe));var r,i=typeof n;if("string"===i){if(d){let t=d[n];if(t>=0)return void(t<16?ue[fe++]=t+224:(ue[fe++]=198,m(1&t?15-t>>1:t-16>>1)));if(h&&!e.pack){let e=h.get(n);e?e.count++:h.set(n,{count:1})}}let i,o=n.length;if(pe&&o>=4&&o<1024){if((pe.size+=o)>61440){let e,n=(pe[0]?3*pe[0].length+pe[1].length:0)+10;fe+n>de&&(ue=I(fe+n)),ue[fe++]=217,ue[fe++]=223,ue[fe++]=249,ue[fe++]=pe.position?132:130,ue[fe++]=26,e=fe-t,fe+=4,pe.position&&Se(t,m),pe=["",""],pe.size=0,pe.position=e}let e=_e.test(n);return pe[e?0:1]+=n,ue[fe++]=e?206:207,void m(o)}i=o<32?1:o<256?2:o<65536?3:5;let a=3*o;if(fe+a>de&&(ue=I(fe+a)),o<64||!s){let e,t,s,a=fe+i;for(e=0;e<o;e++)t=n.charCodeAt(e),t<128?ue[a++]=t:t<2048?(ue[a++]=t>>6|192,ue[a++]=63&t|128):55296==(64512&t)&&56320==(64512&(s=n.charCodeAt(e+1)))?(t=65536+((1023&t)<<10)+(1023&s),e++,ue[a++]=t>>18|240,ue[a++]=t>>12&63|128,ue[a++]=t>>6&63|128,ue[a++]=63&t|128):(ue[a++]=t>>12|224,ue[a++]=t>>6&63|128,ue[a++]=63&t|128);r=a-fe-i}else r=s(n,fe+i,a);r<24?ue[fe++]=96|r:r<256?(i<2&&ue.copyWithin(fe+2,fe+1,fe+1+r),ue[fe++]=120,ue[fe++]=r):r<65536?(i<3&&ue.copyWithin(fe+3,fe+2,fe+2+r),ue[fe++]=121,ue[fe++]=r>>8,ue[fe++]=255&r):(i<5&&ue.copyWithin(fe+5,fe+3,fe+3+r),ue[fe++]=122,he.setUint32(fe,r),fe+=4),fe+=r}else if("number"===i)if(this.alwaysUseFloat||n>>>0!==n)if(this.alwaysUseFloat||(0|n)!==n){let e;if((e=this.useFloat32)>0&&n<4294967296&&n>=-2147483648){let t;if(ue[fe++]=250,he.setFloat32(fe,n),e<4||(0|(t=n*J[(127&ue[fe])<<1|ue[fe+1]>>7]))===t)return void(fe+=4);fe--}ue[fe++]=251,he.setFloat64(fe,n),fe+=8}else n>=-24?ue[fe++]=31-n:n>=-256?(ue[fe++]=56,ue[fe++]=~n):n>=-65536?(ue[fe++]=57,he.setUint16(fe,~n),fe+=2):(ue[fe++]=58,he.setUint32(fe,~n),fe+=4);else n<24?ue[fe++]=n:n<256?(ue[fe++]=24,ue[fe++]=n):n<65536?(ue[fe++]=25,ue[fe++]=n>>8,ue[fe++]=255&n):(ue[fe++]=26,he.setUint32(fe,n),fe+=4);else if("object"===i)if(n){if(o){let e=o.get(n);if(e){if(ue[fe++]=216,ue[fe++]=29,ue[fe++]=25,!e.references){let t=o.idsToInsert||(o.idsToInsert=[]);e.references=[],t.push(e)}return e.references.push(fe-t),void(fe+=2)}o.set(n,{offset:fe-t})}let e=n.constructor;if(e===Object)g(n);else if(e===Array){(r=n.length)<24?ue[fe++]=128|r:Ie(r);for(let e=0;e<r;e++)m(n[e])}else if(e===Map)if((this.mapsAsObjects?!1!==this.useTag259ForMaps:this.useTag259ForMaps)&&(ue[fe++]=217,ue[fe++]=1,ue[fe++]=3),(r=n.size)<24?ue[fe++]=160|r:r<256?(ue[fe++]=184,ue[fe++]=r):r<65536?(ue[fe++]=185,ue[fe++]=r>>8,ue[fe++]=255&r):(ue[fe++]=186,he.setUint32(fe,r),fe+=4),a.keyMap)for(let[e,t]of n)m(a.encodeKey(e)),m(t);else for(let[e,t]of n)m(e),m(t);else{for(let e=0,t=ne.length;e<t;e++)if(n instanceof re[e]){let t=ne[e],r=t.tag;return null==r&&(r=t.getTag&&t.getTag.call(this,n)),r<24?ue[fe++]=192|r:r<256?(ue[fe++]=216,ue[fe++]=r):r<65536?(ue[fe++]=217,ue[fe++]=r>>8,ue[fe++]=255&r):r>-1&&(ue[fe++]=218,he.setUint32(fe,r),fe+=4),void t.encode.call(this,n,m,I)}if(n[Symbol.iterator]){if(le){let e=new Error("Iterable should be serialized as iterator");throw e.iteratorNotHandled=!0,e}ue[fe++]=159;for(let e of n)m(e);return void(ue[fe++]=255)}if(n[Symbol.asyncIterator]||we(n)){let e=new Error("Iterable/blob should be serialized as iterator");throw e.iteratorNotHandled=!0,e}if(this.useToJSON&&n.toJSON){const e=n.toJSON();if(e!==n)return m(e)}g(n)}}else ue[fe++]=246;else if("boolean"===i)ue[fe++]=n?245:244;else if("bigint"===i){if(n<BigInt(1)<<BigInt(64)&&n>=0)ue[fe++]=27,he.setBigUint64(fe,n);else if(n>-(BigInt(1)<<BigInt(64))&&n<0)ue[fe++]=59,he.setBigUint64(fe,-n-BigInt(1));else{if(!this.largeBigIntToFloat){n>=BigInt(0)?ue[fe++]=194:(ue[fe++]=195,n=BigInt(-1)-n);let e=[];for(;n;)e.push(Number(n&BigInt(255))),n>>=BigInt(8);return void Ne(new Uint8Array(e.reverse()),I)}ue[fe++]=251,he.setFloat64(fe,Number(n))}fe+=8}else{if("undefined"!==i)throw new Error("Unknown type: "+i);ue[fe++]=247}},g=!1===this.useRecords?this.variableMapSize?e=>{let t=Object.keys(e),n=Object.values(e),r=t.length;if(r<24?ue[fe++]=160|r:r<256?(ue[fe++]=184,ue[fe++]=r):r<65536?(ue[fe++]=185,ue[fe++]=r>>8,ue[fe++]=255&r):(ue[fe++]=186,he.setUint32(fe,r),fe+=4),a.keyMap)for(let e=0;e<r;e++)m(a.encodeKey(t[e])),m(n[e]);else for(let e=0;e<r;e++)m(t[e]),m(n[e])}:e=>{ue[fe++]=185;let n=fe-t;fe+=2;let r=0;if(a.keyMap)for(let t in e)("function"!=typeof e.hasOwnProperty||e.hasOwnProperty(t))&&(m(a.encodeKey(t)),m(e[t]),r++);else for(let t in e)("function"!=typeof e.hasOwnProperty||e.hasOwnProperty(t))&&(m(t),m(e[t]),r++);ue[n+++t]=r>>8,ue[n+t]=255&r}:(e,t)=>{let n,o,s,a=i.transitions||(i.transitions=Object.create(null)),c=0,u=0;if(this.keyMap){s=Object.keys(e).map(e=>this.encodeKey(e)),u=s.length;for(let e=0;e<u;e++){let t=s[e];n=a[t],n||(n=a[t]=Object.create(null),c++),a=n}}else for(let t in e)("function"!=typeof e.hasOwnProperty||e.hasOwnProperty(t))&&(n=a[t],n||(1048576&a[Ee]&&(o=65535&a[Ee]),n=a[t]=Object.create(null),c++),a=n,u++);let h=a[Ee];if(void 0!==h)h&=65535,ue[fe++]=217,ue[fe++]=h>>8|224,ue[fe++]=255&h;else{if(s||(s=a.__keys__||(a.__keys__=Object.keys(e))),void 0===o?(h=i.nextId++,h||(h=0,i.nextId=1),h>=256&&(i.nextId=(h=l)+1)):h=o,i[h]=s,!(h<l)){if(a[Ee]=h,he.setUint32(fe,3655335680),fe+=3,c&&(E+=v*c),_.length>=256-l&&(_.shift()[Ee]=void 0),_.push(a),Ie(u+2),m(57344+h),m(s),t)return;for(let t in e)("function"!=typeof e.hasOwnProperty||e.hasOwnProperty(t))&&m(e[t]);return}ue[fe++]=217,ue[fe++]=h>>8|224,ue[fe++]=255&h,a=i.transitions;for(let e=0;e<u;e++)(void 0===a[Ee]||1048576&a[Ee])&&(a[Ee]=h),a=a[s[e]];a[Ee]=1048576|h,r=!0}if(u<24?ue[fe++]=128|u:Ie(u),!t)for(let t in e)("function"!=typeof e.hasOwnProperty||e.hasOwnProperty(t))&&m(e[t])},I=e=>{let n;if(e>16777216){if(e-t>ce)throw new Error("Encoded buffer would be larger than maximum buffer size");n=Math.min(ce,4096*Math.round(Math.max((e-t)*(e>67108864?1.25:2),4194304)/4096))}else n=1+(Math.max(e-t<<2,ue.length-1)>>12)<<12;let r=new se(n);return he=new DataView(r.buffer,0,n),ue.copy?ue.copy(r,0,t,e):r.set(ue.slice(t,e)),fe-=t,t=0,de=r.length-10,ue=r};let L=100,w=1e3;function*C(e,n,r){let i=e.constructor;if(i===Object){let t=!1!==a.useRecords;t?g(e,!0):me(Object.keys(e).length,160);for(let r in e){let i=e[r];t||m(r),i&&"object"==typeof i?n[r]?yield*C(i,n[r]):yield*y(i,n,r):m(i)}}else if(i===Array){let r=e.length;Ie(r);for(let i=0;i<r;i++){let r=e[i];r&&("object"==typeof r||fe-t>L)?n.element?yield*C(r,n.element):yield*y(r,n,"element"):m(r)}}else if(e[Symbol.iterator]&&!e.buffer){ue[fe++]=159;for(let r of e)r&&("object"==typeof r||fe-t>L)?n.element?yield*C(r,n.element):yield*y(r,n,"element"):m(r);ue[fe++]=255}else we(e)?(me(e.size,64),yield ue.subarray(t,fe),yield e,A()):e[Symbol.asyncIterator]?(ue[fe++]=159,yield ue.subarray(t,fe),yield e,A(),ue[fe++]=255):m(e);r&&fe>t?yield ue.subarray(t,fe):fe-t>L&&(yield ue.subarray(t,fe),A())}function*y(e,n,r){let i=fe-t;try{m(e),fe-t>L&&(yield ue.subarray(t,fe),A())}catch(o){if(!o.iteratorNotHandled)throw o;n[r]={},fe=t+i,yield*C.call(this,e,n[r])}}function A(){L=w,a.encode(null,Ue)}function N(e,t,n){return L=t&&t.chunkThreshold?w=t.chunkThreshold:100,e&&"object"==typeof e?(a.encode(null,Ue),n(e,a.iterateProperties||(a.iterateProperties={}),!0)):[a.encode(e)]}function S(e,t){return T.apply(this,arguments)}function T(){return T=Br(function*(e,t){for(let c of C(e,t,!0)){let e=c.constructor;if(e===ae||e===Uint8Array)yield c;else if(we(c)){let e,t=c.stream().getReader();for(;!(e=yield Rr(t.read())).done;)yield e.value}else if(c[Symbol.asyncIterator]){var n,r=!1,i=!1;try{for(var o,s=br(c);r=!(o=yield Rr(s.next())).done;r=!1){let e=o.value;A(),e?yield*Tr(br(S(e,t.async||(t.async={})))):yield a.encode(e)}}catch(e){i=!0,n=e}finally{try{r&&null!=s.return&&(yield Rr(s.return()))}finally{if(i)throw n}}}else yield c}}),T.apply(this,arguments)}this.encodeAsIterable=function(e,t){return N(e,t,C)},this.encodeAsAsyncIterable=function(e,t){return N(e,t,S)}}useBuffer(e){ue=e,he=new DataView(ue.buffer,ue.byteOffset,ue.byteLength),fe=0}clearSharedData(){this.structures&&(this.structures=[]),this.sharedValues&&(this.sharedValues=void 0)}updateSharedData(){let e=this.sharedVersion||0;this.sharedVersion=e+1;let t=this.structures.slice(0),n=new ge(t,this.sharedValues,this.sharedVersion),r=this.saveShared(n,t=>(t&&t.version||0)==e);return!1===r?(n=this.getShared()||{},this.structures=n.structures||[],this.sharedValues=n.packedValues,this.sharedVersion=n.version,this.structures.nextId=this.structures.length):t.forEach((e,t)=>this.structures[t]=e),r}}function me(e,t){e<24?ue[fe++]=t|e:e<256?(ue[fe++]=24|t,ue[fe++]=e):e<65536?(ue[fe++]=25|t,ue[fe++]=e>>8,ue[fe++]=255&e):(ue[fe++]=26|t,he.setUint32(fe,e),fe+=4)}class ge{constructor(e,t,n){this.structures=e,this.packedValues=t,this.version=n}}function Ie(e){e<24?ue[fe++]=128|e:e<256?(ue[fe++]=152,ue[fe++]=e):e<65536?(ue[fe++]=153,ue[fe++]=e>>8,ue[fe++]=255&e):(ue[fe++]=154,he.setUint32(fe,e),fe+=4)}const Le="undefined"==typeof Blob?function(){}:Blob;function we(e){if(e instanceof Le)return!0;let t=e[Symbol.toStringTag];return"Blob"===t||"File"===t}function Ce(e,t){switch(typeof e){case"string":if(e.length>3){if(t.objectMap[e]>-1||t.values.length>=t.maxValues)return;let n=t.get(e);if(n)2==++n.count&&t.values.push(e);else if(t.set(e,{count:1}),t.samplingPackedValues){let n=t.samplingPackedValues.get(e);n?n.count++:t.samplingPackedValues.set(e,{count:1})}}break;case"object":if(e)if(e instanceof Array)for(let n=0,r=e.length;n<r;n++)Ce(e[n],t);else{let r=!t.encoder.useRecords;for(var n in e)e.hasOwnProperty(n)&&(r&&Ce(n,t),Ce(e[n],t))}break;case"function":console.log(e)}}const ye=1==new Uint8Array(new Uint16Array([1]).buffer)[0];function Ae(e,t){return!ye&&t>1&&(e-=4),{tag:e,encode:function(e,t){let n=e.byteLength,r=e.byteOffset||0,i=e.buffer||e;t(oe?ie.from(i,r,n):new Uint8Array(i,r,n))}}}function Ne(e,t){let n=e.byteLength;n<24?ue[fe++]=64+n:n<256?(ue[fe++]=88,ue[fe++]=n):n<65536?(ue[fe++]=89,ue[fe++]=n>>8,ue[fe++]=255&n):(ue[fe++]=90,he.setUint32(fe,n),fe+=4),fe+n>=ue.length&&t(fe+n),ue.set(e.buffer?e:new Uint8Array(e),fe),fe+=n}function Se(e,t){he.setUint32(pe.position+e,fe-pe.position-e+1);let n=pe;pe=null,t(n[0]),t(n[1])}re=[Date,Set,Error,RegExp,G,ArrayBuffer,Uint8Array,Uint8ClampedArray,Uint16Array,Uint32Array,"undefined"==typeof BigUint64Array?function(){}:BigUint64Array,Int8Array,Int16Array,Int32Array,"undefined"==typeof BigInt64Array?function(){}:BigInt64Array,Float32Array,Float64Array,ge],ne=[{tag:1,encode(e,t){let n=e.getTime()/1e3;(this.useTimestamp32||0===e.getMilliseconds())&&n>=0&&n<4294967296?(ue[fe++]=26,he.setUint32(fe,n),fe+=4):(ue[fe++]=251,he.setFloat64(fe,n),fe+=8)}},{tag:258,encode(e,t){t(Array.from(e))}},{tag:27,encode(e,t){t([e.name,e.message])}},{tag:27,encode(e,t){t(["RegExp",e.source,e.flags])}},{getTag:e=>e.tag,encode(e,t){t(e.value)}},{encode(e,t,n){Ne(e,n)}},{getTag(e){if(e.constructor===Uint8Array&&(this.tagUint8Array||oe&&!1!==this.tagUint8Array))return 64},encode(e,t,n){Ne(e,n)}},Ae(68,1),Ae(69,2),Ae(70,4),Ae(71,8),Ae(72,1),Ae(77,2),Ae(78,4),Ae(79,8),Ae(85,4),Ae(86,8),{encode(e,t){let n=e.packedValues||[],r=e.structures||[];if(n.values.length>0){ue[fe++]=216,ue[fe++]=51,Ie(4);let e=n.values;t(e),Ie(0),Ie(0),packedObjectMap=Object.create(sharedPackedObjectMap||null);for(let t=0,n=e.length;t<n;t++)packedObjectMap[e[t]]=t}if(r){he.setUint32(fe,3655335424),fe+=3;let n=r.slice(0);n.unshift(57344),n.push(new G(e.version,1399353956)),t(n)}else t(new G(e.version,1399353956))}}];let Te=new ve({useRecords:!1});const be=Te.encode,Oe=Te.encodeAsIterable,Re=Te.encodeAsAsyncIterable,{NEVER:ke,ALWAYS:Pe,DECIMAL_ROUND:Me,DECIMAL_FIT:De}=ee,Ge=512,xe=1024,Ue=2048;function We(){return(We=Br(function*(e,t){const n=new ve(t);var r,i=!1,o=!1;try{for(var s,a=br(e);i=!(s=yield Rr(a.next())).done;i=!1){const e=s.value;yield n.encode(e)}}catch(e){o=!0,r=e}finally{try{i&&null!=a.return&&(yield Rr(a.return()))}finally{if(o)throw r}}})).apply(this,arguments)}e.ALWAYS=Pe,e.DECIMAL_FIT=De,e.DECIMAL_ROUND=Me,e.Decoder=y,e.Encoder=ve,e.FLOAT32_OPTIONS=ee,e.NEVER=ke,e.REUSE_BUFFER_MODE=Ge,e.Tag=G,e.addExtension=function(e){if(e.Class){if(!e.encode)throw new Error("Extension has no encode function");re.unshift(e.Class),ne.unshift(e)}!function(e){m[e.tag]=e.decode}(e)},e.clearSource=$,e.decode=q,e.decodeIter=function(e,t={}){if(!e||"object"!=typeof e)throw new Error("first argument must be an Iterable, Async Iterable, Iterator, Async Iterator, or a promise");const n=new y(t);let r;const i=e=>{let t;r&&(e=Buffer.concat([r,e]),r=void 0);try{t=n.decodeMultiple(e)}catch(n){if(!n.incomplete)throw n;r=e.slice(n.lastPosition),t=n.values}return t};return"function"==typeof e[Symbol.iterator]?function*(){for(const t of e)yield*i(t)}():"function"==typeof e[Symbol.asyncIterator]?(o=Br(function*(){var t,n=!1,r=!1;try{for(var o,s=br(e);n=!(o=yield Rr(s.next())).done;n=!1){const e=o.value;yield*Tr(br(i(e)))}}catch(e){r=!0,t=e}finally{try{n&&null!=s.return&&(yield Rr(s.return()))}finally{if(r)throw t}}}),function(){return o.apply(this,arguments)})():void 0;var o},e.decodeMultiple=Z,e.encode=be,e.encodeAsAsyncIterable=Re,e.encodeAsIterable=Oe,e.encodeIter=function(e,t={}){if(e&&"object"==typeof e){if("function"==typeof e[Symbol.iterator])return function*(e,t){const n=new ve(t);for(const t of e)yield n.encode(t)}(e,t);if("function"==typeof e.then||"function"==typeof e[Symbol.asyncIterator])return function(e,t){return We.apply(this,arguments)}(e,t);throw new Error("first argument must be an Iterable, Async Iterable, Iterator, Async Iterator, or a Promise")}throw new Error("first argument must be an Iterable, Async Iterable, or a Promise for an Async Iterable")},e.isNativeAccelerationEnabled=!1,e.roundFloat32=function(e){M[0]=e;let t=J[(127&D[3])<<1|D[2]>>7];return(t*e+(e>0?.5:-.5)|0)/t},e.setSizeLimits=function(e){e.maxMapSize&&(p=e.maxMapSize),e.maxArraySize&&(f=e.maxArraySize),e.maxObjectSize&&e.maxObjectSize}}(Qf.exports)),Qf.exports);const Kf=(e,t)=>t?.125*e+.875*t:e;var $f=new WeakMap,Jf=new WeakMap,Xf=new WeakMap,qf=new WeakMap,Zf=new WeakMap;class ep{constructor(){Mr(this,$f,void 0),Mr(this,Jf,void 0),Mr(this,Xf,void 0),Mr(this,qf,void 0),Mr(this,Zf,void 0),Ur(this,"reset",()=>{Dr($f,this,0),Dr(Jf,this,0),Dr(Xf,this,0),Dr(qf,this,0),Dr(Zf,this,0)}),Ur(this,"latency",()=>{if(0===Pr($f,this))return 0;if(Pr(Zf,this)>0&&Pr($f,this)===Pr(Xf,this))return Pr(Zf,this);const e=Date.now()-Pr(Jf,this);return e>Pr(Zf,this)?Kf(e,Pr(Zf,this)):Pr(Zf,this)}),Ur(this,"onSent",e=>{Pr(Xf,this)<Pr($f,this)||(Dr($f,this,e),Dr(Jf,this,Date.now()))}),Ur(this,"onReceived",e=>{let t;if(Dr(Xf,this,e),Dr(qf,this,Date.now()),0===Pr($f,this)||0===Pr(Xf,this))t=0;else{if(Pr($f,this)!==Pr(Xf,this))return;t=Pr(qf,this)-Pr(Jf,this)}Dr(Zf,this,Kf(t,Pr(Zf,this)))}),this.reset()}}const tp=Af("cbio.CBORSocket");var np=new WeakMap,rp=new WeakMap,ip=new WeakMap,op=new WeakMap,sp=new WeakMap,ap=new WeakMap,cp=new WeakMap,lp=new WeakMap,up=new WeakMap,hp=new WeakMap,dp=new WeakMap,fp=new WeakMap,pp=new WeakMap,_p=new WeakMap,Ep=new WeakMap,vp=new WeakMap,mp=new WeakMap,gp=new WeakMap,Ip=new WeakMap,Lp=new WeakMap,wp=new WeakMap,Cp=new WeakMap,yp=new WeakMap;class Ap extends td.EventEmitter{constructor(e){super(),Mr(this,np,void 0),Mr(this,rp,!1),Mr(this,ip,void 0),Mr(this,op,0),Mr(this,sp,6e4),Mr(this,ap,1e3+Math.floor(1e3*Math.random())),Mr(this,cp,void 0),Mr(this,lp,void 0),Mr(this,up,void 0),Mr(this,hp,0),Mr(this,dp,0),Mr(this,fp,new ep),Mr(this,pp,async()=>{var e,t;if(Pr(ip,this))return void console.error("Socket already exists");tp("creating ws");const n=await Pr(np,this).getUrl(),r=["cbor",...await(null===(e=(t=Pr(np,this)).getProtocols)||void 0===e?void 0:e.call(t))||[]].filter(Boolean);if(!n)return;if(Pr(rp,this))return;if(Pr(ip,this))return;const i=Pr(np,this).createWebSocket?Pr(np,this).createWebSocket(n,r):new WebSocket(n,r);i.binaryType="arraybuffer",i.addEventListener("open",Pr(vp,this)),i.addEventListener("message",Pr(gp,this)),i.addEventListener("close",Pr(wp,this)),i.addEventListener("error",Pr(Cp,this)),Dr(ip,this,i),Pr(fp,this).reset()}),Mr(this,_p,(...e)=>{if(Pr(ip,this))try{Pr(ip,this).close(...e)}catch(e){tp("error closing socket",e)}Dr(ip,this,null)}),Mr(this,Ep,()=>{tp("navigator went offline"),Pr(_p,this).call(this),Pr(Lp,this).call(this)}),Mr(this,vp,()=>{tp("ws opened"),this.emit("open"),clearTimeout(Pr(lp,this)),Dr(lp,this,setTimeout(()=>{tp("counting open as success"),Dr(op,this,0)},5e3))}),Mr(this,mp,e=>{Dr(dp,this,e),Pr(fp,this).onReceived(e)}),Mr(this,gp,e=>{try{const{event:t,data:n,ack:r}=Yf.decode(new Uint8Array(e.data));return r?Pr(mp,this).call(this,r):t?this.emit("event",t,n):console.error("Socket received message without event",e)}catch(t){return console.error("Error processing message",e.data,t.stack)}}),Mr(this,Ip,e=>{if(0===e)return 0;const t=1+.5*Math.random(),n=Math.floor((300*e)**1.2*t);return Math.min(Math.max(Pr(ap,this),n),Pr(sp,this))}),Mr(this,Lp,()=>{if(Pr(rp,this))return void tp("reconnect skipped as socket was closed");if(Pr(up,this))return void tp("reconnect skipped as reconnect already scheduled");if("undefined"!=typeof navigator&&!1===navigator.onLine)return tp("navigator offline"),void Dr(up,this,setTimeout(()=>{Dr(up,this,null),Pr(Lp,this).call(this)},1e3));const e=Pr(Ip,this).call(this,Pr(op,this));tp("reconnecting in",e,"attempts",Pr(op,this)),Dr(up,this,setTimeout(async()=>{Dr(up,this,null),Pr(rp,this)?console.warn("tried to reconnect after close"):(Dr(ip,this,null),await Pr(pp,this).call(this).catch(Pr(Cp,this)),Pr(ip,this)||Pr(rp,this)||Pr(Lp,this).call(this))},e)),Dr(op,this,Pr(op,this)+1)}),Mr(this,wp,()=>{tp("ws closed"),this.emit("close"),tp("resetting message acks"),Dr(hp,this,0),Dr(dp,this,0),Pr(fp,this).onReceived(0),Pr(rp,this)||Pr(Lp,this).call(this),clearTimeout(Pr(lp,this))}),Mr(this,Cp,e=>{Pr(rp,this)?console.info("CobrowseIO: Called error after close.",e):0!==this.listenerCount("error")?this.emit("error",e):console.warn("CobrowseIO: Called handleError without listeners. Please report this.",e)}),Mr(this,yp,()=>{this.send("ping")}),Ur(this,"messageLag",()=>Pr(dp,this)?Pr(hp,this)-Pr(dp,this):0),Ur(this,"setMaxReconnectDelay",e=>{tp("set max delay",e),Dr(sp,this,e)}),Ur(this,"setMinReconnectDelay",e=>{tp("set min delay",e),Dr(ap,this,e)}),Ur(this,"send",(e,t)=>{if(!this.connected)return!1;Dr(hp,this,Pr(hp,this)+1),Pr(fp,this).onSent(Pr(hp,this));const n=Date.now(),r=Yf.encode(t?{event:e,id:Pr(hp,this),data:t}:{event:e});return tp("encoded",e,`${r.byteLength} bytes`,"in",Date.now()-n+"ms"),Pr(ip,this).send(r),!0}),Ur(this,"close",(...e)=>{tp("close"),Dr(rp,this,!0),Pr(_p,this).call(this,...e),clearTimeout(Pr(up,this)),clearInterval(Pr(cp,this)),this.removeAllListeners(),"undefined"!=typeof window&&(window.removeEventListener("unload",this.close),window.addEventListener("offline",Pr(Ep,this)))}),tp("created cbor socket"),Dr(np,this,e),Dr(cp,this,setInterval(Pr(yp,this),6e4)),"undefined"!=typeof window&&(window.addEventListener("unload",this.close),window.addEventListener("offline",Pr(Ep,this))),this.on("error",e=>tp("ws errored",e)),Pr(Lp,this).call(this)}get bufferedAmount(){return Pr(ip,this)?Pr(ip,this).bufferedAmount:1/0}get connected(){return!!Pr(ip,this)&&Pr(ip,this).readyState===Pr(ip,this).OPEN}get metrics(){return Pr(fp,this)}}const Np=e=>e instanceof RegExp?e:e&&"string"==typeof e?bf(e,{flags:"i"}):null,Sp=(e=[])=>{const t=[];return Array.isArray(e)?(e.forEach(e=>{const n=Np(e);n&&t.push(n)}),e=>t.some(t=>t.test(e))):()=>!1},Tp=Af("cbio.IFrameBridge");var bp=new WeakMap,Op=new WeakMap,Rp=new WeakMap,kp=new WeakMap,Pp=new WeakMap,Mp=new WeakMap,Dp=new WeakMap,Gp=new WeakMap,xp=new WeakMap,Up=new WeakMap;class Wp extends td.EventEmitter{get trustedOrigins(){return Pr(bp,this)}set trustedOrigins(e){Dr(bp,this,e),Dr(Op,this,Sp(e))}get trustedIframes(){return[...Pr(Pp,this)].filter(e=>e.contentWindow&&this.isTrusted(e.contentWindow))}constructor(e){super(),Mr(this,bp,[]),Mr(this,Op,()=>!1),Ur(this,"automaticTrustedOrigins",[]),Mr(this,Rp,null),Mr(this,kp,new WeakMap),Mr(this,Pp,new Set),Ur(this,"start",()=>{window.removeEventListener("message",Pr(Mp,this)),window.addEventListener("message",Pr(Mp,this)),Pr(Rp,this)&&this.send(Pr(Rp,this),"init",null,{trustedOnly:!1})}),Ur(this,"stop",()=>{window.removeEventListener("message",Pr(Mp,this))}),Mr(this,Mp,e=>{if(!Pr(Gp,this).call(this,e))return Tp("ignoring message, not a cobrowse message",e.data);this.establishTrust(e.source,e.origin);const{trustedOnly:t,event:n,data:r}=e.data;this.emit(n,r,{source:e.source,origin:e.origin,trusted:this.isTrusted(e.source),iframe:Pr(Up,this).call(this,e.source),fromParent:Pr(Dp,this).call(this,e.source),trustedOnly:t})}),Mr(this,Dp,(e,t=window.parent)=>e===t||t.parent!==t&&Pr(Dp,this).call(this,e,t.parent)),Mr(this,Gp,e=>{if(!e.data)return!1;const{cobrowseio:t,event:n}=e.data;return!!t&&!!n}),Mr(this,xp,e=>this.automaticTrustedOrigins.includes(e)||Pr(Op,this).call(this,e)),Ur(this,"isTrusted",e=>{const t=Pr(kp,this).get(e);return!!t&&Pr(xp,this).call(this,t)}),Mr(this,Up,e=>Array.from(Pr(Pp,this)).find(t=>t.contentWindow===e)),Ur(this,"send",(e,t,n,{trustedOnly:r=!0,targetOrigin:i}={})=>{let o=i||Pr(kp,this).get(e);if(r&&!Pr(xp,this).call(this,o))return Tp(`not sending ${t} as target source is not trusted: ${o}`);r||o||(o="*"),e.postMessage({trustedOnly:r,cobrowseio:!0,event:t,data:n},o)}),Ur(this,"sendToParent",(e,t,{trustedOnly:n=!0}={})=>{Pr(Rp,this)&&this.send(Pr(Rp,this),e,t,{trustedOnly:n})}),Ur(this,"broadcastToChildren",(e,t,{trustedOnly:n=!0}={})=>{Pr(Pp,this).forEach(r=>{r.contentWindow&&this.send(r.contentWindow,e,t,{trustedOnly:n})})}),Ur(this,"track",e=>{Pr(Pp,this).has(e)||(Pr(Pp,this).add(e),this.emit("iframe_discovered",e))}),Ur(this,"remove",e=>{Pr(Pp,this).delete(e)}),Ur(this,"establishTrust",(e,t)=>{e&&Pr(kp,this).set(e,t)}),Ur(this,"breakTrust",e=>{Pr(kp,this).has(e)&&Pr(kp,this).set(e,null)}),Dr(Rp,this,e),Tp("iframe bridge constructed in",document,"with parent",Pr(Rp,this))}}var Fp=new WeakMap,Vp=new WeakMap,jp=new WeakMap,zp=new WeakMap,Bp=new WeakMap;class Hp extends td.EventEmitter{constructor(e,t){super(),Mr(this,Fp,void 0),Mr(this,Vp,void 0),Mr(this,jp,new Map),Ur(this,"send",(e,t,{timeout:n=0,trustedOnly:r=!0}={})=>new Promise((i,o)=>{const s=Df.randomUUID?Df.randomUUID():function(e){var t,n,r,i;const o=null!==(t=null!==(n=(e=e||{}).random)&&void 0!==n?n:null===(r=(i=e).rng)||void 0===r?void 0:r.call(i))&&void 0!==t?t:function(){if(!Pf){if("undefined"==typeof crypto||!crypto.getRandomValues)throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");Pf=crypto.getRandomValues.bind(crypto)}return Pf(Mf)}();if(o.length<16)throw new Error("Random bytes length must be >= 16");return o[6]=15&o[6]|64,o[8]=63&o[8]|128,function(e,t=0){return(kf[e[t+0]]+kf[e[t+1]]+kf[e[t+2]]+kf[e[t+3]]+"-"+kf[e[t+4]]+kf[e[t+5]]+"-"+kf[e[t+6]]+kf[e[t+7]]+"-"+kf[e[t+8]]+kf[e[t+9]]+"-"+kf[e[t+10]]+kf[e[t+11]]+kf[e[t+12]]+kf[e[t+13]]+kf[e[t+14]]+kf[e[t+15]]).toLowerCase()}(o)}(a);var a;Pr(jp,this).set(s,{resolve:i,reject:o});const c={id:s,method:e,data:t};Pr(Fp,this).send(Pr(Vp,this),"rpc:request",c,{trustedOnly:r}),n&&setTimeout(()=>{const e=Pr(jp,this).get(s);e&&(e.reject(new Error("Request timed out")),Pr(jp,this).delete(s))},n)})),Mr(this,zp,async(e,{source:t,trusted:n,trustedOnly:r})=>{const{id:i,method:o,data:s}=e,a=this.listeners(o);if(a.length>1)throw new Error("only a single RPC listener is allowed per event");if(0===a.length)return;const[c]=a;try{const e=await c(s,{trusted:n});Pr(Fp,this).send(t,"rpc:response",{id:i,data:e},{trustedOnly:r})}catch(e){Pr(Fp,this).send(t,"rpc:response",{id:i,error:e},{trustedOnly:r})}}),Mr(this,Bp,(e,{trusted:t,trustedOnly:n})=>{if(n&&!t)return;const{error:r,id:i,data:o}=e,s=Pr(jp,this).get(i);s&&(r?s.reject(r):s.resolve(o),Pr(jp,this).delete(i))}),Dr(Fp,this,e),Dr(Vp,this,t),Pr(Fp,this).on("rpc:request",Pr(zp,this)),Pr(Fp,this).on("rpc:response",Pr(Bp,this))}destroy(){Pr(Fp,this).off("rpc:request",Pr(zp,this)),Pr(Fp,this).off("rpc:response",Pr(Bp,this)),Dr(Fp,this,null),Dr(Vp,this,null),Pr(jp,this).clear(),Dr(jp,this,null)}}function Qp(e){try{return!e.document&&!1}catch(e){return!0}}function Yp(e){return!!Qp(e)||!("IFRAME"!==e.tagName||!Qp(e.contentWindow))}var Kp,$p,Jp,Xp,qp,Zp,e_,t_,n_,r_,i_,o_={},s_={};function a_(){if(Jp)return $p;Jp=1;var e=_(),t=st(),n=E(),r=Ze(),i=t("iterator");return $p=!e(function(){var e=new URL("b?a=1&b=2&c=3","https://a"),t=e.searchParams,o=new URLSearchParams("a=1&a=2&b=3"),s="";return e.pathname="c%20d",t.forEach(function(e,n){t.delete("b"),s+=n+e}),o.delete("a",2),o.delete("b",void 0),r&&(!e.toJSON||!o.has("a",1)||o.has("a",2)||!o.has("a",void 0)||o.has("b"))||!t.size&&(r||!n)||!t.sort||"https://a/c%20d?a=1&c=3"!==e.href||"3"!==t.get("c")||"a=1"!==String(new URLSearchParams("?a=1"))||!t[i]||"a"!==new URL("https://a@b").username||"b"!==new URLSearchParams(new URLSearchParams("a=b")).get("a")||"xn--e1aybc"!==new URL("https://тест").host||"#%D0%B1"!==new URL("https://a#б").hash||"a1c3"!==s||"x"!==new URL("https://x",void 0).host})}function c_(){if(e_)return Zp;e_=1;var e=oa(),t=m(),n=rt(),r=Ra(),i=aa(),o=mu(),s=_n(),a=Cs(),c=la(),l=ca(),u=Array;return Zp=function(h){var d=n(h),f=o(this),p=arguments.length,_=p>1?arguments[1]:void 0,E=void 0!==_;E&&(_=e(_,p>2?arguments[2]:void 0));var v,m,g,I,L,w,C=l(d),y=0;if(!C||this===u&&i(C))for(v=s(d),m=f?new this(v):u(v);v>y;y++)w=E?_(d[y],y):d[y],a(m,y,w);else for(m=f?new this:[],L=(I=c(d,C)).next;!(g=t(L,I)).done;y++)w=E?r(I,_,[g.value,y],!0):g.value,a(m,y,w);return m.length=y,m},Zp}function l_(){if(i_)return r_;i_=1;var e=TypeError;return r_=function(t,n){if(t<n)throw new e("Not enough arguments");return t}}var u_,h_,d_,f_,p_,__,E_,v_={};function m_(){if(d_)return h_;d_=1;var e=o(),t=E(),n=Object.getOwnPropertyDescriptor;return h_=function(r){if(!t)return e[r];var i=n(e,r);return i&&i.value}}function g_(){if(p_)return f_;p_=1,$h(),function(){if(u_)return v_;u_=1;var e=hr(),t=le(),n=fn(),r=RangeError,i=String.fromCharCode,o=String.fromCodePoint,s=t([].join);e({target:"String",stat:!0,arity:1,forced:!!o&&1!==o.length},{fromCodePoint:function(e){for(var t,o=[],a=arguments.length,c=0;a>c;){if(t=+arguments[c++],n(t,1114111)!==t)throw new r(t+" is not a valid code point");o[c]=t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320)}return s(o,"")}})}();var e=hr(),t=o(),n=m_(),r=ve(),i=m(),s=le(),a=E(),c=a_(),l=Qt(),u=Zr(),h=Ao(),d=Ro(),f=Yh(),p=Bt(),_=No(),v=_e(),g=it(),I=oa(),L=gr(),w=Lt(),C=Ee(),y=Ir(),A=xs(),N=ce(),S=la(),T=ca(),b=Ta(),O=l_(),R=st(),k=Ui(),P=R("iterator"),M="URLSearchParams",D=M+"Iterator",G=p.set,x=p.getterFor(M),U=p.getterFor(D),W=n("fetch"),F=n("Request"),V=n("Headers"),j=F&&F.prototype,z=V&&V.prototype,B=t.TypeError,H=t.encodeURIComponent,Q=String.fromCharCode,Y=r("String","fromCodePoint"),K=parseInt,$=s("".charAt),J=s([].join),X=s([].push),q=s("".replace),Z=s([].shift),ee=s([].splice),te=s("".split),ne=s("".slice),re=s(/./.exec),ie=/\+/g,oe=/^[0-9a-f]+$/i,se=function(e,t){var n=ne(e,t,t+2);return re(oe,n)?K(n,16):NaN},ae=function(e){for(var t=0,n=128;n>0&&0!==(e&n);n>>=1)t++;return t},ue=function(e){var t=null;switch(e.length){case 1:t=e[0];break;case 2:t=(31&e[0])<<6|63&e[1];break;case 3:t=(15&e[0])<<12|(63&e[1])<<6|63&e[2];break;case 4:t=(7&e[0])<<18|(63&e[1])<<12|(63&e[2])<<6|63&e[3]}return t>1114111?null:t},he=function(e){for(var t=(e=q(e,ie," ")).length,n="",r=0;r<t;){var i=$(e,r);if("%"===i){if("%"===$(e,r+1)||r+3>t){n+="%",r++;continue}var o=se(e,r+1);if(o!=o){n+=i,r++;continue}r+=2;var s=ae(o);if(0===s)i=Q(o);else{if(1===s||s>4){n+="�",r++;continue}for(var a=[o],c=1;c<s&&!(3+ ++r>t||"%"!==$(e,r));){var l=se(e,r+1);if(l!=l){r+=3;break}if(l>191||l<128)break;X(a,l),r+=2,c++}if(a.length!==s){n+="�";continue}var u=ue(a);null===u?n+="�":i=Y(u)}}n+=i,r++}return n},de=/[!'()~]|%20/g,fe={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"},pe=function(e){return fe[e]},me=function(e){return q(H(e),de,pe)},ge=f(function(e,t){G(this,{type:D,target:x(e).entries,index:0,kind:t})},M,function(){var e=U(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,b(void 0,!0);var r=t[n];switch(e.kind){case"keys":return b(r.key,!1);case"values":return b(r.value,!1)}return b([r.key,r.value],!1)},!0),Ie=function(e){this.entries=[],this.url=null,void 0!==e&&(C(e)?this.parseObject(e):this.parseQuery("string"==typeof e?"?"===$(e,0)?ne(e,1):e:y(e)))};Ie.prototype={type:M,bindURL:function(e){this.url=e,this.update()},parseObject:function(e){var t,n,r,o,s,a,c,l=this.entries,u=T(e);if(u)for(n=(t=S(e,u)).next;!(r=i(n,t)).done;){if(s=(o=S(w(r.value))).next,(a=i(s,o)).done||(c=i(s,o)).done||!i(s,o).done)throw new B("Expected sequence with length 2");X(l,{key:y(a.value),value:y(c.value)})}else for(var h in e)g(e,h)&&X(l,{key:h,value:y(e[h])})},parseQuery:function(e){if(e)for(var t,n,r=this.entries,i=te(e,"&"),o=0;o<i.length;)(t=i[o++]).length&&(n=te(t,"="),X(r,{key:he(Z(n)),value:he(J(n,"="))}))},serialize:function(){for(var e,t=this.entries,n=[],r=0;r<t.length;)e=t[r++],X(n,me(e.key)+"="+me(e.value));return J(n,"&")},update:function(){this.entries.length=0,this.parseQuery(this.url.query)},updateURL:function(){this.url&&this.url.update()}};var Le=function(){_(this,we);var e=G(this,new Ie(arguments.length>0?arguments[0]:void 0));a||(this.size=e.entries.length)},we=Le.prototype;if(h(we,{append:function(e,t){var n=x(this);O(arguments.length,2),X(n.entries,{key:y(e),value:y(t)}),a||this.size++,n.updateURL()},delete:function(e){for(var t=x(this),n=O(arguments.length,1),r=t.entries,i=y(e),o=n<2?void 0:arguments[1],s=void 0===o?o:y(o),c=0;c<r.length;){var l=r[c];if(l.key!==i||void 0!==s&&l.value!==s)c++;else if(ee(r,c,1),void 0!==s)break}a||(this.size=r.length),t.updateURL()},get:function(e){var t=x(this).entries;O(arguments.length,1);for(var n=y(e),r=0;r<t.length;r++)if(t[r].key===n)return t[r].value;return null},getAll:function(e){var t=x(this).entries;O(arguments.length,1);for(var n=y(e),r=[],i=0;i<t.length;i++)t[i].key===n&&X(r,t[i].value);return r},has:function(e){for(var t=x(this).entries,n=O(arguments.length,1),r=y(e),i=n<2?void 0:arguments[1],o=void 0===i?i:y(i),s=0;s<t.length;){var a=t[s++];if(a.key===r&&(void 0===o||a.value===o))return!0}return!1},set:function(e,t){var n=x(this);O(arguments.length,1);for(var r,i=n.entries,o=!1,s=y(e),c=y(t),l=0;l<i.length;l++)(r=i[l]).key===s&&(o?ee(i,l--,1):(o=!0,r.value=c));o||X(i,{key:s,value:c}),a||(this.size=i.length),n.updateURL()},sort:function(){var e=x(this);k(e.entries,function(e,t){return e.key>t.key?1:-1}),e.updateURL()},forEach:function(e){for(var t,n=x(this).entries,r=I(e,arguments.length>1?arguments[1]:void 0),i=0;i<n.length;)r((t=n[i++]).value,t.key,this)},keys:function(){return new ge(this,"keys")},values:function(){return new ge(this,"values")},entries:function(){return new ge(this,"entries")}},{enumerable:!0}),l(we,P,we.entries,{name:"entries"}),l(we,"toString",function(){return x(this).serialize()},{enumerable:!0}),a&&u(we,"size",{get:function(){return x(this).entries.length},configurable:!0,enumerable:!0}),d(Le,M),e({global:!0,constructor:!0,forced:!c},{URLSearchParams:Le}),!c&&v(V)){var Ce=s(z.has),ye=s(z.set),Ae=function(e){if(C(e)){var t,n=e.body;if(L(n)===M)return t=e.headers?new V(e.headers):new V,Ce(t,"content-type")||ye(t,"content-type","application/x-www-form-urlencoded;charset=UTF-8"),A(e,{body:N(0,y(n)),headers:N(0,t)})}return e};if(v(W)&&e({global:!0,enumerable:!0,dontCallGetSet:!0,forced:!0},{fetch:function(e){return W(e,arguments.length>1?Ae(arguments[1]):{})}}),v(F)){var Ne=function(e){return _(this,j),new F(e,arguments.length>1?Ae(arguments[1]):{})};j.constructor=Ne,Ne.prototype=j,e({global:!0,constructor:!0,dontCallGetSet:!0,forced:!0},{Request:Ne})}}return f_={URLSearchParams:Le,getState:x}}E_||(E_=1,function(){if(__)return o_;__=1,function(){if(Kp)return s_;Kp=1;var e=Kd().charAt,t=Ir(),n=Bt(),r=Kh(),i=Ta(),o="String Iterator",s=n.set,a=n.getterFor(o);r(String,"String",function(e){s(this,{type:o,string:t(e),index:0})},function(){var t,n=a(this),r=n.string,o=n.index;return o>=r.length?i(void 0,!0):(t=e(r,o),n.index+=t.length,i(t,!1))})}();var e,t=hr(),n=E(),r=a_(),i=o(),s=oa(),a=le(),c=Qt(),l=Zr(),u=No(),h=it(),d=function(){if(qp)return Xp;qp=1;var e=E(),t=le(),n=m(),r=_(),i=Ds(),o=cr(),s=ae(),a=rt(),c=he(),l=Object.assign,u=Object.defineProperty,h=t([].concat);return Xp=!l||r(function(){if(e&&1!==l({b:1},l(u({},"a",{enumerable:!0,get:function(){u(this,"b",{value:3,enumerable:!1})}}),{b:2})).b)return!0;var t={},n={},r=Symbol("assign detection"),o="abcdefghijklmnopqrst";return t[r]=7,o.split("").forEach(function(e){n[e]=e}),7!==l({},t)[r]||i(l({},n)).join("")!==o})?function(t,r){for(var l=a(t),u=arguments.length,d=1,f=o.f,p=s.f;u>d;)for(var _,E=c(arguments[d++]),v=f?h(i(E),f(E)):i(E),m=v.length,g=0;m>g;)_=v[g++],e&&!n(p,E,_)||(l[_]=E[_]);return l}:l,Xp}(),f=c_(),p=xi(),v=Kd().codeAt,g=function(){if(n_)return t_;n_=1;var e=le(),t=2147483647,n=/[^\0-\u007E]/,r=/[.\u3002\uFF0E\uFF61]/g,i="Overflow: input needs wider integers to process",o=RangeError,s=e(r.exec),a=Math.floor,c=String.fromCharCode,l=e("".charCodeAt),u=e([].join),h=e([].push),d=e("".replace),f=e("".split),p=e("".toLowerCase),_=function(e){return e+22+75*(e<26)},E=function(e,t,n){var r=0;for(e=n?a(e/700):e>>1,e+=a(e/t);e>455;)e=a(e/35),r+=36;return a(r+36*e/(e+38))},v=function(e){var n=[];e=function(e){for(var t=[],n=0,r=e.length;n<r;){var i=l(e,n++);if(i>=55296&&i<=56319&&n<r){var o=l(e,n++);56320==(64512&o)?h(t,((1023&i)<<10)+(1023&o)+65536):(h(t,i),n--)}else h(t,i)}return t}(e);var r,s,d=e.length,f=128,p=0,v=72;for(r=0;r<e.length;r++)(s=e[r])<128&&h(n,c(s));var m=n.length,g=m;for(m&&h(n,"-");g<d;){var I=t;for(r=0;r<e.length;r++)(s=e[r])>=f&&s<I&&(I=s);var L=g+1;if(I-f>a((t-p)/L))throw new o(i);for(p+=(I-f)*L,f=I,r=0;r<e.length;r++){if((s=e[r])<f&&++p>t)throw new o(i);if(s===f){for(var w=p,C=36;;){var y=C<=v?1:C>=v+26?26:C-v;if(w<y)break;var A=w-y,N=36-y;h(n,c(_(y+A%N))),w=a(A/N),C+=36}h(n,c(_(w))),v=E(p,L,g===m),p=0,g++}}p++,f++}return u(n,"")};return t_=function(e){var t,i,o=[],a=f(d(p(e),r,"."),".");for(t=0;t<a.length;t++)i=a[t],h(o,s(n,i)?"xn--"+v(i):i);return u(o,".")},t_}(),I=Ir(),L=Ro(),w=l_(),C=g_(),y=Bt(),A=y.set,N=y.getterFor("URL"),S=C.URLSearchParams,T=C.getState,b=i.URL,O=i.TypeError,R=i.parseInt,k=Math.floor,P=Math.pow,M=a("".charAt),D=a(/./.exec),G=a([].join),x=a(1.1.toString),U=a([].pop),W=a([].push),F=a("".replace),V=a([].shift),j=a("".split),z=a("".slice),B=a("".toLowerCase),H=a([].unshift),Q="Invalid scheme",Y="Invalid host",K="Invalid port",$=/[a-z]/i,J=/[\d+-.a-z]/i,X=/\d/,q=/^0x/i,Z=/^[0-7]+$/,ee=/^\d+$/,te=/^[\da-f]+$/i,ne=/[\0\t\n\r #%/:<>?@[\\\]^|]/,re=/[\0\t\n\r #/:<>?@[\\\]^|]/,ie=/^[\u0000-\u0020]+/,oe=/(^|[^\u0000-\u0020])[\u0000-\u0020]+$/,se=/[\t\n\r]/g,ce=function(e){var t,n,r,i;if("number"==typeof e){for(t=[],n=0;n<4;n++)H(t,e%256),e=k(e/256);return G(t,".")}if("object"==typeof e){for(t="",r=function(e){for(var t=null,n=1,r=null,i=0,o=0;o<8;o++)0!==e[o]?(i>n&&(t=r,n=i),r=null,i=0):(null===r&&(r=o),++i);return i>n?r:t}(e),n=0;n<8;n++)i&&0===e[n]||(i&&(i=!1),r===n?(t+=n?":":"::",i=!0):(t+=x(e[n],16),n<7&&(t+=":")));return"["+t+"]"}return e},ue={},de=d({},ue,{" ":1,'"':1,"<":1,">":1,"`":1}),fe=d({},de,{"#":1,"?":1,"{":1,"}":1}),pe=d({},fe,{"/":1,":":1,";":1,"=":1,"@":1,"[":1,"\\":1,"]":1,"^":1,"|":1}),_e=function(e,t){var n=v(e,0);return n>32&&n<127&&!h(t,e)?e:encodeURIComponent(e)},Ee={ftp:21,file:null,http:80,https:443,ws:80,wss:443},ve=function(e,t){var n;return 2===e.length&&D($,M(e,0))&&(":"===(n=M(e,1))||!t&&"|"===n)},me=function(e){var t;return e.length>1&&ve(z(e,0,2))&&(2===e.length||"/"===(t=M(e,2))||"\\"===t||"?"===t||"#"===t)},ge=function(e){return"."===e||"%2e"===B(e)},Ie=function(e){return".."===(e=B(e))||"%2e."===e||".%2e"===e||"%2e%2e"===e},Le={},we={},Ce={},ye={},Ae={},Ne={},Se={},Te={},be={},Oe={},Re={},ke={},Pe={},Me={},De={},Ge={},xe={},Ue={},We={},Fe={},Ve={},je=function(e,t,n){var r,i,o,s=I(e);if(t){if(i=this.parse(s))throw new O(i);this.searchParams=null}else{if(void 0!==n&&(r=new je(n,!0)),i=this.parse(s,null,r))throw new O(i);(o=T(new S)).bindURL(this),this.searchParams=o}};je.prototype={type:"URL",parse:function(t,n,r){var i,o,s,a,c=this,l=n||Le,u=0,d="",_=!1,E=!1,v=!1;for(t=I(t),n||(c.scheme="",c.username="",c.password="",c.host=null,c.port=null,c.path=[],c.query=null,c.fragment=null,c.cannotBeABaseURL=!1,t=F(t,ie,""),t=F(t,oe,"$1")),t=F(t,se,""),i=f(t);u<=i.length;){switch(o=i[u],l){case Le:if(!o||!D($,o)){if(n)return Q;l=Ce;continue}d+=B(o),l=we;break;case we:if(o&&(D(J,o)||"+"===o||"-"===o||"."===o))d+=B(o);else{if(":"!==o){if(n)return Q;d="",l=Ce,u=0;continue}if(n&&(c.isSpecial()!==h(Ee,d)||"file"===d&&(c.includesCredentials()||null!==c.port)||"file"===c.scheme&&!c.host))return;if(c.scheme=d,n)return void(c.isSpecial()&&Ee[c.scheme]===c.port&&(c.port=null));d="","file"===c.scheme?l=Me:c.isSpecial()&&r&&r.scheme===c.scheme?l=ye:c.isSpecial()?l=Te:"/"===i[u+1]?(l=Ae,u++):(c.cannotBeABaseURL=!0,W(c.path,""),l=We)}break;case Ce:if(!r||r.cannotBeABaseURL&&"#"!==o)return Q;if(r.cannotBeABaseURL&&"#"===o){c.scheme=r.scheme,c.path=p(r.path),c.query=r.query,c.fragment="",c.cannotBeABaseURL=!0,l=Ve;break}l="file"===r.scheme?Me:Ne;continue;case ye:if("/"!==o||"/"!==i[u+1]){l=Ne;continue}l=be,u++;break;case Ae:if("/"===o){l=Oe;break}l=Ue;continue;case Ne:if(c.scheme=r.scheme,o===e)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=p(r.path),c.query=r.query;else if("/"===o||"\\"===o&&c.isSpecial())l=Se;else if("?"===o)c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=p(r.path),c.query="",l=Fe;else{if("#"!==o){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=p(r.path),c.path.length--,l=Ue;continue}c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,c.path=p(r.path),c.query=r.query,c.fragment="",l=Ve}break;case Se:if(!c.isSpecial()||"/"!==o&&"\\"!==o){if("/"!==o){c.username=r.username,c.password=r.password,c.host=r.host,c.port=r.port,l=Ue;continue}l=Oe}else l=be;break;case Te:if(l=be,"/"!==o||"/"!==M(d,u+1))continue;u++;break;case be:if("/"!==o&&"\\"!==o){l=Oe;continue}break;case Oe:if("@"===o){_&&(d="%40"+d),_=!0,s=f(d);for(var m=0;m<s.length;m++){var g=s[m];if(":"!==g||v){var L=_e(g,pe);v?c.password+=L:c.username+=L}else v=!0}d=""}else if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&c.isSpecial()){if(_&&""===d)return"Invalid authority";u-=f(d).length+1,d="",l=Re}else d+=o;break;case Re:case ke:if(n&&"file"===c.scheme){l=Ge;continue}if(":"!==o||E){if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&c.isSpecial()){if(c.isSpecial()&&""===d)return Y;if(n&&""===d&&(c.includesCredentials()||null!==c.port))return;if(a=c.parseHost(d))return a;if(d="",l=xe,n)return;continue}"["===o?E=!0:"]"===o&&(E=!1),d+=o}else{if(""===d)return Y;if(a=c.parseHost(d))return a;if(d="",l=Pe,n===ke)return}break;case Pe:if(!D(X,o)){if(o===e||"/"===o||"?"===o||"#"===o||"\\"===o&&c.isSpecial()||n){if(""!==d){var w=R(d,10);if(w>65535)return K;c.port=c.isSpecial()&&w===Ee[c.scheme]?null:w,d=""}if(n)return;l=xe;continue}return K}d+=o;break;case Me:if(c.scheme="file","/"===o||"\\"===o)l=De;else{if(!r||"file"!==r.scheme){l=Ue;continue}switch(o){case e:c.host=r.host,c.path=p(r.path),c.query=r.query;break;case"?":c.host=r.host,c.path=p(r.path),c.query="",l=Fe;break;case"#":c.host=r.host,c.path=p(r.path),c.query=r.query,c.fragment="",l=Ve;break;default:me(G(p(i,u),""))||(c.host=r.host,c.path=p(r.path),c.shortenPath()),l=Ue;continue}}break;case De:if("/"===o||"\\"===o){l=Ge;break}r&&"file"===r.scheme&&!me(G(p(i,u),""))&&(ve(r.path[0],!0)?W(c.path,r.path[0]):c.host=r.host),l=Ue;continue;case Ge:if(o===e||"/"===o||"\\"===o||"?"===o||"#"===o){if(!n&&ve(d))l=Ue;else if(""===d){if(c.host="",n)return;l=xe}else{if(a=c.parseHost(d))return a;if("localhost"===c.host&&(c.host=""),n)return;d="",l=xe}continue}d+=o;break;case xe:if(c.isSpecial()){if(l=Ue,"/"!==o&&"\\"!==o)continue}else if(n||"?"!==o)if(n||"#"!==o){if(o!==e&&(l=Ue,"/"!==o))continue}else c.fragment="",l=Ve;else c.query="",l=Fe;break;case Ue:if(o===e||"/"===o||"\\"===o&&c.isSpecial()||!n&&("?"===o||"#"===o)){if(Ie(d)?(c.shortenPath(),"/"===o||"\\"===o&&c.isSpecial()||W(c.path,"")):ge(d)?"/"===o||"\\"===o&&c.isSpecial()||W(c.path,""):("file"===c.scheme&&!c.path.length&&ve(d)&&(c.host&&(c.host=""),d=M(d,0)+":"),W(c.path,d)),d="","file"===c.scheme&&(o===e||"?"===o||"#"===o))for(;c.path.length>1&&""===c.path[0];)V(c.path);"?"===o?(c.query="",l=Fe):"#"===o&&(c.fragment="",l=Ve)}else d+=_e(o,fe);break;case We:"?"===o?(c.query="",l=Fe):"#"===o?(c.fragment="",l=Ve):o!==e&&(c.path[0]+=_e(o,ue));break;case Fe:n||"#"!==o?o!==e&&("'"===o&&c.isSpecial()?c.query+="%27":c.query+="#"===o?"%23":_e(o,ue)):(c.fragment="",l=Ve);break;case Ve:o!==e&&(c.fragment+=_e(o,de))}u++}},parseHost:function(e){var t,n,r;if("["===M(e,0)){if("]"!==M(e,e.length-1))return Y;if(t=function(e){var t,n,r,i,o,s,a,c=[0,0,0,0,0,0,0,0],l=0,u=null,h=0,d=function(){return M(e,h)};if(":"===d()){if(":"!==M(e,1))return;h+=2,u=++l}for(;d();){if(8===l)return;if(":"!==d()){for(t=n=0;n<4&&D(te,d());)t=16*t+R(d(),16),h++,n++;if("."===d()){if(0===n)return;if(h-=n,l>6)return;for(r=0;d();){if(i=null,r>0){if(!("."===d()&&r<4))return;h++}if(!D(X,d()))return;for(;D(X,d());){if(o=R(d(),10),null===i)i=o;else{if(0===i)return;i=10*i+o}if(i>255)return;h++}c[l]=256*c[l]+i,2!==++r&&4!==r||l++}if(4!==r)return;break}if(":"===d()){if(h++,!d())return}else if(d())return;c[l++]=t}else{if(null!==u)return;h++,u=++l}}if(null!==u)for(s=l-u,l=7;0!==l&&s>0;)a=c[l],c[l--]=c[u+s-1],c[u+--s]=a;else if(8!==l)return;return c}(z(e,1,-1)),!t)return Y;this.host=t}else if(this.isSpecial()){if(e=g(e),D(ne,e))return Y;if(t=function(e){var t,n,r,i,o,s,a,c=j(e,".");if(c.length&&""===c[c.length-1]&&c.length--,(t=c.length)>4)return e;for(n=[],r=0;r<t;r++){if(""===(i=c[r]))return e;if(o=10,i.length>1&&"0"===M(i,0)&&(o=D(q,i)?16:8,i=z(i,8===o?1:2)),""===i)s=0;else{if(!D(10===o?ee:8===o?Z:te,i))return e;s=R(i,o)}W(n,s)}for(r=0;r<t;r++)if(s=n[r],r===t-1){if(s>=P(256,5-t))return null}else if(s>255)return null;for(a=U(n),r=0;r<n.length;r++)a+=n[r]*P(256,3-r);return a}(e),null===t)return Y;this.host=t}else{if(D(re,e))return Y;for(t="",n=f(e),r=0;r<n.length;r++)t+=_e(n[r],ue);this.host=t}},cannotHaveUsernamePasswordPort:function(){return!this.host||this.cannotBeABaseURL||"file"===this.scheme},includesCredentials:function(){return""!==this.username||""!==this.password},isSpecial:function(){return h(Ee,this.scheme)},shortenPath:function(){var e=this.path,t=e.length;!t||"file"===this.scheme&&1===t&&ve(e[0],!0)||e.length--},serialize:function(){var e=this,t=e.scheme,n=e.username,r=e.password,i=e.host,o=e.port,s=e.path,a=e.query,c=e.fragment,l=t+":";return null!==i?(l+="//",e.includesCredentials()&&(l+=n+(r?":"+r:"")+"@"),l+=ce(i),null!==o&&(l+=":"+o)):"file"===t&&(l+="//"),l+=e.cannotBeABaseURL?s[0]:s.length?"/"+G(s,"/"):"",null!==a&&(l+="?"+a),null!==c&&(l+="#"+c),l},setHref:function(e){var t=this.parse(e);if(t)throw new O(t);this.searchParams.update()},getOrigin:function(){var e=this.scheme,t=this.port;if("blob"===e)try{return new ze(e.path[0]).origin}catch(e){return"null"}return"file"!==e&&this.isSpecial()?e+"://"+ce(this.host)+(null!==t?":"+t:""):"null"},getProtocol:function(){return this.scheme+":"},setProtocol:function(e){this.parse(I(e)+":",Le)},getUsername:function(){return this.username},setUsername:function(e){var t=f(I(e));if(!this.cannotHaveUsernamePasswordPort()){this.username="";for(var n=0;n<t.length;n++)this.username+=_e(t[n],pe)}},getPassword:function(){return this.password},setPassword:function(e){var t=f(I(e));if(!this.cannotHaveUsernamePasswordPort()){this.password="";for(var n=0;n<t.length;n++)this.password+=_e(t[n],pe)}},getHost:function(){var e=this.host,t=this.port;return null===e?"":null===t?ce(e):ce(e)+":"+t},setHost:function(e){this.cannotBeABaseURL||this.parse(e,Re)},getHostname:function(){var e=this.host;return null===e?"":ce(e)},setHostname:function(e){this.cannotBeABaseURL||this.parse(e,ke)},getPort:function(){var e=this.port;return null===e?"":I(e)},setPort:function(e){this.cannotHaveUsernamePasswordPort()||(""===(e=I(e))?this.port=null:this.parse(e,Pe))},getPathname:function(){var e=this.path;return this.cannotBeABaseURL?e[0]:e.length?"/"+G(e,"/"):""},setPathname:function(e){this.cannotBeABaseURL||(this.path=[],this.parse(e,xe))},getSearch:function(){var e=this.query;return e?"?"+e:""},setSearch:function(e){""===(e=I(e))?this.query=null:("?"===M(e,0)&&(e=z(e,1)),this.query="",this.parse(e,Fe)),this.searchParams.update()},getSearchParams:function(){return this.searchParams.facade},getHash:function(){var e=this.fragment;return e?"#"+e:""},setHash:function(e){""!==(e=I(e))?("#"===M(e,0)&&(e=z(e,1)),this.fragment="",this.parse(e,Ve)):this.fragment=null},update:function(){this.query=this.searchParams.serialize()||null}};var ze=function(e){var t=u(this,Be),r=w(arguments.length,1)>1?arguments[1]:void 0,i=A(t,new je(e,!1,r));n||(t.href=i.serialize(),t.origin=i.getOrigin(),t.protocol=i.getProtocol(),t.username=i.getUsername(),t.password=i.getPassword(),t.host=i.getHost(),t.hostname=i.getHostname(),t.port=i.getPort(),t.pathname=i.getPathname(),t.search=i.getSearch(),t.searchParams=i.getSearchParams(),t.hash=i.getHash())},Be=ze.prototype,He=function(e,t){return{get:function(){return N(this)[e]()},set:t&&function(e){return N(this)[t](e)},configurable:!0,enumerable:!0}};if(n&&(l(Be,"href",He("serialize","setHref")),l(Be,"origin",He("getOrigin")),l(Be,"protocol",He("getProtocol","setProtocol")),l(Be,"username",He("getUsername","setUsername")),l(Be,"password",He("getPassword","setPassword")),l(Be,"host",He("getHost","setHost")),l(Be,"hostname",He("getHostname","setHostname")),l(Be,"port",He("getPort","setPort")),l(Be,"pathname",He("getPathname","setPathname")),l(Be,"search",He("getSearch","setSearch")),l(Be,"searchParams",He("getSearchParams")),l(Be,"hash",He("getHash","setHash"))),c(Be,"toJSON",function(){return N(this).serialize()},{enumerable:!0}),c(Be,"toString",function(){return N(this).serialize()},{enumerable:!0}),b){var Qe=b.createObjectURL,Ye=b.revokeObjectURL;Qe&&c(ze,"createObjectURL",s(Qe,b)),Ye&&c(ze,"revokeObjectURL",s(Ye,b))}L(ze,"URL"),t({global:!0,constructor:!0,forced:!r,sham:!n},{URL:ze})}());var I_,L_,w_={};!function(){if(I_)return w_;I_=1;var e=hr(),t=m();e({target:"URL",proto:!0,enumerable:!0},{toJSON:function(){return t(URL.prototype.toString,this)}})}(),L_||(L_=1,g_());var C_,y_={};!function(){if(C_)return y_;C_=1;var e=Qt(),t=le(),n=Ir(),r=l_(),i=URLSearchParams,o=i.prototype,s=t(o.append),a=t(o.delete),c=t(o.forEach),l=t([].push),u=new i("a=1&a=2&b=3");u.delete("a",1),u.delete("b",void 0),u+""!="a=2"&&e(o,"delete",function(e){var t=arguments.length,i=t<2?void 0:arguments[1];if(t&&void 0===i)return a(this,e);var o=[];c(this,function(e,t){l(o,{key:t,value:e})}),r(t,1);for(var u,h=n(e),d=n(i),f=0,p=0,_=!1,E=o.length;f<E;)u=o[f++],_||u.key===h?(_=!0,a(this,u.key)):p++;for(;p<E;)(u=o[p++]).key===h&&u.value===d||s(this,u.key,u.value)},{enumerable:!0,unsafe:!0})}();var A_,N_={};!function(){if(A_)return N_;A_=1;var e=Qt(),t=le(),n=Ir(),r=l_(),i=URLSearchParams,o=i.prototype,s=t(o.getAll),a=t(o.has),c=new i("a=1");!c.has("a",2)&&c.has("a",void 0)||e(o,"has",function(e){var t=arguments.length,i=t<2?void 0:arguments[1];if(t&&void 0===i)return a(this,e);var o=s(this,e);r(t,1);for(var c=n(i),l=0;l<o.length;)if(o[l++]===c)return!0;return!1},{enumerable:!0,unsafe:!0})}();var S_,T_={};!function(){if(S_)return T_;S_=1;var e=E(),t=le(),n=Zr(),r=URLSearchParams.prototype,i=t(r.forEach);e&&!("size"in r)&&n(r,"size",{get:function(){var e=0;return i(this,function(){e++}),e},configurable:!0,enumerable:!0})}();class b_{constructor(e,t){this._message=e,this._node=t}get message(){return this._message}get node(){return this._node}}var O_,R_={};function k_(e,t){var n;let r;const i=t(e,(e=[])=>{r=e});return r=null!=r?r:e.childNodes,null!==(n=r)&&void 0!==n&&n.length?Fr(Fr({},i),{},{childNodes:Array.from(r).map(e=>k_(e,t))}):i}function P_(e,t){const n=[e];for(;n.length>0;){var r;const e=n.pop();let i;if(t(e,e=>i=null!=e?e:[]),i=null!=i?i:e.childNodes,null!==(r=i)&&void 0!==r&&r.length)for(let e=i.length-1;e>=0;e--)n.push(i[e])}}!function(){if(O_)return R_;O_=1;var e=hr(),t=m(),n=ha(),r=Ae(),i=Lt(),o=da(),s=ua(),a=fa()("some",TypeError);e({target:"Iterator",proto:!0,real:!0,forced:a},{some:function(e){i(this);try{r(e)}catch(e){s(this,"throw",e)}if(a)return t(a,this,e);var c=o(this),l=0;return n(c,function(t,n){if(e(t,l++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})}();var M_=new WeakMap,D_=new WeakMap,G_=new WeakMap;class x_{constructor(e){Mr(this,M_,void 0),Mr(this,D_,{}),Mr(this,G_,{}),Dr(M_,this,e)}get id(){return Pr(M_,this)}get document(){return Pr(D_,this)[Pr(M_,this)]||{id:Pr(M_,this),childNodes:[]}}node(e){return Pr(D_,this)[(null==e?void 0:e.id)||e]}parent(e){return this.node(Pr(G_,this)[(null==e?void 0:e.id)||e])}path(e,t=new Set([Pr(M_,this)])){let n=this.node(e);if(!n)return null;const r=[],i=new Set;for(;n&&!t.has(n.id);){const e=this.parent(n);if(!e)return null;if(!e.childNodes.some(e=>(e.id||e)===n.id))return null;if(i.has(e))throw new Error("cycle detected in VirtualDOM path computation");r.unshift(e),i.add(e),n=e}return r}applyPatch(e){const t=new Set;for(const n of e)if(n.id){const e=Pr(D_,this)[n.id]||{},r=Fr(Fr({},e),n);Pr(D_,this)[n.id]=r,t.add(n.id);const i=new Set((e.childNodes||[]).map(e=>e.id||e)),o=new Set((r.childNodes||[]).map(e=>e.id||e));o.forEach(e=>{Pr(G_,this)[e]=r.id}),i.difference(o).forEach(e=>{P_(this.node(e),e=>{t.add(e.id)})})}else console.warn("diff missing id",n);const n=new Set([Pr(M_,this)]);return t.forEach(e=>{const r=this.path(e,n);if(!r)return delete Pr(D_,this)[e],t.delete(e),void delete Pr(G_,this)[e];for(const e of r)t.has(e.id)||(t.add(e.id),Pr(D_,this)[e.id]=Fr({},e)),n.add(e.id)}),t.forEach(e=>{const t=Pr(D_,this)[e];t.childNodes=(t.childNodes||[]).map(e=>{const n=e.id||e,r=Pr(D_,this)[n];if(!r)throw new b_(`denormalisation failed for child ${n}`,t);return r})}),this}}function U_(e){try{return!e.document&&!1}catch(e){return!0}}function W_(e){return!!U_(e)||!("IFRAME"!==e.tagName||!U_(e.contentWindow))}function F_(e,t){const n=[];let r=e;for(;r.parentNode&&r.parentNode!==t;)n.push(r.parentNode),r=r.parentNode;if(r instanceof ShadowRoot)return[...n,r.host,...F_(r.host,t)];const i=r.defaultView&&r.defaultView.frameElement;return i?[...n,i,...F_(i)]:n}class V_{constructor(e){this.onPropertySet=e,this._klasses=new Set}_trackObserver(e){e.__cbio_observers||(e.__cbio_observers=new Set),e.__cbio_observers.add(this)}_untrackObserver(e){e.__cbio_observers&&e.__cbio_observers.delete(this)}_tap(e,t){if(e[`__cbio_override_${t}`])return;const n=Object.getOwnPropertyDescriptor(e.prototype,t);if(!n)return;e[`__cbio_override_${t}`]=!0;const r=n.set;n.set=function(n){r.call(this,n),e.__cbio_observers&&e.__cbio_observers.forEach(e=>{e.onPropertySet(this,t,n)})},Object.defineProperty(e.prototype,t,n)}observe(e,t){this._klasses.add(e),this._trackObserver(e),this._tap(e,t)}disconnect(){this._klasses.forEach(e=>this._untrackObserver(e)),this._klasses.clear()}}var j_,z_={};!function(){if(j_)return z_;j_=1;var e=hr(),t=ha(),n=Ae(),r=Lt(),i=da(),o=ua(),s=fa(),a=dr(),c=_(),l=TypeError,u=c(function(){[].keys().reduce(function(){},void 0)}),h=!u&&s("reduce",l);e({target:"Iterator",proto:!0,real:!0,forced:u||h},{reduce:function(e){r(this);try{n(e)}catch(e){o(this,"throw",e)}var s=arguments.length<2,c=s?void 0:arguments[1];if(h)return a(h,this,s?[e]:[e,c]);var u=i(this),d=0;if(t(u,function(t){s?(s=!1,c=t):c=e(c,t,d),d++},{IS_RECORD:!0}),s)throw new l("Reduce of empty iterator with no initial value");return c}})}();const B_=new class{constructor(){Ur(this,"_mousePosition",{x:-1,y:-1}),Ur(this,"_mouseIsDown",!1),Ur(this,"_mouseIsIn",!1),Ur(this,"track",e=>{e.addEventListener("mousedown",this._onMouseDown,{capture:!0,passive:!0}),e.addEventListener("mouseup",this._onMouseUp,{capture:!0,passive:!0}),e.addEventListener("mouseenter",this._onMouseEnter,{capture:!0,passive:!0}),e.addEventListener("mouseleave",this._onMouseLeave,{capture:!0,passive:!0}),e.addEventListener("mousemove",this._onMouseMove,{capture:!0,passive:!0})}),Ur(this,"untrack",e=>{e.removeEventListener("mousedown",this._onMouseDown,{capture:!0,passive:!0}),e.removeEventListener("mouseup",this._onMouseUp,{capture:!0,passive:!0}),e.removeEventListener("mouseenter",this._onMouseEnter,{capture:!0,passive:!0}),e.removeEventListener("mouseleave",this._onMouseLeave,{capture:!0,passive:!0}),e.removeEventListener("mousemove",this._onMouseMove,{capture:!0,passive:!0})}),Ur(this,"isDown",()=>this._mouseIsDown),Ur(this,"setDown",e=>{this._mouseIsDown=e,this.onChange&&this.onChange(this.state())}),Ur(this,"isIn",()=>this._mouseIsIn>0),Ur(this,"position",()=>this._mousePosition),Ur(this,"setPosition",(e,t,n)=>{if(n){const r=[n,...F_(n).filter(e=>{var t;return null===(t=e.matches)||void 0===t?void 0:t.call(e,"iframe")})],i=r.map(e=>e.getBoundingClientRect()).reduce((e,t)=>({x:e.x+t.x,y:e.y+t.y}),{x:0,y:0});e+=Math.round(i.x),t+=Math.round(i.y)}this._mousePosition={x:e,y:t},this.onChange&&this.onChange(this.state())}),Ur(this,"state",()=>Fr(Fr({},this.position()),{},{down:this.isDown(),in:this.isIn()})),Ur(this,"_onMouseDown",e=>{e.isTrusted&&this.setDown(!0)}),Ur(this,"_onMouseUp",e=>{e.isTrusted&&this.setDown(!1)}),Ur(this,"_onMouseEnter",e=>{e.isTrusted&&(this._mouseIsIn+=1)}),Ur(this,"_onMouseLeave",e=>{e.isTrusted&&e.target===e.currentTarget&&(this._mouseIsIn-=1)}),Ur(this,"_onMouseMove",rf(e=>{if(!e.isTrusted)return;const{clientX:t,clientY:n}=e,r=e.view&&e.view.frameElement;this.setPosition(t,n,r)},100))}},H_=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/i;function Q_(e){if(!function(e){return"string"==typeof e&&H_.test(e)}(e))throw TypeError("Invalid UUID");let t;return Uint8Array.of((t=parseInt(e.slice(0,8),16))>>>24,t>>>16&255,t>>>8&255,255&t,(t=parseInt(e.slice(9,13),16))>>>8,255&t,(t=parseInt(e.slice(14,18),16))>>>8,255&t,(t=parseInt(e.slice(19,23),16))>>>8,255&t,(t=parseInt(e.slice(24,36),16))/1099511627776&255,t/4294967296&255,t>>>24&255,t>>>16&255,t>>>8&255,255&t)}const Y_=[];for(let e=0;e<256;++e)Y_.push((e+256).toString(16).slice(1));function K_(e,t=0){return(Y_[e[t+0]]+Y_[e[t+1]]+Y_[e[t+2]]+Y_[e[t+3]]+"-"+Y_[e[t+4]]+Y_[e[t+5]]+"-"+Y_[e[t+6]]+Y_[e[t+7]]+"-"+Y_[e[t+8]]+Y_[e[t+9]]+"-"+Y_[e[t+10]]+Y_[e[t+11]]+Y_[e[t+12]]+Y_[e[t+13]]+Y_[e[t+14]]+Y_[e[t+15]]).toLowerCase()}const $_=new Uint8Array(16);function J_(e,t,n){return crypto.randomUUID?crypto.randomUUID():function(e){var t,n,r,i;const o=null!==(t=null!==(n=(e=e||{}).random)&&void 0!==n?n:null===(r=(i=e).rng)||void 0===r?void 0:r.call(i))&&void 0!==t?t:crypto.getRandomValues($_);if(o.length<16)throw new Error("Random bytes length must be >= 16");return o[6]=15&o[6]|64,o[8]=63&o[8]|128,K_(o)}(e)}function X_(e,t,n,r){switch(e){case 0:return t&n^~t&r;case 1:case 3:return t^n^r;case 2:return t&n^t&r^n&r}}function q_(e,t){return e<<t|e>>>32-t}function Z_(e){const t=[1518500249,1859775393,2400959708,3395469782],n=[1732584193,4023233417,2562383102,271733878,3285377520],r=new Uint8Array(e.length+1);r.set(e),r[e.length]=128;const i=(e=r).length/4+2,o=Math.ceil(i/16),s=new Array(o);for(let t=0;t<o;++t){const n=new Uint32Array(16);for(let r=0;r<16;++r)n[r]=e[64*t+4*r]<<24|e[64*t+4*r+1]<<16|e[64*t+4*r+2]<<8|e[64*t+4*r+3];s[t]=n}s[o-1][14]=8*(e.length-1)/2**32,s[o-1][14]=Math.floor(s[o-1][14]),s[o-1][15]=8*(e.length-1)&4294967295;for(let e=0;e<o;++e){const r=new Uint32Array(80);for(let t=0;t<16;++t)r[t]=s[e][t];for(let e=16;e<80;++e)r[e]=q_(r[e-3]^r[e-8]^r[e-14]^r[e-16],1);let i=n[0],o=n[1],a=n[2],c=n[3],l=n[4];for(let e=0;e<80;++e){const n=Math.floor(e/20),s=q_(i,5)+X_(n,o,a,c)+l+t[n]+r[e]>>>0;l=c,c=a,a=q_(o,30)>>>0,o=i,i=s}n[0]=n[0]+i>>>0,n[1]=n[1]+o>>>0,n[2]=n[2]+a>>>0,n[3]=n[3]+c>>>0,n[4]=n[4]+l>>>0}return Uint8Array.of(n[0]>>24,n[0]>>16,n[0]>>8,n[0],n[1]>>24,n[1]>>16,n[1]>>8,n[1],n[2]>>24,n[2]>>16,n[2]>>8,n[2],n[3]>>24,n[3]>>16,n[3]>>8,n[3],n[4]>>24,n[4]>>16,n[4]>>8,n[4])}function eE(e,t,n,r){return function(e,t,n,r,i,o){var s;const a="string"==typeof n?function(e){e=unescape(encodeURIComponent(e));const t=new Uint8Array(e.length);for(let n=0;n<e.length;++n)t[n]=e.charCodeAt(n);return t}(n):n,c="string"==typeof r?Q_(r):r;if("string"==typeof r&&(r=Q_(r)),16!==(null===(s=r)||void 0===s?void 0:s.length))throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let l=new Uint8Array(16+a.length);if(l.set(c),l.set(a,c.length),l=t(l),l[6]=15&l[6]|e,l[8]=63&l[8]|128,i){if(null!=o||(o=0),o<0||o+16>i.length)throw new RangeError(`UUID byte range ${o}:${o+15} is out of buffer bounds`);for(let e=0;e<16;++e)i[o+e]=l[e];return i}return K_(l)}(80,Z_,e,t,n,r)}eE.DNS="6ba7b810-9dad-11d1-80b4-00c04fd430c8",eE.URL="6ba7b811-9dad-11d1-80b4-00c04fd430c8";var tE,nE,rE={};function iE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)e[r]=n[r]}return e}nE||(nE=1,function(){if(tE)return rE;tE=1;var e=hr(),t=E(),n=o(),r=ve(),i=le(),s=m(),a=_e(),c=Ee(),l=_i(),u=it(),h=Ir(),d=_n(),f=Cs(),p=_(),v=Va(),g=Le(),I=n.JSON,L=n.Number,w=n.SyntaxError,C=I&&I.parse,y=r("Object","keys"),A=Object.getOwnPropertyDescriptor,N=i("".charAt),S=i("".slice),T=i(/./.exec),b=i([].push),O=/^\d$/,R=/^[1-9]$/,k=/^[\d-]$/,P=/^[\t\n\r ]$/,M=function(e,t,n,r){var i,o,a,h,f,p=e[t],_=r&&p===r.value,E=_&&"string"==typeof r.source?{source:r.source}:{};if(c(p)){var v=l(p),m=_?r.nodes:v?[]:{};if(v)for(i=m.length,a=d(p),h=0;h<a;h++)D(p,h,M(p,""+h,n,h<i?m[h]:void 0));else for(o=y(p),a=d(o),h=0;h<a;h++)f=o[h],D(p,f,M(p,f,n,u(m,f)?m[f]:void 0))}return s(n,e,t,p,E)},D=function(e,n,r){if(t){var i=A(e,n);if(i&&!i.configurable)return}void 0===r?delete e[n]:f(e,n,r)},G=function(e,t,n,r){this.value=e,this.end=t,this.source=n,this.nodes=r},x=function(e,t){this.source=e,this.index=t};x.prototype={fork:function(e){return new x(this.source,e)},parse:function(){var e=this.source,t=this.skip(P,this.index),n=this.fork(t),r=N(e,t);if(T(k,r))return n.number();switch(r){case"{":return n.object();case"[":return n.array();case'"':return n.string();case"t":return n.keyword(!0);case"f":return n.keyword(!1);case"n":return n.keyword(null)}throw new w('Unexpected character: "'+r+'" at: '+t)},node:function(e,t,n,r,i){return new G(t,r,e?null:S(this.source,n,r),i)},object:function(){for(var e=this.source,t=this.index+1,n=!1,r={},i={};t<e.length;){if(t=this.until(['"',"}"],t),"}"===N(e,t)&&!n){t++;break}var o=this.fork(t).string(),s=o.value;t=o.end,t=this.until([":"],t)+1,t=this.skip(P,t),o=this.fork(t).parse(),f(i,s,o),f(r,s,o.value),t=this.until([",","}"],o.end);var a=N(e,t);if(","===a)n=!0,t++;else if("}"===a){t++;break}}return this.node(1,r,this.index,t,i)},array:function(){for(var e=this.source,t=this.index+1,n=!1,r=[],i=[];t<e.length;){if(t=this.skip(P,t),"]"===N(e,t)&&!n){t++;break}var o=this.fork(t).parse();if(b(i,o),b(r,o.value),t=this.until([",","]"],o.end),","===N(e,t))n=!0,t++;else if("]"===N(e,t)){t++;break}}return this.node(1,r,this.index,t,i)},string:function(){var e=this.index,t=v(this.source,this.index+1);return this.node(0,t.value,e,t.end)},number:function(){var e=this.source,t=this.index,n=t;if("-"===N(e,n)&&n++,"0"===N(e,n))n++;else{if(!T(R,N(e,n)))throw new w("Failed to parse number at: "+n);n=this.skip(O,n+1)}if(!("."===N(e,n)&&(n=this.skip(O,n+1)),"e"!==N(e,n)&&"E"!==N(e,n)||(n++,"+"!==N(e,n)&&"-"!==N(e,n)||n++,n!==(n=this.skip(O,n)))))throw new w("Failed to parse number's exponent value at: "+n);return this.node(0,L(S(e,t,n)),t,n)},keyword:function(e){var t=""+e,n=this.index,r=n+t.length;if(S(this.source,n,r)!==t)throw new w("Failed to parse value at: "+n);return this.node(0,e,n,r)},skip:function(e,t){for(var n=this.source;t<n.length&&T(e,N(n,t));t++);return t},until:function(e,t){t=this.skip(P,t);for(var n=N(this.source,t),r=0;r<e.length;r++)if(e[r]===n)return t;throw new w('Unexpected character: "'+n+'" at: '+t)}};var U=p(function(){var e,t="9007199254740993";return C(t,function(t,n,r){e=r.source}),e!==t}),W=g&&!p(function(){return 1/C("-0 \t")!=-1/0});e({target:"JSON",stat:!0,forced:U},{parse:function(e,t){return W&&!a(t)?C(e):function(e,t){e=h(e);var n=new x(e,0),r=n.parse(),i=r.value,o=n.skip(P,r.end);if(o<e.length)throw new w('Unexpected extra character: "'+N(e,o)+'" after the parsed data at: '+o);return a(t)?M({"":i},"",t,r):i}(e,t)}})}());var oE=function e(t,n){function r(e,r,i){if("undefined"!=typeof document){"number"==typeof(i=iE({},n,i)).expires&&(i.expires=new Date(Date.now()+864e5*i.expires)),i.expires&&(i.expires=i.expires.toUTCString()),e=encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var o="";for(var s in i)i[s]&&(o+="; "+s,!0!==i[s]&&(o+="="+i[s].split(";")[0]));return document.cookie=e+"="+t.write(r,e)+o}}return Object.create({set:r,get:function(e){if("undefined"!=typeof document&&(!arguments.length||e)){for(var n=document.cookie?document.cookie.split("; "):[],r={},i=0;i<n.length;i++){var o=n[i].split("="),s=o.slice(1).join("=");try{var a=decodeURIComponent(o[0]);if(r[a]=t.read(s,a),e===a)break}catch(e){}}return e?r[e]:r}},remove:function(e,t){r(e,"",iE({},t,{expires:-1}))},withAttributes:function(t){return e(this.converter,iE({},this.attributes,t))},withConverter:function(t){return e(iE({},this.converter,t),this.attributes)}},{attributes:{value:Object.freeze(n)},converter:{value:Object.freeze(t)}})}({read:function(e){return'"'===e[0]&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}},{path:"/"});const sE={};function aE(){try{const e="_cobrowse_test_item";return localStorage.setItem(e,e),localStorage.removeItem(e),!0}catch(e){return!1}}function cE(){aE()||cE.done||(cE.done=!0,console.warn("Warning: localStorage is not supported. Cobrowse falling back to cookie or in-memory storage and may not function as expected."))}function lE(e){return{setItem(t,n){cE();const r=JSON.stringify({value:n,group:e});aE()?window.localStorage.setItem(t,r):oE.set(t,r),sE[t]=r},getItem(t){try{let n;n=aE()?window.localStorage&&window.localStorage.getItem(t):oE.get(t),n||(n=sE[t]);const{value:r,group:i}=JSON.parse(n);return e&&e!==i?null:r}catch(e){return null}},removeItem(e){aE()&&window.localStorage.removeItem(e),oE.remove(e),sE[e]=void 0}}}const uE=Af("cbio.WindowTracking"),hE="_cobrowse_window_id";var dE=new WeakMap,fE=new WeakMap,pE=new WeakMap,_E=new WeakMap;class EE extends td.EventEmitter{constructor(...e){super(...e),Mr(this,dE,vE._.call(EE)),Mr(this,fE,!1),Mr(this,pE,!1),Ur(this,"start",()=>{Pr(pE,this)||(Dr(pE,this,!0),uE("started"),Pr(_E,this).call(this),document.addEventListener("visibilitychange",Pr(_E,this),{capture:!0}),document.addEventListener("mouseover",Pr(_E,this),{capture:!0}))}),Ur(this,"stop",()=>{uE("stopped"),this.removeAllListeners(),Dr(pE,this,!1),document.removeEventListener("visibilitychange",Pr(_E,this),{capture:!0}),document.removeEventListener("mouseover",Pr(_E,this),{capture:!0})}),Ur(this,"isActive",()=>lE().getItem(hE)===this.id),Ur(this,"setTracksIframes",e=>{Dr(fE,this,e),Pr(_E,this).call(this)}),Ur(this,"shouldTrack",()=>!document.hidden&&(!(window.self!==window.top)||Pr(fE,this))),Ur(this,"makeActive",()=>{this.isActive()||(uE("making active",window),lE().setItem(hE,this.id),this.emit("activate",window))}),Ur(this,"resignActive",()=>{this.isActive()&&(uE("resigning active",window),lE().setItem(hE,null))}),Mr(this,_E,()=>{this.shouldTrack()&&this.makeActive(),this.emit("updated")})}get id(){return Pr(dE,this)}}var vE={_:()=>(document.__cobrowse_window_id=document.__cobrowse_window_id||J_(),document.__cobrowse_window_id)};const mE=new EE;var gE,IE,LE,wE,CE,yE,AE,NE,SE,TE,bE,OE,RE,kE,PE,ME,DE,GE,xE,UE,WE,FE,VE,jE,zE,BE,HE,QE,YE,KE,$E,JE,XE,qE,ZE,ev,tv,nv,rv,iv,ov,sv,av,cv,lv,uv,hv,dv,fv,pv,_v,Ev,vv,mv,gv,Iv,Lv,wv,Cv,yv,Av,Nv,Sv,Tv,bv,Ov,Rv,kv,Pv,Mv,Dv,Gv,xv,Uv,Wv,Fv,Vv,jv,zv,Bv,Hv,Qv,Yv,Kv,$v,Jv,Xv,qv,Zv,em,tm,nm,rm,im,om,sm,am,cm,lm,um,hm,dm,fm,pm,_m,Em,vm,mm,gm,Im,Lm,wm,Cm,ym,Am,Nm,Sm,Tm,bm,Om,Rm,km,Pm,Mm,Dm,Gm,xm,Um,Wm,Fm,Vm,jm,zm,Bm,Hm,Qm;function Ym(){if(IE)return gE;IE=1;var e=Array.isArray;return gE=e}function Km(){if(yE)return CE;yE=1;var e=qd(),t=hd();return CE=function(n){if(!t(n))return!1;var r=e(n);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r}}function $m(){if(OE)return bE;OE=1;var e=Function.prototype.toString;return bE=function(t){if(null!=t){try{return e.call(t)}catch(e){}try{return t+""}catch(e){}}return""}}function Jm(){if(GE)return DE;GE=1;var e=function(){if(kE)return RE;kE=1;var e=Km(),t=function(){if(TE)return SE;TE=1;var e=function(){if(NE)return AE;NE=1;var e=fd()["__core-js_shared__"];return AE=e}(),t=function(){var t=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();return SE=function(e){return!!t&&t in e}}(),n=hd(),r=$m(),i=/^\[object .+?Constructor\]$/,o=Function.prototype,s=Object.prototype,a=o.toString,c=s.hasOwnProperty,l=RegExp("^"+a.call(c).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return RE=function(o){return!(!n(o)||t(o))&&(e(o)?l:i).test(r(o))}}(),t=ME?PE:(ME=1,PE=function(e,t){return null==e?void 0:e[t]});return DE=function(n,r){var i=t(n,r);return e(i)?i:void 0}}function Xm(){if(UE)return xE;UE=1;var e=Jm()(Object,"create");return xE=e}function qm(){return ev?ZE:(ev=1,ZE=function(e,t){return e===t||e!=e&&t!=t})}function Zm(){if(nv)return tv;nv=1;var e=qm();return tv=function(t,n){for(var r=t.length;r--;)if(e(t[r][0],n))return r;return-1}}function eg(){if(dv)return hv;dv=1;var e=qE?XE:(qE=1,XE=function(){this.__data__=[],this.size=0}),t=function(){if(iv)return rv;iv=1;var e=Zm(),t=Array.prototype.splice;return rv=function(n){var r=this.__data__,i=e(r,n);return!(i<0||(i==r.length-1?r.pop():t.call(r,i,1),--this.size,0))}}(),n=function(){if(sv)return ov;sv=1;var e=Zm();return ov=function(t){var n=this.__data__,r=e(n,t);return r<0?void 0:n[r][1]}}(),r=function(){if(cv)return av;cv=1;var e=Zm();return av=function(t){return e(this.__data__,t)>-1}}(),i=function(){if(uv)return lv;uv=1;var e=Zm();return lv=function(t,n){var r=this.__data__,i=e(r,t);return i<0?(++this.size,r.push([t,n])):r[i][1]=n,this}}();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,hv=o}function tg(){if(pv)return fv;pv=1;var e=Jm()(fd(),"Map");return fv=e}function ng(){if(Iv)return gv;Iv=1;var e=mv?vv:(mv=1,vv=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e});return gv=function(t,n){var r=t.__data__;return e(n)?r["string"==typeof n?"string":"hash"]:r.map}}function rg(){if(Ov)return bv;Ov=1;var e=function(){if(Ev)return _v;Ev=1;var e=function(){if(JE)return $E;JE=1;var e=function(){if(FE)return WE;FE=1;var e=Xm();return WE=function(){this.__data__=e?e(null):{},this.size=0}}(),t=jE?VE:(jE=1,VE=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}),n=function(){if(BE)return zE;BE=1;var e=Xm(),t=Object.prototype.hasOwnProperty;return zE=function(n){var r=this.__data__;if(e){var i=r[n];return"__lodash_hash_undefined__"===i?void 0:i}return t.call(r,n)?r[n]:void 0}}(),r=function(){if(QE)return HE;QE=1;var e=Xm(),t=Object.prototype.hasOwnProperty;return HE=function(n){var r=this.__data__;return e?void 0!==r[n]:t.call(r,n)}}(),i=function(){if(KE)return YE;KE=1;var e=Xm();return YE=function(t,n){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=e&&void 0===n?"__lodash_hash_undefined__":n,this}}();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,$E=o}(),t=eg(),n=tg();return _v=function(){this.size=0,this.__data__={hash:new e,map:new(n||t),string:new e}}}(),t=function(){if(wv)return Lv;wv=1;var e=ng();return Lv=function(t){var n=e(this,t).delete(t);return this.size-=n?1:0,n}}(),n=function(){if(yv)return Cv;yv=1;var e=ng();return Cv=function(t){return e(this,t).get(t)}}(),r=function(){if(Nv)return Av;Nv=1;var e=ng();return Av=function(t){return e(this,t).has(t)}}(),i=function(){if(Tv)return Sv;Tv=1;var e=ng();return Sv=function(t,n){var r=e(this,t),i=r.size;return r.set(t,n),this.size+=r.size==i?0:1,this},Sv}();function o(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}return o.prototype.clear=e,o.prototype.delete=t,o.prototype.get=n,o.prototype.has=r,o.prototype.set=i,bv=o}function ig(){return Uv?xv:(Uv=1,xv=function(e,t){for(var n=-1,r=null==e?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i})}function og(){if(Bv)return zv;Bv=1;var e=Ym(),t=function(){if(wE)return LE;wE=1;var e=Ym(),t=ef(),n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;return LE=function(i,o){if(e(i))return!1;var s=typeof i;return!("number"!=s&&"symbol"!=s&&"boolean"!=s&&null!=i&&!t(i))||r.test(i)||!n.test(i)||null!=o&&i in Object(o)}}(),n=function(){if(Gv)return Dv;Gv=1;var e=function(){if(Mv)return Pv;Mv=1;var e=function(){if(kv)return Rv;kv=1;var e=rg();function t(n,r){if("function"!=typeof n||null!=r&&"function"!=typeof r)throw new TypeError("Expected a function");var i=function(){var e=arguments,t=r?r.apply(this,e):e[0],o=i.cache;if(o.has(t))return o.get(t);var s=n.apply(this,e);return i.cache=o.set(t,s)||o,s};return i.cache=new(t.Cache||e),i}return t.Cache=e,Rv=t}();return Pv=function(t){var n=e(t,function(e){return 500===r.size&&r.clear(),e}),r=n.cache;return n}}(),t=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,n=/\\(\\)?/g,r=e(function(e){var r=[];return 46===e.charCodeAt(0)&&r.push(""),e.replace(t,function(e,t,i,o){r.push(i?o.replace(n,"$1"):t||e)}),r});return Dv=r}(),r=function(){if(jv)return Vv;jv=1;var e=function(){if(Fv)return Wv;Fv=1;var e=Xd(),t=ig(),n=Ym(),r=ef(),i=e?e.prototype:void 0,o=i?i.toString:void 0;return Wv=function e(i){if("string"==typeof i)return i;if(n(i))return t(i,e)+"";if(r(i))return o?o.call(i):"";var s=i+"";return"0"==s&&1/i==-1/0?"-0":s},Wv}();return Vv=function(t){return null==t?"":e(t)}}();return zv=function(i,o){return e(i)?i:t(i,o)?[i]:n(r(i))}}function sg(){if(Qv)return Hv;Qv=1;var e=ef();return Hv=function(t){if("string"==typeof t||e(t))return t;var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}}function ag(){if(Kv)return Yv;Kv=1;var e=og(),t=sg();return Yv=function(n,r){for(var i=0,o=(r=e(r,n)).length;null!=n&&i<o;)n=n[t(r[i++])];return i&&i==o?n:void 0},Yv}function cg(){if(Jv)return $v;Jv=1;var e=Jm(),t=function(){try{var t=e(Object,"defineProperty");return t({},"",{}),t}catch(e){}}();return $v=t}function lg(){if(qv)return Xv;qv=1;var e=cg();return Xv=function(t,n,r){"__proto__"==n&&e?e(t,n,{configurable:!0,enumerable:!0,value:r,writable:!0}):t[n]=r}}function ug(){if(em)return Zv;em=1;var e=lg(),t=qm(),n=Object.prototype.hasOwnProperty;return Zv=function(r,i,o){var s=r[i];n.call(r,i)&&t(s,o)&&(void 0!==o||i in r)||e(r,i,o)}}function hg(){if(nm)return tm;nm=1;var e=/^(?:0|[1-9]\d*)$/;return tm=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}}function dg(){if(dm)return hm;dm=1;var e=function(){if(um)return lm;um=1;var e=qd(),t=Zd();return lm=function(n){return t(n)&&"[object Arguments]"==e(n)}}(),t=Zd(),n=Object.prototype,r=n.hasOwnProperty,i=n.propertyIsEnumerable,o=e(function(){return arguments}())?e:function(e){return t(e)&&r.call(e,"callee")&&!i.call(e,"callee")};return hm=o}function fg(){return pm?fm:(pm=1,fm=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991})}function pg(){return wm||(wm=1,Lm=function(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}),Lm}function _g(){if(jm)return Vm;jm=1;var e=function(){if(Um)return xm;Um=1;var e=Mm?Pm:(Mm=1,Pm=function(e){return function(){return e}}),t=cg(),n=Gm?Dm:(Gm=1,Dm=function(e){return e});return xm=t?function(n,r){return t(n,"toString",{configurable:!0,enumerable:!1,value:e(r),writable:!0})}:n}(),t=function(){if(Fm)return Wm;Fm=1;var e=Date.now;return Wm=function(t){var n=0,r=0;return function(){var i=e(),o=16-(i-r);if(r=i,o>0){if(++n>=800)return arguments[0]}else n=0;return t.apply(void 0,arguments)}},Wm}(),n=t(e);return Vm=n}function Eg(){if(Bm)return zm;Bm=1;var e=function(){if(Tm)return Sm;Tm=1;var e=function(){if(Nm)return Am;Nm=1;var e=pg(),t=function(){if(ym)return Cm;ym=1;var e=Xd(),t=dg(),n=Ym(),r=e?e.isConcatSpreadable:void 0;return Cm=function(e){return n(e)||t(e)||!!(r&&e&&e[r])}}();return Am=function n(r,i,o,s,a){var c=-1,l=r.length;for(o||(o=t),a||(a=[]);++c<l;){var u=r[c];i>0&&o(u)?i>1?n(u,i-1,o,s,a):e(a,u):s||(a[a.length]=u)}return a}}();return Sm=function(t){return null!=t&&t.length?e(t,1):[]}}(),t=function(){if(km)return Rm;km=1;var e=Om?bm:(Om=1,bm=function(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}),t=Math.max;return Rm=function(n,r,i){return r=t(void 0===r?n.length-1:r,0),function(){for(var o=arguments,s=-1,a=t(o.length-r,0),c=Array(a);++s<a;)c[s]=o[r+s];s=-1;for(var l=Array(r+1);++s<r;)l[s]=o[s];return l[r]=i(c),e(n,this,l)}},Rm}(),n=_g();return zm=function(r){return n(t(r,void 0,e),r+"")}}var vg=function(){if(Qm)return Hm;Qm=1;var e=function(){if(Im)return gm;Im=1;var e=function(){if(sm)return om;sm=1;var e=ag(),t=function(){if(im)return rm;im=1;var e=ug(),t=og(),n=hg(),r=hd(),i=sg();return rm=function(o,s,a,c){if(!r(o))return o;for(var l=-1,u=(s=t(s,o)).length,h=u-1,d=o;null!=d&&++l<u;){var f=i(s[l]),p=a;if("__proto__"===f||"constructor"===f||"prototype"===f)return o;if(l!=h){var _=d[f];void 0===(p=c?c(_,f,d):void 0)&&(p=r(_)?_:n(s[l+1])?[]:{})}e(d,f,p),d=d[f]}return o},rm}(),n=og();return om=function(r,i,o){for(var s=-1,a=i.length,c={};++s<a;){var l=i[s],u=e(r,l);o(u,l)&&t(c,n(l,r),u)}return c},om}(),t=function(){if(mm)return vm;mm=1;var e=cm?am:(cm=1,am=function(e,t){return null!=e&&t in Object(e)}),t=function(){if(Em)return _m;Em=1;var e=og(),t=dg(),n=Ym(),r=hg(),i=fg(),o=sg();return _m=function(s,a,c){for(var l=-1,u=(a=e(a,s)).length,h=!1;++l<u;){var d=o(a[l]);if(!(h=null!=s&&c(s,d)))break;s=s[d]}return h||++l!=u?h:!!(u=null==s?0:s.length)&&i(u)&&r(d,u)&&(n(s)||t(s))},_m}();return vm=function(n,r){return null!=n&&t(n,r,e)},vm}();return gm=function(n,r){return e(n,r,function(e,r){return t(n,r)})},gm}(),t=Eg()(function(t,n){return null==t?{}:e(t,n)});return Hm=t}();const mg=t(vg),gg="abcdefghijklmnopqrstuvwxyz",Ig=`0123456789${gg.toLowerCase()}${gg.toUpperCase()}`;function Lg(e,t=Ig){let n="";for(let r=e;r>0;r-=1)n+=t[Math.floor(Math.random()*t.length)];return n}const wg=new class{isDOMNode(e){return!!e&&!(!e.childNodes||"function"!=typeof e.appendChild||void 0===e.nodeType)}},Cg=new class{constructor(){Ur(this,"_idMap",new Map),Ur(this,"_nodeMap",new Map),Ur(this,"_currentId",0),Ur(this,"_nextId",()=>(this._currentId+=1,this._currentId)),Ur(this,"track",e=>{if(!e)return null;if(!wg.isDOMNode(e))return e.id;if(!this.get(e)){const t=e.nodeType===window.Node.DOCUMENT_NODE?Lg(5):`${this.track(document)}-${this._nextId()}`;this._idMap.set(t,e),this._nodeMap.set(e,t)}return this._nodeMap.get(e)}),Ur(this,"get",e=>e?wg.isDOMNode(e)?this._nodeMap.get(e)||null:e.id:null),Ur(this,"getById",e=>e&&this._idMap.get(e)||null),Ur(this,"forget",e=>{this._idMap.delete(this.get(e)),this._nodeMap.delete(e)})}};var yg,Ag;let Ng;try{Ng=document.createElement("iframe"),document.documentElement.appendChild(Ng),Ng.style.display="none",Ng.className="__cbio_ignored",Ng.width=0,Ng.height=0}catch(pj){console.warn("Failed to create unpolyfill iframe",pj)}const{Node:Sg,Element:Tg,MutationObserver:bg,Event:Og,EventTarget:Rg}=null!==(yg=null===(Ag=Ng)||void 0===Ag?void 0:Ag.contentWindow)&&void 0!==yg?yg:window,kg=Af("cbio.NodeTree"),Pg={[window.Node.COMMENT_NODE]:!0,[window.Node.CDATA_SECTION_NODE]:!0,[window.Node.ENTITY_REFERENCE_NODE]:!0,[window.Node.ENTITY_NODE]:!0,[window.Node.PROCESSING_INSTRUCTION_NODE]:!0,[window.Node.NOTATION_NODE]:!0,[window.Node.DOCUMENT_TYPE_NODE]:!0},Mg=e=>{try{return e&&/\.(mjs|cjs|js)$/i.test(new URL(e,window.location.href).pathname)}catch(e){return!1}};var Dg=new WeakMap;const Gg=new class{constructor(){Mr(this,Dg,".__cbio_ignored"),Ur(this,"isIgnored",e=>{var t,n;if(Pg[e.nodeType])return kg("ignoring",e,"because of nodeType"),!0;if("SCRIPT"===e.tagName)return kg("ignoring",e,"because of SCRIPT"),!0;if("LINK"===e.tagName&&(e=>{var t,n,r;const i=null!==(t=null===(n=e.rel)||void 0===n?void 0:n.toUpperCase().split(/\s+/))&&void 0!==t?t:[],o=null===(r=e.as)||void 0===r?void 0:r.trim().toUpperCase();for(const t of i){if("MODULEPRELOAD"===t)return!0;if("PRELOAD"===t&&"SCRIPT"===o)return!0;if("PREFETCH"===t&&Mg(e.href))return!0}return!1})(e))return kg("ignoring",e,"because it preloads a script"),!0;if(null!==(t=e.closest)&&void 0!==t&&t.call(e,Pr(Dg,this)))return kg("ignoring",e,"because child of classes"),!0;const r=e.parentNode||e.defaultView&&e.defaultView.frameElement;return"STYLE"===(null==r||null===(n=r.tagName)||void 0===n?void 0:n.toUpperCase())&&(kg("ignoring",e,"because child of STYLE"),!0)}),Ur(this,"children",e=>{const{get:t}=Object.getOwnPropertyDescriptor(Sg.prototype,"childNodes"),{get:n}=Object.getOwnPropertyDescriptor(Tg.prototype,"shadowRoot");return wg.isDOMNode(e)?"IFRAME"===e.tagName&&W_(e)?e.__document_id?[{id:e.__document_id,nodeType:9}]:[]:"IFRAME"!==e.tagName||W_(e)?e.nodeType===window.Node.ELEMENT_NODE&&n.apply(e)?[n.apply(e),...Array.from(t.apply(e))].filter(e=>!this.isIgnored(e)):Array.from(t.apply(e)).filter(e=>!this.isIgnored(e)):"complete"!==e.contentWindow.document.readyState?[]:[e.contentWindow.document].filter(e=>!this.isIgnored(e)):e.childNodes})}setIgnoredViews(e){if(Array.isArray(e))return Dr(Dg,this,[".__cbio_ignored",...e].filter(Boolean).join(",")),void kg("set ignored view selectors",Pr(Dg,this));kg("not updating #ignoredViews due to arg to being an array",e)}depthFirst(e,t){P_(e,(e,n)=>{n(this.children(e)),t(e,n)})}depthFirstMapped(e,t){return k_(e,(e,n)=>(n(this.children(e)),t(e,n)))}},xg=Af("cbio.Redaction");var Ug=new WeakMap;const Wg=new class{constructor(){Mr(this,Ug,void 0)}init(e){Dr(Ug,this,e),xg("initialising with new nodeIndex")}getRedactedBy(e){var t,n;return null!==(t=null===(n=Pr(Ug,this))||void 0===n?void 0:n.getIncludedBy(e))&&void 0!==t?t:null}isRedacted(e){var t,n;return null!==(t=null===(n=Pr(Ug,this))||void 0===n?void 0:n.isIncluded(e))&&void 0!==t&&t}notifyChanges(e,t,n,r){var i,o;return null!==(i=null===(o=Pr(Ug,this))||void 0===o?void 0:o.notifyChanges(e,t,n,r))&&void 0!==i?i:new Set}},Fg=Af("cbio.DisabledViews");var Vg=new WeakMap;const jg=new class{constructor(){Mr(this,Vg,void 0)}init(e){Dr(Vg,this,e),Fg("initialising with new nodeIndex")}getDisabledBy(e){var t,n;return null!==(t=null===(n=Pr(Vg,this))||void 0===n?void 0:n.getIncludedBy(e))&&void 0!==t?t:null}isDisabled(e){var t,n;return null!==(t=null===(n=Pr(Vg,this))||void 0===n?void 0:n.isIncluded(e))&&void 0!==t&&t}notifyChanges(e,t,n,r){var i,o;return null!==(i=null===(o=Pr(Vg,this))||void 0===o?void 0:o.notifyChanges(e,t,n,r))&&void 0!==i?i:new Set}};class zg{static fromImage(e){const t=document.createElement("canvas");return t.width=e.width,t.height=e.height,t.getContext("2d").drawImage(e,0,0,t.width,t.height),this.fromCanvas(t)}static fromCanvas(e,t=1,n=.3){if(1===t)return e.toDataURL?e.toDataURL("image/webp",n):null;const r=document.createElement("canvas"),i=r.getContext("2d");return r.width=e.width*t,r.height=e.height*t,i.drawImage(e,0,0,r.width,r.height),r.toDataURL("image/webp",n)}}let Bg=null;const Hg=e=>{try{if(e.media&&e.media.length&&!window.matchMedia(e.media).matches)return""}catch(t){console.warn("CobrowseIO: Media detection for sheet failed:",t,"sheet",e)}return[].slice.call(e.cssRules).reduce((e,t)=>{try{return e+t.cssText}catch(t){return e}},"")},Qg=e=>"IMG"===e.tagName?e.currentSrc:"LINK"===e.tagName?e.href:null,Yg=(e,t)=>{const n=Qg(e);e.__cbio_content_cache=e.__cbio_content_cache||{},e.__cbio_content_cache[n]=t},Kg=e=>{var t;const n=Qg(e);return null===(t=e.__cbio_content_cache)||void 0===t?void 0:t[n]},$g=async e=>{const t=Cg.getById(e);if(t)return"IMG"===t.tagName?(async e=>{if(Kg(e))return;const t=Qg(e),n=await(async()=>{try{await(n=e,new Promise(e=>{if(n.complete)return e();const t=()=>{clearTimeout(r),n.removeEventListener("load",t),n.removeEventListener("error",t),e()};n.addEventListener("load",t,{once:!0}),n.addEventListener("error",t,{once:!0});const r=setTimeout(t,5e3)}));const t=zg.fromImage(e);if("data:,"!==t)return t}catch(e){}var n;try{return await(e=>new Promise((t,n)=>{const r=new Image;r.crossOrigin="anonymous",r.src=e,r.onload=()=>{try{const e=zg.fromImage(r);t(e)}catch(e){n(e)}},r.onerror=n}))(t)}catch(e){}})();n&&Yg(e,n)})(t):"LINK"===t.tagName&&"stylesheet"===t.rel?(async e=>{if(Kg(e))return;const t=Qg(e),n=await(async()=>{try{if(e.sheet)return Hg(e.sheet)}catch(e){}try{return await(e=>new Promise((t,n)=>{const r=document.createElement("link");r.crossOrigin="anonymous",r.rel="stylesheet",r.href=e,r.setAttribute("class","__cbio_ignored"),r.onload=()=>{try{const e=Hg(r.sheet);t(e)}catch(e){n(e)}finally{r.remove()}},r.onerror=e=>{r.remove(),n(e)},document.head.appendChild(r)}))(t)}catch(e){}})();n&&Yg(e,n)})(t):void 0},Jg={OBJECT:!0,EMBED:!0},Xg=new Set(["A","AREA","AUDIO","BUTTON","DETAILS","DIALOG","EMBED","IFRAME","IMG","INPUT","LABEL","MENU","OBJECT","OPTGROUP","OPTION","SELECT","SUMMARY","TEXTAREA","VIDEO"]),qg=new Set(["button","link","menuitem","menuitemcheckbox","menuitemradio","checkbox","radio","switch","textbox","searchbox","spinbutton","slider","combobox","listbox","option"]),Zg=new class{constructor(){Ur(this,"isLocalResource",e=>!!(/^https?:\/\/localhost/.test(e)||/^https?:\/\/127.0.0.1/.test(e)||/^file:\/\//.test(e)||/^blob:/.test(e)||/^ionic:/.test(e))),Ur(this,"serializeAdoptedStyleSheets",e=>{try{let t=[];return[...e.adoptedStyleSheets||[]].forEach(e=>{t=t.concat([].slice.call(e.cssRules))}),Hg({cssRules:t})}catch(t){return console.warn("CobrowseIO: AdoptedStyleSheets serialize failed:",t.message,"for",e),""}})}_serializeAttributes(e,t){if(e.nodeType===window.Node.ELEMENT_NODE&&e.attributes){const n={};Array.from(e.attributes||[]).forEach(t=>{t.nodeName.startsWith("@")||("href"===t.nodeName||"src"===t.nodeName?n[t.nodeName]="string"==typeof e[t.nodeName]?e[t.nodeName]:t.nodeValue:n[t.nodeName]=t.nodeValue)}),t.attributes=n}}_serializeSelection(e,t){var n;let r=null;const i=e.getSelection();if(i&&"Range"===i.type&&!i.isCollapsed&&i.rangeCount>0)try{r=[...Array(i.rangeCount)].reduce((e,t,n)=>{const r=i.getRangeAt(n),{startOffset:o,endOffset:s}=r,a=Wg.getRedactedBy(r.startContainer),c=Wg.getRedactedBy(r.endContainer),l=Cg.get(null!=a?a:r.startContainer),u=Cg.get(null!=c?c:r.endContainer);return e.push({start:l,end:u,startOffset:a?0:o,endOffset:c?0:s}),e},[])}catch(e){console.warn("CobrowseIO: Could not serialize text selection",e)}else["INPUT","TEXTAREA"].includes(null===(n=e.activeElement)||void 0===n?void 0:n.tagName)&&e.activeElement.selectionStart!==e.activeElement.selectionEnd&&(r=!1);t.selection=r}_serializeDocument(e,t){if(e.nodeType===window.Node.DOCUMENT_NODE){var n,r,i,o,s,a;t.url=e.location&&e.location.href;const c=1===(null!==(n=null===(r=e.defaultView)||void 0===r||null===(r=r.visualViewport)||void 0===r?void 0:r.scale)&&void 0!==n?n:1),l=0===function(){if(null==Bg){var e,t;const n=document.createElement("div");n.style.cssText="width: 100px; height: 100px; overflow: scroll; position: absolute; top: -500px; left: -500px; margin: 0px; padding: 0px; border: none;",null===(e=document.body)||void 0===e||e.appendChild(n),Bg=n.offsetWidth-n.clientWidth,null===(t=document.body)||void 0===t||t.removeChild(n)}return Bg}()&&c,u=l?null===(i=e.defaultView)||void 0===i?void 0:i.innerWidth:null===(o=e.documentElement)||void 0===o?void 0:o.clientWidth,h=l?null===(s=e.defaultView)||void 0===s?void 0:s.innerHeight:null===(a=e.documentElement)||void 0===a?void 0:a.clientHeight;t.size={width:u,height:h},t.focus=Cg.get(e.activeElement);const d=e=>({name:e.name,publicId:e.publicId,systemId:e.systemId});t.doctype=null!=e.doctype?d(e.doctype):null,t.css=this.serializeAdoptedStyleSheets(e),this._serializeSelection(e,t)}}_serializeInput(e,t){if("INPUT"===e.tagName||"TEXTAREA"===e.tagName||"OPTION"===e.tagName){t.value=e.value,"radio"!==e.type&&"checkbox"!==e.type||void 0===e.checked||(t.checked=e.checked),t.selection=null;try{const{selectionStart:n,selectionEnd:r,selectionDirection:i}=e;n!==r&&e===e.ownerDocument.activeElement&&(t.selection={start:n,end:r,direction:i})}catch(t){console.warn("Failed to serialise text selection for the input",e)}}}_serializeSelect(e,t){"SELECT"!==e.tagName||e.size&&1!==e.size||e.multiple||(t.preventDefault=!0)}_serializeOption(e,t){"OPTION"===e.tagName&&(t.selected=e.selected)}_serializeShadowRoot(e,t){e.nodeType===window.Node.DOCUMENT_FRAGMENT_NODE&&(t.css=this.serializeAdoptedStyleSheets(e))}_serializeStyle(e,t){var n;if("STYLE"===(null===(n=e.tagName)||void 0===n?void 0:n.toUpperCase()))try{e.sheet&&(t.css=Hg(e.sheet))}catch(t){console.warn("CobrowseIO: CSS serialize failed:",t.message,"for",e)}}_serializeLinkStyleSheet(e,t){if("LINK"===e.tagName&&"stylesheet"===e.rel){const n=Kg(e);if(n)return void(t.css=n);if(this.isLocalResource(e.href))try{e.sheet&&(t.css=Hg(e.sheet))}catch(t){console.warn("CobrowseIO: CSS serialize failed:",t.message,"for",e)}}}_serializeCanvas(e,t,n){if("CANVAS"===e.tagName&&!n.isRedacted&&n.rasterizeCanvas)try{var r;const n=parseFloat(null===(r=e.attributes)||void 0===r||null===(r=r["data-cbio-quality"])||void 0===r?void 0:r.value)||.8;t.data=zg.fromCanvas(e,n)}catch(t){e._cb_serialize_warned||(console.warn("Cobrowse failed to serialize canvas",e,"due to error",t),e._cb_serialize_warned=!0)}}_serializeImage(e,t,n){if("IMG"===e.tagName&&!n.isRedacted){const n=Kg(e);if(n)return t.attributes.src=n,void delete t.attributes.srcset;if(this.isLocalResource(e.src))try{t.attributes.src=zg.fromImage(e),delete t.attributes.srcset}catch(t){console.warn("CobrowseIO: Failed to serialize image",e)}}}_serializeScroll(e,t){var n,r;W_(e)||(e.nodeType===window.Node.DOCUMENT_NODE?t.scroll={x:(null===(n=e.defaultView)||void 0===n?void 0:n.pageXOffset)||0,y:(null===(r=e.defaultView)||void 0===r?void 0:r.pageYOffset)||0}:"HTML"!==e.tagName&&(e.scrollWidth>e.clientWidth||e.scrollHeight>e.clientHeight)&&(t.scroll={x:e.scrollLeft||0,y:e.scrollTop||0}))}_serializeRedaction(e,t,n){if(n.isRedacted){delete t.value;const n=this._getSize(e);if(1===e.nodeType){const r=window.getComputedStyle(e),i="inline"===r.display&&n.height>0?"inline-block":r.display;t.attributes=t.attributes&&Fr({id:t.attributes.id,class:t.attributes.class,style:`${t.attributes.style||""}; display: ${i} !important;flex-basis: unset !important;flex-shrink: 0;z-index:${r.zIndex};`},"EMBED"===e.nodeName?{src:"data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs="}:{})}else 3===e.nodeType&&(t.nodeType=1,t.tagName="SPAN",t.attributes={style:n.height>0?"display: inline-block !important":void 0});t.redaction={height:`${n.height}px`,width:`${n.width}px`}}else t.redaction=void 0}_serializePseudoSelectors(e,t){var n,r,i;"function"==typeof e.matches&&(null===(n=t.attributes)||void 0===n||delete n.__cbio_pseudo_hover,null===(r=t.attributes)||void 0===r||delete r.__cbio_pseudo_active,null===(i=t.attributes)||void 0===i||delete i.__cbio_pseudo_focus,t.attributes=Fr(Fr(Fr(Fr({},t.attributes),e.matches(":hover")?{__cbio_pseudo_hover:""}:{}),e.matches(":active")?{__cbio_pseudo_active:""}:{}),e.matches(":focus")?{__cbio_pseudo_focus:""}:{}))}_serializeVisibility(e,t,n){e.tagName&&(n.forceHidden&&(t.attributes=Fr(Fr({},t.attributes),{},{style:"display: none !important;"})),null!=n&&n.includeVisibility&&(t.hidden=n.forceHidden||this._isExplicitlyHidden(e)||this._isHidden(e)&&e.parentElement&&!this._isHidden(e.parentElement),this._serializeInteractive(e,t)))}_isHidden(e){return this._isExplicitlyHidden(e)||this._isVisiblyHidden(e)}_isExplicitlyHidden(e){var t;return!0===e.hidden||"none"===(null===(t=e.style)||void 0===t?void 0:t.display)}_isVisiblyHidden(e){return"contents"!==getComputedStyle(e).display&&!this._checkVisibility(e)}_checkVisibility(e){return!e.checkVisibility||e.checkVisibility({visibilityProperty:!0})}_serializeInteractive(e,t){if(Xg.has(e.tagName)||qg.has(e.getAttribute("role"))||e.hasAttribute("tabindex")&&Number(e.getAttribute("tabindex"))>=0)return void(t.interactive="semantic");if(e.hasAttribute("onclick"))return void(t.interactive="scripted");const n=this._getCustomCursor(e.parentElement),r=this._getCustomCursor(e);r&&n!==r&&(t.interactive="styled")}_getCustomCursor(e){if(!e)return;const t=getComputedStyle(e);return t.cursor&&"auto"!==t.cursor&&"default"!==t.cursor?t.cursor:void 0}_getSize(e){const t=null==e?void 0:e.nodeType;if(null==t)return{height:0,width:0};if(t===Node.ELEMENT_NODE)return e.getBoundingClientRect();{const t=document.createRange();return t.selectNodeContents(e),t.getBoundingClientRect()}}_serializeDisabledView(e,t){t.disabled=jg.isDisabled(e)}_serialize(e,t){if(!Cg.get(e))throw console.error("node missing id",e,e.parentNode),new Error("node missing id",e);if(!wg.isDOMNode(e))return e;if(!e.nodeType)throw new Error("node missing type",e);const n={id:Cg.get(e),nodeType:e.nodeType};return this._serializeShadowRoot(e,n),this._serializeAttributes(e,n),this._serializeImage(e,n,t),this._serializeDocument(e,n),this._serializeScroll(e,n),this._serializeInput(e,n),this._serializeSelect(e,n),this._serializeOption(e,n),this._serializeStyle(e,n),this._serializeLinkStyleSheet(e,n),this._serializeCanvas(e,n,t),this._serializeRedaction(e,n,t),this._serializePseudoSelectors(e,n),this._serializeVisibility(e,n,t),this._serializeDisabledView(e,n),e.tagName&&(n.tagName=e.tagName),e.nodeValue&&(n.content=e.nodeValue),n}serialize(e,t=()=>{},n={}){const r=Wg.getRedactedBy(e);if(r&&r!==e)return null;if(Gg.isIgnored(e))return t([]),null;const i=Boolean(Jg[e.tagName]),o=this._serialize(e,Fr({isRedacted:Boolean(r)||i},n));if(n.skipChildren||i)return o;if(r)return t([]),Fr(Fr({},o),{},{childNodes:[]});const s=Gg.children(e);if(s){const e=s.map(e=>{if(!wg.isDOMNode(e))return Fr({},e);const t=Cg.get(e);return t||console.warn("child node missing id",e),{id:t}});return Fr(Fr({},o),{},{childNodes:e})}return o}};var eI,tI,nI,rI,iI={};function oI(){if(tI)return eI;tI=1;var e=_i(),t=_n(),n=vi(),r=oa(),i=function(o,s,a,c,l,u,h,d){for(var f,p,_=l,E=0,v=!!h&&r(h,d);E<c;)E in a&&(f=v?v(a[E],E,s):a[E],u>0&&e(f)?(p=t(f),_=i(o,s,f,p,_,u-1)-1):(n(_+1),o[_]=f),_++),E++;return _};return eI=i}!function(){if(nI)return iI;nI=1;var e=hr(),t=oI(),n=Ae(),r=rt(),i=_n(),o=yu();e({target:"Array",proto:!0},{flatMap:function(e){var s,a=r(this),c=i(a);return n(e),(s=o(a,0)).length=t(s,a,a,c,0,1,e,arguments.length>1?arguments[1]:void 0),s}})}(),rI||(rI=1,Qh()("flatMap"));var sI=new WeakMap,aI=new WeakMap,cI=new WeakMap,lI=new WeakMap,uI=new WeakSet;class hI{constructor(e=[],t=[],{document:n=window.document}={}){xr(this,uI),Mr(this,sI,void 0),Mr(this,aI,void 0),Mr(this,cI,new Set),Mr(this,lI,new Set),Dr(sI,this,Sr(uI,this,SI).call(this,...e)),Dr(aI,this,Sr(uI,this,SI).call(this,...t));for(const e of Sr(uI,this,AI).call(this,n,Pr(sI,this)))Pr(cI,this).add(e);for(const e of Sr(uI,this,AI).call(this,n,Pr(aI,this)))Pr(lI,this).add(e)}getIncludedBy(e){if(Sr(uI,this,II).call(this,e)||Sr(uI,this,CI).call(this,e))return null;const t=Sr(uI,this,LI).call(this,e);return t?Sr(uI,this,CI).call(this,e.parentNode)?e:t:Sr(uI,this,gI).call(this,e)?e:null}notifyChanges(e,t,n,r){const i=new Set,o=new Set,s=new Set([...Pr(cI,this)]);for(const t of e){if(Gg.isIgnored(t.target)||r.has(t.target))continue;const e=this.getIncludedBy(t.target);if(e&&e!==t.target&&i.add(e),"attributes"===t.type){const e=Sr(uI,this,yI).call(this,t.target);for(const t of e)o.add(t);const n=Sr(uI,this,II).call(this,t.target);Pr(lI,this).has(t.target)!==!!n&&o.add(t.target.parentNode)}else if("childList"===t.type){const e=Sr(uI,this,dI).call(this,t.removedNodes),n=Sr(uI,this,dI).call(this,t.addedNodes);if(!o.has(t.target)){const r=Sr(uI,this,yI).call(this,t.target).length>0;(r&&n||!r&&e)&&o.add(t.target)}}}const a=Sr(uI,this,mI).call(this,o);for(const e of a)Gg.isIgnored(e)||i.add(e);Sr(uI,this,fI).call(this,t,new Set([...i,...n]),r);for(const e of n)for(const t of Pr(cI,this))e.contains(t)&&i.add(t);for(const e of s)Pr(cI,this).has(e)||r.has(e)||Gg.depthFirst(e,e=>i.add(e));return i}isIncluded(e){return Boolean(this.getIncludedBy(e))}}function dI(e){const t=[...e];return t.find(e=>!Gg.isIgnored(e)&&Sr(uI,this,II).call(this,e))||t.find(e=>Sr(uI,this,yI).call(this,e).length>0)}function fI(e,t,n){Sr(uI,this,pI).call(this,e,t,n),Sr(uI,this,_I).call(this,t,n)}function pI(e,t,n){for(const e of Sr(uI,this,EI).call(this,n))Pr(lI,this).delete(e);for(const t of Sr(uI,this,EI).call(this,e))Pr(lI,this).add(t);for(const n of t)e.has(n)||(Sr(uI,this,II).call(this,n)?Pr(lI,this).add(n):Pr(lI,this).delete(n))}function _I(e,t){for(const e of t)Pr(cI,this).delete(e);for(const t of e)Sr(uI,this,vI).call(this,t)}function*EI(e){for(const t of e)Sr(uI,this,II).call(this,t)&&(yield t)}function vI(e){const t=Pr(cI,this).has(e);t&&this.getIncludedBy(e)!==e?Pr(cI,this).delete(e):t||this.getIncludedBy(e)!==e||Pr(cI,this).add(e)}function mI(e){const t=new Set([...e].flatMap(e=>[e,...F_(e)]));return[...t].flatMap(e=>[...e.childNodes||[]])}function gI(e){return Sr(uI,this,NI).call(this,e,Pr(sI,this))}function II(e){return Sr(uI,this,NI).call(this,e,Pr(aI,this))}function LI(e){const t=Sr(uI,this,wI).call(this,e);return t?F_(e,t).find(e=>Sr(uI,this,CI).call(this,e.parentNode))||t:null}function wI(e){if(!wg.isDOMNode(e))return null;const{get:t}=Object.getOwnPropertyDescriptor(Sg.prototype,"parentNode"),n=Sr(uI,this,SI).call(this,Pr(sI,this),Pr(aI,this)),r=e&&e.nodeType===Sg.ELEMENT_NODE&&t.call(e),i=r&&r.nodeType===Sg.ELEMENT_NODE&&n&&r.closest(n);return Sr(uI,this,NI).call(this,i,Pr(sI,this))?Sr(uI,this,II).call(this,i)?null:i:null}function CI(e){return Pr(aI,this)&&e&&"HTML"!==e.tagName&&e.querySelector&&e.querySelector(Pr(aI,this))}function yI(e){return Sr(uI,this,AI).call(this,e,Pr(aI,this))}function AI(e,t){return t&&e.querySelectorAll?e.querySelectorAll(t):[]}function NI(e,t){return e&&t&&e.matches&&e.matches(t)}function SI(...e){return e.filter(Boolean).join(",")}const TI=["id","redaction"];var bI=new WeakMap,OI=new WeakMap,RI=new WeakMap,kI=new WeakMap,PI=new WeakMap;class MI extends td.EventEmitter{constructor(...e){super(...e),Ur(this,"track",e=>{e.addEventListener("click",Pr(RI,this),{capture:!0,passive:!0}),e.addEventListener("change",Pr(kI,this),{capture:!0,passive:!0}),e.addEventListener("input",Pr(PI,this),{capture:!0,passive:!0})}),Ur(this,"untrack",e=>{e.removeEventListener("click",Pr(RI,this),{capture:!0,passive:!0}),e.removeEventListener("change",Pr(kI,this),{capture:!0,passive:!0}),e.removeEventListener("input",Pr(PI,this),{capture:!0,passive:!0})}),Mr(this,bI,e=>{const t=Cg.get(e);if(!t)return;return Zg.serialize(e,void 0,{skipChildren:!0})||{id:t,redaction:!0}}),Mr(this,OI,(e,t=!1)=>{const n=Pr(bI,this).call(this,e);if(!n)return n;const{id:r,redaction:i}=n,o=Vr(n,TI);return Fr({id:r,redacted:Boolean(i)},t&&mg(o,["value","checked"]))}),Mr(this,RI,e=>{if(!e.isTrusted)return;const t=Pr(OI,this).call(this,e.target);t&&this.emit("click",t)}),Mr(this,kI,e=>{const t=Pr(OI,this).call(this,e.target,!0);t&&this.emit("change",t)}),Mr(this,PI,rf(e=>{const t=Pr(OI,this).call(this,e.target,!0);t&&this.emit("input",t)},250))}}const DI=new MI,GI=["_blank","_self","_parent","_top","_unfencedTop"],xI=(e,t)=>e?GI.includes(e)?{name:"",target:e}:{name:e,target:t}:{name:"",target:t},UI=(e,t)=>Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,t).get.call(e),WI=(e,t,n)=>Object.getOwnPropertyDescriptor(HTMLFormElement.prototype,t).set.call(e,n);class FI extends Event{constructor(e,t){super(e,t),this._view=t.view}get view(){return this._view}}var VI=new WeakMap,jI=new WeakMap,zI=new WeakMap,BI=new WeakMap,HI=new WeakMap,QI=new WeakMap,YI=new WeakMap;const KI=new class{constructor(){Ur(this,"beforeNavigate",void 0),Mr(this,VI,!1),Mr(this,jI,new Set),Ur(this,"track",e=>{e.addEventListener("click",Pr(zI,this),{capture:!0}),e.addEventListener("click",Pr(zI,this)),e.addEventListener("submit",Pr(BI,this))}),Ur(this,"untrack",e=>{e.removeEventListener("click",Pr(zI,this),{capture:!0}),e.removeEventListener("click",Pr(zI,this)),e.removeEventListener("submit",Pr(BI,this))}),Ur(this,"tap",e=>{if(Pr(jI,this).has(e))return;const t=this,{open:n}=e;e.open=function(...e){return Pr(HI,t).call(t,this,n,...e)};const{submit:r}=e.HTMLFormElement.prototype;e.HTMLFormElement.prototype.submit=function(...e){return Pr(QI,t).call(t,this,r,...e)},Pr(jI,this).add(e)}),Ur(this,"untap",e=>{}),Mr(this,zI,e=>{var t;if(!this.beforeNavigate)return;const n=null==e||null===(t=e.target)||void 0===t?void 0:t.closest("a");if(!n)return;if(!n.href)return;if(n.__cbio_forceDefaultNavigation)return;const{target:r,name:i}=xI(n.target,"_self"),{rewrittenUrl:o,windowProxy:s}=this.beforeNavigate(n.href,r,"",{name:i,go:()=>{n.__cbio_forceDefaultNavigation=!0,n.click(),delete n.__cbio_forceDefaultNavigation},e:e});o&&o!==n.href&&(n.href=o),s&&e.preventDefault()}),Mr(this,BI,e=>{var t;if(!this.beforeNavigate)return;const n=null==e||null===(t=e.target)||void 0===t?void 0:t.closest("form");if(!n)return;if(!UI(n,"action"))return;if(n.__cbio_forceDefaultNavigation)return;const{target:r,name:i}=xI(UI(n,"target"),"_self"),{rewrittenUrl:o,windowProxy:s}=this.beforeNavigate(UI(n,"action"),r,"",{name:i,go:()=>{n.__cbio_forceDefaultNavigation=!0,n.submit(),delete n.__cbio_forceDefaultNavigation},e:e});o&&WI(n,"action",o),s&&e.preventDefault()}),Mr(this,HI,(e,t,n,r,i)=>{if(!this.beforeNavigate)return t.call(e,n,r,i);const o=new FI("WindowOpen",{view:e}),{target:s,name:a}=xI(r,"_blank"),{rewrittenUrl:c,windowProxy:l}=this.beforeNavigate(n,s,i,{name:a,go:()=>t.call(e,n,r,i),e:o});return c?t.call(e,c,r,i):l||void 0}),Mr(this,QI,(e,t,...n)=>{if(!this.beforeNavigate)return t.call(e,...n);const r=e.parentElement,i=new FI("FormSubmit",{view:e.ownerDocument.defaultView}),{target:o,name:s}=xI(UI(e,"target"),"_self"),{rewrittenUrl:a,windowProxy:c}=this.beforeNavigate(UI(e,"action"),o,"",{name:s,go:()=>{const i=document.contains(r)&&!document.contains(e);i&&r.appendChild(e);const o=t.call(e,...n);return i&&e.remove(),o},e:i});return a&&WI(e,"action",a),c?null:t.call(e,...n)}),Mr(this,YI,()=>{Dr(VI,this,!0)}),window.addEventListener("pagehide",Pr(YI,this),{capture:!0,once:!0,passive:!0})}ensureNoNavigation(e=200){return new Promise(t=>{setTimeout(()=>{Pr(VI,this)||t()},e)})}};var $I,JI,XI,qI,ZI={};function eL(){if(JI)return $I;JI=1;var e=o();return $I=e.Promise}function tL(){if(qI)return XI;qI=1;var e=Lt(),t=gu(),n=de(),r=st()("species");return XI=function(i,o){var s,a=e(i).constructor;return void 0===a||n(s=e(a)[r])?o:t(s)},XI}var nL,rL,iL,oL,sL={};function aL(){if(nL)return sL;nL=1;var e=Ae(),t=TypeError,n=function(n){var r,i;this.promise=new n(function(e,n){if(void 0!==r||void 0!==i)throw new t("Bad Promise constructor");r=e,i=n}),this.resolve=e(r),this.reject=e(i)};return sL.f=function(e){return new n(e)},sL}function cL(){if(iL)return rL;iL=1;var e=Lt(),t=Ee(),n=aL();return rL=function(r,i){if(e(r),t(i)&&i.constructor===r)return i;var o=n.f(r);return(0,o.resolve)(i),o.promise},rL}!function(){if(oL)return ZI;oL=1;var e=hr(),t=Ze(),n=eL(),r=_(),i=ve(),o=_e(),s=tL(),a=cL(),c=Qt(),l=n&&n.prototype;if(e({target:"Promise",proto:!0,real:!0,forced:!!n&&r(function(){l.finally.call({then:function(){}},function(){})})},{finally:function(e){var t=s(this,i("Promise")),n=o(e);return this.then(n?function(n){return a(t,e()).then(function(){return n})}:e,n?function(n){return a(t,e()).then(function(){throw n})}:e)}}),!t&&o(n)){var u=i("Promise").prototype.finally;l.finally!==u&&c(l,"finally",u,{unsafe:!0})}}();const lL=Af("cbio.RequestTracking");var uL=new WeakSet;class hL{constructor(){xr(this,uL),this.inFlightRequests=0,this.originalFetch=null,this.originalXHROpen=null,this.originalXHRSend=null}monitor(){this.originalFetch||(lL("monitoring network"),Sr(uL,this,dL).call(this),Sr(uL,this,fL).call(this))}destroy(){this.inFlightRequests=0}waitUntilStable(e={}){const{timeout:t=5e3,intervalMs:n=200}=e;lL("waitUntilStable");const r=Date.now();return new Promise(e=>{const i=setInterval(()=>Date.now()>r+t?(clearInterval(i),lL("network did not stabilise after %d millis",t),e(!1)):0===this.inFlightRequests?(clearInterval(i),lL("network stabilised"),e(!0)):void 0,n)})}}function dL(){if(this.originalFetch)return;this.originalFetch=window.fetch;const e=this;window.fetch=function(...t){return e.inFlightRequests++,e.originalFetch.apply(this,t).finally(()=>e.inFlightRequests--)}}function fL(){if(this.originalXHROpen)return;this.originalXHROpen=XMLHttpRequest.prototype.open,this.originalXHRSend=XMLHttpRequest.prototype.send;const e=this;XMLHttpRequest.prototype.open=function(...t){return this.__cbio_decrementCounter&&(this.removeEventListener("load",this.__cbio_decrementCounter),this.removeEventListener("error",this.__cbio_decrementCounter),this.removeEventListener("abort",this.__cbio_decrementCounter),this.removeEventListener("timeout",this.__cbio_decrementCounter)),this.__cbio_needsTracking=!0,e.originalXHROpen.apply(this,t)},XMLHttpRequest.prototype.send=function(...t){if(this.__cbio_needsTracking){this.__cbio_needsTracking=!1,e.inFlightRequests++;const t=()=>e.inFlightRequests--;this.__cbio_decrementCounter=t,this.addEventListener("load",t,{once:!0}),this.addEventListener("error",t,{once:!0}),this.addEventListener("abort",t,{once:!0}),this.addEventListener("timeout",t,{once:!0})}return e.originalXHRSend.apply(this,t)}}var pL,_L={};!function(){if(pL)return _L;pL=1;var e=hr(),t=m(),n=ha(),r=Ae(),i=Lt(),o=da(),s=ua(),a=fa()("every",TypeError);e({target:"Iterator",proto:!0,real:!0,forced:a},{every:function(e){i(this);try{r(e)}catch(e){s(this,"throw",e)}if(a)return t(a,this,e);var c=o(this),l=0;return!n(c,function(t,n){if(!e(t,l++))return n()},{IS_RECORD:!0,INTERRUPTED:!0}).stopped}})}();var EL,vL,mL,gL,IL,LL,wL,CL,yL,AL,NL,SL,TL,bL,OL={},RL=[],kL=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,PL=Array.isArray;function ML(e,t){for(var n in t)e[n]=t[n];return e}function DL(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function GL(e,t,n){var r,i,o,s={};for(o in t)"key"==o?r=t[o]:"ref"==o?i=t[o]:s[o]=t[o];if(arguments.length>2&&(s.children=arguments.length>3?EL.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(o in e.defaultProps)void 0===s[o]&&(s[o]=e.defaultProps[o]);return xL(e,s,r,i,null)}function xL(e,t,n,r,i){var o={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:null==i?++mL:i,__i:-1,__u:0};return null==i&&null!=vL.vnode&&vL.vnode(o),o}function UL(e){return e.children}function WL(e,t){this.props=e,this.context=t}function FL(e,t){if(null==t)return e.__?FL(e.__,e.__i+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?FL(e):null}function VL(e){if(e.__P&&e.__d){var t=e.__v,n=t.__e,r=[],i=[],o=ML({},t);o.__v=t.__v+1,vL.vnode&&vL.vnode(o),qL(e.__P,o,t,e.__n,e.__P.namespaceURI,32&t.__u?[n]:null,r,null==n?FL(t):n,!!(32&t.__u),i),o.__v=t.__v,o.__.__k[o.__i]=o,ew(r,o,i),t.__e=t.__=null,o.__e!=n&&jL(o)}}function jL(e){if(null!=(e=e.__)&&null!=e.__c)return e.__e=e.__c.base=null,e.__k.some(function(t){if(null!=t&&null!=t.__e)return e.__e=e.__c.base=t.__e}),jL(e)}function zL(e){(!e.__d&&(e.__d=!0)&&gL.push(e)&&!BL.__r++||IL!=vL.debounceRendering)&&((IL=vL.debounceRendering)||LL)(BL)}function BL(){try{for(var e,t=1;gL.length;)gL.length>t&&gL.sort(wL),e=gL.shift(),t=gL.length,VL(e)}finally{gL.length=BL.__r=0}}function HL(e,t,n,r,i,o,s,a,c,l,u){var h,d,f,p,_,E,v,m=r&&r.__k||RL,g=t.length;for(c=QL(n,t,m,c,g),h=0;h<g;h++)null!=(f=n.__k[h])&&(d=-1!=f.__i&&m[f.__i]||OL,f.__i=h,E=qL(e,f,d,i,o,s,a,c,l,u),p=f.__e,f.ref&&d.ref!=f.ref&&(d.ref&&rw(d.ref,null,f),u.push(f.ref,f.__c||p,f)),null==_&&null!=p&&(_=p),(v=!!(4&f.__u))||d.__k===f.__k?(c=YL(f,c,e,v),v&&d.__e&&(d.__e=null)):"function"==typeof f.type&&void 0!==E?c=E:p&&(c=p.nextSibling),f.__u&=-7);return n.__e=_,c}function QL(e,t,n,r,i){var o,s,a,c,l,u=n.length,h=u,d=0;for(e.__k=new Array(i),o=0;o<i;o++)null!=(s=t[o])&&"boolean"!=typeof s&&"function"!=typeof s?("string"==typeof s||"number"==typeof s||"bigint"==typeof s||s.constructor==String?s=e.__k[o]=xL(null,s,null,null,null):PL(s)?s=e.__k[o]=xL(UL,{children:s},null,null,null):void 0===s.constructor&&s.__b>0?s=e.__k[o]=xL(s.type,s.props,s.key,s.ref?s.ref:null,s.__v):e.__k[o]=s,c=o+d,s.__=e,s.__b=e.__b+1,a=null,-1!=(l=s.__i=KL(s,n,c,h))&&(h--,(a=n[l])&&(a.__u|=2)),null==a||null==a.__v?(-1==l&&(i>u?d--:i<u&&d++),"function"!=typeof s.type&&(s.__u|=4)):l!=c&&(l==c-1?d--:l==c+1?d++:(l>c?d--:d++,s.__u|=4))):e.__k[o]=null;if(h)for(o=0;o<u;o++)null!=(a=n[o])&&!(2&a.__u)&&(a.__e==r&&(r=FL(a)),iw(a,a));return r}function YL(e,t,n,r){var i,o;if("function"==typeof e.type){for(i=e.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=e,t=YL(i[o],t,n,r));return t}e.__e!=t&&(r&&(t&&e.type&&!t.parentNode&&(t=FL(e)),n.insertBefore(e.__e,t||null)),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function KL(e,t,n,r){var i,o,s,a=e.key,c=e.type,l=t[n],u=null!=l&&!(2&l.__u);if(null===l&&null==a||u&&a==l.key&&c==l.type)return n;if(r>(u?1:0))for(i=n-1,o=n+1;i>=0||o<t.length;)if(null!=(l=t[s=i>=0?i--:o++])&&!(2&l.__u)&&a==l.key&&c==l.type)return s;return-1}function $L(e,t,n){"-"==t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||kL.test(t)?n:n+"px"}function JL(e,t,n,r,i){var o,s;e:if("style"==t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||$L(e.style,t,"");if(n)for(t in n)r&&n[t]==r[t]||$L(e.style,t,n[t])}else if("o"==t[0]&&"n"==t[1])o=t!=(t=t.replace(NL,"$1")),s=t.toLowerCase(),t=s in e||"onFocusOut"==t||"onFocusIn"==t?s.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+o]=n,n?r?n[AL]=r[AL]:(n[AL]=SL,e.addEventListener(t,o?bL:TL,o)):e.removeEventListener(t,o?bL:TL,o);else{if("http://www.w3.org/2000/svg"==i)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!=t&&"height"!=t&&"href"!=t&&"list"!=t&&"form"!=t&&"tabIndex"!=t&&"download"!=t&&"rowSpan"!=t&&"colSpan"!=t&&"role"!=t&&"popover"!=t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!=t[4]?e.removeAttribute(t):e.setAttribute(t,"popover"==t&&1==n?"":n))}}function XL(e){return function(t){if(this.l){var n=this.l[t.type+e];if(null==t[yL])t[yL]=SL++;else if(t[yL]<n[AL])return;return n(vL.event?vL.event(t):t)}}}function qL(e,t,n,r,i,o,s,a,c,l){var u,h,d,f,p,_,E,v,m,g,I,L,w,C,y,A=t.type;if(void 0!==t.constructor)return null;128&n.__u&&(c=!!(32&n.__u),o=[a=t.__e=n.__e]),(u=vL.__b)&&u(t);e:if("function"==typeof A)try{if(v=t.props,m=A.prototype&&A.prototype.render,g=(u=A.contextType)&&r[u.__c],I=u?g?g.props.value:u.__:r,n.__c?E=(h=t.__c=n.__c).__=h.__E:(m?t.__c=h=new A(v,I):(t.__c=h=new WL(v,I),h.constructor=A,h.render=ow),g&&g.sub(h),h.state||(h.state={}),h.__n=r,d=h.__d=!0,h.__h=[],h._sb=[]),m&&null==h.__s&&(h.__s=h.state),m&&null!=A.getDerivedStateFromProps&&(h.__s==h.state&&(h.__s=ML({},h.__s)),ML(h.__s,A.getDerivedStateFromProps(v,h.__s))),f=h.props,p=h.state,h.__v=t,d)m&&null==A.getDerivedStateFromProps&&null!=h.componentWillMount&&h.componentWillMount(),m&&null!=h.componentDidMount&&h.__h.push(h.componentDidMount);else{if(m&&null==A.getDerivedStateFromProps&&v!==f&&null!=h.componentWillReceiveProps&&h.componentWillReceiveProps(v,I),t.__v==n.__v||!h.__e&&null!=h.shouldComponentUpdate&&!1===h.shouldComponentUpdate(v,h.__s,I)){t.__v!=n.__v&&(h.props=v,h.state=h.__s,h.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.some(function(e){e&&(e.__=t)}),RL.push.apply(h.__h,h._sb),h._sb=[],h.__h.length&&s.push(h);break e}null!=h.componentWillUpdate&&h.componentWillUpdate(v,h.__s,I),m&&null!=h.componentDidUpdate&&h.__h.push(function(){h.componentDidUpdate(f,p,_)})}if(h.context=I,h.props=v,h.__P=e,h.__e=!1,L=vL.__r,w=0,m)h.state=h.__s,h.__d=!1,L&&L(t),u=h.render(h.props,h.state,h.context),RL.push.apply(h.__h,h._sb),h._sb=[];else do{h.__d=!1,L&&L(t),u=h.render(h.props,h.state,h.context),h.state=h.__s}while(h.__d&&++w<25);h.state=h.__s,null!=h.getChildContext&&(r=ML(ML({},r),h.getChildContext())),m&&!d&&null!=h.getSnapshotBeforeUpdate&&(_=h.getSnapshotBeforeUpdate(f,p)),C=null!=u&&u.type===UL&&null==u.key?tw(u.props.children):u,a=HL(e,PL(C)?C:[C],t,n,r,i,o,s,a,c,l),h.base=t.__e,t.__u&=-161,h.__h.length&&s.push(h),E&&(h.__E=h.__=null)}catch(e){if(t.__v=null,c||null!=o)if(e.then){for(t.__u|=c?160:128;a&&8==a.nodeType&&a.nextSibling;)a=a.nextSibling;o[o.indexOf(a)]=null,t.__e=a}else{for(y=o.length;y--;)DL(o[y]);ZL(t)}else t.__e=n.__e,t.__k=n.__k,e.then||ZL(t);vL.__e(e,t,n)}else null==o&&t.__v==n.__v?(t.__k=n.__k,t.__e=n.__e):a=t.__e=nw(n.__e,t,n,r,i,o,s,c,l);return(u=vL.diffed)&&u(t),128&t.__u?void 0:a}function ZL(e){e&&(e.__c&&(e.__c.__e=!0),e.__k&&e.__k.some(ZL))}function ew(e,t,n){for(var r=0;r<n.length;r++)rw(n[r],n[++r],n[++r]);vL.__c&&vL.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){vL.__e(e,t.__v)}})}function tw(e){return"object"!=typeof e||null==e||e.__b>0?e:PL(e)?e.map(tw):ML({},e)}function nw(e,t,n,r,i,o,s,a,c){var l,u,h,d,f,p,_,E=n.props||OL,v=t.props,m=t.type;if("svg"==m?i="http://www.w3.org/2000/svg":"math"==m?i="http://www.w3.org/1998/Math/MathML":i||(i="http://www.w3.org/1999/xhtml"),null!=o)for(l=0;l<o.length;l++)if((f=o[l])&&"setAttribute"in f==!!m&&(m?f.localName==m:3==f.nodeType)){e=f,o[l]=null;break}if(null==e){if(null==m)return document.createTextNode(v);e=document.createElementNS(i,m,v.is&&v),a&&(vL.__m&&vL.__m(t,o),a=!1),o=null}if(null==m)E===v||a&&e.data==v||(e.data=v);else{if(o=o&&EL.call(e.childNodes),!a&&null!=o)for(E={},l=0;l<e.attributes.length;l++)E[(f=e.attributes[l]).name]=f.value;for(l in E)f=E[l],"dangerouslySetInnerHTML"==l?h=f:"children"==l||l in v||"value"==l&&"defaultValue"in v||"checked"==l&&"defaultChecked"in v||JL(e,l,null,f,i);for(l in v)f=v[l],"children"==l?d=f:"dangerouslySetInnerHTML"==l?u=f:"value"==l?p=f:"checked"==l?_=f:a&&"function"!=typeof f||E[l]===f||JL(e,l,f,E[l],i);if(u)a||h&&(u.__html==h.__html||u.__html==e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(h&&(e.innerHTML=""),HL("template"==t.type?e.content:e,PL(d)?d:[d],t,n,r,"foreignObject"==m?"http://www.w3.org/1999/xhtml":i,o,s,o?o[0]:n.__k&&FL(n,0),a,c),null!=o)for(l=o.length;l--;)DL(o[l]);a||(l="value","progress"==m&&null==p?e.removeAttribute("value"):null!=p&&(p!==e[l]||"progress"==m&&!p||"option"==m&&p!=E[l])&&JL(e,l,p,E[l],i),l="checked",null!=_&&_!=e[l]&&JL(e,l,_,E[l],i))}return e}function rw(e,t,n){try{if("function"==typeof e){var r="function"==typeof e.__u;r&&e.__u(),r&&null==t||(e.__u=e(t))}else e.current=t}catch(e){vL.__e(e,n)}}function iw(e,t,n){var r,i;if(vL.unmount&&vL.unmount(e),(r=e.ref)&&(r.current&&r.current!=e.__e||rw(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){vL.__e(e,t)}r.base=r.__P=null}if(r=e.__k)for(i=0;i<r.length;i++)r[i]&&iw(r[i],t,n||"function"!=typeof e.type);n||DL(e.__e),e.__c=e.__=e.__e=void 0}function ow(e,t,n){return this.constructor(e,n)}function sw(e,t,n){var r,i,o;t==document&&(t=document.documentElement),vL.__&&vL.__(e,t),r=t.__k,i=[],o=[],qL(t,e=t.__k=GL(UL,null,[e]),r||OL,OL,t.namespaceURI,r?null:t.firstChild?EL.call(t.childNodes):null,i,r?r.__e:t.firstChild,!1,o),ew(i,e,o)}EL=RL.slice,vL={__e:function(e,t,n,r){for(var i,o,s;t=t.__;)if((i=t.__c)&&!i.__)try{if((o=i.constructor)&&null!=o.getDerivedStateFromError&&(i.setState(o.getDerivedStateFromError(e)),s=i.__d),null!=i.componentDidCatch&&(i.componentDidCatch(e,r||{}),s=i.__d),s)return i.__E=i}catch(t){e=t}throw e}},mL=0,WL.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=ML({},this.state),"function"==typeof e&&(e=e(ML({},n),this.props)),e&&ML(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),zL(this))},WL.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),zL(this))},WL.prototype.render=UL,gL=[],LL="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,wL=function(e,t){return e.__v.__b-t.__v.__b},BL.__r=0,CL=Math.random().toString(8),yL="__d"+CL,AL="__a"+CL,NL=/(PointerCapture)$|Capture$/i,SL=0,TL=XL(!1),bL=XL(!0);var aw,cw,lw,uw,hw=0,dw=[],fw=vL,pw=fw.__b,_w=fw.__r,Ew=fw.diffed,vw=fw.__c,mw=fw.unmount,gw=fw.__;function Iw(e,t){fw.__h&&fw.__h(cw,e,hw||t),hw=0;var n=cw.__H||(cw.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({}),n.__[e]}function Lw(e){return hw=1,function(e,t){var n=Iw(aw++,2);if(n.t=e,!n.__c&&(n.__=[kw(void 0,t),function(e){var t=n.__N?n.__N[0]:n.__[0],r=n.t(t,e);t!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=cw,!cw.__f)){var r=function(e,t,r){if(!n.__c.__H)return!0;var o=n.__c.__H.__.filter(function(e){return e.__c});if(o.every(function(e){return!e.__N}))return!i||i.call(this,e,t,r);var s=n.__c.props!==e;return o.some(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(s=!0)}}),i&&i.call(this,e,t,r)||s};cw.__f=!0;var i=cw.shouldComponentUpdate,o=cw.componentWillUpdate;cw.componentWillUpdate=function(e,t,n){if(this.__e){var s=i;i=void 0,r(e,t,n),i=s}o&&o.call(this,e,t,n)},cw.shouldComponentUpdate=r}return n.__N||n.__}(kw,e)}function ww(e,t){var n=Iw(aw++,3);!fw.__s&&Rw(n.__H,t)&&(n.__=e,n.u=t,cw.__H.__h.push(n))}function Cw(e){return hw=5,yw(function(){return{current:e}},[])}function yw(e,t){var n=Iw(aw++,7);return Rw(n.__H,t)&&(n.__=e(),n.__H=t,n.__h=e),n.__}function Aw(e,t){return hw=8,yw(function(){return e},t)}function Nw(){for(var e;e=dw.shift();){var t=e.__H;if(e.__P&&t)try{t.__h.some(bw),t.__h.some(Ow),t.__h=[]}catch(n){t.__h=[],fw.__e(n,e.__v)}}}fw.__b=function(e){cw=null,pw&&pw(e)},fw.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),gw&&gw(e,t)},fw.__r=function(e){_w&&_w(e),aw=0;var t=(cw=e.__c).__H;t&&(lw===cw?(t.__h=[],cw.__h=[],t.__.some(function(e){e.__N&&(e.__=e.__N),e.u=e.__N=void 0})):(t.__h.some(bw),t.__h.some(Ow),t.__h=[],aw=0)),lw=cw},fw.diffed=function(e){Ew&&Ew(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==dw.push(t)&&uw===fw.requestAnimationFrame||((uw=fw.requestAnimationFrame)||Tw)(Nw)),t.__H.__.some(function(e){e.u&&(e.__H=e.u),e.u=void 0})),lw=cw=null},fw.__c=function(e,t){t.some(function(e){try{e.__h.some(bw),e.__h=e.__h.filter(function(e){return!e.__||Ow(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],fw.__e(n,e.__v)}}),vw&&vw(e,t)},fw.unmount=function(e){mw&&mw(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.some(function(e){try{bw(e)}catch(e){t=e}}),n.__H=void 0,t&&fw.__e(t,n.__v))};var Sw="function"==typeof requestAnimationFrame;function Tw(e){var t,n=function(){clearTimeout(r),Sw&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,35);Sw&&(t=requestAnimationFrame(n))}function bw(e){var t=cw,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),cw=t}function Ow(e){var t=cw;e.__c=e.__(),cw=t}function Rw(e,t){return!e||e.length!==t.length||t.some(function(t,n){return t!==e[n]})}function kw(e,t){return"function"==typeof t?t(e):t}const Pw=(e,t,{hideFromAgent:n=!1,hideFromVirtualAgent:r=!1,document:i=window.document}={})=>{const o=i.createElement("div");n&&o.classList.add("__cbio_ignored"),r&&o.classList.add("__cbio_virtual_agent_ignored");const s=o.attachShadow({mode:"open"}),a=()=>{sw(null,s),i.body.contains(o)&&i.body.removeChild(o)},c=t=>{sw(GL(e,Fr(Fr({},t),{},{unmount:a})),s)};c(t),i.body.appendChild(o);const l=i.createElement("style");return l.textContent=window.__cbio_sdk_styles,s.prepend(l),{container:o,unmount:a,rerender:c}},Mw="HighlightOverlay-module__disableAnimations___EEhxH";var Dw=0;function Gw(e,t,n,r,i,o){t||(t={});var s,a,c=t;if("ref"in c)for(a in c={},t)"ref"==a?s=t[a]:c[a]=t[a];var l={type:e,props:c,key:n,ref:s,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Dw,__i:-1,__u:0,__source:i,__self:o};if("function"==typeof e&&(s=e.defaultProps))for(a in s)void 0===c[a]&&(c[a]=s[a]);return vL.vnode&&vL.vnode(l),l}const xw=({targetElement:e})=>{const t=Cw(),n=Cw(!1),r=Aw(()=>{if(!e)return;const n=(e=>{const t=e.getBoundingClientRect(),n=document.documentElement.scrollTop,r=document.documentElement.scrollLeft,i=t.top+n,o=t.left+r,s=t.width,a=t.height;if(!s||!a)return null;const c=window.getComputedStyle(e);let l=c.borderRadius||c.borderTopLeftRadius;return"0px"===l&&(l="4px"),{top:i,left:o,width:s,height:a,borderRadius:l,paddedX:(s+6)/s,paddedY:(a+6)/a}})(e);if(!n||!t.current)return;const{top:r,left:i,width:o,height:s,borderRadius:a,paddedX:c,paddedY:l}=n;requestAnimationFrame(()=>{t.current.style.width=`${o}px`,t.current.style.height=`${s}px`,t.current.style.top=`${r}px`,t.current.style.left=`${i}px`,t.current.style.borderRadius=a,t.current.style.setProperty("--cbio-padded-x",c),t.current.style.setProperty("--cbio-padded-y",l)})},[e]),i=Aw(()=>{e&&(n.current=!0,e.scrollIntoView({behavior:"smooth",block:"center",inline:"center"}),setTimeout(()=>{n.current=!1,r()},100))},[e,r]);return ww(()=>{i()},[i]),ww(()=>{r()},[r]),ww(()=>{const e=()=>{n.current||t.current&&(requestAnimationFrame(()=>{t.current.classList.add(Mw)}),r(),requestAnimationFrame(()=>{t.current.classList.remove(Mw)}))};return window.addEventListener("resize",e),window.addEventListener("scroll",e,{passive:!0,capture:!0}),()=>{window.removeEventListener("resize",e),window.removeEventListener("scroll",e,{passive:!0,capture:!0}),clearTimeout(void 0)}},[r,e]),ww(()=>{let n;return e&&(n=new MutationObserver(()=>{const n=e.isConnected,r=!e.checkVisibility||e.checkVisibility();t.current.style.display=n&&r?"block":"none"}),n.observe(e,{attributes:!0,attributeFilter:["style","class"]}),n.observe(document.body,{childList:!0,subtree:!0})),()=>{var e;null===(e=n)||void 0===e||e.disconnect()}},[e]),Gw("div",{className:"HighlightOverlay-module__overlay___CGVxb","data-test-id":"highlight-overlay",ref:t})};var Uw=new WeakMap;const Ww=new class{constructor(){Mr(this,Uw,null),Ur(this,"update",e=>{Pr(Uw,this)?Pr(Uw,this).rerender({targetElement:e}):Dr(Uw,this,Pw(xw,{targetElement:e},{hideFromVirtualAgent:!0}))}),Ur(this,"hide",()=>{var e;null===(e=Pr(Uw,this))||void 0===e||e.unmount(),Dr(Uw,this,null)})}},Fw=["top","right","bottom","left"],Vw=Math.min,jw=Math.max,zw=Math.round,Bw=Math.floor,Hw=e=>({x:e,y:e}),Qw={left:"right",right:"left",bottom:"top",top:"bottom"},Yw={start:"end",end:"start"};function Kw(e,t,n){return jw(e,Vw(t,n))}function $w(e,t){return"function"==typeof e?e(t):e}function Jw(e){return e.split("-")[0]}function Xw(e){return e.split("-")[1]}function qw(e){return"x"===e?"y":"x"}function Zw(e){return"y"===e?"height":"width"}const eC=new Set(["top","bottom"]);function tC(e){return eC.has(Jw(e))?"y":"x"}function nC(e){return qw(tC(e))}function rC(e){return e.replace(/start|end/g,e=>Yw[e])}const iC=["left","right"],oC=["right","left"],sC=["top","bottom"],aC=["bottom","top"];function cC(e){return e.replace(/left|right|bottom|top/g,e=>Qw[e])}function lC(e){return"number"!=typeof e?function(e){return Fr({top:0,right:0,bottom:0,left:0},e)}(e):{top:e,right:e,bottom:e,left:e}}function uC(e){const{x:t,y:n,width:r,height:i}=e;return{width:r,height:i,top:n,left:t,right:t+r,bottom:n+i,x:t,y:n}}const hC=["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"],dC=["strategy"],fC=["mainAxis","crossAxis","limiter"],pC=["apply"];function _C(e,t,n){let{reference:r,floating:i}=e;const o=tC(t),s=nC(t),a=Zw(s),c=Jw(t),l="y"===o,u=r.x+r.width/2-i.width/2,h=r.y+r.height/2-i.height/2,d=r[a]/2-i[a]/2;let f;switch(c){case"top":f={x:u,y:r.y-i.height};break;case"bottom":f={x:u,y:r.y+r.height};break;case"right":f={x:r.x+r.width,y:h};break;case"left":f={x:r.x-i.width,y:h};break;default:f={x:r.x,y:r.y}}switch(Xw(t)){case"start":f[s]-=d*(n&&l?-1:1);break;case"end":f[s]+=d*(n&&l?-1:1)}return f}async function EC(e,t){var n;void 0===t&&(t={});const{x:r,y:i,platform:o,rects:s,elements:a,strategy:c}=e,{boundary:l="clippingAncestors",rootBoundary:u="viewport",elementContext:h="floating",altBoundary:d=!1,padding:f=0}=$w(t,e),p=lC(f),_=a[d?"floating"===h?"reference":"floating":h],E=uC(await o.getClippingRect({element:null==(n=await(null==o.isElement?void 0:o.isElement(_)))||n?_:_.contextElement||await(null==o.getDocumentElement?void 0:o.getDocumentElement(a.floating)),boundary:l,rootBoundary:u,strategy:c})),v="floating"===h?{x:r,y:i,width:s.floating.width,height:s.floating.height}:s.reference,m=await(null==o.getOffsetParent?void 0:o.getOffsetParent(a.floating)),g=await(null==o.isElement?void 0:o.isElement(m))&&await(null==o.getScale?void 0:o.getScale(m))||{x:1,y:1},I=uC(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:v,offsetParent:m,strategy:c}):v);return{top:(E.top-I.top+p.top)/g.y,bottom:(I.bottom-E.bottom+p.bottom)/g.y,left:(E.left-I.left+p.left)/g.x,right:(I.right-E.right+p.right)/g.x}}function vC(e,t){return{top:e.top-t.height,right:e.right-t.width,bottom:e.bottom-t.height,left:e.left-t.width}}function mC(e){return Fw.some(t=>e[t]>=0)}const gC=new Set(["left","top"]);function IC(){return"undefined"!=typeof window}function LC(e){return yC(e)?(e.nodeName||"").toLowerCase():"#document"}function wC(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function CC(e){var t;return null==(t=(yC(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function yC(e){return!!IC()&&(e instanceof Node||e instanceof wC(e).Node)}function AC(e){return!!IC()&&(e instanceof Element||e instanceof wC(e).Element)}function NC(e){return!!IC()&&(e instanceof HTMLElement||e instanceof wC(e).HTMLElement)}function SC(e){return!(!IC()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof wC(e).ShadowRoot)}const TC=new Set(["inline","contents"]);function bC(e){const{overflow:t,overflowX:n,overflowY:r,display:i}=VC(e);return/auto|scroll|overlay|hidden|clip/.test(t+r+n)&&!TC.has(i)}const OC=new Set(["table","td","th"]);function RC(e){return OC.has(LC(e))}const kC=[":popover-open",":modal"];function PC(e){return kC.some(t=>{try{return e.matches(t)}catch(e){return!1}})}const MC=["transform","translate","scale","rotate","perspective"],DC=["transform","translate","scale","rotate","perspective","filter"],GC=["paint","layout","strict","content"];function xC(e){const t=UC(),n=AC(e)?VC(e):e;return MC.some(e=>!!n[e]&&"none"!==n[e])||!!n.containerType&&"normal"!==n.containerType||!t&&!!n.backdropFilter&&"none"!==n.backdropFilter||!t&&!!n.filter&&"none"!==n.filter||DC.some(e=>(n.willChange||"").includes(e))||GC.some(e=>(n.contain||"").includes(e))}function UC(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}const WC=new Set(["html","body","#document"]);function FC(e){return WC.has(LC(e))}function VC(e){return wC(e).getComputedStyle(e)}function jC(e){return AC(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function zC(e){if("html"===LC(e))return e;const t=e.assignedSlot||e.parentNode||SC(e)&&e.host||CC(e);return SC(t)?t.host:t}function BC(e){const t=zC(e);return FC(t)?e.ownerDocument?e.ownerDocument.body:e.body:NC(t)&&bC(t)?t:BC(t)}function HC(e,t,n){var r;void 0===t&&(t=[]),void 0===n&&(n=!0);const i=BC(e),o=i===(null==(r=e.ownerDocument)?void 0:r.body),s=wC(i);if(o){const e=QC(s);return t.concat(s,s.visualViewport||[],bC(i)?i:[],e&&n?HC(e):[])}return t.concat(i,HC(i,[],n))}function QC(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function YC(e){const t=VC(e);let n=parseFloat(t.width)||0,r=parseFloat(t.height)||0;const i=NC(e),o=i?e.offsetWidth:n,s=i?e.offsetHeight:r,a=zw(n)!==o||zw(r)!==s;return a&&(n=o,r=s),{width:n,height:r,$:a}}function KC(e){return AC(e)?e:e.contextElement}function $C(e){const t=KC(e);if(!NC(t))return Hw(1);const n=t.getBoundingClientRect(),{width:r,height:i,$:o}=YC(t);let s=(o?zw(n.width):n.width)/r,a=(o?zw(n.height):n.height)/i;return s&&Number.isFinite(s)||(s=1),a&&Number.isFinite(a)||(a=1),{x:s,y:a}}const JC=Hw(0);function XC(e){const t=wC(e);return UC()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:JC}function qC(e,t,n,r){void 0===t&&(t=!1),void 0===n&&(n=!1);const i=e.getBoundingClientRect(),o=KC(e);let s=Hw(1);t&&(r?AC(r)&&(s=$C(r)):s=$C(e));const a=function(e,t,n){return void 0===t&&(t=!1),!(!n||t&&n!==wC(e))&&t}(o,n,r)?XC(o):Hw(0);let c=(i.left+a.x)/s.x,l=(i.top+a.y)/s.y,u=i.width/s.x,h=i.height/s.y;if(o){const e=wC(o),t=r&&AC(r)?wC(r):r;let n=e,i=QC(n);for(;i&&r&&t!==n;){const e=$C(i),t=i.getBoundingClientRect(),r=VC(i),o=t.left+(i.clientLeft+parseFloat(r.paddingLeft))*e.x,s=t.top+(i.clientTop+parseFloat(r.paddingTop))*e.y;c*=e.x,l*=e.y,u*=e.x,h*=e.y,c+=o,l+=s,n=wC(i),i=QC(n)}}return uC({width:u,height:h,x:c,y:l})}function ZC(e,t){const n=jC(e).scrollLeft;return t?t.left+n:qC(CC(e)).left+n}function ey(e,t){const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-ZC(e,n),y:n.top+t.scrollTop}}const ty=new Set(["absolute","fixed"]);function ny(e,t,n){let r;if("viewport"===t)r=function(e,t){const n=wC(e),r=CC(e),i=n.visualViewport;let o=r.clientWidth,s=r.clientHeight,a=0,c=0;if(i){o=i.width,s=i.height;const e=UC();(!e||e&&"fixed"===t)&&(a=i.offsetLeft,c=i.offsetTop)}const l=ZC(r);if(l<=0){const e=r.ownerDocument,t=e.body,n=getComputedStyle(t),i="CSS1Compat"===e.compatMode&&parseFloat(n.marginLeft)+parseFloat(n.marginRight)||0,s=Math.abs(r.clientWidth-t.clientWidth-i);s<=25&&(o-=s)}else l<=25&&(o+=l);return{width:o,height:s,x:a,y:c}}(e,n);else if("document"===t)r=function(e){const t=CC(e),n=jC(e),r=e.ownerDocument.body,i=jw(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=jw(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight);let s=-n.scrollLeft+ZC(e);const a=-n.scrollTop;return"rtl"===VC(r).direction&&(s+=jw(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:s,y:a}}(CC(e));else if(AC(t))r=function(e,t){const n=qC(e,!0,"fixed"===t),r=n.top+e.clientTop,i=n.left+e.clientLeft,o=NC(e)?$C(e):Hw(1);return{width:e.clientWidth*o.x,height:e.clientHeight*o.y,x:i*o.x,y:r*o.y}}(t,n);else{const n=XC(e);r={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return uC(r)}function ry(e,t){const n=zC(e);return!(n===t||!AC(n)||FC(n))&&("fixed"===VC(n).position||ry(n,t))}function iy(e,t,n){const r=NC(t),i=CC(t),o="fixed"===n,s=qC(e,!0,o,t);let a={scrollLeft:0,scrollTop:0};const c=Hw(0);function l(){c.x=ZC(i)}if(r||!r&&!o)if(("body"!==LC(t)||bC(i))&&(a=jC(t)),r){const e=qC(t,!0,o,t);c.x=e.x+t.clientLeft,c.y=e.y+t.clientTop}else i&&l();o&&!r&&i&&l();const u=!i||r||o?Hw(0):ey(i,a);return{x:s.left+a.scrollLeft-c.x-u.x,y:s.top+a.scrollTop-c.y-u.y,width:s.width,height:s.height}}function oy(e){return"static"===VC(e).position}function sy(e,t){if(!NC(e)||"fixed"===VC(e).position)return null;if(t)return t(e);let n=e.offsetParent;return CC(e)===n&&(n=n.ownerDocument.body),n}function ay(e,t){const n=wC(e);if(PC(e))return n;if(!NC(e)){let t=zC(e);for(;t&&!FC(t);){if(AC(t)&&!oy(t))return t;t=zC(t)}return n}let r=sy(e,t);for(;r&&RC(r)&&oy(r);)r=sy(r,t);return r&&FC(r)&&oy(r)&&!xC(r)?n:r||function(e){let t=zC(e);for(;NC(t)&&!FC(t);){if(xC(t))return t;if(PC(t))return null;t=zC(t)}return null}(e)||n}const cy={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:n,offsetParent:r,strategy:i}=e;const o="fixed"===i,s=CC(r),a=!!t&&PC(t.floating);if(r===s||a&&o)return n;let c={scrollLeft:0,scrollTop:0},l=Hw(1);const u=Hw(0),h=NC(r);if((h||!h&&!o)&&(("body"!==LC(r)||bC(s))&&(c=jC(r)),NC(r))){const e=qC(r);l=$C(r),u.x=e.x+r.clientLeft,u.y=e.y+r.clientTop}const d=!s||h||o?Hw(0):ey(s,c);return{width:n.width*l.x,height:n.height*l.y,x:n.x*l.x-c.scrollLeft*l.x+u.x+d.x,y:n.y*l.y-c.scrollTop*l.y+u.y+d.y}},getDocumentElement:CC,getClippingRect:function(e){let{element:t,boundary:n,rootBoundary:r,strategy:i}=e;const o=[..."clippingAncestors"===n?PC(t)?[]:function(e,t){const n=t.get(e);if(n)return n;let r=HC(e,[],!1).filter(e=>AC(e)&&"body"!==LC(e)),i=null;const o="fixed"===VC(e).position;let s=o?zC(e):e;for(;AC(s)&&!FC(s);){const t=VC(s),n=xC(s);n||"fixed"!==t.position||(i=null),(o?!n&&!i:!n&&"static"===t.position&&i&&ty.has(i.position)||bC(s)&&!n&&ry(e,s))?r=r.filter(e=>e!==s):i=t,s=zC(s)}return t.set(e,r),r}(t,this._c):[].concat(n),r],s=o[0],a=o.reduce((e,n)=>{const r=ny(t,n,i);return e.top=jw(r.top,e.top),e.right=Vw(r.right,e.right),e.bottom=Vw(r.bottom,e.bottom),e.left=jw(r.left,e.left),e},ny(t,s,i));return{width:a.right-a.left,height:a.bottom-a.top,x:a.left,y:a.top}},getOffsetParent:ay,getElementRects:async function(e){const t=this.getOffsetParent||ay,n=this.getDimensions,r=await n(e.floating);return{reference:iy(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:n}=YC(e);return{width:t,height:n}},getScale:$C,isElement:AC,isRTL:function(e){return"rtl"===VC(e).direction}};function ly(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function uy(e,t,n,r){void 0===r&&(r={});const{ancestorScroll:i=!0,ancestorResize:o=!0,elementResize:s="function"==typeof ResizeObserver,layoutShift:a="function"==typeof IntersectionObserver,animationFrame:c=!1}=r,l=KC(e),u=i||o?[...l?HC(l):[],...HC(t)]:[];u.forEach(e=>{i&&e.addEventListener("scroll",n,{passive:!0}),o&&e.addEventListener("resize",n)});const h=l&&a?function(e,t){let n,r=null;const i=CC(e);function o(){var e;clearTimeout(n),null==(e=r)||e.disconnect(),r=null}return function s(a,c){void 0===a&&(a=!1),void 0===c&&(c=1),o();const l=e.getBoundingClientRect(),{left:u,top:h,width:d,height:f}=l;if(a||t(),!d||!f)return;const p={rootMargin:-Bw(h)+"px "+-Bw(i.clientWidth-(u+d))+"px "+-Bw(i.clientHeight-(h+f))+"px "+-Bw(u)+"px",threshold:jw(0,Vw(1,c))||1};let _=!0;function E(t){const r=t[0].intersectionRatio;if(r!==c){if(!_)return s();r?s(!1,r):n=setTimeout(()=>{s(!1,1e-7)},1e3)}1!==r||ly(l,e.getBoundingClientRect())||s(),_=!1}try{r=new IntersectionObserver(E,Fr(Fr({},p),{},{root:i.ownerDocument}))}catch(e){r=new IntersectionObserver(E,p)}r.observe(e)}(!0),o}(l,n):null;let d,f=-1,p=null;s&&(p=new ResizeObserver(e=>{let[r]=e;r&&r.target===l&&p&&(p.unobserve(t),cancelAnimationFrame(f),f=requestAnimationFrame(()=>{var e;null==(e=p)||e.observe(t)})),n()}),l&&!c&&p.observe(l),p.observe(t));let _=c?qC(e):null;return c&&function t(){const r=qC(e);_&&!ly(_,r)&&n(),_=r,d=requestAnimationFrame(t)}(),n(),()=>{var e;u.forEach(e=>{i&&e.removeEventListener("scroll",n),o&&e.removeEventListener("resize",n)}),null==h||h(),null==(e=p)||e.disconnect(),p=null,c&&cancelAnimationFrame(d)}}const hy=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:n,y:r,placement:i}=t,o=$w(e,t),{mainAxis:s=!0,crossAxis:a=!1,limiter:c={fn:e=>{let{x:t,y:n}=e;return{x:t,y:n}}}}=o,l=Vr(o,fC),u={x:n,y:r},h=await EC(t,l),d=tC(Jw(i)),f=qw(d);let p=u[f],_=u[d];if(s){const e="y"===f?"bottom":"right";p=Kw(p+h["y"===f?"top":"left"],p,p-h[e])}if(a){const e="y"===d?"bottom":"right";_=Kw(_+h["y"===d?"top":"left"],_,_-h[e])}const E=c.fn(Fr(Fr({},t),{},{[f]:p,[d]:_}));return Fr(Fr({},E),{},{data:{x:E.x-n,y:E.y-r,enabled:{[f]:s,[d]:a}}})}}},dy=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var n,r;const{placement:i,middlewareData:o,rects:s,initialPlacement:a,platform:c,elements:l}=t,u=$w(e,t),{mainAxis:h=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:p="bestFit",fallbackAxisSideDirection:_="none",flipAlignment:E=!0}=u,v=Vr(u,hC);if(null!=(n=o.arrow)&&n.alignmentOffset)return{};const m=Jw(i),g=tC(a),I=Jw(a)===a,L=await(null==c.isRTL?void 0:c.isRTL(l.floating)),w=f||(I||!E?[cC(a)]:function(e){const t=cC(e);return[rC(e),t,rC(t)]}(a)),C="none"!==_;!f&&C&&w.push(...function(e,t,n,r){const i=Xw(e);let o=function(e,t,n){switch(e){case"top":case"bottom":return n?t?oC:iC:t?iC:oC;case"left":case"right":return t?sC:aC;default:return[]}}(Jw(e),"start"===n,r);return i&&(o=o.map(e=>e+"-"+i),t&&(o=o.concat(o.map(rC)))),o}(a,E,_,L));const y=[a,...w],A=await EC(t,v),N=[];let S=(null==(r=o.flip)?void 0:r.overflows)||[];if(h&&N.push(A[m]),d){const e=function(e,t,n){void 0===n&&(n=!1);const r=Xw(e),i=nC(e),o=Zw(i);let s="x"===i?r===(n?"end":"start")?"right":"left":"start"===r?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=cC(s)),[s,cC(s)]}(i,s,L);N.push(A[e[0]],A[e[1]])}if(S=[...S,{placement:i,overflows:N}],!N.every(e=>e<=0)){var T,b;const e=((null==(T=o.flip)?void 0:T.index)||0)+1,t=y[e];if(t&&("alignment"!==d||g===tC(t)||S.every(e=>tC(e.placement)!==g||e.overflows[0]>0)))return{data:{index:e,overflows:S},reset:{placement:t}};let n=null==(b=S.filter(e=>e.overflows[0]<=0).sort((e,t)=>e.overflows[1]-t.overflows[1])[0])?void 0:b.placement;if(!n)switch(p){case"bestFit":{var O;const e=null==(O=S.filter(e=>{if(C){const t=tC(e.placement);return t===g||"y"===t}return!0}).map(e=>[e.placement,e.overflows.filter(e=>e>0).reduce((e,t)=>e+t,0)]).sort((e,t)=>e[1]-t[1])[0])?void 0:O[0];e&&(n=e);break}case"initialPlacement":n=a}if(i!==n)return{reset:{placement:n}}}return{}}}},fy=function(e){return void 0===e&&(e={}),{name:"hide",options:e,async fn(t){const{rects:n}=t,r=$w(e,t),{strategy:i="referenceHidden"}=r,o=Vr(r,dC);switch(i){case"referenceHidden":{const e=vC(await EC(t,Fr(Fr({},o),{},{elementContext:"reference"})),n.reference);return{data:{referenceHiddenOffsets:e,referenceHidden:mC(e)}}}case"escaped":{const e=vC(await EC(t,Fr(Fr({},o),{},{altBoundary:!0})),n.floating);return{data:{escapedOffsets:e,escaped:mC(e)}}}default:return{}}}}},py=e=>({name:"arrow",options:e,async fn(t){const{x:n,y:r,placement:i,rects:o,platform:s,elements:a,middlewareData:c}=t,{element:l,padding:u=0}=$w(e,t)||{};if(null==l)return{};const h=lC(u),d={x:n,y:r},f=nC(i),p=Zw(f),_=await s.getDimensions(l),E="y"===f,v=E?"top":"left",m=E?"bottom":"right",g=E?"clientHeight":"clientWidth",I=o.reference[p]+o.reference[f]-d[f]-o.floating[p],L=d[f]-o.reference[f],w=await(null==s.getOffsetParent?void 0:s.getOffsetParent(l));let C=w?w[g]:0;C&&await(null==s.isElement?void 0:s.isElement(w))||(C=a.floating[g]||o.floating[p]);const y=I/2-L/2,A=C/2-_[p]/2-1,N=Vw(h[v],A),S=Vw(h[m],A),T=N,b=C-_[p]-S,O=C/2-_[p]/2+y,R=Kw(T,O,b),k=!c.arrow&&null!=Xw(i)&&O!==R&&o.reference[p]/2-(O<T?N:S)-_[p]/2<0,P=k?O<T?O-T:O-b:0;return{[f]:d[f]+P,data:Fr({[f]:R,centerOffset:O-R-P},k&&{alignmentOffset:P}),reset:k}}}),_y=(e,t,n)=>{const r=new Map,i=Fr({platform:cy},n),o=Fr(Fr({},i.platform),{},{_c:r});return(async(e,t,n)=>{const{placement:r="bottom",strategy:i="absolute",middleware:o=[],platform:s}=n,a=o.filter(Boolean),c=await(null==s.isRTL?void 0:s.isRTL(t));let l=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:u,y:h}=_C(l,r,c),d=r,f={},p=0;for(let n=0;n<a.length;n++){const{name:o,fn:_}=a[n],{x:E,y:v,data:m,reset:g}=await _({x:u,y:h,initialPlacement:r,placement:d,strategy:i,middlewareData:f,rects:l,platform:s,elements:{reference:e,floating:t}});u=null!=E?E:u,h=null!=v?v:h,f=Fr(Fr({},f),{},{[o]:Fr(Fr({},f[o]),m)}),g&&p<=50&&(p++,"object"==typeof g&&(g.placement&&(d=g.placement),g.rects&&(l=!0===g.rects?await s.getElementRects({reference:e,floating:t,strategy:i}):g.rects),({x:u,y:h}=_C(l,d,c))),n=-1)}return{x:u,y:h,placement:d,strategy:i,middlewareData:f}})(e,t,Fr(Fr({},i),{},{platform:o}))},Ey=({title:e})=>Gw("div",{className:"Tooltip-module__tooltipTitle___h97ry",children:e}),vy=({arrowRef:e})=>Gw("div",{className:"Tooltip-module__tooltipArrow___7xBT0",ref:e}),my=({targetElement:e,title:t})=>{const n=Cw(),r=Cw();return ww(()=>{var t;let i;return e&&(i=uy(e,n.current,async()=>{const t=await(async(e,t,n)=>{if(!e||!t||!n)return null;const{x:r,y:i,placement:o,middlewareData:s}=await _y(e,t,{placement:"top",middleware:[(u=12,void 0===u&&(u=0),{name:"offset",options:u,async fn(e){var t,n;const{x:r,y:i,placement:o,middlewareData:s}=e,a=await async function(e,t){const{placement:n,platform:r,elements:i}=e,o=await(null==r.isRTL?void 0:r.isRTL(i.floating)),s=Jw(n),a=Xw(n),c="y"===tC(n),l=gC.has(s)?-1:1,u=o&&c?-1:1,h=$w(t,e);let{mainAxis:d,crossAxis:f,alignmentAxis:p}="number"==typeof h?{mainAxis:h,crossAxis:0,alignmentAxis:null}:{mainAxis:h.mainAxis||0,crossAxis:h.crossAxis||0,alignmentAxis:h.alignmentAxis};return a&&"number"==typeof p&&(f="end"===a?-1*p:p),c?{x:f*u,y:d*l}:{x:d*l,y:f*u}}(e,u);return o===(null==(t=s.offset)?void 0:t.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:r+a.x,y:i+a.y,data:Fr(Fr({},a),{},{placement:o})}}}),dy(),hy({padding:8}),py({element:n}),fy()]}),{x:a,y:c}=s.arrow,l=!s.hide.referenceHidden;var u;return{tooltip:{x:r,y:i},arrow:{x:a,y:c,staticSide:{top:"bottom",right:"left",bottom:"top",left:"right"}[o.split("-")[0]]},isVisible:l}})(e,n.current,r.current);t&&(n.current.style.left=`${t.tooltip.x}px`,n.current.style.top=`${t.tooltip.y}px`,n.current.style.display=t.isVisible?"block":"none",r.current.style.left=t.arrow.x?`${t.arrow.x}px`:"",r.current.style.top=t.arrow.y?`${t.arrow.y}px`:"",r.current.style[t.arrow.staticSide]="-4px")})),null===(t=n.current)||void 0===t||t.classList.add("Tooltip-module__tooltipVisible___tvm2-"),()=>{var e;null===(e=i)||void 0===e||e()}},[e]),Gw("div",{className:"Tooltip-module__tooltip___kLn1a",role:"tooltip","aria-live":"polite",ref:n,children:[Gw(Ey,{title:t}),Gw(vy,{arrowRef:r})]})};var gy=new WeakMap;const Iy=new class{constructor(){Mr(this,gy,null),Ur(this,"update",(e,t)=>{Pr(gy,this)?Pr(gy,this).rerender({targetElement:e,title:t}):Dr(gy,this,Pw(my,{targetElement:e,title:t},{hideFromVirtualAgent:!0}))}),Ur(this,"hide",()=>{var e;null===(e=Pr(gy,this))||void 0===e||e.unmount(),Dr(gy,this,null)})}},Ly=Af("cbio.Highlight");var wy=new WeakMap,Cy=new WeakMap,yy=new WeakMap,Ay=new WeakMap,Ny=new WeakMap,Sy=new WeakMap,Ty=new WeakMap;const by=new class{constructor(){Mr(this,wy,void 0),Ur(this,"highlight",async(e,t)=>{var n;const r=Cg.getById(t.target.id);if(!r)return!1;const i=this.getNonEmpyElement(r);if(!i)return!1;const o=(null!==(n=e.highlightElement)&&void 0!==n?n:Pr(Cy,this))(i,t.title);return e.emit("highlight.updated",{target:i,visible:!0}),await o,e.emit("highlight.updated",{target:i,visible:!1}),!0}),Ur(this,"hide",()=>{var e;Ly("hide",`resolve?=${!!Pr(wy,this)}`),Pr(Sy,this).call(this),Pr(Ay,this).call(this),null===(e=Pr(wy,this))||void 0===e||e.call(this),Dr(wy,this,void 0)}),Mr(this,Cy,(e,t)=>new Promise(n=>{Ly("update",e,t),Dr(wy,this,n),Pr(yy,this).call(this,e,t),Pr(Ny,this).call(this)})),Mr(this,yy,(e,t)=>{Ww.update(e),Iy.update(e,t)}),Mr(this,Ay,()=>{Iy.hide(),Ww.hide()}),Mr(this,Ny,()=>{Pr(Sy,this).call(this),document.addEventListener("click",Pr(Ty,this),{capture:!0})}),Mr(this,Sy,()=>{document.removeEventListener("click",Pr(Ty,this),!0)}),Mr(this,Ty,e=>{e.isTrusted&&this.hide()})}getNonEmpyElement(e){let t=e;for(;t;){const e=t.getBoundingClientRect();if(e.width>0&&e.height>0)return t;Ly("element is zero-width/height, trying parent",t),t=t.parentElement}}},Oy="pdf",Ry="xdoc",ky="universal";var Py=new WeakMap,My=new WeakMap,Dy=new WeakMap,Gy=new WeakMap,xy=new WeakMap;class Uy{constructor(e){Mr(this,Py,void 0),Mr(this,My,void 0),Mr(this,Dy,void 0),Ur(this,"findHandlerByUrl",e=>{if(!e)return null;try{const t=new URL(e,window.location.origin);return Pr(My,this).find(e=>e.shouldHandle(t))}catch(e){return console.warn("CobrowseIO: Failed to infer navigation type",e),null}}),Ur(this,"findHandlerByType",e=>Pr(My,this).find(t=>t.type===e)),Mr(this,Gy,(e,t,n,{name:r,go:i,e:o})=>{const s=this.findHandlerByUrl(e);if(s&&!s.shouldHandleEvent(o))return o.eventPhase===Event.BUBBLING_PHASE&&console.warn("CobrowseIO: Inferred navigation type but event is already handled"),{rewrittenUrl:e};const a=o.view||window;return Pr(Dy,this).call(this,e,t,n,{name:r,go:i,e:o,type:null==s?void 0:s.type,block:()=>Pr(xy,this).call(this,a,o)})}),Mr(this,xy,(e,t)=>{if(t.eventPhase===Event.CAPTURING_PHASE)return;const n=e.document,r=n.createElement("div");r.style.position="fixed",r.style.top=0,r.style.left=0,r.style.width="100vw",r.style.height="100vh",r.style.backgroundColor="black",r.style.zIndex="2147483647",r.style.margin=0,r.style.padding=0,r.style.border=0,r.style.borderRadius=0;const i=n.body.style.overflow;n.body.style.overflow="hidden",n.body.appendChild(r);const o=()=>{n.body.contains(r)&&n.body.removeChild(r),n.body.style.overflow=i,e.removeEventListener("popstate",o)};e.addEventListener("popstate",o),e.history.pushState({},"")}),Ur(this,"destroy",()=>{KI.beforeNavigate=null}),Dr(Py,this,e.shouldNavigate),Dr(My,this,e.handlers),Dr(Dy,this,e.handleNavigation),KI.beforeNavigate=Pr(Gy,this)}runHandler(e,t,n,r){if(!e)return{rewrittenUrl:e};const i=null!=r.type?this.findHandlerByType(r.type):this.findHandlerByUrl(e);return i&&Pr(Py,this).call(this,i.type)?i.handle(e,t,n,r):{rewrittenUrl:e}}}class Wy{get type(){throw new Error("Getter 'type' must be implemented.")}shouldHandleEvent(e){throw new Error("Method 'shouldHandleEvent()' must be implemented.")}shouldHandle(e){throw new Error("Method 'shouldHandle()' must be implemented.")}handle(e,t,n,r){throw new Error("Method 'handle()' must be implemented.")}}const Fy=Symbol("protected");function Vy(e,t,n){e[Fy]||Object.defineProperty(e,Fy,{enumerable:!1,value:{}});const r=e[Fy][t];return Object.getPrototypeOf(Object.getPrototypeOf(e))[t]=r,Object.defineProperty(e[Fy],t,{enumerable:!1,value:n,configurable:!0}),n}const jy=["http:","https:"],zy=e=>jy.includes(e);var By=new WeakMap,Hy=new WeakMap,Qy=new WeakMap;class Yy{constructor(e,t,n,r,i,o){Mr(this,By,e=>e.startsWith("#")),Mr(this,Hy,e=>e.hostname===this.proxyApiUrl.hostname),Mr(this,Qy,e=>`${e.pathname}${e.search}${e.hash}`.replace(/^.*?\/proxy\/1\/[^/]+/i,"")),Ur(this,"proxify",(e,t={})=>{if(!e)return e;if(Pr(By,this).call(this,e.toString()))return e;const n=Fr(Fr(Fr({},this.queryParams),this.getOrigin?{origin:this.getOrigin()}:{}),t);try{const t=new URL(e,this.baseUrl);if(!zy(t.protocol))return e;const r=((e,t)=>{const{hostname:n,protocol:r,pathname:i,search:o,port:s,username:a,password:c,hash:l}=new URL(e),u=n.split(".").reverse().map(encodeURIComponent).join("/"),h=new URL(`${u}/${r}${i}${l}`,"http://placeholder.base");o&&h.searchParams.set("search",o.replace("?","")),s&&h.searchParams.set("port",s),a&&h.searchParams.set("username",a),c&&h.searchParams.set("password",c);for(const[e,n]of Object.entries(t||{}))h.searchParams.set(e,n);return`${h.pathname}${h.search}${h.hash}`})(Pr(Hy,this).call(this,t)?this.unproxify(t.toString()):t.toString(),n);return new URL(`.${r}`,this.proxyApiUrl).toString()}catch(t){return e}}),Ur(this,"unproxify",e=>{if(!e)return e;if(Pr(By,this).call(this,e.toString()))return e;try{const t=new URL(e,this.baseUrl);if(!zy(t.protocol))return e;if(!Pr(Hy,this).call(this,t))return e;const n=(e=>{const{pathname:t,hash:n,searchParams:r}=new URL(e,"http://placeholder.base"),i=t.split("/"),o=i.findIndex(e=>"http:"===e||"https:"===e),s=i[o],a=i.slice(1,o).reverse().map(decodeURIComponent),c=i.slice(o+1,i.length),l=r.get("search"),u=r.get("port"),h=r.get("username"),d=r.get("password"),f=a.join("."),p=c.join("/");return new URL(`${s}//${h&&d?`${h}:${d}@`:""}${f}${u?`:${u}`:""}/${p}${l?`?${l}`:""}${n}`)})(Pr(Qy,this).call(this,t));return n.toString()}catch(t){return e}}),this.proxyApiUrl=new URL(t,e),this.queryParams=i?Fr({},i):{},n&&(this.queryParams.access_token=n),this.baseUrl=r,this.getOrigin=o}}const Ky="./proxy/1/universal/";var $y=new WeakMap,Jy=new WeakMap,Xy=new WeakMap;class qy{constructor(e,t){Mr(this,$y,void 0),Mr(this,Jy,void 0),Mr(this,Xy,e=>{const t=e[Fy].proxyToken(),n=e[Fy].proxyUrl(),r=new URL(n,Pr(Jy,this));return new Yy(r,Ky,t,window.location)}),Ur(this,"openPdfViewer",(e,t,n)=>{const r=window.__cobrowse_io_openPdf,i=r=>{const{setPdfUrl:i}=r(e,{container:t,onLoadError:t=>{const r=Pr(Xy,this).call(this,Pr($y,this)).proxify(e);t!==r?(console.warn("CobrowseIO: Failed to fetch PDF document, attempting to proxy it"),i(r)):n()},onLoadSuccess:n,preventClose:!0})};"function"!=typeof r?import("./CobrowseIO.static.C4ydqIN_.mjs").then(function(e){return e.C}).then(e=>{i(e.open)}):i(r)}),Dr($y,this,e),Dr(Jy,this,t)}}var Zy=new WeakMap,eA=new WeakMap,tA=new WeakMap,nA=new WeakMap;class rA extends Wy{constructor(e,t){super(),Mr(this,Zy,void 0),Mr(this,eA,void 0),Mr(this,tA,e=>new URL(e,window.location.href).pathname.split("/").pop()),Mr(this,nA,(e,t,n,r)=>{const{document:i}=r,o=document.createElement("div");o.style.width="100%",o.style.height="100%",i.load(e,t,n,{element:o,type:this.type}),Pr(eA,this).openPdfViewer(e,o,()=>{const t=Pr(tA,this).call(this,e);i.icon="",i.title=t,i.isLoading=!1})}),Dr(Zy,this,Sp(t.pdfLinks)),Dr(eA,this,new qy(e,t.api))}get type(){return Oy}shouldHandleEvent(e){return e.eventPhase!==Event.CAPTURING_PHASE&&!e.defaultPrevented}shouldHandle(e){const t=new URL(e,window.location.origin);return t.search="",Pr(Zy,this).call(this,t)}handle(e,t,n,r){return Pr(nA,this).call(this,e,t,n,r),{document:r.document}}}var iA=new WeakMap,oA=new WeakMap,sA=new WeakMap;class aA{constructor(e,t,n){Mr(this,iA,void 0),Mr(this,oA,void 0),Mr(this,sA,void 0),Ur(this,"createUniversalProxyFrameName",()=>`cbioUniversalFrame-${Lg(5)}`),Ur(this,"createUniversalProxyUrl",(e,t)=>{const n=Pr(iA,this)[Fy].proxyToken(),r=Pr(iA,this)[Fy].proxyUrl(),i=new URL(r,Pr(oA,this)),o={parent_origin:window.location.origin,proxy_path:i.pathname,sdk_version:Pr(sA,this),frame_name:t};return new Yy(i,Ky,n,window.location,o).proxify(e)}),Ur(this,"createUniversalProxyIFrame",(e,t)=>{const n=document.createElement("iframe");return n.allow="publickey-credentials-get *",n.style.width="100%",n.style.height="100%",n.style.backgroundColor="white",n.style.border="none",n.src=e,n.name=t,n}),Dr(iA,this,e),Dr(oA,this,t),Dr(sA,this,n)}}var cA=new WeakMap,lA=new WeakMap,uA=new WeakMap,hA=new WeakMap;class dA extends Wy{constructor(e,t){super(),Mr(this,cA,void 0),Mr(this,lA,void 0),Mr(this,uA,(e,t,n,r)=>{const{document:i}=r,o=Pr(lA,this).createUniversalProxyFrameName(),s=Pr(lA,this).createUniversalProxyUrl(e,o),a=Pr(lA,this).createUniversalProxyIFrame(s,o);i.load(s,t,n,{element:a,type:this.type});const c=({handle:e,document:{url:t,icon:n,title:r,isLoading:o,isBlocked:s}},{trusted:c,iframe:l})=>{e||c&&l===a&&(i.url=t,i.icon=n,i.title=r,i.isLoading=o,i.isBlocked=s)};fM.on("document",c),i.once("closed",()=>{fM.off("document",c)})}),Mr(this,hA,(e,t,n,r)=>{const{document:i}=r,o=document.createElement("div");o.style.width="100%",o.style.height="100%",o.style.backgroundColor="black",i.load(e,t,n,{element:o,type:this.type}),i.isLoading=!1,i.isBlocked=!0}),Dr(cA,this,Sp(t.universalLinks)),Dr(lA,this,new aA(e,t.api,t.version))}get type(){return ky}shouldHandleEvent(e){return e.eventPhase!==Event.CAPTURING_PHASE&&!e.defaultPrevented}shouldHandle(e){const t=new URL(e,window.location.origin);return t.search="",!!zy(t.protocol)&&Pr(cA,this).call(this,t)}handle(e,t,n,r){return(this.shouldHandle(e)?Pr(uA,this):Pr(hA,this))(e,t,n,r),{document:r.document}}}var fA,pA={};!function(){if(fA)return pA;fA=1;var e=hr(),t=Lt(),n=ha(),r=da(),i=[].push;e({target:"Iterator",proto:!0,real:!0},{toArray:function(){var e=[];return n(r(t(this)),i,{that:e,IS_RECORD:!0}),e}})}();var _A=new WeakMap;class EA{constructor(e){Mr(this,_A,{}),this.fill(e)}fill(e){return Dr(_A,this,e.reduce((e,t)=>(e[t]=!0,e),{})),this}all(){return Pr(_A,this)}toArray(){return Object.keys(Pr(_A,this)).filter(e=>Pr(_A,this)[e])}toggle(e,t){return Array.isArray(e)||(e=[e]),e.filter(e=>e in Pr(_A,this)).forEach(e=>{Pr(_A,this)[e]=t}),this}}var vA,mA,gA,IA,LA,wA,CA,yA,AA,NA,SA,TA,bA,OA,RA,kA,PA,MA,DA,GA,xA,UA,WA,FA,VA,jA,zA,BA,HA,QA,YA,KA,$A,JA,XA,qA,ZA,eN,tN,nN,rN,iN,oN,sN,aN,cN,lN,uN,hN,dN={};function fN(){return mA?vA:(mA=1,vA=function(e){try{return{error:!1,value:e()}}catch(e){return{error:!0,value:e}}})}function pN(){if(wA)return LA;wA=1;var e=eL(),t=hu(),n=function(){if(IA)return gA;IA=1;var e=o(),t=eL(),n=_e(),r=ur(),i=Vt(),s=st(),a=us(),c=Ze(),l=Ie(),u=t&&t.prototype,h=s("species"),d=!1,f=n(e.PromiseRejectionEvent),p=r("Promise",function(){var e=i(t),n=e!==String(t);if(!n&&66===l)return!0;if(c&&(!u.catch||!u.finally))return!0;if(!l||l<51||!/native code/.test(e)){var r=new t(function(e){e(1)}),o=function(e){e(function(){},function(){})};if((r.constructor={})[h]=o,!(d=r.then(function(){})instanceof o))return!0}return!(n||"BROWSER"!==a&&"DENO"!==a||f)});return gA={CONSTRUCTOR:p,REJECTION_EVENT:f,SUBCLASSING:d}}().CONSTRUCTOR;return LA=n||!t(function(t){e.all(t).then(void 0,function(){})})}function _N(){if(DA)return MA;DA=1;var e=eg(),t=function(){if(AA)return yA;AA=1;var e=eg();return yA=function(){this.__data__=new e,this.size=0}}(),n=SA?NA:(SA=1,NA=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}),r=bA?TA:(bA=1,TA=function(e){return this.__data__.get(e)}),i=RA?OA:(RA=1,OA=function(e){return this.__data__.has(e)}),o=function(){if(PA)return kA;PA=1;var e=eg(),t=tg(),n=rg();return kA=function(r,i){var o=this.__data__;if(o instanceof e){var s=o.__data__;if(!t||s.length<199)return s.push([r,i]),this.size=++o.size,this;o=this.__data__=new n(s)}return o.set(r,i),this.size=o.size,this}}();function s(t){var n=this.__data__=new e(t);this.size=n.size}return s.prototype.clear=t,s.prototype.delete=n,s.prototype.get=r,s.prototype.has=i,s.prototype.set=o,MA=s}function EN(){if(YA)return QA;YA=1;var e=function(){if(VA)return FA;VA=1;var e=rg(),t=xA?GA:(xA=1,GA=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}),n=WA?UA:(WA=1,UA=function(e){return this.__data__.has(e)});function r(t){var n=-1,r=null==t?0:t.length;for(this.__data__=new e;++n<r;)this.add(t[n])}return r.prototype.add=r.prototype.push=t,r.prototype.has=n,FA=r}(),t=zA?jA:(zA=1,jA=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}),n=HA?BA:(HA=1,BA=function(e,t){return e.has(t)});return QA=function(r,i,o,s,a,c){var l=1&o,u=r.length,h=i.length;if(u!=h&&!(l&&h>u))return!1;var d=c.get(r),f=c.get(i);if(d&&f)return d==i&&f==r;var p=-1,_=!0,E=2&o?new e:void 0;for(c.set(r,i),c.set(i,r);++p<u;){var v=r[p],m=i[p];if(s)var g=l?s(m,v,p,i,r,c):s(v,m,p,r,i,c);if(void 0!==g){if(g)continue;_=!1;break}if(E){if(!t(i,function(e,t){if(!n(E,t)&&(v===e||a(v,e,o,s,c)))return E.push(t)})){_=!1;break}}else if(v!==m&&!a(v,m,o,s,c)){_=!1;break}}return c.delete(r),c.delete(i),_}}function vN(){if($A)return KA;$A=1;var e=fd().Uint8Array;return KA=e}function mN(){if(rN)return nN;rN=1;var e=pg(),t=Ym();return nN=function(n,r,i){var o=r(n);return t(n)?o:e(o,i(n))}}function gN(){return aN?sN:(aN=1,sN=function(){return[]})}function IN(){if(lN)return cN;lN=1;var e=oN?iN:(oN=1,iN=function(e,t){for(var n=-1,r=null==e?0:e.length,i=0,o=[];++n<r;){var s=e[n];t(s,n,e)&&(o[i++]=s)}return o}),t=gN(),n=Object.prototype.propertyIsEnumerable,r=Object.getOwnPropertySymbols,i=r?function(t){return null==t?[]:(t=Object(t),e(r(t),function(e){return n.call(t,e)}))}:t;return cN=i}!function(){if(CA)return dN;CA=1;var e=hr(),t=m(),n=Ae(),r=aL(),i=fN(),o=ha();e({target:"Promise",stat:!0,forced:pN()},{allSettled:function(e){var s=this,a=r.f(s),c=a.resolve,l=a.reject,u=i(function(){var r=n(s.resolve),i=[],a=0,l=1;o(e,function(e){var n=a++,o=!1;l++,t(r,s,e).then(function(e){o||(o=!0,i[n]={status:"fulfilled",value:e},--l||c(i))},function(e){o||(o=!0,i[n]={status:"rejected",reason:e},--l||c(i))})}),--l||c(i)});return u.error&&l(u.value),a.promise}})}();var LN,wN,CN,yN,AN,NN,SN,TN={exports:{}};function bN(){return CN||(CN=1,function(e,t){var n=fd(),r=wN?LN:(wN=1,LN=function(){return!1}),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,s=o&&o.exports===i?n.Buffer:void 0,a=(s?s.isBuffer:void 0)||r;e.exports=a}(TN,TN.exports)),TN.exports}function ON(){return SN?NN:(SN=1,NN=function(e){return function(t){return e(t)}})}var RN,kN,PN,MN,DN,GN,xN,UN,WN,FN,VN,jN,zN,BN,HN,QN,YN,KN,$N,JN,XN,qN,ZN,eS,tS,nS,rS,iS,oS,sS,aS,cS,lS,uS,hS,dS,fS,pS,_S,ES,vS,mS,gS,IS={exports:{}};function LS(){return RN||(RN=1,e=IS,t=IS.exports,n=dd(),r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r&&n.process,s=function(){try{return i&&i.require&&i.require("util").types||o&&o.binding&&o.binding("util")}catch(e){}}(),e.exports=s),IS.exports;var e,t,n,r,i,o,s}function wS(){if(PN)return kN;PN=1;var e=function(){if(AN)return yN;AN=1;var e=qd(),t=fg(),n=Zd(),r={};return r["[object Float32Array]"]=r["[object Float64Array]"]=r["[object Int8Array]"]=r["[object Int16Array]"]=r["[object Int32Array]"]=r["[object Uint8Array]"]=r["[object Uint8ClampedArray]"]=r["[object Uint16Array]"]=r["[object Uint32Array]"]=!0,r["[object Arguments]"]=r["[object Array]"]=r["[object ArrayBuffer]"]=r["[object Boolean]"]=r["[object DataView]"]=r["[object Date]"]=r["[object Error]"]=r["[object Function]"]=r["[object Map]"]=r["[object Number]"]=r["[object Object]"]=r["[object RegExp]"]=r["[object Set]"]=r["[object String]"]=r["[object WeakMap]"]=!1,yN=function(i){return n(i)&&t(i.length)&&!!r[e(i)]}}(),t=ON(),n=LS(),r=n&&n.isTypedArray,i=r?t(r):e;return kN=i}function CS(){if(DN)return MN;DN=1;var e=(hN||(hN=1,uN=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}),uN),t=dg(),n=Ym(),r=bN(),i=hg(),o=wS(),s=Object.prototype.hasOwnProperty;return MN=function(a,c){var l=n(a),u=!l&&t(a),h=!l&&!u&&r(a),d=!l&&!u&&!h&&o(a),f=l||u||h||d,p=f?e(a.length,String):[],_=p.length;for(var E in a)!c&&!s.call(a,E)||f&&("length"==E||h&&("offset"==E||"parent"==E)||d&&("buffer"==E||"byteLength"==E||"byteOffset"==E)||i(E,_))||p.push(E);return p}}function yS(){if(xN)return GN;xN=1;var e=Object.prototype;return GN=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}}function AS(){return WN?UN:(WN=1,UN=function(e,t){return function(n){return e(t(n))}})}function NS(){if(HN)return BN;HN=1;var e=Km(),t=fg();return BN=function(n){return null!=n&&t(n.length)&&!e(n)}}function SS(){if(YN)return QN;YN=1;var e=CS(),t=function(){if(zN)return jN;zN=1;var e=yS(),t=function(){if(VN)return FN;VN=1;var e=AS()(Object.keys,Object);return FN=e}(),n=Object.prototype.hasOwnProperty;return jN=function(r){if(!e(r))return t(r);var i=[];for(var o in Object(r))n.call(r,o)&&"constructor"!=o&&i.push(o);return i}}(),n=NS();return QN=function(r){return n(r)?e(r):t(r)}}function TS(){if($N)return KN;$N=1;var e=mN(),t=IN(),n=SS();return KN=function(r){return e(r,n,t)}}function bS(){if(aS)return sS;aS=1;var e=function(){if(ZN)return qN;ZN=1;var e=Jm()(fd(),"DataView");return qN=e}(),t=tg(),n=function(){if(tS)return eS;tS=1;var e=Jm()(fd(),"Promise");return eS=e}(),r=function(){if(rS)return nS;rS=1;var e=Jm()(fd(),"Set");return nS=e}(),i=function(){if(oS)return iS;oS=1;var e=Jm()(fd(),"WeakMap");return iS=e}(),o=qd(),s=$m(),a="[object Map]",c="[object Promise]",l="[object Set]",u="[object WeakMap]",h="[object DataView]",d=s(e),f=s(t),p=s(n),_=s(r),E=s(i),v=o;return(e&&v(new e(new ArrayBuffer(1)))!=h||t&&v(new t)!=a||n&&v(n.resolve())!=c||r&&v(new r)!=l||i&&v(new i)!=u)&&(v=function(e){var t=o(e),n="[object Object]"==t?e.constructor:void 0,r=n?s(n):"";if(r)switch(r){case d:return h;case f:return a;case p:return c;case _:return l;case E:return u}return t}),sS=v}function OS(){if(lS)return cS;lS=1;var e=_N(),t=EN(),n=function(){if(tN)return eN;tN=1;var e=Xd(),t=vN(),n=qm(),r=EN(),i=XA?JA:(XA=1,JA=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}),o=ZA?qA:(ZA=1,qA=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}),s=e?e.prototype:void 0,a=s?s.valueOf:void 0;return eN=function(e,s,c,l,u,h,d){switch(c){case"[object DataView]":if(e.byteLength!=s.byteLength||e.byteOffset!=s.byteOffset)return!1;e=e.buffer,s=s.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=s.byteLength||!h(new t(e),new t(s)));case"[object Boolean]":case"[object Date]":case"[object Number]":return n(+e,+s);case"[object Error]":return e.name==s.name&&e.message==s.message;case"[object RegExp]":case"[object String]":return e==s+"";case"[object Map]":var f=i;case"[object Set]":var p=1&l;if(f||(f=o),e.size!=s.size&&!p)return!1;var _=d.get(e);if(_)return _==s;l|=2,d.set(e,s);var E=r(f(e),f(s),l,u,h,d);return d.delete(e),E;case"[object Symbol]":if(a)return a.call(e)==a.call(s)}return!1}}(),r=function(){if(XN)return JN;XN=1;var e=TS(),t=Object.prototype.hasOwnProperty;return JN=function(n,r,i,o,s,a){var c=1&i,l=e(n),u=l.length;if(u!=e(r).length&&!c)return!1;for(var h=u;h--;){var d=l[h];if(!(c?d in r:t.call(r,d)))return!1}var f=a.get(n),p=a.get(r);if(f&&p)return f==r&&p==n;var _=!0;a.set(n,r),a.set(r,n);for(var E=c;++h<u;){var v=n[d=l[h]],m=r[d];if(o)var g=c?o(m,v,d,r,n,a):o(v,m,d,n,r,a);if(!(void 0===g?v===m||s(v,m,i,o,a):g)){_=!1;break}E||(E="constructor"==d)}if(_&&!E){var I=n.constructor,L=r.constructor;I==L||!("constructor"in n)||!("constructor"in r)||"function"==typeof I&&I instanceof I&&"function"==typeof L&&L instanceof L||(_=!1)}return a.delete(n),a.delete(r),_}}(),i=bS(),o=Ym(),s=bN(),a=wS(),c="[object Arguments]",l="[object Array]",u="[object Object]",h=Object.prototype.hasOwnProperty;return cS=function(d,f,p,_,E,v){var m=o(d),g=o(f),I=m?l:i(d),L=g?l:i(f),w=(I=I==c?u:I)==u,C=(L=L==c?u:L)==u,y=I==L;if(y&&s(d)){if(!s(f))return!1;m=!0,w=!1}if(y&&!w)return v||(v=new e),m||a(d)?t(d,f,p,_,E,v):n(d,f,I,p,_,E,v);if(!(1&p)){var A=w&&h.call(d,"__wrapped__"),N=C&&h.call(f,"__wrapped__");if(A||N){var S=A?d.value():d,T=N?f.value():f;return v||(v=new e),E(S,T,p,_,v)}}return!!y&&(v||(v=new e),r(d,f,p,_,E,v))}}function RS(){if(hS)return uS;hS=1;var e=OS(),t=Zd();return uS=function n(r,i,o,s,a){return r===i||(null==r||null==i||!t(r)&&!t(i)?r!=r&&i!=i:e(r,i,o,s,n,a))}}const kS=t(function(){if(gS)return mS;gS=1;var e=function(){if(fS)return dS;fS=1;var e=_N(),t=RS();return dS=function(n,r,i,o){var s=i.length,a=s,c=!o;if(null==n)return!a;for(n=Object(n);s--;){var l=i[s];if(c&&l[2]?l[1]!==n[l[0]]:!(l[0]in n))return!1}for(;++s<a;){var u=(l=i[s])[0],h=n[u],d=l[1];if(c&&l[2]){if(void 0===h&&!(u in n))return!1}else{var f=new e;if(o)var p=o(h,d,u,n,r,f);if(!(void 0===p?t(d,h,3,o,f):p))return!1}}return!0}}(),t=function(){if(vS)return ES;vS=1;var e=function(){if(_S)return pS;_S=1;var e=hd();return pS=function(t){return t==t&&!e(t)}}(),t=SS();return ES=function(n){for(var r=t(n),i=r.length;i--;){var o=r[i],s=n[o];r[i]=[o,s,e(s)]}return r}}();return mS=function(n,r,i){return i="function"==typeof i?i:void 0,e(n,r,t(r),i)}}());var PS,MS,DS,GS,xS,US,WS,FS,VS,jS,zS,BS,HS,QS;function YS(){if(GS)return DS;GS=1;var e=ug(),t=lg();return DS=function(n,r,i,o){var s=!i;i||(i={});for(var a=-1,c=r.length;++a<c;){var l=r[a],u=o?o(i[l],n[l],l,i,n):void 0;void 0===u&&(u=n[l]),s?t(i,l,u):e(i,l,u)}return i}}function KS(){if(BS)return zS;BS=1;var e=CS(),t=function(){if(jS)return VS;jS=1;var e=hd(),t=yS(),n=FS?WS:(FS=1,WS=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t}),r=Object.prototype.hasOwnProperty;return VS=function(i){if(!e(i))return n(i);var o=t(i),s=[];for(var a in i)("constructor"!=a||!o&&r.call(i,a))&&s.push(a);return s}}(),n=NS();return zS=function(r){return n(r)?e(r,!0):t(r)}}var $S,JS,XS,qS,ZS,eT,tT,nT,rT,iT,oT,sT,aT,cT,lT,uT,hT,dT,fT,pT,_T,ET,vT,mT,gT,IT,LT,wT,CT,yT,AT,NT,ST,TT,bT,OT,RT,kT,PT,MT,DT,GT,xT,UT,WT,FT,VT,jT,zT,BT,HT,QT,YT,KT,$T,JT={exports:{}};function XT(){if(tT)return eT;tT=1;var e=AS()(Object.getPrototypeOf,Object);return eT=e}function qT(){if(rT)return nT;rT=1;var e=pg(),t=XT(),n=IN(),r=gN(),i=Object.getOwnPropertySymbols;return nT=i?function(r){for(var i=[];r;)e(i,n(r)),r=t(r);return i}:r}function ZT(){if(aT)return sT;aT=1;var e=mN(),t=qT(),n=KS();return sT=function(r){return e(r,n,t)}}function eb(){if(hT)return uT;hT=1;var e=vN();return uT=function(t){var n=new t.constructor(t.byteLength);return new e(n).set(new e(t)),n},uT}function tb(){if(DT)return MT;DT=1;var e=_N(),t=MS?PS:(MS=1,PS=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}),n=ug(),r=function(){if(US)return xS;US=1;var e=YS(),t=SS();return xS=function(n,r){return n&&e(r,t(r),n)}}(),i=function(){if(QS)return HS;QS=1;var e=YS(),t=KS();return HS=function(n,r){return n&&e(r,t(r),n)}}(),o=($S||($S=1,function(e,t){var n=fd(),r=t&&!t.nodeType&&t,i=r&&e&&!e.nodeType&&e,o=i&&i.exports===r?n.Buffer:void 0,s=o?o.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var n=e.length,r=s?s(n):new e.constructor(n);return e.copy(r),r}}(JT,JT.exports)),JT.exports),s=XS?JS:(XS=1,JS=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n<r;)t[n]=e[n];return t}),a=function(){if(ZS)return qS;ZS=1;var e=YS(),t=IN();return qS=function(n,r){return e(n,t(n),r)}}(),c=function(){if(oT)return iT;oT=1;var e=YS(),t=qT();return iT=function(n,r){return e(n,t(n),r)}}(),l=TS(),u=ZT(),h=bS(),d=function(){if(lT)return cT;lT=1;var e=Object.prototype.hasOwnProperty;return cT=function(t){var n=t.length,r=new t.constructor(n);return n&&"string"==typeof t[0]&&e.call(t,"index")&&(r.index=t.index,r.input=t.input),r}}(),f=function(){if(LT)return IT;LT=1;var e=eb(),t=function(){if(fT)return dT;fT=1;var e=eb();return dT=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.byteLength)}}(),n=function(){if(_T)return pT;_T=1;var e=/\w*$/;return pT=function(t){var n=new t.constructor(t.source,e.exec(t));return n.lastIndex=t.lastIndex,n}}(),r=function(){if(vT)return ET;vT=1;var e=Xd(),t=e?e.prototype:void 0,n=t?t.valueOf:void 0;return ET=function(e){return n?Object(n.call(e)):{}},ET}(),i=function(){if(gT)return mT;gT=1;var e=eb();return mT=function(t,n){var r=n?e(t.buffer):t.buffer;return new t.constructor(r,t.byteOffset,t.length)}}();return IT=function(o,s,a){var c=o.constructor;switch(s){case"[object ArrayBuffer]":return e(o);case"[object Boolean]":case"[object Date]":return new c(+o);case"[object DataView]":return t(o,a);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return i(o,a);case"[object Map]":case"[object Set]":return new c;case"[object Number]":case"[object String]":return new c(o);case"[object RegExp]":return n(o);case"[object Symbol]":return r(o)}}}(),p=function(){if(AT)return yT;AT=1;var e=function(){if(CT)return wT;CT=1;var e=hd(),t=Object.create,n=function(){function n(){}return function(r){if(!e(r))return{};if(t)return t(r);n.prototype=r;var i=new n;return n.prototype=void 0,i}}();return wT=n}(),t=XT(),n=yS();return yT=function(r){return"function"!=typeof r.constructor||n(r)?{}:e(t(r))}}(),_=Ym(),E=bN(),v=function(){if(bT)return TT;bT=1;var e=function(){if(ST)return NT;ST=1;var e=bS(),t=Zd();return NT=function(n){return t(n)&&"[object Map]"==e(n)}}(),t=ON(),n=LS(),r=n&&n.isMap,i=r?t(r):e;return TT=i}(),m=hd(),g=function(){if(PT)return kT;PT=1;var e=function(){if(RT)return OT;RT=1;var e=bS(),t=Zd();return OT=function(n){return t(n)&&"[object Set]"==e(n)}}(),t=ON(),n=LS(),r=n&&n.isSet,i=r?t(r):e;return kT=i}(),I=SS(),L=KS(),w="[object Arguments]",C="[object Function]",y="[object Object]",A={};return A[w]=A["[object Array]"]=A["[object ArrayBuffer]"]=A["[object DataView]"]=A["[object Boolean]"]=A["[object Date]"]=A["[object Float32Array]"]=A["[object Float64Array]"]=A["[object Int8Array]"]=A["[object Int16Array]"]=A["[object Int32Array]"]=A["[object Map]"]=A["[object Number]"]=A[y]=A["[object RegExp]"]=A["[object Set]"]=A["[object String]"]=A["[object Symbol]"]=A["[object Uint8Array]"]=A["[object Uint8ClampedArray]"]=A["[object Uint16Array]"]=A["[object Uint32Array]"]=!0,A["[object Error]"]=A[C]=A["[object WeakMap]"]=!1,MT=function N(S,T,b,O,R,k){var P,M=1&T,D=2&T,G=4&T;if(b&&(P=R?b(S,O,R,k):b(S)),void 0!==P)return P;if(!m(S))return S;var x=_(S);if(x){if(P=d(S),!M)return s(S,P)}else{var U=h(S),W=U==C||"[object GeneratorFunction]"==U;if(E(S))return o(S,M);if(U==y||U==w||W&&!R){if(P=D||W?{}:p(S),!M)return D?c(S,i(P,S)):a(S,r(P,S))}else{if(!A[U])return R?S:{};P=f(S,U,M)}}k||(k=new e);var F=k.get(S);if(F)return F;k.set(S,P),g(S)?S.forEach(function(e){P.add(N(e,T,b,e,S,k))}):v(S)&&S.forEach(function(e,t){P.set(t,N(e,T,b,t,S,k))});var V=x?void 0:(G?D?u:l:D?L:I)(S);return t(V||S,function(e,t){V&&(e=S[t=e]),n(P,t,N(e,T,b,t,S,k))}),P}}function nb(){if(zT)return jT;zT=1;var e=og(),t=xT?GT:(xT=1,GT=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0}),n=function(){if(VT)return FT;VT=1;var e=ag(),t=WT?UT:(WT=1,UT=function(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r<i;)o[r]=e[r+t];return o});return FT=function(n,r){return r.length<2?n:e(n,t(r,0,-1))},FT}(),r=sg(),i=Object.prototype.hasOwnProperty;return jT=function(o,s){var a=-1,c=(s=e(s,o)).length;if(!c)return!0;for(;++a<c;){var l=r(s[a]);if("__proto__"===l&&!i.call(o,"__proto__"))return!1;if(("constructor"===l||"prototype"===l)&&a<c-1)return!1}var u=n(o,s);return null==u||delete u[r(t(s))]},jT}var rb=function(){if($T)return KT;$T=1;var e=ig(),t=tb(),n=nb(),r=og(),i=YS(),o=function(){if(YT)return QT;YT=1;var e=function(){if(HT)return BT;HT=1;var e=qd(),t=XT(),n=Zd(),r=Function.prototype,i=Object.prototype,o=r.toString,s=i.hasOwnProperty,a=o.call(Object);return BT=function(r){if(!n(r)||"[object Object]"!=e(r))return!1;var i=t(r);if(null===i)return!0;var c=s.call(i,"constructor")&&i.constructor;return"function"==typeof c&&c instanceof c&&o.call(c)==a}}();return QT=function(t){return e(t)?void 0:t}}(),s=Eg(),a=ZT(),c=s(function(s,c){var l={};if(null==s)return l;var u=!1;c=e(c,function(e){return e=r(e,s),u||(u=e.length>1),e}),i(s,a(s),l),u&&(l=t(l,7,o));for(var h=c.length;h--;)n(l,c[h]);return l});return KT=c}();const ib=t(rb);var ob,sb;const ab=t(function(){if(sb)return ob;sb=1;var e=RS();return ob=function(t,n){return e(t,n)}}());class cb extends Error{constructor(e,t){super(t),this.status=e,this.name="HTTPError"}}class lb extends cb{constructor(e,t,n){super(t,n),this.id=e,this.name="APIError"}}var ub=new WeakMap,hb=new WeakMap,db=new WeakMap,fb=new WeakMap,pb=new WeakMap,_b=new WeakMap;class Eb extends td.EventEmitter{constructor(...e){super(...e),Mr(this,ub,{}),Mr(this,hb,{}),Mr(this,db,null),Mr(this,fb,null),Mr(this,pb,null),Mr(this,_b,async e=>{if(e.status>=400){const t=await e.json();throw new lb(t.id,e.status,t.message)}if(!e.ok)throw new Error("Failed to parse response, response not ok");return 204===e.status?null:await e.json()})}get _resource(){return console.warn("The _resource property is private and should not be accessed directly. It will soon be removed entirely. Please update your implementation to use only the public APIs."),Pr(hb,this)}get resource(){return Pr(hb,this)}url(){throw new Error("url() must be implemented")}id(){return this.field("id")}field(e){return(Pr(hb,this)||{})[e]}cache(e){Dr(hb,this,Fr(Fr({},Pr(hb,this)),e))}async fetch(){await Promise.allSettled([Pr(db,this),Pr(fb,this),Pr(pb,this)]);const e=await fetch(this.url(),{headers:ib(this.headers(),["Content-Type"])});return this.updateResource(await Pr(_b,this).call(this,e))}async create(){Dr(db,this,(async()=>{const e=await fetch(this.url(),{method:"POST",headers:this.headers()});return this.updateResource(await Pr(_b,this).call(this,e))})());try{return await Pr(db,this)}finally{Dr(db,this,null)}}async update(e){await Promise.allSettled([Pr(fb,this)]),Dr(fb,this,(async e=>{if(e&&Object.keys(e).length>0&&kS(Pr(hb,this),e,ab))return this;const t=await fetch(this.url(),{method:this.id()?"PUT":"POST",headers:this.headers(),body:JSON.stringify(e)});return this.updateResource(await Pr(_b,this).call(this,t))})(e));try{return await Pr(fb,this)}finally{Dr(fb,this,null)}}async destroy(){Dr(pb,this,(async()=>{const e=await fetch(this.url(),{method:"DELETE",headers:this.headers()});return this.updateResource(await Pr(_b,this).call(this,e))})());try{return await Pr(pb,this)}finally{Dr(pb,this,null)}}updateResource(e){const t=this.clone();return Dr(hb,this,e||{}),this.emit("updated",this,t),this}clone(e){e&&Dr(hb,e,Fr({},Pr(hb,this)))}headers(){return Fr(Fr({},Eb.headers()),Pr(ub,this))}setHeader(e,t){Pr(ub,this)[e]=t}getHeader(e){return this.headers()[e]}static headers(){return Sr(Eb,this,mb)._}static setHeader(e,t){mb._[e]=t}static getHeader(e){return mb._[e]}static set api(e){gb._=e}static get api(){return gb._}}var vb,mb={_:{}},gb={_:void 0},Ib={};!function(){if(vb)return Ib;vb=1;var e=hr(),t=m(),n=le(),r=fe(),i=_e(),o=Ee(),s=ic(),a=Ir(),c=Ne(),l=ac(),u=Jd(),h=st(),d=Ze(),f=h("replace"),p=TypeError,_=n("".indexOf),E=n("".replace),v=n("".slice),g=Math.max;e({target:"String",proto:!0},{replaceAll:function(e,n){var h,m,I,L,w,C,y,A,N,S,T=r(this),b=0,O="";if(o(e)){if((h=s(e))&&(m=a(r(l(e))),!~_(m,"g")))throw new p("`.replaceAll` does not allow non-global regexes");if(I=c(e,f))return t(I,e,T,n);if(d&&h)return E(a(T),e,n)}for(L=a(T),w=a(e),(C=i(n))||(n=a(n)),y=w.length,A=g(1,y),N=_(L,w);-1!==N;)S=C?a(n(w,N,L)):u(w,L,N,[],void 0,n),O+=v(L,b,N)+S,b=N+y,N=N+A>L.length?-1:_(L,w,N+A);return b<L.length&&(O+=v(L,b)),O}})}();var Lb,wb,Cb,yb,Ab,Nb={};function Sb(){if(wb)return Lb;wb=1;var e=E(),t=_(),n=Lt(),r=Lr(),i=Error.prototype.toString,o=t(function(){if(e){var t=Object.create(Object.defineProperty({},"name",{get:function(){return this===t}}));if("true"!==i.call(t))return!0}return"2: 1"!==i.call({message:1,name:2})||"Error"!==i.call({})});return Lb=o?function(){var e=n(this),t=r(e.name,"Error"),i=r(e.message);return t?i?t+": "+i:t:i}:i,Lb}function Tb(){return yb?Cb:(yb=1,Cb={IndexSizeError:{s:"INDEX_SIZE_ERR",c:1,m:1},DOMStringSizeError:{s:"DOMSTRING_SIZE_ERR",c:2,m:0},HierarchyRequestError:{s:"HIERARCHY_REQUEST_ERR",c:3,m:1},WrongDocumentError:{s:"WRONG_DOCUMENT_ERR",c:4,m:1},InvalidCharacterError:{s:"INVALID_CHARACTER_ERR",c:5,m:1},NoDataAllowedError:{s:"NO_DATA_ALLOWED_ERR",c:6,m:0},NoModificationAllowedError:{s:"NO_MODIFICATION_ALLOWED_ERR",c:7,m:1},NotFoundError:{s:"NOT_FOUND_ERR",c:8,m:1},NotSupportedError:{s:"NOT_SUPPORTED_ERR",c:9,m:1},InUseAttributeError:{s:"INUSE_ATTRIBUTE_ERR",c:10,m:1},InvalidStateError:{s:"INVALID_STATE_ERR",c:11,m:1},SyntaxError:{s:"SYNTAX_ERR",c:12,m:1},InvalidModificationError:{s:"INVALID_MODIFICATION_ERR",c:13,m:1},NamespaceError:{s:"NAMESPACE_ERR",c:14,m:1},InvalidAccessError:{s:"INVALID_ACCESS_ERR",c:15,m:1},ValidationError:{s:"VALIDATION_ERR",c:16,m:0},TypeMismatchError:{s:"TYPE_MISMATCH_ERR",c:17,m:1},SecurityError:{s:"SECURITY_ERR",c:18,m:1},NetworkError:{s:"NETWORK_ERR",c:19,m:1},AbortError:{s:"ABORT_ERR",c:20,m:1},URLMismatchError:{s:"URL_MISMATCH_ERR",c:21,m:1},QuotaExceededError:{s:"QUOTA_EXCEEDED_ERR",c:22,m:1},TimeoutError:{s:"TIMEOUT_ERR",c:23,m:1},InvalidNodeTypeError:{s:"INVALID_NODE_TYPE_ERR",c:24,m:1},DataCloneError:{s:"DATA_CLONE_ERR",c:25,m:1}})}!function(){if(Ab)return Nb;Ab=1;var e=hr(),t=ve(),n=ds(),r=_(),i=xs(),o=ce(),s=wt().f,a=Qt(),c=Zr(),l=it(),u=No(),h=Lt(),d=Sb(),f=Lr(),p=Tb(),v=Cr(),m=Bt(),g=E(),I=Ze(),L="DOMException",w="DATA_CLONE_ERR",C=t("Error"),y=t(L)||function(){try{(new(t("MessageChannel")||n("worker_threads").MessageChannel)).port1.postMessage(new WeakMap)}catch(e){if(e.name===w&&25===e.code)return e.constructor}}(),A=y&&y.prototype,N=C.prototype,S=m.set,T=m.getterFor(L),b="stack"in new C(L),O=function(e){return l(p,e)&&p[e].m?p[e].c:0},R=function(){u(this,k);var e=arguments.length,t=f(e<1?void 0:arguments[0]),n=f(e<2?void 0:arguments[1],"Error"),r=O(n);if(S(this,{type:L,name:n,message:t,code:r}),g||(this.name=n,this.message=t,this.code=r),b){var i=new C(t);i.name=L,s(this,"stack",o(1,v(i.stack,1)))}},k=R.prototype=i(N),P=function(e){return{enumerable:!0,configurable:!0,get:e}},M=function(e){return P(function(){return T(this)[e]})};g&&(c(k,"code",M("code")),c(k,"message",M("message")),c(k,"name",M("name"))),s(k,"constructor",o(1,R));var D=r(function(){return!(new y instanceof C)}),G=D||r(function(){return N.toString!==d||"2: 1"!==String(new y(1,2))}),x=D||r(function(){return 25!==new y(1,"DataCloneError").code}),U=D||25!==y[w]||25!==A[w],W=I?G||x||U:D;e({global:!0,constructor:!0,forced:W},{DOMException:W?R:y});var F=t(L),V=F.prototype;for(var j in G&&(I||y===F)&&a(V,"toString",d),x&&g&&y===F&&c(V,"code",P(function(){return O(h(this).name)})),p)if(l(p,j)){var z=p[j],B=z.s,H=o(6,z.c);l(F,B)||s(F,B,H),l(V,B)||s(V,B,H)}}();var bb,Ob={};!function(){if(bb)return Ob;bb=1;var e=hr(),t=o(),n=ve(),r=ce(),i=wt().f,s=it(),a=No(),c=mr(),l=Lr(),u=Tb(),h=Cr(),d=E(),f=Ze(),p="DOMException",_=n("Error"),v=n(p),m=function(){a(this,g);var e=arguments.length,t=l(e<1?void 0:arguments[0]),n=l(e<2?void 0:arguments[1],"Error"),o=new v(t,n),s=new _(t);return s.name=p,i(o,"stack",r(1,h(s.stack,1))),c(o,this,m),o},g=m.prototype=v.prototype,I="stack"in new _(p),L="stack"in new v(1,2),w=v&&d&&Object.getOwnPropertyDescriptor(t,p),C=!(!w||w.writable&&w.configurable),y=I&&!C&&!L;e({global:!0,constructor:!0,forced:f||y},{DOMException:y?m:v});var A=n(p),N=A.prototype;if(N.constructor!==A)for(var S in f||i(N,"constructor",r(1,A)),u)if(s(u,S)){var T=u[S],b=T.s;s(A,b)||i(A,b,r(6,T.c))}}();var Rb,kb={};function Pb(e,t,n=ej){const r=[null,`X-CobrowseSDKVersion=${n.version}`,"X-CobrowsePlatform=web",`X-CobrowseDevice=${n.deviceId()}`,`X-CobrowseLicense=${n.license}`].filter(Boolean).join("&"),i=new URL(e,n.api).toString().replace("https://","wss://").replace("http://","ws://");return new URL(`sockets/1/ws?${r}`,i).toString()}!function(){if(Rb)return kb;Rb=1;var e=ve(),t="DOMException";Ro()(e(t),t)}();class Mb{constructor(e,t){this.rate=e,this.period=t,this._tracked=[]}limit(){const e=Date.now()-this.period;return this._tracked=this._tracked.filter(t=>t>e),!(this._tracked.length<this.rate&&(this._tracked.push(Date.now()),1))}}const Db="pointer",Gb="scroll",xb="select",Ub="keypress",Wb="drawing",Fb="arrows",Vb="rectangles",jb="laser",zb="disappearing_ink",Bb="full_device",Hb="cursor",Qb="universal",Yb="highlight",Kb=Af("cbio.Device"),$b="_cobrowse_device_id",Jb="_cobrowse_device_registration";var Xb=new WeakMap,qb=new WeakMap,Zb=new WeakMap,eO=new WeakMap,tO=new WeakMap,nO=new WeakMap,rO=new WeakMap,iO=new WeakMap,oO=new WeakMap,sO=new WeakMap,aO=new WeakMap,cO=new WeakMap;class lO extends Eb{constructor(e){if(super(),Mr(this,Xb,void 0),Mr(this,qb,void 0),Mr(this,Zb,void 0),Mr(this,eO,!1),Mr(this,tO,void 0),Ur(this,"url",()=>new URL(`api/1/devices/${this.id()}`,lO.api).toString()),Ur(this,"reset",(e=!1)=>{Kb("resetting device"),clearTimeout(Pr(Zb,this)),Dr(Zb,this,null),e||lE().removeItem(Jb),Pr(Xb,this)&&(Pr(Xb,this).close(),Dr(Xb,this,null))}),Ur(this,"destroy",async()=>(Kb("destroying device"),this.reset(),super.destroy())),Ur(this,"hasPendingUpdates",()=>{const e=this.field("custom_data")||{},t=Pr(tO,this).customData||{};return!!Object.keys(t).find(n=>e[n]!==t[n])}),Mr(this,nO,()=>{if(!Pr(tO,this).license)throw new Error("License required to generate storage key");return`${Pr(tO,this).license}:${lO.api}`}),Ur(this,"_saveRegistration",()=>{const e=this.field("next_registration")||3600,t=(new Date).getTime();"number"!=typeof Date.now()&&console.error("Unexpected type returned for Date.now(), expecting number got "+typeof Date.now()),"number"!=typeof t&&console.error("Unexpected type for getTime() of Date, expecting number got "+typeof t);const n={notification_url:this.field("notification_url"),notification_token:this.field("notification_token"),custom_data:this.field("custom_data"),next_registration_time:t+1e3*e};return this.cache({next_registration_time:n.next_registration_time}),lE(Pr(nO,this).call(this)).setItem(Jb,n),this}),Ur(this,"_loadRegistration",()=>{if(Pr(eO,this))return;Dr(eO,this,!0);const e=lE(Pr(nO,this).call(this)).getItem(Jb);e&&(Kb("restoring registration",e),this.cache(e))}),Ur(this,"updateRegistration",async e=>{if(Pr(qb,this).limit())throw new Error("Cobrowse update rate limit exceeded. Maybe you're updating custom data too often?");return Kb("updating registration"),await this.update({device:lO.info,custom_data:Pr(tO,this).customData},e),Pr(cO,this).call(this),this._saveRegistration(),this.emit("register"),this}),Ur(this,"runRegistrationLoop",async()=>{Kb("starting registrations"),this._loadRegistration(),this.reset(!0),(this.hasPendingUpdates()||this.nextRegistration()<=0)&&await this.updateRegistration().catch(()=>{}),Pr(cO,this).call(this),Pr(rO,this).call(this)}),Ur(this,"pauseRegistrationLoop",async()=>{Kb("pausing registrations"),this.reset(!0)}),Ur(this,"nextRegistration",()=>(this.field("next_registration_time")||0)-(new Date).getTime()),Ur(this,"clone",()=>{const e=new lO(Pr(tO,this));return super.clone(e),e}),Ur(this,"_nextUpdate",(e=0)=>Math.max(Math.min(6e4*e,36e5),this.nextRegistration())),Mr(this,rO,(e=0)=>{if(Pr(Zb,this))return void console.error("CobrowseIO: tried to schedule registration while already scheduled");const t=this._nextUpdate(e);Dr(Zb,this,setTimeout(async()=>{if(!Pr(Zb,this))return console.error("Registration loop cancelled");try{return await this.updateRegistration(),Dr(Zb,this,!1),Pr(rO,this).call(this)}catch(t){return console.warn("CobrowseIO: registration failed",t),Dr(Zb,this,!1),Pr(rO,this).call(this,e+1)}},Math.max(1e3,t)))}),Mr(this,iO,()=>Pb(this.field("notification_url"))),Mr(this,oO,()=>{const e=this.field("notification_token");return[`cbio.http.headers.authorization.bearer.${window.btoa(e).replaceAll("=","")}`]}),Mr(this,sO,()=>{Pr(Xb,this)||(Dr(Xb,this,new Ap({getUrl:Pr(iO,this),getProtocols:Pr(oO,this)})),Pr(Xb,this).setMaxReconnectDelay(6e4),Pr(Xb,this).on("error",e=>{e&&console.warn("CobrowseIO notification socket error:",e)}),Pr(Xb,this).on("event",(e,t)=>{"notification"===e?this.emit("notification",t):"probe"===e&&Pr(Xb,this).send("alive",t)}),Pr(Xb,this).on("open",()=>{Pr(Xb,this).send("filter",{events:["probe","notification"]})}))}),Mr(this,aO,()=>{Pr(Xb,this)&&(console.log("CobrowseIO: Closing socket"),Pr(Xb,this).close(),Dr(Xb,this,null))}),Mr(this,cO,()=>{const e=this.field("notification_url"),t=this.field("notification_token");e&&t?Pr(sO,this).call(this):Pr(aO,this).call(this)}),Kb("constructed"),!e)throw new Error("Device delegate is required");Dr(tO,this,e),Dr(qb,this,new Mb(10,12e4))}id(){return lO.deviceId()}get customData(){return this.field("custom_data")||{}}static deviceCredentials(){let e=lE().getItem($b)||{};return"string"==typeof e&&(e={id:e}),"object"!=typeof e&&(e={}),e.id||(e.id=J_()),e.token||(e.token=J_()),lE().setItem($b,e),e}static deviceId(){return this.deviceCredentials().id}static deviceToken(){return this.deviceCredentials().token}static get info(){const e=[Db,Gb,xb,Ub,Wb,Fb,Vb,zb,jb,Hb,Qb,Yb,"calling"];return/Android|webOS|iPhone|iPad|iPod|Opera Mini/i.test(window.navigator.userAgent)||e.push(Bb),{platform:"web",device:window.navigator.userAgent,device_locale:window.navigator.language,device_timezone:window.Intl.DateTimeFormat().resolvedOptions().timeZone,os_version:window.navigator.platform,app_id:window.location.origin,app_name:window.document.title,app_build_configuration:"release",sdk_version:"3.24.0",capabilities:e}}}const uO=Af("cbio.Session");var hO=new WeakMap,dO=new WeakMap,fO=new WeakMap,pO=new WeakMap,_O=new WeakMap,EO=new WeakMap,vO=new WeakMap,mO=new WeakMap,gO=new WeakMap,IO=new WeakMap,LO=new WeakMap,wO=new WeakMap,CO=new WeakMap;class yO extends Eb{constructor(e){if(super(),Mr(this,hO,void 0),Mr(this,dO,void 0),Mr(this,fO,{}),Mr(this,pO,e=>{this.setHeader("X-CobrowseDeviceToken",e)}),Mr(this,_O,()=>this.getHeader("X-CobrowseDeviceToken")),Ur(this,"activate",()=>(uO("activate session"),this.update({state:"active",device:lO.info,custom_data:Pr(hO,this).customData}))),Ur(this,"end",()=>(uO("end session"),this.update({state:"ended"}))),Ur(this,"code",()=>this.field("code")),Ur(this,"state",()=>this.field("state")),Ur(this,"isActive",()=>"active"===this.state()),Ur(this,"isAuthorizing",()=>"authorizing"===this.state()),Ur(this,"isPending",()=>"pending"===this.state()),Ur(this,"isEnded",()=>"ended"===this.state()),Ur(this,"isVirtual",()=>!!this.field("virtual")),Ur(this,"redactionSelectors",()=>{const e=this.field("redaction_selectors");return Array.isArray(e)?e:[]}),Ur(this,"unredactionSelectors",()=>{const e=this.field("unredaction_selectors");return Array.isArray(e)?e:[]}),Ur(this,"agent",()=>this.field("agent")||!1),Ur(this,"agents",()=>this.field("agents")||[]),Ur(this,"requireConsent",()=>this.field("require_consent")),Ur(this,"endedReason",()=>this.field("ended_reason")),Ur(this,"fullDevice",()=>!0===this.field("full_device")||"on"===this.field("full_device")||"requested"===this.field("full_device")),Ur(this,"setFullDevice",e=>(Pr(dO,this).toggle(["laser","drawing","disappearing_ink","arrows","rectangles","pointer","scroll","select","keypress","cursor"],"on"!==e),this.update({full_device:e}))),Ur(this,"update",e=>super.update(Fr({capabilities:Pr(dO,this).toArray()},e))),Ur(this,"scale",()=>this.field("scale")||.5),Ur(this,"remoteControl",()=>this.field("remote_control")||"on"),Ur(this,"setRemoteControl",e=>this.update({remote_control:e})),Ur(this,"allowRemoteControl",()=>"on"===this.remoteControl()),Ur(this,"calling",()=>this.field("calling")),Ur(this,"setCalling",e=>this.update({calling:e})),Ur(this,"caller",()=>this.field("caller")),Ur(this,"updateResource",e=>{const t=this.isEnded();return super.updateResource(e),this.isEnded()&&!t&&(this.emit("ended",this),this.removeAllListeners()),this}),Ur(this,"clone",()=>{const e=new yO(Pr(hO,this));return super.clone(e),e}),Mr(this,EO,Vy(this,"setMetrics",(e={})=>{Dr(fO,this,Fr(Fr({},Pr(fO,this)),e)),this.emit("metrics.updated",this)})),Mr(this,vO,Vy(this,"serialize",()=>Fr(Fr({},this.resource),{},{_locals:{token:Pr(_O,this).call(this)}}))),Mr(this,mO,Vy(this,"serializeSanitized",()=>({state:this.resource.state,redaction_selectors:this.resource.redaction_selectors}))),Mr(this,gO,Vy(this,"deserialize",e=>{const t=e._locals||{};return delete e._locals,t.token&&Pr(pO,this).call(this,t.token),this.updateResource(e),this})),Mr(this,IO,Vy(this,"compress",()=>`${this.resource.id}:${Pr(_O,this).call(this)}`)),Mr(this,LO,Vy(this,"decompress",e=>{const t=e.split(":");return Pr(gO,this).call(this,{_locals:{token:t[t.length-1]},id:t.slice(0,-1).join(":")}),this})),Mr(this,wO,Vy(this,"proxyToken",()=>this.field("proxy_token"))),Mr(this,CO,Vy(this,"proxyUrl",()=>this.field("proxy_url"))),!e)throw new Error("Session delegate is required");Dr(hO,this,e),Dr(dO,this,new EA(e.capabilities));const t=Math.ceil(Date.now()/36e5);Pr(pO,this).call(this,eE(t+"",lO.deviceToken()))}get capabilities(){const e=this.field("capabilities");return null==e?Pr(dO,this).toArray():Pr(dO,this).toArray().filter(t=>null==e?void 0:e.includes(t))}url(){const e=this.id()||this.code();return new URL("api/1/sessions"+(e?`/${e}`:""),yO.api).toString()}get created(){return new Date(this.field("created"))}get expires(){return new Date(this.field("expires"))}get activated(){return this.field("activated")?new Date(this.field("activated")):null}get updated(){return this.field("updated")?new Date(this.field("updated")):null}get ended(){return this.field("ended")?new Date(this.field("ended")):null}get metrics(){return Pr(fO,this)}}const AO="_cobrowse_active_session",NO=Af("cbio.sessionStorage.ForwardingSessionStorage"),SO=function({window:e=window}={}){try{const t=new URL(e.location.href),n=t.searchParams.get(AO);return n?(NO("found forwarded session that can be loaded",n),t.searchParams.delete(AO),e.history.replaceState({},"",t)):NO("no forwarded session to load",t),n}catch(e){console.warn("Failed to attempt to extract forwarded session",e)}}();var TO=new WeakMap;class bO{constructor({activeSessionData:e=SO}={}){Mr(this,TO,void 0),Dr(TO,this,e)}isSupported(e){const t=!!e.trustedOrigins.length;return NO("isSupported?",t),t}load(e){try{if(Pr(TO,this))return NO("loading session",Pr(TO,this)),new yO(e)[Fy].decompress(Pr(TO,this));NO("no session to load")}catch(e){NO("failed to load forwarded session",e)}return null}store(e,t){t||Dr(TO,this,null)}reset(e){Dr(TO,this,null)}}var OO=new WeakMap,RO=new WeakMap;class kO extends Wy{constructor(e,t){super(),Mr(this,OO,void 0),Mr(this,RO,void 0),Dr(OO,this,Sp(t.trustedOrigins)),Dr(RO,this,()=>e[Fy].compress())}get type(){return Ry}shouldHandleEvent(e){return!0}shouldHandle(e){const t=new URL(e,window.location.origin);return Pr(OO,this).call(this,t.origin)}handle(e){const t=function(e,t,{window:n=window}={}){try{const r=new URL(e);return r.origin===n.location.origin?(NO("not rewriting url because we are not changing origin",r.toString()),e):(r.searchParams.set(AO,t),NO("rewriting trusted url for an active session",{from:e,to:r.toString()}),"string"==typeof e?r.toString():r)}catch(t){return NO("failed rewriting url",t),e}}(e,Pr(RO,this).call(this));return{rewrittenUrl:t}}}const PO=Af("cbio.FrameLoop");class MO{constructor(){Ur(this,"isRunning",()=>this._running),Ur(this,"setSource",async e=>{if(e.constructor!==(this.source&&this.source.constructor))if(this.isRunning()){this.source&&this.source.capturingWillStop(),this.source=e;try{await this.source.capturingWillStart(),this.invalidateFrame()}catch(e){console.error(e)}}else this.source=e;else PO("frame source type not changed")}),Ur(this,"getSource",()=>this.source),Ur(this,"start",async()=>{PO("starting frame loop in",document),this.isRunning()||(this._running=!0,this.source.capturingWillStart())}),Ur(this,"stop",()=>{this.isRunning()&&(this.source.capturingWillStop(),this._running=!1)}),Ur(this,"invalidateFrame",()=>{if(!this.isRunning())throw new Error("FrameLoop was destroyed");PO("invalidate frame in",document),this.source&&this.source.reset()}),Ur(this,"destroy",()=>{PO("destroying frame loop in",document),this.stop(),this.source&&(this.source.destroy(),this.source=null)}),PO("FrameLoop constructed in",document),this._running=!1}}const DO=(e,t,n,r)=>{const i=(e=>e.includes("-")?e.split("-").map((e,t)=>0===t?e.toLowerCase():(e=>e.charAt(0).toUpperCase()+e.slice(1).toLowerCase())(e)).join(""):e)(t),o=Object.getOwnPropertyDescriptor(e,i).get,s=Object.getOwnPropertyDescriptor(e,i).set;Object.defineProperty(e,i,{get:function(){return o.call(this)},set:function(e){const t=r?r(this,null==e?void 0:e.toString()):null==e?void 0:e.toString();return s.call(this,t)}});const{getAttribute:a,setAttribute:c}=e;a&&(e.getAttribute=function(e){return null==e||e.toLowerCase(),t.toLowerCase(),a.apply(this,[e])}),c&&(e.setAttribute=function(e,n){if(e.toLowerCase()===t.toLowerCase()){const t=r?r(this,null==n?void 0:n.toString()):null==n?void 0:n.toString();return c.apply(this,[e,t])}return c.apply(this,[e,n])})},GO=(e,t)=>{try{t()}catch(t){console.warn("CobrowseIO: failed to apply tap",e,t)}};class xO extends td.EventEmitter{constructor(){super(),Ur(this,"windows",new Set),Ur(this,"tap",e=>{if(this.windows.has(e))return;this.windows.add(e);const t=this;GO("history.pushState",()=>{const n=e.history.pushState.bind(e.history);e.history.pushState=function(...r){const i=e.location.href;n(...r),t.emit("navigate",e,i)}}),GO("history.replaceState",()=>{const n=e.history.replaceState.bind(e.history);e.history.replaceState=function(...r){const i=e.location.href;n(...r),t.emit("navigate",e,i)}}),GO("CSSStyleSheet.insertRule",()=>{const{insertRule:n}=e.CSSStyleSheet.prototype;e.CSSStyleSheet.prototype.insertRule=function(...e){const r=n.bind(this)(...e);return t.emit("stylechange",this),r}}),GO("CSSStyleSheet.deleteRule",()=>{const{deleteRule:n}=e.CSSStyleSheet.prototype;e.CSSStyleSheet.prototype.deleteRule=function(...e){const r=n.bind(this)(...e);return t.emit("stylechange",this),r}}),GO("CSSStyleSheet.replace",()=>{const{replace:n}=e.CSSStyleSheet.prototype;e.CSSStyleSheet.prototype.replace=function(...e){const r=n.bind(this)(...e);return t.emit("stylechange",this),r}}),GO("CSSStyleSheet.replaceSync",()=>{const{replaceSync:n}=e.CSSStyleSheet.prototype;e.CSSStyleSheet.prototype.replaceSync=function(...e){const r=n.bind(this)(...e);return t.emit("stylechange",this),r}}),GO("Element.attachShadow",()=>{const{attachShadow:n}=e.Element.prototype;e.Element.prototype.attachShadow=function(e){const r=n.bind(this)(e);return t.emit("attachshadow",r),r}});const n=e=>{Object.getOwnPropertyNames(e.prototype).forEach(n=>{try{if("function"!=typeof e.prototype[n])return}catch(e){return}const r=e.prototype[n];e.prototype[n]=function(){return this.canvas.__cbio_emit_change||(this.canvas.__cbio_emit_change=rf(e=>t.emit("canvaschange",e),500,{leading:!1,trailing:!0})),this.canvas.__cbio_emit_change(this.canvas),r.apply(this,arguments)}})};GO("CanvasRenderingContext2D",()=>n(e.CanvasRenderingContext2D)),GO("WebGLRenderingContext",()=>n(e.WebGLRenderingContext)),e.WebGL2RenderingContext&&GO("WebGL2RenderingContext",()=>n(e.WebGL2RenderingContext)),GO("HTMLSelectElement.value",()=>{DO(e.HTMLSelectElement.prototype,"value",0,(e,n)=>(t.emit("selectchange",e),n))}),GO("HTMLSelectElement.selectedIndex",()=>{DO(e.HTMLSelectElement.prototype,"selectedIndex",0,(e,n)=>(t.emit("selectchange",e),n))}),GO("HTMLOptionElement.selected",()=>{DO(e.HTMLOptionElement.prototype,"selected",0,(e,n)=>{const r=e.closest("select");return r&&t.emit("selectchange",r),n})})}),Ur(this,"untap",()=>{}),this.setMaxListeners(200)}}const UO=new xO;class WO{constructor(e){Ur(this,"_init",()=>{this._propertyWatcher||(this._propertyWatcher=new V_(this._onPropertySet),UO.on("stylechange",this._onStyleSheetChange),UO.on("navigate",this._onNavigation),UO.on("canvaschange",this._onCanvasChange),UO.on("selectchange",this._onSelectChange))}),Ur(this,"observe",e=>{if(this._observing.has(e))return;this._init();const{value:t=e.addEventListener}=Object.getOwnPropertyDescriptor(Rg.prototype,"addEventListener");t.call(e,"scroll",this._onEvent,{capture:!0,passive:!0}),t.call(e,"focus",this._onFocusChange,{capture:!0,passive:!0}),t.call(e,"blur",this._onFocusChange,{capture:!0,passive:!0}),t.call(e,"change",this._onInputEvent,{capture:!0,passive:!0}),t.call(e,"keydown",this._onInputEvent,{capture:!0,passive:!0}),t.call(e,"keyup",this._onInputEvent,{capture:!0,passive:!0}),t.call(e,"keypress",this._onInputEvent,{capture:!0,passive:!0}),t.call(e,"selectionchange",this._onSelectionEvent,{capture:!0,passive:!0}),t.call(e,"select",this._onSelectionEvent,{capture:!0,passive:!0}),t.call(e,"mouseenter",this._onEvent,{capture:!0,passive:!0}),t.call(e,"mouseleave",this._onEvent,{capture:!0,passive:!0}),t.call(e,"mousedown",this._onEvent,{capture:!0,passive:!0}),t.call(e,"mouseup",this._onEvent,{capture:!0,passive:!0}),B_.track(e),DI.track(e),KI.track(e),this._observing.add(e);const n=(e.ownerDocument||e).defaultView;n&&!this._windows.has(n)&&(this._windows.add(n),UO.tap(n),KI.tap(n),this._propertyWatcher.observe(n.HTMLInputElement,"value"),this._propertyWatcher.observe(n.HTMLInputElement,"checked"),this._propertyWatcher.observe(n.HTMLTextAreaElement,"value"),this._propertyWatcher.observe(n.ShadowRoot,"adoptedStyleSheets"),this._propertyWatcher.observe(n.Document,"adoptedStyleSheets"),n.addEventListener&&(n.addEventListener("hashchange",this._onEvent,{capture:!0,passive:!0}),n.addEventListener("resize",this._onEvent,{capture:!0,passive:!0})))}),Ur(this,"disconnect",()=>{this._observing.forEach(e=>{const{value:t=e.removeEventListener}=Object.getOwnPropertyDescriptor(Rg.prototype,"removeEventListener");t.call(e,"scroll",this._onEvent,{capture:!0,passive:!0}),t.call(e,"focus",this._onFocusChange,{capture:!0,passive:!0}),t.call(e,"blur",this._onFocusChange,{capture:!0,passive:!0}),t.call(e,"change",this._onInputEvent,{capture:!0,passive:!0}),t.call(e,"keydown",this._onInputEvent,{capture:!0,passive:!0}),t.call(e,"keyup",this._onInputEvent,{capture:!0,passive:!0}),t.call(e,"keypress",this._onInputEvent,{capture:!0,passive:!0}),t.call(e,"selectionchange",this._onSelectionEvent,{capture:!0,passive:!0}),t.call(e,"select",this._onSelectionEvent,{capture:!0,passive:!0}),t.call(e,"mouseenter",this._onEvent,{capture:!0,passive:!0}),t.call(e,"mouseleave",this._onEvent,{capture:!0,passive:!0}),t.call(e,"mousedown",this._onEvent,{capture:!0,passive:!0}),t.call(e,"mouseup",this._onEvent,{capture:!0,passive:!0}),B_.untrack(e),DI.untrack(e),KI.untrack(e)}),this._observing.clear(),this._windows.forEach(e=>{UO.untap(e),KI.untap(e),e&&!W_(e)&&e.removeEventListener&&(e.removeEventListener("hashchange",this._onEvent,{capture:!0,passive:!0}),e.removeEventListener("resize",this._onEvent,{capture:!0,passive:!0}))}),this._windows.clear(),this._propertyWatcher&&(this._propertyWatcher.disconnect(),this._propertyWatcher=null,UO.off("stylechange",this._onStyleSheetChange),UO.off("navigate",this._onNavigation),UO.off("canvaschange",this._onCanvasChange),UO.off("selectchange",this._onSelectChange))}),Ur(this,"_getActualTarget",e=>{const{get:t}=Object.getOwnPropertyDescriptor(Og.prototype,"target");return t.apply(e)}),Ur(this,"_target",e=>{const t=this._getActualTarget(e);return t&&t.document||t}),Ur(this,"_onEvent",(e,t={})=>{this._onModification(this._target(e),Fr(Fr({},t),{},{type:e.type}))}),Ur(this,"_onSelectionEvent",e=>{var t;const n=this._getActualTarget(e),r=null!==(t=n.ownerDocument)&&void 0!==t?t:n;var i;r.__last_agent_selection_ts>Date.now()-100||("selectionchange"===e.type&&(["INPUT","TEXTAREA"].includes(null===(i=r.activeElement)||void 0===i?void 0:i.tagName)?(r.activeElement.__cobrowse_user_selection_timestamp=Date.now(),this._onModification(r.activeElement,{type:e.type})):(n.__cobrowse_user_selection_timestamp=Date.now(),this._onModification(n,{type:e.type}))),"select"===e.type&&(n.__cobrowse_user_selection_timestamp=Date.now(),this._onModification(n,{type:e.type})))}),Ur(this,"_onStyleSheetChange",e=>{e.ownerNode&&this._onModification(e.ownerNode,{type:"stylesheet"});for(const n of this._observing){var t;null!==(t=n.adoptedStyleSheets)&&void 0!==t&&t.includes(e)&&this._onModification(n,{type:"adoptedstylesheet"})}}),Ur(this,"_onNavigation",e=>{this._onModification(e.document,{type:"navigation"})}),Ur(this,"_onCanvasChange",e=>{this._onModification(e,{type:"canvas"})}),Ur(this,"_onSelectChange",e=>{this._onModification(e,{type:"select",recursive:!0})}),Ur(this,"_onFocusChange",e=>{const t=this._getActualTarget(e);null!=t&&(this._onModification(t,{type:e.type}),t.ownerDocument&&this._onModification(t.ownerDocument,{type:e.type}))}),Ur(this,"_onInputEvent",e=>{const t=this._getActualTarget(e);"SELECT"===t.tagName||"TEXTAREA"===t.tagName?this._onModification(this._target(e),{recursive:!0,type:e.type}):"INPUT"===t.tagName&&("radio"===t.type&&t.name?(t.closest("form")||t.ownerDocument).querySelectorAll(`input[type=radio][name="${t.name}"]`).forEach(t=>this._onModification(t,{type:e.type})):this._onModification(this._target(e),{recursive:!0,type:e.type}))}),Ur(this,"_onPropertySet",e=>{this._onModification(e,{type:"property"})}),this._onModification=(...t)=>setTimeout(()=>e(...t),0),this._observing=new Set,this._windows=new Set}}const FO=Af("cbio.NodeScheduler");var VO=new WeakMap,jO=new WeakMap,zO=new WeakMap,BO=new WeakMap,HO=new WeakMap,QO=new WeakMap,YO=new WeakMap,KO=new WeakMap,$O=new WeakSet,JO=new WeakMap;class XO{constructor(e){xr(this,$O),Mr(this,VO,null),Mr(this,jO,null),Mr(this,zO,null),Mr(this,BO,0),Mr(this,HO,null),Mr(this,QO,new Map),Mr(this,YO,!1),Mr(this,KO,null),Mr(this,JO,()=>{if(!Pr(YO,this))return;if(!Pr(QO,this).size)return void Dr(jO,this,setTimeout(Pr(JO,this),1e3));Pr(zO,this)||(Dr(zO,this,Pr(QO,this).entries()),Dr(BO,this,Pr(QO,this).size),Dr(HO,this,performance.now()));let e=0,t=!1;for(;e<50;){var n;const r=null===(n=Pr(zO,this))||void 0===n?void 0:n.next();if(!r||null!=r&&r.done){t=!0;break}const[i,{checkReady:o,serializerOptions:s}]=r.value;Sr($O,this,eR).call(this,i,o,s),e++}if(!t)return void Dr(VO,this,requestAnimationFrame(Pr(JO,this)));const r=Math.round(performance.now()-Pr(HO,this));FO(`Took ${r}ms to process queue with size of ${Pr(BO,this)}`),Dr(zO,this,null),Dr(BO,this,0),Dr(HO,this,null),Dr(jO,this,setTimeout(Pr(JO,this),Math.max(1e3-r,0)))}),Dr(KO,this,e)}getScheduledAncestor(e){if(Pr(QO,this).has(e))return e;for(const t of Pr(QO,this).keys())if(t.contains(e))return t;return null}tryScheduleElement(e,t,n){return!!Pr(QO,this).has(e)||(Pr(QO,this).size>1e3?(FO("reached queue size limit, skipping scheduling of node"),!1):(Pr(QO,this).set(e,{checkReady:t,serializerOptions:n}),Pr(YO,this)||Sr($O,this,qO).call(this),!0))}unscheduleElement(e){Pr(QO,this).delete(e),Pr(QO,this).size||Sr($O,this,ZO).call(this)}destroy(){FO("destroy()"),Sr($O,this,ZO).call(this),Pr(QO,this).clear()}}function qO(){FO("start()"),Dr(YO,this,!0),Dr(VO,this,requestAnimationFrame(Pr(JO,this)))}function ZO(){FO("stop()"),Dr(YO,this,!1),Pr(VO,this)&&cancelAnimationFrame(Pr(VO,this)),Dr(VO,this,null),Pr(jO,this)&&clearTimeout(Pr(jO,this)),Dr(jO,this,null),Dr(zO,this,null),Dr(BO,this,0),Dr(HO,this,null)}function eR(e,t,n){var r;e.isConnected?t(e)&&(FO("scheduling node to be sent",e),this.unscheduleElement(e),null===(r=Pr(KO,this))||void 0===r||r.call(this,e,n)):Pr(QO,this).delete(e)}function tR(e){return"none"!==getComputedStyle(e).display}const nR=Af("cbio.PatchStream");var rR,iR,oR=new WeakMap;class sR extends td.EventEmitter{constructor(e,t={}){var n;super(),Mr(this,oR,{includeVisibility:!1}),Ur(this,"start",()=>{nR("starting patch stream for",this._root),this._documents=new Set,this._iframeBridge.on("patch",this._onXDocIframeUpdate),performance.mark("cb:patch-stream-observe-start"),this._observe(this._root),performance.mark("cb:patch-stream-observe-end"),performance.measure("cb:patch-stream-observe","cb:patch-stream-observe-start","cb:patch-stream-observe-end"),UO.on("attachshadow",this._onAttachShadow)}),Ur(this,"_serializeWithScheduling",(e,t,n)=>{var r;if(!(r=e)||1!==r.nodeType||!r.isConnected||r.ownerDocument.head.contains(r)||null===r.firstElementChild||tR(e)||!function(e){var t;let n=0;const r=null===(t=e.ownerDocument)||void 0===t?void 0:t.createTreeWalker(e,NodeFilter.SHOW_ELEMENT);if(!r)return!1;for(;r.nextNode();)if(n++,n>5)return!0;return!1}(e))return Zg.serialize(e,t,n);if(!this._nodeScheduler.tryScheduleElement(e,tR,n))return Zg.serialize(e,t,n);const i=Fr(Fr({},n),{},{skipChildren:!0,forceHidden:!0});return t([]),Zg.serialize(e,t,i)}),Ur(this,"partialSync",e=>{const t=Cg.getById(e);t&&this.emit("patch",{_t:"partialsync",modified:[Zg.serialize(t,void 0,Pr(oR,this))]})}),Ur(this,"stop",()=>{nR("stopping patch stream for",this._root),this._eventObserver.disconnect(),this._mutationObserver.disconnect(),this._iframeBridge.removeListener("patch",this._onXDocIframeUpdate),this._documents&&this._documents.clear(),this._documents=null,UO.off("attachshadow",this._onAttachShadow)}),Ur(this,"destroy",()=>{nR("destroying patch stream for",this._root),this.stop(),this.removeAllListeners(),Gg.depthFirst(this._root,this._untrack),this._mutationObserver=null,this._eventObserver=null,this._iframeBridge=null,this._root=null,this._nodeScheduler.destroy(),this._nodeScheduler=null}),Ur(this,"_track",e=>{wg.isDOMNode(e)&&(Cg.track(e),e.nodeType===window.Node.DOCUMENT_NODE&&this._observe(e),e.nodeType===window.Node.DOCUMENT_FRAGMENT_NODE&&this._observe(e),"IFRAME"===e.tagName&&(this._iframeBridge.track(e),e.removeEventListener("load",this._onIframeLoad,{capture:!0}),e.addEventListener("load",this._onIframeLoad,{capture:!0})))}),Ur(this,"_untrack",e=>{Cg.forget(e),wg.isDOMNode(e)&&"IFRAME"===e.tagName&&(e.removeEventListener("load",this._onIframeLoad,{capture:!0}),this._iframeBridge.remove(e))}),Ur(this,"_onAttachShadow",e=>{const t=e.host;Cg.get(t)&&(Wg.isRedacted(t)||(this._observe(e),Gg.isIgnored(t)||this.emit("patch",{_t:"attachshadow",modified:[Zg.serialize(t,void 0,Pr(oR,this)),Gg.depthFirstMapped(e,(e,t)=>Zg.serialize(e,t,Pr(oR,this)))]})))}),Ur(this,"_onXDocIframeUpdate",(e,{iframe:t})=>{nR("xdoc iframe updated",t,e),t&&(Wg.isRedacted(t)||Gg.isIgnored(t)||(t.__document_id=e.document_id,this.emit("patch",{_t:"xdociframeupdate",modified:[Zg.serialize(t,void 0,Pr(oR,this)),...e.patch]})))}),Ur(this,"_onIframeLoad",({target:e})=>{nR("iframe loaded",e),Wg.isRedacted(e)||(W_(e)||this._observe(e.contentWindow.document),this._iframeBridge.track(e),Gg.isIgnored(e)||this.emit("patch",{_t:"iframeupdate",modified:[Gg.depthFirstMapped(e,(e,t)=>Zg.serialize(e,t,Pr(oR,this)))]}))}),Ur(this,"_onEventMutation",(e,t={})=>{if(!this._eventObserver)return;if(this._mutationObserver&&this._onDOMChange(this._mutationObserver.takeRecords()),"TEXTAREA"===e.tagName&&Gg.depthFirst(e,this._track),!Cg.get(e))return;if(Wg.isRedacted(e))return;if(Gg.isIgnored(e))return;const n=Fr(Fr({},Pr(oR,this)),{},{rasterizeCanvas:"canvas"===t.type});this.emit("patch",{_t:`eventmutation:${t.type}`,modified:[(()=>{var r;const i=null===(r=this._nodeScheduler)||void 0===r?void 0:r.getScheduledAncestor(e);i&&this._nodeScheduler.unscheduleElement(i);const o=i||e,s=Boolean(i),a=s||t.recursive?Gg.depthFirstMapped(o,(e,t)=>this._serializeWithScheduling(e,t,n)):Zg.serialize(o,void 0,n);return s&&a.attributes&&void 0===a.attributes.style&&(a.attributes.style=""),a})()]})}),Ur(this,"_getModifications",e=>{const t=new Set,n=new Set,r=new Set;return e.forEach(e=>{("characterData"===e.type||n.has(e.target)||Cg.get(e.target))&&function(e,t,n,r){const i=new Set(e.addedNodes?[].slice.call(e.addedNodes):[]);r.has(e.target)||t.add(e.target);for(const e of i)Gg.depthFirst(e,e=>{t.add(e),r.delete(e),n.add(e)});e.removedNodes&&[].slice.call(e.removedNodes).forEach(e=>{Gg.depthFirst(e,e=>{t.delete(e),n.delete(e),r.add(e)})})}(e,n,r,t)}),t.forEach(e=>this._untrack(e)),n.forEach(e=>this._track(e)),{added:r,modified:n,removed:t}}),Ur(this,"_onDOMChange",e=>{const{added:t,modified:n,removed:r}=this._getModifications(e),i=Wg.notifyChanges(e,t,n,r),o=jg.notifyChanges(e,t,n,r),s=new Map,a=[...n,...i,...o];for(const e of a){var c;const t=null===(c=this._nodeScheduler)||void 0===c?void 0:c.getScheduledAncestor(e);t&&this._nodeScheduler.unscheduleElement(t);const n=t||e,r=Boolean(t)||o.has(e),i=s.get(n);(void 0===i||!i&&r)&&s.set(n,r)}if(0===s.size)return;nR("DOM changed",s);const l=[];for(const[e,t]of s){const n=t?Gg.depthFirstMapped(e,(e,t)=>this._serializeWithScheduling(e,t,Pr(oR,this))):Zg.serialize(e,void 0,Pr(oR,this));n&&(t&&n.attributes&&void 0===n.attributes.style&&(n.attributes.style=""),l.push(n))}nR("DOM changes serialized",l),this.emit("patch",{_t:"domchange",modified:l})}),Ur(this,"_onScheduledNodeReady",(e,t)=>{nR("scheduled element ready",e);const n=Gg.depthFirstMapped(e,(e,n)=>Zg.serialize(e,n,t));this.emit("patch",{_t:"scheduled",modified:[n]})}),this._root=e,Pr(oR,this).includeVisibility=null!==(n=t.includeVisibility)&&void 0!==n&&n,this._mutationObserver=new bg(this._onDOMChange),this._eventObserver=new WO(this._onEventMutation),this._nodeScheduler=new XO(this._onScheduledNodeReady),this._iframeBridge=fM}forceUpdate(){nR("forcing entire state update from",this._root);const e=Fr(Fr({},Pr(oR,this)),{},{rasterizeCanvas:!0});performance.mark("cb:serialize-head-start");const t=Fr(Fr({},Zg.serialize(this._root,void 0,Pr(oR,this))),{},{scroll:void 0,childNodes:[Fr(Fr({},Zg.serialize(this._root.documentElement,void 0,Pr(oR,this))),{},{childNodes:[Gg.depthFirstMapped(this._root.head,(e,t)=>Zg.serialize(e,t,Pr(oR,this)))]})]});performance.mark("cb:serialize-head-end"),performance.measure("cb:serialize-head","cb:serialize-head-start","cb:serialize-head-end"),this.emit("patch",{_t:"pre-force",flush:!0,modified:[t]}),performance.mark("cb:serialize-body-start");const n=Gg.depthFirstMapped(this._root,(t,n)=>this._serializeWithScheduling(t,n,e));performance.mark("cb:serialize-body-end"),performance.measure("cb:serialize-body","cb:serialize-body-start","cb:serialize-body-end"),this.emit("patch",{_t:"forced",flush:!0,modified:[n]})}_observe(e){if(e.nodeType!==window.Node.DOCUMENT_NODE&&e.nodeType!==window.Node.DOCUMENT_FRAGMENT_NODE)throw new Error(`CobrowseIO: observed a non-document or fragment node (type=${e.nodeType})`);if(!this._documents.has(e)){nR("starting observation of",e),this._documents.add(e),nR("doing initial node tracking on observe for",e),Gg.depthFirst(e,this._track),this._eventObserver.observe(e);try{this._mutationObserver.observe(e,{attributes:!0,childList:!0,subtree:!0,characterData:!0})}catch(t){console.error("CobrowseIO failed to start mutation observer for",e)}}}}var aR=(iR||(iR=1,rR=function e(t,n){if(t===n)return!0;if(t&&n&&"object"==typeof t&&"object"==typeof n){if(t.constructor!==n.constructor)return!1;var r,i,o;if(Array.isArray(t)){if((r=t.length)!=n.length)return!1;for(i=r;0!==i--;)if(!e(t[i],n[i]))return!1;return!0}if(t.constructor===RegExp)return t.source===n.source&&t.flags===n.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===n.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===n.toString();if((r=(o=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!==i--;)if(!Object.prototype.hasOwnProperty.call(n,o[i]))return!1;for(i=r;0!==i--;){var s=o[i];if(!e(t[s],n[s]))return!1}return!0}return t!=t&&n!=n}),rR);const cR=t(aR);class lR{constructor(e){this._id=e,this.reset()}_difference(e,t){if(!t)return Fr({},e);const n={};for(const[r,i]of Object.entries(e))cR(i,t[r])||(n[r]=i);return n}compress(){const e=[],t=Object.values(this.modified);for(let n=0;n<t.length;n++){const r=t[n],i=this.state.node(r.id),o=this._difference(r,this._flatten(i||{}));Object.keys(o).length>0&&(o.id=r.id,e.push(o))}return e}mark(){return this.state.applyPatch(Object.values(this.modified)),this.modified={},this}_flatten(e){return e.childNodes?Fr(Fr({},e),{},{childNodes:e.childNodes.map(e=>({id:e.id}))}):e}push(e){if(!e||!e.modified)return console.error("invalid patch",e),this;for(const t of e.modified)t&&P_(t,e=>{this.modified[e.id]=Fr(Fr({},this.modified[e.id]),this._flatten(e))});return this}reset(e){return this.state=new x_(this._id),this.modified={},e&&this.push({_t:"reset",modified:[e]}),this}}const uR=Af("cbio.DOMFrameSource");var hR=new WeakMap;class dR{constructor(e,t={}){Mr(this,hR,{}),Ur(this,"_throttleCompressAndEmitFrame",rf(()=>this._compressAndEmitFrame(),110)),Ur(this,"capturingWillStart",()=>{if(uR("capturingWillStart for DOMFrameSource in",document),this._sendInterval)throw new Error("DOMFrameSource already running");this._compression||(this._compression=new lR(Cg.track(document))),this._patchStream||(this._patchStream=new sR(document,Pr(hR,this))),mE.on("activate",this.reset),this._patchStream.on("patch",e=>{this._compression.push(e),e.flush?this._compressAndEmitFrame():this._throttleCompressAndEmitFrame()}),this._sendInterval=setInterval(()=>this._compressAndEmitFrame(),500),this._patchStream.start()}),Ur(this,"capturingWillStop",()=>{uR("capturingWillStop for DOMFrameSource in",document),mE.removeListener("activate",this.reset),this._sendInterval&&(clearInterval(this._sendInterval),this._sendInterval=null),this._patchStream&&(this._patchStream.destroy(),this._patchStream=null),this._compression&&(this._compression.reset(),this._compression=null)}),Ur(this,"setCodecs",e=>{}),Ur(this,"reset",()=>{uR("resetting DOMFrameSource in",document),setTimeout(()=>{var e,t;null===(e=this._compression)||void 0===e||e.reset(),null===(t=this._patchStream)||void 0===t||t.forceUpdate()},0)}),Ur(this,"destroy",()=>{uR("destroying DOMFrameSource in",document),this.capturingWillStop(),this._onUpdate=null}),Ur(this,"partialSync",e=>{var t;null===(t=this._patchStream)||void 0===t||t.partialSync(e)}),uR("DOMFrameSource constructed in",document),this._onUpdate=e,Dr(hR,this,t)}setOptions(e){Dr(hR,this,e)}_compressAndEmitFrame(){if(!this._compression)return;if(!document||!Cg.get(document))return;const e=this._compression.compress();e.length&&this._onUpdate({document_id:Cg.get(document),patch:e})&&this._compression.mark()}}class fR{constructor(){this.videoTrack={},this.audioTrack={}}}class pR{}Ur(pR,"Error","error"),Ur(pR,"MediaInfo","media-info"),Ur(pR,"MediaPacket","media-packet");const _R=ed(),ER={timerInterval:100,logCallback:null};class vR extends _R{constructor(e,t){super(),this.options=t?Fr(Fr({},ER),t):ER,this.mediaRecorder=e,this.mediaInfo=new fR,this.mediaRecorder.addEventListener("dataavailable",async e=>{this.addBlob(e.data)}),this.mediaRecorder.addEventListener("error",e=>{this.emit(pR.Error,e.error)})}start(){this.mediaRecorder.start(),"function"==typeof this.mediaRecorder.requestData?this.timer=window.setInterval(()=>{this.mediaRecorder.requestData()},this.options.timerInterval):this.timer=window.setTimeout(()=>{this.mediaRecorder.stop()},this.options.timerInterval)}stop(){"recording"===this.mediaRecorder.state&&this.mediaRecorder.stop(),this.timer&&(clearInterval(this.timer),this.timer=null)}static isSupported(e){return"undefined"!=typeof MediaRecorder&&"function"==typeof MediaRecorder.prototype.requestData&&"function"==typeof MediaRecorder.isTypeSupported&&MediaRecorder.isTypeSupported(e)}}class mR{}function gR(e,t){const n=function(e){for(var t=7;t>3;t--)if(e&1<<t)return 8-t;throw Error("invalid ebml element id")}(e.current);if(n>e.bytesAvailable)return!1;let r=e.current;for(var i=0;i<n-1;++i)r=r<<8|e.nextUnsafe();return e.nextUnsafe(),e.checkBounds(),t.id=r,t.idLength=n,!0}Ur(mR,"Ebml",440786851),Ur(mR,"EbmlVersion",17030),Ur(mR,"EbmlReadVersion",17143),Ur(mR,"EbmlMaxIdLength",17138),Ur(mR,"EbmlMaxSizeLength",17139),Ur(mR,"DocType",17026),Ur(mR,"DocTypeVersion",17031),Ur(mR,"DocTypeReadVersion",17029),Ur(mR,"Void",236),Ur(mR,"Segment",408125543),Ur(mR,"SeekHead",290298740),Ur(mR,"Seek",19899),Ur(mR,"SeekID",21419),Ur(mR,"SeekPosition",21420),Ur(mR,"Info",357149030),Ur(mR,"TimestampScale",2807729),Ur(mR,"Duration",17545),Ur(mR,"DateUTC",17505),Ur(mR,"Title",31657),Ur(mR,"MuxingApp",19840),Ur(mR,"WritingApp",22337),Ur(mR,"Cluster",524531317),Ur(mR,"Timestamp",231),Ur(mR,"SimpleBlock",163),Ur(mR,"SegmentUID",29604),Ur(mR,"Tracks",374648427),Ur(mR,"TrackEntry",174),Ur(mR,"TrackNumber",215),Ur(mR,"TrackUID",29637),Ur(mR,"TrackType",131),Ur(mR,"FlagEnabled",185),Ur(mR,"FlagDefault",136),Ur(mR,"FlagForced",21930),Ur(mR,"FlagLacing",156),Ur(mR,"MinCache",28135),Ur(mR,"MaxBlockAdditionID",21998),Ur(mR,"CodecID",134),Ur(mR,"CodecDecodeAll",170),Ur(mR,"SeekPreRoll",22203),Ur(mR,"Video",224),Ur(mR,"FlagInterlaced",154),Ur(mR,"PixelWidth",176),Ur(mR,"PixelHeight",186),Ur(mR,"DefaultDuration",2352003),Ur(mR,"TrackTimestampScale",2306383),Ur(mR,"CodecName",2459272),Ur(mR,"CodecPrivate",25506),Ur(mR,"Audio",225),Ur(mR,"SamplingFrequency",181),Ur(mR,"Channels",159),Ur(mR,"Cues",475249515),Ur(mR,"CuePoint",187),Ur(mR,"CueTime",179),Ur(mR,"CueTrackPositions",183),Ur(mR,"CueTrack",247),Ur(mR,"CueClusterPosition",241),Ur(mR,"CueRefTime",150),Ur(mR,"CueBlockNumber",21368),Ur(mR,"Position",167),Ur(mR,"Colour",21936);class IR{}function LR(e){switch(e){case mR.Segment:case mR.Ebml:case mR.SeekHead:case mR.Seek:case mR.Cluster:case mR.Info:case mR.Tracks:case mR.TrackEntry:case mR.Video:case mR.Audio:case mR.Cues:case mR.CuePoint:case mR.CueTrackPositions:case mR.Colour:return IR.Master;case mR.EbmlVersion:case mR.EbmlReadVersion:case mR.EbmlMaxIdLength:case mR.EbmlMaxSizeLength:case mR.DocTypeVersion:case mR.DocTypeReadVersion:case mR.SeekPosition:case mR.TimestampScale:case mR.Timestamp:case mR.TrackNumber:case mR.TrackUID:case mR.TrackType:case mR.FlagEnabled:case mR.FlagDefault:case mR.FlagForced:case mR.FlagLacing:case mR.MinCache:case mR.MaxBlockAdditionID:case mR.CodecDecodeAll:case mR.SeekPreRoll:case mR.FlagInterlaced:case mR.PixelWidth:case mR.PixelHeight:case mR.DefaultDuration:case mR.Channels:case mR.CueTime:case mR.CueTrack:case mR.CueClusterPosition:case mR.CueRefTime:case mR.CueBlockNumber:case mR.Position:return IR.UnsignedInteger;case mR.DocType:case mR.CodecID:return IR.String;case mR.Void:case mR.SeekID:case mR.SimpleBlock:case mR.SegmentUID:case mR.CodecPrivate:return IR.Binary;case mR.Duration:case mR.TrackTimestampScale:case mR.SamplingFrequency:return IR.Float;case mR.DateUTC:return IR.Date;case mR.Title:case mR.MuxingApp:case mR.WritingApp:case mR.CodecName:return IR.Utf8String;default:throw Error(`cannot determine type of unknown ebml element with id ${e}`)}}function wR(e){let t=0;return e.forEach(e=>{t=t<<8|e}),t}Ur(IR,"Unknown",0),Ur(IR,"Master",1),Ur(IR,"UnsignedInteger",2),Ur(IR,"SignedInteger",3),Ur(IR,"String",4),Ur(IR,"Utf8String",5),Ur(IR,"Binary",6),Ur(IR,"Float",7),Ur(IR,"Date",8);class CR{constructor(){this.array=null,this.current=null,this.offset=0}addArray(e){if(null!=e&&0!=e.length)if(this.bytesToSkip>=e.length)this.bytesToSkip-=e.length;else{if(this.bytesToSkip&&(e=e.slice(this.bytesToSkip)),this.array){let t=new Uint8Array(this.array.length-this.offset+e.length);t.set(this.offset?this.array.slice(this.offset):this.array,0),t.set(e,this.array.length-this.offset),this.array=t,this.offset=0}else this.array=e;this.current=this.array[0]}}checkBounds(){if(this.offset===this.array.length)this.offset=0,this.current=null,this.array=null;else{if(!(this.offset<this.array.length))throw Error(`invalid Uint8ArrayAggregator state, offset (${this.offset}) is larger than bytes in the current array (${this.array.length})`);this.current=this.array[this.offset]}}next(){return this.array?(this.offset++,this.checkBounds(),this.current):null}nextUnsafe(){return this.offset++,this.current=this.array[this.offset],this.current}get bytesAvailable(){return this.array?this.array.length-this.offset:0}trim(){if(this.array)if(this.offset<this.array.length)this.array=this.array.slice(this.offset),this.offset=0,this.current=this.array[0];else{if(this.offset>this.array.length)throw Error(`invalid Uint8ArrayAggregator state, offset (${this.offset}) is larger than bytes in the current array (${this.array.length})`);this.array=null,this.offset=0,this.current=null}}extract(e){if(this.bytesAvailable>=e){const t=this.offset;let n=this.array.slice(t,t+e);return this.offset+=e,this.current=this.array[this.offset],this.checkBounds(),n}return null}skip(e){if(this.bytesAvailable>=e)return this.offset+=e,this.current=this.array[this.offset],void this.checkBounds();e-=this.bytesAvailable,this.array=null,this.offset=0,this.current=null,this.bytesToSkip=e}}class yR{get elementSize(){return this.idLength+this.sizeLength+this.size}get id(){return this._id}set id(e){this._id=e,this.name=function(e){switch(e){case mR.Ebml:return"EBML";case mR.EbmlVersion:return"EBMLVersion";case mR.EbmlReadVersion:return"EBMLReadVersion";case mR.EbmlMaxIdLength:return"EBMLMaxIDLength";case mR.EbmlMaxSizeLength:return"EBMLMaxSizeLength";case mR.DocType:return"DocType";case mR.DocTypeVersion:return"DocTypeVersion";case mR.DocTypeReadVersion:return"DocTypeReadVersion";case mR.Void:return"Void";case mR.Segment:return"Segment";case mR.SeekHead:return"SeekHead";case mR.Seek:return"Seek";case mR.SeekID:return"SeekID";case mR.SeekPosition:return"SeekPosition";case mR.Info:return"Info";case mR.TimestampScale:return"TimestampScale";case mR.Duration:return"Duration";case mR.DateUTC:return"DateUTC";case mR.Title:return"Title";case mR.MuxingApp:return"MuxingApp";case mR.WritingApp:return"WritinApp";case mR.Cluster:return"Cluster";case mR.Timestamp:return"Timestamp";case mR.SimpleBlock:return"SimpleBlock";case mR.SegmentUID:return"SegmentUID (unsupported by WebM)";case mR.Tracks:return"Tracks";case mR.TrackEntry:return"TrackEntry";case mR.TrackNumber:return"TrackNumber";case mR.TrackUID:return"TrackUID";case mR.TrackType:return"TrackType";case mR.FlagEnabled:return"FlagEnabled";case mR.FlagDefault:return"FlagDefault";case mR.FlagForced:return"FlagForced";case mR.FlagLacing:return"FlagLacing";case mR.MinCache:return"MinCache";case mR.MaxBlockAdditionID:return"MaxBlockAdditionID";case mR.CodecID:return"CodecID";case mR.CodecDecodeAll:return"CodecDecodeAll";case mR.SeekPreRoll:return"SeekPreRoll";case mR.Video:return"Video";case mR.FlagInterlaced:return"FlagInterlaced";case mR.PixelWidth:return"PixelWidth";case mR.PixelHeight:return"PixelHeight";case mR.DefaultDuration:return"DefaultDuration";case mR.TrackTimestampScale:return"TrackTimestampScale";case mR.CodecName:return"CodecName";case mR.CodecPrivate:return"CodecPrivate";case mR.Audio:return"Audio";case mR.SamplingFrequency:return"SamplingFrequency";case mR.Channels:return"Channels";case mR.Cues:return"Cues";case mR.CuePoint:return"CuePoint";case mR.CueTime:return"CueTime";case mR.CueTrackPositions:return"CueTrackPositions";case mR.CueTrack:return"CueTrack";case mR.CueClusterPosition:return"CueClusterPosition";case mR.CueRefTime:return"CueRefTime";case mR.CueBlockNumber:return"CueBlockNumber";case mR.Position:return"Position";case mR.Colour:return"Colour";default:return""}}(this._id),this.type=LR(this._id)}}function AR(e,t){const n=function(e){if(1==e)return 8;for(var t=7;t>0;t--)if(e&1<<t)return 8-t;throw Error("invalid ebml element size")}(e.current);if(n>e.bytesAvailable)return!1;let r=e.current-(1<<8-n);for(var i=0;i<n-1;++i)r=r<<8|e.nextUnsafe();return e.nextUnsafe(),e.checkBounds(),t.sizeLength=n,t.size=r===1<<8*n-1?-1:r,!0}function NR(e,t){switch(e){case IR.UnsignedInteger:case IR.SignedInteger:return wR(t);case IR.String:return String.fromCharCode.apply(null,t);case IR.Utf8String:case IR.Float:throw new Error(`cannot read value of element with type ${e}`);case IR.Date:return 978307200+wR(t);case IR.Binary:return t}}class SR{constructor(e,t){this.data=e,this.ptsMs=t}}function TR(){return new Promise(e=>{let t=new FileReader;t.onload=()=>{e(t.result)},t.readAsArrayBuffer(this)})}class bR extends vR{constructor(e,t){super(e,t),this.state=bR.stateParseElementId,this.currentEbmlElement=new yR,this.uint8ArrayAggregator=new CR,this.clusterTimestamp=0,this.timestampMsScale=1,this.ebmlElementStack=[],Blob.prototype.arrayBuffer=Blob.prototype.arrayBuffer||TR}async addBlob(e){try{for(this.uint8ArrayAggregator.addArray(new Uint8Array(await e.arrayBuffer()));this.uint8ArrayAggregator.bytesAvailable;)switch(this.state){case bR.stateParseElementId:if(!gR(this.uint8ArrayAggregator,this.currentEbmlElement))break;null==this.options.logCallback||this.options.logCallback(`got new current ebml element (id: ${this.currentEbmlElement.id}, name: ${this.currentEbmlElement.name})`),this.state=bR.stateParseElementLength;break;case bR.stateParseElementLength:if(!AR(this.uint8ArrayAggregator,this.currentEbmlElement))break;null==this.options.logCallback||this.options.logCallback(`got size ${this.currentEbmlElement.size} for current ebml element (id: ${this.currentEbmlElement.id}, name: ${this.currentEbmlElement.name})`),this.ebmlElementStack.length&&-1==this.currentEbmlElement.size&&(this.ebmlElementStack=[]),this.state=bR.stateParseElementValue;break;case bR.stateParseElementValue:const e=LR(this.currentEbmlElement.id);let n=e!==IR.Master||this.currentEbmlElement.id===mR.Colour;if(e===IR.Master&&-1!==this.currentEbmlElement.size&&this.ebmlElementStack.push({element:Object.assign(new yR,this.currentEbmlElement),bytesRemaining:this.currentEbmlElement.size}),this.currentEbmlElement.id===mR.CodecID){n=!1;let e=this.uint8ArrayAggregator.extract(this.currentEbmlElement.size);if(null==e)break;const t=NR(this.currentEbmlElement.type,e);1===this.currentTrackType?this.mediaInfo.videoTrack.codecName=t:2===this.currentTrackType&&(this.mediaInfo.audioTrack.codecName=t),null==this.options.logCallback||this.options.logCallback(`got codec id ${t}`)}else if(this.currentEbmlElement.id===mR.CodecPrivate){if(n=!1,null==this.uint8ArrayAggregator.extract(this.currentEbmlElement.size))break}else if(this.currentEbmlElement.id===mR.TimestampScale){n=!1;let e=this.uint8ArrayAggregator.extract(this.currentEbmlElement.size);if(null==e)break;this.mediaInfo.timestampScale=NR(this.currentEbmlElement.type,e),this.timestampMsScale=this.mediaInfo.timestampScale/1e6,null==this.options.logCallback||this.options.logCallback(`got timestamp scale ${this.mediaInfo.timestampScale}`)}else if(this.currentEbmlElement.id===mR.Timestamp){n=!1;let e=this.uint8ArrayAggregator.extract(this.currentEbmlElement.size);if(null==e)break;this.clusterTimestamp=NR(this.currentEbmlElement.type,e),null==this.options.logCallback||this.options.logCallback(`got cluser timestamp ${this.clusterTimestamp}`)}else if(this.currentEbmlElement.id===mR.TrackType){n=!1;let e=this.uint8ArrayAggregator.extract(this.currentEbmlElement.size);if(null==e)break;this.currentTrackType=NR(this.currentEbmlElement.type,e),null==this.options.logCallback||this.options.logCallback(`got track with type ${this.currentTrackType}`)}else if(this.currentEbmlElement.id===mR.SimpleBlock){n=!1;let e=this.uint8ArrayAggregator.extract(this.currentEbmlElement.size);if(null==e)break;let t=new CR;t.addArray(e);let r={};AR(t,r),r.size;let i=wR(t.extract(2));t.current,t.next(),t.trim();let o=(this.clusterTimestamp+i)*this.timestampMsScale;this.emit(pR.MediaPacket,new SR(t.array,o))}if(n&&this.uint8ArrayAggregator.skip(this.currentEbmlElement.size),e!==IR.Master&&this.ebmlElementStack.length){this.ebmlElementStack[this.ebmlElementStack.length-1].bytesRemaining-=this.currentEbmlElement.elementSize;do{if(0!==this.ebmlElementStack[this.ebmlElementStack.length-1].bytesRemaining)break;var t=this.ebmlElementStack.pop();this.ebmlElementStack.length&&(this.ebmlElementStack[this.ebmlElementStack.length-1].bytesRemaining-=t.element.elementSize),t.element.id===mR.Tracks&&this.emit(pR.MediaInfo,this.mediaInfo)}while(this.ebmlElementStack.length)}this.state=bR.stateParseElementId}this.uint8ArrayAggregator.trim()}catch(e){this.stop(),this.emit(pR.Error,e)}}}Ur(bR,"stateParseElementId",1),Ur(bR,"stateParseElementLength",2),Ur(bR,"stateParseElementValue",3);const OR=Af("cbio.H264Encoder");var RR=new WeakMap,kR=new WeakMap,PR=new WeakMap,MR=new WeakMap;class DR{constructor(e,t){if(Mr(this,RR,void 0),Mr(this,kR,void 0),Mr(this,PR,void 0),Mr(this,MR,[]),Ur(this,"reset",()=>{OR("resetting H264Encoder"),Pr(MR,this).forEach(e=>{Pr(RR,this).handleFrame(e,DR.MIME_TYPE,1/0)})}),Ur(this,"destroy",()=>{OR("destroy H264Encoder"),Pr(PR,this)&&(Pr(PR,this).stop(),Dr(PR,this,null)),Dr(MR,this,null)}),OR("H264Encoder constructed"),Dr(RR,this,t),Dr(kR,this,e),Dr(PR,this,function(e){let t;return 0==("undefined"!=typeof MediaRecorder)?null:((0==("function"==typeof MediaRecorder.isTypeSupported)||MediaRecorder.isTypeSupported("video/webm;codecs=h264"))&&(t=new bR(new MediaRecorder(e,{mimeType:"video/webm;codecs=h264"}),void 0)),t)}(e)),!Pr(PR,this))throw new Error("Failed to create MediaRecorderDemuxer");return Pr(PR,this).on("media-packet",({data:e})=>{if(null===Pr(PR,this))return;let t;0===e[0]&&0===e[1]&&0===e[2]&&1===e[3]?t=e[4]:0===e[0]&&0===e[1]&&1===e[2]&&(t=e[3]),7==(31&t)&&Dr(MR,this,[]),Pr(MR,this).push(e),Pr(RR,this).handleFrame(e,DR.MIME_TYPE,1/0)}),Pr(PR,this).start()}static isSupported(){return vR.isSupported("video/webm;codecs=h264")}}Ur(DR,"MIME_TYPE","video/avc");const GR=Af("cbio.JPEGEncoder");var xR=new WeakMap,UR=new WeakMap,WR=new WeakMap,FR=new WeakMap,VR=new WeakMap;class jR{constructor(e,t){Mr(this,xR,void 0),Mr(this,UR,void 0),Mr(this,WR,void 0),Mr(this,FR,void 0),Mr(this,VR,()=>{if(!Pr(WR,this))return;const e=Pr(WR,this).scale();Pr(UR,this).width=Pr(xR,this).videoWidth*e,Pr(UR,this).height=Pr(xR,this).videoHeight*e,Pr(UR,this).getContext("2d").drawImage(Pr(xR,this),0,0,Pr(UR,this).width,Pr(UR,this).height),Pr(UR,this).toBlob(async e=>{if(!Pr(WR,this))return;const t=new Uint8Array(await new Response(e).arrayBuffer());Pr(WR,this).handleFrame(t,jR.MIME_TYPE,1)},jR.MIME_TYPE,.5)}),Ur(this,"reset",()=>{}),Ur(this,"destroy",()=>{GR("destroy JPEGEncoder"),Pr(FR,this)&&(clearInterval(Pr(FR,this)),Dr(FR,this,null)),Dr(WR,this,null),Dr(xR,this,null),Dr(UR,this,null)}),GR("JPEGEncoder constructed"),Dr(WR,this,t),Dr(xR,this,document.createElement("video")),Dr(UR,this,document.createElement("canvas")),Pr(xR,this).srcObject=e,Pr(xR,this).play(),Dr(FR,this,setInterval(Pr(VR,this),100))}}Ur(jR,"MIME_TYPE","image/jpeg");const zR=Af("cbio.MediaStreamFrameSource");var BR=new WeakMap,HR=new WeakMap,QR=new WeakMap,YR=new WeakMap,KR=new WeakMap,$R=new WeakMap,JR=new WeakMap;class XR{constructor(e){Mr(this,BR,void 0),Mr(this,HR,void 0),Mr(this,QR,void 0),Mr(this,YR,null),Mr(this,KR,[]),Mr(this,$R,()=>Pr(KR,this).length&&!Pr(KR,this).includes(DR.MIME_TYPE)||!DR.isSupported()?jR:DR),Mr(this,JR,async e=>{const t=Pr($R,this).call(this);var n;return Pr(YR,this)instanceof t||(zR("Changing encoder to",t),null===(n=Pr(YR,this))||void 0===n||n.destroy(),Dr(YR,this,new t(e,Pr(QR,this)))),Pr(YR,this)}),Ur(this,"setCodecs",e=>{Dr(KR,this,e||[]),Pr(HR,this)&&Pr(JR,this).call(this,Pr(HR,this))}),Ur(this,"capturingWillStart",async()=>{zR("capturingWillStart for MediaStreamFrameSource");const e=await Pr(QR,this).requestPermission();if(e)try{if(e instanceof MediaStream?Dr(HR,this,e):Dr(HR,this,await navigator.mediaDevices.getDisplayMedia({video:{cursor:"always",width:{ideal:1400},height:{ideal:1e3},frameRate:{max:10}},audio:!1,selfBrowserSurface:"include"})),[zr(Dr,[BR,this])._]=Pr(HR,this).getVideoTracks(),!Pr(BR,this))throw new Error("failed to get display media track");Pr(BR,this).onended=()=>{zR("track ended"),Dr(BR,this,null),Pr(QR,this).captureEnded(),this.destroy()},Pr(JR,this).call(this,Pr(HR,this)),Pr(QR,this).captureStarted(Pr(HR,this))}catch(e){Pr(QR,this).captureEnded(e)}}),Ur(this,"capturingWillStop",()=>{var e;zR("capturingWillStop for MediaStreamFrameSource"),null===(e=Pr(YR,this))||void 0===e||e.destroy(),Dr(YR,this,null),Dr(HR,this,null),Pr(BR,this)&&(Pr(BR,this).stop(),Dr(BR,this,null),Pr(QR,this).captureEnded())}),Ur(this,"reset",()=>{var e;zR("resetting MediaStreamFrameSource"),null===(e=Pr(YR,this))||void 0===e||e.reset()}),Ur(this,"destroy",()=>{var e;zR("destroying MediaStreamFrameSource"),this.capturingWillStop(),Dr(QR,this,null),null===(e=Pr(YR,this))||void 0===e||e.destroy(),Dr(YR,this,null)}),zR("MediaStreamFrameSource constructed"),Dr(QR,this,e)}}const qR=new class{constructor(){Ur(this,"proxify",e=>e),Ur(this,"unproxify",e=>e),Ur(this,"inUniversalProxy",!1)}},ZR=["true","yes",void 0],ek=["false","no"];var tk=new WeakMap,nk=new WeakMap,rk=new WeakMap;class ik extends nd{constructor(e){super(),Mr(this,tk,void 0),Mr(this,nk,void 0),Mr(this,rk,e=>{e.url!==Pr(nk,this)&&(Dr(nk,this,e.url),this.emit("load",new Event("load")))}),Dr(tk,this,e),Pr(tk,this).on("updated",Pr(rk,this))}get closed(){return Pr(tk,this).isClosed}get location(){return new URL(Pr(tk,this).url)}close(){Pr(tk,this).close()}addEventListener(e,t,n){null!=n&&n.once?this.once(e,t):this.on(e,t)}removeEventListener(e,t){this.off(e,t)}}var ok=new WeakMap,sk=new WeakMap,ak=new WeakMap,ck=new WeakMap,lk=new WeakMap,uk=new WeakMap,hk=new WeakMap,dk=new WeakMap,fk=new WeakMap,pk=new WeakMap;class _k extends nd{constructor(...e){super(...e),Mr(this,ok,void 0),Mr(this,sk,void 0),Mr(this,ak,void 0),Mr(this,ck,void 0),Mr(this,lk,void 0),Mr(this,uk,void 0),Mr(this,hk,void 0),Mr(this,dk,void 0),Mr(this,fk,!1),Mr(this,pk,void 0),Ur(this,"load",(e,t,n,{element:r,type:i}={})=>{Dr(sk,this,e);const o=(e=>"string"!=typeof e?{}:e.toLowerCase().split(",").reduce((e,t)=>{const[n,r]=t.split("=");return e[n]=ZR.indexOf(r)>=0||!(ek.indexOf(r)>=0)&&r,e},{}))(n);Dr(ok,this,o.popup?"_blank":t),Dr(ak,this,r),Dr(ck,this,i),Dr(lk,this,""),Dr(uk,this,""),Dr(hk,this,!0),Dr(dk,this,!1),this.emit("updated",this)}),Ur(this,"close",()=>{Pr(fk,this)||(Dr(fk,this,!0),this.emit("closed",this))}),Ur(this,"serialize",()=>({url:this.url,icon:this.icon,title:this.title,isLoading:this.isLoading,isBlocked:this.isBlocked,isClosed:this.isClosed}))}get target(){return Pr(ok,this)}get url(){return Pr(sk,this)}set url(e){this.url!==e&&(Dr(sk,this,e),this.emit("updated",this))}get element(){return Pr(ak,this)}get type(){return Pr(ck,this)}get icon(){return Pr(lk,this)}set icon(e){Pr(lk,this)!==e&&(Dr(lk,this,e),this.emit("updated",this))}get title(){return Pr(uk,this)}set title(e){Pr(uk,this)!==e&&(Dr(uk,this,e),this.emit("updated",this))}get isLoading(){return Pr(hk,this)}set isLoading(e){Pr(hk,this)!==e&&(Dr(hk,this,e),this.emit("updated",this))}get isBlocked(){return Pr(dk,this)}set isBlocked(e){Pr(dk,this)!==e&&(Dr(dk,this,e),this.emit("updated",this))}get isClosed(){return Pr(fk,this)}get windowProxy(){return Pr(pk,this)||Dr(pk,this,new ik(this)),Pr(pk,this)}}var Ek=new WeakMap,vk=new WeakMap,mk=new WeakMap,gk=new WeakMap,Ik=new WeakMap,Lk=new WeakMap,wk=new WeakMap,Ck=new WeakMap;class yk{constructor({onDocumentAdded:e}){Mr(this,Ek,new Map),Mr(this,vk,new Map),Mr(this,mk,new Map),Mr(this,gk,new Map),Mr(this,Ik,void 0),Mr(this,Lk,({handle:e,document:t},{trusted:n})=>{if(!n)return;const r=this.getDocumentByHandle(e);r&&!r.isClosed&&t.isClosed&&r.close(!0)}),Mr(this,wk,e=>{const t=Pr(vk,this).get(e);Pr(Ek,this).delete(t),Pr(vk,this).delete(e);const n=Pr(gk,this).get(t);Pr(gk,this).delete(t),n&&Pr(mk,this).delete(n)}),Mr(this,Ck,(e,t)=>{const n=()=>{const n={handle:e,document:t.serialize()};t.element?fM.broadcastToChildren("document",n):fM.sendToParent("document",n)};t.on("updated",n),n(),t.once("closed",()=>{t.off("updated",n),n(),Pr(wk,this).call(this,t)})}),Ur(this,"addDocument",(e,t,n)=>{var r;Pr(Ek,this).has(e)||n.isClosed||(Pr(Ek,this).set(e,n),Pr(vk,this).set(n,e),t&&(Pr(mk,this).set(t,e),Pr(gk,this).set(e,t)),Pr(Ck,this).call(this,e,n),null===(r=Pr(Ik,this))||void 0===r||r.call(this,n))}),Ur(this,"closeAllDocuments",()=>{for(const[,e]of Pr(Ek,this))e.close(),Pr(wk,this).call(this,e)}),Ur(this,"getDocumentByHandle",e=>Pr(Ek,this).get(e)),Ur(this,"resolveDocumentHandle",e=>Pr(mk,this).get(e)||J_()),Ur(this,"resolveDocument",(e,t)=>{const n=e||this.resolveDocumentHandle(t);return{handle:n,document:this.getDocumentByHandle(n)||new _k}}),Ur(this,"destroy",()=>{fM.off("document",Pr(Lk,this))}),Dr(Ik,this,e),fM.on("document",Pr(Lk,this))}}var Ak=new WeakMap,Nk=new WeakMap;class Sk{constructor(e){Mr(this,Ak,void 0),Mr(this,Nk,()=>{const e=qR.unproxify(window.location.href),t=new URL((()=>{const e=document.querySelectorAll('link[rel="icon"]');return e.length>0?e[0].href:"/favicon.ico"})(),e).href;Pr(Ak,this).call(this,{url:e,icon:qR.proxify(t),title:document.title,isLoading:"complete"!==document.readyState,isBlocked:!1})}),Ur(this,"sendLoading",e=>{Pr(Ak,this).call(this,{url:e,icon:"",title:"",isLoading:!0,isBlocked:!1})}),Ur(this,"sendBlocked",e=>{Pr(Ak,this).call(this,{url:e,icon:"",title:"",isLoading:!1,isBlocked:!0})}),Ur(this,"destroy",()=>{UO.off("navigate",Pr(Nk,this)),window.removeEventListener("popstate",Pr(Nk,this),{capture:!0}),document.removeEventListener("readystatechange",Pr(Nk,this),{capture:!0})}),Dr(Ak,this,e),UO.on("navigate",Pr(Nk,this)),window.addEventListener("popstate",Pr(Nk,this),{capture:!0}),document.addEventListener("readystatechange",Pr(Nk,this),{capture:!0}),Pr(Nk,this).call(this)}}var Tk,bk,Ok={};!function(){if(Tk)return Ok;Tk=1;var e=hr(),t=oI(),n=rt(),r=_n(),i=dn(),o=yu();e({target:"Array",proto:!0},{flat:function(){var e=arguments.length?arguments[0]:void 0,s=n(this),a=r(s),c=o(s,0);return c.length=t(c,s,s,a,0,void 0===e?1:i(e)),c}})}(),bk||(bk=1,Qh()("flat"));const Rk=()=>qR.unproxify(window.location.href),kk=(e,t)=>{if(!e)return e;const n=e.map(e=>"string"==typeof e?e:"object"==typeof e?Object.entries(e).filter(([e])=>Sp([e])(t)).map(([e,t])=>t):null).filter(Boolean).flat(2);return[...new Set(n)]},Pk=e=>{const t=Rk();return kk(e,t)},Mk=(e,t)=>{if(!e)return!1;if(!t)return!0;const n=kk(e,t),r=kk(e,Rk());if(n.length!==r.length)return!0;const i=[...n].sort(),o=[...r].sort();return!i.every((e,t)=>e===o[t])};var Dk=new WeakMap,Gk=new WeakMap,xk=new WeakMap,Uk=new WeakMap,Wk=new WeakMap,Fk=new WeakMap,Vk=new WeakMap,jk=new WeakMap,zk=new WeakMap,Bk=new WeakMap,Hk=new WeakMap,Qk=new WeakMap,Yk=new WeakMap,Kk=new WeakMap,$k=new WeakMap,Jk=new WeakMap,Xk=new WeakMap,qk=new WeakMap,Zk=new WeakMap,eP=new WeakMap;class tP{constructor(e,t,n){Mr(this,Dk,void 0),Mr(this,Gk,void 0),Mr(this,xk,void 0),Mr(this,Uk,void 0),Mr(this,Wk,void 0),Mr(this,Fk,void 0),Mr(this,Vk,void 0),Mr(this,jk,e=>{var t;return!(null===(t=Pr(Dk,this))||void 0===t||!t.isActive()||!Pr(Dk,this)[Fy].proxyToken())}),Ur(this,"handleNavigation",(e,t,n,r)=>{const{name:i,go:o,e:s,type:a,block:c}=r,{handle:l,document:u}=Pr(Wk,this).resolveDocument(r.handle,i),{windowProxy:h}=u,d=(s.view||window)!==window,f=!t||"_self"===t,p={url:e,target:t,windowFeatures:n,type:a,nav:{block:()=>(s.eventPhase===Event.CAPTURING_PHASE||(c(),d||Pr(Fk,this).sendBlocked(e)),{windowProxy:h}),parent:r=>(u.load(e,t,n,{type:r||a}),s.eventPhase===Event.CAPTURING_PHASE||(Pr(Wk,this).addDocument(l,i,u),Pr(Gk,this).open(e,t,n,{type:r||a,handle:l})),{windowProxy:h}),continue:()=>{const r=Pr(Vk,this).runHandler(e,t,n,{type:a,document:u});return r.rewrittenUrl?{rewrittenUrl:r.rewrittenUrl}:(r.document&&Pr(Wk,this).addDocument(l,i,r.document),{windowProxy:h})},replay:()=>o()},getConsent:()=>Pr(Gk,this).confirmOpen(e,a),windowProxy:h,setLoading:()=>!d&&f&&Pr(Fk,this).sendLoading(e)};return(qR.inUniversalProxy?Pr(Bk,this):Pr(zk,this))(p)}),Mr(this,zk,({target:e,type:t,nav:n,getConsent:r,windowProxy:i})=>t?t===Ry?n.continue():Pr(jk,this).call(this,t)?(r().then(({accepted:t})=>t?"_blank"===e?n.parent():void n.continue():n.replay()),{windowProxy:i}):n.continue():n.continue()),Mr(this,Bk,({url:e,target:t,type:n,nav:r,getConsent:i,windowProxy:o,setLoading:s})=>{const a=new URL(qR.unproxify(window.location.href)).origin,c=a!==new URL(e,a).origin;return n?c?Pr(jk,this).call(this,n)?(i().then(({accepted:e})=>e?"_blank"===t?r.parent():n===Oy?r.continue():(s(),void r.replay()):r.block()),{windowProxy:o}):r.continue():"_blank"===t?r.parent():n===Oy?r.continue():(s(),{rewrittenUrl:e}):"_blank"===t?r.parent(ky):r.block()}),Mr(this,Hk,e=>{Pr(Jk,this).call(this,e),e.isActive()&&!Pr(Uk,this)&&Pr(Yk,this).call(this)}),Mr(this,Qk,()=>{Pr(Kk,this).call(this),Pr(Wk,this)&&Pr(Wk,this).closeAllDocuments()}),Mr(this,Yk,()=>{var e;null!==(e=Pr(Uk,this))&&void 0!==e&&e.isRunning()||(Dr(Uk,this,new MO),Pr(Uk,this).setSource(new dR(e=>(Pr(xk,this).call(this,"patch",e),!0))),Pr(Uk,this).start(),Pr(Uk,this).invalidateFrame())}),Mr(this,Kk,()=>{Pr(Uk,this)&&Pr(Uk,this).destroy(),Dr(Uk,this,null)}),Mr(this,$k,(e,t)=>{Pr(Jk,this).call(this,Pr(Dk,this)),Pr(Xk,this).call(this),Pr(qk,this).call(this),(Mk(Pr(Gk,this).redactedViews,t)||Mk(Pr(Gk,this).unredactedViews,t)||Mk(Pr(Dk,this).redactionSelectors(),t)||Mk(Pr(Dk,this).unredactionSelectors(),t))&&setTimeout(()=>{this.invalidateFrame()},0)}),Ur(this,"invalidateFrame",()=>{var e;null!==(e=Pr(Uk,this))&&void 0!==e&&e.isRunning()&&Pr(Uk,this).invalidateFrame()}),Ur(this,"partialSync",async e=>{var t;if(null===(t=Pr(Uk,this))||void 0===t||!t.isRunning())return;const n=Pr(Uk,this).getSource();n instanceof dR&&(await $g(e),n.partialSync(e))}),Mr(this,Jk,e=>{var t,n;const r=null!==(t=Pr(Gk,this).redactedViews)&&void 0!==t?t:[],i=null!==(n=Pr(Gk,this).unredactedViews)&&void 0!==n?n:[],o=[...r,...e.redactionSelectors()],s=[...i,...e.unredactionSelectors()];Wg.init(new hI(Pk(o),Pk(s)))}),Mr(this,Xk,()=>{Gg.setIgnoredViews(Pk(Pr(Gk,this).ignoredViews))}),Mr(this,qk,()=>{jg.init(new hI(Pk(Pr(Gk,this).disabledViews),Pk(Pr(Gk,this).enabledViews)))}),Mr(this,Zk,e=>Pr(xk,this).call(this,"click",e)),Mr(this,eP,e=>Pr(xk,this).call(this,"change",e)),Ur(this,"destroy",()=>{Pr(Dk,this)&&(Pr(Dk,this).removeListener("update",Pr(Hk,this)),Pr(Dk,this).removeListener("ended",Pr(Qk,this))),Dr(Dk,this,null),Pr(Vk,this)&&Pr(Vk,this).destroy(),Dr(Vk,this,null),UO.off("navigate",Pr($k,this)),DI.off("click",Pr(Zk,this)),DI.off("change",Pr(eP,this)),Pr(Fk,this)&&Pr(Fk,this).destroy(),Dr(Fk,this,null),Pr(Wk,this)&&Pr(Wk,this).destroy(),Dr(Wk,this,null)}),Dr(Dk,this,e),Dr(Gk,this,t),Dr(xk,this,n),Pr(Hk,this).call(this,e),e.on("updated",Pr(Hk,this)),e.on("ended",Pr(Qk,this)),qR.inUniversalProxy&&Dr(Fk,this,new Sk(e=>Pr(xk,this).call(this,"document",{document:e}))),Dr(Wk,this,new yk({onDocumentAdded:e=>{e.element&&Pr(Gk,this).showDocument(e)}}));const r=new rA(e,t),i=new dA(e,t),o=new kO(e,t);Dr(Vk,this,new Uy({shouldNavigate:Pr(jk,this),handlers:[r,i,o],handleNavigation:this.handleNavigation})),UO.on("navigate",Pr($k,this)),DI.on("click",Pr(Zk,this)),DI.on("change",Pr(eP,this)),Pr(Xk,this).call(this),Pr(qk,this).call(this)}navigate(e,t,{type:n}){const r=Pr(Vk,this).navigate(e,t,{type:n});if("string"==typeof r)return window.open(r,t)}}const nP=Af("cbio.iframes.trust"),{entries:rP,setPrototypeOf:iP,isFrozen:oP,getPrototypeOf:sP,getOwnPropertyDescriptor:aP}=Object;let{freeze:cP,seal:lP,create:uP}=Object,{apply:hP,construct:dP}="undefined"!=typeof Reflect&&Reflect;cP||(cP=function(e){return e}),lP||(lP=function(e){return e}),hP||(hP=function(e,t){for(var n=arguments.length,r=new Array(n>2?n-2:0),i=2;i<n;i++)r[i-2]=arguments[i];return e.apply(t,r)}),dP||(dP=function(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return new e(...n)});const fP=TP(Array.prototype.forEach),pP=TP(Array.prototype.lastIndexOf),_P=TP(Array.prototype.pop),EP=TP(Array.prototype.push),vP=TP(Array.prototype.splice),mP=TP(String.prototype.toLowerCase),gP=TP(String.prototype.toString),IP=TP(String.prototype.match),LP=TP(String.prototype.replace),wP=TP(String.prototype.indexOf),CP=TP(String.prototype.trim),yP=TP(Object.prototype.hasOwnProperty),AP=TP(RegExp.prototype.test),NP=(SP=TypeError,function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return dP(SP,t)});var SP;function TP(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var n=arguments.length,r=new Array(n>1?n-1:0),i=1;i<n;i++)r[i-1]=arguments[i];return hP(e,t,r)}}function bP(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:mP;iP&&iP(e,null);let r=t.length;for(;r--;){let i=t[r];if("string"==typeof i){const e=n(i);e!==i&&(oP(t)||(t[r]=e),i=e)}e[i]=!0}return e}function OP(e){for(let t=0;t<e.length;t++)yP(e,t)||(e[t]=null);return e}function RP(e){const t=uP(null);for(const[n,r]of rP(e))yP(e,n)&&(Array.isArray(r)?t[n]=OP(r):r&&"object"==typeof r&&r.constructor===Object?t[n]=RP(r):t[n]=r);return t}function kP(e,t){for(;null!==e;){const n=aP(e,t);if(n){if(n.get)return TP(n.get);if("function"==typeof n.value)return TP(n.value)}e=sP(e)}return function(){return null}}const PP=cP(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","search","section","select","shadow","slot","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),MP=cP(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","enterkeyhint","exportparts","filter","font","g","glyph","glyphref","hkern","image","inputmode","line","lineargradient","marker","mask","metadata","mpath","part","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),DP=cP(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),GP=cP(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),xP=cP(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),UP=cP(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),WP=cP(["#text"]),FP=cP(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","exportparts","face","for","headers","height","hidden","high","href","hreflang","id","inert","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","part","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","slot","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),VP=cP(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","mask-type","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),jP=cP(["accent","accentunder","align","bevelled","close","columnalign","columnlines","columnspacing","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lquote","lspace","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),zP=cP(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),BP=lP(/\{\{[\w\W]*|[\w\W]*\}\}/gm),HP=lP(/<%[\w\W]*|[\w\W]*%>/gm),QP=lP(/\$\{[\w\W]*/gm),YP=lP(/^data-[\-\w.\u00B7-\uFFFF]+$/),KP=lP(/^aria-[\-\w]+$/),$P=lP(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),JP=lP(/^(?:\w+script|data):/i),XP=lP(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),qP=lP(/^html$/i),ZP=lP(/^[a-z][.\w]*(-[.\w]+)+$/i);var eM=Object.freeze({__proto__:null,ARIA_ATTR:KP,ATTR_WHITESPACE:XP,CUSTOM_ELEMENT:ZP,DATA_ATTR:YP,DOCTYPE_NAME:qP,ERB_EXPR:HP,IS_ALLOWED_URI:$P,IS_SCRIPT_OR_DATA:JP,MUSTACHE_EXPR:BP,TMPLIT_EXPR:QP});const tM=function(){return"undefined"==typeof window?null:window};var nM=function e(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:tM();const n=t=>e(t);if(n.version="3.4.0",n.removed=[],!t||!t.document||9!==t.document.nodeType||!t.Element)return n.isSupported=!1,n;let{document:r}=t;const i=r,o=i.currentScript,{DocumentFragment:s,HTMLTemplateElement:a,Node:c,Element:l,NodeFilter:u,NamedNodeMap:h=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:f,trustedTypes:p}=t,_=l.prototype,E=kP(_,"cloneNode"),v=kP(_,"remove"),m=kP(_,"nextSibling"),g=kP(_,"childNodes"),I=kP(_,"parentNode");if("function"==typeof a){const e=r.createElement("template");e.content&&e.content.ownerDocument&&(r=e.content.ownerDocument)}let L,w="";const{implementation:C,createNodeIterator:y,createDocumentFragment:A,getElementsByTagName:N}=r,{importNode:S}=i;let T={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]};n.isSupported="function"==typeof rP&&"function"==typeof I&&C&&void 0!==C.createHTMLDocument;const{MUSTACHE_EXPR:b,ERB_EXPR:O,TMPLIT_EXPR:R,DATA_ATTR:k,ARIA_ATTR:P,IS_SCRIPT_OR_DATA:M,ATTR_WHITESPACE:D,CUSTOM_ELEMENT:G}=eM;let{IS_ALLOWED_URI:x}=eM,U=null;const W=bP({},[...PP,...MP,...DP,...xP,...WP]);let F=null;const V=bP({},[...FP,...VP,...jP,...zP]);let j=Object.seal(uP(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),z=null,B=null;const H=Object.seal(uP(null,{tagCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeCheck:{writable:!0,configurable:!1,enumerable:!0,value:null}}));let Q=!0,Y=!0,K=!1,$=!0,J=!1,X=!0,q=!1,Z=!1,ee=!1,te=!1,ne=!1,re=!1,ie=!0,oe=!1,se=!0,ae=!1,ce={},le=null;const ue=bP({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]);let he=null;const de=bP({},["audio","video","img","source","image","track"]);let fe=null;const pe=bP({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),_e="http://www.w3.org/1998/Math/MathML",Ee="http://www.w3.org/2000/svg",ve="http://www.w3.org/1999/xhtml";let me=ve,ge=!1,Ie=null;const Le=bP({},[_e,Ee,ve],gP);let we=bP({},["mi","mo","mn","ms","mtext"]),Ce=bP({},["annotation-xml"]);const ye=bP({},["title","style","font","a","script"]);let Ae=null;const Ne=["application/xhtml+xml","text/html"];let Se=null,Te=null;const be=r.createElement("form"),Oe=function(e){return e instanceof RegExp||e instanceof Function},Re=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!Te||Te!==e){if(e&&"object"==typeof e||(e={}),e=RP(e),Ae=-1===Ne.indexOf(e.PARSER_MEDIA_TYPE)?"text/html":e.PARSER_MEDIA_TYPE,Se="application/xhtml+xml"===Ae?gP:mP,U=yP(e,"ALLOWED_TAGS")?bP({},e.ALLOWED_TAGS,Se):W,F=yP(e,"ALLOWED_ATTR")?bP({},e.ALLOWED_ATTR,Se):V,Ie=yP(e,"ALLOWED_NAMESPACES")?bP({},e.ALLOWED_NAMESPACES,gP):Le,fe=yP(e,"ADD_URI_SAFE_ATTR")?bP(RP(pe),e.ADD_URI_SAFE_ATTR,Se):pe,he=yP(e,"ADD_DATA_URI_TAGS")?bP(RP(de),e.ADD_DATA_URI_TAGS,Se):de,le=yP(e,"FORBID_CONTENTS")?bP({},e.FORBID_CONTENTS,Se):ue,z=yP(e,"FORBID_TAGS")?bP({},e.FORBID_TAGS,Se):RP({}),B=yP(e,"FORBID_ATTR")?bP({},e.FORBID_ATTR,Se):RP({}),ce=!!yP(e,"USE_PROFILES")&&e.USE_PROFILES,Q=!1!==e.ALLOW_ARIA_ATTR,Y=!1!==e.ALLOW_DATA_ATTR,K=e.ALLOW_UNKNOWN_PROTOCOLS||!1,$=!1!==e.ALLOW_SELF_CLOSE_IN_ATTR,J=e.SAFE_FOR_TEMPLATES||!1,X=!1!==e.SAFE_FOR_XML,q=e.WHOLE_DOCUMENT||!1,te=e.RETURN_DOM||!1,ne=e.RETURN_DOM_FRAGMENT||!1,re=e.RETURN_TRUSTED_TYPE||!1,ee=e.FORCE_BODY||!1,ie=!1!==e.SANITIZE_DOM,oe=e.SANITIZE_NAMED_PROPS||!1,se=!1!==e.KEEP_CONTENT,ae=e.IN_PLACE||!1,x=e.ALLOWED_URI_REGEXP||$P,me=e.NAMESPACE||ve,we=e.MATHML_TEXT_INTEGRATION_POINTS||we,Ce=e.HTML_INTEGRATION_POINTS||Ce,j=e.CUSTOM_ELEMENT_HANDLING||uP(null),e.CUSTOM_ELEMENT_HANDLING&&Oe(e.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(j.tagNameCheck=e.CUSTOM_ELEMENT_HANDLING.tagNameCheck),e.CUSTOM_ELEMENT_HANDLING&&Oe(e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(j.attributeNameCheck=e.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),e.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(j.allowCustomizedBuiltInElements=e.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),J&&(Y=!1),ne&&(te=!0),ce&&(U=bP({},WP),F=uP(null),!0===ce.html&&(bP(U,PP),bP(F,FP)),!0===ce.svg&&(bP(U,MP),bP(F,VP),bP(F,zP)),!0===ce.svgFilters&&(bP(U,DP),bP(F,VP),bP(F,zP)),!0===ce.mathMl&&(bP(U,xP),bP(F,jP),bP(F,zP))),H.tagCheck=null,H.attributeCheck=null,e.ADD_TAGS&&("function"==typeof e.ADD_TAGS?H.tagCheck=e.ADD_TAGS:(U===W&&(U=RP(U)),bP(U,e.ADD_TAGS,Se))),e.ADD_ATTR&&("function"==typeof e.ADD_ATTR?H.attributeCheck=e.ADD_ATTR:(F===V&&(F=RP(F)),bP(F,e.ADD_ATTR,Se))),e.ADD_URI_SAFE_ATTR&&bP(fe,e.ADD_URI_SAFE_ATTR,Se),e.FORBID_CONTENTS&&(le===ue&&(le=RP(le)),bP(le,e.FORBID_CONTENTS,Se)),e.ADD_FORBID_CONTENTS&&(le===ue&&(le=RP(le)),bP(le,e.ADD_FORBID_CONTENTS,Se)),se&&(U["#text"]=!0),q&&bP(U,["html","head","body"]),U.table&&(bP(U,["tbody"]),delete z.tbody),e.TRUSTED_TYPES_POLICY){if("function"!=typeof e.TRUSTED_TYPES_POLICY.createHTML)throw NP('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof e.TRUSTED_TYPES_POLICY.createScriptURL)throw NP('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');L=e.TRUSTED_TYPES_POLICY,w=L.createHTML("")}else void 0===L&&(L=function(e,t){if("object"!=typeof e||"function"!=typeof e.createPolicy)return null;let n=null;const r="data-tt-policy-suffix";t&&t.hasAttribute(r)&&(n=t.getAttribute(r));const i="dompurify"+(n?"#"+n:"");try{return e.createPolicy(i,{createHTML:e=>e,createScriptURL:e=>e})}catch(e){return console.warn("TrustedTypes policy "+i+" could not be created."),null}}(p,o)),null!==L&&"string"==typeof w&&(w=L.createHTML(""));cP&&cP(e),Te=e}},ke=bP({},[...MP,...DP,...GP]),Pe=bP({},[...xP,...UP]),Me=function(e){EP(n.removed,{element:e});try{I(e).removeChild(e)}catch(t){v(e)}},De=function(e,t){try{EP(n.removed,{attribute:t.getAttributeNode(e),from:t})}catch(e){EP(n.removed,{attribute:null,from:t})}if(t.removeAttribute(e),"is"===e)if(te||ne)try{Me(t)}catch(e){}else try{t.setAttribute(e,"")}catch(e){}},Ge=function(e){let t=null,n=null;if(ee)e="<remove></remove>"+e;else{const t=IP(e,/^[\r\n\t ]+/);n=t&&t[0]}"application/xhtml+xml"===Ae&&me===ve&&(e='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+e+"</body></html>");const i=L?L.createHTML(e):e;if(me===ve)try{t=(new f).parseFromString(i,Ae)}catch(e){}if(!t||!t.documentElement){t=C.createDocument(me,"template",null);try{t.documentElement.innerHTML=ge?w:i}catch(e){}}const o=t.body||t.documentElement;return e&&n&&o.insertBefore(r.createTextNode(n),o.childNodes[0]||null),me===ve?N.call(t,q?"html":"body")[0]:q?t.documentElement:o},xe=function(e){return y.call(e.ownerDocument||e,e,u.SHOW_ELEMENT|u.SHOW_COMMENT|u.SHOW_TEXT|u.SHOW_PROCESSING_INSTRUCTION|u.SHOW_CDATA_SECTION,null)},Ue=function(e){return e instanceof d&&("string"!=typeof e.nodeName||"string"!=typeof e.textContent||"function"!=typeof e.removeChild||!(e.attributes instanceof h)||"function"!=typeof e.removeAttribute||"function"!=typeof e.setAttribute||"string"!=typeof e.namespaceURI||"function"!=typeof e.insertBefore||"function"!=typeof e.hasChildNodes)},We=function(e){return"function"==typeof c&&e instanceof c};function Fe(e,t,r){fP(e,e=>{e.call(n,t,r,Te)})}const Ve=function(e){let t=null;if(Fe(T.beforeSanitizeElements,e,null),Ue(e))return Me(e),!0;const r=Se(e.nodeName);if(Fe(T.uponSanitizeElement,e,{tagName:r,allowedTags:U}),X&&e.hasChildNodes()&&!We(e.firstElementChild)&&AP(/<[/\w!]/g,e.innerHTML)&&AP(/<[/\w!]/g,e.textContent))return Me(e),!0;if(X&&e.namespaceURI===ve&&"style"===r&&We(e.firstElementChild))return Me(e),!0;if(7===e.nodeType)return Me(e),!0;if(X&&8===e.nodeType&&AP(/<[/\w]/g,e.data))return Me(e),!0;if(z[r]||!(H.tagCheck instanceof Function&&H.tagCheck(r))&&!U[r]){if(!z[r]&&ze(r)){if(j.tagNameCheck instanceof RegExp&&AP(j.tagNameCheck,r))return!1;if(j.tagNameCheck instanceof Function&&j.tagNameCheck(r))return!1}if(se&&!le[r]){const t=I(e)||e.parentNode,n=g(e)||e.childNodes;if(n&&t)for(let r=n.length-1;r>=0;--r){const i=E(n[r],!0);i.__removalCount=(e.__removalCount||0)+1,t.insertBefore(i,m(e))}}return Me(e),!0}return e instanceof l&&!function(e){let t=I(e);t&&t.tagName||(t={namespaceURI:me,tagName:"template"});const n=mP(e.tagName),r=mP(t.tagName);return!!Ie[e.namespaceURI]&&(e.namespaceURI===Ee?t.namespaceURI===ve?"svg"===n:t.namespaceURI===_e?"svg"===n&&("annotation-xml"===r||we[r]):Boolean(ke[n]):e.namespaceURI===_e?t.namespaceURI===ve?"math"===n:t.namespaceURI===Ee?"math"===n&&Ce[r]:Boolean(Pe[n]):e.namespaceURI===ve?!(t.namespaceURI===Ee&&!Ce[r])&&!(t.namespaceURI===_e&&!we[r])&&!Pe[n]&&(ye[n]||!ke[n]):!("application/xhtml+xml"!==Ae||!Ie[e.namespaceURI]))}(e)?(Me(e),!0):"noscript"!==r&&"noembed"!==r&&"noframes"!==r||!AP(/<\/no(script|embed|frames)/i,e.innerHTML)?(J&&3===e.nodeType&&(t=e.textContent,fP([b,O,R],e=>{t=LP(t,e," ")}),e.textContent!==t&&(EP(n.removed,{element:e.cloneNode()}),e.textContent=t)),Fe(T.afterSanitizeElements,e,null),!1):(Me(e),!0)},je=function(e,t,n){if(B[t])return!1;if(ie&&("id"===t||"name"===t)&&(n in r||n in be))return!1;if(Y&&!B[t]&&AP(k,t));else if(Q&&AP(P,t));else if(H.attributeCheck instanceof Function&&H.attributeCheck(t,e));else if(!F[t]||B[t]){if(!(ze(e)&&(j.tagNameCheck instanceof RegExp&&AP(j.tagNameCheck,e)||j.tagNameCheck instanceof Function&&j.tagNameCheck(e))&&(j.attributeNameCheck instanceof RegExp&&AP(j.attributeNameCheck,t)||j.attributeNameCheck instanceof Function&&j.attributeNameCheck(t,e))||"is"===t&&j.allowCustomizedBuiltInElements&&(j.tagNameCheck instanceof RegExp&&AP(j.tagNameCheck,n)||j.tagNameCheck instanceof Function&&j.tagNameCheck(n))))return!1}else if(fe[t]);else if(AP(x,LP(n,D,"")));else if("src"!==t&&"xlink:href"!==t&&"href"!==t||"script"===e||0!==wP(n,"data:")||!he[e])if(K&&!AP(M,LP(n,D,"")));else if(n)return!1;return!0},ze=function(e){return"annotation-xml"!==e&&IP(e,G)},Be=function(e){Fe(T.beforeSanitizeAttributes,e,null);const{attributes:t}=e;if(!t||Ue(e))return;const r={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:F,forceKeepAttr:void 0};let i=t.length;for(;i--;){const o=t[i],{name:s,namespaceURI:a,value:c}=o,l=Se(s),u=c;let h="value"===s?u:CP(u);if(r.attrName=l,r.attrValue=h,r.keepAttr=!0,r.forceKeepAttr=void 0,Fe(T.uponSanitizeAttribute,e,r),h=r.attrValue,!oe||"id"!==l&&"name"!==l||(De(s,e),h="user-content-"+h),X&&AP(/((--!?|])>)|<\/(style|script|title|xmp|textarea|noscript|iframe|noembed|noframes)/i,h)){De(s,e);continue}if("attributename"===l&&IP(h,"href")){De(s,e);continue}if(r.forceKeepAttr)continue;if(!r.keepAttr){De(s,e);continue}if(!$&&AP(/\/>/i,h)){De(s,e);continue}J&&fP([b,O,R],e=>{h=LP(h,e," ")});const d=Se(e.nodeName);if(je(d,l,h)){if(L&&"object"==typeof p&&"function"==typeof p.getAttributeType)if(a);else switch(p.getAttributeType(d,l)){case"TrustedHTML":h=L.createHTML(h);break;case"TrustedScriptURL":h=L.createScriptURL(h)}if(h!==u)try{a?e.setAttributeNS(a,s,h):e.setAttribute(s,h),Ue(e)?Me(e):_P(n.removed)}catch(t){De(s,e)}}else De(s,e)}Fe(T.afterSanitizeAttributes,e,null)},He=function(e){let t=null;const n=xe(e);for(Fe(T.beforeSanitizeShadowDOM,e,null);t=n.nextNode();)Fe(T.uponSanitizeShadowNode,t,null),Ve(t),Be(t),t.content instanceof s&&He(t.content);Fe(T.afterSanitizeShadowDOM,e,null)};return n.sanitize=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=null,o=null,a=null,l=null;if(ge=!e,ge&&(e="\x3c!--\x3e"),"string"!=typeof e&&!We(e)){if("function"!=typeof e.toString)throw NP("toString is not a function");if("string"!=typeof(e=e.toString()))throw NP("dirty is not a string, aborting")}if(!n.isSupported)return e;if(Z||Re(t),n.removed=[],"string"==typeof e&&(ae=!1),ae){if(e.nodeName){const t=Se(e.nodeName);if(!U[t]||z[t])throw NP("root node is forbidden and cannot be sanitized in-place")}}else if(e instanceof c)r=Ge("\x3c!----\x3e"),o=r.ownerDocument.importNode(e,!0),1===o.nodeType&&"BODY"===o.nodeName||"HTML"===o.nodeName?r=o:r.appendChild(o);else{if(!te&&!J&&!q&&-1===e.indexOf("<"))return L&&re?L.createHTML(e):e;if(r=Ge(e),!r)return te?null:re?w:""}r&&ee&&Me(r.firstChild);const u=xe(ae?e:r);for(;a=u.nextNode();)Ve(a),Be(a),a.content instanceof s&&He(a.content);if(ae)return e;if(te){if(J){r.normalize();let e=r.innerHTML;fP([b,O,R],t=>{e=LP(e,t," ")}),r.innerHTML=e}if(ne)for(l=A.call(r.ownerDocument);r.firstChild;)l.appendChild(r.firstChild);else l=r;return(F.shadowroot||F.shadowrootmode)&&(l=S.call(i,l,!0)),l}let h=q?r.outerHTML:r.innerHTML;return q&&U["!doctype"]&&r.ownerDocument&&r.ownerDocument.doctype&&r.ownerDocument.doctype.name&&AP(qP,r.ownerDocument.doctype.name)&&(h="<!DOCTYPE "+r.ownerDocument.doctype.name+">\n"+h),J&&fP([b,O,R],e=>{h=LP(h,e," ")}),L&&re?L.createHTML(h):h},n.setConfig=function(){Re(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Z=!0},n.clearConfig=function(){Te=null,Z=!1},n.isValidAttribute=function(e,t,n){Te||Re({});const r=Se(e),i=Se(t);return je(r,i,n)},n.addHook=function(e,t){"function"==typeof t&&EP(T[e],t)},n.removeHook=function(e,t){if(void 0!==t){const n=pP(T[e],t);return-1===n?void 0:vP(T[e],n,1)[0]}return _P(T[e])},n.removeHooks=function(e){T[e]=[]},n.removeAllHooks=function(){T={afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}},n}();const rM=Af("cbio.ControlEvents"),iM=new class{constructor(){Ur(this,"_applyScroll",(e,t)=>{const n=e.defaultView||e;n.scrollTo?n.scrollTo(t.x,t.y):(n.scrollTop=t.y,n.scrollLeft=t.x)}),Ur(this,"_updateCheckbox",(e,{checked:t})=>{if(void 0!==t&&"INPUT"===e.tagName&&void 0!==e.checked){const n=Object.getOwnPropertyDescriptor(e.constructor.prototype,"checked");n&&n.set.call(e,t)}}),Ur(this,"_updateInnerHTML",(e,{innerHTML:t})=>{if(void 0!==t){const n=(new DOMParser).parseFromString(nM.sanitize(t),"text/html");e.replaceChildren(...n.body.children)}}),Ur(this,"_updateValue",(e,{value:t,selectedOptions:n},r)=>{if(void 0!==t&&"input"===r){const n=Object.getOwnPropertyDescriptor(e.constructor.prototype,"value");n&&n.set.call(e,t)}"TEXTAREA"===e.tagName&&Cg.track(e.childNodes[0]),"SELECT"===e.tagName&&null!=n&&[...e.options].forEach(e=>{e.selected=n.includes(e.value)})}),Ur(this,"_updateTarget",(e,t)=>{this._updateValue(e,t.target,t.state),this._updateCheckbox(e,t.target),this._updateInnerHTML(e,t.target)}),Ur(this,"_generateMouse",(e,t)=>new MouseEvent(t.state,{clientX:t.x*window.innerWidth,clientY:t.y*window.innerHeight,bubbles:!0,cancelable:!0,composed:!0,view:e.ownerDocument&&e.ownerDocument.defaultView||window})),Ur(this,"_generatePointer",(e,t)=>new PointerEvent(t.state,{clientX:t.x*window.innerWidth,clientY:t.y*window.innerHeight,pointerId:t.pointerId,width:t.width,height:t.height,pressure:t.pressure,tangentialPressure:t.tangentialPressure,tiltX:t.tiltX,tiltY:t.tiltY,twist:t.twist,pointerType:t.pointerType,isPrimary:t.isPrimary,bubbles:!0,cancelable:!0,composed:!0,view:e.ownerDocument&&e.ownerDocument.defaultView||window})),Ur(this,"_generateKeypress",(e,t)=>new KeyboardEvent(t.state,{key:t.key,code:t.code,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,altKey:t.altKey,metaKey:t.metaKey,charCode:t.charCode,keyCode:t.keyCode,which:t.which,bubbles:!0,cancelable:!0,composed:!0,view:e.ownerDocument&&e.ownerDocument.defaultView||window})),Ur(this,"_generateFocus",(e,t)=>new FocusEvent(t.state,{bubbles:["focusin","focusout"].includes(t.state),cancelable:!1,composed:!0,view:e.ownerDocument&&e.ownerDocument.defaultView||window})),Ur(this,"_generateChange",(e,t)=>new CustomEvent(t.state,{bubbles:!0,cancelable:!1,composed:!0,view:e.ownerDocument&&e.ownerDocument.defaultView||window})),Ur(this,"_generateInput",(e,t)=>new CustomEvent(t.state,{bubbles:!0,cancelable:!1,composed:!0,view:e.ownerDocument&&e.ownerDocument.defaultView||window,inputType:t.inputType,data:t.data})),Ur(this,"_generateSelection",(e,t)=>new CustomEvent("selection",{bubbles:!0,cancelable:!1,composed:!0,view:e.ownerDocument&&e.ownerDocument.defaultView||window,selection:t.selection})),Ur(this,"_generateEvent",(e,t,n)=>{switch(n.state.includes("move")&&rM("generate",n,"on",t),e){case"keypress":return this._generateKeypress(t,n);case"mouse":return this._generateMouse(t,n);case"pointer":return this._generatePointer(t,n);case"change":return this._generateChange(t,n);case"input":return this._generateInput(t,n);case"focus":return this._generateFocus(t,n);case"select":return this._generateSelection(t,n);default:return console.warn("CobrowseIO: unknown event type",e,n),null}}),Ur(this,"_setSelection",(e,{selection:t})=>{if(!(e.__cobrowse_user_selection_timestamp>Date.now()-100)&&e.getSelection&&e.getSelection())try{t?(e.__last_agent_selection_ts=Date.now(),e.getSelection().removeAllRanges(),t.forEach(t=>{const{start:n,startOffset:r,end:i,endOffset:o}=t,s=document.createRange(),a=Cg.getById(n),c=Cg.getById(i);s.setStart(a,r),s.setEnd(c,o),e.getSelection().addRange(s)})):e.getSelection().removeAllRanges()}catch(e){console.warn("Failed to apply selection",t,e)}}),Ur(this,"_setInputSelection",(e,{selection:t})=>{if(!(e.ownerDocument.__cobrowse_user_selection_timestamp>Date.now()-100)&&["text","textarea","search","url"].includes(e.type))try{if(e.ownerDocument.__last_agent_selection_ts=Date.now(),t){const{start:n,end:r,direction:i}=t;e.focus(),e.setSelectionRange(n,r,i)}else e.getRootNode({composed:!0}).activeElement===e&&e.setSelectionRange(null,null)}catch(e){console.warn("Failed to select text",e)}}),Ur(this,"applyEvent",(e,t)=>{if(!t.target)return null;const n=Cg.getById(t.target.id);if(!n)return null;if(Wg.isRedacted(n))return null;if(jg.isDisabled(n))return null;try{var r;if("scroll"===e)return this._applyScroll(n,t);if(null!==(r=n._cobrowse_suppress_events)&&void 0!==r&&r.has(t.state))return n._cobrowse_suppress_events.delete(t.state),0===n._cobrowse_suppress_events.size&&delete n._cobrowse_suppress_events.size,null;const i=this._generateEvent(e,n,t);return i&&(n.dispatchEvent(i)?(["keydown","keypress","input"].includes(t.state)&&this._updateTarget(n,t),["selectionchange"].includes(t.state)&&this._setSelection(n,t),["select"].includes(t.state)&&this._setInputSelection(n,t)):"keydown"===t.state?n._cobrowse_suppress_events=new Set(["keypress","input"]):"keypress"===t.state&&(n._cobrowse_suppress_events=new Set(["input"]))),i}catch(t){return console.warn("Error while injecting event",e,t),null}})}isTypingInput(e){if(e.target){const t=Cg.getById(e.target.id);if(["text","email","number","password","search","tel","url","datetime","textarea"].includes(null==t?void 0:t.type))return!0}return!1}},oM=Af("cbio.iframes.control"),sM=Af("cbio.iframes.sessions");function aM(e,t){function n(t){const n=t[Fy].serializeSanitized();if(e.broadcastToChildren("session",n,{trustedOnly:!1}),t.id()){const n=t[Fy].serialize();e.broadcastToChildren("session",n,{trustedOnly:!0})}}function r(n,{iframe:r,trusted:i}){if(!r)return;const o=t.currentSession;if(o){const t=i?o[Fy].serialize():o[Fy].serializeSanitized();e.send(r.contentWindow,"session",t,{trustedOnly:i})}}function i(e,{trusted:r,fromParent:i}){if(!r)return sM("Ignoring untrusted session event");i&&(t.currentSession[Fy].deserialize(e),n(t.currentSession))}return e.on("trust",r),e.on("session",i),{publish:n,unsubscribe:()=>{e.off("trust",r),e.off("session",i)}}}class cM{constructor(){this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}}const lM=Af("cbio.iframes.sync");function uM(e,t,{waitForParentSync:n}={}){let r,i=!n||new cM;function o(e){return{redactedViews:[...(null==e?void 0:e.redactedViews)||[],...t.redactedViews||[]],unredactedViews:[...(null==e?void 0:e.unredactedViews)||[],...t.unredactedViews||[]],ignoredViews:[...(null==e?void 0:e.ignoredViews)||[],...t.ignoredViews||[]],disabledViews:[...(null==e?void 0:e.disabledViews)||[],...t.disabledViews||[]],enabledViews:[...(null==e?void 0:e.enabledViews)||[],...t.enabledViews||[]],universalLinks:(null==e?void 0:e.universalLinks)||t.universalLinks||[],pdfLinks:(null==e?void 0:e.pdfLinks)||t.pdfLinks||[],api:(null==e?void 0:e.api)||t.api}}function s(e){const t=o(e);return Fr(Fr({},t),{},{redactedViews:t.redactedViews.filter(e=>"string"!=typeof e),unredactedViews:t.unredactedViews.filter(e=>"string"!=typeof e),ignoredViews:t.ignoredViews.filter(e=>"string"!=typeof e),disabledViews:t.disabledViews.filter(e=>"string"!=typeof e),enabledViews:t.enabledViews.filter(e=>"string"!=typeof e)})}async function a(t,{iframe:n}){n&&(await i.promise,e.send(n.contentWindow,"sync",s(r),{trustedOnly:!1}))}function c(e){lM("iframe available",e,"issuing sync"),e&&a(0,{iframe:e})}function l(t,{source:n,origin:o,trusted:a}){if(!a)return lM("Ignoring untrusted sync event");r=t,i.resolve(),e.broadcastToChildren("sync",s(t),{trustedOnly:!1})}return e.on("init",a),e.on("iframe_discovered",c),e.on("sync",l),{getSyncedConfig:async()=>(await i.promise,o(r)),unsubscribe:()=>{r=null,i=!n||new cM,e.off("init",a),e.off("iframe_discovered",c),e.off("sync",l)},sendSync:async()=>{await i.promise,e.broadcastToChildren("sync",s(r),{trustedOnly:!1})}}}const hM=Af("cbio.iframes"),dM=function(){let e=window;do{if(e=e.parent,Yp(e))return e}while(e!==e.parent);return null}(),fM=new Wp(dM),pM=new Hp(fM,dM);!function(e){e.on("sync",(t,{trusted:n})=>{if(!n)return nP("Ignoring untrusted sync event");e.sendToParent("trust",null,{trustedOnly:!1}),"complete"!==document.readyState&&window.addEventListener("load",()=>{e.sendToParent("trust",null,{trustedOnly:!1})},{once:!0,capture:!0})});const t=({target:t})=>{e.breakTrust(t.contentWindow)};e.on("trust",(n,{iframe:r,origin:i})=>{r&&(r.removeEventListener("load",t,{capture:!0}),r.addEventListener("load",t,{capture:!0}),e.establishTrust(r.contentWindow,i))})}(fM),function(e){e.on("sync",(t,{trusted:n})=>{if(!n)return oM("Ignoring untrusted sync event");B_.onChange=t=>e.sendToParent("mouse",t),B_.track(window)}),e.on("mouse",(e,{iframe:t})=>{oM("Received mouse event in",e,document,"from",t),t&&(B_.setPosition(e.x,e.y,t),B_.setDown(e.down))}),e.on("control",(t,{trusted:n,trustedOnly:r})=>{if(oM("Received control event in",document),!n)return oM("Ignoring untrusted control event");iM.applyEvent(...t),e.broadcastToChildren("control",t,{trustedOnly:r})})}(fM);const _M=e=>t=>{const n=t[Fy].proxyUrl(),r=new URL(n,e);hM("trusting",r.origin),fM.automaticTrustedOrigins=[r.origin]},EM="_cobrowse_active_highlight",vM=Af("cbio.HighlightTracking");var mM=new WeakMap,gM=new WeakSet;function IM(e){lE().removeItem(EM),this.emit("end",e)}const LM=new class extends nd{constructor(...e){super(...e),xr(this,gM),Mr(this,mM,new hL),Ur(this,"highlightAndWait",async(e,t)=>{const n=t.id;lE().setItem(EM,n),Pr(mM,this).monitor();try{if(!await this.highlight(e,t))return vM("highlight did not run"),void Sr(gM,this,IM).call(this,{id:n,state:"not-found"});await KI.ensureNoNavigation(),await Pr(mM,this).waitUntilStable(),Sr(gM,this,IM).call(this,{id:n,state:"resolved"})}finally{Pr(mM,this).destroy()}})}async highlight(e,t){if(await by.highlight(e,t))return!0;const n=await Promise.all(fM.trustedIframes.map(async e=>{const n=new Hp(fM,e.contentWindow);try{return await n.send("highlight",t)}finally{n.destroy()}}));return n.some(Boolean)}resolvePendingHighlight(){const e=lE().getItem(EM);e&&(vM("resolving pending highlight",e),Sr(gM,this,IM).call(this,{id:e,state:"resolved"}))}};var wM=new WeakMap,CM=new WeakMap,yM=new WeakMap,AM=new WeakMap,NM=new WeakMap,SM=new WeakMap,TM=new WeakMap;class bM{constructor(e){Mr(this,wM,void 0),Mr(this,CM,void 0),Mr(this,yM,void 0),Mr(this,AM,void 0),Ur(this,"open",()=>{Pr(wM,this).isEnded()||(Pr(SM,this).call(this),Pr(TM,this).call(this))}),Ur(this,"close",()=>{window.removeEventListener("visibilitychange",this.onVisibilityChange),Pr(AM,this)&&(clearInterval(Pr(AM,this)),Dr(AM,this,null)),Pr(wM,this)&&(Pr(wM,this).removeListener("updated",this.open),Dr(wM,this,null)),Pr(yM,this)&&(Pr(yM,this).close(),Dr(yM,this,null)),Pr(CM,this)&&(Pr(CM,this).close(),Dr(CM,this,null))}),Mr(this,NM,(e,t)=>{const n=new Ap({getUrl:()=>Pb(e),getProtocols:()=>[`cbio.http.headers.authorization.bearer.${window.btoa(Pr(wM,this).field(t)).replaceAll("=","")}`]});return n.on("error",e=>{console.warn("CobrowseIO session socket error:",e)}),n}),Mr(this,SM,()=>{const e=Pr(wM,this).field("control_url"),t=Pr(wM,this).field("control_token");e&&t&&!Pr(CM,this)&&(Dr(CM,this,Pr(NM,this).call(this,e,"control_token")),Pr(CM,this).on("open",()=>{Pr(CM,this).send("filter",{events:["session"]}),Pr(wM,this).fetch().catch(e=>{console.warn("CobrowseIO failed fetching session state",e)})}),Pr(CM,this).on("event",(e,t)=>{"session"===e&&Pr(wM,this).updateResource(t)}))}),Mr(this,TM,()=>{const e=Pr(wM,this).field("stream_url"),t=Pr(wM,this).field("stream_token");if(e&&t&&!Pr(yM,this)){Dr(yM,this,Pr(NM,this).call(this,e,"stream_token")),Dr(AM,this,setInterval(()=>{const e=Math.round(Pr(yM,this).metrics.latency());Pr(wM,this)[Fy].setMetrics({latency:e})},1e3));const t=["highlight","drawing","laser","url"],n=["touch","mouse","pointer","keypress","scroll","focus","input","change","select"];Pr(yM,this).on("event",(e,r)=>{"sync"===e&&Pr(wM,this).emit("sync",r),"remote-error"===e&&Pr(wM,this).emit("remote-error",r),"client"===e?Pr(wM,this).emit("client",r):"probe"===e?Pr(yM,this).send("alive",r):t.includes(e)?Pr(wM,this).emit(e,r):n.includes(e)&&Pr(wM,this).emit("control",e,r),Pr(wM,this)[Fy].setMetrics({last_alive:new Date})}),Pr(yM,this).on("open",()=>{Pr(yM,this).send("filter",{events:[...n,...t,"sync","probe","remote-error","client","sdp","icecandidate"]}),Pr(wM,this).emit("stream-open")})}}),Dr(wM,this,e),e.on("updated",this.open),e[Fy].setMetrics({last_alive:null,latency:null}),this.open()}get stream(){return Pr(yM,this)}}const OM=new class{constructor(){Ur(this,"el",()=>(this._el||(this._el=document.createElement("img"),this._el.className="cbio_session_overlay",this._el.style.pointerEvents="none",this._el.style.visibility="visible",this._el.style.width="10vw",this._el.style.height="100vh",this._el.style.position="fixed",this._el.style.zIndex="2147483647",this._el.style.display="none",this._el.style.top="0",this._el.style.left="0"),this._el)),Ur(this,"_arrayBufferToBase64",e=>{let t="";const n=new Uint8Array(e),r=n.byteLength;for(let e=0;e<r;e+=1)t+=String.fromCharCode(n[e]);return window.btoa(t)}),Ur(this,"remove",(e,t=1e3)=>{e.style.transition=`opacity ${t}ms ease-in-out`,e.style.opacity=1,e.addEventListener("transitionend",function(){e.remove()}),e.style.opacity=0}),Ur(this,"update",e=>{if(mE.isActive())if(e.image){const t=this.el().cloneNode(),n=`data:${e.mime_type};base64,${this._arrayBufferToBase64(e.image)}`,{id:r="cb_io_drawing"}=e;t.style.left=100*e.x+"%",t.style.top=100*e.y+"%",t.style.height=100*e.height+"%",t.style.width=100*e.width+"%",t.style.display="block",t.src=n,t.id=r,t.dataset.agent=e.agent,t.decode().then(()=>{const n=document.getElementById(r);n?n.replaceWith(t):document.body.appendChild(t),null!=e.disappears_in&&setTimeout(()=>{this.remove(t,e.fade_duration)},e.disappears_in)}).catch(e=>{console.error(e)})}else this.hide(e.agent)}),Ur(this,"hide",e=>{(null!=e?document.querySelectorAll(`.cbio_session_overlay[data-agent="${e}"]`):document.querySelectorAll(".cbio_session_overlay")).forEach(function(e){e.remove()})})}},RM=new Set;function kM(e,t,n,r={}){!function(e,t){const n=`${e}-${t}`;if(RM.has(n))return;const r=document.createElement("style");r.id=`cbio_session_ripple_stylesheet_${n}`,r.textContent=`\n @keyframes cbio_session_ripple_effect-${n} {\n 0% {\n transform: translate(-50%, -50%) scale(2);\n opacity: 1;\n }\n 100% {\n transform: translate(-50%, -50%) scale(${t});\n opacity: 0;\n }\n }\n .cbio_session_ripple-${n} {\n width: 8px;\n height: 8px;\n border-radius: 50%;\n position: absolute;\n z-index: 2147483647;\n top: 50%;\n left: 50%;\n transform: translate(-50%, -50%) scale(${t});\n pointer-events: none;\n animation: cbio_session_ripple_effect-${n} ${e}ms ease-out forwards;\n }\n `,document.head.appendChild(r),RM.add(n)}(t,n);const i=(o=e,"rgba("+parseInt(o.slice(1,3),16)+", "+parseInt(o.slice(3,5),16)+", "+parseInt(o.slice(5,7),16)+", 0.25)");var o;const s=document.createElement("div");return s.classList.add(`cbio_session_ripple-${t}-${n}`),Object.assign(s.style,{backgroundColor:i},r),setTimeout(()=>{s.remove()},t),s}var PM=new WeakMap,MM=new WeakMap;class DM{constructor(e){Mr(this,PM,new Map),Mr(this,MM,null),Dr(MM,this,e)}getInstanceForAgent(e){return Pr(PM,this).has(e)||Pr(PM,this).set(e,new(Pr(MM,this))),Pr(PM,this).get(e)}hide(){Pr(PM,this).forEach((e,t)=>{e.hide(),Pr(PM,this).delete(t)})}}const GM="#e94435";class xM{constructor(){Ur(this,"el",()=>(this._el||(this._el=document.createElement("div"),this._el.className="cbio_session_overlay",Object.assign(this._el.style,{position:"fixed",zIndex:"2147483647",width:"8px",height:"8px",background:GM,marginLeft:"-4px",marginTop:"-4px",borderRadius:"50%",border:"border: 1px solid white",pointerEvents:"none"})),this._el)),Ur(this,"hasChangedPosition",()=>null!=this.previousPosition&&(Math.abs(this.previousPosition.x-this.currentPosition.x)>1||Math.abs(this.previousPosition.y-this.currentPosition.y)>1)),Ur(this,"startAnimation",e=>{this._intervalId||(this._intervalId=setInterval(()=>this._createRipple(e),this.rippleInterval),this._createRipple(e))}),Ur(this,"stopAnimation",()=>{this._intervalId&&clearInterval(this._intervalId),this._el&&this._el.replaceChildren(),this.resetState()}),Ur(this,"update",e=>{mE.isActive()&&(document.body&&!this.el().parentNode&&document.body.appendChild(this.el()),"touchend"===e.state?this.hide():null!=e.x&&null!=e.y&&(this.currentPosition.x=100*e.x,this.currentPosition.y=100*e.y,this.el().style.background=e.colour,this.el().style.left=`${this.currentPosition.x}%`,this.el().style.top=`${this.currentPosition.y}%`,this.startAnimation(e.colour)))}),Ur(this,"hide",()=>{var e;null===(e=this._el)||void 0===e||null===(e=e.parentNode)||void 0===e||e.removeChild(this._el),this.stopAnimation()}),this.rippleDuration=3e3,this.rippleInterval=750,this._el=null,this.resetState()}resetState(){this._intervalId=null,this.currentPosition={x:0,y:0},this.previousPosition=null,this.resetRippleScale()}resetRippleScale(){this.rippleScale=16}_createRipple(e=GM){this.hasChangedPosition()?this.rippleScale=6:this.rippleScale=Math.min(this.rippleScale+5,16),this.previousPosition=Fr({},this.currentPosition);const t=kM(e,this.rippleDuration,this.rippleScale);this.el().appendChild(t)}}const UM=new class extends DM{constructor(){super(xM)}update(e){this.getInstanceForAgent(e.agent).update(e)}};class WM{constructor(){Ur(this,"el",()=>{if(!this._el){const e="http://www.w3.org/2000/svg";this._el=document.createElementNS(e,"svg"),this._el.setAttribute("class","__cbio_ignored"),this._el.setAttribute("viewBox","0 0 35 35"),this._el.setAttribute("fill","none"),this._el.style.position="fixed",this._el.style.zIndex="2147483647",this._el.style.height="32px",this._el.style.width="32px",this._el.style.marginLeft="-16px",this._el.style.marginTop="0px",this._el.style.color="red",this._el.style.transition="opacity 0.5s",this._el.style.opacity=1,this._el.style.pointerEvents="none";const t=document.createElementNS(e,"path");t.setAttribute("d","M26.5148 15.8441V17.0941C26.5148 17.7541 26.9798 17.2891 26.3198 17.2891C25.6598 17.2891 26.1248 17.7541 26.1248 17.0941V14.5108C26.1248 13.8361 24.5779 12.2891 23.9032 12.2891C23.2285 12.2891 21.6815 13.8361 21.6815 14.5108V17.0941C21.6815 17.7541 22.1465 17.2891 21.4865 17.2891C20.8265 17.2891 21.2915 17.7541 21.2915 17.0941V13.0108C21.2915 12.3361 19.7445 10.7891 19.0698 10.7891C18.3951 10.7891 16.8482 12.3361 16.8482 13.0108V17.0941C16.8482 17.7541 17.3131 17.2891 16.6532 17.2891C15.9932 17.2891 16.4582 17.7541 16.4582 17.0941V5.01073C16.4582 4.33602 14.9112 2.78906 14.2365 2.78906C13.5618 2.78906 12.0148 4.33602 12.0148 5.01073V18.5941C12.0148 19.0774 12.7237 18.5132 12.2771 18.6981C11.8306 18.8831 11.3166 18.7809 10.9748 18.4391L8.262 15.7263C7.85703 15.3213 6.23834 15.2209 5.72608 15.477C5.04602 15.8171 4.78867 17.6568 5.16142 18.3195L11.0678 28.0419C12.5818 30.7334 15.4298 32.3991 18.518 32.3991H21.3198C25.9066 32.3991 30.6248 27.6808 30.6248 23.0941V15.8441C30.6248 15.2614 29.1525 13.7891 28.5698 13.7891C27.9872 13.7891 26.5148 15.2614 26.5148 15.8441Z"),t.setAttribute("fill","currentColor"),t.setAttribute("fill-rule","evenodd"),t.setAttribute("clip-rule","evenodd");const n=document.createElementNS(e,"path");n.setAttribute("d","M10.6247 5.01011C10.6247 3.01544 12.2417 1.39844 14.2364 1.39844C16.2311 1.39844 17.8481 3.01544 17.8481 5.01011V9.61029C18.2296 9.47316 18.641 9.39844 19.0697 9.39844C20.4448 9.39844 21.6404 10.1669 22.2505 11.2978C22.7457 11.0425 23.3076 10.8984 23.9031 10.8984C25.2578 10.8984 26.4383 11.6443 27.0563 12.7478C27.5131 12.524 28.0268 12.3984 28.5697 12.3984C30.4724 12.3984 32.0147 13.9408 32.0147 15.8434V23.0934C32.0147 29.0001 27.2264 33.7884 21.3197 33.7884H18.5179C14.5663 33.7884 10.9219 31.657 8.98462 28.2129L4.07828 19.4905C3.03598 17.6375 3.7556 15.2894 5.65716 14.3386C7.08954 13.6225 8.81951 13.9032 9.95191 15.0356L10.6247 15.7084V5.01011ZM27.5147 15.8434V17.0934C27.5147 17.7534 26.9797 18.2884 26.3197 18.2884C25.6597 18.2884 25.1247 17.7534 25.1247 17.0934V14.5101C25.1247 13.8354 24.5778 13.2884 23.9031 13.2884C23.2284 13.2884 22.6814 13.8354 22.6814 14.5101V17.0934C22.6814 17.7534 22.1464 18.2884 21.4864 18.2884C20.8264 18.2884 20.2914 17.7534 20.2914 17.0934V13.0101C20.2914 12.3354 19.7444 11.7884 19.0697 11.7884C18.395 11.7884 17.8481 12.3354 17.8481 13.0101V17.0934C17.8481 17.7534 17.313 18.2884 16.6531 18.2884C15.9931 18.2884 15.4581 17.7534 15.4581 17.0934V5.01011C15.4581 4.3354 14.9111 3.78844 14.2364 3.78844C13.5617 3.78844 13.0147 4.3354 13.0147 5.01011V18.5934C13.0147 19.0767 12.7236 19.5125 12.277 19.6974C11.8305 19.8824 11.3165 19.7802 10.9747 19.4384L8.26192 16.7256C7.85695 16.3206 7.23826 16.2202 6.726 16.4763C6.04594 16.8164 5.78859 17.6561 6.16134 18.3188L11.0677 27.0412C12.5817 29.7327 15.4297 31.3984 18.5179 31.3984H21.3197C25.9065 31.3984 29.6247 27.6801 29.6247 23.0934V15.8434C29.6247 15.2607 29.1524 14.7884 28.5697 14.7884C27.9871 14.7884 27.5147 15.2607 27.5147 15.8434Z"),n.setAttribute("fill","white"),n.setAttribute("fill-rule","evenodd"),n.setAttribute("clip-rule","evenodd"),this._el.appendChild(t),this._el.appendChild(n)}return this._el}),Ur(this,"calculateOffset",e=>{var t;const n=Cg.getById(e.target.id),r=null==n||null===(t=n.ownerDocument)||void 0===t||null===(t=t.defaultView)||void 0===t?void 0:t.frameElement;if(!r)return{offsetX:0,offsetY:0};const i=r.getBoundingClientRect();return{offsetX:Math.round(i.left),offsetY:Math.round(i.top)}}),Ur(this,"getOffset",e=>{var t,n;const{offsetX:r,offsetY:i}=e;return void 0!==r&&void 0!==i?{offsetX:r*(null===(t=window.document)||void 0===t||null===(t=t.documentElement)||void 0===t?void 0:t.clientWidth),offsetY:i*(null===(n=window.document)||void 0===n||null===(n=n.documentElement)||void 0===n?void 0:n.clientHeight)}:this.calculateOffset(e)}),Ur(this,"_updatePosition",e=>{var t,n;let{x:r,y:i}=e;if(!1===r||!1===i)return;r*=null===(t=window.document)||void 0===t||null===(t=t.documentElement)||void 0===t?void 0:t.clientWidth,i*=null===(n=window.document)||void 0===n||null===(n=n.documentElement)||void 0===n?void 0:n.clientHeight;const o=this.getOffset(e);r+=o.offsetX,i+=o.offsetY,this.el().style.top=`${i}px`,this.el().style.left=`${r}px`,this._lastPosition={x:r,y:i}}),Ur(this,"_getRippleStyle",()=>({position:"fixed",left:this._lastPosition.x-4+"px",top:`${this._lastPosition.y+4}px`})),Ur(this,"_createRipple",(e="#e94435")=>{const t=kM(e,1e3,12,this._getRippleStyle());document.body.appendChild(t)}),Ur(this,"update",(e,t)=>{if("mouse"===e&&mE.isActive())switch(document.body&&!this.el().parentNode&&document.body.appendChild(this.el()),t.colour&&(this.el().style.color=t.colour),t.state){case"mousedown":this._hideAfterTimeout(),this._createRipple(t.colour),this.interval||(this.interval=setInterval(()=>{this._createRipple(t.colour)},500));break;case"mouseup":this._hideAfterTimeout(),clearInterval(this.interval),this.interval=null;break;case"mousemove":this._hideAfterTimeout(),this._updatePosition(t)}}),Ur(this,"hide",()=>{clearTimeout(this.fadeTimeOut),this.el().parentNode&&this.el().parentNode.removeChild(this.el())})}_hideAfterTimeout(){clearTimeout(this.fadeTimeOut),this.el().style.opacity=1,this.fadeTimeOut=setTimeout(()=>{this.el().style.opacity=0},5e3)}}const FM=new class extends DM{constructor(){super(WM)}update(e,t){this.getInstanceForAgent(t.agent).update(e,t)}},VM={ar:{ALLOW:"سماح",CALLING_ACCEPT:"قبول",CALLING_AGENT_DECLINED:"تم رفض المكالمة من قبل الوكيل",CALLING_AGENT_WAITING:"في انتظار الوكيل...",CALLING_BACK:"عودة",CALLING_CAMERA_OFF:"الكاميرا مغلقة",CALLING_CAMERA_PERMISSION_DENIED:"تم رفض الوصول إلى الكاميرا. قم بتمكينه في إعدادات المتصفح الخاص بك.",CALLING_CAMERA_PERMISSION_PROMPT:"السماح بالوصول إلى الكاميرا",CALLING_CAMERA_STARTING:"الكاميرا تبدأ العمل",CALLING_CANCEL:"إلغاء",CALLING_DISABLE_AUDIO:"تعطيل الصوت",CALLING_DISABLE_VIDEO:"تعطيل الفيديو",CALLING_ENABLE_AUDIO:"تمكين الصوت",CALLING_ENABLE_VIDEO:"تفعيل الفيديو",CALLING_END:"إنهاء المكالمة",CALLING_IN_PROGRESS:"جارٍ الانضمام إلى مكالمة الفيديو",CALLING_JOIN:"انضم إلى المكالمة",CALLING_JOIN_PROMPT:"يرغب وكيل الدعم في الاتصال بك.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"أنا",CALLING_MICROPHONE_PERMISSION_DENIED:"تم رفض الوصول إلى الميكروفون. فعّله في إعدادات المتصفح الخاص بك.",CALLING_MICROPHONE_PERMISSION_PROMPT:"السماح بالوصول إلى الميكروفون",CALLING_NO_DEVICES:"لا شيء",CALLING_PERMISSION_NEEDED:"مطلوب إذن",CALLING_REJECT:"رفض المكالمة",CALLING_REJOIN_PROMPT:"لديك مكالمة نشطة مع وكيل الدعم. هل تريد الانضمام مرة أخرى؟",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"الوكيل",CALLING_REQUEST:"هل تريد الانضمام إلى مكالمة الفيديو؟",CALLING_RETRY:"إعادة المحاولة",CALLING_SAVE:"حفظ",CALLING_SELECT_CAMERA:"اختر الكاميرا",CALLING_SELECT_MICROPHONE:"اختر الميكروفون",CALLING_SELECT_SPEAKER:"اختر المتحدث",CALLING_SHOW_CALL_SETTINGS:"عرض إعدادات المكالمة",DENY:"رفض",END_SESSION:"إنهاء جلسة Cobrowse",FULL_DEVICE_REQUEST_DESCRIPTION:"يرغب وكيل الدعم في عرض شاشتك.",FULL_DEVICE_REQUEST_TITLE:"السماح بالتقاط الشاشة كاملة؟",REMOTE_CONTROL_REQUEST_DESCRIPTION:"وكيل ادعم يريد التحكم بهذه الصفحة.",REMOTE_CONTROL_REQUEST_TITLE:"السماح بالتحكم عن بُعد؟",SESSION_REQUEST_DESCRIPTION:"يرغب أحد موظفي خدمة العملاء في استخدام هذه الصفحة معك،",SESSION_REQUEST_TITLE:"السماح بالتصفح المشترك؟",UNIVERSAL_PROXY_BLOCKED:"لا يمكن عرض هذه الصفحة مع وكيل الدعم",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"يرغب وكيل الدعم في متابعتك إلى صفحات ويب أخرى.",UNIVERSAL_PROXY_REQUEST_TITLE:"السماح بمتابعة الجلسة؟"},cs:{ALLOW:"Povolit",CALLING_ACCEPT:"Přijmout",CALLING_AGENT_DECLINED:"Hovor odmítnut operátorem",CALLING_AGENT_WAITING:"Čekání na agenta...",CALLING_BACK:"Zpět",CALLING_CAMERA_OFF:"Kamera je vypnutá",CALLING_CAMERA_PERMISSION_DENIED:"Přístup ke kameře odepřen. Povolit jej v nastavení prohlížeče.",CALLING_CAMERA_PERMISSION_PROMPT:"Povolit přístup ke kameře",CALLING_CAMERA_STARTING:"Kamera se spouští",CALLING_CANCEL:"Zrušit",CALLING_DISABLE_AUDIO:"Zakázat zvuk",CALLING_DISABLE_VIDEO:"Zakázat video",CALLING_ENABLE_AUDIO:"Povolit zvuk",CALLING_ENABLE_VIDEO:"Povolit video",CALLING_END:"Ukončit hovor",CALLING_IN_PROGRESS:"Vstup do videohovoru",CALLING_JOIN:"Připojit se k hovoru",CALLING_JOIN_PROMPT:"Podpora by vás ráda kontaktovala telefonicky.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Já",CALLING_MICROPHONE_PERMISSION_DENIED:"Přístup k mikrofonu odepřen. Povolte jej v nastavení prohlížeče.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Povolit přístup k mikrofonu",CALLING_NO_DEVICES:"Žádný",CALLING_PERMISSION_NEEDED:"Vyžadováno povolení",CALLING_REJECT:"Odmítnout hovor",CALLING_REJOIN_PROMPT:"Máte aktivní hovor s podpůrným agentem. Chcete se znovu připojit?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agent",CALLING_REQUEST:"Vstoupit do videohovoru?",CALLING_RETRY:"Opakovat pokus",CALLING_SAVE:"Uložit",CALLING_SELECT_CAMERA:"Vyberte kameru",CALLING_SELECT_MICROPHONE:"Vybrat mikrofon",CALLING_SELECT_SPEAKER:"Vyberte reproduktor",CALLING_SHOW_CALL_SETTINGS:"Zobrazit nastavení hovoru",DENY:"Odmítnout",END_SESSION:"Zastavit sdílení",FULL_DEVICE_REQUEST_DESCRIPTION:"Podpora by si ráda prohlédla celou vaši obrazovku.",FULL_DEVICE_REQUEST_TITLE:"Povolit úplné snímání obrazovky?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Podpora by ráda ovládala tuto stránku.",REMOTE_CONTROL_REQUEST_TITLE:"Povolit vzdálené ovládání?",SESSION_REQUEST_DESCRIPTION:"Podpůrný pracovník by s vámi chtěl dočasně používat tuto webovou stránku.",SESSION_REQUEST_TITLE:"Povolit společné prohlížení?",UNIVERSAL_PROXY_BLOCKED:"Tuto webovou stránku nelze zobrazit s podpůrným pracovníkem",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Agent podpory by vás rád sledoval na jiné webové stránky.",UNIVERSAL_PROXY_REQUEST_TITLE:"Povolit pokračování relace?"},da:{ALLOW:"Tillad",CALLING_ACCEPT:"Accepter",CALLING_AGENT_DECLINED:"Opkald afvist af agent",CALLING_AGENT_WAITING:"Venter på agent...",CALLING_BACK:"Tilbage",CALLING_CAMERA_OFF:"Kamera er slukket",CALLING_CAMERA_PERMISSION_DENIED:"Adgang til kamera nægtet. Aktivér det i dine browserindstillinger.",CALLING_CAMERA_PERMISSION_PROMPT:"Tillad adgang til kamera",CALLING_CAMERA_STARTING:"Kamera starter",CALLING_CANCEL:"Annuller",CALLING_DISABLE_AUDIO:"Deaktiver lyd",CALLING_DISABLE_VIDEO:"Deaktiver video",CALLING_ENABLE_AUDIO:"Aktiver lyd",CALLING_ENABLE_VIDEO:"Aktivér video",CALLING_END:"Afslut opkald",CALLING_IN_PROGRESS:"Deltager i videoopkald",CALLING_JOIN:"Deltag i opkaldet",CALLING_JOIN_PROMPT:"En supportagent vil gerne ringe til dig.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Mig",CALLING_MICROPHONE_PERMISSION_DENIED:"Adgang til mikrofon nægtet. Aktivér det i dine browserindstillinger.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Tillad adgang til mikrofon",CALLING_NO_DEVICES:"Ingen",CALLING_PERMISSION_NEEDED:"Tilladelse nødvendig",CALLING_REJECT:"Afvis opkald",CALLING_REJOIN_PROMPT:"Du har en aktiv samtale med en supportagent. Vil du genoptage den?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agent",CALLING_REQUEST:"Deltage i videoopkald?",CALLING_RETRY:"Prøv igen",CALLING_SAVE:"Gem </translateOnlyThis>",CALLING_SELECT_CAMERA:"Vælg kamera",CALLING_SELECT_MICROPHONE:"Vælg mikrofon",CALLING_SELECT_SPEAKER:"Vælg højtaler",CALLING_SHOW_CALL_SETTINGS:"Vis opkaldsindstillinger",DENY:"Nægt",END_SESSION:"Stop deling",FULL_DEVICE_REQUEST_DESCRIPTION:"En supportagent ønsker at se din hele skærm.",FULL_DEVICE_REQUEST_TITLE:"Tillad fuldskærmsoptagelse?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"En supportagent ønsker at kontrollere denne side.",REMOTE_CONTROL_REQUEST_TITLE:"Tillad fjernbetjening?",SESSION_REQUEST_DESCRIPTION:"En supportagent ønsker midlertidigt at bruge denne webside sammen med dig.",SESSION_REQUEST_TITLE:"Tillad cobrowsing?",UNIVERSAL_PROXY_BLOCKED:"Denne webside kan ikke vises sammen med en supportagent",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"En supportagent vil gerne følge dig til andre websider.",UNIVERSAL_PROXY_REQUEST_TITLE:"Tillad fortsættelse af session?"},de:{ALLOW:"Erlauben",CALLING_ACCEPT:"Akzeptieren",CALLING_AGENT_DECLINED:"Anruf vom Agenten abgelehnt",CALLING_AGENT_WAITING:"Warten auf Agent...",CALLING_BACK:"Zurück",CALLING_CAMERA_OFF:"Kamera ist ausgeschaltet",CALLING_CAMERA_PERMISSION_DENIED:"Kamerazugriff verweigert. Aktivieren Sie ihn in den Browsereinstellungen.",CALLING_CAMERA_PERMISSION_PROMPT:"Zugriff auf die Kamera erlauben",CALLING_CAMERA_STARTING:"Kamera wird gestartet",CALLING_CANCEL:"Abbrechen",CALLING_DISABLE_AUDIO:"Audio deaktivieren",CALLING_DISABLE_VIDEO:"Video deaktivieren",CALLING_ENABLE_AUDIO:"Audio aktivieren",CALLING_ENABLE_VIDEO:"Video aktivieren",CALLING_END:"Anruf beenden",CALLING_IN_PROGRESS:"Beitreten zum Videoanruf",CALLING_JOIN:"Anruf beitreten",CALLING_JOIN_PROMPT:"Ein Support-Mitarbeiter möchte Sie anrufen.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Ich",CALLING_MICROPHONE_PERMISSION_DENIED:"Zugriff auf Mikrofon verweigert. Aktivieren Sie diesen in den Browsereinstellungen.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Zugriff auf Mikrofon erlauben",CALLING_NO_DEVICES:"Keine",CALLING_PERMISSION_NEEDED:"Berechtigung erforderlich",CALLING_REJECT:"Anruf ablehnen",CALLING_REJOIN_PROMPT:"Sie sind in einem aktiven Gespräch mit einem Support-Mitarbeiter. Möchten Sie wieder beitreten?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agent",CALLING_REQUEST:"Videoanruf starten?",CALLING_RETRY:"Erneut versuchen",CALLING_SAVE:"Speichern",CALLING_SELECT_CAMERA:"Kamera auswählen",CALLING_SELECT_MICROPHONE:"Mikrofon auswählen",CALLING_SELECT_SPEAKER:"Sprecher auswählen",CALLING_SHOW_CALL_SETTINGS:"Anrufeinstellungen anzeigen",DENY:"Ablehnen",END_SESSION:"Cobrowse-Sitzung beenden",FULL_DEVICE_REQUEST_DESCRIPTION:"Ein Support-Mitarbeiter möchte Ihren gesamten Bildschirm anzeigen.",FULL_DEVICE_REQUEST_TITLE:"Vollständige Bildschirmaufnahme erlauben?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Ein Support-Mitarbeiter möchte diese Seite steuern.",REMOTE_CONTROL_REQUEST_TITLE:"Fernsteuerung erlauben?",SESSION_REQUEST_DESCRIPTION:"Ein Support-Mitarbeiter möchte diese Webseite vorübergehend mit Ihnen nutzen.",SESSION_REQUEST_TITLE:"Cobrowsing erlauben?",UNIVERSAL_PROXY_BLOCKED:"Diese Webseite kann nicht mit einem Support-Mitarbeiter angezeigt werden",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Ein Support-Mitarbeiter möchte Sie zu anderen Webseiten begleiten.",UNIVERSAL_PROXY_REQUEST_TITLE:"Sitzungsfortsetzung erlauben?"},en:{ALLOW:"Allow",CALLING_ACCEPT:"Accept",CALLING_AGENT_DECLINED:"Call declined by agent",CALLING_AGENT_WAITING:"Waiting for agent...",CALLING_BACK:"Back",CALLING_CAMERA_OFF:"Camera is off",CALLING_CAMERA_PERMISSION_DENIED:"Camera access denied. Enable it in your browser settings.",CALLING_CAMERA_PERMISSION_PROMPT:"Allow access to camera",CALLING_CAMERA_STARTING:"Camera is starting",CALLING_CANCEL:"Cancel",CALLING_DISABLE_AUDIO:"Disable audio",CALLING_DISABLE_VIDEO:"Disable video",CALLING_ENABLE_AUDIO:"Enable audio",CALLING_ENABLE_VIDEO:"Enable video",CALLING_END:"End call",CALLING_IN_PROGRESS:"Entering video call",CALLING_JOIN:"Join call",CALLING_JOIN_PROMPT:"A support agent would like to call you.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Me",CALLING_MICROPHONE_PERMISSION_DENIED:"Microphone access denied. Enable it in your browser settings.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Allow access to microphone",CALLING_NO_DEVICES:"None",CALLING_PERMISSION_NEEDED:"Permission needed",CALLING_REJECT:"Reject call",CALLING_REJOIN_PROMPT:"You have an active call with a support agent. Do you want to rejoin?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agent",CALLING_REQUEST:"Enter video call?",CALLING_RETRY:"Retry",CALLING_SAVE:"Save",CALLING_SELECT_CAMERA:"Select camera",CALLING_SELECT_MICROPHONE:"Select microphone",CALLING_SELECT_SPEAKER:"Select speaker",CALLING_SHOW_CALL_SETTINGS:"Show call settings",DENY:"Deny",END_SESSION:"Stop Sharing",FULL_DEVICE_REQUEST_DESCRIPTION:"A support agent would like to view your entire screen.",FULL_DEVICE_REQUEST_TITLE:"Allow full screen capture?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"A support agent would like to control this page.",REMOTE_CONTROL_REQUEST_TITLE:"Allow remote control?",SESSION_REQUEST_DESCRIPTION:"A support agent would like to temporarily use this web page with you.",SESSION_REQUEST_TITLE:"Allow cobrowsing?",UNIVERSAL_PROXY_BLOCKED:"This web page cannot be viewed with a support agent",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"A support agent would like to follow you to other web pages.",UNIVERSAL_PROXY_REQUEST_TITLE:"Allow session continuation?"},es:{ALLOW:"Permitir",CALLING_ACCEPT:"Aceptar",CALLING_AGENT_DECLINED:"Llamada rechazada por el agente",CALLING_AGENT_WAITING:"Esperando al agente...",CALLING_BACK:"Atrás",CALLING_CAMERA_OFF:"La cámara está apagada",CALLING_CAMERA_PERMISSION_DENIED:"Acceso a la cámara denegado. Habilítelo en la configuración de su navegador.",CALLING_CAMERA_PERMISSION_PROMPT:"Permitir acceso a la cámara",CALLING_CAMERA_STARTING:"La cámara se está iniciando",CALLING_CANCEL:"Cancelar",CALLING_DISABLE_AUDIO:"Desactivar audio",CALLING_DISABLE_VIDEO:"Desactivar vídeo",CALLING_ENABLE_AUDIO:"Activar audio",CALLING_ENABLE_VIDEO:"Habilitar vídeo",CALLING_END:"Finalizar llamada",CALLING_IN_PROGRESS:"Entrando en la videollamada",CALLING_JOIN:"Unirse a la llamada",CALLING_JOIN_PROMPT:"Un agente de soporte desea llamarle.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Yo",CALLING_MICROPHONE_PERMISSION_DENIED:"Acceso al micrófono denegado. Habilítelo en la configuración de su navegador.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Permitir acceso al micrófono",CALLING_NO_DEVICES:"Ninguno",CALLING_PERMISSION_NEEDED:"Permiso necesario",CALLING_REJECT:"Rechazar llamada",CALLING_REJOIN_PROMPT:"Tienes una llamada activa con un agente de soporte. ¿Quieres volver a unirte?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agente",CALLING_REQUEST:"¿Entrar a la videollamada?",CALLING_RETRY:"Reintentar",CALLING_SAVE:"Guardar",CALLING_SELECT_CAMERA:"Seleccionar cámara",CALLING_SELECT_MICROPHONE:"Seleccionar micrófono",CALLING_SELECT_SPEAKER:"Seleccionar altavoz",CALLING_SHOW_CALL_SETTINGS:"Mostrar configuración de llamadas",DENY:"Denegar",END_SESSION:"Finalizar Sesión",FULL_DEVICE_REQUEST_DESCRIPTION:"Un asistente de soporte solicita visualizar la totalidad de su pantalla.",FULL_DEVICE_REQUEST_TITLE:"¿Permitir captura completa de pantalla?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Un agente de soporte desea controlar esta página.",REMOTE_CONTROL_REQUEST_TITLE:"¿Permitir control remoto?",SESSION_REQUEST_DESCRIPTION:"Un agente de soporte quiere usar temporalmente esta página web con usted.",SESSION_REQUEST_TITLE:"¿Permitir cobrowsing?",UNIVERSAL_PROXY_BLOCKED:"Esta página web no puede ser vista con un agente de soporte",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Un agente de soporte desea seguirle a otras páginas web.",UNIVERSAL_PROXY_REQUEST_TITLE:"¿Permitir continuación de sesión?"},"es-MX":{ALLOW:"Permitir",CALLING_ACCEPT:"Aceptar",CALLING_AGENT_DECLINED:"Llamada rechazada por el agente",CALLING_AGENT_WAITING:"Esperando al agente...",CALLING_BACK:"Regresar",CALLING_CAMERA_OFF:"La cámara está apagada",CALLING_CAMERA_PERMISSION_DENIED:"Acceso a la cámara denegado. Habilítelo en la configuración de su navegador.",CALLING_CAMERA_PERMISSION_PROMPT:"Permitir acceso a la cámara",CALLING_CAMERA_STARTING:"La cámara se está iniciando",CALLING_CANCEL:"Cancelar",CALLING_DISABLE_AUDIO:"Desactivar audio",CALLING_DISABLE_VIDEO:"Desactivar video",CALLING_ENABLE_AUDIO:"Habilitar audio",CALLING_ENABLE_VIDEO:"Habilitar video",CALLING_END:"Finalizar llamada",CALLING_IN_PROGRESS:"Entrando a llamada de video",CALLING_JOIN:"Unirse a la llamada",CALLING_JOIN_PROMPT:"Un agente de soporte desea llamarle.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Yo",CALLING_MICROPHONE_PERMISSION_DENIED:"Acceso al micrófono denegado. Habilítelo en la configuración de su navegador.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Permitir acceso al micrófono",CALLING_NO_DEVICES:"Ninguno",CALLING_PERMISSION_NEEDED:"Permiso necesario",CALLING_REJECT:"Rechazar llamada",CALLING_REJOIN_PROMPT:"Tienes una llamada activa con un agente de soporte. ¿Deseas volver a unirte?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agente",CALLING_REQUEST:"¿Ingresar a la videollamada?",CALLING_RETRY:"Reintentar",CALLING_SAVE:"Guardar",CALLING_SELECT_CAMERA:"Seleccionar cámara",CALLING_SELECT_MICROPHONE:"Seleccionar micrófono",CALLING_SELECT_SPEAKER:"Seleccionar altavoz",CALLING_SHOW_CALL_SETTINGS:"Mostrar configuración de llamada",DENY:"Denegar",END_SESSION:"Finalizar Sesión de Navegación Conjunta",FULL_DEVICE_REQUEST_DESCRIPTION:"Un agente de soporte quiere ver toda su pantalla.",FULL_DEVICE_REQUEST_TITLE:"¿Permitir captura completa de pantalla?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Un agente de soporte quiere controlar esta página.",REMOTE_CONTROL_REQUEST_TITLE:"¿Permitir control remoto?",SESSION_REQUEST_DESCRIPTION:"Un agente de soporte quiere usar temporalmente esta página web con usted.",SESSION_REQUEST_TITLE:"¿Permitir cobrowsing?",UNIVERSAL_PROXY_BLOCKED:"Esta página web no puede ser vista con un agente de soporte",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Un agente de soporte quiere seguirle a otras páginas web.",UNIVERSAL_PROXY_REQUEST_TITLE:"¿Permitir continuación de sesión?"},et:{ALLOW:"Luba",CALLING_ACCEPT:"Nõustu",CALLING_AGENT_DECLINED:"Kõne agent poolt tagasi lükatud",CALLING_AGENT_WAITING:"Ootame agenti...",CALLING_BACK:"Tagasi",CALLING_CAMERA_OFF:"Kaamera on välja lülitatud",CALLING_CAMERA_PERMISSION_DENIED:"Kaamera ligipääs keelatud. Luba see oma brauseri seadetes.",CALLING_CAMERA_PERMISSION_PROMPT:"Luba juurdepääs kaamerale",CALLING_CAMERA_STARTING:"Kaamera käivitub",CALLING_CANCEL:"Tühista",CALLING_DISABLE_AUDIO:"Lülita heli välja",CALLING_DISABLE_VIDEO:"Keela video",CALLING_ENABLE_AUDIO:"Luba heli",CALLING_ENABLE_VIDEO:"Luba video",CALLING_END:"Lõpeta kõne",CALLING_IN_PROGRESS:"Videokõnesse sisenemine",CALLING_JOIN:"Liitu kõnega",CALLING_JOIN_PROMPT:"Toetusagend soovib teid helistada.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Mina",CALLING_MICROPHONE_PERMISSION_DENIED:"Mikrofoni ligipääs keelatud. Luba see oma brauseri seadetes.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Luba mikrofoni kasutamise õigus",CALLING_NO_DEVICES:"Mitte ükski",CALLING_PERMISSION_NEEDED:"Vaja luba",CALLING_REJECT:"Keela kõne",CALLING_REJOIN_PROMPT:"Teilitate jooksval kõnel tugiteenuse esindajaga. Kas soovite uuesti ühineda?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Esindaja",CALLING_REQUEST:"Sisene videokõnesse?",CALLING_RETRY:"Proovi uuesti",CALLING_SAVE:"Salvesta",CALLING_SELECT_CAMERA:"Vali kaamera",CALLING_SELECT_MICROPHONE:"Vali mikrofon",CALLING_SELECT_SPEAKER:"Vali kõneleja",CALLING_SHOW_CALL_SETTINGS:"Kuva kõne seadeid",DENY:"Keeldu",END_SESSION:"Jaga jagamine lõpetada",FULL_DEVICE_REQUEST_DESCRIPTION:"Tugiagendi soovib teie kogu ekraani vaadata.",FULL_DEVICE_REQUEST_TITLE:"Luba täisekraani salvestuse lubamine?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Tugiteenindaja soovib seda lehte juhtida.",REMOTE_CONTROL_REQUEST_TITLE:"Lubate kaugjuhtimist?",SESSION_REQUEST_DESCRIPTION:"Toetusagent soovib seda veebilehte teiega ajutiselt kasutada.",SESSION_REQUEST_TITLE:"Luba koosturundus?",UNIVERSAL_PROXY_BLOCKED:"Seda veebilehte ei saa vaadata koos tugiesindajaga",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Toetusagendi soovib teid teistele veebilehtedele jälgida.",UNIVERSAL_PROXY_REQUEST_TITLE:"Kas lubada seansi jätkamine?"},fi:{ALLOW:"Salli",CALLING_ACCEPT:"Hyväksy",CALLING_AGENT_DECLINED:"Puhelu hylätty agentin toimesta",CALLING_AGENT_WAITING:"Odotetaan asiakaspalvelijaa...",CALLING_BACK:"Takaisin",CALLING_CAMERA_OFF:"Kamera on pois päältä",CALLING_CAMERA_PERMISSION_DENIED:"Kameran käyttö estetty. Ota se käyttöön selaimesi asetuksissa.",CALLING_CAMERA_PERMISSION_PROMPT:"Salli pääsy kameraan",CALLING_CAMERA_STARTING:"Kamera käynnistyy",CALLING_CANCEL:"Peruuta",CALLING_DISABLE_AUDIO:"Poista ääni käytöstä",CALLING_DISABLE_VIDEO:"Poista video käytöstä",CALLING_ENABLE_AUDIO:"Ota ääni käyttöön",CALLING_ENABLE_VIDEO:"Ota video käyttöön",CALLING_END:"Lopeta puhelu",CALLING_IN_PROGRESS:"Liityt videopuheluun",CALLING_JOIN:"Liity puheluun",CALLING_JOIN_PROMPT:"Tukihenkilö haluaisi soittaa sinulle.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Minä",CALLING_MICROPHONE_PERMISSION_DENIED:"Mikrofonin käyttö estetty. Ota se käyttöön selaimesi asetuksissa.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Salli pääsy mikrofonille",CALLING_NO_DEVICES:"Ei mitään",CALLING_PERMISSION_NEEDED:"Lupa tarvitaan",CALLING_REJECT:"Hylkää puhelu",CALLING_REJOIN_PROMPT:"Sinulla on aktiivinen puhelu tukiedustajan kanssa. Haluatko liittyä uudelleen?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Asiakaspalvelija",CALLING_REQUEST:"Haluatko mennä videopuheluun?",CALLING_RETRY:"Yritä uudelleen",CALLING_SAVE:"Tallenna",CALLING_SELECT_CAMERA:"Valitse kamera",CALLING_SELECT_MICROPHONE:"Valitse mikrofoni",CALLING_SELECT_SPEAKER:"Valitse kaiutin",CALLING_SHOW_CALL_SETTINGS:"Näytä puheluasetukset",DENY:"Estä",END_SESSION:"Lopeta jakaminen",FULL_DEVICE_REQUEST_DESCRIPTION:"Tukihenkilö haluaa nähdä koko näyttösi.",FULL_DEVICE_REQUEST_TITLE:"Sallitaanko kokoruudun tallennus?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Tukihenkilö haluaisi ohjata tätä sivua.",REMOTE_CONTROL_REQUEST_TITLE:"Sallitaanko etäohjaus?",SESSION_REQUEST_DESCRIPTION:"Asiakaspalvelija haluaisi väliaikaisesti käyttää tätä verkkosivua kanssasi.",SESSION_REQUEST_TITLE:"Salli yhteisselaus?",UNIVERSAL_PROXY_BLOCKED:"Tätä verkkosivua ei voi tarkastella tukihenkilön kanssa",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Tukihenkilö haluaa seurata sinua muille verkkosivuille.",UNIVERSAL_PROXY_REQUEST_TITLE:"Sallitaanko istunnon jatkaminen?"},fr:{ALLOW:"Autoriser",CALLING_ACCEPT:"Accepter",CALLING_AGENT_DECLINED:"Appel refusé par l'agent",CALLING_AGENT_WAITING:"En attente de l'agent...",CALLING_BACK:"Retour",CALLING_CAMERA_OFF:"La caméra est éteinte",CALLING_CAMERA_PERMISSION_DENIED:"Accès à la caméra refusé. Activez-le dans les paramètres de votre navigateur.",CALLING_CAMERA_PERMISSION_PROMPT:"Autoriser l'accès à la caméra",CALLING_CAMERA_STARTING:"La caméra démarre",CALLING_CANCEL:"Annuler",CALLING_DISABLE_AUDIO:"Désactiver l'audio",CALLING_DISABLE_VIDEO:"Désactiver la vidéo",CALLING_ENABLE_AUDIO:"Activer l'audio",CALLING_ENABLE_VIDEO:"Activer la vidéo",CALLING_END:"Terminer l'appel",CALLING_IN_PROGRESS:"Connexion à l'appel vidéo",CALLING_JOIN:"Rejoindre l'appel",CALLING_JOIN_PROMPT:"Un agent de support souhaite vous appeler.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Moi",CALLING_MICROPHONE_PERMISSION_DENIED:"Accès au microphone refusé. Activez-le dans les paramètres de votre navigateur.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Autoriser l'accès au microphone",CALLING_NO_DEVICES:"Aucun",CALLING_PERMISSION_NEEDED:"Permission requise",CALLING_REJECT:"Rejeter l'appel",CALLING_REJOIN_PROMPT:"Vous êtes en communication avec un agent de support. Voulez-vous rejoindre à nouveau ?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agent",CALLING_REQUEST:"Entrer dans l'appel vidéo ?",CALLING_RETRY:"Réessayer",CALLING_SAVE:"Enregistrer",CALLING_SELECT_CAMERA:"Sélectionner la caméra",CALLING_SELECT_MICROPHONE:"Sélectionner un microphone",CALLING_SELECT_SPEAKER:"Sélectionner le haut-parleur",CALLING_SHOW_CALL_SETTINGS:"Afficher les paramètres d'appel",DENY:"Refuser",END_SESSION:"Terminer la session de Cobrowse",FULL_DEVICE_REQUEST_DESCRIPTION:"Un agent de soutien souhaiterait voir l'intégralité de votre écran.",FULL_DEVICE_REQUEST_TITLE:"Autoriser la capture d'écran complète ?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Un agent du soutien souhaiterait avoir le contrôle de cette page.",REMOTE_CONTROL_REQUEST_TITLE:"Autoriser le contrôle à distance ?",SESSION_REQUEST_DESCRIPTION:"Un agent de soutien souhaiterait temporairement utiliser cette page Web avec vous.",SESSION_REQUEST_TITLE:"Autoriser le cobrowsing ?",UNIVERSAL_PROXY_BLOCKED:"Cette page Web ne peut pas être vue avec un agent de soutien",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Un agent de soutien souhaiterait vous suivre vers d'autres pages Web.",UNIVERSAL_PROXY_REQUEST_TITLE:"Autoriser la continuation de session ?"},hi:{ALLOW:"अनुमति देना",CALLING_ACCEPT:"स्वीकार करें",CALLING_AGENT_DECLINED:"एजेंट द्वारा कॉल अस्वीकार किया गया",CALLING_AGENT_WAITING:"एजेंट के लिए प्रतीक्षा कर रहे हैं...",CALLING_BACK:"वापस",CALLING_CAMERA_OFF:"कैमरा बंद है",CALLING_CAMERA_PERMISSION_DENIED:"कैमरा एक्सेस अस्वीकृत। इसे अपने ब्राउज़र सेटिंग्स में सक्षम करें।",CALLING_CAMERA_PERMISSION_PROMPT:"कैमरा तक पहुंच की अनुमति दें",CALLING_CAMERA_STARTING:"कैमरा शुरू हो रहा है",CALLING_CANCEL:"रद्द करें",CALLING_DISABLE_AUDIO:"ऑडियो अक्षम करें",CALLING_DISABLE_VIDEO:"वीडियो अक्षम करें",CALLING_ENABLE_AUDIO:"ऑडियो सक्षम करें",CALLING_ENABLE_VIDEO:"वीडियो सक्षम करें",CALLING_END:"कॉल समाप्त करें",CALLING_IN_PROGRESS:"वीडियो कॉल में प्रवेश करना",CALLING_JOIN:"कॉल में शामिल हों",CALLING_JOIN_PROMPT:"एक समर्थन एजेंट आपको कॉल करना चाहता है।",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"मैं",CALLING_MICROPHONE_PERMISSION_DENIED:"माइक्रोफोन एक्सेस अस्वीकृत। इसे अपने ब्राउज़र सेटिंग्स में सक्षम करें।",CALLING_MICROPHONE_PERMISSION_PROMPT:"माइक्रोफोन तक पहुंच की अनुमति दें",CALLING_NO_DEVICES:"कोई नहीं",CALLING_PERMISSION_NEEDED:"अनुमति आवश्यक है",CALLING_REJECT:"कॉल अस्वीकार करें",CALLING_REJOIN_PROMPT:"आपका एक सक्रिय कॉल समर्थन एजेंट के साथ है। क्या आप पुनः जुड़ना चाहते हैं?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"एजेंट",CALLING_REQUEST:"वीडियो कॉल में प्रवेश करें?",CALLING_RETRY:"पुनः प्रयास करें",CALLING_SAVE:"सहेजें",CALLING_SELECT_CAMERA:"कैमरा चुनें",CALLING_SELECT_MICROPHONE:"माइक्रोफोन चुनें",CALLING_SELECT_SPEAKER:"वक्ता चुनें",CALLING_SHOW_CALL_SETTINGS:"कॉल सेटिंग्स दिखाएं",DENY:"अस्वीकार करना",END_SESSION:"कोब्रोसे सत्र समाप्त करें",FULL_DEVICE_REQUEST_DESCRIPTION:"एक सहायता एजेंट आपकी पूरी स्क्रीन देखना चाहेगा।",FULL_DEVICE_REQUEST_TITLE:"पूर्ण स्क्रीन कैप्चर की अनुमति दें?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"एक समर्थन एजेंट इस पेज को नियंत्रित करना चाहता है।",REMOTE_CONTROL_REQUEST_TITLE:"रिमोट कंट्रोल की अनुमति दें?",SESSION_REQUEST_DESCRIPTION:"एक सहायता एजेंट अस्थायी रूप से आपके साथ इस वेब पेज का उपयोग करना चाहेगा।",SESSION_REQUEST_TITLE:"कोब्राउज़िंग की अनुमति दें?",UNIVERSAL_PROXY_BLOCKED:"यह वेब पेज सहायता एजेंट के साथ नहीं देखा जा सकता",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"एक सहायता एजेंट आपका अन्य वेब पेजों में पीछा करना चाहेगा।",UNIVERSAL_PROXY_REQUEST_TITLE:"सत्र निरंतरता की अनुमति दें?"},it:{ALLOW:"Consenti",CALLING_ACCEPT:"Accetta",CALLING_AGENT_DECLINED:"Chiamata rifiutata dall'agente",CALLING_AGENT_WAITING:"In attesa dell'agente...",CALLING_BACK:"Indietro",CALLING_CAMERA_OFF:"La fotocamera è spenta",CALLING_CAMERA_PERMISSION_DENIED:"Accesso alla fotocamera negato. Attivalo nelle impostazioni del tuo browser.",CALLING_CAMERA_PERMISSION_PROMPT:"Consenti l'accesso alla fotocamera",CALLING_CAMERA_STARTING:"La fotocamera si sta avviando",CALLING_CANCEL:"Annulla",CALLING_DISABLE_AUDIO:"Disabilita audio",CALLING_DISABLE_VIDEO:"Disabilita video",CALLING_ENABLE_AUDIO:"Abilita audio",CALLING_ENABLE_VIDEO:"Abilita video",CALLING_END:"Termina chiamata",CALLING_IN_PROGRESS:"Partecipazione alla videochiamata",CALLING_JOIN:"Partecipa alla chiamata",CALLING_JOIN_PROMPT:"Un agente di supporto desidera chiamarla.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Me",CALLING_MICROPHONE_PERMISSION_DENIED:"Accesso al microfono negato. Abilitalo nelle impostazioni del browser.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Consenti l'accesso al microfono",CALLING_NO_DEVICES:"Nessuno",CALLING_PERMISSION_NEEDED:"Permesso necessario",CALLING_REJECT:"Rifiuta chiamata",CALLING_REJOIN_PROMPT:"Hai una chiamata attiva con un agente di supporto. Vuoi rientrare?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agente",CALLING_REQUEST:"Avviare la videochiamata?",CALLING_RETRY:"Riprova",CALLING_SAVE:"Salva",CALLING_SELECT_CAMERA:"Seleziona la fotocamera",CALLING_SELECT_MICROPHONE:"Seleziona microfono",CALLING_SELECT_SPEAKER:"Seleziona altoparlante",CALLING_SHOW_CALL_SETTINGS:"Mostra impostazioni chiamata",DENY:"Nega",END_SESSION:"Termina la sessione di Cobrowse",FULL_DEVICE_REQUEST_DESCRIPTION:"Un agente dell'assistenza desidera visualizzare tutto il tuo schermo.",FULL_DEVICE_REQUEST_TITLE:"Consentire cattura schermo completa?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Un agente dell'assistenza desidera controllare questa pagina.",REMOTE_CONTROL_REQUEST_TITLE:"Consentire controllo remoto?",SESSION_REQUEST_DESCRIPTION:"Un agente dell'assistenza vorrebbe utilizzare temporaneamente questa pagina web con te.",SESSION_REQUEST_TITLE:"Consentire cobrowsing?",UNIVERSAL_PROXY_BLOCKED:"Questa pagina web non può essere visualizzata con un agente dell'assistenza",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Un agente dell'assistenza vorrebbe seguirti su altre pagine web.",UNIVERSAL_PROXY_REQUEST_TITLE:"Consentire continuazione sessione?"},ja:{ALLOW:"許可する",CALLING_ACCEPT:"承諾する",CALLING_AGENT_DECLINED:"エージェントによって通話が拒否されました",CALLING_AGENT_WAITING:"エージェントを待っています...",CALLING_BACK:"戻る",CALLING_CAMERA_OFF:"カメラはオフです",CALLING_CAMERA_PERMISSION_DENIED:"カメラのアクセスが拒否されました。ブラウザの設定で有効にしてください。",CALLING_CAMERA_PERMISSION_PROMPT:"カメラへのアクセスを許可する",CALLING_CAMERA_STARTING:"カメラが起動しています",CALLING_CANCEL:"キャンセル",CALLING_DISABLE_AUDIO:"音声を無効にする",CALLING_DISABLE_VIDEO:"ビデオを無効にする",CALLING_ENABLE_AUDIO:"音声を有効にする",CALLING_ENABLE_VIDEO:"ビデオを有効にする",CALLING_END:"通話終了",CALLING_IN_PROGRESS:"ビデオ通話に参加中",CALLING_JOIN:"通話に参加する",CALLING_JOIN_PROMPT:"サポート担当者があなたに電話をかけたいと考えています。",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"私",CALLING_MICROPHONE_PERMISSION_DENIED:"マイクへのアクセスが拒否されました。ブラウザの設定で有効にしてください。",CALLING_MICROPHONE_PERMISSION_PROMPT:"マイクへのアクセスを許可する",CALLING_NO_DEVICES:"なし",CALLING_PERMISSION_NEEDED:"許可が必要です",CALLING_REJECT:"通話を拒否する",CALLING_REJOIN_PROMPT:"サポートエージェントと通話中です。再接続しますか?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"エージェント",CALLING_REQUEST:"ビデオ通話に参加しますか?",CALLING_RETRY:"再試行",CALLING_SAVE:"保存",CALLING_SELECT_CAMERA:"カメラを選択してください",CALLING_SELECT_MICROPHONE:"マイクを選択してください",CALLING_SELECT_SPEAKER:"話者を選択してください",CALLING_SHOW_CALL_SETTINGS:"通話設定を表示",DENY:"拒否",END_SESSION:"共同閲覧セッションを終了",FULL_DEVICE_REQUEST_DESCRIPTION:"サポート担当者が画面全体の表示を希望しています。",FULL_DEVICE_REQUEST_TITLE:"フルスクリーンキャプチャを許可しますか?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"サポートエージェントがこのページの管理を希望しています。",REMOTE_CONTROL_REQUEST_TITLE:"リモートコントロールを許可しますか?",SESSION_REQUEST_DESCRIPTION:"サポートエージェントが一時的にこのWebページを共用したいと考えています。",SESSION_REQUEST_TITLE:"コブラウジングを許可しますか?",UNIVERSAL_PROXY_BLOCKED:"このWebページはサポートエージェントと一緒に表示することはできません",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"サポートエージェントが他のWebページでもあなたをフォローしたいと考えています。",UNIVERSAL_PROXY_REQUEST_TITLE:"セッション継続を許可しますか?"},kk:{ALLOW:"Рұқсат етіңіз",CALLING_ACCEPT:"Қабылдау",CALLING_AGENT_DECLINED:"Қоңырауды агент қабылдамады",CALLING_AGENT_WAITING:"Агентті күтуде...",CALLING_BACK:"Артқа",CALLING_CAMERA_OFF:"Камера өшірілген",CALLING_CAMERA_PERMISSION_DENIED:"Камераға кіруге тыйым салынған. Оны шолғыш параметрлерінде қосыңыз.",CALLING_CAMERA_PERMISSION_PROMPT:"Камераға кіруге рұқсат беру",CALLING_CAMERA_STARTING:"Камера іске қосылуда",CALLING_CANCEL:"Болдырмау",CALLING_DISABLE_AUDIO:"Дыбысты өшіріңіз",CALLING_DISABLE_VIDEO:"Бейнені өшіру",CALLING_ENABLE_AUDIO:"Дыбысты қосу",CALLING_ENABLE_VIDEO:"Бейне қосу",CALLING_END:"Қоңырауды аяқтау",CALLING_IN_PROGRESS:"Видео қоңырауына кіру",CALLING_JOIN:"Қоңырауға қосылу",CALLING_JOIN_PROMPT:"Қолдау қызметінің өкілі сізге қоңырау шалғысы келеді.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Мен",CALLING_MICROPHONE_PERMISSION_DENIED:"Микрофонға қатынау тыйым салынды. Оны шолғыш параметрлеріңізде қосыңыз.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Микрофонға қолжетімділік беріңіз",CALLING_NO_DEVICES:"Жоқ",CALLING_PERMISSION_NEEDED:"Рұқсат қажет",CALLING_REJECT:"Қоңырауды қабылдамау",CALLING_REJOIN_PROMPT:"Сізде қолдау агентімен ағымдағы қоңырау бар. Қайта қосылғыңыз келе ме?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Агент",CALLING_REQUEST:"Бейне қоңырауға қосылу керек пе?",CALLING_RETRY:"Қайталау",CALLING_SAVE:"Сақтау",CALLING_SELECT_CAMERA:"Камераны таңдаңыз",CALLING_SELECT_MICROPHONE:"Микрофонды таңдаңыз",CALLING_SELECT_SPEAKER:"Дыбысты таңдау",CALLING_SHOW_CALL_SETTINGS:"Қоңырау параметрлерін көрсету",DENY:"Бас тарту",END_SESSION:"Бірлескен шолу сеансын аяқтаңыз",FULL_DEVICE_REQUEST_DESCRIPTION:"Қолдау агенті бүкіл экраныңызды көргісі келеді.",FULL_DEVICE_REQUEST_TITLE:"Толық экранды түсіруге рұқсат етесіз бе?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Көмекші агент осы бетті бақылағысы келеді.",REMOTE_CONTROL_REQUEST_TITLE:"Қашықтан басқаруға рұқсат етесіз бе?",SESSION_REQUEST_DESCRIPTION:"Қолдау агенті осы веб-бетті сізбен уақытша пайдаланғысы келеді.",SESSION_REQUEST_TITLE:"Кобраузингке рұқсат етесіз бе?",UNIVERSAL_PROXY_BLOCKED:"Бұл веб-бетті қолдау агентімен бірге көру мүмкін емес",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Қолдау агенті сізді басқа веб-беттерге де ілесе алуға тілек білдіреді.",UNIVERSAL_PROXY_REQUEST_TITLE:"Сеансты жалғастыруға рұқсат етесіз бе?"},ko:{ALLOW:"허용하다",CALLING_ACCEPT:"수락",CALLING_AGENT_DECLINED:"상담원이 전화를 거부했습니다",CALLING_AGENT_WAITING:"상담원 대기 중...",CALLING_BACK:"뒤로",CALLING_CAMERA_OFF:"카메라가 꺼져 있습니다",CALLING_CAMERA_PERMISSION_DENIED:"카메라 접근이 거부되었습니다. 브라우저 설정에서 활성화하세요.",CALLING_CAMERA_PERMISSION_PROMPT:"카메라 접근 허용",CALLING_CAMERA_STARTING:"카메라가 시작되고 있습니다",CALLING_CANCEL:"취소",CALLING_DISABLE_AUDIO:"오디오 비활성화",CALLING_DISABLE_VIDEO:"비디오 비활성화",CALLING_ENABLE_AUDIO:"오디오 활성화",CALLING_ENABLE_VIDEO:"비디오 활성화",CALLING_END:"통화 종료",CALLING_IN_PROGRESS:"영상 통화 참여 중",CALLING_JOIN:"통화 참여하기",CALLING_JOIN_PROMPT:"지원 상담원이 귀하에게 전화를 원합니다.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"나",CALLING_MICROPHONE_PERMISSION_DENIED:"마이크 접근이 거부되었습니다. 브라우저 설정에서 활성화하세요.",CALLING_MICROPHONE_PERMISSION_PROMPT:"마이크 접근 허용",CALLING_NO_DEVICES:"없음",CALLING_PERMISSION_NEEDED:"권한 필요",CALLING_REJECT:"통화 거절",CALLING_REJOIN_PROMPT:"지원 상담원과 통화 중입니다. 다시 연결하시겠습니까?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"상담원",CALLING_REQUEST:"영상 통화에 참여하시겠습니까?",CALLING_RETRY:"재시도",CALLING_SAVE:"저장",CALLING_SELECT_CAMERA:"카메라 선택",CALLING_SELECT_MICROPHONE:"마이크 선택",CALLING_SELECT_SPEAKER:"화자 선택",CALLING_SHOW_CALL_SETTINGS:"통화 설정 표시",DENY:"부인하다",END_SESSION:"Cobrowse 세션 종료",FULL_DEVICE_REQUEST_DESCRIPTION:"지원 담당자가 귀하의 전체 화면을 보고 싶어합니다.",FULL_DEVICE_REQUEST_TITLE:"전체 화면 캡처를 허용하시겠습니까?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"지원 담당자가 이 페이지를 관리하고 싶어합니다.",REMOTE_CONTROL_REQUEST_TITLE:"원격 제어를 허용하시겠습니까?",SESSION_REQUEST_DESCRIPTION:"지원 담당자가 귀하와 함께 이 웹 페이지를 일시적으로 사용하려고 합니다.",SESSION_REQUEST_TITLE:"코브라우징을 허용하시겠습니까?",UNIVERSAL_PROXY_BLOCKED:"이 웹 페이지는 지원 담당자와 함께 볼 수 없습니다",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"지원 담당자가 다른 웹 페이지로 귀하를 따라가고 싶어합니다.",UNIVERSAL_PROXY_REQUEST_TITLE:"세션 계속을 허용하시겠습니까?"},lt:{ALLOW:"Leisti",CALLING_ACCEPT:"Priimti",CALLING_AGENT_DECLINED:"Skambutis atmestas agento",CALLING_AGENT_WAITING:"Laukiama agento…",CALLING_BACK:"Atgal",CALLING_CAMERA_OFF:"Kamera išjungta",CALLING_CAMERA_PERMISSION_DENIED:"Prieiga prie kameros uždrausta. Įgalinkite ją savo naršyklės nustatymuose.",CALLING_CAMERA_PERMISSION_PROMPT:"Leisti prieigą prie kameros",CALLING_CAMERA_STARTING:"Kamera pradedama veikti",CALLING_CANCEL:"Atšaukti",CALLING_DISABLE_AUDIO:"Išjungti garsą",CALLING_DISABLE_VIDEO:"Išjungti vaizdo įrašą",CALLING_ENABLE_AUDIO:"Įjungti garsą",CALLING_ENABLE_VIDEO:"Įjungti vaizdo įrašą",CALLING_END:"Baigti skambutį",CALLING_IN_PROGRESS:"Prisijungimas prie vaizdo skambučio",CALLING_JOIN:"Prisijungti prie skambučio",CALLING_JOIN_PROMPT:"Paramaus agentas norėtų jums paskambinti.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Mano",CALLING_MICROPHONE_PERMISSION_DENIED:"Prieiga prie mikrofono atmesta. Įgalinkite ją savo naršyklės nustatymuose.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Leisti prieigą prie mikrofono",CALLING_NO_DEVICES:"Nėra",CALLING_PERMISSION_NEEDED:"Reikalinga leidimas",CALLING_REJECT:"Atmesti skambutį",CALLING_REJOIN_PROMPT:"Jūs turite aktyvų skambutį su palaikymo agentu. Ar norite vėl prisijungti?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agentas",CALLING_REQUEST:"Pradėti vaizdo skambutį?",CALLING_RETRY:"Bandyti dar kartą",CALLING_SAVE:"Išsaugoti",CALLING_SELECT_CAMERA:"Pasirinkite kamerą",CALLING_SELECT_MICROPHONE:"Pasirinkite mikrofoną",CALLING_SELECT_SPEAKER:"Pasirinkite kalbėtoją",CALLING_SHOW_CALL_SETTINGS:"Rodyti skambučio nustatymus",DENY:"Atmesti",END_SESSION:"Nutraukti bendrinimą",FULL_DEVICE_REQUEST_DESCRIPTION:"Pagalbos agentas norėtų peržiūrėti visą jūsų ekraną.",FULL_DEVICE_REQUEST_TITLE:"Leisti fiksuoti visą ekraną?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Palaikymo agentas norėtų valdyti šį puslapį.",REMOTE_CONTROL_REQUEST_TITLE:"Leisti nuotolinę kontrolę?",SESSION_REQUEST_DESCRIPTION:"Pagalbos agentas norėtų laikinai naudotis šiuo tinklapiu kartu su jumis.",SESSION_REQUEST_TITLE:"Leisti bendrą naršymą?",UNIVERSAL_PROXY_BLOCKED:"Šio puslapio negalima peržiūrėti su palaikymo agentu",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Pagalbos agentas norėtų jus sekti į kitas interneto svetaines.",UNIVERSAL_PROXY_REQUEST_TITLE:"Leisti tęsti sesiją?"},mr:{ALLOW:"परवानगी द्या",CALLING_ACCEPT:"स्वीकार करा",CALLING_AGENT_DECLINED:"एजंटने कॉल नाकारली",CALLING_AGENT_WAITING:"एजंटची वाट पाहत आहे...",CALLING_BACK:"मागे",CALLING_CAMERA_OFF:"कॅमेरा बंद आहे",CALLING_CAMERA_PERMISSION_DENIED:"कॅमेरा प्रवेश नाकारण्यात आला. आपल्या ब्राउझरच्या सेटिंग्जमध्ये याला सक्षम करा.",CALLING_CAMERA_PERMISSION_PROMPT:"कॅमेऱ्याला प्रवेश देणे",CALLING_CAMERA_STARTING:"कॅमेरा सुरू होत आहे",CALLING_CANCEL:"रद्द करा",CALLING_DISABLE_AUDIO:"ऑडिओ अक्षम करा",CALLING_DISABLE_VIDEO:"व्हिडिओ अक्षम करा",CALLING_ENABLE_AUDIO:"ऑडिओ सक्षम करा",CALLING_ENABLE_VIDEO:"व्हिडिओ सक्षम करा",CALLING_END:"कॉल संपवा",CALLING_IN_PROGRESS:"व्हिडिओ कॉल मध्ये प्रवेश करीत आहे",CALLING_JOIN:"कॉलमध्ये सामील व्हा",CALLING_JOIN_PROMPT:"एक समर्थन एजंट आपल्याशी बोलू इच्छितो.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"मला",CALLING_MICROPHONE_PERMISSION_DENIED:"माइक्रोफोन प्रवेश नाकारला गेला आहे. आपल्या ब्राउझर सेटिंग्जमध्ये ते सक्षम करा.",CALLING_MICROPHONE_PERMISSION_PROMPT:"मायक्रोफोनसाठी प्रवेशाची परवानगी द्या",CALLING_NO_DEVICES:"शून्य",CALLING_PERMISSION_NEEDED:"अनुमती आवश्यक आहे",CALLING_REJECT:"कॉल नाकारणे",CALLING_REJOIN_PROMPT:"आपण सध्या समर्थन एजंटसोबत कॉलवर आहात. आपण पुन्हा जोडू इच्छिता?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"एजंट",CALLING_REQUEST:"व्हिडिओ कॉलमध्ये प्रवेश करायचा आहे का?",CALLING_RETRY:"पुन्हा प्रयत्न करा",CALLING_SAVE:"जतन करा",CALLING_SELECT_CAMERA:"कॅमेरा निवडा",CALLING_SELECT_MICROPHONE:"माइक्रोफोन निवडा",CALLING_SELECT_SPEAKER:"वक्ता निवडा",CALLING_SHOW_CALL_SETTINGS:"कॉल सेटिंग्ज दाखवा",DENY:"नकार द्या",END_SESSION:"कोब्राउझ सत्र समाप्त करा",FULL_DEVICE_REQUEST_DESCRIPTION:"सपोर्ट एजंट तुमची संपूर्ण स्क्रीन पाहू इच्छितो.",FULL_DEVICE_REQUEST_TITLE:"पूर्ण स्क्रीन कॅप्चरला परवानगी द्यायची?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"एक सहाय्यक एजंट या पृष्ठावर नियंत्रण ठेवण्यास आवडेल.",REMOTE_CONTROL_REQUEST_TITLE:"रिमोट कंट्रोलला परवानगी द्यायची?",SESSION_REQUEST_DESCRIPTION:"सपोर्ट एजंट हे वेब पेज तुमच्यासोबत तात्पुरते वापरू इच्छितो.",SESSION_REQUEST_TITLE:"कोब्राउझिंगला परवानगी द्यायची?",UNIVERSAL_PROXY_BLOCKED:"हे वेब पेज समर्थन एजंटसोबत पाहिले जाऊ शकत नाही",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"एक समर्थन एजंट तुमचा इतर वेब पृष्ठांवर पाठपुरावा करू इच्छितो.",UNIVERSAL_PROXY_REQUEST_TITLE:"सत्र सातत्याला परवानगी द्यायची?"},ms:{ALLOW:"Benarkan",CALLING_ACCEPT:"Terima",CALLING_AGENT_DECLINED:"Panggilan ditolak oleh ejen",CALLING_AGENT_WAITING:"Menunggu ejen...",CALLING_BACK:"Kembali",CALLING_CAMERA_OFF:"Kamera dimatikan",CALLING_CAMERA_PERMISSION_DENIED:"Akses kamera dinafi. Aktifkannya dalam tetapan pelayar anda.",CALLING_CAMERA_PERMISSION_PROMPT:"Benarkan akses ke kamera",CALLING_CAMERA_STARTING:"Kamera sedang dimulakan",CALLING_CANCEL:"Batal",CALLING_DISABLE_AUDIO:"Lumpuhkan audio",CALLING_DISABLE_VIDEO:"Lumpuhkan video",CALLING_ENABLE_AUDIO:"Dayakan audio",CALLING_ENABLE_VIDEO:"Dayakan video",CALLING_END:"Tamatkan panggilan",CALLING_IN_PROGRESS:"Memasuki panggilan video",CALLING_JOIN:"Sertai panggilan",CALLING_JOIN_PROMPT:"Ejen sokongan ingin menghubungi anda.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Saya",CALLING_MICROPHONE_PERMISSION_DENIED:"Akses mikrofon ditolak. Aktifkan dalam tetapan pelayar anda.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Benarkan akses ke mikrofon",CALLING_NO_DEVICES:"Tiada",CALLING_PERMISSION_NEEDED:"Kebenaran diperlukan",CALLING_REJECT:"Tolak panggilan",CALLING_REJOIN_PROMPT:"Anda sedang dalam panggilan aktif dengan ejen sokongan. Adakah anda ingin menyertai semula?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Ejen",CALLING_REQUEST:"Masuk panggilan video?",CALLING_RETRY:"Cuba semula",CALLING_SAVE:"Simpan",CALLING_SELECT_CAMERA:"Pilih kamera",CALLING_SELECT_MICROPHONE:"Pilih mikrofon",CALLING_SELECT_SPEAKER:"Pilih pembesar suara",CALLING_SHOW_CALL_SETTINGS:"Tunjukkan tetapan panggilan",DENY:"Tolak",END_SESSION:"Berhenti Berkongsi",FULL_DEVICE_REQUEST_DESCRIPTION:"Ejen sokongan ingin melihat seluruh skrin anda.",FULL_DEVICE_REQUEST_TITLE:"Benarkan rakaman skrin penuh?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Ejen sokongan ingin mengawal halaman ini.",REMOTE_CONTROL_REQUEST_TITLE:"Benarkan kawalan jauh?",SESSION_REQUEST_DESCRIPTION:"Ejen sokongan ingin menggunakan halaman web ini dengan anda buat sementara waktu.",SESSION_REQUEST_TITLE:"Benarkan cobrowsing?",UNIVERSAL_PROXY_BLOCKED:"Halaman web ini tidak dapat dilihat bersama ejen sokongan",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Ejen sokongan ingin mengikuti anda ke halaman web lain.",UNIVERSAL_PROXY_REQUEST_TITLE:"Benarkan sambungan sesi?"},nl:{ALLOW:"Toestaan",CALLING_ACCEPT:"Accepteren",CALLING_AGENT_DECLINED:"Oproep geweigerd door agent",CALLING_AGENT_WAITING:"Wachten op agent...",CALLING_BACK:"Terug",CALLING_CAMERA_OFF:"Camera is uit",CALLING_CAMERA_PERMISSION_DENIED:"Toegang tot camera geweigerd. Schakel deze in de instellingen van uw browser in.",CALLING_CAMERA_PERMISSION_PROMPT:"Toegang tot camera toestaan",CALLING_CAMERA_STARTING:"Camera wordt gestart",CALLING_CANCEL:"Annuleren",CALLING_DISABLE_AUDIO:"Audio uitschakelen",CALLING_DISABLE_VIDEO:"Video uitschakelen",CALLING_ENABLE_AUDIO:"Audio inschakelen",CALLING_ENABLE_VIDEO:"Video inschakelen",CALLING_END:"Oproep beëindigen",CALLING_IN_PROGRESS:"In gesprek met video bellen",CALLING_JOIN:"Deelnemen aan oproep",CALLING_JOIN_PROMPT:"Een supportmedewerker wil u bellen.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Ik",CALLING_MICROPHONE_PERMISSION_DENIED:"Microfoon toegang geweigerd. Schakel dit in uw browserinstellingen in.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Toegang tot microfoon toestaan",CALLING_NO_DEVICES:"Geen",CALLING_PERMISSION_NEEDED:"Toestemming vereist",CALLING_REJECT:"Oproep weigeren",CALLING_REJOIN_PROMPT:"U bent in gesprek met een supportmedewerker. Wilt u opnieuw deelnemen?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agent",CALLING_REQUEST:"Video-oproep starten?",CALLING_RETRY:"Opnieuw proberen",CALLING_SAVE:"Opslaan",CALLING_SELECT_CAMERA:"Selecteer camera",CALLING_SELECT_MICROPHONE:"Selecteer microfoon",CALLING_SELECT_SPEAKER:"Selecteer spreker",CALLING_SHOW_CALL_SETTINGS:"Toon oproepinstellingen",DENY:"Afwijzen",END_SESSION:"Cobrowse-sessie beëindigen",FULL_DEVICE_REQUEST_DESCRIPTION:"Een support agent wilt jouw volledige scherm zien.",FULL_DEVICE_REQUEST_TITLE:"Volledige schermopname toestaan?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Een support agent wilt graag deze pagina bedienen.",REMOTE_CONTROL_REQUEST_TITLE:"Bediening op afstand toestaan?",SESSION_REQUEST_DESCRIPTION:"Een support agent wilt graag tijdelijk met u meekijken op deze webpagina.",SESSION_REQUEST_TITLE:"Cobrowsing toestaan?",UNIVERSAL_PROXY_BLOCKED:"Deze webpagina kan niet worden bekeken met een support agent",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Een support agent wilt u graag volgen naar andere webpagina's.",UNIVERSAL_PROXY_REQUEST_TITLE:"Sessievoortzetting toestaan?"},pl:{ALLOW:"Umożliwić",CALLING_ACCEPT:"Akceptuj",CALLING_AGENT_DECLINED:"Połączenie odrzucone przez agenta",CALLING_AGENT_WAITING:"Oczekiwanie na agenta...",CALLING_BACK:"Wstecz",CALLING_CAMERA_OFF:"Kamera jest wyłączona",CALLING_CAMERA_PERMISSION_DENIED:"Odmowa dostępu do kamery. Włącz ją w ustawieniach przeglądarki.",CALLING_CAMERA_PERMISSION_PROMPT:"Zezwól na dostęp do kamery",CALLING_CAMERA_STARTING:"Kamera się uruchamia",CALLING_CANCEL:"Anuluj",CALLING_DISABLE_AUDIO:"Wyłącz dźwięk",CALLING_DISABLE_VIDEO:"Wyłącz wideo",CALLING_ENABLE_AUDIO:"Włącz dźwięk",CALLING_ENABLE_VIDEO:"Włącz wideo",CALLING_END:"Zakończ rozmowę",CALLING_IN_PROGRESS:"Rozpoczynanie połączenia wideo",CALLING_JOIN:"Dołącz do rozmowy",CALLING_JOIN_PROMPT:"Agent wsparcia chciałby do Ciebie zadzwonić.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Ja",CALLING_MICROPHONE_PERMISSION_DENIED:"Dostęp do mikrofonu został odmówiony. Włącz go w ustawieniach przeglądarki.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Zezwól na dostęp do mikrofonu",CALLING_NO_DEVICES:"Brak",CALLING_PERMISSION_NEEDED:"Wymagana zgoda",CALLING_REJECT:"Odrzuć połączenie",CALLING_REJOIN_PROMPT:"Masz aktywne połączenie z agentem wsparcia. Czy chcesz dołączyć ponownie?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agent",CALLING_REQUEST:"Rozpocząć rozmowę wideo?",CALLING_RETRY:"Ponów próbę",CALLING_SAVE:"Zapisz",CALLING_SELECT_CAMERA:"Wybierz kamerę",CALLING_SELECT_MICROPHONE:"Wybierz mikrofon",CALLING_SELECT_SPEAKER:"Wybierz głośnik",CALLING_SHOW_CALL_SETTINGS:"Pokaż ustawienia połączenia",DENY:"Zaprzeczyć",END_SESSION:"Zakończ sesję Cobrowse",FULL_DEVICE_REQUEST_DESCRIPTION:"Pracownik działu pomocy chciałby zobaczyć cały Twój ekran.",FULL_DEVICE_REQUEST_TITLE:"Czy zezwolić na pełne przechwycenie ekranu?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Pracownik działu pomocy chciałby kontrolować tę stronę.",REMOTE_CONTROL_REQUEST_TITLE:"Czy zezwolić na zdalne sterowanie?",SESSION_REQUEST_DESCRIPTION:"Pracownik działu pomocy chciałby tymczasowo korzystać z tej strony internetowej razem z Tobą.",SESSION_REQUEST_TITLE:"Czy zezwolić na cobrowsing?",UNIVERSAL_PROXY_BLOCKED:"Ta strona internetowa nie może być oglądana z pracownikiem działu pomocy",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Pracownik działu pomocy chciałby podążać za Tobą na inne strony internetowe.",UNIVERSAL_PROXY_REQUEST_TITLE:"Czy zezwolić na kontynuację sesji?"},pt:{ALLOW:"Permitir",CALLING_ACCEPT:"Aceitar",CALLING_AGENT_DECLINED:"Chamada recusada pelo agente",CALLING_AGENT_WAITING:"À espera do agente...",CALLING_BACK:"Voltar",CALLING_CAMERA_OFF:"Câmara desligada",CALLING_CAMERA_PERMISSION_DENIED:"Acesso à câmara negado. Ative-o nas definições do seu navegador.",CALLING_CAMERA_PERMISSION_PROMPT:"Permitir acesso à câmara",CALLING_CAMERA_STARTING:"Câmara a iniciar-se",CALLING_CANCEL:"Cancelar",CALLING_DISABLE_AUDIO:"Desativar áudio",CALLING_DISABLE_VIDEO:"Desativar vídeo",CALLING_ENABLE_AUDIO:"Ativar áudio",CALLING_ENABLE_VIDEO:"Ativar vídeo",CALLING_END:"Terminar chamada",CALLING_IN_PROGRESS:"Entrando na chamada de vídeo",CALLING_JOIN:"Entrar na chamada",CALLING_JOIN_PROMPT:"Um agente de suporte gostaria de lhe telefonar.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Eu",CALLING_MICROPHONE_PERMISSION_DENIED:"Acesso ao microfone negado. Ative-o nas definições do seu navegador.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Permitir acesso ao microfone",CALLING_NO_DEVICES:"Nenhum",CALLING_PERMISSION_NEEDED:"Permissão necessária",CALLING_REJECT:"Recusar chamada",CALLING_REJOIN_PROMPT:"Tem uma chamada ativa com um agente de suporte. Deseja voltar a participar?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agente",CALLING_REQUEST:"Entrar na chamada de vídeo?",CALLING_RETRY:"Tentar novamente",CALLING_SAVE:"Guardar",CALLING_SELECT_CAMERA:"Selecionar câmara",CALLING_SELECT_MICROPHONE:"Selecionar microfone",CALLING_SELECT_SPEAKER:"Selecionar orador",CALLING_SHOW_CALL_SETTINGS:"Mostrar definições de chamada",DENY:"Negado",END_SESSION:"Terminar Sessão de Cobrowse",FULL_DEVICE_REQUEST_DESCRIPTION:"Um agente de suporte gostaria de ver sua tela inteira.",FULL_DEVICE_REQUEST_TITLE:"Permitir captura completa de ecrã?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Um agente de suporte gostaria de controlar esta página.",REMOTE_CONTROL_REQUEST_TITLE:"Permitir controlo remoto?",SESSION_REQUEST_DESCRIPTION:"Um agente de suporte gostaria de usar temporariamente esta página da web com você.",SESSION_REQUEST_TITLE:"Permitir cobrowsing?",UNIVERSAL_PROXY_BLOCKED:"Esta página da web não pode ser visualizada com um agente de suporte",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Um agente de suporte gostaria de segui-lo para outras páginas da web.",UNIVERSAL_PROXY_REQUEST_TITLE:"Permitir continuação da sessão?"},"pt-BR":{ALLOW:"Permitir",CALLING_ACCEPT:"Aceitar",CALLING_AGENT_DECLINED:"Chamada rejeitada pelo agente",CALLING_AGENT_WAITING:"Aguardando o agente...",CALLING_BACK:"Voltar",CALLING_CAMERA_OFF:"Câmera está desligada",CALLING_CAMERA_PERMISSION_DENIED:"Acesso à câmera negado. Ative-o nas configurações do seu navegador.",CALLING_CAMERA_PERMISSION_PROMPT:"Permitir acesso à câmera",CALLING_CAMERA_STARTING:"A câmera está iniciando",CALLING_CANCEL:"Cancelar",CALLING_DISABLE_AUDIO:"Desativar áudio",CALLING_DISABLE_VIDEO:"Desativar vídeo",CALLING_ENABLE_AUDIO:"Ativar áudio",CALLING_ENABLE_VIDEO:"Ativar vídeo",CALLING_END:"Encerrar chamada",CALLING_IN_PROGRESS:"Entrando na chamada de vídeo",CALLING_JOIN:"Entrar na chamada",CALLING_JOIN_PROMPT:"Um agente de suporte gostaria de ligar para você.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Eu",CALLING_MICROPHONE_PERMISSION_DENIED:"Acesso ao microfone negado. Ative-o nas configurações do seu navegador.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Permitir acesso ao microfone",CALLING_NO_DEVICES:"Nenhum",CALLING_PERMISSION_NEEDED:"Permissão necessária",CALLING_REJECT:"Rejeitar chamada",CALLING_REJOIN_PROMPT:"Você está em uma ligação ativa com um agente de suporte. Deseja retornar?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agente",CALLING_REQUEST:"Entrar na chamada de vídeo?",CALLING_RETRY:"Tentar novamente",CALLING_SAVE:"Salvar",CALLING_SELECT_CAMERA:"Selecionar câmera",CALLING_SELECT_MICROPHONE:"Selecionar microfone",CALLING_SELECT_SPEAKER:"Selecionar orador",CALLING_SHOW_CALL_SETTINGS:"Mostrar configurações de chamada",DENY:"Negar",END_SESSION:"Terminar Sessão de Cobrowse",FULL_DEVICE_REQUEST_DESCRIPTION:"Um agente de suporte gostaria de ver sua tela inteira.",FULL_DEVICE_REQUEST_TITLE:"Permitir captura completa de tela?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Um agente de suporte gostaria de controlar esta página.",REMOTE_CONTROL_REQUEST_TITLE:"Permitir controle remoto?",SESSION_REQUEST_DESCRIPTION:"Um agente de suporte gostaria de usar temporariamente esta página da web com você.",SESSION_REQUEST_TITLE:"Permitir cobrowsing?",UNIVERSAL_PROXY_BLOCKED:"Esta página da web não pode ser visualizada com um agente de suporte",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Um agente de suporte gostaria de segui-lo para outras páginas da web.",UNIVERSAL_PROXY_REQUEST_TITLE:"Permitir continuação da sessão?"},ro:{ALLOW:"Permite",CALLING_ACCEPT:"Acceptă",CALLING_AGENT_DECLINED:"Apel respins de agent",CALLING_AGENT_WAITING:"Așteptând agentul...",CALLING_BACK:"Înapoi",CALLING_CAMERA_OFF:"Camera este oprită",CALLING_CAMERA_PERMISSION_DENIED:"Accesul la cameră a fost refuzat. Activați-l în setările browserului dvs.",CALLING_CAMERA_PERMISSION_PROMPT:"Permiteți accesul la cameră",CALLING_CAMERA_STARTING:"Camera pornește",CALLING_CANCEL:"Anulează",CALLING_DISABLE_AUDIO:"Dezactivează audio-ul",CALLING_DISABLE_VIDEO:"Dezactivează video-ul",CALLING_ENABLE_AUDIO:"Activează audio",CALLING_ENABLE_VIDEO:"Activează video-ul",CALLING_END:"Încheiere apel",CALLING_IN_PROGRESS:"Se inițiază apel video",CALLING_JOIN:"Alăturați-vă apelului",CALLING_JOIN_PROMPT:"Un agent de suport ar dori să vă contacteze telefonic.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Eu",CALLING_MICROPHONE_PERMISSION_DENIED:"Accesul la microfon a fost refuzat. Activați-l în setările browserului dumneavoastră.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Permite accesul la microfon",CALLING_NO_DEVICES:"Niciunul",CALLING_PERMISSION_NEEDED:"Permisiune necesară",CALLING_REJECT:"Respinge apelul",CALLING_REJOIN_PROMPT:"Aveți un apel activ cu un agent de suport. Doriți să vă reconectați?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agent",CALLING_REQUEST:"Doriți să intrați în apelul video?",CALLING_RETRY:"Reîncearcă",CALLING_SAVE:"Salvează",CALLING_SELECT_CAMERA:"Selectați camera",CALLING_SELECT_MICROPHONE:"Selectați microfonul",CALLING_SELECT_SPEAKER:"Selectați difuzorul",CALLING_SHOW_CALL_SETTINGS:"Afișați setările apelului",DENY:"Refuză",END_SESSION:"Opriți partajarea",FULL_DEVICE_REQUEST_DESCRIPTION:"Un agent de asistență dorește să vadă întreg ecranul dumneavoastră.",FULL_DEVICE_REQUEST_TITLE:"Permite capturarea ecranului complet?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Un agent de suport dorește să controleze această pagină.",REMOTE_CONTROL_REQUEST_TITLE:"Permite controlul de la distanță?",SESSION_REQUEST_DESCRIPTION:"Un agent de asistență dorește să utilizeze temporar această pagină web împreună cu dumneavoastră.",SESSION_REQUEST_TITLE:"Permiteți cobrowsing-ul?",UNIVERSAL_PROXY_BLOCKED:"Această pagină web nu poate fi vizualizată împreună cu un agent de asistență",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Un agent de suport dorește să vă urmărească pe alte pagini web.",UNIVERSAL_PROXY_REQUEST_TITLE:"Permiteți continuarea sesiunii?"},ru:{ALLOW:"Разрешить",CALLING_ACCEPT:"Принять",CALLING_AGENT_DECLINED:"Звонок отклонён агентом",CALLING_AGENT_WAITING:"Ожидание агента...",CALLING_BACK:"Назад",CALLING_CAMERA_OFF:"Камера выключена",CALLING_CAMERA_PERMISSION_DENIED:"Доступ к камере запрещён. Включите его в настройках вашего браузера.",CALLING_CAMERA_PERMISSION_PROMPT:"Разрешить доступ к камере",CALLING_CAMERA_STARTING:"Камера запускается",CALLING_CANCEL:"Отменить",CALLING_DISABLE_AUDIO:"Отключить аудио",CALLING_DISABLE_VIDEO:"Отключить видео",CALLING_ENABLE_AUDIO:"Включить аудио",CALLING_ENABLE_VIDEO:"Включить видео",CALLING_END:"Завершить звонок",CALLING_IN_PROGRESS:"Вход в видеозвонок",CALLING_JOIN:"Присоединиться к звонку",CALLING_JOIN_PROMPT:"Служба поддержки хочет вам позвонить.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Я",CALLING_MICROPHONE_PERMISSION_DENIED:"Доступ к микрофону запрещён. Включите его в настройках браузера.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Разрешить доступ к микрофону",CALLING_NO_DEVICES:"Нет",CALLING_PERMISSION_NEEDED:"Требуется разрешение",CALLING_REJECT:"Отклонить вызов",CALLING_REJOIN_PROMPT:"У вас активный звонок с агентом поддержки. Хотите присоединиться снова?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Агент",CALLING_REQUEST:"Начать видеозвонок?",CALLING_RETRY:"Повторить попытку",CALLING_SAVE:"Сохранить",CALLING_SELECT_CAMERA:"Выберите камеру",CALLING_SELECT_MICROPHONE:"Выберите микрофон",CALLING_SELECT_SPEAKER:"Выбрать динамик",CALLING_SHOW_CALL_SETTINGS:"Показать настройки вызова",DENY:"Отказать",END_SESSION:"Завершить сеанс совместного просмотра",FULL_DEVICE_REQUEST_DESCRIPTION:"Сотрудник службы поддержки хотел бы просмотреть весь экран.",FULL_DEVICE_REQUEST_TITLE:"Разрешить полный захват экрана?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Агент поддержки хотел бы контролировать эту страницу.",REMOTE_CONTROL_REQUEST_TITLE:"Разрешить дистанционное управление?",SESSION_REQUEST_DESCRIPTION:"Агент службы поддержки хотел бы временно использовать эту веб-страницу с вами.",SESSION_REQUEST_TITLE:"Разрешить кобраузинг?",UNIVERSAL_PROXY_BLOCKED:"Эта веб-страница не может быть просмотрена с агентом поддержки",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Агент поддержки хотел бы следовать за вами на другие веб-страницы.",UNIVERSAL_PROXY_REQUEST_TITLE:"Разрешить продолжение сеанса?"},sk:{ALLOW:"Povoliť",CALLING_ACCEPT:"Prijať",CALLING_AGENT_DECLINED:"Hovor odmietol agent",CALLING_AGENT_WAITING:"Čakanie na agenta...",CALLING_BACK:"Späť",CALLING_CAMERA_OFF:"Kamera je vypnutá",CALLING_CAMERA_PERMISSION_DENIED:"Prístup ku kamere odmietnutý. Povoliť ho v nastaveniach prehliadača.",CALLING_CAMERA_PERMISSION_PROMPT:"Povoliť prístup ku kamere",CALLING_CAMERA_STARTING:"Kamera sa spúšťa",CALLING_CANCEL:"Zrušiť",CALLING_DISABLE_AUDIO:"Vypnúť zvuk",CALLING_DISABLE_VIDEO:"Zakázať video",CALLING_ENABLE_AUDIO:"Povoliť zvuk",CALLING_ENABLE_VIDEO:"Povoliť video",CALLING_END:"Ukončiť hovor",CALLING_IN_PROGRESS:"Pripájanie k videohovoru",CALLING_JOIN:"Pripojiť sa k hovoru",CALLING_JOIN_PROMPT:"Podporný agent vás chce kontaktovať telefonicky.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Ja",CALLING_MICROPHONE_PERMISSION_DENIED:"Prístup k mikrofónu zamietnutý. Povoliť ho v nastaveniach prehliadača.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Povoliť prístup k mikrofónu",CALLING_NO_DEVICES:"Žiadne",CALLING_PERMISSION_NEEDED:"Vyžaduje sa povolenie",CALLING_REJECT:"Zamietnuť hovor",CALLING_REJOIN_PROMPT:"Máte aktívne volanie s podporným agentom. Chcete sa znova pripojiť?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agent",CALLING_REQUEST:"Vstúpiť do videohovoru?",CALLING_RETRY:"Opakovať pokus",CALLING_SAVE:"Uložiť",CALLING_SELECT_CAMERA:"Vyberte kameru",CALLING_SELECT_MICROPHONE:"Vyberte mikrofón",CALLING_SELECT_SPEAKER:"Vybrať reproduktora",CALLING_SHOW_CALL_SETTINGS:"Zobraziť nastavenia hovoru",DENY:"Odmietnuť",END_SESSION:"Zastaviť zdieľanie",FULL_DEVICE_REQUEST_DESCRIPTION:"Podporný agent si želá zobraziť celú vašu obrazovku.",FULL_DEVICE_REQUEST_TITLE:"Povoliť úplné snímanie obrazovky?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Podporný agent by chcel ovládať túto stránku.",REMOTE_CONTROL_REQUEST_TITLE:"Povoliť vzdialenú správu?",SESSION_REQUEST_DESCRIPTION:"Podporný agent by chcel dočasne používať túto webovú stránku spolu s vami.",SESSION_REQUEST_TITLE:"Povoliť spolusurfovanie?",UNIVERSAL_PROXY_BLOCKED:"Túto webovú stránku nie je možné zobraziť so servisným agentom",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Podporný agent by vás rád sledoval na ďalšie webové stránky.",UNIVERSAL_PROXY_REQUEST_TITLE:"Povoliť pokračovanie relácie?"},sl:{ALLOW:"Dovoli",CALLING_ACCEPT:"Sprejmi",CALLING_AGENT_DECLINED:"Klic je agent zavrnil",CALLING_AGENT_WAITING:"Čakam na agenta...",CALLING_BACK:"Nazaj",CALLING_CAMERA_OFF:"Kamera je izklopljena",CALLING_CAMERA_PERMISSION_DENIED:"Dostop do kamere zavrnjen. Omogočite ga v nastavitvah brskalnika.",CALLING_CAMERA_PERMISSION_PROMPT:"Dovoli dostop do kamere",CALLING_CAMERA_STARTING:"Kamera se začenja",CALLING_CANCEL:"Prekliči",CALLING_DISABLE_AUDIO:"Onemogoči zvok",CALLING_DISABLE_VIDEO:"Onemogoči video",CALLING_ENABLE_AUDIO:"Omogoči zvok",CALLING_ENABLE_VIDEO:"Omogoči video",CALLING_END:"Končaj klic",CALLING_IN_PROGRESS:"Vstop v video klic",CALLING_JOIN:"Pridruži se klicu",CALLING_JOIN_PROMPT:"Podporni agent vas želi poklicati.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Jaz",CALLING_MICROPHONE_PERMISSION_DENIED:"Dostop do mikrofona zavrnjen. Omogočite ga v nastavitvah brskalnika.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Dovoli dostop do mikrofona",CALLING_NO_DEVICES:"Noben",CALLING_PERMISSION_NEEDED:"Potrebna dovoljenja",CALLING_REJECT:"Zavrni klic",CALLING_REJOIN_PROMPT:"Imate aktivni klic s podporo. Želite ponovno pristopiti?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agent",CALLING_REQUEST:"Želite vstopiti v video klic?",CALLING_RETRY:"Poskusi znova",CALLING_SAVE:"Shrani",CALLING_SELECT_CAMERA:"Izberite kamero",CALLING_SELECT_MICROPHONE:"Izberite mikrofon",CALLING_SELECT_SPEAKER:"Izberite zvočnika",CALLING_SHOW_CALL_SETTINGS:"Prikaži nastavitve klica",DENY:"Zanikati",END_SESSION:"Končaj sejo Cobrowse",FULL_DEVICE_REQUEST_DESCRIPTION:"Agent za podporo si želi ogledati vaš celoten zaslon.",FULL_DEVICE_REQUEST_TITLE:"Dovoliti zajemanje celotnega zaslona?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Podporni agent želi nadzorovati to stran.",REMOTE_CONTROL_REQUEST_TITLE:"Dovoliti daljinsko upravljanje?",SESSION_REQUEST_DESCRIPTION:"Agent za podporo želi začasno uporabljati to spletno stran z vami.",SESSION_REQUEST_TITLE:"Dovoliti cobrowsing?",UNIVERSAL_PROXY_BLOCKED:"Ta spletna stran se ne more ogledovati z agentom za podporo",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Agent za podporo vas želi slediti na druge spletne strani.",UNIVERSAL_PROXY_REQUEST_TITLE:"Dovoliti nadaljevanje seje?"},sv:{ALLOW:"Tillåt",CALLING_ACCEPT:"Acceptera",CALLING_AGENT_DECLINED:"Samtal avvisades av agenten",CALLING_AGENT_WAITING:"Väntar på agent...",CALLING_BACK:"Tillbaka",CALLING_CAMERA_OFF:"Kameran är avstängd",CALLING_CAMERA_PERMISSION_DENIED:"Kameratillgång nekad. Aktivera den i dina webbläsarinställningar.",CALLING_CAMERA_PERMISSION_PROMPT:"Tillåt åtkomst till kamera",CALLING_CAMERA_STARTING:"Kameran startar",CALLING_CANCEL:"Avbryt",CALLING_DISABLE_AUDIO:"Inaktivera ljud",CALLING_DISABLE_VIDEO:"Inaktivera video",CALLING_ENABLE_AUDIO:"Aktivera ljud",CALLING_ENABLE_VIDEO:"Aktivera video",CALLING_END:"Avsluta samtal",CALLING_IN_PROGRESS:"Ansluter till videosamtal",CALLING_JOIN:"Gå med i samtal",CALLING_JOIN_PROMPT:"En supportagent vill ringa dig.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Jag",CALLING_MICROPHONE_PERMISSION_DENIED:"Mikrofontillgång nekad. Aktivera den i din webbläsarinställningar.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Tillåt åtkomst till mikrofonen",CALLING_NO_DEVICES:"Ingen",CALLING_PERMISSION_NEEDED:"Behörighet krävs",CALLING_REJECT:"Avvisa samtal",CALLING_REJOIN_PROMPT:"Du har ett aktivt samtal med en supportagent. Vill du ansluta igen?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Agent",CALLING_REQUEST:"Starta videosamtal?",CALLING_RETRY:"Försök igen",CALLING_SAVE:"Spara",CALLING_SELECT_CAMERA:"Välj kamera",CALLING_SELECT_MICROPHONE:"Välj mikrofon",CALLING_SELECT_SPEAKER:"Välj talare",CALLING_SHOW_CALL_SETTINGS:"Visa samtalsinställningar",DENY:"Neka",END_SESSION:"Sluta dela",FULL_DEVICE_REQUEST_DESCRIPTION:"En supportagent vill se hela din skärm.",FULL_DEVICE_REQUEST_TITLE:"Tillåt fullskärmsinspelning?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"En supportagent vill kontrollera denna sida.",REMOTE_CONTROL_REQUEST_TITLE:"Tillåt fjärrstyrning?",SESSION_REQUEST_DESCRIPTION:"En supportagent vill tillfälligt använda denna webbsida tillsammans med dig.",SESSION_REQUEST_TITLE:"Tillåt samvisning?",UNIVERSAL_PROXY_BLOCKED:"Den här webbsidan kan inte visas tillsammans med en supportagent",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"En supportagent vill följa dig till andra webbsidor.",UNIVERSAL_PROXY_REQUEST_TITLE:"Tillåt sessionens fortsättning?"},th:{ALLOW:"อนุญาต",CALLING_ACCEPT:"ยอมรับ",CALLING_AGENT_DECLINED:"การโทรถูกปฏิเสธโดยเจ้าหน้าที่",CALLING_AGENT_WAITING:"กำลังรอตัวแทน...",CALLING_BACK:"กลับ",CALLING_CAMERA_OFF:"กล้องปิดอยู่",CALLING_CAMERA_PERMISSION_DENIED:"ไม่อนุญาตให้เข้าถึงกล้อง โปรดเปิดใช้งานในการตั้งค่าเบราว์เซอร์ของคุณ",CALLING_CAMERA_PERMISSION_PROMPT:"อนุญาตให้เข้าถึงกล้อง",CALLING_CAMERA_STARTING:"กำลังเริ่มกล้อง",CALLING_CANCEL:"ยกเลิก",CALLING_DISABLE_AUDIO:"ปิดเสียง",CALLING_DISABLE_VIDEO:"ปิดวิดีโอ",CALLING_ENABLE_AUDIO:"เปิดใช้งานเสียง",CALLING_ENABLE_VIDEO:"เปิดใช้งานวิดีโอ",CALLING_END:"สิ้นสุดการโทร",CALLING_IN_PROGRESS:"กำลังเข้าร่วมการโทรวิดีโอ",CALLING_JOIN:"เข้าร่วมการโทร",CALLING_JOIN_PROMPT:"เจ้าหน้าที่ฝ่ายสนับสนุนต้องการโทรหาคุณ",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"ฉัน",CALLING_MICROPHONE_PERMISSION_DENIED:"ปฏิเสธการเข้าถึงไมโครโฟน เปิดใช้งานได้ที่การตั้งค่าเบราว์เซอร์ของคุณ",CALLING_MICROPHONE_PERMISSION_PROMPT:"อนุญาตให้เข้าถึงไมโครโฟน",CALLING_NO_DEVICES:"ไม่มี",CALLING_PERMISSION_NEEDED:"ต้องการสิทธิ์การอนุญาต",CALLING_REJECT:"ปฏิเสธการโทร",CALLING_REJOIN_PROMPT:"คุณกำลังโทรอยู่กับเจ้าหน้าที่ฝ่ายสนับสนุน ต้องการเข้าร่วมใหม่หรือไม่?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"ตัวแทน",CALLING_REQUEST:"เข้าร่วมสายวิดีโอคอลหรือไม่?",CALLING_RETRY:"ลองใหม่อีกครั้ง",CALLING_SAVE:"บันทึก",CALLING_SELECT_CAMERA:"เลือกกล้อง",CALLING_SELECT_MICROPHONE:"เลือกไมโครโฟน",CALLING_SELECT_SPEAKER:"เลือกผู้พูด",CALLING_SHOW_CALL_SETTINGS:"แสดงการตั้งค่าการโทร",DENY:"ปฏิเสธ",END_SESSION:"หยุดแชร์",FULL_DEVICE_REQUEST_DESCRIPTION:"ตัวแทนฝ่ายสนับสนุนต้องการดูหน้าจอของคุณทั้งหมด",FULL_DEVICE_REQUEST_TITLE:"อนุญาตให้จับภาพหน้าจอแบบเต็มจอหรือไม่?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"ตัวแทนฝ่ายสนับสนุนต้องการควบคุมหน้านี้",REMOTE_CONTROL_REQUEST_TITLE:"อนุญาตให้ควบคุมระยะไกลได้หรือไม่?",SESSION_REQUEST_DESCRIPTION:"ตัวแทนสนับสนุนต้องการใช้หน้าเว็บนี้กับคุณชั่วคราว",SESSION_REQUEST_TITLE:"อนุญาตให้ร่วมท่องเว็บไหม?",UNIVERSAL_PROXY_BLOCKED:"ไม่สามารถดูหน้าเว็บนี้กับเจ้าหน้าที่สนับสนุนได้",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"ตัวแทนฝ่ายสนับสนุนต้องการติดตามคุณไปยังหน้าเว็บอื่น ๆ",UNIVERSAL_PROXY_REQUEST_TITLE:"อนุญาตให้ดำเนินการต่อเซสชันไหม?"},"th-TH":{ALLOW:"อนุญาต",CALLING_ACCEPT:"ยอมรับ",CALLING_AGENT_DECLINED:"การโทรถูกปฏิเสธโดยเจ้าหน้าที่",CALLING_AGENT_WAITING:"กำลังรอตัวแทน...",CALLING_BACK:"ย้อนกลับ",CALLING_CAMERA_OFF:"กล้องปิดอยู่",CALLING_CAMERA_PERMISSION_DENIED:"การเข้าถึงกล้องถูกปฏิเสธ โปรดเปิดใช้งานในการตั้งค่าเบราว์เซอร์ของคุณ",CALLING_CAMERA_PERMISSION_PROMPT:"อนุญาตให้เข้าถึงกล้อง",CALLING_CAMERA_STARTING:"กล้องกำลังเริ่มทำงาน",CALLING_CANCEL:"ยกเลิก",CALLING_DISABLE_AUDIO:"ปิดเสียง",CALLING_DISABLE_VIDEO:"ปิดวิดีโอ",CALLING_ENABLE_AUDIO:"เปิดใช้งานเสียง",CALLING_ENABLE_VIDEO:"เปิดใช้งานวิดีโอ",CALLING_END:"ยุติการโทร",CALLING_IN_PROGRESS:"กำลังเข้าร่วมการโทรวิดีโอ",CALLING_JOIN:"เข้าร่วมการโทร",CALLING_JOIN_PROMPT:"เจ้าหน้าที่สนับสนุนต้องการโทรหาคุณ",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"ฉัน",CALLING_MICROPHONE_PERMISSION_DENIED:"ไม่อนุญาตให้เข้าถึงไมโครโฟน เปิดใช้งานได้ในการตั้งค่าเบราว์เซอร์ของคุณ",CALLING_MICROPHONE_PERMISSION_PROMPT:"อนุญาตให้เข้าถึงไมโครโฟน",CALLING_NO_DEVICES:"ไม่มี",CALLING_PERMISSION_NEEDED:"ต้องการการอนุญาต",CALLING_REJECT:"ปฏิเสธการโทร",CALLING_REJOIN_PROMPT:"คุณกำลังโทรอยู่กับเจ้าหน้าที่สนับสนุน คุณต้องการเข้าร่วมใหม่หรือไม่?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"เจ้าหน้าที่",CALLING_REQUEST:"เข้าร่วมวิดีโอคอล?",CALLING_RETRY:"ลองใหม่อีกครั้ง",CALLING_SAVE:"บันทึก",CALLING_SELECT_CAMERA:"เลือกกล้อง",CALLING_SELECT_MICROPHONE:"เลือกไมโครโฟน",CALLING_SELECT_SPEAKER:"เลือกผู้พูด",CALLING_SHOW_CALL_SETTINGS:"แสดงการตั้งค่าการโทร",DENY:"ปฏิเสธ",END_SESSION:"หยุดแชร์",FULL_DEVICE_REQUEST_DESCRIPTION:"เจ้าหน้าที่ฝ่ายสนับสนุนต้องการดูหน้าจอของคุณทั้งหมด",FULL_DEVICE_REQUEST_TITLE:"อนุญาตให้บันทึกหน้าจอเต็มหรือไม่?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"เจ้าหน้าที่สนับสนุนต้องการควบคุมหน้านี้",REMOTE_CONTROL_REQUEST_TITLE:"อนุญาตการควบคุมระยะไกลหรือไม่?",SESSION_REQUEST_DESCRIPTION:"ตัวแทนฝ่ายสนับสนุนต้องการใช้หน้าเว็บนี้กับคุณเป็นการชั่วคราว",SESSION_REQUEST_TITLE:"อนุญาตให้ใช้โคบราวซิ่งหรือไม่?",UNIVERSAL_PROXY_BLOCKED:"หน้าเว็บนี้ไม่สามารถดูได้พร้อมกับเจ้าหน้าที่สนับสนุน",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"เจ้าหน้าที่ฝ่ายสนับสนุนต้องการติดตามคุณไปยังหน้าเว็บอื่น ๆ",UNIVERSAL_PROXY_REQUEST_TITLE:"อนุญาตให้ดำเนินการเซสชันต่อหรือไม่?"},uk:{ALLOW:"Дозволити",CALLING_ACCEPT:"Прийняти",CALLING_AGENT_DECLINED:"Дзвінок відхилено агентом",CALLING_AGENT_WAITING:"Очікування агента...",CALLING_BACK:"Назад",CALLING_CAMERA_OFF:"Камера вимкнена",CALLING_CAMERA_PERMISSION_DENIED:"Доступ до камери заборонено. Увімкніть його у налаштуваннях браузера.",CALLING_CAMERA_PERMISSION_PROMPT:"Дозволити доступ до камери",CALLING_CAMERA_STARTING:"Камера запускається",CALLING_CANCEL:"Скасувати",CALLING_DISABLE_AUDIO:"Вимкнути звук",CALLING_DISABLE_VIDEO:"Вимкнути відео",CALLING_ENABLE_AUDIO:"Увімкнути звук",CALLING_ENABLE_VIDEO:"Увімкнути відео",CALLING_END:"Завершити дзвінок",CALLING_IN_PROGRESS:"Вхід у відеодзвінок",CALLING_JOIN:"Приєднатися до дзвінка",CALLING_JOIN_PROMPT:"Агент підтримки хоче зателефонувати вам.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Я",CALLING_MICROPHONE_PERMISSION_DENIED:"Доступ до мікрофона заборонено. Увімкніть його в налаштуваннях браузера.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Дозволити доступ до мікрофона",CALLING_NO_DEVICES:"Жоден",CALLING_PERMISSION_NEEDED:"Потрібен дозвіл",CALLING_REJECT:"Відхилити дзвінок",CALLING_REJOIN_PROMPT:"У вас активний дзвінок із агентом підтримки. Бажаєте приєднатися знову?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Агент",CALLING_REQUEST:"Почати відеодзвінок?",CALLING_RETRY:"Повторити спробу",CALLING_SAVE:"Зберегти",CALLING_SELECT_CAMERA:"Вибрати камеру",CALLING_SELECT_MICROPHONE:"Виберіть мікрофон",CALLING_SELECT_SPEAKER:"Вибрати динамік",CALLING_SHOW_CALL_SETTINGS:"Показати налаштування дзвінка",DENY:"Заперечую",END_SESSION:"Завершити сеанс Cobrowse",FULL_DEVICE_REQUEST_DESCRIPTION:"Агент підтримки хотів би переглянути весь ваш екран.",FULL_DEVICE_REQUEST_TITLE:"Дозволити повне захоплення екрана?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Агент підтримки хотів би контролювати цю сторінку.",REMOTE_CONTROL_REQUEST_TITLE:"Дозволити дистанційне керування?",SESSION_REQUEST_DESCRIPTION:"Агент служби підтримки хотів би тимчасово використовувати цю веб-сторінку разом з вами.",SESSION_REQUEST_TITLE:"Дозволити кобраузинг?",UNIVERSAL_PROXY_BLOCKED:"Ця веб-сторінка не може бути переглянута з агентом підтримки",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Агент підтримки хотів би слідувати за вами на інші веб-сторінки.",UNIVERSAL_PROXY_REQUEST_TITLE:"Дозволити продовження сеансу?"},vi:{ALLOW:"Cho phép",CALLING_ACCEPT:"Chấp nhận",CALLING_AGENT_DECLINED:"Cuộc gọi bị đại lý từ chối",CALLING_AGENT_WAITING:"Đang chờ đại lý...",CALLING_BACK:"Quay lại",CALLING_CAMERA_OFF:"Camera đã tắt",CALLING_CAMERA_PERMISSION_DENIED:"Truy cập camera bị từ chối. Hãy bật nó trong cài đặt trình duyệt của bạn.",CALLING_CAMERA_PERMISSION_PROMPT:"Cho phép truy cập camera",CALLING_CAMERA_STARTING:"Máy ảnh đang khởi động",CALLING_CANCEL:"Hủy bỏ",CALLING_DISABLE_AUDIO:"Tắt âm thanh",CALLING_DISABLE_VIDEO:"Vô hiệu hóa video",CALLING_ENABLE_AUDIO:"Bật âm thanh",CALLING_ENABLE_VIDEO:"Bật video",CALLING_END:"Kết thúc cuộc gọi",CALLING_IN_PROGRESS:"Đang tham gia cuộc gọi video",CALLING_JOIN:"Tham gia cuộc gọi",CALLING_JOIN_PROMPT:"Một nhân viên hỗ trợ muốn gọi cho bạn.",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"Tôi",CALLING_MICROPHONE_PERMISSION_DENIED:"Quyền truy cập micro bị từ chối. Vui lòng bật trong cài đặt trình duyệt của bạn.",CALLING_MICROPHONE_PERMISSION_PROMPT:"Cho phép truy cập micro",CALLING_NO_DEVICES:"Không có gì",CALLING_PERMISSION_NEEDED:"Cần quyền truy cập",CALLING_REJECT:"Từ chối cuộc gọi",CALLING_REJOIN_PROMPT:"Bạn đang có một cuộc gọi đang hoạt động với nhân viên hỗ trợ. Bạn có muốn tham gia lại không?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"Đại lý",CALLING_REQUEST:"Tham gia gọi video?",CALLING_RETRY:"Thử lại",CALLING_SAVE:"Lưu",CALLING_SELECT_CAMERA:"Chọn camera",CALLING_SELECT_MICROPHONE:"Chọn micro",CALLING_SELECT_SPEAKER:"Chọn người nói",CALLING_SHOW_CALL_SETTINGS:"Hiển thị cài đặt cuộc gọi",DENY:"Từ chối",END_SESSION:"Kết thúc phiên Cobrowse",FULL_DEVICE_REQUEST_DESCRIPTION:"Một tổng đài viên hỗ trợ muốn xem toàn bộ màn hình của bạn.",FULL_DEVICE_REQUEST_TITLE:"Cho phép chụp toàn bộ màn hình?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"Một tổng đài viên hỗ trợ muốn kiểm soát trang này.",REMOTE_CONTROL_REQUEST_TITLE:"Cho phép điều khiển từ xa?",SESSION_REQUEST_DESCRIPTION:"Một tổng đài viên muốn tạm thời sử dụng trang web này với bạn.",SESSION_REQUEST_TITLE:"Cho phép cobrowsing?",UNIVERSAL_PROXY_BLOCKED:"Trang web này không thể được xem cùng với một tổng đài viên hỗ trợ",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"Một tổng đài viên hỗ trợ muốn theo dõi bạn đến các trang web khác.",UNIVERSAL_PROXY_REQUEST_TITLE:"Cho phép tiếp tục phiên?"},zh:{ALLOW:"允许",CALLING_ACCEPT:"接受",CALLING_AGENT_DECLINED:"客服拒接电话",CALLING_AGENT_WAITING:"等待客服中...",CALLING_BACK:"返回",CALLING_CAMERA_OFF:"摄像头已关闭",CALLING_CAMERA_PERMISSION_DENIED:"摄像头访问被拒绝。请在您的浏览器设置中启用。",CALLING_CAMERA_PERMISSION_PROMPT:"允许访问摄像头",CALLING_CAMERA_STARTING:"摄像头正在启动",CALLING_CANCEL:"取消",CALLING_DISABLE_AUDIO:"禁用音频",CALLING_DISABLE_VIDEO:"禁用视频",CALLING_ENABLE_AUDIO:"启用音频",CALLING_ENABLE_VIDEO:"启用视频",CALLING_END:"结束通话",CALLING_IN_PROGRESS:"进入视频通话",CALLING_JOIN:"加入通话",CALLING_JOIN_PROMPT:"支持代理想要给您打电话。",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"我",CALLING_MICROPHONE_PERMISSION_DENIED:"麦克风访问被拒绝。请在您的浏览器设置中启用。",CALLING_MICROPHONE_PERMISSION_PROMPT:"允许访问麦克风",CALLING_NO_DEVICES:"无",CALLING_PERMISSION_NEEDED:"需要权限",CALLING_REJECT:"拒绝通话",CALLING_REJOIN_PROMPT:"您当前正与一位支持代理通话。您想重新加入吗?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"坐席",CALLING_REQUEST:"开始视频通话?",CALLING_RETRY:"重试",CALLING_SAVE:"保存",CALLING_SELECT_CAMERA:"选择摄像头",CALLING_SELECT_MICROPHONE:"选择麦克风",CALLING_SELECT_SPEAKER:"选择说话者",CALLING_SHOW_CALL_SETTINGS:"显示通话设置",DENY:"拒绝",END_SESSION:"结束共同浏览会话",FULL_DEVICE_REQUEST_DESCRIPTION:"客服代理希望查看您的整个屏幕。",FULL_DEVICE_REQUEST_TITLE:"允许全屏截图?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"客服代理希望控制此页面。",REMOTE_CONTROL_REQUEST_TITLE:"允许远程控制?",SESSION_REQUEST_DESCRIPTION:"客服代理希望与您暂时共享此网页。",SESSION_REQUEST_TITLE:"允许协同浏览?",UNIVERSAL_PROXY_BLOCKED:"此网页无法与客服代理一起查看",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"客服代理希望跟随您访问其他网页。",UNIVERSAL_PROXY_REQUEST_TITLE:"允许会话继续?"},"zh-Hant":{ALLOW:"允許",CALLING_ACCEPT:"接受",CALLING_AGENT_DECLINED:"代理拒接通話",CALLING_AGENT_WAITING:"等待客服中...",CALLING_BACK:"返回",CALLING_CAMERA_OFF:"攝影機已關閉",CALLING_CAMERA_PERMISSION_DENIED:"相機存取被拒。請在瀏覽器設定中啟用。",CALLING_CAMERA_PERMISSION_PROMPT:"允許存取相機",CALLING_CAMERA_STARTING:"攝影機正在啟動",CALLING_CANCEL:"取消",CALLING_DISABLE_AUDIO:"停用音訊",CALLING_DISABLE_VIDEO:"停用影片",CALLING_ENABLE_AUDIO:"啟用音訊",CALLING_ENABLE_VIDEO:"啟用影片",CALLING_END:"結束通話",CALLING_IN_PROGRESS:"進入視訊通話",CALLING_JOIN:"加入通話",CALLING_JOIN_PROMPT:"支援代理想要致電給您。",CALLING_LOCAL_PARTICIPANT_DESCRIPTION:"我",CALLING_MICROPHONE_PERMISSION_DENIED:"麥克風存取被拒。請在您的瀏覽器設定中啟用。",CALLING_MICROPHONE_PERMISSION_PROMPT:"允許存取麥克風",CALLING_NO_DEVICES:"無",CALLING_PERMISSION_NEEDED:"需要權限",CALLING_REJECT:"拒絕通話",CALLING_REJOIN_PROMPT:"您目前正與客服代理通話。您要重新加入嗎?",CALLING_REMOTE_PARTICIPANT_DESCRIPTION:"代理",CALLING_REQUEST:"進入視訊通話?",CALLING_RETRY:"重試",CALLING_SAVE:"儲存",CALLING_SELECT_CAMERA:"選擇攝影機",CALLING_SELECT_MICROPHONE:"選擇麥克風",CALLING_SELECT_SPEAKER:"選擇講者",CALLING_SHOW_CALL_SETTINGS:"顯示通話設定",DENY:"拒絕",END_SESSION:"結束共同瀏覽會話",FULL_DEVICE_REQUEST_DESCRIPTION:"一位支援代理想檢視您的整個畫面。",FULL_DEVICE_REQUEST_TITLE:"允許全螢幕截圖?",REMOTE_CONTROL_REQUEST_DESCRIPTION:"一位支援代理希望控制此頁面。",REMOTE_CONTROL_REQUEST_TITLE:"允許遠程控制?",SESSION_REQUEST_DESCRIPTION:"支援人員希望暫時與您一起使用此網頁。",SESSION_REQUEST_TITLE:"允許協同瀏覽?",UNIVERSAL_PROXY_BLOCKED:"此網頁無法與客服代理一起檢視",UNIVERSAL_PROXY_REQUEST_DESCRIPTION:"客服代理希望跟隨您訪問其他網頁。",UNIVERSAL_PROXY_REQUEST_TITLE:"允許會話繼續?"}},jM=["ar","he","fa","ur"];class zM{static getLocale(){for(const e of navigator.languages){if(VM[e])return new zM(e);if(e.includes("-")){const t=e.split("-")[0].toLowerCase();if(VM[t])return new zM(t)}}return new zM("en")}static tr(e){return this.getLocale().translate(e)}static direction(){return this.getLocale().direction}constructor(e){this.language=e,this.direction=jM.includes(e)?"rtl":"ltr"}translate(e){return VM[this.language][e]||VM.en[e]||e}}function BM(){for(var e,t=0,n="",r=arguments.length;t<r;t++)(e=arguments[t])&&"string"==typeof e&&(n+=(n&&" ")+e);return n}const HM={base:"Button-module__base___gx4CL",primary:"Button-module__primary___TUjdp",secondary:"Button-module__secondary___CJVQq"},QM=["children","className","variant","disabled"],YM=e=>{let{children:t,className:n,variant:r,disabled:i}=e,o=Vr(e,QM);return Gw(UL,{children:Gw("button",Fr(Fr({className:BM(HM.base,HM[r],n),disabled:i},o),{},{children:t}))})},KM=({children:e,footer:t,style:n,corner:r="top-left",onCornerChange:i})=>{const[o,s]=Lw({x:0,y:0}),[a,c]=Lw(!1),[l,u]=Lw(!1),h=Cw(o),d=Cw(null),f=Cw({x:0,y:0}),p=Cw(null),_=Cw(r);ww(()=>{h.current=o},[o]),ww(()=>{var e,t;if(!d.current)return;const n=(null===(e=window.visualViewport)||void 0===e?void 0:e.width)||window.innerWidth,i=(null===(t=window.visualViewport)||void 0===t?void 0:t.height)||window.innerHeight,{offsetWidth:o,offsetHeight:a}=d.current,c={"top-left":{x:0,y:0,dx:0,dy:0},"top-right":{x:n-o,y:0,dx:1,dy:0},"bottom-left":{x:0,y:i-a,dx:0,dy:1},"bottom-right":{x:n-o,y:i-a,dx:1,dy:1}},{x:l,y:u,dx:h,dy:f}=c[r];s({x:l,y:u}),p.current={dx:h,dy:f},_.current=r},[r]);const E=(e,t)=>{c(!0),u(!1),f.current={x:e-o.x,y:t-o.y}};ww(()=>{const e=e=>{var t,n;if(!a)return;const r=(null===(t=window.visualViewport)||void 0===t?void 0:t.width)||window.innerWidth,i=(null===(n=window.visualViewport)||void 0===n?void 0:n.height)||window.innerHeight;let o=e.clientX-f.current.x,c=e.clientY-f.current.y;if(d.current){const{offsetWidth:e,offsetHeight:t}=d.current;o=Math.max(0,Math.min(o,r-e)),c=Math.max(0,Math.min(c,i-t))}s({x:o,y:c}),h.current={x:o,y:c}},t=e=>{var t,n;if(!a)return;e.preventDefault();const r=e.touches[0];if(!r)return;const i=(null===(t=window.visualViewport)||void 0===t?void 0:t.width)||window.innerWidth,o=(null===(n=window.visualViewport)||void 0===n?void 0:n.height)||window.innerHeight;let c=r.clientX-f.current.x,l=r.clientY-f.current.y;if(d.current){const{offsetWidth:e,offsetHeight:t}=d.current;c=Math.max(0,Math.min(c,i-e)),l=Math.max(0,Math.min(l,o-t))}s({x:c,y:l}),h.current={x:c,y:l}},n=()=>{c(!1),window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",n),window.removeEventListener("touchmove",t),window.removeEventListener("touchend",n),setTimeout(m,0)};return a&&(window.addEventListener("mousemove",e),window.addEventListener("mouseup",n),window.addEventListener("touchmove",t,{passive:!1}),window.addEventListener("touchend",n)),()=>{window.removeEventListener("mousemove",e),window.removeEventListener("mouseup",n),window.removeEventListener("touchmove",t),window.removeEventListener("touchend",n)}},[a]);const v=Aw(()=>{var e,t;if(!d.current||!p.current)return;const n=(null===(e=window.visualViewport)||void 0===e?void 0:e.width)||window.innerWidth,r=(null===(t=window.visualViewport)||void 0===t?void 0:t.height)||window.innerHeight,{offsetWidth:i,offsetHeight:o}=d.current,{dx:a,dy:c}=p.current;s({x:0===a?0:n-i,y:0===c?0:r-o})},[]);ww(()=>(window.addEventListener("resize",v),()=>window.removeEventListener("resize",v)),[v]),ww(()=>{const e=new ResizeObserver(()=>{u(!0),v(),setTimeout(()=>u(!1),300)});return d.current&&e.observe(d.current),()=>e.disconnect()},[v]);const m=()=>{var e,t;if(!d.current)return;const n=(null===(e=window.visualViewport)||void 0===e?void 0:e.width)||window.innerWidth,r=(null===(t=window.visualViewport)||void 0===t?void 0:t.height)||window.innerHeight,{offsetWidth:o,offsetHeight:a}=d.current,c=[{name:"top-left",x:0,y:0,dx:0,dy:0},{name:"top-right",x:n-o,y:0,dx:1,dy:0},{name:"bottom-left",x:0,y:r-a,dx:0,dy:1},{name:"bottom-right",x:n-o,y:r-a,dx:1,dy:1}],l=h.current,f=(e,t)=>Math.hypot(e.x-t.x,e.y-t.y),E=c.reduce((e,t)=>f(l,t)<f(l,e)?t:e);u(!0),s({x:E.x,y:E.y}),p.current={dx:E.dx,dy:E.dy},_.current!==E.name&&(null==i||i(E.name),_.current=E.name),setTimeout(()=>u(!1),300)};return Gw("div",{ref:d,style:Fr(Fr({},n),{},{position:"fixed",left:o.x,top:o.y,transition:l?"left 0.3s ease, top 0.3s ease, transform 0.2s ease":"transform 0.2s ease"}),children:[Gw("div",{style:{cursor:a?"grabbing":"grab",transform:a?"scale(1.02)":"scale(1)",transition:"transform 0.2s ease"},onMouseDown:e=>{e.preventDefault(),E(e.clientX,e.clientY)},onTouchStart:e=>{const t=e.touches[0];t&&E(t.clientX,t.clientY)},children:e}),null!=t?t:null]})},$M=Gw("svg",{xmlns:"http://www.w3.org/2000/svg",height:"100%",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[Gw("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Gw("path",{d:"M12 12m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Gw("path",{d:"M12 19m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"}),Gw("path",{d:"M12 5m-1 0a1 1 0 1 0 2 0a1 1 0 1 0 -2 0"})]}),JM=Gw("svg",{height:"100%",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Gw("path",{d:"M21.5 12V15C21.5 15.2652 21.3946 15.5196 21.2071 15.7071C21.0196 15.8946 20.7652 16 20.5 16H4.5C4.23478 16 3.98043 15.8946 3.79289 15.7071C3.60536 15.5196 3.5 15.2652 3.5 15L3.5 5C3.5 4.73478 3.60536 4.48043 3.79289 4.29289C3.98043 4.10536 4.23478 4 4.5 4L13.5 4M7.5 20H17.5M9.5 16V20M15.5 16V20M17.5 8L21.5 4M17.5 4L21.5 8",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})}),XM=Gw("svg",{xmlns:"http://www.w3.org/2000/svg",height:"100%",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[Gw("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Gw("path",{d:"M9 2m0 3a3 3 0 0 1 3 -3h0a3 3 0 0 1 3 3v5a3 3 0 0 1 -3 3h0a3 3 0 0 1 -3 -3z"}),Gw("path",{d:"M5 10a7 7 0 0 0 14 0"}),Gw("path",{d:"M8 21l8 0"}),Gw("path",{d:"M12 17l0 4"})]}),qM=Gw("svg",{xmlns:"http://www.w3.org/2000/svg",height:"100%",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[Gw("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Gw("path",{d:"M3 3l18 18"}),Gw("path",{d:"M9 5a3 3 0 0 1 6 0v5a3 3 0 0 1 -.13 .874m-2 2a3 3 0 0 1 -3.87 -2.872v-1"}),Gw("path",{d:"M5 10a7 7 0 0 0 10.846 5.85m2 -2a6.967 6.967 0 0 0 1.152 -3.85"}),Gw("path",{d:"M8 21l8 0"}),Gw("path",{d:"M12 17l0 4"})]}),ZM=Gw("svg",{height:"100%",viewBox:"0 0 25 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:Gw("path",{d:"M23.1068 13.9142L20.2784 16.7426L15.3286 14.6213L16.0357 11.7929C13.7429 11.0147 11.2574 11.0147 8.96465 11.7929L9.67175 14.6213L4.72201 16.7426L1.89358 13.9142C1.51851 13.5391 1.30779 13.0304 1.30779 12.5C1.30779 11.9696 1.51851 11.4609 1.89358 11.0858C4.81944 8.49517 8.59225 7.06493 12.5002 7.06493C16.4081 7.06493 20.1809 8.49517 23.1068 11.0858C23.4819 11.4609 23.6926 11.9696 23.6926 12.5C23.6926 13.0304 23.4819 13.5391 23.1068 13.9142Z",stroke:"#F5F6FB","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"})}),eD=Gw("svg",{xmlns:"http://www.w3.org/2000/svg",height:"100%",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[Gw("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Gw("path",{d:"M15 10l4.553 -2.276a1 1 0 0 1 1.447 .894v6.764a1 1 0 0 1 -1.447 .894l-4.553 -2.276v-4z"}),Gw("path",{d:"M3 6m0 2a2 2 0 0 1 2 -2h8a2 2 0 0 1 2 2v8a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2z"})]}),tD=Gw("svg",{xmlns:"http://www.w3.org/2000/svg",height:"100%",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[Gw("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Gw("path",{d:"M3 3l18 18"}),Gw("path",{d:"M15 11v-1l4.553 -2.276a1 1 0 0 1 1.447 .894v6.764a1 1 0 0 1 -.675 .946"}),Gw("path",{d:"M10 6h3a2 2 0 0 1 2 2v3m0 4v1a2 2 0 0 1 -2 2h-8a2 2 0 0 1 -2 -2v-8a2 2 0 0 1 2 -2h1"})]}),nD=Gw("svg",{xmlns:"http://www.w3.org/2000/svg",height:"100%",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round",children:[Gw("path",{stroke:"none",d:"M0 0h24v24H0z",fill:"none"}),Gw("path",{d:"M15 8a5 5 0 0 1 0 8"}),Gw("path",{d:"M17.7 5a9 9 0 0 1 0 14"}),Gw("path",{d:"M6 15h-2a1 1 0 0 1 -1 -1v-4a1 1 0 0 1 1 -1h2l3.5 -4.5a.8 .8 0 0 1 1.5 .5v14a.8 .8 0 0 1 -1.5 .5l-3.5 -4.5"})]}),rD=Object.freeze({__proto__:null,DotsVertical:$M,EndSession:JM,Microphone:XM,MicrophoneOff:qM,Phone:ZM,Video:eD,VideoOff:tD,Volume:nD}),iD=["name"],oD=e=>{let{name:t}=e;return Gw("div",Fr(Fr({"aria-hidden":"true",style:{display:"inline-block"}},Vr(e,iD)),{},{children:rD[t]}))},sD=["children","className","ariaLabel","title"],aD=e=>{let{children:t,className:n,ariaLabel:r,title:i}=e,o=Vr(e,sD);return Gw("button",Fr(Fr({className:BM("IconButton-module__base___Cg18y",n),"aria-label":r,title:null!=r?r:i},o),{},{children:t}))},cD=["children","className"],lD=e=>{let{children:t,className:n}=e;return Gw("div",Fr(Fr({className:"Modal-module__container___ZH7Ev",role:"dialog","aria-modal":"true"},Vr(e,cD)),{},{children:Gw("section",{className:BM("Modal-module__content___I-t2M",n),dir:zM.direction(),children:t})}))},uD="data:image/svg+xml,%3Csvg%20xmlns%3D%5Cihttp%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%5Ci%20width%3D%5Ci24%5Ci%20height%3D%5Ci24%5Ci%20viewBox%3D%5Ci0%200%2024%2024%5Ci%20fill%3D%5Cinone%5Ci%20stroke%3D%5CicurrentColor%5Ci%20stroke-width%3D%5Ci2%5Ci%20stroke-linecap%3D%5Ciround%5Ci%20stroke-linejoin%3D%5Ciround%5Ci%3E%20%20%3Cpath%20stroke%3D%5Cinone%5Ci%20d%3D%5CiM0%200h24v24H0z%5Ci%20fill%3D%5Cinone%5Ci%2F%3E%3Cpath%20d%3D%5CiM6%209l6%206l6%20-6%5Ci%20%2F%3E%3C%2Fsvg%3E",hD=["children","iconUrl","className","ariaLabel","style"],dD=e=>{let{children:t,iconUrl:n,className:r,ariaLabel:i,style:o}=e,s=Vr(e,hD);const a=Fr(Fr({},n?{backgroundImage:`url("${n}"),url("${uD}")`,backgroundPosition:"left 4px center,right 4px center",padding:"8px 24px 8px 24px"}:{backgroundImage:`url("${uD}")`}),o);return Gw("select",Fr(Fr({className:BM("Select-module__base___M3sny",!n&&"Select-module__noIcon___WDzeV",r),"aria-label":i,style:a},s),{},{children:t}))},fD=["children"],pD=e=>{let{children:t}=e;return Gw("option",Fr(Fr({},Vr(e,fD)),{},{children:t}))},_D=({onClick:e})=>Gw("div",{className:"SessionStateOverlay-module__sessionStateOverlay___vT0jC",children:Gw(YM,{className:"SessionStateOverlay-module__endSessionButton___pO2E2",onClick:()=>e("session-end"),children:[zM.tr("END_SESSION"),Gw(oD,{className:"SessionStateOverlay-module__endSessionIcon___rHBj2",name:"EndSession"})]})});var ED=new WeakMap;const vD=new class extends nd{constructor(...e){super(...e),Mr(this,ED,null),Ur(this,"showSessionControls",()=>{this.hideSessionControls(),Dr(ED,this,Pw(_D,{onClick:e=>this.emit("click",e)},{hideFromAgent:!0}))}),Ur(this,"hideSessionControls",()=>{var e;null===(e=Pr(ED,this))||void 0===e||e.unmount(),Dr(ED,this,null)})}},mD=({title:e,description:t,onDeny:n,onAllow:r})=>Gw(UL,{children:Gw(lD,{className:"ConsentDialog-module__content___9Rp4u","aria-labelledby":"title","aria-describedby":"description",children:[Gw("header",{children:Gw("h2",{id:"title",className:"ConsentDialog-module__title___QVdGh",children:e})}),Gw("div",{className:"ConsentDialog-module__body___azYOk",children:Gw("p",{id:"description",className:"ConsentDialog-module__description___zucXq",children:t})}),Gw("footer",{className:"ConsentDialog-module__buttons___f9Tr6",children:[Gw(YM,{variant:"secondary",onClick:n,children:zM.tr("DENY")}),Gw(YM,{variant:"primary",onClick:r,children:zM.tr("ALLOW")})]})]})});var gD=new WeakMap;class ID{constructor(){Mr(this,gD,void 0),Ur(this,"show",async(e,t)=>{var n;return null===(n=Pr(gD,this))||void 0===n||n.unmount(),new Promise(n=>{const r={title:e,description:t,onDeny:e=>{e.isTrusted&&(n(!1),this.hide())},onAllow:e=>{e.isTrusted&&(n(!0),this.hide())}};Dr(gD,this,Pw(mD,r,{hideFromAgent:!0}))})}),Ur(this,"hide",()=>{var e;null===(e=Pr(gD,this))||void 0===e||e.unmount(),Dr(gD,this,null)})}}const LD="_cobrowse_media_settings",wD={videoEnabled:!1,videoInputDeviceId:"default",audioEnabled:!1,audioInputDeviceId:"default",audioOutputDeviceId:"default"},CD={width:{ideal:1280},height:{ideal:720}},yD=({audioEnabled:e,audioInputDeviceId:t})=>{const n="default"===(t||"default")?"ideal":"exact";return{audio:!!e&&{deviceId:{[n]:t}}}},AD=({videoEnabled:e,videoInputDeviceId:t})=>{const n="default"===(t||"default")?"ideal":"exact";return{video:!!e&&Fr(Fr({},CD),{},{deviceId:{[n]:t}})}};var ND=new WeakMap,SD=new WeakMap,TD=new WeakMap;class bD extends nd{constructor(e){super(),Mr(this,ND,null),Mr(this,SD,void 0),Mr(this,TD,void 0),Dr(ND,this,Fr(Fr({},wD),e.getItem(LD))),Dr(SD,this,t=>e.setItem(LD,t)),Dr(TD,this,()=>this.update(e.getItem(LD)))}get settings(){return Fr({},Pr(ND,this))}update(e){var t;let n=!1;for(const[t,r]of Object.entries(e))void 0!==r&&t in Pr(ND,this)&&Pr(ND,this)[t]!==r&&(Pr(ND,this)[t]=r,n=!0);n&&(null===(t=Pr(SD,this))||void 0===t||t.call(this,Pr(ND,this)),this.emit("updated",this))}toggleAudio(){this.update({audioEnabled:!Pr(ND,this).audioEnabled})}toggleVideo(){this.update({videoEnabled:!Pr(ND,this).videoEnabled})}reloadFromStorage(){Pr(TD,this).call(this)}}const OD="prompt",RD=e=>({granted:"granted"===e,denied:"denied"===e,prompt:e===OD}),kD="MediaPreview-module__voiceVideoControlsToggle___k5XoS",PD="MediaPreview-module__voiceVideoControlsToggleOff___2nclS",MD="MediaPreview-module__voiceVideoControlsToggleOn___whg1G",DD="MediaPreview-module__voiceVideoControlsIcon___JYkty",GD="default",xD=(e,t)=>e.some(e=>e.deviceId===t),UD=({initialSettings:e,onSettingsChange:t,disabled:n})=>{const r=Cw(null),i=Cw(new MediaStream),{audioInputDevices:o,audioOutputDevices:s,videoInputDevices:a,audioPermission:c,videoPermission:l,updateDeviceLists:u,updatePermissions:h}=(()=>{const[e,t]=Lw([]),[n,r]=Lw([]),[i,o]=Lw([]),[s,a]=Lw(OD),[c,l]=Lw(OD),u=yw(()=>RD(s),[s]),h=yw(()=>RD(c),[c]),d=Cw(null),f=Cw(null),p=Aw(async()=>{if(!navigator.mediaDevices)return;const e=await navigator.mediaDevices.enumerateDevices(),n=[],i=[],s=[];e.forEach(e=>{e.deviceId&&("audioinput"===e.kind&&n.push(e),"audiooutput"===e.kind&&i.push(e),"videoinput"===e.kind&&s.push(e))}),t(n),r(i),o(s)},[]),_=()=>a(d.current.state),E=()=>l(f.current.state),v=Aw(async()=>{try{var e,t;null===(e=d.current)||void 0===e||e.removeEventListener("change",_),d.current=await navigator.permissions.query({name:"microphone"}),d.current.addEventListener("change",_),null===(t=f.current)||void 0===t||t.removeEventListener("change",E),f.current=await navigator.permissions.query({name:"camera"}),f.current.addEventListener("change",E),a(d.current.state),l(f.current.state)}catch(e){console.warn("CobrowseIO: Failed to get permissions",e),a(OD),l(OD)}},[]);return ww(()=>{v()},[v]),ww(()=>{var e;return null===(e=navigator.mediaDevices)||void 0===e||e.addEventListener("devicechange",p),p(),()=>{var e;null===(e=navigator.mediaDevices)||void 0===e||e.removeEventListener("devicechange",p)}},[p]),ww(()=>{p()},[s,c,p]),{audioInputDevices:e,audioOutputDevices:n,videoInputDevices:i,audioPermission:u,videoPermission:h,updateDeviceLists:p,updatePermissions:v}})(),[d,f]=Lw(!1),[p,_]=Lw(e.videoEnabled),[E,v]=Lw(e.videoInputDeviceId),[m,g]=Lw(e.audioEnabled),[I,L]=Lw(e.audioInputDeviceId),[w,C]=Lw(e.audioOutputDeviceId);ww(()=>{null==t||t({videoEnabled:p,videoInputDeviceId:E,audioEnabled:m,audioInputDeviceId:I,audioOutputDeviceId:w})},[t,p,E,m,I,w]);const y=Aw(e=>{i.current.getTracks().filter(t=>t.kind===e).forEach(e=>{e.stop(),i.current.removeTrack(e)})},[]);ww(()=>{r.current&&(r.current.srcObject=i.current)},[]),ww(()=>{if(!xD(o,I))return xD(o,GD)?L(GD):void(o.length&&L(o[0].deviceId))},[o,I]),ww(()=>{if(!xD(s,w))return xD(s,GD)?C(GD):void(s.length&&C(s[0].deviceId))},[s,w]),ww(()=>{if(!xD(a,E))return xD(a,GD)?v(GD):void(a.length&&v(a[0].deviceId))},[a,E]),ww(()=>{if(!p)return;if(!navigator.mediaDevices)return console.warn("CobrowseIO: Failed to start video, mediaDevices is not available"),void _(!1);f(!0);const e=AD({videoEnabled:p,videoInputDeviceId:E});return navigator.mediaDevices.getUserMedia(e).then(e=>{e.getTracks().forEach(e=>i.current.addTrack(e)),u()}).catch(e=>{console.warn("CobrowseIO: Failed to get video",e),l.prompt&&_(!1)}).finally(()=>{h(),f(!1)}),()=>y("video")},[u,h,l,p,E,y]),ww(()=>{if(!m)return;if(!navigator.mediaDevices)return console.warn("CobrowseIO: Failed to start audio, mediaDevices is not available"),void g(!1);const e=yD({audioEnabled:m,audioInputDeviceId:I});return navigator.mediaDevices.getUserMedia(e).then(e=>{e.getTracks().forEach(e=>i.current.addTrack(e)),u()}).catch(e=>{console.warn("CobrowseIO: Failed to get audio",e),c.prompt&&g(!1)}).finally(()=>{h()}),()=>y("audio")},[u,h,c,m,I,y]);const A=(e,t)=>Gw("div",{className:BM("MediaPreview-module__videoOverlay___e7YkR",t?"MediaPreview-module__videoOverlayTransparent___qVogL":"MediaPreview-module__videoOverlaySolid___uy0ao"),children:Gw("p",{className:"MediaPreview-module__videoOverlayText___L-nXB",children:e})}),N=(e,t)=>e?t.length?t.map(e=>Gw(pD,{value:e.deviceId,children:e.label},e.deviceId)):Gw(pD,{value:"",disabled:!0,selected:!0,children:zM.tr("CALLING_NO_DEVICES")}):Gw(pD,{value:"",disabled:!0,selected:!0,children:zM.tr("CALLING_PERMISSION_NEEDED")});return Gw(UL,{children:[Gw("div",{className:"MediaPreview-module__previewContainer___jg4yL",children:[Gw("div",{className:"MediaPreview-module__videoContainer___-OEXn",children:[Gw("video",{ref:r,className:"MediaPreview-module__video___0LBZO",autoPlay:!0,playsInline:!0,muted:!0}),(()=>{const e=p&&l.granted;if(m){if(c.denied)return A(zM.tr("CALLING_MICROPHONE_PERMISSION_DENIED"),e);if(c.prompt)return A(zM.tr("CALLING_MICROPHONE_PERMISSION_PROMPT"),e)}return p?l.denied?A(zM.tr("CALLING_CAMERA_PERMISSION_DENIED"),e):l.prompt?A(zM.tr("CALLING_CAMERA_PERMISSION_PROMPT"),e):d?A(zM.tr("CALLING_CAMERA_STARTING"),e):null:A(zM.tr("CALLING_CAMERA_OFF"),e)})()]}),Gw(WD,{audioEnabled:m,toggleAudio:()=>g(e=>!e),videoEnabled:p,toggleVideo:()=>_(e=>!e),disabled:n})]}),Gw("div",{className:"MediaPreview-module__deviceContainer___NlbuY",children:[Gw(dD,{iconUrl:"data:image/svg+xml,%3Csvg%20xmlns%3D%5Cihttp%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%5Ci%20width%3D%5Ci24%5Ci%20height%3D%5Ci24%5Ci%20viewBox%3D%5Ci0%200%2024%2024%5Ci%20fill%3D%5Cinone%5Ci%20stroke%3D%5CicurrentColor%5Ci%20stroke-width%3D%5Ci2%5Ci%20stroke-linecap%3D%5Ciround%5Ci%20stroke-linejoin%3D%5Ciround%5Ci%3E%20%20%3Cpath%20stroke%3D%5Cinone%5Ci%20d%3D%5CiM0%200h24v24H0z%5Ci%20fill%3D%5Cinone%5Ci%20%2F%3E%3Cpath%20d%3D%5CiM9%202m0%203a3%203%200%200%201%203%20-3h0a3%203%200%200%201%203%203v5a3%203%200%200%201%20-3%203h0a3%203%200%200%201%20-3%20-3z%5Ci%20%2F%3E%3Cpath%20d%3D%5CiM5%2010a7%207%200%200%200%2014%200%5Ci%20%2F%3E%3Cpath%20d%3D%5CiM8%2021l8%200%5Ci%20%2F%3E%3Cpath%20d%3D%5CiM12%2017l0%204%5Ci%20%2F%3E%3C%2Fsvg%3E",ariaLabel:zM.tr("CALLING_SELECT_MICROPHONE"),value:c.granted&&o.length?I:"",onChange:e=>L(e.target.value),disabled:n||!c.granted||!o.length,children:N(c.granted,o)}),Gw(dD,{iconUrl:"data:image/svg+xml,%20%20%3Csvg%20xmlns%3D%5Cihttp%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%5Ci%20width%3D%5Ci24%5Ci%20height%3D%5Ci24%5Ci%20viewBox%3D%5Ci0%200%2024%2024%5Ci%20fill%3D%5Cinone%5Ci%20stroke%3D%5CicurrentColor%5Ci%20stroke-width%3D%5Ci2%5Ci%20stroke-linecap%3D%5Ciround%5Ci%20stroke-linejoin%3D%5Ciround%5Ci%3E%3Cpath%20stroke%3D%5Cinone%5Ci%20d%3D%5CiM0%200h24v24H0z%5Ci%20fill%3D%5Cinone%5Ci%20%2F%3E%20%20%20%20%3Cpath%20d%3D%5CiM15%208a5%205%200%200%201%200%208%5Ci%20%2F%3E%3Cpath%20d%3D%5CiM17.7%205a9%209%200%200%201%200%2014%5Ci%20%2F%3E%3Cpath%20d%3D%5CiM6%2015h-2a1%201%200%200%201%20-1%20-1v-4a1%201%200%200%201%201%20-1h2l3.5%20-4.5a.8%20.8%200%200%201%201.5%20.5v14a.8%20.8%200%200%201%20-1.5%20.5l-3.5%20-4.5%5Ci%20%2F%3E%20%20%3C%2Fsvg%3E",ariaLabel:zM.tr("CALLING_SELECT_SPEAKER"),value:c.granted&&s.length?w:"",onChange:e=>C(e.target.value),disabled:n||!c.granted||!s.length,children:N(c.granted,s)}),Gw(dD,{iconUrl:"data:image/svg+xml,%3Csvg%20xmlns%3D%5Cihttp%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%5Ci%20width%3D%5Ci24%5Ci%20height%3D%5Ci24%5Ci%20viewBox%3D%5Ci0%200%2024%2024%5Ci%20fill%3D%5Cinone%5Ci%20stroke%3D%5CicurrentColor%5Ci%20stroke-width%3D%5Ci2%5Ci%20stroke-linecap%3D%5Ciround%5Ci%20stroke-linejoin%3D%5Ciround%5Ci%3E%20%20%3Cpath%20stroke%3D%5Cinone%5Ci%20d%3D%5CiM0%200h24v24H0z%5Ci%20fill%3D%5Cinone%5Ci%20%2F%3E%3Cpath%20d%3D%5CiM15%2010l4.553%20-2.276a1%201%200%200%201%201.447%20.894v6.764a1%201%200%200%201%20-1.447%20.894l-4.553%20-2.276v-4z%5Ci%20%2F%3E%3Cpath%20d%3D%5CiM3%206m0%202a2%202%200%200%201%202%20-2h8a2%202%200%200%201%202%202v8a2%202%200%200%201%20-2%202h-8a2%202%200%200%201%20-2%20-2z%5Ci%20%2F%3E%3C%2Fsvg%3E",ariaLabel:zM.tr("CALLING_SELECT_CAMERA"),value:l.granted&&a.length?E:"",onChange:e=>v(e.target.value),disabled:n||!l.granted||!a.length,children:N(l.granted,a)})]})]})},WD=({audioEnabled:e,toggleAudio:t,videoEnabled:n,toggleVideo:r,disabled:i})=>Gw("div",{className:"MediaPreview-module__voiceVideoControls___7f--Y",children:[Gw(aD,{onClick:t,ariaLabel:e?zM.tr("CALLING_DISABLE_AUDIO"):zM.tr("CALLING_ENABLE_AUDIO"),className:BM(kD,e?MD:PD),disabled:i,children:Gw(oD,{className:DD,name:e?"Microphone":"MicrophoneOff"})}),Gw(aD,{onClick:r,ariaLabel:n?zM.tr("CALLING_DISABLE_VIDEO"):zM.tr("CALLING_ENABLE_VIDEO"),className:BM(kD,n?MD:PD),disabled:i,style:{marginLeft:"-4px"},children:Gw(oD,{className:DD,name:n?"Video":"VideoOff"})})]}),FD="_cobrowse_calling_joined",VD="off",jD="requested",zD="rejected",BD="on";var HD=new WeakMap,QD=new WeakMap,YD=new WeakMap,KD=new WeakMap,$D=new WeakMap,JD=new WeakMap,XD=new WeakMap,qD=new WeakMap,ZD=new WeakMap,eG=new WeakMap,tG=new WeakMap;class nG extends nd{constructor(e){super(),Mr(this,HD,void 0),Mr(this,QD,void 0),Mr(this,YD,void 0),Mr(this,KD,void 0),Mr(this,$D,void 0),Mr(this,JD,void 0),Mr(this,XD,void 0),Ur(this,"getTracks",()=>Pr(QD,this).stream.getTracks()),Ur(this,"addTrack",e=>{Pr(QD,this)[Fy].addTrack(e)}),Ur(this,"removeTrack",e=>{Pr(QD,this)[Fy].removeTrack(e)}),Ur(this,"request",()=>{Pr(qD,this).call(this),Pr($D,this).call(this,jD)}),Ur(this,"reject",()=>{Pr($D,this).call(this,zD)}),Ur(this,"answer",()=>{Pr(qD,this).call(this),Pr($D,this).call(this,BD)}),Ur(this,"end",()=>{Pr($D,this).call(this,VD)}),Mr(this,qD,()=>{const e=this.hasJoined;Pr(KD,this).setItem(FD,Pr(YD,this)),e!==this.hasJoined&&Pr(ZD,this).call(this)}),Mr(this,ZD,async()=>{this.emit("updated",this)}),Mr(this,eG,Vy(this,"receiveSessionUpdate",(e,t)=>{var n,r,i;const o=Pr(JD,this)!==e,s=(null!==(n=null===(r=Pr(XD,this))||void 0===r?void 0:r.id)&&void 0!==n?n:null)!==(null!==(i=null==t?void 0:t.id)&&void 0!==i?i:null);Dr(JD,this,e),Dr(XD,this,t),(o||s)&&Pr(ZD,this).call(this)})),Mr(this,tG,Vy(this,"destroy",()=>{Pr(KD,this).removeItem(FD)})),Dr(HD,this,e.getParticipants),Dr(QD,this,e.localParticipant),Dr(YD,this,e.sessionId),Dr(KD,this,e.storage),Dr($D,this,e.updateCalling)}get state(){return Pr(JD,this)}get caller(){return Pr(XD,this)}get hasJoined(){return Pr(KD,this).getItem(FD)===Pr(YD,this)}get participants(){return Pr(HD,this).call(this)}}const rG="primary",iG="secondary",oG=({title:e,description:t,primaryTitle:n,onPrimaryClick:r,secondaryTitle:i,onSecondaryClick:o,isDisabled:s,settings:a,handlePreviewSettingsChange:c})=>Gw(lD,{className:"CallDialog-module__content___sk6PW","aria-labelledby":"title","aria-describedby":"description",children:[Gw("header",{className:"CallDialog-module__header___kOjGP",children:[Gw("section",{className:"CallDialog-module__media___GUTLA",children:Gw(UD,{initialSettings:a,onSettingsChange:c})}),e?Gw("h2",{id:"title",className:"CallDialog-module__title___WUNJY",children:e}):null]}),t?Gw("div",{className:"CallDialog-module__body___AaCUz",children:Gw("p",{id:"description",className:"CallDialog-module__description___a-7qp",children:t})}):null,Gw("footer",{className:"CallDialog-module__buttonContainer___NtvjF",children:[Gw(YM,{variant:"secondary",onClick:o,children:i}),Gw(YM,{variant:"primary",onClick:r,disabled:s,children:n})]})]});var sG=new WeakMap,aG=new WeakMap,cG=new WeakMap,lG=new WeakMap,uG=new WeakMap,hG=new WeakMap,dG=new WeakMap;class fG{constructor({call:e,mediaSettings:t}){Mr(this,sG,void 0),Mr(this,aG,void 0),Mr(this,cG,void 0),Mr(this,lG,null),Ur(this,"show",e=>{Dr(cG,this,Pr(aG,this).settings);const t=e=>{Dr(cG,this,e)};return new Promise(n=>{Pr(hG,this).call(this,Fr({onPrimaryClick:()=>n({action:rG,settings:Pr(cG,this)}),onSecondaryClick:()=>n({action:iG,settings:Pr(cG,this)}),settings:Pr(aG,this).settings,handlePreviewSettingsChange:t},e))})}),Ur(this,"hide",()=>{Dr(cG,this,null),Pr(dG,this).call(this)}),Mr(this,uG,async({state:e,caller:t,hasJoined:n})=>{const r=!t;if(e===jD&&!r){const{action:e}=await this.show({title:zM.tr("CALLING_REQUEST"),description:zM.tr("CALLING_JOIN_PROMPT"),primaryTitle:zM.tr("CALLING_ACCEPT"),secondaryTitle:zM.tr("CALLING_REJECT")});return e===rG?(Pr(aG,this).update(Pr(cG,this)),Pr(sG,this).answer()):Pr(sG,this).reject(),void this.hide()}if(e===jD&&r&&!n){const{action:e}=await this.show({title:null,description:null,primaryTitle:zM.tr("CALLING_JOIN"),secondaryTitle:zM.tr("CALLING_CANCEL")});return void(e===rG?(Pr(aG,this).update(Pr(cG,this)),Pr(sG,this).request()):(Pr(sG,this).end(),this.hide()))}if(e===jD&&r&&n){const{action:e}=await this.show({title:zM.tr("CALLING_IN_PROGRESS"),description:zM.tr("CALLING_AGENT_WAITING"),primaryTitle:zM.tr("CALLING_JOIN"),secondaryTitle:zM.tr("CALLING_CANCEL"),isDisabled:!0});return e===iG&&Pr(sG,this).end(),void this.hide()}if(e===zD&&r){const{action:e}=await this.show({title:zM.tr("CALLING_IN_PROGRESS"),description:zM.tr("CALLING_AGENT_DECLINED"),primaryTitle:zM.tr("CALLING_BACK"),secondaryTitle:zM.tr("CALLING_RETRY")});return void(e===rG?(Pr(sG,this).end(),this.hide()):(Pr(aG,this).update(Pr(cG,this)),Pr(sG,this).request()))}if(e===BD&&!n){const{action:e}=await this.show({title:null,description:null,primaryTitle:zM.tr("CALLING_JOIN"),secondaryTitle:zM.tr("CALLING_CANCEL")});return e===rG?(Pr(aG,this).update(Pr(cG,this)),Pr(sG,this).answer()):r&&Pr(sG,this).end(),void this.hide()}e===BD&&Pr(cG,this)&&Pr(aG,this).update(Pr(cG,this)),this.hide()}),Mr(this,hG,e=>{Pr(lG,this)?Pr(lG,this).rerender(e):Dr(lG,this,Pw(oG,e,{hideFromAgent:!0}))}),Mr(this,dG,()=>{var e;null===(e=Pr(lG,this))||void 0===e||e.unmount(),Dr(lG,this,null)}),Ur(this,"destroy",()=>{Pr(sG,this).off("updated",Pr(uG,this)),Pr(dG,this).call(this)}),Dr(sG,this,e),Dr(aG,this,t),Pr(sG,this).on("updated",Pr(uG,this)),Pr(uG,this).call(this,Pr(sG,this))}}var pG=new WeakMap,_G=new WeakMap,EG=new WeakMap,vG=new WeakMap,mG=new WeakMap,gG=new WeakMap;class IG extends td.EventEmitter{constructor(e,t){if(super(),Mr(this,pG,void 0),Mr(this,_G,void 0),Mr(this,EG,void 0),Mr(this,vG,void 0),Mr(this,mG,void 0),Mr(this,gG,!1),!window.AudioContext)return;if(!e||!e.getAudioTracks().length)return;Dr(pG,this,new window.AudioContext),Dr(_G,this,Pr(pG,this).createMediaStreamSource(e)),Dr(EG,this,Pr(pG,this).createAnalyser()),Pr(EG,this).fftSize=256,Pr(_G,this).connect(Pr(EG,this));const n=()=>{if(Pr(gG,this))return;const e=new Uint8Array(Pr(EG,this).frequencyBinCount);Pr(EG,this).getByteFrequencyData(e);const r=e.reduce((e,t)=>e+t,0),i=r/Pr(EG,this).frequencyBinCount>t;Pr(vG,this)!==i&&(Dr(vG,this,i),this.emit("updated",this)),Pr(vG,this)?setTimeout(()=>{Dr(mG,this,requestAnimationFrame(n))},250):Dr(mG,this,requestAnimationFrame(n))};n()}get hasNoise(){return Pr(vG,this)||!1}destroy(){var e,t,n;Dr(gG,this,!0),cancelAnimationFrame(Pr(mG,this)),null===(e=Pr(_G,this))||void 0===e||e.disconnect(),Dr(_G,this,null),null===(t=Pr(EG,this))||void 0===t||t.disconnect(),Dr(EG,this,null),null===(n=Pr(pG,this))||void 0===n||n.close(),Dr(pG,this,null)}}const LG="CallControls-module__toggle___1B90-",wG="CallControls-module__toggleOff___v-UzL",CG="CallControls-module__toggleOn___WtJ0M",yG="CallControls-module__icon___LBB4v",AG=({call:e,mediaSettings:t,showSettingsDialog:n})=>{const[r,i]=Lw(t.settings.audioEnabled),[o,s]=Lw(t.settings.videoEnabled);return ww(()=>{t.on("updated",({settings:e})=>{i(e.audioEnabled),s(e.videoEnabled)})},[t]),Gw("div",{style:{display:"flex",justifyContent:"center"},children:Gw("div",{className:"CallControls-module__container___usQnp",children:[Gw("div",{className:"CallControls-module__toggleContainer___RVxBh",children:[Gw(aD,{className:BM(LG,r?CG:wG),ariaLabel:r?zM.tr("CALLING_DISABLE_AUDIO"):zM.tr("CALLING_ENABLE_AUDIO"),onClick:()=>t.toggleAudio(),children:Gw(oD,{name:r?"Microphone":"MicrophoneOff",className:yG})}),Gw(aD,{className:BM(LG,o?CG:wG),ariaLabel:o?zM.tr("CALLING_DISABLE_VIDEO"):zM.tr("CALLING_ENABLE_VIDEO"),onClick:()=>t.toggleVideo(),children:Gw(oD,{name:o?"Video":"VideoOff",className:yG})}),Gw(aD,{className:BM(LG,CG),ariaLabel:zM.tr("CALLING_SHOW_CALL_SETTINGS"),onClick:()=>n(),children:Gw(oD,{name:"DotsVertical",className:yG})})]}),Gw(aD,{className:"CallControls-module__end___1Gl91",ariaLabel:zM.tr("CALLING_END"),onClick:()=>e.end(),children:Gw(oD,{name:"Phone",className:yG})})]})})},NG="_cobrowse_participants_position",SG=e=>lE().setItem(NG,e),TG=({call:e,mediaSettings:t,showSettingsDialog:n})=>{const[r,i]=Lw(e.participants),[o,s]=Lw(t.settings.audioOutputDeviceId);ww(()=>{const e=({settings:e})=>{s(e.audioOutputDeviceId)};return t.on("updated",e),()=>{t.off("updated",e)}},[t]),ww(()=>{const t=e=>{i(e)};return e.on("participants.updated",t),()=>{e.off("participants.updated",t)}},[e]);const a=yw(()=>[...r].sort((e,t)=>{const n=!e.agentId,r=!t.agentId;return n&&!r?-1:!n&&r?1:0}),[r]);return Gw(KM,{style:{zIndex:"2147483646"},corner:lE().getItem(NG)||"top-right",onCornerChange:SG,footer:Gw("div",{className:"CallParticipants-module__callControlsContainer___7B-Gr",children:Gw(AG,{call:e,mediaSettings:t,showSettingsDialog:n})}),children:Gw("div",{className:"CallParticipants-module__container___Ve9rt",children:a.map(e=>Gw(bG,{participant:e,audioOutputDeviceId:o},e.id))})})},bG=({participant:e,audioOutputDeviceId:t})=>{const n=Cw(null),[r,i]=Lw(e.hasVideo),[o,s]=Lw(e.hasAudio),a=(e=>{const[t,n]=Lw(!1),[r,i]=Lw(e.hasAudio);return ww(()=>{const t=()=>{i(e.hasAudio)};return e.on("track.added",t),e.on("track.removed",t),()=>{e.off("track.added",t),e.off("track.removed",t)}},[e]),ww(()=>{if(!r)return void n(!1);const t=({hasNoise:e})=>n(e),i=new IG(e.stream,15);return i.on("updated",t),t(i),()=>{i.off("updated",t),i.destroy()}},[r,e.stream]),t})(e),c=!e.agentId;return ww(()=>{const t=()=>{const{hasVideo:t,hasAudio:n}=e;i(t),s(n)};return e.on("track.added",t),e.on("track.removed",t),t(),()=>{e.off("track.added",t),e.off("track.removed",t)}},[e]),ww(()=>{n.current.srcObject=e.stream},[e]),ww(()=>{n.current&&o&&t&&n.current.setSinkId(t)},[t,o]),Gw("div",{className:BM("CallParticipants-module__participantContainer___pxqEA",a&&"CallParticipants-module__participantSpeaking___Iv0HT"),children:[Gw("div",{className:"CallParticipants-module__videoContainer___tdKF2",children:[Gw("video",{className:"CallParticipants-module__video___HSfYq",ref:n,autoPlay:!0,playsInline:!0,muted:c}),r?null:Gw("div",{className:"CallParticipants-module__videoOverlay___fhTe0",children:[Gw("span",{className:"cbio-sr-only",children:zM.tr("CALLING_CAMERA_OFF")}),Gw(oD,{name:"VideoOff",className:"CallParticipants-module__videoOverlayIcon___foQCB"})]})]}),Gw("div",{className:"CallParticipants-module__statusContainer___bcsse",children:[Gw(oD,{className:"CallParticipants-module__statusIcon___dNlQZ",name:o?"Microphone":"MicrophoneOff"}),Gw("span",{className:"CallParticipants-module__statusTitle___6iPYt",children:c?zM.tr("CALLING_LOCAL_PARTICIPANT_DESCRIPTION"):zM.tr("CALLING_REMOTE_PARTICIPANT_DESCRIPTION")})]})]})};var OG=new WeakMap,RG=new WeakMap,kG=new WeakMap,PG=new WeakMap,MG=new WeakMap,DG=new WeakMap,GG=new WeakMap;class xG{constructor({call:e,mediaSettings:t,showSettingsDialog:n}){Mr(this,OG,void 0),Mr(this,RG,void 0),Mr(this,kG,void 0),Mr(this,PG,null),Mr(this,MG,({state:e,hasJoined:t})=>{e===BD&&t&&Pr(DG,this).call(this),e===VD&&Pr(GG,this).call(this)}),Mr(this,DG,()=>{if(Pr(PG,this))return;const e={call:Pr(OG,this),mediaSettings:Pr(RG,this),showSettingsDialog:Pr(kG,this)};Dr(PG,this,Pw(TG,e,{hideFromAgent:!0}))}),Mr(this,GG,()=>{var e;null===(e=Pr(PG,this))||void 0===e||e.unmount(),Dr(PG,this,null)}),Ur(this,"destroy",()=>{Pr(GG,this).call(this)}),Dr(OG,this,e),Dr(RG,this,t),Dr(kG,this,n),Pr(OG,this).on("updated",Pr(MG,this)),Pr(MG,this).call(this,Pr(OG,this))}}const UG="Mouse",WG="Touch",FG="Pointer",VG="Focus",jG="KeyPress",zG="Scroll",BG="Change",HG="Input",QG="Laser",YG="Highlight",KG="Drawing",$G="Select";var JG=new WeakMap,XG=new WeakMap,qG=new WeakMap,ZG=new WeakMap,ex=new WeakMap,tx=new WeakMap;class nx extends nd{constructor(e,t,{interval:n}={interval:3e3}){super(),Mr(this,JG,void 0),Mr(this,XG,void 0),Mr(this,qG,void 0),Mr(this,ZG,void 0),Mr(this,ex,new Map),Ur(this,"ping",()=>{this.emit("ping",{id:Pr(JG,this),instanceId:Pr(XG,this),timeout:2*Pr(qG,this)})}),Ur(this,"track",({id:e,instanceId:t,timeout:n,agent:r})=>{if(this.id===e)return;const i=Pr(ex,this).has(e);i||Pr(ex,this).set(e,{instances:new Map,agent:r});const o=Pr(ex,this).get(e),s=o.instances.get(t),a=setTimeout(()=>Pr(tx,this).call(this,e,t),n||2*Pr(qG,this));s&&clearTimeout(s.timeout),o.instances.set(t,{timestamp:new Date,timeout:a}),i||this.emit("join",{id:e,agent:r}),s||this.ping()}),Mr(this,tx,(e,t)=>{const n=Pr(ex,this).get(e);n.instances.delete(t),0===n.instances.size&&(Pr(ex,this).delete(e),this.emit("leave",e))}),Ur(this,"all",()=>Array.from(Pr(ex,this)).map(([e,{agent:t}])=>({id:e,agent:t}))),Ur(this,"destroy",()=>{for(const e of Pr(ex,this).values()){for(const t of e.instances.values())clearTimeout(t.timeout);e.instances.clear()}Pr(ex,this).clear(),clearInterval(Pr(ZG,this)),this.removeAllListeners()}),Dr(JG,this,e),Dr(XG,this,t),Dr(qG,this,n),Dr(ZG,this,setInterval(this.ping,n))}get id(){return Pr(JG,this)}}var rx=new WeakMap,ix=new WeakMap,ox=new WeakMap,sx=new WeakMap,ax=new WeakMap,cx=new WeakMap,lx=new WeakMap,ux=new WeakMap,hx=new WeakMap,dx=new WeakMap,fx=new WeakMap,px=new WeakMap,_x=new WeakMap,Ex=new WeakMap;class vx{constructor(e){Mr(this,rx,void 0),Mr(this,ix,void 0),Mr(this,ox,void 0),Mr(this,sx,void 0),Mr(this,ax,void 0),Mr(this,cx,void 0),Mr(this,lx,async()=>{Dr(ix,this,new bD(lE()));const e={call:Pr(rx,this),mediaSettings:Pr(ix,this),showSettingsDialog:Pr(dx,this)};Dr(ox,this,new fG(e)),!Pr(ux,this).call(this)||await Pr(hx,this).call(this)?(Dr(sx,this,new xG(e)),Pr(ix,this).on("updated",Pr(fx,this)),mE.on("activate",Pr(_x,this)),Pr(rx,this).on("updated",Pr(px,this)),Pr(px,this).call(this,Pr(rx,this))):Pr(rx,this).end()}),Mr(this,ux,()=>{const{state:e,hasJoined:t}=Pr(rx,this);if(e===BD&&t&&mE.isActive()){const{audioEnabled:e,videoEnabled:t}=Pr(ix,this).settings;return!e&&!t&&!navigator.userActivation.hasBeenActive}return!1}),Mr(this,hx,async()=>{const{action:e,settings:t}=await Pr(ox,this).show({title:zM.tr("CALLING_JOIN"),description:zM.tr("CALLING_REJOIN_PROMPT"),primaryTitle:zM.tr("CALLING_JOIN"),secondaryTitle:zM.tr("CALLING_END")}),n="primary"===e;return n&&Pr(ix,this).update(t),Pr(ox,this).hide(),n}),Mr(this,dx,async()=>{const{action:e,settings:t}=await Pr(ox,this).show({title:null,description:null,primaryTitle:zM.tr("CALLING_SAVE"),secondaryTitle:zM.tr("CALLING_CANCEL")});"primary"===e&&Pr(ix,this).update(t),Pr(ox,this).hide()}),Mr(this,fx,()=>{Pr(Ex,this).call(this,Pr(ix,this).settings)}),Mr(this,px,({state:e,hasJoined:t})=>{e===BD&&t&&mE.isActive()&&Pr(Ex,this).call(this,Pr(ix,this).settings)}),Mr(this,_x,()=>{const{state:e,hasJoined:t}=Pr(rx,this);e===BD&&t&&(Pr(ix,this).reloadFromStorage(),Pr(Ex,this).call(this,Pr(ix,this).settings))}),Mr(this,Ex,async e=>{const{audioEnabled:t,videoEnabled:n}=e;if(t||Dr(ax,this,null),n||Dr(cx,this,null),Pr(rx,this).getTracks().forEach(e=>{t||"audio"!==e.kind||Pr(rx,this).removeTrack(e),n||"video"!==e.kind||Pr(rx,this).removeTrack(e)}),!t&&!n)return;if(!navigator.mediaDevices)return console.warn("CobrowseIO: Failed to start, mediaDevices is not available"),void Pr(ix,this).update({audioEnabled:!1,videoEnabled:!1});const r=yD(e),i=AD(e),o=t&&!ab(Pr(ax,this),r),s=n&&!ab(Pr(cx,this),i);if(!o&&!s)return;const a=Fr(Fr({},o?r:{}),s?i:{});try{(await navigator.mediaDevices.getUserMedia(a)).getTracks().forEach(e=>{const t="audio"===e.kind&&Pr(ix,this).settings.audioEnabled,n="video"===e.kind&&Pr(ix,this).settings.videoEnabled;t||n?(Pr(rx,this).addTrack(e),t&&Dr(ax,this,r),n&&Dr(cx,this,i)):e.stop()})}catch(e){console.warn("CobrowseIO: Failed to get media",e),Pr(ix,this).update({videoEnabled:!1,audioEnabled:!1})}}),Ur(this,"destroy",()=>{var e,t,n;null===(e=Pr(ix,this))||void 0===e||e.off("updated",Pr(fx,this)),Dr(ix,this,null),null===(t=Pr(ox,this))||void 0===t||t.destroy(),Dr(ox,this,null),null===(n=Pr(sx,this))||void 0===n||n.destroy(),Dr(sx,this,null),mE.off("activate",Pr(_x,this)),Pr(rx,this).off("updated",Pr(px,this))}),Dr(rx,this,e),Pr(lx,this).call(this)}}var mx=new WeakMap;class gx extends Eb{constructor(e){super(),Mr(this,mx,void 0),Dr(mx,this,e.id()),this.setHeader("X-CobrowseDeviceToken",e.getHeader("X-CobrowseDeviceToken"))}url(){return new URL(`api/1/sessions/${Pr(mx,this)}/ice`,gx.api).toString()}}const Ix=Af("cbio.Calling.Peer");var Lx=new WeakMap,wx=new WeakMap,Cx=new WeakMap,yx=new WeakMap,Ax=new WeakMap,Nx=new WeakMap,Sx=new WeakMap,Tx=new WeakMap,bx=new WeakMap,Ox=new WeakMap,Rx=new WeakMap,kx=new WeakMap,Px=new WeakMap,Mx=new WeakMap,Dx=new WeakMap,Gx=new WeakMap,xx=new WeakMap,Ux=new WeakMap,Wx=new WeakMap,Fx=new WeakMap,Vx=new WeakMap;class jx extends nd{constructor(e){super(),Mr(this,Lx,void 0),Mr(this,wx,void 0),Mr(this,Cx,void 0),Mr(this,yx,void 0),Mr(this,Ax,void 0),Mr(this,Nx,void 0),Mr(this,Sx,!1),Mr(this,Tx,!1),Mr(this,bx,!1),Mr(this,Ox,[]),Mr(this,Rx,void 0),Mr(this,kx,void 0),Mr(this,Px,void 0),Mr(this,Mx,!1),Mr(this,Dx,void 0),Ur(this,"createConnection",e=>{Ix("creating RTCPeerConnection for peer",this.id,"with connection id",e),Pr(Px,this).connectionId=null!=e?e:null,Dr(Rx,this,new RTCPeerConnection({iceServers:Pr(Cx,this)})),Dr(Dx,this,Pr(Rx,this).createDataChannel("priming")),Pr(Rx,this).addEventListener("negotiationneeded",Pr(Gx,this)),Pr(Rx,this).addEventListener("icecandidate",Pr(xx,this)),Pr(Rx,this).addEventListener("iceconnectionstatechange",Pr(Ux,this)),Pr(Rx,this).addEventListener("connectionstatechange",Pr(Wx,this)),Pr(Rx,this).addEventListener("track",Pr(Fx,this)),this.emit("connection.created",this)}),Ur(this,"closeConnection",()=>{var e;Ix("closing RTCPeerConnection for peer",this.id),null===(e=Pr(Dx,this))||void 0===e||e.close(),Dr(Dx,this,null),Pr(Rx,this).getSenders().forEach(e=>Pr(Rx,this).removeTrack(e)),Pr(Rx,this).removeEventListener("negotiationneeded",Pr(Gx,this)),Pr(Rx,this).removeEventListener("icecandidate",Pr(xx,this)),Pr(Rx,this).removeEventListener("iceconnectionstatechange",Pr(Ux,this)),Pr(Rx,this).removeEventListener("connectionstatechange",Pr(Wx,this)),Pr(Rx,this).removeEventListener("track",Pr(Fx,this)),Pr(Rx,this).close(),Dr(Rx,this,null)}),Mr(this,Gx,async()=>{try{Dr(Sx,this,!0),await Pr(Rx,this).setLocalDescription(),Pr(yx,this).call(this,Pr(kx,this),Pr(Px,this),Pr(Rx,this).localDescription)}finally{Dr(Sx,this,!1)}}),Mr(this,xx,e=>{e.candidate&&Pr(Ax,this).call(this,Pr(kx,this),Pr(Px,this),e.candidate)}),Mr(this,Ux,()=>{"failed"===Pr(Rx,this).iceConnectionState&&(Ix("ice connection failed for peer",this.id,"restarting ice"),Pr(Rx,this).restartIce())}),Mr(this,Wx,()=>{var e;"connected"===Pr(Rx,this).connectionState&&(Ix("connected to peer",this.id),Dr(Mx,this,!0),null===(e=Pr(Dx,this))||void 0===e||e.close(),Dr(Dx,this,null),this.emit("connection.updated",this)),"disconnected"===Pr(Rx,this).connectionState&&(Ix("disconnected from peer",this.id),Dr(Mx,this,!1),this.emit("connection.updated",this))}),Mr(this,Fx,e=>{const t=e.streams[0];t?(t.removeEventListener("removetrack",Pr(Vx,this)),t.addEventListener("removetrack",Pr(Vx,this)),this.emit("track.added",e.track)):console.warn("CobrowseIO: Failed to add track, expected stream")}),Mr(this,Vx,e=>{this.emit("track.removed",e.track)}),Ur(this,"handleOffer",async(e,t,n)=>{if(Pr(kx,this).connectionId!==t.connectionId&&t.connectionId)return Ix("offer intended for different connection");if(Pr(Px,this).connectionId||(Pr(Px,this).connectionId=e.connectionId),Pr(Px,this).connectionId!==e.connectionId)return Ix("offer from",e,"has a different connection id"),this.closeConnection(),this.createConnection(e.connectionId),this.handleOffer(e,t,n);const r=!Pr(Sx,this)&&("stable"===Pr(Rx,this).signalingState||Pr(bx,this));if(Dr(Tx,this,!r&&!Pr(Nx,this)),Pr(Tx,this))return Ix("offer collision, ignoring as the impolite peer");await Pr(Rx,this).setRemoteDescription(n);const i=Pr(Ox,this).length;i>0&&(Ix("adding ice candidates from queue",i),await Promise.allSettled(Pr(Ox,this).map(e=>Pr(Rx,this).addIceCandidate(e))),Pr(Ox,this).length=0),await Pr(Rx,this).setLocalDescription(),Pr(yx,this).call(this,Pr(kx,this),Pr(Px,this),Pr(Rx,this).localDescription)}),Ur(this,"handleAnswer",async(e,t,n)=>{if(Pr(kx,this).connectionId!==t.connectionId)return Ix("answer intended for different connection");if(Pr(Px,this).connectionId||(Pr(Px,this).connectionId=e.connectionId),Pr(Px,this).connectionId!==e.connectionId)return Ix("answer from different connection ignored");try{Dr(bx,this,!0),await Pr(Rx,this).setRemoteDescription(n)}finally{Dr(bx,this,!1)}const r=Pr(Ox,this).length;r>0&&(Ix("adding ice candidates from queue",r),await Promise.allSettled(Pr(Ox,this).map(e=>Pr(Rx,this).addIceCandidate(e))),Pr(Ox,this).length=0)}),Ur(this,"handleIceCandidate",async(e,t,n)=>{if(Pr(kx,this).connectionId!==t.connectionId)return Ix("ice candidate intended for different connection");if(Pr(Px,this).connectionId!==e.connectionId)return Ix("ice candidate from different connection ignored");if(Pr(Rx,this).remoteDescription)try{await Pr(Rx,this).addIceCandidate(n)}catch(e){if(!Pr(Tx,this))throw e}else Pr(Ox,this).push(n)});const t=e.localClientId;Dr(Lx,this,e.remoteClientId),Dr(wx,this,e.agentId),Dr(Cx,this,e.iceServers),Dr(yx,this,e.sendSDP),Dr(Ax,this,e.sendCandidate),Dr(Nx,this,[t,Pr(Lx,this)].sort()[0]===t),Dr(Ox,this,[]),Dr(kx,this,{clientId:t,connectionId:J_()}),Dr(Px,this,{clientId:Pr(Lx,this),connectionId:null})}get id(){return Pr(Lx,this)}get agentId(){return Pr(wx,this)}get isConnected(){return Pr(Mx,this)}get connection(){return Pr(Rx,this)}}const zx=Af("cbio.Calling.Signalling"),Bx="sdp",Hx="icecandidate";var Qx=new WeakMap,Yx=new WeakMap,Kx=new WeakMap,$x=new WeakMap,Jx=new WeakMap,Xx=new WeakMap;class qx extends td.EventEmitter{constructor(e,t){super(),Mr(this,Qx,void 0),Mr(this,Yx,void 0),Mr(this,Kx,new Map),Ur(this,"sendSDP",(e,t,n)=>{zx("sending sdp with type",n.type,"to",t),Pr(Qx,this).send(Bx,{from:e,to:t,sdp:JSON.stringify(n)})}),Ur(this,"sendCandidate",(e,t,n)=>{zx("sending ice candidate","to",t),Pr(Qx,this).send(Hx,{from:e,to:t,candidate:JSON.stringify(n)})}),Ur(this,"takeLastOffer",e=>{const t=Pr(Kx,this).get(e);return Pr(Kx,this).delete(e),t}),Ur(this,"flushLastOfferCache",()=>{Pr(Kx,this).clear()}),Mr(this,$x,(e,t)=>{e===Bx&&Pr(Jx,this).call(this,t),e===Hx&&Pr(Xx,this).call(this,t)}),Mr(this,Jx,({from:e,to:t,sdp:n})=>{if(!Pr(Yx,this).call(this,t))return;const r=JSON.parse(n);zx("receiving sdp with type",r.type,"from",e),"offer"===r.type&&Pr(Kx,this).set(e.clientId,{from:e,to:t,sdp:r}),this.emit(Bx,e,t,r)}),Mr(this,Xx,({from:e,to:t,candidate:n})=>{Pr(Yx,this).call(this,t)&&(zx("receiving ice candidate","from",e),this.emit(Hx,e,t,JSON.parse(n)))}),Ur(this,"destroy",()=>{Pr(Qx,this).off("event",Pr($x,this)),this.flushLastOfferCache()}),Dr(Qx,this,e),Dr(Yx,this,t),Pr(Qx,this).on("event",Pr($x,this))}}const Zx=Af("cbio.Calling.PeerManager");var eU=new WeakMap,tU=new WeakMap,nU=new WeakMap,rU=new WeakMap,iU=new WeakMap,oU=new WeakMap,sU=new WeakMap;class aU extends td.EventEmitter{constructor(e,t){super(),Mr(this,eU,void 0),Mr(this,tU,void 0),Mr(this,nU,new Map),Ur(this,"createPeer",async(e,t,n)=>{if(Pr(nU,this).has(t))return;Zx("creating peer",t);const r=new jx({localClientId:e,remoteClientId:t,agentId:n,iceServers:Pr(tU,this),sendSDP:(e,t,n)=>Pr(eU,this).sendSDP(e,t,n),sendCandidate:(e,t,n)=>Pr(eU,this).sendCandidate(e,t,n)});r.on("connection.updated",Pr(rU,this)),Pr(nU,this).set(t,r);const i=Pr(eU,this).takeLastOffer(t);if(i){const e=i.from.connectionId;Zx("using last offer with connection id",e),r.createConnection(e),await r.handleOffer(i.from,i.to,i.sdp)}else r.createConnection(null);Zx("peer created"),this.emit("peer.created",r)}),Mr(this,rU,e=>{this.emit("peer.connection.updated",e)}),Ur(this,"removePeer",e=>{Zx("removing peer",e);const t=Pr(nU,this).get(e);if(!t)return Zx("unknown peer",e);Pr(iU,this).call(this,t),this.emit("peer.removed",e)}),Ur(this,"reconnectPeers",()=>{this.peers.forEach(e=>{e.closeConnection(),e.createConnection(null)})}),Mr(this,iU,e=>{e.off("connection.updated",Pr(rU,this)),e.closeConnection(),Pr(nU,this).delete(e.id)}),Mr(this,oU,(e,t,n)=>{Zx("receiving sdp",n.type,"from",e);const r=Pr(nU,this).get(e.clientId);if(!r)return Zx("unknown peer",e.clientId);"offer"===n.type&&(Pr(eU,this).takeLastOffer(e.clientId),r.handleOffer(e,t,n)),"answer"===n.type&&r.handleAnswer(e,t,n)}),Mr(this,sU,async(e,t,n)=>{Zx("receiving ice candidate from",e);const r=Pr(nU,this).get(e.clientId);if(!r)return Zx("unknown peer",e.clientId);r.handleIceCandidate(e,t,n)}),Ur(this,"destroy",()=>{Pr(eU,this).flushLastOfferCache(),Pr(eU,this).off(Hx,Pr(sU,this)),Pr(eU,this).off(Bx,Pr(oU,this)),Pr(nU,this).forEach(Pr(iU,this)),Pr(nU,this).clear()}),Dr(eU,this,e),Dr(tU,this,t),Pr(eU,this).on(Bx,Pr(oU,this)),Pr(eU,this).on(Hx,Pr(sU,this))}get peers(){return[...Pr(nU,this).values()]}}var cU=new WeakMap,lU=new WeakMap,uU=new WeakMap,hU=new WeakMap,dU=new WeakMap,fU=new WeakMap;class pU extends td.EventEmitter{constructor({id:e,agentId:t}){super(),Mr(this,cU,void 0),Mr(this,lU,void 0),Mr(this,uU,void 0),Mr(this,hU,Vy(this,"_addTrack",e=>{Pr(uU,this).getTrackById(e.id)||(Pr(uU,this).getTracks().forEach(t=>{t.kind===e.kind&&Pr(uU,this).removeTrack(t)}),Pr(uU,this).addTrack(e),this.emit("track.added",e))})),Mr(this,dU,Vy(this,"_removeTrack",e=>{const t=Pr(uU,this).getTracks().some(t=>t.id===e.id);t&&(e.stop(),Pr(uU,this).removeTrack(e),this.emit("track.removed",e))})),Mr(this,fU,Vy(this,"_destroy",()=>{Pr(uU,this).getTracks().forEach(e=>{e.stop(),Pr(uU,this).removeTrack(e)})})),Dr(cU,this,e),Dr(lU,this,t),Dr(uU,this,new MediaStream)}get id(){return Pr(cU,this)}get agentId(){return Pr(lU,this)}get stream(){return Pr(uU,this)}get hasAudio(){return Pr(uU,this).getAudioTracks().some(e=>"live"===e.readyState)}get hasVideo(){return Pr(uU,this).getVideoTracks().some(e=>"live"===e.readyState)}}const _U=Af("cbio.Calling.LocalCallParticipant");var EU=new WeakMap,vU=new WeakMap,mU=new WeakMap;class gU extends pU{constructor({id:e,agentId:t}){super({id:e,agentId:t}),Mr(this,EU,Vy(this,"addTrack",e=>{_U("adding track with kind",e.kind,"to local participant",this.id),this[Fy]._addTrack(e)})),Mr(this,vU,Vy(this,"removeTrack",e=>{_U("removing track with kind",e.kind,"from local participant",this.id),this[Fy]._removeTrack(e)})),Mr(this,mU,Vy(this,"destroy",()=>{this[Fy]._destroy()}))}}const IU=Af("cbio.Calling.RemoteCallParticipant");var LU=new WeakMap,wU=new WeakMap,CU=new WeakMap,yU=new WeakMap,AU=new WeakMap,NU=new WeakMap,SU=new WeakMap,TU=new WeakMap,bU=new WeakMap,OU=new WeakMap,RU=new WeakMap;class kU extends pU{constructor({id:e,agentId:t,peer:n,localParticipant:r}){super({id:e,agentId:t}),Mr(this,LU,void 0),Mr(this,wU,void 0),Mr(this,CU,()=>{const{stream:e,hasAudio:t,hasVideo:n}=Pr(wU,this);(t||n)&&e.getTracks().forEach(t=>{Pr(bU,this).call(this,t,e)})}),Mr(this,yU,()=>{Pr(CU,this).call(this)}),Mr(this,AU,e=>{Pr(bU,this).call(this,e,Pr(wU,this).stream)}),Mr(this,NU,e=>{Pr(OU,this).call(this,e)}),Mr(this,SU,e=>{this[Fy]._addTrack(e)}),Mr(this,TU,e=>{this[Fy]._removeTrack(e)}),Mr(this,bU,(e,...t)=>{IU("adding track with kind",e.kind,"to remote participant",this.id);const{connection:n}=Pr(LU,this);if(n.getSenders().some(t=>{var n;return(null===(n=t.track)||void 0===n?void 0:n.id)===e.id}))return IU("track already exists");n.addTrack(e,...t)}),Mr(this,OU,e=>{IU("removing track with kind",e.kind,"from remote participant",this.id);const{connection:t}=Pr(LU,this);t.getSenders().forEach(n=>{var r;(null===(r=n.track)||void 0===r?void 0:r.id)===e.id&&t.removeTrack(n)})}),Mr(this,RU,Vy(this,"destroy",()=>{this[Fy]._destroy(),Pr(LU,this).off("connection.created",Pr(yU,this)),Pr(LU,this).off("track.added",Pr(SU,this)),Pr(LU,this).off("track.removed",Pr(TU,this)),Pr(wU,this).off("track.added",Pr(AU,this)),Pr(wU,this).off("track.removed",Pr(NU,this))})),Dr(LU,this,n),Dr(wU,this,r),Pr(LU,this).on("connection.created",Pr(yU,this)),Pr(LU,this).on("track.added",Pr(SU,this)),Pr(LU,this).on("track.removed",Pr(TU,this));const{connection:i}=Pr(LU,this);i.getReceivers().forEach(e=>{e.track&&Pr(SU,this).call(this,e.track)}),Pr(wU,this).on("track.added",Pr(AU,this)),Pr(wU,this).on("track.removed",Pr(NU,this)),Pr(CU,this).call(this)}}const PU=Af("cbio.Calling.Calling");var MU=new WeakMap,DU=new WeakMap,GU=new WeakMap,xU=new WeakMap,UU=new WeakMap,WU=new WeakMap,FU=new WeakMap,VU=new WeakMap,jU=new WeakMap,zU=new WeakMap,BU=new WeakMap,HU=new WeakMap,QU=new WeakMap,YU=new WeakMap,KU=new WeakMap,$U=new WeakMap,JU=new WeakSet,XU=new WeakMap,qU=new WeakMap,ZU=new WeakMap,eW=new WeakMap,tW=new WeakMap,nW=new WeakMap,rW=new WeakMap,iW=new WeakMap,oW=new WeakMap;class sW{constructor(e){xr(this,JU),Mr(this,MU,void 0),Mr(this,DU,void 0),Mr(this,GU,void 0),Mr(this,xU,void 0),Mr(this,UU,void 0),Mr(this,WU,void 0),Mr(this,FU,void 0),Mr(this,VU,void 0),Mr(this,jU,void 0),Mr(this,zU,void 0),Mr(this,BU,void 0),Mr(this,HU,void 0),Mr(this,QU,void 0),Mr(this,YU,new Map),Mr(this,KU,new Set),Mr(this,$U,void 0),Ur(this,"handleSessionUpdate",(e,t)=>{e!==VD?(Pr(BU,this)||(Dr(QU,this,new gU({id:Pr(VU,this),agentId:Pr(FU,this)})),Dr(BU,this,new nG({getParticipants:()=>Gr(JU,this,aW),localParticipant:Pr(QU,this),sessionId:Pr(MU,this),storage:lE(),updateCalling:Pr(DU,this)})),Pr(BU,this).on("updated",Pr(XU,this)),Pr(XU,this).call(this,Pr(BU,this))),Pr(BU,this)[Fy].receiveSessionUpdate(e,t),Pr(HU,this)||Dr(HU,this,new vx(Pr(BU,this)))):Pr(ZU,this).call(this)}),Mr(this,XU,({state:e,hasJoined:t})=>{e===BD&&t&&Pr(qU,this).call(this)}),Mr(this,qU,async()=>{if(!Pr($U,this)&&!Pr(zU,this))try{Dr($U,this,!0);const e=await Pr(GU,this).call(this);Dr(zU,this,new aU(Pr(jU,this),e)),Pr(xU,this).on("join",Pr(eW,this)),Pr(xU,this).on("leave",Pr(tW,this)),await Promise.all(Pr(xU,this).all().map(({id:e,agent:t})=>Pr(zU,this).createPeer(Pr(VU,this),e,t))),Pr(zU,this).on("peer.created",Pr(nW,this)),Pr(zU,this).on("peer.removed",Pr(rW,this)),Pr(zU,this).on("peer.connection.updated",Pr(iW,this)),await Promise.all(Pr(zU,this).peers.map(Pr(nW,this)))}finally{Dr($U,this,!1)}}),Mr(this,ZU,()=>{var e,t,n,r,i,o,s,a;Pr(xU,this).off("join",Pr(eW,this)),Pr(xU,this).off("leave",Pr(tW,this)),Pr(YU,this).forEach((e,t)=>{e[Fy].destroy(),Pr(YU,this).delete(t)}),null===(e=Pr(QU,this))||void 0===e||e[Fy].destroy(),Dr(QU,this,null),null===(t=Pr(zU,this))||void 0===t||t.off("peer.created",Pr(nW,this)),null===(n=Pr(zU,this))||void 0===n||n.off("peer.removed",Pr(rW,this)),null===(r=Pr(zU,this))||void 0===r||r.off("peer.connection.updated",Pr(iW,this)),null===(i=Pr(zU,this))||void 0===i||i.destroy(),Dr(zU,this,null),null===(o=Pr(HU,this))||void 0===o||o.destroy(),Dr(HU,this,null),null===(s=Pr(BU,this))||void 0===s||s.off("updated",Pr(XU,this)),null===(a=Pr(BU,this))||void 0===a||a[Fy].destroy(),Dr(BU,this,null)}),Mr(this,eW,({id:e,agent:t})=>{var n;const r=null!=t?t:null;null===(n=Pr(zU,this))||void 0===n||n.createPeer(Pr(xU,this).id,e,r)}),Mr(this,tW,e=>{var t;null===(t=Pr(zU,this))||void 0===t||t.removePeer(e)}),Mr(this,nW,e=>{if(Pr(YU,this).has(e.id))return;const t=new kU({id:e.id,agentId:e.agentId,peer:e,localParticipant:Pr(QU,this)});var n;Pr(YU,this).set(e.id,t),e.isConnected&&(Pr(KU,this).add(e.id),null===(n=Pr(BU,this))||void 0===n||n.emit("participants.updated",Gr(JU,this,aW)))}),Mr(this,rW,e=>{const t=Pr(YU,this).get(e);if(!t)return PU("unknown participant",e);var n;t[Fy].destroy(),Pr(YU,this).delete(e),Pr(KU,this).has(e)&&(Pr(KU,this).delete(e),null===(n=Pr(BU,this))||void 0===n||n.emit("participants.updated",Gr(JU,this,aW)))}),Mr(this,iW,e=>{var t;e.isConnected?Pr(KU,this).add(e.id):Pr(KU,this).delete(e.id),null===(t=Pr(BU,this))||void 0===t||t.emit("participants.updated",Gr(JU,this,aW))}),Mr(this,oW,()=>{const{state:e,hasJoined:t}=Pr(BU,this)||{};var n;e===BD&&t&&(null===(n=Pr(zU,this))||void 0===n||n.reconnectPeers())}),Ur(this,"destroy",()=>{var e;Pr(ZU,this).call(this),null===(e=Pr(jU,this))||void 0===e||e.destroy(),Dr(jU,this,null),mE.off("activate",Pr(oW,this))}),Dr(MU,this,e.sessionId),Dr(DU,this,e.updateCalling),Dr(GU,this,e.fetchIceServers),Dr(xU,this,e.clientTracker),Dr(UU,this,e.socket),Dr(FU,this,e.agentId),Dr(VU,this,e.clientTracker.id),Dr(jU,this,new qx(Pr(UU,this),({clientId:e})=>Pr(VU,this)===e&&mE.isActive())),mE.on("activate",Pr(oW,this))}get call(){return Pr(BU,this)}}function aW(e){const t=Pr(YU,e).values().filter(t=>Pr(KU,e).has(t.id));return[Pr(QU,e),...t]}const cW=Af("cbio.SessionContext"),lW=Af("cbio.SessionContext.events");var uW=new WeakMap,hW=new WeakMap,dW=new WeakMap,fW=new WeakMap,pW=new WeakMap,_W=new WeakMap,EW=new WeakMap,vW=new WeakMap,mW=new WeakMap,gW=new WeakMap,IW=new WeakMap,LW=new WeakMap,wW=new WeakMap,CW=new WeakSet,yW=new WeakMap,AW=new WeakMap,NW=new WeakMap,SW=new WeakMap,TW=new WeakMap,bW=new WeakMap,OW=new WeakMap,RW=new WeakMap,kW=new WeakMap,PW=new WeakMap,MW=new WeakMap,DW=new WeakMap,GW=new WeakMap,xW=new WeakMap,UW=new WeakMap,WW=new WeakMap,FW=new WeakMap,VW=new WeakMap,jW=new WeakMap,zW=new WeakMap,BW=new WeakMap,HW=new WeakMap,QW=new WeakMap,YW=new WeakMap,KW=new WeakMap,$W=new WeakMap,JW=new WeakMap,XW=new WeakMap,qW=new WeakMap,ZW=new WeakMap;class eF{constructor(e,t){xr(this,CW),Mr(this,uW,void 0),Mr(this,hW,void 0),Mr(this,dW,new MO),Mr(this,fW,void 0),Mr(this,pW,void 0),Mr(this,_W,void 0),Mr(this,EW,void 0),Mr(this,vW,void 0),Mr(this,mW,void 0),Mr(this,gW,void 0),Mr(this,IW,()=>{Pr(HW,this).call(this),Pr(vW,this)||(Dr(vW,this,new nx(this.delegate.deviceId(),J_())),Pr(vW,this).on("ping",e=>Pr(uW,this).stream.send("client",e)),this.session.on("client",Pr(kW,this))),Pr(mW,this)||(Dr(mW,this,new sW({sessionId:this.session.id(),updateCalling:e=>this.session.update({calling:e}),fetchIceServers:()=>(async e=>{try{const t=new gx(e);return await t.create(),t.resource.iceServers}catch(e){return console.warn("failed to fetch ice servers",e),[]}})(this.session),clientTracker:Pr(vW,this),socket:Pr(uW,this).stream,agentId:null})),Pr(mW,this).handleSessionUpdate(this.session.calling(),this.session.caller())),Pr(vW,this).ping(),Dr(gW,this,()=>{Dr(gW,this,null),LM.resolvePendingHighlight()})}),Mr(this,LW,e=>{var t;"session-end"===e&&null!==(t=this.session)&&void 0!==t&&t.isActive()&&this.session.end()}),Mr(this,wW,e=>{var t;return!(null===(t=this.session)||void 0===t||!t.isActive()||e===ky&&!this.session.capabilities.includes(Qb))}),Ur(this,"handleNavigation",(e,t,n,r)=>{var i;const{name:o,go:s,type:a}=r,{handle:c,document:l}=Pr(_W,this).resolveDocument(r.handle,o),{windowProxy:u}=l,h=i=>{const s=Pr(EW,this).runHandler(e,i||t,n,Fr(Fr({},r),{},{document:l}));return s.rewrittenUrl?{rewrittenUrl:s.rewrittenUrl}:(s.document&&Pr(_W,this).addDocument(c,o,s.document),{windowProxy:u})};if(!a)return h();if(a===Ry)return h();const d=this.delegate.confirmOpen(e,a);return d?!0===d?h("_blank"):(null===(i=d.then)||void 0===i||i.call(d,e=>{if(!e)return s(),{windowProxy:u};h("_blank")}),{windowProxy:u}):{rewrittenUrl:e}}),Ur(this,"invalidateFrames",()=>{Pr(dW,this).isRunning()&&Pr(dW,this).invalidateFrame()}),Ur(this,"destroy",()=>{cW("destroy session context"),Pr(zW,this).call(this),vD.off("click",Pr(LW,this)),Pr(EW,this)&&Pr(EW,this).destroy(),Dr(EW,this,null),UO.off("navigate",Pr(yW,this)),Pr(uW,this)&&Pr(uW,this).close(),Dr(uW,this,null),Pr(dW,this)&&Pr(dW,this).destroy(),Dr(dW,this,null),Pr(mW,this)&&Pr(mW,this).destroy(),Dr(mW,this,null),Pr(_W,this)&&Pr(_W,this).destroy(),Dr(_W,this,null),Pr(vW,this)&&Pr(vW,this).destroy(),Dr(vW,this,null),mE.off("activate",Pr(HW,this)),window.removeEventListener("focus",Pr(HW,this),{capture:!0,passive:!0}),window.removeEventListener("hashchange",Pr(QW,this),{capture:!0,passive:!0}),B_.onChange===Pr(qW,this)&&(B_.onChange=null),DI.off("click",Pr($W,this)),DI.off("change",Pr(JW,this)),DI.off("input",Pr(XW,this)),fM.off("click",Pr($W,this)),fM.off("change",Pr(JW,this)),fM.off("input",Pr(XW,this)),LM.off("end",Pr(bW,this)),this.session&&(this.session.removeListener("update",Pr(jW,this)),this.session.removeListener("ended",Pr(zW,this)),this.session.removeListener("sync",Pr(NW,this)),this.session.removeListener("drawing",Pr(OW,this)),this.session.removeListener("laser",Pr(SW,this)),this.session.removeListener("control",Pr(RW,this)),this.session.removeListener("remote-error",Pr(AW,this)),this.session.removeListener("client",Pr(kW,this))),document.removeEventListener("DOMContentLoaded",Pr(PW,this),{once:!0}),this.session=null}),Mr(this,yW,(e,t)=>{Pr(MW,this).call(this,this.session),Pr(DW,this).call(this),Pr(GW,this).call(this),by.hide(),(Mk(this.delegate.redactedViews,t)||Mk(this.delegate.unredactedViews,t)||Mk(this.session.redactionSelectors(),t)||Mk(this.session.unredactionSelectors(),t))&&this.invalidateFrames()}),Mr(this,AW,async e=>{const t=Pr(dW,this).getSource();if(!(t instanceof dR))return;const{target:n,error:{cause:r}}=e;if("load-error"!==r)return;const i="string"==typeof n?n:n.id;await $g(i),t.partialSync(i)}),Mr(this,NW,({id:e})=>{e&&Pr(fW,this)===e||(Dr(fW,this,e),Pr(dW,this).invalidateFrame())}),Mr(this,SW,e=>{Sr(CW,this,tF).call(this,e)&&mE.isActive()&&(this.session.fullDevice()||UM.update(e))}),Mr(this,TW,async e=>{lW("on(highlight)",e),Sr(CW,this,tF).call(this,e)&&mE.isActive()&&(this.session.fullDevice()||await LM.highlightAndWait(this.delegate,e))}),Mr(this,bW,({id:e,state:t})=>{Pr(BW,this).call(this,"highlight",{type:YG,id:e,state:t,timestamp:new Date})}),Mr(this,OW,e=>{Sr(CW,this,tF).call(this,e)&&(e.image||OM.hide(e.agent),mE.isActive()&&(this.session.fullDevice()||OM.update(e)))}),Mr(this,RW,(e,t)=>{"focus"!==e||t.agent||mE.resignActive(),t.agent&&mE.isActive()&&(this.session.fullDevice()||this.session.allowRemoteControl()&&(this.session.capabilities.includes(Hb)&&FM.update(e,t),Sr(CW,this,tF).call(this,t)&&iM.applyEvent(e,t)))}),Mr(this,kW,e=>{Pr(vW,this).track(e)}),Mr(this,PW,e=>{this.session&&(e.isActive()?document.body?this.delegate.showSessionControls(e):document.addEventListener("DOMContentLoaded",Pr(PW,this),{once:!0}):this.delegate.hideSessionControls(e))}),Mr(this,MW,e=>{var t,n;const r=null!==(t=this.delegate.redactedViews)&&void 0!==t?t:[],i=null!==(n=this.delegate.unredactedViews)&&void 0!==n?n:[],o=[...r,...e.redactionSelectors()],s=[...i,...e.unredactionSelectors()];Wg.init(new hI(Pk(o),Pk(s)))}),Mr(this,DW,()=>{Gg.setIgnoredViews(Pk(this.delegate.ignoredViews))}),Mr(this,GW,()=>{jg.init(new hI(Pk(this.delegate.disabledViews),Pk(this.delegate.enabledViews)))}),Mr(this,xW,(e,t)=>{const n=!ab(e.redactionSelectors(),(null==t?void 0:t.redactionSelectors())||[]),r=!ab(e.unredactionSelectors(),(null==t?void 0:t.unredactionSelectors())||[]);return n||r}),Mr(this,UW,async e=>{if(!e.agent()||e.isActive()||e.isEnded())return null;if(Pr(pW,this))return null;if(Dr(pW,this,!0),!e.requireConsent())return e.activate();try{if(cW("authorizing session"),await e.update({state:"authorizing"}),!this.session||!e.isAuthorizing())return null;const t=await this.delegate.confirmSession(e);return this.session?!1===t?(cW("user rejected session request"),e.end()):(cW("session accepted"),e.activate()):null}catch(t){return t&&console.warn("CobrowseIO: error caught during confirmation",t),this.session?e.end():null}}),Mr(this,WW,async e=>{if("requested"!==e.remoteControl())return null;try{return!1===await this.delegate.confirmRemoteControl()?(cW("user rejeted remote control"),e.update({remote_control:"rejected"})):(cW("user accepted remote control"),e.update({remote_control:"on"}))}catch(t){return t&&console.warn("CobrowseIO: error caught during confirmation",t),e.update({remote_control:"rejected"})}}),Mr(this,FW,async()=>{const e=this.session.resource.full_device;if(!0!==e&&"requested"!==e)return!1;if(!mE.isActive())return!1;if(this.session.capabilities.includes(Bb))try{const e=await this.delegate.confirmFullDevice();return cW("full device request",e),e||await this.session.setFullDevice("rejected"),e}catch(e){return await this.session.setFullDevice("off"),!1}}),Mr(this,VW,async e=>{if(e.isEnded()||!Pr(dW,this))return null;const t=Pr(dW,this).getSource();e.fullDevice()?t instanceof XR||await Pr(dW,this).setSource(new XR({handleFrame:Pr(KW,this),scale:e.scale,captureStarted:t=>{e.setFullDevice("on"),e.emit("media",t)},captureEnded:t=>{t&&console.warn("Full device mode failed: ",t),e.setFullDevice(t?"rejected":"off")},requestPermission:Pr(FW,this)})):t instanceof dR?e.isVirtual()&&Pr(dW,this).getSource().setOptions({includeVisibility:e.isVirtual()}):Pr(dW,this).setSource(new dR(Pr(YW,this),{includeVisibility:e.isVirtual()})),Pr(dW,this).getSource().setCodecs(e.resource.video_codecs)}),Mr(this,jW,(e,t)=>{if(this.session){if(Pr(UW,this).call(this,e),Pr(PW,this).call(this,e),Pr(MW,this).call(this,e),Pr(xW,this).call(this,e,t)&&this.invalidateFrames(),Pr(WW,this).call(this,e),Pr(VW,this).call(this,e),e.isActive()&&Pr(ZW,this).call(this),Pr(mW,this)){const e=this.session.calling();if(e!==(null==t?void 0:t.calling())){const t=this.session.caller();Pr(mW,this).handleSessionUpdate(e,t)}}}else cW("onSessionUpdated called after destroy()")}),Mr(this,zW,()=>{OM.hide(),FM.hide(),UM.hide(),by.hide(),this.delegate.hideSessionControls(this.session),Pr(_W,this)&&Pr(_W,this).closeAllDocuments()}),Mr(this,BW,(e,t)=>!(!this.session||!this.session.isActive()||!this.session.fullDevice()&&!mE.isActive()||!Pr(uW,this)||!Pr(uW,this).stream||!Pr(uW,this).stream.connected||!Pr(uW,this).stream.bufferedAmount>100||(Pr(uW,this).stream.send(e,t),0))),Mr(this,HW,()=>Pr(BW,this).call(this,"focus",{type:"Focus",timestamp:new Date})),Mr(this,QW,()=>Pr(BW,this).call(this,"screen",{type:"Screen",timestamp:new Date,url:window.location.href,title:document.title})),Mr(this,YW,e=>{Dr(hW,this,(Pr(hW,this)||0)+1);const t=Pr(BW,this).call(this,"frame",{type:"Frame",id:Pr(hW,this),data:e,timestamp:new Date,mime_type:"application/x-cbio-vdom-patch"});return t&&Pr(gW,this)&&Pr(gW,this).call(this),t}),Mr(this,KW,(e,t,n)=>{Pr(uW,this).stream.messageLag()>=n?cW("dropped frame due to message lag",Pr(uW,this).stream.messageLag()):(Dr(hW,this,(Pr(hW,this)||0)+1),Pr(BW,this).call(this,"frame",{type:"Frame",id:Pr(hW,this),data:e,timestamp:new Date,mime_type:t}))}),Mr(this,$W,e=>{const t=B_.position();Pr(BW,this).call(this,"mouse",{type:UG,x:t.x/window.innerWidth,y:t.y/window.innerHeight,target:e,state:"click",timestamp:new Date})}),Mr(this,JW,e=>{Pr(BW,this).call(this,"change",{type:BG,target:e,state:"change",timestamp:new Date})}),Mr(this,XW,e=>{Pr(BW,this).call(this,"input",{type:HG,target:e,state:"input",timestamp:new Date})}),Mr(this,qW,e=>{let t="mouseout";return e.in&&(t=e.down?"mousedown":"mouseup"),Pr(BW,this).call(this,"mouse",{type:UG,x:e.x/window.innerWidth,y:e.y/window.innerHeight,state:t,timestamp:new Date})}),Mr(this,ZW,()=>(Pr(dW,this).isRunning()||(cW("start frames"),Pr(dW,this).start()),this)),cW("session context constructed"),this.session=e,this.delegate=t,Dr(uW,this,new bM(e)),mE.on("activate",Pr(HW,this)),window.addEventListener("focus",Pr(HW,this),{capture:!0,passive:!0}),window.addEventListener("hashchange",Pr(QW,this),{capture:!0,passive:!0}),B_.onChange=Pr(qW,this),DI.on("click",Pr($W,this)),DI.on("change",Pr(JW,this)),DI.on("input",Pr(XW,this)),fM.on("click",Pr($W,this)),fM.on("change",Pr(JW,this)),fM.on("input",Pr(XW,this)),LM.on("end",Pr(bW,this)),Pr(jW,this).call(this,e),e.on("updated",Pr(jW,this)),e.on("ended",Pr(zW,this)),e.on("sync",Pr(NW,this)),e.on("highlight",Pr(TW,this)),e.on("drawing",Pr(OW,this)),e.on("laser",Pr(SW,this)),e.on("control",Pr(RW,this)),e.on("remote-error",Pr(AW,this)),e.once("stream-open",Pr(IW,this)),Dr(_W,this,new yk({onDocumentAdded:e=>this.delegate.showDocument(e)}));const n=new rA(e,t),r=new dA(e,t),i=new kO(e,t);Dr(EW,this,new Uy({shouldNavigate:Pr(wW,this),handlers:[n,r,i],handleNavigation:this.handleNavigation})),UO.on("navigate",Pr(yW,this)),vD.on("click",Pr(LW,this)),Pr(DW,this).call(this),Pr(GW,this).call(this)}}function tF(e){return{[UG]:[Db],[WG]:[Db],[FG]:[Db],[VG]:[Ub,Db],[jG]:[Ub],[zG]:[Gb],[BG]:iM.isTypingInput(e)?[Ub]:[Ub,Db],[HG]:iM.isTypingInput(e)?[Ub]:[Ub,Db],[QG]:[jb],[YG]:[Yb],[KG]:null!=e.disappears_in?[zb]:[Wb,Vb,Fb],[$G]:[xb]}[e.type].some(e=>this.session.capabilities.includes(e))}const nF=Af("cbio.Integrations.Intercom");function rF(){nF("Updating intercom integration"),window.intercomSettings||(window.intercomSettings={}),window.intercomSettings.CobrowseID=ej.deviceId(),window.Intercom("update",{CobrowseID:ej.deviceId()}),ej.on("session.loaded",function(e){window.Intercom("update",{CobrowseSessionID:e.id()})})}const iF=Af("cbio.Integrations.Zendesk");function oF(e,t){let n={};"identify"===e&&t?(t.name&&(n.user_name=t.name),t.email&&(n.user_email=t.email),t.organization&&(n.user_organization=t.organization)):"prefill"===e&&t?(t.name&&t.name.value&&(n.user_name=t.name.value),t.email&&t.email.value&&(n.user_email=t.email.value),t.phone&&t.phone.value&&(n.user_phone=t.phone.value)):"logout"===e&&(n={user_name:null,user_email:null,user_organization:null,user_phone:null}),EF(n)}let sF=window.localStorage;function aF(e,t){let n={};"identify"===e&&t?n={zendesk_web_user_id:t.appUserId,cobrowseio_deviceid:t.deviceId}:"logoutUser"===e&&(n={user_name:null,user_email:null,user_organization:null,user_phone:null,zendesk_web_user_id:null,zendesk_user_id:null,zendesk_ticket_id:null}),EF(n)}function cF(){const e=lF();if(!e)throw new Error("Missing client ID (ZD-buid)");const t=uF(e);if(!t)throw new Error("Instance ID could not be found");const n=hF(t);window.zE.__cobrowseio_zendesk_tags_set||window.zE("messenger:set","conversationTags",[`cobrowseio_deviceid_${ej.deviceId()}`]),aF("identify",{appUserId:n,deviceId:ej.deviceId()})}function lF(){return sF.getItem("ZD-buid")}function uF(e){var t;return null===(t=Object.keys(sF).find(t=>t.match(/\w+\.clientId/)&&sF[t]===e))||void 0===t||null===(t=t.split("."))||void 0===t?void 0:t[0]}function hF(e){return sF.getItem(`${e}.appUserId`)}function dF(){const e=(t,n)=>{sF=sessionStorage.getItem("ZD-buid")?window.sessionStorage:window.localStorage;const r=hF(uF(lF()));r?t(r):setTimeout(e,_F,t,n)};return new Promise(e)}function fF(){EF({zendesk_web_user_id:pF()})}function pF(){var e;return null===(e=window.Smooch.getUser())||void 0===e?void 0:e.id}const _F=2e3;function EF(e){Object.keys(e).length&&(ej.customData=e)}function vF(){const e=window.zE;window.zE=function(...t){const[n,r,i]=t;if("webWidget"===n&&oF(r,i),"messenger"===n&&aF(r,i),"messenger:set"===n&&"conversationTags"===r){let e=i;if(e&&e.length){const n=ej.deviceId();e=[...e,`cobrowseio_deviceid_${n}`],t[2]=e,window.zE.__cobrowseio_zendesk_tags_set=!0}}return e(...t)};for(const t in e)window.zE[t]=e[t]}const mF=Af("cbio.Integrations.Salesforce");function gF(e){console.error("Error syncing Cobrowse.io with Salesforce Chat, please contact hello@cobrowse.io for help!"),console.warn(e)}function IF(){ej.currentSession&&ej.currentSession.end()}function LF(e){if(!e)throw new Error("No messaging Session Id found");ej.customData={salesforce_MessagingSessionId:wF(e)}}function wF(e){if(18===e.length)return e;if(15!==e.length)throw Error(`Invalid salesforce id: ${e}`);let t="";for(let n=0;n<3;n++){let r=0;for(let t=0;t<5;t++){const i=e.charAt(5*n+t);i>="A"&&i<="Z"&&(r+=1<<t)}t+="ABCDEFGHIJKLMNOPQRSTUVWXYZ012345".charAt(r)}return e+t}function CF(){mF("Detected Salesforce Enhanced Chat v1"),window.addEventListener("onEmbeddedMessagingConversationRouted",e=>{var t;const n=null==e||null===(t=e.detail)||void 0===t||null===(t=t.conversationEntry)||void 0===t?void 0:t.entryPayload;if(!n)throw new Error("No entry payload found");const r=JSON.parse(n);LF(null==r?void 0:r.recordId)})}function yF(){mF("Detected Salesforce Enhanced Chat v2"),window.addEventListener("onEmbeddedMessageSent",e=>{var t;const n=null==e||null===(t=e.detail)||void 0===t||null===(t=t.conversationEntry)||void 0===t?void 0:t.relatedRecords;if(!n)throw new Error("No related records found");LF(n[0])})}const AF=Af("cbio.Integrations.Genesys");let NF;function SF(){if(!NF)try{var e;const t=window.CXBus||(null===(e=window)||void 0===e||null===(e=e._genesys)||void 0===e||null===(e=e.widgets)||void 0===e?void 0:e.bus);if(!t)throw new Error("Genesys bus not found");NF=t.registerPlugin("CobrowseIOExtension"),window.oCobrowseIOExtension=NF,AF("CobrowseIOExtension",NF),NF.subscribe("WebChat.opened",function(e){AF("CobrowseIOExtension.WebChat.opened",e),function(e){document.querySelector(".cx-menu .cx-cobrowseio")||(document.getElementsByClassName("cx-menu")[0].insertAdjacentHTML("beforeend",'<li role="none"><div class="cx-menu-item cx-cobrowseio cx-icon" role="button" data-icon="cobrowseio" tabindex="0" aria-label="Start Co-browse Opens the Co-browse session" title="Start Co-browse" style="display: block/;"><svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" viewBox="0 0 100 100" focusable="false" role="img" aria-hidden="true" alt="" data-gcb-service-node="true"><g class="cx-svg-icon-tone1" data-gcb-service-node="true"><path d="M11.5000001,3 L85.4166665,3 L87.6666668,3 C90.2624998,3 97,3.75367965 97,8.36940835 L97,30.4776335 L4.16666671,30.4776335 L4.16666671,70.4963922 C4.16666671,78.8021647 9.0333332,80.6810966 11.3333336,80.6810966 L88.6666664,80.6810966 C90.9625002,80.6810966 92.8333333,78.8021647 92.8333333,76.4963922 L92.8333333,41.8470419 L97,41.8470419 L97,79.5093796 C97,84.1251081 93.2624998,84.8787879 91.6666668,84.8787879 L8.3333332,84.8787879 C3.73750015,84.8787879 1,81.1251081 0,75.5093796 L0,8.36940835 C3,3.75367965 2.73750015,3 8.3333332,3 L8.5000001,3 Z M18.0297398,7.03030303 L5.9962825,7.03030303 C5.79033476,7.03030303 3.99999999,8.59607987 3.99999999,10.5175565 L3.999999,26.1125541 L93,26.1125541 L93,10.5175565 C93,8.59607987 91.2056692,7.03030303 89.0037175,7.03030303 L81.9702602,7.03030303 L18.0297398,7.03030303 Z M42.3451929,54.7727663 L42.3451929,68.6904309 L35,68.6904309 L35,47.7138693 C35,44.657411 37.4676761,42.1818182 40.5082059,42.1818182 L61.3971055,42.1818182 L61.3971055,49.5560425 L47.5394308,49.5560425 L66.3971054,67.9373646 L61.202867,73.154089 L42.3451929,54.7727663 Z" id="Fill-1-Copy""></path></g></svg></div></li>'),document.getElementsByClassName("cx-cobrowseio")[0].onclick=()=>async function(e){AF("Requesting cobrowse");const t=await ej.createSessionCode();AF(`Generated session code: ${t}`),e.command("WebChatService.sendFilteredMessage",{message:`Customer requests Cobrowse session with code: ${t.substr(0,3)} ${t.substr(3)}`,regex:/Customer requests Cobrowse session with code:.*/}).done(function(e){AF("CobrowseIOExtension.WebChatService sent filtered message successfully",e)}).fail(function(e){AF("CobrowseIOExtension.WebChatService failed to send filtered message",e)})}(e))}(NF),function(e){e.command("WebChatService.updateUserData",{cobrowse_device_id:ej.deviceId()}).done(function(e){AF("CobrowseIOExtension.WebChatService.updateUserData succeeded",e)}).fail(function(e){AF("CobrowseIOExtension.WebChatService.updateUserData failed",e)})}(NF)}),NF.subscribe("WebChatService.started",function(e){try{AF("CobrowseIOExtension.WebChatService.started",e);const t={cobrowse_device_id:ej.deviceId()};e&&e.data&&(e.data.data&&e.data.data.conversationId&&(t.genesys_conversation_id=e.data.data.conversationId),e.data.userId&&"deprecated"!==e.data.userId&&(t.genesys_user_id=e.data.userId),e.data.sessionID&&"deprecated"!==e.data.sessionID&&(t.genesys_session_id=e.data.sessionID)),ej.customData=t}catch(e){AF("Error during CobrowseIOExtension.WebChatService.started",e)}}),NF.subscribe("WebChatService.agentConnected",function(e){AF("CobrowseIOExtension.WebChatService.agentConnected",e)}),NF.subscribe("WebChatService.clientConnected",function(e){AF("CobrowseIOExtension.WebChatService.clientConnected",e)}),NF.subscribe("WebChatService.restored",function(e){AF("CobrowseIOExtension.WebChatService.restored",e)}),NF.subscribe("WebChatService.ended",function(e){AF("CobrowseIOExtension.WebChatService.ended",e),ej.currentSession&&!ej.currentSession.isEnded()&&ej.currentSession.end()}),NF.subscribe("WebChat.started",function(e){try{if(AF("CobrowseIOExtension.WebChat.started",e),e&&e.data&&e.data.form){AF("e.data.form",e.data.form);const t=e.data.form||{};t.device_name=e.data.form.firstname?`${e.data.form.firstname}'s device`:"WebChat User's Device",ej.customData=t}}catch(e){AF("Error during CobrowseIOExtension.WebChat.started",e)}}),NF.republish("ready"),NF.ready()}catch(e){console.error("Error syncing Cobrowse.io with Genesys, please contact hello@cobrowse.io for help!"),console.warn(e)}}const TF=Af("cbio.Integrations.Freshchat");async function bF(){const e=ej.deviceId();window.fcWidget.user.setProperties({cobrowse_device_id:e});const t=await window.fcWidget.user.get();if(t.success){TF("Freshchat initialized");const n=t.data,r={freshchat_numeric_user_id:n.id+"",freshchat_user_id:n.alias,cobrowse_device_id:e};n.isNameGenerated||(r.freshchat_user_first_name=n.firstName,r.freshchat_user_last_name=n.lastName),n.email&&(r.freshchat_user_email=n.email),ej.customData=r}}const OF=Af("cbio.Integrations.Nice"),RF=Af("cbio.Integrations.Dynamics"),kF=Af("cbio.Integrations.ServiceNow"),PF=Af("cbio.Integrations.Talkdesk");let MF=!1;const DF=Af("cbio.Integrations.AmazonConnect"),GF=Af("cbio.Integrations");class xF{static watchProperty(e,t,n){let r=e[t];const i=()=>{GF(`monitoring changes to ${t}`,e),Object.defineProperty(e,t,{configurable:!0,set:o=>{GF("CobrowseIO detected",t,"as",o),r=o,Object.defineProperty(e,t,{configurable:!0,writable:!0,value:o}),setTimeout(()=>n(i),0)},get:()=>r})};r?(GF(`${t} already exists as`,e[t]),n(i)):i()}static initialize(){GF("Initializing integrations"),this.watchProperty(window,"Intercom",()=>function(){try{if(!window.Intercom||"function"!=typeof window.Intercom)throw new Error("expected window.Intercom to be a function");nF("Initializing intercom integration"),rF(),window.Intercom("onShow",rf(rF,12e4,{trailing:!1}))}catch(e){console.error("Error syncing Cobrowse.io with Intercom, please contact hello@cobrowse.io for help!"),console.warn(e)}}()),this.watchProperty(window,"$zopim",()=>function(){try{if("function"!=typeof window.$zopim)throw new Error("expected window.$zopim to a be a function");window.$zopim(function(){iF("Initializing zendesk integration"),window.$zopim.livechat.addTags(`cobrowseio_deviceid_${ej.deviceId()}`),ej.customData={cobrowseio_deviceid:ej.deviceId()}})}catch(e){console.error("Error syncing Cobrowse.io with Zendesk Chat, please contact hello@cobrowse.io for help!"),console.warn(e)}}()),this.initializeSalesforce(()=>function(){try{if("object"!=typeof window.embedded_svc)throw new Error("expected window.embedded_svc to a be an object");if(window.embedded_svc&&!window.embedded_svc.liveAgentAPI)throw new Error("expected liveAgentAPI on embedded_svc");mF("Initializing Salesforce legacy integration"),window.embedded_svc.addEventHandler("onChatRequestSuccess",function(e){e&&e.liveAgentSessionKey&&(ej.customData={salesforce_liveAgentSessionKey:e.liveAgentSessionKey})}),window.embedded_svc.addEventHandler("onChatEndedByAgent",IF),window.embedded_svc.addEventHandler("onChatEndedByChasitor",IF)}catch(e){gF(e)}}(),()=>function(){try{var e;if("object"!=typeof window.embeddedservice_bootstrap)throw new Error("expected window.embeddedservice_bootstrap to a be an object");mF("Initializing Salesforce Enhanced Chat integration"),(null!==(e=window.embeddedservice_bootstrap)&&void 0!==e&&null!==(e=e.settings)&&void 0!==e&&e.orgId?CF:yF)(),window.addEventListener("onEmbeddedMessagingConversationClosed",IF),window.addEventListener("onEmbeddedMessagingWindowClosed",IF)}catch(e){gF(e)}}()),this.initializeGenesys(()=>function(){try{window.Genesys("subscribe","Database.ready",()=>{const e=ej.deviceId();ej.customData={cobrowse_device_id:e},window.Genesys("command","Database.set",{messaging:{customAttributes:{cobrowse_device_id:e}}})}),window.Genesys("subscribe","MessagingService.ready",()=>{window.Genesys("subscribe","MessagingService.conversationDisconnected",({data:e})=>{AF("MessagingService.conversationDisconnected triggered",e),ej.currentSession&&!ej.currentSession.isEnded()&&(AF("Ending Cobrowse session after conversation disconnected"),ej.currentSession.end())})})}catch(e){console.error("Error syncing Cobrowse.io with Genesys, please contact hello@cobrowse.io for help!"),console.warn(e)}}(),()=>SF()),this.initializeZendesk(()=>function(){vF();try{"true"===sessionStorage.getItem("ZD-widgetOpen")?dF().then(cF):window.zE("messenger:on","open",()=>{dF().then(cF)})}catch(e){console.error("Error syncing Cobrowse.io with Zendesk (messenger), please contact hello@cobrowse.io for help!"),console.warn(e)}}(),()=>function(){try{!function(){if(!window.zE||!window.zE.identify)throw new Error("missing window.zE or window.zE.identify");{vF();const e=window.zE.identify;window.zE.identify=function(...t){const[n]=t;return oF("identify",n),e(...t)}}}()}catch(e){console.error("Error syncing Cobrowse.io with Zendesk (classic), please contact hello@cobrowse.io for help!"),console.warn(e)}}(),()=>function(){try{window.Smooch.on("widget:opened",()=>{(function(){const e=(t,n)=>{const r=pF();r?t(r):setTimeout(e,_F,t,n)};return new Promise(e)})().then(fF)})}catch(e){console.error("Error syncing Cobrowse.io with Zendesk (Sunshine Conversations), please contact hello@cobrowse.io for help!"),console.warn(e)}}()),this.initializeFreshchat(()=>async function(){window.fcWidget?(window.fcWidget.on("user:created",e=>{e.success&&bF()}),window.fcWidget.on("widget:opened",async()=>{!0===(await window.fcWidget.user.isExists()).data&&await bF()})):TF("Freshchat not found")}()),this.initializeNice(()=>async function(){OF("Swizzling started");const e=ej.deviceId();try{window.cxone("chat","setCustomerCustomField","cobrowse_device_id",e)}catch(e){console.log("Error setting Nice CX custom field",e)}window.cxone("chat","onAnyPushUpdate",({data:t,eventType:n})=>{var r;if("CaseCreated"===n){var i;OF("Nice case created");const{case:n}=t,r=n.id+"",o=null===(i=n.authorEndUserIdentity.fullName)||void 0===i?void 0:i.trim(),s=n.authorEndUserIdentity.idOnExternalPlatform;ej.customData={nice_case_id:r,nice_external_contact_id:s,cobrowse_device_id:e,user_name:o}}else"CaseStatusChanged"===n&&"closed"===t.case.status&&null!==(r=ej.currentSession)&&void 0!==r&&r.isActive()&&(OF("Nice case closed"),ej.currentSession.end())})}()),this.initializeDynamics(()=>function(){const e=ej.deviceId();let t=!1;function n(e){window.Microsoft.Omnichannel.LiveChatWidget.SDK.setContextProvider(()=>({"cobrowse-device":{value:e,isDisplayable:!0}})),t=!0,RF("Dynamics initialized")}ej.customData={cobrowse_device_id:e},window.addEventListener("lcw:ready",()=>{t||n(e)});try{n(e)}catch(e){}}()),this.initializeServiceNow(()=>function(){const e=ej.deviceId();ej.customData={cobrowse_device_id:e},kF("ServiceNow initialized")}()),this.initializeTalkdesk(()=>function(){if("function"==typeof TalkdeskChatSDK){if(!window.webchat)return console.warn('Talkdesk not found in variable "webchat". Please load Talkdesk using:'),void console.warn("window.webchat = TalkdeskChatSDK(node, props)");if("function"!=typeof window.webchat.setContextParam)return console.warn("window.webchat.setContextParam is missing or of an unexpected value. Please load Talkdesk using:"),void console.warn("window.webchat = TalkdeskChatSDK(node, props)");if(!MF){const e={cobrowse_device_id:ej.deviceId()};ej.customData=e,window.webchat.setContextParam(e),MF=!0,PF("Talkdesk initialized")}}else console.warn("TalkdeskChatSDK is not a function, ignoring as Talkdesk widget might not be present.")}()),this.initializeAmazonConnect(()=>function(){const e=ej.deviceId();ej.customData={cobrowse_device_id:e},DF("AmazonConnect initialized")}())}static initializeGenesys(e,t){this.watchProperty(window,"Genesys",()=>e()),this.watchProperty(window,"CXBus",()=>t()),this.watchProperty(window,"_genesys",()=>this.watchProperty(window._genesys,"widgets",()=>this.watchProperty(window._genesys.widgets,"bus",()=>{setTimeout(()=>{t()},0)})))}static initializeSalesforce(e,t){this.watchProperty(window,"embedded_svc",()=>this.watchProperty(window.embedded_svc,"liveAgentAPI",()=>{e()})),this.watchProperty(window,"embeddedservice_bootstrap",()=>t())}static initializeFreshchat(e){this.watchProperty(window,"fcWidget",()=>e())}static initializeTalkdesk(e){this.watchProperty(window,"TalkdeskChatSDK",()=>this.watchProperty(window,"webchat",()=>this.watchProperty(window.webchat,"setContextParam",()=>e())))}static initializeZendesk(e,t,n){this.watchProperty(window,"zE",n=>{if(!window.zE.widget)return n();"messenger"===window.zE.widget?e():t()}),this.watchProperty(window,"Smooch",()=>n())}static initializeNice(e){this.watchProperty(window,"cxone",t=>{if(!window.cxone.guide)return this.watchProperty(window.cxone,"guide",()=>e()),t();e()})}static initializeDynamics(e){this.watchProperty(window,"Microsoft",()=>this.watchProperty(window.Microsoft,"Omnichannel",()=>this.watchProperty(window.Microsoft.Omnichannel,"LiveChatWidget",()=>this.watchProperty(window.Microsoft.Omnichannel.LiveChatWidget,"SDK",()=>{e()}))))}static initializeServiceNow(e){this.watchProperty(window,"ServiceNowChat",()=>e())}static initializeAmazonConnect(e){this.watchProperty(window,"amazon_connect",()=>e())}}class UF{static isHeadless(){return navigator.userAgent.toLowerCase().includes("headless")}}const WF=Af("cbio.sessionStorage.LocalSessionStorage");var FF=new WeakMap;class VF{constructor(){Mr(this,FF,lE())}isSupported(e){return WF("isSupported?",!0),!0}load(e){const t=Pr(FF,this).getItem(AO);return t?(WF("loading session"),new yO(e)[Fy].deserialize(t)):(WF("no session to load"),null)}store(e,t){null!=t&&t.isActive()?(WF("storing active session"),Pr(FF,this).setItem(AO,t[Fy].serialize())):(WF("removing inactive session"),Pr(FF,this).removeItem(AO))}reset(e){Pr(FF,this).removeItem(AO)}}const jF=Af("cbio.sessionStorage.CookieSessionStorage");function zF(e,t,n){return n?`${e}//${t}:${n}`:`${e}//${t}`}function BF(e,t){const n=function(e){try{return new URL(e)}catch(e){return null}}(e);if(!n)return null;const{hostname:r,protocol:i,port:o}=n,s=Sp(t),a=r.split(".");for(let e=a.length-1;e>=0;e--){const t=a.slice(e).join("."),n=zF(i,t,o),r=zF(i,`.${t}`,o);if(s(n)&&s(r))return t}return null}class HF{isSupported(e){if(!e.trustedOrigins.length)return jF("isSupported?",!1,"no trusted origins"),!1;const t=BF(window.location.href,e.trustedOrigins);return jF("isSupported?",!!t,"domain",t),!!t}load(e){const t=oE.get(AO,{path:"/"});return t?(jF("loading session from cookie"),new yO(e)[Fy].decompress(t)):(jF("no session to load from cookies"),null)}store(e,t){if(!this.isSupported(e))return;const n={path:"/",domain:BF(window.location.href,e.trustedOrigins),secure:!0,sameSite:"strict"};null!=t&&t.isActive()?(jF("storing active session to cookies"),oE.set(AO,t[Fy].compress(),Fr(Fr({},n),{},{expires:1}))):(jF("removing inactive session from cookies"),oE.remove(AO,n))}reset(e){this.store(e,null)}}const QF=Af("cbio.sessionStorage");var YF=new WeakMap,KF=new WeakMap,$F=new WeakMap;class JF{static create(e){const t=new VF,n=new bO,r=new HF;return new JF(e,{load:[n,r,t],store:[t,r,n]})}constructor(e,{load:t=[],store:n=[]}){Mr(this,YF,void 0),Mr(this,KF,void 0),Mr(this,$F,void 0),Dr($F,this,e),Dr(YF,this,t),Dr(KF,this,n)}peek(){QF("peeking session");for(const e of Pr(YF,this)){if(!e.isSupported(Pr($F,this)))continue;const t=e.load(Pr($F,this));if(t)return t}return null}async load(){QF("loading session");for(const e of Pr(YF,this)){if(!e.isSupported(Pr($F,this)))continue;const t=e.load(Pr($F,this)),n=await(null==t?void 0:t.fetch());if(n){if(n.isActive())return n;await e.store(Pr($F,this),null)}}return null}async store(e){QF("storing session");for(const t of Pr(KF,this))if(t.isSupported(Pr($F,this)))try{await t.store(Pr($F,this),e)}catch(e){console.error(`Unexpected error storing session: ${t.constructor.name}`,e)}}reset(){const e=new Set([...Pr(YF,this),...Pr(KF,this)]);for(const t of e)t.reset(Pr($F,this))}}const XF={load:Date.now()};var qF=new WeakMap,ZF=new WeakMap,eV=new WeakMap,tV=new WeakMap,nV=new WeakMap,rV=new WeakMap,iV=new WeakMap,oV=new WeakMap,sV=new WeakMap,aV=new WeakMap,cV=new WeakMap,lV=new WeakMap,uV=new WeakMap;const hV=new class{constructor(){Mr(this,qF,void 0),Mr(this,ZF,void 0),Mr(this,eV,[]),Mr(this,tV,window.matchMedia("(min-width: 768px)")),Ur(this,"singleTabFullScreen",!1),Ur(this,"enterFullScreen",()=>Pr(ZF,this).enterFullScreen()),Ur(this,"exitFullScreen",()=>Pr(ZF,this).exitFullScreen()),Ur(this,"getTabCount",()=>Pr(eV,this).length),Ur(this,"newTab",(e,t,n,r,i,o)=>{const s=Pr(ZF,this).createTab({onTabClick:e=>{Pr(oV,this).call(this,s)},onClose:i,confirmUnload:o});return s.setIcon(t),s.setTitle(n),s.setIsLoading(r),s.setContent(e),Pr(eV,this).push(s),Pr(oV,this).call(this,s),Pr(ZF,this).showModal(),1===Pr(eV,this).length&&history.pushState({universalProxyOpen:!0},""),Fr(Fr({},s),{},{close:()=>Pr(iV,this).call(this,s)})}),Mr(this,nV,()=>{1===Pr(eV,this).length&&Pr(iV,this).call(this,Pr(eV,this)[0])}),Mr(this,rV,e=>{Pr(eV,this).some(e=>e.confirmUnload)&&e.preventDefault()}),Ur(this,"closeAllTabs",()=>{Pr(eV,this).forEach(Pr(iV,this))}),Mr(this,iV,e=>{const t=Pr(eV,this).indexOf(e);if(-1===t)return;if(e.removeTab(),Pr(eV,this).splice(t,1),!Pr(eV,this).length)return Pr(ZF,this).hideModal();const n=Pr(eV,this).length-1;e.isActive()&&(t<=n?Pr(eV,this)[t].show():Pr(eV,this)[n].show())}),Mr(this,oV,e=>{Pr(eV,this).forEach(e=>e.hide()),e.show()}),Mr(this,sV,()=>{const e=document.createElement("div"),t=e.attachShadow({mode:"open"}),n=document.createElement("div");n.style.background="rgba(50, 50, 50, 0.4)",n.style.position="fixed",n.style.zIndex="2147483645",n.style.bottom="0",n.style.top="0",n.style.left="0",n.style.right="0",n.style.display="flex",n.style.flexDirection="column",n.style.padding=Pr(tV,this).matches?"25px":"0",t.appendChild(n);const r=Pr(aV,this).call(this);n.appendChild(r.element);const i=Pr(cV,this).call(this);n.appendChild(i.element);let o=null;return{element:n,showModal:()=>{this.isVisible||(document.body.appendChild(e),o=document.body.style.overflow,document.body.style.overflow="hidden",this.isVisible=!0,Dr(qF,this,history.length))},hideModal:()=>{document.body.removeChild(e),document.body.style.overflow=o,this.isVisible=!1;const t=history.length-Pr(qF,this);t>0&&history.go(-t)},createTab:({onTabClick:e,onClose:t,confirmUnload:n})=>{const o=Pr(lV,this).call(this,{onTabClick:e,onCloseClick:e=>{e.stopPropagation(),t()}});r.addButton(o.element);const s=Pr(uV,this).call(this);return i.addPanel(s.element),{setIcon:o.setIcon,setTitle:o.setTitle,setIsLoading:o.setIsLoading,showBanner:s.showBanner,hideBanner:s.hideBanner,show:()=>{o.setIsActive(!0),s.showPanel()},hide:()=>{o.setIsActive(!1),s.hidePanel()},removeTab:()=>{r.removeButton(o.element),i.removePanel(s.element)},isActive:()=>o.isActive,onClose:t,confirmUnload:n,setContent:s.setContent}},enterFullScreen:()=>{r.hide(),n.style.padding="0"},exitFullScreen:()=>{r.show(),n.style.padding=Pr(tV,this).matches?"25px":"0"}}}),Mr(this,aV,()=>{const e=document.createElement("div");return e.style.display="flex",e.style.backgroundColor="#d6e2fb",e.style.borderBottom="1px solid #d8d8d8",e.style.paddingTop="6px",e.style.paddingLeft="6px",e.style.paddingBottom="5px",e.style.borderRadius="10px 10px 0 0",this.fullScreen&&(e.style.display="none"),{element:e,addButton:t=>e.appendChild(t),removeButton:t=>e.removeChild(t),show:()=>{e.style.display="flex"},hide:()=>{e.style.display="none "}}}),Mr(this,cV,()=>{const e=document.createElement("div");return e.style.width="100%",e.style.height="100%",e.style.backgroundColor="white",e.style.borderRadius="0 0 10px 10px",e.style.overflow="hidden",{element:e,addPanel:t=>e.appendChild(t),removePanel:t=>e.removeChild(t)}}),Mr(this,lV,({onTabClick:e,onCloseClick:t})=>{const n=document.createElement("div");n.style.display="flex",n.style.alignItems="center",n.style.justifyContent="end",n.style.flex="1 1 0",n.style.backgroundColor="#ffffff66",n.style.padding="4px",n.style.maxWidth="200px",n.style.minWidth="0",n.style.overflow="hidden",n.style.cursor="pointer",n.style.borderRadius="9px",n.style.marginRight="6px";const r=document.createElement("img");r.style.flex="0 0 auto",r.style.width="16px",r.style.height="16px",r.style.marginRight="4px";const i=document.createElement("span");i.style.flex="1 1 auto",i.style.display="block",i.style.fontFamily="sans-serif",i.style.fontSize="13px",i.style.overflow="hidden",i.style.whiteSpace="nowrap",i.style.textOverflow="ellipsis";const o=document.createElement("button");o.style.flex="0 0 auto",o.style.width="24px",o.style.height="24px",o.style.border="none",o.style.background="none",o.style.padding="4px",o.style.cursor="pointer";const s=document.createElementNS("http://www.w3.org/2000/svg","svg");s.setAttribute("fill","none"),s.setAttribute("viewBox","0 0 24 24"),s.setAttribute("stroke-width","1.5"),s.setAttribute("stroke","currentColor"),s.style.width="16px",s.style.height="16px";const a=document.createElementNS("http://www.w3.org/2000/svg","path");return a.setAttribute("stroke-linecap","round"),a.setAttribute("stroke-linejoin","round"),a.setAttribute("d","M6 18 18 6M6 6l12 12"),s.appendChild(a),o.appendChild(s),n.appendChild(r),n.appendChild(i),n.appendChild(o),n.addEventListener("click",e),o.addEventListener("click",t),r.onerror=function(){this.src='data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="gray"><path stroke-linecap="round" stroke-linejoin="round" d="M12 21a9.004 9.004 0 0 0 8.716-6.747M12 21a9.004 9.004 0 0 1-8.716-6.747M12 21c2.485 0 4.5-4.03 4.5-9S14.485 3 12 3m0 18c-2.485 0-4.5-4.03-4.5-9S9.515 3 12 3m0 0a8.997 8.997 0 0 1 7.843 4.582M12 3a8.997 8.997 0 0 0-7.843 4.582m15.686 0A11.953 11.953 0 0 1 12 10.5c-2.998 0-5.74-1.1-7.843-2.918m15.686 0A8.959 8.959 0 0 1 21 12c0 .778-.099 1.533-.284 2.253m0 0A17.919 17.919 0 0 1 12 16.5c-3.162 0-6.133-.815-8.716-2.247m0 0A9.015 9.015 0 0 1 3 12c0-1.605.42-3.113 1.157-4.418" /></svg>'},{element:n,icon:"",title:"",isActive:!1,isLoading:!1,setIcon:function(e){this.icon=e,r.src=e},setTitle:function(e){this.title=e,i.textContent=e},setIsActive:function(e){this.isActive=e,this.isActive?(n.style.backgroundColor="white",n.style.borderColor="#d8d8d8"):(n.style.backgroundColor="#ffffff66",n.style.borderColor="#efefef")},setIsLoading:function(e){this.isLoading=e,r.src=this.isLoading?'data:image/svg+xml,<svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg"><path d="M10.14,1.16a11,11,0,0,0-9,8.92A1.59,1.59,0,0,0,2.46,12,1.52,1.52,0,0,0,4.11,10.7a8,8,0,0,1,6.66-6.61A1.42,1.42,0,0,0,12,2.69h0A1.57,1.57,0,0,0,10.14,1.16Z"><animateTransform attributeName="transform" type="rotate" dur="0.75s" values="0 12 12;360 12 12" repeatCount="indefinite"/></path></svg>':this.icon}}}),Mr(this,uV,()=>{const e=document.createElement("div");e.style.width="100%",e.style.height="100%",e.style.backgroundColor="white",e.style.display="flex",e.style.flexDirection="column";const t=document.createElement("div");t.style.height="30px",t.style.width="100%",t.style.display="flex",t.style.alignItems="center",t.style.justifyContent="center",t.style.backgroundColor="white",t.style.color="black",t.style.fontFamily="sans-serif",t.style.fontSize="13px",t.style.borderBottom="1px solid #d8d8d8";const n=document.createElement("div");return n.style.flex="1",e.appendChild(n),{element:e,showPanel:()=>{e.style.display="flex"},hidePanel:()=>{e.style.display="none"},showBanner:n=>{t.innerText=n,e.contains(t)||e.prepend(t)},hideBanner:()=>{e.contains(t)&&e.removeChild(t)},setContent:e=>{n.contains(e)||n.replaceChildren(e)}}}),Dr(ZF,this,Pr(sV,this).call(this)),Pr(tV,this).addEventListener("change",e=>{Pr(ZF,this).element.style.padding=e.matches?"25px":"0"}),window.addEventListener("popstate",Pr(nV,this)),window.addEventListener("beforeunload",Pr(rV,this))}},dV=Af("cbio.VirtualAgent.VirtualAgentEmbed");class fV extends Eb{constructor(){super(),Ur(this,"url",()=>new URL(`api/1/virtualagents/${encodeURIComponent(this.slug())}/embed`,fV.api).toString()),Ur(this,"slug",()=>this.field("slug")),Ur(this,"type",()=>this.field("type")),Ur(this,"data",()=>this.field("data")),dV("constructed")}static async load(e,t){var n;const r=new fV,i=lE(e.license),o=`_cobrowse_va_conversation_${t}`,{iat:s,resource:a,attempts:c=0}=null!==(n=i.getItem(o))&&void 0!==n?n:{};if(a&&s&&s>Date.now()-78e4)return dV("loaded agent embed data from storage"),r.updateResource(a),r;if(!a&&c){const e=pV(s,c);if(e>Date.now())return void console.warn(`Not loading virtual agent embed data, next retry at: ${new Date(e)}`)}try{dV("loading agent embed data from the API"),r.updateResource({slug:t}),await r.fetch()}catch(e){const t=pV(Date.now(),c);return console.error(`Unable to resolve virtual agent embed data. Next retry at ${new Date(t)}`,e),void i.setItem(o,{iat:Date.now(),attempts:c+1})}return i.setItem(o,{resource:r.resource,iat:Date.now()}),r}}function pV(e,t){return e+1e3*Math.min(Math.pow(2,t),900)}const _V=Af("cbio.VirtualAgent"),EV=Af("cbio.CobrowseIO");var vV=new WeakMap,mV=new WeakMap,gV=new WeakMap,IV=new WeakMap,LV=new WeakMap,wV=new WeakMap,CV=new WeakMap,yV=new WeakMap,AV=new WeakMap,NV=new WeakMap,SV=new WeakMap,TV=new WeakMap,bV=new WeakMap,OV=new WeakMap,RV=new WeakMap,kV=new WeakMap,PV=new WeakMap,MV=new WeakMap,DV=new WeakMap,GV=new WeakMap,xV=new WeakMap,UV=new WeakMap,WV=new WeakMap,FV=new WeakMap,VV=new WeakMap,jV=new WeakMap,zV=new WeakMap,BV=new WeakMap,HV=new WeakMap,QV=new WeakSet,YV=new WeakMap,KV=new WeakMap,$V=new WeakMap;class JV extends td.EventEmitter{constructor({sessionStorage:e}={}){super(),xr(this,QV),Mr(this,vV,new Bf),Mr(this,mV,void 0),Mr(this,gV,!1),Mr(this,IV,!0),Mr(this,LV,JF.create(this)),Mr(this,wV,{}),Mr(this,CV,lO.info.capabilities),Mr(this,yV,new lO(this)),Mr(this,AV,new ID),Mr(this,NV,new ID),Mr(this,SV,new ID),Mr(this,TV,new ID),Mr(this,bV,void 0),Mr(this,OV,void 0),Mr(this,RV,void 0),Mr(this,kV,void 0),Mr(this,PV,void 0),Mr(this,MV,void 0),Mr(this,DV,void 0),Mr(this,GV,void 0),Mr(this,xV,void 0),Mr(this,UV,void 0),Ur(this,"start",async(e={})=>{if(EV("start()",e,"in",document),!UF.isHeadless()||e.allowHeadless){if(window.self!==window.top){if(!e.allowIFrameStart)return W_(window.parent)?(Pr(xV,this)&&Pr(xV,this).call(this),Dr(xV,this,async function(e){const t=new yO(e),n=aM(fM,{currentSession:t}),r=uM(fM,e,{waitForParentSync:!0});fM.start();const i=await r.getSyncedConfig();let o;hM("synced config",i);const s=()=>{t.isActive()&&!o&&(hM("creating iframe context",o),_M(i.api)(t),o=new tP(t,Fr(Fr({},i),{},{trustedOrigins:e.trustedOrigins,version:e.version,showDocument:e.showDocument,confirmOpen:(e,t)=>pM.send("confirmOpen",{url:e,type:t}),open:(e,t,n,r)=>pM.send("open",{url:e,target:t,windowFeatures:n,options:r})}),fM.sendToParent),t.once("ended",()=>{hM("destroying iframe context",o),o.destroy(),o=null}))};fM.on("session",s);const a=(e,{trustedOnly:t,fromParent:n})=>{n?fM.broadcastToChildren("rpc:request",e,{trustedOnly:t}):fM.sendToParent("rpc:request",e,{trustedOnly:t})};fM.on("rpc:request",a);const c=(e,{trustedOnly:t,fromParent:n})=>{n?fM.broadcastToChildren("rpc:response",e,{trustedOnly:t}):fM.sendToParent("rpc:response",e,{trustedOnly:t})};fM.on("rpc:response",c);const l=()=>{var e;return null===(e=o)||void 0===e?void 0:e.invalidateFrame()};fM.on("sync",l);const u=(e,{trustedOnly:t})=>{var n;const{target:r,error:{cause:i}}=e,s="string"==typeof r?r:r.id;"load-error"===i&&(null===(n=o)||void 0===n||n.partialSync(s)),fM.broadcastToChildren("remote-error",e,{trustedOnly:t})};fM.on("remote-error",u);const h=async t=>LM.highlight(e,t);return pM.on("highlight",h),()=>{r.unsubscribe(),n.unsubscribe(),fM.off("remote-error",u),fM.off("sync",l),fM.off("session",s),fM.off("rpc:request",a),fM.off("rpc:response",c),pM.off("highlight",h)}}(this)),void EV("Starting Cobrowse in Iframe bridge mode with trusted origins:",fM.trustedOrigins,"for",document)):void EV("Not starting Cobrowse for same-origin iframe",document);mE.setTracksIframes(!0)}var t,n;Pr(xV,this)&&Pr(xV,this).call(this),Dr(xV,this,function(e,{open:t}){const n=aM(fM,e);e.on("session.loaded",n.publish),e.on("session.updated",n.publish);const r=_M(e.api);e.on("session.loaded",r),e.on("session.updated",r);const i=uM(fM,e);e.on("session.sync",i.sendSync);const o=async({url:t,type:n})=>({accepted:await e.confirmOpen(t,n)});pM.on("confirmOpen",o);const s=({url:e,target:n,windowFeatures:r,options:i})=>{t(e,n,r,i)};return pM.on("open",s),fM.start(),()=>{n.unsubscribe(),i.unsubscribe(),e.off("session.loaded",n.publish),e.off("session.updated",n.publish),e.off("session.loaded",r),e.off("session.updated",r),e.off("session.sync",i.sendSync),pM.off("confirmOpen",o),pM.off("open",s)}}(this,{open:Pr(WV,this)})),this.license?Pr(gV,this)||(xF.initialize(),mE.start(),async function(){Zg.isLocalResource(window.location.href)&&console.warn("CobrowseIO: This page was loaded from a local address, Cobrowse may not work as expected due to inaccessible resources. We recommend using ngrok for testing development versions.")}().catch(()=>{}),console.log("CobrowseIO started",JV.version,null===(t=document.timeline)||void 0===t?void 0:t.currentTime),Dr(gV,this,!0),"boolean"==typeof e.register&&Dr(IV,this,e.register),this.registration&&Sr(QV,this,XV).call(this),EV("attempting to restore session after start"),await Pr(FV,this).call(this),null!==(n=this.currentSession)&&void 0!==n&&n.isActive()||this.hideSessionControls(),XF.start=Date.now(),await Pr($V,this).call(this)):console.error("CobrowseIO.license must be set before calling start")}else console.warn("CobrowseIO: Not starting Cobrowse in a headless browser")}),Ur(this,"stop",async()=>(this.currentSession&&!this.currentSession.isEnded()&&await this.currentSession.end().catch(e=>{console.warn("CobrowseIO: Failed to end session on stop",e)}),Pr(VV,this).call(this,null),mE.stop(),Pr(vV,this).stop(),await Pr(yV,this).destroy(),await Pr(LV,this).reset(),Dr(gV,this,!1),Pr(xV,this)&&(Pr(xV,this).call(this),Dr(xV,this,null)),this)),Ur(this,"open",(e,t,n,{type:r}={})=>Pr(WV,this).call(this,e,t,n,{type:r})),Mr(this,WV,(e,t,n,r)=>{const i=()=>window.open(e,t,n);if(!Pr(mV,this))return i();const{target:o,name:s}=xI(t,"_blank"),a=Fr(Fr({},r),{},{name:s,go:i}),{rewrittenUrl:c,windowProxy:l}=Pr(mV,this).handleNavigation(e,o,n,a);return c?window.open(c,t,n):l}),Mr(this,FV,async()=>{try{const e=await Pr(LV,this).load(this);e&&Pr(VV,this).call(this,e,{invalidateFrames:!0})}catch(e){console.warn("CobrowseIO: Failed to fetch restored session",e),Pr(VV,this).call(this,null)}return null}),Mr(this,VV,(e,{invalidateFrames:t=!1}={})=>{if(EV("setting current session",e),e&&Pr(mV,this)&&Pr(mV,this).session.id()===e.id())return;Pr(AV,this).hide(),Pr(NV,this).hide(),Pr(SV,this).hide(),Pr(TV,this).hide();const n=(e,t)=>fM.broadcastToChildren("control",[e,t]),r=e=>fM.broadcastToChildren("remote-error",e);Pr(mV,this)&&(Pr(mV,this).session.off("updated",Pr(jV,this)),Pr(mV,this).session.off("ended",Pr(zV,this)),Pr(mV,this).session.off("control",n),Pr(mV,this).session.off("remote-error",r),Pr(mV,this).session.off("metrics.updated",Pr(BV,this)),Pr(mV,this).destroy(),Dr(mV,this,null)),Pr(LV,this).store(e),e&&(Dr(mV,this,new eF(e,this)),e.state()&&Pr(jV,this).call(this,e),e.on("updated",Pr(jV,this)),e.once("ended",Pr(zV,this)),e.on("sync",()=>this.emit("session.sync")),e.on("control",n),e.on("remote-error",r),e.on("metrics.updated",Pr(BV,this)),t&&Pr(mV,this).invalidateFrames())}),Mr(this,jV,e=>{Pr(LV,this).store(e),e.fullDevice()||Pr(SV,this).hide(),"requested"!==e.remoteControl()&&Pr(NV,this).hide(),e.isAuthorizing()||Pr(AV,this).hide(),this.emit("session.updated",e)}),Mr(this,zV,e=>{this.emit("session.ended",e),Pr(VV,this).call(this,null),Dr(GV,this,!1)}),Mr(this,BV,e=>{this.emit("session.metrics.updated",e)}),Mr(this,HV,void 0),Ur(this,"hideSessionControls",()=>{vD.hideSessionControls()}),Mr(this,YV,rf(()=>{Pr(yV,this).hasPendingUpdates()&&Pr(gV,this)&&this.registration&&Pr(yV,this).updateRegistration().catch(e=>{console.warn("CobrowseIO: updating customData failed",e)})},8e3,{leading:!0,trailing:!0})),Ur(this,"confirmRemoteControl",async()=>Pr(NV,this).show(zM.tr("REMOTE_CONTROL_REQUEST_TITLE"),zM.tr("REMOTE_CONTROL_REQUEST_DESCRIPTION"))),Ur(this,"confirmFullDevice",async()=>Pr(SV,this).show(zM.tr("FULL_DEVICE_REQUEST_TITLE"),zM.tr("FULL_DEVICE_REQUEST_DESCRIPTION"))),Ur(this,"confirmSession",async()=>Pr(AV,this).show(zM.tr("SESSION_REQUEST_TITLE"),zM.tr("SESSION_REQUEST_DESCRIPTION"))),Ur(this,"confirmOpen",(e,t)=>{if(t!==ky)return!0;if(Pr(GV,this))return!0;const n=Pr(TV,this).show(zM.tr("UNIVERSAL_PROXY_REQUEST_TITLE"),zM.tr("UNIVERSAL_PROXY_REQUEST_DESCRIPTION"));return n.then(e=>{e&&Dr(GV,this,!0)}),n}),Ur(this,"showDocument",e=>{"_blank"!==e.target&&0===hV.getTabCount()?hV.enterFullScreen():hV.exitFullScreen();const t=e.type===ky,n=hV.newTab(e.element,"",e.url,e.isLoading,e.close,t);e.isBlocked&&n.showBanner(zM.tr("UNIVERSAL_PROXY_BLOCKED"));const r=()=>{n.setIcon(e.icon),n.setTitle(e.title||e.url),n.setIsLoading(e.isLoading),n.setContent(e.element),e.isBlocked?n.showBanner(zM.tr("UNIVERSAL_PROXY_BLOCKED")):n.hideBanner()};e.on("updated",r),e.once("closed",()=>{e.off("updated",r),n.close()})}),Ur(this,"getSession",async e=>{if(!Pr(gV,this))throw new Error("CobrowseIO not started. Call CobrowseIO.start()");if(this.currentSession&&(this.currentSession.id()===e||this.currentSession.code()===e))return this.currentSession.fetch();const t=new yO(this).updateResource({id:e});return Pr(VV,this).call(this,t),await t.fetch(),this.emit("session.loaded",t),t}),Ur(this,"createSession",async()=>{if(!Pr(gV,this))throw new Error("CobrowseIO not started. Call CobrowseIO.start()");if(this.currentSession&&(this.currentSession.isActive()||this.currentSession.isAuthorizing()))throw new Error("Already in a session");(XF["load"]?Date.now()-XF.load:NaN)<8e3&&console.warn("Six digit codes have a short expiry time. You should wait to generate a code until it is required! Do not generate codes on page load.");const e=new yO(this);return Pr(VV,this).call(this,e),await e.update({custom_data:this.customData,device:lO.info}),this.emit("session.loaded",e),e}),Ur(this,"createSessionCode",async()=>(await this.createSession()).code()),Ur(this,"client",async()=>this),Mr(this,KV,e=>{e&&["license","api","registration","customData","showSessionControls","hideSessionControls","confirmSession","confirmRemoteControl","confirmFullDevice","trustedOrigins","redactedViews","unredactedViews","ignoredViews","disabledViews","enabledViews","capabilities","pdfLinks","universalLinks","confirmOpen","showDocument","highlightElement","virtualAgent"].forEach(t=>{void 0!==e[t]&&(this[t]=e[t])})}),Mr(this,$V,async()=>{Pr(UV,this)&&await async function(e,t){_V("Loading virtual agent %s",e);const n=await fV.load(t,e);if("elevenlabs"===(null==n?void 0:n.type())){const{loadElevenLabsWidget:e}=await import("./CobrowseIO.static.DpIUswra.mjs");await e(n,t)}}(Pr(UV,this),this)}),EV("interface constructed in",document),e&&Dr(LV,this,e),this.api="https://api.cobrowse.io",Pr(KV,this).call(this,window&&window.CobrowseIO),Pr(yV,this).on("notification",e=>{const t=e["cobrowseio-code"];t&&this.getSession(t).catch(e=>{console.warn("CobrowseIO: session fetch failed:",e)})})}deviceId(){return lO.deviceId()}get currentSession(){return Pr(mV,this)?Pr(mV,this).session:Pr(LV,this).peek()}set showSessionControls(e){var t;Dr(HV,this,e),vD.hideSessionControls(),null!==(t=Pr(mV,this))&&void 0!==t&&t.session.isActive()&&Pr(HV,this).call(this)}get showSessionControls(){return Pr(HV,this)?Pr(HV,this):vD.showSessionControls}set license(e){if(Pr(gV,this)&&this.license!==e)throw new Error("Cannot change license once Cobrowse is started");Eb.setHeader("X-CobrowseLicense",e)}get license(){return Eb.getHeader("X-CobrowseLicense")}set api(e){if(Pr(gV,this)&&Eb.api!==e)throw new Error("Cannot change API once Cobrowse is started");Eb.api=e}get api(){return Eb.api}set registration(e){const t=!!e;t!==Pr(IV,this)&&Sr(QV,this,ZV).call(this,t)}get registration(){return!!Pr(IV,this)}set redactedViews(e){if(Pr(gV,this))throw new Error("Cannot set redacted views after Cobrowse is started");Dr(bV,this,e)}get redactedViews(){return Pr(bV,this)}set unredactedViews(e){if(Pr(gV,this))throw new Error("Cannot set unredacted views after Cobrowse is started");Dr(OV,this,e)}get unredactedViews(){return Pr(OV,this)}set ignoredViews(e){if(Pr(gV,this))throw new Error("Cannot set ignored views after Cobrowse is started");Dr(RV,this,e)}get ignoredViews(){return Pr(RV,this)}set disabledViews(e){if(Pr(gV,this))throw new Error("Cannot set disabled views after Cobrowse is started");Dr(kV,this,e)}get disabledViews(){return Pr(kV,this)}set enabledViews(e){if(Pr(gV,this))throw new Error("Cannot set enabled views after Cobrowse is started");Dr(PV,this,e)}get enabledViews(){return Pr(PV,this)}set capabilities(e){if(Pr(gV,this))throw new Error("Cannot set capabilities after Cobrowse is started");if(!Array.isArray(e))throw new Error("Capabilities should be an array");Dr(CV,this,e.filter(e=>!!lO.info.capabilities.includes(e)||(console.warn(`Capability '${e}' not supported. Ignoring...`),!1)))}get capabilities(){return Pr(CV,this)}set customData(e){if("object"!=typeof e)throw new Error("Custom data must be an object");if(Dr(wV,this,Fr(Fr({},Pr(wV,this)),e)),Pr(gV,this)&&setTimeout(Pr(YV,this),0),this.currentSession&&this.currentSession.isActive()){const t=this.currentSession.resource.custom_data;if(!Object.keys(e).find(n=>t[n]!==e[n]))return void EV("no changes to session custom data");this.currentSession.update({custom_data:e}).catch(()=>{console.warn("CobrowseIO: failed to update custom data on active session")})}}get customData(){return Fr(Fr({},Pr(yV,this).customData),Pr(wV,this))}set trustedOrigins(e){const t=[];e.forEach(e=>{try{const n=new URL(e).origin,r=decodeURIComponent(n);return t.push(r)}catch(e){}if(Boolean(Np(e)))return t.push(e);console.warn("CobrowseIO: Invalid URL in trustedOrigins:",e)}),fM.trustedOrigins=t}get trustedOrigins(){return[...fM.trustedOrigins]}set pdfLinks(e){if(Pr(gV,this))throw new Error("Cannot set pdfLinks after Cobrowse is started");const t=e.map(e=>e instanceof RegExp||"string"==typeof e?e:(console.warn("CobrowseIO: Invalid link in pdfLinks:",e),null)).filter(e=>e);Dr(MV,this,t)}get pdfLinks(){return Pr(MV,this)}set universalLinks(e){if(Pr(gV,this))throw new Error("Cannot set universalLinks after Cobrowse is started");const t=e.map(e=>e instanceof RegExp||"string"==typeof e?e:(console.warn("CobrowseIO: Invalid link in universalLinks:",e),null)).filter(e=>e);Dr(DV,this,t)}get universalLinks(){return Pr(DV,this)}set virtualAgent(e){if(Pr(gV,this))throw new Error("Cannot set virtualAgent after Cobrowse is started");Dr(UV,this,e)}get virtualAgent(){return Pr(UV,this)}static get version(){return lO.info.sdk_version}get version(){return JV.version}}function XV(){EV("starting registration"),Pr(vV,this).on("active",Pr(yV,this).runRegistrationLoop),Pr(vV,this).on("inactive",Pr(yV,this).pauseRegistrationLoop),Pr(vV,this).start()}async function qV(){EV("stopping registration"),Pr(vV,this).stop(),Pr(vV,this).off("active",Pr(yV,this).runRegistrationLoop),Pr(vV,this).off("inactive",Pr(yV,this).pauseRegistrationLoop);try{await Pr(yV,this).destroy()}catch(e){console.log("Failed to deregister device",e)}}function ZV(e){Dr(IV,this,e),Pr(gV,this)&&(e?Sr(QV,this,XV).call(this):Sr(QV,this,qV).call(this))}Eb.setHeader("Content-Type","application/json"),Eb.setHeader("X-CobrowsePlatform","web"),Eb.setHeader("X-CobrowseSDKVersion",JV.version),Eb.setHeader("X-CobrowseDevice",lO.deviceId()),Eb.setHeader("X-CobrowseAPIVersion","1.63.3");const ej=new JV,tj="NativeSelect-module__optionDisable___T3-59",nj=({target:e,items:t,initialHighlightedIndex:n,onSelect:r,onClose:i})=>{const o=Cw(null),s=Cw([]),a=Cw(!1),c=Cw(!1),[l,u]=Lw(n);ww(()=>uy(e,o.current,((e,t)=>{let n=!1,r=!1;return()=>{var i;_y(e,t,{placement:"bottom-start",strategy:"fixed",middleware:[dy(),(i={apply(){r&&Object.assign(t.style,{width:`${e.offsetWidth}px`,maxWidth:"800px"})}},void 0===i&&(i={}),{name:"size",options:i,async fn(e){var t,n;const{placement:r,rects:o,platform:s,elements:a}=e,c=$w(i,e),{apply:l=()=>{}}=c,u=Vr(c,pC),h=await EC(e,u),d=Jw(r),f=Xw(r),p="y"===tC(r),{width:_,height:E}=o.floating;let v,m;"top"===d||"bottom"===d?(v=d,m=f===(await(null==s.isRTL?void 0:s.isRTL(a.floating))?"start":"end")?"left":"right"):(m=d,v="end"===f?"top":"bottom");const g=E-h.top-h.bottom,I=_-h.left-h.right,L=Vw(E-h[v],g),w=Vw(_-h[m],I),C=!e.middlewareData.shift;let y=L,A=w;if(null!=(t=e.middlewareData.shift)&&t.enabled.x&&(A=I),null!=(n=e.middlewareData.shift)&&n.enabled.y&&(y=g),C&&!f){const e=jw(h.left,0),t=jw(h.right,0),n=jw(h.top,0),r=jw(h.bottom,0);p?A=_-2*(0!==e||0!==t?e+t:jw(h.left,h.right)):y=E-2*(0!==n||0!==r?n+r:jw(h.top,h.bottom))}await l(Fr(Fr({},e),{},{availableWidth:A,availableHeight:y}));const N=await s.getDimensions(a.floating);return _!==N.width||E!==N.height?{reset:{rects:!0}}:{}}})]}).then(({x:i,y:o})=>{Object.assign(t.style,{top:`${o}px`,left:`${i}px`,position:"fixed"}),n||(r=t.offsetWidth<e.offsetWidth,t.focus()),n=!0})}})(e,o.current)),[e]),ww(()=>{var e;c.current?l<0||null===(e=s.current[l])||void 0===e||e.scrollIntoView({block:"nearest",inline:"nearest"}):c.current=!0},[l]);const h=e=>"OPTION"===e.tagName&&!e.disabled;return Gw("div",{ref:o,className:"NativeSelect-module__select___qtkvK",role:"combobox","aria-expanded":"true",tabIndex:0,onKeyDown:e=>{switch(a.current=!1,e.code){case"ArrowUp":e.preventDefault(),(()=>{if(l<=0)return;let e=l-1;for(;e>=0;){if(h(t[e]))return u(e);e--}})();break;case"ArrowDown":e.preventDefault(),(()=>{if(l<0)return;if(l>=t.length-1)return;let e=l+1;for(;e<t.length;){if(h(t[e]))return u(e);e++}})();break;case"Space":case"Enter":e.preventDefault(),l>=0&&r(l);break;case"Escape":e.preventDefault(),i()}},onMouseEnter:()=>u(-1),onMouseMove:()=>{a.current=!0},children:t.map((e,t)=>"HR"===e.tagName?Gw("hr",{className:"NativeSelect-module__divider___y6PB1"},t):"OPTGROUP"===e.tagName?Gw("div",{className:BM("NativeSelect-module__group___gehfc",e.disabled&&tj),children:e.text},t):Gw("div",{ref:e=>{s.current[t]=e},className:BM("NativeSelect-module__option___gWTBL",e.inGroup&&"NativeSelect-module__optionInGroup___xZN5g",e.disabled&&tj,e.selected&&"NativeSelect-module__optionSelect___q9xUY",l===t&&"NativeSelect-module__optionHighlight___-zCn5"),role:"option","aria-disabled":e.disabled,"aria-selected":e.selected,onMouseUp:()=>r(t),onMouseEnter:()=>{a.current&&u(t)},children:[Gw("img",{className:"NativeSelect-module__optionIcon___1yPCg",src:'data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="white" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"><path stroke="none" d="M0 0h24v24H0z" fill="none"/><path d="M5 12l5 5l10 -10" /></svg>'}),Gw("span",{children:e.text})]},t))})};var rj=new WeakMap,ij=new WeakMap,oj=new WeakMap,sj=new WeakMap,aj=new WeakMap,cj=new WeakMap,lj=new WeakMap,uj=new WeakMap,hj=new WeakMap,dj=new WeakMap,fj=new WeakMap;const pj=ej;if(window.__cobrowse_io_loaded)throw new Error("CobrowseIO already loaded. This usually means you included the snippet multiple times.");window.__cobrowse_io_loaded=!0;let _j=!1;const Ej=new class{constructor(e){Mr(this,rj,void 0),Mr(this,ij,void 0),Mr(this,oj,void 0),Mr(this,sj,void 0),Mr(this,aj,void 0),Ur(this,"track",e=>{Pr(ij,this).has(e)||(Pr(ij,this).add(e),e.addEventListener("mousedown",Pr(hj,this)),e.addEventListener("keydown",Pr(dj,this)),e.addEventListener("click",Pr(fj,this),{capture:!0,passive:!0}))}),Mr(this,cj,()=>{var e;null===(e=Pr(sj,this))||void 0===e||e.unmount(),Dr(sj,this,null),Dr(oj,this,null)}),Mr(this,lj,e=>{if(Pr(sj,this))return void Pr(cj,this).call(this);Dr(aj,this,!1),setTimeout(()=>{Dr(aj,this,!0)},200);const{items:t,options:n}=(e=>{const t=Array.from(e.options),n=[],r=(e,i)=>{switch(e.tagName){case"HR":n.push({tagName:e.tagName});break;case"OPTGROUP":n.push({tagName:e.tagName,text:e.label,disabled:e.disabled}),i=e;break;case"OPTION":{var o;const r=e.disabled||Boolean(null===(o=i)||void 0===o?void 0:o.disabled);n.push({tagName:e.tagName,text:e.text,disabled:r,selected:!r&&e.selected,targetIndex:t.indexOf(e),inGroup:Boolean(i)});break}}for(const t of e.children)r(t,i)};return r(e),{options:t,items:n}})(e),r=t.findIndex(e=>e.selected);Dr(oj,this,e),Dr(sj,this,Pw(nj,{target:e,items:t,initialHighlightedIndex:r,onSelect:r=>{if(!Pr(aj,this))return;const i=t[r],o=n[i.targetIndex];e.value=o.value,o.selected=!0,e.dispatchEvent(new Og("input",{bubbles:!0})),e.dispatchEvent(new Og("change",{bubbles:!0})),Pr(cj,this).call(this)},onClose:Pr(cj,this)},{hideFromAgent:Pr(rj,this).isRedacted(e),document:e.ownerDocument}))}),Mr(this,uj,e=>{var t;if(!Pr(rj,this).shouldShowSelect())return!1;if("SELECT"!==(null===(t=e.target)||void 0===t?void 0:t.tagName))return!1;if(e.target.size>1)return!1;if(e.defaultPrevented)return!1;const n=e.target;return 0!==n.options.length&&!n.multiple}),Mr(this,hj,e=>{Pr(uj,this).call(this,e)&&0===e.button&&(e.preventDefault(),Pr(lj,this).call(this,e.target))}),Mr(this,dj,e=>{Pr(uj,this).call(this,e)&&["Space","ArrowDown","ArrowUp"].includes(e.code)&&(e.preventDefault(),Pr(lj,this).call(this,e.target))}),Mr(this,fj,e=>{Pr(sj,this)&&Pr(aj,this)&&e.target!==Pr(oj,this)&&(Pr(sj,this).container.contains(e.target)||Pr(cj,this).call(this))}),Dr(rj,this,e),Dr(ij,this,new Set)}}({shouldShowSelect:()=>{var e;return(null===(e=ej.currentSession)||void 0===e?void 0:e.isActive())||_j},isRedacted:e=>Wg.isRedacted(e)});Ej.track(window),fM.on("iframe_discovered",e=>{Yp(e)||Ej.track(e.contentWindow)}),fM.on("session",function(e){const t=new yO(pj);t.updateResource(e),_j=t.isActive()});export{Au as $,xr as A,Mr as B,Dr as C,rf as D,Pr as E,Sr as F,Af as G,lE as H,Du as I,Qh as J,Lt as K,da as L,_u as M,ua as N,Oa as O,ka as P,fa as Q,Ze as R,ca as S,aL as T,fN as U,fu as V,du as W,wu as X,le as Y,ha as Z,Fr as _,si as a,gh as a0,ve as a1,Ir as a2,a_ as a3,Ur as a4,Gr as a5,br as a6,zr as a7,rt as a8,_n as a9,dn as aa,Cs as ab,fe as ac,wf as ad,Cf as ae,ot as af,mu as ag,de as ah,Ee as ai,Ce as aj,gr as ak,Ct as al,ac as am,Vc as an,Bc as ao,ps as ap,yr as aq,fs as ar,pj as as,wt as b,ht as c,m as d,Qt as e,Ne as f,it as g,st as h,Us as i,ge as j,dr as k,oa as l,_e as m,_ as n,Gs as o,xi as p,lt as q,o as r,l_ as s,hs as t,m_ as u,hr as v,Ae as w,E as x,Qr as y,Vr as z};
|