vendor: 4,673 bytes, lines 1-17
1var gC=Object.defineProperty;var yC=(t,e,n)=>e in t?gC(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var Rs=(t,e,n)=>yC(t,typeof e!="symbol"?e+"":e,n);(function(){const e=document.createElement("link").relList;if(e&&e.supports&&e.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))s(a);new MutationObserver(a=>{for(const l of a)if(l.type==="childList")for(const u of l.addedNodes)u.tagName==="LINK"&&u.rel==="modulepreload"&&s(u)}).observe(document,{childList:!0,subtree:!0});function n(a){const l={};return a.integrity&&(l.integrity=a.integrity),a.referrerPolicy&&(l.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?l.credentials="include":a.crossOrigin==="anonymous"?l.credentials="omit":l.credentials="same-origin",l}function s(a){if(a.ep)return;a.ep=!0;const l=n(a);fetch(a.href,l)}})();function ku(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var fg={exports:{}},Fc={};/** 2 * @license React 3 * react-jsx-runtime.production.js 4 * 5 * Copyright (c) Meta Platforms, Inc. and affiliates. 6 * 7 * This source code is licensed under the MIT license found in the 8 * LICENSE file in the root directory of this source tree. 9 */var d_;function xC(){if(d_)return Fc;d_=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function n(s,a,l){var u=null;if(l!==void 0&&(u=""+l),a.key!==void 0&&(u=""+a.key),"key"in a){l={};for(var d in a)d!=="key"&&(l[d]=a[d])}else l=a;return a=l.ref,{$$typeof:t,type:s,key:u,ref:a!==void 0?a:null,props:l}}return Fc.Fragment=e,Fc.jsx=n,Fc.jsxs=n,Fc}var f_;function vC(){return f_||(f_=1,fg.exports=xC()),fg.exports}var c=vC(),mg={exports:{}},Ae={};/** 10 * @license React 11 * react.production.js 12 * 13 * Copyright (c) Meta Platforms, Inc. and affiliates. 14 * 15 * This source code is licensed under the MIT license found in the 16 * LICENSE file in the root directory of this source tree. 17 */var m_;function bC(){if(m_)return Ae;m_=1;var t=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),u=Symbol.for("react.context"),d=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),x=Symbol.for("react.lazy"),v=Symbol.for("react.activity"),T=Symbol.iterator;function E(k){return k===null||typeof k!="object"?null:(k=T&&k[T]||k["@@iterator"],typeof k=="function"?k:null)}var C={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},L=Object.assign,R={};function V(k,J,oe){this.props=k,this.context=J,this.refs=R,this.updater=oe||C}V.prototype.isReactComponent={},V.prototype.setState=function(k,J){if(typeof k!="object"&&typeof k!="function"&&k!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,k,J,"setState")},V.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function G(){}G.prototype=V.prototype;function z(k,J,oe){this.props=k,this.context=J,this.refs=R,this.updater=oe||C}var ne=z.prototype=new G;ne.constructor=z,L(ne,V.prototype),ne.isPureReactComponent=!0;var re=Array.isArray;function le(){}var D={H:null,A:null,T:null,S:null},A=Object.prototype.hasOwnProperty;function I(k,J,oe){var fe=oe.ref;return{$$typeof:t,type:k,key:J,ref:fe!==void 0?fe:null,props:oe}}function P(k,J){return I(k.type,J,k.props)}function F(k){return typeof k=="object"&&k!==null&&k.$$typeof===t}function U(k){var J={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(oe){return J[oe]})}var M=/\/+/g;function nt(k,J){return typeof k=="object"&&k!==null&&k.key!=null?U(""+k.key):J.toString(36)}function dt(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(le,le):(k.status="pending",k.then(function(J){k.status==="pending"&&(k.status="fulfilled",k.value=J)},function(J){k.status==="pending"&&(k.status="rejected",k.reason=J)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function X(k,J,oe,fe,we){var De=typeof k;(De==="undefined"||De==="boolean")&&(k=null);var Be=!1;if(k===null)Be=!0;else switch(De){case"bigint":case"string":case"number":Be=!0;break;case"object":switch(k.$$typeof){case t:case e:Be=!0;break;case x:return Be=k._init,X(Be(k._payload),J,oe,fe,we)}}if(Be)return we=we(k),Be=fe===""?"."+nt(k,0):fe,re(we)?(oe="",Be!=null&&(oe=Be.replace(M,"$&/")+"/"),X(we,J,oe,"",function(Ci){return Ci}
vendor: 17,292 bytes, lines 17-41
17)):we!=null&&(F(we)&&(we=P(we,oe+(we.key==null||k&&k.key===we.key?"":(""+we.key).replace(M,"$&/")+"/")+Be)),J.push(we)),1;Be=0;var $t=fe===""?".":fe+":";if(re(k))for(var ft=0;ft<k.length;ft++)fe=k[ft],De=$t+nt(fe,ft),Be+=X(fe,J,oe,De,we);else if(ft=E(k),typeof ft=="function")for(k=ft.call(k),ft=0;!(fe=k.next()).done;)fe=fe.value,De=$t+nt(fe,ft++),Be+=X(fe,J,oe,De,we);else if(De==="object"){if(typeof k.then=="function")return X(dt(k),J,oe,fe,we);throw J=String(k),Error("Objects are not valid as a React child (found: "+(J==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":J)+"). If you meant to render a collection of children, use an array instead.")}return Be}function ae(k,J,oe){if(k==null)return k;var fe=[],we=0;return X(k,fe,"","",function(De){return J.call(oe,De,we++)}),fe}function ue(k){if(k._status===-1){var J=k._result;J=J(),J.then(function(oe){(k._status===0||k._status===-1)&&(k._status=1,k._result=oe)},function(oe){(k._status===0||k._status===-1)&&(k._status=2,k._result=oe)}),k._status===-1&&(k._status=0,k._result=J)}if(k._status===1)return k._result.default;throw k._result}var je=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var J=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof k=="object"&&k!==null&&typeof k.message=="string"?String(k.message):String(k),error:k});if(!window.dispatchEvent(J))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},Ie={map:ae,forEach:function(k,J,oe){ae(k,function(){J.apply(this,arguments)},oe)},count:function(k){var J=0;return ae(k,function(){J++}),J},toArray:function(k){return ae(k,function(J){return J})||[]},only:function(k){if(!F(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return Ae.Activity=v,Ae.Children=Ie,Ae.Component=V,Ae.Fragment=n,Ae.Profiler=a,Ae.PureComponent=z,Ae.StrictMode=s,Ae.Suspense=m,Ae.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=D,Ae.__COMPILER_RUNTIME={__proto__:null,c:function(k){return D.H.useMemoCache(k)}},Ae.cache=function(k){return function(){return k.apply(null,arguments)}},Ae.cacheSignal=function(){return null},Ae.cloneElement=function(k,J,oe){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var fe=L({},k.props),we=k.key;if(J!=null)for(De in J.key!==void 0&&(we=""+J.key),J)!A.call(J,De)||De==="key"||De==="__self"||De==="__source"||De==="ref"&&J.ref===void 0||(fe[De]=J[De]);var De=arguments.length-2;if(De===1)fe.children=oe;else if(1<De){for(var Be=Array(De),$t=0;$t<De;$t++)Be[$t]=arguments[$t+2];fe.children=Be}return I(k.type,we,fe)},Ae.createContext=function(k){return k={$$typeof:u,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:l,_context:k},k},Ae.createElement=function(k,J,oe){var fe,we={},De=null;if(J!=null)for(fe in J.key!==void 0&&(De=""+J.key),J)A.call(J,fe)&&fe!=="key"&&fe!=="__self"&&fe!=="__source"&&(we[fe]=J[fe]);var Be=arguments.length-2;if(Be===1)we.children=oe;else if(1<Be){for(var $t=Array(Be),ft=0;ft<Be;ft++)$t[ft]=arguments[ft+2];we.children=$t}if(k&&k.defaultProps)for(fe in Be=k.defaultProps,Be)we[fe]===void 0&&(we[fe]=Be[fe]);return I(k,De,we)},Ae.createRef=function(){return{current:null}},Ae.forwardRef=function(k){return{$$typeof:d,render:k}},Ae.isValidElement=F,Ae.lazy=function(k){return{$$typeof:x,_payload:{_status:-1,_result:k},_init:ue}},Ae.memo=function(k,J){return{$$typeof:g,type:k,compare:J===void 0?null:J}},Ae.startTransition=function(k){var J=D.T,oe={};D.T=oe;try{var fe=k(),we=D.S;we!==null&&we(oe,fe),typeof fe=="object"&&fe!==null&&typeof fe.then=="function"&&fe.then(le,je)}catch(De){je(De)}finally{J!==null&&oe.types!==null&&(J.types=oe.types),D.T=J}},Ae.unstable_useCacheRefresh=function(){return D.H.useCacheRefresh()},Ae.use=function(k){return D.H.use(k)},Ae.useActionState=function(k,J,oe){return D.H.useActionState(k,J,oe)},Ae.useCallback=function(k,J){return D.H.useCallback(k,J)},Ae.useContext=function(k){return D.H.useContext(k)},Ae.useDebugValue=function(){},Ae.useDeferredValue=function(k,J){return D.H.useDeferredValue(k,J)},Ae.useEffect=function(k,J){return D.H.useEffect(k,J)},Ae.useEffectEvent=function(k){return D.H.useEffectEvent(k)},Ae.useId=function(){return D.H.useId()},Ae.useImperativeHandle=function(k,J,oe){return D.H.useImperativeHandle(k,J,oe)},Ae.useInsertionEffect=function(k,J){return D.H.useInsertionEffect(k,J)},Ae.useLayoutEffect=function(k,J){return D.H.useLayoutEffect(k,J)},Ae.useMemo=function(k,J){return D.H.useMemo(k,J)},Ae.useOptimistic=function(k,J){return D.H.useOptimistic(k,J)},Ae.useReducer=function(k,J,oe){return D.H.useReducer(k,J,oe)},Ae.useRef=function(k){return D.H.useRef(k)},Ae.useState=function(k){return D.H.useState(k)},Ae.useSyncExternalStore=function(k,J,oe){return D.H.useSyncExternalStore(k,J,oe)},Ae.useTransition=function(){return D.H.useTransition()},Ae.version="19.2.3",Ae}var p_;function ax(){return p_||(p_=1,mg.exports=bC()),mg.exports}var j=ax();const Hi=ku(j);var pg={exports:{}},Gc={},gg={exports:{}},yg={};/** 18 * @license React 19 * scheduler.production.js 20 * 21 * Copyright (c) Meta Platforms, Inc. and affiliates. 22 * 23 * This source code is licensed under the MIT license found in the 24 * LICENSE file in the root directory of this source tree. 25 */var g_;function wC(){return g_||(g_=1,(function(t){function e(X,ae){var ue=X.length;X.push(ae);e:for(;0<ue;){var je=ue-1>>>1,Ie=X[je];if(0<a(Ie,ae))X[je]=ae,X[ue]=Ie,ue=je;else break e}}function n(X){return X.length===0?null:X[0]}function s(X){if(X.length===0)return null;var ae=X[0],ue=X.pop();if(ue!==ae){X[0]=ue;e:for(var je=0,Ie=X.length,k=Ie>>>1;je<k;){var J=2*(je+1)-1,oe=X[J],fe=J+1,we=X[fe];if(0>a(oe,ue))fe<Ie&&0>a(we,oe)?(X[je]=we,X[fe]=ue,je=fe):(X[je]=oe,X[J]=ue,je=J);else if(fe<Ie&&0>a(we,ue))X[je]=we,X[fe]=ue,je=fe;else break e}}return ae}function a(X,ae){var ue=X.sortIndex-ae.sortIndex;return ue!==0?ue:X.id-ae.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;t.unstable_now=function(){return l.now()}}else{var u=Date,d=u.now();t.unstable_now=function(){return u.now()-d}}var m=[],g=[],x=1,v=null,T=3,E=!1,C=!1,L=!1,R=!1,V=typeof setTimeout=="function"?setTimeout:null,G=typeof clearTimeout=="function"?clearTimeout:null,z=typeof setImmediate<"u"?setImmediate:null;function ne(X){for(var ae=n(g);ae!==null;){if(ae.callback===null)s(g);else if(ae.startTime<=X)s(g),ae.sortIndex=ae.expirationTime,e(m,ae);else break;ae=n(g)}}function re(X){if(L=!1,ne(X),!C)if(n(m)!==null)C=!0,le||(le=!0,U());else{var ae=n(g);ae!==null&&dt(re,ae.startTime-X)}}var le=!1,D=-1,A=5,I=-1;function P(){return R?!0:!(t.unstable_now()-I<A)}function F(){if(R=!1,le){var X=t.unstable_now();I=X;var ae=!0;try{e:{C=!1,L&&(L=!1,G(D),D=-1),E=!0;var ue=T;try{t:{for(ne(X),v=n(m);v!==null&&!(v.expirationTime>X&&P());){var je=v.callback;if(typeof je=="function"){v.callback=null,T=v.priorityLevel;var Ie=je(v.expirationTime<=X);if(X=t.unstable_now(),typeof Ie=="function"){v.callback=Ie,ne(X),ae=!0;break t}v===n(m)&&s(m),ne(X)}else s(m);v=n(m)}if(v!==null)ae=!0;else{var k=n(g);k!==null&&dt(re,k.startTime-X),ae=!1}}break e}finally{v=null,T=ue,E=!1}ae=void 0}}finally{ae?U():le=!1}}}var U;if(typeof z=="function")U=function(){z(F)};else if(typeof MessageChannel<"u"){var M=new MessageChannel,nt=M.port2;M.port1.onmessage=F,U=function(){nt.postMessage(null)}}else U=function(){V(F,0)};function dt(X,ae){D=V(function(){X(t.unstable_now())},ae)}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(X){X.callback=null},t.unstable_forceFrameRate=function(X){0>X||125<X?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):A=0<X?Math.floor(1e3/X):5},t.unstable_getCurrentPriorityLevel=function(){return T},t.unstable_next=function(X){switch(T){case 1:case 2:case 3:var ae=3;break;default:ae=T}var ue=T;T=ae;try{return X()}finally{T=ue}},t.unstable_requestPaint=function(){R=!0},t.unstable_runWithPriority=function(X,ae){switch(X){case 1:case 2:case 3:case 4:case 5:break;default:X=3}var ue=T;T=X;try{return ae()}finally{T=ue}},t.unstable_scheduleCallback=function(X,ae,ue){var je=t.unstable_now();switch(typeof ue=="object"&&ue!==null?(ue=ue.delay,ue=typeof ue=="number"&&0<ue?je+ue:je):ue=je,X){case 1:var Ie=-1;break;case 2:Ie=250;break;case 5:Ie=1073741823;break;case 4:Ie=1e4;break;default:Ie=5e3}return Ie=ue+Ie,X={id:x++,callback:ae,priorityLevel:X,startTime:ue,expirationTime:Ie,sortIndex:-1},ue>je?(X.sortIndex=ue,e(g,X),n(m)===null&&X===n(g)&&(L?(G(D),D=-1):L=!0,dt(re,ue-je))):(X.sortIndex=Ie,e(m,X),C||E||(C=!0,le||(le=!0,U()))),X},t.unstable_shouldYield=P,t.unstable_wrapCallback=function(X){var ae=T;return function(){var ue=T;T=ae;try{return X.apply(this,arguments)}finally{T=ue}}}})(yg)),yg}var y_;function _C(){return y_||(y_=1,gg.exports=wC()),gg.exports}var xg={exports:{}},ln={};/** 26 * @license React 27 * react-dom.production.js 28 * 29 * Copyright (c) Meta Platforms, Inc. and affiliates. 30 * 31 * This source code is licensed under the MIT license found in the 32 * LICENSE file in the root directory of this source tree. 33 */var x_;function TC(){if(x_)return ln;x_=1;var t=ax();function e(m){var g="https://react.dev/errors/"+m;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var x=2;x<arguments.length;x++)g+="&args[]="+encodeURIComponent(arguments[x])}return"Minified React error #"+m+"; visit "+g+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function n(){}var s={d:{f:n,r:function(){throw Error(e(522))},D:n,C:n,L:n,m:n,X:n,S:n,M:n},p:0,findDOMNode:null},a=Symbol.for("react.portal");function l(m,g,x){var v=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:v==null?null:""+v,children:m,containerInfo:g,implementation:x}}var u=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function d(m,g){if(m==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return ln.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,ln.createPortal=function(m,g){var x=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(e(299));return l(m,g,null,x)},ln.flushSync=function(m){var g=u.T,x=s.p;try{if(u.T=null,s.p=2,m)return m()}finally{u.T=g,s.p=x,s.d.f()}},ln.preconnect=function(m,g){typeof m=="string"&&(g?(g=g.crossOrigin,g=typeof g=="string"?g==="use-credentials"?g:"":void 0):g=null,s.d.C(m,g))},ln.prefetchDNS=function(m){typeof m=="string"&&s.d.D(m)},ln.preinit=function(m,g){if(typeof m=="string"&&g&&typeof g.as=="string"){var x=g.as,v=d(x,g.crossOrigin),T=typeof g.integrity=="string"?g.integrity:void 0,E=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;x==="style"?s.d.S(m,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:v,integrity:T,fetchPriority:E}):x==="script"&&s.d.X(m,{crossOrigin:v,integrity:T,fetchPriority:E,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},ln.preinitModule=function(m,g){if(typeof m=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var x=d(g.as,g.crossOrigin);s.d.M(m,{crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0})}}else g==null&&s.d.M(m)},ln.preload=function(m,g){if(typeof m=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var x=g.as,v=d(x,g.crossOrigin);s.d.L(m,x,{crossOrigin:v,integrity:typeof g.integrity=="string"?g.integrity:void 0,nonce:typeof g.nonce=="string"?g.nonce:void 0,type:typeof g.type=="string"?g.type:void 0,fetchPriority:typeof g.fetchPriority=="string"?g.fetchPriority:void 0,referrerPolicy:typeof g.referrerPolicy=="string"?g.referrerPolicy:void 0,imageSrcSet:typeof g.imageSrcSet=="string"?g.imageSrcSet:void 0,imageSizes:typeof g.imageSizes=="string"?g.imageSizes:void 0,media:typeof g.media=="string"?g.media:void 0})}},ln.preloadModule=function(m,g){if(typeof m=="string")if(g){var x=d(g.as,g.crossOrigin);s.d.m(m,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:x,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else s.d.m(m)},ln.requestFormReset=function(m){s.d.r(m)},ln.unstable_batchedUpdates=function(m,g){return m(g)},ln.useFormState=function(m,g,x){return u.H.useFormState(m,g,x)},ln.useFormStatus=function(){return u.H.useHostTransitionStatus()},ln.version="19.2.3",ln}var v_;function EC(){if(v_)return xg.exports;v_=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),xg.exports=TC(),xg.exports}/** 34 * @license React 35 * react-dom-client.production.js 36 * 37 * Copyright (c) Meta Platforms, Inc. and affiliates. 38 * 39 * This source code is licensed under the MIT license found in the 40 * LICENSE file in the root directory of this source tree. 41 */var b_;function SC(){if(b_)return Gc;b_=1;var t=_C(),e=ax(),n=EC();function s(i){var r="https://react.dev/errors/"+i;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var o=2;o<arguments.length;o++)r+="&args[]="+encodeURIComponent(arguments[o])}return"Minified React error #"+i+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(i){return!(!i||i.nodeType!==1&&i.nodeType!==9&&i.nodeType!==11)}function l(i){var r=i,o=i;if(i.alternate)for(;r.return;)r=r.return;else{i=r;do r=i,(r.flags&4098)!==0&&(o=r.return),i=r.return;while(i)}return r.tag===3?o:null}function u(i){if(i.tag===13){var r=i.memoizedState;if(r===null&&(i=i.alternate,i!==null&&(r=i.memoizedState)),r!==null)return r.dehydrated}return null}function d(i){if(i.tag===31){var r=i.memoizedState;if(r===null&&(i=i.alternate,i!==null&&(r=i.memoizedState)),r!==null)return r.dehydrated}return null}function m(i){if(l(i)!==i)throw Error(s(188))}function g(i){var r=i.alternate;if(!r){if(r=l(i),r===null)throw Error(s(188));return r!==i?null:i}for(var o=i,h=r;;){var p=o.return;if(p===null)break;var y=p.alternate;if(y===null){if(h=p.return,h!==null){o=h;continue}break}if(p.child===y.child){for(y=p.child;y;){if(y===o)return m(p),i;if(y===h)return m(p),r;y=y.sibling}throw Error(s(188))}if(o.return!==h.return)o=p,h=y;else{for(var w=!1,S=p.child;S;){if(S===o){w=!0,o=p,h=y;break}if(S===h){w=!0,h=p,o=y;break}S=S.sibling}if(!w){for(S=y.child;S;){if(S===o){w=!0,o=y,h=p;break}if(S===h){w=!0,h=y,o=p;break}S=S.sibling}if(!w)throw Error(s(189))}}if(o.alternate!==h)throw Error(s(190))}if(o.tag!==3)throw Error(s(188));return o.stateNode.current===o?i:r}function x(i){var r=i.tag;if(r===5||r===26||r===27||r===6)return i;for(i=i.child;i!==null;){if(r=x(i),r!==null)return r;i=i.sibling}return null}var v=Object.assign,T=Symbol.for("react.element"),E=Symbol.for("react.transitional.element"),C=Symbol.for("react.portal"),L=Symbol.for("react.fragment"),R=Symbol.for("react.strict_mode"),V=Symbol.for("react.profiler"),G=Symbol.for("react.consumer"),z=Symbol.for("react.context"),ne=Symbol.for("react.forward_ref"),re=Symbol.for("react.suspense"),le=Symbol.for("react.suspense_list"),D=Symbol.for("react.memo"),A=Symbol.for("react.lazy"),I=Symbol.for("react.activity"),P=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function U(i){return i===null||typeof i!="object"?null:(i=F&&i[F]||i["@@iterator"],typeof i=="function"?i:null)}var M=Symbol.for("react.client.reference");function nt(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===M?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case L:return"Fragment";case V:return"Profiler";case R:return"StrictMode";case re:return"Suspense";case le:return"SuspenseList";case I:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case C:return"Portal";case z:return i.displayName||"Context";case G:return(i._context.displayName||"Context")+".Consumer";case ne:var r=i.render;return i=i.displayName,i||(i=r.displayName||r.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case D:return r=i.displayName||null,r!==null?r:nt(i.type)||"Memo";case A:r=i._payload,i=i._init;try{return nt(i(r))}catch{}}return null}var dt=Array.isArray,X=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ae=n.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ue={pending:!1,data:null,method:null,action:null},je=[],Ie=-1;function k(i){return{current:i}}function J(i){0>Ie||(i.current=je[Ie],je[Ie]=null,Ie--)}function oe(i,r){Ie++,je[Ie]=i.current,i.current=r}var fe=k(null),we=k(null),De=k(null),Be=k(null);function $t(i,r){switch(oe(De,r),oe(we,i),oe(fe,null),r.nodeType){case 9:case 11:i=(i=r.documentElement)&&(i=i.namespaceURI)?Lw(i):0;break;default:if(i=r.tagName,r=r.namespaceURI)r=Lw(r),i=Ow(r,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}J(fe),oe(fe,i)}function ft(){J(fe),J(we),J(De)}
vendor: 11,262 bytes, lines 41-48
41function Ci(i){i.memoizedState!==null&&oe(Be,i);var r=fe.current,o=Ow(r,i.type);r!==o&&(oe(we,i),oe(fe,o))}function ns(i){we.current===i&&(J(fe),J(we)),Be.current===i&&(J(Be),Vc._currentValue=ue)}var oa,ro;function ui(i){if(oa===void 0)try{throw Error()}catch(o){var r=o.stack.trim().match(/\n( *(at )?)/);oa=r&&r[1]||"",ro=-1<o.stack.indexOf(` 42 at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return` 43`+oa+i+ro}var la=!1;function ao(i,r){if(!i||la)return"";la=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var h={DetermineComponentFrameRoot:function(){try{if(r){var te=function(){throw Error()};if(Object.defineProperty(te.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(te,[])}catch(W){var Y=W}Reflect.construct(i,[],te)}else{try{te.call()}catch(W){Y=W}i.call(te.prototype)}}else{try{throw Error()}catch(W){Y=W}(te=i())&&typeof te.catch=="function"&&te.catch(function(){})}}catch(W){if(W&&Y&&typeof W.stack=="string")return[W.stack,Y.stack]}return[null,null]}};h.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var p=Object.getOwnPropertyDescriptor(h.DetermineComponentFrameRoot,"name");p&&p.configurable&&Object.defineProperty(h.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var y=h.DetermineComponentFrameRoot(),w=y[0],S=y[1];if(w&&S){var O=w.split(` 44`),K=S.split(` 45`);for(p=h=0;h<O.length&&!O[h].includes("DetermineComponentFrameRoot");)h++;for(;p<K.length&&!K[p].includes("DetermineComponentFrameRoot");)p++;if(h===O.length||p===K.length)for(h=O.length-1,p=K.length-1;1<=h&&0<=p&&O[h]!==K[p];)p--;for(;1<=h&&0<=p;h--,p--)if(O[h]!==K[p]){if(h!==1||p!==1)do if(h--,p--,0>p||O[h]!==K[p]){var Z=` 46`+O[h].replace(" at new "," at ");return i.displayName&&Z.includes("<anonymous>")&&(Z=Z.replace("<anonymous>",i.displayName)),Z}while(1<=h&&0<=p);break}}}finally{la=!1,Error.prepareStackTrace=o}return(o=i?i.displayName||i.name:"")?ui(o):""}function um(i,r){switch(i.tag){case 26:case 27:case 5:return ui(i.type);case 16:return ui("Lazy");case 13:return i.child!==r&&r!==null?ui("Suspense Fallback"):ui("Suspense");case 19:return ui("SuspenseList");case 0:case 15:return ao(i.type,!1);case 11:return ao(i.type.render,!1);case 1:return ao(i.type,!0);case 31:return ui("Activity");default:return""}}function Xu(i){try{var r="",o=null;do r+=um(i,o),o=i,i=i.return;while(i);return r}catch(h){return` 47Error generating stack: `+h.message+` 48`+h.stack}}var oo=Object.prototype.hasOwnProperty,ca=t.unstable_scheduleCallback,lo=t.unstable_cancelCallback,hm=t.unstable_shouldYield,zl=t.unstable_requestPaint,Kt=t.unstable_now,Ju=t.unstable_getCurrentPriorityLevel,kt=t.unstable_ImmediatePriority,Ut=t.unstable_UserBlockingPriority,is=t.unstable_NormalPriority,Zu=t.unstable_LowPriority,Fl=t.unstable_IdlePriority,dm=t.log,ua=t.unstable_setDisableYieldValue,Ys=null,an=null;function Yn(i){if(typeof dm=="function"&&ua(i),an&&typeof an.setStrictMode=="function")try{an.setStrictMode(Ys,i)}catch{}}var pn=Math.clz32?Math.clz32:eh,fm=Math.log,Gl=Math.LN2;function eh(i){return i>>>=0,i===0?32:31-(fm(i)/Gl|0)|0}var ha=256,Ii=262144,Ws=4194304;function hi(i){var r=i&42;if(r!==0)return r;switch(i&-i){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 i&261888;case 262144:case 524288:case 1048576:case 2097152:return i&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return i&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function Wn(i,r,o){var h=i.pendingLanes;if(h===0)return 0;var p=0,y=i.suspendedLanes,w=i.pingedLanes;i=i.warmLanes;var S=h&134217727;return S!==0?(h=S&~y,h!==0?p=hi(h):(w&=S,w!==0?p=hi(w):o||(o=S&~i,o!==0&&(p=hi(o))))):(S=h&~y,S!==0?p=hi(S):w!==0?p=hi(w):o||(o=h&~i,o!==0&&(p=hi(o)))),p===0?0:r!==0&&r!==p&&(r&y)===0&&(y=p&-p,o=r&-r,y>=o||y===32&&(o&4194048)!==0)?r:p}function Qs(i,r){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&r)===0}function co(i,r){switch(i){case 1:case 2:case 4:case 8:case 64:return r+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 r+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function ql(){var i=Ws;return Ws<<=1,(Ws&62914560)===0&&(Ws=4194304),i}function ss(i){for(var r=[],o=0;31>o;o++)r.push(i);return r}function Xs(i,r){i.pendingLanes|=r,r!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function Yt(i,r,o,h,p,y){var w=i.pendingLanes;i.pendingLanes=o,i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0,i.expiredLanes&=o,i.entangledLanes&=o,i.errorRecoveryDisabledLanes&=o,i.shellSuspendCounter=0;var S=i.entanglements,O=i.expirationTimes,K=i.hiddenUpdates;for(o=w&~o;0<o;){var Z=31-pn(o),te=1<<Z;S[Z]=0,O[Z]=-1;var Y=K[Z];if(Y!==null)for(K[Z]=null,Z=0;Z<Y.length;Z++){var W=Y[Z];W!==null&&(W.lane&=-536870913)}o&=~te}h!==0&&Hl(i,h,0),y!==0&&p===0&&i.tag!==0&&(i.suspendedLanes|=y&~(w&~r))}function Hl(i,r,o){i.pendingLanes|=r,i.suspendedLanes&=~r;var h=31-pn(r);i.entangledLanes|=r,i.entanglements[h]=i.entanglements[h]|1073741824|o&261930}function Js(i,r){var o=i.entangledLanes|=r;for(i=i.entanglements;o;){var h=31-pn(o),p=1<<h;p&r|i[h]&r&&(i[h]|=r),o&=~p}}function Zs(i,r){var o=r&-r;return o=(o&42)!==0?1:$l(o),(o&(i.suspendedLanes|r))!==0?0:o}function $l(i){switch(i){case 2:i=1;break;case 8:i=4;break;case 32:i=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:i=128;break;case 268435456:i=134217728;break;default:i=0}return i}function Kl(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function rs(){var i=ae.p;return i!==0?i:(i=window.event,i===void 0?32:r_(i.type))}function th(i,r){var o=ae.p;try{return ae.p=i,r()}finally{ae.p=o}}var Di=Math.random().toString(36).slice(2),gt="__reactFiber$"+Di,Wt="__reactProps$"+Di,ki="__reactContainer$"+Di,er="__reactEvents$"+Di,Mi="__reactListeners$"+Di,nh="__reactHandles$"+Di,Yl="__reactResources$"+Di,as="__reactMarker$"+Di;function da(i){delete i[gt],delete i[Wt],delete i[er],delete i[Mi],delete i[nh]}function os(i){var r=i[gt];if(r)return r;for(var o=i.parentNode;o;){if(r=o[ki]||o[gt]){if(o=r.alternate,r.child!==null||o!==null&&o.child!==null)for(i=Gw(i);i!==null;){if(o=i[gt])return o;i=Gw(i)}return r}i=o,o=i.parentNode}return null}function ls(i){if(i=i[gt]||i[ki]){var r=i.tag;if(r===5||r===6||r===13||r===31||r===26||r===27||r===3)return i}return null}function fa(i){var r=i.tag;if(r===5||r===26||r===27||r===6)return i.stateNode;throw Error(s(33))}function di(i){var r=i[Yl];return r||(r=i[Yl]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function wt(i){i[as]=!0}var uo=new Set,tr={};function gn(i,r){Li(i,r),Li(i+"Capture",r)}function Li(i,r){for(tr[i]=r,i=0;i<r.length;i++)uo.add(r[i])}var mm=RegExp("^[: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][: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]*$"),Wl={},Ql={};function ih(i){return oo.call(Ql,i)?!0:oo.call(Wl,i)?!1:mm.test(i)?Ql[i]=!0:(Wl[i]=!0,!1)}function nr(i,r,o){if(ih(r))if(o===null)i.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":i.removeAttribute(r);return;case"boolean":var h=r.toLowerCase().slice(0,5);if(h!=="data-"&&h!=="aria-"){i.removeAttribute(r);return}}i.setAttribute(r,""+o)}}function ir(i,r,o){if(o===null)i.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(r);return}i.setAttribute(r,""+o)}}function Qn(i,r,o,h){if(h===null)i.removeAttribute(o);else{switch(typeof h){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(o);return}i.setAttributeNS(r,o,""+h)}}function yn(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function sh(i){var r=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function pm(i,r,o){var h=Object.getOwnPropertyDescriptor(i.constructor.prototype,r);if(!i.hasOwnProperty(r)&&typeof h<"u"&&typeof h.get=="function"&&typeof h.set=="function"){var p=h.get,y=h.set;return Object.defineProperty(i,r,{configurable:!0,get:function(){return p.call(this)},set:function(w){o=""+w,y.call(this,w)}}),Object.defineProperty(i,r,{enumerable:h.enumerable}),{getValue:function(){return o},setValue:function(w){o=""+w},stopTracking:function(){i._valueTracker=null,delete i[r]}}}}function ho(i){if(!i._valueTracker){var r=sh(i)?"checked":"value";i._valueTracker=pm(i,r,""+i[r])}}function Xl(i){if(!i)return!1;var r=i._valueTracker;if(!r)return!0;var o=r.getValue(),h="";return i&&(h=sh(i)?i.checked?"true":"false":i.value),i=h,i!==o?(r.setValue(i),!0):!1}function fo(i){if(i=i||(typeof document<"u"?document:void 0),typeof i>"u")return null;try{return i.activeElement||i.body}catch{return i.body}}var cs=/[\n"\\]/g;function yt(i){return i.replace(cs,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function sr(i,r,o,h,p,y,w,S){i.name="",w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"?i.type=w:i.removeAttribute("type"),r!=null?w==="number"?(r===0&&i.value===""||i.value!=r)&&(i.value=""+yn(r)):i.value!==""+yn(r)&&(i.value=""+yn(r)):w!=="submit"&&w!=="reset"||i.removeAttribute("value"),r!=null?mo(i,w,yn(r)):o!=null?mo(i,w,yn(o)):h!=null&&i.removeAttribute("value"),p==null&&y!=null&&(i.defaultChecked=!!y),p!=null&&(i.checked=p&&typeof p!="function"&&typeof p!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?i.name=""+yn(S):i.removeAttribute("name")}function ma(i,r,o,h,p,y,w,S){if(y!=null&&typeof y!="function"&&typeof y!="symbol"&&typeof y!="boolean"&&(i.type=y),r!=null||o!=null){if(!(y!=="submit"&&y!=="reset"||r!=null)){ho(i);return}o=o!=null?""+yn(o):"",r=r!=null?""+yn(r):o,S||r===i.value||(i.value=r),i.defaultValue=r}h=h??p,h=typeof h!="function"&&typeof h!="symbol"&&!!h,i.checked=S?i.checked:!!h,i.defaultChecked=!!h,w!=null&&typeof w!="function"&&typeof w!="symbol"&&typeof w!="boolean"&&(i.name=w),ho(i)}function mo(i,r,o){r==="number"&&fo(i.ownerDocument)===i||i.defaultValue===""+o||(i.defaultValue=""+o)}function He(i,r,o,h){if(i=i.options,r){r={};for(var p=0;p<o.length;p++)r["$"+o[p]]=!0;for(o=0;o<i.length;o++)p=r.hasOwnProperty("$"+i[o].value),i[o].selected!==p&&(i[o].selected=p),p&&h&&(i[o].defaultSelected=!0)}else{for(o=""+yn(o),r=null,p=0;p<i.length;
vendor: 4,712 bytes, line 48
48p++){if(i[p].value===o){i[p].selected=!0,h&&(i[p].defaultSelected=!0);return}r!==null||i[p].disabled||(r=i[p])}r!==null&&(r.selected=!0)}}function pa(i,r,o){if(r!=null&&(r=""+yn(r),r!==i.value&&(i.value=r),o==null)){i.defaultValue!==r&&(i.defaultValue=r);return}i.defaultValue=o!=null?""+yn(o):""}function rr(i,r,o,h){if(r==null){if(h!=null){if(o!=null)throw Error(s(92));if(dt(h)){if(1<h.length)throw Error(s(93));h=h[0]}o=h}o==null&&(o=""),r=o}o=yn(r),i.defaultValue=o,h=i.textContent,h===o&&h!==""&&h!==null&&(i.value=h),ho(i)}function Xn(i,r){if(r){var o=i.firstChild;if(o&&o===i.lastChild&&o.nodeType===3){o.nodeValue=r;return}}i.textContent=r}var gm=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 Jl(i,r,o){var h=r.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?h?i.setProperty(r,""):r==="float"?i.cssFloat="":i[r]="":h?i.setProperty(r,o):typeof o!="number"||o===0||gm.has(r)?r==="float"?i.cssFloat=o:i[r]=(""+o).trim():i[r]=o+"px"}function rh(i,r,o){if(r!=null&&typeof r!="object")throw Error(s(62));if(i=i.style,o!=null){for(var h in o)!o.hasOwnProperty(h)||r!=null&&r.hasOwnProperty(h)||(h.indexOf("--")===0?i.setProperty(h,""):h==="float"?i.cssFloat="":i[h]="");for(var p in r)h=r[p],r.hasOwnProperty(p)&&o[p]!==h&&Jl(i,p,h)}else for(var y in r)r.hasOwnProperty(y)&&Jl(i,y,r[y])}function Zl(i){if(i.indexOf("-")===-1)return!1;switch(i){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 ym=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
48-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"]]),xm=/^[\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 Oi(i){return xm.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}function Bt(){}var po=null;function go(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var us=null,On=null;function ah(i){var r=ls(i);if(r&&(i=r.stateNode)){var o=i[Wt]||null;e:switch(i=r.stateNode,r.type){case"input":if(sr(i,o.value,o.defaultValue,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name),r=o.name,o.type==="radio"&&r!=null){for(o=i;o.parentNode;)o=o.parentNode;for(o=o.querySelectorAll('input[name="'+yt(""+r)+'"][type="radio"]'),r=0;r<o.length;r++){var h=o[r];if(h!==i&&h.form===i.form){var p=h[Wt]||null;if(!p)throw Error(s(90));sr(h,p.value,p.defaultValue,p.defaultValue,p.checked,p.defaultChecked,p.type,p.name)}}for(r=0;r<o.length;r++)h=o[r],h.form===i.form&&Xl(h)}break e;case"textarea":pa(i,o.value,o.defaultValue);break e;case"select":r=o.value,r!=null&&He(i,!!o.multiple,r,!1)}}}var ec=!1;function oh(i,r,o){if(ec)return i(r,o);ec=!0;try{var h=i(r);return h}finally{if(ec=!1,(us!==null||On!==null)&&(id(),us&&(r=us,i=On,On=us=null,ah(r),i)))for(r=0;r<i.length;r++)ah(i[r])}}function Tn(i,r){var o=i.stateNode;if(o===null)return null;var h=o[Wt]||null;if(h===null)return null;o=h[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(h=!h.disabled)||(i=i.type,h=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!h;break e;default:i=!1}if(i)return null;if(o&&typeof o!="function")throw Error(s(231,r,typeof o));return o}var fi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),tc=!1;if(fi)try{var Pi={};Object.defineProperty(Pi,"passive",{get:function(){tc=!0}}),window.addEventListener("test",Pi,Pi),window.removeEventListener("test",Pi,Pi)}catch{tc=!1}var Pn=null,yo=null,Vi=null;function ar(){if(Vi)return Vi;var i,r=yo,o=r.length,h,p="value"in Pn?Pn.value:Pn.textContent,y=p.length;for(i=0;i<o&&r[i]===p[i];i++);var w=o-i;for(h=1;h<=w&&r[o-h]===p[y-h];h++);return Vi=p.slice(i,1<h?1-h:void 0)}function ga(i){var r=i.keyCode;return"charCode"in i?(i=i.charCode,i===0&&r===13&&(i=13)):i=r,i===10&&(i=13),32<=i||i===13?i:0}function or(){return!0}function rt(){return!1}function on(i){function r(o,h,p,y,w){this._reactName=o,this._targetInst=p,this.type=h,this.nativeEvent=y,this.target=w,this.currentTarget=null;for(var S in i)i.hasOwnProperty(S)&&(o=i[S],this[S]=o?o(y):y[S]);return this.isDefaultPrevented=(y.defaultPrevented!=null?y.defaultPrevented:y.returnValue===!1)?or:rt,this.isPropagationStopped=rt,this}return v(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var o=this.nativeEvent;o&&(o.preventDefault?o.preventDefault():typeof o.returnValue!="unknown"&&(o.returnValue=!1),this.isDefaultPrevented=or)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=or)},persist:function(){},isPersistent:or}),r}var hs={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ya=on(hs),lr=v({},hs,{view:0,detail:0}),lh=on(lr),cr,xo,xn,xa=v({},lr,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:hr,button:0,buttons:0,relatedTarget:function(i){return i.relatedTarget===void 0?i.fromElement===i.srcElement?i.toElement:i.fromElement:i.relatedTarget},movementX:function(i){return"movementX"in i?i.movementX:(i!==xn&&(xn&&i.type==="mousemove"?(cr=i.screenX-xn.screenX,xo=i.screenY-xn.screenY):xo=cr=0,xn=i),cr)},movementY:function(i){return"movementY"in i?i.movementY:xo}}),ch=on(xa),va=v({},xa,{dataTransfer:0}),uh=on(va),nc=v({},lr,{relatedTarget:0}),ur=on(nc),hh=v({},hs,{animationName:0,elapsedTime:0,pseudoElement:0}),vo=on(hh),vm=v({},hs,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),dh=on(vm),ba=v({},hs,{data:0}),ic=on(ba),fh={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},sc={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"},rc={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function mh(i){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(i):(i=rc[i])?!!r[i]:!1}function hr(){return mh}var ph=v({},lr,{key:function(i){if(i.key){var r=fh[i.key]||i.key;if(r!=="Unidentified")return r}
vendor: 4,475 bytes, line 48
48return i.type==="keypress"?(i=ga(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?sc[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:hr,charCode:function(i){return i.type==="keypress"?ga(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?ga(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),gh=on(ph),ds=v({},xa,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),ac=on(ds),yh=v({},lr,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:hr}),xh=on(yh),vh=v({},hs,{propertyName:0,elapsedTime:0,pseudoElement:0}),bo=on(vh),vn=v({},xa,{deltaX:function(i){return"deltaX"in i?i.deltaX:"wheelDeltaX"in i?-i.wheelDeltaX:0},deltaY:function(i){return"deltaY"in i?i.deltaY:"wheelDeltaY"in i?-i.wheelDeltaY:"wheelDelta"in i?-i.wheelDelta:0},deltaZ:0,deltaMode:0}),bh=on(vn),wh=v({},hs,{newState:0,oldState:0}),dr=on(wh),f=[9,13,27,32],b=fi&&"CompositionEvent"in window,_=null;fi&&"documentMode"in document&&(_=document.documentMode);var N=fi&&"TextEvent"in window&&!_,H=fi&&(!b||_&&8<_&&11>=_),Q=" ",ce=!1;function We(i,r){switch(i){case"keyup":return f.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function St(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var ke=!1;function zt(i,r){switch(i){case"compositionend":return St(r);case"keypress":return r.which!==32?null:(ce=!0,Q);case"textInput":return i=r.data,i===Q&&ce?null:i;default:return null}}function Ft(i,r){if(ke)return i==="compositionend"||!b&&We(i,r)?(i=ar(),Vi=yo=Pn=null,ke=!1,i):null;switch(i){case"paste":return null;case"keypress":if(!(r.ctrlKey||r.altKey||r.metaKey)||r.ctrlKey&&r.altKey){if(r.char&&1<r.char.length)return r.char;if(r.which)return String.fromCharCode(r.which)}return null;case"compositionend":return H&&r.locale!=="ko"?null:r.data;default:return null}}var fr={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 En(i){var r=i&&i.nodeName&&i.nodeName.toLowerCase();return r==="input"?!!fr[i.type]:r==="textarea"}function wa(i,r,o,h){us?On?On.push(h):On=[h]:us=h,r=ud(r,"onChange"),0<r.length&&(o=new ya("onChange","change",null,o,h),i.push({event:o,listeners:r}))}var fs=null,oc=null;function Gj(i){Rw(i,0)}function _h(i){var r=fa(i);if(Xl(r))return i}function Yv(i,r){if(i==="change")return r}var Wv=!1;if(fi){var bm;if(fi){var wm="oninput"in document;if(!wm){var Qv=document.createElement("div");Qv.setAttribute("oninput","return;"),wm=typeof Qv.oninput=="function"}bm=wm}else bm=!1;Wv=bm&&(!document.documentMode||9<document.documentMode)}function Xv(){fs&&(fs.detachEvent("onpropertychange",Jv),oc=fs=null)}function Jv(i){if(i.propertyName==="value"&&_h(oc)){var r=[];wa(r,oc,i,go(i)),oh(Gj,r)}}function qj(i,r,o){i==="focusin"?(Xv(),fs=r,oc=o,fs.attachEvent("onpropertychange",Jv)):i==="focusout"&&Xv()}function Hj(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return _h(oc)}function $j(i,r){if(i==="click")return _h(r)}function Kj(i,r){if(i==="input"||i==="change")return _h(r)}function Yj(i,r){return i===r&&(i!==0||1/i===1/r)||i!==i&&r!==r}var Vn=typeof Object.is=="function"?Object.is:Yj;function lc(i,r){if(Vn(i,r))return!0;if(typeof i!="object"||i===null||typeof r!="object"||r===null)return!1;var o=Object.keys(i),h=Object.keys(r);if(o.length!==h.length)return!1;for(h=0;h<o.length;h++){var p=o[h];if(!oo.call(r,p)||!Vn(i[p],r[p]))return!1}return!0}function Zv(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function e0(i,r){var o=Zv(i);i=0;for(var h;o;){if(o.nodeType===3){if(h=i+o.textContent.length,i<=r&&h>=r)return{node:o,offset:r-i};i=h}e:{for(;o;){if(o.nextSibling){o=o.nextSibling;break e}o=o.parentNode}o=void 0}o=Zv(o)}}function t0(i,r){return i&&r?i===r?!0:i&&i.nodeType===3?!1:r&&r.nodeType===3?t0(i,r.parentNode):"contains"in i?i.contains(r):i.compareDocumentPosition?!!(i.compareDocumentPosition(r)&16):!1:!1}function n0(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var r=fo(i.document);r instanceof i.HTMLIFrameElement;){try{var o=typeof r.contentWindow.location.href=="string"}catch{o=!1}
vendor: 11,084 bytes, line 48
48if(o)i=r.contentWindow;else break;r=fo(i.document)}return r}function _m(i){var r=i&&i.nodeName&&i.nodeName.toLowerCase();return r&&(r==="input"&&(i.type==="text"||i.type==="search"||i.type==="tel"||i.type==="url"||i.type==="password")||r==="textarea"||i.contentEditable==="true")}var Wj=fi&&"documentMode"in document&&11>=document.documentMode,wo=null,Tm=null,cc=null,Em=!1;function i0(i,r,o){var h=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;Em||wo==null||wo!==fo(h)||(h=wo,"selectionStart"in h&&_m(h)?h={start:h.selectionStart,end:h.selectionEnd}:(h=(h.ownerDocument&&h.ownerDocument.defaultView||window).getSelection(),h={anchorNode:h.anchorNode,anchorOffset:h.anchorOffset,focusNode:h.focusNode,focusOffset:h.focusOffset}),cc&&lc(cc,h)||(cc=h,h=ud(Tm,"onSelect"),0<h.length&&(r=new ya("onSelect","select",null,r,o),i.push({event:r,listeners:h}),r.target=wo)))}function _a(i,r){var o={};return o[i.toLowerCase()]=r.toLowerCase(),o["Webkit"+i]="webkit"+r,o["Moz"+i]="moz"+r,o}var _o={animationend:_a("Animation","AnimationEnd"),animationiteration:_a("Animation","AnimationIteration"),animationstart:_a("Animation","AnimationStart"),transitionrun:_a("Transition","TransitionRun"),transitionstart:_a("Transition","TransitionStart"),transitioncancel:_a("Transition","TransitionCancel"),transitionend:_a("Transition","TransitionEnd")},Sm={},s0={};fi&&(s0=document.createElement("div").style,"AnimationEvent"in window||(delete _o.animationend.animation,delete _o.animationiteration.animation,delete _o.animationstart.animation),"TransitionEvent"in window||delete _o.transitionend.transition);function Ta(i){if(Sm[i])return Sm[i];if(!_o[i])return i;var r=_o[i],o;for(o in r)if(r.hasOwnProperty(o)&&o in s0)return Sm[i]=r[o];return i}var r0=Ta("animationend"),a0=Ta("animationiteration"),o0=Ta("animationstart"),Qj=Ta("transitionrun"),Xj=Ta("transitionstart"),Jj=Ta("transitioncancel"),l0=Ta("transitionend"),c0=new Map,Am="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(" ");Am.push("scrollEnd");function mi(i,r){c0.set(i,r),gn(r,[i])}var Th=typeof reportError=="function"?reportError:function(i){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof i=="object"&&i!==null&&typeof i.message=="string"?String(i.message):String(i),error:i});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",i);return}console.error(i)},Jn=[],To=0,Nm=0;function Eh(){for(var i=To,r=Nm=To=0;r<i;){var o=Jn[r];Jn[r++]=null;var h=Jn[r];Jn[r++]=null;var p=Jn[r];Jn[r++]=null;var y=Jn[r];if(Jn[r++]=null,h!==null&&p!==null){var w=h.pending;w===null?p.next=p:(p.next=w.next,w.next=p),h.pending=p}y!==0&&u0(o,p,y)}}function Sh(i,r,o,h){Jn[To++]=i,Jn[To++]=r,Jn[To++]=o,Jn[To++]=h,Nm|=h,i.lanes|=h,i=i.alternate,i!==null&&(i.lanes|=h)}function jm(i,r,o,h){return Sh(i,r,o,h),Ah(i)}function Ea(i,r){return Sh(i,null,null,r),Ah(i)}function u0(i,r,o){i.lanes|=o;var h=i.alternate;h!==null&&(h.lanes|=o);for(var p=!1,y=i.return;y!==null;)y.childLanes|=o,h=y.alternate,h!==null&&(h.childLanes|=o),y.tag===22&&(i=y.stateNode,i===null||i._visibility&1||(p=!0)),i=y,y=y.return;return i.tag===3?(y=i.stateNode,p&&r!==null&&(p=31-pn(o),i=y.hiddenUpdates,h=i[p],h===null?i[p]=[r]:h.push(r),r.lane=o|536870912),y):null}function Ah(i){if(50<Ic)throw Ic=0,Pp=null,Error(s(185));for(var r=i.return;r!==null;)i=r,r=i.return;return i.tag===3?i.stateNode:null}var Eo={};function Zj(i,r,o,h){this.tag=i,this.key=o,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=r,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=h,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Un(i,r,o,h){return new Zj(i,r,o,h)}function Rm(i){return i=i.prototype,!(!i||!i.isReactComponent)}function ms(i,r){var o=i.alternate;return o===null?(o=Un(i.tag,r,i.key,i.mode),o.elementType=i.elementType,o.type=i.type,o.stateNode=i.stateNode,o.alternate=i,i.alternate=o):(o.pendingProps=r,o.type=i.type,o.flags=0,o.subtreeFlags=0,o.deletions=null),o.flags=i.flags&65011712,o.childLanes=i.childLanes,o.lanes=i.lanes,o.child=i.child,o.memoizedProps=i.memoizedProps,o.memoizedState=i.memoizedState,o.updateQueue=i.updateQueue,r=i.dependencies,o.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},o.sibling=i.sibling,o.index=i.index,o.ref=i.ref,o.refCleanup=i.refCleanup,o}function h0(i,r){i.flags&=65011714;var o=i.alternate;return o===null?(i.childLanes=0,i.lanes=r,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=o.childLanes,i.lanes=o.lanes,i.child=o.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=o.memoizedProps,i.memoizedState=o.memoizedState,i.updateQueue=o.updateQueue,i.type=o.type,r=o.dependencies,i.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),i}function Nh(i,r,o,h,p,y){var w=0;if(h=i,typeof i=="function")Rm(i)&&(w=1);else if(typeof i=="string")w=sC(i,o,fe.current)?26:i==="html"||i==="head"||i==="body"?27:5;else e:switch(i){case I:return i=Un(31,o,r,p),i.elementType=I,i.lanes=y,i;case L:return Sa(o.children,p,y,r);case R:w=8,p|=24;break;case V:return i=Un(12,o,r,p|2),i.elementType=V,i.lanes=y,i;case re:return i=Un(13,o,r,p),i.elementType=re,i.lanes=y,i;case le:return i=Un(19,o,r,p),i.elementType=le,i.lanes=y,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case z:w=10;break e;case G:w=9;break e;case ne:w=11;break e;case D:w=14;break e;case A:w=16,h=null;break e}w=29,o=Error(s(130,i===null?"null":typeof i,"")),h=null}return r=Un(w,o,r,p),r.elementType=i,r.type=h,r.lanes=y,r}function Sa(i,r,o,h){return i=Un(7,i,h,r),i.lanes=o,i}function Cm(i,r,o){return i=Un(6,i,null,r),i.lanes=o,i}function d0(i){var r=Un(18,null,null,0);return r.stateNode=i,r}function Im(i,r,o){return r=Un(4,i.children!==null?i.children:[],i.key,r),r.lanes=o,r.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},r}var f0=new WeakMap;function Zn(i,r){if(typeof i=="object"&&i!==null){var o=f0.get(i);return o!==void 0?o:(r={value:i,source:r,stack:Xu(r)},f0.set(i,r),r)}return{value:i,source:r,stack:Xu(r)}}var So=[],Ao=0,jh=null,uc=0,ei=[],ti=0,mr=null,Ui=1,Bi="";function ps(i,r){So[Ao++]=uc,So[Ao++]=jh,jh=i,uc=r}function m0(i,r,o){ei[ti++]=Ui,ei[ti++]=Bi,ei[ti++]=mr,mr=i;var h=Ui;i=Bi;var p=32-pn(h)-1;h&=~(1<<p),o+=1;var y=32-pn(r)+p;if(30<y){var w=p-p%5;y=(h&(1<<w)-1).toString(32),h>>=w,p-=w,Ui=1<<32-pn(r)+p|o<<p|h,Bi=y+i}else Ui=1<<y|o<<p|h,Bi=i}function Dm(i){i.return!==null&&(ps(i,1),m0(i,1,0))}function km(i){for(;i===jh;)jh=So[--Ao],So[Ao]=null,uc=So[--Ao],So[Ao]=null;for(;i===mr;)mr=ei[--ti],ei[ti]=null,Bi=ei[--ti],ei[ti]=null,Ui=ei[--ti],ei[ti]=null}function p0(i,r){ei[ti++]=Ui,ei[ti++]=Bi,ei[ti++]=mr,Ui=r.id,Bi=r.overflow,mr=i}var Qt=null,at=null,ze=!1,pr=null,ni=!1,Mm=Error(s(519));function gr(i){var r=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw hc(Zn(r,i)),Mm}function g0(i){var r=i.stateNode,o=i.type,h=i.memoizedProps;switch(r[gt]=i,r[Wt]=h,o){case"dialog":Le("cancel",r),Le("close",r);break;case"iframe":case"object":case"embed":Le("load",r);break;case"video":case"audio":for(o=0;o<kc.length;o++)Le(kc[o],r);break;case"source":Le("error",r);break;case"img":case"image":case"link":Le("error",r),Le("load",r);break;case"details":Le("toggle",r);break;case"input":Le("invalid",r),ma(r,h.value,h.defaultValue,h.checked,h.defaultChecked,h.type,h.name,!0);break;case"select":Le("invalid",r);break;case"textarea":Le("invalid",r),rr(r,h.value,h.defaultValue,h.children)}o=h.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||r.textContent===""+o||h.suppressHydrationWarning===!0||kw(r.textContent,o)?(h.popover!=null&&(Le("beforetoggle",r),Le("toggle",r)),h.onScroll!=null&&Le("scroll",r),h.onScrollEnd!=null&&Le("scrollend",r),h.onClick!=null&&(r.onclick=Bt),r=!0):r=!1,r||gr(i,!0)}function y0(i){for(Qt=i.return;Qt;)switch(Qt.tag){case 5:case 31:case 13:ni=!1;return;case 27:case 3:ni=!0;return;default:Qt=Qt.return}}function No(i){if(i!==Qt)return!1;if(!ze)return y0(i),ze=!0,!1;var r=i.tag,o;if((o=r!==3&&r!==27)&&((o=r===5)&&(o=i.type,o=!(o!=="form"&&o!=="button")||Jp(i.type,i.memoizedProps)),o=!o),o&&at&&gr(i),y0(i),r===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(s(317));at=Fw(i)}else if(r===31){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(s(317));at=Fw(i)}else r===27?(r=at,Cr(i.type)?(i=ig,ig=null,at=i):at=r):at=Qt?si(i.stateNode.nextSibling):null;return!0}function Aa(){at=Qt=null,ze=!1}function Lm(){var i=pr;return i!==null&&(jn===null?jn=i:jn.push.apply(jn,i),pr=null),i}function hc(i){pr===null?pr=[i]:pr.push(i)}var Om=k(null),Na=null,gs=null;function yr(i,r,o){oe(Om,r._currentValue),r._currentValue=o}function ys(i){i._currentValue=Om.current,J(Om)}function Pm(i,r,o){for(;i!==null;){var h=i.alternate;if((i.childLanes&r)!==r?(i.childLanes|=r,h!==null&&(h.childLanes|=r)):h!==null&&(h.childLanes&r)!==r&&(h.childLanes|=r),i===o)break;i=i.return}}function Vm(i,r,o,h){var p=i.child;for(p!==null&&(p.return=i);p!==null;){var y=p.dependencies;if(y!==null){var w=p.child;y=y.firstContext;e:for(;y!==null;){var S=y;y=p;for(var O=0;O<r.length;O++)if(S.context===r[O]){y.lanes|=o,S=y.alternate,S!==null&&(S.lanes|=o),Pm(y.return,o,i),h||(w=null);break e}y=S.next}}else if(p.tag===18){if(w=p.return,w===null)throw Error(s(341));w.lanes|=o,y=w.alternate,y!==null&&(y.lanes|=o),Pm(w,o,i),w=null}else w=p.child;if(w!==null)w.return=p;else for(w=p;w!==null;){if(w===i){w=null;break}if(p=w.sibling,p!==null){p.return=w.return,w=p;break}w=w.return}p=w}}function jo(i,r,o,h){i=null;for(var p=r,y=!1;p!==null;){if(!y){if((p.flags&524288)!==0)y=!0;else if((p.flags&262144)!==0)break}if(p.tag===10){var w=p.alternate;if(w===null)throw Error(s(387));if(w=w.memoizedProps,w!==null){var S=p.type;Vn(p.pendingProps.value,w.value)||(i!==null?i.push(S):i=[S])}}else if(p===Be.current){if(w=p.alternate,w===null)throw Error(s(387));w.memoizedState.memoizedState!==p.memoizedState.memoizedState&&(i!==null?i.push(Vc):i=[Vc])}p=p.return}i!==null&&Vm(r,i,o,h),r.flags|=262144}function Rh(i){for(i=i.firstContext;i!==null;){if(!Vn(i.context._currentValue,i.memoizedValue))return!0;
vendor: 1,378 bytes, line 48
48i=i.next}return!1}function ja(i){Na=i,gs=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function Xt(i){return x0(Na,i)}function Ch(i,r){return Na===null&&ja(i),x0(i,r)}function x0(i,r){var o=r._currentValue;if(r={context:r,memoizedValue:o,next:null},gs===null){if(i===null)throw Error(s(308));gs=r,i.dependencies={lanes:0,firstContext:r},i.flags|=524288}else gs=gs.next=r;return o}var eR=typeof AbortController<"u"?AbortController:function(){var i=[],r=this.signal={aborted:!1,addEventListener:function(o,h){i.push(h)}};this.abort=function(){r.aborted=!0,i.forEach(function(o){return o()})}},tR=t.unstable_scheduleCallback,nR=t.unstable_NormalPriority,At={$$typeof:z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Um(){return{controller:new eR,data:new Map,refCount:0}}function dc(i){i.refCount--,i.refCount===0&&tR(nR,function(){i.controller.abort()})}var fc=null,Bm=0,Ro=0,Co=null;function iR(i,r){if(fc===null){var o=fc=[];Bm=0,Ro=Gp(),Co={status:"pending",value:void 0,then:function(h){o.push(h)}}}return Bm++,r.then(v0,v0),r}function v0(){if(--Bm===0&&fc!==null){Co!==null&&(Co.status="fulfilled");var i=fc;fc=null,Ro=0,Co=null;for(var r=0;r<i.length;r++)(0,i[r])()}}function sR(i,r){var o=[],h={status:"pending",value:null,reason:null,then:function(p){o.push(p)}};return i.then(function(){h.status="fulfilled",h.value=r;
vendor: 8,272 bytes, line 48
48for(var p=0;p<o.length;p++)(0,o[p])(r)},function(p){for(h.status="rejected",h.reason=p,p=0;p<o.length;p++)(0,o[p])(void 0)}),h}var b0=X.S;X.S=function(i,r){iw=Kt(),typeof r=="object"&&r!==null&&typeof r.then=="function"&&iR(i,r),b0!==null&&b0(i,r)};var Ra=k(null);function zm(){var i=Ra.current;return i!==null?i:it.pooledCache}function Ih(i,r){r===null?oe(Ra,Ra.current):oe(Ra,r.pool)}function w0(){var i=zm();return i===null?null:{parent:At._currentValue,pool:i}}var Io=Error(s(460)),Fm=Error(s(474)),Dh=Error(s(542)),kh={then:function(){}};function _0(i){return i=i.status,i==="fulfilled"||i==="rejected"}function T0(i,r,o){switch(o=i[o],o===void 0?i.push(r):o!==r&&(r.then(Bt,Bt),r=o),r.status){case"fulfilled":return r.value;case"rejected":throw i=r.reason,S0(i),i;default:if(typeof r.status=="string")r.then(Bt,Bt);else{if(i=it,i!==null&&100<i.shellSuspendCounter)throw Error(s(482));i=r,i.status="pending",i.then(function(h){if(r.status==="pending"){var p=r;p.status="fulfilled",p.value=h}},function(h){if(r.status==="pending"){var p=r;p.status="rejected",p.reason=h}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw i=r.reason,S0(i),i}throw Ia=r,Io}}function Ca(i){try{var r=i._init;return r(i._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(Ia=o,Io):o}}var Ia=null;function E0(){if(Ia===null)throw Error(s(459));var i=Ia;return Ia=null,i}function S0(i){if(i===Io||i===Dh)throw Error(s(483))}var Do=null,mc=0;function Mh(i){var r=mc;return mc+=1,Do===null&&(Do=[]),T0(Do,i,r)}function pc(i,r){r=r.props.ref,i.ref=r!==void 0?r:null}function Lh(i,r){throw r.$$typeof===T?Error(s(525)):(i=Object.prototype.toString.call(r),Error(s(31,i==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":i)))}function A0(i){function r(q,B){if(i){var $=q.deletions;$===null?(q.deletions=[B],q.flags|=16):$.push(B)}}function o(q,B){if(!i)return null;for(;B!==null;)r(q,B),B=B.sibling;return null}function h(q){for(var B=new Map;q!==null;)q.key!==null?B.set(q.key,q):B.set(q.index,q),q=q.sibling;return B}function p(q,B){return q=ms(q,B),q.index=0,q.sibling=null,q}function y(q,B,$){return q.index=$,i?($=q.alternate,$!==null?($=$.index,$<B?(q.flags|=67108866,B):$):(q.flags|=67108866,B)):(q.flags|=1048576,B)}function w(q){return i&&q.alternate===null&&(q.flags|=67108866),q}function S(q,B,$,ee){return B===null||B.tag!==6?(B=Cm($,q.mode,ee),B.return=q,B):(B=p(B,$),B.return=q,B)}function O(q,B,$,ee){var ye=$.type;return ye===L?Z(q,B,$.props.children,ee,$.key):B!==null&&(B.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===A&&Ca(ye)===B.type)?(B=p(B,$.props),pc(B,$),B.return=q,B):(B=Nh($.type,$.key,$.props,null,q.mode,ee),pc(B,$),B.return=q,B)}function K(q,B,$,ee){return B===null||B.tag!==4||B.stateNode.containerInfo!==$.containerInfo||B.stateNode.implementation!==$.implementation?(B=Im($,q.mode,ee),B.return=q,B):(B=p(B,$.children||[]),B.return=q,B)}function Z(q,B,$,ee,ye){return B===null||B.tag!==7?(B=Sa($,q.mode,ee,ye),B.return=q,B):(B=p(B,$),B.return=q,B)}function te(q,B,$){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return B=Cm(""+B,q.mode,$),B.return=q,B;if(typeof B=="object"&&B!==null){switch(B.$$typeof){case E:return $=Nh(B.type,B.key,B.props,null,q.mode,$),pc($,B),$.return=q,$;case C:return B=Im(B,q.mode,$),B.return=q,B;case A:return B=Ca(B),te(q,B,$)}if(dt(B)||U(B))return B=Sa(B,q.mode,$,null),B.return=q,B;if(typeof B.then=="function")return te(q,Mh(B),$);if(B.$$typeof===z)return te(q,Ch(q,B),$);Lh(q,B)}return null}function Y(q,B,$,ee){var ye=B!==null?B.key:null;if(typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint")return ye!==null?null:S(q,B,""+$,ee);if(typeof $=="object"&&$!==null){switch($.$$typeof){case E:return $.key===ye?O(q,B,$,ee):null;case C:return $.key===ye?K(q,B,$,ee):null;case A:return $=Ca($),Y(q,B,$,ee)}if(dt($)||U($))return ye!==null?null:Z(q,B,$,ee,null);if(typeof $.then=="function")return Y(q,B,Mh($),ee);if($.$$typeof===z)return Y(q,B,Ch(q,$),ee);Lh(q,$)}return null}function W(q,B,$,ee,ye){if(typeof ee=="string"&&ee!==""||typeof ee=="number"||typeof ee=="bigint")return q=q.get($)||null,S(B,q,""+ee,ye);if(typeof ee=="object"&&ee!==null){switch(ee.$$typeof){case E:return q=q.get(ee.key===null?$:ee.key)||null,O(B,q,ee,ye);case C:return q=q.get(ee.key===null?$:ee.key)||null,K(B,q,ee,ye);case A:return ee=Ca(ee),W(q,B,$,ee,ye)}if(dt(ee)||U(ee))return q=q.get($)||null,Z(B,q,ee,ye,null);if(typeof ee.then=="function")return W(q,B,$,Mh(ee),ye);if(ee.$$typeof===z)return W(q,B,$,Ch(B,ee),ye);Lh(B,ee)}return null}function pe(q,B,$,ee){for(var ye=null,$e=null,ge=B,Ce=B=0,Pe=null;ge!==null&&Ce<$.length;Ce++){ge.index>Ce?(Pe=ge,ge=null):Pe=ge.sibling;var Ke=Y(q,ge,$[Ce],ee);if(Ke===null){ge===null&&(ge=Pe);break}i&&ge&&Ke.alternate===null&&r(q,ge),B=y(Ke,B,Ce),$e===null?ye=Ke:$e.sibling=Ke,$e=Ke,ge=Pe}if(Ce===$.length)return o(q,ge),ze&&ps(q,Ce),ye;if(ge===null){for(;Ce<$.length;Ce++)ge=te(q,$[Ce],ee),ge!==null&&(B=y(ge,B,Ce),$e===null?ye=ge:$e.sibling=ge,$e=ge);return ze&&ps(q,Ce),ye}for(ge=h(ge);Ce<$.length;Ce++)Pe=W(ge,q,Ce,$[Ce],ee),Pe!==null&&(i&&Pe.alternate!==null&&ge.delete(Pe.key===null?Ce:Pe.key),B=y(Pe,B,Ce),$e===null?ye=Pe:$e.sibling=Pe,$e=Pe);return i&&ge.forEach(function(Lr){return r(q,Lr)}),ze&&ps(q,Ce),ye}function ve(q,B,$,ee){if($==null)throw Error(s(151));for(var ye=null,$e=null,ge=B,Ce=B=0,Pe=null,Ke=$.next();ge!==null&&!Ke.done;Ce++,Ke=$.next()){ge.index>Ce?(Pe=ge,ge=null):Pe=ge.sibling;var Lr=Y(q,ge,Ke.value,ee);if(Lr===null){ge===null&&(ge=Pe);break}i&&ge&&Lr.alternate===null&&r(q,ge),B=y(Lr,B,Ce),$e===null?ye=Lr:$e.sibling=Lr,$e=Lr,ge=Pe}if(Ke.done)return o(q,ge),ze&&ps(q,Ce),ye;if(ge===null){for(;!Ke.done;Ce++,Ke=$.next())Ke=te(q,Ke.value,ee),Ke!==null&&(B=y(Ke,B,Ce),$e===null?ye=Ke:$e.sibling=Ke,$e=Ke);return ze&&ps(q,Ce),ye}for(ge=h(ge);!Ke.done;Ce++,Ke=$.next())Ke=W(ge,q,Ce,Ke.value,ee),Ke!==null&&(i&&Ke.alternate!==null&&ge.delete(Ke.key===null?Ce:Ke.key),B=y(Ke,B,Ce),$e===null?ye=Ke:$e.sibling=Ke,$e=Ke);return i&&ge.forEach(function(pC){return r(q,pC)}),ze&&ps(q,Ce),ye}function tt(q,B,$,ee){if(typeof $=="object"&&$!==null&&$.type===L&&$.key===null&&($=$.props.children),typeof $=="object"&&$!==null){switch($.$$typeof){case E:e:{for(var ye=$.key;B!==null;){if(B.key===ye){if(ye=$.type,ye===L){if(B.tag===7){o(q,B.sibling),ee=p(B,$.props.children),ee.return=q,q=ee;break e}}else if(B.elementType===ye||typeof ye=="object"&&ye!==null&&ye.$$typeof===A&&Ca(ye)===B.type){o(q,B.sibling),ee=p(B,$.props),pc(ee,$),ee.return=q,q=ee;break e}o(q,B);break}else r(q,B);B=B.sibling}$.type===L?(ee=Sa($.props.children,q.mode,ee,$.key),ee.return=q,q=ee):(ee=Nh($.type,$.key,$.props,null,q.mode,ee),pc(ee,$),ee.return=q,q=ee)}return w(q);case C:e:{for(ye=$.key;B!==null;){if(B.key===ye)if(B.tag===4&&B.stateNode.containerInfo===$.containerInfo&&B.stateNode.implementation===$.implementation){o(q,B.sibling),ee=p(B,$.children||[]),ee.return=q,q=ee;break e}else{o(q,B);break}else r(q,B);B=B.sibling}ee=Im($,q.mode,ee),ee.return=q,q=ee}return w(q);case A:return $=Ca($),tt(q,B,$,ee)}if(dt($))return pe(q,B,$,ee);if(U($)){if(ye=U($),typeof ye!="function")throw Error(s(150));return $=ye.call($),ve(q,B,$,ee)}if(typeof $.then=="function")return tt(q,B,Mh($),ee);if($.$$typeof===z)return tt(q,B,Ch(q,$),ee);Lh(q,$)}return typeof $=="string"&&$!==""||typeof $=="number"||typeof $=="bigint"?($=""+$,B!==null&&B.tag===6?(o(q,B.sibling),ee=p(B,$),ee.return=q,q=ee):(o(q,B),ee=Cm($,q.mode,ee),ee.return=q,q=ee),w(q)):o(q,B)}return function(q,B,$,ee){try{mc=0;var ye=tt(q,B,$,ee);return Do=null,ye}catch(ge){if(ge===Io||ge===Dh)throw ge;var $e=Un(29,ge,null,q.mode);return $e.lanes=ee,$e.return=q,$e}finally{}}}var Da=A0(!0),N0=A0(!1),xr=!1;function Gm(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function qm(i,r){i=i.updateQueue,r.updateQueue===i&&(r.updateQueue={baseState:i.baseState,firstBaseUpdate:i.firstBaseUpdate,lastBaseUpdate:i.lastBaseUpdate,shared:i.shared,callbacks:null})}function vr(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function br(i,r,o){var h=i.updateQueue;if(h===null)return null;if(h=h.shared,(Ye&2)!==0){var p=h.pending;
vendor: 4,887 bytes, line 48
48return p===null?r.next=r:(r.next=p.next,p.next=r),h.pending=r,r=Ah(i),u0(i,null,o),r}return Sh(i,h,r,o),Ah(i)}function gc(i,r,o){if(r=r.updateQueue,r!==null&&(r=r.shared,(o&4194048)!==0)){var h=r.lanes;h&=i.pendingLanes,o|=h,r.lanes=o,Js(i,o)}}function Hm(i,r){var o=i.updateQueue,h=i.alternate;if(h!==null&&(h=h.updateQueue,o===h)){var p=null,y=null;if(o=o.firstBaseUpdate,o!==null){do{var w={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};y===null?p=y=w:y=y.next=w,o=o.next}while(o!==null);y===null?p=y=r:y=y.next=r}else p=y=r;o={baseState:h.baseState,firstBaseUpdate:p,lastBaseUpdate:y,shared:h.shared,callbacks:h.callbacks},i.updateQueue=o;return}i=o.lastBaseUpdate,i===null?o.firstBaseUpdate=r:i.next=r,o.lastBaseUpdate=r}var $m=!1;function yc(){if($m){var i=Co;if(i!==null)throw i}}function xc(i,r,o,h){$m=!1;var p=i.updateQueue;xr=!1;var y=p.firstBaseUpdate,w=p.lastBaseUpdate,S=p.shared.pending;if(S!==null){p.shared.pending=null;var O=S,K=O.next;O.next=null,w===null?y=K:w.next=K,w=O;var Z=i.alternate;Z!==null&&(Z=Z.updateQueue,S=Z.lastBaseUpdate,S!==w&&(S===null?Z.firstBaseUpdate=K:S.next=K,Z.lastBaseUpdate=O))}if(y!==null){var te=p.baseState;w=0,Z=K=O=null,S=y;do{var Y=S.lane&-536870913,W=Y!==S.lane;if(W?(Oe&Y)===Y:(h&Y)===Y){Y!==0&&Y===Ro&&($m=!0),Z!==null&&(Z=Z.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});e:{var pe=i,ve=S;Y=r;var tt=o;switch(ve.tag){case 1:if(pe=ve.payload,typeof pe=="function"){te=pe.call(tt,te,Y);break e}te=pe;break e;case 3:pe.flags=pe.flags&-65537|128;case 0:if(pe=ve.payload,Y=typeof pe=="function"?pe.call(tt,te,Y):pe,Y==null)break e;te=v({},te,Y);break e;case 2:xr=!0}}Y=S.callback,Y!==null&&(i.flags|=64,W&&(i.flags|=8192),W=p.callbacks,W===null?p.callbacks=[Y]:W.push(Y))}else W={lane:Y,tag:S.tag,payload:S.payload,callback:S.callback,next:null},Z===null?(K=Z=W,O=te):Z=Z.next=W,w|=Y;if(S=S.next,S===null){if(S=p.shared.pending,S===null)break;W=S,S=W.next,W.next=null,p.lastBaseUpdate=W,p.shared.pending=null}}while(!0);Z===null&&(O=te),p.baseState=O,p.firstBaseUpdate=K,p.lastBaseUpdate=Z,y===null&&(p.shared.lanes=0),Sr|=w,i.lanes=w,i.memoizedState=te}}function j0(i,r){if(typeof i!="function")throw Error(s(191,i));i.call(r)}function R0(i,r){var o=i.callbacks;if(o!==null)for(i.callbacks=null,i=0;i<o.length;i++)j0(o[i],r)}var ko=k(null),Oh=k(0);function C0(i,r){i=As,oe(Oh,i),oe(ko,r),As=i|r.baseLanes}function Km(){oe(Oh,As),oe(ko,ko.current)}function Ym(){As=Oh.current,J(ko),J(Oh)}var Bn=k(null),ii=null;function wr(i){var r=i.alternate;oe(_t,_t.current&1),oe(Bn,i),ii===null&&(r===null||ko.current!==null||r.memoizedState!==null)&&(ii=i)}function Wm(i){oe(_t,_t.current),oe(Bn,i),ii===null&&(ii=i)}function I0(i){i.tag===22?(oe(_t,_t.current),oe(Bn,i),ii===null&&(ii=i)):_r()}function _r(){oe(_t,_t.current),oe(Bn,Bn.current)}function zn(i){J(Bn),ii===i&&(ii=null),J(_t)}var _t=k(0);function Ph(i){for(var r=i;r!==null;){if(r.tag===13){var o=r.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||tg(o)||ng(o)))return r}else if(r.tag===19&&(r.memoizedProps.revealOrder==="forwards"||r.memoizedProps.revealOrder==="backwards"||r.memoizedProps.revealOrder==="unstable_legacy-backwards"||r.memoizedProps.revealOrder==="together")){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===i)break;for(;r.sibling===null;){if(r.return===null||r.return===i)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}var xs=0,Re=null,Ze=null,Nt=null,Vh=!1,Mo=!1,ka=!1,Uh=0,vc=0,Lo=null,rR=0;function xt(){throw Error(s(321))}function Qm(i,r){if(r===null)return!1;for(var o=0;o<r.length&&o<i.length;o++)if(!Vn(i[o],r[o]))return!1;return!0}function Xm(i,r,o,h,p,y){return xs=y,Re=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,X.H=i===null||i.memoizedState===null?mb:dp,ka=!1,y=o(h,p),ka=!1,Mo&&(y=k0(r,o,h,p)),D0(i),y}function D0(i){X.H=_c;var r=Ze!==null&&Ze.next!==null;if(xs=0,Nt=Ze=Re=null,Vh=!1,vc=0,Lo=null,r)throw Error(s(300));i===null||jt||(i=i.dependencies,i!==null&&Rh(i)&&(jt=!0))}function k0(i,r,o,h){Re=i;var p=0;do{if(Mo&&(Lo=null),vc=0,Mo=!1,25<=p)throw Error(s(301));if(p+=1,Nt=Ze=null,i.updateQueue!=null){var y=i.updateQueue;y.lastEffect=null,y.events=null,y.stores=null,y.memoCache!=null&&(y.memoCache.index=0)}X.H=pb,y=r(o,h)}while(Mo);return y}function aR(){var i=X.H,r=i.useState()[0];return r=typeof r.then=="function"?bc(r):r,i=i.useState()[0],(Ze!==null?Ze.memoizedState:null)!==i&&(Re.flags|=1024),r}function Jm(){var i=Uh!==0;return Uh=0,i}function Zm(i,r,o){r.updateQueue=i.updateQueue,r.flags&=-2053,i.lanes&=~o}function ep(i){if(Vh){for(i=i.memoizedState;i!==null;){var r=i.queue;r!==null&&(r.pending=null),i=i.next}Vh=!1}xs=0,Nt=Ze=Re=null,Mo=!1,vc=Uh=0,Lo=null}function bn(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Nt===null?Re.memoizedState=Nt=i:Nt=Nt.next=i,Nt}
vendor: 18,836 bytes, line 48
48function Tt(){if(Ze===null){var i=Re.alternate;i=i!==null?i.memoizedState:null}else i=Ze.next;var r=Nt===null?Re.memoizedState:Nt.next;if(r!==null)Nt=r,Ze=i;else{if(i===null)throw Re.alternate===null?Error(s(467)):Error(s(310));Ze=i,i={memoizedState:Ze.memoizedState,baseState:Ze.baseState,baseQueue:Ze.baseQueue,queue:Ze.queue,next:null},Nt===null?Re.memoizedState=Nt=i:Nt=Nt.next=i}return Nt}function Bh(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function bc(i){var r=vc;return vc+=1,Lo===null&&(Lo=[]),i=T0(Lo,i,r),r=Re,(Nt===null?r.memoizedState:Nt.next)===null&&(r=r.alternate,X.H=r===null||r.memoizedState===null?mb:dp),i}function zh(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return bc(i);if(i.$$typeof===z)return Xt(i)}throw Error(s(438,String(i)))}function tp(i){var r=null,o=Re.updateQueue;if(o!==null&&(r=o.memoCache),r==null){var h=Re.alternate;h!==null&&(h=h.updateQueue,h!==null&&(h=h.memoCache,h!=null&&(r={data:h.data.map(function(p){return p.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),o===null&&(o=Bh(),Re.updateQueue=o),o.memoCache=r,o=r.data[r.index],o===void 0)for(o=r.data[r.index]=Array(i),h=0;h<i;h++)o[h]=P;return r.index++,o}function vs(i,r){return typeof r=="function"?r(i):r}function Fh(i){var r=Tt();return np(r,Ze,i)}function np(i,r,o){var h=i.queue;if(h===null)throw Error(s(311));h.lastRenderedReducer=o;var p=i.baseQueue,y=h.pending;if(y!==null){if(p!==null){var w=p.next;p.next=y.next,y.next=w}r.baseQueue=p=y,h.pending=null}if(y=i.baseState,p===null)i.memoizedState=y;else{r=p.next;var S=w=null,O=null,K=r,Z=!1;do{var te=K.lane&-536870913;if(te!==K.lane?(Oe&te)===te:(xs&te)===te){var Y=K.revertLane;if(Y===0)O!==null&&(O=O.next={lane:0,revertLane:0,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null}),te===Ro&&(Z=!0);else if((xs&Y)===Y){K=K.next,Y===Ro&&(Z=!0);continue}else te={lane:0,revertLane:K.revertLane,gesture:null,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},O===null?(S=O=te,w=y):O=O.next=te,Re.lanes|=Y,Sr|=Y;te=K.action,ka&&o(y,te),y=K.hasEagerState?K.eagerState:o(y,te)}else Y={lane:te,revertLane:K.revertLane,gesture:K.gesture,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},O===null?(S=O=Y,w=y):O=O.next=Y,Re.lanes|=te,Sr|=te;K=K.next}while(K!==null&&K!==r);if(O===null?w=y:O.next=S,!Vn(y,i.memoizedState)&&(jt=!0,Z&&(o=Co,o!==null)))throw o;i.memoizedState=y,i.baseState=w,i.baseQueue=O,h.lastRenderedState=y}return p===null&&(h.lanes=0),[i.memoizedState,h.dispatch]}function ip(i){var r=Tt(),o=r.queue;if(o===null)throw Error(s(311));o.lastRenderedReducer=i;var h=o.dispatch,p=o.pending,y=r.memoizedState;if(p!==null){o.pending=null;var w=p=p.next;do y=i(y,w.action),w=w.next;while(w!==p);Vn(y,r.memoizedState)||(jt=!0),r.memoizedState=y,r.baseQueue===null&&(r.baseState=y),o.lastRenderedState=y}return[y,h]}function M0(i,r,o){var h=Re,p=Tt(),y=ze;if(y){if(o===void 0)throw Error(s(407));o=o()}else o=r();var w=!Vn((Ze||p).memoizedState,o);if(w&&(p.memoizedState=o,jt=!0),p=p.queue,ap(P0.bind(null,h,p,i),[i]),p.getSnapshot!==r||w||Nt!==null&&Nt.memoizedState.tag&1){if(h.flags|=2048,Oo(9,{destroy:void 0},O0.bind(null,h,p,o,r),null),it===null)throw Error(s(349));y||(xs&127)!==0||L0(h,r,o)}return o}function L0(i,r,o){i.flags|=16384,i={getSnapshot:r,value:o},r=Re.updateQueue,r===null?(r=Bh(),Re.updateQueue=r,r.stores=[i]):(o=r.stores,o===null?r.stores=[i]:o.push(i))}function O0(i,r,o,h){r.value=o,r.getSnapshot=h,V0(r)&&U0(i)}function P0(i,r,o){return o(function(){V0(r)&&U0(i)})}function V0(i){var r=i.getSnapshot;i=i.value;try{var o=r();return!Vn(i,o)}catch{return!0}}function U0(i){var r=Ea(i,2);r!==null&&Rn(r,i,2)}function sp(i){var r=bn();if(typeof i=="function"){var o=i;if(i=o(),ka){Yn(!0);try{o()}finally{Yn(!1)}}}return r.memoizedState=r.baseState=i,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:vs,lastRenderedState:i},r}function B0(i,r,o,h){return i.baseState=o,np(i,Ze,typeof h=="function"?h:vs)}function oR(i,r,o,h,p){if(Hh(i))throw Error(s(485));if(i=r.action,i!==null){var y={payload:p,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(w){y.listeners.push(w)}};X.T!==null?o(!0):y.isTransition=!1,h(y),o=r.pending,o===null?(y.next=r.pending=y,z0(r,y)):(y.next=o.next,r.pending=o.next=y)}}function z0(i,r){var o=r.action,h=r.payload,p=i.state;if(r.isTransition){var y=X.T,w={};X.T=w;try{var S=o(p,h),O=X.S;O!==null&&O(w,S),F0(i,r,S)}catch(K){rp(i,r,K)}finally{y!==null&&w.types!==null&&(y.types=w.types),X.T=y}}else try{y=o(p,h),F0(i,r,y)}catch(K){rp(i,r,K)}}function F0(i,r,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(h){G0(i,r,h)},function(h){return rp(i,r,h)}):G0(i,r,o)}function G0(i,r,o){r.status="fulfilled",r.value=o,q0(r),i.state=o,r=i.pending,r!==null&&(o=r.next,o===r?i.pending=null:(o=o.next,r.next=o,z0(i,o)))}function rp(i,r,o){var h=i.pending;if(i.pending=null,h!==null){h=h.next;do r.status="rejected",r.reason=o,q0(r),r=r.next;while(r!==h)}i.action=null}function q0(i){i=i.listeners;for(var r=0;r<i.length;r++)(0,i[r])()}function H0(i,r){return r}function $0(i,r){if(ze){var o=it.formState;if(o!==null){e:{var h=Re;if(ze){if(at){t:{for(var p=at,y=ni;p.nodeType!==8;){if(!y){p=null;break t}if(p=si(p.nextSibling),p===null){p=null;break t}}y=p.data,p=y==="F!"||y==="F"?p:null}if(p){at=si(p.nextSibling),h=p.data==="F!";break e}}gr(h)}h=!1}h&&(r=o[0])}}return o=bn(),o.memoizedState=o.baseState=r,h={pending:null,lanes:0,dispatch:null,lastRenderedReducer:H0,lastRenderedState:r},o.queue=h,o=hb.bind(null,Re,h),h.dispatch=o,h=sp(!1),y=hp.bind(null,Re,!1,h.queue),h=bn(),p={state:r,dispatch:null,action:i,pending:null},h.queue=p,o=oR.bind(null,Re,p,y,o),p.dispatch=o,h.memoizedState=i,[r,o,!1]}function K0(i){var r=Tt();return Y0(r,Ze,i)}function Y0(i,r,o){if(r=np(i,r,H0)[0],i=Fh(vs)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var h=bc(r)}catch(w){throw w===Io?Dh:w}else h=r;r=Tt();var p=r.queue,y=p.dispatch;return o!==r.memoizedState&&(Re.flags|=2048,Oo(9,{destroy:void 0},lR.bind(null,p,o),null)),[h,y,i]}function lR(i,r){i.action=r}function W0(i){var r=Tt(),o=Ze;if(o!==null)return Y0(r,o,i);Tt(),r=r.memoizedState,o=Tt();var h=o.queue.dispatch;return o.memoizedState=i,[r,h,!1]}function Oo(i,r,o,h){return i={tag:i,create:o,deps:h,inst:r,next:null},r=Re.updateQueue,r===null&&(r=Bh(),Re.updateQueue=r),o=r.lastEffect,o===null?r.lastEffect=i.next=i:(h=o.next,o.next=i,i.next=h,r.lastEffect=i),i}function Q0(){return Tt().memoizedState}function Gh(i,r,o,h){var p=bn();Re.flags|=i,p.memoizedState=Oo(1|r,{destroy:void 0},o,h===void 0?null:h)}function qh(i,r,o,h){var p=Tt();h=h===void 0?null:h;var y=p.memoizedState.inst;Ze!==null&&h!==null&&Qm(h,Ze.memoizedState.deps)?p.memoizedState=Oo(r,y,o,h):(Re.flags|=i,p.memoizedState=Oo(1|r,y,o,h))}function X0(i,r){Gh(8390656,8,i,r)}function ap(i,r){qh(2048,8,i,r)}function cR(i){Re.flags|=4;var r=Re.updateQueue;if(r===null)r=Bh(),Re.updateQueue=r,r.events=[i];else{var o=r.events;o===null?r.events=[i]:o.push(i)}}function J0(i){var r=Tt().memoizedState;return cR({ref:r,nextImpl:i}),function(){if((Ye&2)!==0)throw Error(s(440));return r.impl.apply(void 0,arguments)}}function Z0(i,r){return qh(4,2,i,r)}function eb(i,r){return qh(4,4,i,r)}function tb(i,r){if(typeof r=="function"){i=i();var o=r(i);return function(){typeof o=="function"?o():r(null)}}if(r!=null)return i=i(),r.current=i,function(){r.current=null}}function nb(i,r,o){o=o!=null?o.concat([i]):null,qh(4,4,tb.bind(null,r,i),o)}function op(){}function ib(i,r){var o=Tt();r=r===void 0?null:r;var h=o.memoizedState;return r!==null&&Qm(r,h[1])?h[0]:(o.memoizedState=[i,r],i)}function sb(i,r){var o=Tt();r=r===void 0?null:r;var h=o.memoizedState;if(r!==null&&Qm(r,h[1]))return h[0];if(h=i(),ka){Yn(!0);try{i()}finally{Yn(!1)}}return o.memoizedState=[h,r],h}function lp(i,r,o){return o===void 0||(xs&1073741824)!==0&&(Oe&261930)===0?i.memoizedState=r:(i.memoizedState=o,i=rw(),Re.lanes|=i,Sr|=i,o)}function rb(i,r,o,h){return Vn(o,r)?o:ko.current!==null?(i=lp(i,o,h),Vn(i,r)||(jt=!0),i):(xs&42)===0||(xs&1073741824)!==0&&(Oe&261930)===0?(jt=!0,i.memoizedState=o):(i=rw(),Re.lanes|=i,Sr|=i,r)}function ab(i,r,o,h,p){var y=ae.p;ae.p=y!==0&&8>y?y:8;var w=X.T,S={};X.T=S,hp(i,!1,r,o);try{var O=p(),K=X.S;if(K!==null&&K(S,O),O!==null&&typeof O=="object"&&typeof O.then=="function"){var Z=sR(O,h);wc(i,r,Z,qn(i))}else wc(i,r,h,qn(i))}catch(te){wc(i,r,{then:function(){},status:"rejected",reason:te},qn())}finally{ae.p=y,w!==null&&S.types!==null&&(w.types=S.types),X.T=w}}function uR(){}function cp(i,r,o,h){if(i.tag!==5)throw Error(s(476));var p=ob(i).queue;ab(i,p,r,ue,o===null?uR:function(){return lb(i),o(h)})}function ob(i){var r=i.memoizedState;if(r!==null)return r;r={memoizedState:ue,baseState:ue,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:vs,lastRenderedState:ue},next:null};var o={};return r.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:vs,lastRenderedState:o},next:null},i.memoizedState=r,i=i.alternate,i!==null&&(i.memoizedState=r),r}function lb(i){var r=ob(i);r.next===null&&(r=i.alternate.memoizedState),wc(i,r.next.queue,{},qn())}function up(){return Xt(Vc)}function cb(){return Tt().memoizedState}function ub(){return Tt().memoizedState}function hR(i){for(var r=i.return;r!==null;){switch(r.tag){case 24:case 3:var o=qn();i=vr(o);var h=br(r,i,o);h!==null&&(Rn(h,r,o),gc(h,r,o)),r={cache:Um()},i.payload=r;return}r=r.return}}function dR(i,r,o){var h=qn();o={lane:h,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},Hh(i)?db(r,o):(o=jm(i,r,o,h),o!==null&&(Rn(o,i,h),fb(o,r,h)))}function hb(i,r,o){var h=qn();wc(i,r,o,h)}function wc(i,r,o,h){var p={lane:h,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(Hh(i))db(r,p);else{var y=i.alternate;if(i.lanes===0&&(y===null||y.lanes===0)&&(y=r.lastRenderedReducer,y!==null))try{var w=r.lastRenderedState,S=y(w,o);if(p.hasEagerState=!0,p.eagerState=S,Vn(S,w))return Sh(i,r,p,0),it===null&&Eh(),!1}catch{}finally{}if(o=jm(i,r,p,h),o!==null)return Rn(o,i,h),fb(o,r,h),!0}return!1}function hp(i,r,o,h){if(h={lane:2,revertLane:Gp(),gesture:null,action:h,hasEagerState:!1,eagerState:null,next:null},Hh(i)){if(r)throw Error(s(479))}else r=jm(i,o,h,2),r!==null&&Rn(r,i,2)}function Hh(i){var r=i.alternate;return i===Re||r!==null&&r===Re}function db(i,r){Mo=Vh=!0;var o=i.pending;o===null?r.next=r:(r.next=o.next,o.next=r),i.pending=r}function fb(i,r,o){if((o&4194048)!==0){var h=r.lanes;h&=i.pendingLanes,o|=h,r.lanes=o,Js(i,o)}}var _c={readContext:Xt,use:zh,useCallback:xt,useContext:xt,useEffect:xt,useImperativeHandle:xt,useLayoutEffect:xt,useInsertionEffect:xt,useMemo:xt,useReducer:xt,useRef:xt,useState:xt,useDebugValue:xt,useDeferredValue:xt,useTransition:xt,useSyncExternalStore:xt,useId:xt,useHostTransitionStatus:xt,useFormState:xt,useActionState:xt,useOptimistic:xt,useMemoCache:xt,useCacheRefresh:xt};_c.useEffectEvent=xt;var mb={readContext:Xt,use:zh,useCallback:function(i,r){return bn().memoizedState=[i,r===void 0?null:r],i},useContext:Xt,useEffect:X0,useImperativeHandle:function(i,r,o){o=o!=null?o.concat([i]):null,Gh(4194308,4,tb.bind(null,r,i),o)},useLayoutEffect:function(i,r){return Gh(4194308,4,i,r)},useInsertionEffect:function(i,r){Gh(4,2,i,r)},useMemo:function(i,r){var o=bn();r=r===void 0?null:r;var h=i();if(ka){Yn(!0);try{i()}finally{Yn(!1)}}return o.memoizedState=[h,r],h},useReducer:function(i,r,o){var h=bn();if(o!==void 0){var p=o(r);if(ka){Yn(!0);try{o(r)}finally{Yn(!1)}}}else p=r;return h.memoizedState=h.baseState=p,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:p},h.queue=i,i=i.dispatch=dR.bind(null,Re,i),[h.memoizedState,i]},useRef:function(i){var r=bn();return i={current:i},r.memoizedState=i},useState:function(i){i=sp(i);var r=i.queue,o=hb.bind(null,Re,r);return r.dispatch=o,[i.memoizedState,o]},useDebugValue:op,useDeferredValue:function(i,r){var o=bn();return lp(o,i,r)},useTransition:function(){var i=sp(!1);return i=ab.bind(null,Re,i.queue,!0,!1),bn().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,r,o){var h=Re,p=bn();if(ze){if(o===void 0)throw Error(s(407));o=o()}else{if(o=r(),it===null)throw Error(s(349));(Oe&127)!==0||L0(h,r,o)}p.memoizedState=o;var y={value:o,getSnapshot:r};return p.queue=y,X0(P0.bind(null,h,y,i),[i]),h.flags|=2048,Oo(9,{destroy:void 0},O0.bind(null,h,y,o,r),null),o},useId:function(){var i=bn(),r=it.identifierPrefix;if(ze){var o=Bi,h=Ui;o=(h&~(1<<32-pn(h)-1)).toString(32)+o,r="_"+r+"R_"+o,o=Uh++,0<o&&(r+="H"+o.toString(32)),r+="_"}else o=rR++,r="_"+r+"r_"+o.toString(32)+"_";return i.memoizedState=r},useHostTransitionStatus:up,useFormState:$0,useActionState:$0,useOptimistic:function(i){var r=bn();r.memoizedState=r.baseState=i;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=o,r=hp.bind(null,Re,!0,o),o.dispatch=r,[i,r]},useMemoCache:tp,useCacheRefresh:function(){return bn().memoizedState=hR.bind(null,Re)},useEffectEvent:function(i){var r=bn(),o={impl:i};return r.memoizedState=o,function(){if((Ye&2)!==0)throw Error(s(440));return o.impl.apply(void 0,arguments)}}},dp={readContext:Xt,use:zh,useCallback:ib,useContext:Xt,useEffect:ap,useImperativeHandle:nb,useInsertionEffect:Z0,useLayoutEffect:eb,useMemo:sb,useReducer:Fh,useRef:Q0,useState:function(){return Fh(vs)},useDebugValue:op,useDeferredValue:function(i,r){var o=Tt();return rb(o,Ze.memoizedState,i,r)},useTransition:function(){var i=Fh(vs)[0],r=Tt().memoizedState;return[typeof i=="boolean"?i:bc(i),r]},useSyncExternalStore:M0,useId:cb,useHostTransitionStatus:up,useFormState:K0,useActionState:K0,useOptimistic:function(i,r){var o=Tt();return B0(o,Ze,i,r)},useMemoCache:tp,useCacheRefresh:ub};dp.useEffectEvent=J0;var pb={readContext:Xt,use:zh,useCallback:ib,useContext:Xt,useEffect:ap,useImperativeHandle:nb,useInsertionEffect:Z0,useLayoutEffect:eb,useMemo:sb,useReducer:ip,useRef:Q0,useState:function(){return ip(vs)},useDebugValue:op,useDeferredValue:function(i,r){var o=Tt();return Ze===null?lp(o,i,r):rb(o,Ze.memoizedState,i,r)},useTransition:function(){var i=ip(vs)[0],r=Tt().memoizedState;return[typeof i=="boolean"?i:bc(i),r]},useSyncExternalStore:M0,useId:cb,useHostTransitionStatus:up,useFormState:W0,useActionState:W0,useOptimistic:function(i,r){var o=Tt();return Ze!==null?B0(o,Ze,i,r):(o.baseState=i,[i,o.queue.dispatch])},useMemoCache:tp,useCacheRefresh:ub};pb.useEffectEvent=J0;function fp(i,r,o,h){r=i.memoizedState,o=o(h,r),o=o==null?r:v({},r,o),i.memoizedState=o,i.lanes===0&&(i.updateQueue.baseState=o)}var mp={enqueueSetState:function(i,r,o){i=i._reactInternals;var h=qn(),p=vr(h);p.payload=r,o!=null&&(p.callback=o),r=br(i,p,h),r!==null&&(Rn(r,i,h),gc(r,i,h))},enqueueReplaceState:function(i,r,o){i=i._reactInternals;var h=qn(),p=vr(h);p.tag=1,p.payload=r,o!=null&&(p.callback=o),r=br(i,p,h),r!==null&&(Rn(r,i,h),gc(r,i,h))},enqueueForceUpdate:function(i,r){i=i._reactInternals;var o=qn(),h=vr(o);h.tag=2,r!=null&&(h.callback=r),r=br(i,h,o),r!==null&&(Rn(r,i,o),gc(r,i,o))}};function gb(i,r,o,h,p,y,w){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(h,y,w):r.prototype&&r.prototype.isPureReactComponent?!lc(o,h)||!lc(p,y):!0}function yb(i,r,o,h){i=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(o,h),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(o,h),r.state!==i&&mp.enqueueReplaceState(r,r.state,null)}function Ma(i,r){var o=r;if("ref"in r){o={};for(var h in r)h!=="ref"&&(o[h]=r[h])}if(i=i.defaultProps){o===r&&(o=v({},o));for(var p in i)o[p]===void 0&&(o[p]=i[p])}return o}function xb(i){Th(i)}function vb(i){console.error(i)}function bb(i){Th(i)}function $h(i,r){try{var o=i.onUncaughtError;o(r.value,{componentStack:r.stack})}catch(h){setTimeout(function(){throw h})}}function wb(i,r,o){try{var h=i.onCaughtError;h(o.value,{componentStack:o.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(p){setTimeout(function(){throw p})}}function pp(i,r,o){return o=vr(o),o.tag=3,o.payload={element:null},o.callback=function(){$h(i,r)},o}function _b(i){return i=vr(i),i.tag=3,i}function Tb(i,r,o,h){var p=o.type.getDerivedStateFromError;if(typeof p=="function"){var y=h.value;i.payload=function(){return p(y)},i.callback=function(){wb(r,o,h)}}var w=o.stateNode;w!==null&&typeof w.componentDidCatch=="function"&&(i.callback=function(){wb(r,o,h),typeof p!="function"&&(Ar===null?Ar=new Set([this]):Ar.add(this));var S=h.stack;this.componentDidCatch(h.value,{componentStack:S!==null?S:""})})}function fR(i,r,o,h,p){if(o.flags|=32768,h!==null&&typeof h=="object"&&typeof h.then=="function"){if(r=o.alternate,r!==null&&jo(r,o,p,!0),o=Bn.current,o!==null){switch(o.tag){case 31:case 13:return ii===null?sd():o.alternate===null&&vt===0&&(vt=3),o.flags&=-257,o.flags|=65536,o.lanes=p,h===kh?o.flags|=16384:(r=o.updateQueue,r===null?o.updateQueue=new Set([h]):r.add(h),Bp(i,h,p)),!1;case 22:return o.flags|=65536,h===kh?o.flags|=16384:(r=o.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([h])},o.updateQueue=r):(o=r.retryQueue,o===null?r.retryQueue=new Set([h]):o.add(h)),Bp(i,h,p)),!1}throw Error(s(435,o.tag))}return Bp(i,h,p),sd(),!1}if(ze)return r=Bn.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=p,h!==Mm&&(i=Error(s(422),{cause:h}),hc(Zn(i,o)))):(h!==Mm&&(r=Error(s(423),{cause:h}),hc(Zn(r,o))),i=i.current.alternate,i.flags|=65536,p&=-p,i.lanes|=p,h=Zn(h,o),p=pp(i.stateNode,h,p),Hm(i,p),vt!==4&&(vt=2)),!1;var y=Error(s(520),{cause:h});if(y=Zn(y,o),Cc===null?Cc=[y]:Cc.push(y),vt!==4&&(vt=2),r===null)return!0;h=Zn(h,o),o=r;do{switch(o.tag){case 3:return o.flags|=65536,i=p&-p,o.lanes|=i,i=pp(o.stateNode,h,i),Hm(o,i),!1;case 1:if(r=o.type,y=o.stateNode,(o.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||y!==null&&typeof y.componentDidCatch=="function"&&(Ar===null||!Ar.has(y))))return o.flags|=65536,p&=-p,o.lanes|=p,p=_b(p),Tb(p,i,o,h),Hm(o,p),!1}o=o.return}while(o!==null);return!1}var gp=Error(s(461)),jt=!1;function Jt(i,r,o,h){r.child=i===null?N0(r,null,o,h):Da(r,i.child,o,h)}function Eb(i,r,o,h,p){o=o.render;var y=r.ref;if("ref"in h){var w={};for(var S in h)S!=="ref"&&(w[S]=h[S])}else w=h;return ja(r),h=Xm(i,r,o,w,y,p),S=Jm(),i!==null&&!jt?(Zm(i,r,p),bs(i,r,p)):(ze&&S&&Dm(r),r.flags|=1,Jt(i,r,h,p),r.child)}function Sb(i,r,o,h,p){if(i===null){var y=o.type;return typeof y=="function"&&!Rm(y)&&y.defaultProps===void 0&&o.compare===null?(r.tag=15,r.type=y,Ab(i,r,y,h,p)):(i=Nh(o.type,null,h,r,r.mode,p),i.ref=r.ref,i.return=r,r.child=i)}if(y=i.child,!Ep(i,p)){var w=y.memoizedProps;
vendor: 10,335 bytes, line 48
48if(o=o.compare,o=o!==null?o:lc,o(w,h)&&i.ref===r.ref)return bs(i,r,p)}return r.flags|=1,i=ms(y,h),i.ref=r.ref,i.return=r,r.child=i}function Ab(i,r,o,h,p){if(i!==null){var y=i.memoizedProps;if(lc(y,h)&&i.ref===r.ref)if(jt=!1,r.pendingProps=h=y,Ep(i,p))(i.flags&131072)!==0&&(jt=!0);else return r.lanes=i.lanes,bs(i,r,p)}return yp(i,r,o,h,p)}function Nb(i,r,o,h){var p=h.children,y=i!==null?i.memoizedState:null;if(i===null&&r.stateNode===null&&(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),h.mode==="hidden"){if((r.flags&128)!==0){if(y=y!==null?y.baseLanes|o:o,i!==null){for(h=r.child=i.child,p=0;h!==null;)p=p|h.lanes|h.childLanes,h=h.sibling;h=p&~y}else h=0,r.child=null;return jb(i,r,y,o,h)}if((o&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},i!==null&&Ih(r,y!==null?y.cachePool:null),y!==null?C0(r,y):Km(),I0(r);else return h=r.lanes=536870912,jb(i,r,y!==null?y.baseLanes|o:o,o,h)}else y!==null?(Ih(r,y.cachePool),C0(r,y),_r(),r.memoizedState=null):(i!==null&&Ih(r,null),Km(),_r());return Jt(i,r,p,o),r.child}function Tc(i,r){return i!==null&&i.tag===22||r.stateNode!==null||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function jb(i,r,o,h,p){var y=zm();return y=y===null?null:{parent:At._currentValue,pool:y},r.memoizedState={baseLanes:o,cachePool:y},i!==null&&Ih(r,null),Km(),I0(r),i!==null&&jo(i,r,h,!0),r.childLanes=p,null}function Kh(i,r){return r=Wh({mode:r.mode,children:r.children},i.mode),r.ref=i.ref,i.child=r,r.return=i,r}function Rb(i,r,o){return Da(r,i.child,null,o),i=Kh(r,r.pendingProps),i.flags|=2,zn(r),r.memoizedState=null,i}function mR(i,r,o){var h=r.pendingProps,p=(r.flags&128)!==0;if(r.flags&=-129,i===null){if(ze){if(h.mode==="hidden")return i=Kh(r,h),r.lanes=536870912,Tc(null,i);if(Wm(r),(i=at)?(i=zw(i,ni),i=i!==null&&i.data==="&"?i:null,i!==null&&(r.memoizedState={dehydrated:i,treeContext:mr!==null?{id:Ui,overflow:Bi}:null,retryLane:536870912,hydrationErrors:null},o=d0(i),o.return=r,r.child=o,Qt=r,at=null)):i=null,i===null)throw gr(r);return r.lanes=536870912,null}return Kh(r,h)}var y=i.memoizedState;if(y!==null){var w=y.dehydrated;if(Wm(r),p)if(r.flags&256)r.flags&=-257,r=Rb(i,r,o);else if(r.memoizedState!==null)r.child=i.child,r.flags|=128,r=null;else throw Error(s(558));else if(jt||jo(i,r,o,!1),p=(o&i.childLanes)!==0,jt||p){if(h=it,h!==null&&(w=Zs(h,o),w!==0&&w!==y.retryLane))throw y.retryLane=w,Ea(i,w),Rn(h,i,w),gp;sd(),r=Rb(i,r,o)}else i=y.treeContext,at=si(w.nextSibling),Qt=r,ze=!0,pr=null,ni=!1,i!==null&&p0(r,i),r=Kh(r,h),r.flags|=4096;return r}return i=ms(i.child,{mode:h.mode,children:h.children}),i.ref=r.ref,r.child=i,i.return=r,i}function Yh(i,r){var o=r.ref;if(o===null)i!==null&&i.ref!==null&&(r.flags|=4194816);else{if(typeof o!="function"&&typeof o!="object")throw Error(s(284));(i===null||i.ref!==o)&&(r.flags|=4194816)}}function yp(i,r,o,h,p){return ja(r),o=Xm(i,r,o,h,void 0,p),h=Jm(),i!==null&&!jt?(Zm(i,r,p),bs(i,r,p)):(ze&&h&&Dm(r),r.flags|=1,Jt(i,r,o,p),r.child)}function Cb(i,r,o,h,p,y){return ja(r),r.updateQueue=null,o=k0(r,h,o,p),D0(i),h=Jm(),i!==null&&!jt?(Zm(i,r,y),bs(i,r,y)):(ze&&h&&Dm(r),r.flags|=1,Jt(i,r,o,y),r.child)}function Ib(i,r,o,h,p){if(ja(r),r.stateNode===null){var y=Eo,w=o.contextType;typeof w=="object"&&w!==null&&(y=Xt(w)),y=new o(h,y),r.memoizedState=y.state!==null&&y.state!==void 0?y.state:null,y.updater=mp,r.stateNode=y,y._reactInternals=r,y=r.stateNode,y.props=h,y.state=r.memoizedState,y.refs={},Gm(r),w=o.contextType,y.context=typeof w=="object"&&w!==null?Xt(w):Eo,y.state=r.memoizedState,w=o.getDerivedStateFromProps,typeof w=="function"&&(fp(r,o,w,h),y.state=r.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof y.getSnapshotBeforeUpdate=="function"||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(w=y.state,typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount(),w!==y.state&&mp.enqueueReplaceState(y,y.state,null),xc(r,h,y,p),yc(),y.state=r.memoizedState),typeof y.componentDidMount=="function"&&(r.flags|=4194308),h=!0}else if(i===null){y=r.stateNode;var S=r.memoizedProps,O=Ma(o,S);y.props=O;var K=y.context,Z=o.contextType;w=Eo,typeof Z=="object"&&Z!==null&&(w=Xt(Z));var te=o.getDerivedStateFromProps;Z=typeof te=="function"||typeof y.getSnapshotBeforeUpdate=="function",S=r.pendingProps!==S,Z||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(S||K!==w)&&yb(r,y,h,w),xr=!1;var Y=r.memoizedState;y.state=Y,xc(r,h,y,p),yc(),K=r.memoizedState,S||Y!==K||xr?(typeof te=="function"&&(fp(r,o,te,h),K=r.memoizedState),(O=xr||gb(r,o,O,h,Y,K,w))?(Z||typeof y.UNSAFE_componentWillMount!="function"&&typeof y.componentWillMount!="function"||(typeof y.componentWillMount=="function"&&y.componentWillMount(),typeof y.UNSAFE_componentWillMount=="function"&&y.UNSAFE_componentWillMount()),typeof y.componentDidMount=="function"&&(r.flags|=4194308)):(typeof y.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=h,r.memoizedState=K),y.props=h,y.state=K,y.context=w,h=O):(typeof y.componentDidMount=="function"&&(r.flags|=4194308),h=!1)}else{y=r.stateNode,qm(i,r),w=r.memoizedProps,Z=Ma(o,w),y.props=Z,te=r.pendingProps,Y=y.context,K=o.contextType,O=Eo,typeof K=="object"&&K!==null&&(O=Xt(K)),S=o.getDerivedStateFromProps,(K=typeof S=="function"||typeof y.getSnapshotBeforeUpdate=="function")||typeof y.UNSAFE_componentWillReceiveProps!="function"&&typeof y.componentWillReceiveProps!="function"||(w!==te||Y!==O)&&yb(r,y,h,O),xr=!1,Y=r.memoizedState,y.state=Y,xc(r,h,y,p),yc();var W=r.memoizedState;w!==te||Y!==W||xr||i!==null&&i.dependencies!==null&&Rh(i.dependencies)?(typeof S=="function"&&(fp(r,o,S,h),W=r.memoizedState),(Z=xr||gb(r,o,Z,h,Y,W,O)||i!==null&&i.dependencies!==null&&Rh(i.dependencies))?(K||typeof y.UNSAFE_componentWillUpdate!="function"&&typeof y.componentWillUpdate!="function"||(typeof y.componentWillUpdate=="function"&&y.componentWillUpdate(h,W,O),typeof y.UNSAFE_componentWillUpdate=="function"&&y.UNSAFE_componentWillUpdate(h,W,O)),typeof y.componentDidUpdate=="function"&&(r.flags|=4),typeof y.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof y.componentDidUpdate!="function"||w===i.memoizedProps&&Y===i.memoizedState||(r.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||w===i.memoizedProps&&Y===i.memoizedState||(r.flags|=1024),r.memoizedProps=h,r.memoizedState=W),y.props=h,y.state=W,y.context=O,h=Z):(typeof y.componentDidUpdate!="function"||w===i.memoizedProps&&Y===i.memoizedState||(r.flags|=4),typeof y.getSnapshotBeforeUpdate!="function"||w===i.memoizedProps&&Y===i.memoizedState||(r.flags|=1024),h=!1)}return y=h,Yh(i,r),h=(r.flags&128)!==0,y||h?(y=r.stateNode,o=h&&typeof o.getDerivedStateFromError!="function"?null:y.render(),r.flags|=1,i!==null&&h?(r.child=Da(r,i.child,null,p),r.child=Da(r,null,o,p)):Jt(i,r,o,p),r.memoizedState=y.state,i=r.child):i=bs(i,r,p),i}function Db(i,r,o,h){return Aa(),r.flags|=256,Jt(i,r,o,h),r.child}var xp={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function vp(i){return{baseLanes:i,cachePool:w0()}}function bp(i,r,o){return i=i!==null?i.childLanes&~o:0,r&&(i|=Gn),i}function kb(i,r,o){var h=r.pendingProps,p=!1,y=(r.flags&128)!==0,w;if((w=y)||(w=i!==null&&i.memoizedState===null?!1:(_t.current&2)!==0),w&&(p=!0,r.flags&=-129),w=(r.flags&32)!==0,r.flags&=-33,i===null){if(ze){if(p?wr(r):_r(),(i=at)?(i=zw(i,ni),i=i!==null&&i.data!=="&"?i:null,i!==null&&(r.memoizedState={dehydrated:i,treeContext:mr!==null?{id:Ui,overflow:Bi}:null,retryLane:536870912,hydrationErrors:null},o=d0(i),o.return=r,r.child=o,Qt=r,at=null)):i=null,i===null)throw gr(r);return ng(i)?r.lanes=32:r.lanes=536870912,null}var S=h.children;return h=h.fallback,p?(_r(),p=r.mode,S=Wh({mode:"hidden",children:S},p),h=Sa(h,p,o,null),S.return=r,h.return=r,S.sibling=h,r.child=S,h=r.child,h.memoizedState=vp(o),h.childLanes=bp(i,w,o),r.memoizedState=xp,Tc(null,h)):(wr(r),wp(r,S))}var O=i.memoizedState;if(O!==null&&(S=O.dehydrated,S!==null)){if(y)r.flags&256?(wr(r),r.flags&=-257,r=_p(i,r,o)):r.memoizedState!==null?(_r(),r.child=i.child,r.flags|=128,r=null):(_r(),S=h.fallback,p=r.mode,h=Wh({mode:"visible",children:h.children},p),S=Sa(S,p,o,null),S.flags|=2,h.return=r,S.return=r,h.sibling=S,r.child=h,Da(r,i.child,null,o),h=r.child,h.memoizedState=vp(o),h.childLanes=bp(i,w,o),r.memoizedState=xp,r=Tc(null,h));else if(wr(r),ng(S)){if(w=S.nextSibling&&S.nextSibling.dataset,w)var K=w.dgst;w=K,h=Error(s(419)),h.stack="",h.digest=w,hc({value:h,source:null,stack:null}),r=_p(i,r,o)}else if(jt||jo(i,r,o,!1),w=(o&i.childLanes)!==0,jt||w){if(w=it,w!==null&&(h=Zs(w,o),h!==0&&h!==O.retryLane))throw O.retryLane=h,Ea(i,h),Rn(w,i,h),gp;tg(S)||sd(),r=_p(i,r,o)}else tg(S)?(r.flags|=192,r.child=i.child,r=null):(i=O.treeContext,at=si(S.nextSibling),Qt=r,ze=!0,pr=null,ni=!1,i!==null&&p0(r,i),r=wp(r,h.children),r.flags|=4096);return r}return p?(_r(),S=h.fallback,p=r.mode,O=i.child,K=O.sibling,h=ms(O,{mode:"hidden",children:h.children}),h.subtreeFlags=O.subtreeFlags&65011712,K!==null?S=ms(K,S):(S=Sa(S,p,o,null),S.flags|=2),S.return=r,h.return=r,h.sibling=S,r.child=h,Tc(null,h),h=r.child,S=i.child.memoizedState,S===null?S=vp(o):(p=S.cachePool,p!==null?(O=At._currentValue,p=p.parent!==O?{parent:O,pool:O}:p):p=w0(),S={baseLanes:S.baseLanes|o,cachePool:p}),h.memoizedState=S,h.childLanes=bp(i,w,o),r.memoizedState=xp,Tc(i.child,h)):(wr(r),o=i.child,i=o.sibling,o=ms(o,{mode:"visible",children:h.children}),o.return=r,o.sibling=null,i!==null&&(w=r.deletions,w===null?(r.deletions=[i],r.flags|=16):w.push(i)),r.child=o,r.memoizedState=null,o)}function wp(i,r){return r=Wh({mode:"visible",children:r},i.mode),r.return=i,i.child=r}function Wh(i,r){return i=Un(22,i,null,r),i.lanes=0,i}function _p(i,r,o){return Da(r,i.child,null,o),i=wp(r,r.pendingProps.children),i.flags|=2,r.memoizedState=null,i}function Mb(i,r,o){i.lanes|=r;var h=i.alternate;h!==null&&(h.lanes|=r),Pm(i.return,r,o)}function Tp(i,r,o,h,p,y){var w=i.memoizedState;w===null?i.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:h,tail:o,tailMode:p,treeForkCount:y}:(w.isBackwards=r,w.rendering=null,w.renderingStartTime=0,w.last=h,w.tail=o,w.tailMode=p,w.treeForkCount=y)}
vendor: 2,086 bytes, line 48
48function Lb(i,r,o){var h=r.pendingProps,p=h.revealOrder,y=h.tail;h=h.children;var w=_t.current,S=(w&2)!==0;if(S?(w=w&1|2,r.flags|=128):w&=1,oe(_t,w),Jt(i,r,h,o),h=ze?uc:0,!S&&i!==null&&(i.flags&128)!==0)e:for(i=r.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&Mb(i,o,r);else if(i.tag===19)Mb(i,o,r);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break e;for(;i.sibling===null;){if(i.return===null||i.return===r)break e;i=i.return}i.sibling.return=i.return,i=i.sibling}switch(p){case"forwards":for(o=r.child,p=null;o!==null;)i=o.alternate,i!==null&&Ph(i)===null&&(p=o),o=o.sibling;o=p,o===null?(p=r.child,r.child=null):(p=o.sibling,o.sibling=null),Tp(r,!1,p,o,y,h);break;case"backwards":case"unstable_legacy-backwards":for(o=null,p=r.child,r.child=null;p!==null;){if(i=p.alternate,i!==null&&Ph(i)===null){r.child=p;break}i=p.sibling,p.sibling=o,o=p,p=i}Tp(r,!0,o,null,y,h);break;case"together":Tp(r,!1,null,null,void 0,h);break;default:r.memoizedState=null}return r.child}function bs(i,r,o){if(i!==null&&(r.dependencies=i.dependencies),Sr|=r.lanes,(o&r.childLanes)===0)if(i!==null){if(jo(i,r,o,!1),(o&r.childLanes)===0)return null}else return null;if(i!==null&&r.child!==i.child)throw Error(s(153));if(r.child!==null){for(i=r.child,o=ms(i,i.pendingProps),r.child=o,o.return=r;i.sibling!==null;)i=i.sibling,o=o.sibling=ms(i,i.pendingProps),o.return=r;o.sibling=null}return r.child}function Ep(i,r){return(i.lanes&r)!==0?!0:(i=i.dependencies,!!(i!==null&&Rh(i)))}function pR(i,r,o){switch(r.tag){case 3:$t(r,r.stateNode.containerInfo),yr(r,At,i.memoizedState.cache),Aa();break;case 27:case 5:Ci(r);break;case 4:$t(r,r.stateNode.containerInfo);break;case 10:yr(r,r.type,r.memoizedProps.value);break;case 31:if(r.memoizedState!==null)return r.flags|=128,Wm(r),null;break;case 13:var h=r.memoizedState;if(h!==null)return h.dehydrated!==null?(wr(r),r.flags|=128,null):(o&r.child.childLanes)!==0?kb(i,r,o):(wr(r),i=bs(i,r,o),i!==null?i.sibling:null);wr(r);break;case 19:var p=(i.flags&128)!==0;if(h=(o&r.childLanes)!==0,h||(jo(i,r,o,!1),h=(o&r.childLanes)!==0),p){
vendor: 6,765 bytes, line 48
48if(h)return Lb(i,r,o);r.flags|=128}if(p=r.memoizedState,p!==null&&(p.rendering=null,p.tail=null,p.lastEffect=null),oe(_t,_t.current),h)break;return null;case 22:return r.lanes=0,Nb(i,r,o,r.pendingProps);case 24:yr(r,At,i.memoizedState.cache)}return bs(i,r,o)}function Ob(i,r,o){if(i!==null)if(i.memoizedProps!==r.pendingProps)jt=!0;else{if(!Ep(i,o)&&(r.flags&128)===0)return jt=!1,pR(i,r,o);jt=(i.flags&131072)!==0}else jt=!1,ze&&(r.flags&1048576)!==0&&m0(r,uc,r.index);switch(r.lanes=0,r.tag){case 16:e:{var h=r.pendingProps;if(i=Ca(r.elementType),r.type=i,typeof i=="function")Rm(i)?(h=Ma(i,h),r.tag=1,r=Ib(null,r,i,h,o)):(r.tag=0,r=yp(null,r,i,h,o));else{if(i!=null){var p=i.$$typeof;if(p===ne){r.tag=11,r=Eb(null,r,i,h,o);break e}else if(p===D){r.tag=14,r=Sb(null,r,i,h,o);break e}}throw r=nt(i)||i,Error(s(306,r,""))}}return r;case 0:return yp(i,r,r.type,r.pendingProps,o);case 1:return h=r.type,p=Ma(h,r.pendingProps),Ib(i,r,h,p,o);case 3:e:{if($t(r,r.stateNode.containerInfo),i===null)throw Error(s(387));h=r.pendingProps;var y=r.memoizedState;p=y.element,qm(i,r),xc(r,h,null,o);var w=r.memoizedState;if(h=w.cache,yr(r,At,h),h!==y.cache&&Vm(r,[At],o,!0),yc(),h=w.element,y.isDehydrated)if(y={element:h,isDehydrated:!1,cache:w.cache},r.updateQueue.baseState=y,r.memoizedState=y,r.flags&256){r=Db(i,r,h,o);break e}else if(h!==p){p=Zn(Error(s(424)),r),hc(p),r=Db(i,r,h,o);break e}else{switch(i=r.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(at=si(i.firstChild),Qt=r,ze=!0,pr=null,ni=!0,o=N0(r,null,h,o),r.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(Aa(),h===p){r=bs(i,r,o);break e}Jt(i,r,h,o)}r=r.child}return r;case 26:return Yh(i,r),i===null?(o=Kw(r.type,null,r.pendingProps,null))?r.memoizedState=o:ze||(o=r.type,i=r.pendingProps,h=hd(De.current).createElement(o),h[gt]=r,h[Wt]=i,Zt(h,o,i),wt(h),r.stateNode=h):r.memoizedState=Kw(r.type,i.memoizedProps,r.pendingProps,i.memoizedState),null;case 27:return Ci(r),i===null&&ze&&(h=r.stateNode=qw(r.type,r.pendingProps,De.current),Qt=r,ni=!0,p=at,Cr(r.type)?(ig=p,at=si(h.firstChild)):at=p),Jt(i,r,r.pendingProps.children,o),Yh(i,r),i===null&&(r.flags|=4194304),r.child;case 5:return i===null&&ze&&((p=h=at)&&(h=HR(h,r.type,r.pendingProps,ni),h!==null?(r.stateNode=h,Qt=r,at=si(h.firstChild),ni=!1,p=!0):p=!1),p||gr(r)),Ci(r),p=r.type,y=r.pendingProps,w=i!==null?i.memoizedProps:null,h=y.children,Jp(p,y)?h=null:w!==null&&Jp(p,w)&&(r.flags|=32),r.memoizedState!==null&&(p=Xm(i,r,aR,null,null,o),Vc._currentValue=p),Yh(i,r),Jt(i,r,h,o),r.child;case 6:return i===null&&ze&&((i=o=at)&&(o=$R(o,r.pendingProps,ni),o!==null?(r.stateNode=o,Qt=r,at=null,i=!0):i=!1),i||gr(r)),null;case 13:return kb(i,r,o);case 4:return $t(r,r.stateNode.containerInfo),h=r.pendingProps,i===null?r.child=Da(r,null,h,o):Jt(i,r,h,o),r.child;case 11:return Eb(i,r,r.type,r.pendingProps,o);case 7:return Jt(i,r,r.pendingProps,o),r.child;case 8:return Jt(i,r,r.pendingProps.children,o),r.child;case 12:return Jt(i,r,r.pendingProps.children,o),r.child;case 10:return h=r.pendingProps,yr(r,r.type,h.value),Jt(i,r,h.children,o),r.child;case 9:return p=r.type._context,h=r.pendingProps.children,ja(r),p=Xt(p),h=h(p),r.flags|=1,Jt(i,r,h,o),r.child;case 14:return Sb(i,r,r.type,r.pendingProps,o);case 15:return Ab(i,r,r.type,r.pendingProps,o);case 19:return Lb(i,r,o);case 31:return mR(i,r,o);case 22:return Nb(i,r,o,r.pendingProps);case 24:return ja(r),h=Xt(At),i===null?(p=zm(),p===null&&(p=it,y=Um(),p.pooledCache=y,y.refCount++,y!==null&&(p.pooledCacheLanes|=o),p=y),r.memoizedState={parent:h,cache:p},Gm(r),yr(r,At,p)):((i.lanes&o)!==0&&(qm(i,r),xc(r,null,null,o),yc()),p=i.memoizedState,y=r.memoizedState,p.parent!==h?(p={parent:h,cache:h},r.memoizedState=p,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=p),yr(r,At,h)):(h=y.cache,yr(r,At,h),h!==p.cache&&Vm(r,[At],o,!0))),Jt(i,r,r.pendingProps.children,o),r.child;case 29:throw r.pendingProps}throw Error(s(156,r.tag))}function ws(i){i.flags|=4}function Sp(i,r,o,h,p){if((r=(i.mode&32)!==0)&&(r=!1),r){if(i.flags|=16777216,(p&335544128)===p)if(i.stateNode.complete)i.flags|=8192;else if(cw())i.flags|=8192;else throw Ia=kh,Fm}else i.flags&=-16777217}function Pb(i,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!Jw(r))if(cw())i.flags|=8192;else throw Ia=kh,Fm}function Qh(i,r){r!==null&&(i.flags|=4),i.flags&16384&&(r=i.tag!==22?ql():536870912,i.lanes|=r,Bo|=r)}function Ec(i,r){if(!ze)switch(i.tailMode){case"hidden":r=i.tail;for(var o=null;r!==null;)r.alternate!==null&&(o=r),r=r.sibling;o===null?i.tail=null:o.sibling=null;break;case"collapsed":o=i.tail;for(var h=null;o!==null;)o.alternate!==null&&(h=o),o=o.sibling;h===null?r||i.tail===null?i.tail=null:i.tail.sibling=null:h.sibling=null}}function ot(i){var r=i.alternate!==null&&i.alternate.child===i.child,o=0,h=0;if(r)for(var p=i.child;p!==null;)o|=p.lanes|p.childLanes,h|=p.subtreeFlags&65011712,h|=p.flags&65011712,p.return=i,p=p.sibling;else for(p=i.child;p!==null;)o|=p.lanes|p.childLanes,h|=p.subtreeFlags,h|=p.flags,p.return=i,p=p.sibling;return i.subtreeFlags|=h,i.childLanes=o,r}function gR(i,r,o){var h=r.pendingProps;switch(km(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ot(r),null;case 1:return ot(r),null;case 3:return o=r.stateNode,h=null,i!==null&&(h=i.memoizedState.cache),r.memoizedState.cache!==h&&(r.flags|=2048),ys(At),ft(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(i===null||i.child===null)&&(No(r)?ws(r):i===null||i.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,Lm())),ot(r),null;case 26:var p=r.type,y=r.memoizedState;return i===null?(ws(r),y!==null?(ot(r),Pb(r,y)):(ot(r),Sp(r,p,null,h,o))):y?y!==i.memoizedState?(ws(r),ot(r),Pb(r,y)):(ot(r),r.flags&=-16777217):(i=i.memoizedProps,i!==h&&ws(r),ot(r),Sp(r,p,i,h,o)),null;case 27:if(ns(r),o=De.current,p=r.type,i!==null&&r.stateNode!=null)i.memoizedProps!==h&&ws(r);else{if(!h){if(r.stateNode===null)throw Error(s(166));return ot(r),null}i=fe.current,No(r)?g0(r):(i=qw(p,h,o),r.stateNode=i,ws(r))}return ot(r),null;case 5:if(ns(r),p=r.type,i!==null&&r.stateNode!=null)i.memoizedProps!==h&&ws(r);else{if(!h){if(r.stateNode===null)throw Error(s(166));return ot(r),null}if(y=fe.current,No(r))g0(r);else{var w=hd(De.current);switch(y){case 1:y=w.createElementNS("http://www.w3.org/2000/svg",p);break;case 2:y=w.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;default:switch(p){case"svg":y=w.createElementNS("http://www.w3.org/2000/svg",p);break;case"math":y=w.createElementNS("http://www.w3.org/1998/Math/MathML",p);break;case"script":y=w.createElement("div"),y.innerHTML="<script><\/script>",y=y.removeChild(y.firstChild);break;
vendor: 25,833 bytes, line 48
48case"select":y=typeof h.is=="string"?w.createElement("select",{is:h.is}):w.createElement("select"),h.multiple?y.multiple=!0:h.size&&(y.size=h.size);break;default:y=typeof h.is=="string"?w.createElement(p,{is:h.is}):w.createElement(p)}}y[gt]=r,y[Wt]=h;e:for(w=r.child;w!==null;){if(w.tag===5||w.tag===6)y.appendChild(w.stateNode);else if(w.tag!==4&&w.tag!==27&&w.child!==null){w.child.return=w,w=w.child;continue}if(w===r)break e;for(;w.sibling===null;){if(w.return===null||w.return===r)break e;w=w.return}w.sibling.return=w.return,w=w.sibling}r.stateNode=y;e:switch(Zt(y,p,h),p){case"button":case"input":case"select":case"textarea":h=!!h.autoFocus;break e;case"img":h=!0;break e;default:h=!1}h&&ws(r)}}return ot(r),Sp(r,r.type,i===null?null:i.memoizedProps,r.pendingProps,o),null;case 6:if(i&&r.stateNode!=null)i.memoizedProps!==h&&ws(r);else{if(typeof h!="string"&&r.stateNode===null)throw Error(s(166));if(i=De.current,No(r)){if(i=r.stateNode,o=r.memoizedProps,h=null,p=Qt,p!==null)switch(p.tag){case 27:case 5:h=p.memoizedProps}i[gt]=r,i=!!(i.nodeValue===o||h!==null&&h.suppressHydrationWarning===!0||kw(i.nodeValue,o)),i||gr(r,!0)}else i=hd(i).createTextNode(h),i[gt]=r,r.stateNode=i}return ot(r),null;case 31:if(o=r.memoizedState,i===null||i.memoizedState!==null){if(h=No(r),o!==null){if(i===null){if(!h)throw Error(s(318));if(i=r.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(s(557));i[gt]=r}else Aa(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;ot(r),i=!1}else o=Lm(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=o),i=!0;if(!i)return r.flags&256?(zn(r),r):(zn(r),null);if((r.flags&128)!==0)throw Error(s(558))}return ot(r),null;case 13:if(h=r.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(p=No(r),h!==null&&h.dehydrated!==null){if(i===null){if(!p)throw Error(s(318));if(p=r.memoizedState,p=p!==null?p.dehydrated:null,!p)throw Error(s(317));p[gt]=r}else Aa(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;ot(r),p=!1}else p=Lm(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=p),p=!0;if(!p)return r.flags&256?(zn(r),r):(zn(r),null)}return zn(r),(r.flags&128)!==0?(r.lanes=o,r):(o=h!==null,i=i!==null&&i.memoizedState!==null,o&&(h=r.child,p=null,h.alternate!==null&&h.alternate.memoizedState!==null&&h.alternate.memoizedState.cachePool!==null&&(p=h.alternate.memoizedState.cachePool.pool),y=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(y=h.memoizedState.cachePool.pool),y!==p&&(h.flags|=2048)),o!==i&&o&&(r.child.flags|=8192),Qh(r,r.updateQueue),ot(r),null);case 4:return ft(),i===null&&Kp(r.stateNode.containerInfo),ot(r),null;case 10:return ys(r.type),ot(r),null;case 19:if(J(_t),h=r.memoizedState,h===null)return ot(r),null;if(p=(r.flags&128)!==0,y=h.rendering,y===null)if(p)Ec(h,!1);else{if(vt!==0||i!==null&&(i.flags&128)!==0)for(i=r.child;i!==null;){if(y=Ph(i),y!==null){for(r.flags|=128,Ec(h,!1),i=y.updateQueue,r.updateQueue=i,Qh(r,i),r.subtreeFlags=0,i=o,o=r.child;o!==null;)h0(o,i),o=o.sibling;return oe(_t,_t.current&1|2),ze&&ps(r,h.treeForkCount),r.child}i=i.sibling}h.tail!==null&&Kt()>td&&(r.flags|=128,p=!0,Ec(h,!1),r.lanes=4194304)}else{if(!p)if(i=Ph(y),i!==null){if(r.flags|=128,p=!0,i=i.updateQueue,r.updateQueue=i,Qh(r,i),Ec(h,!0),h.tail===null&&h.tailMode==="hidden"&&!y.alternate&&!ze)return ot(r),null}else 2*Kt()-h.renderingStartTime>td&&o!==536870912&&(r.flags|=128,p=!0,Ec(h,!1),r.lanes=4194304);h.isBackwards?(y.sibling=r.child,r.child=y):(i=h.last,i!==null?i.sibling=y:r.child=y,h.last=y)}return h.tail!==null?(i=h.tail,h.rendering=i,h.tail=i.sibling,h.renderingStartTime=Kt(),i.sibling=null,o=_t.current,oe(_t,p?o&1|2:o&1),ze&&ps(r,h.treeForkCount),i):(ot(r),null);case 22:case 23:return zn(r),Ym(),h=r.memoizedState!==null,i!==null?i.memoizedState!==null!==h&&(r.flags|=8192):h&&(r.flags|=8192),h?(o&536870912)!==0&&(r.flags&128)===0&&(ot(r),r.subtreeFlags&6&&(r.flags|=8192)):ot(r),o=r.updateQueue,o!==null&&Qh(r,o.retryQueue),o=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),h=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(h=r.memoizedState.cachePool.pool),h!==o&&(r.flags|=2048),i!==null&&J(Ra),null;case 24:return o=null,i!==null&&(o=i.memoizedState.cache),r.memoizedState.cache!==o&&(r.flags|=2048),ys(At),ot(r),null;case 25:return null;case 30:return null}throw Error(s(156,r.tag))}function yR(i,r){switch(km(r),r.tag){case 1:return i=r.flags,i&65536?(r.flags=i&-65537|128,r):null;case 3:return ys(At),ft(),i=r.flags,(i&65536)!==0&&(i&128)===0?(r.flags=i&-65537|128,r):null;case 26:case 27:case 5:return ns(r),null;case 31:if(r.memoizedState!==null){if(zn(r),r.alternate===null)throw Error(s(340));Aa()}return i=r.flags,i&65536?(r.flags=i&-65537|128,r):null;case 13:if(zn(r),i=r.memoizedState,i!==null&&i.dehydrated!==null){if(r.alternate===null)throw Error(s(340));Aa()}return i=r.flags,i&65536?(r.flags=i&-65537|128,r):null;case 19:return J(_t),null;case 4:return ft(),null;case 10:return ys(r.type),null;case 22:case 23:return zn(r),Ym(),i!==null&&J(Ra),i=r.flags,i&65536?(r.flags=i&-65537|128,r):null;case 24:return ys(At),null;case 25:return null;default:return null}}function Vb(i,r){switch(km(r),r.tag){case 3:ys(At),ft();break;case 26:case 27:case 5:ns(r);break;case 4:ft();break;case 31:r.memoizedState!==null&&zn(r);break;case 13:zn(r);break;case 19:J(_t);break;case 10:ys(r.type);break;case 22:case 23:zn(r),Ym(),i!==null&&J(Ra);break;case 24:ys(At)}}function Sc(i,r){try{var o=r.updateQueue,h=o!==null?o.lastEffect:null;if(h!==null){var p=h.next;o=p;do{if((o.tag&i)===i){h=void 0;var y=o.create,w=o.inst;h=y(),w.destroy=h}o=o.next}while(o!==p)}}catch(S){Je(r,r.return,S)}}function Tr(i,r,o){try{var h=r.updateQueue,p=h!==null?h.lastEffect:null;if(p!==null){var y=p.next;h=y;do{if((h.tag&i)===i){var w=h.inst,S=w.destroy;if(S!==void 0){w.destroy=void 0,p=r;var O=o,K=S;try{K()}catch(Z){Je(p,O,Z)}}}h=h.next}while(h!==y)}}catch(Z){Je(r,r.return,Z)}}function Ub(i){var r=i.updateQueue;if(r!==null){var o=i.stateNode;try{R0(r,o)}catch(h){Je(i,i.return,h)}}}function Bb(i,r,o){o.props=Ma(i.type,i.memoizedProps),o.state=i.memoizedState;try{o.componentWillUnmount()}catch(h){Je(i,r,h)}}function Ac(i,r){try{var o=i.ref;if(o!==null){switch(i.tag){case 26:case 27:case 5:var h=i.stateNode;break;case 30:h=i.stateNode;break;default:h=i.stateNode}typeof o=="function"?i.refCleanup=o(h):o.current=h}}catch(p){Je(i,r,p)}}function zi(i,r){var o=i.ref,h=i.refCleanup;if(o!==null)if(typeof h=="function")try{h()}catch(p){Je(i,r,p)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(p){Je(i,r,p)}else o.current=null}function zb(i){var r=i.type,o=i.memoizedProps,h=i.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":o.autoFocus&&h.focus();break e;case"img":o.src?h.src=o.src:o.srcSet&&(h.srcset=o.srcSet)}}catch(p){Je(i,i.return,p)}}function Ap(i,r,o){try{var h=i.stateNode;UR(h,i.type,o,r),h[Wt]=r}catch(p){Je(i,i.return,p)}}function Fb(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&Cr(i.type)||i.tag===4}function Np(i){e:for(;;){for(;i.sibling===null;){if(i.return===null||Fb(i.return))return null;i=i.return}for(i.sibling.return=i.return,i=i.sibling;i.tag!==5&&i.tag!==6&&i.tag!==18;){if(i.tag===27&&Cr(i.type)||i.flags&2||i.child===null||i.tag===4)continue e;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function jp(i,r,o){var h=i.tag;if(h===5||h===6)i=i.stateNode,r?(o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o).insertBefore(i,r):(r=o.nodeType===9?o.body:o.nodeName==="HTML"?o.ownerDocument.body:o,r.appendChild(i),o=o._reactRootContainer,o!=null||r.onclick!==null||(r.onclick=Bt));else if(h!==4&&(h===27&&Cr(i.type)&&(o=i.stateNode,r=null),i=i.child,i!==null))for(jp(i,r,o),i=i.sibling;i!==null;)jp(i,r,o),i=i.sibling}function Xh(i,r,o){var h=i.tag;if(h===5||h===6)i=i.stateNode,r?o.insertBefore(i,r):o.appendChild(i);else if(h!==4&&(h===27&&Cr(i.type)&&(o=i.stateNode),i=i.child,i!==null))for(Xh(i,r,o),i=i.sibling;i!==null;)Xh(i,r,o),i=i.sibling}function Gb(i){var r=i.stateNode,o=i.memoizedProps;try{for(var h=i.type,p=r.attributes;p.length;)r.removeAttributeNode(p[0]);Zt(r,h,o),r[gt]=i,r[Wt]=o}catch(y){Je(i,i.return,y)}}var _s=!1,Rt=!1,Rp=!1,qb=typeof WeakSet=="function"?WeakSet:Set,Gt=null;function xR(i,r){if(i=i.containerInfo,Qp=xd,i=n0(i),_m(i)){if("selectionStart"in i)var o={start:i.selectionStart,end:i.selectionEnd};else e:{o=(o=i.ownerDocument)&&o.defaultView||window;var h=o.getSelection&&o.getSelection();if(h&&h.rangeCount!==0){o=h.anchorNode;var p=h.anchorOffset,y=h.focusNode;h=h.focusOffset;try{o.nodeType,y.nodeType}catch{o=null;break e}var w=0,S=-1,O=-1,K=0,Z=0,te=i,Y=null;t:for(;;){for(var W;te!==o||p!==0&&te.nodeType!==3||(S=w+p),te!==y||h!==0&&te.nodeType!==3||(O=w+h),te.nodeType===3&&(w+=te.nodeValue.length),(W=te.firstChild)!==null;)Y=te,te=W;for(;;){if(te===i)break t;if(Y===o&&++K===p&&(S=w),Y===y&&++Z===h&&(O=w),(W=te.nextSibling)!==null)break;te=Y,Y=te.parentNode}te=W}o=S===-1||O===-1?null:{start:S,end:O}}else o=null}o=o||{start:0,end:0}}else o=null;for(Xp={focusedElem:i,selectionRange:o},xd=!1,Gt=r;Gt!==null;)if(r=Gt,i=r.child,(r.subtreeFlags&1028)!==0&&i!==null)i.return=r,Gt=i;else for(;Gt!==null;){switch(r=Gt,y=r.alternate,i=r.flags,r.tag){case 0:if((i&4)!==0&&(i=r.updateQueue,i=i!==null?i.events:null,i!==null))for(o=0;o<i.length;o++)p=i[o],p.ref.impl=p.nextImpl;break;case 11:case 15:break;case 1:if((i&1024)!==0&&y!==null){i=void 0,o=r,p=y.memoizedProps,y=y.memoizedState,h=o.stateNode;try{var pe=Ma(o.type,p);i=h.getSnapshotBeforeUpdate(pe,y),h.__reactInternalSnapshotBeforeUpdate=i}catch(ve){Je(o,o.return,ve)}}break;case 3:if((i&1024)!==0){if(i=r.stateNode.containerInfo,o=i.nodeType,o===9)eg(i);else if(o===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":eg(i);break;default:i.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((i&1024)!==0)throw Error(s(163))}if(i=r.sibling,i!==null){i.return=r.return,Gt=i;break}Gt=r.return}}function Hb(i,r,o){var h=o.flags;switch(o.tag){case 0:case 11:case 15:Es(i,o),h&4&&Sc(5,o);break;case 1:if(Es(i,o),h&4)if(i=o.stateNode,r===null)try{i.componentDidMount()}catch(w){Je(o,o.return,w)}else{var p=Ma(o.type,r.memoizedProps);r=r.memoizedState;try{i.componentDidUpdate(p,r,i.__reactInternalSnapshotBeforeUpdate)}catch(w){Je(o,o.return,w)}}h&64&&Ub(o),h&512&&Ac(o,o.return);break;case 3:if(Es(i,o),h&64&&(i=o.updateQueue,i!==null)){if(r=null,o.child!==null)switch(o.child.tag){case 27:case 5:r=o.child.stateNode;break;case 1:r=o.child.stateNode}try{R0(i,r)}catch(w){Je(o,o.return,w)}}break;case 27:r===null&&h&4&&Gb(o);case 26:case 5:Es(i,o),r===null&&h&4&&zb(o),h&512&&Ac(o,o.return);break;case 12:Es(i,o);break;case 31:Es(i,o),h&4&&Yb(i,o);break;case 13:Es(i,o),h&4&&Wb(i,o),h&64&&(i=o.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(o=NR.bind(null,o),KR(i,o))));break;case 22:if(h=o.memoizedState!==null||_s,!h){r=r!==null&&r.memoizedState!==null||Rt,p=_s;var y=Rt;_s=h,(Rt=r)&&!y?Ss(i,o,(o.subtreeFlags&8772)!==0):Es(i,o),_s=p,Rt=y}break;case 30:break;default:Es(i,o)}}function $b(i){var r=i.alternate;r!==null&&(i.alternate=null,$b(r)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(r=i.stateNode,r!==null&&da(r)),i.stateNode=null,i.return=null,i.dependencies=null,i.memoizedProps=null,i.memoizedState=null,i.pendingProps=null,i.stateNode=null,i.updateQueue=null}var ut=null,Sn=!1;function Ts(i,r,o){for(o=o.child;o!==null;)Kb(i,r,o),o=o.sibling}function Kb(i,r,o){if(an&&typeof an.onCommitFiberUnmount=="function")try{an.onCommitFiberUnmount(Ys,o)}catch{}switch(o.tag){case 26:Rt||zi(o,r),Ts(i,r,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:Rt||zi(o,r);var h=ut,p=Sn;Cr(o.type)&&(ut=o.stateNode,Sn=!1),Ts(i,r,o),Lc(o.stateNode),ut=h,Sn=p;break;case 5:Rt||zi(o,r);case 6:if(h=ut,p=Sn,ut=null,Ts(i,r,o),ut=h,Sn=p,ut!==null)if(Sn)try{(ut.nodeType===9?ut.body:ut.nodeName==="HTML"?ut.ownerDocument.body:ut).removeChild(o.stateNode)}catch(y){Je(o,r,y)}else try{ut.removeChild(o.stateNode)}catch(y){Je(o,r,y)}break;case 18:ut!==null&&(Sn?(i=ut,Uw(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,o.stateNode),Yo(i)):Uw(ut,o.stateNode));break;case 4:h=ut,p=Sn,ut=o.stateNode.containerInfo,Sn=!0,Ts(i,r,o),ut=h,Sn=p;break;case 0:case 11:case 14:case 15:Tr(2,o,r),Rt||Tr(4,o,r),Ts(i,r,o);break;case 1:Rt||(zi(o,r),h=o.stateNode,typeof h.componentWillUnmount=="function"&&Bb(o,r,h)),Ts(i,r,o);break;case 21:Ts(i,r,o);break;case 22:Rt=(h=Rt)||o.memoizedState!==null,Ts(i,r,o),Rt=h;break;default:Ts(i,r,o)}}function Yb(i,r){if(r.memoizedState===null&&(i=r.alternate,i!==null&&(i=i.memoizedState,i!==null))){i=i.dehydrated;try{Yo(i)}catch(o){Je(r,r.return,o)}}}function Wb(i,r){if(r.memoizedState===null&&(i=r.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{Yo(i)}catch(o){Je(r,r.return,o)}}function vR(i){switch(i.tag){case 31:case 13:case 19:var r=i.stateNode;return r===null&&(r=i.stateNode=new qb),r;case 22:return i=i.stateNode,r=i._retryCache,r===null&&(r=i._retryCache=new qb),r;default:throw Error(s(435,i.tag))}}function Jh(i,r){var o=vR(i);r.forEach(function(h){if(!o.has(h)){o.add(h);var p=jR.bind(null,i,h);h.then(p,p)}})}function An(i,r){var o=r.deletions;if(o!==null)for(var h=0;h<o.length;h++){var p=o[h],y=i,w=r,S=w;e:for(;S!==null;){switch(S.tag){case 27:if(Cr(S.type)){ut=S.stateNode,Sn=!1;break e}break;case 5:ut=S.stateNode,Sn=!1;break e;case 3:case 4:ut=S.stateNode.containerInfo,Sn=!0;break e}S=S.return}if(ut===null)throw Error(s(160));Kb(y,w,p),ut=null,Sn=!1,y=p.alternate,y!==null&&(y.return=null),p.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)Qb(r,i),r=r.sibling}var pi=null;function Qb(i,r){var o=i.alternate,h=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:An(r,i),Nn(i),h&4&&(Tr(3,i,i.return),Sc(3,i),Tr(5,i,i.return));break;case 1:An(r,i),Nn(i),h&512&&(Rt||o===null||zi(o,o.return)),h&64&&_s&&(i=i.updateQueue,i!==null&&(h=i.callbacks,h!==null&&(o=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=o===null?h:o.concat(h))));break;case 26:var p=pi;if(An(r,i),Nn(i),h&512&&(Rt||o===null||zi(o,o.return)),h&4){var y=o!==null?o.memoizedState:null;if(h=i.memoizedState,o===null)if(h===null)if(i.stateNode===null){e:{h=i.type,o=i.memoizedProps,p=p.ownerDocument||p;t:switch(h){case"title":y=p.getElementsByTagName("title")[0],(!y||y[as]||y[gt]||y.namespaceURI==="http://www.w3.org/2000/svg"||y.hasAttribute("itemprop"))&&(y=p.createElement(h),p.head.insertBefore(y,p.querySelector("head > title"))),Zt(y,h,o),y[gt]=i,wt(y),h=y;break e;case"link":var w=Qw("link","href",p).get(h+(o.href||""));if(w){for(var S=0;S<w.length;S++)if(y=w[S],y.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&y.getAttribute("rel")===(o.rel==null?null:o.rel)&&y.getAttribute("title")===(o.title==null?null:o.title)&&y.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){w.splice(S,1);break t}}y=p.createElement(h),Zt(y,h,o),p.head.appendChild(y);break;case"meta":if(w=Qw("meta","content",p).get(h+(o.content||""))){for(S=0;S<w.length;S++)if(y=w[S],y.getAttribute("content")===(o.content==null?null:""+o.content)&&y.getAttribute("name")===(o.name==null?null:o.name)&&y.getAttribute("property")===(o.property==null?null:o.property)&&y.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&y.getAttribute("charset")===(o.charSet==null?null:o.charSet)){w.splice(S,1);break t}}y=p.createElement(h),Zt(y,h,o),p.head.appendChild(y);break;default:throw Error(s(468,h))}y[gt]=i,wt(y),h=y}i.stateNode=h}else Xw(p,i.type,i.stateNode);else i.stateNode=Ww(p,h,i.memoizedProps);else y!==h?(y===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):y.count--,h===null?Xw(p,i.type,i.stateNode):Ww(p,h,i.memoizedProps)):h===null&&i.stateNode!==null&&Ap(i,i.memoizedProps,o.memoizedProps)}break;case 27:An(r,i),Nn(i),h&512&&(Rt||o===null||zi(o,o.return)),o!==null&&h&4&&Ap(i,i.memoizedProps,o.memoizedProps);break;case 5:if(An(r,i),Nn(i),h&512&&(Rt||o===null||zi(o,o.return)),i.flags&32){p=i.stateNode;try{Xn(p,"")}catch(pe){Je(i,i.return,pe)}}h&4&&i.stateNode!=null&&(p=i.memoizedProps,Ap(i,p,o!==null?o.memoizedProps:p)),h&1024&&(Rp=!0);break;case 6:if(An(r,i),Nn(i),h&4){if(i.stateNode===null)throw Error(s(162));h=i.memoizedProps,o=i.stateNode;try{o.nodeValue=h}catch(pe){Je(i,i.return,pe)}}break;case 3:if(md=null,p=pi,pi=dd(r.containerInfo),An(r,i),pi=p,Nn(i),h&4&&o!==null&&o.memoizedState.isDehydrated)try{Yo(r.containerInfo)}catch(pe){Je(i,i.return,pe)}Rp&&(Rp=!1,Xb(i));break;case 4:h=pi,pi=dd(i.stateNode.containerInfo),An(r,i),Nn(i),pi=h;break;case 12:An(r,i),Nn(i);break;case 31:An(r,i),Nn(i),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,Jh(i,h)));break;case 13:An(r,i),Nn(i),i.child.flags&8192&&i.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&(ed=Kt()),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,Jh(i,h)));break;case 22:p=i.memoizedState!==null;var O=o!==null&&o.memoizedState!==null,K=_s,Z=Rt;if(_s=K||p,Rt=Z||O,An(r,i),Rt=Z,_s=K,Nn(i),h&8192)e:for(r=i.stateNode,r._visibility=p?r._visibility&-2:r._visibility|1,p&&(o===null||O||_s||Rt||La(i)),o=null,r=i;;){if(r.tag===5||r.tag===26){if(o===null){O=o=r;try{if(y=O.stateNode,p)w=y.style,typeof w.setProperty=="function"?w.setProperty("display","none","important"):w.display="none";else{S=O.stateNode;var te=O.memoizedProps.style,Y=te!=null&&te.hasOwnProperty("display")?te.display:null;S.style.display=Y==null||typeof Y=="boolean"?"":(""+Y).trim()}}catch(pe){Je(O,O.return,pe)}}}else if(r.tag===6){if(o===null){O=r;try{O.stateNode.nodeValue=p?"":O.memoizedProps}catch(pe){Je(O,O.return,pe)}}}else if(r.tag===18){if(o===null){O=r;try{var W=O.stateNode;p?Bw(W,!0):Bw(O.stateNode,!1)}catch(pe){Je(O,O.return,pe)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===i)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===i)break e;for(;r.sibling===null;){if(r.return===null||r.return===i)break e;o===r&&(o=null),r=r.return}o===r&&(o=null),r.sibling.return=r.return,r=r.sibling}h&4&&(h=i.updateQueue,h!==null&&(o=h.retryQueue,o!==null&&(h.retryQueue=null,Jh(i,o))));break;case 19:An(r,i),Nn(i),h&4&&(h=i.updateQueue,h!==null&&(i.updateQueue=null,Jh(i,h)));break;case 30:break;case 21:break;default:An(r,i),Nn(i)}}function Nn(i){var r=i.flags;if(r&2){try{for(var o,h=i.return;h!==null;){if(Fb(h)){o=h;break}h=h.return}if(o==null)throw Error(s(160));switch(o.tag){case 27:var p=o.stateNode,y=Np(i);Xh(i,y,p);break;case 5:var w=o.stateNode;o.flags&32&&(Xn(w,""),o.flags&=-33);var S=Np(i);Xh(i,S,w);break;case 3:case 4:var O=o.stateNode.containerInfo,K=Np(i);jp(i,K,O);break;default:throw Error(s(161))}}catch(Z){Je(i,i.return,Z)}i.flags&=-3}r&4096&&(i.flags&=-4097)}function Xb(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var r=i;Xb(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),i=i.sibling}}function Es(i,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)Hb(i,r.alternate,r),r=r.sibling}function La(i){for(i=i.child;i!==null;){var r=i;switch(r.tag){case 0:case 11:case 14:case 15:Tr(4,r,r.return),La(r);break;case 1:zi(r,r.return);var o=r.stateNode;typeof o.componentWillUnmount=="function"&&Bb(r,r.return,o),La(r);break;case 27:Lc(r.stateNode);case 26:case 5:zi(r,r.return),La(r);break;case 22:r.memoizedState===null&&La(r);break;case 30:La(r);break;default:La(r)}i=i.sibling}}function Ss(i,r,o){for(o=o&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var h=r.alternate,p=i,y=r,w=y.flags;switch(y.tag){case 0:case 11:case 15:Ss(p,y,o),Sc(4,y);break;case 1:if(Ss(p,y,o),h=y,p=h.stateNode,typeof p.componentDidMount=="function")try{p.componentDidMount()}catch(K){Je(h,h.return,K)}if(h=y,p=h.updateQueue,p!==null){var S=h.stateNode;try{var O=p.shared.hiddenCallbacks;if(O!==null)for(p.shared.hiddenCallbacks=null,p=0;p<O.length;p++)j0(O[p],S)}catch(K){Je(h,h.return,K)}}o&&w&64&&Ub(y),Ac(y,y.return);break;case 27:Gb(y);case 26:case 5:Ss(p,y,o),o&&h===null&&w&4&&zb(y),Ac(y,y.return);break;case 12:Ss(p,y,o);break;case 31:Ss(p,y,o),o&&w&4&&Yb(p,y);break;case 13:Ss(p,y,o),o&&w&4&&Wb(p,y);break;case 22:y.memoizedState===null&&Ss(p,y,o),Ac(y,y.return);break;case 30:break;default:Ss(p,y,o)}r=r.sibling}}function Cp(i,r){var o=null;i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),i=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool),i!==o&&(i!=null&&i.refCount++,o!=null&&dc(o))}function Ip(i,r){i=null,r.alternate!==null&&(i=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==i&&(r.refCount++,i!=null&&dc(i))}function gi(i,r,o,h){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)Jb(i,r,o,h),r=r.sibling}function Jb(i,r,o,h){var p=r.flags;switch(r.tag){case 0:case 11:case 15:gi(i,r,o,h),p&2048&&Sc(9,r);break;case 1:gi(i,r,o,h);break;case 3:gi(i,r,o,h),p&2048&&(i=null,r.alternate!==null&&(i=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==i&&(r.refCount++,i!=null&&dc(i)));break;case 12:if(p&2048){gi(i,r,o,h),i=r.stateNode;try{var y=r.memoizedProps,w=y.id,S=y.onPostCommit;typeof S=="function"&&S(w,r.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(O){Je(r,r.return,O)}}else gi(i,r,o,h);break;case 31:gi(i,r,o,h);break;case 13:gi(i,r,o,h);break;case 23:break;case 22:y=r.stateNode,w=r.alternate,r.memoizedState!==null?y._visibility&2?gi(i,r,o,h):Nc(i,r):y._visibility&2?gi(i,r,o,h):(y._visibility|=2,Po(i,r,o,h,(r.subtreeFlags&10256)!==0||!1)),p&2048&&Cp(w,r);break;case 24:gi(i,r,o,h),p&2048&&Ip(r.alternate,r);break;default:gi(i,r,o,h)}}function Po(i,r,o,h,p){for(p=p&&((r.subtreeFlags&10256)!==0||!1),r=r.child;r!==null;){var y=i,w=r,S=o,O=h,K=w.flags;switch(w.tag){case 0:case 11:case 15:Po(y,w,S,O,p),Sc(8,w);break;case 23:break;case 22:var Z=w.stateNode;w.memoizedState!==null?Z._visibility&2?Po(y,w,S,O,p):Nc(y,w):(Z._visibility|=2,Po(y,w,S,O,p)),p&&K&2048&&Cp(w.alternate,w);break;case 24:Po(y,w,S,O,p),p&&K&2048&&Ip(w.alternate,w);break;default:Po(y,w,S,O,p)}r=r.sibling}}function Nc(i,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var o=i,h=r,p=h.flags;switch(h.tag){case 22:Nc(o,h),p&2048&&Cp(h.alternate,h);break;case 24:Nc(o,h),p&2048&&Ip(h.alternate,h);break;default:Nc(o,h)}r=r.sibling}}var jc=8192;function Vo(i,r,o){if(i.subtreeFlags&jc)for(i=i.child;i!==null;)Zb(i,r,o),i=i.sibling}function Zb(i,r,o){switch(i.tag){case 26:Vo(i,r,o),i.flags&jc&&i.memoizedState!==null&&rC(o,pi,i.memoizedState,i.memoizedProps);break;case 5:Vo(i,r,o);break;case 3:case 4:var h=pi;pi=dd(i.stateNode.containerInfo),Vo(i,r,o),pi=h;break;case 22:i.memoizedState===null&&(h=i.alternate,h!==null&&h.memoizedState!==null?(h=jc,jc=16777216,Vo(i,r,o),jc=h):Vo(i,r,o));break;default:Vo(i,r,o)}}function ew(i){var r=i.alternate;if(r!==null&&(i=r.child,i!==null)){r.child=null;do r=i.sibling,i.sibling=null,i=r;while(i!==null)}}function Rc(i){var r=i.deletions;if((i.flags&16)!==0){if(r!==null)for(var o=0;o<r.length;o++){var h=r[o];Gt=h,nw(h,i)}ew(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)tw(i),i=i.sibling}function tw(i){switch(i.tag){case 0:case 11:case 15:Rc(i),i.flags&2048&&Tr(9,i,i.return);break;case 3:Rc(i);break;case 12:Rc(i);break;case 22:var r=i.stateNode;i.memoizedState!==null&&r._visibility&2&&(i.return===null||i.return.tag!==13)?(r._visibility&=-3,Zh(i)):Rc(i);break;default:Rc(i)}}function Zh(i){var r=i.deletions;if((i.flags&16)!==0){if(r!==null)for(var o=0;o<r.length;o++){var h=r[o];Gt=h,nw(h,i)}ew(i)}for(i=i.child;i!==null;){switch(r=i,r.tag){case 0:case 11:case 15:Tr(8,r,r.return),Zh(r);break;case 22:o=r.stateNode,o._visibility&2&&(o._visibility&=-3,Zh(r));break;default:Zh(r)}i=i.sibling}}function nw(i,r){for(;Gt!==null;){var o=Gt;switch(o.tag){case 0:case 11:case 15:Tr(8,o,r);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var h=o.memoizedState.cachePool.pool;h!=null&&h.refCount++}break;case 24:dc(o.memoizedState.cache)}if(h=o.child,h!==null)h.return=o,Gt=h;else e:for(o=i;Gt!==null;){h=Gt;var p=h.sibling,y=h.return;if($b(h),h===o){Gt=null;break e}if(p!==null){p.return=y,Gt=p;break e}Gt=y}}}var bR={getCacheForType:function(i){var r=Xt(At),o=r.data.get(i);return o===void 0&&(o=i(),r.data.set(i,o)),o},cacheSignal:function(){return Xt(At).controller.signal}},wR=typeof WeakMap=="function"?WeakMap:Map,Ye=0,it=null,Me=null,Oe=0,Xe=0,Fn=null,Er=!1,Uo=!1,Dp=!1,As=0,vt=0,Sr=0,Oa=0,kp=0,Gn=0,Bo=0,Cc=null,jn=null,Mp=!1,ed=0,iw=0,td=1/0,nd=null,Ar=null,Mt=0,Nr=null,zo=null,Ns=0,Lp=0,Op=null,sw=null,Ic=0,Pp=null;function qn(){return(Ye&2)!==0&&Oe!==0?Oe&-Oe:X.T!==null?Gp():rs()}function rw(){if(Gn===0)if((Oe&536870912)===0||ze){var i=Ii;Ii<<=1,(Ii&3932160)===0&&(Ii=262144),Gn=i}else Gn=536870912;return i=Bn.current,i!==null&&(i.flags|=32),Gn}function Rn(i,r,o){(i===it&&(Xe===2||Xe===9)||i.cancelPendingCommit!==null)&&(Fo(i,0),jr(i,Oe,Gn,!1)),Xs(i,o),((Ye&2)===0||i!==it)&&(i===it&&((Ye&2)===0&&(Oa|=o),vt===4&&jr(i,Oe,Gn,!1)),Fi(i))}function aw(i,r,o){if((Ye&6)!==0)throw Error(s(327));var h=!o&&(r&127)===0&&(r&i.expiredLanes)===0||Qs(i,r),p=h?ER(i,r):Up(i,r,!0),y=h;do{if(p===0){Uo&&!h&&jr(i,r,0,!1);break}else{if(o=i.current.alternate,y&&!_R(o)){p=Up(i,r,!1),y=!1;continue}if(p===2){if(y=r,i.errorRecoveryDisabledLanes&y)var w=0;else w=i.pendingLanes&-536870913,w=w!==0?w:w&536870912?536870912:0;if(w!==0){r=w;e:{var S=i;p=Cc;var O=S.current.memoizedState.isDehydrated;if(O&&(Fo(S,w).flags|=256),w=Up(S,w,!1),w!==2){if(Dp&&!O){S.errorRecoveryDisabledLanes|=y,Oa|=y,p=4;break e}y=jn,jn=p,y!==null&&(jn===null?jn=y:jn.push.apply(jn,y))}p=w}if(y=!1,p!==2)continue}}if(p===1){Fo(i,0),jr(i,r,0,!0);break}e:{switch(h=i,y=p,y){case 0:case 1:throw Error(s(345));case 4:if((r&4194048)!==r)break;
vendor: 13,440 bytes, line 48
48case 6:jr(h,r,Gn,!Er);break e;case 2:jn=null;break;case 3:case 5:break;default:throw Error(s(329))}if((r&62914560)===r&&(p=ed+300-Kt(),10<p)){if(jr(h,r,Gn,!Er),Wn(h,0,!0)!==0)break e;Ns=r,h.timeoutHandle=Pw(ow.bind(null,h,o,jn,nd,Mp,r,Gn,Oa,Bo,Er,y,"Throttled",-0,0),p);break e}ow(h,o,jn,nd,Mp,r,Gn,Oa,Bo,Er,y,null,-0,0)}}break}while(!0);Fi(i)}function ow(i,r,o,h,p,y,w,S,O,K,Z,te,Y,W){if(i.timeoutHandle=-1,te=r.subtreeFlags,te&8192||(te&16785408)===16785408){te={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Bt},Zb(r,y,te);var pe=(y&62914560)===y?ed-Kt():(y&4194048)===y?iw-Kt():0;if(pe=aC(te,pe),pe!==null){Ns=y,i.cancelPendingCommit=pe(pw.bind(null,i,r,y,o,h,p,w,S,O,Z,te,null,Y,W)),jr(i,y,w,!K);return}}pw(i,r,y,o,h,p,w,S,O)}function _R(i){for(var r=i;;){var o=r.tag;if((o===0||o===11||o===15)&&r.flags&16384&&(o=r.updateQueue,o!==null&&(o=o.stores,o!==null)))for(var h=0;h<o.length;h++){var p=o[h],y=p.getSnapshot;p=p.value;try{if(!Vn(y(),p))return!1}catch{return!1}}if(o=r.child,r.subtreeFlags&16384&&o!==null)o.return=r,r=o;else{if(r===i)break;for(;r.sibling===null;){if(r.return===null||r.return===i)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function jr(i,r,o,h){r&=~kp,r&=~Oa,i.suspendedLanes|=r,i.pingedLanes&=~r,h&&(i.warmLanes|=r),h=i.expirationTimes;for(var p=r;0<p;){var y=31-pn(p),w=1<<y;h[y]=-1,p&=~w}o!==0&&Hl(i,o,r)}function id(){return(Ye&6)===0?(Dc(0),!1):!0}function Vp(){if(Me!==null){if(Xe===0)var i=Me.return;else i=Me,gs=Na=null,ep(i),Do=null,mc=0,i=Me;for(;i!==null;)Vb(i.alternate,i),i=i.return;Me=null}}function Fo(i,r){var o=i.timeoutHandle;o!==-1&&(i.timeoutHandle=-1,FR(o)),o=i.cancelPendingCommit,o!==null&&(i.cancelPendingCommit=null,o()),Ns=0,Vp(),it=i,Me=o=ms(i.current,null),Oe=r,Xe=0,Fn=null,Er=!1,Uo=Qs(i,r),Dp=!1,Bo=Gn=kp=Oa=Sr=vt=0,jn=Cc=null,Mp=!1,(r&8)!==0&&(r|=r&32);var h=i.entangledLanes;if(h!==0)for(i=i.entanglements,h&=r;0<h;){var p=31-pn(h),y=1<<p;r|=i[p],h&=~y}return As=r,Eh(),o}function lw(i,r){Re=null,X.H=_c,r===Io||r===Dh?(r=E0(),Xe=3):r===Fm?(r=E0(),Xe=4):Xe=r===gp?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,Fn=r,Me===null&&(vt=1,$h(i,Zn(r,i.current)))}function cw(){var i=Bn.current;return i===null?!0:(Oe&4194048)===Oe?ii===null:(Oe&62914560)===Oe||(Oe&536870912)!==0?i===ii:!1}function uw(){var i=X.H;return X.H=_c,i===null?_c:i}function hw(){var i=X.A;return X.A=bR,i}function sd(){vt=4,Er||(Oe&4194048)!==Oe&&Bn.current!==null||(Uo=!0),(Sr&134217727)===0&&(Oa&134217727)===0||it===null||jr(it,Oe,Gn,!1)}function Up(i,r,o){var h=Ye;Ye|=2;var p=uw(),y=hw();(it!==i||Oe!==r)&&(nd=null,Fo(i,r)),r=!1;var w=vt;e:do try{if(Xe!==0&&Me!==null){var S=Me,O=Fn;switch(Xe){case 8:Vp(),w=6;break e;case 3:case 2:case 9:case 6:Bn.current===null&&(r=!0);var K=Xe;if(Xe=0,Fn=null,Go(i,S,O,K),o&&Uo){w=0;break e}break;default:K=Xe,Xe=0,Fn=null,Go(i,S,O,K)}}TR(),w=vt;break}catch(Z){lw(i,Z)}while(!0);return r&&i.shellSuspendCounter++,gs=Na=null,Ye=h,X.H=p,X.A=y,Me===null&&(it=null,Oe=0,Eh()),w}function TR(){for(;Me!==null;)dw(Me)}function ER(i,r){var o=Ye;Ye|=2;var h=uw(),p=hw();it!==i||Oe!==r?(nd=null,td=Kt()+500,Fo(i,r)):Uo=Qs(i,r);e:do try{if(Xe!==0&&Me!==null){r=Me;var y=Fn;t:switch(Xe){case 1:Xe=0,Fn=null,Go(i,r,y,1);break;case 2:case 9:if(_0(y)){Xe=0,Fn=null,fw(r);break}r=function(){Xe!==2&&Xe!==9||it!==i||(Xe=7),Fi(i)},y.then(r,r);break e;case 3:Xe=7;break e;case 4:Xe=5;break e;case 7:_0(y)?(Xe=0,Fn=null,fw(r)):(Xe=0,Fn=null,Go(i,r,y,7));break;case 5:var w=null;switch(Me.tag){case 26:w=Me.memoizedState;case 5:case 27:var S=Me;if(w?Jw(w):S.stateNode.complete){Xe=0,Fn=null;var O=S.sibling;if(O!==null)Me=O;else{var K=S.return;K!==null?(Me=K,rd(K)):Me=null}break t}}Xe=0,Fn=null,Go(i,r,y,5);break;case 6:Xe=0,Fn=null,Go(i,r,y,6);break;case 8:Vp(),vt=6;break e;default:throw Error(s(462))}}SR();break}catch(Z){lw(i,Z)}while(!0);return gs=Na=null,X.H=h,X.A=p,Ye=o,Me!==null?0:(it=null,Oe=0,Eh(),vt)}function SR(){for(;Me!==null&&!hm();)dw(Me)}function dw(i){var r=Ob(i.alternate,i,As);i.memoizedProps=i.pendingProps,r===null?rd(i):Me=r}function fw(i){var r=i,o=r.alternate;switch(r.tag){case 15:case 0:r=Cb(o,r,r.pendingProps,r.type,void 0,Oe);break;case 11:r=Cb(o,r,r.pendingProps,r.type.render,r.ref,Oe);break;case 5:ep(r);default:Vb(o,r),r=Me=h0(r,As),r=Ob(o,r,As)}i.memoizedProps=i.pendingProps,r===null?rd(i):Me=r}function Go(i,r,o,h){gs=Na=null,ep(r),Do=null,mc=0;var p=r.return;try{if(fR(i,p,r,o,Oe)){vt=1,$h(i,Zn(o,i.current)),Me=null;return}}catch(y){if(p!==null)throw Me=p,y;vt=1,$h(i,Zn(o,i.current)),Me=null;return}r.flags&32768?(ze||h===1?i=!0:Uo||(Oe&536870912)!==0?i=!1:(Er=i=!0,(h===2||h===9||h===3||h===6)&&(h=Bn.current,h!==null&&h.tag===13&&(h.flags|=16384))),mw(r,i)):rd(r)}function rd(i){var r=i;do{if((r.flags&32768)!==0){mw(r,Er);return}i=r.return;var o=gR(r.alternate,r,As);if(o!==null){Me=o;return}if(r=r.sibling,r!==null){Me=r;return}Me=r=i}while(r!==null);vt===0&&(vt=5)}function mw(i,r){do{var o=yR(i.alternate,i);if(o!==null){o.flags&=32767,Me=o;return}if(o=i.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!r&&(i=i.sibling,i!==null)){Me=i;return}Me=i=o}while(i!==null);vt=6,Me=null}function pw(i,r,o,h,p,y,w,S,O){i.cancelPendingCommit=null;do ad();while(Mt!==0);if((Ye&6)!==0)throw Error(s(327));if(r!==null){if(r===i.current)throw Error(s(177));if(y=r.lanes|r.childLanes,y|=Nm,Yt(i,o,y,w,S,O),i===it&&(Me=it=null,Oe=0),zo=r,Nr=i,Ns=o,Lp=y,Op=p,sw=h,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,RR(is,function(){return bw(),null})):(i.callbackNode=null,i.callbackPriority=0),h=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||h){h=X.T,X.T=null,p=ae.p,ae.p=2,w=Ye,Ye|=4;try{xR(i,r,o)}finally{Ye=w,ae.p=p,X.T=h}}Mt=1,gw(),yw(),xw()}}function gw(){if(Mt===1){Mt=0;var i=Nr,r=zo,o=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||o){o=X.T,X.T=null;var h=ae.p;ae.p=2;var p=Ye;Ye|=4;try{Qb(r,i);var y=Xp,w=n0(i.containerInfo),S=y.focusedElem,O=y.selectionRange;if(w!==S&&S&&S.ownerDocument&&t0(S.ownerDocument.documentElement,S)){if(O!==null&&_m(S)){var K=O.start,Z=O.end;if(Z===void 0&&(Z=K),"selectionStart"in S)S.selectionStart=K,S.selectionEnd=Math.min(Z,S.value.length);else{var te=S.ownerDocument||document,Y=te&&te.defaultView||window;if(Y.getSelection){var W=Y.getSelection(),pe=S.textContent.length,ve=Math.min(O.start,pe),tt=O.end===void 0?ve:Math.min(O.end,pe);!W.extend&&ve>tt&&(w=tt,tt=ve,ve=w);var q=e0(S,ve),B=e0(S,tt);if(q&&B&&(W.rangeCount!==1||W.anchorNode!==q.node||W.anchorOffset!==q.offset||W.focusNode!==B.node||W.focusOffset!==B.offset)){var $=te.createRange();$.setStart(q.node,q.offset),W.removeAllRanges(),ve>tt?(W.addRange($),W.extend(B.node,B.offset)):($.setEnd(B.node,B.offset),W.addRange($))}}}}for(te=[],W=S;W=W.parentNode;)W.nodeType===1&&te.push({element:W,left:W.scrollLeft,top:W.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<te.length;S++){var ee=te[S];ee.element.scrollLeft=ee.left,ee.element.scrollTop=ee.top}}xd=!!Qp,Xp=Qp=null}finally{Ye=p,ae.p=h,X.T=o}}i.current=r,Mt=2}}function yw(){if(Mt===2){Mt=0;var i=Nr,r=zo,o=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||o){o=X.T,X.T=null;var h=ae.p;ae.p=2;var p=Ye;Ye|=4;try{Hb(i,r.alternate,r)}finally{Ye=p,ae.p=h,X.T=o}}Mt=3}}function xw(){if(Mt===4||Mt===3){Mt=0,zl();var i=Nr,r=zo,o=Ns,h=sw;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?Mt=5:(Mt=0,zo=Nr=null,vw(i,i.pendingLanes));var p=i.pendingLanes;if(p===0&&(Ar=null),Kl(o),r=r.stateNode,an&&typeof an.onCommitFiberRoot=="function")try{an.onCommitFiberRoot(Ys,r,void 0,(r.current.flags&128)===128)}catch{}if(h!==null){r=X.T,p=ae.p,ae.p=2,X.T=null;try{for(var y=i.onRecoverableError,w=0;w<h.length;w++){var S=h[w];y(S.value,{componentStack:S.stack})}}finally{X.T=r,ae.p=p}}(Ns&3)!==0&&ad(),Fi(i),p=i.pendingLanes,(o&261930)!==0&&(p&42)!==0?i===Pp?Ic++:(Ic=0,Pp=i):Ic=0,Dc(0)}}function vw(i,r){(i.pooledCacheLanes&=r)===0&&(r=i.pooledCache,r!=null&&(i.pooledCache=null,dc(r)))}function ad(){return gw(),yw(),xw(),bw()}function bw(){if(Mt!==5)return!1;var i=Nr,r=Lp;Lp=0;var o=Kl(Ns),h=X.T,p=ae.p;try{ae.p=32>o?32:o,X.T=null,o=Op,Op=null;var y=Nr,w=Ns;if(Mt=0,zo=Nr=null,Ns=0,(Ye&6)!==0)throw Error(s(331));var S=Ye;if(Ye|=4,tw(y.current),Jb(y,y.current,w,o),Ye=S,Dc(0,!1),an&&typeof an.onPostCommitFiberRoot=="function")try{an.onPostCommitFiberRoot(Ys,y)}catch{}return!0}finally{ae.p=p,X.T=h,vw(i,r)}}function ww(i,r,o){r=Zn(o,r),r=pp(i.stateNode,r,2),i=br(i,r,2),i!==null&&(Xs(i,2),Fi(i))}function Je(i,r,o){if(i.tag===3)ww(i,i,o);else for(;r!==null;){if(r.tag===3){ww(r,i,o);break}else if(r.tag===1){var h=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof h.componentDidCatch=="function"&&(Ar===null||!Ar.has(h))){i=Zn(o,i),o=_b(2),h=br(r,o,2),h!==null&&(Tb(o,h,r,i),Xs(h,2),Fi(h));break}}r=r.return}}function Bp(i,r,o){var h=i.pingCache;if(h===null){h=i.pingCache=new wR;var p=new Set;h.set(r,p)}else p=h.get(r),p===void 0&&(p=new Set,h.set(r,p));p.has(o)||(Dp=!0,p.add(o),i=AR.bind(null,i,r,o),r.then(i,i))}function AR(i,r,o){var h=i.pingCache;h!==null&&h.delete(r),i.pingedLanes|=i.suspendedLanes&o,i.warmLanes&=~o,it===i&&(Oe&o)===o&&(vt===4||vt===3&&(Oe&62914560)===Oe&&300>Kt()-ed?(Ye&2)===0&&Fo(i,0):kp|=o,Bo===Oe&&(Bo=0)),Fi(i)}function _w(i,r){r===0&&(r=ql()),i=Ea(i,r),i!==null&&(Xs(i,r),Fi(i))}function NR(i){var r=i.memoizedState,o=0;r!==null&&(o=r.retryLane),_w(i,o)}function jR(i,r){var o=0;switch(i.tag){case 31:case 13:var h=i.stateNode,p=i.memoizedState;p!==null&&(o=p.retryLane);break;case 19:h=i.stateNode;break;case 22:h=i.stateNode._retryCache;break;default:throw Error(s(314))}h!==null&&h.delete(r),_w(i,o)}function RR(i,r){return ca(i,r)}var od=null,qo=null,zp=!1,ld=!1,Fp=!1,Rr=0;function Fi(i){i!==qo&&i.next===null&&(qo===null?od=qo=i:qo=qo.next=i),ld=!0,zp||(zp=!0,IR())}function Dc(i,r){if(!Fp&&ld){Fp=!0;do for(var o=!1,h=od;h!==null;){if(i!==0){var p=h.pendingLanes;if(p===0)var y=0;else{var w=h.suspendedLanes,S=h.pingedLanes;y=(1<<31-pn(42|i)+1)-1,y&=p&~(w&~S),y=y&201326741?y&201326741|1:y?y|2:0}y!==0&&(o=!0,Aw(h,y))}else y=Oe,y=Wn(h,h===it?y:0,h.cancelPendingCommit!==null||h.timeoutHandle!==-1),(y&3)===0||Qs(h,y)||(o=!0,Aw(h,y));h=h.next}while(o);Fp=!1}}function CR(){Tw()}function Tw(){ld=zp=!1;var i=0;Rr!==0&&zR()&&(i=Rr);for(var r=Kt(),o=null,h=od;h!==null;){var p=h.next,y=Ew(h,r);y===0?(h.next=null,o===null?od=p:o.next=p,p===null&&(qo=o)):(o=h,(i!==0||(y&3)!==0)&&(ld=!0)),h=p}Mt!==0&&Mt!==5||Dc(i),Rr!==0&&(Rr=0)}function Ew(i,r){for(var o=i.suspendedLanes,h=i.pingedLanes,p=i.expirationTimes,y=i.pendingLanes&-62914561;0<y;){var w=31-pn(y),S=1<<w,O=p[w];O===-1?((S&o)===0||(S&h)!==0)&&(p[w]=co(S,r)):O<=r&&(i.expiredLanes|=S),y&=~S}if(r=it,o=Oe,o=Wn(i,i===r?o:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h=i.callbackNode,o===0||i===r&&(Xe===2||Xe===9)||i.cancelPendingCommit!==null)return h!==null&&h!==null&&lo(h),i.callbackNode=null,i.callbackPriority=0;if((o&3)===0||Qs(i,o)){if(r=o&-o,r===i.callbackPriority)return r;switch(h!==null&&lo(h),Kl(o)){case 2:case 8:o=Ut;break;case 32:o=is;break;case 268435456:o=Fl;break;default:o=is}return h=Sw.bind(null,i),o=ca(o,h),i.callbackPriority=r,i.callbackNode=o,r}return h!==null&&h!==null&&lo(h),i.callbackPriority=2,i.callbackNode=null,2}function Sw(i,r){if(Mt!==0&&Mt!==5)return i.callbackNode=null,i.callbackPriority=0,null;var o=i.callbackNode;if(ad()&&i.callbackNode!==o)return null;var h=Oe;return h=Wn(i,i===it?h:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),h===0?null:(aw(i,h,r),Ew(i,Kt()),i.callbackNode!=null&&i.callbackNode===o?Sw.bind(null,i):null)}function Aw(i,r){if(ad())return null;aw(i,r,!0)}function IR(){GR(function(){(Ye&6)!==0?ca(kt,CR):Tw()})}function Gp(){if(Rr===0){var i=Ro;i===0&&(i=ha,ha<<=1,(ha&261888)===0&&(ha=256)),Rr=i}return Rr}function Nw(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:Oi(""+i)}function jw(i,r){var o=r.ownerDocument.createElement("input");return o.name=r.name,o.value=r.value,i.id&&o.setAttribute("form",i.id),r.parentNode.insertBefore(o,r),i=new FormData(i),o.parentNode.removeChild(o),i}function DR(i,r,o,h,p){if(r==="submit"&&o&&o.stateNode===p){var y=Nw((p[Wt]||null).action),w=h.submitter;w&&(r=(r=w[Wt]||null)?Nw(r.formAction):w.getAttribute("formAction"),r!==null&&(y=r,w=null));var S=new ya("action","action",null,h,p);i.push({event:S,listeners:[{instance:null,listener:function(){if(h.defaultPrevented){if(Rr!==0){var O=w?jw(p,w):new FormData(p);cp(o,{pending:!0,data:O,method:p.method,action:y},null,O)}}else typeof y=="function"&&(S.preventDefault(),O=w?jw(p,w):new FormData(p),cp(o,{pending:!0,data:O,method:p.method,action:y},y,O))},currentTarget:p}]})}}for(var qp=0;qp<Am.length;qp++){var Hp=Am[qp],kR=Hp.toLowerCase(),MR=Hp[0].toUpperCase()+Hp.slice(1);mi(kR,"on"+MR)}mi(r0,"onAnimationEnd"),mi(a0,"onAnimationIteration"),mi(o0,"onAnimationStart"),mi("dblclick","onDoubleClick"),mi("focusin","onFocus"),mi("focusout","onBlur"),mi(Qj,"onTransitionRun"),mi(Xj,"onTransitionStart"),mi(Jj,"onTransitionCancel"),mi(l0,"onTransitionEnd"),Li("onMouseEnter",["mouseout","mouseover"]),Li("onMouseLeave",["mouseout","mouseover"]),Li("onPointerEnter",["pointerout","pointerover"]),Li("onPointerLeave",["pointerout","pointerover"]),gn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),gn("onSelect","focusout contextmenu dragend focu
48sin keydown keyup mousedown mouseup selectionchange".split(" ")),gn("onBeforeInput",["compositionend","keypress","textInput","paste"]),gn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),gn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),gn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var kc="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(" "),LR=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(kc));function Rw(i,r){r=(r&4)!==0;for(var o=0;o<i.length;o++){var h=i[o],p=h.event;h=h.listeners;e:{var y=void 0;if(r)for(var w=h.length-1;0<=w;w--){var S=h[w],O=S.instance,K=S.currentTarget;if(S=S.listener,O!==y&&p.isPropagationStopped())break e;y=S,p.currentTarget=K;try{y(p)}catch(Z){Th(Z)}p.currentTarget=null,y=O}else for(w=0;w<h.length;w++){if(S=h[w],O=S.instance,K=S.currentTarget,S=S.listener,O!==y&&p.isPropagationStopped())break e;y=S,p.currentTarget=K;try{y(p)}catch(Z){Th(Z)}p.currentTarget=null,y=O}}}}function Le(i,r){var o=r[er];o===void 0&&(o=r[er]=new Set);var h=i+"__bubble";o.has(h)||(Cw(r,i,2,!1),o.add(h))}function $p(i,r,o){var h=0;r&&(h|=4),Cw(o,i,h,r)}var cd="_reactListening"+Math.random().toString(36).slice(2);function Kp(i){if(!i[cd]){i[cd]=!0,uo.forEach(function(o){o!=="selectionchange"&&(LR.has(o)||$p(o,!1,i),$p(o,!0,i))});var r=i.nodeType===9?i:i.ownerDocument;r===null||r[cd]||(r[cd]=!0,$p("selectionchange",!1,r))}}function Cw(i,r,o,h){switch(r_(r)){case 2:var p=cC;break;case 8:p=uC;break;default:p=lg}o=p.bind(null,r,o,i),p=void 0,!tc||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(p=!0),h?p!==void 0?i.addEventListener(r,o,{capture:!0,passive:p}):i.addEventListener(r,o,!0):p!==void 0?i.addEventListener(r,o,{passive:p}):i.addEventListener(r,o,!1)}function Yp(i,r,o,h,p){var y=h;if((r&1)===0&&(r&2)===0&&h!==null)e:for(;;){if(h===null)return;var w=h.tag;if(w===3||w===4){var S=h.stateNode.containerInfo;if(S===p)break;if(w===4)for(w=h.return;w!==null;){var O=w.tag;if((O===3||O===4)&&w.stateNode.containerInfo===p)return;w=w.return}for(;S!==null;){if(w=os(S),w===null)return;if(O=w.tag,O===5||O===6||O===26||O===27){h=y=w;continue e}S=S.parentNode}}h=h.return}oh(function(){var K=y,Z=go(o),te=[];e:{var Y=c0.get(i);if(Y!==void 0){var W=ya,pe=i;switch(i){case"keypress":if(ga(o)===0)break e;case"keydown":case"keyup":W=gh;break;case"focusin":pe="focus",W=ur;break;case"focusout":pe="blur",W=ur;break;case"beforeblur":case"afterblur":W=ur;break;case"click":if(o.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":W=ch;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":W=uh;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":W=xh;break;case r0:case a0:case o0:W=vo;break;case l0:W=bo;break;case"scroll":case"scrollend":W=lh;break;case"wheel":W=bh;break;case"copy":case"cut":case"paste":W=dh;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":W=ac;break;case"toggle":case"beforetoggle":W=dr}var ve=(r&4)!==0,tt=!ve&&(i==="scroll"||i==="scrollend"),q=ve?Y!==null?Y+"Capture":null:Y;ve=[];for(var B=K,$;B!==null;){var ee=B;if($=ee.stateNode,ee=ee.tag,ee!==5&&ee!==26&&ee!==27||$===null||q===null||(ee=Tn(B,q),ee!=null&&ve.push(Mc(B,ee,$))),tt)break;B=B.return}0<ve.length&&(Y=new W(Y,pe,null,o,Z),te.push({event:Y,listeners:ve}))}}if((r&7)===0){e:{if(Y=i==="mouseover"||i==="pointerover",W=i==="mouseout"||i==="pointerout",Y&&o!==po&&(pe=o.relatedTarget||o.fromElement)&&(os(pe)||pe[ki]))break e;if((W||Y)&&(Y=Z.window===Z?Z:(Y=Z.ownerDocument)?Y.defaultView||Y.parentWindow:window,W?(pe=o.relatedTarget||o.toElement,W=K,pe=pe?os(pe):null,pe!==null&&(tt=l(pe),ve=pe.tag,pe!==tt||ve!==5&&ve!==27&&ve!==6)&&(pe=null)):(W=null,pe=K),W!==pe)){if(ve=ch,ee="onMouseLeave",q="onMouseEnter",B="mouse",(i==="pointerout"||i==="pointerover")&&(ve=ac,ee="onPointerLeave",q="onPointerEnter",B="pointer"),tt=W==null?Y:fa(W),$=pe==null?Y:fa(pe),Y=new ve(ee,B+"leave",W,o,Z),Y.target=tt,Y.relatedTarget=$,ee=null,os(Z)===K&&(ve=new ve(q,B+"enter",pe,o,Z),ve.target=$,ve.relatedTarget=tt,ee=ve),tt
vendor: 5,505 bytes, lines 48-49
48=ee,W&&pe)t:{for(ve=OR,q=W,B=pe,$=0,ee=q;ee;ee=ve(ee))$++;ee=0;for(var ye=B;ye;ye=ve(ye))ee++;for(;0<$-ee;)q=ve(q),$--;for(;0<ee-$;)B=ve(B),ee--;for(;$--;){if(q===B||B!==null&&q===B.alternate){ve=q;break t}q=ve(q),B=ve(B)}ve=null}else ve=null;W!==null&&Iw(te,Y,W,ve,!1),pe!==null&&tt!==null&&Iw(te,tt,pe,ve,!0)}}e:{if(Y=K?fa(K):window,W=Y.nodeName&&Y.nodeName.toLowerCase(),W==="select"||W==="input"&&Y.type==="file")var $e=Yv;else if(En(Y))if(Wv)$e=Kj;else{$e=Hj;var ge=qj}else W=Y.nodeName,!W||W.toLowerCase()!=="input"||Y.type!=="checkbox"&&Y.type!=="radio"?K&&Zl(K.elementType)&&($e=Yv):$e=$j;if($e&&($e=$e(i,K))){wa(te,$e,o,Z);break e}ge&&ge(i,Y,K),i==="focusout"&&K&&Y.type==="number"&&K.memoizedProps.value!=null&&mo(Y,"number",Y.value)}switch(ge=K?fa(K):window,i){case"focusin":(En(ge)||ge.contentEditable==="true")&&(wo=ge,Tm=K,cc=null);break;case"focusout":cc=Tm=wo=null;break;case"mousedown":Em=!0;break;case"contextmenu":case"mouseup":case"dragend":Em=!1,i0(te,o,Z);break;case"selectionchange":if(Wj)break;case"keydown":case"keyup":i0(te,o,Z)}var Ce;if(b)e:{switch(i){case"compositionstart":var Pe="onCompositionStart";break e;case"compositionend":Pe="onCompositionEnd";break e;case"compositionupdate":Pe="onCompositionUpdate";break e}Pe=void 0}else ke?We(i,o)&&(Pe="onCompositionEnd"):i==="keydown"&&o.keyCode===229&&(Pe="onCompositionStart");Pe&&(H&&o.locale!=="ko"&&(ke||Pe!=="onCompositionStart"?Pe==="onCompositionEnd"&&ke&&(Ce=ar()):(Pn=Z,yo="value"in Pn?Pn.value:Pn.textContent,ke=!0)),ge=ud(K,Pe),0<ge.length&&(Pe=new ic(Pe,i,null,o,Z),te.push({event:Pe,listeners:ge}),Ce?Pe.data=Ce:(Ce=St(o),Ce!==null&&(Pe.data=Ce)))),(Ce=N?zt(i,o):Ft(i,o))&&(Pe=ud(K,"onBeforeInput"),0<Pe.length&&(ge=new ic("onBeforeInput","beforeinput",null,o,Z),te.push({event:ge,listeners:Pe}),ge.data=Ce)),DR(te,i,K,o,Z)}Rw(te,r)})}function Mc(i,r,o){return{instance:i,listener:r,currentTarget:o}}function ud(i,r){for(var o=r+"Capture",h=[];i!==null;){var p=i,y=p.stateNode;if(p=p.tag,p!==5&&p!==26&&p!==27||y===null||(p=Tn(i,o),p!=null&&h.unshift(Mc(i,p,y)),p=Tn(i,r),p!=null&&h.push(Mc(i,p,y))),i.tag===3)return h;i=i.return}return[]}function OR(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function Iw(i,r,o,h,p){for(var y=r._reactName,w=[];o!==null&&o!==h;){var S=o,O=S.alternate,K=S.stateNode;if(S=S.tag,O!==null&&O===h)break;S!==5&&S!==26&&S!==27||K===null||(O=K,p?(K=Tn(o,y),K!=null&&w.unshift(Mc(o,K,O))):p||(K=Tn(o,y),K!=null&&w.push(Mc(o,K,O)))),o=o.return}w.length!==0&&i.push({event:r,listeners:w})}var PR=/\r\n?/g,VR=/\u0000|\uFFFD/g;function Dw(i){return(typeof i=="string"?i:""+i).replace(PR,` 49`).replace(VR,"")}function kw(i,r){return r=Dw(r),Dw(i)===r}function et(i,r,o,h,p,y){switch(o){case"children":typeof h=="string"?r==="body"||r==="textarea"&&h===""||Xn(i,h):(typeof h=="number"||typeof h=="bigint")&&r!=="body"&&Xn(i,""+h);break;case"className":ir(i,"class",h);break;case"tabIndex":ir(i,"tabindex",h);break;case"dir":case"role":case"viewBox":case"width":case"height":ir(i,o,h);break;case"style":rh(i,h,y);break;case"data":if(r!=="object"){ir(i,"data",h);break}case"src":case"href":if(h===""&&(r!=="a"||o!=="href")){i.removeAttribute(o);break}if(h==null||typeof h=="function"||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(o);break}h=Oi(""+h),i.setAttribute(o,h);break;case"action":case"formAction":if(typeof h=="function"){i.setAttribute(o,"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}else typeof y=="function"&&(o==="formAction"?(r!=="input"&&et(i,r,"name",p.name,p,null),et(i,r,"formEncType",p.formEncType,p,null),et(i,r,"formMethod",p.formMethod,p,null),et(i,r,"formTarget",p.formTarget,p,null)):(et(i,r,"encType",p.encType,p,null),et(i,r,"method",p.method,p,null),et(i,r,"target",p.target,p,null)));if(h==null||typeof h=="symbol"||typeof h=="boolean"){i.removeAttribute(o);break}h=Oi(""+h),i.setAttribute(o,h);break;case"onClick":h!=null&&(i.onclick=Bt);break;case"onScroll":h!=null&&Le("scroll",i);break;case"onScrollEnd":h!=null&&Le("scrollend",i);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(s(61));if(o=h.__html,o!=null){if(p.children!=null)throw Error(s(60));i.innerHTML=o}}break;case"multiple":i.multiple=h&&typeof h!="function"&&typeof h!="symbol";break;case"muted":i.muted=h&&typeof h!="function"&&typeof h!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(h==null||typeof h=="function"||typeof h=="boolean"||typeof h=="symbol"){i.removeAttribute("xlink:href");break}o=Oi(""+h),i.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",o);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(o,""+h):i.removeAttribute(o);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
49ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":h&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(o,""):i.removeAttribute(o);break;case"capture":case"download":h===!0?i.setAttribute(o,""):h!==!1&&h!=null&&typeof h!="function"&&typeof h!="symbol"?i.setAttribute(o,h):i.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":h!=null&&typeof h!="function"&&typeof h!="symbol"&&!isNaN(h)&&1<=h?i.setAttribute(o,h):i.removeAttribute(o);break;case"rowSpan":case"start":h==null||typeof h=="function"||typeof h=="symbol"||isNaN(h)?i.removeAttribute(o):i.setAttribute(o,h);break;case"popover":Le("beforetoggle",i),Le("toggle",i),nr(i,"popover",h);break;case"xlinkActuate":Qn(i,"http://www.w3.org/1999/xlink","xlink:actuate",h);break;case"xlinkArcrole":Qn(i,"http://www.w3.org/1999/xlink","xlink:arcrole",h);break;case"xlinkRole":Qn(i,"http://www.w3.org/1999/xlink","xlink:role",h);break;case"xlinkShow":Qn(i,"http://www.w3.org/1999/xlink","xlink:show",h);break;case"xlinkTitle":Qn(i,"http://www.w3.org/1999/xlink","xlink:title",h);break;case"xlinkType":Qn(i,"http://www.w3.org/1999/xlink","xlink:type",h);break;case"xmlBase":Qn(i,"http://www.w3.org/XML/1998/namespace","xml:base",h);break;case"xmlLang":Qn(i,"http://www.w3.org/XML/1998/namespace","xml:lang",h);break;case"xmlSpace":Qn(i,"http://www.w3.org/XML/1998/namespace","xml:space",h);break;case"is":nr(i,"is",h);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=ym.get(o)||o,nr(i,o,h))}}function Wp(i,r,o,h,p,y){switch(o){case"style":rh(i,h,y);break;case"dangerouslySetInnerHTML":if(h!=null){if(typeof h!="object"||!("__html"in h))throw Error(s(61));if(o=h.__html,o!=null){if(p.children!=null)throw Error(s(60));i.innerHTML=o}}break;case"children":typeof h=="string"?Xn(i,h):(typeof h=="number"||typeof h=="bigint")&&Xn(i,""+h);break;case"onScroll":h!=null&&Le("scroll",i);break;case"onScrollEnd":h!=null&&Le("scrollend",i);break;case"onClick":h!=null&&(i.onclick=Bt);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!tr.hasOwnProperty(o))e:{if(o[0]==="o"&&o[1]==="n"&&(p=o.endsWith("Capture"),r=o.slice(2,p?o.length-7:void 0),y=i[Wt]||null,y=y!=null?y[o]:null,typeof y=="function"&&i.removeEventListener(r,y,p),typeof h=="function")){typeof y!="function"&&y!==null&&(o in i?i[o]=null:i.hasAttribute(o)&&i.removeAttribute(o)),i.addEventListener(r,h,p);break e}o in i?i[o]=h:h===!0?i.setAttribute(o,""):nr(i,o,h)}}}function Zt(i,r,o){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Le("error",i),Le("load",i);var h=!1,p=!1,y;for(y in o)if(o.hasOwnProperty(y)){var w=o[y];if(w!=null)switch(y){case"src":h=!0;break;case"srcSet":p=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,r));default:et(i,r,y,w,o,null)}}p&&et(i,r,"srcSet",o.srcSet,o,null),h&&et(i,r,"src",o.src,o,null);return;case"input":Le("invalid",i);var S=y=w=p=null,O=null,K=null;for(h in o)if(o.hasOwnProperty(h)){var Z=o[h];if(Z!=null)switch(h){case"name":p=Z;break;case"type":w=Z;break;case"checked":O=Z;break;case"defaultChecked":K=Z;break;case"value":y=Z;break;case"defaultValue":S=Z;break;case"children":case"dangerouslySetInnerHTML":if(Z!=null)throw Error(s(137,r));break;default:et(i,r,h,Z,o,null)}}ma(i,y,S,O,K,w,p,!1);return;case"select":Le("invalid",i),h=w=y=null;for(p in o)if(o.hasOwnProperty(p)&&(S=o[p],S!=null))switch(p){case"value":y=S;break;case"defaultValue":w=S;break;case"multiple":h=S;default:et(i,r,p,S,o,null)}r=y,o=w,i.multiple=!!h,r!=null?He(i,!!h,r,!1):o!=null&&He(i,!!h,o,!0);return;case"textarea":Le("invalid",i),y=p=h=null;for(w in o)if(o.hasOwnProperty(w)&&(S=o[w],S!=null))switch(w){case"value":h=S;break;case"defaultValue":p=S;break;case"children":y=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(s(91));break;default:et(i,r,w,S,o,null)}rr(i,h,p,y);return;case"option":for(O in o)if(o.hasOwnProperty(O)&&(h=o[O],h!=null))switch(O){case"selected":i.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:et(i,r,O,h,o,null)}return;case"dialog":Le("beforetoggle",i),Le("toggle",i),Le("cancel",i),Le("close",i);break;case"iframe":case"object":Le("load",i);break;case"video":case"audio":for(h=0;h<kc.length;h++)Le(kc[h],i);break;case"image":Le("error",i),Le("load",i);break;case"details":Le("toggle",i);break;case"embed":case"source":case"link":Le("error",i),Le("load",i);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(K in o)if(o.hasOwnProperty(K)&&(h=o[K],h!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,r));default:et(i,r,K,h,o,null)}return;default:if(Zl(r)){for(Z in o)o.hasOwnProperty(Z)&&(h=o[Z],h!==void 0&&Wp(i,r,Z,h,o,void 0));return}}for(S in o)o.hasOwnProperty(S)&&(h=o[S],h!=null&&et(i,r,S,h,o,null))}function UR(i,r,o,h){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var p=null,y=null,w=null,S=null,O=null,K=null,Z=null;for(W in o){var te=o[W];if(o.hasOwnProperty(W)&&te!=null)switch(W){case"checked":break;case"value":break;case"defaultValue":O=te;default:h.hasOwnProperty(W)||et(i,r,W,null,h,te)}}for(var Y in h){var W=h[Y];if(te=o[Y],h.hasOwnProperty(Y)&&(W!=null||te!=null))switch(Y){case"type":y=W;break;case"name":p=W;break;case"checked":K=W;break;case"defaultChecked":Z=W;break;case"value":w=W;break;case"defaultValue":S=W;break;case"children":case"dangerouslySetInnerHTML":if(W!=null)throw Error(s(137,r));break;default:W!==te&&et(i,r,Y,W,h,te)}
vendor: 7,203 bytes, line 49
49}sr(i,w,S,O,K,Z,y,p);return;case"select":W=w=S=Y=null;for(y in o)if(O=o[y],o.hasOwnProperty(y)&&O!=null)switch(y){case"value":break;case"multiple":W=O;default:h.hasOwnProperty(y)||et(i,r,y,null,h,O)}for(p in h)if(y=h[p],O=o[p],h.hasOwnProperty(p)&&(y!=null||O!=null))switch(p){case"value":Y=y;break;case"defaultValue":S=y;break;case"multiple":w=y;default:y!==O&&et(i,r,p,y,h,O)}r=S,o=w,h=W,Y!=null?He(i,!!o,Y,!1):!!h!=!!o&&(r!=null?He(i,!!o,r,!0):He(i,!!o,o?[]:"",!1));return;case"textarea":W=Y=null;for(S in o)if(p=o[S],o.hasOwnProperty(S)&&p!=null&&!h.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:et(i,r,S,null,h,p)}for(w in h)if(p=h[w],y=o[w],h.hasOwnProperty(w)&&(p!=null||y!=null))switch(w){case"value":Y=p;break;case"defaultValue":W=p;break;case"children":break;case"dangerouslySetInnerHTML":if(p!=null)throw Error(s(91));break;default:p!==y&&et(i,r,w,p,h,y)}pa(i,Y,W);return;case"option":for(var pe in o)if(Y=o[pe],o.hasOwnProperty(pe)&&Y!=null&&!h.hasOwnProperty(pe))switch(pe){case"selected":i.selected=!1;break;default:et(i,r,pe,null,h,Y)}for(O in h)if(Y=h[O],W=o[O],h.hasOwnProperty(O)&&Y!==W&&(Y!=null||W!=null))switch(O){case"selected":i.selected=Y&&typeof Y!="function"&&typeof Y!="symbol";break;default:et(i,r,O,Y,h,W)}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 ve in o)Y=o[ve],o.hasOwnProperty(ve)&&Y!=null&&!h.hasOwnProperty(ve)&&et(i,r,ve,null,h,Y);for(K in h)if(Y=h[K],W=o[K],h.hasOwnProperty(K)&&Y!==W&&(Y!=null||W!=null))switch(K){case"children":case"dangerouslySetInnerHTML":if(Y!=null)throw Error(s(137,r));break;default:et(i,r,K,Y,h,W)}return;default:if(Zl(r)){for(var tt in o)Y=o[tt],o.hasOwnProperty(tt)&&Y!==void 0&&!h.hasOwnProperty(tt)&&Wp(i,r,tt,void 0,h,Y);for(Z in h)Y=h[Z],W=o[Z],!h.hasOwnProperty(Z)||Y===W||Y===void 0&&W===void 0||Wp(i,r,Z,Y,h,W);return}}for(var q in o)Y=o[q],o.hasOwnProperty(q)&&Y!=null&&!h.hasOwnProperty(q)&&et(i,r,q,null,h,Y);for(te in h)Y=h[te],W=o[te],!h.hasOwnProperty(te)||Y===W||Y==null&&W==null||et(i,r,te,Y,h,W)}function Mw(i){switch(i){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function BR(){if(typeof performance.getEntriesByType=="function"){for(var i=0,r=0,o=performance.getEntriesByType("resource"),h=0;h<o.length;h++){var p=o[h],y=p.transferSize,w=p.initiatorType,S=p.duration;if(y&&S&&Mw(w)){for(w=0,S=p.responseEnd,h+=1;h<o.length;h++){var O=o[h],K=O.startTime;if(K>S)break;var Z=O.transferSize,te=O.initiatorType;Z&&Mw(te)&&(O=O.responseEnd,w+=Z*(O<S?1:(S-K)/(O-K)))}if(--h,r+=8*(y+w)/(p.duration/1e3),i++,10<i)break}}if(0<i)return r/i/1e6}return navigator.connection&&(i=navigator.connection.downlink,typeof i=="number")?i:5}var Qp=null,Xp=null;function hd(i){return i.nodeType===9?i:i.ownerDocument}function Lw(i){switch(i){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Ow(i,r){if(i===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return i===1&&r==="foreignObject"?0:i}function Jp(i,r){return i==="textarea"||i==="noscript"||typeof r.children=="string"||typeof r.children=="number"||typeof r.children=="bigint"||typeof r.dangerouslySetInnerHTML=="object"&&r.dangerouslySetInnerHTML!==null&&r.dangerouslySetInnerHTML.__html!=null}var Zp=null;function zR(){var i=window.event;return i&&i.type==="popstate"?i===Zp?!1:(Zp=i,!0):(Zp=null,!1)}var Pw=typeof setTimeout=="function"?setTimeout:void 0,FR=typeof clearTimeout=="function"?clearTimeout:void 0,Vw=typeof Promise=="function"?Promise:void 0,GR=typeof queueMicrotask=="function"?queueMicrotask:typeof Vw<"u"?function(i){return Vw.resolve(null).then(i).catch(qR)}:Pw;function qR(i){setTimeout(function(){throw i})}function Cr(i){return i==="head"}function Uw(i,r){var o=r,h=0;do{var p=o.nextSibling;if(i.removeChild(o),p&&p.nodeType===8)if(o=p.data,o==="/$"||o==="/&"){if(h===0){i.removeChild(p),Yo(r);return}h--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")h++;else if(o==="html")Lc(i.ownerDocument.documentElement);else if(o==="head"){o=i.ownerDocument.head,Lc(o);for(var y=o.firstChild;y;){var w=y.nextSibling,S=y.nodeName;y[as]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&y.rel.toLowerCase()==="stylesheet"||o.removeChild(y),y=w}}else o==="body"&&Lc(i.ownerDocument.body);o=p}while(o);Yo(r)}function Bw(i,r){var o=i;i=0;do{var h=o.nextSibling;if(o.nodeType===1?r?(o._stashedDisplay=o.style.display,o.style.display="none"):(o.style.display=o._stashedDisplay||"",o.getAttribute("style")===""&&o.removeAttribute("style")):o.nodeType===3&&(r?(o._stashedText=o.nodeValue,o.nodeValue=""):o.nodeValue=o._stashedText||""),h&&h.nodeType===8)if(o=h.data,o==="/$"){if(i===0)break;i--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||i++;o=h}while(o)}function eg(i){var r=i.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var o=r;switch(r=r.nextSibling,o.nodeName){case"HTML":case"HEAD":case"BODY":eg(o),da(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}i.removeChild(o)}}function HR(i,r,o,h){for(;i.nodeType===1;){var p=o;if(i.nodeName.toLowerCase()!==r.toLowerCase()){if(!h&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(h){if(!i[as])switch(r){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(y=i.getAttribute("rel"),y==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(y!==p.rel||i.getAttribute("href")!==(p.href==null||p.href===""?null:p.href)||i.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin)||i.getAttribute("title")!==(p.title==null?null:p.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(y=i.getAttribute("src"),(y!==(p.src==null?null:p.src)||i.getAttribute("type")!==(p.type==null?null:p.type)||i.getAttribute("crossorigin")!==(p.crossOrigin==null?null:p.crossOrigin))&&y&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(r==="input"&&i.type==="hidden"){var y=p.name==null?null:""+p.name;if(p.type==="hidden"&&i.getAttribute("name")===y)return i}else return i;if(i=si(i.nextSibling),i===null)break}return null}function $R(i,r,o){if(r==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!o||(i=si(i.nextSibling),i===null))return null;return i}function zw(i,r){for(;i.nodeType!==8;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!r||(i=si(i.nextSibling),i===null))return null;return i}function tg(i){return i.data==="$?"||i.data==="$~"}function ng(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState!=="loading"}function KR(i,r){var o=i.ownerDocument;if(i.data==="$~")i._reactRetry=r;else if(i.data!=="$?"||o.readyState!=="loading")r();else{var h=function(){r(),o.removeEventListener("DOMContentLoaded",h)};o.addEventListener("DOMContentLoaded",h),i._reactRetry=h}}function si(i){for(;i!=null;i=i.nextSibling){var r=i.nodeType;if(r===1||r===3)break;if(r===8){if(r=i.data,r==="$"||r==="$!"||r==="$?"||r==="$~"||r==="&"||r==="F!"||r==="F")break;
vendor: 9,487 bytes, line 49
49if(r==="/$"||r==="/&")return null}}return i}var ig=null;function Fw(i){i=i.nextSibling;for(var r=0;i;){if(i.nodeType===8){var o=i.data;if(o==="/$"||o==="/&"){if(r===0)return si(i.nextSibling);r--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||r++}i=i.nextSibling}return null}function Gw(i){i=i.previousSibling;for(var r=0;i;){if(i.nodeType===8){var o=i.data;if(o==="$"||o==="$!"||o==="$?"||o==="$~"||o==="&"){if(r===0)return i;r--}else o!=="/$"&&o!=="/&"||r++}i=i.previousSibling}return null}function qw(i,r,o){switch(r=hd(o),i){case"html":if(i=r.documentElement,!i)throw Error(s(452));return i;case"head":if(i=r.head,!i)throw Error(s(453));return i;case"body":if(i=r.body,!i)throw Error(s(454));return i;default:throw Error(s(451))}}function Lc(i){for(var r=i.attributes;r.length;)i.removeAttributeNode(r[0]);da(i)}var ri=new Map,Hw=new Set;function dd(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var js=ae.d;ae.d={f:YR,r:WR,D:QR,C:XR,L:JR,m:ZR,X:tC,S:eC,M:nC};function YR(){var i=js.f(),r=id();return i||r}function WR(i){var r=ls(i);r!==null&&r.tag===5&&r.type==="form"?lb(r):js.r(i)}var Ho=typeof document>"u"?null:document;function $w(i,r,o){var h=Ho;if(h&&typeof r=="string"&&r){var p=yt(r);p='link[rel="'+i+'"][href="'+p+'"]',typeof o=="string"&&(p+='[crossorigin="'+o+'"]'),Hw.has(p)||(Hw.add(p),i={rel:i,crossOrigin:o,href:r},h.querySelector(p)===null&&(r=h.createElement("link"),Zt(r,"link",i),wt(r),h.head.appendChild(r)))}}function QR(i){js.D(i),$w("dns-prefetch",i,null)}function XR(i,r){js.C(i,r),$w("preconnect",i,r)}function JR(i,r,o){js.L(i,r,o);var h=Ho;if(h&&i&&r){var p='link[rel="preload"][as="'+yt(r)+'"]';r==="image"&&o&&o.imageSrcSet?(p+='[imagesrcset="'+yt(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(p+='[imagesizes="'+yt(o.imageSizes)+'"]')):p+='[href="'+yt(i)+'"]';var y=p;switch(r){case"style":y=$o(i);break;case"script":y=Ko(i)}ri.has(y)||(i=v({rel:"preload",href:r==="image"&&o&&o.imageSrcSet?void 0:i,as:r},o),ri.set(y,i),h.querySelector(p)!==null||r==="style"&&h.querySelector(Oc(y))||r==="script"&&h.querySelector(Pc(y))||(r=h.createElement("link"),Zt(r,"link",i),wt(r),h.head.appendChild(r)))}}function ZR(i,r){js.m(i,r);var o=Ho;if(o&&i){var h=r&&typeof r.as=="string"?r.as:"script",p='link[rel="modulepreload"][as="'+yt(h)+'"][href="'+yt(i)+'"]',y=p;switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":y=Ko(i)}if(!ri.has(y)&&(i=v({rel:"modulepreload",href:i},r),ri.set(y,i),o.querySelector(p)===null)){switch(h){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Pc(y)))return}h=o.createElement("link"),Zt(h,"link",i),wt(h),o.head.appendChild(h)}}}function eC(i,r,o){js.S(i,r,o);var h=Ho;if(h&&i){var p=di(h).hoistableStyles,y=$o(i);r=r||"default";var w=p.get(y);if(!w){var S={loading:0,preload:null};if(w=h.querySelector(Oc(y)))S.loading=5;else{i=v({rel:"stylesheet",href:i,"data-precedence":r},o),(o=ri.get(y))&&sg(i,o);var O=w=h.createElement("link");wt(O),Zt(O,"link",i),O._p=new Promise(function(K,Z){O.onload=K,O.onerror=Z}),O.addEventListener("load",function(){S.loading|=1}),O.addEventListener("error",function(){S.loading|=2}),S.loading|=4,fd(w,r,h)}w={type:"stylesheet",instance:w,count:1,state:S},p.set(y,w)}}}function tC(i,r){js.X(i,r);var o=Ho;if(o&&i){var h=di(o).hoistableScripts,p=Ko(i),y=h.get(p);y||(y=o.querySelector(Pc(p)),y||(i=v({src:i,async:!0},r),(r=ri.get(p))&&rg(i,r),y=o.createElement("script"),wt(y),Zt(y,"link",i),o.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},h.set(p,y))}}function nC(i,r){js.M(i,r);var o=Ho;if(o&&i){var h=di(o).hoistableScripts,p=Ko(i),y=h.get(p);y||(y=o.querySelector(Pc(p)),y||(i=v({src:i,async:!0,type:"module"},r),(r=ri.get(p))&&rg(i,r),y=o.createElement("script"),wt(y),Zt(y,"link",i),o.head.appendChild(y)),y={type:"script",instance:y,count:1,state:null},h.set(p,y))}}function Kw(i,r,o,h){var p=(p=De.current)?dd(p):null;if(!p)throw Error(s(446));switch(i){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(r=$o(o.href),o=di(p).hoistableStyles,h=o.get(r),h||(h={type:"style",instance:null,count:0,state:null},o.set(r,h)),h):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){i=$o(o.href);var y=di(p).hoistableStyles,w=y.get(i);if(w||(p=p.ownerDocument||p,w={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},y.set(i,w),(y=p.querySelector(Oc(i)))&&!y._p&&(w.instance=y,w.state.loading=5),ri.has(i)||(o={rel:"preload",as:"style",href:o.href,crossOrigin:o.crossOrigin,integrity:o.integrity,media:o.media,hrefLang:o.hrefLang,referrerPolicy:o.referrerPolicy},ri.set(i,o),y||iC(p,i,o,w.state))),r&&h===null)throw Error(s(528,""));return w}if(r&&h!==null)throw Error(s(529,""));return null;case"script":return r=o.async,o=o.src,typeof o=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=Ko(o),o=di(p).hoistableScripts,h=o.get(r),h||(h={type:"script",instance:null,count:0,state:null},o.set(r,h)),h):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,i))}}function $o(i){return'href="'+yt(i)+'"'}function Oc(i){return'link[rel="stylesheet"]['+i+"]"}function Yw(i){return v({},i,{"data-precedence":i.precedence,precedence:null})}function iC(i,r,o,h){i.querySelector('link[rel="preload"][as="style"]['+r+"]")?h.loading=1:(r=i.createElement("link"),h.preload=r,r.addEventListener("load",function(){return h.loading|=1}),r.addEventListener("error",function(){return h.loading|=2}),Zt(r,"link",o),wt(r),i.head.appendChild(r))}function Ko(i){return'[src="'+yt(i)+'"]'}function Pc(i){return"script[async]"+i}function Ww(i,r,o){if(r.count++,r.instance===null)switch(r.type){case"style":var h=i.querySelector('style[data-href~="'+yt(o.href)+'"]');if(h)return r.instance=h,wt(h),h;var p=v({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return h=(i.ownerDocument||i).createElement("style"),wt(h),Zt(h,"style",p),fd(h,o.precedence,i),r.instance=h;case"stylesheet":p=$o(o.href);var y=i.querySelector(Oc(p));if(y)return r.state.loading|=4,r.instance=y,wt(y),y;h=Yw(o),(p=ri.get(p))&&sg(h,p),y=(i.ownerDocument||i).createElement("link"),wt(y);var w=y;return w._p=new Promise(function(S,O){w.onload=S,w.onerror=O}),Zt(y,"link",h),r.state.loading|=4,fd(y,o.precedence,i),r.instance=y;case"script":return y=Ko(o.src),(p=i.querySelector(Pc(y)))?(r.instance=p,wt(p),p):(h=o,(p=ri.get(y))&&(h=v({},o),rg(h,p)),i=i.ownerDocument||i,p=i.createElement("script"),wt(p),Zt(p,"link",h),i.head.appendChild(p),r.instance=p);case"void":return null;default:throw Error(s(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(h=r.instance,r.state.loading|=4,fd(h,o.precedence,i));return r.instance}function fd(i,r,o){for(var h=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),p=h.length?h[h.length-1]:null,y=p,w=0;w<h.length;w++){var S=h[w];if(S.dataset.precedence===r)y=S;else if(y!==p)break}y?y.parentNode.insertBefore(i,y.nextSibling):(r=o.nodeType===9?o.head:o,r.insertBefore(i,r.firstChild))}function sg(i,r){i.crossOrigin==null&&(i.crossOrigin=r.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=r.referrerPolicy),i.title==null&&(i.title=r.title)}function rg(i,r){i.crossOrigin==null&&(i.crossOrigin=r.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=r.referrerPolicy),i.integrity==null&&(i.integrity=r.integrity)}var md=null;function Qw(i,r,o){if(md===null){var h=new Map,p=md=new Map;p.set(o,h)}else p=md,h=p.get(o),h||(h=new Map,p.set(o,h));if(h.has(i))return h;for(h.set(i,null),o=o.getElementsByTagName(i),p=0;p<o.length;p++){var y=o[p];if(!(y[as]||y[gt]||i==="link"&&y.getAttribute("rel")==="stylesheet")&&y.namespaceURI!=="http://www.w3.org/2000/svg"){var w=y.getAttribute(r)||"";w=i+w;var S=h.get(w);S?S.push(y):h.set(w,[y])}}return h}function Xw(i,r,o){i=i.ownerDocument||i,i.head.insertBefore(o,r==="title"?i.querySelector("head > title"):null)}function sC(i,r,o){if(o===1||r.itemProp!=null)return!1;switch(i){case"meta":case"title":return!0;case"style":if(typeof r.precedence!="string"||typeof r.href!="string"||r.href==="")break;return!0;case"link":if(typeof r.rel!="string"||typeof r.href!="string"||r.href===""||r.onLoad||r.onError)break;switch(r.rel){case"stylesheet":return i=r.disabled,typeof r.precedence=="string"&&i==null;default:return!0}case"script":if(r.async&&typeof r.async!="function"&&typeof r.async!="symbol"&&!r.onLoad&&!r.onError&&r.src&&typeof r.src=="string")return!0}return!1}function Jw(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}function rC(i,r,o,h){if(o.type==="stylesheet"&&(typeof h.media!="string"||matchMedia(h.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var p=$o(h.href),y=r.querySelector(Oc(p));if(y){r=y._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(i.count++,i=pd.bind(i),r.then(i,i)),o.state.loading|=4,o.instance=y,wt(y);return}y=r.ownerDocument||r,h=Yw(h),(p=ri.get(p))&&sg(h,p),y=y.createElement("link"),wt(y);var w=y;w._p=new Promise(function(S,O){w.onload=S,w.onerror=O}),Zt(y,"link",h),o.instance=y}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(o,r),(r=o.state.preload)&&(o.state.loading&3)===0&&(i.count++,o=pd.bind(i),r.addEventListener("load",o),r.addEventListener("error",o))}}var ag=0;
vendor: 4,458 bytes, line 49
49function aC(i,r){return i.stylesheets&&i.count===0&&yd(i,i.stylesheets),0<i.count||0<i.imgCount?function(o){var h=setTimeout(function(){if(i.stylesheets&&yd(i,i.stylesheets),i.unsuspend){var y=i.unsuspend;i.unsuspend=null,y()}},6e4+r);0<i.imgBytes&&ag===0&&(ag=62500*BR());var p=setTimeout(function(){if(i.waitingForImages=!1,i.count===0&&(i.stylesheets&&yd(i,i.stylesheets),i.unsuspend)){var y=i.unsuspend;i.unsuspend=null,y()}},(i.imgBytes>ag?50:800)+r);return i.unsuspend=o,function(){i.unsuspend=null,clearTimeout(h),clearTimeout(p)}}:null}function pd(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)yd(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var gd=null;function yd(i,r){i.stylesheets=null,i.unsuspend!==null&&(i.count++,gd=new Map,r.forEach(oC,i),gd=null,pd.call(i))}function oC(i,r){if(!(r.state.loading&4)){var o=gd.get(i);if(o)var h=o.get(null);else{o=new Map,gd.set(i,o);for(var p=i.querySelectorAll("link[data-precedence],style[data-precedence]"),y=0;y<p.length;y++){var w=p[y];(w.nodeName==="LINK"||w.getAttribute("media")!=="not all")&&(o.set(w.dataset.precedence,w),h=w)}h&&o.set(null,h)}p=r.instance,w=p.getAttribute("data-precedence"),y=o.get(w)||h,y===h&&o.set(null,p),o.set(w,p),this.count++,h=pd.bind(this),p.addEventListener("load",h),p.addEventListener("error",h),y?y.parentNode.insertBefore(p,y.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(p,i.firstChild)),r.state.loading|=4}}var Vc={$$typeof:z,Provider:null,Consumer:null,_currentValue:ue,_currentValue2:ue,_threadCount:0};function lC(i,r,o,h,p,y,w,S,O){this.tag=1,this.containerInfo=i,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=ss(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=ss(0),this.hiddenUpdates=ss(null),this.identifierPrefix=h,this.onUncaughtError=p,this.onCaughtError=y,this.onRecoverableError=w,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=O,this.incompleteTransitions=new Map}function Zw(i,r,o,h,p,y,w,S,O,K,Z,te){return i=new lC(i,r,o,w,O,K,Z,te,S),r=1,y===!0&&(r|=24),y=Un(3,null,null,r),i.current=y,y.stateNode=i,r=Um(),r.refCount++,i.pooledCache=r,r.refCount++,y.memoizedState={element:h,isDehydrated:o,cache:r},Gm(y),i}function e_(i){return i?(i=Eo,i):Eo}function t_(i,r,o,h,p,y){p=e_(p),h.context===null?h.context=p:h.pendingContext=p,h=vr(r),h.payload={element:o},y=y===void 0?null:y,y!==null&&(h.callback=y),o=br(i,h,r),o!==null&&(Rn(o,i,r),gc(o,i,r))}function n_(i,r){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var o=i.retryLane;i.retryLane=o!==0&&o<r?o:r}}function og(i,r){n_(i,r),(i=i.alternate)&&n_(i,r)}function i_(i){if(i.tag===13||i.tag===31){var r=Ea(i,67108864);r!==null&&Rn(r,i,67108864),og(i,67108864)}}function s_(i){if(i.tag===13||i.tag===31){var r=qn();r=$l(r);var o=Ea(i,r);o!==null&&Rn(o,i,r),og(i,r)}}var xd=!0;function cC(i,r,o,h){var p=X.T;X.T=null;var y=ae.p;try{ae.p=2,lg(i,r,o,h)}finally{ae.p=y,X.T=p}}function uC(i,r,o,h){var p=X.T;X.T=null;var y=ae.p;try{ae.p=8,lg(i,r,o,h)}finally{ae.p=y,X.T=p}}function lg(i,r,o,h){if(xd){var p=cg(h);if(p===null)Yp(i,r,h,vd,o),a_(i,h);else if(dC(p,i,r,o,h))h.stopPropagation();else if(a_(i,h),r&4&&-1<hC.indexOf(i)){for(;p!==null;){var y=ls(p);if(y!==null)switch(y.tag){case 3:if(y=y.stateNode,y.current.memoizedState.isDehydrated){var w=hi(y.pendingLanes);if(w!==0){var S=y;for(S.pendingLanes|=2,S.entangledLanes|=2;w;){var O=1<<31-pn(w);S.entanglements[1]|=O,w&=~O}Fi(y),(Ye&6)===0&&(td=Kt()+500,Dc(0))}}break;case 31:case 13:S=Ea(y,2),S!==null&&Rn(S,y,2),id(),og(y,2)}if(y=cg(h),y===null&&Yp(i,r,h,vd,o),y===p)break;p=y}p!==null&&h.stopPropagation()}else Yp(i,r,h,null,o)}}function cg(i){return i=go(i),ug(i)}var vd=null;function ug(i){if(vd=null,i=os(i),i!==null){var r=l(i);if(r===null)i=null;else{var o=r.tag;if(o===13){if(i=u(r),i!==null)return i;i=null}else if(o===31){if(i=d(r),i!==null)return i;i=null}else if(o===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;i=null}else r!==i&&(i=null)}}return vd=i,null}function r_(i){switch(i){case"beforetoggle":case"cancel":case"click":case"close"
vendor: 4,413 bytes, line 49
49: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(Ju()){case kt:return 2;case Ut:return 8;case is:case Zu:return 32;case Fl:return 268435456;default:return 32}default:return 32}}var hg=!1,Ir=null,Dr=null,kr=null,Uc=new Map,Bc=new Map,Mr=[],hC="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 a_(i,r){switch(i){case"focusin":case"focusout":Ir=null;break;case"dragenter":case"dragleave":Dr=null;break;case"mouseover":case"mouseout":kr=null;break;case"pointerover":case"pointerout":Uc.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Bc.delete(r.pointerId)}}function zc(i,r,o,h,p,y){return i===null||i.nativeEvent!==y?(i={blockedOn:r,domEventName:o,eventSystemFlags:h,nativeEvent:y,targetContainers:[p]},r!==null&&(r=ls(r),r!==null&&i_(r)),i):(i.eventSystemFlags|=h,r=i.targetContainers,p!==null&&r.indexOf(p)===-1&&r.push(p),i)}function dC(i,r,o,h,p){switch(r){case"focusin":return Ir=zc(Ir,i,r,o,h,p),!0;case"dragenter":return Dr=zc(Dr,i,r,o,h,p),!0;case"mouseover":return kr=zc(kr,i,r,o,h,p),!0;case"pointerover":var y=p.pointerId;return Uc.set(y,zc(Uc.get(y)||null,i,r,o,h,p)),!0;case"gotpointercapture":return y=p.pointerId,Bc.set(y,zc(Bc.get(y)||null,i,r,o,h,p)),!0}return!1}function o_(i){var r=os(i.target);if(r!==null){var o=l(r);if(o!==null){if(r=o.tag,r===13){if(r=u(o),r!==null){i.blockedOn=r,th(i.priority,function(){s_(o)});return}}else if(r===31){if(r=d(o),r!==null){i.blockedOn=r,th(i.priority,function(){s_(o)});return}}else if(r===3&&o.stateNode.current.memoizedState.isDehydrated){i.blockedOn=o.tag===3?o.stateNode.containerInfo:null;return}}}i.blockedOn=null}function bd(i){if(i.blockedOn!==null)return!1;for(var r=i.targetContainers;0<r.length;){var o=cg(i.nativeEvent);if(o===null){o=i.nativeEvent;var h=new o.constructor(o.type,o);po=h,o.target.dispatchEvent(h),po=null}else return r=ls(o),r!==null&&i_(r),i.blockedOn=o,!1;r.shift()}return!0}function l_(i,r,o){bd(i)&&o.delete(r)}function fC(){hg=!1,Ir!==null&&bd(Ir)&&(Ir=null),Dr!==null&&bd(Dr)&&(Dr=null),kr!==null&&bd(kr)&&(kr=null),Uc.forEach(l_),Bc.forEach(l_)}function wd(i,r){i.blockedOn===r&&(i.blockedOn=null,hg||(hg=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,fC)))}var _d=null;function c_(i){_d!==i&&(_d=i,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){_d===i&&(_d=null);for(var r=0;r<i.length;r+=3){var o=i[r],h=i[r+1],p=i[r+2];if(typeof h!="function"){if(ug(h||o)===null)continue;break}var y=ls(o);y!==null&&(i.splice(r,3),r-=3,cp(y,{pending:!0,data:p,method:o.method,action:h},h,p))}}))}function Yo(i){function r(O){return wd(O,i)}Ir!==null&&wd(Ir,i),Dr!==null&&wd(Dr,i),kr!==null&&wd(kr,i),Uc.forEach(r),Bc.forEach(r);for(var o=0;o<Mr.length;o++){var h=Mr[o];h.blockedOn===i&&(h.blockedOn=null)}for(;0<Mr.length&&(o=Mr[0],o.blockedOn===null);)o_(o),o.blockedOn===null&&Mr.shift();if(o=(i.ownerDocument||i).$$reactFormReplay,o!=null)for(h=0;h<o.length;h+=3){var p=o[h],y=o[h+1],w=p[Wt]||null;if(typeof y=="function")w||c_(o);else if(w){var S=null;if(y&&y.hasAttribute("formAction")){if(p=y,w=y[Wt]||null)S=w.formAction;else if(ug(p)!==null)continue}else S=w.action;typeof S=="function"?o[h+1]=S:(o.splice(h,3),h-=3),c_(o)}}}
49function u_(){function i(y){y.canIntercept&&y.info==="react-transition"&&y.intercept({handler:function(){return new Promise(function(w){return p=w})},focusReset:"manual",scroll:"manual"})}function r(){p!==null&&(p(),p=null),h||setTimeout(o,20)}function o(){if(!h&&!navigation.transition){var y=navigation.currentEntry;y&&y.url!=null&&navigation.navigate(y.url,{state:y.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var h=!1,p=null;return navigation.addEventListener("navigate",i),navigation.addEventListener("navigatesuccess",r),navigation.addEventListener("navigateerror",r),setTimeout(o,100),function(){h=!0,navigation.removeEventListener("navigate",i),navigation.removeEventListener("navigatesuccess",r),navigation.removeEventListener("navigateerror",r),p!==null&&(p(),p=null)}}}function dg(i){this._internalRoot=i}Td.prototype.render=dg.prototype.render=function(i){var r=this._internalRoot;if(r===null)throw Error(s(409));var o=r.current,h=qn();t_(o,h,i,r,null,null)},Td.prototype.unmount=dg.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var r=i.containerInfo;t_(i.current,2,null,i,null,null),id(),r[ki]=null}};function Td(i){this._internalRoot=i}Td.prototype.unstable_scheduleHydration=function(i){if(i){var r=rs();i={blockedOn:null,target:i,priority:r};for(var o=0;o<Mr.length&&r!==0&&r<Mr[o].priority;o++);Mr.splice(o,0,i),o===0&&o_(i)}};var h_=e.version;if(h_!=="19.2.3")throw Error(s(527,h_,"19.2.3"));ae.findDOMNode=function(i){var r=i._reactInternals;if(r===void 0)throw typeof i.render=="function"?Error(s(188)):(i=Object.keys(i).join(","),Error(s(268,i)));return i=g(r),i=i!==null?x(i):null,i=i===null?null:i.stateNode,i};var mC={bundleType:0,version:"19.2.3",rendererPackageName:"react-dom",currentDispatcherRef:X,reconcilerVersion:"19.2.3"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Ed=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Ed.isDisabled&&Ed.supportsFiber)try{Ys=Ed.inject(mC),an=Ed}catch{}}return Gc.createRoot=function(i,r){if(!a(i))throw Error(s(299));var o=!1,h="",p=xb,y=vb,w=bb;return r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(h=r.identifierPrefix),r.onUncaughtError!==void 0&&(p=r.onUncaughtError),r.onCaughtError!==void 0&&(y=r.onCaughtError),r.onRecoverableError!==void 0&&(w=r.onRecoverableError)),r=Zw(i,1,!1,null,null,o,h,null,p,y,w,u_),i[ki]=r.current,Kp(i),new dg(r)},Gc.hydrateRoot=function(i,r,o){if(!a(i))throw Error(s(299));var h=!1,p="",y=xb,w=vb,S=bb,O=null;return o!=null&&(o.unstable_strictMode===!0&&(h=!0),o.identifierPrefix!==void 0&&(p=o.identifierPrefix),o.onUncaughtError!==void 0&&(y=o.onUncaughtError),o.onCaughtError!==void 0&&(w=o.onCaughtError),o.onRecoverableError!==void 0&&(S=o.onRecoverableError),o.formState!==void 0&&(O=o.formState)),r=Zw(i,1,!0,r,o??null,h,p,O,y,w,S,u_),r.context=e_(null),o=r.current,h=qn(),h=$l(h),p=vr(h),p.callback=null,br(o,p,h),o=h,r.current.lanes=o,Xs(r,o),Fi(r),i[ki]=r.current,Kp(i),new Td(r)},Gc.version="19.2.3",Gc}var w_;function AC(){if(w_)return pg.exports;w_=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(e){console.error(e)}}return t(),pg.exports=SC(),pg.exports}var NC=AC();const jC=ku(NC);var vg,__;function RC(){if(__)return vg;__=1;var t=typeof Element<"u",e=typeof Map=="function",n=typeof Set=="function",s=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function a(l,u){if(l===u)return!0;if(l&&u&&typeof l=="object"&&typeof u=="object"){if(l.constructor!==u.constructor)return!1;var d,m,g;if(Array.isArray(l)){if(d=l.length,d!=u.length)return!1;for(m=d;m--!==0;)if(!a(l[m],u[m]))return!1;return!0}var x;if(e&&l instanceof Map&&u instanceof Map){if(l.size!==u.size)return!1;for(x=l.entries();!(m=x.next()).done;)if(!u.has(m.value[0]))return!1;for(x=l.entries();!(m=x.next()).done;)if(!a(m.value[1],u.get(m.value[0])))return!1;return!0}if(n&&l instanceof Set&&u instanceof Set){if(l.size!==u.size)return!1;for(x=l.entries();!(m=x.next()).done;)if(!u.has(m.value[0]))return!1;return!0}
49if(s&&ArrayBuffer.isView(l)&&ArrayBuffer.isView(u)){if(d=l.length,d!=u.length)return!1;for(m=d;m--!==0;)if(l[m]!==u[m])return!1;return!0}if(l.constructor===RegExp)return l.source===u.source&&l.flags===u.flags;if(l.valueOf!==Object.prototype.valueOf&&typeof l.valueOf=="function"&&typeof u.valueOf=="function")return l.valueOf()===u.valueOf();if(l.toString!==Object.prototype.toString&&typeof l.toString=="function"&&typeof u.toString=="function")return l.toString()===u.toString();if(g=Object.keys(l),d=g.length,d!==Object.keys(u).length)return!1;for(m=d;m--!==0;)if(!Object.prototype.hasOwnProperty.call(u,g[m]))return!1;if(t&&l instanceof Element)return!1;for(m=d;m--!==0;)if(!((g[m]==="_owner"||g[m]==="__v"||g[m]==="__o")&&l.$$typeof)&&!a(l[g[m]],u[g[m]]))return!1;return!0}return l!==l&&u!==u}return vg=function(u,d){try{return a(u,d)}catch(m){if((m.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw m}},vg}var CC=RC();const IC=ku(CC);var bg,T_;function DC(){if(T_)return bg;T_=1;var t=function(e,n,s,a,l,u,d,m){if(!e){var g;if(n===void 0)g=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var x=[s,a,l,u,d,m],v=0;g=new Error(n.replace(/%s/g,function(){return x[v++]})),g.name="Invariant Violation"}throw g.framesToPop=1,g}};return bg=t,bg}var kC=DC();const E_=ku(kC);var wg,S_;function MC(){return S_||(S_=1,wg=function(e,n,s,a){var l=s?s.call(a,e,n):void 0;if(l!==void 0)return!!l;if(e===n)return!0;if(typeof e!="object"||!e||typeof n!="object"||!n)return!1;var u=Object.keys(e),d=Object.keys(n);if(u.length!==d.length)return!1;for(var m=Object.prototype.hasOwnProperty.bind(n),g=0;g<u.length;g++){var x=u[g];if(!m(x))return!1;var v=e[x],T=n[x];if(l=s?s.call(a,v,T,x):void 0,l===!1||l===void 0&&v!==T)return!1}return!0}),wg}var LC=MC();const OC=ku(LC);var kE=(t=>(t.BASE="base",t.BODY="body",t.HEAD="head",t.HTML="html",t.LINK="link",t.META="meta",t.NOSCRIPT="noscript",t.SCRIPT="script",t.STYLE="style",t.TITLE="title",t.FRAGMENT="Symbol(react.fragment)",t))(kE||{}),_g={link:{rel:["amphtml","canonical","alternate"]},script:{type:["application/ld+json"]},meta:{charset:"",name:["generator","robots","description"],property:["og:type","og:title","og:url","og:image","og:image:alt","og:description","twitter:url","twitter:title","twitter:description","twitter:image","twitter:image:alt","twitter:card","twitter:site"]}},A_=Object.values(kE),ox={accesskey:"accessKey",charset:"charSet",class:"className",contenteditable:"contentEditable",contextmenu:"contextMenu","http-equiv":"httpEquiv",itemprop:"itemProp",tabindex:"tabIndex"},PC=Object.entries(ox).reduce((t,[e,n])=>(t[n]=e,t),{}),wi="data-rh",rl={DEFAULT_TITLE:"defaultTitle",DEFER:"defer",ENCODE_SPECIAL_CHARACTERS:"encodeSpecialCharacters",ON_CHANGE_CLIENT_STATE:"onChangeClientState",TITLE_TEMPLATE:"titleTemplate",PRIORITIZE_SEO_TAGS:"prioritizeSeoTags"},al=(t,e)=>{for(let n=t.length-1;n>=0;n-=1){const s=t[n];if(Object.prototype.hasOwnProperty.call(s,e))return s[e]}return null},VC=t=>{let e=al(t,"title");const n=al(t,rl.TITLE_TEMPLATE);if(Array.isArray(e)&&(e=e.join("")),n&&e)return n.replace(/%s/g,()=>e);const s=al(t,rl.DEFAULT_TITLE);return e||s||void 0},UC=t=>al(t,rl.ON_CHANGE_CLIENT_STATE)||(()=>{}),Tg=(t,e)=>e.filter(n=>typeof n[t]<"u").map(n=>n[t]).reduce((n,s)=>({...n,...s}),{}),BC=(t,e)=>e.filter(n=>typeof n.base<"u").map(n=>n.base).reverse().reduce((n,s)=>{if(!n.length){const a=Object.keys(s);for(let l=0;l<a.length;l+=1){const d=a[l].toLowerCase();if(t.indexOf(d)!==-1&&s[d])return n.concat(s)}}return n},[]),zC=t=>console&&typeof console.warn=="function"&&console.warn(t),qc=(t,e,n)=>{const s={};return n.filter(a=>Array.isArray(a[t])?!0:(typeof a[t]<"u"&&zC(`Helmet: ${t} should be of type "Array". Instead found type "${typeof a[t]}"`),!1)).map(a=>a[t]).reverse().reduce((a,l)=>{const u={};l.filter(m=>{let g;const x=Object.keys(m);for(let T=0;T<x.length;T+=1){const E=x[T],C=E.toLowerCase();e.indexOf(C)!==-1&&!(g==="rel"&&m[g].toLowerCase()==="canonical")&&!(C==="rel"&&m[C].toLowerCase()==="stylesheet")&&(g=C),e.indexOf(E)!==-1&&(E==="innerHTML"||E==="cssText"||E==="itemprop")&&(g=E)}if(!g||!m[g])return!1;const v=m[g].toLowerCase();return s[g]||(s[g]={}),u[g]||(u[g]={}),s[g][v]?!1:(u[g][v]=!0,!0)}
49).reverse().forEach(m=>a.push(m));const d=Object.keys(u);for(let m=0;m<d.length;m+=1){const g=d[m],x={...s[g],...u[g]};s[g]=x}return a},[]).reverse()},FC=(t,e)=>{if(Array.isArray(t)&&t.length){for(let n=0;n<t.length;n+=1)if(t[n][e])return!0}return!1},GC=t=>({baseTag:BC(["href"],t),bodyAttributes:Tg("bodyAttributes",t),defer:al(t,rl.DEFER),encode:al(t,rl.ENCODE_SPECIAL_CHARACTERS),htmlAttributes:Tg("htmlAttributes",t),linkTags:qc("link",["rel","href"],t),metaTags:qc("meta",["name","charset","http-equiv","property","itemprop"],t),noscriptTags:qc("noscript",["innerHTML"],t),onChangeClientState:UC(t),scriptTags:qc("script",["src","innerHTML"],t),styleTags:qc("style",["cssText"],t),title:VC(t),titleAttributes:Tg("titleAttributes",t),prioritizeSeoTags:FC(t,rl.PRIORITIZE_SEO_TAGS)}),ME=t=>Array.isArray(t)?t.join(""):t,qC=(t,e)=>{const n=Object.keys(t);for(let s=0;s<n.length;s+=1)if(e[n[s]]&&e[n[s]].includes(t[n[s]]))return!0;return!1},Eg=(t,e)=>Array.isArray(t)?t.reduce((n,s)=>(qC(s,e)?n.priority.push(s):n.default.push(s),n),{priority:[],default:[]}):{default:t,priority:[]},N_=(t,e)=>({...t,[e]:void 0}),HC=["noscript","script","style"],ry=(t,e=!0)=>e===!1?String(t):String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'"),LE=t=>Object.keys(t).reduce((e,n)=>{const s=typeof t[n]<"u"?`${n}="${t[n]}"`:`${n}`;return e?`${e} ${s}`:s},""),$C=(t,e,n,s)=>{const a=LE(n),l=ME(e);return a?`<${t} ${wi}="true" ${a}>${ry(l,s)}</${t}>`:`<${t} ${wi}="true">${ry(l,s)}</${t}>`},KC=(t,e,n=!0)=>e.reduce((s,a)=>{const l=a,u=Object.keys(l).filter(g=>!(g==="innerHTML"||g==="cssText")).reduce((g,x)=>{const v=typeof l[x]>"u"?x:`${x}="${ry(l[x],n)}"`;return g?`${g} ${v}`:v},""),d=l.innerHTML||l.cssText||"",m=HC.indexOf(t)===-1;return`${s}<${t} ${wi}="true" ${u}${m?"/>":`>${d}</${t}>`}`},""),OE=(t,e={})=>Object.keys(t).reduce((n,s)=>{const a=ox[s];return n[a||s]=t[s],n},e),YC=(t,e,n)=>{const s={key:e,[wi]:!0},a=OE(n,s);return[Hi.createElement("title",a,e)]},Vd=(t,e)=>e.map((n,s)=>{const a={key:s,[wi]:!0};return Object.keys(n).forEach(l=>{const d=ox[l]||l;if(d==="innerHTML"||d==="cssText"){const m=n.innerHTML||n.cssText;a.dangerouslySetInnerHTML={__html:m}}else a[d]=n[l]}),Hi.createElement(t,a)}),oi=(t,e,n=!0)=>{switch(t){case"title":return{toComponent:()=>YC(t,e.title,e.titleAttributes),toString:()=>$C(t,e.title,e.titleAttributes,n)};case"bodyAttributes":case"htmlAttributes":return{toComponent:()=>OE(e),toString:()=>LE(e)};default:return{toComponent:()=>Vd(t,e),toString:()=>KC(t,e,n)}}},WC=({metaTags:t,linkTags:e,scriptTags:n,encode:s})=>{const a=Eg(t,_g.meta),l=Eg(e,_g.link),u=Eg(n,_g.script);return{priorityMethods:{toComponent:()=>[...Vd("meta",a.priority),...Vd("link",l.priority),...Vd("script",u.priority)],toString:()=>`${oi("meta",a.priority,s)} ${oi("link",l.priority,s)} ${oi("script",u.priority,s)}`},metaTags:a.default,linkTags:l.default,scriptTags:u.default}},QC=t=>{const{baseTag:e,bodyAttributes:n,encode:s=!0,htmlAttributes:a,noscriptTags:l,styleTags:u,title:d="",titleAttributes:m,prioritizeSeoTags:g}=t;let{linkTags:x,metaTags:v,scriptTags:T}=t,E={toComponent:()=>{},toString:()=>""};return g&&({priorityMethods:E,linkTags:x,metaTags:v,scriptTags:T}=WC(t)),{priority:E,base:oi("base",e,s),bodyAttributes:oi("bodyAttributes",n,s),htmlAttributes:oi("htmlAttributes",a,s),link:oi("link",x,s),meta:oi("meta",v,s),noscript:oi("noscript",l,s),script:oi("script",T,s),style:oi("style",u,s),title:oi("title",{title:d,titleAttributes:m},s)}},ay=QC,Sd=[],PE=!!(typeof window<"u"&&window.document&&window.document.createElement),oy=class{constructor(t,e){Rs(this,"instances",[]);Rs(this,"canUseDOM",PE);Rs(this,"context");Rs(this,"value",{setHelmet:t=>{this.context.helmet=t},helmetInstances:{get:()=>this.canUseDOM?Sd:this.instances,add:t=>{(this.canUseDOM?Sd:this.instances).push(t)},remove:t=>{const e=(this.canUseDOM?Sd:this.instances).indexOf(t);(this.canUseDOM?Sd:this.instances).splice(e,1)}}});this.context=t,this.canUseDOM=e||!1,e||(t.helmet=ay({baseTag:[],bodyAttributes:{},htmlAttributes:{},linkTags:[],metaTags:[],noscriptTags:[],scriptTags:[],styleTags:[],title:"",titleAttributes:{}}))}},XC={},VE=Hi.createContext(XC),Ga,UE=(Ga=class extends j.Component{constructor(n){super(n);Rs(this,"helmetData");this.helmetData=new oy(this.props.context||{}
49,Ga.canUseDOM)}render(){return Hi.createElement(VE.Provider,{value:this.helmetData.value},this.props.children)}},Rs(Ga,"canUseDOM",PE),Ga),Wo=(t,e)=>{const n=document.head||document.querySelector("head"),s=n.querySelectorAll(`${t}[${wi}]`),a=[].slice.call(s),l=[];let u;return e&&e.length&&e.forEach(d=>{const m=document.createElement(t);for(const g in d)if(Object.prototype.hasOwnProperty.call(d,g))if(g==="innerHTML")m.innerHTML=d.innerHTML;else if(g==="cssText")m.styleSheet?m.styleSheet.cssText=d.cssText:m.appendChild(document.createTextNode(d.cssText));else{const x=g,v=typeof d[x]>"u"?"":d[x];m.setAttribute(g,v)}m.setAttribute(wi,"true"),a.some((g,x)=>(u=x,m.isEqualNode(g)))?a.splice(u,1):l.push(m)}),a.forEach(d=>{var m;return(m=d.parentNode)==null?void 0:m.removeChild(d)}),l.forEach(d=>n.appendChild(d)),{oldTags:a,newTags:l}},ly=(t,e)=>{const n=document.getElementsByTagName(t)[0];if(!n)return;const s=n.getAttribute(wi),a=s?s.split(","):[],l=[...a],u=Object.keys(e);for(const d of u){const m=e[d]||"";n.getAttribute(d)!==m&&n.setAttribute(d,m),a.indexOf(d)===-1&&a.push(d);const g=l.indexOf(d);g!==-1&&l.splice(g,1)}for(let d=l.length-1;d>=0;d-=1)n.removeAttribute(l[d]);a.length===l.length?n.removeAttribute(wi):n.getAttribute(wi)!==u.join(",")&&n.setAttribute(wi,u.join(","))},JC=(t,e)=>{typeof t<"u"&&document.title!==t&&(document.title=ME(t)),ly("title",e)},j_=(t,e)=>{const{baseTag:n,bodyAttributes:s,htmlAttributes:a,linkTags:l,metaTags:u,noscriptTags:d,onChangeClientState:m,scriptTags:g,styleTags:x,title:v,titleAttributes:T}=t;ly("body",s),ly("html",a),JC(v,T);const E={baseTag:Wo("base",n),linkTags:Wo("link",l),metaTags:Wo("meta",u),noscriptTags:Wo("noscript",d),scriptTags:Wo("script",g),styleTags:Wo("style",x)},C={},L={};
49Object.keys(E).forEach(R=>{const{newTags:V,oldTags:G}=E[R];V.length&&(C[R]=V),G.length&&(L[R]=E[R].oldTags)}),e&&e(),m(t,C,L)},Hc=null,ZC=t=>{Hc&&cancelAnimationFrame(Hc),t.defer?Hc=requestAnimationFrame(()=>{j_(t,()=>{Hc=null})}):(j_(t),Hc=null)},eI=ZC,R_=class extends j.Component{constructor(){super(...arguments);Rs(this,"rendered",!1)}shouldComponentUpdate(e){return!OC(e,this.props)}componentDidUpdate(){this.emitChange()}componentWillUnmount(){const{helmetInstances:e}=this.props.context;e.remove(this),this.emitChange()}emitChange(){const{helmetInstances:e,setHelmet:n}=this.props.context;let s=null;const a=GC(e.get().map(l=>{const u={...l.props};return delete u.context,u}));UE.canUseDOM?eI(a):ay&&(s=ay(a)),n(s)}init(){if(this.rendered)return;this.rendered=!0;const{helmetInstances:e}=this.props.context;e.add(this),this.emitChange()}render(){return this.init(),null}},sy,tI=(sy=class extends j.Component{shouldComponentUpdate(t){return!IC(N_(this.props,"helmetData"),N_(t,"helmetData"))}mapNestedChildrenToProps(t,e){if(!e)return null;switch(t.type){case"script":case"noscript":return{innerHTML:e};case"style":return{cssText:e};default:throw new Error(`<${t.type} /> elements are self-closing and can not contain children. Refer to our API for more information.`)}}flattenArrayTypeChildren(t,e,n,s){return{...e,[t.type]:[...e[t.type]||[],{...n,...this.mapNestedChildrenToProps(t,s)}]}}mapObjectTypeChildren(t,e,n,s){switch(t.type){case"title":return{...e,[t.type]:s,titleAttributes:{...n}};case"body":return{...e,bodyAttributes:{...n}};case"html":return{...e,htmlAttributes:{...n}};default:return{...e,[t.type]:{...n}}}}mapArrayTypeChildrenToProps(t,e){let n={...e};return Object.keys(t).forEach(s=>{n={...n,[s]:t[s]}}),n}warnOnInvalidChildren(t,e){return E_(A_.some(n=>t.type===n),typeof t.type=="function"?"You may be attempting to nest <Helmet> components within each other, which is not allowed. Refer to our API for more information.":`Only elements types ${A_.join(", ")} are allowed. Helmet does not support rendering <${t.type}> elements. Refer to our API for more information.`),E_(!e||typeof e=="string"||Array.isArray(e)&&!e.some(n=>typeof n!="string"),`Helmet expects a string as a child of <${t.type}>. Did you forget to wrap your children in braces? ( <${t.type}>{\`\`}</${t.type}> ) Refer to our API for more information.`),!0}mapChildrenToProps(t,e){let n={};return Hi.Children.forEach(t,s=>{if(!s||!s.props)return;const{children:a,...l}=s.props,u=Object.keys(l).reduce((m,g)=>(m[PC[g]||g]=l[g],m),{});let{type:d}=s;
49switch(typeof d=="symbol"?d=d.toString():this.warnOnInvalidChildren(s,a),d){case"Symbol(react.fragment)":e=this.mapChildrenToProps(a,e);break;case"link":case"meta":case"noscript":case"script":case"style":n=this.flattenArrayTypeChildren(s,n,u,a);break;default:e=this.mapObjectTypeChildren(s,e,u,a);break}}),this.mapArrayTypeChildrenToProps(n,e)}render(){const{children:t,...e}=this.props;let n={...e},{helmetData:s}=e;if(t&&(n=this.mapChildrenToProps(t,n)),s&&!(s instanceof oy)){const a=s;s=new oy(a.context,!0),delete n.helmetData}return s?Hi.createElement(R_,{...n,context:s.value}):Hi.createElement(VE.Consumer,null,a=>Hi.createElement(R_,{...n,context:a}))}},Rs(sy,"defaultProps",{defer:!0,encodeSpecialCharacters:!0,prioritizeSeoTags:!1}),sy);/** 50 * react-router v7.13.0 51 * 52 * Copyright (c) Remix Software Inc. 53 * 54 * This source code is licensed under the MIT license found in the 55 * LICENSE.md file in the root directory of this source tree. 56 * 57 * @license MIT 58 */var C_="popstate";function nI(t={}){function e(s,a){let{pathname:l,search:u,hash:d}=s.location;return cy("",{pathname:l,search:u,hash:d},a.state&&a.state.usr||null,a.state&&a.state.key||"default")}function n(s,a){return typeof a=="string"?a:fu(a)}return sI(e,n,null,t)}function ht(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function Ti(t,e){if(!t){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function iI(){return Math.random().toString(36).substring(2,10)}function I_(t,e){return{usr:t.state,key:t.key,idx:e}}function cy(t,e,n=null,s){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof e=="string"?Sl(e):e,state:n,key:e&&e.key||s||iI()}}function fu({pathname:t="/",search:e="",hash:n=""}){return e&&e!=="?"&&(t+=e.charAt(0)==="?"?e:"?"+e),n&&n!=="#"&&(t+=n.charAt(0)==="#"?n:"#"+n),t}function Sl(t){let e={};if(t){let n=t.indexOf("#");n>=0&&(e.hash=t.substring(n),t=t.substring(0,n));let s=t.indexOf("?");s>=0&&(e.search=t.substring(s),t=t.substring(0,s)),t&&(e.pathname=t)}return e}function sI(t,e,n,s={}){let{window:a=document.defaultView,v5Compat:l=!1}=s,u=a.history,d="POP",m=null,g=x();g==null&&(g=0,u.replaceState({...u.state,idx:g},""));function x(){return(u.state||{idx:null}).idx}function v(){d="POP";let R=x(),V=R==null?null:R-g;g=R,m&&m({action:d,location:L.location,delta:V})}function T(R,V){d="PUSH";let G=cy(L.location,R,V);g=x()+1;let z=I_(G,g),ne=L.createHref(G);try{u.pushState(z,"",ne)}catch(re){if(re instanceof DOMException&&re.name==="DataCloneError")throw re;a.location.assign(ne)}l&&m&&m({action:d,location:L.location,delta:1})}function E(R,V){d="REPLACE";let G=cy(L.location,R,V);g=x();let z=I_(G,g),ne=L.createHref(G);u.replaceState(z,"",ne),l&&m&&m({action:d,location:L.location,delta:0})}function C(R){return rI(R)}let L={get action(){return d},get location(){return t(a,u)},listen(R){if(m)throw new Error("A history only accepts one active listener");return a.addEventListener(C_,v),m=R,()=>{a.removeEventListener(C_,v),m=null}},createHref(R){return e(a,R)},createURL:C,encodeLocation(R){let V=C(R);return{pathname:V.pathname,search:V.search,hash:V.hash}},push:T,replace:E,go(R){return u.go(R)}};return L}function rI(t,e=!1){let n="http://localhost";
58typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),ht(n,"No window.location.(origin|href) available to create URL");let s=typeof t=="string"?t:fu(t);return s=s.replace(/ $/,"%20"),!e&&s.startsWith("//")&&(s=n+s),new URL(s,n)}function BE(t,e,n="/"){return aI(t,e,n,!1)}function aI(t,e,n,s){let a=typeof e=="string"?Sl(e):e,l=Ps(a.pathname||"/",n);if(l==null)return null;let u=zE(t);oI(u);let d=null;for(let m=0;d==null&&m<u.length;++m){let g=xI(l);d=gI(u[m],g,s)}return d}function zE(t,e=[],n=[],s="",a=!1){let l=(u,d,m=a,g)=>{let x={relativePath:g===void 0?u.path||"":g,caseSensitive:u.caseSensitive===!0,childrenIndex:d,route:u};if(x.relativePath.startsWith("/")){if(!x.relativePath.startsWith(s)&&m)return;ht(x.relativePath.startsWith(s),`Absolute route path "${x.relativePath}" nested under path "${s}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),x.relativePath=x.relativePath.slice(s.length)}let v=Ms([s,x.relativePath]),T=n.concat(x);u.children&&u.children.length>0&&(ht(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),zE(u.children,e,T,v,m)),!(u.path==null&&!u.index)&&e.push({path:v,score:mI(v,u.index),routesMeta:T})};return t.forEach((u,d)=>{var m;if(u.path===""||!((m=u.path)!=null&&m.includes("?")))l(u,d);else for(let g of FE(u.path))l(u,d,!0,g)}),e}function FE(t){let e=t.split("/");if(e.length===0)return[];let[n,...s]=e,a=n.endsWith("?"),l=n.replace(/\?$/,"");if(s.length===0)return a?[l,""]:[l];let u=FE(s.join("/")),d=[];return d.push(...u.map(m=>m===""?l:[l,m].join("/"))),a&&d.push(...u),d.map(m=>t.startsWith("/")&&m===""?"/":m)}function oI(t){t.sort((e,n)=>e.score!==n.score?n.score-e.score:pI(e.routesMeta.map(s=>s.childrenIndex),n.routesMeta.map(s=>s.childrenIndex)))}var lI=/^:[\w-]+$/,cI=3,uI=2,hI=1,dI=10,fI=-2,D_=t=>t==="*";function mI(t,e){let n=t.split("/"),s=n.length;return n.some(D_)&&(s+=fI),e&&(s+=uI),n.filter(a=>!D_(a)).reduce((a,l)=>a+(lI.test(l)?cI:l===""?hI:dI),s)}function pI(t,e){return t.length===e.length&&t.slice(0,-1).every((s,a)=>s===e[a])?t[t.length-1]-e[e.length-1]:0}function gI(t,e,n=!1){let{routesMeta:s}=t,a={},l="/",u=[];for(let d=0;d<s.length;++d){let m=s[d],g=d===s.length-1,x=l==="/"?e:e.slice(l.length)||"/",v=tf({path:m.relativePath,caseSensitive:m.caseSensitive,end:g},x),T=m.route;if(!v&&g&&n&&!s[s.length-1].route.index&&(v=tf({path:m.relativePath,caseSensitive:m.caseSensitive,end:!1},x)),!v)return null;
58Object.assign(a,v.params),u.push({params:a,pathname:Ms([l,v.pathname]),pathnameBase:_I(Ms([l,v.pathnameBase])),route:T}),v.pathnameBase!=="/"&&(l=Ms([l,v.pathnameBase]))}return u}function tf(t,e){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[n,s]=yI(t.path,t.caseSensitive,t.end),a=e.match(n);if(!a)return null;let l=a[0],u=l.replace(/(.)\/+$/,"$1"),d=a.slice(1);return{params:s.reduce((g,{paramName:x,isOptional:v},T)=>{if(x==="*"){let C=d[T]||"";u=l.slice(0,l.length-C.length).replace(/(.)\/+$/,"$1")}const E=d[T];return v&&!E?g[x]=void 0:g[x]=(E||"").replace(/%2F/g,"/"),g},{}),pathname:l,pathnameBase:u,pattern:t}}function yI(t,e=!1,n=!0){Ti(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let s=[],a="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(u,d,m)=>(s.push({paramName:d,isOptional:m!=null}),m?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return t.endsWith("*")?(s.push({paramName:"*"}),a+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":t!==""&&t!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),s]}function xI(t){try{return t.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return Ti(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),t}}function Ps(t,e){if(e==="/")return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=e.endsWith("/")?e.length-1:e.length,s=t.charAt(n);return s&&s!=="/"?null:t.slice(n)||"/"}var vI=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function bI(t,e="/"){let{pathname:n,search:s="",hash:a=""}=typeof t=="string"?Sl(t):t,l;return n?(n=n.replace(/\/\/+/g,"/"),n.startsWith("/")?l=k_(n.substring(1),"/"):l=k_(n,e)):l=e,{pathname:l,search:TI(s),hash:EI(a)}}function k_(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function Sg(t,e,n,s){return`Cannot include a '${t}' character in a manually specified \`to.${e}\` field [${JSON.stringify(s)}]. Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function wI(t){return t.filter((e,n)=>n===0||e.route.path&&e.route.path.length>0)}function lx(t){let e=wI(t);return e.map((n,s)=>s===e.length-1?n.pathname:n.pathnameBase)}function cx(t,e,n,s=!1){let a;typeof t=="string"?a=Sl(t):(a={...t},ht(!a.pathname||!a.pathname.includes("?"),Sg("?","pathname","search",a)),ht(!a.pathname||!a.pathname.includes("#"),Sg("#","pathname","hash",a)),ht(!a.search||!a.search.includes("#"),Sg("#","search","hash",a)));let l=t===""||a.pathname==="",u=l?"/":a.pathname,d;if(u==null)d=n;else{let v=e.length-1;if(!s&&u.startsWith("..")){let T=u.split("/");for(;T[0]==="..";)T.shift(),v-=1;a.pathname=T.join("/")}d=v>=0?e[v]:"/"}let m=bI(a,d),g=u&&u!=="/"&&u.endsWith("/"),x=(l||u===".")&&n.endsWith("/");return!m.pathname.endsWith("/")&&(g||x)&&(m.pathname+="/"),m}var Ms=t=>t.join("/").replace(/\/\/+/g,"/"),_I=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),TI=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,EI=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,SI=class{constructor(t,e,n,s=!1){this.status=t,this.statusText=e||"",this.internal=s,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function AI(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}function NI(t){return t.map(e=>e.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var GE=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function qE(t,e){let n=t;if(typeof n!="string"||!vI.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let s=n,a=!1;if(GE)try{let l=new URL(window.location.href),u=n.startsWith("//")?new URL(l.protocol+n):new URL(n),d=Ps(u.pathname,e);u.origin===l.origin&&d!=null?n=d+u.search+u.hash:a=!0}catch{Ti(!1,`<Link to="${n}">
58 contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:s,isExternal:a,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var HE=["POST","PUT","PATCH","DELETE"];new Set(HE);var jI=["GET",...HE];new Set(jI);var Al=j.createContext(null);Al.displayName="DataRouter";var Rf=j.createContext(null);Rf.displayName="DataRouterState";var RI=j.createContext(!1),$E=j.createContext({isTransitioning:!1});$E.displayName="ViewTransition";var CI=j.createContext(new Map);CI.displayName="Fetchers";var II=j.createContext(null);II.displayName="Await";var Kn=j.createContext(null);Kn.displayName="Navigation";var Mu=j.createContext(null);Mu.displayName="Location";var Ai=j.createContext({outlet:null,matches:[],isDataRoute:!1});Ai.displayName="Route";var ux=j.createContext(null);ux.displayName="RouteError";var KE="REACT_ROUTER_ERROR",DI="REDIRECT",kI="ROUTE_ERROR_RESPONSE";function MI(t){if(t.startsWith(`${KE}:${DI}:{`))try{let e=JSON.parse(t.slice(28));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.location=="string"&&typeof e.reloadDocument=="boolean"&&typeof e.replace=="boolean")return e}catch{}}function LI(t){if(t.startsWith(`${KE}:${kI}:{`))try{let e=JSON.parse(t.slice(40));if(typeof e=="object"&&e&&typeof e.status=="number"&&typeof e.statusText=="string")return new SI(e.status,e.statusText,e.data)}catch{}}function OI(t,{relative:e}={}){ht(Nl(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:s}=j.useContext(Kn),{hash:a,pathname:l,search:u}=Lu(t,{relative:e}),d=l;return n!=="/"&&(d=l==="/"?n:Ms([n,l])),s.createHref({pathname:d,search:u,hash:a})}function Nl(){return j.useContext(Mu)!=null}function es(){return ht(Nl(),"useLocation() may be used only in the context of a <Router> component."),j.useContext(Mu).location}var YE="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function WE(t){j.useContext(Kn).static||j.useLayoutEffect(t)}function hx(){let{isDataRoute:t}=j.useContext(Ai);return t?XI():PI()}function PI(){ht(Nl(),"useNavigate() may be used only in the context of a <Router> component.");let t=j.useContext(Al),{basename:e,navigator:n}=j.useContext(Kn),{matches:s}=j.useContext(Ai),{pathname:a}=es(),l=JSON.stringify(lx(s)),u=j.useRef(!1);return WE(()=>{u.current=!0}),j.useCallback((m,g={})=>{if(Ti(u.current,YE),!u.current)return;if(typeof m=="number"){n.go(m);return}let x=cx(m,JSON.parse(l),a,g.relative==="path");t==null&&e!=="/"&&(x.pathname=x.pathname==="/"?e:Ms([e,x.pathname])),(g.replace?n.replace:n.push)(x,g.state,g)},[e,n,l,a,t])}var VI=j.createContext(null);function UI(t){let e=j.useContext(Ai).outlet;return j.useMemo(()=>e&&j.createElement(VI.Provider,{value:t},e),[e,t])}function Lu(t,{relative:e}={}){let{matches:n}=j.useContext(Ai),{pathname:s}=es(),a=JSON.stringify(lx(n));return j.useMemo(()=>cx(t,JSON.parse(a),s,e==="path"),[t,a,s,e])}function BI(t,e){return QE(t,e)}function QE(t,e,n,s,a){var G;ht(Nl(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:l}=j.useContext(Kn),{matches:u}=j.useContext(Ai),d=u[u.length-1],m=d?d.params:{},g=d?d.pathname:"/",x=d?d.pathnameBase:"/",v=d&&d.route;{let z=v&&v.path||"";JE(g,!v||z.endsWith("*")||z.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${g}" (under <Route path="${z}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. 59 60Please change the parent <Route path="${z}"> to <Route path="${z==="/"?"*":`${z}/*`}">.`)}let T=es(),E;if(e){let z=typeof e=="string"?Sl(e):e;ht(x==="/"||((G=z.pathname)==null?void 0:G.startsWith(x)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${x}" but pathname "${z.pathname}" was given in the \`location\` prop.`),E=z}else E=T;let C=E.pathname||"/",L=C;if(x!=="/"){let z=x.replace(/^\//,"").split("/");L="/"+C.replace(/^\//,"").split("/").slice(z.length).join("/")}let R=BE(t,{pathname:L});Ti(v||R!=null,`No routes matched location "${E.pathname}${E.search}${E.hash}" `),Ti(R==null||R[R.length-1].route.element!==void 0||R[R.length-1].route.Component!==void 0||R[R.length-1].route.lazy!==void 0,`Matched leaf route at location "${E.pathname}${E.search}${E.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let V=HI(R&&R.map(z=>Object.assign({},z,{params:Object.assign({},m,z.params),pathname:Ms([x,l.encodeLocation?l.encodeLocation(z.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:z.pathname]),pathnameBase:z.pathnameBase==="/"?x:Ms([x,l.encodeLocation?l.encodeLocation(z.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:z.pathnameBase])})),u,n,s,a);return e&&V?j.createElement(Mu.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...E},navigationType:"POP"}},V):V}function zI(){let t=QI(),e=AI(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),n=t instanceof Error?t.stack:null,s="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:s},l={padding:"2px 4px",backgroundColor:s},u=null;return console.error("Error handled by React Router default ErrorBoundary:",t),u=j.createElement(j.Fragment,null,j.createElement("p",null,"ð¿ Hey developer ð"),j.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",j.createElement("code",{style:l},"ErrorBoundary")," or"," ",j.createElement("code",{style:l},"errorElement")," prop on your route.")),j.createElement(j.Fragment,null,j.createElement("h2",null,"Unexpected Application
60Error!"),j.createElement("h3",{style:{fontStyle:"italic"}},e),n?j.createElement("pre",{style:a},n):null,u)}var FI=j.createElement(zI,null),XE=class extends j.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,e){return e.location!==t.location||e.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:e.error,location:e.location,revalidation:t.revalidation||e.revalidation}}componentDidCatch(t,e){this.props.onError?this.props.onError(t,e):console.error("React Router caught the following error during render",t)}render(){let t=this.state.error;if(this.context&&typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){const n=LI(t.digest);n&&(t=n)}let e=t!==void 0?j.createElement(Ai.Provider,{value:this.props.routeContext},j.createElement(ux.Provider,{value:t,children:this.props.component})):this.props.children;return this.context?j.createElement(GI,{error:t},e):e}};XE.contextType=RI;var Ag=new WeakMap;function GI({children:t,error:e}){let{basename:n}=j.useContext(Kn);if(typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){let s=MI(e.digest);if(s){let a=Ag.get(e);if(a)throw a;let l=qE(s.location,n);if(GE&&!Ag.get(e))if(l.isExternal||s.reloadDocument)window.location.href=l.absoluteURL||l.to;else{const u=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(l.to,{replace:s.replace}));throw Ag.set(e,u),u}return j.createElement("meta",{httpEquiv:"refresh",content:`0;url=${l.absoluteURL||l.to}`})}}return t}function qI({routeContext:t,match:e,children:n}){let s=j.useContext(Al);return s&&s.static&&s.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(s.staticContext._deepestRenderedBoundaryId=e.route.id),j.createElement(Ai.Provider,{value:t},n)}function HI(t,e=[],n=null,s=null,a=null){if(t==null){if(!n)return null;if(n.errors)t=n.matches;else if(e.length===0&&!n.initialized&&n.matches.length>0)t=n.matches;else return null}let l=t,u=n==null?void 0:n.errors;if(u!=null){let x=l.findIndex(v=>v.route.id&&(u==null?void 0:u[v.route.id])!==void 0);ht(x>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),l=l.slice(0,Math.min(l.length,x+1))}let d=!1,m=-1;if(n)for(let x=0;x<l.length;x++){let v=l[x];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(m=x),v.route.id){let{loaderData:T,errors:E}=n,C=v.route.loader&&!T.hasOwnProperty(v.route.id)&&(!E||E[v.route.id]===void 0);if(v.route.lazy||C){d=!0,m>=0?l=l.slice(0,m+1):l=[l[0]];break}}}let g=n&&s?(x,v)=>{var T,E;s(x,{location:n.location,params:((E=(T=n.matches)==null?void 0:T[0])==null?void 0:E.params)??{},unstable_pattern:NI(n.matches),errorInfo:v})}:void 0;return l.reduceRight((x,v,T)=>{let E,C=!1,L=null,R=null;n&&(E=u&&v.route.id?u[v.route.id]:void 0,L=v.route.errorElement||FI,d&&(m<0&&T===0?(JE("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),C=!0,R=null):m===T&&(C=!0,R=v.route.hydrateFallbackElement||null)));let V=e.concat(l.slice(0,T+1)),G=()=>{let z;return E?z=L:C?z=R:v.route.Component?z=j.createElement(v.route.Component,null):v.route.element?z=v.route.element:z=x,j.createElement(qI,{match:v,routeContext:{outlet:x,matches:V,isDataRoute:n!=null},children:z})};return n&&(v.route.ErrorBoundary||v.route.errorElement||T===0)?j.createElement(XE,{location:n.location,revalidation:n.revalidation,component:L,error:E,children:G(),routeContext:{outlet:null,matches:V,isDataRoute:!0},onError:g}):G()},null)}function dx(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function $I(t){let e=j.useContext(Al);return ht(e,dx(t)),e}function KI(t){let e=j.useContext(Rf);return ht(e,dx(t)),e}function YI(t){let e=j.useContext(Ai);return ht(e,dx(t)),e}function fx(t){let e=YI(t),n=e.matches[e.matches.length-1];return ht(n.route.id,`${t} can only be used on routes that contain a unique "id"`),n.route.id}function WI(){return fx("useRouteId")}function QI(){var s;let t=j.useContext(ux),e=KI("useRouteError"),n=fx("useRouteError");return t!==void 0?t:(s=e.errors)==null?void 0:s[n]}function XI(){let{router:t}=$I("useNavigate"),e=fx("useNavigate"),n=j.useRef(!1);return WE(()=>{n.current=!0}),j.useCallback(async(a,l={})=>{Ti(n.current,YE),n.current&&(typeof a=="number"?await t.navigate(a):await t.navigate(a,{fromRouteId:e,...l}))},[t,e])}var M_={};function JE(t,e,n){!e&&!M_[t]&&(M_[t]=!0,Ti(!1,n))}j.memo(JI);function JI({routes:t,future:e,state:n,onError:s}){return QE(t,void 0,n,s,e)}function Cf({to:t,replace:e,state:n,relative:s}){ht(Nl(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=j.useContext(Kn);Ti(!a,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:l}=j.useContext(Ai),{pathname:u}=es(),d=hx(),m=cx(t,lx(l),u,s==="path"),g=JSON.stringify(m);return j.useEffect(()=>{d(JSON.parse(g),{replace:e,state:n,relative:s})},[d,g,s,e,n]),null}function ZI(t){return UI(t.context)}function st(t){ht(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function eD({basename:t="/",children:e=null,location:n,navigationType:s="POP",navigator:a,static:l=!1,unstable_useTransitions:u}){ht(!Nl(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let d=t.replace(/^\/*/,"/"),m=j.useMemo(()=>({basename:d,navigator:a,static:l,unstable_useTransitions:u,future:{}}),[d,a,l,u]);typeof n=="string"&&(n=Sl(n));let{pathname:g="/",search:x="",hash:v="",state:T=null,key:E="default"}=n,C=j.useMemo(()=>{let L=Ps(g,d);return L==null?null:{location:{pathname:L,search:x,hash:v,state:T,key:E},navigationType:s}},[d,g,x,v,T,E,s]);
60return Ti(C!=null,`<Router basename="${d}"> is not able to match the URL "${g}${x}${v}" because it does not start with the basename, so the <Router> won't render anything.`),C==null?null:j.createElement(Kn.Provider,{value:m},j.createElement(Mu.Provider,{children:e,value:C}))}function ZE({children:t,location:e}){return BI(uy(t),e)}function uy(t,e=[]){let n=[];return j.Children.forEach(t,(s,a)=>{if(!j.isValidElement(s))return;let l=[...e,a];if(s.type===j.Fragment){n.push.apply(n,uy(s.props.children,l));return}ht(s.type===st,`[${typeof s.type=="string"?s.type:s.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),ht(!s.props.index||!s.props.children,"An index route cannot have child routes.");let u={id:s.props.id||l.join("-"),caseSensitive:s.props.caseSensitive,element:s.props.element,Component:s.props.Component,index:s.props.index,path:s.props.path,middleware:s.props.middleware,loader:s.props.loader,action:s.props.action,hydrateFallbackElement:s.props.hydrateFallbackElement,HydrateFallback:s.props.HydrateFallback,errorElement:s.props.errorElement,ErrorBoundary:s.props.ErrorBoundary,hasErrorBoundary:s.props.hasErrorBoundary===!0||s.props.ErrorBoundary!=null||s.props.errorElement!=null,shouldRevalidate:s.props.shouldRevalidate,handle:s.props.handle,lazy:s.props.lazy};s.props.children&&(u.children=uy(s.props.children,l)),n.push(u)}),n}var Ud="get",Bd="application/x-www-form-urlencoded";function If(t){return typeof HTMLElement<"u"&&t instanceof HTMLElement}function tD(t){return If(t)&&t.tagName.toLowerCase()==="button"}function nD(t){return If(t)&&t.tagName.toLowerCase()==="form"}function iD(t){return If(t)&&t.tagName.toLowerCase()==="input"}function sD(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function rD(t,e){return t.button===0&&(!e||e==="_self")&&!sD(t)}var Ad=null;function aD(){if(Ad===null)try{new FormData(document.createElement("form"),0),Ad=!1}catch{Ad=!0}return Ad}var oD=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Ng(t){return t!=null&&!oD.has(t)?(Ti(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Bd}"`),null):t}function lD(t,e){let n,s,a,l,u;if(nD(t)){let d=t.getAttribute("action");s=d?Ps(d,e):null,n=t.getAttribute("method")||Ud,a=Ng(t.getAttribute("enctype"))||Bd,l=new FormData(t)}else if(tD(t)||iD(t)&&(t.type==="submit"||t.type==="image")){let d=t.form;if(d==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let m=t.getAttribute("formaction")||d.getAttribute("action");if(s=m?Ps(m,e):null,n=t.getAttribute("formmethod")||d.getAttribute("method")||Ud,a=Ng(t.getAttribute("formenctype"))||Ng(d.getAttribute("enctype"))||Bd,l=new FormData(d,t),!aD()){let{name:g,type:x,value:v}=t;if(x==="image"){let T=g?`${g}.`:"";l.append(`${T}x`,"0"),l.append(`${T}y`,"0")}else g&&l.append(g,v)}}else{if(If(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Ud,s=null,a=Bd,u=t}return l&&a==="text/plain"&&(u=l,l=void 0),{action:s,method:n.toLowerCase(),encType:a,formData:l,body:u}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function mx(t,e){if(t===!1||t===null||typeof t>"u")throw new Error(e)}function cD(t,e,n,s){let a=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return n?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${s}`:a.pathname=`${a.pathname}.${s}`:a.pathname==="/"?a.pathname=`_root.${s}`:e&&Ps(a.pathname,e)==="/"?a.pathname=`${e.replace(/\/$/,"")}/_root.${s}`:a.pathname=`${a.pathname.replace(/\/$/,"")}.${s}`,a}async function uD(t,e){if(t.id in e)return e[t.id];try{let n=await import(t.module);return e[t.id]=n,n}catch(n){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function hD(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function dD(t,e,n){let s=await Promise.all(t.map(async a=>{let l=e.routes[a.route.id];if(l){let u=await uD(l,n);return u.links?u.links():[]}return[]}));return gD(s.flat(1).filter(hD).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function L_(t,e,n,s,a,l){let u=(m,g)=>n[g]?m.route.id!==n[g].route.id:!0,d=(m,g)=>{var x;return n[g].pathname!==m.pathname||((x=n[g].route.path)==null?void 0:x.endsWith("*"))&&n[g].params["*"]!==m.params["*"]};return l==="assets"?e.filter((m,g)=>u(m,g)||d(m,g)):l==="data"?e.filter((m,g)=>{var v;let x=s.routes[m.route.id];if(!x||!x.hasLoader)return!1;if(u(m,g)||d(m,g))return!0;
60if(m.route.shouldRevalidate){let T=m.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((v=n[0])==null?void 0:v.params)||{},nextUrl:new URL(t,window.origin),nextParams:m.params,defaultShouldRevalidate:!0});if(typeof T=="boolean")return T}return!0}):[]}function fD(t,e,{includeHydrateFallback:n}={}){return mD(t.map(s=>{let a=e.routes[s.route.id];if(!a)return[];let l=[a.module];return a.clientActionModule&&(l=l.concat(a.clientActionModule)),a.clientLoaderModule&&(l=l.concat(a.clientLoaderModule)),n&&a.hydrateFallbackModule&&(l=l.concat(a.hydrateFallbackModule)),a.imports&&(l=l.concat(a.imports)),l}).flat(1))}function mD(t){return[...new Set(t)]}function pD(t){let e={},n=Object.keys(t).sort();for(let s of n)e[s]=t[s];return e}function gD(t,e){let n=new Set;return new Set(e),t.reduce((s,a)=>{let l=JSON.stringify(pD(a));return n.has(l)||(n.add(l),s.push({key:l,link:a})),s},[])}function eS(){let t=j.useContext(Al);return mx(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function yD(){let t=j.useContext(Rf);return mx(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var px=j.createContext(void 0);px.displayName="FrameworkContext";function tS(){let t=j.useContext(px);return mx(t,"You must render this element inside a <HydratedRouter> element"),t}function xD(t,e){let n=j.useContext(px),[s,a]=j.useState(!1),[l,u]=j.useState(!1),{onFocus:d,onBlur:m,onMouseEnter:g,onMouseLeave:x,onTouchStart:v}=e,T=j.useRef(null);j.useEffect(()=>{if(t==="render"&&u(!0),t==="viewport"){let L=V=>{V.forEach(G=>{u(G.isIntersecting)})},R=new IntersectionObserver(L,{threshold:.5});return T.current&&R.observe(T.current),()=>{R.disconnect()}}},[t]),j.useEffect(()=>{if(s){let L=setTimeout(()=>{u(!0)},100);return()=>{clearTimeout(L)}}},[s]);let E=()=>{a(!0)},C=()=>{a(!1),u(!1)};return n?t!=="intent"?[l,T,{}]:[l,T,{onFocus:$c(d,E),onBlur:$c(m,C),onMouseEnter:$c(g,E),onMouseLeave:$c(x,C),onTouchStart:$c(v,E)}]:[!1,T,{}]}function $c(t,e){return n=>{t&&t(n),n.defaultPrevented||e(n)}}function vD({page:t,...e}){let{router:n}=eS(),s=j.useMemo(()=>BE(n.routes,t,n.basename),[n.routes,t,n.basename]);return s?j.createElement(wD,{page:t,matches:s,...e}):null}function bD(t){let{manifest:e,routeModules:n}=tS(),[s,a]=j.useState([]);return j.useEffect(()=>{let l=!1;return dD(t,e,n).then(u=>{l||a(u)}),()=>{l=!0}},[t,e,n]),s}function wD({page:t,matches:e,...n}){let s=es(),{future:a,manifest:l,routeModules:u}=tS(),{basename:d}=eS(),{loaderData:m,matches:g}=yD(),x=j.useMemo(()=>L_(t,e,g,l,s,"data"),[t,e,g,l,s]),v=j.useMemo(()=>L_(t,e,g,l,s,"assets"),[t,e,g,l,s]),T=j.useMemo(()=>{if(t===s.pathname+s.search+s.hash)return[];let L=new Set,R=!1;if(e.forEach(G=>{var ne;let z=l.routes[G.route.id];!z||!z.hasLoader||(!x.some(re=>re.route.id===G.route.id)&&G.route.id in m&&((ne=u[G.route.id])!=null&&ne.shouldRevalidate)||z.hasClientLoader?R=!0:L.add(G.route.id))}),L.size===0)return[];let V=cD(t,d,a.unstable_trailingSlashAwareDataRequests,"data");return R&&L.size>0&&V.searchParams.set("_routes",e.filter(G=>L.has(G.route.id)).map(G=>G.route.id).join(",")),[V.pathname+V.search]},[d,a.unstable_trailingSlashAwareDataRequests,m,s,l,x,e,t,u]),E=j.useMemo(()=>fD(v,l),[v,l]),C=bD(v);return j.createElement(j.Fragment,null,T.map(L=>j.createElement("link",{key:L,rel:"prefetch",as:"fetch",href:L,...n})),E.map(L=>j.createElement("link",{key:L,rel:"modulepreload",href:L,...n})),C.map(({key:L,link:R})=>j.createElement("link",{key:L,nonce:n.nonce,...R,crossOrigin:R.crossOrigin??n.crossOrigin})))}function _D(...t){return e=>{t.forEach(n=>{typeof n=="function"?n(e):n!=null&&(n.current=e)})}}var TD=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{TD&&(window.__reactRouterVersion="7.13.0")}catch{}function ED({basename:t,children:e,unstable_useTransitions:n,window:s}){let a=j.useRef();a.current==null&&(a.current=nI({window:s,v5Compat:!0}));let l=a.current,[u,d]=j.useState({action:l.action,location:l.location}),m=j.useCallback(g=>{n===!1?d(g):j.startTransition(()=>d(g))},[n]);return j.useLayoutEffect(()=>l.listen(m),[l,m]),j.createElement(eD,{basename:t,children:e,location:u.location,navigationType:u.action,navigator:l,unstable_useTransitions:n})}var nS=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Se=j.forwardRef(function({onClick:e,discover:n="render",prefetch:s="none",relative:a,reloadDocument:l,replace:u,state:d,target:m,to:g,preventScrollReset:x,viewTransition:v,unstable_defaultShouldRevalidate:T,...E},C){let{basename:L,unstable_useTransitions:R}=j.useContext(Kn),V=typeof g=="string"&&nS.test(g),G=qE(g,L);g=G.to;let z=OI(g,{relative:a}),[ne,re,le]=xD(s,E),D=ND(g,{replace:u,state:d,target:m,preventScrollReset:x,relative:a,viewTransition:v,unstable_defaultShouldRevalidate:T,unstable_useTransitions:R});function A(P){e&&e(P),P.defaultPrevented||D(P)}let I=j.createElement("a",{...E,...le,href:G.absoluteURL||z,onClick:G.isExternal||l?e:A,ref:_D(C,re),target:m,"data-discover":!V&&n==="render"?"true":void 0});return ne&&!V?j.createElement(j.Fragment,null,I,j.createElement(vD,{page:z})):I});Se.displayName="Link";var iS=j.forwardRef(function({"aria-current":e="page",caseSensitive:n=!1,className:s="",end:a=!1,style:l,to:u,viewTransition:d,children:m,...g},x){let v=Lu(u,{relative:g.relative}
60),T=es(),E=j.useContext(Rf),{navigator:C,basename:L}=j.useContext(Kn),R=E!=null&&DD(v)&&d===!0,V=C.encodeLocation?C.encodeLocation(v).pathname:v.pathname,G=T.pathname,z=E&&E.navigation&&E.navigation.location?E.navigation.location.pathname:null;n||(G=G.toLowerCase(),z=z?z.toLowerCase():null,V=V.toLowerCase()),z&&L&&(z=Ps(z,L)||z);const ne=V!=="/"&&V.endsWith("/")?V.length-1:V.length;let re=G===V||!a&&G.startsWith(V)&&G.charAt(ne)==="/",le=z!=null&&(z===V||!a&&z.startsWith(V)&&z.charAt(V.length)==="/"),D={isActive:re,isPending:le,isTransitioning:R},A=re?e:void 0,I;typeof s=="function"?I=s(D):I=[s,re?"active":null,le?"pending":null,R?"transitioning":null].filter(Boolean).join(" ");let P=typeof l=="function"?l(D):l;return j.createElement(Se,{...g,"aria-current":A,className:I,ref:x,style:P,to:u,viewTransition:d},typeof m=="function"?m(D):m)});iS.displayName="NavLink";var SD=j.forwardRef(({discover:t="render",fetcherKey:e,navigate:n,reloadDocument:s,replace:a,state:l,method:u=Ud,action:d,onSubmit:m,relative:g,preventScrollReset:x,viewTransition:v,unstable_defaultShouldRevalidate:T,...E},C)=>{let{unstable_useTransitions:L}=j.useContext(Kn),R=CD(),V=ID(d,{relative:g}),G=u.toLowerCase()==="get"?"get":"post",z=typeof d=="string"&&nS.test(d),ne=re=>{if(m&&m(re),re.defaultPrevented)return;re.preventDefault();let le=re.nativeEvent.submitter,D=(le==null?void 0:le.getAttribute("formmethod"))||u,A=()=>R(le||re.currentTarget,{fetcherKey:e,method:D,navigate:n,replace:a,state:l,relative:g,preventScrollReset:x,viewTransition:v,unstable_defaultShouldRevalidate:T});L&&n!==!1?j.startTransition(()=>A()):A()};return j.createElement("form",{ref:C,method:G,action:V,onSubmit:s?m:ne,...E,"data-discover":!z&&t==="render"?"true":void 0})});SD.displayName="Form";function AD(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function sS(t){let e=j.useContext(Al);return ht(e,AD(t)),e}function ND(t,{target:e,replace:n,state:s,preventScrollReset:a,relative:l,viewTransition:u,unstable_defaultShouldRevalidate:d,unstable_useTransitions:m}={}){let g=hx(),x=es(),v=Lu(t,{relative:l});return j.useCallback(T=>{if(rD(T,e)){T.preventDefault();let E=n!==void 0?n:fu(x)===fu(v),C=()=>g(t,{replace:E,state:s,preventScrollReset:a,relative:l,viewTransition:u,unstable_defaultShouldRevalidate:d});m?j.startTransition(()=>C()):C()}},[x,g,v,n,s,e,t,a,l,u,d,m])}var jD=0,RD=()=>`__${String(++jD)}__`;function CD(){let{router:t}=sS("useSubmit"),{basename:e}=j.useContext(Kn),n=WI(),s=t.fetch,a=t.navigate;return j.useCallback(async(l,u={})=>{let{action:d,method:m,encType:g,formData:x,body:v}=lD(l,e);if(u.navigate===!1){let T=u.fetcherKey||RD();await s(T,n,u.action||d,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:x,body:v,formMethod:u.method||m,formEncType:u.encType||g,flushSync:u.flushSync})}else await a(u.action||d,{unstable_defaultShouldRevalidate:u.unstable_defaultShouldRevalidate,preventScrollReset:u.preventScrollReset,formData:x,body:v,formMethod:u.method||m,formEncType:u.encType||g,replace:u.replace,state:u.state,fromRouteId:n,flushSync:u.flushSync,viewTransition:u.viewTransition})},[s,a,e,n])}function ID(t,{relative:e}={}){let{basename:n}=j.useContext(Kn),s=j.useContext(Ai);ht(s,"useFormAction must be used inside a RouteContext");let[a]=s.matches.slice(-1),l={...Lu(t||".",{relative:e})},u=es();if(t==null){l.search=u.search;let d=new URLSearchParams(l.search),m=d.getAll("index");if(m.some(x=>x==="")){d.delete("index"),m.filter(v=>v).forEach(v=>d.append("index",v));let x=d.toString();l.search=x?`?${x}`:""}}return(!t||t===".")&&a.route.index&&(l.search=l.search?l.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(l.pathname=l.pathname==="/"?n:Ms([n,l.pathname])),fu(l)}function DD(t,{relative:e}={}){let n=j.useContext($E);ht(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:s}=sS("useViewTransitionState"),a=Lu(t,{relative:e});if(!n.isTransitioning)return!1;let l=Ps(n.currentLocation.pathname,s)||n.currentLocation.pathname,u=Ps(n.nextLocation.pathname,s)||n.nextLocation.pathname;return tf(a.pathname,u)!=null||tf(a.pathname,l)!=null}var O_={},kD="@vercel/analytics",MD="1.6.1",LD=()=>{window.va||(window.va=function(...e){(window.vaq=window.vaq||[]).push(e)})};function rS(){return typeof window<"u"}function aS(){try{const t="production"}catch{}return"production"}function OD(t="auto"){if(t==="auto"){window.vam=aS();return}window.vam=t}function PD(){return(rS()?window.vam:aS())||"production"}function hy(){return PD()==="development"}function VD(t){return t.scriptSrc?t.scriptSrc:hy()?"https://va.vercel-scripts.com/v1/script.debug.js":t.basePath?`${t.basePath}
60/insights/script.js`:"/_vercel/insights/script.js"}function UD(t={debug:!0}){var e;if(!rS())return;OD(t.mode),LD(),t.beforeSend&&((e=window.va)==null||e.call(window,"beforeSend",t.beforeSend));const n=VD(t);if(document.head.querySelector(`script[src*="${n}"]`))return;const s=document.createElement("script");s.src=n,s.defer=!0,s.dataset.sdkn=kD+(t.framework?`/${t.framework}`:""),s.dataset.sdkv=MD,t.disableAutoTrack&&(s.dataset.disableAutoTrack="1"),t.endpoint?s.dataset.endpoint=t.endpoint:t.basePath&&(s.dataset.endpoint=`${t.basePath}/insights`),t.dsn&&(s.dataset.dsn=t.dsn),s.onerror=()=>{const a=hy()?"Please check if any ad blockers are enabled and try again.":"Be sure to enable Web Analytics for your project and deploy again. See https://vercel.com/docs/analytics/quickstart for more information.";console.log(`[Vercel Web Analytics] Failed to load script from ${n}. ${a}`)},hy()&&t.debug===!1&&(s.dataset.debug="false"),document.head.appendChild(s)}function BD({route:t,path:e}){var n;(n=window.va)==null||n.call(window,"pageview",{route:t,path:e})}function zD(){if(!(typeof process>"u"||typeof O_>"u"))return O_.REACT_APP_VERCEL_OBSERVABILITY_BASEPATH}function FD(t){return j.useEffect(()=>{var e;t.beforeSend&&((e=window.va)==null||e.call(window,"beforeSend",t.beforeSend))},[t.beforeSend]),j.useEffect(()=>{UD({framework:t.framework||"react",basePath:t.basePath??zD(),...t.route!==void 0&&{disableAutoTrack:!0},...t})},[]),j.useEffect(()=>{t.route&&t.path&&BD({route:t.route,path:t.path})},[t.route,t.path]),null}function GD(t){try{(function(e,n,s,a,l,u,d){n.getElementById("clarity-script")||(e[s]=e[s]||function(){(e[s].q=e[s].q||[]).push(arguments)},u=n.createElement(a),u.async=1,u.src="https://www.clarity.ms/tag/"+l+"?ref=npm",u.id="clarity-script",d=n.getElementsByTagName(a)[0],d.parentNode.insertBefore(u,d))})(window,document,"clarity","script",t);return}catch{return}}const qD={init(t){GD(t)},setTag(t,e){window.clarity("set",t,e)},identify(t,e,n,s){window.clarity("identify",t,e,n,s)},consent(t=!0){window.clarity("consent",t)},consentV2(t={ad_Storage:"granted",analytics_Storage:"granted"}){window.clarity("consentv2",t)},upgrade(t){window.clarity("upgrade",t)},event(t){window.clarity("event",t)}},HD=()=>{const{pathname:t,hash:e}=es();return j.useEffect(()=>{"scrollRestoration"in history&&(history.scrollRestoration="manual")},[]),j.useLayoutEffect(()=>{if(e){const n=e.replace("#",""),s=document.getElementById(n);s&&s.scrollIntoView({behavior:"smooth",block:"start"})}else window.scrollTo(0,0)},[t,e]),null};/** 61 * @license lucide-react v0.562.0 - ISC 62 * 63 * This source code is licensed under the ISC license. 64 * See the LICENSE file in the root directory of this source tree. 65 */const $D=t=>t.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),KD=t=>t.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,n,s)=>s?s.toUpperCase():n.toLowerCase()),P_=t=>{const e=KD(t);return e.charAt(0).toUpperCase()+e.slice(1)},oS=(...t)=>t.filter((e,n,s)=>!!e&&e.trim()!==""&&s.indexOf(e)===n).join(" ").trim(),YD=t=>{for(const e in t)if(e.startsWith("aria-")||e==="role"||e==="title")return!0};/** 66 * @license lucide-react v0.562.0 - ISC 67 * 68 * This source code is licensed under the ISC license. 69 * See the LICENSE file in the root directory of this source tree. 70 */var WD={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/** 71 * @license lucide-react v0.562.0 - ISC 72 * 73 * This source code is licensed under the ISC license. 74 * See the LICENSE file in the root directory of this source tree. 75 */const QD=j.forwardRef(({color:t="currentColor",size:e=24,strokeWidth:n=2,absoluteStrokeWidth:s,className:a="",children:l,iconNode:u,...d},m)=>j.createElement("svg",{ref:m,...WD,width:e,height:e,stroke:t,strokeWidth:s?Number(n)*24/Number(e):n,className:oS("lucide",a),...!l&&!YD(d)&&{"aria-hidden":"true"},...d},[...u.map(([g,x])=>j.createElement(g,x)),...Array.isArray(l)?l:[l]]));/** 76 * @license lucide-react v0.562.0 - ISC 77 * 78 * This source code is licensed under the ISC license. 79 * See the LICENSE file in the root directory of this source tree. 80 */const be=(t,e)=>{const n=j.forwardRef(({className:s,...a},l)=>j.createElement(QD,{ref:l,iconNode:e,className:oS(`lucide-${$D(P_(t))}`,`lucide-${t}`,s),...a}
80));return n.displayName=P_(t),n};/** 81 * @license lucide-react v0.562.0 - ISC 82 * 83 * This source code is licensed under the ISC license. 84 * See the LICENSE file in the root directory of this source tree. 85 */const XD=[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]],ts=be("arrow-left",XD);/** 86 * @license lucide-react v0.562.0 - ISC 87 * 88 * This source code is licensed under the ISC license. 89 * See the LICENSE file in the root directory of this source tree. 90 */const JD=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]],$a=be("arrow-right",JD);/** 91 * @license lucide-react v0.562.0 - ISC 92 * 93 * This source code is licensed under the ISC license. 94 * See the LICENSE file in the root directory of this source tree. 95 */const ZD=[["path",{d:"m15.477 12.89 1.515 8.526a.5.5 0 0 1-.81.47l-3.58-2.687a1 1 0 0 0-1.197 0l-3.586 2.686a.5.5 0 0 1-.81-.469l1.514-8.526",key:"1yiouv"}],["circle",{cx:"12",cy:"8",r:"6",key:"1vp47v"}]],lS=be("award",ZD);/** 96 * @license lucide-react v0.562.0 - ISC 97 * 98 * This source code is licensed under the ISC license. 99 * See the LICENSE file in the root directory of this source tree. 100 */const ek=[["path",{d:"M12 7v14",key:"1akyts"}],["path",{d:"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z",key:"ruj8y"}]],tk=be("book-open",ek);/** 101 * @license lucide-react v0.562.0 - ISC 102 * 103 * This source code is licensed under the ISC license. 104 * See the LICENSE file in the root directory of this source tree. 105 */const nk=[["path",{d:"M12 8V4H8",key:"hb8ula"}],["rect",{width:"16",height:"12",x:"4",y:"8",rx:"2",key:"enze0r"}],["path",{d:"M2 14h2",key:"vft8re"}],["path",{d:"M20 14h2",key:"4cs60a"}],["path",{d:"M15 13v2",key:"1xurst"}],["path",{d:"M9 13v2",key:"rq6x2g"}]],ik=be("bot",nk);/** 106 * @license lucide-react v0.562.0 - ISC 107 * 108 * This source code is licensed under the ISC license. 109 * See the LICENSE file in the root directory of this source tree. 110 */const sk=[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}]],gx=be("calendar",sk);/** 111 * @license lucide-react v0.562.0 - ISC 112 * 113 * This source code is licensed under the ISC license. 114 * See the LICENSE file in the root directory of this source tree. 115 */const rk=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],cS=be("check",rk);/** 116 * @license lucide-react v0.562.0 - ISC 117 * 118 * This source code is licensed under the ISC license. 119 * See the LICENSE file in the root directory of this source tree. 120 */const ak=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],uS=be("chevron-down",ak);/** 121 * @license lucide-react v0.562.0 - ISC 122 * 123 * This source code is licensed under the ISC license. 124 * See the LICENSE file in the root directory of this source tree. 125 */const ok=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],nf=be("circle-check",ok);/** 126 * @license lucide-react v0.562.0 - ISC 127 * 128 * This source code is licensed under the ISC license. 129 * See the LICENSE file in the root directory of this source tree. 130 */const lk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m15 9-6 6",key:"1uzhvr"}],["path",{d:"m9 9 6 6",key:"z0biqf"}]],hS=be("circle-x",lk);/** 131 * @license lucide-react v0.562.0 - ISC 132 * 133 * This source code is licensed under the ISC license. 134 * See the LICENSE file in the root directory of this source tree. 135 */const ck=[["rect",{width:"8",height:"4",x:"8",y:"2",rx:"1",ry:"1",key:"tgr4d6"}],["path",{d:"M16 4h2a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2H6a2 2 0 0 1-2-2V6a2 2 0 0 1 2-2h2",key:"116196"}],["path",{d:"M12 11h4",key:"1jrz19"}],["path",{d:"M12 16h4",key:"n85exb"}],["path",{d:"M8 11h.01",key:"1dfujw"}],["path",{d:"M8 16h.01",key:"18s6g9"}]],dS=be("clipboard-list",ck);/** 136 * @license lucide-react v0.562.0 - ISC 137 * 138 * This source code is licensed under the ISC license. 139 * See the LICENSE file in the root directory of this source tree. 140 */const uk=[["path",{d:"M12 6v6l4 2",key:"mmk7yg"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],fS=be("clock",uk);/** 141 * @license lucide-react v0.562.0 - ISC 142 * 143 * This source code is licensed under the ISC license. 144 * See the LICENSE file in the root directory of this source tree. 145 */const hk=[["path",{d:"m16.24 7.76-1.804 5.411a2 2 0 0 1-1.265 1.265L7.76 16.24l1.804-5.411a2 2 0 0 1 1.265-1.265z",ke
145y:"9ktpf1"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],mS=be("compass",hk);/** 146 * @license lucide-react v0.562.0 - ISC 147 * 148 * This source code is licensed under the ISC license. 149 * See the LICENSE file in the root directory of this source tree. 150 */const dk=[["path",{d:"M21.54 15H17a2 2 0 0 0-2 2v4.54",key:"1djwo0"}],["path",{d:"M7 3.34V5a3 3 0 0 0 3 3a2 2 0 0 1 2 2c0 1.1.9 2 2 2a2 2 0 0 0 2-2c0-1.1.9-2 2-2h3.17",key:"1tzkfa"}],["path",{d:"M11 21.95V18a2 2 0 0 0-2-2a2 2 0 0 1-2-2v-1a2 2 0 0 0-2-2H2.05",key:"14pb5j"}],["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}]],fk=be("earth",dk);/** 151 * @license lucide-react v0.562.0 - ISC 152 * 153 * This source code is licensed under the ISC license. 154 * See the LICENSE file in the root directory of this source tree. 155 */const mk=[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]],sf=be("external-link",mk);/** 156 * @license lucide-react v0.562.0 - ISC 157 * 158 * This source code is licensed under the ISC license. 159 * See the LICENSE file in the root directory of this source tree. 160 */const pk=[["path",{d:"M10.733 5.076a10.744 10.744 0 0 1 11.205 6.575 1 1 0 0 1 0 .696 10.747 10.747 0 0 1-1.444 2.49",key:"ct8e1f"}],["path",{d:"M14.084 14.158a3 3 0 0 1-4.242-4.242",key:"151rxh"}],["path",{d:"M17.479 17.499a10.75 10.75 0 0 1-15.417-5.151 1 1 0 0 1 0-.696 10.75 10.75 0 0 1 4.446-5.143",key:"13bj9a"}],["path",{d:"m2 2 20 20",key:"1ooewy"}]],gk=be("eye-off",pk);/** 161 * @license lucide-react v0.562.0 - ISC 162 * 163 * This source code is licensed under the ISC license. 164 * See the LICENSE file in the root directory of this source tree. 165 */const yk=[["path",{d:"M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0",key:"1nclc0"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]],xk=be("eye",yk);/** 166 * @license lucide-react v0.562.0 - ISC 167 * 168 * This source code is licensed under the ISC license. 169 * See the LICENSE file in the root directory of this source tree. 170 */const vk=[["path",{d:"M4 16v-2.38C4 11.5 2.97 10.5 3 8c.03-2.72 1.49-6 4.5-6C9.37 2 10 3.8 10 5.5c0 3.11-2 5.66-2 8.68V16a2 2 0 1 1-4 0Z",key:"1dudjm"}],["path",{d:"M20 20v-2.38c0-2.12 1.03-3.12 1-5.62-.03-2.72-1.49-6-4.5-6C14.63 6 14 7.8 14 9.5c0 3.11 2 5.66 2 8.68V20a2 2 0 1 0 4 0Z",key:"l2t8xc"}],["path",{d:"M16 17h4",key:"1dejxt"}],["path",{d:"M4 13h4",key:"1bwh8b"}]],bk=be("footprints",vk);/** 171 * @license lucide-react v0.562.0 - ISC 172 * 173 * This source code is licensed under the ISC license. 174 * See the LICENSE file in the root directory of this source tree. 175 */const wk=[["line",{x1:"6",x2:"10",y1:"11",y2:"11",key:"1gktln"}],["line",{x1:"8",x2:"8",y1:"9",y2:"13",key:"qnk9ow"}],["line",{x1:"15",x2:"15.01",y1:"12",y2:"12",key:"krot7o"}],["line",{x1:"18",x2:"18.01",y1:"10",y2:"10",key:"1lcuu1"}],["path",{d:"M17.32 5H6.68a4 4 0 0 0-3.978 3.59c-.006.052-.01.101-.017.152C2.604 9.416 2 14.456 2 16a3 3 0 0 0 3 3c1 0 1.5-.5 2-1l1.414-1.414A2 2 0 0 1 9.828 16h4.344a2 2 0 0 1 1.414.586L17 18c.5.5 1 1 2 1a3 3 0 0 0 3-3c0-1.545-.604-6.584-.685-7.258-.007-.05-.011-.1-.017-.151A4 4 0 0 0 17.32 5z",key:"mfqc10"}]],_k=be("gamepad-2",wk);/** 176 * @license lucide-react v0.562.0 - ISC 177 * 178 * This source code is licensed under the ISC license. 179 * See the LICENSE file in the root directory of this source tree. 180 */const Tk=[["line",{x1:"6",x2:"6",y1:"3",y2:"15",key:"17qcm7"}],["circle",{cx:"18",cy:"6",r:"3",key:"1h7g24"}],["circle",{cx:"6",cy:"18",r:"3",key:"fqmcym"}],["path",{d:"M18 9a9 9 0 0 1-9 9",key:"n2h4wq"}]],Ek=be("git-branch",Tk);/** 181 * @license lucide-react v0.562.0 - ISC 182 * 183 * This source code is licensed under the ISC license. 184 * See the LICENSE file in the root directory of this source tree. 185 */const Sk=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20",key:"13o1zl"}],["path",{d:"M2 12h20",key:"9i4pu4"}]],pS=be("globe",Sk);/** 186 * @license lucide-react v0.562.0 - ISC 187 * 188 * This source code is licensed under the ISC license. 189 * See the LICENSE file in the root directory of this source tree. 190 */const Ak=[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]],Nk=be("instagram",Ak);/** 191 * @license lucide-react v0.562.0 - ISC 192 * 193 * This source code is licensed under the ISC license. 194 * See the LICENSE file in the root directory of this source tree. 195 */const jk=[["path",{d:"M5 3v14",key:"9nsxs2"}],["path",{d:"M12 3v8",key:"1h2ygw"}],["path",{d:"M19 3v18",key:"1sk56x"}]],gS=be("kanban",jk);/** 196 * @license lucide-react v0.562.0 - ISC 197 * 198 * This source code is licensed under the ISC license. 199 * See the LICENSE file in the root directory of this source tree. 200 */const Rk=[["path",{d:"M10 18v-7",key:"wt116b"}],["path",{d:"M11.12 2.198a2 2 0 0 1 1.76.006l7.866 3.847c.476.233.31.949-.22.949H3.474c-.53 0-.695-.716-.22-.949z",key:"1m329m"}],["path",{d:"M14 18v-7",key:"vav6t3"}],["path",{d:"M18 18v-7",key:"aexdmj"}],["path",{d:"M3 22h18",key:"8prr45"}],["path",{d:"M6 18v-7",key:"1ivflk"}]],Ck=be("landmark",Rk);/** 201 * @license lucide-react v0.562.0 - ISC 202 * 203 * This source code is licensed under the ISC license. 204 * See the LICENSE file in the root directory of this source tree. 205 */const Ik=[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]],Dk=be("layout-dashboard",Ik);/** 206 * @license lucide-react v0.562.0 - ISC 207 * 208 * This source code is licensed under the ISC license. 209 * See the LICENSE file in the root directory of this source tree. 210 */const kk=[["path",{d:"M10 13a5 5 0 0 0 7.54.54l3-3a5 5 0 0 0-7.07-7.07l-1.72 1.71",key:"1cjeqo"}],["path",{d:"M14 11a5 5 0 0 0-7.54-.54l-3 3a5 5 0 0 0 7.07 7.07l1.71-1.71",key:"19qd67"}]],yS=be("link",kk);/** 211 * @license lucide-react v0.562.0 - ISC 212 * 213 * This source code is licensed under the ISC license. 214 * See the LICENSE file in the root directory of this source tree. 215 */const Mk=[["path",{d:"M16 8a6 6 0 0 1 6 6v7h-4v-7a2 2 0 0 0-2-2 2 2 0 0 0-2 2v7h-4v-7a6 6 0 0 1 6-6z",key:"c2jq9f"}],["rect",{width:"4",height:"12",x:"2",y:"9",key:"mk3on5"}],["circle",{cx:"4",cy:"4",r:"2",key:"bt5ra8"}]],xS=be("linkedin",Mk);/** 216 * @license lucide-react v0.562.0 - ISC 217 * 218 * This source code is licensed under the ISC license. 219 * See the LICENSE file in the root directory of this source tree. 220 */const Lk=[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]],jl=be("loader-circle",Lk);/** 221 * @license lucide-react v0.562.0 - ISC 222 * 223 * This source code is licensed under the ISC license. 224 * See the LICENSE file in the root directory of this source tree. 225 */const Ok=[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 9.9-1",key:"1mm8w8"}]],Pk=be("lock-open",Ok);/** 226 * @license lucide-react v0.562.0 - ISC 227 * 228 * This source code is licensed under the ISC license. 229 * See the LICENSE file in the root directory of this source tree. 230 */const Vk=[["path",{d:"m16 17 5-5-5-5",key:"1bji2h"}],["path",{d:"M21 12H9",key:"dn1m92"}],["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}]],Uk=be("log-out",Vk);/** 231 * @license lucide-react v0.562.0 - ISC 232 * 233 * This source code is licensed under the ISC license. 234 * See the LICENSE file in the root directory of this source tree. 235 */const Bk=[["path",{d:"m22 7-8.991 5.727a2 2 0 0 1-2.009 0L2 7",key:"132q7q"}],["rect",{x:"2",y:"4",width:"20",height:"16",rx:"2",key:"izxlao"}]],zk=be("mail",Bk);/** 236 * @license lucide-react v0.562.0 - ISC 237 * 238 * This source code is licensed under the ISC license. 239 * See the LICENSE file in the root directory of this source tree. 240 */const Fk=[["path",{d:"M14.106 5.553a2 2 0 0 0 1.788 0l3.659-1.83A1 1 0 0 1 21 4.619v12.764a1 1 0 0 1-.553.894l-4.553 2.277a2 2 0 0 1-1.788 0l-4.212-2.106a2 2 0 0 0-1.788 0l-3.659 1.83A1 1 0 0 1 3 19.381V6.618a1 1 0 0 1 .553-.894l4.553-2.277a2 2 0 0 1 1.788 0z",key:"169xi5"}],["path",{d:"M15 5.764v15",key:"1pn4in"}],["path",{d:"M9 3.236v15",key:"1uimfh"}]],vS=be("map",Fk);/** 241 * @license lucide-react v0.562.0 - ISC 242 * 243 * This source code is licensed under the ISC license. 244 * See the LICENSE file in the root directory of this source tree. 245 */const Gk=[["path",{d:"M4 5h16",key:"1tepv9"}],["path",{d:"M4 12h16",key:"1lakjw"}],["path",{d:"M4 19h16",key:"1djgab"}]],bS=be("menu",Gk);/** 246 * @license lucide-react v0.562.0 - ISC 247 * 248 * This source code is licensed under the ISC license. 249 * See the LICENSE file in the root directory of this source tree. 250 */const qk=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Hk=be("message-square",qk);/** 251 * @license lucide-react v0.562.0 - ISC 252 * 253 * This source code is licensed under the ISC license. 254 * See the LICENSE file in the root directory of this source tree. 255 */const $k=[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]],wS=be("plus",$k);/** 256 * @license lucide-react v0.562.0 - ISC 257 * 258 * This source code is licensed under the ISC license. 259 * See the LICENSE file in the root directory of this source tree. 260 */const Kk=[["path",{d:"M4.5 16.5c-1.5 1.26-2 5-2 5s3.74-.5 5-2c.71-.84.7-2.13-.09-2.91a2.18 2.18 0 0 0-2.91-.09z",key:"m3
260kijz"}],["path",{d:"m12 15-3-3a22 22 0 0 1 2-3.95A12.88 12.88 0 0 1 22 2c0 2.72-.78 7.5-6 11a22.35 22.35 0 0 1-4 2z",key:"1fmvmk"}],["path",{d:"M9 12H4s.55-3.03 2-4c1.62-1.08 5 0 5 0",key:"1f8sc4"}],["path",{d:"M12 15v5s3.03-.55 4-2c1.08-1.62 0-5 0-5",key:"qeys4"}]],Yk=be("rocket",Kk);/** 261 * @license lucide-react v0.562.0 - ISC 262 * 263 * This source code is licensed under the ISC license. 264 * See the LICENSE file in the root directory of this source tree. 265 */const Wk=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],dy=be("shield-check",Wk);/** 266 * @license lucide-react v0.562.0 - ISC 267 * 268 * This source code is licensed under the ISC license. 269 * See the LICENSE file in the root directory of this source tree. 270 */const Qk=[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}]],Xk=be("shield",Qk);/** 271 * @license lucide-react v0.562.0 - ISC 272 * 273 * This source code is licensed under the ISC license. 274 * See the LICENSE file in the root directory of this source tree. 275 */const Jk=[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]],Zk=be("smartphone",Jk);/** 276 * @license lucide-react v0.562.0 - ISC 277 * 278 * This source code is licensed under the ISC license. 279 * See the LICENSE file in the root directory of this source tree. 280 */const eM=[["polyline",{points:"14.5 17.5 3 6 3 3 6 3 17.5 14.5",key:"1hfsw2"}],["line",{x1:"13",x2:"19",y1:"19",y2:"13",key:"1vrmhu"}],["line",{x1:"16",x2:"20",y1:"16",y2:"20",key:"1bron3"}],["line",{x1:"19",x2:"21",y1:"21",y2:"19",key:"13pww6"}],["polyline",{points:"14.5 6.5 18 3 21 3 21 6 17.5 9.5",key:"hbey2j"}],["line",{x1:"5",x2:"9",y1:"14",y2:"18",key:"1hf58s"}],["line",{x1:"7",x2:"4",y1:"17",y2:"20",key:"pidxm4"}],["line",{x1:"3",x2:"5",y1:"19",y2:"21",key:"1pehsh"}]],tM=be("swords",eM);/** 281 * @license lucide-react v0.562.0 - ISC 282 * 283 * This source code is licensed under the ISC license. 284 * See the LICENSE file in the root directory of this source tree. 285 */const nM=[["path",{d:"M10 11v6",key:"nco0om"}],["path",{d:"M14 11v6",key:"outv1u"}],["path",{d:"M19 6v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6",key:"miytrc"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2",key:"e791ji"}]],yx=be("trash-2",nM);/** 286 * @license lucide-react v0.562.0 - ISC 287 * 288 * This source code is licensed under the ISC license. 289 * See the LICENSE file in the root directory of this source tree. 290 */const iM=[["path",{d:"M10 14.66v1.626a2 2 0 0 1-.976 1.696A5 5 0 0 0 7 21.978",key:"1n3hpd"}],["path",{d:"M14 14.66v1.626a2 2 0 0 0 .976 1.696A5 5 0 0 1 17 21.978",key:"rfe1zi"}],["path",{d:"M18 9h1.5a1 1 0 0 0 0-5H18",key:"7xy6bh"}],["path",{d:"M4 22h16",key:"57wxv0"}],["path",{d:"M6 9a6 6 0 0 0 12 0V3a1 1 0 0 0-1-1H7a1 1 0 0 0-1 1z",key:"1mhfuq"}],["path",{d:"M6 9H4.5a1 1 0 0 1 0-5H6",key:"tex48p"}]],Ka=be("trophy",iM);/** 291 * @license lucide-react v0.562.0 - ISC 292 * 293 * This source code is licensed under the ISC license. 294 * See the LICENSE file in the root directory of this source tree. 295 */const sM=[["path",{d:"M21 2H3v16h5v4l4-4h5l4-4V2zm-10 9V7m5 4V7",key:"c0yzno"}]],rM=be("twitch",sM);/** 296 * @license lucide-react v0.562.0 - ISC 297 * 298 * This source code is licensed under the ISC license. 299 * See the LICENSE file in the root directory of this source tree. 300 */const aM=[["path",{d:"M22 4s-.7 2.1-2 3.4c1.6 10-9.4 17.3-18 11.6 2.2.1 4.4-.6 6-2C3 15.5.5 9.6 3 5c2.2 2.6 5.6 4.1 9 4-.9-4.2 4-6.6 7-3.8 1.1 0 3-1.2 3-1.2z",key:"pff0z6"}]],_S=be("twitter",aM);/** 301 * @license lucide-react v0.562.0 - ISC 302 * 303 * This source code is licensed under the ISC license. 304 * See the LICENSE file in the root directory of this source tree. 305 */const oM=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["line",{x1:"19",x2:"19",y1:"8",y2:"14",key:"1bvyxn"}],["line",{x1:"22",x2:"16",y1:"11",y2:"11",key:"1shjgl"}]],lM=be("user-plus",oM);/** 306 * @license lucide-react v0.562.0 - ISC 307 * 308 * This source code is licensed under the ISC license. 309 * See the LICENSE file in the root directory of this source tree. 310 */const cM=[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["path",{d:"M16 3.128a4 4 0 0 1 0 7.744",key:"16gr8j"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}]],Za=be("users",cM);/** 311 * @license lucide-react v0.562.0 - ISC 312 * 313 * This source code is licensed under the ISC license. 314 * See the LICENSE file in the root directory of this source tree. 315 */const uM=[["path",{d:"M18 6 6 18",key:"1bl5f8"}
315],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],rf=be("x",uM);/** 316 * @license lucide-react v0.562.0 - ISC 317 * 318 * This source code is licensed under the ISC license. 319 * See the LICENSE file in the root directory of this source tree. 320 */const hM=[["path",{d:"M2.5 17a24.12 24.12 0 0 1 0-10 2 2 0 0 1 1.4-1.4 49.56 49.56 0 0 1 16.2 0A2 2 0 0 1 21.5 7a24.12 24.12 0 0 1 0 10 2 2 0 0 1-1.4 1.4 49.55 49.55 0 0 1-16.2 0A2 2 0 0 1 2.5 17",key:"1q2vi4"}],["path",{d:"m10 15 5-3-5-3z",key:"1jp15x"}]],dM=be("youtube",hM);/** 321 * @license lucide-react v0.562.0 - ISC 322 * 323 * This source code is licensed under the ISC license. 324 * See the LICENSE file in the root directory of this source tree. 325 */const fM=[["path",{d:"M4 14a1 1 0 0 1-.78-1.63l9.9-10.2a.5.5 0 0 1 .86.46l-1.92 6.02A1 1 0 0 0 13 10h7a1 1 0 0 1 .78 1.63l-9.9 10.2a.5.5 0 0 1-.86-.46l1.92-6.02A1 1 0 0 0 11 14z",key:"1xq2db"}]],TS=be("zap",fM),mM="https://letsgamenow.b-cdn.net",pM={"/images/tournaments/BGMI.jpg":"BGMI.jpg","/images/cj.jpg":"cj.jpg","/images/tournaments/COD.jpg":"COD.jpg","/images/tournaments/Cricket 19.jpg":"Cricket%2019.jpg","/images/tournaments/Dota 2.jpg":"Dota%202.jpg","/images/tournaments/FIFA.jpg":"FIFA.jpg","/images/tournaments/FreeFire Max.jpg":"FreeFire%20Max.jpg","/images/ISGL_Logo.png":"ISGL_Logo.png","/images/LGN_LOGO (1).png":"LGN_LOGO%20(1).png","/images/LGN_LOGO%20(1).png":"LGN_LOGO%20(1).png","/videos/lgnintro.mp4":"lgnintro.mp4","/videos/lgnintro1.mp4":"lgnintro1.mp4","/videos/lgnintro2.mp4":"lgnintro2.mp4","/videos/lgnintro3.mp4":"lgnintro3.mp4","/videos/lgnintro4.mp4":"lgnintro4.mp4","/images/lgn-esports-champion.jpg":"lgn-esports-champion.jpg","/images/tournaments/Mobile Legends.jpg":"Mobile%20Legends.jpg","/images/tournaments/Rainbow 6 Siege.jpg":"Rainbow%206%20Siege.jpg","/images/sbasu.jpeg":"sbasu.jpeg","/images/sj.jpg":"sj.jpg","/images/sr.jpg":"sr.jpg","/images/tournaments/Valorant.jpg":"Valorant.jpg"},V_={"/videos/lgnintro.mp4":"https://res.cloudinary.com/dceo1q8bi/video/upload/v1772371246/lgnintro_f26idd.mp4","/videos/lgnintro1.mp4":"https://res.cloudinary.com/dceo1q8bi/video/upload/v1772371283/lgnintro1_rpzopb.mp4","/videos/lgnintro2.mp4":"https://res.cloudinary.com/dceo1q8bi/video/upload/v1772371274/lgnintro2_ey8utl.mp4","/videos/lgnintro3.mp4":"https://res.cloudinary.com/dceo1q8bi/video/upload/v1772371290/lgnintro3_b8gd6a.mp4","/videos/lgnintro4.mp4":"https://res.cloudinary.com/dceo1q8bi/video/upload/v1772371229/lgnintro4_ujx4lt.mp4"};function ES(t){try{return decodeURIComponent(t)}catch{return t}}function xx(t){const e=ES(t),n=pM[e];if(t.startsWith("http")){const l=e.startsWith("/videos/");return{cdnUrl:t,fallbackUrl:t}}const s=e.startsWith("/videos/");if(n){const l=V_[e]||"";return{cdnUrl:`${mM}/${n}`,fallbackUrl:s?l:t}}const a=V_[e]||"";return{cdnUrl:s?a:t,fallbackUrl:s?a:t}}function U_(t){const e=ES(t),{cdnUrl:n,fallbackUrl:s}=xx(e),a=e.startsWith("/")?e:`/${e}`;return[...new Set([a,n,s].filter(Boolean))]}const Mn=({src:t,...e})=>{const{cdnUrl:n,fallbackUrl:s}=xx(t),a=t.startsWith("/")?t:`/${t}`,l=u=>{const d=u.currentTarget,m=d.getAttribute("src")??"";m.includes(a)?s&&!m.includes(s)&&(d.src=s):d.src=a};return c.jsx("img",{src:n,onError:l,...e})},B_=[{label:"What's Cooking",anchor:"whats-cooking"},{label:"Wall of Love",anchor:"wall-of-love"},{label:"Upcoming Tournaments",path:"/upcoming-tournaments"},{label:"Past Tournaments",anchor:"past-tournaments"},{label:"Founder",anchor:"founders"}],Ni=()=>{const[t,e]=j.useState(!1),[n,s]=j.useState(!1),a=es();return j.useEffect(()=>{const l=()=>{e(window.scrollY>50)};return window.addEventListener("scroll",l),()=>window.removeEventListener("scroll",l)},[]),j.useEffect(()=>(n?document.body.style.overflow="hidden":document.body.style.overflow="",()=>{document.body.style.overflow=""}),[n]),c.jsxs(c.Fragment,{children:[c.jsx("nav",{className:`fixed top-0 left-0 right-0 z-[100] transition-all duration-500 ${t?"bg-ln-dark/90 backdrop-blur-xl border-b border-white/5 py-4":"bg-transparent py-8"}`,children:c.jsxs("div",{className:"container mx-auto px-8 flex items-center justify-between",children:[c.jsx(Se,{to:"/",className:"flex items-center gap-4 cursor-pointer group",children:c.jsx(Mn,{src:"/images/LGN_LOGO (1).png",alt:"LGN Logo",className:"h-10 w-auto"})}),c.jsx("div",{className:"hidden md:flex items-center gap-12",children:B_.map(l=>{const d="path"in l&&l.path?l.path:a.pathname==="/"?`#${l.anchor}`:`/#${l.anchor}`;return c.jsx(Se,{to:d,className:"text-sm font-display font-medium text-gray-400 hover:text-white transition-colors tracking-widest uppercase hover:underline decoration-ln-red underline-offset-8 decoration-2",children:l.label},l.label)})}),c.jsx("div",{className:"md:hidden",children:c.jsx("button",{onClick:l=>{l.preventDefault(),l.stopPropagation(),s(!n)},className:"text-white hover:text-ln-cyan transition-colors p-2 relative z-[101]",type:"button",children:n?c.jsx(rf,{size:24}):c.jsx(bS,{size:24})})})]})}),n&&c.jsxs("div",{className:"fixed top-0 left-0 right-0 bottom-0 bg-ln-dark z-[100] flex flex-col md:hidden",children:[c.jsxs("div",{className:`px-8 flex items-center justify-between border-b border-white/10 ${t?"py-4":"py-8"}`,children:[c.jsx(Se,{to:"/",onClick:()=>s(!1),children:c.jsx(Mn,{src:"/images/LGN_LOGO (1).png",alt:"LGN Logo",className:"h-10 w-auto"})}),c.jsx("button",{onClick:()=>s(!1),className:"text-white hover:text-ln-cyan transition-colors p-2","aria-label":"Close menu",type:"button",children:c.jsx(rf,{size:24})})]}),c.jsx("div",{className:"flex-1 flex flex-col items-center justify-center gap-8 px-6",children:B_.map(l=>{const d="path"in l&&l.path?l.path:a.pathname==="/"?`#${l.anchor}`:`/#${l.anchor}`;return c.jsx(Se,{to:d,onClick:()=>s(!1),className:"text-2xl font-display font-bold text-white hover:text-ln-red transition-colors tracking-wider up
325percase text-center py-3",children:l.label},l.label)})})]})]})},qi="https://letsgamenow.com",jg=[{type:"video",src:"/videos/lgnintro4.mp4"},{type:"video",src:"/videos/lgnintro2.mp4"}],fy=[{name:"Santanu Basu",role:"Founder",image:"/images/sbasu.jpeg",bio:"Represented India the highest number of times in international gaming",socials:{linkedin:"https://www.linkedin.com/in/santanubasugamer/"}}],z_={"Santanu Basu":{bio:"Santanu Basu is a pioneering Indian gamer and entrepreneur who has represented India the highest number of times in international gaming and esports competitions. With over 10 years of gaming experience and 5+ years of international competition, he has established himself as a gamer-turned-entrepreneur. He participated in his first national-level championship in 2007, traveling without a ticket or funds to compete, a testament to his passion and determination. Despite personal health challenges, including a recovery from pancreatic cancer, he has built LetsGameNow into one of India's fastest-growing gaming portals since its launch in 2019. LGN now hosts tournaments for Valorant, Call of Duty Mobile, Dota 2, and more, with partnerships including Flipkart and Sony PlayStation.",highlights:["Represented India the highest number of times in international gaming","10+ years of gaming, 5+ years of international competition","Founded LetsGameNow in 2019, one of India's fastest-growing gaming portals","Partnerships with Flipkart, Sony PlayStation, and leading brands","Pioneered AI-powered gameplay review and performance tools for Indian gamers"]}},gM=[{id:"1",name:"Saransh Jain",handle:"@saranshjain",avatar:"/images/sj.jpg",role:"Pro Gamer",content:"Grateful to LGN for giving gamers opportunities to represent India internationally. Best of luck for the future!"},{id:"2",name:"Charanjot Singh",handle:"@charanjotsingh",avatar:"/images/cj.jpg",role:"International Champion",content:"Thanks to LGN, Saksham and I won our first international tournament in Malaysia. Proud moment!"},{id:"3",name:"Saksham Rattan",handle:"@sakshamrattan",avatar:"/images/sr.jpg",role:"International Champion",content:"Won my first international title in Malaysia thanks to LGN. Grateful for the opportunity to represent India!"},{id:"4",name:"Rudransh Tripathi",handle:"@rudranshtripathi",avatar:"https://media.licdn.com/dms/image/v2/D5603AQH4sfgCYqgyvQ/profile-displayphoto-scale_200_200/B56ZuXm0MkGsAY-/0/1767775098025?e=1772064000&v=beta&t=aNpsR_tr5d9vu5OU1_7S7K11Fj30WY7-nxq5JnwD3cM",role:"Industry Professional",content:"One of the best companies I've worked with. Their passion for gaming is truly inspiring!"}],F_=[{name:"PlayStation",logo:""},{name:"AMD",logo:""},{name:"RedGear",logo:""},{name:"Bundesliga",logo:""},{name:"Acer",logo:""}],yM=[{icon:Ka,title:"Global Tournaments",desc:"Compete in high-stakes tournaments from anywhere in the world."},{icon:Za,title:"Massive Community",desc:"Join over 1M+ gamers connecting and playing daily."},{icon:TS,title:"Play Your Way",desc:"Build a career as a professional gamer, play for fun with friends, or compete regularly for cash prizes."},{icon:pS,title:"World Scale",desc:"Infrastructure that spans across continents for seamless play."}],cn={FIFA:"/images/tournaments/FIFA.jpg",BGMI:"/images/tournaments/BGMI.jpg","Rainbow Six Siege":"/images/tournaments/Rainbow 6 Siege.jpg","Call of Duty":"/images/tournaments/COD.jpg","Free Fire Max":"/images/tournaments/FreeFire Max.jpg","Mobile Legends":"/images/tournaments/Mobile Legends.jpg","Dota 2":"/images/tournaments/Dota 2.jpg",Valorant:"/images/tournaments/Valorant.jpg","Cricket 19":"/images/tournaments/Cricket 19.jpg"},ol=[{id:"1",name:"AFGC 2020-21 INDIA QUALIFIER 7 PS4",game:"FIFA",startDate:"2021-08-25",endDate:"2021-08-25",prizeMoney:"0",currency:"INR",playersJoined:16,maxPlayers:16,isFree:!0,winner:"Qualified for AFGC National Finals",image:cn.FIFA},{id:"2",name:"LGN BGMI DAILY Squad Tournament",game:"BGMI",startDate:"2021-08-05",endDate:"2021-08-05",prizeMoney:"200",currency:"INR",playersJoined:98,maxPlayers:200,isFree:!0,winner:"Squad Champion",image:cn.BGMI},{id:"3",name:"Flipkart Fleet of Gamers Valorant Tournament",game:"Valorant",startDate:"2022-07-16",endD
325ate:"2022-07-16",prizeMoney:"50000",currency:"INR",playersJoined:64,maxPlayers:64,isFree:!1,winner:"Team Champions",image:cn.Valorant},{id:"4",name:"LGN Free Fire Weekly Tournament",game:"Free Fire Max",startDate:"2021-06-15",endDate:"2021-06-15",prizeMoney:"1000",currency:"INR",playersJoined:150,maxPlayers:200,isFree:!0,winner:"Squad Winners",image:cn["Free Fire Max"]},{id:"5",name:"AFGC ASIA QUALIFIER PS4",game:"FIFA",startDate:"2021-08-21",endDate:"2021-08-21",prizeMoney:"0",currency:"INR",playersJoined:16,maxPlayers:16,isFree:!0,winner:"Qualified for AFGC Finals",image:cn.FIFA},{id:"6",name:"LGN BGMI DAILY Squad Tournament",game:"BGMI",startDate:"2021-08-06",endDate:"2021-08-06",prizeMoney:"200",currency:"INR",playersJoined:98,maxPlayers:200,isFree:!0,winner:"Squad Champion",image:cn.BGMI},{id:"7",name:"LGN COD Mobile TDM Tournament",game:"Call of Duty",startDate:"2021-05-20",endDate:"2021-05-20",prizeMoney:"500",currency:"INR",playersJoined:80,maxPlayers:100,isFree:!1,winner:"Team Elite",image:cn["Call of Duty"]},{id:"8",name:"Dota 2 Championship",game:"Dota 2",startDate:"2021-04-10",endDate:"2021-04-15",prizeMoney:"25000",currency:"INR",playersJoined:32,maxPlayers:32,isFree:!1,winner:"Team Legends",image:cn["Dota 2"]},{id:"9",name:"Mobile Legends Bang Bang Cup",game:"Mobile Legends",startDate:"2021-03-25",endDate:"2021-03-27",prizeMoney:"3000",currency:"INR",playersJoined:120,maxPlayers:150,isFree:!1,winner:"Team Thunder",image:cn["Mobile Legends"]},{id:"10",name:"Rainbow Six Siege Pro League",game:"Rainbow Six Siege",startDate:"2021-02-15",endDate:"2021-02-18",prizeMoney:"15000",currency:"INR",playersJoined:40,maxPlayers:80,isFree:!1,winner:"Team Shadow",image:cn["Rainbow Six Siege"]},{id:"11",name:"Real Cricket 20 Championship",game:"Cricket 19",startDate:"2021-01-20",endDate:"2021-01-22",prizeMoney:"2000",currency:"INR",playersJoined:64,maxPlayers:64,isFree:!1,winner:"Team India",image:cn["Cricket 19"]},{id:"12",name:"LGN BGMI DAILY Squad Tournament",game:"BGMI",startDate:"2021-08-08",endDate:"2021-08-08",prizeMoney:"200",currency:"INR",playersJoined:98,maxPlayers:200,isFree:!0,winner:"Squad Champion",image:cn.BGMI},{id:"13",name:"AFGC 2020-21 PAKISTAN QUALIFIER PS4",game:"FIFA",startDate:"2021-08-10",endDate:"2021-08-10",prizeMoney:"0",currency:"INR",playersJoined:32,maxPlayers:32,isFree:!0,winner:"Qualified for AFGC Finals",image:cn.FIFA},{id:"14",name:"LGN BGMI DAILY Squad Tournament",game:"BGMI",startDate:"2021-08-11",endDate:"2021-08-11",prizeMoney:"200",currency:"INR",playersJoined:98,maxPlayers:200,isFree:!0,winner:"Squad Champion",image:cn.BGMI},{id:"15",name:"LGN BGMI DAILY Squad Tournament",game:"BGMI",startDate:"2021-08-20",endDate:"2021-08-20",prizeMoney:"200",currency:"INR",playersJoined:98,maxPlayers:200,isFree:!0,winner:"Squad Champion",image:cn.BGMI},{id:"16",name:"LGN BGMI DAILY Squad Tournament",game:"BGMI",startDate:"2021-08-23",endDate:"2021-08-23",prizeMoney:"200",currency:"INR",playersJoined:98,maxPlayers:200,isFree:!0,winner:"Squad Champion",image:cn.BGMI}],Cn="Let's Game Now",xM=["LGN","LetsGameNow","Let's Game Now"],SS="/images/lgn-esports-champion.jpg",vM={width:1024,height:571},AS="/images/LGN_LOGO%20(1).png",Wc={twitter:"https://twitter.com/letsgamenow",instagram:"https://instagram.com/letsgamenow",youtube:"https://youtube.com/@letsgamenow",twitch:"https://twitch.tv/letsgamenow",linkedin:"https://linkedin.com/company/letsgamenow"},bM=["Let's Game Now","LetsGameNow","LGN","esports India","Indian esports","gaming tournaments India","Indian Super Gaming League","ISGL","esports platform India","competitive gaming India","Valorant India","BGMI tournaments India","FIFA esports India","Free Fire India","Call of Duty mobile India","Dota 2 India","pro gaming careers India","esports careers India","gaming marketing India","esports broadcast India","esports production India","gaming events India","Indian esports league","ISGL registration"].join(", "),Gi={name:Cn,alternateName:xM,foundingDate:"2019",description:"India's premier esports platform. Let's Game Now provides marketing solutions, broadcast & production services, gaming tournaments, and connects 1M+ gamers across 18+ countries.",sameAs:Object.values(Wc),founder:{name:"Santanu Basu",jobTitle:"Founder",url:"https://www.linkedin.com/in/santanubasugamer/"}},wM=t=>({"@context":"https://schema.org","@type":["Organization","SportsOrganization"],"@id":`${t}/#organization`,name:Gi.name,alternateName:Gi.alternateName,url:t,logo:{"@type":"ImageObject",url:`${t}${AS}`,width:512,height:512},image:`${t}${SS}`,description:Gi.description,foundingDate:Gi.foundingDate,founder:{"@type":"Person",name:Gi.founder.name,jobTitle:Gi.founder.jobTitle,sameAs:[Gi.founder.url]},areaServed:{"@type":"Country",name:"India"},sameAs:Gi.sameAs??[],contactPoint:{"@type":"ContactPoint",email:"[email protected]",contactType:"customer service",areaServed:"IN"}}),_M=t=>({"@context":"https://schema.org","@type":"WebSite","@id":`${t}/#website`,name:Cn,alternateName:Gi.alternateName,url:t,description:Gi.description,publisher:{"@id":`${t}/#organization`},inLanguage:"en-IN",potentialAction:{"@type":"SearchAction",target:{"@type":"EntryPoint",urlTemplate:`${t}/?q={search_term_string}`},"query-input":"required name=search_term_string"}}),TM=(t,e)=>({"@context":"https://schema.org","@type":"BreadcrumbList",itemListElement:e.map((n,s)=>({"@type":"ListItem",position:s+1,name:n.name,item:`${t}${n.path.startsWith("/")?n.path:`/${n.path}`}`}))}),EM=(t,e,n,s,a,l)=>{const u={"@context":"https://schema.org","@type":a,"@id":`${t}${s}#webpage`,url:`${t}${s.startsWith("/")?s:`/${s}`}`,name:e,description:n,isPartOf:{"@id":`${t}/#website`},publisher:{"@id":`${t}/#organization`}};return l!=null&&l.datePublished&&(u.datePublished=l.datePublished),l!=null&&l.dateModified&&(u.dateModified=l.dateModified),u},Ln=({title:t,description:e,path:n="/",image:s=SS,noIndex:a=!1,keywords:l=bM,breadcrumbs:u=[{name:"Home",path:"/"}],pageType:d="WebPage",structuredData:m=[],videoUrl:g,embedUrl:x,datePublished:v,dateModified:T})=>{const E=n.startsWith("/")?n:`/${n}`,C=`${qi}${E}`,L=s.startsWith("http")?s:`${qi}${s.startsWith("/")?s:`/${s}`}`,R=t===Cn?`${Cn} - India's Premier Esports Platform`:`${t} | ${Cn}`,{width:V,height:G}=vM,z=qi.replace(/^https:\/\/www\./,"https://"),ne=g?(g.startsWith("http")?g:`${z}${g.startsWith("/")?g:`/${g}`}`).replace(/^https:\/\/www\./,"https://"):"",re=v??"2024-01-01",le=/^\d{4}-\d{2}-\d{2}T/.test(re)?re:`${re}T00:00:00+05:30`,D=g?{"@context":"https://schema.org","@type":"VideoObject",name:`${Cn} - Experience the next evolution of competitive gaming`,description:`${Cn} - India's premier esports platform. 50Mn+ reach, 2000+ clients, 30+ events.`,thumbnailUrl:L.replace(/^https:\/\/www\./,"https://"),uploadDate:le,contentUrl:ne,...x&&{embedUrl:x.replace(/^https:\/\/www\./,"https://")},publisher:{"@type":"Organization",name:Cn,logo:{"@type":"ImageObject",url:`${z}${AS}`}}}:null,A=[wM(qi),...n==="/"?[_M(qi)]:[],EM(qi,R,e,E,d,{datePublished:v,dateModified:T}),...u.length>0?[TM(qi,u)]:[],...D?[D]:[],...m];return c.jsxs(tI,{children:[c.jsx("title",{children:R}),c.jsx("meta",{name:"title",content:R}),c.jsx("meta",{name:"description",content:e}),c.jsx("meta",{name:"keywords",content:l}),c.jsx("link",{rel:"canonical",href:C}),a?c.jsx("meta",{name:"robots",content:"noindex, nofollow"}):c.jsxs(c.Fragment,{children:[c.jsx("meta",{name:"robots",content:"index, follow, max-image-preview:large, max-snippet:-1, max-video-preview:-1"}),c.jsx("meta",{name:"googlebot",content:"index, follow"}),c.jsx("meta",{name:"bingbot",content:"index, follow"})]}),c.jsx("meta",{name:"geo.region",content:"IN"}),c.jsx("meta",{name:"geo.placename",content:"India"}),c.jsx("meta",{name:"geo.position",content:"28.6139;77.2090"}),c.jsx("meta",{name:"ICBM",content:"28.6139, 77.2090"}),c.jsx("meta",{property:"og:type",content:"website"}),c.jsx("meta",{property:"og:url",content:C}),c.jsx("meta",{property:"og:title",content:R}),c.jsx("meta",{property:"og:description",content:e}),c.jsx("meta",{property:"og:image",content:L}),c.jsx("meta",{property:"og:image:secure_url",content:L}),c.jsx("meta",{property:"og:image:width",content:String(V)}),c.jsx("meta",{property:"og:image:height",content:String(G)}),c.jsx("meta",{property:"og:image:alt",content:`${Cn} - ${t}`}),c.jsx("meta",{property:"og:site_name",content:Cn}),c.jsx("meta",{property:"og:locale",content:"en_IN"}),c.jsx("meta",{property:"og:locale:alternate",content:"en_US"}),c.jsx("meta",{property:"og:locale:alternate",content:"en_GB"}),g&&c.jsx("meta",{property:"og:video",content:ne}),c.jsx("meta",{name:"twitter:card",content:"summary_large_image"}),c.jsx("meta",{name:"twitter:site",content:"@letsgamenow"}),c.jsx("meta",{name:"twitter:creator",content:"@letsgamenow"}),c.jsx("meta",{name:"twitter:url",content:C}),c.jsx("meta",{name:"twitter:title",content:R}),c.jsx("meta",{name:"twitter:description",content:e}),c.jsx("meta",{name:"twitter:image",content:L}),c.jsx("meta",{name:"twitter:image:alt",content:`${Cn} - ${t}`}),c.jsx("meta",{name:"twitter:label1",content:"Platform"}),c.jsx("meta",{name:"twitter:data1",content:Cn}),c.jsx("meta",{name:"mobile-web-app-capable",content:"yes"}),c.jsx("meta",{name:"application-name",content:Cn}),c.jsx("meta",{name:"apple-mobile-web-app-title",content:Cn}),c.jsx("meta",{name:"apple-mobile-web-app-capable",content:"yes"}),c.jsx("meta",{name:"format-detection",content:"telephone=no"}),A.map((I,P)=>c.jsx("script",{type:"application/ld+json",children:JSON.stringify(I)},P))]})},vx=j.createContext({});function bx(t){const e=j.useRef(null);return e.current===null&&(e.current=t()),e.current}const NS=typeof window<"u",jS=NS?j.useLayoutEffect:j.useEffect,Df=j.createContext(null);function wx(t,e){t.indexOf(e)===-1&&t.push(e)}function _x(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const Ji=(t,e,n)=>n>e?e:n<t?t:n;let Tx=()=>{};const Vs={},RS=t=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t);function CS(t){return typeof t=="object"&&t!==null}const IS=t=>/^0[^.\s]+$/u.test(t);function Ex(t){let e;return()=>(e===void 0&&(e=t()),e)}const ci=t=>t,SM=(t,e)=>n=>e(t(n)),Ou=(...t)=>t.reduce(SM),mu=(t,e,n)=>{const s=e-t;return s===0?1:(n-t)/s};class Sx{constructor(){this.subscriptions=[]}add(e){return wx(this.subscriptions,e),()=>_x(this.subscriptions,e)}notify(e,n,s){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](e,n,s);else for(let l=0;l<a;l++){const u=this.subscriptions[l];u&&u(e,n,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const Ls=t=>t*1e3,li=t=>t/1e3;function DS(t,e){return e?t*(1e3/e):0}const kS=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t,AM=1e-7,NM=12;function jM(t,e,n,s,a){let l,u,d=0;do u=e+(n-e)/2,l=kS(u,s,a)-t,l>0?n=u:e=u;
vendor: 26,943 bytes, line 325
325while(Math.abs(l)>AM&&++d<NM);return u}function Pu(t,e,n,s){if(t===e&&n===s)return ci;const a=l=>jM(l,0,1,t,n);return l=>l===0||l===1?l:kS(a(l),e,s)}const MS=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,LS=t=>e=>1-t(1-e),OS=Pu(.33,1.53,.69,.99),Ax=LS(OS),PS=MS(Ax),VS=t=>(t*=2)<1?.5*Ax(t):.5*(2-Math.pow(2,-10*(t-1))),Nx=t=>1-Math.sin(Math.acos(t)),US=LS(Nx),BS=MS(Nx),RM=Pu(.42,0,1,1),CM=Pu(0,0,.58,1),zS=Pu(.42,0,.58,1),IM=t=>Array.isArray(t)&&typeof t[0]!="number",FS=t=>Array.isArray(t)&&typeof t[0]=="number",DM={linear:ci,easeIn:RM,easeInOut:zS,easeOut:CM,circIn:Nx,circInOut:BS,circOut:US,backIn:Ax,backInOut:PS,backOut:OS,anticipate:VS},kM=t=>typeof t=="string",G_=t=>{if(FS(t)){Tx(t.length===4);const[e,n,s,a]=t;return Pu(e,n,s,a)}else if(kM(t))return DM[t];return t},Nd=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function MM(t,e){let n=new Set,s=new Set,a=!1,l=!1;const u=new WeakSet;let d={delta:0,timestamp:0,isProcessing:!1};function m(x){u.has(x)&&(g.schedule(x),t()),x(d)}const g={schedule:(x,v=!1,T=!1)=>{const C=T&&a?n:s;return v&&u.add(x),C.has(x)||C.add(x),x},cancel:x=>{s.delete(x),u.delete(x)},process:x=>{if(d=x,a){l=!0;return}a=!0,[n,s]=[s,n],n.forEach(m),n.clear(),a=!1,l&&(l=!1,g.process(x))}};return g}const LM=40;function GS(t,e){let n=!1,s=!0;const a={delta:0,timestamp:0,isProcessing:!1},l=()=>n=!0,u=Nd.reduce((z,ne)=>(z[ne]=MM(l),z),{}),{setup:d,read:m,resolveKeyframes:g,preUpdate:x,update:v,preRender:T,render:E,postRender:C}=u,L=()=>{const z=Vs.useManualTiming?a.timestamp:performance.now();n=!1,Vs.useManualTiming||(a.delta=s?1e3/60:Math.max(Math.min(z-a.timestamp,LM),1)),a.timestamp=z,a.isProcessing=!0,d.process(a),m.process(a),g.process(a),x.process(a),v.process(a),T.process(a),E.process(a),C.process(a),a.isProcessing=!1,n&&e&&(s=!1,t(L))},R=()=>{n=!0,s=!0,a.isProcessing||t(L)};return{schedule:Nd.reduce((z,ne)=>{const re=u[ne];return z[ne]=(le,D=!1,A=!1)=>(n||R(),re.schedule(le,D,A)),z},{}),cancel:z=>{for(let ne=0;ne<Nd.length;ne++)u[Nd[ne]].cancel(z)},state:a,steps:u}}const{schedule:ct,cancel:Qr,state:en,steps:Rg}=GS(typeof requestAnimationFrame<"u"?requestAnimationFrame:ci,!0);let zd;function OM(){zd=void 0}const wn={now:()=>(zd===void 0&&wn.set(en.isProcessing||Vs.useManualTiming?en.timestamp:performance.now()),zd),set:t=>{zd=t,queueMicrotask(OM)}},qS=t=>e=>typeof e=="string"&&e.startsWith(t),HS=qS("--"),PM=qS("var(--"),jx=t=>PM(t)?VM.test(t.split("/*")[0].trim()):!1,VM=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function q_(t){return typeof t!="string"?!1:t.split("/*")[0].includes("var(--")}const Rl={test:t=>typeof t=="number",parse:parseFloat,transform:t=>t},pu={...Rl,transform:t=>Ji(0,1,t)},jd={...Rl,default:1},su=t=>Math.round(t*1e5)/1e5,Rx=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function UM(t){return t==null}const BM=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Cx=(t,e)=>n=>!!(typeof n=="string"&&BM.test(n)&&n.startsWith(t)||e&&!UM(n)&&Object.prototype.hasOwnProperty.call(n,e)),$S=(t,e,n)=>s=>{if(typeof s!="string")return s;const[a,l,u,d]=s.match(Rx);return{[t]:parseFloat(a),[e]:parseFloat(l),[n]:parseFloat(u),alpha:d!==void 0?parseFloat(d):1}},zM=t=>Ji(0,255,t),Cg={...Rl,transform:t=>Math.round(zM(t))},Ba={test:Cx("rgb","red"),parse:$S("red","green","blue"),transform:({red:t,green:e,blue:n,alpha:s=1})=>"rgba("+Cg.transform(t)+", "+Cg.transform(e)+", "+Cg.transform(n)+", "+su(pu.transform(s))+")"};function FM(t){let e="",n="",s="",a="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),s=t.substring(5,7),a=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),s=t.substring(3,4),a=t.substring(4,5),e+=e,n+=n,s+=s,a+=a),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(s,16),alpha:a?parseInt(a,16)/255:1}}const my={test:Cx("#"),parse:FM,transform:Ba.transform},Vu=t=>({test:e=>typeof e=="string"&&e.endsWith(t)&&e.split(" ").length===1,parse:parseFloat,transform:e=>`${e}${t}`}),Pr=Vu("deg"),$i=Vu("%"),me=Vu("px"),GM=Vu("vh"),qM=Vu("vw"),H_={...$i,parse:t=>$i.parse(t)/100,transform:t=>$i.transform(t*100)},el={test:Cx("hsl","hue"),parse:$S("hue","saturation","lightness"),transform:({hue:t,saturation:e,lightness:n,alpha:s=1})=>"hsla("+Math.round(t)+", "+$i.transform(su(e))+", "+$i.transform(su(n))+", "+su(pu.transform(s))+")"},It={test:t=>Ba.test(t)||my.test(t)||el.test(t),parse:t=>Ba.test(t)?Ba.parse(t):el.test(t)?el.parse(t):my.parse(t),transform:t=>typeof t=="string"?t:t.hasOwnProperty("red")?Ba.transform(t):el.transform(t),getAnimatableNone:t=>{const e=It.parse(t);return e.alpha=0,It.transform(e)}},HM=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function $M(t){var e,n;return isNaN(t)&&typeof t=="string"&&(((e=t.match(Rx))==null?void 0:e.length)||0)+(((n=t.match(HM))==null?void 0:n.length)||0)>0}const KS="number",YS="color",KM="var",YM="var(",$_="${}",WM=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function gu(t){const e=t.toString(),n=[],s={color:[],number:[],var:[]},a=[];let l=0;const d=e.replace(WM,m=>(It.test(m)?(s.color.push(l),a.push(YS),n.push(It.parse(m))):m.startsWith(YM)?(s.var.push(l),a.push(KM),n.push(m)):(s.number.push(l),a.push(KS),n.push(parseFloat(m))),++l,$_)).split($_);return{values:n,split:d,indexes:s,types:a}}function WS(t){return gu(t).values}function QS(t){const{split:e,types:n}=gu(t),s=e.length;return a=>{let l="";for(let u=0;u<s;u++)if(l+=e[u],a[u]!==void 0){const d=n[u];d===KS?l+=su(a[u]):d===YS?l+=It.transform(a[u]):l+=a[u]}return l}}const QM=t=>typeof t=="number"?0:It.test(t)?It.getAnimatableNone(t):t;function XM(t){const e=WS(t);return QS(t)(e.map(QM))}const Xr={test:$M,parse:WS,createTransformer:QS,getAnimatableNone:XM};function Ig(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+(e-t)*6*n:n<1/2?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function JM({hue:t,saturation:e,lightness:n,alpha:s}){t/=360,e/=100,n/=100;let a=0,l=0,u=0;if(!e)a=l=u=n;else{const d=n<.5?n*(1+e):n+e-n*e,m=2*n-d;a=Ig(m,d,t+1/3),l=Ig(m,d,t),u=Ig(m,d,t-1/3)}return{red:Math.round(a*255),green:Math.round(l*255),blue:Math.round(u*255),alpha:s}}function af(t,e){return n=>n>0?e:t}const mt=(t,e,n)=>t+(e-t)*n,Dg=(t,e,n)=>{const s=t*t,a=n*(e*e-s)+s;return a<0?0:Math.sqrt(a)},ZM=[my,Ba,el],eL=t=>ZM.find(e=>e.test(t));function K_(t){const e=eL(t);if(!e)return!1;let n=e.parse(t);return e===el&&(n=JM(n)),n}const Y_=(t,e)=>{const n=K_(t),s=K_(e);if(!n||!s)return af(t,e);const a={...n};return l=>(a.red=Dg(n.red,s.red,l),a.green=Dg(n.green,s.green,l),a.blue=Dg(n.blue,s.blue,l),a.alpha=mt(n.alpha,s.alpha,l),Ba.transform(a))},py=new Set(["none","hidden"]);function tL(t,e){return py.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}function nL(t,e){return n=>mt(t,e,n)}function Ix(t){return typeof t=="number"?nL:typeof t=="string"?jx(t)?af:It.test(t)?Y_:rL:Array.isArray(t)?XS:typeof t=="object"?It.test(t)?Y_:iL:af}function XS(t,e){const n=[...t],s=n.length,a=t.map((l,u)=>Ix(l)(l,e[u]));return l=>{for(let u=0;u<s;u++)n[u]=a[u](l);return n}}function iL(t,e){const n={...t,...e},s={};for(const a in n)t[a]!==void 0&&e[a]!==void 0&&(s[a]=Ix(t[a])(t[a],e[a]));return a=>{for(const l in s)n[l]=s[l](a);return n}}function sL(t,e){const n=[],s={color:0,var:0,number:0};for(let a=0;a<e.values.length;a++){const l=e.types[a],u=t.indexes[l][s[l]],d=t.values[u]??0;n[a]=d,s[l]++}return n}const rL=(t,e)=>{const n=Xr.createTransformer(e),s=gu(t),a=gu(e);return s.indexes.var.length===a.indexes.var.length&&s.indexes.color.length===a.indexes.color.length&&s.indexes.number.length>=a.indexes.number.length?py.has(t)&&!a.values.length||py.has(e)&&!s.values.length?tL(t,e):Ou(XS(sL(s,a),a.values),n):af(t,e)};function JS(t,e,n){return typeof t=="number"&&typeof e=="number"&&typeof n=="number"?mt(t,e,n):Ix(t)(t,e)}const aL=t=>{const e=({timestamp:n})=>t(n);return{start:(n=!0)=>ct.update(e,n),stop:()=>Qr(e),now:()=>en.isProcessing?en.timestamp:wn.now()}},ZS=(t,e,n=10)=>{let s="";const a=Math.max(Math.round(e/n),2);for(let l=0;l<a;l++)s+=Math.round(t(l/(a-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},of=2e4;function Dx(t){let e=0;const n=50;let s=t.next(e);for(;!s.done&&e<of;)e+=n,s=t.next(e);return e>=of?1/0:e}function oL(t,e=100,n){const s=n({...t,keyframes:[0,e]}),a=Math.min(Dx(s),of);return{type:"keyframes",ease:l=>s.next(a*l).value/e,duration:li(a)}}const lL=5;function eA(t,e,n){const s=Math.max(e-lL,0);return DS(n-t(s),e-s)}const bt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},kg=.001;function cL({duration:t=bt.duration,bounce:e=bt.bounce,velocity:n=bt.velocity,mass:s=bt.mass}){let a,l,u=1-e;u=Ji(bt.minDamping,bt.maxDamping,u),t=Ji(bt.minDuration,bt.maxDuration,li(t)),u<1?(a=g=>{const x=g*u,v=x*t,T=x-n,E=gy(g,u),C=Math.exp(-v);return kg-T/E*C},l=g=>{const v=g*u*t,T=v*n+n,E=Math.pow(u,2)*Math.pow(g,2)*t,C=Math.exp(-v),L=gy(Math.pow(g,2),u);return(-a(g)+kg>0?-1:1)*((T-E)*C)/L}):(a=g=>{const x=Math.exp(-g*t),v=(g-n)*t+1;return-kg+x*v},l=g=>{const x=Math.exp(-g*t),v=(n-g)*(t*t);return x*v});const d=5/t,m=hL(a,l,d);if(t=Ls(t),isNaN(m))return{stiffness:bt.stiffness,damping:bt.damping,duration:t};{const g=Math.pow(m,2)*s;return{stiffness:g,damping:u*2*Math.sqrt(s*g),duration:t}}}const uL=12;function hL(t,e,n){let s=n;for(let a=1;a<uL;a++)s=s-t(s)/e(s);return s}function gy(t,e){return t*Math.sqrt(1-e*e)}const dL=["duration","bounce"],fL=["stiffness","damping","mass"];function W_(t,e){return e.some(n=>t[n]!==void 0)}function mL(t){let e={velocity:bt.velocity,stiffness:bt.stiffness,damping:bt.damping,mass:bt.mass,isResolvedFromDuration:!1,...t};if(!W_(t,fL)&&W_(t,dL))if(t.visualDuration){const n=t.visualDuration,s=2*Math.PI/(n*1.2),a=s*s,l=2*Ji(.05,1,1-(t.bounce||0))*Math.sqrt(a);e={...e,mass:bt.mass,stiffness:a,damping:l}}else{const n=cL(t);e={...e,...n,mass:bt.mass},e.isResolvedFromDuration=!0}return e}function lf(t=bt.visualDuration,e=bt.bounce){const n=typeof t!="object"?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:s,restDelta:a}=n;const l=n.keyframes[0],u=n.keyframes[n.keyframes.length-1],d={done:!1,value:l},{stiffness:m,damping:g,mass:x,duration:v,velocity:T,isResolvedFromDuration:E}=mL({...n,velocity:-li(n.velocity||0)}),C=T||0,L=g/(2*Math.sqrt(m*x)),R=u-l,V=li(Math.sqrt(m/x)),G=Math.abs(R)<5;s||(s=G?bt.restSpeed.granular:bt.restSpeed.default),a||(a=G?bt.restDelta.granular:bt.restDelta.default);let z;if(L<1){const re=gy(V,L);z=le=>{const D=Math.exp(-L*V*le);return u-D*((C+L*V*R)/re*Math.sin(re*le)+R*Math.cos(re*le))}}else if(L===1)z=re=>u-Math.exp(-V*re)*(R+(C+V*R)*re);else{const re=V*Math.sqrt(L*L-1);z=le=>{const D=Math.exp(-L*V*le),A=Math.min(re*le,300);return u-D*((C+L*V*R)*Math.sinh(A)+re*R*Math.cosh(A))/re}}const ne={calculatedDuration:E&&v||null,next:re=>{const le=z(re);if(E)d.done=re>=v;else{let D=re===0?C:0;L<1&&(D=re===0?Ls(C):eA(z,re,le));const A=Math.abs(D)<=s,I=Math.abs(u-le)<=a;d.done=A&&I}return d.value=d.done?u:le,d},toString:()=>{const re=Math.min(Dx(ne),of),le=ZS(D=>ne.next(re*D).value,re,30);return re+"ms "+le},toTransition:()=>{}};return ne}lf.applyToOptions=t=>{const e=oL(t,100,lf);return t.ease=e.ease,t.duration=Ls(e.duration),t.type="keyframes",t};function yy({keyframes:t,velocity:e=0,power:n=.8,timeConstant:s=325,bounceDamping:a=10,bounceStiffness:l=500,modifyTarget:u,min:d,max:m,restDelta:g=.5,restSpeed:x}){const v=t[0],T={done:!1,value:v},E=A=>d!==void 0&&A<d||m!==void 0&&A>m,C=A=>d===void 0?m:m===void 0||Math.abs(d-A)<Math.abs(m-A)?d:m;let L=n*e;const R=v+L,V=u===void 0?R:u(R);V!==R&&(L=V-v);const G=A=>-L*Math.exp(-A/s),z=A=>V+G(A),ne=A=>{const I=G(A),P=z(A);T.done=Math.abs(I)<=g,T.value=T.done?V:P};let re,le;const D=A=>{E(T.value)&&(re=A,le=lf({keyframes:[T.value,C(T.value)],velocity:eA(z,A,T.value),damping:a,stiffness:l,restDelta:g,restSpeed:x}))};return D(0),{calculatedDuration:null,next:A=>{let I=!1;return!le&&re===void 0&&(I=!0,ne(A),D(A)),re!==void 0&&A>=re?le.next(A-re):(!I&&ne(A),T)}}}function pL(t,e,n){const s=[],a=n||Vs.mix||JS,l=t.length-1;for(let u=0;u<l;u++){let d=a(t[u],t[u+1]);if(e){const m=Array.isArray(e)?e[u]||ci:e;d=Ou(m,d)}s.push(d)}return s}function gL(t,e,{clamp:n=!0,ease:s,mixer:a}={}){const l=t.length;if(Tx(l===e.length),l===1)return()=>e[0];if(l===2&&e[0]===e[1])return()=>e[1];const u=t[0]===t[1];t[0]>t[l-1]&&(t=[...t].reverse(),e=[...e].reverse());const d=pL(e,s,a),m=d.length,g=x=>{if(u&&x<t[0])return e[0];let v=0;if(m>1)for(;v<t.length-2&&!(x<t[v+1]);v++);const T=mu(t[v],t[v+1],x);return d[v](T)};return n?x=>g(Ji(t[0],t[l-1],x)):g}function yL(t,e){const n=t[t.length-1];for(let s=1;s<=e;s++){const a=mu(0,e,s);t.push(mt(n,1,a))}}function xL(t){const e=[0];return yL(e,t.length-1),e}function vL(t,e){return t.map(n=>n*e)}function bL(t,e){return t.map(()=>e||zS).splice(0,t.length-1)}function ru({duration:t=300,keyframes:e,times:n,ease:s="easeInOut"}){const a=IM(s)?s.map(G_):G_(s),l={done:!1,value:e[0]},u=vL(n&&n.length===e.length?n:xL(e),t),d=gL(u,e,{ease:Array.isArray(a)?a:bL(e,a)});return{calculatedDuration:t,next:m=>(l.value=d(m),l.done=m>=t,l)}}const wL=t=>t!==null;function kx(t,{repeat:e,repeatType:n="loop"},s,a=1){const l=t.filter(wL),d=a<0||e&&n!=="loop"&&e%2===1?0:l.length-1;return!d||s===void 0?l[d]:s}const _L={decay:yy,inertia:yy,tween:ru,keyframes:ru,spring:lf};function tA(t){typeof t.type=="string"&&(t.type=_L[t.type])}class Mx{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,n){return this.finished.then(e,n)}}const TL=t=>t/100;class Lx extends Mx{constructor(e){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var s,a;const{motionValue:n}=this.options;n&&n.updatedAt!==wn.now()&&this.tick(wn.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(a=(s=this.options).onStop)==null||a.call(s))},this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){const{options:e}=this;tA(e);const{type:n=ru,repeat:s=0,repeatDelay:a=0,repeatType:l,velocity:u=0}=e;let{keyframes:d}=e;const m=n||ru;m!==ru&&typeof d[0]!="number"&&(this.mixKeyframes=Ou(TL,JS(d[0],d[1])),d=[0,100]);const g=m({...e,keyframes:d});l==="mirror"&&(this.mirroredGenerator=m({...e,keyframes:[...d].reverse(),velocity:-u})),g.calculatedDuration===null&&(g.calculatedDuration=Dx(g));const{calculatedDuration:x}=g;this.calculatedDuration=x,this.resolvedDuration=x+a,this.totalDuration=this.resolvedDuration*(s+1)-a,this.generator=g}updateTime(e){const n=Math.round(e-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(e,n=!1){const{generator:s,totalDuration:a,mixKeyframes:l,mirroredGenerator:u,resolvedDuration:d,calculatedDuration:m}=this;if(this.startTime===null)return s.next(0);const{delay:g=0,keyframes:x,repeat:v,repeatType:T,repeatDelay:E,type:C,onUpdate:L,finalKeyframe:R}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-a/this.speed,this.startTime)),n?this.currentTime=e:this.updateTime(e);const V=this.currentTime-g*(this.playbackSpeed>=0?1:-1),G=this.playbackSpeed>=0?V<0:V>a;this.currentTime=Math.max(V,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let z=this.currentTime,ne=s;if(v){const A=Math.min(this.currentTime,a)/d;let I=Math.floor(A),P=A%1;!P&&A>=1&&(P=1),P===1&&I--,I=Math.min(I,v+1),!!(I%2)&&(T==="reverse"?(P=1-P,E&&(P-=E/d)):T==="mirror"&&(ne=u)),z=Ji(0,1,P)*d}const re=G?{done:!1,value:x[0]}:ne.next(z);l&&(re.value=l(re.value));let{done:le}=re;!G&&m!==null&&(le=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const D=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&le);return D&&C!==yy&&(re.value=kx(x,this.options,R,this.speed)),L&&L(re.value),D&&this.finish(),re}then(e,n){return this.finished.then(e,n)}get duration(){return li(this.calculatedDuration)}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+li(e)}get time(){return li(this.currentTime)}set time(e){var n;e=Ls(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(wn.now());const n=this.playbackSpeed!==e;this.playbackSpeed=e,n&&(this.time=li(this.currentTime))}play(){var a,l;if(this.isStopped)return;const{driver:e=aL,startTime:n}=this.options;this.driver||(this.driver=e(u=>this.tick(u))),(l=(a=this.options).onPlay)==null||l.call(a);const s=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=s):this.holdTime!==null?this.startTime=s-this.holdTime:this.startTime||(this.startTime=n??s),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(wn.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var e,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(e=this.options).onComplete)==null||n.call(e)}cancel(){var e,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(e=this.options).onCancel)==null||n.call(e)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),e.observe(this)}}function EL(t){for(let e=1;e<t.length;e++)t[e]??(t[e]=t[e-1])}const za=t=>t*180/Math.PI,xy=t=>{const e=za(Math.atan2(t[1],t[0]));return vy(e)},SL={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:t=>(Math.abs(t[0])+Math.abs(t[3]))/2,rotate:xy,rotateZ:xy,skewX:t=>za(Math.atan(t[1])),skewY:t=>za(Math.atan(t[2])),skew:t=>(Math.abs(t[1])+Math.abs(t[2]))/2},vy=t=>(t=t%360,t<0&&(t+=360),t),Q_=xy,X_=t=>Math.sqrt(t[0]*t[0]+t[1]*t[1]),J_=t=>Math.sqrt(t[4]*t[4]+t[5]*t[5]),AL={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:X_,scaleY:J_,scale:t=>(X_(t)+J_(t))/2,rotateX:t=>vy(za(Math.atan2(t[6],t[5]))),rotateY:t=>vy(za(Math.atan2(-t[2],t[0]))),rotateZ:Q_,rotate:Q_,skewX:t=>za(Math.atan(t[4])),skewY:t=>za(Math.atan(t[1])),skew:t=>(Math.abs(t[1])+Math.abs(t[4]))/2};function by(t){return t.includes("scale")?1:0}function wy(t,e){if(!t||t==="none")return by(e);const n=t.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,a;if(n)s=AL,a=n;else{const d=t.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=SL,a=d}if(!a)return by(e);const l=s[e],u=a[1].split(",").map(jL);return typeof l=="function"?l(u):u[l]}const NL=(t,e)=>{const{transform:n="none"}=getComputedStyle(t);return wy(n,e)};function jL(t){return parseFloat(t.trim())}const Cl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],Il=new Set(Cl),Z_=t=>t===Rl||t===me,RL=new Set(["x","y","z"]),CL=Cl.filter(t=>!RL.has(t));function IL(t){const e=[];return CL.forEach(n=>{const s=t.getValue(n);s!==void 0&&(e.push([n,s.get()]),s.set(n.startsWith("scale")?1:0))}),e}const Fr={width:({x:t},{paddingLeft:e="0",paddingRight:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),height:({y:t},{paddingTop:e="0",paddingBottom:n="0"})=>t.max-t.min-parseFloat(e)-parseFloat(n),top:(t,{top:e})=>parseFloat(e),left:(t,{left:e})=>parseFloat(e),bottom:({y:t},{top:e})=>parseFloat(e)+(t.max-t.min),right:({x:t},{left:e})=>parseFloat(e)+(t.max-t.min),x:(t,{transform:e})=>wy(e,"x"),y:(t,{transform:e})=>wy(e,"y")};Fr.translateX=Fr.x;Fr.translateY=Fr.y;const qa=new Set;let _y=!1,Ty=!1,Ey=!1;function nA(){if(Ty){const t=Array.from(qa).filter(s=>s.needsMeasurement),e=new Set(t.map(s=>s.element)),n=new Map;e.forEach(s=>{const a=IL(s);a.length&&(n.set(s,a),s.render())}),t.forEach(s=>s.measureInitialState()),e.forEach(s=>{s.render();const a=n.get(s);a&&a.forEach(([l,u])=>{var d;(d=s.getValue(l))==null||d.set(u)})}),t.forEach(s=>s.measureEndState()),t.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}Ty=!1,_y=!1,qa.forEach(t=>t.complete(Ey)),qa.clear()}function iA(){qa.forEach(t=>{t.readKeyframes(),t.needsMeasurement&&(Ty=!0)})}function DL(){Ey=!0,iA(),nA(),Ey=!1}class Ox{constructor(e,n,s,a,l,u=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=n,this.name=s,this.motionValue=a,this.element=l,this.isAsync=u}scheduleResolve(){this.state="scheduled",this.isAsync?(qa.add(this),_y||(_y=!0,ct.read(iA),ct.resolveKeyframes(nA))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:n,element:s,motionValue:a}=this;if(e[0]===null){const l=a==null?void 0:a.get(),u=e[e.length-1];if(l!==void 0)e[0]=l;else if(s&&n){const d=s.readValue(n,u);d!=null&&(e[0]=d)}e[0]===void 0&&(e[0]=u),a&&l===void 0&&a.set(e[0])}EL(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),qa.delete(this)}cancel(){this.state==="scheduled"&&(qa.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const kL=t=>t.startsWith("--");function ML(t,e,n){kL(e)?t.style.setProperty(e,n):t.style[e]=n}const LL=Ex(()=>window.ScrollTimeline!==void 0),OL={};function PL(t,e){const n=Ex(t);return()=>OL[e]??n()}const sA=PL(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Qc=([t,e,n,s])=>`cubic-bezier(${t}, ${e}, ${n}, ${s})`,e1={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Qc([0,.65,.55,1]),circOut:Qc([.55,0,1,.45]),backIn:Qc([.31,.01,.66,-.59]),backOut:Qc([.33,1.53,.69,.99])};function rA(t,e){if(t)return typeof t=="function"?sA()?ZS(t,e):"ease-out":FS(t)?Qc(t):Array.isArray(t)?t.map(n=>rA(n,e)||e1.easeOut):e1[t]}function VL(t,e,n,{delay:s=0,duration:a=300,repeat:l=0,repeatType:u="loop",ease:d="easeOut",times:m}={},g=void 0){const x={[e]:n};m&&(x.offset=m);const v=rA(d,a);Array.isArray(v)&&(x.easing=v);const T={delay:s,duration:a,easing:Array.isArray(v)?"linear":v,fill:"both",iterations:l+1,direction:u==="reverse"?"alternate":"normal"};return g&&(T.pseudoElement=g),t.animate(x,T)}function aA(t){return typeof t=="function"&&"applyToOptions"in t}function UL({type:t,...e}){return aA(t)&&sA()?t.applyToOptions(e):(e.duration??(e.duration=300),e.ease??(e.ease="easeOut"),e)}class BL extends Mx{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;const{element:n,name:s,keyframes:a,pseudoElement:l,allowFlatten:u=!1,finalKeyframe:d,onComplete:m}=e;this.isPseudoElement=!!l,this.allowFlatten=u,this.options=e,Tx(typeof e.type!="string");const g=UL(e);this.animation=VL(n,s,a,g,l),g.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!l){const x=kx(a,this.options,d,this.speed);this.updateMotionValue?this.updateMotionValue(x):ML(n,s,x),this.animation.cancel()}m==null||m(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var e,n;(n=(e=this.animation).finish)==null||n.call(e)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:e}=this;e==="idle"||e==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,n;this.isPseudoElement||(n=(e=this.animation).commitStyles)==null||n.call(e)}get duration(){var n,s;const e=((s=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:s.call(n).duration)||0;return li(Number(e))}get iterationDuration(){const{delay:e=0}=this.options||{};return this.duration+li(e)}get time(){return li(Number(this.animation.currentTime)||0)}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=Ls(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,observe:n}){var s;return this.allowFlatten&&((s=this.animation.effect)==null||s.updateTiming({easing:"linear"})),this.animation.onfinish=null,e&&LL()?(this.animation.timeline=e,ci):n(this)}}const oA={anticipate:VS,backInOut:PS,circInOut:BS};function zL(t){return t in oA}function FL(t){typeof t.ease=="string"&&zL(t.ease)&&(t.ease=oA[t.ease])}const Mg=10;class GL extends BL{constructor(e){FL(e),tA(e),super(e),e.startTime!==void 0&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){const{motionValue:n,onUpdate:s,onComplete:a,element:l,...u}=this.options;if(!n)return;if(e!==void 0){n.set(e);return}const d=new Lx({...u,autoplay:!1}),m=Math.max(Mg,wn.now()-this.startTime),g=Ji(0,Mg,m-Mg);n.setWithVelocity(d.sample(Math.max(0,m-g)).value,d.sample(m).value,g),d.stop()}}const t1=(t,e)=>e==="zIndex"?!1:!!(typeof t=="number"||Array.isArray(t)||typeof t=="string"&&(Xr.test(t)||t==="0")&&!t.startsWith("url("));function qL(t){const e=t[0];if(t.length===1)return!0;for(let n=0;n<t.length;n++)if(t[n]!==e)return!0}function HL(t,e,n,s){const a=t[0];if(a===null)return!1;if(e==="display"||e==="visibility")return!0;const l=t[t.length-1],u=t1(a,e),d=t1(l,e);return!u||!d?!1:qL(t)||(n==="spring"||aA(n))&&s}function Sy(t){t.duration=0,t.type="keyframes"}const $L=new Set(["opacity","clipPath","filter","transform"]),KL=Ex(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function YL(t){var x;const{motionValue:e,name:n,repeatDelay:s,repeatType:a,damping:l,type:u}=t;if(!(((x=e==null?void 0:e.owner)==null?void 0:x.current)instanceof HTMLElement))return!1;const{onUpdate:m,transformTemplate:g}=e.owner.getProps();return KL()&&n&&$L.has(n)&&(n!=="transform"||!g)&&!m&&!s&&a!=="mirror"&&l!==0&&u!=="inertia"}const WL=40;class QL extends Mx{constructor({autoplay:e=!0,delay:n=0,type:s="
325keyframes",repeat:a=0,repeatDelay:l=0,repeatType:u="loop",keyframes:d,name:m,motionValue:g,element:x,...v}){var C;super(),this.stop=()=>{var L,R;this._animation&&(this._animation.stop(),(L=this.stopTimeline)==null||L.call(this)),(R=this.keyframeResolver)==null||R.cancel()},this.createdAt=wn.now();const T={autoplay:e,delay:n,type:s,repeat:a,repeatDelay:l,repeatType:u,name:m,motionValue:g,element:x,...v},E=(x==null?void 0:x.KeyframeResolver)||Ox;this.keyframeResolver=new E(d,(L,R,V)=>this.onKeyframesResolved(L,R,T,!V),m,g,x),(C=this.keyframeResolver)==null||C.scheduleResolve()}onKeyframesResolved(e,n,s,a){this.keyframeResolver=void 0;const{name:l,type:u,velocity:d,delay:m,isHandoff:g,onUpdate:x}=s;this.resolvedAt=wn.now(),HL(e,l,u,d)||((Vs.instantAnimations||!m)&&(x==null||x(kx(e,s,n))),e[0]=e[e.length-1],Sy(s),s.repeat=0);const T={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>WL?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...s,keyframes:e},E=!g&&YL(T)?new GL({...T,element:T.motionValue.owner.current}):new Lx(T);E.finished.then(()=>this.notifyFinished()).catch(ci),this.pendingTimeline&&(this.stopTimeline=E.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=E}get finished(){return this._animation?this.animation.finished:this._finished}then(e,n){return this.finished.finally(e).then(()=>{})}get animation(){var e;return this._animation||((e=this.keyframeResolver)==null||e.resume(),DL()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var e;this._animation&&this.animation.cancel(),(e=this.keyframeResolver)==null||e.cancel()}}const XL=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function JL(t){const e=XL.exec(t);if(!e)return[,];const[,n,s,a]=e;return[`--${n??s}`,a]}function lA(t,e,n=1){const[s,a]=JL(t);if(!s)return;const l=window.getComputedStyle(e).getPropertyValue(s);if(l){const u=l.trim();return RS(u)?parseFloat(u):u}return jx(a)?lA(a,e,n+1):a}function Px(t,e){return(t==null?void 0:t[e])??(t==null?void 0:t.default)??t}const ZL={type:"spring",stiffness:500,damping:25,restSpeed:10},e4=t=>({type:"spring",stiffness:550,damping:t===0?2*Math.sqrt(550):30,restSpeed:10}),t4={type:"keyframes",duration:.8},n4={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},i4=(t,{keyframes:e})=>e.length>2?t4:Il.has(t)?t.startsWith("scale")?e4(e[1]):ZL:n4;function s4({when:t,delay:e,delayChildren:n,staggerChildren:s,staggerDirection:a,repeat:l,repeatType:u,repeatDelay:d,from:m,elapsed:g,...x}){return!!Object.keys(x).length}const r4=t=>t!==null;function a4(t,{repeat:e,repeatType:n="loop"},s){const a=t.filter(r4),l=e&&n!=="loop"&&e%2===1?0:a.length-1;return a[l]}function cA(t,e,n,s=0,a=1){const l=Array.from(t).sort((g,x)=>g.sortNodePosition(x)).indexOf(e),u=t.size,d=(u-1)*s;return typeof n=="function"?n(l,u):a===1?l*s:d-l*s}const Vx=(t,e,n,s={},a,l)=>u=>{const d=Px(s,t)||{},m=d.delay||s.delay||0;let{elapsed:g=0}=s;g=g-Ls(m);const x={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...d,delay:-g,onUpdate:T=>{e.set(T),d.onUpdate&&d.onUpdate(T)},onComplete:()=>{u(),d.onComplete&&d.onComplete()},name:t,motionValue:e,element:l?void 0:a};s4(d)||Object.assign(x,i4(t,x)),x.duration&&(x.duration=Ls(x.duration)),x.repeatDelay&&(x.repeatDelay=Ls(x.repeatDelay)),x.from!==void 0&&(x.keyframes[0]=x.from);let v=!1;if((x.type===!1||x.duration===0&&!x.repeatDelay)&&(Sy(x),x.delay===0&&(v=!0)),(Vs.instantAnimations||Vs.skipAnimations)&&(v=!0,Sy(x),x.delay=0),x.allowFlatten=!d.type&&!d.ease,v&&!l&&e.get()!==void 0){const T=a4(x.keyframes,d);if(T!==void 0){ct.update(()=>{x.onUpdate(T),x.onComplete()});return}}return d.isSync?new Lx(x):new QL(x)},uA=new Set(["width","height","top","left","right","bottom",...Cl]),n1=30,o4=t=>!isNaN(parseFloat(t));class l4{constructor(e,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{var l;const a=wn.now();if(this.updatedAt!==a&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(s),this.current!==this.prev&&((l=this.events.change)==null||l.notify(this.current),this.dependents))for(const u of this.dependents)u.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=n.owner}setCurrent(e){this.current=e,this.updatedAt=wn.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=o4(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,n){this.events[e]||(this.events[e]=new Sx);const s=this.events[e].add(n);return e==="change"?()=>{s(),ct.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,n){this.passiveEffect=e,this.stopPassiveEffect=n}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,n,s){this.set(n),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-s}jump(e,n=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var e;(e=this.events.change)==null||e.notify(this.current)}addDependent(e){this.dependents||(this.dependents=new Set),this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const e=wn.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>n1)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,n1);return DS(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(e){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=e(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var e,n;(e=this.dependents)==null||e.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function fl(t,e){return new l4(t,e)}function i1(t){const e=[{},{}];
vendor: 29,432 bytes, line 325
325return t==null||t.values.forEach((n,s)=>{e[0][s]=n.get(),e[1][s]=n.getVelocity()}),e}function Ux(t,e,n,s){if(typeof e=="function"){const[a,l]=i1(s);e=e(n!==void 0?n:t.custom,a,l)}if(typeof e=="string"&&(e=t.variants&&t.variants[e]),typeof e=="function"){const[a,l]=i1(s);e=e(n!==void 0?n:t.custom,a,l)}return e}function ll(t,e,n){const s=t.getProps();return Ux(s,e,n!==void 0?n:s.custom,t)}const Ay=t=>Array.isArray(t);function c4(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,fl(n))}function u4(t){return Ay(t)?t[t.length-1]||0:t}function h4(t,e){const n=ll(t,e);let{transitionEnd:s={},transition:a={},...l}=n||{};l={...l,...s};for(const u in l){const d=u4(l[u]);c4(t,u,d)}}const fn=t=>!!(t&&t.getVelocity);function d4(t){return!!(fn(t)&&t.add)}function Ny(t,e){const n=t.getValue("willChange");if(d4(n))return n.add(e);if(!n&&Vs.WillChange){const s=new Vs.WillChange("auto");t.addValue("willChange",s),s.add(e)}}function Bx(t){return t.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}const f4="framerAppearId",hA="data-"+Bx(f4);function dA(t){return t.props[hA]}function m4({protectedKeys:t,needsAnimating:e},n){const s=t.hasOwnProperty(n)&&e[n]!==!0;return e[n]=!1,s}function fA(t,e,{delay:n=0,transitionOverride:s,type:a}={}){let{transition:l=t.getDefaultTransition(),transitionEnd:u,...d}=e;s&&(l=s);const m=[],g=a&&t.animationState&&t.animationState.getState()[a];for(const x in d){const v=t.getValue(x,t.latestValues[x]??null),T=d[x];if(T===void 0||g&&m4(g,x))continue;const E={delay:n,...Px(l||{},x)},C=v.get();if(C!==void 0&&!v.isAnimating&&!Array.isArray(T)&&T===C&&!E.velocity)continue;let L=!1;if(window.MotionHandoffAnimation){const V=dA(t);if(V){const G=window.MotionHandoffAnimation(V,x,ct);G!==null&&(E.startTime=G,L=!0)}}Ny(t,x),v.start(Vx(x,v,T,t.shouldReduceMotion&&uA.has(x)?{type:!1}:E,t,L));const R=v.animation;R&&m.push(R)}return u&&Promise.all(m).then(()=>{ct.update(()=>{u&&h4(t,u)})}),m}function jy(t,e,n={}){var m;const s=ll(t,e,n.type==="exit"?(m=t.presenceContext)==null?void 0:m.custom:void 0);let{transition:a=t.getDefaultTransition()||{}}=s||{};n.transitionOverride&&(a=n.transitionOverride);const l=s?()=>Promise.all(fA(t,s,n)):()=>Promise.resolve(),u=t.variantChildren&&t.variantChildren.size?(g=0)=>{const{delayChildren:x=0,staggerChildren:v,staggerDirection:T}=a;return p4(t,e,g,x,v,T,n)}:()=>Promise.resolve(),{when:d}=a;if(d){const[g,x]=d==="beforeChildren"?[l,u]:[u,l];return g().then(()=>x())}else return Promise.all([l(),u(n.delay)])}function p4(t,e,n=0,s=0,a=0,l=1,u){const d=[];for(const m of t.variantChildren)m.notify("AnimationStart",e),d.push(jy(m,e,{...u,delay:n+(typeof s=="function"?0:s)+cA(t.variantChildren,m,s,a,l)}).then(()=>m.notify("AnimationComplete",e)));return Promise.all(d)}function g4(t,e,n={}){t.notify("AnimationStart",e);let s;if(Array.isArray(e)){const a=e.map(l=>jy(t,l,n));s=Promise.all(a)}else if(typeof e=="string")s=jy(t,e,n);else{const a=typeof e=="function"?ll(t,e,n.custom):e;s=Promise.all(fA(t,a,n))}return s.then(()=>{t.notify("AnimationComplete",e)})}const y4={test:t=>t==="auto",parse:t=>t},mA=t=>e=>e.test(t),pA=[Rl,me,$i,Pr,qM,GM,y4],s1=t=>pA.find(mA(t));function x4(t){return typeof t=="number"?t===0:t!==null?t==="none"||t==="0"||IS(t):!0}const v4=new Set(["brightness","contrast","saturate","opacity"]);function b4(t){const[e,n]=t.slice(0,-1).split("(");if(e==="drop-shadow")return t;const[s]=n.match(Rx)||[];if(!s)return t;const a=n.replace(s,"");let l=v4.has(e)?1:0;return s!==n&&(l*=100),e+"("+l+a+")"}const w4=/\b([a-z-]*)\(.*?\)/gu,Ry={...Xr,getAnimatableNone:t=>{const e=t.match(w4);return e?e.map(b4).join(" "):t}},r1={...Rl,transform:Math.round},_4={rotate:Pr,rotateX:Pr,rotateY:Pr,rotateZ:Pr,scale:jd,scaleX:jd,scaleY:jd,scaleZ:jd,skew:Pr,skewX:Pr,skewY:Pr,distance:me,translateX:me,translateY:me,translateZ:me,x:me,y:me,z:me,perspective:me,transformPerspective:me,opacity:pu,originX:H_,originY:H_,originZ:me},zx={borderWidth:me,borderTopWidth:me,borderRightWidth:me,borderBottomWidth:me,borderLeftWidth:me,borderRadius:me,radius:me,borderTopLeftRadius:me,borderTopRightRadius:me,borderBottomRightRadius:me,borderBottomLeftRadius:me,width:me,maxWidth:me,height:me,maxHeight:me,top:me,right:me,bottom:me,left:me,inset:me,insetBlock:me,insetBlockStart:me,insetBlockEnd:me,insetInline:me,insetInlineStart:me,insetInlineEnd:me,padding:me,paddingTop:me,paddingRight:me,paddingBottom:me,paddingLeft:me,paddingBlock:me,paddingBlockStart:me,paddingBlockEnd:me,paddingInline:me,paddingInlineStart:me,paddingInlineEnd:me,margin:me,marginTop:me,marginRight:me,marginBottom:me,marginLeft:me,marginBlock:me,marginBlockStart:me,marginBlockEnd:me,marginInline:me,marginInlineStart:me,marginInlineEnd:me,backgroundPositionX:me,backgroundPositionY:me,..._4,zIndex:r1,fillOpacity:pu,strokeOpacity:pu,numOctaves:r1},T4={...zx,color:It,backgroundColor:It,outlineColor:It,fill:It,stroke:It,borderColor:It,borderTopColor:It,borderRightColor:It,borderBottomColor:It,borderLeftColor:It,filter:Ry,WebkitFilter:Ry},gA=t=>T4[t];function yA(t,e){let n=gA(t);return n!==Ry&&(n=Xr),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const E4=new Set(["auto","none","0"]);function S4(t,e,n){let s=0,a;for(;s<t.length&&!a;){const l=t[s];typeof l=="string"&&!E4.has(l)&&gu(l).values.length&&(a=t[s]),s++}if(a&&n)for(const l of e)t[l]=yA(n,a)}class A4 extends Ox{constructor(e,n,s,a,l){super(e,n,s,a,l,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:n,name:s}=this;if(!n||!n.current)return;super.readKeyframes();for(let x=0;x<e.length;x++){let v=e[x];if(typeof v=="string"&&(v=v.trim(),jx(v))){const T=lA(v,n.current);T!==void 0&&(e[x]=T),x===e.length-1&&(this.finalKeyframe=v)}}if(this.resolveNoneKeyframes(),!uA.has(s)||e.length!==2)return;const[a,l]=e,u=s1(a),d=s1(l),m=q_(a),g=q_(l);if(m!==g&&Fr[s]){this.needsMeasurement=!0;return}if(u!==d)if(Z_(u)&&Z_(d))for(let x=0;x<e.length;x++){const v=e[x];typeof v=="string"&&(e[x]=parseFloat(v))}else Fr[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:n}=this,s=[];for(let a=0;a<e.length;a++)(e[a]===null||x4(e[a]))&&s.push(a);s.length&&S4(e,s,n)}measureInitialState(){const{element:e,unresolvedKeyframes:n,name:s}=this;if(!e||!e.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Fr[s](e.measureViewportBox(),window.getComputedStyle(e.current)),n[0]=this.measuredOrigin;const a=n[n.length-1];a!==void 0&&e.getValue(s,a).jump(a,!1)}measureEndState(){var d;const{element:e,name:n,unresolvedKeyframes:s}=this;if(!e||!e.current)return;const a=e.getValue(n);a&&a.jump(this.measuredOrigin,!1);const l=s.length-1,u=s[l];s[l]=Fr[n](e.measureViewportBox(),window.getComputedStyle(e.current)),u!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=u),(d=this.removedTransforms)!=null&&d.length&&this.removedTransforms.forEach(([m,g])=>{e.getValue(m).set(g)}),this.resolveNoneKeyframes()}}function N4(t,e,n){if(t instanceof EventTarget)return[t];if(typeof t=="string"){let s=document;const a=(n==null?void 0:n[t])??s.querySelectorAll(t);return a?Array.from(a):[]}return Array.from(t)}const xA=(t,e)=>e&&typeof t=="number"?e.transform(t):t;function vA(t){return CS(t)&&"offsetHeight"in t}const{schedule:Fx}=GS(queueMicrotask,!1),vi={x:!1,y:!1};function bA(){return vi.x||vi.y}function j4(t){return t==="x"||t==="y"?vi[t]?null:(vi[t]=!0,()=>{vi[t]=!1}):vi.x||vi.y?null:(vi.x=vi.y=!0,()=>{vi.x=vi.y=!1})}function wA(t,e){const n=N4(t),s=new AbortController,a={passive:!0,...e,signal:s.signal};return[n,a,()=>s.abort()]}function a1(t){return!(t.pointerType==="touch"||bA())}function R4(t,e,n={}){const[s,a,l]=wA(t,n),u=d=>{if(!a1(d))return;const{target:m}=d,g=e(m,d);if(typeof g!="function"||!m)return;const x=v=>{a1(v)&&(g(v),m.removeEventListener("pointerleave",x))};m.addEventListener("pointerleave",x,a)};return s.forEach(d=>{d.addEventListener("pointerenter",u,a)}),l}const _A=(t,e)=>e?t===e?!0:_A(t,e.parentElement):!1,Gx=t=>t.pointerType==="mouse"?typeof t.button!="number"||t.button<=0:t.isPrimary!==!1,C4=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function TA(t){return C4.has(t.tagName)||t.isContentEditable===!0}const Fd=new WeakSet;function o1(t){return e=>{e.key==="Enter"&&t(e)}}function Lg(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}const I4=(t,e)=>{const n=t.currentTarget;if(!n)return;const s=o1(()=>{if(Fd.has(n))return;Lg(n,"down");const a=o1(()=>{Lg(n,"up")}),l=()=>Lg(n,"cancel");n.addEventListener("keyup",a,e),n.addEventListener("blur",l,e)});n.addEventListener("keydown",s,e),n.addEventListener("blur",()=>n.removeEventListener("keydown",s),e)};function l1(t){return Gx(t)&&!bA()}function D4(t,e,n={}){const[s,a,l]=wA(t,n),u=d=>{const m=d.currentTarget;if(!l1(d))return;Fd.add(m);const g=e(m,d),x=(E,C)=>{window.removeEventListener("pointerup",v),window.removeEventListener("pointercancel",T),Fd.has(m)&&Fd.delete(m),l1(E)&&typeof g=="function"&&g(E,{success:C})},v=E=>{x(E,m===window||m===document||n.useGlobalTarget||_A(m,E.target))},T=E=>{x(E,!1)};window.addEventListener("pointerup",v,a),window.addEventListener("pointercancel",T,a)};return s.forEach(d=>{(n.useGlobalTarget?window:d).addEventListener("pointerdown",u,a),vA(d)&&(d.addEventListener("focus",g=>I4(g,a)),!TA(d)&&!d.hasAttribute("tabindex")&&(d.tabIndex=0))}),l}function EA(t){return CS(t)&&"ownerSVGElement"in t}function k4(t){return EA(t)&&t.tagName==="svg"}const M4=[...pA,It,Xr],L4=t=>M4.find(mA(t)),c1=()=>({translate:0,scale:1,origin:0,originPoint:0}),tl=()=>({x:c1(),y:c1()}),u1=()=>({min:0,max:0}),Lt=()=>({x:u1(),y:u1()}),Cy={current:null},SA={current:!1},O4=typeof window<"u";function P4(){if(SA.current=!0,!!O4)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Cy.current=t.matches;t.addEventListener("change",e),e()}else Cy.current=!1}const V4=new WeakMap;function kf(t){return t!==null&&typeof t=="object"&&typeof t.start=="function"}function yu(t){return typeof t=="string"||Array.isArray(t)}const qx=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],Hx=["initial",...qx];function Mf(t){return kf(t.animate)||Hx.some(e=>yu(t[e]))}function AA(t){return!!(Mf(t)||t.variants)}function U4(t,e,n){for(const s in e){const a=e[s],l=n[s];if(fn(a))t.addValue(s,a);else if(fn(l))t.addValue(s,fl(a,{owner:t}));else if(l!==a)if(t.hasValue(s)){const u=t.getValue(s);u.liveStyle===!0?u.jump(a):u.hasAnimated||u.set(a)}else{const u=t.getStaticValue(s);t.addValue(s,fl(u!==void 0?u:a,{owner:t}))}}for(const s in n)e[s]===void 0&&t.removeValue(s);return e}const h1=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let cf={};function NA(t){cf=t}function B4(){return cf}class z4{scrapeMotionValuesFromProps(e,n,s){return{}}constructor({parent:e,props:n,presenceContext:s,reducedMotionConfig:a,blockInitialAnimation:l,visualState:u},d={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ox,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const T=wn.now();this.renderScheduledAt<T&&(this.renderScheduledAt=T,ct.render(this.render,!1,!0))};const{latestValues:m,renderState:g}=u;this.latestValues=m,this.baseTarget={...m},this.initialValues=n.initial?{...m}:{},this.renderState=g,this.parent=e,this.props=n,this.presenceContext=s,this.depth=e?e.depth+1:0,this.reducedMotionConfig=a,this.options=d,this.blockInitialAnimation=!!l,this.isControllingVariants=Mf(n),this.isVariantNode=AA(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);const{willChange:x,...v}=this.scrapeMotionValuesFromProps(n,{},this);for(const T in v){const E=v[T];m[T]!==void 0&&fn(E)&&E.set(m[T])}}mount(e){var n;this.current=e,V4.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((s,a)=>this.bindToMotionValue(a,s)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(SA.current||P4(),this.shouldReduceMotion=Cy.current),(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var e;this.projection&&this.projection.unmount(),Qr(this.notifyUpdate),Qr(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(e=this.parent)==null||e.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const s=this.features[n];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,n){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const s=Il.has(e);s&&this.onBindTransform&&this.onBindTransform();const a=n.on("change",u=>{this.latestValues[e]=u,this.props.onUpdate&&ct.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let l;typeof window<"u"&&window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,e,n)),this.valueSubscriptions.set(e,()=>{a(),l&&l(),n.owner&&n.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e="animation";for(e in cf){const n=cf[e];if(!n)continue;const{isEnabled:s,Feature:a}=n;if(!this.features[e]&&a&&s(this.props)&&(this.features[e]=new a(this)),this.features[e]){const l=this.features[e];l.isMounted?l.update():(l.mount(),l.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Lt()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,n){this.latestValues[e]=n}update(e,n){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let s=0;s<h1.length;s++){const a=h1[s];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const l="on"+a,u=e[l];u&&(this.propEventSubscriptions[a]=this.on(a,u))}this.prevMotionValues=U4(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(e),()=>n.variantChildren.delete(e)}addValue(e,n){const s=this.values.get(e);n!==s&&(s&&this.removeValue(e),this.bindToMotionValue(e,n),this.values.set(e,n),this.latestValues[e]=n.get())}removeValue(e){this.values.delete(e);const n=this.valueSubscriptions.get(e);n&&(n(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,n){if(this.props.values&&this.props.values[e])return this.props.values[e];let s=this.values.get(e);return s===void 0&&n!==void 0&&(s=fl(n===null?void 0:n,{owner:this}),this.addValue(e,s)),s}readValue(e,n){let s=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return s!=null&&(typeof s=="string"&&(RS(s)||IS(s))?s=parseFloat(s):!L4(s)&&Xr.test(n)&&(s=yA(e,n)),this.setBaseTarget(e,fn(s)?s.get():s)),fn(s)?s.get():s}setBaseTarget(e,n){this.baseTarget[e]=n}getBaseTarget(e){var l;const{initial:n}=this.props;let s;if(typeof n=="string"||typeof n=="object"){const u=Ux(this.props,n,(l=this.presenceContext)==null?void 0:l.custom);u&&(s=u[e])}if(n&&s!==void 0)return s;const a=this.getBaseTargetFromProps(this.props,e);return a!==void 0&&!fn(a)?a:this.initialValues[e]!==void 0&&s===void 0?void 0:this.baseTarget[e]}on(e,n){return this.events[e]||(this.events[e]=new Sx),this.events[e].add(n)}notify(e,...n){this.events[e]&&this.events[e].notify(...n)}scheduleRenderMicrotask(){Fx.render(this.render)}}class ia{constructor(e){this.isMounted=!1,this.node=e}update(){}}class jA extends z4{constructor(){super(...arguments),this.KeyframeResolver=A4}sortInstanceNodePosition(e,n){return e.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(e,n){const s=e.style;return s?s[n]:void 0}removeValueFromRenderState(e,{vars:n,style:s}){delete n[e],delete s[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;fn(e)&&(this.childSubscription=e.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function RA({top:t,left:e,right:n,bottom:s}){return{x:{min:e,max:n},y:{min:t,max:s}}}function F4({x:t,y:e}){return{top:e.min,right:t.max,bottom:e.max,left:t.min}}function G4(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),s=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:s.y,right:s.x}}function Og(t){return t===void 0||t===1}function Iy({scale:t,scaleX:e,scaleY:n}){return!Og(t)||!Og(e)||!Og(n)}function Va(t){return Iy(t)||CA(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function CA(t){return d1(t.x)||d1(t.y)}function d1(t){return t&&t!=="0%"}function uf(t,e,n){const s=t-n,a=e*s;return n+a}function f1(t,e,n,s,a){return a!==void 0&&(t=uf(t,a,s)),uf(t,n,s)+e}function Dy(t,e=0,n=1,s,a){t.min=f1(t.min,e,n,s,a),t.max=f1(t.max,e,n,s,a)}function IA(t,{x:e,y:n}){Dy(t.x,e.translate,e.scale,e.originPoint),Dy(t.y,n.translate,n.scale,n.originPoint)}const m1=.999999999999,p1=1.0000000000001;function q4(t,e,n,s=!1){const a=n.length;if(!a)return;e.x=e.y=1;let l,u;for(let d=0;d<a;d++){l=n[d],u=l.projectionDelta;const{visualElement:m}=l.options;m&&m.props.style&&m.props.style.display==="contents"||(s&&l.options.layoutScroll&&l.scroll&&l!==l.root&&il(t,{x:-l.scroll.offset.x,y:-l.scroll.offset.y}),u&&(e.x*=u.x.scale,e.y*=u.y.scale,IA(t,u)),s&&Va(l.latestValues)&&il(t,l.latestValues))}e.x<p1&&e.x>m1&&(e.x=1),e.y<p1&&e.y>m1&&(e.y=1)}function nl(t,e){t.min=t.min+e,t.max=t.max+e}function g1(t,e,n,s,a=.5){const l=mt(t.min,t.max,a);Dy(t,e,n,l,s)}function il(t,e){g1(t.x,e.x,e.scaleX,e.scale,e.originX),g1(t.y,e.y,e.scaleY,e.scale,e.originY)}function DA(t,e){return RA(G4(t.getBoundingClientRect(),e))}function H4(t,e,n){const s=DA(t,n),{scroll:a}=e;return a&&(nl(s.x,a.offset.x),nl(s.y,a.offset.y)),s}const $4={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},K4=Cl.length;function Y4(t,e,n){let s="",a=!0;for(let l=0;l<K4;l++){const u=Cl[l],d=t[u];if(d===void 0)continue;let m=!0;if(typeof d=="number"?m=d===(u.startsWith("scale")?1:0):m=parseFloat(d)===0,!m||n){const g=xA(d,zx[u]);if(!m){a=!1;const x=$4[u]||u;s+=`${x}(${g}) `}n&&(e[u]=g)}}return s=s.trim(),n?s=n(e,a?"":s):a&&(s="none"),s}function $x(t,e,n){const{style:s,vars:a,transformOrigin:l}=t;let u=!1,d=!1;for(const m in e){const g=e[m];if(Il.has(m)){u=!0;continue}else if(HS(m)){a[m]=g;continue}else{const x=xA(g,zx[m]);m.startsWith("origin")?(d=!0,l[m]=x):s[m]=x}}if(e.transform||(u||n?s.transform=Y4(e,t.transform,n):s.transform&&(s.transform="none")),d){const{originX:m="50%",originY:g="50%",originZ:x=0}=l;s.transformOrigin=`${m} ${g} ${x}`}}function kA(t,{style:e,vars:n},s,a){const l=t.style;let u;for(u in e)l[u]=e[u];a==null||a.applyProjectionStyles(l,s);for(u in n)l.setProperty(u,n[u])}function y1(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const Kc={correct:(t,e)=>{if(!e.target)return t;if(typeof t=="string")if(me.test(t))t=parseFloat(t);else return t;const n=y1(t,e.target.x),s=y1(t,e.target.y);return`${n}% ${s}%`}},W4={correct:(t,{treeScale:e,projectionDelta:n})=>{const s=t,a=Xr.parse(t);if(a.length>5)return s;const l=Xr.createTransformer(t),u=typeof a[0]!="number"?1:0,d=n.x.scale*e.x,m=n.y.scale*e.y;a[0+u]/=d,a[1+u]/=m;const g=mt(d,m,.5);return typeof a[2+u]=="number"&&(a[2+u]/=g),typeof a[3+u]=="number"&&(a[3+u]/=g),l(a)}},ky={borderRadius:{...Kc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Kc,borderTopRightRadius:Kc,borderBottomLeftRadius:Kc,borderBottomRightRadius:Kc,boxShadow:W4};function MA(t,{layout:e,layoutId:n}){return Il.has(t)||t.startsWith("origin")||(e||n!==void 0)&&(!!ky[t]||t==="opacity")}function Kx(t,e,n){var u;const s=t.style,a=e==null?void 0:e.style,l={};if(!s)return l;for(const d in s)(fn(s[d])||a&&fn(a[d])||MA(d,t)||((u=n==null?void 0:n.getValue(d))==null?void 0:u.liveStyle)!==void 0)&&(l[d]=s[d]);return l}function Q4(t){return window.getComputedStyle(t)}class X4 extends jA{constructor(){super(...arguments),this.type="html",this.renderInstance=kA}readValueFromInstance(e,n){var s;if(Il.has(n))return(s=this.projection)!=null&&s.isProjecting?by(n):NL(e,n);{const a=Q4(e),l=(HS(n)?a.getPropertyValue(n):a[n])||0;return typeof l=="string"?l.trim():l}}measureInstanceViewportBox(e,{transformPagePoint:n}){return DA(e,n)}build(e,n,s){$x(e,n,s.transformTemplate)}scrapeMotionValuesFromProps(e,n,s){return Kx(e,n,s)}}const J4={offset:"stroke-dashoffset",array:"stroke-dasharray"},Z4={offset:"strokeDashoffset",array:"strokeDasharray"};function eO(t,e,n=1,s=0,a=!0){t.pathLength=1;const l=a?J4:Z4;t[l.offset]=me.transform(-s);const u=me.transform(e),d=me.transform(n);t[l.array]=`${u} ${d}`}const tO=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function LA(t,{attrX:e,attrY:n,attrScale:s,pathLength:a,pathSpacing:l=1,pathOffset:u=0,...d},m,g,x){if($x(t,d,g),m){t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox);return}t.attrs=t.style,t.style={};const{attrs:v,style:T}=t;v.transform&&(T.transform=v.transform,delete v.transform),(T.transform||v.transformOrigin)&&(T.transformOrigin=v.transformOrigin??"50% 50%",delete v.transformOrigin),T.transform&&(T.transformBox=(x==null?void 0:x.transformBox)??"fill-box",delete v.transformBox);for(const E of tO)v[E]!==void 0&&(T[E]=v[E],delete v[E]);e!==void 0&&(v.x=e),n!==void 0&&(v.y=n),s!==void 0&&(v.scale=s),a!==void 0&&eO(v,a,l,u,!1)}const OA=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]),PA=t=>typeof t=="string"&&t.toLowerCase()==="svg";function nO(t,e,n,s){kA(t,e,void 0,s);for(const a in e.attrs)t.setAttribute(OA.has(a)?a:Bx(a),e.attrs[a])}function VA(t,e,n){const s=Kx(t,e,n);for(const a in t)if(fn(t[a])||fn(e[a])){const l=Cl.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;s[l]=t[a]}return s}class iO extends jA{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Lt}getBaseTargetFromProps(e,n){return e[n]}readValueFromInstance(e,n){if(Il.has(n)){const s=gA(n);return s&&s.default||0}return n=OA.has(n)?n:Bx(n),e.getAttribute(n)}scrapeMotionValuesFromProps(e,n,s){return VA(e,n,s)}build(e,n,s){LA(e,n,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(e,n,s,a){nO(e,n,s,a)}mount(e){this.isSVGTag=PA(e.tagName),super.mount(e)}}const sO=Hx.length;function UA(t){if(!t)return;if(!t.isControllingVariants){const n=t.parent?UA(t.parent)||{}:{};return t.props.initial!==void 0&&(n.initial=t.props.initial),n}const e={};for(let n=0;n<sO;n++){const s=Hx[n],a=t.props[s];(yu(a)||a===!1)&&(e[s]=a)}return e}function BA(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let s=0;s<n;s++)if(e[s]!==t[s])return!1;return!0}const rO=[...qx].reverse(),aO=qx.length;function oO(t){return e=>Promise.all(e.map(({animation:n,options:s})=>g4(t,n,s)))}function lO(t){let e=oO(t),n=x1(),s=!0;const a=m=>(g,x)=>{var T;const v=ll(t,x,m==="exit"?(T=t.presenceContext)==null?void 0:T.custom:void 0);if(v){const{transition:E,transitionEnd:C,...L}=v;g={...g,...L,...C}}return g};function l(m){e=m(t)}function u(m){const{props:g}=t,x=UA(t.parent)||{},v=[],T=new Set;let E={},C=1/0;for(let R=0;R<aO;R++){const V=rO[R],G=n[V],z=g[V]!==void 0?g[V]:x[V],ne=yu(z),re=V===m?G.isActive:null;re===!1&&(C=R);let le=z===x[V]&&z!==g[V]&≠if(le&&s&&t.manuallyAnimateOnMount&&(le=!1),G.protectedKeys={...E},!G.isActive&&re===null||!z&&!G.prevProp||kf(z)||typeof z=="boolean")continue;const D=cO(G.prevProp,z);let A=D||V===m&&G.isActive&&!le&&ne||R>C&&ne,I=!1;const P=Array.isArray(z)?z:[z];let F=P.reduce(a(V),{});re===!1&&(F={});const{prevResolvedValues:U={}}=G,M={...U,...F},nt=ae=>{A=!0,T.has(ae)&&(I=!0,T.delete(ae)),G.needsAnimating[ae]=!0;const ue=t.getValue(ae);ue&&(ue.liveStyle=!1)};for(const ae in M){const ue=F[ae],je=U[ae];if(E.hasOwnProperty(ae))continue;let Ie=!1;Ay(ue)&&Ay(je)?Ie=!BA(ue,je):Ie=ue!==je,Ie?ue!=null?nt(ae):T.add(ae):ue!==void 0&&T.has(ae)?nt(ae):G.protectedKeys[ae]=!0}G.prevProp=z,G.prevResolvedValues=F,G.isActive&&(E={...E,...F}),s&&t.blockInitialAnimation&&(A=!1);const dt=le&&D;A&&(!dt||I)&&v.push(...P.map(ae=>{const ue={type:V};if(typeof ae=="string"&&s&&!dt&&t.manuallyAnimateOnMount&&t.parent){const{parent:je}=t,Ie=ll(je,ae);if(je.enteringChildren&&Ie){const{delayChildren:k}=Ie.transition||{};ue.delay=cA(je.enteringChildren,t,k)}}return{animation:ae,options:ue}}))}if(T.size){const R={};if(typeof g.initial!="boolean"){const V=ll(t,Array.isArray(g.initial)?g.initial[0]:g.initial);V&&V.transition&&(R.transition=V.transition)}T.forEach(V=>{const G=t.getBaseTarget(V),z=t.getValue(V);z&&(z.liveStyle=!0),R[V]=G??null}),v.push({animation:R})}let L=!!v.length;return s&&(g.initial===!1||g.initial===g.animate)&&!t.manuallyAnimateOnMount&&(L=!1),s=!1,L?e(v):Promise.resolve()}function d(m,g){var v;if(n[m].isActive===g)return Promise.resolve();(v=t.variantChildren)==null||v.forEach(T=>{var E;return(E=T.animationState)==null?void 0:E.setActive(m,g)}),n[m].isActive=g;const x=u(m);for(const T in n)n[T].protectedKeys={};return x}return{animateChanges:u,setActive:d,setAnimateFunction:l,getState:()=>n,reset:()=>{n=x1()}}}function cO(t,e){return typeof e=="string"?e!==t:Array.isArray(e)?!BA(e,t):!1}function Pa(t=!1){return{isActive:t,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function x1(){return{animate:Pa(!0),whileInView:Pa(),whileHover:Pa(),whileTap:Pa(),whileDrag:Pa(),whileFocus:Pa(),exit:Pa()}}const zA=1e-4,uO=1-zA,hO=1+zA,FA=.01,dO=0-FA,fO=0+FA;function _n(t){return t.max-t.min}function mO(t,e,n){return Math.abs(t-e)<=n}function v1(t,e,n,s=.5){t.origin=s,t.originPoint=mt(e.min,e.max,t.origin),t.scale=_n(n)/_n(e),t.translate=mt(n.min,n.max,t.origin)-t.originPoint,(t.scale>=uO&&t.scale<=hO||isNaN(t.scale))&&(t.scale=1),(t.translate>=dO&&t.translate<=fO||isNaN(t.translate))&&(t.translate=0)}function au(t,e,n,s){v1(t.x,e.x,n.x,s?s.originX:void 0),v1(t.y,e.y,n.y,s?s.originY:void 0)}function b1(t,e,n){t.min=n.min+e.min,t.max=t.min+_n(e)}function pO(t,e,n){b1(t.x,e.x,n.x),b1(t.y,e.y,n.y)}function w1(t,e,n){t.min=e.min-n.min,t.max=t.min+_n(e)}function hf(t,e,n){w1(t.x,e.x,n.x),w1(t.y,e.y,n.y)}function _1(t,e,n,s,a){return t-=e,t=uf(t,1/n,s),a!==void 0&&(t=uf(t,1/a,s)),t}function gO(t,e=0,n=1,s=.5,a,l=t,u=t){if($i.test(e)&&(e=parseFloat(e),e=mt(u.min,u.max,e/100)-u.min),typeof e!="number")return;let d=mt(l.min,l.max,s);t===l&&(d-=e),t.min=_1(t.min,e,n,d,a),t.max=_1(t.max,e,n,d,a)}function T1(t,e,[n,s,a],l,u){gO(t,e[n],e[s],e[a],e.scale,l,u)}const yO=["x","scaleX","originX"],xO=["y","scaleY","originY"];function E1(t,e,n,s){T1(t.x,e,yO,n?n.x:void 0,s?s.x:void 0),T1(t.y,e,xO,n?n.y:void 0,s?s.y:void 0)}function S1(t,e){t.min=e.min,t.max=e.max}function yi(t,e){S1(t.x,e.x),S1(t.y,e.y)}function A1(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function N1(t){return t.translate===0&&t.scale===1}function GA(t){return N1(t.x)&&N1(t.y)}function j1(t,e){return t.min===e.min&&t.max===e.max}function vO(t,e){return j1(t.x,e.x)&&j1(t.y,e.y)}function R1(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function qA(t,e){return R1(t.x,e.x)&&R1(t.y,e.y)}function C1(t){return _n(t.x)/_n(t.y)}function I1(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}function ai(t){return[t("x"),t("y")]}function bO(t,e,n){let s="";const a=t.x.translate/e.x,l=t.y.translate/e.y,u=(n==null?void 0:n.z)||0;if((a||l||u)&&(s=`translate3d(${a}px, ${l}px, ${u}px) `),(e.x!==1||e.y!==1)&&(s+=`scale(${1/e.x}, ${1/e.y}
325) `),n){const{transformPerspective:g,rotate:x,rotateX:v,rotateY:T,skewX:E,skewY:C}=n;g&&(s=`perspective(${g}px) ${s}`),x&&(s+=`rotate(${x}deg) `),v&&(s+=`rotateX(${v}deg) `),T&&(s+=`rotateY(${T}deg) `),E&&(s+=`skewX(${E}deg) `),C&&(s+=`skewY(${C}deg) `)}const d=t.x.scale*e.x,m=t.y.scale*e.y;return(d!==1||m!==1)&&(s+=`scale(${d}, ${m})`),s||"none"}const HA=["TopLeft","TopRight","BottomLeft","BottomRight"],wO=HA.length,D1=t=>typeof t=="string"?parseFloat(t):t,k1=t=>typeof t=="number"||me.test(t);function _O(t,e,n,s,a,l){a?(t.opacity=mt(0,n.opacity??1,TO(s)),t.opacityExit=mt(e.opacity??1,0,EO(s))):l&&(t.opacity=mt(e.opacity??1,n.opacity??1,s));for(let u=0;u<wO;u++){const d=`border${HA[u]}Radius`;let m=M1(e,d),g=M1(n,d);if(m===void 0&&g===void 0)continue;m||(m=0),g||(g=0),m===0||g===0||k1(m)===k1(g)?(t[d]=Math.max(mt(D1(m),D1(g),s),0),($i.test(g)||$i.test(m))&&(t[d]+="%")):t[d]=g}(e.rotate||n.rotate)&&(t.rotate=mt(e.rotate||0,n.rotate||0,s))}function M1(t,e){return t[e]!==void 0?t[e]:t.borderRadius}const TO=$A(0,.5,US),EO=$A(.5,.95,ci);function $A(t,e,n){return s=>s<t?0:s>e?1:n(mu(t,e,s))}function SO(t,e){const n=wn.now(),s=({timestamp:a})=>{const l=a-n;l>=e&&(Qr(s),t(l-e))};return ct.setup(s,!0),()=>Qr(s)}function xu(t,e,n,s={passive:!0}){return t.addEventListener(e,n,s),()=>t.removeEventListener(e,n)}function Gd(t){return fn(t)?t.get():t}function AO(t,e,n){const s=fn(t)?t:fl(t);return s.start(Vx("",s,e,n)),s.animation}const NO=(t,e)=>t.depth-e.depth;class jO{constructor(){this.children=[],this.isDirty=!1}add(e){wx(this.children,e),this.isDirty=!0}remove(e){_x(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(NO),this.isDirty=!1,this.children.forEach(e)}}class RO{constructor(){this.members=[]}add(e){wx(this.members,e),e.scheduleRender()}remove(e){if(_x(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(e){const n=this.members.findIndex(a=>e===a);if(n===0)return!1;let s;for(let a=n;a>=0;a--){const l=this.members[a];if(l.isPresent!==!1){s=l;break}}return s?(this.promote(s),!0):!1}promote(e,n){const s=this.lead;if(e!==s&&(this.prevLead=s,this.lead=e,e.show(),s)){s.instance&&s.scheduleRender(),e.scheduleRender(),e.resumeFrom=s,n&&(e.resumeFrom.preserveOpacity=!0),s.snapshot&&(e.snapshot=s.snapshot,e.snapshot.latestValues=s.animationValues||s.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:a}=e.options;a===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(e=>{const{options:n,resumingFrom:s}=e;n.onExitComplete&&n.onExitComplete(),s&&s.options.onExitComplete&&s.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const qd={hasAnimatedSinceResize:!0,hasEverUpdated:!1},Pg=["","X","Y","Z"],CO=1e3;let IO=0;function Vg(t,e,n,s){const{latestValues:a}=e;a[t]&&(n[t]=a[t],e.setStaticValue(t,0),s&&(s[t]=0))}function KA(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=dA(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:l}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",ct,!(a||l))}const{parent:s}=t;s&&!s.hasCheckedOptimisedAppear&&KA(s)}function YA({attachResizeListener:t,defaultParent:e,measureScroll:n,checkIsScrollRoot:s,resetTransform:a}){return class{constructor(u={},d=e==null?void 0:e()){this.id=IO++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>
vendor: 14,689 bytes, line 325
325{this.projectionUpdateScheduled=!1,this.nodes.forEach(MO),this.nodes.forEach(VO),this.nodes.forEach(UO),this.nodes.forEach(LO)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=u,this.root=d?d.root||d:this,this.path=d?[...d.path,d]:[],this.parent=d,this.depth=d?d.depth+1:0;for(let m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new jO)}addEventListener(u,d){return this.eventHandlers.has(u)||this.eventHandlers.set(u,new Sx),this.eventHandlers.get(u).add(d)}notifyListeners(u,...d){const m=this.eventHandlers.get(u);m&&m.notify(...d)}hasListeners(u){return this.eventHandlers.has(u)}mount(u){if(this.instance)return;this.isSVG=EA(u)&&!k4(u),this.instance=u;const{layoutId:d,layout:m,visualElement:g}=this.options;if(g&&!g.current&&g.mount(u),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(m||d)&&(this.isLayoutDirty=!0),t){let x,v=0;const T=()=>this.root.updateBlockedByResize=!1;ct.read(()=>{v=window.innerWidth}),t(u,()=>{const E=window.innerWidth;E!==v&&(v=E,this.root.updateBlockedByResize=!0,x&&x(),x=SO(T,250),qd.hasAnimatedSinceResize&&(qd.hasAnimatedSinceResize=!1,this.nodes.forEach(P1)))})}d&&this.root.registerSharedNode(d,this),this.options.animate!==!1&&g&&(d||m)&&this.addEventListener("didUpdate",({delta:x,hasLayoutChanged:v,hasRelativeLayoutChanged:T,layout:E})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const C=this.options.transition||g.getDefaultTransition()||qO,{onLayoutAnimationStart:L,onLayoutAnimationComplete:R}=g.getProps(),V=!this.targetLayout||!qA(this.targetLayout,E),G=!v&&T;if(this.options.layoutRoot||this.resumeFrom||G||v&&(V||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const z={...Px(C,"layout"),onPlay:L,onComplete:R};(g.shouldReduceMotion||this.options.layoutRoot)&&(z.delay=0,z.type=!1),this.startAnimation(z),this.setAnimationOrigin(x,G)}else v||P1(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=E})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const u=this.getStack();u&&u.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),Qr(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(BO),this.animationId++)}getTransformTemplate(){const{visualElement:u}=this.options;return u&&u.getProps().transformTemplate}willUpdate(u=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&KA(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let x=0;x<this.path.length;x++){const v=this.path[x];v.shouldResetTransform=!0,v.updateScroll("snapshot"),v.options.layoutRoot&&v.willUpdate(!1)}const{layoutId:d,layout:m}=this.options;if(d===void 0&&!m)return;const g=this.getTransformTemplate();this.prevTransformTemplateValue=g?g(this.latestValues,""):void 0,this.updateSnapshot(),u&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(L1);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(O1);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(PO),this.nodes.forEach(DO),this.nodes.forEach(kO)):this.nodes.forEach(O1),this.clearAllSnapshots();const d=wn.now();en.delta=Ji(0,1e3/60,d-en.timestamp),en.timestamp=d,en.isProcessing=!0,Rg.update.process(en),Rg.preRender.process(en),Rg.render.process(en),en.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Fx.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(OO),this.sharedNodes.forEach(zO)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,ct.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){ct.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!_n(this.snapshot.measuredBox.x)&&!_n(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let m=0;m<this.path.length;m++)this.path[m].updateScroll();const u=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Lt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:d}=this.options;d&&d.notify("LayoutMeasure",this.layout.layoutBox,u?u.layoutBox:void 0)}updateScroll(u="measure"){let d=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===u&&(d=!1),d&&this.instance){const m=s(this.instance);this.scroll={animationId:this.root.animationId,phase:u,isRoot:m,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!a)return;const u=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,d=this.projectionDelta&&!GA(this.projectionDelta),m=this.getTransformTemplate(),g=m?m(this.latestValues,""):void 0,x=g!==this.prevTransformTemplateValue;u&&this.instance&&(d||Va(this.latestValues)||x)&&(a(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}measure(u=!0){const d=this.measurePageBox();let m=this.removeElementScroll(d);return u&&(m=this.removeTransform(m)),HO(m),{animationId:this.root.animationId,measuredBox:d,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){var g;const{visualElement:u}=this.options;if(!u)return Lt();const d=u.measureViewportBox();if(!(((g=this.scroll)==null?void 0:g.wasRoot)||this.path.some($O))){const{scroll:x}=this.root;x&&(nl(d.x,x.offset.x),nl(d.y,x.offset.y))}return d}removeElementScroll(u){var m;const d=Lt();if(yi(d,u),(m=this.scroll)!=null&&m.wasRoot)return d;for(let g=0;g<this.path.length;g++){const x=this.path[g],{scroll:v,options:T}=x;x!==this.root&&v&&T.layoutScroll&&(v.wasRoot&&yi(d,u),nl(d.x,v.offset.x),nl(d.y,v.offset.y))}return d}applyTransform(u,d=!1){const m=Lt();yi(m,u);for(let g=0;g<this.path.length;g++){const x=this.path[g];!d&&x.options.layoutScroll&&x.scroll&&x!==x.root&&il(m,{x:-x.scroll.offset.x,y:-x.scroll.offset.y}),Va(x.latestValues)&&il(m,x.latestValues)}return Va(this.latestValues)&&il(m,this.latestValues),m}removeTransform(u){const d=Lt();yi(d,u);for(let m=0;m<this.path.length;m++){const g=this.path[m];if(!g.instance||!Va(g.latestValues))continue;Iy(g.latestValues)&&g.updateSnapshot();const x=Lt(),v=g.measurePageBox();yi(x,v),E1(d,g.latestValues,g.snapshot?g.snapshot.layoutBox:void 0,x)}return Va(this.latestValues)&&E1(d,this.latestValues),d}setTargetDelta(u){this.targetDelta=u,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(u){this.options={...this.options,...u,crossfade:u.crossfade!==void 0?u.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==en.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(u=!1){var E;const d=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=d.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=d.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=d.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==d;if(!(u||m&&this.isSharedProjectionDirty||this.isProjectionDirty||(E=this.parent)!=null&&E.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:x,layoutId:v}=this.options;if(!this.layout||!(x||v))return;this.resolvedRelativeTargetAt=en.timestamp;const T=this.getClosestProjectingParent();T&&this.linkedParentVersion!==T.layoutVersion&&!T.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(T&&T.layout?this.createRelativeTarget(T,this.layout.layoutBox,T.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Lt(),this.targetWithTransforms=Lt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),pO(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):yi(this.target,this.layout.layoutBox),IA(this.target,this.targetDelta)):yi(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,T&&!!T.resumingFrom==!!this.resumingFrom&&!T.options.layoutScroll&&T.target&&this.animationProgress!==1?this.createRelativeTarget(T,this.target,T.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||Iy(this.parent.latestValues)||CA(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(u,d,m){this.relativeParent=u,this.linkedParentVersion=u.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Lt(),this.relativeTargetOrigin=Lt(),hf(this.relativeTargetOrigin,d,m),yi(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var C;const u=this.getLead(),d=!!this.resumingFrom||this!==u;let m=!0;if((this.isProjectionDirty||(C=this.parent)!=null&&C.isProjectionDirty)&&(m=!1),d&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===en.timestamp&&(m=!1),m)return;const{layout:g,layoutId:x}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(g||x))return;yi(this.layoutCorrected,this.layout.layoutBox);const v=this.treeScale.x,T=this.treeScale.y;q4(this.layoutCorrected,this.treeScale,this.path,d),u.layout&&!u.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(u.target=u.layout.layoutBox,u.targetWithTransforms=Lt());const{target:E}=u;if(!E){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(A1(this.prevProjectionDelta.x,this.projectionDelta.x),A1(this.prevProjectionDelta.y,this.projectionDelta.y)),au(this.projectionDelta,this.layoutCorrected,E,this.latestValues),(this.treeScale.x!==v||this.treeScale.y!==T||!I1(this.projectionDelta.x,this.prevProjectionDelta.x)||!I1(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",E))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(u=!0){var d;if((d=this.options.visualElement)==null||d.scheduleRender(),u){const m=this.getStack();m&&m.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=tl(),this.projectionDelta=tl(),this.projectionDeltaWithTransform=tl()}setAnimationOrigin(u,d=!1){const m=this.snapshot,g=m?m.latestValues:{},x={...this.latestValues},v=tl();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!d;const T=Lt(),E=m?m.source:void 0,C=this.layout?this.layout.source:void 0,L=E!==C,R=this.getStack(),V=!R||R.members.length<=1,G=!!(L&&!V&&this.options.crossfade===!0&&!this.path.some(GO));this.animationProgress=0;let z;this.mixTargetDelta=ne=>{const re=ne/1e3;V1(v.x,u.x,re),V1(v.y,u.y,re),this.setTargetDelta(v),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(hf(T,this.layout.layoutBox,this.relativeParent.layout.layoutBox),FO(this.relativeTarget,this.relativeTargetOrigin,T,re),z&&vO(this.relativeTarget,z)&&(this.isProjectionDirty=!1),z||(z=Lt()),yi(z,this.relativeTarget)),L&&(this.animationValues=x,_O(x,g,this.latestValues,re,G,V)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=re},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(u){var d,m,g;this.notifyListeners("animationStart"),(d=this.currentAnimation)==null||d.stop(),(g=(m=this.resumingFrom)==null?void 0:m.currentAnimation)==null||g.stop(),this.pendingAnimation&&(Qr(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=ct.update(()=>{qd.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=fl(0)),this.currentAnimation=AO(this.motionValue,[0,1e3],{...u,velocity:0,isSync:!0,onUpdate:x=>{this.mixTargetDelta(x),u.onUpdate&&u.onUpdate(x)},onStop:()=>{},onComplete:()=>{u.onComplete&&u.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const u=this.getStack();u&&u.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(CO),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const u=this.getLead();let{targetWithTransforms:d,target:m,layout:g,latestValues:x}=u;if(!(!d||!m||!g)){if(this!==u&&this.layout&&g&&WA(this.options.animationType,this.layout.layoutBox,g.layoutBox)){m=this.target||Lt
vendor: 4,715 bytes, line 325
325();const v=_n(this.layout.layoutBox.x);m.x.min=u.target.x.min,m.x.max=m.x.min+v;const T=_n(this.layout.layoutBox.y);m.y.min=u.target.y.min,m.y.max=m.y.min+T}yi(d,m),il(d,x),au(this.projectionDeltaWithTransform,this.layoutCorrected,d,x)}}registerSharedNode(u,d){this.sharedNodes.has(u)||this.sharedNodes.set(u,new RO),this.sharedNodes.get(u).add(d);const g=d.options.initialPromotionConfig;d.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(d):void 0})}isLead(){const u=this.getStack();return u?u.lead===this:!0}getLead(){var d;const{layoutId:u}=this.options;return u?((d=this.getStack())==null?void 0:d.lead)||this:this}getPrevLead(){var d;const{layoutId:u}=this.options;return u?(d=this.getStack())==null?void 0:d.prevLead:void 0}getStack(){const{layoutId:u}=this.options;if(u)return this.root.sharedNodes.get(u)}promote({needsReset:u,transition:d,preserveFollowOpacity:m}={}){const g=this.getStack();g&&g.promote(this,m),u&&(this.projectionDelta=void 0,this.needsReset=!0),d&&this.setOptions({transition:d})}relegate(){const u=this.getStack();return u?u.relegate(this):!1}resetSkewAndRotation(){const{visualElement:u}=this.options;if(!u)return;let d=!1;const{latestValues:m}=u;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(d=!0),!d)return;const g={};m.z&&Vg("z",u,g,this.animationValues);for(let x=0;x<Pg.length;x++)Vg(`rotate${Pg[x]}`,u,g,this.animationValues),Vg(`skew${Pg[x]}`,u,g,this.animationValues);u.render();for(const x in g)u.setStaticValue(x,g[x]),this.animationValues&&(this.animationValues[x]=g[x]);u.scheduleRender()}applyProjectionStyles(u,d){if(!this.instance||this.isSVG)return;if(!this.isVisible){u.visibility="hidden";return}const m=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,u.visibility="",u.opacity="",u.pointerEvents=Gd(d==null?void 0:d.pointerEvents)||"",u.transform=m?m(this.latestValues,""):"none";return}const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){this.options.layoutId&&(u.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,u.pointerEvents=Gd(d==null?void 0:d.pointerEvents)||""),this.hasProjected&&!Va(this.latestValues)&&(u.transform=m?m({},""):"none",this.hasProjected=!1);return}u.visibility="";const x=g.animationValues||g.latestValues;this.applyTransformsToTarget();let v=bO(this.projectionDeltaWithTransform,this.treeScale,x);m&&(v=m(x,v)),u.transform=v;const{x:T,y:E}=this.projectionDelta;u.transformOrigin=`${T.origin*100}% ${E.origin*100}% 0`,g.animationValues?u.opacity=g===this?x.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:x.opacityExit:u.opacity=g===this?x.opacity!==void 0?x.opacity:"":x.opacityExit!==void 0?x.opacityExit:0;for(const C in ky){if(x[C]===void 0)continue;const{correct:L,applyTo:R,isCSSVariable:V}=ky[C],G=v==="none"?x[C]:L(x[C],g);if(R){const z=R.length;for(let ne=0;ne<z;ne++)u[R[ne]]=G}else V?this.options.visualElement.renderState.vars[C]=G:u[C]=G}this.options.layoutId&&(u.pointerEvents=g===this?Gd(d==null?void 0:d.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(u=>{var d;return(d=u.currentAnimation)==null?void 0:d.stop()}),this.root.nodes.forEach(L1),this.root.sharedNodes.clear()}}}function DO(t){t.updateLayout()}function kO(t){var n;const e=((n=t.resumeFrom)==null?void 0:n.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&e&&t.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:a}=t.layout,{animationType:l}=t.options,u=e.source!==t.layout.source;l==="size"?ai(v=>{const T=u?e.measuredBox[v]:e.layoutBox[v],E=_n(T);T.min=s[v].min,T.max=T.min+E}):WA(l,e.layoutBox,s)&&ai(v=>{const T=u?e.measuredBox[v]:e.layoutBox[v],E=_n(s[v]);T.max=T.min+E,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[v].max=t.relativeTarget[v].min+E)});const d=tl();au(d,s,e.layoutBox);const m=tl();u?au(m,t.applyTransform(a,!0),e.measuredBox):au(m,s,e.layoutBox);const g=!GA(d);let x=!1;if(!t.resumeFrom){const v=t.getClosestProjectingParent();if(v&&!v.resumeFrom){const{snapshot:T,layout:E}=v;if(T&&E){const C=Lt();hf(C,e.layoutBox,T.layoutBox);const L=Lt();hf(L,s,E.layoutBox),qA(C,L)||(x=!0),v.options.layoutRoot&&(t.relativeTarget=L,t.relativeTargetOrigin=C,t.relativeParent=v)}}}t.notifyListeners("didUpdate",{layout:s,snapshot:e,delta:m,layoutDelta:d,hasLayoutChanged:g,hasRelativeLayoutChanged:x})}else if(t.isLead()){const{onExitComplete:s}=t.options;s&&s()}t.options.transition=void 0}function MO(t){t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=!!(t.
vendor: 31,276 bytes, lines 325-333
325isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function LO(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function OO(t){t.clearSnapshot()}function L1(t){t.clearMeasurements()}function O1(t){t.isLayoutDirty=!1}function PO(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function P1(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function VO(t){t.resolveTargetDelta()}function UO(t){t.calcProjection()}function BO(t){t.resetSkewAndRotation()}function zO(t){t.removeLeadSnapshot()}function V1(t,e,n){t.translate=mt(e.translate,0,n),t.scale=mt(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function U1(t,e,n,s){t.min=mt(e.min,n.min,s),t.max=mt(e.max,n.max,s)}function FO(t,e,n,s){U1(t.x,e.x,n.x,s),U1(t.y,e.y,n.y,s)}function GO(t){return t.animationValues&&t.animationValues.opacityExit!==void 0}const qO={duration:.45,ease:[.4,0,.1,1]},B1=t=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),z1=B1("applewebkit/")&&!B1("chrome/")?Math.round:ci;function F1(t){t.min=z1(t.min),t.max=z1(t.max)}function HO(t){F1(t.x),F1(t.y)}function WA(t,e,n){return t==="position"||t==="preserve-aspect"&&!mO(C1(e),C1(n),.2)}function $O(t){var e;return t!==t.root&&((e=t.scroll)==null?void 0:e.wasRoot)}const KO=YA({attachResizeListener:(t,e)=>xu(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Ug={current:void 0},QA=YA({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Ug.current){const t=new KO({});t.mount(window),t.setOptions({layoutScroll:!0}),Ug.current=t}return Ug.current},resetTransform:(t,e)=>{t.style.transform=e!==void 0?e:"none"},checkIsScrollRoot:t=>window.getComputedStyle(t).position==="fixed"}),Yx=j.createContext({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"});function G1(t,e){if(typeof t=="function")return t(e);t!=null&&(t.current=e)}function YO(...t){return e=>{let n=!1;const s=t.map(a=>{const l=G1(a,e);return!n&&typeof l=="function"&&(n=!0),l});if(n)return()=>{for(let a=0;a<s.length;a++){const l=s[a];typeof l=="function"?l():G1(t[a],null)}}}}function WO(...t){return j.useCallback(YO(...t),t)}class QO extends j.Component{getSnapshotBeforeUpdate(e){const n=this.props.childRef.current;if(n&&e.isPresent&&!this.props.isPresent){const s=n.offsetParent,a=vA(s)&&s.offsetWidth||0,l=this.props.sizeRef.current;l.height=n.offsetHeight||0,l.width=n.offsetWidth||0,l.top=n.offsetTop,l.left=n.offsetLeft,l.right=a-l.width-l.left}return null}componentDidUpdate(){}render(){return this.props.children}}function XO({children:t,isPresent:e,anchorX:n,root:s}){var x;const a=j.useId(),l=j.useRef(null),u=j.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:d}=j.useContext(Yx),m=((x=t.props)==null?void 0:x.ref)??(t==null?void 0:t.ref),g=WO(l,m);return j.useInsertionEffect(()=>{const{width:v,height:T,top:E,left:C,right:L}=u.current;if(e||!l.current||!v||!T)return;const R=n==="left"?`left: ${C}`:`right: ${L}`;l.current.dataset.motionPopId=a;const V=document.createElement("style");d&&(V.nonce=d);const G=s??document.head;return G.appendChild(V),V.sheet&&V.sheet.insertRule(` 326 [data-motion-pop-id="${a}"] { 327 position: absolute !important; 328 width: ${v}px !important; 329 height: ${T}px !important; 330 ${R}px !important; 331 top: ${E}px !important; 332 } 333 `),()=>{G.contains(V)&&G.removeChild(V)}},[e]),c.jsx(QO,{isPresent:e,childRef:l,sizeRef:u,children:j.cloneElement(t,{ref:g})})}const JO=({children:t,initial:e,isPresent:n,onExitComplete:s,custom:a,presenceAffectsLayout:l,mode:u,anchorX:d,root:m})=>{const g=bx(ZO),x=j.useId();let v=!0,T=j.useMemo(()=>(v=!1,{id:x,initial:e,isPresent:n,custom:a,onExitComplete:E=>{g.set(E,!0);for(const C of g.values())if(!C)return;s&&s()},register:E=>(g.set(E,!1),()=>g.delete(E))}),[n,g,s]);return l&&v&&(T={...T}),j.useMemo(()=>{g.forEach((E,C)=>g.set(C,!1))},[n]),j.useEffect(()=>{!n&&!g.size&&s&&s()},[n]),u==="popLayout"&&(t=c.jsx(XO,{isPresent:n,anchorX:d,root:m,children:t})),c.jsx(Df.Provider,{value:T,children:t})};function ZO(){return new Map}function XA(t=!0){const e=j.useContext(Df);if(e===null)return[!0,null];const{isPresent:n,onExitComplete:s,register:a}=e,l=j.useId();j.useEffect(()=>{if(t)return a(l)},[t]);const u=j.useCallback(()=>t&&s&&s(l),[l,s,t]);return!n&&s?[!1,u]:[!0]}const Rd=t=>t.key||"";function q1(t){const e=[];return j.Children.forEach(t,n=>{j.isValidElement(n)&&e.push(n)}),e}const eP=({children:t,custom:e,initial:n=!0,onExitComplete:s,presenceAffectsLayout:a=!0,mode:l="sync",propagate:u=!1,anchorX:d="left",root:m})=>{const[g,x]=XA(u),v=j.useMemo(()=>q1(t),[t]),T=u&&!g?[]:v.map(Rd),E=j.useRef(!0),C=j.useRef(v),L=bx(()=>new Map),R=j.useRef(new Set),[V,G]=j.useState(v),[z,ne]=j.useState(v);jS(()=>{E.current=!1,C.current=v;for(let D=0;D<z.length;D++){const A=Rd(z[D]);T.includes(A)?(L.delete(A),R.current.delete(A)):L.get(A)!==!0&&L.set(A,!1)}},[z,T.length,T.join("-")]);const re=[];if(v!==V){let D=[...v];for(let A=0;A<z.length;A++){const I=z[A],P=Rd(I);T.includes(P)||(D.splice(A,0,I),re.push(I))}return l==="wait"&&re.length&&(D=re),ne(q1(D)),G(v),null}const{forceRender:le}=j.useContext(vx);return c.jsx(c.Fragment,{children:z.map(D=>{const A=Rd(D),I=u&&!g?!1:v===z||T.includes(A),P=()=>{if(R.current.has(A))return;if(R.current.add(A),L.has(A))L.set(A,!0);else return;let F=!0;L.forEach(U=>{U||(F=!1)}),F&&(le==null||le(),ne(C.current),u&&(x==null||x()),s&&s())};return c.jsx(JO,{isPresent:I,initial:!E.current||n?void 0:!1,custom:e,presenceAffectsLayout:a,mode:l,root:m,onExitComplete:I?void 0:P,anchorX:d,children:D},A)})})},JA=j.createContext({strict:!1}),H1={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]};let $1=!1;function tP(){if($1)return;const t={};for(const e in H1)t[e]={isEnabled:n=>H1[e].some(s=>!!n[s])};NA(t),$1=!0}function ZA(){return tP(),B4()}function nP(t){const e=ZA();for(const n in t)e[n]={...e[n],...t[n]};NA(e)}const iP=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function df(t){return t.startsWith("while")||t.startsWith("drag")&&t!=="draggable"||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||iP.has(t)}let eN=t=>!df(t);function sP(t){typeof t=="function"&&(eN=e=>e.startsWith("on")?!df(e):t(e))}try{sP(require("@emotion/is-prop-valid").default)}catch{}function rP(t,e,n){const s={};for(const a in t)a==="values"&&typeof t.values=="object"||(eN(a)||n===!0&&df(a)||!e&&!df(a)||t.draggable&&a.startsWith("onDrag"))&&(s[a]=t[a]);return s}const Lf=j.createContext({});function aP(t,e){if(Mf(t)){const{initial:n,animate:s}=t;return{initial:n===!1||yu(n)?n:void 0,animate:yu(s)?s:void 0}}return t.inherit!==!1?e:{}}function oP(t){const{initial:e,animate:n}=aP(t,j.useContext(Lf));return j.useMemo(()=>({initial:e,animate:n}),[K1(e),K1(n)])}function K1(t){return Array.isArray(t)?t.join(" "):t}const Wx=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function tN(t,e,n){for(const s in e)!fn(e[s])&&!MA(s,n)&&(t[s]=e[s])}function lP({transformTemplate:t},e){return j.useMemo(()=>{const n=Wx();return $x(n,e,t),Object.assign({},n.vars,n.style)},[e])}function cP(t,e){const n=t.style||{},s={};return tN(s,n,t),Object.assign(s,lP(t,e)),s}function uP(t,e){const n={},s=cP(t,e);return t.drag&&t.dragListener!==!1&&(n.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=t.drag===!0?"none":`pan-${t.drag==="x"?"y":"x"}`),t.tabIndex===void 0&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=s,n}const nN=()=>({...Wx(),attrs:{}});function hP(t,e,n,s){const a=j.useMemo(()=>{const l=nN();return LA(l,e,PA(s),t.transformTemplate,t.style),{...l.attrs,style:{...l.style}}},[e]);if(t.style){const l={};tN(l,t.style,t),a.style={...l,...a.style}}return a}const dP=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function Qx(t){return typeof t!="string"||t.includes("-")?!1:!!(dP.indexOf(t)>-1||/[A-Z]/u.test(t))}function fP(t,e,n,{latestValues:s},a,l=!1,u){const m=(u??Qx(t)?hP:uP)(e,s,a,t),g=rP(e,typeof t=="string",l),x=t!==j.Fragment?{...g,...m,ref:n}:{},{children:v}=e,T=j.useMemo(()=>fn(v)?v.get():v,[v]);return j.createElement(t,{...x,children:T})}function mP({scrapeMotionValuesFromProps:t,createRenderState:e},n,s,a){return{latestValues:pP(n,s,a,t),renderState:e()}}function pP(t,e,n,s){const a={},l=s(t,{});for(const T in l)a[T]=Gd(l[T]);let{initial:u,animate:d}=t;const m=Mf(t),g=AA(t);e&&g&&!m&&t.inherit!==!1&&(u===void 0&&(u=e.initial),d===void 0&&(d=e.animate));let x=n?n.initial===!1:!1;x=x||u===!1;const v=x?d:u;if(v&&typeof v!="boolean"&&!kf(v)){const T=Array.isArray(v)?v:[v];for(let E=0;E<T.length;E++){const C=Ux(t,T[E]);if(C){const{transitionEnd:L,transition:R,...V}=C;for(const G in V){let z=V[G];if(Array.isArray(z)){const ne=x?z.length-1:0;z=z[ne]}z!==null&&(a[G]=z)}for(const G in L)a[G]=L[G]}}}return a}const iN=t=>(e,n)=>{const s=j.useContext(Lf),a=j.useContext(Df),l=()=>mP(t,e,s,a);return n?l():bx(l)},gP=iN({scrapeMotionValuesFromProps:Kx,createRenderState:Wx}),yP=iN({scrapeMotionValuesFromProps:VA,createRenderState:nN}),xP=Symbol.for("motionComponentSymbol");function vP(t,e,n){const s=j.useRef(n);j.useInsertionEffect(()=>{s.current=n});const a=j.useRef(null);return j.useCallback(l=>{var d;l&&((d=t.onMount)==null||d.call(t,l)),e&&(l?e.mount(l):e.unmount());const u=s.current;if(typeof u=="function")if(l){const m=u(l);typeof m=="function"&&(a.current=m)}else a.current?(a.current(),a.current=null):u(l);else u&&(u.current=l)},[e])}const sN=j.createContext({});function Xc(t){return t&&typeof t=="object"&&Object.prototype.hasOwnProperty.call(t,"current")}function bP(t,e,n,s,a,l){var R,V;const{visualElement:u}=j.useContext(Lf),d=j.useContext(JA),m=j.useContext(Df),g=j.useContext(Yx).reducedMotion,x=j.useRef(null);s=s||d.renderer,!x.current&&s&&(x.current=s(t,{visualState:e,parent:u,props:n,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:g,isSVG:l}));const v=x.current,T=j.useContext(sN);v&&!v.projection&&a&&(v.type==="html"||v.type==="svg")&&wP(x.current,n,a,T);const E=j.useRef(!1);j.useInsertionEffect(()=>{v&&E.current&&v.update(n,m)});const C=n[hA],L=j.useRef(!!C&&!((R=window.MotionHandoffIsComplete)!=null&&R.call(window,C))&&((V=window.MotionHasOptimisedAnimation)==null?void 0:V.call(window,C)));return jS(()=>{v&&(E.current=!0,window.MotionIsMounted=!0,v.updateFeatures(),v.scheduleRenderMicrotask(),L.current&&v.animationState&&v.animationState.animateChanges())}),j.useEffect(()=>{v&&(!L.current&&v.animationState&&v.animationState.animateChanges(),L.current&&(queueMicrotask(()=>{var G;(G=window.MotionHandoffMarkAsComplete)==null||G.call(window,C)}),L.current=!1),v.enteringChildren=void 0)}),v}function wP(t,e,n,s){const{layoutId:a,layout:l,drag:u,dragConstraints:d,layoutScroll:m,layoutRoot:g,layoutCrossfade:x}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:rN(t.parent)),t.projection.setOptions({layoutId:a,layout:l,alwaysMeasureLayout:!!u||d&&Xc(d),visualElement:t,animationType:typeof l=="string"?l:"both",initialPromotionConfig:s,crossfade:x,layoutScroll:m,layoutRoot:g})}function rN(t){if(t)return t.options.allowProjection!==!1?t.projection:rN(t.parent)}function Bg(t,{forwardMotionProps:e=!1,type:n}={},s,a){s&&nP(s);const l=n?n==="svg":Qx(t),u=l?yP:gP;function d(g,x){let v;const T={...j.useContext(Yx),...g,layoutId:_P(g)},{isStatic:E}=T,C=oP(g),L=u(g,E);if(!E&&NS){TP();const R=EP(T);v=R.MeasureLayout,C.visualElement=bP(t,L,T,a,R.ProjectionNode,l)}return c.jsxs(Lf.Provider,{value:C,children:[v&&C.visualElement?c.jsx(v,{visualElement:C.visualElement,...T}):null,fP(t,g,vP(L,C.visualElement,x),L,E,e,l)]})}d.displayName=`motion.${typeof t=="string"?t:`create(${t.displayName??t.name??""})`}`;const m=j.forwardRef(d);return m[xP]=t,m}function _P({layoutId:t}){const e=j.useContext(vx).id;return e&&t!==void 0?e+"-"+t:t}function TP(t,e){j.useContext(JA).strict}function EP(t){const e=ZA(),{drag:n,layout:s}=e;if(!n&&!s)return{};const a={...n,...s};return{MeasureLayout:n!=null&&n.isEnabled(t)||s!=null&&s.isEnabled(t)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}function SP(t,e){if(typeof Proxy>"u")return Bg;const n=new Map,s=(l,u)=>Bg(l,u,t,e),a=(l,u)=>s(l,u);return new Proxy(a,{get:(l,u)=>u==="create"?s:(n.has(u)||n.set(u,Bg(u,void 0,t,e)),n.get(u))})}const AP=(t,e)=>e.isSVG??Qx(t)?new iO(e):new X4(e,{allowProjection:t!==j.Fragment});class NP extends ia{constructor(e){super(e),e.animationState||(e.animationState=lO(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();kf(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:n}=this.node.prevProps||{};e!==n&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),(e=this.unmountControls)==null||e.call(this)}}let jP=0;class RP extends ia{constructor(){super(...arguments),this.id=jP++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:n}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===s)return;const a=this.node.animationState.setActive("exit",!e);n&&!e&&a.then(()=>{n(this.id)})}mount(){const{register:e,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),e&&(this.unmount=e(this.id))}unmount(){}}const CP={animation:{Feature:NP},exit:{Feature:RP}};function Uu(t){return{point:{x:t.pageX,y:t.pageY}}}const IP=t=>e=>Gx(e)&&t(e,Uu(e));function ou(t,e,n,s){return xu(t,e,IP(n),s)}const aN=({current:t})=>t?t.ownerDocument.defaultView:null,Y1=(t,e)=>Math.abs(t-e);function DP(t,e){const n=Y1(t.x,e.x),s=Y1(t.y,e.y);return Math.sqrt(n**2+s**2)}const W1=new Set(["auto","scroll"]);class oN{constructor(e,n,{transformPagePoint:s,contextWindow:a=window,dragSnapToOrigin:l=!1,distanceThreshold:u=3,element:d}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=E=>{this.handleScroll(E.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const E=Fg(this.lastMoveEventInfo,this.history),C=this.startEvent!==null,L=DP(E.offset,{x:0,y:0})>=this.distanceThreshold;if(!C&&!L)return;const{point:R}=E,{timestamp:V}=en;this.history.push({...R,timestamp:V});const{onStart:G,onMove:z}=this.handlers;C||(G&&G(this.lastMoveEvent,E),this.startEvent=this.lastMoveEvent),z&&z(this.lastMoveEvent,E)},this.handlePointerMove=(E,C)=>{this.lastMoveEvent=E,this.lastMoveEventInfo=zg(C,this.transformPagePoint),ct.update(this.updatePoint,!0)},this.handlePointerUp=(E,C)=>{this.end();const{onEnd:L,onSessionEnd:R,resumeAnimation:V}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&V&&V(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const G=Fg(E.type==="pointercancel"?this.lastMoveEventInfo:zg(C,this.transformPagePoint),this.history);this.startEvent&&L&&L(E,G),R&&R(E,G)},!Gx(e))return;this.dragSnapToOrigin=l,this.handlers=n,this.transformPagePoint=s,this.distanceThreshold=u,this.contextWindow=a||window;const m=Uu(e),g=zg(m,this.transformPagePoint),{point:x}=g,{timestamp:v}=en;this.history=[{...x,timestamp:v}];const{onSessionStart:T}=n;T&&T(e,Fg(g,this.history)),this.removeListeners=Ou(ou(this.contextWindow,"pointermove",this.handlePointerMove),ou(this.contextWindow,"pointerup",this.handlePointerUp),ou(this.contextWindow,"pointercancel",this.handlePointerUp)),d&&this.startScrollTracking(d)}startScrollTracking(e){let n=e.parentElement;for(;n;){const s=getComputedStyle(n);(W1.has(s.overflowX)||W1.has(s.overflowY))&&this.scrollPositions.set(n,{x:n.scrollLeft,y:n.scrollTop}),n=n.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener("scroll",this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(e){const n=this.scrollPositions.get(e);if(!n)return;const s=e===window,a=s?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},l={x:a.x-n.x,y:a.y-n.y};l.x===0&&l.y===0||(s?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=l.x,this.lastMoveEventInfo.point.y+=l.y):this.history.length>0&&(this.history[0].x-=l.x,this.history[0].y-=l.y),this.scrollPositions.set(e,a),ct.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),Qr(this.updatePoint)}}function zg(t,e){return e?{point:e(t.point)}:t}function Q1(t,e){return{x:t.x-e.x,y:t.y-e.y}}function Fg({point:t},e){return{point:t,delta:Q1(t,lN(e)),offset:Q1(t,kP(e)),velocity:MP(e,.1)}}function kP(t){return t[0]}function lN(t){return t[t.length-1]}function MP(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,s=null;const a=lN(t);for(;n>=0&&(s=t[n],!(a.timestamp-s.timestamp>Ls(e)));)n--;if(!s)return{x:0,y:0};const l=li(a.timestamp-s.timestamp);if(l===0)return{x:0,y:0};const u={x:(a.x-s.x)/l,y:(a.y-s.y)/l};return u.x===1/0&&(u.x=0),u.y===1/0&&(u.y=0),u}function LP(t,{min:e,max:n},s){return e!==void 0&&t<e?t=s?mt(e,t,s.min):Math.max(t,e):n!==void 0&&t>n&&(t=s?mt(n,t,s.max):Math.min(t,n)),t}function X1(t,e,n){return{min:e!==void 0?t.min+e:void 0,max:n!==void 0?t.max+n-(t.max-t.min):void 0}}function OP(t,{top:e,left:n,bottom:s,right:a}){return{x:X1(t.x,n,a),y:X1(t.y,e,s)}}function J1(t,e){let n=e.min-t.min,s=e.max-t.max;return e.max-e.min<t.max-t.min&&([n,s]=[s,n]),{min:n,max:s}}function PP(t,e){return{x:J1(t.x,e.x),y:J1(t.y,e.y)}}function VP(t,e){let n=.5;const s=_n(t),a=_n(e);return a>s?n=mu(e.min,e.max-s,t.min):s>a&&(n=mu(t.min,t.max-a,e.min)),Ji(0,1,n)}function UP(t,e){const n={};return e.min!==void 0&&(n.min=e.min-t.min),e.max!==void 0&&(n.max=e.max-t.min),n}const My=.35;function BP(t=My){return t===!1?t=0:t===!0&&(t=My),{x:Z1(t,"left","right"),y:Z1(t,"top","bottom")}}function Z1(t,e,n){return{min:eT(t,e),max:eT(t,n)}}function eT(t,e){return typeof t=="number"?t:t[e]||0}const zP=new WeakMap;class FP{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Lt(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:n=!1,distanceThreshold:s}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const l=v=>{n?(this.stopAnimation(),this.snapToCursor(Uu(v).point)):this.pauseAnimation()},u=(v,T)=>{this.stopAnimation();const{drag:E,dragPropagation:C,onDragStart:L}=this.getProps();if(E&&!C&&(this.openDragLock&&this.openDragLock(),this.openDragLock=j4(E),!this.openDragLock))return;this.latestPointerEvent=v,this.latestPanInfo=T,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),ai(V=>{let G=this.getAxisMotionValue(V).get()||0;if($i.test(G)){const{projection:z}=this.visualElement;if(z&&z.layout){const ne=z.layout.layoutBox[V];ne&&(G=_n(ne)*(parseFloat(G)/100))}}this.originPoint[V]=G}),L&&ct.postRender(()=>L(v,T)),Ny(this.visualElement,"transform");const{animationState:R}=this.visualElement;R&&R.setActive("whileDrag",!0)},d=(v,T)=>{this.latestPointerEvent=v,this.latestPanInfo=T;const{dragPropagation:E,dragDirectionLock:C,onDirectionLock:L,onDrag:R}=this.getProps();if(!E&&!this.openDragLock)return;const{offset:V}=T;if(C&&this.currentDirection===null){this.currentDirection=GP(V),this.currentDirection!==null&&L&&L(this.currentDirection);return}this.updateAxis("x",T.point,V),this.updateAxis("y",T.point,V),this.visualElement.render(),R&&R(v,T)},m=(v,T)=>{this.latestPointerEvent=v,this.latestPanInfo=T,this.stop(v,T),this.latestPointerEvent=null,this.latestPanInfo=null},g=()=>ai(v=>{var T;return this.getAnimationState(v)==="paused"&&((T=this.getAxisMotionValue(v).animation)==null?void 0:T.play())}),{dragSnapToOrigin:x}=this.getProps();this.panSession=new oN(e,{onSessionStart:l,onStart:u,onMove:d,onSessionEnd:m,resumeAnimation:g},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:x,distanceThreshold:s,contextWindow:aN(this.visualElement),element:this.visualElement.current})}stop(e,n){const s=e||this.latestPointerEvent,a=n||this.latestPanInfo,l=this.isDragging;if(this.cancel(),!l||!a||!s)return;const{velocity:u}=a;this.startAnimation(u);const{onDragEnd:d}=this.getProps();d&&ct.postRender(()=>d(s,a))}cancel(){this.isDragging=!1;const{projection:e,animationState:n}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(e,n,s){const{drag:a}=this.getProps();if(!s||!Cd(e,a,this.currentDirection))return;const l=this.getAxisMotionValue(e);let u=this.originPoint[e]+s[e];this.constraints&&this.constraints[e]&&(u=LP(u,this.constraints[e],this.elastic[e])),l.set(u)}resolveConstraints(){var l;const{dragConstraints:e,dragElastic:n}=this.getProps(),s=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(l=this.visualElement.projection)==null?void 0:l.layout,a=this.constraints;e&&Xc(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):e&&s?this.constraints=OP(s.layoutBox,e):this.constraints=!1,this.elastic=BP(n),a!==this.constraints&&s&&this.constraints&&!this.hasMutatedConstraints&&ai(u=>{this.constraints!==!1&&this.getAxisMotionValue(u)&&(this.constraints[u]=UP(s.layoutBox[u],this.constraints[u]))})}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:n}=this.getProps();if(!e||!Xc(e))return!1;const s=e.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const l=H4(s,a.root,this.visualElement.getTransformPagePoint());let u=PP(a.layout.layoutBox,l);if(n){const d=n(F4(u));this.hasMutatedConstraints=!!d,d&&(u=RA(d))}return u}startAnimation(e){const{drag:n,dragMomentum:s,dragElastic:a,dragTransition:l,dragSnapToOrigin:u,onDragTransitionEnd:d}=this.getProps(),m=this.constraints||{},g=ai(x=>{if(!Cd(x,n,this.currentDirection))return;let v=m&&m[x]||{};u&&(v={min:0,max:0});const T=a?200:1e6,E=a?40:1e7,C={type:"inertia",velocity:s?e[x]:0,bounceStiffness:T,bounceDamping:E,timeConstant:750,restDelta:1,restSpeed:10,...l,...v};return this.startAxisValueAnimation(x,C)});return Promise.all(g).then(d)}startAxisValueAnimation(e,n){const s=this.getAxisMotionValue(e);return Ny(this.visualElement,e),s.start(Vx(e,s,0,n,this.visualElement,!1))}stopAnimation(){ai(e=>this.getAxisMotionValue(e).stop())}pauseAnimation(){ai(e=>{var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.pause()})}getAnimationState(e){var n;return(n=this.getAxisMotionValue(e).animation)==null?void 0:n.state}getAxisMotionValue(e){const n=`_drag${e.toUpperCase()}`,s=this.visualElement.getProps(),a=s[n];return a||this.visualElement.getValue(e,(s.initial?s.initial[e]:void 0)||0)}snapToCursor(e){ai(n=>{const{drag:s}=this.getProps();if(!Cd(n,s,this.currentDirection))return;const{projection:a}=this.visualElement,l=this.getAxisMotionValue(n);if(a&&a.layout){const{min:u,max:d}=a.layout.layoutBox[n],m=l.get()||0;l.set(e[n]-mt(u,d,.5)+m)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:n}=this.getProps(),{projection:s}=this.visualElement;if(!Xc(n)||!s||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};ai(u=>{const d=this.getAxisMotionValue(u);if(d&&this.constraints!==!1){const m=d.get();a[u]=VP({min:m,max:m},this.constraints[u])}});const{transformTemplate:l}=this.visualElement.getProps();this.visualElement.current.style.transform=l?l({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.resolveConstraints(),ai(u=>{if(!Cd(u,e,null))return;const d=this.getAxisMotionValue(u),{min:m,max:g}=this.constraints[u];d.set(mt(m,g,a[u]))})}addListeners(){if(!this.visualElement.current)return;zP.set(this.visualElement,this);const e=this.visualElement.current,n=ou(e,"pointerdown",m=>{const{drag:g,dragListener:x=!0}=this.getProps();g&&x&&!TA(m.target)&&this.start(m)}),s=()=>{const{dragConstraints:m}=this.getProps();Xc(m)&&m.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,l=a.addEventListener("measure",s);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),ct.read(s);const u=xu(window,"resize",()=>this.scalePositionWithinConstraints()),d=a.addEventListener("didUpdate",(({delta:m,hasLayoutChanged:g})=>{this.isDragging&&g&&(ai(x=>{const v=this.getAxisMotionValue(x);v&&(this.originPoint[x]+=m[x].translate,v.set(v.get()+m[x].translate))}),this.visualElement.render())}));return()=>{u(),n(),l(),d&&d()}}getProps(){const e=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:s=!1,dragPropagation:a=!1,dragConstraints:l=!1,dragElastic:u=My,dragMomentum:d=!0}=e;return{...e,drag:n,dragDirectionLock:s,dragPropagation:a,dragConstraints:l,dragElastic:u,dragMomentum:d}}}function Cd(t,e,n){return(e===!0||e===t)&&(n===null||n===t)}function GP(t,e=10){let n=null;return Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x"),n}class qP extends ia{constructor(e){super(e),this.removeGroupControls=ci,this.removeListeners=ci,this.controls=new FP(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ci}update(){const{dragControls:e}=this.node.getProps(),{dragControls:n}=this.node.prevProps||{};e!==n&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners()}}const tT=t=>(e,n)=>{t&&ct.postRender(()=>t(e,n))};class HP extends ia{constructor(){super(...arguments),this.removePointerDownListener=ci}onPointerDown(e){this.session=new oN(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:aN(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:n,onPan:s,onPanEnd:a}=this.node.getProps();return{onSessionStart:tT(e),onStart:tT(n),onMove:s,onEnd:(l,u)=>{delete this.session,a&&ct.postRender(()=>a(l,u))}}}mount(){this.removePointerDownListener=ou(this.node.current,"pointerdown",e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let Gg=!1;class $P extends j.Component{componentDidMount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s,layoutId:a}=this.props,{projection:l}=e;l&&(n.group&&n.group.add(l),s&&s.register&&a&&s.register(l),Gg&&l.root.didUpdate(),l.addEventListener("animationComplete",()=>{this.safeToRemove()}),l.setOptions({...l.options,onExitComplete:()=>this.safeToRemove()})),qd.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:n,visualElement:s,drag:a,isPresent:l}=this.props,{projection:u}=s;return u&&(u.isPresent=l,Gg=!0,a||e.layoutDependency!==n||n===void 0||e.isPresent!==l?u.willUpdate():this.safeToRemove(),e.isPresent!==l&&(l?u.promote():u.relegate()||ct.postRender(()=>{const d=u.getStack();(!d||!d.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Fx.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:e,layoutGroup:n,switchLayoutGroup:s}=this.props,{projection:a}=e;Gg=!0,a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),s&&s.deregister&&s.deregister(a))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function cN(t){const[e,n]=XA(),s=j.useContext(vx);return c.jsx($P,{...t,layoutGroup:s,switchLayoutGroup:j.useContext(sN),isPresent:e,safeToRemove:n})}const KP={pan:{Feature:HP},drag:{Feature:qP,ProjectionNode:QA,MeasureLayout:cN}};function nT(t,e,n){const{props:s}=t;t.animationState&&s.whileHover&&t.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,l=s[a];l&&ct.postRender(()=>l(e,Uu(e)))}class YP extends ia{mount(){const{current:e}=this.node;e&&(this.unmount=R4(e,(n,s)=>(nT(this.node,s,"Start"),a=>nT(this.node,a,"End"))))}unmount(){}}class WP extends ia{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ou(xu(this.node.current,"focus",()=>this.onFocus()),xu(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function iT(t,e,n){const{props:s}=t;if(t.current instanceof HTMLButtonElement&&t.current.disabled)return;t.animationState&&s.whileTap&&t.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),l=s[a];l&&ct.postRender(()=>l(e,Uu(e)))}class QP extends ia{mount(){const{current:e}=this.node;e&&(this.unmount=D4(e,(n,s)=>(iT(this.node,s,"Start"),(a,{success:l})=>iT(this.node,a,l?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const Ly=new WeakMap,qg=new WeakMap,XP=t=>{const e=Ly.get(t.target);e&&e(t)},JP=t=>{t.forEach(XP)};function ZP({root:t,...e}){const n=t||document;qg.has(n)||qg.set(n,{});const s=qg.get(n),a=JSON.stringify(e);return s[a]||(s[a]=new IntersectionObserver(JP,{root:t,...e})),s[a]}function eV(t,e,n){const s=ZP(e);return Ly.set(t,n),s.observe(t),()=>{Ly.delete(t),s.unobserve(t)}}const tV={some:0,all:1};
333class nV extends ia{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:n,margin:s,amount:a="some",once:l}=e,u={root:n?n.current:void 0,rootMargin:s,threshold:typeof a=="number"?a:tV[a]},d=m=>{const{isIntersecting:g}=m;if(this.isInView===g||(this.isInView=g,l&&!g&&this.hasEnteredView))return;g&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",g);const{onViewportEnter:x,onViewportLeave:v}=this.node.getProps(),T=g?x:v;T&&T(m)};return eV(this.node.current,u,d)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:e,prevProps:n}=this.node;["amount","margin","root"].some(iV(e,n))&&this.startObserver()}unmount(){}}function iV({viewport:t={}},{viewport:e={}}={}){return n=>t[n]!==e[n]}const sV={inView:{Feature:nV},tap:{Feature:QP},focus:{Feature:WP},hover:{Feature:YP}},rV={layout:{ProjectionNode:QA,MeasureLayout:cN}},aV={...CP,...sV,...KP,...rV},qe=SP(aV,AP),oV=()=>{const[t,e]=j.useState(0),[n,s]=j.useState(!0),a=j.useRef([]);j.useEffect(()=>{jg.forEach((u,d)=>{if(u.type!=="video")return;const m=document.createElement("video");m.muted=!0,m.playsInline=!0,m.preload="auto",U_(u.src).forEach(g=>{const x=document.createElement("source");x.src=g,x.type="video/mp4",m.appendChild(x)}),m.load()})},[]),j.useEffect(()=>{const u=setInterval(()=>{s(!1),e(d=>(d+1)%jg.length)},8e3);return()=>clearInterval(u)},[]);const l=jg[t];return c.jsxs("section",{className:"relative h-[50vh] sm:h-[60vh] md:h-[75vh] lg:h-screen min-h-[300px] sm:min-h-[400px] w-full overflow-hidden bg-ln-dark mb-12 md:mb-20",children:[c.jsx("div",{className:"absolute inset-0 z-0",children:c.jsx(eP,{mode:"sync",children:c.jsxs(qe.div,{initial:n?{opacity:1}:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:1.2},className:"absolute inset-0 w-full h-full",children:[l.type==="video"?c.jsx("video",{ref:u=>{a.current[t]=u},autoPlay:!0,muted:!0,loop:!0,playsInline:!0,preload:"auto",className:"absolute inset-0 w-full h-full object-cover object-center",style:{minHeight:"100%",minWidth:"100%"},onLoadedData:()=>{const u=a.current[t];u!=null&&u.paused&&u.play().catch(()=>{})},onCanPlay:()=>{const u=a.current[t];u!=null&&u.paused&&u.play().catch(()=>{})},children:U_(l.src).map(u=>c.jsx("source",{src:u,type:"video/mp4"},u))}):c.jsx(Mn,{src:l.src,alt:"Let's Game Now - India's premier esports platform. Competitive gaming, tournaments, FIFA, BGMI, Valorant, Free Fire.",className:"absolute inset-0 w-full h-full object-cover object-center",loading:"eager",style:{minHeight:"100%",minWidth:"100%"}}),c.jsx("div",{className:"absolute inset-0 bg-gradient-to-b from-black/40 via-black/20 to-black/90"})]},t)})}),c.jsx("div",{className:"absolute bottom-0 left-0 right-0 z-20 pb-8 sm:pb-12 md:pb-24 px-4 sm:px-6 md:px-8",children:c.jsxs("div",{className:"container mx-auto max-w-5xl",children:[c.jsx(qe.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:1,delay:.5},className:"font-display text-lg sm:text-xl md:text-3xl lg:text-5xl font-medium leading-snug sm:leading-tight text-white tracking-tight",children:"Experience the next evolution of competitive gaming"}),c.jsx(qe.div,{initial:{width:0},animate:{width:"30%"},transition:{duration:1.5,delay:1},className:"h-1 bg-gradient-to-r from-ln-red to-ln-cyan mt-4 sm:mt-6 md:mt-8"})]})})]})},lV=()=>c.jsxs("section",{className:"py-12 md:py-20 bg-ln-dark",children:[c.jsx("div",{className:"container mx-auto px-4 sm:px-6 md:px-8 mb-10 md:mb-16",children:c.jsxs("div",{className:"border-l-2 border-ln-cyan pl-4 sm:pl-6 text-left",children:[c.jsx("h2",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-7xl font-display font-bold text-white mb-1 tracking-tighter",children:"TRUSTED"}),c.jsx("h2",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-7xl font-display font-bold text-ln-cyan tracking-tighter",children:"BY"})]})}),c.jsx("div",{className:"relative flex overflow-x-hidden border-y border-white/5 py-6 md:py-8 bg-white/[0.02]",children:c.jsx("div",{className:"animate-marquee whitespace-nowrap flex gap-12 md:gap-24 items-center pl-12 md:pl-24",children:[...F_,...F_].map((t,e)=>c.jsx("div",{className:"flex items-center group cursor-pointer",children:c.jsx("span",{className:"text-2xl md:text-3xl lg:text-4xl font-display font-bold text-white/40 group-hover:text-white transition-colors duration-500 uppercase tracking-tighter",children:t.name})},`${t.name}-${e}`))})})]}),Xx="https://play.google.com/store/apps/details?id=com.letsgamenow.bharatrun&pcampaignid=web_share",uN=({className:t=""})=>c.jsxs("a",{href:Xx,target:"_blank",rel:"noopener noreferrer",className:`inline-flex items-center gap-3 px-8 sm:px-10 py-4 sm:py-5 bg-br-orange text-white font-display font-bold uppercase text-[10px] tracking-[0.2em] rounded-sm hover:bg-br-orange/90 transition-all shadow-lg shadow-br-orange/20 ${t}`,children:[c.jsx("svg",{viewBox:"0 0 24 24",className:"w-5 h-5 fill-current shrink-0","aria-hidden":"true",children:c.jsx("path",{d:"M3.609 1.814L13.792 12 3.61 22.186a1.003 1.003 0 0 1-.601-.92V2.734a1 1 0 0 1 .601-.92zm
33310.89 10.893l2.302 2.302-10.937 6.348 8.635-8.65zm3.199-3.198l2.807 1.626a1 1 0 0 1 0 1.73l-2.808 1.626L15.206 12l2.492-2.491zM5.864 2.658L16.802 8.99l-2.303 2.303-8.635-8.635z"})}),"Get it on Google Play"]}),cV=()=>c.jsx("section",{id:"whats-cooking",className:"py-12 md:py-20 bg-ln-dark relative overflow-hidden",children:c.jsxs("div",{className:"container mx-auto px-6 md:px-8 relative z-10",children:[c.jsxs("div",{className:"mb-12 md:mb-20 border-l-2 border-ln-red pl-4 sm:pl-6 text-left",children:[c.jsx("h2",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-7xl font-display font-bold text-white mb-1 tracking-tighter",children:"WHAT'S"}),c.jsx("h2",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-7xl font-display font-bold text-ln-red tracking-tighter",children:"COOKING"})]}),c.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-2 gap-6 md:gap-8 lg:gap-12",children:[c.jsxs(qe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"relative aspect-video w-full rounded-xl overflow-hidden border border-white/10 group bg-black",children:[c.jsx("iframe",{width:"100%",height:"100%",src:"https://www.youtube.com/embed/ZGVyc3nfQCw",title:"ISGL Teaser",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share",allowFullScreen:!0,className:"w-full h-full"}),c.jsx("div",{className:"absolute top-0 left-0 w-3 h-3 md:w-4 md:h-4 border-l-2 border-t-2 border-ln-cyan pointer-events-none"}),c.jsx("div",{className:"absolute bottom-0 right-0 w-3 h-3 md:w-4 md:h-4 border-r-2 border-b-2 border-ln-red pointer-events-none"})]}),c.jsx(qe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1},className:"relative aspect-video w-full flex items-center justify-center group",children:c.jsx("a",{href:"https://isgl.in",target:"_blank",rel:"noopener noreferrer",className:"flex items-center justify-center w-full h-full",children:c.jsx(Mn,{src:"/images/ISGL_Logo.png",alt:"Indian Super Gaming League",className:"max-w-[70%] md:max-w-[80%] max-h-[70%] md:max-h-[80%] object-contain group-hover:scale-105 transition-transform duration-500"})})})]}),c.jsx(qe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.15},className:"mt-10 md:mt-14",children:c.jsxs("div",{className:"group relative overflow-hidden rounded-xl border border-white/10 bg-ln-card hover:border-br-orange/40 transition-colors",children:[c.jsxs("div",{className:"absolute inset-0",children:[c.jsx("img",{src:"/images/bharat-run/gallery-red-fort.png",alt:"",className:"w-full h-full object-cover opacity-30 group-hover:opacity-40 group-hover:scale-105 transition-all duration-500"}),c.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-ln-dark via-ln-dark/80 to-transparent"})]}),c.jsxs("div",{className:"relative z-10 flex flex-col sm:flex-row sm:items-center sm:justify-between gap-4 p-6 md:p-8",children:[c.jsxs("div",{children:[c.jsx("span",{className:"text-[10px] uppercase tracking-[0.25em] text-br-orange font-display font-medium",children:"Now on Google Play"}),c.jsxs("h3",{className:"mt-2 text-2xl md:text-3xl font-display font-bold text-white tracking-tight uppercase",children:["Bharat ",c.jsx("span",{className:"text-br-orange",children:"Run"})]}),c.jsx("p",{className:"mt-2 text-sm md:text-base font-display text-white/60 max-w-xl",children:"Run through India and learn about India: an endless runner across every state with heritage monuments and culture along the way."})]}),c.jsxs("div",{className:"flex flex-col sm:flex-row gap-3 shrink-0",children:[c.jsxs("a",{href:Xx,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center justify-center gap-2 px-6 py-3 bg-br-orange text-white font-display font-bold uppercase text-[10px] tracking-[0.2em] hover:bg-br-orange/90 transition-colors",children:[c.jsx("svg",{viewBox:"0 0 24 24",className:"w-4 h-4 fill-current shrink-0","aria-hidden":"true",children:c.jsx("path",{d:"M3.609 1.814L13.792 12 3.61 22.186a1.003 1.003 0 0 1-.601-.92V2.734a1 1 0 0 1 .601-.92zm
33310.89 10.893l2.302 2.302-10.937 6.348 8.635-8.65zm3.199-3.198l2.807 1.626a1 1 0 0 1 0 1.73l-2.808 1.626L15.206 12l2.492-2.491zM5.864 2.658L16.802 8.99l-2.303 2.303-8.635-8.635z"})}),"Get on Play Store"]}),c.jsx(Se,{to:"/games/bharat-run",className:"inline-flex items-center justify-center px-6 py-3 border border-white/20 text-white font-display font-bold uppercase text-[10px] tracking-[0.2em] hover:bg-white/10 transition-colors",children:"Explore"})]})]})]})})]})}),uV=()=>c.jsx("section",{className:"py-12 md:py-20 bg-ln-dark relative overflow-hidden",children:c.jsxs("div",{className:"container mx-auto px-4 sm:px-6 md:px-8 relative z-10",children:[c.jsxs("div",{className:"mb-12 md:mb-20 border-l-2 border-ln-red pl-4 sm:pl-6 text-left",children:[c.jsx("h2",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-7xl font-display font-bold text-white mb-1 tracking-tighter",children:"CORE"}),c.jsx("h2",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-7xl font-display font-bold text-ln-red tracking-tighter",children:"SYSTEMS"})]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 sm:gap-0 sm:border-t sm:border-l sm:border-white/10",children:yM.map((t,e)=>c.jsxs(qe.div,{initial:{opacity:0}
333,whileInView:{opacity:1},viewport:{once:!0},transition:{delay:e*.1},className:"group relative p-5 sm:p-6 md:p-8 lg:p-10 border border-white/10 sm:border-0 sm:border-r sm:border-b bg-ln-card sm:bg-ln-dark hover:bg-white/[0.02] transition-colors duration-500 rounded-lg sm:rounded-none",children:[c.jsxs("div",{className:"mb-4 sm:mb-6 md:mb-8 relative",children:[c.jsx(t.icon,{className:"w-6 h-6 sm:w-7 sm:h-7 md:w-8 md:h-8 text-white group-hover:text-ln-cyan transition-colors duration-300",strokeWidth:1.5}),c.jsx("div",{className:"absolute -top-2 -left-2 w-10 h-10 sm:w-12 sm:h-12 bg-ln-cyan/20 blur-xl opacity-0 group-hover:opacity-100 transition-opacity duration-500"})]}),c.jsx("h3",{className:"text-base sm:text-lg md:text-xl font-display uppercase tracking-wider sm:tracking-widest text-white mb-2 sm:mb-3 md:mb-4",children:t.title}),c.jsx("p",{className:"text-gray-500 text-xs sm:text-sm font-display leading-6 sm:leading-7 group-hover:text-gray-300 transition-colors duration-300",children:t.desc}),c.jsx("div",{className:"absolute bottom-0 left-0 w-0 h-[2px] bg-ln-red group-hover:w-full transition-all duration-500 ease-out"})]},e))})]})}),hV=()=>c.jsx("section",{id:"wall-of-love",className:"py-12 md:py-20 bg-ln-dark relative",children:c.jsxs("div",{className:"container mx-auto px-4 sm:px-6 md:px-8",children:[c.jsxs("div",{className:"mb-12 md:mb-20 border-l-2 border-ln-cyan pl-4 sm:pl-6 text-left",children:[c.jsx("h2",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-7xl font-display font-bold text-white mb-1 tracking-tighter",children:"WALL OF"}),c.jsx("h2",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-7xl font-display font-bold text-ln-cyan tracking-tighter",children:"LOVE"})]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 gap-3 sm:gap-4 md:gap-6",children:gM.map((t,e)=>c.jsx(qe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:e*.1},className:"p-4 sm:p-5 md:p-6 border border-white/10 bg-ln-card hover:border-ln-cyan/50 transition-colors duration-300 rounded-lg",children:c.jsxs("div",{className:"flex gap-3 sm:gap-4 items-start",children:[c.jsx(Mn,{src:t.avatar,alt:t.name,className:"w-8 h-8 sm:w-10 sm:h-10 md:w-12 md:h-12 rounded-full flex-shrink-0 object-cover"}),c.jsxs("div",{className:"min-w-0 flex-1",children:[c.jsx("p",{className:"text-sm sm:text-base md:text-lg text-white font-display font-light leading-relaxed mb-3 sm:mb-4",children:t.content}),c.jsxs("div",{className:"flex items-center gap-2 sm:gap-3",children:[c.jsx("div",{className:"h-[1px] w-4 sm:w-6 bg-ln-red flex-shrink-0"}),c.jsx("span",{className:"text-[10px] sm:text-xs text-ln-cyan font-display uppercase tracking-wider truncate",children:t.name})]})]})]})},t.id))})]})}),dV=()=>c.jsx("section",{id:"upcoming-tournaments",className:"py-12 md:py-20 bg-ln-dark relative overflow-hidden",children:c.jsxs("div",{className:"container mx-auto px-4 sm:px-6 md:px-8 relative z-10",children:[c.jsxs("div",{className:"mb-12 md:mb-20 border-l-2 border-ln-cyan pl-4 sm:pl-6 text-left",children:[c.jsx("h2",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-7xl font-display font-bold text-white mb-1 tracking-tighter",children:"UPCOMING"}),c.jsx("h2",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-7xl font-display font-bold text-ln-cyan tracking-tighter",children:"TOURNAMENTS"})]}),c.jsxs(qe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"relative bg-ln-card border border-white/10 hover:border-ln-cyan/50 transition-all duration-300 rounded-xl overflow-hidden p-8 md:p-12 flex flex-col md:flex-row items-center justify-between gap-8",children:[c.jsxs("div",{className:"flex items-center gap-6 md:gap-8",children:[c.jsx("div",{className:"flex-shrink-0",children:c.jsx(Mn,{src:"/images/ISGL_Logo.png",alt:"Indian Super Gaming League",className:"h-20 md:h-24 w-auto object-contain"})}),c.jsxs("div",{children:[c.jsx("p",{className:"text-gray-400 font-display text-sm md:text-base mb-2",children:"Future of Competitive Gaming in India"}),c.jsx("p",{className:"text-white font-display text-lg md:text-xl font-medium max-w-xl",children:"Indian Super Gaming League (ISGL) is a franchise-based youth esports league in India featuring competitive gaming, live events, creators and entertainment experiences."})]})]}),c.jsxs(Se,{to:"/upcoming-tournaments",className:"group inline-flex items-center gap-3 px-8 py-4 bg-ln-card border border-ln-cyan/50 hover:border-ln-cyan hover:bg-ln-cyan/10 transition-all duration-300 rounded-lg flex-shrink-0",children:[c.jsx("span",{className:"text-white font-display font-medium uppercase tracking-wider text-sm sm:text-base",children:"View Upcoming"}),c.jsx($a,{className:"w-5 h-5 text-ln-cyan group-hover:translate-x-1 transition-transform duration-300"})]})]})]})}),fV=()=>{const t=n=>new Date(n).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),e=ol.slice(0,4);return c.jsx("section",{id:"past-tournaments",className:"py-12 md:py-20 bg-black relative overflow-hidden",children:c.jsxs("div",{className:"container mx-auto px-4 sm:px-6 md:px-8 relative z-10",children:[c.jsxs("div",{className:"mb-12 md:mb-20 border-l-2 border-ln-red pl-4 sm:pl-6 text-left",children:[c.jsx("h2",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-7xl font-display font-bold text-white mb-1 tracking-tighter",children:"PAST"}),c.jsx("h2",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-7xl font-display font-bold text-ln-red tracking-tighter",children:"TOURNAMENTS"})]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 sm:gap-6 md:gap-8 mb-8 md:mb-12",children:e.map((n,s)=>c.jsxs(qe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:s*.1},className:"group relative bg-ln-card border border-white/10 hover:border-ln-cyan/50 transition-all duration-300 rounded-lg overflow-hidden flex flex-col",children:[n.image&&c.jsxs("div",{className:"relative w-full h-32 sm:h-40 overflow-hidden",children:[c.jsx(Mn,{src:n.image,alt:n.game,className:"w-full h-full object-cover group-hover:scale-110 transition-transform duration-500"}),c.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/40 to-transparent"})]}),c.jsxs("div",{className:"p-5 sm:p-6 flex-1 flex flex-col",children:[c.jsx("div",{className:"mb-3",children:c.jsx("span",{className:"text-xs sm:text-sm text-ln-cyan font-display uppercase tracking-wider",children:n.game})}),c.jsx("h3",{className:"text-lg sm:text-xl font-display font-bold text-white mb-4 group-hover:text-ln-cyan transition-colors duration-300 line-clamp-2 flex-shrink-0",children:n.name}),c.jsxs("div",{className:"space-y-3 mb-4 flex-1",children:[c.jsxs("div",{className:"flex items-start gap-2 text-gray-400 text-xs sm:text-sm",children:[c.jsx(gx,{className:"w-4 h-4 text-ln-red flex-shrink-0 mt-0.5"}),c.jsxs("span",{className:"font-display leading-relaxed",children:[t(n.startDate)," - ",t(n.endDate)]})]}),n.prizeMoney&&c.jsxs("div",{className:"flex items-start gap-2 text-gray-300 text-xs sm:text-sm",children:[c.jsx(Ka,{className:"w-4 h-4 text-ln-cyan flex-shrink-0 mt-0.5"}),c.jsxs("span",{className:"font-display leading-relaxed",children:[n.currency," ",parseInt(n.prizeMoney).toLocaleStr
333ing()]})]}),c.jsxs("div",{className:"flex items-start gap-2 text-gray-400 text-xs sm:text-sm",children:[c.jsx(Za,{className:"w-4 h-4 text-ln-red flex-shrink-0 mt-0.5"}),c.jsxs("span",{className:"font-display leading-relaxed",children:[n.playersJoined," / ",n.maxPlayers," Players"]})]}),n.winner&&c.jsxs("div",{className:"flex items-start gap-2 text-ln-cyan text-xs sm:text-sm pt-2 border-t border-white/10",children:[c.jsx(lS,{className:"w-4 h-4 flex-shrink-0 mt-0.5"}),c.jsxs("span",{className:"font-display font-medium leading-relaxed",children:["Winner: ",n.winner]})]})]}),c.jsx("div",{className:"mt-auto pt-4 border-t border-white/10",children:n.isFree?c.jsx("span",{className:"inline-block px-3 py-1 bg-ln-cyan/20 text-ln-cyan text-xs font-display uppercase tracking-wider rounded",children:"Free Entry"}):c.jsx("span",{className:"inline-block px-3 py-1 bg-ln-red/20 text-ln-red text-xs font-display uppercase tracking-wider rounded",children:"Paid Entry"})})]}),c.jsx("div",{className:"absolute bottom-0 left-0 w-0 h-[2px] bg-ln-red group-hover:w-full transition-all duration-500 ease-out"})]},n.id))}),c.jsx("div",{className:"flex justify-center",children:c.jsxs(Se,{to:"/completed-tournaments",className:"group inline-flex items-center gap-3 px-8 py-4 bg-ln-card border border-ln-red/50 hover:border-ln-red hover:bg-ln-red/10 transition-all duration-300 rounded-lg",children:[c.jsx("span",{className:"text-white font-display font-medium uppercase tracking-wider text-sm sm:text-base",children:"Learn More"}),c.jsx($a,{className:"w-5 h-5 text-ln-red group-hover:translate-x-1 transition-transform duration-300"})]})})]})})},mV=({compact:t=!1})=>c.jsx("section",{id:"founders",className:`${t?"py-8":"py-12 md:py-20"} bg-ln-dark`,children:c.jsx("div",{className:"container mx-auto px-6 md:px-8",children:c.jsxs("div",{className:"grid lg:grid-cols-12 gap-12 lg:gap-16 items-start",children:[c.jsxs("div",{className:"lg:col-span-4 lg:sticky lg:top-32",children:[c.jsxs("div",{className:"border-l-2 border-ln-cyan pl-4 sm:pl-6 text-left",children:[c.jsx("h2",{className:"text-3xl sm:text-4xl md:text-6xl lg:text-7xl font-display font-bold text-white mb-1 tracking-tighter leading-none",children:"THE"}),c.jsx("h2",{className:"text-3xl sm:text-4xl md:text-6xl lg:text-7xl font-display font-bold text-ln-cyan tracking-tighter leading-none",children:"FOUNDER"})]}),c.jsx("p",{className:"text-gray-400 text-sm sm:text-base lg:text-lg font-display font-light leading-relaxed mt-6 mb-6 lg:mb-8 max-w-sm",children:"Forging the digital arenas of tomorrow. Meet the mind behind the machine."}),c.jsxs(Se,{to:"/about-us",className:"group inline-flex items-center gap-3 px-6 py-3 bg-ln-card border border-ln-cyan/50 hover:border-ln-cyan hover:bg-ln-cyan/10 transition-all duration-300 rounded-lg",children:[c.jsx("span",{className:"text-white font-display font-medium uppercase tracking-wider text-sm",children:"Know More About the Founder"}),c.jsx($a,{className:"w-4 h-4 text-ln-cyan group-hover:translate-x-1 transition-transform duration-300"})]})]}),c.jsx("div",{className:"lg:col-span-8 space-y-16 md:space-y-24",children:fy.map((e,n)=>{var s,a;return c.jsxs(qe.div,{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"flex flex-col md:flex-row gap-8 md:gap-10 group",children:[c.jsx("div",{className:"md:w-1/2 relative mx-auto md:mx-0 max-w-xs md:max-w-none",children:c.jsx("div",{className:"bg-gradient-to-b from-ln-card to-ln-dark/50 rounded-xl overflow-hidden p-4",children:c.jsx(Mn,{src:e.image,alt:e.name,className:"w-full h-auto object-contain rounded-lg group-hover:scale-[1.02] transition-transform duration-700"})})}),c.jsxs("div",{className:"md:w-1/2 flex flex-col justify-center text-center md:text-left",children:[c.jsx("h3",{className:"text-3xl md:text-4xl font-display font-bold text-white mb-2",children:e.name}),c.jsx("p",{className:"text-ln-cyan text-sm font-display uppercase tracking-widest mb-4 md:mb-6",children:e.role}),c.jsx("p",{className:"text-gray-400 leading-relaxed text-base md:text-lg font-display font-light mb-6 md:mb-8 max-w-md mx-auto md:mx-0",children:e.bio}),c.jsxs("div",{className:"flex gap-4 justify-center md:justify-start",children:[((s=e.s
333ocials)==null?void 0:s.linkedin)&&c.jsx("a",{href:e.socials.linkedin,className:"w-11 h-11 border border-white/20 flex items-center justify-center text-white hover:bg-white hover:text-black transition-all duration-300",children:c.jsx(xS,{size:18})}),((a=e.socials)==null?void 0:a.twitter)&&c.jsx("a",{href:e.socials.twitter,className:"w-11 h-11 border border-white/20 flex items-center justify-center text-white hover:bg-white hover:text-black transition-all duration-300",children:c.jsx(_S,{size:18})})]})]})]},n)})})]})})}),ji=()=>c.jsx("footer",{id:"contact",className:"bg-black border-t border-white/10 pt-12 md:pt-20 pb-8 md:pb-12",children:c.jsxs("div",{className:"container mx-auto px-6 md:px-8",children:[c.jsxs("div",{className:"flex flex-col md:flex-row justify-between items-start gap-10 md:gap-12 mb-16 md:mb-24",children:[c.jsxs("div",{className:"max-w-md w-full md:w-auto",children:[c.jsx(Mn,{src:"/images/LGN_LOGO (1).png",alt:"LGN Logo",className:"h-10 md:h-12 mb-6 md:mb-8"}),c.jsx("p",{className:"text-gray-500 text-base md:text-lg font-display font-light leading-relaxed mb-5 md:mb-6",children:"We are not just building a platform; we are engineering the future of competitive human interaction."}),c.jsxs("a",{href:"mailto:[email protected]",className:"inline-flex items-center gap-2 md:gap-3 text-ln-cyan hover:text-white transition-colors group",children:[c.jsx(zk,{size:16,className:"group-hover:scale-110 transition-transform"}),c.jsx("span",{className:"text-xs md:text-sm font-display",children:"[email protected]"})]}),c.jsx("div",{className:"mt-5",children:c.jsx("iframe",{id:"Iframe1",src:"https://dunsregistered.dnb.com/SealAuthentication.aspx?Cid=1",width:"114px",height:"97px",style:{border:0},scrolling:"no",allowTransparency:!0,title:"Dun & Bradstreet D-U-N-S Registered Seal",className:"overflow-hidden"})})]}),c.jsxs("div",{className:"flex gap-12 md:gap-16 w-full md:w-auto",children:[c.jsxs("div",{children:[c.jsx("h4",{className:"text-white font-display font-bold uppercase tracking-widest mb-4 md:mb-6 text-xs md:text-sm",children:"Explore"}),c.jsxs("ul",{className:"space-y-3 md:space-y-4 text-gray-500 text-xs md:text-sm font-display",children:[c.jsx("li",{children:c.jsx("a",{href:"#whats-cooking",className:"hover:text-ln-cyan transition-colors",children:"What's Cooking"})}),c.jsx("li",{children:c.jsx("a",{href:"#wall-of-love",className:"hover:text-ln-cyan transition-colors",children:"Wall of Love"})}),c.jsx("li",{children:c.jsx("a",{href:"#past-tournaments",className:"hover:text-ln-cyan transition-colors",children:"Past Tournaments"})}),c.jsx("li",{children:c.jsx(Se,{to:"/upcoming-tournaments",className:"hover:text-ln-cyan transition-colors",children:"Upcoming Tournaments"})}),c.jsx("li",{children:c.jsx("a",{href:"#founders",className:"hover:text-ln-cyan transition-colors",children:"Founder"})})]})]}),c.jsxs("div",{children:[c.jsx("h4",{className:"text-white font-display font-bold uppercase tracking-widest mb-4 md:mb-6 text-xs md:text-sm",children:"Connect"}),c.jsxs("ul",{className:"space-y-3 md:space-y-4 text-gray-500 text-xs md:text-sm font-display",children:[c.jsx("li",{children:c.jsx("a",{href:"mailto:[email protected]",className:"hover:text-ln-cyan transition-colors",children:"Email Us"})}),c.jsx("li",{children:c.jsx("a",{href:"https://isgl.in",target:"_blank",rel:"noopener noreferrer",className:"hover:text-ln-cyan transition-colors",children:"ISGL"})})]})]}),c.jsxs("div",{children:[c.jsx("h4",{className:"text-white font-display font-bold uppercase tracking-widest mb-4 md:mb-6 text-xs md:text-sm",children:"Legal"}),c.jsxs("ul",{className:"space-y-3 md:space-y-4 text-gray-500 text-xs md:text-sm font-display",children:[c.jsx("li",{children:c.jsx(Se,{to:"/terms-and-conditions",className:"hover:text-ln-cyan transition-colors",children:"Terms & Conditions"})}),c.jsx("li",{children:c.jsx(Se,{to:"/privacy-policy",className:"hover:text-ln-cyan transition-colors",children:"Privacy Policy"})})]})]})]})]}),c.jsxs("div",{className:"flex flex-col-reverse md:flex-row justify-between items-center gap-4 md:gap-6 border-t border-white/5 pt-8 md:pt-12",children:[c.jsx("p",{className:"text-gray-600 text-[10px] md:text-xs font-display uppercase tracking-widest",children:"© 2026 LetsGameNow Inc."}),c.jsxs("div",{className:"flex gap-6 md:gap-8",children:[c.jsx("a",{href:Wc.twitter,target:"_blank",rel:"noopener noreferrer",className:"text-gray-500 hover:text-white transition-colors","aria-label":"Twitter",children:c.jsx(_S,{size:18})}),c.jsx("a",{href:Wc.twitch,target:"_blank",rel:"noopener noreferrer",className:"text-gray-500 hover:text-white transition-colors","aria-label":"Twitch",children:c.jsx(rM,{size:18})}),c.jsx("a",{href:Wc.instagram,target:"_blank",rel:"noopener noreferrer",className:"text-gray-500 hover:text-white transition-colors","aria-label":"Instagram",children:c.jsx(Nk,{size:18})}),c.jsx("a",{href:Wc.youtube,target:"_blank",rel:"noopener noreferrer",className:"text-gray-500 hover:text-white transition-colors","aria-label":"YouTube",children:c.jsx(dM,{size:18})})]})]})]})}),pV=()=>c.jsxs("div",{className:"min-h-screen bg-black text-white selection:bg-purple-500/30",children:[c.jsx(Ln,{title:"Let's Game Now",description:"Let's Game Now (LGN) - India's premier esports platform. 50Mn+ reach, 2000+ clients, 30+ events. Compete in gam
333ing tournaments, join 1M+ gamers, build your pro gaming career. FIFA, BGMI, Valorant, Free Fire via ISGL.",path:"/",breadcrumbs:[{name:"Home",path:"/"}],pageType:"WebPage",datePublished:"2019-01-01",dateModified:"2026-02-09"}),c.jsx(Ni,{}),c.jsxs("main",{children:[c.jsx(oV,{}),c.jsx("div",{className:"bg-ln-dark h-12 md:h-20 -mt-12 md:-mt-20"}),c.jsx(lV,{}),c.jsx(cV,{}),c.jsx(dV,{}),c.jsx(uV,{}),c.jsx(hV,{}),c.jsx(fV,{}),c.jsx(mV,{})]}),c.jsx(ji,{})]}),gV=()=>[{"@context":"https://schema.org","@type":"ItemList",name:"Let's Game Now Completed Tournaments",description:"Past esports tournaments organized by Let's Game Now. FIFA, BGMI, Valorant, Free Fire, Dota 2, COD Mobile winners and results.",numberOfItems:ol.length,itemListElement:ol.slice(0,15).map((e,n)=>({"@type":"ListItem",position:n+1,item:{"@type":"SportsEvent",name:e.name,startDate:e.startDate,endDate:e.endDate,location:{"@type":"Place",name:"India"},organizer:{"@type":"Organization",name:"Let's Game Now",url:qi},sport:e.game,...e.image&&{image:e.image.startsWith("http")?e.image:`${qi}${e.image.startsWith("/")?e.image:`/${e.image}`}`},...e.winner&&{description:`Winner: ${e.winner}.${e.prizeMoney&&e.prizeMoney!=="0"?` Prize pool: ${e.currency} ${parseInt(e.prizeMoney).toLocaleString()}`:""}`}}}))}],Hg=()=>{const[t,e]=j.useState("all"),n=j.useMemo(()=>gV(),[]),s=u=>new Date(u).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"}),a=Array.from(new Set(ol.map(u=>u.game))),l=t==="all"?ol:ol.filter(u=>u.game===t);return c.jsxs("div",{className:"min-h-screen bg-black text-white",children:[c.jsx(Ln,{title:"Completed Tournaments",description:"Let's Game Now past tournaments archive. FIFA, BGMI, Valorant, Free Fire, Dota 2, COD Mobile winners, prize pools, 16+ completed esports events. India's top esports history.",path:"/completed-tournaments",image:"/images/tournaments/Valorant.jpg",keywords:"Let's Game Now past tournaments, esports winners India, FIFA BGMI Valorant tournament results, LGN tournament history",breadcrumbs:[{name:"Home",path:"/"},{name:"Completed Tournaments",path:"/completed-tournaments"}],pageType:"CollectionPage",structuredData:n}),c.jsx(Ni,{}),c.jsx("main",{className:"pt-20 md:pt-24",children:c.jsx("section",{className:"py-12 md:py-20 bg-ln-dark relative overflow-hidden",children:c.jsxs("div",{className:"container mx-auto px-4 sm:px-6 md:px-8 relative z-10",children:[c.jsxs(Se,{to:"/",className:"inline-flex items-center gap-2 text-ln-cyan hover:text-ln-red transition-colors duration-300 mb-8 group",children:[c.jsx(ts,{className:"w-5 h-5 group-hover:-translate-x-1 transition-transform duration-300"}),c.jsx("span",{className:"font-display uppercase tracking-wider text-sm",children:"Back to Home"})]}),c.jsxs("div",{className:"mb-12 md:mb-20 border-l-2 border-ln-red pl-4 sm:pl-6 text-left",children:[c.jsx("h1",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-7xl font-display font-bold text-white mb-1 tracking-tighter",children:"COMPLETED"}),c.jsx("h1",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-7xl font-display font-bold text-ln-red tracking-tighter",children:"TOURNAMENTS"})]}),c.jsxs("div",{className:"mb-8 md:mb-12 flex flex-wrap gap-3",children:[c.jsx("button",{onClick:()=>e("all"),className:`px-6 py-2 rounded-lg border transition-all duration-300 font-display uppercase tracking-wider text-sm ${t==="all"?"bg-ln-red border-ln-red text-white":"bg-ln-card border-white/10 text-gray-400 hover:border-ln-cyan hover:text-ln-cyan"}`,children:"All Games"}),a.map(u=>c.jsx("button",{onClick:()=>e(u),className:`px-6 py-2 rounded-lg border transition-all duration-300 font-display uppercase tracking-wider text-sm ${t===u?"bg-ln-red border-ln-red text-white":"bg-ln-card border-white/10 text-gray-400 hover:border-ln-cyan hover:text-ln-cyan"}`,children:u},u))]}),c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4 sm:gap-6 md:gap-8",children:l.map((u,d)=>c.jsxs(qe.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:d*.05},className:"group relative bg-ln-card border border-white/10 hover:border-ln-cyan/50 transition-all duration-300 rounded-lg overflow-hidden flex flex-col",children:[u.image&&c.jsxs("div",{className:"relative w-full h-32 sm:h-40 overflow-hidden",children:[c.jsx(Mn,{src:u.image,alt:u.game,className:"w-full h-full object-cover group-hover:scale-110 transition-transform duration-500"}),c.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-black/80 via-black/40 to-transparent"})]}),c.jsxs("div",{className:"p-5 sm:p-6 flex-1 flex flex-col",children:[c.jsx("div",{className:"mb-3",children:c.jsx("span",{className:"text-xs sm:text-sm text-ln-cyan font-display uppercase tracking-wider",children:u.game})}),c.jsx("h3",{className:"text-lg sm:text-xl font-display font-bold text-white mb-4 group-hover:text-ln-cyan transition-colors duration-300 line-clamp-2 flex-shrink-0",children:u.name}),c.jsxs("div",{className:"space-y-3 mb-4 flex-1",children:[c.jsxs("div",{className:"flex items-start gap-2 text-gray-400 text-xs sm:text-sm",children:[c.jsx(gx,{className:"w-4 h-4 text-ln-red flex-shrink-0 mt-0.5"}),c.jsxs("span",{className:"font-display leading-relaxed",children:[s(u.startDate)," - ",s(u.endDate)]})]}),u.prizeMoney&&c.jsxs("div",{className:"flex items-start gap-2 text-gray-300 text-xs sm:text-sm",children:[c.jsx(Ka,{className:"w-4 h-4 text-ln-cyan flex-shrink-0 mt-0.5"}),c.jsxs("span",{className:"font-display leading-relaxed",children:[u.currency," ",parseInt(u.prizeMoney).toLocaleStr
333ing()]})]}),c.jsxs("div",{className:"flex items-start gap-2 text-gray-400 text-xs sm:text-sm",children:[c.jsx(Za,{className:"w-4 h-4 text-ln-red flex-shrink-0 mt-0.5"}),c.jsxs("span",{className:"font-display leading-relaxed",children:[u.playersJoined," / ",u.maxPlayers," Players"]})]}),u.winner&&c.jsxs("div",{className:"flex items-start gap-2 text-ln-cyan text-xs sm:text-sm pt-2 border-t border-white/10",children:[c.jsx(lS,{className:"w-4 h-4 flex-shrink-0 mt-0.5"}),c.jsxs("span",{className:"font-display font-medium leading-relaxed",children:["Winner: ",u.winner]})]})]}),c.jsx("div",{className:"mt-auto pt-4 border-t border-white/10",children:u.isFree?c.jsx("span",{className:"inline-block px-3 py-1 bg-ln-cyan/20 text-ln-cyan text-xs font-display uppercase tracking-wider rounded",children:"Free Entry"}):c.jsx("span",{className:"inline-block px-3 py-1 bg-ln-red/20 text-ln-red text-xs font-display uppercase tracking-wider rounded",children:"Paid Entry"})})]}),c.jsx("div",{className:"absolute bottom-0 left-0 w-0 h-[2px] bg-ln-red group-hover:w-full transition-all duration-500 ease-out"})]},u.id))}),l.length===0&&c.jsx("div",{className:"text-center py-12",children:c.jsx("p",{className:"text-gray-400 font-display",children:"No tournaments found for the selected game."})})]})})}),c.jsx(ji,{})]})},sT=()=>{const[t,e]=j.useState([]),[n,s]=j.useState(!0),[a,l]=j.useState(null);j.useEffect(()=>{(async()=>{try{s(!0);const m=[];await new Promise(g=>setTimeout(g,1e3)),e(m),s(!1)}catch{l("Failed to load tournaments. Please try again later."),s(!1)}})()},[]);const u=d=>new Date(d).toLocaleDateString("en-US",{month:"short",day:"numeric",year:"numeric"});return c.jsxs("div",{className:"min-h-screen bg-black text-white",children:[c.jsx(Ln,{title:"Upcoming Tournaments",description:"Let's Game Now upcoming esports tournaments. Indian Super Gaming League (ISGL) franchise-based youth esports. Register for FIFA, BGMI, Valorant, Free Fire, COD, Dota 2. Cash prizes & free entry.",path:"/upcoming-tournaments",image:"/images/ISGL_Logo.png",keywords:"Let's Game Now upcoming tournaments, ISGL tournaments, esports registration India, FIFA BGMI Valorant Free Fire tournaments, Indian Super Gaming League",breadcrumbs:[{name:"Home",path:"/"},{name:"Upcoming Tournaments",path:"/upcoming-tournaments"}],pageType:"CollectionPage"}),c.jsx(Ni,{}),c.jsx("main",{className:"pt-20 md:pt-24",children:c.jsx("section",{className:"py-12 md:py-20 bg-ln-dark relative overflow-hidden",children:c.jsxs("div",{className:"container mx-auto px-4 sm:px-6 md:px-8 relative z-10",children:[c.jsxs(Se,{to:"/",className:"inline-flex items-center gap-2 text-ln-cyan hover:text-ln-red transition-colors duration-300 mb-8 group",children:[c.jsx(ts,{className:"w-5 h-5 group-hover:-translate-x-1 transition-transform duration-300"}),c.jsx("span",{className:"font-display uppercase tracking-wider text-sm",children:"Back to Home"})]}),c.jsx("div",{className:"mb-12 md:mb-20",children:c.jsxs("div",{className:"flex flex-col md:flex-row items-center md:items-start gap-6 md:gap-8 mb-8",children:[c.jsx("div",{className:"flex-shrink-0",children:c.jsx("a",{href:"https://isgl.in",target:"_blank",rel:"noopener noreferrer",className:"block group",children:c.jsx(Mn,{src:"/images/ISGL_Logo.png",alt:"Indian Super Gaming League",className:"h-24 md:h-32 w-auto object-contain group-hover:scale-105 transition-transform duration-300"})})}),c.jsxs("div",{className:"flex-1 text-center md:text-left",children:[c.jsxs("div",{className:"border-l-2 border-ln-red pl-4 sm:pl-6",children:[c.jsx("h1",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-7xl font-display font-bold text-white mb-1 tracking-tighter",children:"UPCOMING"}),c.jsx("h1",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-7xl font-display font-bold text-ln-red tracking-tighter",children:"TOURNAMENTS"})]}),c.jsx("p",{className:"text-gray-400 font-display mt-4 max-w-2xl",children:"Indian Super Gaming League (ISGL) is a franchise-based youth esports league in India featuring competitive gaming, live events, creators and entertainment experiences."}),c.jsxs("a",{href:"https://isgl.in",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 mt-4 text-ln-cyan hover:text-ln-red transition-colors duration-300 group",children:[c.jsx("span",{className:"font-display uppercase tracking-wider text-sm",children:"Visit ISGL"}),c.jsx(sf,{className:"w-4 h-4 group-hover:translate-x-1 group-hover:-translate-y-1 transition-transform duration-300"})]})]})]})}),n&&c.jsxs("div",{className:"text-center py-12",children:[c.jsx("div",{className:"inline-block animate-spin rounded-full h-12 w-12 border-t-2 border-b-2 border-ln-red"}),c.jsx("p",{className:"text-gray-400 font-display mt-4",children:"Loading tournaments..."})]}),a&&c.jsx("div",{className:"text-center py-12",children:c.jsx("p",{className:"text-ln-red font-display",children:a})}),!n&&!a&&c.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 xl:grid-cols-4 gap-4 sm:gap-6 md:gap-8",children:t.map((d,m)=>c.jsxs(qe.div,{initial:{opacity:0,y:20}
333,animate:{opacity:1,y:0},transition:{delay:m*.1},className:"group relative bg-ln-card border border-white/10 hover:border-ln-cyan/50 transition-all duration-300 rounded-lg overflow-hidden flex flex-col",children:[d.registrationOpen&&c.jsx("div",{className:"absolute top-4 right-4 z-10",children:c.jsx("span",{className:"px-3 py-1 bg-ln-cyan text-black text-xs font-display uppercase tracking-wider rounded",children:"Open"})}),c.jsxs("div",{className:"p-5 sm:p-6 flex-1 flex flex-col",children:[c.jsx("div",{className:"mb-3",children:c.jsx("span",{className:"text-xs sm:text-sm text-ln-cyan font-display uppercase tracking-wider",children:d.game})}),c.jsx("h3",{className:"text-lg sm:text-xl font-display font-bold text-white mb-4 group-hover:text-ln-cyan transition-colors duration-300 line-clamp-2 flex-shrink-0",children:d.name}),d.description&&c.jsx("p",{className:"text-gray-400 text-xs sm:text-sm font-display mb-4 line-clamp-2 leading-relaxed",children:d.description}),c.jsxs("div",{className:"space-y-3 mb-4 flex-1",children:[c.jsxs("div",{className:"flex items-start gap-2 text-gray-400 text-xs sm:text-sm",children:[c.jsx(gx,{className:"w-4 h-4 text-ln-red flex-shrink-0 mt-0.5"}),c.jsxs("span",{className:"font-display leading-relaxed",children:[u(d.startDate)," - ",u(d.endDate)]})]}),d.prizeMoney&&c.jsxs("div",{className:"flex items-start gap-2 text-gray-300 text-xs sm:text-sm",children:[c.jsx(Ka,{className:"w-4 h-4 text-ln-cyan flex-shrink-0 mt-0.5"}),c.jsxs("span",{className:"font-display leading-relaxed",children:[d.currency," ",parseInt(d.prizeMoney).toLocaleString()]})]}),c.jsxs("div",{className:"flex items-start gap-2 text-gray-400 text-xs sm:text-sm",children:[c.jsx(Za,{className:"w-4 h-4 text-ln-red flex-shrink-0 mt-0.5"}),c.jsxs("span",{className:"font-display leading-relaxed",children:[d.playersJoined," / ",d.maxPlayers," Players"]})]})]}),c.jsxs("div",{className:"mt-auto pt-4 border-t border-white/10 flex items-center justify-between",children:[d.isFree?c.jsx("span",{className:"inline-block px-3 py-1 bg-ln-cyan/20 text-ln-cyan text-xs font-display uppercase tracking-wider rounded",children:"Free Entry"}):c.jsx("span",{className:"inline-block px-3 py-1 bg-ln-red/20 text-ln-red text-xs font-display uppercase tracking-wider rounded",children:"Paid Entry"}),d.registrationOpen&&c.jsx("a",{href:"https://isgl.in",target:"_blank",rel:"noopener noreferrer",className:"text-ln-cyan hover:text-ln-red transition-colors duration-300",children:c.jsx(sf,{className:"w-4 h-4"})})]})]}),c.jsx("div",{className:"absolute bottom-0 left-0 w-0 h-[2px] bg-ln-red group-hover:w-full transition-all duration-500 ease-out"})]},d.id))}),!n&&!a&&t.length===0&&c.jsx("div",{className:"text-center py-12",children:c.jsx("p",{className:"text-gray-400 font-display",children:"Visit isgl.in for more information!"})})]})})}),c.jsx(ji,{})]})},rT=()=>c.jsxs("div",{className:"min-h-screen bg-black text-white",children:[c.jsx(Ln,{title:"About Us",description:"Let's Game Now: 50Mn+ reach, 18+ countries, 2000+ clients, 30+ events. Founded by Santanu Basu. Marketing solutions, broadcast & production, esports since 2019.",path:"/about-us",image:"/images/sbasu.jpeg",keywords:"Let's Game Now about, LGN founder, Santanu Basu, esports India company, gaming marketing solutions",breadcrumbs:[{name:"Home",path:"/"},{name:"About Us",path:"/about-us"}],pageType:"AboutPage",structuredData:[{"@context":"https://schema.org","@type":"FAQPage",mainEntity:[{"@type":"Question",name:"What is Let's Game Now?",acceptedAnswer:{"@type":"Answer",text:"Let's Game Now (LGN) is India's premier esports platform providing comprehensive marketing solutions, broadcast & production services, and gaming tournaments. Founded in 2019, we have 50Mn+ reach, 2000+ clients, and 30+ events across 18+ countries."}},{"@type":"Question",name:"Who founded Let's Game Now?",acceptedAnswer:{"@type":"Answer",text:"Let's Game Now was founded by Santanu Basu, India's most-capped international gamer."}},{"@type":"Question",name:"How can I register for esports tournaments?",acceptedAnswer:{"@type":"Answer",text:"Visit our Upcoming Tournaments page or go to ISGL (Indian Super Gaming League) at isgl.in to register for FIFA, BGMI, Valorant, Free Fire, and other esports tournaments."}},{"@type":"Question",name:"What games does Let's Game Now support?",acceptedA
333nswer:{"@type":"Answer",text:"Let's Game Now hosts tournaments for FIFA, BGMI, Valorant, Free Fire, Call of Duty Mobile, Dota 2, Rainbow Six Siege, Mobile Legends, and more."}}]},...fy.map(t=>{var e,n;return{"@context":"https://schema.org","@type":"Person",name:t.name,jobTitle:t.role,description:((e=z_[t.name])==null?void 0:e.bio)??t.bio,image:t.image.startsWith("http")?t.image:`${qi}${t.image.startsWith("/")?t.image:`/${t.image}`}`,...((n=t.socials)==null?void 0:n.linkedin)&&{sameAs:[t.socials.linkedin]}}})]}),c.jsx(Ni,{}),c.jsx("main",{className:"pt-20 md:pt-24",children:c.jsx("section",{className:"py-12 md:py-20 bg-ln-dark relative overflow-hidden",children:c.jsxs("div",{className:"container mx-auto px-4 sm:px-6 md:px-8 relative z-10",children:[c.jsxs(Se,{to:"/",className:"inline-flex items-center gap-2 text-ln-cyan hover:text-ln-red transition-colors duration-300 mb-8 group",children:[c.jsx(ts,{className:"w-5 h-5 group-hover:-translate-x-1 transition-transform duration-300"}),c.jsx("span",{className:"font-display uppercase tracking-wider text-sm",children:"Back to Home"})]}),c.jsxs("div",{className:"mb-12 md:mb-20 border-l-2 border-ln-red pl-4 sm:pl-6 text-left",children:[c.jsx("h1",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-7xl font-display font-bold text-white mb-1 tracking-tighter",children:"ABOUT"}),c.jsx("h1",{className:"text-3xl sm:text-4xl md:text-5xl lg:text-7xl font-display font-bold text-ln-red tracking-tighter",children:"US"})]}),c.jsxs(qe.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6},className:"mb-16 md:mb-24",children:[c.jsx("h2",{className:"text-2xl md:text-3xl font-display font-bold text-white mb-6",children:"ABOUT LETS GAME NOW"}),c.jsx("p",{className:"text-gray-400 font-display text-lg md:text-xl leading-relaxed max-w-3xl",children:"Lets Game Now is a dynamic and innovative company specializing in providing comprehensive marketing solutions to brands. Our expertise extends to delivering top-notch broadcast and production services, ensuring that our clients achieve their marketing goals with maximum impact."})]}),c.jsx(qe.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{duration:.6,delay:.1},className:"grid grid-cols-2 lg:grid-cols-4 gap-6 md:gap-8 mb-16 md:mb-24",children:[{value:"50 Mn+",label:"TOTAL REACH"},{value:"18+",label:"COUNTRIES"},{value:"2000+",label:"CLIENTS SERVED"},{value:"30+",label:"EVENTS ORGANISED"}].map((t,e)=>c.jsxs("div",{className:"bg-ln-card border border-white/10 rounded-lg p-6 md:p-8 text-center",children:[c.jsx("div",{className:"text-2xl md:text-4xl font-display font-bold text-ln-red mb-2",children:t.value}),c.jsx("div",{className:"text-gray-400 font-display text-xs md:text-sm uppercase tracking-wider",children:t.label})]},t.label))}),c.jsxs("div",{className:"pt-12 border-t border-white/10",children:[c.jsxs("div",{className:"mb-16",children:[c.jsx("h2",{className:"text-3xl md:text-4xl font-display font-bold text-white mb-2",children:"The Founder"}),c.jsx("p",{className:"text-gray-400 font-display max-w-2xl",children:"Forging the digital arenas of tomorrow. Meet the mind behind LetsGameNow."})]}),c.jsx("div",{className:"space-y-20 md:space-y-28",children:fy.map((t,e)=>{var s;const n=z_[t.name];return c.jsxs(qe.div,{initial:{opacity:0,y:40},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{duration:.6},className:"flex flex-col lg:flex-row gap-10 lg:gap-16 items-start",children:[c.jsx("div",{className:"lg:w-80 flex-shrink-0",children:c.jsx("div",{className:"bg-gradient-to-b from-ln-card to-ln-dark/50 rounded-xl overflow-hidden p-4",children:c.jsx(Mn,{src:t.image,alt:t.name,className:"w-full h-auto object-contain rounded-lg"})})}),c.jsxs("div",{className:"flex-1",children:[c.jsx("h3",{className:"text-3xl md:text-4xl font-display font-bold text-white mb-2",children:t.name}),c.jsx("p",{className:"text-ln-cyan text-sm font-display uppercase tracking-widest mb-6",children:t.role}),n&&c.jsxs(c.Fragment,{children:[c.jsx("p",{className:"text-gray-400 font-display text-base md:text-lg leading-relaxed mb-8",children:n.bio}),c.jsx("ul",{className:"space-y-3 mb-8",children:n.highlights.map((a,l)=>c.jsxs("li",{className:"flex items-start gap-3 text-gray-400",children:[c.jsx(cS,{className:"w-5 h-5 text-ln-cyan flex-shrink-0 mt-0.5"}),c.jsx("span",{className:"font-display text-sm md:text-base",children:a})]},l))})]}),((s=t.socials)==null?void 0:s.linkedin)&&c.jsx("a",{href:t.socials.linkedin,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 w-11 h-11 border border-white/20 justify-center text-white hover:bg-white hover:text-black transition-all duration-300 rounded",children:c.jsx(xS,{size:18})})]})]},t.name)}
333)})]})]})})}),c.jsx(ji,{})]}),yV="https://letsgamenow.com/images/lgn-esports-champion.jpg",xV="/videos/lgnintro4.mp4",Yc=xx(xV),vV=()=>{const t=j.useRef(null);return j.useEffect(()=>{const e=setTimeout(()=>{t.current&&t.current.play().catch(n=>{console.log("Video could not autoplay:",n)})},5e3);return()=>clearTimeout(e)},[]),c.jsxs("div",{className:"min-h-screen bg-black text-white",children:[c.jsx(Ln,{title:"Watch - Let's Game Now Intro",description:"Watch the Let's Game Now intro video. India's premier esports platform: 50Mn+ reach, 2000+ clients, 30+ events. FIFA, BGMI, Valorant, Free Fire via ISGL.",path:"/watch",image:yV,keywords:"Let's Game Now video, LGN intro, esports India video, gaming platform India",breadcrumbs:[{name:"Home",path:"/"},{name:"Watch",path:"/watch"}],pageType:"WebPage",videoUrl:Yc.cdnUrl,embedUrl:"https://letsgamenow.com/watch",datePublished:"2019-01-01",dateModified:"2026-02-09"}),c.jsx(Ni,{}),c.jsx("main",{className:"pt-20 md:pt-24 pb-16",children:c.jsxs("div",{className:"container mx-auto px-4 sm:px-6 md:px-8",children:[c.jsxs(Se,{to:"/",className:"inline-flex items-center gap-2 text-ln-cyan hover:text-ln-red transition-colors duration-300 mb-8 group",children:[c.jsx(ts,{className:"w-5 h-5 group-hover:-translate-x-1 transition-transform duration-300"}),c.jsx("span",{className:"font-display uppercase tracking-wider text-sm",children:"Back to Home"})]}),c.jsxs("div",{className:"max-w-4xl mx-auto",children:[c.jsx("h1",{className:"text-2xl md:text-4xl font-display font-bold text-white mb-2",children:"Let's Game Now - Intro"}),c.jsx("p",{className:"text-gray-400 font-display mb-8",children:"Experience the next evolution of competitive gaming. India's premier esports platform."}),c.jsx("div",{className:"aspect-video w-full rounded-lg overflow-hidden bg-black border border-white/10",children:c.jsxs("video",{ref:t,controls:!0,muted:!0,playsInline:!0,preload:"auto",poster:"/images/lgn-esports-champion.jpg",className:"w-full h-full object-contain","aria-label":"Let's Game Now intro video",children:[c.jsx("source",{src:"/videos/lgnintro4.mp4",type:"video/mp4"}),Yc.cdnUrl!=="/videos/lgnintro4.mp4"&&c.jsx("source",{src:Yc.cdnUrl,type:"video/mp4"}),Yc.fallbackUrl&&c.jsx("source",{src:Yc.fallbackUrl,type:"video/mp4"}),"Your browser does not support the video tag."]})}),c.jsx("p",{className:"text-gray-500 text-sm font-display mt-6",children:"Let's Game Now: 50Mn+ reach, 2000+ clients, 30+ events. Gaming tournaments, 1M+ gamers."})]})]})}),c.jsx(ji,{})]})},bV=()=>c.jsxs("div",{className:"min-h-screen bg-black text-white",children:[c.jsx(Ln,{title:"Privacy Policy",description:"Privacy policy for Let's Game Now (LGN) website at letsgamenow.com. How we collect, use, and protect information when you visit our esports platform.",path:"/privacy-policy",keywords:"Let's Game Now privacy policy, LGN privacy, LetsGameNow, esports platform India",breadcrumbs:[{name:"Home",path:"/"},{name:"Privacy Policy",path:"/privacy-policy"}],pageType:"WebPage",dateModified:"2026-09-03"}),c.jsx(Ni,{}),c.jsx("main",{className:"pt-20 md:pt-24 pb-16",children:c.jsxs("div",{className:"container mx-auto px-4 sm:px-6 md:px-8",children:[c.jsxs(Se,{to:"/",className:"inline-flex items-center gap-2 text-ln-cyan hover:text-ln-red transition-colors duration-300 mb-8 group",children:[c.jsx(ts,{className:"w-5 h-5 group-hover:-translate-x-1 transition-transform duration-300"}),c.jsx("span",{className:"font-display uppercase tracking-wider text-sm",children:"Back to Home"})]}),c.jsxs("article",{className:"max-w-3xl mx-auto",children:[c.jsxs("header",{className:"mb-10 md:mb-14 border-l-2 border-ln-red pl-4 sm:pl-6",children:[c.jsx("h1",{className:"text-2xl sm:text-3xl md:text-4xl font-display font-bold text-white mb-2",children:"Privacy Policy"}),c.jsx("p",{className:"text-ln-cyan font-display text-sm uppercase tracking-wider",children:"Let's Game Now"})]}),c.jsxs("div",{className:"space-y-8 text-gray-400 font-display text-base leading-relaxed",children:[c.jsxs("p",{children:[c.jsx("strong",{className:"text-white",children:"Last updated:"})," September 3, 2026"]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Introduction"}),c.jsxs("p",{children:["This Privacy Policy describes how ",c.jsx("strong",{className:"text-white",children:"Let's Game Now"}),' ("we", "us") handles information when you visit our website at'," ",c.jsx("a",{href:"https://letsgamenow.com",className:"text-ln-cyan hover:text-ln-red transition-colors",children:"letsgamenow.com"})," ",'("the Site"), operated by'," ",c.jsx("strong",{className:"text-white",children:"Let's Game Now"})," ("," ",c.jsx("strong",{className:"text-white",children:"Basus Hall of Game Private Limited"}),"), founded by"," ",c.jsx("strong",{className:"text-white",children:"Santanu Basu"}),"."]}),c.jsx("p",{className:"mt-3",children:"We are committed to protecting your privacy. This policy covers the main LGN website. Individual games and apps published by Let's Game Now may have their own privacy policies, which apply when you use those products."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Information We Collect"}),c.jsx("p",{children:"The Site is primarily informational. We do not require you to create an account to browse it. Depending on how you interact with the Site, we may collect:"}),c.jsxs("ul",{className:"list-disc list-inside mt-3 space-y-2 ml-2",children:[c.jsxs("li",{children:[c.jsx("strong",{className:"text-white",children:"Usage and analytics data:"})," such as pages visited, referring URLs, device type, browser type, approximate location (derived from IP address), and interaction patterns"]}),c.jsxs("li",{children:[c.jsx("strong",{className:"text-white",children:"Technical data:"})," such as IP address, browser settings, and cookies or similar technologies used for analytics"]}),c.jsxs("li",{children:[c.jsx("strong",{className:"text-white",children:"Contact information:"})," such as your email address, if you choose to contact us directly (for example, via email)"]})]}),c.jsx("p",{className:"mt-3",children:"We do not collect payment information through the Site. Tournament registration and payments, where applicable, are handled by third-party platforms and are governed by their privacy policies."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"How We Use Information"}),c.jsx("p",{children:"We use collected information to:"}),c.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1 ml-2",children:[c.jsx("li",{children:"Operate, maintain, and improve the Site"}),c.jsx("li",{children:"Understand how visitors use our content and services"}),c.jsx("li",{children:"Respond to inquiries you send us"}),c.jsx("li",{children:"Protect the security and integrity of the Site"}),c.jsx("li",{children:"Comply with legal obligations"})]}),c.jsx("p",{className:"mt-3",children:"We do not use information collected through the Site for unsolicited marketing unless you have opted in or we are otherwise permitted by law."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Analytics and Cookies"}),c.jsx("p",{children:"We use analytics services to understand Site traffic and usage. These services may collect aggregated usage metrics and may use cookies or similar technologies. You can control cookies through your browser settings. Disabling cookies may affect certain Site functionality."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Third-Party Links and
333Services"}),c.jsx("p",{children:"The Site may link to external services, including tournament registration platforms, app stores, and social media. We do not control how those third parties collect or use your information. Please review their privacy policies before providing personal information to them."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Game-Specific Privacy Policies"}),c.jsx("p",{children:"If you use a game or app published by Let's Game Now, the privacy policy for that product applies. Current game-specific policies include:"}),c.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1 ml-2",children:[c.jsx("li",{children:c.jsx(Se,{to:"/privacy-policy-lgn-chess",className:"text-ln-cyan hover:text-ln-red transition-colors",children:"LGN Chess Privacy Policy"})}),c.jsx("li",{children:c.jsx(Se,{to:"/games/bharat-run/privacy",className:"text-ln-cyan hover:text-ln-red transition-colors",children:"Bharat Run Privacy Policy"})}),c.jsx("li",{children:c.jsx(Se,{to:"/privacy-policy-utt",className:"text-ln-cyan hover:text-ln-red transition-colors",children:"Table Tennis Privacy Policy"})})]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Data Sharing"}),c.jsx("p",{children:"We do not sell your personal information. We may share information with:"}),c.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1 ml-2",children:[c.jsx("li",{children:"Service providers who help us operate the Site (such as hosting and analytics providers), under appropriate confidentiality obligations"}),c.jsx("li",{children:"Authorities or other parties when required by law or to protect our rights, users, or the public"})]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Data Retention"}),c.jsx("p",{children:"We retain information only for as long as needed to fulfill the purposes described in this policy, unless a longer retention period is required by law. Analytics data is typically retained in aggregated form."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Children's Privacy"}),c.jsx("p",{children:"The Site is intended for a general audience. We do not knowingly collect personal information from children under 13. If you believe we have collected information from a child in error, please contact us and we will take appropriate steps to delete it."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Your Rights"}),c.jsx("p",{children:"Depending on your location, you may have the right to access, correct, delete, or restrict processing of your personal information, or to object to certain processing. To exercise these rights, contact us at the email below."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Changes to This Policy"}),c.jsx("p",{children:'We may update this Privacy Policy from time to time. We will post the revised policy on this page with an updated "Last updated" date. Continued use of the Site after changes constitutes acceptance of the updated policy.'})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Contact Us"}),c.jsx("p",{children:"For questions about this Privacy Policy or your data, contact:"}),c.jsxs("p",{className:"mt-3",children:[c.jsx("strong",{className:"text-white",children:"Let's Game Now"}),c.jsx("br",{}),"Basus Hall of Game Private Limited",c.jsx("br",{}),"Founder: Santanu Basu",c.jsx("br",{}),c.jsx("a",{href:"mailto:[email protected]",className:"text-ln-cyan hover:text-ln-red transition-colors",children:"[email protected]"})]})]})]})]})]})}),c.jsx(ji,{})]}),wV=()=>c.jsxs("div",{className:"min-h-screen bg-black text-white",children:[c.jsx(Ln,{title:"Privacy Policy: Let's Game Now Table Tennis",description:"Privacy policy for Let's Game Now Table Tennis. We only collect your email address for sign-in.",path:"/privacy-policy-utt",keywords:"Let's Game Now Table Tennis privacy policy",breadcrumbs:[{name:"Home",path:"/"},{name:"Privacy Policy",path:"/privacy-policy-utt"}],pageType:"WebPage",dateModified:"2026-05-26"}),c.jsx(Ni,{}),c.jsx("main",{className:"pt-20 md:pt-24 pb-16",children:c.jsxs("div",{className:"container mx-auto px-4 sm:px-6 md:px-8",children:[c.jsxs(Se,{to:"/",className:"inline-flex items-center gap-2 text-ln-cyan hover:text-ln-red transition-colors duration-300 mb-8 group",children:[c.jsx(ts,{className:"w-5 h-5 group-hover:-translate-x-1 transition-transform duration-300"}),c.jsx("span",{className:"font-display uppercase tracking-wider text-sm",children:"Back to Home"})]}),c.jsxs("article",{className:"max-w-3xl mx-auto",children:[c.jsxs("header",{className:"mb-10 md:mb-14 border-l-2 border-ln-red pl-4 sm:pl-6",children:[c.jsx("h1",{className:"text-2xl sm:text-3xl md:text-4xl font-display font-bold text-white mb-2",children:"Privacy Policy"}),c.jsx("p",{className:"text-ln-cyan font-display text-sm uppercase tracking-wider",children:"Let's Game Now Table Tennis"})]}),c.jsxs("div",{className:"space-y-8 text-gray-400 font-display text-base leading-relaxed",children:[c.jsxs("p",{children:[c.jsx("strong",{className:"text-white",children:"Last updated:"})," May 26, 2026"]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Introduction"}),c.jsxs("p",{children:["This Privacy Policy describes how ",c.jsx("strong",{className:"text-white",children:"Let's Game Now Table Tennis"}),' ("the Game"), developed and published by'," ",c.jsx("strong",{className:"text-white",children:"Let's Game Now"})," ("," ",c.jsx("strong",{className:"text-white",children:"Basus Hall of Game Private Limited"}),"), founded by"," ",c.jsx("strong",{className:"text-white",children:"Santanu Basu"}),", handles information when you use the Game on mobile devices (Android and iOS)."]}),c.jsx("p",{className:"mt-3",children:"We are committed to protecting your privacy. We collect only what is necessary to provide sign-in functionality."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Information We Collect"}),c.jsxs("p",{children:["The only personal information we collect is your ",c.jsx("strong",{className:"text-white",children:"email address"}),", and only when you choose to sign in to the Game."]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"How We Use Your Email"}),c.jsx("p",{children:"Your email address is used solely to:"}),c.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1 ml-2",children:[c.jsx("li",{children:"Authenticate your account when you sign in"}),c.jsx("li",{children:"Associate your sign-in with your game session"})]}),c.jsx("p",{className:"mt-3",children:"We do not use your email for marketing, newsletters, or sharing with third parties for their own purposes."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Data Sharing"}),c.jsx("p",{children:"We do not sell, rent, or trade your email address. We may disclose information only if required by law or to protect the rights and safety of our users and company."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Data Retention"}),c.jsx("p",{children:"We retain your email only for as long as your account is active or as needed to provide sign-in. You may request deleti
333on of your account and associated email by contacting us (see below)."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Children's Privacy"}),c.jsx("p",{children:"The Game is rated for general audiences. We do not knowingly collect personal information from children beyond the email used for sign-in when a parent or guardian allows account creation. If you believe we have collected information from a child in error, please contact us."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Your Rights"}),c.jsx("p",{children:"Depending on your location, you may have the right to access, correct, or delete your email address. To exercise these rights, contact us at the email below."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Changes to This Policy"}),c.jsx("p",{children:'We may update this Privacy Policy from time to time. We will post the revised policy on this page with an updated "Last updated" date. Continued use of the Game after changes constitutes acceptance of the updated policy.'})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Contact Us"}),c.jsx("p",{children:"For questions about this Privacy Policy or your data, contact:"}),c.jsxs("p",{className:"mt-3",children:[c.jsx("strong",{className:"text-white",children:"Let's Game Now"}),c.jsx("br",{}),"Basus Hall of Game Private Limited",c.jsx("br",{}),"Founder: Santanu Basu",c.jsx("br",{}),c.jsx("a",{href:"mailto:[email protected]",className:"text-ln-cyan hover:text-ln-red transition-colors",children:"[email protected]"})]})]})]})]})]})}),c.jsx(ji,{})]}),_V=()=>c.jsxs("div",{className:"min-h-screen bg-black text-white",children:[c.jsx(Ln,{title:"Privacy Policy: LGN Chess",description:"Privacy policy for LGN Chess by Let's Game Now. We only collect your email address for sign-in.",path:"/privacy-policy-lgn-chess",keywords:"LGN Chess privacy policy, Let's Game Now Chess",breadcrumbs:[{name:"Home",path:"/"},{name:"Privacy Policy",path:"/privacy-policy-lgn-chess"}],pageType:"WebPage",dateModified:"2026-08-27"}),c.jsx(Ni,{}),c.jsx("main",{className:"pt-20 md:pt-24 pb-16",children:c.jsxs("div",{className:"container mx-auto px-4 sm:px-6 md:px-8",children:[c.jsxs(Se,{to:"/",className:"inline-flex items-center gap-2 text-ln-cyan hover:text-ln-red transition-colors duration-300 mb-8 group",children:[c.jsx(ts,{className:"w-5 h-5 group-hover:-translate-x-1 transition-transform duration-300"}),c.jsx("span",{className:"font-display uppercase tracking-wider text-sm",children:"Back to Home"})]}),c.jsxs("article",{className:"max-w-3xl mx-auto",children:[c.jsxs("header",{className:"mb-10 md:mb-14 border-l-2 border-ln-red pl-4 sm:pl-6",children:[c.jsx("h1",{className:"text-2xl sm:text-3xl md:text-4xl font-display font-bold text-white mb-2",children:"Privacy Policy"}),c.jsx("p",{className:"text-ln-cyan font-display text-sm uppercase tracking-wider",children:"LGN Chess"})]}),c.jsxs("div",{className:"space-y-8 text-gray-400 font-display text-base leading-relaxed",children:[c.jsxs("p",{children:[c.jsx("strong",{className:"text-white",children:"Last updated:"})," August 27, 2026"]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Introduction"}),c.jsxs("p",{children:["This Privacy Policy describes how ",c.jsx("strong",{className:"text-white",children:"LGN Chess"}),' ("the Game"), developed and published by'," ",c.jsx("strong",{className:"text-white",children:"Let's Game Now"})," ("," ",c.jsx("strong",{className:"text-white",children:"Basus Hall of Game Private Limited"}),"), founded by"," ",c.jsx("strong",{className:"text-white",children:"Santanu Basu"}),", handles information when you use the Game on mobile devices (Android and iOS)."]}),c.jsx("p",{className:"mt-3",children:"We are committed to protecting your privacy. We collect only what is necessary to provide sign-in functionality."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Game Modes"}),c.jsx("p",{children:"The Game includes LAN multiplayer and offline play against AI."}),c.jsxs("ul",{className:"list-disc list-inside mt-3 space-y-2 ml-2",children:[c.jsxs("li",{children:[c.jsx("strong",{className:"text-white",children:"LAN Mode:"}
333)," LAN mode allows you to play chess with another player when both devices are connected to the same local Wi-Fi or network. Information related to the match results may be recorded and associated with your account where applicable."]}),c.jsxs("li",{children:[c.jsx("strong",{className:"text-white",children:"Play Against AI:"})," This mode allows you to play against computer-controlled opponents. It is designed for offline play and does not require an internet connection."]})]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Information We Collect"}),c.jsxs("p",{children:["The only personal information we collect is your ",c.jsx("strong",{className:"text-white",children:"email address"}),", and only when you choose to sign in to the Game."]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"How We Use Your Email"}),c.jsx("p",{children:"Your email address is used solely to:"}),c.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1 ml-2",children:[c.jsx("li",{children:"Authenticate your account when you sign in"}),c.jsx("li",{children:"Associate your sign-in with your game session"})]}),c.jsx("p",{className:"mt-3",children:"We do not use your email for marketing, newsletters, or sharing with third parties for their own purposes."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Data Sharing"}),c.jsx("p",{children:"We do not sell, rent, or trade your email address. We may disclose information only if required by law or to protect the rights and safety of our users and company."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Data Retention"}),c.jsx("p",{children:"We retain your email only for as long as your account is active or as needed to provide sign-in. You may request deletion of your account and associated email by contacting us (see below)."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Children's Privacy"}),c.jsx("p",{children:"The Game is rated for general audiences. We do not knowingly collect personal information from children beyond the email used for sign-in when a parent or guardian allows account creation. If you believe we have collected information from a child in error, please contact us."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Your Rights"}),c.jsx("p",{children:"Depending on your location, you may have the right to access, correct, or delete your email address. To exercise these rights, contact us at the email below."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Changes to This Policy"}),c.jsx("p",{children:'We may update this Privacy Policy from time to time. We will post the revised policy on this page with an updated "Last updated" date. Continued use of the Game after changes constitutes acceptance of the updated policy.'})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Contact Us"}),c.jsx("p",{children:"For questions about this Privacy Policy or your data, contact:"}),c.jsxs("p",{className:"mt-3",children:[c.jsx("strong",{className:"text-white",children:"Let's Game Now"}),c.jsx("br",{}),"Basus Hall of Game Private Limited",c.jsx("br",{}),"Founder: Santanu Basu",c.jsx("br",{}),c.jsx("a",{href:"mailto:[email protected]",className:"text-ln-cyan hover:text-ln-red transition-colors",children:"[email protected]"})]})]})]})]})]})}),c.jsx(ji,{})]}),TV=()=>c.jsxs("div",{className:"min-h-screen bg-black text-white",children:[c.jsx(Ln,{title:"Terms and Conditions",description:"Terms and conditions for Let's Game Now (LGN) website and platform. Rules for using letsgamenow.com, esports content, and related services.",path:"/terms-and-conditions",keywords:"Let's Game Now terms and conditions, LGN terms, LetsGameNow, esports platform India",breadcrumbs:[{name:"Home",path:"/"},{name:"Terms and Conditions",path:"/terms-and-conditions"}],pageType:"WebPage",dateModified:"2026-09-03"}),c.jsx(Ni,{}),c.jsx("main",{className:"pt-20 md:pt-24 pb-16",children:c.jsxs("div",{className:"container mx-auto px-4 sm:px-6 md:px-8",children:[c.jsxs(Se,{to:"/",className:"inline-flex items-center gap-2 text-ln-cyan hover:text-ln-red transition-colors duration-300 mb-8 group",children:[c.jsx(ts,{className:"w-5 h-5 group-hover:-translate-x-1 transition-transform duration-300"}),c.jsx("span",{className:"font-display uppercase tracking-wider text-sm",children:"Back to Home"})]}),c.jsxs("article",{className:"max-w-3xl mx-auto",children:[c.jsxs("header",{className:"mb-10 md:mb-14 border-l-2 border-ln-red pl-4 sm:pl-6",children:[c.jsx("h1",{className:"text-2xl sm:text-3xl md:text-4xl font-display font-bold text-white mb-2",children:"Terms and Conditions"}),c.jsx("p",{className:"text-ln-cyan font-display text-sm uppercase tracking-wider",children:"Let's Game Now"})]}),c.jsxs("div",{className:"space-y-8 text-gray-400 font-display text-base leading-relaxed",children:[c.jsxs("p",{children:[c.jsx("strong",{className:"text-white",children:"Last updated:"})," September 3, 2026"]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Agreement to Terms"}),c.jsxs("p",{children:['These Terms and Conditions ("Terms") govern your access to and use of the'," ",c.jsx("strong",{className:"text-white",children:"Let's Game Now"})," website at"," ",c.jsx("a",{href:"https://letsgamenow.com",className:"text-ln-cyan hover:text-ln-red transition-colors",children:"letsgamenow.com"})," ",'("the Site"), operated by'," ",c.jsx("strong",{className:"text-white",children:"Let's Game Now"})," ("," ",c.jsx("strong",{className:"text-white",children:"Basus Hall of Game Private Limited"}),"), founded by"," ",c.jsx("strong",{className:"text-white",children:"Santanu Basu"}),". By accessing or using the Site, you agree to be bound by these Terms. If you do not agree, please do not use the Site."]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Description of Services"}),c.jsx("p",{children:"Through the Site, we provide information about esports tournaments, events, games, and related content. Tournament registration and participation may be handled through third-party platforms. Those services are subject to their own terms and policies."}),c.jsx("p",{className:"mt-3",children:"Individual games published by Let's Game Now may have separate terms and conditions. Where applicable, those game-specific terms apply in addition to these Terms."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Eligibility"}),c.jsx("p",{children:"You must be at least 13 years old to use the Site, or the minimum age required in your jurisdiction, whichever is higher. If you are under 18, you represent that you have permission from a parent or legal guardian to use the Site."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Acceptable Use"}),c.jsx("p",{children:"You agree not to:"}),c.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1 ml-2",children:[c.jsx("li",{children:"Use the Site for any unlawful purpose or in violation of these Terms"}),c.jsx("li",{children:"Attempt to gain unauthorized access to the Site, its servers, or related systems"}),c.jsx("li",{children:"Interfere with or disrupt the Site or the experience of other users"}),c.jsx("li",{children:"Scrape, copy, or reproduce Site content without our prior written consent, except as permitted by applicable law"}),c.jsx("li",{children:"Misrepresent your affiliation with Let's Game Now or impersonate any person or entity"}),c.jsx("li",{children:"Upload or transmit malware, spam, or harmful code through any Site feature"})]}),c.jsx("p",{className:"mt-3",children:"We reserve the right to restrict or terminate access to the Site for conduct that we reasonably believe violates these Terms or harms our users, partners, or services."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Third-Party Links and
333Services"}),c.jsx("p",{children:"The Site may contain links to third-party websites, platforms, or services. We do not control and are not responsible for the content, policies, or practices of third parties. Your use of third-party services is at your own risk and subject to their terms."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Intellectual Property"}),c.jsx("p",{children:"The Site and its content, including text, graphics, logos, images, videos, design, and software, are owned by or licensed to Let's Game Now and protected by intellectual property laws. These Terms do not grant you any ownership rights. You receive a limited, non-exclusive, non-transferable, revocable license to access and use the Site for personal, non-commercial purposes in accordance with these Terms."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Privacy"}),c.jsxs("p",{children:["Our collection and use of information is described in our"," ",c.jsx(Se,{to:"/privacy-policy",className:"text-ln-cyan hover:text-ln-red transition-colors",children:"Privacy Policy"}),". By using the Site, you also agree to that policy."]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Disclaimer of Warranties"}),c.jsx("p",{children:'The Site is provided on an "as is" and "as available" basis without warranties of any kind, whether express or implied, including implied warranties of merchantability, fitness for a particular purpose, and non-infringement. We do not warrant that the Site will be error-free, secure, or available at all times. Tournament schedules, results, and other information on the Site may change without notice.'})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Limitation of Liability"}),c.jsx("p",{children:"To the fullest extent permitted by applicable law, Let's Game Now and its affiliates shall not be liable for any indirect, incidental, special, consequential, or punitive damages, or any loss of data, profits, or goodwill, arising from your use of or inability to use the Site. Our total liability for any claim relating to the Site shall not exceed INR 1,000 or the amount you paid to us for Site-related services in the twelve (12) months preceding the claim, whichever is greater."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Termination"}),c.jsx("p",{children:"You may stop using the Site at any time. We may suspend or restrict access to the Site if you breach these Terms or if we discontinue the Site or any part of it. Sections that by their nature should survive termination (including intellectual property, disclaimers, limitation of liability, and governing law) will remain in effect."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Governing Law"}),c.jsx("p",{children:"These Terms are governed by the laws of India, without regard to conflict of law principles. Any disputes arising from these Terms or your use of the Site shall be subject to the exclusive jurisdiction of the courts located in India, unless applicable consumer protection laws in your jurisdiction require otherwise."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Changes to These Terms"}),c.jsx("p",{children:'We may update these Terms from time to time. We will post the revised Terms on this page with an updated "Last updated" date. Your continued use of the Site after changes become effective constitutes acceptance of the updated Terms.'})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Contact Us"}),c.jsx("p",{children:"For questions about these Terms, contact:"}),c.jsxs("p",{className:"mt-3",children:[c.jsx("strong",{className:"text-white",children:"Let's Game Now"}),c.jsx("br",{}),"Basus Hall of Game Private Limited",c.jsx("br",{}),"Founder: Santanu Basu",c.jsx("br",{}),c.jsx("a",{href:"mailto:[email protected]",className:"text-ln-cyan hover:text-ln-red transition-colors",children:"[email protected]"})]})]})]})]})]})}),c.jsx(ji,{})]}),EV=()=>c.jsxs("div",{className:"min-h-screen bg-black text-white",children:[c.jsx(Ln,{title:"Terms and Conditions: LGN Chess",description:"Terms and conditions for LGN Chess by Let's Game Now. Rules for using the chess game on Android and iOS.",path:"/terms-and-conditions-lgn-chess",keywords:"LGN Chess terms and conditions, Let's Game Now Chess",breadcrumbs:[{name:"Home",path:"/"},{name:"Terms and Conditions",path:"/terms-and-conditions-lgn-chess"}],pageType:"WebPage",dateModified:"2026-09-03"}),c.jsx(Ni,{}),c.jsx("main",{className:"pt-20 md:pt-24 pb-16",children:c.jsxs("div",{className:"container mx-auto px-4 sm:px-6 md:px-8",children:[c.jsxs(Se,{to:"/",className:"inline-flex items-center gap-2 text-ln-cyan hover:text-ln-red transition-colors duration-300 mb-8 group",children:[c.jsx(ts,{className:"w-5 h-5 group-hover:-translate-x-1 transition-transform duration-300"}),c.jsx("span",{className:"font-display uppercase tracking-wider text-sm",children:"Back to Home"})]}),c.jsxs("article",{className:"max-w-3xl mx-auto",children:[c.jsxs("header",{className:"mb-10 md:mb-14 border-l-2 border-ln-red pl-4 sm:pl-6",children:[c.jsx("h1",{className:"text-2xl sm:text-3xl md:text-4xl font-display font-bold text-white mb-2",children:"Terms and Conditions"}),c.jsx("p",{className:"text-ln-cyan font-display text-sm uppercase tracking-wider",children:"LGN Chess"})]}),c.jsxs("div",{className:"space-y-8 text-gray-400 font-display text-base leading-relaxed",children:[c.jsxs("p",{children:[c.jsx("strong",{className:"text-white",children:"Last updated:"})," September 3, 2026"]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Agreement to Terms"}),c.jsxs("p",{children:['These Terms and Conditions ("Terms") govern your access to and use of'," ",c.jsx("strong",{className:"text-white",children:"LGN Chess"}),' ("the Game"), developed and published by'," ",c.jsx("strong",{className:"text-white",children:"Let's Game Now"})," ("," ",c.jsx("strong",{className:"text-white",children:"Basus Hall of Game Private Limited"}),"), founded by"," ",c.jsx("strong",{className:"text-white",children:"Santanu Basu"}),". By downloading, installing, or using the Game on mobile devices (Android and iOS), you agree to be bound by these Terms. If you do not agree, do not use the Game."]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Description of the Game"}),c.jsx("p",{children:"LGN Chess is a digital chess application that offers the following modes:"}),c.jsxs("ul",{className:"list-disc list-inside mt-3 space-y-2 ml-2",children:[c.jsxs("li",{children:[c.jsx("strong",{className:"text-white",children:"LAN Mode:"})," Play chess with another player when both devices are connected to the same local Wi-Fi or network."]}),c.jsxs("li",{children:[c.jsx("strong",{className:"text-white",children:"Play Against AI:"})," Play against computer-controlled opponents in offline mode without an internet connection."]})]}),c.jsx("p",{className:"mt-3",children:"We may add, modify, or remove features from time to time. We do not guarantee uninterrupted availability of any particular mode or feature."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Eligibility and Accounts"}),c.jsx("p",{children:"You may use certain features of the Game without creating an account. Where sign-in is offered, you must provide accurate information and are responsible for maintaining the confidentiality of your account credentials."}),c.jsx("p",{className:"mt-3",children:"You must be at least 13 years old to create an account, or the minimum age required in your jurisdiction, whichever is higher. If you are under 18, you represent that you have permission from a parent or legal guardian to use the Game."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Acceptable Use"}),c.jsx("p",{children:"You agree not to:"}),c.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1 ml-2",children:[c.jsx("li",{children:"Use cheats, exploits, automation, or unauthorized third-party software to gain an unfair advantage"}
333),c.jsx("li",{children:"Reverse engineer, decompile, or attempt to extract the source code of the Game except as permitted by applicable law"}),c.jsx("li",{children:"Interfere with or disrupt the Game, servers, or networks connected to the Game"}),c.jsx("li",{children:"Harass, abuse, or harm other players during LAN or online interactions"}),c.jsx("li",{children:"Use the Game for any unlawful purpose or in violation of these Terms"})]}),c.jsx("p",{className:"mt-3",children:"We reserve the right to suspend or terminate access for conduct that we reasonably believe violates these Terms or harms other users or our services."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Match Results and Game Data"}),c.jsx("p",{children:"Match results and related game data may be recorded and associated with your account where applicable, particularly in LAN mode. You acknowledge that game statistics, ratings, or records displayed in the Game are provided for entertainment purposes and may be adjusted or reset as part of updates or maintenance."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Intellectual Property"}),c.jsx("p",{children:"The Game, including its software, design, graphics, audio, trademarks, and content, is owned by or licensed to Let's Game Now and is protected by intellectual property laws. These Terms do not grant you any ownership rights in the Game. You receive a limited, non-exclusive, non-transferable, revocable license to use the Game for personal, non-commercial purposes in accordance with these Terms."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Privacy"}),c.jsxs("p",{children:["Our collection and use of personal information is described in our"," ",c.jsx(Se,{to:"/privacy-policy-lgn-chess",className:"text-ln-cyan hover:text-ln-red transition-colors",children:"Privacy Policy"}),". By using the Game, you also agree to that policy."]})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Purchases and Refunds"}),c.jsx("p",{children:"If the Game offers in-app purchases now or in the future, those purchases will be processed through the applicable app store (Google Play or Apple App Store). Pricing, billing, and refund requests are subject to the policies of the relevant app store. We do not provide refunds directly except where required by law."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Disclaimer of Warranties"}),c.jsx("p",{children:'The Game is provided on an "as is" and "as available" basis without warranties of any kind, whether express or implied, including implied warranties of merchantability, fitness for a particular purpose, and non-infringement. We do not warrant that the Game will be error-free, secure, or available at all times.'})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Limitation of Liability"}),c.jsx("p",{children:"To the fullest extent permitted by applicable law, Let's Game Now and its affiliates shall not be liable for any indirect, incidental, special, consequential, or punitive damages, or any loss of data, profits, or goodwill, arising from your use of or inability to use the Game. Our total liability for any claim relating to the Game shall not exceed the amount you paid to us for the Game in the twelve (12) months preceding the claim, or INR 1,000, whichever is greater."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Termination"}),c.jsx("p",{children:"You may stop using the Game at any time. We may suspend or terminate your access to the Game if you breach these Terms or if we discontinue the Game. Sections that by their nature should survive termination (including intellectual property, disclaimers, limitation of liability, and governing law) will remain in effect."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Governing Law"}),c.jsx("p",{children:"These Terms are governed by the laws of India, without regard to conflict of law principles. Any disputes arising from these Terms or your use of the Game shall be subject to the exclusive jurisdiction of the courts located in India, unless applicable consumer protection laws in your jurisdiction require otherwise."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Changes to These Terms"}),c.jsx("p",{children:'We may update these Terms from time to time. We will post the revised Terms on this page with an updated "Last updated" date. Your continued use of the Game after changes become effective constitutes acceptance of the updated Terms.'})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Contact Us"}),c.jsx("p",{children:"For questions about these Terms, contact:"}),c.jsxs("p",{className:"mt-3",children:[c.jsx("strong",{className:"text-white",children:"Let's Game Now"}),c.jsx("br",{}),"Basus Hall of Game Private Limited",c.jsx("br",{}),"Founder: Santanu Basu",c.jsx("br",{}),c.jsx("a",{href:"mailto:[email protected]",className:"text-ln-cyan hover:text-ln-red transition-colors",children:"[email protected]"})]})]})]})]})]})}),c.jsx(ji,{})]}),SV=()=>c.jsxs("section",{className:"relative min-h-[90vh] flex items-center justify-center overflow-hidden pt-24 pb-16 md:pb-24 border-b border-white/5",children:[c.jsx("div",{className:"absolute inset-0 z-0 bg-cover bg-center bg-no-repeat opacity-30",style:{backgroundImage:"url(/images/bharat-run/hero_bg_1781511354605.jpg)",filter:"grayscale(30%) contrast(120%)"}}),c.jsx("div",{className:"absolute inset-0 z-10 bg-gradient-to-b from-br-dark/90 via-br-dark/70 to-br-dark/90"}),c.jsx("div",{className:"absolute inset-x-0 bottom-0 z-20 h-40 bg-gradient-to-t from-br-dark to-transparent"}),c.jsx("div",{className:"relative z-30 container mx-auto px-4 sm:px-6 md:px-12 flex flex-col items-center gap-6 sm:gap-8 text-center",children:c.jsxs(qe.div,{initial:{opacity:0,y:30}
333,animate:{opacity:1,y:0},transition:{duration:.8,ease:"easeOut"},className:"w-full max-w-4xl mx-auto space-y-6 sm:space-y-8",children:[c.jsxs("div",{className:"space-y-3 sm:space-y-4",children:[c.jsx("span",{className:"inline-block px-3 py-1 bg-br-orange/10 border border-br-orange/20 text-br-orange text-[9px] sm:text-[10px] uppercase tracking-widest font-display font-medium rounded",children:"Now on Google Play"}),c.jsx(qe.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},transition:{delay:.2,duration:.8},className:"flex justify-center px-2",children:c.jsx("img",{src:"/images/bharat-run/bharat-run-logo.png",alt:"Bharat Run",className:"w-full max-w-[min(92vw,480px)] h-auto"})})]}),c.jsxs(qe.p,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.4,duration:.6},className:"text-base sm:text-lg md:text-xl font-display font-light leading-relaxed max-w-2xl mx-auto px-2 space-y-4",children:[c.jsxs("span",{className:"block",children:[c.jsx("span",{className:"font-semibold text-transparent bg-clip-text bg-gradient-to-r from-br-orange via-white to-br-emerald",children:"Run through India"})," ","and learn about India."]}),c.jsxs("span",{className:"block text-white/80",children:[c.jsx("span",{className:"font-semibold text-transparent bg-clip-text bg-gradient-to-r from-br-orange via-amber-200 to-br-orange",children:"Play and learn"})," ","as you sprint through"," ",c.jsx("span",{className:"font-semibold text-transparent bg-clip-text bg-gradient-to-r from-white to-br-emerald",children:"every state"}),", discovering"," ",c.jsx("span",{className:"font-semibold text-transparent bg-clip-text bg-gradient-to-r from-br-emerald via-teal-200 to-br-orange",children:"India's rich culture"})," ","along the way."]})]}),c.jsxs(qe.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.6,duration:.6},className:"pt-2 flex flex-col items-center gap-4",children:[c.jsx(uN,{}),c.jsx("a",{href:"#trailer",className:"px-10 sm:px-12 py-4 sm:py-5 border border-white/20 text-white font-display font-bold uppercase text-[10px] tracking-[0.2em] rounded-sm hover:bg-white/10 transition-all",children:"Watch Trailer"})]})]})})]}),AV=()=>c.jsx("section",{id:"trailer",className:"py-16 md:py-24 relative overflow-hidden",children:c.jsxs("div",{className:"container mx-auto px-6 relative z-10",children:[c.jsxs(qe.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-100px"},transition:{duration:.8},className:"text-center mb-12",children:[c.jsx("span",{className:"text-[10px] uppercase tracking-widest text-br-orange font-display font-medium block mb-4",children:"Cinematic Reveal"}),c.jsx("h2",{className:"text-4xl md:text-5xl font-display font-bold text-white uppercase tracking-tighter",children:"Experience The Rush"})]}),c.jsxs(qe.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{duration:.8,delay:.2},className:"max-w-5xl mx-auto relative group",children:[c.jsx("div",{className:"absolute -inset-4 bg-gradient-to-r from-br-orange to-br-emerald rounded-2xl blur-2xl opacity-20 hidden md:block transition-opacity duration-500 group-hover:opacity-30"}),c.jsx("div",{className:"relative aspect-video rounded-xl border border-white/10 overflow-hidden shadow-2xl",children:c.jsx("iframe",{className:"absolute inset-0 w-full h-full",src:"https://www.youtube.com/embed/FazotdQ79rU?autoplay=0&rel=0&showinfo=0",title:"Bharat Run Trailer",allow:"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture",allowFullScreen:!0})})]})]})}),aT=[{src:"/images/bharat-run/gallery-start.png",alt:"Start Screen"},{src:"/images/bharat-run/gallery-red-fort.png",alt:"Red Fort Run"},{src:"/images/bharat-run/gallery-city-run.png",alt:"City Run"},{src:"/images/bharat-run/gallery-lotus-temple.png",alt:"Lotus Temple"}],NV=()=>{const t=[...aT,...aT];return c.jsxs("section",{className:"py-16 md:py-24 relative overflow-hidden border-t border-white/5",children:[c.jsx("div",{className:"container mx-auto px-6 mb-12",children:c.jsxs("div",{className:"text-center",children:[c.jsxs(qe.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-4xl md:text-5xl font-display font-bold text-white uppercase tracking-tighter",children:["Bharat Run ",c.jsx("span",{className:"text-br-orange",children:"Gallery"})]}),c.jsx("div",{className:"text-[10px] font-display font-medium text-br-emerald uppercase tracking-[0.3em] mt-4 opacity-70",children:"Visual Showcase"})]})}),c.jsxs("div",{className:"relative",children:[c.jsx("div",{className:"absolute left-0 top-0 bottom-0 w-16 sm:w-24 bg-gradient-to-r from-br-dark to-transparent z-10 pointer-events-none"}),c.jsx("div",{className:"absolute right-0 top-0 bottom-0 w-16 sm:w-24 bg-gradient-to-l from-br-dark to-transparent z-10 pointer-events-none"}),c.jsx("div",{className:"overflow-hidden border-y border-white/5 py-2",children:c.jsx("div",{className:"flex w-max animate-br-marquee gap-4 sm:gap-6 px-4 sm:px-6",children:t.map((e,n)=>c.jsx("div",{className:"relative shrink-0 w-64 sm:w-80 md:w-96 aspect-video overflow-hidden rounded-2xl border border-white/10",children:c.jsx("img",{src:e.src,alt:e.alt,className:"w-full h-full object-cover",loading:"lazy"})},`${e.alt}-${n}`))})})]})]})},jV=[{icon:bk,title:"Endless runner set across India",description:"Character runs through iconic Indian landscapes, dodging obstacles unique to each state."},{icon:Ck,title:"Heritage monument discovery",description:"Each monument triggers a rich cultural info card: history, significance, why it's famous."},{icon:vS,title:"28 States, 300+ monuments",description:"Phase 2 unlocks all remaining states, each with unique art, music & culture.",badge:"Delhi MVP complete"}
333,{icon:tk,title:"Edutainment core loop",description:"Learn while playing. Players earn culture points for discovering monuments, fuelling replayability."},{icon:pS,title:"Target audience",description:"Indian mobile gamers aged 8-35. Students, families, travel enthusiasts. Global Indian diaspora."}],RV=()=>c.jsx("section",{id:"about",className:"py-16 md:py-24 relative border-t border-white/5",children:c.jsxs("div",{className:"container mx-auto px-6 max-w-5xl",children:[c.jsxs(qe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"border-l-2 border-br-orange pl-5 sm:pl-6 mb-12 sm:mb-16",children:[c.jsxs("div",{className:"flex items-center gap-3 mb-2",children:[c.jsx(_k,{className:"w-5 h-5 text-br-orange shrink-0"}),c.jsx("span",{className:"text-[10px] uppercase tracking-[0.3em] text-br-orange font-display font-medium",children:"The Game"})]}),c.jsxs("h2",{className:"text-3xl sm:text-4xl md:text-5xl font-display font-bold text-white tracking-tighter",children:["What Is ",c.jsx("span",{className:"text-br-orange",children:"Bharat Run?"})]})]}),c.jsx("div",{className:"space-y-4",children:jV.map((t,e)=>c.jsxs(qe.div,{initial:{opacity:0,x:-16},whileInView:{opacity:1,x:0},viewport:{once:!0,margin:"-40px"},transition:{delay:e*.08,duration:.5},className:"group flex gap-4 sm:gap-6 p-5 sm:p-6 rounded-2xl border border-white/5 bg-br-zinc/50 hover:bg-white/[0.03] hover:border-white/10 transition-colors",children:[c.jsx("div",{className:"shrink-0 w-11 h-11 sm:w-12 sm:h-12 rounded-xl bg-br-orange/10 border border-br-orange/20 flex items-center justify-center text-br-orange group-hover:bg-br-orange/15 transition-colors",children:c.jsx(t.icon,{className:"w-5 h-5 sm:w-6 sm:h-6"})}),c.jsxs("div",{className:"min-w-0 pt-0.5",children:[c.jsxs("div",{className:"flex flex-wrap items-center gap-x-3 gap-y-2 mb-1.5",children:[c.jsx("h3",{className:"text-sm sm:text-base font-display font-bold text-white tracking-tight",children:t.title}),t.badge&&c.jsx("span",{className:"inline-flex items-center px-2.5 py-0.5 rounded-full text-[9px] sm:text-[10px] uppercase tracking-wider font-display font-medium bg-br-emerald/10 text-br-emerald border border-br-emerald/20",children:t.badge})]}),c.jsx("p",{className:"text-sm font-display font-light text-white/50 leading-relaxed",children:t.description})]})]},t.title))})]})}),CV=[{icon:mS,title:"Travel India",description:"Travel through iconic Indian-inspired environments and landscapes."},{icon:TS,title:"Skill-Based Gameplay",description:"Fast-paced, high-intensity runner mechanics that test your reflexes."},{icon:vS,title:"Cultural Landmarks",description:"Discover real cultural landmarks and rich Indian heritage as you run."},{icon:Pk,title:"Unlock States",description:"Unlock new states and experiences to explore different regions."}],IV=[{icon:fk,title:"Interactive Showcase",description:"A rich, vibrant showcase of India's incredible diversity."},{icon:Za,title:"Accessible to All",description:"Engaging and perfectly balanced for all types of players."},{icon:Yk,title:"Future Expansions",description:"Scalable with constant future updates, new states, and features."}],DV=()=>c.jsx("section",{className:"py-16 md:py-24 relative border-t border-white/5 bg-white/[0.01]",children:c.jsxs("div",{className:"container mx-auto px-6 relative z-10",children:[c.jsxs("div",{className:"text-center mb-12 md:mb-16",children:[c.jsxs(qe.div,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"inline-flex items-center justify-center gap-3 px-4 py-1.5 bg-br-orange/10 border border-br-orange/20 text-br-orange text-[10px] uppercase tracking-[0.2em] font-display font-medium rounded mb-6",children:[c.jsx(mS,{className:"w-4 h-4"}),c.jsx("span",{children:"Core Highlight"})]}),c.jsxs(qe.h2,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:.1},className:"text-4xl md:text-6xl font-display font-bold text-white uppercase tracking-tighter",children:["Explore India,",c.jsx("span",{className:"block text-transparent bg-clip-text bg-gradient-to-r from-br-orange to-br-emerald",children:"One State at a Time"})]})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6",children:CV.map((t,e)=>c.jsxs(qe.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:e*.1},className:"bg-br-zinc border border-white/5 p-8 hover:bg-white/[0.02] transition-colors group cursor-default",children:[c.jsxs("div",{className:"text-[9px] font-display font-medium text-br-emerald uppercase tracking-[0.3em] mb-4 opacity-70",children:["Point 0",e+1]}),c.jsx("div",{className:"w-12 h-12 bg-white/5 text-white flex items-center justify-center mb-6 group-hover:text-br-orange transition-colors",children:c.jsx(t.icon,{className:"w-6 h-6"})}),c.jsx("h3",{className:"text-sm font-display font-bold uppercase tracking-widest mb-2",children:t.title}),c.jsx("p",{className:"text-[11px] font-display font-light text-white/40 leading-relaxed",children:t.description})]},t.title))}),c.jsxs("div",{className:"max-w-6xl mx-auto border-t border-white/5 mt-16 md:mt-20 py-16 md:py-20",children:[c.jsxs("div",{className:"text-center mb-12 md:mb-16",children:[c.jsxs(qe.h3,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},className:"text-3xl md:text-5xl font-display font-bold text-white uppercase tracking-tighter mb-4",children:["Key ",c.jsx("span",{className:"text-br-orange",children:"Advantages"})]}),c.jsx("p",{className:"text-sm font-display font-light text-white/40 tracking-wide max-w-2xl mx-auto uppercase",children:"Why Bharat Run is the next evolution in mobile games."})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-6",children:IV.map((t,e)=>c.jsxs(qe.div,{initial:{opacity:0,scale:.95},whileInView:{opacity:1,scale:1},viewport:{once:!0},transition:{delay:e*.15},className:"bg-br-zinc border border-white/5 p-8 text-center flex flex-col items-center hover:bg-white/[0.02] transition-colors group",children:[c.jsx("div",{className:"w-16 h-16 rounded-full bg-gradient-to-tr from-br-orange to-br-emerald p-[1px] mb-6 shadow-lg shadow-br-orange/10 group-hover:scale-110 transition-transform",children:c.jsx("div",{className:"w-full h-full bg-br-dark rounded-full flex items-center justify-center",children:c.jsx(t.icon,{className:"w-6 h-6 text-white"})})}),c.jsx("h4",{className:"text-sm font-display font-bold uppercase tracking-widest mb-2",children:t.title}),c.jsx("p",{className:"text-[11px] font-display font-light text-white/40 leading-relaxed",children:t.description})]},t.title))})]})]})}),hN=()=>c.jsxs("footer",{className:"bg-br-zinc border-t border-white/5 pt-12 md:pt-16 pb-8",children:[c.jsxs("div",{className:"container mx-auto px-6 flex flex-col md:flex-row items-center justify-between",children:[c.jsxs("div",{className:"mb-6 md:mb-0 text-center md:text-left",children:[c.jsx("img",{src:"/images/bharat-run/lgn-logo.png",alt:"Let's Game Now",className:"h-10 w-auto mx-auto md:mx-0 mb-4"}),c.jsxs("h2",{className:"text-xl font-display font-bold text-white uppercase tracking-tight",children:["BHARAT",c.jsx("span",{className:"text-br-orange",children:"RUN"})]}),c.jsx("p",{className:"text-[11px] font-display font-light text-white/40 mt-2 uppercase tracking-widest max-w-xs",children:"Built for Fast-Paced Exploration & Cultural Discovery."})]}),c.jsxs("div",{className:"flex gap-6 text-[10px] uppercase tracking-widest text-white/40 font-display font-medium",children:[c.jsx(Se,{to:"/games/bharat-run/privacy",className:"hover:text-br-orange transition-colors",children:"Privacy Policy"}),c.jsx("a",{href:"mailto:[email protected]",className:"hover:text-br-orange transition-colors",children:"Contact"})]})]}),c.jsxs("div",{className:"container mx-auto px-6 mt-12 pt-8 border-t border-white/5 text-center text-[10px] uppercase font-display font-medium tracking-[0.2em] text-white/20",children:["© ",new Date().getFullYear()," Let's Game Now. All rights reserved."]})]}),kV=()=>c.jsxs("main",{className:"font-display font-normal selection:bg-br-orange/30 selection:text-white relative bg-br-dark overflow-x-hidden text-white min-h-screen",children:[c.jsx(Ln,{title:"Bharat Run: Run Through India & Learn About India",description:"Bharat Run is an endless runner set across India. Sprint through every state, discover 300+ heritage monuments, and learn India's rich culture while you play.",path:"/games/bharat-run",image:"/images/bharat-run/bharat-run-logo.png",keywords:"Bharat Run, Indian endless runner, edutainment game, Indian culture game, Let's Game Now",breadcrumbs:[{name:"Home",path:"/"},{name:"Bharat Run",path:"/games/bharat-run"}],pageType:"WebPage",dateModified:"2026-08-17"}),c.jsx("div",{className:"fixed top-[-100px] left-[-100px] w-[500px] h-[500px] bg-br-orange/10 rounded-full blur-[120px] pointer-events-none z-0"}),c.jsx("div",{className:"fixed bottom-[-50px] right-[-50px] w-[400px] h-[400px] bg-br-emerald/10 rounded-full blur-[100px] pointer-events-none z-0"}),c.jsx("div",{className:"fixed inset-0 opacity-[0.03] pointer-events-none z-0",style:{backgroundImage:"radial-gradient(#fff 1px, transparent 1px)",backgroundSize:"40px 40px"}}),c.jsx("header",{className:"fixed top-0 inset-x-0 z-50 bg-br-dark/80 backdrop-blur-md",children:c.jsxs("div",{className:"container mx-auto px-6 md:px-12 py-6 flex items-center justify-between",children:[c.jsx(Se,{to:"/",className:"flex items-center",children:c.jsx("img",{src:"/images/bharat-run/lgn-logo.png",alt:"Let's Game Now",className:"h-10 w-auto"})}),c.jsxs("nav",{className:"hidden md:flex space-x-10 text-[11px] uppercase tracking-[0.2em] font-display font-medium opacity-70",children:[c.jsx("a",{href:"#trailer",className:"hover:text-br-orange transition-colors",children:"Trailer"}),c.jsx("a",{href:"#gallery",className:"hover:text-br-orange transition-colors",children:"Gallery"}),c.jsx("a",{href:"#about",className:"hover:text-br-orange transition-colors",children:"About"}),c.jsx("a",{href:"#features",className:"hover:text-br-orange transition-colors",children:"Features"})]}),c.jsx(uN,{className:"!px-5 !py-2 !text-[9px]"})]})}),c.jsxs("div",{className:"relative z-10",children:[c.jsx(SV,{}),c.jsx(AV,{}),c.jsx("div",{id:"gallery",children:c.jsx(NV,{})}),c.jsx(RV,{}),c.jsx("div",{id:"features",children:c.jsx(DV,{})})]}),c.jsx(hN,{})]}),MV=()=>c.jsxs("div",{className:"min-h-screen bg-br-dark text-white font-display",children:[c.jsx(Ln,{title:"Privacy Policy: Bharat Run",description:"Privacy policy for Bharat Run by Let's Game Now. How we handle information when you play Bharat Run.",path:"/games/bharat-run/privacy",keywords:"Bharat Run privacy policy, Let's Game Now",breadcrumbs:[{name:"Home",path:"/"},{name:"Bharat Run",path:"/games/bharat-run"},{name:"Privacy Policy",path:"/games/bharat-run/privacy"}],pageType:"WebPage",dateModified:"2026-07-21"}),c.jsx("header",{className:"fixed top-0 inset-x-0 z-50 bg-br-dark/80 backdrop-blur-md border-b border-white/5",children:c.jsxs("div",{className:"container mx-auto px-6 md:px-12 py-6 flex items-center justify-between",children:[c.jsx(Se,{to:"/",className:"flex items-center",children:c.jsx("img",{src:"/images/bharat-run/lgn-logo.png",alt:"Let's Game Now",className:"h-10 w-auto"})}),c.jsx(Se,{to:"/games/bharat-run",className:"text-[10px] uppercase tracking-widest font-display font-medium text-white/60 hover:text-br-orange transition-colors",children:"Bharat Run"})]})}),c.jsx("main",{className:"pt-28 md:pt-32 pb-16",children:c.jsxs("div",{className:"container mx-auto px-4 sm:px-6 md:px-8",children:[c.jsxs(Se,{to:"/games/bharat-run",className:"inline-flex items-center gap-2 text-br-orange hover:text-white transition-colors duration-300 mb-8 group",children:[c.jsx(ts,{className:"w-5 h-5 group-hover:-translate-x-1 transition-transform duration-300"}),c.jsx("span",{className:"font-display uppercase tracking-wider text-sm",children:"Back to Bharat Run"})]}),c.jsxs("article",{className:"max-w-3xl mx-auto",children:[c.jsxs("header",{className:"mb-10 md:mb-14 border-l-2 border-br-orange pl-4 sm:pl-6",children:[c.jsx("h1",{className:"text-2xl sm:text-3xl md:text-4xl font-display font-bold text-white mb-2",children:"Privacy Policy"}),c.jsx("p",{className:"text-br-emerald font-display text-sm uppercase tracking-wider",children:"Bharat Run"})]}),c.jsxs("div",{className:"space-y-8 text-gray-400 font-display text-base leading-relaxed",children:[c.jsxs("p",{children:[c.jsx("strong",{className:"text-white",children:"Last updated:"})," July 21, 2026"]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Introduction"}),c.jsxs("p",{children:["This Privacy Policy describes how"," ",c.jsx("strong",{className:"text-white",children:"Bharat Run"}),' ("the Game"), developed and published by'," ",c.jsx("strong",{className:"text-white",children:"Let's Game Now"})," ("," ",c.jsx("strong",{className:"text-white",children:"Basus Hall of Game Private Limited"}),"), founded by"," ",c.jsx("strong",{className:"text-white",children:"Santanu Basu"}),", handles information when you use the Game on mobile devices (Android and iOS)."]}),c.jsx("p",{className:"mt-3",children:"We are committed to protecting your privacy and collect only what is needed to operate and improve the Game."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Information We Collect"}),c.jsx("p",{children:"Depending on how you use the Game, we may collect:"}),c.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1 ml-2",children:[c.jsxs("li",{children:[c.jsx("strong",{className:"text-white",children:"Account information"}),":"," ","such as an email address, if you choose to sign in"]}),c.jsxs("li",{children:[c.jsx("strong",{className:"text-white",children:"Gameplay data"}),": progress, scores, culture points, unlocked states, and similar in-game activity"]}),c.jsxs("li",{children:[c.jsx("strong",{className:"text-white",children:"Device & technical data"}),":"," ","device type, OS version, app version, crash logs, and performance diagnostics"]})]}),c.jsx("p",{className:"mt-3",children:"We do not require you to provide personal information to play basic offline features of the Game."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"How We Use Information"}),c.jsx("p",{children:"We use collected information to:"}),c.jsxs("ul",{className:"list-disc list-inside mt-2 space-y-1 ml-2",children:[c.jsx("li",{children:"Provide, maintain, and improve the Game"}),c.jsx("li",{children:"Authenticate your account when you sign in"}),c.jsx("li",{children:"Save progress and sync gameplay across sessions"}),c.jsx("li",{children:"Diagnose bugs, crashes, and performance issues"}),c.jsx("li",{children:"Comply with legal obligations"})]}),c.jsx("p",{className:"mt-3",children:"We do not sell your personal information. We do not use your email for third-party marketing without your consent."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Data Sharing"}),c.jsx("p",{children:"We do not sell, rent, or trade your personal information. We may share limited data with service providers who help us operate the Game (for example hosting, analytics, or crash reporting), only as needed for those services. We may al
333so disclose information if required by law or to protect the rights and safety of our users and company."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Data Retention"}),c.jsx("p",{children:"We retain account and gameplay data only for as long as needed to provide the Game, support your account, or comply with legal requirements. You may request deletion of your account and associated personal data by contacting us (see below)."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Children's Privacy"}),c.jsx("p",{children:"Bharat Run is designed for a broad audience, including players aged 8 and up, and is intended as an edutainment experience for students and families. We do not knowingly collect personal information from children beyond what is needed for optional sign-in when a parent or guardian allows account creation. If you believe we have collected information from a child in error, please contact us."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Your Rights"}),c.jsx("p",{children:"Depending on your location, you may have the right to access, correct, or delete your personal information. To exercise these rights, contact us at the email below."})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Changes to This Policy"}),c.jsx("p",{children:'We may update this Privacy Policy from time to time. We will post the revised policy on this page with an updated "Last updated" date. Continued use of the Game after changes constitutes acceptance of the updated policy.'})]}),c.jsxs("section",{children:[c.jsx("h2",{className:"text-xl font-display font-bold text-white mb-3",children:"Contact Us"}),c.jsx("p",{children:"For questions about this Privacy Policy or your data, contact:"}),c.jsxs("p",{className:"mt-3",children:[c.jsx("strong",{className:"text-white",children:"Let's Game Now"}),c.jsx("br",{}),"Basus Hall of Game Private Limited",c.jsx("br",{}),"Founder: Santanu Basu",c.jsx("br",{}),c.jsx("a",{href:"mailto:[email protected]",className:"text-br-orange hover:text-br-emerald transition-colors",children:"[email protected]"})]})]})]})]})]})}),c.jsx(hN,{})]});var oT={};/** 334 * @license 335 * Copyright 2017 Google LLC 336 * 337 * Licensed under the Apache License, Version 2.0 (the "License"); 338 * you may not use this file except in compliance with the License. 339 * You may obtain a copy of the License at 340 * 341 * http://www.apache.org/licenses/LICENSE-2.0 342 * 343 * Unless required by applicable law or agreed to in writing, software 344 * distributed under the License is distributed on an "AS IS" BASIS, 345 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 346 * See the License for the specific language governing permissions and 347 * limitations under the License. 348 */const dN=function(t){const e=[];let n=0;for(let s=0;s<t.length;s++){let a=t.charCodeAt(s);a<128?e[n++]=a:a<2048?(e[n++]=a>>6|192,e[n++]=a&63|128):(a&64512)===55296&&s+1<t.length&&(t.charCodeAt(s+1)&64512)===56320?(a=65536+((a&1023)<<10)+(t.charCodeAt(++s)&1023),e[n++]=a>>18|240,e[n++]=a>>12&63|128,e[n++]=a>>6&63|128,e[n++]=a&63|128):(e[n++]=a>>12|224,e[n++]=a>>6&63|128,e[n++]=a&63|128)}return e},LV=function(t){const e=[];let n=0,s=0;for(;n<t.length;){const a=t[n++];if(a<128)e[s++]=String.fromCharCode(a);else if(a>191&&a<224){const l=t[n++];e[s++]=String.fromCharCode((a&31)<<6|l&63)}else if(a>239&&a<365){const l=t[n++],u=t[n++],d=t[n++],m=((a&7)<<18|(l&63)<<12|(u&63)<<6|d&63)-65536;e[s++]=String.fromCharCode(55296+(m>>10)),e[s++]=String.fromCharCode(56320+(m&1023))}else{const l=t[n++],u=t[n++];e[s++]=String.fromCharCode((a&15)<<12|(l&63)<<6|u&63)}}return e.join("")},fN={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(t,e){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();const n=e?this.byteToCharMapWebSafe_:this.byteToCharMap_,s=[];for(let a=0;a<t.length;a+=3){const l=t[a],u=a+1<t.length,d=u?t[a+1]:0,m=a+2<t.length,g=m?t[a+2]:0,x=l>>2,v=(l&3)<<4|d>>4;let T=(d&15)<<2|g>>6,E=g&63;m||(E=64,u||(T=64)),s.push(n[x],n[v],n[T],n[E])}return s.join("")},encodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?btoa(t):this.encodeByteArray(dN(t),e)},decodeString(t,e){return this.HAS_NATIVE_SUPPORT&&!e?atob(t):LV(this.decodeStringToByteArray(t,e))},decodeStringToByteArray(t,e){this.init_();const n=e?this.charToByteMapWebSafe_:this.charToByteMap_,s=[];for(let a=0;a<t.length;){const l=n[t.charAt(a++)],d=a<t.length?n[t.charAt(a)]:0;++a;const g=a<t.length?n[t.charAt(a)]:64;++a;const v=a<t.length?n[t.charAt(a)]:64;if(++a,l==null||d==null||g==null||v==null)throw new OV;const T=l<<2|d>>4;if(s.push(T),g!==64){const E=d<<4&240|g>>2;if(s.push(E),v!==64){const C=g<<6&192|v;s.push(C)}}}return s},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}};
348class OV extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const PV=function(t){const e=dN(t);return fN.encodeByteArray(e,!0)},ff=function(t){return PV(t).replace(/\./g,"")},mN=function(t){try{return fN.decodeString(t,!0)}catch(e){console.error("base64Decode failed: ",e)}return null};/** 349 * @license 350 * Copyright 2022 Google LLC 351 * 352 * Licensed under the Apache License, Version 2.0 (the "License"); 353 * you may not use this file except in compliance with the License. 354 * You may obtain a copy of the License at 355 * 356 * http://www.apache.org/licenses/LICENSE-2.0 357 * 358 * Unless required by applicable law or agreed to in writing, software 359 * distributed under the License is distributed on an "AS IS" BASIS, 360 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 361 * See the License for the specific language governing permissions and 362 * limitations under the License. 363 */function VV(){if(typeof self<"u")return self;if(typeof window<"u")return window;if(typeof global<"u")return global;throw new Error("Unable to locate global object.")}/** 364 * @license 365 * Copyright 2022 Google LLC 366 * 367 * Licensed under the Apache License, Version 2.0 (the "License"); 368 * you may not use this file except in compliance with the License. 369 * You may obtain a copy of the License at 370 * 371 * http://www.apache.org/licenses/LICENSE-2.0 372 * 373 * Unless required by applicable law or agreed to in writing, software 374 * distributed under the License is distributed on an "AS IS" BASIS, 375 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 376 * See the License for the specific language governing permissions and 377 * limitations under the License. 378 */const UV=()=>VV().__FIREBASE_DEFAULTS__,BV=()=>{if(typeof process>"u"||typeof oT>"u")return;const t=oT.__FIREBASE_DEFAULTS__;if(t)return JSON.parse(t)},zV=()=>{if(typeof document>"u")return;let t;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const e=t&&mN(t[1]);return e&&JSON.parse(e)},Of=()=>{try{return UV()||BV()||zV()}catch(t){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);return}},pN=t=>{var e,n;return(n=(e=Of())===null||e===void 0?void 0:e.emulatorHosts)===null||n===void 0?void 0:n[t]},FV=t=>{const e=pN(t);if(!e)return;const n=e.lastIndexOf(":");if(n<=0||n+1===e.length)throw new Error(`Invalid host ${e} with no separate hostname and port!`);const s=parseInt(e.substring(n+1),10);return e[0]==="["?[e.substring(1,n-1),s]:[e.substring(0,n),s]},gN=()=>{var t;return(t=Of())===null||t===void 0?void 0:t.config},yN=t=>{var e;return(e=Of())===null||e===void 0?void 0:e[`_${t}`]};/** 379 * @license 380 * Copyright 2017 Google LLC 381 * 382 * Licensed under the Apache License, Version 2.0 (the "License"); 383 * you may not use this file except in compliance with the License. 384 * You may obtain a copy of the License at 385 * 386 * http://www.apache.org/licenses/LICENSE-2.0 387 * 388 * Unless required by applicable law or agreed to in writing, software 389 * distributed under the License is distributed on an "AS IS" BASIS, 390 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 391 * See the License for the specific language governing permissions and 392 * limitations under the License. 393 */class GV{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,n)=>{this.resolve=e,this.reject=n})}wrapCallback(e){return(n,s)=>{n?this.reject(n):this.resolve(s),typeof e=="function"&&(this.promise.catch(()=>{}),e.length===1?e(n):e(n,s))}}}/** 394 * @license 395 * Copyright 2021 Google LLC 396 * 397 * Licensed under the Apache License, Version 2.0 (the "License"); 398 * you may not use this file except in compliance with the License. 399 * You may obtain a copy of the License at 400 * 401 * http://www.apache.org/licenses/LICENSE-2.0 402 * 403 * Unless required by applicable law or agreed to in writing, software 404 * distributed under the License is distributed on an "AS IS" BASIS, 405 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 406 * See the License for the specific language governing permissions and 407 * limitations under the License. 408 */function qV(t,e){if(t.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const n={alg:"none",type:"JWT"},s=e||"demo-project",a=t.iat||0,l=t.sub||t.user_id;if(!l)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const u=Object.assign({iss:`https://securetoken.google.com/${s}`,aud:s,iat:a,exp:a+3600,auth_time:a,sub:l,user_id:l,firebase:{sign_in_provider:"custom",identities:{}}},t);return[ff(JSON.stringify(n)),ff(JSON.stringify(u)),""].join(".")}/** 409 * @license 410 * Copyright 2017 Google LLC 411 * 412 * Licensed under the Apache License, Version 2.0 (the "License");
413 * you may not use this file except in compliance with the License. 414 * You may obtain a copy of the License at 415 * 416 * http://www.apache.org/licenses/LICENSE-2.0 417 * 418 * Unless required by applicable law or agreed to in writing, software 419 * distributed under the License is distributed on an "AS IS" BASIS, 420 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 421 * See the License for the specific language governing permissions and 422 * limitations under the License. 423 */function mn(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function HV(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(mn())}function $V(){var t;const e=(t=Of())===null||t===void 0?void 0:t.forceEnvironment;if(e==="node")return!0;if(e==="browser")return!1;try{return Object.prototype.toString.call(global.process)==="[object process]"}catch{return!1}}function KV(){return typeof navigator<"u"&&navigator.userAgent==="Cloudflare-Workers"}function YV(){const t=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof t=="object"&&t.id!==void 0}function WV(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function QV(){const t=mn();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0}function XV(){return!$V()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function JV(){try{return typeof indexedDB=="object"}catch{return!1}}function ZV(){return new Promise((t,e)=>{try{let n=!0;const s="validate-browser-context-for-indexeddb-analytics-module",a=self.indexedDB.open(s);a.onsuccess=()=>{a.result.close(),n||self.indexedDB.deleteDatabase(s),t(!0)},a.onupgradeneeded=()=>{n=!1},a.onerror=()=>{var l;e(((l=a.error)===null||l===void 0?void 0:l.message)||"")}}catch(n){e(n)}})}/** 424 * @license 425 * Copyright 2017 Google LLC 426 * 427 * Licensed under the Apache License, Version 2.0 (the "License"); 428 * you may not use this file except in compliance with the License. 429 * You may obtain a copy of the License at 430 * 431 * http://www.apache.org/licenses/LICENSE-2.0 432 * 433 * Unless required by applicable law or agreed to in writing, software 434 * distributed under the License is distributed on an "AS IS" BASIS, 435 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 436 * See the License for the specific language governing permissions and 437 * limitations under the License. 438 */const e3="FirebaseError";class Hs extends Error{constructor(e,n,s){super(n),this.code=e,this.customData=s,this.name=e3,Object.setPrototypeOf(this,Hs.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,Bu.prototype.create)}}class Bu{constructor(e,n,s){this.service=e,this.serviceName=n,this.errors=s}create(e,...n){const s=n[0]||{},a=`${this.service}/${e}`,l=this.errors[e],u=l?t3(l,s):"Error",d=`${this.serviceName}: ${u} (${a}).`;return new Hs(a,d,s)}}function t3(t,e){return t.replace(n3,(n,s)=>{const a=e[s];return a!=null?String(a):`<${s}?>`})}const n3=/\{\$([^}]+)}/g;function i3(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}function mf(t,e){if(t===e)return!0;const n=Object.keys(t),s=Object.keys(e);for(const a of n){if(!s.includes(a))return!1;const l=t[a],u=e[a];if(lT(l)&&lT(u)){if(!mf(l,u))return!1}else if(l!==u)return!1}for(const a of s)if(!n.includes(a))return!1;return!0}function lT(t){return t!==null&&typeof t=="object"}/** 439 * @license 440 * Copyright 2017 Google LLC 441 * 442 * Licensed under the Apache License, Version 2.0 (the "License"); 443 * you may not use this file except in compliance with the License. 444 * You may obtain a copy of the License at 445 * 446 * http://www.apache.org/licenses/LICENSE-2.0 447 * 448 * Unless required by applicable law or agreed to in writing, software 449 * distributed under the License is distributed on an "AS IS" BASIS, 450 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 451 * See the License for the specific language governing permissions and 452 * limitations under the License. 453 */function zu(t){const e=[];
453for(const[n,s]of Object.entries(t))Array.isArray(s)?s.forEach(a=>{e.push(encodeURIComponent(n)+"="+encodeURIComponent(a))}):e.push(encodeURIComponent(n)+"="+encodeURIComponent(s));return e.length?"&"+e.join("&"):""}function Jc(t){const e={};return t.replace(/^\?/,"").split("&").forEach(s=>{if(s){const[a,l]=s.split("=");e[decodeURIComponent(a)]=decodeURIComponent(l)}}),e}function Zc(t){const e=t.indexOf("?");if(!e)return"";const n=t.indexOf("#",e);return t.substring(e,n>0?n:void 0)}function s3(t,e){const n=new r3(t,e);return n.subscribe.bind(n)}class r3{constructor(e,n){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=n,this.task.then(()=>{e(this)}).catch(s=>{this.error(s)})}next(e){this.forEachObserver(n=>{n.next(e)})}error(e){this.forEachObserver(n=>{n.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,n,s){let a;if(e===void 0&&n===void 0&&s===void 0)throw new Error("Missing Observer.");a3(e,["next","error","complete"])?a=e:a={next:e,error:n,complete:s},a.next===void 0&&(a.next=$g),a.error===void 0&&(a.error=$g),a.complete===void 0&&(a.complete=$g);const l=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?a.error(this.finalError):a.complete()}catch{}}),this.observers.push(a),l}unsubscribeOne(e){this.observers===void 0||this.observers[e]===void 0||(delete this.observers[e],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let n=0;n<this.observers.length;n++)this.sendOne(n,e)}sendOne(e,n){this.task.then(()=>{if(this.observers!==void 0&&this.observers[e]!==void 0)try{n(this.observers[e])}catch(s){typeof console<"u"&&console.error&&console.error(s)}})}close(e){this.finalized||(this.finalized=!0,e!==void 0&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function a3(t,e){if(typeof t!="object"||t===null)return!1;for(const n of e)if(n in t&&typeof t[n]=="function")return!0;return!1}function $g(){}/** 454 * @license 455 * Copyright 2021 Google LLC 456 * 457 * Licensed under the Apache License, Version 2.0 (the "License"); 458 * you may not use this file except in compliance with the License. 459 * You may obtain a copy of the License at 460 * 461 * http://www.apache.org/licenses/LICENSE-2.0 462 * 463 * Unless required by applicable law or agreed to in writing, software 464 * distributed under the License is distributed on an "AS IS" BASIS, 465 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 466 * See the License for the specific language governing permissions and 467 * limitations under the License. 468 */function Ht(t){return t&&t._delegate?t._delegate:t}class Ya{constructor(e,n,s){this.name=e,this.instanceFactory=n,this.type=s,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}}/** 469 * @license 470 * Copyright 2019 Google LLC 471 * 472 * Licensed under the Apache License, Version 2.0 (the "License"); 473 * you may not use this file except in compliance with the License. 474 * You may obtain a copy of the License at 475 * 476 * http://www.apache.org/licenses/LICENSE-2.0 477 * 478 * Unless required by applicable law or agreed to in writing, software 479 * distributed under the License is distributed on an "AS IS" BASIS, 480 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 481 * See the License for the specific language governing permissions and 482 * limitations under the License. 483 */const Ua="[DEFAULT]";/** 484 * @license 485 * Copyright 2019 Google LLC 486 * 487 * Licensed under the Apache License, Version 2.0 (the "License"); 488 * you may not use this file except in compliance with the License. 489 * You may obtain a copy of the License at 490 * 491 * http://www.apache.org/licenses/LICENSE-2.0 492 * 493 * Unless required by applicable law or agreed to in writing, softw
493are 494 * distributed under the License is distributed on an "AS IS" BASIS, 495 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 496 * See the License for the specific language governing permissions and 497 * limitations under the License. 498 */class o3{constructor(e,n){this.name=e,this.container=n,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){const n=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(n)){const s=new GV;if(this.instancesDeferred.set(n,s),this.isInitialized(n)||this.shouldAutoInitialize())try{const a=this.getOrInitializeService({instanceIdentifier:n});a&&s.resolve(a)}catch{}}return this.instancesDeferred.get(n).promise}getImmediate(e){var n;const s=this.normalizeInstanceIdentifier(e==null?void 0:e.identifier),a=(n=e==null?void 0:e.optional)!==null&&n!==void 0?n:!1;if(this.isInitialized(s)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:s})}catch(l){if(a)return null;throw l}else{if(a)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,!!this.shouldAutoInitialize()){if(c3(e))try{this.getOrInitializeService({instanceIdentifier:Ua})}catch{}for(const[n,s]of this.instancesDeferred.entries()){const a=this.normalizeInstanceIdentifier(n);try{const l=this.getOrInitializeService({instanceIdentifier:a});s.resolve(l)}catch{}}}}clearInstance(e=Ua){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){const e=Array.from(this.instances.values());await Promise.all([...e.filter(n=>"INTERNAL"in n).map(n=>n.INTERNAL.delete()),...e.filter(n=>"_delete"in n).map(n=>n._delete())])}isComponentSet(){return this.component!=null}isInitialized(e=Ua){return this.instances.has(e)}getOptions(e=Ua){return this.instancesOptions.get(e)||{}}initialize(e={}){const{options:n={}}=e,s=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(s))throw Error(`${this.name}(${s}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const a=this.getOrInitializeService({instanceIdentifier:s,options:n});for(const[l,u]of this.instancesDeferred.entries()){const d=this.normalizeInstanceIdentifier(l);s===d&&u.resolve(a)}return a}onInit(e,n){var s;const a=this.normalizeInstanceIdentifier(n),l=(s=this.onInitCallbacks.get(a))!==null&&s!==void 0?s:new Set;l.add(e),this.onInitCallbacks.set(a,l);const u=this.instances.get(a);return u&&e(u,a),()=>{l.delete(e)}}invokeOnInitCallbacks(e,n){const s=this.onInitCallbacks.get(n);if(s)for(const a of s)try{a(e,n)}catch{}}getOrInitializeService({instanceIdentifier:e,options:n={}}){let s=this.instances.get(e);if(!s&&this.component&&(s=this.component.instanceFactory(this.container,{instanceIdentifier:l3(e),options:n}),this.instances.set(e,s),this.instancesOptions.set(e,n),this.invokeOnInitCallbacks(s,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,s)}catch{}return s||null}normalizeInstanceIdentifier(e=Ua){return this.component?this.component.multipleInstances?e:Ua:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function l3(t){return t===Ua?void 0:t}function c3(t){return t.instantiationMode==="EAGER"}/** 499 * @license 500 * Copyright 2019 Google LLC 501 * 502 * Licensed under the Apache License, Version 2.0 (the "License"); 503 * you may not use this file except in compliance with the License. 504 * You may obtain a copy of the License at 505 * 506 * http://www.apache.org/licenses/LICENSE-2.0 507 * 508 * Unless required by applicable law or agreed to in writing, software 509 * distributed under the License is distributed on an "AS IS" BASIS, 510 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 511 * See the License for the specific language governing permissions and 512 * limitations under the License. 513 */class u3{constructor(e){this.name=e,this.providers=new Map}addComponent(e){const n=this.getProvider(e.name);if(n.isComponentSet())throw new Error(`Component ${e.name} has already been registered with ${this.name}`);n.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);const n=new o3(e,this);return this.providers.set(e,n),n}getProviders(){return Array.from(this.providers.values())}}/** 514 * @license 515 * Copyright 2017 Google LLC 516 * 517 * Licensed under the Apache License, Version 2.0 (the "License");
518 * you may not use this file except in compliance with the License. 519 * You may obtain a copy of the License at 520 * 521 * http://www.apache.org/licenses/LICENSE-2.0 522 * 523 * Unless required by applicable law or agreed to in writing, software 524 * distributed under the License is distributed on an "AS IS" BASIS, 525 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 526 * See the License for the specific language governing permissions and 527 * limitations under the License. 528 */var Ve;(function(t){t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT"})(Ve||(Ve={}));const h3={debug:Ve.DEBUG,verbose:Ve.VERBOSE,info:Ve.INFO,warn:Ve.WARN,error:Ve.ERROR,silent:Ve.SILENT},d3=Ve.INFO,f3={[Ve.DEBUG]:"log",[Ve.VERBOSE]:"log",[Ve.INFO]:"info",[Ve.WARN]:"warn",[Ve.ERROR]:"error"},m3=(t,e,...n)=>{if(e<t.logLevel)return;const s=new Date().toISOString(),a=f3[e];if(a)console[a](`[${s}] ${t.name}:`,...n);else throw new Error(`Attempted to log a message with an invalid logType (value: ${e})`)};class Jx{constructor(e){this.name=e,this._logLevel=d3,this._logHandler=m3,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in Ve))throw new TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel=typeof e=="string"?h3[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if(typeof e!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,Ve.DEBUG,...e),this._logHandler(this,Ve.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,Ve.VERBOSE,...e),this._logHandler(this,Ve.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,Ve.INFO,...e),this._logHandler(this,Ve.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,Ve.WARN,...e),this._logHandler(this,Ve.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,Ve.ERROR,...e),this._logHandler(this,Ve.ERROR,...e)}}const p3=(t,e)=>e.some(n=>t instanceof n);let cT,uT;function g3(){return cT||(cT=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function y3(){return uT||(uT=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const xN=new WeakMap,Oy=new WeakMap,vN=new WeakMap,Kg=new WeakMap,Zx=new WeakMap;function x3(t){const e=new Promise((n,s)=>{const a=()=>{t.removeEventListener("success",l),t.removeEventListener("error",u)},l=()=>{n(qr(t.result)),a()},u=()=>{s(t.error),a()};t.addEventListener("success",l),t.addEventListener("error",u)});return e.then(n=>{n instanceof IDBCursor&&xN.set(n,t)}).catch(()=>{}),Zx.set(e,t),e}function v3(t){if(Oy.has(t))return;const e=new Promise((n,s)=>{const a=()=>{t.removeEventListener("complete",l),t.removeEventListener("error",u),t.removeEventListener("abort",u)},l=()=>{n(),a()},u=()=>{s(t.error||new DOMException("AbortError","AbortError")),a()};t.addEventListener("complete",l),t.addEventListener("error",u),t.addEventListener("abort",u)});Oy.set(t,e)}let Py={get(t,e,n){if(t instanceof IDBTransaction){if(e==="done")return Oy.get(t);if(e==="objectStoreNames")return t.objectStoreNames||vN.get(t);if(e==="store")return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return qr(t[e])},set(t,e,n){return t[e]=n,!0},has(t,e){return t instanceof IDBTransaction&&(e==="done"||e==="store")?!0:e in t}};function b3(t){Py=t(Py)}function w3(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(e,...n){const s=t.call(Yg(this),e,...n);return vN.set(s,e.sort?e.sort():[e]),qr(s)}:y3().includes(t)?function(...e){return t.apply(Yg(this),e),qr(xN.get(this))}:function(...e){return qr(t.apply(Yg(this),e))}}function _3(t){return typeof t=="function"?w3(t):(t instanceof IDBTransaction&&v3(t),p3(t,g3())?new Proxy(t,Py):t)}function qr(t){if(t instanceof IDBRequest)return x3(t);if(Kg.has(t))return Kg.get(t);const e=_3(t);return e!==t&&(Kg.set(t,e),Zx.set(e,t)),e}const Yg=t=>Zx.get(t);function T3(t,e,{blocked:n,upgrade:s,blocking:a,terminated:l}={}){const u=indexedDB.open(t,e),d=qr(u);return s&&u.addEventListener("upgradeneeded",m=>{s(qr(u.result),m.oldVersion,m.newVersion,qr(u.transaction),m)}),n&&u.addEventListener("blocked",m=>n(m.oldVersion,m.newVersion,m)),d.then(m=>{l&&m.addEventListener("close",()=>l()),a&&m.addEventListener("versionchange",g=>a(g.oldVersion,g.newVersion,g))}).catch(()=>{}),d}const E3=["get","getKey","getAll","getAllKeys","count"],S3=["put","add","delete","clear"],Wg=new Map;function hT(t,e){if(!(t instanceof IDBDatabase&&!(e in t)&&typeof e=="string"))return;if(Wg.get(e))return Wg.get(e);const n=e.replace(/FromIndex$/,""),s=e!==n,a=S3.includes(n);if(!(n in(s?IDBIndex:IDBObjectStore).prototype)||!(a||E3.includes(n)))return;const l=async function(u,...d){const m=this.transaction(u,a?"readwrite":"readonly");let g=m.store;
528return s&&(g=g.index(d.shift())),(await Promise.all([g[n](...d),a&&m.done]))[0]};return Wg.set(e,l),l}b3(t=>({...t,get:(e,n,s)=>hT(e,n)||t.get(e,n,s),has:(e,n)=>!!hT(e,n)||t.has(e,n)}));/** 529 * @license 530 * Copyright 2019 Google LLC 531 * 532 * Licensed under the Apache License, Version 2.0 (the "License"); 533 * you may not use this file except in compliance with the License. 534 * You may obtain a copy of the License at 535 * 536 * http://www.apache.org/licenses/LICENSE-2.0 537 * 538 * Unless required by applicable law or agreed to in writing, software 539 * distributed under the License is distributed on an "AS IS" BASIS, 540 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 541 * See the License for the specific language governing permissions and 542 * limitations under the License. 543 */class A3{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(n=>{if(N3(n)){const s=n.getImmediate();return`${s.library}/${s.version}`}else return null}).filter(n=>n).join(" ")}}function N3(t){const e=t.getComponent();return(e==null?void 0:e.type)==="VERSION"}const Vy="@firebase/app",dT="0.10.16";/** 544 * @license 545 * Copyright 2019 Google LLC 546 * 547 * Licensed under the Apache License, Version 2.0 (the "License"); 548 * you may not use this file except in compliance with the License. 549 * You may obtain a copy of the License at 550 * 551 * http://www.apache.org/licenses/LICENSE-2.0 552 * 553 * Unless required by applicable law or agreed to in writing, software 554 * distributed under the License is distributed on an "AS IS" BASIS, 555 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 556 * See the License for the specific language governing permissions and 557 * limitations under the License. 558 */const Us=new Jx("@firebase/app"),j3="@firebase/app-compat",R3="@firebase/analytics-compat",C3="@firebase/analytics",I3="@firebase/app-check-compat",D3="@firebase/app-check",k3="@firebase/auth",M3="@firebase/auth-compat",L3="@firebase/database",O3="@firebase/data-connect",P3="@firebase/database-compat",V3="@firebase/functions",U3="@firebase/functions-compat",B3="@firebase/installations",z3="@firebase/installations-compat",F3="@firebase/messaging",G3="@firebase/messaging-compat",q3="@firebase/performance",H3="@firebase/performance-compat",$3="@firebase/remote-config",K3="@firebase/remote-config-compat",Y3="@firebase/storage",W3="@firebase/storage-compat",Q3="@firebase/firestore",X3="@firebase/vertexai",J3="@firebase/firestore-compat",Z3="firebase",e5="11.0.2";/** 559 * @license 560 * Copyright 2019 Google LLC 561 * 562 * Licensed under the Apache License, Version 2.0 (the "License"); 563 * you may not use this file except in compliance with the License. 564 * You may obtain a copy of the License at 565 * 566 * http://www.apache.org/licenses/LICENSE-2.0 567 * 568 * Unless required by applicable law or agreed to in writing, software 569 * distributed under the License is distributed on an "AS IS" BASIS, 570 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 571 * See the License for the specific language governing permissions and 572 * limitations under the License. 573 */const Uy="[DEFAULT]",t5={[Vy]:"fire-core",[j3]:"fire-core-compat",[C3]:"fire-analytics",[R3]:"fire-analytics-compat",[D3]:"fire-app-check",[I3]:"fire-app-check-compat",[k3]:"fire-auth",[M3]:"fire-auth-compat",[L3]:"fire-rtdb",[O3]:"fire-data-connect",[P3]:"fire-rtdb-compat",[V3]:"fire-fn",[U3]:"fire-fn-compat",[B3]:"fire-iid",[z3]:"fire-iid-compat",[F3]:"fire-fcm",[G3]:"fire-fcm-compat",[q3]:"fire-perf",[H3]:"fire-perf-compat",[$3]:"fire-rc",[K3]:"fire-rc-compat",[Y3]:"fire-gcs",[W3]:"fire-gcs-compat",[Q3]:"fire-fst",[J3]:"fire-fst-compat",[X3]:"fire-vertex","fire-js":"fire-js",[Z3]:"fire-js-all"};/** 574 * @license 575 * Copyright 2019 Google LLC 576 * 577 * Licensed under the Apache License, Version 2.0 (the "License"); 578 * you may not use this file except in compliance with the License. 579 * You may obtain a copy of the License at 580 * 581 * http://www.apache.org/licenses/LICENSE-2.0 582 * 583 * Unless required by applicable law or agreed to in writing, software 584 * distributed under the License is distributed on an "AS IS" BASIS, 585 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 586 * See the License for the specific language governing permissions and 587 * limitations under the License. 588 */const vu=new Map,n5=new Map,By=new Map;function fT(t,e){try{t.container.addComponent(e)}catch(n){Us.debug(`Component ${e.name} failed to register with FirebaseApp ${t.name}`,n)}}function ml(t){const e=t.name;if(By.has(e))return Us.debug(`There were multiple attempts to register component ${e}.`),!1;By.set(e,t);for(const n of vu.values())fT(n,t);for(const n of n5.values())fT(n,t);return!0}function ev(t,e){const n=t.container.getProvider("heartbeat").getImmediate({optional:!0});return n&&n.triggerHeartbeat(),t.container.getProvider(e)}function Cs(t){return t.settings!==void 0}/** 589 * @license 590 * Copyright 2019 Google LLC 591 * 592 * Licensed under the Apache License, Version 2.0 (the "License");
593 * you may not use this file except in compliance with the License. 594 * You may obtain a copy of the License at 595 * 596 * http://www.apache.org/licenses/LICENSE-2.0 597 * 598 * Unless required by applicable law or agreed to in writing, software 599 * distributed under the License is distributed on an "AS IS" BASIS, 600 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 601 * See the License for the specific language governing permissions and 602 * limitations under the License. 603 */const i5={"no-app":"No Firebase App '{$appName}' has been created - call initializeApp() first","bad-app-name":"Illegal App name: '{$appName}'","duplicate-app":"Firebase App named '{$appName}' already exists with different options or config","app-deleted":"Firebase App named '{$appName}' already deleted","server-app-deleted":"Firebase Server App has been deleted","no-options":"Need to provide options, when not being deployed to hosting via source.","invalid-app-argument":"firebase.{$appName}() takes either no argument or a Firebase App instance.","invali
603d-log-argument":"First argument to `onLog` must be null or a function.","idb-open":"Error thrown when opening IndexedDB. Original error: {$originalErrorMessage}.","idb-get":"Error thrown when reading from IndexedDB. Original error: {$originalErrorMessage}.","idb-set":"Error thrown when writing to IndexedDB. Original error: {$originalErrorMessage}.","idb-delete":"Error thrown when deleting from IndexedDB. Original error: {$originalErrorMessage}.","finalization-registry-not-supported":"FirebaseServerApp deleteOnDeref field defined but the JS runtime does not support FinalizationRegistry.","invalid-server-app-environment":"FirebaseServerApp is not for use in browser environments."},Hr=new Bu("app","Firebase",i5);/** 604 * @license 605 * Copyright 2019 Google LLC 606 * 607 * Licensed under the Apache License, Version 2.0 (the "License"); 608 * you may not use this file except in compliance with the License. 609 * You may obtain a copy of the License at 610 * 611 * http://www.apache.org/licenses/LICENSE-2.0 612 * 613 * Unless required by applicable law or agreed to in writing, software 614 * distributed under the License is distributed on an "AS IS" BASIS, 615 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 616 * See the License for the specific language governing permissions and 617 * limitations under the License. 618 */class s5{constructor(e,n,s){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},n),this._name=n.name,this._automaticDataCollectionEnabled=n.automaticDataCollectionEnabled,this._container=s,this.container.addComponent(new Ya("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw Hr.create("app-deleted",{appName:this._name})}}/** 619 * @license 620 * Copyright 2019 Google LLC 621 * 622 * Licensed under the Apache License, Version 2.0 (the "License"); 623 * you may not use this file except in compliance with the License. 624 * You may obtain a copy of the License at 625 * 626 * http://www.apache.org/licenses/LICENSE-2.0 627 * 628 * Unless required by applicable law or agreed to in writing, software 629 * distributed under the License is distributed on an "AS IS" BASIS, 630 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 631 * See the License for the specific language governing permissions and 632 * limitations under the License. 633 */const Dl=e5;function bN(t,e={}){let n=t;typeof e!="object"&&(e={name:e});const s=Object.assign({name:Uy,automaticDataCollectionEnabled:!1},e),a=s.name;if(typeof a!="string"||!a)throw Hr.create("bad-app-name",{appName:String(a)});if(n||(n=gN()),!n)throw Hr.create("no-options");const l=vu.get(a);if(l){if(mf(n,l.options)&&mf(s,l.config))return l;throw Hr.create("duplicate-app",{appName:a})}const u=new u3(a);for(const m of By.values())u.addComponent(m);const d=new s5(n,s,u);return vu.set(a,d),d}function wN(t=Uy){const e=vu.get(t);if(!e&&t===Uy&&gN())return bN();if(!e)throw Hr.create("no-app",{appName:t});return e}function mT(){return Array.from(vu.values())}function $r(t,e,n){var s;let a=(s=t5[t])!==null&&s!==void 0?s:t;n&&(a+=`-${n}`);const l=a.match(/\s|\//),u=e.match(/\s|\//);if(l||u){const d=[`Unable to register library "${a}" with version "${e}":`];l&&d.push(`library name "${a}" contains illegal characters (whitespace or "/")`),l&&u&&d.push("and"),u&&d.push(`version name "${e}" contains illegal characters (whitespace or "/")`),Us.warn(d.join(" "));return}ml(new Ya(`${a}-version`,()=>({library:a,version:e}),"VERSION"))}/** 634 * @license 635 * Copyright 2021 Google LLC 636 * 637 * Licensed under the Apache License, Version 2.0 (the "License"); 638 * you may not use this file except in compliance with the License. 639 * You may obtain a copy of the License at 640 * 641 * http://www.apache.org/licenses/LICENSE-2.0 642 * 643 * Unless required by applicable law or agreed to in writing, softw
643are 644 * distributed under the License is distributed on an "AS IS" BASIS, 645 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 646 * See the License for the specific language governing permissions and 647 * limitations under the License. 648 */const r5="firebase-heartbeat-database",a5=1,bu="firebase-heartbeat-store";let Qg=null;function _N(){return Qg||(Qg=T3(r5,a5,{upgrade:(t,e)=>{switch(e){case 0:try{t.createObjectStore(bu)}catch(n){console.warn(n)}}}}).catch(t=>{throw Hr.create("idb-open",{originalErrorMessage:t.message})})),Qg}async function o5(t){try{const n=(await _N()).transaction(bu),s=await n.objectStore(bu).get(TN(t));return await n.done,s}catch(e){if(e instanceof Hs)Us.warn(e.message);else{const n=Hr.create("idb-get",{originalErrorMessage:e==null?void 0:e.message});Us.warn(n.message)}}}async function pT(t,e){try{const s=(await _N()).transaction(bu,"readwrite");await s.objectStore(bu).put(e,TN(t)),await s.done}catch(n){if(n instanceof Hs)Us.warn(n.message);else{const s=Hr.create("idb-set",{originalErrorMessage:n==null?void 0:n.message});Us.warn(s.message)}}}function TN(t){return`${t.name}!${t.options.appId}`}/** 649 * @license 650 * Copyright 2021 Google LLC 651 * 652 * Licensed under the Apache License, Version 2.0 (the "License"); 653 * you may not use this file except in compliance with the License. 654 * You may obtain a copy of the License at 655 * 656 * http://www.apache.org/licenses/LICENSE-2.0 657 * 658 * Unless required by applicable law or agreed to in writing, software 659 * distributed under the License is distributed on an "AS IS" BASIS, 660 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 661 * See the License for the specific language governing permissions and 662 * limitations under the License. 663 */const l5=1024,c5=720*60*60*1e3;class u5{constructor(e){this.container=e,this._heartbeatsCache=null;const n=this.container.getProvider("app").getImmediate();this._storage=new d5(n),this._heartbeatsCachePromise=this._storage.read().then(s=>(this._heartbeatsCache=s,s))}async triggerHeartbeat(){var e,n;try{const a=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),l=gT();return((e=this._heartbeatsCache)===null||e===void 0?void 0:e.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((n=this._heartbeatsCache)===null||n===void 0?void 0:n.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===l||this._heartbeatsCache.heartbeats.some(u=>u.date===l)?void 0:(this._heartbeatsCache.heartbeats.push({date:l,agent:a}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(u=>{const d=new Date(u.date).valueOf();return Date.now()-d<=c5}),this._storage.overwrite(this._heartbeatsCache))}catch(s){Us.warn(s)}}async getHeartbeatsHeader(){var e;try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((e=this._heartbeatsCache)===null||e===void 0?void 0:e.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const n=gT(),{heartbeatsToSend:s,unsentEntries:a}=h5(this._heartbeatsCache.heartbeats),l=ff(JSON.stringify({version:2,heartbeats:s}));return this._heartbeatsCache.lastSentHeartbeatDate=n,a.length>0?(this._heartbeatsCache.heartbeats=a,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),l}catch(n){return Us.warn(n),""}}}function gT(){return new Date().toISOString().substring(0,10)}function h5(t,e=l5){const n=[];let s=t.slice();for(const a of t){const l=n.find(u=>u.agent===a.agent);if(l){if(l.dates.push(a.date),yT(n)>e){l.dates.pop();break}}else if(n.push({agent:a.agent,dates:[a.date]}),yT(n)>e){n.pop();break}s=s.slice(1)}return{heartbeatsToSend:n,unsentEntries:s}}class d5{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return JV()?ZV().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const n=await o5(this.app);return n!=null&&n.heartbeats?n:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(e){var n;if(await this._canUseIndexedDBPromise){const a=await this.read();return pT(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:a.lastSentHeartbeatDate,heartbeats:e.heartbeats})}else return}async add(e){var n;if(await this._canUseIndexedDBPromise){const a=await this.read();return pT(this.app,{lastSentHeartbeatDate:(n=e.lastSentHeartbeatDate)!==null&&n!==void 0?n:a.lastSentHeartbeatDate,heartbeats:[...a.heartbeats,...e.heartbeats]})}else return}}function yT(t){return ff(JSON.stringify({version:2,heartbeats:t})).length}/** 664 * @license 665 * Copyright 2019 Google LLC 666 * 667 * Licensed under the Apache License, Version 2.0 (the "License");
vendor: 53,334 bytes, lines 668-704
668 * you may not use this file except in compliance with the License. 669 * You may obtain a copy of the License at 670 * 671 * http://www.apache.org/licenses/LICENSE-2.0 672 * 673 * Unless required by applicable law or agreed to in writing, software 674 * distributed under the License is distributed on an "AS IS" BASIS, 675 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 676 * See the License for the specific language governing permissions and 677 * limitations under the License. 678 */function f5(t){ml(new Ya("platform-logger",e=>new A3(e),"PRIVATE")),ml(new Ya("heartbeat",e=>new u5(e),"PRIVATE")),$r(Vy,dT,t),$r(Vy,dT,"esm2017"),$r("fire-js","")}f5("");var xT=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};/** @license 679Copyright The Closure Library Authors. 680SPDX-License-Identifier: Apache-2.0 681*/var Ha,EN;(function(){var t;/** @license 682 683 Copyright The Closure Library Authors. 684 SPDX-License-Identifier: Apache-2.0 685*/function e(D,A){function I(){}I.prototype=A.prototype,D.D=A.prototype,D.prototype=new I,D.prototype.constructor=D,D.C=function(P,F,U){for(var M=Array(arguments.length-2),nt=2;nt<arguments.length;nt++)M[nt-2]=arguments[nt];return A.prototype[F].apply(P,M)}}function n(){this.blockSize=-1}function s(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.B=Array(this.blockSize),this.o=this.h=0,this.s()}e(s,n),s.prototype.s=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.o=this.h=0};function a(D,A,I){I||(I=0);var P=Array(16);if(typeof A=="string")for(var F=0;16>F;++F)P[F]=A.charCodeAt(I++)|A.charCodeAt(I++)<<8|A.charCodeAt(I++)<<16|A.charCodeAt(I++)<<24;else for(F=0;16>F;++F)P[F]=A[I++]|A[I++]<<8|A[I++]<<16|A[I++]<<24;A=D.g[0],I=D.g[1],F=D.g[2];var U=D.g[3],M=A+(U^I&(F^U))+P[0]+3614090360&4294967295;A=I+(M<<7&4294967295|M>>>25),M=U+(F^A&(I^F))+P[1]+3905402710&4294967295,U=A+(M<<12&4294967295|M>>>20),M=F+(I^U&(A^I))+P[2]+606105819&4294967295,F=U+(M<<17&4294967295|M>>>15),M=I+(A^F&(U^A))+P[3]+3250441966&4294967295,I=F+(M<<22&4294967295|M>>>10),M=A+(U^I&(F^U))+P[4]+4118548399&4294967295,A=I+(M<<7&4294967295|M>>>25),M=U+(F^A&(I^F))+P[5]+1200080426&4294967295,U=A+(M<<12&4294967295|M>>>20),M=F+(I^U&(A^I))+P[6]+2821735955&4294967295,F=U+(M<<17&4294967295|M>>>15),M=I+(A^F&(U^A))+P[7]+4249261313&4294967295,I=F+(M<<22&4294967295|M>>>10),M=A+(U^I&(F^U))+P[8]+1770035416&4294967295,A=I+(M<<7&4294967295|M>>>25),M=U+(F^A&(I^F))+P[9]+2336552879&4294967295,U=A+(M<<12&4294967295|M>>>20),M=F+(I^U&(A^I))+P[10]+4294925233&4294967295,F=U+(M<<17&4294967295|M>>>15),M=I+(A^F&(U^A))+P[11]+2304563134&4294967295,I=F+(M<<22&4294967295|M>>>10),M=A+(U^I&(F^U))+P[12]+1804603682&4294967295,A=I+(M<<7&4294967295|M>>>25),M=U+(F^A&(I^F))+P[13]+4254626195&4294967295,U=A+(M<<12&4294967295|M>>>20),M=F+(I^U&(A^I))+P[14]+2792965006&4294967295,F=U+(M<<17&4294967295|M>>>15),M=I+(A^F&(U^A))+P[15]+1236535329&4294967295,I=F+(M<<22&4294967295|M>>>10),M=A+(F^U&(I^F))+P[1]+4129170786&4294967295,A=I+(M<<5&4294967295|M>>>27),M=U+(I^F&(A^I))+P[6]+3225465664&4294967295,U=A+(M<<9&4294967295|M>>>23),M=F+(A^I&(U^A))+P[11]+643717713&4294967295,F=U+(M<<14&4294967295|M>>>18),M=I+(U^A&(F^U))+P[0]+3921069994&4294967295,I=F+(M<<20&4294967295|M>>>12),M=A+(F^U&(I^F))+P[5]+3593408605&4294967295,A=I+(M<<5&4294967295|M>>>27),M=U+(I^F&(A^I))+P[10]+38016083&4294967295,U=A+(M<<9&4294967295|M>>>23),M=F+(A^I&(U^A))+P[15]+3634488961&4294967295,F=U+(M<<14&4294967295|M>>>18),M=I+(U^A&(F^U))+P[4]+3889429448&4294967295,I=F+(M<<20&4294967295|M>>>12),M=A+(F^U&(I^F))+P[9]+568446438&4294967295,A=I+(M<<5&4294967295|M>>>27),M=U+(I^F&(A^I))+P[14]+3275163606&4294967295,U=A+(M<<9&4294967295|M>>>23),M=F+(A^I&(U^A))+P[3]+4107603335&4294967295,F=U+(M<<14&4294967295|M>>>18),M=I+(U^A&(F^U))+P[8]+1163531501&4294967295,I=F+(M<<20&4294967295|M>>>12),M=A+(F^U&(I^F))+P[13]+2850285829&4294967295,A=I+(M<<5&4294967295|M>>>27),M=U+(I^F&(A^I))+P[2]+4243563512&4294967295,U=A+(M<<9&4294967295|M>>>23),M=F+(A^I&(U^A))+P[7]+1735328473&4294967295,F=U+(M<<14&4294967295|M>>>18),M=I+(U^A&(F^U))+P[12]+2368359562&4294967295,I=F+(M<<20&4294967295|M>>>12),M=A+(I^F^U)+P[5]+4294588738&4294967295,A=I+(M<<4&4294967295|M>>>28),M=U+(A^I^F)+P[8]+2272392833&4294967295,U=A+(M<<11&4294967295|M>>>21),M=F+(U^A^I)+P[11]+1839030562&4294967295,F=U+(M<<16&4294967295|M>>>16),M=I+(F^U^A)+P[14]+4259657740&4294967295,I=F+(M<<23&4294967295|M>>>9),M=A+(I^F^U)+P[1]+2763975236&4294967295,A=I+(M<<4&4294967295|M>>>28),M=U+(A^I^F)+P[4]+1272893353&4294967295,U=A+(M<<11&4294967295|M>>>21),M=F+(U^A^I)+P[7]+4139469664&4294967295,F=U+(M<<16&4294967295|M>>>16),M=I+(F^U^A)+P[10]+3200236656&4294967295,I=F+(M<<23&4294967295|M>>>9),M=A+(I^F^U)+P[13]+681279174&4294967295,A=I+(M<<4&4294967295|M>>>28),M=U+(A^I^F)+P[0]+3936430074&4294967295,U=A+(M<<11&4294967295|M>>>21),M=F+(U^A^I)+P[3]+3572445317&4294967295,F=U+(M<<16&4294967295|M>>>16),M=I+(F^U^A)+P[6]+76029189&4294967295,I=F+(M<<23&4294967295|M>>>9),M=A+(I^F^U)+P[9]+3654602809&4294967295,A=I+(M<<4&4294967295|M>>>28),M=U+(A^I^F)+P[12]+3873151461&4294967295,U=A+(M<<11&4294967295|M>>>21),M=F+(U^A^I)+P[15]+530742520&4294967295,F=U+(M<<16&4294967295|M>>>16),M=I+(F^U^A)+P[2]+3299628645&4294967295,I=F+(M<<23&4294967295|M>>>9),M=A+(F^(I|~U))+P[0]+4096336452&4294967295,A=I+(M<<6&4294967295|M>>>26),M=U+(I^(A|~F))+P[7]+1126891415&4294967295,U=A+(M<<10&4294967295|M>>>22),M=F+(A^(U|~I))+P[14]+2878612391&4294967295,F=U+(M<<15&4294967295|M>>>17),M=I+(U^(F|~A))+P[5]+4237533241&4294967295,I=F+(M<<21&4294967295|M>>>11),M=A+(F^(I|~U))+P[12]+1700485571&4294967295,A=I+(M<<6&4294967295|M>>>26),M=U+(I^(A|~F))+P[3]+2399980690&4294967295,U=A+(M<<10&4294967295|M>>>22),M=F+(A^(U|~I))+P[10]+4293915773&4294967295,F=U+(M<<15&4294967295|M>>>17),M=I+(U^(F|~A))+P[1]+2240044497&4294967295,I=F+(M<<21&4294967295|M>>>11),M=A+(F^(I|~U))+P[8]+1873313359&4294967295,A=I+(M<<6&4294967295|M>>>26),M=U+(I^(A|~F))+P[15]+4264355552&4294967295,U=A+(M<<10&4294967295|M>>>22),M=F+(A^(U|~I))+P[6]+2734768916&4294967295,F=U+(M<<15&4294967295|M>>>17),M=I+(U^(F|~A))+P[13]+1309151649&4294967295,I=F+(M<<21&4294967295|M>>>11),M=A+(F^(I|~U))+P[4]+4149444226&4294967295,A=I+(M<<6&4294967295|M>>>26),M=U+(I^(A|~F))+P[11]+3174756917&4294967295,U=A+(M<<10&4294967295|M>>>22),M=F+(A^(U|~I))+P[2]+718787259&4294967295,F=U+(M<<15&4294967295|M>>>17),M=I+(U^(F|~A))+P[9]+3951481745&4294967295,D.g[0]=D.g[0]+A&4294967295,D.g[1]=D.g[1]+(F+(M<<21&4294967295|M>>>11))&4294967295,D.g[2]=D.g[2]+F&4294967295,D.g[3]=D.g[3]+U&4294967295}s.prototype.u=function(D,A){A===void 0&&(A=D.length);for(var I=A-this.blockSize,P=this.B,F=this.h,U=0;U<A;){if(F==0)for(;U<=I;)a(this,D,U),U+=this.blockSize;if(typeof D=="string"){for(;U<A;)if(P[F++]=D.charCodeAt(U++),F==this.blockSize){a(this,P),F=0;break}}else for(;U<A;)if(P[F++]=D[U++],F==this.blockSize){a(this,P),F=0;break}}this.h=F,this.o+=A},s.prototype.v=function(){var D=Array((56>this.h?this.blockSize:2*this.blockSize)-this.h);D[0]=128;for(var A=1;A<D.length-8;++A)D[A]=0;var I=8*this.o;for(A=D.length-8;A<D.length;++A)D[A]=I&255,I/=256;for(this.u(D),D=Array(16),A=I=0;4>A;++A)for(var P=0;32>P;P+=8)D[I++]=this.g[A]>>>P&255;return D};function l(D,A){var I=d;return Object.prototype.hasOwnProperty.call(I,D)?I[D]:I[D]=A(D)}function u(D,A){this.h=A;for(var I=[],P=!0,F=D.length-1;0<=F;F--){var U=D[F]|0;P&&U==A||(I[F]=U,P=!1)}this.g=I}var d={};function m(D){return-128<=D&&128>D?l(D,function(A){return new u([A|0],0>A?-1:0)}):new u([D|0],0>D?-1:0)}function g(D){if(isNaN(D)||!isFinite(D))return v;if(0>D)return R(g(-D));for(var A=[],I=1,P=0;D>=I;P++)A[P]=D/I|0,I*=4294967296;return new u(A,0)}function x(D,A){if(D.length==0)throw Error("number format error: empty string");if(A=A||10,2>A||36<A)throw Error("radix out of range: "+A);if(D.charAt(0)=="-")return R(x(D.substring(1),A));if(0<=D.indexOf("-"))throw Error('number format error: interior "-" character');for(var I=g(Math.pow(A,8)),P=v,F=0;F<D.length;F+=8){var U=Math.min(8,D.length-F),M=parseInt(D.substring(F,F+U),A);8>U?(U=g(Math.pow(A,U)),P=P.j(U).add(g(M))):(P=P.j(I),P=P.add(g(M)))}return P}var v=m(0),T=m(1),E=m(16777216);t=u.prototype,t.m=function(){if(L(this))return-R(this).m();for(var D=0,A=1,I=0;I<this.g.length;I++){var P=this.i(I);D+=(0<=P?P:4294967296+P)*A,A*=4294967296}return D},t.toString=function(D){if(D=D||10,2>D||36<D)throw Error("radix out of range: "+D);if(C(this))return"0";if(L(this))return"-"+R(this).toString(D);for(var A=g(Math.pow(D,6)),I=this,P="";;){var F=ne(I,A).g;I=V(I,F.j(A));var U=((0<I.g.length?I.g[0]:I.h)>>>0).toString(D);if(I=F,C(I))return U+P;for(;6>U.length;)U="0"+U;P=U+P}},t.i=function(D){return 0>D?0:D<this.g.length?this.g[D]:this.h};function C(D){if(D.h!=0)return!1;for(var A=0;A<D.g.length;A++)if(D.g[A]!=0)return!1;return!0}function L(D){return D.h==-1}t.l=function(D){return D=V(this,D),L(D)?-1:C(D)?0:1};function R(D){for(var A=D.g.length,I=[],P=0;P<A;P++)I[P]=~D.g[P];return new u(I,~D.h).add(T)}t.abs=function(){return L(this)?R(this):this},t.add=function(D){for(var A=Math.max(this.g.length,D.g.length),I=[],P=0,F=0;F<=A;F++){var U=P+(this.i(F)&65535)+(D.i(F)&65535),M=(U>>>16)+(this.i(F)>>>16)+(D.i(F)>>>16);P=M>>>16,U&=65535,M&=65535,I[F]=M<<16|U}return new u(I,I[I.length-1]&-2147483648?-1:0)};function V(D,A){return D.add(R(A))}t.j=function(D){if(C(this)||C(D))return v;if(L(this))return L(D)?R(this).j(R(D)):R(R(this).j(D));if(L(D))return R(this.j(R(D)));if(0>this.l(E)&&0>D.l(E))return g(this.m()*D.m());for(var A=this.g.length+D.g.length,I=[],P=0;P<2*A;P++)I[P]=0;for(P=0;P<this.g.length;P++)for(var F=0;F<D.g.length;F++){var U=this.i(P)>>>16,M=this.i(P)&65535,nt=D.i(F)>>>16,dt=D.i(F)&65535;I[2*P+2*F]+=M*dt,G(I,2*P+2*F),I[2*P+2*F+1]+=U*dt,G(I,2*P+2*F+1),I[2*P+2*F+1]+=M*nt,G(I,2*P+2*F+1),I[2*P+2*F+2]+=U*nt,G(I,2*P+2*F+2)}for(P=0;P<A;P++)I[P]=I[2*P+1]<<16|I[2*P];for(P=A;P<2*A;P++)I[P]=0;return new u(I,0)};function G(D,A){for(;(D[A]&65535)!=D[A];)D[A+1]+=D[A]>>>16,D[A]&=65535,A++}function z(D,A){this.g=D,this.h=A}function ne(D,A){if(C(A))throw Error("division by zero");if(C(D))return new z(v,v);if(L(D))return A=ne(R(D),A),new z(R(A.g),R(A.h));if(L(A))return A=ne(D,R(A)),new z(R(A.g),A.h);if(30<D.g.length){if(L(D)||L(A))throw Error("slowDivide_ only works with positive integers.");for(var I=T,P=A;0>=P.l(D);)I=re(I),P=re(P);var F=le(I,1),U=le(P,1);for(P=le(P,2),I=le(I,2);!C(P);){var M=U.add(P);0>=M.l(D)&&(F=F.add(I),U=M),P=le(P,1),I=le(I,1)}return A=V(D,F.j(A)),new z(F,A)}for(F=v;0<=D.l(A);){for(I=Math.max(1,Math.floor(D.m()/A.m())),P=Math.ceil(Math.log(I)/Math.LN2),P=48>=P?1:Math.pow(2,P-48),U=g(I),M=U.j(A);L(M)||0<M.l(D);)I-=P,U=g(I),M=U.j(A);C(U)&&(U=T),F=F.add(U),D=V(D,M)}return new z(F,D)}t.A=function(D){return ne(this,D).h},t.and=function(D){for(var A=Math.max(this.g.length,D.g.length),I=[],P=0;P<A;P++)I[P]=this.i(P)&D.i(P);return new u(I,this.h&D.h)},t.or=function(D){for(var A=Math.max(this.g.length,D.g.length),I=[],P=0;P<A;P++)I[P]=this.i(P)|D.i(P);return new u(I,this.h|D.h)},t.xor=function(D){for(var A=Math.max(this.g.length,D.g.length),I=[],P=0;P<A;P++)I[P]=this.i(P)^D.i(P);return new u(I,this.h^D.h)};function re(D){for(var A=D.g.length+1,I=[],P=0;P<A;P++)I[P]=D.i(P)<<1|D.i(P-1)>>>31;return new u(I,D.h)}function le(D,A){var I=A>>5;A%=32;for(var P=D.g.length-I,F=[],U=0;U<P;U++)F[U]=0<A?D.i(U+I)>>>A|D.i(U+I+1)<<32-A:D.i(U+I);return new u(F,D.h)}s.prototype.digest=s.prototype.v,s.prototype.reset=s.prototype.s,s.prototype.update=s.prototype.u,EN=s,u.prototype.add=u.prototype.add,u.prototype.multiply=u.prototype.j,u.prototype.modulo=u.prototype.A,u.prototype.compare=u.prototype.l,u.prototype.toNumber=u.prototype.m,u.prototype.toString=u.prototype.toString,u.prototype.getBits=u.prototype.i,u.fromNumber=g,u.fromString=x,Ha=u}).apply(typeof xT<"u"?xT:typeof self<"u"?self:typeof window<"u"?window:{});var Id=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};/** @license 686Copyright The Closure Library Authors. 687SPDX-License-Identifier: Apache-2.0 688*/var SN,eu,AN,Hd,zy,NN,jN,RN;(function(){var t,e=typeof Object.defineProperties=="function"?Object.defineProperty:function(f,b,_){return f==Array.prototype||f==Object.prototype||(f[b]=_.value),f};function n(f){f=[typeof globalThis=="object"&&globalThis,f,typeof window=="object"&&window,typeof self=="object"&&self,typeof Id=="object"&&Id];for(var b=0;b<f.length;++b){var _=f[b];if(_&&_.Math==Math)return _}throw Error("Cannot find global object")}var s=n(this);function a(f,b){if(b)e:{var _=s;f=f.split(".");for(var N=0;N<f.length-1;N++){var H=f[N];if(!(H in _))break e;_=_[H]}f=f[f.length-1],N=_[f],b=b(N),b!=N&&b!=null&&e(_,f,{configurable:!0,writable:!0,value:b})}}function l(f,b){f instanceof String&&(f+="");var _=0,N=!1,H={next:function(){if(!N&&_<f.length){var Q=_++;return{value:b(Q,f[Q]),done:!1}}return N=!0,{done:!0,value:void 0}}};return H[Symbol.iterator]=function(){return H},H}a("Array.prototype.values",function(f){return f||function(){return l(this,function(b,_){return _})}});/** @license 689 690 Copyright The Closure Library Authors. 691 SPDX-License-Identifier: Apache-2.0 692*/var u=u||{},d=this||self;function m(f){var b=typeof f;return b=b!="object"?b:f?Array.isArray(f)?"array":b:"null",b=="array"||b=="object"&&typeof f.length=="number"}function g(f){var b=typeof f;return b=="object"&&f!=null||b=="function"}function x(f,b,_){return f.call.apply(f.bind,arguments)}function v(f,b,_){if(!f)throw Error();if(2<arguments.length){var N=Array.prototype.slice.call(arguments,2);return function(){var H=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(H,N),f.apply(b,H)}}return function(){return f.apply(b,arguments)}}function T(f,b,_){return T=Function.prototype.bind&&Function.prototype.bind.toString().indexOf("native code")!=-1?x:v,T.apply(null,arguments)}function E(f,b){var _=Array.prototype.slice.call(arguments,1);return function(){var N=_.slice();return N.push.apply(N,arguments),f.apply(this,N)}}function C(f,b){function _(){}_.prototype=b.prototype,f.aa=b.prototype,f.prototype=new _,f.prototype.constructor=f,f.Qb=function(N,H,Q){for(var ce=Array(arguments.length-2),We=2;We<arguments.length;We++)ce[We-2]=arguments[We];return b.prototype[H].apply(N,ce)}}function L(f){const b=f.length;if(0<b){const _=Array(b);for(let N=0;N<b;N++)_[N]=f[N];return _}return[]}function R(f,b){for(let _=1;_<arguments.length;_++){const N=arguments[_];if(m(N)){const H=f.length||0,Q=N.length||0;f.length=H+Q;for(let ce=0;ce<Q;ce++)f[H+ce]=N[ce]}else f.push(N)}}class V{constructor(b,_){this.i=b,this.j=_,this.h=0,this.g=null}get(){let b;return 0<this.h?(this.h--,b=this.g,this.g=b.next,b.next=null):b=this.i(),b}}function G(f){return/^[\s\xa0]*$/.test(f)}function z(){var f=d.navigator;return f&&(f=f.userAgent)?f:""}function ne(f){return ne[" "](f),f}ne[" "]=function(){};var re=z().indexOf("Gecko")!=-1&&!(z().toLowerCase().indexOf("webkit")!=-1&&z().indexOf("Edge")==-1)&&!(z().indexOf("Trident")!=-1||z().indexOf("MSIE")!=-1)&&z().indexOf("Edge")==-1;function le(f,b,_){for(const N in f)b.call(_,f[N],N,f)}function D(f,b){for(const _ in f)b.call(void 0,f[_],_,f)}function A(f){const b={};for(const _ in f)b[_]=f[_];return b}const I="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function P(f,b){let _,N;for(let H=1;H<arguments.length;H++){N=arguments[H];for(_ in N)f[_]=N[_];for(let Q=0;Q<I.length;Q++)_=I[Q],Object.prototype.hasOwnProperty.call(N,_)&&(f[_]=N[_])}}function F(f){var b=1;f=f.split(":");const _=[];for(;0<b&&f.length;)_.push(f.shift()),b--;return f.length&&_.push(f.join(":")),_}function U(f){d.setTimeout(()=>{throw f},0)}function M(){var f=je;let b=null;return f.g&&(b=f.g,f.g=f.g.next,f.g||(f.h=null),b.next=null),b}class nt{constructor(){this.h=this.g=null}add(b,_){const N=dt.get();N.set(b,_),this.h?this.h.next=N:this.g=N,this.h=N}}var dt=new V(()=>new X,f=>f.reset());class X{constructor(){this.next=this.g=this.h=null}set(b,_){this.h=b,this.g=_,this.next=null}reset(){this.next=this.g=this.h=null}}let ae,ue=!1,je=new nt,Ie=()=>{const f=d.Promise.resolve(void 0);ae=()=>{f.then(k)}};var k=()=>{for(var f;f=M();){try{f.h.call(f.g)}catch(_){U(_)}var b=dt;b.j(f),100>b.h&&(b.h++,f.next=b.g,b.g=f)}ue=!1};function J(){this.s=this.s,this.C=this.C}J.prototype.s=!1,J.prototype.ma=function(){this.s||(this.s=!0,this.N())},J.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()};function oe(f,b){this.type=f,this.g=this.target=b,this.defaultPrevented=!1}oe.prototype.h=function(){this.defaultPrevented=!0};var fe=(function(){if(!d.addEventListener||!Object.defineProperty)return!1;var f=!1,b=Object.defineProperty({},"passive",{get:function(){f=!0}});try{const _=()=>{};d.addEventListener("test",_,b),d.removeEventListener("test",_,b)}catch{}return f})();function we(f,b){if(oe.call(this,f?f.type:""),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key="",this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType="",this.i=null,f){var _=this.type=f.type,N=f.changedTouches&&f.changedTouches.length?f.changedTouches[0]:null;if(this.target=f.target||f.srcElement,this.g=b,b=f.relatedTarget){if(re){e:{try{ne(b.nodeName);var H=!0;break e}catch{}H=!1}H||(b=null)}}else _=="mouseover"?b=f.fromElement:_=="mouseout"&&(b=f.toElement);this.relatedTarget=b,N?(this.clientX=N.clientX!==void 0?N.clientX:N.pageX,this.clientY=N.clientY!==void 0?N.clientY:N.pageY,this.screenX=N.screenX||0,this.screenY=N.screenY||0):(this.clientX=f.clientX!==void 0?f.clientX:f.pageX,this.clientY=f.clientY!==void 0?f.clientY:f.pageY,this.screenX=f.screenX||0,this.screenY=f.screenY||0),this.button=f.button,this.key=f.key||"",this.ctrlKey=f.ctrlKey,this.altKey=f.altKey,this.shiftKey=f.shiftKey,this.metaKey=f.metaKey,this.pointerId=f.pointerId||0,this.pointerType=typeof f.pointerType=="string"?f.pointerType:De[f.pointerType]||"",this.state=f.state,this.i=f,f.defaultPrevented&&we.aa.h.call(this)}}C(we,oe);var De={2:"touch",3:"pen",4:"mouse"};we.prototype.h=function(){we.aa.h.call(this);var f=this.i;f.preventDefault?f.preventDefault():f.returnValue=!1};var Be="closure_listenable_"+(1e6*Math.random()|0),$t=0;function ft(f,b,_,N,H){this.listener=f,this.proxy=null,this.src=b,this.type=_,this.capture=!!N,this.ha=H,this.key=++$t,this.da=this.fa=!1}function Ci(f){f.da=!0,f.listener=null,f.proxy=null,f.src=null,f.ha=null}function ns(f){this.src=f,this.g={},this.h=0}ns.prototype.add=function(f,b,_,N,H){var Q=f.toString();f=this.g[Q],f||(f=this.g[Q]=[],this.h++);var ce=ro(f,b,N,H);return-1<ce?(b=f[ce],_||(b.fa=!1)):(b=new ft(b,this.src,Q,!!N,H),b.fa=_,f.push(b)),b};function oa(f,b){var _=b.type;if(_ in f.g){var N=f.g[_],H=Array.prototype.indexOf.call(N,b,void 0),Q;(Q=0<=H)&&Array.prototype.splice.call(N,H,1),Q&&(Ci(b),f.g[_].length==0&&(delete f.g[_],f.h--))}}function ro(f,b,_,N){for(var H=0;H<f.length;++H){var Q=f[H];if(!Q.da&&Q.listener==b&&Q.capture==!!_&&Q.ha==N)return H}return-1}var ui="closure_lm_"+(1e6*Math.random()|0),la={};function ao(f,b,_,N,H){if(Array.isArray(b)){for(var Q=0;Q<b.length;Q++)ao(f,b[Q],_,N,H);return null}return _=Ju(_),f&&f[Be]?f.K(b,_,g(N)?!!N.capture:!1,H):um(f,b,_,!1,N,H)}function um(f,b,_,N,H,Q){if(!b)throw Error("Invalid event type");var ce=g(H)?!!H.capture:!!H,We=zl(f);if(We||(f[ui]=We=new ns(f)),_=We.add(b,_,N,ce,Q),_.proxy)return _;if(N=Xu(),_.proxy=N,N.src=f,N.listener=_,f.addEventListener)fe||(H=ce),H===void 0&&(H=!1),f.addEventListener(b.toString(),N,H);else if(f.attachEvent)f.attachEvent(lo(b.toString()),N);else if(f.addListener&&f.removeListener)f.addListener(N);else throw Error("addEventListener and attachEvent are unavailable.");return _}function Xu(){function f(_){return b.call(f.src,f.listener,_)}const b=hm;return f}function oo(f,b,_,N,H){if(Array.isArray(b))for(var Q=0;Q<b.length;Q++)oo(f,b[Q],_,N,H);else N=g(N)?!!N.capture:!!N,_=Ju(_),f&&f[Be]?(f=f.i,b=String(b).toString(),b in f.g&&(Q=f.g[b],_=ro(Q,_,N,H),-1<_&&(Ci(Q[_]),Array.prototype.splice.call(Q,_,1),Q.length==0&&(delete f.g[b],f.h--)))):f&&(f=zl(f))&&(b=f.g[b.toString()],f=-1,b&&(f=ro(b,_,N,H)),(_=-1<f?b[f]:null)&&ca(_))}function ca(f){if(typeof f!="number"&&f&&!f.da){var b=f.src;if(b&&b[Be])oa(b.i,f);else{var _=f.type,N=f.proxy;b.removeEventListener?b.removeEventListener(_,N,f.capture):b.detachEvent?b.detachEvent(lo(_),N):b.addListener&&b.removeListener&&b.removeListener(N),(_=zl(b))?(oa(_,f),_.h==0&&(_.src=null,b[ui]=null)):Ci(f)}}}function lo(f){return f in la?la[f]:la[f]="on"+f}function hm(f,b){if(f.da)f=!0;else{b=new we(b,this);var _=f.listener,N=f.ha||f.src;f.fa&&ca(f),f=_.call(N,b)}return f}function zl(f){return f=f[ui],f instanceof ns?f:null}var Kt="__closure_events_fn_"+(1e9*Math.random()>>>0);function Ju(f){return typeof f=="function"?f:(f[Kt]||(f[Kt]=function(b){return f.handleEvent(b)}),f[Kt])}function kt(){J.call(this),this.i=new ns(this),this.M=this,this.F=null}C(kt,J),kt.prototype[Be]=!0,kt.prototype.removeEventListener=function(f,b,_,N){oo(this,f,b,_,N)};function Ut(f,b){var _,N=f.F;if(N)for(_=[];N;N=N.F)_.push(N);if(f=f.M,N=b.type||b,typeof b=="string")b=new oe(b,f);else if(b instanceof oe)b.target=b.target||f;else{var H=b;b=new oe(N,f),P(b,H)}if(H=!0,_)for(var Q=_.length-1;0<=Q;Q--){var ce=b.g=_[Q];H=is(ce,N,!0,b)&&H}if(ce=b.g=f,H=is(ce,N,!0,b)&&H,H=is(ce,N,!1,b)&&H,_)for(Q=0;Q<_.length;Q++)ce=b.g=_[Q],H=is(ce,N,!1,b)&&H}kt.prototype.N=function(){if(kt.aa.N.call(this),this.i){var f=this.i,b;for(b in f.g){for(var _=f.g[b],N=0;N<_.length;N++)Ci(_[N]);delete f.g[b],f.h--}}this.F=null},kt.prototype.K=function(f,b,_,N){return this.i.add(String(f),b,!1,_,N)},kt.prototype.L=function(f,b,_,N){return this.i.add(String(f),b,!0,_,N)};function is(f,b,_,N){if(b=f.i.g[String(b)],!b)return!0;b=b.concat();for(var H=!0,Q=0;Q<b.length;++Q){var ce=b[Q];if(ce&&!ce.da&&ce.capture==_){var We=ce.listener,St=ce.ha||ce.src;ce.fa&&oa(f.i,ce),H=We.call(St,N)!==!1&&H}}return H&&!N.defaultPrevented}function Zu(f,b,_){if(typeof f=="function")_&&(f=T(f,_));else if(f&&typeof f.handleEvent=="function")f=T(f.handleEvent,f);else throw Error("Invalid listener argument");return 2147483647<Number(b)?-1:d.setTimeout(f,b||0)}function Fl(f){f.g=Zu(()=>{f.g=null,f.i&&(f.i=!1,Fl(f))},f.l);const b=f.h;f.h=null,f.m.apply(null,b)}class dm extends J{constructor(b,_){super(),this.m=b,this.l=_,this.h=null,this.i=!1,this.g=null}j(b){this.h=arguments,this.g?this.i=!0:Fl(this)}N(){super.N(),this.g&&(d.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function ua(f){J.call(this),this.h=f,this.g={}}C(ua,J);var Ys=[];function an(f){le(f.g,function(b,_){this.g.hasOwnProperty(_)&&ca(b)},f),f.g={}}ua.prototype.N=function(){ua.aa.N.call(this),an(this)},ua.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var Yn=d.JSON.stringify,pn=d.JSON.parse,fm=class{stringify(f){return d.JSON.stringify(f,void 0)}parse(f){return d.JSON.parse(f,void 0)}};function Gl(){}Gl.prototype.h=null;function eh(f){return f.h||(f.h=f.i())}function ha(){}var Ii={OPEN:"a",kb:"b",Ja:"c",wb:"d"};function Ws(){oe.call(this,"d")}C(Ws,oe);function hi(){oe.call(this,"c")}C(hi,oe);var Wn={},Qs=null;function co(){return Qs=Qs||new kt}Wn.La="serverreachability";function ql(f){oe.call(this,Wn.La,f)}C(ql,oe);function ss(f){const b=co();Ut(b,new ql(b))}Wn.STAT_EVENT="statevent";function Xs(f,b){oe.call(this,Wn.STAT_EVENT,f),this.stat=b}C(Xs,oe);function Yt(f){const b=co();Ut(b,new Xs(b,f))}Wn.Ma="timingevent";function Hl(f,b){oe.call(this,Wn.Ma,f),this.size=b}C(Hl,oe);function Js(f,b){if(typeof f!="function")throw Error("Fn must not be null and must be a function");return d.setTimeout(function(){f()},b)}function Zs(){this.g=!0}Zs.prototype.xa=function(){this.g=!1};function $l(f,b,_,N,H,Q){f.info(function(){if(f.g)if(Q)for(var ce="",We=Q.split("&"),St=0;St<We.length;St++){var ke=We[St].split("=");if(1<ke.length){var zt=ke[0];ke=ke[1];var Ft=zt.split("_");ce=2<=Ft.length&&Ft[1]=="type"?ce+(zt+"="+ke+"&"):ce+(zt+"=redacted&")}}else ce=null;else ce=Q;return"XMLHTTP REQ ("+N+") [attempt "+H+"]: "+b+` 693`+_+` 694`+ce})}function Kl(f,b,_,N,H,Q,ce){f.info(function(){return"XMLHTTP RESP ("+N+") [ attempt "+H+"]: "+b+` 695`+_+` 696`+Q+" "+ce})}function rs(f,b,_,N){f.info(function(){return"XMLHTTP TEXT ("+b+"): "+Di(f,_)+(N?" "+N:"")})}function th(f,b){f.info(function(){return"TIMEOUT: "+b})}Zs.prototype.info=function(){};function Di(f,b){if(!f.g)return b;if(!b)return null;try{var _=JSON.parse(b);if(_){for(f=0;f<_.length;f++)if(Array.isArray(_[f])){var N=_[f];if(!(2>N.length)){var H=N[1];if(Array.isArray(H)&&!(1>H.length)){var Q=H[0];if(Q!="noop"&&Q!="stop"&&Q!="close")for(var ce=1;ce<H.length;ce++)H[ce]=""}}}}return Yn(_)}catch{return b}}var gt={NO_ERROR:0,gb:1,tb:2,sb:3,nb:4,rb:5,ub:6,Ia:7,TIMEOUT:8,xb:9},Wt={lb:"complete",Hb:"success",Ja:"error",Ia:"abort",zb:"ready",Ab:"readystatechange",TIMEOUT:"timeout",vb:"incrementaldata",yb:"progress",ob:"downloadprogress",Pb:"uploadprogress"},ki;function er(){}C(er,Gl),er.prototype.g=function(){return new XMLHttpRequest},er.prototype.i=function(){return{}},ki=new er;function Mi(f,b,_,N){this.j=f,this.i=b,this.l=_,this.R=N||1,this.U=new ua(this),this.I=45e3,this.H=null,this.o=!1,this.m=this.A=this.v=this.L=this.F=this.S=this.B=null,this.D=[],this.g=null,this.C=0,this.s=this.u=null,this.X=-1,this.J=!1,this.O=0,this.M=null,this.W=this.K=this.T=this.P=!1,this.h=new nh}function nh(){this.i=null,this.g="",this.h=!1}var Yl={},as={};function da(f,b,_){f.L=1,f.v=pa(yt(b)),f.m=_,f.P=!0,os(f,null)}function os(f,b){f.F=Date.now(),di(f),f.A=yt(f.v);var _=f.A,N=f.R;Array.isArray(N)||(N=[String(N)]),us(_.i,"t",N),f.C=0,_=f.j.J,f.h=new nh,f.g=xh(f.j,_?b:null,!f.m),0<f.O&&(f.M=new dm(T(f.Y,f,f.g),f.O)),b=f.U,_=f.g,N=f.ca;var H="readystatechange";Array.isArray(H)||(H&&(Ys[0]=H.toString()),H=Ys);for(var Q=0;Q<H.length;Q++){var ce=ao(_,H[Q],N||b.handleEvent,!1,b.h||b);if(!ce)break;b.g[ce.key]=ce}b=f.H?A(f.H):{},f.m?(f.u||(f.u="POST"),b["Content-Type"]="application/x-www-form-urlencoded",f.g.ea(f.A,f.u,f.m,b)):(f.u="GET",f.g.ea(f.A,f.u,null,b)),ss(),$l(f.i,f.u,f.A,f.l,f.R,f.m)}Mi.prototype.ca=function(f){f=f.target;const b=this.M;b&&xn(f)==3?b.j():this.Y(f)},Mi.prototype.Y=function(f){try{if(f==this.g)e:{const Ft=xn(this.g);var b=this.g.Ba();const fr=this.g.Z();if(!(3>Ft)&&(Ft!=3||this.g&&(this.h.h||this.g.oa()||xa(this.g)))){this.J||Ft!=4||b==7||(b==8||0>=fr?ss(3):ss(2)),uo(this);var _=this.g.Z();this.X=_;t:if(ls(this)){var N=xa(this.g);f="";var H=N.length,Q=xn(this.g)==4;if(!this.h.i){if(typeof TextDecoder>"u"){gn(this),tr(this);var ce="";break t}this.h.i=new d.TextDecoder}for(b=0;b<H;b++)this.h.h=!0,f+=this.h.i.decode(N[b],{stream:!(Q&&b==H-1)});N.length=0,this.h.g+=f,this.C=0,ce=this.h.g}else ce=this.g.oa();if(this.o=_==200,Kl(this.i,this.u,this.A,this.l,this.R,Ft,_),this.o){if(this.T&&!this.K){t:{if(this.g){var We,St=this.g;if((We=St.g?St.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!G(We)){var ke=We;break t}}ke=null}if(_=ke)rs(this.i,this.l,_,"Initial handshake response via X-HTTP-Initial-Response"),this.K=!0,Li(this,_);else{this.o=!1,this.s=3,Yt(12),gn(this),tr(this);break e}}if(this.P){_=!0;let En;for(;!this.J&&this.C<ce.length;)if(En=fa(this,ce),En==as){Ft==4&&(this.s=4,Yt(14),_=!1),rs(this.i,this.l,null,"[Incomplete Response]");break}else if(En==Yl){this.s=4,Yt(15),rs(this.i,this.l,ce,"[Invalid Chunk]"),_=!1;break}else rs(this.i,this.l,En,null),Li(this,En);if(ls(this)&&this.C!=0&&(this.h.g=this.h.g.slice(this.C),this.C=0),Ft!=4||ce.length!=0||this.h.h||(this.s=1,Yt(16),_=!1),this.o=this.o&&_,!_)rs(this.i,this.l,ce,"[Invalid Chunked Response]"),gn(this),tr(this);else if(0<ce.length&&!this.W){this.W=!0;var zt=this.j;zt.g==this&&zt.ba&&!zt.M&&(zt.j.info("Great, no buffering proxy detected. Bytes received: "+ce.length),rc(zt),zt.M=!0,Yt(11))}}else rs(this.i,this.l,ce,null),Li(this,ce);Ft==4&&gn(this),this.o&&!this.J&&(Ft==4?ph(this.j,this):(this.o=!1,di(this)))}else ch(this.g),_==400&&0<ce.indexOf("Unknown SID")?(this.s=3,Yt(12)):(this.s=0,Yt(13)),gn(this),tr(this)}}}catch{}finally{}};function ls(f){return f.g?f.u=="GET"&&f.L!=2&&f.j.Ca:!1}function fa(f,b){var _=f.C,N=b.indexOf(` 697`,_);return N==-1?as:(_=Number(b.substring(_,N)),isNaN(_)?Yl:(N+=1,N+_>b.length?as:(b=b.slice(N,N+_),f.C=N+_,b)))}Mi.prototype.cancel=function(){this.J=!0,gn(this)};function di(f){f.S=Date.now()+f.I,wt(f,f.I)}function wt(f,b){if(f.B!=null)throw Error("WatchDog timer not null");f.B=Js(T(f.ba,f),b)}function uo(f){f.B&&(d.clearTimeout(f.B),f.B=null)}Mi.prototype.ba=function(){this.B=null;const f=Date.now();0<=f-this.S?(th(this.i,this.A),this.L!=2&&(ss(),Yt(17)),gn(this),this.s=2,tr(this)):wt(this,this.S-f)};function tr(f){f.j.G==0||f.J||ph(f.j,f)}function gn(f){uo(f);var b=f.M;b&&typeof b.ma=="function"&&b.ma(),f.M=null,an(f.U),f.g&&(b=f.g,f.g=null,b.abort(),b.ma())}function Li(f,b){try{var _=f.j;if(_.G!=0&&(_.g==f||nr(_.h,f))){if(!f.K&&nr(_.h,f)&&_.G==3){try{var N=_.Da.g.parse(b)}catch{N=null}if(Array.isArray(N)&&N.length==3){var H=N;if(H[0]==0){e:if(!_.u){if(_.g)if(_.g.F+3e3<f.F)hr(_),ur(_);else break e;sc(_),Yt(18)}}else _.za=H[1],0<_.za-_.T&&37500>H[2]&&_.F&&_.v==0&&!_.C&&(_.C=Js(T(_.Za,_),6e3));if(1>=ih(_.h)&&_.ca){try{_.ca()}catch{}_.ca=void 0}}else ds(_,11)}else if((f.K||_.g==f)&&hr(_),!G(b))for(H=_.Da.g.parse(b),b=0;b<H.length;b++){let ke=H[b];if(_.T=ke[0],ke=ke[1],_.G==2)if(ke[0]=="c"){_.K=ke[1],_.ia=ke[2];const zt=ke[3];zt!=null&&(_.la=zt,_.j.info("VER="+_.la));const Ft=ke[4];Ft!=null&&(_.Aa=Ft,_.j.info("SVER="+_.Aa));const fr=ke[5];fr!=null&&typeof fr=="number"&&0<fr&&(N=1.5*fr,_.L=N,_.j.info("backChannelRequestTimeoutMs_="+N)),N=_;const En=f.g;if(En){const wa=En.g?En.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(wa){var Q=N.h;Q.g||wa.indexOf("spdy")==-1&&wa.indexOf("quic")==-1&&wa.indexOf("h2")==-1||(Q.j=Q.l,Q.g=new Set,Q.h&&(ir(Q,Q.h),Q.h=null))}if(N.D){const fs=En.g?En.g.getResponseHeader("X-HTTP-Session-Id"):null;fs&&(N.ya=fs,He(N.I,N.D,fs))}}_.G=3,_.l&&_.l.ua(),_.ba&&(_.R=Date.now()-f.F,_.j.info("Handshake RTT: "+_.R+"ms")),N=_;var ce=f;if(N.qa=yh(N,N.J?N.ia:null,N.W),ce.K){Qn(N.h,ce);var We=ce,St=N.L;St&&(We.I=St),We.B&&(uo(We),di(We)),N.g=ce}else fh(N);0<_.i.length&&vo(_)}else ke[0]!="stop"&&ke[0]!="close"||ds(_,7);else _.G==3&&(ke[0]=="stop"||ke[0]=="close"?ke[0]=="stop"?ds(_,7):nc(_):ke[0]!="noop"&&_.l&&_.l.ta(ke),_.v=0)}}ss(4)}catch{}}var mm=class{constructor(f,b){this.g=f,this.map=b}};function Wl(f){this.l=f||10,d.PerformanceNavigationTiming?(f=d.performance.getEntriesByType("navigation"),f=0<f.length&&(f[0].nextHopProtocol=="hq"||f[0].nextHopProtocol=="h2")):f=!!(d.chrome&&d.chrome.loadTimes&&d.chrome.loadTimes()&&d.chrome.loadTimes().wasFetchedViaSpdy),this.j=f?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}function Ql(f){return f.h?!0:f.g?f.g.size>=f.j:!1}function ih(f){return f.h?1:f.g?f.g.size:0}function nr(f,b){return f.h?f.h==b:f.g?f.g.has(b):!1}function ir(f,b){f.g?f.g.add(b):f.h=b}function Qn(f,b){f.h&&f.h==b?f.h=null:f.g&&f.g.has(b)&&f.g.delete(b)}Wl.prototype.cancel=function(){if(this.i=yn(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&this.g.size!==0){for(const f of this.g.values())f.cancel();this.g.clear()}};function yn(f){if(f.h!=null)return f.i.concat(f.h.D);if(f.g!=null&&f.g.size!==0){let b=f.i;for(const _ of f.g.values())b=b.concat(_.D);return b}return L(f.i)}function sh(f){if(f.V&&typeof f.V=="function")return f.V();if(typeof Map<"u"&&f instanceof Map||typeof Set<"u"&&f instanceof Set)return Array.from(f.values());if(typeof f=="string")return f.split("");if(m(f)){for(var b=[],_=f.length,N=0;N<_;N++)b.push(f[N]);return b}b=[],_=0;for(N in f)b[_++]=f[N];return b}function pm(f){if(f.na&&typeof f.na=="function")return f.na();if(!f.V||typeof f.V!="function"){if(typeof Map<"u"&&f instanceof Map)return Array.from(f.keys());if(!(typeof Set<"u"&&f instanceof Set)){if(m(f)||typeof f=="string"){var b=[];f=f.length;for(var _=0;_<f;_++)b.push(_);return b}b=[],_=0;for(const N in f)b[_++]=N;return b}}}function ho(f,b){if(f.forEach&&typeof f.forEach=="function")f.forEach(b,void 0);else if(m(f)||typeof f=="string")Array.prototype.forEach.call(f,b,void 0);else for(var _=pm(f),N=sh(f),H=N.length,Q=0;Q<H;Q++)b.call(void 0,N[Q],_&&_[Q],f)}var Xl=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function fo(f,b){if(f){f=f.split("&");for(var _=0;_<f.length;_++){var N=f[_].indexOf("="),H=null;if(0<=N){var Q=f[_].substring(0,N);H=f[_].substring(N+1)}else Q=f[_];b(Q,H?decodeURIComponent(H.replace(/\+/g," ")):"")}}}function cs(f){if(this.g=this.o=this.j="",this.s=null,this.m=this.l="",this.h=!1,f instanceof cs){this.h=f.h,sr(this,f.j),this.o=f.o,this.g=f.g,ma(this,f.s),this.l=f.l;var b=f.i,_=new Oi;_.i=b.i,b.g&&(_.g=new Map(b.g),_.h=b.h),mo(this,_),this.m=f.m}else f&&(b=String(f).match(Xl))?(this.h=!1,sr(this,b[1]||"",!0),this.o=rr(b[2]||""),this.g=rr(b[3]||"",!0),ma(this,b[4]),this.l=rr(b[5]||"",!0),mo(this,b[6]||"",!0),this.m=rr(b[7]||"")):(this.h=!1,this.i=new Oi(null,this.h))}cs.prototype.toString=function(){var f=[],b=this.j;b&&f.push(Xn(b,Jl,!0),":");var _=this.g;return(_||b=="file")&&(f.push("//"),(b=this.o)&&f.push(Xn(b,Jl,!0),"@"),f.push(encodeURIComponent(String(_)).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),_=this.s,_!=null&&f.push(":",String(_))),(_=this.l)&&(this.g&&_.charAt(0)!="/"&&f.push("/"),f.push(Xn(_,_.charAt(0)=="/"?Zl:rh,!0))),(_=this.i.toString())&&f.push("?",_),(_=this.m)&&f.push("#",Xn(_,xm)),f.join("")};function yt(f){return new cs(f)}function sr(f,b,_){f.j=_?rr(b,!0):b,f.j&&(f.j=f.j.replace(/:$/,""))}function ma(f,b){if(b){if(b=Number(b),isNaN(b)||0>b)throw Error("Bad port number "+b);f.s=b}else f.s=null}function mo(f,b,_){b instanceof Oi?(f.i=b,ah(f.i,f.h)):(_||(b=Xn(b,ym)),f.i=new Oi(b,f.h))}function He(f,b,_){f.i.set(b,_)}function pa(f){return He(f,"zx",Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),f}function rr(f,b){return f?b?decodeURI(f.replace(/%25/g,"%2525")):decodeURIComponent(f):""}function Xn(f,b,_){return typeof f=="string"?(f=encodeURI(f).replace(b,gm),_&&(f=f.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),f):null}function gm(f){return f=f.charCodeAt(0),"%"+(f>>4&15).toString(16)+(f&15).toString(16)}var Jl=/[#\/\?@]/g,rh=/[#\?:]/g,Zl=/[#\?]/g,ym=/[#\?@]/g,xm=/#/g;function Oi(f,b){this.h=this.g=null,this.i=f||null,this.j=!!b}function Bt(f){f.g||(f.g=new Map,f.h=0,f.i&&fo(f.i,function(b,_){f.add(decodeURIComponent(b.replace(/\+/g," ")),_)}))}t=Oi.prototype,t.add=function(f,b){Bt(this),this.i=null,f=On(this,f);var _=this.g.get(f);return _||this.g.set(f,_=[]),_.push(b),this.h+=1,this};function po(f,b){Bt(f),b=On(f,b),f.g.has(b)&&(f.i=null,f.h-=f.g.get(b).length,f.g.delete(b))}function go(f,b){return Bt(f),b=On(f,b),f.g.has(b)}t.forEach=function(f,b){Bt(this),this.g.forEach(function(_,N){_.forEach(function(H){f.call(b,H,N,this)},this)},this)},t.na=function(){Bt(this);const f=Array.from(this.g.values()),b=Array.from(this.g.keys()),_=[];for(let N=0;N<b.length;N++){const H=f[N];for(let Q=0;Q<H.length;Q++)_.push(b[N])}return _},t.V=function(f){Bt(this);let b=[];if(typeof f=="string")go(this,f)&&(b=b.concat(this.g.get(On(this,f))));else{f=Array.from(this.g.values());for(let _=0;_<f.length;_++)b=b.concat(f[_])}return b},t.set=function(f,b){return Bt(this),this.i=null,f=On(this,f),go(this,f)&&(this.h-=this.g.get(f).length),this.g.set(f,[b]),this.h+=1,this},t.get=function(f,b){return f?(f=this.V(f),0<f.length?String(f[0]):b):b};function us(f,b,_){po(f,b),0<_.length&&(f.i=null,f.g.set(On(f,b),L(_)),f.h+=_.length)}t.toString=function(){if(this.i)return this.i;if(!this.g)return"";const f=[],b=Array.from(this.g.keys());for(var _=0;_<b.length;_++){var N=b[_];const Q=encodeURIComponent(String(N)),ce=this.V(N);for(N=0;N<ce.length;N++){var H=Q;ce[N]!==""&&(H+="="+encodeURIComponent(String(ce[N]))),f.push(H)}}return this.i=f.join("&")};function On(f,b){return b=String(b),f.j&&(b=b.toLowerCase()),b}function ah(f,b){b&&!f.j&&(Bt(f),f.i=null,f.g.forEach(function(_,N){var H=N.toLowerCase();N!=H&&(po(this,N),us(this,H,_))},f)),f.j=b}function ec(f,b){const _=new Zs;if(d.Image){const N=new Image;N.onload=E(Tn,_,"TestLoadImage: loaded",!0,b,N),N.onerror=E(Tn,_,"TestLoadImage: error",!1,b,N),N.onabort=E(Tn,_,"TestLoadImage: abort",!1,b,N),N.ontimeout=E(Tn,_,"TestLoadImage: timeout",!1,b,N),d.setTimeout(function(){N.ontimeout&&N.ontimeout()},1e4),N.src=f}else b(!1)}function oh(f,b){const _=new Zs,N=new AbortController,H=setTimeout(()=>{N.abort(),Tn(_,"TestPingServer: timeout",!1,b)},1e4);fetch(f,{signal:N.signal}).then(Q=>{clearTimeout(H),Q.ok?Tn(_,"TestPingServer: ok",!0,b):Tn(_,"TestPingServer: server error",!1,b)}).catch(()=>{clearTimeout(H),Tn(_,"TestPingServer: error",!1,b)})}function Tn(f,b,_,N,H){try{H&&(H.onload=null,H.onerror=null,H.onabort=null,H.ontimeout=null),N(_)}catch{}}function fi(){this.g=new fm}function tc(f,b,_){const N=_||"";try{ho(f,function(H,Q){let ce=H;g(H)&&(ce=Yn(H)),b.push(N+Q+"="+encodeURIComponent(ce))})}catch(H){throw b.push(N+"type="+encodeURIComponent("_badmap")),H}}function Pi(f){this.l=f.Ub||null,this.j=f.eb||!1}C(Pi,Gl),Pi.prototype.g=function(){return new Pn(this.l,this.j)},Pi.prototype.i=(function(f){return function(){return f}})({});function Pn(f,b){kt.call(this),this.D=f,this.o=b,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.u=new Headers,this.h=null,this.B="GET",this.A="",this.g=!1,this.v=this.j=this.l=null}C(Pn,kt),t=Pn.prototype,t.open=function(f,b){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.B=f,this.A=b,this.readyState=1,ar(this)},t.send=function(f){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");this.g=!0;const b={headers:this.u,method:this.B,credentials:this.m,cache:void 0};f&&(b.body=f),(this.D||d).fetch(new Request(this.A,b)).then(this.Sa.bind(this),this.ga.bind(this))},t.abort=function(){this.response=this.responseText="",this.u=new Headers,this.status=0,this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),1<=this.readyState&&this.g&&this.readyState!=4&&(this.g=!1,Vi(this)),this.readyState=0},t.Sa=function(f){if(this.g&&(this.l=f,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=f.headers,this.readyState=2,ar(this)),this.g&&(this.readyState=3,ar(this),this.g)))if(this.responseType==="arraybuffer")f.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if(typeof d.ReadableStream<"u"&&"body"in f){if(this.j=f.body.getReader(),this.o){if(this.responseType)throw Error('responseType must be empty for "streamBinaryChunks" mode responses.');this.response=[]}else this.response=this.responseText="",this.v=new TextDecoder;yo(this)}else f.text().then(this.Ra.bind(this),this.ga.bind(this))};function yo(f){f.j.read().then(f.Pa.bind(f)).catch(f.ga.bind(f))}t.Pa=function(f){if(this.g){if(this.o&&f.value)this.response.push(f.value);else if(!this.o){var b=f.value?f.value:new Uint8Array(0);(b=this.v.decode(b,{stream:!f.done}))&&(this.response=this.responseText+=b)}f.done?Vi(this):ar(this),this.readyState==3&&yo(this)}},t.Ra=function(f){this.g&&(this.response=this.responseText=f,Vi(this))},t.Qa=function(f){this.g&&(this.response=f,Vi(this))},t.ga=function(){this.g&&Vi(this)};function Vi(f){f.readyState=4,f.l=null,f.j=null,f.v=null,ar(f)}t.setRequestHeader=function(f,b){this.u.append(f,b)},t.getResponseHeader=function(f){return this.h&&this.h.get(f.toLowerCase())||""},t.getAllResponseHeaders=function(){if(!this.h)return"";const f=[],b=this.h.entries();for(var _=b.next();!_.done;)_=_.value,f.push(_[0]+": "+_[1]),_=b.next();return f.join(`\r 698`)};function ar(f){f.onreadystatechange&&f.onreadystatechange.call(f)}Object.defineProperty(Pn.prototype,"withCredentials",{get:function(){return this.m==="include"},set:function(f){this.m=f?"include":"same-origin"}});function ga(f){let b="";return le(f,function(_,N){b+=N,b+=":",b+=_,b+=`\r 699`}),b}function or(f,b,_){e:{for(N in _){var N=!1;break e}N=!0}N||(_=ga(_),typeof f=="string"?_!=null&&encodeURIComponent(String(_)):He(f,b,_))}function rt(f){kt.call(this),this.headers=new Map,this.o=f||null,this.h=!1,this.v=this.g=null,this.D="",this.m=0,this.l="",this.j=this.B=this.u=this.A=!1,this.I=null,this.H="",this.J=!1}C(rt,kt);var on=/^https?$/i,hs=["POST","PUT"];t=rt.prototype,t.Ha=function(f){this.J=f},t.ea=function(f,b,_,N){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+f);b=b?b.toUpperCase():"GET",this.D=f,this.l="",this.m=0,this.A=!1,this.h=!0,this.g=this.o?this.o.g():ki.g(),this.v=this.o?eh(this.o):eh(ki),this.g.onreadystatechange=T(this.Ea,this);try{this.B=!0,this.g.open(b,String(f),!0),this.B=!1}catch(Q){ya(this,Q);return}if(f=_||"",_=new Map(this.headers),N)if(Object.getPrototypeOf(N)===Object.prototype)for(var H in N)_.set(H,N[H]);else if(typeof N.keys=="function"&&typeof N.get=="function")for(const Q of N.keys())_.set(Q,N.get(Q));else throw Error("Unknown input type for opt_headers: "+String(N));N=Array.from(_.keys()).find(Q=>Q.toLowerCase()=="content-type"),H=d.FormData&&f instanceof d.FormData,!(0<=Array.prototype.indexOf.call(hs,b,void 0))||N||H||_.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[Q,ce]of _)this.g.setRequestHeader(Q,ce);this.H&&(this.g.responseType=this.H),"withCredentials"in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{xo(this),this.u=!0,this.g.send(f),this.u=!1}catch(Q){ya(this,Q)}};function ya(f,b){f.h=!1,f.g&&(f.j=!0,f.g.abort(),f.j=!1),f.l=b,f.m=5,lr(f),cr(f)}function lr(f){f.A||(f.A=!0,Ut(f,"complete"),Ut(f,"error"))}t.abort=function(f){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=f||7,Ut(this,"complete"),Ut(this,"abort"),cr(this))},t.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),cr(this,!0)),rt.aa.N.call(this)},t.Ea=function(){this.s||(this.B||this.u||this.j?lh(this):this.bb())},t.bb=function(){lh(this)};function lh(f){if(f.h&&typeof u<"u"&&(!f.v[1]||xn(f)!=4||f.Z()!=2)){if(f.u&&xn(f)==4)Zu(f.Ea,0,f);else if(Ut(f,"readystatechange"),xn(f)==4){f.h=!1;try{const ce=f.Z();e:switch(ce){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var b=!0;break e;default:b=!1}var _;if(!(_=b)){var N;if(N=ce===0){var H=String(f.D).match(Xl)[1]||null;!H&&d.self&&d.self.location&&(H=d.self.location.protocol.slice(0,-1)),N=!on.test(H?H.toLowerCase():"")}_=N}if(_)Ut(f,"complete"),Ut(f,"success");else{f.m=6;try{var Q=2<xn(f)?f.g.statusText:""}catch{Q=""}f.l=Q+" ["+f.Z()+"]",lr(f)}}finally{cr(f)}}}}function cr(f,b){if(f.g){xo(f);const _=f.g,N=f.v[0]?()=>{}:null;f.g=null,f.v=null,b||Ut(f,"ready");try{_.onreadystatechange=N}catch{}}}function xo(f){f.I&&(d.clearTimeout(f.I),f.I=null)}t.isActive=function(){return!!this.g};function xn(f){return f.g?f.g.readyState:0}t.Z=function(){try{return 2<xn(this)?this.g.status:-1}catch{return-1}},t.oa=function(){try{return this.g?this.g.responseText:""}catch{return""}},t.Oa=function(f){if(this.g){var b=this.g.responseText;return f&&b.indexOf(f)==0&&(b=b.substring(f.length)),pn(b)}};function xa(f){try{if(!f.g)return null;if("response"in f.g)return f.g.response;switch(f.H){case"":case"text":return f.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in f.g)return f.g.mozResponseArrayBuffer}return null}catch{return null}}function ch(f){const b={};f=(f.g&&2<=xn(f)&&f.g.getAllResponseHeaders()||"").split(`\r 700`);for(let N=0;N<f.length;N++){if(G(f[N]))continue;var _=F(f[N]);const H=_[0];if(_=_[1],typeof _!="string")continue;_=_.trim();const Q=b[H]||[];b[H]=Q,Q.push(_)}D(b,function(N){return N.join(", ")})}t.Ba=function(){return this.m},t.Ka=function(){return typeof this.l=="string"?this.l:String(this.l)};function va(f,b,_){return _&&_.internalChannelParams&&_.internalChannelParams[f]||b}function uh(f){this.Aa=0,this.i=[],this.j=new Zs,this.ia=this.qa=this.I=this.W=this.g=this.ya=this.D=this.H=this.m=this.S=this.o=null,this.Ya=this.U=0,this.Va=va("failFast",!1,f),this.F=this.C=this.u=this.s=this.l=null,this.X=!0,this.za=this.T=-1,this.Y=this.v=this.B=0,this.Ta=va("baseRetryDelayMs",5e3,f),this.cb=va("retryDelaySeedMs",1e4,f),this.Wa=va("forwardChannelMaxRetries",2,f),this.wa=va("forwardChannelRequestTimeoutMs",2e4,f),this.pa=f&&f.xmlHttpFactory||void 0,this.Xa=f&&f.Tb||void 0,this.Ca=f&&f.useFetchStreams||!1,this.L=void 0,this.J=f&&f.supportsCrossDomainXhr||!1,this.K="",this.h=new Wl(f&&f.concurrentRequestLimit),this.Da=new fi,this.P=f&&f.fastHandshake||!1,this.O=f&&f.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.Ua=f&&f.Rb||!1,f&&f.xa&&this.j.xa(),f&&f.forceLongPolling&&(this.X=!1),this.ba=!this.P&&this.X&&f&&f.detectBufferingProxy||!1,this.ja=void 0,f&&f.longPollingTimeout&&0<f.longPollingTimeout&&(this.ja=f.longPollingTimeout),this.ca=void 0,this.R=0,this.M=!1,this.ka=this.A=null}t=uh.prototype,t.la=8,t.G=1,t.connect=function(f,b,_,N){Yt(0),this.W=f,this.H=b||{},_&&N!==void 0&&(this.H.OSID=_,this.H.OAID=N),this.F=this.X,this.I=yh(this,null,this.W),vo(this)};function nc(f){if(hh(f),f.G==3){var b=f.U++,_=yt(f.I);if(He(_,"SID",f.K),He(_,"RID",b),He(_,"TYPE","terminate"),ba(f,_),b=new Mi(f,f.j,b),b.L=2,b.v=pa(yt(_)),_=!1,d.navigator&&d.navigator.sendBeacon)try{_=d.navigator.sendBeacon(b.v.toString(),"")}catch{}!_&&d.Image&&(new Image().src=b.v,_=!0),_||(b.g=xh(b.j,null),b.g.ea(b.v)),b.F=Date.now(),di(b)}ac(f)}function ur(f){f.g&&(rc(f),f.g.cancel(),f.g=null)}function hh(f){ur(f),f.u&&(d.clearTimeout(f.u),f.u=null),hr(f),f.h.cancel(),f.s&&(typeof f.s=="number"&&d.clearTimeout(f.s),f.s=null)}function vo(f){if(!Ql(f.h)&&!f.s){f.s=!0;var b=f.Ga;ae||Ie(),ue||(ae(),ue=!0),je.add(b,f),f.B=0}}function vm(f,b){return ih(f.h)>=f.h.j-(f.s?1:0)?!1:f.s?(f.i=b.D.concat(f.i),!0):f.G==1||f.G==2||f.B>=(f.Va?0:f.Wa)?!1:(f.s=Js(T(f.Ga,f,b),gh(f,f.B)),f.B++,!0)}t.Ga=function(f){if(this.s)if(this.s=null,this.G==1){if(!f){this.U=Math.floor(1e5*Math.random()),f=this.U++;const H=new Mi(this,this.j,f);let Q=this.o;if(this.S&&(Q?(Q=A(Q),P(Q,this.S)):Q=this.S),this.m!==null||this.O||(H.H=Q,Q=null),this.P)e:{for(var b=0,_=0;_<this.i.length;_++){t:{var N=this.i[_];if("__data__"in N.map&&(N=N.map.__data__,typeof N=="string")){N=N.length;break t}N=void 0}if(N===void 0)break;if(b+=N,4096<b){b=_;break e}if(b===4096||_===this.i.length-1){b=_+1;break e}}b=1e3}else b=1e3;b=ic(this,H,b),_=yt(this.I),He(_,"RID",f),He(_,"CVER",22),this.D&&He(_,"X-HTTP-Session-Id",this.D),ba(this,_),Q&&(this.O?b="headers="+encodeURIComponent(String(ga(Q)))+"&"+b:this.m&&or(_,this.m,Q)),ir(this.h,H),this.Ua&&He(_,"TYPE","init"),this.P?(He(_,"$req",b),He(_,"SID","null"),H.T=!0,da(H,_,null)):da(H,_,b),this.G=2}}else this.G==3&&(f?dh(this,f):this.i.length==0||Ql(this.h)||dh(this))};function dh(f,b){var _;b?_=b.l:_=f.U++;const N=yt(f.I);He(N,"SID",f.K),He(N,"RID",_),He(N,"AID",f.T),ba(f,N),f.m&&f.o&&or(N,f.m,f.o),_=new Mi(f,f.j,_,f.B+1),f.m===null&&(_.H=f.o),b&&(f.i=b.D.concat(f.i)),b=ic(f,_,1e3),_.I=Math.round(.5*f.wa)+Math.round(.5*f.wa*Math.random()),ir(f.h,_),da(_,N,b)}function ba(f,b){f.H&&le(f.H,function(_,N){He(b,N,_)}),f.l&&ho({},function(_,N){He(b,N,_)})}function ic(f,b,_){_=Math.min(f.i.length,_);var N=f.l?T(f.l.Na,f.l,f):null;e:{var H=f.i;let Q=-1;for(;;){const ce=["count="+_];Q==-1?0<_?(Q=H[0].g,ce.push("ofs="+Q)):Q=0:ce.push("ofs="+Q);let We=!0;for(let St=0;St<_;St++){let ke=H[St].g;const zt=H[St].map;if(ke-=Q,0>ke)Q=Math.max(0,H[St].g-100),We=!1;else try{tc(zt,ce,"req"+ke+"_")}catch{N&&N(zt)}}if(We){N=ce.join("&");break e}}}return f=f.i.splice(0,_),b.D=f,N}function fh(f){if(!f.g&&!f.u){f.Y=1;var b=f.Fa;ae||Ie(),ue||(ae(),ue=!0),je.add(b,f),f.v=0}}function sc(f){return f.g||f.u||3<=f.v?!1:(f.Y++,f.u=Js(T(f.Fa,f),gh(f,f.v)),f.v++,!0)}t.Fa=function(){if(this.u=null,mh(this),this.ba&&!(this.M||this.g==null||0>=this.R)){var f=2*this.R;this.j.info("BP detection timer enabled: "+f),this.A=Js(T(this.ab,this),f)}},t.ab=function(){this.A&&(this.A=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.M=!0,Yt(10),ur(this),mh(this))};function rc(f){f.A!=null&&(d.clearTimeout(f.A),f.A=null)}function mh(f){f.g=new Mi(f,f.j,"rpc",f.Y),f.m===null&&(f.g.H=f.o),f.g.O=0;var b=yt(f.qa);He(b,"RID","rpc"),He(b,"SID",f.K),He(b,"AID",f.T),He(b,"CI",f.F?"0":"1"),!f.F&&f.ja&&He(b,"TO",f.ja),He(b,"TYPE","xmlhttp"),ba(f,b),f.m&&f.o&&or(b,f.m,f.o),f.L&&(f.g.I=f.L);var _=f.g;f=f.ia,_.L=1,_.v=pa(yt(b)),_.m=null,_.P=!0,os(_,f)}t.Za=function(){this.C!=null&&(this.C=null,ur(this),sc(this),Yt(19))};function hr(f){f.C!=null&&(d.clearTimeout(f.C),f.C=null)}function ph(f,b){var _=null;if(f.g==b){hr(f),rc(f),f.g=null;var N=2}else if(nr(f.h,b))_=b.D,Qn(f.h,b),N=1;else return;if(f.G!=0){if(b.o)if(N==1){_=b.m?b.m.length:0,b=Date.now()-b.F;var H=f.B;N=co(),Ut(N,new Hl(N,_)),vo(f)}else fh(f);else if(H=b.s,H==3||H==0&&0<b.X||!(N==1&&vm(f,b)||N==2&&sc(f)))switch(_&&0<_.length&&(b=f.h,b.i=b.i.concat(_)),H){case 1:ds(f,5);break;case 4:ds(f,10);break;case 3:ds(f,6);break;default:ds(f,2)}}}function gh(f,b){let _=f.Ta+Math.floor(Math.random()*f.cb);return f.isActive()||(_*=2),_*b}function ds(f,b){if(f.j.info("Error code "+b),b==2){var _=T(f.fb,f),N=f.Xa;const H=!N;N=new cs(N||"//www.google.com/images/cleardot.gif"),d.location&&d.location.protocol=="http"||sr(N,"https"),pa(N),H?ec(N.toString(),_):oh(N.toString(),_)}else Yt(2);f.G=0,f.l&&f.l.sa(b),ac(f),hh(f)}t.fb=function(f){f?(this.j.info("Successfully pinged google.com"),Yt(2)):(this.j.info("Failed to ping google.com"),Yt(1))};function ac(f){if(f.G=0,f.ka=[],f.l){const b=yn(f.h);(b.length!=0||f.i.length!=0)&&(R(f.ka,b),R(f.ka,f.i),f.h.i.length=0,L(f.i),f.i.length=0),f.l.ra()}}function yh(f,b,_){var N=_ instanceof cs?yt(_):new cs(_);if(N.g!="")b&&(N.g=b+"."+N.g),ma(N,N.s);else{var H=d.location;N=H.protocol,b=b?b+"."+H.hostname:H.hostname,H=+H.port;var Q=new cs(null);N&&sr(Q,N),b&&(Q.g=b),H&&ma(Q,H),_&&(Q.l=_),N=Q}return _=f.D,b=f.ya,_&&b&&He(N,_,b),He(N,"VER",f.la),ba(f,N),N}function xh(f,b,_){if(b&&!f.J)throw Error("Can't create secondary domain capable XhrIo object.");return b=f.Ca&&!f.pa?new rt(new Pi({eb:_})):new rt(f.pa),b.Ha(f.J),b}t.isActive=function(){return!!this.l&&this.l.isActive(this)};function vh(){}t=vh.prototype,t.ua=function(){},t.ta=function(){},t.sa=function(){},t.ra=function(){},t.isActive=function(){return!0},t.Na=function(){};function bo(){}bo.prototype.g=function(f,b){return new vn(f,b)};function vn(f,b){kt.call(this),this.g=new uh(b),this.l=f,this.h=b&&b.messageUrlParams||null,f=b&&b.messageHeaders||null,b&&b.clientProtocolHeaderRequired&&(f?f["X-Client-Protocol"]="webchannel":f={"X-Client-Protocol":"webchannel"}),this.g.o=f,f=b&&b.initMessageHeaders||null,b&&b.messageContentType&&(f?f["X-WebChannel-Content-Type"]=b.messageContentType:f={"X-WebChannel-Content-Type":b.messageContentType}),b&&b.va&&(f?f["X-WebChannel-Client-Profile"]=b.va:f={"X-WebChannel-Client-Profile":b.va}),this.g.S=f,(f=b&&b.Sb)&&!G(f)&&(this.g.m=f),this.v=b&&b.supportsCrossDomainXhr||!1,this.u=b&&b.sendRawJson||!1,(b=b&&b.httpSessionIdParam)&&!G(b)&&(this.g.D=b,f=this.h,f!==null&&b in f&&(f=this.h,b in f&&delete f[b])),this.j=new dr(this)}C(vn,kt),vn.prototype.m=function(){this.g.l=this.j,this.v&&(this.g.J=!0),this.g.connect(this.l,this.h||void 0)},vn.prototype.close=function(){nc(this.g)},vn.prototype.o=function(f){var b=this.g;if(typeof f=="string"){var _={};_.__data__=f,f=_}else this.u&&(_={},_.__data__=Yn(f),f=_);b.i.push(new mm(b.Ya++,f)),b.G==3&&vo(b)},vn.prototype.N=function(){this.g.l=null,delete this.j,nc(this.g),delete this.g,vn.aa.N.call(this)};function bh(f){Ws.call(this),f.__headers__&&(this.headers=f.__headers__,this.statusCode=f.__status__,delete f.__headers__,delete f.__status__);var b=f.__sm__;if(b){e:{for(const _ in b){f=_;break e}f=void 0}(this.i=f)&&(f=this.i,b=b!==null&&f in b?b[f]:void 0),this.data=b}else this.data=f}C(bh,Ws);function wh(){hi.call(this),this.status=1}C(wh,hi);function dr(f){this.g=f}C(dr,vh),dr.prototype.ua=function(){Ut(this.g,"a")},dr.prototype.ta=function(f){Ut(this.g,new bh(f))},dr.prototype.sa=function(f){Ut(this.g,new wh)},dr.prototype.ra=function(){Ut(this.g,"b")},bo.prototype.createWebChannel=bo.prototype.g,vn.prototype.send=vn.prototype.o,vn.prototype.open=vn.prototype.m,vn.prototype.close=vn.prototype.close,RN=function(){return new bo},jN=function(){return co()},NN=Wn,zy={mb:0,pb:1,qb:2,Jb:3,Ob:4,Lb:5,Mb:6,Kb:7,Ib:8,Nb:9,PROXY:10,NOPROXY:11,Gb:12,Cb:13,Db:14,Bb:15,Eb:16,Fb:17,ib:18,hb:19,jb:20},gt.NO_ERROR=0,gt.TIMEOUT=8,gt.HTTP_ERROR=6,Hd=gt,Wt.COMPLETE="complete",AN=Wt,ha.EventType=Ii,Ii.OPEN="a",Ii.CLOSE="b",Ii.ERROR="c",Ii.MESSAGE="d",kt.prototype.listen=kt.prototype.K,eu=ha,rt.prototype.listenOnce=rt.prototype.L,rt.prototype.getLastError=rt.prototype.Ka,rt.prototype.getLastErrorCode=rt.prototype.Ba,rt.prototype.getStatus=rt.prototype.Z,rt.prototype.getResponseJson=rt.prototype.Oa,rt.prototype.getResponseText=rt.prototype.oa,rt.prototype.send=rt.prototype.ea,rt.prototype.setWithCredentials=rt.prototype.Ha,SN=rt}).apply(typeof Id<"u"?Id:typeof self<"u"?self:typeof window<"u"?window:{});const vT="@firebase/firestore";/** 701 * @license 702 * Copyright 2017 Google LLC 703 * 704 * Licensed under the Apache License, Version 2.0 (the "License");
705 * you may not use this file except in compliance with the License. 706 * You may obtain a copy of the License at 707 * 708 * http://www.apache.org/licenses/LICENSE-2.0 709 * 710 * Unless required by applicable law or agreed to in writing, software 711 * distributed under the License is distributed on an "AS IS" BASIS, 712 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 713 * See the License for the specific language governing permissions and 714 * limitations under the License. 715 */class hn{constructor(e){this.uid=e}isAuthenticated(){return this.uid!=null}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(e){return e.uid===this.uid}}hn.UNAUTHENTICATED=new hn(null),hn.GOOGLE_CREDENTIALS=new hn("google-credentials-uid"),hn.FIRST_PARTY=new hn("first-party-uid"),hn.MOCK_USER=new hn("mock-user");/** 716 * @license 717 * Copyright 2017 Google LLC 718 * 719 * Licensed under the Apache License, Version 2.0 (the "License"); 720 * you may not use this file except in compliance with the License. 721 * You may obtain a copy of the License at 722 * 723 * http://www.apache.org/licenses/LICENSE-2.0 724 * 725 * Unless required by applicable law or agreed to in writing, software 726 * distributed under the License is distributed on an "AS IS" BASIS, 727 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 728 * See the License for the specific language governing permissions and 729 * limitations under the License. 730 */let kl="11.0.2";/** 731 * @license 732 * Copyright 2017 Google LLC 733 * 734 * Licensed under the Apache License, Version 2.0 (the "License"); 735 * you may not use this file except in compliance with the License. 736 * You may obtain a copy of the License at 737 * 738 * http://www.apache.org/licenses/LICENSE-2.0 739 * 740 * Unless required by applicable law or agreed to in writing, software 741 * distributed under the License is distributed on an "AS IS" BASIS, 742 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 743 * See the License for the specific language governing permissions and 744 * limitations under the License. 745 */const Wa=new Jx("@firebase/firestore");function Qo(){return Wa.logLevel}function he(t,...e){if(Wa.logLevel<=Ve.DEBUG){const n=e.map(tv);Wa.debug(`Firestore (${kl}): ${t}`,...n)}}function Bs(t,...e){if(Wa.logLevel<=Ve.ERROR){const n=e.map(tv);Wa.error(`Firestore (${kl}): ${t}`,...n)}}function pl(t,...e){if(Wa.logLevel<=Ve.WARN){const n=e.map(tv);Wa.warn(`Firestore (${kl}): ${t}`,...n)}}function tv(t){if(typeof t=="string")return t;try{/** 746* @license 747* Copyright 2020 Google LLC 748* 749* Licensed under the Apache License, Version 2.0 (the "License"); 750* you may not use this file except in compliance with the License. 751* You may obtain a copy of the License at 752* 753* http://www.apache.org/licenses/LICENSE-2.0 754* 755* Unless required by applicable law or agreed to in writing, software 756* distributed under the License is distributed on an "AS IS" BASIS, 757* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 758* See the License for the specific language governing permissions and 759* limitations under the License. 760*/return(function(n){return JSON.stringify(n)})(t)}catch{return t}}/** 761 * @license 762 * Copyright 2017 Google LLC 763 * 764 * Licensed under the Apache License, Version 2.0 (the "License"); 765 * you may not use this file except in compliance with the License. 766 * You may obtain a copy of the License at 767 * 768 * http://www.apache.org/licenses/LICENSE-2.0 769 * 770 * Unless required by applicable law or agreed to in writing, software 771 * distributed under the License is distributed on an "AS IS" BASIS, 772 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 773 * See the License for the specific language governing permissions and 774 * limitations under the License. 775 */function Te(t="Unexpected state"){const e=`FIRESTORE (${kl}) INTERNAL ASSERTION FAILED: `+t;throw Bs(e),new Error(e)}function Qe(t,e){t||Te()}function Ne(t,e){return t}/** 776 * @license 777 * Copyright 2017 Google LLC 778 * 779 * Licensed under the Apache License, Version 2.0 (the "License"); 780 * you may not use this file except in compliance with the License. 781 * You may obtain a copy of the License at 782 * 783 * http://www.apache.org/licenses/LICENSE-2.0 784 * 785 * Unless required by applicable law or agreed to in writing, softw
785are 786 * distributed under the License is distributed on an "AS IS" BASIS, 787 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 788 * See the License for the specific language governing permissions and 789 * limitations under the License. 790 */const ie={OK:"ok",CANCELLED:"cancelled",UNKNOWN:"unknown",INVALID_ARGUMENT:"invalid-argument",DEADLINE_EXCEEDED:"deadline-exceeded",NOT_FOUND:"not-found",ALREADY_EXISTS:"already-exists",PERMISSION_DENIED:"permission-denied",UNAUTHENTICATED:"unauthenticated",RESOURCE_EXHAUSTED:"resource-exhausted",FAILED_PRECONDITION:"failed-precondition",ABORTED:"aborted",OUT_OF_RANGE:"out-of-range",UNIMPLEMENTED:"unimplemented",INTERNAL:"internal",UNAVAILABLE:"unavailable",DATA_LOSS:"data-loss"};class de extends Hs{constructor(e,n){super(e,n),this.code=e,this.message=n,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}/** 791 * @license 792 * Copyright 2017 Google LLC 793 * 794 * Licensed under the Apache License, Version 2.0 (the "License"); 795 * you may not use this file except in compliance with the License. 796 * You may obtain a copy of the License at 797 * 798 * http://www.apache.org/licenses/LICENSE-2.0 799 * 800 * Unless required by applicable law or agreed to in writing, software 801 * distributed under the License is distributed on an "AS IS" BASIS, 802 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 803 * See the License for the specific language governing permissions and 804 * limitations under the License. 805 */class Os{constructor(){this.promise=new Promise(((e,n)=>{this.resolve=e,this.reject=n}))}}/** 806 * @license 807 * Copyright 2017 Google LLC 808 * 809 * Licensed under the Apache License, Version 2.0 (the "License"); 810 * you may not use this file except in compliance with the License. 811 * You may obtain a copy of the License at 812 * 813 * http://www.apache.org/licenses/LICENSE-2.0 814 * 815 * Unless required by applicable law or agreed to in writing, software 816 * distributed under the License is distributed on an "AS IS" BASIS, 817 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 818 * See the License for the specific language governing permissions and 819 * limitations under the License. 820 */class CN{constructor(e,n){this.user=n,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${e}`)}}class m5{getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,n){e.enqueueRetryable((()=>n(hn.UNAUTHENTICATED)))}shutdown(){}}class p5{constructor(e){this.token=e,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(e,n){this.changeListener=n,e.enqueueRetryable((()=>n(this.token.user)))}shutdown(){this.changeListener=null}}class g5{constructor(e){this.t=e,this.currentUser=hn.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(e,n){Qe(this.o===void 0);let s=this.i;const a=m=>this.i!==s?(s=this.i,n(m)):Promise.resolve();let l=new Os;this.o=()=>{this.i++,this.currentUser=this.u(),l.resolve(),l=new Os,e.enqueueRetryable((()=>a(this.currentUser)))};const u=()=>{const m=l;e.enqueueRetryable((async()=>{await m.promise,await a(this.currentUser)}))},d=m=>{he("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=m,this.o&&(this.auth.addAuthTokenListener(this.o),u())};this.t.onInit((m=>d(m))),setTimeout((()=>{if(!this.auth){const m=this.t.getImmediate({optional:!0});m?d(m):(he("FirebaseAuthCredentialsProvider","Auth not yet detected"),l.resolve(),l=new Os)}}),0),u()}getToken(){const e=this.i,n=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(n).then((s=>this.i!==e?(he("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):s?(Qe(typeof s.accessToken=="string"),new CN(s.accessToken,this.currentUser)):null)):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.o&&this.auth.removeAuthTokenListener(this.o),this.o=void 0}u(){const e=this.auth&&this.auth.getUid();return Qe(e===null||typeof e=="string"),new hn(e)}}class y5{constructor(e,n,s){this.l=e,this.h=n,this.P=s,this.type="FirstParty",this.user=hn.FIRST_PARTY,this.T=new Map}I(){return this.P?this.P():null}get headers(){this.T.set("X-Goog-AuthUser",this.l);const e=this.I();return e&&this.T.set("Authorization",e),this.h&&this.T.set("X-Goog-Iam-Authorization-Token",this.h),this.T}}class x5{constructor(e,n,s){this.l=e,this.h=n,this.P=s}getToken(){return Promise.resolve(new y5(this.l,this.h,this.P))}start(e,n){e.enqueueRetryable((()=>n(hn.FIRST_PARTY)))}shutdown(){}invalidateToken(){}}class v5{constructor(e){this.value=e,this.type="AppCheck",this.headers=new Map,e&&e.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class b5{constructor(e){this.A=e,this.forceRefresh=!1,this.appCheck=null,this.R=null}start(e,n){Qe(this.o===void 0);const s=l=>{l.error!=null&&he("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${l.error.message}`);const u=l.token!==this.R;return this.R=l.token,he("FirebaseAppCheckTokenProvider",`Received ${u?"new":"existing"} token.`),u?n(l.token):Promise.resolve()};this.o=l=>{e.enqueueRetryable((()=>s(l)))};const a=l=>{he("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=l,this.o&&this.appCheck.addTokenListener(this.o)};this.A.onInit((l=>a(l))),setTimeout((()=>
820{if(!this.appCheck){const l=this.A.getImmediate({optional:!0});l?a(l):he("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}}),0)}getToken(){const e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then((n=>n?(Qe(typeof n.token=="string"),this.R=n.token,new v5(n.token)):null)):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.o&&this.appCheck.removeTokenListener(this.o),this.o=void 0}}/** 821 * @license 822 * Copyright 2020 Google LLC 823 * 824 * Licensed under the Apache License, Version 2.0 (the "License"); 825 * you may not use this file except in compliance with the License. 826 * You may obtain a copy of the License at 827 * 828 * http://www.apache.org/licenses/LICENSE-2.0 829 * 830 * Unless required by applicable law or agreed to in writing, software 831 * distributed under the License is distributed on an "AS IS" BASIS, 832 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 833 * See the License for the specific language governing permissions and 834 * limitations under the License. 835 */function w5(t){const e=typeof self<"u"&&(self.crypto||self.msCrypto),n=new Uint8Array(t);if(e&&typeof e.getRandomValues=="function")e.getRandomValues(n);else for(let s=0;s<t;s++)n[s]=Math.floor(256*Math.random());return n}/** 836 * @license 837 * Copyright 2017 Google LLC 838 * 839 * Licensed under the Apache License, Version 2.0 (the "License"); 840 * you may not use this file except in compliance with the License. 841 * You may obtain a copy of the License at 842 * 843 * http://www.apache.org/licenses/LICENSE-2.0 844 * 845 * Unless required by applicable law or agreed to in writing, software 846 * distributed under the License is distributed on an "AS IS" BASIS, 847 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 848 * See the License for the specific language governing permissions and 849 * limitations under the License. 850 */class IN{static newId(){const e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",n=Math.floor(256/e.length)*e.length;let s="";for(;s.length<20;){const a=w5(40);for(let l=0;l<a.length;++l)s.length<20&&a[l]<n&&(s+=e.charAt(a[l]%e.length))}return s}}function Fe(t,e){return t<e?-1:t>e?1:0}function gl(t,e,n){return t.length===e.length&&t.every(((s,a)=>n(s,e[a])))}/** 851 * @license 852 * Copyright 2017 Google LLC 853 * 854 * Licensed under the Apache License, Version 2.0 (the "License"); 855 * you may not use this file except in compliance with the License. 856 * You may obtain a copy of the License at 857 * 858 * http://www.apache.org/licenses/LICENSE-2.0 859 * 860 * Unless required by applicable law or agreed to in writing, software 861 * distributed under the License is distributed on an "AS IS" BASIS, 862 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 863 * See the License for the specific language governing permissions and 864 * limitations under the License. 865 */class Ot{static now(){return Ot.fromMillis(Date.now())}static fromDate(e){return Ot.fromMillis(e.getTime())}static fromMillis(e){const n=Math.floor(e/1e3),s=Math.floor(1e6*(e-1e3*n));return new Ot(n,s)}constructor(e,n){if(this.seconds=e,this.nanoseconds=n,n<0)throw new de(ie.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+n);if(n>=1e9)throw new de(ie.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+n);if(e<-62135596800)throw new de(ie.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e);if(e>=253402300800)throw new de(ie.INVALID_ARGUMENT,"Timestamp seconds out of range: "+e)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(e){return this.seconds===e.seconds?Fe(this.nanoseconds,e.nanoseconds):Fe(this.seconds,e.seconds)}isEqual(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}}valueOf(){const e=this.seconds- -62135596800;return String(e).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}/** 866 * @license 867 * Copyright 2017 Google LLC 868 * 869 * Licensed under the Apache License, Version 2.0 (the "License");
870 * you may not use this file except in compliance with the License. 871 * You may obtain a copy of the License at 872 * 873 * http://www.apache.org/licenses/LICENSE-2.0 874 * 875 * Unless required by applicable law or agreed to in writing, software 876 * distributed under the License is distributed on an "AS IS" BASIS, 877 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 878 * See the License for the specific language governing permissions and 879 * limitations under the License. 880 */class Ee{static fromTimestamp(e){return new Ee(e)}static min(){return new Ee(new Ot(0,0))}static max(){return new Ee(new Ot(253402300799,999999999))}constructor(e){this.timestamp=e}compareTo(e){return this.timestamp._compareTo(e.timestamp)}isEqual(e){return this.timestamp.isEqual(e.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return"SnapshotVersion("+this.timestamp.toString()+")"}toTimestamp(){return this.timestamp}}/** 881 * @license 882 * Copyright 2017 Google LLC 883 * 884 * Licensed under the Apache License, Version 2.0 (the "License"); 885 * you may not use this file except in compliance with the License. 886 * You may obtain a copy of the License at 887 * 888 * http://www.apache.org/licenses/LICENSE-2.0 889 * 890 * Unless required by applicable law or agreed to in writing, software 891 * distributed under the License is distributed on an "AS IS" BASIS, 892 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 893 * See the License for the specific language governing permissions and 894 * limitations under the License. 895 */class wu{constructor(e,n,s){n===void 0?n=0:n>e.length&&Te(),s===void 0?s=e.length-n:s>e.length-n&&Te(),this.segments=e,this.offset=n,this.len=s}get length(){return this.len}isEqual(e){return wu.comparator(this,e)===0}child(e){const n=this.segments.slice(this.offset,this.limit());return e instanceof wu?e.forEach((s=>{n.push(s)})):n.push(e),this.construct(n)}limit(){return this.offset+this.length}popFirst(e){return e=e===void 0?1:e,this.construct(this.segments,this.offset+e,this.length-e)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(e){return this.segments[this.offset+e]}isEmpty(){return this.length===0}isPrefixOf(e){if(e.length<this.length)return!1;for(let n=0;n<this.length;n++)if(this.get(n)!==e.get(n))return!1;return!0}isImmediateParentOf(e){if(this.length+1!==e.length)return!1;for(let n=0;n<this.length;n++)if(this.get(n)!==e.get(n))return!1;return!0}forEach(e){for(let n=this.offset,s=this.limit();n<s;n++)e(this.segments[n])}toArray(){return this.segments.slice(this.offset,this.limit())}static comparator(e,n){const s=Math.min(e.length,n.length);for(let a=0;a<s;a++){const l=e.get(a),u=n.get(a);if(l<u)return-1;if(l>u)return 1}return e.length<n.length?-1:e.length>n.length?1:0}}class lt extends wu{construct(e,n,s){return new lt(e,n,s)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(...e){const n=[];for(const s of e){if(s.indexOf("//")>=0)throw new de(ie.INVALID_ARGUMENT,`Invalid segment (${s}). Paths must not contain // in them.`);n.push(...s.split("/").filter((a=>a.length>0)))}return new lt(n)}static emptyPath(){return new lt([])}}const _5=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class sn extends wu{construct(e,n,s){return new sn(e,n,s)}static isValidIdentifier(e){return _5.test(e)}canonicalString(){return this.toArray().map((e=>(e=e.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),sn.isValidIdentifier(e)||(e="`"+e+"`"),e))).join(".")}toString(){return this.canonicalString()}isKeyField(){return this.length===1&&this.get(0)==="__name__"}static keyField(){return new sn(["__name__"])}static fromServerFormat(e){const n=[];let s="",a=0;const l=()=>{if(s.length===0)throw new de(ie.INVALID_ARGUMENT,`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);n.push(s),s=""};let u=!1;for(;a<e.length;){const d=e[a];if(d==="\\"){if(a+1===e.length)throw new de(ie.INVALID_ARGUMENT,"Path has trailing escape character: "+e);const m=e[a+1];if(m!=="\\"&&m!=="."&&m!=="`")throw new de(ie.INVALID_ARGUMENT,"Path has invali
895d escape sequence: "+e);s+=m,a+=2}else d==="`"?(u=!u,a++):d!=="."||u?(s+=d,a++):(l(),a++)}if(l(),u)throw new de(ie.INVALID_ARGUMENT,"Unterminated ` in path: "+e);return new sn(n)}static emptyPath(){return new sn([])}}/** 896 * @license 897 * Copyright 2017 Google LLC 898 * 899 * Licensed under the Apache License, Version 2.0 (the "License"); 900 * you may not use this file except in compliance with the License. 901 * You may obtain a copy of the License at 902 * 903 * http://www.apache.org/licenses/LICENSE-2.0 904 * 905 * Unless required by applicable law or agreed to in writing, software 906 * distributed under the License is distributed on an "AS IS" BASIS, 907 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 908 * See the License for the specific language governing permissions and 909 * limitations under the License. 910 */class xe{constructor(e){this.path=e}static fromPath(e){return new xe(lt.fromString(e))}static fromName(e){return new xe(lt.fromString(e).popFirst(5))}static empty(){return new xe(lt.emptyPath())}get collectionGroup(){return this.path.popLast().lastSegment()}hasCollectionId(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(e){return e!==null&<.comparator(this.path,e.path)===0}toString(){return this.path.toString()}static comparator(e,n){return lt.comparator(e.path,n.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(e){return new xe(new lt(e.slice()))}}function T5(t,e){const n=t.toTimestamp().seconds,s=t.toTimestamp().nanoseconds+1,a=Ee.fromTimestamp(s===1e9?new Ot(n+1,0):new Ot(n,s));return new Jr(a,xe.empty(),e)}function E5(t){return new Jr(t.readTime,t.key,-1)}class Jr{constructor(e,n,s){this.readTime=e,this.documentKey=n,this.largestBatchId=s}static min(){return new Jr(Ee.min(),xe.empty(),-1)}static max(){return new Jr(Ee.max(),xe.empty(),-1)}}function S5(t,e){let n=t.readTime.compareTo(e.readTime);return n!==0?n:(n=xe.comparator(t.documentKey,e.documentKey),n!==0?n:Fe(t.largestBatchId,e.largestBatchId))}/** 911 * @license 912 * Copyright 2020 Google LLC 913 * 914 * Licensed under the Apache License, Version 2.0 (the "License"); 915 * you may not use this file except in compliance with the License. 916 * You may obtain a copy of the License at 917 * 918 * http://www.apache.org/licenses/LICENSE-2.0 919 * 920 * Unless required by applicable law or agreed to in writing, software 921 * distributed under the License is distributed on an "AS IS" BASIS, 922 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 923 * See the License for the specific language governing permissions and 924 * limitations under the License. 925 */const A5="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class N5{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(e){this.onCommittedListeners.push(e)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach((e=>e()))}}/** 926 * @license 927 * Copyright 2017 Google LLC 928 * 929 * Licensed under the Apache License, Version 2.0 (the "License"); 930 * you may not use this file except in compliance with the License. 931 * You may obtain a copy of the License at 932 * 933 * http://www.apache.org/licenses/LICENSE-2.0 934 * 935 * Unless required by applicable law or agreed to in writing, software 936 * distributed under the License is distributed on an "AS IS" BASIS, 937 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 938 * See the License for the specific language governing permissions and 939 * limitations under the License. 940 */async function Ml(t){if(t.code!==ie.FAILED_PRECONDITION||t.message!==A5)throw t;he("LocalStore","Unexpectedly lost primary lease")}/** 941 * @license 942 * Copyright 2017 Google LLC 943 * 944 * Licensed under the Apache License, Version 2.0 (the "License"); 945 * you may not use this file except in compliance with the License. 946 * You may obtain a copy of the License at 947 * 948 * http://www.apache.org/licenses/LICENSE-2.0 949 * 950 * Unless required by applicable law or agreed to in writing, softw
950are 951 * distributed under the License is distributed on an "AS IS" BASIS, 952 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 953 * See the License for the specific language governing permissions and 954 * limitations under the License. 955 */class se{constructor(e){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,e((n=>{this.isDone=!0,this.result=n,this.nextCallback&&this.nextCallback(n)}),(n=>{this.isDone=!0,this.error=n,this.catchCallback&&this.catchCallback(n)}))}catch(e){return this.next(void 0,e)}next(e,n){return this.callbackAttached&&Te(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(n,this.error):this.wrapSuccess(e,this.result):new se(((s,a)=>{this.nextCallback=l=>{this.wrapSuccess(e,l).next(s,a)},this.catchCallback=l=>{this.wrapFailure(n,l).next(s,a)}}))}toPromise(){return new Promise(((e,n)=>{this.next(e,n)}))}wrapUserFunction(e){try{const n=e();return n instanceof se?n:se.resolve(n)}catch(n){return se.reject(n)}}wrapSuccess(e,n){return e?this.wrapUserFunction((()=>e(n))):se.resolve(n)}wrapFailure(e,n){return e?this.wrapUserFunction((()=>e(n))):se.reject(n)}static resolve(e){return new se(((n,s)=>{n(e)}))}static reject(e){return new se(((n,s)=>{s(e)}))}static waitFor(e){return new se(((n,s)=>{let a=0,l=0,u=!1;e.forEach((d=>{++a,d.next((()=>{++l,u&&l===a&&n()}),(m=>s(m)))})),u=!0,l===a&&n()}))}static or(e){let n=se.resolve(!1);for(const s of e)n=n.next((a=>a?se.resolve(a):s()));return n}static forEach(e,n){const s=[];return e.forEach(((a,l)=>{s.push(n.call(this,a,l))})),this.waitFor(s)}static mapArray(e,n){return new se(((s,a)=>{const l=e.length,u=new Array(l);let d=0;for(let m=0;m<l;m++){const g=m;n(e[g]).next((x=>{u[g]=x,++d,d===l&&s(u)}),(x=>a(x)))}}))}static doWhile(e,n){return new se(((s,a)=>{const l=()=>{e()===!0?n().next((()=>{l()}),a):s()};l()}))}}function j5(t){const e=t.match(/Android ([\d.]+)/i),n=e?e[1].split(".").slice(0,2).join("."):"-1";return Number(n)}function Ll(t){return t.name==="IndexedDbTransactionError"}/** 956 * @license 957 * Copyright 2018 Google LLC 958 * 959 * Licensed under the Apache License, Version 2.0 (the "License"); 960 * you may not use this file except in compliance with the License. 961 * You may obtain a copy of the License at 962 * 963 * http://www.apache.org/licenses/LICENSE-2.0 964 * 965 * Unless required by applicable law or agreed to in writing, software 966 * distributed under the License is distributed on an "AS IS" BASIS, 967 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 968 * See the License for the specific language governing permissions and 969 * limitations under the License. 970 */class Pf{constructor(e,n){this.previousValue=e,n&&(n.sequenceNumberHandler=s=>this.ie(s),this.se=s=>n.writeSequenceNumber(s))}ie(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue}next(){const e=++this.previousValue;return this.se&&this.se(e),e}}Pf.oe=-1;function Vf(t){return t==null}function pf(t){return t===0&&1/t==-1/0}function R5(t){return typeof t=="number"&&Number.isInteger(t)&&!pf(t)&&t<=Number.MAX_SAFE_INTEGER&&t>=Number.MIN_SAFE_INTEGER}/** 971 * @license 972 * Copyright 2017 Google LLC 973 * 974 * Licensed under the Apache License, Version 2.0 (the "License"); 975 * you may not use this file except in compliance with the License. 976 * You may obtain a copy of the License at 977 * 978 * http://www.apache.org/licenses/LICENSE-2.0 979 * 980 * Unless required by applicable law or agreed to in writing, software 981 * distributed under the License is distributed on an "AS IS" BASIS, 982 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 983 * See the License for the specific language governing permissions and 984 * limitations under the License. 985 */function C5(t){let e="";for(let n=0;n<t.length;n++)e.length>0&&(e=bT(e)),e=I5(t.get(n),e);return bT(e)}function I5(t,e){let n=e;const s=t.length;for(let a=0;a<s;a++){const l=t.charAt(a);switch(l){case"\0":n+="��";break;case"�":n+="��";break;default:n+=l}}return n}function bT(t){return t+"��"}/** 986 * @license 987 * Copyright 2017 Google LLC 988 * 989 * Licensed under the Apache License, Version 2.0 (the "License");
990 * you may not use this file except in compliance with the License. 991 * You may obtain a copy of the License at 992 * 993 * http://www.apache.org/licenses/LICENSE-2.0 994 * 995 * Unless required by applicable law or agreed to in writing, software 996 * distributed under the License is distributed on an "AS IS" BASIS, 997 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 998 * See the License for the specific language governing permissions and 999 * limitations under the License. 1000 */function wT(t){let e=0;for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&e++;return e}function sa(t,e){for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&e(n,t[n])}function DN(t){for(const e in t)if(Object.prototype.hasOwnProperty.call(t,e))return!1;return!0}/** 1001 * @license 1002 * Copyright 2017 Google LLC 1003 * 1004 * Licensed under the Apache License, Version 2.0 (the "License"); 1005 * you may not use this file except in compliance with the License. 1006 * You may obtain a copy of the License at 1007 * 1008 * http://www.apache.org/licenses/LICENSE-2.0 1009 * 1010 * Unless required by applicable law or agreed to in writing, software 1011 * distributed under the License is distributed on an "AS IS" BASIS, 1012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1013 * See the License for the specific language governing permissions and 1014 * limitations under the License. 1015 */class pt{constructor(e,n){this.comparator=e,this.root=n||tn.EMPTY}insert(e,n){return new pt(this.comparator,this.root.insert(e,n,this.comparator).copy(null,null,tn.BLACK,null,null))}remove(e){return new pt(this.comparator,this.root.remove(e,this.comparator).copy(null,null,tn.BLACK,null,null))}get(e){let n=this.root;for(;!n.isEmpty();){const s=this.comparator(e,n.key);if(s===0)return n.value;s<0?n=n.left:s>0&&(n=n.right)}return null}indexOf(e){let n=0,s=this.root;for(;!s.isEmpty();){const a=this.comparator(e,s.key);if(a===0)return n+s.left.size;a<0?s=s.left:(n+=s.left.size+1,s=s.right)}return-1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(e){return this.root.inorderTraversal(e)}forEach(e){this.inorderTraversal(((n,s)=>(e(n,s),!1)))}toString(){const e=[];return this.inorderTraversal(((n,s)=>(e.push(`${n}:${s}`),!1))),`{${e.join(", ")}}`}reverseTraversal(e){return this.root.reverseTraversal(e)}getIterator(){return new Dd(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new Dd(this.root,e,this.comparator,!1)}getReverseIterator(){return new Dd(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new Dd(this.root,e,this.comparator,!0)}}class Dd{constructor(e,n,s,a){this.isReverse=a,this.nodeStack=[];let l=1;for(;!e.isEmpty();)if(l=n?s(e.key,n):1,n&&a&&(l*=-1),l<0)e=this.isReverse?e.left:e.right;else{if(l===0){this.nodeStack.push(e);break}this.nodeStack.push(e),e=this.isReverse?e.right:e.left}}getNext(){let e=this.nodeStack.pop();const n={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return n}hasNext(){return this.nodeStack.length>0}peek(){if(this.nodeStack.length===0)return null;const e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}}}class tn{constructor(e,n,s,a,l){this.key=e,this.value=n,this.color=s??tn.RED,this.left=a??tn.EMPTY,this.right=l??tn.EMPTY,this.size=this.left.size+1+this.right.size}copy(e,n,s,a,l){return new tn(e??this.key,n??this.value,s??this.color,a??this.left,l??this.right)}isEmpty(){return!1}inorderTraversal(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)}reverseTraversal(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(e,n,s){let a=this;const l=s(e,a.key);return a=l<0?a.copy(null,null,null,a.left.insert(e,n,s),null):l===0?a.copy(null,n,null,null,null):a.copy(null,null,null,null,a.right.insert(e,n,s)),a.fixUp()}removeMin(){if(this.left.isEmpty())return tn.EMPTY;let e=this;return e.left.isRed()||e.left.left.isRed()||(e=e.moveRedLeft()),e=e.copy(null,null,null,e.left.removeMin(),null),e.fixUp()}remove(e,n){let s,a=this;if(n(e,a.key)<0)a.left.isEmpty()||a.left.isRed()||a.left.left.isRed()||(a=a.moveRedLeft()),a=a.copy(null,null,null,a.left.remove(e,n),null);else{if(a.left.isRed()&&(a=a.rotateRight()),a.right.isEmpty()||a.right.isRed()||a.right.left.isRed()||(a=a.moveRedRight()),n(e,a.key)===0){if(a.right.isEmpty())return tn.EMPTY;s=a.right.min(),a=a.copy(s.key,s.value,null,null,a.right.removeMin())}
vendor: 4,214 bytes, lines 1015-1040
1015a=a.copy(null,null,null,null,a.right.remove(e,n))}return a.fixUp()}isRed(){return this.color}fixUp(){let e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e}moveRedLeft(){let e=this.colorFlip();return e.right.left.isRed()&&(e=e.copy(null,null,null,null,e.right.rotateRight()),e=e.rotateLeft(),e=e.colorFlip()),e}moveRedRight(){let e=this.colorFlip();return e.left.left.isRed()&&(e=e.rotateRight(),e=e.colorFlip()),e}rotateLeft(){const e=this.copy(null,null,tn.RED,null,this.right.left);return this.right.copy(null,null,this.color,e,null)}rotateRight(){const e=this.copy(null,null,tn.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,e)}colorFlip(){const e=this.left.copy(null,null,!this.left.color,null,null),n=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,n)}checkMaxDepth(){const e=this.check();return Math.pow(2,e)<=this.size+1}check(){if(this.isRed()&&this.left.isRed()||this.right.isRed())throw Te();const e=this.left.check();if(e!==this.right.check())throw Te();return e+(this.isRed()?0:1)}}tn.EMPTY=null,tn.RED=!0,tn.BLACK=!1;tn.EMPTY=new class{constructor(){this.size=0}get key(){throw Te()}get value(){throw Te()}get color(){throw Te()}get left(){throw Te()}get right(){throw Te()}copy(e,n,s,a,l){return this}insert(e,n,s){return new tn(e,n)}remove(e,n){return this}isEmpty(){return!0}inorderTraversal(e){return!1}reverseTraversal(e){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};/** 1016 * @license 1017 * Copyright 2017 Google LLC 1018 * 1019 * Licensed under the Apache License, Version 2.0 (the "License"); 1020 * you may not use this file except in compliance with the License. 1021 * You may obtain a copy of the License at 1022 * 1023 * http://www.apache.org/licenses/LICENSE-2.0 1024 * 1025 * Unless required by applicable law or agreed to in writing, software 1026 * distributed under the License is distributed on an "AS IS" BASIS, 1027 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1028 * See the License for the specific language governing permissions and 1029 * limitations under the License. 1030 */class Pt{constructor(e){this.comparator=e,this.data=new pt(this.comparator)}has(e){return this.data.get(e)!==null}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(e){return this.data.indexOf(e)}forEach(e){this.data.inorderTraversal(((n,s)=>(e(n),!1)))}forEachInRange(e,n){const s=this.data.getIteratorFrom(e[0]);for(;s.hasNext();){const a=s.getNext();if(this.comparator(a.key,e[1])>=0)return;n(a.key)}}forEachWhile(e,n){let s;for(s=n!==void 0?this.data.getIteratorFrom(n):this.data.getIterator();s.hasNext();)if(!e(s.getNext().key))return}firstAfterOrEqual(e){const n=this.data.getIteratorFrom(e);return n.hasNext()?n.getNext().key:null}getIterator(){return new _T(this.data.getIterator())}getIteratorFrom(e){return new _T(this.data.getIteratorFrom(e))}add(e){return this.copy(this.data.remove(e).insert(e,!0))}delete(e){return this.has(e)?this.copy(this.data.remove(e)):this}isEmpty(){return this.data.isEmpty()}unionWith(e){let n=this;return n.size<e.size&&(n=e,e=this),e.forEach((s=>{n=n.add(s)})),n}isEqual(e){if(!(e instanceof Pt)||this.size!==e.size)return!1;const n=this.data.getIterator(),s=e.data.getIterator();for(;n.hasNext();){const a=n.getNext().key,l=s.getNext().key;if(this.comparator(a,l)!==0)return!1}return!0}toArray(){const e=[];return this.forEach((n=>{e.push(n)})),e}toString(){const e=[];return this.forEach((n=>e.push(n))),"SortedSet("+e.toString()+")"}copy(e){const n=new Pt(this.comparator);return n.data=e,n}}class _T{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}/** 1031 * @license 1032 * Copyright 2020 Google LLC 1033 * 1034 * Licensed under the Apache License, Version 2.0 (the "License"); 1035 * you may not use this file except in compliance with the License. 1036 * You may obtain a copy of the License at 1037 * 1038 * http://www.apache.org/licenses/LICENSE-2.0 1039 * 1040 * Unless required by applicable law or agreed to in writing, softw
1040are 1041 * distributed under the License is distributed on an "AS IS" BASIS, 1042 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1043 * See the License for the specific language governing permissions and 1044 * limitations under the License. 1045 */class $n{constructor(e){this.fields=e,e.sort(sn.comparator)}static empty(){return new $n([])}unionWith(e){let n=new Pt(sn.comparator);for(const s of this.fields)n=n.add(s);for(const s of e)n=n.add(s);return new $n(n.toArray())}covers(e){for(const n of this.fields)if(n.isPrefixOf(e))return!0;return!1}isEqual(e){return gl(this.fields,e.fields,((n,s)=>n.isEqual(s)))}}/** 1046 * @license 1047 * Copyright 2023 Google LLC 1048 * 1049 * Licensed under the Apache License, Version 2.0 (the "License"); 1050 * you may not use this file except in compliance with the License. 1051 * You may obtain a copy of the License at 1052 * 1053 * http://www.apache.org/licenses/LICENSE-2.0 1054 * 1055 * Unless required by applicable law or agreed to in writing, software 1056 * distributed under the License is distributed on an "AS IS" BASIS, 1057 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1058 * See the License for the specific language governing permissions and 1059 * limitations under the License.
1060 */class kN extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}/** 1061 * @license 1062 * Copyright 2020 Google LLC 1063 * 1064 * Licensed under the Apache License, Version 2.0 (the "License"); 1065 * you may not use this file except in compliance with the License. 1066 * You may obtain a copy of the License at 1067 * 1068 * http://www.apache.org/licenses/LICENSE-2.0 1069 * 1070 * Unless required by applicable law or agreed to in writing, software 1071 * distributed under the License is distributed on an "AS IS" BASIS, 1072 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1073 * See the License for the specific language governing permissions and 1074 * limitations under the License. 1075 */class rn{constructor(e){this.binaryString=e}static fromBase64String(e){const n=(function(a){try{return atob(a)}catch(l){throw typeof DOMException<"u"&&l instanceof DOMException?new kN("Invalid base64 string: "+l):l}})(e);return new rn(n)}static fromUint8Array(e){const n=(function(a){let l="";for(let u=0;u<a.length;++u)l+=String.fromCharCode(a[u]);return l})(e);return new rn(n)}[Symbol.iterator](){let e=0;return{next:()=>e<this.binaryString.length?{value:this.binaryString.charCodeAt(e++),done:!1}:{value:void 0,done:!0}}}toBase64(){return(function(n){return btoa(n)})(this.binaryString)}toUint8Array(){return(function(n){const s=new Uint8Array(n.length);for(let a=0;a<n.length;a++)s[a]=n.charCodeAt(a);return s})(this.binaryString)}approximateByteSize(){return 2*this.binaryString.length}compareTo(e){return Fe(this.binaryString,e.binaryString)}isEqual(e){return this.binaryString===e.binaryString}}rn.EMPTY_BYTE_STRING=new rn("");const D5=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function Zr(t){if(Qe(!!t),typeof t=="string"){let e=0;const n=D5.exec(t);if(Qe(!!n),n[1]){let a=n[1];a=(a+"000000000").substr(0,9),e=Number(a)}const s=new Date(t);return{seconds:Math.floor(s.getTime()/1e3),nanos:e}}return{seconds:Et(t.seconds),nanos:Et(t.nanos)}}function Et(t){return typeof t=="number"?t:typeof t=="string"?Number(t):0}function ea(t){return typeof t=="string"?rn.fromBase64String(t):rn.fromUint8Array(t)}/** 1076 * @license 1077 * Copyright 2020 Google LLC 1078 * 1079 * Licensed under the Apache License, Version 2.0 (the "License"); 1080 * you may not use this file except in compliance with the License. 1081 * You may obtain a copy of the License at 1082 * 1083 * http://www.apache.org/licenses/LICENSE-2.0 1084 * 1085 * Unless required by applicable law or agreed to in writing, software 1086 * distributed under the License is distributed on an "AS IS" BASIS, 1087 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1088 * See the License for the specific language governing permissions and 1089 * limitations under the License. 1090 */function nv(t){var e,n;return((n=(((e=t==null?void 0:t.mapValue)===null||e===void 0?void 0:e.fields)||{}).__type__)===null||n===void 0?void 0:n.stringValue)==="server_timestamp"}function Uf(t){const e=t.mapValue.fields.__previous_value__;return nv(e)?Uf(e):e}function _u(t){const e=Zr(t.mapValue.fields.__local_write_time__.timestampValue);return new Ot(e.seconds,e.nanos)}/** 1091 * @license 1092 * Copyright 2017 Google LLC 1093 * 1094 * Licensed under the Apache License, Version 2.0 (the "License"); 1095 * you may not use this file except in compliance with the License. 1096 * You may obtain a copy of the License at 1097 * 1098 * http://www.apache.org/licenses/LICENSE-2.0 1099 * 1100 * Unless required by applicable law or agreed to in writing, software 1101 * distributed under the License is distributed on an "AS IS" BASIS, 1102 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1103 * See the License for the specific language governing permissions and 1104 * limitations under the License. 1105 */class k5{constructor(e,n,s,a,l,u,d,m,g){this.databaseId=e,this.appId=n,this.persistenceKey=s,this.host=a,this.ssl=l,this.forceLongPolling=u,this.autoDetectLongPolling=d,this.longPollingOptions=m,this.useFetchStreams=g}}class Tu{constructor(e,n){this.projectId=e,this.database=n||"(default)"}static empty(){return new Tu("","")}get isDefaultDatabase(){return this.database==="(default)"}isEqual(e){return e instanceof Tu&&e.projectId===this.projectId&&e.database===this.database}}/** 1106 * @license 1107 * Copyright 2020 Google LLC 1108 * 1109 * Licensed under the Apache License, Version 2.0 (the "License");
1110 * you may not use this file except in compliance with the License. 1111 * You may obtain a copy of the License at 1112 * 1113 * http://www.apache.org/licenses/LICENSE-2.0 1114 * 1115 * Unless required by applicable law or agreed to in writing, software 1116 * distributed under the License is distributed on an "AS IS" BASIS, 1117 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1118 * See the License for the specific language governing permissions and 1119 * limitations under the License. 1120 */const kd={mapValue:{}};function ta(t){return"nullValue"in t?0:"booleanValue"in t?1:"integerValue"in t||"doubleValue"in t?2:"timestampValue"in t?3:"stringValue"in t?5:"bytesValue"in t?6:"referenceValue"in t?7:"geoPointValue"in t?8:"arrayValue"in t?9:"mapValue"in t?nv(t)?4:L5(t)?9007199254740991:M5(t)?10:11:Te()}function Zi(t,e){if(t===e)return!0;const n=ta(t);if(n!==ta(e))return!1;switch(n){case 0:case 9007199254740991:return!0;case 1:return t.booleanValue===e.booleanValue;case 4:return _u(t).isEqual(_u(e));case 3:return(function(a,l){if(typeof a.timestampValue=="string"&&typeof l.timestampValue=="string"&&a.timestampValue.length===l.timestampValue.length)return a.timestampValue===l.timestampValue;const u=Zr(a.timestampValue),d=Zr(l.timestampValue);return u.seconds===d.seconds&&u.nanos===d.nanos})(t,e);case 5:return t.stringValue===e.stringValue;case 6:return(function(a,l){return ea(a.bytesValue).isEqual(ea(l.bytesValue))})(t,e);case 7:return t.referenceValue===e.referenceValue;case 8:return(function(a,l){return Et(a.geoPointValue.latitude)===Et(l.geoPointValue.latitude)&&Et(a.geoPointValue.longitude)===Et(l.geoPointValue.longitude)})(t,e);case 2:return(function(a,l){if("integerValue"in a&&"integerValue"in l)return Et(a.integerValue)===Et(l.integerValue);if("doubleValue"in a&&"doubleValue"in l){const u=Et(a.doubleValue),d=Et(l.doubleValue);return u===d?pf(u)===pf(d):isNaN(u)&&isNaN(d)}return!1})(t,e);case 9:return gl(t.arrayValue.values||[],e.arrayValue.values||[],Zi);case 10:case 11:return(function(a,l){const u=a.mapValue.fields||{},d=l.mapValue.fields||{};if(wT(u)!==wT(d))return!1;for(const m in u)if(u.hasOwnProperty(m)&&(d[m]===void 0||!Zi(u[m],d[m])))return!1;return!0})(t,e);default:return Te()}}function Eu(t,e){return(t.values||[]).find((n=>Zi(n,e)))!==void 0}function yl(t,e){if(t===e)return 0;const n=ta(t),s=ta(e);if(n!==s)return Fe(n,s);switch(n){case 0:case 9007199254740991:return 0;case 1:return Fe(t.booleanValue,e.booleanValue);case 2:return(function(l,u){const d=Et(l.integerValue||l.doubleValue),m=Et(u.integerValue||u.doubleValue);return d<m?-1:d>m?1:d===m?0:isNaN(d)?isNaN(m)?0:-1:1})(t,e);case 3:return TT(t.timestampValue,e.timestampValue);case 4:return TT(_u(t),_u(e));case 5:return Fe(t.stringValue,e.stringValue);case 6:return(function(l,u){const d=ea(l),m=ea(u);return d.compareTo(m)})(t.bytesValue,e.bytesValue);case 7:return(function(l,u){const d=l.split("/"),m=u.split("/");for(let g=0;g<d.length&&g<m.length;g++){const x=Fe(d[g],m[g]);if(x!==0)return x}return Fe(d.length,m.length)})(t.referenceValue,e.referenceValue);case 8:return(function(l,u){const d=Fe(Et(l.latitude),Et(u.latitude));return d!==0?d:Fe(Et(l.longitude),Et(u.longitude))})(t.geoPointValue,e.geoPointValue);case 9:return ET(t.arrayValue,e.arrayValue);case 10:return(function(l,u){var d,m,g,x;const v=l.fields||{},T=u.fields||{},E=(d=v.value)===null||d===void 0?void 0:d.arrayValue,C=(m=T.value)===null||m===void 0?void 0:m.arrayValue,L=Fe(((g=E==null?void 0:E.values)===null||g===void 0?void 0:g.length)||0,((x=C==null?void 0:C.values)===null||x===void 0?void 0:x.length)||0);return L!==0?L:ET(E,C)})(t.mapValue,e.mapValue);case 11:return(function(l,u){if(l===kd.mapValue&&u===kd.mapValue)return 0;if(l===kd.mapValue)return 1;if(u===kd.mapValue)return-1;const d=l.fields||{},m=Object.keys(d),g=u.fields||{},x=Object.keys(g);m.sort(),x.sort();for(let v=0;v<m.length&&v<x.length;++v){const T=Fe(m[v],x[v]);if(T!==0)return T;const E=yl(d[m[v]],g[x[v]]);if(E!==0)return E}return Fe(m.length,x.length)})(t.mapValue,e.mapValue);default:throw Te()}}function TT(t,e){if(typeof t=="string"&&typeof e=="string"&&t.length===e.length)return Fe(t,e);const n=Zr(t),s=Zr(e),a=Fe(n.seconds,s.seconds);return a!==0?a:Fe(n.nanos,s.nanos)}function ET(t,e){const n=t.values||[],s=e.values||[];for(let a=0;a<n.length&&a<s.length;++a){const l=yl(n[a],s[a]);if(l)return l}return Fe(n.length,s.length)}function xl(t){return Fy(t)}function Fy(t){return"nullValue"in t?"null":"booleanValue"in t?""+t.booleanValue:"integerValue"in t?""+t.integerValue:"doubleValue"in t?""+t.doubleValue:"timestampValue"in t?(function(n){const s=Zr(n);return`time(${s.seconds},${s.nanos})`})(t.timestampValue):"stringValue"in t?t.stringValue:"bytesValue"in t?(function(n){return ea(n).toBase64()})(t.bytesValue):"referenceValue"in t?(function(n){return xe.fromName(n).toString()})(t.referenceValue):"geoPointValue"in t?(function(n){return`geo(${n.latitude},${n.longitude})`})(t.geoPointValue):"arrayValue"in t?(function(n){let s="[",a=!0;for(const l of n.values||[])a?a=!1:s+=",",s+=Fy(l);return s+"]"})(t.arrayValue):"mapValue"in t?(function(n){const s=Object.keys(n.fields||{}).sort();let a="{",l=!0;for(const u of s)l?l=!1:a+=",",a+=`${u}:${Fy(n.fields[u])}`;return a+"}"})(t.mapValue):Te()}function $d(t){switch(ta(t)){case 0:case 1:return 4;case 2:return 8;case 3:case 8:return 16;case 4:const e=Uf(t);return e?16+$d(e):16;case 5:return 2*t.stringValue.length;case 6:return ea(t.bytesValue).approximateByteSize();case 7:return t.referenceValue.length;case 9:return(function(s){return(s.values||[]).reduce(((a,l)=>
1120a+$d(l)),0)})(t.arrayValue);case 10:case 11:return(function(s){let a=0;return sa(s.fields,((l,u)=>{a+=l.length+$d(u)})),a})(t.mapValue);default:throw Te()}}function ST(t,e){return{referenceValue:`projects/${t.projectId}/databases/${t.database}/documents/${e.path.canonicalString()}`}}function Gy(t){return!!t&&"integerValue"in t}function iv(t){return!!t&&"arrayValue"in t}function AT(t){return!!t&&"nullValue"in t}function NT(t){return!!t&&"doubleValue"in t&&isNaN(Number(t.doubleValue))}function Kd(t){return!!t&&"mapValue"in t}function M5(t){var e,n;return((n=(((e=t==null?void 0:t.mapValue)===null||e===void 0?void 0:e.fields)||{}).__type__)===null||n===void 0?void 0:n.stringValue)==="__vector__"}function lu(t){if(t.geoPointValue)return{geoPointValue:Object.assign({},t.geoPointValue)};if(t.timestampValue&&typeof t.timestampValue=="object")return{timestampValue:Object.assign({},t.timestampValue)};if(t.mapValue){const e={mapValue:{fields:{}}};return sa(t.mapValue.fields,((n,s)=>e.mapValue.fields[n]=lu(s))),e}if(t.arrayValue){const e={arrayValue:{values:[]}};for(let n=0;n<(t.arrayValue.values||[]).length;++n)e.arrayValue.values[n]=lu(t.arrayValue.values[n]);return e}return Object.assign({},t)}function L5(t){return(((t.mapValue||{}).fields||{}).__type__||{}).stringValue==="__max__"}/** 1121 * @license 1122 * Copyright 2017 Google LLC 1123 * 1124 * Licensed under the Apache License, Version 2.0 (the "License"); 1125 * you may not use this file except in compliance with the License. 1126 * You may obtain a copy of the License at 1127 * 1128 * http://www.apache.org/licenses/LICENSE-2.0 1129 * 1130 * Unless required by applicable law or agreed to in writing, software 1131 * distributed under the License is distributed on an "AS IS" BASIS, 1132 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1133 * See the License for the specific language governing permissions and 1134 * limitations under the License. 1135 */class Dn{constructor(e){this.value=e}static empty(){return new Dn({mapValue:{}})}field(e){if(e.isEmpty())return this.value;{let n=this.value;for(let s=0;s<e.length-1;++s)if(n=(n.mapValue.fields||{})[e.get(s)],!Kd(n))return null;return n=(n.mapValue.fields||{})[e.lastSegment()],n||null}}set(e,n){this.getFieldsMap(e.popLast())[e.lastSegment()]=lu(n)}setAll(e){let n=sn.emptyPath(),s={},a=[];e.forEach(((u,d)=>{if(!n.isImmediateParentOf(d)){const m=this.getFieldsMap(n);this.applyChanges(m,s,a),s={},a=[],n=d.popLast()}u?s[d.lastSegment()]=lu(u):a.push(d.lastSegment())}));const l=this.getFieldsMap(n);this.applyChanges(l,s,a)}delete(e){const n=this.field(e.popLast());Kd(n)&&n.mapValue.fields&&delete n.mapValue.fields[e.lastSegment()]}isEqual(e){return Zi(this.value,e.value)}getFieldsMap(e){let n=this.value;n.mapValue.fields||(n.mapValue={fields:{}});for(let s=0;s<e.length;++s){let a=n.mapValue.fields[e.get(s)];Kd(a)&&a.mapValue.fields||(a={mapValue:{fields:{}}},n.mapValue.fields[e.get(s)]=a),n=a}return n.mapValue.fields}applyChanges(e,n,s){sa(n,((a,l)=>e[a]=l));for(const a of s)delete e[a]}clone(){return new Dn(lu(this.value))}}function MN(t){const e=[];return sa(t.fields,((n,s)=>{const a=new sn([n]);if(Kd(s)){const l=MN(s.mapValue).fields;
vendor: 4,181 bytes, lines 1135-1175
1135if(l.length===0)e.push(a);else for(const u of l)e.push(a.child(u))}else e.push(a)})),new $n(e)}/** 1136 * @license 1137 * Copyright 2017 Google LLC 1138 * 1139 * Licensed under the Apache License, Version 2.0 (the "License"); 1140 * you may not use this file except in compliance with the License. 1141 * You may obtain a copy of the License at 1142 * 1143 * http://www.apache.org/licenses/LICENSE-2.0 1144 * 1145 * Unless required by applicable law or agreed to in writing, software 1146 * distributed under the License is distributed on an "AS IS" BASIS, 1147 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1148 * See the License for the specific language governing permissions and 1149 * limitations under the License. 1150 */class dn{constructor(e,n,s,a,l,u,d){this.key=e,this.documentType=n,this.version=s,this.readTime=a,this.createTime=l,this.data=u,this.documentState=d}static newInvalidDocument(e){return new dn(e,0,Ee.min(),Ee.min(),Ee.min(),Dn.empty(),0)}static newFoundDocument(e,n,s,a){return new dn(e,1,n,Ee.min(),s,a,0)}static newNoDocument(e,n){return new dn(e,2,n,Ee.min(),Ee.min(),Dn.empty(),0)}static newUnknownDocument(e,n){return new dn(e,3,n,Ee.min(),Ee.min(),Dn.empty(),2)}convertToFoundDocument(e,n){return!this.createTime.isEqual(Ee.min())||this.documentType!==2&&this.documentType!==0||(this.createTime=e),this.version=e,this.documentType=1,this.data=n,this.documentState=0,this}convertToNoDocument(e){return this.version=e,this.documentType=2,this.data=Dn.empty(),this.documentState=0,this}convertToUnknownDocument(e){return this.version=e,this.documentType=3,this.data=Dn.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=Ee.min(),this}setReadTime(e){return this.readTime=e,this}get hasLocalMutations(){return this.documentState===1}get hasCommittedMutations(){return this.documentState===2}get hasPendingWrites(){return this.hasLocalMutations||this.hasCommittedMutations}isValidDocument(){return this.documentType!==0}isFoundDocument(){return this.documentType===1}isNoDocument(){return this.documentType===2}isUnknownDocument(){return this.documentType===3}isEqual(e){return e instanceof dn&&this.key.isEqual(e.key)&&this.version.isEqual(e.version)&&this.documentType===e.documentType&&this.documentState===e.documentState&&this.data.isEqual(e.data)}mutableCopy(){return new dn(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return`Document(${this.key}, ${this.version}, ${JSON.stringify(this.data.value)}, {createTime: ${this.createTime}}), {documentType: ${this.documentType}}), {documentState: ${this.documentState}})`}}/** 1151 * @license 1152 * Copyright 2022 Google LLC 1153 * 1154 * Licensed under the Apache License, Version 2.0 (the "License"); 1155 * you may not use this file except in compliance with the License. 1156 * You may obtain a copy of the License at 1157 * 1158 * http://www.apache.org/licenses/LICENSE-2.0 1159 * 1160 * Unless required by applicable law or agreed to in writing, software 1161 * distributed under the License is distributed on an "AS IS" BASIS, 1162 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1163 * See the License for the specific language governing permissions and 1164 * limitations under the License. 1165 */class gf{constructor(e,n){this.position=e,this.inclusive=n}}function jT(t,e,n){let s=0;for(let a=0;a<t.position.length;a++){const l=e[a],u=t.position[a];if(l.field.isKeyField()?s=xe.comparator(xe.fromName(u.referenceValue),n.key):s=yl(u,n.data.field(l.field)),l.dir==="desc"&&(s*=-1),s!==0)break}return s}function RT(t,e){if(t===null)return e===null;if(e===null||t.inclusive!==e.inclusive||t.position.length!==e.position.length)return!1;for(let n=0;n<t.position.length;n++)if(!Zi(t.position[n],e.position[n]))return!1;return!0}/** 1166 * @license 1167 * Copyright 2022 Google LLC 1168 * 1169 * Licensed under the Apache License, Version 2.0 (the "License"); 1170 * you may not use this file except in compliance with the License. 1171 * You may obtain a copy of the License at 1172 * 1173 * http://www.apache.org/licenses/LICENSE-2.0 1174 * 1175 * Unless required by applicable law or agreed to in writing, softw
1175are 1176 * distributed under the License is distributed on an "AS IS" BASIS, 1177 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1178 * See the License for the specific language governing permissions and 1179 * limitations under the License. 1180 */class Su{constructor(e,n="asc"){this.field=e,this.dir=n}}function O5(t,e){return t.dir===e.dir&&t.field.isEqual(e.field)}/** 1181 * @license 1182 * Copyright 2022 Google LLC 1183 * 1184 * Licensed under the Apache License, Version 2.0 (the "License"); 1185 * you may not use this file except in compliance with the License. 1186 * You may obtain a copy of the License at 1187 * 1188 * http://www.apache.org/licenses/LICENSE-2.0 1189 * 1190 * Unless required by applicable law or agreed to in writing, software 1191 * distributed under the License is distributed on an "AS IS" BASIS, 1192 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1193 * See the License for the specific language governing permissions and 1194 * limitations under the License. 1195 */class LN{}class Dt extends LN{constructor(e,n,s){super(),this.field=e,this.op=n,this.value=s}static create(e,n,s){return e.isKeyField()?n==="in"||n==="not-in"?this.createKeyFieldInFilter(e,n,s):new V5(e,n,s):n==="array-contains"?new z5(e,s):n==="in"?new F5(e,s):n==="not-in"?new G5(e,s):n==="array-contains-any"?new q5(e,s):new Dt(e,n,s)}static createKeyFieldInFilter(e,n,s){return n==="in"?new U5(e,s):new B5(e,s)}matches(e){const n=e.data.field(this.field);return this.op==="!="?n!==null&&this.matchesComparison(yl(n,this.value)):n!==null&&ta(this.value)===ta(n)&&this.matchesComparison(yl(n,this.value))}matchesComparison(e){switch(this.op){case"<":return e<0;case"<=":return e<=0;case"==":return e===0;case"!=":return e!==0;case">":return e>0;case">=":return e>=0;default:return Te()}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class Ei extends LN{constructor(e,n){super(),this.filters=e,this.op=n,this.ae=null}static create(e,n){return new Ei(e,n)}matches(e){return ON(this)?this.filters.find((n=>!n.matches(e)))===void 0:this.filters.find((n=>n.matches(e)))!==void 0}getFlattenedFilters(){return this.ae!==null||(this.ae=this.filters.reduce(((e,n)=>e.concat(n.getFlattenedFilters())),[])),this.ae}getFilters(){return Object.assign([],this.filters)}}function ON(t){return t.op==="and"}function PN(t){return P5(t)&&ON(t)}function P5(t){for(const e of t.filters)if(e instanceof Ei)return!1;return!0}function qy(t){if(t instanceof Dt)return t.field.canonicalString()+t.op.toString()+xl(t.value);if(PN(t))return t.filters.map((e=>qy(e))).join(",");{const e=t.filters.map((n=>qy(n))).join(",");return`${t.op}(${e})`}}function VN(t,e){return t instanceof Dt?(function(s,a){return a instanceof Dt&&s.op===a.op&&s.field.isEqual(a.field)&&Zi(s.value,a.value)})(t,e):t instanceof Ei?(function(s,a){return a instanceof Ei&&s.op===a.op&&s.filters.length===a.filters.length?s.filters.reduce(((l,u,d)=>l&&VN(u,a.filters[d])),!0):!1})(t,e):void Te()}function UN(t){return t instanceof Dt?(function(n){return`${n.field.canonicalString()} ${n.op} ${xl(n.value)}`})(t):t instanceof Ei?(function(n){return n.op.toString()+" {"+n.getFilters().map(UN).join(" ,")+"}"})(t):"Filter"}class V5 extends Dt{constructor(e,n,s){super(e,n,s),this.key=xe.fromName(s.referenceValue)}matches(e){const n=xe.comparator(e.key,this.key);return this.matchesComparison(n)}}class U5 extends Dt{constructor(e,n){super(e,"in",n),this.keys=BN("in",n)}matches(e){return this.keys.some((n=>n.isEqual(e.key)))}}class B5 extends Dt{constructor(e,n){super(e,"not-in",n),this.keys=BN("not-in",n)}matches(e){return!this.keys.some((n=>n.isEqual(e.key)))}}function BN(t,e){var n;return(((n=e.arrayValue)===null||n===void 0?void 0:n.values)||[]).map((s=>xe.fromName(s.referenceValue)))}class z5 extends Dt{constructor(e,n){super(e,"array-contains",n)}matches(e){const n=e.data.field(this.field);return iv(n)&&Eu(n.arrayValue,this.value)}}class F5 extends Dt{constructor(e,n){super(e,"in",n)}matches(e){const n=e.data.field(this.field);return n!==null&&Eu(this.value.arrayValue,n)}}class G5 extends Dt{constructor(e,n){super(e,"not-in",n)}matches(e){if(Eu(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const n=e.data.field(this.field);return n!==null&&!Eu(this.value.arrayValue,n)}}class q5 extends Dt{constructor(e,n){super(e,"array-contains-any",n)}matches(e){const n=e.data.field(this.field);return!(!iv(n)||!n.arrayValue.values)&&n.arrayValue.values.some((s=>Eu(this.value.arrayValue,s)))}}/** 1196 * @license 1197 * Copyright 2019 Google LLC 1198 * 1199 * Licensed under the Apache License, Version 2.0 (the "License");
1200 * you may not use this file except in compliance with the License. 1201 * You may obtain a copy of the License at 1202 * 1203 * http://www.apache.org/licenses/LICENSE-2.0 1204 * 1205 * Unless required by applicable law or agreed to in writing, software 1206 * distributed under the License is distributed on an "AS IS" BASIS, 1207 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1208 * See the License for the specific language governing permissions and 1209 * limitations under the License. 1210 */class H5{constructor(e,n=null,s=[],a=[],l=null,u=null,d=null){this.path=e,this.collectionGroup=n,this.orderBy=s,this.filters=a,this.limit=l,this.startAt=u,this.endAt=d,this.ue=null}}function CT(t,e=null,n=[],s=[],a=null,l=null,u=null){return new H5(t,e,n,s,a,l,u)}function sv(t){const e=Ne(t);if(e.ue===null){let n=e.path.canonicalString();e.collectionGroup!==null&&(n+="|cg:"+e.collectionGroup),n+="|f:",n+=e.filters.map((s=>qy(s))).join(","),n+="|ob:",n+=e.orderBy.map((s=>(function(l){return l.field.canonicalString()+l.dir})(s))).join(","),Vf(e.limit)||(n+="|l:",n+=e.limit),e.startAt&&(n+="|lb:",n+=e.startAt.inclusive?"b:":"a:",n+=e.startAt.position.map((s=>xl(s))).join(",")),e.endAt&&(n+="|ub:",n+=e.endAt.inclusive?"a:":"b:",n+=e.endAt.position.map((s=>xl(s))).join(",")),e.ue=n}return e.ue}function rv(t,e){if(t.limit!==e.limit||t.orderBy.length!==e.orderBy.length)return!1;for(let n=0;n<t.orderBy.length;n++)if(!O5(t.orderBy[n],e.orderBy[n]))return!1;if(t.filters.length!==e.filters.length)return!1;for(let n=0;n<t.filters.length;n++)if(!VN(t.filters[n],e.filters[n]))return!1;return t.collectionGroup===e.collectionGroup&&!!t.path.isEqual(e.path)&&!!RT(t.startAt,e.startAt)&&RT(t.endAt,e.endAt)}function Hy(t){return xe.isDocumentKey(t.path)&&t.collectionGroup===null&&t.filters.length===0}/** 1211 * @license 1212 * Copyright 2017 Google LLC 1213 * 1214 * Licensed under the Apache License, Version 2.0 (the "License"); 1215 * you may not use this file except in compliance with the License. 1216 * You may obtain a copy of the License at 1217 * 1218 * http://www.apache.org/licenses/LICENSE-2.0 1219 * 1220 * Unless required by applicable law or agreed to in writing, software 1221 * distributed under the License is distributed on an "AS IS" BASIS, 1222 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1223 * See the License for the specific language governing permissions and 1224 * limitations under the License. 1225 */class Ol{constructor(e,n=null,s=[],a=[],l=null,u="F",d=null,m=null){this.path=e,this.collectionGroup=n,this.explicitOrderBy=s,this.filters=a,this.limit=l,this.limitType=u,this.startAt=d,this.endAt=m,this.ce=null,this.le=null,this.he=null,this.startAt,this.endAt}}function $5(t,e,n,s,a,l,u,d){return new Ol(t,e,n,s,a,l,u,d)}function av(t){return new Ol(t)}function IT(t){return t.filters.length===0&&t.limit===null&&t.startAt==null&&t.endAt==null&&(t.explicitOrderBy.length===0||t.explicitOrderBy.length===1&&t.explicitOrderBy[0].field.isKeyField())}function zN(t){return t.collectionGroup!==null}function cu(t){const e=Ne(t);if(e.ce===null){e.ce=[];const n=new Set;for(const l of e.explicitOrderBy)e.ce.push(l),n.add(l.field.canonicalString());const s=e.explicitOrderBy.length>0?e.explicitOrderBy[e.explicitOrderBy.length-1].dir:"asc";(function(u){let d=new Pt(sn.comparator);return u.filters.forEach((m=>{m.getFlattenedFilters().forEach((g=>{g.isInequality()&&(d=d.add(g.field))}))})),d})(e).forEach((l=>{n.has(l.canonicalString())||l.isKeyField()||e.ce.push(new Su(l,s))})),n.has(sn.keyField().canonicalString())||e.ce.push(new Su(sn.keyField(),s))}return e.ce}function Ki(t){const e=Ne(t);return e.le||(e.le=K5(e,cu(t))),e.le}function K5(t,e){if(t.limitType==="F")return CT(t.path,t.collectionGroup,e,t.filters,t.limit,t.startAt,t.endAt);{e=e.map((a=>{const l=a.dir==="desc"?"asc":"desc";return new Su(a.field,l)}));const n=t.endAt?new gf(t.endAt.position,t.endAt.inclusive):null,s=t.startAt?new gf(t.startAt.position,t.startAt.inclusive):null;return CT(t.path,t.collectionGroup,e,t.filters,t.limit,n,s)}}function $y(t,e){const n=t.filters.concat([e]);return new Ol(t.path,t.collectionGroup,t.explicitOrderBy.slice(),n,t.limit,t.limitType,t.startAt,t.endAt)}function Ky(t,e,n){return new Ol(t.path,t.collectionGroup,t.explicitOrderBy.slice(),t.filters.slice(),e,n,t.startAt,t.endAt)}function Bf(t,e){return rv(Ki(t),Ki(e))&&t.limitType===e.limitType}function FN(t){return`${sv(Ki(t))}|lt:${t.limitType}`}function Xo(t){return`Query(target=${(function(n){let s=n.path.canonicalString();return n.collectionGroup!==null&&(s+=" collectionGroup="+n.collectionGroup),n.filters.length>0&&(s+=`, filters: [${n.filters.map((a=>UN(a))).join(", ")}]`),Vf(n.limit)||(s+=", limit: "+n.limit),n.orderBy.length>0&&(s+=`, orderBy: [${n.orderBy.map((a=>(function(u){return`${u.field.canonicalString()} (${u.dir})`})(a))).join(", ")}]`),n.startAt&&(s+=", startAt: ",s+=n.startAt.inclusive?"b:":"a:",s+=n.startAt.position.map((a=>xl(a))).join(",")),n.endAt&&(s+=", endAt: ",s+=n.endAt.inclusive?"a:":"b:",s+=n.endAt.position.map((a=>xl(a))).join(",")),`Target(${s})`})(Ki(t))}; limitType=${t.limitType})`}
1225function zf(t,e){return e.isFoundDocument()&&(function(s,a){const l=a.key.path;return s.collectionGroup!==null?a.key.hasCollectionId(s.collectionGroup)&&s.path.isPrefixOf(l):xe.isDocumentKey(s.path)?s.path.isEqual(l):s.path.isImmediateParentOf(l)})(t,e)&&(function(s,a){for(const l of cu(s))if(!l.field.isKeyField()&&a.data.field(l.field)===null)return!1;return!0})(t,e)&&(function(s,a){for(const l of s.filters)if(!l.matches(a))return!1;return!0})(t,e)&&(function(s,a){return!(s.startAt&&!(function(u,d,m){const g=jT(u,d,m);return u.inclusive?g<=0:g<0})(s.startAt,cu(s),a)||s.endAt&&!(function(u,d,m){const g=jT(u,d,m);return u.inclusive?g>=0:g>0})(s.endAt,cu(s),a))})(t,e)}function Y5(t){return t.collectionGroup||(t.path.length%2==1?t.path.lastSegment():t.path.get(t.path.length-2))}function GN(t){return(e,n)=>{let s=!1;for(const a of cu(t)){const l=W5(a,e,n);if(l!==0)return l;s=s||a.field.isKeyField()}return 0}}function W5(t,e,n){const s=t.field.isKeyField()?xe.comparator(e.key,n.key):(function(l,u,d){const m=u.data.field(l),g=d.data.field(l);return m!==null&&g!==null?yl(m,g):Te()})(t.field,e,n);switch(t.dir){case"asc":return s;case"desc":return-1*s;default:return Te()}}/** 1226 * @license 1227 * Copyright 2017 Google LLC 1228 * 1229 * Licensed under the Apache License, Version 2.0 (the "License"); 1230 * you may not use this file except in compliance with the License. 1231 * You may obtain a copy of the License at 1232 * 1233 * http://www.apache.org/licenses/LICENSE-2.0 1234 * 1235 * Unless required by applicable law or agreed to in writing, software 1236 * distributed under the License is distributed on an "AS IS" BASIS, 1237 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1238 * See the License for the specific language governing permissions and 1239 * limitations under the License. 1240 */class eo{constructor(e,n){this.mapKeyFn=e,this.equalsFn=n,this.inner={},this.innerSize=0}get(e){const n=this.mapKeyFn(e),s=this.inner[n];if(s!==void 0){for(const[a,l]of s)if(this.equalsFn(a,e))return l}}has(e){return this.get(e)!==void 0}set(e,n){const s=this.mapKeyFn(e),a=this.inner[s];if(a===void 0)return this.inner[s]=[[e,n]],void this.innerSize++;for(let l=0;l<a.length;l++)if(this.equalsFn(a[l][0],e))return void(a[l]=[e,n]);a.push([e,n]),this.innerSize++}delete(e){const n=this.mapKeyFn(e),s=this.inner[n];if(s===void 0)return!1;for(let a=0;a<s.length;a++)if(this.equalsFn(s[a][0],e))return s.length===1?delete this.inner[n]:s.splice(a,1),this.innerSize--,!0;return!1}forEach(e){sa(this.inner,((n,s)=>{for(const[a,l]of s)e(a,l)}))}isEmpty(){return DN(this.inner)}size(){return this.innerSize}}/** 1241 * @license 1242 * Copyright 2017 Google LLC 1243 * 1244 * Licensed under the Apache License, Version 2.0 (the "License"); 1245 * you may not use this file except in compliance with the License. 1246 * You may obtain a copy of the License at 1247 * 1248 * http://www.apache.org/licenses/LICENSE-2.0 1249 * 1250 * Unless required by applicable law or agreed to in writing, software 1251 * distributed under the License is distributed on an "AS IS" BASIS, 1252 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1253 * See the License for the specific language governing permissions and 1254 * limitations under the License. 1255 */const Q5=new pt(xe.comparator);function zs(){return Q5}const qN=new pt(xe.comparator);function tu(...t){let e=qN;for(const n of t)e=e.insert(n.key,n);return e}function HN(t){let e=qN;return t.forEach(((n,s)=>e=e.insert(n,s.overlayedDocument))),e}function Fa(){return uu()}function $N(){return uu()}function uu(){return new eo((t=>t.toString()),((t,e)=>t.isEqual(e)))}const X5=new pt(xe.comparator),J5=new Pt(xe.comparator);function Ue(...t){let e=J5;for(const n of t)e=e.add(n);return e}const Z5=new Pt(Fe);function e6(){return Z5}/** 1256 * @license 1257 * Copyright 2020 Google LLC 1258 * 1259 * Licensed under the Apache License, Version 2.0 (the "License"); 1260 * you may not use this file except in compliance with the License. 1261 * You may obtain a copy of the License at 1262 * 1263 * http://www.apache.org/licenses/LICENSE-2.0 1264 * 1265 * Unless required by applicable law or agreed to in writing, software 1266 * distributed under the License is distributed on an "AS IS" BASIS, 1267 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1268 * See the License for the specific language governing permissions and 1269 * limitations under the License. 1270 */function ov(t,e){if(t.useProto3Json){if(isNaN(e))return{doubleValue:"NaN"};if(e===1/0)return{doubleValue:"Infinity"};if(e===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:pf(e)?"-0":e}}function KN(t){return{integerValue:""+t}}function t6(t,e){return R5(e)?KN(e):ov(t,e)}/** 1271 * @license 1272 * Copyright 2018 Google LLC 1273 * 1274 * Licensed under the Apache License, Version 2.0 (the "License");
1275 * you may not use this file except in compliance with the License. 1276 * You may obtain a copy of the License at 1277 * 1278 * http://www.apache.org/licenses/LICENSE-2.0 1279 * 1280 * Unless required by applicable law or agreed to in writing, software 1281 * distributed under the License is distributed on an "AS IS" BASIS, 1282 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1283 * See the License for the specific language governing permissions and 1284 * limitations under the License. 1285 */class Ff{constructor(){this._=void 0}}function n6(t,e,n){return t instanceof Au?(function(a,l){const u={fields:{__type__:{stringValue:"server_timestamp"},__local_write_time__:{timestampValue:{seconds:a.seconds,nanos:a.nanoseconds}}}};return l&&nv(l)&&(l=Uf(l)),l&&(u.fields.__previous_value__=l),{mapValue:u}})(n,e):t instanceof Nu?WN(t,e):t instanceof ju?QN(t,e):(function(a,l){const u=YN(a,l),d=DT(u)+DT(a.Pe);return Gy(u)&&Gy(a.Pe)?KN(d):ov(a.serializer,d)})(t,e)}function i6(t,e,n){return t instanceof Nu?WN(t,e):t instanceof ju?QN(t,e):n}function YN(t,e){return t instanceof yf?(function(s){return Gy(s)||(function(l){return!!l&&"doubleValue"in l})(s)})(e)?e:{integerValue:0}:null}class Au extends Ff{}class Nu extends Ff{constructor(e){super(),this.elements=e}}function WN(t,e){const n=XN(e);for(const s of t.elements)n.some((a=>Zi(a,s)))||n.push(s);return{arrayValue:{values:n}}}class ju extends Ff{constructor(e){super(),this.elements=e}}function QN(t,e){let n=XN(e);for(const s of t.elements)n=n.filter((a=>!Zi(a,s)));return{arrayValue:{values:n}}}class yf extends Ff{constructor(e,n){super(),this.serializer=e,this.Pe=n}}function DT(t){return Et(t.integerValue||t.doubleValue)}function XN(t){return iv(t)&&t.arrayValue.values?t.arrayValue.values.slice():[]}/** 1286 * @license 1287 * Copyright 2017 Google LLC 1288 * 1289 * Licensed under the Apache License, Version 2.0 (the "License"); 1290 * you may not use this file except in compliance with the License. 1291 * You may obtain a copy of the License at 1292 * 1293 * http://www.apache.org/licenses/LICENSE-2.0 1294 * 1295 * Unless required by applicable law or agreed to in writing, software 1296 * distributed under the License is distributed on an "AS IS" BASIS, 1297 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1298 * See the License for the specific language governing permissions and 1299 * limitations under the License. 1300 */class s6{constructor(e,n){this.field=e,this.transform=n}}function r6(t,e){return t.field.isEqual(e.field)&&(function(s,a){return s instanceof Nu&&a instanceof Nu||s instanceof ju&&a instanceof ju?gl(s.elements,a.elements,Zi):s instanceof yf&&a instanceof yf?Zi(s.Pe,a.Pe):s instanceof Au&&a instanceof Au})(t.transform,e.transform)}class a6{constructor(e,n){this.version=e,this.transformResults=n}}class _i{constructor(e,n){this.updateTime=e,this.exists=n}static none(){return new _i}static exists(e){return new _i(void 0,e)}static updateTime(e){return new _i(e)}get isNone(){return this.updateTime===void 0&&this.exists===void 0}isEqual(e){return this.exists===e.exists&&(this.updateTime?!!e.updateTime&&this.updateTime.isEqual(e.updateTime):!e.updateTime)}}function Yd(t,e){return t.updateTime!==void 0?e.isFoundDocument()&&e.version.isEqual(t.updateTime):t.exists===void 0||t.exists===e.isFoundDocument()}class Gf{}function JN(t,e){if(!t.hasLocalMutations||e&&e.fields.length===0)return null;if(e===null)return t.isNoDocument()?new lv(t.key,_i.none()):new Fu(t.key,t.data,_i.none());{const n=t.data,s=Dn.empty();let a=new Pt(sn.comparator);for(let l of e.fields)if(!a.has(l)){let u=n.field(l);u===null&&l.length>1&&(l=l.popLast(),u=n.field(l)),u===null?s.delete(l):s.set(l,u),a=a.add(l)}return new ra(t.key,s,new $n(a.toArray()),_i.none())}}function o6(t,e,n){t instanceof Fu?(function(a,l,u){const d=a.value.clone(),m=MT(a.fieldTransforms,l,u.transformResults);d.setAll(m),l.convertToFoundDocument(u.version,d).setHasCommittedMutations()})(t,e,n):t instanceof ra?(function(a,l,u){if(!Yd(a.precondition,l))return void l.convertToUnknownDocument(u.version);const d=MT(a.fieldTransforms,l,u.transformResults),m=l.data;m.setAll(ZN(a)),m.setAll(d),l.convertToFoundDocument(u.version,m).setHasCommittedMutations()})(t,e,n):(function(a,l,u){l.convertToNoDocument(u.version).setHasCommittedMutations()})(0,e,n)}function hu(t,e,n,s){return t instanceof Fu?(function(l,u,d,m){if(!Yd(l.precondition,u))return d;const g=l.value.clone(),x=LT(l.fieldTransforms,m,u);return g.setAll(x),u.convertToFoundDocument(u.version,g).setHasLocalMutations(),null})(t,e,n,s):t instanceof ra?(function(l,u,d,m){if(!Yd(l.precondition,u))return d;const g=LT(l.fieldTransforms,m,u),x=u.data;return x.setAll(ZN(l)),x.setAll(g),u.convertToFoundDocument(u.version,x).setHasLocalMutations(),d===null?null:d.unionWith(l.fieldMask.fields).unionWith(l.fieldTransforms.map((v=>v.field)))})(t,e,n,s):(function(l,u,d){return Yd(l.precondition,u)?(u.convertToNoDocument(u.version).setHasLocalMutations(),null):d})(t,e,n)}function l6(t,e){let n=null;for(const s of t.fieldTransforms){const a=e.data.field(s.field),l=YN(s.transform,a||null);l!=null&&(n===null&&(n=Dn.empty()),n.set(s.field,l))}return n||null}function kT(t,e){return t.type===e.type&&!!t.key.isEqual(e.key)&&!!t.precondition.isEqual(e.precondition)&&!!(function(s,a){return s===void 0&&a===void 0||!(!s||!a)&&gl(s,a,((l,u)=>r6(l,u)))})(t.fieldTransforms,e.fieldTransforms)&&(t.type===0?t.value.isEqual(e.value):t.type!==1||t.data.isEqual(e.data)&&t.fieldMask.isEqual(e.fieldMask))}class Fu extends Gf{constructor(e,n,s,a=[]){super(),this.key=e,this.value=n,this.prec
vendor: 4,508 bytes, lines 1300-1352
1300ondition=s,this.fieldTransforms=a,this.type=0}getFieldMask(){return null}}class ra extends Gf{constructor(e,n,s,a,l=[]){super(),this.key=e,this.data=n,this.fieldMask=s,this.precondition=a,this.fieldTransforms=l,this.type=1}getFieldMask(){return this.fieldMask}}function ZN(t){const e=new Map;return t.fieldMask.fields.forEach((n=>{if(!n.isEmpty()){const s=t.data.field(n);e.set(n,s)}})),e}function MT(t,e,n){const s=new Map;Qe(t.length===n.length);for(let a=0;a<n.length;a++){const l=t[a],u=l.transform,d=e.data.field(l.field);s.set(l.field,i6(u,d,n[a]))}return s}function LT(t,e,n){const s=new Map;for(const a of t){const l=a.transform,u=n.data.field(a.field);s.set(a.field,n6(l,u,e))}return s}class lv extends Gf{constructor(e,n){super(),this.key=e,this.precondition=n,this.type=2,this.fieldTransforms=[]}getFieldMask(){return null}}class c6 extends Gf{constructor(e,n){super(),this.key=e,this.precondition=n,this.type=3,this.fieldTransforms=[]}getFieldMask(){return null}}/** 1301 * @license 1302 * Copyright 2017 Google LLC 1303 * 1304 * Licensed under the Apache License, Version 2.0 (the "License"); 1305 * you may not use this file except in compliance with the License. 1306 * You may obtain a copy of the License at 1307 * 1308 * http://www.apache.org/licenses/LICENSE-2.0 1309 * 1310 * Unless required by applicable law or agreed to in writing, software 1311 * distributed under the License is distributed on an "AS IS" BASIS, 1312 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1313 * See the License for the specific language governing permissions and 1314 * limitations under the License. 1315 */class u6{constructor(e,n,s,a){this.batchId=e,this.localWriteTime=n,this.baseMutations=s,this.mutations=a}applyToRemoteDocument(e,n){const s=n.mutationResults;for(let a=0;a<this.mutations.length;a++){const l=this.mutations[a];l.key.isEqual(e.key)&&o6(l,e,s[a])}}applyToLocalView(e,n){for(const s of this.baseMutations)s.key.isEqual(e.key)&&(n=hu(s,e,n,this.localWriteTime));for(const s of this.mutations)s.key.isEqual(e.key)&&(n=hu(s,e,n,this.localWriteTime));return n}applyToLocalDocumentSet(e,n){const s=$N();return this.mutations.forEach((a=>{const l=e.get(a.key),u=l.overlayedDocument;let d=this.applyToLocalView(u,l.mutatedFields);d=n.has(a.key)?null:d;const m=JN(u,d);m!==null&&s.set(a.key,m),u.isValidDocument()||u.convertToNoDocument(Ee.min())})),s}keys(){return this.mutations.reduce(((e,n)=>e.add(n.key)),Ue())}isEqual(e){return this.batchId===e.batchId&&gl(this.mutations,e.mutations,((n,s)=>kT(n,s)))&&gl(this.baseMutations,e.baseMutations,((n,s)=>kT(n,s)))}}class cv{constructor(e,n,s,a){this.batch=e,this.commitVersion=n,this.mutationResults=s,this.docVersions=a}static from(e,n,s){Qe(e.mutations.length===s.length);let a=(function(){return X5})();const l=e.mutations;for(let u=0;u<l.length;u++)a=a.insert(l[u].key,s[u].version);return new cv(e,n,s,a)}}/** 1316 * @license 1317 * Copyright 2022 Google LLC 1318 * 1319 * Licensed under the Apache License, Version 2.0 (the "License"); 1320 * you may not use this file except in compliance with the License. 1321 * You may obtain a copy of the License at 1322 * 1323 * http://www.apache.org/licenses/LICENSE-2.0 1324 * 1325 * Unless required by applicable law or agreed to in writing, software 1326 * distributed under the License is distributed on an "AS IS" BASIS, 1327 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1328 * See the License for the specific language governing permissions and 1329 * limitations under the License. 1330 */class h6{constructor(e,n){this.largestBatchId=e,this.mutation=n}getKey(){return this.mutation.key}isEqual(e){return e!==null&&this.mutation===e.mutation}toString(){return`Overlay{ 1331 largestBatchId: ${this.largestBatchId}, 1332 mutation: ${this.mutation.toString()} 1333 }`}}/** 1334 * @license 1335 * Copyright 2017 Google LLC 1336 * 1337 * Licensed under the Apache License, Version 2.0 (the "License"); 1338 * you may not use this file except in compliance with the License. 1339 * You may obtain a copy of the License at 1340 * 1341 * http://www.apache.org/licenses/LICENSE-2.0 1342 * 1343 * Unless required by applicable law or agreed to in writing, software 1344 * distributed under the License is distributed on an "AS IS" BASIS, 1345 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1346 * See the License for the specific language governing permissions and 1347 * limitations under the License. 1348 */class d6{constructor(e,n){this.count=e,this.unchangedNames=n}}/** 1349 * @license 1350 * Copyright 2017 Google LLC 1351 * 1352 * Licensed under the Apache License, Version 2.0 (the "License");
1353 * you may not use this file except in compliance with the License. 1354 * You may obtain a copy of the License at 1355 * 1356 * http://www.apache.org/licenses/LICENSE-2.0 1357 * 1358 * Unless required by applicable law or agreed to in writing, software 1359 * distributed under the License is distributed on an "AS IS" BASIS, 1360 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1361 * See the License for the specific language governing permissions and 1362 * limitations under the License. 1363 */var Ct,Ge;function f6(t){switch(t){default:return Te();case ie.CANCELLED:case ie.UNKNOWN:case ie.DEADLINE_EXCEEDED:case ie.RESOURCE_EXHAUSTED:case ie.INTERNAL:case ie.UNAVAILABLE:case ie.UNAUTHENTICATED:return!1;case ie.INVALID_ARGUMENT:case ie.NOT_FOUND:case ie.ALREADY_EXISTS:case ie.PERMISSION_DENIED:case ie.FAILED_PRECONDITION:case ie.ABORTED:case ie.OUT_OF_RANGE:case ie.UNIMPLEMENTED:case ie.DATA_LOSS:return!0}}function e2(t){if(t===void 0)return Bs("GRPC error has no .code"),ie.UNKNOWN;switch(t){case Ct.OK:return ie.OK;case Ct.CANCELLED:return ie.CANCELLED;case Ct.UNKNOWN:return ie.UNKNOWN;case Ct.DEADLINE_EXCEEDED:return ie.DEADLINE_EXCEEDED;case Ct.RESOURCE_EXHAUSTED:return ie.RESOURCE_EXHAUSTED;case Ct.INTERNAL:return ie.INTERNAL;case Ct.UNAVAILABLE:return ie.UNAVAILABLE;case Ct.UNAUTHENTICATED:return ie.UNAUTHENTICATED;case Ct.INVALID_ARGUMENT:return ie.INVALID_ARGUMENT;case Ct.NOT_FOUND:return ie.NOT_FOUND;case Ct.ALREADY_EXISTS:return ie.ALREADY_EXISTS;case Ct.PERMISSION_DENIED:return ie.PERMISSION_DENIED;case Ct.FAILED_PRECONDITION:return ie.FAILED_PRECONDITION;case Ct.ABORTED:return ie.ABORTED;case Ct.OUT_OF_RANGE:return ie.OUT_OF_RANGE;case Ct.UNIMPLEMENTED:return ie.UNIMPLEMENTED;case Ct.DATA_LOSS:return ie.DATA_LOSS;default:return Te()}}(Ge=Ct||(Ct={}))[Ge.OK=0]="OK",Ge[Ge.CANCELLED=1]="CANCELLED",Ge[Ge.UNKNOWN=2]="UNKNOWN",Ge[Ge.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",Ge[Ge.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",Ge[Ge.NOT_FOUND=5]="NOT_FOUND",Ge[Ge.ALREADY_EXISTS=6]="ALREADY_EXISTS",Ge[Ge.PERMISSION_DENIED=7]="PERMISSION_DENIED",Ge[Ge.UNAUTHENTICATED=16]="UNAUTHENTICATED",Ge[Ge.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",Ge[Ge.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",Ge[Ge.ABORTED=10]="ABORTED",Ge[Ge.OUT_OF_RANGE=11]="OUT_OF_RANGE",Ge[Ge.UNIMPLEMENTED=12]="UNIMPLEMENTED",Ge[Ge.INTERNAL=13]="INTERNAL",Ge[Ge.UNAVAILABLE=14]="UNAVAILABLE",Ge[Ge.DATA_LOSS=15]="DATA_LOSS";/** 1364 * @license 1365 * Copyright 2023 Google LLC 1366 * 1367 * Licensed under the Apache License, Version 2.0 (the "License"); 1368 * you may not use this file except in compliance with the License. 1369 * You may obtain a copy of the License at 1370 * 1371 * http://www.apache.org/licenses/LICENSE-2.0 1372 * 1373 * Unless required by applicable law or agreed to in writing, software 1374 * distributed under the License is distributed on an "AS IS" BASIS, 1375 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1376 * See the License for the specific language governing permissions and 1377 * limitations under the License. 1378 */function m6(){return new TextEncoder}/** 1379 * @license 1380 * Copyright 2022 Google LLC 1381 * 1382 * Licensed under the Apache License, Version 2.0 (the "License"); 1383 * you may not use this file except in compliance with the License. 1384 * You may obtain a copy of the License at 1385 * 1386 * http://www.apache.org/licenses/LICENSE-2.0 1387 * 1388 * Unless required by applicable law or agreed to in writing, software 1389 * distributed under the License is distributed on an "AS IS" BASIS, 1390 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1391 * See the License for the specific language governing permissions and 1392 * limitations under the License. 1393 */const p6=new Ha([4294967295,4294967295],0);function OT(t){const e=m6().encode(t),n=new EN;return n.update(e),new Uint8Array(n.digest())}function PT(t){const e=new DataView(t.buffer),n=e.getUint32(0,!0),s=e.getUint32(4,!0),a=e.getUint32(8,!0),l=e.getUint32(12,!0);return[new Ha([n,s],0),new Ha([a,l],0)]}class uv{constructor(e,n,s){if(this.bitmap=e,this.padding=n,this.hashCount=s,n<0||n>=8)throw new nu(`Invalid padding: ${n}`);if(s<0)throw new nu(`Invalid hash count: ${s}`);if(e.length>0&&this.hashCount===0)throw new nu(`Invalid hash count: ${s}`);if(e.length===0&&n!==0)throw new nu(`Invalid padding when bitmap length is 0: ${n}`);this.Te=8*e.length-n,this.Ie=Ha.fromNumber(this.Te)}Ee(e,n,s){let a=e.add(n.multiply(Ha.fromNumber(s)));return a.compare(p6)===1&&(a=new Ha([a.getBits(0),a.getBits(1)],0)),a.modulo(this.Ie).toNumber()}de(e){return(this.bitmap[Math.floor(e/8)]&1<<e%8)!=0}mightContain(e){if(this.Te===0)return!1;const n=OT(e),[s,a]=PT(n);for(let l=0;l<this.hashCount;l++){const u=this.Ee(s,a,l);if(!this.de(u))return!1}return!0}static create(e,n,s){const a=e%8==0?0:8-e%8,l=new Uint8Array(Math.ceil(e/8)),u=new uv(l,a,n);
1393return s.forEach((d=>u.insert(d))),u}insert(e){if(this.Te===0)return;const n=OT(e),[s,a]=PT(n);for(let l=0;l<this.hashCount;l++){const u=this.Ee(s,a,l);this.Ae(u)}}Ae(e){const n=Math.floor(e/8),s=e%8;this.bitmap[n]|=1<<s}}class nu extends Error{constructor(){super(...arguments),this.name="BloomFilterError"}}/** 1394 * @license 1395 * Copyright 2017 Google LLC 1396 * 1397 * Licensed under the Apache License, Version 2.0 (the "License"); 1398 * you may not use this file except in compliance with the License. 1399 * You may obtain a copy of the License at 1400 * 1401 * http://www.apache.org/licenses/LICENSE-2.0 1402 * 1403 * Unless required by applicable law or agreed to in writing, software 1404 * distributed under the License is distributed on an "AS IS" BASIS, 1405 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1406 * See the License for the specific language governing permissions and 1407 * limitations under the License. 1408 */class qf{constructor(e,n,s,a,l){this.snapshotVersion=e,this.targetChanges=n,this.targetMismatches=s,this.documentUpdates=a,this.resolvedLimboDocuments=l}static createSynthesizedRemoteEventForCurrentChange(e,n,s){const a=new Map;return a.set(e,Gu.createSynthesizedTargetChangeForCurrentChange(e,n,s)),new qf(Ee.min(),a,new pt(Fe),zs(),Ue())}}class Gu{constructor(e,n,s,a,l){this.resumeToken=e,this.current=n,this.addedDocuments=s,this.modifiedDocuments=a,this.removedDocuments=l}static createSynthesizedTargetChangeForCurrentChange(e,n,s){return new Gu(s,n,Ue(),Ue(),Ue())}}/** 1409 * @license 1410 * Copyright 2017 Google LLC 1411 * 1412 * Licensed under the Apache License, Version 2.0 (the "License"); 1413 * you may not use this file except in compliance with the License. 1414 * You may obtain a copy of the License at 1415 * 1416 * http://www.apache.org/licenses/LICENSE-2.0 1417 * 1418 * Unless required by applicable law or agreed to in writing, software 1419 * distributed under the License is distributed on an "AS IS" BASIS, 1420 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1421 * See the License for the specific language governing permissions and 1422 * limitations under the License. 1423 */class Wd{constructor(e,n,s,a){this.Re=e,this.removedTargetIds=n,this.key=s,this.Ve=a}}class t2{constructor(e,n){this.targetId=e,this.me=n}}class n2{constructor(e,n,s=rn.EMPTY_BYTE_STRING,a=null){this.state=e,this.targetIds=n,this.resumeToken=s,this.cause=a}}class VT{constructor(){this.fe=0,this.ge=UT(),this.pe=rn.EMPTY_BYTE_STRING,this.ye=!1,this.we=!0}get current(){return this.ye}get resumeToken(){return this.pe}get Se(){return this.fe!==0}get be(){return this.we}De(e){e.approximateByteSize()>0&&(this.we=!0,this.pe=e)}ve(){let e=Ue(),n=Ue(),s=Ue();return this.ge.forEach(((a,l)=>{switch(l){case 0:e=e.add(a);break;case 2:n=n.add(a);break;case 1:s=s.add(a);break;default:Te()}})),new Gu(this.pe,this.ye,e,n,s)}Ce(){this.we=!1,this.ge=UT()}Fe(e,n){this.we=!0,this.ge=this.ge.insert(e,n)}Me(e){this.we=!0,this.ge=this.ge.remove(e)}xe(){this.fe+=1}Oe(){this.fe-=1,Qe(this.fe>=0)}Ne(){this.we=!0,this.ye=!0}}class g6{constructor(e){this.Le=e,this.Be=new Map,this.ke=zs(),this.qe=Md(),this.Qe=Md(),this.Ke=new pt(Fe)}$e(e){for(const n of e.Re)e.Ve&&e.Ve.isFoundDocument()?this.Ue(n,e.Ve):this.We(n,e.key,e.Ve);for(const n of e.removedTargetIds)this.We(n,e.key,e.Ve)}Ge(e){this.forEachTarget(e,(n=>{const s=this.ze(n);switch(e.state){case 0:this.je(n)&&s.De(e.resumeToken);break;case 1:s.Oe(),s.Se||s.Ce(),s.De(e.resumeToken);break;case 2:s.Oe(),s.Se||this.removeTarget(n);break;case 3:this.je(n)&&(s.Ne(),s.De(e.resumeToken));break;case 4:this.je(n)&&(this.He(n),s.De(e.resumeToken));break;default:Te()}}))}forEachTarget(e,n){e.targetIds.length>0?e.targetIds.forEach(n):this.Be.forEach(((s,a)=>{this.je(a)&&n(a)}))}Je(e){const n=e.targetId,s=e.me.count,a=this.Ye(n);if(a){const l=a.target;if(Hy(l))if(s===0){const u=new xe(l.path);this.We(n,u,dn.newNoDocument(u,Ee.min()))}else Qe(s===1);else{const u=this.Ze(n);if(u!==s){const d=this.Xe(e),m=d?this.et(d,e,u):1;if(m!==0){this.He(n);const g=m===2?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch";this.Ke=this.Ke.insert(n,g)}}}}}Xe(e){const n=e.me.unchangedNames;if(!n||!n.bits)return null;const{bits:{bitmap:s="",padding:a=0},hashCount:l=0}=n;let u,d;try{u=ea(s).toUint8Array()}catch(m){if(m instanceof kN)return pl("Decoding the base64 bloom filter in existence filter failed ("+m.message+"); ignoring the bloom filter and falling back to full re-query."),null;throw m}try{d=new uv(u,a,l)}catch(m){return pl(m instanceof nu?"BloomFilter error: ":"Applying bloom filter failed: ",m),null}return d.Te===0?null:d}et(e,n,s){return n.me.count===s-this.rt(e,n.targetId)?0:2}rt(e,n){const s=this.Le.getRemoteKeysForTarget(n);let a=0;
1423return s.forEach((l=>{const u=this.Le.nt(),d=`projects/${u.projectId}/databases/${u.database}/documents/${l.path.canonicalString()}`;e.mightContain(d)||(this.We(n,l,null),a++)})),a}it(e){const n=new Map;this.Be.forEach(((l,u)=>{const d=this.Ye(u);if(d){if(l.current&&Hy(d.target)){const m=new xe(d.target.path);this.st(m).has(u)||this.ot(u,m)||this.We(u,m,dn.newNoDocument(m,e))}l.be&&(n.set(u,l.ve()),l.Ce())}}));let s=Ue();this.Qe.forEach(((l,u)=>{let d=!0;u.forEachWhile((m=>{const g=this.Ye(m);return!g||g.purpose==="TargetPurposeLimboResolution"||(d=!1,!1)})),d&&(s=s.add(l))})),this.ke.forEach(((l,u)=>u.setReadTime(e)));const a=new qf(e,n,this.Ke,this.ke,s);return this.ke=zs(),this.qe=Md(),this.Qe=Md(),this.Ke=new pt(Fe),a}Ue(e,n){if(!this.je(e))return;const s=this.ot(e,n.key)?2:0;this.ze(e).Fe(n.key,s),this.ke=this.ke.insert(n.key,n),this.qe=this.qe.insert(n.key,this.st(n.key).add(e)),this.Qe=this.Qe.insert(n.key,this._t(n.key).add(e))}We(e,n,s){if(!this.je(e))return;const a=this.ze(e);this.ot(e,n)?a.Fe(n,1):a.Me(n),this.Qe=this.Qe.insert(n,this._t(n).delete(e)),this.Qe=this.Qe.insert(n,this._t(n).add(e)),s&&(this.ke=this.ke.insert(n,s))}removeTarget(e){this.Be.delete(e)}Ze(e){const n=this.ze(e).ve();return this.Le.getRemoteKeysForTarget(e).size+n.addedDocuments.size-n.removedDocuments.size}xe(e){this.ze(e).xe()}ze(e){let n=this.Be.get(e);return n||(n=new VT,this.Be.set(e,n)),n}_t(e){let n=this.Qe.get(e);return n||(n=new Pt(Fe),this.Qe=this.Qe.insert(e,n)),n}st(e){let n=this.qe.get(e);return n||(n=new Pt(Fe),this.qe=this.qe.insert(e,n)),n}je(e){const n=this.Ye(e)!==null;return n||he("WatchChangeAggregator","Detected inactive target",e),n}Ye(e){const n=this.Be.get(e);return n&&n.Se?null:this.Le.ut(e)}He(e){this.Be.set(e,new VT),this.Le.getRemoteKeysForTarget(e).forEach((n=>{this.We(e,n,null)}))}ot(e,n){return this.Le.getRemoteKeysForTarget(e).has(n)}}function Md(){return new pt(xe.comparator)}function UT(){return new pt(xe.comparator)}const y6={asc:"ASCENDING",desc:"DESCENDING"},x6={"<":"LESS_THAN","<=":"LESS_THAN_OR_EQUAL",">":"GREATER_THAN",">=":"GREATER_THAN_OR_EQUAL","==":"EQUAL","!=":"NOT_EQUAL","array-contains":"ARRAY_CONTAINS",in:"IN","not-in":"NOT_IN","array-contains-any":"ARRAY_CONTAINS_ANY"},v6={and:"AND",or:"OR"};class b6{constructor(e,n){this.databaseId=e,this.useProto3Json=n}}function Yy(t,e){return t.useProto3Json||Vf(e)?e:{value:e}}function xf(t,e){return t.useProto3Json?`${new Date(1e3*e.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+e.nanoseconds).slice(-9)}Z`:{seconds:""+e.seconds,nanos:e.nanoseconds}}function i2(t,e){return t.useProto3Json?e.toBase64():e.toUint8Array()}function w6(t,e){return xf(t,e.toTimestamp())}function Yi(t){return Qe(!!t),Ee.fromTimestamp((function(n){const s=Zr(n);return new Ot(s.seconds,s.nanos)})(t))}function hv(t,e){return Wy(t,e).canonicalString()}function Wy(t,e){const n=(function(a){return new lt(["projects",a.projectId,"databases",a.database])})(t).child("documents");return e===void 0?n:n.child(e)}function s2(t){const e=lt.fromString(t);return Qe(c2(e)),e}function Qy(t,e){return hv(t.databaseId,e.path)}function Xg(t,e){const n=s2(e);if(n.get(1)!==t.databaseId.projectId)throw new de(ie.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+n.get(1)+" vs "+t.databaseId.projectId);if(n.get(3)!==t.databaseId.database)throw new de(ie.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+n.get(3)+" vs "+t.databaseId.database);return new xe(a2(n))}function r2(t,e){return hv(t.databaseId,e)}function _6(t){const e=s2(t);return e.length===4?lt.emptyPath():a2(e)}function Xy(t){return new lt(["projects",t.databaseId.projectId,"databases",t.databaseId.database]).canonicalString()}function a2(t){return Qe(t.length>4&&t.get(4)==="documents"),t.popFirst(5)}function BT(t,e,n){return{name:Qy(t,e),fields:n.value.mapValue.fields}}function T6(t,e){let n;if("targetChange"in e){e.targetChange;const s=(function(g){return g==="NO_CHANGE"?0:g==="ADD"?1:g==="REMOVE"?2:g==="CURRENT"?3:g==="RESET"?4:Te()})(e.targetChange.targetChangeType||"NO_CHANGE"),a=e.targetChange.targetIds||[],l=(function(g,x){return g.useProto3Json?(Qe(x===void 0||typeof x=="str
1423ing"),rn.fromBase64String(x||"")):(Qe(x===void 0||x instanceof Buffer||x instanceof Uint8Array),rn.fromUint8Array(x||new Uint8Array))})(t,e.targetChange.resumeToken),u=e.targetChange.cause,d=u&&(function(g){const x=g.code===void 0?ie.UNKNOWN:e2(g.code);return new de(x,g.message||"")})(u);n=new n2(s,a,l,d||null)}else if("documentChange"in e){e.documentChange;const s=e.documentChange;s.document,s.document.name,s.document.updateTime;const a=Xg(t,s.document.name),l=Yi(s.document.updateTime),u=s.document.createTime?Yi(s.document.createTime):Ee.min(),d=new Dn({mapValue:{fields:s.document.fields}}),m=dn.newFoundDocument(a,l,u,d),g=s.targetIds||[],x=s.removedTargetIds||[];n=new Wd(g,x,m.key,m)}else if("documentDelete"in e){e.documentDelete;const s=e.documentDelete;s.document;const a=Xg(t,s.document),l=s.readTime?Yi(s.readTime):Ee.min(),u=dn.newNoDocument(a,l),d=s.removedTargetIds||[];n=new Wd([],d,u.key,u)}else if("documentRemove"in e){e.documentRemove;const s=e.documentRemove;s.document;const a=Xg(t,s.document),l=s.removedTargetIds||[];n=new Wd([],l,a,null)}else{if(!("filter"in e))return Te();{e.filter;const s=e.filter;s.targetId;const{count:a=0,unchangedNames:l}=s,u=new d6(a,l),d=s.targetId;n=new t2(d,u)}}return n}function E6(t,e){let n;if(e instanceof Fu)n={update:BT(t,e.key,e.value)};else if(e instanceof lv)n={delete:Qy(t,e.key)};else if(e instanceof ra)n={update:BT(t,e.key,e.data),updateMask:k6(e.fieldMask)};else{if(!(e instanceof c6))return Te();n={verify:Qy(t,e.key)}}return e.fieldTransforms.length>0&&(n.updateTransforms=e.fieldTransforms.map((s=>(function(l,u){const d=u.transform;if(d instanceof Au)return{fieldPath:u.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(d instanceof Nu)return{fieldPath:u.field.canonicalString(),appendMissingElements:{values:d.elements}};if(d instanceof ju)return{fieldPath:u.field.canonicalString(),removeAllFromArray:{values:d.elements}};if(d instanceof yf)return{fieldPath:u.field.canonicalString(),increment:d.Pe};throw Te()})(0,s)))),e.precondition.isNone||(n.currentDocument=(function(a,l){return l.updateTime!==void 0?{updateTime:w6(a,l.updateTime)}:l.exists!==void 0?{exists:l.exists}:Te()})(t,e.precondition)),n}function S6(t,e){return t&&t.length>0?(Qe(e!==void 0),t.map((n=>(function(a,l){let u=a.updateTime?Yi(a.updateTime):Yi(l);return u.isEqual(Ee.min())&&(u=Yi(l)),new a6(u,a.transformResults||[])})(n,e)))):[]}function A6(t,e){return{documents:[r2(t,e.path)]}}function N6(t,e){const n={structuredQuery:{}},s=e.path;let a;e.collectionGroup!==null?(a=s,n.structuredQuery.from=[{collectionId:e.collectionGroup,allDescendants:!0}]):(a=s.popLast(),n.structuredQuery.from=[{collectionId:s.lastSegment()}]),n.parent=r2(t,a);const l=(function(g){if(g.length!==0)return l2(Ei.create(g,"and"))})(e.filters);l&&(n.structuredQuery.where=l);const u=(function(g){if(g.length!==0)return g.map((x=>(function(T){return{field:Jo(T.field),direction:C6(T.dir)}})(x)))})(e.orderBy);u&&(n.structuredQuery.orderBy=u);const d=Yy(t,e.limit);return d!==null&&(n.structuredQuery.limit=d),e.startAt&&(n.structuredQuery.startAt=(function(g){return{before:g.inclusive,values:g.position}})(e.startAt)),e.endAt&&(n.structuredQuery.endAt=(function(g){return{before:!g.inclusive,values:g.position}})(e.endAt)),{ct:n,parent:a}}function j6(t){let e=_6(t.parent);const n=t.structuredQuery,s=n.from?n.from.length:0;let a=null;if(s>0){Qe(s===1);const x=n.from[0];x.allDescendants?a=x.collectionId:e=e.child(x.collectionId)}let l=[];n.where&&(l=(function(v){const T=o2(v);return T instanceof Ei&&PN(T)?T.getFilters():[T]})(n.where));let u=[];n.orderBy&&(u=(function(v){return v.map((T=>(function(C){return new Su(Zo(C.field),(function(R){switch(R){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}})(C.direction))})(T)))})(n.orderBy));let d=null;n.limit&&(d=(function(v){let T;return T=typeof v=="object"?v.value:v,Vf(T)?null:T})(n.limit));let m=null;n.startAt&&(m=(function(v){const T=!!v.before,E=v.values||[];return new gf(E,T)})(n.startAt));let g=null;return n.endAt&&(g=(function(v){const T=!v.before,E=v.values||[];return new gf(E,T)})(n.endAt)),$5(e,a,u,l,d,"F",m,g)}function R6(t,e){const n=(function(a){switch(a){case"TargetPurposeListen":return null;case"TargetPurposeExistenceFilterMismatch":return"existence-filter-mismatch";case"TargetPurposeExistenceFilterMismatchBloom":return"existence-filter-mismatch-bloom";case"TargetPurposeLimboResolution":return"limbo-document";default:return Te()}})(e.purpose);return n==null?null:{"goog-listen-tags":n}}function o2(t){return t.unaryFilter!==void 0?(function(n){switch(n.unaryFilter.op){case"IS_NAN":const s=Zo(n.unaryFilter.field);return Dt.create(s,"==",{doubleValue:NaN});case"IS_NULL":const a=Zo(n.unaryFilter.field);return Dt.create(a,"==",{nullValue:"NULL_VALUE"});
1423case"IS_NOT_NAN":const l=Zo(n.unaryFilter.field);return Dt.create(l,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const u=Zo(n.unaryFilter.field);return Dt.create(u,"!=",{nullValue:"NULL_VALUE"});default:return Te()}})(t):t.fieldFilter!==void 0?(function(n){return Dt.create(Zo(n.fieldFilter.field),(function(a){switch(a){case"EQUAL":return"==";case"NOT_EQUAL":return"!=";case"GREATER_THAN":return">";case"GREATER_THAN_OR_EQUAL":return">=";case"LESS_THAN":return"<";case"LESS_THAN_OR_EQUAL":return"<=";case"ARRAY_CONTAINS":return"array-contains";case"IN":return"in";case"NOT_IN":return"not-in";case"ARRAY_CONTAINS_ANY":return"array-contains-any";default:return Te()}})(n.fieldFilter.op),n.fieldFilter.value)})(t):t.compositeFilter!==void 0?(function(n){return Ei.create(n.compositeFilter.filters.map((s=>o2(s))),(function(a){switch(a){case"AND":return"and";case"OR":return"or";default:return Te()}})(n.compositeFilter.op))})(t):Te()}function C6(t){return y6[t]}function I6(t){return x6[t]}function D6(t){return v6[t]}function Jo(t){return{fieldPath:t.canonicalString()}}function Zo(t){return sn.fromServerFormat(t.fieldPath)}function l2(t){return t instanceof Dt?(function(n){if(n.op==="=="){if(NT(n.value))return{unaryFilter:{field:Jo(n.field),op:"IS_NAN"}};if(AT(n.value))return{unaryFilter:{field:Jo(n.field),op:"IS_NULL"}}}else if(n.op==="!="){if(NT(n.value))return{unaryFilter:{field:Jo(n.field),op:"IS_NOT_NAN"}};if(AT(n.value))return{unaryFilter:{field:Jo(n.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:Jo(n.field),op:I6(n.op),value:n.value}}})(t):t instanceof Ei?(function(n){const s=n.getFilters().map((a=>l2(a)));return s.length===1?s[0]:{compositeFilter:{op:D6(n.op),filters:s}}})(t):Te()}function k6(t){const e=[];return t.fields.forEach((n=>e.push(n.canonicalString()))),{fieldPaths:e}}function c2(t){return t.length>=4&&t.get(0)==="projects"&&t.get(2)==="databases"}/** 1424 * @license 1425 * Copyright 2017 Google LLC 1426 * 1427 * Licensed under the Apache License, Version 2.0 (the "License"); 1428 * you may not use this file except in compliance with the License. 1429 * You may obtain a copy of the License at 1430 * 1431 * http://www.apache.org/licenses/LICENSE-2.0 1432 * 1433 * Unless required by applicable law or agreed to in writing, software 1434 * distributed under the License is distributed on an "AS IS" BASIS, 1435 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1436 * See the License for the specific language governing permissions and 1437 * limitations under the License. 1438 */class Gr{constructor(e,n,s,a,l=Ee.min(),u=Ee.min(),d=rn.EMPTY_BYTE_STRING,m=null){this.target=e,this.targetId=n,this.purpose=s,this.sequenceNumber=a,this.snapshotVersion=l,this.lastLimboFreeSnapshotVersion=u,this.resumeToken=d,this.expectedCount=m}withSequenceNumber(e){return new Gr(this.target,this.targetId,this.purpose,e,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(e,n){return new Gr(this.target,this.targetId,this.purpose,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,e,null)}withExpectedCount(e){return new Gr(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,e)}withLastLimboFreeSnapshotVersion(e){return new Gr(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,e,this.resumeToken,this.expectedCount)}}/** 1439 * @license 1440 * Copyright 2017 Google LLC 1441 * 1442 * Licensed under the Apache License, Version 2.0 (the "License"); 1443 * you may not use this file except in compliance with the License. 1444 * You may obtain a copy of the License at 1445 * 1446 * http://www.apache.org/licenses/LICENSE-2.0 1447 * 1448 * Unless required by applicable law or agreed to in writing, software 1449 * distributed under the License is distributed on an "AS IS" BASIS, 1450 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1451 * See the License for the specific language governing permissions and 1452 * limitations under the License. 1453 */class M6{constructor(e){this.ht=e}}function L6(t){const e=j6({parent:t.parent,structuredQuery:t.structuredQuery});return t.limitType==="LAST"?Ky(e,e.limit,"L"):e}/** 1454 * @license 1455 * Copyright 2019 Google LLC 1456 * 1457 * Licensed under the Apache License, Version 2.0 (the "License");
1458 * you may not use this file except in compliance with the License. 1459 * You may obtain a copy of the License at 1460 * 1461 * http://www.apache.org/licenses/LICENSE-2.0 1462 * 1463 * Unless required by applicable law or agreed to in writing, software 1464 * distributed under the License is distributed on an "AS IS" BASIS, 1465 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1466 * See the License for the specific language governing permissions and 1467 * limitations under the License. 1468 */class O6{constructor(){this.ln=new P6}addToCollectionParentIndex(e,n){return this.ln.add(n),se.resolve()}getCollectionParents(e,n){return se.resolve(this.ln.getEntries(n))}addFieldIndex(e,n){return se.resolve()}deleteFieldIndex(e,n){return se.resolve()}deleteAllFieldIndexes(e){return se.resolve()}createTargetIndexes(e,n){return se.resolve()}getDocumentsMatchingTarget(e,n){return se.resolve(null)}getIndexType(e,n){return se.resolve(0)}getFieldIndexes(e,n){return se.resolve([])}getNextCollectionGroupToUpdate(e){return se.resolve(null)}getMinOffset(e,n){return se.resolve(Jr.min())}getMinOffsetFromCollectionGroup(e,n){return se.resolve(Jr.min())}updateCollectionGroup(e,n,s){return se.resolve()}updateIndexEntries(e,n){return se.resolve()}}class P6{constructor(){this.index={}}add(e){const n=e.lastSegment(),s=e.popLast(),a=this.index[n]||new Pt(lt.comparator),l=!a.has(s);return this.index[n]=a.add(s),l}has(e){const n=e.lastSegment(),s=e.popLast(),a=this.index[n];return a&&a.has(s)}getEntries(e){return(this.index[e]||new Pt(lt.comparator)).toArray()}}/** 1469 * @license 1470 * Copyright 2018 Google LLC 1471 * 1472 * Licensed under the Apache License, Version 2.0 (the "License"); 1473 * you may not use this file except in compliance with the License. 1474 * You may obtain a copy of the License at 1475 * 1476 * http://www.apache.org/licenses/LICENSE-2.0 1477 * 1478 * Unless required by applicable law or agreed to in writing, software 1479 * distributed under the License is distributed on an "AS IS" BASIS, 1480 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1481 * See the License for the specific language governing permissions and 1482 * limitations under the License. 1483 */const zT={didRun:!1,sequenceNumbersCollected:0,targetsRemoved:0,documentsRemoved:0};class In{static withCacheSize(e){return new In(e,In.DEFAULT_COLLECTION_PERCENTILE,In.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}constructor(e,n,s){this.cacheSizeCollectionThreshold=e,this.percentileToCollect=n,this.maximumSequenceNumbersToCollect=s}}/** 1484 * @license 1485 * Copyright 2017 Google LLC 1486 * 1487 * Licensed under the Apache License, Version 2.0 (the "License"); 1488 * you may not use this file except in compliance with the License. 1489 * You may obtain a copy of the License at 1490 * 1491 * http://www.apache.org/licenses/LICENSE-2.0 1492 * 1493 * Unless required by applicable law or agreed to in writing, software 1494 * distributed under the License is distributed on an "AS IS" BASIS, 1495 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1496 * See the License for the specific language governing permissions and 1497 * limitations under the License. 1498 */In.DEFAULT_COLLECTION_PERCENTILE=10,In.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,In.DEFAULT=new In(41943040,In.DEFAULT_COLLECTION_PERCENTILE,In.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),In.DISABLED=new In(-1,0,0);/** 1499 * @license 1500 * Copyright 2017 Google LLC 1501 * 1502 * Licensed under the Apache License, Version 2.0 (the "License"); 1503 * you may not use this file except in compliance with the License. 1504 * You may obtain a copy of the License at 1505 * 1506 * http://www.apache.org/licenses/LICENSE-2.0 1507 * 1508 * Unless required by applicable law or agreed to in writing, software 1509 * distributed under the License is distributed on an "AS IS" BASIS, 1510 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1511 * See the License for the specific language governing permissions and 1512 * limitations under the License. 1513 */class vl{constructor(e){this.kn=e}next(){return this.kn+=2,this.kn}static qn(){return new vl(0)}static Qn(){return new vl(-1)}}/** 1514 * @license 1515 * Copyright 2020 Google LLC 1516 * 1517 * Licensed under the Apache License, Version 2.0 (the "License");
1518 * you may not use this file except in compliance with the License. 1519 * You may obtain a copy of the License at 1520 * 1521 * http://www.apache.org/licenses/LICENSE-2.0 1522 * 1523 * Unless required by applicable law or agreed to in writing, software 1524 * distributed under the License is distributed on an "AS IS" BASIS, 1525 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1526 * See the License for the specific language governing permissions and 1527 * limitations under the License. 1528 */function FT([t,e],[n,s]){const a=Fe(t,n);return a===0?Fe(e,s):a}class V6{constructor(e){this.Gn=e,this.buffer=new Pt(FT),this.zn=0}jn(){return++this.zn}Hn(e){const n=[e,this.jn()];if(this.buffer.size<this.Gn)this.buffer=this.buffer.add(n);else{const s=this.buffer.last();FT(n,s)<0&&(this.buffer=this.buffer.delete(s).add(n))}}get maxValue(){return this.buffer.last()[0]}}class U6{constructor(e,n,s){this.garbageCollector=e,this.asyncQueue=n,this.localStore=s,this.Jn=null}start(){this.garbageCollector.params.cacheSizeCollectionThreshold!==-1&&this.Yn(6e4)}stop(){this.Jn&&(this.Jn.cancel(),this.Jn=null)}get started(){return this.Jn!==null}Yn(e){he("LruGarbageCollector",`Garbage collection scheduled in ${e}ms`),this.Jn=this.asyncQueue.enqueueAfterDelay("lru_garbage_collection",e,(async()=>{this.Jn=null;try{await this.localStore.collectGarbage(this.garbageCollector)}catch(n){Ll(n)?he("LruGarbageCollector","Ignoring IndexedDB error during garbage collection: ",n):await Ml(n)}await this.Yn(3e5)}))}}class B6{constructor(e,n){this.Zn=e,this.params=n}calculateTargetCount(e,n){return this.Zn.Xn(e).next((s=>Math.floor(n/100*s)))}nthSequenceNumber(e,n){if(n===0)return se.resolve(Pf.oe);const s=new V6(n);return this.Zn.forEachTarget(e,(a=>s.Hn(a.sequenceNumber))).next((()=>this.Zn.er(e,(a=>s.Hn(a))))).next((()=>s.maxValue))}removeTargets(e,n,s){return this.Zn.removeTargets(e,n,s)}removeOrphanedDocuments(e,n){return this.Zn.removeOrphanedDocuments(e,n)}collect(e,n){return this.params.cacheSizeCollectionThreshold===-1?(he("LruGarbageCollector","Garbage collection skipped; disabled"),se.resolve(zT)):this.getCacheSize(e).next((s=>s<this.params.cacheSizeCollectionThreshold?(he("LruGarbageCollector",`Garbage collection skipped; Cache size ${s} is lower than threshold ${this.params.cacheSizeCollectionThreshold}`),zT):this.tr(e,n)))}getCacheSize(e){return this.Zn.getCacheSize(e)}tr(e,n){let s,a,l,u,d,m,g;const x=Date.now();return this.calculateTargetCount(e,this.params.percentileToCollect).next((v=>(v>this.params.maximumSequenceNumbersToCollect?(he("LruGarbageCollector",`Capping sequence numbers to collect down to the maximum of ${this.params.maximumSequenceNumbersToCollect} from ${v}`),a=this.params.maximumSequenceNumbersToCollect):a=v,u=Date.now(),this.nthSequenceNumber(e,a)))).next((v=>(s=v,d=Date.now(),this.removeTargets(e,s,n)))).next((v=>(l=v,m=Date.now(),this.removeOrphanedDocuments(e,s)))).next((v=>(g=Date.now(),Qo()<=Ve.DEBUG&&he("LruGarbageCollector",`LRU Garbage Collection 1529 Counted targets in ${u-x}ms 1530 Determined least recently used ${a} in `+(d-u)+`ms 1531 Removed ${l} targets in `+(m-d)+`ms 1532 Removed ${v} documents in `+(g-m)+`ms 1533Total Duration: ${g-x}ms`),se.resolve({didRun:!0,sequenceNumbersCollected:a,targetsRemoved:l,documentsRemoved:v}))))}}function z6(t,e){return new B6(t,e)}/** 1534 * @license 1535 * Copyright 2017 Google LLC 1536 * 1537 * Licensed under the Apache License, Version 2.0 (the "License"); 1538 * you may not use this file except in compliance with the License. 1539 * You may obtain a copy of the License at 1540 * 1541 * http://www.apache.org/licenses/LICENSE-2.0 1542 * 1543 * Unless required by applicable law or agreed to in writing, software 1544 * distributed under the License is distributed on an "AS IS" BASIS, 1545 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1546 * See the License for the specific language governing permissions and 1547 * limitations under the License. 1548 */class F6{constructor(){this.changes=new eo((e=>e.toString()),((e,n)=>e.isEqual(n))),this.changesApplied=!1}addEntry(e){this.assertNotApplied(),this.changes.set(e.key,e)}removeEntry(e,n){this.assertNotApplied(),this.changes.set(e,dn.newInvalidDocument(e).setReadTime(n))}getEntry(e,n){this.assertNotApplied();const s=this.changes.get(n);return s!==void 0?se.resolve(s):this.getFromCache(e,n)}getEntries(e,n){return this.getAllFromCache(e,n)}apply(e){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(e)}
1548assertNotApplied(){}}/** 1549 * @license 1550 * Copyright 2017 Google LLC 1551 * 1552 * Licensed under the Apache License, Version 2.0 (the "License"); 1553 * you may not use this file except in compliance with the License. 1554 * You may obtain a copy of the License at 1555 * 1556 * http://www.apache.org/licenses/LICENSE-2.0 1557 * 1558 * Unless required by applicable law or agreed to in writing, software 1559 * distributed under the License is distributed on an "AS IS" BASIS, 1560 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1561 * See the License for the specific language governing permissions and 1562 * limitations under the License. 1563 *//** 1564 * @license 1565 * Copyright 2022 Google LLC 1566 * 1567 * Licensed under the Apache License, Version 2.0 (the "License"); 1568 * you may not use this file except in compliance with the License. 1569 * You may obtain a copy of the License at 1570 * 1571 * http://www.apache.org/licenses/LICENSE-2.0 1572 * 1573 * Unless required by applicable law or agreed to in writing, software 1574 * distributed under the License is distributed on an "AS IS" BASIS, 1575 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1576 * See the License for the specific language governing permissions and 1577 * limitations under the License. 1578 */class G6{constructor(e,n){this.overlayedDocument=e,this.mutatedFields=n}}/** 1579 * @license 1580 * Copyright 2017 Google LLC 1581 * 1582 * Licensed under the Apache License, Version 2.0 (the "License"); 1583 * you may not use this file except in compliance with the License. 1584 * You may obtain a copy of the License at 1585 * 1586 * http://www.apache.org/licenses/LICENSE-2.0 1587 * 1588 * Unless required by applicable law or agreed to in writing, software 1589 * distributed under the License is distributed on an "AS IS" BASIS, 1590 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1591 * See the License for the specific language governing permissions and 1592 * limitations under the License. 1593 */class q6{constructor(e,n,s,a){this.remoteDocumentCache=e,this.mutationQueue=n,this.documentOverlayCache=s,this.indexManager=a}getDocument(e,n){let s=null;return this.documentOverlayCache.getOverlay(e,n).next((a=>(s=a,this.remoteDocumentCache.getEntry(e,n)))).next((a=>(s!==null&&hu(s.mutation,a,$n.empty(),Ot.now()),a)))}getDocuments(e,n){return this.remoteDocumentCache.getEntries(e,n).next((s=>this.getLocalViewOfDocuments(e,s,Ue()).next((()=>s))))}getLocalViewOfDocuments(e,n,s=Ue()){const a=Fa();return this.populateOverlays(e,a,n).next((()=>this.computeViews(e,n,a,s).next((l=>{let u=tu();return l.forEach(((d,m)=>{u=u.insert(d,m.overlayedDocument)})),u}))))}getOverlayedDocuments(e,n){const s=Fa();return this.populateOverlays(e,s,n).next((()=>this.computeViews(e,n,s,Ue())))}populateOverlays(e,n,s){const a=[];return s.forEach((l=>{n.has(l)||a.push(l)})),this.documentOverlayCache.getOverlays(e,a).next((l=>{l.forEach(((u,d)=>{n.set(u,d)}))}))}computeViews(e,n,s,a){let l=zs();const u=uu(),d=(function(){return uu()})();return n.forEach(((m,g)=>{const x=s.get(g.key);a.has(g.key)&&(x===void 0||x.mutation instanceof ra)?l=l.insert(g.key,g):x!==void 0?(u.set(g.key,x.mutation.getFieldMask()),hu(x.mutation,g,x.mutation.getFieldMask(),Ot.now())):u.set(g.key,$n.empty())})),this.recalculateAndSaveOverlays(e,l).next((m=>(m.forEach(((g,x)=>u.set(g,x))),n.forEach(((g,x)=>{var v;return d.set(g,new G6(x,(v=u.get(g))!==null&&v!==void 0?v:null))})),d)))}recalculateAndSaveOverlays(e,n){const s=uu();let a=new pt(((u,d)=>u-d)),l=Ue();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(e,n).next((u=>{for(const d of u)d.keys().forEach((m=>{const g=n.get(m);if(g===null)return;let x=s.get(m)||$n.empty();x=d.applyToLocalView(g,x),s.set(m,x);const v=(a.get(d.batchId)||Ue()).add(m);a=a.insert(d.batchId,v)}))})).next((()=>{const u=[],d=a.getReverseIterator();for(;d.hasNext();){const m=d.getNext(),g=m.key,x=m.value,v=$N();x.forEach((T=>{if(!l.has(T)){const E=JN(n.get(T),s.get(T));E!==null&&v.set(T,E),l=l.add(T)}})),u.push(this.documentOverlayCache.saveOverlays(e,g,v))}return se.waitFor(u)})).next((()=>s))}recalculateAndSaveOverlaysForDocumentKeys(e,n){return this.remoteDocumentCache.getEntries(e,n).next((s=>this.recalculateAndSaveOverlays(e,s)))}getDocumentsMatchingQuery(e,n,s,a){return(function(u){return xe.isDocumentKey(u.path)&&u.collectionGroup===null&&u.filters.length===0})(n)?this.getDocumentsMatchingDocumentQuery(e,n.path):zN(n)?this.getDocumentsMatchingCollectionGroupQuery(e,n,s,a):this.getDocumentsMatchingCollectionQuery(e,n,s,a)}getNextDocuments(e,n,s,a){return this.remoteDocumentCache.getAllFromCollectionGroup(e,n,s,a).next((l=>{const u=a-l.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(e,n,s.largestBatchId,a-l.size):se.resolve(Fa());let d=-1,m=l;return u.next((g=>se.forEach(g,((x,v)=>(d<v.largestBatchId&&(d=v.largestBatchId),l.get(x)?se.resolve():this.remoteDocumentCache.getEntry(e,x).next((T=>{m=m.insert(x,T)}))))).next((()=>this.populateOverlays(e,g,l))).next((()=>this.computeViews(e,m,g,Ue()))).next((x=>({batchId:d,changes:HN(x)})))))}))}getDocumentsMatchingDocumentQuery(e,n){return this.getDocument(e,new xe(n)).next((s=>{let a=tu();
1593return s.isFoundDocument()&&(a=a.insert(s.key,s)),a}))}getDocumentsMatchingCollectionGroupQuery(e,n,s,a){const l=n.collectionGroup;let u=tu();return this.indexManager.getCollectionParents(e,l).next((d=>se.forEach(d,(m=>{const g=(function(v,T){return new Ol(T,null,v.explicitOrderBy.slice(),v.filters.slice(),v.limit,v.limitType,v.startAt,v.endAt)})(n,m.child(l));return this.getDocumentsMatchingCollectionQuery(e,g,s,a).next((x=>{x.forEach(((v,T)=>{u=u.insert(v,T)}))}))})).next((()=>u))))}getDocumentsMatchingCollectionQuery(e,n,s,a){let l;return this.documentOverlayCache.getOverlaysForCollection(e,n.path,s.largestBatchId).next((u=>(l=u,this.remoteDocumentCache.getDocumentsMatchingQuery(e,n,s,l,a)))).next((u=>{l.forEach(((m,g)=>{const x=g.getKey();u.get(x)===null&&(u=u.insert(x,dn.newInvalidDocument(x)))}));let d=tu();return u.forEach(((m,g)=>{const x=l.get(m);x!==void 0&&hu(x.mutation,g,$n.empty(),Ot.now()),zf(n,g)&&(d=d.insert(m,g))})),d}))}}/** 1594 * @license 1595 * Copyright 2020 Google LLC 1596 * 1597 * Licensed under the Apache License, Version 2.0 (the "License"); 1598 * you may not use this file except in compliance with the License. 1599 * You may obtain a copy of the License at 1600 * 1601 * http://www.apache.org/licenses/LICENSE-2.0 1602 * 1603 * Unless required by applicable law or agreed to in writing, software 1604 * distributed under the License is distributed on an "AS IS" BASIS, 1605 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1606 * See the License for the specific language governing permissions and 1607 * limitations under the License. 1608 */class H6{constructor(e){this.serializer=e,this.Tr=new Map,this.Ir=new Map}getBundleMetadata(e,n){return se.resolve(this.Tr.get(n))}saveBundleMetadata(e,n){return this.Tr.set(n.id,(function(a){return{id:a.id,version:a.version,createTime:Yi(a.createTime)}})(n)),se.resolve()}getNamedQuery(e,n){return se.resolve(this.Ir.get(n))}saveNamedQuery(e,n){return this.Ir.set(n.name,(function(a){return{name:a.name,query:L6(a.bundledQuery),readTime:Yi(a.readTime)}})(n)),se.resolve()}}/** 1609 * @license 1610 * Copyright 2022 Google LLC 1611 * 1612 * Licensed under the Apache License, Version 2.0 (the "License"); 1613 * you may not use this file except in compliance with the License. 1614 * You may obtain a copy of the License at 1615 * 1616 * http://www.apache.org/licenses/LICENSE-2.0 1617 * 1618 * Unless required by applicable law or agreed to in writing, software 1619 * distributed under the License is distributed on an "AS IS" BASIS, 1620 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1621 * See the License for the specific language governing permissions and 1622 * limitations under the License. 1623 */class $6{constructor(){this.overlays=new pt(xe.comparator),this.Er=new Map}getOverlay(e,n){return se.resolve(this.overlays.get(n))}getOverlays(e,n){const s=Fa();return se.forEach(n,(a=>this.getOverlay(e,a).next((l=>{l!==null&&s.set(a,l)})))).next((()=>s))}saveOverlays(e,n,s){return s.forEach(((a,l)=>{this.Tt(e,n,l)})),se.resolve()}removeOverlaysForBatchId(e,n,s){const a=this.Er.get(s);return a!==void 0&&(a.forEach((l=>this.overlays=this.overlays.remove(l))),this.Er.delete(s)),se.resolve()}getOverlaysForCollection(e,n,s){const a=Fa(),l=n.length+1,u=new xe(n.child("")),d=this.overlays.getIteratorFrom(u);for(;d.hasNext();){const m=d.getNext().value,g=m.getKey();if(!n.isPrefixOf(g.path))break;g.path.length===l&&m.largestBatchId>s&&a.set(m.getKey(),m)}return se.resolve(a)}getOverlaysForCollectionGroup(e,n,s,a){let l=new pt(((g,x)=>g-x));const u=this.overlays.getIterator();for(;u.hasNext();){const g=u.getNext().value;if(g.getKey().getCollectionGroup()===n&&g.largestBatchId>s){let x=l.get(g.largestBatchId);x===null&&(x=Fa(),l=l.insert(g.largestBatchId,x)),x.set(g.getKey(),g)}}const d=Fa(),m=l.getIterator();for(;m.hasNext()&&(m.getNext().value.forEach(((g,x)=>d.set(g,x))),!(d.size()>=a)););return se.resolve(d)}Tt(e,n,s){const a=this.overlays.get(s.key);if(a!==null){const u=this.Er.get(a.largestBatchId).delete(s.key);this.Er.set(a.largestBatchId,u)}this.overlays=this.overlays.insert(s.key,new h6(n,s));let l=this.Er.get(n);l===void 0&&(l=Ue(),this.Er.set(n,l)),this.Er.set(n,l.add(s.key))}}/** 1624 * @license 1625 * Copyright 2024 Google LLC 1626 * 1627 * Licensed under the Apache License, Version 2.0 (the "License");
1628 * you may not use this file except in compliance with the License. 1629 * You may obtain a copy of the License at 1630 * 1631 * http://www.apache.org/licenses/LICENSE-2.0 1632 * 1633 * Unless required by applicable law or agreed to in writing, software 1634 * distributed under the License is distributed on an "AS IS" BASIS, 1635 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1636 * See the License for the specific language governing permissions and 1637 * limitations under the License. 1638 */class K6{constructor(){this.sessionToken=rn.EMPTY_BYTE_STRING}getSessionToken(e){return se.resolve(this.sessionToken)}setSessionToken(e,n){return this.sessionToken=n,se.resolve()}}/** 1639 * @license 1640 * Copyright 2017 Google LLC 1641 * 1642 * Licensed under the Apache License, Version 2.0 (the "License"); 1643 * you may not use this file except in compliance with the License. 1644 * You may obtain a copy of the License at 1645 * 1646 * http://www.apache.org/licenses/LICENSE-2.0 1647 * 1648 * Unless required by applicable law or agreed to in writing, software 1649 * distributed under the License is distributed on an "AS IS" BASIS, 1650 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1651 * See the License for the specific language governing permissions and 1652 * limitations under the License. 1653 */class dv{constructor(){this.dr=new Pt(qt.Ar),this.Rr=new Pt(qt.Vr)}isEmpty(){return this.dr.isEmpty()}addReference(e,n){const s=new qt(e,n);this.dr=this.dr.add(s),this.Rr=this.Rr.add(s)}mr(e,n){e.forEach((s=>this.addReference(s,n)))}removeReference(e,n){this.gr(new qt(e,n))}pr(e,n){e.forEach((s=>this.removeReference(s,n)))}yr(e){const n=new xe(new lt([])),s=new qt(n,e),a=new qt(n,e+1),l=[];return this.Rr.forEachInRange([s,a],(u=>{this.gr(u),l.push(u.key)})),l}wr(){this.dr.forEach((e=>this.gr(e)))}gr(e){this.dr=this.dr.delete(e),this.Rr=this.Rr.delete(e)}Sr(e){const n=new xe(new lt([])),s=new qt(n,e),a=new qt(n,e+1);let l=Ue();return this.Rr.forEachInRange([s,a],(u=>{l=l.add(u.key)})),l}containsKey(e){const n=new qt(e,0),s=this.dr.firstAfterOrEqual(n);return s!==null&&e.isEqual(s.key)}}class qt{constructor(e,n){this.key=e,this.br=n}static Ar(e,n){return xe.comparator(e.key,n.key)||Fe(e.br,n.br)}static Vr(e,n){return Fe(e.br,n.br)||xe.comparator(e.key,n.key)}}/** 1654 * @license 1655 * Copyright 2017 Google LLC 1656 * 1657 * Licensed under the Apache License, Version 2.0 (the "License"); 1658 * you may not use this file except in compliance with the License. 1659 * You may obtain a copy of the License at 1660 * 1661 * http://www.apache.org/licenses/LICENSE-2.0 1662 * 1663 * Unless required by applicable law or agreed to in writing, software 1664 * distributed under the License is distributed on an "AS IS" BASIS, 1665 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1666 * See the License for the specific language governing permissions and 1667 * limitations under the License. 1668 */class Y6{constructor(e,n){this.indexManager=e,this.referenceDelegate=n,this.mutationQueue=[],this.Dr=1,this.vr=new Pt(qt.Ar)}checkEmpty(e){return se.resolve(this.mutationQueue.length===0)}addMutationBatch(e,n,s,a){const l=this.Dr;this.Dr++,this.mutationQueue.length>0&&this.mutationQueue[this.mutationQueue.length-1];const u=new u6(l,n,s,a);this.mutationQueue.push(u);for(const d of a)this.vr=this.vr.add(new qt(d.key,l)),this.indexManager.addToCollectionParentIndex(e,d.key.path.popLast());return se.resolve(u)}lookupMutationBatch(e,n){return se.resolve(this.Cr(n))}getNextMutationBatchAfterBatchId(e,n){const s=n+1,a=this.Fr(s),l=a<0?0:a;return se.resolve(this.mutationQueue.length>l?this.mutationQueue[l]:null)}getHighestUnacknowledgedBatchId(){return se.resolve(this.mutationQueue.length===0?-1:this.Dr-1)}getAllMutationBatches(e){return se.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(e,n){const s=new qt(n,0),a=new qt(n,Number.POSITIVE_INFINITY),l=[];return this.vr.forEachInRange([s,a],(u=>{const d=this.Cr(u.br);l.push(d)})),se.resolve(l)}getAllMutationBatchesAffectingDocumentKeys(e,n){let s=new Pt(Fe);return n.forEach((a=>{const l=new qt(a,0),u=new qt(a,Number.POSITIVE_INFINITY);this.vr.forEachInRange([l,u],(d=>{s=s.add(d.br)}))})),se.resolve(this.Mr(s))}getAllMutationBatchesAffectingQuery(e,n){const s=n.path,a=s.length+1;let l=s;xe.isDocumentKey(l)||(l=l.child(""));const u=new qt(new xe(l),0);let d=new Pt(Fe);return this.vr.forEachWhile((m=>{const g=m.key.path;return!!s.isPrefixOf(g)&&(g.length===a&&(d=d.add(m.br)),!0)}),u),se.resolve(this.Mr(d))}Mr(e){const n=[];return e.forEach((s=>{const a=this.Cr(s);a!==null&&n.push(a)})),n}removeMutationBatch(e,n){Qe(this.Or(n.batchId,"removed")===0),this.mutation
vendor: 11,108 bytes, lines 1668-1738
1668Queue.shift();let s=this.vr;return se.forEach(n.mutations,(a=>{const l=new qt(a.key,n.batchId);return s=s.delete(l),this.referenceDelegate.markPotentiallyOrphaned(e,a.key)})).next((()=>{this.vr=s}))}Ln(e){}containsKey(e,n){const s=new qt(n,0),a=this.vr.firstAfterOrEqual(s);return se.resolve(n.isEqual(a&&a.key))}performConsistencyCheck(e){return this.mutationQueue.length,se.resolve()}Or(e,n){return this.Fr(e)}Fr(e){return this.mutationQueue.length===0?0:e-this.mutationQueue[0].batchId}Cr(e){const n=this.Fr(e);return n<0||n>=this.mutationQueue.length?null:this.mutationQueue[n]}}/** 1669 * @license 1670 * Copyright 2017 Google LLC 1671 * 1672 * Licensed under the Apache License, Version 2.0 (the "License"); 1673 * you may not use this file except in compliance with the License. 1674 * You may obtain a copy of the License at 1675 * 1676 * http://www.apache.org/licenses/LICENSE-2.0 1677 * 1678 * Unless required by applicable law or agreed to in writing, software 1679 * distributed under the License is distributed on an "AS IS" BASIS, 1680 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1681 * See the License for the specific language governing permissions and 1682 * limitations under the License. 1683 */class W6{constructor(e){this.Nr=e,this.docs=(function(){return new pt(xe.comparator)})(),this.size=0}setIndexManager(e){this.indexManager=e}addEntry(e,n){const s=n.key,a=this.docs.get(s),l=a?a.size:0,u=this.Nr(n);return this.docs=this.docs.insert(s,{document:n.mutableCopy(),size:u}),this.size+=u-l,this.indexManager.addToCollectionParentIndex(e,s.path.popLast())}removeEntry(e){const n=this.docs.get(e);n&&(this.docs=this.docs.remove(e),this.size-=n.size)}getEntry(e,n){const s=this.docs.get(n);return se.resolve(s?s.document.mutableCopy():dn.newInvalidDocument(n))}getEntries(e,n){let s=zs();return n.forEach((a=>{const l=this.docs.get(a);s=s.insert(a,l?l.document.mutableCopy():dn.newInvalidDocument(a))})),se.resolve(s)}getDocumentsMatchingQuery(e,n,s,a){let l=zs();const u=n.path,d=new xe(u.child("")),m=this.docs.getIteratorFrom(d);for(;m.hasNext();){const{key:g,value:{document:x}}=m.getNext();if(!u.isPrefixOf(g.path))break;g.path.length>u.length+1||S5(E5(x),s)<=0||(a.has(x.key)||zf(n,x))&&(l=l.insert(x.key,x.mutableCopy()))}return se.resolve(l)}getAllFromCollectionGroup(e,n,s,a){Te()}Lr(e,n){return se.forEach(this.docs,(s=>n(s)))}newChangeBuffer(e){return new Q6(this)}getSize(e){return se.resolve(this.size)}}class Q6 extends F6{constructor(e){super(),this.hr=e}applyChanges(e){const n=[];return this.changes.forEach(((s,a)=>{a.isValidDocument()?n.push(this.hr.addEntry(e,a)):this.hr.removeEntry(s)})),se.waitFor(n)}getFromCache(e,n){return this.hr.getEntry(e,n)}getAllFromCache(e,n){return this.hr.getEntries(e,n)}}/** 1684 * @license 1685 * Copyright 2017 Google LLC 1686 * 1687 * Licensed under the Apache License, Version 2.0 (the "License"); 1688 * you may not use this file except in compliance with the License. 1689 * You may obtain a copy of the License at 1690 * 1691 * http://www.apache.org/licenses/LICENSE-2.0 1692 * 1693 * Unless required by applicable law or agreed to in writing, software 1694 * distributed under the License is distributed on an "AS IS" BASIS, 1695 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1696 * See the License for the specific language governing permissions and 1697 * limitations under the License. 1698 */class X6{constructor(e){this.persistence=e,this.Br=new eo((n=>sv(n)),rv),this.lastRemoteSnapshotVersion=Ee.min(),this.highestTargetId=0,this.kr=0,this.qr=new dv,this.targetCount=0,this.Qr=vl.qn()}forEachTarget(e,n){return this.Br.forEach(((s,a)=>n(a))),se.resolve()}getLastRemoteSnapshotVersion(e){return se.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(e){return se.resolve(this.kr)}allocateTargetId(e){return this.highestTargetId=this.Qr.next(),se.resolve(this.highestTargetId)}setTargetsMetadata(e,n,s){return s&&(this.lastRemoteSnapshotVersion=s),n>this.kr&&(this.kr=n),se.resolve()}Un(e){this.Br.set(e.target,e);const n=e.targetId;n>this.highestTargetId&&(this.Qr=new vl(n),this.highestTargetId=n),e.sequenceNumber>this.kr&&(this.kr=e.sequenceNumber)}addTargetData(e,n){return this.Un(n),this.targetCount+=1,se.resolve()}updateTargetData(e,n){return this.Un(n),se.resolve()}removeTargetData(e,n){return this.Br.delete(n.target),this.qr.yr(n.targetId),this.targetCount-=1,se.resolve()}removeTargets(e,n,s){let a=0;const l=[];return this.Br.forEach(((u,d)=>{d.sequenceNumber<=n&&s.get(d.targetId)===null&&(this.Br.delete(u),l.push(this.removeMatchingKeysForTargetId(e,d.targetId)),a++)})),se.waitFor(l).next((()=>a))}getTargetCount(e){return se.resolve(this.targetCount)}getTargetData(e,n){const s=this.Br.get(n)||null;return se.resolve(s)}addMatchingKeys(e,n,s){return this.qr.mr(n,s),se.resolve()}removeMatchingKeys(e,n,s){this.qr.pr(n,s);const a=this.persistence.referenceDelegate,l=[];return a&&n.forEach((u=>{l.push(a.markPotentiallyOrphaned(e,u))})),se.waitFor(l)}removeMatchingKeysForTargetId(e,n){return this.qr.yr(n),se.resolve()}getMatchingKeysForTargetId(e,n){const s=this.qr.Sr(n);return se.resolve(s)}containsKey(e,n){return se.resolve(this.qr.containsKey(n))}}/** 1699 * @license 1700 * Copyright 2017 Google LLC 1701 * 1702 * Licensed under the Apache License, Version 2.0 (the "License"); 1703 * you may not use this file except in compliance with the License. 1704 * You may obtain a copy of the License at 1705 * 1706 * http://www.apache.org/licenses/LICENSE-2.0 1707 * 1708 * Unless required by applicable law or agreed to in writing, software 1709 * distributed under the License is distributed on an "AS IS" BASIS, 1710 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1711 * See the License for the specific language governing permissions and 1712 * limitations under the License. 1713 */class u2{constructor(e,n){this.Kr={},this.overlays={},this.$r=new Pf(0),this.Ur=!1,this.Ur=!0,this.Wr=new K6,this.referenceDelegate=e(this),this.Gr=new X6(this),this.indexManager=new O6,this.remoteDocumentCache=(function(a){return new W6(a)})((s=>this.referenceDelegate.zr(s))),this.serializer=new M6(n),this.jr=new H6(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.Ur=!1,Promise.resolve()}get started(){return this.Ur}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(e){return this.indexManager}getDocumentOverlayCache(e){let n=this.overlays[e.toKey()];return n||(n=new $6,this.overlays[e.toKey()]=n),n}getMutationQueue(e,n){let s=this.Kr[e.toKey()];return s||(s=new Y6(n,this.referenceDelegate),this.Kr[e.toKey()]=s),s}getGlobalsCache(){return this.Wr}getTargetCache(){return this.Gr}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.jr}runTransaction(e,n,s){he("MemoryPersistence","Starting transaction:",e);const a=new J6(this.$r.next());return this.referenceDelegate.Hr(),s(a).next((l=>this.referenceDelegate.Jr(a).next((()=>l)))).toPromise().then((l=>(a.raiseOnCommittedEvent(),l)))}Yr(e,n){return se.or(Object.values(this.Kr).map((s=>()=>s.containsKey(e,n))))}}class J6 extends N5{constructor(e){super(),this.currentSequenceNumber=e}}class fv{constructor(e){this.persistence=e,this.Zr=new dv,this.Xr=null}static ei(e){return new fv(e)}get ti(){if(this.Xr)return this.Xr;throw Te()}addReference(e,n,s){return this.Zr.addReference(s,n),this.ti.delete(s.toString()),se.resolve()}removeReference(e,n,s){return this.Zr.removeReference(s,n),this.ti.add(s.toString()),se.resolve()}markPotentiallyOrphaned(e,n){return this.ti.add(n.toString()),se.resolve()}removeTarget(e,n){this.Zr.yr(n.targetId).forEach((a=>this.ti.add(a.toString())));const s=this.persistence.getTargetCache();return s.getMatchingKeysForTargetId(e,n.targetId).next((a=>{a.forEach((l=>this.ti.add(l.toString())))})).next((()=>s.removeTargetData(e,n)))}Hr(){this.Xr=new Set}Jr(e){const n=this.persistence.getRemoteDocumentCache().newChangeBuffer();return se.forEach(this.ti,(s=>{const a=xe.fromPath(s);return this.ni(e,a).next((l=>{l||n.removeEntry(a,Ee.min())}))})).next((()=>(this.Xr=null,n.apply(e))))}updateLimboDocument(e,n){return this.ni(e,n).next((s=>{s?this.ti.delete(n.toString()):this.ti.add(n.toString())}))}zr(e){return 0}ni(e,n){return se.or([()=>se.resolve(this.Zr.containsKey(n)),()=>this.persistence.getTargetCache().containsKey(e,n),()=>this.persistence.Yr(e,n)])}}class vf{constructor(e,n){this.persistence=e,this.ri=new eo((s=>C5(s.path)),((s,a)=>s.isEqual(a))),this.garbageCollector=z6(this,n)}static ei(e,n){return new vf(e,n)}Hr(){}Jr(e){return se.resolve()}forEachTarget(e,n){return this.persistence.getTargetCache().forEachTarget(e,n)}Xn(e){const n=this.nr(e);return this.persistence.getTargetCache().getTargetCount(e).next((s=>n.next((a=>s+a))))}nr(e){let n=0;return this.er(e,(s=>{n++})).next((()=>n))}er(e,n){return se.forEach(this.ri,((s,a)=>this.ir(e,s,a).next((l=>l?se.resolve():n(a)))))}removeTargets(e,n,s){return this.persistence.getTargetCache().removeTargets(e,n,s)}removeOrphanedDocuments(e,n){let s=0;const a=this.persistence.getRemoteDocumentCache(),l=a.newChangeBuffer();return a.Lr(e,(u=>this.ir(e,u,n).next((d=>{d||(s++,l.removeEntry(u,Ee.min()))})))).next((()=>l.apply(e))).next((()=>s))}markPotentiallyOrphaned(e,n){return this.ri.set(n,e.currentSequenceNumber),se.resolve()}removeTarget(e,n){const s=n.withSequenceNumber(e.currentSequenceNumber);return this.persistence.getTargetCache().updateTargetData(e,s)}addReference(e,n,s){return this.ri.set(s,e.currentSequenceNumber),se.resolve()}removeReference(e,n,s){return this.ri.set(s,e.currentSequenceNumber),se.resolve()}updateLimboDocument(e,n){return this.ri.set(n,e.currentSequenceNumber),se.resolve()}zr(e){let n=e.key.toString().length;return e.isFoundDocument()&&(n+=$d(e.data.value)),n}ir(e,n,s){return se.or([()=>this.persistence.Yr(e,n),()=>this.persistence.getTargetCache().containsKey(e,n),()=>{const a=this.ri.get(n);return se.resolve(a!==void 0&&a>s)}])}getCacheSize(e){return this.persistence.getRemoteDocumentCache().getSize(e)}}/** 1714 * @license 1715 * Copyright 2017 Google LLC 1716 * 1717 * Licensed under the Apache License, Version 2.0 (the "License"); 1718 * you may not use this file except in compliance with the License. 1719 * You may obtain a copy of the License at 1720 * 1721 * http://www.apache.org/licenses/LICENSE-2.0 1722 * 1723 * Unless required by applicable law or agreed to in writing, software 1724 * distributed under the License is distributed on an "AS IS" BASIS, 1725 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1726 * See the License for the specific language governing permissions and 1727 * limitations under the License. 1728 */class mv{constructor(e,n,s,a){this.targetId=e,this.fromCache=n,this.Wi=s,this.Gi=a}static zi(e,n){let s=Ue(),a=Ue();for(const l of n.docChanges)switch(l.type){case 0:s=s.add(l.doc.key);break;case 1:a=a.add(l.doc.key)}return new mv(e,n.fromCache,s,a)}}/** 1729 * @license 1730 * Copyright 2023 Google LLC 1731 * 1732 * Licensed under the Apache License, Version 2.0 (the "License"); 1733 * you may not use this file except in compliance with the License. 1734 * You may obtain a copy of the License at 1735 * 1736 * http://www.apache.org/licenses/LICENSE-2.0 1737 * 1738 * Unless required by applicable law or agreed to in writing, softw
1738are 1739 * distributed under the License is distributed on an "AS IS" BASIS, 1740 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1741 * See the License for the specific language governing permissions and 1742 * limitations under the License. 1743 */class Z6{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(e){this._documentReadCount+=e}}/** 1744 * @license 1745 * Copyright 2019 Google LLC 1746 * 1747 * Licensed under the Apache License, Version 2.0 (the "License"); 1748 * you may not use this file except in compliance with the License. 1749 * You may obtain a copy of the License at 1750 * 1751 * http://www.apache.org/licenses/LICENSE-2.0 1752 * 1753 * Unless required by applicable law or agreed to in writing, software 1754 * distributed under the License is distributed on an "AS IS" BASIS, 1755 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1756 * See the License for the specific language governing permissions and 1757 * limitations under the License. 1758 */class eU{constructor(){this.ji=!1,this.Hi=!1,this.Ji=100,this.Yi=(function(){return XV()?8:j5(mn())>0?6:4})()}initialize(e,n){this.Zi=e,this.indexManager=n,this.ji=!0}getDocumentsMatchingQuery(e,n,s,a){const l={result:null};return this.Xi(e,n).next((u=>{l.result=u})).next((()=>{if(!l.result)return this.es(e,n,a,s).next((u=>{l.result=u}))})).next((()=>{if(l.result)return;const u=new Z6;return this.ts(e,n,u).next((d=>{if(l.result=d,this.Hi)return this.ns(e,n,u,d.size)}))})).next((()=>l.result))}ns(e,n,s,a){return s.documentReadCount<this.Ji?(Qo()<=Ve.DEBUG&&he("QueryEngine","SDK will not create cache indexes for query:",Xo(n),"since it only creates cache indexes for collection contains","more than or equal to",this.Ji,"documents"),se.resolve()):(Qo()<=Ve.DEBUG&&he("QueryEngine","Query:",Xo(n),"scans",s.documentReadCount,"local documents and returns",a,"documents as results."),s.documentReadCount>this.Yi*a?(Qo()<=Ve.DEBUG&&he("QueryEngine","The SDK decides to create cache indexes for query:",Xo(n),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(e,Ki(n))):se.resolve())}Xi(e,n){if(IT(n))return se.resolve(null);let s=Ki(n);return this.indexManager.getIndexType(e,s).next((a=>a===0?null:(n.limit!==null&&a===1&&(n=Ky(n,null,"F"),s=Ki(n)),this.indexManager.getDocumentsMatchingTarget(e,s).next((l=>{const u=Ue(...l);return this.Zi.getDocuments(e,u).next((d=>this.indexManager.getMinOffset(e,s).next((m=>{const g=this.rs(n,d);return this.ss(n,g,u,m.readTime)?this.Xi(e,Ky(n,null,"F")):this.os(e,g,n,m)}))))})))))}es(e,n,s,a){return IT(n)||a.isEqual(Ee.min())?se.resolve(null):this.Zi.getDocuments(e,s).next((l=>{const u=this.rs(n,l);return this.ss(n,u,s,a)?se.resolve(null):(Qo()<=Ve.DEBUG&&he("QueryEngine","Re-using previous result from %s to execute query: %s",a.toString(),Xo(n)),this.os(e,u,n,T5(a,-1)).next((d=>d)))}))}rs(e,n){let s=new Pt(GN(e));return n.forEach(((a,l)=>{zf(e,l)&&(s=s.add(l))})),s}ss(e,n,s,a){if(e.limit===null)return!1;if(s.size!==n.size)return!0;const l=e.limitType==="F"?n.last():n.first();return!!l&&(l.hasPendingWrites||l.version.compareTo(a)>0)}ts(e,n,s){return Qo()<=Ve.DEBUG&&he("QueryEngine","Using full collection scan to execute query:",Xo(n)),this.Zi.getDocumentsMatchingQuery(e,n,Jr.min(),s)}os(e,n,s,a){return this.Zi.getDocumentsMatchingQuery(e,s,a).next((l=>(n.forEach((u=>{l=l.insert(u.key,u)})),l)))}}/** 1759 * @license 1760 * Copyright 2020 Google LLC 1761 * 1762 * Licensed under the Apache License, Version 2.0 (the "License"); 1763 * you may not use this file except in compliance with the License. 1764 * You may obtain a copy of the License at 1765 * 1766 * http://www.apache.org/licenses/LICENSE-2.0 1767 * 1768 * Unless required by applicable law or agreed to in writing, software 1769 * distributed under the License is distributed on an "AS IS" BASIS, 1770 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1771 * See the License for the specific language governing permissions and 1772 * limitations under the License. 1773 */class tU{constructor(e,n,s,a){this.persistence=e,this._s=n,this.serializer
1773=a,this.us=new pt(Fe),this.cs=new eo((l=>sv(l)),rv),this.ls=new Map,this.hs=e.getRemoteDocumentCache(),this.Gr=e.getTargetCache(),this.jr=e.getBundleCache(),this.Ps(s)}Ps(e){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(e),this.indexManager=this.persistence.getIndexManager(e),this.mutationQueue=this.persistence.getMutationQueue(e,this.indexManager),this.localDocuments=new q6(this.hs,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.hs.setIndexManager(this.indexManager),this._s.initialize(this.localDocuments,this.indexManager)}collectGarbage(e){return this.persistence.runTransaction("Collect garbage","readwrite-primary",(n=>e.collect(n,this.us)))}}function nU(t,e,n,s){return new tU(t,e,n,s)}async function h2(t,e){const n=Ne(t);return await n.persistence.runTransaction("Handle user change","readonly",(s=>{let a;return n.mutationQueue.getAllMutationBatches(s).next((l=>(a=l,n.Ps(e),n.mutationQueue.getAllMutationBatches(s)))).next((l=>{const u=[],d=[];let m=Ue();for(const g of a){u.push(g.batchId);for(const x of g.mutations)m=m.add(x.key)}for(const g of l){d.push(g.batchId);for(const x of g.mutations)m=m.add(x.key)}return n.localDocuments.getDocuments(s,m).next((g=>({Ts:g,removedBatchIds:u,addedBatchIds:d})))}))}))}function iU(t,e){const n=Ne(t);return n.persistence.runTransaction("Acknowledge batch","readwrite-primary",(s=>{const a=e.batch.keys(),l=n.hs.newChangeBuffer({trackRemovals:!0});return(function(d,m,g,x){const v=g.batch,T=v.keys();let E=se.resolve();return T.forEach((C=>{E=E.next((()=>x.getEntry(m,C))).next((L=>{const R=g.docVersions.get(C);Qe(R!==null),L.version.compareTo(R)<0&&(v.applyToRemoteDocument(L,g),L.isValidDocument()&&(L.setReadTime(g.commitVersion),x.addEntry(L)))}))})),E.next((()=>d.mutationQueue.removeMutationBatch(m,v)))})(n,s,e,l).next((()=>l.apply(s))).next((()=>n.mutationQueue.performConsistencyCheck(s))).next((()=>n.documentOverlayCache.removeOverlaysForBatchId(s,a,e.batch.batchId))).next((()=>n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(s,(function(d){let m=Ue();for(let g=0;g<d.mutationResults.length;++g)d.mutationResults[g].transformResults.length>0&&(m=m.add(d.batch.mutations[g].key));return m})(e)))).next((()=>n.localDocuments.getDocuments(s,a)))}))}function d2(t){const e=Ne(t);return e.persistence.runTransaction("Get last remote snapshot version","readonly",(n=>e.Gr.getLastRemoteSnapshotVersion(n)))}function sU(t,e){const n=Ne(t),s=e.snapshotVersion;let a=n.us;return n.persistence.runTransaction("Apply remote event","readwrite-primary",(l=>{const u=n.hs.newChangeBuffer({trackRemovals:!0});a=n.us;const d=[];
1773e.targetChanges.forEach(((x,v)=>{const T=a.get(v);if(!T)return;d.push(n.Gr.removeMatchingKeys(l,x.removedDocuments,v).next((()=>n.Gr.addMatchingKeys(l,x.addedDocuments,v))));let E=T.withSequenceNumber(l.currentSequenceNumber);e.targetMismatches.get(v)!==null?E=E.withResumeToken(rn.EMPTY_BYTE_STRING,Ee.min()).withLastLimboFreeSnapshotVersion(Ee.min()):x.resumeToken.approximateByteSize()>0&&(E=E.withResumeToken(x.resumeToken,s)),a=a.insert(v,E),(function(L,R,V){return L.resumeToken.approximateByteSize()===0||R.snapshotVersion.toMicroseconds()-L.snapshotVersion.toMicroseconds()>=3e8?!0:V.addedDocuments.size+V.modifiedDocuments.size+V.removedDocuments.size>0})(T,E,x)&&d.push(n.Gr.updateTargetData(l,E))}));let m=zs(),g=Ue();if(e.documentUpdates.forEach((x=>{e.resolvedLimboDocuments.has(x)&&d.push(n.persistence.referenceDelegate.updateLimboDocument(l,x))})),d.push(rU(l,u,e.documentUpdates).next((x=>{m=x.Is,g=x.Es}))),!s.isEqual(Ee.min())){const x=n.Gr.getLastRemoteSnapshotVersion(l).next((v=>n.Gr.setTargetsMetadata(l,l.currentSequenceNumber,s)));d.push(x)}return se.waitFor(d).next((()=>u.apply(l))).next((()=>n.localDocuments.getLocalViewOfDocuments(l,m,g))).next((()=>m))})).then((l=>(n.us=a,l)))}function rU(t,e,n){let s=Ue(),a=Ue();return n.forEach((l=>s=s.add(l))),e.getEntries(t,s).next((l=>{let u=zs();return n.forEach(((d,m)=>{const g=l.get(d);m.isFoundDocument()!==g.isFoundDocument()&&(a=a.add(d)),m.isNoDocument()&&m.version.isEqual(Ee.min())?(e.removeEntry(d,m.readTime),u=u.insert(d,m)):!g.isValidDocument()||m.version.compareTo(g.version)>0||m.version.compareTo(g.version)===0&&g.hasPendingWrites?(e.addEntry(m),u=u.insert(d,m)):he("LocalStore","Ignoring outdated watch update for ",d,". Current version:",g.version," Watch version:",m.version)})),{Is:u,Es:a}}))}function aU(t,e){const n=Ne(t);return n.persistence.runTransaction("Get next mutation batch","readonly",(s=>(e===void 0&&(e=-1),n.mutationQueue.getNextMutationBatchAfterBatchId(s,e))))}function oU(t,e){const n=Ne(t);return n.persistence.runTransaction("Allocate target","readwrite",(s=>{let a;return n.Gr.getTargetData(s,e).next((l=>l?(a=l,se.resolve(a)):n.Gr.allocateTargetId(s).next((u=>(a=new Gr(e,u,"TargetPurposeListen",s.currentSequenceNumber),n.Gr.addTargetData(s,a).next((()=>a)))))))})).then((s=>{const a=n.us.get(s.targetId);return(a===null||s.snapshotVersion.compareTo(a.snapshotVersion)>0)&&(n.us=n.us.insert(s.targetId,s),n.cs.set(e,s.targetId)),s}))}async function Jy(t,e,n){const s=Ne(t),a=s.us.get(e),l=n?"readwrite":"readwrite-primary";try{n||await s.persistence.runTransaction("Release target",l,(u=>s.persistence.referenceDelegate.removeTarget(u,a)))}catch(u){if(!Ll(u))throw u;he("LocalStore",`Failed to update sequence numbers for target ${e}: ${u}`)}s.us=s.us.remove(e),s.cs.delete(a.target)}function GT(t,e,n){const s=Ne(t);let a=Ee.min(),l=Ue();return s.persistence.runTransaction("Execute query","readwrite",(u=>(function(m,g,x){const v=Ne(m),T=v.cs.get(x);return T!==void 0?se.resolve(v.us.get(T)):v.Gr.getTargetData(g,x)})(s,u,Ki(e)).next((d=>{if(d)return a=d.lastLimboFreeSnapshotVersion,s.Gr.getMatchingKeysForTargetId(u,d.targetId).next((m=>{l=m}))})).next((()=>s._s.getDocumentsMatchingQuery(u,e,n?a:Ee.min(),n?l:Ue()))).next((d=>(lU(s,Y5(e),d),{documents:d,ds:l})))))}function lU(t,e,n){let s=t.ls.get(e)||Ee.min();n.forEach(((a,l)=>{l.readTime.compareTo(s)>0&&(s=l.readTime)})),t.ls.set(e,s)}class qT{constructor(){this.activeTargetIds=e6()}ps(e){this.activeTargetIds=this.activeTargetIds.add(e)}ys(e){this.activeTargetIds=this.activeTargetIds.delete(e)}gs(){const e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)}}class cU{constructor(){this._o=new qT,this.ao={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(e){}updateMutationState(e,n,s){}addLocalQueryTarget(e,n=!0){return n&&this._o.ps(e),this.ao[e]||"not-current"}updateQueryState(e,n,s){this.ao[e]=n}removeLocalQueryTarget(e){this._o.ys(e)}isLocalQueryTarget(e){return this._o.activeTargetIds.has(e)}clearQueryState(e){delete this.ao[e]}getAllActiveQueryTargets(){return this._o.activeTargetIds}isActiveQueryTarget(e){return this._o.activeTargetIds.has(e)}start(){return this._o=new qT,Promise.resolve()}handleUserChange(e,n,s){}setOnlineState(e){}shutdown(){}writeSequenceNumber(e){}notifyBundleLoaded(e){}}/** 1774 * @license 1775 * Copyright 2019 Google LLC 1776 * 1777 * Licensed under the Apache License, Version 2.0 (the "License");
1778 * you may not use this file except in compliance with the License. 1779 * You may obtain a copy of the License at 1780 * 1781 * http://www.apache.org/licenses/LICENSE-2.0 1782 * 1783 * Unless required by applicable law or agreed to in writing, software 1784 * distributed under the License is distributed on an "AS IS" BASIS, 1785 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1786 * See the License for the specific language governing permissions and 1787 * limitations under the License. 1788 */class uU{uo(e){}shutdown(){}}/** 1789 * @license 1790 * Copyright 2019 Google LLC 1791 * 1792 * Licensed under the Apache License, Version 2.0 (the "License"); 1793 * you may not use this file except in compliance with the License. 1794 * You may obtain a copy of the License at 1795 * 1796 * http://www.apache.org/licenses/LICENSE-2.0 1797 * 1798 * Unless required by applicable law or agreed to in writing, software 1799 * distributed under the License is distributed on an "AS IS" BASIS, 1800 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1801 * See the License for the specific language governing permissions and 1802 * limitations under the License. 1803 */class HT{constructor(){this.co=()=>this.lo(),this.ho=()=>this.Po(),this.To=[],this.Io()}uo(e){this.To.push(e)}shutdown(){window.removeEventListener("online",this.co),window.removeEventListener("offline",this.ho)}Io(){window.addEventListener("online",this.co),window.addEventListener("offline",this.ho)}lo(){he("ConnectivityMonitor","Network connectivity changed: AVAILABLE");for(const e of this.To)e(0)}Po(){he("ConnectivityMonitor","Network connectivity changed: UNAVAILABLE");for(const e of this.To)e(1)}static p(){return typeof window<"u"&&window.addEventListener!==void 0&&window.removeEventListener!==void 0}}/** 1804 * @license 1805 * Copyright 2023 Google LLC 1806 * 1807 * Licensed under the Apache License, Version 2.0 (the "License"); 1808 * you may not use this file except in compliance with the License. 1809 * You may obtain a copy of the License at 1810 * 1811 * http://www.apache.org/licenses/LICENSE-2.0 1812 * 1813 * Unless required by applicable law or agreed to in writing, software 1814 * distributed under the License is distributed on an "AS IS" BASIS, 1815 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1816 * See the License for the specific language governing permissions and 1817 * limitations under the License. 1818 */let Ld=null;function Jg(){return Ld===null?Ld=(function(){return 268435456+Math.round(2147483648*Math.random())})():Ld++,"0x"+Ld.toString(16)}/** 1819 * @license 1820 * Copyright 2020 Google LLC 1821 * 1822 * Licensed under the Apache License, Version 2.0 (the "License"); 1823 * you may not use this file except in compliance with the License. 1824 * You may obtain a copy of the License at 1825 * 1826 * http://www.apache.org/licenses/LICENSE-2.0 1827 * 1828 * Unless required by applicable law or agreed to in writing, software 1829 * distributed under the License is distributed on an "AS IS" BASIS, 1830 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1831 * See the License for the specific language governing permissions and 1832 * limitations under the License. 1833 */const hU={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery"};/** 1834 * @license 1835 * Copyright 2017 Google LLC 1836 * 1837 * Licensed under the Apache License, Version 2.0 (the "License"); 1838 * you may not use this file except in compliance with the License. 1839 * You may obtain a copy of the License at 1840 * 1841 * http://www.apache.org/licenses/LICENSE-2.0 1842 * 1843 * Unless required by applicable law or agreed to in writing, software 1844 * distributed under the License is distributed on an "AS IS" BASIS, 1845 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1846 * See the License for the specific language governing permissions and 1847 * limitations under the License. 1848 */class dU{constructor(e){this.Eo=e.Eo,this.Ao=e.Ao}Ro(e){this.Vo=e}mo(e){this.fo=e}po(e){this.yo=e}onMessage(e){this.wo=e}close(){this.Ao()}send(e){this.Eo(e)}So(){this.Vo()}bo(){this.fo()}Do(e){this.yo(e)}vo(e){this.wo(e)}}/** 1849 * @license 1850 * Copyright 2017 Google LLC 1851 * 1852 * Licensed under the Apache License, Version 2.0 (the "License");
1853 * you may not use this file except in compliance with the License. 1854 * You may obtain a copy of the License at 1855 * 1856 * http://www.apache.org/licenses/LICENSE-2.0 1857 * 1858 * Unless required by applicable law or agreed to in writing, software 1859 * distributed under the License is distributed on an "AS IS" BASIS, 1860 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1861 * See the License for the specific language governing permissions and 1862 * limitations under the License. 1863 */const un="WebChannelConnection";class fU extends class{get Co(){return!1}constructor(n){this.databaseInfo=n,this.databaseId=n.databaseId;const s=n.ssl?"https":"http",a=encodeURIComponent(this.databaseId.projectId),l=encodeURIComponent(this.databaseId.database);this.Fo=s+"://"+n.host,this.Mo=`projects/${a}/databases/${l}`,this.xo=this.databaseId.database==="(default)"?`project_id=${a}`:`project_id=${a}&database_id=${l}`}Oo(n,s,a,l,u){const d=Jg(),m=this.No(n,s.toUriEncodedString());he("RestConnection",`Sending RPC '${n}' ${d}:`,m,a);const g={"google-cloud-resource-prefix":this.Mo,"x-goog-request-params":this.xo};return this.Lo(g,l,u),this.Bo(n,m,g,a).then((x=>(he("RestConnection",`Received RPC '${n}' ${d}: `,x),x)),(x=>{throw pl("RestConnection",`RPC '${n}' ${d} failed with error: `,x,"url: ",m,"request:",a),x}))}ko(n,s,a,l,u,d){return this.Oo(n,s,a,l,u)}Lo(n,s,a){n["X-Goog-Api-Client"]=(function(){return"gl-js/ fire/"+kl})(),n["Content-Type"]="text/plain",this.databaseInfo.appId&&(n["X-Firebase-GMPID"]=this.databaseInfo.appId),s&&s.headers.forEach(((l,u)=>n[u]=l)),a&&a.headers.forEach(((l,u)=>n[u]=l))}No(n,s){const a=hU[n];return`${this.Fo}/v1/${s}:${a}`}terminate(){}}{constructor(e){super(e),this.forceLongPolling=e.forceLongPolling,this.autoDetectLongPolling=e.autoDetectLongPolling,this.useFetchStreams=e.useFetchStreams,this.longPollingOptions=e.longPollingOptions}Bo(e,n,s,a){const l=Jg();return new Promise(((u,d)=>{const m=new SN;m.setWithCredentials(!0),m.listenOnce(AN.COMPLETE,(()=>{try{switch(m.getLastErrorCode()){case Hd.NO_ERROR:const x=m.getResponseJson();he(un,`XHR for RPC '${e}' ${l} received:`,JSON.stringify(x)),u(x);break;case Hd.TIMEOUT:he(un,`RPC '${e}' ${l} timed out`),d(new de(ie.DEADLINE_EXCEEDED,"Request time out"));break;case Hd.HTTP_ERROR:const v=m.getStatus();if(he(un,`RPC '${e}' ${l} failed with status:`,v,"response text:",m.getResponseText()),v>0){let T=m.getResponseJson();Array.isArray(T)&&(T=T[0]);const E=T==null?void 0:T.error;if(E&&E.status&&E.message){const C=(function(R){const V=R.toLowerCase().replace(/_/g,"-");return Object.values(ie).indexOf(V)>=0?V:ie.UNKNOWN})(E.status);d(new de(C,E.message))}else d(new de(ie.UNKNOWN,"Server responded with status "+m.getStatus()))}else d(new de(ie.UNAVAILABLE,"Connection failed."));break;default:Te()}}finally{he(un,`RPC '${e}' ${l} completed.`)}}));const g=JSON.stringify(a);he(un,`RPC '${e}' ${l} sending request:`,a),m.send(n,"POST",g,s,15)}))}qo(e,n,s){const a=Jg(),l=[this.Fo,"/","google.firestore.v1.Firestore","/",e,"/channel"],u=RN(),d=jN(),m={httpSessionIdParam:"gsessionid",initMessageHeaders:{},messageUrlParams:{database:`projects/${this.databaseId.projectId}/databases/${this.databaseId.database}`},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},g=this.longPollingOptions.timeoutSeconds;g!==void 0&&(m.longPollingTimeout=Math.round(1e3*g)),this.useFetchStreams&&(m.useFetchStreams=!0),this.Lo(m.initMessageHeaders,n,s),m.encodeInitMessageHeaders=!0;const x=l.join("");he(un,`Creating RPC '${e}' stream ${a}: ${x}`,m);const v=u.createWebChannel(x,m);let T=!1,E=!1;const C=new dU({Eo:R=>{E?he(un,`Not sending because RPC '${e}' stream ${a} is closed:`,R):(T||(he(un,`Opening RPC '${e}' stream ${a} transport.`),v.open(),T=!0),he(un,`RPC '${e}' stream ${a} sending:`,R),v.send(R))},Ao:()=>v.close()}),L=(R,V,G)=>{R.listen(V,(z=>{try{G(z)}catch(ne){setTimeout((()=>{throw ne}),0)}}))};return L(v,eu.EventType.OPEN,(()=>{E||(he(un,`RPC '${e}' stream ${a} transport opened.`),C.So())})),L(v,eu.EventType.CLOSE,(()=>{E||(E=!0,he(un,`RPC '${e}' stream ${a} transport closed`),C.Do())}
1863)),L(v,eu.EventType.ERROR,(R=>{E||(E=!0,pl(un,`RPC '${e}' stream ${a} transport errored:`,R),C.Do(new de(ie.UNAVAILABLE,"The operation could not be completed")))})),L(v,eu.EventType.MESSAGE,(R=>{var V;if(!E){const G=R.data[0];Qe(!!G);const z=G,ne=(z==null?void 0:z.error)||((V=z[0])===null||V===void 0?void 0:V.error);if(ne){he(un,`RPC '${e}' stream ${a} received error:`,ne);const re=ne.status;let le=(function(I){const P=Ct[I];if(P!==void 0)return e2(P)})(re),D=ne.message;le===void 0&&(le=ie.INTERNAL,D="Unknown error status: "+re+" with message "+ne.message),E=!0,C.Do(new de(le,D)),v.close()}else he(un,`RPC '${e}' stream ${a} received:`,G),C.vo(G)}})),L(d,NN.STAT_EVENT,(R=>{R.stat===zy.PROXY?he(un,`RPC '${e}' stream ${a} detected buffering proxy`):R.stat===zy.NOPROXY&&he(un,`RPC '${e}' stream ${a} detected no buffering proxy`)})),setTimeout((()=>{C.bo()}),0),C}}function Zg(){return typeof document<"u"?document:null}/** 1864 * @license 1865 * Copyright 2020 Google LLC 1866 * 1867 * Licensed under the Apache License, Version 2.0 (the "License"); 1868 * you may not use this file except in compliance with the License. 1869 * You may obtain a copy of the License at 1870 * 1871 * http://www.apache.org/licenses/LICENSE-2.0 1872 * 1873 * Unless required by applicable law or agreed to in writing, software 1874 * distributed under the License is distributed on an "AS IS" BASIS, 1875 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1876 * See the License for the specific language governing permissions and 1877 * limitations under the License. 1878 */function Hf(t){return new b6(t,!0)}/** 1879 * @license 1880 * Copyright 2017 Google LLC 1881 * 1882 * Licensed under the Apache License, Version 2.0 (the "License"); 1883 * you may not use this file except in compliance with the License. 1884 * You may obtain a copy of the License at 1885 * 1886 * http://www.apache.org/licenses/LICENSE-2.0 1887 * 1888 * Unless required by applicable law or agreed to in writing, software 1889 * distributed under the License is distributed on an "AS IS" BASIS, 1890 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1891 * See the License for the specific language governing permissions and 1892 * limitations under the License. 1893 */class f2{constructor(e,n,s=1e3,a=1.5,l=6e4){this.li=e,this.timerId=n,this.Qo=s,this.Ko=a,this.$o=l,this.Uo=0,this.Wo=null,this.Go=Date.now(),this.reset()}reset(){this.Uo=0}zo(){this.Uo=this.$o}jo(e){this.cancel();const n=Math.floor(this.Uo+this.Ho()),s=Math.max(0,Date.now()-this.Go),a=Math.max(0,n-s);a>0&&he("ExponentialBackoff",`Backing off for ${a} ms (base delay: ${this.Uo} ms, delay with jitter: ${n} ms, last attempt: ${s} ms ago)`),this.Wo=this.li.enqueueAfterDelay(this.timerId,a,(()=>(this.Go=Date.now(),e()))),this.Uo*=this.Ko,this.Uo<this.Qo&&(this.Uo=this.Qo),this.Uo>this.$o&&(this.Uo=this.$o)}Jo(){this.Wo!==null&&(this.Wo.skipDelay(),this.Wo=null)}cancel(){this.Wo!==null&&(this.Wo.cancel(),this.Wo=null)}Ho(){return(Math.random()-.5)*this.Uo}}/** 1894 * @license 1895 * Copyright 2017 Google LLC 1896 * 1897 * Licensed under the Apache License, Version 2.0 (the "License"); 1898 * you may not use this file except in compliance with the License. 1899 * You may obtain a copy of the License at 1900 * 1901 * http://www.apache.org/licenses/LICENSE-2.0 1902 * 1903 * Unless required by applicable law or agreed to in writing, software 1904 * distributed under the License is distributed on an "AS IS" BASIS, 1905 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1906 * See the License for the specific language governing permissions and 1907 * limitations under the License. 1908 */class m2{constructor(e,n,s,a,l,u,d,m){this.li=e,this.Yo=s,this.Zo=a,this.connection=l,this.authCredentialsProvider=u,this.appCheckCredentialsProvider=d,this.listener=m,this.state=0,this.Xo=0,this.e_=null,this.t_=null,this.stream=null,this.n_=0,this.r_=new f2(e,n)}i_(){return this.state===1||this.state===5||this.s_()}s_(){return this.state===2||this.state===3}start(){this.n_=0,this.state!==4?this.auth():this.o_()}async stop(){this.i_()&&await this.close(0)}__(){this.state=0,this.r_.reset()}a_(){this.s_()&&this.e_===null&&(this.e_=this.li.enqueueAfterDelay(this.Yo,6e4,(()=>this.u_())))}c_(e){this.l_(),this.stream.send(e)}async u_(){if(this.s_())return this.close(0)}l_(){this.e_&&(this.e_.cancel(),this.e_=null)}h_(){this.t_&&(this.t_.cancel(),this.t_=null)}async close(e,n){this.l_(),this.h_(),this.r_.cancel(),this.Xo++,e!==4?this.r_.reset():n&&n.code===ie.RESOURCE_EXHAUSTED?(Bs(n.toString()),Bs("Using maximum backoff delay to prevent overloading the backend."),this.r_.zo()):n&&n.code===ie.UNAUTHENTICATED&&this.state!==3&&(this.authCredentialsProvider.invalidateToken(),this.appCheckCredentialsProvider.invalidateToken()),this.stream!==null&&(this.P_(),this.stream.close(),this.stream=null),this.state=e,await this.listener.po(n)}P_(){}auth(){this.state=1;const e=this.T_(this.Xo),n=this.Xo;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then((([s,a])=>{this.Xo===n&&this.I_(s,a)}),(s=>{e((()=>{const a=new de(ie.UNKNOWN,"Fetching auth token failed: "+s.message);return this.E_(a)}))}))}I_(e,n){const s=this.T_(this.Xo);this.stream=this.d_(e,n),this.stream.Ro((()=>{s((()=>this.listener.Ro()))})),this.stream.mo((()=>{s((()=>(this.state=2,this.t_=this.li.enqueueAfterDelay(this.Zo,1e4,(()=>(this.s_()&&(this.state=3),Promise.resolve()))),this.listener.mo())))})),this.stream.po((a=>{s((()=>this.E_(a)))}
1908)),this.stream.onMessage((a=>{s((()=>++this.n_==1?this.A_(a):this.onNext(a)))}))}o_(){this.state=5,this.r_.jo((async()=>{this.state=0,this.start()}))}E_(e){return he("PersistentStream",`close with error: ${e}`),this.stream=null,this.close(4,e)}T_(e){return n=>{this.li.enqueueAndForget((()=>this.Xo===e?n():(he("PersistentStream","stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())))}}}class mU extends m2{constructor(e,n,s,a,l,u){super(e,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",n,s,a,u),this.serializer=l}d_(e,n){return this.connection.qo("Listen",e,n)}A_(e){return this.onNext(e)}onNext(e){this.r_.reset();const n=T6(this.serializer,e),s=(function(l){if(!("targetChange"in l))return Ee.min();const u=l.targetChange;return u.targetIds&&u.targetIds.length?Ee.min():u.readTime?Yi(u.readTime):Ee.min()})(e);return this.listener.R_(n,s)}V_(e){const n={};n.database=Xy(this.serializer),n.addTarget=(function(l,u){let d;const m=u.target;if(d=Hy(m)?{documents:A6(l,m)}:{query:N6(l,m).ct},d.targetId=u.targetId,u.resumeToken.approximateByteSize()>0){d.resumeToken=i2(l,u.resumeToken);const g=Yy(l,u.expectedCount);g!==null&&(d.expectedCount=g)}else if(u.snapshotVersion.compareTo(Ee.min())>0){d.readTime=xf(l,u.snapshotVersion.toTimestamp());const g=Yy(l,u.expectedCount);g!==null&&(d.expectedCount=g)}return d})(this.serializer,e);const s=R6(this.serializer,e);s&&(n.labels=s),this.c_(n)}m_(e){const n={};n.database=Xy(this.serializer),n.removeTarget=e,this.c_(n)}}class pU extends m2{constructor(e,n,s,a,l,u){super(e,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",n,s,a,u),this.serializer=l}get f_(){return this.n_>0}start(){this.lastStreamToken=void 0,super.start()}P_(){this.f_&&this.g_([])}d_(e,n){return this.connection.qo("Write",e,n)}A_(e){return Qe(!!e.streamToken),this.lastStreamToken=e.streamToken,Qe(!e.writeResults||e.writeResults.length===0),this.listener.p_()}onNext(e){Qe(!!e.streamToken),this.lastStreamToken=e.streamToken,this.r_.reset();const n=S6(e.writeResults,e.commitTime),s=Yi(e.commitTime);return this.listener.y_(s,n)}w_(){const e={};e.database=Xy(this.serializer),this.c_(e)}g_(e){const n={streamToken:this.lastStreamToken,writes:e.map((s=>E6(this.serializer,s)))};this.c_(n)}}/** 1909 * @license 1910 * Copyright 2017 Google LLC 1911 * 1912 * Licensed under the Apache License, Version 2.0 (the "License"); 1913 * you may not use this file except in compliance with the License. 1914 * You may obtain a copy of the License at 1915 * 1916 * http://www.apache.org/licenses/LICENSE-2.0 1917 * 1918 * Unless required by applicable law or agreed to in writing, software 1919 * distributed under the License is distributed on an "AS IS" BASIS, 1920 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1921 * See the License for the specific language governing permissions and 1922 * limitations under the License. 1923 */class gU extends class{}{constructor(e,n,s,a){super(),this.authCredentials=e,this.appCheckCredentials=n,this.connection=s,this.serializer=a,this.S_=!1}b_(){if(this.S_)throw new de(ie.FAILED_PRECONDITION,"The client has already been terminated.")}Oo(e,n,s,a){return this.b_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then((([l,u])=>this.connection.Oo(e,Wy(n,s),a,l,u))).catch((l=>{throw l.name==="FirebaseError"?(l.code===ie.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),l):new de(ie.UNKNOWN,l.toString())}))}ko(e,n,s,a,l){return this.b_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then((([u,d])=>this.connection.ko(e,Wy(n,s),a,u,d,l))).catch((u=>{throw u.name==="FirebaseError"?(u.code===ie.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),u):new de(ie.UNKNOWN,u.toString())}))}terminate(){this.S_=!0,this.connection.terminate()}}class yU{constructor(e,n){this.asyncQueue=e,this.onlineStateHandler=n,this.state="Unknown",this.D_=0,this.v_=null,this.C_=!0}F_(){this.D_===0&&(this.M_("Unknown"),this.v_=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,(()=>(this.v_=null,this.x_("Backend didn't respond within 10 seconds."),this.M_("Offline"),Promise.resolve()))))}O_(e){this.state==="Online"?this.M_("Unknown"):(this.D_++,this.D_>=1&&(this.N_(),this.x_(`Connection failed 1 times. Most recent error: ${e.toString()}`),this.M_("Offline")))}set(e){this.N_(),this.D_=0,e==="Online"&&(this.C_=!1),this.M_(e)}M_(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))}x_(e){const n=`Could not reach Cloud Firestore backend. ${e} 1924This typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.`;this.C_?(Bs(n),this.C_=!1):he("OnlineStateTracker",n)}N_(){this.v_!==null&&(this.v_.cancel(),this.v_=null)}}/** 1925 * @license 1926 * Copyright 2017 Google LLC 1927 * 1928 * Licensed under the Apache License, Version 2.0 (the "License");
1929 * you may not use this file except in compliance with the License. 1930 * You may obtain a copy of the License at 1931 * 1932 * http://www.apache.org/licenses/LICENSE-2.0 1933 * 1934 * Unless required by applicable law or agreed to in writing, software 1935 * distributed under the License is distributed on an "AS IS" BASIS, 1936 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1937 * See the License for the specific language governing permissions and 1938 * limitations under the License. 1939 */class xU{constructor(e,n,s,a,l){this.localStore=e,this.datastore=n,this.asyncQueue=s,this.remoteSyncer={},this.L_=[],this.B_=new Map,this.k_=new Set,this.q_=[],this.Q_=l,this.Q_.uo((u=>{s.enqueueAndForget((async()=>{to(this)&&(he("RemoteStore","Restarting streams for network reachability change."),await(async function(m){const g=Ne(m);g.k_.add(4),await qu(g),g.K_.set("Unknown"),g.k_.delete(4),await $f(g)})(this))}))})),this.K_=new yU(s,a)}}async function $f(t){if(to(t))for(const e of t.q_)await e(!0)}async function qu(t){for(const e of t.q_)await e(!1)}function p2(t,e){const n=Ne(t);n.B_.has(e.targetId)||(n.B_.set(e.targetId,e),xv(n)?yv(n):Pl(n).s_()&&gv(n,e))}function pv(t,e){const n=Ne(t),s=Pl(n);n.B_.delete(e),s.s_()&&g2(n,e),n.B_.size===0&&(s.s_()?s.a_():to(n)&&n.K_.set("Unknown"))}function gv(t,e){if(t.U_.xe(e.targetId),e.resumeToken.approximateByteSize()>0||e.snapshotVersion.compareTo(Ee.min())>0){const n=t.remoteSyncer.getRemoteKeysForTarget(e.targetId).size;e=e.withExpectedCount(n)}Pl(t).V_(e)}function g2(t,e){t.U_.xe(e),Pl(t).m_(e)}function yv(t){t.U_=new g6({getRemoteKeysForTarget:e=>t.remoteSyncer.getRemoteKeysForTarget(e),ut:e=>t.B_.get(e)||null,nt:()=>t.datastore.serializer.databaseId}),Pl(t).start(),t.K_.F_()}function xv(t){return to(t)&&!Pl(t).i_()&&t.B_.size>0}function to(t){return Ne(t).k_.size===0}function y2(t){t.U_=void 0}async function vU(t){t.K_.set("Online")}async function bU(t){t.B_.forEach(((e,n)=>{gv(t,e)}))}async function wU(t,e){y2(t),xv(t)?(t.K_.O_(e),yv(t)):t.K_.set("Unknown")}async function _U(t,e,n){if(t.K_.set("Online"),e instanceof n2&&e.state===2&&e.cause)try{await(async function(a,l){const u=l.cause;for(const d of l.targetIds)a.B_.has(d)&&(await a.remoteSyncer.rejectListen(d,u),a.B_.delete(d),a.U_.removeTarget(d))})(t,e)}catch(s){he("RemoteStore","Failed to remove targets %s: %s ",e.targetIds.join(","),s),await bf(t,s)}else if(e instanceof Wd?t.U_.$e(e):e instanceof t2?t.U_.Je(e):t.U_.Ge(e),!n.isEqual(Ee.min()))try{const s=await d2(t.localStore);n.compareTo(s)>=0&&await(function(l,u){const d=l.U_.it(u);
1939return d.targetChanges.forEach(((m,g)=>{if(m.resumeToken.approximateByteSize()>0){const x=l.B_.get(g);x&&l.B_.set(g,x.withResumeToken(m.resumeToken,u))}})),d.targetMismatches.forEach(((m,g)=>{const x=l.B_.get(m);if(!x)return;l.B_.set(m,x.withResumeToken(rn.EMPTY_BYTE_STRING,x.snapshotVersion)),g2(l,m);const v=new Gr(x.target,m,g,x.sequenceNumber);gv(l,v)})),l.remoteSyncer.applyRemoteEvent(d)})(t,n)}catch(s){he("RemoteStore","Failed to raise snapshot:",s),await bf(t,s)}}async function bf(t,e,n){if(!Ll(e))throw e;t.k_.add(1),await qu(t),t.K_.set("Offline"),n||(n=()=>d2(t.localStore)),t.asyncQueue.enqueueRetryable((async()=>{he("RemoteStore","Retrying IndexedDB access"),await n(),t.k_.delete(1),await $f(t)}))}function x2(t,e){return e().catch((n=>bf(t,n,e)))}async function Kf(t){const e=Ne(t),n=na(e);let s=e.L_.length>0?e.L_[e.L_.length-1].batchId:-1;for(;TU(e);)try{const a=await aU(e.localStore,s);if(a===null){e.L_.length===0&&n.a_();break}s=a.batchId,EU(e,a)}catch(a){await bf(e,a)}v2(e)&&b2(e)}function TU(t){return to(t)&&t.L_.length<10}function EU(t,e){t.L_.push(e);const n=na(t);n.s_()&&n.f_&&n.g_(e.mutations)}function v2(t){return to(t)&&!na(t).i_()&&t.L_.length>0}function b2(t){na(t).start()}async function SU(t){na(t).w_()}async function AU(t){const e=na(t);for(const n of t.L_)e.g_(n.mutations)}async function NU(t,e,n){const s=t.L_.shift(),a=cv.from(s,e,n);await x2(t,(()=>t.remoteSyncer.applySuccessfulWrite(a))),await Kf(t)}async function jU(t,e){e&&na(t).f_&&await(async function(s,a){if((function(u){return f6(u)&&u!==ie.ABORTED})(a.code)){const l=s.L_.shift();na(s).__(),await x2(s,(()=>s.remoteSyncer.rejectFailedWrite(l.batchId,a))),await Kf(s)}})(t,e),v2(t)&&b2(t)}async function $T(t,e){const n=Ne(t);n.asyncQueue.verifyOperationInProgress(),he("RemoteStore","RemoteStore received new credentials");const s=to(n);n.k_.add(3),await qu(n),s&&n.K_.set("Unknown"),await n.remoteSyncer.handleCredentialChange(e),n.k_.delete(3),await $f(n)}async function RU(t,e){const n=Ne(t);e?(n.k_.delete(2),await $f(n)):e||(n.k_.add(2),await qu(n),n.K_.set("Unknown"))}function Pl(t){return t.W_||(t.W_=(function(n,s,a){const l=Ne(n);return l.b_(),new mU(s,l.connection,l.authCredentials,l.appCheckCredentials,l.serializer,a)})(t.datastore,t.asyncQueue,{Ro:vU.bind(null,t),mo:bU.bind(null,t),po:wU.bind(null,t),R_:_U.bind(null,t)}),t.q_.push((async e=>{e?(t.W_.__(),xv(t)?yv(t):t.K_.set("Unknown")):(await t.W_.stop(),y2(t))}))),t.W_}function na(t){return t.G_||(t.G_=(function(n,s,a){const l=Ne(n);return l.b_(),new pU(s,l.connection,l.authCredentials,l.appCheckCredentials,l.serializer,a)})(t.datastore,t.asyncQueue,{Ro:()=>Promise.resolve(),mo:SU.bind(null,t),po:jU.bind(null,t),p_:AU.bind(null,t),y_:NU.bind(null,t)}),t.q_.push((async e=>{e?(t.G_.__(),await Kf(t)):(await t.G_.stop(),t.L_.length>0&&(he("RemoteStore",`Stopping write stream with ${t.L_.length} pending writes`),t.L_=[]))}))),t.G_}/** 1940 * @license 1941 * Copyright 2017 Google LLC 1942 * 1943 * Licensed under the Apache License, Version 2.0 (the "License"); 1944 * you may not use this file except in compliance with the License. 1945 * You may obtain a copy of the License at 1946 * 1947 * http://www.apache.org/licenses/LICENSE-2.0 1948 * 1949 * Unless required by applicable law or agreed to in writing, software 1950 * distributed under the License is distributed on an "AS IS" BASIS, 1951 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1952 * See the License for the specific language governing permissions and 1953 * limitations under the License. 1954 */class vv{constructor(e,n,s,a,l){this.asyncQueue=e,this.timerId=n,this.targetTimeMs=s,this.op=a,this.removalCallback=l,this.deferred=new Os,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch((u=>{}))}get promise(){return this.deferred.promise}static createAndSchedule(e,n,s,a,l){const u=Date.now()+s,d=new vv(e,n,u,a,l);return d.start(s),d}start(e){this.timerHandle=setTimeout((()=>this.handleDelayElapsed()),e)}skipDelay(){return this.handleDelayElapsed()}cancel(e){this.timerHandle!==null&&(this.clearTimeout(),this.deferred.reject(new de(ie.CANCELLED,"Operation cancelled"+(e?": "+e:""))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget((()=>this.timerHandle!==null?(this.clearTimeout(),this.op().then((e=>
1954this.deferred.resolve(e)))):Promise.resolve()))}clearTimeout(){this.timerHandle!==null&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function bv(t,e){if(Bs("AsyncQueue",`${e}: ${t}`),Ll(t))return new de(ie.UNAVAILABLE,`${e}: ${t}`);throw t}/** 1955 * @license 1956 * Copyright 2017 Google LLC 1957 * 1958 * Licensed under the Apache License, Version 2.0 (the "License"); 1959 * you may not use this file except in compliance with the License. 1960 * You may obtain a copy of the License at 1961 * 1962 * http://www.apache.org/licenses/LICENSE-2.0 1963 * 1964 * Unless required by applicable law or agreed to in writing, software 1965 * distributed under the License is distributed on an "AS IS" BASIS, 1966 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1967 * See the License for the specific language governing permissions and 1968 * limitations under the License. 1969 */class cl{static emptySet(e){return new cl(e.comparator)}constructor(e){this.comparator=e?(n,s)=>e(n,s)||xe.comparator(n.key,s.key):(n,s)=>xe.comparator(n.key,s.key),this.keyedMap=tu(),this.sortedSet=new pt(this.comparator)}has(e){return this.keyedMap.get(e)!=null}get(e){return this.keyedMap.get(e)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(e){const n=this.keyedMap.get(e);return n?this.sortedSet.indexOf(n):-1}get size(){return this.sortedSet.size}forEach(e){this.sortedSet.inorderTraversal(((n,s)=>(e(n),!1)))}add(e){const n=this.delete(e.key);return n.copy(n.keyedMap.insert(e.key,e),n.sortedSet.insert(e,null))}delete(e){const n=this.get(e);return n?this.copy(this.keyedMap.remove(e),this.sortedSet.remove(n)):this}isEqual(e){if(!(e instanceof cl)||this.size!==e.size)return!1;const n=this.sortedSet.getIterator(),s=e.sortedSet.getIterator();for(;n.hasNext();){const a=n.getNext().key,l=s.getNext().key;if(!a.isEqual(l))return!1}return!0}toString(){const e=[];return this.forEach((n=>{e.push(n.toString())})),e.length===0?"DocumentSet ()":`DocumentSet ( 1970 `+e.join(` 1971`)+` 1972)`}copy(e,n){const s=new cl;return s.comparator=this.comparator,s.keyedMap=e,s.sortedSet=n,s}}/** 1973 * @license 1974 * Copyright 2017 Google LLC 1975 * 1976 * Licensed under the Apache License, Version 2.0 (the "License"); 1977 * you may not use this file except in compliance with the License. 1978 * You may obtain a copy of the License at 1979 * 1980 * http://www.apache.org/licenses/LICENSE-2.0 1981 * 1982 * Unless required by applicable law or agreed to in writing, software 1983 * distributed under the License is distributed on an "AS IS" BASIS, 1984 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1985 * See the License for the specific language governing permissions and 1986 * limitations under the License. 1987 */class KT{constructor(){this.z_=new pt(xe.comparator)}track(e){const n=e.doc.key,s=this.z_.get(n);s?e.type!==0&&s.type===3?this.z_=this.z_.insert(n,e):e.type===3&&s.type!==1?this.z_=this.z_.insert(n,{type:s.type,doc:e.doc}):e.type===2&&s.type===2?this.z_=this.z_.insert(n,{type:2,doc:e.doc}):e.type===2&&s.type===0?this.z_=this.z_.insert(n,{type:0,doc:e.doc}):e.type===1&&s.type===0?this.z_=this.z_.remove(n):e.type===1&&s.type===2?this.z_=this.z_.insert(n,{type:1,doc:s.doc}):e.type===0&&s.type===1?this.z_=this.z_.insert(n,{type:2,doc:e.doc}):Te():this.z_=this.z_.insert(n,e)}j_(){const e=[];return this.z_.inorderTraversal(((n,s)=>{e.push(s)})),e}}class bl{constructor(e,n,s,a,l,u,d,m,g){this.query=e,this.docs=n,this.oldDocs=s,this.docChanges=a,this.mutatedKeys=l,this.fromCache=u,this.syncStateChanged=d,this.excludesMetadataChanges=m,this.hasCachedResults=g}static fromInitialDocuments(e,n,s,a,l){const u=[];return n.forEach((d=>{u.push({type:0,doc:d})})),new bl(e,n,cl.emptySet(n),u,s,a,!0,!1,l)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(e){if(!(this.fromCache===e.fromCache&&this.hasCachedResults===e.hasCachedResults&&this.syncStateChanged===e.syncStateChanged&&this.mutatedKeys.isEqual(e.mutatedKeys)&&Bf(this.query,e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))return!1;const n=this.docChanges,s=e.docChanges;if(n.length!==s.length)return!1;for(let a=0;a<n.length;a++)if(n[a].type!==s[a].type||!n[a].doc.isEqual(s[a].doc))return!1;return!0}}/** 1988 * @license 1989 * Copyright 2017 Google LLC 1990 * 1991 * Licensed under the Apache License, Version 2.0 (the "License");
1992 * you may not use this file except in compliance with the License. 1993 * You may obtain a copy of the License at 1994 * 1995 * http://www.apache.org/licenses/LICENSE-2.0 1996 * 1997 * Unless required by applicable law or agreed to in writing, software 1998 * distributed under the License is distributed on an "AS IS" BASIS, 1999 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2000 * See the License for the specific language governing permissions and 2001 * limitations under the License. 2002 */class CU{constructor(){this.H_=void 0,this.J_=[]}Y_(){return this.J_.some((e=>e.Z_()))}}class IU{constructor(){this.queries=YT(),this.onlineState="Unknown",this.X_=new Set}terminate(){(function(n,s){const a=Ne(n),l=a.queries;a.queries=YT(),l.forEach(((u,d)=>{for(const m of d.J_)m.onError(s)}))})(this,new de(ie.ABORTED,"Firestore shutting down"))}}function YT(){return new eo((t=>FN(t)),Bf)}async function w2(t,e){const n=Ne(t);let s=3;const a=e.query;let l=n.queries.get(a);l?!l.Y_()&&e.Z_()&&(s=2):(l=new CU,s=e.Z_()?0:1);try{switch(s){case 0:l.H_=await n.onListen(a,!0);break;case 1:l.H_=await n.onListen(a,!1);break;case 2:await n.onFirstRemoteStoreListen(a)}}catch(u){const d=bv(u,`Initialization of query '${Xo(e.query)}' failed`);return void e.onError(d)}n.queries.set(a,l),l.J_.push(e),e.ea(n.onlineState),l.H_&&e.ta(l.H_)&&wv(n)}async function _2(t,e){const n=Ne(t),s=e.query;let a=3;const l=n.queries.get(s);if(l){const u=l.J_.indexOf(e);u>=0&&(l.J_.splice(u,1),l.J_.length===0?a=e.Z_()?0:1:!l.Y_()&&e.Z_()&&(a=2))}switch(a){case 0:return n.queries.delete(s),n.onUnlisten(s,!0);case 1:return n.queries.delete(s),n.onUnlisten(s,!1);case 2:return n.onLastRemoteStoreUnlisten(s);default:return}}function DU(t,e){const n=Ne(t);let s=!1;for(const a of e){const l=a.query,u=n.queries.get(l);if(u){for(const d of u.J_)d.ta(a)&&(s=!0);u.H_=a}}s&&wv(n)}function kU(t,e,n){const s=Ne(t),a=s.queries.get(e);if(a)for(const l of a.J_)l.onError(n);s.queries.delete(e)}function wv(t){t.X_.forEach((e=>{e.next()}))}var Zy,WT;(WT=Zy||(Zy={})).na="default",WT.Cache="cache";class T2{constructor(e,n,s){this.query=e,this.ra=n,this.ia=!1,this.sa=null,this.onlineState="Unknown",this.options=s||{}}ta(e){if(!this.options.includeMetadataChanges){const s=[];for(const a of e.docChanges)a.type!==3&&s.push(a);e=new bl(e.query,e.docs,e.oldDocs,s,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0,e.hasCachedResults)}let n=!1;return this.ia?this.oa(e)&&(this.ra.next(e),n=!0):this._a(e,this.onlineState)&&(this.aa(e),n=!0),this.sa=e,n}onError(e){this.ra.error(e)}ea(e){this.onlineState=e;let n=!1;return this.sa&&!this.ia&&this._a(this.sa,e)&&(this.aa(this.sa),n=!0),n}_a(e,n){if(!e.fromCache||!this.Z_())return!0;const s=n!=="Offline";return(!this.options.ua||!s)&&(!e.docs.isEmpty()||e.hasCachedResults||n==="Offline")}oa(e){if(e.docChanges.length>0)return!0;const n=this.sa&&this.sa.hasPendingWrites!==e.hasPendingWrites;return!(!e.syncStateChanged&&!n)&&this.options.includeMetadataChanges===!0}aa(e){e=bl.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache,e.hasCachedResults),this.ia=!0,this.ra.next(e)}Z_(){return this.options.source!==Zy.Cache}}/** 2003 * @license 2004 * Copyright 2017 Google LLC 2005 * 2006 * Licensed under the Apache License, Version 2.0 (the "License"); 2007 * you may not use this file except in compliance with the License. 2008 * You may obtain a copy of the License at 2009 * 2010 * http://www.apache.org/licenses/LICENSE-2.0 2011 * 2012 * Unless required by applicable law or agreed to in writing, software 2013 * distributed under the License is distributed on an "AS IS" BASIS, 2014 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2015 * See the License for the specific language governing permissions and 2016 * limitations under the License. 2017 */class E2{constructor(e){this.key=e}}class S2{constructor(e){this.key=e}}class MU{constructor(e,n){this.query=e,this.da=n,this.Aa=null,this.hasCachedResults=!1,this.current=!1,this.Ra=Ue(),this.mutatedKeys=Ue(),this.Va=GN(e),this.ma=new cl(this.Va)}get fa(){return this.da}ga(e,n){const s=n?n.pa:new KT,a=n?n.ma:this.ma;let l=n?n.mutatedKeys:this.mutatedKeys,u=a,d=!1;const m=this.query.limitType==="F"&&a.size===this.query.limit?a.last():null,g=this.query.limitType==="L"&&a.size===this.query.limit?a.first():null;if(e.inorderTraversal(((x,v)=>{const T=a.get(x),E=zf(this.query,v)?v:null,C=!!T&&this.mutatedKeys.has(T.key),L=!!E&&(E.hasLocalMutations||this.mutatedKeys.has(E.key)&&E.hasCommittedMutations);let R=!1;T&&E?T.data.isEqual(E.data)?C!==L&&(s.track({type:3,doc:E}),R=!0):this.ya(T,E)||(s.track({type:2,doc:E}),R=!0,(m&&this.Va(E,m)>0||g&&this.Va(E,g)<0)&&(d=!0)):!T&&E?(s.track({type:0,doc:E}),R=!0):T&&!E&&(s.track({type:1,doc:T}),R=!0,(m||g)&&(d=!0)),R&&(E?(u=u.add(E),l=L?l.add(x):l.delete(x)):(u=u.delete(x),l=l.delete(x)))}
2017)),this.query.limit!==null)for(;u.size>this.query.limit;){const x=this.query.limitType==="F"?u.last():u.first();u=u.delete(x.key),l=l.delete(x.key),s.track({type:1,doc:x})}return{ma:u,pa:s,ss:d,mutatedKeys:l}}ya(e,n){return e.hasLocalMutations&&n.hasCommittedMutations&&!n.hasLocalMutations}applyChanges(e,n,s,a){const l=this.ma;this.ma=e.ma,this.mutatedKeys=e.mutatedKeys;const u=e.pa.j_();u.sort(((x,v)=>(function(E,C){const L=R=>{switch(R){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return Te()}};return L(E)-L(C)})(x.type,v.type)||this.Va(x.doc,v.doc))),this.wa(s),a=a!=null&&a;const d=n&&!a?this.Sa():[],m=this.Ra.size===0&&this.current&&!a?1:0,g=m!==this.Aa;return this.Aa=m,u.length!==0||g?{snapshot:new bl(this.query,e.ma,l,u,e.mutatedKeys,m===0,g,!1,!!s&&s.resumeToken.approximateByteSize()>0),ba:d}:{ba:d}}ea(e){return this.current&&e==="Offline"?(this.current=!1,this.applyChanges({ma:this.ma,pa:new KT,mutatedKeys:this.mutatedKeys,ss:!1},!1)):{ba:[]}}Da(e){return!this.da.has(e)&&!!this.ma.has(e)&&!this.ma.get(e).hasLocalMutations}wa(e){e&&(e.addedDocuments.forEach((n=>this.da=this.da.add(n))),e.modifiedDocuments.forEach((n=>{})),e.removedDocuments.forEach((n=>this.da=this.da.delete(n))),this.current=e.current)}Sa(){if(!this.current)return[];const e=this.Ra;this.Ra=Ue(),this.ma.forEach((s=>{this.Da(s.key)&&(this.Ra=this.Ra.add(s.key))}));const n=[];return e.forEach((s=>{this.Ra.has(s)||n.push(new S2(s))})),this.Ra.forEach((s=>{e.has(s)||n.push(new E2(s))})),n}va(e){this.da=e.ds,this.Ra=Ue();const n=this.ga(e.documents);return this.applyChanges(n,!0)}Ca(){return bl.fromInitialDocuments(this.query,this.ma,this.mutatedKeys,this.Aa===0,this.hasCachedResults)}}class LU{constructor(e,n,s){this.query=e,this.targetId=n,this.view=s}}class OU{constructor(e){this.key=e,this.Fa=!1}}class PU{constructor(e,n,s,a,l,u){this.localStore=e,this.remoteStore=n,this.eventManager=s,this.sharedClientState=a,this.currentUser=l,this.maxConcurrentLimboResolutions=u,this.Ma={},this.xa=new eo((d=>FN(d)),Bf),this.Oa=new Map,this.Na=new Set,this.La=new pt(xe.comparator),this.Ba=new Map,this.ka=new dv,this.qa={},this.Qa=new Map,this.Ka=vl.Qn(),this.onlineState="Unknown",this.$a=void 0}get isPrimaryClient(){return this.$a===!0}}async function VU(t,e,n=!0){const s=I2(t);let a;const l=s.xa.get(e);return l?(s.sharedClientState.addLocalQueryTarget(l.targetId),a=l.view.Ca()):a=await A2(s,e,n,!0),a}async function UU(t,e){const n=I2(t);await A2(n,e,!0,!1)}async function A2(t,e,n,s){const a=await oU(t.localStore,Ki(e)),l=a.targetId,u=t.sharedClientState.addLocalQueryTarget(l,n);let d;return s&&(d=await BU(t,e,l,u==="current",a.resumeToken)),t.isPrimaryClient&&n&&p2(t.remoteStore,a),d}async function BU(t,e,n,s,a){t.Ua=(v,T,E)=>(async function(L,R,V,G){let z=R.view.ga(V);z.ss&&(z=await GT(L.localStore,R.query,!1).then((({documents:D})=>R.view.ga(D,z))));const ne=G&&G.targetChanges.get(R.targetId),re=G&&G.targetMismatches.get(R.targetId)!=null,le=R.view.applyChanges(z,L.isPrimaryClient,ne,re);return XT(L,R.targetId,le.ba),le.snapshot})(t,v,T,E);const l=await GT(t.localStore,e,!0),u=new MU(e,l.ds),d=u.ga(l.documents),m=Gu.createSynthesizedTargetChangeForCurrentChange(n,s&&t.onlineState!=="Offline",a),g=u.applyChanges(d,t.isPrimaryClient,m);XT(t,n,g.ba);const x=new LU(e,n,u);return t.xa.set(e,x),t.Oa.has(n)?t.Oa.get(n).push(e):t.Oa.set(n,[e]),g.snapshot}async function zU(t,e,n){const s=Ne(t),a=s.xa.get(e),l=s.Oa.get(a.targetId);if(l.length>1)return s.Oa.set(a.targetId,l.filter((u=>!Bf(u,e)))),void s.xa.delete(e);s.isPrimaryClient?(s.sharedClientState.removeLocalQueryTarget(a.targetId),s.sharedClientState.isActiveQueryTarget(a.targetId)||await Jy(s.localStore,a.targetId,!1).then((()=>{s.sharedClientState.clearQueryState(a.targetId),n&&pv(s.remoteStore,a.targetId),ex(s,a.targetId)})).catch(Ml)):(ex(s,a.targetId),await Jy(s.localStore,a.targetId,!0))}async function FU(t,e){const n=Ne(t),s=n.xa.get(e),a=n.Oa.get(s.targetId);n.isPrimaryClient&&a.length===1&&(n.sharedClientState.removeLocalQueryTarget(s.targetId),pv(n.remoteStore,s.targetId))}async function GU(t,e,n){const s=QU(t);try{const a=await(function(u,d){const m=Ne(u),g=Ot.now(),x=d.reduce(((E,C)=>E.add(C.key)),Ue());let v,T;return m.persistence.runTransaction("Locally write mutations","readwrite",(E=>{let C=zs(),L=Ue();return m.hs.getEntries(E,x).next((R=>
2017{C=R,C.forEach(((V,G)=>{G.isValidDocument()||(L=L.add(V))}))})).next((()=>m.localDocuments.getOverlayedDocuments(E,C))).next((R=>{v=R;const V=[];for(const G of d){const z=l6(G,v.get(G.key).overlayedDocument);z!=null&&V.push(new ra(G.key,z,MN(z.value.mapValue),_i.exists(!0)))}return m.mutationQueue.addMutationBatch(E,g,V,d)})).next((R=>{T=R;const V=R.applyToLocalDocumentSet(v,L);return m.documentOverlayCache.saveOverlays(E,R.batchId,V)}))})).then((()=>({batchId:T.batchId,changes:HN(v)})))})(s.localStore,e);s.sharedClientState.addPendingMutation(a.batchId),(function(u,d,m){let g=u.qa[u.currentUser.toKey()];g||(g=new pt(Fe)),g=g.insert(d,m),u.qa[u.currentUser.toKey()]=g})(s,a.batchId,n),await Hu(s,a.changes),await Kf(s.remoteStore)}catch(a){const l=bv(a,"Failed to persist write");n.reject(l)}}async function N2(t,e){const n=Ne(t);try{const s=await sU(n.localStore,e);e.targetChanges.forEach(((a,l)=>{const u=n.Ba.get(l);u&&(Qe(a.addedDocuments.size+a.modifiedDocuments.size+a.removedDocuments.size<=1),a.addedDocuments.size>0?u.Fa=!0:a.modifiedDocuments.size>0?Qe(u.Fa):a.removedDocuments.size>0&&(Qe(u.Fa),u.Fa=!1))})),await Hu(n,s,e)}catch(s){await Ml(s)}}function QT(t,e,n){const s=Ne(t);if(s.isPrimaryClient&&n===0||!s.isPrimaryClient&&n===1){const a=[];s.xa.forEach(((l,u)=>{const d=u.view.ea(e);d.snapshot&&a.push(d.snapshot)})),(function(u,d){const m=Ne(u);m.onlineState=d;let g=!1;m.queries.forEach(((x,v)=>{for(const T of v.J_)T.ea(d)&&(g=!0)})),g&&wv(m)})(s.eventManager,e),a.length&&s.Ma.R_(a),s.onlineState=e,s.isPrimaryClient&&s.sharedClientState.setOnlineState(e)}}async function qU(t,e,n){const s=Ne(t);s.sharedClientState.updateQueryState(e,"rejected",n);const a=s.Ba.get(e),l=a&&a.key;if(l){let u=new pt(xe.comparator);u=u.insert(l,dn.newNoDocument(l,Ee.min()));const d=Ue().add(l),m=new qf(Ee.min(),new Map,new pt(Fe),u,d);await N2(s,m),s.La=s.La.remove(l),s.Ba.delete(e),_v(s)}else await Jy(s.localStore,e,!1).then((()=>ex(s,e,n))).catch(Ml)}async function HU(t,e){const n=Ne(t),s=e.batch.batchId;try{const a=await iU(n.localStore,e);R2(n,s,null),j2(n,s),n.sharedClientState.updateMutationState(s,"acknowledged"),await Hu(n,a)}catch(a){await Ml(a)}}async function $U(t,e,n){const s=Ne(t);try{const a=await(function(u,d){const m=Ne(u);return m.persistence.runTransaction("Reject batch","readwrite-primary",(g=>{let x;return m.mutationQueue.lookupMutationBatch(g,d).next((v=>(Qe(v!==null),x=v.keys(),m.mutationQueue.removeMutationBatch(g,v)))).next((()=>m.mutationQueue.performConsistencyCheck(g))).next((()=>m.documentOverlayCache.removeOverlaysForBatchId(g,x,d))).next((()=>m.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(g,x))).next((()=>m.localDocuments.getDocuments(g,x)))}))})(s.localStore,e);R2(s,e,n),j2(s,e),s.sharedClientState.updateMutationState(e,"rejected",n),await Hu(s,a)}catch(a){await Ml(a)}}function j2(t,e){(t.Qa.get(e)||[]).forEach((n=>{n.resolve()})),t.Qa.delete(e)}function R2(t,e,n){const s=Ne(t);let a=s.qa[s.currentUser.toKey()];if(a){const l=a.get(e);l&&(n?l.reject(n):l.resolve(),a=a.remove(e)),s.qa[s.currentUser.toKey()]=a}}
2017function ex(t,e,n=null){t.sharedClientState.removeLocalQueryTarget(e);for(const s of t.Oa.get(e))t.xa.delete(s),n&&t.Ma.Wa(s,n);t.Oa.delete(e),t.isPrimaryClient&&t.ka.yr(e).forEach((s=>{t.ka.containsKey(s)||C2(t,s)}))}function C2(t,e){t.Na.delete(e.path.canonicalString());const n=t.La.get(e);n!==null&&(pv(t.remoteStore,n),t.La=t.La.remove(e),t.Ba.delete(n),_v(t))}function XT(t,e,n){for(const s of n)s instanceof E2?(t.ka.addReference(s.key,e),KU(t,s)):s instanceof S2?(he("SyncEngine","Document no longer in limbo: "+s.key),t.ka.removeReference(s.key,e),t.ka.containsKey(s.key)||C2(t,s.key)):Te()}function KU(t,e){const n=e.key,s=n.path.canonicalString();t.La.get(n)||t.Na.has(s)||(he("SyncEngine","New document in limbo: "+n),t.Na.add(s),_v(t))}function _v(t){for(;t.Na.size>0&&t.La.size<t.maxConcurrentLimboResolutions;){const e=t.Na.values().next().value;t.Na.delete(e);const n=new xe(lt.fromString(e)),s=t.Ka.next();t.Ba.set(s,new OU(n)),t.La=t.La.insert(n,s),p2(t.remoteStore,new Gr(Ki(av(n.path)),s,"TargetPurposeLimboResolution",Pf.oe))}}async function Hu(t,e,n){const s=Ne(t),a=[],l=[],u=[];s.xa.isEmpty()||(s.xa.forEach(((d,m)=>{u.push(s.Ua(m,e,n).then((g=>{var x;if((g||n)&&s.isPrimaryClient){const v=g?!g.fromCache:(x=n==null?void 0:n.targetChanges.get(m.targetId))===null||x===void 0?void 0:x.current;s.sharedClientState.updateQueryState(m.targetId,v?"current":"not-current")}if(g){a.push(g);const v=mv.zi(m.targetId,g);l.push(v)}})))})),await Promise.all(u),s.Ma.R_(a),await(async function(m,g){const x=Ne(m);try{await x.persistence.runTransaction("notifyLocalViewChanges","readwrite",(v=>se.forEach(g,(T=>se.forEach(T.Wi,(E=>x.persistence.referenceDelegate.addReference(v,T.targetId,E))).next((()=>se.forEach(T.Gi,(E=>x.persistence.referenceDelegate.removeReference(v,T.targetId,E)))))))))}catch(v){if(!Ll(v))throw v;he("LocalStore","Failed to update sequence numbers: "+v)}for(const v of g){const T=v.targetId;if(!v.fromCache){const E=x.us.get(T),C=E.snapshotVersion,L=E.withLastLimboFreeSnapshotVersion(C);x.us=x.us.insert(T,L)}}})(s.localStore,l))}async function YU(t,e){const n=Ne(t);if(!n.currentUser.isEqual(e)){he("SyncEngine","User change. New user:",e.toKey());const s=await h2(n.localStore,e);n.currentUser=e,(function(l,u){l.Qa.forEach((d=>{d.forEach((m=>{m.reject(new de(ie.CANCELLED,u))}))})),l.Qa.clear()})(n,"'waitForPendingWrites' promise is rejected due to a user change."),n.sharedClientState.handleUserChange(e,s.removedBatchIds,s.addedBatchIds),await Hu(n,s.Ts)}}function WU(t,e){const n=Ne(t),s=n.Ba.get(e);if(s&&s.Fa)return Ue().add(s.key);{let a=Ue();const l=n.Oa.get(e);if(!l)return a;for(const u of l){const d=n.xa.get(u);a=a.unionWith(d.view.fa)}return a}}function I2(t){const e=Ne(t);return e.remoteStore.remoteSyncer.applyRemoteEvent=N2.bind(null,e),e.remoteStore.remoteSyncer.getRemoteKeysForTarget=WU.bind(null,e),e.remoteStore.remoteSyncer.rejectListen=qU.bind(null,e),e.Ma.R_=DU.bind(null,e.eventManager),e.Ma.Wa=kU.bind(null,e.eventManager),e}function QU(t){const e=Ne(t);return e.remoteStore.remoteSyncer.applySuccessfulWrite=HU.bind(null,e),e.remoteStore.remoteSyncer.rejectFailedWrite=$U.bind(null,e),e}class wf{constructor(){this.kind="memory",this.synchronizeTabs=!1}async initialize(e){this.serializer=Hf(e.databaseInfo.databaseId),this.sharedClientState=this.za(e),this.persistence=this.ja(e),await this.persistence.start(),this.localStore=this.Ha(e),this.gcScheduler=this.Ja(e,this.localStore),this.indexBackfillerScheduler=this.Ya(e,this.localStore)}Ja(e,n){return null}Ya(e,n){return null}Ha(e){return nU(this.persistence,new eU,e.initialUser,this.serializer)}ja(e){return new u2(fv.ei,this.serializer)}za(e){return new cU}async terminate(){var e,n;(e=this.gcScheduler)===null||e===void 0||e.stop(),(n=this.indexBackfillerScheduler)===null||n===void 0||n.stop(),this.sharedClientState.shutdown(),await this.persistence.shutdown()}}wf.provider={build:()=>new wf};class XU extends wf{constructor(e){super(),this.cacheSizeBytes=e}Ja(e,n){Qe(this.persistence.referenceDelegate instanceof vf);const s=this.persistence.referenceDelegate.garbageCollector;return new U6(s,e.asyncQueue,n)}ja(e){const n=this.cacheSizeBytes!==void 0?In.withCacheSize(this.cacheSizeBytes):In.DEFAULT;return new u2((s=>vf.ei(s,n)),this.serializer)}}class tx{async initialize(e,n){this.localStore||(this.localStore=e.localStore,this.sharedCl
2017ientState=e.sharedClientState,this.datastore=this.createDatastore(n),this.remoteStore=this.createRemoteStore(n),this.eventManager=this.createEventManager(n),this.syncEngine=this.createSyncEngine(n,!e.synchronizeTabs),this.sharedClientState.onlineStateHandler=s=>QT(this.syncEngine,s,1),this.remoteStore.remoteSyncer.handleCredentialChange=YU.bind(null,this.syncEngine),await RU(this.remoteStore,this.syncEngine.isPrimaryClient))}createEventManager(e){return(function(){return new IU})()}createDatastore(e){const n=Hf(e.databaseInfo.databaseId),s=(function(l){return new fU(l)})(e.databaseInfo);return(function(l,u,d,m){return new gU(l,u,d,m)})(e.authCredentials,e.appCheckCredentials,s,n)}createRemoteStore(e){return(function(s,a,l,u,d){return new xU(s,a,l,u,d)})(this.localStore,this.datastore,e.asyncQueue,(n=>QT(this.syncEngine,n,0)),(function(){return HT.p()?new HT:new uU})())}createSyncEngine(e,n){return(function(a,l,u,d,m,g,x){const v=new PU(a,l,u,d,m,g);return x&&(v.$a=!0),v})(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,e.initialUser,e.maxConcurrentLimboResolutions,n)}async terminate(){var e,n;await(async function(a){const l=Ne(a);he("RemoteStore","RemoteStore shutting down."),l.k_.add(5),await qu(l),l.Q_.shutdown(),l.K_.set("Unknown")})(this.remoteStore),(e=this.datastore)===null||e===void 0||e.terminate(),(n=this.eventManager)===null||n===void 0||n.terminate()}}tx.provider={build:()=>new tx};/** 2018 * @license 2019 * Copyright 2020 Google LLC 2020 * 2021 * Licensed under the Apache License, Version 2.0 (the "License"); 2022 * you may not use this file except in compliance with the License. 2023 * You may obtain a copy of the License at 2024 * 2025 * http://www.apache.org/licenses/LICENSE-2.0 2026 * 2027 * Unless required by applicable law or agreed to in writing, software 2028 * distributed under the License is distributed on an "AS IS" BASIS, 2029 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2030 * See the License for the specific language governing permissions and 2031 * limitations under the License. 2032 *//** 2033 * @license 2034 * Copyright 2017 Google LLC 2035 * 2036 * Licensed under the Apache License, Version 2.0 (the "License"); 2037 * you may not use this file except in compliance with the License. 2038 * You may obtain a copy of the License at 2039 * 2040 * http://www.apache.org/licenses/LICENSE-2.0 2041 * 2042 * Unless required by applicable law or agreed to in writing, software 2043 * distributed under the License is distributed on an "AS IS" BASIS, 2044 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2045 * See the License for the specific language governing permissions and 2046 * limitations under the License. 2047 */class D2{constructor(e){this.observer=e,this.muted=!1}next(e){this.muted||this.observer.next&&this.Xa(this.observer.next,e)}error(e){this.muted||(this.observer.error?this.Xa(this.observer.error,e):Bs("Uncaught Error in snapshot listener:",e.toString()))}eu(){this.muted=!0}Xa(e,n){setTimeout((()=>{this.muted||e(n)}),0)}}/** 2048 * @license 2049 * Copyright 2017 Google LLC 2050 * 2051 * Licensed under the Apache License, Version 2.0 (the "License"); 2052 * you may not use this file except in compliance with the License. 2053 * You may obtain a copy of the License at 2054 * 2055 * http://www.apache.org/licenses/LICENSE-2.0 2056 * 2057 * Unless required by applicable law or agreed to in writing, software 2058 * distributed under the License is distributed on an "AS IS" BASIS, 2059 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2060 * See the License for the specific language governing permissions and 2061 * limitations under the License. 2062 */class JU{constructor(e,n,s,a,l){this.authCredentials=e,this.appCheckCredentials=n,this.asyncQueue=s,this.databaseInfo=a,this.user=hn.UNAUTHENTICATED,this.clientId=IN.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this._uninitializedComponentsProvider=l,this.authCredentials.start(s,(async u=>{he("FirestoreClient","Received user=",u.uid),await this.authCredentialListener(u),this.user=u})),this.appCheckCredentials.start(s,(u=>(he("FirestoreClient","Received new app check token=",u),this.appCheckCredentialListener(u,this.user))))}get configuration(){return{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}setCredentialChangeListener(e){this.authCredentialListener=e}setAppCheckTokenChangeListener(e){this.appCheckCredentialListener=e}terminate(){this.asyncQueue.enterRestrictedMode();const e=new Os;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted((async()=>{try{this._onlineComponents&&await this._onlineComponents.terminate(),this._offlineComponents&&await this._offlineComponents.terminate(),this.authCredentials.shutdown(),this.appCheckCredentials.shutdown(),e.resolve()}catch(n){const s=bv(n,"Failed to shutdown persistence");e.reject(s)}})),e.promise}}async function ey(t,e){t.asyncQueue.verifyOperationInProgress(),he("FirestoreClient","Initializing OfflineComponentProvider");const n=t.configuration;await e.initialize(n);let s=n.initialUser;t.setCredentialChangeListener((async a=>{s.isEqual(a)||(await h2(e.localStore,a),s=a)})),e.persistence.setDatabaseDeletedListener((()=>t.terminate())),t._offlineComponents=e}async function JT(t,e){t.asyncQueue.verifyOperationInProgress();const n=await ZU(t);he("FirestoreClient","Initializing OnlineComponentProvider"),await e.initialize(n,t.configuration),t.setCredentialChangeListener((s=>$T(e.remoteStore,s))),t.setAppCheckTokenChangeListener(((s,a)=>$T(e.remoteStore,a))),t._onlineComponents=e}async function ZU(t){if(!t._offlineComponents)if(t._uninitializedComponentsProvider){he("FirestoreClient","Using user provided OfflineComponentProvider");try{await ey(t,t._uninitializedComponentsProvider._offline)}catch(e){const n=e;if(!(function(a){return a.name==="FirebaseError"?a.code===ie.FAILED_PRECONDITION||a.code===ie.UNIMPLEMENT
2062ED:!(typeof DOMException<"u"&&a instanceof DOMException)||a.code===22||a.code===20||a.code===11})(n))throw n;pl("Error using user provided cache. Falling back to memory cache: "+n),await ey(t,new wf)}}else he("FirestoreClient","Using default OfflineComponentProvider"),await ey(t,new XU(void 0));return t._offlineComponents}async function k2(t){return t._onlineComponents||(t._uninitializedComponentsProvider?(he("FirestoreClient","Using user provided OnlineComponentProvider"),await JT(t,t._uninitializedComponentsProvider._online)):(he("FirestoreClient","Using default OnlineComponentProvider"),await JT(t,new tx))),t._onlineComponents}function e9(t){return k2(t).then((e=>e.syncEngine))}async function M2(t){const e=await k2(t),n=e.eventManager;return n.onListen=VU.bind(null,e.syncEngine),n.onUnlisten=zU.bind(null,e.syncEngine),n.onFirstRemoteStoreListen=UU.bind(null,e.syncEngine),n.onLastRemoteStoreUnlisten=FU.bind(null,e.syncEngine),n}function t9(t,e,n={}){const s=new Os;return t.asyncQueue.enqueueAndForget((async()=>(function(l,u,d,m,g){const x=new D2({next:T=>{x.eu(),u.enqueueAndForget((()=>_2(l,v)));const E=T.docs.has(d);!E&&T.fromCache?g.reject(new de(ie.UNAVAILABLE,"Failed to get document because the client is offline.")):E&&T.fromCache&&m&&m.source==="server"?g.reject(new de(ie.UNAVAILABLE,'Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)')):g.resolve(T)},error:T=>g.reject(T)}),v=new T2(av(d.path),x,{includeMetadataChanges:!0,ua:!0});return w2(l,v)})(await M2(t),t.asyncQueue,e,n,s))),s.promise}function n9(t,e,n={}){const s=new Os;return t.asyncQueue.enqueueAndForget((async()=>(function(l,u,d,m,g){const x=new D2({next:T=>{x.eu(),u.enqueueAndForget((()=>_2(l,v))),T.fromCache&&m.source==="server"?g.reject(new de(ie.UNAVAILABLE,'Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)')):g.resolve(T)},error:T=>g.reject(T)}),v=new T2(d,x,{includeMetadataChanges:!0,ua:!0});return w2(l,v)})(await M2(t),t.asyncQueue,e,n,s))),s.promise}/** 2063 * @license 2064 * Copyright 2023 Google LLC 2065 * 2066 * Licensed under the Apache License, Version 2.0 (the "License"); 2067 * you may not use this file except in compliance with the License. 2068 * You may obtain a copy of the License at 2069 * 2070 * http://www.apache.org/licenses/LICENSE-2.0 2071 * 2072 * Unless required by applicable law or agreed to in writing, software 2073 * distributed under the License is distributed on an "AS IS" BASIS, 2074 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2075 * See the License for the specific language governing permissions and 2076 * limitations under the License. 2077 */function L2(t){const e={};return t.timeoutSeconds!==void 0&&(e.timeoutSeconds=t.timeoutSeconds),e}/** 2078 * @license 2079 * Copyright 2020 Google LLC 2080 * 2081 * Licensed under the Apache License, Version 2.0 (the "License"); 2082 * you may not use this file except in compliance with the License. 2083 * You may obtain a copy of the License at 2084 * 2085 * http://www.apache.org/licenses/LICENSE-2.0 2086 * 2087 * Unless required by applicable law or agreed to in writing, software 2088 * distributed under the License is distributed on an "AS IS" BASIS, 2089 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2090 * See the License for the specific language governing permissions and 2091 * limitations under the License. 2092 */const ZT=new Map;/** 2093 * @license 2094 * Copyright 2017 Google LLC 2095 * 2096 * Licensed under the Apache License, Version 2.0 (the "License"); 2097 * you may not use this file except in compliance with the License. 2098 * You may obtain a copy of the License at 2099 * 2100 * http://www.apache.org/licenses/LICENSE-2.0 2101 * 2102 * Unless required by applicable law or agreed to in writing, software 2103 * distributed under the License is distributed on an "AS IS" BASIS, 2104 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2105 * See the License for the specific language governing permissions and 2106 * limitations under the License. 2107 */function O2(t,e,n){if(!n)throw new de(ie.INVALID_ARGUMENT,`Function ${t}() cannot be called with an empty ${e}.`)}function i9(t,e,n,s){if(e===!0&&s===!0)throw new de(ie.INVALID_ARGUMENT,`${t} and ${n} cannot be used together.`)}function eE(t){if(!xe.isDocumentKey(t))throw new de(ie.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${t} has ${t.length}.`)}function tE(t){if(xe.isDocumentKey(t))throw new de(ie.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${t} has ${t.length}.`)}function Yf(t){if(t===void 0)return"undefined";if(t===null)return"null";if(typeof t=="string")return t.length>20&&(t=`${t.substring(0,20)}...`),JSON.stringify(t);if(typeof t=="number"||typeof t=="boolean")return""+t;if(typeof t=="object"){if(t instanceof Array)return"an array";{const e=(function(s){return s.constructor?s.constructor.name:null})(t);return e?`a custom ${e} object`:"an object"}}return typeof t=="function"?"a function":Te()}function Fs(t,e){if("_delegate"in t&&(t=t._delegate),!(t instanceof e)){if(e.name===t.constructor.name)throw new de(ie.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const n=Yf(t);throw new de(ie.INVALID_ARGUMENT,`Expected type '${e.name}', but it was: ${n}`)}}return t}/** 2108 * @license 2109 * Copyright 2020 Google LLC 2110 * 2111 * Licensed under the Apache License, Version 2.0 (the "License");
2112 * you may not use this file except in compliance with the License. 2113 * You may obtain a copy of the License at 2114 * 2115 * http://www.apache.org/licenses/LICENSE-2.0 2116 * 2117 * Unless required by applicable law or agreed to in writing, software 2118 * distributed under the License is distributed on an "AS IS" BASIS, 2119 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2120 * See the License for the specific language governing permissions and 2121 * limitations under the License. 2122 */class nE{constructor(e){var n,s;if(e.host===void 0){if(e.ssl!==void 0)throw new de(ie.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host="firestore.googleapis.com",this.ssl=!0}else this.host=e.host,this.ssl=(n=e.ssl)===null||n===void 0||n;if(this.credentials=e.credentials,this.ignoreUndefinedProperties=!!e.ignoreUndefinedProperties,this.localCache=e.localCache,e.cacheSizeBytes===void 0)this.cacheSizeBytes=41943040;else{if(e.cacheSizeBytes!==-1&&e.cacheSizeBytes<1048576)throw new de(ie.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=e.cacheSizeBytes}i9("experimentalForceLongPolling",e.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",e.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!e.experimentalForceLongPolling,this.experimentalForceLongPolling?this.experimentalAutoDetectLongPolling=!1:e.experimentalAutoDetectLongPolling===void 0?this.experimentalAutoDetectLongPolling=!0:this.experimentalAutoDetectLongPolling=!!e.experimentalAutoDetectLongPolling,this.experimentalLongPollingOptions=L2((s=e.experimentalLongPollingOptions)!==null&&s!==void 0?s:{}),(function(l){if(l.timeoutSeconds!==void 0){if(isNaN(l.timeoutSeconds))throw new de(ie.INVALID_ARGUMENT,`invalid long polling timeout: ${l.timeoutSeconds} (must not be NaN)`);if(l.timeoutSeconds<5)throw new de(ie.INVALID_ARGUMENT,`invalid long polling timeout: ${l.timeoutSeconds} (minimum allowed value is 5)`);if(l.timeoutSeconds>30)throw new de(ie.INVALID_ARGUMENT,`invalid long polling timeout: ${l.timeoutSeconds} (maximum allowed value is 30)`)}})(this.experimentalLongPollingOptions),this.useFetchStreams=!!e.useFetchStreams}isEqual(e){return this.host===e.host&&this.ssl===e.ssl&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.experimentalForceLongPolling===e.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===e.experimentalAutoDetectLongPolling&&(function(s,a){return s.timeoutSeconds===a.timeoutSeconds})(this.experimentalLongPollingOptions,e.experimentalLongPollingOptions)&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams}}class Wf{constructor(e,n,s,a){this._authCredentials=e,this._appCheckCredentials=n,this._databaseId=s,this._app=a,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new nE({}),this._settingsFrozen=!1,this._terminateTask="notTerminated"}get app(){if(!this._app)throw new de(ie.FAILED_PRECONDITION,"Firestore was not initialized using the Firebase SDK. 'app' is not available");return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return this._terminateTask!=="notTerminated"}_setSettings(e){if(this._settingsFrozen)throw new de(ie.FAILED_PRECONDITION,"Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.");this._settings=new nE(e),e.credentials!==void 0&&(this._authCredentials=(function(s){if(!s)return new m5;switch(s.type){case"firstParty":return new x5(s.sessionIndex||"0",s.iamToken||null,s.authTokenFactory||null);case"provider":return s.client;default:throw new de(ie.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}})(e.credentials))}_getSettings(){return this._settings}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return this._terminateTask==="notTerminated"&&(this._terminateTask=this._terminate()),this._terminateTask}async _restart(){this._terminateTask==="notTerminated"?await this._terminate():this._terminateTask="notTerminated"}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return(function(n){const s=ZT.get(n);s&&(he("ComponentProvider","Removing Datastore"),ZT.delete(n),s.terminate())})(this),Promise.resolve()}}function s9(t,e,n,s={}){var a;const l=(t=Fs(t,Wf))._getSettings(),u=`${e}:${n}`;if(l.host!=="firestore.googleapis.com"&&l.host!==u&&pl("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used."),t._setSettings(Object.assign(Object.assign({},l),{host:u,ssl:!1})),s.mockUserToken){let d,m;if(typeof s.mockUserToken=="string")d=s.mockUserToken,m=hn.MOCK_USER;
vendor: 4,221 bytes, lines 2122-2152
2122else{d=qV(s.mockUserToken,(a=t._app)===null||a===void 0?void 0:a.options.projectId);const g=s.mockUserToken.sub||s.mockUserToken.user_id;if(!g)throw new de(ie.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");m=new hn(g)}t._authCredentials=new p5(new CN(d,m))}}/** 2123 * @license 2124 * Copyright 2020 Google LLC 2125 * 2126 * Licensed under the Apache License, Version 2.0 (the "License"); 2127 * you may not use this file except in compliance with the License. 2128 * You may obtain a copy of the License at 2129 * 2130 * http://www.apache.org/licenses/LICENSE-2.0 2131 * 2132 * Unless required by applicable law or agreed to in writing, software 2133 * distributed under the License is distributed on an "AS IS" BASIS, 2134 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2135 * See the License for the specific language governing permissions and 2136 * limitations under the License. 2137 */class no{constructor(e,n,s){this.converter=n,this._query=s,this.type="query",this.firestore=e}withConverter(e){return new no(this.firestore,e,this._query)}}class kn{constructor(e,n,s){this.converter=n,this._key=s,this.type="document",this.firestore=e}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new Kr(this.firestore,this.converter,this._key.path.popLast())}withConverter(e){return new kn(this.firestore,e,this._key)}}class Kr extends no{constructor(e,n,s){super(e,n,av(s)),this._path=s,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const e=this._path.popLast();return e.isEmpty()?null:new kn(this.firestore,null,new xe(e))}withConverter(e){return new Kr(this.firestore,e,this._path)}}function Ri(t,e,...n){if(t=Ht(t),O2("collection","path",e),t instanceof Wf){const s=lt.fromString(e,...n);return tE(s),new Kr(t,null,s)}{if(!(t instanceof kn||t instanceof Kr))throw new de(ie.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=t._path.child(lt.fromString(e,...n));return tE(s),new Kr(t.firestore,null,s)}}function Gs(t,e,...n){if(t=Ht(t),arguments.length===1&&(e=IN.newId()),O2("doc","path",e),t instanceof Wf){const s=lt.fromString(e,...n);return eE(s),new kn(t,null,new xe(s))}{if(!(t instanceof kn||t instanceof Kr))throw new de(ie.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=t._path.child(lt.fromString(e,...n));return eE(s),new kn(t.firestore,t instanceof Kr?t.converter:null,new xe(s))}}/** 2138 * @license 2139 * Copyright 2020 Google LLC 2140 * 2141 * Licensed under the Apache License, Version 2.0 (the "License"); 2142 * you may not use this file except in compliance with the License. 2143 * You may obtain a copy of the License at 2144 * 2145 * http://www.apache.org/licenses/LICENSE-2.0 2146 * 2147 * Unless required by applicable law or agreed to in writing, software 2148 * distributed under the License is distributed on an "AS IS" BASIS, 2149 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2150 * See the License for the specific language governing permissions and 2151 * limitations under the License. 2152 */class iE{constructor(e=Promise.resolve()){this.Iu=[],this.Eu=!1,this.du=[],this.Au=null,this.Ru=!1,this.Vu=!1,this.mu=[],this.r_=new f2(this,"async_queue_retry"),this.fu=()=>{const s=Zg();s&&he("AsyncQueue","Visibility state changed to "+s.visibilityState),this.r_.Jo()},this.gu=e;const n=Zg();n&&typeof n.addEventListener=="function"&&n.addEventListener("visibilitychange",this.fu)}get isShuttingDown(){return this.Eu}enqueueAndForget(e){this.enqueue(e)}enqueueAndForgetEvenWhileRestricted(e){this.pu(),this.yu(e)}enterRestrictedMode(e){if(!this.Eu){this.Eu=!0,this.Vu=e||!1;const n=Zg();n&&typeof n.removeEventListener=="function"&&n.removeEventListener("visibilitychange",this.fu)}}enqueue(e){if(this.pu(),this.Eu)return new Promise((()=>{}));const n=new Os;return this.yu((()=>this.Eu&&this.Vu?Promise.resolve():(e().then(n.resolve,n.reject),n.promise))).then((()=>n.promise))}enqueueRetryable(e){this.enqueueAndForget((()=>(this.Iu.push(e),this.wu())))}
2152async wu(){if(this.Iu.length!==0){try{await this.Iu[0](),this.Iu.shift(),this.r_.reset()}catch(e){if(!Ll(e))throw e;he("AsyncQueue","Operation failed with retryable error: "+e)}this.Iu.length>0&&this.r_.jo((()=>this.wu()))}}yu(e){const n=this.gu.then((()=>(this.Ru=!0,e().catch((s=>{this.Au=s,this.Ru=!1;const a=(function(u){let d=u.message||"";return u.stack&&(d=u.stack.includes(u.message)?u.stack:u.message+` 2153`+u.stack),d})(s);throw Bs("INTERNAL UNHANDLED ERROR: ",a),s})).then((s=>(this.Ru=!1,s))))));return this.gu=n,n}enqueueAfterDelay(e,n,s){this.pu(),this.mu.indexOf(e)>-1&&(n=0);const a=vv.createAndSchedule(this,e,n,s,(l=>this.Su(l)));return this.du.push(a),a}pu(){this.Au&&Te()}verifyOperationInProgress(){}async bu(){let e;do e=this.gu,await e;while(e!==this.gu)}Du(e){for(const n of this.du)if(n.timerId===e)return!0;return!1}vu(e){return this.bu().then((()=>{this.du.sort(((n,s)=>n.targetTimeMs-s.targetTimeMs));for(const n of this.du)if(n.skipDelay(),e!=="all"&&n.timerId===e)break;return this.bu()}))}Cu(e){this.mu.push(e)}Su(e){const n=this.du.indexOf(e);this.du.splice(n,1)}}class Vl extends Wf{constructor(e,n,s,a){super(e,n,s,a),this.type="firestore",this._queue=new iE,this._persistenceKey=(a==null?void 0:a.name)||"[DEFAULT]"}async _terminate(){if(this._firestoreClient){const e=this._firestoreClient.terminate();this._queue=new iE(e),this._firestoreClient=void 0,await e}}}function r9(t,e){const n=typeof t=="object"?t:wN(),s=typeof t=="string"?t:"(default)",a=ev(n,"firestore").getImmediate({identifier:s});if(!a._initialized){const l=FV("firestore");l&&s9(a,...l)}return a}function Tv(t){if(t._terminated)throw new de(ie.FAILED_PRECONDITION,"The client has already been terminated.");return t._firestoreClient||a9(t),t._firestoreClient}function a9(t){var e,n,s;const a=t._freezeSettings(),l=(function(d,m,g,x){return new k5(d,m,g,x.host,x.ssl,x.experimentalForceLongPolling,x.experimentalAutoDetectLongPolling,L2(x.experimentalLongPollingOptions),x.useFetchStreams)})(t._databaseId,((e=t._app)===null||e===void 0?void 0:e.options.appId)||"",t._persistenceKey,a);t._componentsProvider||!((n=a.localCache)===null||n===void 0)&&n._offlineComponentProvider&&(!((s=a.localCache)===null||s===void 0)&&s._onlineComponentProvider)&&(t._componentsProvider={_offline:a.localCache._offlineComponentProvider,_online:a.localCache._onlineComponentProvider}),t._firestoreClient=new JU(t._authCredentials,t._appCheckCredentials,t._queue,l,t._componentsProvider&&(function(d){const m=d==null?void 0:d._online.build();return{_offline:d==null?void 0:d._offline.build(m),_online:m}})(t._componentsProvider))}/** 2154 * @license 2155 * Copyright 2020 Google LLC 2156 * 2157 * Licensed under the Apache License, Version 2.0 (the "License"); 2158 * you may not use this file except in compliance with the License. 2159 * You may obtain a copy of the License at 2160 * 2161 * http://www.apache.org/licenses/LICENSE-2.0 2162 * 2163 * Unless required by applicable law or agreed to in writing, software 2164 * distributed under the License is distributed on an "AS IS" BASIS, 2165 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2166 * See the License for the specific language governing permissions and 2167 * limitations under the License. 2168 */class wl{constructor(e){this._byteString=e}static fromBase64String(e){try{return new wl(rn.fromBase64String(e))}catch(n){throw new de(ie.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+n)}}static fromUint8Array(e){return new wl(rn.fromUint8Array(e))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(e){return this._byteString.isEqual(e._byteString)}}/** 2169 * @license 2170 * Copyright 2020 Google LLC 2171 * 2172 * Licensed under the Apache License, Version 2.0 (the "License"); 2173 * you may not use this file except in compliance with the License. 2174 * You may obtain a copy of the License at 2175 * 2176 * http://www.apache.org/licenses/LICENSE-2.0 2177 * 2178 * Unless required by applicable law or agreed to in writing, software 2179 * distributed under the License is distributed on an "AS IS" BASIS, 2180 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2181 * See the License for the specific language governing permissions and 2182 * limitations under the License. 2183 */class Qf{constructor(...e){for(let n=0;n<e.length;++n)if(e[n].length===0)throw new de(ie.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new sn(e)}isEqual(e){return this._internalPath.isEqual(e._internalPath)}}/** 2184 * @license 2185 * Copyright 2020 Google LLC 2186 * 2187 * Licensed under the Apache License, Version 2.0 (the "License");
2188 * you may not use this file except in compliance with the License. 2189 * You may obtain a copy of the License at 2190 * 2191 * http://www.apache.org/licenses/LICENSE-2.0 2192 * 2193 * Unless required by applicable law or agreed to in writing, software 2194 * distributed under the License is distributed on an "AS IS" BASIS, 2195 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2196 * See the License for the specific language governing permissions and 2197 * limitations under the License. 2198 */class Xf{constructor(e){this._methodName=e}}/** 2199 * @license 2200 * Copyright 2017 Google LLC 2201 * 2202 * Licensed under the Apache License, Version 2.0 (the "License"); 2203 * you may not use this file except in compliance with the License. 2204 * You may obtain a copy of the License at 2205 * 2206 * http://www.apache.org/licenses/LICENSE-2.0 2207 * 2208 * Unless required by applicable law or agreed to in writing, software 2209 * distributed under the License is distributed on an "AS IS" BASIS, 2210 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2211 * See the License for the specific language governing permissions and 2212 * limitations under the License. 2213 */class Ev{constructor(e,n){if(!isFinite(e)||e<-90||e>90)throw new de(ie.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+e);if(!isFinite(n)||n<-180||n>180)throw new de(ie.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+n);this._lat=e,this._long=n}get latitude(){return this._lat}get longitude(){return this._long}isEqual(e){return this._lat===e._lat&&this._long===e._long}toJSON(){return{latitude:this._lat,longitude:this._long}}_compareTo(e){return Fe(this._lat,e._lat)||Fe(this._long,e._long)}}/** 2214 * @license 2215 * Copyright 2024 Google LLC 2216 * 2217 * Licensed under the Apache License, Version 2.0 (the "License"); 2218 * you may not use this file except in compliance with the License. 2219 * You may obtain a copy of the License at 2220 * 2221 * http://www.apache.org/licenses/LICENSE-2.0 2222 * 2223 * Unless required by applicable law or agreed to in writing, software 2224 * distributed under the License is distributed on an "AS IS" BASIS, 2225 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2226 * See the License for the specific language governing permissions and 2227 * limitations under the License. 2228 */class Sv{constructor(e){this._values=(e||[]).map((n=>n))}toArray(){return this._values.map((e=>e))}isEqual(e){return(function(s,a){if(s.length!==a.length)return!1;for(let l=0;l<s.length;++l)if(s[l]!==a[l])return!1;return!0})(this._values,e._values)}}/** 2229 * @license 2230 * Copyright 2017 Google LLC 2231 * 2232 * Licensed under the Apache License, Version 2.0 (the "License"); 2233 * you may not use this file except in compliance with the License. 2234 * You may obtain a copy of the License at 2235 * 2236 * http://www.apache.org/licenses/LICENSE-2.0 2237 * 2238 * Unless required by applicable law or agreed to in writing, software 2239 * distributed under the License is distributed on an "AS IS" BASIS, 2240 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2241 * See the License for the specific language governing permissions and 2242 * limitations under the License. 2243 */const o9=/^__.*__$/;class l9{constructor(e,n,s){this.data=e,this.fieldMask=n,this.fieldTransforms=s}toMutation(e,n){return this.fieldMask!==null?new ra(e,this.data,this.fieldMask,n,this.fieldTransforms):new Fu(e,this.data,n,this.fieldTransforms)}}class P2{constructor(e,n,s){this.data=e,this.fieldMask=n,this.fieldTransforms=s}toMutation(e,n){return new ra(e,this.data,this.fieldMask,n,this.fieldTransforms)}}function V2(t){switch(t){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw Te()}}class Av{constructor(e,n,s,a,l,u){this.settings=e,this.databaseId=n,this.serializer=s,this.ignoreUndefinedProperties=a,l===void 0&&this.Fu(),this.fieldTransforms=l||[],this.fieldMask=u||[]}get path(){return this.settings.path}get Mu(){return this.settings.Mu}xu(e){return new Av(Object.assign(Object.assign({},this.settings),e),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}Ou(e){var n;const s=(n=this.path)===null||n===void 0?void 0:n.child(e),a=this.xu({path:s,Nu:!1});return a.Lu(e),a}Bu(e){var n;const s=(n=this.path)===null||n===void 0?void 0:n.child(e),a=this.xu({path:s,Nu:!1});return a.Fu(),a}ku(e){return this.xu({path:void 0,Nu:!0})}qu(e){return _f(e,this.settings.methodName,this.settings.Qu||!1,this.path,this.settings.Ku)}contains(e){return this.fieldMask.find((n=>e.isPrefixOf(n)))!==void 0||this.fieldTransforms.find((n=>e.isPrefixOf(n.field)))!==void 0}Fu(){if(this.path)for(let e=0;e<this.path.length;e++)this.Lu(this.path.get(e))}Lu(e){if(e.length===0)throw this.qu("Document fields must not be empty");if(V2(this.Mu)&&o9.test(e))throw this.qu('Document fields cannot begin and end with "__"')}}class c9{constructor(e,n,s){this.databaseId=e,this.ignoreUndefinedProperties=n,this.serializer
2243=s||Hf(e)}$u(e,n,s,a=!1){return new Av({Mu:e,methodName:n,Ku:s,path:sn.emptyPath(),Nu:!1,Qu:a},this.databaseId,this.serializer,this.ignoreUndefinedProperties)}}function Nv(t){const e=t._freezeSettings(),n=Hf(t._databaseId);return new c9(t._databaseId,!!e.ignoreUndefinedProperties,n)}function u9(t,e,n,s,a,l={}){const u=t.$u(l.merge||l.mergeFields?2:0,e,n,a);Rv("Data must be an object, but it was:",u,s);const d=U2(s,u);let m,g;if(l.merge)m=new $n(u.fieldMask),g=u.fieldTransforms;else if(l.mergeFields){const x=[];for(const v of l.mergeFields){const T=nx(e,v,n);if(!u.contains(T))throw new de(ie.INVALID_ARGUMENT,`Field '${T}' is specified in your field mask but missing from your input data.`);z2(x,T)||x.push(T)}m=new $n(x),g=u.fieldTransforms.filter((v=>m.covers(v.field)))}else m=null,g=u.fieldTransforms;return new l9(new Dn(d),m,g)}class Jf extends Xf{_toFieldTransform(e){if(e.Mu!==2)throw e.Mu===1?e.qu(`${this._methodName}() can only appear at the top level of your update data`):e.qu(`${this._methodName}() cannot be used with set() unless you pass {merge:true}`);return e.fieldMask.push(e.path),null}isEqual(e){return e instanceof Jf}}class jv extends Xf{_toFieldTransform(e){return new s6(e.path,new Au)}isEqual(e){return e instanceof jv}}function h9(t,e,n,s){const a=t.$u(1,e,n);Rv("Data must be an object, but it was:",a,s);const l=[],u=Dn.empty();sa(s,((m,g)=>{const x=Cv(e,m,n);g=Ht(g);const v=a.Bu(x);if(g instanceof Jf)l.push(x);else{const T=$u(g,v);T!=null&&(l.push(x),u.set(x,T))}}));const d=new $n(l);return new P2(u,d,a.fieldTransforms)}function d9(t,e,n,s,a,l){const u=t.$u(1,e,n),d=[nx(e,s,n)],m=[a];if(l.length%2!=0)throw new de(ie.INVALID_ARGUMENT,`Function ${e}() needs to be called with an even number of arguments that alternate between field names and values.`);for(let T=0;T<l.length;T+=2)d.push(nx(e,l[T])),m.push(l[T+1]);const g=[],x=Dn.empty();for(let T=d.length-1;T>=0;--T)if(!z2(g,d[T])){const E=d[T];let C=m[T];C=Ht(C);const L=u.Bu(E);if(C instanceof Jf)g.push(E);else{const R=$u(C,L);R!=null&&(g.push(E),x.set(E,R))}}const v=new $n(g);return new P2(x,v,u.fieldTransforms)}function f9(t,e,n,s=!1){return $u(n,t.$u(s?4:3,e))}function $u(t,e){if(B2(t=Ht(t)))return Rv("Unsupported field value:",e,t),U2(t,e);if(t instanceof Xf)return(function(s,a){if(!V2(a.Mu))throw a.qu(`${s._methodName}() can only be used with update() and set()`);if(!a.path)throw a.qu(`${s._methodName}() is not currently supported inside arrays`);const l=s._toFieldTransform(a);l&&a.fieldTransforms.push(l)})(t,e),null;if(t===void 0&&e.ignoreUndefinedProperties)return null;if(e.path&&e.fieldMask.push(e.path),t instanceof Array){if(e.settings.Nu&&e.Mu!==4)throw e.qu("Nested arrays are not supported");return(function(s,a){const l=[];let u=0;for(const d of s){let m=$u(d,a.ku(u));m==null&&(m={nullValue:"NULL_VALUE"}),l.push(m),u++}return{arrayValue:{values:l}}})(t,e)}return(function(s,a){if((s=Ht(s))===null)return{nullValue:"NULL_VALUE"};if(typeof s=="number")return t6(a.serializer,s);if(typeof s=="boolean")return{booleanValue:s};if(typeof s=="string")return{stringValue:s};if(s instanceof Date){const l=Ot.fromDate(s);return{timestampValue:xf(a.serializer,l)}}if(s instanceof Ot){const l=new Ot(s.seconds,1e3*Math.floor(s.nanoseconds/1e3));return{timestampValue:xf(a.serializer,l)}}if(s instanceof Ev)return{geoPointValue:{latitude:s.latitude,longitude:s.longitude}};if(s instanceof wl)return{bytesValue:i2(a.serializer,s._byteString)};if(s instanceof kn){const l=a.databaseId,u=s.firestore._databaseId;if(!u.isEqual(l))throw a.qu(`Document reference is for database ${u.projectId}/${u.database} but should be for database ${l.projectId}/${l.database}`);return{referenceValue:hv(s.firestore._databaseId||a.databaseId,s._key.path)}}if(s instanceof Sv)return(function(u,d){return{mapValue:{fields:{__type__:{stringValue:"__vector__"},value:{arrayValue:{values:u.toArray().map((m=>{if(typeof m!="number")throw d.qu("VectorValues must only contain numeric values.");return ov(d.serializer,m)}))}}}}}})(s,a);throw a.qu(`Unsupported field value: ${Yf(s)}`)})(t,e)}function U2(t,e){const n={};return DN(t)?e.path&&e.path.length>0&&e.fieldMask.push(e.path):sa(t,((s,a)=>{const l=$u(a,e.Ou(s));l!=null&&(n[s]=l)})),{mapValue:{fields:n}}}function B2(t){return!(typeof t!="object"||t===null||t instanceof Array||t instanceof Date||t instanceof Ot||t instanceof Ev||t instanceof wl||t instanceof kn||t instanceof Xf||t instanceof Sv)}function Rv(t,e,n){if(!B2(n)||!(function(a){return typeof a=="object"&&a!==null&&(Object.getPrototypeOf(a)===Object.prototype||Ob
2243ject.getPrototypeOf(a)===null)})(n)){const s=Yf(n);throw s==="an object"?e.qu(t+" a custom object"):e.qu(t+" "+s)}}function nx(t,e,n){if((e=Ht(e))instanceof Qf)return e._internalPath;if(typeof e=="string")return Cv(t,e);throw _f("Field path arguments must be of type string or ",t,!1,void 0,n)}const m9=new RegExp("[~\\*/\\[\\]]");function Cv(t,e,n){if(e.search(m9)>=0)throw _f(`Invalid field path (${e}). Paths must not contain '~', '*', '/', '[', or ']'`,t,!1,void 0,n);try{return new Qf(...e.split("."))._internalPath}catch{throw _f(`Invalid field path (${e}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,t,!1,void 0,n)}}function _f(t,e,n,s,a){const l=s&&!s.isEmpty(),u=a!==void 0;let d=`Function ${e}() called with invalid data`;n&&(d+=" (via `toFirestore()`)"),d+=". ";let m="";return(l||u)&&(m+=" (found",l&&(m+=` in field ${s}`),u&&(m+=` in document ${a}`),m+=")"),new de(ie.INVALID_ARGUMENT,d+t+m)}function z2(t,e){return t.some((n=>n.isEqual(e)))}/** 2244 * @license 2245 * Copyright 2020 Google LLC 2246 * 2247 * Licensed under the Apache License, Version 2.0 (the "License"); 2248 * you may not use this file except in compliance with the License. 2249 * You may obtain a copy of the License at 2250 * 2251 * http://www.apache.org/licenses/LICENSE-2.0 2252 * 2253 * Unless required by applicable law or agreed to in writing, software 2254 * distributed under the License is distributed on an "AS IS" BASIS, 2255 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2256 * See the License for the specific language governing permissions and 2257 * limitations under the License. 2258 */class F2{constructor(e,n,s,a,l){this._firestore=e,this._userDataWriter=n,this._key=s,this._document=a,this._converter=l}get id(){return this._key.path.lastSegment()}get ref(){return new kn(this._firestore,this._converter,this._key)}exists(){return this._document!==null}data(){if(this._document){if(this._converter){const e=new p9(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(e)}return this._userDataWriter.convertValue(this._document.data.value)}}get(e){if(this._document){const n=this._document.data.field(Zf("DocumentSnapshot.get",e));if(n!==null)return this._userDataWriter.convertValue(n)}}}class p9 extends F2{data(){return super.data()}}function Zf(t,e){return typeof e=="string"?Cv(t,e):e instanceof Qf?e._internalPath:e._delegate._internalPath}/** 2259 * @license 2260 * Copyright 2020 Google LLC 2261 * 2262 * Licensed under the Apache License, Version 2.0 (the "License"); 2263 * you may not use this file except in compliance with the License. 2264 * You may obtain a copy of the License at 2265 * 2266 * http://www.apache.org/licenses/LICENSE-2.0 2267 * 2268 * Unless required by applicable law or agreed to in writing, software 2269 * distributed under the License is distributed on an "AS IS" BASIS, 2270 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2271 * See the License for the specific language governing permissions and 2272 * limitations under the License. 2273 */function g9(t){if(t.limitType==="L"&&t.explicitOrderBy.length===0)throw new de(ie.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}class Iv{}class G2 extends Iv{}function Ku(t,e,...n){let s=[];e instanceof Iv&&s.push(e),s=s.concat(n),(function(l){const u=l.filter((m=>m instanceof Dv)).length,d=l.filter((m=>m instanceof em)).length;if(u>1||u>0&&d>0)throw new de(ie.INVALID_ARGUMENT,"InvalidQuery. When using composite filters, you cannot use more than one filter at the top level. Consider nesting the multiple filters within an `and(...)` statement. For example: change `query(query, where(...), or(...))` to `query(query, and(where(...), or(...)))`.")})(s);for(const a of s)t=a._apply(t);return t}class em extends G2{constructor(e,n,s){super(),this._field=e,this._op=n,this._value=s,this.type="where"}static _create(e,n,s){return new em(e,n,s)}_apply(e){const n=this._parse(e);return q2(e._query,n),new no(e.firestore,e.converter,$y(e._query,n))}_parse(e){const n=Nv(e.firestore);return(function(l,u,d,m,g,x,v){let T;if(g.isKeyField()){if(x==="array-contains"||x==="array-contains-any")throw new de(ie.INVALID_ARGUMENT,`Invalid Query. You can't perform '${x}' queries on documentId().`);if(x==="in"||x==="not-in"){rE(v,x);const E=[];for(const C of v)E.push(sE(m,l,C));T={arrayValue:{values:E}}}else T=sE(m,l,v)}else x!=="in"&&x!=="not-in"&&x!=="array-contains-any"||rE(v,x),T=f9(d,u,v,x==="in"||x==="not-in");return Dt.create(g,x,T)})(e._query,"where",n,e.firestore._databaseId,this._field,this._op,this._value)}}function Qa(t,e,n){const s=e,a=Zf("where",t);return em._create(a,s,n)}class Dv extends Iv{constructor(e,n){super(),this.type=e,this._queryConstraints=n}static _create(e,n){return new Dv(e,n)}_parse(e){const n=this._queryConstraints.map((s=>s._parse(e))).filter((s=>s.getFilters().length>0));return n.length===1?n[0]:Ei.create(n,this._getOperator())}_apply(e){const n=this._parse(e);return n.getFilters().length===0?e:((function(a,l){let u=a;const d=l.getFlattenedFilters();for(const m of d)q2(u,m),u=$y(u,m)})(e._query,n),new no(e.firestore,e.converter,$y(e._query,n)))}_getQueryConstraints(){return this._queryConstraints}_getOperator(){return this.type==="and"?"and":"or"}}
2273class kv extends G2{constructor(e,n){super(),this._field=e,this._direction=n,this.type="orderBy"}static _create(e,n){return new kv(e,n)}_apply(e){const n=(function(a,l,u){if(a.startAt!==null)throw new de(ie.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(a.endAt!==null)throw new de(ie.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");return new Su(l,u)})(e._query,this._field,this._direction);return new no(e.firestore,e.converter,(function(a,l){const u=a.explicitOrderBy.concat([l]);return new Ol(a.path,a.collectionGroup,u,a.filters.slice(),a.limit,a.limitType,a.startAt,a.endAt)})(e._query,n))}}function y9(t,e="asc"){const n=e,s=Zf("orderBy",t);return kv._create(s,n)}function sE(t,e,n){if(typeof(n=Ht(n))=="string"){if(n==="")throw new de(ie.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");if(!zN(e)&&n.indexOf("/")!==-1)throw new de(ie.INVALID_ARGUMENT,`Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '${n}' contains a '/' character.`);const s=e.path.child(lt.fromString(n));if(!xe.isDocumentKey(s))throw new de(ie.INVALID_ARGUMENT,`Invalid query. When querying a collection group by documentId(), the value provided must result in a valid document path, but '${s}' is not because it has an odd number of segments (${s.length}).`);return ST(t,new xe(s))}if(n instanceof kn)return ST(t,n._key);throw new de(ie.INVALID_ARGUMENT,`Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: ${Yf(n)}.`)}function rE(t,e){if(!Array.isArray(t)||t.length===0)throw new de(ie.INVALID_ARGUMENT,`Invalid Query. A non-empty array is required for '${e.toString()}' filters.`)}function q2(t,e){const n=(function(a,l){for(const u of a)for(const d of u.getFlattenedFilters())if(l.indexOf(d.op)>=0)return d.op;return null})(t.filters,(function(a){switch(a){case"!=":return["!=","not-in"];case"array-contains-any":case"in":return["not-in"];case"not-in":return["array-contains-any","in","not-in","!="];default:return[]}})(e.op));if(n!==null)throw n===e.op?new de(ie.INVALID_ARGUMENT,`Invalid query. You cannot use more than one '${e.op.toString()}' filter.`):new de(ie.INVALID_ARGUMENT,`Invalid query. You cannot use '${e.op.toString()}' filters with '${n.toString()}' filters.`)}class x9{convertValue(e,n="none"){switch(ta(e)){case 0:return null;case 1:return e.booleanValue;case 2:return Et(e.integerValue||e.doubleValue);case 3:return this.convertTimestamp(e.timestampValue);case 4:return this.convertServerTimestamp(e,n);case 5:return e.stringValue;case 6:return this.convertBytes(ea(e.bytesValue));case 7:return this.convertReference(e.referenceValue);case 8:return this.convertGeoPoint(e.geoPointValue);case 9:return this.convertArray(e.arrayValue,n);case 11:return this.convertObject(e.mapValue,n);case 10:return this.convertVectorValue(e.mapValue);default:throw Te()}}convertObject(e,n){return this.convertObjectMap(e.fields,n)}convertObjectMap(e,n="none"){const s={};return sa(e,((a,l)=>{s[a]=this.convertValue(l,n)})),s}convertVectorValue(e){var n,s,a;const l=(a=(s=(n=e.fields)===null||n===void 0?void 0:n.value.arrayValue)===null||s===void 0?void 0:s.values)===null||a===void 0?void 0:a.map((u=>Et(u.doubleValue)));return new Sv(l)}convertGeoPoint(e){return new Ev(Et(e.latitude),Et(e.longitude))}convertArray(e,n){return(e.values||[]).map((s=>this.convertValue(s,n)))}convertServerTimestamp(e,n){switch(n){case"previous":const s=Uf(e);return s==null?null:this.convertValue(s,n);case"estimate":return this.convertTimestamp(_u(e));default:return null}}convertTimestamp(e){const n=Zr(e);return new Ot(n.seconds,n.nanos)}convertDocumentKey(e,n){const s=lt.fromString(e);Qe(c2(s));const a=new Tu(s.get(1),s.get(3)),l=new xe(s.popFirst(5));return a.isEqual(n)||Bs(`Document ${l} contains a document reference within a different database (${a.projectId}/${a.database}) which is not supported. It will be treated as a reference in the current database (${n.projectId}/${n.database}) instead.`),l}}/** 2274 * @license 2275 * Copyright 2020 Google LLC 2276 * 2277 * Licensed under the Apache License, Version 2.0 (the "License");
2278 * you may not use this file except in compliance with the License. 2279 * You may obtain a copy of the License at 2280 * 2281 * http://www.apache.org/licenses/LICENSE-2.0 2282 * 2283 * Unless required by applicable law or agreed to in writing, software 2284 * distributed under the License is distributed on an "AS IS" BASIS, 2285 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2286 * See the License for the specific language governing permissions and 2287 * limitations under the License. 2288 */function v9(t,e,n){let s;return s=t?t.toFirestore(e):e,s}/** 2289 * @license 2290 * Copyright 2020 Google LLC 2291 * 2292 * Licensed under the Apache License, Version 2.0 (the "License"); 2293 * you may not use this file except in compliance with the License. 2294 * You may obtain a copy of the License at 2295 * 2296 * http://www.apache.org/licenses/LICENSE-2.0 2297 * 2298 * Unless required by applicable law or agreed to in writing, software 2299 * distributed under the License is distributed on an "AS IS" BASIS, 2300 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2301 * See the License for the specific language governing permissions and 2302 * limitations under the License. 2303 */class iu{constructor(e,n){this.hasPendingWrites=e,this.fromCache=n}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}}class H2 extends F2{constructor(e,n,s,a,l,u){super(e,n,s,a,u),this._firestore=e,this._firestoreImpl=e,this.metadata=l}exists(){return super.exists()}data(e={}){if(this._document){if(this._converter){const n=new Qd(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(n,e)}return this._userDataWriter.convertValue(this._document.data.value,e.serverTimestamps)}}get(e,n={}){if(this._document){const s=this._document.data.field(Zf("DocumentSnapshot.get",e));if(s!==null)return this._userDataWriter.convertValue(s,n.serverTimestamps)}}}class Qd extends H2{data(e={}){return super.data(e)}}class b9{constructor(e,n,s,a){this._firestore=e,this._userDataWriter=n,this._snapshot=a,this.metadata=new iu(a.hasPendingWrites,a.fromCache),this.query=s}get docs(){const e=[];return this.forEach((n=>e.push(n))),e}get size(){return this._snapshot.docs.size}get empty(){return this.size===0}forEach(e,n){this._snapshot.docs.forEach((s=>{e.call(n,new Qd(this._firestore,this._userDataWriter,s.key,s,new iu(this._snapshot.mutatedKeys.has(s.key),this._snapshot.fromCache),this.query.converter))}))}docChanges(e={}){const n=!!e.includeMetadataChanges;if(n&&this._snapshot.excludesMetadataChanges)throw new de(ie.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===n||(this._cachedChanges=(function(a,l){if(a._snapshot.oldDocs.isEmpty()){let u=0;return a._snapshot.docChanges.map((d=>{const m=new Qd(a._firestore,a._userDataWriter,d.doc.key,d.doc,new iu(a._snapshot.mutatedKeys.has(d.doc.key),a._snapshot.fromCache),a.query.converter);return d.doc,{type:"added",doc:m,oldIndex:-1,newIndex:u++}}))}{let u=a._snapshot.oldDocs;return a._snapshot.docChanges.filter((d=>l||d.type!==3)).map((d=>{const m=new Qd(a._firestore,a._userDataWriter,d.doc.key,d.doc,new iu(a._snapshot.mutatedKeys.has(d.doc.key),a._snapshot.fromCache),a.query.converter);let g=-1,x=-1;return d.type!==0&&(g=u.indexOf(d.doc.key),u=u.delete(d.doc.key)),d.type!==1&&(u=u.add(d.doc),x=u.indexOf(d.doc.key)),{type:w9(d.type),doc:m,oldIndex:g,newIndex:x}}))}})(this,n),this._cachedChangesIncludeMetadataChanges=n),this._cachedChanges}}function w9(t){switch(t){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return Te()}}/** 2304 * @license 2305 * Copyright 2020 Google LLC 2306 * 2307 * Licensed under the Apache License, Version 2.0 (the "License"); 2308 * you may not use this file except in compliance with the License. 2309 * You may obtain a copy of the License at 2310 * 2311 * http://www.apache.org/licenses/LICENSE-2.0 2312 * 2313 * Unless required by applicable law or agreed to in writing, software 2314 * distributed under the License is distributed on an "AS IS" BASIS, 2315 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2316 * See the License for the specific language governing permissions and 2317 * limitations under the License. 2318 */function $2(t){t=Fs(t,kn);const e=Fs(t.firestore,Vl);return t9(Tv(e),t._key).then((n=>_9(e,t,n)))}
2318class K2 extends x9{constructor(e){super(),this.firestore=e}convertBytes(e){return new wl(e)}convertReference(e){const n=this.convertDocumentKey(e,this.firestore._databaseId);return new kn(this.firestore,null,n)}}function io(t){t=Fs(t,no);const e=Fs(t.firestore,Vl),n=Tv(e),s=new K2(e);return g9(t._query),n9(n,t._query).then((a=>new b9(e,s,t,a)))}function tm(t,e,n,...s){t=Fs(t,kn);const a=Fs(t.firestore,Vl),l=Nv(a);let u;return u=typeof(e=Ht(e))=="string"||e instanceof Qf?d9(l,"updateDoc",t._key,e,n,s):h9(l,"updateDoc",t._key,e),Mv(a,[u.toMutation(t._key,_i.exists(!0))])}function Y2(t){return Mv(Fs(t.firestore,Vl),[new lv(t._key,_i.none())])}function nm(t,e){const n=Fs(t.firestore,Vl),s=Gs(t),a=v9(t.converter,e);return Mv(n,[u9(Nv(t.firestore),"addDoc",s._key,a,t.converter!==null,{}).toMutation(s._key,_i.exists(!1))]).then((()=>s))}function Mv(t,e){return(function(s,a){const l=new Os;return s.asyncQueue.enqueueAndForget((async()=>GU(await e9(s),a,l))),l.promise})(Tv(t),e)}function _9(t,e,n){const s=n.docs.get(e._key),a=new K2(t);return new H2(t,a,e._key,s,new iu(n.hasPendingWrites,n.fromCache),e.converter)}function aE(){return new jv("serverTimestamp")}(function(e,n=!0){(function(a){kl=a})(Dl),ml(new Ya("firestore",((s,{instanceIdentifier:a,options:l})=>{const u=s.getProvider("app").getImmediate(),d=new Vl(new g5(s.getProvider("auth-internal")),new b5(s.getProvider("app-check-internal")),(function(g,x){if(!Object.prototype.hasOwnProperty.apply(g.options,["projectId"]))throw new de(ie.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new Tu(g.options.projectId,x)})(u,a),u);return l=Object.assign({useFetchStreams:n},l),d._setSettings(l),d}),"PUBLIC").setMultipleInstances(!0)),$r(vT,"4.7.5",e),$r(vT,"4.7.5","esm2017")})();var T9="firebase",E9="11.0.2";/** 2319 * @license 2320 * Copyright 2020 Google LLC 2321 * 2322 * Licensed under the Apache License, Version 2.0 (the "License"); 2323 * you may not use this file except in compliance with the License. 2324 * You may obtain a copy of the License at 2325 * 2326 * http://www.apache.org/licenses/LICENSE-2.0 2327 * 2328 * Unless required by applicable law or agreed to in writing, software 2329 * distributed under the License is distributed on an "AS IS" BASIS, 2330 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2331 * See the License for the specific language governing permissions and 2332 * limitations under the License. 2333 */$r(T9,E9,"app");function Lv(t,e){var n={};for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&e.indexOf(s)<0&&(n[s]=t[s]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,s=Object.getOwnPropertySymbols(t);a<s.length;a++)e.indexOf(s[a])<0&&Object.prototype.propertyIsEnumerable.call(t,s[a])&&(n[s[a]]=t[s[a]]);return n}function W2(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}const S9=W2,Q2=new Bu("auth","Firebase",W2());/** 2334 * @license 2335 * Copyright 2020 Google LLC 2336 * 2337 * Licensed under the Apache License, Version 2.0 (the "License"); 2338 * you may not use this file except in compliance with the License. 2339 * You may obtain a copy of the License at 2340 * 2341 * http://www.apache.org/licenses/LICENSE-2.0 2342 * 2343 * Unless required by applicable law or agreed to in writing, software 2344 * distributed under the License is distributed on an "AS IS" BASIS, 2345 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2346 * See the License for the specific language governing permissions and 2347 * limitations under the License. 2348 */const Tf=new Jx("@firebase/auth");function A9(t,...e){Tf.logLevel<=Ve.WARN&&Tf.warn(`Auth (${Dl}): ${t}`,...e)}function Xd(t,...e){Tf.logLevel<=Ve.ERROR&&Tf.error(`Auth (${Dl}): ${t}`,...e)}/** 2349 * @license 2350 * Copyright 2020 Google LLC 2351 * 2352 * Licensed under the Apache License, Version 2.0 (the "License"); 2353 * you may not use this file except in compliance with the License. 2354 * You may obtain a copy of the License at 2355 * 2356 * http://www.apache.org/licenses/LICENSE-2.0 2357 * 2358 * Unless required by applicable law or agreed to in writing, softw
2358are 2359 * distributed under the License is distributed on an "AS IS" BASIS, 2360 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2361 * See the License for the specific language governing permissions and 2362 * limitations under the License. 2363 */function Si(t,...e){throw Ov(t,...e)}function Wi(t,...e){return Ov(t,...e)}function X2(t,e,n){const s=Object.assign(Object.assign({},S9()),{[e]:n});return new Bu("auth","Firebase",s).create(e,{appName:t.name})}function Yr(t){return X2(t,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function Ov(t,...e){if(typeof t!="string"){const n=e[0],s=[...e.slice(1)];return s[0]&&(s[0].appName=t.name),t._errorFactory.create(n,...s)}return Q2.create(t,...e)}function _e(t,e,...n){if(!t)throw Ov(e,...n)}function Is(t){const e="INTERNAL ASSERTION FAILED: "+t;throw Xd(e),new Error(e)}function qs(t,e){t||Is(e)}/** 2364 * @license 2365 * Copyright 2020 Google LLC 2366 * 2367 * Licensed under the Apache License, Version 2.0 (the "License"); 2368 * you may not use this file except in compliance with the License. 2369 * You may obtain a copy of the License at 2370 * 2371 * http://www.apache.org/licenses/LICENSE-2.0 2372 * 2373 * Unless required by applicable law or agreed to in writing, software 2374 * distributed under the License is distributed on an "AS IS" BASIS, 2375 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2376 * See the License for the specific language governing permissions and 2377 * limitations under the License. 2378 */function ix(){var t;return typeof self<"u"&&((t=self.location)===null||t===void 0?void 0:t.href)||""}function N9(){return oE()==="http:"||oE()==="https:"}function oE(){var t;return typeof self<"u"&&((t=self.location)===null||t===void 0?void 0:t.protocol)||null}/** 2379 * @license 2380 * Copyright 2020 Google LLC 2381 * 2382 * Licensed under the Apache License, Version 2.0 (the "License"); 2383 * you may not use this file except in compliance with the License. 2384 * You may obtain a copy of the License at 2385 * 2386 * http://www.apache.org/licenses/LICENSE-2.0 2387 * 2388 * Unless required by applicable law or agreed to in writing, software 2389 * distributed under the License is distributed on an "AS IS" BASIS, 2390 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2391 * See the License for the specific language governing permissions and 2392 * limitations under the License. 2393 */function j9(){return typeof navigator<"u"&&navigator&&"onLine"in navigator&&typeof navigator.onLine=="boolean"&&(N9()||YV()||"connection"in navigator)?navigator.onLine:!0}function R9(){if(typeof navigator>"u")return null;const t=navigator;return t.languages&&t.languages[0]||t.language||null}/** 2394 * @license 2395 * Copyright 2020 Google LLC 2396 * 2397 * Licensed under the Apache License, Version 2.0 (the "License"); 2398 * you may not use this file except in compliance with the License. 2399 * You may obtain a copy of the License at 2400 * 2401 * http://www.apache.org/licenses/LICENSE-2.0 2402 * 2403 * Unless required by applicable law or agreed to in writing, software 2404 * distributed under the License is distributed on an "AS IS" BASIS, 2405 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2406 * See the License for the specific language governing permissions and 2407 * limitations under the License. 2408 */class Yu{constructor(e,n){this.shortDelay=e,this.longDelay=n,qs(n>e,"Short delay should be less than long delay!"),this.isMobile=HV()||WV()}get(){return j9()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}/** 2409 * @license 2410 * Copyright 2020 Google LLC 2411 * 2412 * Licensed under the Apache License, Version 2.0 (the "License"); 2413 * you may not use this file except in compliance with the License. 2414 * You may obtain a copy of the License at 2415 * 2416 * http://www.apache.org/licenses/LICENSE-2.0 2417 * 2418 * Unless required by applicable law or agreed to in writing, software 2419 * distributed under the License is distributed on an "AS IS" BASIS, 2420 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2421 * See the License for the specific language governing permissions and 2422 * limitations under the License. 2423 */function Pv(t,e){qs(t.emulator,"Emulator should always be set here");const{url:n}=t.emulator;return e?`${n}${e.startsWith("/")?e.slice(1):e}`:n}/** 2424 * @license 2425 * Copyright 2020 Google LLC 2426 * 2427 * Licensed under the Apache License, Version 2.0 (the "License");
2428 * you may not use this file except in compliance with the License. 2429 * You may obtain a copy of the License at 2430 * 2431 * http://www.apache.org/licenses/LICENSE-2.0 2432 * 2433 * Unless required by applicable law or agreed to in writing, software 2434 * distributed under the License is distributed on an "AS IS" BASIS, 2435 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2436 * See the License for the specific language governing permissions and 2437 * limitations under the License. 2438 */class J2{static initialize(e,n,s){this.fetchImpl=e,n&&(this.headersImpl=n),s&&(this.responseImpl=s)}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(typeof self<"u"&&"fetch"in self)return self.fetch;if(typeof globalThis<"u"&&globalThis.fetch)return globalThis.fetch;if(typeof fetch<"u")return fetch;Is("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self<"u"&&"Headers"in self)return self.Headers;if(typeof globalThis<"u"&&globalThis.Headers)return globalThis.Headers;if(typeof Headers<"u")return Headers;Is("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){if(this.responseImpl)return this.responseImpl;if(typeof self<"u"&&"Response"in self)return self.Response;if(typeof globalThis<"u"&&globalThis.Response)return globalThis.Response;if(typeof Response<"u")return Response;Is("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}/** 2439 * @license 2440 * Copyright 2020 Google LLC 2441 * 2442 * Licensed under the Apache License, Version 2.0 (the "License"); 2443 * you may not use this file except in compliance with the License. 2444 * You may obtain a copy of the License at 2445 * 2446 * http://www.apache.org/licenses/LICENSE-2.0 2447 * 2448 * Unless required by applicable law or agreed to in writing, software 2449 * distributed under the License is distributed on an "AS IS" BASIS, 2450 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2451 * See the License for the specific language governing permissions and 2452 * limitations under the License. 2453 */const C9={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-rec
2453aptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"};/** 2454 * @license 2455 * Copyright 2020 Google LLC 2456 * 2457 * Licensed under the Apache License, Version 2.0 (the "License"); 2458 * you may not use this file except in compliance with the License. 2459 * You may obtain a copy of the License at 2460 * 2461 * http://www.apache.org/licenses/LICENSE-2.0 2462 * 2463 * Unless required by applicable law or agreed to in writing, software 2464 * distributed under the License is distributed on an "AS IS" BASIS, 2465 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2466 * See the License for the specific language governing permissions and 2467 * limitations under the License. 2468 */const I9=new Yu(3e4,6e4);function so(t,e){return t.tenantId&&!e.tenantId?Object.assign(Object.assign({},e),{tenantId:t.tenantId}):e}async function aa(t,e,n,s,a={}){return Z2(t,a,async()=>{let l={},u={};s&&(e==="GET"?u=s:l={body:JSON.stringify(s)});const d=zu(Object.assign({key:t.config.apiKey},u)).slice(1),m=await t._getAdditionalHeaders();m["Content-Type"]="application/json",t.languageCode&&(m["X-Firebase-Locale"]=t.languageCode);const g=Object.assign({method:e,headers:m},l);return KV()||(g.referrerPolicy="no-referrer"),J2.fetch()(ej(t,t.config.apiHost,n,d),g)})}async function Z2(t,e,n){t._canInitEmulator=!1;const s=Object.assign(Object.assign({},C9),e);try{const a=new k9(t),l=await Promise.race([n(),a.promise]);a.clearNetworkTimeout();const u=await l.json();if("needConfirmation"in u)throw Od(t,"account-exists-with-different-credential",u);if(l.ok&&!("errorMessage"in u))return u;{const d=l.ok?u.errorMessage:u.error.message,[m,g]=d.split(" : ");if(m==="FEDERATED_USER_ID_ALREADY_LINKED")throw Od(t,"credential-already-in-use",u);if(m==="EMAIL_EXISTS")throw Od(t,"email-already-in-use",u);if(m==="USER_DISABLED")throw Od(t,"user-disabled",u);const x=s[m]||m.toLowerCase().replace(/[_\s]+/g,"-");if(g)throw X2(t,x,g);Si(t,x)}}catch(a){if(a instanceof Hs)throw a;Si(t,"network-request-failed",{message:String(a)})}}async function im(t,e,n,s,a={}){const l=await aa(t,e,n,s,a);return"mfaPendingCredential"in l&&Si(t,"multi-factor-auth-required",{_serverResponse:l}),l}function ej(t,e,n,s){const a=`${e}${n}?${s}`;return t.config.emulator?Pv(t.config,a):`${t.config.apiScheme}://${a}`}function D9(t){switch(t){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class k9{clearNetworkTimeout(){clearTimeout(this.timer)}constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((n,s)=>{this.timer=setTimeout(()=>s(Wi(this.auth,"network-request-failed")),I9.get())})}}function Od(t,e,n){const s={appName:t.name};n.email&&(s.email=n.email),n.phoneNumber&&(s.phoneNumber=n.phoneNumber);const a=Wi(t,e,s);return a.customData._tokenResponse=n,a}function lE(t){return t!==void 0&&t.enterprise!==void 0}class M9{constructor(e){if(this.siteKey="",this.recaptchaEnforcementState=[],e.recaptchaKey===void 0)throw new Error("recaptchaKey undefined");this.siteKey=e.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=e.recaptchaEnforcementState}getProviderEnforcementState(e){if(!this.recaptchaEnforcementState||this.recaptchaEnforcementState.length===0)return null;for(const n of this.recaptchaEnforcementState)if(n.provider&&n.provider===e)return D9(n.enforcementState);return null}isProviderEnabled(e){return this.getProviderEnforcementState(e)==="ENFORCE"||this.getProviderEnforcementState(e)==="AUDIT"}isAnyProviderEnabled(){return this.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")||this.isProviderEnabled("PHONE_PROVIDER")}}async function L9(t,e){return aa(t,"GET","/v2/recaptchaConfig",so(t,e))}/** 2469 * @license 2470 * Copyright 2020 Google LLC 2471 * 2472 * Licensed under the Apache License, Version 2.0 (the "License"); 2473 * you may not use this file except in compliance with the License. 2474 * You may obtain a copy of the License at 2475 * 2476 * http://www.apache.org/licenses/LICENSE-2.0 2477 * 2478 * Unless required by applicable law or agreed to in writing, softw
2478are 2479 * distributed under the License is distributed on an "AS IS" BASIS, 2480 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2481 * See the License for the specific language governing permissions and 2482 * limitations under the License. 2483 */async function O9(t,e){return aa(t,"POST","/v1/accounts:delete",e)}async function tj(t,e){return aa(t,"POST","/v1/accounts:lookup",e)}/** 2484 * @license 2485 * Copyright 2020 Google LLC 2486 * 2487 * Licensed under the Apache License, Version 2.0 (the "License"); 2488 * you may not use this file except in compliance with the License. 2489 * You may obtain a copy of the License at 2490 * 2491 * http://www.apache.org/licenses/LICENSE-2.0 2492 * 2493 * Unless required by applicable law or agreed to in writing, software 2494 * distributed under the License is distributed on an "AS IS" BASIS, 2495 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2496 * See the License for the specific language governing permissions and 2497 * limitations under the License. 2498 */function du(t){if(t)try{const e=new Date(Number(t));if(!isNaN(e.getTime()))return e.toUTCString()}catch{}}async function P9(t,e=!1){const n=Ht(t),s=await n.getIdToken(e),a=Vv(s);_e(a&&a.exp&&a.auth_time&&a.iat,n.auth,"internal-error");const l=typeof a.firebase=="object"?a.firebase:void 0,u=l==null?void 0:l.sign_in_provider;return{claims:a,token:s,authTime:du(ty(a.auth_time)),issuedAtTime:du(ty(a.iat)),expirationTime:du(ty(a.exp)),signInProvider:u||null,signInSecondFactor:(l==null?void 0:l.sign_in_second_factor)||null}}function ty(t){return Number(t)*1e3}function Vv(t){const[e,n,s]=t.split(".");if(e===void 0||n===void 0||s===void 0)return Xd("JWT malformed, contained fewer than 3 sections"),null;try{const a=mN(n);return a?JSON.parse(a):(Xd("Failed to decode base64 JWT payload"),null)}catch(a){return Xd("Caught error parsing JWT payload as JSON",a==null?void 0:a.toString()),null}}function cE(t){const e=Vv(t);return _e(e,"internal-error"),_e(typeof e.exp<"u","internal-error"),_e(typeof e.iat<"u","internal-error"),Number(e.exp)-Number(e.iat)}/** 2499 * @license 2500 * Copyright 2020 Google LLC 2501 * 2502 * Licensed under the Apache License, Version 2.0 (the "License"); 2503 * you may not use this file except in compliance with the License. 2504 * You may obtain a copy of the License at 2505 * 2506 * http://www.apache.org/licenses/LICENSE-2.0 2507 * 2508 * Unless required by applicable law or agreed to in writing, software 2509 * distributed under the License is distributed on an "AS IS" BASIS, 2510 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2511 * See the License for the specific language governing permissions and 2512 * limitations under the License. 2513 */async function Ru(t,e,n=!1){if(n)return e;try{return await e}catch(s){throw s instanceof Hs&&V9(s)&&t.auth.currentUser===t&&await t.auth.signOut(),s}}function V9({code:t}){return t==="auth/user-disabled"||t==="auth/user-token-expired"}/** 2514 * @license 2515 * Copyright 2020 Google LLC 2516 * 2517 * Licensed under the Apache License, Version 2.0 (the "License"); 2518 * you may not use this file except in compliance with the License. 2519 * You may obtain a copy of the License at 2520 * 2521 * http://www.apache.org/licenses/LICENSE-2.0 2522 * 2523 * Unless required by applicable law or agreed to in writing, software 2524 * distributed under the License is distributed on an "AS IS" BASIS, 2525 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2526 * See the License for the specific language governing permissions and 2527 * limitations under the License. 2528 */class U9{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(e){var n;if(e){const s=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),s}else{this.errorBackoff=3e4;const a=((n=this.user.stsTokenManager.expirationTime)!==null&&n!==void 0?n:0)-Date.now()-3e5;return Math.max(0,a)}}schedule(e=!1){if(!this.isRunning)return;const n=this.getInterval(e);this.timerId=setTimeout(async()=>{await this.iteration()},n)}async iteration(){try{await this.user.getIdToken(!0)}catch(e){(e==null?void 0:e.code)==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}/** 2529 * @license 2530 * Copyright 2020 Google LLC 2531 * 2532 * Licensed under the Apache License, Version 2.0 (the "License");
2533 * you may not use this file except in compliance with the License. 2534 * You may obtain a copy of the License at 2535 * 2536 * http://www.apache.org/licenses/LICENSE-2.0 2537 * 2538 * Unless required by applicable law or agreed to in writing, software 2539 * distributed under the License is distributed on an "AS IS" BASIS, 2540 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2541 * See the License for the specific language governing permissions and 2542 * limitations under the License. 2543 */class sx{constructor(e,n){this.createdAt=e,this.lastLoginAt=n,this._initializeTime()}_initializeTime(){this.lastSignInTime=du(this.lastLoginAt),this.creationTime=du(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}/** 2544 * @license 2545 * Copyright 2019 Google LLC 2546 * 2547 * Licensed under the Apache License, Version 2.0 (the "License"); 2548 * you may not use this file except in compliance with the License. 2549 * You may obtain a copy of the License at 2550 * 2551 * http://www.apache.org/licenses/LICENSE-2.0 2552 * 2553 * Unless required by applicable law or agreed to in writing, software 2554 * distributed under the License is distributed on an "AS IS" BASIS, 2555 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2556 * See the License for the specific language governing permissions and 2557 * limitations under the License. 2558 */async function Ef(t){var e;const n=t.auth,s=await t.getIdToken(),a=await Ru(t,tj(n,{idToken:s}));_e(a==null?void 0:a.users.length,n,"internal-error");const l=a.users[0];t._notifyReloadListener(l);const u=!((e=l.providerUserInfo)===null||e===void 0)&&e.length?nj(l.providerUserInfo):[],d=z9(t.providerData,u),m=t.isAnonymous,g=!(t.email&&l.passwordHash)&&!(d!=null&&d.length),x=m?g:!1,v={uid:l.localId,displayName:l.displayName||null,photoURL:l.photoUrl||null,email:l.email||null,emailVerified:l.emailVerified||!1,phoneNumber:l.phoneNumber||null,tenantId:l.tenantId||null,providerData:d,metadata:new sx(l.createdAt,l.lastLoginAt),isAnonymous:x};Object.assign(t,v)}async function B9(t){const e=Ht(t);await Ef(e),await e.auth._persistUserIfCurrent(e),e.auth._notifyListenersIfCurrent(e)}function z9(t,e){return[...t.filter(s=>!e.some(a=>a.providerId===s.providerId)),...e]}function nj(t){return t.map(e=>{var{providerId:n}=e,s=Lv(e,["providerId"]);return{providerId:n,uid:s.rawId||"",displayName:s.displayName||null,email:s.email||null,phoneNumber:s.phoneNumber||null,photoURL:s.photoUrl||null}})}/** 2559 * @license 2560 * Copyright 2020 Google LLC 2561 * 2562 * Licensed under the Apache License, Version 2.0 (the "License"); 2563 * you may not use this file except in compliance with the License. 2564 * You may obtain a copy of the License at 2565 * 2566 * http://www.apache.org/licenses/LICENSE-2.0 2567 * 2568 * Unless required by applicable law or agreed to in writing, software 2569 * distributed under the License is distributed on an "AS IS" BASIS, 2570 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2571 * See the License for the specific language governing permissions and 2572 * limitations under the License. 2573 */async function F9(t,e){const n=await Z2(t,{},async()=>{const s=zu({grant_type:"refresh_token",refresh_token:e}).slice(1),{tokenApiHost:a,apiKey:l}=t.config,u=ej(t,a,"/v1/token",`key=${l}`),d=await t._getAdditionalHeaders();return d["Content-Type"]="application/x-www-form-urlencoded",J2.fetch()(u,{method:"POST",headers:d,body:s})});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}async function G9(t,e){return aa(t,"POST","/v2/accounts:revokeToken",so(t,e))}/** 2574 * @license 2575 * Copyright 2020 Google LLC 2576 * 2577 * Licensed under the Apache License, Version 2.0 (the "License"); 2578 * you may not use this file except in compliance with the License. 2579 * You may obtain a copy of the License at 2580 * 2581 * http://www.apache.org/licenses/LICENSE-2.0 2582 * 2583 * Unless required by applicable law or agreed to in writing, software 2584 * distributed under the License is distributed on an "AS IS" BASIS, 2585 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2586 * See the License for the specific language governing permissions and 2587 * limitations under the License. 2588 */class ul{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){_e(e.idToken,"internal-error"),_e(typeof e.idToken<"u","internal-error"),_e(typeof e.refreshToken<"u","internal-error");
2588const n="expiresIn"in e&&typeof e.expiresIn<"u"?Number(e.expiresIn):cE(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,n)}updateFromIdToken(e){_e(e.length!==0,"internal-error");const n=cE(e);this.updateTokensAndExpiration(e,null,n)}async getToken(e,n=!1){return!n&&this.accessToken&&!this.isExpired?this.accessToken:(_e(this.refreshToken,e,"user-token-expired"),this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null)}clearRefreshToken(){this.refreshToken=null}async refresh(e,n){const{accessToken:s,refreshToken:a,expiresIn:l}=await F9(e,n);this.updateTokensAndExpiration(s,a,Number(l))}updateTokensAndExpiration(e,n,s){this.refreshToken=n||null,this.accessToken=e||null,this.expirationTime=Date.now()+s*1e3}static fromJSON(e,n){const{refreshToken:s,accessToken:a,expirationTime:l}=n,u=new ul;return s&&(_e(typeof s=="string","internal-error",{appName:e}),u.refreshToken=s),a&&(_e(typeof a=="string","internal-error",{appName:e}),u.accessToken=a),l&&(_e(typeof l=="number","internal-error",{appName:e}),u.expirationTime=l),u}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new ul,this.toJSON())}_performRefresh(){return Is("not implemented")}}/** 2589 * @license 2590 * Copyright 2020 Google LLC 2591 * 2592 * Licensed under the Apache License, Version 2.0 (the "License"); 2593 * you may not use this file except in compliance with the License. 2594 * You may obtain a copy of the License at 2595 * 2596 * http://www.apache.org/licenses/LICENSE-2.0 2597 * 2598 * Unless required by applicable law or agreed to in writing, software 2599 * distributed under the License is distributed on an "AS IS" BASIS, 2600 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2601 * See the License for the specific language governing permissions and 2602 * limitations under the License. 2603 */function Or(t,e){_e(typeof t=="string"||typeof t>"u","internal-error",{appName:e})}class Ds{constructor(e){var{uid:n,auth:s,stsTokenManager:a}=e,l=Lv(e,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new U9(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=n,this.auth=s,this.stsTokenManager=a,this.accessToken=a.accessToken,this.displayName=l.displayName||null,this.email=l.email||null,this.emailVerified=l.emailVerified||!1,this.phoneNumber=l.phoneNumber||null,this.photoURL=l.photoURL||null,this.isAnonymous=l.isAnonymous||!1,this.tenantId=l.tenantId||null,this.providerData=l.providerData?[...l.providerData]:[],this.metadata=new sx(l.createdAt||void 0,l.lastLoginAt||void 0)}async getIdToken(e){const n=await Ru(this,this.stsTokenManager.getToken(this.auth,e));return _e(n,this.auth,"internal-error"),this.accessToken!==n&&(this.accessToken=n,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),n}getIdTokenResult(e){return P9(this,e)}reload(){return B9(this)}_assign(e){this!==e&&(_e(this.uid===e.uid,this.auth,"internal-error"),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(n=>Object.assign({},n)),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(e){const n=new Ds(Object.assign(Object.assign({},this),{auth:e,stsTokenManager:this.stsTokenManager._clone()}));return n.metadata._copy(this.metadata),n}_onReload(e){_e(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=e,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e,n=!1){let s=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),s=!0),n&&await Ef(this),await this.auth._persistUserIfCurrent(this),s&&this.auth._notifyListenersIfCurrent(this)}async delete(){if(Cs(this.auth.app))return Promise.reject(Yr(this.auth));const e=await this.getIdToken();return await Ru(this,O9(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isA
2603nonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(e=>Object.assign({},e)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(e,n){var s,a,l,u,d,m,g,x;const v=(s=n.displayName)!==null&&s!==void 0?s:void 0,T=(a=n.email)!==null&&a!==void 0?a:void 0,E=(l=n.phoneNumber)!==null&&l!==void 0?l:void 0,C=(u=n.photoURL)!==null&&u!==void 0?u:void 0,L=(d=n.tenantId)!==null&&d!==void 0?d:void 0,R=(m=n._redirectEventId)!==null&&m!==void 0?m:void 0,V=(g=n.createdAt)!==null&&g!==void 0?g:void 0,G=(x=n.lastLoginAt)!==null&&x!==void 0?x:void 0,{uid:z,emailVerified:ne,isAnonymous:re,providerData:le,stsTokenManager:D}=n;_e(z&&D,e,"internal-error");const A=ul.fromJSON(this.name,D);_e(typeof z=="string",e,"internal-error"),Or(v,e.name),Or(T,e.name),_e(typeof ne=="boolean",e,"internal-error"),_e(typeof re=="boolean",e,"internal-error"),Or(E,e.name),Or(C,e.name),Or(L,e.name),Or(R,e.name),Or(V,e.name),Or(G,e.name);const I=new Ds({uid:z,auth:e,email:T,emailVerified:ne,displayName:v,isAnonymous:re,photoURL:C,phoneNumber:E,tenantId:L,stsTokenManager:A,createdAt:V,lastLoginAt:G});return le&&Array.isArray(le)&&(I.providerData=le.map(P=>Object.assign({},P))),R&&(I._redirectEventId=R),I}static async _fromIdTokenResponse(e,n,s=!1){const a=new ul;a.updateFromServerResponse(n);const l=new Ds({uid:n.localId,auth:e,stsTokenManager:a,isAnonymous:s});return await Ef(l),l}static async _fromGetAccountInfoResponse(e,n,s){const a=n.users[0];_e(a.localId!==void 0,"internal-error");const l=a.providerUserInfo!==void 0?nj(a.providerUserInfo):[],u=!(a.email&&a.passwordHash)&&!(l!=null&&l.length),d=new ul;d.updateFromIdToken(s);const m=new Ds({uid:a.localId,auth:e,stsTokenManager:d,isAnonymous:u}),g={uid:a.localId,displayName:a.displayName||null,photoURL:a.photoUrl||null,email:a.email||null,emailVerified:a.emailVerified||!1,phoneNumber:a.phoneNumber||null,tenantId:a.tenantId||null,providerData:l,metadata:new sx(a.createdAt,a.lastLoginAt),isAnonymous:!(a.email&&a.passwordHash)&&!(l!=null&&l.length)};return Object.assign(m,g),m}}/** 2604 * @license 2605 * Copyright 2020 Google LLC 2606 * 2607 * Licensed under the Apache License, Version 2.0 (the "License"); 2608 * you may not use this file except in compliance with the License. 2609 * You may obtain a copy of the License at 2610 * 2611 * http://www.apache.org/licenses/LICENSE-2.0 2612 * 2613 * Unless required by applicable law or agreed to in writing, software 2614 * distributed under the License is distributed on an "AS IS" BASIS, 2615 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2616 * See the License for the specific language governing permissions and 2617 * limitations under the License. 2618 */const uE=new Map;function ks(t){qs(t instanceof Function,"Expected a class definition");let e=uE.get(t);return e?(qs(e instanceof t,"Instance stored in cache mismatched with class"),e):(e=new t,uE.set(t,e),e)}/** 2619 * @license 2620 * Copyright 2019 Google LLC 2621 * 2622 * Licensed under the Apache License, Version 2.0 (the "License"); 2623 * you may not use this file except in compliance with the License. 2624 * You may obtain a copy of the License at 2625 * 2626 * http://www.apache.org/licenses/LICENSE-2.0 2627 * 2628 * Unless required by applicable law or agreed to in writing, software 2629 * distributed under the License is distributed on an "AS IS" BASIS, 2630 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2631 * See the License for the specific language governing permissions and 2632 * limitations under the License. 2633 */class ij{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(e,n){this.storage[e]=n}async _get(e){const n=this.storage[e];return n===void 0?null:n}async _remove(e){delete this.storage[e]}_addListener(e,n){}_removeListener(e,n){}}ij.type="NONE";const hE=ij;/** 2634 * @license 2635 * Copyright 2019 Google LLC 2636 * 2637 * Licensed under the Apache License, Version 2.0 (the "License");
2638 * you may not use this file except in compliance with the License. 2639 * You may obtain a copy of the License at 2640 * 2641 * http://www.apache.org/licenses/LICENSE-2.0 2642 * 2643 * Unless required by applicable law or agreed to in writing, software 2644 * distributed under the License is distributed on an "AS IS" BASIS, 2645 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2646 * See the License for the specific language governing permissions and 2647 * limitations under the License. 2648 */function Jd(t,e,n){return`firebase:${t}:${e}:${n}`}class hl{constructor(e,n,s){this.persistence=e,this.auth=n,this.userKey=s;const{config:a,name:l}=this.auth;this.fullUserKey=Jd(this.userKey,a.apiKey,l),this.fullPersistenceKey=Jd("persistence",a.apiKey,l),this.boundEventHandler=n._onStorageEvent.bind(n),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){const e=await this.persistence._get(this.fullUserKey);return e?Ds._fromJSON(this.auth,e):null}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;const n=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=e,n)return this.setCurrentUser(n)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(e,n,s="authUser"){if(!n.length)return new hl(ks(hE),e,s);const a=(await Promise.all(n.map(async g=>{if(await g._isAvailable())return g}))).filter(g=>g);let l=a[0]||ks(hE);const u=Jd(s,e.config.apiKey,e.name);let d=null;for(const g of n)try{const x=await g._get(u);if(x){const v=Ds._fromJSON(e,x);g!==l&&(d=v),l=g;break}}catch{}const m=a.filter(g=>g._shouldAllowMigration);return!l._shouldAllowMigration||!m.length?new hl(l,e,s):(l=m[0],d&&await l._set(u,d.toJSON()),await Promise.all(n.map(async g=>{if(g!==l)try{await g._remove(u)}catch{}})),new hl(l,e,s))}}/** 2649 * @license 2650 * Copyright 2020 Google LLC 2651 * 2652 * Licensed under the Apache License, Version 2.0 (the "License"); 2653 * you may not use this file except in compliance with the License. 2654 * You may obtain a copy of the License at 2655 * 2656 * http://www.apache.org/licenses/LICENSE-2.0 2657 * 2658 * Unless required by applicable law or agreed to in writing, software 2659 * distributed under the License is distributed on an "AS IS" BASIS, 2660 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2661 * See the License for the specific language governing permissions and 2662 * limitations under the License. 2663 */function dE(t){const e=t.toLowerCase();if(e.includes("opera/")||e.includes("opr/")||e.includes("opios/"))return"Opera";if(oj(e))return"IEMobile";if(e.includes("msie")||e.includes("trident/"))return"IE";if(e.includes("edge/"))return"Edge";if(sj(e))return"Firefox";if(e.includes("silk/"))return"Silk";if(cj(e))return"Blackberry";if(uj(e))return"Webos";if(rj(e))return"Safari";if((e.includes("chrome/")||aj(e))&&!e.includes("edge/"))return"Chrome";if(lj(e))return"Android";{const n=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,s=t.match(n);if((s==null?void 0:s.length)===2)return s[1]}return"Other"}function sj(t=mn()){return/firefox\//i.test(t)}function rj(t=mn()){const e=t.toLowerCase();return e.includes("safari/")&&!e.includes("chrome/")&&!e.includes("crios/")&&!e.includes("android")}function aj(t=mn()){return/crios\//i.test(t)}function oj(t=mn()){return/iemobile/i.test(t)}function lj(t=mn()){return/android/i.test(t)}function cj(t=mn()){return/blackberry/i.test(t)}function uj(t=mn()){return/webos/i.test(t)}function Uv(t=mn()){return/iphone|ipad|ipod/i.test(t)||/macintosh/i.test(t)&&/mobile/i.test(t)}function q9(t=mn()){var e;return Uv(t)&&!!(!((e=window.navigator)===null||e===void 0)&&e.standalone)}function H9(){return QV()&&document.documentMode===10}function hj(t=mn()){return Uv(t)||lj(t)||uj(t)||cj(t)||/windows phone/i.test(t)||oj(t)}/** 2664 * @license 2665 * Copyright 2020 Google LLC 2666 * 2667 * Licensed under the Apache License, Version 2.0 (the "License");
2668 * you may not use this file except in compliance with the License. 2669 * You may obtain a copy of the License at 2670 * 2671 * http://www.apache.org/licenses/LICENSE-2.0 2672 * 2673 * Unless required by applicable law or agreed to in writing, software 2674 * distributed under the License is distributed on an "AS IS" BASIS, 2675 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2676 * See the License for the specific language governing permissions and 2677 * limitations under the License. 2678 */function dj(t,e=[]){let n;switch(t){case"Browser":n=dE(mn());break;case"Worker":n=`${dE(mn())}-${t}`;break;default:n=t}const s=e.length?e.join(","):"FirebaseCore-web";return`${n}/JsCore/${Dl}/${s}`}/** 2679 * @license 2680 * Copyright 2022 Google LLC 2681 * 2682 * Licensed under the Apache License, Version 2.0 (the "License"); 2683 * you may not use this file except in compliance with the License. 2684 * You may obtain a copy of the License at 2685 * 2686 * http://www.apache.org/licenses/LICENSE-2.0 2687 * 2688 * Unless required by applicable law or agreed to in writing, software 2689 * distributed under the License is distributed on an "AS IS" BASIS, 2690 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2691 * See the License for the specific language governing permissions and 2692 * limitations under the License. 2693 */class $9{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,n){const s=l=>new Promise((u,d)=>{try{const m=e(l);u(m)}catch(m){d(m)}});s.onAbort=n,this.queue.push(s);const a=this.queue.length-1;return()=>{this.queue[a]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;const n=[];try{for(const s of this.queue)await s(e),s.onAbort&&n.push(s.onAbort)}catch(s){n.reverse();for(const a of n)try{a()}catch{}throw this.auth._errorFactory.create("login-blocked",{originalMessage:s==null?void 0:s.message})}}}/** 2694 * @license 2695 * Copyright 2023 Google LLC 2696 * 2697 * Licensed under the Apache License, Version 2.0 (the "License"); 2698 * you may not use this file except in compliance with the License. 2699 * You may obtain a copy of the License at 2700 * 2701 * http://www.apache.org/licenses/LICENSE-2.0 2702 * 2703 * Unless required by applicable law or agreed to in writing, software 2704 * distributed under the License is distributed on an "AS IS" BASIS, 2705 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2706 * See the License for the specific language governing permissions and 2707 * limitations under the License. 2708 */async function K9(t,e={}){return aa(t,"GET","/v2/passwordPolicy",so(t,e))}/** 2709 * @license 2710 * Copyright 2023 Google LLC 2711 * 2712 * Licensed under the Apache License, Version 2.0 (the "License"); 2713 * you may not use this file except in compliance with the License. 2714 * You may obtain a copy of the License at 2715 * 2716 * http://www.apache.org/licenses/LICENSE-2.0 2717 * 2718 * Unless required by applicable law or agreed to in writing, software 2719 * distributed under the License is distributed on an "AS IS" BASIS, 2720 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2721 * See the License for the specific language governing permissions and 2722 * limitations under the License. 2723 */const Y9=6;class W9{constructor(e){var n,s,a,l;const u=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=(n=u.minPasswordLength)!==null&&n!==void 0?n:Y9,u.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=u.maxPasswordLength),u.containsLowercaseCharacter!==void 0&&(this.customStrengthOptions.containsLowercaseLetter=u.containsLowercaseCharacter),u.containsUppercaseCharacter!==void 0&&(this.customStrengthOptions.containsUppercaseLetter=u.containsUppercaseCharacter),u.containsNumericCharacter!==void 0&&(this.customStrengthOptions.containsNumericCharacter=u.containsNumericCharacter),u.containsNonAlphanumericCharacter!==void 0&&(this.customStrengthOptions.containsNonAlphanumericCharacter=u.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,this.enforcementState==="ENFORCEMENT_STATE_UNSPECIFIED"&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=(a=(s=e.allowedNonAlphanumericCharacters)===null||s===void 0?void 0:s.join(""))!==null&&a!==void 0?a:"",this.forceUpgradeOnSignin=(l=e.forceUpgradeOnSignin)!==null&&l!==void 0?l:!1,this.schemaVersion=e.schemaVersion}validatePassword(e){var n,s,a,l,u,d;const m={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,m),this.validatePasswordCharacterOptions(e,m),m.isValid&&
2723(m.isValid=(n=m.meetsMinPasswordLength)!==null&&n!==void 0?n:!0),m.isValid&&(m.isValid=(s=m.meetsMaxPasswordLength)!==null&&s!==void 0?s:!0),m.isValid&&(m.isValid=(a=m.containsLowercaseLetter)!==null&&a!==void 0?a:!0),m.isValid&&(m.isValid=(l=m.containsUppercaseLetter)!==null&&l!==void 0?l:!0),m.isValid&&(m.isValid=(u=m.containsNumericCharacter)!==null&&u!==void 0?u:!0),m.isValid&&(m.isValid=(d=m.containsNonAlphanumericCharacter)!==null&&d!==void 0?d:!0),m}validatePasswordLengthOptions(e,n){const s=this.customStrengthOptions.minPasswordLength,a=this.customStrengthOptions.maxPasswordLength;s&&(n.meetsMinPasswordLength=e.length>=s),a&&(n.meetsMaxPasswordLength=e.length<=a)}validatePasswordCharacterOptions(e,n){this.updatePasswordCharacterOptionsStatuses(n,!1,!1,!1,!1);let s;for(let a=0;a<e.length;a++)s=e.charAt(a),this.updatePasswordCharacterOptionsStatuses(n,s>="a"&&s<="z",s>="A"&&s<="Z",s>="0"&&s<="9",this.allowedNonAlphanumericCharacters.includes(s))}updatePasswordCharacterOptionsStatuses(e,n,s,a,l){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||(e.containsLowercaseLetter=n)),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||(e.containsUppercaseLetter=s)),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||(e.containsNumericCharacter=a)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||(e.containsNonAlphanumericCharacter=l))}}/** 2724 * @license 2725 * Copyright 2020 Google LLC 2726 * 2727 * Licensed under the Apache License, Version 2.0 (the "License"); 2728 * you may not use this file except in compliance with the License. 2729 * You may obtain a copy of the License at 2730 * 2731 * http://www.apache.org/licenses/LICENSE-2.0 2732 * 2733 * Unless required by applicable law or agreed to in writing, software 2734 * distributed under the License is distributed on an "AS IS" BASIS, 2735 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2736 * See the License for the specific language governing permissions and 2737 * limitations under the License. 2738 */class Q9{constructor(e,n,s,a){this.app=e,this.heartbeatServiceProvider=n,this.appCheckServiceProvider=s,this.config=a,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new fE(this),this.idTokenSubscription=new fE(this),this.beforeStateQueue=new $9(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=Q2,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=a.sdkClientVersion}_initializeWithPersistence(e,n){return n&&(this._popupRedirectResolver=ks(n)),this._initializationPromise=this.queue(async()=>{var s,a;if(!this._deleted&&(this.persistenceManager=await hl.create(this,e),!this._deleted)){if(!((s=this._popupRedirectResolver)===null||s===void 0)&&s._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch{}await this.initializeCurrentUser(n),this.lastNotifiedUid=((a=this.currentUser)===null||a===void 0?void 0:a.uid)||null,!this._deleted&&(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const e=await this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!e)){if(this.currentUser&&e&&this.currentUser.uid===e.uid){this._currentUser._assign(e),await this.currentUser.getIdToken();return}await this._updateCurrentUser(e,!0)}}async initializeCurrentUserFromIdToken(e){try{const n=await tj(this,{idToken:e}),s=await Ds._fromGetAccountInfoResponse(this,n,e);await this.directlySetCurrentUser(s)}catch(n){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",n),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(e){var n;if(Cs(this.app)){const u=this.app.settings.authIdToken;return u?new Promise(d=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(u).then(d,d))}):this.directlySetCurrentUser(null)}const s=await this.assertedPersistence.getCurrentUser();let a=s,l=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const u=(n=this.redirectUser)===null||n===void 0?void 0:n._redirectEventId,d=a==null?void 0:a._redirectEventId,m=await this.tryRedirectSignIn(e);(!u||u===d)&&(m!=null&&m.user)&&(a=m.user,l=!0)}if(!a)return this.directlySetCurrentUser(null);
2738if(!a._redirectEventId){if(l)try{await this.beforeStateQueue.runMiddleware(a)}catch(u){a=s,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(u))}return a?this.reloadAndSetCurrentUserOrClear(a):this.directlySetCurrentUser(null)}return _e(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===a._redirectEventId?this.directlySetCurrentUser(a):this.reloadAndSetCurrentUserOrClear(a)}async tryRedirectSignIn(e){let n=null;try{n=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch{await this._setRedirectUser(null)}return n}async reloadAndSetCurrentUserOrClear(e){try{await Ef(e)}catch(n){if((n==null?void 0:n.code)!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=R9()}async _delete(){this._deleted=!0}async updateCurrentUser(e){if(Cs(this.app))return Promise.reject(Yr(this));const n=e?Ht(e):null;return n&&_e(n.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(n&&n._clone(this))}async _updateCurrentUser(e,n=!1){if(!this._deleted)return e&&_e(this.tenantId===e.tenantId,this,"tenant-id-mismatch"),n||await this.beforeStateQueue.runMiddleware(e),this.queue(async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()})}async signOut(){return Cs(this.app)?Promise.reject(Yr(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(e){return Cs(this.app)?Promise.reject(Yr(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(ks(e))})}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(e){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const n=this._getPasswordPolicyInternal();return n.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):n.validatePassword(e)}_getPasswordPolicyInternal(){return this.tenantId===null?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const e=await K9(this),n=new W9(e);this.tenantId===null?this._projectPasswordPolicy=n:this._tenantPasswordPolicies[this.tenantId]=n}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(e){this._errorFactory=new Bu("auth","Firebase",e())}onAuthStateChanged(e,n,s){return this.registerStateListener(this.authStateSubscription,e,n,s)}beforeAuthStateChanged(e,n){return this.beforeStateQueue.pushCallback(e,n)}onIdTokenChanged(e,n,s){return this.registerStateListener(this.idTokenSubscription,e,n,s)}authStateReady(){return new Promise((e,n)=>{if(this.currentUser)e();else{const s=this.onAuthStateChanged(()=>{s(),e()},n)}})}async revokeAccessToken(e){if(this.currentUser){const n=await this.currentUser.getIdToken(),s={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:e,idToken:n};this.tenantId!=null&&(s.tenantId=this.tenantId),await G9(this,s)}}toJSON(){var e;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:(e=this._currentUser)===null||e===void 0?void 0:e.toJSON()}}async _setRedirectUser(e,n){const s=await this.getOrInitRedirectPersistenceManager(n);return e===null?s.removeCurrentUser():s.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){const n=e&&ks(e)||this._popupRedirectResolver;_e(n,this,"argument-error"),this.redirectPersistenceManager=await hl.create(this,[ks(n._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){var n,s;return this._isInitialized&&await this.queue(async()=>{}),((n=this._currentUser)===null||n===void 0?void 0:n._redirectEventId)===e?this._currentUser:((s=this.redirectUser)===null||s===void 0?void 0:s._redirectEventId)===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(e))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var e,n;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const s=(n=(e=this.currentUser)===null||e===void 0?void 0:e.uid)!==null&&n!==void 0?n:null;this.lastNotifiedUid!==s&&(this.lastNotifiedUid=s,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,n,s,a){if(this._deleted)return()=>{};const l=typeof n=="function"?n:n.next.bind(n);let u=!1;const d=this._isInitialized?Promise.resolve():this._initializationPromise;if(_e(d,this,"internal-error"),d.then(()=>{u||l(this.currentUser)}),typeof n=="function"){const m=e.addObserver(n,s,a);return()=>{u=!0,m()}}else{const m=e.addObserver(n);return()=>{u=!0,m()}}}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return _e(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=dj(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var e;const n={"X-Client-Version":this.clientVersion};this.app.options.appId&&(n["X-Firebase-gmpid"]=this.app.options.appId);const s=await((e=this.heartbeatServiceProvider.getImmediate({optional:!0}))===null||e===void 0?void 0:e.getHeartbeatsHeader());s&&(n["X-Firebase-Client"]=s);const a=await this._getAppCheckToken();return a&&(n["X-Firebase-AppCheck"]=a),n}async _getAppCheckToken(){var e;const n=await((e=this.appCheckServiceProvider.getImmediate({optional:!0}))===null||e===void 0?void 0:e.getToken());return n!=null&&n.error&&A9(`Error while retrieving App Check token: ${n.error}`),n==null?void 0:n.token}}function Ul(t){return Ht(t)}class fE{constructor(e){this.auth=e,this.observer=null,this.addObserver=s3(n=>this.observer=n)}get next(){return _e(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}/** 2739 * @license 2740 * Copyright 2020 Google LLC 2741 * 2742 * Licensed under the Apache License, Version 2.0 (the "License");
2743 * you may not use this file except in compliance with the License. 2744 * You may obtain a copy of the License at 2745 * 2746 * http://www.apache.org/licenses/LICENSE-2.0 2747 * 2748 * Unless required by applicable law or agreed to in writing, software 2749 * distributed under the License is distributed on an "AS IS" BASIS, 2750 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2751 * See the License for the specific language governing permissions and 2752 * limitations under the License. 2753 */let sm={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function X9(t){sm=t}function fj(t){return sm.loadJS(t)}function J9(){return sm.recaptchaEnterpriseScript}function Z9(){return sm.gapiScript}function eB(t){return`__${t}${Math.floor(Math.random()*1e6)}`}class tB{constructor(){this.enterprise=new nB}ready(e){e()}execute(e,n){return Promise.resolve("token")}render(e,n){return""}}class nB{ready(e){e()}execute(e,n){return Promise.resolve("token")}render(e,n){return""}}const iB="recaptcha-enterprise",mj="NO_RECAPTCHA";class sB{constructor(e){this.type=iB,this.auth=Ul(e)}async verify(e="verify",n=!1){async function s(l){if(!n){if(l.tenantId==null&&l._agentRecaptchaConfig!=null)return l._agentRecaptchaConfig.siteKey;if(l.tenantId!=null&&l._tenantRecaptchaConfigs[l.tenantId]!==void 0)return l._tenantRecaptchaConfigs[l.tenantId].siteKey}return new Promise(async(u,d)=>{L9(l,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(m=>{if(m.recaptchaKey===void 0)d(new Error("recaptcha Enterprise site key undefined"));else{const g=new M9(m);return l.tenantId==null?l._agentRecaptchaConfig=g:l._tenantRecaptchaConfigs[l.tenantId]=g,u(g.siteKey)}}).catch(m=>{d(m)})})}function a(l,u,d){const m=window.grecaptcha;lE(m)?m.enterprise.ready(()=>{m.enterprise.execute(l,{action:e}).then(g=>{u(g)}).catch(()=>{u(mj)})}):d(Error("No reCAPTCHA enterprise script loaded."))}return this.auth.settings.appVerificationDisabledForTesting?new tB().execute("siteKey",{action:"verify"}):new Promise((l,u)=>{s(this.auth).then(d=>{if(!n&&lE(window.grecaptcha))a(d,l,u);else{if(typeof window>"u"){u(new Error("RecaptchaVerifier is only supported in browser"));return}let m=J9();m.length!==0&&(m+=d),fj(m).then(()=>{a(d,l,u)}).catch(g=>{u(g)})}}).catch(d=>{u(d)})})}}async function mE(t,e,n,s=!1,a=!1){const l=new sB(t);let u;if(a)u=mj;else try{u=await l.verify(n)}catch{u=await l.verify(n,!0)}const d=Object.assign({},e);if(n==="mfaSmsEnrollment"||n==="mfaSmsSignIn"){if("phoneEnrollmentInfo"in d){const m=d.phoneEnrollmentInfo.phoneNumber,g=d.phoneEnrollmentInfo.recaptchaToken;Object.assign(d,{phoneEnrollmentInfo:{phoneNumber:m,recaptchaToken:g,captchaResponse:u,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}else if("phoneSignInInfo"in d){const m=d.phoneSignInInfo.recaptchaToken;Object.assign(d,{phoneSignInInfo:{recaptchaToken:m,captchaResponse:u,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}return d}return s?Object.assign(d,{captchaResp:u}):Object.assign(d,{captchaResponse:u}),Object.assign(d,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(d,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),d}async function pE(t,e,n,s,a){var l;if(!((l=t._getRecaptchaConfig())===null||l===void 0)&&l.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const u=await mE(t,e,n,n==="getOobCode");return s(t,u)}else return s(t,e).catch(async u=>{if(u.code==="auth/missing-recaptcha-token"){console.log(`${n} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);const d=await mE(t,e,n,n==="getOobCode");return s(t,d)}else return Promise.reject(u)})}/** 2754 * @license 2755 * Copyright 2020 Google LLC 2756 * 2757 * Licensed under the Apache License, Version 2.0 (the "License"); 2758 * you may not use this file except in compliance with the License. 2759 * You may obtain a copy of the License at 2760 * 2761 * http://www.apache.org/licenses/LICENSE-2.0 2762 * 2763 * Unless required by applicable law or agreed to in writing, software 2764 * distributed under the License is distributed on an "AS IS" BASIS, 2765 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2766 * See the License for the specific language governing permissions and 2767 * limitations under the License. 2768 */function rB(t,e){const n=ev(t,"auth");if(n.isInitialized()){const a=n.getImmediate(),l=n.getOptions();if(mf(l,e??{}))return a;Si(a,"already-initialized")}return n.initialize({options:e})}function aB(t,e){const n=(e==null?void 0:e.persistence)||[],s=(Array.isArray(n)?n:[n]).map(ks);e!=null&&e.errorMap&&t._updateErrorMap(e.errorMap),t._initializeWithPersistence(s,e==null?void 0:e.popupRedirectResolver)}function oB(t,e,n){const s=Ul(t);_e(s._canInitEmulator,s,"emulator-config-failed"),_e(/^https?:\/\//.test(e),s,"invalid-emulator-scheme");const a=!1,l=pj(e),{host:u,port:d}=lB(e),m=d===null?"":`:${d}`;s.config.emulator={url:`${l}//${u}${m}/`},s.settings.appVerificationDisabledForTesting=!0,s.emulatorConfig=Object.freeze({host:u,port:d,protocol:l.replace(":",""),options:Object.freeze({disableWarnings:a})}),cB()}function pj(t){const e=t.indexOf(":");return e<0?"":t.substr(0,e+1)}function lB(t){const e=pj(t),n=/(\/\/)?([^?#/]+)/.exec(t.substr(e.length));if(!n)return{host:"",port:null};const s=n[2].split("@").pop()||"",a=/^(\[[^\]]+\])(:|$)/.exec(s);if(a){const l=a[1];return{host:l,port:gE(s.substr(l.length+1))}}else{const[l,u]=s.split(":");return{host:l,port:gE(u)}}}function gE(t){if(!t)return null;const e=Number(t);return isNaN(e)?null:e}function cB(){function t(){const e=document.createElement("p"),n=e.style;e.innerText="Running in emulator mode. Do not use with production credentials.",n.position="fixed",n.width="100%",n.backgroundColor="#ffffff",n.border=".1em solid #000000",n.color="#b50000",n.bottom="0px",n.left="0px",n.margin="0px",n.zIndex="10000",n.textAlign="center",e.classList.add("firebase-emulator-warning"),document.body.appendChild(e)}typeof console<"u"&&typeof console.info=="function"&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&(document.readyState==="loading"?window.addEventListener("DOMContentLoaded",t):t())}/** 2769 * @license 2770 * Copyright 2020 Google LLC 2771 * 2772 * Licensed under the Apache License, Version 2.0 (the "License");
2773 * you may not use this file except in compliance with the License. 2774 * You may obtain a copy of the License at 2775 * 2776 * http://www.apache.org/licenses/LICENSE-2.0 2777 * 2778 * Unless required by applicable law or agreed to in writing, software 2779 * distributed under the License is distributed on an "AS IS" BASIS, 2780 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2781 * See the License for the specific language governing permissions and 2782 * limitations under the License. 2783 */class Bv{constructor(e,n){this.providerId=e,this.signInMethod=n}toJSON(){return Is("not implemented")}_getIdTokenResponse(e){return Is("not implemented")}_linkToIdToken(e,n){return Is("not implemented")}_getReauthenticationResolver(e){return Is("not implemented")}}async function uB(t,e){return aa(t,"POST","/v1/accounts:signUp",e)}/** 2784 * @license 2785 * Copyright 2020 Google LLC 2786 * 2787 * Licensed under the Apache License, Version 2.0 (the "License"); 2788 * you may not use this file except in compliance with the License. 2789 * You may obtain a copy of the License at 2790 * 2791 * http://www.apache.org/licenses/LICENSE-2.0 2792 * 2793 * Unless required by applicable law or agreed to in writing, software 2794 * distributed under the License is distributed on an "AS IS" BASIS, 2795 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2796 * See the License for the specific language governing permissions and 2797 * limitations under the License. 2798 */async function hB(t,e){return im(t,"POST","/v1/accounts:signInWithPassword",so(t,e))}/** 2799 * @license 2800 * Copyright 2020 Google LLC 2801 * 2802 * Licensed under the Apache License, Version 2.0 (the "License"); 2803 * you may not use this file except in compliance with the License. 2804 * You may obtain a copy of the License at 2805 * 2806 * http://www.apache.org/licenses/LICENSE-2.0 2807 * 2808 * Unless required by applicable law or agreed to in writing, software 2809 * distributed under the License is distributed on an "AS IS" BASIS, 2810 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2811 * See the License for the specific language governing permissions and 2812 * limitations under the License. 2813 */async function dB(t,e){return im(t,"POST","/v1/accounts:signInWithEmailLink",so(t,e))}async function fB(t,e){return im(t,"POST","/v1/accounts:signInWithEmailLink",so(t,e))}/** 2814 * @license 2815 * Copyright 2020 Google LLC 2816 * 2817 * Licensed under the Apache License, Version 2.0 (the "License"); 2818 * you may not use this file except in compliance with the License. 2819 * You may obtain a copy of the License at 2820 * 2821 * http://www.apache.org/licenses/LICENSE-2.0 2822 * 2823 * Unless required by applicable law or agreed to in writing, software 2824 * distributed under the License is distributed on an "AS IS" BASIS, 2825 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2826 * See the License for the specific language governing permissions and 2827 * limitations under the License. 2828 */class Cu extends Bv{constructor(e,n,s,a=null){super("password",s),this._email=e,this._password=n,this._tenantId=a}static _fromEmailAndPassword(e,n){return new Cu(e,n,"password")}static _fromEmailAndCode(e,n,s=null){return new Cu(e,n,"emailLink",s)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(e){const n=typeof e=="string"?JSON.parse(e):e;if(n!=null&&n.email&&(n!=null&&n.password)){if(n.signInMethod==="password")return this._fromEmailAndPassword(n.email,n.password);if(n.signInMethod==="emailLink")return this._fromEmailAndCode(n.email,n.password,n.tenantId)}return null}async _getIdTokenResponse(e){switch(this.signInMethod){case"password":const n={returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return pE(e,n,"signInWithPassword",hB);case"emailLink":return dB(e,{email:this._email,oobCode:this._password});default:Si(e,"internal-error")}}async _linkToIdToken(e,n){switch(this.signInMethod){case"password":const s={idToken:n,returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return pE(e,s,"signUpPassword",uB);case"emailLink":return fB(e,{idToken:n,email:this._email,oobCode:this._password});default:Si(e,"internal-error")}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}}/** 2829 * @license 2830 * Copyright 2020 Google LLC 2831 * 2832 * Licensed under the Apache License, Version 2.0 (the "License");
2833 * you may not use this file except in compliance with the License. 2834 * You may obtain a copy of the License at 2835 * 2836 * http://www.apache.org/licenses/LICENSE-2.0 2837 * 2838 * Unless required by applicable law or agreed to in writing, software 2839 * distributed under the License is distributed on an "AS IS" BASIS, 2840 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2841 * See the License for the specific language governing permissions and 2842 * limitations under the License. 2843 */async function dl(t,e){return im(t,"POST","/v1/accounts:signInWithIdp",so(t,e))}/** 2844 * @license 2845 * Copyright 2020 Google LLC 2846 * 2847 * Licensed under the Apache License, Version 2.0 (the "License"); 2848 * you may not use this file except in compliance with the License. 2849 * You may obtain a copy of the License at 2850 * 2851 * http://www.apache.org/licenses/LICENSE-2.0 2852 * 2853 * Unless required by applicable law or agreed to in writing, software 2854 * distributed under the License is distributed on an "AS IS" BASIS, 2855 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2856 * See the License for the specific language governing permissions and 2857 * limitations under the License. 2858 */const mB="http://localhost";class Xa extends Bv{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(e){const n=new Xa(e.providerId,e.signInMethod);return e.idToken||e.accessToken?(e.idToken&&(n.idToken=e.idToken),e.accessToken&&(n.accessToken=e.accessToken),e.nonce&&!e.pendingToken&&(n.nonce=e.nonce),e.pendingToken&&(n.pendingToken=e.pendingToken)):e.oauthToken&&e.oauthTokenSecret?(n.accessToken=e.oauthToken,n.secret=e.oauthTokenSecret):Si("argument-error"),n}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,n
2858once:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(e){const n=typeof e=="string"?JSON.parse(e):e,{providerId:s,signInMethod:a}=n,l=Lv(n,["providerId","signInMethod"]);if(!s||!a)return null;const u=new Xa(s,a);return u.idToken=l.idToken||void 0,u.accessToken=l.accessToken||void 0,u.secret=l.secret,u.nonce=l.nonce,u.pendingToken=l.pendingToken||null,u}_getIdTokenResponse(e){const n=this.buildRequest();return dl(e,n)}_linkToIdToken(e,n){const s=this.buildRequest();return s.idToken=n,dl(e,s)}_getReauthenticationResolver(e){const n=this.buildRequest();return n.autoCreate=!1,dl(e,n)}buildRequest(){const e={requestUri:mB,returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{const n={};this.idToken&&(n.id_token=this.idToken),this.accessToken&&(n.access_token=this.accessToken),this.secret&&(n.oauth_token_secret=this.secret),n.providerId=this.providerId,this.nonce&&!this.pendingToken&&(n.nonce=this.nonce),e.postBody=zu(n)}return e}}/** 2859 * @license 2860 * Copyright 2020 Google LLC 2861 * 2862 * Licensed under the Apache License, Version 2.0 (the "License"); 2863 * you may not use this file except in compliance with the License. 2864 * You may obtain a copy of the License at 2865 * 2866 * http://www.apache.org/licenses/LICENSE-2.0 2867 * 2868 * Unless required by applicable law or agreed to in writing, software 2869 * distributed under the License is distributed on an "AS IS" BASIS, 2870 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2871 * See the License for the specific language governing permissions and 2872 * limitations under the License. 2873 */function pB(t){switch(t){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}function gB(t){const e=Jc(Zc(t)).link,n=e?Jc(Zc(e)).deep_link_id:null,s=Jc(Zc(t)).deep_link_id;return(s?Jc(Zc(s)).link:null)||s||n||e||t}class zv{constructor(e){var n,s,a,l,u,d;const m=Jc(Zc(e)),g=(n=m.apiKey)!==null&&n!==void 0?n:null,x=(s=m.oobCode)!==null&&s!==void 0?s:null,v=pB((a=m.mode)!==null&&a!==void 0?a:null);_e(g&&x&&v,"argument-error"),this.apiKey=g,this.operation=v,this.code=x,this.continueUrl=(l=m.continueUrl)!==null&&l!==void 0?l:null,this.languageCode=(u=m.languageCode)!==null&&u!==void 0?u:null,this.tenantId=(d=m.tenantId)!==null&&d!==void 0?d:null}static parseLink(e){const n=gB(e);try{return new zv(n)}catch{return null}}}/** 2874 * @license 2875 * Copyright 2020 Google LLC 2876 * 2877 * Licensed under the Apache License, Version 2.0 (the "License"); 2878 * you may not use this file except in compliance with the License. 2879 * You may obtain a copy of the License at 2880 * 2881 * http://www.apache.org/licenses/LICENSE-2.0 2882 * 2883 * Unless required by applicable law or agreed to in writing, software 2884 * distributed under the License is distributed on an "AS IS" BASIS, 2885 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2886 * See the License for the specific language governing permissions and 2887 * limitations under the License. 2888 */class Bl{constructor(){this.providerId=Bl.PROVIDER_ID}static credential(e,n){return Cu._fromEmailAndPassword(e,n)}static credentialWithLink(e,n){const s=zv.parseLink(n);return _e(s,"argument-error"),Cu._fromEmailAndCode(e,s.code,s.tenantId)}}Bl.PROVIDER_ID="password";Bl.EMAIL_PASSWORD_SIGN_IN_METHOD="password";Bl.EMAIL_LINK_SIGN_IN_METHOD="emailLink";/** 2889 * @license 2890 * Copyright 2020 Google LLC 2891 * 2892 * Licensed under the Apache License, Version 2.0 (the "License"); 2893 * you may not use this file except in compliance with the License. 2894 * You may obtain a copy of the License at 2895 * 2896 * http://www.apache.org/licenses/LICENSE-2.0 2897 * 2898 * Unless required by applicable law or agreed to in writing, software 2899 * distributed under the License is distributed on an "AS IS" BASIS, 2900 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2901 * See the License for the specific language governing permissions and 2902 * limitations under the License. 2903 */class gj{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}}/** 2904 * @license 2905 * Copyright 2019 Google LLC 2906 * 2907 * Licensed under the Apache License, Version 2.0 (the "License");
2908 * you may not use this file except in compliance with the License. 2909 * You may obtain a copy of the License at 2910 * 2911 * http://www.apache.org/licenses/LICENSE-2.0 2912 * 2913 * Unless required by applicable law or agreed to in writing, software 2914 * distributed under the License is distributed on an "AS IS" BASIS, 2915 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2916 * See the License for the specific language governing permissions and 2917 * limitations under the License. 2918 */class Wu extends gj{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}}/** 2919 * @license 2920 * Copyright 2020 Google LLC 2921 * 2922 * Licensed under the Apache License, Version 2.0 (the "License"); 2923 * you may not use this file except in compliance with the License. 2924 * You may obtain a copy of the License at 2925 * 2926 * http://www.apache.org/licenses/LICENSE-2.0 2927 * 2928 * Unless required by applicable law or agreed to in writing, software 2929 * distributed under the License is distributed on an "AS IS" BASIS, 2930 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2931 * See the License for the specific language governing permissions and 2932 * limitations under the License. 2933 */class Vr extends Wu{constructor(){super("facebook.com")}static credential(e){return Xa._fromParams({providerId:Vr.PROVIDER_ID,signInMethod:Vr.FACEBOOK_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return Vr.credentialFromTaggedObject(e)}static credentialFromError(e){return Vr.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return Vr.credential(e.oauthAccessToken)}catch{return null}}}Vr.FACEBOOK_SIGN_IN_METHOD="facebook.com";Vr.PROVIDER_ID="facebook.com";/** 2934 * @license 2935 * Copyright 2020 Google LLC 2936 * 2937 * Licensed under the Apache License, Version 2.0 (the "License"); 2938 * you may not use this file except in compliance with the License. 2939 * You may obtain a copy of the License at 2940 * 2941 * http://www.apache.org/licenses/LICENSE-2.0 2942 * 2943 * Unless required by applicable law or agreed to in writing, software 2944 * distributed under the License is distributed on an "AS IS" BASIS, 2945 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2946 * See the License for the specific language governing permissions and 2947 * limitations under the License. 2948 */class Ur extends Wu{constructor(){super("google.com"),this.addScope("profile")}static credential(e,n){return Xa._fromParams({providerId:Ur.PROVIDER_ID,signInMethod:Ur.GOOGLE_SIGN_IN_METHOD,idToken:e,accessToken:n})}static credentialFromResult(e){return Ur.credentialFromTaggedObject(e)}static credentialFromError(e){return Ur.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthIdToken:n,oauthAccessToken:s}=e;if(!n&&!s)return null;try{return Ur.credential(n,s)}catch{return null}}}Ur.GOOGLE_SIGN_IN_METHOD="google.com";Ur.PROVIDER_ID="google.com";/** 2949 * @license 2950 * Copyright 2020 Google LLC 2951 * 2952 * Licensed under the Apache License, Version 2.0 (the "License"); 2953 * you may not use this file except in compliance with the License. 2954 * You may obtain a copy of the License at 2955 * 2956 * http://www.apache.org/licenses/LICENSE-2.0 2957 * 2958 * Unless required by applicable law or agreed to in writing, software 2959 * distributed under the License is distributed on an "AS IS" BASIS, 2960 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2961 * See the License for the specific language governing permissions and 2962 * limitations under the License. 2963 */class Br extends Wu{constructor(){super("github.com")}static credential(e){return Xa._fromParams({providerId:Br.PROVIDER_ID,signInMethod:Br.GITHUB_SIGN_IN_METHOD,accessToken:e})}static credentialFromResult(e){return Br.credentialFromTaggedObject(e)}static credentialFromError(e){return Br.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e||!("oauthAccessToken"in e)||!e.oauthAccessToken)return null;try{return Br.credential(e.oauthAccessToken)}catch{return null}}}Br.GITHUB_SIGN_IN_METHOD="github.com";Br.PROVIDER_ID="github.com";/** 2964 * @license 2965 * Copyright 2020 Google LLC 2966 * 2967 * Licensed under the Apache License, Version 2.0 (the "License");
2968 * you may not use this file except in compliance with the License. 2969 * You may obtain a copy of the License at 2970 * 2971 * http://www.apache.org/licenses/LICENSE-2.0 2972 * 2973 * Unless required by applicable law or agreed to in writing, software 2974 * distributed under the License is distributed on an "AS IS" BASIS, 2975 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2976 * See the License for the specific language governing permissions and 2977 * limitations under the License. 2978 */class zr extends Wu{constructor(){super("twitter.com")}static credential(e,n){return Xa._fromParams({providerId:zr.PROVIDER_ID,signInMethod:zr.TWITTER_SIGN_IN_METHOD,oauthToken:e,oauthTokenSecret:n})}static credentialFromResult(e){return zr.credentialFromTaggedObject(e)}static credentialFromError(e){return zr.credentialFromTaggedObject(e.customData||{})}static credentialFromTaggedObject({_tokenResponse:e}){if(!e)return null;const{oauthAccessToken:n,oauthTokenSecret:s}=e;if(!n||!s)return null;try{return zr.credential(n,s)}catch{return null}}}zr.TWITTER_SIGN_IN_METHOD="twitter.com";zr.PROVIDER_ID="twitter.com";/** 2979 * @license 2980 * Copyright 2020 Google LLC 2981 * 2982 * Licensed under the Apache License, Version 2.0 (the "License"); 2983 * you may not use this file except in compliance with the License. 2984 * You may obtain a copy of the License at 2985 * 2986 * http://www.apache.org/licenses/LICENSE-2.0 2987 * 2988 * Unless required by applicable law or agreed to in writing, software 2989 * distributed under the License is distributed on an "AS IS" BASIS, 2990 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2991 * See the License for the specific language governing permissions and 2992 * limitations under the License. 2993 */class _l{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(e,n,s,a=!1){const l=await Ds._fromIdTokenResponse(e,s,a),u=yE(s);return new _l({user:l,providerId:u,_tokenResponse:s,operationType:n})}static async _forOperation(e,n,s){await e._updateTokensIfNecessary(s,!0);const a=yE(s);return new _l({user:e,providerId:a,_tokenResponse:s,operationType:n})}}function yE(t){return t.providerId?t.providerId:"phoneNumber"in t?"phone":null}/** 2994 * @license 2995 * Copyright 2020 Google LLC 2996 * 2997 * Licensed under the Apache License, Version 2.0 (the "License"); 2998 * you may not use this file except in compliance with the License. 2999 * You may obtain a copy of the License at 3000 * 3001 * http://www.apache.org/licenses/LICENSE-2.0 3002 * 3003 * Unless required by applicable law or agreed to in writing, software 3004 * distributed under the License is distributed on an "AS IS" BASIS, 3005 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3006 * See the License for the specific language governing permissions and 3007 * limitations under the License. 3008 */class Sf extends Hs{constructor(e,n,s,a){var l;super(n.code,n.message),this.operationType=s,this.user=a,Object.setPrototypeOf(this,Sf.prototype),this.customData={appName:e.name,tenantId:(l=e.tenantId)!==null&&l!==void 0?l:void 0,_serverResponse:n.customData._serverResponse,operationType:s}}static _fromErrorAndOperation(e,n,s,a){return new Sf(e,n,s,a)}}function yj(t,e,n,s){return(e==="reauthenticate"?n._getReauthenticationResolver(t):n._getIdTokenResponse(t)).catch(l=>{throw l.code==="auth/multi-factor-auth-required"?Sf._fromErrorAndOperation(t,l,e,s):l})}async function yB(t,e,n=!1){const s=await Ru(t,e._linkToIdToken(t.auth,await t.getIdToken()),n);return _l._forOperation(t,"link",s)}/** 3009 * @license 3010 * Copyright 2019 Google LLC 3011 * 3012 * Licensed under the Apache License, Version 2.0 (the "License"); 3013 * you may not use this file except in compliance with the License. 3014 * You may obtain a copy of the License at 3015 * 3016 * http://www.apache.org/licenses/LICENSE-2.0 3017 * 3018 * Unless required by applicable law or agreed to in writing, software 3019 * distributed under the License is distributed on an "AS IS" BASIS, 3020 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3021 * See the License for the specific language governing permissions and 3022 * limitations under the License. 3023 */async function xB(t,e,n=!1){const{auth:s}=t;if(Cs(s.app))return Promise.reject(Yr(s));const a="reauthenticate";try{const l=await Ru(t,yj(s,a,e,t),n);_e(l.idToken,s,"internal-error");const u=Vv(l.idToken);_e(u,s,"internal-error");const{sub:d}=u;return _e(t.uid===d,s,"user-mismatch"),_l._forOperation(t,a,l)}catch(l){throw(l==null?void 0:l.code)==="auth/user-not-found"&&Si(s,"user-mismatch"),l}}/** 3024 * @license 3025 * Copyright 2020 Google LLC 3026 * 3027 * Licensed under the Apache License, Version 2.0 (the "License");
3028 * you may not use this file except in compliance with the License. 3029 * You may obtain a copy of the License at 3030 * 3031 * http://www.apache.org/licenses/LICENSE-2.0 3032 * 3033 * Unless required by applicable law or agreed to in writing, software 3034 * distributed under the License is distributed on an "AS IS" BASIS, 3035 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3036 * See the License for the specific language governing permissions and 3037 * limitations under the License. 3038 */async function xj(t,e,n=!1){if(Cs(t.app))return Promise.reject(Yr(t));const s="signIn",a=await yj(t,s,e),l=await _l._fromIdTokenResponse(t,s,a);return n||await t._updateCurrentUser(l.user),l}async function vB(t,e){return xj(Ul(t),e)}/** 3039 * @license 3040 * Copyright 2020 Google LLC 3041 * 3042 * Licensed under the Apache License, Version 2.0 (the "License"); 3043 * you may not use this file except in compliance with the License. 3044 * You may obtain a copy of the License at 3045 * 3046 * http://www.apache.org/licenses/LICENSE-2.0 3047 * 3048 * Unless required by applicable law or agreed to in writing, software 3049 * distributed under the License is distributed on an "AS IS" BASIS, 3050 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3051 * See the License for the specific language governing permissions and 3052 * limitations under the License. 3053 */async function bB(t){const e=Ul(t);e._getPasswordPolicyInternal()&&await e._updatePasswordPolicy()}function wB(t,e,n){return Cs(t.app)?Promise.reject(Yr(t)):vB(Ht(t),Bl.credential(e,n)).catch(async s=>{throw s.code==="auth/password-does-not-meet-requirements"&&bB(t),s})}function _B(t,e,n,s){return Ht(t).onIdTokenChanged(e,n,s)}function TB(t,e,n){return Ht(t).beforeAuthStateChanged(e,n)}function EB(t,e,n,s){return Ht(t).onAuthStateChanged(e,n,s)}function vj(t){return Ht(t).signOut()}const Af="__sak";/** 3054 * @license 3055 * Copyright 2019 Google LLC 3056 * 3057 * Licensed under the Apache License, Version 2.0 (the "License"); 3058 * you may not use this file except in compliance with the License. 3059 * You may obtain a copy of the License at 3060 * 3061 * http://www.apache.org/licenses/LICENSE-2.0 3062 * 3063 * Unless required by applicable law or agreed to in writing, software 3064 * distributed under the License is distributed on an "AS IS" BASIS, 3065 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3066 * See the License for the specific language governing permissions and 3067 * limitations under the License. 3068 */class bj{constructor(e,n){this.storageRetriever=e,this.type=n}_isAvailable(){try{return this.storage?(this.storage.setItem(Af,"1"),this.storage.removeItem(Af),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(e,n){return this.storage.setItem(e,JSON.stringify(n)),Promise.resolve()}_get(e){const n=this.storage.getItem(e);return Promise.resolve(n?JSON.parse(n):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}}/** 3069 * @license 3070 * Copyright 2020 Google LLC 3071 * 3072 * Licensed under the Apache License, Version 2.0 (the "License"); 3073 * you may not use this file except in compliance with the License. 3074 * You may obtain a copy of the License at 3075 * 3076 * http://www.apache.org/licenses/LICENSE-2.0 3077 * 3078 * Unless required by applicable law or agreed to in writing, software 3079 * distributed under the License is distributed on an "AS IS" BASIS, 3080 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3081 * See the License for the specific language governing permissions and 3082 * limitations under the License. 3083 */const SB=1e3,AB=10;class wj extends bj{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(e,n)=>this.onStorageEvent(e,n),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=hj(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(const n of Object.keys(this.listeners)){const s=this.storage.getItem(n),a=this.localCache[n];s!==a&&e(n,a,s)}}onStorageEvent(e,n=!1){if(!e.key){this.forAllChangedKeys((u,d,m)=>{this.notifyListeners(u,m)});return}const s=e.key;n?this.detachListener():this.stopPolling();const a=()=>{const u=this.storage.getItem(s);!n&&this.localCache[s]===u||this.notifyListeners(s,u)},l=this.storage.getItem(s);H9()&&l!==e.newValue&&e.newValue!==e.oldValue?setTimeout(a,AB):a()}notifyListeners(e,n){this.localCache[e]=n;const s=this.listeners[e];if(s)for(const a of Array.from(s))a(n&&JSON.parse(n))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((e,n,s)=>{this.onStorageEvent(new StorageEvent("storage",{key:e,oldValue:n,newValue:s}),!0)})},SB)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(e,n){Object.keys(this.listeners).length===0&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(n)}_removeListener(e,n){this.listeners[e]&&(this.listeners[e].delete(n),this.listeners[e].size===0&&delete this.listeners[e]),Ob
3083ject.keys(this.listeners).length===0&&(this.detachListener(),this.stopPolling())}async _set(e,n){await super._set(e,n),this.localCache[e]=JSON.stringify(n)}async _get(e){const n=await super._get(e);return this.localCache[e]=JSON.stringify(n),n}async _remove(e){await super._remove(e),delete this.localCache[e]}}wj.type="LOCAL";const NB=wj;/** 3084 * @license 3085 * Copyright 2020 Google LLC 3086 * 3087 * Licensed under the Apache License, Version 2.0 (the "License"); 3088 * you may not use this file except in compliance with the License. 3089 * You may obtain a copy of the License at 3090 * 3091 * http://www.apache.org/licenses/LICENSE-2.0 3092 * 3093 * Unless required by applicable law or agreed to in writing, software 3094 * distributed under the License is distributed on an "AS IS" BASIS, 3095 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3096 * See the License for the specific language governing permissions and 3097 * limitations under the License. 3098 */class _j extends bj{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(e,n){}_removeListener(e,n){}}_j.type="SESSION";const Tj=_j;/** 3099 * @license 3100 * Copyright 2019 Google LLC 3101 * 3102 * Licensed under the Apache License, Version 2.0 (the "License"); 3103 * you may not use this file except in compliance with the License. 3104 * You may obtain a copy of the License at 3105 * 3106 * http://www.apache.org/licenses/LICENSE-2.0 3107 * 3108 * Unless required by applicable law or agreed to in writing, software 3109 * distributed under the License is distributed on an "AS IS" BASIS, 3110 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3111 * See the License for the specific language governing permissions and 3112 * limitations under the License. 3113 */function jB(t){return Promise.all(t.map(async e=>{try{return{fulfilled:!0,value:await e}}catch(n){return{fulfilled:!1,reason:n}}}))}/** 3114 * @license 3115 * Copyright 2019 Google LLC 3116 * 3117 * Licensed under the Apache License, Version 2.0 (the "License"); 3118 * you may not use this file except in compliance with the License. 3119 * You may obtain a copy of the License at 3120 * 3121 * http://www.apache.org/licenses/LICENSE-2.0 3122 * 3123 * Unless required by applicable law or agreed to in writing, software 3124 * distributed under the License is distributed on an "AS IS" BASIS, 3125 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3126 * See the License for the specific language governing permissions and 3127 * limitations under the License. 3128 */class rm{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(e){const n=this.receivers.find(a=>a.isListeningto(e));if(n)return n;const s=new rm(e);return this.receivers.push(s),s}isListeningto(e){return this.eventTarget===e}async handleEvent(e){const n=e,{eventId:s,eventType:a,data:l}=n.data,u=this.handlersMap[a];if(!(u!=null&&u.size))return;n.ports[0].postMessage({status:"ack",eventId:s,eventType:a});const d=Array.from(u).map(async g=>g(n.origin,l)),m=await jB(d);n.ports[0].postMessage({status:"done",eventId:s,eventType:a,response:m})}_subscribe(e,n){Object.keys(this.handlersMap).length===0&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(n)}_unsubscribe(e,n){this.handlersMap[e]&&n&&this.handlersMap[e].delete(n),(!n||this.handlersMap[e].size===0)&&delete this.handlersMap[e],Object.keys(this.handlersMap).length===0&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}rm.receivers=[];/** 3129 * @license 3130 * Copyright 2020 Google LLC 3131 * 3132 * Licensed under the Apache License, Version 2.0 (the "License"); 3133 * you may not use this file except in compliance with the License. 3134 * You may obtain a copy of the License at 3135 * 3136 * http://www.apache.org/licenses/LICENSE-2.0 3137 * 3138 * Unless required by applicable law or agreed to in writing, software 3139 * distributed under the License is distributed on an "AS IS" BASIS, 3140 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3141 * See the License for the specific language governing permissions and 3142 * limitations under the License. 3143 */function Fv(t="",e=10){let n="";for(let s=0;s<e;s++)n+=Math.floor(Math.random()*10);return t+n}/** 3144 * @license 3145 * Copyright 2019 Google LLC 3146 * 3147 * Licensed under the Apache License, Version 2.0 (the "License");
3148 * you may not use this file except in compliance with the License. 3149 * You may obtain a copy of the License at 3150 * 3151 * http://www.apache.org/licenses/LICENSE-2.0 3152 * 3153 * Unless required by applicable law or agreed to in writing, software 3154 * distributed under the License is distributed on an "AS IS" BASIS, 3155 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3156 * See the License for the specific language governing permissions and 3157 * limitations under the License. 3158 */class RB{constructor(e){this.target=e,this.handlers=new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener("message",e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}async _send(e,n,s=50){const a=typeof MessageChannel<"u"?new MessageChannel:null;if(!a)throw new Error("connection_unavailable");let l,u;return new Promise((d,m)=>{const g=Fv("",20);a.port1.start();const x=setTimeout(()=>{m(new Error("unsupported_event"))},s);u={messageChannel:a,onMessage(v){const T=v;if(T.data.eventId===g)switch(T.data.status){case"ack":clearTimeout(x),l=setTimeout(()=>{m(new Error("timeout"))},3e3);break;case"done":clearTimeout(l),d(T.data.response);break;default:clearTimeout(x),clearTimeout(l),m(new Error("invalid_response"));break}}},this.handlers.add(u),a.port1.addEventListener("message",u.onMessage),this.target.postMessage({eventType:e,eventId:g,data:n},[a.port2])}).finally(()=>{u&&this.removeMessageHandler(u)})}}/** 3159 * @license 3160 * Copyright 2020 Google LLC 3161 * 3162 * Licensed under the Apache License, Version 2.0 (the "License"); 3163 * you may not use this file except in compliance with the License. 3164 * You may obtain a copy of the License at 3165 * 3166 * http://www.apache.org/licenses/LICENSE-2.0 3167 * 3168 * Unless required by applicable law or agreed to in writing, software 3169 * distributed under the License is distributed on an "AS IS" BASIS, 3170 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3171 * See the License for the specific language governing permissions and 3172 * limitations under the License. 3173 */function Qi(){return window}function CB(t){Qi().location.href=t}/** 3174 * @license 3175 * Copyright 2020 Google LLC. 3176 * 3177 * Licensed under the Apache License, Version 2.0 (the "License"); 3178 * you may not use this file except in compliance with the License. 3179 * You may obtain a copy of the License at 3180 * 3181 * http://www.apache.org/licenses/LICENSE-2.0 3182 * 3183 * Unless required by applicable law or agreed to in writing, software 3184 * distributed under the License is distributed on an "AS IS" BASIS, 3185 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3186 * See the License for the specific language governing permissions and 3187 * limitations under the License. 3188 */function Ej(){return typeof Qi().WorkerGlobalScope<"u"&&typeof Qi().importScripts=="function"}async function IB(){if(!(navigator!=null&&navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch{return null}}function DB(){var t;return((t=navigator==null?void 0:navigator.serviceWorker)===null||t===void 0?void 0:t.controller)||null}function kB(){return Ej()?self:null}/** 3189 * @license 3190 * Copyright 2019 Google LLC 3191 * 3192 * Licensed under the Apache License, Version 2.0 (the "License"); 3193 * you may not use this file except in compliance with the License. 3194 * You may obtain a copy of the License at 3195 * 3196 * http://www.apache.org/licenses/LICENSE-2.0 3197 * 3198 * Unless required by applicable law or agreed to in writing, software 3199 * distributed under the License is distributed on an "AS IS" BASIS, 3200 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3201 * See the License for the specific language governing permissions and 3202 * limitations under the License. 3203 */const Sj="firebaseLocalStorageDb",MB=1,Nf="firebaseLocalStorage",Aj="fbase_key";class Qu{constructor(e){this.request=e}toPromise(){return new Promise((e,n)=>{this.request.addEventListener("success",()=>{e(this.request.result)}),this.request.addEventListener("error",()=>{n(this.request.error)})})}}function am(t,e){return t.transaction([Nf],e?"readwrite":"readonly").objectStore(Nf)}function LB(){const t=indexedDB.deleteDatabase(Sj);
3203return new Qu(t).toPromise()}function rx(){const t=indexedDB.open(Sj,MB);return new Promise((e,n)=>{t.addEventListener("error",()=>{n(t.error)}),t.addEventListener("upgradeneeded",()=>{const s=t.result;try{s.createObjectStore(Nf,{keyPath:Aj})}catch(a){n(a)}}),t.addEventListener("success",async()=>{const s=t.result;s.objectStoreNames.contains(Nf)?e(s):(s.close(),await LB(),e(await rx()))})})}async function xE(t,e,n){const s=am(t,!0).put({[Aj]:e,value:n});return new Qu(s).toPromise()}async function OB(t,e){const n=am(t,!1).get(e),s=await new Qu(n).toPromise();return s===void 0?null:s.value}function vE(t,e){const n=am(t,!0).delete(e);return new Qu(n).toPromise()}const PB=800,VB=3;class Nj{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){return this.db?this.db:(this.db=await rx(),this.db)}async _withRetries(e){let n=0;for(;;)try{const s=await this._openDb();return await e(s)}catch(s){if(n++>VB)throw s;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return Ej()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=rm._getInstance(kB()),this.receiver._subscribe("keyChanged",async(e,n)=>({keyProcessed:(await this._poll()).includes(n.key)}
3203)),this.receiver._subscribe("ping",async(e,n)=>["keyChanged"])}async initializeSender(){var e,n;if(this.activeServiceWorker=await IB(),!this.activeServiceWorker)return;this.sender=new RB(this.activeServiceWorker);const s=await this.sender._send("ping",{},800);s&&!((e=s[0])===null||e===void 0)&&e.fulfilled&&!((n=s[0])===null||n===void 0)&&n.value.includes("keyChanged")&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){if(!(!this.sender||!this.activeServiceWorker||DB()!==this.activeServiceWorker))try{await this.sender._send("keyChanged",{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch{}}async _isAvailable(){try{if(!indexedDB)return!1;const e=await rx();return await xE(e,Af,"1"),await vE(e,Af),!0}catch{}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,n){return this._withPendingWrite(async()=>(await this._withRetries(s=>xE(s,e,n)),this.localCache[e]=n,this.notifyServiceWorker(e)))}async _get(e){const n=await this._withRetries(s=>OB(s,e));return this.localCache[e]=n,n}async _remove(e){return this._withPendingWrite(async()=>(await this._withRetries(n=>vE(n,e)),delete this.localCache[e],this.notifyServiceWorker(e)))}async _poll(){const e=await this._withRetries(a=>{const l=am(a,!1).getAll();return new Qu(l).toPromise()});if(!e)return[];if(this.pendingWrites!==0)return[];const n=[],s=new Set;if(e.length!==0)for(const{fbase_key:a,value:l}of e)s.add(a),JSON.stringify(this.localCache[a])!==JSON.stringify(l)&&(this.notifyListeners(a,l),n.push(a));for(const a of Object.keys(this.localCache))this.localCache[a]&&!s.has(a)&&(this.notifyListeners(a,null),n.push(a));return n}notifyListeners(e,n){this.localCache[e]=n;const s=this.listeners[e];if(s)for(const a of Array.from(s))a(n)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),PB)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(e,n){Object.keys(this.listeners).length===0&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(n)}_removeListener(e,n){this.listeners[e]&&(this.listeners[e].delete(n),this.listeners[e].size===0&&delete this.listeners[e]),Ob
vendor: 4,318 bytes, lines 3203-3252
3203ject.keys(this.listeners).length===0&&this.stopPolling()}}Nj.type="LOCAL";const UB=Nj;new Yu(3e4,6e4);/** 3204 * @license 3205 * Copyright 2021 Google LLC 3206 * 3207 * Licensed under the Apache License, Version 2.0 (the "License"); 3208 * you may not use this file except in compliance with the License. 3209 * You may obtain a copy of the License at 3210 * 3211 * http://www.apache.org/licenses/LICENSE-2.0 3212 * 3213 * Unless required by applicable law or agreed to in writing, software 3214 * distributed under the License is distributed on an "AS IS" BASIS, 3215 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3216 * See the License for the specific language governing permissions and 3217 * limitations under the License. 3218 */function BB(t,e){return e?ks(e):(_e(t._popupRedirectResolver,t,"argument-error"),t._popupRedirectResolver)}/** 3219 * @license 3220 * Copyright 2019 Google LLC 3221 * 3222 * Licensed under the Apache License, Version 2.0 (the "License"); 3223 * you may not use this file except in compliance with the License. 3224 * You may obtain a copy of the License at 3225 * 3226 * http://www.apache.org/licenses/LICENSE-2.0 3227 * 3228 * Unless required by applicable law or agreed to in writing, software 3229 * distributed under the License is distributed on an "AS IS" BASIS, 3230 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3231 * See the License for the specific language governing permissions and 3232 * limitations under the License. 3233 */class Gv extends Bv{constructor(e){super("custom","custom"),this.params=e}_getIdTokenResponse(e){return dl(e,this._buildIdpRequest())}_linkToIdToken(e,n){return dl(e,this._buildIdpRequest(n))}_getReauthenticationResolver(e){return dl(e,this._buildIdpRequest())}_buildIdpRequest(e){const n={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(n.idToken=e),n}}function zB(t){return xj(t.auth,new Gv(t),t.bypassAuthState)}function FB(t){const{auth:e,user:n}=t;return _e(n,e,"internal-error"),xB(n,new Gv(t),t.bypassAuthState)}async function GB(t){const{auth:e,user:n}=t;return _e(n,e,"internal-error"),yB(n,new Gv(t),t.bypassAuthState)}/** 3234 * @license 3235 * Copyright 2020 Google LLC 3236 * 3237 * Licensed under the Apache License, Version 2.0 (the "License"); 3238 * you may not use this file except in compliance with the License. 3239 * You may obtain a copy of the License at 3240 * 3241 * http://www.apache.org/licenses/LICENSE-2.0 3242 * 3243 * Unless required by applicable law or agreed to in writing, software 3244 * distributed under the License is distributed on an "AS IS" BASIS, 3245 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3246 * See the License for the specific language governing permissions and 3247 * limitations under the License. 3248 */class jj{constructor(e,n,s,a,l=!1){this.auth=e,this.resolver=s,this.user=a,this.bypassAuthState=l,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(n)?n:[n]}execute(){return new Promise(async(e,n)=>{this.pendingPromise={resolve:e,reject:n};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(s){this.reject(s)}})}async onAuthEvent(e){const{urlResponse:n,sessionId:s,postBody:a,tenantId:l,error:u,type:d}=e;if(u){this.reject(u);return}const m={auth:this.auth,requestUri:n,sessionId:s,tenantId:l||void 0,postBody:a||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(d)(m))}catch(g){this.reject(g)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case"signInViaPopup":case"signInViaRedirect":return zB;case"linkViaPopup":case"linkViaRedirect":return GB;case"reauthViaPopup":case"reauthViaRedirect":return FB;default:Si(this.auth,"internal-error")}}resolve(e){qs(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){qs(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}/** 3249 * @license 3250 * Copyright 2020 Google LLC 3251 * 3252 * Licensed under the Apache License, Version 2.0 (the "License");
3253 * you may not use this file except in compliance with the License. 3254 * You may obtain a copy of the License at 3255 * 3256 * http://www.apache.org/licenses/LICENSE-2.0 3257 * 3258 * Unless required by applicable law or agreed to in writing, software 3259 * distributed under the License is distributed on an "AS IS" BASIS, 3260 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3261 * See the License for the specific language governing permissions and 3262 * limitations under the License. 3263 */const qB=new Yu(2e3,1e4);class sl extends jj{constructor(e,n,s,a,l){super(e,n,a,l),this.provider=s,this.authWindow=null,this.pollId=null,sl.currentPopupAction&&sl.currentPopupAction.cancel(),sl.currentPopupAction=this}async executeNotNull(){const e=await this.execute();return _e(e,this.auth,"internal-error"),e}async onExecution(){qs(this.filter.length===1,"Popup operations only handle one event");const e=Fv();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,this.resolver._originValidation(this.auth).catch(n=>{this.reject(n)}),this.resolver._isIframeWebStorageSupported(this.auth,n=>{n||this.reject(Wi(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){var e;return((e=this.authWindow)===null||e===void 0?void 0:e.associatedEvent)||null}cancel(){this.reject(Wi(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,sl.currentPopupAction=null}pollUserCancellation(){const e=()=>{var n,s;if(!((s=(n=this.authWindow)===null||n===void 0?void 0:n.window)===null||s===void 0)&&s.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(Wi(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(e,qB.get())};e()}}sl.currentPopupAction=null;/** 3264 * @license 3265 * Copyright 2020 Google LLC 3266 * 3267 * Licensed under the Apache License, Version 2.0 (the "License"); 3268 * you may not use this file except in compliance with the License. 3269 * You may obtain a copy of the License at 3270 * 3271 * http://www.apache.org/licenses/LICENSE-2.0 3272 * 3273 * Unless required by applicable law or agreed to in writing, software 3274 * distributed under the License is distributed on an "AS IS" BASIS, 3275 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3276 * See the License for the specific language governing permissions and 3277 * limitations under the License. 3278 */const HB="pendingRedirect",Zd=new Map;class $B extends jj{constructor(e,n,s=!1){super(e,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],n,void 0,s),this.eventId=null}async execute(){let e=Zd.get(this.auth._key());if(!e){try{const s=await KB(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(s)}catch(n){e=()=>Promise.reject(n)}Zd.set(this.auth._key(),e)}return this.bypassAuthState||Zd.set(this.auth._key(),()=>Promise.resolve(null)),e()}async onAuthEvent(e){if(e.type==="signInViaRedirect")return super.onAuthEvent(e);if(e.type==="unknown"){this.resolve(null);return}if(e.eventId){const n=await this.auth._redirectUserForId(e.eventId);if(n)return this.user=n,super.onAuthEvent(e);this.resolve(null)}}async onExecution(){}cleanUp(){}}async function KB(t,e){const n=QB(e),s=WB(t);if(!await s._isAvailable())return!1;const a=await s._get(n)==="true";return await s._remove(n),a}function YB(t,e){Zd.set(t._key(),e)}function WB(t){return ks(t._redirectPersistence)}function QB(t){return Jd(HB,t.config.apiKey,t.name)}async function XB(t,e,n=!1){if(Cs(t.app))return Promise.reject(Yr(t));const s=Ul(t),a=BB(s,e),u=await new $B(s,a,n).execute();return u&&!n&&(delete u.user._redirectEventId,await s._persistUserIfCurrent(u.user),await s._setRedirectUser(null,e)),u}/** 3279 * @license 3280 * Copyright 2020 Google LLC 3281 * 3282 * Licensed under the Apache License, Version 2.0 (the "License"); 3283 * you may not use this file except in compliance with the License. 3284 * You may obtain a copy of the License at 3285 * 3286 * http://www.apache.org/licenses/LICENSE-2.0 3287 * 3288 * Unless required by applicable law or agreed to in writing, softw
3288are 3289 * distributed under the License is distributed on an "AS IS" BASIS, 3290 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3291 * See the License for the specific language governing permissions and 3292 * limitations under the License. 3293 */const JB=600*1e3;class ZB{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let n=!1;return this.consumers.forEach(s=>{this.isEventForConsumer(e,s)&&(n=!0,this.sendToConsumer(e,s),this.saveEventToCache(e))}),this.hasHandledPotentialRedirect||!ez(e)||(this.hasHandledPotentialRedirect=!0,n||(this.queuedRedirectEvent=e,n=!0)),n}sendToConsumer(e,n){var s;if(e.error&&!Rj(e)){const a=((s=e.error.code)===null||s===void 0?void 0:s.split("auth/")[1])||"internal-error";n.onError(Wi(this.auth,a))}else n.onAuthEvent(e)}isEventForConsumer(e,n){const s=n.eventId===null||!!e.eventId&&e.eventId===n.eventId;return n.filter.includes(e.type)&&s}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=JB&&this.cachedEventUids.clear(),this.cachedEventUids.has(bE(e))}saveEventToCache(e){this.cachedEventUids.add(bE(e)),this.lastProcessedEventTime=Date.now()}}function bE(t){return[t.type,t.eventId,t.sessionId,t.tenantId].filter(e=>e).join("-")}function Rj({type:t,error:e}){return t==="unknown"&&(e==null?void 0:e.code)==="auth/no-auth-event"}function ez(t){switch(t.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return Rj(t);default:return!1}}/** 3294 * @license 3295 * Copyright 2020 Google LLC 3296 * 3297 * Licensed under the Apache License, Version 2.0 (the "License"); 3298 * you may not use this file except in compliance with the License. 3299 * You may obtain a copy of the License at 3300 * 3301 * http://www.apache.org/licenses/LICENSE-2.0 3302 * 3303 * Unless required by applicable law or agreed to in writing, software 3304 * distributed under the License is distributed on an "AS IS" BASIS, 3305 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3306 * See the License for the specific language governing permissions and 3307 * limitations under the License. 3308 */async function tz(t,e={}){return aa(t,"GET","/v1/projects",e)}/** 3309 * @license 3310 * Copyright 2020 Google LLC 3311 * 3312 * Licensed under the Apache License, Version 2.0 (the "License"); 3313 * you may not use this file except in compliance with the License. 3314 * You may obtain a copy of the License at 3315 * 3316 * http://www.apache.org/licenses/LICENSE-2.0 3317 * 3318 * Unless required by applicable law or agreed to in writing, software 3319 * distributed under the License is distributed on an "AS IS" BASIS, 3320 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3321 * See the License for the specific language governing permissions and 3322 * limitations under the License. 3323 */const nz=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,iz=/^https?/;async function sz(t){if(t.config.emulator)return;const{authorizedDomains:e}=await tz(t);for(const n of e)try{if(rz(n))return}catch{}Si(t,"unauthorized-domain")}function rz(t){const e=ix(),{protocol:n,hostname:s}=new URL(e);if(t.startsWith("chrome-extension://")){const u=new URL(t);return u.hostname===""&&s===""?n==="chrome-extension:"&&t.replace("chrome-extension://","")===e.replace("chrome-extension://",""):n==="chrome-extension:"&&u.hostname===s}if(!iz.test(n))return!1;if(nz.test(t))return s===t;const a=t.replace(/\./g,"\\.");return new RegExp("^(.+\\."+a+"|"+a+")$","i").test(s)}/** 3324 * @license 3325 * Copyright 2020 Google LLC. 3326 * 3327 * Licensed under the Apache License, Version 2.0 (the "License"); 3328 * you may not use this file except in compliance with the License. 3329 * You may obtain a copy of the License at 3330 * 3331 * http://www.apache.org/licenses/LICENSE-2.0 3332 * 3333 * Unless required by applicable law or agreed to in writing, softw
3333are 3334 * distributed under the License is distributed on an "AS IS" BASIS, 3335 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3336 * See the License for the specific language governing permissions and 3337 * limitations under the License. 3338 */const az=new Yu(3e4,6e4);function wE(){const t=Qi().___jsl;if(t!=null&&t.H){for(const e of Object.keys(t.H))if(t.H[e].r=t.H[e].r||[],t.H[e].L=t.H[e].L||[],t.H[e].r=[...t.H[e].L],t.CP)for(let n=0;n<t.CP.length;n++)t.CP[n]=null}}function oz(t){return new Promise((e,n)=>{var s,a,l;function u(){wE(),gapi.load("gapi.iframes",{callback:()=>{e(gapi.iframes.getContext())},ontimeout:()=>{wE(),n(Wi(t,"network-request-failed"))},timeout:az.get()})}if(!((a=(s=Qi().gapi)===null||s===void 0?void 0:s.iframes)===null||a===void 0)&&a.Iframe)e(gapi.iframes.getContext());else if(!((l=Qi().gapi)===null||l===void 0)&&l.load)u();else{const d=eB("iframefcb");return Qi()[d]=()=>{gapi.load?u():n(Wi(t,"network-request-failed"))},fj(`${Z9()}?onload=${d}`).catch(m=>n(m))}}).catch(e=>{throw ef=null,e})}let ef=null;function lz(t){return ef=ef||oz(t),ef}/** 3339 * @license 3340 * Copyright 2020 Google LLC. 3341 * 3342 * Licensed under the Apache License, Version 2.0 (the "License"); 3343 * you may not use this file except in compliance with the License. 3344 * You may obtain a copy of the License at 3345 * 3346 * http://www.apache.org/licenses/LICENSE-2.0 3347 * 3348 * Unless required by applicable law or agreed to in writing, software 3349 * distributed under the License is distributed on an "AS IS" BASIS, 3350 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3351 * See the License for the specific language governing permissions and 3352 * limitations under the License. 3353 */const cz=new Yu(5e3,15e3),uz="__/auth/iframe",hz="emulator/auth/iframe",dz={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},fz=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function mz(t){const e=t.config;_e(e.authDomain,t,"auth-domain-config-required");const n=e.emulator?Pv(e,hz):`https://${t.config.authDomain}/${uz}`,s={apiKey:e.apiKey,appName:t.name,v:Dl},a=fz.get(t.config.apiHost);a&&(s.eid=a);const l=t._getFrameworks();return l.length&&(s.fw=l.join(",")),`${n}?${zu(s).slice(1)}`}async function pz(t){const e=await lz(t),n=Qi().gapi;return _e(n,t,"internal-error"),e.open({where:document.body,url:mz(t),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:dz,dontclear:!0},s=>new Promise(async(a,l)=>{await s.restyle({setHideOnLeave:!1});const u=Wi(t,"network-request-failed"),d=Qi().setTimeout(()=>{l(u)},cz.get());function m(){Qi().clearTimeout(d),a(s)}s.ping(m).then(m,()=>{l(u)})}))}/** 3354 * @license 3355 * Copyright 2020 Google LLC. 3356 * 3357 * Licensed under the Apache License, Version 2.0 (the "License"); 3358 * you may not use this file except in compliance with the License. 3359 * You may obtain a copy of the License at 3360 * 3361 * http://www.apache.org/licenses/LICENSE-2.0 3362 * 3363 * Unless required by applicable law or agreed to in writing, software 3364 * distributed under the License is distributed on an "AS IS" BASIS, 3365 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3366 * See the License for the specific language governing permissions and 3367 * limitations under the License. 3368 */const gz={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},yz=500,xz=600,vz="_blank",bz="http://localhost";class _E{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}function wz(t,e,n,s=yz,a=xz){const l=Math.max((window.screen.availHeight-a)/2,0).toString(),u=Math.max((window.screen.availWidth-s)/2,0).toString();let d="";const m=Object.assign(Object.assign({},gz),{width:s.toString(),height:a.toString(),top:l,left:u}),g=mn().toLowerCase();n&&(d=aj(g)?vz:n),sj(g)&&(e=e||bz,m.scrollbars="yes");const x=Object.entries(m).reduce((T,[E,C])=>`${T}${E}=${C},`,"");if(q9(g)&&d!=="_self")return _z(e||"",d),new _E(null);const v=window.open(e||"",d,x);_e(v,t,"popup-blocked");try{v.focus()}catch{}return new _E(v)}function _z(t,e){const n=document.createElement("a");n.href=t,n.target=e;const s=document.createEvent("MouseEvent");
3368s.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(s)}/** 3369 * @license 3370 * Copyright 2021 Google LLC 3371 * 3372 * Licensed under the Apache License, Version 2.0 (the "License"); 3373 * you may not use this file except in compliance with the License. 3374 * You may obtain a copy of the License at 3375 * 3376 * http://www.apache.org/licenses/LICENSE-2.0 3377 * 3378 * Unless required by applicable law or agreed to in writing, software 3379 * distributed under the License is distributed on an "AS IS" BASIS, 3380 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3381 * See the License for the specific language governing permissions and 3382 * limitations under the License. 3383 */const Tz="__/auth/handler",Ez="emulator/auth/handler",Sz=encodeURIComponent("fac");async function TE(t,e,n,s,a,l){_e(t.config.authDomain,t,"auth-domain-config-required"),_e(t.config.apiKey,t,"invalid-api-key");const u={apiKey:t.config.apiKey,appName:t.name,authType:n,redirectUrl:s,v:Dl,eventId:a};if(e instanceof gj){e.setDefaultLanguage(t.languageCode),u.providerId=e.providerId||"",i3(e.getCustomParameters())||(u.customParameters=JSON.stringify(e.getCustomParameters()));for(const[x,v]of Object.entries({}))u[x]=v}if(e instanceof Wu){const x=e.getScopes().filter(v=>v!=="");x.length>0&&(u.scopes=x.join(","))}t.tenantId&&(u.tid=t.tenantId);const d=u;for(const x of Object.keys(d))d[x]===void 0&&delete d[x];const m=await t._getAppCheckToken(),g=m?`#${Sz}=${encodeURIComponent(m)}`:"";return`${Az(t)}?${zu(d).slice(1)}${g}`}function Az({config:t}){return t.emulator?Pv(t,Ez):`https://${t.authDomain}/${Tz}`}/** 3384 * @license 3385 * Copyright 2020 Google LLC 3386 * 3387 * Licensed under the Apache License, Version 2.0 (the "License"); 3388 * you may not use this file except in compliance with the License. 3389 * You may obtain a copy of the License at 3390 * 3391 * http://www.apache.org/licenses/LICENSE-2.0 3392 * 3393 * Unless required by applicable law or agreed to in writing, software 3394 * distributed under the License is distributed on an "AS IS" BASIS, 3395 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3396 * See the License for the specific language governing permissions and 3397 * limitations under the License. 3398 */const ny="webStorageSupport";class Nz{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=Tj,this._completeRedirectFn=XB,this._overrideRedirectResult=YB}async _openPopup(e,n,s,a){var l;qs((l=this.eventManagers[e._key()])===null||l===void 0?void 0:l.manager,"_initialize() not called before _openPopup()");const u=await TE(e,n,s,ix(),a);return wz(e,u,Fv())}async _openRedirect(e,n,s,a){await this._originValidation(e);const l=await TE(e,n,s,ix(),a);return CB(l),new Promise(()=>{})}_initialize(e){const n=e._key();if(this.eventManagers[n]){const{manager:a,promise:l}=this.eventManagers[n];return a?Promise.resolve(a):(qs(l,"If manager is not set, promise should be"),l)}const s=this.initAndGetManager(e);return this.eventManagers[n]={promise:s},s.catch(()=>{delete this.eventManagers[n]}),s}async initAndGetManager(e){const n=await pz(e),s=new ZB(e);return n.register("authEvent",a=>(_e(a==null?void 0:a.authEvent,e,"invalid-auth-event"),{status:s.onEvent(a.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:s},this.iframes[e._key()]=n,s}_isIframeWebStorageSupported(e,n){this.iframes[e._key()].send(ny,{type:ny},a=>{var l;const u=(l=a==null?void 0:a[0])===null||l===void 0?void 0:l[ny];u!==void 0&&n(!!u),Si(e,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){const n=e._key();return this.originValidationPromises[n]||(this.originValidationPromises[n]=sz(e)),this.originValidationPromises[n]}get _shouldInitProactively(){return hj()||rj()||Uv()}}const jz=Nz;var EE="@firebase/auth",SE="1.8.1";/** 3399 * @license 3400 * Copyright 2020 Google LLC 3401 * 3402 * Licensed under the Apache License, Version 2.0 (the "License"); 3403 * you may not use this file except in compliance with the License. 3404 * You may obtain a copy of the License at 3405 * 3406 * http://www.apache.org/licenses/LICENSE-2.0 3407 * 3408 * Unless required by applicable law or agreed to in writing, softw
3408are 3409 * distributed under the License is distributed on an "AS IS" BASIS, 3410 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3411 * See the License for the specific language governing permissions and 3412 * limitations under the License. 3413 */class Rz{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){var e;return this.assertAuthConfigured(),((e=this.auth.currentUser)===null||e===void 0?void 0:e.uid)||null}async getToken(e){return this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser?{accessToken:await this.auth.currentUser.getIdToken(e)}:null}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;const n=this.auth.onIdTokenChanged(s=>{e((s==null?void 0:s.stsTokenManager.accessToken)||null)});this.internalListeners.set(e,n),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();const n=this.internalListeners.get(e);n&&(this.internalListeners.delete(e),n(),this.updateProactiveRefresh())}assertAuthConfigured(){_e(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}/** 3414 * @license 3415 * Copyright 2020 Google LLC 3416 * 3417 * Licensed under the Apache License, Version 2.0 (the "License"); 3418 * you may not use this file except in compliance with the License. 3419 * You may obtain a copy of the License at 3420 * 3421 * http://www.apache.org/licenses/LICENSE-2.0 3422 * 3423 * Unless required by applicable law or agreed to in writing, software 3424 * distributed under the License is distributed on an "AS IS" BASIS, 3425 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3426 * See the License for the specific language governing permissions and 3427 * limitations under the License. 3428 */function Cz(t){switch(t){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}function Iz(t){ml(new Ya("auth",(e,{options:n})=>{const s=e.getProvider("app").getImmediate(),a=e.getProvider("heartbeat"),l=e.getProvider("app-check-internal"),{apiKey:u,authDomain:d}=s.options;_e(u&&!u.includes(":"),"invalid-api-key",{appName:s.name});const m={apiKey:u,authDomain:d,clientPlatform:t,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:dj(t)},g=new Q9(s,a,l,m);return aB(g,n),g},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((e,n,s)=>{e.getProvider("auth-internal").initialize()})),ml(new Ya("auth-internal",e=>{const n=Ul(e.getProvider("auth").getImmediate());return(s=>new Rz(s))(n)},"PRIVATE").setInstantiationMode("EXPLICIT")),$r(EE,SE,Cz(t)),$r(EE,SE,"esm2017")}/** 3429 * @license 3430 * Copyright 2021 Google LLC 3431 * 3432 * Licensed under the Apache License, Version 2.0 (the "License"); 3433 * you may not use this file except in compliance with the License. 3434 * You may obtain a copy of the License at 3435 * 3436 * http://www.apache.org/licenses/LICENSE-2.0 3437 * 3438 * Unless required by applicable law or agreed to in writing, software 3439 * distributed under the License is distributed on an "AS IS" BASIS, 3440 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 3441 * See the License for the specific language governing permissions and 3442 * limitations under the License. 3443 */const Dz=300,kz=yN("authIdTokenMaxAge")||Dz;let AE=null;const Mz=t=>async e=>{const n=e&&await e.getIdTokenResult(),s=n&&(new Date().getTime()-Date.parse(n.issuedAtTime))/1e3;if(s&&s>kz)return;const a=n==null?void 0:n.token;AE!==a&&(AE=a,await fetch(t,{method:a?"POST":"DELETE",headers:a?{Authorization:`Bearer ${a}`}:{}}))};function Lz(t=wN()){const e=ev(t,"auth");if(e.isInitialized())return e.getImmediate();const n=rB(t,{popupRedirectResolver:jz,persistence:[UB,NB,Tj]}),s=yN("authTokenSyncURL");if(s&&typeof isSecureContext=="boolean"&&isSecureContext){const l=new URL(s,location.origin);if(location.origin===l.origin){const u=Mz(l.toString());TB(n,u,()=>u(n.currentUser)),_B(n,d=>u(d))}}const a=pN("auth");return a&&oB(n,`http://${a}`),n}function Oz(){var t,e;return(e=(t=document.getElementsByTagName("head"))===null||t===void 0?void 0:t[0])!==null&&e!==void 0?e:document}
3443X9({loadJS(t){return new Promise((e,n)=>{const s=document.createElement("script");s.setAttribute("src",t),s.onload=e,s.onerror=a=>{const l=Wi("internal-error");l.customData=a,n(l)},s.type="text/javascript",s.charset="UTF-8",Oz().appendChild(s)})},gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="});Iz("Browser");const Pz={apiKey:"AIzaSyAOBVJCgEBu2O0A70trAxJBTqny5Fiz2OQ",authDomain:"isgl-25f4a.firebaseapp.com",projectId:"isgl-25f4a",storageBucket:"isgl-25f4a.firebasestorage.app",messagingSenderId:"79246879580",appId:"1:79246879580:web:4b11521918c559b5c0af99",measurementId:"G-H3HQG79DSE"},Cj=mT().length?mT()[0]:bN(Pz),Tl=Lz(Cj),Vt=r9(Cj),Vz="lgnChessRegistrations",NE="I consent to Let's Game Now (Basus Hall of Game Private Limited) collecting and storing my name, phone number, and email address so they can add me to the LGN Chess waitlist and send related updates. I understand these details will be kept confidential and will not be sold or shared for unrelated marketing.";function Uz(t){const e=t.replace(/\D/g,"");return e.length===12&&e.startsWith("91")?e.slice(2):e.length===11&&e.startsWith("0")?e.slice(1):e}function Bz(t){const e={},n=t.name.trim(),s=Uz(t.phone),a=t.email.trim().toLowerCase();return n.length<2&&(e.name="Enter your full name."),/^[6-9]\d{9}$/.test(s)||(e.phone="Enter a valid 10-digit Indian mobile number."),/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(a)||(e.email="Enter a valid email address."),t.confidentialityConsent!==!0&&(e.confidentialityConsent="Consent is required before we can save your registration."),{errors:e,value:{name:n,phone:s,email:a,confidentialityConsent:t.confidentialityConsent===!0}}}const jE=[{src:"/images/lgn-chess/home.png",alt:"LGN Chess home"},{src:"/images/lgn-chess/mode.png",alt:"Select a chess mode"},{src:"/images/lgn-chess/match.png",alt:"A live chess match"},{src:"/images/lgn-chess/profile.png",alt:"Player profile and match history"}],zz=[{icon:tM,title:"Host or join",description:"Open a private room and play white, or join a friend and take black."},{icon:fS,title:"Short, sharp games",description:"Pick a mode, set the clock, and sit down for a match that starts immediately."},{icon:ik,title:"Play against AI",description:"Practice offline when nobody else is in the room."},{icon:Ka,title:"A record of every result",description:"Games played, win rate, and a match history that keeps the score."}],Fz={name:"",phone:"",email:"",confidentialityConsent:!1},iy="mt-2 w-full rounded-sm border border-white/10 bg-black/40 px-4 py-3 text-base font-display text-white outline-none placeholder:text-white/30 focus:border-chess-gold/60",Gz=()=>{const[t,e]=j.useState(Fz),[n,s]=j.useState({}),[a,l]=j.useState(!1),[u,d]=j.useState(""),[m,g]=j.useState(!1),x=[jE,jE],v=async T=>{T.preventDefault();const{errors:E,value:C}=Bz(t);if(s(E),d(""),!(Object.keys(E).length>0)){l(!0);try{await nm(Ri(Vt,Vz),{name:C.name,phone:C.phone,email:C.email,confidentialityConsent:!0,confidentialityConsentText:NE,consentedAt:aE(),createdAt:aE()}),g(!0)}catch(L){console.error("LGN Chess registration failed",L);const R=L&&typeof L=="object"&&"code"in L?String(L.code):"";d(R.includes("permission-denied")?"Firestore blocked this save. Publish the lgnChessRegistrations create rule, then try again.":"We could not save your registration. Please try again in a moment.")}finally{l(!1)}}};return c.jsxs("main",{className:"relative min-h-screen overflow-x-hidden bg-chess-ink font-display text-white selection:bg-chess-gold/30 selection:text-white",children:[c.jsx(Ln,{title:"LGN Chess | Choose Your Battle",description:"Join the LGN Chess waitlist from Let's Game Now. Host a match, play against AI, and get a note when early access opens.",path:"/games/lgn-chess",image:"/images/lgn-chess/logo.png",keywords:"LGN Chess, Let's Game Now Chess, chess game Android, LGN early access",breadcrumbs:[{name:"Home",path:"/"},{name:"Games",path:"/games"},{name:"LGN Chess",path:"/games/lgn-chess"}],pageType:"WebPage",dateModified:"2026-09-29"}),c.jsx("div",{className:"pointer-events-none fixed -left-24 -top-24 z-0 h-[500px] w-[500px] rounded-full bg-chess-gold/10 blur-[120px]"}),c.jsx("div",{className:"pointer-events-none fixed -bottom-12 -right-12 z-0 h-[400px] w-[400px] rounded-full bg-chess-sage/10 blur-[100px]"}),c.jsx("div",{className:"pointer-events-none fixed inset-0 z-0 opacity-[0.03]",style:{backgroundImage:"radial-gradient(#fff 1px, transparent 1px)",backgroundSize:"40px 40px"}}),c.jsx("header",{className:"fixed inset-x-0 top-0 z-50 bg-chess-ink/80 backdrop-blur-md",children:c.jsxs("div",{className:"mx-auto flex max-w-6xl items-center justify-between gap-3 px-4 py-3 sm:px-6 md:px-12 md:py-5",children:[c.jsxs(Se,{to:"/",className:"flex min-w-0 items-center gap-2 sm:gap-3",children:[c.jsx("img",{src:"/images/lgn-chess/logo.png",alt:"LGN Chess",className:"h-9 w-auto shrink-0 sm:h-11"}),c.jsxs("span",{className:"truncate text-xs font-bold uppercase tracking-[0.14em] sm:text-sm sm:tracking-[0.18em]",children:["LGN ",c.jsx("span",{className:"text-chess-gold",children:"Chess"})]})]}),c.jsxs("nav",{className:"hidden items-center gap-8 text-[11px] font-medium uppercase tracking-[0.2em] text-white/70 lg:flex",children:[c.jsx("a",{href:"#screens",className:"transition-colors hover:text-chess-gold",children:"Screens"}),c.jsx("a",{href:"#about",className:"transition-colors hover:text-chess-gold",children:"The game"}),c.jsx("a",{href:"#register",className:"transition-colors hover:text-chess-gold",children:"Waitlist"})]}),c.jsx("a",{href:"#register",className:"shrink-0 rounded-sm bg-chess-gold px-3 py-2.5 text-[10px] font-bold uppercase tracking-[0.16em] text-chess-ink transition-colors hover:bg-[#e3c15a] sm:px-5 sm:tracking-[0.2em]",children:"Join the waitlist"})]})}),c.jsxs("div",{className:"relative z-10",children:[c.jsxs("section",{className:"relative flex items-center justify-center overflow-hidden px-4 pb-14 pt-24 sm:min-h-[88vh] sm:px-6 sm:pb-20 sm:pt-28",children:[c.jsx("div",{className:"absolute inset-0 z-0 bg-cover bg-center bg-no-repeat opacity-30",style:{backgroundImage:"url(/images/lgn-chess/world.png)"}}),c.jsx("div",{className:"absolute inset-0 z-10 bg-gradient-to-b from-chess-ink/92 via-chess-ink/78 to-chess-ink"}),c.jsx("div",{className:"relative z-30 mx-auto flex w-full max-w-3xl flex-col items-center text-center",children:c.jsxs(qe.div,{initial:{opacity:0,y:24}
3443,animate:{opacity:1,y:0},transition:{duration:.7},className:"w-full space-y-5 sm:space-y-6",children:[c.jsx("span",{className:"inline-block rounded border border-chess-gold/30 bg-chess-ink/70 px-3 py-1 text-[10px] font-medium uppercase tracking-widest text-chess-gold",children:"Early access"}),c.jsx("img",{src:"/images/lgn-chess/logo.png",alt:"LGN Chess",className:"mx-auto h-auto w-28 sm:w-40"}),c.jsx("h1",{className:"px-2 text-3xl font-bold uppercase leading-tight tracking-tight text-white sm:text-5xl md:text-6xl",children:"Choose your battle"}),c.jsx("p",{className:"mx-auto max-w-md px-2 text-sm font-light leading-relaxed text-white/75 sm:max-w-xl sm:text-lg",children:"Host a room or join a friend. Set the clock, take a side, and play. Join the waitlist below."}),c.jsxs("div",{className:"flex w-full flex-col items-stretch gap-3 px-2 pt-1 sm:flex-row sm:items-center sm:justify-center",children:[c.jsx("a",{href:"#register",className:"rounded-sm bg-chess-gold px-6 py-3.5 text-center text-[11px] font-bold uppercase tracking-[0.16em] text-chess-ink shadow-lg shadow-chess-gold/20 transition-colors hover:bg-[#e3c15a] sm:px-10 sm:text-[10px] sm:tracking-[0.2em]",children:"Join the waitlist"}),c.jsx("a",{href:"#screens",className:"rounded-sm border border-white/25 bg-chess-ink/40 px-6 py-3.5 text-center text-[11px] font-bold uppercase tracking-[0.16em] text-white transition-colors hover:bg-white/10 sm:px-10 sm:text-[10px] sm:tracking-[0.2em]",children:"See the game"})]})]})})]}),c.jsxs("section",{id:"screens",className:"relative scroll-mt-20 overflow-hidden py-12 sm:py-16 md:py-24",children:[c.jsxs("div",{className:"mx-auto mb-8 max-w-6xl px-4 text-center sm:mb-12 sm:px-6",children:[c.jsxs("h2",{className:"text-3xl font-bold uppercase tracking-tight sm:text-4xl md:text-5xl",children:["Inside the ",c.jsx("span",{className:"text-chess-gold",children:"game"})]}),c.jsx("p",{className:"mt-4 text-[10px] font-medium uppercase tracking-[0.3em] text-chess-sage/80",children:"Strategy. Focus. Victory."})]}),c.jsxs("div",{className:"relative overflow-hidden py-2",children:[c.jsx("div",{className:"pointer-events-none absolute bottom-0 left-0 top-0 z-10 w-16 bg-gradient-to-r from-chess-ink to-transparent sm:w-24"}),c.jsx("div",{className:"pointer-events-none absolute bottom-0 right-0 top-0 z-10 w-16 bg-gradient-to-l from-chess-ink to-transparent sm:w-24"}),c.jsx("div",{className:"flex w-max animate-br-marquee",children:x.map((T,E)=>c.jsx("div",{className:"flex shrink-0 gap-4 pr-4 sm:gap-6 sm:pr-6","aria-hidden":E===1,children:T.map(C=>c.jsx("div",{className:"w-32 shrink-0 overflow-hidden rounded-2xl sm:w-40 md:w-44",children:c.jsx("img",{src:C.src,alt:E===0?C.alt:"",className:"aspect-[9/16] w-full object-cover object-top",loading:"lazy"})},`${E}-${C.alt}`))},E))})]})]}),c.jsx("section",{id:"about",className:"relative scroll-mt-20 py-12 sm:py-16 md:py-24",children:c.jsxs("div",{className:"mx-auto max-w-5xl px-4 sm:px-6",children:[c.jsxs("div",{className:"mb-8 border-l-2 border-chess-gold pl-4 sm:mb-16 sm:pl-6",children:[c.jsx("span",{className:"text-[10px] font-medium uppercase tracking-[0.3em] text-chess-gold",children:"The game"}),c.jsxs("h2",{className:"mt-2 text-3xl font-bold tracking-tight text-white sm:text-5xl",children:["What is ",c.jsx("span",{className:"text-chess-gold",children:"LGN Chess?"})]})]}),c.jsx("div",{className:"space-y-4",children:zz.map((T,E)=>c.jsxs(qe.div,{initial:{opacity:0,y:12},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-40px"},transition:{delay:E*.06,duration:.4},className:"flex gap-4 rounded-2xl border border-white/5 bg-white/[0.03] p-5 sm:gap-6 sm:p-6",children:[c.jsx("div",{className:"flex h-11 w-11 shrink-0 items-center justify-center rounded-xl border border-chess-gold/20 bg-chess-gold/10 text-chess-gold",children:c.jsx(T.icon,{className:"h-5 w-5"})}),c.jsxs("div",{className:"min-w-0",children:[c.jsx("h3",{className:"text-sm font-bold tracking-tight text-white sm:text-base",children:T.title}),c.jsx("p",{className:"mt-1.5 text-sm font-light leading-relaxed text-white/50",children:T.description})]})]},T.title))})]})}),c.jsx("section",{id:"register",className:"relative scroll-mt-20 px-4 py-12 sm:px-6 sm:py-16 md:py-24",children:c.jsxs("div",{className:"mx-auto max-w-xl",children:[c.jsxs("div",{className:"mb-8 text-center",children:[c.jsx("span",{className:"text-[10px] font-medium uppercase tracking-[0.3em] text-chess-gold",children:"Waitlist"}),c.jsxs("h2",{className:"mt-3 text-3xl font-bold uppercase tracking-tight sm:text-5xl",children:["Join the ",c.jsx("span",{className:"text-chess-gold",children:"waitlist"})]}),c.jsx("p",{className:"mx-auto mt-4 max-w-md text-sm font-light leading-relaxed text-white/50",children:"Leave your name, phone, and email. We'll add you to the waitlist and let you know
3443when LGN Chess opens."})]}),c.jsx("div",{className:"rounded-2xl border border-white/10 bg-white/[0.03] p-4 sm:p-8",children:m?c.jsxs("div",{className:"text-center",children:[c.jsx("p",{className:"text-[10px] font-medium uppercase tracking-[0.25em] text-chess-sage",children:"You're on the list"}),c.jsx("h3",{className:"mt-3 text-2xl font-bold uppercase tracking-tight",children:"You're added to the waitlist"}),c.jsx("p",{className:"mt-3 text-sm font-light leading-relaxed text-white/50",children:"Thanks for signing up. We'll reach out at the email you shared when LGN Chess is ready."})]}):c.jsxs("form",{onSubmit:v,noValidate:!0,className:"space-y-5",children:[c.jsxs("div",{children:[c.jsx("label",{htmlFor:"chess-name",className:"text-[10px] font-medium uppercase tracking-[0.2em] text-white/50",children:"Name"}),c.jsx("input",{id:"chess-name",name:"name",autoComplete:"name",value:t.name,onChange:T=>e(E=>({...E,name:T.target.value})),className:iy,placeholder:"Your name"}),n.name&&c.jsx("p",{className:"mt-1.5 text-xs text-chess-gold",children:n.name})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"chess-phone",className:"text-[10px] font-medium uppercase tracking-[0.2em] text-white/50",children:"Phone"}),c.jsx("input",{id:"chess-phone",name:"phone",type:"tel",autoComplete:"tel",inputMode:"tel",value:t.phone,onChange:T=>e(E=>({...E,phone:T.target.value})),className:iy,placeholder:"10-digit mobile number"}),n.phone&&c.jsx("p",{className:"mt-1.5 text-xs text-chess-gold",children:n.phone})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"chess-email",className:"text-[10px] font-medium uppercase tracking-[0.2em] text-white/50",children:"Email"}),c.jsx("input",{id:"chess-email",name:"email",type:"email",autoComplete:"email",value:t.email,onChange:T=>e(E=>({...E,email:T.target.value})),className:iy,placeholder:"[email protected]"}),n.email&&c.jsx("p",{className:"mt-1.5 text-xs text-chess-gold",children:n.email})]}),c.jsxs("label",{className:"flex items-start gap-3 text-sm font-light leading-relaxed text-white/60",children:[c.jsx("input",{type:"checkbox",checked:t.confidentialityConsent,onChange:T=>e(E=>({...E,confidentialityConsent:T.target.checked})),className:"mt-1 h-4 w-4 shrink-0 accent-chess-gold"}),c.jsxs("span",{children:[c.jsx(dy,{className:"mr-1 inline h-4 w-4 text-chess-gold"}),NE," ",c.jsx(Se,{to:"/privacy-policy-lgn-chess",className:"text-chess-gold underline underline-offset-2",children:"Privacy Policy"})," ","and"," ",c.jsx(Se,{to:"/terms-and-conditions-lgn-chess",className:"text-chess-gold underline underline-offset-2",children:"Terms"}),"."]})]}),n.confidentialityConsent&&c.jsx("p",{className:"text-xs text-chess-gold",children:n.confidentialityConsent}),u&&c.jsx("p",{className:"text-sm text-chess-gold",children:u}),c.jsx("button",{type:"submit",disabled:a,className:"inline-flex w-full items-center justify-center rounded-sm bg-chess-gold px-5 py-4 text-[10px] font-bold uppercase tracking-[0.2em] text-chess-ink transition-colors hover:bg-[#e3c15a] disabled:cursor-not-allowed disabled:opacity-60",children:a?"Savingâ¦":"Join the waitlist"})]})})]})})]}),c.jsxs("footer",{className:"relative z-10 border-t border-white/5 px-4 pb-8 pt-10 sm:px-6 sm:pt-12",children:[c.jsxs("div",{className:"mx-auto flex max-w-6xl flex-col items-center justify-between gap-6 md:flex-row",children:[c.jsxs("div",{className:"mb-6 text-center md:mb-0 md:text-left",children:[c.jsxs("h2",{className:"text-xl font-bold uppercase tracking-tight",children:["LGN ",c.jsx("span",{className:"text-chess-gold",children:"Chess"})]}),c.jsx("p",{className:"mt-2 max-w-xs text-[11px] font-light uppercase tracking-widest text-white/40",children:"Strategy. Focus. Victory."})]}),c.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-x-6 gap-y-3 text-[10px] font-medium uppercase tracking-widest text-white/40",children:[c.jsx(Se,{to:"/games",className:"transition-colors hover:text-chess-gold",children:"Games"}),c.jsx(Se,{to:"/privacy-policy-lgn-chess",className:"transition-colors hover:text-chess-gold",children:"Privacy"}),c.jsx(Se,{to:"/terms-and-conditions-lgn-chess",className:"transition-colors hover:text-chess-gold",children:"Terms"})]})]}),c.jsxs("div",{className:"container mx-auto mt-12 border-t border-white/5 px-6 pt-8 text-center text-[10px] font-medium uppercase tracking-[0.2em] text-white/20",children:["© ",new Date().getFullYear()," Let's Game Now. All rights reserved."]})]})]})},qz="https://play.google.com/store/apps/details?id=com.letsgamenow.tabletennis",Hz=[{id:"bharat-run",name:"Bharat Run",genre:"Endless Runner / Cultural Edutainment",platform:["Android"],image:"/images/bharat-run/hero_bg_1781511354605.jpg",badge:"Now on Google Play",tagline:"Run Through India & Learn About India",description:"An endless runner set across India. Sprint through every state, discover 300+ heritage monuments, and learn India's rich culture while you play.",highlights:["300+ Heritage Monuments to discover","Sprint across all Indian states and landmarks","Cultural trivia, facts & power-ups","Available now on Google Play Store"],primaryRoute:"/games/bharat-run",playStoreUrl:Xx,privacyRoute:"/games/bharat-run/privacy",status:"Live"},{id:"lgn-chess",name:"LGN Chess",genre:"Strategy / Board Game",platform:["Android"],image:"/images/lgn-chess/world.png",badge:"Early Access",tagline:"Enter the World of Chess",description:"Strategic mobile chess developed and published by Let's Game Now, featuring local matches, play against AI, and a waitlist for early access.",highlights:["Host a room or join a friend","Play against AI, or jump into quick play","Track
3443win rate and match history","Join the early access waitlist"],primaryRoute:"/games/lgn-chess",privacyRoute:"/privacy-policy-lgn-chess",status:"Live"},{id:"lgn-table-tennis",name:"Let's Game Now Table Tennis",genre:"Sports Simulation",platform:["Android","iOS"],image:"/images/TableTennis.png",badge:"Now on Google Play",tagline:"Next-Gen Mobile Sports",description:"Fast-paced mobile table tennis game developed and published by Let's Game Now, featuring high-speed paddle rallies and competitive tournament play.",highlights:["High-speed paddle physics and responsive swipes","Tournament play and quick-match modes","Head-to-head competitive multiplayer","Available now on Google Play Store"],playStoreUrl:qz,privacyRoute:"/privacy-policy-utt",status:"Live"}],$z=()=>c.jsxs("div",{className:"min-h-screen bg-black text-white selection:bg-ln-red selection:text-white font-display",children:[c.jsx(Ln,{title:"LGN Games - Official Games",description:"Discover official games developed by Let's Game Now (LGN), including Bharat Run, LGN Chess, and Table Tennis. Experience original mobile games created for players across India.",path:"/games",image:"/images/bharat-run/hero_bg_1781511354605.jpg",keywords:"LGN games, Bharat Run, LGN chess, Let's Game Now Table Tennis, Indian games, mobile gaming India, Let's Game Now",breadcrumbs:[{name:"Home",path:"/"},{name:"Games",path:"/games"}],pageType:"CollectionPage"}),c.jsx(Ni,{}),c.jsxs("main",{className:"pt-20 md:pt-24",children:[c.jsx("section",{className:"relative pt-12 pb-12 md:pt-20 md:pb-16 bg-ln-dark border-b border-white/10",children:c.jsx("div",{className:"container mx-auto px-4 sm:px-6 md:px-8 relative z-10",children:c.jsxs("div",{className:"max-w-3xl",children:[c.jsxs("div",{className:"border-l-2 border-ln-red pl-4 sm:pl-6 text-left mb-4",children:[c.jsx("h1",{className:"text-4xl sm:text-5xl md:text-6xl lg:text-7xl font-display font-bold text-white mb-1 tracking-tighter uppercase",children:"LGN"}),c.jsx("h1",{className:"text-4xl sm:text-5xl md:text-6xl lg:text-7xl font-display font-bold text-ln-red tracking-tighter uppercase",children:"GAMES"})]}),c.jsx("p",{className:"text-gray-300 font-display text-base sm:text-lg md:text-xl font-normal leading-relaxed",children:"Official video game productions developed and published by Let's Game Now. Discover our original titles engineered for mobile and casual gamers across India."})]})})}),c.jsx("section",{className:"py-12 md:py-20 bg-black relative",children:c.jsxs("div",{className:"container mx-auto px-4 sm:px-6 md:px-8 relative z-10",children:[c.jsxs("div",{className:"mb-10 sm:mb-12",children:[c.jsx("h2",{className:"text-2xl sm:text-3xl md:text-4xl font-display font-bold text-white tracking-tight uppercase",children:"Official LGN Titles"}),c.jsx("p",{className:"text-gray-400 text-sm sm:text-base mt-1",children:"Explore the proprietary games line-up from Let's Game Now."})]}),c.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-8",children:Hz.map((t,e)=>c.jsxs(qe.article,{initial:{opacity:0,y:20},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:e*.08},className:"group relative bg-ln-card border border-white/10 hover:border-ln-cyan/50 transition-all duration-300 rounded-xl overflow-hidden flex flex-col",children:[c.jsxs("div",{className:"relative w-full aspect-video overflow-hidden bg-black",children:[c.jsx(Mn,{src:t.image,alt:t.name,className:"w-full h-full object-cover group-hover:scale-105 transition-transform duration-500"}),c.jsxs("div",{className:"absolute top-3 left-3 right-3 flex items-center justify-between gap-2 z-10",children:[c.jsx("span",{className:`px-2.5 py-1 rounded text-[10px] font-display font-bold uppercase tracking-wider ${t.status==="Live"?"bg-br-orange text-white":"bg-ln-dark text-ln-cyan border border-ln-cyan/40"}`,children:t.badge}),c.jsxs("div",{className:"flex items-center gap-1.5 bg-black px-2.5 py-1 rounded border border-white/15 text-white text-[10px]",children:[c.jsx(Zk,{className:"w-3 h-3 text-gray-400"}),c.jsx("span",{children:t.platform.join(" & ")})]})]})]}),c.jsxs("div",{className:"p-6 flex-1 flex flex-col",children:[c.jsx("span",{className:"text-[11px] text-ln-cyan font-bold uppercase tracking-widest mb-1.5",children:t.genre}),c.jsx("h3",{className:"text-2xl font-display font-bold text-white mb-1 group-hover:text-ln-cyan transition-colors",children:t.name}),c.jsx("p",{className:"text-xs text-gray-400 font-medium mb-3",children:t.tagline}),c.jsx("p",{className:"text-gray-300 text-xs sm:text-sm leading-relaxed mb-5",children:t.description}),c.jsx("div",{className:"mb-6 pt-4 border-t border-white/5 space-y-2 flex-1",children:t.highlights.map(n=>c.jsxs("div",{className:"flex items-start gap-2 text-xs text-gray-400",children:[c.jsx("span",{className:"w-1.5 h-1.5 rounded-full bg-ln-cyan mt-1.5 flex-shrink-0"}),c.jsx("span",{children:n})]},n))}),c.jsxs("div",{className:"mt-auto pt-4 border-t border-white/10 flex flex-wrap items-center justify-between gap-3",children:[t.primaryRoute?c.jsxs(Se,{to:t.primaryRoute,className:"inline-flex items-center gap-2 text-xs font-bold uppercase tracking-wider text-ln-cyan hover:text-white transition-colors group/link",children:[c.jsx("span",{children:"Explore Game"}),c.jsx($a,{className:"w-3.5 h-3.5 group-hover/link:translate-x-1 transition-transform"})]}):t.privacyRoute&&t.playStoreUrl?c.jsxs(Se,{to:t.privacyRoute,className:"inline-flex items-center gap-1.5 text-[11px] text-gray-400 hover:text-ln-cyan transition-colors",children:[c.jsx(dy,{className:"w-3.5 h-3.5"}),c.jsx("span",{children:"Policy & Rules"})]}):c.jsx("span",{className:"text-xs text-gray-500 uppercase tracking-wider font-medium",children:t.status}),t.playStoreUrl?c.jsxs("a",{href:t.playStoreUrl,target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-3.5 py-2 bg-br-orange text-white rounded hover:bg-br-orange/90 transition-all text-[11px] font-bold uppercase tracking-wider shadow-sm",children:[c.jsx("svg",{viewBox:"0 0 24 24",className:"w-3.5 h-3.5 fill-current shrink-0","aria-hidden":"true",children:c.jsx("path",{d:"M3.609 1.814L13.792 12 3.61 22.186a1.003 1.003 0 0 1-.601-.92V2.734a1 1 0 0 1 .601-.92zm
344310.89 10.893l2.302 2.302-10.937 6.348 8.635-8.65zm3.199-3.198l2.807 1.626a1 1 0 0 1 0 1.73l-2.808 1.626L15.206 12l2.492-2.491zM5.864 2.658L16.802 8.99l-2.303 2.303-8.635-8.635z"})}),c.jsx("span",{children:"Google Play"}),c.jsx(sf,{className:"w-3 h-3"})]}):t.privacyRoute?c.jsxs(Se,{to:t.privacyRoute,className:"inline-flex items-center gap-1 text-[11px] text-gray-400 hover:text-gray-200 transition-colors",children:[c.jsx(dy,{className:"w-3.5 h-3.5"}),c.jsx("span",{children:"Policy & Rules"})]}):null]})]}),c.jsx("div",{className:"absolute bottom-0 left-0 w-0 h-[2px] bg-ln-cyan group-hover:w-full transition-all duration-500 ease-out"})]},t.id))})]})}),c.jsx("section",{className:"py-14 md:py-20 bg-ln-dark relative overflow-hidden border-t border-white/10",children:c.jsx("div",{className:"container mx-auto px-4 sm:px-6 md:px-8 relative z-10",children:c.jsxs("div",{className:"max-w-3xl mx-auto text-center",children:[c.jsxs("div",{className:"inline-flex items-center gap-2 px-3 py-1 bg-ln-cyan/10 border border-ln-cyan/30 rounded text-ln-cyan text-xs uppercase tracking-widest mb-4",children:[c.jsx(Ka,{className:"w-3.5 h-3.5"}),c.jsx("span",{children:"Esports & Tournaments"})]}),c.jsx("h2",{className:"text-2xl sm:text-3xl md:text-4xl font-display font-bold text-white tracking-tight uppercase mb-4",children:"Looking for Competitive Esports?"}),c.jsx("p",{className:"text-gray-400 text-sm sm:text-base leading-relaxed mb-8",children:"In addition to our original video games, Let's Game Now hosts major competitive esports tournaments for titles like BGMI, Valorant, FIFA, and Free Fire across India and internationally."}),c.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-4",children:[c.jsxs(Se,{to:"/upcoming-tournaments",className:"inline-flex items-center gap-2 px-6 py-3.5 bg-ln-red text-white font-display font-bold uppercase text-xs tracking-[0.2em] rounded hover:bg-ln-red/90 transition-all shadow-lg shadow-ln-red/20",children:[c.jsx(Ka,{className:"w-4 h-4"}),"Upcoming Tournaments"]}),c.jsx(Se,{to:"/completed-tournaments",className:"inline-flex items-center gap-2 px-6 py-3.5 bg-ln-card border border-white/20 text-white font-display font-bold uppercase text-xs tracking-[0.2em] rounded hover:bg-white/10 transition-all",children:"Tournament Results"}),c.jsxs("a",{href:"https://isgl.in",target:"_blank",rel:"noopener noreferrer",className:"inline-flex items-center gap-2 px-6 py-3.5 bg-ln-card border border-ln-cyan/40 text-ln-cyan font-display font-bold uppercase text-xs tracking-[0.2em] rounded hover:bg-ln-cyan/10 transition-all",children:[c.jsx("span",{children:"Visit ISGL"}),c.jsx(sf,{className:"w-4 h-4"})]})]})]})})})]}),c.jsx(ji,{})]}),bi="letsgamenow.com";function Iu(t){return t.trim().toLowerCase().endsWith(`@${bi}`)}function Kz(t){return t.trim().toLowerCase()}const om="lwnUsers",lm="lwnTasks",Ja="lwnDailyLogs",qv="lwnRoleTemplates";function Xi(t){return t&&typeof t=="object"&&"toDate"in t&&typeof t.toDate=="function"?t.toDate():t instanceof Date?t:new Date(String(t))}function Hv(t,e){return{uid:t,email:String(e.email??""),displayName:String(e.displayName??""),role:e.role,level:Number(e.level),department:String(e.department??"General"),jobTitle:String(e.jobTitle??""),active:!!(e.active??!0),createdAt:Xi(e.createdAt),updatedAt:Xi(e.updatedAt)}}function Yz(t,e){return{id:t,title:String(e.title??""),description:String(e.description??""),department:String(e.department??""),assigneeId:e.assigneeId?String(e.assigneeId):void 0,assigneeName:e.assigneeName?String(e.assigneeName):void 0,assigneeLevel:e.assigneeLevel!==void 0?Number(e.assigneeLevel):void 0,createdBy:String(e.createdBy??""),createdByName:String(e.createdByName??""),createdByLevel:Number(e.createdByLevel),visibleFromLevel:Number(e.visibleFromLevel),reviewerLevel:Number(e.reviewerLevel),status:e.status,priority:e.priority,links:Array.isArray(e.links)?e.links.map(String):[],feedback:e.feedback?String(e.feedback):void 0,approvedBy:e.approvedBy?String(e.approvedBy):void 0,approvedByName:e.approvedByName?String(e.approvedByName):void 0,approvedAt:e.approvedAt?Xi(e.approvedAt):void 0,dueDate:e.dueDate?String(e.dueDate):void 0,createdAt:Xi(e.createdAt),updatedAt:Xi(e.updatedAt)}}function cm(t,e){const n=Array.isArray(e.items)?e.items.map(s=>({id:String(s.id??""),description:String(s.description??""),links:Array.isArray(s.links)?s.links.map(String):[],status:s.status,feedback:s.feedback?String(s.feedback):void 0,reviewedBy:s.reviewedBy?String(s.reviewedBy):void 0,reviewedByName:s.reviewedByName?String(s.reviewedByName):void 0,reviewedAt:s.reviewedAt?Xi(s.reviewedAt):void 0})):[];return{id:t,userId:String(e.userId??""),userName:String(e.userName??""),userLevel:Number(e.userLevel),department:String(e.department??""),date:String(e.date??""),items:n,submittedAt:Xi(e.submittedAt),updatedAt:Xi(e.updatedAt)}}async function Wz(t,e){if(!Iu(t))throw new Error("ONLY_LGN_EMAIL");return wB(Tl,Kz(t),e)}async function Qz(){return vj(Tl)}async function Xz(t){const e=await $2(Gs(Vt,om,t));if(!e.exists())return null;const n=Hv(e.id,e.data());return n.active?n:null}async function Ij(t=!1){return(await io(Ri(Vt,om))).docs.map(n=>Hv(n.id,n.data())).filter(n=>t||n.active).sort((n,s)=>n.department.localeCompare(s.department)||s.level-n.level||n.displayName.localeCompare(s.displayName))}async function Jz(t){return(await io(Ku(Ri(Vt,om),Qa("department","==",t),Qa("active","==",!0)))).docs.map(n=>Hv(n.id,n.data()))}async function Zz(t,e){await tm(Gs(Vt,om,t),{...e,updatedAt:new Date})}async function Dj(){return(await io(Ku(Ri(Vt,lm),y9("updatedAt","desc")))).docs.map(e=>Yz(e.id,e.data()))}async function e8(t){const e=new Date;return(await nm(Ri(Vt,lm),{...t,createdAt:e,updatedAt:e})).id}async function t8(t,e){const{id:n,createdAt:s,...a}=e;await tm(Gs(Vt,lm,t),{...a,updatedAt:new Date})}async function n8(t){await Y2(Gs(Vt,lm,t))}async function kj(t,e){const n=await io(Ku(Ri(Vt,Ja),Qa("userId","==",t),Qa("date","==",e)));if(n.empty)return null;const s=n.docs[0];return cm(s.id,s.data())}async function i8(t,e){return(await io(Ku(Ri(Vt,Ja),Qa("department","==",t),Qa("date","==",e)))).docs.map(s=>cm(s.id,s.data()))}async function s8(t){return(await io(Ku(Ri(Vt,Ja),Qa("date","==",t)))).docs.map(n=>cm(n.id,n.data()))}async function r8(t){const e=new Date;return t.id?(await tm(Gs(Vt,Ja,t.id),{items:t.items,updatedAt:e}),t.id):(await nm(Ri(Vt,Ja),{userId:t.userId,userName:t.userName,userLevel:t.userLevel,department:t.department,date:t.date,items:t.items,submittedAt:e,updatedAt:e})).id}async function a8(t,e,n,s,a){const l=await $2(Gs(Vt,Ja,t));if(!l.exists())throw new Error("Log not found");const d=cm(l.id,l.data()).items.map(m=>m.id===e?{...m,status:n,feedback:a??m.feedback,reviewedBy:s.uid,reviewedByName:s.displayName,reviewedAt:new Date}:m);await tm(Gs(Vt,Ja,t),{items:d,updatedAt:new Date})}function Mj(){return new Date().toISOString().slice(0,10)}function o8(){return`item_${Date.now()}_${Math.random().toString(36).slice(2,7)}`}function l8(t,e){return{id:t,department:String(e.department??""),level:Number(e.level),title:String(e.title??""),defaultAccessRole:e.defaultAccessRole,description:e.description?String(e.description):void 0,createdAt:Xi(e.createdAt),updatedAt:Xi(e.updatedAt)}}async function c8(){return(await io(Ri(Vt,qv))).docs.map(e=>l8(e.id,e.data())).sort((e,n)=>e.department.localeCompare(n.department)||n.level-e.level)}async function u8(t){const e=new Date;return(await nm(Ri(Vt,qv),{...t,createdAt:e,updatedAt:e})).id}async function h8(t){await Y2(Gs(Vt,qv,t))}async function Lj(t){const e=await t.text();try{return JSON.parse(e)}catch{throw e.includes("FUNCTION_INVOCATION_FAILED")||e.startsWith("A server error")?new Error("Admin API crashed on the server. Check Vercel logs and ensure FIREBASE_SERVICE_ACCOUNT_JSON is set correctly."):new Error(e.trim().slice(0,200)||`Request failed (${t.status})`)}}async function d8(t,e){const n=await fetch("/api/lwn-admin",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"createUser",idToken:t,...e})}),s=await Lj(n);if(!n.ok)throw new Error(s.error??"Failed to create user");if(!s.uid)throw new Error("Failed to create user");return{uid:s.uid}}async function f8(t,e){const n=await fetch("/api/lwn-admin",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({action:"deactivateUser",idToken:t,uid:e})}),s=await Lj(n);if(!n.ok)throw new Error(s.error??"Failed to deactivate user")}
3443const Oj=j.createContext(null);function m8({children:t}){const[e,n]=j.useState(null),[s,a]=j.useState(null),[l,u]=j.useState(!0),d=j.useCallback(async v=>{if(!v){a(null);return}if(!Iu(v.email??"")){await vj(Tl),a(null);return}const T=await Xz(v.uid);a(T)},[]);j.useEffect(()=>EB(Tl,async T=>{n(T),await d(T),u(!1)}),[d]);const m=async(v,T)=>{if(!Iu(v))throw new Error("ONLY_LGN_EMAIL");await Wz(v,T)},g=async()=>{await Qz(),a(null)},x=async()=>{e&&await d(e)};return c.jsx(Oj.Provider,{value:{firebaseUser:e,lwnUser:s,loading:l,signIn:m,signOut:g,refreshUser:x},children:t})}function $s(){const t=j.useContext(Oj);if(!t)throw new Error("useLwnAuth must be used within LwnAuthProvider");return t}function Ks(t){return t.role==="founder"||t.role==="admin"}function Pj(t){return Ks(t)}function Vj(t){return Ks(t)||t.role==="manager"}function p8(t,e){return Ks(t)?!0:t.role==="manager"?t.level>e:t.level===e+1}function $v(t,e){return Ks(t)?!0:e.department!==t.department&&t.department!=="all"?!1:e.assigneeId===t.uid||e.createdBy===t.uid?!0:t.level>=e.visibleFromLevel?e.createdByLevel>t.level?!1:t.level===e.reviewerLevel?!0:t.level>e.visibleFromLevel&&e.createdByLevel>=t.level?!1:t.level>=e.visibleFromLevel&&t.level<=e.createdByLevel+1:!1}const g8={founder:["todo","in_progress","review","approved","done"],admin:["todo","in_progress","review","approved","done"],manager:["todo","in_progress","review","approved","done"],developer:["in_progress","review"],intern:["in_progress","review"]};function RE(t){return g8[t.role]}function y8(t,e){return $v(t,e)?!!(Ks(t)||t.role==="manager"||e.assigneeId===t.uid):!1}function x8(t,e){return Ks(t)?!0:t.level===e.reviewerLevel&&t.level>e.visibleFromLevel}function CE(t){return Ks(t)||t.role==="manager"}function v8(t){switch(t){case"founder":return"bg-amber-500/20 text-amber-300 border-amber-500/30";case"admin":return"bg-orange-500/20 text-orange-300 border-orange-500/30";case"manager":return"bg-purple-500/20 text-purple-300 border-purple-500/30";case"developer":return"bg-cyan-500/20 text-cyan-300 border-cyan-500/30";case"intern":return"bg-emerald-500/20 text-emerald-300 border-emerald-500/30"}}const Wr=["Design","Social Media","Development","Operations","Marketing","General"],jf={todo:"To Do",in_progress:"In Progress",review:"In Review",approved:"Approved",done:"Done"},b8=["todo","in_progress","review","approved","done"],Du={founder:"Founder",admin:"Admin",manager:"Manager",developer:"Developer",intern:"Intern"},Kv={0:"Level 0",1:"Level 1",2:"Level 2",3:"Level 3"},w8={0:"L0",1:"L1",2:"L2",3:"L3"},_8="/images/LGN_LOGO (1).png",T8={xs:"h-5",sm:"h-6",md:"h-8",lg:"h-10",xl:"h-14"},El=({size:t="md",className:e="",alt:n="Let's Game Now"})=>c.jsx(Mn,{src:_8,alt:n,className:`w-auto object-contain ${T8[t]} ${e}`.trim()}),IE=({logoSize:t="sm",subtitle:e="Internal · LGN",titleClassName:n="text-sm",className:s=""})=>c.jsxs("div",{className:`flex items-center gap-2.5 min-w-0 ${s}`.trim(),children:[c.jsx(El,{size:t,className:"shrink-0"}),c.jsxs("div",{className:"min-w-0",children:[c.jsx("p",{className:`font-display font-bold tracking-wide uppercase truncate ${n}`,children:"Let's Work Now"}),e&&c.jsx("p",{className:"text-[10px] text-white/40 uppercase tracking-widest truncate",children:e})]})]}),E8=()=>{const{lwnUser:t,signOut:e}=$s(),n=hx(),[s,a]=j.useState(!1),l=async()=>{await e(),n("/task")};if(!t)return null;const u=[{to:"/task/app",label:"Dashboard",icon:Dk,end:!0},{to:"/task/app/board",label:"Task Board",icon:gS},{to:"/task/app/daily",label:"Daily Log",icon:dS},...Pj(t)?[{to:"/task/app/team",label:"Admin",icon:Za,end:!1}]:[]],d=()=>a(!1),m=c.jsxs(c.Fragment,{children:[c.jsx("div",{className:"p-6 border-b border-white/10",children:c.jsxs("div",{className:"flex items-start justify-between gap-2",children:[c.jsx(IE,{logoSize:"md",className:"flex-1"}),c.jsx("button",{type:"button",onClick:d,className:"md:hidden p-1 text-white/50 hover:text-white shrink-0","aria-label":"Close menu",children:c.jsx(rf,{className:"w-5 h-5"})})]})}),c.jsx("nav",{className:"flex-1 p-4 space-y-1 overflow-y-auto",children:u.map(({to:g,label:x,icon:v,end:T})=>c.jsxs(iS,{to:g,end:T,onClick:d,className:({isActive:E})=>`flex items-center gap-3 px-3 py-2.5 rounded-lg text-sm font-medium transition-colors ${E?"bg-ln-cyan/10 text-ln-cyan border border-ln-cyan/20":"text-white/60 hover:text-white hover:bg-white/5"}`,children:[c.jsx(v,{className:"w-4 h-4 shrink-0"}),x]},g))}),c.jsxs("div",{className:"p-4 border-t border-white/10 shrink-0",children:[c.jsxs("div",{className:"px-3 py-3 rounded-lg bg-white/5 mb-3",children:[c.jsx("p",{className:"font-display font-semibold text-sm truncate",children:t.displayName}),c.jsx("p",{className:"text-xs text-white/50 truncate mt-0.5",children:t.jobTitle||"No job title"}),c.jsxs("div",{className:"flex flex-wrap gap-1.5 mt-2",children:[c.jsx("span",{className:`text-[10px] px-2 py-0.5 rounded border uppercase tracking-wider ${v8(t.role)}`,children:Du[t.role]}),c.jsx("span",{className:"text-[10px] px-2 py-0.5 rounded border border-white/10 text-white/60 uppercase tracking-wider",children:Kv[t.level]})]}),c.jsx("p",{className:"text-[10px] text-white/40 mt-2 uppercase tracking-wider truncate",children:t.department})]}),c.jsxs("button",{type:"button",onClick:l,className:"flex items-center gap-2 w-full px-3 py-2 text-sm text-white/50 hover:text-red-400 transition-colors",children:[c.jsx(Uk,{className:"w-4 h-4"}),"Sign out"]})]})]});return c.jsxs("div",{className:"min-h-screen bg-[#070708] text-white flex flex-col md:flex-row",children:[c.jsxs("header",{className:"md:hidden flex items-center justify-between px-4 py-3 border-b border-white/10 bg-[#0a0a0c] shrink-0",children:[c.jsx("button",{type:"button",onClick:()=>a(!0),className:"p-2 -ml-2 text-white/70 hover:text-white","aria-label":"Open menu",children:c.jsx(bS,{className:"w-5 h-5"})}),c.jsx(IE,{logoSize:"xs",subtitle:"",titleClassName:"text-xs"}),c.jsx("span",{className:"w-9","aria-hidden":!0})]}),s&&c.jsx("button",{type:"button",className:"fixed inset-0 z-40 bg-black/60 md:hidden",onClick:d,"aria-label":"Close menu overlay"}),c.jsx("aside",{className:`fixed md:static inset-y-0 left-0 z-50 w-64 border-r border-white/10 bg-[#0a0a0c] flex flex-col shrink-0 transform transition-transform duration-200 ease-out md:translate-x-0 ${s?"translate-x-0":"-translate-x-full"}`,children:m}),c.jsxs("main",{className:"flex-1 overflow-auto min-w-0 relative",children:[c.jsx("div",{className:"hidden lg:block pointer-events-none absolute bottom-8 right-8 opacity-[0.04]","aria-hidden":!0,
3443children:c.jsx(El,{className:"h-24"})}),c.jsx(ZI,{})]})]})},Uj=({id:t,value:e,onChange:n,placeholder:s,minLength:a,autoComplete:l="current-password",className:u="field-input"})=>{const[d,m]=j.useState(!1);return c.jsxs("div",{className:"relative",children:[c.jsx("input",{id:t,type:d?"text":"password",value:e,onChange:g=>n(g.target.value),placeholder:s,minLength:a,autoComplete:l,className:`${u} pr-11`}),c.jsx("button",{type:"button",onClick:()=>m(g=>!g),className:"absolute right-3 top-1/2 -translate-y-1/2 p-0.5 text-white/40 hover:text-white transition-colors","aria-label":d?"Hide password":"Show password",tabIndex:-1,children:d?c.jsx(gk,{className:"w-4 h-4"}):c.jsx(xk,{className:"w-4 h-4"})})]})},S8=()=>{const{signIn:t}=$s(),[e,n]=j.useState(""),[s,a]=j.useState(""),[l,u]=j.useState(""),[d,m]=j.useState(!1),g=async x=>{if(x.preventDefault(),u(""),!Iu(e)){u(`Only @${bi} email addresses can sign in.`);return}m(!0);try{await t(e,s)}catch(v){v instanceof Error&&v.message==="ONLY_LGN_EMAIL"?u(`Only @${bi} email addresses can sign in.`):u("Invalid email or password.")}finally{m(!1)}};return c.jsxs("div",{className:"min-h-screen bg-[#070708] flex items-center justify-center p-6 relative overflow-hidden",children:[c.jsx("div",{className:"absolute top-[-120px] left-[-120px] w-[400px] h-[400px] bg-ln-cyan/10 rounded-full blur-[100px]"}),c.jsx("div",{className:"absolute bottom-[-80px] right-[-80px] w-[300px] h-[300px] bg-ln-red/10 rounded-full blur-[80px]"}),c.jsx("div",{className:"absolute inset-0 flex items-center justify-center pointer-events-none opacity-[0.035]",children:c.jsx(El,{className:"h-56"})}),c.jsxs("div",{className:"relative w-full max-w-md",children:[c.jsxs("div",{className:"text-center mb-8",children:[c.jsx(El,{size:"xl",className:"mx-auto mb-5"}),c.jsx("h1",{className:"font-display text-2xl font-bold tracking-tight",children:"Let's Work Now"}),c.jsxs("p",{className:"text-white/50 text-sm mt-2",children:["Internal · @",bi," only"]})]}),c.jsxs("form",{onSubmit:g,className:"glass-panel rounded-xl p-8 space-y-4",children:[c.jsxs("div",{children:[c.jsx("label",{htmlFor:"lwn-email",className:"block text-xs uppercase tracking-wider text-white/50 mb-2",children:"Email"}),c.jsx("input",{id:"lwn-email",type:"email",value:e,onChange:x=>n(x.target.value),required:!0,autoComplete:"email",placeholder:`you@${bi}`,className:"field-input"})]}),c.jsxs("div",{children:[c.jsx("label",{htmlFor:"lwn-password",className:"block text-xs uppercase tracking-wider text-white/50 mb-2",children:"Password"}),c.jsx(Uj,{id:"lwn-password",value:s,onChange:a,autoComplete:"current-password"})]}),l&&c.jsx("p",{className:"text-red-400 text-sm",children:l}),c.jsx("button",{type:"submit",disabled:d,className:"w-full py-3 bg-ln-cyan text-black font-display font-bold uppercase text-xs tracking-widest rounded-lg hover:bg-white transition-colors disabled:opacity-50 flex items-center justify-center gap-2",children:d?c.jsx(jl,{className:"w-4 h-4 animate-spin"}):"Sign In"}),c.jsx("p",{className:"text-[10px] text-white/30 text-center pt-2",children:"Ask admin for an account."})]})]})]})},A8=()=>{const{lwnUser:t}=$s(),[e,n]=j.useState([]),[s,a]=j.useState(null),[l,u]=j.useState(!0);if(j.useEffect(()=>{if(!t)return;(async()=>{u(!0);const E=(await Dj()).filter(L=>$v(t,L));n(E);const C=await kj(t.uid,Mj());a(C),u(!1)})()},[t]),!t||l)return c.jsx("div",{className:"flex items-center justify-center h-full min-h-[60vh]",children:c.jsx(jl,{className:"w-8 h-8 animate-spin text-ln-cyan"})});const d=e.filter(v=>v.assigneeId===t.uid),m=e.filter(v=>v.status==="review"),g=(s==null?void 0:s.items.filter(v=>v.status==="approved").length)??0,x=(s==null?void 0:s.items.filter(v=>v.status==="pending").length)??0;return c.jsxs("div",{className:"p-4 md:p-8 max-w-6xl",children:[c.jsxs("header",{className:"mb-8",children:[c.jsxs("h1",{className:"font-display text-2xl font-bold",children:["Welcome, ",t.displayName]}),c.jsxs("p",{className:"text-white/50 text-sm mt-1",children:[t.jobTitle," · ",t.department]})]}),c.jsxs("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-4 gap-4 mb-8",children:[c.jsx(Pd,{icon:gS,label:"My Tasks",value:d.length,color:"text-ln-cyan"}),c.jsx(Pd,{icon:fS,label:"In Review",value:m.length,color:"text-amber-400"}),c.jsx(Pd,{icon:nf,label:"Log Approved Today",value:g,color:"text-emerald-400"}),c.jsx(Pd,{icon:dS,label:"Log Pending",value:x,color:"text-white/60"})]}),c.jsxs("div",{className:"grid lg:grid-cols-2 gap-6",children:[c.jsxs("section",{className:"glass-panel roun
3443ded-xl p-6",children:[c.jsxs("div",{className:"flex items-center justify-between mb-4",children:[c.jsx("h2",{className:"font-display font-semibold",children:"Assigned to You"}),c.jsxs(Se,{to:"/task/app/board",className:"inline-flex items-center gap-1.5 text-xs text-ln-cyan hover:underline shrink-0",children:["View board",c.jsx($a,{className:"w-3.5 h-3.5"})]})]}),d.length===0?c.jsx("p",{className:"text-white/40 text-sm",children:"No tasks assigned right now."}):c.jsx("ul",{className:"space-y-3",children:d.slice(0,5).map(v=>c.jsxs("li",{className:"flex items-center justify-between py-2 border-b border-white/5 last:border-0",children:[c.jsx("span",{className:"text-sm truncate flex-1",children:v.title}),c.jsx(N8,{status:v.status})]},v.id))})]}),c.jsxs("section",{className:"glass-panel rounded-xl p-6",children:[c.jsxs("div",{className:"flex items-center justify-between mb-4",children:[c.jsx("h2",{className:"font-display font-semibold",children:"Today's Daily Log"}),c.jsxs(Se,{to:"/task/app/daily",className:"inline-flex items-center gap-1.5 text-xs text-ln-cyan hover:underline shrink-0",children:["Open log",c.jsx($a,{className:"w-3.5 h-3.5"})]})]}),!s||s.items.length===0?c.jsx("p",{className:"text-white/40 text-sm",children:"No entries yet. Log what you did today."}):c.jsx("ul",{className:"space-y-2",children:s.items.map(v=>c.jsxs("li",{className:"flex items-start gap-2 text-sm",children:[v.status==="approved"?c.jsx(nf,{className:"w-4 h-4 text-emerald-400 shrink-0 mt-0.5"}):v.status==="rejected"?c.jsx("span",{className:"text-red-400 shrink-0",children:"â"}):c.jsx("span",{className:"text-white/30 shrink-0",children:"â"}),c.jsx("span",{className:"text-white/80",children:v.description})]},v.id))})]})]}
3443),Ks(t)&&c.jsxs("p",{className:"mt-8 text-xs text-white/30",children:["Admin view: ",e.length," total visible tasks across departments."]})]})};function Pd({icon:t,label:e,value:n,color:s}){return c.jsxs("div",{className:"glass-panel rounded-xl p-5",children:[c.jsx("div",{className:`w-8 h-8 flex items-center justify-center mb-3 ${s}`,children:c.jsx(t,{className:"w-5 h-5"})}),c.jsx("p",{className:"text-2xl font-display font-bold tabular-nums",children:n}),c.jsx("p",{className:"text-xs text-white/50 uppercase tracking-wider mt-1",children:e})]})}function N8({status:t}){const e={todo:"bg-white/10 text-white/60",in_progress:"bg-blue-500/20 text-blue-300",review:"bg-amber-500/20 text-amber-300",approved:"bg-emerald-500/20 text-emerald-300",done:"bg-ln-cyan/20 text-ln-cyan"};return c.jsx("span",{className:`text-[10px] px-2 py-0.5 rounded uppercase tracking-wider ${e[t]}`,children:jf[t]})}const nn=({className:t="",wrapperClassName:e="",compact:n=!1,children:s,...a})=>{const l=["field-input","lwn-select",n?"lwn-select-compact":"",t].filter(Boolean).join(" ");return c.jsxs("div",{className:`relative w-full min-w-0 ${e}`.trim(),children:[c.jsx("select",{...a,className:l,children:s}),c.jsx(uS,{className:`pointer-events-none absolute top-1/2 -translate-y-1/2 text-white/40 ${n?"right-1.5 w-3.5 h-3.5":"right-3 w-4 h-4"}`,"aria-hidden":!0})]})},j8=()=>{const{lwnUser:t}=$s(),[e,n]=j.useState([]),[s,a]=j.useState([]),[l,u]=j.useState(!0),[d,m]=j.useState(!1),[g,x]=j.useState(null),v=async()=>{if(!t)return;u(!0);const E=await Dj();n(E.filter(L=>$v(t,L)));const C=t.role==="founder"?await Ij():await Jz(t.department);a(C),u(!1)};if(j.useEffect(()=>{v()},[t]),!t||l)return c.jsx("div",{className:"flex items-center justify-center h-full min-h-[60vh]",children:c.jsx(jl,{className:"w-8 h-8 animate-spin text-ln-cyan"})});const T=b8.map(E=>({status:E,tasks:e.filter(C=>C.status===E)}));return c.jsxs("div",{className:"p-4 md:p-8 h-full flex flex-col min-h-[calc(100vh-3.5rem)] md:min-h-screen",children:[c.jsxs("header",{className:"flex items-center justify-between mb-6 shrink-0",children:[c.jsxs("div",{children:[c.jsx("h1",{className:"font-display text-2xl font-bold",children:"Task Board"}),c.jsxs("p",{className:"text-white/50 text-sm mt-1",children:["Kanban · ",t.department]})]}),Vj(t)&&c.jsxs("button",{type:"button",onClick:()=>{x(null),m(!0)},className:"flex items-center gap-2 px-4 py-2 bg-ln-cyan text-black text-xs font-bold uppercase tracking-wider rounded-lg hover:bg-white transition-colors",children:[c.jsx(wS,{className:"w-4 h-4"}),"New Task"]})]}),c.jsx("div",{className:"flex gap-4 overflow-x-auto pb-4 flex-1 min-h-0 hide-scrollbar justify-start",children:T.map(({status:E,tasks:C})=>c.jsxs("div",{className:"w-72 shrink-0 flex flex-col",children:[c.jsxs("div",{className:"flex items-center justify-between mb-3 px-1",children:[c.jsx("h2",{className:"text-xs uppercase tracking-widest text-white/50 font-display font-semibold",children:jf[E]}),c.jsx("span",{className:"text-xs text-white/30 tabular-nums",children:C.length})]}),c.jsx("div",{className:"space-y-3 flex-1 min-h-[120px]",children:C.length===0?c.jsx("div",{className:"rounded-lg border border-dashed border-white/10 px-3 py-6 text-center",children:c.jsx("p",{className:"text-[10px] text-white/25 uppercase tracking-wider",children:"Empty"})}):C.map(L=>c.jsx(R8,{task:L,onClick:()=>{x(L),m(!0)}},L.id))})]},E))}),d&&c.jsx(C8,{task:g,user:t,team:s,onClose:()=>{m(!1),x(null)},onSaved:v})]})};function R8({task:t,onClick:e}){const n={low:"border-l-white/20",medium:"border-l-amber-400",high:"border-l-red-400"};return c.jsxs("button",{type:"button",onClick:e,className:`w-full text-left glass-panel rounded-lg p-4 border-l-2 ${n[t.priority]} hover:border-ln-cyan/50 transition-colors`,children:[c.jsx("p",{className:"font-medium text-sm mb-2 line-clamp-2",children:t.title}),t.assigneeName&&c.jsx("p",{className:"text-[10px] text-white/40 uppercase tracking-wider",children:t.assigneeName}),t.feedback&&t.status==="review"&&c.jsx("p",{className:"text-[10px] text-amber-400/80 mt-2 truncate",children:"Feedback pending review"})]})}function C8({task:t,user:e,team:n,onClose:s,onSaved:a}){const l=!t,u=!t||y8(e,t),d=t?x8(e,t):!1,[m,g]=j.useState((t==null?void 0:t.t
3443itle)??""),[x,v]=j.useState((t==null?void 0:t.description)??""),[T,E]=j.useState((t==null?void 0:t.department)??e.department),[C,L]=j.useState((t==null?void 0:t.assigneeId)??""),[R,V]=j.useState((t==null?void 0:t.visibleFromLevel)??0),[G,z]=j.useState((t==null?void 0:t.reviewerLevel)??1),[ne,re]=j.useState((t==null?void 0:t.status)??"todo"),[le,D]=j.useState((t==null?void 0:t.priority)??"medium"),[A,I]=j.useState((t==null?void 0:t.links)??[""]),[P,F]=j.useState((t==null?void 0:t.feedback)??""),[U,M]=j.useState((t==null?void 0:t.dueDate)??""),[nt,dt]=j.useState(!1),[X,ae]=j.useState(""),ue=n.filter(k=>k.department===T||e.role==="founder"),je=async()=>{if(!m.trim()){ae("Title is required.");return}dt(!0),ae("");try{const k=ue.find(oe=>oe.uid===C),J={title:m.trim(),description:x.trim(),department:T,assigneeId:C||void 0,assigneeName:k==null?void 0:k.displayName,assigneeLevel:k==null?void 0:k.level,createdBy:(t==null?void 0:t.createdBy)??e.uid,createdByName:(t==null?void 0:t.createdByName)??e.displayName,createdByLevel:(t==null?void 0:t.createdByLevel)??e.level,visibleFromLevel:R,reviewerLevel:G,status:ne,priority:le,links:A.filter(oe=>oe.trim()),feedback:P.trim()||void 0,dueDate:U||void 0};if(l)await e8(J);else if(t!=null&&t.id){const oe={...J,updatedAt:new Date};d&&ne==="approved"&&(oe.approvedBy=e.uid,oe.approvedByName=e.displayName,oe.approvedAt=new Date),await t8(t.id,oe)}a(),s()}catch{ae("Failed to save task.")}finally{dt(!1)}},Ie=async()=>{!(t!=null&&t.id)||!CE(e)||confirm("Delete this task?")&&(await n8(t.id),a(),s())};return c.jsx("div",{className:"fixed inset-0 z-50 flex items-end sm:items-center justify-center p-0 sm:p-4 bg-black/70",children:c.jsxs("div",{className:"glass-panel rounded-t-xl sm:rounded-xl w-full sm:max-w-lg max-h-[92vh] sm:max-h-[90vh] flex flex-col",children:[c.jsxs("div",{className:"flex items-center justify-between p-6 border-b border-white/10 shrink-0",children:[c.jsx("h2",{className:"font-display font-bold",children:l?"New Task":"Task Details"}),c.jsx("button",{type:"button",onClick:s,className:"text-white/50 hover:text-white p-1","aria-label":"Close",children:c.jsx(rf,{className:"w-5 h-5"})})]}),c.jsxs("div",{className:"p-6 space-y-4 overflow-y-auto flex-1 min-h-0 lwn-scroll",children:[c.jsx(xi,{label:"Title",children:c.jsx("input",{value:m,onChange:k=>g(k.target.value),disabled:!u&&!l,className:"field-input"})}),c.jsx(xi,{label:"Description",children:c.jsx("textarea",{value:x,onChange:k=>v(k.target.value),disabled:!u&&!l,rows:3,className:"field-input resize-none"})}),(Vj(e)||l)&&c.jsxs(c.Fragment,{children:[c.jsx(xi,{label:"Department",children:c.jsx(nn,{value:T,onChange:k=>E(k.target.value),children:Wr.map(k=>c.jsx("option",{value:k,children:k},k))})}),c.jsx(xi,{label:"Assign to",children:c.jsxs(nn,{value:C,onChange:k=>L(k.target.value),children:[c.jsx("option",{value:"",children:"Unassigned"}),ue.map(k=>c.jsxs("option",{value:k.uid,children:[k.displayName," · L",k.level," · ",k.jobTitle]},k.uid))]})}),c.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[c.jsx(xi,{label:"Visible from level",children:c.jsx(nn,{value:R,onChange:k=>V(Number(k.target.value)),children:[0,1,2,3].map(k=>c.jsxs("option",{value:k,children:["Level ",k]},k))})}),c.jsx(xi,{label:"Reviewer level",children:c.jsx(nn,{value:G,onChange:k=>z(Number(k.target.value)),children:[0,1,2,3].map(k=>c.jsxs("option",{value:k,children:["Level ",k]},k))})})]})]}),c.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[c.jsx(xi,{label:"Status",children:c.jsxs(nn,{value:ne,onChange:k=>re(k.target.value),disabled:!u&&!d,children:[RE(e).map(k=>c.jsx("option",{value:k,children:jf[k]},k)),d&&!RE(e).includes("approved")&&c.jsx("option",{value:"approved",children:jf.approved})]})}),c.jsx(xi,{label:"Priority",children:c.jsxs(nn,{value:le,onChange:k=>D(k.target.value),disabled:!u&&!l,children:[c.jsx("option",{value:"low",children:"Low"}),c.jsx("option",{value:"medium",children:"Medium"}),c.jsx("option",{value:"high",children:"High"})]})})]}),c.jsx(xi,{label:"Due date",children:c.jsx("input",{type:"date",value:U,onChange:k=>M(k.target.value),disabled:!u&&!l,className:"field-input"})}),c.jsxs(xi,{label:"Links (Figma, Drive, postsâ¦)",children:[A.map((k,J)=>c.jsxs("div",{className:"flex gap-2 mb-2",children:[c.jsx(yS,{className:"w-4 h-4 text-white/30 shrink-0 mt-3"}),c.jsx("input",{value:k,onChange:oe=>{const fe=[...A];fe[J]=oe.target.value,I(fe)},disabled:!u&&!l,placeholder:"https://",className:"field-input flex-1"})]},J)),(u||l)&&c.jsx("button",{type:"button",onClick:()=>I([...A,""]),className:"text-xs text-ln-cyan hover:underline",children:"+ Add link"})]}),(d||(t==null?void 0:t.feedback))&&c.jsx(xi,{label:"Senior feedback",children:c.jsx("textarea",{value:P,onChange:k=>F(k.target.value),disabled:!d,rows:2,placeholder:"Feedback for the assigneeâ¦",className:"field-input resize-none"})}),X&&c.jsx("p",{className:"text-red-400 text-sm",children:X})]}),c.jsxs("div",{className:"flex items-center justify-between p-6 border-t border-white/10 shrink-0 bg-[#0a0a0c]/80",children:[t&&CE(e)?c.jsxs("button",{type:"button",onClick:Ie,className:"text-red-400 text-sm flex items-center gap-1 hover:underline",children:[c.jsx(yx,{className:"w-4 h-4"})," Delete"]}):c.jsx("span",{}),c.jsxs("div",{className:"flex gap-3",children:[c.jsx("button",{type:"button",onClick:s,className:"px-4 py-2 text-sm text-white/60 hover:text-white",children:"Cancel"}),(u||l||d)&&c.jsx("button",{type:"button",onClick:je,disabled:nt,className:"px-4 py-2 bg-ln-cyan text-black text-xs font-bold uppercase tracking-wider rounded-lg hover:bg-white disabled:opacity-50",children:nt?"Savingâ¦":"Save"})]})]})]})})}function xi({label:t,children:e}){return c.jsxs("div",{children:[c.jsx("label",{className:"block text-[10px] uppercase tracking-widest text-white/40 mb-1.5",children:t}),e]})}const I8=()=>{const{lwnUser:t}=$s(),[e,n]=j.useState(Mj()),[s,a]=j.useState(null),[l,u]=j.useState([]),[d,m]=j.useState(!0),[g,x]=j.useState(!1),v=async()=>
3443{if(!t)return;m(!0);const V=await kj(t.uid,e);if(a(V),t.role==="founder"){const G=await s8(e);u(G.filter(z=>z.userId!==t.uid))}else if(t.level>=1){const G=await i8(t.department,e);u(G.filter(z=>z.userId!==t.uid&&z.userLevel<t.level))}else u([]);m(!1)};j.useEffect(()=>{v()},[t,e]);const T=()=>{const V={id:o8(),description:"",links:[""],status:"pending"};a(G=>({id:G==null?void 0:G.id,userId:t.uid,userName:t.displayName,userLevel:t.level,department:t.department,date:e,items:[...(G==null?void 0:G.items)??[],V],submittedAt:(G==null?void 0:G.submittedAt)??new Date,updatedAt:new Date}))},E=(V,G)=>{a(z=>z&&{...z,items:z.items.map(ne=>ne.id===V?{...ne,...G}:ne)})},C=V=>{a(G=>G&&{...G,items:G.items.filter(z=>z.id!==V)})},L=async()=>{if(!(!t||!s)){x(!0);try{const V=await r8({id:s.id,userId:t.uid,userName:t.displayName,userLevel:t.level,department:t.department,date:e,items:s.items.filter(G=>G.description.trim())});a(G=>G&&{...G,id:V}),await v()}finally{x(!1)}}},R=async(V,G,z,ne)=>{t&&(await a8(V,G,z,t,ne),await v())};return!t||d?c.jsx("div",{className:"flex items-center justify-center h-full min-h-[60vh]",children:c.jsx(jl,{className:"w-8 h-8 animate-spin text-ln-cyan"})}):c.jsxs("div",{className:"p-4 md:p-8 max-w-4xl",children:[c.jsxs("header",{className:"flex items-center justify-between mb-8 flex-wrap gap-4",children:[c.jsxs("div",{children:[c.jsx("h1",{className:"font-display text-2xl font-bold",children:"Daily Log"}),c.jsx("p",{className:"text-white/50 text-sm mt-1",children:"Log what you did today · seniors review & approve"})]}),c.jsx("input",{type:"date",value:e,onChange:V=>n(V.target.value),className:"field-input w-auto shrink-0","aria-label":"Log date"})]}),c.jsxs("section",{className:"glass-panel rounded-xl p-6 mb-8",children:[c.jsxs("div",{className:"flex items-center justify-between mb-4",children:[c.jsxs("h2",{className:"font-display font-semibold",children:["My Work · ",e]}),c.jsxs("button",{type:"button",onClick:T,className:"flex items-center gap-1 text-xs text-ln-cyan hover:underline",children:[c.jsx(wS,{className:"w-3 h-3"})," Add entry"]})]}),(!s||s.items.length===0)&&c.jsx("p",{className:"text-white/40 text-sm mb-4",children:"No entries yet. Add what you completed today with links."}),c.jsx("div",{className:"space-y-4",children:((s==null?void 0:s.items)??[]).map(V=>c.jsx("div",{className:"border border-white/10 rounded-lg p-4",children:c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx(Bj,{status:V.status}),c.jsxs("div",{className:"flex-1 space-y-2",children:[c.jsx("textarea",{value:V.description,onChange:G=>E(V.id,{description:G.target.value}),disabled:V.status!=="pending",placeholder:"What did you do? e.g. 5 social media designs for Bharat Run",rows:2,className:"field-input resize-none w-full"}),V.links.map((G,z)=>c.jsxs("div",{className:"flex gap-2",children:[c.jsx(yS,{className:"w-4 h-4 text-white/30 shrink-0 mt-2.5"}),c.jsx("input",{value:G,onChange:ne=>{const re=[...V.links];re[z]=ne.target.value,E(V.id,{links:re})},disabled:V.status!=="pending",placeholder:"Link to work (Figma, Drive, post URLâ¦)",className:"field-input flex-1"})]},z)),V.status==="pending"&&c.jsx("button",{type:"button",onClick:()=>E(V.id,{links:[...V.links,""]}),className:"text-[10px] text-ln-cyan hover:underline",children:"+ Add link"}),V.feedback&&c.jsxs("p",{className:"text-xs text-amber-300/80 flex items-start gap-1",children:[c.jsx(Hk,{className:"w-3 h-3 shrink-0 mt-0.5"}),V.feedback]}),V.reviewedByName&&c.jsxs("p",{className:"text-[10px] text-white/30",children:["Reviewed by ",V.reviewedByName]})]}),V.status==="pending"&&c.jsx("button",{type:"button",onClick:()=>C(V.id),className:"text-white/30 hover:text-red-400","aria-label":"Remove entry",children:c.jsx(yx,{className:"w-4 h-4"})})]})},V.id))}),s&&s.items.some(V=>V.description.trim())&&c.jsx("button",{type:"button",onClick:L,disabled:g,className:"mt-4 px-6 py-2.5 bg-ln-cyan text-black text-xs font-bold uppercase tracking-wider rounded-lg hover:bg-white disabled:opacity-50",children:g?"Savingâ¦":"Submit Daily Log"})]}),l.length>
34430&&c.jsxs("section",{className:"glass-panel rounded-xl p-6",children:[c.jsxs("h2",{className:"font-display font-semibold mb-4",children:["Team Logs to Review",!Ks(t)&&` · ${t.department}`]}),c.jsx("div",{className:"space-y-6",children:l.map(V=>c.jsxs("div",{className:"border border-white/10 rounded-lg p-4",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[c.jsx("span",{className:"font-medium text-sm",children:V.userName}),c.jsx("span",{className:"text-[10px] px-2 py-0.5 rounded border border-white/10 text-white/50",children:Kv[V.userLevel]}),c.jsx("span",{className:"text-[10px] text-white/30",children:V.department})]}),V.items.map(G=>c.jsx(D8,{logId:V.id,item:G,canReview:p8(t,V.userLevel),onReview:R},G.id))]},V.id))})]})]})};function Bj({status:t}){return t==="approved"?c.jsx(nf,{className:"w-5 h-5 text-emerald-400 shrink-0"}):t==="rejected"?c.jsx(hS,{className:"w-5 h-5 text-red-400 shrink-0"}):c.jsx("span",{className:"w-5 h-5 rounded-full border-2 border-white/20 shrink-0"})}function D8({logId:t,item:e,canReview:n,onReview:s}){const[a,l]=j.useState("");return c.jsx("div",{className:"py-3 border-t border-white/5 first:border-0 first:pt-0",children:c.jsxs("div",{className:"flex items-start gap-3",children:[c.jsx(Bj,{status:e.status}),c.jsxs("div",{className:"flex-1",children:[c.jsx("p",{className:"text-sm text-white/80",children:e.description}
3443),e.links.filter(Boolean).map((u,d)=>c.jsx("a",{href:u,target:"_blank",rel:"noopener noreferrer",className:"text-xs text-ln-cyan hover:underline block mt-1 truncate",children:u},d)),e.feedback&&c.jsx("p",{className:"text-xs text-amber-300/80 mt-2",children:e.feedback}),n&&e.status==="pending"&&c.jsxs("div",{className:"mt-3 space-y-2",children:[c.jsx("input",{value:a,onChange:u=>l(u.target.value),placeholder:"Optional feedbackâ¦",className:"field-input text-xs"}),c.jsxs("div",{className:"flex gap-2",children:[c.jsxs("button",{type:"button",onClick:()=>s(t,e.id,"approved",a||void 0),className:"flex items-center gap-1 px-3 py-1.5 bg-emerald-500/20 text-emerald-300 text-xs rounded-lg hover:bg-emerald-500/30",children:[c.jsx(nf,{className:"w-3 h-3"})," Approve"]}),c.jsxs("button",{type:"button",onClick:()=>s(t,e.id,"rejected",a||void 0),className:"flex items-center gap-1 px-3 py-1.5 bg-red-500/20 text-red-300 text-xs rounded-lg hover:bg-red-500/30",children:[c.jsx(hS,{className:"w-3 h-3"})," Reject"]})]})]})]})]})})}const k8=()=>{const{lwnUser:t}=$s(),[e,n]=j.useState("people"),[s,a]=j.useState([]),[l,u]=j.useState([]),[d,m]=j.useState(!0),[g,x]=j.useState("all"),v=async()=>{m(!0);const[C,L]=await Promise.all([Ij(!0),c8()]);a(C),u(L),m(!1)};if(j.useEffect(()=>{v()},[]),!t)return null;if(!Pj(t))return c.jsx(Cf,{to:"/task/app",replace:!0});const T=g==="all"?s:s.filter(C=>C.department===g),E=[{id:"people",label:"All People",icon:Za},{id:"hierarchy",label:"Role Hierarchy",icon:Ek},{id:"add",label:"Add Member",icon:lM}];return c.jsxs("div",{className:"p-4 md:p-8 max-w-7xl",children:[c.jsxs("header",{className:"mb-8",children:[c.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[c.jsx(Xk,{className:"w-5 h-5 text-ln-cyan"}),c.jsx("h1",{className:"font-display text-2xl font-bold",children:"Admin · Team & Hierarchy"})]}),c.jsxs("p",{className:"text-white/50 text-sm",children:["Only ",c.jsxs("span",{className:"text-ln-cyan",children:["@",bi]})," accounts · You see everyone across all departments"]})]}),c.jsx("div",{className:"flex flex-wrap gap-2 mb-8 border-b border-white/10 pb-1",children:E.map(({id:C,label:L,icon:R})=>c.jsxs("button",{type:"button",onClick:()=>n(C),className:`flex items-center gap-2 px-4 py-2.5 text-sm font-medium rounded-t-lg transition-colors ${e===C?"bg-ln-cyan/10 text-ln-cyan border border-ln-cyan/20 border-b-transparent -mb-px":"text-white/50 hover:text-white"}`,children:[c.jsx(R,{className:"w-4 h-4"}),L]},C))}),d?c.jsx("div",{className:"flex justify-center py-20",children:c.jsx(jl,{className:"w-8 h-8 animate-spin text-ln-cyan"})}):e==="people"?c.jsx(M8,{members:T,allMembers:s,deptFilter:g,onDeptFilter:x,onUpdate:async(C,L)=>{await Zz(C,L),await v()},onDeactivate:async C=>{var R;const L=await((R=Tl.currentUser)==null?void 0:R.getIdToken());L&&(await f8(L,C),await v())},currentUid:t.uid}):e==="hierarchy"?c.jsx(O8,{templates:l,onReload:v}):c.jsx(P8,{templates:l,members:s,onCreated:v})]})};function M8({members:t,allMembers:e,deptFilter:n,onDeptFilter:s,onUpdate:a,onDeactivate:l,currentUid:u}){const[d,m]=j.useState(null),g=[...new Set(e.map(v=>v.department))].sort(),x=async(v,T)=>{m(v),await a(v,T),m(null)};return c.jsxs("div",{children:[c.jsxs("div",{className:"flex flex-wrap gap-2 mb-6",children:[c.jsx(DE,{active:n==="all",onClick:()=>s("all"),label:`All (${e.length})`}),g.map(v=>c.jsx(DE,{active:n===v,onClick:()=>s(v),label:`${v} (${e.filter(T=>T.department===v).length})`},v))]}),c.jsx("div",{className:"overflow-x-auto -mx-2 px-2 pb-2",children:c.jsxs("div",{className:"min-w-[920px] space-y-3",children:[c.jsxs("div",{className:"grid grid-cols-[minmax(200px,1.4fr)_108px_64px_128px_minmax(120px,1fr)_88px] gap-3 px-4 text-[10px] uppercase tracking-widest text-white/30",children:[c.jsx("span",{children:"Member"}),c.jsx("span",{children:"Role"}),c.jsx("span",{children:"Level"}),c.jsx("span",{children:"Department"}),c.jsx("span",{children:"Job title"}),c.jsx("span",{className:"text-right",children:"Actions"})]}),t.length===0?c.jsx("div",{className:"glass-panel rounded-xl p-10 text-center",children:c.jsx("p",{className:"text-white/50 text-sm",children:"No members in this filter."})}):t.map(v=>c.jsx(L8,{member:v,saving:d===v.uid,isSelf:v.uid===u,onUpdate:x,onDeactivate:l},v.uid))]})})]})}function L8({member:t,saving:e,isSelf:n,onUpdate:s,onDeactivate:a}){const[l,u]=j.useState(t.jobTitle);j.useEffect(()=>{u(t.jobTitle)},[t.jobTitle]);const d=()=>{const m=l.trim();m!==t.jobTitle&&s(t.uid,{jobTitle:m})};
3443return c.jsx("div",{className:`glass-panel rounded-lg p-4 ${t.active?"":"opacity-50"}`,children:c.jsxs("div",{className:"grid grid-cols-[minmax(200px,1.4fr)_108px_64px_128px_minmax(120px,1fr)_88px] gap-3 items-center",children:[c.jsxs("div",{className:"min-w-0 pr-2",children:[c.jsxs("div",{className:"flex items-center gap-2 flex-wrap",children:[c.jsx("p",{className:"font-medium text-sm truncate",children:t.displayName}),!t.active&&c.jsx("span",{className:"text-[10px] text-red-400 uppercase shrink-0",children:"Inactive"})]}),c.jsx("p",{className:"text-xs text-white/40 truncate",children:t.email})]}),c.jsx(nn,{value:t.role,onChange:m=>s(t.uid,{role:m.target.value}),disabled:e||n,compact:!0,className:"text-xs","aria-label":`Role for ${t.displayName}`,children:["founder","admin","manager","developer","intern"].map(m=>c.jsx("option",{value:m,children:Du[m]},m))}),c.jsx(nn,{value:t.level,onChange:m=>s(t.uid,{level:Number(m.target.value)}),disabled:e,compact:!0,className:"text-xs",title:Kv[t.level],"aria-label":`Level for ${t.displayName}`,children:[0,1,2,3].map(m=>c.jsx("option",{value:m,children:w8[m]},m))}),c.jsxs(nn,{value:t.department,onChange:m=>s(t.uid,{department:m.target.value}),disabled:e,compact:!0,className:"text-xs","aria-label":`Department for ${t.displayName}`,children:[Wr.map(m=>c.jsx("option",{value:m,children:m},m)),!Wr.includes(t.department)&&c.jsx("option",{value:t.department,children:t.department})]}),c.jsx("input",{value:l,onChange:m=>u(m.target.value),onBlur:d,onKeyDown:m=>m.key==="Enter"&&m.target.blur(),disabled:e,className:"field-input text-xs min-w-0",placeholder:"Job title","aria-label":`Job title for ${t.displayName}`}),c.jsx("div",{className:"flex items-center justify-end",children:!n&&t.active?c.jsx("button",{type:"button",onClick:()=>{confirm(`Deactivate ${t.displayName}?`)&&a(t.uid)},className:"text-red-400/70 hover:text-red-400 text-xs whitespace-nowrap",children:"Deactivate"}):c.jsx("span",{className:"text-[10px] text-white/20 uppercase",children:n?"You"
3443:"-"})})]})})}function O8({templates:t,onReload:e}){const[n,s]=j.useState(Wr[0]),[a,l]=j.useState(0),[u,d]=j.useState(""),[m,g]=j.useState("intern"),[x,v]=j.useState(""),[T,E]=j.useState(!1),C=t.filter(R=>R.department===n).sort((R,V)=>V.level-R.level),L=async()=>{u.trim()&&(E(!0),await u8({department:n,level:a,title:u.trim(),defaultAccessRole:m,description:x.trim()||void 0}),d(""),v(""),await e(),E(!1))};return c.jsxs("div",{className:"grid lg:grid-cols-2 gap-8",children:[c.jsxs("div",{children:[c.jsx("h2",{className:"font-display font-semibold mb-4",children:"Department ladder"}),c.jsx(nn,{value:n,onChange:R=>s(R.target.value),wrapperClassName:"max-w-xs",children:Wr.map(R=>c.jsx("option",{value:R,children:R},R))}),c.jsx("div",{className:"space-y-0 mt-6",children:[3,2,1,0].map((R,V)=>{const G=C.filter(ne=>ne.level===R),z=R===3?"Director / Head":R===2?"Senior Lead":R===1?"Team Lead":"Junior / Entry";return c.jsxs(Hi.Fragment,{children:[V>0&&c.jsx("div",{className:"flex justify-center py-2","aria-hidden":!0,children:c.jsx(uS,{className:"w-5 h-5 text-ln-cyan/40"})}),c.jsxs("div",{className:"glass-panel rounded-lg p-4 border-l-2 border-ln-cyan/40",children:[c.jsx("div",{className:"flex items-center justify-between mb-2",children:c.jsxs("span",{className:"text-xs uppercase tracking-widest text-ln-cyan font-display",children:["Level ",R," · ",z]})}),G.length===0?c.jsx("p",{className:"text-xs text-white/30",children:"No roles defined yet"}):c.jsx("ul",{className:"space-y-2",children:G.map(ne=>c.jsxs("li",{className:"flex items-center justify-between gap-3 text-sm",children:[c.jsxs("div",{className:"min-w-0",children:[c.jsx("span",{className:"text-white/90",children:ne.title}),c.jsxs("span",{className:"inline-flex items-center gap-1 text-[10px] text-white/40 ml-2 uppercase",children:[c.jsx($a,{className:"w-3 h-3 shrink-0"}),Du[ne.defaultAccessRole]," access"]}),ne.description&&c.jsx("p",{className:"text-xs text-white/40 mt-0.5",children:ne.description})]}),c.jsx("button",{type:"button",onClick:async()=>{confirm(`Delete role "${ne.title}"?`)&&(await h8(ne.id),await e())},className:"text-white/30 hover:text-red-400 shrink-0",children:c.jsx(yx,{className:"w-4 h-4"})})]},ne.id))})]})]},R)})})]}),c.jsxs("div",{className:"glass-panel rounded-xl p-6 h-fit",children:[c.jsx("h2",{className:"font-display font-semibold mb-4",children:"Add role to hierarchy"}),c.jsx("p",{className:"text-xs text-white/50 mb-4",children:"Define job titles at each level. When you add a person, pick a role and they inherit the right level & permissions."}),c.jsxs("div",{className:"space-y-3",children:[c.jsx(Hn,{label:"Department",children:c.jsx(nn,{value:n,onChange:R=>s(R.target.value),children:Wr.map(R=>c.jsx("option",{value:R,children:R},R))})}),c.jsx(Hn,{label:"Level",children:c.jsx(nn,{value:a,onChange:R=>l(Number(R.target.value)),children:[3,2,1,0].map(R=>c.jsxs("option",{value:R,children:["Level ",R]},R))})}),c.jsx(Hn,{label:"Role title",children:c.jsx("input",{value:u,onChange:R=>d(R.target.value),placeholder:"e.g. Junior Designer, Social Media Head",className:"field-input"})}),c.jsx(Hn,{label:"System access (permissions)",children:c.jsx(nn,{value:m,onChange:R=>g(R.target.value),children:["admin","manager","developer","intern"].map(R=>c.jsx("option",{value:R,children:Du[R]},R))})}),c.jsx(Hn,{label:"Description (optional)",children:c.jsx("input",{value:x,onChange:R=>v(R.target.value),placeholder:"What this role is responsible for",className:"field-input"})}),c.jsx("button",{type:"button",onClick:L,disabled:T||!u.trim(),className:"w-full py-2.5 bg-ln-cyan text-black text-xs font-bold uppercase tracking-wider rounded-lg hover:bg-white disabled:opacity-50",children:T?"Addingâ¦":"Add Role"})]})]})]})}function P8({templates:t,members:e,onCreated:n}){const[s,a]=j.useState(""),[l,u]=j.useState(""),[d,m]=j.useState(""),[g,x]=j.useState(Wr[0]),[v,T]=j.useState(""),[E,C]=j.useState("intern"),[L,R]=j.useState(0),[V,G]=j.useState(""),[z,ne]=j.useState(!1),[re,le]=j.useState(""),[D,A]=j.useState(""),I=t.filter(U=>U.department===g),P=U=>{T(U);const M=t.find(nt=>nt.id===U);M&&(R(M.level),C(M.defaultAccessRole),G(M.title),x(M.department))},F=async()=>{var U;if(le(""),A(""),!Iu(s)){le(`Email must be @${bi}`);return}if(e.some(M=>M.email===s.trim().toLowerCase())){le("This email already has an account.");return}ne(!0);try{const M=await((U=Tl.currentUser)==null?void 0:U.getIdToken());if(!M)throw new Error("Not authenticated");await d8(M,{email:s.trim().toLowerCase(),password:l,displayName:d.trim(),role:E,level:L,department:g,jobTitle:V.trim()}),A(`${d} added! They can sign in at /task with their @${bi} email.`),a(""),u(""),m(""),G(""),await n()}catch(M){le(M instanceof Error?M.message:"Failed to create user. Ensure FIREBASE_SERVICE_ACCOUNT_JSON is set on Vercel.")}finally{ne(!1)}};return c.jsx("div",{className:"max-w-lg",children:c.jsxs("div",{className:"glass-panel roun
3443ded-xl p-6 space-y-4",children:[c.jsxs("p",{className:"text-sm text-white/60",children:["Create account + assign role in one step. They sign in only with ",c.jsxs("span",{className:"text-ln-cyan",children:["@",bi]}),"."]}),I.length>0&&c.jsx(Hn,{label:"Pick from hierarchy (optional)",children:c.jsxs(nn,{value:v,onChange:U=>P(U.target.value),children:[c.jsx("option",{value:"",children:"Custom assignment"}),I.map(U=>c.jsxs("option",{value:U.id,children:["L",U.level," · ",U.title]},U.id))]})}),c.jsx(Hn,{label:"Full name",children:c.jsx("input",{value:d,onChange:U=>m(U.target.value),className:"field-input"})}),c.jsx(Hn,{label:`Email (@${bi})`,children:c.jsx("input",{type:"email",value:s,onChange:U=>a(U.target.value),placeholder:`name@${bi}`,className:"field-input"})}),c.jsx(Hn,{label:"Temporary password (min 8 chars)",children:c.jsx(Uj,{value:l,onChange:u,placeholder:"Set a temporary password",minLength:8,autoComplete:"new-password"})}),c.jsx(Hn,{label:"Department",children:c.jsx(nn,{value:g,onChange:U=>x(U.target.value),children:Wr.map(U=>c.jsx("option",{value:U,children:U},U))})}),c.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[c.jsx(Hn,{label:"Level",children:c.jsx(nn,{value:L,onChange:U=>R(Number(U.target.value)),children:[0,1,2,3].map(U=>c.jsxs("option",{value:U,children:["Level ",U]},U))})}),c.jsx(Hn,{label:"Access role",children:c.jsx(nn,{value:E,onChange:U=>C(U.target.value),children:["admin","manager","developer","intern"].map(U=>c.jsx("option",{value:U,children:Du[U]},U))})})]}),c.jsx(Hn,{label:"Job title (shown on login)",children:c.jsx("input",{value:V,onChange:U=>G(U.target.value),placeholder:"e.g. Junior Designer",className:"field-input"})}),re&&c.jsx("p",{className:"text-red-400 text-sm",children:re}),D&&c.jsxs("p",{className:"text-emerald-400 text-sm flex items-center gap-1",children:[c.jsx(cS,{className:"w-4 h-4"})," ",D]}),c.jsx("button",{type:"button",onClick:F,disabled:z,className:"w-full py-3 bg-ln-cyan text-black font-bold uppercase text-xs tracking-widest rounded-lg hover:bg-white disabled:opacity-50",children:z?"Creatingâ¦":"Create & Assign"})]})})}function Hn({label:t,children:e}){return c.jsxs("div",{children:[c.jsx("label",{className:"block text-[10px] uppercase tracking-widest text-white/40 mb-1.5",children:t}),e]})}function DE({active:t,onClick:e,label:n}){return c.jsx("button",{type:"button",onClick:e,className:`px-3 py-1.5 rounded-full text-xs font-medium transition-colors ${t?"bg-ln-cyan/20 text-ln-cyan border border-ln-cyan/30":"bg-white/5 text-white/50 hover:text-white"}`,children:n})}function zj(){return c.jsxs("div",{className:"min-h-screen bg-[#070708] flex flex-col items-center justify-center gap-4",children:[c.jsx(El,{size:"lg"}),c.jsx(jl,{className:"w-7 h-7 animate-spin text-ln-cyan"})]})}function V8({children:t}){const{firebaseUser:e,lwnUser:n,loading:s}=$s();return s?c.jsx(zj,{}):e?n?c.jsx(c.Fragment,{children:t}):c.jsx(U8,{email:e.email??""}):c.jsx(Cf,{to:"/task",replace:!0})}function U8({email:t}){const{signOut:e}=$s();return c.jsx("div",{className:"min-h-screen bg-[#070708] flex items-center justify-center p-6",children:c.jsxs("div",{className:"max-w-md w-full text-center glass-panel rounded-xl p-8",children:[c.jsx(El,{size:"lg",className:"mx-auto mb-5"}),c.jsx("h1",{className:"font-display text-xl font-bold mb-2",children:"Access Pending"}),c.jsxs("p",{className:"text-white/60 text-sm mb-4",children:["Signed in as ",c.jsx("span",{className:"text-white",children:t}),", but no Let's Work Now profile exists yet. Ask the founder to add you in Firebase collection"," ",c.jsx("code",{className:"text-ln-cyan bg-black/40 px-1.5 py-0.5 rounded text-xs",children:"lwnUsers"}),"."]}),c.jsx("button",{type:"button",onClick:()=>e(),className:"text-sm text-ln-cyan hover:underline",children:"Sign out"})]})})}function B8(){const{firebaseUser:t,lwnUser:e,loading:n}=$s();return n?c.jsx(zj,{}):t&&e?c.jsx(Cf,{to:"/task/app",replace:!0}):c.jsx(S8,{})}function z8(){return c.jsxs(ZE,{children:[c.jsx(st,{index:!0,element:c.jsx(B8,{})}),c.jsxs(st,{path:"app",element:c.jsx(V8,{children:c.jsx(E8,{})}),children:[c.jsx(st,{index:!0,element:c.jsx(A8,{})}),c.jsx(st,{path:"board",element:c.jsx(j8,{})}),c.jsx(st,{path:"daily",element:c.jsx(I8,{})}),c.jsx(st,{path:"team",element:c.jsx(k8,{})})]}),c.jsx(st,{path:"*",element:c.jsx(Cf,{to:"/task",replace:!0})})]})}const F8=()=>c.jsx(m8,{children:c.jsx(z8,{})}),G8="veocfmz27x";function q8(){return j.useEffect(()=>{qD.init(G8)},[]),c.jsxs(UE,{children:[c.jsxs(ED,{children:[c.jsx(HD,{}),c.jsxs(ZE,{children:[c.jsx(st,{path:"/",element:c.jsx(pV,{})}),c.jsx(st,{path:"/upcoming-tournaments",element:c.jsx(sT,{})}),c.jsx(st,{path:"/upcoming",element:c.jsx(sT,{})}),c.jsx(st,{path:"/completed-tournaments",element:c.jsx(Hg,{})}),c.jsx(st,{path:"/past",element:c.jsx(Hg,{})}),c.jsx(st,{path:"/completed",element:c.jsx(Hg,{})}),c.jsx(st,{path:"/about-us",element:c.jsx(rT,{})}),c.jsx(st,{path:"/about",element:c.jsx(rT,{})}),c.jsx(st,{path:"/watch",element:c.jsx(vV,{})}),c.jsx(st,{path:"/privacy-policy",element:c.jsx(bV,{})}),c.jsx(st,{path:"/privacy-policy-utt",element:c.jsx(wV,{})}),c.jsx(st,{path:"/privacy-policy-lgn-chess",element:c.jsx(_V,{})}),c.jsx(st,{path:"/terms-and-conditions",element:c.jsx(TV,{})}),c.jsx(st,{path:"/terms-and-conditions-lgn-chess",element:c.jsx(EV,{})}),c.jsx(st,{path:"/games",element:c.jsx($z,{})}),c.jsx(st,{path:"/games/bharat-run",element:c.jsx(kV,{})}),c.jsx(st,{path:"/games/bharat-run/privacy",element:c.jsx(MV,{})}),c.jsx(st,{path:"/games/lgn-chess",element:c.jsx(Gz,{})}),c.jsx(st,{path:"/task/*",element:c.jsx(F8,{})})]})]}),c.jsx(FD,{})]})}const Fj=document.getElementById("root");
3443if(!Fj)throw new Error("Could not find root element to mount to");const H8=jC.createRoot(Fj);H8.render(c.jsx(Hi.StrictMode,{children:c.jsx(q8,{})}));
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.