vendor: 10,229 bytes, lines 1-2
1/*! For license information please see main.e0f84e8f.js.LICENSE.txt */ 2!function(){var e={38:function(e,t,n){"use strict";var r=n(296),i=n(791),a=n(164);function o(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||1!==e.nodeType&&9!==e.nodeType&&11!==e.nodeType)}function l(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do{0!==(4098&(t=e).flags)&&(n=t.return),e=t.return}while(e)}return 3===t.tag?n:null}function u(e){if(13===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function c(e){if(31===e.tag){var t=e.memoizedState;if(null===t&&(null!==(e=e.alternate)&&(t=e.memoizedState)),null!==t)return t.dehydrated}return null}function d(e){if(l(e)!==e)throw Error(o(188))}function f(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e;for(e=e.child;null!==e;){if(null!==(t=f(e)))return t;e=e.sibling}return null}var p=Object.assign,h=Symbol.for("react.element"),v=Symbol.for("react.transitional.element"),m=Symbol.for("react.portal"),g=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),b=Symbol.for("react.profiler"),k=Symbol.for("react.consumer"),w=Symbol.for("react.context"),S=Symbol.for("react.forward_ref"),_=Symbol.for("react.suspense"),C=Symbol.for("react.suspense_list"),E=Symbol.for("react.memo"),x=Symbol.for("react.lazy");Symbol.for("react.scope");var T=Symbol.for("react.activity");Symbol.for("react.legacy_hidden"),Symbol.for("react.tracing_marker");var M=Symbol.for("react.memo_cache_sentinel");Symbol.for("react.view_transition");var O=Symbol.iterator;function P(e){return null===e||"object"!==typeof e?null:"function"===typeof(e=O&&e[O]||e["@@iterator"])?e:null}var j=Symbol.for("react.client.reference");function A(e){if(null==e)return null;if("function"===typeof e)return e.$$typeof===j?null:e.displayName||e.name||null;if("string"===typeof e)return e;switch(e){case g:return"Fragment";case b:return"Profiler";case y:return"StrictMode";case _:return"Suspense";case C:return"SuspenseList";case T:return"Activity"}if("object"===typeof e)switch(e.$$typeof){case m:return"Portal";case w:return e.displayName||"Context";case k:return(e._context.displayName||"Context")+".Consumer";case S:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case E:return null!==(t=e.displayName||null)?t:A(e.type)||"Memo";case x:t=e._payload,e=e._init;try{return A(e(t))}catch(n){}}return null}var L=Array.isArray,I=i.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,N=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,D={pending:!1,data:null,method:null,action:null},R=[],F=-1;function z(e){return{current:e}}function U(e){0>F||(e.current=R[F],R[F]=null,F--)}function V(e,t){F++,R[F]=e.current,e.current=t}var B,q,H=z(null),W=z(null),J=z(null),$=z(null);function Q(e,t){switch(V(J,t),V(W,e),V(H,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?gd(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)e=yd(t=gd(t),e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}U(H),V(H,e)}function G(){U(H),U(W),U(J)}function K(e){null!==e.memoizedState&&V($,e);var t=H.current,n=yd(t,e.type);t!==n&&(V(W,e),V(H,n))}function Y(e){W.current===e&&(U(H),U(W)),$.current===e&&(U($),df._currentValue=D)}function X(e){if(void 0===B)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);B=t&&t[1]||"",q=-1<n.stack.indexOf("\n at")?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return"\n"+B+e+q}var Z=!1;function ee(e,t){if(!e||Z)return"";Z=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var n=function(){throw Error()};if(Object.defineProperty(n.prototype,"props",{set:function(){throw Error()}}),"object"===typeof Reflect&&Reflect.construct){try{Reflect.construct(n,[])}catch(i){var r=i}Reflect.construct(e,[],n)}else{try{n.call()}catch(a){r=a}e.call(n.prototype)}}else{try{throw Error()}catch(o){r=o}(n=e())&&"function"===typeof n.catch&&n.catch((function(){}))}}catch(s){if(s&&r&&"string"===typeof s.stack)return[s.stack,r.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var i=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");i&&i.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var a=r.DetermineComponentFrameRoot(),o=a[0],s=a[1];if(o&&s){var l=o.split("\n"),u=s.split("\n");for(i=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;i<u.length&&!u[i].includes("DetermineComponentFrameRoot");)i++;if(r===l.length||i===u.length)for(r=l.length-1,i=u.length-1;1<=r&&0<=i&&l[r]!==u[i];)i--;for(;1<=r&&0<=i;r--,i--)if(l[r]!==u[i]){if(1!==r||1!==i)do{if(r--,0>--i||l[r]!==u[i]){var c="\n"+l[r].replace(" at new "," at ");return e.displayName&&c.includes("<anonymous>")&&(c=c.replace("<anonymous>",e.displayName)),c}}while(1<=r&&0<=i);break}}}finally{Z=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?X(n):""}function te(e,t){switch(e.tag){case 26:case 27:case 5:return X(e.type);case 16:return X("Lazy");case 13:return e.child!==t&&null!==t?X("Suspense Fallback"):X("Suspense");case 19:return X("SuspenseList");case 0:case 15:return ee(e.type,!1);case 11:return ee(e.type.render,!1);case 1:return ee(e.type,!0);case 31:return X("Activity");default:return""}}function ne(e){try{var t="",n=null;do{t+=te(e,n),n=e,e=e.return}while(e);return t}catch(r){return"\nError generating stack: "+r.message+"\n"+r.stack}}var re=Object.prototype.hasOwnProperty,ie=r.unstable_scheduleCallback,ae=r.unstable_cancelCallback,oe=r.unstable_shouldYield,se=r.unstable_requestPaint,le=r.unstable_now,ue=r.unstable_getCurrentPriorityLevel,ce=r.unstable_ImmediatePriority,de=r.unstable_UserBlockingPriority,fe=r.unstable_NormalPriority,pe=r.unstable_LowPriority,he=r.unstable_IdlePriority,ve=r.log,me=r.unstable_setDisableYieldValue,ge=null,ye=null;function be(e){if("function"===typeof ve&&me(e),ye&&"function"===typeof ye.setStrictMode)try{ye.setStrictMode(ge,e)}catch(t){}}var ke=Math.clz32?Math.clz32:function(e){return 0===(e>>>=0)?32:31-(we(e)/Se|0)|0},we=Math.log,Se=Math.LN2;var _e=256,Ce=262144,Ee=4194304;function xe(e){var t=42&e;if(0!==t)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return 261888&e;case 262144:case 524288:case 1048576:case 2097152:return 3932160&e;case 4194304:case 8388608:case 16777216:case 33554432:return 62914560&e;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function Te(e,t,n){var r=e.pendingLanes;if(0===r)return 0;var i=0,a=e.suspendedLanes,o=e.pingedLanes;e=e.warmLanes;var s=134217727&r;return 0!==s?0!==(r=s&~a)?i=xe(r):0!==(o&=s)?i=xe(o):n||0!==(n=s&~e)&&(i=xe(n)):0!==(s=r&~a)?i=xe(s):0!==o?i=xe(o):n||0!==(n=r&~e)&&(i=xe(n)),0===i?0:0!==t&&t!==i&&0===(t&a)&&((a=i&-i)>=(n=t&-t)||32===a&&0!==(4194048&n))?t:i}function Me(e,t){return 0===(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)}function Oe(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;default:return-1}}function Pe(){var e=Ee;return 0===(62914560&(Ee<<=1))&&(Ee=4194304),e}function je(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ae(e,t){e.pendingLanes|=t,268435456!==t&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function Le(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-ke(t);e.entangledLanes|=t,e.entanglements[r]=1073741824|e.entanglements[r]|261930&n}function Ie(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-ke(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}function Ne(e,t){var n=t&-t;return 0!==((n=0!==(42&n)?1:De(n))&(e.suspendedLanes|t))?0:n}function De(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function Re(e){return 2<(e&=-e)?8<e?0!==(134217727&e)?32:268435456:8:2}function Fe(){var e=N.p;return 0!==e?e:void 0===(e=window.event)?32:Tf(e.type)}function ze(e,t){var n=N.p;try{return N.p=e,t()}finally{N.p=n}}var Ue=Math.random().toString(36).slice(2),Ve="__reactFiber$"+Ue,Be="__reactProps$"+Ue,qe="__reactContainer$"+Ue,He="__reactEvents$"+Ue,We="__reactListeners$"+Ue,Je="__reactHandles$"+Ue,$e="__reactResources$"+Ue,Qe="__reactMarker$"+Ue;function Ge(e){delete e[Ve],delete e[Be],delete e[He],delete e[We],delete e[Je]}function Ke(e){var t=e[Ve];if(t)return t;for(var n=e.parentNode;n;){if(t=n[qe]||n[Ve]){if(n=t.alternate,null!==t.child||null!==n&&null!==n.child)for(e=Dd(e);null!==e;){if(n=e[Ve])return n;e=Dd(e)}return t}n=(e=n).parentNode}return null}function Ye(e){if(e=e[Ve]||e[qe]){var t=e.tag;if(5===t||6===t||13===t||31===t||26===t||27===t||3===t)return e}return null}function Xe(e){var t=e.tag;if(5===t||26===t||27===t||6===t)return e.stateNode;throw Error(o(33))}function Ze(e){var t=e[$e];return t||(t=e[$e]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function et(e){e[Qe]=!0}var tt=new Set,nt={};function rt(e,t){it(e,t),it(e+"Capture",t)}function it(e,t){for(nt[e]=t,e=0;e<t.length;e++)tt.add(t[e])}var at=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u
2037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),ot={},st={};function lt(e,t,n){if(i=t,re.call(st,i)||!re.call(ot,i)&&(at.test(i)?st[i]=!0:(ot[i]=!0,0)))if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":return void e.removeAttribute(t);case"boolean":var r=t.toLowerCase().slice(0,5);if("data-"!==r&&"aria-"!==r)return void e.removeAttribute(t)}e.setAttribute(t,""+n)}var i}function ut(e,t,n){if(null===n)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(t)}e.setAttribute(t,""+n)}}function ct(e,t,n,r){if(null===r)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":return void e.removeAttribute(n)}e.setAttributeNS(t,n,""+r)}}function dt(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":case"object":return e;default:return""}}function ft(e){var t=e.type;return(e=e.nodeName)&&"input"===e.toLowerCase()&&("checkbox"===t||"radio"===t)}function pt(e){if(!e._valueTracker){var t=ft(e)?"checked":"value";e._valueTracker=function(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&"undefined"!==typeof r&&"function"===typeof r.get&&"function"===typeof r.set){var i=r.get,a=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){n=""+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(e){n=""+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}(e,t,""+e[t])}}function ht(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=ft(e)?e.checked?"true":"false":e.value),(e=r)!==n&&(t.setValue(e),!0)}function vt(e){if("undefined"===typeof(e=e||("undefined"!==typeof document?document:void 0)))return null;try{return e.activeElement||e.body}catch(t){return e.body}}var mt=/[\n"\\]/g;function gt(e){return e.replace(mt,(function(e){return"\\"+e.charCodeAt(0).toString(16)+" "}))}function yt(e,t,n,r,i,a,o,s){e.name="",null!=o&&"function"!==typeof o&&"symbol"!==typeof o&&"boolean"!==typeof o?e.type=o:e.removeAttribute("type"),null!=t?"number"===o?(0===t&&""===e.value||e.value!=t)&&(e.value=""+dt(t)):e.value!==""+dt(t)&&(e.value=""+dt(t)):"submit"!==o&&"reset"!==o||e.removeAttribute("value"),null!=t?kt(e,o,dt(t)):null!=n?kt(e,o,dt(n)):null!=r&&e.removeAttribute("value"),null==i&&null!=a&&(e.defaultChecked=!!a),null!=i&&(e.checked=i&&"function"!==typeof i&&"symbol"!==typeof i),null!=s&&"function"!==typeof s&&"symbol"!==typeof s&&"boolean"!==typeof s?e.name=""+dt(s):e.removeAttribute("name")}function bt(e,t,n,r,i,a,o,s){if(null!=a&&"function"!==typeof a&&"symbol"!==typeof a&&"boolean"!==typeof a&&(e.type=a),null!=t||null!=n){if(!("submit"!==a&&"reset"!==a||void 0!==t&&null!==t))return void pt(e);n=null!=n?""+dt(n):"",t=null!=t?""+dt(t):n,s||t===e.value||(e.value=t),e.defaultValue=t}r="function"!==typeof(r=null!=r?r:i)&&"symbol"!==typeof r&&!!r,e.checked=s?e.checked:!!r,e.defaultChecked=!!r,null!=o&&"function"!==typeof o&&"symbol"!==typeof o&&"boolean"!==typeof o&&(e.name=o),pt(e)}function kt(e,t,n){"number"===t&&vt(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function wt(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t["$"+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty("$"+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=""+dt(n),t=null,i=0;i<e.length;i++){if(e[i].value===n)return e[i].selected=!0,void(r&&(e[i].defaultSelected=!0));null!==t||e[i].disabled||(t=e[i])}null!==t&&(t.selected=!0)}}function St(e,t,n){null==t||((t=""+dt(t))!==e.value&&(e.value=t),null!=n)?e.defaultValue=null!=n?""+dt(n):"":e.defaultValue!==t&&(e.defaultValue=t)}function _t(e,t,n,r){if(null==t){if(null!=r){if(null!=n)throw Error(o(92));if(L(r)){if(1<r.length)throw Error(o(93));r=r[0]}n=r}null==n&&(n=""),t=n}n=dt(t),e.defaultValue=n,(r=e.textContent)===n&&""!==r&&null!==r&&(e.value=r),pt(e)}function Ct(e,t){if(t){var n=e.firstChild;
2if(n&&n===e.lastChild&&3===n.nodeType)return void(n.nodeValue=t)}e.textContent=t}var Et=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function xt(e,t,n){var r=0===t.indexOf("--");null==n||"boolean"===typeof n||""===n?r?e.setProperty(t,""):"float"===t?e.cssFloat="":e[t]="":r?e.setProperty(t,n):"number"!==typeof n||0===n||Et.has(t)?"float"===t?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function Tt(e,t,n){if(null!=t&&"object"!==typeof t)throw Error(o(62));if(e=e.style,null!=n){for(var r in n)!n.hasOwnProperty(r)||null!=t&&t.hasOwnProperty(r)||(0===r.indexOf("--")?e.setProperty(r,""):"float"===r?e.cssFloat="":e[r]="");for(var i in t)r=t[i],t.hasOwnProperty(i)&&n[i]!==r&&xt(e,i,r)}else for(var a in t)t.hasOwnProperty(a)&&xt(e,a,t[a])}function Mt(e){if(-1===e.indexOf("-"))return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Ot=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode
2-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),Pt=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function jt(e){return Pt.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function At(){}var Lt=null;function It(e){return(e=e.target||e.srcElement||window).correspondingUseElement&&(e=e.correspondingUseElement),3===e.nodeType?e.parentNode:e}var Nt=null,Dt=null;function Rt(e){var t=Ye(e);if(t&&(e=t.stateNode)){var n=e[Be]||null;e:switch(e=t.stateNode,t.type){case"input":if(yt(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,"radio"===n.type&&null!=t){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+gt(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var i=r[Be]||null;if(!i)throw Error(o(90));yt(r,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name)}}for(t=0;t<n.length;t++)(r=n[t]).form===e.form&&ht(r)}break e;case"textarea":St(e,n.value,n.defaultValue);break e;case"select":null!=(t=n.value)&&wt(e,!!n.multiple,t,!1)}}}var Ft=!1;function zt(e,t,n){if(Ft)return e(t,n);Ft=!0;try{return e(t)}finally{if(Ft=!1,(null!==Nt||null!==Dt)&&(Zu(),Nt&&(t=Nt,e=Dt,Dt=Nt=null,Rt(t),e)))for(t=0;t<e.length;t++)Rt(e[t])}}function Ut(e,t){var n=e.stateNode;if(null===n)return null;var r=n[Be]||null;if(null===r)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(r=!("button"===(e=e.type)||"input"===e||"select"===e||"textarea"===e)),e=!r;break e;default:e=!1}if(e)return null;if(n&&"function"!==typeof n)throw Error(o(231,t,typeof n));return n}var Vt=!("undefined"===typeof window||"undefined"===typeof window.document||"undefined"===typeof window.document.createElement),Bt=!1;if(Vt)try{var qt={};Object.defineProperty(qt,"passive",{get:function(){Bt=!0}}),window.addEventListener("test",qt,qt),window.removeEventListener("test",qt,qt)}catch(Xf){Bt=!1}var Ht=null,Wt=null,Jt=null;function $t(){if(Jt)return Jt;var e,t,n=Wt,r=n.length,i="value"in Ht?Ht.value:Ht.textContent,a=i.length;for(e=0;e<r&&n[e]===i[e];e++);var o=r-e;for(t=1;t<=o&&n[r-t]===i[a-t];t++);return Jt=i.slice(e,1<t?1-t:void 0)}function Qt(e){var t=e.keyCode;return"charCode"in e?0===(e=e.charCode)&&13===t&&(e=13):e=t,10===e&&(e=13),32<=e||13===e?e:0}function Gt(){return!0}function Kt(){return!1}function Yt(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(null!=i.defaultPrevented?i.defaultPrevented:!1===i.returnValue)?Gt:Kt,this.isPropagationStopped=Kt,this}return p(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():"unknown"!==typeof e.returnValue&&(e.returnValue=!1),this.isDefaultPrevented=Gt)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():"unknown"!==typeof e.cancelBubble&&(e.cancelBubble=!0),this.isPropagationStopped=Gt)},persist:function(){},isPersistent:Gt}),t}var Xt,Zt,en,tn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},nn=Yt(tn),rn=p({},tn,{view:0,detail:0}),an=Yt(rn),on=p({},rn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:gn,button:0,buttons:0,relatedTarget:function(e){return void 0===e.relatedTarget?e.from
vendor: 4,404 bytes, line 2
2Element===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==en&&(en&&"mousemove"===e.type?(Xt=e.screenX-en.screenX,Zt=e.screenY-en.screenY):Zt=Xt=0,en=e),Xt)},movementY:function(e){return"movementY"in e?e.movementY:Zt}}),sn=Yt(on),ln=Yt(p({},on,{dataTransfer:0})),un=Yt(p({},rn,{relatedTarget:0})),cn=Yt(p({},tn,{animationName:0,elapsedTime:0,pseudoElement:0})),dn=Yt(p({},tn,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}})),fn=Yt(p({},tn,{data:0})),pn={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},hn={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",224:"Meta"},vn={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function mn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):!!(e=vn[e])&&!!t[e]}function gn(){return mn}var yn=Yt(p({},rn,{key:function(e){if(e.key){var t=pn[e.key]||e.key;if("Unidentified"!==t)return t}return"keypress"===e.type?13===(e=Qt(e))?"Enter":String.fromCharCode(e):"keydown"===e.type||"keyup"===e.type?hn[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:gn,charCode:function(e){return"keypress"===e.type?Qt(e):0},keyCode:function(e){return"keydown"===e.type||"keyup"===e.type?e.keyCode:0},which:function(e){return"keypress"===e.type?Qt(e):"keydown"===e.type||"keyup"===e.type?e.keyCode:0}})),bn=Yt(p({},on,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),kn=Yt(p({},rn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:gn})),wn=Yt(p({},tn,{propertyName:0,elapsedTime:0,pseudoElement:0})),Sn=Yt(p({},on,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0})),_n=Yt(p({},tn,{newState:0,oldState:0})),Cn=[9,13,27,32],En=Vt&&"CompositionEvent"in window,xn=null;Vt&&"documentMode"in document&&(xn=document.documentMode);var Tn=Vt&&"TextEvent"in window&&!xn,Mn=Vt&&(!En||xn&&8<xn&&11>=xn),On=String.fromCharCode(32),Pn=!1;function jn(e,t){switch(e){case"keyup":return-1!==Cn.indexOf(t.keyCode);case"keydown":return 229!==t.keyCode;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function An(e){return"object"===typeof(e=e.detail)&&"data"in e?e.data:null}var Ln=!1;var In={color:!0,date:!0,datetime:!0,"datetime-local":!0,email:!0,month:!0,number:!0,password:!0,range:!0,search:!0,tel:!0,text:!0,time:!0,url:!0,week:!0};function Nn(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return"input"===t?!!In[e.type]:"textarea"===t}function Dn(e,t,n,r){Nt?Dt?Dt.push(r):Dt=[r]:Nt=r,0<(t=rd(t,"onChange")).length&&(n=new nn("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Rn=null,Fn=null;function zn(e){Gc(e,0)}function Un(e){if(ht(Xe(e)))return e}function Vn(e,t){if("change"===e)return t}var Bn=!1;if(Vt){var qn;if(Vt){var Hn="oninput"in document;if(!Hn){var Wn=document.createElement("div");Wn.setAttribute("oninput","return;"),Hn="function"===typeof Wn.oninput}qn=Hn}else qn=!1;Bn=qn&&(!document.documentMode||9<document.documentMode)}function Jn(){Rn&&(Rn.detachEvent("onpropertychange",$n),Fn=Rn=null)}function $n(e){if("value"===e.propertyName&&Un(Fn)){var t=[];Dn(t,Fn,e,It(e)),zt(zn,t)}}function Qn(e,t,n){"focusin"===e?(Jn(),Fn=n,(Rn=t).attachEvent("onpropertychange",$n)):"focusout"===e&&Jn()}function Gn(e){if("selectionchange"===e||"keyup"===e||"keydown"===e)return Un(Fn)}function Kn(e,t){if("click"===e)return Un(t)}function Yn(e,t){if("input"===e||"change"===e)return Un(t)}var Xn="function"===typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e===1/t)||e!==e&&t!==t};function Zn(e,t){if(Xn(e,t))return!0;
vendor: 4,633 bytes, line 2
2if("object"!==typeof e||null===e||"object"!==typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!re.call(t,i)||!Xn(e[i],t[i]))return!1}return!0}function er(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function tr(e,t){var n,r=er(e);for(e=0;r;){if(3===r.nodeType){if(n=e+r.textContent.length,e<=t&&n>=t)return{node:r,offset:t-e};e=n}e:{for(;r;){if(r.nextSibling){r=r.nextSibling;break e}r=r.parentNode}r=void 0}r=er(r)}}function nr(e,t){return!(!e||!t)&&(e===t||(!e||3!==e.nodeType)&&(t&&3===t.nodeType?nr(e,t.parentNode):"contains"in e?e.contains(t):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(t))))}function rr(e){for(var t=vt((e=null!=e&&null!=e.ownerDocument&&null!=e.ownerDocument.defaultView?e.ownerDocument.defaultView:window).document);t instanceof e.HTMLIFrameElement;){try{var n="string"===typeof t.contentWindow.location.href}catch(r){n=!1}if(!n)break;t=vt((e=t.contentWindow).document)}return t}function ir(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&("input"===t&&("text"===e.type||"search"===e.type||"tel"===e.type||"url"===e.type||"password"===e.type)||"textarea"===t||"true"===e.contentEditable)}var ar=Vt&&"documentMode"in document&&11>=document.documentMode,or=null,sr=null,lr=null,ur=!1;function cr(e,t,n){var r=n.window===n?n.document:9===n.nodeType?n:n.ownerDocument;ur||null==or||or!==vt(r)||("selectionStart"in(r=or)&&ir(r)?r={start:r.selectionStart,end:r.selectionEnd}:r={anchorNode:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection()).anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset},lr&&Zn(lr,r)||(lr=r,0<(r=rd(sr,"onSelect")).length&&(t=new nn("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=or)))}function dr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var fr={animationend:dr("Animation","AnimationEnd"),animationiteration:dr("Animation","AnimationIteration"),animationstart:dr("Animation","AnimationStart"),transitionrun:dr("Transition","TransitionRun"),transitionstart:dr("Transition","TransitionStart"),transitioncancel:dr("Transition","TransitionCancel"),transitionend:dr("Transition","TransitionEnd")},pr={},hr={};function vr(e){if(pr[e])return pr[e];if(!fr[e])return e;var t,n=fr[e];for(t in n)if(n.hasOwnProperty(t)&&t in hr)return pr[e]=n[t];return e}Vt&&(hr=document.createElement("div").style,"AnimationEvent"in window||(delete fr.animationend.animation,delete fr.animationiteration.animation,delete fr.animationstart.animation),"TransitionEvent"in window||delete fr.transitionend.transition);var mr=vr("animationend"),gr=vr("animationiteration"),yr=vr("animationstart"),br=vr("transitionrun"),kr=vr("transitionstart"),wr=vr("transitioncancel"),Sr=vr("transitionend"),_r=new Map,Cr="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");function Er(e,t){_r.set(e,t),rt(t,[e])}Cr.push("scrollEnd");var xr="function"===typeof reportError?reportError:function(e){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof e&&null!==e&&"string"===typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"===typeof process&&"function"===typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},Tr=[],Mr=0,Or=0;function Pr(){for(var e=Mr,t=Or=Mr=0;t<e;){var n=Tr[t];Tr[t++]=null;var r=Tr[t];Tr[t++]=null;var i=Tr[t];Tr[t++]=null;var a=Tr[t];if(Tr[t++]=null,null!==r&&null!==i){var o=r.pending;null===o?i.next=i:(i.next=o.next,o.next=i),r.pending=i}0!==a&&Ir(n,i,a)}}function jr(e,t,n,r){Tr[Mr++]=e,Tr[Mr++]=t,Tr[Mr++]=n,Tr[Mr++]=r,Or|=r,e.lanes|=r,null!==(e=e.alternate)&&(e.lanes|=r)}function Ar(e,t,n,r){return jr(e,t,n,r),Nr(e)}function Lr(e,t){return jr(e,null,null,t),Nr(e)}function Ir(e,t,n){e.lanes|=n;var r=e.alternate;null!==r&&(r.lanes|=n);for(var i=!1,a=e.return;null!==a;
vendor: 7,953 bytes, line 2
2)a.childLanes|=n,null!==(r=a.alternate)&&(r.childLanes|=n),22===a.tag&&(null===(e=a.stateNode)||1&e._visibility||(i=!0)),e=a,a=a.return;return 3===e.tag?(a=e.stateNode,i&&null!==t&&(i=31-ke(n),null===(r=(e=a.hiddenUpdates)[i])?e[i]=[t]:r.push(t),t.lane=536870912|n),a):null}function Nr(e){if(50<Hu)throw Hu=0,Wu=null,Error(o(185));for(var t=e.return;null!==t;)t=(e=t).return;return 3===e.tag?e.stateNode:null}var Dr={};function Rr(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Fr(e,t,n,r){return new Rr(e,t,n,r)}function zr(e){return!(!(e=e.prototype)||!e.isReactComponent)}function Ur(e,t){var n=e.alternate;return null===n?((n=Fr(e.tag,t,e.key,e.mode)).elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=65011712&e.flags,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function Vr(e,t){e.flags&=65011714;var n=e.alternate;return null===n?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=null===t?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function Br(e,t,n,r,i,a){var s=0;if(r=e,"function"===typeof e)zr(e)&&(s=1);else if("string"===typeof e)s=function(e,t,n){if(1===n||null!=t.itemProp)return!1;switch(e){case"meta":case"title":return!0;case"style":if("string"!==typeof t.precedence||"string"!==typeof t.href||""===t.href)break;return!0;case"link":if("string"!==typeof t.rel||"string"!==typeof t.href||""===t.href||t.onLoad||t.onError)break;return"stylesheet"!==t.rel||(e=t.disabled,"string"===typeof t.precedence&&null==e);case"script":if(t.async&&"function"!==typeof t.async&&"symbol"!==typeof t.async&&!t.onLoad&&!t.onError&&t.src&&"string"===typeof t.src)return!0}return!1}(e,n,H.current)?26:"html"===e||"head"===e||"body"===e?27:5;else e:switch(e){case T:return(e=Fr(31,n,t,i)).elementType=T,e.lanes=a,e;case g:return qr(n.children,i,a,t);case y:s=8,i|=24;break;case b:return(e=Fr(12,n,t,2|i)).elementType=b,e.lanes=a,e;case _:return(e=Fr(13,n,t,i)).elementType=_,e.lanes=a,e;case C:return(e=Fr(19,n,t,i)).elementType=C,e.lanes=a,e;default:if("object"===typeof e&&null!==e)switch(e.$$typeof){case w:s=10;break e;case k:s=9;break e;case S:s=11;break e;case E:s=14;break e;case x:s=16,r=null;break e}s=29,n=Error(o(130,null===e?"null":typeof e,"")),r=null}return(t=Fr(s,n,t,i)).elementType=e,t.type=r,t.lanes=a,t}function qr(e,t,n,r){return(e=Fr(7,e,r,t)).lanes=n,e}function Hr(e,t,n){return(e=Fr(6,e,null,t)).lanes=n,e}function Wr(e){var t=Fr(18,null,null,0);return t.stateNode=e,t}function Jr(e,t,n){return(t=Fr(4,null!==e.children?e.children:[],e.key,t)).lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var $r=new WeakMap;function Qr(e,t){if("object"===typeof e&&null!==e){var n=$r.get(e);return void 0!==n?n:(t={value:e,source:t,stack:ne(t)},$r.set(e,t),t)}return{value:e,source:t,stack:ne(t)}}var Gr=[],Kr=0,Yr=null,Xr=0,Zr=[],ei=0,ti=null,ni=1,ri="";function ii(e,t){Gr[Kr++]=Xr,Gr[Kr++]=Yr,Yr=e,Xr=t}function ai(e,t,n){Zr[ei++]=ni,Zr[ei++]=ri,Zr[ei++]=ti,ti=e;var r=ni;e=ri;var i=32-ke(r)-1;r&=~(1<<i),n+=1;var a=32-ke(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,ni=1<<32-ke(t)+i|n<<i|r,ri=a+e}else ni=1<<a|n<<i|r,ri=e}function oi(e){null!==e.return&&(ii(e,1),ai(e,1,0))}function si(e){for(;e===Yr;)Yr=Gr[--Kr],Gr[Kr]=null,Xr=Gr[--Kr],Gr[Kr]=null;for(;e===ti;)ti=Zr[--ei],Zr[ei]=null,ri=Zr[--ei],Zr[ei]=null,ni=Zr[--ei],Zr[ei]=null}function li(e,t){Zr[ei++]=ni,Zr[ei++]=ri,Zr[ei++]=ti,ni=t.id,ri=t.overflow,ti=e}var ui=null,ci=null,di=!1,fi=null,pi=!1,hi=Error(o(519));function vi(e){throw wi(Qr(Error(o(418,1<arguments.length&&void 0!==arguments[1]&&arguments[1]?"text":"HTML","")),e)),hi}function mi(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Ve]=e,t[Be]=r,n){case"dialog":Kc("cancel",t),Kc("close",t);break;case"iframe":case"object":case"embed":Kc("load",t);break;case"video":case"audio":for(n=0;n<$c.length;n++)Kc($c[n],t);break;case"source":Kc("error",t);break;case"img":case"image":case"link":Kc("error",t),Kc("load",t);break;case"details":Kc("toggle",t);break;case"input":Kc("invalid",t),bt(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Kc("invalid",t);break;case"textarea":Kc("invalid",t),_t(t,r.value,r.defaultValue,r.children)}"string"!==typeof(n=r.children)&&"number"!==typeof n&&"bigint"!==typeof n||t.textContent===""+n||!0===r.suppressHydrationWarning||ud(t.textContent,n)?(null!=r.popover&&(Kc("beforetoggle",t),Kc("toggle",t)),null!=r.onScroll&&Kc("scroll",t),null!=r.onScrollEnd&&Kc("scrollend",t),null!=r.onClick&&(t.onclick=At),t=!0):t=!1,t||vi(e,!0)}function gi(e){for(ui=e.return;ui;)switch(ui.tag){case 5:case 31:case 13:return void(pi=!1);case 27:case 3:return void(pi=!0);default:ui=ui.return}}function yi(e){if(e!==ui)return!1;if(!di)return gi(e),di=!0,!1;var t,n=e.tag;if((t=3!==n&&27!==n)&&((t=5===n)&&(t=!("form"!==(t=e.type)&&"button"!==t)||bd(e.type,e.memoizedProps)),t=!t),t&&ci&&vi(e),gi(e),13===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));ci=Nd(e)}else if(31===n){if(!(e=null!==(e=e.memoizedState)?e.dehydrated:null))throw Error(o(317));ci=Nd(e)}else 27===n?(n=ci,xd(e.type)?(e=Id,Id=null,ci=e):ci=n):ci=ui?Ld(e.stateNode.nextSibling):null;return!0}function bi(){ci=ui=null,di=!1}function ki(){var e=fi;return null!==e&&(null===Pu?Pu=e:Pu.push.apply(Pu,e),fi=null),e}function wi(e){null===fi?fi=[e]:fi.push(e)}var Si=z(null),_i=null,Ci=null;function Ei(e,t,n){V(Si,t._currentValue),t._currentValue=n}function xi(e){e._currentValue=Si.current,U(Si)}function Ti(e,t,n){for(;null!==e;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,null!==r&&(r.childLanes|=t)):null!==r&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Mi(e,t,n,r){var i=e.child;for(null!==i&&(i.return=e);null!==i;){var a=i.dependencies;if(null!==a){var s=i.child;a=a.firstContext;e:for(;null!==a;){var l=a;a=i;for(var u=0;u<t.length;u++)if(l.context===t[u]){a.lanes|=n,null!==(l=a.alternate)&&(l.lanes|=n),Ti(a.return,n,e),r||(s=null);break e}a=l.next}}else if(18===i.tag){if(null===(s=i.return))throw Error(o(341));s.lanes|=n,null!==(a=s.alternate)&&(a.lanes|=n),Ti(s,n,e),s=null}else s=i.child;if(null!==s)s.return=i;else for(s=i;null!==s;){if(s===e){s=null;break}if(null!==(i=s.sibling)){i.return=s.return,s=i;break}s=s.return}i=s}}function Oi(e,t,n,r){e=null;for(var i=t,a=!1;null!==i;){if(!a)if(0!==(524288&i.flags))a=!0;else if(0!==(262144&i.flags))break;if(10===i.tag){var s=i.alternate;if(null===s)throw Error(o(387));if(null!==(s=s.memoizedProps)){var l=i.type;Xn(i.pendingProps.value,s.value)||(null!==e?e.push(l):e=[l])}}else if(i===$.current){if(null===(s=i.alternate))throw Error(o(387));s.memoizedState.memoizedState!==i.memoizedState.memoizedState&&(null!==e?e.push(df):e=[df])}i=i.return}null!==e&&Mi(t,e,n,r),t.flags|=262144}function Pi(e){for(e=e.firstContext;null!==e;){if(!Xn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}
vendor: 5,060 bytes, line 2
2function ji(e){_i=e,Ci=null,null!==(e=e.dependencies)&&(e.firstContext=null)}function Ai(e){return Ii(_i,e)}function Li(e,t){return null===_i&&ji(e),Ii(e,t)}function Ii(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},null===Ci){if(null===e)throw Error(o(308));Ci=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ci=Ci.next=t;return n}var Ni="undefined"!==typeof AbortController?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(t,n){e.push(n)}};this.abort=function(){t.aborted=!0,e.forEach((function(e){return e()}))}},Di=r.unstable_scheduleCallback,Ri=r.unstable_NormalPriority,Fi={$$typeof:w,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function zi(){return{controller:new Ni,data:new Map,refCount:0}}function Ui(e){e.refCount--,0===e.refCount&&Di(Ri,(function(){e.controller.abort()}))}var Vi=null,Bi=0,qi=0,Hi=null;function Wi(){if(0===--Bi&&null!==Vi){null!==Hi&&(Hi.status="fulfilled");var e=Vi;Vi=null,qi=0,Hi=null;for(var t=0;t<e.length;t++)(0,e[t])()}}var Ji=I.S;I.S=function(e,t){Lu=le(),"object"===typeof t&&null!==t&&"function"===typeof t.then&&function(e,t){if(null===Vi){var n=Vi=[];Bi=0,qi=Bc(),Hi={status:"pending",value:void 0,then:function(e){n.push(e)}}}Bi++,t.then(Wi,Wi)}(0,t),null!==Ji&&Ji(e,t)};var $i=z(null);function Qi(){var e=$i.current;return null!==e?e:hu.pooledCache}function Gi(e,t){V($i,null===t?$i.current:t.pool)}function Ki(){var e=Qi();return null===e?null:{parent:Fi._currentValue,pool:e}}var Yi=Error(o(460)),Xi=Error(o(474)),Zi=Error(o(542)),ea={then:function(){}};function ta(e){return"fulfilled"===(e=e.status)||"rejected"===e}function na(e,t,n){switch(void 0===(n=e[n])?e.push(t):n!==t&&(t.then(At,At),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw oa(e=t.reason),e;default:if("string"===typeof t.status)t.then(At,At);else{if(null!==(e=hu)&&100<e.shellSuspendCounter)throw Error(o(482));(e=t).status="pending",e.then((function(e){if("pending"===t.status){var n=t;n.status="fulfilled",n.value=e}}),(function(e){if("pending"===t.status){var n=t;n.status="rejected",n.reason=e}}))}switch(t.status){case"fulfilled":return t.value;case"rejected":throw oa(e=t.reason),e}throw ia=t,Yi}}function ra(e){try{return(0,e._init)(e._payload)}catch(t){if(null!==t&&"object"===typeof t&&"function"===typeof t.then)throw ia=t,Yi;throw t}}var ia=null;function aa(){if(null===ia)throw Error(o(459));var e=ia;return ia=null,e}function oa(e){if(e===Yi||e===Zi)throw Error(o(483))}var sa=null,la=0;function ua(e){var t=la;return la+=1,null===sa&&(sa=[]),na(sa,e,t)}function ca(e,t){t=t.props.ref,e.ref=void 0!==t?t:null}function da(e,t){if(t.$$typeof===h)throw Error(o(525));throw e=Object.prototype.toString.call(t),Error(o(31,"[object Object]"===e?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function fa(e){function t(t,n){if(e){var r=t.deletions;null===r?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;null!==r;)t(n,r),r=r.sibling;return null}function r(e){for(var t=new Map;null!==e;)null!==e.key?t.set(e.key,e):t.set(e.index,e),e=e.sibling;return t}function i(e,t){return(e=Ur(e,t)).index=0,e.sibling=null,e}function a(t,n,r){return t.index=r,e?null!==(r=t.alternate)?(r=r.index)<n?(t.flags|=67108866,n):r:(t.flags|=67108866,n):(t.flags|=1048576,n)}function s(t){return e&&null===t.alternate&&(t.flags|=67108866),t}function l(e,t,n,r){return null===t||6!==t.tag?((t=Hr(n,e.mode,r)).return=e,t):((t=i(t,n)).return=e,t)}function u(e,t,n,r){var a=n.type;return a===g?d(e,t,n.props.children,r,n.key):null!==t&&(t.elementType===a||"object"===typeof a&&null!==a&&a.$$typeof===x&&ra(a)===t.type)?(ca(t=i(t,n.props),n),t.return=e,t):(ca(t=Br(n.type,n.key,n.props,null,e.mode,r),n),t.return=e,t)}function c(e,t,n,r){return null===t||4!==t.tag||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?((t=Jr(n,e.mode,r)).return=e,t):((t=i(t,n.children||[])).return=e,t)}function d(e,t,n,r,a){return null===t||7!==t.tag?((t=qr(n,e.mode,r,a)).return=e,t):((t=i(t,n)).return=e,t)}function f(e,t,n){if("string"===typeof t&&""!==t||"number"===typeof t||"bigint"===typeof t)return(t=Hr(""+t,e.mode,n)).return=e,t;if("object"===typeof t&&null!==t){switch(t.$$typeof){case v:return ca(n=Br(t.type,t.key,t.props,null,e.mode,n),t),n.return=e,n;case m:return(t=Jr(t,e.mode,n)).return=e,t;case x:return f(e,t=ra(t),n)}if(L(t)||P(t))return(t=qr(t,e.mode,n,null)).return=e,t;if("function"===typeof t.then)return f(e,ua(t),n);if(t.$$typeof===w)return f(e,Li(e,t),n);da(e,t)}return null}function p(e,t,n,r){var i=null!==t?t.key:null;if("string"===typeof n&&""!==n||"number"===typeof n||"bigint"===typeof n)return null!==i?null:l(e,t,""+n,r);if("object"===typeof n&&null!==n){switch(n.$$typeof){case v:return n.key===i?u(e,t,n,r):null;case m:return n.key===i?c(e,t,n,r):null;case x:return p(e,t,n=ra(n),r)}if(L(n)||P(n))return null!==i?null:d(e,t,n,r,null);if("function"===typeof n.then)return p(e,t,ua(n),r);if(n.$$typeof===w)return p(e,t,Li(e,n),r);
vendor: 16,438 bytes, line 2
2da(e,n)}return null}function h(e,t,n,r,i){if("string"===typeof r&&""!==r||"number"===typeof r||"bigint"===typeof r)return l(t,e=e.get(n)||null,""+r,i);if("object"===typeof r&&null!==r){switch(r.$$typeof){case v:return u(t,e=e.get(null===r.key?n:r.key)||null,r,i);case m:return c(t,e=e.get(null===r.key?n:r.key)||null,r,i);case x:return h(e,t,n,r=ra(r),i)}if(L(r)||P(r))return d(t,e=e.get(n)||null,r,i,null);if("function"===typeof r.then)return h(e,t,n,ua(r),i);if(r.$$typeof===w)return h(e,t,n,Li(t,r),i);da(t,r)}return null}function y(l,u,c,d){if("object"===typeof c&&null!==c&&c.type===g&&null===c.key&&(c=c.props.children),"object"===typeof c&&null!==c){switch(c.$$typeof){case v:e:{for(var b=c.key;null!==u;){if(u.key===b){if((b=c.type)===g){if(7===u.tag){n(l,u.sibling),(d=i(u,c.props.children)).return=l,l=d;break e}}else if(u.elementType===b||"object"===typeof b&&null!==b&&b.$$typeof===x&&ra(b)===u.type){n(l,u.sibling),ca(d=i(u,c.props),c),d.return=l,l=d;break e}n(l,u);break}t(l,u),u=u.sibling}c.type===g?((d=qr(c.props.children,l.mode,d,c.key)).return=l,l=d):(ca(d=Br(c.type,c.key,c.props,null,l.mode,d),c),d.return=l,l=d)}return s(l);case m:e:{for(b=c.key;null!==u;){if(u.key===b){if(4===u.tag&&u.stateNode.containerInfo===c.containerInfo&&u.stateNode.implementation===c.implementation){n(l,u.sibling),(d=i(u,c.children||[])).return=l,l=d;break e}n(l,u);break}t(l,u),u=u.sibling}(d=Jr(c,l.mode,d)).return=l,l=d}return s(l);case x:return y(l,u,c=ra(c),d)}if(L(c))return function(i,o,s,l){for(var u=null,c=null,d=o,v=o=0,m=null;null!==d&&v<s.length;v++){d.index>v?(m=d,d=null):m=d.sibling;var g=p(i,d,s[v],l);if(null===g){null===d&&(d=m);break}e&&d&&null===g.alternate&&t(i,d),o=a(g,o,v),null===c?u=g:c.sibling=g,c=g,d=m}if(v===s.length)return n(i,d),di&&ii(i,v),u;if(null===d){for(;v<s.length;v++)null!==(d=f(i,s[v],l))&&(o=a(d,o,v),null===c?u=d:c.sibling=d,c=d);return di&&ii(i,v),u}for(d=r(d);v<s.length;v++)null!==(m=h(d,i,v,s[v],l))&&(e&&null!==m.alternate&&d.delete(null===m.key?v:m.key),o=a(m,o,v),null===c?u=m:c.sibling=m,c=m);return e&&d.forEach((function(e){return t(i,e)})),di&&ii(i,v),u}(l,u,c,d);if(P(c)){if("function"!==typeof(b=P(c)))throw Error(o(150));return function(i,s,l,u){if(null==l)throw Error(o(151));for(var c=null,d=null,v=s,m=s=0,g=null,y=l.next();null!==v&&!y.done;m++,y=l.next()){v.index>m?(g=v,v=null):g=v.sibling;var b=p(i,v,y.value,u);if(null===b){null===v&&(v=g);break}e&&v&&null===b.alternate&&t(i,v),s=a(b,s,m),null===d?c=b:d.sibling=b,d=b,v=g}if(y.done)return n(i,v),di&&ii(i,m),c;if(null===v){for(;!y.done;m++,y=l.next())null!==(y=f(i,y.value,u))&&(s=a(y,s,m),null===d?c=y:d.sibling=y,d=y);return di&&ii(i,m),c}for(v=r(v);!y.done;m++,y=l.next())null!==(y=h(v,i,m,y.value,u))&&(e&&null!==y.alternate&&v.delete(null===y.key?m:y.key),s=a(y,s,m),null===d?c=y:d.sibling=y,d=y);return e&&v.forEach((function(e){return t(i,e)})),di&&ii(i,m),c}(l,u,c=b.call(c),d)}if("function"===typeof c.then)return y(l,u,ua(c),d);if(c.$$typeof===w)return y(l,u,Li(l,c),d);da(l,c)}return"string"===typeof c&&""!==c||"number"===typeof c||"bigint"===typeof c?(c=""+c,null!==u&&6===u.tag?(n(l,u.sibling),(d=i(u,c)).return=l,l=d):(n(l,u),(d=Hr(c,l.mode,d)).return=l,l=d),s(l)):n(l,u)}return function(e,t,n,r){try{la=0;var i=y(e,t,n,r);return sa=null,i}catch(o){if(o===Yi||o===Zi)throw o;var a=Fr(29,o,null,e.mode);return a.lanes=r,a.return=e,a}}}var pa=fa(!0),ha=fa(!1),va=!1;function ma(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function ga(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function ya(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function ba(e,t,n){var r=e.updateQueue;if(null===r)return null;if(r=r.shared,0!==(2&pu)){var i=r.pending;return null===i?t.next=t:(t.next=i.next,i.next=t),r.pending=t,t=Nr(e),Ir(e,null,n),t}return jr(e,r,t,n),Nr(e)}function ka(e,t,n){if(null!==(t=t.updateQueue)&&(t=t.shared,0!==(4194048&n))){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Ie(e,n)}}function wa(e,t){var n=e.updateQueue,r=e.alternate;if(null!==r&&n===(r=r.updateQueue)){var i=null,a=null;if(null!==(n=n.firstBaseUpdate)){do{var o={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};null===a?i=a=o:a=a.next=o,n=n.next}while(null!==n);null===a?i=a=t:a=a.next=t}else i=a=t;return n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,callbacks:r.callbacks},void(e.updateQueue=n)}null===(e=n.lastBaseUpdate)?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Sa=!1;function _a(){if(Sa){if(null!==Hi)throw Hi}}function Ca(e,t,n,r){Sa=!1;var i=e.updateQueue;va=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(null!==s){i.shared.pending=null;var l=s,u=l.next;l.next=null,null===o?a=u:o.next=u,o=l;var c=e.alternate;null!==c&&((s=(c=c.updateQueue).lastBaseUpdate)!==o&&(null===s?c.firstBaseUpdate=u:s.next=u,c.lastBaseUpdate=l))}if(null!==a){var d=i.baseState;for(o=0,c=u=l=null,s=a;;){var f=-536870913&s.lane,h=f!==s.lane;if(h?(mu&f)===f:(r&f)===f){0!==f&&f===qi&&(Sa=!0),null!==c&&(c=c.next={lane:0,tag:s.tag,payload:s.payload,callback:null,next:null});e:{var v=e,m=s;f=t;var g=n;switch(m.tag){case 1:if("function"===typeof(v=m.payload)){d=v.call(g,d,f);break e}d=v;break e;case 3:v.flags=-65537&v.flags|128;case 0:if(null===(f="function"===typeof(v=m.payload)?v.call(g,d,f):v)||void 0===f)break e;d=p({},d,f);break e;case 2:va=!0}}null!==(f=s.callback)&&(e.flags|=64,h&&(e.flags|=8192),null===(h=i.callbacks)?i.callbacks=[f]:h.push(f))}else h={lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},null===c?(u=c=h,l=d):c=c.next=h,o|=f;if(null===(s=s.next)){if(null===(s=i.shared.pending))break;s=(h=s).next,h.next=null,i.lastBaseUpdate=h,i.shared.pending=null}}null===c&&(l=d),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=c,null===a&&(i.shared.lanes=0),Cu|=o,e.lanes=o,e.memoizedState=d}}function Ea(e,t){if("function"!==typeof e)throw Error(o(191,e));e.call(t)}function xa(e,t){var n=e.callbacks;if(null!==n)for(e.callbacks=null,e=0;e<n.length;e++)Ea(n[e],t)}var Ta=z(null),Ma=z(0);function Oa(e,t){V(Ma,e=Su),V(Ta,t),Su=e|t.baseLanes}function Pa(){V(Ma,Su),V(Ta,Ta.current)}function ja(){Su=Ma.current,U(Ta),U(Ma)}var Aa=z(null),La=null;function Ia(e){var t=e.alternate;V(za,1&za.current),V(Aa,e),null===La&&(null===t||null!==Ta.current||null!==t.memoizedState)&&(La=e)}function Na(e){V(za,za.current),V(Aa,e),null===La&&(La=e)}function Da(e){22===e.tag?(V(za,za.current),V(Aa,e),null===La&&(La=e)):Ra()}function Ra(){V(za,za.current),V(Aa,Aa.current)}function Fa(e){U(Aa),La===e&&(La=null),U(za)}var za=z(0);function Ua(e){for(var t=e;null!==t;){if(13===t.tag){var n=t.memoizedState;if(null!==n&&(null===(n=n.dehydrated)||jd(n)||Ad(n)))return t}else if(19!==t.tag||"forwards"!==t.memoizedProps.revealOrder&&"backwards"!==t.memoizedProps.revealOrder&&"unstable_legacy-backwards"!==t.memoizedProps.revealOrder&&"together"!==t.memoizedProps.revealOrder){if(null!==t.child){t.child.return=t,t=t.child;continue}}else if(0!==(128&t.flags))return t;if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Va=0,Ba=null,qa=null,Ha=null,Wa=!1,Ja=!1,$a=!1,Qa=0,Ga=0,Ka=null,Ya=0;function Xa(){throw Error(o(321))}function Za(e,t){if(null===t)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Xn(e[n],t[n]))return!1;return!0}function eo(e,t,n,r,i,a){return Va=a,Ba=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,I.H=null===e||null===e.memoizedState?ms:gs,$a=!1,a=n(r,i),$a=!1,Ja&&(a=no(t,n,r,i)),to(e),a}function to(e){I.H=vs;var t=null!==qa&&null!==qa.next;if(Va=0,Ha=qa=Ba=null,Wa=!1,Ga=0,Ka=null,t)throw Error(o(300));null===e||Ls||null!==(e=e.dependencies)&&Pi(e)&&(Ls=!0)}function no(e,t,n,r){Ba=e;var i=0;do{if(Ja&&(Ka=null),Ga=0,Ja=!1,25<=i)throw Error(o(301));if(i+=1,Ha=qa=null,null!=e.updateQueue){var a=e.updateQueue;a.lastEffect=null,a.events=null,a.stores=null,null!=a.memoCache&&(a.memoCache.index=0)}I.H=ys,a=t(n,r)}while(Ja);return a}function ro(){var e=I.H,t=e.useState()[0];return t="function"===typeof t.then?uo(t):t,e=e.useState()[0],(null!==qa?qa.memoizedState:null)!==e&&(Ba.flags|=1024),t}function io(){var e=0!==Qa;return Qa=0,e}function ao(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function oo(e){if(Wa){for(e=e.memoizedState;null!==e;){var t=e.queue;null!==t&&(t.pending=null),e=e.next}Wa=!1}Va=0,Ha=qa=Ba=null,Ja=!1,Ga=Qa=0,Ka=null}function so(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return null===Ha?Ba.memoizedState=Ha=e:Ha=Ha.next=e,Ha}function lo(){if(null===qa){var e=Ba.alternate;e=null!==e?e.memoizedState:null}else e=qa.next;var t=null===Ha?Ba.memoizedState:Ha.next;if(null!==t)Ha=t,qa=e;else{if(null===e){if(null===Ba.alternate)throw Error(o(467));throw Error(o(310))}e={memoizedState:(qa=e).memoizedState,baseState:qa.baseState,baseQueue:qa.baseQueue,queue:qa.queue,next:null},null===Ha?Ba.memoizedState=Ha=e:Ha=Ha.next=e}return Ha}function uo(e){var t=Ga;return Ga+=1,null===Ka&&(Ka=[]),e=na(Ka,e,t),t=Ba,null===(null===Ha?t.memoizedState:Ha.next)&&(t=t.alternate,I.H=null===t||null===t.memoizedState?ms:gs),e}function co(e){if(null!==e&&"object"===typeof e){if("function"===typeof e.then)return uo(e);if(e.$$typeof===w)return Ai(e)}throw Error(o(438,String(e)))}function fo(e){var t=null,n=Ba.updateQueue;if(null!==n&&(t=n.memoCache),null==t){var r=Ba.alternate;null!==r&&(null!==(r=r.updateQueue)&&(null!=(r=r.memoCache)&&(t={data:r.data.map((function(e){return e.slice()})),index:0})))}if(null==t&&(t={data:[],index:0}),null===n&&(n={lastEffect:null,events:null,stores:null,memoCache:null},Ba.updateQueue=n),n.memoCache=t,void 0===(n=t.data[t.index]))for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=M;return t.index++,n}function po(e,t){return"function"===typeof t?t(e):t}function ho(e){return vo(lo(),qa,e)}function vo(e,t,n){var r=e.queue;if(null===r)throw Error(o(311));r.lastRenderedReducer=n;var i=e.baseQueue,a=r.pending;if(null!==a){if(null!==i){var s=i.next;i.next=a.next,a.next=s}t.baseQueue=i=a,r.pending=null}if(a=e.baseState,null===i)e.memoizedState=a;else{var l=s=null,u=null,c=t=i.next,d=!1;do{var f=-536870913&c.lane;if(f!==c.lane?(mu&f)===f:(Va&f)===f){var p=c.revertLane;if(0===p)null!==u&&(u=u.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),f===qi&&(d=!0);else{if((Va&p)===p){c=c.next,p===qi&&(d=!0);continue}f={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(l=u=f,s=a):u=u.next=f,Ba.lanes|=p,Cu|=p}f=c.action,$a&&n(a,f),a=c.hasEagerState?c.eagerState:n(a,f)}else p={lane:f,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},null===u?(l=u=p,s=a):u=u.next=p,Ba.lanes|=f,Cu|=f;c=c.next}while(null!==c&&c!==t);if(null===u?s=a:u.next=l,!Xn(a,e.memoizedState)&&(Ls=!0,d&&null!==(n=Hi)))throw n;e.memoizedState=a,e.baseState=s,e.baseQueue=u,r.lastRenderedState=a}return null===i&&(r.lanes=0),[e.memoizedState,r.dispatch]}function mo(e){var t=lo(),n=t.queue;if(null===n)throw Error(o(311));n.lastRenderedReducer=e;var r=n.dispatch,i=n.pending,a=t.memoizedState;if(null!==i){n.pending=null;var s=i=i.next;do{a=e(a,s.action),s=s.next}while(s!==i);Xn(a,t.memoizedState)||(Ls=!0),t.memoizedState=a,null===t.baseQueue&&(t.baseState=a),n.lastRenderedState=a}return[a,r]}function go(e,t,n){var r=Ba,i=lo(),a=di;if(a){if(void 0===n)throw Error(o(407));n=n()}else n=t();var s=!Xn((qa||i).memoizedState,n);if(s&&(i.memoizedState=n,Ls=!0),i=i.queue,Bo(ko.bind(null,r,i,e),[e]),i.getSnapshot!==t||s||null!==Ha&&1&Ha.memoizedState.tag){if(r.flags|=2048,Ro(9,{destroy:void 0},bo.bind(null,r,i,n,t),null),null===hu)throw Error(o(349));a||0!==(127&Va)||yo(r,t,n)}return n}function yo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},null===(t=Ba.updateQueue)?(t={lastEffect:null,events:null,stores:null,memoCache:null},Ba.updateQueue=t,t.stores=[e]):null===(n=t.stores)?t.stores=[e]:n.push(e)}function bo(e,t,n,r){t.value=n,t.getSnapshot=r,wo(t)&&So(e)}function ko(e,t,n){return n((function(){wo(t)&&So(e)}))}function wo(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Xn(e,n)}catch(r){return!0}}function So(e){var t=Lr(e,2);null!==t&&Qu(t,e,2)}function _o(e){var t=so();if("function"===typeof e){var n=e;if(e=n(),$a){be(!0);try{n()}finally{be(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:po,lastRenderedState:e},t}function Co(e,t,n,r){return e.baseState=n,vo(e,qa,"function"===typeof r?r:po)}function Eo(e,t,n,r,i){if(fs(e))throw Error(o(485));if(null!==(e=t.action)){var a={payload:i,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(e){a.listeners.push(e)}};null!==I.T?n(!0):a.isTransition=!1,r(a),null===(n=t.pending)?(a.next=t.pending=a,xo(t,a)):(a.next=n.next,t.pending=n.next=a)}}function xo(e,t){var n=t.action,r=t.payload,i=e.state;if(t.isTransition){var a=I.T,o={};I.T=o;try{var s=n(i,r),l=I.S;null!==l&&l(o,s),To(e,t,s)}catch(u){Oo(e,t,u)}finally{null!==a&&null!==o.types&&(a.types=o.types),I.T=a}}else try{To(e,t,a=n(i,r))}catch(c){Oo(e,t,c)}}function To(e,t,n){null!==n&&"object"===typeof n&&"function"===typeof n.then?n.then((function(n){Mo(e,t,n)}),(function(n){return Oo(e,t,n)})):Mo(e,t,n)}function Mo(e,t,n){t.status="fulfilled",t.value=n,Po(t),e.state=n,null!==(t=e.pending)&&((n=t.next)===t?e.pending=null:(n=n.next,t.next=n,xo(e,n)))}function Oo(e,t,n){var r=e.pending;if(e.pending=null,null!==r){r=r.next;do{t.status="rejected",t.reason=n,Po(t),t=t.next}while(t!==r)}e.action=null}function Po(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function jo(e,t){return t}function Ao(e,t){if(di){var n=hu.formState;if(null!==n){e:{var r=Ba;if(di){if(ci){t:{for(var i=ci,a=pi;8!==i.nodeType;){if(!a){i=null;break t}if(null===(i=Ld(i.nextSibling))){i=null;break t}}i="F!"===(a=i.data)||"F"===a?i:null}if(i){ci=Ld(i.nextSibling),r="F!"===i.data;break e}}vi(r)}r=!1}r&&(t=n[0])}}return(n=so()).memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:jo,lastRenderedState:t},n.queue=r,n=us.bind(null,Ba,r),r.dispatch=n,r=_o(!1),a=ds.bind(null,Ba,!1,r.queue),i={state:t,dispatch:null,action:e,pending:null},(r=so()).queue=i,n=Eo.bind(null,Ba,i,a,n),i.dispatch=n,r.memoizedState=e,[t,n,!1]}function Lo(e){return Io(lo(),qa,e)}function Io(e,t,n){if(t=vo(e,t,jo)[0],e=ho(po)[0],"object"===typeof t&&null!==t&&"function"===typeof t.then)try{var r=uo(t)}catch(o){if(o===Yi)throw Zi;throw o}else r=t;var i=(t=lo()).queue,a=i.dispatch;return n!==t.memoizedState&&(Ba.flags|=2048,Ro(9,{destroy:void 0},No.bind(null,i,n),null)),[r,a,e]}function No(e,t){e.action=t}function Do(e){var t=lo(),n=qa;if(null!==n)return Io(t,n,e);lo(),t=t.memoizedState;var r=(n=lo()).queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ro(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},null===(t=Ba.updateQueue)&&(t={lastEffect:null,events:null,stores:null,memoCache:null},Ba.updateQueue=t),null===(n=t.lastEffect)?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function Fo(){return lo().memoizedState}function zo(e,t,n,r){var i=so();Ba.flags|=e,i.memoizedState=Ro(1|t,{destroy:void 0},n,void 0===r?null:r)}function Uo(e,t,n,r){var i=lo();r=void 0===r?null:r;var a=i.memoizedState.inst;null!==qa&&null!==r&&Za(r,qa.memoizedState.deps)?i.memoizedState=Ro(t,a,n,r):(Ba.flags|=e,i.memoizedState=Ro(1|t,a,n,r))}function Vo(e,t){zo(8390656,8,e,t)}function Bo(e,t){Uo(2048,8,e,t)}function qo(e){var t=lo().memoizedState;return function(e){Ba.flags|=4;var t=Ba.updateQueue;if(null===t)t={lastEffect:null,events:null,stores:null,memoCache:null},Ba.updateQueue=t,t.events=[e];else{var n=t.events;null===n?t.events=[e]:n.push(e)}}({ref:t,nextImpl:e}),function(){if(0!==(2&pu))throw Error(o(440));return t.impl.apply(void 0,arguments)}}function Ho(e,t){return Uo(4,2,e,t)}function Wo(e,t){return Uo(4,4,e,t)}function Jo(e,t){if("function"===typeof t){e=e();var n=t(e);return function(){"function"===typeof n?n():t(null)}}if(null!==t&&void 0!==t)return e=e(),t.current=e,function(){t.current=null}}
2function $o(e,t,n){n=null!==n&&void 0!==n?n.concat([e]):null,Uo(4,4,Jo.bind(null,t,e),n)}function Qo(){}function Go(e,t){var n=lo();t=void 0===t?null:t;var r=n.memoizedState;return null!==t&&Za(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function Ko(e,t){var n=lo();t=void 0===t?null:t;var r=n.memoizedState;if(null!==t&&Za(t,r[1]))return r[0];if(r=e(),$a){be(!0);try{e()}finally{be(!1)}}return n.memoizedState=[r,t],r}function Yo(e,t,n){return void 0===n||0!==(1073741824&Va)&&0===(261930&mu)?e.memoizedState=t:(e.memoizedState=n,e=$u(),Ba.lanes|=e,Cu|=e,n)}function Xo(e,t,n,r){return Xn(n,t)?n:null!==Ta.current?(e=Yo(e,n,r),Xn(e,t)||(Ls=!0),e):0===(42&Va)||0!==(1073741824&Va)&&0===(261930&mu)?(Ls=!0,e.memoizedState=n):(e=$u(),Ba.lanes|=e,Cu|=e,t)}function Zo(e,t,n,r,i){var a=N.p;N.p=0!==a&&8>a?a:8;var o=I.T,s={};I.T=s,ds(e,!1,t,n);try{var l=i(),u=I.S;if(null!==u&&u(s,l),null!==l&&"object"===typeof l&&"function"===typeof l.then)cs(e,t,function(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(e){n.push(e)}};return e.then((function(){r.status="fulfilled",r.value=t;for(var e=0;e<n.length;e++)(0,n[e])(t)}),(function(e){for(r.status="rejected",r.reason=e,e=0;e<n.length;e++)(0,n[e])(void 0)})),r}(l,r),Ju());else cs(e,t,r,Ju())}catch(c){cs(e,t,{then:function(){},status:"rejected",reason:c},Ju())}finally{N.p=a,null!==o&&null!==s.types&&(o.types=s.types),I.T=o}}function es(){}function ts(e,t,n,r){if(5!==e.tag)throw Error(o(476));var i=ns(e).queue;Zo(e,i,t,D,null===n?es:function(){return rs(e),n(r)})}function ns(e){var t=e.memoizedState;if(null!==t)return t;var n={};return(t={memoizedState:D,baseState:D,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:po,lastRenderedState:D},next:null}).next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:po,lastRenderedState:n},next:null},e.memoizedState=t,null!==(e=e.alternate)&&(e.memoizedState=t),t}function rs(e){var t=ns(e);null===t.next&&(t=e.alternate.memoizedState),cs(e,t.next.queue,{},Ju())}function is(){return Ai(df)}function as(){return lo().memoizedState}function os(){return lo().memoizedState}function ss(e){for(var t=e.return;null!==t;){switch(t.tag){case 24:case 3:var n=Ju(),r=ba(t,e=ya(n),n);return null!==r&&(Qu(r,t,n),ka(r,t,n)),t={cache:zi()},void(e.payload=t)}t=t.return}}function ls(e,t,n){var r=Ju();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},fs(e)?ps(t,n):null!==(n=Ar(e,t,n,r))&&(Qu(n,e,r),hs(n,t,r))}function us(e,t,n){cs(e,t,n,Ju())}function cs(e,t,n,r){var i={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(fs(e))ps(t,i);else{var a=e.alternate;if(0===e.lanes&&(null===a||0===a.lanes)&&null!==(a=t.lastRenderedReducer))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Xn(s,o))return jr(e,t,i,0),null===hu&&Pr(),!1}catch(l){}if(null!==(n=Ar(e,t,i,r)))return Qu(n,e,r),hs(n,t,r),!0}return!1}function ds(e,t,n,r){if(r={lane:2,revertLane:Bc(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},fs(e)){if(t)throw Error(o(479))}else null!==(t=Ar(e,n,r,2))&&Qu(t,e,2)}function fs(e){var t=e.alternate;return e===Ba||null!==t&&t===Ba}function ps(e,t){Ja=Wa=!0;var n=e.pending;null===n?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function hs(e,t,n){if(0!==(4194048&n)){var r=t.lanes;n|=r&=e.pendingLanes,t.lanes=n,Ie(e,n)}}var vs={readContext:Ai,use:co,useCallback:Xa,useContext:Xa,useEffect:Xa,useImperativeHandle:Xa,useLayoutEffect:Xa,useInsertionEffect:Xa,useMemo:Xa,useReducer:Xa,useRef:Xa,useState:Xa,useDebugValue:Xa,useDeferredValue:Xa,useTransition:Xa,useSyncExternalStore:Xa,useId:Xa,useHostTransitionStatus:Xa,useFormState:Xa,useActionState:Xa,useOptimistic:Xa,useMemoCache:Xa,useCacheRefresh:Xa};vs.useEffectEvent=Xa;var ms={readContext:Ai,use:co,useCallback:function(e,t){return so().memoizedState=[e,void 0===t?null:t],e},useContext:Ai,useEffect:Vo,useImperativeHandle:function(e,t,n){n=null!==n&&void 0!==n?n.concat([e]):null,zo(4194308,4,Jo.bind(null,t,e),n)},useLayoutEffect:function(e,t){return zo(4194308,4,e,t)},useInsertionEffect:function(e,t){zo(4,2,e,t)},useMemo:function(e,t){var n=so();t=void 0===t?null:t;var r=e();if($a){be(!0);try{e()}finally{be(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=so();if(void 0!==n){var i=n(t);if($a){be(!0);try{n(t)}finally{be(!1)}}}else i=t;return r.memoizedState=r.baseState=i,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:i},r.queue=e,e=e.dispatch=ls.bind(null,Ba,e),[r.memoizedState,e]}
vendor: 7,942 bytes, line 2
2,useRef:function(e){return e={current:e},so().memoizedState=e},useState:function(e){var t=(e=_o(e)).queue,n=us.bind(null,Ba,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:Qo,useDeferredValue:function(e,t){return Yo(so(),e,t)},useTransition:function(){var e=_o(!1);return e=Zo.bind(null,Ba,e.queue,!0,!1),so().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=Ba,i=so();if(di){if(void 0===n)throw Error(o(407));n=n()}else{if(n=t(),null===hu)throw Error(o(349));0!==(127&mu)||yo(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,Vo(ko.bind(null,r,a,e),[e]),r.flags|=2048,Ro(9,{destroy:void 0},bo.bind(null,r,a,n,t),null),n},useId:function(){var e=so(),t=hu.identifierPrefix;if(di){var n=ri;t="_"+t+"R_"+(n=(ni&~(1<<32-ke(ni)-1)).toString(32)+n),0<(n=Qa++)&&(t+="H"+n.toString(32)),t+="_"}else t="_"+t+"r_"+(n=Ya++).toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:is,useFormState:Ao,useActionState:Ao,useOptimistic:function(e){var t=so();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=ds.bind(null,Ba,!0,n),n.dispatch=t,[e,t]},useMemoCache:fo,useCacheRefresh:function(){return so().memoizedState=ss.bind(null,Ba)},useEffectEvent:function(e){var t=so(),n={impl:e};return t.memoizedState=n,function(){if(0!==(2&pu))throw Error(o(440));return n.impl.apply(void 0,arguments)}}},gs={readContext:Ai,use:co,useCallback:Go,useContext:Ai,useEffect:Bo,useImperativeHandle:$o,useInsertionEffect:Ho,useLayoutEffect:Wo,useMemo:Ko,useReducer:ho,useRef:Fo,useState:function(){return ho(po)},useDebugValue:Qo,useDeferredValue:function(e,t){return Xo(lo(),qa.memoizedState,e,t)},useTransition:function(){var e=ho(po)[0],t=lo().memoizedState;return["boolean"===typeof e?e:uo(e),t]},useSyncExternalStore:go,useId:as,useHostTransitionStatus:is,useFormState:Lo,useActionState:Lo,useOptimistic:function(e,t){return Co(lo(),0,e,t)},useMemoCache:fo,useCacheRefresh:os};gs.useEffectEvent=qo;var ys={readContext:Ai,use:co,useCallback:Go,useContext:Ai,useEffect:Bo,useImperativeHandle:$o,useInsertionEffect:Ho,useLayoutEffect:Wo,useMemo:Ko,useReducer:mo,useRef:Fo,useState:function(){return mo(po)},useDebugValue:Qo,useDeferredValue:function(e,t){var n=lo();return null===qa?Yo(n,e,t):Xo(n,qa.memoizedState,e,t)},useTransition:function(){var e=mo(po)[0],t=lo().memoizedState;return["boolean"===typeof e?e:uo(e),t]},useSyncExternalStore:go,useId:as,useHostTransitionStatus:is,useFormState:Do,useActionState:Do,useOptimistic:function(e,t){var n=lo();return null!==qa?Co(n,0,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:fo,useCacheRefresh:os};function bs(e,t,n,r){n=null===(n=n(r,t=e.memoizedState))||void 0===n?t:p({},t,n),e.memoizedState=n,0===e.lanes&&(e.updateQueue.baseState=n)}ys.useEffectEvent=qo;var ks={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Ju(),i=ya(r);i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=ba(e,i,r))&&(Qu(t,e,r),ka(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Ju(),i=ya(r);i.tag=1,i.payload=t,void 0!==n&&null!==n&&(i.callback=n),null!==(t=ba(e,i,r))&&(Qu(t,e,r),ka(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Ju(),r=ya(n);r.tag=2,void 0!==t&&null!==t&&(r.callback=t),null!==(t=ba(e,r,n))&&(Qu(t,e,n),ka(t,e,n))}};function ws(e,t,n,r,i,a,o){return"function"===typeof(e=e.stateNode).shouldComponentUpdate?e.shouldComponentUpdate(r,a,o):!t.prototype||!t.prototype.isPureReactComponent||(!Zn(n,r)||!Zn(i,a))}function Ss(e,t,n,r){e=t.state,"function"===typeof t.componentWillReceiveProps&&t.componentWillReceiveProps(n,r),"function"===typeof t.UNSAFE_componentWillReceiveProps&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ks.enqueueReplaceState(t,t.state,null)}function _s(e,t){var n=t;if("ref"in t)for(var r in n={},t)"ref"!==r&&(n[r]=t[r]);if(e=e.defaultProps)for(var i in n===t&&(n=p({},n)),e)void 0===n[i]&&(n[i]=e[i]);return n}function Cs(e){xr(e)}function Es(e){console.error(e)}function xs(e){xr(e)}function Ts(e,t){try{(0,e.onUncaughtError)(t.value,{componentStack:t.stack})}catch(n){setTimeout((function(){throw n}))}}function Ms(e,t,n){try{(0,e.onCaughtError)(n.value,{componentStack:n.stack,errorBoundary:1===t.tag?t.stateNode:null})}catch(r){setTimeout((function(){throw r}))}}function Os(e,t,n){return(n=ya(n)).tag=3,n.payload={element:null},n.callback=function(){Ts(e,t)},n}function Ps(e){return(e=ya(e)).tag=3,e}function js(e,t,n,r){var i=n.type.getDerivedStateFromError;if("function"===typeof i){var a=r.value;e.payload=function(){return i(a)},e.callback=function(){Ms(t,n,r)}}var o=n.stateNode;null!==o&&"function"===typeof o.componentDidCatch&&(e.callback=function(){Ms(t,n,r),"function"!==typeof i&&(null===Du?Du=new Set([this]):Du.add(this));var e=r.stack;this.componentDidCatch(r.value,{componentStack:null!==e?e:""})})}var As=Error(o(461)),Ls=!1;function Is(e,t,n,r){t.child=null===e?ha(t,null,n,r):pa(t,e.child,n,r)}function Ns(e,t,n,r,i){n=n.render;var a=t.ref;if("ref"in r){var o={};for(var s in r)"ref"!==s&&(o[s]=r[s])}else o=r;return ji(t),r=eo(e,t,n,o,a,i),s=io(),null===e||Ls?(di&&s&&oi(t),t.flags|=1,Is(e,t,r,i),t.child):(ao(e,t,i),il(e,t,i))}function Ds(e,t,n,r,i){if(null===e){var a=n.type;return"function"!==typeof a||zr(a)||void 0!==a.defaultProps||null!==n.compare?((e=Br(n.type,null,r,t,t.mode,i)).ref=t.ref,e.return=t,t.child=e):(t.tag=15,t.type=a,Rs(e,t,a,r,i))}if(a=e.child,!al(e,i)){var o=a.memoizedProps;if((n=null!==(n=n.compare)?n:Zn)(o,r)&&e.ref===t.ref)return il(e,t,i)}return t.flags|=1,(e=Ur(a,r)).ref=t.ref,e.return=t,t.child=e}function Rs(e,t,n,r,i){if(null!==e){var a=e.memoizedProps;if(Zn(a,r)&&e.ref===t.ref){if(Ls=!1,t.pendingProps=r=a,!al(e,i))return t.lanes=e.lanes,il(e,t,i);0!==(131072&e.flags)&&(Ls=!0)}}return Hs(e,t,n,r,i)}function Fs(e,t,n,r){var i=r.children,a=null!==e?e.memoizedState:null;if(null===e&&null===t.stateNode&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),"hidden"===r.mode){if(0!==(128&t.flags)){if(a=null!==a?a.baseLanes|n:n,null!==e){for(r=t.child=e.child,i=0;null!==r;)i=i|r.lanes|r.childLanes,r=r.sibling;r=i&~a}else r=0,t.child=null;return Us(e,t,a,n,r)}if(0===(536870912&n))return r=t.lanes=536870912,Us(e,t,null!==a?a.baseLanes|n:n,n,r);t.memoizedState={baseLanes:0,cachePool:null},null!==e&&Gi(0,null!==a?a.cachePool:null),null!==a?Oa(t,a):Pa(),Da(t)}else null!==a?(Gi(0,a.cachePool),Oa(t,a),Ra(),t.memoizedState=null):(null!==e&&Gi(0,null),Pa(),Ra());return Is(e,t,i,n),t.child}function zs(e,t){return null!==e&&22===e.tag||null!==t.stateNode||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function Us(e,t,n,r,i){var a=Qi();return a=null===a?null:{parent:Fi._currentValue,pool:a},t.memoizedState={baseLanes:n,cachePool:a},null!==e&&Gi(0,null),Pa(),Da(t),null!==e&&Oi(e,t,r,!0),t.childLanes=i,null}function Vs(e,t){return(t=Zs({mode:t.mode,children:t.children},e.mode)).ref=e.ref,e.child=t,t.return=e,t}function Bs(e,t,n){return pa(t,e.child,null,n),(e=Vs(t,t.pendingProps)).flags|=2,Fa(t),t.memoizedState=null,e}function qs(e,t){var n=t.ref;if(null===n)null!==e&&null!==e.ref&&(t.flags|=4194816);else{if("function"!==typeof n&&"object"!==typeof n)throw Error(o(284));null!==e&&e.ref===n||(t.flags|=4194816)}}function Hs(e,t,n,r,i){return ji(t),n=eo(e,t,n,r,void 0,i),r=io(),null===e||Ls?(di&&r&&oi(t),t.flags|=1,Is(e,t,n,i),t.child):(ao(e,t,i),il(e,t,i))}function Ws(e,t,n,r,i,a){return ji(t),t.updateQueue=null,n=no(t,r,n,i),to(e),r=io(),null===e||Ls?(di&&r&&oi(t),t.flags|=1,Is(e,t,n,a),t.child):(ao(e,t,a),il(e,t,a))}function Js(e,t,n,r,i){if(ji(t),null===t.stateNode){var a=Dr,o=n.contextType;"object"===typeof o&&null!==o&&(a=Ai(o)),a=new n(r,a),t.memoizedState=null!==a.state&&void 0!==a.state?a.state:null,a.updater=ks,t.stateNode=a,a._reactInternals=t,(a=t.stateNode).props=r,a.state=t.memoizedState,a.refs={}
2,ma(t),o=n.contextType,a.context="object"===typeof o&&null!==o?Ai(o):Dr,a.state=t.memoizedState,"function"===typeof(o=n.getDerivedStateFromProps)&&(bs(t,n,o,r),a.state=t.memoizedState),"function"===typeof n.getDerivedStateFromProps||"function"===typeof a.getSnapshotBeforeUpdate||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||(o=a.state,"function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount(),o!==a.state&&ks.enqueueReplaceState(a,a.state,null),Ca(t,r,a,i),_a(),a.state=t.memoizedState),"function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!0}else if(null===e){a=t.stateNode;var s=t.memoizedProps,l=_s(n,s);a.props=l;var u=a.context,c=n.contextType;o=Dr,"object"===typeof c&&null!==c&&(o=Ai(c));var d=n.getDerivedStateFromProps;c="function"===typeof d||"function"===typeof a.getSnapshotBeforeUpdate,s=t.pendingProps!==s,c||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(s||u!==o)&&Ss(t,a,r,o),va=!1;var f=t.memoizedState;a.state=f,Ca(t,r,a,i),_a(),u=t.memoizedState,s||f!==u||va?("function"===typeof d&&(bs(t,n,d,r),u=t.memoizedState),(l=va||ws(t,n,l,r,f,u,o))?(c||"function"!==typeof a.UNSAFE_componentWillMount&&"function"!==typeof a.componentWillMount||("function"===typeof a.componentWillMount&&a.componentWillMount(),"function"===typeof a.UNSAFE_componentWillMount&&a.UNSAFE_componentWillMount()),"function"===typeof a.componentDidMount&&(t.flags|=4194308)):("function"===typeof a.componentDidMount&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=u),a.props=r,a.state=u,a.context=o,r=l):("function"===typeof a.componentDidMount&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,ga(e,t),c=_s(n,o=t.memoizedProps),a.props=c,d=t.pendingProps,f=a.context,u=n.contextType,l=Dr,"object"===typeof u&&null!==u&&(l=Ai(u)),(u="function"===typeof(s=n.getDerivedStateFromProps)||"function"===typeof a.getSnapshotBeforeUpdate)||"function"!==typeof a.UNSAFE_componentWillReceiveProps&&"function"!==typeof a.componentWillReceiveProps||(o!==d||f!==l)&&Ss(t,a,r,l),va=!1,f=t.memoizedState,a.state=f,Ca(t,r,a,i),_a();var p=t.memoizedState;o!==d||f!==p||va||null!==e&&null!==e.dependencies&&Pi(e.dependencies)?("function"===typeof s&&(bs(t,n,s,r),p=t.memoizedState),(c=va||ws(t,n,c,r,f,p,l)||null!==e&&null!==e.dependencies&&Pi(e.dependencies))?(u||"function"!==typeof a.UNSAFE_componentWillUpdate&&"function"!==typeof a.componentWillUpdate||("function"===typeof a.componentWillUpdate&&a.componentWillUpdate(r,p,l),"function"===typeof a.UNSAFE_componentWillUpdate&&a.UNSAFE_componentWillUpdate(r,p,l)),"function"===typeof a.componentDidUpdate&&(t.flags|=4),"function"===typeof a.getSnapshotBeforeUpdate&&(t.flags|=1024)):("function"!==typeof a.componentDidUpdate||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=c):("function"!==typeof a.componentDidUpdate||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),"function"!==typeof a.getSnapshotBeforeUpdate||o===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return a=r,qs(e,t),r=0!==(128&t.flags),a||r?(a=t.stateNode,n=r&&"function"!==typeof n.getDerivedStateFromError?null:a.render(),t.flags|=1,null!==e&&r?(t.child=pa(t,e.child,null,i),t.child=pa(t,null,n,i)):Is(e,t,n,i),t.memoizedState=a.state,e=t.child):e=il(e,t,i),e}function $s(e,t,n,r){return bi(),t.flags|=256,Is(e,t,n,r),t.child}var Qs={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Gs(e){return{baseLanes:e,cachePool:Ki()}}function Ks(e,t,n){return e=null!==e?e.childLanes&~n:0,t&&(e|=Tu),e}function Ys(e,t,n){var r,i=t.pendingProps,a=!1,s=0!==(128&t.flags);if((r=s)||(r=(null===e||null!==e.memoizedState)&&0!==(2&za.current)),r&&(a=!0,t.flags&=-129),r=0!==(32&t.flags),t.flags&=-33,null===e){if(di){if(a?Ia(t):Ra(),(e=ci)?null!==(e=null!==(e=Pd(e,pi))&&"&"!==e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ti?{id:ni,overflow:ri}:null,retryLane:536870912,hydrationErrors:null},(n=Wr(e)).return=t,t.child=n,ui=t,ci=null):e=null,null===e)throw vi(t);return Ad(e)?t.lanes=32:t.lanes=536870912,null}var l=i.children;return i=i.fallback,a?(Ra(),l=Zs({mode:"hidden",children:l},a=t.mode),i=qr(i,a,n,null),l.return=t,i.return=t,l.sibling=i,t.child=l,(i=t.child).memoizedState=Gs(n),i.childLanes=Ks(e,r,n),t.memoizedState=Qs,zs(null,i)):(Ia(t),Xs(t,l))}var u=e.memoizedState;if(null!==u&&null!==(l=u.dehydrated)){if(s)256&t.flags?(Ia(t),t.flags&=-257,t=el(e,t,n)):null!==t.memoizedState?(Ra(),t.child=e.child,t.flags|=128,t=null):(Ra(),l=i.fallback,a=t.mode,i=Zs({mode:"visible",children:i.children},a),(l=qr(l,a,n,null)).flags|=2,i.return=t,l.return=t,i.sibling=l,t.child=i,pa(t,e.child,null,n),(i=t.child).memoizedState=Gs(n),i.childLanes=Ks(e,r,n),t.memoizedState=Qs,t=zs(null,i));else if(Ia(t),Ad(l)){if(r=l.nextSibling&&l.nextSibling.dataset)var c=r.dgst;
vendor: 4,204 bytes, line 2
2r=c,(i=Error(o(419))).stack="",i.digest=r,wi({value:i,source:null,stack:null}),t=el(e,t,n)}else if(Ls||Oi(e,t,n,!1),r=0!==(n&e.childLanes),Ls||r){if(null!==(r=hu)&&(0!==(i=Ne(r,n))&&i!==u.retryLane))throw u.retryLane=i,Lr(e,i),Qu(r,e,i),As;jd(l)||oc(),t=el(e,t,n)}else jd(l)?(t.flags|=192,t.child=e.child,t=null):(e=u.treeContext,ci=Ld(l.nextSibling),ui=t,di=!0,fi=null,pi=!1,null!==e&&li(t,e),(t=Xs(t,i.children)).flags|=4096);return t}return a?(Ra(),l=i.fallback,a=t.mode,c=(u=e.child).sibling,(i=Ur(u,{mode:"hidden",children:i.children})).subtreeFlags=65011712&u.subtreeFlags,null!==c?l=Ur(c,l):(l=qr(l,a,n,null)).flags|=2,l.return=t,i.return=t,i.sibling=l,t.child=i,zs(null,i),i=t.child,null===(l=e.child.memoizedState)?l=Gs(n):(null!==(a=l.cachePool)?(u=Fi._currentValue,a=a.parent!==u?{parent:u,pool:u}:a):a=Ki(),l={baseLanes:l.baseLanes|n,cachePool:a}),i.memoizedState=l,i.childLanes=Ks(e,r,n),t.memoizedState=Qs,zs(e.child,i)):(Ia(t),e=(n=e.child).sibling,(n=Ur(n,{mode:"visible",children:i.children})).return=t,n.sibling=null,null!==e&&(null===(r=t.deletions)?(t.deletions=[e],t.flags|=16):r.push(e)),t.child=n,t.memoizedState=null,n)}function Xs(e,t){return(t=Zs({mode:"visible",children:t},e.mode)).return=e,e.child=t}function Zs(e,t){return(e=Fr(22,e,null,t)).lanes=0,e}function el(e,t,n){return pa(t,e.child,null,n),(e=Xs(t,t.pendingProps.children)).flags|=2,t.memoizedState=null,e}function tl(e,t,n){e.lanes|=t;var r=e.alternate;null!==r&&(r.lanes|=t),Ti(e.return,t,n)}function nl(e,t,n,r,i,a){var o=e.memoizedState;null===o?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i,treeForkCount:a}:(o.isBackwards=t,o.rendering=null,o.renderingStartTime=0,o.last=r,o.tail=n,o.tailMode=i,o.treeForkCount=a)}function rl(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;r=r.children;var o=za.current,s=0!==(2&o);if(s?(o=1&o|2,t.flags|=128):o&=1,V(za,o),Is(e,t,r,n),r=di?Xr:0,!s&&null!==e&&0!==(128&e.flags))e:for(e=t.child;null!==e;){if(13===e.tag)null!==e.memoizedState&&tl(e,n,t);else if(19===e.tag)tl(e,n,t);else if(null!==e.child){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;null===e.sibling;){if(null===e.return||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(i){case"forwards":for(n=t.child,i=null;null!==n;)null!==(e=n.alternate)&&null===Ua(e)&&(i=n),n=n.sibling;null===(n=i)?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),nl(t,!1,i,n,a,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,i=t.child,t.child=null;null!==i;){if(null!==(e=i.alternate)&&null===Ua(e)){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}nl(t,!0,n,null,a,r);break;case"together":nl(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function il(e,t,n){if(null!==e&&(t.dependencies=e.dependencies),Cu|=t.lanes,0===(n&t.childLanes)){if(null===e)return null;if(Oi(e,t,n,!1),0===(n&t.childLanes))return null}if(null!==e&&t.child!==e.child)throw Error(o(153));if(null!==t.child){for(n=Ur(e=t.child,e.pendingProps),t.child=n,n.return=t;null!==e.sibling;)e=e.sibling,(n=n.sibling=Ur(e,e.pendingProps)).return=t;n.sibling=null}return t.child}function al(e,t){return 0!==(e.lanes&t)||!(null===(e=e.dependencies)||!Pi(e))}function ol(e,t,n){if(null!==e)if(e.memoizedProps!==t.pendingProps)Ls=!0;else{if(!al(e,n)&&0===(128&t.flags))return Ls=!1,function(e,t,n){switch(t.tag){case 3:Q(t,t.stateNode.containerInfo),Ei(0,Fi,e.memoizedState.cache),bi();break;case 27:case 5:K(t);break;case 4:Q(t,t.stateNode.containerInfo);break;case 10:Ei(0,t.type,t.memoizedProps.value);break;case 31:if(null!==t.memoizedState)return t.flags|=128,Na(t),null;break;case 13:var r=t.memoizedState;if(null!==r)return null!==r.dehydrated?(Ia(t),t.flags|=128,null):0!==(n&t.child.childLanes)?Ys(e,t,n):(Ia(t),null!==(e=il(e,t,n))?e.sibling:null);Ia(t);break;case 19:var i=0!==(128&e.flags);if((r=0!==(n&t.childLanes))||(Oi(e,t,n,!1),r=0!==(n&t.childLanes)),i){if(r)return rl(e,t,n);t.flags|=128}if(null!==(i=t.memoizedState)&&(i.rendering=null,i.tail=null,i.lastEffect=null),V(za,za.current),r)break;return null;case 22:return t.lanes=0,Fs(e,t,n,t.pendingProps);case 24:Ei(0,Fi,e.memoizedState.cache)}return il(e,t,n)}
vendor: 4,852 bytes, line 2
2(e,t,n);Ls=0!==(131072&e.flags)}else Ls=!1,di&&0!==(1048576&t.flags)&&ai(t,Xr,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=ra(t.elementType),t.type=e,"function"!==typeof e){if(void 0!==e&&null!==e){var i=e.$$typeof;if(i===S){t.tag=11,t=Ns(null,t,e,r,n);break e}if(i===E){t.tag=14,t=Ds(null,t,e,r,n);break e}}throw t=A(e)||e,Error(o(306,t,""))}zr(e)?(r=_s(e,r),t.tag=1,t=Js(null,t,e,r,n)):(t.tag=0,t=Hs(null,t,e,r,n))}return t;case 0:return Hs(e,t,t.type,t.pendingProps,n);case 1:return Js(e,t,r=t.type,i=_s(r,t.pendingProps),n);case 3:e:{if(Q(t,t.stateNode.containerInfo),null===e)throw Error(o(387));r=t.pendingProps;var a=t.memoizedState;i=a.element,ga(e,t),Ca(t,r,null,n);var s=t.memoizedState;if(r=s.cache,Ei(0,Fi,r),r!==a.cache&&Mi(t,[Fi],n,!0),_a(),r=s.element,a.isDehydrated){if(a={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=a,t.memoizedState=a,256&t.flags){t=$s(e,t,r,n);break e}if(r!==i){wi(i=Qr(Error(o(424)),t)),t=$s(e,t,r,n);break e}if(9===(e=t.stateNode.containerInfo).nodeType)e=e.body;else e="HTML"===e.nodeName?e.ownerDocument.body:e;for(ci=Ld(e.firstChild),ui=t,di=!0,fi=null,pi=!0,n=ha(t,null,r,n),t.child=n;n;)n.flags=-3&n.flags|4096,n=n.sibling}else{if(bi(),r===i){t=il(e,t,n);break e}Is(e,t,r,n)}t=t.child}return t;case 26:return qs(e,t),null===e?(n=Wd(t.type,null,t.pendingProps,null))?t.memoizedState=n:di||(n=t.type,e=t.pendingProps,(r=md(J.current).createElement(n))[Ve]=t,r[Be]=e,fd(r,n,e),et(r),t.stateNode=r):t.memoizedState=Wd(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return K(t),null===e&&di&&(r=t.stateNode=Rd(t.type,t.pendingProps,J.current),ui=t,pi=!0,i=ci,xd(t.type)?(Id=i,ci=Ld(r.firstChild)):ci=i),Is(e,t,t.pendingProps.children,n),qs(e,t),null===e&&(t.flags|=4194304),t.child;case 5:return null===e&&di&&((i=r=ci)&&(null!==(r=function(e,t,n,r){for(;1===e.nodeType;){var i=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&("INPUT"!==e.nodeName||"hidden"!==e.type))break}else if(r){if(!e[Qe])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if("stylesheet"===(a=e.getAttribute("rel"))&&e.hasAttribute("data-precedence"))break;if(a!==i.rel||e.getAttribute("href")!==(null==i.href||""===i.href?null:i.href)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin)||e.getAttribute("title")!==(null==i.title?null:i.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(((a=e.getAttribute("src"))!==(null==i.src?null:i.src)||e.getAttribute("type")!==(null==i.type?null:i.type)||e.getAttribute("crossorigin")!==(null==i.crossOrigin?null:i.crossOrigin))&&a&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else{if("input"!==t||"hidden"!==e.type)return e;var a=null==i.name?null:""+i.name;if("hidden"===i.type&&e.getAttribute("name")===a)return e}if(null===(e=Ld(e.nextSibling)))break}return null}(r,t.type,t.pendingProps,pi))?(t.stateNode=r,ui=t,ci=Ld(r.firstChild),pi=!1,i=!0):i=!1),i||vi(t)),K(t),i=t.type,a=t.pendingProps,s=null!==e?e.memoizedProps:null,r=a.children,bd(i,a)?r=null:null!==s&&bd(i,s)&&(t.flags|=32),null!==t.memoizedState&&(i=eo(e,t,ro,null,null,n),df._currentValue=i),qs(e,t),Is(e,t,r,n),t.child;case 6:return null===e&&di&&((e=n=ci)&&(null!==(n=function(e,t,n){if(""===t)return null;for(;3!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!n)return null;if(null===(e=Ld(e.nextSibling)))return null}return e}(n,t.pendingProps,pi))?(t.stateNode=n,ui=t,ci=null,e=!0):e=!1),e||vi(t)),null;case 13:return Ys(e,t,n);case 4:return Q(t,t.stateNode.containerInfo),r=t.pendingProps,null===e?t.child=pa(t,null,r,n):Is(e,t,r,n),t.child;case 11:return Ns(e,t,t.type,t.pendingProps,n);case 7:return Is(e,t,t.pendingProps,n),t.child;case 8:case 12:return Is(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,Ei(0,t.type,r.value),Is(e,t,r.children,n),t.child;case 9:return i=t.type._context,r=t.pendingProps.children,ji(t),r=r(i=Ai(i)),t.flags|=1,Is(e,t,r,n),t.child;case 14:return Ds(e,t,t.type,t.pendingProps,n);case 15:return Rs(e,t,t.type,t.pendingProps,n);case 19:return rl(e,t,n);case 31:return function(e,t,n){var r=t.pendingProps,i=0!==(128&t.flags);if(t.flags&=-129,null===e){if(di){if("hidden"===r.mode)return e=Vs(t,r),t.lanes=536870912,zs(null,e);if(Na(t),(e=ci)?null!==(e=null!==(e=Pd(e,pi))&&"&"===e.data?e:null)&&(t.memoizedState={dehydrated:e,treeContext:null!==ti?{id:ni,overflow:ri}:null,retryLane:536870912,hydrationErrors:null},(n=Wr(e)).return=t,t.child=n,ui=t,ci=null):e=null,null===e)throw vi(t);return t.lanes=536870912,null}return Vs(t,r)}var a=e.memoizedState;if(null!==a){var s=a.dehydrated;if(Na(t),i)if(256&t.flags)t.flags&=-257,t=Bs(e,t,n);else{if(null===t.memoizedState)throw Error(o(558));t.child=e.child,t.flags|=128,t=null}
vendor: 4,748 bytes, line 2
2else if(Ls||Oi(e,t,n,!1),i=0!==(n&e.childLanes),Ls||i){if(null!==(r=hu)&&0!==(s=Ne(r,n))&&s!==a.retryLane)throw a.retryLane=s,Lr(e,s),Qu(r,e,s),As;oc(),t=Bs(e,t,n)}else e=a.treeContext,ci=Ld(s.nextSibling),ui=t,di=!0,fi=null,pi=!1,null!==e&&li(t,e),(t=Vs(t,r)).flags|=4096;return t}return(e=Ur(e.child,{mode:r.mode,children:r.children})).ref=t.ref,t.child=e,e.return=t,e}(e,t,n);case 22:return Fs(e,t,n,t.pendingProps);case 24:return ji(t),r=Ai(Fi),null===e?(null===(i=Qi())&&(i=hu,a=zi(),i.pooledCache=a,a.refCount++,null!==a&&(i.pooledCacheLanes|=n),i=a),t.memoizedState={parent:r,cache:i},ma(t),Ei(0,Fi,i)):(0!==(e.lanes&n)&&(ga(e,t),Ca(t,null,null,n),_a()),i=e.memoizedState,a=t.memoizedState,i.parent!==r?(i={parent:r,cache:r},t.memoizedState=i,0===t.lanes&&(t.memoizedState=t.updateQueue.baseState=i),Ei(0,Fi,r)):(r=a.cache,Ei(0,Fi,r),r!==i.cache&&Mi(t,[Fi],n,!0))),Is(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(o(156,t.tag))}function sl(e){e.flags|=4}function ll(e,t,n,r,i){if((t=0!==(32&e.mode))&&(t=!1),t){if(e.flags|=16777216,(335544128&i)===i)if(e.stateNode.complete)e.flags|=8192;else{if(!rc())throw ia=ea,Xi;e.flags|=8192}}else e.flags&=-16777217}function ul(e,t){if("stylesheet"!==t.type||0!==(4&t.state.loading))e.flags&=-16777217;else if(e.flags|=16777216,!af(t)){if(!rc())throw ia=ea,Xi;e.flags|=8192}}function cl(e,t){null!==t&&(e.flags|=4),16384&e.flags&&(t=22!==e.tag?Pe():536870912,e.lanes|=t,Mu|=t)}function dl(e,t){if(!di)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;null!==t;)null!==t.alternate&&(n=t),t=t.sibling;null===n?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;null!==n;)null!==n.alternate&&(r=n),n=n.sibling;null===r?t||null===e.tail?e.tail=null:e.tail.sibling=null:r.sibling=null}}function fl(e){var t=null!==e.alternate&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=65011712&i.subtreeFlags,r|=65011712&i.flags,i.return=e,i=i.sibling;else for(i=e.child;null!==i;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function pl(e,t,n){var r=t.pendingProps;switch(si(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:case 1:return fl(t),null;case 3:return n=t.stateNode,r=null,null!==e&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),xi(Fi),G(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),null!==e&&null!==e.child||(yi(t)?sl(t):null===e||e.memoizedState.isDehydrated&&0===(256&t.flags)||(t.flags|=1024,ki())),fl(t),null;case 26:var i=t.type,a=t.memoizedState;return null===e?(sl(t),null!==a?(fl(t),ul(t,a)):(fl(t),ll(t,i,0,0,n))):a?a!==e.memoizedState?(sl(t),fl(t),ul(t,a)):(fl(t),t.flags&=-16777217):((e=e.memoizedProps)!==r&&sl(t),fl(t),ll(t,i,0,0,n)),null;case 27:if(Y(t),n=J.current,i=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&sl(t);else{if(!r){if(null===t.stateNode)throw Error(o(166));return fl(t),null}e=H.current,yi(t)?mi(t):(e=Rd(i,r,n),t.stateNode=e,sl(t))}return fl(t),null;case 5:if(Y(t),i=t.type,null!==e&&null!=t.stateNode)e.memoizedProps!==r&&sl(t);else{if(!r){if(null===t.stateNode)throw Error(o(166));return fl(t),null}if(a=H.current,yi(t))mi(t);else{var s=md(J.current);switch(a){case 1:a=s.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:a=s.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":a=s.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":a=s.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":(a=s.createElement("div")).innerHTML="<script><\/script>",a=a.removeChild(a.firstChild);break;case"select":a="string"===typeof r.is?s.createElement("select",{is:r.is}):s.createElement("select"),r.multiple?a.multiple=!0:r.size&&(a.size=r.size);break;default:a="string"===typeof r.is?s.createElement(i,{is:r.is}):s.createElement(i)}}a[Ve]=t,a[Be]=r;e:for(s=t.child;null!==s;){if(5===s.tag||6===s.tag)a.appendChild(s.stateNode);else if(4!==s.tag&&27!==s.tag&&null!==s.child){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;null===s.sibling;){if(null===s.return||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=a;e:switch(fd(a,i,r),i){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&sl(t)}}return fl(t),ll(t,t.type,null===e||e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&null!=t.stateNode)e.memoizedProps!==r&&sl(t);else{if("string"!==typeof r&&null===t.stateNode)throw Error(o(166));if(e=J.current,yi(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,null!==(i=ui))switch(i.tag){case 27:case 5:r=i.memoizedProps}
vendor: 14,909 bytes, line 2
2e[Ve]=t,(e=!!(e.nodeValue===n||null!==r&&!0===r.suppressHydrationWarning||ud(e.nodeValue,n)))||vi(t,!0)}else(e=md(e).createTextNode(r))[Ve]=t,t.stateNode=e}return fl(t),null;case 31:if(n=t.memoizedState,null===e||null!==e.memoizedState){if(r=yi(t),null!==n){if(null===e){if(!r)throw Error(o(318));if(!(e=null!==(e=t.memoizedState)?e.dehydrated:null))throw Error(o(557));e[Ve]=t}else bi(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;fl(t),e=!1}else n=ki(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return 256&t.flags?(Fa(t),t):(Fa(t),null);if(0!==(128&t.flags))throw Error(o(558))}return fl(t),null;case 13:if(r=t.memoizedState,null===e||null!==e.memoizedState&&null!==e.memoizedState.dehydrated){if(i=yi(t),null!==r&&null!==r.dehydrated){if(null===e){if(!i)throw Error(o(318));if(!(i=null!==(i=t.memoizedState)?i.dehydrated:null))throw Error(o(317));i[Ve]=t}else bi(),0===(128&t.flags)&&(t.memoizedState=null),t.flags|=4;fl(t),i=!1}else i=ki(),null!==e&&null!==e.memoizedState&&(e.memoizedState.hydrationErrors=i),i=!0;if(!i)return 256&t.flags?(Fa(t),t):(Fa(t),null)}return Fa(t),0!==(128&t.flags)?(t.lanes=n,t):(n=null!==r,e=null!==e&&null!==e.memoizedState,n&&(i=null,null!==(r=t.child).alternate&&null!==r.alternate.memoizedState&&null!==r.alternate.memoizedState.cachePool&&(i=r.alternate.memoizedState.cachePool.pool),a=null,null!==r.memoizedState&&null!==r.memoizedState.cachePool&&(a=r.memoizedState.cachePool.pool),a!==i&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),cl(t,t.updateQueue),fl(t),null);case 4:return G(),null===e&&Zc(t.stateNode.containerInfo),fl(t),null;case 10:return xi(t.type),fl(t),null;case 19:if(U(za),null===(r=t.memoizedState))return fl(t),null;if(i=0!==(128&t.flags),null===(a=r.rendering))if(i)dl(r,!1);else{if(0!==_u||null!==e&&0!==(128&e.flags))for(e=t.child;null!==e;){if(null!==(a=Ua(e))){for(t.flags|=128,dl(r,!1),e=a.updateQueue,t.updateQueue=e,cl(t,e),t.subtreeFlags=0,e=n,n=t.child;null!==n;)Vr(n,e),n=n.sibling;return V(za,1&za.current|2),di&&ii(t,r.treeForkCount),t.child}e=e.sibling}null!==r.tail&&le()>Iu&&(t.flags|=128,i=!0,dl(r,!1),t.lanes=4194304)}else{if(!i)if(null!==(e=Ua(a))){if(t.flags|=128,i=!0,e=e.updateQueue,t.updateQueue=e,cl(t,e),dl(r,!0),null===r.tail&&"hidden"===r.tailMode&&!a.alternate&&!di)return fl(t),null}else 2*le()-r.renderingStartTime>Iu&&536870912!==n&&(t.flags|=128,i=!0,dl(r,!1),t.lanes=4194304);r.isBackwards?(a.sibling=t.child,t.child=a):(null!==(e=r.last)?e.sibling=a:t.child=a,r.last=a)}return null!==r.tail?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=le(),e.sibling=null,n=za.current,V(za,i?1&n|2:1&n),di&&ii(t,r.treeForkCount),e):(fl(t),null);case 22:case 23:return Fa(t),ja(),r=null!==t.memoizedState,null!==e?null!==e.memoizedState!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?0!==(536870912&n)&&0===(128&t.flags)&&(fl(t),6&t.subtreeFlags&&(t.flags|=8192)):fl(t),null!==(n=t.updateQueue)&&cl(t,n.retryQueue),n=null,null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),r=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),null!==e&&U($i),null;case 24:return n=null,null!==e&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),xi(Fi),fl(t),null;case 25:case 30:return null}throw Error(o(156,t.tag))}function hl(e,t){switch(si(t),t.tag){case 1:return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 3:return xi(Fi),G(),0!==(65536&(e=t.flags))&&0===(128&e)?(t.flags=-65537&e|128,t):null;case 26:case 27:case 5:return Y(t),null;case 31:if(null!==t.memoizedState){if(Fa(t),null===t.alternate)throw Error(o(340));bi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 13:if(Fa(t),null!==(e=t.memoizedState)&&null!==e.dehydrated){if(null===t.alternate)throw Error(o(340));bi()}return 65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 19:return U(za),null;case 4:return G(),null;case 10:return xi(t.type),null;case 22:case 23:return Fa(t),ja(),null!==e&&U($i),65536&(e=t.flags)?(t.flags=-65537&e|128,t):null;case 24:return xi(Fi),null;default:return null}}function vl(e,t){switch(si(t),t.tag){case 3:xi(Fi),G();break;case 26:case 27:case 5:Y(t);break;case 4:G();break;case 31:null!==t.memoizedState&&Fa(t);break;case 13:Fa(t);break;case 19:U(za);break;case 10:xi(t.type);break;case 22:case 23:Fa(t),ja(),null!==e&&U($i);break;case 24:xi(Fi)}}function ml(e,t){try{var n=t.updateQueue,r=null!==n?n.lastEffect:null;if(null!==r){var i=r.next;n=i;do{if((n.tag&e)===e){r=void 0;var a=n.create,o=n.inst;r=a(),o.destroy=r}n=n.next}while(n!==i)}}catch(s){_c(t,t.return,s)}}function gl(e,t,n){try{var r=t.updateQueue,i=null!==r?r.lastEffect:null;if(null!==i){var a=i.next;r=a;do{if((r.tag&e)===e){var o=r.inst,s=o.destroy;if(void 0!==s){o.destroy=void 0,i=t;var l=n,u=s;try{u()}catch(c){_c(i,l,c)}}}r=r.next}while(r!==a)}}catch(c){_c(t,t.return,c)}}function yl(e){var t=e.updateQueue;if(null!==t){var n=e.stateNode;try{xa(t,n)}catch(r){_c(e,e.return,r)}}}function bl(e,t,n){n.props=_s(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){_c(e,t,r)}}function kl(e,t){try{var n=e.ref;if(null!==n){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;default:r=e.stateNode}"function"===typeof n?e.refCleanup=n(r):n.current=r}}catch(i){_c(e,t,i)}}function wl(e,t){var n=e.ref,r=e.refCleanup;if(null!==n)if("function"===typeof r)try{r()}catch(i){_c(e,t,i)}finally{e.refCleanup=null,null!=(e=e.alternate)&&(e.refCleanup=null)}else if("function"===typeof n)try{n(null)}catch(a){_c(e,t,a)}else n.current=null}function Sl(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(i){_c(e,e.return,i)}}function _l(e,t,n){try{var r=e.stateNode;!function(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var i=null,a=null,s=null,l=null,u=null,c=null,d=null;for(h in n){var f=n[h];if(n.hasOwnProperty(h)&&null!=f)switch(h){case"checked":case"value":break;case"defaultValue":u=f;default:r.hasOwnProperty(h)||cd(e,t,h,null,r,f)}}for(var p in r){var h=r[p];if(f=n[p],r.hasOwnProperty(p)&&(null!=h||null!=f))switch(p){case"type":a=h;break;case"name":i=h;break;case"checked":c=h;break;case"defaultChecked":d=h;break;case"value":s=h;break;case"defaultValue":l=h;break;case"children":case"dangerouslySetInnerHTML":if(null!=h)throw Error(o(137,t));break;default:h!==f&&cd(e,t,p,h,r,f)}}return void yt(e,s,l,u,c,d,a,i);case"select":for(a in h=s=l=p=null,n)if(u=n[a],n.hasOwnProperty(a)&&null!=u)switch(a){case"value":break;case"multiple":h=u;default:r.hasOwnProperty(a)||cd(e,t,a,null,r,u)}for(i in r)if(a=r[i],u=n[i],r.hasOwnProperty(i)&&(null!=a||null!=u))switch(i){case"value":p=a;break;case"defaultValue":l=a;break;case"multiple":s=a;default:a!==u&&cd(e,t,i,a,r,u)}return t=l,n=s,r=h,void(null!=p?wt(e,!!n,p,!1):!!r!==!!n&&(null!=t?wt(e,!!n,t,!0):wt(e,!!n,n?[]:"",!1)));case"textarea":for(l in h=p=null,n)if(i=n[l],n.hasOwnProperty(l)&&null!=i&&!r.hasOwnProperty(l))switch(l){case"value":case"children":break;default:cd(e,t,l,null,r,i)}for(s in r)if(i=r[s],a=n[s],r.hasOwnProperty(s)&&(null!=i||null!=a))switch(s){case"value":p=i;break;case"defaultValue":h=i;break;case"children":break;case"dangerouslySetInnerHTML":if(null!=i)throw Error(o(91));break;default:i!==a&&cd(e,t,s,i,r,a)}return void St(e,p,h);case"option":for(var v in n)if(p=n[v],n.hasOwnProperty(v)&&null!=p&&!r.hasOwnProperty(v))if("selected"===v)e.selected=!1;else cd(e,t,v,null,r,p);for(u in r)if(p=r[u],h=n[u],r.hasOwnProperty(u)&&p!==h&&(null!=p||null!=h))if("selected"===u)e.selected=p&&"function"!==typeof p&&"symbol"!==typeof p;else cd(e,t,u,p,r,h);return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var m in n)p=n[m],n.hasOwnProperty(m)&&null!=p&&!r.hasOwnProperty(m)&&cd(e,t,m,null,r,p);for(c in r)if(p=r[c],h=n[c],r.hasOwnProperty(c)&&p!==h&&(null!=p||null!=h))switch(c){case"children":case"dangerouslySetInnerHTML":if(null!=p)throw Error(o(137,t));break;default:cd(e,t,c,p,r,h)}return;default:if(Mt(t)){for(var g in n)p=n[g],n.hasOwnProperty(g)&&void 0!==p&&!r.hasOwnProperty(g)&&dd(e,t,g,void 0,r,p);for(d in r)p=r[d],h=n[d],!r.hasOwnProperty(d)||p===h||void 0===p&&void 0===h||dd(e,t,d,p,r,h);return}}for(var y in n)p=n[y],n.hasOwnProperty(y)&&null!=p&&!r.hasOwnProperty(y)&&cd(e,t,y,null,r,p);for(f in r)p=r[f],h=n[f],!r.hasOwnProperty(f)||p===h||null==p&&null==h||cd(e,t,f,p,r,h)}(r,e.type,n,t),r[Be]=t}catch(i){_c(e,e.return,i)}}function Cl(e){return 5===e.tag||3===e.tag||26===e.tag||27===e.tag&&xd(e.type)||4===e.tag}function El(e){e:for(;;){for(;null===e.sibling;){if(null===e.return||Cl(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;5!==e.tag&&6!==e.tag&&18!==e.tag;){if(27===e.tag&&xd(e.type))continue e;if(2&e.flags)continue e;if(null===e.child||4===e.tag)continue e;e.child.return=e,e=e.child}if(!(2&e.flags))return e.stateNode}}function xl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?(9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).insertBefore(e,t):((t=9===n.nodeType?n.body:"HTML"===n.nodeName?n.ownerDocument.body:n).appendChild(e),null!==(n=n._reactRootContainer)&&void 0!==n||null!==t.onclick||(t.onclick=At));else if(4!==r&&(27===r&&xd(e.type)&&(n=e.stateNode,t=null),null!==(e=e.child)))for(xl(e,t,n),e=e.sibling;null!==e;)xl(e,t,n),e=e.sibling}function Tl(e,t,n){var r=e.tag;if(5===r||6===r)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(4!==r&&(27===r&&xd(e.type)&&(n=e.stateNode),null!==(e=e.child)))for(Tl(e,t,n),e=e.sibling;null!==e;)Tl(e,t,n),e=e.sibling}function Ml(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,i=t.attributes;i.length;)t.removeAttributeNode(i[0]);fd(t,r,n),t[Ve]=e,t[Be]=n}catch(a){_c(e,e.return,a)}}var Ol=!1,Pl=!1,jl=!1,Al="function"===typeof WeakSet?WeakSet:Set,Ll=null;function Il(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:Ql(e,n),4&r&&ml(5,n);break;case 1:if(Ql(e,n),4&r)if(e=n.stateNode,null===t)try{e.componentDidMount()}catch(o){_c(n,n.return,o)}else{var i=_s(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(i,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){_c(n,n.return,s)}}64&r&&yl(n),512&r&&kl(n,n.return);break;case 3:if(Ql(e,n),64&r&&null!==(e=n.updateQueue)){if(t=null,null!==n.child)switch(n.child.tag){case 27:case 5:case 1:t=n.child.stateNode}try{xa(e,t)}catch(o){_c(n,n.return,o)}}break;case 27:null===t&&4&r&&Ml(n);case 26:case 5:Ql(e,n),null===t&&4&r&&Sl(n),512&r&&kl(n,n.return);break;case 12:Ql(e,n);break;case 31:Ql(e,n),4&r&&Ul(e,n);break;case 13:Ql(e,n),4&r&&Vl(e,n),64&r&&(null!==(e=n.memoizedState)&&(null!==(e=e.dehydrated)&&function(e,t){var n=e.ownerDocument;if("$~"===e.data)e._reactRetry=t;else if("$?"!==e.data||"loading"!==n.readyState)t();else{var r=function e(){t(),n.removeEventListener("DOMContentLoaded",e)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}(e,n=Tc.bind(null,n))));break;case 22:if(!(r=null!==n.memoizedState||Ol)){t=null!==t&&null!==t.memoizedState||Pl,i=Ol;var a=Pl;Ol=r,(Pl=t)&&!a?Kl(e,n,0!==(8772&n.subtreeFlags)):Ql(e,n),Ol=i,Pl=a}break;case 30:break;default:Ql(e,n)}}function Nl(e){var t=e.alternate;null!==t&&(e.alternate=null,Nl(t)),e.child=null,e.deletions=null,e.sibling=null,5===e.tag&&(null!==(t=e.stateNode)&&Ge(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Dl=null,Rl=!1;function Fl(e,t,n){for(n=n.child;null!==n;)zl(e,t,n),n=n.sibling}function zl(e,t,n){if(ye&&"function"===typeof ye.onCommitFiberUnmount)try{ye.onCommitFiberUnmount(ge,n)}catch(a){}switch(n.tag){case 26:Pl||wl(n,t),Fl(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode).parentNode.removeChild(n);break;case 27:Pl||wl(n,t);var r=Dl,i=Rl;xd(n.type)&&(Dl=n.stateNode,Rl=!1),Fl(e,t,n),Fd(n.stateNode),Dl=r,Rl=i;break;case 5:Pl||wl(n,t);case 6:if(r=Dl,i=Rl,Dl=null,Fl(e,t,n),Rl=i,null!==(Dl=r))if(Rl)try{(9===Dl.nodeType?Dl.body:"HTML"===Dl.nodeName?Dl.ownerDocument.body:Dl).removeChild(n.stateNode)}catch(o){_c(n,t,o)}else try{Dl.removeChild(n.stateNode)}catch(o){_c(n,t,o)}break;case 18:null!==Dl&&(Rl?(Td(9===(e=Dl).nodeType?e.body:"HTML"===e.nodeName?e.ownerDocument.body:e,n.stateNode),Wf(e)):Td(Dl,n.stateNode));break;case 4:r=Dl,i=Rl,Dl=n.stateNode.containerInfo,Rl=!0,Fl(e,t,n),Dl=r,Rl=i;break;case 0:case 11:case 14:case 15:gl(2,n,t),Pl||gl(4,n,t),Fl(e,t,n);break;case 1:Pl||(wl(n,t),"function"===typeof(r=n.stateNode).componentWillUnmount&&bl(n,t,r)),Fl(e,t,n);break;case 21:Fl(e,t,n);break;case 22:Pl=(r=Pl)||null!==n.memoizedState,Fl(e,t,n),Pl=r;break;default:Fl(e,t,n)}}function Ul(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&null!==(e=e.memoizedState))){e=e.dehydrated;try{Wf(e)}catch(n){_c(t,t.return,n)}}}function Vl(e,t){if(null===t.memoizedState&&(null!==(e=t.alternate)&&(null!==(e=e.memoizedState)&&null!==(e=e.dehydrated))))try{Wf(e)}catch(n){_c(t,t.return,n)}}function Bl(e,t){var n=function(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return null===t&&(t=e.stateNode=new Al),t;case 22:return null===(t=(e=e.stateNode)._retryCache)&&(t=e._retryCache=new Al),t;default:throw Error(o(435,e.tag))}}(e);t.forEach((function(t){if(!n.has(t)){n.add(t);var r=Mc.bind(null,e,t);t.then(r,r)}}))}function ql(e,t){var n=t.deletions;if(null!==n)for(var r=0;r<n.length;r++){var i=n[r],a=e,s=t,l=s;e:for(;null!==l;){switch(l.tag){case 27:if(xd(l.type)){Dl=l.stateNode,Rl=!1;break e}break;case 5:Dl=l.stateNode,Rl=!1;break e;case 3:case 4:Dl=l.stateNode.containerInfo,Rl=!0;break e}l=l.return}if(null===Dl)throw Error(o(160));zl(a,s,i),Dl=null,Rl=!1,null!==(a=i.alternate)&&(a.return=null),i.return=null}if(13886&t.subtreeFlags)for(t=t.child;null!==t;)Wl(t,e),t=t.sibling}var Hl=null;function Wl(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:ql(t,e),Jl(e),4&r&&(gl(3,e,e.return),ml(3,e),gl(5,e,e.return));break;case 1:ql(t,e),Jl(e),512&r&&(Pl||null===n||wl(n,n.return)),64&r&&Ol&&(null!==(e=e.updateQueue)&&(null!==(r=e.callbacks)&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=null===n?r:n.concat(r))));break;case 26:var i=Hl;if(ql(t,e),Jl(e),512&r&&(Pl||null===n||wl(n,n.return)),4&r){var a=null!==n?n.memoizedState:null;if(r=e.memoizedState,null===n)if(null===r)if(null===e.stateNode){e:{r=e.type,n=e.memoizedProps,i=i.ownerDocument||i;t:switch(r){case"title":(!(a=i.getElementsByTagName("title")[0])||a[Qe]||a[Ve]||"http://www.w3.org/2000/svg"===a.namespaceURI||a.hasAttribute("itemprop"))&&(a=i.createElement(r),i.head.insertBefore(a,i.querySelector("head >
2 title"))),fd(a,r,n),a[Ve]=e,et(a),r=a;break e;case"link":var s=nf("link","href",i).get(r+(n.href||""));if(s)for(var l=0;l<s.length;l++)if((a=s[l]).getAttribute("href")===(null==n.href||""===n.href?null:n.href)&&a.getAttribute("rel")===(null==n.rel?null:n.rel)&&a.getAttribute("title")===(null==n.title?null:n.title)&&a.getAttribute("crossorigin")===(null==n.crossOrigin?null:n.crossOrigin)){s.splice(l,1);break t}fd(a=i.createElement(r),r,n),i.head.appendChild(a);break;case"meta":if(s=nf("meta","content",i).get(r+(n.content||"")))for(l=0;l<s.length;l++)if((a=s[l]).getAttribute("content")===(null==n.content?null:""+n.content)&&a.getAttribute("name")===(null==n.name?null:n.name)&&a.getAttribute("property")===(null==n.property?null:n.property)&&a.getAttribute("http-equiv")===(null==n.httpEquiv?null:n.httpEquiv)&&a.getAttribute("charset")===(null==n.charSet?null:n.charSet)){s.splice(l,1);break t}fd(a=i.createElement(r),r,n),i.head.appendChild(a);break;default:throw Error(o(468,r))}a[Ve]=e,et(a),r=a}e.stateNode=r}else rf(i,e.type,e.stateNode);else e.stateNode=Yd(i,r,e.memoizedProps);else a!==r?(null===a?null!==n.stateNode&&(n=n.stateNode).parentNode.removeChild(n):a.count--,null===r?rf(i,e.type,e.stateNode):Yd(i,r,e.memoizedProps)):null===r&&null!==e.stateNode&&_l(e,e.memoizedProps,n.memoizedProps)}break;case 27:ql(t,e),Jl(e),512&r&&(Pl||null===n||wl(n,n.return)),null!==n&&4&r&&_l(e,e.memoizedProps,n.memoizedProps);break;case 5:if(ql(t,e),Jl(e),512&r&&(Pl||null===n||wl(n,n.return)),32&e.flags){i=e.stateNode;try{Ct(i,"")}catch(v){_c(e,e.return,v)}}4&r&&null!=e.stateNode&&_l(e,i=e.memoizedProps,null!==n?n.memoizedProps:i),1024&r&&(jl=!0);break;case 6:if(ql(t,e),Jl(e),4&r){if(null===e.stateNode)throw Error(o(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(v){_c(e,e.return,v)}}break;case 3:if(tf=null,i=Hl,Hl=Vd(t.containerInfo),ql(t,e),Hl=i,Jl(e),4&r&&null!==n&&n.memoizedState.isDehydrated)try{Wf(t.containerInfo)}catch(v){_c(e,e.return,v)}jl&&(jl=!1,$l(e));break;case 4:r=Hl,Hl=Vd(e.stateNode.containerInfo),ql(t,e),Jl(e),Hl=r;break;case 12:default:ql(t,e),Jl(e);break;case 31:case 19:ql(t,e),Jl(e),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,Bl(e,r)));break;case 13:ql(t,e),Jl(e),8192&e.child.flags&&null!==e.memoizedState!==(null!==n&&null!==n.memoizedState)&&(Au=le()),4&r&&(null!==(r=e.updateQueue)&&(e.updateQueue=null,Bl(e,r)));break;case 22:i=null!==e.memoizedState;var u=null!==n&&null!==n.memoizedState,c=Ol,d=Pl;if(Ol=c||i,Pl=d||u,ql(t,e),Pl=d,Ol=c,Jl(e),8192&r)e:for(t=e.stateNode,t._visibility=i?-2&t._visibility:1|t._visibility,i&&(null===n||u||Ol||Pl||Gl(e)),n=null,t=e;;){if(5===t.tag||26===t.tag){if(null===n){u=n=t;try{if(a=u.stateNode,i)"function"===typeof(s=a.style).setProperty?s.setProperty("display","none","important"):s.display="none";else{l=u.stateNode;var f=u.memoizedProps.style,p=void 0!==f&&null!==f&&f.hasOwnProperty("display")?f.display:null;l.style.display=null==p||"boolean"===typeof p?"":(""+p).trim()}}catch(v){_c(u,u.return,v)}}}else if(6===t.tag){if(null===n){u=t;try{u.stateNode.nodeValue=i?"":u.memoizedProps}catch(v){_c(u,u.return,v)}}}else if(18===t.tag){if(null===n){u=t;try{var h=u.stateNode;i?Md(h,!0):Md(u.stateNode,!1)}catch(v){_c(u,u.return,v)}}}else if((22!==t.tag&&23!==t.tag||null===t.memoizedState||t===e)&&null!==t.child){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;null===t.sibling;){if(null===t.return||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}4&r&&(null!==(r=e.updateQueue)&&(null!==(n=r.retryQueue)&&(r.retryQueue=null,Bl(e,n))));case 30:case 21:}}function Jl(e){var t=e.flags;if(2&t){try{for(var n,r=e.return;null!==r;){if(Cl(r)){n=r;break}r=r.return}if(null==n)throw Error(o(160));switch(n.tag){case 27:var i=n.stateNode;Tl(e,El(e),i);break;case 5:var a=n.stateNode;32&n.flags&&(Ct(a,""),n.flags&=-33),Tl(e,El(e),a);break;case 3:case 4:var s=n.stateNode.containerInfo;xl(e,El(e),s);break;default:throw Error(o(161))}}catch(l){_c(e,e.return,l)}e.flags&=-3}4096&t&&(e.flags&=-4097)}function $l(e){if(1024&e.subtreeFlags)for(e=e.child;null!==e;){var t=e;$l(t),5===t.tag&&1024&t.flags&&t.stateNode.reset(),e=e.sibling}}function Ql(e,t){if(8772&t.subtreeFlags)for(t=t.child;null!==t;)Il(e,t.alternate,t),t=t.sibling}function Gl(e){for(e=e.child;null!==e;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:gl(4,t,t.return),Gl(t);break;case 1:wl(t,t.return);var n=t.stateNode;"function"===typeof n.componentWillUnmount&&bl(t,t.return,n),Gl(t);break;case 27:Fd(t.stateNode);case 26:case 5:wl(t,t.return),Gl(t);break;case 22:null===t.memoizedState&&Gl(t);break;default:Gl(t)}e=e.sibling}}function Kl(e,t,n){for(n=n&&0!==(8772&t.subtreeFlags),t=t.child;null!==t;){var r=t.alternate,i=e,a=t,o=a.flags;switch(a.tag){case 0:case 11:case 15:Kl(i,a,n),ml(4,a);break;case 1:if(Kl(i,a,n),"function"===typeof(i=(r=a).stateNode).componentDidMount)try{i.componentDidMount()}catch(u){_c(r,r.return,u)}if(null!==(i=(r=a).updateQueue)){var s=r.stateNode;try{var l=i.shared.hiddenCallbacks;
vendor: 16,701 bytes, line 2
2if(null!==l)for(i.shared.hiddenCallbacks=null,i=0;i<l.length;i++)Ea(l[i],s)}catch(u){_c(r,r.return,u)}}n&&64&o&&yl(a),kl(a,a.return);break;case 27:Ml(a);case 26:case 5:Kl(i,a,n),n&&null===r&&4&o&&Sl(a),kl(a,a.return);break;case 12:Kl(i,a,n);break;case 31:Kl(i,a,n),n&&4&o&&Ul(i,a);break;case 13:Kl(i,a,n),n&&4&o&&Vl(i,a);break;case 22:null===a.memoizedState&&Kl(i,a,n),kl(a,a.return);break;case 30:break;default:Kl(i,a,n)}t=t.sibling}}function Yl(e,t){var n=null;null!==e&&null!==e.memoizedState&&null!==e.memoizedState.cachePool&&(n=e.memoizedState.cachePool.pool),e=null,null!==t.memoizedState&&null!==t.memoizedState.cachePool&&(e=t.memoizedState.cachePool.pool),e!==n&&(null!=e&&e.refCount++,null!=n&&Ui(n))}function Xl(e,t){e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ui(e))}function Zl(e,t,n,r){if(10256&t.subtreeFlags)for(t=t.child;null!==t;)eu(e,t,n,r),t=t.sibling}function eu(e,t,n,r){var i=t.flags;switch(t.tag){case 0:case 11:case 15:Zl(e,t,n,r),2048&i&&ml(9,t);break;case 1:case 31:case 13:default:Zl(e,t,n,r);break;case 3:Zl(e,t,n,r),2048&i&&(e=null,null!==t.alternate&&(e=t.alternate.memoizedState.cache),(t=t.memoizedState.cache)!==e&&(t.refCount++,null!=e&&Ui(e)));break;case 12:if(2048&i){Zl(e,t,n,r),e=t.stateNode;try{var a=t.memoizedProps,o=a.id,s=a.onPostCommit;"function"===typeof s&&s(o,null===t.alternate?"mount":"update",e.passiveEffectDuration,-0)}catch(l){_c(t,t.return,l)}}else Zl(e,t,n,r);break;case 23:break;case 22:a=t.stateNode,o=t.alternate,null!==t.memoizedState?2&a._visibility?Zl(e,t,n,r):nu(e,t):2&a._visibility?Zl(e,t,n,r):(a._visibility|=2,tu(e,t,n,r,0!==(10256&t.subtreeFlags)||!1)),2048&i&&Yl(o,t);break;case 24:Zl(e,t,n,r),2048&i&&Xl(t.alternate,t)}}function tu(e,t,n,r,i){for(i=i&&(0!==(10256&t.subtreeFlags)||!1),t=t.child;null!==t;){var a=e,o=t,s=n,l=r,u=o.flags;switch(o.tag){case 0:case 11:case 15:tu(a,o,s,l,i),ml(8,o);break;case 23:break;case 22:var c=o.stateNode;null!==o.memoizedState?2&c._visibility?tu(a,o,s,l,i):nu(a,o):(c._visibility|=2,tu(a,o,s,l,i)),i&&2048&u&&Yl(o.alternate,o);break;case 24:tu(a,o,s,l,i),i&&2048&u&&Xl(o.alternate,o);break;default:tu(a,o,s,l,i)}t=t.sibling}}function nu(e,t){if(10256&t.subtreeFlags)for(t=t.child;null!==t;){var n=e,r=t,i=r.flags;switch(r.tag){case 22:nu(n,r),2048&i&&Yl(r.alternate,r);break;case 24:nu(n,r),2048&i&&Xl(r.alternate,r);break;default:nu(n,r)}t=t.sibling}}var ru=8192;function iu(e,t,n){if(e.subtreeFlags&ru)for(e=e.child;null!==e;)au(e,t,n),e=e.sibling}function au(e,t,n){switch(e.tag){case 26:iu(e,t,n),e.flags&ru&&null!==e.memoizedState&&function(e,t,n,r){if("stylesheet"===n.type&&("string"!==typeof r.media||!1!==matchMedia(r.media).matches)&&0===(4&n.state.loading)){if(null===n.instance){var i=Jd(r.href),a=t.querySelector($d(i));if(a)return null!==(t=a._p)&&"object"===typeof t&&"function"===typeof t.then&&(e.count++,e=sf.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=a,void et(a);a=t.ownerDocument||t,r=Qd(r),(i=zd.get(i))&&Zd(r,i),et(a=a.createElement("link"));var o=a;o._p=new Promise((function(e,t){o.onload=e,o.onerror=t})),fd(a,"link",r),n.instance=a}null===e.stylesheets&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&0===(3&n.state.loading)&&(e.count++,n=sf.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}(n,Hl,e.memoizedState,e.memoizedProps);break;case 5:default:iu(e,t,n);break;case 3:case 4:var r=Hl;Hl=Vd(e.stateNode.containerInfo),iu(e,t,n),Hl=r;break;case 22:null===e.memoizedState&&(null!==(r=e.alternate)&&null!==r.memoizedState?(r=ru,ru=16777216,iu(e,t,n),ru=r):iu(e,t,n))}}function ou(e){var t=e.alternate;if(null!==t&&null!==(e=t.child)){t.child=null;do{t=e.sibling,e.sibling=null,e=t}while(null!==e)}}function su(e){var t=e.deletions;if(0!==(16&e.flags)){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Ll=r,cu(r,e)}ou(e)}if(10256&e.subtreeFlags)for(e=e.child;null!==e;)lu(e),e=e.sibling}function lu(e){switch(e.tag){case 0:case 11:case 15:su(e),2048&e.flags&&gl(9,e,e.return);break;case 3:case 12:default:su(e);break;case 22:var t=e.stateNode;null!==e.memoizedState&&2&t._visibility&&(null===e.return||13!==e.return.tag)?(t._visibility&=-3,uu(e)):su(e)}}function uu(e){var t=e.deletions;if(0!==(16&e.flags)){if(null!==t)for(var n=0;n<t.length;n++){var r=t[n];Ll=r,cu(r,e)}ou(e)}for(e=e.child;null!==e;){switch((t=e).tag){case 0:case 11:case 15:gl(8,t,t.return),uu(t);break;case 22:2&(n=t.stateNode)._visibility&&(n._visibility&=-3,uu(t));break;default:uu(t)}e=e.sibling}}function cu(e,t){for(;null!==Ll;){var n=Ll;switch(n.tag){case 0:case 11:case 15:gl(8,n,t);break;case 23:case 22:if(null!==n.memoizedState&&null!==n.memoizedState.cachePool){var r=n.memoizedState.cachePool.pool;null!=r&&r.refCount++}break;case 24:Ui(n.memoizedState.cache)}if(null!==(r=n.child))r.return=n,Ll=r;else e:for(n=e;null!==Ll;){var i=(r=Ll).sibling,a=r.return;if(Nl(r),r===n){Ll=null;break e}if(null!==i){i.return=a,Ll=i;break e}Ll=a}}}var du={getCacheForType:function(e){var t=Ai(Fi),n=t.data.get(e);return void 0===n&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Ai(Fi).controller.signal}},fu="function"===typeof WeakMap?WeakMap:Map,pu=0,hu=null,vu=null,mu=0,gu=0,yu=null,bu=!1,ku=!1,wu=!1,Su=0,_u=0,Cu=0,Eu=0,xu=0,Tu=0,Mu=0,Ou=null,Pu=null,ju=!1,Au=0,Lu=0,Iu=1/0,Nu=null,Du=null,Ru=0,Fu=null,zu=null,Uu=0,Vu=0,Bu=null,qu=null,Hu=0,Wu=null;function Ju(){return 0!==(2&pu)&&0!==mu?mu&-mu:null!==I.T?Bc():Fe()}function $u(){if(0===Tu)if(0===(536870912&mu)||di){var e=Ce;0===(3932160&(Ce<<=1))&&(Ce=262144),Tu=e}else Tu=536870912;return null!==(e=Aa.current)&&(e.flags|=32),Tu}function Qu(e,t,n){(e!==hu||2!==gu&&9!==gu)&&null===e.cancelPendingCommit||(tc(e,0),Xu(e,mu,Tu,!1)),Ae(e,n),0!==(2&pu)&&e===hu||(e===hu&&(0===(2&pu)&&(Eu|=n),4===_u&&Xu(e,mu,Tu,!1)),Nc(e))}function Gu(e,t,n){if(0!==(6&pu))throw Error(o(327));for(var r=!n&&0===(127&t)&&0===(t&e.expiredLanes)||Me(e,t),i=r?function(e,t){var n=pu;pu|=2;var r=ic(),i=ac();hu!==e||mu!==t?(Nu=null,Iu=le()+500,tc(e,t)):ku=Me(e,t);e:for(;;)try{if(0!==gu&&null!==vu){t=vu;var a=yu;t:switch(gu){case 1:gu=0,yu=null,fc(e,t,a,1);break;case 2:case 9:if(ta(a)){gu=0,yu=null,dc(t);break}t=function(){2!==gu&&9!==gu||hu!==e||(gu=7),Nc(e)},a.then(t,t);break e;case 3:gu=7;break e;case 4:gu=5;break e;case 7:ta(a)?(gu=0,yu=null,dc(t)):(gu=0,yu=null,fc(e,t,a,7));break;case 5:var s=null;switch(vu.tag){case 26:s=vu.memoizedState;case 5:case 27:var l=vu;if(s?af(s):l.stateNode.complete){gu=0,yu=null;var u=l.sibling;if(null!==u)vu=u;else{var c=l.return;null!==c?(vu=c,pc(c)):vu=null}break t}}gu=0,yu=null,fc(e,t,a,5);break;case 6:gu=0,yu=null,fc(e,t,a,6);break;case 8:ec(),_u=6;break e;default:throw Error(o(462))}}uc();break}catch(d){nc(e,d)}return Ci=_i=null,I.H=r,I.A=i,pu=n,null!==vu?0:(hu=null,mu=0,Pr(),_u)}(e,t):sc(e,t,!0),a=r;;){if(0===i){ku&&!r&&Xu(e,t,0,!1);break}if(n=e.current.alternate,!a||Yu(n)){if(2===i){if(a=t,e.errorRecoveryDisabledLanes&a)var s=0;else s=0!==(s=-536870913&e.pendingLanes)?s:536870912&s?536870912:0;if(0!==s){t=s;e:{var l=e;i=Ou;var u=l.current.memoizedState.isDehydrated;if(u&&(tc(l,s).flags|=256),2!==(s=sc(l,s,!1))){if(wu&&!u){l.errorRecoveryDisabledLanes|=a,Eu|=a,i=4;break e}a=Pu,Pu=i,null!==a&&(null===Pu?Pu=a:Pu.push.apply(Pu,a))}i=s}if(a=!1,2!==i)continue}}if(1===i){tc(e,0),Xu(e,t,0,!0);break}e:{switch(r=e,a=i){case 0:case 1:throw Error(o(345));case 4:if((4194048&t)!==t)break;case 6:Xu(r,t,Tu,!bu);break e;case 2:Pu=null;break;case 3:case 5:break;default:throw Error(o(329))}if((62914560&t)===t&&10<(i=Au+300-le())){if(Xu(r,t,Tu,!bu),0!==Te(r,0,!0))break e;Uu=t,r.timeoutHandle=wd(Ku.bind(null,r,n,Pu,Nu,ju,t,Tu,Eu,Mu,bu,a,"Throttled",-0,0),i)}else Ku(r,n,Pu,Nu,ju,t,Tu,Eu,Mu,bu,a,null,-0,0)}break}i=sc(e,t,!1),a=!1}Nc(e)}function Ku(e,t,n,r,i,a,o,s,l,u,c,d,f,p){if(e.timeoutHandle=-1,8192&(d=t.subtreeFlags)||16785408===(16785408&d)){au(t,a,d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:At});var h=(62914560&a)===a?Au-le():(4194048&a)===a?Lu-le():0;if(null!==(h=function(e,t){return e.stylesheets&&0===e.count&&uf(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout((function(){if(e.stylesheets&&uf(e,e.stylesheets),e.unsuspend){var t=e.unsuspend;e.unsuspend=null,t()}}),6e4+t);0<e.imgBytes&&0===of&&(of=62500*function(){if("function"===typeof performance.getEntriesByType){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var i=n[r],a=i.transferSize,o=i.initiatorType,s=i.duration;if(a&&s&&pd(o)){for(o=0,s=i.responseEnd,r+=1;r<n.length;r++){var l=n[r],u=l.startTime;if(u>s)break;var c=l.transferSize,d=l.initiatorType;c&&pd(d)&&(o+=c*((l=l.responseEnd)<s?1:(s-u)/(l-u)))}if(--r,t+=8*(a+o)/(i.duration/1e3),10<++e)break}}if(0<e)return t/e/1e6}return navigator.connection&&"number"===typeof(e=navigator.connection.downlink)?e:5}());var i=setTimeout((function(){if(e.waitingForImages=!1,0===e.count&&(e.stylesheets&&uf(e,e.stylesheets),e.unsuspend)){var t=e.unsuspend;e.unsuspend=null,t()}}),(e.imgBytes>of?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(i)}}:null}(d,h)))return Uu=a,e.cancelPendingCommit=h(vc.bind(null,e,t,a,n,r,i,o,s,l,c,d,null,f,p)),void Xu(e,a,o,!u)}vc(e,t,a,n,r,i,o,s,l)}function Yu(e){for(var t=e;;){var n=t.tag;if((0===n||11===n||15===n)&&16384&t.flags&&(null!==(n=t.updateQueue)&&null!==(n=n.stores)))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Xn(a(),i))return!1}catch(o){return!1}}if(n=t.child,16384&t.subtreeFlags&&null!==n)n.return=t,t=n;else{if(t===e)break;for(;null===t.sibling;){if(null===t.return||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Xu(e,t,n,r){t&=~xu,t&=~Eu,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var i=t;0<i;){var a=31-ke(i),o=1<<a;r[a]=-1,i&=~o}0!==n&&Le(e,n,t)}function Zu(){return 0!==(6&pu)||(Dc(0,!1),!1)}function ec(){if(null!==vu){if(0===gu)var e=vu.return;else Ci=_i=null,oo(e=vu),sa=null,la=0,e=vu;for(;null!==e;)vl(e.alternate,e),e=e.return;vu=null}}function tc(e,t){var n=e.timeoutHandle;-1!==n&&(e.timeoutHandle=-1,Sd(n)),null!==(n=e.cancelPendingCommit)&&(e.cancelPendingCommit=null,n()),Uu=0,ec(),hu=e,vu=n=Ur(e.current,null),mu=t,gu=0,yu=null,bu=!1,ku=Me(e,t),wu=!1,Mu=Tu=xu=Eu=Cu=_u=0,Pu=Ou=null,ju=!1,0!==(8&t)&&(t|=32&t);var r=e.entangledLanes;if(0!==r)for(e=e.entanglements,r&=t;0<r;){var i=31-ke(r),a=1<<i;t|=e[i],r&=~a}return Su=t,Pr(),n}function nc(e,t){Ba=null,I.H=vs,t===Yi||t===Zi?(t=aa(),gu=3):t===Xi?(t=aa(),gu=4):gu=t===As?8:null!==t&&"object"===typeof t&&"function"===typeof t.then?6:1,yu=t,null===vu&&(_u=1,Ts(e,Qr(t,e.current)))}function rc(){var e=Aa.current;return null===e||((4194048&mu)===mu?null===La:((62914560&mu)===mu||0!==(536870912&mu))&&e===La)}function ic(){var e=I.H;return I.H=vs,null===e?vs:e}function ac(){var e=I.A;return I.A=du,e}function oc(){_u=4,bu||(4194048&mu)!==mu&&null!==Aa.current||(ku=!0),0===(134217727&Cu)&&0===(134217727&Eu)||null===hu||Xu(hu,mu,Tu,!1)}function sc(e,t,n){var r=pu;pu|=2;var i=ic(),a=ac();hu===e&&mu===t||(Nu=null,tc(e,t)),t=!1;var o=_u;e:for(;;)try{if(0!==gu&&null!==vu){var s=vu,l=yu;switch(gu){case 8:ec(),o=6;break e;case 3:case 2:case 9:case 6:null===Aa.current&&(t=!0);var u=gu;if(gu=0,yu=null,fc(e,s,l,u),n&&ku){o=0;break e}break;default:u=gu,gu=0,yu=null,fc(e,s,l,u)}}lc(),o=_u;break}catch(c){nc(e,c)}return t&&e.shellSuspendCounter++,Ci=_i=null,pu=r,I.H=i,I.A=a,null===vu&&(hu=null,mu=0,Pr()),o}function lc(){for(;null!==vu;)cc(vu)}function uc(){for(;null!==vu&&!oe();)cc(vu)}function cc(e){var t=ol(e.alternate,e,Su);e.memoizedProps=e.pendingProps,null===t?pc(e):vu=t}function dc(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=Ws(n,t,t.pendingProps,t.type,void 0,mu);break;case 11:t=Ws(n,t,t.pendingProps,t.type.render,t.ref,mu);break;case 5:oo(t);default:vl(n,t),t=ol(n,t=vu=Vr(t,Su),Su)}e.memoizedProps=e.pendingProps,null===t?pc(e):vu=t}function fc(e,t,n,r){Ci=_i=null,oo(t),sa=null,la=0;var i=t.return;try{if(function(e,t,n,r,i){if(n.flags|=32768,null!==r&&"object"===typeof r&&"function"===typeof r.then){if(null!==(t=n.alternate)&&Oi(t,n,i,!0),null!==(n=Aa.current)){switch(n.tag){case 31:case 13:return null===La?oc():null===n.alternate&&0===_u&&(_u=3),n.flags&=-257,n.flags|=65536,n.lanes=i,r===ea?n.flags|=16384:(null===(t=n.updateQueue)?n.updateQueue=new Set([r]):t.add(r),Cc(e,r,i)),!1;case 22:return n.flags|=65536,r===ea?n.flags|=16384:(null===(t=n.updateQueue)?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):null===(n=t.retryQueue)?t.retryQueue=new Set([r]):n.add(r),Cc(e,r,i)),!1}throw Error(o(435,n.tag))}return Cc(e,r,i),oc(),!1}if(di)return null!==(t=Aa.current)?(0===(65536&t.flags)&&(t.flags|=256),t.flags|=65536,t.lanes=i,r!==hi&&wi(Qr(e=Error(o(422),{cause:r}),n))):(r!==hi&&wi(Qr(t=Error(o(423),{cause:r}),n)),(e=e.current.alternate).flags|=65536,i&=-i,e.lanes|=i,r=Qr(r,n),wa(e,i=Os(e.stateNode,r,i)),4!==_u&&(_u=2)),!1;var a=Error(o(520),{cause:r});if(a=Qr(a,n),null===Ou?Ou=[a]:Ou.push(a),4!==_u&&(_u=2),null===t)return!0;r=Qr(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=i&-i,n.lanes|=e,wa(n,e=Os(n.stateNode,r,e)),!1;case 1:if(t=n.type,a=n.stateNode,0===(128&n.flags)&&("function"===typeof t.getDerivedStateFromError||null!==a&&"function"===typeof a.componentDidCatch&&(null===Du||!Du.has(a))))return n.flags|=65536,i&=-i,n.lanes|=i,js(i=Ps(i),e,n,r),wa(n,i),!1}n=n.return}while(null!==n);return!1}(e,i,t,n,mu))return _u=1,Ts(e,Qr(n,e.current)),void(vu=null)}catch(a){if(null!==i)throw vu=i,a;return _u=1,Ts(e,Qr(n,e.current)),void(vu=null)}32768&t.flags?(di||1===r?e=!0:ku||0!==(536870912&mu)?e=!1:(bu=e=!0,(2===r||9===r||3===r||6===r)&&(null!==(r=Aa.current)&&13===r.tag&&(r.flags|=16384))),hc(t,e)):pc(t)}function pc(e){var t=e;do{if(0!==(32768&t.flags))return void hc(t,bu);e=t.return;var n=pl(t.alternate,t,Su);if(null!==n)return void(vu=n);if(null!==(t=t.sibling))return void(vu=t);vu=t=e}while(null!==t);0===_u&&(_u=5)}function hc(e,t){do{var n=hl(e.alternate,e);if(null!==n)return n.flags&=32767,void(vu=n);if(null!==(n=e.return)&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&null!==(e=e.sibling))return void(vu=e);vu=e=n}while(null!==e);_u=6,vu=null}function vc(e,t,n,r,i,a,s,l,u){e.cancelPendingCommit=null;do{kc()}while(0!==Ru);if(0!==(6&pu))throw Error(o(327));if(null!==t){if(t===e.current)throw Error(o(177));if(a=t.lanes|t.childLanes,function(e,t,n,r,i,a){var o=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var s=e.entanglements,l=e.expirationTimes,u=e.hiddenUpdates;for(n=o&~n;0<n;){var c=31-ke(n),d=1<<c;s[c]=0,l[c]=-1;var f=u[c];if(null!==f)for(u[c]=null,c=0;c<f.length;c++){var p=f[c];null!==p&&(p.lane&=-536870913)}n&=~d}0!==r&&Le(e,r,0),0!==a&&0===i&&0!==e.tag&&(e.suspendedLanes|=a&~(o&~t))}(e,n,a|=Or,s,l,u),e===hu&&(vu=hu=null,mu=0),zu=t,Fu=e,Uu=n,Vu=a,Bu=i,qu=r,0!==(10256&t.subtreeFlags)||0!==(10256&t.flags)?(e.callbackNode=null,e.callbackPriority=0,ie(fe,(function(){return wc(),null}))):(e.callbackNode=null,e.callbackPriority=0),r=0!==(13878&t.flags),0!==(13878&t.subtreeFlags)||r){r=I.T,I.T=null,i=N.p,N.p=2,s=pu,pu|=4;try{!function(e,t){if(e=e.containerInfo,hd=kf,ir(e=rr(e))){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{var r=(n=(n=e.ownerDocument)&&n.defaultView||window).getSelection&&n.getSelection();if(r&&0!==r.rangeCount){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch(m){n=null;break e}var s=0,l=-1,u=-1,c=0,d=0,f=e,p=null;t:for(;;){for(var h;f!==n||0!==i&&3!==f.nodeType||(l=s+i),f!==a||0!==r&&3!==f.nodeType||(u=s+r),3===f.nodeType&&(s+=f.nodeValue.length),null!==(h=f.firstChild);)p=f,f=h;for(;;){if(f===e)break t;if(p===n&&++c===i&&(l=s),p===a&&++d===r&&(u=s),null!==(h=f.nextSibling))break;p=(f=p).parentNode}f=h}n=-1===l||-1===u?null:{start:l,end:u}}else n=null}n=n||{start:0,end:0}}else n=null;for(vd={focusedElem:e,selectionRange:n},kf=!1,Ll=t;null!==Ll;)if(e=(t=Ll).child,0!==(1028&t.subtreeFlags)&&null!==e)e.return=t,Ll=e;else for(;null!==Ll;){switch(a=(t=Ll).alternate,e=t.flags,t.tag){case 0:if(0!==(4&e)&&null!==(e=null!==(e=t.updateQueue)?e.events:null))for(n=0;n<e.length;n++)(i=e[n]).ref.impl=i.nextImpl;break;case 11:case 15:case 5:case 26:case 27:case 6:case 4:case 17:break;case 1:if(0!==(1024&e)&&null!==a){e=void 0,n=t,i=a.memoizedProps,a=a.memoizedState,r=n.stateNode;try{var v=_s(n.type,i);e=r.getSnapshotBeforeUpdate(v,a),r.__reactInternalSnapshotBeforeUpdate=e}
2catch(g){_c(n,n.return,g)}}break;case 3:if(0!==(1024&e))if(9===(n=(e=t.stateNode.containerInfo).nodeType))Od(e);else if(1===n)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Od(e);break;default:e.textContent=""}break;default:if(0!==(1024&e))throw Error(o(163))}if(null!==(e=t.sibling)){e.return=t.return,Ll=e;break}Ll=t.return}}(e,t)}finally{pu=s,N.p=i,I.T=r}}Ru=1,mc(),gc(),yc()}}function mc(){if(1===Ru){Ru=0;var e=Fu,t=zu,n=0!==(13878&t.flags);if(0!==(13878&t.subtreeFlags)||n){n=I.T,I.T=null;var r=N.p;N.p=2;var i=pu;pu|=4;try{Wl(t,e);var a=vd,o=rr(e.containerInfo),s=a.focusedElem,l=a.selectionRange;if(o!==s&&s&&s.ownerDocument&&nr(s.ownerDocument.documentElement,s)){if(null!==l&&ir(s)){var u=l.start,c=l.end;if(void 0===c&&(c=u),"selectionStart"in s)s.selectionStart=u,s.selectionEnd=Math.min(c,s.value.length);else{var d=s.ownerDocument||document,f=d&&d.defaultView||window;if(f.getSelection){var p=f.getSelection(),h=s.textContent.length,v=Math.min(l.start,h),m=void 0===l.end?v:Math.min(l.end,h);!p.extend&&v>m&&(o=m,m=v,v=o);var g=tr(s,v),y=tr(s,m);if(g&&y&&(1!==p.rangeCount||p.anchorNode!==g.node||p.anchorOffset!==g.offset||p.focusNode!==y.node||p.focusOffset!==y.offset)){var b=d.createRange();b.setStart(g.node,g.offset),p.removeAllRanges(),v>m?(p.addRange(b),p.extend(y.node,y.offset)):(b.setEnd(y.node,y.offset),p.addRange(b))}}}}for(d=[],p=s;p=p.parentNode;)1===p.nodeType&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for("function"===typeof s.focus&&s.focus(),s=0;s<d.length;s++){var k=d[s];k.element.scrollLeft=k.left,k.element.scrollTop=k.top}}kf=!!hd,vd=hd=null}finally{pu=i,N.p=r,I.T=n}}e.current=t,Ru=2}}function gc(){if(2===Ru){Ru=0;var e=Fu,t=zu,n=0!==(8772&t.flags);if(0!==(8772&t.subtreeFlags)||n){n=I.T,I.T=null;var r=N.p;N.p=2;var i=pu;pu|=4;try{Il(e,t.alternate,t)}finally{pu=i,N.p=r,I.T=n}}Ru=3}}function yc(){if(4===Ru||3===Ru){Ru=0,se();var e=Fu,t=zu,n=Uu,r=qu;0!==(10256&t.subtreeFlags)||0!==(10256&t.flags)?Ru=5:(Ru=0,zu=Fu=null,bc(e,e.pendingLanes));var i=e.pendingLanes;if(0===i&&(Du=null),Re(n),t=t.stateNode,ye&&"function"===typeof ye.onCommitFiberRoot)try{ye.onCommitFiberRoot(ge,t,void 0,128===(128&t.current.flags))}catch(l){}if(null!==r){t=I.T,i=N.p,N.p=2,I.T=null;try{for(var a=e.onRecoverableError,o=0;o<r.length;o++){var s=r[o];a(s.value,{componentStack:s.stack})}}finally{I.T=t,N.p=i}}0!==(3&Uu)&&kc(),Nc(e),i=e.pendingLanes,0!==(261930&n)&&0!==(42&i)?e===Wu?Hu++:(Hu=0,Wu=e):Hu=0,Dc(0,!1)}}function bc(e,t){0===(e.pooledCacheLanes&=t)&&(null!=(t=e.pooledCache)&&(e.pooledCache=null,Ui(t)))}function kc(){return mc(),gc(),yc(),wc()}function wc(){if(5!==Ru)return!1;var e=Fu,t=Vu;Vu=0;var n=Re(Uu),r=I.T,i=N.p;try{N.p=32>n?32:n,I.T=null,n=Bu,Bu=null;var a=Fu,s=Uu;if(Ru=0,zu=Fu=null,Uu=0,0!==(6&pu))throw Error(o(331));var l=pu;if(pu|=4,lu(a.current),eu(a,a.current,s,n),pu=l,Dc(0,!1),ye&&"function"===typeof ye.onPostCommitFiberRoot)try{ye.onPostCommitFiberRoot(ge,a)}catch(u){}return!0}finally{N.p=i,I.T=r,bc(e,t)}}function Sc(e,t,n){t=Qr(n,t),null!==(e=ba(e,t=Os(e.stateNode,t,2),2))&&(Ae(e,2),Nc(e))}function _c(e,t,n){if(3===e.tag)Sc(e,e,n);else for(;null!==t;){if(3===t.tag){Sc(t,e,n);break}if(1===t.tag){var r=t.stateNode;if("function"===typeof t.type.getDerivedStateFromError||"function"===typeof r.componentDidCatch&&(null===Du||!Du.has(r))){e=Qr(n,e),null!==(r=ba(t,n=Ps(2),2))&&(js(n,r,t,e),Ae(r,2),Nc(r));break}}t=t.return}}function Cc(e,t,n){var r=e.pingCache;if(null===r){r=e.pingCache=new fu;var i=new Set;r.set(t,i)}else void 0===(i=r.get(t))&&(i=new Set,r.set(t,i));i.has(n)||(wu=!0,i.add(n),e=Ec.bind(null,e,t,n),t.then(e,e))}function Ec(e,t,n){var r=e.pingCache;null!==r&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,hu===e&&(mu&n)===n&&(4===_u||3===_u&&(62914560&mu)===mu&&300>le()-Au?0===(2&pu)&&tc(e,0):xu|=n,Mu===mu&&(Mu=0)),Nc(e)}function xc(e,t){0===t&&(t=Pe()),null!==(e=Lr(e,t))&&(Ae(e,t),Nc(e))}function Tc(e){var t=e.memoizedState,n=0;null!==t&&(n=t.retryLane),xc(e,n)}function Mc(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,i=e.memoizedState;null!==i&&(n=i.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(o(314))}null!==r&&r.delete(t),xc(e,n)}var Oc=null,Pc=null,jc=!1,Ac=!1,Lc=!1,Ic=0;function Nc(e){e!==Pc&&null===e.next&&(null===Pc?Oc=Pc=e:Pc=Pc.next=e),Ac=!0,jc||(jc=!0,Cd((function(){0!==(6&pu)?ie(ce,Rc):Fc()})))}function Dc(e,t){if(!Lc&&Ac){Lc=!0;do{for(var n=!1,r=Oc;null!==r;){if(!t)if(0!==e){var i=r.pendingLanes;if(0===i)var a=0;else{var o=r.suspendedLanes,s=r.pingedLanes;a=(1<<31-ke(42|e)+1)-1,a=201326741&(a&=i&~(o&~s))?201326741&a|1:a?2|a:0}0!==a&&(n=!0,Vc(r,a))}else a=mu,0===(3&(a=Te(r,r===hu?a:0,null!==r.cancelPendingCommit||-1!==r.timeoutHandle)))||Me(r,a)||(n=!0,Vc(r,a));r=r.next}}while(n);Lc=!1}
vendor: 9,173 bytes, line 2
2}function Rc(){Fc()}function Fc(){Ac=jc=!1;var e=0;0!==Ic&&function(){var e=window.event;if(e&&"popstate"===e.type)return e!==kd&&(kd=e,!0);return kd=null,!1}()&&(e=Ic);for(var t=le(),n=null,r=Oc;null!==r;){var i=r.next,a=zc(r,t);0===a?(r.next=null,null===n?Oc=i:n.next=i,null===i&&(Pc=n)):(n=r,(0!==e||0!==(3&a))&&(Ac=!0)),r=i}0!==Ru&&5!==Ru||Dc(e,!1),0!==Ic&&(Ic=0)}function zc(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=-62914561&e.pendingLanes;0<a;){var o=31-ke(a),s=1<<o,l=i[o];-1===l?0!==(s&n)&&0===(s&r)||(i[o]=Oe(s,t)):l<=t&&(e.expiredLanes|=s),a&=~s}if(n=mu,n=Te(e,e===(t=hu)?n:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle),r=e.callbackNode,0===n||e===t&&(2===gu||9===gu)||null!==e.cancelPendingCommit)return null!==r&&null!==r&&ae(r),e.callbackNode=null,e.callbackPriority=0;if(0===(3&n)||Me(e,n)){if((t=n&-n)===e.callbackPriority)return t;switch(null!==r&&ae(r),Re(n)){case 2:case 8:n=de;break;case 32:default:n=fe;break;case 268435456:n=he}return r=Uc.bind(null,e),n=ie(n,r),e.callbackPriority=t,e.callbackNode=n,t}return null!==r&&null!==r&&ae(r),e.callbackPriority=2,e.callbackNode=null,2}function Uc(e,t){if(0!==Ru&&5!==Ru)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(kc()&&e.callbackNode!==n)return null;var r=mu;return 0===(r=Te(e,e===hu?r:0,null!==e.cancelPendingCommit||-1!==e.timeoutHandle))?null:(Gu(e,r,t),zc(e,le()),null!=e.callbackNode&&e.callbackNode===n?Uc.bind(null,e):null)}function Vc(e,t){if(kc())return null;Gu(e,t,!0)}function Bc(){if(0===Ic){var e=qi;0===e&&(e=_e,0===(261888&(_e<<=1))&&(_e=256)),Ic=e}return Ic}function qc(e){return null==e||"symbol"===typeof e||"boolean"===typeof e?null:"function"===typeof e?e:jt(""+e)}function Hc(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}for(var Wc=0;Wc<Cr.length;Wc++){var Jc=Cr[Wc];Er(Jc.toLowerCase(),"on"+(Jc[0].toUpperCase()+Jc.slice(1)))}Er(mr,"onAnimationEnd"),Er(gr,"onAnimationIteration"),Er(yr,"onAnimationStart"),Er("dblclick","onDoubleClick"),Er("focusin","onFocus"),Er("focusout","onBlur"),Er(br,"onTransitionRun"),Er(kr,"onTransitionStart"),Er(wr,"onTransitionCancel"),Er(Sr,"onTransitionEnd"),it("onMouseEnter",["mouseout","mouseover"]),it("onMouseLeave",["mouseout","mouseover"]),it("onPointerEnter",["pointerout","pointerover"]),it("onPointerLeave",["pointerout","pointerover"]),rt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),rt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),rt("onBeforeInput",["compositionend","keypress","textInput","paste"]),rt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),rt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),rt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var $c="abort canplay canplaythrough durationchange emptied encrypted ended error loadeddata loadedmetadata loadstart pause play playing progress ratechange resize seeked seeking stalled suspend timeupdate volumechange waiting".split(" "),Qc=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat($c));function Gc(e,t){t=0!==(4&t);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;e:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==a&&i.isPropagationStopped())break e;a=s,i.currentTarget=u;try{a(i)}catch(c){xr(c)}i.currentTarget=null,a=l}else for(o=0;o<r.length;o++){if(l=(s=r[o]).instance,u=s.currentTarget,s=s.listener,l!==a&&i.isPropagationStopped())break e;a=s,i.currentTarget=u;try{a(i)}catch(c){xr(c)}i.currentTarget=null,a=l}}}}function Kc(e,t){var n=t[He];void 0===n&&(n=t[He]=new Set);var r=e+"__bubble";n.has(r)||(ed(t,e,2,!1),n.add(r))}function Yc(e,t,n){var r=0;t&&(r|=4),ed(n,e,r,t)}var Xc="_reactListening"+Math.random().toString(36).slice(2);function Zc(e){if(!e[Xc]){e[Xc]=!0,tt.forEach((function(t){"selectionchange"!==t&&(Qc.has(t)||Yc(t,!1,e),Yc(t,!0,e))}));var t=9===e.nodeType?e:e.ownerDocument;null===t||t[Xc]||(t[Xc]=!0,Yc("selectionchange",!1,t))}}function ed(e,t,n,r){switch(Tf(t)){case 2:var i=wf;break;case 8:i=Sf;break;default:i=_f}n=i.bind(null,t,n,e),i=void 0,!Bt||"touchstart"!==t&&"touchmove"!==t&&"wheel"!==t||(i=!0),r?void 0!==i?e.addEventListener(t,n,{capture:!0,passive:i}):e.addEventListener(t,n,!0):void 0!==i?e.addEventListener(t,n,{passive:i}):e.addEventListener(t,n,!1)}function td(e,t,n,r,i){var a=r;if(0===(1&t)&&0===(2&t)&&null!==r)e:for(;;){if(null===r)return;var o=r.tag;if(3===o||4===o){var s=r.stateNode.containerInfo;if(s===i)break;if(4===o)for(o=r.return;null!==o;){var u=o.tag;if((3===u||4===u)&&o.stateNode.containerInfo===i)return;o=o.return}for(;null!==s;){if(null===(o=Ke(s)))return;if(5===(u=o.tag)||6===u||26===u||27===u){r=a=o;continue e}s=s.parentNode}}r=r.return}zt((function(){var r=a,i=It(n),o=[];e:{var s=_r.get(e);if(void 0!==s){var u=nn,c=e;switch(e){case"keypress":if(0===Qt(n))break e;case"keydown":case"keyup":u=yn;break;case"focusin":c="focus",u=un;break;case"focusout":c="blur",u=un;break;case"beforeblur":case"afterblur":u=un;break;case"click":if(2===n.button)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":u=sn;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":u=ln;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":u=kn;break;case mr:case gr:case yr:u=cn;break;case Sr:u=wn;break;case"scroll":case"scrollend":u=an;break;case"wheel":u=Sn;break;case"copy":case"cut":case"paste":u=dn;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":u=bn;break;case"toggle":case"beforetoggle":u=_n}var d=0!==(4&t),f=!d&&("scroll"===e||"scrollend"===e),p=d?null!==s?s+"Capture":null:s;d=[];for(var h,v=r;null!==v;){var m=v;if(h=m.stateNode,5!==(m=m.tag)&&26!==m&&27!==m||null===h||null===p||null!=(m=Ut(v,p))&&d.push(nd(v,m,h)),f)break;v=v.return}0<d.length&&(s=new u(s,c,null,n,i),o.push({event:s,listeners:d}))}}if(0===(7&t)){if(u="mouseout"===e||"pointerout"===e,(!(s="mouseover"===e||"pointerover"===e)||n===Lt||!(c=n.relatedTarget||n.fromElement)||!Ke(c)&&!c[qe])&&(u||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,u?(u=r,null!==(c=(c=n.relatedTarget||n.toElement)?Ke(c):null)&&(f=l(c),d=c.tag,c!==f||5!==d&&27!==d&&6!==d)&&(c=null)):(u=null,c=r),u!==c)){if(d=sn,m="onMouseLeave",p="onMouseEnter",v="mouse","pointerout"!==e&&"pointerover"!==e||(d=bn,m="onPointerLeave",p="onPointerEnter",v="pointer"),f=null==u?s:Xe(u),h=null==c?s:Xe(c),(s=new d(m,v+"leave",u,n,i)).target=f,s.relatedTarget=h,m=null,Ke(i)===r&&((d=new d(p,v+"enter",c,n,i)).target=h,d.relatedTarget=f,m=d),f=m,u&&c)e:{for(d=id,v=c,h=0,m=p=u;m;m=d(m))h++;m=0;for(var g=v;g;g=d(g))m++;for(;0<h-m;)p=d(p),h--;for(;0<m-h;)v=d(v),m--;for(;h--;){if(p===v||null!==v&&p===v.alternate){d=p;break e}p=d(p),v=d(v)}d=null}else d=null;null!==u&&ad(o,s,u,d,!1),null!==c&&null!==f&&ad(o,f,c,d,!0)}if("select"===(u=(s=r?Xe(r):window).nodeName&&s.nodeName.toLowerCase())||"input"===u&&"file"===s.type)var y=Vn;else if(Nn(s))if(Bn)y=Yn;else{y=Gn;var b=Qn}else!(u=s.nodeName)||"input"!==u.toLowerCase()||"checkbox"!==s.type&&"radio"!==s.type?r&&Mt(r.elementType)&&(y=Vn):y=Kn;switch(y&&(y=y(e,r))?Dn(o,y,n,i):(b&&b(e,s,r),"focusout"===e&&r&&"number"===s.type&&null!=r.memoizedProps.value&&kt(s,"number",s.value)),b=r?Xe(r):window,e){case"focusin":(Nn(b)||"true"===b.contentEditable)&&(or=b,sr=r,lr=null);break;case"focusout":lr=sr=or=null;break;case"mousedown":ur=!0;break;case"contextmenu":case"mouseup":case"dragend":ur=!1,cr(o,n,i);break;case"selectionchange":if(ar)break;case"keydown":case"keyup":cr(o,n,i)}var k;if(En)e:{switch(e){case"compositionstart":var w="onCompositionStart";break e;case"compositionend":w="onCompositionEnd";break e;case"compositionupdate":w="onCompositionUpdate";break e}w=void 0}else Ln?jn(e,n)&&(w="onCompositionEnd"):"keydown"===e&&229===n.keyCode&&(w="onCompositionStart");w&&(Mn&&"ko"!==n.locale&&(Ln||"onCompositionStart"!==w?"onCompositionEnd"===w&&Ln&&(k=$t()):(Wt="value"in(Ht=i)?Ht.value:Ht.textContent,Ln=!0)),0<(b=rd(r,w)).length&&(w=new fn(w,e,null,n,i),o.push({event:w,listeners:b}),k?w.data=k:null!==(k=An(n))&&(w.data=k))),(k=Tn?function(e,t){switch(e){case"compositionend":return An(t);case"keypress":return 32!==t.which?null:(Pn=!0,On);case"textInput":return(e=t.data)===On&&Pn?null:e;default:return null}}(e,n):function(e,t){if(Ln)return"compositionend"===e||!En&&jn(e,t)?(e=$t(),Jt=Wt=Ht=null,Ln=!1,e):null;switch(e){case"paste":default:return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;
2case"compositionend":return Mn&&"ko"!==t.locale?null:t.data}}(e,n))&&(0<(w=rd(r,"onBeforeInput")).length&&(b=new fn("onBeforeInput","beforeinput",null,n,i),o.push({event:b,listeners:w}),b.data=k)),function(e,t,n,r,i){if("submit"===t&&n&&n.stateNode===i){var a=qc((i[Be]||null).action),o=r.submitter;o&&null!==(t=(t=o[Be]||null)?qc(t.formAction):o.getAttribute("formAction"))&&(a=t,o=null);var s=new nn("action","action",null,r,i);e.push({event:s,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(0!==Ic){var e=o?Hc(i,o):new FormData(i);ts(n,{pending:!0,data:e,method:i.method,action:a},null,e)}}else"function"===typeof a&&(s.preventDefault(),e=o?Hc(i,o):new FormData(i),ts(n,{pending:!0,data:e,method:i.method,action:a},a,e))},currentTarget:i}]})}}(o,e,r,n,i)}Gc(o,t)}))}function nd(e,t,n){return{instance:e,listener:t,currentTarget:n}}function rd(e,t){for(var n=t+"Capture",r=[];null!==e;){var i=e,a=i.stateNode;if(5!==(i=i.tag)&&26!==i&&27!==i||null===a||(null!=(i=Ut(e,n))&&r.unshift(nd(e,i,a)),null!=(i=Ut(e,t))&&r.push(nd(e,i,a))),3===e.tag)return r;e=e.return}return[]}function id(e){if(null===e)return null;do{e=e.return}while(e&&5!==e.tag&&27!==e.tag);return e||null}function ad(e,t,n,r,i){for(var a=t._reactName,o=[];null!==n&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(s=s.tag,null!==l&&l===r)break;5!==s&&26!==s&&27!==s||null===u||(l=u,i?null!=(u=Ut(n,a))&&o.unshift(nd(n,u,l)):i||null!=(u=Ut(n,a))&&o.push(nd(n,u,l))),n=n.return}0!==o.length&&e.push({event:t,listeners:o})}var od=/\r\n?/g,sd=/\u0000|\uFFFD/g;function ld(e){return("string"===typeof e?e:""+e).replace(od,"\n").replace(sd,"")}function ud(e,t){return t=ld(t),ld(e)===t}function cd(e,t,n,r,i,a){switch(n){case"children":"string"===typeof r?"body"===t||"textarea"===t&&""===r||Ct(e,r):("number"===typeof r||"bigint"===typeof r)&&"body"!==t&&Ct(e,""+r);break;case"className":ut(e,"class",r);break;case"tabIndex":ut(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":ut(e,n,r);break;case"style":Tt(e,r,a);break;case"data":if("object"!==t){ut(e,"data",r);break}case"src":case"href":if(""===r&&("a"!==t||"href"!==n)){e.removeAttribute(n);break}if(null==r||"function"===typeof r||"symbol"===typeof r||"boolean"===typeof r){e.removeAttribute(n);break}r=jt(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if("function"===typeof r){e.setAttribute(n,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}if("function"===typeof a&&("formAction"===n?("input"!==t&&cd(e,t,"name",i.name,i,null),cd(e,t,"formEncType",i.formEncType,i,null),cd(e,t,"formMethod",i.formMethod,i,null),cd(e,t,"formTarget",i.formTarget,i,null)):(cd(e,t,"encType",i.encType,i,null),cd(e,t,"method",i.method,i,null),cd(e,t,"target",i.target,i,null))),null==r||"symbol"===typeof r||"boolean"===typeof r){e.removeAttribute(n);break}r=jt(""+r),e.setAttribute(n,r);break;case"onClick":null!=r&&(e.onclick=At);break;case"onScroll":null!=r&&Kc("scroll",e);break;case"onScrollEnd":null!=r&&Kc("scrollend",e);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!==typeof r||!("__html"in r))throw Error(o(61));if(null!=(n=r.__html)){if(null!=i.children)throw Error(o(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&"function"!==typeof r&&"symbol"!==typeof r;break;case"muted":e.muted=r&&"function"!==typeof r&&"symbol"!==typeof r;break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":case"autoFocus":break;case"xlinkHref":if(null==r||"function"===typeof r||"boolean"===typeof r||"symbol"===typeof r){e.removeAttribute("xlink:href");break}n=jt(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":null!=r&&"function"!==typeof r&&"symbol"!==typeof r?e.setAttribute(n,""+r):e.removeAttribute(n);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
2ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":r&&"function"!==typeof r&&"symbol"!==typeof r?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":!0===r?e.setAttribute(n,""):!1!==r&&null!=r&&"function"!==typeof r&&"symbol"!==typeof r?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":null!=r&&"function"!==typeof r&&"symbol"!==typeof r&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":null==r||"function"===typeof r||"symbol"===typeof r||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":Kc("beforetoggle",e),Kc("toggle",e),lt(e,"popover",r);break;case"xlinkActuate":ct(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":ct(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":ct(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":ct(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":ct(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":ct(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":ct(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":ct(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":ct(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":lt(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])&<(e,n=Ot.get(n)||n,r)}}function dd(e,t,n,r,i,a){switch(n){case"style":Tt(e,r,a);break;case"dangerouslySetInnerHTML":if(null!=r){if("object"!==typeof r||!("__html"in r))throw Error(o(61));if(null!=(n=r.__html)){if(null!=i.children)throw Error(o(60));e.innerHTML=n}}break;case"children":"string"===typeof r?Ct(e,r):("number"===typeof r||"bigint"===typeof r)&&Ct(e,""+r);break;case"onScroll":null!=r&&Kc("scroll",e);break;case"onScrollEnd":null!=r&&Kc("scrollend",e);break;case"onClick":null!=r&&(e.onclick=At);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":case"innerText":case"textContent":break;default:nt.hasOwnProperty(n)||("o"!==n[0]||"n"!==n[1]||(i=n.endsWith("Capture"),t=n.slice(2,i?n.length-7:void 0),"function"===typeof(a=null!=(a=e[Be]||null)?a[n]:null)&&e.removeEventListener(t,a,i),"function"!==typeof r)?n in e?e[n]=r:!0===r?e.setAttribute(n,""):lt(e,n,r):("function"!==typeof a&&null!==a&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,i)))}}function fd(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Kc("error",e),Kc("load",e);var r,i=!1,a=!1;for(r in n)if(n.hasOwnProperty(r)){var s=n[r];if(null!=s)switch(r){case"src":i=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:cd(e,t,r,s,n,null)}}return a&&cd(e,t,"srcSet",n.srcSet,n,null),void(i&&cd(e,t,"src",n.src,n,null));case"input":Kc("invalid",e);var l=r=s=a=null,u=null,c=null;for(i in n)if(n.hasOwnProperty(i)){var d=n[i];if(null!=d)switch(i){case"name":a=d;break;case"type":s=d;break;case"checked":u=d;break;case"defaultChecked":c=d;break;case"value":r=d;break;case"defaultValue":l=d;break;case"children":case"dangerouslySetInnerHTML":if(null!=d)throw Error(o(137,t));break;default:cd(e,t,i,d,n,null)}}return void bt(e,r,l,u,c,s,a,!1);case"select":for(a in Kc("invalid",e),i=s=r=null,n)if(n.hasOwnProperty(a)&&null!=(l=n[a]
vendor: 4,244 bytes, line 2
2))switch(a){case"value":r=l;break;case"defaultValue":s=l;break;case"multiple":i=l;default:cd(e,t,a,l,n,null)}return t=r,n=s,e.multiple=!!i,void(null!=t?wt(e,!!i,t,!1):null!=n&&wt(e,!!i,n,!0));case"textarea":for(s in Kc("invalid",e),r=a=i=null,n)if(n.hasOwnProperty(s)&&null!=(l=n[s]))switch(s){case"value":i=l;break;case"defaultValue":a=l;break;case"children":r=l;break;case"dangerouslySetInnerHTML":if(null!=l)throw Error(o(91));break;default:cd(e,t,s,l,n,null)}return void _t(e,i,a,r);case"option":for(u in n)if(n.hasOwnProperty(u)&&null!=(i=n[u]))if("selected"===u)e.selected=i&&"function"!==typeof i&&"symbol"!==typeof i;else cd(e,t,u,i,n,null);return;case"dialog":Kc("beforetoggle",e),Kc("toggle",e),Kc("cancel",e),Kc("close",e);break;case"iframe":case"object":Kc("load",e);break;case"video":case"audio":for(i=0;i<$c.length;i++)Kc($c[i],e);break;case"image":Kc("error",e),Kc("load",e);break;case"details":Kc("toggle",e);break;case"embed":case"source":case"link":Kc("error",e),Kc("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&null!=(i=n[c]))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(o(137,t));default:cd(e,t,c,i,n,null)}return;default:if(Mt(t)){for(d in n)n.hasOwnProperty(d)&&(void 0!==(i=n[d])&&dd(e,t,d,i,n,void 0));return}}for(l in n)n.hasOwnProperty(l)&&(null!=(i=n[l])&&cd(e,t,l,i,n,null))}function pd(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}var hd=null,vd=null;function md(e){return 9===e.nodeType?e:e.ownerDocument}function gd(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function yd(e,t){if(0===e)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return 1===e&&"foreignObject"===t?0:e}function bd(e,t){return"textarea"===e||"noscript"===e||"string"===typeof t.children||"number"===typeof t.children||"bigint"===typeof t.children||"object"===typeof t.dangerouslySetInnerHTML&&null!==t.dangerouslySetInnerHTML&&null!=t.dangerouslySetInnerHTML.__html}var kd=null;var wd="function"===typeof setTimeout?setTimeout:void 0,Sd="function"===typeof clearTimeout?clearTimeout:void 0,_d="function"===typeof Promise?Promise:void 0,Cd="function"===typeof queueMicrotask?queueMicrotask:"undefined"!==typeof _d?function(e){return _d.resolve(null).then(e).catch(Ed)}:wd;function Ed(e){setTimeout((function(){throw e}))}function xd(e){return"head"===e}function Td(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&8===i.nodeType)if("/$"===(n=i.data)||"/&"===n){if(0===r)return e.removeChild(i),void Wf(t);r--}else if("$"===n||"$?"===n||"$~"===n||"$!"===n||"&"===n)r++;else if("html"===n)Fd(e.ownerDocument.documentElement);else if("head"===n){Fd(n=e.ownerDocument.head);for(var a=n.firstChild;a;){var o=a.nextSibling,s=a.nodeName;a[Qe]||"SCRIPT"===s||"STYLE"===s||"LINK"===s&&"stylesheet"===a.rel.toLowerCase()||n.removeChild(a),a=o}}else"body"===n&&Fd(e.ownerDocument.body);n=i}while(n);Wf(t)}function Md(e,t){var n=e;e=0;do{var r=n.nextSibling;if(1===n.nodeType?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",""===n.getAttribute("style")&&n.removeAttribute("style")):3===n.nodeType&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&8===r.nodeType)if("/$"===(n=r.data)){if(0===e)break;e--}else"$"!==n&&"$?"!==n&&"$~"!==n&&"$!"!==n||e++;n=r}while(n)}function Od(e){var t=e.firstChild;for(t&&10===t.nodeType&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":Od(n),Ge(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if("stylesheet"===n.rel.toLowerCase())continue}e.removeChild(n)}}function Pd(e,t){for(;8!==e.nodeType;){if((1!==e.nodeType||"INPUT"!==e.nodeName||"hidden"!==e.type)&&!t)return null;if(null===(e=Ld(e.nextSibling)))return null}return e}function jd(e){return"$?"===e.data||"$~"===e.data}function Ad(e){return"$!"===e.data||"$?"===e.data&&"loading"!==e.ownerDocument.readyState}function Ld(e){for(;null!=e;e=e.nextSibling){var t=e.nodeType;if(1===t||3===t)break;
vendor: 4,897 bytes, line 2
2if(8===t){if("$"===(t=e.data)||"$!"===t||"$?"===t||"$~"===t||"&"===t||"F!"===t||"F"===t)break;if("/$"===t||"/&"===t)return null}}return e}var Id=null;function Nd(e){e=e.nextSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("/$"===n||"/&"===n){if(0===t)return Ld(e.nextSibling);t--}else"$"!==n&&"$!"!==n&&"$?"!==n&&"$~"!==n&&"&"!==n||t++}e=e.nextSibling}return null}function Dd(e){e=e.previousSibling;for(var t=0;e;){if(8===e.nodeType){var n=e.data;if("$"===n||"$!"===n||"$?"===n||"$~"===n||"&"===n){if(0===t)return e;t--}else"/$"!==n&&"/&"!==n||t++}e=e.previousSibling}return null}function Rd(e,t,n){switch(t=md(n),e){case"html":if(!(e=t.documentElement))throw Error(o(452));return e;case"head":if(!(e=t.head))throw Error(o(453));return e;case"body":if(!(e=t.body))throw Error(o(454));return e;default:throw Error(o(451))}}function Fd(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);Ge(e)}var zd=new Map,Ud=new Set;function Vd(e){return"function"===typeof e.getRootNode?e.getRootNode():9===e.nodeType?e:e.ownerDocument}var Bd=N.d;N.d={f:function(){var e=Bd.f(),t=Zu();return e||t},r:function(e){var t=Ye(e);null!==t&&5===t.tag&&"form"===t.type?rs(t):Bd.r(e)},D:function(e){Bd.D(e),Hd("dns-prefetch",e,null)},C:function(e,t){Bd.C(e,t),Hd("preconnect",e,t)},L:function(e,t,n){Bd.L(e,t,n);var r=qd;if(r&&e&&t){var i='link[rel="preload"][as="'+gt(t)+'"]';"image"===t&&n&&n.imageSrcSet?(i+='[imagesrcset="'+gt(n.imageSrcSet)+'"]',"string"===typeof n.imageSizes&&(i+='[imagesizes="'+gt(n.imageSizes)+'"]')):i+='[href="'+gt(e)+'"]';var a=i;switch(t){case"style":a=Jd(e);break;case"script":a=Gd(e)}zd.has(a)||(e=p({rel:"preload",href:"image"===t&&n&&n.imageSrcSet?void 0:e,as:t},n),zd.set(a,e),null!==r.querySelector(i)||"style"===t&&r.querySelector($d(a))||"script"===t&&r.querySelector(Kd(a))||(fd(t=r.createElement("link"),"link",e),et(t),r.head.appendChild(t)))}},m:function(e,t){Bd.m(e,t);var n=qd;if(n&&e){var r=t&&"string"===typeof t.as?t.as:"script",i='link[rel="modulepreload"][as="'+gt(r)+'"][href="'+gt(e)+'"]',a=i;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":a=Gd(e)}if(!zd.has(a)&&(e=p({rel:"modulepreload",href:e},t),zd.set(a,e),null===n.querySelector(i))){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(Kd(a)))return}fd(r=n.createElement("link"),"link",e),et(r),n.head.appendChild(r)}}},X:function(e,t){Bd.X(e,t);var n=qd;if(n&&e){var r=Ze(n).hoistableScripts,i=Gd(e),a=r.get(i);a||((a=n.querySelector(Kd(i)))||(e=p({src:e,async:!0},t),(t=zd.get(i))&&ef(e,t),et(a=n.createElement("script")),fd(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},r.set(i,a))}},S:function(e,t,n){Bd.S(e,t,n);var r=qd;if(r&&e){var i=Ze(r).hoistableStyles,a=Jd(e);t=t||"default";var o=i.get(a);if(!o){var s={loading:0,preload:null};if(o=r.querySelector($d(a)))s.loading=5;else{e=p({rel:"stylesheet",href:e,"data-precedence":t},n),(n=zd.get(a))&&Zd(e,n);var l=o=r.createElement("link");et(l),fd(l,"link",e),l._p=new Promise((function(e,t){l.onload=e,l.onerror=t})),l.addEventListener("load",(function(){s.loading|=1})),l.addEventListener("error",(function(){s.loading|=2})),s.loading|=4,Xd(o,t,r)}o={type:"stylesheet",instance:o,count:1,state:s},i.set(a,o)}}},M:function(e,t){Bd.M(e,t);var n=qd;if(n&&e){var r=Ze(n).hoistableScripts,i=Gd(e),a=r.get(i);a||((a=n.querySelector(Kd(i)))||(e=p({src:e,async:!0,type:"module"},t),(t=zd.get(i))&&ef(e,t),et(a=n.createElement("script")),fd(a,"link",e),n.head.appendChild(a)),a={type:"script",instance:a,count:1,state:null},r.set(i,a))}}};var qd="undefined"===typeof document?null:document;function Hd(e,t,n){var r=qd;if(r&&"string"===typeof t&&t){var i=gt(t);i='link[rel="'+e+'"][href="'+i+'"]',"string"===typeof n&&(i+='[crossorigin="'+n+'"]'),Ud.has(i)||(Ud.add(i),e={rel:e,crossOrigin:n,href:t},null===r.querySelector(i)&&(fd(t=r.createElement("link"),"link",e),et(t),r.head.appendChild(t)))}}function Wd(e,t,n,r){var i,a,s,l,u=(u=J.current)?Vd(u):null;if(!u)throw Error(o(446));switch(e){case"meta":case"title":return null;case"style":return"string"===typeof n.precedence&&"string"===typeof n.href?(t=Jd(n.href),(r=(n=Ze(u).hoistableStyles).get(t))||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if("stylesheet"===n.rel&&"string"===typeof n.href&&"string"===typeof n.precedence){e=Jd(n.href);var c=Ze(u).hoistableStyles,d=c.get(e);if(d||(u=u.ownerDocument||u,d={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},c.set(e,d),(c=u.querySelector($d(e)))&&!c._p&&(d.instance=c,d.state.loading=5),zd.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy}
vendor: 5,854 bytes, line 2
2,zd.set(e,n),c||(i=u,a=e,s=n,l=d.state,i.querySelector('link[rel="preload"][as="style"]['+a+"]")?l.loading=1:(a=i.createElement("link"),l.preload=a,a.addEventListener("load",(function(){return l.loading|=1})),a.addEventListener("error",(function(){return l.loading|=2})),fd(a,"link",s),et(a),i.head.appendChild(a))))),t&&null===r)throw Error(o(528,""));return d}if(t&&null!==r)throw Error(o(529,""));return null;case"script":return t=n.async,"string"===typeof(n=n.src)&&t&&"function"!==typeof t&&"symbol"!==typeof t?(t=Gd(n),(r=(n=Ze(u).hoistableScripts).get(t))||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(o(444,e))}}function Jd(e){return'href="'+gt(e)+'"'}function $d(e){return'link[rel="stylesheet"]['+e+"]"}function Qd(e){return p({},e,{"data-precedence":e.precedence,precedence:null})}function Gd(e){return'[src="'+gt(e)+'"]'}function Kd(e){return"script[async]"+e}function Yd(e,t,n){if(t.count++,null===t.instance)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+gt(n.href)+'"]');if(r)return t.instance=r,et(r),r;var i=p({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return et(r=(e.ownerDocument||e).createElement("style")),fd(r,"style",i),Xd(r,n.precedence,e),t.instance=r;case"stylesheet":i=Jd(n.href);var a=e.querySelector($d(i));if(a)return t.state.loading|=4,t.instance=a,et(a),a;r=Qd(n),(i=zd.get(i))&&Zd(r,i),et(a=(e.ownerDocument||e).createElement("link"));var s=a;return s._p=new Promise((function(e,t){s.onload=e,s.onerror=t})),fd(a,"link",r),t.state.loading|=4,Xd(a,n.precedence,e),t.instance=a;case"script":return a=Gd(n.src),(i=e.querySelector(Kd(a)))?(t.instance=i,et(i),i):(r=n,(i=zd.get(a))&&ef(r=p({},n),i),et(i=(e=e.ownerDocument||e).createElement("script")),fd(i,"link",r),e.head.appendChild(i),t.instance=i);case"void":return null;default:throw Error(o(443,t.type))}else"stylesheet"===t.type&&0===(4&t.state.loading)&&(r=t.instance,t.state.loading|=4,Xd(r,n.precedence,e));return t.instance}function Xd(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),i=r.length?r[r.length-1]:null,a=i,o=0;o<r.length;o++){var s=r[o];if(s.dataset.precedence===t)a=s;else if(a!==i)break}a?a.parentNode.insertBefore(e,a.nextSibling):(t=9===n.nodeType?n.head:n).insertBefore(e,t.firstChild)}function Zd(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.title&&(e.title=t.title)}function ef(e,t){null==e.crossOrigin&&(e.crossOrigin=t.crossOrigin),null==e.referrerPolicy&&(e.referrerPolicy=t.referrerPolicy),null==e.integrity&&(e.integrity=t.integrity)}var tf=null;function nf(e,t,n){if(null===tf){var r=new Map,i=tf=new Map;i.set(n,r)}else(r=(i=tf).get(n))||(r=new Map,i.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),i=0;i<n.length;i++){var a=n[i];if(!(a[Qe]||a[Ve]||"link"===e&&"stylesheet"===a.getAttribute("rel"))&&"http://www.w3.org/2000/svg"!==a.namespaceURI){var o=a.getAttribute(t)||"";o=e+o;var s=r.get(o);s?s.push(a):r.set(o,[a])}}return r}function rf(e,t,n){(e=e.ownerDocument||e).head.insertBefore(n,"title"===t?e.querySelector("head > title"):null)}function af(e){return"stylesheet"!==e.type||0!==(3&e.state.loading)}var of=0;function sf(){if(this.count--,0===this.count&&(0===this.imgCount||!this.waitingForImages))if(this.stylesheets)uf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}var lf=null;function uf(e,t){e.stylesheets=null,null!==e.unsuspend&&(e.count++,lf=new Map,t.forEach(cf,e),lf=null,sf.call(e))}function cf(e,t){if(!(4&t.state.loading)){var n=lf.get(e);if(n)var r=n.get(null);else{n=new Map,lf.set(e,n);for(var i=e.querySelectorAll("link[data-precedence],style[data-precedence]"),a=0;a<i.length;a++){var o=i[a];"LINK"!==o.nodeName&&"not all"===o.getAttribute("media")||(n.set(o.dataset.precedence,o),r=o)}r&&n.set(null,r)}o=(i=t.instance).getAttribute("data-precedence"),(a=n.get(o)||r)===r&&n.set(null,i),n.set(o,i),this.count++,r=sf.bind(this),i.addEventListener("load",r),i.addEventListener("error",r),a?a.parentNode.insertBefore(i,a.nextSibling):(e=9===e.nodeType?e.head:e).insertBefore(i,e.firstChild),t.state.loading|=4}}var df={$$typeof:w,Provider:null,Consumer:null,_currentValue:D,_currentValue2:D,_threadCount:0};function ff(e,t,n,r,i,a,o,s,l){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=je(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=je(0),this.hiddenUpdates=je(null),this.identifierPrefix=r,this.onUncaughtError=i,this.onCaughtError=a,this.onRecoverableError=o,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function pf(e,t,n,r,i,a,o,s,l,u,c,d){return e=new ff(e,t,n,o,l,u,c,d,s),t=1,!0===a&&(t|=24),a=Fr(3,null,null,t),e.current=a,a.stateNode=e,(t=zi()).refCount++,e.pooledCache=t,t.refCount++,a.memoizedState={element:r,isDehydrated:n,cache:t},ma(a),e}function hf(e){return e?e=Dr:Dr}function vf(e,t,n,r,i,a){i=hf(i),null===r.context?r.context=i:r.pendingContext=i,(r=ya(t)).payload={element:n},null!==(a=void 0===a?null:a)&&(r.callback=a),null!==(n=ba(e,r,t))&&(Qu(n,0,t),ka(n,e,t))}function mf(e,t){if(null!==(e=e.memoizedState)&&null!==e.dehydrated){var n=e.retryLane;e.retryLane=0!==n&&n<t?n:t}}function gf(e,t){mf(e,t),(e=e.alternate)&&mf(e,t)}function yf(e){if(13===e.tag||31===e.tag){var t=Lr(e,67108864);null!==t&&Qu(t,0,67108864),gf(e,67108864)}}
vendor: 3,890 bytes, line 2
2function bf(e){if(13===e.tag||31===e.tag){var t=Ju(),n=Lr(e,t=De(t));null!==n&&Qu(n,0,t),gf(e,t)}}var kf=!0;function wf(e,t,n,r){var i=I.T;I.T=null;var a=N.p;try{N.p=2,_f(e,t,n,r)}finally{N.p=a,I.T=i}}function Sf(e,t,n,r){var i=I.T;I.T=null;var a=N.p;try{N.p=8,_f(e,t,n,r)}finally{N.p=a,I.T=i}}function _f(e,t,n,r){if(kf){var i=Cf(r);if(null===i)td(e,t,r,Ef,n),Df(e,r);else if(function(e,t,n,r,i){switch(t){case"focusin":return Of=Rf(Of,e,t,n,r,i),!0;case"dragenter":return Pf=Rf(Pf,e,t,n,r,i),!0;case"mouseover":return jf=Rf(jf,e,t,n,r,i),!0;case"pointerover":var a=i.pointerId;return Af.set(a,Rf(Af.get(a)||null,e,t,n,r,i)),!0;case"gotpointercapture":return a=i.pointerId,Lf.set(a,Rf(Lf.get(a)||null,e,t,n,r,i)),!0}return!1}(i,e,t,n,r))r.stopPropagation();else if(Df(e,r),4&t&&-1<Nf.indexOf(e)){for(;null!==i;){var a=Ye(i);if(null!==a)switch(a.tag){case 3:if((a=a.stateNode).current.memoizedState.isDehydrated){var o=xe(a.pendingLanes);if(0!==o){var s=a;for(s.pendingLanes|=2,s.entangledLanes|=2;o;){var l=1<<31-ke(o);s.entanglements[1]|=l,o&=~l}Nc(a),0===(6&pu)&&(Iu=le()+500,Dc(0,!1))}}break;case 31:case 13:null!==(s=Lr(a,2))&&Qu(s,0,2),Zu(),gf(a,2)}if(null===(a=Cf(r))&&td(e,t,r,Ef,n),a===i)break;i=a}null!==i&&r.stopPropagation()}else td(e,t,r,null,n)}}function Cf(e){return xf(e=It(e))}var Ef=null;function xf(e){if(Ef=null,null!==(e=Ke(e))){var t=l(e);if(null===t)e=null;else{var n=t.tag;if(13===n){if(null!==(e=u(t)))return e;e=null}else if(31===n){if(null!==(e=c(t)))return e;e=null}else if(3===n){if(t.stateNode.current.memoizedState.isDehydrated)return 3===t.tag?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return Ef=e,null}function Tf(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(ue()){case ce:return 2;case de:return 8;case fe:case pe:return 32;case he:return 268435456;default:return 32}default:return 32}}var Mf=!1,Of=null,Pf=null,jf=null,Af=new Map,Lf=new Map,If=[],Nf="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function Df(e,t){switch(e){case"focusin":case"focusout":Of=null;break;case"dragenter":case"dragleave":Pf=null;break;case"mouseover":case"mouseout":jf=null;break;case"pointerover":case"pointerout":Af.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":Lf.delete(t.pointerId)}}function Rf(e,t,n,r,i,a){return null===e||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},null!==t&&(null!==(t=Ye(t))&&yf(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,null!==i&&-1===t.indexOf(i)&&t.push(i),e)}function Ff(e){var t=Ke(e.target);if(null!==t){var n=l(t);
2if(null!==n)if(13===(t=n.tag)){if(null!==(t=u(n)))return e.blockedOn=t,void ze(e.priority,(function(){bf(n)}))}else if(31===t){if(null!==(t=c(n)))return e.blockedOn=t,void ze(e.priority,(function(){bf(n)}))}else if(3===t&&n.stateNode.current.memoizedState.isDehydrated)return void(e.blockedOn=3===n.tag?n.stateNode.containerInfo:null)}e.blockedOn=null}function zf(e){if(null!==e.blockedOn)return!1;for(var t=e.targetContainers;0<t.length;){var n=Cf(e.nativeEvent);if(null!==n)return null!==(t=Ye(n))&&yf(t),e.blockedOn=n,!1;var r=new(n=e.nativeEvent).constructor(n.type,n);Lt=r,n.target.dispatchEvent(r),Lt=null,t.shift()}return!0}function Uf(e,t,n){zf(e)&&n.delete(t)}function Vf(){Mf=!1,null!==Of&&zf(Of)&&(Of=null),null!==Pf&&zf(Pf)&&(Pf=null),null!==jf&&zf(jf)&&(jf=null),Af.forEach(Uf),Lf.forEach(Uf)}function Bf(e,t){e.blockedOn===t&&(e.blockedOn=null,Mf||(Mf=!0,r.unstable_scheduleCallback(r.unstable_NormalPriority,Vf)))}var qf=null;function Hf(e){qf!==e&&(qf=e,r.unstable_scheduleCallback(r.unstable_NormalPriority,(function(){qf===e&&(qf=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],i=e[t+2];if("function"!==typeof r){if(null===xf(r||n))continue;break}var a=Ye(n);null!==a&&(e.splice(t,3),t-=3,ts(a,{pending:!0,data:i,method:n.method,action:r},r,i))}})))}function Wf(e){function t(t){return Bf(t,e)}null!==Of&&Bf(Of,e),null!==Pf&&Bf(Pf,e),null!==jf&&Bf(jf,e),Af.forEach(t),Lf.forEach(t);for(var n=0;n<If.length;n++){var r=If[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<If.length&&null===(n=If[0]).blockedOn;)Ff(n),null===n.blockedOn&&If.shift();if(null!=(n=(e.ownerDocument||e).$$reactFormReplay))for(r=0;r<n.length;r+=3){var i=n[r],a=n[r+1],o=i[Be]||null;if("function"===typeof a)o||Hf(n);else if(o){var s=null;if(a&&a.hasAttribute("formAction")){if(i=a,o=a[Be]||null)s=o.formAction;else if(null!==xf(i))continue}else s=o.action;"function"===typeof s?n[r+1]=s:(n.splice(r,3),r-=3),Hf(n)}}}function Jf(){function e(e){e.canIntercept&&"react-transition"===e.info&&e.intercept({handler:function(){return new Promise((function(e){return i=e}))},focusReset:"manual",scroll:"manual"})}function t(){null!==i&&(i(),i=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var e=navigation.currentEntry;e&&null!=e.url&&navigation.navigate(e.url,{state:e.getState(),info:"react-transition",history:"replace"})}}if("object"===typeof navigation){var r=!1,i=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),null!==i&&(i(),i=null)}}}function $f(e){this._internalRoot=e}function Qf(e){this._internalRoot=e}Qf.prototype.render=$f.prototype.render=function(e){var t=this._internalRoot;if(null===t)throw Error(o(409));vf(t.current,Ju(),e,t,null,null)},Qf.prototype.unmount=$f.prototype.unmount=function(){var e=this._internalRoot;if(null!==e){this._internalRoot=null;var t=e.containerInfo;vf(e.current,2,null,e,null,null),Zu(),t[qe]=null}},Qf.prototype.unstable_scheduleHydration=function(e){if(e){var t=Fe();e={blockedOn:null,target:e,priority:t};for(var n=0;n<If.length&&0!==t&&t<If[n].priority;n++);If.splice(n,0,e),0===n&&Ff(e)}};var Gf=i.version;if("19.2.4"!==Gf)throw Error(o(527,Gf,"19.2.4"));N.findDOMNode=function(e){var t=e._reactInternals;if(void 0===t){if("function"===typeof e.render)throw Error(o(188));throw e=Object.keys(e).join(","),Error(o(268,e))}return e=function(e){var t=e.alternate;if(!t){if(null===(t=l(e)))throw Error(o(188));return t!==e?null:e}for(var n=e,r=t;;){var i=n.return;if(null===i)break;var a=i.alternate;if(null===a){if(null!==(r=i.return)){n=r;continue}break}if(i.child===a.child){for(a=i.child;a;){if(a===n)return d(i),e;if(a===r)return d(i),t;a=a.sibling}throw Error(o(188))}if(n.return!==r.return)n=i,r=a;else{for(var s=!1,u=i.child;u;){if(u===n){s=!0,n=i,r=a;break}if(u===r){s=!0,r=i,n=a;break}u=u.sibling}if(!s){for(u=a.child;u;){if(u===n){s=!0,n=a,r=i;break}if(u===r){s=!0,r=a,n=i;break}u=u.sibling}if(!s)throw Error(o(189))}}if(n.alternate!==r)throw Error(o(190))}if(3!==n.tag)throw Error(o(188));return n.stateNode.current===n?e:t}(t),e=null===(e=null!==e?f(e):null)?null:e.stateNode};var Kf={bundleType:0,version:"19.2.4",rendererPackageName:"react-dom",currentDispatcherRef:I,reconcilerVersion:"19.2.4"};if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__){var Yf=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Yf.isDisabled&&Yf.supportsFiber)try{ge=Yf.inject(Kf),ye=Yf}catch(Zf){}}t.createRoot=function(e,t){if(!s(e))throw Error(o(299));var n=!1,r="",i=Cs,a=Es,l=xs;return null!==t&&void 0!==t&&(!0===t.unstable_strictMode&&(n=!0),void 0!==t.identifierPrefix&&(r=t.identifierPrefix),void 0!==t.onUncaughtError&&(i=t.onUncaughtError),void 0!==t.onCaughtError&&(a=t.onCaughtError),void 0!==t.onRecoverableError&&(l=t.onRecoverableError)),t=pf(e,1,!1,null,0,n,r,null,i,a,l,Jf),e[qe]=t.current,Zc(e),new $f(t)}},125:function(e,t,n){"use strict";var r=n(791);function i(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var o={d:{f:a,r:function(){throw Error(i(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},s=Symbol.for("react.portal");var l=r.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function u(e,t){return"font"===e?"":"string"===typeof t?"use-credentials"===t?t:"":void 0}t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=o,t.createPortal=function(e,t){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:null;if(!t||1!==t.nodeType&&9!==t.nodeType&&11!==t.nodeType)throw Error(i(299));return function(e,t,n){var r=3<arguments.length&&void 0!==arguments[3]?arguments[3]:null;return{$$typeof:s,key:null==r?null:""+r,children:e,containerInfo:t,implementation:n}}(e,t,null,n)},t.flushSync=function(e){var t=l.T,n=o.p;try{if(l.T=null,o.p=2,e)return e()}finally{l.T=t,o.p=n,o.d.f()}},t.preconnect=function(e,t){"string"===typeof e&&(t?t="string"===typeof(t=t.crossOrigin)?"use-credentials"===t?t:"":void 0:t=null,o.d.C(e,t))},t.prefetchDNS=function(e){"string"===typeof e&&o.d.D(e)},t.preinit=function(e,t){if("string"===typeof e&&t&&"string"===typeof t.as){var n=t.as,r=u(n,t.crossOrigin),i="string"===typeof t.integrity?t.integrity:void 0,a="string"===typeof t.fetchPriority?t.fetchPriority:void 0;"style"===n?o.d.S(e,"string"===typeof t.precedence?t.precedence:void 0,{crossOrigin:r,integrity:i,fetchPriority:a}):"script"===n&&o.d.X(e,{crossOrigin:r,integrity:i,fetchPriority:a,nonce:"string"===typeof t.nonce?t.nonce:void 0})}},t.preinitModule=function(e,t){if("string"===typeof e)if("object"===typeof t&&null!==t){if(null==t.as||"script"===t.as){var n=u(t.as,t.crossOrigin);o.d.M(e,{crossOrigin:n,integrity:"string"===typeof t.integrity?t.integrity:void 0,nonce:"string"===typeof t.nonce?t.nonce:void 0})}}else null==t&&o.d.M(e)},t.preload=function(e,t){if("string"===typeof e&&"object"===typeof t&&null!==t&&"string"===typeof t.as){var n=t.as,r=u(n,t.crossOrigin);o.d.L(e,n,{crossOrigin:r,integrity:"string"===typeof t.integrity?t.integrity:void 0,nonce:"string"===typeof t.nonce?t.nonce:void 0,type:"string"===typeof t.type?t.type:void 0,fetchPriority:"string"===typeof t.fetchPriority?t.fetchPriority:void 0,referrerPolicy:"str
2ing"===typeof t.referrerPolicy?t.referrerPolicy:void 0,imageSrcSet:"string"===typeof t.imageSrcSet?t.imageSrcSet:void 0,imageSizes:"string"===typeof t.imageSizes?t.imageSizes:void 0,media:"string"===typeof t.media?t.media:void 0})}},t.preloadModule=function(e,t){if("string"===typeof e)if(t){var n=u(t.as,t.crossOrigin);o.d.m(e,{as:"string"===typeof t.as&&"script"!==t.as?t.as:void 0,crossOrigin:n,integrity:"string"===typeof t.integrity?t.integrity:void 0})}else o.d.m(e)},t.requestFormReset=function(e){o.d.r(e)},t.unstable_batchedUpdates=function(e,t){return e(t)},t.useFormState=function(e,t,n){return l.H.useFormState(e,t,n)},t.useFormStatus=function(){return l.H.useHostTransitionStatus()},t.version="19.2.4"},250:function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(38)},164:function(e,t,n){"use strict";!function e(){if("undefined"!==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"===typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE)try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(e)}catch(t){console.error(t)}}(),e.exports=n(125)},667:function(e,t){"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.fragment");function i(e,t,r){var i=null;if(void 0!==r&&(i=""+r),void 0!==t.key&&(i=""+t.key),"key"in t)for(var a in r={},t)"key"!==a&&(r[a]=t[a]);else r=t;return t=r.ref,{$$typeof:n,type:e,key:i,ref:void 0!==t?t:null,props:r}}t.Fragment=r,t.jsx=i,t.jsxs=i},34:function(e,t){"use strict";var n=Symbol.for("react.transitional.element"),r=Symbol.for("react.portal"),i=Symbol.for("react.fragment"),a=Symbol.for("react.strict_mode"),o=Symbol.for("react.profiler"),s=Symbol.for("react.consumer"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),c=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),f=Symbol.for("react.lazy"),p=Symbol.for("react.activity"),h=Symbol.iterator;var v={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},m=Object.assign,g={};function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||v}function b(){}function k(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||v}y.prototype.isReactComponent={},y.prototype.setState=function(e,t){if("object"!==typeof e&&"function"!==typeof e&&null!=e)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,e,t,"setState")},y.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")},b.prototype=y.prototype;var w=k.prototype=new b;w.constructor=k,m(w,y.prototype),w.isPureReactComponent=!0;var S=Array.isArray;function _(){}var C={H:null,A:null,T:null,S:null},E=Object.prototype.hasOwnProperty;function x(e,t,r){var i=r.ref;return{$$typeof:n,type:e,key:t,ref:void 0!==i?i:null,props:r}}function T(e){return"object"===typeof e&&null!==e&&e.$$typeof===n}var M=/\/+/g;function O(e,t){return"object"===typeof e&&null!==e&&null!=e.key?function(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,(function(e){return t[e]}))}(""+e.key):t.toString(36)}function P(e,t,i,a,o){var s=typeof e;"undefined"!==s&&"boolean"!==s||(e=null);var l,u,c=!1;if(null===e)c=!0;else switch(s){case"bigint":case"string":case"number":c=!0;break;case"object":switch(e.$$typeof){case n:case r:c=!0;break;case f:return P((c=e._init)(e._payload),t,i,a,o)}}if(c)return o=o(e),c=""===a?"."+O(e,0):a,S(o)?(i="",null!=c&&(i=c.replace(M,"$&/")+"/"),P(o,t,i,"",(function(e){return e}))):null!=o&&(T(o)&&(l=o,u=i+(null==o.key||e&&e.key===o.key?"":(""+o.key).replace(M,"$&/")+"/")+c,o=x(l.type,u,l.props)),t.push(o)),1;c=0;var d,p=""===a?".":a+":";if(S(e))for(var v=0;v<e.length;v++)c+=P(a=e[v],t,i,s=p+O(a,v),o);else if("function"===typeof(v=null===(d=e)||"object"!==typeof d?null:"function"===typeof(d=h&&d[h]||d["@@iterator"])?d:null))for(e=v.call(e),v=0;!(a=e.next()).done;)c+=P(a=a.value,t,i,s=p+O(a,v++),o);else if("object"===s){if("function"===typeof e.then)return P(function(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch("string"===typeof e.status?e.then(_,_):(e.status="pending",e.then((function(t){"pending"===e.status&&(e.status="fulfilled",e.value=t)}),(function(t){"pending"===e.status&&(e.status="rejected",e.reason=t)}))),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}(e),t,i,a,o);throw t=String(e),Error("Objects are not valid as a React child (found: "+("[object Object]"===t?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return c}function j(e,t,n){if(null==e)return e;var r=[],i=0;return P(e,r,"","",(function(e){return t.call(n,e,i++)})),r}function A(e){if(-1===e._status){var t=e._result;(t=t()).then((function(t){0!==e._status&&-1!==e._status||(e._status=1,e._result=t)}),(function(t){0!==e._status&&-1!==e._status||(e._status=2,e._result=t)})),-1===e._status&&(e._status=0,e._result=t)}if(1===e._status)return e._result.default;throw e._result}var L="function"===typeof reportError?reportError:function(e){if("object"===typeof window&&"function"===typeof window.ErrorEvent){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:"object"===typeof e&&null!==e&&"string"===typeof e.message?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if("object"===typeof process&&"function"===typeof process.emit)return void process.emit("uncaughtException",e);console.error(e)},I={map:j,forEach:function(e,t,n){j(e,(function(){t.apply(this,arguments)}),n)},count:function(e){var t=0;return j(e,(function(){t++})),t},toArray:function(e){return j(e,(function(e){return e}))||[]},only:function(e){if(!T(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};t.Activity=p,t.Children=I,t.Component=y,t.Fragment=i,t.Profiler=o,t.PureComponent=k,t.StrictMode=a,t.Suspense=c,t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=C,t.__COMPILER_RUNTIME={__proto__:null,c:function(e){return C.H.useMemoCache(e)}}
vendor: 4,665 bytes, line 2
2,t.cache=function(e){return function(){return e.apply(null,arguments)}},t.cacheSignal=function(){return null},t.cloneElement=function(e,t,n){if(null===e||void 0===e)throw Error("The argument must be a React element, but you passed "+e+".");var r=m({},e.props),i=e.key;if(null!=t)for(a in void 0!==t.key&&(i=""+t.key),t)!E.call(t,a)||"key"===a||"__self"===a||"__source"===a||"ref"===a&&void 0===t.ref||(r[a]=t[a]);var a=arguments.length-2;if(1===a)r.children=n;else if(1<a){for(var o=Array(a),s=0;s<a;s++)o[s]=arguments[s+2];r.children=o}return x(e.type,i,r)},t.createContext=function(e){return(e={$$typeof:l,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null}).Provider=e,e.Consumer={$$typeof:s,_context:e},e},t.createElement=function(e,t,n){var r,i={},a=null;if(null!=t)for(r in void 0!==t.key&&(a=""+t.key),t)E.call(t,r)&&"key"!==r&&"__self"!==r&&"__source"!==r&&(i[r]=t[r]);var o=arguments.length-2;if(1===o)i.children=n;else if(1<o){for(var s=Array(o),l=0;l<o;l++)s[l]=arguments[l+2];i.children=s}if(e&&e.defaultProps)for(r in o=e.defaultProps)void 0===i[r]&&(i[r]=o[r]);return x(e,a,i)},t.createRef=function(){return{current:null}},t.forwardRef=function(e){return{$$typeof:u,render:e}},t.isValidElement=T,t.lazy=function(e){return{$$typeof:f,_payload:{_status:-1,_result:e},_init:A}},t.memo=function(e,t){return{$$typeof:d,type:e,compare:void 0===t?null:t}},t.startTransition=function(e){var t=C.T,n={};C.T=n;try{var r=e(),i=C.S;null!==i&&i(n,r),"object"===typeof r&&null!==r&&"function"===typeof r.then&&r.then(_,L)}catch(a){L(a)}finally{null!==t&&null!==n.types&&(t.types=n.types),C.T=t}},t.unstable_useCacheRefresh=function(){return C.H.useCacheRefresh()},t.use=function(e){return C.H.use(e)},t.useActionState=function(e,t,n){return C.H.useActionState(e,t,n)},t.useCallback=function(e,t){return C.H.useCallback(e,t)},t.useContext=function(e){return C.H.useContext(e)},t.useDebugValue=function(){},t.useDeferredValue=function(e,t){return C.H.useDeferredValue(e,t)},t.useEffect=function(e,t){return C.H.useEffect(e,t)},t.useEffectEvent=function(e){return C.H.useEffectEvent(e)},t.useId=function(){return C.H.useId()},t.useImperativeHandle=function(e,t,n){return C.H.useImperativeHandle(e,t,n)},t.useInsertionEffect=function(e,t){return C.H.useInsertionEffect(e,t)},t.useLayoutEffect=function(e,t){return C.H.useLayoutEffect(e,t)},t.useMemo=function(e,t){return C.H.useMemo(e,t)},t.useOptimistic=function(e,t){return C.H.useOptimistic(e,t)},t.useReducer=function(e,t,n){return C.H.useReducer(e,t,n)},t.useRef=function(e){return C.H.useRef(e)},t.useState=function(e){return C.H.useState(e)},t.useSyncExternalStore=function(e,t,n){return C.H.useSyncExternalStore(e,t,n)},t.useTransition=function(){return C.H.useTransition()},t.version="19.2.4"},791:function(e,t,n){"use strict";e.exports=n(34)},184:function(e,t,n){"use strict";e.exports=n(667)},593:function(e,t){"use strict";function n(e,t){var n=e.length;e.push(t);e:for(;0<n;){var r=n-1>>>1,i=e[r];if(!(0<a(i,t)))break e;e[r]=t,e[n]=i,n=r}}function r(e){return 0===e.length?null:e[0]}function i(e){if(0===e.length)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;e:for(var r=0,i=e.length,o=i>>>1;r<o;){var s=2*(r+1)-1,l=e[s],u=s+1,c=e[u];if(0>a(l,n))u<i&&0>a(c,l)?(e[r]=c,e[u]=n,r=u):(e[r]=l,e[s]=n,r=s);else{if(!(u<i&&0>a(c,n)))break e;e[r]=c,e[u]=n,r=u}}}return t}function a(e,t){var n=e.sortIndex-t.sortIndex;return 0!==n?n:e.id-t.id}if(t.unstable_now=void 0,"object"===typeof performance&&"function"===typeof performance.now){var o=performance;t.unstable_now=function(){return o.now()}}else{var s=Date,l=s.now();t.unstable_now=function(){return s.now()-l}}var u=[],c=[],d=1,f=null,p=3,h=!1,v=!1,m=!1,g=!1,y="function"===typeof setTimeout?setTimeout:null,b="function"===typeof clearTimeout?clearTimeout:null,k="undefined"!==typeof setImmediate?setImmediate:null;function w(e){for(var t=r(c);null!==t;){if(null===t.callback)i(c);else{if(!(t.startTime<=e))break;i(c),t.sortIndex=t.expirationTime,n(u,t)}t=r(c)}}function S(e){if(m=!1,w(e),!v)if(null!==r(u))v=!0,C||(C=!0,_());else{var t=r(c);null!==t&&A(S,t.startTime-e)}}var _,C=!1,E=-1,x=5,T=-1;function M(){return!!g||!(t.unstable_now()-T<x)}function O(){if(g=!1,C){var e=t.unstable_now();T=e;var n=!0;try{e:{v=!1,m&&(m=!1,b(E),E=-1),h=!0;var a=p;try{t:{for(w(e),f=r(u);null!==f&&!(f.expirationTime>e&&M());){var o=f.callback;if("function"===typeof o){f.callback=null,p=f.priorityLevel;var s=o(f.expirationTime<=e);if(e=t.unstable_now(),"function"===typeof s){f.callback=s,w(e),n=!0;break t}f===r(u)&&i(u),w(e)}else i(u);f=r(u)}if(null!==f)n=!0;else{var l=r(c);null!==l&&A(S,l.startTime-e),n=!1}}break e}finally{f=null,p=a,h=!1}
2n=void 0}}finally{n?_():C=!1}}}if("function"===typeof k)_=function(){k(O)};else if("undefined"!==typeof MessageChannel){var P=new MessageChannel,j=P.port2;P.port1.onmessage=O,_=function(){j.postMessage(null)}}else _=function(){y(O,0)};function A(e,n){E=y((function(){e(t.unstable_now())}),n)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(e){e.callback=null},t.unstable_forceFrameRate=function(e){0>e||125<e?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):x=0<e?Math.floor(1e3/e):5},t.unstable_getCurrentPriorityLevel=function(){return p},t.unstable_next=function(e){switch(p){case 1:case 2:case 3:var t=3;break;default:t=p}var n=p;p=t;try{return e()}finally{p=n}},t.unstable_requestPaint=function(){g=!0},t.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=p;p=e;try{return t()}finally{p=n}},t.unstable_scheduleCallback=function(e,i,a){var o=t.unstable_now();switch("object"===typeof a&&null!==a?a="number"===typeof(a=a.delay)&&0<a?o+a:o:a=o,e){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return e={id:d++,callback:i,priorityLevel:e,startTime:a,expirationTime:s=a+s,sortIndex:-1},a>o?(e.sortIndex=a,n(c,e),null===r(u)&&e===r(c)&&(m?(b(E),E=-1):m=!0,A(S,a-o))):(e.sortIndex=s,n(u,e),v||h||(v=!0,C||(C=!0,_()))),e},t.unstable_shouldYield=M,t.unstable_wrapCallback=function(e){var t=p;return function(){var n=p;p=t;try{return e.apply(this,arguments)}finally{p=n}}}},296:function(e,t,n){"use strict";e.exports=n(593)},61:function(e,t,n){var r=n(698).default;function i(){"use strict";e.exports=i=function(){return t},e.exports.__esModule=!0,e.exports.default=e.exports;var t={},n=Object.prototype,a=n.hasOwnProperty,o=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},l=s.iterator||"@@iterator",u=s.asyncIterator||"@@asyncIterator",c=s.toStringTag||"@@toStringTag";function d(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{d({},"")}catch(j){d=function(e,t,n){return e[t]=n}}function f(e,t,n,r){var i=t&&t.prototype instanceof v?t:v,a=Object.create(i.prototype),s=new M(r||[]);return o(a,"_invoke",{value:C(e,n,s)}),a}function p(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(j){return{type:"throw",arg:j}}}t.wrap=f;var h={};function v(){}function m(){}function g(){}var y={};d(y,l,(function(){return this}));var b=Object.getPrototypeOf,k=b&&b(b(O([])));k&&k!==n&&a.call(k,l)&&(y=k);var w=g.prototype=v.prototype=Object.create(y);function S(e){["next","throw","return"].forEach((function(t){d(e,t,(function(e){return this._invoke(t,e)}))}))}function _(e,t){function n(i,o,s,l){var u=p(e[i],e,o);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==r(d)&&a.call(d,"__await")?t.resolve(d.__await).then((function(e){n("next",e,s,l)}),(function(e){n("throw",e,s,l)})):t.resolve(d).then((function(e){c.value=e,s(c)}),(function(e){return n("throw",e,s,l)}))}l(u.arg)}var i;o(this,"_invoke",{value:function(e,r){function a(){return new t((function(t,i){n(e,r,t,i)}))}return i=i?i.then(a,a):a()}})}function C(e,t,n){var r="suspendedStart";return function(i,a){if("executing"===r)throw new Error("Generator is already running");if("completed"===r){if("throw"===i)throw a;return P()}for(n.method=i,n.arg=a;;){var o=n.delegate;if(o){var s=E(o,n);if(s){if(s===h)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===r)throw r="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r="executing";var l=p(e,t,n);if("normal"===l.type){if(r=n.done?"completed":"suspendedYield",l.arg===h)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(r="completed",n.method="throw",n.arg=l.arg)}}}function E(e,t){var n=t.method,r=e.iterator[n];if(void 0===r)return t.delegate=null,"throw"===n&&e.iterator.return&&
vendor: 4,963 bytes, line 2
2(t.method="return",t.arg=void 0,E(e,t),"throw"===t.method)||"return"!==n&&(t.method="throw",t.arg=new TypeError("The iterator does not provide a '"+n+"' method")),h;var i=p(r,e.iterator,t.arg);if("throw"===i.type)return t.method="throw",t.arg=i.arg,t.delegate=null,h;var a=i.arg;return a?a.done?(t[e.resultName]=a.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=void 0),t.delegate=null,h):a:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,h)}function x(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function T(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function M(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(x,this),this.reset(!0)}function O(e){if(e){var t=e[l];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,r=function t(){for(;++n<e.length;)if(a.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=void 0,t.done=!0,t};return r.next=r}}return{next:P}}function P(){return{value:void 0,done:!0}}return m.prototype=g,o(w,"constructor",{value:g,configurable:!0}),o(g,"constructor",{value:m,configurable:!0}),m.displayName=d(g,c,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,g):(e.__proto__=g,d(e,c,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},S(_.prototype),d(_.prototype,u,(function(){return this})),t.AsyncIterator=_,t.async=function(e,n,r,i,a){void 0===a&&(a=Promise);var o=new _(f(e,n,r,i),a);return t.isGeneratorFunction(n)?o:o.next().then((function(e){return e.done?e.value:o.next()}))},S(w),d(w,c,"Generator"),d(w,l,(function(){return this})),d(w,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),n=[];for(var r in t)n.push(r);return n.reverse(),function e(){for(;n.length;){var r=n.pop();if(r in t)return e.value=r,e.done=!1,e}return e.done=!0,e}},t.values=O,M.prototype={constructor:M,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(T),!e)for(var t in this)"t"===t.charAt(0)&&a.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=void 0)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,r){return o.type="throw",o.arg=e,t.next=n,r&&(t.method="next",t.arg=void 0),!!r}for(var r=this.tryEntries.length-1;r>=0;--r){var i=this.tryEntries[r],o=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var s=a.call(i,"catchLoc"),l=a.call(i,"finallyLoc");if(s&&l){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(s){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&a.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var i=r;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var o=i?i.completion:{};return o.type=e,o.arg=t,i?(this.method="next",this.next=i.finallyLoc,h):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),h},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),T(n),h}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var i=r.arg;T(n)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:O(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=void 0),h}},t}e.exports=i,e.exports.__esModule=!0,e.exports.default=e.exports},698:function(e){function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},687:function(e,t,n){var r=n(61)();e.exports=r;try{regeneratorRuntime=r}catch(i){"object"===typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}},t={};function n(r){var i=t[r];
2if(void 0!==i)return i.exports;var a=t[r]={exports:{}};return e[r](a,a.exports,n),a.exports}n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,{a:t}),t},n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"===typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"===typeof window)return window}}(),n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},function(){"use strict";var e=n(250);function t(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,i)}function r(e){return function(){var n=this,r=arguments;return new Promise((function(i,a){var o=e.apply(n,r);function s(e){t(o,i,a,s,l,"next",e)}function l(e){t(o,i,a,s,l,"throw",e)}s(void 0)}))}}function i(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function a(e,t){if(e){if("string"===typeof e)return i(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?i(e,t):void 0}}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(c){u=!0,i=c}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}(e,t)||a(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var s=n(687),l=n.n(s),u=n(791);function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function d(){return d="undefined"!==typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var r=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=c(e)););return e}(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(arguments.length<3?e:n):i.value}},d.apply(this,arguments)}function f(e,t){return f=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},f(e,t)}function p(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&&f(e,t)}function h(){if("undefined"===typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"===typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(O){return!1}}function v(e){return v="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},v(e)}function m(e,t){if(t&&("object"===v(t)||"function"===typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function g(e){var t=h();return function(){var n,r=c(e);if(t){var i=c(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return m(this,n)}}function y(e,t,n){return y=h()?Reflect.construct.bind():function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&f(i,n.prototype),i},y.apply(null,arguments)}function b(e){var t="function"===typeof Map?new Map:void 0;return b=function(e){if(null===e||!function(e){return-1!==Function.toString.call(e).indexOf("[native code]")}(e))return e;if("function"!==typeof e)throw new TypeError("Super expression must either be null or a function");if("undefined"!==typeof t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return y(e,arguments,c(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),f(n,e)},b(e)}function k(e){var t=function(e,t){if("object"!==v(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==v(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===v(t)?t:String(t)}function w(e,t,n){return(t=k(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S(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 _(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?S(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):S(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function C(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!==typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||a(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function x(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,k(r.key),r)}}function T(e,t,n){return t&&x(e.prototype,t),n&&x(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function M(e,t){var n="undefined"!==typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=a(e))||t&&e&&"number"===typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return s=e.done,e},e:function(e){l=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(l)throw o}}}}function O(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 a=Object.getOwnPropertySymbols(e);for(r=0;r<a.length;r++)n=a[r],-1===t.indexOf(n)&&{}.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}function P(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function j(e){return j="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},j(e)}function A(e){var t=function(e,t){if("object"!=j(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,"string");if("object"!=j(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==j(t)?t:t+""}function L(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,A(r.key),r)}}function I(e,t,n){return t&&L(e.prototype,t),n&&L(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function N(e,t){if(t&&("object"==j(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function D(e){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},D(e)}function R(e,t){return R=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},R(e,t)}function F(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&&R(e,t)}function z(e,t,n){return(t=A(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function U(e,t,n,r,i,a,o){try{var s=e[a](o),l=s.value}catch(e){return void n(e)}s.done?t(l):Promise.resolve(l).then(r,i)}function V(e){return function(){var t=this,n=arguments;return new Promise((function(r,i){var a=e.apply(t,n);function o(e){U(a,r,i,o,s,"next",e)}function s(e){U(a,r,i,o,s,"throw",e)}o(void 0)}))}}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}function q(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,a,o,s=[],l=!0,u=!1;try{if(a=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=a.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(e){u=!0,i=e}
vendor: 3,528 bytes, line 2
2finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return B(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var H,W={exports:{}},J=function(){if(H)return W.exports;H=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)}W.exports=i,W.exports.once=function(e,t){return new Promise((function(n,r){function i(n){e.removeListener(t,a),r(n)}function a(){"function"==typeof e.removeListener&&e.removeListener("error",i),n([].slice.call(arguments))}h(e,t,a,{once:!0}),"error"!==t&&function(e,t,n){"function"==typeof e.on&&h(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 a=10;function o(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function s(e){return void 0===e._maxListeners?i.defaultMaxListeners:e._maxListeners}function l(e,t,n,r){var i,a,l,u;if(o(n),void 0===(a=e._events)?(a=e._events=Object.create(null),e._eventsCount=0):(void 0!==a.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),a=e._events),l=a[t]),void 0===l)l=a[t]=n,++e._eventsCount;else if("function"==typeof l?l=a[t]=r?[n,l]:[l,n]:r?l.unshift(n):l.push(n),(i=s(e))>0&&l.length>i&&!l.warned){l.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+l.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=l.length,u=c,console&&console.warn&&console.warn(u)}return e}function u(){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 c(e,t,n){var r={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},i=u.bind(r);return i.listener=n,r.wrapFn=i,i}function d(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):p(i,i.length)}function f(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 p(e,t){for(var n=new Array(t),r=0;r<t;++r)n[r]=e[r];return n}function h(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(a){r.once&&e.removeEventListener(t,i),n(a)}))}}return Object.defineProperty(i,"defaultMaxListeners",{enumerable:!0,get:function(){return a}
2,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+".");a=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 s(this)},i.prototype.emit=function(e){for(var t=[],r=1;r<arguments.length;r++)t.push(arguments[r]);var i="error"===e,a=this._events;if(void 0!==a)i=i&&void 0===a.error;else if(!i)return!1;if(i){var o;if(t.length>0&&(o=t[0]),o instanceof Error)throw o;var s=new Error("Unhandled error."+(o?" ("+o.message+")":""));throw s.context=o,s}var l=a[e];if(void 0===l)return!1;if("function"==typeof l)n(l,this,t);else{var u=l.length,c=p(l,u);for(r=0;r<u;++r)n(c[r],this,t)}return!0},i.prototype.addListener=function(e,t){return l(this,e,t,!1)},i.prototype.on=i.prototype.addListener,i.prototype.prependListener=function(e,t){return l(this,e,t,!0)},i.prototype.once=function(e,t){return o(t),this.on(e,c(this,e,t)),this},i.prototype.prependOnceListener=function(e,t){return o(t),this.prependListener(e,c(this,e,t)),this},i.prototype.removeListener=function(e,t){var n,r,i,a,s;if(o(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,a=n.length-1;a>=0;a--)if(n[a]===t||n[a].listener===t){s=n[a].listener,i=a;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,s||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,a=Object.keys(n);for(r=0;r<a.length;++r)"removeListener"!==(i=a[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 d(this,e,!0)},i.prototype.rawListeners=function(e){return d(this,e,!1)},i.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):f.call(e,t)},i.prototype.listenerCount=f,i.prototype.eventNames=function(){return this._eventsCount>0?e(this._events):[]},W.exports}(),$=function(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}(J),Q=Object.prototype.hasOwnProperty;function G(e,t,n){var r,i=M(e.keys());try{for(i.s();!(r=i.n()).done;)if(K(n=r.value,t))return n}catch(a){i.e(a)}finally{i.f()}}function K(e,t){var n,r,i;if(e===t)return!0;if(e&&t&&(n=e.constructor)===t.constructor){if(n===Date)return e.getTime()===t.getTime();if(n===RegExp)return e.toString()===t.toString();if(n===Array){if((r=e.length)===t.length)for(;r--&&K(e[r],t[r]););return-1===r}if(n===Set){if(e.size!==t.size)return!1;var a,o=M(e);try{for(o.s();!(a=o.n()).done;){if((i=r=a.value)&&"object"==typeof i&&!(i=G(t,i)))return!1;if(!t.has(i))return!1}}catch(u){o.e(u)}finally{o.f()}return!0}if(n===Map){if(e.size!==t.size)return!1;var s,l=M(e);try{for(l.s();!(s=l.n()).done;){if((i=(r=s.value)[0])&&"object"==typeof i&&!(i=G(t,i)))return!1;if(!K(r[1],t.get(i)))return!1}}catch(u){l.e(u)}finally{l.f()}return!0}if(n===ArrayBuffer)e=new Uint8Array(e),t=new Uint8Array(t);else if(n===DataView){if((r=e.byteLength)===t.byteLength)for(;r--&&e.getInt8(r)===t.getInt8(r););return-1===r}if(ArrayBuffer.isView(e)){if((r=e.byteLength)===t.byteLength)for(;r--&&e[r]===t[r];);return-1===r}if(!n||"object"==typeof e){for(n in r=0,e){if(Q.call(e,n)&&++r&&!Q.call(t,n))return!1;if(!(n in t)||!K(e[n],t[n]))return!1}return Object.keys(t).length===r}}return e!=e&&t!=t}var Y={"Amazon Silk":"amazon_silk","Android Browser":"android",Bada:"bada",BlackBerry:"blackberry",Chrome:"chrome",Chromium:"chromium",Electron:"electron",Epiphany:"epiphany",Firefox:"firefox",Focus:"focus",Generic:"generic","Google Search":"google_search",Googlebot:"googlebot","Internet Explorer":"ie","K-Meleon":"k_meleon",Maxthon:"maxthon","Microsoft Edge":"edge","MZ Browser":"mz","NAVER Whale Browser":"naver",Opera:"opera","Opera Coast":"opera_coast",PhantomJS:"phantomjs",Puffin:"puffin",QupZilla:"qupzilla",QQ:"qq",QQLite:"qqlite",Safari:"safari",Sailfish:"sailfish","Samsung Internet for Android":"samsung_internet",SeaMonkey:"seamonkey",Sleipnir:"sleipnir",Swing:"swing",Tizen:"tizen","UC Browser":"uc",Vivaldi:"vivaldi","WebOS Browser":"webos",WeChat:"wechat","Yandex Browser":"yandex",Roku:"roku"},X={amazon_silk:"Amazon Silk",android:"Android Browser",bada:"Bada",blackberry:"BlackBerry",chrome:"Chrome",chromium:"Chromium",electron:"Electron",epiphany:"Epiphany",firefox:"Firefox",focus:"Focus",generic:"Generic",googlebot:"Googlebot",google_search:"Google Search",ie:"Internet Explorer",k_meleon:"K-Meleon",maxthon:"Maxthon",edge:"Microsoft Edge",mz:"MZ Browser",naver:"NAVER Whale Browser",opera:"Opera",opera_coast:"Opera Coast",phantomjs:"PhantomJS",puffin:"Puffin",qupzilla:"QupZilla",qq:"QQ Browser",qqlite:"QQ Browser Lite",safari:"Safari",sailfish:"Sailfish",samsung_internet:"Samsung Internet for Android",seamonkey:"SeaMonkey",sleipnir:"Sleipnir",swing:"Swing",tizen:"Tizen",uc:"UC Browser",vivaldi:"Vivaldi",webos:"WebOS Browser",wechat:"WeChat",yandex:"Yandex Browser"},Z={tablet:"tablet",mobile:"mobile",desktop:"desktop",tv:"tv"},ee={WindowsPhone:"Windows Phone",Windows:"Windows",MacOS:"macOS",iOS:"iOS",Android:"Android",WebOS:"WebOS",BlackBerry:"BlackBerry",Bada:"Bada",Tizen:"Tizen",Linux:"Linux",ChromeOS:"Chrome OS",PlayStation4:"PlayStation 4",Roku:"Roku"},te={EdgeHTML:"EdgeHTML",Blink:"Blink",Trident:"Trident",Presto:"Presto",Gecko:"Gecko",WebKit:"WebKit"},ne=function(){function e(){E(this,e)}return T(e,null,[{key:"getFirstMatch",value:function(e,t){var n=t.match(e);return n&&n.length>0&&n[1]||""}},{key:"getSecondMatch",value:function(e,t){var n=t.match(e);return n&&n.length>1&&n[2]||""}},{key:"matchAndReturnConst",value:function(e,t,n){if(e.test(t))return n}},{key:"getWindowsVersionName",value:function(e){switch(e){case"NT":return"NT";case"XP":case"NT 5.1":return"XP";case"NT 5.0":return"2000";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}}},{key:"getMacOSVersionName",value:function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";
2case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}}},{key:"getAndroidVersionName",value:function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0}},{key:"getVersionPrecision",value:function(e){return e.split(".").length}},{key:"compareVersions",value:function(t,n){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=e.getVersionPrecision(t),a=e.getVersionPrecision(n),o=Math.max(i,a),s=0,l=e.map([t,n],(function(t){var n=o-e.getVersionPrecision(t),r=t+new Array(n+1).join(".0");return e.map(r.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(r&&(s=o-Math.min(i,a)),o-=1;o>=s;){if(l[0][o]>l[1][o])return 1;if(l[0][o]===l[1][o]){if(o===s)return 0;o-=1}else if(l[0][o]<l[1][o])return-1}}},{key:"map",value:function(e,t){var n,r=[];if(Array.prototype.map)return Array.prototype.map.call(e,t);for(n=0;n<e.length;n+=1)r.push(t(e[n]));return r}},{key:"find",value:function(e,t){var n,r;if(Array.prototype.find)return Array.prototype.find.call(e,t);for(n=0,r=e.length;n<r;n+=1){var i=e[n];if(t(i,n))return i}}},{key:"assign",value:function(e){for(var t,n,r=e,i=arguments.length,a=new Array(i>1?i-1:0),o=1;o<i;o++)a[o-1]=arguments[o];if(Object.assign)return Object.assign.apply(Object,[e].concat(a));var s=function(){var e=a[t];"object"==typeof e&&null!==e&&Object.keys(e).forEach((function(t){r[t]=e[t]}))};for(t=0,n=a.length;t<n;t+=1)s();return e}},{key:"getBrowserAlias",value:function(e){return Y[e]}},{key:"getBrowserTypeByAlias",value:function(e){return X[e]||""}}]),e}(),re=/version\/(\d+(\.?_?\d+)+)/i,ie=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},n=ne.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||ne.getFirstMatch(re,e);return n&&(t.version=n),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},n=ne.getFirstMatch(re,e)||ne.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},n=ne.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||ne.getFirstMatch(re,e);return n&&(t.version=n),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},n=ne.getFirstMatch(re,e)||ne.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},n=ne.getFirstMatch(re,e)||ne.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},n=ne.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||ne.getFirstMatch(re,e);return n&&(t.version=n),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},n=ne.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||ne.getFirstMatch(re,e);return n&&(t.version=n),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},n=ne.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||ne.getFirstMatch(re,e);return n&&(t.version=n),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},n=ne.getFirstMatch(re,e)||ne.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},n=ne.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||ne.getFirstMatch(re,e);return n&&(t.version=n),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},n=ne.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||ne.getFirstMatch(re,e);return n&&(t.version=n),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},n=ne.getFirstMatch(re,e)||ne.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"}
2,n=ne.getFirstMatch(re,e)||ne.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},n=ne.getFirstMatch(re,e)||ne.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},n=ne.getFirstMatch(re,e)||ne.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},n=ne.getFirstMatch(re,e)||ne.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},n=ne.getFirstMatch(re,e)||ne.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},n=ne.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||ne.getFirstMatch(re,e);return n&&(t.version=n),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},n=ne.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||ne.getFirstMatch(re,e);return n&&(t.version=n),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},n=ne.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},n=ne.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},n=ne.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},n=ne.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},n=ne.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},n=ne.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return n&&(t.version=n),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},n=ne.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},n=ne.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},n=ne.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},n=ne.getFirstMatch(re,e)||ne.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},n=ne.getFirstMatch(re,e)||ne.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},n=ne.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},n=ne.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||ne.getFirstMatch(re,e);return n&&(t.version=n),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},n=ne.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||ne.getFirstMatch(re,e);return n&&(t.version=n),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},n=ne.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},n=ne.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},n=ne.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},n=ne.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||ne.getFirstMatch(re,e);return n&&(t.version=n),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},n=ne.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},n=ne.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t={name:"Android Browser"},n=ne.getFirstMatch(re,e);return n&&(t.version=n),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},n=ne.getFirstMatch(re,e);return n&&(t.version=n),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},n=ne.getFirstMatch(re,e);return n&&(t.version=n),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:ne.getFirstMatch(t,e),version:ne.getSecondMatch(t,e)}}}],ae=[{test:[/Roku\/DVP/],describe:function(e){var t=ne.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:ee.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=ne.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:ee.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=ne.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),n=ne.getWindowsVersionName(t);return{name:ee.Windows,version:t,versionName:n}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:ee.iOS},n=ne.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return n&&(t.version=n),t}},{test:[/macintosh/i],describe:function(e){var t=ne.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),n=ne.getMacOSVersionName(t),r={name:ee.MacOS,version:t};return n&&(r.versionName=n),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=ne.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:ee.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),n=e.test(/android/i);return t&&n},describe:function(e){var t=ne.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),n=ne.getAndroidVersionName(t),r={name:ee.Android,version:t};return n&&(r.versionName=n),r}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=ne.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),n={name:ee.WebOS};return t&&t.length&&(n.version=t),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=ne.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||ne.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||ne.getFirstMatch(/\bbb(\d+)/i,e);return{name:ee.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=ne.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:ee.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=ne.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:ee.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:ee.Linux}}},{test:[/CrOS/],describe:function(){return{name:ee.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=ne.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);
2return{name:ee.PlayStation4,version:t}}}],oe=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=ne.getFirstMatch(/(can-l01)/i,e)&&"Nova",n={type:Z.mobile,vendor:"Huawei"};return t&&(n.model=t),n}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:Z.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:Z.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:Z.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:Z.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:Z.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:Z.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),n=e.test(/like (ipod|iphone)/i);return t&&!n},describe:function(e){var t=ne.getFirstMatch(/(ipod|iphone)/i,e);return{type:Z.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:Z.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:Z.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:Z.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:Z.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:Z.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:Z.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:Z.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:Z.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:Z.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:Z.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:Z.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:Z.tv}}}],se=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:te.Blink};var t=ne.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:te.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:te.Trident},n=ne.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:te.Presto},n=ne.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:function(e){var t=e.test(/gecko/i),n=e.test(/like gecko/i);return t&&!n},describe:function(e){var t={name:te.Gecko},n=ne.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:te.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:te.WebKit},n=ne.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return n&&(t.version=n),t}}],le=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(E(this,e),null==t||""===t)throw new Error("UserAgent parameter can't be empty");this._ua=t,this.parsedResult={},!0!==n&&this.parse()}return T(e,[{key:"getUA",value:function(){return this._ua}},{key:"test",value:function(e){return e.test(this._ua)}},{key:"parseBrowser",value:function(){var e=this;this.parsedResult.browser={};var t=ne.find(ie,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.browser=t.describe(this.getUA())),this.parsedResult.browser}},{key:"getBrowser",value:function(){return this.parsedResult.browser?this.parsedResult.browser:this.parseBrowser()}},{key:"getBrowserName",value:function(e){return e?String(this.getBrowser().name).toLowerCase()||"":this.getBrowser().name||""}},{key:"getBrowserVersion",value:function(){return this.getBrowser().version}},{key:"getOS",value:function(){return this.parsedResult.os?this.parsedResult.os:this.parseOS()}},{key:"parseOS",value:function(){var e=this;this.parsedResult.os={};
2var t=ne.find(ae,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.os=t.describe(this.getUA())),this.parsedResult.os}},{key:"getOSName",value:function(e){var t=this.getOS().name;return e?String(t).toLowerCase()||"":t||""}},{key:"getOSVersion",value:function(){return this.getOS().version}},{key:"getPlatform",value:function(){return this.parsedResult.platform?this.parsedResult.platform:this.parsePlatform()}},{key:"getPlatformType",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.getPlatform().type;return e?String(t).toLowerCase()||"":t||""}},{key:"parsePlatform",value:function(){var e=this;this.parsedResult.platform={};var t=ne.find(oe,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.platform=t.describe(this.getUA())),this.parsedResult.platform}},{key:"getEngine",value:function(){return this.parsedResult.engine?this.parsedResult.engine:this.parseEngine()}},{key:"getEngineName",value:function(e){return e?String(this.getEngine().name).toLowerCase()||"":this.getEngine().name||""}},{key:"parseEngine",value:function(){var e=this;this.parsedResult.engine={};var t=ne.find(se,(function(t){if("function"==typeof t.test)return t.test(e);if(t.test instanceof Array)return t.test.some((function(t){return e.test(t)}));throw new Error("Browser's test function is not valid")}));return t&&(this.parsedResult.engine=t.describe(this.getUA())),this.parsedResult.engine}},{key:"parse",value:function(){return this.parseBrowser(),this.parseOS(),this.parsePlatform(),this.parseEngine(),this}},{key:"getResult",value:function(){return ne.assign({},this.parsedResult)}},{key:"satisfies",value:function(e){var t=this,n={},r=0,i={},a=0;if(Object.keys(e).forEach((function(t){var o=e[t];"string"==typeof o?(i[t]=o,a+=1):"object"==typeof o&&(n[t]=o,r+=1)})),r>0){var o=Object.keys(n),s=ne.find(o,(function(e){return t.isOS(e)}));if(s){var l=this.satisfies(n[s]);if(void 0!==l)return l}var u=ne.find(o,(function(e){return t.isPlatform(e)}));if(u){var c=this.satisfies(n[u]);if(void 0!==c)return c}}if(a>0){var d=Object.keys(i),f=ne.find(d,(function(e){return t.isBrowser(e,!0)}));if(void 0!==f)return this.compareVersion(i[f])}}},{key:"isBrowser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.getBrowserName().toLowerCase(),r=e.toLowerCase(),i=ne.getBrowserTypeByAlias(r);return t&&i&&(r=i.toLowerCase()),r===n}},{key:"compareVersion",value:function(e){var t=[0],n=e,r=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(n=e.substr(1),"="===e[1]?(r=!0,n=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?n=e.substr(1):"~"===e[0]&&(r=!0,n=e.substr(1)),t.indexOf(ne.compareVersions(i,n,r))>-1}},{key:"isOS",value:function(e){return this.getOSName(!0)===String(e).toLowerCase()}},{key:"isPlatform",value:function(e){return this.getPlatformType(!0)===String(e).toLowerCase()}},{key:"isEngine",value:function(e){return this.getEngineName(!0)===String(e).toLowerCase()}},{key:"is",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)}},{key:"some",value:function(){var e=this;return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:[]).some((function(t){return e.is(t)}))}}]),e}(),ue=function(){function e(){E(this,e)}return T(e,null,[{key:"getParser",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if("string"!=typeof e)throw new Error("UserAgent should be a string");return new le(e,t)}},{key:"parse",value:function(e){return new le(e).getResult()}},{key:"BROWSER_MAP",get:function(){return X}},{key:"ENGINE_MAP",get:function(){return te}},{key:"OS_MAP",get:function(){return ee}},{key:"PLATFORMS_MAP",get:function(){return Z}}]),e}();function ce(){return Date.now()+Math.random().toString()}function de(){throw new Error("Method must be implemented in subclass")}function fe(e,t){return null!=t&&t.proxyUrl?t.proxyUrl+("/"===t.proxyUrl.slice(-1)?"":"/")+e.substring(8):e}function pe(e){return null!=e&&e.callObjectBundleUrlOverride?e.callObjectBundleUrlOverride:fe("https://c.daily.co/call-machine/versioned/".concat("0.87.0","/static/call-machine-object-bundle.js"),e)}function he(e){try{new URL(e)}catch(e){return!1}return!0}var ve="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,me="8.5
25.0",ge=globalThis;function ye(e,t,n){var r=n||ge,i=r.__SENTRY__=r.__SENTRY__||{},a=i[me]=i[me]||{};return a[e]||(a[e]=t())}var be="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,ke=["debug","info","warn","error","log","assert","trace"],we={};function Se(e){if(!("console"in ge))return e();var t=ge.console,n={},r=Object.keys(we);r.forEach((function(e){var r=we[e];n[e]=t[e],t[e]=r}));try{return e()}finally{r.forEach((function(e){t[e]=n[e]}))}}var _e=ye("logger",(function(){var e=!1,t={enable:function(){e=!0},disable:function(){e=!1},isEnabled:function(){return e}};return be?ke.forEach((function(n){t[n]=function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];e&&Se((function(){var e;(e=ge.console)[n].apply(e,["Sentry Logger [".concat(n,"]:")].concat(r))}))}})):ke.forEach((function(e){t[e]=function(){}})),t})),Ce="?",Ee=/\(error: (.*)\)/,xe=/captureMessage|captureException/;function Te(e){return e[e.length-1]||{}}var Me="<anonymous>";function Oe(e){try{return e&&"function"==typeof e&&e.name||Me}catch(e){return Me}}function Pe(e){var t=e.exception;if(t){var n=[];try{return t.values.forEach((function(e){e.stacktrace.frames&&n.push.apply(n,C(e.stacktrace.frames))})),n}catch(e){return}}}var je={},Ae={};function Le(e,t){je[e]=je[e]||[],je[e].push(t)}function Ie(e,t){if(!Ae[e]){Ae[e]=!0;try{t()}catch(t){be&&_e.error("Error while instrumenting ".concat(e),t)}}}function Ne(e,t){var n=e&&je[e];if(n){var r,i=M(n);try{for(i.s();!(r=i.n()).done;){var a=r.value;try{a(t)}catch(t){be&&_e.error("Error while triggering instrumentation handler.\nType: ".concat(e,"\nName: ").concat(Oe(a),"\nError:"),t)}}}catch(o){i.e(o)}finally{i.f()}}}var De=null;function Re(){De=ge.onerror,ge.onerror=function(e,t,n,r,i){return Ne("error",{column:r,error:i,line:n,msg:e,url:t}),!!De&&De.apply(this,arguments)},ge.onerror.__SENTRY_INSTRUMENTED__=!0}var Fe=null;function ze(){Fe=ge.onunhandledrejection,ge.onunhandledrejection=function(e){return Ne("unhandledrejection",e),!Fe||Fe.apply(this,arguments)},ge.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}function Ue(){return Ve(ge),ge}function Ve(e){var t=e.__SENTRY__=e.__SENTRY__||{};return t.version=t.version||me,t[me]=t[me]||{}}var Be=Object.prototype.toString;function qe(e){switch(Be.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":case"[object WebAssembly.Exception]":return!0;default:return Ze(e,Error)}}function He(e,t){return Be.call(e)==="[object ".concat(t,"]")}function We(e){return He(e,"ErrorEvent")}function Je(e){return He(e,"DOMError")}function $e(e){return He(e,"String")}function Qe(e){return"object"==typeof e&&null!==e&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function Ge(e){return null===e||Qe(e)||"object"!=typeof e&&"function"!=typeof e}function Ke(e){return He(e,"Object")}function Ye(e){return"undefined"!=typeof Event&&Ze(e,Event)}function Xe(e){return Boolean(e&&e.then&&"function"==typeof e.then)}function Ze(e,t){try{return e instanceof t}catch(e){return!1}}function et(e){return!("object"!=typeof e||null===e||!e.__isVue&&!e._isVue)}var tt=ge;function nt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!e)return"<unknown>";try{for(var n,r=e,i=[],a=0,o=0,s=Array.isArray(t)?t:t.keyAttrs,l=!Array.isArray(t)&&t.maxStringLength||80;r&&a++<5&&!("html"===(n=rt(r,s))||a>1&&o+3*i.length+n.length>=l);)i.push(n),o+=n.length,r=r.parentNode;return i.reverse().join(" > ")}catch(e){return"<unknown>"}}function rt(e,t){var n=e,r=[];if(!n||!n.tagName)return"";if(tt.HTMLElement&&n instanceof HTMLElement&&n.dataset){if(n.dataset.sentryComponent)return n.dataset.sentryComponent;if(n.dataset.sentryElement)return n.dataset.sentryElement}r.push(n.tagName.toLowerCase());var i=t&&t.length?t.filter((function(e){return n.getAttribute(e)})).map((function(e){return[e,n.getAttribute(e)]})):null;if(i&&i.length)i.forEach((function(e){r.push("[".concat(e[0],'="').concat(e[1],'"]'))}));else{n.id&&r.push("#".concat(n.id));var a=n.className;if(a&&$e(a)){var o,s=M(a.split(/\s+/));try{for(s.s();!(o=s.n()).done;){var l=o.value;r.push(".".concat(l))}}
2catch(p){s.e(p)}finally{s.f()}}}for(var u=0,c=["aria-label","type","name","title","alt"];u<c.length;u++){var d=c[u],f=n.getAttribute(d);f&&r.push("[".concat(d,'="').concat(f,'"]'))}return r.join("")}function it(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"string"!=typeof e||0===t||e.length<=t?e:"".concat(e.slice(0,t),"...")}function at(e,t){if(!Array.isArray(e))return"";for(var n=[],r=0;r<e.length;r++){var i=e[r];try{et(i)?n.push("[VueViewModel]"):n.push(String(i))}catch(e){n.push("[value cannot be serialized]")}}return n.join(t)}function ot(e){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).some((function(n){return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return!!$e(e)&&(He(t,"RegExp")?t.test(e):!!$e(t)&&(n?e===t:e.includes(t)))}(e,n,t)}))}function st(e,t,n){if(t in e){var r=e[t],i=n(r);"function"==typeof i&&ut(i,r);try{e[t]=i}catch(n){be&&_e.log('Failed to replace method "'.concat(t,'" in object'),e)}}}function lt(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch(n){be&&_e.log('Failed to add non-enumerable property "'.concat(t,'" to object'),e)}}function ut(e,t){try{var n=t.prototype||{};e.prototype=t.prototype=n,lt(e,"__sentry_original__",t)}catch(e){}}function ct(e){return e.__sentry_original__}function dt(e){if(qe(e))return _({message:e.message,name:e.name,stack:e.stack},pt(e));if(Ye(e)){var t=_({type:e.type,target:ft(e.target),currentTarget:ft(e.currentTarget)},pt(e));return"undefined"!=typeof CustomEvent&&Ze(e,CustomEvent)&&(t.detail=e.detail),t}return e}function ft(e){try{return"undefined"!=typeof Element&&Ze(e,Element)?nt(e):Object.prototype.toString.call(e)}catch(e){return"<unknown>"}}function pt(e){if("object"==typeof e&&null!==e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}return{}}function ht(e){return vt(e,new Map)}function vt(e,t){if(function(e){if(!Ke(e))return!1;try{var t=Object.getPrototypeOf(e).constructor.name;return!t||"Object"===t}catch(e){return!0}}(e)){var n=t.get(e);if(void 0!==n)return n;var r={};t.set(e,r);var i,a=M(Object.getOwnPropertyNames(e));try{for(a.s();!(i=a.n()).done;){var o=i.value;void 0!==e[o]&&(r[o]=vt(e[o],t))}}catch(u){a.e(u)}finally{a.f()}return r}if(Array.isArray(e)){var s=t.get(e);if(void 0!==s)return s;var l=[];return t.set(e,l),e.forEach((function(e){l.push(vt(e,t))})),l}return e}function mt(){return Date.now()/1e3}var gt,yt=function(){var e=ge.performance;if(!e||!e.now)return mt;var t=Date.now()-e.now(),n=null==e.timeOrigin?t:e.timeOrigin;return function(){return(n+e.now())/1e3}}();function bt(){var e=ge,t=e.crypto||e.msCrypto,n=function(){return 16*Math.random()};try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=function(){var e=new Uint8Array(1);return t.getRandomValues(e),e[0]})}catch(e){}return([1e7]+1e3+4e3+8e3+1e11).replace(/[018]/g,(function(e){return(e^(15&n())>>e/4).toString(16)}))}function kt(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function wt(e){var t=e.message,n=e.event_id;if(t)return t;var r=kt(e);return r?r.type&&r.value?"".concat(r.type,": ").concat(r.value):r.type||r.value||n||"<unknown>":n||"<unknown>"}function St(e,t,n){var r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type=n||"Error")}function _t(e,t){var n=kt(e);if(n){var r=n.mechanism;if(n.mechanism=_(_({type:"generic",handled:!0},r),t),t&&"data"in t){var i=_(_({},r&&r.data),t.data);n.mechanism.data=i}}}function Ct(e){if(function(e){try{return e.__sentry_captured__}catch(e){}}(e))return!0;try{lt(e,"__sentry_captured__",!0)}catch(e){}return!1}function Et(e){return new Tt((function(t){t(e)}))}function xt(e){return new Tt((function(t,n){n(e)}))}(function(){var e=ge.performance;if(e&&e.now){var t=36e5,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=i<t,o=e.timing&&e.timing.navigationStart,s="number"==typeof o?Math.abs(o+n-r):t;(a||s<t)&&i<=s&&e.timeOrigin}}
2)(),function(e){e[e.PENDING=0]="PENDING",e[e.RESOLVED=1]="RESOLVED",e[e.REJECTED=2]="REJECTED"}(gt||(gt={}));var Tt=function(){function e(t){E(this,e),e.prototype.__init.call(this),e.prototype.__init2.call(this),e.prototype.__init3.call(this),e.prototype.__init4.call(this),this._state=gt.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(t){this._reject(t)}}return T(e,[{key:"then",value:function(t,n){var r=this;return new e((function(e,i){r._handlers.push([!1,function(n){if(t)try{e(t(n))}catch(t){i(t)}else e(n)},function(t){if(n)try{e(n(t))}catch(t){i(t)}else i(t)}]),r._executeHandlers()}))}},{key:"catch",value:function(e){return this.then((function(e){return e}),e)}},{key:"finally",value:function(t){var n=this;return new e((function(e,r){var i,a;return n.then((function(e){a=!1,i=e,t&&t()}),(function(e){a=!0,i=e,t&&t()})).then((function(){a?r(i):e(i)}))}))}},{key:"__init",value:function(){var e=this;this._resolve=function(t){e._setResult(gt.RESOLVED,t)}}},{key:"__init2",value:function(){var e=this;this._reject=function(t){e._setResult(gt.REJECTED,t)}}},{key:"__init3",value:function(){var e=this;this._setResult=function(t,n){e._state===gt.PENDING&&(Xe(n)?n.then(e._resolve,e._reject):(e._state=t,e._value=n,e._executeHandlers()))}}},{key:"__init4",value:function(){var e=this;this._executeHandlers=function(){if(e._state!==gt.PENDING){var t=e._handlers.slice();e._handlers=[],t.forEach((function(t){t[0]||(e._state===gt.RESOLVED&&t[1](e._value),e._state===gt.REJECTED&&t[2](e._value),t[0]=!0)}))}}}}]),e}();function Mt(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),e.did||t.did||(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||yt(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=32===t.sid.length?t.sid:bt()),void 0!==t.init&&(e.init=t.init),!e.did&&t.did&&(e.did="".concat(t.did)),"number"==typeof t.started&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if("number"==typeof t.duration)e.duration=t.duration;else{var n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),"number"==typeof t.errors&&(e.errors=t.errors),t.status&&(e.status=t.status)}function Ot(){return bt()}function Pt(){return bt().substring(16)}function jt(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:2;if(!t||"object"!=typeof t||n<=0)return t;if(e&&t&&0===Object.keys(t).length)return e;var r=_({},e);for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=jt(r[i],t[i],n-1));return r}var At="_sentrySpan";function Lt(e,t){t?lt(e,At,t):delete e[At]}function It(e){return e[At]}var Nt=function(){function e(){E(this,e),this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext={traceId:Ot(),spanId:Pt()}}return T(e,[{key:"clone",value:function(){var t=new e;return t._breadcrumbs=C(this._breadcrumbs),t._tags=_({},this._tags),t._extra=_({},this._extra),t._contexts=_({},this._contexts),this._contexts.flags&&(t._contexts.flags={values:C(this._contexts.flags.values)}),t._user=this._user,t._level=this._level,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=C(this._eventProcessors),t._requestSession=this._requestSession,t._attachments=C(this._attachments),t._sdkProcessingMetadata=_({},this._sdkProcessingMetadata),t._propagationContext=_({},this._propagationContext),t._client=this._client,t._lastEventId=this._lastEventId,Lt(t,It(this)),t}},{key:"setClient",value:function(e){this._client=e}},{key:"setLastEventId",value:function(e){this._lastEventId=e}},{key:"getClient",value:function(){return this._client}},{key:"lastEventId",value:function(){return this._lastEventId}},{key:"addScopeListener",value:function(e){this._scopeListeners.push(e)}},{key:"addEventProcessor",value:function(e){return this._eventProcessors.push(e),this}},{key:"setUser",value:function(e){return this._user=e||{email:void 0,id:void 0,ip_address:void 0,username:void 0},this._session&&Mt(this._session,{user:e}),this._notifyScopeListeners(),this}},{key:"getUser",value:function(){return this._user}},{key:"getRequestSession",value:function(){return this._requestSession}},{key:"setRequestSession",value:function(e){return this._requestSession=e,this}},{key:"setTags",value:function(e){return this._tags=_(_({},this._tags),e),this._notifyScopeListeners(),this}},{key:"setTag",value:function(e,t){return this._tags=_(_({},this._tags),{},w({},e,t)),this._notifyScopeListeners(),this}},{key:"setExtras",value:function(e){return this._extra=_(_({},this._extra),e),this._notifyScopeListeners(),this}},{key:"setExtra",value:function(e,t){return this._extra=_(_({},this._extra),{},w({},e,t)),this._notifyScopeListeners(),this}},{key:"setFingerprint",value:function(e){return this._fingerprint=e,this._notifyScopeListeners(),this}},{key:"setLevel",value:function(e){return this._level=e,this._notifyScopeListeners(),this}},{key:"setTransactionName",value:function(e){return this._transactionName=e,this._notifyScopeListeners(),this}},{key:"setContext",value:function(e,t){return null===t?delete this._contexts[e]:this._contexts[e]=t,this._notifyScopeListeners(),this}},{key:"setSession",value:function(e){return e?this._session=e:delete this._session,this._notifyScopeListeners(),this}},{key:"getSession",value:function(){return this._session}},{key:"update",value:function(e){if(!e)return this;var t="function"==typeof e?e(this):e,n=o(t instanceof Dt?[t.getScopeData(),t.getRequestSession()]:Ke(t)?[e,e.requestSession]:[],2),r=n[0],i=n[1],a=r||{},s=a.tags,l=a.extra,u=a.user,c=a.contexts,d=a.level,f=a.fingerprint,p=void 0===f?[]:f,h=a.propagationContext;return this._tags=_(_({},this._tags),s),this._extra=_(_({},this._extra),l),this._contexts=_(_({},this._contexts),c),u&&Object.keys(u).length&&(this._user=u),d&&(this._level=d),p.length&&(this._fingerprint=p),h&&(this._propagationContext=h),i&&(this._requestSession=i),this}},{key:"clear",value:function(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._session=void 0,Lt(this,void 0),this._attachments=[],this.setPropagationContext({traceId:Ot()}),this._notifyScopeListeners(),this}},{key:"addBreadcrumb",value:function(e,t){var n="number"==typeof t?t:100;if(n<=0)return this;var r=_({timestamp:mt()},e);return this._breadcrumbs.push(r),this._breadcrumbs.length>n&&(this._breadcrumbs=this._breadcrumbs.slice(-n),this._client&&this._client.re
2cordDroppedEvent("buffer_overflow","log_item")),this._notifyScopeListeners(),this}},{key:"getLastBreadcrumb",value:function(){return this._breadcrumbs[this._breadcrumbs.length-1]}},{key:"clearBreadcrumbs",value:function(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}},{key:"addAttachment",value:function(e){return this._attachments.push(e),this}},{key:"clearAttachments",value:function(){return this._attachments=[],this}},{key:"getScopeData",value:function(){return{breadcrumbs:this._breadcrumbs,attachments:this._attachments,contexts:this._contexts,tags:this._tags,extra:this._extra,user:this._user,level:this._level,fingerprint:this._fingerprint||[],eventProcessors:this._eventProcessors,propagationContext:this._propagationContext,sdkProcessingMetadata:this._sdkProcessingMetadata,transactionName:this._transactionName,span:It(this)}}},{key:"setSDKProcessingMetadata",value:function(e){return this._sdkProcessingMetadata=jt(this._sdkProcessingMetadata,e,2),this}},{key:"setPropagationContext",value:function(e){return this._propagationContext=_({spanId:Pt()},e),this}},{key:"getPropagationContext",value:function(){return this._propagationContext}},{key:"captureException",value:function(e,t){var n=t&&t.event_id?t.event_id:bt();if(!this._client)return _e.warn("No client configured on scope - will not capture exception!"),n;var r=new Error("Sentry syntheticException");return this._client.captureException(e,_(_({originalException:e,syntheticException:r},t),{},{event_id:n}),this),n}},{key:"captureMessage",value:function(e,t,n){var r=n&&n.event_id?n.event_id:bt();if(!this._client)return _e.warn("No client configured on scope - will not capture message!"),r;var i=new Error(e);return this._client.captureMessage(e,t,_(_({originalException:e,syntheticException:i},n),{},{event_id:r}),this),r}},{key:"captureEvent",value:function(e,t){var n=t&&t.event_id?t.event_id:bt();return this._client?(this._client.captureEvent(e,_(_({},t),{},{event_id:n}),this),n):(_e.warn("No client configured on scope - will not capture event!"),n)}},{key:"_notifyScopeListeners",value:function(){var e=this;this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach((function(t){t(e)})),this._notifyingListeners=!1)}}]),e}(),Dt=Nt,Rt=function(){function e(t,n){var r,i;E(this,e),r=t||new Dt,i=n||new Dt,this._stack=[{scope:r}],this._isolationScope=i}return T(e,[{key:"withScope",value:function(e){var t,n=this,r=this._pushScope();try{t=e(r)}catch(e){throw this._popScope(),e}return Xe(t)?t.then((function(e){return n._popScope(),e}),(function(e){throw n._popScope(),e})):(this._popScope(),t)}},{key:"getClient",value:function(){return this.getStackTop().client}},{key:"getScope",value:function(){return this.getStackTop().scope}},{key:"getIsolationScope",value:function(){return this._isolationScope}},{key:"getStackTop",value:function(){return this._stack[this._stack.length-1]}},{key:"_pushScope",value:function(){var e=this.getScope().clone();return this._stack.push({client:this.getClient(),scope:e}),e}},{key:"_popScope",value:function(){return!(this._stack.length<=1)&&!!this._stack.pop()}}]),e}();function Ft(){var e=Ve(Ue());return e.stack=e.stack||new Rt(ye("defaultCurrentScope",(function(){return new Dt})),ye("defaultIsolationScope",(function(){return new Dt})))}function zt(e){return Ft().withScope(e)}function Ut(e,t){var n=Ft();return n.withScope((function(){return n.getStackTop().scope=e,t(e)}))}function Vt(e){return Ft().withScope((function(){return e(Ft().getIsolationScope())}))}function Bt(e){var t=Ve(e);return t.acs?t.acs:{withIsolationScope:Vt,withScope:zt,withSetScope:Ut,withSetIsolationScope:function(e,t){return Vt(t)},getCurrentScope:function(){return Ft().getScope()},getIsolationScope:function(){return Ft().getIsolationScope()}}}function qt(){return Bt(Ue()).getCurrentScope()}function Ht(){return Bt(Ue()).getIsolationScope()}function Wt(){return qt().getClient()}function Jt(e){var t=e.getPropagationContext();return ht({trace_id:t.traceId,span_id:t.spanId,parent_span_id:t.parentSpanId})}function $t(e){var t=e._sentryMetrics;if(t){var n,r={},i=M(t);try{for(i.s();!(n=i.n()).done;){var a=o(n.value,2),s=o(a[1],2),l=s[0],u=s[1];(r[l]||(r[l]=[])).push(ht(u))}}catch(c){i.e(c)}finally{i.f()}return r}}var Qt=/^sentry-/;function Gt(e){return e.split(",").map((function(e){return e.split("=").map((function(e){return decodeURIComponent(e.trim())}))})).reduce((function(e,t){var n=o(t,2),r=n[0],i=n[1];return r&&i&&(e[r]=i),e}),{})}var Kt=!1;function Yt(e){var t=e.spanContext(),n=t.spanId,r=t.traceId,i=t.isRemote;return ht({parent_span_id:i?n:en(e).parent_span_id,span_id:i?Pt():n,trace_id:r})}function Xt(e){return"number"==typeof e?Zt(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?Zt(e.getTime()):yt()}function Zt(e){return e>9999999999?e/1e3:e}function en(e){if(function(e){return"function"==typeof e.getSpanJSON}(e))return e.getSpanJSON();try{var t=e.spanContext(),n=t.spanId,r=t.traceId;if(function(e){var t=e;return!!(t.attributes&&t.startTime&&t.name&&t.endTime&&t.status)}(e)){var i=e.attributes,a=e.startTime,o=e.name,s=e.endTime,l=e.parentSpanId,u=e.status;return ht({span_id:n,trace_id:r,data:i,description:o,parent_span_id:l,start_timestamp:Xt(a),timestamp:Xt(s)||void 0,status:tn(u),op:i["sentry.op"],origin:i["sentry.origin"],_metrics_summary:$t(e)})}return{span_id:n,trace_id:r}}catch(e){return{}}}function tn(e){if(e&&0!==e.code)return 1===e.code?"ok":e.message||"unknown_error"}function nn(e){return e._sentryRootSpan||e}var rn="production";function an(e,t){var n=t.getOptions(),r=(t.getDsn()||{}).publicKey,i=ht({environment:n.environment||rn,release:n.release,public_key:r,trace_id:e});return t.emit("createDsc",i),i}function on(e){var t=Wt();if(!t)return{};var n=nn(e),r=n._frozenDsc;if(r)return r;var i=n.spanContext().traceState,a=i&&i.get("sentry.dsc"),s=a&&function(e){var t=function(e){if(e&&($e(e)||Array.isArray(e)))return Array.isArray(e)?e.reduce((function(e,t){var n=Gt(t);
2return Object.entries(n).forEach((function(t){var n=o(t,2),r=n[0],i=n[1];e[r]=i})),e}),{}):Gt(e)}(e);if(t){var n=Object.entries(t).reduce((function(e,t){var n=o(t,2),r=n[0],i=n[1];return r.match(Qt)&&(e[r.slice(7)]=i),e}),{});return Object.keys(n).length>0?n:void 0}}(a);if(s)return s;var l=an(e.spanContext().traceId,t),u=en(n),c=u.data||{},d=c["sentry.sample_rate"];null!=d&&(l.sample_rate="".concat(d));var f=c["sentry.source"],p=u.description;return"url"!==f&&p&&(l.transaction=p),function(e){if("boolean"==typeof __SENTRY_TRACING__&&!__SENTRY_TRACING__)return!1;var t=Wt(),n=t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}()&&(l.sampled=String(function(e){return 1===e.spanContext().traceFlags}(n))),t.emit("createDsc",l,n),l}var sn=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function ln(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.host,r=e.path,i=e.pass,a=e.port,o=e.projectId,s=e.protocol,l=e.publicKey;return"".concat(s,"://").concat(l).concat(t&&i?":".concat(i):"","@").concat(n).concat(a?":".concat(a):"","/").concat(r?"".concat(r,"/"):r).concat(o)}function un(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function cn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:100,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0;try{return fn("",e,t,n)}catch(e){return{ERROR:"**non-serializable** (".concat(e,")")}}}function dn(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:102400,i=cn(e,n);return t=i,function(e){return~-encodeURI(e).split(/%..|./).length}(JSON.stringify(t))>r?dn(e,n-1,r):i}function fn(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1/0,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1/0,a=arguments.length>4&&void 0!==arguments[4]?arguments[4]:function(){var e="function"==typeof WeakSet,t=e?new WeakSet:[];return[function(n){if(e)return!!t.has(n)||(t.add(n),!1);for(var r=0;r<t.length;r++)if(t[r]===n)return!0;return t.push(n),!1},function(n){if(e)t.delete(n);else for(var r=0;r<t.length;r++)if(t[r]===n){t.splice(r,1);break}}]}(),s=o(a,2),l=s[0],u=s[1];if(null==t||["boolean","string"].includes(typeof t)||"number"==typeof t&&Number.isFinite(t))return t;var c=function(e,t){try{if("domain"===e&&t&&"object"==typeof t&&t._events)return"[Domain]";if("domainEmitter"===e)return"[DomainEmitter]";if("undefined"!=typeof n.g&&t===n.g)return"[Global]";if("undefined"!=typeof window&&t===window)return"[Window]";if("undefined"!=typeof document&&t===document)return"[Document]";if(et(t))return"[VueViewModel]";if(Ke(i=t)&&"nativeEvent"in i&&"preventDefault"in i&&"stopPropagation"in i)return"[SyntheticEvent]";if("number"==typeof t&&!Number.isFinite(t))return"[".concat(t,"]");if("function"==typeof t)return"[Function: ".concat(Oe(t),"]");if("symbol"==typeof t)return"[".concat(String(t),"]");if("bigint"==typeof t)return"[BigInt: ".concat(String(t),"]");var r=function(e){var t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}(t);return/^HTML(\w*)Element$/.test(r)?"[HTMLElement: ".concat(r,"]"):"[object ".concat(r,"]")}catch(e){return"**non-serializable** (".concat(e,")")}var i}(e,t);if(!c.startsWith("[object "))return c;if(t.__sentry_skip_normalization__)return t;var d="number"==typeof t.__sentry_override_normalization_depth__?t.__sentry_override_normalization_depth__:r;if(0===d)return c.replace("object ","");if(l(t))return"[Circular ~]";var f=t;if(f&&"function"==typeof f.toJSON)try{return fn("",f.toJSON(),d-1,i,a)}catch(e){}var p=Array.isArray(t)?[]:{},h=0,v=dt(t);for(var m in v)if(Object.prototype.hasOwnProperty.call(v,m)){if(h>=i){p[m]="[MaxProperties ~]";break}var g=v[m];p[m]=fn(m,g,d-1,i,a),h++}return u(t),p}function pn(e){return[e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]]}function hn(e,t){var n=o(e,2),r=n[0],i=n[1];return[r,[].concat(C(i),[t])]}function vn(e,t){var n,r=M(e[1]);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(t(i,i[0].type))return!0}}catch(a){r.e(a)}finally{r.f()}return!1}function mn(e){return ge.__SENTRY__&&ge.__SENTRY__.encodePolyfill?ge.__SENTRY__.encodePolyfill(e):(new TextEncoder).encode(e)}function gn(e){var t=o(e,2),n=t[0],r=t[1],i=JSON.stringify(n);function a(e){"string"==typeof i?i="string"==typeof e?i+e:[mn(i),e]:i.push("string"==typeof e?mn(e):e)}var s,l=M(r);try{for(l.s();!(s=l.n()).done;){var u=o(s.value,2),c=u[0],d=u[1];if(a("\n".concat(JSON.stringify(c),"\n")),"string"==typeof d||d instanceof Uint8Array)a(d);else{var f=void 0;try{f=JSON.stringify(d)}catch(n){f=JSON.stringify(cn(d))}a(f)}}}catch(p){l.e(p)}finally{l.f()}return"string"==typeof i?i:function(e){var t,n=e.reduce((function(e,t){return e+t.length}
2),0),r=new Uint8Array(n),i=0,a=M(e);try{for(a.s();!(t=a.n()).done;){var o=t.value;r.set(o,i),i+=o.length}}catch(p){a.e(p)}finally{a.f()}return r}(i)}function yn(e){var t="string"==typeof e.data?mn(e.data):e.data;return[ht({type:"attachment",length:t.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),t]}var bn,kn,wn,Sn={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",profile_chunk:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket",raw_security:"security"};function _n(e){return Sn[e]}function Cn(e){if(e&&e.sdk){var t=e.sdk;return{name:t.name,version:t.version}}}function En(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0;return new Tt((function(i,a){var o=e[r];if(null===t||"function"!=typeof o)i(t);else{var s=o(_({},t),n);ve&&o.id&&null===s&&_e.log('Event processor "'.concat(o.id,'" dropped event')),Xe(s)?s.then((function(t){return En(e,t,n,r+1).then(i)})).then(null,a):En(e,s,n,r+1).then(i).then(null,a)}}))}function xn(e,t){var n=t.extra,r=t.tags,i=t.user,a=t.contexts,o=t.level,s=t.sdkProcessingMetadata,l=t.breadcrumbs,u=t.fingerprint,c=t.eventProcessors,d=t.attachments,f=t.propagationContext,p=t.transactionName,h=t.span;Tn(e,"extra",n),Tn(e,"tags",r),Tn(e,"user",i),Tn(e,"contexts",a),e.sdkProcessingMetadata=jt(e.sdkProcessingMetadata,s,2),o&&(e.level=o),p&&(e.transactionName=p),h&&(e.span=h),l.length&&(e.breadcrumbs=[].concat(C(e.breadcrumbs),C(l))),u.length&&(e.fingerprint=[].concat(C(e.fingerprint),C(u))),c.length&&(e.eventProcessors=[].concat(C(e.eventProcessors),C(c))),d.length&&(e.attachments=[].concat(C(e.attachments),C(d))),e.propagationContext=_(_({},e.propagationContext),f)}function Tn(e,t,n){e[t]=jt(e[t],n,1)}function Mn(e,t,n,r,i,a){var s=e.normalizeDepth,l=void 0===s?3:s,u=e.normalizeMaxBreadth,c=void 0===u?1e3:u,d=_(_({},t),{},{event_id:t.event_id||n.event_id||bt(),timestamp:t.timestamp||mt()}),f=n.integrations||e.integrations.map((function(e){return e.name}));!function(e,t){var n=t.environment,r=t.release,i=t.dist,a=t.maxValueLength,o=void 0===a?250:a;e.environment=e.environment||n||rn,!e.release&&r&&(e.release=r),!e.dist&&i&&(e.dist=i),e.message&&(e.message=it(e.message,o));var s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=it(s.value,o));var l=e.request;l&&l.url&&(l.url=it(l.url,o))}(d,e),function(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[].concat(C(e.sdk.integrations||[]),C(t)))}(d,f),i&&i.emit("applyFrameMetadata",t),void 0===t.type&&function(e,t){var n=function(e){var t=ge._sentryDebugIds;if(!t)return{};var n=Object.keys(t);return wn&&n.length===kn||(kn=n.length,wn=n.reduce((function(n,r){bn||(bn={});var i=bn[r];if(i)n[i[0]]=i[1];else for(var a=e(r),o=a.length-1;o>=0;o--){var s=a[o],l=s&&s.filename,u=t[r];if(l&&u){n[l]=u,bn[r]=[l,u];break}}return n}),{})),wn}(t);try{e.exception.values.forEach((function(e){e.stacktrace.frames.forEach((function(e){n&&e.filename&&(e.debug_id=n[e.filename])}))}))}catch(e){}}(d,e.stackParser);var p=function(e,t){if(!t)return e;var n=e?e.clone():new Dt;return n.update(t),n}(r,n.captureContext);n.mechanism&&_t(d,n.mechanism);var h=i?i.getEventProcessors():[],v=ye("globalScope",(function(){return new Dt})).getScopeData();a&&xn(v,a.getScopeData()),p&&xn(v,p.getScopeData());var m=[].concat(C(n.attachments||[]),C(v.attachments));return m.length&&(n.attachments=m),function(e,t){var n=t.fingerprint,r=t.span,i=t.breadcrumbs,a=t.sdkProcessingMetadata;!function(e,t){var n=t.extra,r=t.tags,i=t.user,a=t.contexts,o=t.level,s=t.transactionName,l=ht(n);l&&Object.keys(l).length&&(e.extra=_(_({},l),e.extra));var u=ht(r);u&&Object.keys(u).length&&(e.tags=_(_({},u),e.tags));var c=ht(i);c&&Object.keys(c).length&&(e.user=_(_({},c),e.user));var d=ht(a);d&&Object.keys(d).length&&(e.contexts=_(_({},d),e.contexts)),o&&(e.level=o),s&&"transaction"!==e.type&&(e.transaction=s)}(e,t),r&&function(e,t){e.contexts=_({trace:Yt(t)},e.contexts),e.sdkProcessingMetadata=_({dynamicSamplingContext:on(t)},e.sdkProcessingMetadata);var n=en(nn(t)).description;n&&!e.transaction&&"transaction"===e.type&&(e.transaction=n)}(e,r),function(e,t){e.fingerprint=e.fingerprint?Array.isArray(e.fingerprint)?e.fingerprint:[e.fingerprint]:[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}(e,n),function(e,t){var n=[].concat(C(e.breadcrumbs||[]),C(t));e.breadcrumbs=n.length?n:void 0}(e,i),function(e,t){e.sdkProcessingMetadata=_(_({},e.sdkProcessingMetadata),t)}(e,a)}(d,v),En([].concat(C(h),C(v.eventProcessors)),d,n).then((function(e){return e&&function(e){var t={};
2try{e.exception.values.forEach((function(e){e.stacktrace.frames.forEach((function(e){e.debug_id&&(e.abs_path?t[e.abs_path]=e.debug_id:e.filename&&(t[e.filename]=e.debug_id),delete e.debug_id)}))}))}catch(e){}if(0!==Object.keys(t).length){e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];var n=e.debug_meta.images;Object.entries(t).forEach((function(e){var t=o(e,2),r=t[0],i=t[1];n.push({type:"sourcemap",code_file:r,debug_id:i})}))}}(e),"number"==typeof l&&l>0?function(e,t,n){if(!e)return null;var r=_(_(_(_(_({},e),e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map((function(e){return _(_({},e),e.data&&{data:cn(e.data,t,n)})}))}),e.user&&{user:cn(e.user,t,n)}),e.contexts&&{contexts:cn(e.contexts,t,n)}),e.extra&&{extra:cn(e.extra,t,n)});return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=cn(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map((function(e){return _(_({},e),e.data&&{data:cn(e.data,t,n)})}))),e.contexts&&e.contexts.flags&&r.contexts&&(r.contexts.flags=cn(e.contexts.flags,3,n)),r}(e,l,c):e}))}var On=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function Pn(e,t){return qt().captureEvent(e,t)}function jn(e){var t=Wt(),n=Ht(),r=qt(),i=t&&t.getOptions()||{},a=i.release,o=i.environment,s=void 0===o?rn:o,l=(ge.navigator||{}).userAgent,u=function(e){var t=yt(),n={sid:bt(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:function(){return function(e){return ht({sid:"".concat(e.sid),init:e.init,started:new Date(1e3*e.started).toISOString(),timestamp:new Date(1e3*e.timestamp).toISOString(),status:e.status,errors:e.errors,did:"number"==typeof e.did||"string"==typeof e.did?"".concat(e.did):void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}(n)}};return e&&Mt(n,e),n}(_(_({release:a,environment:s,user:r.getUser()||n.getUser()},l&&{userAgent:l}),e)),c=n.getSession();return c&&"ok"===c.status&&Mt(c,{status:"exited"}),An(),n.setSession(u),r.setSession(u),u}function An(){var e=Ht(),t=qt(),n=t.getSession()||e.getSession();n&&function(e,t){var n={};"ok"===e.status&&(n={status:"exited"}),Mt(e,n)}(n),Ln(),e.setSession(),t.setSession()}function Ln(){var e=Ht(),t=qt(),n=Wt(),r=t.getSession()||e.getSession();r&&n&&n.captureSession(r)}function In(){arguments.length>0&&void 0!==arguments[0]&&arguments[0]?An():Ln()}var Nn=[];function Dn(e,t){var n,r=M(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;i&&i.afterAllSetup&&i.afterAllSetup(e)}}catch(a){r.e(a)}finally{r.f()}}function Rn(e,t,n){if(n[t.name])ve&&_e.log("Integration skipped because it was already installed: ".concat(t.name));else{if(n[t.name]=t,-1===Nn.indexOf(t.name)&&"function"==typeof t.setupOnce&&(t.setupOnce(),Nn.push(t.name)),t.setup&&"function"==typeof t.setup&&t.setup(e),"function"==typeof t.preprocessEvent){var r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(function(t,n){return r(t,n,e)}))}if("function"==typeof t.processEvent){var i=t.processEvent.bind(t),a=Object.assign((function(t,n){return i(t,n,e)}),{id:t.name});e.addEventProcessor(a)}ve&&_e.log("Integration installed: ".concat(t.name))}}var Fn=function(e){p(n,e);var t=g(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"warn";return E(this,n),(r=t.call(this,e)).message=e,r.logLevel=i,r}return T(n)}(b(Error)),zn="Not capturing exception because it's already been captured.",Un=function(){function e(t){if(E(this,e),this._options=t,this._integrations={},this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=function(e){var t="string"==typeof e?function(e){var t=sn.exec(e);if(t){var n=o(t.slice(1),6),r=n[0],i=n[1],a=n[2],s=void 0===a?"":a,l=n[3],u=void 0===l?"":l,c=n[4],d=void 0===c?"":c,f=n[5],p="",h=void 0===f?"":f,v=h.split("/");if(v.length>1&&(p=v.slice(0,-1).join("/"),h=v.pop()),h){var m=h.match(/^\d+/);m&&(h=m[0])}return un({host:u,pass:s,path:p,projectId:h,port:d,protocol:r,publicKey:i})}Se((function(){console.error("Invalid Sentry Dsn: ".concat(e))}))}(e):un(e);if(t&&function(e){if(!be)return!0;var t=e.port,n=e.projectId,r=e.protocol;return!(["protocol","publicKey","host","projectId"].find((function(t){return!e[t]&&(_e.error("Invalid Sentry Dsn: ".concat(t," missing")),!0)}))||(n.match(/^\d+$/)?function(e){return"http"===e||"https"===e}(r)?t&&isNaN(parseInt(t,10))&&(_e.error("Invalid Sentry Dsn: Invalid port ".concat(t)),1):(_e.error("Invalid Sentry Dsn: Invalid protocol ".concat(r)),1):(_e.error("Invalid Sentry Dsn: Invalid projectId ".concat(n)),1)))}(t))return t}(t.dsn):ve&&_e.warn("No DSN provided, client will not send events."),this._dsn){var n=function(e,t,n){return t||"".concat(function(e){return"".concat(function(e){var t=e.protocol?"".concat(e.protocol,":"):"",n=e.port?":".concat(e.port):"";return"".concat(t,"//").concat(e.host).concat(n).concat(e.path?"/".concat(e.path):"","/api/")}(e)).concat(e.projectId,"/envelope/")}(e),"?").concat(function(e,t){var n={sentry_version:"7"};return e.publicKey&&(n.sentry_key=e.publicKey),t&&(n.sentry_client="".concat(t.name,"/").concat(t.version)),new URLSearchParams(n).toString()}(e,n))}(this._dsn,t.tunnel,t._metadata?t._metadata.sdk:void 0);this._transport=t.transport(_(_({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this)},t.transportOptions),{},{url:n}))}var r=["enableTracing","tracesSampleRate","tracesSampler"].find((function(e){return e in t&&null==t[e]}));r&&Se((function(){console.warn("[Sentry] Deprecation warning: `".concat(r,"` is set to undefined, which leads to tracing being enabled. In v9, a value of `undefined` will result in tracing being disabled."))}))}return T(e,[{key:"captureException",value:function(e,t,n){var r=this,i=bt();if(Ct(e))return ve&&_e.log(zn),i;var a=_({event_id:i},t);return this._process(this.eventFromException(e,a).then((function(e){return r._captureEvent(e,a,n)}))),a.event_id}},{key:"captureMessage",value:function(e,t,n,r){var i=this,a=_({event_id:bt()},n),o=Qe(e)?e:String(e),s=Ge(e)?this.eventFromMessage(o,t,a):this.eventFromException(e,a);return this._process(s.then((function(e){return i._captureEvent(e,a,r)}))),a.event_id}},{key:"captureEvent",value:function(e,t,n){var r=bt();if(t&&t.originalException&&Ct(t.originalException))return ve&&_e.log(zn),r;var i=_({event_id:r},t),a=(e.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(e,i,a||n)),i.event_id}},{key:"captureSession",value:function(e){"string"!=typeof e.release?ve&&_e.warn("Discarded session because of missing or non-string release"):(this.sendSession(e),Mt(e,{init:!1}))}},{key:"getDsn",value:function(){return this._dsn}},{key:"getOptions",value:function(){return this._options}},{key:"getSdkMetadata",value:function(){return this._options._metadata}},{key:"getTransport",value:function(){return this._transport}},{key:"flush",value:function(e){var t=this._transport;
2return t?(this.emit("flush"),this._isClientDoneProcessing(e).then((function(n){return t.flush(e).then((function(e){return n&&e}))}))):Et(!0)}},{key:"close",value:function(e){var t=this;return this.flush(e).then((function(e){return t.getOptions().enabled=!1,t.emit("close"),e}))}},{key:"getEventProcessors",value:function(){return this._eventProcessors}},{key:"addEventProcessor",value:function(e){this._eventProcessors.push(e)}},{key:"init",value:function(){(this._isEnabled()||this._options.integrations.some((function(e){return e.name.startsWith("Spotlight")})))&&this._setupIntegrations()}},{key:"getIntegrationByName",value:function(e){return this._integrations[e]}},{key:"addIntegration",value:function(e){var t=this._integrations[e.name];Rn(this,e,this._integrations),t||Dn(this,[e])}},{key:"sendEvent",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.emit("beforeSendEvent",e,n);var r,i=function(e,t,n,r){var i=Cn(n),a=e.type&&"replay_event"!==e.type?e.type:"event";!function(e,t){t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[].concat(C(e.sdk.integrations||[]),C(t.integrations||[])),e.sdk.packages=[].concat(C(e.sdk.packages||[]),C(t.packages||[])))}(e,n&&n.sdk);var o=function(e,t,n,r){var i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return _(_(_({event_id:e.event_id,sent_at:(new Date).toISOString()},t&&{sdk:t}),!!n&&r&&{dsn:ln(r)}),i&&{trace:ht(_({},i))})}(e,i,r,t);return delete e.sdkProcessingMetadata,pn(o,[[{type:a},e]])}(e,this._dsn,this._options._metadata,this._options.tunnel),a=M(n.attachments||[]);try{for(a.s();!(r=a.n()).done;){i=hn(i,yn(r.value))}}catch(s){a.e(s)}finally{a.f()}var o=this.sendEnvelope(i);o&&o.then((function(n){return t.emit("afterSendEvent",e,n)}),null)}},{key:"sendSession",value:function(e){var t=function(e,t,n,r){var i=Cn(n);return pn(_(_({sent_at:(new Date).toISOString()},i&&{sdk:i}),!!r&&t&&{dsn:ln(t)}),["aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()]])}(e,this._dsn,this._options._metadata,this._options.tunnel);this.sendEnvelope(t)}},{key:"recordDroppedEvent",value:function(e,t,n){if(this._options.sendClientReports){var r="number"==typeof n?n:1,i="".concat(e,":").concat(t);ve&&_e.log('Recording outcome: "'.concat(i,'"').concat(r>1?" (".concat(r," times)"):"")),this._outcomes[i]=(this._outcomes[i]||0)+r}}},{key:"on",value:function(e,t){var n=this._hooks[e]=this._hooks[e]||[];return n.push(t),function(){var e=n.indexOf(t);e>-1&&n.splice(e,1)}}},{key:"emit",value: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];var i=this._hooks[e];i&&i.forEach((function(e){return e.apply(void 0,n)}))}},{key:"sendEnvelope",value:function(e){return this.emit("beforeEnvelope",e),this._isEnabled()&&this._transport?this._transport.send(e).then(null,(function(e){return ve&&_e.error("Error while sending envelope:",e),e})):(ve&&_e.error("Transport disabled"),Et({}))}},{key:"_setupIntegrations",value:function(){var e=this._options.integrations;this._integrations=function(e,t){var n={};return t.forEach((function(t){t&&Rn(e,t,n)})),n}(this,e),Dn(this,e)}},{key:"_updateSessionFromEvent",value:function(e,t){var n="fatal"===t.level,r=!1,i=t.exception&&t.exception.values;if(i){r=!0;var a,o=M(i);try{for(o.s();!(a=o.n()).done;){var s=a.value.mechanism;if(s&&!1===s.handled){n=!0;break}}}catch(u){o.e(u)}finally{o.f()}}var l="ok"===e.status;(l&&0===e.errors||l&&n)&&(Mt(e,_(_({},n&&{status:"crashed"}),{},{errors:e.errors||Number(r||n)})),this.captureSession(e))}},{key:"_isClientDoneProcessing",value:function(e){var t=this;return new Tt((function(n){var r=0,i=setInterval((function(){0==t._numProcessing?(clearInterval(i),n(!0)):(r+=1,e&&r>=e&&(clearInterval(i),n(!1)))}),1)}))}},{key:"_isEnabled",value:function(){return!1!==this.getOptions().enabled&&void 0!==this._transport}},{key:"_prepareEvent",value:function(e,t){var n=this,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:qt(),i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ht(),a=this.getOptions(),o=Object.keys(this._integrations);return!t.integrations&&o.length>
20&&(t.integrations=o),this.emit("preprocessEvent",e,t),e.type||i.setLastEventId(e.event_id||t.event_id),Mn(a,e,t,r,this,i).then((function(e){if(null===e)return e;e.contexts=_({trace:Jt(r)},e.contexts);var t=function(e,t){var n=t.getPropagationContext();return n.dsc||an(n.traceId,e)}(n,r);return e.sdkProcessingMetadata=_({dynamicSamplingContext:t},e.sdkProcessingMetadata),e}))}},{key:"_captureEvent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=arguments.length>2?arguments[2]:void 0;return this._processEvent(e,t,n).then((function(e){return e.event_id}),(function(e){ve&&(e instanceof Fn&&"log"===e.logLevel?_e.log(e.message):_e.warn(e))}))}},{key:"_processEvent",value:function(e,t,n){var r=this,i=this.getOptions(),a=i.sampleRate,o=Bn(e),s=Vn(e),l=e.type||"error",u="before send for type `".concat(l,"`"),c=void 0===a?void 0:function(e){if("boolean"==typeof e)return Number(e);var t="string"==typeof e?parseFloat(e):e;if(!("number"!=typeof t||isNaN(t)||t<0||t>1))return t;ve&&_e.warn("[Tracing] Given sample rate is invalid. Sample rate must be a boolean or a number between 0 and 1. Got ".concat(JSON.stringify(e)," of type ").concat(JSON.stringify(typeof e),"."))}(a);if(s&&"number"==typeof c&&Math.random()>c)return this.recordDroppedEvent("sample_rate","error",e),xt(new Fn("Discarding event because it's not included in the random sample (sampling rate = ".concat(a,")"),"log"));var d="replay_event"===l?"replay":l,f=(e.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(e,t,n,f).then((function(n){if(null===n)throw r.recordDroppedEvent("event_processor",d,e),new Fn("An event processor returned `null`, will not send event.","log");if(t.data&&!0===t.data.__sentry__)return n;var a=function(e,t,n,r){var i=t.beforeSend,a=t.beforeSendTransaction,o=t.beforeSendSpan;if(Vn(n)&&i)return i(n,r);if(Bn(n)){if(n.spans&&o){var s,l=[],u=M(n.spans);try{for(u.s();!(s=u.n()).done;){var c=o(s.value);c?l.push(c):(Kt||(Se((function(){console.warn("[Sentry] Deprecation warning: Returning null from `beforeSendSpan` will be disallowed from SDK version 9.0.0 onwards. The callback will only support mutating spans. To drop certain spans, configure the respective integrations directly.")})),Kt=!0),e.recordDroppedEvent("before_send","span"))}}catch(f){u.e(f)}finally{u.f()}n.spans=l}if(a){if(n.spans){var d=n.spans.length;n.sdkProcessingMetadata=_(_({},n.sdkProcessingMetadata),{},{spanCountBeforeProcessing:d})}return a(n,r)}}return n}(r,i,n,t);return function(e,t){var n="".concat(t," must return `null` or a valid event.");if(Xe(e))return e.then((function(e){if(!Ke(e)&&null!==e)throw new Fn(n);return e}),(function(e){throw new Fn("".concat(t," rejected with ").concat(e))}));if(!Ke(e)&&null!==e)throw new Fn(n);return e}(a,u)})).then((function(i){if(null===i){if(r.recordDroppedEvent("before_send",d,e),o){var a=1+(e.spans||[]).length;r.recordDroppedEvent("before_send","span",a)}throw new Fn("".concat(u," returned `null`, will not send event."),"log")}var s=n&&n.getSession();if(!o&&s&&r._updateSessionFromEvent(s,i),o){var l=(i.sdkProcessingMetadata&&i.sdkProcessingMetadata.spanCountBeforeProcessing||0)-(i.spans?i.spans.length:0);l>0&&r.recordDroppedEvent("before_send","span",l)}var c=i.transaction_info;if(o&&c&&i.transaction!==e.transaction){i.transaction_info=_(_({},c),{},{source:"custom"})}return r.sendEvent(i,t),i})).then(null,(function(e){if(e instanceof Fn)throw e;throw r.captureException(e,{data:{__sentry__:!0},originalException:e}),new Fn("Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event.\nReason: ".concat(e))}))}},{key:"_process",value:function(e){var t=this;this._numProcessing++,e.then((function(e){return t._numProcessing--,e}),(function(e){return t._numProcessing--,e}))}},{key:"_clearOutcomes",value:function(){var e=this._outcomes;return this._outcomes={},Object.entries(e).map((function(e){var t=o(e,2),n=t[0],r=t[1],i=o(n.split(":"),2);return{reason:i[0],category:i[1],quantity:r}}))}},{key:"_flushOutcomes",value:function(){ve&&_e.log("Flushing outcomes...");var e=this._clearOutcomes();if(0!==e.length)if(this._dsn){ve&&_e.log("Sending outcomes:",e);var t,n,r=(t=e,pn((n=this._options.tunnel&&ln(this._dsn))?{dsn:n}:{},[[{type:"client_report"},{timestamp:mt(),discarded_events:t}]]));this.sendEnvelope(r)}else ve&&_e.log("No dsn provided, will not send outcomes");else ve&&_e.log("No outcomes to send")}}]),e}();function Vn(e){return void 0===e.type}function Bn(e){return"transaction"===e.type}function qn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){var t=[];function n(e){return t.splice(t.indexOf(e),1)[0]||Promise.resolve(void 0)}return{$:t,add:function(r){if(!(void 0===e||t.length<e))return xt(new Fn("Not adding Promise because buffer limit was reached."));var i=r();return-1===t.indexOf(i)&&t.push(i),i.then((function(){return n(i)})).then(null,(function(){return n(i).then(null,(function(){}))})),i},drain:function(e){return new Tt((function(n,r){var i=t.length;if(!i)return n(!0);var a=setTimeout((function(){e&&e>0&&n(!1)}),e);t.forEach((function(e){Et(e).then((function(){--i||(clearTimeout(a),n(!0))}),r)}))}))}}}(e.bufferSize||64),r={};return{send:function(i){var a=[];if(vn(i,(function(t,n){var i=_n(n);if(function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now();return function(e,t){return e[t]||e.all||0}(e,t)>n}(r,i)){var o=Hn(t,n);e.recordDroppedEvent("ratelimit_backoff",i,o)}else a.push(t)})),0===a.length)return Et({});var s=pn(i[0],a),l=function(t){vn(s,(function(n,r){var i=Hn(n,r);e.recordDroppedEvent(t,_n(r),i)}))};return n.add((function(){return t({body:gn(s)}).then((function(e){return void 0!==e.statusCode&&(e.statusCode<200||e.statusCode>=300)&&ve&&_e.warn("Sentry responded with status code ".concat(e.statusCode," to sent event.")),r=function(e,t){var n=t.statusCode,r=t.headers,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Date.now(),a=_({},e),s=r&&r["x-sentry-rate-limits"],l=r&&r["retry-after"];if(s){var u,c=M(s.trim().split(","));try{for(c.s();!(u=c.n()).done;){var d=o(u.value.split(":",5),5),f=d[0],p=d[1],h=d[4],v=parseInt(f,10),m=1e3*(isNaN(v)?60:v);if(p){var g,y=M(p.split(";"));try{for(y.s();!(g=y.n()).done;){var b=g.value;"metric_bucket"===b&&h&&!h.split(";").includes("custom")||(a[b]=i+m)}}catch(k){y.e(k)}finally{y.f()}}else a.all=i+m}}catch(k){c.e(k)}finally{c.f()}}else l?a.all=i+function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Date.now(),n=parseInt("".concat(e),10);if(!isNaN(n))return 1e3*n;var r=Date.parse("".concat(e));return isNaN(r)?6e4:r-t}(l,i):429===n&&(a.all=i+6e4);return a}(r,e),e}),(function(e){throw l("network_error"),e}))})).then((function(e){return e}),(function(e){if(e instanceof Fn)return ve&&_e.error("Skipped sending event because buffer is full."),l("queue_overflow"),Et({});throw e}))},flush:function(e){return n.drain(e)}}}function Hn(e,t){if("event"===t||"transaction"===t)return Array.isArray(e)?e[1]:void 0}var Wn;function Jn(e,t){var n=Wt(),r=Ht();if(n){var i=n.getOptions(),a=i.beforeBreadcrumb,o=void 0===a?null:a,s=i.maxBreadcrumbs,l=void 0===s?100:s;if(!(l<=0)){var u=_({timestamp:mt()},e),c=o?Se((function(){return o(u,t)})):u;null!==c&&(n.emit&&n.emit("beforeAddBreadcrumb",c,t),r.addBreadcrumb(c,l))}}}var $n=new WeakMap,Qn=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/,"undefined is not an object (evaluating 'a.L')",'can\'t redefine non-configurable property "solana"',"vv().getRestrictions is not a function. (In 'vv().getRestrictions(1,a)', 'vv().getRestrictions' is undefined)","Can't find variable: _AutofillCallbackHandler",/^Non-Error promise rejection captured with value: Object Not Found Matching Id:\d+, MethodName:simulateEvent, ParamCount:\d+$/],Gn=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return{name:"InboundFilters",processEvent:function(t,n,r){var i=r.getOptions(),a=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return{allowUrls:[].concat(C(e.allowUrls||[]),C(t.allowUrls||[])),denyUrls:[].concat(C(e.denyUrls||[]),C(t.denyUrls||[])),ignoreErrors:[].concat(C(e.ignoreErrors||[]),C(t.ignoreErrors||[]),C(e.disableErrorDefaults?[]:Qn)),ignoreTransactions:[].concat(C(e.ignoreTransactions||[]),C(t.ignoreTransactions||[])),ignoreInternal:void 0===e.ignoreInternal||e.ignoreInternal}}(e,i);return function(e,t){return t.ignoreInternal&&function(e){try{return"SentryError"===e.exception.values[0].type}catch(e){}return!1}(e)?(ve&&_e.warn("Event dropped due to being internal Sentry Error.\nEvent: ".concat(wt(e))),!0):function(e,t){return!(e.type||!t||!t.length)&&function(e){var t,n=[];e.message&&n.push(e.message);try{t=e.exception.values[e.exception.values.length-1]}catch(e){}return t&&t.value&&(n.push(t.value),t.type&&n.push("".concat(t.type,": ").concat(t.value))),n}(e).some((function(e){return ot(e,t)}))}(e,t.ignoreErrors)?(ve&&_e.warn("Event dropped due to being matched by `ignoreErrors` option.\nEvent: ".concat(wt(e))),!0):function(e){return!e.type&&(!(!e.exception||!e.exception.values||0===e.exception.values.length)&&(!e.message&&!e.exception.values.some((function(e){return e.stacktrace||e.type&&"Error"!==e.type||e.value}))))}(e)?(ve&&_e.warn("Event dropped due to not having an error message, error type or stacktrace.\nEvent: ".concat(wt(e))),!0):function(e,t){if("transaction"!==e.type||!t||!t.length)return!1;var n=e.transaction;return!!n&&ot(n,t)}(e,t.ignoreTransactions)?(ve&&_e.warn("Event dropped due to being matched by `ignoreTransactions` option.\nEvent: ".concat(wt(e))),!0):function(e,t){if(!t||!t.length)return!1;var n=Kn(e);return!!n&&ot(n,t)}(e,t.denyUrls)?(ve&&_e.warn("Event dropped due to being matched by `denyUrls` option.\nEvent: ".concat(wt(e),".\nUrl: ").concat(Kn(e))),!0):!function(e,t){if(!t||!t.length)return!0;var n=Kn(e);return!n||ot(n,t)}(e,t.allowUrls)&&(ve&&_e.warn("Event dropped due to not being matched by `allowUrls` option.\nEvent: ".concat(wt(e),".\nUrl: ").concat(Kn(e))),!0)}(t,a)?null:t}}};function Kn(e){try{var t;try{t=e.exception.values[0].stacktrace.frames}catch(e){}return t?function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=e.length-1;t>=0;t--){var n=e[t];if(n&&"<anonymous>"!==n.filename&&"[native code]"!==n.filename)return n.filename||null}return null}(t):null}catch(P){return ve&&_e.error("Cannot extract url for event ".concat(wt(e))),null}}function Yn(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:250,r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=arguments.length>5?arguments[5]:void 0,o=arguments.length>6?arguments[6]:void 0;if(a.exception&&a.exception.values&&o&&Ze(o.originalException,Error)){var s,l,u=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;u&&(a.exception.values=(s=Xn(e,t,i,o.originalException,r,a.exception.values,u,0),l=n,s.map((function(e){return e.value&&(e.value=it(e.value,l)),e}))))}}
2function Xn(e,t,n,r,i,a,o,s){if(a.length>=n+1)return a;var l=C(a);if(Ze(r[i],Error)){Zn(o,s);var u=e(t,r[i]),c=l.length;er(u,i,c,s),l=Xn(e,t,n,r[i],i,[u].concat(C(l)),u,c)}return Array.isArray(r.errors)&&r.errors.forEach((function(r,a){if(Ze(r,Error)){Zn(o,s);var u=e(t,r),c=l.length;er(u,"errors[".concat(a,"]"),c,s),l=Xn(e,t,n,r,i,[u].concat(C(l)),u,c)}})),l}function Zn(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism=_(_(_({},e.mechanism),"AggregateError"===e.type&&{is_exception_group:!0}),{},{exception_id:t})}function er(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism=_(_({},e.mechanism),{},{type:"chained",source:t,exception_id:n,parent_id:r})}function tr(e){if(!e)return{};var t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};var n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}function nr(){"console"in ge&&ke.forEach((function(e){e in ge.console&&st(ge.console,e,(function(t){return we[e]=t,function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];Ne("console",{args:n,level:e});var i=we[e];i&&i.apply(ge.console,n)}}))}))}function rr(e){return"warn"===e?"warning":["fatal","error","warning","log","info","debug"].includes(e)?e:"log"}var ir=function(){var e;return{name:"Dedupe",processEvent:function(t){if(t.type)return t;try{if(function(e,t){return!!t&&(!!function(e,t){var n=e.message,r=t.message;return!(!n&&!r)&&(!(n&&!r||!n&&r)&&(n===r&&(!!or(e,t)&&!!ar(e,t))))}(e,t)||!!function(e,t){var n=sr(t),r=sr(e);return!(!n||!r)&&(n.type===r.type&&n.value===r.value&&(!!or(e,t)&&!!ar(e,t)))}(e,t))}(t,e))return ve&&_e.warn("Event dropped due to being a duplicate of previously captured event."),null}catch(e){}return e=t}}};function ar(e,t){var n=Pe(e),r=Pe(t);if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;if(r.length!==n.length)return!1;for(var i=0;i<r.length;i++){var a=r[i],o=n[i];if(a.filename!==o.filename||a.lineno!==o.lineno||a.colno!==o.colno||a.function!==o.function)return!1}return!0}function or(e,t){var n=e.fingerprint,r=t.fingerprint;if(!n&&!r)return!0;if(n&&!r||!n&&r)return!1;try{return!(n.join("")!==r.join(""))}catch(e){return!1}}function sr(e){return e.exception&&e.exception.values&&e.exception.values[0]}function lr(e){return void 0===e?void 0:e>=400&&e<500?"warning":e>=500?"error":void 0}var ur=ge;function cr(e){return e&&/^function\s+\w+\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function dr(e,t){var n="fetch";Le(n,e),Ie(n,(function(){return function(e){arguments.length>
21&&void 0!==arguments[1]&&arguments[1]&&!function(){if("string"==typeof EdgeRuntime)return!0;if(!function(){if(!("fetch"in ur))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch(e){return!1}}())return!1;if(cr(ur.fetch))return!0;var e=!1,t=ur.document;if(t&&"function"==typeof t.createElement)try{var n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=cr(n.contentWindow.fetch)),t.head.removeChild(n)}catch(e){be&&_e.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",e)}return e}()||st(ge,"fetch",(function(t){return function(){for(var n=arguments.length,i=new Array(n),a=0;a<n;a++)i[a]=arguments[a];var s=new Error,u=function(e){if(0===e.length)return{method:"GET",url:""};if(2===e.length){var t=o(e,2),n=t[0],r=t[1];return{url:pr(n),method:fr(r,"method")?String(r.method).toUpperCase():"GET"}}var i=e[0];return{url:pr(i),method:fr(i,"method")?String(i.method).toUpperCase():"GET"}}(i),c={args:i,fetchData:{method:u.method,url:u.url},startTimestamp:1e3*yt(),virtualError:s};return e||Ne("fetch",_({},c)),t.apply(ge,i).then(function(){var t=r(l().mark((function t(n){return l().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",(e?e(n):Ne("fetch",_(_({},c),{},{endTimestamp:1e3*yt(),response:n})),n));case 1:case"end":return t.stop()}}),t)})));return function(e){return t.apply(this,arguments)}}(),(function(e){throw Ne("fetch",_(_({},c),{},{endTimestamp:1e3*yt(),error:e})),qe(e)&&void 0===e.stack&&(e.stack=s.stack,lt(e,"framesToPop",1)),e}))}}))}(void 0,t)}))}function fr(e,t){return!!e&&"object"==typeof e&&!!e[t]}function pr(e){return"string"==typeof e?e:e?fr(e,"url")?e.url:e.toString?e.toString():"":""}var hr=ge,vr=ge,mr=0;function gr(){return mr>0}function yr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(!function(e){return"function"==typeof e}(e))return e;try{var n=e.__sentry_wrapped__;if(n)return"function"==typeof n?n:e;if(ct(e))return e}catch(t){return e}var r=function(){for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];try{var a=r.map((function(e){return yr(e,t)}));return e.apply(this,a)}catch(e){throw mr++,setTimeout((function(){mr--})),function(){for(var e=Bt(Ue()),t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(2===n.length){var i=n[0],a=n[1];return i?e.withSetScope(i,a):e.withScope(a)}e.withScope(n[0])}((function(i){var a;i.addEventProcessor((function(e){return t.mechanism&&(St(e,void 0,void 0),_t(e,t.mechanism)),e.extra=_(_({},e.extra),{},{arguments:r}),e})),a=e,qt().captureException(a,function(e){if(e)return function(e){return e instanceof Dt||"function"==typeof e}(e)||function(e){return Object.keys(e).some((function(e){return On.includes(e)}))}(e)?{captureContext:e}:e}(undefined))})),e}};try{for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch(e){}ut(r,e),lt(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get:function(){return e.name}})}catch(e){}return r}var br="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__;function kr(e,t){var n=Sr(e,t),r={type:Er(t),value:xr(t)};return n.length&&(r.stacktrace={frames:n}),void 0===r.type&&""===r.value&&(r.value="Unrecoverable error caught"),r}function wr(e,t){return{exception:{values:[kr(e,t)]}}}function Sr(e,t){var n=t.stacktrace||t.stack||"",r=function(e){return e&&_r.test(e.message)?1:0}(t),i=function(e){return"number"==typeof e.framesToPop?e.framesToPop:0}(t);try{return e(n,r,i)}catch(e){}return[]}var _r=/Minified React error #\d+;/i;function Cr(e){return"undefined"!=typeof WebAssembly&&void 0!==WebAssembly.Exception&&e instanceof WebAssembly.Exception}function Er(e){var t=e&&e.name;return!t&&Cr(e)?e.message&&Array.isArray(e.message)&&2==e.message.length?e.message[0]:"WebAssembly.Exception":t}function xr(e){var t=e&&e.message;return t?t.error&&"string"==typeof t.error.message?t.error.message:Cr(e)&&Array.isArray(e.message)&&2==e.message.length?e.message[1]:t:"No error message"}function Tr(e,t,n,r,i){var a;if(We(t)&&t.error)return wr(e,t.error);if(Je(t)||He(t,"DOMException")){var o=t;if("stack"in t)a=wr(e,t);else{var s=o.name||(Je(o)?"DOMError":"DOMException"),l=o.message?"".concat(s,": ").concat(o.message):s;St(a=Mr(e,l,n,r),l)}return"code"in o&&(a.tags=_(_({},a.tags),{},{"DOMException.code":"".concat(o.code)})),a}return qe(t)?wr(e,t):Ke(t)||Ye(t)?(a=function(e,t,n,r){var i=Wt(),a=i&&i.getOptions().normalizeDepth,o=function(e){for(var t in e)if(Object.prototype.hasOwnProperty.call(e,t)){var n=e[t];if(n instanceof Error)return n}}(t),s={__serialized__:dn(t,a)};if(o)return{exception:{values:[kr(e,o)]},extra:s};var l={exception:{values:[{type:Ye(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Or(t,{isUnhandledRejection:r})}]},extra:s};if(n){var u=Sr(e,n);u.length&&(l.exception.values[0].stacktrace={frames:u})}return l}(e,t,n,i),_t(a,{synthetic:!0}),a):(St(a=Mr(e,t,n,r),"".concat(t),void 0),_t(a,{synthetic:!0}),a)}function Mr(e,t,n,r){var i={};if(r&&n){var a=Sr(e,n);a.length&&(i.exception={values:[{value:t,stacktrace:{frames:a}}]}),_t(i,{synthetic:!0})}
2if(Qe(t)){var o=t.__sentry_template_string__,s=t.__sentry_template_values__;return i.logentry={message:o,params:s},i}return i.message=t,i}function Or(e,t){var n=t.isUnhandledRejection,r=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:40,n=Object.keys(dt(e));n.sort();var r=n[0];if(!r)return"[object has no keys]";if(r.length>=t)return it(r,t);for(var i=n.length;i>0;i--){var a=n.slice(0,i).join(", ");if(!(a.length>t))return i===n.length?a:it(a,t)}return""}(e),i=n?"promise rejection":"exception";return We(e)?"Event `ErrorEvent` captured as ".concat(i," with message `").concat(e.message,"`"):Ye(e)?"Event `".concat(function(e){try{var t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch(e){}}(e),"` (type=").concat(e.type,") captured as ").concat(i):"Object captured as ".concat(i," with keys: ").concat(r)}var Pr,jr,Ar,Lr,Ir=function(e){p(n,e);var t=g(n);function n(e){var r;E(this,n);var i=_({parentSpanIsAlwaysRootSpan:!0},e);return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[t],r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"npm",i=e._metadata||{};i.sdk||(i.sdk={name:"sentry.javascript.".concat(t),packages:n.map((function(e){return{name:"".concat(r,":@sentry/").concat(e),version:me}})),version:me}),e._metadata=i}(i,"browser",["browser"],vr.SENTRY_SDK_SOURCE||"npm"),r=t.call(this,i),i.sendClientReports&&vr.document&&vr.document.addEventListener("visibilitychange",(function(){"hidden"===vr.document.visibilityState&&r._flushOutcomes()})),r}return T(n,[{key:"eventFromException",value:function(e,t){return function(e,t,n,r){var i=Tr(e,t,n&&n.syntheticException||void 0,r);return _t(i),i.level="error",n&&n.event_id&&(i.event_id=n.event_id),Et(i)}(this._options.stackParser,e,t,this._options.attachStacktrace)}},{key:"eventFromMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"info",n=arguments.length>2?arguments[2]:void 0;return function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"info",r=arguments.length>3?arguments[3]:void 0,i=arguments.length>4?arguments[4]:void 0,a=Mr(e,t,r&&r.syntheticException||void 0,i);return a.level=n,r&&r.event_id&&(a.event_id=r.event_id),Et(a)}(this._options.stackParser,e,t,n,this._options.attachStacktrace)}},{key:"captureUserFeedback",value:function(e){if(this._isEnabled()){var t=function(e,t){var n=t.metadata,r=t.tunnel,i=t.dsn,a=_(_({event_id:e.event_id,sent_at:(new Date).toISOString()},n&&n.sdk&&{sdk:{name:n.sdk.name,version:n.sdk.version}}),!!r&&!!i&&{dsn:ln(i)}),o=function(e){return[{type:"user_report"},e]}(e);return pn(a,[o])}(e,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this.sendEnvelope(t)}else br&&_e.warn("SDK not enabled, will not capture user feedback.")}},{key:"_prepareEvent",value:function(e,t,r){return e.platform=e.platform||"javascript",d(c(n.prototype),"_prepareEvent",this).call(this,e,t,r)}}]),n}(Un),Nr="undefined"==typeof __SENTRY_DEBUG__||__SENTRY_DEBUG__,Dr=ge;function Rr(){if(Dr.document){var e=Ne.bind(null,"dom"),t=Fr(e,!0);Dr.document.addEventListener("click",t,!1),Dr.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach((function(t){var n=Dr[t],r=n&&n.prototype;r&&r.hasOwnProperty&&r.hasOwnProperty("addEventListener")&&(st(r,"addEventListener",(function(t){return function(n,r,i){if("click"===n||"keypress"==n)try{var a=this.__sentry_instrumentation_handlers__=this.__sentry_instrumentation_handlers__||{},o=a[n]=a[n]||{refCount:0};if(!o.handler){var s=Fr(e);o.handler=s,t.call(this,n,s,i)}o.refCount++}catch(e){}return t.call(this,n,r,i)}})),st(r,"removeEventListener",(function(e){return function(t,n,r){if("click"===t||"keypress"==t)try{var i=this.__sentry_instrumentation_handlers__||{},a=i[t];a&&(a.refCount--,a.refCount<=0&&(e.call(this,t,a.handler,r),a.handler=void 0,delete i[t]),0===Object.keys(i).length&&delete this.__sentry_instrumentation_handlers__)}catch(e){}return e.call(this,t,n,r)}})))}))}}function Fr(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return function(n){if(n&&!n._sentryCaptured){var r=function(e){try{return e.target}catch(e){return null}}(n);if(!function(e,t){return"keypress"===e&&(!t||!t.tagName||"INPUT"!==t.tagName&&"TEXTAREA"!==t.tagName&&!t.isContentEditable)}
2(n.type,r)){lt(n,"_sentryCaptured",!0),r&&!r._sentryId&<(r,"_sentryId",bt());var i="keypress"===n.type?"input":n.type;(function(e){if(e.type!==jr)return!1;try{if(!e.target||e.target._sentryId!==Ar)return!1}catch(e){}return!0})(n)||(e({event:n,name:i,global:t}),jr=n.type,Ar=r?r._sentryId:void 0),clearTimeout(Pr),Pr=Dr.setTimeout((function(){Ar=void 0,jr=void 0}),1e3)}}}}function zr(e){var t="history";Le(t,e),Ie(t,Ur)}function Ur(){if(function(){var e=hr.chrome,t=e&&e.app&&e.app.runtime,n="history"in hr&&!!hr.history.pushState&&!!hr.history.replaceState;return!t&&n}()){var e=Dr.onpopstate;Dr.onpopstate=function(){var t=Dr.location.href,n=Lr;if(Lr=t,Ne("history",{from:n,to:t}),e)try{for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return e.apply(this,i)}catch(e){}},st(Dr.history,"pushState",t),st(Dr.history,"replaceState",t)}function t(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n.length>2?n[2]:void 0;if(i){var a=Lr,o=String(i);Lr=o,Ne("history",{from:a,to:o})}return e.apply(this,n)}}}var Vr={};function Br(e){Vr[e]=void 0}var qr="__sentry_xhr_v3__";function Hr(){if(Dr.XMLHttpRequest){var e=XMLHttpRequest.prototype;e.open=new Proxy(e.open,{apply:function(e,t,n){var r=new Error,i=1e3*yt(),a=$e(n[0])?n[0].toUpperCase():void 0,s=function(e){if($e(e))return e;try{return e.toString()}catch(e){}}(n[1]);if(!a||!s)return e.apply(t,n);t[qr]={method:a,url:s,request_headers:{}},"POST"===a&&s.match(/sentry_key/)&&(t.__sentry_own_request__=!0);var l=function(){var e=t[qr];if(e&&4===t.readyState){try{e.status_code=t.status}catch(e){}Ne("xhr",{endTimestamp:1e3*yt(),startTimestamp:i,xhr:t,virtualError:r})}};return"onreadystatechange"in t&&"function"==typeof t.onreadystatechange?t.onreadystatechange=new Proxy(t.onreadystatechange,{apply:function(e,t,n){return l(),e.apply(t,n)}}):t.addEventListener("readystatechange",l),t.setRequestHeader=new Proxy(t.setRequestHeader,{apply:function(e,t,n){var r=o(n,2),i=r[0],a=r[1],s=t[qr];return s&&$e(i)&&$e(a)&&(s.request_headers[i.toLowerCase()]=a),e.apply(t,n)}}),e.apply(t,n)}}),e.send=new Proxy(e.send,{apply:function(e,t,n){var r=t[qr];return r?(void 0!==n[0]&&(r.body=n[0]),Ne("xhr",{startTimestamp:1e3*yt(),xhr:t}),e.apply(t,n)):e.apply(t,n)}})}}function Wr(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){var t=Vr[e];if(t)return t;var n=Dr[e];if(cr(n))return Vr[e]=n.bind(Dr);var r=Dr.document;if(r&&"function"==typeof r.createElement)try{var i=r.createElement("iframe");i.hidden=!0,r.head.appendChild(i);var a=i.contentWindow;a&&a[e]&&(n=a[e]),r.head.removeChild(i)}catch(t){Nr&&_e.warn("Could not create sandbox iframe for ".concat(e," check, bailing to window.").concat(e,": "),t)}return n?Vr[e]=n.bind(Dr):n}("fetch"),n=0,r=0;return qn(e,(function(i){var a=i.body.length;n+=a,r++;var o=_({body:i.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15},e.fetchOptions);if(!t)return Br("fetch"),xt("No fetch implementation available");try{return t(e.url,o).then((function(e){return n-=a,r--,{statusCode:e.status,headers:{"x-sentry-rate-limits":e.headers.get("X-Sentry-Rate-Limits"),"retry-after":e.headers.get("Retry-After")}}}))}catch(e){return Br("fetch"),n-=a,r--,xt(e)}}))}function Jr(e,t,n,r){var i={filename:e,function:"<anonymous>"===t?Ce:t,in_app:!0};return void 0!==n&&(i.lineno=n),void 0!==r&&(i.colno=r),i}var $r=/^\s*at (\S+?)(?::(\d+))(?::(\d+))\s*$/i,Qr=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:<anonymous>|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Gr=/\((\S*)(?::(\d+))(?::(\d+))\)/,Kr=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Yr=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Xr=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=t.sort((function(e,t){return e[0]-t[0]})).map((function(e){return e[1]}));return function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,i=[],a=e.split("\n"),o=t;o<a.length;o++){var s=a[o];if(!(s.length>1024)){var l=Ee.test(s)?s.replace(Ee,"$1"):s;if(!l.match(/\S*Error: /)){var u,c=M(r);try{for(c.s();!(u=c.n()).done;){var d=(0,u.value)(l);if(d){i.push(d);break}}}catch(f){c.e(f)}finally{c.f()}if(i.length>=50+n)break}}}return function(e){if(!e.length)return[];var t=Array.from(e);return/sentryWrapped/.test(Te(t).function||"")&&t.pop(),t.reverse(),xe.test(Te(t).function||"")&&(t.pop(),xe.test(Te(t).function||"")&&t.pop()),t.slice(0,50).map((function(e){return _(_({},e),{},{filename:e.filename||Te(t).filename,function:e.function||Ce})}))}(i.slice(n))}}.apply(void 0,[[30,function(e){var t=$r.exec(e);if(t){var n=o(t,4),r=n[1],i=n[2],a=n[3];return Jr(r,Ce,+i,+a)}var s=Qr.exec(e);if(s){if(s[2]&&0===s[2].indexOf("eval")){var l=Gr.exec(s[2]);l&&(s[2]=l[1],s[3]=l[2],s[4]=l[3])}var u=o(Zr(s[1]||Ce,s[2]),2),c=u[0];return Jr(u[1],c,s[3]?+s[3]:void 0,s[4]?+s[4]:void 0)}}],[50,function(e){var t=Kr.exec(e);if(t){var n;if(t[3]&&t[3].indexOf(" > eval")>-1){var r=Yr.exec(t[3]);r&&(t[1]=t[1]||"eval",t[3]=r[1],t[4]=r[2],t[5]="")}var i=t[3],a=t[1]||Ce;return a=(n=o(Zr(a,i),2))[0],Jr(i=n[1],a,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}}]]),Zr=function(e,t){var n=-1!==e.indexOf("safari-extension"),r=-1!==e.indexOf("safari-web-extension");return n||r?[-1!==e.indexOf("@")?e.split("@")[0]:Ce,n?"safari-extension:".concat(t):"safari-web-extension:".concat(t)]:[e,t]},ei=function(){var e=_({console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});return{name:"Breadcrumbs",setup:function(t){var n;e.console&&function(e){var t="console";Le(t,e),Ie(t,nr)}(function(e){return function(t){if(Wt()===e){var n={category:"console",data:{arguments:t.args,logger:"console"},level:rr(t.level),message:at(t.args," ")};if("assert"===t.level){if(!1!==t.args[0])return;n.message="Assertion failed: ".concat(at(t.args.slice(1)," ")||"console.assert"),n.data.arguments=t.args.slice(1)}Jn(n,{input:t.args,level:t.level})}}}(t)),e.dom&&(n=function(e,t){return function(n){if(Wt()===e){var r,i,a="object"==typeof t?t.serializeAttribute:void 0,o="object"==typeof t&&"number"==typeof t.maxStringLength?t.maxStringLength:void 0;o&&o>1024&&(br&&_e.warn("`dom.maxStringLength` cannot exceed 1024, but a value of ".concat(o," was configured. Sentry will use 1024 instead.")),o=1024),"string"==typeof a&&(a=[a]
2);try{var s=n.event,l=function(e){return!!e&&!!e.target}(s)?s.target:s;r=nt(l,{keyAttrs:a,maxStringLength:o}),i=function(e){if(!tt.HTMLElement)return null;for(var t=e,n=0;n<5;n++){if(!t)return null;if(t instanceof HTMLElement){if(t.dataset.sentryComponent)return t.dataset.sentryComponent;if(t.dataset.sentryElement)return t.dataset.sentryElement}t=t.parentNode}return null}(l)}catch(e){r="<unknown>"}if(0!==r.length){var u={category:"ui.".concat(n.name),message:r};i&&(u.data={"ui.component_name":i}),Jn(u,{event:n.event,name:n.name,global:n.global})}}}}(t,e.dom),Le("dom",n),Ie("dom",Rr)),e.xhr&&function(e){Le("xhr",e),Ie("xhr",Hr)}(function(e){return function(t){if(Wt()===e){var n=t.startTimestamp,r=t.endTimestamp,i=t.xhr[qr];if(n&&r&&i){var a=i.method,o=i.url,s=i.status_code,l=i.body,u={method:a,url:o,status_code:s},c={xhr:t.xhr,input:l,startTimestamp:n,endTimestamp:r};Jn({category:"xhr",data:u,type:"http",level:lr(s)},c)}}}}(t)),e.fetch&&dr(function(e){return function(t){if(Wt()===e){var n=t.startTimestamp,r=t.endTimestamp;if(r&&(!t.fetchData.url.match(/sentry_key/)||"POST"!==t.fetchData.method))if(t.error)Jn({category:"fetch",data:t.fetchData,level:"error",type:"http"},{data:t.error,input:t.args,startTimestamp:n,endTimestamp:r});else{var i=t.response,a=_(_({},t.fetchData),{},{status_code:i&&i.status}),o={input:t.args,response:i,startTimestamp:n,endTimestamp:r};Jn({category:"fetch",data:a,type:"http",level:lr(a.status_code)},o)}}}}(t)),e.history&&zr(function(e){return function(t){if(Wt()===e){var n=t.from,r=t.to,i=tr(vr.location.href),a=n?tr(n):void 0,o=tr(r);a&&a.path||(a=i),i.protocol===o.protocol&&i.host===o.host&&(r=o.relative),i.protocol===a.protocol&&i.host===a.host&&(n=a.relative),Jn({category:"navigation",data:{from:n,to:r}})}}}(t)),e.sentry&&t.on("beforeSendEvent",function(e){return function(t){Wt()===e&&Jn({category:"sentry."+("transaction"===t.type?"transaction":"event"),event_id:t.event_id,level:t.level,message:wt(t)},{event:t})}}(t))}}},ti=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],ni=function(){var e=_({XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0},arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});return{name:"BrowserApiErrors",setupOnce:function(){e.setTimeout&&st(vr,"setTimeout",ri),e.setInterval&&st(vr,"setInterval",ri),e.requestAnimationFrame&&st(vr,"requestAnimationFrame",ii),e.XMLHttpRequest&&"XMLHttpRequest"in vr&&st(XMLHttpRequest.prototype,"send",ai);var t=e.eventTarget;t&&(Array.isArray(t)?t:ti).forEach(oi)}}};function ri(e){return function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var i=n[0];return n[0]=yr(i,{mechanism:{data:{function:Oe(e)},handled:!1,type:"instrument"}}),e.apply(this,n)}}function ii(e){return function(t){return e.apply(this,[yr(t,{mechanism:{data:{function:"requestAnimationFrame",handler:Oe(e)},handled:!1,type:"instrument"}})])}}function ai(e){return function(){for(var t=this,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return["onload","onerror","onprogress","onreadystatechange"].forEach((function(e){e in t&&"function"==typeof t[e]&&st(t,e,(function(t){var n={mechanism:{data:{function:e,handler:Oe(t)},handled:!1,type:"instrument"}},r=ct(t);return r&&(n.mechanism.data.handler=Oe(r)),yr(t,n)}))})),e.apply(this,r)}}function oi(e){var t=vr[e],n=t&&t.prototype;n&&n.hasOwnProperty&&n.hasOwnProperty("addEventListener")&&(st(n,"addEventListener",(function(t){return function(n,r,i){try{"function"==typeof r.handleEvent&&(r.handleEvent=yr(r.handleEvent,{mechanism:{data:{function:"handleEvent",handler:Oe(r),target:e},handled:!1,type:"instrument"}}))}catch(e){}return t.apply(this,[n,yr(r,{mechanism:{data:{function:"addEventListener",handler:Oe(r),target:e},handled:!1,type:"instrument"}}),i])}})),st(n,"removeEventListener",(function(e){return function(t,n,r){try{var i=n.__sentry_wrapped__;i&&e.call(this,t,i,r)}catch(e){}return e.call(this,t,n,r)}})))}var si=function(){return{name:"BrowserSession",setupOnce:function(){void 0!==vr.document?(jn({ignoreDuration:!0}),In(),zr((function(e){var t=e.from,n=e.to;void 0!==t&&t!==n&&(jn({ignoreDuration:!0}),In())}))):br&&_e.warn("Using the `browserSessionIntegration` in non-browser environments is not supported.")}}},li=function(){var e=_({onerror:!0,onunhandledrejection:!0}
2,arguments.length>0&&void 0!==arguments[0]?arguments[0]:{});return{name:"GlobalHandlers",setupOnce:function(){Error.stackTraceLimit=50},setup:function(t){e.onerror&&(function(e){!function(e){var t="error";Le(t,e),Ie(t,Re)}((function(t){var n=ci(),r=n.stackParser,i=n.attachStacktrace;if(Wt()===e&&!gr()){var a=t.msg,o=t.url,s=t.line,l=t.column,u=t.error,c=function(e,t,n,r){var i=e.exception=e.exception||{},a=i.values=i.values||[],o=a[0]=a[0]||{},s=o.stacktrace=o.stacktrace||{},l=s.frames=s.frames||[],u=r,c=n,d=$e(t)&&t.length>0?t:function(){try{return tt.document.location.href}catch(e){return""}}();return 0===l.length&&l.push({colno:u,filename:d,function:Ce,in_app:!0,lineno:c}),e}(Tr(r,u||a,void 0,i,!1),o,s,l);c.level="error",Pn(c,{originalException:u,mechanism:{handled:!1,type:"onerror"}})}}))}(t),ui("onerror")),e.onunhandledrejection&&(function(e){!function(e){var t="unhandledrejection";Le(t,e),Ie(t,ze)}((function(t){var n=ci(),r=n.stackParser,i=n.attachStacktrace;if(Wt()===e&&!gr()){var a=function(e){if(Ge(e))return e;try{if("reason"in e)return e.reason;if("detail"in e&&"reason"in e.detail)return e.detail.reason}catch(e){}return e}(t),o=Ge(a)?{exception:{values:[{type:"UnhandledRejection",value:"Non-Error promise rejection captured with value: ".concat(String(a))}]}}:Tr(r,a,void 0,i,!0);o.level="error",Pn(o,{originalException:a,mechanism:{handled:!1,type:"onunhandledrejection"}})}}))}(t),ui("onunhandledrejection"))}}};function ui(e){br&&_e.log("Global Handler attached: ".concat(e))}function ci(){var e=Wt();return e&&e.getOptions()||{stackParser:function(){return[]},attachStacktrace:!1}}var di=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.limit||5,n=e.key||"cause";return{name:"LinkedErrors",preprocessEvent:function(e,r,i){var a=i.getOptions();Yn(kr,a.stackParser,a.maxValueLength,n,t,e,r)}}},fi="new",pi="loading",hi="loaded",vi="joining-meeting",mi="joined-meeting",gi="left-meeting",yi="error",bi="unknown",ki="no-room",wi="end-of-life",Si="connection-error",_i="loaded",Ci="recording-started",Ei="recording-stopped",xi="fullscreen",Ti="exited-fullscreen",Mi="input-settings-updated",Oi="nonfatal-error",Pi="error",ji=4096,Ai=102400,Li="iframe-call-message",Ii="local-screen-start",Ni="daily-method-update-live-streaming-endpoints",Di="transmit-log",Ri="daily-custom-track",Fi={NONE:"none",BGBLUR:"background-blur",BGIMAGE:"background-image",FACE_DETECTION:"face-detection"},zi={NONE:"none",NOISE_CANCELLATION:"noise-cancellation"},Ui={PLAY:"play",PAUSE:"pause"},Vi=["jpg","png","jpeg"],Bi="sip-call-transfer";function qi(){return!Hi()&&"undefined"!=typeof window&&window.navigator&&window.navigator.userAgent?window.navigator.userAgent:""}function Hi(){return"undefined"!=typeof navigator&&navigator.product&&"ReactNative"===navigator.product}function Wi(){return navigator&&navigator.mediaDevices&&navigator.mediaDevices.getUserMedia}function Ji(){if(Hi())return!1;if(!document)return!1;var e=document.createElement("iframe");return!!e.requestFullscreen||!!e.webkitRequestFullscreen}var $i="none",Qi=function(){try{var e,t=document.createElement("canvas"),n=!1;(e=t.getContext("webgl2",{failIfMajorPerformanceCaveat:!0}))||(n=!0,e=t.getContext("webgl2"));var r=null!=e;return t.remove(),r?n?"software":"hardware":$i}catch(e){return $i}}();function Gi(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return!Hi()&&Qi!==$i&&(e?!Zi()&&["Chrome","Firefox"].includes(ea()):function(){if(Zi())return!1;var e=ea();if("Safari"===e){var t=aa();if(t.major<15||15===t.major&&t.minor<4)return!1}return"Chrome"===e?na().major>=77:"Firefox"===e?oa().major>=97:["Chrome","Firefox","Safari"].includes(e)}())}function Ki(){if(Hi())return!1;if(Xi())return!1;if("undefined"==typeof AudioWorkletNode)return!1;switch(ea()){case"Chrome":case"Firefox":return!0;case"Safari":var e=ta();return e.major>17||17===e.major&&e.minor>=4}return!1}function Yi(){return Wi()&&"undefined"!=typeof MediaStreamTrack&&!function(){var e,t=ea();if(!qi())return!0;switch(t){case"Chrome":return(e=na()).major&&e.major>0&&e.major<75;case"Firefox":return(e=oa()).major<91;case"Safari":return(e=aa()).major<13||13===e.major&&e.minor<1;default:return!0}}()}function Xi(){return qi().match(/Linux; Android/)}function Zi(){var e,t=qi(),n=t.match(/Mac/)&&(!Hi()&&"undefined"!=typeof window&&null!==(e=window)&&void 0!==e&&null!==(e=e.navigator)&&void 0!==e&&e.maxTouchPoints?window.navigator.maxTouchPoints:0)>=5;return!!(t.match(/Mobi/)||t.match(/Android/)||n)||!!qi().match(/DailyAnd\//)||void 0}function ea(){if("undefined"!=typeof window){var e=qi();return ra()?"Safari":e.indexOf("Edge")>-1?"Edge":e.match(/Chrome\//)?"Chrome":e.indexOf("Safari")>-1||ia()?"Safari":e.indexOf("Firefox")>-1?"Firefox":e.indexOf("MSIE")>-1||e.indexOf(".NET")>-1?"IE":"Unknown Browser"}}function ta(){switch(ea()){case"Chrome":return na();case"Safari":return aa();case"Firefox":return oa();case"Edge":return function(){var e=0,t=0;if("undefined"!=typeof window){var n=qi().match(/Edge\/(\d+).(\d+)/);if(n)try{e=parseInt(n[1]),t=parseInt(n[2])}catch(e){}}return{major:e,minor:t}}()}}function na(){var e=0,t=0,n=0,r=0,i=!1;if("undefined"!=typeof window){var a=qi(),o=a.match(/Chrome\/(\d+).(\d+).(\d+).(\d+)/);if(o)try{e=parseInt(o[1]),t=parseInt(o[2]),n=parseInt(o[3]),r=parseInt(o[4]),i=a.indexOf("OPR/")>-1}catch(e){}}return{major:e,minor:t,build:n,patch:r,opera:i}}function ra(){return!!qi().match(/iPad|iPhone|iPod/i)&&Wi()}function ia(){return qi().indexOf("AppleWebKit/605.1.15")>-1}function aa(){var e=0,t=0,n=0;if("undefined"!=typeof window){var r=qi().match(/Version\/(\d+).(\d+)(.(\d+))?/);if(r)try{e=parseInt(r[1]),t=parseInt(r[2]),n=parseInt(r[4])}catch(e){}else(ra()||ia())&&(e=14,t=0,n=3)}return{major:e,minor:t,point:n}}function oa(){var e=0,t=0;if("undefined"!=typeof window){var n=qi().match(/Firefox\/(\d+).(\d+)/);if(n)try{e=parseInt(n[1]),t=parseInt(n[2])}catch(e){}}return{major:e,minor:t}}var sa=I((function e(){P(this,e)}),[{key:"addListenerForMessagesFromCallMachine",value:function(e,t,n){de()}},{key:"addListenerForMessagesFromDailyJs",value:function(e,t,n){de()}},{key:"sendMessageToCallMachine",value:function(e,t,n,r){de()}},{key:"sendMessageToDailyJs",value:function(e,t){de()}},{key:"removeListener",value:function(e){de()}}]);function la(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 ua(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?la(Object(n),!0).forEach((function(t){z(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):la(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ca(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ca=function(){return!!e})()}var da=function(){function e(){var t,n,r,i;return P(this,e),n=this,r=D(r=e),(t=N(n,ca()?Reflect.construct(r,[],D(n).constructor):r.apply(n,i)))._wrappedListeners={},t._messageCallbacks={},t}return F(e,sa),I(e,[{key:"addListenerForMessagesFromCallMachine",value:function(e,t,n){var r=this,i=function(i){if(i.data&&"iframe-call-message"===i.data.what&&(!i.data.callClientId||i.data.callClientId===t)&&(!i.data.from||"module"!==i.data.from)){var a=ua({},i.data);if(delete a.from,a.callbackStamp&&r._messageCallbacks[a.callbackStamp]){var o=a.callbackStamp;r._messageCallbacks[o].call(n,a),delete r._messageCallbacks[o]}delete a.what,delete a.callbackStamp,e.call(n,a)}};this._wrappedListeners[e]=i,window.addEventListener("message",i)}},{key:"addListenerForMessagesFromDailyJs",value:function(e,t,n){var r=function(r){var i;if(!(!r.data||r.data.what!==Li||!r.data.action||r.data.from&&"module"!==r.data.from||r.data.callClientId&&t&&r.data.callClientId!==t||null!=r&&null!==(i=r.data)&&void 0!==i&&i.callFrameId)){var a=r.data;e.call(n,a)}};this._wrappedListeners[e]=r,window.addEventListener("message",r)}},{key:"sendMessageToCallMachine",value:function(e,t,n,r){if(!n)throw new Error("undefined callClientId. Are you trying to use a DailyCall instance previously destroyed?");var i=ua({},e);if(i.what=Li,i.from="module",i.callClientId=n,t){var a=ce();this._messageCallbacks[a]=t,i.callbackStamp=a}var o=r?r.contentWindow:window,s=this._callMachineTargetOrigin(r);s&&o.postMessage(i,s)}},{key:"sendMessageToDailyJs",value:function(e,t){e.what=Li,e.callClientId=t,e.from="embedded",window.postMessage(e,this._targetOriginFromWindowLocation())}},{key:"removeListener",value:function(e){var t=this._wrappedListeners[e];t&&(window.removeEventListener("message",t),delete this._wrappedListeners[e])}},{key:"forwardPackagedMessageToCallMachine",value:function(e,t,n){var r=ua({},e);r.callClientId=n;var i=t?t.contentWindow:window,a=this._callMachineTargetOrigin(t);a&&i.postMessage(r,a)}},{key:"addListenerForPackagedMessagesFromCallMachine",value:function(e,t){var n=function(n){if(n.data&&"iframe-call-message"===n.data.what&&(!n.data.callClientId||n.data.callClientId===t)&&(!n.data.from||"module"!==n.data.from)){var r=n.data;e(r)}};return this._wrappedListeners[e]=n,window.addEventListener("message",n),e}},{key:"removeListenerForPackagedMessagesFromCallMachine",value:function(e){var t=this._wrappedListeners[e];t&&(window.removeEventListener("message",t),delete this._wrappedListeners[e])}},{key:"_callMachineTargetOrigin",value:function(e){return e?e.src?new URL(e.src).origin:void 0:this._targetOriginFromWindowLocation()}},{key:"_targetOriginFromWindowLocation",value:function(){return"file:"===window.location.protocol?"*":window.location.origin}}])}();function fa(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 pa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(pa=function(){return!!e})()}var ha=function(){function e(){var t,r,i,a;return P(this,e),r=this,i=D(i=e),t=N(r,pa()?Reflect.construct(i,[],D(r).constructor):i.apply(r,a)),n.g.callMachineToDailyJsEmitter=n.g.callMachineToDailyJsEmitter||new J.EventEmitter,n.g.dailyJsToCallMachineEmitter=n.g.dailyJsToCallMachineEmitter||new J.EventEmitter,t._wrappedListeners={},t._messageCallbacks={},t}return F(e,sa),I(e,[{key:"addListenerForMessagesFromCallMachine",value:function(e,t,r){this._addListener(e,n.g.callMachineToDailyJsEmitter,t,r,"received call machine message")}},{key:"addListenerForMessagesFromDailyJs",value:function(e,t,r){this._addListener(e,n.g.dailyJsToCallMachineEmitter,t,r,"received daily-js message")}},{key:"sendMessageToCallMachine",value:function(e,t,r){this._sendMessage(e,n.g.dailyJsToCallMachineEmitter,r,t,"sending message to call machine")}},{key:"sendMessageToDailyJs",value:function(e,t){this._sendMessage(e,n.g.callMachineToDailyJsEmitter,t,null,"sending message to daily-js")}},{key:"removeListener",value:function(e){var t=this._wrappedListeners[e];t&&(n.g.callMachineToDailyJsEmitter.removeListener("message",t),n.g.dailyJsToCallMachineEmitter.removeListener("message",t),delete this._wrappedListeners[e])}},{key:"_addListener",value:function(e,t,n,r,i){var a=this,o=function(t){if(t.callClientId===n){if(t.callbackStamp&&a._messageCallbacks[t.callbackStamp]){var i=t.callbackStamp;a._messageCallbacks[i].call(r,t),delete a._messageCallbacks[i]}e.call(r,t)}};this._wrappedListeners[e]=o,t.addListener("message",o)}},{key:"_sendMessage",value:function(e,t,n,r,i){var a=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};
2t%2?fa(Object(n),!0).forEach((function(t){z(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},e);if(a.callClientId=n,r){var o=ce();this._messageCallbacks[o]=r,a.callbackStamp=o}t.emit("message",a)}}])}(),va="replace",ma="shallow-merge",ga=[va,ma],ya=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.data,r=t.mergeStrategy,i=void 0===r?va:r;P(this,e),e._validateMergeStrategy(i),e._validateData(n,i),this.mergeStrategy=i,this.data=n}return I(e,[{key:"isNoOp",value:function(){return e.isNoOpUpdate(this.data,this.mergeStrategy)}}],[{key:"isNoOpUpdate",value:function(e,t){return 0===Object.keys(e).length&&t===ma}},{key:"_validateMergeStrategy",value:function(e){if(!ga.includes(e))throw Error("Unrecognized mergeStrategy provided. Options are: [".concat(ga,"]"))}},{key:"_validateData",value:function(e,t){if(!function(e){if(null==e||"object"!==j(e))return!1;var t=Object.getPrototypeOf(e);return null==t||t===Object.prototype}(e))throw Error("Meeting session data must be a plain (map-like) object");var n;try{if(n=JSON.stringify(e),t===va){var r=JSON.parse(n);K(r,e)||console.warn("The meeting session data provided will be modified when serialized.",r,e)}else if(t===ma)for(var i in e)if(Object.hasOwnProperty.call(e,i)&&void 0!==e[i]){var a=JSON.parse(JSON.stringify(e[i]));K(e[i],a)||console.warn("At least one key in the meeting session data provided will be modified when serialized.",a,e[i])}}catch(e){throw Error("Meeting session data must be serializable to JSON: ".concat(e))}if(n.length>Ai)throw Error("Meeting session data is too large (".concat(n.length," characters). Maximum size suppported is ").concat(Ai,"."))}}])}();function ba(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(ba=function(){return!!e})()}function ka(e){var t="function"==typeof Map?new Map:void 0;return ka=function(e){if(null===e||!function(e){try{return-1!==Function.toString.call(e).indexOf("[native code]")}catch(t){return"function"==typeof e}}(e))return e;if("function"!=typeof e)throw new TypeError("Super expression must either be null or a function");if(void 0!==t){if(t.has(e))return t.get(e);t.set(e,n)}function n(){return function(e,t,n){if(ba())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var i=new(e.bind.apply(e,r));return n&&R(i,n.prototype),i}(e,arguments,D(this).constructor)}return n.prototype=Object.create(e.prototype,{constructor:{value:n,enumerable:!1,writable:!0,configurable:!0}}),R(n,e)},ka(e)}function wa(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(wa=function(){return!!e})()}function Sa(e){var t,n=null===(t=window._daily)||void 0===t?void 0:t.pendings;if(n){var r=n.indexOf(e);-1!==r&&n.splice(r,1)}}var _a=I((function e(t){P(this,e),this._currentLoad=null,this._callClientId=t}),[{key:"load",value:function(){var e,t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0;if(this.loaded)return window._daily.instances[this._callClientId].callMachine.reset(),void r(!0);e=this._callClientId,window._daily.pendings.push(e),this._currentLoad&&this._currentLoad.cancel(),this._currentLoad=new Ca(n,(function(){r(!1)}
2),(function(e,n){n||Sa(t._callClientId),i(e,n)})),this._currentLoad.start()}},{key:"cancel",value:function(){this._currentLoad&&this._currentLoad.cancel(),Sa(this._callClientId)}},{key:"loaded",get:function(){return this._currentLoad&&this._currentLoad.succeeded}}]),Ca=I((function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0,r=arguments.length>2?arguments[2]:void 0;P(this,e),this._attemptsRemaining=3,this._currentAttempt=null,this._dailyConfig=t,this._successCallback=n,this._failureCallback=r}),[{key:"start",value:function(){var e=this;this._currentAttempt||(this._currentAttempt=new Ta(this._dailyConfig,this._successCallback,(function t(n){e._currentAttempt.cancelled||(e._attemptsRemaining--,e._failureCallback(n,e._attemptsRemaining>0),e._attemptsRemaining<=0||setTimeout((function(){e._currentAttempt.cancelled||(e._currentAttempt=new Ta(e._dailyConfig,e._successCallback,t),e._currentAttempt.start())}),3e3))})),this._currentAttempt.start())}},{key:"cancel",value:function(){this._currentAttempt&&this._currentAttempt.cancel()}},{key:"cancelled",get:function(){return this._currentAttempt&&this._currentAttempt.cancelled}},{key:"succeeded",get:function(){return this._currentAttempt&&this._currentAttempt.succeeded}}]),Ea=function(){function e(){return P(this,e),t=this,r=arguments,n=D(n=e),N(t,wa()?Reflect.construct(n,r||[],D(t).constructor):n.apply(t,r));var t,n,r}return F(e,ka(Error)),I(e)}(),xa=2e4,Ta=function(){return I((function e(t,n,r){P(this,e),this._loadAttemptImpl=Hi()||!t.avoidEval?new Ma(t,n,r):new Oa(t,n,r)}),[{key:"start",value:(e=V(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",this._loadAttemptImpl.start());case 1:case"end":return e.stop()}}),e,this)}))),function(){return e.apply(this,arguments)})},{key:"cancel",value:function(){this._loadAttemptImpl.cancel()}},{key:"cancelled",get:function(){return this._loadAttemptImpl.cancelled}},{key:"succeeded",get:function(){return this._loadAttemptImpl.succeeded}}]);var e}(),Ma=function(){return I((function e(t,n,r){P(this,e),this.cancelled=!1,this.succeeded=!1,this._networkTimedOut=!1,this._networkTimeout=null,this._iosCache="undefined"!=typeof iOSCallObjectBundleCache&&iOSCallObjectBundleCache,this._refetchHeaders=null,this._dailyConfig=t,this._successCallback=n,this._failureCallback=r}),[{key:"start",value:(r=V(l().mark((function e(){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=pe(this._dailyConfig),e.next=3,this._tryLoadFromIOSCache(t);case 3:if(e.t0=!e.sent,!e.t0){e.next=6;break}this._loadFromNetwork(t);case 6:case"end":return e.stop()}}),e,this)}))),function(){return r.apply(this,arguments)})},{key:"cancel",value:function(){clearTimeout(this._networkTimeout),this.cancelled=!0}},{key:"_tryLoadFromIOSCache",value:(n=V(l().mark((function e(t){var n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(this._iosCache){e.next=2;break}return e.abrupt("return",!1);case 2:return e.prev=2,e.next=5,this._iosCache.get(t);case 5:return n=e.sent,e.abrupt("return",!!this.cancelled||!!n&&(n.code?(Function('"use strict";'+n.code)(),this.succeeded=!0,this._successCallback(),!0):(this._refetchHeaders=n.refetchHeaders,!1)));case 9:return e.prev=9,e.t0=e.catch(2),e.abrupt("return",!1);case 12:case"end":return e.stop()}}),e,this,[[2,9]])}))),function(e){return n.apply(this,arguments)})},{key:"_loadFromNetwork",value:(t=V(l().mark((function e(t){var n,r,i,a;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this,this._networkTimeout=setTimeout((function(){n._networkTimedOut=!0,n._failureCallback({msg:"Timed out (>".concat(xa," ms) when loading call object bundle ").concat(t),type:"timeout"})}),xa),e.prev=2,r=this._refetchHeaders?{headers:this._refetchHeaders}:{},e.next=6,fetch(t,r);case 6:if(i=e.sent,clearTimeout(this._networkTimeout),!this.cancelled&&!this._networkTimedOut){e.next=9;break}throw new Ea;case 9:return e.next=11,this._getBundleCodeFromResponse(t,i);case 11:if(a=e.sent,!this.cancelled){e.next=14;break}throw new Ea;case 14:Function('"use strict";'+a)(),this._iosCache&&this._iosCache.set(t,a,i.headers),this.succeeded=!0,this._successCallback(),e.next=22;break;case 17:if(e.prev=17,e.t0=e.catch(2),clearTimeout(this._networkTimeout),!(e.t0 instanceof Ea||this.cancelled||this._networkTimedOut)){e.next=21;break}return e.abrupt("return");case 21:this._failureCallback({msg:"Failed to load call object bundle ".concat(t,": ").concat(e.t0),type:e.t0.message});case 22:case"end":return e.stop()}}),e,this,[[2,17]])}))),function(e){return t.apply(this,arguments)})},{key:"_getBundleCodeFromResponse",value:(e=V(l().mark((function e(t,n){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!n.ok){e.next=4;break}return e.next=3,n.text();case 3:return e.abrupt("return",e.sent);case 4:if(!this._iosCache||304!==n.status){e.next=8;break}return e.next=7,this._iosCache.renew(t,n.headers);case 7:return e.abrupt("return",e.sent.code);case 8:throw new Error("Received ".concat(n.status," response"));case 9:case"end":return e.stop()}}),e,this)}))),function(t,n){return e.apply(this,arguments)})}]);var e,t,n,r}(),Oa=I((function e(t,n,r){P(this,e),this.cancelled=!1,this.succeeded=!1,this._dailyConfig=t,this._successCallback=n,this._failureCallback=r,this._attemptId=ce(),this._networkTimeout=null,this._scriptElement=null}),[{key:"start",value:function(){window._dailyCallMachineLoadWaitlist||(window._dailyCallMachineLoadWaitlist=new Set);var e=pe(this._dailyConfig);"object"===("undefined"==typeof document?"undefined":j(document))?this._startLoading(e):this._failureCallback({msg:"Call object bundle must be loaded in a DOM/web context",type:"missing context"})}},{key:"cancel",value:function(){this._stopLoading(),this.cancelled=!0}},{key:"_startLoading",value:function(e){var t=this;this._signUpForCallMachineLoadWaitlist(),this._networkTimeout=setTimeout((function(){t._stopLoading(),t._failureCallback({msg:"Timed out (>
2".concat(xa," ms) when loading call object bundle ").concat(e),type:"timeout"})}),xa);var n=document.getElementsByTagName("head")[0],r=document.createElement("script");this._scriptElement=r,r.onload=function(){t._stopLoading(),t.succeeded=!0,t._successCallback()},r.onerror=function(e){t._stopLoading(),t._failureCallback({msg:"Failed to load call object bundle ".concat(e.target.src),type:e.message})},r.src=e,n.appendChild(r)}},{key:"_stopLoading",value:function(){this._withdrawFromCallMachineLoadWaitlist(),clearTimeout(this._networkTimeout),this._scriptElement&&(this._scriptElement.onload=null,this._scriptElement.onerror=null)}},{key:"_signUpForCallMachineLoadWaitlist",value:function(){window._dailyCallMachineLoadWaitlist.add(this._attemptId)}},{key:"_withdrawFromCallMachineLoadWaitlist",value:function(){window._dailyCallMachineLoadWaitlist.delete(this._attemptId)}}]),Pa=function(e,t,n){return!0===La(e.local,t,n)},ja=function(e,t,n){return e.local.streams&&e.local.streams[t]&&e.local.streams[t].stream&&e.local.streams[t].stream["get".concat("video"===n?"Video":"Audio","Tracks")]()[0]},Aa=function(e,t,n,r){var i=Ia(e,t,n,r);return i&&i.pendingTrack},La=function(e,t,n){if(!e)return!1;var r=function(e){switch(e){case"avatar":return!0;case"staged":return e;default:return!!e}},i=e.public.subscribedTracks;return i&&i[t]?-1===["cam-audio","cam-video","screen-video","screen-audio","rmpAudio","rmpVideo"].indexOf(n)&&i[t].custom?[!0,"staged"].includes(i[t].custom)?r(i[t].custom):r(i[t].custom[n]):r(i[t][n]):!i||r(i.ALL)},Ia=function(e,t,n,r){var i=Object.values(e.streams||{}).filter((function(e){return e.participantId===t&&e.type===n&&e.pendingTrack&&e.pendingTrack.kind===r})).sort((function(e,t){return new Date(t.starttime)-new Date(e.starttime)}));return i&&i[0]},Na=function(e,t){var n=e.local.public.customTracks;if(n&&n[t])return n[t].track};function Da(e,t){for(var n=t.getState(),r=0,i=["cam","screen"];r<i.length;r++)for(var a=i[r],o=0,s=["video","audio"];o<s.length;o++){var l=s[o],u="cam"===a?l:"screen".concat(l.charAt(0).toUpperCase()+l.slice(1)),c=e.tracks[u];if(c){var d=e.local?ja(n,a,l):Aa(n,e.session_id,a,l);"playable"===c.state&&(c.track=d),c.persistentTrack=d}}}function Ra(e,t){try{var n=t.getState();for(var r in e.tracks)if(!Fa(r)){var i=e.tracks[r].kind;if(i){var a=e.tracks[r];if(a){var o=e.local?Na(n,r):Aa(n,e.session_id,r,i);"playable"===a.state&&(e.tracks[r].track=o),a.persistentTrack=o}}else console.error("unknown type for custom track")}}catch(e){console.error(e)}}function Fa(e){return["video","audio","screenVideo","screenAudio"].includes(e)}function za(e,t,n){var r=n.getState();if(e.local){if(e.audio)try{e.audioTrack=r.local.streams.cam.stream.getAudioTracks()[0],e.audioTrack||(e.audio=!1)}catch(e){}if(e.video)try{e.videoTrack=r.local.streams.cam.stream.getVideoTracks()[0],e.videoTrack||(e.video=!1)}catch(e){}if(e.screen)try{e.screenVideoTrack=r.local.streams.screen.stream.getVideoTracks()[0],e.screenAudioTrack=r.local.streams.screen.stream.getAudioTracks()[0],e.screenVideoTrack||e.screenAudioTrack||(e.screen=!1)}catch(e){}}else{var i=!0;try{var a=r.participants[e.session_id];a&&a.public&&a.public.rtcType&&"peer-to-peer"===a.public.rtcType.impl&&a.private&&!["connected","completed"].includes(a.private.peeringState)&&(i=!1)}catch(e){console.error(e)}if(!i)return e.audio=!1,e.audioTrack=!1,e.video=!1,e.videoTrack=!1,e.screen=!1,void(e.screenTrack=!1);try{if(r.streams,e.audio&&Pa(r,e.session_id,"cam-audio")){var o=Aa(r,e.session_id,"cam","audio");o&&(t&&t.audioTrack&&t.audioTrack.id===o.id?e.audioTrack=o:o.muted||(e.audioTrack=o)),e.audioTrack||(e.audio=!1)}if(e.video&&Pa(r,e.session_id,"cam-video")){var s=Aa(r,e.session_id,"cam","video");s&&(t&&t.videoTrack&&t.videoTrack.id===s.id?e.videoTrack=s:s.muted||(e.videoTrack=s)),e.videoTrack||(e.video=!1)}if(e.screen&&Pa(r,e.session_id,"screen-audio")){var l=Aa(r,e.session_id,"screen","audio");l&&(t&&t.screenAudioTrack&&t.screenAudioTrack.id===l.id?e.screenAudioTrack=l:l.muted||(e.screenAudioTrack=l))}if(e.screen&&Pa(r,e.session_id,"screen-video")){var u=Aa(r,e.session_id,"screen","video");u&&(t&&t.screenVideoTrack&&t.screenVideoTrack.id===u.id?e.screenVideoTrack=u:u.muted||(e.screenVideoTrack=u))}e.screenVideoTrack||e.screenAudioTrack||(e.screen=!1)}catch(e){console.error("unexpected error matching up tracks",e)}}}function Ua(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];
vendor: 7,598 bytes, line 2
2if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Va(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Va(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function Va(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ba=new Map,qa=null;function Ha(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return Wa(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Wa(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function Wa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var Ja=new Map,$a=null;function Qa(){var e;return Hi()||void 0!==(null===(e=navigator.mediaDevices)||void 0===e?void 0:e.ondevicechange)}var Ga=new Set;function Ka(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 Ya(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ka(Object(n),!0).forEach((function(t){z(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ka(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Xa=Object.freeze({VIDEO:"video",AUDIO:"audio",SCREEN_VIDEO:"screenVideo",SCREEN_AUDIO:"screenAudio",CUSTOM_VIDEO:"customVideo",CUSTOM_AUDIO:"customAudio"}),Za=Object.freeze({PARTICIPANTS:"participants",STREAMING:"streaming",TRANSCRIPTION:"transcription"}),eo=Object.values(Xa),to=["v","a","sv","sa","cv","ca"];Object.freeze(eo.reduce((function(e,t,n){return e[t]=to[n],e}),{})),Object.freeze(to.reduce((function(e,t,n){return e[t]=eo[n],e}),{}));var no=[Xa.VIDEO,Xa.AUDIO,Xa.SCREEN_VIDEO,Xa.SCREEN_AUDIO],ro=Object.values(Za),io=["p","s","t"];Object.freeze(ro.reduce((function(e,t,n){return e[t]=io[n],e}),{})),Object.freeze(io.reduce((function(e,t,n){return e[t]=ro[n],e}),{}));var ao=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.base,r=t.byUserId,i=t.byParticipantId;P(this,e),this.base=n,this.byUserId=r,this.byParticipantId=i}return I(e,[{key:"clone",value:function(){var t=new e;if(this.base instanceof oo?t.base=this.base.clone():t.base=this.base,void 0!==this.byUserId)for(var n in t.byUserId={},this.byUserId){var r=this.byUserId[n];t.byUserId[n]=r instanceof oo?r.clone():r}if(void 0!==this.byParticipantId)for(var i in t.byParticipantId={},this.byParticipantId){var a=this.byParticipantId[i];t.byParticipantId[i]=a instanceof oo?a.clone():a}return t}},{key:"toJSONObject",value:function(){var e={};if("boolean"==typeof this.base?e.base=this.base:this.base instanceof oo&&(e.base=this.base.toJSONObject()),void 0!==this.byUserId)for(var t in e.byUserId={},this.byUserId){var n=this.byUserId[t];e.byUserId[t]=n instanceof oo?n.toJSONObject():n}if(void 0!==this.byParticipantId)for(var r in e.byParticipantId={},this.byParticipantId){var i=this.byParticipantId[r];e.byParticipantId[r]=i instanceof oo?i.toJSONObject():i}return e}},{key:"toMinifiedJSONObject",value:function(){var e={};if(void 0!==this.base&&("boolean"==typeof this.base?e.b=this.base:e.b=this.base.toMinifiedJSONObject()),void 0!==this.byUserId)for(var t in e.u={},this.byUserId){var n=this.byUserId[t];e.u[t]="boolean"==typeof n?n:n.toMinifiedJSONObject()}if(void 0!==this.byParticipantId)for(var r in e.p={},this.byParticipantId){var i=this.byParticipantId[r];e.p[r]="boolean"==typeof i?i:i.toMinifiedJSONObject()}return e}},{key:"normalize",value:function(){return this.base instanceof oo&&(this.base=this.base.normalize()),this.byUserId&&(this.byUserId=Object.fromEntries(Object.entries(this.byUserId).map((function(e){var t=q(e,2),n=t[0],r=t[1];return[n,r instanceof oo?r.normalize():r]})))),this.byParticipantId&&(this.byParticipantId=Object.fromEntries(Object.entries(this.byParticipantId).map((function(e){var t=q(e,2),n=t[0],r=t[1];return[n,r instanceof oo?r.normalize():r]})))),this}}],[{key:"fromJSONObject",value:function(t){var n,r,i;if(void 0!==t.base&&(n="boolean"==typeof t.base?t.base:oo.fromJSONObject(t.base)),void 0!==t.byUserId)for(var a in r={},t.byUserId){var o=t.byUserId[a];r[a]="boolean"==typeof o?o:oo.fromJSONObject(o)}if(void 0!==t.byParticipantId)for(var s in i={},t.byParticipantId){var l=t.byParticipantId[s];i[s]="boolean"==typeof l?l:oo.fromJSONObject(l)}return new e({base:n,byUserId:r,byParticipantId:i})}},{key:"fromMinifiedJSONObject",value:function(t){var n,r,i;if(void 0!==t.b&&(n="boolean"==typeof t.b?t.b:oo.fromMinifiedJSONObject(t.b)),void 0!==t.u)for(var a in r={},t.u){var o=t.u[a];r[a]="boolean"==typeof o?o:oo.fromMinifiedJSONObject(o)}if(void 0!==t.p)for(var s in i={},t.p){var l=t.p[s];i[s]="boolean"==typeof l?l:oo.fromMinifiedJSONObject(l)}return new e({base:n,byUserId:r,byParticipantId:i})}},{key:"validateJSONObject",value:function(e){if("object"!==j(e))return[!1,"canReceive must be an object"];for(var t=["base","byUserId","byParticipantId"],n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(!t.includes(i))return[!1,"canReceive can only contain keys (".concat(t.join(", "),")")];if("base"===i){var a=q(oo.validateJSONObject(e.base,!0),2),o=a[0],s=a[1];if(!o)return[!1,s]}else{if("object"!==j(e[i]))return[!1,"invalid (non-object) value for field '".concat(i,"' in canReceive")];for(var l=0,u=Object.values(e[i]);l<u.length;l++){var c=u[l],d=q(oo.validateJSONObject(c),2),f=d[0],p=d[1];if(!f)return[!1,p]}}}return[!0]}}])}(),oo=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.video,r=t.audio,i=t.screenVideo,a=t.screenAudio,o=t.customVideo,s=t.customAudio;P(this,e),this.video=n,this.audio=r,this.screenVideo=i,this.screenAudio=a,this.customVideo=o,this.customAudio=s}return I(e,[{key:"clone",value:function(){var t=new e;return void 0!==this.video&&(t.video=this.video),void 0!==this.audio&&(t.audio=this.audio),void 0!==this.screenVideo&&(t.screenVideo=this.screenVideo),void 0!==this.screenAudio&&(t.screenAudio=this.screenAudio),void 0!==this.customVideo&&(t.customVideo=Ya({},this.customVideo)),void 0!==this.customAudio&&(t.customAudio=Ya({},this.customAudio)),t}}
vendor: 4,784 bytes, line 2
2,{key:"toJSONObject",value:function(){var e={};return void 0!==this.video&&(e.video=this.video),void 0!==this.audio&&(e.audio=this.audio),void 0!==this.screenVideo&&(e.screenVideo=this.screenVideo),void 0!==this.screenAudio&&(e.screenAudio=this.screenAudio),void 0!==this.customVideo&&(e.customVideo=Ya({},this.customVideo)),void 0!==this.customAudio&&(e.customAudio=Ya({},this.customAudio)),e}},{key:"toMinifiedJSONObject",value:function(){var e={};return void 0!==this.video&&(e.v=this.video),void 0!==this.audio&&(e.a=this.audio),void 0!==this.screenVideo&&(e.sv=this.screenVideo),void 0!==this.screenAudio&&(e.sa=this.screenAudio),void 0!==this.customVideo&&(e.cv=Ya({},this.customVideo)),void 0!==this.customAudio&&(e.ca=Ya({},this.customAudio)),e}},{key:"normalize",value:function(){function e(e,t){return e&&1===Object.keys(e).length&&e["*"]===t}return!(!0!==this.video||!0!==this.audio||!0!==this.screenVideo||!0!==this.screenAudio||!e(this.customVideo,!0)||!e(this.customAudio,!0))||(!1!==this.video||!1!==this.audio||!1!==this.screenVideo||!1!==this.screenAudio||!e(this.customVideo,!1)||!e(this.customAudio,!1))&&this}}],[{key:"fromBoolean",value:function(t){return new e({video:t,audio:t,screenVideo:t,screenAudio:t,customVideo:{"*":t},customAudio:{"*":t}})}},{key:"fromJSONObject",value:function(t){return new e({video:t.video,audio:t.audio,screenVideo:t.screenVideo,screenAudio:t.screenAudio,customVideo:void 0!==t.customVideo?Ya({},t.customVideo):void 0,customAudio:void 0!==t.customAudio?Ya({},t.customAudio):void 0})}},{key:"fromMinifiedJSONObject",value:function(t){return new e({video:t.v,audio:t.a,screenVideo:t.sv,screenAudio:t.sa,customVideo:t.cv,customAudio:t.ca})}},{key:"validateJSONObject",value:function(e,t){if("boolean"==typeof e)return[!0];if("object"!==j(e))return[!1,"invalid (non-object, non-boolean) value in canReceive"];for(var n=Object.keys(e),r=0,i=n;r<i.length;r++){var a=i[r];if(!eo.includes(a))return[!1,"invalid media type '".concat(a,"' in canReceive")];if(no.includes(a)){if("boolean"!=typeof e[a])return[!1,"invalid (non-boolean) value for media type '".concat(a,"' in canReceive")]}else{if("object"!==j(e[a]))return[!1,"invalid (non-object) value for media type '".concat(a,"' in canReceive")];for(var o=0,s=Object.values(e[a]);o<s.length;o++)if("boolean"!=typeof s[o])return[!1,"invalid (non-boolean) value for entry within '".concat(a,"' in canReceive")];if(t&&void 0===e[a]["*"])return[!1,'canReceive "base" permission must specify "*" as an entry within \''.concat(a,"'")]}}return t&&n.length!==eo.length?[!1,'canReceive "base" permission must specify all media types: '.concat(eo.join(", ")," (or be set to a boolean shorthand)")]:[!0]}}])}(),so=["result"],lo=["preserveIframe"];function uo(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 co(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?uo(Object(n),!0).forEach((function(t){z(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uo(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function fo(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(fo=function(){return!!e})()}function po(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return ho(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ho(e,t):void 0}}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,o=!0,s=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){s=!0,a=e},f:function(){try{o||null==n.return||n.return()}finally{if(s)throw a}}}}function ho(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var vo={},mo="video",go="voice",yo=Hi()?{data:{}}:{data:{},topology:"none"},bo={present:0,hidden:0},ko={maxBitrate:{min:1e5,max:25e5},maxFramerate:{min:1,max:30},scaleResolutionDownBy:{min:1,max:8}},wo=Object.keys(ko),So=["state","volume","simulcastEncodings"],_o={androidInCallNotification:{title:"string",subt
vendor: 7,797 bytes, line 2
2itle:"string",iconName:"string",disableForCustomOverride:"boolean"},disableAutoDeviceManagement:{audio:"boolean",video:"boolean"}},Co={id:{iconPath:"string",iconPathDarkMode:"string",label:"string",tooltip:"string",visualState:"'default' | 'sidebar-open' | 'active'"}},Eo={id:{allow:"string",controlledBy:"'*' | 'owners' | string[]",csp:"string",iconURL:"string",label:"string",loading:"'eager' | 'lazy'",location:"'main' | 'sidebar'",name:"string",referrerPolicy:"string",sandbox:"string",src:"string",srcdoc:"string",shared:"string[] | 'owners' | boolean"}},xo={customIntegrations:{validate:Yo,help:Go()},customTrayButtons:{validate:Ko,help:"customTrayButtons should be a dictionary of the type ".concat(JSON.stringify(Co))},url:{validate:function(e){return"string"==typeof e},help:"url should be a string"},baseUrl:{validate:function(e){return"string"==typeof e},help:"baseUrl should be a string"},token:{validate:function(e){return"string"==typeof e},help:"token should be a string",queryString:"t"},dailyConfig:{validate:function(e,t){try{return t.validateDailyConfig(e),!0}catch(e){console.error("Failed to validate dailyConfig",e)}return!1},help:"Unsupported dailyConfig. Check error logs for detailed info."},reactNativeConfig:{validate:function(e){return Xo(e,_o)},help:"reactNativeConfig should look like ".concat(JSON.stringify(_o),", all fields optional")},lang:{validate:function(e){return["da","de","en-us","en","es","fi","fr","it","jp","ka","nl","no","pl","pt","pt-BR","ru","sv","tr","user"].includes(e)},help:"language not supported. Options are: da, de, en-us, en, es, fi, fr, it, jp, ka, nl, no, pl, pt, pt-BR, ru, sv, tr, user"},userName:!0,userData:{validate:function(e){try{return Uo(e),!0}catch(e){return console.error(e),!1}},help:"invalid userData type provided"},startVideoOff:!0,startAudioOff:!0,allowLocalVideo:!0,allowLocalAudio:!0,activeSpeakerMode:!0,showLeaveButton:!0,showLocalVideo:!0,showParticipantsBar:!0,showFullscreenButton:!0,showUserNameChangeUI:!0,iframeStyle:!0,customLayout:!0,cssFile:!0,cssText:!0,bodyClass:!0,videoSource:{validate:function(e,t){if("boolean"==typeof e)return t._preloadCache.allowLocalVideo=e,!0;var n;if(e instanceof MediaStreamTrack)t._sharedTracks.videoTrack=e,n={customTrack:Ri};else{if(delete t._sharedTracks.videoTrack,"string"!=typeof e)return console.error("videoSource must be a MediaStreamTrack, boolean, or a string"),!1;n={deviceId:e}}return t._updatePreloadCacheInputSettings({video:{settings:n}},!1),!0}},audioSource:{validate:function(e,t){if("boolean"==typeof e)return t._preloadCache.allowLocalAudio=e,!0;var n;if(e instanceof MediaStreamTrack)t._sharedTracks.audioTrack=e,n={customTrack:Ri};else{if(delete t._sharedTracks.audioTrack,"string"!=typeof e)return console.error("audioSource must be a MediaStreamTrack, boolean, or a string"),!1;n={deviceId:e}}return t._updatePreloadCacheInputSettings({audio:{settings:n}},!1),!0}},subscribeToTracksAutomatically:{validate:function(e,t){return t._preloadCache.subscribeToTracksAutomatically=e,!0}},theme:{validate:function(e){var t=["accent","accentText","background","backgroundAccent","baseText","border","mainAreaBg","mainAreaBgAccent","mainAreaText","supportiveText"],n=function(e){for(var n=0,r=Object.keys(e);n<r.length;n++){var i=r[n];if(!t.includes(i))return console.error('unsupported color "'.concat(i,'". Valid colors: ').concat(t.join(", "))),!1;if(!e[i].match(/^#[0-9a-f]{6}|#[0-9a-f]{3}$/i))return console.error("".concat(i,' theme color should be provided in valid hex color format. Received: "').concat(e[i],'"')),!1}return!0};return"object"===j(e)&&("light"in e&&"dark"in e||"colors"in e)?"light"in e&&"dark"in e?"colors"in e.light?"colors"in e.dark?n(e.light.colors)&&n(e.dark.colors):(console.error('Dark theme is missing "colors" property.',e),!1):(console.error('Light theme is missing "colors" property.',e),!1):n(e.colors):(console.error('Theme must contain either both "light" and "dark" properties, or "colors".',e),!1)},help:"unsupported theme configuration. Check error logs for detailed info."},layoutConfig:{validate:function(e){if("grid"in e){var t=e.grid;if("maxTilesPerPage"in t){if(!Number.isInteger(t.maxTilesPerPage))return console.error("grid.maxTilesPerPage should be an integer. You passed ".concat(t.maxTilesPerPage,".")),!1;if(t.maxTilesPerPage>49)return console.error("grid.maxTilesPerPage can't be larger than 49 without sacrificing browser performance. Please contact us at https://www.daily.co/contact to talk about your use case."),!1}if("minTilesPerPage"in t){if(!Number.isInteger(t.minTilesPerPage))return console.error("grid.minTilesPerPage should be an integer. You passed ".concat(t.minTilesPerPage,".")),!1;if(t.minTilesPerPage<1)return console.error("grid.minTilesPerPage can't be lower than 1."),!1;if("maxTilesPerPage"in t&&t.minTilesPerPage>t.maxTilesPerPage)return console.error("grid.minTilesPerPage can't be higher than grid.maxTilesPerPage."),!1}}return!0},help:"unsupported layoutConfig. Check error logs for detailed info."},receiveSettings:{validate:function(e){return Vo(e,{allowAllParticipantsKey:!1})},help:Qo({allowAllParticipantsKey:!1})},sendSettings:{validate:function(e,t){return!!function(e,t){try{return t.validateUpdateSendSettings(e),!0}catch(e){return console.error("Failed to validate send settings",e),!1}}(e,t)&&(t._preloadCache.sendSettings=e,!0)},help:"Invalid sendSettings provided. Check error logs for detailed info."},inputSettings:{validate:function(e,t){var n;return!!Bo(e)&&(t._inputSettings||(t._inputSettings={}),qo(e,null===(n=t.properties)||void 0===n?void 0:n.dailyConfig,t._sharedTracks),t._updatePreloadCacheInputSettings(e,!0),!0)},help:$o()},layout:{validate:function(e){return"custom-v1"===e||"browser"===e||"none"===e},help:'layout may only be set to "custom-v1"',queryString:"layout"},emb:{queryString:"emb"},embHref:{queryString:"embHref"},dailyJsVersion:{queryString:"dailyJsVersion"},proxy:{queryString:"proxy"},strictMode:!0,allowMultipleCallInstances:!0},To={styles:{validate:function(e){for(var t in e)if("cam"!==t&&"screen"!==t)return!1;if(e.cam)for(var n in e.cam)if("div"!==n&&"video"!==n)return!1;if(e.screen)for(var r in e.screen)if("div"!==r&&"video"!==r)return!1;return!0},help:"styles format should be a subset of: { cam: {div: {}, video: {}}, screen: {div: {}, video: {}} }"},setSubscribedTracks:{validate:function(e,t){if(t._preloadCache.subscribeToTracksAutomatically)return!1;var n=[!0,!1,"staged"];if(n.includes(e)||!Hi()&&"avatar"===e)return!0;var r=["audio","video","screenAudio","screenVideo","rmpAudio","rmpVideo"];return function e(t){var i=arguments.length>1&&void 0!==arguments[1]&&arguments[1];for(var a in t)if("custom"===a){if(!n.includes(t[a])&&!e(t[a],!0))return!1}else{var o=!i&&!r.includes(a),s=!n.includes(t[a]);if(o||s)return!1}return!0}(e)},help:"setSubscribedTracks cannot be used when setSubscribeToTracksAutomatically is enabled, and should be of the form: "+"true".concat(Hi()?"":" | 'avatar'"," | false | 'staged' | { [audio: true|false|'staged'], [video: true|false|'staged'], [screenAudio: true|false|'staged'], [screenVideo: true|false|'staged'] }")},setAudio:!0,setVideo:!0,setScreenShare:{validate:function(e){return!1===e},help:"setScreenShare must be false, as it's only meant for stopping remote participants' screen shares"},eject:!0,updatePermissions:{validate:function(e){for(var t=0,n=Object.entries(e);t<n.length;t++){var r=q(n[t],2),i=r[0],a=r[1];switch(i){case"hasPresence":if("boolean"!=typeof a)return!1;break;case"canSend":if(a instanceof Set||a instanceof Array||Array.isArray(a)){var o,s=["video","audio","screenVideo","screenAudio","customVideo","customAudio"],l=po(a);try{for(l.s();!(o=l.n()).done;){var u=o.value;if(!s.includes(u))return!1}}catch(e){l.e(e)}finally{l.f()}}else if("boolean"!=typeof a)return!1;
2(a instanceof Array||Array.isArray(a))&&(e.canSend=new Set(a));break;case"canReceive":var c=q(ao.validateJSONObject(a),2),d=c[0],f=c[1];if(!d)return console.error(f),!1;break;case"canAdmin":if(a instanceof Set||a instanceof Array||Array.isArray(a)){var p,h=["participants","streaming","transcription"],v=po(a);try{for(v.s();!(p=v.n()).done;){var m=p.value;if(!h.includes(m))return!1}}catch(e){v.e(e)}finally{v.f()}}else if("boolean"!=typeof a)return!1;(a instanceof Array||Array.isArray(a))&&(e.canAdmin=new Set(a));break;default:return!1}}return!0},help:"updatePermissions can take hasPresence, canSend, canReceive, and canAdmin permissions. hasPresence must be a boolean. canSend can be a boolean or an Array or Set of media types (video, audio, screenVideo, screenAudio, customVideo, customAudio). canReceive must be an object specifying base, byUserId, and/or byParticipantId fields (see documentation for more details). canAdmin can be a boolean or an Array or Set of admin types (participants, streaming, transcription)."}};Promise.any||(Promise.any=function(){var e=V(l().mark((function e(t){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise((function(e,n){var r=[];t.forEach((function(i){return Promise.resolve(i).then((function(t){e(t)})).catch((function(e){r.push(e),r.length===t.length&&n(r)}))}))})));case 1:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}());var Mo=function(){function e(t){var n,r,i,a,o,s,u=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(P(this,e),i=this,a=D(a=e),z(r=N(i,fo()?Reflect.construct(a,[],D(i).constructor):a.apply(i,o)),"startListeningForDeviceChanges",(function(){!function(e){Qa()?function(e){Ba.has(e)||(Ba.set(e,{}),navigator.mediaDevices.enumerateDevices().then((function(t){Ba.has(e)&&(Ba.get(e).lastDevicesString=JSON.stringify(t),qa||(qa=function(){var e=V(l().mark((function e(){var t,n,r,i,a;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,navigator.mediaDevices.enumerateDevices();case 2:n=e.sent,r=Ua(Ba.keys());try{for(r.s();!(t=r.n()).done;)i=t.value,(a=JSON.stringify(n))!==Ba.get(i).lastDevicesString&&(Ba.get(i).lastDevicesString=a,i(n))}catch(t){r.e(t)}finally{r.f()}case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),navigator.mediaDevices.addEventListener("devicechange",qa)))})).catch((function(){})))}(e):function(e){Ja.has(e)||(Ja.set(e,{}),navigator.mediaDevices.enumerateDevices().then((function(t){Ja.has(e)&&(Ja.get(e).lastDevicesString=JSON.stringify(t),$a||($a=setInterval(V(l().mark((function e(){var t,n,r,i,a;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,navigator.mediaDevices.enumerateDevices();case 2:n=e.sent,r=Ha(Ja.keys());try{for(r.s();!(t=r.n()).done;)i=t.value,(a=JSON.stringify(n))!==Ja.get(i).lastDevicesString&&(Ja.get(i).lastDevicesString=a,i(n))}catch(t){r.e(t)}finally{r.f()}case 5:case"end":return e.stop()}}),e)}))),3e3)))})))}(e)}(r.handleDeviceChange)})),z(r,"stopListeningForDeviceChanges",(function(){!function(e){Qa()?function(e){Ba.has(e)&&(Ba.delete(e),0===Ba.size&&qa&&(navigator.mediaDevices.removeEventListener("devicechange",qa),qa=null))}(e):function(e){Ja.has(e)&&(Ja.delete(e),0===Ja.size&&$a&&(clearInterval($a),$a=null))}(e)}(r.handleDeviceChange)})),z(r,"handleDeviceChange",(function(e){e=e.map((function(e){return JSON.parse(JSON.stringify(e))})),r.emitDailyJSEvent({action:"available-devices-updated",availableDevices:e})})),z(r,"handleNativeAppStateChange",function(){var e=V(l().mark((function e(t){var n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if("destroyed"!==t){e.next=5;break}return console.warn("App has been destroyed before leaving the meeting. Cleaning up all the resources!"),e.next=4,r.destroy();case 4:return e.abrupt("return",void e.sent);case 5:n="active"===t,r.disableReactNativeAutoDeviceManagement("video")||(n?r.camUnmutedBeforeLosingNativeActiveState&&r.setLocalVideo(!0):(r.camUnmutedBeforeLosingNativeActiveState=r.localVideo(),r.camUnmutedBeforeLosingNativeActiveState&&r.setLocalVideo(!1)));case 7:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()),z(r,"handleNativeAudioFocusChange",(function(e){r.disableReactNativeAutoDeviceManagement("audio")||(r._hasNativeAudioFocus=e,r.toggleParticipantAudioBasedOnNativeAudioFocus(),r._hasNativeAudioFocus?r.micUnmutedBeforeLosingNativeAudioFocus&&r.setLocalAudio(!0):(r.micUnmutedBeforeLosingNativeAudioFocus=r.localAudio(),r.setLocalAudio(!1)))})),z(r,"handleNativeSystemScreenCaptureStop",(function(){r.stopScreenShare()})),!Yi()&&!Hi())throw new Error("WebRTC not supported or suppressed");if(r.strictMode=void 0===u.strictMode||u.strictMode,r.allowMultipleCallInstances=null!==(n=u.allowMultipleCallInstances)&&void 0!==n&&n,Object.keys(vo).length&&(r._logDuplicateInstanceAttempt(),!r.allowMultipleCallInstances)){if(r.strictMode)throw new Error("Duplicate DailyIframe instances are not allowed");
2console.warn("Using strictMode: false to allow multiple call instances is now deprecated. Set `allowMultipleCallInstances: true`")}if(window._daily||(window._daily={pendings:[],instances:{}}),r.callClientId=ce(),vo[(s=r).callClientId]=s,window._daily.instances[r.callClientId]={},r._sharedTracks={},window._daily.instances[r.callClientId].tracks=r._sharedTracks,u.dailyJsVersion=e.version(),r._iframe=t,r._callObjectMode="none"===u.layout&&!r._iframe,r._preloadCache={subscribeToTracksAutomatically:!0,outputDeviceId:null,inputSettings:null,sendSettings:null,videoTrackForNetworkConnectivityTest:null,videoTrackForConnectionQualityTest:null},void 0!==u.showLocalVideo?r._callObjectMode?console.error("showLocalVideo is not available in call object mode"):r._showLocalVideo=!!u.showLocalVideo:r._showLocalVideo=!0,void 0!==u.showParticipantsBar?r._callObjectMode?console.error("showParticipantsBar is not available in call object mode"):r._showParticipantsBar=!!u.showParticipantsBar:r._showParticipantsBar=!0,void 0!==u.customIntegrations?r._callObjectMode?console.error("customIntegrations is not available in call object mode"):r._customIntegrations=u.customIntegrations:r._customIntegrations={},void 0!==u.customTrayButtons?r._callObjectMode?console.error("customTrayButtons is not available in call object mode"):r._customTrayButtons=u.customTrayButtons:r._customTrayButtons={},void 0!==u.activeSpeakerMode?r._callObjectMode?console.error("activeSpeakerMode is not available in call object mode"):r._activeSpeakerMode=!!u.activeSpeakerMode:r._activeSpeakerMode=!1,u.receiveSettings?r._callObjectMode?r._receiveSettings=u.receiveSettings:console.error("receiveSettings is only available in call object mode"):r._receiveSettings={},r.validateProperties(u),r.properties=co({},u),r._inputSettings||(r._inputSettings={}),r._callObjectLoader=r._callObjectMode?new _a(r.callClientId):null,r._callState=fi,r._isPreparingToJoin=!1,r._accessState={access:bi},r._meetingSessionSummary={},r._finalSummaryOfPrevSession={},r._meetingSessionState=ns(yo,r._callObjectMode),r._nativeInCallAudioMode=mo,r._participants={},r._isScreenSharing=!1,r._participantCounts=bo,r._rmpPlayerState={},r._waitingParticipants={},r._network={threshold:"good",quality:100,networkState:"unknown",stats:{}},r._activeSpeaker={},r._localAudioLevel=0,r._isLocalAudioLevelObserverRunning=!1,r._remoteParticipantsAudioLevel={},r._isRemoteParticipantsAudioLevelObserverRunning=!1,r._maxAppMessageSize=ji,r._messageChannel=Hi()?new ha:new da,r._iframe&&(r._iframe.requestFullscreen?r._iframe.addEventListener("fullscreenchange",(function(){document.fullscreenElement===r._iframe?(r.emitDailyJSEvent({action:xi}),r.sendMessageToCallMachine({action:xi})):(r.emitDailyJSEvent({action:Ti}),r.sendMessageToCallMachine({action:Ti}))})):r._iframe.webkitRequestFullscreen&&r._iframe.addEventListener("webkitfullscreenchange",(function(){document.webkitFullscreenElement===r._iframe?(r.emitDailyJSEvent({action:xi}),r.sendMessageToCallMachine({action:xi})):(r.emitDailyJSEvent({action:Ti}),r.sendMessageToCallMachine({action:Ti}))}))),Hi()){var c=r.nativeUtils();c.addAudioFocusChangeListener&&c.removeAudioFocusChangeListener&&c.addAppStateChangeListener&&c.removeAppStateChangeListener&&c.addSystemScreenCaptureStopListener&&c.removeSystemScreenCaptureStopListener||console.warn("expected (add|remove)(AudioFocusChange|AppActiveStateChange|SystemScreenCaptureStop)Listener to be available in React Native"),r._hasNativeAudioFocus=!0,c.addAudioFocusChangeListener(r.handleNativeAudioFocusChange),c.addAppStateChangeListener(r.handleNativeAppStateChange),c.addSystemScreenCaptureStopListener(r.handleNativeSystemScreenCaptureStop)}return r._callObjectMode&&r.startListeningForDeviceChanges(),r._messageChannel.addListenerForMessagesFromCallMachine(r.handleMessageFromCallMachine,r.callClientId,r),r}return F(e,$),I(e,[{key:"destroy",value:(X=V(l().mark((function e(){var t,n,r,i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,this.leave();case 3:e.next=7;break;case 5:e.prev=5,e.t0=e.catch(0);case 7:(n=this._iframe)&&(r=n.parentElement)&&r.removeChild(n),this._messageChannel.removeListener(this.handleMessageFromCallMachine),Hi()&&((i=this.nativeUtils()).removeAudioFocusChangeListener(this.handleNativeAudioFocusChange),i.removeAppStateChangeListener(this.handleNativeAppStateChange),i.removeSystemScreenCaptureStopListener(this.handleNativeSystemScreenCaptureStop)),this._callObjectMode&&this.stopListeningForDeviceChanges(),this.resetMeetingDependentVars(),this._destroyed=!0,this.emitDailyJSEvent({action:"call-instance-destroyed"}),delete vo[this.callClientId],(null===(t=window)||void 0===t||null===(t=t._daily)||void 0===t?void 0:t.instances)&&delete window._daily.instances[this.callClientId],this.strictMode&&(this.callClientId=void 0);case 11:case"end":return e.stop()}}),e,this,[[0,5]])}))),function(){return X.apply(this,arguments)})},{key:"isDestroyed",value:function(){return!!this._destroyed}},{key:"loadCss",value:function(e){var t=e.bodyClass,n=e.cssFile,r=e.cssText;return Fo(),this.sendMessageToCallMachine({action:"load-css",cssFile:this.absoluteUrl(n),bodyClass:t,cssText:r}),this}},{key:"iframe",value:function(){return Fo(),this._iframe}},{key:"meetingState",value:function(){return this._callState}},{key:"accessState",value:function(){return Do(this._callObjectMode,"accessState()"),this._accessState}},{key:"participants",value:function(){return this._participants}},{key:"participantCounts",value:function(){return this._participantCounts}},{key:"waitingParticipants",value:function(){return Do(this._callObjectMode,"waitingParticipants()"),this._waitingParticipants}},{key:"validateParticipantProperties",value:function(e,t){for(var n in t){if(!To[n])throw new Error("unrecognized updateParticipant property ".concat(n));
2if(To[n].validate&&!To[n].validate(t[n],this,this._participants[e]))throw new Error(To[n].help)}}},{key:"updateParticipant",value:function(e,t){return this._participants.local&&this._participants.local.session_id===e&&(e="local"),e&&t&&(this.validateParticipantProperties(e,t),this.sendMessageToCallMachine({action:"update-participant",id:e,properties:t})),this}},{key:"updateParticipants",value:function(e){var t=this._participants.local&&this._participants.local.session_id;for(var n in e)n===t&&(n="local"),n&&e[n]&&this.validateParticipantProperties(n,e[n]);return this.sendMessageToCallMachine({action:"update-participants",participants:e}),this}},{key:"updateWaitingParticipant",value:(Y=V(l().mark((function e(){var t,n,r,i=arguments;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this,n=i.length>0&&void 0!==i[0]?i[0]:"",r=i.length>1&&void 0!==i[1]?i[1]:{},Do(this._callObjectMode,"updateWaitingParticipant()"),jo(this._callState,"updateWaitingParticipant()"),"string"==typeof n&&"object"===j(r)){e.next=3;break}throw new Error("updateWaitingParticipant() must take an id string and a updates object");case 3:return e.abrupt("return",new Promise((function(e,i){t.sendMessageToCallMachine({action:"daily-method-update-waiting-participant",id:n,updates:r},(function(t){t.error&&i(t.error),t.id||i(new Error("unknown error in updateWaitingParticipant()")),e({id:t.id})}))})));case 4:case"end":return e.stop()}}),e,this)}))),function(){return Y.apply(this,arguments)})},{key:"updateWaitingParticipants",value:(G=V(l().mark((function e(){var t,n,r=arguments;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this,n=r.length>0&&void 0!==r[0]?r[0]:{},Do(this._callObjectMode,"updateWaitingParticipants()"),jo(this._callState,"updateWaitingParticipants()"),"object"===j(n)){e.next=3;break}throw new Error("updateWaitingParticipants() must take a mapping between ids and update objects");case 3:return e.abrupt("return",new Promise((function(e,r){t.sendMessageToCallMachine({action:"daily-method-update-waiting-participants",updatesById:n},(function(t){t.error&&r(t.error),t.ids||r(new Error("unknown error in updateWaitingParticipants()")),e({ids:t.ids})}))})));case 4:case"end":return e.stop()}}),e,this)}))),function(){return G.apply(this,arguments)})},{key:"requestAccess",value:(Q=V(l().mark((function e(){var t,n,r,i,a,o,s=arguments;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this,r=(n=s.length>0&&void 0!==s[0]?s[0]:{}).access,i=void 0===r?{level:"full"}:r,a=n.name,o=void 0===a?"":a,e.abrupt("return",(Do(this._callObjectMode,"requestAccess()"),jo(this._callState,"requestAccess()"),new Promise((function(e,n){t.sendMessageToCallMachine({action:"daily-method-request-access",access:i,name:o},(function(t){t.error&&n(t.error),t.access||n(new Error("unknown error in requestAccess()")),e({access:t.access,granted:t.granted})}))}))));case 2:case"end":return e.stop()}}),e,this)}))),function(){return Q.apply(this,arguments)})},{key:"localAudio",value:function(){return this._participants.local?!["blocked","off"].includes(this._participants.local.tracks.audio.state):null}},{key:"localVideo",value:function(){return this._participants.local?!["blocked","off"].includes(this._participants.local.tracks.video.state):null}},{key:"setLocalAudio",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return"forceDiscardTrack"in t&&(Hi()?(console.warn("forceDiscardTrack option not supported in React Native; ignoring"),t={}):e&&(console.warn("forceDiscardTrack option only supported when calling setLocalAudio(false); ignoring"),t={})),this.sendMessageToCallMachine({action:"local-audio",state:e,options:t}),this}},{key:"localScreenAudio",value:function(){return this._participants.local?!["blocked","off"].includes(this._participants.local.tracks.screenAudio.state):null}},{key:"localScreenVideo",value:function(){return this._participants.local?!["blocked","off"].includes(this._participants.local.tracks.screenVideo.state):null}},{key:"updateScreenShare",value:function(e){if(this._isScreenSharing)return this.sendMessageToCallMachine({action:"local-screen-update",options:e}),this;console.warn("There is no screen share in progress. Try calling startScreenShare first.")}},{key:"setLocalVideo",value:function(e){return this.sendMessageToCallMachine({action:"local-video",state:e}),this}},{key:"_setAllowLocalAudio",value:function(e){if(this._preloadCache.allowLocalAudio=e,this._callMachineInitialized)return this.sendMessageToCallMachine({action:"set-allow-local-audio",state:e}),this}},{key:"_setAllowLocalVideo",value:function(e){if(this._preloadCache.allowLocalVideo=e,this._callMachineInitialized)return this.sendMessageToCallMachine({action:"set-allow-local-video",state:e}),this}},{key:"getReceiveSettings",value:(J=V(l().mark((function e(t){var n,r,i,a=arguments;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this,r=(a.length>1&&void 0!==a[1]?a[1]:{}).showInheritedValues,i=void 0!==r&&r,Do(this._callObjectMode,"getReceiveSettings()"),this._callMachineInitialized){e.next=3;break}return e.abrupt("return",this._receiveSettings);case 3:e.t0=j(t),e.next="string"===e.t0?6:"undefined"===e.t0?7:8;break;case 6:return e.abrupt("return",new Promise((function(e){n.sendMessageToCallMachine({action:"get-single-participant-receive-settings",id:t,showInheritedValues:i},(function(t){e(t.receiveSettings)}))})));case 7:return e.abrupt("return",this._receiveSettings);case 8:throw new Error('first argument to getReceiveSettings() must be a participant id (or "base"), or there should be no arguments');case 9:case"end":return e.stop()}}),e,this)}))),function(e){return J.apply(this,arguments)})},{key:"updateReceiveSettings",value:(W=V(l().mark((function e(t){var n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this,Do(this._callObjectMode,"updateReceiveSettings()"),Vo(t,{allowAllParticipantsKey:!0})){e.next=3;break}throw new Error(Qo({allowAllParticipantsKey:!0}));case 3:return e.abrupt("return",(jo(this._callState,"updateReceiveSettings()","To specify receive settings earlier, use the receiveSettings config property."),new Promise((function(e){n.sendMessageToCallMachine({action:"update-receive-settings",receiveSettings:t},(function(t){e({receiveSettings:t.receiveSettings})}))}))));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return W.apply(this,arguments)})},{key:"_prepInputSettingsForSharing",value:function(e,t){if(e){var n={};if(e.audio){var r,i,a;e.audio.settings&&(!Object.keys(e.audio.settings).length&&t||(n.audio={settings:co({},e.audio.settings)})),t&&null!==(r=n.audio)&&void 0!==r&&null!==(r=r.settings)&&void 0!==r&&r.customTrack&&(n.audio.settings={customTrack:this._sharedTracks.audioTrack});var o="none"===(null===(i=e.audio.processor)||void 0===i?void 0:i.type)&&(null===(a=e.audio.processor)||void 0===a?void 0:a._isDefaultWhenNone);if(e.audio.processor&&!o){var s=co({},e.audio.processor);delete s._isDefaultWhenNone,n.audio=co(co({},n.audio),{},{processor:s})}}if(e.video){var l,u,c;e.video.settings&&(!Object.keys(e.video.settings).length&&t||(n.video={settings:co({},e.video.settings)})),t&&null!==(l=n.video)&&void 0!==l&&null!==(l=l.settings)&&void 0!==l&&l.customTrack&&(n.video.settings={customTrack:this._sharedTracks.videoTrack});var d="none"===(null===(u=e.video.processor)||void 0===u?void 0:u.type)&&(null===(c=e.video.processor)||void 0===c?void 0:c._isDefaultWhenNone);if(e.video.processor&&!d){var f=co({},e.video.processor);delete f._isDefaultWhenNone,n.video=co(co({},n.video),{},{processor:f})}}return n}}},{key:"getInputSettings",value:function(){var e=this;return Fo(),new Promise((function(t){t(e._getInputSettings())}))}},{key:"_getInputSettings",value:function(){var e,t,n,r,i,a,o={processor:{type:"none",_isDefaultWhenNone:!0}};this._inputSettings?(e=(null===(n=this._inputSettings)||void 0===n?void 0:n.video)||o,t=(null===(r=this._inputSettings)||void 0===r?void 0:r.audio)||o):(e=(null===(i=this._preloadCache)||void 0===i||null===(i=i.inputSettings)||void 0===i?void 0:i.video)||o,t=(null===(a=this._preloadCache)||void 0===a||null===(a=a.inputSettings)||void 0===a?void 0:a.audio)||o);var s={audio:t,video:e};return this._prepInputSettingsForSharing(s,!0)}},{key:"_updatePreloadCacheInputSettings",value:function(e,t){var n,r,i,a,o,s,l=this._inputSettings||{},u={};e.video?(u.video={},e.video.settings?(u.video.settings={},t||e.video.settings.customTrack||null===(i=l.video)||void 0===i||!i.settings?u.video.settings=e.video.settings:u.video.settings=co(co({},l.video.settings),e.video.settings),Object.keys(u.video.settings).length||delete u.video.settings):null!==(n=l.video)&&void 0!==n&&n.settings&&(u.video.settings=l.video.settings),e.video.processor?u.video.processor=e.video.processor:null!==(r=l.video)&&void 0!==r&&r.processor&&(u.video.processor=l.video.processor)):l.video&&(u.video=l.video);e.audio?(u.audio={},e.audio.settings?(u.audio.settings={},t||e.audio.settings.customTrack||null===(s=l.audio)||void 0===s||!s.settings?u.audio.settings=e.audio.settings:u.audio.settings=co(co({},l.audio.settings),e.audio.settings),Object.keys(u.audio.settings).length||delete u.audio.settings):null!==(a=l.audio)&&void 0!==a&&a.settings&&(u.audio.settings=l.audio.settings),e.audio.processor?u.audio.processor=e.audio.processor:null!==(o=l.audio)&&void 0!==o&&o.processor&&(u.audio.processor=l.audio.processor)):l.audio&&(u.audio=l.audio);this._maybeUpdateInputSettings(u)}},{key:"_devicesFromInputSettings",value:function(e){var t,n,r=(null==e||null===(t=e.video)||void 0===t||null===(t=t.settings)||void 0===t?void 0:t.deviceId)||null,i=(null==e||null===(n=e.audio)||void 0===n||null===(n=n.settings)||void 0===n?void 0:n.deviceId)||null,a=this._preloadCache.outputDeviceId||null;return{camera:r?{deviceId:r}:{},mic:i?{deviceId:i}:{},speaker:a?{deviceId:a}:{}}}},{key:"updateInputSettings",value:(H=V(l().mark((function e(t){var n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this,e.abrupt("return",(Fo(),Bo(t)?t.video||t.audio?(qo(t,this.properties.dailyConfig,this._sharedTracks),this._callObjectMode&&!this._callMachineInitialized?(this._updatePreloadCacheInputSettings(t,!0),this._getInputSettings()):new Promise((function(e,r){n.sendMessageToCallMachine({action:"update-input-sett
2ings",inputSettings:t},(function(i){if(i.error)r(i.error);else{if(i.returnPreloadCache)return n._updatePreloadCacheInputSettings(t,!0),void e(n._getInputSettings());n._maybeUpdateInputSettings(i.inputSettings),e(n._prepInputSettingsForSharing(i.inputSettings,!0))}}))}))):this._getInputSettings():(console.error($o()),Promise.reject($o()))));case 2:case"end":return e.stop()}}),e,this)}))),function(e){return H.apply(this,arguments)})},{key:"setBandwidth",value:function(e){var t=e.kbs,n=e.trackConstraints;if(Fo(),this._callMachineInitialized)return this.sendMessageToCallMachine({action:"set-bandwidth",kbs:t,trackConstraints:n}),this}},{key:"getDailyLang",value:function(){var e=this;if(Fo(),this._callMachineInitialized)return new Promise((function(t){e.sendMessageToCallMachine({action:"get-daily-lang"},(function(e){delete e.action,delete e.callbackStamp,t(e)}))}))}},{key:"setDailyLang",value:function(e){return Fo(),this.sendMessageToCallMachine({action:"set-daily-lang",lang:e}),this}},{key:"setProxyUrl",value:function(e){return this.sendMessageToCallMachine({action:"set-proxy-url",proxyUrl:e}),this}},{key:"setIceConfig",value:function(e){return this.sendMessageToCallMachine({action:"set-ice-config",iceConfig:e}),this}},{key:"meetingSessionSummary",value:function(){return[gi,yi].includes(this._callState)?this._finalSummaryOfPrevSession:this._meetingSessionSummary}},{key:"getMeetingSession",value:(B=V(l().mark((function e(){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this,e.abrupt("return",(console.warn("getMeetingSession() is deprecated: use meetingSessionSummary(), which will return immediately"),jo(this._callState,"getMeetingSession()"),new Promise((function(e){t.sendMessageToCallMachine({action:"get-meeting-session"},(function(t){delete t.action,delete t.callbackStamp,e(t)}))}))));case 2:case"end":return e.stop()}}),e,this)}))),function(){return B.apply(this,arguments)})},{key:"meetingSessionState",value:function(){return jo(this._callState,"meetingSessionState"),this._meetingSessionState}},{key:"setMeetingSessionData",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"replace";Do(this._callObjectMode,"setMeetingSessionData()"),jo(this._callState,"setMeetingSessionData");try{!function(e,t){new ya({data:e,mergeStrategy:t})}(e,t)}catch(e){throw console.error(e),e}try{this.sendMessageToCallMachine({action:"set-session-data",data:e,mergeStrategy:t})}catch(e){throw new Error("Error setting meeting session data: ".concat(e))}}},{key:"setUserName",value:function(e,t){var n=this;return this.properties.userName=e,new Promise((function(r){n.sendMessageToCallMachine({action:"set-user-name",name:null!=e?e:"",thisMeetingOnly:Hi()||!!t&&!!t.thisMeetingOnly},(function(e){delete e.action,delete e.callbackStamp,r(e)}))}))}},{key:"setUserData",value:(U=V(l().mark((function e(t){var n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=this,e.prev=1,Uo(t),e.next=8;break;case 5:throw e.prev=5,e.t0=e.catch(1),console.error(e.t0),e.t0;case 8:if(this.properties.userData=t,!this._callMachineInitialized){e.next=10;break}return e.abrupt("return",new Promise((function(e){try{n.sendMessageToCallMachine({action:"set-user-data",userData:t},(function(t){delete t.action,delete t.callbackStamp,e(t)}))}catch(t){throw new Error("Error setting user data: ".concat(t))}})));case 10:case"end":return e.stop()}}),e,this,[[1,5]])}))),function(e){return U.apply(this,arguments)})},{key:"validateAudioLevelInterval",value:function(e){if(e&&(e<100||"number"!=typeof e))throw new Error("The interval must be a number greater than or equal to 100 milliseconds.")}},{key:"startLocalAudioLevelObserver",value:function(e){var t=this;if("undefined"==typeof AudioWorkletNode&&!Hi())throw new Error("startLocalAudioLevelObserver() is not supported on this browser");if(this.validateAudioLevelInterval(e),this._callMachineInitialized)return this._isLocalAudioLevelObserverRunning=!0,new Promise((function(n,r){t.sendMessageToCallMachine({action:"start-local-audio-level-observer",interval:e},(function(e){t._isLocalAudioLevelObserverRunning=!e.error,e.error?r({error:e.error}):n()}))}));this._preloadCache.localAudioLevelObserver={enabled:!0,interval:e}}},{key:"isLocalAudioLevelObserverRunning",value:function(){return this._isLocalAudioLevelObserverRunning}},{key:"stopLocalAudioLevelObserver",value:function(){this._preloadCache.localAudioLevelObserver=null,this._localAudioLevel=0,this._isLocalAudioLevelObserverRunning=!1,this.sendMessageToCallMachine({action:"stop-local-audio-level-observer"})}},{key:"startRemoteParticipantsAudioLevelObserver",value:function(e){var t=this;if(this.validateAudioLevelInterval(e),this._callMachineInitialized)return this._isRemoteParticipantsAudioLevelObserverRunning=!0,new Promise((function(n,r){t.sendMessageToCallMachine({action:"start-remote-participants-audio-level-observer",interval:e},(function(e){t._isRemoteParticipantsAudioLevelObserverRunning=!e.error,e.error?r({error:e.error}):n()}))}));this._preloadCache.remoteParticipantsAudioLevelObserver={enabled:!0,interval:e}}},{key:"isRemoteParticipantsAudioLevelObserverRunning",value:function(){return this._isRemoteParticipantsAudioLevelObserverRunning}},{key:"stopRemoteParticipantsAudioLevelObserver",value:function(){this._preloadCache.remoteParticipantsAudioLevelObserver=null,this._remoteParticipantsAudioLevel={},this._isRemoteParticipantsAudioLevelObserverRunning=!1,this.sendMessageToCallMachine({action:"stop-remote-participants-audio-level-observer"})}},{key:"startCamera",value:(R=V(l().mark((function e(){var t,n,r=arguments;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this,n=r.length>0&&void 0!==r[0]?r[0]:{},Do(this._callObjectMode,"startCamera()"),Lo(this._callState,this._isPreparingToJoin,"startCamera()","Did you mean to use setLocalAudio() and/or set
2LocalVideo() instead?"),!this.needsLoad()){e.next=12;break}return e.prev=2,e.next=5,this.load(n);case 5:e.next=10;break;case 7:return e.prev=7,e.t0=e.catch(2),e.abrupt("return",Promise.reject(e.t0));case 10:e.next=18;break;case 12:if(!this._didPreAuth){e.next=17;break}if(!n.url||n.url===this.properties.url){e.next=15;break}return e.abrupt("return",(console.error("url in startCamera() is different than the one used in preAuth()"),Promise.reject()));case 15:if(!n.token||n.token===this.properties.token){e.next=17;break}return e.abrupt("return",(console.error("token in startCamera() is different than the one used in preAuth()"),Promise.reject()));case 17:this.validateProperties(n),this.properties=co(co({},this.properties),n);case 18:return e.abrupt("return",new Promise((function(e,n){t._preloadCache.inputSettings=t._prepInputSettingsForSharing(t._inputSettings,!1),t.sendMessageToCallMachine({action:"start-camera",properties:Po(t.properties,t.callClientId),preloadCache:Po(t._preloadCache,t.callClientId)},(function(t){t.error?n(t.error):e({camera:t.camera,mic:t.mic,speaker:t.speaker})}))})));case 19:case"end":return e.stop()}}),e,this,[[2,7]])}))),function(){return R.apply(this,arguments)})},{key:"validateCustomTrack",value:function(e,t,n){if(n&&n.length>50)throw new Error("Custom track `trackName` must not be more than 50 characters");if(t&&"music"!==t&&"speech"!==t&&!(t instanceof Object))throw new Error("Custom track `mode` must be either `music` | `speech` | `DailyMicAudioModeSettings` or `undefined`");if(n&&["cam-audio","cam-video","screen-video","screen-audio","rmpAudio","rmpVideo","customVideoDefaults"].includes(n))throw new Error("Custom track `trackName` must not match a track name already used by daily: cam-audio, cam-video, customVideoDefaults, screen-video, screen-audio, rmpAudio, rmpVideo");if(!(e instanceof MediaStreamTrack))throw new Error("Custom tracks provided must be instances of MediaStreamTrack")}},{key:"startCustomTrack",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{track:track,mode:mode,trackName:trackName,ignoreAudioLevel:ignoreAudioLevel};return Fo(),jo(this._callState,"startCustomTrack()"),this.validateCustomTrack(t.track,t.mode,t.trackName),new Promise((function(n,r){e._sharedTracks.customTrack=t.track,t.track=Ri,e.sendMessageToCallMachine({action:"start-custom-track",properties:t},(function(e){e.error?r({error:e.error}):n(e.mediaTag)}))}))}},{key:"stopCustomTrack",value:function(e){var t=this;return Fo(),jo(this._callState,"stopCustomTrack()"),new Promise((function(n){t.sendMessageToCallMachine({action:"stop-custom-track",mediaTag:e},(function(e){n(e.mediaTag)}))}))}},{key:"setCamera",value:function(e){var t=this;return zo(),Io(this._callMachineInitialized,"setCamera()"),new Promise((function(n){t.sendMessageToCallMachine({action:"set-camera",cameraDeviceId:e},(function(e){n({device:e.device})}))}))}},{key:"setAudioDevice",value:(L=V(l().mark((function e(t){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return zo(),this.nativeUtils().setAudioDevice(t),e.next=4,this.nativeUtils().getAudioDevice();case 4:return e.t0=e.sent,e.abrupt("return",{deviceId:e.t0});case 6:case"end":return e.stop()}}),e,this)}))),function(e){return L.apply(this,arguments)})},{key:"cycleCamera",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return new Promise((function(n){e.sendMessageToCallMachine({action:"cycle-camera",properties:t},(function(e){n({device:e.device})}))}))}},{key:"cycleMic",value:function(){var e=this;return Fo(),new Promise((function(t){e.sendMessageToCallMachine({action:"cycle-mic"},(function(e){t({device:e.device})}))}))}},{key:"getCameraFacingMode",value:function(){var e=this;return zo(),new Promise((function(t){e.sendMessageToCallMachine({action:"get-camera-facing-mode"},(function(e){t(e.facingMode)}))}))}},{key:"setInputDevicesAsync",value:(A=V(l().mark((function e(t){var n,r,i,a,o,s;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this,r=t.audioDeviceId,i=t.videoDeviceId,a=t.audioSource,o=t.videoSource,Fo(),void 0!==a&&(r=a),void 0!==o&&(i=o),"boolean"==typeof r&&(this._setAllowLocalAudio(r),r=void 0),"boolean"==typeof i&&(this._setAllowLocalVideo(i),i=void 0),r||i){e.next=5;break}return e.next=4,this.getInputDevices();case 4:return e.abrupt("return",e.sent);case 5:return s={},e.abrupt("return",(r&&(r instanceof MediaStreamTrack?(this._sharedTracks.audioTrack=r,r=Ri,s.audio={settings:{customTrack:r}}):(delete this._sharedTracks.audioTrack,s.audio={settings:{deviceId:r}})),i&&(i instanceof MediaStreamTrack?(this._sharedTracks.videoTrack=i,i=Ri,s.video={settings:{customTrack:i}}):(delete this._sharedTracks.videoTrack,s.video={settings:{deviceId:i}})),this._callObjectMode&&this.needsLoad()?(this._updatePreloadCacheInputSettings(s,!1),this._devicesFromInputSettings(this._inputSettings)):new Promise((function(e){n.sendMessageToCallMachine({action:"set-input-devices",audioDeviceId:r,videoDeviceId:i},(function(t){if(delete t.action,delete t.callbackStamp,t.returnPreloadCache)return n._updatePreloadCacheInputSettings(s,!1),void e(n._devicesFromInputSettings(n._inputSettings));e(t)}))}
2))));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return A.apply(this,arguments)})},{key:"setOutputDeviceAsync",value:(M=V(l().mark((function e(t){var n,r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this,r=t.outputDeviceId,Fo(),r&&"string"==typeof r){e.next=3;break}throw new Error("outputDeviceId must be provided and must be a valid device id");case 3:return e.abrupt("return",(this._preloadCache.outputDeviceId=r,this._callObjectMode&&this.needsLoad()?this._devicesFromInputSettings(this._inputSettings):new Promise((function(e,t){n.sendMessageToCallMachine({action:"set-output-device",outputDeviceId:r},(function(r){if(delete r.action,delete r.callbackStamp,r.error){var i=new Error(r.error.message);return i.type=r.error.type,void t(i)}r.returnPreloadCache?e(n._devicesFromInputSettings(n._inputSettings)):e(r)}))}))));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return M.apply(this,arguments)})},{key:"getInputDevices",value:(T=V(l().mark((function e(){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this,e.abrupt("return",this._callObjectMode&&this.needsLoad()?this._devicesFromInputSettings(this._inputSettings):new Promise((function(e){t.sendMessageToCallMachine({action:"get-input-devices"},(function(n){n.returnPreloadCache?e(t._devicesFromInputSettings(t._inputSettings)):e({camera:n.camera,mic:n.mic,speaker:n.speaker})}))})));case 2:case"end":return e.stop()}}),e,this)}))),function(){return T.apply(this,arguments)})},{key:"nativeInCallAudioMode",value:function(){return zo(),this._nativeInCallAudioMode}},{key:"setNativeInCallAudioMode",value:function(e){if(zo(),[mo,go].includes(e)){if(e!==this._nativeInCallAudioMode)return this._nativeInCallAudioMode=e,!this.disableReactNativeAutoDeviceManagement("audio")&&Ao(this._callState,this._isPreparingToJoin)&&this.nativeUtils().setAudioMode(this._nativeInCallAudioMode),this}else console.error("invalid in-call audio mode specified: ",e)}},{key:"preAuth",value:(x=V(l().mark((function e(){var t,n,r=arguments;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this,n=r.length>0&&void 0!==r[0]?r[0]:{},Do(this._callObjectMode,"preAuth()"),Lo(this._callState,this._isPreparingToJoin,"preAuth()"),e.t0=this.needsLoad(),!e.t0){e.next=7;break}return e.next=7,this.load(n);case 7:if(n.url){e.next=9;break}throw new Error("preAuth() requires at least a url to be provided");case 9:return e.abrupt("return",(this.validateProperties(n),this.properties=co(co({},this.properties),n),new Promise((function(e,n){t._preloadCache.inputSettings=t._prepInputSettingsForSharing(t._inputSettings,!1),t.sendMessageToCallMachine({action:"daily-method-preauth",properties:Po(t.properties,t.callClientId),preloadCache:Po(t._preloadCache,t.callClientId)},(function(r){return r.error?n(r.error):r.access?(t._didPreAuth=!0,void e({access:r.access})):n(new Error("unknown error in preAuth()"))}))}))));case 10:case"end":return e.stop()}}),e,this)}))),function(){return x.apply(this,arguments)})},{key:"load",value:(E=V(l().mark((function e(t){var n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this,!this.needsLoad()){e.next=7;break}if(!this._destroyed||(this._logUseAfterDestroy(),!this.strictMode)){e.next=4;break}throw new Error("Use after destroy");case 4:if(t&&(this.validateProperties(t),this.properties=co(co({},this.properties),t)),this._callObjectMode||this.properties.url){e.next=6;break}throw new Error("can't load iframe meeting because url property isn't set");case 6:return e.abrupt("return",(this._updateCallState(pi),this.emitDailyJSEvent({action:"loading"}),this._callObjectMode?new Promise((function(e,t){n._callObjectLoader.cancel();var r=Date.now();n._callObjectLoader.load(n.properties.dailyConfig,(function(t){n._bundleLoadTime=t?"no-op":Date.now()-r,n._updateCallState(hi),t&&n.emitDailyJSEvent({action:_i}),e()}),(function(e,r){if(n.emitDailyJSEvent({action:"load-attempt-failed"}),!r){n._updateCallState(yi),n.resetMeetingDependentVars();var i={action:Pi,errorMsg:e.msg,error:{type:"connection-error",msg:"Failed to load call object bundle.",details:{on:"load",sourceError:e,bundleUrl:pe(n.properties.dailyConfig)}
2}};n._maybeSendToSentry(i),n.emitDailyJSEvent(i),t(e.msg)}}))})):(this._iframe.src=fe(this.assembleMeetingUrl(),this.properties.dailyConfig),new Promise((function(e,t){n._loadedCallback=function(r){n._callState!==yi?(n._updateCallState(hi),(n.properties.cssFile||n.properties.cssText)&&n.loadCss(n.properties),e()):t(r)}})))));case 7:case"end":return e.stop()}}),e,this)}))),function(e){return E.apply(this,arguments)})},{key:"join",value:(C=V(l().mark((function e(){var t,n,r,i,a=arguments;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this,n=a.length>0&&void 0!==a[0]?a[0]:{},this._testCallInProgress&&this.stopTestCallQuality(),n.url||this.properties.url){e.next=4;break}return r="No room URL has been provided",e.abrupt("return",(console.error(r),Promise.reject(new Error(r))));case 4:if(i=!1,!this.needsLoad()){e.next=17;break}return this.updateIsPreparingToJoin(!0),e.prev=7,e.next=10,this.load(n);case 10:e.next=15;break;case 12:return e.prev=12,e.t0=e.catch(7),e.abrupt("return",(this.updateIsPreparingToJoin(!1),Promise.reject(e.t0)));case 15:e.next=25;break;case 17:if(i=!(!this.properties.cssFile&&!this.properties.cssText),!this._didPreAuth){e.next=22;break}if(!n.url||n.url===this.properties.url){e.next=20;break}return e.abrupt("return",(console.error("url in join() is different than the one used in preAuth()"),this.updateIsPreparingToJoin(!1),Promise.reject()));case 20:if(!n.token||n.token===this.properties.token){e.next=22;break}return e.abrupt("return",(console.error("token in join() is different than the one used in preAuth()"),this.updateIsPreparingToJoin(!1),Promise.reject()));case 22:if(!n.url||this._callObjectMode||!n.url||n.url===this.properties.url){e.next=24;break}return e.abrupt("return",(console.error("url in join() is different than the one used in load() (".concat(this.properties.url," -> ").concat(n.url,")")),this.updateIsPreparingToJoin(!1),Promise.reject()));case 24:this.validateProperties(n),this.properties=co(co({},this.properties),n);case 25:return e.abrupt("return",(void 0!==n.showLocalVideo&&(this._callObjectMode?console.error("showLocalVideo is not available in callObject mode"):this._showLocalVideo=!!n.showLocalVideo),void 0!==n.showParticipantsBar&&(this._callObjectMode?console.error("showParticipantsBar is not available in callObject mode"):this._showParticipantsBar=!!n.showParticipantsBar),this._callState===mi||this._callState===vi?(console.warn("already joined meeting, call leave() before joining again"),void this.updateIsPreparingToJoin(!1)):(this._updateCallState(vi,!1),this.emitDailyJSEvent({action:"joining-meeting"}),this._preloadCache.inputSettings=this._prepInputSettingsForSharing(this._inputSettings||{},!1),this.sendMessageToCallMachine({action:"join-meeting",properties:Po(this.properties,this.callClientId),preloadCache:Po(this._preloadCache,this.callClientId)},(function(e){e.error&&t._joinedCallback&&(t._joinedCallback(null,e.error),t._joinedCallback=null)})),new Promise((function(e,n){t._joinedCallback=function(r,a){if(t._callState!==yi){if(a)return t._updateCallState(gi),void n(a);if(t._updateCallState(mi),r)for(var o in r){if(t._callObjectMode){var s=t._callMachine().store;Da(r[o],s),Ra(r[o],s),za(r[o],t._participants[o],s)}t._participants[o]=co({},r[o]),t.toggleParticipantAudioBasedOnNativeAudioFocus()}i&&t.loadCss(t.properties),e(r)}else n(a)}})))));case 26:case"end":return e.stop()}}),e,this,[[7,12]])}))),function(){return C.apply(this,arguments)})},{key:"leave",value:(S=V(l().mark((function e(){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this,e.abrupt("return",(this._testCallInProgress&&this.stopTestCallQuality(),new Promise((function(e){t._callState===gi||t._callState===yi?e():t._callObjectLoader&&!t._callObjectLoader.loaded?(t._callObjectLoader.cancel(),t._updateCallState(gi),t.resetMeetingDependentVars(),t.emitDailyJSEvent({action:gi}),e()):(t._resolveLeave=e,t.sendMessageToCallMachine({action:"leave-meeting"}))}))));case 2:case"end":return e.stop()}}),e,this)}))),function(){return S.apply(this,arguments)})},{key:"startScreenShare",value:(w=V(l().mark((function e(){var t,n,r,i=arguments;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this,n=i.length>0&&void 0!==i[0]?i[0]:{},Io(this._callMachineInitialized,"startScreenShare()"),n.screenVideoSendSettings&&this._val
2idateVideoSendSettings("screenVideo",n.screenVideoSendSettings),n.mediaStream&&(this._sharedTracks.screenMediaStream=n.mediaStream,n.mediaStream=Ri),"undefined"==typeof DailyNativeUtils||void 0===DailyNativeUtils.isIOS||!DailyNativeUtils.isIOS){e.next=10;break}return r=this.nativeUtils(),e.next=5,r.isScreenBeingCaptured();case 5:if(!e.sent){e.next=7;break}return e.abrupt("return",void this.emitDailyJSEvent({action:Oi,type:"screen-share-error",errorMsg:"Could not start the screen sharing. The screen is already been captured!"}));case 7:r.setSystemScreenCaptureStartCallback((function(){r.setSystemScreenCaptureStartCallback(null),t.sendMessageToCallMachine({action:Ii,captureOptions:n})})),r.presentSystemScreenCapturePrompt(),e.next=11;break;case 10:this.sendMessageToCallMachine({action:Ii,captureOptions:n});case 11:case"end":return e.stop()}}),e,this)}))),function(){return w.apply(this,arguments)})},{key:"stopScreenShare",value:function(){Io(this._callMachineInitialized,"stopScreenShare()"),this.sendMessageToCallMachine({action:"local-screen-stop"})}},{key:"startRecording",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.type;if(t&&"cloud"!==t&&"cloud-audio-only"!==t&&"raw-tracks"!==t&&"local"!==t)throw new Error("invalid type: ".concat(t,", allowed values 'cloud', 'cloud-audio-only', 'raw-tracks', or 'local'"));this.sendMessageToCallMachine(co({action:"local-recording-start"},e))}},{key:"updateRecording",value:function(e){var t=e.layout,n=void 0===t?{preset:"default"}:t,r=e.instanceId;this.sendMessageToCallMachine({action:"daily-method-update-recording",layout:n,instanceId:r})}},{key:"stopRecording",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.sendMessageToCallMachine(co({action:"local-recording-stop"},e))}},{key:"startLiveStreaming",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.sendMessageToCallMachine(co({action:"daily-method-start-live-streaming"},e))}},{key:"updateLiveStreaming",value:function(e){var t=e.layout,n=void 0===t?{preset:"default"}:t,r=e.instanceId;this.sendMessageToCallMachine({action:"daily-method-update-live-streaming",layout:n,instanceId:r})}},{key:"addLiveStreamingEndpoints",value:function(e){var t=e.endpoints,n=e.instanceId;this.sendMessageToCallMachine({action:Ni,endpointsOp:"add-endpoints",endpoints:t,instanceId:n})}},{key:"removeLiveStreamingEndpoints",value:function(e){var t=e.endpoints,n=e.instanceId;this.sendMessageToCallMachine({action:Ni,endpointsOp:"remove-endpoints",endpoints:t,instanceId:n})}},{key:"stopLiveStreaming",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};
2this.sendMessageToCallMachine(co({action:"daily-method-stop-live-streaming"},e))}},{key:"validateDailyConfig",value:function(e){e.camSimulcastEncodings&&(console.warn("camSimulcastEncodings is deprecated. Use sendSettings, found in DailyCallOptions, to provide camera simulcast settings."),this.validateSimulcastEncodings(e.camSimulcastEncodings)),e.screenSimulcastEncodings&&console.warn("screenSimulcastEncodings is deprecated. Use sendSettings, found in DailyCallOptions, to provide screen simulcast settings."),Xi()&&e.noAutoDefaultDeviceChange&&console.warn("noAutoDefaultDeviceChange is not supported on Android, and will be ignored.")}},{key:"validateSimulcastEncodings",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if(e){if(!(e instanceof Array||Array.isArray(e)))throw new Error("encodings must be an Array");if(!ts(e.length,1,3))throw new Error("encodings must be an Array with between 1 to ".concat(3," layers"));for(var r=0;r<e.length;r++){var i=e[r];for(var a in this._validateEncodingLayerHasValidProperties(i),i)if(wo.includes(a)){if("number"!=typeof i[a])throw new Error("".concat(a," must be a number"));if(t){var o=t[a],s=o.min,l=o.max;if(!ts(i[a],s,l))throw new Error("".concat(a," value not in range. valid range: ").concat(s," to ").concat(l))}}else if(!["active","scalabilityMode"].includes(a))throw new Error("Invalid key ".concat(a,", valid keys are:")+Object.values(wo));if(n&&!i.hasOwnProperty("maxBitrate"))throw new Error("maxBitrate is not specified")}}}},{key:"startRemoteMediaPlayer",value:(k=V(l().mark((function e(t){var n,r,i,a;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=this,r=t.url,i=t.settings,a=void 0===i?{state:Ui.PLAY}:i,e.prev=1,!function(e){if("string"!=typeof e)throw new Error('url parameter must be "string" type')}(r),es(a),function(e){for(var t in e)if(!So.includes(t))throw new Error("Invalid key ".concat(t,", valid keys are: ").concat(So));e.simulcastEncodings&&this.validateSimulcastEncodings(e.simulcastEncodings,ko,!0)}(a),e.next=8;break;case 5:throw e.prev=5,e.t0=e.catch(1),console.error("invalid argument Error: ".concat(e.t0)),console.error('startRemoteMediaPlayer arguments must be of the form:\n { url: "playback url",\n settings?:\n {state: "play"|"pause", simulcastEncodings?: [{}] } }'),e.t0;case 8:return e.abrupt("return",new Promise((function(e,t){n.sendMessageToCallMachine({action:"daily-method-start-remote-media-player",url:r,settings:a},(function(n){n.error?t({error:n.error,errorMsg:n.errorMsg}):e({session_id:n.session_id,remoteMediaPlayerState:{state:n.state,settings:n.settings}})}))})));case 9:case"end":return e.stop()}}),e,this,[[1,5]])}))),function(e){return k.apply(this,arguments)})},{key:"stopRemoteMediaPlayer",value:(b=V(l().mark((function e(t){var n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this,"string"==typeof t){e.next=3;break}throw new Error(" remotePlayerID must be of type string");case 3:return e.abrupt("return",new Promise((function(e,r){n.sendMessageToCallMachine({action:"daily-method-stop-remote-media-player",session_id:t},(function(t){t.error?r({error:t.error,errorMsg:t.errorMsg}):e()}))})));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return b.apply(this,arguments)})},{key:"updateRemoteMediaPlayer",value:(y=V(l().mark((function e(t){var n,r,i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=this,r=t.session_id,i=t.settings,e.prev=1,es(i),e.next=8;break;case 5:throw e.prev=5,e.t0=e.catch(1),console.error("invalid argument Error: ".concat(e.t0)),console.error('updateRemoteMediaPlayer arguments must be of the form:\n session_id: "participant session",\n { settings?: {state: "play"|"pause"} }'),e.t0;case 8:return e.abrupt("return",new Promise((function(e,t){n.sendMessageToCallMachine({action:"daily-method-update-remote-media-player",session_id:r,settings:i},(function(n){n.error?t({error:n.error,errorMsg:n.errorMsg}):e({session_id:n.session_id,remoteMediaPlayerState:{state:n.state,settings:n.settings}})}))})));case 9:case"end":return e.stop()}}),e,this,[[1,5]])}))),function(e){return y.apply(this,arguments)})},{key:"startTranscription",value:function(e){jo(this._callState,"startTranscription()"),this.sendMessageToCallMachine(co({action:"daily-method-start-transcription"},e))}},{key:"updateTranscription",value:function(e){if(jo(this._callState,"updateTranscription()"),!e)throw new Error("updateTranscription
2Error: options is mandatory");if("object"!==j(e))throw new Error("updateTranscription Error: options must be object type");if(e.participants&&!Array.isArray(e.participants))throw new Error("updateTranscription Error: participants must be an array");this.sendMessageToCallMachine(co({action:"daily-method-update-transcription"},e))}},{key:"stopTranscription",value:function(e){if(jo(this._callState,"stopTranscription()"),e&&"object"!==j(e))throw new Error("stopTranscription Error: options must be object type");if(e&&!e.instanceId)throw new Error('"instanceId" not provided');this.sendMessageToCallMachine(co({action:"daily-method-stop-transcription"},e))}},{key:"startDialOut",value:(g=V(l().mark((function e(t){var n,r,i,a,o;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this,jo(this._callState,"startDialOut()"),r=function(e){if(e){if(!Array.isArray(e))throw new Error("Error starting dial out: audio codec must be an array");if(e.length<=0)throw new Error("Error starting dial out: audio codec array specified but empty");e.forEach((function(e){if("string"!=typeof e)throw new Error("Error starting dial out: audio codec must be a string");if("OPUS"!==e&&"PCMU"!==e&&"PCMA"!==e&&"G722"!==e)throw new Error("Error starting dial out: audio codec must be one of OPUS, PCMU, PCMA, G722")}))}},t.sipUri||t.phoneNumber){e.next=5;break}throw new Error("Error starting dial out: either a sip uri or phone number must be provided");case 5:if(!t.sipUri||!t.phoneNumber){e.next=7;break}throw new Error("Error starting dial out: only one of sip uri or phone number must be provided");case 7:if(!t.sipUri){e.next=15;break}if("string"==typeof t.sipUri){e.next=10;break}throw new Error("Error starting dial out: sipUri must be a string");case 10:if(t.sipUri.startsWith("sip:")){e.next=12;break}throw new Error("Error starting dial out: Invalid SIP URI, must start with 'sip:'");case 12:if(!t.video||"boolean"==typeof t.video){e.next=14;break}throw new Error("Error starting dial out: video must be a boolean value");case 14:!function(e){if(e&&(r(e.audio),e.video)){if(!Array.isArray(e.video))throw new Error("Error starting dial out: video codec must be an array");if(e.video.length<=0)throw new Error("Error starting dial out: video codec array specified but empty");e.video.forEach((function(e){if("string"!=typeof e)throw new Error("Error starting dial out: video codec must be a string");if("H264"!==e&&"VP8"!==e)throw new Error("Error starting dial out: video codec must be H264 or VP8")}))}}(t.codecs);case 15:if(!t.phoneNumber){e.next=21;break}if("string"==typeof t.phoneNumber){e.next=18;break}throw new Error("Error starting dial out: phoneNumber must be a string");case 18:if(/^\+\d{1,}$/.test(t.phoneNumber)){e.next=20;break}throw new Error("Error starting dial out: Invalid phone number, must be valid phone number as per E.164");case 20:t.codecs&&r(t.codecs.audio);case 21:if(!t.callerId){e.next=26;break}if("string"==typeof t.callerId){e.next=24;break}throw new Error("Error starting dial out: callerId must be a string");case 24:if(!t.sipUri){e.next=26;break}throw new Error("Error starting dial out: callerId not allowed with sipUri");case 26:if(!t.displayName){e.next=31;break}if("string"==typeof t.displayName){e.next=29;break}throw new Error("Error starting dial out: displayName must be a string");case 29:if(!(t.displayName.length>=200)){e.next=31;break}throw new Error("Error starting dial out: displayName length must be less than 200");case 31:if(!t.userId){e.next=36;break}if("string"==typeof t.userId){e.next=34;break}throw new Error("Error starting dial out: userId must be a string");case 34:if(!(t.userId.length>36)){e.next=36;break}throw new Error("Error starting dial out: userId length must be less than or equal to 36");case 36:if(Oo(t),!t.permissions||!t.permissions.canReceive){e.next=40;break}if(i=q(ao.validateJSONObject(t.permissions.canReceive),2),a=i[0],o=i[1],a){e.next=40;break}throw new Error(o);case 40:if(!t.provider){e.next=46;break}if("daily"===t.provider){e.next=43;break}throw new Error("Error: provider can be set only to 'daily', got: ".concat(t.provider));case 43:if(!t.phoneNumber){e.next=45;break}throw new Error("Error starting dial out: provider valid only for sipUri, not phoneNumber");case 45:console.warn("(pre-beta) provider=daily is currently in pre-beta, things might break!");case 46:return e.abrupt("return",new Promise((function(e,r){n.sendMessageToCallMachine(co({action:"dialout-start"},t),(function(t){t.error?r(t.error):e(t)}))}
2)));case 47:case"end":return e.stop()}}),e,this)}))),function(e){return g.apply(this,arguments)})},{key:"stopDialOut",value:function(e){var t=this;return jo(this._callState,"stopDialOut()"),new Promise((function(n,r){t.sendMessageToCallMachine(co({action:"dialout-stop"},e),(function(e){e.error?r(e.error):n(e)}))}))}},{key:"sipCallTransfer",value:(m=V(l().mark((function e(t){var n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this,jo(this._callState,"sipCallTransfer()"),t){e.next=3;break}throw new Error("sipCallTransfer() requires a sessionId and toEndPoint");case 3:return e.abrupt("return",(t.useSipRefer=!1,Zo(t,"sipCallTransfer"),Oo(t),new Promise((function(e,r){n.sendMessageToCallMachine(co({action:Bi},t),(function(t){t.error?r(t.error):e(t)}))}))));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return m.apply(this,arguments)})},{key:"sipRefer",value:(v=V(l().mark((function e(t){var n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this,jo(this._callState,"sipRefer()"),t){e.next=3;break}throw new Error("sessionId and toEndPoint are mandatory parameter");case 3:return e.abrupt("return",(t.useSipRefer=!0,Zo(t,"sipRefer"),new Promise((function(e,r){n.sendMessageToCallMachine(co({action:Bi},t),(function(t){t.error?r(t.error):e(t)}))}))));case 4:case"end":return e.stop()}}),e,this)}))),function(e){return v.apply(this,arguments)})},{key:"sendDTMF",value:(h=V(l().mark((function e(t){var n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this,e.abrupt("return",(jo(this._callState,"sendDTMF()"),function(e){var t=e.sessionId,n=e.tones;if(!t||!n)throw new Error("sessionId and tones are mandatory parameter");if("string"!=typeof t||"string"!=typeof n)throw new Error("sessionId and tones should be of string type");if(n.length>20)throw new Error("tones string must be upto 20 characters");var r=n.match(/[^0-9A-D*#]/g);if(r&&r[0])throw new Error("".concat(r[0]," is not valid DTMF tone"))}(t),new Promise((function(e,r){n.sendMessageToCallMachine(co({action:"send-dtmf"},t),(function(t){t.error?r(t.error):e(t)}))}))));case 2:case"end":return e.stop()}}),e,this)}))),function(e){return h.apply(this,arguments)})},{key:"getNetworkStats",value:function(){var e=this;return this._callState!==mi?Promise.resolve(co({stats:{latest:{}}},this._network)):new Promise((function(t){e.sendMessageToCallMachine({action:"get-calc-stats"},(function(n){t(co(co({},e._network),{},{stats:n.stats}))}))}))}},{key:"testWebsocketConnectivity",value:(p=V(l().mark((function e(){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this,No(this._testCallInProgress,"testWebsocketConnectivity()"),!this.needsLoad()){e.next=10;break}return e.prev=2,e.next=5,this.load();case 5:e.next=10;break;case 7:return e.prev=7,e.t0=e.catch(2),e.abrupt("return",Promise.reject(e.t0));case 10:return e.abrupt("return",new Promise((function(e,n){t.sendMessageToCallMachine({action:"test-websocket-connectivity"},(function(t){t.error?n(t.error):e(t.results)}))})));case 11:case"end":return e.stop()}}),e,this,[[2,7]])}))),function(){return p.apply(this,arguments)})},{key:"abortTestWebsocketConnectivity",value:function(){this.sendMessageToCallMachine({action:"abort-test-websocket-connectivity"})}},{key:"_validateVideoTrackForNetworkTests",value:function(e){return e?e instanceof MediaStreamTrack?!!function(e,t){var n=t.isLocalScreenVideo;return e&&"live"===e.readyState&&!function(e,t){return(!t.isLocalScreenVideo||"Chrome"!==ea())&&e.muted&&!Ga.has(e.id)}(e,{isLocalScreenVideo:n})}(e,{isLocalScreenVideo:!1})||(console.error("Video track is not playable. This test needs a live video track."),!1):(console.error("Video track needs to be of type `MediaStreamTrack`."),!1):(console.error("Missing video track. You must provide a video track in order to run this test."),!1)}},{key:"testCallQuality",value:(f=V(l().mark((function e(){var t,n,r,i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this,Fo(),Do(this._callObjectMode,"testCallQuality()"),Io(this._callMachineInitialized,"testCallQuality()",null,!0),Lo(this._callState,this._isPreparingToJoin,"testCallQuality()"),n=this._testCallAlreadyInProgress,r=function(e){n||(t._testCallInProgress=e)},r(!0),!this.needsLoad()){e.next=14;break}return e.prev=4,i=this._callState,e.next=8,this.load();case 8:this._callState=i,e.next=14;break;case 11:return e.prev=11,e.t0=e.catch(4),e.abrupt("return",(r(!1),Promise.reject(e.t0)));case 14:return e.abrupt("return",new Promise((function(e){t.sendMessageToCallMachine({action:"test-call-quality",dailyJsVersion:t.properties.dailyJsVersion},(function(n){var i=n.results,a=i.result,o=O(i,so);if("failed"===a){var s,l=co({},o);null!==(s=o.error)&&void 0!==s&&s.details?(o.error.details=JSON.parse(o.error.details),l.error=co(co({},l.error),{},{details:co({},l.error.details)}),l.error.details.duringTest="testCallQuality"):(l.error=l.error?co({},l.error):{},l.error.details={duringTest:"testCallQuality"}),t._maybeSendToSentry(l)}r(!1),e(co({result:a},o))}))})));case 15:case"end":return e.stop()}}),e,this,[[4,11]])}))),function(){return f.apply(this,arguments)})},{key:"stopTestCallQuality",value:function(){this.sendMessageToCallMachine({action:"stop-test-call-quality"})}},{key:"testConnectionQuality",value:(d=V(l().mark((function e(t){var n,r;return l().wrap((function(e){for(;;
2)switch(e.prev=e.next){case 0:if(!Hi()){e.next=7;break}return console.warn("testConnectionQuality() is deprecated: use testPeerToPeerCallQuality() instead"),e.next=4,this.testPeerToPeerCallQuality(t);case 4:n=e.sent,e.next=11;break;case 7:return console.warn("testConnectionQuality() is deprecated: use testCallQuality() instead"),e.next=10,this.testCallQuality();case 10:n=e.sent;case 11:return r={result:n.result,secondsElapsed:n.secondsElapsed},e.abrupt("return",(n.data&&(r.data={maxRTT:n.data.maxRoundTripTime,packetLoss:n.data.avgRecvPacketLoss}),r));case 13:case"end":return e.stop()}}),e,this)}))),function(e){return d.apply(this,arguments)})},{key:"testPeerToPeerCallQuality",value:(c=V(l().mark((function e(t){var n,r,i;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this,No(this._testCallInProgress,"testPeerToPeerCallQuality()"),!this.needsLoad()){e.next=10;break}return e.prev=2,e.next=5,this.load();case 5:e.next=10;break;case 7:return e.prev=7,e.t0=e.catch(2),e.abrupt("return",Promise.reject(e.t0));case 10:if(r=t.videoTrack,i=t.duration,this._validateVideoTrackForNetworkTests(r)){e.next=13;break}throw new Error("Video track error");case 13:return e.abrupt("return",(this._sharedTracks.videoTrackForConnectionQualityTest=r,new Promise((function(e,t){n.sendMessageToCallMachine({action:"test-p2p-call-quality",duration:i},(function(n){n.error?t(n.error):e(n.results)}))}))));case 14:case"end":return e.stop()}}),e,this,[[2,7]])}))),function(e){return c.apply(this,arguments)})},{key:"stopTestConnectionQuality",value:function(){Hi()?(console.warn("stopTestConnectionQuality() is deprecated: use testPeerToPeerCallQuality() and stopTestPeerToPeerCallQuality() instead"),this.stopTestPeerToPeerCallQuality()):(console.warn("stopTestConnectionQuality() is deprecated: use testCallQuality() and stopTestCallQuality() instead"),this.stopTestCallQuality())}},{key:"stopTestPeerToPeerCallQuality",value:function(){this.sendMessageToCallMachine({action:"stop-test-p2p-call-quality"})}},{key:"testNetworkConnectivity",value:(u=V(l().mark((function e(t){var n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(n=this,No(this._testCallInProgress,"testNetworkConnectivity()"),!this.needsLoad()){e.next=10;break}return e.prev=2,e.next=5,this.load();case 5:e.next=10;break;case 7:return e.prev=7,e.t0=e.catch(2),e.abrupt("return",Promise.reject(e.t0));case 10:if(this._validateVideoTrackForNetworkTests(t)){e.next=12;break}throw new Error("Video track error");case 12:return e.abrupt("return",(this._sharedTracks.videoTrackForNetworkConnectivityTest=t,new Promise((function(e,t){n.sendMessageToCallMachine({action:"test-network-connectivity"},(function(n){n.error?t(n.error):e(n.results)}))}))));case 13:case"end":return e.stop()}}),e,this,[[2,7]])}))),function(e){return u.apply(this,arguments)})},{key:"abortTestNetworkConnectivity",value:function(){this.sendMessageToCallMachine({action:"abort-test-network-connectivity"})}},{key:"getCpuLoadStats",value:function(){var e=this;return new Promise((function(t){e._callState===mi?e.sendMessageToCallMachine({action:"get-cpu-load-stats"},(function(e){t(e.cpuStats)})):t({cpuLoadState:void 0,cpuLoadStateReason:void 0,stats:{}})}))}},{key:"_validateEncodingLayerHasValidProperties",value:function(e){var t;if(!((null===(t=Object.keys(e))||void 0===t?void 0:t.length)>0))throw new Error("Empty encoding is not allowed. At least one of these valid keys should be specified:"+Object.values(wo))}},{key:"_validateVideoSendSettings",value:function(e,t){var n="screenVideo"===e?["default-screen-video","detail-optimized","motion-optimized","motion-and-detail-balanced"]:["default-video","bandwidth-optimized","bandwidth-and-quality-balanced","quality-optimized","adaptive-2-layers","adaptive-3-layers"],r="Video send settings should be either an object or one of the supported presets: ".concat(n.join());if("string"==typeof t){if(!n.includes(t))throw new Error(r)}else{if("object"!==j(t))throw new Error(r);if(!t.maxQuality&&!t.encodings&&void 0===t.allowAdaptiveLayers)throw new Error("Video send settings must contain at least maxQuality, allowAdaptiveLayers or encodings attribute");if(t.maxQuality&&-1===["low","medium","high"].indexOf(t.maxQuality))throw new Error("maxQuality must be either low, medium or high");if(t.encodings){var i=!1;switch(Object.keys(t.encodings).length){case 1:i=!t.encodings.low;break;case 2:i=!t.encodings.low||!t.encodings.medium;break;case 3:i=!t.encodings.low||!t.encodings.medium||!t.encodings.high;break;default:i=!0}if(i)throw new Error("Encodings must be defined as: low, low and medium, or low, medium and high.");
2t.encodings.low&&this._validateEncodingLayerHasValidProperties(t.encodings.low),t.encodings.medium&&this._validateEncodingLayerHasValidProperties(t.encodings.medium),t.encodings.high&&this._validateEncodingLayerHasValidProperties(t.encodings.high)}}}},{key:"validateUpdateSendSettings",value:function(e){var t=this;if(!e||0===Object.keys(e).length)throw new Error("Send settings must contain at least information for one track!");Object.entries(e).forEach((function(e){var n=q(e,2),r=n[0],i=n[1];t._validateVideoSendSettings(r,i)}))}},{key:"updateSendSettings",value:function(e){var t=this;return this.validateUpdateSendSettings(e),this.needsLoad()?(this._preloadCache.sendSettings=e,{sendSettings:this._preloadCache.sendSettings}):new Promise((function(n,r){t.sendMessageToCallMachine({action:"update-send-settings",sendSettings:e},(function(e){e.error?r(e.error):n(e.sendSettings)}))}))}},{key:"getSendSettings",value:function(){return this._sendSettings||this._preloadCache.sendSettings}},{key:"getLocalAudioLevel",value:function(){return this._localAudioLevel}},{key:"getRemoteParticipantsAudioLevel",value:function(){return this._remoteParticipantsAudioLevel}},{key:"getActiveSpeaker",value:function(){return Fo(),this._activeSpeaker}},{key:"setActiveSpeakerMode",value:function(e){return Fo(),this.sendMessageToCallMachine({action:"set-active-speaker-mode",enabled:e}),this}},{key:"activeSpeakerMode",value:function(){return Fo(),this._activeSpeakerMode}},{key:"subscribeToTracksAutomatically",value:function(){return this._preloadCache.subscribeToTracksAutomatically}},{key:"setSubscribeToTracksAutomatically",value:function(e){return jo(this._callState,"setSubscribeToTracksAutomatically()","Use the subscribeToTracksAutomatically configuration property."),this._preloadCache.subscribeToTracksAutomatically=e,this.sendMessageToCallMachine({action:"daily-method-subscribe-to-tracks-automatically",enabled:e}),this}},{key:"enumerateDevices",value:(s=V(l().mark((function e(){var t,n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this,!this._callObjectMode){e.next=6;break}return e.next=4,navigator.mediaDevices.enumerateDevices();case 4:return n=e.sent,e.abrupt("return",("Firefox"===ea()&&ta().major>115&&ta().major<123&&(n=n.filter((function(e){return"audiooutput"!==e.kind}))),{devices:n.map((function(e){var t=JSON.parse(JSON.stringify(e));if(!Hi()&&"videoinput"===e.kind&&e.getCapabilities){var n,r=e.getCapabilities();t.facing=(null==r||null===(n=r.facingMode)||void 0===n?void 0:n.length)>=1?r.facingMode[0]:void 0}return t}))}));case 6:return e.abrupt("return",new Promise((function(e){t.sendMessageToCallMachine({action:"enumerate-devices"},(function(t){e({devices:t.devices})}))})));case 7:case"end":return e.stop()}}),e,this)}))),function(){return s.apply(this,arguments)})},{key:"sendAppMessage",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"*";if(jo(this._callState,"sendAppMessage()"),JSON.stringify(e).length>this._maxAppMessageSize)throw new Error("Message data too large. Max size is "+this._maxAppMessageSize);return this.sendMessageToCallMachine({action:"app-msg",data:e,to:t}),this}},{key:"addFakeParticipant",value:function(e){return Fo(),jo(this._callState,"addFakeParticipant()"),this.sendMessageToCallMachine(co({action:"add-fake-participant"},e)),this}},{key:"setShowNamesMode",value:function(e){return Ro(this._callObjectMode,"setShowNamesMode()"),Fo(),e&&"always"!==e&&"never"!==e?(console.error('setShowNamesMode argument should be "always", "never", or false'),this):(this.sendMessageToCallMachine({action:"set-show-names",mode:e}),this)}},{key:"setShowLocalVideo",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return Ro(this._callObjectMode,"setShowLocalVideo()"),Fo(),jo(this._callState,"setShowLocalVideo()"),"boolean"!=typeof e?(console.error("setShowLocalVideo only accepts a boolean value"),this):(this.sendMessageToCallMachine({action:"set-show-local-video",show:e}),this._showLocalVideo=e,this)}},{key:"showLocalVideo",value:function(){return Ro(this._callObjectMode,"showLocalVideo()"),Fo(),this._showLocalVideo}},{key:"setShowParticipantsBar",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];return Ro(this._callObjectMode,"setShowParticipantsBar()"),Fo(),jo(this._callState,"setShowParticipantsBar()"),"boolean"!=typeof e?(console.error("setShowParticipantsBar only accepts a boolean value"),this):(this.sendMessageToCallMachine({action:"set-show-participants-bar",show:e}),this._showParticipantsBar=e,this)}},{key:"showParticipantsBar",value:function(){return Ro(this._callObjectMode,"showParticipantsBar()"),Fo(),this._showParticipantsBar}},{key:"customIntegrations",value:function(){return Fo(),Ro(this._callObjectMode,"customIntegrations()"),this._customIntegrations}},{key:"setCustomIntegrations",value:function(e){return Fo(),Ro(this._callObjectMode,"setCustomIntegrations()"),jo(this._callState,"setCustomIntegrations()"),Yo(e)?(this.sendMessageToCallMachine({action:"set-custom-integrations",integrations:e}),this._customIntegrations=e,this):this}},{key:"startCustomIntegrations",value:function(e){var t=this;if(Fo(),Ro(this._callObjectMode,"startCustomIntegrations()"),jo(this._callState,"startCustomIntegrations()"),Array.isArray(e)&&e.some((function(e){return"string"!=typeof e}))||!Array.isArray(e)&&"string"!=typeof e)return console.error("startCustomIntegrations() only accepts string | string[]"),this;var n="string"==typeof e?[e]:e,r=n.filter((function(e){return!(e in t._customIntegrations)}));return r.length?(console.error("Can't find custom integration(s): \"".concat(r.join(", "),'"')),this):(this.sendMessageToCallMachine({action:"start-custom-integrations",ids:n}),this)}},{key:"stopCustomIntegrations",value:function(e){var t=this;if(Fo(),Ro(this._callObjectMode,"stopCustomIntegrations()"),jo(this._callState,"stopCustomIntegrations()"),Array.isArray(e)&&e.some((function(e){return"string"!=typeof e}))||!Array.isArray(e)&&"string"!=typeof e)return console.error("stopCustomIntegrations() only accepts string | string[]"),this;var n="string"==typeof e?[e]:e,r=n.filter((function(e){return!(e in t._customIntegrations)}));return r.length?(console.error("Can't find custom integration(s): \"".concat(r.join(", "),'"')),this):(this.sendMessageToCallMachine({action:"stop-custom-integrations",ids:n}),this)}},{key:"customTrayButtons",value:function(){return Ro(this._callObjectMode,"customTrayButtons()"),Fo(),this._customTrayButtons}},{key:"updateCustomTrayButtons",value:function(e){return Ro(this._callObjectMode,"updateCustomTrayButtons()"),Fo(),jo(this._callState,"updateCustomTrayButtons()"),Ko(e)?(this.sendMessageToCallMachine({action:"update-custom-tray-buttons",btns:e}),this._customTrayButtons=e,this):(console.error("updateCustomTrayButtons only accepts a dictionary of the type ".concat(JSON.stringify(Co))),this)}},{key:"theme",value:function(){return Ro(this._callObjectMode,"theme()"),this.properties.theme}},{key:"setTheme",value:function(e){var t=this;return Ro(this._callObjectMode,"setTheme()"),new Promise((function(n,r){try{t.validateProperties({theme:e}),t.properties.theme=co({},e),t.sendMessageToCallMachine({action:"set-theme",theme:t.properties.theme});try{t.emitDailyJSEvent({action:"theme-updated",theme:t.properties.theme})}catch(e){console.log("could not emit 'theme-updated'",e)}n(t.properties.theme)}catch(e){r(e)}}))}},{key:"requestFullscreen",value:(o=V(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(Fo(),!this._iframe||document.fullscreenElement||!Ji()){e.next=14;break}return e.prev=1,e.next=4,this._iframe.requestFullscreen;case 4:if(!e.sent){e.next=8;break}this._iframe.requestFullscreen(),e.next=9;break;case 8:this._iframe.webkitRequestFullscreen();case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),console.log("could not make video call fullscreen",e.t0);case 14:case"end":return e.stop()}}),e,this,[[1,11]])}))),function(){return o.apply(this,arguments)})},{key:"exitFullscreen",value:function(){Fo(),document.fullscreenElement?document.exitFullscreen():document.webkitFullscreenElement&&document.webkitExitFullscreen()}},{key:"getSidebarView",value:(a=V(l().mark((function e(){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this,e.abrupt("return",this._callObjectMode?(console.error("getSidebarView is not available in callObject mode"),Promise.resolve(null)):new Promise((function(e){t.sendMessageToCallMachine({action:"get-sidebar-view"},(function(t){e(t.view)}))})));case 2:case"end":return e.stop()}}),e,this)}))),function(){return a.apply(this,arguments)})},{key:"setSidebarView",value:function(e){return this._callObjectMode?(console.error("setSidebarView is not available in callObject mode"),this):(this.sendMessageToCallMachine({action:"set-sidebar-view",view:e}),this)}},{key:"room",value:(i=V(l().mark((function e(){var t,n,r,i=arguments;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this,n=(i.length>0&&void 0!==i[0]?i[0]:{}
2).includeRoomConfigDefaults,r=void 0===n||n,e.abrupt("return",this._accessState.access===bi||this.needsLoad()?this.properties.url?{roomUrlPendingJoin:this.properties.url}:null:new Promise((function(e){t.sendMessageToCallMachine({action:"lib-room-info",includeRoomConfigDefaults:r},(function(t){delete t.action,delete t.callbackStamp,e(t)}))})));case 2:case"end":return e.stop()}}),e,this)}))),function(){return i.apply(this,arguments)})},{key:"geo",value:(r=V(l().mark((function e(){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,fetch("https://gs.daily.co/_ks_/x-swsl/:");case 3:return t=e.sent,e.next=6,t.json();case 6:return e.t0=e.sent.geo,e.abrupt("return",{current:e.t0});case 10:return e.prev=10,e.t1=e.catch(0),e.abrupt("return",(console.error("geo lookup failed",e.t1),{current:""}));case 13:case"end":return e.stop()}}),e,null,[[0,10]])}))),function(){return r.apply(this,arguments)})},{key:"setNetworkTopology",value:(n=V(l().mark((function e(t){var n;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=this,e.abrupt("return",(Fo(),jo(this._callState,"setNetworkTopology()"),new Promise((function(e,r){n.sendMessageToCallMachine({action:"set-network-topology",opts:t},(function(t){t.error?r({error:t.error}):e({workerId:t.workerId})}))}))));case 2:case"end":return e.stop()}}),e,this)}))),function(e){return n.apply(this,arguments)})},{key:"getNetworkTopology",value:(t=V(l().mark((function e(){var t;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this,e.abrupt("return",new Promise((function(e,n){t.needsLoad()&&e({topology:"none"}),t.sendMessageToCallMachine({action:"get-network-topology"},(function(t){t.error?n({error:t.error}):e({topology:t.topology})}))})));case 2:case"end":return e.stop()}}),e,this)}))),function(){return t.apply(this,arguments)})},{key:"setPlayNewParticipantSound",value:function(e){if(Fo(),"number"!=typeof e&&!0!==e&&!1!==e)throw new Error("argument to setShouldPlayNewParticipantSound should be true, false, or a number, but is ".concat(e));this.sendMessageToCallMachine({action:"daily-method-set-play-ding",arg:e})}},{key:"on",value:function(e,t){return $.prototype.on.call(this,e,t)}},{key:"once",value:function(e,t){return $.prototype.once.call(this,e,t)}},{key:"off",value:function(e,t){return $.prototype.off.call(this,e,t)}},{key:"validateProperties",value:function(e){var t,n;if(null!=e&&null!==(t=e.dailyConfig)&&void 0!==t&&t.userMediaAudioConstraints){var r,i;Hi()||console.warn("userMediaAudioConstraints is deprecated. You can override constraints with inputSettings.audio.settings, found in DailyCallOptions.");var a=e.inputSettings||{};a.audio=(null===(r=e.inputSettings)||void 0===r?void 0:r.audio)||{},a.audio.settings=(null===(i=e.inputSettings)||void 0===i||null===(i=i.audio)||void 0===i?void 0:i.settings)||{},a.audio.settings=co(co({},a.audio.settings),e.dailyConfig.userMediaAudioConstraints),e.inputSettings=a,delete e.dailyConfig.userMediaAudioConstraints}if(null!=e&&null!==(n=e.dailyConfig)&&void 0!==n&&n.userMediaVideoConstraints){var o,s;Hi()||console.warn("userMediaVideoConstraints is deprecated. You can override constraints with inputSettings.video.settings, found in DailyCallOptions.");var l=e.inputSettings||{};l.video=(null===(o=e.inputSettings)||void 0===o?void 0:o.video)||{},l.video.settings=(null===(s=e.inputSettings)||void 0===s||null===(s=s.video)||void 0===s?void 0:s.settings)||{},l.video.settings=co(co({},l.video.settings),e.dailyConfig.userMediaVideoConstraints),e.inputSettings=l,delete e.dailyConfig.userMediaVideoConstraints}for(var u in e)if(xo[u]){if(xo[u].validate&&!xo[u].validate(e[u],this))throw new Error("property '".concat(u,"': ").concat(xo[u].help))}else console.warn("Ignoring unrecognized property '".concat(u,"'")),delete e[u]}},{key:"assembleMeetingUrl",value:function(){var e,t,n=co(co({},this.properties),{},{emb:this.callClientId,embHref:encodeURIComponent(window.location.href),proxy:null!==(e=this.properties.dailyConfig)&&void 0!==e&&e.proxyUrl?encodeURIComponent(null===(t=this.properties.dailyConfig)||void 0===t?void 0:t.proxyUrl):void 0}),r=n.url.match(/\?/)?"&":"?";return n.url+r+Object.keys(xo).filter((function(e){return xo[e].queryString&&void 0!==n[e]}
2)).map((function(e){return"".concat(xo[e].queryString,"=").concat(n[e])})).join("&")}},{key:"needsLoad",value:function(){return[fi,pi,gi,yi].includes(this._callState)}},{key:"sendMessageToCallMachine",value:function(e,t){if(this._destroyed&&(this._logUseAfterDestroy(),this.strictMode))throw new Error("Use after destroy");this._messageChannel.sendMessageToCallMachine(e,t,this.callClientId,this._iframe)}},{key:"forwardPackagedMessageToCallMachine",value:function(e){this._messageChannel.forwardPackagedMessageToCallMachine(e,this._iframe,this.callClientId)}},{key:"addListenerForPackagedMessagesFromCallMachine",value:function(e){return this._messageChannel.addListenerForPackagedMessagesFromCallMachine(e,this.callClientId)}},{key:"removeListenerForPackagedMessagesFromCallMachine",value:function(e){this._messageChannel.removeListenerForPackagedMessagesFromCallMachine(e)}},{key:"handleMessageFromCallMachine",value:function(e){switch(e.action){case"iframe-ready-for-launch-config":this.sendMessageToCallMachine(co({action:"iframe-launch-config"},this.properties));break;case"call-machine-initialized":this._callMachineInitialized=!0;var t={action:Di,level:"log",code:1011,stats:{event:"bundle load",time:"no-op"===this._bundleLoadTime?0:this._bundleLoadTime,preLoaded:"no-op"===this._bundleLoadTime,url:pe(this.properties.dailyConfig)}};this.sendMessageToCallMachine(t),this._delayDuplicateInstanceLog&&this._logDuplicateInstanceAttempt();break;case _i:this._loadedCallback&&(this._loadedCallback(),this._loadedCallback=null),this.emitDailyJSEvent(e);break;case"joined-meeting":var n,r=co({},e);delete r.internal,this._maxAppMessageSize=(null===(n=e.internal)||void 0===n?void 0:n._maxAppMessageSize)||ji,this._joinedCallback&&(this._joinedCallback(e.participants),this._joinedCallback=null),this.emitDailyJSEvent(r);break;case"participant-joined":case"participant-updated":if(this._callState===gi)return;if(e.participant&&e.participant.session_id){var i=e.participant.local?"local":e.participant.session_id;if(this._callObjectMode){var a=this._callMachine().store;Da(e.participant,a),Ra(e.participant,a),za(e.participant,this._participants[i],a)}try{this.maybeParticipantTracksStopped(this._participants[i],e.participant),this.maybeParticipantTracksStarted(this._participants[i],e.participant),this.maybeEventRecordingStopped(this._participants[i],e.participant),this.maybeEventRecordingStarted(this._participants[i],e.participant)}catch(O){console.error("track events error",O)}this.compareEqualForParticipantUpdateEvent(e.participant,this._participants[i])||(this._participants[i]=co({},e.participant),this.toggleParticipantAudioBasedOnNativeAudioFocus(),this.emitDailyJSEvent(e))}break;case"participant-left":if(e.participant&&e.participant.session_id){var o=this._participants[e.participant.session_id];o&&this.maybeParticipantTracksStopped(o,null),delete this._participants[e.participant.session_id],this.emitDailyJSEvent(e)}break;case"participant-counts-updated":K(this._participantCounts,e.participantCounts)||(this._participantCounts=e.participantCounts,this.emitDailyJSEvent(e));break;case"access-state-updated":var s={access:e.access};e.awaitingAccess&&(s.awaitingAccess=e.awaitingAccess),K(this._accessState,s)||(this._accessState=s,this.emitDailyJSEvent(e));break;case"meeting-session-summary-updated":if(e.meetingSession){this._meetingSessionSummary=e.meetingSession,this.emitDailyJSEvent(e);var l=co(co({},e),{},{action:"meeting-session-updated"});this.emitDailyJSEvent(l)}break;case Pi:var u;this._iframe&&!e.preserveIframe&&(this._iframe.src=""),this._updateCallState(yi),this.resetMeetingDependentVars(),this._loadedCallback&&(this._loadedCallback(e.errorMsg),this._loadedCallback=null),e.preserveIframe;var c=O(e,lo);null!=c&&null!==(u=c.error)&&void 0!==u&&u.details&&(c.error.details=JSON.parse(c.error.details)),this._maybeSendToSentry(e),this._joinedCallback&&(this._joinedCallback(null,c),this._joinedCallback=null),this.emitDailyJSEvent(c);break;case"left-meeting":this._callState!==yi&&this._updateCallState(gi),this.resetMeetingDependentVars(),this._resolveLeave&&(this._resolveLeave(),this._resolveLeave=null),this.emitDailyJSEvent(e);break;case"selected-devices-updated":e.devices&&this.emitDailyJSEvent(e);break;case"network-quality-change":var d=e.state,f=e.threshold,p=e.quality,h=d.state,v=d.reasons;h===this._network.networkState&&K(v,this._network.networkStateReasons)&&f===this._network.threshold&&p===this._network.quality||(this._network.networkState=h,this._network.networkStateReasons=v,this._network.quality=p,this._network.threshold=f,e.networkState=h,v.length&&(e.networkStateReasons=v),delete e.state,this.emitDailyJSEvent(e));break;case"cpu-load-change":e&&e.cpuLoadState&&this.emitDailyJSEvent(e);break;case"face-counts-updated":e&&void 0!==e.faceCounts&&this.emitDailyJSEvent(e);break;case"active-speaker-change":var m=e.activeSpeaker;this._activeSpeaker.peerId!==m.peerId&&(this._activeSpeaker.peerId=m.peerId,this.emitDailyJSEvent({action:e.action,activeSpeaker:this._activeSpeaker}));break;case"show-local-video-changed":if(this._callObjectMode)return;var g=e.show;this._showLocalVideo=g,this.emitDailyJSEvent({action:e.action,show:g});break;case"active-speaker-mode-change":var y=e.enabled;this._activeSpeakerMode!==y&&(this._activeSpeakerMode=y,this.emitDailyJSEvent({action:e.action,enabled:this._activeSpeakerMode}));break;case"waiting-participant-added":case"waiting-participant-updated":case"waiting-participant-removed":this._waitingParticipants=e.allWaitingParticipants,this.emitDailyJSEvent({action:e.action,participant:e.participant});break;
2case"receive-settings-updated":K(this._receiveSettings,e.receiveSettings)||(this._receiveSettings=e.receiveSettings,this.emitDailyJSEvent({action:e.action,receiveSettings:e.receiveSettings}));break;case Mi:this._maybeUpdateInputSettings(e.inputSettings);break;case"send-settings-updated":K(this._sendSettings,e.sendSettings)||(this._sendSettings=e.sendSettings,this._preloadCache.sendSettings=null,this.emitDailyJSEvent({action:e.action,sendSettings:e.sendSettings}));break;case"local-audio-level":this._localAudioLevel=e.audioLevel,this._preloadCache.localAudioLevelObserver=null,this.emitDailyJSEvent(e);break;case"remote-participants-audio-level":this._remoteParticipantsAudioLevel=e.participantsAudioLevel,this._preloadCache.remoteParticipantsAudioLevelObserver=null,this.emitDailyJSEvent(e);break;case"remote-media-player-started":var b=e.session_id;this._rmpPlayerState[b]=e.playerState,this.emitDailyJSEvent(e);break;case"remote-media-player-stopped":delete this._rmpPlayerState[e.session_id],this.emitDailyJSEvent(e);break;case"remote-media-player-updated":var k=e.session_id,w=this._rmpPlayerState[k];w&&this.compareEqualForRMPUpdateEvent(w,e.remoteMediaPlayerState)||(this._rmpPlayerState[k]=e.remoteMediaPlayerState,this.emitDailyJSEvent(e));break;case"custom-button-click":case"sidebar-view-changed":case"pip-started":case"pip-stopped":this.emitDailyJSEvent(e);break;case"meeting-session-state-updated":var S=this._meetingSessionState.topology!==(e.meetingSessionState&&e.meetingSessionState.topology);this._meetingSessionState=ns(e.meetingSessionState,this._callObjectMode),(this._callObjectMode||S)&&this.emitDailyJSEvent(e);break;case"local-screen-share-started":this._isScreenSharing=!0,this.emitDailyJSEvent(e);break;case"local-screen-share-stopped":case"local-screen-share-canceled":this._isScreenSharing=!1,this.emitDailyJSEvent(e);break;case Ci:case Ei:case"recording-stats":case"recording-error":case"recording-upload-completed":case"transcription-started":case"transcription-stopped":case"transcription-error":case"started-camera":case"camera-error":case"app-message":case"transcription-message":case"test-completed":case"network-connection":case"recording-data":case"live-streaming-started":case"live-streaming-updated":case"live-streaming-stopped":case"live-streaming-error":case Oi:case"lang-updated":case"dialin-ready":case"dialin-connected":case"dialin-error":case"dialin-stopped":case"dialin-warning":case"dialout-connected":case"dialout-answered":case"dialout-error":case"dialout-stopped":case"dialout-warning":this.emitDailyJSEvent(e);break;case"request-fullscreen":this.requestFullscreen();break;case"request-exit-fullscreen":this.exitFullscreen()}}},{key:"maybeEventRecordingStopped",value:function(e,t){var n="record";e&&(t.local||!1!==t[n]||e[n]===t[n]||this.emitDailyJSEvent({action:Ei}))}},{key:"maybeEventRecordingStarted",value:function(e,t){var n="record";e&&(t.local||!0!==t[n]||e[n]===t[n]||this.emitDailyJSEvent({action:Ci}))}},{key:"_trackStatePlayable",value:function(e){return!(!e||"playable"!==e.state)}},{key:"_trackChanged",value:function(e,t){return!((null==e?void 0:e.id)===(null==t?void 0:t.id))}},{key:"maybeEventTrackStopped",value:function(e,t,n){var r,i,a=null!==(r=null==t?void 0:t.tracks[e])&&void 0!==r?r:null,o=null!==(i=null==n?void 0:n.tracks[e])&&void 0!==i?i:null,s=null==a?void 0:a.track;if(s){var l=this._trackStatePlayable(a),u=this._trackStatePlayable(o),c=this._trackChanged(s,null==o?void 0:o.track);l&&(u&&!c||this.emitDailyJSEvent({action:"track-stopped",track:s,participant:null!=n?n:t,type:e}))}}},{key:"maybeEventTrackStarted",value:function(e,t,n){var r,i,a=null!==(r=null==t?void 0:t.tracks[e])&&void 0!==r?r:null,o=null!==(i=null==n?void 0:n.tracks[e])&&void 0!==i?i:null,s=null==o?void 0:o.track;if(s){var l=this._trackStatePlayable(a),u=this._trackStatePlayable(o),c=this._trackChanged(null==a?void 0:a.track,s);u&&(l&&!c||this.emitDailyJSEvent({action:"track-started",track:s,participant:n,type:e}))}}},{key:"maybeParticipantTracksStopped",value:function(e,t){if(e)for(var n in e.tracks)this.maybeEventTrackStopped(n,e,t)}},{key:"maybeParticipantTracksStarted",value:function(e,t){if(t)for(var n in t.tracks)this.maybeEventTrackStarted(n,e,t)}},{key:"compareEqualForRMPUpdateEvent",value:function(e,t){var n,r;return e.state===t.state&&(null===(n=e.settings)||void 0===n?void 0:n.volume)===(null===(r=t.settings)||void 0===r?void 0:r.volume)}},{key:"emitDailyJSEvent",value:function(e){try{e.callClientId=this.callClientId,this.emit
vendor: 2,783 bytes, line 2
2(e.action,e)}catch(P){console.log("could not emit",e,P)}}},{key:"compareEqualForParticipantUpdateEvent",value:function(e,t){return!!K(e,t)&&(!e.videoTrack||!t.videoTrack||e.videoTrack.id===t.videoTrack.id&&e.videoTrack.muted===t.videoTrack.muted&&e.videoTrack.enabled===t.videoTrack.enabled)&&(!e.audioTrack||!t.audioTrack||e.audioTrack.id===t.audioTrack.id&&e.audioTrack.muted===t.audioTrack.muted&&e.audioTrack.enabled===t.audioTrack.enabled)}},{key:"nativeUtils",value:function(){return Hi()?"undefined"==typeof DailyNativeUtils?(console.warn("in React Native, DailyNativeUtils is expected to be available"),null):DailyNativeUtils:null}},{key:"updateIsPreparingToJoin",value:function(e){this._updateCallState(this._callState,e)}},{key:"_updateCallState",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._isPreparingToJoin;if(e!==this._callState||t!==this._isPreparingToJoin){var n=this._callState,r=this._isPreparingToJoin;this._callState=e,this._isPreparingToJoin=t;var i=this._callState===mi;this.updateShowAndroidOngoingMeetingNotification(i);var a=Ao(n,r),o=Ao(this._callState,this._isPreparingToJoin);a!==o&&(this.updateKeepDeviceAwake(o),this.updateDeviceAudioMode(o),this.updateNoOpRecordingEnsuringBackgroundContinuity(o))}}},{key:"resetMeetingDependentVars",value:function(){this._participants={},this._participantCounts=bo,this._waitingParticipants={},this._activeSpeaker={},this._activeSpeakerMode=!1,this._didPreAuth=!1,this._accessState={access:bi},this._finalSummaryOfPrevSession=this._meetingSessionSummary,this._meetingSessionSummary={},this._meetingSessionState=ns(yo,this._callObjectMode),this._isScreenSharing=!1,this._receiveSettings={},this._inputSettings=void 0,this._sendSettings={},this._localAudioLevel=0,this._isLocalAudioLevelObserverRunning=!1,this._remoteParticipantsAudioLevel={},this._isRemoteParticipantsAudioLevelObserverRunning=!1,this._maxAppMessageSize=ji,this._callMachineInitialized=!1,this._bundleLoadTime=void 0,this._preloadCache}},{key:"updateKeepDeviceAwake",value:function(e){Hi()&&this.nativeUtils().setKeepDeviceAwake(e,this.callClientId)}},{key:"updateDeviceAudioMode",value:function(e){if(Hi()&&!this.disableReactNativeAutoDeviceManagement("audio")){var t=e?this._nativeInCallAudioMode:"idle";this.nativeUtils().setAudioMode(t)}}},{key:"updateShowAndroidOngoingMeetingNotification",value:function(e){if(Hi()&&this.nativeUtils().setShowOngoingMeetingNotification){var t,n,r,i;if(this.properties.reactNativeConfig&&this.properties.reactNativeConfig.androidInCallNotification){var a=this.properties.reactNativeConfig.androidInCallNotification;t=a.title,n=a.subtitle,r=a.iconName,i=a.disableForCustomOverride}i&&(e=!1),this.nativeUtils().setShowOngoingMeetingNotification(e,t,n,r,this.callClientId)}}}
2,{key:"updateNoOpRecordingEnsuringBackgroundContinuity",value:function(e){Hi()&&this.nativeUtils().enableNoOpRecordingEnsuringBackgroundContinuity&&this.nativeUtils().enableNoOpRecordingEnsuringBackgroundContinuity(e)}},{key:"toggleParticipantAudioBasedOnNativeAudioFocus",value:function(){var e;if(Hi()){var t=null===(e=this._callMachine())||void 0===e||null===(e=e.store)||void 0===e?void 0:e.getState();for(var n in null==t?void 0:t.streams){var r=t.streams[n];r&&r.pendingTrack&&"audio"===r.pendingTrack.kind&&(r.pendingTrack.enabled=this._hasNativeAudioFocus)}}}},{key:"disableReactNativeAutoDeviceManagement",value:function(e){return this.properties.reactNativeConfig&&this.properties.reactNativeConfig.disableAutoDeviceManagement&&this.properties.reactNativeConfig.disableAutoDeviceManagement[e]}},{key:"absoluteUrl",value:function(e){if(void 0!==e){var t=document.createElement("a");return t.href=e,t.href}}},{key:"sayHello",value:function(){var e="hello, world.";return console.log(e),e}},{key:"_logUseAfterDestroy",value:function(){var e=Object.values(vo)[0];if(this.needsLoad())if(e&&!e.needsLoad()){var t={action:Di,level:"error",code:this.strictMode?9995:9997};e.sendMessageToCallMachine(t)}else this.strictMode||console.error("You are are attempting to use a call instance that was previously destroyed, which is unsupported. Please remove `strictMode: false` from your constructor properties to enable strict mode to track down and fix this unsupported usage.");else{var n={action:Di,level:"error",code:this.strictMode?9995:9997};this._messageChannel.sendMessageToCallMachine(n,null,this.callClientId,this._iframe)}}},{key:"_logDuplicateInstanceAttempt",value:function(){for(var e=0,t=Object.values(vo);e<t.length;e++){var n=t[e];n._callMachineInitialized?(n.sendMessageToCallMachine({action:Di,level:"warn",code:this.allowMultipleCallInstances?9993:9992}),n._delayDuplicateInstanceLog=!1):n._delayDuplicateInstanceLog=!0}}},{key:"_maybeSendToSentry",value:function(t){var n,r,i,a;if(null!==(n=t.error)&&void 0!==n&&n.type){if(![Si,wi,ki].includes(t.error.type))return;if(t.error.type===ki&&t.error.msg.includes("deleted"))return}var o=null!==(r=this.properties)&&void 0!==r&&r.url?new URL(this.properties.url):void 0,s="production";o&&o.host.includes(".staging.daily")&&(s="staging");var l,u,c,d,f,p=function(e){var t=[Gn(),{name:"FunctionToString",setupOnce:function(){Wn=Function.prototype.toString;try{Function.prototype.toString=function(){for(var e=ct(this),t=$n.has(Wt())&&void 0!==e?e:this,n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return Wn.apply(t,r)}}catch(e){}},setup:function(e){$n.set(e,!0)}},ni(),ei(),li(),di(),ir(),{name:"HttpContext",preprocessEvent:function(e){if(vr.navigator||vr.location||vr.document){var t=e.request&&e.request.url||vr.location&&vr.location.href,n=(vr.document||{}).referrer,r=(vr.navigator||{}).userAgent,i=_(_(_({},e.request&&e.request.headers),n&&{Referer:n}),r&&{"User-Agent":r}),a=_(_(_({},e.request),t&&{url:t}),{},{headers:i});e.request=a}}}];return!1!=={}.autoSessionTracking&&t.push(si()),t}().filter((function(e){return!["BrowserApiErrors","Breadcrumbs","GlobalHandlers"].includes(e.name)})),h=new Ir({dsn:"https://[email protected]/168844",transport:Wr,stackParser:Xr,integrations:p,environment:s}),v=new Dt;if(v.setClient(h),h.init(),this.session_id&&v.setExtra("sessionId",this.session_id),this.properties){var m=co({},this.properties);m.userName=m.userName?"[Filtered]":void 0,m.userData=m.userData?"[Filtered]":void 0,m.token=m.token?"[Filtered]":void 0,v.setExtra("properties",m)}if(o){var g=o.searchParams.get("domain");if(!g){var y=o.host.match(/(.*?)\./);g=y&&y[1]||""}g&&v.setTag("domain",g)}t.error&&(v.setTag("fatalErrorType",t.error.type),v.setExtra("errorDetails",t.error.details),(null===(l=t.error.details)||void 0===l?void 0:l.uri)&&v.setTag("serverAddress",t.error.details.uri),(null===(u=t.error.details)||void 0===u?void 0:u.workerGroup)&&v.setTag("workerGroup",t.error.details.workerGroup),(null===(c=t.error.details)||void 0===c?void 0:c.geoGroup)&&v.setTag("geoGroup",t.error.details.geoGroup),(null===(d=t.error.details)||void 0===d?void 0:d.on)&&v.setTag("connectionAttempt",t.error.details.on),null!==(f=t.error.details)&&void 0!==f&&f.bundleUrl&&(v.setTag("bundleUrl",t.error.details.bundleUrl),v.setTag("bundleError",t.error.details.sourceError.type))),v.setTags({callMode:this._callObjectMode?Hi()?"reactNative":null!==(i=this.properties)&&void 0!==i&&null!==(i=i.dailyConfig)&&void 0!==i&&null!==(i=i.callMode)&&void 0!==i&&i.includes("prebuilt")?this.properties.dailyConfig.callMode:"custom":"prebuilt-frame",version:e.version()});var b=(null===(a=t.error)||void 0===a?void 0:a.msg)||t.errorMsg;v.captureException(new Error(b))}},{key:"_callMachine",value:function(){var e;return null===(e=window._daily)||void 0===e||null===(e=e.instances)||void 0===e||null===(e=e[this.callClientId])||void 0===e?void 0:e.callMachine}},{key:"_maybeUpdateInputSettings",value:function(e){if(!K(this._inputSettings,e)){var t=this._getInputSettings();this._inputSettings=e;var n=this._getInputSettings();K(t,n)||this.emitDailyJSEvent({action:Mi,inputSettings:n})}}}],[{key:"supportedBrowser",value:function(){if(Hi())return{supported:!0,mobile:!0,name:"React Native",version:null,supportsScreenShare:!0,supportsSfu:!0,supportsVideoProcessing:!1,supportsAudioProcessing:!1};var e=ue.getParser(qi());return{supported:!!Yi(),mobile:"mobile"===e.getPlatformType(),name:e.getBrowserName(),version:e.getBrowserVersion(),supportsFullscreen:!!Ji(),supportsScreenShare:!!(navigator&&navigator.mediaDevices&&navigator.mediaDevices.getDisplayMedia&&(function(e,t){if(!e||!t)return!0;switch(e){case"Chrome":return t.major>=75;case"Safari":return RTCRtpTransceiver.prototype.hasOwnProperty("currentDirection")&&!(13===t.major&&0===t.minor&&0===t.point);case"Firefox":return t.major>=67}return!0}(ea(),ta())||Hi())),supportsSfu:!!Yi(),supportsVideoProcessing:Gi(),supportsAudioProcessing:Ki()}}},{key:"version",value:function(){return"0.87.0"}},{key:"createCallObject",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.layout="none",new e(null,t)}},{key:"wrap",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(Fo(),!t||!t.contentWindow||"string"!=typeof t.src)throw new Error("DailyIframe::Wrap needs an iframe-like first argument");return n.layout||(n.customLayout?n.layout="custom-v1":n.layout="browser"),new e(t,n)}},{key:"createFrame",value:function(t,n){var r,i;Fo(),t&&n?(r=t,i=n):t&&t.append?(r=t,i={}):(r=document.body,i=t||{});var a=i.iframeStyle;a||(a=r===document.body?{position:"fixed",border:"1px solid black",backgroundColor:"white",width:"375px",height:"450px",right:"1em",bottom:"1em"}:{border:0,width:"100%",height:"100%"});var o=document.createElement("iframe");window.navigator&&window.navigator.userAgent.match(/Chrome\/61\./)?o.allow="microphone, camera":o.allow="microphone; camera; autoplay; display-capture; screen-wake-lock; compute-pressure;",o.style.visibility="hidden",r.appendChild(o),o.style.visibility=null,Object.keys(a).forEac
vendor: 12,176 bytes, line 2
2h((function(e){return o.style[e]=a[e]})),i.layout||(i.customLayout?i.layout="custom-v1":i.layout="browser");try{return new e(o,i)}catch(t){throw r.removeChild(o),t}}},{key:"createTransparentFrame",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};Fo();var n=document.createElement("iframe");return n.allow="microphone; camera; autoplay",n.style.cssText="\n position: fixed;\n top: 0;\n left: 0;\n width: 100%;\n height: 100%;\n border: 0;\n pointer-events: none;\n ",document.body.appendChild(n),t.layout||(t.layout="custom-v1"),e.wrap(n,t)}},{key:"getCallInstance",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:void 0;return e?vo[e]:Object.values(vo)[0]}}]);var t,n,r,i,a,o,s,u,c,d,f,p,h,v,m,g,y,b,k,w,S,C,E,x,T,M,A,L,R,U,B,H,W,J,Q,G,Y,X}();function Oo(e){if(e.extension){if("string"!=typeof e.extension)throw new Error("Error starting dial out: extension must be a string");if(e.extension.length>20)throw new Error("Error starting dial out: extension length must be less than or equal to 20")}if(e.waitBeforeExtensionDialSec){if("number"!=typeof e.waitBeforeExtensionDialSec)throw new Error("Error starting dial out: waitBeforeExtensionDialSec must be a number");if(e.waitBeforeExtensionDialSec>60)throw new Error("Error starting dial out: waitBeforeExtensionDialSec must be less than or equal to 60");if(!e.extension)throw new Error("Error starting dial out: waitBeforeExtensionDialSec requires a phoneNumber and extension")}}function Po(e,t){var n={};for(var r in e)if(e[r]instanceof MediaStreamTrack)console.warn("MediaStreamTrack found in props or cache.",r),n[r]=Ri;else if("dailyConfig"===r){if(e[r].modifyLocalSdpHook){var i=window._daily.instances[t].customCallbacks||{};i.modifyLocalSdpHook=e[r].modifyLocalSdpHook,window._daily.instances[t].customCallbacks=i,delete e[r].modifyLocalSdpHook}if(e[r].modifyRemoteSdpHook){var a=window._daily.instances[t].customCallbacks||{};a.modifyRemoteSdpHook=e[r].modifyRemoteSdpHook,window._daily.instances[t].customCallbacks=a,delete e[r].modifyRemoteSdpHook}n[r]=e[r]}else n[r]=e[r];return n}function jo(e){var t=arguments.length>2?arguments[2]:void 0;if(e!==mi){var n="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"This daily-js method"," only supported after join.");throw t&&(n+=" ".concat(t)),console.error(n),new Error(n)}}function Ao(e,t){return[vi,mi].includes(e)||t}function Lo(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"This daily-js method",r=arguments.length>3?arguments[3]:void 0;if(Ao(e,t)){var i="".concat(n," not supported after joining a meeting.");throw r&&(i+=" ".concat(r)),console.error(i),new Error(i)}}function Io(e){var t=arguments.length>2?arguments[2]:void 0;if(!e){var n="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"This daily-js method",arguments.length>3&&void 0!==arguments[3]&&arguments[3]?" requires preAuth() or startCamera() to initialize call state.":" requires preAuth(), startCamera(), or join() to initialize call state.");throw t&&(n+=" ".concat(t)),console.error(n),new Error(n)}}function No(e){if(e){var t="A pre-call quality test is in progress. Please try ".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"This daily-js method"," again once testing has completed. Use stopTestCallQuality() to end it early.");throw console.error(t),new Error(t)}}function Do(e){if(!e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"This daily-js method"," is only supported on custom callObject instances");throw console.error(t),new Error(t)}}function Ro(e){if(e){var t="".concat(arguments.length>1&&void 0!==arguments[1]?arguments[1]:"This daily-js method"," is only supported as part of Daily's Prebuilt");throw console.error(t),new Error(t)}}function Fo(){if(Hi())throw new Error("This daily-js method is not currently supported in React Native")}function zo(){if(!Hi())throw new Error("This daily-js method is only supported in React Native")}function Uo(e){if(void 0===e)return!0;var t;if("string"==typeof e)t=e;else try{t=JSON.stringify(e),K(JSON.parse(t),e)||console.warn("The userData provided will be modified when serialized.")}catch(e){throw Error("userData must be serializable to JSON: ".concat(e))}if(t.length>4096)throw Error("userData is too large (".concat(t.length," characters). Maximum size suppported is ").concat(4096,"."));return!0}function Vo(e,t){for(var n=t.allowAllParticipantsKey,r=function(e){var t=["local"];return n||t.push("*"),e&&!t.includes(e)},i=function(e){return!!(void 0===e.layer||Number.isInteger(e.layer)&&e.layer>=0||"inherit"===e.layer)},a=function(e){return!!e&&!(e.video&&!i(e.video))&&!(e.screenVideo&&!i(e.screenVideo))},o=0,s=Object.entries(e);o<s.length;o++){var l=q(s[o],2),u=l[0],c=l[1];if(!r(u)||!a(c))return!1}return!0}function Bo(e){if("object"!==j(e))return!1;for(var t=0,n=Object.entries(e);t<n.length;t++){var r=q(n[t],2),i=r[0],a=r[1];switch(i){case"video":if("object"!==j(a))return!1;for(var o=0,s=Object.entries(a);o<s.length;o++){var l=q(s[o],2),u=l[0],c=l[1];switch(u){case"processor":if(!Wo(c))return!1;break;case"settings":if(!Jo(c))return!1;break;default:return!1}}break;case"audio":if("object"!==j(a))return!1;for(var d=0,f=Object.entries(a);d<f.length;d++){var p=q(f[d],2),h=p[0],v=p[1];switch(h){case"processor":if(!Ho(v))return!1;break;case"settings":if(!Jo(v))return!1;break;default:return!1}}break;default:return!1}}return!0}function qo(e,t,n){var r,i=[];e.video&&e.video.processor&&(Gi(null!==(r=null==t?void 0:t.useLegacyVideoProcessor)&&void 0!==r&&r)||(e.video.settings?delete e.video.processor:delete e.video,i.push("video"))),e.audio&&e.audio.processor&&(Ki()||(e.audio.settings?delete e.audio.processor:delete e.audio,i.push("audio"))),i.length>0&&console.error("Ignoring settings for browser- or platform-unsupported input processor(s): ".concat(i.join(", "))),e.audio&&e.audio.settings&&(e.audio.settings.customTrack?(n.audioTrack=e.audio.settings.customTrack,e.audio.settings={customTrack:Ri}):delete n.audioTrack),e.video&&e.video.settings&&(e.video.settings.customTrack?(n.videoTrack=e.video.settings.customTrack,e.video.settings={customTrack:Ri}):delete n.videoTrack)}function Ho(e){if(Hi())return console.warn("Video processing is not yet supported in React Native"),!1;var t=["type"];return!!e&&"object"===j(e)&&(Object.keys(e).filter((function(e){return!t.includes(e)})).forEach((function(t){console.warn("invalid key inputSettings -> audio -> processor : ".concat(t)),delete e[t]})),!!function(e){return"string"==typeof e&&(!!Object.values(zi).includes(e)||(console.error("inputSettings audio processor type invalid"),!1))}(e.type))}function Wo(e){if(Hi())return console.warn("Video processing is not yet supported in React Native"),!1;var t=["type","config"];if(!e)return!1;if("object"!==j(e))return!1;if(!function(e){return"string"==typeof e&&(!!Object.values(Fi).includes(e)||(console.error("inputSettings video processor type invalid"),!1))}(e.type))return!1;if(e.config){if("object"!==j(e.config))return!1;if(!function(e,t){var n=Object.keys(t);if(0===n.length)return!0;var r="invalid object in inputSettings -> video -> processor -> config";switch(e){case Fi.BGBLUR:return n.length>1||"strength"!==n[0]?(console.error(r),!1):!("number"!=typeof t.strength||t.strength<=0||t.strength>1||isNaN(t.strength))||(console.error("".concat(r,"; expected: {0 < strength <= 1}, got: ").concat(t.strength)),!1);case Fi.BGIMAGE:return!(void 0!==t.source&&!function(e){return"default"===e.source?(e.type="default",!0):e.source instanceof ArrayBuffer||(he(e.source)?(e.type="url",!!function(e){var t=new URL(e),n=t.pathname;if("data:"===t.protocol)try{var r=n.substring(n.indexOf(":")+1,n.indexOf(";")).split("/")[1];return Vi.includes(r)}catch(e){return console.error("failed to deduce blob content type",e),!1}var i=n.split(".").at(-1).toLowerCase().trim();return Vi.includes(i)}(e.source)||(console.error("invalid image type; supported types: [".concat(Vi.join(", "),"]")),!1)):(t=e.source,n=Number(t),isNaN(n)||!Number.isInteger(n)||n<=0||n>10?(console.error("invalid image selection; must be an int, > 0, <= ".concat(10)),!1):(e.type="daily-preselect",!0)));var t,n}(t));default:return!0}}(e.type,e.config))return!1}return Object.keys(e).filter((function(e){return!t.includes(e)})).forEach((function(t){console.warn("invalid key inputSettings -> video -> processor : ".concat(t)),delete e[t]})),!0}function Jo(e){return"object"===j(e)&&(!e.customTrack||e.customTrack instanceof MediaStreamTrack)}function $o(){var e=Object.values(Fi).join(" | "),t=Object.values(zi).join(" | ");return"inputSettings must be of the form: { video?: { processor?: { type: [ ".concat(e," ], config?: {} } }, audio?: { processor: {type: [ ").concat(t," ] } } }")}function Qo(e){var t=e.allowAllParticipantsKey;return"receiveSettings must be of the form { [<remote participant id> | ".concat("base").concat(t?' | "'.concat("*",'"'):"","]: ")+'{ [video: [{ layer: [<non-negative integer> | "inherit"] } | "inherit"]], [screenVideo: [{ layer: [<non-negative integer> | "inherit"] } | "inherit"]] }}}'}function Go(){return"customIntegrations should be an object of type ".concat(JSON.stringify(Eo),".")}function Ko(e){if(e&&"object"!==j(e)||Array.isArray(e))return console.error("customTrayButtons should be an Object of the type ".concat(JSON.stringify(Co),".")),!1;if(e)for(var t=0,n=Object.entries(e);t<n.length;t++)for(var r=q(n[t],1)[0],i=0,a=Object.entries(e[r]);i<a.length;i++){var o=q(a[i],2),s=o[0],l=o[1],u=Co.id[s];if(!u)return console.error("customTrayButton does not support key ".concat(s)),!1;switch(s){case"iconPath":case"iconPathDarkMode":if(!he(l))return console.error("customTrayButton ".concat(s," should be a url.")),!1;break;case"visualState":if(!["default","sidebar-open","active"].includes(l))return console.error("customTrayButton ".concat(s," should be ").concat(u,". Got: ").concat(l)),!1;break;default:if(j(l)!==u)return console.error("customTrayButton ".concat(s," should be a ").concat(u,".")),!1}}return!0}function Yo(e){if(!e||e&&"object"!==j(e)||Array.isArray(e))return console.error(Go()),!1;for(var t=function(e){return"".concat(e," should be ").concat(Eo.id[e])},n=function(e,t){return console.error("customIntegration ".concat(e,": ").concat(t))},r=0,i=Object.entries(e);r<i.length;r++){var a=q(i[r],1)[0];if(!("label"in e[a]))return n(a,"label is required"),!1;if(!("location"in e[a]))return n(a,"location is required"),!1;if(!("src"in e[a])&&!("srcdoc"in e[a]))return n(a,"src or srcdoc is required"),!1;for(var o=0,s=Object.entries(e[a]);o<s.length;o++){var l=q(s[o],2),u=l[0],c=l[1];switch(u){case"allow":case"csp":case"name":case"referrerPolicy":case"sandbox":if("string"!=typeof c)return n(a,t(u)),!1;break;case"iconURL":if(!he(c))return n(a,"".concat(u," should be a url")),!1;break;case"src":if("srcdoc"in e[a])return n(a,"cannot have both src and srcdoc"),!1;if(!he(c))return n(a,'src "'.concat(c,'" is not a valid URL')),!1;break;case"srcdoc":if("src"in e[a])return n(a,"cannot have both src and srcdoc"),!1;if("string"!=typeof c)return n(a,t(u)),!1;break;case"location":if(!["main","sidebar"].includes(c))return n(a,t(u)),!1;break;case"controlledBy":if("*"!==c&&"owners"!==c&&(!Array.isArray(c)||c.some((function(e){return"string"!=typeof e}))))return n(a,t(u)),!1;break;case"shared":if((!Array.isArray(c)||c.some((function(e){return"string"!=typeof e})))&&"owners"!==c&&"boolean"!=typeof c)return n(a,t(u)),!1;break;default:if(!Eo.id[u])return console.error("customIntegration does not support key ".concat(u)),!1}}}return!0}function Xo(e,t){if(void 0===t)return!1;switch(j(t)){case"string":return j(e)===t;case"object":if("object"!==j(e))return!1;for(var n in e)if(!Xo(e[n],t[n]))return!1;return!0;default:return!1}}function Zo(e,t){var n=e.sessionId,r=e.toEndPoint,i=e.callerId,a=e.useSipRefer;if(!n||!r)throw new Error("".concat(t,"() requires a sessionId and toEndPoint"));if("string"!=typeof n||"string"!=typeof r)throw new Error("Invalid paramater: sessionId and toEndPoint must be of type string");if(a&&!r.startsWith("sip:"))throw new Error('"toEndPoint" must be a "sip" address');
2if(!r.startsWith("sip:")&&!r.startsWith("+"))throw new Error("toEndPoint: ".concat(r,' must starts with either "sip:" or "+"'));if(i&&"string"!=typeof i)throw new Error("callerId must be of type string");if(i&&!r.startsWith("+"))throw new Error("callerId is only valid when transferring to a PSTN number")}function es(e){if("object"!==j(e))throw new Error('RemoteMediaPlayerSettings: must be "object" type');if(e.state&&!Object.values(Ui).includes(e.state))throw new Error("Invalid value for RemoteMediaPlayerSettings.state, valid values are: "+JSON.stringify(Ui));if(e.volume){if("number"!=typeof e.volume)throw new Error('RemoteMediaPlayerSettings.volume: must be "number" type');if(e.volume<0||e.volume>2)throw new Error("RemoteMediaPlayerSettings.volume: must be between 0.0 - 2.0")}}function ts(e,t,n){return!("number"!=typeof e||e<t||e>n)}function ns(e,t){return e&&!t&&delete e.data,e}var rs=!1;function is(e,t){rs||(console.warn("[DEPRECATED] atomFamily is deprecated and will be removed in v3. Please use the `jotai-family` package instead: https://github.com/jotaijs/jotai-family"),rs=!0);var n=null,r=new Map,i=new Set,a=function i(a){var l;if(void 0===t)l=r.get(a);else{var u,c=M(r);try{for(c.s();!(u=c.n()).done;){var d=o(u.value,2),f=d[0],p=d[1];if(t(f,a)){l=p;break}}}catch(v){c.e(v)}finally{c.f()}}if(void 0!==l){if(!(null==n?void 0:n(l[1],a)))return l[0];i.remove(a)}var h=e(a);return r.set(a,[h,Date.now()]),s("CREATE",a,h),h},s=function(e,t,n){var r,a=M(i);try{for(a.s();!(r=a.n()).done;){(0,r.value)({type:e,param:t,atom:n})}}catch(o){a.e(o)}finally{a.f()}};return a.unstable_listen=function(e){return i.add(e),function(){i.delete(e)}},a.getParams=function(){return r.keys()},a.remove=function(e){if(void 0===t){if(!r.has(e))return;var n=o(r.get(e),1)[0];r.delete(e),s("REMOVE",e,n)}else{var i,a=M(r);try{for(a.s();!(i=a.n()).done;){var l=o(i.value,2),u=l[0],c=o(l[1],1)[0];if(t(u,e)){r.delete(u),s("REMOVE",u,c);break}}}catch(d){a.e(d)}finally{a.f()}}},a.setShouldRemove=function(e){if(n=e){var t,i=M(r);try{for(i.s();!(t=i.n()).done;){var a=o(t.value,2),l=a[0],u=o(a[1],2),c=u[0],d=u[1];n(d,l)&&(r.delete(l),s("REMOVE",l,c))}}catch(f){i.e(f)}finally{i.f()}}},a}var as=function(e){return"function"===typeof(null==e?void 0:e.then)};!function(){var e,t,n,r,i,a=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){try{return window.localStorage}catch(O){return void("undefined"!==typeof window&&console.warn(O))}},o=arguments.length>1?arguments[1]:void 0,s={getItem:function(e,r){var i,s,l=function(e){if(t!==(e=e||"")){try{n=JSON.parse(e,null==o?void 0:o.reviver)}catch(O){return r}t=e}return n},u=null!=(s=null==(i=a())?void 0:i.getItem(e))?s:null;return as(u)?u.then(l):l(u)},setItem:function(e,t){var n;return null==(n=a())?void 0:n.setItem(e,JSON.stringify(t,null==o?void 0:o.replacer))},removeItem:function(e){var t;return null==(t=a())?void 0:t.removeItem(e)}};try{r=null==(e=a())?void 0:e.subscribe}catch(O){}!r&&"undefined"!==typeof window&&"function"===typeof window.addEventListener&&window.Storage&&(r=function(e,t){if(!(a()instanceof window.Storage))return function(){};var n=function(n){n.storageArea===a()&&n.key===e&&t(n.newValue)};return window.addEventListener("storage",n),function(){window.removeEventListener("storage",n)}}),r&&(s.subscribe=(i=r,function(e,t,n){return i(e,(function(e){var r;try{r=JSON.parse(e||"")}catch(O){r=n}t(r)}))}))}();function os(e){return"init"in e}function ss(e){return!!e.write}function ls(e){return"v"in e||"e"in e}function us(e){if("e"in e)throw e.e;if(!("v"in e))throw new Error("[Bug] atom state is not initialized");return e.v}function cs(e){return"function"===typeof(null==e?void 0:e.then)}function ds(e,t,n){if(!n.p.has(e)){n.p.add(e);var r=function(){return n.p.delete(e)};t.then(r,r)}}function fs(e,t,n){var r,i,a=new Set,o=M((null==(r=n.get(e))?void 0:r.t)||[]);try{for(o.s();!(i=o.n()).done;){var s=i.value;a.add(s)}}catch(d){o.e(d)}finally{o.f()}var l,u=M(t.p);try{for(u.s();!(l=u.n()).done;){var c=l.value;a.add(c)}}catch(d){u.e(d)}finally{u.f()}return a}var ps=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 t.read.apply(t,r)},hs=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 t.write.apply(t,r)},vs=function(e,t){var n;return null==(n=t.INTERNAL_onInit)?void 0:n.call(t,e)},ms=function(e,t,n){var r;return null==(r=t.onMount)?void 0:r.call(t,n)},gs=function(e,t){var n,r=Is(e),i=r[0],a=r[6],o=r[9];if(!t)throw new Error("Atom is undefined or null");var s=i.get(t);return s||(s={d:new Map,p:new Set,n:0},i.set(t,s),null==(n=a.i)||n.call(a,t),null==o||o(e,t)),s},ys=function(e){var t=Is(e),n=t[1],r=t[3],i=t[4],a=t[5],o=t[6],s=t[13],l=[],u=function(e){try{e()}catch(O){l.push(O)}},c=function(){o.f&&u(o.f);var t=new Set,l=t.add.bind(t);r.forEach((function(e){var t;return null==(t=n.get(e))?void 0:t.l.forEach(l)}
2)),r.clear(),a.forEach(l),a.clear(),i.forEach(l),i.clear(),t.forEach(u),r.size&&s(e)};do{c()}while(r.size||a.size||i.size);if(l.length)throw new AggregateError(l)},bs=function(e){for(var t=Is(e),n=t[1],r=t[2],i=t[3],a=t[11],s=t[14],l=t[17],u=[],c=new WeakSet,d=new WeakSet,f=Array.from(i);f.length;){var p=f[f.length-1],h=a(e,p);if(d.has(p))f.pop();else if(c.has(p)){if(r.get(p)===h.n)u.push([p,h]);else if(r.has(p))throw new Error("[Bug] invalidated atom exists");d.add(p),f.pop()}else{c.add(p);var v,m=M(fs(p,h,n));try{for(m.s();!(v=m.n()).done;){var g=v.value;c.has(g)||f.push(g)}}catch(x){m.e(x)}finally{m.f()}}}for(var y=u.length-1;y>=0;--y){var b,k=o(u[y],2),w=k[0],S=k[1],_=!1,C=M(S.d.keys());try{for(C.s();!(b=C.n()).done;){var E=b.value;if(E!==w&&i.has(E)){_=!0;break}}}catch(x){C.e(x)}finally{C.f()}_&&(r.set(w,S.n),s(e,w),l(e,w)),r.delete(w)}},ks=new WeakSet,ws=function(e,t){var n,r,i=Is(e),a=i[1],s=i[2],l=i[3],u=i[6],c=i[7],d=i[11],f=i[12],p=i[13],h=i[14],v=i[16],m=i[17],g=i[20],y=i[26],b=d(e,t);if(ls(b)){if(a.has(t)&&s.get(t)!==b.n)return b;var k,w=!1,S=M(b.d);try{for(S.s();!(k=S.n()).done;){var _=o(k.value,2),C=_[0],E=_[1];if(h(e,C).n!==E){w=!0;break}}}catch(z){S.e(z)}finally{S.f()}if(!w)return b}var x,T,O=!0,P=new Set(b.d.keys()),j=new Map,A=function(){var e,t=M(P);try{for(t.s();!(e=t.n()).done;){var n=e.value;j.has(n)||b.d.delete(n)}}catch(z){t.e(z)}finally{t.f()}},L=function(){if(a.has(t)){var n=!l.size;m(e,t),n&&(p(e),f(e))}},I={get signal(){return x||(x=new AbortController),x.signal},get setSelf(){return console.warn("[DEPRECATED] setSelf is deprecated and will be removed in v3."),ss(t)||console.warn("setSelf function cannot be used with read-only atom"),!T&&ss(t)&&(T=function(){if(O&&console.warn("setSelf function cannot be called in sync"),!O)try{for(var n=arguments.length,r=new Array(n),i=0;i<n;i++)r[i]=arguments[i];return v.apply(void 0,[e,t].concat(r))}finally{p(e),f(e)}}),T}},N=b.n,D=s.get(t)===N;try{ks.delete(e);var R=c(e,t,(function(n){var r;if(n===t){var i=d(e,n);if(!ls(i)){if(!os(n))throw new Error("no atom init");g(e,n,n.init)}return us(i)}var o=h(e,n);try{return us(o)}finally{j.set(n,o.n),b.d.set(n,o.n),cs(b.v)&&ds(t,b.v,o),a.has(t)&&(null==(r=a.get(n))||r.t.add(t)),O||L()}}),I);if(ks.has(e)&&console.warn("Detected store mutation during atom read. This is not supported."),g(e,t,R),cs(R)){y(e,R,(function(){return null==x?void 0:x.abort()}));var F=function(){A(),L()};R.then(F,F)}else A();return null==(n=u.r)||n.call(u,t),b}catch(U){return delete b.v,b.e=U,++b.n,b}finally{O=!1,b.n!==N&&D&&(s.set(t,b.n),l.add(t),null==(r=u.c)||r.call(u,t))}},Ss=function(e,t){for(var n=Is(e),r=n[1],i=n[2],a=n[11],o=[t];o.length;){var s,l=o.pop(),u=M(fs(l,a(e,l),r));try{for(u.s();!(s=u.n()).done;){var c=s.value,d=a(e,c);i.get(c)!==d.n&&(i.set(c,d.n),o.push(c))}}catch(f){u.e(f)}finally{u.f()}}},_s=function(e,t){var n=Is(e),r=n[3],i=n[6],a=n[8],o=n[11],s=n[12],l=n[13],u=n[14],c=n[15],d=n[16],f=n[17],p=n[20],h=!0;try{for(var v=arguments.length,m=new Array(v>2?v-2:0),g=2;g<v;g++)m[g-2]=arguments[g];return a.apply(void 0,[e,t,function(t){return us(u(e,t))},function(n){var a,u=o(e,n);try{for(var v=arguments.length,m=new Array(v>1?v-1:0),g=1;g<v;g++)m[g-1]=arguments[g];if(n===t){if(!os(n))throw new Error("atom not writable");ks.add(e);var y=u.n,b=m[0];return p(e,n,b),f(e,n),void(y!==u.n&&(r.add(n),c(e,n),null==(a=i.c)||a.call(i,n)))}return d.apply(void 0,[e,n].concat(m))}finally{h||(l(e),s(e))}}].concat(m))}finally{h=!1}},Cs=function(e,t){var n,r=Is(e),i=r[1],a=r[3],s=r[6],l=r[11],u=r[15],c=r[18],d=r[19],f=l(e,t),p=i.get(t);if(p){var h,v=M(f.d);try{for(v.s();!(h=v.n()).done;){var m=o(h.value,2),g=m[0],y=m[1];if(!p.d.has(g)){var b=l(e,g);c(e,g).t.add(t),p.d.add(g),y!==b.n&&(a.add(g),u(e,g),null==(n=s.c)||n.call(s,g))}}}catch(C){v.e(C)}finally{v.f()}var k,w=M(p.d);try{for(w.s();!(k=w.n()).done;){var S=k.value;if(!f.d.has(S)){p.d.delete(S);var _=d(e,S);null==_||_.t.delete(t)}}}catch(C){w.e(C)}finally{w.f()}}},Es=function(e,t){var n,r=Is(e),i=r[1],a=r[4],o=r[6],s=r[10],l=r[11],u=r[12],c=r[13],d=r[14],f=r[16],p=r[18],h=l(e,t),v=i.get(t);if(!v){d(e,t);var m,g=M(h.d.keys());try{for(g.s();!(m=g.n()).done;){var y=m.value;p(e,y).t.add(t)}}catch(b){g.e(b)}finally{g.f()}if(v={l:new Set,d:new Set(h.d.keys()),t:new Set},i.set(t,v),ss(t)){a.add((function(){var n=!0;try{var r=s(e,t,(function(){try{for(var r=arguments.length,i=new Array(r),a=0;a<r;a++)i[a]=arguments[a];return f.apply(void 0,[e,t].concat(i))}finally{n||(c(e),u(e))}}));r&&(v.u=function(){n=!0;try{r()}finally{n=!1}})}finally{n=!1}}))}null==(n=o.m)||n.call(o,t)}return v},xs=function(e,t){var n,r,i=Is(e),a=i[1],o=i[5],s=i[6],l=i[11],u=i[19],c=l(e,t),d=a.get(t);if(!d||d.l.size)return d;var f,p=!1,h=M(d.t);try{for(h.s();!(f=h.n()).done;){var v=f.value;if(null==(n=a.get(v))?void 0:n.d.has(t)){p=!0;break}}}catch(b){h.e(b)}finally{h.f()}if(p)return d;d.u&&o.add(d.u),d=void 0,a.delete(t);var m,g=M(c.d.keys());try{for(g.s();!(m=g.n()).done;){var y=u(e,m.value);null==y||y.t.delete(t)}}catch(b){g.e(b)}finally{g.f()}null==(r=s.u)||r.call(s,t)},Ts=function(e,t,n){var r=Is(e),i=r[11],a=r[27],o=i(e,t),s="v"in o,l=o.v;if(cs(n)){var u,c=M(o.d.keys());try{for(c.s();!(u=c.n()).done;){ds(t,n,i(e,u.value))}}catch(d){c.e(d)}finally{c.f()}}o.v=n,delete o.e,s&&Object.is(l,o.v)||(++o.n,cs(l)&&a(e,l))},Ms=function(e,t){return us((0,Is(e)[14])(e,t))}
2,Os=function(e,t){var n=Is(e),r=n[3],i=n[12],a=n[13],o=n[16],s=r.size;try{for(var l=arguments.length,u=new Array(l>2?l-2:0),c=2;c<l;c++)u[c-2]=arguments[c];return o.apply(void 0,[e,t].concat(u))}finally{r.size!==s&&(a(e),i(e))}},Ps=function(e,t,n){var r=Is(e),i=r[12],a=r[18],o=r[19],s=a(e,t).l;return s.add(n),i(e),function(){s.delete(n),o(e,t),i(e)}},js=function(e,t,n){var r=Is(e)[25],i=r.get(t);if(!i){i=new Set,r.set(t,i);var a=function(){return r.delete(t)};t.then(a,a)}i.add(n)},As=function(e,t){var n=Is(e)[25].get(t);null==n||n.forEach((function(e){return e()}))},Ls=new WeakMap,Is=function(e){var t=Ls.get(e);if(!t)throw new Error("Store must be created by buildStore to read its building blocks");return t};var Ns,Ds,Rs=0;function Fs(e,t){var n="atom".concat(++Rs),r={toString:function(){return this.debugLabel?n+":"+this.debugLabel:n}};return"function"===typeof e?r.read=e:(r.init=e,r.read=zs,r.write=Us),t&&(r.write=t),r}function zs(e){return e(this)}function Us(e,t,n){return t(this,"function"===typeof n?n(e(this)):n)}function Vs(){return Ns?Ns():function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r={get:function(e){return(0,Is(r)[21])(r,e)},set:function(e){for(var t=Is(r)[22],n=arguments.length,i=new Array(n>1?n-1:0),a=1;a<n;a++)i[a-1]=arguments[a];return t.apply(void 0,[r,e].concat(i))},sub:function(e,t){return(0,Is(r)[23])(r,e,t)}},i=[new WeakMap,new WeakMap,new WeakMap,new Set,new Set,new Set,{},ps,hs,vs,ms,gs,ys,bs,ws,Ss,_s,Cs,Es,xs,Ts,Ms,Os,Ps,void 0,new WeakMap,js,As].map((function(e,n){return t[n]||e}));return Ls.set(r,Object.freeze(i)),r}()}var Bs=(0,u.createContext)(void 0);function qs(e){var t=(0,u.useContext)(Bs);return(null==e?void 0:e.store)||t||(Ds||(Ds=Vs(),globalThis.__JOTAI_DEFAULT_STORE__||(globalThis.__JOTAI_DEFAULT_STORE__=Ds),globalThis.__JOTAI_DEFAULT_STORE__!==Ds&&console.warn("Detected multiple Jotai instances. It may cause unexpected behavior with the default store. https://github.com/pmndrs/jotai/discussions/2044")),Ds)}function Hs(e){var t=e.children,n=e.store,r=(0,u.useRef)(null);return n?(0,u.createElement)(Bs.Provider,{value:n},t):(null===r.current&&(r.current=Vs()),(0,u.createElement)(Bs.Provider,{value:r.current},t))}var Ws=function(e){return"function"===typeof(null==e?void 0:e.then)},Js=function(e){e.status||(e.status="pending",e.then((function(t){e.status="fulfilled",e.value=t}),(function(t){e.status="rejected",e.reason=t})))},$s=u.use||function(e){if("pending"===e.status)throw e;if("fulfilled"===e.status)return e.value;throw"rejected"===e.status?e.reason:(Js(e),e)},Qs=new WeakMap,Gs=function(e,t,n){var r=function(e){var t=Is(e),n=t[24];return n?n(t):t}(e),i=r[26],a=Qs.get(t);return a||(a=new Promise((function(r,o){var s=t,l=function(e){return function(t){s===e&&r(t)}},u=function(e){return function(t){s===e&&o(t)}};t.then(l(t),u(t)),i(e,t,(function t(){try{var c=n();Ws(c)?(Qs.set(c,a),s=c,c.then(l(c),u(c)),i(e,c,t)):r(c)}catch(O){o(O)}}))})),Qs.set(t,a)),a};function Ks(e,t){var n=t||{},r=n.delay,i=n.unstable_promiseStatus,a=void 0===i?!u.use:i,s=qs(t),l=o((0,u.useReducer)((function(t){var n=s.get(e);return Object.is(t[0],n)&&t[1]===s&&t[2]===e?t:[n,s,e]}),void 0,(function(){return[s.get(e),s,e]})),2),c=o(l[0],3),d=c[0],f=c[1],p=c[2],h=l[1],v=d;if(f===s&&p===e||(h(),v=s.get(e)),(0,u.useEffect)((function(){var t=s.sub(e,(function(){if(a)try{var t=s.get(e);Ws(t)&&Js(Gs(s,t,(function(){return s.get(e)})))}catch(O){}"number"!==typeof r?h():setTimeout(h,r)}));return h(),t}),[s,e,r,a]),(0,u.useDebugValue)(v),Ws(v)){var m=Gs(s,v,(function(){return s.get(e)}));return a&&Js(m),$s(m)}return v}function Ys(e,t){var n=qs(t),r=(0,u.useCallback)((function(){if(!("write"in e))throw new Error("not writable atom");for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return n.set.apply(n,[e].concat(r))}),[n,e]);return r}function Xs(e,t){var n=(0,u.useMemo)((function(){return Fs(null,(function(t,n){for(var r=arguments.length,i=new Array(r>2?r-2:0),a=2;a<r;a++)i[a-2]=arguments[a];return e.apply(void 0,[t,n].concat(i))}))}),[e]);return Ys(n,t)}function Zs(e){return Zs="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zs(e)}var el=function(){return el=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},el.apply(this,arguments)};function tl(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"===typeof Object.getOwnPropertySymbols){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}
2function nl(e,t,n,r){return new(n||(n=Promise))((function(i,a){function o(e){try{l(r.next(e))}catch(O){a(O)}}function s(e){try{l(r.throw(e))}catch(O){a(O)}}function l(e){var t;e.done?i(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,s)}l((r=r.apply(e,t||[])).next())}))}function rl(e,t){var n,r,i,a,o={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return a={next:s(0),throw:s(1),return:s(2)},"function"===typeof Symbol&&(a[Symbol.iterator]=function(){return this}),a;function s(s){return function(l){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;a&&(a=0,s[0]&&(o=0)),o;)try{if(n=1,r&&(i=2&s[0]?r.return:s[0]?r.throw||((i=r.return)&&i.call(r),0):r.next)&&!(i=i.call(r,s[1])).done)return i;switch(r=0,i&&(s=[2&s[0],i.value]),s[0]){case 0:case 1:i=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,r=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!(i=(i=o.trys).length>0&&i[i.length-1])&&(6===s[0]||2===s[0])){o=0;continue}if(3===s[0]&&(!i||s[1]>i[0]&&s[1]<i[3])){o.label=s[1];break}if(6===s[0]&&o.label<i[1]){o.label=i[1],i=s;break}if(i&&o.label<i[2]){o.label=i[2],o.ops.push(s);break}i[2]&&o.ops.pop(),o.trys.pop();continue}s=t.call(e,o)}catch(O){s=[6,O],r=0}finally{n=i=0}if(5&s[0])throw s[1];return{value:s[0]?s[1]:void 0,done:!0}}([s,l])}}}function il(e){var t="function"===typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"===typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function al(e,t){var n="function"===typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,i,a=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(r=a.next()).done;)o.push(r.value)}catch(s){i={error:s}}finally{try{r&&!r.done&&(n=a.return)&&n.call(a)}finally{if(i)throw i.error}}return o}function ol(e,t,n){if(n||2===arguments.length)for(var r,i=0,a=t.length;i<a;i++)!r&&i in t||(r||(r=Array.prototype.slice.call(t,0,i)),r[i]=t[i]);return e.concat(r||Array.prototype.slice.call(t))}"function"===typeof SuppressedError&&SuppressedError;var sl=(0,u.createContext)(null),ll=function(){var e=(0,u.useContext)(sl);return(0,u.useDebugValue)(e),e},ul=(0,u.createContext)({on:function(){},off:function(){}}),cl=-1,dl=function(){return cl--},fl=1,pl=function(){return fl++},hl=function(e,t,n){void 0===n&&(n=!1);var r=(0,u.useContext)(ul),i=r.off,a=r.on,o=al((0,u.useState)(!1),2),s=o[0],l=o[1],c=(0,u.useRef)(0),d=(0,u.useMemo)((function(){return n?dl():pl()}),[n]);(0,u.useEffect)((function(){if(e&&!s){if(c.current>1e5)return console.error("useDailyEvent called with potentially non-memoized event callback or due to too many re-renders.\n Memoize using useCallback to avoid re-render loop or reduce the amount of state transitions the callback depends on.\n Passed callback for '".concat(e,"' event is NOT registered."),t),void l(!0);c.current++;var n=setTimeout((function(){c.current=0}),50);return a(e,t,d),function(){clearTimeout(n),i(e,d)}}}),[t,e,d,s,i,a]),(0,u.useDebugValue)({event:e,eventId:d,isBlocked:s,callback:t})};function vl(e,t){var n,r;if(e===t)return!0;if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return!1;for(var i=0;i<e.length;i++)if(!vl(e[i],t[i]))return!1;return!0}if(MediaStream&&e instanceof MediaStream&&t instanceof MediaStream)return e.id===t.id&&e.active===t.active&&e.getTracks().length===t.getTracks().length&&e.getTracks().every((function(e,n){return vl(e,t.getTracks()[n])}));if(MediaStreamTrack&&e instanceof MediaStreamTrack&&t instanceof MediaStreamTrack)return e.id===t.id&&e.kind===t.kind&&e.readyState===t.readyState;if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(e instanceof RegExp&&t instanceof RegExp)return e.source===t.source&&e.flags===t.flags;if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;var a=Array.from(e).sort(),o=Array.from(t).sort();return a.every((function(e,t){return vl(e,o[t])}))}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;try{for(var s=il(e.entries()),l=s.next();!l.done;l=s.next()){var u=al(l.value,2),c=u[0],d=u[1];
2if(!t.has(c)||!vl(d,t.get(c)))return!1}}catch(h){n={error:h}}finally{try{l&&!l.done&&(r=s.return)&&r.call(s)}finally{if(n)throw n.error}}return!0}if("object"!==Zs(e)||null===e||"object"!==Zs(t)||null===t)return!1;var f=Object.keys(e),p=Object.keys(t);if(f.length!==p.length)return!1;for(i=0;i<f.length;i++){c=f[i];if(!Object.prototype.hasOwnProperty.call(t,c)||!vl(e[c],t[c]))return!1}return!0}function ml(e,t){if(e===t)return!0;if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++){var r=e[n],i=t[n],a=null!==r&&"object"===Zs(r),o=null!==i&&"object"===Zs(i);if(a||o){if(!vl(r,i))return!1}else if(r!==i)return!1}return!0}function gl(e){return"daily-react-"+e}function yl(e){var t=new Map,n=new Map;return function(r){if(!t.has(r)){var i=Fs((function(t){var i=e.get(r)(t),a=n.get(r);return null!=a&&e.equals(i,a)?a:(n.set(r,i),i)}));t.set(r,i)}return t.get(r)}}var bl,kl,wl="::",Sl=function(e,t){return e+wl+t},_l=function(e,t){return El(Sl(e,t))},Cl=is((function(e){var t=Fs([]);return t.debugLabel=gl("participant-property-paths-".concat(e)),t})),El=is((function(e){var t=Fs(null);return t.debugLabel=gl("participant-property-".concat(e)),t})),xl=yl({equals:ml,get:function(e){return function(t){var n=al(e.split(wl),2),r=n[0];return n[1].split(";").map((function(e){return t(_l(r,e))}))}}}),Tl=function(e,t){var n,r=Ks(Array.isArray(t)?xl(function(e,t){return e+wl+t.join(";")}(e,t)):El(Sl(e,t)));return(0,u.useDebugValue)(Array.isArray(t)?t.reduce((function(e,t,n){return e[t]=r[n],e}),{}):((n={})[t]=r,n)),r},Ml="undefined"!==typeof globalThis?globalThis:"undefined"!==typeof window?window:"undefined"!==typeof n.g?n.g:"undefined"!==typeof self?self:{};function Ol(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Pl=function(){if(kl)return bl;kl=1;var e="Expected a function",t=NaN,n="[object Symbol]",r=/^\s+|\s+$/g,i=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,o=/^0o[0-7]+$/i,s=parseInt,l="object"==Zs(Ml)&&Ml&&Ml.Object===Object&&Ml,u="object"==("undefined"===typeof self?"undefined":Zs(self))&&self&&self.Object===Object&&self,c=l||u||Function("return this")(),d=Object.prototype.toString,f=Math.max,p=Math.min,h=function(){return c.Date.now()};function v(t,n,r){var i,a,o,s,l,u,c=0,d=!1,v=!1,g=!0;if("function"!=typeof t)throw new TypeError(e);function b(e){var n=i,r=a;return i=a=void 0,c=e,s=t.apply(r,n)}function k(e){var t=e-u;return void 0===u||t>=n||t<0||v&&e-c>=o}function w(){var e=h();if(k(e))return S(e);l=setTimeout(w,function(e){var t=n-(e-u);return v?p(t,o-(e-c)):t}(e))}function S(e){return l=void 0,g&&i?b(e):(i=a=void 0,s)}function _(){var e=h(),t=k(e);if(i=arguments,a=this,u=e,t){if(void 0===l)return function(e){return c=e,l=setTimeout(w,n),d?b(e):s}(u);if(v)return l=setTimeout(w,n),b(u)}return void 0===l&&(l=setTimeout(w,n)),s}return n=y(n)||0,m(r)&&(d=!!r.leading,o=(v="maxWait"in r)?f(y(r.maxWait)||0,n):o,g="trailing"in r?!!r.trailing:g),_.cancel=function(){void 0!==l&&clearTimeout(l),c=0,i=u=a=l=void 0},_.flush=function(){return void 0===l?s:S(h())},_}function m(e){var t=Zs(e);return!!e&&("object"==t||"function"==t)}function g(e){return"symbol"==Zs(e)||function(e){return!!e&&"object"==Zs(e)}(e)&&d.call(e)==n}function y(e){if("number"==typeof e)return e;if(g(e))return t;if(m(e)){var n="function"==typeof e.valueOf?e.valueOf():e;e=m(n)?n+"":n}if("string"!=typeof e)return 0===e?e:+e;e=e.replace(r,"");var l=a.test(e);return l||o.test(e)?s(e.slice(2),l?2:8):i.test(e)?t:+e}return bl=function(t,n,r){var i=!0,a=!0;if("function"!=typeof t)throw new TypeError(e);return m(r)&&(i="leading"in r?!!r.leading:i,a="trailing"in r?!!r.trailing:a),v(t,n,{leading:i,maxWait:n,trailing:a})}}(),jl=Ol(Pl),Al=function(e,t,n,r){void 0===n&&(n=500),void 0===r&&(r=!1);var i=(0,u.useContext)(ul),a=i.off,o=i.on,s=(0,u.useMemo)((function(){var t;return Array.isArray(e)?e.reduce((function(e,t){return e[t]=r?dl():pl(),e}),{}):((t={})[e]=r?dl():pl(),t)}),[e,r]),l=(0,u.useRef)([]);hl("call-instance-destroyed",(0,u.useCallback)((function(){l.current.length=0}),[]));var c=(0,u.useMemo)((function(){return jl((function(){0!==l.current.length&&(t(l.current),l.current.length=0)}),n,{trailing:!0})}),[t,n]);(0,u.useEffect)((function(){if(e){var t=function(e){l.current.push(e),c()};return Array.isArray(e)?e.forEach((function(e){return o(e,t,s[e])})):o(e,t,s[e]),function(){Array.isArray(e)?e.forEach((function(e){return a(e,s[e])})):a(e,s[e])}}}),[c,e,s,a,o]),(0,u.useDebugValue)({event:e,eventId:s})},Ll=function(e,t,n){if(void 0===t&&(t=""),void 0===n&&(n=new Set),"object"!==Zs(e)||null===e||n.has(e))return[t];n.add(e);var r=[];for(var i in e)if(Object.prototype.hasOwnProperty.call(e,i)){var a=t?"".concat(t,".").concat(i):i;r.push.apply(r,ol([a],al(Ll(e[i],a,n)),!1))}return n.delete(e),r},Il=function(e){return Ll(e)},Nl=function(e,t){return t.map((function(t){return function(e,t){return String(t).split(".").filter((function(e){return e.length})).reduce((function(e,t){return e&&e[t]}),e)}(e,t)}))},Dl=Fs(null);Dl.debugLabel=gl("active-id");var Rl=Fs("");Rl.debugLabel=gl("local-id");var Fl=Fs(null);Fl.debugLabel=gl("local-join-date");var zl=Fs([]);
2zl.debugLabel=gl("participant-ids");var Ul=is((function(e){var t=Fs(null);return t.debugLabel=gl("participant-".concat(e)),t})),Vl=Fs([]);Vl.debugLabel=gl("waiting-participants");var Bl=is((function(e){var t=Fs({awaitingAccess:{level:"full"},id:e,name:""});return t.debugLabel=gl("waiting-participant-".concat(e)),t})),ql=(yl({equals:ml,get:function(){return function(e){return e(Vl).map((function(t){return e(Bl(t))}))}}}),function(e){var t=e.children,n=ll(),r=al((0,u.useState)(!1),2),i=r[0],a=r[1],o=Xs((0,u.useCallback)((function(e,t,n){t(Rl,n.local.session_id);var r=Object.values(n),i=r.map((function(e){return e.session_id}));t(zl,i),r.forEach((function(e){t(Ul(e.session_id),e);var n=Il(e);t(Cl(e.session_id),n),n.forEach((function(n){var r=al(Nl(e,[n]),1)[0];t(_l(e.session_id,n),r)}))})),a(!0)}),[]));(0,u.useEffect)((function(){if(n&&!i){var e=setInterval((function(){var t=n.participants();"local"in t&&(o(t),clearInterval(e))}),100);return function(){clearInterval(e)}}}),[n,i,o]);var s=(0,u.useCallback)((function(){if(n){var e=null===n||void 0===n?void 0:n.participants();e.local&&o(e)}}),[n,o]);hl("started-camera",s,!0),hl("access-state-updated",s,!0),hl("joining-meeting",Xs((0,u.useCallback)((function(e,t){t(Fl,new Date),s()}),[s])),!0),hl("joined-meeting",(0,u.useCallback)((function(e){o(e.participants)}),[o]),!0);var l=Xs((0,u.useCallback)((function(e,t){t(Rl,""),t(Dl,null),e(zl).forEach((function(e){return Ul.remove(e)})),t(zl,[])}),[]));return hl("call-instance-destroyed",l,!0),hl("left-meeting",l,!0),Al(["active-speaker-change","participant-joined","participant-updated","participant-left"],Xs((0,u.useCallback)((function(e,t,n){n.length&&n.forEach((function(n){switch(n.action){case"active-speaker-change":t(Dl,n.activeSpeaker.peerId),t(Ul(n.activeSpeaker.peerId),(function(e){return e?el(el({},e),{last_active:new Date}):null}));break;case"participant-joined":t(zl,(function(e){return e.includes(n.participant.session_id)?e:ol(ol([],al(e),!1),[n.participant.session_id],!1)})),t(Ul(n.participant.session_id),n.participant);var r=Il(n.participant);t(Cl(n.participant.session_id),r),r.forEach((function(e){var r=al(Nl(n.participant,[e]),1)[0];t(_l(n.participant.session_id,e),r)}));break;case"participant-updated":t(Ul(n.participant.session_id),n.participant),n.participant.local&&t(Rl,n.participant.session_id);r=Il(n.participant);var i=e(Cl(n.participant.session_id));(r.length!==i.length||r.some((function(e){return!i.includes(e)})))&&t(Cl(n.participant.session_id),r);var a=new Set(i),o=Nl(n.participant,r);r.forEach((function(e,r){var i=o[r];a.delete(e),t(_l(n.participant.session_id,e),(function(e){return vl(e,i)?e:i}))})),a.forEach((function(e){t(_l(n.participant.session_id,e),null)}));break;case"participant-left":t(zl,(function(e){return e.includes(n.participant.session_id)?e.filter((function(e){return e!==n.participant.session_id})):e})),Ul.remove(n.participant.session_id),e(Cl(n.participant.session_id)).forEach((function(e){El.remove(Sl(n.participant.session_id,e))})),Cl.remove(n.participant.session_id)}}))}),[])),100,!0),Al(["waiting-participant-added","waiting-participant-updated","waiting-participant-removed"],Xs((0,u.useCallback)((function(e,t,n){n.forEach((function(e){switch(e.action){case"waiting-participant-added":t(Vl,(function(t){return t.includes(e.participant.id)?t:ol(ol([],al(t),!1),[e.participant.id],!1)})),t(Bl(e.participant.id),e.participant);break;case"waiting-participant-updated":t(Bl(e.participant.id),e.participant);break;case"waiting-participant-removed":t(Vl,(function(t){return t.filter((function(t){return t!==e.participant.id}))})),Bl.remove(e.participant.id)}}))}),[])),100,!0),u.createElement(u.Fragment,null,t)}),Hl=function(){var e=Ks(Rl);return(0,u.useDebugValue)(e),e},Wl=function(){return!0},Jl=function(e){return["blocked","off"].includes(e)},$l=function(e,t){return"".concat(e).concat(";").concat(t)},Ql=yl({equals:vl,get:function(e){return function(t){var n=al(e.split(";"),2),r=n[0],i=n[1];return t(zl).filter((function(e){switch(r){case"local":case"owner":case"record":return t(_l(e,r));case"remote":return!t(_l(e,"local"));case"screen":var n=t(_l(e,"tracks.screenAudio.state")),i=t(_l(e,"tracks.screenVideo.state"));return!Jl(n)||!Jl(i);default:return!0}})).sort((function(e,n){switch(i){case"joined_at":case"session_id":case"user_id":case"user_name":var r=t(_l(e,i)),a=t(_l(n,i));if(void 0!==r||void 0!==a){if(void 0===r)return-1;if(void 0===a)return 1;if(r>a)return 1;if(r<a)return-1}return 0;default:return 0}}))}}}),Gl=function(e){var t=void 0===e?{}:e,n=t.filter,r=t.onActiveSpeakerChange,i=t.onParticipantJoined,a=t.onParticipantLeft,o=t.onParticipantUpdated,s=t.sort,l=Ks(Ql($l("string"===typeof n?n:null,"
2string"===typeof s?s:null))),c="function"===typeof n||"function"===typeof s,d=(0,u.useCallback)((function(e){return"function"!==typeof n&&"function"!==typeof s?[]:l.map((function(t){return e(Ul(t))})).filter((function(e){return Boolean(e)})).filter("function"===typeof n?n:function(){return!0}).sort("function"===typeof s?s:function(){return 0}).map((function(e){return e.session_id})).filter(Boolean)}),[n,l,s]),f=al((0,u.useState)([]),2),p=f[0],h=f[1],v=Xs((0,u.useCallback)((function(e){if(c){var t=d(e);vl(t,p)||h(t)}}),[p,d,c]));(0,u.useEffect)((function(){v()}),[v]),Al(["participant-joined","participant-updated","active-speaker-change","participant-left"],(0,u.useCallback)((function(e){e.length&&(e.forEach((function(e){switch(e.action){case"participant-joined":null===i||void 0===i||i(e);break;case"participant-updated":null===o||void 0===o||o(e);break;case"active-speaker-change":null===r||void 0===r||r(e);break;case"participant-left":null===a||void 0===a||a(e)}})),v())}),[v,r,i,a,o]));var m="function"===typeof n||"function"===typeof s?p:l;return(0,u.useDebugValue)(m),m},Kl=yl({equals:ml,get:function(){return function(e){return e(Ql($l("screen",null))).map((function(t){return{local:e(_l(t,"local")),screenAudio:e(_l(t,"tracks.screenAudio")),screenVideo:e(_l(t,"tracks.screenVideo")),screenId:"".concat(t,"-screen"),session_id:t}}))}}}),Yl=function(e){var t=void 0===e?{}:e,n=t.onError,r=t.onLocalScreenShareStarted,i=t.onLocalScreenShareStopped,a=ll(),o=(0,u.useCallback)((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];null===a||void 0===a||a.startScreenShare.apply(a,ol([],al(e),!1))}),[a]),s=(0,u.useCallback)((function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];null===a||void 0===a||a.stopScreenShare.apply(a,ol([],al(e),!1))}),[a]);hl("local-screen-share-started",(0,u.useCallback)((function(){return null===r||void 0===r?void 0:r()}),[r])),hl("local-screen-share-stopped",(0,u.useCallback)((function(){return null===i||void 0===i?void 0:i()}),[i])),hl("nonfatal-error",(0,u.useCallback)((function(e){"screen-share-error"===e.type&&(null===n||void 0===n||n(e))}),[n]));var l=Ks(Kl(void 0)),c={isSharingScreen:l.some((function(e){return e.local})),screens:l,startScreenShare:o,stopScreenShare:s};return(0,u.useDebugValue)(c),c},Xl=function(e,t){void 0===t&&(t="video");var n=Tl(e,"tracks.".concat(t)),r=n?el(el({},n),{isOff:Jl(n.state)}):{isOff:!0,persistentTrack:void 0,state:"off",subscribed:!1};return(0,u.useDebugValue)(r),r};function Zl(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return(0,u.useCallback)((function(t){for(var n=0;n<e.length;n++){var r=e[n];"function"===typeof r?r(t):r&&"object"===Zs(r)&&(r.current=t)}}),e)}var eu=(0,u.memo)((0,u.forwardRef)((function(e,t){var n=e.onPlayFailed,r=e.sessionId,i=e.type,a=void 0===i?"audio":i,o=tl(e,["onPlayFailed","sessionId","type"]),s=(0,u.useRef)(null),l=Xl(r,a),c=Zl(s,t),d=null===l||void 0===l?void 0:l.subscribed;return(0,u.useEffect)((function(){var e=s.current;if(e&&(null===l||void 0===l?void 0:l.persistentTrack)){var t=function(){e.play().catch((function(t){null===n||void 0===n||n({sessionId:r,target:e,type:a,message:t.message,name:t.name})}))};return MediaStream?(e.addEventListener("canplay",t),e.srcObject=new MediaStream([null===l||void 0===l?void 0:l.persistentTrack]),function(){null===e||void 0===e||e.removeEventListener("canplay",t)}):(console.warn("MediaStream API not available. Can't setup ".concat(a," for ").concat(r)),void(null===n||void 0===n||n({sessionId:r,target:e,type:a,message:"MediaStream API not available",name:"MediaStream API not available"})))}}),[null===l||void 0===l?void 0:l.persistentTrack,n,r,a]),hl("participant-left",(0,u.useCallback)((function(e){var t=s.current;e.participant.session_id===r&&t&&(t.srcObject=null)}),[r])),u.createElement("audio",el({autoPlay:!0,ref:c},o,{"data-session-id":r,"data-audio-type":a,"data-subscribed":d}))})));eu.displayName="DailyAudioTrack";var tu=(0,u.memo)((0,u.forwardRef)((function(e,t){var n=e.autoSubscribeActiveSpeaker,r=void 0!==n&&n,i=e.maxSpeakers,a=void 0===i?5:i,o=e.onPlayFailed,s=e.playLocalScreenAudio,l=void 0!==s&&s,c=ll(),d=al((0,u.useState)(new Array(a).fill("")),2),f=d[0],p=d[1],h=Yl().screens,v=Hl(),m=function(e){var t=void 0===e?{}:e,n=t.filter,r=void 0===n?Wl:n,i=t.ignoreLocal,a=void 0!==i&&i,o=Hl(),s=Ks(Dl),l=a&&s===o,c=!(null===r||void 0===r?void 0:r(s)),d=!l&&!c,f=al((0,u.useState)(d?s:null),2),p=f[0],h=f[1];return(0,u.useEffect)((function(){l||c||h(s)}),[c,l,s]),(0,u.useDebugValue)(p),p}({ignoreLocal:!0}),g=(0,u.useRef)(null);(0,u.useImperativeHandle)(t,(function(){return{getActiveSpeakerAudio:function(){var e,t;return null!==(t=null===(e=g.current)||void 0===e?void 0:e.querySelector('audio[data-se
2ssion-id="'.concat(m,'"][data-audio-type="audio"]')))&&void 0!==t?t:null},getAllAudio:function(){var e,t;return Array.from(null!==(t=null===(e=g.current)||void 0===e?void 0:e.querySelectorAll("audio"))&&void 0!==t?t:[])},getAudioBySessionId:function(e){var t,n;return null!==(n=null===(t=g.current)||void 0===t?void 0:t.querySelector('audio[data-session-id="'.concat(e,'"][data-audio-type="audio"]')))&&void 0!==n?n:null},getRmpAudio:function(){var e,t;return Array.from(null!==(t=null===(e=g.current)||void 0===e?void 0:e.querySelectorAll('audio[data-audio-type="rmpAudio"]'))&&void 0!==t?t:[])},getScreenAudio:function(){var e,t;return Array.from(null!==(t=null===(e=g.current)||void 0===e?void 0:e.querySelectorAll('audio[data-audio-type="screenAudio"]'))&&void 0!==t?t:[])},getRmpAudioBySessionId:function(e){var t,n;return null!==(n=null===(t=g.current)||void 0===t?void 0:t.querySelector('audio[data-session-id="'.concat(e,'"][data-audio-type="rmpAudio"]')))&&void 0!==n?n:null},getScreenAudioBySessionId:function(e){var t,n;return null!==(n=null===(t=g.current)||void 0===t?void 0:t.querySelector('audio[data-session-id="'.concat(e,'"][data-audio-type="screenAudio"]')))&&void 0!==n?n:null}}}),[m]);var y=Xs((0,u.useCallback)((function(e,t,n){return nl(void 0,void 0,void 0,(function(){var t,i,a;return rl(this,(function(o){if(t=Object.values(null!==(a=null===c||void 0===c?void 0:c.participants())&&void 0!==a?a:{}).filter((function(e){return!e.local&&Boolean(e.tracks.audio.subscribed)})),i=function(e){return t.some((function(t){return t.session_id===e}))},!i(n)){if(!c||c.isDestroyed()||!r||c.subscribeToTracksAutomatically())return[2];c.updateParticipant(n,{setSubscribedTracks:{audio:!0}})}return p((function(r){var a;if(r.includes(n))return r;var o=function(e){return!e||!i(e)};if(r.some(o)){var s=r.findIndex(o);return r[s]=n,ol([],al(r),!1)}var l=r.findIndex((function(e){return t.some((function(t){return t.session_id===e&&Jl(t.tracks.audio.state)}))}));if(l>=0)return r[l]=n,ol([],al(r),!1);var u=t.filter((function(e){return r.includes(e.session_id)&&e.session_id!==m})).sort((function(t,n){var r,i,a=null!==(r=e(_l(t.session_id,"last_active")))&&void 0!==r?r:new Date("1970-01-01"),o=null!==(i=e(_l(n.session_id,"last_active")))&&void 0!==i?i:new Date("1970-01-01");return a>o?1:a<o?-1:0}));if(!u.length){var c=r.findIndex((function(e){return e!==m}));return r[c]=n,ol([],al(r),!1)}var d=r.indexOf(null===(a=u[0])||void 0===a?void 0:a.session_id);return r[d]=n,ol([],al(r),!1)})),[2]}))}))}),[m,r,c])),b=(0,u.useCallback)((function(e){p((function(t){if(!t.includes(e))return t;var n=ol([],al(t),!1),r=n.indexOf(e);return n[r]="",n}))}),[]);Al(["active-speaker-change","track-started","participant-left"],(0,u.useCallback)((function(e){e.forEach((function(e){switch(e.action){case"active-speaker-change":if(e.activeSpeaker.peerId===v)return;y(e.activeSpeaker.peerId);break;case"track-started":"audio"===e.track.kind&&e.participant&&!e.participant.local&&y(e.participant.session_id);break;case"participant-left":b(e.participant.session_id)}}))}),[y,v,b]),200);var k=Gl({filter:(0,u.useCallback)((function(e){var t;return Boolean(null===(t=null===e||void 0===e?void 0:e.tracks)||void 0===t?void 0:t.rmpAudio)}),[])});return u.createElement("div",{ref:g},f.map((function(e,t){return u.createElement(eu,{key:"speaker-slot-".concat(t),onPlayFailed:o,sessionId:e,type:"audio"})})),h.filter((function(e){return!!l||!e.local})).map((function(e){return u.createElement(eu,{key:e.screenId,onPlayFailed:o,sessionId:e.session_id,type:"screenAudio"})})),k.map((function(e){return u.createElement(eu,{key:"".concat(e,"-rmp"),onPlayFailed:o,sessionId:e,type:"rmpAudio"})})))})));tu.displayName="DailyAudio";var nu=(0,u.forwardRef)((function(e,t){var n=e.automirror,r=e.fit,i=void 0===r?"contain":r,a=e.mirror,o=e.onResize,s=e.playableStyle,l=void 0===s?{}:s,c=e.sessionId,d=e.style,f=void 0===d?{}:d,p=e.type,h=void 0===p?"video":p,v=tl(e,["automirror","fit","mirror","onResize","playableStyle","sessionId","style","type"]),m=Hl()===c,g="screenVideo"===h,y=m&&!g,b=(0,u.useRef)(null),k=Zl(b,t),w=Xl(c,h),S=w.persistentTrack,_=y||g||!w.isOff,C=Tl(c,"tracks.".concat(h)),E=null===C||void 0===C?void 0:C.subscribed,x=(0,u.useMemo)((function(){if("boolean"===typeof a)return a;
2if(!n)return!1;if(!S)return y;var e=S.getSettings();return"facingMode"in e?y&&"user"===e.facingMode:y}),[n,y,a,S]);return(0,u.useEffect)((function(){var e=b.current;if(e){var t=function(){var t=e.play();void 0!==t&&t.then((function(){e.controls=!1})).catch((function(t){e.controls=!0,console.warn("Failed to play video",t)}))},n=function(){e.paused&&t()},r=function(){e.style.transform="scale(1)"},i=function(){e.style.transform="",setTimeout((function(){e.paused&&t()}),100)},a=function(){"hidden"!==document.visibilityState&&e.paused&&t()};return e.addEventListener("canplay",n),e.addEventListener("enterpictureinpicture",r),e.addEventListener("leavepictureinpicture",i),document.addEventListener("visibilitychange",a),function(){e.removeEventListener("canplay",n),e.removeEventListener("enterpictureinpicture",r),e.removeEventListener("leavepictureinpicture",i),document.removeEventListener("visibilitychange",a)}}}),[]),(0,u.useEffect)((function(){var e=b.current;if(e&&S){if(MediaStream)return e.srcObject=new MediaStream([S]),e.load(),function(){e.srcObject=null,e.load()};console.warn("MediaStream API not available. Can't setup ".concat(h," for ").concat(c))}}),[c,h,S,null===S||void 0===S?void 0:S.id]),(0,u.useEffect)((function(){var e,t=b.current;if(o&&t)return n(),t.addEventListener("loadedmetadata",n),t.addEventListener("resize",n),function(){e&&cancelAnimationFrame(e),t.removeEventListener("loadedmetadata",n),t.removeEventListener("resize",n)};function n(){e&&cancelAnimationFrame(e),e=requestAnimationFrame((function(){var e=b.current;if(e&&!document.hidden){var t=e.videoWidth,n=e.videoHeight;t&&n&&(null===o||void 0===o||o({aspectRatio:t/n,height:n,width:t}))}}))}}),[o]),u.createElement("video",el({autoPlay:!0,muted:!0,playsInline:!0,ref:k,"data-local":m,"data-mirrored":x||void 0,"data-playable":_||void 0,"data-session-id":c,"data-subscribed":E,"data-video-type":h,style:el(el({objectFit:i,transform:x?"scale(-1, 1)":""},f),_?l:{})},v))}));nu.displayName="DailyVideo";var ru=(0,u.createContext)({refreshDevices:function(){return Promise.resolve()}}),iu=Fs("idle");iu.debugLabel=gl("camera-state");var au=Fs("idle");au.debugLabel=gl("microphone-state");var ou=Fs([]);ou.debugLabel=gl("camera-devices");var su=Fs([]);su.debugLabel=gl("microphone-devices");var lu=Fs([]);lu.debugLabel=gl("speaker-devices");var uu=Fs(null);uu.debugLabel=gl("last-camera-error");var cu=function(e){var t=e.children,n=ll(),r=Xs((0,u.useCallback)((function(e,t){return nl(void 0,void 0,void 0,(function(){var e,r,i,a,o,s,l,u,c,d,f,p;return rl(this,(function(h){switch(h.label){case 0:if("undefined"===typeof(null===(f=null===navigator||void 0===navigator?void 0:navigator.mediaDevices)||void 0===f?void 0:f.getUserMedia)||"undefined"===typeof(null===(p=null===navigator||void 0===navigator?void 0:navigator.mediaDevices)||void 0===p?void 0:p.enumerateDevices))return t(iu,"not-supported"),t(au,"not-supported"),[2];if(!n)return[2];h.label=1;case 1:return h.trys.push([1,4,,5]),[4,n.enumerateDevices()];case 2:return e=h.sent().devices,r=e.filter((function(e){return"videoinput"===e.kind&&""!==e.deviceId})),i=e.filter((function(e){return"audioinput"===e.kind&&""!==e.deviceId})),a=e.filter((function(e){return"audiooutput"===e.kind&&""!==e.deviceId})),[4,n.getInputDevices()];case 3:return o=h.sent(),s=o.camera,l=o.mic,u=o.speaker,c=function(e,t,n){var r,i=n.find((function(e){return e.device.deviceId===t.deviceId})),a="deviceId"in e&&t.deviceId===e.deviceId,o=!("deviceId"in e)&&(null===i||void 0===i?void 0:i.selected);return{device:t,selected:a||Boolean(o),state:null!==(r=null===i||void 0===i?void 0:i.state)&&void 0!==r?r:"granted"}},d=function(e,t){return"default"===e.device.deviceId?-1:"default"===t.device.deviceId?1:e.device.label<t.device.label?-1:e.device.label>t.device.label?1:0},t(ou,(function(e){return r.filter(Boolean).map((function(t){return c(s,t,e)})).sort(d)})),t(su,(function(e){return i.filter(Boolean).map((function(t){return c(l,t,e)})).sort(d)}
2)),t(lu,(function(e){return a.filter(Boolean).map((function(t){return c(u,t,e)})).sort(d)})),[3,5];case 4:return h.sent(),t(iu,"not-supported"),t(au,"not-supported"),[3,5];case 5:return[2]}}))}))}),[n])),i=Xs((0,u.useCallback)((function(e,t){return nl(void 0,void 0,void 0,(function(){var i,a,o,s,l,u,c,d,f,p,h,v,m,g,y,b,k,w,S,_,C,E,x,T,M,O;return rl(this,(function(P){switch(P.label){case 0:if(!n)return[2];if(i=e(iu),a=e(au),!(o=n.participants()).local)return[2];if(s=o.local.tracks,l="prompt",u="prompt",!navigator.permissions)return[3,5];P.label=1;case 1:return P.trys.push([1,4,,5]),[4,navigator.permissions.query({name:"camera"})];case 2:return c=P.sent(),l=c.state,[4,navigator.permissions.query({name:"microphone"})];case 3:return d=P.sent(),u=d.state,[3,5];case 4:return P.sent(),[3,5];case 5:return f="prompt"===l&&["idle","pending"].includes(i)&&"interrupted"===s.video.state&&!s.video.persistentTrack,p=["idle","pending"].includes(i)&&!s.video.persistentTrack&&Boolean(null===(m=s.video.off)||void 0===m?void 0:m.byUser),h="prompt"===u&&["idle","pending"].includes(a)&&"interrupted"===s.audio.state&&!s.audio.persistentTrack,v=["idle","pending"].includes(a)&&!s.audio.persistentTrack&&Boolean(null===(g=s.audio.off)||void 0===g?void 0:g.byUser),(null===(b=null===(y=s.audio)||void 0===y?void 0:y.blocked)||void 0===b?void 0:b.byDeviceInUse)?(t(au,"in-use"),t(su,(function(e){return e.map((function(e){return e.selected?el(el({},e),{state:"in-use"}):e}))}))):(null===(w=null===(k=s.audio)||void 0===k?void 0:k.blocked)||void 0===w?void 0:w.byDeviceMissing)?t(au,"not-found"):(null===(_=null===(S=s.audio)||void 0===S?void 0:S.blocked)||void 0===_?void 0:_.byPermissions)||"denied"===u?t(au,"blocked"):h?t(au,"pending"):v?t(au,"idle"):(t(au,"granted"),t(su,(function(e){return e.map((function(e){return e.selected?el(el({},e),{state:"granted"}):e}))}))),(null===(E=null===(C=s.video)||void 0===C?void 0:C.blocked)||void 0===E?void 0:E.byDeviceInUse)?(t(iu,"in-use"),t(ou,(function(e){return e.map((function(e){return e.selected?el(el({},e),{state:"in-use"}):e}))}))):(null===(T=null===(x=s.video)||void 0===x?void 0:x.blocked)||void 0===T?void 0:T.byDeviceMissing)?t(iu,"not-found"):(null===(O=null===(M=s.video)||void 0===M?void 0:M.blocked)||void 0===O?void 0:O.byPermissions)||"denied"===l?t(iu,"blocked"):f?t(iu,"pending"):p?t(iu,"idle"):(t(iu,"granted"),t(ou,(function(e){return e.map((function(e){return e.selected?el(el({},e),{state:"granted"}):e}))}))),r(),[2]}}))}))}),[n,r]));return hl("participant-updated",(0,u.useCallback)((function(e){e.participant.local&&i()}),[i])),hl("available-devices-updated",r),hl("selected-devices-updated",r),hl("camera-error",Xs((0,u.useCallback)((function(e,t,n){var r,i,a,o,s,l,u;switch(t(uu,n.error),null===(r=n.error)||void 0===r?void 0:r.type){case"cam-in-use":t(iu,"in-use");break;case"mic-in-use":t(au,"in-use");break;case"cam-mic-in-use":t(iu,"in-use"),t(au,"in-use");break;case"not-found":(null===(i=n.error)||void 0===i?void 0:i.missingMedia.includes("video"))&&t(iu,"not-found"),(null===(a=n.error)||void 0===a?void 0:a.missingMedia.includes("audio"))&&t(au,"not-found");break;case"permissions":(null===(o=n.error)||void 0===o?void 0:o.blockedMedia.includes("video"))&&t(iu,"blocked"),(null===(s=n.error)||void 0===s?void 0:s.blockedMedia.includes("audio"))&&t(au,"blocked");break;case"constraints":"invalid"===(null===(l=n.error)||void 0===l?void 0:l.reason)?(t(iu,"constraints-invalid"),t(au,"constraints-invalid")):"none-specified"===(null===(u=n.error)||void 0===u?void 0:u.reason)&&(t(iu,"constraints-none-specified"),t(au,"constraints-none-specified"));break;case"undefined-mediadevices":t(iu,"undefined-mediadevices"),t(au,"undefined-mediadevices");break;default:t(iu,"unknown"),t(au,"unknown")}}),[]))),hl("started-camera",Xs((0,u.useCallback)((function(e,t){t(iu,"granted"),t(au,"granted"),i()}),[i]))),u.createElement(ru.Provider,{value:{refreshDevices:r}},t)},du=Fs({errorMsg:void 0,isLiveStreaming:!1,layout:void 0});du.debugLabel=gl("live-streaming");var fu=function(e){var t=e.children;return hl("live-streaming-started",Xs((0,u.useCallback)((function(e,t,n){t(du,{isLiveStreaming:!0,layout:null===n||void 0===n?void 0:n.layout})}),[]))),hl("live-streaming-stopped",Xs((0,u.useCallback)((function(e,t){t(du,(function(e){return el(el({},e),{isLiveStreaming:!1,layout:void 0})}))}),[]))),hl("live-streaming-error",Xs((0,u.useCallback)((function(e,t,n){t(du,(function(e){return el(el({},e),{errorMsg:n.errorMsg})}))}),[]))),hl("left-meeting",Xs((0,u.useCallback)((function(e,t){t(du,{errorMsg:void 0,isLiveStreaming:!1,layout:void 0})}),[]))),u.createElement(u.Fragment,null,t)},pu=Fs("new");pu.debugLabel=gl("meeting-state");var hu=Fs(null);hu.debugLabel=gl("meeting-error");var vu=Fs(null);
2vu.debugLabel=gl("non-fatal-error");var mu=Fs({data:void 0,topology:"none"});mu.debugLabel=gl("meeting-session-data");var gu=function(e){var t=e.children,n=ll(),r=Xs((0,u.useCallback)((function(e,t){if(n){var r=n.meetingState();return t(pu,r),r}}),[n]));hl("loading",r),hl("loaded",r),hl("joining-meeting",r),hl("joined-meeting",r),hl("left-meeting",r),hl("error",Xs((0,u.useCallback)((function(e,t,n){t(hu,n),r()}),[r]))),hl("nonfatal-error",Xs((0,u.useCallback)((function(e,t,n){t(vu,n)}),[])));var i=Xs((0,u.useCallback)((function(e,t){n&&t(mu,n.meetingSessionState())}),[n]));return hl("joined-meeting",i),hl("meeting-session-state-updated",Xs((0,u.useCallback)((function(e,t,n){t(mu,n.meetingSessionState)}),[]))),hl("left-meeting",Xs((0,u.useCallback)((function(e,t){t(mu,{data:void 0,topology:"none"})}),[]))),hl("call-instance-destroyed",Xs((0,u.useCallback)((function(e,t){t(pu,"new"),t(hu,null),t(vu,null),t(mu,{data:void 0,topology:"none"})}),[]))),u.createElement(u.Fragment,null,t)},yu=Fs("none");yu.debugLabel=gl("topology");var bu=Fs("unknown"),ku=Fs([]),wu=Fs(100);wu.debugLabel=gl("network-quality");var Su=Fs("good");Su.debugLabel=gl("network-threshold");var _u=function(e){var t=e.children,n=ll(),r=Ks(yu),i=Xs((0,u.useCallback)((function(e,t){return nl(void 0,void 0,void 0,(function(){var e;return rl(this,(function(r){switch(r.label){case 0:return n?[4,n.getNetworkTopology()]:[2];case 1:return(e=r.sent())&&"none"!==(null===e||void 0===e?void 0:e.topology)?(t(yu,e.topology),[2]):[2]}}))}))}),[n]));return hl("joined-meeting",i),hl("network-connection",Xs((0,u.useCallback)((function(e,t,n){if("connected"===n.event)"peer-to-peer"===n.type&&t(yu,"peer"),"sfu"===n.type&&t(yu,"sfu")}),[]))),hl("network-quality-change",Xs((0,u.useCallback)((function(e,t,n){t(bu,(function(e){return e!==n.networkState?n.networkState:e})),t(ku,(function(e){var t,r=null!==(t=n.networkStateReasons)&&void 0!==t?t:[];return ml(e,r)?e:r})),t(wu,(function(e){return e!==n.quality?n.quality:e})),t(Su,(function(e){return e!==n.threshold?n.threshold:e}))}),[]))),hl("left-meeting",Xs((0,u.useCallback)((function(e,t){t(yu,"none"),t(bu,"unknown"),t(ku,[]),t(wu,100),t(Su,"good")}),[]))),(0,u.useEffect)((function(){n&&"none"===r&&i()}),[n,i,r]),u.createElement(u.Fragment,null,t)},Cu=Fs({isLocalParticipantRecorded:!1,isRecording:!1});Cu.debugLabel=gl("recording-state");var Eu=function(e){var t=e.children,n=Hl(),r=Gl({filter:"record"}),i=Xs((0,u.useCallback)((function(e,t,n,r){var i=e(Cu),a={isLocalParticipantRecorded:i.isLocalParticipantRecorded,isRecording:i.isRecording,local:i.local,type:i.type},o={isLocalParticipantRecorded:"local"!==(null===a||void 0===a?void 0:a.type)&&(null===a||void 0===a?void 0:a.type)?a.isLocalParticipantRecorded:n,isRecording:"local"!==(null===a||void 0===a?void 0:a.type)&&(null===a||void 0===a?void 0:a.type)?a.isRecording:n,local:"local"!==(null===a||void 0===a?void 0:a.type)&&(null===a||void 0===a?void 0:a.type)||!n?null===a||void 0===a?void 0:a.local:r,type:n?"local":null===i||void 0===i?void 0:i.type};vl(a,o)||t(Cu,el(el({},a),o))}),[]));return(0,u.useEffect)((function(){var e=r.length>0,t=r.includes(n||"local");i(e,t)}),[n,i,r]),hl("recording-started",Xs((0,u.useCallback)((function(e,t,r){var i,a=!0;switch(r.type){case"cloud-beta":case"cloud":n&&"single-participant"===(null===(i=r.layout)||void 0===i?void 0:i.preset)&&r.layout.session_id!==n&&(a=!1)}t(Cu,{error:!1,isLocalParticipantRecorded:a,isRecording:!0,layout:null===r||void 0===r?void 0:r.layout,local:null===r||void 0===r?void 0:r.local,recordingId:null===r||void 0===r?void 0:r.recordingId,recordingStartedDate:new Date,startedBy:null===r||void 0===r?void 0:r.startedBy,type:null===r||void 0===r?void 0:r.type})}),[n]))),hl("recording-stopped",Xs((0,u.useCallback)((function(e,t){t(Cu,(function(e){return el(el({},e),{isLocalParticipantRecorded:!1,isRecording:!1})}
2))}),[]))),hl("recording-error",Xs((0,u.useCallback)((function(e,t){t(Cu,(function(e){return el(el({},e),{error:!0,isLocalParticipantRecorded:!1,isRecording:!1})}))}),[]))),hl("left-meeting",Xs((0,u.useCallback)((function(e,t){t(Cu,{isLocalParticipantRecorded:!1,isRecording:!1})}),[]))),u.createElement(u.Fragment,null,t)},xu=function(){var e=Ks(pu);return(0,u.useDebugValue)(e),e},Tu=Fs(null);Tu.debugLabel=gl("room-state");var Mu=function(e){var t=e.children,n=ll(),r=xu(),i=Xs((0,u.useCallback)((function(e,t){return nl(void 0,void 0,void 0,(function(){var e;return rl(this,(function(i){switch(i.label){case 0:return n&&"left-meeting"!==r?[4,n.room()]:[2];case 1:return(e=i.sent())&&"id"in e&&t(Tu,e),[2,e]}}))}))}),[n,r]));return hl("access-state-updated",i),hl("left-meeting",Xs((0,u.useCallback)((function(e,t){return function(){t(Tu,null)}}),[]))),u.createElement(u.Fragment,null,t)},Ou=Fs({isTranscribing:!1,model:"general",language:"en",transcriptions:[]});Ou.debugLabel=gl("transcription-state");var Pu,ju,Au=function(e){var t=e.children;return hl("transcription-started",Xs((0,u.useCallback)((function(e,t,n){t(Ou,{error:!1,transcriptionStartDate:new Date,isTranscribing:!0,transcriptions:[],endpointing:n.endpointing,extra:n.extra,includeRawResponse:n.includeRawResponse,instanceId:n.instanceId,language:n.language,model:n.model,profanity_filter:n.profanity_filter,punctuate:n.punctuate,redact:n.redact,startedBy:n.startedBy,tier:n.tier})}),[]))),hl("transcription-stopped",Xs((0,u.useCallback)((function(e,t,n){t(Ou,(function(e){return el(el({},e),{updatedBy:n.updatedBy,isTranscribing:!1})}))}),[]))),hl("transcription-error",Xs((0,u.useCallback)((function(e,t){t(Ou,(function(e){return el(el({},e),{error:!0,isTranscribing:!1})}))}),[]))),hl("left-meeting",Xs((0,u.useCallback)((function(e,t){t(Ou,(function(e){return el(el({},e),{isTranscribing:!1})}))}),[]))),hl("app-message",Xs((0,u.useCallback)((function(e,t,n){"transcription"===(null===n||void 0===n?void 0:n.fromId)&&t(Ou,(function(e){return el(el({},e),{isTranscribing:!0,transcriptions:ol(ol([],al(e.transcriptions),!1),[n.data],!1)})}))}),[]))),u.createElement(u.Fragment,null,t)},Lu={strictMode:!0},Iu=function(){return!0},Nu={options:Lu,shouldCreateInstance:Iu},Du=function(e,t){var n=void 0===t?Nu:t,r=n.parentElRef,i=n.options,a=void 0===i?Lu:i,o=n.shouldCreateInstance,s=void 0===o?Iu:o,l=al((0,u.useState)(null),2),c=l[0],d=l[1],f=(0,u.useRef)();return(0,u.useEffect)((function(){if(("callFrame"!==e||null!==(null===r||void 0===r?void 0:r.current))&&s()){var t=function(){setTimeout((function(){return d(null)}),0)},n=Mo.getCallInstance();if(!c&&n&&!n.isDestroyed())return n.once("call-instance-destroyed",t),void d(n);if(c)vl(f.current,a)||function(e){nl(this,void 0,void 0,(function(){return rl(this,(function(t){switch(t.label){case 0:return[4,e.destroy()];case 1:return t.sent(),[2]}}))}))}(c);else if(!n||n.isDestroyed())try{switch(e){case"callFrame":n=(null===r||void 0===r?void 0:r.current)?Mo.createFrame(r.current,el({},a)):Mo.createFrame(el({},a));break;case"callObject":n=Mo.createCallObject(el({},a))}f.current=a,d(n),n.once("call-instance-destroyed",t)}catch(O){if(console.error("Error creating call instance:",O),a.strictMode)throw O}}}),[c,a,r,s,e]),c},Ru=function(e){var t=e.children,n=e.jotaiStore,r=tl(e,["children","jotaiStore"]),i=(0,u.useRef)({}),a=(0,u.useCallback)((function(e){var t,n,r,a;if("action"in e){var o=e.action,s=Array.from(null!==(a=null===(r=i.current)||void 0===r?void 0:r[o])&&void 0!==a?a:[]),l=s.filter((function(e){return al(e,1)[0]<0})),u=s.filter((function(e){return al(e,1)[0]>0})),c=ol(ol([],al(l),!1),al(u),!1);try{for(var d=il(c),f=d.next();!f.done;f=d.next()){(0,al(f.value,2)[1])(e)}}catch(p){t={error:p}}finally{try{f&&!f.done&&(n=d.return)&&n.call(d)}finally{if(t)throw t.error}}}}),[]),o=(0,u.useCallback)((function(e){e&&Object.keys(i.current).forEach((function(t){e.off(t,a),e.isDestroyed()||e.on(t,a)}))}),[a]),s="callObject"in r?r.callObject:null,l=function(e){return Du("callObject",e)}({options:(0,u.useMemo)((function(){return"callObject"in r?{}:r}),[r]),shouldCreateInstance:(0,u.useCallback)((function(){return!("callObject"in r)}),[r])}),c=null!==s&&void 0!==s?s:l;(0,u.useEffect)((function(){c&&o(c)}),[c,o]);var d=(0,u.useCallback)((function(e,t,n){var r,o;i.current[e]||(i.current[e]=new Map,c&&(c.off(e,a),c.isDestroyed()||c.on(e,a))),(null===(r=i.current[e])||void 0===r?void 0:r.has(n))||null===(o=i.current[e])||void 0===o||o.set(n,t)}),[c,a]),f=(0,u.useCallback)((function(e,t){var n,r;null===(n=i.current[e])||void 0===n||n.delete(t),0===(null===(r=i.current[e])||void 0===r?void 0:r.size)&&(null===c||void 0===c||c.off(e,a),delete i.current[e])}),[c,a]);return u.createElement(Hs,{store:n},u.createElement(sl.Provider,{value:c},u.createElement(ul.Provider,{value:{on:d,off:f}},u.createElement(Mu,null,u.createElement(gu,null,u.createElement(_u,null,u.createElement(ql,null,u.createElement(Eu,null,u.createElement(fu,null,u.createElement(Au,null,u.createElement(cu,null,t)))))))))))},Fu=function(e){var t=(void 0===e?{}:e).onAppMessage,n=ll(),r=(0,u.useCallback)((function(e,t){void 0===t&&(t="*"),n&&n.sendAppMessage(e,t)}),[n]),i=(0,u.useCallback)((function(e){null===t||void 0===t||t(e,r)}),[t,r]);return hl("app-message",i),r},zu=("data:application/javascript;charset=utf8,".concat(encodeURIComponent("\n class AudioLevelProcessor extends AudioWorkletProcessor {\n volume;\n interval;\n nextFrame;\n \n constructor() {\n super();\n this.volume = 0;\n this.interval = 25;\n this.nextFrame = this.interval;\n }\n \n get intervalInFrames() {\n // sampleRate is globally defined in AudioWorklets.\n // See https://developer.mozilla.org/en-US/docs/Web/API/AudioWorkletGlobalScope\n // eslint-disable-next-line no-undef\n return (this.interval / 1000) * sampleRate;\n }\n \n process(inputList) {\n const firstInput = inputList[0];\n \n if (firstInput.length > 0) {\n const inputData = firstInput[0];\n let total = 0;\n \n for (let i = 0; i < inputData.length; ++i) {\n total += Math.abs(inputData[i]);\n }\n \n const rms = Math.sqrt(total / inputData.length);\n this.volume = Math.max(0, Math.min(1, rms));\n \n this.nextFrame -= inputData.length;\n if (this.nextFrame < 0) {\n this.nextFrame += this.intervalInFrames;\n this.port.postMessage({ volume: this.volume });\n }\n }\n \n return true;\n }\n }\n \n registerProcessor('audiolevel', AudioLevelProcessor); \n")),function(e){return Xl(e,"audio")});ju||(ju=1,Pu=function e(t,n){if(t===n)return!0;
2if(t&&n&&"object"==Zs(t)&&"object"==Zs(n)){if(t.constructor!==n.constructor)return!1;var r,i,a;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=(a=Object.keys(t)).length)!==Object.keys(n).length)return!1;for(i=r;0!==i--;)if(!Object.prototype.hasOwnProperty.call(n,a[i]))return!1;for(i=r;0!==i--;){var o=a[i];if(!e(t[o],n[o]))return!1}return!0}return t!==t&&n!==n});var Uu=Fs({state:"low",reason:"none"});Uu.debugLabel=gl("cpu-load");var Vu=function(){var e=ll(),t=Ks(iu),n=Ks(au),r=Ks(ou),i=Ks(su),a=Ks(lu),o=Ks(uu),s=(0,u.useContext)(ru).refreshDevices,l=(0,u.useCallback)((function(t){return nl(void 0,void 0,void 0,(function(){return rl(this,(function(n){switch(n.label){case 0:return[4,null===e||void 0===e?void 0:e.setInputDevicesAsync({audioDeviceId:null,videoDeviceId:t})];case 1:return n.sent(),[2]}}))}))}),[e]),c=(0,u.useCallback)((function(t){return nl(void 0,void 0,void 0,(function(){return rl(this,(function(n){switch(n.label){case 0:return[4,null===e||void 0===e?void 0:e.setInputDevicesAsync({audioDeviceId:t,videoDeviceId:null})];case 1:return n.sent(),[2]}}))}))}),[e]),d=(0,u.useCallback)((function(t){return nl(void 0,void 0,void 0,(function(){return rl(this,(function(n){switch(n.label){case 0:return[4,null===e||void 0===e?void 0:e.setOutputDeviceAsync({outputDeviceId:t})];case 1:return n.sent(),[2]}}))}))}),[e]),f=["blocked","in-use","not-found","constraints-invalid","constraints-none-specified","undefined-mediadevices","unknown"],p={cameraError:o,cameras:r,camState:t,currentCam:r.find((function(e){return e.selected})),currentMic:i.find((function(e){return e.selected})),currentSpeaker:a.find((function(e){return e.selected})),hasCamError:f.includes(t),hasMicError:f.includes(n),microphones:i,micState:n,refreshDevices:s,setCamera:l,setMicrophone:c,setSpeaker:d,speakers:a};return(0,u.useDebugValue)(p),p},Bu=Fs(null);
2Bu.debugLabel=gl("input-settings");var qu=function(e){var t=void 0===e?{}:e,n=t.onNetworkConnection,r=t.onNetworkQualityChange,i=ll(),a=Ks(yu),o=Ks(bu),s=Ks(ku),l=Ks(wu),c=Ks(Su);hl("network-connection",(0,u.useCallback)((function(e){null===n||void 0===n||n(e)}),[n])),hl("network-quality-change",(0,u.useCallback)((function(e){null===r||void 0===r||r(e)}),[r]));var d=(0,u.useCallback)((function(){return nl(void 0,void 0,void 0,(function(){var e;return rl(this,(function(t){switch(t.label){case 0:return[4,null===i||void 0===i?void 0:i.getNetworkStats()];case 1:return[2,null===(e=t.sent())||void 0===e?void 0:e.stats]}}))}))}),[i]),f={getStats:d,networkState:o,networkStateReasons:s,quality:l,threshold:c,topology:a};return(0,u.useDebugValue)(f),f},Hu=Fs({hidden:0,present:0});Hu.debugLabel=gl("participant-counts");var Wu=is((function(e){var t=Fs({},(function(t,n,r){n(Wu(e),r)}));return t.debugLabel=gl("participant-receive-settings-".concat(e)),t})),Ju=function(){var e=Ks(Tu);return(0,u.useDebugValue)(e),e},$u=Fs(null);$u.debugLabel=gl("send-settings");var Qu=function(e){return Xl(e,"video")};function Gu(){return(Gu=r(l().mark((function e(){var t,n,r,i,a,o;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=Math.round(Date.now()/1e3)+1800,n={properties:{exp:t}},i=(r={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_DAILY_API_KEY:"f9c0d433e504cf80a89035a6afc1f1261ea2f8bf182e8367095842d68ba1c25f"}.REACT_APP_ROOM_ENDPOINT&&"local"==={NODE_ENV:"production",PUBLIC_URL:"",WDS_SOCKET_HOST:void 0,WDS_SOCKET_PATH:void 0,WDS_SOCKET_PORT:void 0,FAST_REFRESH:!0,REACT_APP_DAILY_API_KEY:"f9c0d433e504cf80a89035a6afc1f1261ea2f8bf182e8367095842d68ba1c25f"}.REACT_APP_ROOM_ENDPOINT)?"https://api.daily.co/v1/rooms/":"".concat(window.location.origin,"/api/rooms"),a=r&&{headers:{"Content-Type":"application/json",Authorization:"Bearer ".concat("f9c0d433e504cf80a89035a6afc1f1261ea2f8bf182e8367095842d68ba1c25f")}},e.next=7,fetch(i,_({method:"POST",body:JSON.stringify(n)},a));case 7:return o=e.sent,e.abrupt("return",o.json());case 9:case"end":return e.stop()}}),e)})))).apply(this,arguments)}var Ku={createRoom:function(){return Gu.apply(this,arguments)}};var Yu=n(184);function Xu(e){var t=e.createCall,n=e.startHairCheck;return(0,Yu.jsxs)("div",{className:"home-screen",children:[(0,Yu.jsx)("h1",{children:"Daily React custom video application"}),(0,Yu.jsx)("p",{children:"Start the demo with a new unique room by clicking the button below."}),(0,Yu.jsx)("button",{onClick:function(){t().then((function(e){n(e)}))},type:"button",children:"Click to start a call"}),(0,Yu.jsx)("p",{className:"small",children:"Select \u201cAllow\u201d to use your camera and mic for this call if prompted"})]})}function Zu(e){var t=e.id,n=e.isLocal,r=Tl(t,"user_name");return(0,Yu.jsxs)("div",{className:"username",children:[r||t," ",n&&"(you)"]})}function ec(e){var t=e.id,n=e.isScreenShare,r=e.isLocal,i=e.isAlone,a=n?"tile-screenshare":"tile-video";return r&&(a+=" self-view",i&&(a+=" alone")),Qu(t).isOff&&(a+=" no-video"),(0,Yu.jsxs)("div",{className:a,children:[(0,Yu.jsx)(nu,{automirror:!0,sessionId:t,type:n?"screenVideo":"video"}),!n&&(0,Yu.jsx)(Zu,{id:t,isLocal:r})]})}var tc=function(){console.log("make sure to allow access to your microphone and camera in your browser's permissions"),window.location.reload()};function nc(){return(0,Yu.jsx)("div",{className:"call",children:(0,Yu.jsxs)("div",{className:"info-box get-user-media-error",children:[(0,Yu.jsx)("h1",{children:"Camera or mic blocked"}),(0,Yu.jsx)("button",{onClick:tc,type:"button",children:"Try again"}),(0,Yu.jsx)("p",{children:(0,Yu.jsx)("a",{href:"https://docs.daily.co/guides/how-daily-works/handling-device-permissions",target:"_blank",rel:"noreferrer",children:"Get help"})})]})})}function rc(){var e=Vu().hasCamError,t=Yl().screens,n=Gl({filter:"remote"}),r=Hl(),i=n.length<1||t.length<1;return e?(0,Yu.jsx)(nc,{}):(0,Yu.jsxs)("div",{className:t.length>0?"is-screenshare":"call",children:[r&&(0,Yu.jsx)(ec,{id:r,isLocal:!0,isAlone:i}),n.length>0||t.length>0?(0,Yu.jsxs)(Yu.Fragment,{children:[n.map((function(e){return(0,Yu.jsx)(ec,{id:e},e)})),t.map((function(e){return(0,Yu.jsx)(ec,{id:e.session_id,isScreenShare:!0},e.screenId)}))]}):(0,Yu.jsxs)("div",{className:"info-box",children:[(0,Yu.jsx)("h1",{children:"Waiting for others"}),(0,Yu.jsx)("p",{children:"Invite someone by sharing this link:"}),(0,Yu.jsx)("span",{className:"room-url",children:window.location.href})]})]})}function ic(){return(0,Yu.jsxs)("header",{children:[(0,Yu.jsxs)("div",{className:"header-section",children:[(0,Yu.jsx)("img",{src:"/images/logo.svg",alt:"Daily logo"}),(0,Yu.jsx)("span",{className:"title",children:"Custom video application demo with Daily React"})]}),(0,Yu.jsxs)("div",{className:"header-section",children:[(0,Yu.jsxs)("a",{className:"new-tab-link",href:"https://docs.daily.co/reference/daily-js",target:"_blank",rel:"noreferrer",children:[(0,Yu.jsx)("span",{children:"API docs"}),(0,Yu.jsx)("img",{src:"/images/newtab.svg",alt:"New tab"})]}),(0,Yu.jsx)("a",{className:"github-link",href:"https://github.com/daily-demos/custom-video-daily-react-hooks",target:"_blank",rel:"noreferrer",children:(0,Yu.jsx)("img",{src:"/images/github.svg",alt:"Github"})})]})]})}function ac(){var e,t,n,r,i=Ju(),a=qu(),o=Gl(),s=xu();return(0,Yu.jsxs)("section",{className:"meeting-information",children:[(0,Yu.jsx)("h1",{children:"Meeting information"}),(0,Yu.jsxs)("ul",{children:[(0,Yu.jsxs)("li",{children:["Meeting state: ",null!==s&&void 0!==s?s:"unknown"]}),(0,Yu.jsxs)("li",{children:["Meeting ID: ",null!==(e=null===i||void 0===i?void 0:i.id)&&void 0!==e?e:"unknown"]}),(0,Yu.jsxs)("li",{children:["Room name: ",null!==(t=null===i||void 0===i?void 0:i.name)&&void 0!==t?t:"unknown"]}),(0,Yu.jsxs)("li",{children:["Network status: ",null!==(n=null===a||void 0===a?void 0:a.threshold)&&void 0!==n?n:"unknown"]}),(0,Yu.jsxs)("li",{children:["Network topology: ",null!==(r=null===a||void 0===a?void 0:a.topology)&&void 0!==r?r:"unknown"]}
2),(0,Yu.jsxs)("li",{children:["Participant IDs: ",o.join(", ")]})]})]})}function oc(){return(0,Yu.jsx)("svg",{"aria-hidden":"true",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Yu.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M5 7.5C3.89543 7.5 3 8.39543 3 9.5V14.5C3 15.6046 3.89543 16.5 5 16.5H13C14.1046 16.5 15 15.6046 15 14.5V9.5C15 8.39543 14.1046 7.5 13 7.5H5ZM16.5 10.9491C16.5 10.6634 16.6221 10.3914 16.8356 10.2017L19.3356 7.97943C19.9805 7.40618 21 7.86399 21 8.72684V15.2732C21 16.136 19.9805 16.5938 19.3356 16.0206L16.8356 13.7983C16.6221 13.6086 16.5 13.3366 16.5 13.0509V10.9491Z",fill:"currentColor"})})}function sc(){return(0,Yu.jsxs)("svg",{"aria-hidden":"true",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Yu.jsx)("path",{d:"M20.5303 4.53033C20.8232 4.23744 20.8232 3.76256 20.5303 3.46967C20.2374 3.17678 19.7626 3.17678 19.4697 3.46967L14.6168 8.32252L14.6162 8.32164L6.43781 16.5H6.43934L3.46967 19.4697C3.17678 19.7626 3.17678 20.2374 3.46967 20.5303C3.76256 20.8232 4.23744 20.8232 4.53033 20.5303L8.56066 16.5H13C14.1046 16.5 15 15.6046 15 14.5V10.0607L20.5303 4.53033Z",fill:"#f63135"}),(0,Yu.jsx)("path",{d:"M13.2949 7.52159C13.1987 7.50737 13.1002 7.5 13 7.5H5C3.89543 7.5 3 8.39543 3 9.5V14.5C3 15.3978 3.59155 16.1574 4.40614 16.4104L13.2949 7.52159Z",fill:"#f63135"}),(0,Yu.jsx)("path",{d:"M16.5 10.9491C16.5 10.6634 16.6221 10.3914 16.8356 10.2017L19.3356 7.97943C19.9805 7.40618 21 7.86399 21 8.72684V15.2732C21 16.136 19.9805 16.5938 19.3356 16.0206L16.8356 13.7983C16.6221 13.6086 16.5 13.3366 16.5 13.0509V10.9491Z",fill:"#f63135"})]})}function lc(){return(0,Yu.jsx)("svg",{"aria-hidden":"true",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Yu.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 3C10.3431 3 9 4.34315 9 6V12C9 13.6569 10.3431 15 12 15C13.6569 15 15 13.6569 15 12V6C15 4.34315 13.6569 3 12 3ZM7.5 12C7.5 11.5858 7.16421 11.25 6.75 11.25C6.33579 11.25 6 11.5858 6 12C6 13.9175 6.62158 15.4436 7.73826 16.4858C8.67527 17.3603 9.90114 17.8386 11.25 17.9654V20.25C11.25 20.6642 11.5858 21 12 21C12.4142 21 12.75 20.6642 12.75 20.25V17.9654C14.0989 17.8386 15.3247 17.3603 16.2617 16.4858C17.3784 15.4436 18 13.9175 18 12C18 11.5858 17.6642 11.25 17.25 11.25C16.8358 11.25 16.5 11.5858 16.5 12C16.5 13.5825 15.9966 14.6814 15.2383 15.3892C14.4713 16.105 13.3583 16.5 12 16.5C10.6417 16.5 9.52867 16.105 8.76174 15.3892C8.00342 14.6814 7.5 13.5825 7.5 12Z",fill:"currentColor"})})}function uc(){return(0,Yu.jsxs)("svg",{"aria-hidden":"true",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Yu.jsx)("path",{d:"M12 3C13.5979 3 14.904 4.24928 14.9949 5.8244L9 11.8193V6C9 4.34315 10.3431 3 12 3Z",fill:"#f63135"}),(0,Yu.jsx)("path",{d:"M15 10.0607L20.5303 4.53033C20.8232 4.23744 20.8232 3.76256 20.5303 3.46967C20.2374 3.17678 19.7626 3.17678 19.4697 3.46967L3.46967 19.4697C3.17678 19.7626 3.17678 20.2374 3.46967 20.5303C3.76256 20.8232 4.23744 20.8232 4.53033 20.5303L8.19557 16.8651C9.05938 17.5005 10.1108 17.8583 11.25 17.9654V20.25C11.25 20.6642 11.5858 21 12 21C12.4142 21 12.75 20.6642 12.75 20.25V17.9654C14.0989 17.8386 15.3247 17.3603 16.2617 16.4858C17.3784 15.4436 18 13.9175 18 12C18 11.5858 17.6642 11.25 17.25 11.25C16.8358 11.25 16.5 11.5858 16.5 12C16.5 13.5825 15.9966 14.6814 15.2383 15.3892C14.4713 16.105 13.3583 16.5 12 16.5C10.919 16.5 9.9933 16.2498 9.27382 15.7868L10.476 14.5846C10.9227 14.8486 11.4436 15 12 15C13.6569 15 15 13.6569 15 12V10.0607Z",fill:"#f63135"}),(0,Yu.jsx)("path",{d:"M7.6111 13.2082C7.53881 12.8415 7.5 12.4394 7.5 12C7.5 11.5858 7.16421 11.25 6.75 11.25C6.33579 11.25 6 11.5858 6 12C6 12.8969 6.13599 13.7082 6.39503 14.4243L7.6111 13.2082Z",fill:"#f63135"})]})}function cc(){return(0,Yu.jsx)("svg",{"aria-hidden":"true",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Yu.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M17 4.5H7C5.61929 4.5 4.5 5.
261929 4.5 7V14C4.5 15.3807 5.61929 16.5 7 16.5H17C18.3807 16.5 19.5 15.3807 19.5 14V7C19.5 5.61929 18.3807 4.5 17 4.5ZM6 7C6 6.44772 6.44772 6 7 6H17C17.5523 6 18 6.44772 18 7V14C18 14.5523 17.5523 15 17 15H7C6.44772 15 6 14.5523 6 14V7ZM8 18C7.58579 18 7.25 18.3358 7.25 18.75C7.25 19.1642 7.58579 19.5 8 19.5H16C16.4142 19.5 16.75 19.1642 16.75 18.75C16.75 18.3358 16.4142 18 16 18H8Z",fill:"currentColor"})})}function dc(){return(0,Yu.jsxs)("svg",{"aria-hidden":"true",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Yu.jsx)("path",{d:"M7 4.5H14C15.3807 4.5 16.5 5.61929 16.5 7V10H15V7C15 6.44772 14.5523 6 14 6H7C6.44772 6 6 6.44772 6 7V17C6 17.5523 6.44772 18 7 18H14C14.5523 18 15 17.5523 15 17V14H16.5V17C16.5 18.3807 15.3807 19.5 14 19.5H7C5.61929 19.5 4.5 18.3807 4.5 17V7C4.5 5.61929 5.61929 4.5 7 4.5Z",fill:"#f63135"}),(0,Yu.jsx)("path",{d:"M19.0303 8.46967C18.7374 8.17678 18.2626 8.17678 17.9697 8.46967C17.6768 8.76256 17.6768 9.23744 17.9697 9.53033L19.6893 11.25H12.75C12.3358 11.25 12 11.5858 12 12C12 12.4142 12.3358 12.75 12.75 12.75H19.6893L17.9697 14.4697C17.6768 14.7626 17.6768 15.2374 17.9697 15.5303C18.2626 15.8232 18.7374 15.8232 19.0303 15.5303L22.0303 12.5303C22.3232 12.2374 22.3232 11.7626 22.0303 11.4697L19.0303 8.46967Z",fill:"#f63135"})]})}function fc(){return(0,Yu.jsxs)("svg",{"aria-hidden":"true",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[(0,Yu.jsx)("path",{d:"M12 20.25C7.44365 20.25 3.75 16.5563 3.75 12C3.75 7.44365 7.44365 3.75 12 3.75C16.5563 3.75 20.25 7.44365 20.25 12C20.25 16.5563 16.5563 20.25 12 20.25Z",stroke:"#121A24",strokeWidth:"1.5"}),(0,Yu.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12.0055 9C12.5519 9 13 8.56069 13 8.00578C13 7.43931 12.5519 7 12.0055 7C11.4481 7 11 7.43931 11 8.00578C11 8.56069 11.4481 9 12.0055 9Z",fill:"#121A24"}),(0,Yu.jsx)("path",{d:"M12 11V16",stroke:"#121A24",strokeWidth:"1.5",strokeLinecap:"round",strokeLinejoin:"round"})]})}function pc(){return(0,Yu.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Yu.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18C16.4183 18 20 14.866 20 11C20 7.13401 16.4183 4 12 4C7.58172 4 4 7.13401 4 11C4 12.4358 4.49404 13.7707 5.3415 14.8815C5.47613 15.1546 5.75357 16.0287 5 17.7364C4.63024 18.4941 4.46711 19 5 19C6.12068 19 6.64893 18.6353 7.19788 18.2563C7.65602 17.9399 8.12858 17.6137 8.97197 17.4812C9.90599 17.8156 10.9284 18 12 18Z",fill:"#121A24"})})}function hc(){return(0,Yu.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Yu.jsx)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M12 18C16.4183 18 20 14.866 20 11C20 7.13401 16.4183 4 12 4C7.58172 4 4 7.13401 4 11C4 12.4358 4.49404 13.7707 5.3415 14.8815C5.47613 15.1546 5.75357 16.0287 5 17.7364C4.63024 18.4941 4.46711 19 5 19C6.12068 19 6.64893 18.6353 7.19788 18.2563C7.65602 17.9399 8.12858 17.6137 8.97197 17.4812C9.90599 17.8156 10.9284 18 12 18Z",fill:"#f63135"})})}function vc(){return(0,Yu.jsx)("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:(0,Yu.jsx)("path",{d:"M5 11.25C4.58579 11.25 4.25 11.5858 4.25 12C4.25 12.4142 4.58579 12.75 5 12.75V11.25ZM19 12L19.5303 12.5303C19.8232 12.2374 19.8232 11.7626 19.5303 11.4697L19 12ZM14.5303 6.46967C14.2374 6.17678 13.7626 6.17678 13.4697 6.46967C13.1768 6.76256 13.1768 7.23744 13.4697 7.53033L14.5303 6.46967ZM13.4697 16.4697C13.1768 16.7626 13.1768 17.2374 13.4697 17.5303C13.7626 17.8232 14.2374 17.8232 14.5303 17.5303L13.4697 16.4697ZM5 12.75H19V11.25H5V12.75ZM19.5303 11.4697L14.5303 6.46967L13.4697 7.53033L18.4697 12.5303L19.5303 11.4697ZM18.4697 11.4697L13.4697 16.4697L14.5303 17.5303L19.5303 12.5303L18.4697 11.4697Z",fill:"#121A24"})})}function mc(e){var t=e.showChat,n=e.toggleChat,r=o((0,u.useState)([]),2),i=r[0],a=r[1],s=o((0,u.useState)(""),2),l=s[0],c=s[1],d=Hl(),f=Tl(d,"user_name"),p=Fu({onAppMessage:(0,u.useCallback)((function(e){return a((function(t){return[].concat(C(t),[{msg:e.data.msg,name:e.data.name}])}
2))}),[])}),h=(0,u.useCallback)((function(e){p({msg:e,name:f||"Guest"},"*"),a([].concat(C(i),[{msg:e,name:f||"Guest"}]))}),[i,p,f]);return t?(0,Yu.jsxs)("aside",{className:"chat",children:[(0,Yu.jsx)("button",{onClick:n,className:"close-chat",type:"button",children:"Close chat"}),(0,Yu.jsx)("ul",{className:"chat-messages",children:i.map((function(e,t){return(0,Yu.jsxs)("li",{className:"chat-message",children:[(0,Yu.jsx)("span",{className:"chat-message-author",children:null===e||void 0===e?void 0:e.name}),":"," ",(0,Yu.jsx)("p",{className:"chat-message-body",children:null===e||void 0===e?void 0:e.msg})]},"message-".concat(t))}))}),(0,Yu.jsx)("div",{className:"add-message",children:(0,Yu.jsxs)("form",{className:"chat-form",onSubmit:function(e){e.preventDefault(),l.trim()&&(h(l),c(""))},children:[(0,Yu.jsx)("input",{className:"chat-input",type:"text",placeholder:"Type your message here..",value:l,onChange:function(e){c(e.target.value)}}),(0,Yu.jsx)("button",{type:"submit",className:"chat-submit-button",children:(0,Yu.jsx)(vc,{})})]})})]}):null}function gc(e){var t=e.leaveCall,n=ll(),r=Yl(),i=r.isSharingScreen,a=r.startScreenShare,s=r.stopScreenShare,l=o((0,u.useState)(!1),2),c=l[0],d=l[1],f=o((0,u.useState)(!1),2),p=f[0],h=f[1],v=o((0,u.useState)(!1),2),m=v[0],g=v[1],y=Hl(),b=Qu(y),k=zu(y),w=b.isOff,S=k.isOff;Fu({onAppMessage:(0,u.useCallback)((function(){p||g(!0)}),[p])});var _=(0,u.useCallback)((function(){n.setLocalVideo(w)}),[n,w]),C=(0,u.useCallback)((function(){n.setLocalAudio(S)}),[n,S]),E=function(){h(!p),m&&g(!m)};return(0,Yu.jsxs)("div",{className:"tray",children:[c&&(0,Yu.jsx)(ac,{}),(0,Yu.jsx)(mc,{showChat:p,toggleChat:E}),(0,Yu.jsxs)("div",{className:"tray-buttons-container",children:[(0,Yu.jsxs)("div",{className:"controls",children:[(0,Yu.jsxs)("button",{onClick:_,type:"button",children:[w?(0,Yu.jsx)(sc,{}):(0,Yu.jsx)(oc,{}),w?"Turn camera on":"Turn camera off"]}),(0,Yu.jsxs)("button",{onClick:C,type:"button",children:[S?(0,Yu.jsx)(uc,{}):(0,Yu.jsx)(lc,{}),S?"Unmute mic":"Mute mic"]})]}),(0,Yu.jsxs)("div",{className:"actions",children:[(0,Yu.jsxs)("button",{onClick:function(){return i?s():a()},type:"button",children:[(0,Yu.jsx)(cc,{}),i?"Stop sharing screen":"Share screen"]}),(0,Yu.jsxs)("button",{onClick:function(){d(!c)},type:"button",children:[(0,Yu.jsx)(fc,{}),c?"Hide info":"Show info"]}),(0,Yu.jsxs)("button",{onClick:E,type:"button",children:[m?(0,Yu.jsx)(hc,{}):(0,Yu.jsx)(pc,{}),p?"Hide chat":"Show chat"]})]}),(0,Yu.jsx)("div",{className:"leave",children:(0,Yu.jsxs)("button",{onClick:t,type:"button",children:[(0,Yu.jsx)(dc,{})," Leave call"]})})]})]})}function yc(e){var t,n,r,i=e.joinCall,a=e.cancelCall,s=Hl(),l=Tl(s,"user_name"),c=Vu(),d=c.currentCam,f=c.currentMic,p=c.currentSpeaker,h=c.microphones,v=c.speakers,m=c.cameras,g=c.hasCamError,y=c.setMicrophone,b=c.setCamera,k=c.setSpeaker,w=ll(),S=o((0,u.useState)(l),2),_=S[0],C=S[1];(0,u.useEffect)((function(){C(l)}),[l]);var E=function(e){e.preventDefault(),i(_.trim())};return g?(0,Yu.jsx)(nc,{}):(0,Yu.jsxs)("form",{className:"hair-check",onSubmit:E,children:[(0,Yu.jsx)("h1",{children:"Setup your hardware"}),s&&(0,Yu.jsx)(nu,{sessionId:s,automirror:!0}),(0,Yu.jsxs)("div",{children:[(0,Yu.jsx)("label",{htmlFor:"username",children:"Your name:"}),(0,Yu.jsx)("input",{name:"username",type:"text",placeholder:"Enter username",onChange:function(e){C(e.target.value),w.setUserName(e.target.value)},value:_||" "})]}),(0,Yu.jsxs)("div",{children:[(0,Yu.jsx)("label",{htmlFor:"micOptions",children:"Microphone:"}),(0,Yu.jsx)("select",{name:"micOptions",id:"micSelect",onChange:function(e){y(e.target.value)},value:null===f||void 0===f||null===(t=f.device)||void 0===t?void 0:t.deviceId,children:h.map((function(e){return(0,Yu.jsx)("option",{value:e.device.deviceId,children:e.device.label},"mic-".concat(e.device.deviceId))}))})]}),(0,Yu.jsxs)("div",{children:[(0,Yu.jsx)("label",{htmlFor:"speakersOptions",children:"Speakers:"}),(0,Yu.jsx)("select",{name:"speakersOptions",id:"speakersSelect",onChange:function(e){k(e.target.value)},value:null===p||void 0===p||null===(n=p.device)||void 0===n?void 0:n.deviceId,children:v.map((function(e){return(0,Yu.jsx)("option",{value:e.device.deviceId,children:e.device.label},"speaker-".concat(e.device.deviceId))}))})]}),(0,Yu.jsxs)("div",{children:[(0,Yu.jsx)("label",{htmlFor:"cameraOptions",children:"Camera:"}),(0,Yu.jsx)("select",{name:"cameraOptions",id:"cameraSelect",onChange:function(e){b(e.target.value)},value:null===d||void 0===d||null===(r=d.device)||void 0===r?void 0:r.deviceId,children:m.map((function(e){return(0,Yu.jsx)("option",{value:e.device.deviceId,children:e.device.label},"cam-".concat(e.device.deviceId))}))})]}),(0,Yu.jsx)("button",{onClick:E,type:"submit",children:"Join call"}),(0,Yu.jsx)("button",{onClick:a,className:"cancel-call",type:"button",children:"Back to start"})]})}var bc="STATE_IDLE",kc="STATE_JOINING",wc="STATE_JOINED",Sc="STATE_ERROR",_c="STATE_HAIRCHECK";function Cc(){var e=o((0,u.useState)(bc),2),t=e[0],n=e[1],i=o((0,u.useState)(null),2),a=i[0],s=i[1],c=o((0,u.useState)(null),2),d=c[0],f=c[1],p=o((0,u.useState)(!1),2),h=p[0],v=p[1],m=(0,u.useCallback)((function(){return n("STATE_CREATING"),Ku.createRoom().then((function(e){return e.url})).catch((function(e){console.error("Error creating room",e),s(null),n(bc),v(!0)}))}),[]),g=(0,u.useCallback)(function(){var e=r(l().mark((function e(t){var r;return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=Mo.createCallObject(),s(t),f(r),n(_c),e.next=6,r.preAuth({url:t});case 6:return e.next=8,r.startCamera();case 8:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}(),[]),y=(0,u.useCallback)((function(e){d.join({url:a,userName:e})}),[d,a]),b=(0,u.useCallback)((function(){d&&(t===Sc?d.destroy().then((function(){s(null),f(null),n(bc)})):(n("STATE_LEAVING"),d.leave()))}),[d,t]);(0,u.useEffect)((function(){var e=function(){var e=window.location.search.match(/room
2Url=([^&]+)/i);return e&&e[1]?decodeURIComponent(e[1]):null}();e&&g(e)}),[g]),(0,u.useEffect)((function(){var e=function(e){return window.location.href.split("?")[0]+(e?"?roomUrl=".concat(encodeURIComponent(e)):"")}(a);e!==window.location.href&&window.history.replaceState(null,null,e)}),[a]),(0,u.useEffect)((function(){if(d){var e=["joined-meeting","left-meeting","error","camera-error"];return t(),e.forEach((function(e){return d.on(e,t)})),function(){e.forEach((function(e){return d.off(e,t)}))}}function t(){switch(d.meetingState()){case"joined-meeting":n(wc);break;case"left-meeting":d.destroy().then((function(){s(null),f(null),n(bc)}));break;case"error":n(Sc)}}}),[d]);var k=!h&&[kc,wc,Sc].includes(t),w=!h&&t===_c;return(0,Yu.jsxs)("div",{className:"app",children:[(0,Yu.jsx)(ic,{}),h?(0,Yu.jsxs)("div",{className:"api-error",children:[(0,Yu.jsx)("h1",{children:"Error"}),(0,Yu.jsxs)("p",{children:["Room could not be created. Check if your `.env` file is set up correctly. For more information, see the"," ",(0,Yu.jsx)("a",{href:"https://github.com/daily-demos/custom-video-daily-react-hooks#readme",children:"readme"})," ",":)"]})]}):w||k?(0,Yu.jsx)(Ru,{callObject:d,children:w?(0,Yu.jsx)(yc,{joinCall:y,cancelCall:b}):(0,Yu.jsxs)(Yu.Fragment,{children:[(0,Yu.jsx)(rc,{}),(0,Yu.jsx)(gc,{leaveCall:b}),(0,Yu.jsx)(tu,{})]})}):(0,Yu.jsx)(Xu,{createCall:m,startHairCheck:g})]})}var Ec=document.getElementById("root");(0,e.createRoot)(Ec).render((0,Yu.jsx)(Cc,{}))}()}(); 3//# sourceMappingURL=main.e0f84e8f.js.map
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.