vendor: 7,691 bytes, lines 1-17
1var XE=Object.defineProperty;var WE=(n,t,e)=>t in n?XE(n,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):n[t]=e;var D=(n,t,e)=>WE(n,typeof t!="symbol"?t+"":t,e);(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.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 c of l.addedNodes)c.tagName==="LINK"&&c.rel==="modulepreload"&&s(c)}).observe(document,{childList:!0,subtree:!0});function e(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=e(a);fetch(a.href,l)}})();var W2={exports:{}},Bu={};/** 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 Eg;function ZE(){if(Eg)return Bu;Eg=1;var n=Symbol.for("react.transitional.element"),t=Symbol.for("react.fragment");function e(s,a,l){var c=null;if(l!==void 0&&(c=""+l),a.key!==void 0&&(c=""+a.key),"key"in a){l={};for(var h in a)h!=="key"&&(l[h]=a[h])}else l=a;return a=l.ref,{$$typeof:n,type:s,key:c,ref:a!==void 0?a:null,props:l}}return Bu.Fragment=t,Bu.jsx=e,Bu.jsxs=e,Bu}var Tg;function JE(){return Tg||(Tg=1,W2.exports=ZE()),W2.exports}var w=JE(),Z2={exports:{}},zt={};/** 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 Ag;function tT(){if(Ag)return zt;Ag=1;var n=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),e=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),l=Symbol.for("react.consumer"),c=Symbol.for("react.context"),h=Symbol.for("react.forward_ref"),m=Symbol.for("react.suspense"),g=Symbol.for("react.memo"),y=Symbol.for("react.lazy"),_=Symbol.for("react.activity"),x=Symbol.iterator;function R(k){return k===null||typeof k!="object"?null:(k=x&&k[x]||k["@@iterator"],typeof k=="function"?k:null)}var N={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,F={};function q(k,rt,gt){this.props=k,this.context=rt,this.refs=F,this.updater=gt||N}q.prototype.isReactComponent={},q.prototype.setState=function(k,rt){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,rt,"setState")},q.prototype.forceUpdate=function(k){this.updater.enqueueForceUpdate(this,k,"forceUpdate")};function tt(){}tt.prototype=q.prototype;function Z(k,rt,gt){this.props=k,this.context=rt,this.refs=F,this.updater=gt||N}var nt=Z.prototype=new tt;nt.constructor=Z,j(nt,q.prototype),nt.isPureReactComponent=!0;var ht=Array.isArray;function Et(){}var I={H:null,A:null,T:null,S:null},C=Object.prototype.hasOwnProperty;function V(k,rt,gt){var xt=gt.ref;return{$$typeof:n,type:k,key:rt,ref:xt!==void 0?xt:null,props:gt}}function M(k,rt){return V(k.type,rt,k.props)}function P(k){return typeof k=="object"&&k!==null&&k.$$typeof===n}function U(k){var rt={"=":"=0",":":"=2"};return"$"+k.replace(/[=:]/g,function(gt){return rt[gt]})}var O=/\/+/g;function At(k,rt){return typeof k=="object"&&k!==null&&k.key!=null?U(""+k.key):rt.toString(36)}function Ut(k){switch(k.status){case"fulfilled":return k.value;case"rejected":throw k.reason;default:switch(typeof k.status=="string"?k.then(Et,Et):(k.status="pending",k.then(function(rt){k.status==="pending"&&(k.status="fulfilled",k.value=rt)},function(rt){k.status==="pending"&&(k.status="rejected",k.reason=rt)})),k.status){case"fulfilled":return k.value;case"rejected":throw k.reason}}throw k}function W(k,rt,gt,xt,yt){var Ot=typeof k;(Ot==="undefined"||Ot==="boolean")&&(k=null);var jt=!1;if(k===null)jt=!0;else switch(Ot){case"bigint":case"string":case"number":jt=!0;break;case"object":switch(k.$$typeof){case n:case t:jt=!0;break;case y:return jt=k._init,W(jt(k._payload),rt,gt,xt,yt)}}if(jt)return yt=yt(k),jt=xt===""?"."+At(k,0):xt,ht(yt)?(gt="",jt!=null&&(gt=jt.replace(O,"$&/")+"/"),W(yt,rt,gt,"",function(Ii){return Ii})):yt!=null&&(P(yt)&&(yt=M(yt,gt+(yt.key==null||k&&k.key===yt.key?"":(""+yt.key).replace(O,"$&/")+"/")+jt)),rt.push(yt)),1;jt=0;var Re=xt===""?".":xt+":";if(ht(k))for(var ve=0;ve<k.length;ve++)xt=k[ve],Ot=Re+At(xt,ve),jt+=W(xt,rt,gt,Ot,yt);else if(ve=R(k),typeof ve=="function")for(k=ve.call(k),ve=0;!(xt=k.next()).done;)xt=xt.value,Ot=Re+At(xt,ve++),jt+=W(xt,rt,gt,Ot,yt);else if(Ot==="object"){if(typeof k.then=="function")return W(Ut(k),rt,gt,xt,yt);throw rt=String(k),Error("Objects are not valid as a React child (found: "+(rt==="[object Object]"?"object with keys {"+Object.keys(k).join(", ")+"}":rt)+"). If you meant to render a collection of children, use an array instead.")}return jt}function mt(k,rt,gt){if(k==null)return k;var xt=[],yt=0;return W(k,xt,"","",function(Ot){return rt.call(gt,Ot,yt++)}),xt}function dt(k){if(k._status===-1){var rt=k._result;rt=rt(),rt.then(function(gt){(k._status===0||k._status===-1)&&(k._status=1,k._result=gt)},function(gt){(k._status===0||k._status===-1)&&(k._status=2,k._result=gt)}),k._status===-1&&(k._status=0,k._result=rt)}if(k._status===1)return k._result.default;throw k._result}var It=typeof reportError=="function"?reportError:function(k){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var rt=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(rt))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",k);return}console.error(k)},Ht={map:mt,forEach:function(k,rt,gt){mt(k,function(){rt.apply(this,arguments)},gt)},count:function(k){var rt=0;return mt(k,function(){rt++}),rt},toArray:function(k){return mt(k,function(rt){return rt})||[]},only:function(k){if(!P(k))throw Error("React.Children.only expected to receive a single React element child.");return k}};return zt.Activity=_,zt.Children=Ht,zt.Component=q,zt.Fragment=e,zt.Profiler=a,zt.PureComponent=Z,zt.StrictMode=s,zt.Suspense=m,zt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=I,zt.__COMPILER_RUNTIME={__proto__:null,c:function(k){return I.H.useMemoCache(k)}},zt.cache=function(k){return function(){return k.apply(null,arguments)}},zt.cacheSignal=function(){return null},zt.cloneElement=function(k,rt,gt){if(k==null)throw Error("The argument must be a React element, but you passed "+k+".");var xt=j({},k.props),yt=k.key;if(rt!=null)for(Ot in rt.key!==void 0&&(yt=""+rt.key),rt)!C.call(rt,Ot)||Ot==="key"||Ot==="__self"||Ot==="__source"||Ot==="ref"&&rt.ref===void 0||(xt[Ot]=rt[Ot]);var Ot=arguments.length-2;if(Ot===1)xt.children=gt;else if(1<Ot){for(var jt=Array(Ot),Re=0;Re<Ot;Re++)jt[Re]=arguments[Re+2];xt.children=jt}return V(k.type,yt,xt)},zt.createContext=function(k){return k={$$typeof:c,_currentValue:k,_currentValue2:k,_threadCount:0,Provider:null,Consumer:null},k.Provider=k,k.Consumer={$$typeof:l,_context:k},k},zt.createElement=function(k,rt,gt){var xt,yt={},Ot=null;if(rt!=null)for(xt in rt.key!==void 0&&(Ot=""+rt.key),rt)C.call(rt,xt)&&xt!=="
vendor: 10,925 bytes, lines 17-41
17key"&&xt!=="__self"&&xt!=="__source"&&(yt[xt]=rt[xt]);var jt=arguments.length-2;if(jt===1)yt.children=gt;else if(1<jt){for(var Re=Array(jt),ve=0;ve<jt;ve++)Re[ve]=arguments[ve+2];yt.children=Re}if(k&&k.defaultProps)for(xt in jt=k.defaultProps,jt)yt[xt]===void 0&&(yt[xt]=jt[xt]);return V(k,Ot,yt)},zt.createRef=function(){return{current:null}},zt.forwardRef=function(k){return{$$typeof:h,render:k}},zt.isValidElement=P,zt.lazy=function(k){return{$$typeof:y,_payload:{_status:-1,_result:k},_init:dt}},zt.memo=function(k,rt){return{$$typeof:g,type:k,compare:rt===void 0?null:rt}},zt.startTransition=function(k){var rt=I.T,gt={};I.T=gt;try{var xt=k(),yt=I.S;yt!==null&&yt(gt,xt),typeof xt=="object"&&xt!==null&&typeof xt.then=="function"&&xt.then(Et,It)}catch(Ot){It(Ot)}finally{rt!==null&>.types!==null&&(rt.types=gt.types),I.T=rt}},zt.unstable_useCacheRefresh=function(){return I.H.useCacheRefresh()},zt.use=function(k){return I.H.use(k)},zt.useActionState=function(k,rt,gt){return I.H.useActionState(k,rt,gt)},zt.useCallback=function(k,rt){return I.H.useCallback(k,rt)},zt.useContext=function(k){return I.H.useContext(k)},zt.useDebugValue=function(){},zt.useDeferredValue=function(k,rt){return I.H.useDeferredValue(k,rt)},zt.useEffect=function(k,rt){return I.H.useEffect(k,rt)},zt.useEffectEvent=function(k){return I.H.useEffectEvent(k)},zt.useId=function(){return I.H.useId()},zt.useImperativeHandle=function(k,rt,gt){return I.H.useImperativeHandle(k,rt,gt)},zt.useInsertionEffect=function(k,rt){return I.H.useInsertionEffect(k,rt)},zt.useLayoutEffect=function(k,rt){return I.H.useLayoutEffect(k,rt)},zt.useMemo=function(k,rt){return I.H.useMemo(k,rt)},zt.useOptimistic=function(k,rt){return I.H.useOptimistic(k,rt)},zt.useReducer=function(k,rt,gt){return I.H.useReducer(k,rt,gt)},zt.useRef=function(k){return I.H.useRef(k)},zt.useState=function(k){return I.H.useState(k)},zt.useSyncExternalStore=function(k,rt,gt){return I.H.useSyncExternalStore(k,rt,gt)},zt.useTransition=function(){return I.H.useTransition()},zt.version="19.2.7",zt}var xg;function D6(){return xg||(xg=1,Z2.exports=tT()),Z2.exports}var ct=D6(),J2={exports:{}},Uu={},t0={exports:{}},e0={};/** 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 Sg;function eT(){return Sg||(Sg=1,(function(n){function t(W,mt){var dt=W.length;W.push(mt);t:for(;0<dt;){var It=dt-1>>>1,Ht=W[It];if(0<a(Ht,mt))W[It]=mt,W[dt]=Ht,dt=It;else break t}}function e(W){return W.length===0?null:W[0]}function s(W){if(W.length===0)return null;var mt=W[0],dt=W.pop();if(dt!==mt){W[0]=dt;t:for(var It=0,Ht=W.length,k=Ht>>>1;It<k;){var rt=2*(It+1)-1,gt=W[rt],xt=rt+1,yt=W[xt];if(0>a(gt,dt))xt<Ht&&0>a(yt,gt)?(W[It]=yt,W[xt]=dt,It=xt):(W[It]=gt,W[rt]=dt,It=rt);else if(xt<Ht&&0>a(yt,dt))W[It]=yt,W[xt]=dt,It=xt;else break t}}return mt}function a(W,mt){var dt=W.sortIndex-mt.sortIndex;return dt!==0?dt:W.id-mt.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var l=performance;n.unstable_now=function(){return l.now()}}else{var c=Date,h=c.now();n.unstable_now=function(){return c.now()-h}}var m=[],g=[],y=1,_=null,x=3,R=!1,N=!1,j=!1,F=!1,q=typeof setTimeout=="function"?setTimeout:null,tt=typeof clearTimeout=="function"?clearTimeout:null,Z=typeof setImmediate<"u"?setImmediate:null;function nt(W){for(var mt=e(g);mt!==null;){if(mt.callback===null)s(g);else if(mt.startTime<=W)s(g),mt.sortIndex=mt.expirationTime,t(m,mt);else break;mt=e(g)}}function ht(W){if(j=!1,nt(W),!N)if(e(m)!==null)N=!0,Et||(Et=!0,U());else{var mt=e(g);mt!==null&&Ut(ht,mt.startTime-W)}}var Et=!1,I=-1,C=5,V=-1;function M(){return F?!0:!(n.unstable_now()-V<C)}function P(){if(F=!1,Et){var W=n.unstable_now();V=W;var mt=!0;try{t:{N=!1,j&&(j=!1,tt(I),I=-1),R=!0;var dt=x;try{e:{for(nt(W),_=e(m);_!==null&&!(_.expirationTime>W&&M());){var It=_.callback;if(typeof It=="function"){_.callback=null,x=_.priorityLevel;var Ht=It(_.expirationTime<=W);if(W=n.unstable_now(),typeof Ht=="function"){_.callback=Ht,nt(W),mt=!0;break e}_===e(m)&&s(m),nt(W)}else s(m);_=e(m)}if(_!==null)mt=!0;else{var k=e(g);k!==null&&Ut(ht,k.startTime-W),mt=!1}}break t}finally{_=null,x=dt,R=!1}mt=void 0}}finally{mt?U():Et=!1}}}var U;if(typeof Z=="function")U=function(){Z(P)};else if(typeof MessageChannel<"u"){var O=new MessageChannel,At=O.port2;O.port1.onmessage=P,U=function(){At.postMessage(null)}}else U=function(){q(P,0)};function Ut(W,mt){I=q(function(){W(n.unstable_now())},mt)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(W){W.callback=null},n.unstable_forceFrameRate=function(W){0>W||125<W?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):C=0<W?Math.floor(1e3/W):5},n.unstable_getCurrentPriorityLevel=function(){return x},n.unstable_next=function(W){switch(x){case 1:case 2:case 3:var mt=3;break;default:mt=x}var dt=x;x=mt;try{return W()}finally{x=dt}},n.unstable_requestPaint=function(){F=!0},n.unstable_runWithPriority=function(W,mt){switch(W){case 1:case 2:case 3:case 4:case 5:break;default:W=3}var dt=x;x=W;try{return mt()}finally{x=dt}},n.unstable_scheduleCallback=function(W,mt,dt){var It=n.unstable_now();switch(typeof dt=="object"&&dt!==null?(dt=dt.delay,dt=typeof dt=="number"&&0<dt?It+dt:It):dt=It,W){case 1:var Ht=-1;break;case 2:Ht=250;break;case 5:Ht=1073741823;break;case 4:Ht=1e4;break;default:Ht=5e3}return Ht=dt+Ht,W={id:y++,callback:mt,priorityLevel:W,startTime:dt,expirationTime:Ht,sortIndex:-1},dt>It?(W.sortIndex=dt,t(g,W),e(m)===null&&W===e(g)&&(j?(tt(I),I=-1):j=!0,Ut(ht,dt-It))):(W.sortIndex=Ht,t(m,W),N||R||(N=!0,Et||(Et=!0,U()))),W},n.unstable_shouldYield=M,n.unstable_wrapCallback=function(W){var mt=x;return function(){var dt=x;x=mt;try{return W.apply(this,arguments)}finally{x=dt}}}})(e0)),e0}var wg;function nT(){return wg||(wg=1,t0.exports=eT()),t0.exports}var n0={exports:{}},bn={};/** 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 bg;function iT(){if(bg)return bn;bg=1;var n=D6();function t(m){var g="https://react.dev/errors/"+m;if(1<arguments.length){g+="?args[]="+encodeURIComponent(arguments[1]);for(var y=2;y<arguments.length;y++)g+="&args[]="+encodeURIComponent(arguments[y])}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 e(){}var s={d:{f:e,r:function(){throw Error(t(522))},D:e,C:e,L:e,m:e,X:e,S:e,M:e},p:0,findDOMNode:null},a=Symbol.for("react.portal");function l(m,g,y){var _=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:_==null?null:""+_,children:m,containerInfo:g,implementation:y}}var c=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function h(m,g){if(m==="font")return"";if(typeof g=="string")return g==="use-credentials"?g:""}return bn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=s,bn.createPortal=function(m,g){var y=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!g||g.nodeType!==1&&g.nodeType!==9&&g.nodeType!==11)throw Error(t(299));return l(m,g,null,y)},bn.flushSync=function(m){var g=c.T,y=s.p;try{if(c.T=null,s.p=2,m)return m()}finally{c.T=g,s.p=y,s.d.f()}},bn.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))},bn.prefetchDNS=function(m){typeof m=="string"&&s.d.D(m)},bn.preinit=function(m,g){if(typeof m=="string"&&g&&typeof g.as=="string"){var y=g.as,_=h(y,g.crossOrigin),x=typeof g.integrity=="string"?g.integrity:void 0,R=typeof g.fetchPriority=="string"?g.fetchPriority:void 0;y==="style"?s.d.S(m,typeof g.precedence=="string"?g.precedence:void 0,{crossOrigin:_,integrity:x,fetchPriority:R}):y==="script"&&s.d.X(m,{crossOrigin:_,integrity:x,fetchPriority:R,nonce:typeof g.nonce=="string"?g.nonce:void 0})}},bn.preinitModule=function(m,g){if(typeof m=="string")if(typeof g=="object"&&g!==null){if(g.as==null||g.as==="script"){var y=h(g.as,g.crossOrigin);s.d.M(m,{crossOrigin:y,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)},bn.preload=function(m,g){if(typeof m=="string"&&typeof g=="object"&&g!==null&&typeof g.as=="string"){var y=g.as,_=h(y,g.crossOrigin);s.d.L(m,y,{crossOrigin:_,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})}},bn.preloadModule=function(m,g){if(typeof m=="string")if(g){var y=h(g.as,g.crossOrigin);s.d.m(m,{as:typeof g.as=="string"&&g.as!=="script"?g.as:void 0,crossOrigin:y,integrity:typeof g.integrity=="string"?g.integrity:void 0})}else s.d.m(m)},bn.requestFormReset=function(m){s.d.r(m)},bn.unstable_batchedUpdates=function(m,g){return m(g)},bn.useFormState=function(m,g,y){return c.H.useFormState(m,g,y)},bn.useFormStatus=function(){return c.H.useHostTransitionStatus()},bn.version="19.2.7",bn}var Cg;function sT(){if(Cg)return n0.exports;Cg=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(t){console.error(t)}}return n(),n0.exports=iT(),n0.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 Rg;function rT(){if(Rg)return Uu;Rg=1;var n=nT(),t=D6(),e=sT();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}
vendor: 7,013 bytes, lines 41-48
41function c(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 h(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,u=r;;){var d=o.return;if(d===null)break;var p=d.alternate;if(p===null){if(u=d.return,u!==null){o=u;continue}break}if(d.child===p.child){for(p=d.child;p;){if(p===o)return m(d),i;if(p===u)return m(d),r;p=p.sibling}throw Error(s(188))}if(o.return!==u.return)o=d,u=p;else{for(var E=!1,S=d.child;S;){if(S===o){E=!0,o=d,u=p;break}if(S===u){E=!0,u=d,o=p;break}S=S.sibling}if(!E){for(S=p.child;S;){if(S===o){E=!0,o=p,u=d;break}if(S===u){E=!0,u=p,o=d;break}S=S.sibling}if(!E)throw Error(s(189))}}if(o.alternate!==u)throw Error(s(190))}if(o.tag!==3)throw Error(s(188));return o.stateNode.current===o?i:r}function y(i){var r=i.tag;if(r===5||r===26||r===27||r===6)return i;for(i=i.child;i!==null;){if(r=y(i),r!==null)return r;i=i.sibling}return null}var _=Object.assign,x=Symbol.for("react.element"),R=Symbol.for("react.transitional.element"),N=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),q=Symbol.for("react.profiler"),tt=Symbol.for("react.consumer"),Z=Symbol.for("react.context"),nt=Symbol.for("react.forward_ref"),ht=Symbol.for("react.suspense"),Et=Symbol.for("react.suspense_list"),I=Symbol.for("react.memo"),C=Symbol.for("react.lazy"),V=Symbol.for("react.activity"),M=Symbol.for("react.memo_cache_sentinel"),P=Symbol.iterator;function U(i){return i===null||typeof i!="object"?null:(i=P&&i[P]||i["@@iterator"],typeof i=="function"?i:null)}var O=Symbol.for("react.client.reference");function At(i){if(i==null)return null;if(typeof i=="function")return i.$$typeof===O?null:i.displayName||i.name||null;if(typeof i=="string")return i;switch(i){case j:return"Fragment";case q:return"Profiler";case F:return"StrictMode";case ht:return"Suspense";case Et:return"SuspenseList";case V:return"Activity"}if(typeof i=="object")switch(i.$$typeof){case N:return"Portal";case Z:return i.displayName||"Context";case tt:return(i._context.displayName||"Context")+".Consumer";case nt:var r=i.render;return i=i.displayName,i||(i=r.displayName||r.name||"",i=i!==""?"ForwardRef("+i+")":"ForwardRef"),i;case I:return r=i.displayName||null,r!==null?r:At(i.type)||"Memo";case C:r=i._payload,i=i._init;try{return At(i(r))}catch{}}return null}var Ut=Array.isArray,W=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,mt=e.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,dt={pending:!1,data:null,method:null,action:null},It=[],Ht=-1;function k(i){return{current:i}}function rt(i){0>Ht||(i.current=It[Ht],It[Ht]=null,Ht--)}function gt(i,r){Ht++,It[Ht]=i.current,i.current=r}var xt=k(null),yt=k(null),Ot=k(null),jt=k(null);function Re(i,r){switch(gt(Ot,r),gt(yt,i),gt(xt,null),r.nodeType){case 9:case 11:i=(i=r.documentElement)&&(i=i.namespaceURI)?H7(i):0;break;default:if(i=r.tagName,r=r.namespaceURI)r=H7(r),i=q7(r,i);else switch(i){case"svg":i=1;break;case"math":i=2;break;default:i=0}}rt(xt),gt(xt,i)}function ve(){rt(xt),rt(yt),rt(Ot)}function Ii(i){i.memoizedState!==null&>(jt,i);var r=xt.current,o=q7(r,i.type);r!==o&&(gt(yt,i),gt(xt,o))}function Oi(i){yt.current===i&&(rt(xt),rt(yt)),jt.current===i&&(rt(jt),Pu._currentValue=dt)}var Mi,ts;function On(i){if(Mi===void 0)try{throw Error()}catch(o){var r=o.stack.trim().match(/\n( *(at )?)/);Mi=r&&r[1]||"",ts=-1<o.stack.indexOf(` 42 at`)?" (<anonymous>)":-1<o.stack.indexOf("@")?"@unknown:0:0":""}return` 43`+Mi+i+ts}var ga=!1;function Mn(i,r){if(!i||ga)return"";ga=!0;var o=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var u={DetermineComponentFrameRoot:function(){try{if(r){var ut=function(){throw Error()};if(Object.defineProperty(ut.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(ut,[])}catch(J){var K=J}Reflect.construct(i,[],ut)}else{try{ut.call()}catch(J){K=J}i.call(ut.prototype)}}else{try{throw Error()}catch(J){K=J}(ut=i())&&typeof ut.catch=="function"&&ut.catch(function(){})}}catch(J){if(J&&K&&typeof J.stack=="string")return[J.stack,K.stack]}return[null,null]}};u.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var d=Object.getOwnPropertyDescriptor(u.DetermineComponentFrameRoot,"name");d&&d.configurable&&Object.defineProperty(u.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var p=u.DetermineComponentFrameRoot(),E=p[0],S=p[1];if(E&&S){var L=E.split(` 44`),Q=S.split(` 45`);for(d=u=0;u<L.length&&!L[u].includes("DetermineComponentFrameRoot");)u++;for(;d<Q.length&&!Q[d].includes("DetermineComponentFrameRoot");)d++;if(u===L.length||d===Q.length)for(u=L.length-1,d=Q.length-1;1<=u&&0<=d&&L[u]!==Q[d];)d--;for(;1<=u&&0<=d;u--,d--)if(L[u]!==Q[d]){if(u!==1||d!==1)do if(u--,d--,0>d||L[u]!==Q[d]){var st=` 46`+L[u].replace(" at new "," at ");return i.displayName&&st.includes("<anonymous>")&&(st=st.replace("<anonymous>",i.displayName)),st}while(1<=u&&0<=d);break}}}finally{ga=!1,Error.prepareStackTrace=o}return(o=i?i.displayName||i.name:"")?On(o):""}function cr(i,r){switch(i.tag){case 26:case 27:case 5:return On(i.type);case 16:return On("Lazy");case 13:return i.child!==r&&r!==null?On("Suspense Fallback"):On("Suspense");case 19:return On("SuspenseList");case 0:case 15:return Mn(i.type,!1);case 11:return Mn(i.type.render,!1);case 1:return Mn(i.type,!0);case 31:return On("Activity");default:return""}}function kl(i){try{var r="",o=null;do r+=cr(i,o),o=i,i=i.return;while(i);return r}catch(u){return` 47Error generating stack: `+u.message+` 48`+u.stack}}var Fe=Object.prototype.hasOwnProperty,an=n.unstable_scheduleCallback,hr=n.unstable_cancelCallback,Jf=n.unstable_shouldYield,Gc=n.unstable_requestPaint,Pn=n.unstable_now,ya=n.unstable_getCurrentPriorityLevel,jl=n.unstable_ImmediatePriority,Bl=n.unstable_UserBlockingPriority,fr=n.unstable_NormalPriority,td=n.unstable_LowPriority,Yc=n.unstable_IdlePriority,Qc=n.log,Kc=n.unstable_setDisableYieldValue,Pi=null,gn=null;function pi(i){if(typeof Qc=="function"&&Kc(i),gn&&typeof gn.setStrictMode=="function")try{gn.setStrictMode(Pi,i)}catch{}}var Me=Math.clz32?Math.clz32:Xc,$c=Math.log,mo=Math.LN2;function Xc(i){return i>>>=0,i===0?32:31-($c(i)/mo|0)|0}var es=256,va=262144,He=4194304;function ns(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;
vendor: 10,556 bytes, line 48
48case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return i}}function is(i,r,o){var u=i.pendingLanes;if(u===0)return 0;var d=0,p=i.suspendedLanes,E=i.pingedLanes;i=i.warmLanes;var S=u&134217727;return S!==0?(u=S&~p,u!==0?d=ns(u):(E&=S,E!==0?d=ns(E):o||(o=S&~i,o!==0&&(d=ns(o))))):(S=u&~p,S!==0?d=ns(S):E!==0?d=ns(E):o||(o=u&~i,o!==0&&(d=ns(o)))),d===0?0:r!==0&&r!==d&&(r&p)===0&&(p=d&-d,o=r&-r,p>=o||p===32&&(o&4194048)!==0)?r:d}function Li(i,r){return(i.pendingLanes&~(i.suspendedLanes&~i.pingedLanes)&r)===0}function ed(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 Wc(){var i=He;return He<<=1,(He&62914560)===0&&(He=4194304),i}function ss(i){for(var r=[],o=0;31>o;o++)r.push(i);return r}function _a(i,r){i.pendingLanes|=r,r!==268435456&&(i.suspendedLanes=0,i.pingedLanes=0,i.warmLanes=0)}function nd(i,r,o,u,d,p){var E=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,L=i.expirationTimes,Q=i.hiddenUpdates;for(o=E&~o;0<o;){var st=31-Me(o),ut=1<<st;S[st]=0,L[st]=-1;var K=Q[st];if(K!==null)for(Q[st]=null,st=0;st<K.length;st++){var J=K[st];J!==null&&(J.lane&=-536870913)}o&=~ut}u!==0&&Ea(i,u,0),p!==0&&d===0&&i.tag!==0&&(i.suspendedLanes|=p&~(E&~r))}function Ea(i,r,o){i.pendingLanes|=r,i.suspendedLanes&=~r;var u=31-Me(r);i.entangledLanes|=r,i.entanglements[u]=i.entanglements[u]|1073741824|o&261930}function Ul(i,r){var o=i.entangledLanes|=r;for(i=i.entanglements;o;){var u=31-Me(o),d=1<<u;d&r|i[u]&r&&(i[u]|=r),o&=~d}}function zl(i,r){var o=r&-r;return o=(o&42)!==0?1:Ta(o),(o&(i.suspendedLanes|r))!==0?0:o}function Ta(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 Ps(i){return i&=-i,2<i?8<i?(i&134217727)!==0?32:268435456:8:2}function Zc(){var i=mt.p;return i!==0?i:(i=window.event,i===void 0?32:dg(i.type))}function ki(i,r){var o=mt.p;try{return mt.p=i,r()}finally{mt.p=o}}var ji=Math.random().toString(36).slice(2),qe="__reactFiber$"+ji,hn="__reactProps$"+ji,rs="__reactContainer$"+ji,po="__reactEvents$"+ji,id="__reactListeners$"+ji,Jc="__reactHandles$"+ji,t1="__reactResources$"+ji,as="__reactMarker$"+ji;function go(i){delete i[qe],delete i[hn],delete i[po],delete i[id],delete i[Jc]}function os(i){var r=i[qe];if(r)return r;for(var o=i.parentNode;o;){if(r=o[rs]||o[qe]){if(o=r.alternate,r.child!==null||o!==null&&o.child!==null)for(i=W7(i);i!==null;){if(o=i[qe])return o;i=W7(i)}return r}i=o,o=i.parentNode}return null}function gi(i){if(i=i[qe]||i[rs]){var r=i.tag;if(r===5||r===6||r===13||r===31||r===26||r===27||r===3)return i}return null}function ei(i){var r=i.tag;if(r===5||r===26||r===27||r===6)return i.stateNode;throw Error(s(33))}function ls(i){var r=i[t1];return r||(r=i[t1]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function Ge(i){i[as]=!0}var Fl=new Set,Hl={};function us(i,r){cs(i,r),cs(i+"Capture",r)}function cs(i,r){for(Hl[i]=r,i=0;i<r.length;i++)Fl.add(r[i])}var ql=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]*$"),Gl={},Yl={};function e1(i){return Fe.call(Yl,i)?!0:Fe.call(Gl,i)?!1:ql.test(i)?Yl[i]=!0:(Gl[i]=!0,!1)}function yo(i,r,o){if(e1(r))if(o===null)i.removeAttribute(r);else{switch(typeof o){case"undefined":case"function":case"symbol":i.removeAttribute(r);return;case"boolean":var u=r.toLowerCase().slice(0,5);if(u!=="data-"&&u!=="aria-"){i.removeAttribute(r);return}}i.setAttribute(r,""+o)}}function ni(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 Ye(i,r,o,u){if(u===null)i.removeAttribute(o);else{switch(typeof u){case"undefined":case"function":case"symbol":case"boolean":i.removeAttribute(o);return}i.setAttributeNS(r,o,""+u)}}function fn(i){switch(typeof i){case"bigint":case"boolean":case"number":case"string":case"undefined":return i;case"object":return i;default:return""}}function dr(i){var r=i.type;return(i=i.nodeName)&&i.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function Ql(i,r,o){var u=Object.getOwnPropertyDescriptor(i.constructor.prototype,r);if(!i.hasOwnProperty(r)&&typeof u<"u"&&typeof u.get=="function"&&typeof u.set=="function"){var d=u.get,p=u.set;return Object.defineProperty(i,r,{configurable:!0,get:function(){return d.call(this)},set:function(E){o=""+E,p.call(this,E)}}),Object.defineProperty(i,r,{enumerable:u.enumerable}),{getValue:function(){return o},setValue:function(E){o=""+E},stopTracking:function(){i._valueTracker=null,delete i[r]}}}}function ce(i){if(!i._valueTracker){var r=dr(i)?"checked":"value";i._valueTracker=Ql(i,r,""+i[r])}}function Aa(i){if(!i)return!1;var r=i._valueTracker;if(!r)return!0;var o=r.getValue(),u="";return i&&(u=dr(i)?i.checked?"true":"false":i.value),i=u,i!==o?(r.setValue(i),!0):!1}function hs(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 xa=/[\n"\\]/g;function Fn(i){return i.replace(xa,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function vo(i,r,o,u,d,p,E,S){i.name="",E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"?i.type=E:i.removeAttribute("type"),r!=null?E==="number"?(r===0&&i.value===""||i.value!=r)&&(i.value=""+fn(r)):i.value!==""+fn(r)&&(i.value=""+fn(r)):E!=="submit"&&E!=="reset"||i.removeAttribute("value"),r!=null?Kl(i,E,fn(r)):o!=null?Kl(i,E,fn(o)):u!=null&&i.removeAttribute("value"),d==null&&p!=null&&(i.defaultChecked=!!p),d!=null&&(i.checked=d&&typeof d!="function"&&typeof d!="symbol"),S!=null&&typeof S!="function"&&typeof S!="symbol"&&typeof S!="boolean"?i.name=""+fn(S):i.removeAttribute("name")}function n1(i,r,o,u,d,p,E,S){if(p!=null&&typeof p!="function"&&typeof p!="symbol"&&typeof p!="boolean"&&(i.type=p),r!=null||o!=null){if(!(p!=="submit"&&p!=="reset"||r!=null)){ce(i);return}o=o!=null?""+fn(o):"",r=r!=null?""+fn(r):o,S||r===i.value||(i.value=r),i.defaultValue=r}u=u??d,u=typeof u!="function"&&typeof u!="symbol"&&!!u,i.checked=S?i.checked:!!u,i.defaultChecked=!!u,E!=null&&typeof E!="function"&&typeof E!="symbol"&&typeof E!="boolean"&&(i.name=E),ce(i)}function Kl(i,r,o){r==="number"&&hs(i.ownerDocument)===i||i.defaultValue===""+o||(i.defaultValue=""+o)}function mr(i,r,o,u){if(i=i.options,r){r={};for(var d=0;d<o.length;d++)r["$"+o[d]]=!0;for(o=0;o<i.length;o++)d=r.hasOwnProperty("$"+i[o].value),i[o].selected!==d&&(i[o].selected=d),d&&u&&(i[o].defaultSelected=!0)}else{for(o=""+fn(o),r=null,d=0;d<i.length;d++){if(i[d].value===o){i[d].selected=!0,u&&(i[d].defaultSelected=!0);return}r!==null||i[d].disabled||(r=i[d])}r!==null&&(r.selected=!0)}}function i1(i,r,o){if(r!=null&&(r=""+fn(r),r!==i.value&&(i.value=r),o==null)){i.defaultValue!==r&&(i.defaultValue=r);return}i.defaultValue=o!=null?""+fn(o):""}function pr(i,r,o,u){if(r==null){if(u!=null){if(o!=null)throw Error(s(92));if(Ut(u)){if(1<u.length)throw Error(s(93));u=u[0]}o=u}o==null&&(o=""),r=o}o=fn(r),i.defaultValue=o,u=i.textContent,u===o&&u!==""&&u!==null&&(i.value=u),ce(i)}function Hn(i,r){if(r){var o=i.firstChild;if(o&&o===i.lastChild&&o.nodeType===3){o.nodeValue=r;return}}i.textContent=r}var s1=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 $l(i,r,o){var u=r.indexOf("--")===0;o==null||typeof o=="boolean"||o===""?u?i.setProperty(r,""):r==="float"?i.cssFloat="":i[r]="":u?i.setProperty(r,o):typeof o!="number"||o===0||s1.has(r)?r==="float"?i.cssFloat=o:i[r]=(""+o).trim():i[r]=o+"px"}function Xl(i,r,o){if(r!=null&&typeof r!="object")throw Error(s(62));if(i=i.style,o!=null){for(var u in o)!o.hasOwnProperty(u)||r!=null&&r.hasOwnProperty(u)||(u.indexOf("--")===0?i.setProperty(u,""):u==="float"?i.cssFloat="":i[u]="");for(var d in r)u=r[d],r.hasOwnProperty(d)&&o[d]!==u&&$l(i,d,u)}else for(var p in r)r.hasOwnProperty(p)&&$l(i,p,r[p])}function _o(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 r1=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"],["colorRen
48dering","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-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"]]),gr=/^[\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 Eo(i){return gr.test(""+i)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":i}function Bi(){}var Wl=null;function yi(i){return i=i.target||i.srcElement||window,i.correspondingUseElement&&(i=i.correspondingUseElement),i.nodeType===3?i.parentNode:i}var yr=null,fs=null;function Sa(i){var r=gi(i);if(r&&(i=r.stateNode)){var o=i[hn]||null;t:switch(i=r.stateNode,r.type){case"input":if(vo(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="'+Fn(""+r)+'"][type="radio"]'),r=0;r<o.length;r++){var u=o[r];if(u!==i&&u.form===i.form){var d=u[hn]||null;if(!d)throw Error(s(90));vo(u,d.value,d.defaultValue,d.defaultValue,d.checked,d.defaultChecked,d.type,d.name)}}for(r=0;r<o.length;r++)u=o[r],u.form===i.form&&Aa(u)}break t;case"textarea":i1(i,o.value,o.defaultValue);break t;case"select":r=o.value,r!=null&&mr(i,!!o.multiple,r,!1)}}}var To=!1;function vr(i,r,o){if(To)return i(r,o);To=!0;try{var u=i(r);return u}finally{if(To=!1,(yr!==null||fs!==null)&&(Z1(),yr&&(r=yr,i=fs,fs=yr=null,Sa(r),i)))for(r=0;r<i.length;r++)Sa(i[r])}}function Ui(i,r){var o=i.stateNode;if(o===null)return null;var u=o[hn]||null;if(u===null)return null;o=u[r];t:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(u=!u.disabled)||(i=i.type,u=!(i==="button"||i==="input"||i==="select"||i==="textarea")),i=!u;break t;default:i=!1}if(i)return null;if(o&&typeof o!="function")throw Error(s(231,r,typeof o));return o}var vi=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),wa=!1;if(vi)try{var de={};Object.defineProperty(de,"passive",{get:function(){wa=!0}}),window.addEventListener("test",de,de),window.removeEventListener("test",de,de)}catch{wa=!1}var ds=null,Zl=null,ba=null;function Jl(){if(ba)return ba;var i,r=Zl,o=r.length,u,d="value"in ds?ds.value:ds.textContent,p=d.length;for(i=0;i<o&&r[i]===d[i];i++);var E=o-i;for(u=1;u<=E&&r[o-u]===d[p-u];u++);return ba=d.slice(i,1<u?1-u:void 0)}function Ca(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 Ls(){return!0}function zi(){return!1}function yn(i){function r(o,u,d,p,E){this._reactName=o,this._targetInst=d,this.type=u,this.nativeEvent=p,this.target=E,this.currentTarget=null;for(var S in i)i.hasOwnProperty(S)&&(o=i[S],this[S]=o?o(p):p[S]);return this.isDefaultPrevented=(p.defaultPrevented!=null?p.defaultPrevented:p.returnValue===!1)?Ls:zi,this.isPropagationStopped=zi,this}return _(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=Ls)},stopPropagation:function(){var o=this.nativeEvent;o&&(o.stopPropagation?o.stopPropagation():typeof o.cancelBubble!="unknown"&&(o.cancelBubble=!0),this.isPropagationStopped=Ls)},persist:function(){},isPersistent:Ls}),r}var ks={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(i){return i.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},ms=yn(ks),_r=_({},ks,{view:0,detail:0}),tu=yn(_r),Er,Ao,ps,xo=_({},_r,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Tr,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!==ps&&(ps&&i.type==="mousemove"?(Er=i.screenX-ps.screenX,Ao=i.screenY-ps.screenY):Ao=Er=0,ps=i),Er)},movementY:function(i){return"movementY"in i?i.movementY:Ao}}),eu=yn(xo),Ra=_({},xo,{dataTransfer:0}),a1=yn(Ra),o1=_({},_r,{relatedTarget:0}),Na=yn(o1),nu=_({},ks,{animationName:0,elapsedTime:0,pseudoElement:0}),l1=yn(nu),So=_({},ks,{clipboardData:function(i){return"clipboardData"in i?i.clipboardData:window.clipboardData}}),u1=yn(So),c1=_({},ks,{data:0}),gs=yn(c1),h1={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},f1={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"},d1={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function m1(i){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(i):(i=d1[i])?!!r[i]:!1}function Tr(){return m1}var Ln=_({},_r,{key:function(i){if(i.key){var r=h1[i.key]||i.key;if(r!=="Unidentified")return r}
vendor: 4,237 bytes, line 48
48return i.type==="keypress"?(i=Ca(i),i===13?"Enter":String.fromCharCode(i)):i.type==="keydown"||i.type==="keyup"?f1[i.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Tr,charCode:function(i){return i.type==="keypress"?Ca(i):0},keyCode:function(i){return i.type==="keydown"||i.type==="keyup"?i.keyCode:0},which:function(i){return i.type==="keypress"?Ca(i):i.type==="keydown"||i.type==="keyup"?i.keyCode:0}}),p1=yn(Ln),g1=_({},xo,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),js=yn(g1),f=_({},_r,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Tr}),v=yn(f),T=_({},ks,{propertyName:0,elapsedTime:0,pseudoElement:0}),b=yn(T),G=_({},xo,{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}),X=yn(G),pt=_({},ks,{newState:0,oldState:0}),qt=yn(pt),Pe=[9,13,27,32],oe=vi&&"CompositionEvent"in window,we=null;vi&&"documentMode"in document&&(we=document.documentMode);var _i=vi&&"TextEvent"in window&&!we,ys=vi&&(!oe||we&&8<we&&11>=we),Fi=" ",Hi=!1;function Da(i,r){switch(i){case"keyup":return Pe.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function wo(i){return i=i.detail,typeof i=="object"&&"data"in i?i.data:null}var bo=!1;function E_(i,r){switch(i){case"compositionend":return wo(r);case"keypress":return r.which!==32?null:(Hi=!0,Fi);case"textInput":return i=r.data,i===Fi&&Hi?null:i;default:return null}}function T_(i,r){if(bo)return i==="compositionend"||!oe&&Da(i,r)?(i=Jl(),ba=Zl=ds=null,bo=!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 ys&&r.locale!=="ko"?null:r.data;default:return null}}var A_={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 tp(i){var r=i&&i.nodeName&&i.nodeName.toLowerCase();return r==="input"?!!A_[i.type]:r==="textarea"}function ep(i,r,o,u){yr?fs?fs.push(u):fs=[u]:yr=u,r=rh(r,"onChange"),0<r.length&&(o=new ms("onChange","change",null,o,u),i.push({event:o,listeners:r}))}var iu=null,su=null;function x_(i){k7(i,0)}function y1(i){var r=ei(i);if(Aa(r))return i}function np(i,r){if(i==="change")return r}var ip=!1;if(vi){var sd;if(vi){var rd="oninput"in document;if(!rd){var sp=document.createElement("div");sp.setAttribute("oninput","return;"),rd=typeof sp.oninput=="function"}sd=rd}else sd=!1;ip=sd&&(!document.documentMode||9<document.documentMode)}function rp(){iu&&(iu.detachEvent("onpropertychange",ap),su=iu=null)}function ap(i){if(i.propertyName==="value"&&y1(su)){var r=[];ep(r,su,i,yi(i)),vr(x_,r)}}function S_(i,r,o){i==="focusin"?(rp(),iu=r,su=o,iu.attachEvent("onpropertychange",ap)):i==="focusout"&&rp()}function w_(i){if(i==="selectionchange"||i==="keyup"||i==="keydown")return y1(su)}function b_(i,r){if(i==="click")return y1(r)}function C_(i,r){if(i==="input"||i==="change")return y1(r)}function R_(i,r){return i===r&&(i!==0||1/i===1/r)||i!==i&&r!==r}var ii=typeof Object.is=="function"?Object.is:R_;function ru(i,r){if(ii(i,r))return!0;if(typeof i!="object"||i===null||typeof r!="object"||r===null)return!1;var o=Object.keys(i),u=Object.keys(r);if(o.length!==u.length)return!1;for(u=0;u<o.length;u++){var d=o[u];if(!Fe.call(r,d)||!ii(i[d],r[d]))return!1}return!0}function op(i){for(;i&&i.firstChild;)i=i.firstChild;return i}function lp(i,r){var o=op(i);i=0;for(var u;o;){if(o.nodeType===3){if(u=i+o.textContent.length,i<=r&&u>=r)return{node:o,offset:r-i};i=u}t:{for(;o;){if(o.nextSibling){o=o.nextSibling;break t}o=o.parentNode}o=void 0}o=op(o)}}function up(i,r){return i&&r?i===r?!0:i&&i.nodeType===3?!1:r&&r.nodeType===3?up(i,r.parentNode):"contains"in i?i.contains(r):i.compareDocumentPosition?!!(i.compareDocumentPosition(r)&16):!1:!1}
vendor: 23,254 bytes, line 48
48function cp(i){i=i!=null&&i.ownerDocument!=null&&i.ownerDocument.defaultView!=null?i.ownerDocument.defaultView:window;for(var r=hs(i.document);r instanceof i.HTMLIFrameElement;){try{var o=typeof r.contentWindow.location.href=="string"}catch{o=!1}if(o)i=r.contentWindow;else break;r=hs(i.document)}return r}function ad(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 N_=vi&&"documentMode"in document&&11>=document.documentMode,Co=null,od=null,au=null,ld=!1;function hp(i,r,o){var u=o.window===o?o.document:o.nodeType===9?o:o.ownerDocument;ld||Co==null||Co!==hs(u)||(u=Co,"selectionStart"in u&&ad(u)?u={start:u.selectionStart,end:u.selectionEnd}:(u=(u.ownerDocument&&u.ownerDocument.defaultView||window).getSelection(),u={anchorNode:u.anchorNode,anchorOffset:u.anchorOffset,focusNode:u.focusNode,focusOffset:u.focusOffset}),au&&ru(au,u)||(au=u,u=rh(od,"onSelect"),0<u.length&&(r=new ms("onSelect","select",null,r,o),i.push({event:r,listeners:u}),r.target=Co)))}function Va(i,r){var o={};return o[i.toLowerCase()]=r.toLowerCase(),o["Webkit"+i]="webkit"+r,o["Moz"+i]="moz"+r,o}var Ro={animationend:Va("Animation","AnimationEnd"),animationiteration:Va("Animation","AnimationIteration"),animationstart:Va("Animation","AnimationStart"),transitionrun:Va("Transition","TransitionRun"),transitionstart:Va("Transition","TransitionStart"),transitioncancel:Va("Transition","TransitionCancel"),transitionend:Va("Transition","TransitionEnd")},ud={},fp={};vi&&(fp=document.createElement("div").style,"AnimationEvent"in window||(delete Ro.animationend.animation,delete Ro.animationiteration.animation,delete Ro.animationstart.animation),"TransitionEvent"in window||delete Ro.transitionend.transition);function Ia(i){if(ud[i])return ud[i];if(!Ro[i])return i;var r=Ro[i],o;for(o in r)if(r.hasOwnProperty(o)&&o in fp)return ud[i]=r[o];return i}var dp=Ia("animationend"),mp=Ia("animationiteration"),pp=Ia("animationstart"),D_=Ia("transitionrun"),V_=Ia("transitionstart"),I_=Ia("transitioncancel"),gp=Ia("transitionend"),yp=new Map,cd="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(" ");cd.push("scrollEnd");function qi(i,r){yp.set(i,r),us(r,[i])}var v1=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)},Ei=[],No=0,hd=0;function _1(){for(var i=No,r=hd=No=0;r<i;){var o=Ei[r];Ei[r++]=null;var u=Ei[r];Ei[r++]=null;var d=Ei[r];Ei[r++]=null;var p=Ei[r];if(Ei[r++]=null,u!==null&&d!==null){var E=u.pending;E===null?d.next=d:(d.next=E.next,E.next=d),u.pending=d}p!==0&&vp(o,d,p)}}function E1(i,r,o,u){Ei[No++]=i,Ei[No++]=r,Ei[No++]=o,Ei[No++]=u,hd|=u,i.lanes|=u,i=i.alternate,i!==null&&(i.lanes|=u)}function fd(i,r,o,u){return E1(i,r,o,u),T1(i)}function Oa(i,r){return E1(i,null,null,r),T1(i)}function vp(i,r,o){i.lanes|=o;var u=i.alternate;u!==null&&(u.lanes|=o);for(var d=!1,p=i.return;p!==null;)p.childLanes|=o,u=p.alternate,u!==null&&(u.childLanes|=o),p.tag===22&&(i=p.stateNode,i===null||i._visibility&1||(d=!0)),i=p,p=p.return;return i.tag===3?(p=i.stateNode,d&&r!==null&&(d=31-Me(o),i=p.hiddenUpdates,u=i[d],u===null?i[d]=[r]:u.push(r),r.lane=o|536870912),p):null}function T1(i){if(50<Ru)throw Ru=0,T2=null,Error(s(185));for(var r=i.return;r!==null;)i=r,r=i.return;return i.tag===3?i.stateNode:null}var Do={};function O_(i,r,o,u){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=u,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function si(i,r,o,u){return new O_(i,r,o,u)}function dd(i){return i=i.prototype,!(!i||!i.isReactComponent)}function Bs(i,r){var o=i.alternate;return o===null?(o=si(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 _p(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 A1(i,r,o,u,d,p){var E=0;if(u=i,typeof i=="function")dd(i)&&(E=1);else if(typeof i=="string")E=jE(i,o,xt.current)?26:i==="html"||i==="head"||i==="body"?27:5;else t:switch(i){case V:return i=si(31,o,r,d),i.elementType=V,i.lanes=p,i;case j:return Ma(o.children,d,p,r);case F:E=8,d|=24;break;case q:return i=si(12,o,r,d|2),i.elementType=q,i.lanes=p,i;case ht:return i=si(13,o,r,d),i.elementType=ht,i.lanes=p,i;case Et:return i=si(19,o,r,d),i.elementType=Et,i.lanes=p,i;default:if(typeof i=="object"&&i!==null)switch(i.$$typeof){case Z:E=10;break t;case tt:E=9;break t;case nt:E=11;break t;case I:E=14;break t;case C:E=16,u=null;break t}E=29,o=Error(s(130,i===null?"null":typeof i,"")),u=null}return r=si(E,o,r,d),r.elementType=i,r.type=u,r.lanes=p,r}function Ma(i,r,o,u){return i=si(7,i,u,r),i.lanes=o,i}function md(i,r,o){return i=si(6,i,null,r),i.lanes=o,i}function Ep(i){var r=si(18,null,null,0);return r.stateNode=i,r}function pd(i,r,o){return r=si(4,i.children!==null?i.children:[],i.key,r),r.lanes=o,r.stateNode={containerInfo:i.containerInfo,pendingChildren:null,implementation:i.implementation},r}var Tp=new WeakMap;function Ti(i,r){if(typeof i=="object"&&i!==null){var o=Tp.get(i);return o!==void 0?o:(r={value:i,source:r,stack:kl(r)},Tp.set(i,r),r)}return{value:i,source:r,stack:kl(r)}}var Vo=[],Io=0,x1=null,ou=0,Ai=[],xi=0,Ar=null,vs=1,_s="";function Us(i,r){Vo[Io++]=ou,Vo[Io++]=x1,x1=i,ou=r}function Ap(i,r,o){Ai[xi++]=vs,Ai[xi++]=_s,Ai[xi++]=Ar,Ar=i;var u=vs;i=_s;var d=32-Me(u)-1;u&=~(1<<d),o+=1;var p=32-Me(r)+d;if(30<p){var E=d-d%5;p=(u&(1<<E)-1).toString(32),u>>=E,d-=E,vs=1<<32-Me(r)+d|o<<d|u,_s=p+i}else vs=1<<p|o<<d|u,_s=i}function gd(i){i.return!==null&&(Us(i,1),Ap(i,1,0))}function yd(i){for(;i===x1;)x1=Vo[--Io],Vo[Io]=null,ou=Vo[--Io],Vo[Io]=null;for(;i===Ar;)Ar=Ai[--xi],Ai[xi]=null,_s=Ai[--xi],Ai[xi]=null,vs=Ai[--xi],Ai[xi]=null}function xp(i,r){Ai[xi++]=vs,Ai[xi++]=_s,Ai[xi++]=Ar,vs=r.id,_s=r.overflow,Ar=i}var vn=null,Ae=null,ee=!1,xr=null,Si=!1,vd=Error(s(519));function Sr(i){var r=Error(s(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw lu(Ti(r,i)),vd}function Sp(i){var r=i.stateNode,o=i.type,u=i.memoizedProps;switch(r[qe]=i,r[hn]=u,o){case"dialog":Wt("cancel",r),Wt("close",r);break;case"iframe":case"object":case"embed":Wt("load",r);break;case"video":case"audio":for(o=0;o<Du.length;o++)Wt(Du[o],r);break;case"source":Wt("error",r);break;case"img":case"image":case"link":Wt("error",r),Wt("load",r);break;case"details":Wt("toggle",r);break;case"input":Wt("invalid",r),n1(r,u.value,u.defaultValue,u.checked,u.defaultChecked,u.type,u.name,!0);break;case"select":Wt("invalid",r);break;case"textarea":Wt("invalid",r),pr(r,u.value,u.defaultValue,u.children)}o=u.children,typeof o!="string"&&typeof o!="number"&&typeof o!="bigint"||r.textContent===""+o||u.suppressHydrationWarning===!0||z7(r.textContent,o)?(u.popover!=null&&(Wt("beforetoggle",r),Wt("toggle",r)),u.onScroll!=null&&Wt("scroll",r),u.onScrollEnd!=null&&Wt("scrollend",r),u.onClick!=null&&(r.onclick=Bi),r=!0):r=!1,r||Sr(i,!0)}function wp(i){for(vn=i.return;vn;)switch(vn.tag){case 5:case 31:case 13:Si=!1;return;case 27:case 3:Si=!0;return;default:vn=vn.return}}function Oo(i){if(i!==vn)return!1;if(!ee)return wp(i),ee=!0,!1;var r=i.tag,o;if((o=r!==3&&r!==27)&&((o=r===5)&&(o=i.type,o=!(o!=="form"&&o!=="button")||L2(i.type,i.memoizedProps)),o=!o),o&&Ae&&Sr(i),wp(i),r===13){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(s(317));Ae=X7(i)}else if(r===31){if(i=i.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(s(317));Ae=X7(i)}else r===27?(r=Ae,jr(i.type)?(i=z2,z2=null,Ae=i):Ae=r):Ae=vn?bi(i.stateNode.nextSibling):null;return!0}function Pa(){Ae=vn=null,ee=!1}function _d(){var i=xr;return i!==null&&(Qn===null?Qn=i:Qn.push.apply(Qn,i),xr=null),i}function lu(i){xr===null?xr=[i]:xr.push(i)}var Ed=k(null),La=null,zs=null;function wr(i,r,o){gt(Ed,r._currentValue),r._currentValue=o}function Fs(i){i._currentValue=Ed.current,rt(Ed)}function Td(i,r,o){for(;i!==null;){var u=i.alternate;if((i.childLanes&r)!==r?(i.childLanes|=r,u!==null&&(u.childLanes|=r)):u!==null&&(u.childLanes&r)!==r&&(u.childLanes|=r),i===o)break;i=i.return}}function Ad(i,r,o,u){var d=i.child;for(d!==null&&(d.return=i);d!==null;){var p=d.dependencies;if(p!==null){var E=d.child;p=p.firstContext;t:for(;p!==null;){var S=p;p=d;for(var L=0;L<r.length;L++)if(S.context===r[L]){p.lanes|=o,S=p.alternate,S!==null&&(S.lanes|=o),Td(p.return,o,i),u||(E=null);break t}p=S.next}}else if(d.tag===18){if(E=d.return,E===null)throw Error(s(341));E.lanes|=o,p=E.alternate,p!==null&&(p.lanes|=o),Td(E,o,i),E=null}else E=d.child;if(E!==null)E.return=d;else for(E=d;E!==null;){if(E===i){E=null;break}if(d=E.sibling,d!==null){d.return=E.return,E=d;break}E=E.return}d=E}}function Mo(i,r,o,u){i=null;for(var d=r,p=!1;d!==null;){if(!p){if((d.flags&524288)!==0)p=!0;else if((d.flags&262144)!==0)break}if(d.tag===10){var E=d.alternate;if(E===null)throw Error(s(387));if(E=E.memoizedProps,E!==null){var S=d.type;ii(d.pendingProps.value,E.value)||(i!==null?i.push(S):i=[S])}}else if(d===jt.current){if(E=d.alternate,E===null)throw Error(s(387));E.memoizedState.memoizedState!==d.memoizedState.memoizedState&&(i!==null?i.push(Pu):i=[Pu])}d=d.return}i!==null&&Ad(r,i,o,u),r.flags|=262144}function S1(i){for(i=i.firstContext;i!==null;){if(!ii(i.context._currentValue,i.memoizedValue))return!0;i=i.next}return!1}function ka(i){La=i,zs=null,i=i.dependencies,i!==null&&(i.firstContext=null)}function _n(i){return bp(La,i)}function w1(i,r){return La===null&&ka(i),bp(i,r)}function bp(i,r){var o=r._currentValue;if(r={context:r,memoizedValue:o,next:null},zs===null){if(i===null)throw Error(s(308));zs=r,i.dependencies={lanes:0,firstContext:r},i.flags|=524288}else zs=zs.next=r;return o}var M_=typeof AbortController<"u"?AbortController:function(){var i=[],r=this.signal={aborted:!1,addEventListener:function(o,u){i.push(u)}};this.abort=function(){r.aborted=!0,i.forEach(function(o){return o()})}},P_=n.unstable_scheduleCallback,L_=n.unstable_NormalPriority,Qe={$$typeof:Z,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function xd(){return{controller:new M_,data:new Map,refCount:0}}function uu(i){i.refCount--,i.refCount===0&&P_(L_,function(){i.controller.abort()})}var cu=null,Sd=0,Po=0,Lo=null;function k_(i,r){if(cu===null){var o=cu=[];Sd=0,Po=C2(),Lo={status:"pending",value:void 0,then:function(u){o.push(u)}}}return Sd++,r.then(Cp,Cp),r}function Cp(){if(--Sd===0&&cu!==null){Lo!==null&&(Lo.status="fulfilled");var i=cu;cu=null,Po=0,Lo=null;for(var r=0;r<i.length;r++)(0,i[r])()}}function j_(i,r){var o=[],u={status:"pending",value:null,reason:null,then:function(d){o.push(d)}};return i.then(function(){u.status="fulfilled",u.value=r;for(var d=0;d<o.length;d++)(0,o[d])(r)},function(d){for(u.status="rejected",u.reason=d,d=0;d<o.length;d++)(0,o[d])(void 0)}),u}var Rp=W.S;W.S=function(i,r){h7=Pn(),typeof r=="object"&&r!==null&&typeof r.then=="function"&&k_(i,r),Rp!==null&&Rp(i,r)};var ja=k(null);function wd(){var i=ja.current;return i!==null?i:_e.pooledCache}function b1(i,r){r===null?gt(ja,ja.current):gt(ja,r.pool)}function Np(){var i=wd();return i===null?null:{parent:Qe._currentValue,pool:i}}var ko=Error(s(460)),bd=Error(s(474)),C1=Error(s(542)),R1={then:function(){}};function Dp(i){return i=i.status,i==="fulfilled"||i==="rejected"}function Vp(i,r,o){switch(o=i[o],o===void 0?i.push(r):o!==r&&(r.then(Bi,Bi),r=o),r.status){case"fulfilled":return r.value;case"rejected":throw i=r.reason,Op(i),i;default:if(typeof r.status=="string")r.then(Bi,Bi);else{if(i=_e,i!==null&&100<i.shellSuspendCounter)throw Error(s(482));i=r,i.status="pending",i.then(function(u){if(r.status==="pending"){var d=r;d.status="fulfilled",d.value=u}},function(u){if(r.status==="pending"){var d=r;d.status="rejected",d.reason=u}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw i=r.reason,Op(i),i}throw Ua=r,ko}}function Ba(i){try{var r=i._init;return r(i._payload)}catch(o){throw o!==null&&typeof o=="object"&&typeof o.then=="function"?(Ua=o,ko):o}}var Ua=null;function Ip(){if(Ua===null)throw Error(s(459));var i=Ua;return Ua=null,i}function Op(i){if(i===ko||i===C1)throw Error(s(483))}var jo=null,hu=0;function N1(i){var r=hu;return hu+=1,jo===null&&(jo=[]),Vp(jo,i,r)}function fu(i,r){r=r.props.ref,i.ref=r!==void 0?r:null}function D1(i,r){throw r.$$typeof===x?Error(s(525)):(i=Object.prototype.toString.call(r),Error(s(31,i==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":i)))}function Mp(i){function r(H,B){if(i){var Y=H.deletions;Y===null?(H.deletions=[B],H.flags|=16):Y.push(B)}}function o(H,B){if(!i)return null;for(;B!==null;)r(H,B),B=B.sibling;return null}function u(H){for(var B=new Map;H!==null;)H.key!==null?B.set(H.key,H):B.set(H.index,H),H=H.sibling;return B}function d(H,B){return H=Bs(H,B),H.index=0,H.sibling=null,H}function p(H,B,Y){return H.index=Y,i?(Y=H.alternate,Y!==null?(Y=Y.index,Y<B?(H.flags|=67108866,B):Y):(H.flags|=67108866,B)):(H.flags|=1048576,B)}function E(H){return i&&H.alternate===null&&(H.flags|=67108866),H}function S(H,B,Y,at){return B===null||B.tag!==6?(B=md(Y,H.mode,at),B.return=H,B):(B=d(B,Y),B.return=H,B)}function L(H,B,Y,at){var Dt=Y.type;return Dt===j?st(H,B,Y.props.children,at,Y.key):B!==null&&(B.elementType===Dt||typeof Dt=="object"&&Dt!==null&&Dt.$$typeof===C&&Ba(Dt)===B.type)?(B=d(B,Y.props),fu(B,Y),B.return=H,B):(B=A1(Y.type,Y.key,Y.props,null,H.mode,at),fu(B,Y),B.return=H,B)}function Q(H,B,Y,at){return B===null||B.tag!==4||B.stateNode.containerInfo!==Y.containerInfo||B.stateNode.implementation!==Y.implementation?(B=pd(Y,H.mode,at),B.return=H,B):(B=d(B,Y.children||[]),B.return=H,B)}function st(H,B,Y,at,Dt){return B===null||B.tag!==7?(B=Ma(Y,H.mode,at,Dt),B.return=H,B):(B=d(B,Y),B.return=H,B)}function ut(H,B,Y){if(typeof B=="string"&&B!==""||typeof B=="number"||typeof B=="bigint")return B=md(""+B,H.mode,Y),B.return=H,B;if(typeof B=="object"&&B!==null){switch(B.$$typeof){case R:return Y=A1(B.type,B.key,B.props,null,H.mode,Y),fu(Y,B),Y.return=H,Y;case N:return B=pd(B,H.mode,Y),B.return=H,B;case C:return B=Ba(B),ut(H,B,Y)}if(Ut(B)||U(B))return B=Ma(B,H.mode,Y,null),B.return=H,B;if(typeof B.then=="function")return ut(H,N1(B),Y);if(B.$$typeof===Z)return ut(H,w1(H,B),Y);D1(H,B)}return null}function K(H,B,Y,at){var Dt=B!==null?B.key:null;if(typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint")return Dt!==null?null:S(H,B,""+Y,at);if(typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case R:return Y.key===Dt?L(H,B,Y,at):null;case N:return Y.key===Dt?Q(H,B,Y,at):null;case C:return Y=Ba(Y),K(H,B,Y,at)}if(Ut(Y)||U(Y))return Dt!==null?null:st(H,B,Y,at,null);if(typeof Y.then=="function")return K(H,B,N1(Y),at);if(Y.$$typeof===Z)return K(H,B,w1(H,Y),at);D1(H,Y)}return null}function J(H,B,Y,at,Dt){if(typeof at=="string"&&at!==""||typeof at=="number"||typeof at=="bigint")return H=H.get(Y)||null,S(B,H,""+at,Dt);if(typeof at=="object"&&at!==null){switch(at.$$typeof){case R:return H=H.get(at.key===null?Y:at.key)||null,L(B,H,at,Dt);case N:return H=H.get(at.key===null?Y:at.key)||null,Q(B,H,at,Dt);case C:return at=Ba(at),J(H,B,Y,at,Dt)}if(Ut(at)||U(at))return H=H.get(Y)||null,st(B,H,at,Dt,null);if(typeof at.then=="function")return J(H,B,Y,N1(at),Dt);if(at.$$typeof===Z)return J(H,B,Y,w1(B,at),Dt);D1(B,at)}return null}function St(H,B,Y,at){for(var Dt=null,re=null,bt=B,Qt=B=0,te=null;bt!==null&&Qt<Y.length;Qt++){bt.index>Qt?(te=bt,bt=null):te=bt.sibling;var ae=K(H,bt,Y[Qt],at);if(ae===null){bt===null&&(bt=te);break}i&&bt&&ae.alternate===null&&r(H,bt),B=p(ae,B,Qt),re===null?Dt=ae:re.sibling=ae,re=ae,bt=te}if(Qt===Y.length)return o(H,bt),ee&&Us(H,Qt),Dt;if(bt===null){for(;Qt<Y.length;Qt++)bt=ut(H,Y[Qt],at),bt!==null&&(B=p(bt,B,Qt),re===null?Dt=bt:re.sibling=bt,re=bt);return ee&&Us(H,Qt),Dt}for(bt=u(bt);Qt<Y.length;Qt++)te=J(bt,H,Qt,Y[Qt],at),te!==null&&(i&&te.alternate!==null&&bt.delete(te.key===null?Qt:te.key),B=p(te,B,Qt),re===null?Dt=te:re.sibling=te,re=te);return i&&bt.forEach(function(Hr){return r(H,Hr)}),ee&&Us(H,Qt),Dt}function Mt(H,B,Y,at){if(Y==null)throw Error(s(151));for(var Dt=null,re=null,bt=B,Qt=B=0,te=null,ae=Y.next();bt!==null&&!ae.done;Qt++,ae=Y.next()){bt.index>Qt?(te=bt,bt=null):te=bt.sibling;var Hr=K(H,bt,ae.value,at);if(Hr===null){bt===null&&(bt=te);break}i&&bt&&Hr.alternate===null&&r(H,bt),B=p(Hr,B,Qt),re===null?Dt=Hr:re.sibling=Hr,re=Hr,bt=te}if(ae.done)return o(H,bt),ee&&Us(H,Qt),Dt;if(bt===null){for(;!ae.done;Qt++,ae=Y.next())ae=ut(H,ae.value,at),ae!==null&&(B=p(ae,B,Qt),re===null?Dt=ae:re.sibling=ae,re=ae);return ee&&Us(H,Qt),Dt}for(bt=u(bt);!ae.done;Qt++,ae=Y.next())ae=J(bt,H,Qt,ae.value,at),ae!==null&&(i&&ae.alternate!==null&&bt.delete(ae.key===null?Qt:ae.key),B=p(ae,B,Qt),re===null?Dt=ae:re.sibling=ae,re=ae);return i&&bt.forEach(function($E){return r(H,$E)}),ee&&Us(H,Qt),Dt}function ge(H,B,Y,at){if(typeof Y=="object"&&Y!==null&&Y.type===j&&Y.key===null&&(Y=Y.props.children),typeof Y=="object"&&Y!==null){switch(Y.$$typeof){case R:t:{for(var Dt=Y.key;B!==null;){if(B.key===Dt){if(Dt=Y.type,Dt===j){if(B.tag===7){o(H,B.sibling),at=d(B,Y.props.children),at.return=H,H=at;break t}}else if(B.elementType===Dt||typeof Dt=="object"&&Dt!==null&&Dt.$$typeof===C&&Ba(Dt)===B.type){o(H,B.sibling),at=d(B,Y.props),fu(at,Y),at.return=H,H=at;break t}o(H,B);break}else r(H,B);B=B.sibling}Y.type===j?(at=Ma(Y.props.children,H.mode,at,Y.key),at.return=H,H=at):(at=A1(Y.type,Y.key,Y.props,null,H.mode,at),fu(at,Y),at.return=H,H=at)}return E(H);case N:t:{for(Dt=Y.key;B!==null;){if(B.key===Dt)if(B.tag===4&&B.stateNode.containerInfo===Y.containerInfo&&B.stateNode.implementation===Y.implementation){o(H,B.sibling),at=d(B,Y.children||[]),at.return=H,H=at;break t}else{o(H,B);break}else r(H,B);B=B.sibling}at=pd(Y,H.mode,at),at.return=H,H=at}return E(H);case C:return Y=Ba(Y),ge(H,B,Y,at)}if(Ut(Y))return St(H,B,Y,at);if(U(Y)){if(Dt=U(Y),typeof Dt!="function")throw Error(s(150));return Y=Dt.call(Y),Mt(H,B,Y,at)}if(typeof Y.then=="function")return ge(H,B,N1(Y),at);if(Y.$$typeof===Z)return ge(H,B,w1(H,Y),at);D1(H,Y)}return typeof Y=="string"&&Y!==""||typeof Y=="number"||typeof Y=="bigint"?(Y=""+Y,B!==null&&B.tag===6?(o(H,B.sibling),at=d(B,Y),at.return=H,H=at):(o(H,B),at=md(Y,H.mode,at),at.return=H,H=at),E(H)):o(H,B)}return function(H,B,Y,at){try{hu=0;var Dt=ge(H,B,Y,at);return jo=null,Dt}catch(bt){if(bt===ko||bt===C1)throw bt;var re=si(29,bt,null,H.mode);return re.lanes=at,re.return=H,re}finally{}}}var za=Mp(!0),Pp=Mp(!1),br=!1;function Cd(i){i.updateQueue={baseState:i.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Rd(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 Cr(i){return{lane:i,tag:0,payload:null,callback:null,next:null}}function Rr(i,r,o){var u=i.updateQueue;if(u===null)return null;if(u=u.shared,(le&2)!==0){var d=u.pending;return d===null?r.next=r:(r.next=d.next,d.next=r),u.pending=r,r=T1(i),vp(i,null,o),r}return E1(i,u,r,o),T1(i)}function du(i,r,o){if(r=r.updateQueue,r!==null&&(r=r.shared,(o&4194048)!==0)){var u=r.lanes;u&=i.pendingLanes,o|=u,r.lanes=o,Ul(i,o)}}function Nd(i,r){var o=i.updateQueue,u=i.alternate;if(u!==null&&(u=u.updateQueue,o===u)){var d=null,p=null;if(o=o.firstBaseUpdate,o!==null){do{var E={lane:o.lane,tag:o.tag,payload:o.payload,callback:null,next:null};p===null?d=p=E:p=p.next=E,o=o.next}while(o!==null);p===null?d=p=r:p=p.next=r}else d=p=r;o={baseState:u.baseState,firstBaseUpdate:d,lastBaseUpdate:p,shared:u.shared,callbacks:u.callbacks},i.updateQueue=o;return}i=o.lastBaseUpdate,i===null?o.firstBaseUpdate=r:i.next=r,o.lastBaseUpdate=r}var Dd=!1;function mu(){if(Dd){var i=Lo;if(i!==null)throw i}}function pu(i,r,o,u){Dd=!1;var d=i.updateQueue;br=!1;var p=d.firstBaseUpdate,E=d.lastBaseUpdate,S=d.shared.pending;if(S!==null){d.shared.pending=null;var L=S,Q=L.next;L.next=null,E===null?p=Q:E.next=Q,E=L;var st=i.alternate;st!==null&&(st=st.updateQueue,S=st.lastBaseUpdate,S!==E&&(S===null?st.firstBaseUpdate=Q:S.next=Q,st.lastBaseUpdate=L))}if(p!==null){var ut=d.baseState;E=0,st=Q=L=null,S=p;do{var K=S.lane&-536870913,J=K!==S.lane;if(J?(Jt&K)===K:(u&K)===K){K!==0&&K===Po&&(Dd=!0),st!==null&&(st=st.next={lane:0,tag:S.tag,payload:S.payload,callback:null,next:null});t:{var St=i,Mt=S;K=r;var ge=o;switch(Mt.tag){case 1:if(St=Mt.payload,typeof St=="function"){ut=St.call(ge,ut,K);break t}ut=St;break t;case 3:St.flags=St.flags&-65537|128;case 0:if(St=Mt.payload,K=typeof St=="function"?St.call(ge,ut,K):St,K==null)break t;ut=_({},ut,K);break t;case 2:br=!0}}K=S.callback,K!==null&&(i.flags|=64,J&&(i.flags|=8192),J=d.callbacks,J===null?d.callbacks=[K]:J.push(K))}else J={lane:K,tag:S.tag,payload:S.payload,callback:S.callback,next:null},st===null?(Q=st=J,L=ut):st=st.next=J,E|=K;if(S=S.next,S===null){if(S=d.shared.pending,S===null)break;J=S,S=J.next,J.next=null,d.lastBaseUpdate=J,d.shared.pending=null}}while(!0);st===null&&(L=ut),d.baseState=L,d.firstBaseUpdate=Q,d.lastBaseUpdate=st,p===null&&(d.shared.lanes=0),Or|=E,i.lanes=E,i.memoizedState=ut}}function Lp(i,r){if(typeof i!="function")throw Error(s(191,i));i.call(r)}function kp(i,r){var o=i.callbacks;
vendor: 6,696 bytes, line 48
48if(o!==null)for(i.callbacks=null,i=0;i<o.length;i++)Lp(o[i],r)}var Bo=k(null),V1=k(0);function jp(i,r){i=Ws,gt(V1,i),gt(Bo,r),Ws=i|r.baseLanes}function Vd(){gt(V1,Ws),gt(Bo,Bo.current)}function Id(){Ws=V1.current,rt(Bo),rt(V1)}var ri=k(null),wi=null;function Nr(i){var r=i.alternate;gt(Le,Le.current&1),gt(ri,i),wi===null&&(r===null||Bo.current!==null||r.memoizedState!==null)&&(wi=i)}function Od(i){gt(Le,Le.current),gt(ri,i),wi===null&&(wi=i)}function Bp(i){i.tag===22?(gt(Le,Le.current),gt(ri,i),wi===null&&(wi=i)):Dr()}function Dr(){gt(Le,Le.current),gt(ri,ri.current)}function ai(i){rt(ri),wi===i&&(wi=null),rt(Le)}var Le=k(0);function I1(i){for(var r=i;r!==null;){if(r.tag===13){var o=r.memoizedState;if(o!==null&&(o=o.dehydrated,o===null||B2(o)||U2(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 Hs=0,Gt=null,me=null,Ke=null,O1=!1,Uo=!1,Fa=!1,M1=0,gu=0,zo=null,B_=0;function Ve(){throw Error(s(321))}function Md(i,r){if(r===null)return!1;for(var o=0;o<r.length&&o<i.length;o++)if(!ii(i[o],r[o]))return!1;return!0}function Pd(i,r,o,u,d,p){return Hs=p,Gt=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,W.H=i===null||i.memoizedState===null?A4:Xd,Fa=!1,p=o(u,d),Fa=!1,Uo&&(p=zp(r,o,u,d)),Up(i),p}function Up(i){W.H=_u;var r=me!==null&&me.next!==null;if(Hs=0,Ke=me=Gt=null,O1=!1,gu=0,zo=null,r)throw Error(s(300));i===null||$e||(i=i.dependencies,i!==null&&S1(i)&&($e=!0))}function zp(i,r,o,u){Gt=i;var d=0;do{if(Uo&&(zo=null),gu=0,Uo=!1,25<=d)throw Error(s(301));if(d+=1,Ke=me=null,i.updateQueue!=null){var p=i.updateQueue;p.lastEffect=null,p.events=null,p.stores=null,p.memoCache!=null&&(p.memoCache.index=0)}W.H=x4,p=r(o,u)}while(Uo);return p}function U_(){var i=W.H,r=i.useState()[0];return r=typeof r.then=="function"?yu(r):r,i=i.useState()[0],(me!==null?me.memoizedState:null)!==i&&(Gt.flags|=1024),r}function Ld(){var i=M1!==0;return M1=0,i}function kd(i,r,o){r.updateQueue=i.updateQueue,r.flags&=-2053,i.lanes&=~o}function jd(i){if(O1){for(i=i.memoizedState;i!==null;){var r=i.queue;r!==null&&(r.pending=null),i=i.next}O1=!1}Hs=0,Ke=me=Gt=null,Uo=!1,gu=M1=0,zo=null}function kn(){var i={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Ke===null?Gt.memoizedState=Ke=i:Ke=Ke.next=i,Ke}function ke(){if(me===null){var i=Gt.alternate;i=i!==null?i.memoizedState:null}else i=me.next;var r=Ke===null?Gt.memoizedState:Ke.next;if(r!==null)Ke=r,me=i;else{if(i===null)throw Gt.alternate===null?Error(s(467)):Error(s(310));me=i,i={memoizedState:me.memoizedState,baseState:me.baseState,baseQueue:me.baseQueue,queue:me.queue,next:null},Ke===null?Gt.memoizedState=Ke=i:Ke=Ke.next=i}return Ke}function P1(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function yu(i){var r=gu;return gu+=1,zo===null&&(zo=[]),i=Vp(zo,i,r),r=Gt,(Ke===null?r.memoizedState:Ke.next)===null&&(r=r.alternate,W.H=r===null||r.memoizedState===null?A4:Xd),i}function L1(i){if(i!==null&&typeof i=="object"){if(typeof i.then=="function")return yu(i);if(i.$$typeof===Z)return _n(i)}throw Error(s(438,String(i)))}function Bd(i){var r=null,o=Gt.updateQueue;if(o!==null&&(r=o.memoCache),r==null){var u=Gt.alternate;u!==null&&(u=u.updateQueue,u!==null&&(u=u.memoCache,u!=null&&(r={data:u.data.map(function(d){return d.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),o===null&&(o=P1(),Gt.updateQueue=o),o.memoCache=r,o=r.data[r.index],o===void 0)for(o=r.data[r.index]=Array(i),u=0;u<i;u++)o[u]=M;return r.index++,o}function qs(i,r){return typeof r=="function"?r(i):r}function k1(i){var r=ke();return Ud(r,me,i)}function Ud(i,r,o){var u=i.queue;if(u===null)throw Error(s(311));u.lastRenderedReducer=o;var d=i.baseQueue,p=u.pending;if(p!==null){if(d!==null){var E=d.next;d.next=p.next,p.next=E}r.baseQueue=d=p,u.pending=null}if(p=i.baseState,d===null)i.memoizedState=p;else{r=d.next;var S=E=null,L=null,Q=r,st=!1;do{var ut=Q.lane&-536870913;if(ut!==Q.lane?(Jt&ut)===ut:(Hs&ut)===ut){var K=Q.revertLane;if(K===0)L!==null&&(L=L.next={lane:0,revertLane:0,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null}),ut===Po&&(st=!0);else if((Hs&K)===K){Q=Q.next,K===Po&&(st=!0);continue}else ut={lane:0,revertLane:Q.revertLane,gesture:null,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},L===null?(S=L=ut,E=p):L=L.next=ut,Gt.lanes|=K,Or|=K;ut=Q.action,Fa&&o(p,ut),p=Q.hasEagerState?Q.eagerState:o(p,ut)}else K={lane:ut,revertLane:Q.revertLane,gesture:Q.gesture,action:Q.action,hasEagerState:Q.hasEagerState,eagerState:Q.eagerState,next:null},L===null?(S=L=K,E=p):L=L.next=K,Gt.lanes|=ut,Or|=ut;Q=Q.next}while(Q!==null&&Q!==r);if(L===null?E=p:L.next=S,!ii(p,i.memoizedState)&&($e=!0,st&&(o=Lo,o!==null)))throw o;i.memoizedState=p,i.baseState=E,i.baseQueue=L,u.lastRenderedState=p}return d===null&&(u.lanes=0),[i.memoizedState,u.dispatch]}function zd(i){var r=ke(),o=r.queue;if(o===null)throw Error(s(311));o.lastRenderedReducer=i;var u=o.dispatch,d=o.pending,p=r.memoizedState;if(d!==null){o.pending=null;var E=d=d.next;do p=i(p,E.action),E=E.next;while(E!==d);ii(p,r.memoizedState)||($e=!0),r.memoizedState=p,r.baseQueue===null&&(r.baseState=p),o.lastRenderedState=p}return[p,u]}function Fp(i,r,o){var u=Gt,d=ke(),p=ee;if(p){if(o===void 0)throw Error(s(407));o=o()}else o=r();var E=!ii((me||d).memoizedState,o);if(E&&(d.memoizedState=o,$e=!0),d=d.queue,qd(Gp.bind(null,u,d,i),[i]),d.getSnapshot!==r||E||Ke!==null&&Ke.memoizedState.tag&1){if(u.flags|=2048,Fo(9,{destroy:void 0},qp.bind(null,u,d,o,r),null),_e===null)throw Error(s(349));p||(Hs&127)!==0||Hp(u,r,o)}return o}function Hp(i,r,o){i.flags|=16384,i={getSnapshot:r,value:o},r=Gt.updateQueue,r===null?(r=P1(),Gt.updateQueue=r,r.stores=[i]):(o=r.stores,o===null?r.stores=[i]:o.push(i))}function qp(i,r,o,u){r.value=o,r.getSnapshot=u,Yp(r)&&Qp(i)}function Gp(i,r,o){return o(function(){Yp(r)&&Qp(i)})}function Yp(i){var r=i.getSnapshot;i=i.value;try{var o=r();return!ii(i,o)}catch{return!0}}function Qp(i){var r=Oa(i,2);r!==null&&Kn(r,i,2)}function Fd(i){var r=kn();if(typeof i=="function"){var o=i;if(i=o(),Fa){pi(!0);try{o()}finally{pi(!1)}}}return r.memoizedState=r.baseState=i,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qs,lastRenderedState:i},r}function Kp(i,r,o,u){return i.baseState=o,Ud(i,me,typeof u=="function"?u:qs)}
vendor: 11,739 bytes, line 48
48function z_(i,r,o,u,d){if(U1(i))throw Error(s(485));if(i=r.action,i!==null){var p={payload:d,action:i,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(E){p.listeners.push(E)}};W.T!==null?o(!0):p.isTransition=!1,u(p),o=r.pending,o===null?(p.next=r.pending=p,$p(r,p)):(p.next=o.next,r.pending=o.next=p)}}function $p(i,r){var o=r.action,u=r.payload,d=i.state;if(r.isTransition){var p=W.T,E={};W.T=E;try{var S=o(d,u),L=W.S;L!==null&&L(E,S),Xp(i,r,S)}catch(Q){Hd(i,r,Q)}finally{p!==null&&E.types!==null&&(p.types=E.types),W.T=p}}else try{p=o(d,u),Xp(i,r,p)}catch(Q){Hd(i,r,Q)}}function Xp(i,r,o){o!==null&&typeof o=="object"&&typeof o.then=="function"?o.then(function(u){Wp(i,r,u)},function(u){return Hd(i,r,u)}):Wp(i,r,o)}function Wp(i,r,o){r.status="fulfilled",r.value=o,Zp(r),i.state=o,r=i.pending,r!==null&&(o=r.next,o===r?i.pending=null:(o=o.next,r.next=o,$p(i,o)))}function Hd(i,r,o){var u=i.pending;if(i.pending=null,u!==null){u=u.next;do r.status="rejected",r.reason=o,Zp(r),r=r.next;while(r!==u)}i.action=null}function Zp(i){i=i.listeners;for(var r=0;r<i.length;r++)(0,i[r])()}function Jp(i,r){return r}function t4(i,r){if(ee){var o=_e.formState;if(o!==null){t:{var u=Gt;if(ee){if(Ae){e:{for(var d=Ae,p=Si;d.nodeType!==8;){if(!p){d=null;break e}if(d=bi(d.nextSibling),d===null){d=null;break e}}p=d.data,d=p==="F!"||p==="F"?d:null}if(d){Ae=bi(d.nextSibling),u=d.data==="F!";break t}}Sr(u)}u=!1}u&&(r=o[0])}}return o=kn(),o.memoizedState=o.baseState=r,u={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Jp,lastRenderedState:r},o.queue=u,o=_4.bind(null,Gt,u),u.dispatch=o,u=Fd(!1),p=$d.bind(null,Gt,!1,u.queue),u=kn(),d={state:r,dispatch:null,action:i,pending:null},u.queue=d,o=z_.bind(null,Gt,d,p,o),d.dispatch=o,u.memoizedState=i,[r,o,!1]}function e4(i){var r=ke();return n4(r,me,i)}function n4(i,r,o){if(r=Ud(i,r,Jp)[0],i=k1(qs)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var u=yu(r)}catch(E){throw E===ko?C1:E}else u=r;r=ke();var d=r.queue,p=d.dispatch;return o!==r.memoizedState&&(Gt.flags|=2048,Fo(9,{destroy:void 0},F_.bind(null,d,o),null)),[u,p,i]}function F_(i,r){i.action=r}function i4(i){var r=ke(),o=me;if(o!==null)return n4(r,o,i);ke(),r=r.memoizedState,o=ke();var u=o.queue.dispatch;return o.memoizedState=i,[r,u,!1]}function Fo(i,r,o,u){return i={tag:i,create:o,deps:u,inst:r,next:null},r=Gt.updateQueue,r===null&&(r=P1(),Gt.updateQueue=r),o=r.lastEffect,o===null?r.lastEffect=i.next=i:(u=o.next,o.next=i,i.next=u,r.lastEffect=i),i}function s4(){return ke().memoizedState}function j1(i,r,o,u){var d=kn();Gt.flags|=i,d.memoizedState=Fo(1|r,{destroy:void 0},o,u===void 0?null:u)}function B1(i,r,o,u){var d=ke();u=u===void 0?null:u;var p=d.memoizedState.inst;me!==null&&u!==null&&Md(u,me.memoizedState.deps)?d.memoizedState=Fo(r,p,o,u):(Gt.flags|=i,d.memoizedState=Fo(1|r,p,o,u))}function r4(i,r){j1(8390656,8,i,r)}function qd(i,r){B1(2048,8,i,r)}function H_(i){Gt.flags|=4;var r=Gt.updateQueue;if(r===null)r=P1(),Gt.updateQueue=r,r.events=[i];else{var o=r.events;o===null?r.events=[i]:o.push(i)}}function a4(i){var r=ke().memoizedState;return H_({ref:r,nextImpl:i}),function(){if((le&2)!==0)throw Error(s(440));return r.impl.apply(void 0,arguments)}}function o4(i,r){return B1(4,2,i,r)}function l4(i,r){return B1(4,4,i,r)}function u4(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 c4(i,r,o){o=o!=null?o.concat([i]):null,B1(4,4,u4.bind(null,r,i),o)}function Gd(){}function h4(i,r){var o=ke();r=r===void 0?null:r;var u=o.memoizedState;return r!==null&&Md(r,u[1])?u[0]:(o.memoizedState=[i,r],i)}function f4(i,r){var o=ke();r=r===void 0?null:r;var u=o.memoizedState;if(r!==null&&Md(r,u[1]))return u[0];if(u=i(),Fa){pi(!0);try{i()}finally{pi(!1)}}return o.memoizedState=[u,r],u}function Yd(i,r,o){return o===void 0||(Hs&1073741824)!==0&&(Jt&261930)===0?i.memoizedState=r:(i.memoizedState=o,i=d7(),Gt.lanes|=i,Or|=i,o)}function d4(i,r,o,u){return ii(o,r)?o:Bo.current!==null?(i=Yd(i,o,u),ii(i,r)||($e=!0),i):(Hs&42)===0||(Hs&1073741824)!==0&&(Jt&261930)===0?($e=!0,i.memoizedState=o):(i=d7(),Gt.lanes|=i,Or|=i,r)}function m4(i,r,o,u,d){var p=mt.p;mt.p=p!==0&&8>p?p:8;var E=W.T,S={};W.T=S,$d(i,!1,r,o);try{var L=d(),Q=W.S;if(Q!==null&&Q(S,L),L!==null&&typeof L=="object"&&typeof L.then=="function"){var st=j_(L,u);vu(i,r,st,ui(i))}else vu(i,r,u,ui(i))}catch(ut){vu(i,r,{then:function(){},status:"rejected",reason:ut},ui())}finally{mt.p=p,E!==null&&S.types!==null&&(E.types=S.types),W.T=E}}function q_(){}function Qd(i,r,o,u){if(i.tag!==5)throw Error(s(476));var d=p4(i).queue;m4(i,d,r,dt,o===null?q_:function(){return g4(i),o(u)})}function p4(i){var r=i.memoizedState;if(r!==null)return r;r={memoizedState:dt,baseState:dt,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qs,lastRenderedState:dt},next:null};var o={};return r.next={memoizedState:o,baseState:o,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qs,lastRenderedState:o},next:null},i.memoizedState=r,i=i.alternate,i!==null&&(i.memoizedState=r),r}function g4(i){var r=p4(i);r.next===null&&(r=i.alternate.memoizedState),vu(i,r.next.queue,{},ui())}function Kd(){return _n(Pu)}function y4(){return ke().memoizedState}function v4(){return ke().memoizedState}function G_(i){for(var r=i.return;r!==null;){switch(r.tag){case 24:case 3:var o=ui();i=Cr(o);var u=Rr(r,i,o);u!==null&&(Kn(u,r,o),du(u,r,o)),r={cache:xd()},i.payload=r;return}r=r.return}}function Y_(i,r,o){var u=ui();o={lane:u,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null},U1(i)?E4(r,o):(o=fd(i,r,o,u),o!==null&&(Kn(o,i,u),T4(o,r,u)))}function _4(i,r,o){var u=ui();vu(i,r,o,u)}function vu(i,r,o,u){var d={lane:u,revertLane:0,gesture:null,action:o,hasEagerState:!1,eagerState:null,next:null};if(U1(i))E4(r,d);else{var p=i.alternate;if(i.lanes===0&&(p===null||p.lanes===0)&&(p=r.lastRenderedReducer,p!==null))try{var E=r.lastRenderedState,S=p(E,o);if(d.hasEagerState=!0,d.eagerState=S,ii(S,E))return E1(i,r,d,0),_e===null&&_1(),!1}catch{}finally{}if(o=fd(i,r,d,u),o!==null)return Kn(o,i,u),T4(o,r,u),!0}return!1}function $d(i,r,o,u){if(u={lane:2,revertLane:C2(),gesture:null,action:u,hasEagerState:!1,eagerState:null,next:null},U1(i)){if(r)throw Error(s(479))}else r=fd(i,o,u,2),r!==null&&Kn(r,i,2)}function U1(i){var r=i.alternate;return i===Gt||r!==null&&r===Gt}function E4(i,r){Uo=O1=!0;var o=i.pending;o===null?r.next=r:(r.next=o.next,o.next=r),i.pending=r}function T4(i,r,o){if((o&4194048)!==0){var u=r.lanes;u&=i.pendingLanes,o|=u,r.lanes=o,Ul(i,o)}}var _u={readContext:_n,use:L1,useCallback:Ve,useContext:Ve,useEffect:Ve,useImperativeHandle:Ve,useLayoutEffect:Ve,useInsertionEffect:Ve,useMemo:Ve,useReducer:Ve,useRef:Ve,useState:Ve,useDebugValue:Ve,useDeferredValue:Ve,useTransition:Ve,useSyncExternalStore:Ve,useId:Ve,useHostTransitionStatus:Ve,useFormState:Ve,useActionState:Ve,useOptimistic:Ve,useMemoCache:Ve,useCacheRefresh:Ve};_u.useEffectEvent=Ve;var A4={readContext:_n,use:L1,useCallback:function(i,r){return kn().memoizedState=[i,r===void 0?null:r],i},useContext:_n,useEffect:r4,useImperativeHandle:function(i,r,o){o=o!=null?o.concat([i]):null,j1(4194308,4,u4.bind(null,r,i),o)},useLayoutEffect:function(i,r){return j1(4194308,4,i,r)},useInsertionEffect:function(i,r){j1(4,2,i,r)},useMemo:function(i,r){var o=kn();r=r===void 0?null:r;var u=i();if(Fa){pi(!0);try{i()}finally{pi(!1)}}return o.memoizedState=[u,r],u},useReducer:function(i,r,o){var u=kn();if(o!==void 0){var d=o(r);if(Fa){pi(!0);try{o(r)}finally{pi(!1)}}}else d=r;return u.memoizedState=u.baseState=d,i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:i,lastRenderedState:d},u.queue=i,i=i.dispatch=Y_.bind(null,Gt,i),[u.memoizedState,i]},useRef:function(i){var r=kn();return i={current:i},r.memoizedState=i},useState:function(i){i=Fd(i);var r=i.queue,o=_4.bind(null,Gt,r);return r.dispatch=o,[i.memoizedState,o]},useDebugValue:Gd,useDeferredValue:function(i,r){var o=kn();return Yd(o,i,r)},useTransition:function(){var i=Fd(!1);return i=m4.bind(null,Gt,i.queue,!0,!1),kn().memoizedState=i,[!1,i]},useSyncExternalStore:function(i,r,o){var u=Gt,d=kn();if(ee){if(o===void 0)throw Error(s(407));o=o()}else{if(o=r(),_e===null)throw Error(s(349));(Jt&127)!==0||Hp(u,r,o)}d.memoizedState=o;var p={value:o,getSnapshot:r};return d.queue=p,r4(Gp.bind(null,u,p,i),[i]),u.flags|=2048,Fo(9,{destroy:void 0},qp.bind(null,u,p,o,r),null),o},useId:function(){var i=kn(),r=_e.identifierPrefix;if(ee){var o=_s,u=vs;o=(u&~(1<<32-Me(u)-1)).toString(32)+o,r="_"+r+"R_"+o,o=M1++,0<o&&(r+="H"+o.toString(32)),r+="_"}else o=B_++,r="_"+r+"r_"+o.toString(32)+"_";return i.memoizedState=r},useHostTransitionStatus:Kd,useFormState:t4,useActionState:t4,useOptimistic:function(i){var r=kn();r.memoizedState=r.baseState=i;var o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=o,r=$d.bind(null,Gt,!0,o),o.dispatch=r,[i,r]},useMemoCache:Bd,useCacheRefresh:function(){return kn().memoizedState=G_.bind(null,Gt)},useEffectEvent:function(i){var r=kn(),o={impl:i};return r.memoizedState=o,function(){if((le&2)!==0)throw Error(s(440));return o.impl.apply(void 0,arguments)}}},Xd={readContext:_n,use:L1,useCallback:h4,useContext:_n,useEffect:qd,useImperativeHandle:c4,useInsertionEffect:o4,useLayoutEffect:l4,useMemo:f4,useReducer:k1,useRef:s4,useState:function(){return k1(qs)},useDebugValue:Gd,useDeferredValue:function(i,r){var o=ke();return d4(o,me.memoizedState,i,r)},useTransition:function(){var i=k1(qs)[0],r=ke().memoizedState;return[typeof i=="boolean"?i:yu(i),r]},useSyncExternalStore:Fp,useId:y4,useHostTransitionStatus:Kd,useFormState:e4,useActionState:e4,useOptimistic:function(i,r){var o=ke();return Kp(o,me,i,r)},useMemoCache:Bd,useCacheRefresh:v4};Xd.useEffectEvent=a4;var x4={readContext:_n,use:L1,useCallback:h4,useContext:_n,useEffect:qd,useImperativeHandle:c4,useInsertionEffect:o4,useLayoutEffect:l4,useMemo:f4,useReducer:zd,useRef:s4,useState:function(){return zd(qs)},useDebugValue:Gd,useDeferredValue:function(i,r){var o=ke();return me===null?Yd(o,i,r):d4(o,me.memoizedState,i,r)},useTransition:function(){var i=zd(qs)[0],r=ke().memoizedState;return[typeof i=="boolean"?i:yu(i),r]},useSyncExternalStore:Fp,useId:y4,useHostTransitionStatus:Kd,useFormState:i4,useActionState:i4,useOptimistic:function(i,r){var o=ke();return me!==null?Kp(o,me,i,r):(o.baseState=i,[i,o.queue.dispatch])},useMemoCache:Bd,useCacheRefresh:v4};x4.useEffectEvent=a4;function Wd(i,r,o,u){r=i.memoizedState,o=o(u,r),o=o==null?r:_({},r,o),i.memoizedState=o,i.lanes===0&&(i.updateQueue.baseState=o)}var Zd={enqueueSetState:function(i,r,o){i=i._reactInternals;var u=ui(),d=Cr(u);d.payload=r,o!=null&&(d.callback=o),r=Rr(i,d,u),r!==null&&(Kn(r,i,u),du(r,i,u))},enqueueReplaceState:function(i,r,o){i=i._reactInternals;var u=ui(),d=Cr(u);d.tag=1,d.payload=r,o!=null&&(d.callback=o),r=Rr(i,d,u),r!==null&&(Kn(r,i,u),du(r,i,u))},enqueueForceUpdate:function(i,r){i=i._reactInternals;var o=ui(),u=Cr(o);u.tag=2,r!=null&&(u.callback=r),r=Rr(i,u,o),r!==null&&(Kn(r,i,o),du(r,i,o))}};function S4(i,r,o,u,d,p,E){return i=i.stateNode,typeof i.shouldComponentUpdate=="function"?i.shouldComponentUpdate(u,p,E):r.prototype&&r.prototype.isPureReactComponent?!ru(o,u)||!ru(d,p):!0}function w4(i,r,o,u){i=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(o,u),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(o,u),r.state!==i&&Zd.enqueueReplaceState(r,r.state,null)}function Ha(i,r){var o=r;if("ref"in r){o={};for(var u in r)u!=="ref"&&(o[u]=r[u])}if(i=i.defaultProps){o===r&&(o=_({},o));
vendor: 13,034 bytes, line 48
48for(var d in i)o[d]===void 0&&(o[d]=i[d])}return o}function b4(i){v1(i)}function C4(i){console.error(i)}function R4(i){v1(i)}function z1(i,r){try{var o=i.onUncaughtError;o(r.value,{componentStack:r.stack})}catch(u){setTimeout(function(){throw u})}}function N4(i,r,o){try{var u=i.onCaughtError;u(o.value,{componentStack:o.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(d){setTimeout(function(){throw d})}}function Jd(i,r,o){return o=Cr(o),o.tag=3,o.payload={element:null},o.callback=function(){z1(i,r)},o}function D4(i){return i=Cr(i),i.tag=3,i}function V4(i,r,o,u){var d=o.type.getDerivedStateFromError;if(typeof d=="function"){var p=u.value;i.payload=function(){return d(p)},i.callback=function(){N4(r,o,u)}}var E=o.stateNode;E!==null&&typeof E.componentDidCatch=="function"&&(i.callback=function(){N4(r,o,u),typeof d!="function"&&(Mr===null?Mr=new Set([this]):Mr.add(this));var S=u.stack;this.componentDidCatch(u.value,{componentStack:S!==null?S:""})})}function Q_(i,r,o,u,d){if(o.flags|=32768,u!==null&&typeof u=="object"&&typeof u.then=="function"){if(r=o.alternate,r!==null&&Mo(r,o,d,!0),o=ri.current,o!==null){switch(o.tag){case 31:case 13:return wi===null?J1():o.alternate===null&&Ie===0&&(Ie=3),o.flags&=-257,o.flags|=65536,o.lanes=d,u===R1?o.flags|=16384:(r=o.updateQueue,r===null?o.updateQueue=new Set([u]):r.add(u),S2(i,u,d)),!1;case 22:return o.flags|=65536,u===R1?o.flags|=16384:(r=o.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([u])},o.updateQueue=r):(o=r.retryQueue,o===null?r.retryQueue=new Set([u]):o.add(u)),S2(i,u,d)),!1}throw Error(s(435,o.tag))}return S2(i,u,d),J1(),!1}if(ee)return r=ri.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=d,u!==vd&&(i=Error(s(422),{cause:u}),lu(Ti(i,o)))):(u!==vd&&(r=Error(s(423),{cause:u}),lu(Ti(r,o))),i=i.current.alternate,i.flags|=65536,d&=-d,i.lanes|=d,u=Ti(u,o),d=Jd(i.stateNode,u,d),Nd(i,d),Ie!==4&&(Ie=2)),!1;var p=Error(s(520),{cause:u});if(p=Ti(p,o),Cu===null?Cu=[p]:Cu.push(p),Ie!==4&&(Ie=2),r===null)return!0;u=Ti(u,o),o=r;do{switch(o.tag){case 3:return o.flags|=65536,i=d&-d,o.lanes|=i,i=Jd(o.stateNode,u,i),Nd(o,i),!1;case 1:if(r=o.type,p=o.stateNode,(o.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||p!==null&&typeof p.componentDidCatch=="function"&&(Mr===null||!Mr.has(p))))return o.flags|=65536,d&=-d,o.lanes|=d,d=D4(d),V4(d,i,o,u),Nd(o,d),!1}o=o.return}while(o!==null);return!1}var t2=Error(s(461)),$e=!1;function En(i,r,o,u){r.child=i===null?Pp(r,null,o,u):za(r,i.child,o,u)}function I4(i,r,o,u,d){o=o.render;var p=r.ref;if("ref"in u){var E={};for(var S in u)S!=="ref"&&(E[S]=u[S])}else E=u;return ka(r),u=Pd(i,r,o,E,p,d),S=Ld(),i!==null&&!$e?(kd(i,r,d),Gs(i,r,d)):(ee&&S&&gd(r),r.flags|=1,En(i,r,u,d),r.child)}function O4(i,r,o,u,d){if(i===null){var p=o.type;return typeof p=="function"&&!dd(p)&&p.defaultProps===void 0&&o.compare===null?(r.tag=15,r.type=p,M4(i,r,p,u,d)):(i=A1(o.type,null,u,r,r.mode,d),i.ref=r.ref,i.return=r,r.child=i)}if(p=i.child,!l2(i,d)){var E=p.memoizedProps;if(o=o.compare,o=o!==null?o:ru,o(E,u)&&i.ref===r.ref)return Gs(i,r,d)}return r.flags|=1,i=Bs(p,u),i.ref=r.ref,i.return=r,r.child=i}function M4(i,r,o,u,d){if(i!==null){var p=i.memoizedProps;if(ru(p,u)&&i.ref===r.ref)if($e=!1,r.pendingProps=u=p,l2(i,d))(i.flags&131072)!==0&&($e=!0);else return r.lanes=i.lanes,Gs(i,r,d)}return e2(i,r,o,u,d)}function P4(i,r,o,u){var d=u.children,p=i!==null?i.memoizedState:null;if(i===null&&r.stateNode===null&&(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),u.mode==="hidden"){if((r.flags&128)!==0){if(p=p!==null?p.baseLanes|o:o,i!==null){for(u=r.child=i.child,d=0;u!==null;)d=d|u.lanes|u.childLanes,u=u.sibling;u=d&~p}else u=0,r.child=null;return L4(i,r,p,o,u)}if((o&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},i!==null&&b1(r,p!==null?p.cachePool:null),p!==null?jp(r,p):Vd(),Bp(r);else return u=r.lanes=536870912,L4(i,r,p!==null?p.baseLanes|o:o,o,u)}else p!==null?(b1(r,p.cachePool),jp(r,p),Dr(),r.memoizedState=null):(i!==null&&b1(r,null),Vd(),Dr());return En(i,r,d,o),r.child}function Eu(i,r){return i!==null&&i.tag===22||r.stateNode!==null||(r.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.sibling}function L4(i,r,o,u,d){var p=wd();return p=p===null?null:{parent:Qe._currentValue,pool:p},r.memoizedState={baseLanes:o,cachePool:p},i!==null&&b1(r,null),Vd(),Bp(r),i!==null&&Mo(i,r,u,!0),r.childLanes=d,null}function F1(i,r){return r=q1({mode:r.mode,children:r.children},i.mode),r.ref=i.ref,i.child=r,r.return=i,r}function k4(i,r,o){return za(r,i.child,null,o),i=F1(r,r.pendingProps),i.flags|=2,ai(r),r.memoizedState=null,i}function K_(i,r,o){var u=r.pendingProps,d=(r.flags&128)!==0;if(r.flags&=-129,i===null){if(ee){if(u.mode==="hidden")return i=F1(r,u),r.lanes=536870912,Eu(null,i);if(Od(r),(i=Ae)?(i=$7(i,Si),i=i!==null&&i.data==="&"?i:null,i!==null&&(r.memoizedState={dehydrated:i,treeContext:Ar!==null?{id:vs,overflow:_s}:null,retryLane:536870912,hydrationErrors:null},o=Ep(i),o.return=r,r.child=o,vn=r,Ae=null)):i=null,i===null)throw Sr(r);return r.lanes=536870912,null}return F1(r,u)}var p=i.memoizedState;if(p!==null){var E=p.dehydrated;if(Od(r),d)if(r.flags&256)r.flags&=-257,r=k4(i,r,o);else if(r.memoizedState!==null)r.child=i.child,r.flags|=128,r=null;else throw Error(s(558));else if($e||Mo(i,r,o,!1),d=(o&i.childLanes)!==0,$e||d){if(u=_e,u!==null&&(E=zl(u,o),E!==0&&E!==p.retryLane))throw p.retryLane=E,Oa(i,E),Kn(u,i,E),t2;J1(),r=k4(i,r,o)}else i=p.treeContext,Ae=bi(E.nextSibling),vn=r,ee=!0,xr=null,Si=!1,i!==null&&xp(r,i),r=F1(r,u),r.flags|=4096;return r}return i=Bs(i.child,{mode:u.mode,children:u.children}),i.ref=r.ref,r.child=i,i.return=r,i}function H1(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 e2(i,r,o,u,d){return ka(r),o=Pd(i,r,o,u,void 0,d),u=Ld(),i!==null&&!$e?(kd(i,r,d),Gs(i,r,d)):(ee&&u&&gd(r),r.flags|=1,En(i,r,o,d),r.child)}function j4(i,r,o,u,d,p){return ka(r),r.updateQueue=null,o=zp(r,u,o,d),Up(i),u=Ld(),i!==null&&!$e?(kd(i,r,p),Gs(i,r,p)):(ee&&u&&gd(r),r.flags|=1,En(i,r,o,p),r.child)}function B4(i,r,o,u,d){if(ka(r),r.stateNode===null){var p=Do,E=o.contextType;typeof E=="object"&&E!==null&&(p=_n(E)),p=new o(u,p),r.memoizedState=p.state!==null&&p.state!==void 0?p.state:null,p.updater=Zd,r.stateNode=p,p._reactInternals=r,p=r.stateNode,p.props=u,p.state=r.memoizedState,p.refs={},Cd(r),E=o.contextType,p.context=typeof E=="object"&&E!==null?_n(E):Do,p.state=r.memoizedState,E=o.getDerivedStateFromProps,typeof E=="function"&&(Wd(r,o,E,u),p.state=r.memoizedState),typeof o.getDerivedStateFromProps=="function"||typeof p.getSnapshotBeforeUpdate=="function"||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(E=p.state,typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount(),E!==p.state&&Zd.enqueueReplaceState(p,p.state,null),pu(r,u,p,d),mu(),p.state=r.memoizedState),typeof p.componentDidMount=="function"&&(r.flags|=4194308),u=!0}else if(i===null){p=r.stateNode;var S=r.memoizedProps,L=Ha(o,S);p.props=L;var Q=p.context,st=o.contextType;E=Do,typeof st=="object"&&st!==null&&(E=_n(st));var ut=o.getDerivedStateFromProps;st=typeof ut=="function"||typeof p.getSnapshotBeforeUpdate=="function",S=r.pendingProps!==S,st||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(S||Q!==E)&&w4(r,p,u,E),br=!1;var K=r.memoizedState;p.state=K,pu(r,u,p,d),mu(),Q=r.memoizedState,S||K!==Q||br?(typeof ut=="function"&&(Wd(r,o,ut,u),Q=r.memoizedState),(L=br||S4(r,o,L,u,K,Q,E))?(st||typeof p.UNSAFE_componentWillMount!="function"&&typeof p.componentWillMount!="function"||(typeof p.componentWillMount=="function"&&p.componentWillMount(),typeof p.UNSAFE_componentWillMount=="function"&&p.UNSAFE_componentWillMount()),typeof p.componentDidMount=="function"&&(r.flags|=4194308)):(typeof p.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=u,r.memoizedState=Q),p.props=u,p.state=Q,p.context=E,u=L):(typeof p.componentDidMount=="function"&&(r.flags|=4194308),u=!1)}else{p=r.stateNode,Rd(i,r),E=r.memoizedProps,st=Ha(o,E),p.props=st,ut=r.pendingProps,K=p.context,Q=o.contextType,L=Do,typeof Q=="object"&&Q!==null&&(L=_n(Q)),S=o.getDerivedStateFromProps,(Q=typeof S=="function"||typeof p.getSnapshotBeforeUpdate=="function")||typeof p.UNSAFE_componentWillReceiveProps!="function"&&typeof p.componentWillReceiveProps!="function"||(E!==ut||K!==L)&&w4(r,p,u,L),br=!1,K=r.memoizedState,p.state=K,pu(r,u,p,d),mu();var J=r.memoizedState;E!==ut||K!==J||br||i!==null&&i.dependencies!==null&&S1(i.dependencies)?(typeof S=="function"&&(Wd(r,o,S,u),J=r.memoizedState),(st=br||S4(r,o,st,u,K,J,L)||i!==null&&i.dependencies!==null&&S1(i.dependencies))?(Q||typeof p.UNSAFE_componentWillUpdate!="function"&&typeof p.componentWillUpdate!="function"||(typeof p.componentWillUpdate=="function"&&p.componentWillUpdate(u,J,L),typeof p.UNSAFE_componentWillUpdate=="function"&&p.UNSAFE_componentWillUpdate(u,J,L)),typeof p.componentDidUpdate=="function"&&(r.flags|=4),typeof p.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof p.componentDidUpdate!="function"||E===i.memoizedProps&&K===i.memoizedState||(r.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||E===i.memoizedProps&&K===i.memoizedState||(r.flags|=1024),r.memoizedProps=u,r.memoizedState=J),p.props=u,p.state=J,p.context=L,u=st):(typeof p.componentDidUpdate!="function"||E===i.memoizedProps&&K===i.memoizedState||(r.flags|=4),typeof p.getSnapshotBeforeUpdate!="function"||E===i.memoizedProps&&K===i.memoizedState||(r.flags|=1024),u=!1)}return p=u,H1(i,r),u=(r.flags&128)!==0,p||u?(p=r.stateNode,o=u&&typeof o.getDerivedStateFromError!="function"?null:p.render(),r.flags|=1,i!==null&&u?(r.child=za(r,i.child,null,d),r.child=za(r,null,o,d)):En(i,r,o,d),r.memoizedState=p.state,i=r.child):i=Gs(i,r,d),i}function U4(i,r,o,u){return Pa(),r.flags|=256,En(i,r,o,u),r.child}var n2={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function i2(i){return{baseLanes:i,cachePool:Np()}}function s2(i,r,o){return i=i!==null?i.childLanes&~o:0,r&&(i|=li),i}function z4(i,r,o){var u=r.pendingProps,d=!1,p=(r.flags&128)!==0,E;if((E=p)||(E=i!==null&&i.memoizedState===null?!1:(Le.current&2)!==0),E&&(d=!0,r.flags&=-129),E=(r.flags&32)!==0,r.flags&=-33,i===null){if(ee){if(d?Nr(r):Dr(),(i=Ae)?(i=$7(i,Si),i=i!==null&&i.data!=="&"?i:null,i!==null&&(r.memoizedState={dehydrated:i,treeContext:Ar!==null?{id:vs,overflow:_s}:null,retryLane:536870912,hydrationErrors:null},o=Ep(i),o.return=r,r.child=o,vn=r,Ae=null)):i=null,i===null)throw Sr(r);return U2(i)?r.lanes=32:r.lanes=536870912,null}var S=u.children;return u=u.fallback,d?(Dr(),d=r.mode,S=q1({mode:"hidden",children:S},d),u=Ma(u,d,o,null),S.return=r,u.return=r,S.sibling=u,r.child=S,u=r.child,u.memoizedState=i2(o),u.childLanes=s2(i,E,o),r.memoizedState=n2,Eu(null,u)):(Nr(r),r2(r,S))}var L=i.memoizedState;if(L!==null&&(S=L.dehydrated,S!==null)){if(p)r.flags&256?(Nr(r),r.flags&=-257,r=a2(i,r,o)):r.memoizedState!==null?(Dr(),r.child=i.child,r.flags|=128,r=null):(Dr(),S=u.fallback,d=r.mode,u=q1({mode:"visible",children:u.children},d),S=Ma(S,d,o,null),S.flags|=2,u.return=r,S.return=r,u.sibling=S,r.child=u,za(r,i.child,null,o),u=r.child,u.memoizedState=i2(o),u.childLanes=s2(i,E,o),r.memoizedState=n2,r=Eu(null,u));else if(Nr(r),U2(S)){if(E=S.nextSibling&&S.nextSibling.dataset,E)var Q=E.dgst;E=Q,u=Error(s(419)),u.stack="",u.digest=E,lu({value:u,source:null,stack:null}),r=a2(i,r,o)}else if($e||Mo(i,r,o,!1),E=(o&i.childLanes)!==0,$e||E){if(E=_e,E!==null&&(u=zl(E,o),u!==0&&u!==L.retryLane))throw L.retryLane=u,Oa(i,u),Kn(E,i,u),t2;B2(S)||J1(),r=a2(i,r,o)}else B2(S)?(r.flags|=192,r.child=i.child,r=null):(i=L.treeContext,Ae=bi(S.nextSibling),vn=r,ee=!0,xr=null,Si=!1,i!==null&&xp(r,i),r=r2(r,u.children),r.flags|=4096);return r}return d?(Dr(),S=u.fallback,d=r.mode,L=i.child,Q=L.sibling,u=Bs(L,{mode:"hidden",children:u.children}),u.subtreeFlags=L.subtreeFlags&65011712,Q!==null?S=Bs(Q,S):(S=Ma(S,d,o,null),S.flags|=2),S.return=r,u.return=r,u.sibling=S,r.child=u,Eu(null,u),u=r.child,S=i.child.memoizedState,S===null?S=i2(o):(d=S.cachePool,d!==null?(L=Qe._currentValue,d=d.parent!==L?{parent:L,pool:L}:d):d=Np(),S={baseLanes:S.baseLanes|o,cachePool:d}),u.memoizedState=S,u.childLanes=s2(i,E,o),r.memoizedState=n2,Eu(i.child,u)):(Nr(r),o=i.child,i=o.sibling,o=Bs(o,{mode:"visible",children:u.children}),o.return=r,o.sibling=null,i!==null&&(E=r.deletions,E===null?(r.deletions=[i],r.flags|=16):E.push(i)),r.child=o,r.memoizedState=null,o)}function r2(i,r){return r=q1({mode:"visible",children:r},i.mode),r.return=i,i.child=r}function q1(i,r){return i=si(22,i,null,r),i.lanes=0,i}function a2(i,r,o){return za(r,i.child,null,o),i=r2(r,r.pendingProps.children),i.flags|=2,r.memoizedState=null,i}
vendor: 4,254 bytes, line 48
48function F4(i,r,o){i.lanes|=r;var u=i.alternate;u!==null&&(u.lanes|=r),Td(i.return,r,o)}function o2(i,r,o,u,d,p){var E=i.memoizedState;E===null?i.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:u,tail:o,tailMode:d,treeForkCount:p}:(E.isBackwards=r,E.rendering=null,E.renderingStartTime=0,E.last=u,E.tail=o,E.tailMode=d,E.treeForkCount=p)}function H4(i,r,o){var u=r.pendingProps,d=u.revealOrder,p=u.tail;u=u.children;var E=Le.current,S=(E&2)!==0;if(S?(E=E&1|2,r.flags|=128):E&=1,gt(Le,E),En(i,r,u,o),u=ee?ou:0,!S&&i!==null&&(i.flags&128)!==0)t:for(i=r.child;i!==null;){if(i.tag===13)i.memoizedState!==null&&F4(i,o,r);else if(i.tag===19)F4(i,o,r);else if(i.child!==null){i.child.return=i,i=i.child;continue}if(i===r)break t;for(;i.sibling===null;){if(i.return===null||i.return===r)break t;i=i.return}i.sibling.return=i.return,i=i.sibling}switch(d){case"forwards":for(o=r.child,d=null;o!==null;)i=o.alternate,i!==null&&I1(i)===null&&(d=o),o=o.sibling;o=d,o===null?(d=r.child,r.child=null):(d=o.sibling,o.sibling=null),o2(r,!1,d,o,p,u);break;case"backwards":case"unstable_legacy-backwards":for(o=null,d=r.child,r.child=null;d!==null;){if(i=d.alternate,i!==null&&I1(i)===null){r.child=d;break}i=d.sibling,d.sibling=o,o=d,d=i}o2(r,!0,o,null,p,u);break;case"together":o2(r,!1,null,null,void 0,u);break;default:r.memoizedState=null}return r.child}function Gs(i,r,o){if(i!==null&&(r.dependencies=i.dependencies),Or|=r.lanes,(o&r.childLanes)===0)if(i!==null){if(Mo(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=Bs(i,i.pendingProps),r.child=o,o.return=r;i.sibling!==null;)i=i.sibling,o=o.sibling=Bs(i,i.pendingProps),o.return=r;o.sibling=null}return r.child}function l2(i,r){return(i.lanes&r)!==0?!0:(i=i.dependencies,!!(i!==null&&S1(i)))}function $_(i,r,o){switch(r.tag){case 3:Re(r,r.stateNode.containerInfo),wr(r,Qe,i.memoizedState.cache),Pa();break;case 27:case 5:Ii(r);break;case 4:Re(r,r.stateNode.containerInfo);break;case 10:wr(r,r.type,r.memoizedProps.value);break;case 31:if(r.memoizedState!==null)return r.flags|=128,Od(r),null;break;case 13:var u=r.memoizedState;if(u!==null)return u.dehydrated!==null?(Nr(r),r.flags|=128,null):(o&r.child.childLanes)!==0?z4(i,r,o):(Nr(r),i=Gs(i,r,o),i!==null?i.sibling:null);Nr(r);break;case 19:var d=(i.flags&128)!==0;if(u=(o&r.childLanes)!==0,u||(Mo(i,r,o,!1),u=(o&r.childLanes)!==0),d){if(u)return H4(i,r,o);r.flags|=128}if(d=r.memoizedState,d!==null&&(d.rendering=null,d.tail=null,d.lastEffect=null),gt(Le,Le.current),u)break;return null;case 22:return r.lanes=0,P4(i,r,o,r.pendingProps);case 24:wr(r,Qe,i.memoizedState.cache)}return Gs(i,r,o)}function q4(i,r,o){if(i!==null)if(i.memoizedProps!==r.pendingProps)$e=!0;else{if(!l2(i,o)&&(r.flags&128)===0)return $e=!1,$_(i,r,o);$e=(i.flags&131072)!==0}else $e=!1,ee&&(r.flags&1048576)!==0&&Ap(r,ou,r.index);switch(r.lanes=0,r.tag){case 16:t:{var u=r.pendingProps;if(i=Ba(r.elementType),r.type=i,typeof i=="function")dd(i)?(u=Ha(i,u),r.tag=1,r=B4(null,r,i,u,o)):(r.tag=0,r=e2(null,r,i,u,o));else{if(i!=null){var d=i.$$typeof;if(d===nt){r.tag=11,r=I4(null,r,i,u,o);break t}else if(d===I){r.tag=14,r=O4(null,r,i,u,o);break t}}throw r=At(i)||i,Error(s(306,r,""))}}return r;case 0:return e2(i,r,r.type,r.pendingProps,o);case 1:return u=r.type,d=Ha(u,r.pendingProps),B4(i,r,u,d,o);case 3:t:{if(Re(r,r.stateNode.containerInfo),i===null)throw Error(s(387));u=r.pendingProps;var p=r.memoizedState;d=p.element,Rd(i,r),pu(r,u,null,o);var E=r.memoizedState;if(u=E.cache,wr(r,Qe,u),u!==p.cache&&Ad(r,[Qe],o,!0),mu(),u=E.element,p.isDehydrated)if(p={element:u,isDehydrated:!1,cache:E.cache},r.updateQueue.baseState=p,r.memoizedState=p,r.flags&256){r=U4(i,r,u,o);break t}else if(u!==d){d=Ti(Error(s(424)),r),lu(d),r=U4(i,r,u,o);break t}else{switch(i=r.stateNode.containerInfo,i.nodeType){case 9:i=i.body;break;default:i=i.nodeName==="HTML"?i.ownerDocument.body:i}for(Ae=bi(i.firstChild),vn=r,ee=!0,xr=null,Si=!0,o=Pp(r,null,u,o),r.child=o;o;)o.flags=o.flags&-3|4096,o=o.sibling}else{if(Pa(),u===d){r=Gs(i,r,o);break t}En(i,r,u,o)}r=r.child}return r;case 26:return H1(i,r),i===null?(o=eg(r.type,null,r.pendingProps,null))?r.memoizedState=o:ee||(o=r.type,i=r.pen
vendor: 4,687 bytes, line 48
48dingProps,u=ah(Ot.current).createElement(o),u[qe]=r,u[hn]=i,Tn(u,o,i),Ge(u),r.stateNode=u):r.memoizedState=eg(r.type,i.memoizedProps,r.pendingProps,i.memoizedState),null;case 27:return Ii(r),i===null&&ee&&(u=r.stateNode=Z7(r.type,r.pendingProps,Ot.current),vn=r,Si=!0,d=Ae,jr(r.type)?(z2=d,Ae=bi(u.firstChild)):Ae=d),En(i,r,r.pendingProps.children,o),H1(i,r),i===null&&(r.flags|=4194304),r.child;case 5:return i===null&&ee&&((d=u=Ae)&&(u=wE(u,r.type,r.pendingProps,Si),u!==null?(r.stateNode=u,vn=r,Ae=bi(u.firstChild),Si=!1,d=!0):d=!1),d||Sr(r)),Ii(r),d=r.type,p=r.pendingProps,E=i!==null?i.memoizedProps:null,u=p.children,L2(d,p)?u=null:E!==null&&L2(d,E)&&(r.flags|=32),r.memoizedState!==null&&(d=Pd(i,r,U_,null,null,o),Pu._currentValue=d),H1(i,r),En(i,r,u,o),r.child;case 6:return i===null&&ee&&((i=o=Ae)&&(o=bE(o,r.pendingProps,Si),o!==null?(r.stateNode=o,vn=r,Ae=null,i=!0):i=!1),i||Sr(r)),null;case 13:return z4(i,r,o);case 4:return Re(r,r.stateNode.containerInfo),u=r.pendingProps,i===null?r.child=za(r,null,u,o):En(i,r,u,o),r.child;case 11:return I4(i,r,r.type,r.pendingProps,o);case 7:return En(i,r,r.pendingProps,o),r.child;case 8:return En(i,r,r.pendingProps.children,o),r.child;case 12:return En(i,r,r.pendingProps.children,o),r.child;case 10:return u=r.pendingProps,wr(r,r.type,u.value),En(i,r,u.children,o),r.child;case 9:return d=r.type._context,u=r.pendingProps.children,ka(r),d=_n(d),u=u(d),r.flags|=1,En(i,r,u,o),r.child;case 14:return O4(i,r,r.type,r.pendingProps,o);case 15:return M4(i,r,r.type,r.pendingProps,o);case 19:return H4(i,r,o);case 31:return K_(i,r,o);case 22:return P4(i,r,o,r.pendingProps);case 24:return ka(r),u=_n(Qe),i===null?(d=wd(),d===null&&(d=_e,p=xd(),d.pooledCache=p,p.refCount++,p!==null&&(d.pooledCacheLanes|=o),d=p),r.memoizedState={parent:u,cache:d},Cd(r),wr(r,Qe,d)):((i.lanes&o)!==0&&(Rd(i,r),pu(r,null,null,o),mu()),d=i.memoizedState,p=r.memoizedState,d.parent!==u?(d={parent:u,cache:u},r.memoizedState=d,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=d),wr(r,Qe,u)):(u=p.cache,wr(r,Qe,u),u!==d.cache&&Ad(r,[Qe],o,!0))),En(i,r,r.pendingProps.children,o),r.child;case 29:throw r.pendingProps}throw Error(s(156,r.tag))}function Ys(i){i.flags|=4}function u2(i,r,o,u,d){if((r=(i.mode&32)!==0)&&(r=!1),r){if(i.flags|=16777216,(d&335544128)===d)if(i.stateNode.complete)i.flags|=8192;else if(y7())i.flags|=8192;else throw Ua=R1,bd}else i.flags&=-16777217}function G4(i,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)i.flags&=-16777217;else if(i.flags|=16777216,!ag(r))if(y7())i.flags|=8192;else throw Ua=R1,bd}function G1(i,r){r!==null&&(i.flags|=4),i.flags&16384&&(r=i.tag!==22?Wc():536870912,i.lanes|=r,Yo|=r)}function Tu(i,r){if(!ee)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 u=null;o!==null;)o.alternate!==null&&(u=o),o=o.sibling;u===null?r||i.tail===null?i.tail=null:i.tail.sibling=null:u.sibling=null}}function xe(i){var r=i.alternate!==null&&i.alternate.child===i.child,o=0,u=0;if(r)for(var d=i.child;d!==null;)o|=d.lanes|d.childLanes,u|=d.subtreeFlags&65011712,u|=d.flags&65011712,d.return=i,d=d.sibling;else for(d=i.child;d!==null;)o|=d.lanes|d.childLanes,u|=d.subtreeFlags,u|=d.flags,d.return=i,d=d.sibling;return i.subtreeFlags|=u,i.childLanes=o,r}function X_(i,r,o){var u=r.pendingProps;switch(yd(r),r.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return xe(r),null;case 1:return xe(r),null;case 3:return o=r.stateNode,u=null,i!==null&&(u=i.memoizedState.cache),r.memoizedState.cache!==u&&(r.flags|=2048),Fs(Qe),ve(),o.pendingContext&&(o.context=o.pendingContext,o.pendingContext=null),(i===null||i.child===null)&&(Oo(r)?Ys(r):i===null||i.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,_d())),xe(r),null;case 26:var d=r.type,p=r.memoizedState;return i===null?(Ys(r),p!==null?(xe(r),G4(r,p)):(xe(r),u2(r,d,null,u,o))):p?p!==i.memoizedState?(Ys(r),xe(r),G4(r,p)):(xe(r),r.flags&=-16777217):(i=i.memoizedProps,i!==u&&Ys(r),xe(r),u2(r,d,i,u,o)),null;case 27:if(Oi(r),o=Ot.current,d=r.type,i!==null&&r.stateNode!=null)i.memoizedProps!==u&&Ys(r);else{if(!u){if(r.stateNode===null)throw Error(s(166));return xe(r),null}i=xt.current,Oo(r)?Sp(r):(i=Z7(d,u,o),r.stateNode=i,Ys(r))}return xe(r),null;case 5:if(Oi(r),d=r.type,i!==null&&r.stateNode!=null)i.memoizedProps!==u&&Ys(r);else{if(!u){if(r.stateNode===null)throw Error(s(166));return xe(r),null}if(p=xt.current,Oo(r))Sp(r);else{var E=ah(Ot.current);switch(p){case 1:p=E.createElementNS("http://www.w3.org/2000/svg",d);break;case 2:p=E.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;
vendor: 20,065 bytes, line 48
48default:switch(d){case"svg":p=E.createElementNS("http://www.w3.org/2000/svg",d);break;case"math":p=E.createElementNS("http://www.w3.org/1998/Math/MathML",d);break;case"script":p=E.createElement("div"),p.innerHTML="<script><\/script>",p=p.removeChild(p.firstChild);break;case"select":p=typeof u.is=="string"?E.createElement("select",{is:u.is}):E.createElement("select"),u.multiple?p.multiple=!0:u.size&&(p.size=u.size);break;default:p=typeof u.is=="string"?E.createElement(d,{is:u.is}):E.createElement(d)}}p[qe]=r,p[hn]=u;t:for(E=r.child;E!==null;){if(E.tag===5||E.tag===6)p.appendChild(E.stateNode);else if(E.tag!==4&&E.tag!==27&&E.child!==null){E.child.return=E,E=E.child;continue}if(E===r)break t;for(;E.sibling===null;){if(E.return===null||E.return===r)break t;E=E.return}E.sibling.return=E.return,E=E.sibling}r.stateNode=p;t:switch(Tn(p,d,u),d){case"button":case"input":case"select":case"textarea":u=!!u.autoFocus;break t;case"img":u=!0;break t;default:u=!1}u&&Ys(r)}}return xe(r),u2(r,r.type,i===null?null:i.memoizedProps,r.pendingProps,o),null;case 6:if(i&&r.stateNode!=null)i.memoizedProps!==u&&Ys(r);else{if(typeof u!="string"&&r.stateNode===null)throw Error(s(166));if(i=Ot.current,Oo(r)){if(i=r.stateNode,o=r.memoizedProps,u=null,d=vn,d!==null)switch(d.tag){case 27:case 5:u=d.memoizedProps}i[qe]=r,i=!!(i.nodeValue===o||u!==null&&u.suppressHydrationWarning===!0||z7(i.nodeValue,o)),i||Sr(r,!0)}else i=ah(i).createTextNode(u),i[qe]=r,r.stateNode=i}return xe(r),null;case 31:if(o=r.memoizedState,i===null||i.memoizedState!==null){if(u=Oo(r),o!==null){if(i===null){if(!u)throw Error(s(318));if(i=r.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error(s(557));i[qe]=r}else Pa(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;xe(r),i=!1}else o=_d(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=o),i=!0;if(!i)return r.flags&256?(ai(r),r):(ai(r),null);if((r.flags&128)!==0)throw Error(s(558))}return xe(r),null;case 13:if(u=r.memoizedState,i===null||i.memoizedState!==null&&i.memoizedState.dehydrated!==null){if(d=Oo(r),u!==null&&u.dehydrated!==null){if(i===null){if(!d)throw Error(s(318));if(d=r.memoizedState,d=d!==null?d.dehydrated:null,!d)throw Error(s(317));d[qe]=r}else Pa(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;xe(r),d=!1}else d=_d(),i!==null&&i.memoizedState!==null&&(i.memoizedState.hydrationErrors=d),d=!0;if(!d)return r.flags&256?(ai(r),r):(ai(r),null)}return ai(r),(r.flags&128)!==0?(r.lanes=o,r):(o=u!==null,i=i!==null&&i.memoizedState!==null,o&&(u=r.child,d=null,u.alternate!==null&&u.alternate.memoizedState!==null&&u.alternate.memoizedState.cachePool!==null&&(d=u.alternate.memoizedState.cachePool.pool),p=null,u.memoizedState!==null&&u.memoizedState.cachePool!==null&&(p=u.memoizedState.cachePool.pool),p!==d&&(u.flags|=2048)),o!==i&&o&&(r.child.flags|=8192),G1(r,r.updateQueue),xe(r),null);case 4:return ve(),i===null&&V2(r.stateNode.containerInfo),xe(r),null;case 10:return Fs(r.type),xe(r),null;case 19:if(rt(Le),u=r.memoizedState,u===null)return xe(r),null;if(d=(r.flags&128)!==0,p=u.rendering,p===null)if(d)Tu(u,!1);else{if(Ie!==0||i!==null&&(i.flags&128)!==0)for(i=r.child;i!==null;){if(p=I1(i),p!==null){for(r.flags|=128,Tu(u,!1),i=p.updateQueue,r.updateQueue=i,G1(r,i),r.subtreeFlags=0,i=o,o=r.child;o!==null;)_p(o,i),o=o.sibling;return gt(Le,Le.current&1|2),ee&&Us(r,u.treeForkCount),r.child}i=i.sibling}u.tail!==null&&Pn()>X1&&(r.flags|=128,d=!0,Tu(u,!1),r.lanes=4194304)}else{if(!d)if(i=I1(p),i!==null){if(r.flags|=128,d=!0,i=i.updateQueue,r.updateQueue=i,G1(r,i),Tu(u,!0),u.tail===null&&u.tailMode==="hidden"&&!p.alternate&&!ee)return xe(r),null}else 2*Pn()-u.renderingStartTime>X1&&o!==536870912&&(r.flags|=128,d=!0,Tu(u,!1),r.lanes=4194304);u.isBackwards?(p.sibling=r.child,r.child=p):(i=u.last,i!==null?i.sibling=p:r.child=p,u.last=p)}return u.tail!==null?(i=u.tail,u.rendering=i,u.tail=i.sibling,u.renderingStartTime=Pn(),i.sibling=null,o=Le.current,gt(Le,d?o&1|2:o&1),ee&&Us(r,u.treeForkCount),i):(xe(r),null);case 22:case 23:return ai(r),Id(),u=r.memoizedState!==null,i!==null?i.memoizedState!==null!==u&&(r.flags|=8192):u&&(r.flags|=8192),u?(o&536870912)!==0&&(r.flags&128)===0&&(xe(r),r.subtreeFlags&6&&(r.flags|=8192)):xe(r),o=r.updateQueue,o!==null&&G1(r,o.retryQueue),o=null,i!==null&&i.memoizedState!==null&&i.memoizedState.cachePool!==null&&(o=i.memoizedState.cachePool.pool),u=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(u=r.memoizedState.cachePool.pool),u!==o&&(r.flags|=2048),i!==null&&rt(ja),null;case 24:return o=null,i!==null&&(o=i.memoizedState.cache),r.memoizedState.cache!==o&&(r.flags|=2048),Fs(Qe),xe(r),null;case 25:return null;case 30:return null}throw Error(s(156,r.tag))}function W_(i,r){switch(yd(r),r.tag){case 1:return i=r.flags,i&65536?(r.flags=i&-65537|128,r):null;case 3:return Fs(Qe),ve(),i=r.flags,(i&65536)!==0&&(i&128)===0?(r.flags=i&-65537|128,r):null;case 26:case 27:case 5:return Oi(r),null;case 31:if(r.memoizedState!==null){if(ai(r),r.alternate===null)throw Error(s(340));Pa()}return i=r.flags,i&65536?(r.flags=i&-65537|128,r):null;case 13:if(ai(r),i=r.memoizedState,i!==null&&i.dehydrated!==null){if(r.alternate===null)throw Error(s(340));Pa()}return i=r.flags,i&65536?(r.flags=i&-65537|128,r):null;case 19:return rt(Le),null;case 4:return ve(),null;case 10:return Fs(r.type),null;case 22:case 23:return ai(r),Id(),i!==null&&rt(ja),i=r.flags,i&65536?(r.flags=i&-65537|128,r):null;case 24:return Fs(Qe),null;case 25:return null;default:return null}}function Y4(i,r){switch(yd(r),r.tag){case 3:Fs(Qe),ve();break;case 26:case 27:case 5:Oi(r);break;case 4:ve();break;case 31:r.memoizedState!==null&&ai(r);break;case 13:ai(r);break;case 19:rt(Le);break;case 10:Fs(r.type);break;case 22:case 23:ai(r),Id(),i!==null&&rt(ja);break;case 24:Fs(Qe)}}function Au(i,r){try{var o=r.updateQueue,u=o!==null?o.lastEffect:null;if(u!==null){var d=u.next;o=d;do{if((o.tag&i)===i){u=void 0;var p=o.create,E=o.inst;u=p(),E.destroy=u}o=o.next}while(o!==d)}}catch(S){fe(r,r.return,S)}}function Vr(i,r,o){try{var u=r.updateQueue,d=u!==null?u.lastEffect:null;if(d!==null){var p=d.next;u=p;do{if((u.tag&i)===i){var E=u.inst,S=E.destroy;if(S!==void 0){E.destroy=void 0,d=r;var L=o,Q=S;try{Q()}catch(st){fe(d,L,st)}}}u=u.next}while(u!==p)}}catch(st){fe(r,r.return,st)}}function Q4(i){var r=i.updateQueue;if(r!==null){var o=i.stateNode;try{kp(r,o)}catch(u){fe(i,i.return,u)}}}function K4(i,r,o){o.props=Ha(i.type,i.memoizedProps),o.state=i.memoizedState;try{o.componentWillUnmount()}catch(u){fe(i,r,u)}}function xu(i,r){try{var o=i.ref;if(o!==null){switch(i.tag){case 26:case 27:case 5:var u=i.stateNode;break;case 30:u=i.stateNode;break;default:u=i.stateNode}typeof o=="function"?i.refCleanup=o(u):o.current=u}}catch(d){fe(i,r,d)}}function Es(i,r){var o=i.ref,u=i.refCleanup;if(o!==null)if(typeof u=="function")try{u()}catch(d){fe(i,r,d)}finally{i.refCleanup=null,i=i.alternate,i!=null&&(i.refCleanup=null)}else if(typeof o=="function")try{o(null)}catch(d){fe(i,r,d)}else o.current=null}function $4(i){var r=i.type,o=i.memoizedProps,u=i.stateNode;try{t:switch(r){case"button":case"input":case"select":case"textarea":o.autoFocus&&u.focus();break t;case"img":o.src?u.src=o.src:o.srcSet&&(u.srcset=o.srcSet)}}catch(d){fe(i,i.return,d)}}function c2(i,r,o){try{var u=i.stateNode;_E(u,i.type,o,r),u[hn]=r}catch(d){fe(i,i.return,d)}}function X4(i){return i.tag===5||i.tag===3||i.tag===26||i.tag===27&&jr(i.type)||i.tag===4}function h2(i){t:for(;;){for(;i.sibling===null;){if(i.return===null||X4(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&&jr(i.type)||i.flags&2||i.child===null||i.tag===4)continue t;i.child.return=i,i=i.child}if(!(i.flags&2))return i.stateNode}}function f2(i,r,o){var u=i.tag;if(u===5||u===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=Bi));else if(u!==4&&(u===27&&jr(i.type)&&(o=i.stateNode,r=null),i=i.child,i!==null))for(f2(i,r,o),i=i.sibling;i!==null;)f2(i,r,o),i=i.sibling}function Y1(i,r,o){var u=i.tag;if(u===5||u===6)i=i.stateNode,r?o.insertBefore(i,r):o.appendChild(i);else if(u!==4&&(u===27&&jr(i.type)&&(o=i.stateNode),i=i.child,i!==null))for(Y1(i,r,o),i=i.sibling;i!==null;)Y1(i,r,o),i=i.sibling}function W4(i){var r=i.stateNode,o=i.memoizedProps;try{for(var u=i.type,d=r.attributes;d.length;)r.removeAttributeNode(d[0]);Tn(r,u,o),r[qe]=i,r[hn]=o}catch(p){fe(i,i.return,p)}}var Qs=!1,Xe=!1,d2=!1,Z4=typeof WeakSet=="function"?WeakSet:Set,dn=null;function Z_(i,r){if(i=i.containerInfo,M2=dh,i=cp(i),ad(i)){if("selectionStart"in i)var o={start:i.selectionStart,end:i.selectionEnd};else t:{o=(o=i.ownerDocument)&&o.defaultView||window;var u=o.getSelection&&o.getSelection();if(u&&u.rangeCount!==0){o=u.anchorNode;var d=u.anchorOffset,p=u.focusNode;u=u.focusOffset;try{o.nodeType,p.nodeType}catch{o=null;break t}var E=0,S=-1,L=-1,Q=0,st=0,ut=i,K=null;e:for(;;){for(var J;ut!==o||d!==0&&ut.nodeType!==3||(S=E+d),ut!==p||u!==0&&ut.nodeType!==3||(L=E+u),ut.nodeType===3&&(E+=ut.nodeValue.length),(J=ut.firstChild)!==null;)K=ut,ut=J;for(;;){if(ut===i)break e;if(K===o&&++Q===d&&(S=E),K===p&&++st===u&&(L=E),(J=ut.nextSibling)!==null)break;ut=K,K=ut.parentNode}ut=J}o=S===-1||L===-1?null:{start:S,end:L}}else o=null}o=o||{start:0,end:0}}else o=null;for(P2={focusedElem:i,selectionRange:o},dh=!1,dn=r;dn!==null;)if(r=dn,i=r.child,(r.subtreeFlags&1028)!==0&&i!==null)i.return=r,dn=i;else for(;dn!==null;){switch(r=dn,p=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++)d=i[o],d.ref.impl=d.nextImpl;break;case 11:case 15:break;case 1:if((i&1024)!==0&&p!==null){i=void 0,o=r,d=p.memoizedProps,p=p.memoizedState,u=o.stateNode;try{var St=Ha(o.type,d);i=u.getSnapshotBeforeUpdate(St,p),u.__reactInternalSnapshotBeforeUpdate=i}catch(Mt){fe(o,o.return,Mt)}}break;case 3:if((i&1024)!==0){if(i=r.stateNode.containerInfo,o=i.nodeType,o===9)j2(i);else if(o===1)switch(i.nodeName){case"HEAD":case"HTML":case"BODY":j2(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,dn=i;break}dn=r.return}}function J4(i,r,o){var u=o.flags;switch(o.tag){case 0:case 11:case 15:$s(i,o),u&4&&Au(5,o);break;case 1:if($s(i,o),u&4)if(i=o.stateNode,r===null)try{i.componentDidMount()}catch(E){fe(o,o.return,E)}else{var d=Ha(o.type,r.memoizedProps);r=r.memoizedState;try{i.componentDidUpdate(d,r,i.__reactInternalSnapshotBeforeUpdate)}catch(E){fe(o,o.return,E)}}u&64&&Q4(o),u&512&&xu(o,o.return);break;case 3:if($s(i,o),u&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{kp(i,r)}catch(E){fe(o,o.return,E)}}break;case 27:r===null&&u&4&&W4(o);case 26:case 5:$s(i,o),r===null&&u&4&&$4(o),u&512&&xu(o,o.return);break;case 12:$s(i,o);break;case 31:$s(i,o),u&4&&n7(i,o);break;case 13:$s(i,o),u&4&&i7(i,o),u&64&&(i=o.memoizedState,i!==null&&(i=i.dehydrated,i!==null&&(o=oE.bind(null,o),CE(i,o))));break;case 22:if(u=o.memoizedState!==null||Qs,!u){r=r!==null&&r.memoizedState!==null||Xe,d=Qs;var p=Xe;Qs=u,(Xe=r)&&!p?Xs(i,o,(o.subtreeFlags&8772)!==0):$s(i,o),Qs=d,Xe=p}break;case 30:break;default:$s(i,o)}}function t7(i){var r=i.alternate;r!==null&&(i.alternate=null,t7(r)),i.child=null,i.deletions=null,i.sibling=null,i.tag===5&&(r=i.stateNode,r!==null&&go(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 be=null,qn=!1;function Ks(i,r,o){for(o=o.child;o!==null;)e7(i,r,o),o=o.sibling}function e7(i,r,o){if(gn&&typeof gn.onCommitFiberUnmount=="function")try{gn.onCommitFiberUnmount(Pi,o)}catch{}switch(o.tag){case 26:Xe||Es(o,r),Ks(i,r,o),o.memoizedState?o.memoizedState.count--:o.stateNode&&(o=o.stateNode,o.parentNode.removeChild(o));break;case 27:Xe||Es(o,r);var u=be,d=qn;jr(o.type)&&(be=o.stateNode,qn=!1),Ks(i,r,o),Iu(o.stateNode),be=u,qn=d;break;case 5:Xe||Es(o,r);case 6:if(u=be,d=qn,be=null,Ks(i,r,o),be=u,qn=d,be!==null)if(qn)try{(be.nodeType===9?be.body:be.nodeName==="HTML"?be.ownerDocument.body:be).removeChild(o.stateNode)}catch(p){fe(o,r,p)}else try{be.removeChild(o.stateNode)}catch(p){fe(o,r,p)}break;case 18:be!==null&&(qn?(i=be,Q7(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,o.stateNode),tl(i)):Q7(be,o.stateNode));break;case 4:u=be,d=qn,be=o.stateNode.containerInfo,qn=!0,Ks(i,r,o),be=u,qn=d;break;case 0:case 11:case 14:case 15:Vr(2,o,r),Xe||Vr(4,o,r),Ks(i,r,o);break;case 1:Xe||(Es(o,r),u=o.stateNode,typeof u.componentWillUnmount=="function"&&K4(o,r,u)),Ks(i,r,o);break;case 21:Ks(i,r,o);break;case 22:Xe=(u=Xe)||o.memoizedState!==null,Ks(i,r,o),Xe=u;break;default:Ks(i,r,o)}}function n7(i,r){if(r.memoizedState===null&&(i=r.alternate,i!==null&&(i=i.memoizedState,i!==null))){i=i.dehydrated;try{tl(i)}catch(o){fe(r,r.return,o)}}}function i7(i,r){if(r.memoizedState===null&&(i=r.alternate,i!==null&&(i=i.memoizedState,i!==null&&(i=i.dehydrated,i!==null))))try{tl(i)}catch(o){fe(r,r.return,o)}}function J_(i){switch(i.tag){case 31:case 13:case 19:var r=i.stateNode;return r===null&&(r=i.stateNode=new Z4),r;case 22:return i=i.stateNode,r=i._retryCache,r===null&&(r=i._retryCache=new Z4),r;default:throw Error(s(435,i.tag))}}function Q1(i,r){var o=J_(i);r.forEach(function(u){if(!o.has(u)){o.add(u);var d=lE.bind(null,i,u);u.then(d,d)}})}function Gn(i,r){var o=r.deletions;if(o!==null)for(var u=0;u<o.length;u++){var d=o[u],p=i,E=r,S=E;t:for(;S!==null;){switch(S.tag){case 27:if(jr(S.type)){be=S.stateNode,qn=!1;break t}break;case 5:be=S.stateNode,qn=!1;break t;case 3:case 4:be=S.stateNode.containerInfo,qn=!0;break t}S=S.return}if(be===null)throw Error(s(160));e7(p,E,d),be=null,qn=!1,p=d.alternate,p!==null&&(p.return=null),d.return=null}if(r.subtreeFlags&13886)for(r=r.child;r!==null;)s7(r,i),r=r.sibling}var Gi=null;function s7(i,r){var o=i.alternate,u=i.flags;switch(i.tag){case 0:case 11:case 14:case 15:Gn(r,i),Yn(i),u&4&&(Vr(3,i,i.return),Au(3,i),Vr(5,i,i.return));break;case 1:Gn(r,i),Yn(i),u&512&&(Xe||o===null||Es(o,o.return)),u&64&&Qs&&(i=i.updateQueue,i!==null&&(u=i.callbacks,u!==null&&(o=i.shared.hiddenCallbacks,i.shared.hiddenCallbacks=o===null?u:o.concat(u))));break;case 26:var d=Gi;if(Gn(r,i),Yn(i),u&512&&(Xe||o===null||Es(o,o.return)),u&4){var p=o!==null?o.memoizedState:null;if(u=i.memoizedState,o===null)if(u===null)if(i.stateNode===null){t:{u=i.type,o=i.memoizedProps,d=d.ownerDocument||d;e:switch(u){case"title":p=d.getElementsByTagName("title")[0],(!p||p[as]||p[qe]||p.namespaceURI==="http://www.w3.org/2000/svg"||p.hasAttribute("itemprop"))&&(p=d.createElement(u),d.head.insertBefore(p,d.querySelector("head > title"))),Tn(p,u,o),p[qe]=i,Ge(p),u=p;break t;case"link":var E=sg("link","href",d).get(u+(o.href||""));if(E){for(var S=0;S<E.length;S++)if(p=E[S],p.getAttribute("href")===(o.href==null||o.href===""?null:o.href)&&p.getAttribute("rel")===(o.rel==null?null:o.rel)&&p.getAttribute("title")===(o.title==null?null:o.title)&&p.getAttribute("crossorigin")===(o.crossOrigin==null?null:o.crossOrigin)){E.splice(S,1);break e}}p=d.createElement(u),Tn(p,u,o),d.head.appendChild(p);break;case"meta":if(E=sg("meta","content",d).get(u+(o.content||""))){for(S=0;S<E.length;S++)if(p=E[S],p.getAttribute("content")===(o.content==null?null:""+o.content)&&p.getAttribute("name")===(o.name==null?null:o.name)&&p.getAttribute("property")===(o.property==null?null:o.property)&&p.getAttribute("http-equiv")===(o.httpEquiv==null?null:o.httpEquiv)&&p.getAttribute("charset")===(o.charSet==null?null:o.charSet)){E.splice(S,1);break e}}p=d.createElement(u),Tn(p,u,o),d.head.appendChild(p);break;default:throw Error(s(468,u))}p[qe]=i,Ge(p),u=p}i.stateNode=u}else rg(d,i.type,i.stateNode);else i.stateNode=ig(d,u,i.memoizedProps);else p!==u?(p===null?o.stateNode!==null&&(o=o.stateNode,o.parentNode.removeChild(o)):p.count--,u===null?rg(d,i.type,i.stateNode):ig(d,u,i.memoizedProps)):u===null&&i.stateNode!==null&&c2(i,i.memoizedProps,o.memoizedProps)}break;case 27:Gn(r,i),Yn(i),u&512&&(Xe||o===null||Es(o,o.return)),o!==null&&u&4&&c2(i,i.memoizedProps,o.memoizedProps);break;case 5:if(Gn(r,i),Yn(i),u&512&&(Xe||o===null||Es(o,o.return)),i.flags&32){d=i.stateNode;try{Hn(d,"")}catch(St){fe(i,i.return,St)}}u&4&&i.stateNode!=null&&(d=i.memoizedProps,c2(i,d,o!==null?o.memoizedProps:d)),u&1024&&(d2=!0);break;case 6:if(Gn(r,i),Yn(i),u&4){if(i.stateNode===null)throw Error(s(162));u=i.memoizedProps,o=i.stateNode;try{o.nodeValue=u}catch(St){fe(i,i.return,St)}}break;case 3:if(uh=null,d=Gi,Gi=oh(r.containerInfo),Gn(r,i),Gi=d,Yn(i),u&4&&o!==null&&o.memoizedState.isDehydrated)try{tl(r.containerInfo)}catch(St){fe(i,i.return,St)}d2&&(d2=!1,r7(i));break;case 4:u=Gi,Gi=oh(i.stateNode.containerInfo),Gn(r,i),Yn(i),Gi=u;break;case 12:Gn(r,i),Yn(i);break;case 31:Gn(r,i),Yn(i),u&4&&(u=i.updateQueue,u!==null&&(i.updateQueue=null,Q1(i,u)));break;case 13:Gn(r,i),Yn(i),i.child.flags&8192&&i.memoizedState!==null!=(o!==null&&o.memoizedState!==null)&&($1=Pn()),u&4&&(u=i.updateQueue,u!==null&&(i.updateQueue=null,Q1(i,u)));break;case 22:d=i.memoizedState!==null;var L=o!==null&&o.memoizedState!==null,Q=Qs,st=Xe;if(Qs=Q||d,Xe=st||L,Gn(r,i),Xe=st,Qs=Q,Yn(i),u&8192)t:for(r=i.stateNode,r._visibility=d?r._visibility&-2:r._visibility|1,d&&(o===null||L||Qs||Xe||qa(i)),o=null,r=i;;){if(r.tag===5||r.tag===26){if(o===null){L=o=r;try{if(p=L.stateNode,d)E=p.style,typeof E.setProperty=="function"?E.setProperty("display","none","important"):E.display="none";else{S=L.stateNode;var ut=L.memoizedProps.style,K=ut!=null&&ut.hasOwnProperty("display")?ut.display:null;S.style.display=K==null||typeof K=="boolean"?"":(""+K).trim()}}catch(St){fe(L,L.return,St)}}}else if(r.tag===6){if(o===null){L=r;try{L.stateNode.nodeValue=d?"":L.memoizedProps}catch(St){fe(L,L.return,St)}}}else if(r.tag===18){if(o===null){L=r;try{var J=L.stateNode;d?K7(J,!0):K7(L.stateNode,!1)}catch(St){fe(L,L.return,St)}}}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 t;for(;r.sibling===null;){if(r.return===null||r.return===i)break t;o===r&&(o=null),r=r.return}o===r&&(o=null),r.sibling.return=r.return,r=r.sibling}u&4&&(u=i.updateQueue,u!==null&&(o=u.retryQueue,o!==null&&(u.retryQueue=null,Q1(i,o))));break;case 19:Gn(r,i),Yn(i),u&4&&(u=i.updateQueue,u!==null&&(i.updateQueue=null,Q1(i,u)));break;case 30:break;case 21:break;default:Gn(r,i),Yn(i)}}function Yn(i){var r=i.flags;if(r&2){try{for(var o,u=i.return;u!==null;){if(X4(u)){o=u;break}u=u.return}if(o==null)throw Error(s(160));switch(o.tag){case 27:var d=o.stateNode,p=h2(i);Y1(i,p,d);break;case 5:var E=o.stateNode;o.flags&32&&(Hn(E,""),o.flags&=-33);var S=h2(i);Y1(i,S,E);break;case 3:case 4:var L=o.stateNode.containerInfo,Q=h2(i);f2(i,Q,L);break;default:throw Error(s(161))}}catch(st){fe(i,i.return,st)}i.flags&=-3}r&4096&&(i.flags&=-4097)}function r7(i){if(i.subtreeFlags&1024)for(i=i.child;i!==null;){var r=i;r7(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),i=i.sibling}}function $s(i,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)J4(i,r.alternate,r),r=r.sibling}function qa(i){for(i=i.child;i!==null;){var r=i;switch(r.tag){case 0:case 11:case 14:case 15:Vr(4,r,r.return),qa(r);break;case 1:Es(r,r.return);var o=r.stateNode;typeof o.componentWillUnmount=="function"&&K4(r,r.return,o),qa(r);break;case 27:Iu(r.stateNode);case 26:case 5:Es(r,r.return),qa(r);break;case 22:r.memoizedState===null&&qa(r);break;case 30:qa(r);break;default:qa(r)}i=i.sibling}}function Xs(i,r,o){for(o=o&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var u=r.alternate,d=i,p=r,E=p.flags;switch(p.tag){case 0:case 11:case 15:Xs(d,p,o),Au(4,p);break;case 1:if(Xs(d,p,o),u=p,d=u.stateNode,typeof d.componentDidMount=="function")try{d.componentDidMount()}
vendor: 7,545 bytes, line 48
48catch(Q){fe(u,u.return,Q)}if(u=p,d=u.updateQueue,d!==null){var S=u.stateNode;try{var L=d.shared.hiddenCallbacks;if(L!==null)for(d.shared.hiddenCallbacks=null,d=0;d<L.length;d++)Lp(L[d],S)}catch(Q){fe(u,u.return,Q)}}o&&E&64&&Q4(p),xu(p,p.return);break;case 27:W4(p);case 26:case 5:Xs(d,p,o),o&&u===null&&E&4&&$4(p),xu(p,p.return);break;case 12:Xs(d,p,o);break;case 31:Xs(d,p,o),o&&E&4&&n7(d,p);break;case 13:Xs(d,p,o),o&&E&4&&i7(d,p);break;case 22:p.memoizedState===null&&Xs(d,p,o),xu(p,p.return);break;case 30:break;default:Xs(d,p,o)}r=r.sibling}}function m2(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&&uu(o))}function p2(i,r){i=null,r.alternate!==null&&(i=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==i&&(r.refCount++,i!=null&&uu(i))}function Yi(i,r,o,u){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)a7(i,r,o,u),r=r.sibling}function a7(i,r,o,u){var d=r.flags;switch(r.tag){case 0:case 11:case 15:Yi(i,r,o,u),d&2048&&Au(9,r);break;case 1:Yi(i,r,o,u);break;case 3:Yi(i,r,o,u),d&2048&&(i=null,r.alternate!==null&&(i=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==i&&(r.refCount++,i!=null&&uu(i)));break;case 12:if(d&2048){Yi(i,r,o,u),i=r.stateNode;try{var p=r.memoizedProps,E=p.id,S=p.onPostCommit;typeof S=="function"&&S(E,r.alternate===null?"mount":"update",i.passiveEffectDuration,-0)}catch(L){fe(r,r.return,L)}}else Yi(i,r,o,u);break;case 31:Yi(i,r,o,u);break;case 13:Yi(i,r,o,u);break;case 23:break;case 22:p=r.stateNode,E=r.alternate,r.memoizedState!==null?p._visibility&2?Yi(i,r,o,u):Su(i,r):p._visibility&2?Yi(i,r,o,u):(p._visibility|=2,Ho(i,r,o,u,(r.subtreeFlags&10256)!==0||!1)),d&2048&&m2(E,r);break;case 24:Yi(i,r,o,u),d&2048&&p2(r.alternate,r);break;default:Yi(i,r,o,u)}}function Ho(i,r,o,u,d){for(d=d&&((r.subtreeFlags&10256)!==0||!1),r=r.child;r!==null;){var p=i,E=r,S=o,L=u,Q=E.flags;switch(E.tag){case 0:case 11:case 15:Ho(p,E,S,L,d),Au(8,E);break;case 23:break;case 22:var st=E.stateNode;E.memoizedState!==null?st._visibility&2?Ho(p,E,S,L,d):Su(p,E):(st._visibility|=2,Ho(p,E,S,L,d)),d&&Q&2048&&m2(E.alternate,E);break;case 24:Ho(p,E,S,L,d),d&&Q&2048&&p2(E.alternate,E);break;default:Ho(p,E,S,L,d)}r=r.sibling}}function Su(i,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var o=i,u=r,d=u.flags;switch(u.tag){case 22:Su(o,u),d&2048&&m2(u.alternate,u);break;case 24:Su(o,u),d&2048&&p2(u.alternate,u);break;default:Su(o,u)}r=r.sibling}}var wu=8192;function qo(i,r,o){if(i.subtreeFlags&wu)for(i=i.child;i!==null;)o7(i,r,o),i=i.sibling}function o7(i,r,o){switch(i.tag){case 26:qo(i,r,o),i.flags&wu&&i.memoizedState!==null&&BE(o,Gi,i.memoizedState,i.memoizedProps);break;case 5:qo(i,r,o);break;case 3:case 4:var u=Gi;Gi=oh(i.stateNode.containerInfo),qo(i,r,o),Gi=u;break;case 22:i.memoizedState===null&&(u=i.alternate,u!==null&&u.memoizedState!==null?(u=wu,wu=16777216,qo(i,r,o),wu=u):qo(i,r,o));break;default:qo(i,r,o)}}function l7(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 bu(i){var r=i.deletions;if((i.flags&16)!==0){if(r!==null)for(var o=0;o<r.length;o++){var u=r[o];dn=u,c7(u,i)}l7(i)}if(i.subtreeFlags&10256)for(i=i.child;i!==null;)u7(i),i=i.sibling}function u7(i){switch(i.tag){case 0:case 11:case 15:bu(i),i.flags&2048&&Vr(9,i,i.return);break;case 3:bu(i);break;case 12:bu(i);break;case 22:var r=i.stateNode;i.memoizedState!==null&&r._visibility&2&&(i.return===null||i.return.tag!==13)?(r._visibility&=-3,K1(i)):bu(i);break;default:bu(i)}}function K1(i){var r=i.deletions;if((i.flags&16)!==0){if(r!==null)for(var o=0;o<r.length;o++){var u=r[o];dn=u,c7(u,i)}l7(i)}for(i=i.child;i!==null;){switch(r=i,r.tag){case 0:case 11:case 15:Vr(8,r,r.return),K1(r);break;case 22:o=r.stateNode,o._visibility&2&&(o._visibility&=-3,K1(r));break;default:K1(r)}i=i.sibling}}function c7(i,r){for(;dn!==null;){var o=dn;switch(o.tag){case 0:case 11:case 15:Vr(8,o,r);break;case 23:case 22:if(o.memoizedState!==null&&o.memoizedState.cachePool!==null){var u=o.memoizedState.cachePool.pool;u!=null&&u.refCount++}break;case 24:uu(o.memoizedState.cache)}if(u=o.child,u!==null)u.return=o,dn=u;else t:for(o=i;dn!==null;){u=dn;var d=u.sibling,p=u.return;if(t7(u),u===o){dn=null;break t}if(d!==null){d.return=p,dn=d;break t}dn=p}}}var tE={getCacheForType:function(i){var r=_n(Qe),o=r.data.get(i);return o===void 0&&(o=i(),r.data.set(i,o)),o},cacheSignal:function(){return _n(Qe).controller.signal}},eE=typeof WeakMap=="function"?WeakMap:Map,le=0,_e=null,Xt=null,Jt=0,he=0,oi=null,Ir=!1,Go=!1,g2=!1,Ws=0,Ie=0,Or=0,Ga=0,y2=0,li=0,Yo=0,Cu=null,Qn=null,v2=!1,$1=0,h7=0,X1=1/0,W1=null,Mr=null,on=0,Pr=null,Qo=null,Zs=0,_2=0,E2=null,f7=null,Ru=0,T2=null;function ui(){return(le&2)!==0&&Jt!==0?Jt&-Jt:W.T!==null?C2():Zc()}function d7(){if(li===0)if((Jt&536870912)===0||ee){var i=va;va<<=1,(va&3932160)===0&&(va=262144),li=i}else li=536870912;return i=ri.current,i!==null&&(i.flags|=32),li}function Kn(i,r,o){(i===_e&&(he===2||he===9)||i.cancelPendingCommit!==null)&&(Ko(i,0),Lr(i,Jt,li,!1)),_a(i,o),((le&2)===0||i!==_e)&&(i===_e&&((le&2)===0&&(Ga|=o),Ie===4&&Lr(i,Jt,li,!1)),Ts(i))}function m7(i,r,o){if((le&6)!==0)throw Error(s(327));var u=!o&&(r&127)===0&&(r&i.expiredLanes)===0||Li(i,r),d=u?sE(i,r):x2(i,r,!0),p=u;do{if(d===0){Go&&!u&&Lr(i,r,0,!1);break}else{if(o=i.current.alternate,p&&!nE(o)){d=x2(i,r,!1),p=!1;continue}if(d===2){if(p=r,i.errorRecoveryDisabledLanes&p)var E=0;else E=i.pendingLanes&-536870913,E=E!==0?E:E&536870912?536870912:0;if(E!==0){r=E;t:{var S=i;d=Cu;var L=S.current.memoizedState.isDehydrated;if(L&&(Ko(S,E).flags|=256),E=x2(S,E,!1),E!==2){if(g2&&!L){S.errorRecoveryDisabledLanes|=p,Ga|=p,d=4;break t}p=Qn,Qn=d,p!==null&&(Qn===null?Qn=p:Qn.push.apply(Qn,p))}d=E}if(p=!1,d!==2)continue}}if(d===1){Ko(i,0),Lr(i,r,0,!0);break}t:{switch(u=i,p=d,p){case 0:case 1:throw Error(s(345));case 4:if((r&4194048)!==r)break;case 6:Lr(u,r,li,!Ir);break t;case 2:Qn=null;break;case 3:case 5:break;default:throw Error(s(329))}if((r&62914560)===r&&(d=$1+300-Pn(),10<d)){if(Lr(u,r,li,!Ir),is(u,0,!0)!==0)break t;Zs=r,u.timeoutHandle=G7(p7.bind(null,u,o,Qn,W1,v2,r,li,Ga,Yo,Ir,p,"Throttled",-0,0),d);break t}p7(u,o,Qn,W1,v2,r,li,Ga,Yo,Ir,p,null,-0,0)}}break}while(!0);Ts(i)}function p7(i,r,o,u,d,p,E,S,L,Q,st,ut,K,J){if(i.timeoutHandle=-1,ut=r.subtreeFlags,ut&8192||(ut&16785408)===16785408){ut={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Bi},o7(r,p,ut);var St=(p&62914560)===p?$1-Pn():(p&4194048)===p?h7-Pn():0;if(St=UE(ut,St),St!==null){Zs=p,i.cancelPendingCommit=St(x7.bind(null,i,r,p,o,u,d,E,S,L,st,ut,null,K,J)),Lr(i,p,E,!Q);return}}x7(i,r,p,o,u,d,E,S,L)}function nE(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 u=0;u<o.length;u++){var d=o[u],p=d.getSnapshot;d=d.value;try{if(!ii(p(),d))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 Lr(i,r,o,u){r&=~y2,r&=~Ga,i.suspendedLanes|=r,i.pingedLanes&=~r,u&&(i.warmLanes|=r),u=i.expirationTimes;for(var d=r;0<d;){var p=31-Me(d),E=1<<p;u[p]=-1,d&=~E}o!==0&&Ea(i,o,r)}function Z1(){return(le&6)===0?(Nu(0),!1):!0}
vendor: 4,129 bytes, line 48
48function A2(){if(Xt!==null){if(he===0)var i=Xt.return;else i=Xt,zs=La=null,jd(i),jo=null,hu=0,i=Xt;for(;i!==null;)Y4(i.alternate,i),i=i.return;Xt=null}}function Ko(i,r){var o=i.timeoutHandle;o!==-1&&(i.timeoutHandle=-1,AE(o)),o=i.cancelPendingCommit,o!==null&&(i.cancelPendingCommit=null,o()),Zs=0,A2(),_e=i,Xt=o=Bs(i.current,null),Jt=r,he=0,oi=null,Ir=!1,Go=Li(i,r),g2=!1,Yo=li=y2=Ga=Or=Ie=0,Qn=Cu=null,v2=!1,(r&8)!==0&&(r|=r&32);var u=i.entangledLanes;if(u!==0)for(i=i.entanglements,u&=r;0<u;){var d=31-Me(u),p=1<<d;r|=i[d],u&=~p}return Ws=r,_1(),o}function g7(i,r){Gt=null,W.H=_u,r===ko||r===C1?(r=Ip(),he=3):r===bd?(r=Ip(),he=4):he=r===t2?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,oi=r,Xt===null&&(Ie=1,z1(i,Ti(r,i.current)))}function y7(){var i=ri.current;return i===null?!0:(Jt&4194048)===Jt?wi===null:(Jt&62914560)===Jt||(Jt&536870912)!==0?i===wi:!1}function v7(){var i=W.H;return W.H=_u,i===null?_u:i}function _7(){var i=W.A;return W.A=tE,i}function J1(){Ie=4,Ir||(Jt&4194048)!==Jt&&ri.current!==null||(Go=!0),(Or&134217727)===0&&(Ga&134217727)===0||_e===null||Lr(_e,Jt,li,!1)}function x2(i,r,o){var u=le;le|=2;var d=v7(),p=_7();(_e!==i||Jt!==r)&&(W1=null,Ko(i,r)),r=!1;var E=Ie;t:do try{if(he!==0&&Xt!==null){var S=Xt,L=oi;switch(he){case 8:A2(),E=6;break t;case 3:case 2:case 9:case 6:ri.current===null&&(r=!0);var Q=he;if(he=0,oi=null,$o(i,S,L,Q),o&&Go){E=0;break t}break;default:Q=he,he=0,oi=null,$o(i,S,L,Q)}}iE(),E=Ie;break}catch(st){g7(i,st)}while(!0);return r&&i.shellSuspendCounter++,zs=La=null,le=u,W.H=d,W.A=p,Xt===null&&(_e=null,Jt=0,_1()),E}function iE(){for(;Xt!==null;)E7(Xt)}function sE(i,r){var o=le;le|=2;var u=v7(),d=_7();_e!==i||Jt!==r?(W1=null,X1=Pn()+500,Ko(i,r)):Go=Li(i,r);t:do try{if(he!==0&&Xt!==null){r=Xt;var p=oi;e:switch(he){case 1:he=0,oi=null,$o(i,r,p,1);break;case 2:case 9:if(Dp(p)){he=0,oi=null,T7(r);break}r=function(){he!==2&&he!==9||_e!==i||(he=7),Ts(i)},p.then(r,r);break t;case 3:he=7;break t;case 4:he=5;break t;case 7:Dp(p)?(he=0,oi=null,T7(r)):(he=0,oi=null,$o(i,r,p,7));break;case 5:var E=null;switch(Xt.tag){case 26:E=Xt.memoizedState;case 5:case 27:var S=Xt;if(E?ag(E):S.stateNode.complete){he=0,oi=null;var L=S.sibling;if(L!==null)Xt=L;else{var Q=S.return;Q!==null?(Xt=Q,th(Q)):Xt=null}break e}}he=0,oi=null,$o(i,r,p,5);break;case 6:he=0,oi=null,$o(i,r,p,6);break;case 8:A2(),Ie=6;break t;default:throw Error(s(462))}}rE();break}catch(st){g7(i,st)}while(!0);return zs=La=null,W.H=u,W.A=d,le=o,Xt!==null?0:(_e=null,Jt=0,_1(),Ie)}function rE(){for(;Xt!==null&&!Jf();)E7(Xt)}function E7(i){var r=q4(i.alternate,i,Ws);i.memoizedProps=i.pendingProps,r===null?th(i):Xt=r}function T7(i){var r=i,o=r.alternate;switch(r.tag){case 15:case 0:r=j4(o,r,r.pendingProps,r.type,void 0,Jt);break;case 11:r=j4(o,r,r.pendingProps,r.type.render,r.ref,Jt);break;case 5:jd(r);default:Y4(o,r),r=Xt=_p(r,Ws),r=q4(o,r,Ws)}i.memoizedProps=i.pendingProps,r===null?th(i):Xt=r}function $o(i,r,o,u){zs=La=null,jd(r),jo=null,hu=0;var d=r.return;try{if(Q_(i,d,r,o,Jt)){Ie=1,z1(i,Ti(o,i.current)),Xt=null;return}}catch(p){if(d!==null)throw Xt=d,p;Ie=1,z1(i,Ti(o,i.current)),Xt=null;return}r.flags&32768?(ee||u===1?i=!0:Go||(Jt&536870912)!==0?i=!1:(Ir=i=!0,(u===2||u===9||u===3||u===6)&&(u=ri.current,u!==null&&u.tag===13&&(u.flags|=16384))),A7(r,i)):th(r)}function th(i){var r=i;do{if((r.flags&32768)!==0){A7(r,Ir);return}i=r.return;var o=X_(r.alternate,r,Ws);if(o!==null){Xt=o;return}if(r=r.sibling,r!==null){Xt=r;return}Xt=r=i}while(r!==null);Ie===0&&(Ie=5)}function A7(i,r){do{var o=W_(i.alternate,i);if(o!==null){o.flags&=32767,Xt=o;return}if(o=i.return,o!==null&&(o.flags|=32768,o.subtreeFlags=0,o.deletions=null),!r&&(i=i.sibling,i!==null)){Xt=i;return}Xt=i=o}while(i!==null);Ie=6,Xt=null}function x7(i,r,o,u,d,p,E,S,L){i.cancelPendingCommit=null;do eh();while(on!==0);if((le&6)!==0)throw Error(s(327));if(r!==null){if(r===i.current)throw Error(s(177));if(p=r.lanes|r.childLanes,p|=hd,nd(i,o,p,E,S,L),i===_e&&(Xt=_e=null,Jt=0),Qo=r,Pr=i,Zs=o,_2=p,E2=d,f7=u,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(i.callbackNode=null,i.callbackPriority=0,uE(fr,function(){return R7(),null}
vendor: 14,389 bytes, line 48
48)):(i.callbackNode=null,i.callbackPriority=0),u=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||u){u=W.T,W.T=null,d=mt.p,mt.p=2,E=le,le|=4;try{Z_(i,r,o)}finally{le=E,mt.p=d,W.T=u}}on=1,S7(),w7(),b7()}}function S7(){if(on===1){on=0;var i=Pr,r=Qo,o=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||o){o=W.T,W.T=null;var u=mt.p;mt.p=2;var d=le;le|=4;try{s7(r,i);var p=P2,E=cp(i.containerInfo),S=p.focusedElem,L=p.selectionRange;if(E!==S&&S&&S.ownerDocument&&up(S.ownerDocument.documentElement,S)){if(L!==null&&ad(S)){var Q=L.start,st=L.end;if(st===void 0&&(st=Q),"selectionStart"in S)S.selectionStart=Q,S.selectionEnd=Math.min(st,S.value.length);else{var ut=S.ownerDocument||document,K=ut&&ut.defaultView||window;if(K.getSelection){var J=K.getSelection(),St=S.textContent.length,Mt=Math.min(L.start,St),ge=L.end===void 0?Mt:Math.min(L.end,St);!J.extend&&Mt>ge&&(E=ge,ge=Mt,Mt=E);var H=lp(S,Mt),B=lp(S,ge);if(H&&B&&(J.rangeCount!==1||J.anchorNode!==H.node||J.anchorOffset!==H.offset||J.focusNode!==B.node||J.focusOffset!==B.offset)){var Y=ut.createRange();Y.setStart(H.node,H.offset),J.removeAllRanges(),Mt>ge?(J.addRange(Y),J.extend(B.node,B.offset)):(Y.setEnd(B.node,B.offset),J.addRange(Y))}}}}for(ut=[],J=S;J=J.parentNode;)J.nodeType===1&&ut.push({element:J,left:J.scrollLeft,top:J.scrollTop});for(typeof S.focus=="function"&&S.focus(),S=0;S<ut.length;S++){var at=ut[S];at.element.scrollLeft=at.left,at.element.scrollTop=at.top}}dh=!!M2,P2=M2=null}finally{le=d,mt.p=u,W.T=o}}i.current=r,on=2}}function w7(){if(on===2){on=0;var i=Pr,r=Qo,o=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||o){o=W.T,W.T=null;var u=mt.p;mt.p=2;var d=le;le|=4;try{J4(i,r.alternate,r)}finally{le=d,mt.p=u,W.T=o}}on=3}}function b7(){if(on===4||on===3){on=0,Gc();var i=Pr,r=Qo,o=Zs,u=f7;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?on=5:(on=0,Qo=Pr=null,C7(i,i.pendingLanes));var d=i.pendingLanes;if(d===0&&(Mr=null),Ps(o),r=r.stateNode,gn&&typeof gn.onCommitFiberRoot=="function")try{gn.onCommitFiberRoot(Pi,r,void 0,(r.current.flags&128)===128)}catch{}if(u!==null){r=W.T,d=mt.p,mt.p=2,W.T=null;try{for(var p=i.onRecoverableError,E=0;E<u.length;E++){var S=u[E];p(S.value,{componentStack:S.stack})}}finally{W.T=r,mt.p=d}}(Zs&3)!==0&&eh(),Ts(i),d=i.pendingLanes,(o&261930)!==0&&(d&42)!==0?i===T2?Ru++:(Ru=0,T2=i):Ru=0,Nu(0)}}function C7(i,r){(i.pooledCacheLanes&=r)===0&&(r=i.pooledCache,r!=null&&(i.pooledCache=null,uu(r)))}function eh(){return S7(),w7(),b7(),R7()}function R7(){if(on!==5)return!1;var i=Pr,r=_2;_2=0;var o=Ps(Zs),u=W.T,d=mt.p;try{mt.p=32>o?32:o,W.T=null,o=E2,E2=null;var p=Pr,E=Zs;if(on=0,Qo=Pr=null,Zs=0,(le&6)!==0)throw Error(s(331));var S=le;if(le|=4,u7(p.current),a7(p,p.current,E,o),le=S,Nu(0,!1),gn&&typeof gn.onPostCommitFiberRoot=="function")try{gn.onPostCommitFiberRoot(Pi,p)}catch{}return!0}finally{mt.p=d,W.T=u,C7(i,r)}}function N7(i,r,o){r=Ti(o,r),r=Jd(i.stateNode,r,2),i=Rr(i,r,2),i!==null&&(_a(i,2),Ts(i))}function fe(i,r,o){if(i.tag===3)N7(i,i,o);else for(;r!==null;){if(r.tag===3){N7(r,i,o);break}else if(r.tag===1){var u=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof u.componentDidCatch=="function"&&(Mr===null||!Mr.has(u))){i=Ti(o,i),o=D4(2),u=Rr(r,o,2),u!==null&&(V4(o,u,r,i),_a(u,2),Ts(u));break}}r=r.return}}function S2(i,r,o){var u=i.pingCache;if(u===null){u=i.pingCache=new eE;var d=new Set;u.set(r,d)}else d=u.get(r),d===void 0&&(d=new Set,u.set(r,d));d.has(o)||(g2=!0,d.add(o),i=aE.bind(null,i,r,o),r.then(i,i))}function aE(i,r,o){var u=i.pingCache;u!==null&&u.delete(r),i.pingedLanes|=i.suspendedLanes&o,i.warmLanes&=~o,_e===i&&(Jt&o)===o&&(Ie===4||Ie===3&&(Jt&62914560)===Jt&&300>Pn()-$1?(le&2)===0&&Ko(i,0):y2|=o,Yo===Jt&&(Yo=0)),Ts(i)}function D7(i,r){r===0&&(r=Wc()),i=Oa(i,r),i!==null&&(_a(i,r),Ts(i))}function oE(i){var r=i.memoizedState,o=0;r!==null&&(o=r.retryLane),D7(i,o)}function lE(i,r){var o=0;switch(i.tag){case 31:case 13:var u=i.stateNode,d=i.memoizedState;d!==null&&(o=d.retryLane);break;case 19:u=i.stateNode;break;case 22:u=i.stateNode._retryCache;break;default:throw Error(s(314))}u!==null&&u.delete(r),D7(i,o)}function uE(i,r){return an(i,r)}var nh=null,Xo=null,w2=!1,ih=!1,b2=!1,kr=0;function Ts(i){i!==Xo&&i.next===null&&(Xo===null?nh=Xo=i:Xo=Xo.next=i),ih=!0,w2||(w2=!0,hE())}function Nu(i,r){if(!b2&&ih){b2=!0;do for(var o=!1,u=nh;u!==null;){if(i!==0){var d=u.pendingLanes;if(d===0)var p=0;else{var E=u.suspendedLanes,S=u.pingedLanes;p=(1<<31-Me(42|i)+1)-1,p&=d&~(E&~S),p=p&201326741?p&201326741|1:p?p|2:0}p!==0&&(o=!0,M7(u,p))}else p=Jt,p=is(u,u===_e?p:0,u.cancelPendingCommit!==null||u.timeoutHandle!==-1),(p&3)===0||Li(u,p)||(o=!0,M7(u,p));u=u.next}while(o);b2=!1}}function cE(){V7()}function V7(){ih=w2=!1;var i=0;kr!==0&&TE()&&(i=kr);for(var r=Pn(),o=null,u=nh;u!==null;){var d=u.next,p=I7(u,r);p===0?(u.next=null,o===null?nh=d:o.next=d,d===null&&(Xo=o)):(o=u,(i!==0||(p&3)!==0)&&(ih=!0)),u=d}on!==0&&on!==5||Nu(i),kr!==0&&(kr=0)}function I7(i,r){for(var o=i.suspendedLanes,u=i.pingedLanes,d=i.expirationTimes,p=i.pendingLanes&-62914561;0<p;){var E=31-Me(p),S=1<<E,L=d[E];L===-1?((S&o)===0||(S&u)!==0)&&(d[E]=ed(S,r)):L<=r&&(i.expiredLanes|=S),p&=~S}if(r=_e,o=Jt,o=is(i,i===r?o:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),u=i.callbackNode,o===0||i===r&&(he===2||he===9)||i.cancelPendingCommit!==null)return u!==null&&u!==null&&hr(u),i.callbackNode=null,i.callbackPriority=0;if((o&3)===0||Li(i,o)){if(r=o&-o,r===i.callbackPriority)return r;switch(u!==null&&hr(u),Ps(o)){case 2:case 8:o=Bl;break;case 32:o=fr;break;case 268435456:o=Yc;break;default:o=fr}return u=O7.bind(null,i),o=an(o,u),i.callbackPriority=r,i.callbackNode=o,r}return u!==null&&u!==null&&hr(u),i.callbackPriority=2,i.callbackNode=null,2}function O7(i,r){if(on!==0&&on!==5)return i.callbackNode=null,i.callbackPriority=0,null;var o=i.callbackNode;if(eh()&&i.callbackNode!==o)return null;var u=Jt;return u=is(i,i===_e?u:0,i.cancelPendingCommit!==null||i.timeoutHandle!==-1),u===0?null:(m7(i,u,r),I7(i,Pn()),i.callbackNode!=null&&i.callbackNode===o?O7.bind(null,i):null)}function M7(i,r){if(eh())return null;m7(i,r,!0)}function hE(){xE(function(){(le&6)!==0?an(jl,cE):V7()})}function C2(){if(kr===0){var i=Po;i===0&&(i=es,es<<=1,(es&261888)===0&&(es=256)),kr=i}return kr}function P7(i){return i==null||typeof i=="symbol"||typeof i=="boolean"?null:typeof i=="function"?i:Eo(""+i)}function L7(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 fE(i,r,o,u,d){if(r==="submit"&&o&&o.stateNode===d){var p=P7((d[hn]||null).action),E=u.submitter;E&&(r=(r=E[hn]||null)?P7(r.formAction):E.getAttribute("formAction"),r!==null&&(p=r,E=null));var S=new ms("action","action",null,u,d);i.push({event:S,listeners:[{instance:null,listener:function(){if(u.defaultPrevented){if(kr!==0){var L=E?L7(d,E):new FormData(d);Qd(o,{pending:!0,data:L,method:d.method,action:p},null,L)}}else typeof p=="function"&&(S.preventDefault(),L=E?L7(d,E):new FormData(d),Qd(o,{pending:!0,data:L,method:d.method,action:p},p,L))},currentTarget:d}]})}}for(var R2=0;R2<cd.length;R2++){var N2=cd[R2],dE=N2.toLowerCase(),mE=N2[0].toUpperCase()+N2.slice(1);qi(dE,"on"+mE)}qi(dp,"onAnimationEnd"),qi(mp,"onAnimationIteration"),qi(pp,"onAnimationStart"),qi("dblclick","onDoubleClick"),qi("focusin","onFocus"),qi("focusout","onBlur"),qi(D_,"onTransitionRun"),qi(V_,"onTransitionStart"),qi(I_,"onTransitionCancel"),qi(gp,"onTransitionEnd"),cs("onMouseEnter",["mouseout","mouseover"]),cs("onMouseLeave",["mouseout","mouseover"]),cs("onPointerEnter",["pointerout","pointerover"]),cs("onPointerLeave",["pointerout","pointerover"]),us("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),us("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),us("onBeforeInput",["compositionend","keypress","textInput","paste"]),us("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),us("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),us("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Du="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(" "),pE=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Du));function k7(i,r){r=(r&4)!==0;for(var o=0;o<i.length;o++){var u=i[o],d=u.event;u=u.listeners;t:{var p=void 0;if(r)for(var E=u.length-1;0<=E;E--){var S=u[E],L=S.instance,Q=S.currentTarget;if(S=S.listener,L!==p&&d.isPropagationStopped())break t;p=S,d.currentTarget=Q;try{p(d)}catch(st){v1(st)}d.currentTarget=null,p=L}else for(E=0;E<u.length;E++){if(S=u[E],L=S.instance,Q=S.currentTarget,S=S.listener,L!==p&&d.isPropagationStopped())break t;p=S,d.currentTarget=Q;try{p(d)}catch(st){v1(st)}d.currentTarget=null,p=L}}}}function Wt(i,r){var o=r[po];o===void 0&&(o=r[po]=new Set);var u=i+"__bubble";o.has(u)||(j7(r,i,2,!1),o.add(u))}function D2(i,r,o){var u=0;r&&(u|=4),j7(o,i,u,r)}var sh="_reactListening"+Math.random().toString(36).slice(2);function V2(i){if(!i[sh]){i[sh]=!0,Fl.forEach(function(o){o!=="selectionchange"&&(pE.has(o)||D2(o,!1,i),D2(o,!0,i))});var r=i.nodeType===9?i:i.ownerDocument;r===null||r[sh]||(r[sh]=!0,D2("selectionchange",!1,r))}}function j7(i,r,o,u){switch(dg(r)){case 2:var d=HE;break;case 8:d=qE;break;default:d=Y2}o=d.bind(null,r,o,i),d=void 0,!wa||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(d=!0),u?d!==void 0?i.addEventListener(r,o,{capture:!0,passive:d}):i.addEventListener(r,o,!0):d!==void 0?i.addEventListener(r,o,{passive:d}):i.addEventListener(r,o,!1)}function I2(i,r,o,u,d){var p=u;if((r&1)===0&&(r&2)===0&&u!==null)t:for(;;){if(u===null)return;var E=u.tag;if(E===3||E===4){var S=u.stateNode.containerInfo;if(S===d)break;if(E===4)for(E=u.return;E!==null;){var L=E.tag;if((L===3||L===4)&&E.stateNode.containerInfo===d)return;E=E.return}for(;S!==null;){if(E=os(S),E===null)return;if(L=E.tag,L===5||L===6||L===26||L===27){u=p=E;continue t}S=S.parentNode}}u=u.return}vr(function(){var Q=p,st=yi(o),ut=[];t:{var K=yp.get(i);if(K!==void 0){var J=ms,St=i;switch(i){case"keypress":if(Ca(o)===0)break t;case"keydown":case"keyup":J=p1;break;case"focusin":St="focus",J=Na;break;case"focusout":St="blur",J=Na;break;case"beforeblur":case"afterblur":J=Na;break;case"click":if(o.button===2)break t;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":J=eu;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":J=a1;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":J=v;break;case dp:case mp:case pp:J=l1;break;case gp:J=b;break;case"scroll":case"scrollend":J=tu;break;case"wheel":J=X;break;case"copy":case"cut":case"paste":J=u1;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":J=js;break;case"toggle":case"beforetoggle":J=qt}var Mt=(r&4)!==0,ge=!Mt&&(i==="scroll"||i==="scrollend"),H=Mt?K!==null?K+"Capture":null:K;Mt=[];for(var B=Q,Y;B!==null;){var at=B;if(Y=at.stateNode,at=at.tag,at!==5&&at!==26&&at!==27||Y===null||H===null||(at=Ui(B,H),at!=null&&Mt.push(Vu(B,at,Y))),ge)break;B=B.return}0<Mt.length&&(K=new J(K,St,null,o,st),ut.push({event:K,listeners:Mt}))}}if((r&7)===0){t:{if(K=i==="mouseover"||i==="pointerover",J=i==="mouseout"||i==="pointerout",K&&o!==Wl&&(St=o.relatedTarget||o.fromElement)&&(os(St)||St[rs]))break t;if((J||K)&&(K=st.window===st?st:(K=st.ownerDocument)?K.defaultView||K.parentWindow:window,J?(St=o.relatedTarget||o.toElement,J=Q,St=St?os(St):null,St!==null&&(ge=l(St),Mt=St.tag,St!==ge||Mt!==5&&Mt!==27&&Mt!==6)&&(St=null)):(J=null,St=Q),J!==St)){if(Mt=eu,at="onMouseLeave",H="onMouseEnter",B="mouse",(i==="pointerout"||i==="pointerover")&&(Mt=js,at="onPointerLeave",H="onPointerEnter",B="pointer"),ge=J==null?K:ei(J),Y=St==null?K:ei(St),K=new Mt(at,B+"leave",J,o,st),K.target=ge,K.relatedTarget=Y,at=null,os(st)===Q&&(Mt=new Mt(H,B+"enter",St,o,st),Mt.target=Y,Mt.relatedTarget=ge,at=Mt),ge=at,J&&St)e:{for(Mt=gE,H=J,B=St,Y=0,at=H;at;at=Mt(at))Y++;at=0;for(var Dt=B;Dt;Dt=Mt(Dt))at++;for(;0<Y-at;)H=Mt(H),Y--;for(;0<at-Y;)B=Mt(B),at--;for(;Y--;){if(H===B||B!==null&&H===B.alternate){Mt=H;break e}H=Mt(H),B=Mt(B)}Mt=null}else Mt=null;J!==null&&B7(ut,K,J,Mt,!1),St!==null&&ge!==null&&B7(ut,ge,St,Mt,!0)}}t:{if(K=Q?ei(Q):window,J=K.nodeName&&K.nodeName.toLowerCase(),J==="select"||J==="input"&&K.type==="file")var re=np;else if(tp(K))if(ip)re=C_;else{re=w_;var bt=S_}else J=K.nodeName,!J||J.toLowerCase()!=="input"||K.type!=="checkbox"&&K.type!=="radio"?Q&&_o(Q.elementType)&&(re=np):re=b_;if(re&&(re=re(i,Q))){ep(ut,re,o,st);break t}bt&&bt(i,K,Q),i==="focusout"&&Q&&K.type==="number"&&Q.memoizedProps.value!=null&&Kl(K,"number",K.value)}switch(bt=Q?ei(Q):window,i){case"focusin":(tp(bt)||bt.contentEditable==="true")&&(Co=bt,od=Q,au=null);break;case"focusout":au=od=Co=null;break;case"mousedown":ld=!0;break;case"contextmenu":case"mouseup":case"dragend":ld=!1,hp(ut,o,st);break;case"selectionchange":if(N_)break;case"keydown":case"keyup":hp(ut,o,st)}var Qt;if(oe)t:{switch(i){case"compositionstart":var te="onCompositionStart";break t;case"compositionend":te="onCompositionEnd";break t;case"compositionupdate":te="onCompositionUpdate";break t}te=void 0}else bo?Da(i,o)&&(te="onCompositionEnd"):i==="keydown"&&o.keyCode===229&&(te="onCompositionStart");te&&(ys&&o.locale!=="ko"&&(bo||te!=="onCompositionStart"?te==="onCompositionEnd"&&bo&&(Qt=Jl()):(ds=st,Zl="value"in ds?ds.value:ds.textContent,bo=!0)),bt=rh(Q,te),0<bt.length&&(te=new gs(te,i,null,o,st),ut.push({event:te,listeners:bt}),Qt?te.data=Qt:(Qt=wo(o),Qt!==null&&(te.data=Qt)))),(Qt=_i?E_(i,o):T_(i,o))&&(te=rh(Q,"onBeforeInput"),0<te.length&&(bt=new gs("onBeforeInput","beforeinput",null,o,st),ut.push({event:bt,listeners:te}),bt.data=Qt)),fE(ut,i,Q,o,st)}k7(ut,r)})}function Vu(i,r,o){return{instance:i,listener:r,currentTarget:o}}function rh(i,r){for(var o=r+"Capture",u=[];i!==null;){var d=i,p=d.stateNode;
vendor: 7,929 bytes, lines 48-49
48if(d=d.tag,d!==5&&d!==26&&d!==27||p===null||(d=Ui(i,o),d!=null&&u.unshift(Vu(i,d,p)),d=Ui(i,r),d!=null&&u.push(Vu(i,d,p))),i.tag===3)return u;i=i.return}return[]}function gE(i){if(i===null)return null;do i=i.return;while(i&&i.tag!==5&&i.tag!==27);return i||null}function B7(i,r,o,u,d){for(var p=r._reactName,E=[];o!==null&&o!==u;){var S=o,L=S.alternate,Q=S.stateNode;if(S=S.tag,L!==null&&L===u)break;S!==5&&S!==26&&S!==27||Q===null||(L=Q,d?(Q=Ui(o,p),Q!=null&&E.unshift(Vu(o,Q,L))):d||(Q=Ui(o,p),Q!=null&&E.push(Vu(o,Q,L)))),o=o.return}E.length!==0&&i.push({event:r,listeners:E})}var yE=/\r\n?/g,vE=/\u0000|\uFFFD/g;function U7(i){return(typeof i=="string"?i:""+i).replace(yE,` 49`).replace(vE,"")}function z7(i,r){return r=U7(r),U7(i)===r}function pe(i,r,o,u,d,p){switch(o){case"children":typeof u=="string"?r==="body"||r==="textarea"&&u===""||Hn(i,u):(typeof u=="number"||typeof u=="bigint")&&r!=="body"&&Hn(i,""+u);break;case"className":ni(i,"class",u);break;case"tabIndex":ni(i,"tabindex",u);break;case"dir":case"role":case"viewBox":case"width":case"height":ni(i,o,u);break;case"style":Xl(i,u,p);break;case"data":if(r!=="object"){ni(i,"data",u);break}case"src":case"href":if(u===""&&(r!=="a"||o!=="href")){i.removeAttribute(o);break}if(u==null||typeof u=="function"||typeof u=="symbol"||typeof u=="boolean"){i.removeAttribute(o);break}u=Eo(""+u),i.setAttribute(o,u);break;case"action":case"formAction":if(typeof u=="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 p=="function"&&(o==="formAction"?(r!=="input"&&pe(i,r,"name",d.name,d,null),pe(i,r,"formEncType",d.formEncType,d,null),pe(i,r,"formMethod",d.formMethod,d,null),pe(i,r,"formTarget",d.formTarget,d,null)):(pe(i,r,"encType",d.encType,d,null),pe(i,r,"method",d.method,d,null),pe(i,r,"target",d.target,d,null)));if(u==null||typeof u=="symbol"||typeof u=="boolean"){i.removeAttribute(o);break}u=Eo(""+u),i.setAttribute(o,u);break;case"onClick":u!=null&&(i.onclick=Bi);break;case"onScroll":u!=null&&Wt("scroll",i);break;case"onScrollEnd":u!=null&&Wt("scrollend",i);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(s(61));if(o=u.__html,o!=null){if(d.children!=null)throw Error(s(60));i.innerHTML=o}}break;case"multiple":i.multiple=u&&typeof u!="function"&&typeof u!="symbol";break;case"muted":i.muted=u&&typeof u!="function"&&typeof u!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(u==null||typeof u=="function"||typeof u=="boolean"||typeof u=="symbol"){i.removeAttribute("xlink:href");break}o=Eo(""+u),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":u!=null&&typeof u!="function"&&typeof u!="symbol"?i.setAttribute(o,""+u):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"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":u&&typeof u!="function"&&typeof u!="symbol"?i.setAttribute(o,""):i.removeAttribute(o);break;case"capture":case"download":u===!0?i.setAttribute(o,""):u!==!1&&u!=null&&typeof u!="function"&&typeof u!="symbol"?i.setAttribute(o,u):i.removeAttribute(o);break;case"cols":case"rows":case"size":case"span":u!=null&&typeof u!="function"&&typeof u!="symbol"&&!isNaN(u)&&1<=u?i.setAttribute(o,u):i.removeAttribute(o);break;case"rowSpan":case"start":u==null||typeof u=="function"||typeof u=="symbol"||isNaN(u)?i.removeAttribute(o):i.setAttribute(o,u);break;case"popover":Wt("beforetoggle",i),Wt("toggle",i),yo(i,"popover",u);break;case"xlinkActuate":Ye(i,"http://www.w3.org/1999/xlink","xlink:actuate",u);break;case"xlinkArcrole":Ye(i,"http://www.w3.org/1999/xlink","xlink:arcrole",u);break;case"xlinkRole":Ye(i,"http://www.w3.org/1999/xlink","xlink:role",u);break;case"xlinkShow":Ye(i,"http://www.w3.org/1999/xlink","xlink:show",u);break;case"xlinkTitle":Ye(i,"http://www.w3.org/1999/xlink","xlink:title",u);break;case"xlinkType":Ye(i,"http://www.w3.org/1999/xlink","xlink:type",u);break;case"xmlBase":Ye(i,"http://www.w3.org/XML/1998/namespace","xml:base",u);break;case"xmlLang":Ye(i,"http://www.w3.org/XML/1998/namespace","xml:lang",u);break;case"xmlSpace":Ye(i,"http://www.w3.org/XML/1998/namespace","xml:space",u);break;case"is":yo(i,"is",u);break;case"innerText":case"textContent":break;default:(!(2<o.length)||o[0]!=="o"&&o[0]!=="O"||o[1]!=="n"&&o[1]!=="N")&&(o=r1.get(o)||o,yo(i,o,u))}}function O2(i,r,o,u,d,p){switch(o){case"style":Xl(i,u,p);break;case"dangerouslySetInnerHTML":if(u!=null){if(typeof u!="object"||!("__html"in u))throw Error(s(61));if(o=u.__html,o!=null){if(d.children!=null)throw Error(s(60));i.innerHTML=o}}break;case"children":typeof u=="string"?Hn(i,u):(typeof u=="number"||typeof u=="bigint")&&Hn(i,""+u);break;case"onScroll":u!=null&&Wt("scroll",i);break;case"onScrollEnd":u!=null&&Wt("scrollend",i);break;case"onClick":u!=null&&(i.onclick=Bi);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Hl.hasOwnProperty(o))t:{if(o[0]==="o"&&o[1]==="n"&&(d=o.endsWith("Capture"),r=o.slice(2,d?o.length-7:void 0),p=i[hn]||null,p=p!=null?p[o]:null,typeof p=="function"&&i.removeEventListener(r,p,d),typeof u=="function")){typeof p!="function"&&p!==null&&(o in i?i[o]=null:i.hasAttribute(o)&&i.removeAttribute(o)),i.addEventListener(r,u,d);break t}o in i?i[o]=u:u===!0?i.setAttribute(o,""):yo(i,o,u)}}}function Tn(i,r,o){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Wt("error",i),Wt("load",i);var u=!1,d=!1,p;for(p in o)if(o.hasOwnProperty(p)){var E=o[p];if(E!=null)switch(p){case"src":u=!0;break;case"srcSet":d=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(s(137,r));default:pe(i,r,p,E,o,null)}}d&&pe(i,r,"srcSet",o.srcSet,o,null),u&&pe(i,r,"src",o.src,o,null);return;case"input":Wt("invalid",i);var S=p=E=d=null,L=null,Q=null;for(u in o)if(o.hasOwnProperty(u)){var st=o[u];if(st!=null)switch(u){case"name":d=st;break;case"type":E=st;break;case"checked":L=st;break;case"defaultChecked":Q=st;break;case"value":p=st;break;case"defaultValue":S=st;break;case"children":case"dangerouslySetInnerHTML":if(st!=null)throw Error(s(137,r));break;default:pe(i,r,u,st,o,null)}}n1(i,p,S,L,Q,E,d,!1);return;case"select":Wt("invalid",i),u=E=p=null;for(d in o)if(o.hasOwnProperty(d)&&(S=o[d],S!=null))switch(d){case"value":p=S;break;case"defaultValue":E=S;break;case"multiple":u=S;default:pe(i,r,d,S,o,null)}r=p,o=E,i.multiple=!!u,r!=null?mr(i,!!u,r,!1):o!=null&&mr(i,!!u,o,!0);return;case"textarea":Wt("invalid",i),p=d=u=null;for(E in o)if(o.hasOwnProperty(E)&&(S=o[E],S!=null))switch(E){case"value":u=S;break;case"defaultValue":d=S;break;case"children":p=S;break;case"dangerouslySetInnerHTML":if(S!=null)throw Error(s(91));break;default:pe(i,r,E,S,o,null)}pr(i,u,d,p);return;case"option":for(L in o)if(o.hasOwnProperty(L)&&(u=o[L],u!=null))switch(L){case"selected":i.selected=u&&typeof u!="function"&&typeof u!="symbol";break;default:pe(i,r,L,u,o,null)}return;case"dialog":Wt("beforetoggle",i),Wt("toggle",i),Wt("cancel",i),Wt("close",i);break;case"iframe":case"object":Wt("load",i);break;case"video":case"audio":for(u=0;
vendor: 5,647 bytes, line 49
49u<Du.length;u++)Wt(Du[u],i);break;case"image":Wt("error",i),Wt("load",i);break;case"details":Wt("toggle",i);break;case"embed":case"source":case"link":Wt("error",i),Wt("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(Q in o)if(o.hasOwnProperty(Q)&&(u=o[Q],u!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":throw Error(s(137,r));default:pe(i,r,Q,u,o,null)}return;default:if(_o(r)){for(st in o)o.hasOwnProperty(st)&&(u=o[st],u!==void 0&&O2(i,r,st,u,o,void 0));return}}for(S in o)o.hasOwnProperty(S)&&(u=o[S],u!=null&&pe(i,r,S,u,o,null))}function _E(i,r,o,u){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var d=null,p=null,E=null,S=null,L=null,Q=null,st=null;for(J in o){var ut=o[J];if(o.hasOwnProperty(J)&&ut!=null)switch(J){case"checked":break;case"value":break;case"defaultValue":L=ut;default:u.hasOwnProperty(J)||pe(i,r,J,null,u,ut)}}for(var K in u){var J=u[K];if(ut=o[K],u.hasOwnProperty(K)&&(J!=null||ut!=null))switch(K){case"type":p=J;break;case"name":d=J;break;case"checked":Q=J;break;case"defaultChecked":st=J;break;case"value":E=J;break;case"defaultValue":S=J;break;case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(s(137,r));break;default:J!==ut&&pe(i,r,K,J,u,ut)}}vo(i,E,S,L,Q,st,p,d);return;case"select":J=E=S=K=null;for(p in o)if(L=o[p],o.hasOwnProperty(p)&&L!=null)switch(p){case"value":break;case"multiple":J=L;default:u.hasOwnProperty(p)||pe(i,r,p,null,u,L)}for(d in u)if(p=u[d],L=o[d],u.hasOwnProperty(d)&&(p!=null||L!=null))switch(d){case"value":K=p;break;case"defaultValue":S=p;break;case"multiple":E=p;default:p!==L&&pe(i,r,d,p,u,L)}r=S,o=E,u=J,K!=null?mr(i,!!o,K,!1):!!u!=!!o&&(r!=null?mr(i,!!o,r,!0):mr(i,!!o,o?[]:"",!1));return;case"textarea":J=K=null;for(S in o)if(d=o[S],o.hasOwnProperty(S)&&d!=null&&!u.hasOwnProperty(S))switch(S){case"value":break;case"children":break;default:pe(i,r,S,null,u,d)}for(E in u)if(d=u[E],p=o[E],u.hasOwnProperty(E)&&(d!=null||p!=null))switch(E){case"value":K=d;break;case"defaultValue":J=d;break;case"children":break;case"dangerouslySetInnerHTML":if(d!=null)throw Error(s(91));break;default:d!==p&&pe(i,r,E,d,u,p)}i1(i,K,J);return;case"option":for(var St in o)if(K=o[St],o.hasOwnProperty(St)&&K!=null&&!u.hasOwnProperty(St))switch(St){case"selected":i.selected=!1;break;default:pe(i,r,St,null,u,K)}for(L in u)if(K=u[L],J=o[L],u.hasOwnProperty(L)&&K!==J&&(K!=null||J!=null))switch(L){case"selected":i.selected=K&&typeof K!="function"&&typeof K!="symbol";break;default:pe(i,r,L,K,u,J)}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 Mt in o)K=o[Mt],o.hasOwnProperty(Mt)&&K!=null&&!u.hasOwnProperty(Mt)&&pe(i,r,Mt,null,u,K);for(Q in u)if(K=u[Q],J=o[Q],u.hasOwnProperty(Q)&&K!==J&&(K!=null||J!=null))switch(Q){case"children":case"dangerouslySetInnerHTML":if(K!=null)throw Error(s(137,r));break;default:pe(i,r,Q,K,u,J)}return;default:if(_o(r)){for(var ge in o)K=o[ge],o.hasOwnProperty(ge)&&K!==void 0&&!u.hasOwnProperty(ge)&&O2(i,r,ge,void 0,u,K);for(st in u)K=u[st],J=o[st],!u.hasOwnProperty(st)||K===J||K===void 0&&J===void 0||O2(i,r,st,K,u,J);return}}for(var H in o)K=o[H],o.hasOwnProperty(H)&&K!=null&&!u.hasOwnProperty(H)&&pe(i,r,H,null,u,K);for(ut in u)K=u[ut],J=o[ut],!u.hasOwnProperty(ut)||K===J||K==null&&J==null||pe(i,r,ut,K,u,J)}function F7(i){switch(i){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function EE(){if(typeof performance.getEntriesByType=="function"){for(var i=0,r=0,o=performance.getEntriesByType("resource"),u=0;u<o.length;u++){var d=o[u],p=d.transferSize,E=d.initiatorType,S=d.duration;if(p&&S&&F7(E)){for(E=0,S=d.responseEnd,u+=1;u<o.length;u++){var L=o[u],Q=L.startTime;if(Q>S)break;var st=L.transferSize,ut=L.initiatorType;st&&F7(ut)&&(L=L.responseEnd,E+=st*(L<S?1:(S-Q)/(L-Q)))}if(--u,r+=8*(p+E)/(d.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 M2=null,P2=null;function ah(i){return i.nodeType===9?i:i.ownerDocument}function H7(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 q7(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 L2(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 k2=null;function TE(){var i=window.event;return i&&i.type==="popstate"?i===k2?!1:(k2=i,!0):(k2=null,!1)}var G7=typeof setTimeout=="function"?setTimeout:void 0,AE=typeof clearTimeout=="function"?clearTimeout:void 0,Y7=typeof Promise=="function"?Promise:void 0,xE=typeof queueMicrotask=="function"?queueMicrotask:typeof Y7<"u"?function(i){return Y7.resolve(null).then(i).catch(SE)}:G7;function SE(i){setTimeout(function(){throw i})}function jr(i){return i==="head"}function Q7(i,r){var o=r,u=0;do{var d=o.nextSibling;if(i.removeChild(o),d&&d.nodeType===8)if(o=d.data,o==="/$"||o==="/&"){if(u===0){i.removeChild(d),tl(r);return}u--}else if(o==="$"||o==="$?"||o==="$~"||o==="$!"||o==="&")u++;else if(o==="html")Iu(i.ownerDocument.documentElement);else if(o==="head"){o=i.ownerDocument.head,Iu(o);for(var p=o.firstChild;p;){var E=p.nextSibling,S=p.nodeName;
vendor: 11,735 bytes, line 49
49p[as]||S==="SCRIPT"||S==="STYLE"||S==="LINK"&&p.rel.toLowerCase()==="stylesheet"||o.removeChild(p),p=E}}else o==="body"&&Iu(i.ownerDocument.body);o=d}while(o);tl(r)}function K7(i,r){var o=i;i=0;do{var u=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||""),u&&u.nodeType===8)if(o=u.data,o==="/$"){if(i===0)break;i--}else o!=="$"&&o!=="$?"&&o!=="$~"&&o!=="$!"||i++;o=u}while(o)}function j2(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":j2(o),go(o);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(o.rel.toLowerCase()==="stylesheet")continue}i.removeChild(o)}}function wE(i,r,o,u){for(;i.nodeType===1;){var d=o;if(i.nodeName.toLowerCase()!==r.toLowerCase()){if(!u&&(i.nodeName!=="INPUT"||i.type!=="hidden"))break}else if(u){if(!i[as])switch(r){case"meta":if(!i.hasAttribute("itemprop"))break;return i;case"link":if(p=i.getAttribute("rel"),p==="stylesheet"&&i.hasAttribute("data-precedence"))break;if(p!==d.rel||i.getAttribute("href")!==(d.href==null||d.href===""?null:d.href)||i.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin)||i.getAttribute("title")!==(d.title==null?null:d.title))break;return i;case"style":if(i.hasAttribute("data-precedence"))break;return i;case"script":if(p=i.getAttribute("src"),(p!==(d.src==null?null:d.src)||i.getAttribute("type")!==(d.type==null?null:d.type)||i.getAttribute("crossorigin")!==(d.crossOrigin==null?null:d.crossOrigin))&&p&&i.hasAttribute("async")&&!i.hasAttribute("itemprop"))break;return i;default:return i}}else if(r==="input"&&i.type==="hidden"){var p=d.name==null?null:""+d.name;if(d.type==="hidden"&&i.getAttribute("name")===p)return i}else return i;if(i=bi(i.nextSibling),i===null)break}return null}function bE(i,r,o){if(r==="")return null;for(;i.nodeType!==3;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!o||(i=bi(i.nextSibling),i===null))return null;return i}function $7(i,r){for(;i.nodeType!==8;)if((i.nodeType!==1||i.nodeName!=="INPUT"||i.type!=="hidden")&&!r||(i=bi(i.nextSibling),i===null))return null;return i}function B2(i){return i.data==="$?"||i.data==="$~"}function U2(i){return i.data==="$!"||i.data==="$?"&&i.ownerDocument.readyState!=="loading"}function CE(i,r){var o=i.ownerDocument;if(i.data==="$~")i._reactRetry=r;else if(i.data!=="$?"||o.readyState!=="loading")r();else{var u=function(){r(),o.removeEventListener("DOMContentLoaded",u)};o.addEventListener("DOMContentLoaded",u),i._reactRetry=u}}function bi(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;if(r==="/$"||r==="/&")return null}}return i}var z2=null;function X7(i){i=i.nextSibling;for(var r=0;i;){if(i.nodeType===8){var o=i.data;if(o==="/$"||o==="/&"){if(r===0)return bi(i.nextSibling);r--}else o!=="$"&&o!=="$!"&&o!=="$?"&&o!=="$~"&&o!=="&"||r++}i=i.nextSibling}return null}function W7(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 Z7(i,r,o){switch(r=ah(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 Iu(i){for(var r=i.attributes;r.length;)i.removeAttributeNode(r[0]);go(i)}var Ci=new Map,J7=new Set;function oh(i){return typeof i.getRootNode=="function"?i.getRootNode():i.nodeType===9?i:i.ownerDocument}var Js=mt.d;mt.d={f:RE,r:NE,D:DE,C:VE,L:IE,m:OE,X:PE,S:ME,M:LE};function RE(){var i=Js.f(),r=Z1();return i||r}function NE(i){var r=gi(i);r!==null&&r.tag===5&&r.type==="form"?g4(r):Js.r(i)}var Wo=typeof document>"u"?null:document;function tg(i,r,o){var u=Wo;if(u&&typeof r=="string"&&r){var d=Fn(r);d='link[rel="'+i+'"][href="'+d+'"]',typeof o=="string"&&(d+='[crossorigin="'+o+'"]'),J7.has(d)||(J7.add(d),i={rel:i,crossOrigin:o,href:r},u.querySelector(d)===null&&(r=u.createElement("link"),Tn(r,"link",i),Ge(r),u.head.appendChild(r)))}}function DE(i){Js.D(i),tg("dns-prefetch",i,null)}function VE(i,r){Js.C(i,r),tg("preconnect",i,r)}function IE(i,r,o){Js.L(i,r,o);var u=Wo;if(u&&i&&r){var d='link[rel="preload"][as="'+Fn(r)+'"]';r==="image"&&o&&o.imageSrcSet?(d+='[imagesrcset="'+Fn(o.imageSrcSet)+'"]',typeof o.imageSizes=="string"&&(d+='[imagesizes="'+Fn(o.imageSizes)+'"]')):d+='[href="'+Fn(i)+'"]';var p=d;switch(r){case"style":p=Zo(i);break;case"script":p=Jo(i)}Ci.has(p)||(i=_({rel:"preload",href:r==="image"&&o&&o.imageSrcSet?void 0:i,as:r},o),Ci.set(p,i),u.querySelector(d)!==null||r==="style"&&u.querySelector(Ou(p))||r==="script"&&u.querySelector(Mu(p))||(r=u.createElement("link"),Tn(r,"link",i),Ge(r),u.head.appendChild(r)))}}function OE(i,r){Js.m(i,r);var o=Wo;if(o&&i){var u=r&&typeof r.as=="string"?r.as:"script",d='link[rel="modulepreload"][as="'+Fn(u)+'"][href="'+Fn(i)+'"]',p=d;switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":p=Jo(i)}if(!Ci.has(p)&&(i=_({rel:"modulepreload",href:i},r),Ci.set(p,i),o.querySelector(d)===null)){switch(u){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(o.querySelector(Mu(p)))return}u=o.createElement("link"),Tn(u,"link",i),Ge(u),o.head.appendChild(u)}}}function ME(i,r,o){Js.S(i,r,o);var u=Wo;if(u&&i){var d=ls(u).hoistableStyles,p=Zo(i);r=r||"default";var E=d.get(p);if(!E){var S={loading:0,preload:null};if(E=u.querySelector(Ou(p)))S.loading=5;else{i=_({rel:"stylesheet",href:i,"data-precedence":r},o),(o=Ci.get(p))&&F2(i,o);var L=E=u.createElement("link");Ge(L),Tn(L,"link",i),L._p=new Promise(function(Q,st){L.onload=Q,L.onerror=st}),L.addEventListener("load",function(){S.loading|=1}),L.addEventListener("error",function(){S.loading|=2}),S.loading|=4,lh(E,r,u)}E={type:"stylesheet",instance:E,count:1,state:S},d.set(p,E)}}}function PE(i,r){Js.X(i,r);var o=Wo;if(o&&i){var u=ls(o).hoistableScripts,d=Jo(i),p=u.get(d);p||(p=o.querySelector(Mu(d)),p||(i=_({src:i,async:!0},r),(r=Ci.get(d))&&H2(i,r),p=o.createElement("script"),Ge(p),Tn(p,"link",i),o.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},u.set(d,p))}}function LE(i,r){Js.M(i,r);var o=Wo;if(o&&i){var u=ls(o).hoistableScripts,d=Jo(i),p=u.get(d);p||(p=o.querySelector(Mu(d)),p||(i=_({src:i,async:!0,type:"module"},r),(r=Ci.get(d))&&H2(i,r),p=o.createElement("script"),Ge(p),Tn(p,"link",i),o.head.appendChild(p)),p={type:"script",instance:p,count:1,state:null},u.set(d,p))}}function eg(i,r,o,u){var d=(d=Ot.current)?oh(d):null;if(!d)throw Error(s(446));switch(i){case"meta":case"title":return null;case"style":return typeof o.precedence=="string"&&typeof o.href=="string"?(r=Zo(o.href),o=ls(d).hoistableStyles,u=o.get(r),u||(u={type:"style",instance:null,count:0,state:null},o.set(r,u)),u):{type:"void",instance:null,count:0,state:null};case"link":if(o.rel==="stylesheet"&&typeof o.href=="string"&&typeof o.precedence=="string"){i=Zo(o.href);var p=ls(d).hoistableStyles,E=p.get(i);if(E||(d=d.ownerDocument||d,E={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},p.set(i,E),(p=d.querySelector(Ou(i)))&&!p._p&&(E.instance=p,E.state.loading=5),Ci.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},Ci.set(i,o),p||kE(d,i,o,E.state))),r&&u===null)throw Error(s(528,""));return E}if(r&&u!==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=Jo(o),o=ls(d).hoistableScripts,u=o.get(r),u||(u={type:"script",instance:null,count:0,state:null},o.set(r,u)),u):{type:"void",instance:null,count:0,state:null};default:throw Error(s(444,i))}}function Zo(i){return'href="'+Fn(i)+'"'}function Ou(i){return'link[rel="stylesheet"]['+i+"]"}function ng(i){return _({},i,{"data-precedence":i.precedence,precedence:null})}function kE(i,r,o,u){i.querySelector('link[rel="preload"][as="style"]['+r+"]")?u.loading=1:(r=i.createElement("link"),u.preload=r,r.addEventListener("load",function(){return u.loading|=1}),r.addEventListener("error",function(){return u.loading|=2}),Tn(r,"link",o),Ge(r),i.head.appendChild(r))}function Jo(i){return'[src="'+Fn(i)+'"]'}function Mu(i){return"script[async]"+i}function ig(i,r,o){if(r.count++,r.instance===null)switch(r.type){case"style":var u=i.querySelector('style[data-href~="'+Fn(o.href)+'"]');if(u)return r.instance=u,Ge(u),u;var d=_({},o,{"data-href":o.href,"data-precedence":o.precedence,href:null,precedence:null});return u=(i.ownerDocument||i).createElement("style"),Ge(u),Tn(u,"style",d),lh(u,o.precedence,i),r.instance=u;case"stylesheet":d=Zo(o.href);var p=i.querySelector(Ou(d));if(p)return r.state.loading|=4,r.instance=p,Ge(p),p;u=ng(o),(d=Ci.get(d))&&F2(u,d),p=(i.ownerDocument||i).createElement("link"),Ge(p);var E=p;return E._p=new Promise(function(S,L){E.onload=S,E.onerror=L}),Tn(p,"link",u),r.state.loading|=4,lh(p,o.precedence,i),r.instance=p;case"script":return p=Jo(o.src),(d=i.querySelector(Mu(p)))?(r.instance=d,Ge(d),d):(u=o,(d=Ci.get(p))&&(u=_({},o),H2(u,d)),i=i.ownerDocument||i,d=i.createElement("script"),Ge(d),Tn(d,"link",u),i.head.appendChild(d),r.instance=d);case"void":return null;default:throw Error(s(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(u=r.instance,r.state.loading|=4,lh(u,o.precedence,i));return r.instance}function lh(i,r,o){for(var u=o.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),d=u.length?u[u.length-1]:null,p=d,E=0;E<u.length;E++){var S=u[E];if(S.dataset.precedence===r)p=S;else if(p!==d)break}p?p.parentNode.insertBefore(i,p.nextSibling):(r=o.nodeType===9?o.head:o,r.insertBefore(i,r.firstChild))}function F2(i,r){i.crossOrigin==null&&(i.crossOrigin=r.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=r.referrerPolicy),i.title==null&&(i.title=r.title)}function H2(i,r){i.crossOrigin==null&&(i.crossOrigin=r.crossOrigin),i.referrerPolicy==null&&(i.referrerPolicy=r.referrerPolicy),i.integrity==null&&(i.integrity=r.integrity)}var uh=null;function sg(i,r,o){if(uh===null){var u=new Map,d=uh=new Map;d.set(o,u)}else d=uh,u=d.get(o),u||(u=new Map,d.set(o,u));if(u.has(i))return u;for(u.set(i,null),o=o.getElementsByTagName(i),d=0;d<o.length;d++){var p=o[d];if(!(p[as]||p[qe]||i==="link"&&p.getAttribute("rel")==="stylesheet")&&p.namespaceURI!=="http://www.w3.org/2000/svg"){var E=p.getAttribute(r)||"";E=i+E;var S=u.get(E);S?S.push(p):u.set(E,[p])}}return u}function rg(i,r,o){i=i.ownerDocument||i,i.head.insertBefore(o,r==="title"?i.querySelector("head > title"):null)}function jE(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 ag(i){return!(i.type==="stylesheet"&&(i.state.loading&3)===0)}function BE(i,r,o,u){if(o.type==="stylesheet"&&(typeof u.media!="str
49ing"||matchMedia(u.media).matches!==!1)&&(o.state.loading&4)===0){if(o.instance===null){var d=Zo(u.href),p=r.querySelector(Ou(d));if(p){r=p._p,r!==null&&typeof r=="object"&&typeof r.then=="function"&&(i.count++,i=ch.bind(i),r.then(i,i)),o.state.loading|=4,o.instance=p,Ge(p);return}p=r.ownerDocument||r,u=ng(u),(d=Ci.get(d))&&F2(u,d),p=p.createElement("link"),Ge(p);var E=p;E._p=new Promise(function(S,L){E.onload=S,E.onerror=L}),Tn(p,"link",u),o.instance=p}i.stylesheets===null&&(i.stylesheets=new Map),i.stylesheets.set(o,r),(r=o.state.preload)&&(o.state.loading&3)===0&&(i.count++,o=ch.bind(i),r.addEventListener("load",o),r.addEventListener("error",o))}}var q2=0;function UE(i,r){return i.stylesheets&&i.count===0&&fh(i,i.stylesheets),0<i.count||0<i.imgCount?function(o){var u=setTimeout(function(){if(i.stylesheets&&fh(i,i.stylesheets),i.unsuspend){var p=i.unsuspend;i.unsuspend=null,p()}},6e4+r);0<i.imgBytes&&q2===0&&(q2=62500*EE());var d=setTimeout(function(){if(i.waitingForImages=!1,i.count===0&&(i.stylesheets&&fh(i,i.stylesheets),i.unsuspend)){var p=i.unsuspend;i.unsuspend=null,p()}},(i.imgBytes>q2?50:800)+r);return i.unsuspend=o,function(){i.unsuspend=null,clearTimeout(u),clearTimeout(d)}}:null}function ch(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)fh(this,this.stylesheets);else if(this.unsuspend){var i=this.unsuspend;this.unsuspend=null,i()}}}var hh=null;function fh(i,r){i.stylesheets=null,i.unsuspend!==null&&(i.count++,hh=new Map,r.forEach(zE,i),hh=null,ch.call(i))}function zE(i,r){if(!(r.state.loading&4)){var o=hh.get(i);if(o)var u=o.get(null);else{o=new Map,hh.set(i,o);for(var d=i.querySelectorAll("link[data-precedence],style[data-precedence]"),p=0;p<d.length;p++){var E=d[p];(E.nodeName==="LINK"||E.getAttribute("media")!=="not all")&&(o.set(E.dataset.precedence,E),u=E)}u&&o.set(null,u)}d=r.instance,E=d.getAttribute("data-precedence"),p=o.get(E)||u,p===u&&o.set(null,d),o.set(E,d),this.count++,u=ch.bind(this),d.addEventListener("load",u),d.addEventListener("error",u),p?p.parentNode.insertBefore(d,p.nextSibling):(i=i.nodeType===9?i.head:i,i.insertBefore(d,i.firstChild)),r.state.loading|=4}}var Pu={$$typeof:Z,Provider:null,Consumer:null,_currentValue:dt,_currentValue2:dt,_threadCount:0};function FE(i,r,o,u,d,p,E,S,L){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=u,this.onUncaughtError=d,this.onCaughtError=p,this.onRecoverableError=E,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=L,this.incompleteTransitions=new Map}function og(i,r,o,u,d,p,E,S,L,Q,st,ut){return i=new FE(i,r,o,E,L,Q,st,ut,S),r=1,p===!0&&(r|=24),p=si(3,null,null,r),i.current=p,p.stateNode=i,r=xd(),r.refCount++,i.pooledCache=r,r.refCount++,p.memoizedState={element:u,isDehydrated:o,cache:r},Cd(p),i}function lg(i){return i?(i=Do,i):Do}function ug(i,r,o,u,d,p){d=lg(d),u.context===null?u.context=d:u.pendingContext=d,u=Cr(r),u.payload={element:o},p=p===void 0?null:p,p!==null&&(u.callback=p),o=Rr(i,u,r),o!==null&&(Kn(o,i,r),du(o,i,r))}function cg(i,r){if(i=i.memoizedState,i!==null&&i.dehydrated!==null){var o=i.retryLane;i.retryLane=o!==0&&o<r?o:r}}function G2(i,r){cg(i,r),(i=i.alternate)&&cg(i,r)}function hg(i){if(i.tag===13||i.tag===31){var r=Oa(i,67108864);r!==null&&Kn(r,i,67108864),G2(i,67108864)}}function fg(i){if(i.tag===13||i.tag===31){var r=ui();r=Ta(r);var o=Oa(i,r);o!==null&&Kn(o,i,r),G2(i,r)}}var dh=!0;function HE(i,r,o,u){var d=W.T;W.T=null;var p=mt.p;try{mt.p=2,Y2(i,r,o,u)}finally{mt.p=p,W.T=d}}function qE(i,r,o,u){var d=W.T;W.T=null;var p=mt.p;try{mt.p=8,Y2(i,r,o,u)}finally{mt.p=p,W.T=d}}function Y2(i,r,o,u){if(dh){var d=Q2(u);if(d===null)I2(i,r,u,mh,o),mg(i,u);else if(YE(d,i,r,o,u))u.stopPropagation();else if(mg(i,u),r&4&&-1<GE.indexOf(i)){for(;d!==null;){var p=gi(d);if(p!==null)switch(p.tag){case 3:if(p=p.stateNode,p.current.memoizedState.isDehydrated){var E=ns(p.pendingLanes);if(E!==0){var S=p;for(S.pendingLanes|=2,S.entangledLanes|=2;E;){var L=1<<31-Me(E);S.entanglements[1]|=L,E&=~L}Ts(p),(le&6)===0&&(X1=Pn()+500,Nu(0))}}break;case 31:case 13:S=Oa(p,2),S!==null&&Kn(S,p,2),Z1(),G2(p,2)}if(p=Q2(u),p===null&&I2(i,r,u,mh,o),p===d)break;d=p}d!==null&&u.stopPropagation()}else I2(i,r,u,null,o)}}function Q2(i){return i=yi(i),K2(i)}var mh=null;function K2(i){if(mh=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=c(r),i!==null)return i;i=null}else if(o===31){if(i=h(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 mh=i,null}function dg(i){switch(i){case"beforetoggle":case"cancel":case"click":case"close"
vendor: 4,032 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(ya()){case jl:return 2;case Bl:return 8;case fr:case td:return 32;case Yc:return 268435456;default:return 32}default:return 32}}var $2=!1,Br=null,Ur=null,zr=null,Lu=new Map,ku=new Map,Fr=[],GE="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 mg(i,r){switch(i){case"focusin":case"focusout":Br=null;break;case"dragenter":case"dragleave":Ur=null;break;case"mouseover":case"mouseout":zr=null;break;case"pointerover":case"pointerout":Lu.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":ku.delete(r.pointerId)}}function ju(i,r,o,u,d,p){return i===null||i.nativeEvent!==p?(i={blockedOn:r,domEventName:o,eventSystemFlags:u,nativeEvent:p,targetContainers:[d]},r!==null&&(r=gi(r),r!==null&&hg(r)),i):(i.eventSystemFlags|=u,r=i.targetContainers,d!==null&&r.indexOf(d)===-1&&r.push(d),i)}function YE(i,r,o,u,d){switch(r){case"focusin":return Br=ju(Br,i,r,o,u,d),!0;case"dragenter":return Ur=ju(Ur,i,r,o,u,d),!0;case"mouseover":return zr=ju(zr,i,r,o,u,d),!0;case"pointerover":var p=d.pointerId;return Lu.set(p,ju(Lu.get(p)||null,i,r,o,u,d)),!0;case"gotpointercapture":return p=d.pointerId,ku.set(p,ju(ku.get(p)||null,i,r,o,u,d)),!0}return!1}function pg(i){var r=os(i.target);if(r!==null){var o=l(r);if(o!==null){if(r=o.tag,r===13){if(r=c(o),r!==null){i.blockedOn=r,ki(i.priority,function(){fg(o)});return}}else if(r===31){if(r=h(o),r!==null){i.blockedOn=r,ki(i.priority,function(){fg(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 ph(i){if(i.blockedOn!==null)return!1;for(var r=i.targetContainers;0<r.length;){var o=Q2(i.nativeEvent);if(o===null){o=i.nativeEvent;var u=new o.constructor(o.type,o);Wl=u,o.target.dispatchEvent(u),Wl=null}else return r=gi(o),r!==null&&hg(r),i.blockedOn=o,!1;r.shift()}return!0}function gg(i,r,o){ph(i)&&o.delete(r)}function QE(){$2=!1,Br!==null&&ph(Br)&&(Br=null),Ur!==null&&ph(Ur)&&(Ur=null),zr!==null&&ph(zr)&&(zr=null),Lu.forEach(gg),ku.forEach(gg)}function gh(i,r){i.blockedOn===r&&(i.blockedOn=null,$2||($2=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,QE)))}var yh=null;function yg(i){yh!==i&&(yh=i,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){yh===i&&(yh=null);for(var r=0;r<i.length;r+=3){var o=i[r],u=i[r+1],d=i[r+2];if(typeof u!="function"){if(K2(u||o)===null)continue;break}var p=gi(o);p!==null&&(i.splice(r,3),r-=3,Qd(p,{pending:!0,data:d,method:o.method,action:u},u,d))}}))}function tl(i){function r(L){return gh(L,i)}Br!==null&&gh(Br,i),Ur!==null&&gh(Ur,i),zr!==null&&gh(zr,i),Lu.forEach(r),ku.forEach(r);for(var o=0;o<Fr.length;o++){var u=Fr[o];u.blockedOn===i&&(u.blockedOn=null)}for(;0<Fr.length&&(o=Fr[0],o.blockedOn===null);
vendor: 5,353 bytes, line 49
49)pg(o),o.blockedOn===null&&Fr.shift();if(o=(i.ownerDocument||i).$$reactFormReplay,o!=null)for(u=0;u<o.length;u+=3){var d=o[u],p=o[u+1],E=d[hn]||null;if(typeof p=="function")E||yg(o);else if(E){var S=null;if(p&&p.hasAttribute("formAction")){if(d=p,E=p[hn]||null)S=E.formAction;else if(K2(d)!==null)continue}else S=E.action;typeof S=="function"?o[u+1]=S:(o.splice(u,3),u-=3),yg(o)}}}function vg(){function i(p){p.canIntercept&&p.info==="react-transition"&&p.intercept({handler:function(){return new Promise(function(E){return d=E})},focusReset:"manual",scroll:"manual"})}function r(){d!==null&&(d(),d=null),u||setTimeout(o,20)}function o(){if(!u&&!navigation.transition){var p=navigation.currentEntry;p&&p.url!=null&&navigation.navigate(p.url,{state:p.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var u=!1,d=null;return navigation.addEventListener("navigate",i),navigation.addEventListener("navigatesuccess",r),navigation.addEventListener("navigateerror",r),setTimeout(o,100),function(){u=!0,navigation.removeEventListener("navigate",i),navigation.removeEventListener("navigatesuccess",r),navigation.removeEventListener("navigateerror",r),d!==null&&(d(),d=null)}}}function X2(i){this._internalRoot=i}vh.prototype.render=X2.prototype.render=function(i){var r=this._internalRoot;if(r===null)throw Error(s(409));var o=r.current,u=ui();ug(o,u,i,r,null,null)},vh.prototype.unmount=X2.prototype.unmount=function(){var i=this._internalRoot;if(i!==null){this._internalRoot=null;var r=i.containerInfo;ug(i.current,2,null,i,null,null),Z1(),r[rs]=null}};function vh(i){this._internalRoot=i}vh.prototype.unstable_scheduleHydration=function(i){if(i){var r=Zc();i={blockedOn:null,target:i,priority:r};for(var o=0;o<Fr.length&&r!==0&&r<Fr[o].priority;o++);Fr.splice(o,0,i),o===0&&pg(i)}};var _g=t.version;if(_g!=="19.2.7")throw Error(s(527,_g,"19.2.7"));mt.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?y(i):null,i=i===null?null:i.stateNode,i};var KE={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:W,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var _h=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_h.isDisabled&&_h.supportsFiber)try{Pi=_h.inject(KE),gn=_h}catch{}}return Uu.createRoot=function(i,r){if(!a(i))throw Error(s(299));var o=!1,u="",d=b4,p=C4,E=R4;return r!=null&&(r.unstable_strictMode===!0&&(o=!0),r.identifierPrefix!==void 0&&(u=r.identifierPrefix),r.onUncaughtError!==void 0&&(d=r.onUncaughtError),r.onCaughtError!==void 0&&(p=r.onCaughtError),r.onRecoverableError!==void 0&&(E=r.onRecoverableError)),r=og(i,1,!1,null,null,o,u,null,d,p,E,vg),i[rs]=r.current,V2(i),new X2(r)},Uu.hydrateRoot=function(i,r,o){if(!a(i))throw Error(s(299));var u=!1,d="",p=b4,E=C4,S=R4,L=null;return o!=null&&(o.unstable_strictMode===!0&&(u=!0),o.identifierPrefix!==void 0&&(d=o.identifierPrefix),o.onUncaughtError!==void 0&&(p=o.onUncaughtError),o.onCaughtError!==void 0&&(E=o.onCaughtError),o.onRecoverableError!==void 0&&(S=o.onRecoverableError),o.formState!==void 0&&(L=o.formState)),r=og(i,1,!0,r,o??null,u,d,L,p,E,S,vg),r.context=lg(null),o=r.current,u=ui(),u=Ta(u),d=Cr(u),d.callback=null,Rr(o,d,u),o=u,r.current.lanes=o,_a(r,o),Ts(r),i[rs]=r.current,V2(i),new vh(r)},Uu.version="19.2.7",Uu}var Ng;function aT(){if(Ng)return J2.exports;Ng=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(t){console.error(t)}}return n(),J2.exports=rT(),J2.exports}var oT=aT();const V6=ct.createContext({});function I6(n){const t=ct.useRef(null);return t.current===null&&(t.current=n()),t.current}const lT=typeof window<"u",O6=lT?ct.useLayoutEffect:ct.useEffect,bf=ct.createContext(null);function M6(n,t){n.indexOf(t)===-1&&n.push(t)}function Xh(n,t){const e=n.indexOf(t);e>-1&&n.splice(e,1)}const Is=(n,t,e)=>e>t?t:e<n?n:e;let P6=()=>{};const na={},S9=n=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(n),w9=n=>typeof n=="object"&&n!==null,b9=n=>/^0[^.\s]+$/u.test(n);function C9(n){let t;return()=>(t===void 0&&(t=n()),t)}const Di=n=>n,Ic=(...n)=>n.reduce((t,e)=>s=>e(t(s))),uc=(n,t,e)=>{const s=t-n;return s?(e-n)/s:1};class L6{constructor(){this.subscriptions=[]}add(t){return M6(this.subscriptions,t),()=>Xh(this.subscriptions,t)}notify(t,e,s){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,e,s);else for(let l=0;l<a;l++){const c=this.subscriptions[l];c&&c(t,e,s)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const di=n=>n*1e3,Ni=n=>n/1e3,R9=(n,t)=>t?n*(1e3/t):0,N9=(n,t,e)=>(((1-3*e+3*t)*n+(3*e-6*t))*n+3*t)*n,uT=1e-7,cT=12;function hT(n,t,e,s,a){let l,c,h=0;do c=t+(e-t)/2,l=N9(c,s,a)-n,l>0?e=c:t=c;while(Math.abs(l)>uT&&++h<cT);return c}function Oc(n,t,e,s){if(n===t&&e===s)return Di;const a=l=>hT(l,0,1,n,e);return l=>l===0||l===1?l:N9(a(l),t,s)}const D9=n=>t=>t<=.5?n(2*t)/2:(2-n(2*(1-t)))/2,V9=n=>t=>1-n(1-t),I9=Oc(.33,1.53,.69,.99),k6=V9(I9),O9=D9(k6),M9=n=>n>=1?1:(n*=2)<1?.5*k6(n):.5*(2-Math.pow(2,-10*(n-1))),j6=n=>1-Math.sin(Math.acos(n)),P9=V9(j6),L9=D9(j6),fT=Oc(.42,0,1,1),dT=Oc(0,0,.58,1),k9=Oc(.42,0,.58,1),mT=n=>Array.isArray(n)&&typeof n[0]!="number",j9=n=>
vendor: 27,483 bytes, line 49
49Array.isArray(n)&&typeof n[0]=="number",pT={linear:Di,easeIn:fT,easeInOut:k9,easeOut:dT,circIn:j6,circInOut:L9,circOut:P9,backIn:k6,backInOut:O9,backOut:I9,anticipate:M9},gT=n=>typeof n=="string",Dg=n=>{if(j9(n)){P6(n.length===4);const[t,e,s,a]=n;return Oc(t,e,s,a)}else if(gT(n))return pT[n];return n},Eh=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function yT(n){let t=new Set,e=new Set,s=!1,a=!1;const l=new WeakSet;let c={delta:0,timestamp:0,isProcessing:!1};function h(g){l.has(g)&&(m.schedule(g),n()),g(c)}const m={schedule:(g,y=!1,_=!1)=>{const R=_&&s?t:e;return y&&l.add(g),R.add(g),g},cancel:g=>{e.delete(g),l.delete(g)},process:g=>{if(c=g,s){a=!0;return}s=!0;const y=t;t=e,e=y,t.forEach(h),t.clear(),s=!1,a&&(a=!1,m.process(g))}};return m}const vT=40;function B9(n,t){let e=!1,s=!0;const a={delta:0,timestamp:0,isProcessing:!1},l=()=>e=!0,c=Eh.reduce((Z,nt)=>(Z[nt]=yT(l),Z),{}),{setup:h,read:m,resolveKeyframes:g,preUpdate:y,update:_,preRender:x,render:R,postRender:N}=c,j=()=>{const Z=na.useManualTiming,nt=Z?a.timestamp:performance.now();e=!1,Z||(a.delta=s?1e3/60:Math.max(Math.min(nt-a.timestamp,vT),1)),a.timestamp=nt,a.isProcessing=!0,h.process(a),m.process(a),g.process(a),y.process(a),_.process(a),x.process(a),R.process(a),N.process(a),a.isProcessing=!1,e&&t&&(s=!1,n(j))},F=()=>{e=!0,s=!0,a.isProcessing||n(j)};return{schedule:Eh.reduce((Z,nt)=>{const ht=c[nt];return Z[nt]=(Et,I=!1,C=!1)=>(e||F(),ht.schedule(Et,I,C)),Z},{}),cancel:Z=>{for(let nt=0;nt<Eh.length;nt++)c[Eh[nt]].cancel(Z)},state:a,steps:c}}const{schedule:Te,cancel:ia,state:An,steps:i0}=B9(typeof requestAnimationFrame<"u"?requestAnimationFrame:Di,!0);let Mh;function _T(){Mh=void 0}const Un={now:()=>(Mh===void 0&&Un.set(An.isProcessing||na.useManualTiming?An.timestamp:performance.now()),Mh),set:n=>{Mh=n,queueMicrotask(_T)}},U9=n=>t=>typeof t=="string"&&t.startsWith(n),z9=U9("--"),ET=U9("var(--"),B6=n=>ET(n)?TT.test(n.split("/*")[0].trim()):!1,TT=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function Vg(n){return typeof n!="string"?!1:n.split("/*")[0].includes("var(--")}const xl={test:n=>typeof n=="number",parse:parseFloat,transform:n=>n},cc={...xl,transform:n=>Is(0,1,n)},Th={...xl,default:1},$u=n=>Math.round(n*1e5)/1e5,U6=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function AT(n){return n==null}const xT=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,z6=(n,t)=>e=>!!(typeof e=="string"&&xT.test(e)&&e.startsWith(n)||t&&!AT(e)&&Object.prototype.hasOwnProperty.call(e,t)),F9=(n,t,e)=>s=>{if(typeof s!="string")return s;const[a,l,c,h]=s.match(U6);return{[n]:parseFloat(a),[t]:parseFloat(l),[e]:parseFloat(c),alpha:h!==void 0?parseFloat(h):1}},ST=n=>Is(0,255,n),s0={...xl,transform:n=>Math.round(ST(n))},Xa={test:z6("rgb","red"),parse:F9("red","green","blue"),transform:({red:n,green:t,blue:e,alpha:s=1})=>"rgba("+s0.transform(n)+", "+s0.transform(t)+", "+s0.transform(e)+", "+$u(cc.transform(s))+")"};function wT(n){let t="",e="",s="",a="";return n.length>5?(t=n.substring(1,3),e=n.substring(3,5),s=n.substring(5,7),a=n.substring(7,9)):(t=n.substring(1,2),e=n.substring(2,3),s=n.substring(3,4),a=n.substring(4,5),t+=t,e+=e,s+=s,a+=a),{red:parseInt(t,16),green:parseInt(e,16),blue:parseInt(s,16),alpha:a?parseInt(a,16)/255:1}}const V0={test:z6("#"),parse:wT,transform:Xa.transform},Mc=n=>({test:t=>typeof t=="string"&&t.endsWith(n)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${n}`}),er=Mc("deg"),Cs=Mc("%"),wt=Mc("px"),bT=Mc("vh"),CT=Mc("vw"),Ig={...Cs,parse:n=>Cs.parse(n)/100,transform:n=>Cs.transform(n*100)},al={test:z6("hsl","hue"),parse:F9("hue","saturation","lightness"),transform:({hue:n,saturation:t,lightness:e,alpha:s=1})=>"hsla("+Math.round(n)+", "+Cs.transform($u(t))+", "+Cs.transform($u(e))+", "+$u(cc.transform(s))+")"},Ze={test:n=>Xa.test(n)||V0.test(n)||al.test(n),parse:n=>Xa.test(n)?Xa.parse(n):al.test(n)?al.parse(n):V0.parse(n),transform:n=>typeof n=="string"?n:n.hasOwnProperty("red")?Xa.transform(n):al.transform(n),getAnimatableNone:n=>{const t=Ze.parse(n);return t.alpha=0,Ze.transform(t)}},RT=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function NT(n){var t,e;return isNaN(n)&&typeof n=="string"&&(((t=n.match(U6))==null?void 0:t.length)||0)+(((e=n.match(RT))==null?void 0:e.length)||0)>0}const H9="number",q9="color",DT="var",VT="var(",Og="${}",IT=/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 dl(n){const t=n.toString(),e=[],s={color:[],number:[],var:[]},a=[];let l=0;const h=t.replace(IT,m=>(Ze.test(m)?(s.color.push(l),a.push(q9),e.push(Ze.parse(m))):m.startsWith(VT)?(s.var.push(l),a.push(DT),e.push(m)):(s.number.push(l),a.push(H9),e.push(parseFloat(m))),++l,Og)).split(Og);return{values:e,split:h,indexes:s,types:a}}function OT(n){return dl(n).values}function G9({split:n,types:t}){const e=n.length;return s=>{let a="";for(let l=0;l<e;l++)if(a+=n[l],s[l]!==void 0){const c=t[l];c===H9?a+=$u(s[l]):c===q9?a+=Ze.transform(s[l]):a+=s[l]}return a}}function MT(n){return G9(dl(n))}const PT=n=>typeof n=="number"?0:Ze.test(n)?Ze.getAnimatableNone(n):n,LT=(n,t)=>typeof n=="number"?t!=null&&t.trim().endsWith("/")?n:0:PT(n);function kT(n){const t=dl(n);return G9(t)(t.values.map((s,a)=>LT(s,t.split[a])))}const Wi={test:NT,parse:OT,createTransformer:MT,getAnimatableNone:kT};function r0(n,t,e){return e<0&&(e+=1),e>1&&(e-=1),e<1/6?n+(t-n)*6*e:e<1/2?t:e<2/3?n+(t-n)*(2/3-e)*6:n}function jT({hue:n,saturation:t,lightness:e,alpha:s}){n/=360,t/=100,e/=100;let a=0,l=0,c=0;if(!t)a=l=c=e;else{const h=e<.5?e*(1+t):e+t-e*t,m=2*e-h;a=r0(m,h,n+1/3),l=r0(m,h,n),c=r0(m,h,n-1/3)}return{red:Math.round(a*255),green:Math.round(l*255),blue:Math.round(c*255),alpha:s}}function Wh(n,t){return e=>e>0?t:n}const Ee=(n,t,e)=>n+(t-n)*e,a0=(n,t,e)=>{const s=n*n,a=e*(t*t-s)+s;return a<0?0:Math.sqrt(a)},BT=[V0,Xa,al],UT=n=>BT.find(t=>t.test(n));function Mg(n){const t=UT(n);if(!t)return!1;let e=t.parse(n);return t===al&&(e=jT(e)),e}const Pg=(n,t)=>{const e=Mg(n),s=Mg(t);if(!e||!s)return Wh(n,t);const a={...e};return l=>(a.red=a0(e.red,s.red,l),a.green=a0(e.green,s.green,l),a.blue=a0(e.blue,s.blue,l),a.alpha=Ee(e.alpha,s.alpha,l),Xa.transform(a))},I0=new Set(["none","hidden"]);function zT(n,t){return I0.has(n)?e=>e<=0?n:t:e=>e>=1?t:n}function FT(n,t){return e=>Ee(n,t,e)}function F6(n){return typeof n=="number"?FT:typeof n=="string"?B6(n)?Wh:Ze.test(n)?Pg:GT:Array.isArray(n)?Y9:typeof n=="object"?Ze.test(n)?Pg:HT:Wh}function Y9(n,t){const e=[...n],s=e.length,a=n.map((l,c)=>F6(l)(l,t[c]));return l=>{for(let c=0;c<s;c++)e[c]=a[c](l);return e}}function HT(n,t){const e={...n,...t},s={};for(const a in e)n[a]!==void 0&&t[a]!==void 0&&(s[a]=F6(n[a])(n[a],t[a]));return a=>{for(const l in s)e[l]=s[l](a);return e}}function qT(n,t){const e=[],s={color:0,var:0,number:0};for(let a=0;a<t.values.length;a++){const l=t.types[a],c=n.indexes[l][s[l]],h=n.values[c]??0;e[a]=h,s[l]++}return e}const GT=(n,t)=>{const e=Wi.createTransformer(t),s=dl(n),a=dl(t);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?I0.has(n)&&!a.values.length||I0.has(t)&&!s.values.length?zT(n,t):Ic(Y9(qT(s,a),a.values),e):Wh(n,t)};function Q9(n,t,e){return typeof n=="number"&&typeof t=="number"&&typeof e=="number"?Ee(n,t,e):F6(n)(n,t)}const YT=n=>{const t=({timestamp:e})=>n(e);return{start:(e=!0)=>Te.update(t,e),stop:()=>ia(t),now:()=>An.isProcessing?An.timestamp:Un.now()}},K9=(n,t,e=10)=>{let s="";const a=Math.max(Math.round(t/e),2);for(let l=0;l<a;l++)s+=Math.round(n(l/(a-1))*1e4)/1e4+", ";return`linear(${s.substring(0,s.length-2)})`},Zh=2e4;function H6(n){let t=0;const e=50;let s=n.next(t);for(;!s.done&&t<Zh;)t+=e,s=n.next(t);return t>=Zh?1/0:t}function QT(n,t=100,e){const s=e({...n,keyframes:[0,t]}),a=Math.min(H6(s),Zh);return{type:"keyframes",ease:l=>s.next(a*l).value/t,duration:Ni(a)}}const Oe={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};function O0(n,t){return n*Math.sqrt(1-t*t)}const KT=12;function $T(n,t,e){let s=e;for(let a=1;a<KT;a++)s=s-n(s)/t(s);return s}const o0=.001;function XT({duration:n=Oe.duration,bounce:t=Oe.bounce,velocity:e=Oe.velocity,mass:s=Oe.mass}){let a,l,c=1-t;c=Is(Oe.minDamping,Oe.maxDamping,c),n=Is(Oe.minDuration,Oe.maxDuration,Ni(n)),c<1?(a=g=>{const y=g*c,_=y*n,x=y-e,R=O0(g,c),N=Math.exp(-_);return o0-x/R*N},l=g=>{const _=g*c*n,x=_*e+e,R=Math.pow(c,2)*Math.pow(g,2)*n,N=Math.exp(-_),j=O0(Math.pow(g,2),c);return(-a(g)+o0>0?-1:1)*((x-R)*N)/j}):(a=g=>{const y=Math.exp(-g*n),_=(g-e)*n+1;return-o0+y*_},l=g=>{const y=Math.exp(-g*n),_=(e-g)*(n*n);return y*_});const h=5/n,m=$T(a,l,h);if(n=di(n),isNaN(m))return{stiffness:Oe.stiffness,damping:Oe.damping,duration:n};{const g=Math.pow(m,2)*s;return{stiffness:g,damping:c*2*Math.sqrt(s*g),duration:n}}}const WT=["duration","bounce"],ZT=["stiffness","damping","mass"];function Lg(n,t){return t.some(e=>n[e]!==void 0)}function JT(n){let t={velocity:Oe.velocity,stiffness:Oe.stiffness,damping:Oe.damping,mass:Oe.mass,isResolvedFromDuration:!1,...n};if(!Lg(n,ZT)&&Lg(n,WT))if(t.velocity=0,n.visualDuration){const e=n.visualDuration,s=2*Math.PI/(e*1.2),a=s*s,l=2*Is(.05,1,1-(n.bounce||0))*Math.sqrt(a);t={...t,mass:Oe.mass,stiffness:a,damping:l}}else{const e=XT({...n,velocity:0});t={...t,...e,mass:Oe.mass},t.isResolvedFromDuration=!0}return t}function Jh(n=Oe.visualDuration,t=Oe.bounce){const e=typeof n!="object"?{visualDuration:n,keyframes:[0,1],bounce:t}:n;let{restSpeed:s,restDelta:a}=e;const l=e.keyframes[0],c=e.keyframes[e.keyframes.length-1],h={done:!1,value:l},{stiffness:m,damping:g,mass:y,duration:_,velocity:x,isResolvedFromDuration:R}=JT({...e,velocity:-Ni(e.velocity||0)}),N=x||0,j=g/(2*Math.sqrt(m*y)),F=c-l,q=Ni(Math.sqrt(m/y)),tt=Math.abs(F)<5;s||(s=tt?Oe.restSpeed.granular:Oe.restSpeed.default),a||(a=tt?Oe.restDelta.granular:Oe.restDelta.default);let Z,nt,ht,Et,I,C;if(j<1)ht=O0(q,j),Et=(N+j*q*F)/ht,Z=M=>{const P=Math.exp(-j*q*M);return c-P*(Et*Math.sin(ht*M)+F*Math.cos(ht*M))},I=j*q*Et+F*ht,C=j*q*F-Et*ht,nt=M=>Math.exp(-j*q*M)*(I*Math.sin(ht*M)+C*Math.cos(ht*M));else if(j===1){Z=P=>c-Math.exp(-q*P)*(F+(N+q*F)*P);const M=N+q*F;nt=P=>Math.exp(-q*P)*(q*M*P-N)}else{const M=q*Math.sqrt(j*j-1);Z=At=>{const Ut=Math.exp(-j*q*At),W=Math.min(M*At,300);return c-Ut*((N+j*q*F)*Math.sinh(W)+M*F*Math.cosh(W))/M};const P=(N+j*q*F)/M,U=j*q*P-F*M,O=j*q*F-P*M;nt=At=>{const Ut=Math.exp(-j*q*At),W=Math.min(M*At,300);return Ut*(U*Math.sinh(W)+O*Math.cosh(W))}}const V={calculatedDuration:R&&_||null,velocity:M=>di(nt(M)),next:M=>{if(!R&&j<1){const U=Math.exp(-j*q*M),O=Math.sin(ht*M),At=Math.cos(ht*M),Ut=c-U*(Et*O+F*At),W=di(U*(I*O+C*At));return h.done=Math.abs(W)<=s&&Math.abs(c-Ut)<=a,h.value=h.done?c:Ut,h}const P=Z(M);if(R)h.done=M>=_;else{const U=di(nt(M));h.done=Math.abs(U)<=s&&Math.abs(c-P)<=a}return h.value=h.done?c:P,h},toString:()=>{const M=Math.min(H6(V),Zh),P=K9(U=>V.next(M*U).value,M,30);return M+"ms "+P},toTransition:()=>{}};return V}Jh.applyToOptions=n=>{const t=QT(n,100,Jh);return n.ease=t.ease,n.duration=di(t.duration),n.type="keyframes",n};const tA=5;function $9(n,t,e){const s=Math.max(t-tA,0);return R9(e-n(s),t-s)}function M0({keyframes:n,velocity:t=0,power:e=.8,timeConstant:s=325,bounceDamping:a=10,bounceStiffness:l=500,modifyTarget:c,min:h,max:m,restDelta:g=.5,restSpeed:y}){const _=n[0],x={done:!1,value:_},R=C=>h!==void 0&&C<h||m!==void 0&&C>m,N=C=>h===void 0?m:m===void 0||Math.abs(h-C)<Math.abs(m-C)?h:m;let j=e*t;const F=_+j,q=c===void 0?F:c(F);q!==F&&(j=q-_);const tt=C=>-j*Math.exp(-C/s),Z=C=>q+tt(C),nt=C=>{const V=tt(C),M=Z(C);x.done=Math.abs(V)<=g,x.value=x.done?q:M};let ht,Et;const I=C=>{R(x.value)&&(ht=C,Et=Jh({keyframes:[x.value,N(x.value)],velocity:$9(Z,C,x.value),damping:a,stiffness:l,restDelta:g,restSpeed:y}))};return I(0),{calculatedDuration:null,next:C=>{let V=!1;return!Et&&ht===void 0&&(V=!0,nt(C),I(C)),ht!==void 0&&C>=ht?Et.next(C-ht):(!V&&nt(C),x)}}}function eA(n,t,e){const s=[],a=e||na.mix||Q9,l=n.length-1;for(let c=0;c<l;c++){let h=a(n[c],n[c+1]);if(t){const m=Array.isArray(t)?t[c]||Di:t;h=Ic(m,h)}s.push(h)}return s}function nA(n,t,{clamp:e=!0,ease:s,mixer:a}={}){const l=n.length;if(P6(l===t.length),l===1)return()=>t[0];if(l===2&&t[0]===t[1])return()=>t[1];const c=n[0]===n[1];n[0]>n[l-1]&&(n=[...n].reverse(),t=[...t].reverse());const h=eA(t,s,a),m=h.length,g=y=>{if(c&&y<n[0])return t[0];let _=0;if(m>1)for(;_<n.length-2&&!(y<n[_+1]);_++);const x=uc(n[_],n[_+1],y);return h[_](x)};return e?y=>g(Is(n[0],n[l-1],y)):g}function iA(n,t){const e=n[n.length-1];for(let s=1;s<=t;s++){const a=uc(0,t,s);n.push(Ee(e,1,a))}}function sA(n){const t=[0];return iA(t,n.length-1),t}function rA(n,t){return n.map(e=>e*t)}function aA(n,t){return n.map(()=>t||k9).splice(0,n.length-1)}function Xu({duration:n=300,keyframes:t,times:e,ease:s="easeInOut"}){const a=mT(s)?s.map(Dg):Dg(s),l={done:!1,value:t[0]},c=rA(e&&e.length===t.length?e:sA(t),n),h=nA(c,t,{ease:Array.isArray(a)?a:aA(t,a)});return{calculatedDuration:n,next:m=>(l.value=h(m),l.done=m>=n,l)}}const oA=n=>n!==null;function Cf(n,{repeat:t,repeatType:e="loop"},s,a=1){const l=n.filter(oA),h=a<0||t&&e!=="loop"&&t%2===1?0:l.length-1;return!h||s===void 0?l[h]:s}const lA={decay:M0,inertia:M0,tween:Xu,keyframes:Xu,spring:Jh};function X9(n){typeof n.type=="string"&&(n.type=lA[n.type])}class q6{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,e){return this.finished.then(t,e)}}const uA=n=>n/100;class tf extends q6{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.delayState={done:!1,value:void 0},this.stop=()=>{var s,a;const{motionValue:e}=this.options;e&&e.updatedAt!==Un.now()&&this.tick(Un.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(a=(s=this.options).onStop)==null||a.call(s))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;X9(t);const{type:e=Xu,repeat:s=0,repeatDelay:a=0,repeatType:l,velocity:c=0}=t;let{keyframes:h}=t;const m=e||Xu;m!==Xu&&typeof h[0]!="number"&&(this.mixKeyframes=Ic(uA,Q9(h[0],h[1])),h=[0,100]);const g=m({...t,keyframes:h});l==="mirror"&&(this.mirroredGenerator=m({...t,keyframes:[...h].reverse(),velocity:-c})),g.calculatedDuration===null&&(g.calculatedDuration=H6(g));const{calculatedDuration:y}=g;this.calculatedDuration=y,this.resolvedDuration=y+a,this.totalDuration=this.resolvedDuration*(s+1)-a,this.generator=g}updateTime(t){const e=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=e}tick(t,e=!1){const{generator:s,totalDuration:a,mixKeyframes:l,mirroredGenerator:c,resolvedDuration:h,calculatedDuration:m}=this;if(this.startTime===null)return s.next(0);const{delay:g=0,keyframes:y,repeat:_,repeatType:x,repeatDelay:R,type:N,onUpdate:j,finalKeyframe:F}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-a/this.speed,this.startTime)),e?this.currentTime=t:this.updateTime(t);const q=this.currentTime-g*(this.playbackSpeed>=0?1:-1),tt=this.playbackSpeed>=0?q<0:q>a;this.currentTime=Math.max(q,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=a);let Z=this.currentTime,nt=s;if(_){const C=Math.min(this.currentTime,a)/h;let V=Math.floor(C),M=C%1;!M&&C>=1&&(M=1),M===1&&V--,V=Math.min(V,_+1),!!(V%2)&&(x==="reverse"?(M=1-M,R&&(M-=R/h)):x==="mirror"&&(nt=c)),Z=Is(0,1,M)*h}let ht;tt?(this.delayState.value=y[0],ht=this.delayState):ht=nt.next(Z),l&&!tt&&(ht.value=l(ht.value));let{done:Et}=ht;!tt&&m!==null&&(Et=this.playbackSpeed>=0?this.currentTime>=a:this.currentTime<=0);const I=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&Et);return I&&N!==M0&&(ht.value=Cf(y,this.options,F,this.speed)),j&&j(ht.value),I&&this.finish(),ht}then(t,e){return this.finished.then(t,e)}get duration(){return Ni(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ni(t)}get time(){return Ni(this.currentTime)}set time(t){t=di(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),this.driver?this.driver.start(!1):(this.startTime=0,this.state="paused",this.holdTime=t,this.tick(t))}getGeneratorVelocity(){const t=this.currentTime;if(t<=0)return this.options.velocity||0;if(this.generator.velocity)return this.generator.velocity(t);const e=this.generator.next(t).value;return $9(s=>this.generator.next(s).value,t,e)}get speed(){return this.playbackSpeed}set speed(t){const e=this.playbackSpeed!==t;e&&this.driver&&this.updateTime(Un.now()),this.playbackSpeed=t,e&&this.driver&&(this.time=Ni(this.currentTime))}play(){var a,l;if(this.isStopped)return;const{driver:t=YT,startTime:e}=this.options;this.driver||(this.driver=t(c=>this.tick(c))),(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=e??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(Un.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,e;this.notifyFinished(),this.teardown(),this.state="finished",(e=(t=this.options).onComplete)==null||e.call(t)}cancel(){var t,e;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(e=(t=this.options).onCancel)==null||e.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var e;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(e=this.driver)==null||e.stop(),t.observe(this)}}function cA(n){for(let t=1;t<n.length;t++)n[t]??(n[t]=n[t-1])}const Wa=n=>n*180/Math.PI,P0=n=>{const t=Wa(Math.atan2(n[1],n[0]));return L0(t)},hA={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:n=>(Math.abs(n[0])+Math.abs(n[3]))/2,rotate:P0,rotateZ:P0,skewX:n=>Wa(Math.atan(n[1])),skewY:n=>Wa(Math.atan(n[2])),skew:n=>(Math.abs(n[1])+Math.abs(n[2]))/2},L0=n=>(n=n%360,n<0&&(n+=360),n),kg=P0,jg=n=>Math.sqrt(n[0]*n[0]+n[1]*n[1]),Bg=n=>Math.sqrt(n[4]*n[4]+n[5]*n[5]),fA={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:jg,scaleY:Bg,scale:n=>(jg(n)+Bg(n))/2,rotateX:n=>L0(Wa(Math.atan2(n[6],n[5]))),rotateY:n=>L0(Wa(Math.atan2(-n[2],n[0]))),rotateZ:kg,rotate:kg,skewX:n=>Wa(Math.atan(n[4])),skewY:n=>Wa(Math.atan(n[1])),skew:n=>(Math.abs(n[1])+Math.abs(n[4]))/2};function k0(n){return n.includes("scale")?1:0}function j0(n,t){if(!n||n==="none")return k0(t);const e=n.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let s,a;if(e)s=fA,a=e;else{const h=n.match(/^matrix\(([-\d.e\s,]+)\)$/u);s=hA,a=h}if(!a)return k0(t);const l=s[t],c=a[1].split(",").map(mA);return typeof l=="function"?l(c):c[l]}const dA=(n,t)=>{const{transform:e="none"}=getComputedStyle(n);return j0(e,t)};function mA(n){return parseFloat(n.trim())}const Sl=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],wl=new Set([...Sl,"pathRotation"]),Ug=n=>n===xl||n===wt,pA=new Set(["x","y","z"]),gA=Sl.filter(n=>!pA.has(n));function yA(n){const t=[];return gA.forEach(e=>{const s=n.getValue(e);s!==void 0&&(t.push([e,s.get()]),s.set(e.startsWith("scale")?1:0))}),t}const Kr={width:({x:n},{paddingLeft:t="0",paddingRight:e="0",boxSizing:s})=>{const a=n.max-n.min;return s==="border-box"?a:a-parseFloat(t)-parseFloat(e)},height:({y:n},{paddingTop:t="0",paddingBottom:e="0",boxSizing:s})=>{const a=n.max-n.min;return s==="border-box"?a:a-parseFloat(t)-parseFloat(e)},top:(n,{top:t})=>parseFloat(t),left:(n,{left:t})=>parseFloat(t),bottom:({y:n},{top:t})=>parseFloat(t)+(n.max-n.min),right:({x:n},{left:t})=>parseFloat(t)+(n.max-n.min),x:(n,{transform:t})=>j0(t,"x"),y:(n,{transform:t})=>j0(t,"y")};Kr.translateX=Kr.x;Kr.translateY=Kr.y;const Ja=new Set;let B0=!1,U0=!1,z0=!1;function W9(){if(U0){const n=Array.from(Ja).filter(s=>s.needsMeasurement),t=new Set(n.map(s=>s.element)),e=new Map;t.forEach(s=>{const a=yA(s);a.length&&(e.set(s,a),s.render())}),n.forEach(s=>s.measureInitialState()),t.forEach(s=>{s.render();const a=e.get(s);a&&a.forEach(([l,c])=>{var h;(h=s.getValue(l))==null||h.set(c)})}),n.forEach(s=>s.measureEndState()),n.forEach(s=>{s.suspendedScrollY!==void 0&&window.scrollTo(0,s.suspendedScrollY)})}U0=!1,B0=!1,Ja.forEach(n=>n.complete(z0)),Ja.clear()}function Z9(){Ja.forEach(n=>{n.readKeyframes(),n.needsMeasurement&&(U0=!0)})}function vA(){z0=!0,Z9(),W9(),z0=!1}class G6{constructor(t,e,s,a,l,c=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=s,this.motionValue=a,this.element=l,this.isAsync=c}scheduleResolve(){this.state="scheduled",this.isAsync?(Ja.add(this),B0||(B0=!0,Te.read(Z9),Te.resolveKeyframes(W9))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:s,motionValue:a}=this;if(t[0]===null){const l=a==null?void 0:a.get(),c=t[t.length-1];if(l!==void 0)t[0]=l;else if(s&&e){const h=s.readValue(e,c);h!=null&&(t[0]=h)}t[0]===void 0&&(t[0]=c),a&&l===void 0&&a.set(t[0])}cA(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),Ja.delete(this)}cancel(){this.state==="scheduled"&&(Ja.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const _A=n=>n.startsWith("--");function J9(n,t,e){_A(t)?n.style.setProperty(t,e):n.style[t]=e}const EA={};function t5(n,t){const e=C9(n);return()=>EA[t]??e()}const TA=t5(()=>window.ScrollTimeline!==void 0,"scrollTimeline"),e5=t5(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),qu=([n,t,e,s])=>`cubic-bezier(${n}, ${t}, ${e}, ${s})`,zg={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:qu([0,.65,.55,1]),circOut:qu([.55,0,1,.45]),backIn:qu([.31,.01,.66,-.59]),backOut:qu([.33,1.53,.69,.99])};function n5(n,t){if(n)return typeof n=="function"?e5()?K9(n,t):"ease-out":j9(n)?qu(n):Array.isArray(n)?n.map(e=>n5(e,t)||zg.easeOut):zg[n]}function AA(n,t,e,{delay:s=0,duration:a=300,repeat:l=0,repeatType:c="loop",ease:h="easeOut",times:m}={},g=void 0){const y={[t]:e};m&&(y.offset=m);const _=n5(h,a);Array.isArray(_)&&(y.easing=_);const x={delay:s,duration:a,easing:Array.isArray(_)?"linear":_,fill:"both",iterations:l+1,direction:c==="reverse"?"alternate":"normal"};return g&&(x.pseudoElement=g),n.animate(y,x)}function i5(n){return typeof n=="function"&&"applyToOptions"in n}function xA({type:n,...t}){return i5(n)&&e5()?n.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class s5 extends q6{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!t)return;const{element:e,name:s,keyframes:a,pseudoElement:l,allowFlatten:c=!1,finalKeyframe:h,onComplete:m}=t;this.isPseudoElement=!!l,this.allowFlatten=c,this.options=t,P6(typeof t.type!="string");const g=xA(t);this.animation=AA(e,s,a,g,l),g.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!l){const y=Cf(a,this.options,h,this.speed);this.updateMotionValue&&this.updateMotionValue(y),J9(e,s,y),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 t,e;(e=(t=this.animation).finish)==null||e.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var e,s,a;const t=(e=this.options)==null?void 0:e.element;!this.isPseudoElement&&(t!=null&&t.isConnected)&&((a=(s=this.animation).commitStyles)==null||a.call(s))}get duration(){var e,s;const t=((s=(e=this.animation.effect)==null?void 0:e.getComputedTiming)==null?void 0:s.call(e).duration)||0;return Ni(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Ni(t)}get time(){return Ni(Number(this.animation.currentTime)||0)}set time(t){const e=this.finishedTime!==null;this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=di(t),e&&this.animation.pause()}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(t){this.manualStartTime=this.animation.startTime=t}attachTimeline({timeline:t,rangeStart:e,rangeEnd:s,observe:a}){var l;return this.allowFlatten&&((l=this.animation.effect)==null||l.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&TA()?(this.animation.timeline=t,e&&(this.animation.rangeStart=e),s&&(this.animation.rangeEnd=s),Di):a(this)}}const r5={anticipate:M9,backInOut:O9,circInOut:L9};function SA(n){return n in r5}function wA(n){typeof n.ease=="string"&&SA(n.ease)&&(n.ease=r5[n.ease])}const l0=10;class bA extends s5{constructor(t){wA(t),X9(t),super(t),t.startTime!==void 0&&t.autoplay!==!1&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:e,onUpdate:s,onComplete:a,element:l,...c}=this.options;if(!e)return;if(t!==void 0){e.set(t);return}const h=new tf({...c,autoplay:!1}),m=Math.max(l0,Un.now()-this.startTime),g=Is(0,l0,m-l0),y=h.sample(m).value,{name:_}=this.options;l&&_&&J9(l,_,y),e.setWithVelocity(h.sample(Math.max(0,m-g)).value,y,g),h.stop()}}const Fg=(n,t)=>t==="zIndex"?!1:!!(typeof n=="number"||Array.isArray(n)||typeof n=="string"&&(Wi.test(n)||n==="0")&&!n.startsWith("url("));function CA(n){const t=n[0];if(n.length===1)return!0;for(let e=0;e<n.length;e++)if(n[e]!==t)return!0}function RA(n,t,e,s){const a=n[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const l=n[n.length-1],c=Fg(a,t),h=Fg(l,t);return!c||!h?!1:CA(n)||(e==="spring"||i5(e))&&s}function F0(n){n.duration=0,n.type="keyframes"}const a5=new Set(["opacity","clipPath","filter","transform"]),NA=/^(?:oklch|oklab|lab|lch|color|color-mix|light-dark)\(/;function DA(n){for(let t=0;t<n.length;
49t++)if(typeof n[t]=="string"&&NA.test(n[t]))return!0;return!1}const VA=new Set(["color","backgroundColor","outlineColor","fill","stroke","borderColor","borderTopColor","borderRightColor","borderBottomColor","borderLeftColor"]),IA=C9(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function OA(n){var _;const{motionValue:t,name:e,repeatDelay:s,repeatType:a,damping:l,type:c,keyframes:h}=n;if(!(((_=t==null?void 0:t.owner)==null?void 0:_.current)instanceof HTMLElement))return!1;const{onUpdate:g,transformTemplate:y}=t.owner.getProps();return IA()&&e&&(a5.has(e)||VA.has(e)&&DA(h))&&(e!=="transform"||!y)&&!g&&!s&&a!=="mirror"&&l!==0&&c!=="inertia"}const MA=40;class PA extends q6{constructor({autoplay:t=!0,delay:e=0,type:s="keyframes",repeat:a=0,repeatDelay:l=0,repeatType:c="loop",keyframes:h,name:m,motionValue:g,element:y,..._}){var N;super(),this.stop=()=>{var j,F;this._animation&&(this._animation.stop(),(j=this.stopTimeline)==null||j.call(this)),(F=this.keyframeResolver)==null||F.cancel()},this.createdAt=Un.now();const x={autoplay:t,delay:e,type:s,repeat:a,repeatDelay:l,repeatType:c,name:m,motionValue:g,element:y,..._},R=(y==null?void 0:y.KeyframeResolver)||G6;this.keyframeResolver=new R(h,(j,F,q)=>this.onKeyframesResolved(j,F,x,!q),m,g,y),(N=this.keyframeResolver)==null||N.scheduleResolve()}onKeyframesResolved(t,e,s,a){var q,tt;this.keyframeResolver=void 0;const{name:l,type:c,velocity:h,delay:m,isHandoff:g,onUpdate:y}=s;this.resolvedAt=Un.now();let _=!0;RA(t,l,c,h)||(_=!1,(na.instantAnimations||!m)&&(y==null||y(Cf(t,s,e))),t[0]=t[t.length-1],F0(s),s.repeat=0);const R={startTime:a?this.resolvedAt?this.resolvedAt-this.createdAt>MA?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:e,...s,keyframes:t},N=_&&!g&&OA(R),j=(tt=(q=R.motionValue)==null?void 0:q.owner)==null?void 0:tt.current;let F;if(N)try{F=new bA({...R,element:j})}catch{F=new tf(R)}else F=new tf(R);F.finished.then(()=>{this.notifyFinished()}).catch(Di),this.pendingTimeline&&(this.stopTimeline=F.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=F}get finished(){return this._animation?this.animation.finished:this._finished}then(t,e){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),vA()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}function o5(n,t,e,s=0,a=1){const l=Array.from(n).sort((g,y)=>g.sortNodePosition(y)).indexOf(t),c=n.size,h=(c-1)*s;return typeof e=="function"?e(l,c):a===1?l*s:h-l*s}const Hg=30,LA=n=>!isNaN(parseFloat(n));class kA{constructor(t,e={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=s=>{var l;const a=Un.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 c of this.dependents)c.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=e.owner}setCurrent(t){this.current=t,this.updatedAt=Un.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=LA(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new L6);const s=this.events[t].add(e);return t==="change"?()=>{s(),Te.read(()=>{this.events.change.getSize()||this.stop()})}:s}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,e,s){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-s}jump(t,e=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Un.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>Hg)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,Hg);return R9(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise(e=>{this.hasAnimated=!0,this.animation=t(e),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 t,e;(t=this.dependents)==null||t.clear(),(e=this.events.destroy)==null||e.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ml(n,t){return new kA(n,t)}function l5(n,t){if(n!=null&&n.inherit&&t){const{inherit:e,...s}=n;return{...t,...s}}return n}function Y6(n,t){const e=(n==null?void 0:n[t])??(n==null?void 0:n.default)??n;return e!==n?l5(e,n):e}const jA={type:"spring",stiffness:500,damping:25,restSpeed:10},BA=n=>({type:"spring",stiffness:550,damping:n===0?2*Math.sqrt(550):30,restSpeed:10}),UA={type:"keyframes",duration:.8},zA={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},FA=(n,{keyframes:t})=>t.length>2?UA:wl.has(n)?n.startsWith("scale")?BA(t[1]):jA:zA,HA=new Set(["when","delay","delayChildren","staggerChildren","staggerDirection","repeat","repeatType","repeatDelay","from","elapsed"]);function qA(n){for(const t in n)if(!HA.has(t))return!0;return!1}const Q6=(n,t,e,s={},a,l)=>c=>{const h=Y6(s,n)||{},m=h.delay||s.delay||0;let{elapsed:g=0}=s;g=g-di(m);const y={keyframes:Array.isArray(e)?e:[null,e],ease:"easeOut",velocity:t.getVelocity(),...h,delay:-g,onUpdate:x=>{t.set(x),h.onUpdate&&h.onUpdate(x)},onComplete:()=>{c(),h.onComplete&&h.onComplete()},name:n,motionValue:t,element:l?void 0:a};
vendor: 49,378 bytes, line 49
49qA(h)||Object.assign(y,FA(n,y)),y.duration&&(y.duration=di(y.duration)),y.repeatDelay&&(y.repeatDelay=di(y.repeatDelay)),y.from!==void 0&&(y.keyframes[0]=y.from);let _=!1;if((y.type===!1||y.duration===0&&!y.repeatDelay)&&(F0(y),y.delay===0&&(_=!0)),(na.instantAnimations||na.skipAnimations||a!=null&&a.shouldSkipAnimations||h.skipAnimations)&&(_=!0,F0(y),y.delay=0),y.allowFlatten=!h.type&&!h.ease,_&&!l&&t.get()!==void 0){const x=Cf(y.keyframes,h);if(x!==void 0){Te.update(()=>{y.onUpdate(x),y.onComplete()});return}}return h.isSync?new tf(y):new PA(y)},GA=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function YA(n){const t=GA.exec(n);if(!t)return[,];const[,e,s,a]=t;return[`--${e??s}`,a]}function u5(n,t,e=1){const[s,a]=YA(n);if(!s)return;const l=window.getComputedStyle(t).getPropertyValue(s);if(l){const c=l.trim();return S9(c)?parseFloat(c):c}return B6(a)?u5(a,t,e+1):a}function qg(n){const t=[{},{}];return n==null||n.values.forEach((e,s)=>{t[0][s]=e.get(),t[1][s]=e.getVelocity()}),t}function K6(n,t,e,s){if(typeof t=="function"){const[a,l]=qg(s);t=t(e!==void 0?e:n.custom,a,l)}if(typeof t=="string"&&(t=n.variants&&n.variants[t]),typeof t=="function"){const[a,l]=qg(s);t=t(e!==void 0?e:n.custom,a,l)}return t}function to(n,t,e){const s=n.getProps();return K6(s,t,e!==void 0?e:s.custom,n)}const c5=new Set(["width","height","top","left","right","bottom",...Sl]),H0=n=>Array.isArray(n);function QA(n,t,e){n.hasValue(t)?n.getValue(t).set(e):n.addValue(t,ml(e))}function KA(n){return H0(n)?n[n.length-1]||0:n}function $A(n,t){const e=to(n,t);let{transitionEnd:s={},transition:a={},...l}=e||{};l={...l,...s};for(const c in l){const h=KA(l[c]);QA(n,c,h)}}const Sn=n=>!!(n&&n.getVelocity);function XA(n){return!!(Sn(n)&&n.add)}function q0(n,t){const e=n.getValue("willChange");if(XA(e))return e.add(t);if(!e&&na.WillChange){const s=new na.WillChange("auto");n.addValue("willChange",s),s.add(t)}}function $6(n){return n.replace(/([A-Z])/g,t=>`-${t.toLowerCase()}`)}const WA="framerAppearId",h5="data-"+$6(WA);function f5(n){return n.props[h5]}function ZA({protectedKeys:n,needsAnimating:t},e){const s=n.hasOwnProperty(e)&&t[e]!==!0;return t[e]=!1,s}function d5(n,t,{delay:e=0,transitionOverride:s,type:a}={}){let{transition:l,transitionEnd:c,...h}=t;const m=n.getDefaultTransition();l=l?l5(l,m):m;const g=l==null?void 0:l.reduceMotion,y=l==null?void 0:l.skipAnimations;s&&(l=s);const _=[],x=a&&n.animationState&&n.animationState.getState()[a],R=l==null?void 0:l.path;R&&R.animateVisualElement(n,h,l,e,_);for(const N in h){const j=n.getValue(N,n.latestValues[N]??null),F=h[N];if(F===void 0||x&&ZA(x,N))continue;const q={delay:e,...Y6(l||{},N)};y&&(q.skipAnimations=!0);const tt=j.get();if(tt!==void 0&&!j.isAnimating()&&!Array.isArray(F)&&F===tt&&!q.velocity){Te.update(()=>j.set(F));continue}let Z=!1;if(window.MotionHandoffAnimation){const Et=f5(n);if(Et){const I=window.MotionHandoffAnimation(Et,N,Te);I!==null&&(q.startTime=I,Z=!0)}}q0(n,N);const nt=g??n.shouldReduceMotion;j.start(Q6(N,j,F,nt&&c5.has(N)?{type:!1}:q,n,Z));const ht=j.animation;ht&&_.push(ht)}if(c){const N=()=>Te.update(()=>{c&&$A(n,c)});_.length?Promise.all(_).then(N):N()}return _}function G0(n,t,e={}){var m;const s=to(n,t,e.type==="exit"?(m=n.presenceContext)==null?void 0:m.custom:void 0);let{transition:a=n.getDefaultTransition()||{}}=s||{};e.transitionOverride&&(a=e.transitionOverride);const l=s?()=>Promise.all(d5(n,s,e)):()=>Promise.resolve(),c=n.variantChildren&&n.variantChildren.size?(g=0)=>{const{delayChildren:y=0,staggerChildren:_,staggerDirection:x}=a;return JA(n,t,g,y,_,x,e)}:()=>Promise.resolve(),{when:h}=a;if(h){const[g,y]=h==="beforeChildren"?[l,c]:[c,l];return g().then(()=>y())}else return Promise.all([l(),c(e.delay)])}function JA(n,t,e=0,s=0,a=0,l=1,c){const h=[];for(const m of n.variantChildren)m.notify("AnimationStart",t),h.push(G0(m,t,{...c,delay:e+(typeof s=="function"?0:s)+o5(n.variantChildren,m,s,a,l)}).then(()=>m.notify("AnimationComplete",t)));return Promise.all(h)}function tx(n,t,e={}){n.notify("AnimationStart",t);let s;if(Array.isArray(t)){const a=t.map(l=>G0(n,l,e));s=Promise.all(a)}else if(typeof t=="string")s=G0(n,t,e);else{const a=typeof t=="function"?to(n,t,e.custom):t;s=Promise.all(d5(n,a,e))}return s.then(()=>{n.notify("AnimationComplete",t)})}const ex={test:n=>n==="auto",parse:n=>n},m5=n=>t=>t.test(n),p5=[xl,wt,Cs,er,CT,bT,ex],Gg=n=>p5.find(m5(n));function nx(n){return typeof n=="number"?n===0:n!==null?n==="none"||n==="0"||b9(n):!0}const ix=new Set(["brightness","contrast","saturate","opacity"]);function sx(n){const[t,e]=n.slice(0,-1).split("(");if(t==="drop-shadow")return n;const[s]=e.match(U6)||[];if(!s)return n;const a=e.replace(s,"");let l=ix.has(t)?1:0;return s!==e&&(l*=100),t+"("+l+a+")"}const rx=/\b([a-z-]*)\(.*?\)/gu,Y0={...Wi,getAnimatableNone:n=>{const t=n.match(rx);return t?t.map(sx).join(" "):n}},Q0={...Wi,getAnimatableNone:n=>{const t=Wi.parse(n);return Wi.createTransformer(n)(t.map(s=>typeof s=="number"?0:typeof s=="object"?{...s,alpha:1}:s))}},Yg={...xl,transform:Math.round},ax={rotate:er,pathRotation:er,rotateX:er,rotateY:er,rotateZ:er,scale:Th,scaleX:Th,scaleY:Th,scaleZ:Th,skew:er,skewX:er,skewY:er,distance:wt,translateX:wt,translateY:wt,translateZ:wt,x:wt,y:wt,z:wt,perspective:wt,transformPerspective:wt,opacity:cc,originX:Ig,originY:Ig,originZ:wt},ef={borderWidth:wt,borderTopWidth:wt,borderRightWidth:wt,borderBottomWidth:wt,borderLeftWidth:wt,borderRadius:wt,borderTopLeftRadius:wt,borderTopRightRadius:wt,borderBottomRightRadius:wt,borderBottomLeftRadius:wt,width:wt,maxWidth:wt,height:wt,maxHeight:wt,top:wt,right:wt,bottom:wt,left:wt,inset:wt,insetBlock:wt,insetBlockStart:wt,insetBlockEnd:wt,insetInline:wt,insetInlineStart:wt,insetInlineEnd:wt,padding:wt,paddingTop:wt,paddingRight:wt,paddingBottom:wt,paddingLeft:wt,paddingBlock:wt,paddingBlockStart:wt,paddingBlockEnd:wt,paddingInline:wt,paddingInlineStart:wt,paddingInlineEnd:wt,margin:wt,marginTop:wt,marginRight:wt,marginBottom:wt,marginLeft:wt,marginBlock:wt,marginBlockStart:wt,marginBlockEnd:wt,marginInline:wt,marginInlineStart:wt,marginInlineEnd:wt,fontSize:wt,backgroundPositionX:wt,backgroundPositionY:wt,...ax,zIndex:Yg,fillOpacity:cc,strokeOpacity:cc,numOctaves:Yg},ox={...ef,color:Ze,backgroundColor:Ze,outlineColor:Ze,fill:Ze,stroke:Ze,borderColor:Ze,borderTopColor:Ze,borderRightColor:Ze,borderBottomColor:Ze,borderLeftColor:Ze,filter:Y0,WebkitFilter:Y0,mask:Q0,WebkitMask:Q0},g5=n=>ox[n],lx=new Set([Y0,Q0]);function y5(n,t){let e=g5(n);return lx.has(e)||(e=Wi),e.getAnimatableNone?e.getAnimatableNone(t):void 0}const ux=new Set(["auto","none","0"]);function cx(n,t,e){let s=0,a;for(;s<n.length&&!a;){const l=n[s];typeof l=="string"&&!ux.has(l)&&dl(l).values.length&&(a=n[s]),s++}if(a&&e)for(const l of t)n[l]=y5(e,a)}class hx extends G6{constructor(t,e,s,a,l){super(t,e,s,a,l,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:s}=this;if(!e||!e.current)return;super.readKeyframes();for(let y=0;y<t.length;y++){let _=t[y];if(typeof _=="string"&&(_=_.trim(),B6(_))){const x=u5(_,e.current);x!==void 0&&(t[y]=x),y===t.length-1&&(this.finalKeyframe=_)}}if(this.resolveNoneKeyframes(),!c5.has(s)||t.length!==2)return;const[a,l]=t,c=Gg(a),h=Gg(l),m=Vg(a),g=Vg(l);if(m!==g&&Kr[s]){this.needsMeasurement=!0;return}if(c!==h)if(Ug(c)&&Ug(h))for(let y=0;y<t.length;y++){const _=t[y];typeof _=="string"&&(t[y]=parseFloat(_))}else Kr[s]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:e}=this,s=[];for(let a=0;a<t.length;a++)(t[a]===null||nx(t[a]))&&s.push(a);s.length&&cx(t,s,e)}measureInitialState(){const{element:t,unresolvedKeyframes:e,name:s}=this;if(!t||!t.current)return;s==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Kr[s](t.measureViewportBox(),window.getComputedStyle(t.current)),e[0]=this.measuredOrigin;const a=e[e.length-1];a!==void 0&&t.getValue(s,a).jump(a,!1)}measureEndState(){var h;const{element:t,name:e,unresolvedKeyframes:s}=this;if(!t||!t.current)return;const a=t.getValue(e);a&&a.jump(this.measuredOrigin,!1);const l=s.length-1,c=s[l];s[l]=Kr[e](t.measureViewportBox(),window.getComputedStyle(t.current)),c!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=c),(h=this.removedTransforms)!=null&&h.length&&this.removedTransforms.forEach(([m,g])=>{t.getValue(m).set(g)}),this.resolveNoneKeyframes()}}function v5(n,t,e){if(n==null)return[];if(n instanceof EventTarget)return[n];if(typeof n=="string"){let s=document;const a=(e==null?void 0:e[n])??s.querySelectorAll(n);return a?Array.from(a):[]}return Array.from(n).filter(s=>s!=null)}const K0=(n,t)=>t&&typeof n=="number"?t.transform(n):n;function Ph(n){return w9(n)&&"offsetHeight"in n&&!("ownerSVGElement"in n)}const{schedule:X6}=B9(queueMicrotask,!1),Ki={x:!1,y:!1};function _5(){return Ki.x||Ki.y}function fx(n){return n==="x"||n==="y"?Ki[n]?null:(Ki[n]=!0,()=>{Ki[n]=!1}):Ki.x||Ki.y?null:(Ki.x=Ki.y=!0,()=>{Ki.x=Ki.y=!1})}function E5(n,t){const e=v5(n),s=new AbortController,a={passive:!0,...t,signal:s.signal};return[e,a,()=>s.abort()]}function dx(n){return!(n.pointerType==="touch"||_5())}function mx(n,t,e={}){const[s,a,l]=E5(n,e);return s.forEach(c=>{let h=!1,m=!1,g;const y=()=>{c.removeEventListener("pointerleave",N)},_=F=>{g&&(g(F),g=void 0),y()},x=F=>{h=!1,window.removeEventListener("pointerup",x),window.removeEventListener("pointercancel",x),m&&(m=!1,_(F))},R=()=>{h=!0,window.addEventListener("pointerup",x,a),window.addEventListener("pointercancel",x,a)},N=F=>{if(F.pointerType!=="touch"){if(h){m=!0;return}_(F)}},j=F=>{if(!dx(F))return;m=!1;const q=t(c,F);typeof q=="function"&&(g=q,c.addEventListener("pointerleave",N,a))};c.addEventListener("pointerenter",j,a),c.addEventListener("pointerdown",R,a)}),l}const T5=(n,t)=>t?n===t?!0:T5(n,t.parentElement):!1,W6=n=>n.pointerType==="mouse"?typeof n.button!="number"||n.button<=0:n.isPrimary!==!1,px=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function gx(n){return px.has(n.tagName)||n.isContentEditable===!0}const yx=new Set(["INPUT","SELECT","TEXTAREA"]);function vx(n){return yx.has(n.tagName)||n.isContentEditable===!0}const Lh=new WeakSet;function Qg(n){return t=>{t.key==="Enter"&&n(t)}}function u0(n,t){n.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const _x=(n,t)=>{const e=n.currentTarget;if(!e)return;const s=Qg(()=>{if(Lh.has(e))return;u0(e,"down");const a=Qg(()=>{u0(e,"up")}),l=()=>u0(e,"cancel");e.addEventListener("keyup",a,t),e.addEventListener("blur",l,t)});e.addEventListener("keydown",s,t),e.addEventListener("blur",()=>e.removeEventListener("keydown",s),t)};function Kg(n){return W6(n)&&!_5()}const $g=new WeakSet;function Ex(n,t,e={}){const[s,a,l]=E5(n,e),c=h=>{const m=h.currentTarget;if(!Kg(h)||$g.has(h))return;Lh.add(m),e.stopPropagation&&$g.add(h);const g=t(m,h),y={...a,capture:!0},_=(N,j)=>{window.removeEventListener("pointerup",x,y),window.removeEventListener("pointercancel",R,y),Lh.has(m)&&Lh.delete(m),Kg(N)&&typeof g=="function"&&g(N,{success:j})},x=N=>{_(N,m===window||m===document||e.useGlobalTarget||T5(m,N.target))},R=N=>{_(N,!1)};window.addEventListener("pointerup",x,y),window.addEventListener("pointercancel",R,y)};return s.forEach(h=>{(e.useGlobalTarget?window:h).addEventListener("pointerdown",c,a),Ph(h)&&(h.addEventListener("focus",g=>_x(g,a)),!gx(h)&&!h.hasAttribute("tabindex")&&(h.tabIndex=0))}),l}function Z6(n){return w9(n)&&"ownerSVGElement"in n}const kh=new WeakMap;let qr;const A5=(n,t,e)=>(s,a)=>a&&a[0]?a[0][n+"Size"]:Z6(s)&&"getBBox"in s?s.getBBox()[t]:s[e],Tx=A5("inline","width","offsetWidth"),Ax=A5("block","height","offsetHeight");function xx({target:n,borderBoxSize:t}){var e;(e=kh.get(n))==null||e.forEach(s=>{s(n,{get width(){return Tx(n,t)},get height(){return Ax(n,t)}})})}function Sx(n){n.forEach(xx)}function wx(){typeof ResizeObserver>"u"||(qr=new ResizeObserver(Sx))}function bx(n,t){qr||wx();const e=v5(n);return e.forEach(s=>{let a=kh.get(s);a||(a=new Set,kh.set(s,a)),a.add(t),qr==null||qr.observe(s)}),()=>{e.forEach(s=>{const a=kh.get(s);a==null||a.delete(t),a!=null&&a.size||qr==null||qr.unobserve(s)})}}const jh=new Set;let ol;function Cx(){ol=()=>{const n={get width(){return window.innerWidth},get height(){return window.innerHeight}};jh.forEach(t=>t(n))},window.addEventListener("resize",ol)}function Rx(n){return jh.add(n),ol||Cx(),()=>{jh.delete(n),!jh.size&&typeof ol=="function"&&(window.removeEventListener("resize",ol),ol=void 0)}}function Xg(n,t){return typeof n=="function"?Rx(n):bx(n,t)}function Nx(n){return Z6(n)&&n.tagName==="svg"}const Dx=[...p5,Ze,Wi],Vx=n=>Dx.find(m5(n)),Wg=()=>({translate:0,scale:1,origin:0,originPoint:0}),ll=()=>({x:Wg(),y:Wg()}),Zg=()=>({min:0,max:0}),ln=()=>({x:Zg(),y:Zg()}),Ix=new WeakMap;function Rf(n){return n!==null&&typeof n=="object"&&typeof n.start=="function"}function hc(n){return typeof n=="string"||Array.isArray(n)}const J6=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],tm=["initial",...J6];function Nf(n){return Rf(n.animate)||tm.some(t=>hc(n[t]))}function x5(n){return!!(Nf(n)||n.variants)}function Ox(n,t,e){for(const s in t){const a=t[s],l=e[s];if(Sn(a))n.addValue(s,a);else if(Sn(l))n.addValue(s,ml(a,{owner:n}));else if(l!==a)if(n.hasValue(s)){const c=n.getValue(s);c.liveStyle===!0?c.jump(a):c.hasAnimated||c.set(a)}else{const c=n.getStaticValue(s);n.addValue(s,ml(c!==void 0?c:a,{owner:n}))}}for(const s in e)t[s]===void 0&&n.removeValue(s);return t}const $0={current:null},S5={current:!1},Mx=typeof window<"u";function Px(){if(S5.current=!0,!!Mx)if(window.matchMedia){const n=window.matchMedia("(prefers-reduced-motion)"),t=()=>$0.current=n.matches;n.addEventListener("change",t),t()}else $0.current=!1}const Jg=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];let nf={};function w5(n){nf=n}function Lx(){return nf}class kx{scrapeMotionValuesFromProps(t,e,s){return{}}constructor({parent:t,props:e,presenceContext:s,reducedMotionConfig:a,skipAnimations:l,blockInitialAnimation:c,visualState:h},m={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=G6,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,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 R=Un.now();this.renderScheduledAt<R&&(this.renderScheduledAt=R,Te.render(this.render,!1,!0))};const{latestValues:g,renderState:y}=h;this.latestValues=g,this.baseTarget={...g},this.initialValues=e.initial?{...g}:{},this.renderState=y,this.parent=t,this.props=e,this.presenceContext=s,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.skipAnimationsConfig=l,this.options=m,this.blockInitialAnimation=!!c,this.isControllingVariants=Nf(e),this.isVariantNode=x5(e),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:_,...x}=this.scrapeMotionValuesFromProps(e,{},this);for(const R in x){const N=x[R];g[R]!==void 0&&Sn(N)&&N.set(g[R])}}mount(t){var e,s;if(this.hasBeenMounted)for(const a in this.initialValues)(e=this.values.get(a))==null||e.jump(this.initialValues[a]),this.latestValues[a]=this.initialValues[a];this.current=t,Ix.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((a,l)=>this.bindToMotionValue(l,a)),this.reducedMotionConfig==="never"?this.shouldReduceMotion=!1:this.reducedMotionConfig==="always"?this.shouldReduceMotion=!0:(S5.current||Px(),this.shouldReduceMotion=$0.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,(s=this.parent)==null||s.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){var t;this.projection&&this.projection.unmount(),ia(this.notifyUpdate),ia(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const s=this.features[e];s&&(s.unmount(),s.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,e){if(this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)(),e.accelerate&&a5.has(t)&&this.current instanceof HTMLElement){const{factory:c,keyframes:h,times:m,ease:g,duration:y}=e.accelerate,_=new s5({element:this.current,name:t,keyframes:h,times:m,ease:g,duration:di(y)}),x=c(_);this.valueSubscriptions.set(t,()=>{x(),_.cancel()});return}const s=wl.has(t);s&&this.onBindTransform&&this.onBindTransform();const a=e.on("change",c=>{this.latestValues[t]=c,this.props.onUpdate&&Te.preRender(this.notifyUpdate),s&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let l;typeof window<"u"&&window.MotionCheckAppearSync&&(l=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,()=>{a(),l&&l()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in nf){const e=nf[t];if(!e)continue;const{isEnabled:s,Feature:a}=e;if(!this.features[t]&&a&&s(this.props)&&(this.features[t]=new a(this)),this.features[t]){const l=this.features[t];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):ln()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let s=0;s<Jg.length;s++){const a=Jg[s];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const l="on"+a,c=t[l];c&&(this.propEventSubscriptions[a]=this.on(a,c))}this.prevMotionValues=Ox(this,this.scrapeMotionValuesFromProps(t,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]: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(t){const e=this.getClosestVariantNode();if(e)return e.variantChildren&&e.variantChildren.add(t),()=>e.variantChildren.delete(t)}addValue(t,e){const s=this.values.get(t);e!==s&&(s&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let s=this.values.get(t);return s===void 0&&e!==void 0&&(s=ml(e===null?void 0:e,{owner:this}),this.addValue(t,s)),s}readValue(t,e){let s=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return s!=null&&(typeof s=="string"&&(S9(s)||b9(s))?s=parseFloat(s):!Vx(s)&&Wi.test(e)&&(s=y5(t,e)),this.setBaseTarget(t,Sn(s)?s.get():s)),Sn(s)?s.get():s}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var l;const{initial:e}=this.props;let s;if(typeof e=="string"||typeof e=="object"){const c=K6(this.props,e,(l=this.presenceContext)==null?void 0:l.custom);c&&(s=c[t])}if(e&&s!==void 0)return s;const a=this.getBaseTargetFromProps(this.props,t);return a!==void 0&&!Sn(a)?a:this.initialValues[t]!==void 0&&s===void 0?void 0:this.baseTarget[t]}on(t,e){return this.events[t]||(this.events[t]=new L6),this.events[t].add(e)}notify(t,...e){this.events[t]&&this.events[t].notify(...e)}scheduleRenderMicrotask(){X6.render(this.render)}}class b5 extends kx{constructor(){super(...arguments),this.KeyframeResolver=hx}sortInstanceNodePosition(t,e){return t.compareDocumentPosition(e)&2?1:-1}getBaseTargetFromProps(t,e){const s=t.style;return s?s[e]:void 0}removeValueFromRenderState(t,{vars:e,style:s}){delete e[t],delete s[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;Sn(t)&&(this.childSubscription=t.on("change",e=>{this.current&&(this.current.textContent=`${e}`)}))}}class ma{constructor(t){this.isMounted=!1,this.node=t}update(){}}function C5({top:n,left:t,right:e,bottom:s}){return{x:{min:t,max:e},y:{min:n,max:s}}}function jx({x:n,y:t}){return{top:t.min,right:n.max,bottom:t.max,left:n.min}}function Bx(n,t){if(!t)return n;const e=t({x:n.left,y:n.top}),s=t({x:n.right,y:n.bottom});return{top:e.y,left:e.x,bottom:s.y,right:s.x}}function c0(n){return n===void 0||n===1}function X0({scale:n,scaleX:t,scaleY:e}){return!c0(n)||!c0(t)||!c0(e)}function Qa(n){return X0(n)||R5(n)||n.z||n.rotate||n.rotateX||n.rotateY||n.skewX||n.skewY}function R5(n){return t3(n.x)||t3(n.y)}function t3(n){return n&&n!=="0%"}function sf(n,t,e){const s=n-e,a=t*s;return e+a}function e3(n,t,e,s,a){return a!==void 0&&(n=sf(n,a,s)),sf(n,e,s)+t}function W0(n,t=0,e=1,s,a){n.min=e3(n.min,t,e,s,a),n.max=e3(n.max,t,e,s,a)}function N5(n,{x:t,y:e}){W0(n.x,t.translate,t.scale,t.originPoint),W0(n.y,e.translate,e.scale,e.originPoint)}const n3=.999999999999,i3=1.0000000000001;function Ux(n,t,e,s=!1){var h;const a=e.length;if(!a)return;t.x=t.y=1;let l,c;for(let m=0;m<a;m++){l=e[m],c=l.projectionDelta;const{visualElement:g}=l.options;g&&g.props.style&&g.props.style.display==="contents"||(s&&l.options.layoutScroll&&l.scroll&&l!==l.root&&(Ss(n.x,-l.scroll.offset.x),Ss(n.y,-l.scroll.offset.y)),c&&(t.x*=c.x.scale,t.y*=c.y.scale,N5(n,c)),s&&Qa(l.latestValues)&&Bh(n,l.latestValues,(h=l.layout)==null?void 0:h.layoutBox))}t.x<i3&&t.x>n3&&(t.x=1),t.y<i3&&t.y>n3&&(t.y=1)}function Ss(n,t){n.min+=t,n.max+=t}function s3(n,t,e,s,a=.5){const l=Ee(n.min,n.max,a);W0(n,t,e,l,s)}function r3(n,t){return typeof n=="string"?parseFloat(n)/100*(t.max-t.min):n}function Bh(n,t,e){const s=e??n;s3(n.x,r3(t.x,s.x),t.scaleX,t.scale,t.originX),s3(n.y,r3(t.y,s.y),t.scaleY,t.scale,t.originY)}function D5(n,t){return C5(Bx(n.getBoundingClientRect(),t))}function zx(n,t,e){const s=D5(n,e),{scroll:a}=t;return a&&(Ss(s.x,a.offset.x),Ss(s.y,a.offset.y)),s}const Fx={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Hx=Sl.length;function qx(n,t,e){let s="",a=!0;for(let c=0;c<Hx;c++){const h=Sl[c],m=n[h];if(m===void 0)continue;let g=!0;if(typeof m=="number")g=m===(h.startsWith("scale")?1:0);else{const y=parseFloat(m);g=h.startsWith("scale")?y===1:y===0}if(!g||e){const y=K0(m,ef[h]);if(!g){a=!1;const _=Fx[h]||h;s+=`${_}(${y}) `}e&&(t[h]=y)}}const l=n.pathRotation;return l&&(a=!1,s+=`rotate(${K0(l,ef.pathRotation)}) `),s=s.trim(),e?s=e(t,a?"":s):a&&(s="none"),s}function em(n,t,e){const{style:s,vars:a,transformOrigin:l}=n;let c=!1,h=!1;for(const m in t){const g=t[m];if(wl.has(m)){c=!0;continue}else if(z9(m)){a[m]=g;continue}else{const y=K0(g,ef[m]);m.startsWith("origin")?(h=!0,l[m]=y):s[m]=y}}if(t.transform||(c||e?s.transform=qx(t,n.transform,e):s.transform&&(s.transform="none")),h){const{originX:m="50%",originY:g="50%",originZ:y=0}=l;s.transformOrigin=`${m} ${g} ${y}`}}function V5(n,{style:t,vars:e},s,a){const l=n.style;let c;for(c in t)l[c]=t[c];a==null||a.applyProjectionStyles(l,s);for(c in e)l.setProperty(c,e[c])}function a3(n,t){return t.max===t.min?0:n/(t.max-t.min)*100}const zu={correct:(n,t)=>{if(!t.target)return n;if(typeof n=="string")if(wt.test(n))n=parseFloat(n);else return n;const e=a3(n,t.target.x),s=a3(n,t.target.y);return`${e}% ${s}%`}},Gx={correct:(n,{treeScale:t,projectionDelta:e})=>{const s=n,a=Wi.parse(n);if(a.length>5)return s;const l=Wi.createTransformer(n),c=typeof a[0]!="number"?1:0,h=e.x.scale*t.x,m=e.y.scale*t.y;a[0+c]/=h,a[1+c]/=m;const g=Ee(h,m,.5);return typeof a[2+c]=="number"&&(a[2+c]/=g),typeof a[3+c]=="number"&&(a[3+c]/=g),l(a)}},Z0={borderRadius:{...zu,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:zu,borderTopRightRadius:zu,borderBottomLeftRadius:zu,borderBottomRightRadius:zu,boxShadow:Gx};function I5(n,{layout:t,layoutId:e}){return wl.has(n)||n.startsWith("origin")||(t||e!==void 0)&&(!!Z0[n]||n==="opacity")}function nm(n,t,e){var c;const s=n.style,a=t==null?void 0:t.style,l={};if(!s)return l;for(const h in s)(Sn(s[h])||a&&Sn(a[h])||I5(h,n)||((c=e==null?void 0:e.getValue(h))==null?void 0:c.liveStyle)!==void 0)&&(l[h]=s[h]);return l}function Yx(n){return window.getComputedStyle(n)}class Qx extends b5{constructor(){super(...arguments),this.type="html",this.renderInstance=V5}readValueFromInstance(t,e){var s;if(wl.has(e))return(s=this.projection)!=null&&s.isProjecting?k0(e):dA(t,e);{const a=Yx(t),l=(z9(e)?a.getPropertyValue(e):a[e])||0;return typeof l=="string"?l.trim():l}}measureInstanceViewportBox(t,{transformPagePoint:e}){return D5(t,e)}build(t,e,s){em(t,e,s.transformTemplate)}scrapeMotionValuesFromProps(t,e,s){return nm(t,e,s)}}const Kx={offset:"stroke-dashoffset",array:"stroke-dasharray"},$x={offset:"strokeDashoffset",array:"strokeDasharray"};function Xx(n,t,e=1,s=0,a=!0){n.pathLength=1;const l=a?Kx:$x;n[l.offset]=`${-s}`,n[l.array]=`${t} ${e}`}const Wx=["offsetDistance","offsetPath","offsetRotate","offsetAnchor"];function O5(n,{attrX:t,attrY:e,attrScale:s,pathLength:a,pathSpacing:l=1,pathOffset:c=0,...h},m,g,y){if(em(n,h,g),m){n.style.viewBox&&(n.attrs.viewBox=n.style.viewBox);return}n.attrs=n.style,n.style={};const{attrs:_,style:x}=n;_.transform&&(x.transform=_.transform,delete _.transform),(x.transform||_.transformOrigin)&&(x.transformOrigin=_.transformOrigin??"50% 50%",delete _.transformOrigin),x.transform&&(x.transformBox=(y==null?void 0:y.transformBox)??"fill-box",delete _.transformBox);for(const R of Wx)_[R]!==void 0&&(x[R]=_[R],delete _[R]);t!==void 0&&(_.x=t),e!==void 0&&(_.y=e),s!==void 0&&(_.scale=s),a!==void 0&&Xx(_,a,l,c,!1)}const M5=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"]),P5=n=>typeof n=="string"&&n.toLowerCase()==="svg";function Zx(n,t,e,s){V5(n,t,void 0,s);for(const a in t.attrs)n.setAttribute(M5.has(a)?a:$6(a),t.attrs[a])}function L5(n,t,e){const s=nm(n,t,e);for(const a in n)if(Sn(n[a])||Sn(t[a])){const l=Sl.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;s[l]=n[a]}return s}class Jx extends b5{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=ln}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(wl.has(e)){const s=g5(e);return s&&s.default||0}return e=M5.has(e)?e:$6(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,s){return L5(t,e,s)}build(t,e,s){O5(t,e,this.isSVGTag,s.transformTemplate,s.style)}renderInstance(t,e,s,a){Zx(t,e,s,a)}mount(t){this.isSVGTag=P5(t.tagName),super.mount(t)}}const tS=tm.length;function k5(n){if(!n)return;if(!n.isControllingVariants){const e=n.parent?k5(n.parent)||{}:{};return n.props.initial!==void 0&&(e.initial=n.props.initial),e}const t={};for(let e=0;e<tS;e++){const s=tm[e],a=n.props[s];(hc(a)||a===!1)&&(t[s]=a)}return t}function j5(n,t){if(!Array.isArray(t))return!1;const e=t.length;if(e!==n.length)return!1;for(let s=0;s<e;s++)if(t[s]!==n[s])return!1;return!0}const eS=[...J6].reverse(),nS=J6.length;function iS(n){return t=>Promise.all(t.map(({animation:e,options:s})=>tx(n,e,s)))}function sS(n){let t=iS(n),e=o3(),s=!0,a=!1;const l=g=>(y,_)=>{var R;const x=to(n,_,g==="exit"?(R=n.presenceContext)==null?void 0:R.custom:void 0);if(x){const{transition:N,transitionEnd:j,...F}=x;y={...y,...F,...j}}return y};function c(g){t=g(n)}function h(g){const{props:y}=n,_=k5(n.parent)||{},x=[],R=new Set;let N={},j=1/0;for(let q=0;q<nS;q++){const tt=eS[q],Z=e[tt],nt=y[tt]!==void 0?y[tt]:_[tt],ht=hc(nt),Et=tt===g?Z.isActive:null;Et===!1&&(j=q);let I=nt===_[tt]&&nt!==y[tt]&&ht;if(I&&(s||a)&&n.manuallyAnimateOnMount&&(I=!1),Z.protectedKeys={...N},!Z.isActive&&Et===null||!nt&&!Z.prevProp||Rf(nt)||typeof nt=="boolean")continue;if(tt==="exit"&&Z.isActive&&Et!==!0){Z.prevResolvedValues&&(N={...N,...Z.prevResolvedValues});continue}const C=rS(Z.prevProp,nt);let V=C||tt===g&&Z.isActive&&!I&&ht||q>j&&ht,M=!1;const P=Array.isArray(nt)?nt:[nt];let U=P.reduce(l(tt),{});Et===!1&&(U={});const{prevResolvedValues:O={}}=Z,At={...O,...U},Ut=dt=>{V=!0,R.has(dt)&&(M=!0,R.delete(dt)),Z.needsAnimating[dt]=!0;const It=n.getValue(dt);It&&(It.liveStyle=!1)};for(const dt in At){const It=U[dt],Ht=O[dt];if(N.hasOwnProperty(dt))continue;let k=!1;H0(It)&&H0(Ht)?k=!j5(It,Ht)||C:k=It!==Ht,k?It!=null?Ut(dt):R.add(dt):It!==void 0&&R.has(dt)?Ut(dt):Z.protectedKeys[dt]=!0}Z.prevProp=nt,Z.prevResolvedValues=U,Z.isActive&&(N={...N,...U}),(s||a)&&n.blockInitialAnimation&&(V=!1);const W=I&&C;V&&(!W||M)&&x.push(...P.map(dt=>{const It={type:tt};if(typeof dt=="string"&&(s||a)&&!W&&n.manuallyAnimateOnMount&&n.parent){const{parent:Ht}=n,k=to(Ht,dt);if(Ht.enteringChildren&&k){const{delayChildren:rt}=k.transition||{};It.delay=o5(Ht.enteringChildren,n,rt)}}return{animation:dt,options:It}}))}if(R.size){const q={};if(typeof y.initial!="boolean"){const tt=to(n,Array.isArray(y.initial)?y.initial[0]:y.initial);tt&&tt.transition&&(q.transition=tt.transition)}R.forEach(tt=>{const Z=n.getBaseTarget(tt),nt=n.getValue(tt);nt&&(nt.liveStyle=!0),q[tt]=Z??null}),x.push({animation:q})}let F=!!x.length;return s&&(y.initial===!1||y.initial===y.animate)&&!n.manuallyAnimateOnMount&&(F=!1),s=!1,a=!1,F?t(x):Promise.resolve()}function m(g,y){var x;if(e[g].isActive===y)return Promise.resolve();(x=n.variantChildren)==null||x.forEach(R=>{var N;return(N=R.animationState)==null?void 0:N.setActive(g,y)}),e[g].isActive=y;const _=h(g);for(const R in e)e[R].protectedKeys={};return _}return{animateChanges:h,setActive:m,setAnimateFunction:c,getState:()=>e,reset:()=>{e=o3(),a=!0}}}function rS(n,t){return typeof t=="string"?t!==n:Array.isArray(t)?!j5(t,n):!1}function Ya(n=!1){return{isActive:n,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function o3(){return{animate:Ya(!0),whileInView:Ya(),whileHover:Ya(),whileTap:Ya(),whileDrag:Ya(),whileFocus:Ya(),exit:Ya()}}function J0(n,t){n.min=t.min,n.max=t.max}function Qi(n,t){J0(n.x,t.x),J0(n.y,t.y)}function l3(n,t){n.translate=t.translate,n.scale=t.scale,n.originPoint=t.originPoint,n.origin=t.origin}const B5=1e-4,aS=1-B5,oS=1+B5,U5=.01,lS=0-U5,uS=0+U5;function zn(n){return n.max-n.min}function cS(n,t,e){return Math.abs(n-t)<=e}function u3(n,t,e,s=.5){n.origin=s,n.originPoint=Ee(t.min,t.max,n.origin),n.scale=zn(e)/zn(t),n.translate=Ee(e.min,e.max,n.origin)-n.originPoint,(n.scale>=aS&&n.scale<=oS||isNaN(n.scale))&&(n.scale=1),(n.translate>=lS&&n.translate<=uS||isNaN(n.translate))&&(n.translate=0)}function Wu(n,t,e,s){u3(n.x,t.x,e.x,s?s.originX:void 0),u3(n.y,t.y,e.y,s?s.originY:void 0)}function c3(n,t,e,s=0){const a=s?Ee(e.min,e.max,s):e.min;n.min=a+t.min,n.max=n.min+zn(t)}function hS(n,t,e,s){c3(n.x,t.x,e.x,s==null?void 0:s.x),c3(n.y,t.y,e.y,s==null?void 0:s.y)}function h3(n,t,e,s=0){const a=s?Ee(e.min,e.max,s):e.min;n.min=t.min-a,n.max=n.min+zn(t)}function rf(n,t,e,s){h3(n.x,t.x,e.x,s==null?void 0:s.x),h3(n.y,t.y,e.y,s==null?void 0:s.y)}function f3(n,t,e,s,a){return n-=t,n=sf(n,1/e,s),a!==void 0&&(n=sf(n,1/a,s)),n}function fS(n,t=0,e=1,s=.5,a,l=n,c=n){if(Cs.test(t)&&(t=parseFloat(t),t=Ee(c.min,c.max,t/100)-c.min),typeof t!="number")return;let h=Ee(l.min,l.max,s);n===l&&(h-=t),n.min=f3(n.min,t,e,h,a),n.max=f3(n.max,t,e,h,a)}function d3(n,t,[e,s,a],l,c){fS(n,t[e],t[s],t[a],t.scale,l,c)}const dS=["x","scaleX","originX"],mS=["y","scaleY","originY"];function m3(n,t,e,s){d3(n.x,t,dS,e?e.x:void 0,s?s.x:void 0),d3(n.y,t,mS,e?e.y:void 0,s?s.y:void 0)}function p3(n){return n.translate===0&&n.scale===1}function z5(n){return p3(n.x)&&p3(n.y)}function g3(n,t){return n.min===t.min&&n.max===t.max}function pS(n,t){return g3(n.x,t.x)&&g3(n.y,t.y)}function y3(n,t){return Math.round(n.min)===Math.round(t.min)&&Math.round(n.max)===Math.round(t.max)}function F5(n,t){return y3(n.x,t.x)&&y3(n.y,t.y)}function v3(n){return zn(n.x)/zn(n.y)}function _3(n,t){return n.translate===t.translate&&n.scale===t.scale&&n.originPoint===t.originPoint}function As(n){return[n("x"),n("y")]}function gS(n,t,e){let s="";const a=n.x.translate/t.x,l=n.y.translate/t.y,c=(e==null?void 0:e.z)||0;if((a||l||c)&&(s=`translate3d(${a}px, ${l}px, ${c}px) `),(t.x!==1||t.y!==1)&&(s+=`scale(${1/t.x}, ${1/t.y}) `),e){const{transformPerspective:g,rotate:y,pathRotation:_,rotateX:x,rotateY:R,skewX:N,skewY:j}=e;g&&(s=`perspective(${g}px) ${s}`),y&&(s+=`rotate(${y}deg) `),_&&(s+=`rotate(${_}deg) `),x&&(s+=`rotateX(${x}deg) `),R&&(s+=`rotateY(${R}deg) `),N&&(s+=`skewX(${N}deg) `),j&&(s+=`skewY(${j}deg) `)}const h=n.x.scale*t.x,m=n.y.scale*t.y;return(h!==1||m!==1)&&(s+=`scale(${h}, ${m})`),s||"none"}const H5=["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"],yS=H5.length,E3=n=>typeof n=="string"?parseFloat(n):n,T3=n=>typeof n=="number"||wt.test(n);function vS(n,t,e,s,a,l){a?(n.opacity=Ee(0,e.opacity??1,_S(s)),n.opacityExit=Ee(t.opacity??1,0,ES(s))):l&&(n.opacity=Ee(t.opacity??1,e.opacity??1,s));for(let c=0;c<yS;c++){const h=H5[c];let m=A3(t,h),g=A3(e,h);if(m===void 0&&g===void 0)continue;m||(m=0),g||(g=0),m===0||g===0||T3(m)===T3(g)?(n[h]=Math.max(Ee(E3(m),E3(g),s),0),(Cs.test(g)||Cs.test(m))&&(n[h]+="%")):n[h]=g}(t.rotate||e.rotate)&&(n.rotate=Ee(t.rotate||0,e.rotate||0,s))}function A3(n,t){return n[t]!==void 0?n[t]:n.borderRadius}const _S=q5(0,.5,P9),ES=q5(.5,.95,Di);function q5(n,t,e){return s=>s<n?0:s>t?1:e(uc(n,t,s))}function TS(n,t,e){const s=Sn(n)?n:ml(n);return s.start(Q6("",s,t,e)),s.animation}function fc(n,t,e,s={passive:!0}){return n.addEventListener(t,e,s),()=>n.removeEventListener(t,e,s)}const AS=(n,t)=>n.depth-t.depth;class xS{constructor(){this.children=[],this.isDirty=!1}add(t){M6(this.children,t),this.isDirty=!0}remove(t){Xh(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(AS),this.isDirty=!1,this.children.forEach(t)}}function SS(n,t){const e=Un.now(),s=({timestamp:a})=>{const l=a-e;l>=t&&(ia(s),n(l-t))};return Te.setup(s,!0),()=>ia(s)}function Uh(n){return Sn(n)?n.get():n}class wS{constructor(){this.members=[]}add(t){M6(this.members,t);for(let e=this.members.length-1;e>=0;e--){const s=this.members[e];if(s===t||s===this.lead||s===this.prevLead)continue;const a=s.instance;(!a||a.isConnected===!1)&&!s.snapshot&&(Xh(this.members,s),s.unmount())}t.scheduleRender()}remove(t){if(Xh(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(t){var e;for(let s=this.members.indexOf(t)-1;s>=0;s--){const a=this.members[s];if(a.isPresent!==!1&&((e=a.instance)==null?void 0:e.isConnected)!==!1)return this.promote(a),!0}return!1}promote(t,e){var a;const s=this.lead;if(t!==s&&(this.prevLead=s,this.lead=t,t.show(),s)){s.updateSnapshot(),t.scheduleRender();const{layoutDependency:l}=s.options,{layoutDependency:c}=t.options;(l===void 0||l!==c)&&(t.resumeFrom=s,e&&(s.preserveOpacity=!0),s.snapshot&&(t.snapshot=s.snapshot,t.snapshot.latestValues=s.animationValues||s.latestValues),(a=t.root)!=null&&a.isUpdating&&(t.isLayoutDirty=!0)),t.options.crossfade===!1&&s.hide()}}exitAnimationComplete(){this.members.forEach(t=>{var e,s,a,l,c;(s=(e=t.options).onExitComplete)==null||s.call(e),(c=(a=t.resumingFrom)==null?void 0:(l=a.options).onExitComplete)==null||c.call(l)})}scheduleRender(){this.members.forEach(t=>t.instance&&t.scheduleRender(!1))}removeLeadSnapshot(){var t;(t=this.lead)!=null&&t.snapshot&&(this.lead.snapshot=void 0)}}const zh={hasAnimatedSinceResize:!0,hasEverUpdated:!1},h0=["","X","Y","Z"],bS=1e3;let CS=0;function f0(n,t,e,s){const{latestValues:a}=t;a[n]&&(e[n]=a[n],t.setStaticValue(n,0),s&&(s[n]=0))}function G5(n){if(n.hasCheckedOptimisedAppear=!0,n.root===n)return;const{visualElement:t}=n.options;if(!t)return;const e=f5(t);if(window.MotionHasOptimisedAnimation(e,"transform")){const{layout:a,layoutId:l}=n.options;window.MotionCancelOptimisedAnimation(e,"transform",Te,!(a||l))}const{parent:s}=n;s&&!s.hasCheckedOptimisedAppear&&G5(s)}function Y5({attachResizeListener:n,defaultParent:t,measureScroll:e,checkIsScrollRoot:s,resetTransform:a}){return class{constructor(c={},h=t==null?void 0:t()){this.id=CS++,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=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(DS),this.nodes.forEach(LS),this.nodes.forEach(kS),this.nodes.forEach(VS)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=c,this.root=h?h.root||h:this,this.path=h?[...h.path,h]:[],this.parent=h,this.depth=h?h.depth+1:0;for(let m=0;m<this.path.length;m++)this.path[m].shouldResetTransform=!0;this.root===this&&(this.nodes=new xS)}addEventListener(c,h){return this.eventHandlers.has(c)||this.eventHandlers.set(c,new L6),this.eventHandlers.get(c).add(h)}notifyListeners(c,...h){const m=this.eventHandlers.get(c);m&&m.notify(...h)}hasListeners(c){return this.eventHandlers.has(c)}mount(c){if(this.instance)return;this.isSVG=Z6(c)&&!Nx(c),this.instance=c;const{layoutId:h,layout:m,visualElement:g}=this.options;if(g&&!g.current&&g.mount(c),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(m||h)&&(this.isLayoutDirty=!0),n){let y,_=0;const x=()=>this.root.updateBlockedByResize=!1;Te.read(()=>{_=window.innerWidth}),n(c,()=>{const R=window.innerWidth;R!==_&&(_=R,this.root.updateBlockedByResize=!0,y&&y(),y=SS(x,250),zh.hasAnimatedSinceResize&&(zh.hasAnimatedSinceResize=!1,this.nodes.forEach(w3)))})}h&&this.root.registerSharedNode(h,this),this.options.animate!==!1&&g&&(h||m)&&this.addEventListener("didUpdate",({delta:y,hasLayoutChanged:_,hasRelativeLayoutChanged:x,layout:R})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const N=this.options.transition||g.getDefaultTransition()||FS,{onLayoutAnimationStart:j,onLayoutAnimationComplete:F}=g.getProps(),q=!this.targetLayout||!F5(this.targetLayout,R),tt=!_&&x;if(this.options.layoutRoot||this.resumeFrom||tt||_&&(q||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const Z={...Y6(N,"layout"),onPlay:j,onComplete:F};(g.shouldReduceMotion||this.options.layoutRoot)&&(Z.delay=0,Z.type=!1),this.startAnimation(Z),this.setAnimationOrigin(y,tt,Z.path)}else _||w3(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=R})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const c=this.getStack();c&&c.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ia(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(jS),this.animationId++)}getTransformTemplate(){const{visualElement:c}=this.options;return c&&c.getProps().transformTemplate}willUpdate(c=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&G5(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let y=0;y<this.path.length;y++){const _=this.path[y];_.shouldResetTransform=!0,(typeof _.latestValues.x=="string"||typeof _.latestValues.y=="string")&&(_.isLayoutDirty=!0),_.updateScroll("snapshot"),_.options.layoutRoot&&_.willUpdate(!1)}const{layoutId:h,layout:m}=this.options;if(h===void 0&&!m)return;const g=this.getTransformTemplate();this.prevTransformTemplateValue=g?g(this.latestValues,""):void 0,this.updateSnapshot(),c&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){const m=this.updateBlockedByResize;this.unblockUpdate(),this.updateBlockedByResize=!1,this.clearAllSnapshots(),m&&this.nodes.forEach(OS),this.nodes.forEach(x3);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(S3);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(MS),this.nodes.forEach(PS),this.nodes.forEach(RS),this.nodes.forEach(NS)):this.nodes.forEach(S3),this.clearAllSnapshots();const h=Un.now();An.delta=Is(0,1e3/60,h-An.timestamp),An.timestamp=h,An.isProcessing=!0,i0.update.process(An),i0.preRender.process(An),i0.render.process(An),An.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,X6.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(IS),this.sharedNodes.forEach(BS)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Te.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Te.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!zn(this.snapshot.measuredBox.x)&&!zn(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 c=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected||(this.layoutCorrected=ln()),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:h}=this.options;h&&h.notify("LayoutMeasure",this.layout.layoutBox,c?c.layoutBox:void 0)}updateScroll(c="measure"){let h=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===c&&(h=!1),h&&this.instance){const m=s(this.instance);this.scroll={animationId:this.root.animationId,phase:c,isRoot:m,offset:e(this.instance),wasRoot:this.scroll?this.scroll.isRoot:m}}}resetTransform(){if(!a)return;const c=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,h=this.projectionDelta&&!z5(this.projectionDelta),m=this.getTransformTemplate(),g=m?m(this.latestValues,""):void 0,y=g!==this.prevTransformTemplateValue;c&&this.instance&&(h||Qa(this.latestValues)||y)&&(a(this.instance,g),this.shouldResetTransform=!1,this.scheduleRender())}measure(c=!0){const h=this.measurePageBox();let m=this.removeElementScroll(h);return c&&(m=this.removeTransform(m)),HS(m),{animationId:this.root.animationId,measuredBox:h,layoutBox:m,latestValues:{},source:this.id}}measurePageBox(){var g;const{visualElement:c}=this.options;if(!c)return ln();const h=c.measureViewportBox();if(!(((g=this.scroll)==null?void 0:g.wasRoot)||this.path.some(qS))){const{scroll:y}=this.root;y&&(Ss(h.x,y.offset.x),Ss(h.y,y.offset.y))}return h}removeElementScroll(c){var m;const h=ln();if(Qi(h,c),(m=this.scroll)!=null&&m.wasRoot)return h;for(let g=0;g<this.path.length;g++){const y=this.path[g],{scroll:_,options:x}=y;y!==this.root&&_&&x.layoutScroll&&(_.wasRoot&&Qi(h,c),Ss(h.x,_.offset.x),Ss(h.y,_.offset.y))}return h}applyTransform(c,h=!1,m){var y,_;const g=m||ln();Qi(g,c);for(let x=0;x<this.path.length;x++){const R=this.path[x];!h&&R.options.layoutScroll&&R.scroll&&R!==R.root&&(Ss(g.x,-R.scroll.offset.x),Ss(g.y,-R.scroll.offset.y)),Qa(R.latestValues)&&Bh(g,R.latestValues,(y=R.layout)==null?void 0:y.layoutBox)}return Qa(this.latestValues)&&Bh(g,this.latestValues,(_=this.layout)==null?void 0:_.layoutBox),g}removeTransform(c){var m;const h=ln();Qi(h,c);for(let g=0;g<this.path.length;g++){const y=this.path[g];if(!Qa(y.latestValues))continue;let _;y.instance&&(X0(y.latestValues)&&y.updateSnapshot(),_=ln(),Qi(_,y.measurePageBox())),m3(h,y.latestValues,(m=y.snapshot)==null?void 0:m.layoutBox,_)}return Qa(this.latestValues)&&m3(h,this.latestValues),h}setTargetDelta(c){this.targetDelta=c,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(c){this.options={...this.options,...c,crossfade:c.crossfade!==void 0?c.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!==An.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(c=!1){var R;const h=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=h.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=h.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=h.isSharedProjectionDirty);const m=!!this.resumingFrom||this!==h;if(!(c||m&&this.isSharedProjectionDirty||this.isProjectionDirty||(R=this.parent)!=null&&R.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:y,layoutId:_}=this.options;if(!this.layout||!(y||_))return;this.resolvedRelativeTargetAt=An.timestamp;const x=this.getClosestProjectingParent();x&&this.linkedParentVersion!==x.layoutVersion&&!x.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(this.options.layoutAnchor!==!1&&x&&x.layout?this.createRelativeTarget(x,this.layout.layoutBox,x.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=ln(),this.targetWithTransforms=ln()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),hS(this.target,this.relativeTarget,this.relativeParent.target,this.options.layoutAnchor||void 0)):this.targetDelta?(this.resumingFrom?this.applyTransform(this.layout.layoutBox,!1,this.target):Qi(this.target,this.layout.layoutBox),N5(this.target,this.targetDelta)):Qi(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,this.options.layoutAnchor!==!1&&x&&!!x.resumingFrom==!!this.resumingFrom&&!x.options.layoutScroll&&x.target&&this.animationProgress!==1?this.createRelativeTarget(x,this.target,x.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||X0(this.parent.latestValues)||R5(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(c,h,m){this.relativeParent=c,this.linkedParentVersion=c.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=ln(),this.relativeTargetOrigin=ln(),rf(this.relativeTargetOrigin,h,m,this.options.layoutAnchor||void 0),Qi(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var N;const c=this.getLead(),h=!!this.resumingFrom||this!==c;let m=!0;if((this.isProjectionDirty||(N=this.parent)!=null&&N.isProjectionDirty)&&
vendor: 5,727 bytes, line 49
49(m=!1),h&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(m=!1),this.resolvedRelativeTargetAt===An.timestamp&&(m=!1),m)return;const{layout:g,layoutId:y}=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||y))return;Qi(this.layoutCorrected,this.layout.layoutBox);const _=this.treeScale.x,x=this.treeScale.y;Ux(this.layoutCorrected,this.treeScale,this.path,h),c.layout&&!c.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(c.target=c.layout.layoutBox,c.targetWithTransforms=ln());const{target:R}=c;if(!R){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(l3(this.prevProjectionDelta.x,this.projectionDelta.x),l3(this.prevProjectionDelta.y,this.projectionDelta.y)),Wu(this.projectionDelta,this.layoutCorrected,R,this.latestValues),(this.treeScale.x!==_||this.treeScale.y!==x||!_3(this.projectionDelta.x,this.prevProjectionDelta.x)||!_3(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",R))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(c=!0){var h;if((h=this.options.visualElement)==null||h.scheduleRender(),c){const m=this.getStack();m&&m.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=ll(),this.projectionDelta=ll(),this.projectionDeltaWithTransform=ll()}setAnimationOrigin(c,h=!1,m){const g=this.snapshot,y=g?g.latestValues:{},_={...this.latestValues},x=ll();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!h;const R=ln(),N=g?g.source:void 0,j=this.layout?this.layout.source:void 0,F=N!==j,q=this.getStack(),tt=!q||q.members.length<=1,Z=!!(F&&!tt&&this.options.crossfade===!0&&!this.path.some(zS));this.animationProgress=0;let nt;const ht=m==null?void 0:m.interpolateProjection(c);this.mixTargetDelta=Et=>{const I=Et/1e3,C=ht==null?void 0:ht(I);C?(x.x.translate=C.x,x.x.scale=Ee(c.x.scale,1,I),x.x.origin=c.x.origin,x.x.originPoint=c.x.originPoint,x.y.translate=C.y,x.y.scale=Ee(c.y.scale,1,I),x.y.origin=c.y.origin,x.y.originPoint=c.y.originPoint):(b3(x.x,c.x,I),b3(x.y,c.y,I)),this.setTargetDelta(x),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(rf(R,this.layout.layoutBox,this.relativeParent.layout.layoutBox,this.options.layoutAnchor||void 0),US(this.relativeTarget,this.relativeTargetOrigin,R,I),nt&&pS(this.relativeTarget,nt)&&(this.isProjectionDirty=!1),nt||(nt=ln()),Qi(nt,this.relativeTarget)),F&&(this.animationValues=_,vS(_,y,this.latestValues,I,Z,tt)),C&&C.rotate!==void 0&&(this.animationValues||(this.animationValues=_),this.animationValues.pathRotation=C.rotate),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=I},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(c){var h,m,g;this.notifyListeners("animationStart"),(h=this.currentAnimation)==null||h.stop(),(g=(m=this.resumingFrom)==null?void 0:m.currentAnimation)==null||g.stop(),this.pendingAnimation&&(ia(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Te.update(()=>{zh.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=ml(0)),this.motionValue.jump(0,!1),this.currentAnimation=TS(this.motionValue,[0,1e3],{...c,velocity:0,isSync:!0,onUpdate:y=>{this.mixTargetDelta(y),c.onUpdate&&c.onUpdate(y)},onComplete:()=>{c.onComplete&&c.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 c=this.getStack();c&&c.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(bS),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const c=this.getLead();let{targetWithTransforms:h,target:m,layout:g,latestValues:y}=c;if(!(!h||!m||!g)){if(this!==c&&this.layout&&g&&Q5(this.options.animationType,this.layout.layoutBox,g.layoutBox)){m=this.target||ln();const _=zn(this.layout.layoutBox.x);m.x.min=c.target.x.min,m.x.max=m.x.min+_;const x=zn(this.layout.layoutBox.y);m.y.min=c.target.y.min,m.y.max=m.y.min+x}Qi(h,m),Bh(h,y),Wu(this.projectionDeltaWithTransform,this.layoutCorrected,h,y)}}registerSharedNode(c,h){this.sharedNodes.has(c)||this.sharedNodes.set(c,new wS),this.sharedNodes.get(c).add(h);const g=h.options.initialPromotionConfig;h.promote({transition:g?g.transition:void 0,preserveFollowOpacity:g&&g.shouldPreserveFollowOpacity?g.shouldPreserveFollowOpacity(h):void 0})}isLead(){const c=this.getStack();return c?c.lead===this:!0}getLead(){var h;const{layoutId:c}=this.options;return c?((h=this.getStack())==null?void 0:h.lead)||this:this}getPrevLead(){var h;const{layoutId:c}=this.options;return c?(h=this.getStack())==null?void 0:h.prevLead:void 0}getStack(){const{layoutId:c}=this.options;if(c)return this.root.sharedNodes.get(c)}promote({needsReset:c,transition:h,preserveFollowOpacity:m}={}){const g=this.getStack();g&&g.promote(this,m),c&&(this.projectionDelta=void 0,this.needsReset=!0),h&&this.setOptions({transition:h})}relegate(){const c=this.getStack();return c?c.relegate(this):!1}
vendor: 4,091 bytes, line 49
49resetSkewAndRotation(){const{visualElement:c}=this.options;if(!c)return;let h=!1;const{latestValues:m}=c;if((m.z||m.rotate||m.rotateX||m.rotateY||m.rotateZ||m.skewX||m.skewY)&&(h=!0),!h)return;const g={};m.z&&f0("z",c,g,this.animationValues);for(let y=0;y<h0.length;y++)f0(`rotate${h0[y]}`,c,g,this.animationValues),f0(`skew${h0[y]}`,c,g,this.animationValues);c.render();for(const y in g)c.setStaticValue(y,g[y]),this.animationValues&&(this.animationValues[y]=g[y]);c.scheduleRender()}applyProjectionStyles(c,h){if(!this.instance||this.isSVG)return;if(!this.isVisible){c.visibility="hidden";return}const m=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,c.visibility="",c.opacity="",c.pointerEvents=Uh(h==null?void 0:h.pointerEvents)||"",c.transform=m?m(this.latestValues,""):"none";return}const g=this.getLead();if(!this.projectionDelta||!this.layout||!g.target){this.options.layoutId&&(c.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,c.pointerEvents=Uh(h==null?void 0:h.pointerEvents)||""),this.hasProjected&&!Qa(this.latestValues)&&(c.transform=m?m({},""):"none",this.hasProjected=!1);return}c.visibility="";const y=g.animationValues||g.latestValues;this.applyTransformsToTarget();let _=gS(this.projectionDeltaWithTransform,this.treeScale,y);m&&(_=m(y,_)),c.transform=_;const{x,y:R}=this.projectionDelta;c.transformOrigin=`${x.origin*100}% ${R.origin*100}% 0`,g.animationValues?c.opacity=g===this?y.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:y.opacityExit:c.opacity=g===this?y.opacity!==void 0?y.opacity:"":y.opacityExit!==void 0?y.opacityExit:0;for(const N in Z0){if(y[N]===void 0)continue;const{correct:j,applyTo:F,isCSSVariable:q}=Z0[N],tt=_==="none"?y[N]:j(y[N],g);if(F){const Z=F.length;for(let nt=0;nt<Z;nt++)c[F[nt]]=tt}else q?this.options.visualElement.renderState.vars[N]=tt:c[N]=tt}this.options.layoutId&&(c.pointerEvents=g===this?Uh(h==null?void 0:h.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(c=>{var h;return(h=c.currentAnimation)==null?void 0:h.stop()}),this.root.nodes.forEach(x3),this.root.sharedNodes.clear()}}}function RS(n){n.updateLayout()}function NS(n){var e;const t=((e=n.resumeFrom)==null?void 0:e.snapshot)||n.snapshot;if(n.isLead()&&n.layout&&t&&n.hasListeners("didUpdate")){const{layoutBox:s,measuredBox:a}=n.layout,{animationType:l}=n.options,c=t.source!==n.layout.source;if(l==="size")As(_=>{const x=c?t.measuredBox[_]:t.layoutBox[_],R=zn(x);x.min=s[_].min,x.max=x.min+R});else if(l==="x"||l==="y"){const _=l==="x"?"y":"x";J0(c?t.measuredBox[_]:t.layoutBox[_],s[_])}else Q5(l,t.layoutBox,s)&&As(_=>{const x=c?t.measuredBox[_]:t.layoutBox[_],R=zn(s[_]);x.max=x.min+R,n.relativeTarget&&!n.currentAnimation&&(n.isProjectionDirty=!0,n.relativeTarget[_].max=n.relativeTarget[_].min+R)});const h=ll();Wu(h,s,t.layoutBox);const m=ll();c?Wu(m,n.applyTransform(a,!0),t.measuredBox):Wu(m,s,t.layoutBox);const g=!z5(h);let y=!1;if(!n.resumeFrom){const _=n.getClosestProjectingParent();if(_&&!_.resumeFrom){const{snapshot:x,layout:R}=_;if(x&&R){const N=n.options.layoutAnchor||void 0,j=ln();rf(j,t.layoutBox,x.layoutBox,N);const F=ln();rf(F,s,R.layoutBox,N),F5(j,F)||(y=!0),_.options.layoutRoot&&(n.relativeTarget=F,n.relativeTargetOrigin=j,n.relativeParent=_)}}}n.notifyListeners("didUpdate",{layout:s,snapshot:t,delta:m,layoutDelta:h,hasLayoutChanged:g,hasRelativeLayoutChanged:y})}else if(n.isLead()){const{onExitComplete:s}=n.options;s&&s()}n.options.transition=void 0}function DS(n){n.parent&&(n.isProjecting()||(n.isProjectionDirty=n.parent.isProjectionDirty),n.isSharedProjectionDirty||(n.isSharedProjectionDirty=!!(n.isProjectionDirty||n.parent.isProjectionDirty||n.parent.isSharedProjectionDirty)),n.isTransformDirty||(n.isTransformDirty=n.parent.isTransformDirty))}function VS(n){n.isProjectionDirty=n.isSharedProjectionDirty=n.isTransformDirty=!1}function IS(n){n.clearSnapshot()}function x3(n){n.clearMeasurements()}function OS(n){n.isLayoutDirty=!0,n.updateLayout()}function S3(n){n.isLayoutDirty=!1}
49function MS(n){n.isAnimationBlocked&&n.layout&&!n.isLayoutDirty&&(n.snapshot=n.layout,n.isLayoutDirty=!0)}function PS(n){const{visualElement:t}=n.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),n.resetTransform()}function w3(n){n.finishAnimation(),n.targetDelta=n.relativeTarget=n.target=void 0,n.isProjectionDirty=!0}function LS(n){n.resolveTargetDelta()}function kS(n){n.calcProjection()}function jS(n){n.resetSkewAndRotation()}function BS(n){n.removeLeadSnapshot()}function b3(n,t,e){n.translate=Ee(t.translate,0,e),n.scale=Ee(t.scale,1,e),n.origin=t.origin,n.originPoint=t.originPoint}function C3(n,t,e,s){n.min=Ee(t.min,e.min,s),n.max=Ee(t.max,e.max,s)}function US(n,t,e,s){C3(n.x,t.x,e.x,s),C3(n.y,t.y,e.y,s)}function zS(n){return n.animationValues&&n.animationValues.opacityExit!==void 0}const FS={duration:.45,ease:[.4,0,.1,1]},R3=n=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(n),N3=R3("applewebkit/")&&!R3("chrome/")?Math.round:Di;function D3(n){n.min=N3(n.min),n.max=N3(n.max)}function HS(n){D3(n.x),D3(n.y)}function Q5(n,t,e){return n==="position"||n==="preserve-aspect"&&!cS(v3(t),v3(e),.2)}function qS(n){var t;return n!==n.root&&((t=n.scroll)==null?void 0:t.wasRoot)}const GS=Y5({attachResizeListener:(n,t)=>fc(n,"resize",t),measureScroll:()=>{var n,t;return{x:document.documentElement.scrollLeft||((n=document.body)==null?void 0:n.scrollLeft)||0,y:document.documentElement.scrollTop||((t=document.body)==null?void 0:t.scrollTop)||0}},checkIsScrollRoot:()=>!0}),d0={current:void 0},K5=Y5({measureScroll:n=>({x:n.scrollLeft,y:n.scrollTop}),defaultParent:()=>{if(!d0.current){const n=new GS({});n.mount(window),n.setOptions({layoutScroll:!0}),d0.current=n}return d0.current},resetTransform:(n,t)=>{n.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:n=>window.getComputedStyle(n).position==="fixed"}),im=ct.createContext({transformPagePoint:n=>n,isStatic:!1,reducedMotion:"never"});function V3(n,t){if(typeof n=="function")return n(t);n!=null&&(n.current=t)}function YS(...n){return t=>{let e=!1;const s=n.map(a=>{const l=V3(a,t);return!e&&typeof l=="function"&&(e=!0),l});if(e)return()=>{for(let a=0;a<s.length;a++){const l=s[a];typeof l=="function"?l():V3(n[a],null)}}}}function QS(...n){return ct.useCallback(YS(...n),n)}class KS extends ct.Component{getSnapshotBeforeUpdate(t){const e=this.props.childRef.current;if(Ph(e)&&t.isPresent&&!this.props.isPresent&&this.props.pop!==!1){const s=e.offsetParent,a=Ph(s)&&s.offsetWidth||0,l=Ph(s)&&s.offsetHeight||0,c=getComputedStyle(e),h=this.props.sizeRef.current;h.height=parseFloat(c.height),h.width=parseFloat(c.width),h.top=e.offsetTop,h.left=e.offsetLeft,h.right=a-h.width-h.left,h.bottom=l-h.height-h.top,h.direction=c.direction}return null}componentDidUpdate(){}render(){return this.props.children}}function $S({children:n,isPresent:t,anchorX:e,anchorY:s,root:a,pop:l}){var x;const c=ct.useId(),h=ct.useRef(null),m=ct.useRef({width:0,height:0,top:0,left:0,right:0,bottom:0,direction:"ltr"}),{nonce:g}=ct.useContext(im),y=((x=n.props)==null?void 0:x.ref)??(n==null?void 0:n.ref),_=QS(h,y);return ct.useInsertionEffect(()=>{const{width:R,height:N,top:j,left:F,right:q,bottom:tt,direction:Z}=m.current;if(t||l===!1||!h.current||!R||!N)return;const nt=Z==="rtl",ht=e==="left"?nt?`right: ${q}`:`left: ${F}`:nt?`left: ${F}`:`right: ${q}`,Et=s==="bottom"?`bottom: ${tt}`:`top: ${j}`;h.current.dataset.motionPopId=c;const I=document.createElement("style");g&&(I.nonce=g);const C=a??document.head;return C.appendChild(I),I.sheet&&I.sheet.insertRule(` 50 [data-motion-pop-id="${c}"] { 51 position: absolute !important; 52 width: ${R}px !important; 53 height: ${N}px !important; 54 ${ht}px !important; 55 ${Et}px !important; 56 } 57 `),()=>{var V;(V=h.current)==null||V.removeAttribute("data-motion-pop-id"),C.contains(I)&&C.removeChild(I)}},[t]),w.jsx(KS,{isPresent:t,childRef:h,sizeRef:m,pop:l,children:l===!1?n:ct.cloneElement(n,{ref:_})})}const XS=({children:n,initial:t,isPresent:e,onExitComplete:s,custom:a,presenceAffectsLayout:l,mode:c,anch
vendor: 5,350 bytes, line 57
57orX:h,anchorY:m,root:g})=>{const y=I6(WS),_=ct.useId(),x=ct.useRef(e),R=ct.useRef(s);O6(()=>{x.current=e,R.current=s});let N=!0,j=ct.useMemo(()=>(N=!1,{id:_,initial:t,isPresent:e,custom:a,onExitComplete:F=>{y.set(F,!0);for(const q of y.values())if(!q)return;s&&s()},register:F=>(y.set(F,!1),()=>{var q;y.delete(F),!x.current&&!y.size&&((q=R.current)==null||q.call(R))})}),[e,y,s]);return l&&N&&(j={...j}),ct.useMemo(()=>{y.forEach((F,q)=>y.set(q,!1))},[e]),ct.useEffect(()=>{!e&&!y.size&&s&&s()},[e]),n=w.jsx($S,{pop:c==="popLayout",isPresent:e,anchorX:h,anchorY:m,root:g,children:n}),w.jsx(bf.Provider,{value:j,children:n})};function WS(){return new Map}function $5(n=!0){const t=ct.useContext(bf);if(t===null)return[!0,null];const{isPresent:e,onExitComplete:s,register:a}=t,l=ct.useId();ct.useEffect(()=>{if(n)return a(l)},[n]);const c=ct.useCallback(()=>n&&s&&s(l),[l,s,n]);return!e&&s?[!1,c]:[!0]}const Ah=n=>n.key||"";function I3(n){const t=[];return ct.Children.forEach(n,e=>{ct.isValidElement(e)&&t.push(e)}),t}const Df=({children:n,custom:t,initial:e=!0,onExitComplete:s,presenceAffectsLayout:a=!0,mode:l="sync",propagate:c=!1,anchorX:h="left",anchorY:m="top",root:g})=>{const[y,_]=$5(c),x=ct.useMemo(()=>I3(n),[n]),R=c&&!y?[]:x.map(Ah),N=ct.useRef(!0),j=ct.useRef(x),F=I6(()=>new Map),q=ct.useRef(new Set),[tt,Z]=ct.useState(x),[nt,ht]=ct.useState(x);O6(()=>{N.current=!1,j.current=x;for(let C=0;C<nt.length;C++){const V=Ah(nt[C]);R.includes(V)?(F.delete(V),q.current.delete(V)):F.get(V)!==!0&&F.set(V,!1)}},[nt,R.length,R.join("-")]);const Et=[];if(x!==tt){let C=[...x];for(let V=0;V<nt.length;V++){const M=nt[V],P=Ah(M);R.includes(P)||(C.splice(V,0,M),Et.push(M))}return l==="wait"&&Et.length&&(C=Et),ht(I3(C)),Z(x),null}const{forceRender:I}=ct.useContext(V6);return w.jsx(w.Fragment,{children:nt.map(C=>{const V=Ah(C),M=c&&!y?!1:x===nt||R.includes(V),P=()=>{if(q.current.has(V))return;if(F.has(V))q.current.add(V),F.set(V,!0);else return;let U=!0;F.forEach(O=>{O||(U=!1)}),U&&(I==null||I(),ht(j.current),c&&(_==null||_()),s&&s())};return w.jsx(XS,{isPresent:M,initial:!N.current||e?void 0:!1,custom:t,presenceAffectsLayout:a,mode:l,root:g,onExitComplete:M?void 0:P,anchorX:h,anchorY:m,children:C},V)})})},X5=ct.createContext({strict:!1}),O3={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 M3=!1;function ZS(){if(M3)return;const n={};for(const t in O3)n[t]={isEnabled:e=>O3[t].some(s=>!!e[s])};w5(n),M3=!0}function W5(){return ZS(),Lx()}function JS(n){const t=W5();for(const e in n)t[e]={...t[e],...n[e]};w5(t)}const tw=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","propagate","ignoreStrict","viewport"]);function af(n){return n.startsWith("while")||n.startsWith("drag")&&n!=="draggable"||n.startsWith("layout")||n.startsWith("onTap")||n.startsWith("onPan")||n.startsWith("onLayout")||tw.has(n)}let Z5=n=>!af(n);function ew(n){typeof n=="function"&&(Z5=t=>t.startsWith("on")?!af(t):n(t))}try{ew(require("@emotion/is-prop-valid").default)}catch{}function nw(n,t,e){const s={};for(const a in n)a==="values"&&typeof n.values=="object"||Sn(n[a])||(Z5(a)||e===!0&&af(a)||!t&&!af(a)||n.draggable&&a.startsWith("onDrag"))&&(s[a]=n[a]);return s}const Vf=ct.createContext({});function iw(n,t){if(Nf(n)){const{initial:e,animate:s}=n;return{initial:e===!1||hc(e)?e:void 0,animate:hc(s)?s:void 0}}return n.inherit!==!1?t:{}}function sw(n){const{initial:t,animate:e}=iw(n,ct.useContext(Vf));return ct.useMemo(()=>({initial:t,animate:e}),[P3(t),P3(e)])}function P3(n){return Array.isArray(n)?n.join(" "):n}const sm=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function J5(n,t,e){for(const s in t)!Sn(t[s])&&!I5(s,e)&&(n[s]=t[s])}function rw({transformTemplate:n},t){return ct.useMemo(()=>{const e=sm();return em(e,t,n),Object.assign({},e.vars,e.style)},[t])}function aw(n,t){const e=n.style||{},s={};return J5(s,e,n),Object.assign(s,rw(n,t)),s}function ow(n,t){const e={},s=aw(n,t);return n.drag&&n.dragListener!==!1&&(e.draggable=!1,s.userSelect=s.WebkitUserSelect=s.WebkitTouchCallout="none",s.touchAction=n.drag===!0?"none":`pan-${n.drag==="x"?"y":"x"}`),n.tabIndex===void 0&&(n.onTap||n.onTapStart||n.whileTap)&&(e.tabIndex=0),e.style=s,e}const ty=()=>({...sm(),attrs:{}});function lw(n,t,e,s){const a=ct.useMemo(()=>{const l=ty();return O5(l,t,P5(s),n.transformTemplate,n.style),{...l.attrs,style:{...l.style}}},[t]);if(n.style){const l={};J5(l,n.style,n),a.style={...l,...a.style}}return a}const uw=["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"];
vendor: 4,263 bytes, line 57
57function rm(n){return typeof n!="string"||n.includes("-")?!1:!!(uw.indexOf(n)>-1||/[A-Z]/u.test(n))}function cw(n,t,e,{latestValues:s},a,l=!1,c){const m=(c??rm(n)?lw:ow)(t,s,a,n),g=nw(t,typeof n=="string",l),y=n!==ct.Fragment?{...g,...m,ref:e}:{},{children:_}=t,x=ct.useMemo(()=>Sn(_)?_.get():_,[_]);return ct.createElement(n,{...y,children:x})}function hw({scrapeMotionValuesFromProps:n,createRenderState:t},e,s,a){return{latestValues:fw(e,s,a,n),renderState:t()}}function fw(n,t,e,s){const a={},l=s(n,{});for(const x in l)a[x]=Uh(l[x]);let{initial:c,animate:h}=n;const m=Nf(n),g=x5(n);t&&g&&!m&&n.inherit!==!1&&(c===void 0&&(c=t.initial),h===void 0&&(h=t.animate));let y=e?e.initial===!1:!1;y=y||c===!1;const _=y?h:c;if(_&&typeof _!="boolean"&&!Rf(_)){const x=Array.isArray(_)?_:[_];for(let R=0;R<x.length;R++){const N=K6(n,x[R]);if(N){const{transitionEnd:j,transition:F,...q}=N;for(const tt in q){let Z=q[tt];if(Array.isArray(Z)){const nt=y?Z.length-1:0;Z=Z[nt]}Z!==null&&(a[tt]=Z)}for(const tt in j)a[tt]=j[tt]}}}return a}const ey=n=>(t,e)=>{const s=ct.useContext(Vf),a=ct.useContext(bf),l=()=>hw(n,t,s,a);return e?l():I6(l)},dw=ey({scrapeMotionValuesFromProps:nm,createRenderState:sm}),mw=ey({scrapeMotionValuesFromProps:L5,createRenderState:ty}),pw=Symbol.for("motionComponentSymbol");function gw(n,t,e){const s=ct.useRef(e);ct.useInsertionEffect(()=>{s.current=e});const a=ct.useRef(null);return ct.useCallback(l=>{var h;l&&((h=n.onMount)==null||h.call(n,l)),t&&(l?t.mount(l):t.unmount());const c=s.current;if(typeof c=="function")if(l){const m=c(l);typeof m=="function"&&(a.current=m)}else a.current?(a.current(),a.current=null):c(l);else c&&(c.current=l)},[t])}const ny=ct.createContext({});function el(n){return n&&typeof n=="object"&&Object.prototype.hasOwnProperty.call(n,"current")}function yw(n,t,e,s,a,l){var Z,nt;const{visualElement:c}=ct.useContext(Vf),h=ct.useContext(X5),m=ct.useContext(bf),g=ct.useContext(im),y=g.reducedMotion,_=g.skipAnimations,x=ct.useRef(null),R=ct.useRef(!1);s=s||h.renderer,!x.current&&s&&(x.current=s(n,{visualState:t,parent:c,props:e,presenceContext:m,blockInitialAnimation:m?m.initial===!1:!1,reducedMotionConfig:y,skipAnimations:_,isSVG:l}),R.current&&x.current&&(x.current.manuallyAnimateOnMount=!0));const N=x.current,j=ct.useContext(ny);N&&!N.projection&&a&&(N.type==="html"||N.type==="svg")&&vw(x.current,e,a,j);const F=ct.useRef(!1);ct.useInsertionEffect(()=>{N&&F.current&&N.update(e,m)});const q=e[h5],tt=ct.useRef(!!q&&typeof window<"u"&&!((Z=window.MotionHandoffIsComplete)!=null&&Z.call(window,q))&&((nt=window.MotionHasOptimisedAnimation)==null?void 0:nt.call(window,q)));return O6(()=>{R.current=!0,N&&(F.current=!0,window.MotionIsMounted=!0,N.updateFeatures(),N.scheduleRenderMicrotask(),tt.current&&N.animationState&&N.animationState.animateChanges())}),ct.useEffect(()=>{N&&(!tt.current&&N.animationState&&N.animationState.animateChanges(),tt.current&&(queueMicrotask(()=>{var ht;(ht=window.MotionHandoffMarkAsComplete)==null||ht.call(window,q)}),tt.current=!1),N.enteringChildren=void 0)}),N}function vw(n,t,e,s){const{layoutId:a,layout:l,drag:c,dragConstraints:h,layoutScroll:m,layoutRoot:g,layoutAnchor:y,layoutCrossfade:_}=t;n.projection=new e(n.latestValues,t["data-framer-portal-id"]?void 0:iy(n.parent)),n.projection.setOptions({layoutId:a,layout:l,alwaysMeasureLayout:!!c||h&&el(h),visualElement:n,animationType:typeof l=="string"?l:"both",initialPromotionConfig:s,crossfade:_,layoutScroll:m,layoutRoot:g,layoutAnchor:y})}function iy(n){if(n)return n.options.allowProjection!==!1?n.projection:iy(n.parent)}function m0(n,{forwardMotionProps:t=!1,type:e}={},s,a){s&&JS(s);const l=e?e==="svg":rm(n),c=l?mw:dw;function h(g,y){let _;const x={...ct.useContext(im),...g,layoutId:_w(g)},{isStatic:R}=x,N=sw(g),j=c(g,R);if(!R&&typeof window<"u"){Ew();const F=Tw(x);_=F.MeasureLayout,N.visualElement=yw(n,j,x,a,F.ProjectionNode,l)}return w.jsxs(Vf.Provider,{value:N,children:[_&&N.visualElement?w.jsx(_,{visualElement:N.visualElement,...x}):null,cw(n,g,gw(j,N.visualElement,y),j,R,t,l)]})}h.displayName=`motion.${typeof n=="string"?n:`create(${n.displayName??n.name??""})`}`;const m=ct.forwardRef(h);return m[pw]=n,m}function _w({layoutId:n}){const t=ct.useContext(V6).id;return t&&n!==void 0?t+"-"+n:n}
57function Ew(n,t){ct.useContext(X5).strict}function Tw(n){const t=W5(),{drag:e,layout:s}=t;if(!e&&!s)return{};const a={...e,...s};return{MeasureLayout:e!=null&&e.isEnabled(n)||s!=null&&s.isEnabled(n)?a.MeasureLayout:void 0,ProjectionNode:a.ProjectionNode}}function Aw(n,t){if(typeof Proxy>"u")return m0;const e=new Map,s=(l,c)=>m0(l,c,n,t),a=(l,c)=>s(l,c);return new Proxy(a,{get:(l,c)=>c==="create"?s:(e.has(c)||e.set(c,m0(c,void 0,n,t)),e.get(c))})}const xw=(n,t)=>t.isSVG??rm(n)?new Jx(t):new Qx(t,{allowProjection:n!==ct.Fragment});class Sw extends ma{constructor(t){super(t),t.animationState||(t.animationState=sS(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Rf(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let ww=0;class bw extends ma{constructor(){super(...arguments),this.id=ww++,this.isExitComplete=!1}update(){var l;if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:s}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===s)return;if(t&&s===!1){if(this.isExitComplete){const{initial:c,custom:h}=this.node.getProps();if(typeof c=="string"||typeof c=="object"&&c!==null&&!Array.isArray(c)){const m=to(this.node,c,h);if(m){const{transition:g,transitionEnd:y,..._}=m;for(const x in _)(l=this.node.getValue(x))==null||l.jump(_[x])}}this.node.animationState.reset(),this.node.animationState.animateChanges()}else this.node.animationState.setActive("exit",!1);this.isExitComplete=!1;return}const a=this.node.animationState.setActive("exit",!t);e&&!t&&a.then(()=>{this.isExitComplete=!0,e(this.id)})}mount(){const{register:t,onExitComplete:e}=this.node.presenceContext||{};
vendor: 17,111 bytes, line 57
57e&&e(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Cw={animation:{Feature:Sw},exit:{Feature:bw}};function Pc(n){return{point:{x:n.pageX,y:n.pageY}}}const Rw=n=>t=>W6(t)&&n(t,Pc(t));function Zu(n,t,e,s){return fc(n,t,Rw(e),s)}const sy=({current:n})=>n?n.ownerDocument.defaultView:null,L3=(n,t)=>Math.abs(n-t);function Nw(n,t){const e=L3(n.x,t.x),s=L3(n.y,t.y);return Math.sqrt(e**2+s**2)}const k3=new Set(["auto","scroll"]);class ry{constructor(t,e,{transformPagePoint:s,contextWindow:a=window,dragSnapToOrigin:l=!1,distanceThreshold:c=3,element:h}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.lastRawMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=N=>{this.handleScroll(N.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;this.lastRawMoveEventInfo&&(this.lastMoveEventInfo=xh(this.lastRawMoveEventInfo,this.transformPagePoint));const N=p0(this.lastMoveEventInfo,this.history),j=this.startEvent!==null,F=Nw(N.offset,{x:0,y:0})>=this.distanceThreshold;if(!j&&!F)return;const{point:q}=N,{timestamp:tt}=An;this.history.push({...q,timestamp:tt});const{onStart:Z,onMove:nt}=this.handlers;j||(Z&&Z(this.lastMoveEvent,N),this.startEvent=this.lastMoveEvent),nt&&nt(this.lastMoveEvent,N)},this.handlePointerMove=(N,j)=>{this.lastMoveEvent=N,this.lastRawMoveEventInfo=j,this.lastMoveEventInfo=xh(j,this.transformPagePoint),Te.update(this.updatePoint,!0)},this.handlePointerUp=(N,j)=>{this.end();const{onEnd:F,onSessionEnd:q,resumeAnimation:tt}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&tt&&tt(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const Z=p0(N.type==="pointercancel"?this.lastMoveEventInfo:xh(j,this.transformPagePoint),this.history);this.startEvent&&F&&F(N,Z),q&&q(N,Z)},!W6(t))return;this.dragSnapToOrigin=l,this.handlers=e,this.transformPagePoint=s,this.distanceThreshold=c,this.contextWindow=a||window;const m=Pc(t),g=xh(m,this.transformPagePoint),{point:y}=g,{timestamp:_}=An;this.history=[{...y,timestamp:_}];const{onSessionStart:x}=e;x&&x(t,p0(g,this.history));const R={passive:!0,capture:!0};this.removeListeners=Ic(Zu(this.contextWindow,"pointermove",this.handlePointerMove,R),Zu(this.contextWindow,"pointerup",this.handlePointerUp,R),Zu(this.contextWindow,"pointercancel",this.handlePointerUp,R)),h&&this.startScrollTracking(h)}startScrollTracking(t){let e=t.parentElement;for(;e;){const s=getComputedStyle(e);(k3.has(s.overflowX)||k3.has(s.overflowY))&&this.scrollPositions.set(e,{x:e.scrollLeft,y:e.scrollTop}),e=e.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener("scroll",this.onElementScroll,{capture:!0}),window.addEventListener("scroll",this.onWindowScroll),this.removeScrollListeners=()=>{window.removeEventListener("scroll",this.onElementScroll,{capture:!0}),window.removeEventListener("scroll",this.onWindowScroll)}}handleScroll(t){const e=this.scrollPositions.get(t);if(!e)return;const s=t===window,a=s?{x:window.scrollX,y:window.scrollY}:{x:t.scrollLeft,y:t.scrollTop},l={x:a.x-e.x,y:a.y-e.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(t,a),Te.update(this.updatePoint,!0))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),ia(this.updatePoint)}}function xh(n,t){return t?{point:t(n.point)}:n}function j3(n,t){return{x:n.x-t.x,y:n.y-t.y}}function p0({point:n},t){return{point:n,delta:j3(n,ay(t)),offset:j3(n,Dw(t)),velocity:Vw(t,.1)}}function Dw(n){return n[0]}function ay(n){return n[n.length-1]}function Vw(n,t){if(n.length<2)return{x:0,y:0};let e=n.length-1,s=null;const a=ay(n);for(;e>=0&&(s=n[e],!(a.timestamp-s.timestamp>di(t)));)e--;if(!s)return{x:0,y:0};s===n[0]&&n.length>2&&a.timestamp-s.timestamp>di(t)*2&&(s=n[1]);const l=Ni(a.timestamp-s.timestamp);if(l===0)return{x:0,y:0};const c={x:(a.x-s.x)/l,y:(a.y-s.y)/l};return c.x===1/0&&(c.x=0),c.y===1/0&&(c.y=0),c}function Iw(n,{min:t,max:e},s){return t!==void 0&&n<t?n=s?Ee(t,n,s.min):Math.max(n,t):e!==void 0&&n>e&&(n=s?Ee(e,n,s.max):Math.min(n,e)),n}function B3(n,t,e){return{min:t!==void 0?n.min+t:void 0,max:e!==void 0?n.max+e-(n.max-n.min):void 0}}function Ow(n,{top:t,left:e,bottom:s,right:a}){return{x:B3(n.x,e,a),y:B3(n.y,t,s)}}function U3(n,t){let e=t.min-n.min,s=t.max-n.max;return t.max-t.min<n.max-n.min&&([e,s]=[s,e]),{min:e,max:s}}function Mw(n,t){return{x:U3(n.x,t.x),y:U3(n.y,t.y)}}function Pw(n,t){let e=.5;const s=zn(n),a=zn(t);return a>s?e=uc(t.min,t.max-s,n.min):s>a&&(e=uc(n.min,n.max-a,t.min)),Is(0,1,e)}function Lw(n,t){const e={};return t.min!==void 0&&(e.min=t.min-n.min),t.max!==void 0&&(e.max=t.max-n.min),e}const t6=.35;function kw(n=t6){return n===!1?n=0:n===!0&&(n=t6),{x:z3(n,"left","right"),y:z3(n,"top","bottom")}}function z3(n,t,e){return{min:F3(n,t),max:F3(n,e)}}function F3(n,t){return typeof n=="number"?n:n[t]||0}const jw=new WeakMap;class Bw{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=ln(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:e=!1,distanceThreshold:s}={}){const{presenceContext:a}=this.visualElement;if(a&&a.isPresent===!1)return;const l=_=>{e&&this.snapToCursor(Pc(_).point),this.stopAnimation()},c=(_,x)=>{const{drag:R,dragPropagation:N,onDragStart:j}=this.getProps();if(R&&!N&&(this.openDragLock&&this.openDragLock(),this.openDragLock=fx(R),!this.openDragLock))return;this.latestPointerEvent=_,this.latestPanInfo=x,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),As(q=>{let tt=this.getAxisMotionValue(q).get()||0;if(Cs.test(tt)){const{projection:Z}=this.visualElement;if(Z&&Z.layout){const nt=Z.layout.layoutBox[q];nt&&(tt=zn(nt)*(parseFloat(tt)/100))}}this.originPoint[q]=tt}),j&&Te.update(()=>j(_,x),!1,!0),q0(this.visualElement,"transform");const{animationState:F}=this.visualElement;F&&F.setActive("whileDrag",!0)},h=(_,x)=>{this.latestPointerEvent=_,this.latestPanInfo=x;const{dragPropagation:R,dragDirectionLock:N,onDirectionLock:j,onDrag:F}=this.getProps();if(!R&&!this.openDragLock)return;const{offset:q}=x;if(N&&this.currentDirection===null){this.currentDirection=zw(q),this.currentDirection!==null&&j&&j(this.currentDirection);return}this.updateAxis("x",x.point,q),this.updateAxis("y",x.point,q),this.visualElement.render(),F&&Te.update(()=>F(_,x),!1,!0)},m=(_,x)=>{this.latestPointerEvent=_,this.latestPanInfo=x,this.stop(_,x),this.latestPointerEvent=null,this.latestPanInfo=null},g=()=>{const{dragSnapToOrigin:_}=this.getProps();(_||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:y}=this.getProps();this.panSession=new ry(t,{onSessionStart:l,onStart:c,onMove:h,onSessionEnd:m,resumeAnimation:g},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:y,distanceThreshold:s,contextWindow:sy(this.visualElement),element:this.visualElement.current})}stop(t,e){const s=t||this.latestPointerEvent,a=e||this.latestPanInfo,l=this.isDragging;if(this.cancel(),!l||!a||!s)return;const{velocity:c}=a;this.startAnimation(c);const{onDragEnd:h}=this.getProps();h&&Te.postRender(()=>h(s,a))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.endPanSession();const{dragPropagation:s}=this.getProps();!s&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(t,e,s){const{drag:a}=this.getProps();if(!s||!Sh(t,a,this.currentDirection))return;const l=this.getAxisMotionValue(t);let c=this.originPoint[t]+s[t];this.constraints&&this.constraints[t]&&(c=Iw(c,this.constraints[t],this.elastic[t])),l.set(c)}resolveConstraints(){var l;const{dragConstraints:t,dragElastic:e}=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;t&&el(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&s?this.constraints=Ow(s.layoutBox,t):this.constraints=!1,this.elastic=kw(e),a!==this.constraints&&!el(t)&&s&&this.constraints&&!this.hasMutatedConstraints&&As(c=>{this.constraints!==!1&&this.getAxisMotionValue(c)&&(this.constraints[c]=Lw(s.layoutBox[c],this.constraints[c]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!el(t))return!1;const s=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;a.root&&(a.root.scroll=void 0,a.root.updateScroll());const l=zx(s,a.root,this.visualElement.getTransformPagePoint());let c=Mw(a.layout.layoutBox,l);if(e){const h=e(jx(c));this.hasMutatedConstraints=!!h,h&&(c=C5(h))}return c}startAnimation(t){const{drag:e,dragMomentum:s,dragElastic:a,dragTransition:l,dragSnapToOrigin:c,onDragTransitionEnd:h}=this.getProps(),m=this.constraints||{},g=As(y=>{if(!Sh(y,e,this.currentDirection))return;let _=m&&m[y]||{};(c===!0||c===y)&&(_={min:0,max:0});const x=a?200:1e6,R=a?40:1e7,N={type:"inertia",velocity:s?t[y]:0,bounceStiffness:x,bounceDamping:R,timeConstant:750,restDelta:1,restSpeed:10,...l,..._};return this.startAxisValueAnimation(y,N)});return Promise.all(g).then(h)}startAxisValueAnimation(t,e){const s=this.getAxisMotionValue(t);return q0(this.visualElement,t),s.start(Q6(t,s,0,e,this.visualElement,!1))}stopAnimation(){As(t=>this.getAxisMotionValue(t).stop())}getAxisMotionValue(t){const e=`_drag${t.toUpperCase()}`,a=this.visualElement.getProps()[e];return a||this.visualElement.getValue(t,this.visualElement.latestValues[t]??0)}snapToCursor(t){As(e=>{const{drag:s}=this.getProps();if(!Sh(e,s,this.currentDirection))return;const{projection:a}=this.visualElement,l=this.getAxisMotionValue(e);if(a&&a.layout){const{min:c,max:h}=a.layout.layoutBox[e],m=l.get()||0;l.set(t[e]-Ee(c,h,.5)+m)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:s}=this.visualElement;if(!el(e)||!s||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};As(c=>{const h=this.getAxisMotionValue(c);if(h&&this.constraints!==!1){const m=h.get();a[c]=Pw({min:m,max:m},this.constraints[c])}});const{transformTemplate:l}=this.visualElement.getProps();this.visualElement.current.style.transform=l?l({},""):"none",s.root&&s.root.updateScroll(),s.updateLayout(),this.constraints=!1,this.resolveConstraints(),As(c=>{if(!Sh(c,t,null))return;const h=this.getAxisMotionValue(c),{min:m,max:g}=this.constraints[c];h.set(Ee(m,g,a[c]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;jw.set(this.visualElement,this);const t=this.visualElement.current,e=Zu(t,"pointerdown",g=>{const{drag:y,dragListener:_=!0}=this.getProps(),x=g.target,R=x!==t&&vx(x);y&&_&&!R&&this.start(g)});let s;const a=()=>{const{dragConstraints:g}=this.getProps();el(g)&&g.current&&(this.constraints=this.resolveRefConstraints(),s||(s=Uw(t,g.current,()=>this.scalePositionWithinConstraints())))},{projection:l}=this.visualElement,c=l.addEventListener("measure",a);l&&!l.layout&&(l.root&&l.root.updateScroll(),l.updateLayout()),Te.read(a);const h=fc(window,"resize",()=>this.scalePositionWithinConstraints()),m=l.addEventListener("didUpdate",(({delta:g,hasLayoutChanged:y})=>{this.isDragging&&y&&(As(_=>{const x=this.getAxisMotionValue(_);x&&(this.originPoint[_]+=g[_].translate,x.set(x.get()+g[_].translate))}),this.visualElement.render())}));return()=>{h(),e(),c(),m&&m(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:s=!1,dragPropagation:a=!1,dragConstraints:l=!1,dragElastic:c=t6,dragMomentum:h=!0}=t;return{...t,drag:e,dragDirectionLock:s,dragPropagation:a,dragConstraints:l,dragElastic:c,dragMomentum:h}}}function H3(n){let t=!0;return()=>{if(t){t=!1;return}n()}}function Uw(n,t,e){const s=Xg(n,H3(e)),a=Xg(t,H3(e));return()=>{s(),a()}}function Sh(n,t,e){return(t===!0||t===n)&&(e===null||e===n)}function zw(n,t=10){let e=null;return Math.abs(n.y)>t?e="y":Math.abs(n.x)>t&&(e="x"),e}class Fw extends ma{constructor(t){super(t),this.removeGroupControls=Di,this.removeListeners=Di,this.controls=new Bw(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Di}update(){const{dragControls:t}=this.node.getProps(),{dragControls:e}=this.node.prevProps||{};t!==e&&(this.removeGroupControls(),t&&(this.removeGroupControls=t.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}}const g0=n=>(t,e)=>{n&&Te.update(()=>n(t,e),!1,!0)};class Hw extends ma{constructor(){super(...arguments),this.removePointerDownListener=Di}onPointerDown(t){this.session=new ry(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:sy(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:s,onPanEnd:a}=this.node.getProps();return{onSessionStart:g0(t),onStart:g0(e),onMove:g0(s),onEnd:(l,c)=>{delete this.session,a&&Te.postRender(()=>a(l,c))}}}mount(){this.removePointerDownListener=Zu(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}let y0=!1;class qw extends ct.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:s,layoutId:a}=this.props,{projection:l}=t;l&&(e.group&&e.group.add(l),s&&s.register&&a&&s.register(l),y0&&l.root.didUpdate(),l.addEventListener("animationComplete",()=>{this.safeToRemove()}),l.setOptions({...l.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),zh.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:s,drag:a,isPresent:l}=this.props,{projection:c}=s;return c&&(c.isPresent=l,t.layoutDependency!==e&&c.setOptions({...c.options,layoutDependency:e}),y0=!0,a||t.layoutDependency!==e||e===void 0||t.isPresent!==l?c.willUpdate():this.safeToRemove(),t.isPresent!==l&&(l?c.promote():c.relegate()||Te.postRender(()=>{const h=c.getStack();(!h||!h.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{visualElement:t,layoutAnchor:e}=this.props,{projection:s}=t;s&&(s.options.layoutAnchor=e,s.root.didUpdate(),X6.postRender(()=>{!s.currentAnimation&&s.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:s}=this.props,{projection:a}=t;y0=!0,a&&(a.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(a),s&&s.deregister&&s.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function oy(n){const[t,e]=$5(),s=ct.useContext(V6);return w.jsx(qw,{...n,layoutGroup:s,switchLayoutGroup:ct.useContext(ny),isPresent:t,safeToRemove:e})}const Gw={pan:{Feature:Hw},drag:{Feature:Fw,ProjectionNode:K5,MeasureLayout:oy}};function q3(n,t,e){const{props:s}=n;n.animationState&&s.whileHover&&n.animationState.setActive("whileHover",e==="Start");const a="onHover"+e,l=s[a];l&&Te.postRender(()=>l(t,Pc(t)))}class Yw extends ma{mount(){const{current:t}=this.node;t&&(this.unmount=mx(t,(e,s)=>(q3(this.node,s,"Start"),a=>q3(this.node,a,"End"))))}unmount(){}}class Qw extends ma{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!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=Ic(fc(this.node.current,"focus",()=>this.onFocus()),fc(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function G3(n,t,e){const{props:s}=n;if(n.current instanceof HTMLButtonElement&&n.current.disabled)return;n.animationState&&s.whileTap&&n.animationState.setActive("whileTap",e==="Start");const a="onTap"+(e==="End"?"":e),l=s[a];l&&Te.postRender(()=>l(t,Pc(t)))}class Kw extends ma{mount(){const{current:t}=this.node;if(!t)return;const{globalTapTarget:e,propagate:s}=this.node.props;this.unmount=Ex(t,(a,l)=>(G3(this.node,l,"Start"),(c,{success:h})=>G3(this.node,c,h?"End":"Cancel")),{useGlobalTarget:e,stopPropagation:(s==null?void 0:s.tap)===!1})}unmount(){}}const e6=new WeakMap,v0=new WeakMap,$w=n=>{const t=e6.get(n.target);t&&t(n)},Xw=n=>
57{n.forEach($w)};function Ww({root:n,...t}){const e=n||document;v0.has(e)||v0.set(e,{});const s=v0.get(e),a=JSON.stringify(t);return s[a]||(s[a]=new IntersectionObserver(Xw,{root:n,...t})),s[a]}function Zw(n,t,e){const s=Ww(t);return e6.set(n,e),s.observe(n),()=>{e6.delete(n),s.unobserve(n)}}const Jw={some:0,all:1};class tb extends ma{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){var m;(m=this.stopObserver)==null||m.call(this);const{viewport:t={}}=this.node.getProps(),{root:e,margin:s,amount:a="some",once:l}=t,c={root:e?e.current:void 0,rootMargin:s,threshold:typeof a=="number"?a:Jw[a]},h=g=>{const{isIntersecting:y}=g;if(this.isInView===y||(this.isInView=y,l&&!y&&this.hasEnteredView))return;y&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",y);const{onViewportEnter:_,onViewportLeave:x}=this.node.getProps(),R=y?_:x;R&&R(g)};this.stopObserver=Zw(this.node.current,c,h)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:e}=this.node;["amount","margin","root"].some(eb(t,e))&&this.startObserver()}unmount(){var t;(t=this.stopObserver)==null||t.call(this),this.hasEnteredView=!1,this.isInView=!1}}function eb({viewport:n={}},{viewport:t={}}={}){return e=>n[e]!==t[e]}const nb={inView:{Feature:tb},tap:{Feature:Kw},focus:{Feature:Qw},hover:{Feature:Yw}},ib={layout:{ProjectionNode:K5,MeasureLayout:oy}},sb={...Cw,...nb,...Gw,...ib},rb=Aw(sb,xw),Je=rb;function ab({onScrollToWaitlist:n,onOpenAdmin:t,adminClickCount:e=0,isDeactivated:s=!1}){return w.jsxs("header",{className:"w-full bg-[#FAF6F0] px-6 py-6 md:px-12 flex items-center justify-between",style:{borderBottom:"1px solid #686774"},children:[w.jsx("div",{id:"app-logo",onClick:t,className:"flex items-center gap-2.5 cursor-pointer select-none group transition-transform active:scale-95",title:"Astute Bank",children:w.jsx("img",{src:"https://lh3.googleusercontent.com/d/1AWjzSA2p_N66-Dofv-7ng2R4pvoguJ-E",alt:"Astute Logo",className:"h-9 sm:h-10 w-auto object-contain filter hover:brightness-105 transition-all duration-300",referrerPolicy:"no-referrer"})}),w.jsx("button",{id:"header-cta",onClick:n,disabled:s,className:`font-sans font-extrabold flex items-center justify-center text-center transition-all duration-300 shrink-0 text-xs sm:text-base w-[170px] sm:w-[263px] h-[44px] sm:h-[56px] rounded-[24px] ${s?"pointer-events-none":"bg-[#1D1B31] text-[#CDFF00] border border-black hover:brightness-110 cursor-pointer shadow-md transform active:scale-95"}`,style:s?{border:"1px solid #686774",background:"#FFF8EF",color:"#1D1B31",borderRadius:"24px"}:void 0,children:"Join the Revolution"})]})}function ob({onScrollToWaitlist:n}){return w.jsxs("section",{className:"bg-astute-cream min-h-[calc(100vh-88px)] md:min-h-[calc(100vh-96px)] flex flex-col items-center justify-center px-4 py-12 sm:py-20 text-center overflow-hidden relative",children:[w.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(#151329_0.05rem,transparent_0.05rem)] [background-size:1.5rem_1.5rem] opacity-[0.03] pointer-events-none"}),w.jsxs("div",{className:"max-w-5xl mx-auto w-full z-10",children:[w.jsxs(Je.div,{initial:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.8,ease:"easeOut"},className:"flex flex-col items-center justify-center space-y-3 sm:space-y-4 md:space-y-6",children:[w.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-x-2 sm:gap-x-3 md:gap-x-4 gap-y-2",children:[w.jsx("span",{className:"font-sans italic font-extrabold select-none leading-normal text-4xl sm:text-6xl md:text-7xl lg:text-[88px]",style:{color:"#552861"},children:"You"}),w.jsx(Je.div,{whileHover:{scale:1.1,rotate:-2},whileTap:{scale:.95},className:"inline-flex items-center justify-center bg-astute-gold rounded-full w-20 h-20 sm:w-28 sm:h-28 md:w-32 md:h-32 lg:w-36 lg:h-36 text-center shadow-sm select-none cursor-pointer",children:w.jsx("span",{className:"font-sans italic font-extrabold leading-normal -mt-1 sm:-mt-2 lg:-mt-4 text-3xl sm:text-5xl md:text-6xl lg:text-[88px]",style:{color:"#552861"},children:"try"})}),w.jsx("span",{className:"font-sans font-bold select-none leading-normal text-3xl sm:text-5xl md:text-6xl lg:text-[72px]",style:{color:"#000"},children:"to SAVE"})]}),w.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-x-2 sm:gap-x-3 md:gap-x-4 gap-y-2",children:[w.jsx("span",{className:"font-sans italic font-extrabold select-none leading-normal text-4xl sm:text-6xl md:text-7xl lg:text-[88px]",style:{color:"#552861"},children:"you"}),w.jsx(Je.div,{whileHover:{scale:1.1,rotate:3},whileTap:{scale:.95},className:"inline-flex items-center justify-center bg-astute-gold rounded-full w-20 h-20 sm:w-28 sm:h-28 md:w-32 md:h-32 lg:w-36 lg:h-36 text-center shadow-sm select-none cursor-pointer",children:w.jsx("span",{className:"font-sans italic font-extrabold leading-normal -mt-1 sm:-mt-2 lg:-mt-4 text-3xl sm:text-5xl md:text-6xl lg:text-[88px]",style:{color:"#552861"},children:"try"})}),w.jsx("span",{className:"font-sans font-bold select-none leading-normal text-3xl sm:text-5xl md:text-6xl lg:text-[72px]",style:{color:"#000"},children:"to BUDGET"})]}),w.jsxs(Je.div,{initial:{opacity:0}
vendor: 5,284 bytes, lines 57-112
57,animate:{opacity:1},transition:{delay:.4,duration:.8},className:"pt-6 sm:pt-10 select-none leading-normal flex flex-wrap items-center justify-center gap-x-2.5 gap-y-1",children:[w.jsx("span",{className:"font-sans italic text-2xl sm:text-4xl md:text-5xl lg:text-[56px]",style:{color:"#552861",fontWeight:300},children:"but it is"}),w.jsx("span",{className:"font-sans italic text-2xl sm:text-4xl md:text-5xl lg:text-[56px]",style:{color:"#1D1B31",fontWeight:300},children:"never enough"})]})]}),w.jsxs(Je.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},transition:{delay:.6,duration:.8},className:"mt-12 sm:mt-16 flex flex-col items-center justify-center",children:[w.jsx("button",{id:"hero-cta",onClick:n,className:"bg-[#CDFF00] text-[#1D1B31] border-[1.411px] border-[#1D1B31] rounded-[33.857px] font-sans font-extrabold text-center transition-all duration-150 hover:brightness-110 active:scale-95 shadow-md cursor-pointer w-[371.018px] max-w-full h-[79px] flex items-center justify-center text-[24px] leading-normal",children:"Join the Revolution"}),w.jsx("span",{className:"font-sans mt-4 text-center text-lg sm:text-[20px] leading-normal",style:{color:"#1D1B31",fontWeight:500},children:"Claim your $100 deposit"})]})]})]})}/** 58 * @license lucide-react v0.546.0 - ISC 59 * 60 * This source code is licensed under the ISC license. 61 * See the LICENSE file in the root directory of this source tree. 62 */const lb=n=>n.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),ub=n=>n.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,e,s)=>s?s.toUpperCase():e.toLowerCase()),Y3=n=>{const t=ub(n);return t.charAt(0).toUpperCase()+t.slice(1)},ly=(...n)=>n.filter((t,e,s)=>!!t&&t.trim()!==""&&s.indexOf(t)===e).join(" ").trim(),cb=n=>{for(const t in n)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/** 63 * @license lucide-react v0.546.0 - ISC 64 * 65 * This source code is licensed under the ISC license. 66 * See the LICENSE file in the root directory of this source tree. 67 */var hb={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"};/** 68 * @license lucide-react v0.546.0 - ISC 69 * 70 * This source code is licensed under the ISC license. 71 * See the LICENSE file in the root directory of this source tree. 72 */const fb=ct.forwardRef(({color:n="currentColor",size:t=24,strokeWidth:e=2,absoluteStrokeWidth:s,className:a="",children:l,iconNode:c,...h},m)=>ct.createElement("svg",{ref:m,...hb,width:t,height:t,stroke:n,strokeWidth:s?Number(e)*24/Number(t):e,className:ly("lucide",a),...!l&&!cb(h)&&{"aria-hidden":"true"},...h},[...c.map(([g,y])=>ct.createElement(g,y)),...Array.isArray(l)?l:[l]]));/** 73 * @license lucide-react v0.546.0 - ISC 74 * 75 * This source code is licensed under the ISC license. 76 * See the LICENSE file in the root directory of this source tree. 77 */const ze=(n,t)=>{const e=ct.forwardRef(({className:s,...a},l)=>ct.createElement(fb,{ref:l,iconNode:t,className:ly(`lucide-${lb(Y3(n))}`,`lucide-${n}`,s),...a}));return e.displayName=Y3(n),e};/** 78 * @license lucide-react v0.546.0 - ISC 79 * 80 * This source code is licensed under the ISC license. 81 * See the LICENSE file in the root directory of this source tree. 82 */const db=[["path",{d:"M22 12h-2.48a2 2 0 0 0-1.93 1.46l-2.35 8.36a.25.25 0 0 1-.48 0L9.24 2.18a.25.25 0 0 0-.48 0l-2.35 8.36A2 2 0 0 1 4.49 12H2",key:"169zse"}]],mb=ze("activity",db);/** 83 * @license lucide-react v0.546.0 - ISC 84 * 85 * This source code is licensed under the ISC license. 86 * See the LICENSE file in the root directory of this source tree. 87 */const pb=[["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"}]],gb=ze("award",pb);/** 88 * @license lucide-react v0.546.0 - ISC 89 * 90 * This source code is licensed under the ISC license. 91 * See the LICENSE file in the root directory of this source tree. 92 */const yb=[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]],wh=ze("check",yb);/** 93 * @license lucide-react v0.546.0 - ISC 94 * 95 * This source code is licensed under the ISC license. 96 * See the LICENSE file in the root directory of this source tree. 97 */const vb=[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]],Fh=ze("chevron-down",vb);/** 98 * @license lucide-react v0.546.0 - ISC 99 * 100 * This source code is licensed under the ISC license. 101 * See the LICENSE file in the root directory of this source tree. 102 */const _b=[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]],Eb=ze("circle-check-big",_b);/** 103 * @license lucide-react v0.546.0 - ISC 104 * 105 * This source code is licensed under the ISC license. 106 * See the LICENSE file in the root directory of this source tree. 107 */const Tb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]],Ab=ze("circle-check",Tb);/** 108 * @license lucide-react v0.546.0 - ISC 109 * 110 * This source code is licensed under the ISC license. 111 * See the LICENSE file in the root directory of this source tree. 112 */const xb=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M9.09 9a3 3 0 0 1 5.83 1c0 2-3 3-3 3",key:"1u773s"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Sb=ze("circle-question-mark",xb);
112/** 113 * @license lucide-react v0.546.0 - ISC 114 * 115 * This source code is licensed under the ISC license. 116 * See the LICENSE file in the root directory of this source tree. 117 */const wb=[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]],bb=ze("coins",wb);/** 118 * @license lucide-react v0.546.0 - ISC 119 * 120 * This source code is licensed under the ISC license. 121 * See the LICENSE file in the root directory of this source tree. 122 */const Cb=[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]],Rb=ze("copy",Cb);/** 123 * @license lucide-react v0.546.0 - ISC 124 * 125 * This source code is licensed under the ISC license. 126 * See the LICENSE file in the root directory of this source tree. 127 */const Nb=[["path",{d:"M12 15V3",key:"m9g1x1"}],["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["path",{d:"m7 10 5 5 5-5",key:"brsn70"}]],Db=ze("download",Nb);/** 128 * @license lucide-react v0.546.0 - ISC 129 * 130 * This source code is licensed under the ISC license. 131 * See the LICENSE file in the root directory of this source tree. 132 */const Vb=[["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"}]],Q3=ze("eye",Vb);/** 133 * @license lucide-react v0.546.0 - ISC 134 * 135 * This source code is licensed under the ISC license. 136 * See the LICENSE file in the root directory of this source tree. 137 */const Ib=[["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"}]],Ob=ze("landmark",Ib);/** 138 * @license lucide-react v0.546.0 - ISC 139 * 140 * This source code is licensed under the ISC license. 141 * See the LICENSE file in the root directory of this source tree. 142 */const Mb=[["path",{d:"M12.83 2.18a2 2 0 0 0-1.66 0L2.6 6.08a1 1 0 0 0 0 1.83l8.58 3.91a2 2 0 0 0 1.66 0l8.58-3.9a1 1 0 0 0 0-1.83z",key:"zw3jo"}],["path",{d:"M2 12a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 12",key:"1wduqc"}],["path",{d:"M2 17a1 1 0 0 0 .58.91l8.6 3.91a2 2 0 0 0 1.65 0l8.58-3.9A1 1 0 0 0 22 17",key:"kqbvx6"}]],Pb=ze("layers",Mb);/** 143 * @license lucide-react v0.546.0 - ISC 144 * 145 * This source code is licensed under the ISC license. 146 * See the LICENSE file in the root directory of this source tree. 147 */const Lb=[["path",{d:"M14 4.1 12 6",key:"ita8i4"}],["path",{d:"m5.1 8-2.9-.8",key:"1go3kf"}],["path",{d:"m6 12-1.9 2",key:"mnht97"}],["path",{d:"M7.2 2.2 8 5.1",key:"1cfko1"}],["path",{d:"M9.037 9.69a.498.498 0 0 1 .653-.653l11 4.5a.5.5 0 0 1-.074.949l-4.349 1.041a1 1 0 0 0-.74.739l-1.04 4.35a.5.5 0 0 1-.95.074z",key:"s0h3yz"}]],_0=ze("mouse-pointer-click",Lb);/** 148 * @license lucide-react v0.546.0 - ISC 149 * 150 * This source code is licensed under the ISC license. 151 * See the LICENSE file in the root directory of this source tree. 152 */const kb=[["line",{x1:"19",x2:"5",y1:"5",y2:"19",key:"1x9vlm"}],["circle",{cx:"6.5",cy:"6.5",r:"2.5",key:"4mh3h7"}],["circle",{cx:"17.5",cy:"17.5",r:"2.5",key:"1mdrzq"}]],jb=ze("percent",kb);/** 153 * @license lucide-react v0.546.0 - ISC 154 * 155 * This source code is licensed under the ISC license. 156 * See the LICENSE file in the root directory of this source tree. 157 */const Bb=[["path",{d:"m21 21-4.34-4.34",key:"14j7rj"}],["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}]],Ub=ze("search",Bb);/** 158 * @license lucide-react v0.546.0 - ISC 159 * 160 * This source code is licensed under the ISC license. 161 * See the LICENSE file in the root directory of this source tree. 162 */const zb=[["circle",{cx:"18",cy:"5",r:"3",key:"gq8acd"}],["circle",{cx:"6",cy:"12",r:"3",key:"w7nqdw"}],["circle",{cx:"18",cy:"19",r:"3",key:"1xt0gg"}],["line",{x1:"8.59",x2:"15.42",y1:"13.51",y2:"17.49",key:"47mynk"}],["line",{x1:"15.41",x2:"8.59",y1:"6.51",y2:"10.49",key:"1n3mei"}]],Fb=ze("share-2",zb);/** 163 * @license lucide-react v0.546.0 - ISC 164 * 165 * This source code is licensed under the ISC license. 166 * See the LICENSE file in the root directory of this source tree. 167 */const Hb=[["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"}]],K3=ze("trash-2",Hb);/** 168 * @license lucide-react v0.546.0 - ISC 169 * 170 * This source code is licensed under the ISC license. 171 * See the LICENSE file in the root directory of this source tree. 172 */const qb=[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]],Gb=ze("triangle-alert",qb);/** 173 * @license lucide-react v0.546.0 - ISC 174 * 175 * This source code is licensed under the ISC license. 176 * See the LICENSE file in the root directory of this source tree. 177 */const Yb=[["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"}]],Qb=ze("twitter",Yb);/** 178 * @license lucide-react v0.546.0 - ISC 179 * 180 * This source code is licensed under the ISC license. 181 * See the LICENSE file in the root directory of this source tree. 182 */const Kb=[["path",{d:"M18 6 6 18",key:"1bl5f8"}
182],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],$b=ze("x",Kb);function nr(n,t){try{typeof window<"u"&&window.gtag&&(window.gtag("event",n,t),console.log(`[Google Tag Tracking]: ${n}`,t))}catch(e){console.warn("Gtag tracking notice:",e)}}function Xb(n){try{if(typeof window<"u"&&window.gtag){const t=()=>{};window.gtag("event","conversion",{send_to:"AW-836869247/JanhCJvFjtMcEP-4ho8D",event_callback:t}),console.log("[Google Ads Conversion Tracking]: AW-836869247/JanhCJvFjtMcEP-4ho8D triggered")}}catch(t){console.warn("Gtag conversion tracking notice:",t)}}async function Wb(){try{nr("page_view"),await fetch("/api/track-visit",{method:"POST"}).catch(()=>{})}catch(n){console.warn("Tracking notice: failed to log visit",n)}}async function n6(n){try{nr("click",{button_id:n}),await fetch("/api/track-click",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({buttonId:n})}).catch(()=>{})}catch(t){console.warn(`Tracking notice: failed to log click for ${n}`,t)}}function Zb(){const[n,t]=ct.useState(null),e=[{id:"debt",badge:"0%",title:"interest",subtitle:"on debt",icon:jb,description:"Zero interest borrowing. We believe that temporary setbacks shouldn't compound into permanent traps.",details:["Pay back exactly what you borrowâno interest calculated or added over time.","No hidden activation, processing, or late penalty fees.","Designed to help you clear debt, not keep you locked in a cycle of payments."]},{id:"savings",badge:"high",title:"yield",subtitle:"savings",icon:bb,description:"Your deposits generate shared value. When Astute grows, your savings rates grow with us.",details:["Industry-leading yield powered directly by the bank's investment profits.","Interest rate increases dynamically as more members join the collective.","Fully transparent balance tracking with monthly compounding dividends."]},{id:"payouts",badge:"quarterly",title:"payouts",subtitle:"of profits",icon:Ob,description:"Unlike corporate banks that enrich external shareholders, we route our profits back to you.",details:["Quarterly distribution of bank surplus directly to your Astute account.","Payout amounts based on account activity and duration of membership.","100% transparent audit trails of bank earnings and payouts."]}],s=a=>{const l=n!==a;t(n===a?null:a),l&&n6(`capitalism_${a}`)};return w.jsx("section",{className:"bg-astute-ice py-20 px-6 sm:px-12 md:px-16 lg:px-24 text-left relative",children:w.jsxs("div",{className:"max-w-5xl mx-auto",children:[w.jsxs("div",{className:"max-w-4xl mb-12 sm:mb-16",children:[w.jsx(Je.h2,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},className:"font-sans select-none text-3xl sm:text-4xl md:text-[48px] mb-2",style:{color:"#552861",fontFamily:"Inter, sans-serif",fontStyle:"normal",fontWeight:900,lineHeight:"normal"},children:"Capitalism"}),w.jsx(Je.h3,{initial:{opacity:0,x:-20},whileInView:{opacity:1,x:0},viewport:{once:!0},transition:{delay:.1},className:"font-sans italic leading-normal text-xl sm:text-2xl md:text-[36px] mb-8",style:{color:"#552861",fontWeight:800},children:"It does NOT need to be a zero sum game."}),w.jsxs(Je.div,{initial:{opacity:0}
182,whileInView:{opacity:1},viewport:{once:!0},transition:{delay:.2},className:"text-astute-navy space-y-4 text-base sm:text-lg leading-relaxed font-sans",children:[w.jsx("p",{className:"font-sans text-lg sm:text-xl md:text-[24px] leading-normal mb-4",style:{color:"#000",fontFamily:"Inter, sans-serif",fontStyle:"normal",fontWeight:700,lineHeight:"normal"},children:"We are doing banking that grows with you, not off you."}),w.jsxs("div",{className:"space-y-6 mt-8",children:[w.jsx("p",{className:"font-sans text-astute-navy/80",style:{color:"#000",fontFamily:"Inter, sans-serif",fontSize:"18px",fontStyle:"normal",fontWeight:600,lineHeight:"1.6"},children:"Welcome to profit-sharing banking. We didnât invent it, but weâre here to scale it so everyone can benefit."}),w.jsx("p",{className:"font-sans text-astute-navy/80",style:{color:"#000",fontFamily:"Inter, sans-serif",fontSize:"14px",fontStyle:"normal",fontWeight:700,lineHeight:"normal",textTransform:"uppercase",letterSpacing:"0.05em"},children:"Here is what we offer:"})]})]})]}),w.jsx("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-8 sm:gap-10 md:gap-6 lg:gap-10 justify-items-center mb-12",children:e.map((a,l)=>{a.icon;const c=n===a.id;return w.jsxs(Je.div,{initial:{opacity:0,y:30},whileInView:{opacity:1,y:0},viewport:{once:!0},transition:{delay:l*.15,duration:.6},className:"flex flex-col items-center",children:[w.jsxs(Je.div,{onClick:()=>s(a.id),whileHover:{scale:1.05,boxShadow:"0 10px 25px -5px rgba(21, 19, 41, 0.1)"},whileTap:{scale:.98},className:`w-48 h-48 sm:w-52 sm:h-52 md:w-48 md:h-48 lg:w-52 lg:h-52 rounded-full bg-astute-gold flex flex-col items-center justify-center p-6 text-center cursor-pointer select-none relative transition-all duration-300 border-2 ${c?"border-astute-purple shadow-lg":"border-transparent shadow-sm"}`,children:[w.jsx("span",{className:"font-sans text-2xl sm:text-3xl leading-none tracking-tight",style:{fontFamily:"Inter, sans-serif",color:"#1D1B31",fontWeight:800},children:a.badge}),w.jsx("span",{className:"font-sans text-xl sm:text-2xl leading-tight mt-1",style:{fontFamily:"Inter, sans-serif",color:"#1D1B31",fontWeight:700},children:a.title}),w.jsx("span",{className:"font-sans text-xs sm:text-sm mt-1 uppercase tracking-wider",style:{fontFamily:"Inter, sans-serif",color:"#552861",fontWeight:600},children:a.subtitle})]}),w.jsxs("button",{onClick:()=>s(a.id),className:"mt-3 text-xs font-semibold text-astute-purple hover:text-astute-navy inline-flex items-center gap-1 transition-colors",children:[w.jsx("span",{children:c?"Hide Details":"How does this work?"}),w.jsx(Fh,{className:`w-3.5 h-3.5 transition-transform duration-300 ${c?"rotate-180":""}`})]})]},a.id)})}),w.jsx("div",{className:"w-full relative z-10",children:w.jsx(Df,{mode:"wait",children:n&&w.jsx(Je.div,{initial:{opacity:0,height:0,y:-10},animate:{opacity:1,height:"auto",y:0},exit:{opacity:0,height:0,y:-10},transition:{duration:.35,ease:"easeInOut"},className:"bg-white rounded-2xl border border-astute-navy/10 p-6 sm:p-8 md:p-10 shadow-lg mt-6 overflow-hidden",children:(()=>{const a=e.find(c=>c.id===n),l=a.icon;return w.jsxs("div",{className:"flex flex-col md:flex-row gap-6 md:gap-10 items-start",children:[w.jsxs("div",{className:"md:w-1/3 flex items-start gap-4",children:[w.jsx("div",{className:"p-4 rounded-xl bg-astute-gold/20 text-astute-purple",children:w.jsx(l,{className:"w-8 h-8"})}),w.jsxs("div",{children:[w.jsxs("h4",{className:"text-xl font-bold text-astute-navy font-display capitalize",children:[a.badge," ",a.title]}),w.jsx("p",{className:"text-xs font-semibold text-astute-purple uppercase tracking-wider mt-0.5",children:a.subtitle})]})]}),w.jsxs("div",{className:"md:w-2/3 space-y-4",children:[w.jsx("p",{className:"text-astute-navy font-medium leading-relaxed",children:a.description}),w.jsx("ul",{className:"space-y-2.5 text-sm text-astute-navy/80",children:a.details.map((c,h)=>w.jsxs("li",{className:"flex gap-2.5 items-start",children:[w.jsx("span",{className:"inline-flex w-5 h-5 rounded-full bg-astute-lime/30 text-astute-purple text-[10px] items-center justify-center font-bold mt-0.5 shrink-0",children:h+1}),w.jsx("span",{children:c})]},h))})]})]})})()},n)})})]})})}function Jb({onAddEntry:n,totalEntries:t}){const[e,s]=ct.useState(""),[a,l]=ct.useState(""),[c,h]=ct.useState(""),[m,g]=ct.useState(null),[y,_]=ct.useState(!1),[x,R]=ct.useState(0),N=ct.useRef(null),j=q=>{if(q.preventDefault(),h(""),!e.trim()){h("Please enter your name.");return}if(!a.trim()||!/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(a)){h("Please enter a valid email address.");return}const tt=n(e,a);tt?(g(tt),s(""),l("")):h("This email is already registered on our waitlist.")},F=()=>{const tt=`${typeof window<"u"?window.location.origin:"https://astute.bank"}/join?ref=${(m==null?void 0:m.id)||"rev"}`;navigator.clipboard.writeText(tt),_(!0),setTimeout(()=>_(!1),2e3),x<3&&setTimeout(()=>{R(Z=>Z+1),m&&(m.referrals+=1,m.rank=Math.max(1,m.rank-12))},1e3)};return w.jsx("section",{id:"waitlist-form-section",ref:N,className:"bg-white py-32 sm:py-44 md:py-52 px-6 sm:px-12 text-center relative scroll-mt-6 flex flex-col justify-center min-h-[70vh]",children:w.jsx("div",{className:"max-w-xl mx-auto",children:w.jsx(Df,{mode:"wait",children:m?w.jsxs(Je.div,{initial:{opacity:0,scale:.95}
182,animate:{opacity:1,scale:1},transition:{duration:.5,type:"spring",stiffness:100},className:"bg-astute-cream/40 rounded-2xl border-2 border-astute-navy p-6 sm:p-10 text-center shadow-xl relative overflow-hidden",children:[w.jsx("div",{className:"absolute inset-0 bg-[radial-gradient(#d2ff00_0.08rem,transparent_0.08rem)] [background-size:1rem_1rem] opacity-30 pointer-events-none"}),w.jsx("div",{className:"w-16 h-16 rounded-full bg-astute-lime border border-astute-navy flex items-center justify-center mx-auto mb-6 text-astute-navy shadow",children:w.jsx(Ab,{className:"w-8 h-8"})}),w.jsxs("h2",{className:"font-serif italic font-bold text-3xl text-astute-purple leading-tight mb-2",children:["Welcome to ",w.jsx("br",{}),"the Revolution!"]}),w.jsxs("p",{className:"text-sm text-astute-navy/80 font-sans max-w-sm mx-auto mb-8",children:["Thank you, ",w.jsx("strong",{children:m.name}),"! We have registered ",w.jsx("strong",{children:m.email}),". Your $100 launching credit is secured!"]}),w.jsxs("div",{className:"bg-white rounded-xl border border-astute-navy/10 p-5 mb-8 shadow-sm",children:[w.jsxs("div",{className:"grid grid-cols-2 divide-x divide-astute-navy/10",children:[w.jsxs("div",{children:[w.jsx("span",{className:"text-[10px] font-mono text-astute-navy/50 uppercase font-bold block mb-1",children:"Waitlist Rank"}),w.jsxs("span",{className:"text-3xl font-display font-extrabold text-astute-navy leading-none",children:["#",m.rank]})]}),w.jsxs("div",{children:[w.jsx("span",{className:"text-[10px] font-mono text-astute-navy/50 uppercase font-bold block mb-1",children:"Referral Count"}),w.jsx("span",{className:"text-3xl font-display font-extrabold text-astute-purple leading-none",children:m.referrals})]})]}),x>0&&w.jsxs(Je.div,{initial:{opacity:0,y:10},animate:{opacity:1,y:0},className:"mt-4 pt-3.5 border-t border-astute-navy/5 flex items-center justify-center gap-1.5 text-xs font-bold text-emerald-600",children:[w.jsx(gb,{className:"w-4 h-4"}),w.jsx("span",{children:"Rank updated! You hopped 12 places forward!"})]})]}),w.jsxs("div",{className:"space-y-4",children:[w.jsx("p",{className:"text-xs font-bold text-astute-navy/70 uppercase tracking-wider",children:"Invite friends to jump the queue!"}),w.jsxs("div",{className:"flex gap-2 max-w-md mx-auto",children:[w.jsxs("div",{className:"bg-white border border-astute-navy/10 rounded-xl px-4 py-3.5 text-xs text-astute-navy/70 font-mono select-all truncate flex-1 text-left leading-none flex items-center",children:[typeof window<"u"?window.location.origin:"https://astute.bank","/join?ref=",m.id]}),w.jsx("button",{onClick:F,className:"bg-astute-navy hover:bg-astute-purple text-white px-5 rounded-xl text-xs font-bold transition-all flex items-center justify-center gap-1 shrink-0",children:y?w.jsx("span",{children:"Copied!"}):w.jsxs(w.Fragment,{children:[w.jsx(Rb,{className:"w-3.5 h-3.5"}),w.jsx("span",{children:"Copy"})]})})]}),w.jsxs("div",{className:"flex justify-center gap-3 pt-2",children:[w.jsx("button",{onClick:F,className:"p-3.5 rounded-full bg-sky-50 text-[#1DA1F2] hover:bg-sky-100 border border-sky-100 transition-all flex items-center justify-center",title:"Share on Twitter (simulated)",children:w.jsx(Qb,{className:"w-4 h-4 fill-current"})}),w.jsx("button",{onClick:F,className:"p-3.5 rounded-full bg-violet-50 text-astute-purple hover:bg-violet-100 border border-violet-100 transition-all flex items-center justify-center",title:"Share anywhere",children:w.jsx(Fb,{className:"w-4 h-4"})})]}),w.jsx("button",{onClick:()=>g(null),className:"text-xs font-semibold text-astute-navy/40 hover:text-astute-navy underline block mx-auto pt-4 transition-colors",children:"Register another email"})]})]},"success"):w.jsxs(Je.div,{initial:{opacity:0,scale:.95},animate:{opacity:1,scale:1},exit:{opacity:0,scale:.95},transition:{duration:.5},className:"flex flex-col items-center",children:[w.jsxs("h2",{className:"font-bold text-4xl sm:text-5xl text-astute-purple tracking-tight leading-tight mb-6",style:{fontFamily:"Inter, sans-serif"},children:["Together let's ",w.jsx("br",{}),w.jsx("span",{style:{fontStyle:"italic"},children:"fix capitalism"})]}),w.jsx("p",{className:"text-astute-navy/80 font-sans text-sm sm:text-base leading-relaxed max-w-md mx-auto mb-10",style:{fontFamily:"Inter, sans-serif"},children:"Join the waitlist for free community and early access, plus a $100 deposit credited to your Astute account at launch."}),w.jsxs("form",{onSubmit:j,className:"w-full space-y-4",children:[w.jsx("div",{className:"relative",children:w.jsx("input",{type:"text",value:e,onCh
182ange:q=>s(q.target.value),placeholder:"Name:",className:"w-full bg-astute-lavender text-base px-5 py-3.5 focus:outline-none focus:ring-2 focus:ring-astute-purple/30 border border-transparent rounded-lg transition-all placeholder:text-[#686774]/80 placeholder:italic",style:{fontFamily:"Inter, sans-serif",fontWeight:800,fontStyle:"italic",color:"#686774"}})}),w.jsx("div",{className:"relative",children:w.jsx("input",{type:"email",value:a,onChange:q=>l(q.target.value),placeholder:"Email:",className:"w-full bg-astute-lavender text-base px-5 py-3.5 focus:outline-none focus:ring-2 focus:ring-astute-purple/30 border border-transparent rounded-lg transition-all placeholder:text-[#686774]/80 placeholder:italic",style:{fontFamily:"Inter, sans-serif",fontWeight:800,fontStyle:"italic",color:"#686774"}})}),c&&w.jsx(Je.p,{initial:{opacity:0,y:-5},animate:{opacity:1,y:0},className:"text-rose-600 font-sans text-xs sm:text-sm font-semibold text-left pl-1",children:c}),w.jsx("div",{className:"pt-6 flex justify-center",children:w.jsx("button",{type:"submit",className:"bg-[#1D1B31] text-[#CDFF00] border border-black rounded-[24px] font-sans font-extrabold text-base text-center transition-all duration-150 hover:brightness-110 active:scale-95 shadow-md cursor-pointer w-[263px] h-[56px] flex items-center justify-center",children:"Join the Revolution"})})]})]},"form")})})})}/** 183 * @license 184 * Copyright 2025 Google LLC 185 * 186 * Licensed under the Apache License, Version 2.0 (the "License"); 187 * you may not use this file except in compliance with the License. 188 * You may obtain a copy of the License at 189 * 190 * http://www.apache.org/licenses/LICENSE-2.0 191 * 192 * Unless required by applicable law or agreed to in writing, software 193 * distributed under the License is distributed on an "AS IS" BASIS, 194 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 195 * See the License for the specific language governing permissions and 196 * limitations under the License. 197 */const tC=()=>{};var $3={};/** 198 * @license 199 * Copyright 2017 Google LLC 200 * 201 * Licensed under the Apache License, Version 2.0 (the "License"); 202 * you may not use this file except in compliance with the License. 203 * You may obtain a copy of the License at 204 * 205 * http://www.apache.org/licenses/LICENSE-2.0 206 * 207 * Unless required by applicable law or agreed to in writing, software 208 * distributed under the License is distributed on an "AS IS" BASIS, 209 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 210 * See the License for the specific language governing permissions and 211 * limitations under the License. 212 */const uy=function(n){const t=[];let e=0;for(let s=0;s<n.length;s++){let a=n.charCodeAt(s);a<128?t[e++]=a:a<2048?(t[e++]=a>>6|192,t[e++]=a&63|128):(a&64512)===55296&&s+1<n.length&&(n.charCodeAt(s+1)&64512)===56320?(a=65536+((a&1023)<<10)+(n.charCodeAt(++s)&1023),t[e++]=a>>18|240,t[e++]=a>>12&63|128,t[e++]=a>>6&63|128,t[e++]=a&63|128):(t[e++]=a>>12|224,t[e++]=a>>6&63|128,t[e++]=a&63|128)}return t},eC=function(n){const t=[];let e=0,s=0;for(;e<n.length;){const a=n[e++];if(a<128)t[s++]=String.fromCharCode(a);else if(a>191&&a<224){const l=n[e++];t[s++]=String.fromCharCode((a&31)<<6|l&63)}else if(a>239&&a<365){const l=n[e++],c=n[e++],h=n[e++],m=((a&7)<<18|(l&63)<<12|(c&63)<<6|h&63)-65536;t[s++]=String.fromCharCode(55296+(m>>10)),t[s++]=String.fromCharCode(56320+(m&1023))}else{const l=n[e++],c=n[e++];t[s++]=String.fromCharCode((a&15)<<12|(l&63)<<6|c&63)}}return t.join("")},cy={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(n,t){if(!Array.isArray(n))throw Error("encodeByteArray takes an array as a parameter");this.init_();const e=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,s=[];for(let a=0;a<n.length;a+=3){const l=n[a],c=a+1<n.length,h=c?n[a+1]:0,m=a+2<n.length,g=m?n[a+2]:0,y=l>>2,_=(l&3)<<4|h>
212>4;let x=(h&15)<<2|g>>6,R=g&63;m||(R=64,c||(x=64)),s.push(e[y],e[_],e[x],e[R])}return s.join("")},encodeString(n,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(n):this.encodeByteArray(uy(n),t)},decodeString(n,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(n):eC(this.decodeStringToByteArray(n,t))},decodeStringToByteArray(n,t){this.init_();const e=t?this.charToByteMapWebSafe_:this.charToByteMap_,s=[];for(let a=0;a<n.length;){const l=e[n.charAt(a++)],h=a<n.length?e[n.charAt(a)]:0;++a;const g=a<n.length?e[n.charAt(a)]:64;++a;const _=a<n.length?e[n.charAt(a)]:64;if(++a,l==null||h==null||g==null||_==null)throw new nC;const x=l<<2|h>>4;if(s.push(x),g!==64){const R=h<<4&240|g>>2;if(s.push(R),_!==64){const N=g<<6&192|_;s.push(N)}}}return s},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let n=0;n<this.ENCODED_VALS.length;n++)this.byteToCharMap_[n]=this.ENCODED_VALS.charAt(n),this.charToByteMap_[this.byteToCharMap_[n]]=n,this.byteToCharMapWebSafe_[n]=this.ENCODED_VALS_WEBSAFE.charAt(n),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[n]]=n,n>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(n)]=n,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(n)]=n)}}};class nC extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const iC=function(n){const t=uy(n);return cy.encodeByteArray(t,!0)},of=function(n){return iC(n).replace(/\./g,"")},sC=function(n){try{return cy.decodeString(n,!0)}catch(t){console.error("base64Decode failed: ",t)}return null};/** 213 * @license 214 * Copyright 2022 Google LLC 215 * 216 * Licensed under the Apache License, Version 2.0 (the "License"); 217 * you may not use this file except in compliance with the License. 218 * You may obtain a copy of the License at 219 * 220 * http://www.apache.org/licenses/LICENSE-2.0 221 * 222 * Unless required by applicable law or agreed to in writing, software 223 * distributed under the License is distributed on an "AS IS" BASIS, 224 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 225 * See the License for the specific language governing permissions and 226 * limitations under the License. 227 */function rC(){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.")}/** 228 * @license 229 * Copyright 2022 Google LLC 230 * 231 * Licensed under the Apache License, Version 2.0 (the "License"); 232 * you may not use this file except in compliance with the License. 233 * You may obtain a copy of the License at 234 * 235 * http://www.apache.org/licenses/LICENSE-2.0 236 * 237 * Unless required by applicable law or agreed to in writing, software 238 * distributed under the License is distributed on an "AS IS" BASIS, 239 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 240 * See the License for the specific language governing permissions and 241 * limitations under the License. 242 */const aC=()=>rC().__FIREBASE_DEFAULTS__,oC=()=>{if(typeof process>"u"||typeof $3>"u")return;const n=$3.__FIREBASE_DEFAULTS__;if(n)return JSON.parse(n)},lC=()=>{if(typeof document>"u")return;let n;try{n=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const t=n&&sC(n[1]);return t&&JSON.parse(t)},am=()=>{try{return tC()||aC()||oC()||lC()}catch(n){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${n}`);return}},uC=n=>{var t,e;return(e=(t=am())==null?void 0:t.emulatorHosts)==null?void 0:e[n]},cC=n=>{const t=uC(n);if(!t)return;const e=t.lastIndexOf(":");if(e<=0||e+1===t.length)throw new Error(`Invalid host ${t} with no separate hostname and port!`);const s=parseInt(t.substring(e+1),10);return t[0]==="["?[t.substring(1,e-1),s]:[t.substring(0,e),s]},hy=()=>{var n;return(n=am())==null?void 0:n.config};/** 243 * @license 244 * Copyright 2017 Google LLC 245 * 246 * Licensed under the Apache License, Version 2.0 (the "License"); 247 * you may not use this file except in compliance with the License. 248 * You may obtain a copy of the License at 249 * 250 * http://www.apache.org/licenses/LICENSE-2.0 251 * 252 * Unless required by applicable law or agreed to in writing, softw
252are 253 * distributed under the License is distributed on an "AS IS" BASIS, 254 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 255 * See the License for the specific language governing permissions and 256 * limitations under the License. 257 */class hC{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}wrapCallback(t){return(e,s)=>{e?this.reject(e):this.resolve(s),typeof t=="function"&&(this.promise.catch(()=>{}),t.length===1?t(e):t(e,s))}}}/** 258 * @license 259 * Copyright 2021 Google LLC 260 * 261 * Licensed under the Apache License, Version 2.0 (the "License"); 262 * you may not use this file except in compliance with the License. 263 * You may obtain a copy of the License at 264 * 265 * http://www.apache.org/licenses/LICENSE-2.0 266 * 267 * Unless required by applicable law or agreed to in writing, software 268 * distributed under the License is distributed on an "AS IS" BASIS, 269 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 270 * See the License for the specific language governing permissions and 271 * limitations under the License. 272 */function fC(n,t){if(n.uid)throw new Error('The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.');const e={alg:"none",type:"JWT"},s=t||"demo-project",a=n.iat||0,l=n.sub||n.user_id;if(!l)throw new Error("mockUserToken must contain 'sub' or 'user_id' field!");const c={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:{}},...n};return[of(JSON.stringify(e)),of(JSON.stringify(c)),""].join(".")}/** 273 * @license 274 * Copyright 2017 Google LLC 275 * 276 * Licensed under the Apache License, Version 2.0 (the "License"); 277 * you may not use this file except in compliance with the License. 278 * You may obtain a copy of the License at 279 * 280 * http://www.apache.org/licenses/LICENSE-2.0 281 * 282 * Unless required by applicable law or agreed to in writing, software 283 * distributed under the License is distributed on an "AS IS" BASIS, 284 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 285 * See the License for the specific language governing permissions and 286 * limitations under the License. 287 */function dC(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function mC(){var t;const n=(t=am())==null?void 0:t.forceEnvironment;if(n==="node")return!0;if(n==="browser")return!1;try{return Object.prototype.toString.call(global.process)==="[object process]"}catch{return!1}}function pC(){return!mC()&&!!navigator.userAgent&&navigator.userAgent.includes("Safari")&&!navigator.userAgent.includes("Chrome")}function gC(){try{return typeof indexedDB=="object"}catch{return!1}}function yC(){return new Promise((n,t)=>{try{let e=!0;const s="validate-browser-context-for-indexeddb-analytics-module",a=self.indexedDB.open(s);a.onsuccess=()=>{a.result.close(),e||self.indexedDB.deleteDatabase(s),n(!0)},a.onupgradeneeded=()=>{e=!1},a.onerror=()=>{var l;t(((l=a.error)==null?void 0:l.message)||"")}}catch(e){t(e)}})}/** 288 * @license 289 * Copyright 2017 Google LLC 290 * 291 * Licensed under the Apache License, Version 2.0 (the "License"); 292 * you may not use this file except in compliance with the License. 293 * You may obtain a copy of the License at 294 * 295 * http://www.apache.org/licenses/LICENSE-2.0 296 * 297 * Unless required by applicable law or agreed to in writing, software 298 * distributed under the License is distributed on an "AS IS" BASIS, 299 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 300 * See the License for the specific language governing permissions and 301 * limitations under the License. 302 */const vC="FirebaseError";class bl extends Error{constructor(t,e,s){super(e),this.code=t,this.customData=s,this.name=vC,Object.setPrototypeOf(this,bl.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,fy.prototype.create)}}class fy{constructor(t,e,s){this.service=t,this.serviceName=e,this.errors=s}create(t,...e){const s=e[0]||{},a=`${this.service}/${t}`,l=this.errors[t],c=l?_C(l,s):"Error",h=`${this.serviceName}: ${c} (${a}).`;return new bl(a,h,s)}}function _C(n,t){return n.replace(EC,(e,s)=>{const a=t[s];return a!=null?String(a):`<${s}?>`})}const EC=/\{\$([^}]+)}/g;function lf(n,t){if(n===t)return!0;const e=Object.keys(n),s=Object.keys(t);for(const a of e){if(!s.includes(a))return!1;const l=n[a],c=t[a];
302if(X3(l)&&X3(c)){if(!lf(l,c))return!1}else if(l!==c)return!1}for(const a of s)if(!e.includes(a))return!1;return!0}function X3(n){return n!==null&&typeof n=="object"}/** 303 * @license 304 * Copyright 2021 Google LLC 305 * 306 * Licensed under the Apache License, Version 2.0 (the "License"); 307 * you may not use this file except in compliance with the License. 308 * You may obtain a copy of the License at 309 * 310 * http://www.apache.org/licenses/LICENSE-2.0 311 * 312 * Unless required by applicable law or agreed to in writing, software 313 * distributed under the License is distributed on an "AS IS" BASIS, 314 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 315 * See the License for the specific language governing permissions and 316 * limitations under the License. 317 */function ro(n){return n&&n._delegate?n._delegate:n}/** 318 * @license 319 * Copyright 2025 Google LLC 320 * 321 * Licensed under the Apache License, Version 2.0 (the "License"); 322 * you may not use this file except in compliance with the License. 323 * You may obtain a copy of the License at 324 * 325 * http://www.apache.org/licenses/LICENSE-2.0 326 * 327 * Unless required by applicable law or agreed to in writing, software 328 * distributed under the License is distributed on an "AS IS" BASIS, 329 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 330 * See the License for the specific language governing permissions and 331 * limitations under the License. 332 */function dy(n){try{return(n.startsWith("http://")||n.startsWith("https://")?new URL(n).hostname:n).endsWith(".cloudworkstations.dev")}catch{return!1}}async function TC(n){return(await fetch(n,{credentials:"include"})).ok}class dc{constructor(t,e,s){this.name=t,this.instanceFactory=e,this.type=s,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(t){return this.instantiationMode=t,this}setMultipleInstances(t){return this.multipleInstances=t,this}setServiceProps(t){return this.serviceProps=t,this}setInstanceCreatedCallback(t){return this.onInstanceCreated=t,this}}/** 333 * @license 334 * Copyright 2019 Google LLC 335 * 336 * Licensed under the Apache License, Version 2.0 (the "License"); 337 * you may not use this file except in compliance with the License. 338 * You may obtain a copy of the License at 339 * 340 * http://www.apache.org/licenses/LICENSE-2.0 341 * 342 * Unless required by applicable law or agreed to in writing, software 343 * distributed under the License is distributed on an "AS IS" BASIS, 344 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 345 * See the License for the specific language governing permissions and 346 * limitations under the License. 347 */const Ka="[DEFAULT]";/** 348 * @license 349 * Copyright 2019 Google LLC 350 * 351 * Licensed under the Apache License, Version 2.0 (the "License"); 352 * you may not use this file except in compliance with the License. 353 * You may obtain a copy of the License at 354 * 355 * http://www.apache.org/licenses/LICENSE-2.0 356 * 357 * Unless required by applicable law or agreed to in writing, software 358 * distributed under the License is distributed on an "AS IS" BASIS, 359 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 360 * See the License for the specific language governing permissions and 361 * limitations under the License. 362 */class AC{constructor(t,e){this.name=t,this.container=e,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(t){const e=this.normalizeInstanceIdentifier(t);if(!this.instancesDeferred.has(e)){const s=new hC;if(this.instancesDeferred.set(e,s),this.isInitialized(e)||this.shouldAutoInitialize())try{const a=this.getOrInitializeService({instanceIdentifier:e});a&&s.resolve(a)}catch{}}return this.instancesDeferred.get(e).promise}getImmediate(t){const e=this.normalizeInstanceIdentifier(t==null?void 0:t.identifier),s=(t==null?void 0:t.optional)??!1;if(this.isInitialized(e)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:e})}catch(a){if(s)return null;throw a}else{if(s)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(t){if(t.name!==this.name)throw Error(`Mismatching Component ${t.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=t,!!this.shouldAutoInitialize()){if(SC(t))try{this.getOrInitializeService({instanceIdentifier:Ka})}catch{}for(const[e,s]of this.instancesDeferred.entries()){const a=this.normalizeInstanceIdentifier(e);try{const l=this.getOrInitializeService({instanceIdentifier:a});s.resolve(l)}catch{}}}}clearInstance(t=Ka){this.instancesDeferred.delete(t),this.instancesOptions.delete(t),this.instances.delete(t)}async delete(){const t=Array.from(this.instances.values());await Promise.all([...t.filter(e=>"INTERNAL"in e).map(e=>e.INTERNAL.delete()),...t.filter(e=>"_delete"in e).map(e=>e._delete())])}isComponentSet(){return this.component!=null}isInitialized(t=Ka){return this.instances.has(t)}getOptions(t=Ka){return this.instancesOptions.get(t)||{}}initialize(t={}){const{options:e={}}=t,s=this.normalizeInstanceIdentifier(t.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:e});for(const[l,c]of this.instancesDeferred.entries()){const h=this.normalizeInstanceIdentifier(l);s===h&&c.resolve(a)}return a}onInit(t,e){const s=this.normalizeInstanceIdentifier(e),a=this.onInitCallbacks.get(s)??new Set;a.add(t),this.onInitCallbacks.set(s,a);const l=this.instances.get(s);
362return l&&t(l,s),()=>{a.delete(t)}}invokeOnInitCallbacks(t,e){const s=this.onInitCallbacks.get(e);if(s)for(const a of s)try{a(t,e)}catch{}}getOrInitializeService({instanceIdentifier:t,options:e={}}){let s=this.instances.get(t);if(!s&&this.component&&(s=this.component.instanceFactory(this.container,{instanceIdentifier:xC(t),options:e}),this.instances.set(t,s),this.instancesOptions.set(t,e),this.invokeOnInitCallbacks(s,t),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,t,s)}catch{}return s||null}normalizeInstanceIdentifier(t=Ka){return this.component?this.component.multipleInstances?t:Ka:t}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function xC(n){return n===Ka?void 0:n}function SC(n){return n.instantiationMode==="EAGER"}/** 363 * @license 364 * Copyright 2019 Google LLC 365 * 366 * Licensed under the Apache License, Version 2.0 (the "License"); 367 * you may not use this file except in compliance with the License. 368 * You may obtain a copy of the License at 369 * 370 * http://www.apache.org/licenses/LICENSE-2.0 371 * 372 * Unless required by applicable law or agreed to in writing, software 373 * distributed under the License is distributed on an "AS IS" BASIS, 374 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 375 * See the License for the specific language governing permissions and 376 * limitations under the License. 377 */class wC{constructor(t){this.name=t,this.providers=new Map}addComponent(t){const e=this.getProvider(t.name);if(e.isComponentSet())throw new Error(`Component ${t.name} has already been registered with ${this.name}`);e.setComponent(t)}addOrOverwriteComponent(t){this.getProvider(t.name).isComponentSet()&&this.providers.delete(t.name),this.addComponent(t)}getProvider(t){if(this.providers.has(t))return this.providers.get(t);const e=new AC(t,this);return this.providers.set(t,e),e}getProviders(){return Array.from(this.providers.values())}}/** 378 * @license 379 * Copyright 2017 Google LLC 380 * 381 * Licensed under the Apache License, Version 2.0 (the "License"); 382 * you may not use this file except in compliance with the License. 383 * You may obtain a copy of the License at 384 * 385 * http://www.apache.org/licenses/LICENSE-2.0 386 * 387 * Unless required by applicable law or agreed to in writing, software 388 * distributed under the License is distributed on an "AS IS" BASIS, 389 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 390 * See the License for the specific language governing permissions and 391 * limitations under the License. 392 */var se;(function(n){n[n.DEBUG=0]="DEBUG",n[n.VERBOSE=1]="VERBOSE",n[n.INFO=2]="INFO",n[n.WARN=3]="WARN",n[n.ERROR=4]="ERROR",n[n.SILENT=5]="SILENT"})(se||(se={}));const bC={debug:se.DEBUG,verbose:se.VERBOSE,info:se.INFO,warn:se.WARN,error:se.ERROR,silent:se.SILENT},CC=se.INFO,RC={[se.DEBUG]:"log",[se.VERBOSE]:"log",[se.INFO]:"info",[se.WARN]:"warn",[se.ERROR]:"error"},NC=(n,t,...e)=>{if(t<n.logLevel)return;const s=new Date().toISOString(),a=RC[t];if(a)console[a](`[${s}] ${n.name}:`,...e);else throw new Error(`Attempted to log a message with an invalid logType (value: ${t})`)};class my{constructor(t){this.name=t,this._logLevel=CC,this._logHandler=NC,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(t){if(!(t in se))throw new TypeError(`Invalid value "${t}" assigned to \`logLevel\``);this._logLevel=t}setLogLevel(t){this._logLevel=typeof t=="string"?bC[t]:t}get logHandler(){return this._logHandler}set logHandler(t){if(typeof t!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=t}get userLogHandler(){return this._userLogHandler}set userLogHandler(t){this._userLogHandler=t}debug(...t){this._userLogHandler&&this._userLogHandler(this,se.DEBUG,...t),this._logHandler(this,se.DEBUG,...t)}log(...t){this._userLogHandler&&this._userLogHandler(this,se.VERBOSE,...t),this._logHandler(this,se.VERBOSE,...t)}info(...t){this._userLogHandler&&this._userLogHandler(this,se.INFO,...t),this._logHandler(this,se.INFO,...t)}warn(...t){this._userLogHandler&&this._userLogHandler(this,se.WARN,...t),this._logHandler(this,se.WARN,...t)}error(...t){this._userLogHandler&&this._userLogHandler(this,se.ERROR,...t),this._logHandler(this,se.ERROR,...t)}}const DC=(n,t)=>t.some(e=>n instanceof e);let W3,Z3;function VC(){return W3||(W3=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function IC(){return Z3||(Z3=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const py=new WeakMap,i6=new WeakMap,gy=new WeakMap,E0=new WeakMap,om=new WeakMap;function OC(n){const t=new Promise((e,s)=>{const a=()=>{n.removeEventListener("success",l),n.removeEventListener("error",c)},l=()=>{e($r(n.result)),a()},c=()=>{s(n.error),a()};n.addEventListener("success",l),n.addEventListener("error",c)});return t.then(e=>{e instanceof IDBCursor&&py.set(e,n)}).catch(()=>{}),om.set(t,n),t}function MC(n){if(i6.has(n))return;const t=new Promise((e,s)=>{const a=()=>{n.removeEventListener("complete",l),n.removeEventListener("error",c),n.removeEventListener("abort",c)},l=()=>{e(),a()},c=()=>{s(n.error||new DOMException("AbortError","AbortError")),a()};n.addEventListener("complete",l),n.addEventListener("error",c),n.addEventListener("abort",c)});i6.set(n,t)}let s6={get(n,t,e){if(n instanceof IDBTransaction){if(t==="done")return i6.get(n);if(t==="objectStoreNames")return n.objectStoreNames||gy.get(n);if(t==="store")return e.objectStoreNames[1]?void 0:e.objectStore(e.objectStoreNames[0])}return $r(n[t])},set(n,t,e){return n[t]=e,!0},has(n,t){return n instanceof IDBTransaction&&(t==="done"||t==="store")?!0:t in n}};function PC(n){s6=n(s6)}
vendor: 3,465 bytes, lines 392-422
392function LC(n){return n===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(t,...e){const s=n.call(T0(this),t,...e);return gy.set(s,t.sort?t.sort():[t]),$r(s)}:IC().includes(n)?function(...t){return n.apply(T0(this),t),$r(py.get(this))}:function(...t){return $r(n.apply(T0(this),t))}}function kC(n){return typeof n=="function"?LC(n):(n instanceof IDBTransaction&&MC(n),DC(n,VC())?new Proxy(n,s6):n)}function $r(n){if(n instanceof IDBRequest)return OC(n);if(E0.has(n))return E0.get(n);const t=kC(n);return t!==n&&(E0.set(n,t),om.set(t,n)),t}const T0=n=>om.get(n);function jC(n,t,{blocked:e,upgrade:s,blocking:a,terminated:l}={}){const c=indexedDB.open(n,t),h=$r(c);return s&&c.addEventListener("upgradeneeded",m=>{s($r(c.result),m.oldVersion,m.newVersion,$r(c.transaction),m)}),e&&c.addEventListener("blocked",m=>e(m.oldVersion,m.newVersion,m)),h.then(m=>{l&&m.addEventListener("close",()=>l()),a&&m.addEventListener("versionchange",g=>a(g.oldVersion,g.newVersion,g))}).catch(()=>{}),h}const BC=["get","getKey","getAll","getAllKeys","count"],UC=["put","add","delete","clear"],A0=new Map;function J3(n,t){if(!(n instanceof IDBDatabase&&!(t in n)&&typeof t=="string"))return;if(A0.get(t))return A0.get(t);const e=t.replace(/FromIndex$/,""),s=t!==e,a=UC.includes(e);if(!(e in(s?IDBIndex:IDBObjectStore).prototype)||!(a||BC.includes(e)))return;const l=async function(c,...h){const m=this.transaction(c,a?"readwrite":"readonly");let g=m.store;return s&&(g=g.index(h.shift())),(await Promise.all([g[e](...h),a&&m.done]))[0]};return A0.set(t,l),l}PC(n=>({...n,get:(t,e,s)=>J3(t,e)||n.get(t,e,s),has:(t,e)=>!!J3(t,e)||n.has(t,e)}));/** 393 * @license 394 * Copyright 2019 Google LLC 395 * 396 * Licensed under the Apache License, Version 2.0 (the "License"); 397 * you may not use this file except in compliance with the License. 398 * You may obtain a copy of the License at 399 * 400 * http://www.apache.org/licenses/LICENSE-2.0 401 * 402 * Unless required by applicable law or agreed to in writing, software 403 * distributed under the License is distributed on an "AS IS" BASIS, 404 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 405 * See the License for the specific language governing permissions and 406 * limitations under the License. 407 */class zC{constructor(t){this.container=t}getPlatformInfoString(){return this.container.getProviders().map(e=>{if(FC(e)){const s=e.getImmediate();return`${s.library}/${s.version}`}else return null}).filter(e=>e).join(" ")}}function FC(n){const t=n.getComponent();return(t==null?void 0:t.type)==="VERSION"}const r6="@firebase/app",t8="0.15.0";/** 408 * @license 409 * Copyright 2019 Google LLC 410 * 411 * Licensed under the Apache License, Version 2.0 (the "License"); 412 * you may not use this file except in compliance with the License. 413 * You may obtain a copy of the License at 414 * 415 * http://www.apache.org/licenses/LICENSE-2.0 416 * 417 * Unless required by applicable law or agreed to in writing, software 418 * distributed under the License is distributed on an "AS IS" BASIS, 419 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 420 * See the License for the specific language governing permissions and 421 * limitations under the License. 422 */const or=new my("@firebase/app"),HC="@firebase/app-compat",qC="@firebase/analytics-compat",GC="@firebase/analytics",YC="@firebase/app-check-compat",QC="@firebase/app-check",KC="@firebase/auth",$C="@firebase/auth-compat",XC="@firebase/database",WC="@f
422irebase/data-connect",ZC="@firebase/database-compat",JC="@firebase/functions",tR="@firebase/functions-compat",eR="@firebase/installations",nR="@firebase/installations-compat",iR="@firebase/messaging",sR="@firebase/messaging-compat",rR="@firebase/performance",aR="@firebase/performance-compat",oR="@firebase/remote-config",lR="@firebase/remote-config-compat",uR="@firebase/storage",cR="@firebase/storage-compat",hR="@firebase/firestore",fR="@firebase/ai",dR="@firebase/firestore-compat",mR="firebase",pR="12.15.0";/** 423 * @license 424 * Copyright 2019 Google LLC 425 * 426 * Licensed under the Apache License, Version 2.0 (the "License"); 427 * you may not use this file except in compliance with the License. 428 * You may obtain a copy of the License at 429 * 430 * http://www.apache.org/licenses/LICENSE-2.0 431 * 432 * Unless required by applicable law or agreed to in writing, software 433 * distributed under the License is distributed on an "AS IS" BASIS, 434 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 435 * See the License for the specific language governing permissions and 436 * limitations under the License. 437 */const a6="[DEFAULT]",gR={[r6]:"fire-core",[HC]:"fire-core-compat",[GC]:"fire-analytics",[qC]:"fire-analytics-compat",[QC]:"fire-app-check",[YC]:"fire-app-check-compat",[KC]:"fire-auth",[$C]:"fire-auth-compat",[XC]:"fire-rtdb",[WC]:"fire-data-connect",[ZC]:"fire-rtdb-compat",[JC]:"fire-fn",[tR]:"fire-fn-compat",[eR]:"fire-iid",[nR]:"fire-iid-compat",[iR]:"fire-fcm",[sR]:"fire-fcm-compat",[rR]:"fire-perf",[aR]:"fire-perf-compat",[oR]:"fire-rc",[lR]:"fire-rc-compat",[uR]:"fire-gcs",[cR]:"fire-gcs-compat",[hR]:"fire-fst",[dR]:"fire-fst-compat",[fR]:"fire-vertex","fire-js":"fire-js",[mR]:"fire-js-all"};/** 438 * @license 439 * Copyright 2019 Google LLC 440 * 441 * Licensed under the Apache License, Version 2.0 (the "License"); 442 * you may not use this file except in compliance with the License. 443 * You may obtain a copy of the License at 444 * 445 * http://www.apache.org/licenses/LICENSE-2.0 446 * 447 * Unless required by applicable law or agreed to in writing, software 448 * distributed under the License is distributed on an "AS IS" BASIS, 449 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 450 * See the License for the specific language governing permissions and 451 * limitations under the License. 452 */const uf=new Map,yR=new Map,o6=new Map;function e8(n,t){try{n.container.addComponent(t)}catch(e){or.debug(`Component ${t.name} failed to register with FirebaseApp ${n.name}`,e)}}function cf(n){const t=n.name;if(o6.has(t))return or.debug(`There were multiple attempts to register component ${t}.`),!1;o6.set(t,n);for(const e of uf.values())e8(e,n);for(const e of yR.values())e8(e,n);return!0}function vR(n,t){const e=n.container.getProvider("heartbeat").getImmediate({optional:!0});return e&&e.triggerHeartbeat(),n.container.getProvider(t)}function _R(n){return n==null?!1:n.settings!==void 0}/** 453 * @license 454 * Copyright 2019 Google LLC 455 * 456 * Licensed under the Apache License, Version 2.0 (the "License"); 457 * you may not use this file except in compliance with the License. 458 * You may obtain a copy of the License at 459 * 460 * http://www.apache.org/licenses/LICENSE-2.0 461 * 462 * Unless required by applicable law or agreed to in writing, software 463 * distributed under the License is distributed on an "AS IS" BASIS, 464 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 465 * See the License for the specific language governing permissions and 466 * limitations under the License. 467 */const ER={"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
467d-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."},Xr=new fy("app","Firebase",ER);/** 468 * @license 469 * Copyright 2019 Google LLC 470 * 471 * Licensed under the Apache License, Version 2.0 (the "License"); 472 * you may not use this file except in compliance with the License. 473 * You may obtain a copy of the License at 474 * 475 * http://www.apache.org/licenses/LICENSE-2.0 476 * 477 * Unless required by applicable law or agreed to in writing, software 478 * distributed under the License is distributed on an "AS IS" BASIS, 479 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 480 * See the License for the specific language governing permissions and 481 * limitations under the License. 482 */class TR{constructor(t,e,s){this._isDeleted=!1,this._options={...t},this._config={...e},this._name=e.name,this._automaticDataCollectionEnabled=e.automaticDataCollectionEnabled,this._container=s,this.container.addComponent(new dc("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(t){this.checkDestroyed(),this._automaticDataCollectionEnabled=t}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(t){this._isDeleted=t}checkDestroyed(){if(this.isDeleted)throw Xr.create("app-deleted",{appName:this._name})}}/** 483 * @license 484 * Copyright 2019 Google LLC 485 * 486 * Licensed under the Apache License, Version 2.0 (the "License"); 487 * you may not use this file except in compliance with the License. 488 * You may obtain a copy of the License at 489 * 490 * http://www.apache.org/licenses/LICENSE-2.0 491 * 492 * Unless required by applicable law or agreed to in writing, software 493 * distributed under the License is distributed on an "AS IS" BASIS, 494 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 495 * See the License for the specific language governing permissions and 496 * limitations under the License. 497 */const AR=pR;function yy(n,t={}){let e=n;typeof t!="object"&&(t={name:t});const s={name:a6,automaticDataCollectionEnabled:!0,...t},a=s.name;if(typeof a!="string"||!a)throw Xr.create("bad-app-name",{appName:String(a)});if(e||(e=hy()),!e)throw Xr.create("no-options");const l=uf.get(a);if(l){if(lf(e,l.options)&&lf(s,l.config))return l;throw Xr.create("duplicate-app",{appName:a})}const c=new wC(a);for(const m of o6.values())c.addComponent(m);const h=new TR(e,s,c);return uf.set(a,h),h}function xR(n=a6){const t=uf.get(n);if(!t&&n===a6&&hy())return yy();if(!t)throw Xr.create("no-app",{appName:n});return t}function cl(n,t,e){let s=gR[n]??n;e&&(s+=`-${e}`);const a=s.match(/\s|\//),l=t.match(/\s|\//);if(a||l){const c=[`Unable to register library "${s}" with version "${t}":`];a&&c.push(`library name "${s}" contains illegal characters (whitespace or "/")`),a&&l&&c.push("and"),l&&c.push(`version name "${t}" contains illegal characters (whitespace or "/")`),or.warn(c.join(" "));return}cf(new dc(`${s}-version`,()=>({library:s,version:t}),"VERSION"))}/** 498 * @license 499 * Copyright 2021 Google LLC 500 * 501 * Licensed under the Apache License, Version 2.0 (the "License"); 502 * you may not use this file except in compliance with the License. 503 * You may obtain a copy of the License at 504 * 505 * http://www.apache.org/licenses/LICENSE-2.0 506 * 507 * Unless required by applicable law or agreed to in writing, softw
507are 508 * distributed under the License is distributed on an "AS IS" BASIS, 509 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 510 * See the License for the specific language governing permissions and 511 * limitations under the License. 512 */const SR="firebase-heartbeat-database",wR=1,mc="firebase-heartbeat-store";let x0=null;function vy(){return x0||(x0=jC(SR,wR,{upgrade:(n,t)=>{switch(t){case 0:try{n.createObjectStore(mc)}catch(e){console.warn(e)}}}}).catch(n=>{throw Xr.create("idb-open",{originalErrorMessage:n.message})})),x0}async function bR(n){try{const e=(await vy()).transaction(mc),s=await e.objectStore(mc).get(_y(n));return await e.done,s}catch(t){if(t instanceof bl)or.warn(t.message);else{const e=Xr.create("idb-get",{originalErrorMessage:t==null?void 0:t.message});or.warn(e.message)}}}async function n8(n,t){try{const s=(await vy()).transaction(mc,"readwrite");await s.objectStore(mc).put(t,_y(n)),await s.done}catch(e){if(e instanceof bl)or.warn(e.message);else{const s=Xr.create("idb-set",{originalErrorMessage:e==null?void 0:e.message});or.warn(s.message)}}}function _y(n){return`${n.name}!${n.options.appId}`}/** 513 * @license 514 * Copyright 2021 Google LLC 515 * 516 * Licensed under the Apache License, Version 2.0 (the "License"); 517 * you may not use this file except in compliance with the License. 518 * You may obtain a copy of the License at 519 * 520 * http://www.apache.org/licenses/LICENSE-2.0 521 * 522 * Unless required by applicable law or agreed to in writing, software 523 * distributed under the License is distributed on an "AS IS" BASIS, 524 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 525 * See the License for the specific language governing permissions and 526 * limitations under the License. 527 */const CR=1024,RR=30;class NR{constructor(t){this.container=t,this._heartbeatsCache=null;const e=this.container.getProvider("app").getImmediate();this._storage=new VR(e),this._heartbeatsCachePromise=this._storage.read().then(s=>(this._heartbeatsCache=s,s))}async triggerHeartbeat(){var t,e;try{const a=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),l=i8();if(((t=this._heartbeatsCache)==null?void 0:t.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((e=this._heartbeatsCache)==null?void 0:e.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===l||this._heartbeatsCache.heartbeats.some(c=>c.date===l))return;if(this._heartbeatsCache.heartbeats.push({date:l,agent:a}),this._heartbeatsCache.heartbeats.length>RR){const c=IR(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(c,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(s){or.warn(s)}}async getHeartbeatsHeader(){var t;try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((t=this._heartbeatsCache)==null?void 0:t.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const e=i8(),{heartbeatsToSend:s,unsentEntries:a}=DR(this._heartbeatsCache.heartbeats),l=of(JSON.stringify({version:2,heartbeats:s}));return this._heartbeatsCache.lastSentHeartbeatDate=e,a.length>0?(this._heartbeatsCache.heartbeats=a,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),l}catch(e){return or.warn(e),""}}}function i8(){return new Date().toISOString().substring(0,10)}function DR(n,t=CR){const e=[];let s=n.slice();for(const a of n){const l=e.find(c=>c.agent===a.agent);if(l){if(l.dates.push(a.date),s8(e)>t){l.dates.pop();break}}else if(e.push({agent:a.agent,dates:[a.date]}),s8(e)>t){e.pop();break}s=s.slice(1)}return{heartbeatsToSend:e,unsentEntries:s}}class VR{constructor(t){this.app=t,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return gC()?yC().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const e=await bR(this.app);return e!=null&&e.heartbeats?e:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(t){if(await this._canUseIndexedDBPromise){const s=await this.read();return n8(this.app,{lastSentHeartbeatDate:t.lastSentHeartbeatDate??s.lastSentHeartbeatDate,heartbeats:t.heartbeats})}else return}async add(t){if(await this._canUseIndexedDBPromise){const s=await this.read();return n8(this.app,{lastSentHeartbeatDate:t.lastSentHeartbeatDate??s.lastSentHeartbeatDate,heartbeats:[...s.heartbeats,...t.heartbeats]})}else return}}function s8(n){return of(JSON.stringify({version:2,heartbeats:n})).length}function IR(n){if(n.length===0)return-1;let t=0,e=n[0].date;for(let s=1;s<n.length;s++)n[s].date<e&&(e=n[s].date,t=s);return t}/** 528 * @license 529 * Copyright 2019 Google LLC 530 * 531 * Licensed under the Apache License, Version 2.0 (the "License");
532 * you may not use this file except in compliance with the License. 533 * You may obtain a copy of the License at 534 * 535 * http://www.apache.org/licenses/LICENSE-2.0 536 * 537 * Unless required by applicable law or agreed to in writing, software 538 * distributed under the License is distributed on an "AS IS" BASIS, 539 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 540 * See the License for the specific language governing permissions and 541 * limitations under the License. 542 */function OR(n){cf(new dc("platform-logger",t=>new zC(t),"PRIVATE")),cf(new dc("heartbeat",t=>new NR(t),"PRIVATE")),cl(r6,t8,n),cl(r6,t8,"esm2020"),cl("fire-js","")}OR("");var MR="firebase",PR="12.15.0";/** 543 * @license 544 * Copyright 2020 Google LLC 545 * 546 * Licensed under the Apache License, Version 2.0 (the "License"); 547 * you may not use this file except in compliance with the License. 548 * You may obtain a copy of the License at 549 * 550 * http://www.apache.org/licenses/LICENSE-2.0 551 * 552 * Unless required by applicable law or agreed to in writing, software 553 * distributed under the License is distributed on an "AS IS" BASIS, 554 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 555 * See the License for the specific language governing permissions and 556 * limitations under the License. 557 */cl(MR,PR,"app");var r8=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};/** @license 558Copyright The Closure Library Authors. 559SPDX-License-Identifier: Apache-2.0 560*/var Wr,Ey;(function(){var n;/** @license 561 562 Copyright The Closure Library Authors. 563 SPDX-License-Identifier: Apache-2.0 564*/function t(I,C){function V(){}V.prototype=C.prototype,I.F=C.prototype,I.prototype=new V,I.prototype.constructor=I,I.D=function(M,P,U){for(var O=Array(arguments.length-2),At=2;At<arguments.length;At++)O[At-2]=arguments[At];return C.prototype[P].apply(M,O)}}function e(){this.blockSize=-1}function s(){this.blockSize=-1,this.blockSize=64,this.g=Array(4),this.C=Array(this.blockSize),this.o=this.h=0,this.u()}t(s,e),s.prototype.u=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.o=this.h=0};function a(I,C,V){V||(V=0);const M=Array(16);if(typeof C=="string")for(var P=0;P<16;++P)M[P]=C.charCodeAt(V++)|C.charCodeAt(V++)<<8|C.charCodeAt(V++)<<16|C.charCodeAt(V++)<<24;else for(P=0;P<16;++P)M[P]=C[V++]|C[V++]<<8|C[V++]<<16|C[V++]<<24;C=I.g[0],V=I.g[1],P=I.g[2];let U=I.g[3],O;O=C+(U^V&(P^U))+M[0]+3614090360&4294967295,C=V+(O<<7&4294967295|O>>>25),O=U+(P^C&(V^P))+M[1]+3905402710&4294967295,U=C+(O<<12&4294967295|O>>>20),O=P+(V^U&(C^V))+M[2]+606105819&4294967295,P=U+(O<<17&4294967295|O>>>15),O=V+(C^P&(U^C))+M[3]+3250441966&4294967295,V=P+(O<<22&4294967295|O>>>10),O=C+(U^V&(P^U))+M[4]+4118548399&4294967295,C=V+(O<<7&4294967295|O>>>25),O=U+(P^C&(V^P))+M[5]+1200080426&4294967295,U=C+(O<<12&4294967295|O>>>20),O=P+(V^U&(C^V))+M[6]+2821735955&4294967295,P=U+(O<<17&4294967295|O>>>15),O=V+(C^P&(U^C))+M[7]+4249261313&4294967295,V=P+(O<<22&4294967295|O>>>10),O=C+(U^V&(P^U))+M[8]+1770035416&4294967295,C=V+(O<<7&4294967295|O>>>25),O=U+(P^C&(V^P))+M[9]+2336552879&4294967295,U=C+(O<<12&4294967295|O>>>20),O=P+(V^U&(C^V))+M[10]+4294925233&4294967295,P=U+(O<<17&4294967295|O>>>15),O=V+(C^P&(U^C))+M[11]+2304563134&4294967295,V=P+(O<<22&4294967295|O>>>10),O=C+(U^V&(P^U))+M[12]+1804603682&4294967295,C=V+(O<<7&4294967295|O>>>25),O=U+(P^C&(V^P))+M[13]+4254626195&4294967295,U=C+(O<<12&4294967295|O>>>20),O=P+(V^U&(C^V))+M[14]+2792965006&4294967295,P=U+(O<<17&4294967295|O>>>15),O=V+(C^P&(U^C))+M[15]+1236535329&4294967295,V=P+(O<<22&4294967295|O>>>10),O=C+(P^U&(V^P))+M[1]+4129170786&4294967295,C=V+(O<<5&4294967295|O>>>27),O=U+(V^P&(C^V))+M[6]+3225465664&4294967295,U=C+(O<<9&4294967295|O>>>23),O=P+(C^V&(U^C))+M[11]+643717713&4294967295,P=U+(O<<14&4294967295|O>>>18),O=V+(U^C&(P^U))+M[0]+3921069994&4294967295,V=P+(O<<20&4294967295|O>>>12),O=C+(P^U&(V^P))+M[5]+3593408605&4294967295,C=V+(O<<5&4294967295|O>>>27),O=U+(V^P&(C^V))+M[10]+38016083&4294967295,U=C+(O<<9&4294967295|O>>>23),O=P+(C^V&(U^C))+M[15]+3634488961&4294967295,P=U+(O<<14&4294967295|O>>>18),O=V+(U^C&(P^U))+M[4]+3889429448&4294967295,V=P+(O<<20&4294967295|O>>>12),O=C+(P^U&(V^P))+M[9]+568446438&4294967295,C=V+(O<<5&4294967295|O>>>27),O=U+(V^P&(C^V))+M[14]+3275163606&4294967295,U=C+(O<<9&4294967295|O>>>23),O=P+(C^V&(U^C))+M[3]+4107603335&4294967295,P=U+(O<<14&4294967295|O>>>18),O=V+(U^C&(P^U))+M[8]+1163531501&4294967295,V=P+(O<<20&4294967295|O>>>12),O=C+(P^U&(V^P))+M[13]+2850285829&4294967295,C=V+(O<<5&4294967295|O>>>27),O=U+(V^P&(C^V))+M[2]+4243563512&4294967295,U=C+(O<<9&4294967295|O>>>23),O=P+(C^V&(U^C))+M[7]+1735328473&4294967295,P=U+(O<<14&4294967295|O>>>18),O=V+(U^C&(P^U))+M[12]+2368359562&4294967295,V=P+(O<<20&4294967295|O>>>12),O=C+(V^P^U)+M[5]+4294588738&4294967295,C=V+(O<<4&4294967295|O>>>28),O=U+(C^V^P)+M[8]+2272392833&4294967295,U=C+(O<<11&4294967295|O>>>21),O=P+(U^C^V)+M[11]+1839030562&4294967295,P=U+(O<<16&4294967295|O>>>16),O=V+(P^U^C)+M[14]+4259657740&4294967295,V=P+(O<<23&4294967295|O>>>9),O=C+(V^P^U)+M[1]+2763975236&4294967295,C=V+(O<<4&4294967295|O>>>28),O=U+(C^V^P)+M[4]+1272893353&4294967295,U=C+(O<<11&4294967295|O>>>21),O=P+(U^C^V)+M[7]+4139469664&4294967295,P=U+(O<<16&4294967295|O>>>16),O=V+(P^U^C)+M[10]+3200236656&4294967295,V=P+(O<<23&4294967295|O>>>9),O=C+(V^P^U)+M[13]+681279174&4294967295,C=V+(O<<4&4294967295|O>>>28),O=U+(C^V^P)+M[0]+3936430074&4294967295,U=C+(O<<11&4294967295|O>>>21),O=P+(U^C^V)+M[3]+3572445317&4294967295,P=U+(O<<16&4294967295|O>>>16),O=V+(P^U^C)+M[6]+76029189&4294967295,V=P+(O<<23&4294967295|O>>>9),O=C+(V^P^U)+M[9]+3654602809&4294967295,C=V+(O<<4&4294967295|O>>>28),O=U+(C^V^P)+M[12]+3873151461&4294967295,U=C+(O<<11&4294967295|O>>>21),O=P+(U^C^V)+M[15]+530742520&4294967295,P=U+(O<<16&4294967295|O>>>16),O=V+(P^U^C)+M[2]+3299628645&4294967295,V=P+(O<<23&4294967295|O>>>9),O=C+(P^(V|~U))+M[0]+4096336452&4294967295,C=V+(O<<6&4294967295|O>>>26),O=U+(V^(C|~P))+M[7]+1126891415&4294967295,U=C+(O<<10&4294967295|O>>>22),O=P+(C^(U|~V))+M[14]+2878612391&4294967295,P=U+(O<<15&4294967295|O>>>17),O=V+(U^(P|~C))+M[5]+4237533241&4294967295,V=P+(O<<21&4294967295|O>>>11),O=C+(P^(V|~U))+M[12]+1700485571&4294967295,C=V+(O<<6&4294967295|O>>>26),O=U+(V^(C|~P))+M[3]+2399980690&4294967295,U=C+(O<<10&4294967295|O>>>22),O=P+(C^(U|~V))+M[10]+4293915773&4294967295,P=U+(O<<15&4294967295|O>>>17),O=V+(U^(P|~C))+M[1]+2240044497&4294967295,V=P+(O<<21&4294967295|O>>>11),O=C+(P^(V|~U))+M[8]+1873313359&4294967295,C=V+(O<<6&4294967295|O>>>26),O=U+(V^(C|~P))+M[15]+4264355552&4294967295,U=C+(O<<10&4294967295|O>>>22),O=P+(C^(U|~V))+M[6]+2734768916&4294967295,P=U+(O<<15&4294967295|O>>>17),O=V+(U^(P|~C))+M[13]+1309151649&4294967295,V=P+(O<<21&4294967295|O>>>11),O=C+(P^(V|~U))+M[4]+4149444226&4294967295,C=V+(O<<6&4294967295|O>>>26),O=U+(V^(C|~P))+M[11]+3174756917&4294967295,U=C+(O<<10&4294967295|O>>>22),O=P+(C^(U|~V))+M[2]+718787259&4294967295,P=U+(O<<15&4294967295|O>>>17),O=V+(U^(P|~C))+M[9]+3951481745&4294967295,I.g[0]=I.g[0]+C&4294967295,I.g[1]=I.g[1]+(P+(O<<21&4294967295|O>>>11))&4294967295,I.g[2]=I.g[2]+P&4294967295,I.g[3]=I.g[3]+U&4294967295}s.prototype.v=function(I,C){C===void 0&&(C=I.length);const V=C-this.blockSize,M=this.C;let P=this.h,U=0;for(;U<C;){if(P==0)for(;U<=V;)a(this,I,U),U+=this.blockSize;
564if(typeof I=="string"){for(;U<C;)if(M[P++]=I.charCodeAt(U++),P==this.blockSize){a(this,M),P=0;break}}else for(;U<C;)if(M[P++]=I[U++],P==this.blockSize){a(this,M),P=0;break}}this.h=P,this.o+=C},s.prototype.A=function(){var I=Array((this.h<56?this.blockSize:this.blockSize*2)-this.h);I[0]=128;for(var C=1;C<I.length-8;++C)I[C]=0;C=this.o*8;for(var V=I.length-8;V<I.length;++V)I[V]=C&255,C/=256;for(this.v(I),I=Array(16),C=0,V=0;V<4;++V)for(let M=0;M<32;M+=8)I[C++]=this.g[V]>>>M&255;return I};function l(I,C){var V=h;return Object.prototype.hasOwnProperty.call(V,I)?V[I]:V[I]=C(I)}function c(I,C){this.h=C;const V=[];let M=!0;for(let P=I.length-1;P>=0;P--){const U=I[P]|0;M&&U==C||(V[P]=U,M=!1)}this.g=V}var h={};function m(I){return-128<=I&&I<128?l(I,function(C){return new c([C|0],C<0?-1:0)}):new c([I|0],I<0?-1:0)}function g(I){if(isNaN(I)||!isFinite(I))return _;if(I<0)return F(g(-I));const C=[];let V=1;for(let M=0;I>=V;M++)C[M]=I/V|0,V*=4294967296;return new c(C,0)}function y(I,C){if(I.length==0)throw Error("number format error: empty string");if(C=C||10,C<2||36<C)throw Error("radix out of range: "+C);if(I.charAt(0)=="-")return F(y(I.substring(1),C));if(I.indexOf("-")>=0)throw Error('number format error: interior "-" character');const V=g(Math.pow(C,8));let M=_;for(let U=0;U<I.length;U+=8){var P=Math.min(8,I.length-U);const O=parseInt(I.substring(U,U+P),C);P<8?(P=g(Math.pow(C,P)),M=M.j(P).add(g(O))):(M=M.j(V),M=M.add(g(O)))}return M}var _=m(0),x=m(1),R=m(16777216);n=c.prototype,n.m=function(){if(j(this))return-F(this).m();let I=0,C=1;for(let V=0;V<this.g.length;V++){const M=this.i(V);I+=(M>=0?M:4294967296+M)*C,C*=4294967296}return I},n.toString=function(I){if(I=I||10,I<2||36<I)throw Error("radix out of range: "+I);if(N(this))return"0";if(j(this))return"-"+F(this).toString(I);const C=g(Math.pow(I,6));var V=this;let M="";for(;;){const P=nt(V,C).g;V=q(V,P.j(C));let U=((V.g.length>0?V.g[0]:V.h)>>>0).toString(I);if(V=P,N(V))return U+M;for(;U.length<6;)U="0"+U;M=U+M}},n.i=function(I){return I<0?0:I<this.g.length?this.g[I]:this.h};function N(I){if(I.h!=0)return!1;for(let C=0;C<I.g.length;C++)if(I.g[C]!=0)return!1;return!0}function j(I){return I.h==-1}n.l=function(I){return I=q(this,I),j(I)?-1:N(I)?0:1};function F(I){const C=I.g.length,V=[];for(let M=0;M<C;M++)V[M]=~I.g[M];return new c(V,~I.h).add(x)}n.abs=function(){return j(this)?F(this):this},n.add=function(I){const C=Math.max(this.g.length,I.g.length),V=[];let M=0;for(let P=0;P<=C;P++){let U=M+(this.i(P)&65535)+(I.i(P)&65535),O=(U>>>16)+(this.i(P)>>>16)+(I.i(P)>>>16);M=O>>>16,U&=65535,O&=65535,V[P]=O<<16|U}return new c(V,V[V.length-1]&-2147483648?-1:0)};function q(I,C){return I.add(F(C))}n.j=function(I){if(N(this)||N(I))return _;if(j(this))return j(I)?F(this).j(F(I)):F(F(this).j(I));if(j(I))return F(this.j(F(I)));if(this.l(R)<0&&I.l(R)<0)return g(this.m()*I.m());const C=this.g.length+I.g.length,V=[];for(var M=0;M<2*C;M++)V[M]=0;for(M=0;M<this.g.length;M++)for(let P=0;P<I.g.length;P++){const U=this.i(M)>>>16,O=this.i(M)&65535,At=I.i(P)>>>16,Ut=I.i(P)&65535;V[2*M+2*P]+=O*Ut,tt(V,2*M+2*P),V[2*M+2*P+1]+=U*Ut,tt(V,2*M+2*P+1),V[2*M+2*P+1]+=O*At,tt(V,2*M+2*P+1),V[2*M+2*P+2]+=U*At,tt(V,2*M+2*P+2)}for(I=0;I<C;I++)V[I]=V[2*I+1]<<16|V[2*I];for(I=C;I<2*C;I++)V[I]=0;return new c(V,0)};function tt(I,C){for(;(I[C]&65535)!=I[C];)I[C+1]+=I[C]>>>16,I[C]&=65535,C++}function Z(I,C){this.g=I,this.h=C}function nt(I,C){if(N(C))throw Error("division by zero");if(N(I))return new Z(_,_);if(j(I))return C=nt(F(I),C),new Z(F(C.g),F(C.h));if(j(C))return C=nt(I,F(C)),new Z(F(C.g),C.h);if(I.g.length>30){if(j(I)||j(C))throw Error("slowDivide_ only works with positive integers.");for(var V=x,M=C;M.l(I)<=0;)V=ht(V),M=ht(M);var P=Et(V,1),U=Et(M,1);for(M=Et(M,2),V=Et(V,2);!N(M);){var O=U.add(M);O.l(I)<=0&&(P=P.add(V),U=O),M=Et(M,1),V=Et(V,1)}return C=q(I,P.j(C)),new Z(P,C)}for(P=_;I.l(C)>=0;
564){for(V=Math.max(1,Math.floor(I.m()/C.m())),M=Math.ceil(Math.log(V)/Math.LN2),M=M<=48?1:Math.pow(2,M-48),U=g(V),O=U.j(C);j(O)||O.l(I)>0;)V-=M,U=g(V),O=U.j(C);N(U)&&(U=x),P=P.add(U),I=q(I,O)}return new Z(P,I)}n.B=function(I){return nt(this,I).h},n.and=function(I){const C=Math.max(this.g.length,I.g.length),V=[];for(let M=0;M<C;M++)V[M]=this.i(M)&I.i(M);return new c(V,this.h&I.h)},n.or=function(I){const C=Math.max(this.g.length,I.g.length),V=[];for(let M=0;M<C;M++)V[M]=this.i(M)|I.i(M);return new c(V,this.h|I.h)},n.xor=function(I){const C=Math.max(this.g.length,I.g.length),V=[];for(let M=0;M<C;M++)V[M]=this.i(M)^I.i(M);return new c(V,this.h^I.h)};function ht(I){const C=I.g.length+1,V=[];for(let M=0;M<C;M++)V[M]=I.i(M)<<1|I.i(M-1)>>>31;return new c(V,I.h)}function Et(I,C){const V=C>>5;C%=32;const M=I.g.length-V,P=[];for(let U=0;U<M;U++)P[U]=C>0?I.i(U+V)>>>C|I.i(U+V+1)<<32-C:I.i(U+V);return new c(P,I.h)}s.prototype.digest=s.prototype.A,s.prototype.reset=s.prototype.u,s.prototype.update=s.prototype.v,Ey=s,c.prototype.add=c.prototype.add,c.prototype.multiply=c.prototype.j,c.prototype.modulo=c.prototype.B,c.prototype.compare=c.prototype.l,c.prototype.toNumber=c.prototype.m,c.prototype.toString=c.prototype.toString,c.prototype.getBits=c.prototype.i,c.fromNumber=g,c.fromString=y,Wr=c}).apply(typeof r8<"u"?r8:typeof self<"u"?self:typeof window<"u"?window:{});var bh=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};/** @license 565Copyright The Closure Library Authors. 566SPDX-License-Identifier: Apache-2.0 567*/var Ty,Gu,Ay,Hh,l6,xy,Sy,wy;(function(){var n,t=Object.defineProperty;function e(f){f=[typeof globalThis=="object"&&globalThis,f,typeof window=="object"&&window,typeof self=="object"&&self,typeof bh=="object"&&bh];for(var v=0;v<f.length;++v){var T=f[v];if(T&&T.Math==Math)return T}throw Error("Cannot find global object")}var s=e(this);function a(f,v){if(v)t:{var T=s;f=f.split(".");for(var b=0;b<f.length-1;b++){var G=f[b];if(!(G in T))break t;T=T[G]}f=f[f.length-1],b=T[f],v=v(b),v!=b&&v!=null&&t(T,f,{configurable:!0,writable:!0,value:v})}}a("Symbol.dispose",function(f){return f||Symbol("Symbol.dispose")}),a("Array.prototype.values",function(f){return f||function(){return this[Symbol.iterator]()}}),a("Object.entries",function(f){return f||function(v){var T=[],b;for(b in v)Object.prototype.hasOwnProperty.call(v,b)&&T.push([b,v[b]]);return T}});/** @license 568 569 Copyright The Closure Library Authors. 570 SPDX-License-Identifier: Apache-2.0 571*/var l=l||{},c=this||self;function h(f){var v=typeof f;return v=="object"&&f!=null||v=="function"}function m(f,v,T){return f.call.apply(f.bind,arguments)}function g(f,v,T){return g=m,g.apply(null,arguments)}function y(f,v){var T=Array.prototype.slice.call(arguments,1);return function(){var b=T.slice();return b.push.apply(b,arguments),f.apply(this,b)}}function _(f,v){function T(){}T.prototype=v.prototype,f.Z=v.prototype,f.prototype=new T,f.prototype.constructor=f,f.Ob=function(b,G,X){for(var pt=Array(arguments.length-2),qt=2;qt<arguments.length;qt++)pt[qt-2]=arguments[qt];return v.prototype[G].apply(b,pt)}}var x=typeof AsyncContext<"u"&&typeof AsyncContext.Snapshot=="function"?f=>f&&AsyncContext.Snapshot.wrap(f):f=>f;function R(f){const v=f.length;if(v>0){const T=Array(v);for(let b=0;b<v;b++)T[b]=f[b];return T}return[]}function N(f,v){for(let b=1;b<arguments.length;b++){const G=arguments[b];var T=typeof G;if(T=T!="object"?T:G?Array.isArray(G)?"array":T:"null",T=="array"||T=="object"&&typeof G.length=="number"){T=f.length||0;const X=G.length||0;f.length=T+X;for(let pt=0;pt<X;pt++)f[T+pt]=G[pt]}else f.push(G)}}class j{constructor(v,T){this.i=v,this.j=T,this.h=0,this.g=null}get(){let v;return this.h>
5710?(this.h--,v=this.g,this.g=v.next,v.next=null):v=this.i(),v}}function F(f){c.setTimeout(()=>{throw f},0)}function q(){var f=I;let v=null;return f.g&&(v=f.g,f.g=f.g.next,f.g||(f.h=null),v.next=null),v}class tt{constructor(){this.h=this.g=null}add(v,T){const b=Z.get();b.set(v,T),this.h?this.h.next=b:this.g=b,this.h=b}}var Z=new j(()=>new nt,f=>f.reset());class nt{constructor(){this.next=this.g=this.h=null}set(v,T){this.h=v,this.g=T,this.next=null}reset(){this.next=this.g=this.h=null}}let ht,Et=!1,I=new tt,C=()=>{const f=Promise.resolve(void 0);ht=()=>{f.then(V)}};function V(){for(var f;f=q();){try{f.h.call(f.g)}catch(T){F(T)}var v=Z;v.j(f),v.h<100&&(v.h++,f.next=v.g,v.g=f)}Et=!1}function M(){this.u=this.u,this.C=this.C}M.prototype.u=!1,M.prototype.dispose=function(){this.u||(this.u=!0,this.N())},M.prototype[Symbol.dispose]=function(){this.dispose()},M.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()};function P(f,v){this.type=f,this.g=this.target=v,this.defaultPrevented=!1}P.prototype.h=function(){this.defaultPrevented=!0};var U=(function(){if(!c.addEventListener||!Object.defineProperty)return!1;var f=!1,v=Object.defineProperty({},"passive",{get:function(){f=!0}});try{const T=()=>{};c.addEventListener("test",T,v),c.removeEventListener("test",T,v)}catch{}return f})();function O(f){return/^[\s\xa0]*$/.test(f)}function At(f,v){P.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&&this.init(f,v)}_(At,P),At.prototype.init=function(f,v){const T=this.type=f.type,b=f.changedTouches&&f.changedTouches.length?f.changedTouches[0]:null;this.target=f.target||f.srcElement,this.g=v,v=f.relatedTarget,v||(T=="mouseover"?v=f.fromElement:T=="mouseout"&&(v=f.toElement)),this.relatedTarget=v,b?(this.clientX=b.clientX!==void 0?b.clientX:b.pageX,this.clientY=b.clientY!==void 0?b.clientY:b.pageY,this.screenX=b.screenX||0,this.screenY=b.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=f.pointerType,this.state=f.state,this.i=f,f.defaultPrevented&&At.Z.h.call(this)},At.prototype.h=function(){At.Z.h.call(this);const f=this.i;f.preventDefault?f.preventDefault():f.returnValue=!1};var Ut="closure_listenable_"+(Math.random()*1e6|0),W=0;function mt(f,v,T,b,G){this.listener=f,this.proxy=null,this.src=v,this.type=T,this.capture=!!b,this.ha=G,this.key=++W,this.da=this.fa=!1}function dt(f){f.da=!0,f.listener=null,f.proxy=null,f.src=null,f.ha=null}function It(f,v,T){for(const b in f)v.call(T,f[b],b,f)}function Ht(f,v){for(const T in f)v.call(void 0,f[T],T,f)}function k(f){const v={};for(const T in f)v[T]=f[T];return v}const rt="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" ");function gt(f,v){let T,b;for(let G=1;G<arguments.length;G++){b=arguments[G];for(T in b)f[T]=b[T];for(let X=0;X<rt.length;X++)T=rt[X],Object.prototype.hasOwnProperty.call(b,T)&&(f[T]=b[T])}}function xt(f){this.src=f,this.g={},this.h=0}xt.prototype.add=function(f,v,T,b,G){const X=f.toString();f=this.g[X],f||(f=this.g[X]=[],this.h++);const pt=Ot(f,v,b,G);return pt>-1?(v=f[pt],T||(v.fa=!1)):(v=new mt(v,this.src,X,!!b,G),v.fa=T,f.push(v)),v};function yt(f,v){const T=v.type;if(T in f.g){var b=f.g[T],G=Array.prototype.indexOf.call(b,v,void 0),X;(X=G>=0)&&Array.prototype.splice.call(b,G,1),X&&(dt(v),f.g[T].length==0&&(delete f.g[T],f.h--))}}function Ot(f,v,T,b){for(let G=0;G<f.length;++G){const X=f[G];if(!X.da&&X.listener==v&&X.capture==!!T&&X.ha==b)return G}return-1}var jt="closure_lm_"+(Math.random()*1e6|0),Re={};function ve(f,v,T,b,G){if(Array.isArray(v)){for(let X=0;X<v.length;X++)ve(f,v[X],T,b,G);return null}return T=kl(T),f&&f[Ut]?f.J(v,T,h(b)?!!b.capture:!1,G):Ii(f,v,T,!1,b,G)}
vendor: 5,112 bytes, lines 571-575
571function Ii(f,v,T,b,G,X){if(!v)throw Error("Invalid event type");const pt=h(G)?!!G.capture:!!G;let qt=Mn(f);if(qt||(f[jt]=qt=new xt(f)),T=qt.add(v,T,b,pt,X),T.proxy)return T;if(b=Oi(),T.proxy=b,b.src=f,b.listener=T,f.addEventListener)U||(G=pt),G===void 0&&(G=!1),f.addEventListener(v.toString(),b,G);else if(f.attachEvent)f.attachEvent(On(v.toString()),b);else if(f.addListener&&f.removeListener)f.addListener(b);else throw Error("addEventListener and attachEvent are unavailable.");return T}function Oi(){function f(T){return v.call(f.src,f.listener,T)}const v=ga;return f}function Mi(f,v,T,b,G){if(Array.isArray(v))for(var X=0;X<v.length;X++)Mi(f,v[X],T,b,G);else b=h(b)?!!b.capture:!!b,T=kl(T),f&&f[Ut]?(f=f.i,X=String(v).toString(),X in f.g&&(v=f.g[X],T=Ot(v,T,b,G),T>-1&&(dt(v[T]),Array.prototype.splice.call(v,T,1),v.length==0&&(delete f.g[X],f.h--)))):f&&(f=Mn(f))&&(v=f.g[v.toString()],f=-1,v&&(f=Ot(v,T,b,G)),(T=f>-1?v[f]:null)&&ts(T))}function ts(f){if(typeof f!="number"&&f&&!f.da){var v=f.src;if(v&&v[Ut])yt(v.i,f);else{var T=f.type,b=f.proxy;v.removeEventListener?v.removeEventListener(T,b,f.capture):v.detachEvent?v.detachEvent(On(T),b):v.addListener&&v.removeListener&&v.removeListener(b),(T=Mn(v))?(yt(T,f),T.h==0&&(T.src=null,v[jt]=null)):dt(f)}}}function On(f){return f in Re?Re[f]:Re[f]="on"+f}function ga(f,v){if(f.da)f=!0;else{v=new At(v,this);const T=f.listener,b=f.ha||f.src;f.fa&&ts(f),f=T.call(b,v)}return f}function Mn(f){return f=f[jt],f instanceof xt?f:null}var cr="__closure_events_fn_"+(Math.random()*1e9>>>0);function kl(f){return typeof f=="function"?f:(f[cr]||(f[cr]=function(v){return f.handleEvent(v)}),f[cr])}function Fe(){M.call(this),this.i=new xt(this),this.M=this,this.G=null}_(Fe,M),Fe.prototype[Ut]=!0,Fe.prototype.removeEventListener=function(f,v,T,b){Mi(this,f,v,T,b)};function an(f,v){var T,b=f.G;if(b)for(T=[];b;b=b.G)T.push(b);if(f=f.M,b=v.type||v,typeof v=="string")v=new P(v,f);else if(v instanceof P)v.target=v.target||f;else{var G=v;v=new P(b,f),gt(v,G)}G=!0;let X,pt;if(T)for(pt=T.length-1;pt>=0;pt--)X=v.g=T[pt],G=hr(X,b,!0,v)&&G;if(X=v.g=f,G=hr(X,b,!0,v)&&G,G=hr(X,b,!1,v)&&G,T)for(pt=0;pt<T.length;pt++)X=v.g=T[pt],G=hr(X,b,!1,v)&&G}Fe.prototype.N=function(){if(Fe.Z.N.call(this),this.i){var f=this.i;for(const v in f.g){const T=f.g[v];for(let b=0;b<T.length;b++)dt(T[b]);delete f.g[v],f.h--}}this.G=null},Fe.prototype.J=function(f,v,T,b){return this.i.add(String(f),v,!1,T,b)},Fe.prototype.K=function(f,v,T,b){return this.i.add(String(f),v,!0,T,b)};function hr(f,v,T,b){if(v=f.i.g[String(v)],!v)return!0;v=v.concat();let G=!0;for(let X=0;X<v.length;++X){const pt=v[X];if(pt&&!pt.da&&pt.capture==T){const qt=pt.listener,Pe=pt.ha||pt.src;pt.fa&&yt(f.i,pt),G=qt.call(Pe,b)!==!1&&G}}return G&&!b.defaultPrevented}function Jf(f,v){if(typeof f!="function")if(f&&typeof f.handleEvent=="function")f=g(f.handleEvent,f);else throw Error("Invalid listener argument");return Number(v)>2147483647?-1:c.setTimeout(f,v||0)}function Gc(f){f.g=Jf(()=>{f.g=null,f.i&&(f.i=!1,Gc(f))},f.l);const v=f.h;f.h=null,f.m.apply(null,v)}class Pn extends M{constructor(v,T){super(),this.m=v,this.l=T,this.h=null,this.i=!1,this.g=null}j(v){this.h=arguments,this.g?this.i=!0:Gc(this)}N(){super.N(),this.g&&(c.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function ya(f){M.call(this),this.h=f,this.g={}}_(ya,M);var jl=[];function Bl(f){It(f.g,function(v,T){this.g.hasOwnProperty(T)&&ts(v)},f),f.g={}}ya.prototype.N=function(){ya.Z.N.call(this),Bl(this)},ya.prototype.handleEvent=function(){throw Error("EventHandler.handleEvent not implemented")};var fr=c.JSON.stringify,td=c.JSON.parse,Yc=class{stringify(f){return c.JSON.stringify(f,void 0)}parse(f){return c.JSON.parse(f,void 0)}};function Qc(){}function Kc(){}var Pi={OPEN:"a",hb:"b",ERROR:"c",tb:"d"};function gn(){P.call(this,"d")}_(gn,P);function pi(){P.call(this,"c")}_(pi,P);var Me={},$c=null;function mo(){return $c=$c||new Fe}Me.Ia="serverreachability";function Xc(f){P.call(this,Me.Ia,f)}_(Xc,P);function es(f){const v=mo();an(v,new Xc(v))}Me.STAT_EVENT="statevent";function va(f,v){P.call(this,Me.STAT_EVENT,f),this.stat=v}_(va,P);function He(f){const v=mo();an(v,new va(v,f))}Me.Ja="timingevent";function ns(f,v){P.call(this,Me.Ja,f),this.size=v}_(ns,P);function is(f,v){if(typeof f!="function")throw Error("Fn must not be null and must be a function");return c.setTimeout(function(){f()},v)}function Li(){this.g=!0}Li.prototype.ua=function(){this.g=!1};function ed(f,v,T,b,G,X){f.info(function(){if(f.g)if(X){var pt="",qt=X.split("&");for(let oe=0;oe<qt.length;oe++){var Pe=qt[oe].split("=");if(Pe.length>1){const we=Pe[0];Pe=Pe[1];const _i=we.split("_");pt=_i.length>=2&&_i[1]=="type"?pt+(we+"="+Pe+"&"):pt+(we+"=redacted&")}}}else pt=null;else pt=X;return"XMLHTTP REQ ("+b+") [attempt "+G+"]: "+v+` 572`+T+` 573`+pt})}function Wc(f,v,T,b,G,X,pt){f.info(function(){return"XMLHTTP RESP ("+b+") [ attempt "+G+"]: "+v+` 574`+T+` 575`+X+" "+pt})}function ss(f,v,T,b){f.info(function(){return"XMLHTTP TEXT ("+v+"): "+nd(f,T)+(b?" "+b:"")})}function _a(f,v){f.info(function(){return"TIMEOUT: "+v})}Li.prototype.info=function(){};
575function nd(f,v){if(!f.g)return v;if(!v)return null;try{const X=JSON.parse(v);if(X){for(f=0;f<X.length;f++)if(Array.isArray(X[f])){var T=X[f];if(!(T.length<2)){var b=T[1];if(Array.isArray(b)&&!(b.length<1)){var G=b[0];if(G!="noop"&&G!="stop"&&G!="close")for(let pt=1;pt<b.length;pt++)b[pt]=""}}}}return fr(X)}catch{return v}}var Ea={NO_ERROR:0,cb:1,qb:2,pb:3,kb:4,ob:5,rb:6,Ga:7,TIMEOUT:8,ub:9},Ul={ib:"complete",Fb:"success",ERROR:"error",Ga:"abort",xb:"ready",yb:"readystatechange",TIMEOUT:"timeout",sb:"incrementaldata",wb:"progress",lb:"downloadprogress",Nb:"uploadprogress"},zl;function Ta(){}_(Ta,Qc),Ta.prototype.g=function(){return new XMLHttpRequest},zl=new Ta;function Ps(f){return encodeURIComponent(String(f))}function Zc(f){var v=1;f=f.split(":");const T=[];for(;v>0&&f.length;)T.push(f.shift()),v--;return f.length&&T.push(f.join(":")),T}function ki(f,v,T,b){this.j=f,this.i=v,this.l=T,this.S=b||1,this.V=new ya(this),this.H=45e3,this.J=null,this.o=!1,this.u=this.B=this.A=this.M=this.F=this.T=this.D=null,this.G=[],this.g=null,this.C=0,this.m=this.v=null,this.X=-1,this.K=!1,this.P=0,this.O=null,this.W=this.L=this.U=this.R=!1,this.h=new ji}function ji(){this.i=null,this.g="",this.h=!1}var qe={},hn={};function rs(f,v,T){f.M=1,f.A=Aa(Ye(v)),f.u=T,f.R=!0,po(f,null)}function po(f,v){f.F=Date.now(),as(f),f.B=Ye(f.A);var T=f.B,b=f.S;Array.isArray(b)||(b=[String(b)]),_o(T.i,"t",b),f.C=0,T=f.j.L,f.h=new ji,f.g=d1(f.j,T?v:null,!f.u),f.P>0&&(f.O=new Pn(g(f.Y,f,f.g),f.P)),v=f.V,T=f.g,b=f.ba;var G="readystatechange";Array.isArray(G)||(G&&(jl[0]=G.toString()),G=jl);for(let X=0;X<G.length;X++){const pt=ve(T,G[X],b||v.handleEvent,!1,v.h||v);if(!pt)break;v.g[pt.key]=pt}
575v=f.J?k(f.J):{},f.u?(f.v||(f.v="POST"),v["Content-Type"]="application/x-www-form-urlencoded",f.g.ea(f.B,f.v,f.u,v)):(f.v="GET",f.g.ea(f.B,f.v,null,v)),es(),ed(f.i,f.v,f.B,f.l,f.S,f.u)}ki.prototype.ba=function(f){f=f.target;const v=this.O;v&&zi(f)==3?v.j():this.Y(f)},ki.prototype.Y=function(f){try{if(f==this.g)t:{const qt=zi(this.g),Pe=this.g.ya(),oe=this.g.ca();if(!(qt<3)&&(qt!=3||this.g&&(this.h.h||this.g.la()||yn(this.g)))){this.K||qt!=4||Pe==7||(Pe==8||oe<=0?es(3):es(2)),os(this);var v=this.g.ca();this.X=v;var T=id(this);if(this.o=v==200,Wc(this.i,this.v,this.B,this.l,this.S,qt,v),this.o){if(this.U&&!this.L){e:{if(this.g){var b,G=this.g;if((b=G.g?G.g.getResponseHeader("X-HTTP-Initial-Response"):null)&&!O(b)){var X=b;break e}}X=null}if(f=X)ss(this.i,this.l,f,"Initial handshake response via X-HTTP-Initial-Response"),this.L=!0,ls(this,f);else{this.o=!1,this.m=3,He(12),ei(this),gi(this);break t}}if(this.R){f=!0;let we;for(;!this.K&&this.C<T.length;)if(we=t1(this,T),we==hn){qt==4&&(this.m=4,He(14),f=!1),ss(this.i,this.l,null,"[Incomplete Response]");break}else if(we==qe){this.m=4,He(15),ss(this.i,this.l,T,"[Invalid Chunk]"),f=!1;break}else ss(this.i,this.l,we,null),ls(this,we);if(Jc(this)&&this.C!=0&&(this.h.g=this.h.g.slice(this.C),this.C=0),qt!=4||T.length!=0||this.h.h||(this.m=1,He(16),f=!1),this.o=this.o&&f,!f)ss(this.i,this.l,T,"[Invalid Chunked Response]"),ei(this),gi(this);else if(T.length>0&&!this.W){this.W=!0;var pt=this.j;pt.g==this&&pt.aa&&!pt.P&&(pt.j.info("Great, no buffering proxy detected. Bytes received: "+T.length),nu(pt),pt.P=!0,He(11))}}else ss(this.i,this.l,T,null),ls(this,T);qt==4&&ei(this),this.o&&!this.K&&(qt==4?u1(this.j,this):(this.o=!1,as(this)))}else ks(this.g),v==400&&T.indexOf("Unknown SID")>0?(this.m=3,He(12)):(this.m=0,He(13)),ei(this),gi(this)}}}catch{}finally{}};function id(f){if(!Jc(f))return f.g.la();const v=yn(f.g);if(v==="")return"";let T="";const b=v.length,G=zi(f.g)==4;if(!f.h.i){if(typeof TextDecoder>"u")return ei(f),gi(f),"";f.h.i=new c.TextDecoder}for(let X=0;X<b;X++)f.h.h=!0,T+=f.h.i.decode(v[X],{stream:!(G&&X==b-1)});return v.length=0,f.h.g+=T,f.C=0,f.h.g}function Jc(f){return f.g?f.v=="GET"&&f.M!=2&&f.j.Aa:!1}function t1(f,v){var T=f.C,b=v.indexOf(` 576`,T);return b==-1?hn:(T=Number(v.substring(T,b)),isNaN(T)?qe:(b+=1,b+T>v.length?hn:(v=v.slice(b,b+T),f.C=b+T,v)))}ki.prototype.cancel=function(){this.K=!0,ei(this)};function as(f){f.T=Date.now()+f.H,go(f,f.H)}function go(f,v){if(f.D!=null)throw Error("WatchDog timer not null");f.D=is(g(f.aa,f),v)}function os(f){f.D&&(c.clearTimeout(f.D),f.D=null)}ki.prototype.aa=function(){this.D=null;const f=Date.now();f-this.T>=0?(_a(this.i,this.B),this.M!=2&&(es(),He(17)),ei(this),this.m=2,gi(this)):go(this,this.T-f)};function gi(f){f.j.I==0||f.K||u1(f.j,f)}function ei(f){os(f);var v=f.O;v&&typeof v.dispose=="function"&&v.dispose(),f.O=null,Bl(f.V),f.g&&(v=f.g,f.g=null,v.abort(),v.dispose())}function ls(f,v){try{var T=f.j;if(T.I!=0&&(T.g==f||cs(T.h,f))){if(!f.L&&cs(T.h,f)&&T.I==3){try{var b=T.Ba.g.parse(v)}catch{b=null}if(Array.isArray(b)&&b.length==3){var G=b;if(G[0]==0){t:if(!T.v){if(T.g)if(T.g.F+3e3<f.F)So(T),Er(T);else break t;Na(T),He(18)}}else T.xa=G[1],0<T.xa-T.K&&G[2]<37500&&T.F&&T.A==0&&!T.C&&(T.C=is(g(T.Va,T),6e3));us(T.h)<=1&&T.ta&&(T.ta=void 0)}else gs(T,11)}else if((f.L||T.g==f)&&So(T),!O(v))for(G=T.Ba.g.parse(v),v=0;v<G.length;v++){let oe=G[v];const we=oe[0];if(!(we<=T.K))if(T.K=we,oe=oe[1],T.I==2)if(oe[0]=="c"){T.M=oe[1],T.ba=oe[2];const _i=oe[3];_i!=null&&(T.ka=_i,T.j.info("VER="+T.ka));const ys=oe[4];ys!=null&&(T.za=ys,T.j.info("SVER="+T.za));const Fi=oe[5];Fi!=null&&typeof Fi=="number"&&Fi>0&&(b=1.5*Fi,T.O=b,T.j.info("backChannelRequestTimeoutMs_="+b)),b=T;const Hi=f.g;if(Hi){const Da=Hi.g?Hi.g.getResponseHeader("X-Client-Wire-Protocol"):null;if(Da){var X=b.h;X.g||Da.indexOf("spdy")==-1&&Da.indexOf("quic")==-1&&Da.indexOf("h2")==-1||(X.j=X.l,X.g=new Set,X.h&&(ql(X,X.h),X.h=null))}if(b.G){const wo=Hi.g?Hi.g.getResponseHeader("X-HTTP-Session-Id"):null;wo&&(b.wa=wo,ce(b.J,b.G,wo))}}T.I=3,T.l&&T.l.ra(),T.aa&&(T.T=Date.now()-f.F,T.j.info("Handshake RTT: "+T.T+"ms")),b=T;var pt=f;if(b.na=f1(b,b.L?b.ba:null,b.W),pt.L){Gl(b.h,pt);var qt=pt,Pe=b.O;Pe&&(qt.H=Pe),qt.D&&(os(qt),as(qt)),b.g=pt}else o1(b);T.i.length>0&&ps(T)}else oe[0]!="stop"&&oe[0]!="close"||gs(T,7);else T.I==3&&(oe[0]=="stop"||oe[0]=="close"?oe[0]=="stop"?gs(T,7):tu(T):oe[0]!="noop"&&T.l&&T.l.qa(oe),T.A=0)}}es(4)}catch{}}var Ge=class{constructor(f,v){this.g=f,this.map=v}};function Fl(f){this.l=f||10,c.PerformanceNavigationTiming?(f=c.performance.getEntriesByType("navigation"),f=f.length>0&&(f[0].nextHopProtocol=="hq"||f[0].nextHopProtocol=="h2")):f=!!(c.chrome&&c.chrome.loadTimes&&c.chrome.loadTimes()&&c.chrome.loadTimes().wasFetchedViaSpdy),this.j=f?this.l:1,this.g=null,this.j>1&&(this.g=new Set),this.h=null,this.i=[]}function Hl(f){return f.h?!0:f.g?f.g.size>=f.j:!1}function us(f){return f.h?1:f.g?f.g.size:0}function cs(f,v){return f.h?f.h==v:f.g?f.g.has(v):!1}function ql(f,v){f.g?f.g.add(v):f.h=v}function Gl(f,v){f.h&&f.h==v?f.h=null:f.g&&f.g.has(v)&&f.g.delete(v)}Fl.prototype.cancel=function(){if(this.i=Yl(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 Yl(f){if(f.h!=null)return f.i.concat(f.h.G);if(f.g!=null&&f.g.size!==0){let v=f.i;for(const T of f.g.values())v=v.concat(T.G);return v}return R(f.i)}var e1=RegExp("^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$");function yo(f,v){if(f){f=f.split("&");for(let T=0;T<f.length;T++){const b=f[T].indexOf("=");let G,X=null;b>=0?(G=f[T].substring(0,b),X=f[T].substring(b+1)):G=f[T],v(G,X?decodeURIComponent(X.replace(/\+/g," ")):"")}}}function ni(f){this.g=this.o=this.j="",this.u=null,this.m=this.h="",this.l=!1;let v;f instanceof ni?(this.l=f.l,fn(this,f.j),this.o=f.o,this.g=f.g,dr
576(this,f.u),this.h=f.h,Ql(this,r1(f.i)),this.m=f.m):f&&(v=String(f).match(e1))?(this.l=!1,fn(this,v[1]||"",!0),this.o=hs(v[2]||""),this.g=hs(v[3]||"",!0),dr(this,v[4]),this.h=hs(v[5]||"",!0),Ql(this,v[6]||"",!0),this.m=hs(v[7]||"")):(this.l=!1,this.i=new pr(null,this.l))}ni.prototype.toString=function(){const f=[];var v=this.j;v&&f.push(xa(v,vo,!0),":");var T=this.g;return(T||v=="file")&&(f.push("//"),(v=this.o)&&f.push(xa(v,vo,!0),"@"),f.push(Ps(T).replace(/%25([0-9a-fA-F]{2})/g,"%$1")),T=this.u,T!=null&&f.push(":",String(T))),(T=this.h)&&(this.g&&T.charAt(0)!="/"&&f.push("/"),f.push(xa(T,T.charAt(0)=="/"?Kl:n1,!0))),(T=this.i.toString())&&f.push("?",T),(T=this.m)&&f.push("#",xa(T,i1)),f.join("")},ni.prototype.resolve=function(f){const v=Ye(this);let T=!!f.j;T?fn(v,f.j):T=!!f.o,T?v.o=f.o:T=!!f.g,T?v.g=f.g:T=f.u!=null;var b=f.h;if(T)dr(v,f.u);else if(T=!!f.h){if(b.charAt(0)!="/")if(this.g&&!this.h)b="/"+b;else{var G=v.h.lastIndexOf("/");G!=-1&&(b=v.h.slice(0,G+1)+b)}if(G=b,G==".."||G==".")b="";else if(G.indexOf("./")!=-1||G.indexOf("/.")!=-1){b=G.lastIndexOf("/",0)==0,G=G.split("/");const X=[];for(let pt=0;pt<G.length;){const qt=G[pt++];qt=="."?b&&pt==G.length&&X.push(""):qt==".."?((X.length>1||X.length==1&&X[0]!="")&&X.pop(),b&&pt==G.length&&X.push("")):(X.push(qt),b=!0)}b=X.join("/")}else b=G}return T?v.h=b:T=f.i.toString()!=="",T?Ql(v,r1(f.i)):T=!!f.m,T&&(v.m=f.m),v};function Ye(f){return new ni(f)}function fn(f,v,T){f.j=T?hs(v,!0):v,f.j&&(f.j=f.j.replace(/:$/,""))}function dr(f,v){if(v){if(v=Number(v),isNaN(v)||v<0)throw Error("Bad port number "+v);f.u=v}else f.u=null}function Ql(f,v,T){v instanceof pr?(f.i=v,Eo(f.i,f.l)):(T||(v=xa(v,mr)),f.i=new pr(v,f.l))}function ce(f,v,T){f.i.set(v,T)}function Aa(f){return ce(f,"zx",Math.floor(Math.random()*2147483648).toString(36)+Math.abs(Math.floor(Math.random()*2147483648)^Date.now()).toString(36)),f}function hs(f,v){return f?v?decodeURI(f.replace(/%25/g,"%2525")):decodeURIComponent(f):""}function xa(f,v,T){return typeof f=="string"?(f=encodeURI(f).replace(v,Fn),T&&(f=f.replace(/%25([0-9a-fA-F]{2})/g,"%$1")),f):null}function Fn(f){return f=f.charCodeAt(0),"%"+(f>>4&15).toString(16)+(f&15).toString(16)}var vo=/[#\/\?@]/g,n1=/[#\?:]/g,Kl=/[#\?]/g,mr=/[#\?@]/g,i1=/#/g;function pr(f,v){this.h=this.g=null,this.i=f||null,this.j=!!v}function Hn(f){f.g||(f.g=new Map,f.h=0,f.i&&yo(f.i,function(v,T){f.add(decodeURIComponent(v.replace(/\+/g," ")),T)}))}n=pr.prototype,n.add=function(f,v){Hn(this),this.i=null,f=gr(this,f);let T=this.g.get(f);return T||this.g.set(f,T=[]),T.push(v),this.h+=1,this};function s1(f,v){Hn(f),v=gr(f,v),f.g.has(v)&&(f.i=null,f.h-=f.g.get(v).length,f.g.delete(v))}function $l(f,v){return Hn(f),v=gr(f,v),f.g.has(v)}n.forEach=function(f,v){Hn(this),this.g.forEach(function(T,b){T.forEach(function(G){f.call(v,G,b,this)},this)},this)};function Xl(f,v){Hn(f);let T=[];if(typeof v=="string")$l(f,v)&&(T=T.concat(f.g.get(gr(f,v))));else for(f=Array.from(f.g.values()),v=0;v<f.length;v++)T=T.concat(f[v]);return T}n.set=function(f,v){return Hn(this),this.i=null,f=gr(this,f),$l(this,f)&&(this.h-=this.g.get(f).length),this.g.set(f,[v]),this.h+=1,this},n.get=function(f,v){return f?(f=Xl(this,f),f.length>0?String(f[0]):v):v};function _o(f,v,T){s1(f,v),T.length>0&&(f.i=null,f.g.set(gr(f,v),R(T)),f.h+=T.length)}n.toString=function(){if(this.i)return this.i;if(!this.g)return"";const f=[],v=Array.from(this.g.keys());for(let b=0;b<v.length;b++){var T=v[b];const G=Ps(T);T=Xl(this,T);for(let X=0;X<T.length;X++){let pt=G;T[X]!==""&&(pt+="="+Ps(T[X])),f.push(pt)}}return this.i=f.join("&")};function r1(f){const v=new pr;return v.i=f.i,f.g&&(v.g=new Map(f.g),v.h=f.h),v}function gr(f,v){return v=String(v),f.j&&(v=v.toLowerCase()),v}function Eo(f,v){v&&!f.j&&(Hn(f),f.i=null,f.g.forEach(function(T,b){const G=b.toLowerCase();b!=G&&(s1(this,b),_o(this,G,T))},f)),f.j=v}function Bi(f,v){const T=new Li;if(c.Image){const b=new Image;b.onload=y(yi,T,"TestLoadImage: loaded",!0,v,b),b.onerror=y(yi,T,"TestLoadImage: error",!1,v,b),b.onabort=y(yi,T,"TestLoadImage: abort",!1,v,b),b.ontimeout=y(yi,T,"TestLoadImage: timeout",!1,v,b),c.setTimeout(function(){b.ontimeout&&b.ontimeout()},1e4),b.src=f}else v(!1)}function Wl(f,v){const T=new Li,b=new AbortController,G=setTimeout(()=>{b.abort(),yi(T,"TestPingServer: timeout",!1,v)},1e4);fetch(f,{signal:b.signal}).then(X=>{clearTimeout(G),X.ok?yi(T,"TestPingServer: ok",!0,v):yi(T,"TestPingServer: server error",!1,v)}
vendor: 5,126 bytes, lines 576-578
576).catch(()=>{clearTimeout(G),yi(T,"TestPingServer: error",!1,v)})}function yi(f,v,T,b,G){try{G&&(G.onload=null,G.onerror=null,G.onabort=null,G.ontimeout=null),b(T)}catch{}}function yr(){this.g=new Yc}function fs(f){this.i=f.Sb||null,this.h=f.ab||!1}_(fs,Qc),fs.prototype.g=function(){return new Sa(this.i,this.h)};function Sa(f,v){Fe.call(this),this.H=f,this.o=v,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText="",this.onreadystatechange=null,this.A=new Headers,this.h=null,this.F="GET",this.D="",this.g=!1,this.B=this.j=this.l=null,this.v=new AbortController}_(Sa,Fe),n=Sa.prototype,n.open=function(f,v){if(this.readyState!=0)throw this.abort(),Error("Error reopening a connection");this.F=f,this.D=v,this.readyState=1,Ui(this)},n.send=function(f){if(this.readyState!=1)throw this.abort(),Error("need to call open() first. ");if(this.v.signal.aborted)throw this.abort(),Error("Request was aborted.");this.g=!0;const v={headers:this.A,method:this.F,credentials:this.m,cache:void 0,signal:this.v.signal};f&&(v.body=f),(this.H||c).fetch(new Request(this.D,v)).then(this.Pa.bind(this),this.ga.bind(this))},n.abort=function(){this.response=this.responseText="",this.A=new Headers,this.status=0,this.v.abort(),this.j&&this.j.cancel("Request was aborted.").catch(()=>{}),this.readyState>=1&&this.g&&this.readyState!=4&&(this.g=!1,vr(this)),this.readyState=0},n.Pa=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,Ui(this)),this.g&&(this.readyState=3,Ui(this),this.g)))if(this.responseType==="arraybuffer")f.arrayBuffer().then(this.Na.bind(this),this.ga.bind(this));else if(typeof c.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.B=new TextDecoder;To(this)}else f.text().then(this.Oa.bind(this),this.ga.bind(this))};function To(f){f.j.read().then(f.Ma.bind(f)).catch(f.ga.bind(f))}n.Ma=function(f){if(this.g){if(this.o&&f.value)this.response.push(f.value);else if(!this.o){var v=f.value?f.value:new Uint8Array(0);(v=this.B.decode(v,{stream:!f.done}))&&(this.response=this.responseText+=v)}f.done?vr(this):Ui(this),this.readyState==3&&To(this)}},n.Oa=function(f){this.g&&(this.response=this.responseText=f,vr(this))},n.Na=function(f){this.g&&(this.response=f,vr(this))},n.ga=function(){this.g&&vr(this)};function vr(f){f.readyState=4,f.l=null,f.j=null,f.B=null,Ui(f)}n.setRequestHeader=function(f,v){this.A.append(f,v)},n.getResponseHeader=function(f){return this.h&&this.h.get(f.toLowerCase())||""},n.getAllResponseHeaders=function(){if(!this.h)return"";const f=[],v=this.h.entries();for(var T=v.next();!T.done;)T=T.value,f.push(T[0]+": "+T[1]),T=v.next();return f.join(`\r 577`)};function Ui(f){f.onreadystatechange&&f.onreadystatechange.call(f)}Object.defineProperty(Sa.prototype,"withCredentials",{get:function(){return this.m==="include"},set:function(f){this.m=f?"include":"same-origin"}});function vi(f){let v="";return It(f,function(T,b){v+=b,v+=":",v+=T,v+=`\r 578`}),v}function wa(f,v,T){t:{for(b in T){var b=!1;break t}b=!0}b||(T=vi(T),typeof f=="string"?T!=null&&Ps(T):ce(f,v,T))}function de(f){Fe.call(this),this.headers=new Map,this.L=f||null,this.h=!1,this.g=null,this.D="",this.o=0,this.l="",this.j=this.B=this.v=this.A=!1,this.m=null,this.F="",this.H=!1}_(de,Fe);var ds=/^https?$/i,Zl=["POST","PUT"];n=de.prototype,n.Fa=function(f){this.H=f},n.ea=function(f,v,T,b){if(this.g)throw Error("[goog.net.XhrIo] Object is active with another request="+this.D+"; newUri="+f);v=v?v.toUpperCase():"GET",this.D=f,this.l="",this.o=0,this.A=!1,this.h=!0,this.g=this.L?this.L.g():zl.g(),this.g.onreadystatechange=x(g(this.Ca,this));try{this.B=!0,this.g.open(v,String(f),!0),this.B=!1}catch(X){ba(this,X);return}if(f=T||"",T=new Map(this.headers),b)if(Object.getPrototypeOf(b)===Object.prototype)for(var G in b)T.set(G,b[G]);else if(typeof b.keys=="function"&&typeof b.get=="function")for(const X of b.keys())T.set(X,b.get(X));else throw Error("Unknown input type for opt_headers: "+String(b));b=Array.from(T.keys()).find(X=>X.toLowerCase()=="content-type"),G=c.FormData&&f instanceof c.FormData,!(Array.prototype.indexOf.call(Zl,v,void 0)>=0)||b||G||T.set("Content-Type","application/x-www-form-urlencoded;charset=utf-8");for(const[X,pt]of T)this.g.setRequestHeader(X,pt);this.F&&(this.g.responseType=this.F),"withCredentials"in this.g&&this.g.withCredentials!==this.H&&(this.g.withCredentials=this.H);try{this.m&&(clearTimeout(this.m),this.m=null),this.v=!0,this.g.send(f),this.v=!1}catch(X){ba(this,X)}};function ba(f,v){f.h=!1,f.g&&(f.j=!0,f.g.abort(),f.j=!1),f.l=v,f.o=5,Jl(f),Ls(f)}function Jl(f){f.A||(f.A=!0,an(f,"complete"),an(f,"error"))}n.abort=function(f){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.o=f||7,an(this,"complete"),an(this,"abort"),Ls(this))},n.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),Ls(this,!0)),de.Z.N.call(this)}
vendor: 5,967 bytes, lines 578-579
578,n.Ca=function(){this.u||(this.B||this.v||this.j?Ca(this):this.Xa())},n.Xa=function(){Ca(this)};function Ca(f){if(f.h&&typeof l<"u"){if(f.v&&zi(f)==4)setTimeout(f.Ca.bind(f),0);else if(an(f,"readystatechange"),zi(f)==4){f.h=!1;try{const X=f.ca();t:switch(X){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var v=!0;break t;default:v=!1}var T;if(!(T=v)){var b;if(b=X===0){let pt=String(f.D).match(e1)[1]||null;!pt&&c.self&&c.self.location&&(pt=c.self.location.protocol.slice(0,-1)),b=!ds.test(pt?pt.toLowerCase():"")}T=b}if(T)an(f,"complete"),an(f,"success");else{f.o=6;try{var G=zi(f)>2?f.g.statusText:""}catch{G=""}f.l=G+" ["+f.ca()+"]",Jl(f)}}finally{Ls(f)}}}}function Ls(f,v){if(f.g){f.m&&(clearTimeout(f.m),f.m=null);const T=f.g;f.g=null,v||an(f,"ready");try{T.onreadystatechange=null}catch{}}}n.isActive=function(){return!!this.g};function zi(f){return f.g?f.g.readyState:0}n.ca=function(){try{return zi(this)>2?this.g.status:-1}catch{return-1}},n.la=function(){try{return this.g?this.g.responseText:""}catch{return""}},n.La=function(f){if(this.g){var v=this.g.responseText;return f&&v.indexOf(f)==0&&(v=v.substring(f.length)),td(v)}};function yn(f){try{if(!f.g)return null;if("response"in f.g)return f.g.response;switch(f.F){case"":case"text":return f.g.responseText;case"arraybuffer":if("mozResponseArrayBuffer"in f.g)return f.g.mozResponseArrayBuffer}return null}catch{return null}}function ks(f){const v={};f=(f.g&&zi(f)>=2&&f.g.getAllResponseHeaders()||"").split(`\r 579`);for(let b=0;b<f.length;b++){if(O(f[b]))continue;var T=Zc(f[b]);const G=T[0];if(T=T[1],typeof T!="string")continue;T=T.trim();const X=v[G]||[];v[G]=X,X.push(T)}Ht(v,function(b){return b.join(", ")})}n.ya=function(){return this.o},n.Ha=function(){return typeof this.l=="string"?this.l:String(this.l)};function ms(f,v,T){return T&&T.internalChannelParams&&T.internalChannelParams[f]||v}function _r(f){this.za=0,this.i=[],this.j=new Li,this.ba=this.na=this.J=this.W=this.g=this.wa=this.G=this.H=this.u=this.U=this.o=null,this.Ya=this.V=0,this.Sa=ms("failFast",!1,f),this.F=this.C=this.v=this.m=this.l=null,this.X=!0,this.xa=this.K=-1,this.Y=this.A=this.D=0,this.Qa=ms("baseRetryDelayMs",5e3,f),this.Za=ms("retryDelaySeedMs",1e4,f),this.Ta=ms("forwardChannelMaxRetries",2,f),this.va=ms("forwardChannelRequestTimeoutMs",2e4,f),this.ma=f&&f.xmlHttpFactory||void 0,this.Ua=f&&f.Rb||void 0,this.Aa=f&&f.useFetchStreams||!1,this.O=void 0,this.L=f&&f.supportsCrossDomainXhr||!1,this.M="",this.h=new Fl(f&&f.concurrentRequestLimit),this.Ba=new yr,this.S=f&&f.fastHandshake||!1,this.R=f&&f.encodeInitMessageHeaders||!1,this.S&&this.R&&(this.R=!1),this.Ra=f&&f.Pb||!1,f&&f.ua&&this.j.ua(),f&&f.forceLongPolling&&(this.X=!1),this.aa=!this.S&&this.X&&f&&f.detectBufferingProxy||!1,this.ia=void 0,f&&f.longPollingTimeout&&f.longPollingTimeout>0&&(this.ia=f.longPollingTimeout),this.ta=void 0,this.T=0,this.P=!1,this.ja=this.B=null}n=_r.prototype,n.ka=8,n.I=1,n.connect=function(f,v,T,b){He(0),this.W=f,this.H=v||{},T&&b!==void 0&&(this.H.OSID=T,this.H.OAID=b),this.F=this.X,this.J=f1(this,null,this.W),ps(this)};function tu(f){if(Ao(f),f.I==3){var v=f.V++,T=Ye(f.J);if(ce(T,"SID",f.M),ce(T,"RID",v),ce(T,"TYPE","terminate"),Ra(f,T),v=new ki(f,f.j,v),v.M=2,v.A=Aa(Ye(T)),T=!1,c.navigator&&c.navigator.sendBeacon)try{T=c.navigator.sendBeacon(v.A.toString(),"")}catch{}!T&&c.Image&&(new Image().src=v.A,T=!0),T||(v.g=d1(v.j,null),v.g.ea(v.A)),v.F=Date.now(),as(v)}h1(f)}function Er(f){f.g&&(nu(f),f.g.cancel(),f.g=null)}function Ao(f){Er(f),f.v&&(c.clearTimeout(f.v),f.v=null),So(f),f.h.cancel(),f.m&&(typeof f.m=="number"&&c.clearTimeout(f.m),f.m=null)}function ps(f){if(!Hl(f.h)&&!f.m){f.m=!0;var v=f.Ea;ht||C(),Et||(ht(),Et=!0),I.add(v,f),f.D=0}}function xo(f,v){return us(f.h)>=f.h.j-(f.m?1:0)?!1:f.m?(f.i=v.G.concat(f.i),!0):f.I==1||f.I==2||f.D>=(f.Sa?0:f.Ta)?!1:(f.m=is(g(f.Ea,f,v),c1(f,f.D)),f.D++,!0)}n.Ea=function(f){if(this.m)if(this.m=null,this.I==1){if(!f){this.V=Math.floor(Math.random()*1e5),f=this.V++;const G=new ki(this,this.j,f);let X=this.o;if(this.U&&(X?(X=k(X),gt(X,this.U)):X=this.U),this.u!==null||this.R||(G.J=X,X=null),this.S)t:{for(var v=0,T=0;T<this.i.length;T++){e:{var b=this.i[T];if("__data__"in b.map&&(b=b.map.__data__,typeof b=="string")){b=b.length;break e}b=void 0}if(b===void 0)break;if(v+=b,v>4096){v=T;break t}if(v===4096||T===this.i.length-1){v=T+1;break t}}v=1e3}else v=1e3;v=a1(this,G,v),T=Ye(this.J),ce(T,"RID",f),ce(T,"CVER",22),this.G&&ce(T,"X-HTTP-Session-Id",this.G),Ra(this,T),X&&(this.R?v="headers="+Ps(vi(X))+"&"+v:this.u&&wa(T,this.u,X)),ql(this.h,G),this.Ra&&ce(T,"TYPE","init"),this.S?(ce(T,"$req",v),ce(T,"SID","null"),G.U=!0,rs(G,T,null)):rs(G,T,v),this.I=2}}else this.I==3&&(f?eu(this,f):this.i.length==0||Hl(this.h)||eu(this))};function eu(f,v){var T;v?T=v.l:T=f.V++;const b=Ye(f.J);ce(b,"SID",f.M),ce(b,"RID",T),ce(b,"AID",f.K),Ra(f,b),f.u&&f.o&&wa(b,f.u,f.o),T=new ki(f,f.j,T,f.D+1),f.u===null&&(T.J=f.o),v&&(f.i=v.G.concat(f.i)),v=a1(f,T,1e3),T.H=Math.round(f.va*.5)+Math.round(f.va*.5*Math.random()),ql(f.h,T),rs(T,b,v)}function Ra(f,v){f.H&&It(f.H,function(T,b){ce(v,b,T)}),f.l&&It({},function(T,b){ce(v,b,T)})}function a1(f,v,T){T=Math.min(f.i.length,T);const b=f.l?g(f.l.Ka,f.l,f):null;t:{var G=f.i;let qt=-1;for(;;){const Pe=["count="+T];qt==-1?T>0?(qt=G[0].g,Pe.push("ofs="+qt)):qt=0:Pe.push("ofs="+qt);let oe=!0;for(let we=0;we<T;we++){var X=G[we].g;const _i=G[we].map;if(X-=qt,X<0)qt=Math.max(0,G[we].g-100),oe=!1;else try{X="req"+X+"_"||"";try{var pt=_i instanceof Map?_i:Object.entries(_i);for(const[ys,Fi]of pt){let Hi=Fi;h(Fi)&&(Hi=fr(Fi)),Pe.push(X+ys+"="+encodeURIComponent(Hi))}}catch(ys){throw Pe.push(X+"type="+encodeURIComponent("_badmap")),ys}}catch{b&&b(_i)}}if(oe){pt=Pe.join("&");break t}}pt=void 0}return f=f.i.splice(0,T),v.G=f,pt}function o1(f){if(!f.g&&!f.v){f.Y=1;var v=f.Da;ht||C(),Et||(ht(),Et=!0),I.add(v,f),f.A=0}}function Na(f){return f.g||f.v||f.A>=3?!1:(f.Y++,f.v=is(g(f.Da,f),c1(f,f.A)),f.A++,!0)}
vendor: 3,870 bytes, line 579
579n.Da=function(){if(this.v=null,l1(this),this.aa&&!(this.P||this.g==null||this.T<=0)){var f=4*this.T;this.j.info("BP detection timer enabled: "+f),this.B=is(g(this.Wa,this),f)}},n.Wa=function(){this.B&&(this.B=null,this.j.info("BP detection timeout reached."),this.j.info("Buffering proxy detected and switch to long-polling!"),this.F=!1,this.P=!0,He(10),Er(this),l1(this))};function nu(f){f.B!=null&&(c.clearTimeout(f.B),f.B=null)}function l1(f){f.g=new ki(f,f.j,"rpc",f.Y),f.u===null&&(f.g.J=f.o),f.g.P=0;var v=Ye(f.na);ce(v,"RID","rpc"),ce(v,"SID",f.M),ce(v,"AID",f.K),ce(v,"CI",f.F?"0":"1"),!f.F&&f.ia&&ce(v,"TO",f.ia),ce(v,"TYPE","xmlhttp"),Ra(f,v),f.u&&f.o&&wa(v,f.u,f.o),f.O&&(f.g.H=f.O);var T=f.g;f=f.ba,T.M=1,T.A=Aa(Ye(v)),T.u=null,T.R=!0,po(T,f)}n.Va=function(){this.C!=null&&(this.C=null,Er(this),Na(this),He(19))};function So(f){f.C!=null&&(c.clearTimeout(f.C),f.C=null)}function u1(f,v){var T=null;if(f.g==v){So(f),nu(f),f.g=null;var b=2}else if(cs(f.h,v))T=v.G,Gl(f.h,v),b=1;else return;if(f.I!=0){if(v.o)if(b==1){T=v.u?v.u.length:0,v=Date.now()-v.F;var G=f.D;b=mo(),an(b,new ns(b,T)),ps(f)}else o1(f);else if(G=v.m,G==3||G==0&&v.X>0||!(b==1&&xo(f,v)||b==2&&Na(f)))switch(T&&T.length>0&&(v=f.h,v.i=v.i.concat(T)),G){case 1:gs(f,5);break;case 4:gs(f,10);break;case 3:gs(f,6);break;default:gs(f,2)}}}function c1(f,v){let T=f.Qa+Math.floor(Math.random()*f.Za);return f.isActive()||(T*=2),T*v}function gs(f,v){if(f.j.info("Error code "+v),v==2){var T=g(f.bb,f),b=f.Ua;const G=!b;b=new ni(b||"//www.google.com/images/cleardot.gif"),c.location&&c.location.protocol=="http"||fn(b,"https"),Aa(b),G?Bi(b.toString(),T):Wl(b.toString(),T)}else He(2);f.I=0,f.l&&f.l.pa(v),h1(f),Ao(f)}n.bb=function(f){f?(this.j.info("Successfully pinged google.com"),He(2)):(this.j.info("Failed to ping google.com"),He(1))};function h1(f){if(f.I=0,f.ja=[],f.l){const v=Yl(f.h);(v.length!=0||f.i.length!=0)&&(N(f.ja,v),N(f.ja,f.i),f.h.i.length=0,R(f.i),f.i.length=0),f.l.oa()}}function f1(f,v,T){var b=T instanceof ni?Ye(T):new ni(T);if(b.g!="")v&&(b.g=v+"."+b.g),dr(b,b.u);else{var G=c.location;b=G.protocol,v=v?v+"."+G.hostname:G.hostname,G=+G.port;const X=new ni(null);b&&fn(X,b),v&&(X.g=v),G&&dr(X,G),T&&(X.h=T),b=X}return T=f.G,v=f.wa,T&&v&&ce(b,T,v),ce(b,"VER",f.ka),Ra(f,b),b}function d1(f,v,T){if(v&&!f.L)throw Error("Can't create secondary domain capable XhrIo object.");return v=f.Aa&&!f.ma?new de(new fs({ab:T})):new de(f.ma),v.Fa(f.L),v}n.isActive=function(){return!!this.l&&this.l.isActive(this)};function m1(){}n=m1.prototype,n.ra=function(){},n.qa=function(){},n.pa=function(){},n.oa=function(){},n.isActive=function(){return!0},n.Ka=function(){};function Tr(){}Tr.prototype.g=function(f,v){return new Ln(f,v)};function Ln(f,v){Fe.call(this),this.g=new _r(v),this.l=f,this.h=v&&v.messageUrlParams||null,f=v&&v.messageHeaders||null,v&&v.clientProtocolHeaderRequired&&(f?f["X-Client-Protocol"]="webchannel":f={"X-Client-Protocol":"webchannel"}),this.g.o=f,f=v&&v.initMessageHeaders||null,v&&v.messageContentType&&(f?f["X-WebChannel-Content-Type"]=v.messageContentType:f={"X-WebChannel-Content-Type":v.messageContentType}),v&&v.sa&&(f?f["X-WebChannel-Client-Profile"]=v.sa:f={"X-WebChannel-Client-Profile":v.sa}),this.g.U=f,(f=v&&v.Qb)&&!O(f)&&(this.g.u=f),this.A=v&&v.supportsCrossDomainXhr||!1,this.v=v&&v.sendRawJson||!1,(v=v&&v.httpSessionIdParam)&&!O(v)&&(this.g.G=v,f=this.h,f!==null&&v in f&&(f=this.h,v in f&&delete f[v])),this.j=new js(this)}_(Ln,Fe),Ln.prototype.m=function(){this.g.l=this.j,this.A&&(this.g.L=!0),this.g.connect(this.l,this.h||void 0)},Ln.prototype.close=function(){tu(this.g)},Ln.prototype.o=function(f){var v=this.g;if(typeof f=="string"){var T={};T.__data__=f,f=T}else this.v&&(T={},T.__data__=fr(f),f=T);v.i.push(new Ge(v.Ya++,f)),v.I==3&&ps(v)},Ln.prototype.N=function(){this.g.l=null,delete this.j,tu(this.g),delete this.g,Ln.Z.N.call(this)};
579function p1(f){gn.call(this),f.__headers__&&(this.headers=f.__headers__,this.statusCode=f.__status__,delete f.__headers__,delete f.__status__);var v=f.__sm__;if(v){t:{for(const T in v){f=T;break t}f=void 0}(this.i=f)&&(f=this.i,v=v!==null&&f in v?v[f]:void 0),this.data=v}else this.data=f}_(p1,gn);function g1(){pi.call(this),this.status=1}_(g1,pi);function js(f){this.g=f}_(js,m1),js.prototype.ra=function(){an(this.g,"a")},js.prototype.qa=function(f){an(this.g,new p1(f))},js.prototype.pa=function(f){an(this.g,new g1)},js.prototype.oa=function(){an(this.g,"b")},Tr.prototype.createWebChannel=Tr.prototype.g,Ln.prototype.send=Ln.prototype.o,Ln.prototype.open=Ln.prototype.m,Ln.prototype.close=Ln.prototype.close,wy=function(){return new Tr},Sy=function(){return mo()},xy=Me,l6={jb:0,mb:1,nb:2,Hb:3,Mb:4,Jb:5,Kb:6,Ib:7,Gb:8,Lb:9,PROXY:10,NOPROXY:11,Eb:12,Ab:13,Bb:14,zb:15,Cb:16,Db:17,fb:18,eb:19,gb:20},Ea.NO_ERROR=0,Ea.TIMEOUT=8,Ea.HTTP_ERROR=6,Hh=Ea,Ul.COMPLETE="complete",Ay=Ul,Kc.EventType=Pi,Pi.OPEN="a",Pi.CLOSE="b",Pi.ERROR="c",Pi.MESSAGE="d",Fe.prototype.listen=Fe.prototype.J,Gu=Kc,de.prototype.listenOnce=de.prototype.K,de.prototype.getLastError=de.prototype.Ha,de.prototype.getLastErrorCode=de.prototype.ya,de.prototype.getStatus=de.prototype.ca,de.prototype.getResponseJson=de.prototype.La,de.prototype.getResponseText=de.prototype.la,de.prototype.send=de.prototype.ea,de.prototype.setWithCredentials=de.prototype.Fa,Ty=de}).apply(typeof bh<"u"?bh:typeof self<"u"?self:typeof window<"u"?window:{});/*! 580 * re2js 581 * RE2JS is the JavaScript port of RE2, a regular expression engine that provides linear time matching 582 * 583 * @version v0.4.3 584 * @author Alexey Vasiliev 585 * @homepage https://github.com/le0pard/re2js#readme 586 * @repository github:le0pard/re2js 587 * @license MIT 588 */const Ne=class Ne{};D(Ne,"FOLD_CASE",1),D(Ne,"LITERAL",2),D(Ne,"CLASS_NL",4),D(Ne,"DOT_NL",8),D(Ne,"ONE_LINE",16),D(Ne,"NON_GREEDY",32),D(Ne,"PERL_X",64),D(Ne,"UNICODE_GROUPS",128),D(Ne,"WAS_DOLLAR",256),D(Ne,"MATCH_NL",Ne.CLASS_NL|Ne.DOT_NL),D(Ne,"PERL",Ne.CLASS_NL|Ne.ONE_LINE|Ne.PERL_X|Ne.UNICODE_GROUPS),D(Ne,"POSIX",0),D(Ne,"UNANCHORED",0),D(Ne,"ANCHOR_START",1),D(Ne,"ANCHOR_BOTH",2);let Tt=Ne;class ${static toUpperCase(t){const e=String.fromCodePoint(t).toUpperCase();if(e.length>1)return t;const s=String.fromCodePoint(e.codePointAt(0)).toLowerCase();return s.length>1||s.codePointAt(0)!==t?t:e.codePointAt(0)}static toLowerCase(t){const e=String.fromCodePoint(t).toLowerCase();if(e.length>1)return t;const s=String.fromCodePoint(e.codePointAt(0)).toUpperCase();return s.length>1||s.codePointAt(0)!==t?t:e.codePointAt(0)}}D($,"CODES",new Map([["\x07",7],["\b",8],[" ",9],[` 589`,10],["\v",11],["\f",12],["\r",13],[" ",32],['"',34],["$",36],["&",38],["(",40],[")",41],["*",42],["+",43],["-",45],[".",46],["0",48],["1",49],["2",50],["3",51],["4",52],["5",53],["6",54],["7",55],["8",56],["9",57],[":",58],["<",60],[">",62],["?",63],["A",65],["B",66],["C",67],["F",70],["P",80],["Q",81],["U",85],["Z",90],["[",91],["\\",92],["]",93],["^",94],["_",95],["a",97],["b",98],["f",102],["i",105],["m",109],["n",110],["r",114],["s",115],["t",116],["v",118],["x",120],["z",122],["{",123],["|",124],["}",125]]));const A=class A{};D(A,"CASE_ORBIT",new Map([[75,107],[107,8490],[8490,75],[83,115],[115,383],[383,83],[181,924],[924,956],[956,181],[197,229],[229,8491],[8491,197],[452,453],[453,454],[454,452],[455,456],[456,457],[457,455],[458,459],[459,460],[460,458],[497,498],[498,499],[499,497],[837,921],[921,953],[953,8126],[8126,837],[914,946],[946,976],[976,914],[917,949],[949,1013],[1013,917],[920,952],[952,977],[977,1012],[1012,920],[922,954],[954,1008],[1008,922],[928,960],[960,982],[982,928],[929,961],[961,1009],[1009,929],[931,962],[962,963],[963,931],[934,966],[966,981],[981,934],[937,969],[969,8486],[8486,937],[1042,1074],[1074,7296],[7296,1042],[1044,1076],[1076,7297],[7297,1044],[1054,1086],[1086,7298],[7298,1054],[1057,1089],[1089,7299],[7299,1057],[1058,1090],[1090,7300],[7300,7301],[7301,1058],[1066,1098],[1098,7302],[7302,1066],[1122,1123],[1123,7303],[7303,1122],[7304,42570],[42570,42571],[42571,7304],[7776,7777],[7777,7835],[7835,7776],[223,7838],[7838,223],[8064,8072],[8072,8064],[8065,8073],[8073,8065],[8066,8074],[8074,8066],[8067,8075],[8075,8067],[8068,8076],[8076,8068],[8069,8077],[8077,8069],[8070,8078],[8078,8070],[8071,8079],[8079,8071],[8080,8088],[8088,8080],[8081,8089],[8089,8081],[8082,8090],[8090,8082],[8083,8091],[8091,8083],[8084,8092],[8092,8084],[8085,8093],[8093,8085],[8086,8094],[8094,8086],[8087,8095],[8095,8087],[8096,8104],[8104,8096],[8097,8105],[8105,8097],[8098,8106],[8106,8098],[8099,8107],[8107,8099],[8100,8108],[8108,8100],[8101,8109],[8109,8101],[8102,8110],[8110,8102],[8103,8111],[8111,8103],[8115,8124],[8124,8115],[8131,8140],[8140,8131],[912,8
589147],[8147,912],[944,8163],[8163,944],[8179,8188],[8188,8179],[64261,64262],[64262,64261],[66560,66600],[66600,66560],[66561,66601],[66601,66561],[66562,66602],[66602,66562],[66563,66603],[66603,66563],[66564,66604],[66604,66564],[66565,66605],[66605,66565],[66566,66606],[66606,66566],[66567,66607],[66607,66567],[66568,66608],[66608,66568],[66569,66609],[66609,66569],[66570,66610],[66610,66570],[66571,66611],[66611,66571],[66572,66612],[66612,66572],[66573,66613],[66613,66573],[66574,66614],[66614,66574],[66575,66615],[66615,66575],[66576,66616],[66616,66576],[66577,66617],[66617,66577],[66578,66618],[66618,66578],[66579,66619],[66619,66579],[66580,66620],[66620,66580],[66581,66621],[66621,66581],[66582,66622],[66622,66582],[66583,66623],[66623,66583],[66584,66624],[66624,66584],[66585,66625],[66625,66585],[66586,66626],[66626,66586],[66587,66627],[66627,66587],[66588,66628],[66628,66588],[66589,66629],[66629,66589],[66590,66630],[66630,66590],[66591,66631],[66631,66591],[66592,66632],[66632,66592],[66593,66633],[66633,66593],[66594,66634],[66634,66594],[66595,66635],[66635,66595],[66596,66636],[66636,66596],[66597,66637],[66637,66597],[66598,66638],[66638,66598],[66599,66639],[66639,66599],[66736,66776],[66776,66736],[66737,66777],[66777,66737],[66738,66778],[66778,66738],[66739,66779],[66779,66739],[66740,66780],[66780,66740],[66741,66781],[66781,66741],[66742,66782],[66782,66742],[66743,66783],[66783,66743],[66744,66784],[66784,66744],[66745,66785],[66785,66745],[66746,66786],[66786,66746],[66747,66787],[66787,66747],[66748,66788],[66788,66748],[66749,66789],[66789,66749],[66750,66790],[66790,66750],[66751,66791],[66791,66751],[66752,66792],[66792,66752],[66753,66793],[66793,66753],[66754,66794],[66794,66754],[66755,66795],[66795,66755],[66756,66796],[66796,66756],[66757,66797],[66797,66757],[66758,66798],[66798,66758],[66759,66799],[66799,66759],[66760,66800],[66800,66760],[66761,66801],[66801,66761],[66762,66802],[66802,66762],[66763,66803],[66803,66763],[66764,66804],[66804,66764],[66765,66805],[66805,66765],[66766,66806],[66806,66766],[66767,66807],[66807,66767],[66768,66808],[66808,66768],[66769,66809],[66809,66769],[66770,66810],[66810,66770],[66771,66811],[66811,66771],[66928,66967],[66967,66928],[66929,66968],[66968,66929],[66930,66969],[66969,66930],[66931,66970],[66970,66931],[66932,66971],[66971,66932],[66933,66972],[66972,66933],[66934,66973],[66973,66934],[66935,66974],[66974,66935],[66936,66975],[66975,66936],[66937,66976],[66976,66937],[66938,66977],[66977,66938],[66940,66979],[66979,66940],[66941,66980],[66980,66941],[66942,66981],[66981,66942],[66943,66982],[66982,66943],[66944,66983],[66983,66944],[66945,66984],[66984,66945],[66946,66985],[66985,66946],[66947,66986],[66986,66947],[66948,66987],[66987,66948],[66949,66988],[66988,66949],[66950,66989],[66989,66950],[66951,66990],[66990,66951],[66952,66991],[66991,66952],[66953,66992],[66992,66953],[66954,66993],[66993,66954],[66956,66995],[66995,66956],[66957,66996],[66996,66957],[66958,66997],[66997,66958],[66959,66998],[66998,66959],[66960,66999],[66999,66960],[66961,67e3],[67e3,66961],[66962,67001],[67001,66962],[66964,67003],[67003,66964],[66965,67004],[67004,66965],[68736,68800],[68800,68736],[68737,68801],[68801,68737],[68738,68802],[68802,68738],[68739,68803],[68803,68739],[68740,68804],[68804,68740],[68741,68805],[68805,68741],[68742,68806],[68806,68742],[68743,68807],[68807,68743],[68744,68808],[68808,68744],[68745,68809],[68809,68745],[68746,68810],[68810,68746],[68747,68811],[68811,68747],[68748,68812],[68812,68748],[68749,68813],[68813,68749],[68750,68814],[68814,68750],[68751,68815],[68815,68751],[68752,68816],[68816,68752],[68753,68817],[68817,68753],[68754,68818],[68818,68754],[68755,68819],[68819,68755],[68756,68820],[68820,68756],[68757,68821],[68821,68757],[68758,68822],[68822,68758],[68759,68823],[68823,68759],[68760,68824],[68824,68760],[68761,68825],[68825,68761],[68762,68826],[68826,68762],[68763,68827],[68827,68763],[68764,68828],[68828,68764],[68765,68829],[68829,68765],[68766,68830],[68830,68766],[68767,68831],[68831,68767],[68768,68832],[68832,68768],[68769,68833],[68833,68769],[68770,68834],[68834,68770],[68771,68835],[68835,68771],[68772,68836],[68836,68772],[68773,68837],[68837,68773],[68774,68838],[68838,68774],[68775,68839],[68839,68775],[68776,68840],[68840,68776],[68777,68841],[68841,68777],[68778,68842],[68842,68778],[68779,68843],[68843,68779],[68780,68844],[68844,68780],[68781,68845],[68845,68781],[68782,68846],[68846,68782],[68783,68847],[68847,68783],[68784,68848],[68848,68784],[68785,68849],[68849,68785],[68786,68850],[68850,68786],[71840,71872],[71872,71840],[71841,71873],[71873,71841],[71842,71874],[71874,71842],[71843,71875],[71875,71843],[71844,71876],[71876,71844],[71845,71877],[71877,71845],[71846,71878],[71878,71846],[71847,71879],[71879,71847],[71848,71880],[71880,71848],[71849,71881],[71881,71849],[71850,71882],[71882,71850],[71851,71883],[71883,71851],[71852,71884],[71884,71852],[71853,71885],[71885,71853],[71854,71886],[71886,71854],[71855,71887],[71887,71855],[71856,71888],[71888,71856],[71857,71889],[71889,71857],[71858,71890],[71890,71858],[71859,71891],[71891,71859],[71860,71892],[71892,71860],[71861,71893],[71893,71861],[71862,71894],[71894,71862],[71863,71895],[71895,71863],[71864,71896],[71896,71864],[71865,71897],[71897,71865],[71866,71898],[71898,71866],[71867,71899],[71899,71867],[71868,71900],[71900,71868],[71869,71901],[71901,71869],[71870,71902],[71902,71870],[71871,71903],[71903,71871],[93760,93792],[93792,93760],[93761,93793],[93793,93761],[93762,93794],[93794,93762],[93763,93795],[93795,93763],[93764,93796],[93796,93764],[93765,93797],[93797,93765],[93766,93798],[93798,93766],[93767,93799],[93799,93767],[93768,93800],[93800,93768],[93769,93801],[93801,93769],[93770,93802],[93802,93770],[937
58971,93803],[93803,93771],[93772,93804],[93804,93772],[93773,93805],[93805,93773],[93774,93806],[93806,93774],[93775,93807],[93807,93775],[93776,93808],[93808,93776],[93777,93809],[93809,93777],[93778,93810],[93810,93778],[93779,93811],[93811,93779],[93780,93812],[93812,93780],[93781,93813],[93813,93781],[93782,93814],[93814,93782],[93783,93815],[93815,93783],[93784,93816],[93816,93784],[93785,93817],[93817,93785],[93786,93818],[93818,93786],[93787,93819],[93819,93787],[93788,93820],[93820,93788],[93789,93821],[93821,93789],[93790,93822],[93822,93790],[93791,93823],[93823,93791],[125184,125218],[125218,125184],[125185,125219],[125219,125185],[125186,125220],[125220,125186],[125187,125221],[125221,125187],[125188,125222],[125222,125188],[125189,125223],[125223,125189],[125190,125224],[125224,125190],[125191,125225],[125225,125191],[125192,125226],[125226,125192],[125193,125227],[125227,125193],[125194,125228],[125228,125194],[125195,125229],[125229,125195],[125196,125230],[125230,125196],[125197,125231],[125231,125197],[125198,125232],[125232,125198],[125199,125233],[125233,125199],[125200,125234],[125234,125200],[125201,125235],[125235,125201],[125202,125236],[125236,125202],[125203,125237],[125237,125203],[125204,125238],[125238,125204],[125205,125239],[125239,125205],[125206,125240],[125240,125206],[125207,125241],[125241,125207],[125208,125242],[125242,125208],[125209,125243],[125243,125209],[125210,125244],[125244,125210],[125211,125245],[125245,125211],[125212,125246],[125246,125212],[125213,125247],[125247,125213],[125214,125248],[125248,125214],[125215,125249],[125249,125215],[125216,125250],[125250,125216],[125217,125251],[125251,125217]])),D(A,"C",[[0,31,1],[127,159,1],[173,888,715],[889,896,7],[897,899,1],[907,909,2],[930,1328,398],[1367,1368,1],[1419,1420,1],[1424,1480,56],[1481,1487,1],[1515,1518,1],[1525,1541,1],[1564,1757,193],[1806,1807,1],[1867,1868,1],[1970,1983,1],[2043,2044,1],[2094,2095,1],[2111,2140,29],[2141,2143,2],[2155,2159,1],[2191,2199,1],[2274,2436,162],[2445,2446,1],[2449,2450,1],[2473,2481,8],[2483,2485,1],[2490,2491,1],[2501,2502,1],[2505,2506,1],[2511,2518,1],[2520,2523,1],[2526,2532,6],[2533,2559,26],[2560,2564,4],[2571,2574,1],[2577,2578,1],[2601,2609,8],[2612,2618,3],[2619,2621,2],[2627,2630,1],[2633,2634,1],[2638,2640,1],[2642,2648,1],[2653,2655,2],[2656,2661,1],[2679,2688,1],[2692,2702,10],[2706,2729,23],[2737,2740,3],[2746,2747,1],[2758,2766,4],[2767,2769,2],[2770,2783,1],[2788,2789,1],[2802,2808,1],[2816,2820,4],[2829,2830,1],[2833,2834,1],[2857,2865,8],[2868,2874,6],[2875,2885,10],[2886,2889,3],[2890,2894,4],[2895,2900,1],[2904,2907,1],[2910,2916,6],[2917,2936,19],[2937,2945,1],[2948,2955,7],[2956,2957,1],[2961,2966,5],[2967,2968,1],[2971,2973,2],[2976,2978,1],[2981,2983,1],[2987,2989,1],[3002,3005,1],[3011,3013,1],[3017,3022,5],[3023,3025,2],[3026,3030,1],[3032,3045,1],[3067,3071,1],[3085,3089,4],[3113,3130,17],[3131,3141,10],[3145,3150,5],[3151,3156,1],[3159,3163,4],[3164,3166,2],[3167,3172,5],[3173,3184,11],[3185,3190,1],[3213,3217,4],[3241,3252,11],[3258,3259,1],[3269,3273,4],[3278,3284,1],[3287,3292,1],[3295,3300,5],[3301,3312,11],[3316,3327,1],[3341,3345,4],[3397,3401,4],[3408,3411,1],[3428,3429,1],[3456,3460,4],[3479,3481,1],[3506,3516,10],[3518,3519,1],[3527,3529,1],[3531,3534,1],[3541,3543,2],[3552,3557,1],[3568,3569,1],[3573,3584,1],[3643,3646,1],[3676,3712,1],[3715,3717,2],[3723,3748,25],[3750,3774,24],[3775,3781,6],[3783,3791,8],[3802,3803,1],[3808,3839,1],[3912,3949,37],[3950,3952,1],[3992,4029,37],[4045,4059,14],[4060,4095,1],[4294,4296,2],[4297,4300,1],[4302,4303,1],[4681,4686,5],[4687,4695,8],[4697,4702,5],[4703,4745,42],[4750,4751,1],[4785,4790,5],[4791,4799,8],[4801,4806,5],[4807,4823,16],[4881,4886,5],[4887,4955,68],[4956,4989,33],[4990,4991,1],[5018,5023,1],[5110,5111,1],[5118,5119,1],[5789,5791,1],[5881,5887,1],[5910,5918,1],[5943,5951,1],[5972,5983,1],[5997,6001,4],[6004,6015,1],[6110,6111,1],[6122,6127,1],[6138,6143,1],[6158,6170,12],[6171,6175,1],[6265,6271,1],[6315,6319,1],[6390,6399,1],[6431,6444,13],[6445,6447,1],[6460,6463,1],[6465,6467,1],[6510,6511,1],[6517,6527,1],[6572,6575,1],[6602,6607,1],[6619,6621,1],[6684,6685,1],[6751,6781,30],[6782,6794,12],[6795,6799,1],[6810,6815,1],[6830,6831,1],[6863,6911,1],[6989,6991,1],[7039,7156,117],[7157,7163,1],[7224,7226,1],[7242,7244,1],[7305,7311,1],[7355,7356,1],[7368,7375,1],[7419,7423,1],[7958,7959,1],[7966,7967,1],[8006,8007,1],[8014,8015,1],[8024,8030,2],[8062,8063,1],[8117,8133,16],[8148,8149,1],[8156,8176,20],[8177,8181,4],[8191,8203,12],[8204,8207,1],[8234,8238,1],[8288,8303,1],[8306,8307,1],[8335,8349,14],[8350,8351,1],[8385,8399,1],[8433,8447,1],[8588,8591,1],[9255,9279,1],[9291,9311,1],[11124,11125,1],[11158,11508,350],[11509,11512,1],[11558,11560,2],[11561,11564,1],[11566,11567,1],[11624,11630,1],[11633,11646,1],[11671,11679,1],[11687,11743,8],[11870,11903,1],[11930,12020,90],[12021,12031,1],[12246,12271,1],[12352,12439,87],[12440,12544,104],[12545,12548,1],[12592,12687,95],[12772,12782,1],[12831,42125,29294],[42126,42127,1],[42183,42191,1],[42540,42559,1],[42744,42751,1],[42955,42959,1],[42962,42964,2],[42970,42993,1],[43053,43055,1],[43066,43071,1],[43128,43135,1],[43206,43213,1],[43226,43231,1],[43348,43358,1],[43389,43391,1],[43470,43482,12],[43483,43485,1],[43519,43575,56],[43576,43583,1],[43598,43599,1],[43610,43611,1],[43715,43738,1],[43767,43776,1],[43783,43784,1],[43791,43792,1],[43799,43807,1],[43815,43823,8],[43884,43887,1],[44014,44015,1],[44026,44031,1],[55204,55215,1],[55239,55242,1],[55292,63743,1],[64110,64111,1],[64218,64255,1],[64263,64274,1],[64280,64284,1],[64311,64317,6],[64319,64325,3],[64451,64466,1],[64912,64913,1],[64968,64974,1],[64976,65007,1],[65050,65055,1],[65107,65127,20],[65132,65135,1],[65141,65277,136],[65278,65280,1],[65471,65473,1],[65480,65481,1],[65488,65489,1],[65496,65497,1],[65501,65503,1],[65511,65519,8],[65520,65531,1],[65534,65535,1],[65548,65575,27],[65595,65598,3],[65614,65615,1],[65630,65663,1],[65787,65791,1],[65795,65798,1],[65844,65846,1],[65935,65949,14],[65950,65951,1],[65953,65999,1],[66046,66175,1],[66205,66207,1],[66257,66271,1],[66300,66303,1],[66340,66348,1],[66379,66383,1],[66427,66431,1],[66462,66500,38],[66501,66503,1],[66518,66559,1],[66718,66719,1],[66730,66735,1],[66772,66775,1],[66812,66815,1],[66856,66863,1],[66916,66926,1],[66939,66955,16],[66963,66966,3],[66978,66994,16],[67002,67005,3],[67006,67071,1],[67383,67391,1],[67414,67423,1],[67432,67455,1],[67462,67505,43],[67515,67583,1],[67590,67591,1],[67593,67638,45],[67641,67643,1],[67645,67646,1],[67670,67743,73],[67744,67750,1],[67760,67807,1],[67827,67830,3],[67831,67834,1],[67868,67870,1],[67898,67902,1],[67904,67967,1],[68024,68027,1],[68048,68049,1],[68100,68103,3],[68104,68107,1],[68116,68120,4],[68150,68151,1],[68155,68158,1],[68169,68175,1],[68185,68191,1],[68256,68287,1],[68327,68330,1],[68343,68351,1],[68406,68408,1],[68438,68439,1],[68467,68471,1],[68498,68504,1],[68509,68520,1],[68528,68607,1],[68681,68735,1],[68787,68799,1],[68851,68857,1],[68904,68911,1],[68922,69215,1],[69247,69290,43],[69294,69295,1],[69298,69372,1],[69416,69423,1],[69466,69487,1],[69514,69551,1],[69580,69599,1],[69623,69631,1],[69710,69713,1],[69750,69758,1],[69821,69827,6],[69828,69839,1],[69865,69871,1],[69882,69887,1],[69941,69960,19],[69961,69967,1],[70007,70015,1],[70112,70133,21],[70134,70143,1],[70162,70210,48],[70211,70271,1],[70279,70281,2],[70286,70302,16],[70314,70319,1],[70379,70383,1],[70394,70399,1],[70404,70413,9],[70414,70417,3],[70418,70441,23],[70449,70452,3],[70458,70469,11],[70470,70473,3],[70474,70478,4],[70479,70481,2],[70482,70486,1],[70488,70492,1],[70500,70501,1],[70509,70511,
5891],[70517,70655,1],[70748,70754,6],[70755,70783,1],[70856,70863,1],[70874,71039,1],[71094,71095,1],[71134,71167,1],[71237,71247,1],[71258,71263,1],[71277,71295,1],[71354,71359,1],[71370,71423,1],[71451,71452,1],[71468,71471,1],[71495,71679,1],[71740,71839,1],[71923,71934,1],[71943,71944,1],[71946,71947,1],[71956,71959,3],[71990,71993,3],[71994,72007,13],[72008,72015,1],[72026,72095,1],[72104,72105,1],[72152,72153,1],[72165,72191,1],[72264,72271,1],[72355,72367,1],[72441,72447,1],[72458,72703,1],[72713,72759,46],[72774,72783,1],[72813,72815,1],[72848,72849,1],[72872,72887,15],[72888,72959,1],[72967,72970,3],[73015,73017,1],[73019,73022,3],[73032,73039,1],[73050,73055,1],[73062,73065,3],[73103,73106,3],[73113,73119,1],[73130,73439,1],[73465,73471,1],[73489,73531,42],[73532,73533,1],[73562,73647,1],[73649,73663,1],[73714,73726,1],[74650,74751,1],[74863,74869,6],[74870,74879,1],[75076,77711,1],[77811,77823,1],[78896,78911,1],[78934,82943,1],[83527,92159,1],[92729,92735,1],[92767,92778,11],[92779,92781,1],[92863,92874,11],[92875,92879,1],[92910,92911,1],[92918,92927,1],[92998,93007,1],[93018,93026,8],[93048,93052,1],[93072,93759,1],[93851,93951,1],[94027,94030,1],[94088,94094,1],[94112,94175,1],[94181,94191,1],[94194,94207,1],[100344,100351,1],[101590,101631,1],[101641,110575,1],[110580,110588,8],[110591,110883,292],[110884,110897,1],[110899,110927,1],[110931,110932,1],[110934,110947,1],[110952,110959,1],[111356,113663,1],[113771,113775,1],[113789,113791,1],[113801,113807,1],[113818,113819,1],[113824,118527,1],[118574,118575,1],[118599,118607,1],[118724,118783,1],[119030,119039,1],[119079,119080,1],[119155,119162,1],[119275,119295,1],[119366,119487,1],[119508,119519,1],[119540,119551,1],[119639,119647,1],[119673,119807,1],[119893,119965,72],[119968,119969,1],[119971,119972,1],[119975,119976,1],[119981,119994,13],[119996,120004,8],[120070,120075,5],[120076,120085,9],[120093,120122,29],[120127,120133,6],[120135,120137,1],[120145,120486,341],[120487,120780,293],[120781,121484,703],[121485,121498,1],[121504,121520,16],[121521,122623,1],[122655,122660,1],[122667,122879,1],[122887,122905,18],[122906,122914,8],[122917,122923,6],[122924,122927,1],[122990,123022,1],[123024,123135,1],[123181,123183,1],[123198,123199,1],[123210,123213,1],[123216,123535,1],[123567,123583,1],[123642,123646,1],[123648,124111,1],[124154,124895,1],[124903,124908,5],[124911,124927,16],[125125,125126,1],[125143,125183,1],[125260,125263,1],[125274,125277,1],[125280,126064,1],[126133,126208,1],[126270,126463,1],[126468,126496,28],[126499,126501,2],[126502,126504,2],[126515,126520,5],[126522,126524,2],[126525,126529,1],[126531,126534,1],[126536,126540,2],[126544,126547,3],[126549,126550,1],[126552,126560,2],[126563,126565,2],[126566,126571,5],[126579,126589,5],[126591,126602,11],[126620,126624,1],[126628,126634,6],[126652,126703,1],[126706,126975,1],[127020,127023,1],[127124,127135,1],[127151,127152,1],[127168,127184,16],[127222,127231,1],[127406,127461,1],[127491,127503,1],[127548,127551,1],[127561,127567,1],[127570,127583,1],[127590,127743,1],[128728,128731,1],[128749,128751,1],[128765,128767,1],[128887,128890,1],[128986,128991,1],[129004,129007,1],[129009,129023,1],[129036,129039,1],[129096,129103,1],[129114,129119,1],[129160,129167,1],[129198,129199,1],[129202,129279,1],[129620,129631,1],[129646,129647,1],[129661,129663,1],[129673,129679,1],[129726,129734,8],[129735,129741,1],[129756,129759,1],[129769,129775,1],[129785,129791,1],[129939,129995,56],[129996,130031,1],[130042,131071,1],[173792,173823,1],[177978,177983,1],[178206,178207,1],[183970,183983,1],[191457,191471,1],[192094,194559,1],[195102,196607,1],[201547,201551,1],[205744,917759,1],[918e3,1114111,1]]),D(A,"Cc",[[0,31,1],[127,159,1]]),D(A,"Cf",[[173,1536,1363],[1537,1541,1],[1564,1757,193],[1807,2192,385],[2193,2274,81],[6158,8203,2045],[8204,8207,1],[8234,8238,1],[8288,8292,1],[8294,8303,1],[65279,65529,250],[65530,65531,1],[69821,69837,16],[78896,78911,1],[113824,113827,1],[119155,119162,1],[917505,917536,31],[917537,917631,1]]),D(A,"Co",[[57344,63743,1],[983040,1048573,1],[1048576,1114109,1]]),D(A,"Cs",[[55296,57343,1]]),D(A,"L",[[65,90,1],[97,122,1],[170,181,11],[186,192,6],[193,214,1],[216,246,1],[248,705,1],[710,721,1],[736,740,1],[748,750,2],[880,884,1],[886,887,1],[890,893,1],[895,902,7],[904,906,1],[908,910,2],[911,929,1],[931,1013,1],[1015,1153,1],[1162,1327,1],[1329,1366,1],[1369,1376,7
589],[1377,1416,1],[1488,1514,1],[1519,1522,1],[1568,1610,1],[1646,1647,1],[1649,1747,1],[1749,1765,16],[1766,1774,8],[1775,1786,11],[1787,1788,1],[1791,1808,17],[1810,1839,1],[1869,1957,1],[1969,1994,25],[1995,2026,1],[2036,2037,1],[2042,2048,6],[2049,2069,1],[2074,2084,10],[2088,2112,24],[2113,2136,1],[2144,2154,1],[2160,2183,1],[2185,2190,1],[2208,2249,1],[2308,2361,1],[2365,2384,19],[2392,2401,1],[2417,2432,1],[2437,2444,1],[2447,2448,1],[2451,2472,1],[2474,2480,1],[2482,2486,4],[2487,2489,1],[2493,2510,17],[2524,2525,1],[2527,2529,1],[2544,2545,1],[2556,2565,9],[2566,2570,1],[2575,2576,1],[2579,2600,1],[2602,2608,1],[2610,2611,1],[2613,2614,1],[2616,2617,1],[2649,2652,1],[2654,2674,20],[2675,2676,1],[2693,2701,1],[2703,2705,1],[2707,2728,1],[2730,2736,1],[2738,2739,1],[2741,2745,1],[2749,2768,19],[2784,2785,1],[2809,2821,12],[2822,2828,1],[2831,2832,1],[2835,2856,1],[2858,2864,1],[2866,2867,1],[2869,2873,1],[2877,2908,31],[2909,2911,2],[2912,2913,1],[2929,2947,18],[2949,2954,1],[2958,2960,1],[2962,2965,1],[2969,2970,1],[2972,2974,2],[2975,2979,4],[2980,2984,4],[2985,2986,1],[2990,3001,1],[3024,3077,53],[3078,3084,1],[3086,3088,1],[3090,3112,1],[3114,3129,1],[3133,3160,27],[3161,3162,1],[3165,3168,3],[3169,3200,31],[3205,3212,1],[3214,3216,1],[3218,3240,1],[3242,3251,1],[3253,3257,1],[3261,3293,32],[3294,3296,2],[3297,3313,16],[3314,3332,18],[3333,3340,1],[3342,3344,1],[3346,3386,1],[3389,3406,17],[3412,3414,1],[3423,3425,1],[3450,3455,1],[3461,3478,1],[3482,3505,1],[3507,3515,1],[3517,3520,3],[3521,3526,1],[3585,3632,1],[3634,3635,1],[3648,3654,1],[3713,3714,1],[3716,3718,2],[3719,3722,1],[3724,3747,1],[3749,3751,2],[3752,3760,1],[3762,3763,1],[3773,3776,3],[3777,3780,1],[3782,3804,22],[3805,3807,1],[3840,3904,64],[3905,3911,1],[3913,3948,1],[3976,3980,1],[4096,4138,1],[4159,4176,17],[4177,4181,1],[4186,4189,1],[4193,4197,4],[4198,4206,8],[4207,4208,1],[4213,4225,1],[4238,4256,18],[4257,4293,1],[4295,4301,6],[4304,4346,1],[4348,4680,1],[4682,4685,1],[4688,4694,1],[4696,4698,2],[4699,4701,1],[4704,4744,1],[4746,4749,1],[4752,4784,1],[4786,4789,1],[4792,4798,1],[4800,4802,2],[4803,4805,1],[4808,4822,1],[4824,4880,1],[4882,4885,1],[4888,4954,1],[4992,5007,1],[5024,5109,1],[5112,5117,1],[5121,5740,1],[5743,5759,1],[5761,5786,1],[5792,5866,1],[5873,5880,1],[5888,5905,1],[5919,5937,1],[5952,5969,1],[5984,5996,1],[5998,6e3,1],[6016,6067,1],[6103,6108,5],[6176,6264,1],[6272,6276,1],[6279,6312,1],[6314,6320,6],[6321,6389,1],[6400,6430,1],[6480,6509,1],[6512,6516,1],[6528,6571,1],[6576,6601,1],[6656,6678,1],[6688,6740,1],[6823,6917,94],[6918,6963,1],[6981,6988,1],[7043,7072,1],[7086,7087,1],[7098,7141,1],[7168,7203,1],[7245,7247,1],[7258,7293,1],[7296,7304,1],[7312,7354,1],[7357,7359,1],[7401,7404,1],[7406,7411,1],[7413,7414,1],[7418,7424,6],[7425,7615,1],[7680,7957,1],[7960,7965,1],[7968,8005,1],[8008,8013,1],[8016,8023,1],[8025,8031,2],[8032,8061,1],[8064,8116,1],[8118,8124,1],[8126,8130,4],[8131,8132,1],[8134,8140,1],[8144,8147,1],[8150,8155,1],[8160,8172,1],[8178,8180,1],[8182,8188,1],[8305,8319,14],[8336,8348,1],[8450,8455,5],[8458,8467,1],[8469,8473,4],[8474,8477,1],[8484,8490,2],[8491,8493,1],[8495,8505,1],[8508,8511,1],[8517,8521,1],[8526,8579,53],[8580,11264,2684],[11265,11492,1],[11499,11502,1],[11506,11507,1],[11520,11557,1],[11559,11565,6],[11568,11623,1],[11631,11648,17],[11649,11670,1],[11680,11686,1],[11688,11694,1],[11696,11702,1],[11704,11710,1],[11712,11718,1],[11720,11726,1],[11728,11734,1],[11736,11742,1],[11823,12293,470],[12294,12337,43],[12338,12341,1],[12347,12348,1],[12353,12438,1],[12445,12447,1],[12449,12538,1],[12540,12543,1],[12549,12591,1],[12593,12686,1],[12704,12735,1],[12784,12799,1],[13312,19903,1],[19968,42124,1],[42192,42237,1],[42240,42508,1],[42512,42527,1],[42538,42539,1],[42560,42606,1],[42623,42653,1],[42656,42725,1],[42775,42783,1],[42786,42888,1],[42891,42954,1],[42960,42961,1],[42963,42965,2],[42966,42969,1],[42994,43009,1],[43011,43013,1],[43015,43018,1],[43020,43042,1],[43072,43123,1],[43138,43187,1],[43250,43255,1],[43259,43261,2],[43262,43274,12],[43275,43301,1],[43312,43334,1],[43360,43388,1],[43396,43442,1],[43471,43488,17],[43489,43492,1],[43494,43503,1],[43514,43518,1],[43520,43560,1],[43584,43586,1],[43588,43595,1],[43616,43638,1],[43642,43646,4],[43647,43695,1],[43697,43701,4],[43702,43705,3],[43706,43709,1],[43712,43714,2],[43739,43741,1],[43744,43754,1],[43762,43764,1],[43777,43782,1],[43785,43790,1],[43793,43798,1],[43808,43814,1],[43816,43822,1],[43824,43866,1],[43868,43881,1],[43888,44002,1],[44032,55203,1],[55216,55238,1],[55243,5
5895291,1],[63744,64109,1],[64112,64217,1],[64256,64262,1],[64275,64279,1],[64285,64287,2],[64288,64296,1],[64298,64310,1],[64312,64316,1],[64318,64320,2],[64321,64323,2],[64324,64326,2],[64327,64433,1],[64467,64829,1],[64848,64911,1],[64914,64967,1],[65008,65019,1],[65136,65140,1],[65142,65276,1],[65313,65338,1],[65345,65370,1],[65382,65470,1],[65474,65479,1],[65482,65487,1],[65490,65495,1],[65498,65500,1],[65536,65547,1],[65549,65574,1],[65576,65594,1],[65596,65597,1],[65599,65613,1],[65616,65629,1],[65664,65786,1],[66176,66204,1],[66208,66256,1],[66304,66335,1],[66349,66368,1],[66370,66377,1],[66384,66421,1],[66432,66461,1],[66464,66499,1],[66504,66511,1],[66560,66717,1],[66736,66771,1],[66776,66811,1],[66816,66855,1],[66864,66915,1],[66928,66938,1],[66940,66954,1],[66956,66962,1],[66964,66965,1],[66967,66977,1],[66979,66993,1],[66995,67001,1],[67003,67004,1],[67072,67382,1],[67392,67413,1],[67424,67431,1],[67456,67461,1],[67463,67504,1],[67506,67514,1],[67584,67589,1],[67592,67594,2],[67595,67637,1],[67639,67640,1],[67644,67647,3],[67648,67669,1],[67680,67702,1],[67712,67742,1],[67808,67826,1],[67828,67829,1],[67840,67861,1],[67872,67897,1],[67968,68023,1],[68030,68031,1],[68096,68112,16],[68113,68115,1],[68117,68119,1],[68121,68149,1],[68192,68220,1],[68224,68252,1],[68288,68295,1],[68297,68324,1],[68352,68405,1],[68416,68437,1],[68448,68466,1],[68480,68497,1],[68608,68680,1],[68736,68786,1],[68800,68850,1],[68864,68899,1],[69248,69289,1],[69296,69297,1],[69376,69404,1],[69415,69424,9],[69425,69445,1],[69488,69505,1],[69552,69572,1],[69600,69622,1],[69635,69687,1],[69745,69746,1],[69749,69763,14],[69764,69807,1],[69840,69864,1],[69891,69926,1],[69956,69959,3],[69968,70002,1],[70006,70019,13],[70020,70066,1],[70081,70084,1],[70106,70108,2],[70144,70161,1],[70163,70187,1],[70207,70208,1],[70272,70278,1],[70280,70282,2],[70283,70285,1],[70287,70301,1],[70303,70312,1],[70320,70366,1],[70405,70412,1],[70415,70416,1],[70419,70440,1],[70442,70448,1],[70450,70451,1],[70453,70457,1],[70461,70480,19],[70493,70497,1],[70656,70708,1],[70727,70730,1],[70751,70753,1],[70784,70831,1],[70852,70853,1],[70855,71040,185],[71041,71086,1],[71128,71131,1],[71168,71215,1],[71236,71296,60],[71297,71338,1],[71352,71424,72],[71425,71450,1],[71488,71494,1],[71680,71723,1],[71840,71903,1],[71935,71942,1],[71945,71948,3],[71949,71955,1],[71957,71958,1],[71960,71983,1],[71999,72001,2],[72096,72103,1],[72106,72144,1],[72161,72163,2],[72192,72203,11],[72204,72242,1],[72250,72272,22],[72284,72329,1],[72349,72368,19],[72369,72440,1],[72704,72712,1],[72714,72750,1],[72768,72818,50],[72819,72847,1],[72960,72966,1],[72968,72969,1],[72971,73008,1],[73030,73056,26],[73057,73061,1],[73063,73064,1],[73066,73097,1],[73112,73440,328],[73441,73458,1],[73474,73476,2],[73477,73488,1],[73490,73523,1],[73648,73728,80],[73729,74649,1],[74880,75075,1],[77712,77808,1],[77824,78895,1],[78913,78918,1],[82944,83526,1],[92160,92728,1],[92736,92766,1],[92784,92862,1],[92880,92909,1],[92928,92975,1],[92992,92995,1],[93027,93047,1],[93053,93071,1],[93760,93823,1],[93952,94026,1],[94032,94099,67],[94100,94111,1],[94176,94177,1],[94179,94208,29],[94209,100343,1],[100352,101589,1],[101632,101640,1],[110576,110579,1],[110581,110587,1],[110589,110590,1],[110592,110882,1],[110898,110928,30],[110929,110930,1],[110933,110948,15],[110949,110951,1],[110960,111355,1],[113664,113770,1],[113776,113788,1],[113792,113800,1],[113808,113817,1],[119808,119892,1],[119894,119964,1],[119966,119967,1],[119970,119973,3],[119974,119977,3],[119978,119980,1],[119982,119993,1],[119995,119997,2],[119998,120003,1],[120005,120069,1],[120071,120074,1],[120077,120084,1],[120086,120092,1],[120094,120121,1],[120123,120126,1],[120128,120132,1],[120134,120138,4],[120139,120144,1],[120146,120485,1],[120488,120512,1],[120514,120538,1],[120540,120570,1],[120572,120596,1],[120598,120628,1],[120630,120654,1],[120656,120686,1],[120688,120712,1],[120714,120744,1],[120746,120770,1],[120772,120779,1],[122624,122654,1],[122661,122666,1],[122928,122989,1],[123136,123180,1],[123191,123197,1],[123214,123536,322],[123537,123565,1],[123584,123627,1],[124112,124139,1],[124896,124902,1],[124904,124907,1],[124909,124910,1],[124912,124926,1],[124928,125124,1],[125184,125251,1],[125259,126464,1205],[126465,126467,1],[126469,126495,1],[126497,126498,1],[126500,126503,3],[126505,126514,1],[126516,126519,1],[126521,126523,2],[126530,126535,5],[126537,126541,2],[126542,126543,1],[126545,126546,1],[126548,126551,3],[126553,126561,2],[126562,126564,2],[126567,126570,1],[126572,126578,1],[126580,126583,1],[126585,126588,1],[126590,126592,2],[126593,126601,1],[126603,126619,1],[126625,126627,1],[126629,126633,1],[126635,126651,1],[131072,173791,1],[173824,177977,1],[177984,178205,1],[178208,183969,1],[183984,191456,1],[191472,192093,1],[194560,195101,1],[196608,201546,1],[201552,205743,1]]),D(A,"foldL",[[837,837,1]]),D(A,"Ll",[[97,122,1],[181,223,42],[224,246,1],[248,255,1],[257,311,2],[312,328,2],[329,375,2],[378,382,2],[383,384,1],[387,389,2],[392,396,4],[397,402,5],[405,409,4],[410,411,1],[414,417,3],[419,421,2],[424,426,2],[427,429,2],[432,436,4],[438,441,3],[442,445,3],[446,447,1],[454,460,3],[462,476,2],[477,495,2],[496,499,3],[501,505,4],[507,563,2],[564,569,1],[572,575,3],[576,578,2],[583,591,2],[592,659,1],[661,687,1],[881,883,2],[887,891,4],[892,893,1],[912,940,28],[941,974,1],[976,977,1],[981,983,1],[985,1007,2],[1008,1011,1],[1013,1019,3],[1020,1072,52],[1073,1119,1],[1121,1153,2],[1163,1215,2],[1218,1230,2],[1231,1327,2],[1376,1416,1],[4304,4346,1],[4349,4351,1],[5112,5117,1],[7296,7304,1],[7424,7467,1],[7531,7543,1],[7545,7578,1],[7681,7829,2],[7830,7837,1],[7839,7935,2],[7936,7943,1],[7952,7957,1],[7968,7975,1],[7984,7991,1],[8e3,8005,1],[8016,8023,1],[8032,8039,1],[8048,8061,1],[8064,8071,1],[8080,8087,1],[8096,8103,1],[8112,8116,1],[8118,8119,1],[8126,8130,4],[8131,8132,1],[8134,8135,1],[8144,8147,1],[8150,8151,1],[8160,8167,1],[8178,8180,1],[8182,8183,1],[8458,8462,4],[8463,8467,4],[8495,8505,5],[8508,8509,1],[8518,8521,1],[8526,8580,54],[11312,11359,1],[11361,11365,4],[11366,11372,2],[11377,11379,2],[11380,11382,2],[11383,11387,1],[11393,11491,2],[11492,11500,8],[11502,11507,5],[11520,11557,1],[11559,11565,6],[42561,42605,2],[42625,42651,2],[42787,42799,2],[42800,42801,1],[42803,42865,2],[42866,42872,1],[42874,42876,2],[42879,42887,2],[42892,42894,2],[42897,42899,2],[42900,42901,1],[42903,42921,2],[42927,42933,6],[42935,42947,2],[42952,42954,2],[42961,42969,2],[42998,43002,4],[43824,43866,1],[43872,43880,1],[43888,43967,1],[64256,64262,1],[64275,64279,1],[65345,65370,1],[66600,66639,1],[66776,66811,1],[66967,66977,1],[66979,66993,1],[66995,67001,1],[67003,67004,1],[68800,68850,1],[71872,71903,1],[93792,93823,1],[119834,119859,1],[119886,119892,1],[119894,119911,1],[119938,119963,1],[119990,119993,1],[119995,119997,2],[119998,120003,1],[120005,120015,1],[120042,120067,1],[120094,120119,1],[120146,120171,1],[120198,120223,1],[120250,12
5890275,1],[120302,120327,1],[120354,120379,1],[120406,120431,1],[120458,120485,1],[120514,120538,1],[120540,120545,1],[120572,120596,1],[120598,120603,1],[120630,120654,1],[120656,120661,1],[120688,120712,1],[120714,120719,1],[120746,120770,1],[120772,120777,1],[120779,122624,1845],[122625,122633,1],[122635,122654,1],[122661,122666,1],[125218,125251,1]]),D(A,"foldLl",[[65,90,1],[192,214,1],[216,222,1],[256,302,2],[306,310,2],[313,327,2],[330,376,2],[377,381,2],[385,386,1],[388,390,2],[391,393,2],[394,395,1],[398,401,1],[403,404,1],[406,408,1],[412,413,1],[415,416,1],[418,422,2],[423,425,2],[428,430,2],[431,433,2],[434,435,1],[437,439,2],[440,444,4],[452,453,1],[455,456,1],[458,459,1],[461,475,2],[478,494,2],[497,498,1],[500,502,2],[503,504,1],[506,562,2],[570,571,1],[573,574,1],[577,579,2],[580,582,1],[584,590,2],[837,880,43],[882,886,4],[895,902,7],[904,906,1],[908,910,2],[911,913,2],[914,929,1],[931,939,1],[975,984,9],[986,1006,2],[1012,1015,3],[1017,1018,1],[1021,1071,1],[1120,1152,2],[1162,1216,2],[1217,1229,2],[1232,1326,2],[1329,1366,1],[4256,4293,1],[4295,4301,6],[5024,5109,1],[7312,7354,1],[7357,7359,1],[7680,7828,2],[7838,7934,2],[7944,7951,1],[7960,7965,1],[7976,7983,1],[7992,7999,1],[8008,8013,1],[8025,8031,2],[8040,8047,1],[8072,8079,1],[8088,8095,1],[8104,8111,1],[8120,8124,1],[8136,8140,1],[8152,8155,1],[8168,8172,1],[8184,8188,1],[8486,8490,4],[8491,8498,7],[8579,11264,2685],[11265,11311,1],[11360,11362,2],[11363,11364,1],[11367,11373,2],[11374,11376,1],[11378,11381,3],[11390,11392,1],[11394,11490,2],[11499,11501,2],[11506,42560,31054],[42562,42604,2],[42624,42650,2],[42786,42798,2],[42802,42862,2],[42873,42877,2],[42878,42886,2],[42891,42893,2],[42896,42898,2],[42902,42922,2],[42923,42926,1],[42928,42932,1],[42934,42948,2],[42949,42951,1],[42953,42960,7],[42966,42968,2],[42997,65313,22316],[65314,65338,1],[66560,66599,1],[66736,66771,1],[66928,66938,1],[66940,66954,1],[66956,66962,1],[66964,66965,1],[68736,68786,1],[71840,71871,1],[93760,93791,1],[125184,125217,1]]),D(A,"Lm",[[688,705,1],[710,721,1],[736,740,1],[748,750,2],[884,890,6],[1369,1600,231],[1765,1766,1],[2036,2037,1],[2042,2074,32],[2084,2088,4],[2249,2417,168],[3654,3782,128],[4348,6103,1755],[6211,6823,612],[7288,7293,1],[7468,7530,1],[7544,7579,35],[7580,7615,1],[8305,8319,14],[8336,8348,1],[11388,11389,1],[11631,11823,192],[12293,12337,44],[12338,12341,1],[12347,12445,98],[12446,12540,94],[12541,12542,1],[40981,42232,1251],[42233,42237,1],[42508,42623,115],[42652,42653,1],[42775,42783,1],[42864,42888,24],[42994,42996,1],[43e3,43001,1],[43471,43494,23],[43632,43741,109],[43763,43764,1],[43868,43871,1],[43881,65392,21511],[65438,65439,1],[67456,67461,1],[67463,67504,1],[67506,67514,1],[92992,92995,1],[94099,94111,1],[94176,94177,1],[94179,110576,16397],[110577,110579,1],[110581,110587,1],[110589,110590,1],[122928,122989,1],[123191,123197,1],[124139,125259,1120]]),D(A,"Lo",[[170,186,16],[443,448,5],[449,451,1],[660,1488,828],[1489,1514,1],[1519,1522,1],[1568,1599,1],[1601,1610,1],[1646,1647,1],[1649,1747,1],[1749,1774,25],[1775,1786,11],[1787,1788,1],[1791,1808,17],[1810,1839,1],[1869,1957,1],[1969,1994,25],[1995,2026,1],[2048,2069,1],[2112,2136,1],[2144,2154,1],[2160,2183,1],[2185,2190,1],[2208,2248,1],[2308,2361,1],[2365,2384,19],[2392,2401,1],[2418,2432,1],[2437,2444,1],[2447,2448,1],[2451,2472,1],[2474,2480,1],[2482,2486,4],[2487,2489,1],[2493,2510,17],[2524,2525,1],[2527,2529,1],[2544,2545,1],[2556,2565,9],[2566,2570,1],[2575,2576,1],[2579,2600,1],[2602,2608,1],[2610,2611,1],[2613,2614,1],[2616,2617,1],[2649,2652,1],[2654,2674,20],[2675,2676,1],[2693,2701,1],[2703,2705,1],[2707,2728,1],[2730,2736,1],[2738,2739,1],[2741,2745,1],[2749,2768,19],[2784,2785,1],[2809,2821,12],[2822,2828,1],[2831,2832,1],[2835,2856,1],[2858,2864,1],[2866,2867,1],[2869,2873,1],[2877,2908,31],[2909,2911,2],[2912,2913,1],[2929,2947,18],[2949,2954,1],[2958,2960,1],[2962,2965,1],[2969,2970,1],[2972,2974,2],[2975,2979,4],[2980,2984,4],[2985,2986,1],[2990,3001,1],[3024,3077,53],[3078,3084,1],[3086,3088,1],[3090,3112,1],[3114,3129,1],[3133,3160,27],[3161,3162,1],[3165,3168,3],[3169,3200,31],[3205,3212,1],[3214,3216,1],[3218,3240,1],[3242,3251,1],[3253,3257,1],[3261,3293,32],[3294,3296,2],[3297,3313,16],[3314,3332,18],[3333,3340,1],[3342,3344,1],[3346,3386,1],[3389,3406,17],[3412,3414,1],[3423,3425,1],[3450,3455,1],[3461,3478,1],[3482,3505,1],[3507,3515,1],[3517,3520,3],[3521,3526,1],[3585,3632,1],[3634,3635,1],[3648,3653,1],[3713,3714,1],[3716,3718,2],[3719,3722,1],[3724,3747,1],[3749,3751,2],[3752,3760,1],[3762,3763,1],[3773,3776,3],[3777,3780,1],[3804,3807,1],[3840,3904,64],[3905,3911,1],[3913,3948,1],[3976,3980,1],[4096,4138,1],[4159,4176,17],[4177,4181,1],[4186,4189,1],[4193,4197,4],[4198,4206,8],[4207,4208,1],[4213,4225,1],[4238,4352,114],[4353,4680,1],[4682,4685,1],[4688,4694,1],[4696,4698,2],[4699,4701,1],[4704,4744,1],[4746,4749,1],[4752,4784,1],[4786,4789,1],[4792,4798,1],[4800,4802,2],[4803,4805,1],[4808,4822,1],[4824,4880,1],[4882,4885,1],[4888,4954,1],[4992,5007,1],[5121,5740,1],[5743,5759,1],[5761,5786,1],[5792,5866,1],[5873,5880,1],[5888,5905,1],[5919,5937,1],[5952,5969,1],[5984,5996,1],[5998,6e3,1],[6016,6067,1],[6108,6176,68],[6177,6210,1],[6212,6264,1],[6272,6276,1],[6279,6312,1],[6314,6320,6],[6321,6389,1],[6400,6430,1],[6480,6509,1],[6512,6516,1],[6528,6571,1],[6576,6601,1],[6656,6678,1],[6688,6740,1],[6917,6963,1],[6981,6988,1],[7043,7072,1],[7086,7087,1],[7098,7141,1],[7168,7203,1],[7245,7247,1],[7258,7287,1],[7401,7404,1],[7406,7411,1],[7413,7414,1],[7418,8501,1083],[8502,8504,1],[11568,11623,1],[11648,11670,1],[11680,11686,1],[11688,11694,1],[11696,11702,1],[11704,11710,1],[11712,11718,1],[11720,11726,1],[11728,11734,1],[11736,11
589742,1],[12294,12348,54],[12353,12438,1],[12447,12449,2],[12450,12538,1],[12543,12549,6],[12550,12591,1],[12593,12686,1],[12704,12735,1],[12784,12799,1],[13312,19903,1],[19968,40980,1],[40982,42124,1],[42192,42231,1],[42240,42507,1],[42512,42527,1],[42538,42539,1],[42606,42656,50],[42657,42725,1],[42895,42999,104],[43003,43009,1],[43011,43013,1],[43015,43018,1],[43020,43042,1],[43072,43123,1],[43138,43187,1],[43250,43255,1],[43259,43261,2],[43262,43274,12],[43275,43301,1],[43312,43334,1],[43360,43388,1],[43396,43442,1],[43488,43492,1],[43495,43503,1],[43514,43518,1],[43520,43560,1],[43584,43586,1],[43588,43595,1],[43616,43631,1],[43633,43638,1],[43642,43646,4],[43647,43695,1],[43697,43701,4],[43702,43705,3],[43706,43709,1],[43712,43714,2],[43739,43740,1],[43744,43754,1],[43762,43777,15],[43778,43782,1],[43785,43790,1],[43793,43798,1],[43808,43814,1],[43816,43822,1],[43968,44002,1],[44032,55203,1],[55216,55238,1],[55243,55291,1],[63744,64109,1],[64112,64217,1],[64285,64287,2],[64288,64296,1],[64298,64310,1],[64312,64316,1],[64318,64320,2],[64321,64323,2],[64324,64326,2],[64327,64433,1],[64467,64829,1],[64848,64911,1],[64914,64967,1],[65008,65019,1],[65136,65140,1],[65142,65276,1],[65382,65391,1],[65393,65437,1],[65440,65470,1],[65474,65479,1],[65482,65487,1],[65490,65495,1],[65498,65500,1],[65536,65547,1],[65549,65574,1],[65576,65594,1],[65596,65597,1],[65599,65613,1],[65616,65629,1],[65664,65786,1],[66176,66204,1],[66208,66256,1],[66304,66335,1],[66349,66368,1],[66370,66377,1],[66384,66421,1],[66432,66461,1],[66464,66499,1],[66504,66511,1],[66640,66717,1],[66816,66855,1],[66864,66915,1],[67072,67382,1],[67392,67413,1],[67424,67431,1],[67584,67589,1],[67592,67594,2],[67595,67637,1],[67639,67640,1],[67644,67647,3],[67648,67669,1],[67680,67702,1],[67712,67742,1],[67808,67826,1],[67828,67829,1],[67840,67861,1],[67872,67897,1],[67968,68023,1],[68030,68031,1],[68096,68112,16],[68113,68115,1],[68117,68119,1],[68121,68149,1],[68192,68220,1],[68224,68252,1],[68288,68295,1],[68297,68324,1],[68352,68405,1],[68416,68437,1],[68448,68466,1],[68480,68497,1],[68608,68680,1],[68864,68899,1],[69248,69289,1],[69296,69297,1],[69376,69404,1],[69415,69424,9],[69425,69445,1],[69488,69505,1],[69552,69572,1],[69600,69622,1],[69635,69687,1],[69745,69746,1],[69749,69763,14],[69764,69807,1],[69840,69864,1],[69891,69926,1],[69956,69959,3],[69968,70002,1],[70006,70019,13],[70020,70066,1],[70081,70084,1],[70106,70108,2],[70144,70161,1],[70163,70187,1],[70207,70208,1],[70272,70278,1],[70280,70282,2],[70283,70285,1],[70287,70301,1],[70303,70312,1],[70320,70366,1],[70405,70412,1],[70415,70416,1],[70419,70440,1],[70442,70448,1],[70450,70451,1],[70453,70457,1],[70461,70480,19],[70493,70497,1],[70656,70708,1],[70727,70730,1],[70751,70753,1],[70784,70831,1],[70852,70853,1],[70855,71040,185],[71041,71086,1],[71128,71131,1],[71168,71215,1],[71236,71296,60],[71297,71338,1],[71352,71424,72],[71425,71450,1],[71488,71494,1],[71680,71723,1],[71935,71942,1],[71945,71948,3],[71949,71955,1],[71957,71958,1],[71960,71983,1],[71999,72001,2],[72096,72103,1],[72106,72144,1],[72161,72163,2],[72192,72203,11],[72204,72242,1],[72250,72272,22],[72284,72329,1],[72349,72368,19],[72369,72440,1],[72704,72712,1],[72714,72750,1],[72768,72818,50],[72819,72847,1],[72960,72966,1],[72968,72969,1],[72971,73008,1],[73030,73056,26],[73057,73061,1],[73063,73064,1],[73066,73097,1],[73112,73440,328],[73441,73458,1],[73474,73476,2],[73477,73488,1],[73490,73523,1],[73648,73728,80],[73729,74649,1],[74880,75075,1],[77712,77808,1],[77824,78895,1],[78913,78918,1],[82944,83526,1],[92160,92728,1],[92736,92766,1],[92784,92862,1],[92880,92909,1],[92928,92975,1],[93027,93047,1],[93053,93071,1],[93952,94026,1],[94032,94208,176],[94209,100343,1],[100352,101589,1],[101632,101640,1],[110592,110882,1],[110898,110928,30],[110929,110930,1],[110933,110948,15],[110949,110951,1],[110960,111355,1],[113664,113770,1],[113776,113788,1],[113792,113800,1],[113808,113817,1],[122634,123136,502],[123137,123180,1],[123214,123536,322],[123537,123565,1],[123584,123627,1],[124112,124138,1],[124896,124902,1],[124904,124907,1],[124909,124910,1],[124912,124926,1],[124928,125124,1],[126464,126467,1],[126469,126495,1],[126497,126498,1],[126500,126503,3],[126505,126514,1],[126516,126519,1],[126521,126523,2],[126530,126535,5],[126537,126541,2],[126542,126543,1],[126545,126546,1],[126548,126551,3],[126553,126561,2],[126562,126564,2],[126567,126570,1],[126572,126578,1],[126580,126583,1],[126585,126588,1],[126590,126592,2],[126593,126601,1],[126603,126619,1],[126625,126627,1],[126629,126633,1],[126635,126651,1],[131072,173791,1],[173824,177977,1],[177984,178205,1],[178208,183969,1],[183984,191456,1],[191472,192093,1],[194560,195101,1],[196608,201546,1],[201552,205743,1]]),D(A,"Lt",[[453,459,3],[498,8072,7574],[8073,8079,1],[8088,8095,1],[8104,8111,1],[8124,8140,16],[8188,8188,1]]),D(A,"foldLt",[[452,454,2],[455,457,2],[458,460,2],[497,499,2],[8064,8071,1],[8080,8087,1],[8096,8103,1],[8115,8131,16],[8179,8179,1]]),D(A,"Lu",[[65,90,1],[192,214,1],[216,222,1],[256,310,2],[313,327,2],[330,376,2],[377,381,2],[385,386,1],[388,390,2],[391,393,2],[394,395,1],[398,401,1],[403,404,1],[406,408,1],[412,413,1],[415,416,1],[418,422,2],[423,425,2],[428,430,2],[431,433,2],[434,435,1],[437,439,2],[440,444,4],[452,461,3],[463,475,2],[478,494,2],[497,500,3],[502,504,1],[506,562,2],[570,571,1],[573,574,1],[577,579,2],[580,582,1],[584,590,2],[880,882,2],[886,895,9],[902,904,2],[905,906,1],[908,910,2],[911,913,2],[914,929,1],[931,939,1],[975,978,3],[979,980,1],[984,1006,2],[1012,1015,3],[1017,1018,1],[1021,10
58971,1],[1120,1152,2],[1162,1216,2],[1217,1229,2],[1232,1326,2],[1329,1366,1],[4256,4293,1],[4295,4301,6],[5024,5109,1],[7312,7354,1],[7357,7359,1],[7680,7828,2],[7838,7934,2],[7944,7951,1],[7960,7965,1],[7976,7983,1],[7992,7999,1],[8008,8013,1],[8025,8031,2],[8040,8047,1],[8120,8123,1],[8136,8139,1],[8152,8155,1],[8168,8172,1],[8184,8187,1],[8450,8455,5],[8459,8461,1],[8464,8466,1],[8469,8473,4],[8474,8477,1],[8484,8490,2],[8491,8493,1],[8496,8499,1],[8510,8511,1],[8517,8579,62],[11264,11311,1],[11360,11362,2],[11363,11364,1],[11367,11373,2],[11374,11376,1],[11378,11381,3],[11390,11392,1],[11394,11490,2],[11499,11501,2],[11506,42560,31054],[42562,42604,2],[42624,42650,2],[42786,42798,2],[42802,42862,2],[42873,42877,2],[42878,42886,2],[42891,42893,2],[42896,42898,2],[42902,42922,2],[42923,42926,1],[42928,42932,1],[42934,42948,2],[42949,42951,1],[42953,42960,7],[42966,42968,2],[42997,65313,22316],[65314,65338,1],[66560,66599,1],[66736,66771,1],[66928,66938,1],[66940,66954,1],[66956,66962,1],[66964,66965,1],[68736,68786,1],[71840,71871,1],[93760,93791,1],[119808,119833,1],[119860,119885,1],[119912,119937,1],[119964,119966,2],[119967,119973,3],[119974,119977,3],[119978,119980,1],[119982,119989,1],[120016,120041,1],[120068,120069,1],[120071,120074,1],[120077,120084,1],[120086,120092,1],[120120,120121,1],[120123,120126,1],[120128,120132,1],[120134,120138,4],[120139,120144,1],[120172,120197,1],[120224,120249,1],[120276,120301,1],[120328,120353,1],[120380,120405,1],[120432,120457,1],[120488,120512,1],[120546,120570,1],[120604,120628,1],[120662,120686,1],[120720,120744,1],[120778,125184,4406],[125185,125217,1]]),D(A,"Upper",A.Lu),D(A,"foldLu",[[97,122,1],[181,223,42],[224,246,1],[248,255,1],[257,303,2],[307,311,2],[314,328,2],[331,375,2],[378,382,2],[383,384,1],[387,389,2],[392,396,4],[402,405,3],[409,410,1],[414,417,3],[419,421,2],[424,429,5],[432,436,4],[438,441,3],[445,447,2],[453,454,1],[456,457,1],[459,460,1],[462,476,2],[477,495,2],[498,499,1],[501,505,4],[507,543,2],[547,563,2],[572,575,3],[576,578,2],[583,591,2],[592,596,1],[598,599,1],[601,603,2],[604,608,4],[609,613,2],[614,616,2],[617,620,1],[623,625,2],[626,629,3],[637,640,3],[642,643,1],[647,652,1],[658,669,11],[670,837,167],[881,883,2],[887,891,4],[892,893,1],[940,943,1],[945,974,1],[976,977,1],[981,983,1],[985,1007,2],[1008,1011,1],[1013,1019,3],[1072,1119,1],[1121,1153,2],[1163,1215,2],[1218,1230,2],[1231,1327,2],[1377,1414,1],[4304,4346,1],[4349,4351,1],[5112,5117,1],[7296,7304,1],[7545,7549,4],[7566,7681,115],[7683,7829,2],[7835,7841,6],[7843,7935,2],[7936,7943,1],[7952,7957,1],[7968,7975,1],[7984,7991,1],[8e3,8005,1],[8017,8023,2],[8032,8039,1],[8048,8061,1],[8112,8113,1],[8126,8144,18],[8145,8160,15],[8161,8165,4],[8526,8580,54],[11312,11359,1],[11361,11365,4],[11366,11372,2],[11379,11382,3],[11393,11491,2],[11500,11502,2],[11507,11520,13],[11521,11557,1],[11559,11565,6],[42561,42605,2],[42625,42651,2],[42787,42799,2],[42803,42863,2],[42874,42876,2],[42879,42887,2],[42892,42897,5],[42899,42900,1],[42903,42921,2],[42933,42947,2],[42952,42954,2],[42961,42967,6],[42969,42998,29],[43859,43888,29],[43889,43967,1],[65345,65370,1],[66600,66639,1],[66776,66811,1],[66967,66977,1],[66979,66993,1],[66995,67001,1],[67003,67004,1],[68800,68850,1],[71872,71903,1],[93792,93823,1],[125218,125251,1]]),D(A,"M",[[768,879,1],[1155,1161,1],[1425,1469,1],[1471,1473,2],[1474,1476,2],[1477,1479,2],[1552,1562,1],[1611,1631,1],[1648,1750,102],[1751,1756,1],[1759,1764,1],[1767,1768,1],[1770,1773,1],[1809,1840,31],[1841,1866,1],[1958,1968,1],[2027,2035,1],[2045,2070,25],[2071,2073,1],[2075,2083,1],[2085,2087,1],[2089,2093,1],[2137,2139,1],[2200,2207,1],[2250,2273,1],[2275,2307,1],[2362,2364,1],[2366,2383,1],[2385,2391,1],[2402,2403,1],[2433,2435,1],[2492,2494,2],[2495,2500,1],[2503,2504,1],[2507,2509,1],[2519,2530,11],[2531,2558,27],[2561,2563,1],[2620,2622,2],[2623,2626,1],[2631,2632,1],[2635,2637,1],[2641,2672,31],[2673,2677,4],[2689,2691,1],[2748,2750,2],[2751,2757,1],[2759,2761,1],[2763,2765,1],[2786,2787,1],[2810,2815,1],[2817,2819,1],[2876,2878,2],[2879,2884,1],[2887,2888,1],[2891,2893,1],[2901,2903,1],[2914,2915,1],[2946,3006,60],[3007,3010,1],[3014,3016,1],[3018,3021,1],[3031,3072,41],[3073,3076,1],[3132,3134,2],[3135,3140,1],[3142,3144,1],[3146,3149,1],[3157,3158,1],[3170,3171,1],[3201,3203,1],[3260,3262,2],[3263,3268,1],[3270,3272,1],[3274,3277,1],[3285,3286,1],[3298,3299,1],[3315,3328,13],[3329,3331,1],[3387,3388,1],[3390,3396,1],[3398,3400,1],[3402,3405,1],[3415,3426,11],[3427,3457,30],[3458,3459,1],[3530,3535,5],[3536,3540,1],[3542,3544,2],[3545,3551,1],[3570,3571,1],[3633,3636,3],[3637,3642,1],[3655,3662,1],[3761,3764,3],[3765,3772,1],[3784,3790,1],[3864,3865,1],[3893,3897,2],[3902,3903,1],[3953,3972,1],[3974,3975,1],[3981,3991,1],[3993,4028,1],[4038,4139,101],[4140,4158,1],[4182,4185,1],[4190,4192,1],[4194,4196,1],[4199,4205,1],[4209,4212,1],[4226,4237,1],[4239,4250,11],[4251,4253,1],[4957,4959,1],[5906,5909,1],[5938,5940,1],[5970,5971,1],[6002,6003,1],[6068,6099,1],[6109,6155,46],[6156,6157,1],[6159,6277,118],[6278,6313,35],[6432,6443,1],[6448,6459,1],[6679,6683,1],[6741,6750,1],[6752,6780,1],[6783,6832,49],[6833,6862,1],[6912,6916,1],[6964,6980,1],[7019,7027,1],[7040,7042,1],[7073,7085,
5891],[7142,7155,1],[7204,7223,1],[7376,7378,1],[7380,7400,1],[7405,7412,7],[7415,7417,1],[7616,7679,1],[8400,8432,1],[11503,11505,1],[11647,11744,97],[11745,11775,1],[12330,12335,1],[12441,12442,1],[42607,42610,1],[42612,42621,1],[42654,42655,1],[42736,42737,1],[43010,43014,4],[43019,43043,24],[43044,43047,1],[43052,43136,84],[43137,43188,51],[43189,43205,1],[43232,43249,1],[43263,43302,39],[43303,43309,1],[43335,43347,1],[43392,43395,1],[43443,43456,1],[43493,43561,68],[43562,43574,1],[43587,43596,9],[43597,43643,46],[43644,43645,1],[43696,43698,2],[43699,43700,1],[43703,43704,1],[43710,43711,1],[43713,43755,42],[43756,43759,1],[43765,43766,1],[44003,44010,1],[44012,44013,1],[64286,65024,738],[65025,65039,1],[65056,65071,1],[66045,66272,227],[66422,66426,1],[68097,68099,1],[68101,68102,1],[68108,68111,1],[68152,68154,1],[68159,68325,166],[68326,68900,574],[68901,68903,1],[69291,69292,1],[69373,69375,1],[69446,69456,1],[69506,69509,1],[69632,69634,1],[69688,69702,1],[69744,69747,3],[69748,69759,11],[69760,69762,1],[69808,69818,1],[69826,69888,62],[69889,69890,1],[69927,69940,1],[69957,69958,1],[70003,70016,13],[70017,70018,1],[70067,70080,1],[70089,70092,1],[70094,70095,1],[70188,70199,1],[70206,70209,3],[70367,70378,1],[70400,70403,1],[70459,70460,1],[70462,70468,1],[70471,70472,1],[70475,70477,1],[70487,70498,11],[70499,70502,3],[70503,70508,1],[70512,70516,1],[70709,70726,1],[70750,70832,82],[70833,70851,1],[71087,71093,1],[71096,71104,1],[71132,71133,1],[71216,71232,1],[71339,71351,1],[71453,71467,1],[71724,71738,1],[71984,71989,1],[71991,71992,1],[71995,71998,1],[72e3,72002,2],[72003,72145,142],[72146,72151,1],[72154,72160,1],[72164,72193,29],[72194,72202,1],[72243,72249,1],[72251,72254,1],[72263,72273,10],[72274,72283,1],[72330,72345,1],[72751,72758,1],[72760,72767,1],[72850,72871,1],[72873,72886,1],[73009,73014,1],[73018,73020,2],[73021,73023,2],[73024,73029,1],[73031,73098,67],[73099,73102,1],[73104,73105,1],[73107,73111,1],[73459,73462,1],[73472,73473,1],[73475,73524,49],[73525,73530,1],[73534,73538,1],[78912,78919,7],[78920,78933,1],[92912,92916,1],[92976,92982,1],[94031,94033,2],[94034,94087,1],[94095,94098,1],[94180,94192,12],[94193,113821,19628],[113822,118528,4706],[118529,118573,1],[118576,118598,1],[119141,119145,1],[119149,119154,1],[119163,119170,1],[119173,119179,1],[119210,119213,1],[119362,119364,1],[121344,121398,1],[121403,121452,1],[121461,121476,15],[121499,121503,1],[121505,121519,1],[122880,122886,1],[122888,122904,1],[122907,122913,1],[122915,122916,1],[122918,122922,1],[123023,123184,161],[123185,123190,1],[123566,123628,62],[123629,123631,1],[124140,124143,1],[125136,125142,1],[125252,125258,1],[917760,917999,1]]),D(A,"foldM",[[921,953,32],[8126,8126,1]]),D(A,"Mc",[[2307,2363,56],[2366,2368,1],[2377,2380,1],[2382,2383,1],[2434,2435,1],[2494,2496,1],[2503,2504,1],[2507,2508,1],[2519,2563,44],[2622,2624,1],[2691,2750,59],[2751,2752,1],[2761,2763,2],[2764,2818,54],[2819,2878,59],[2880,2887,7],[2888,2891,3],[2892,2903,11],[3006,3007,1],[3009,3010,1],[3014,3016,1],[3018,3020,1],[3031,3073,42],[3074,3075,1],[3137,3140,1],[3202,3203,1],[3262,3264,2],[3265,3268,1],[3271,3272,1],[3274,3275,1],[3285,3286,1],[3315,3330,15],[3331,3390,59],[3391,3392,1],[3398,3400,1],[3402,3404,1],[3415,3458,43],[3459,3535,76],[3536,3537,1],[3544,3551,1],[3570,3571,1],[3902,3903,1],[3967,4139,172],[4140,4145,5],[4152,4155,3],[4156,4182,26],[4183,4194,11],[4195,4196,1],[4199,4205,1],[4227,4228,1],[4231,4236,1],[4239,4250,11],[4251,4252,1],[5909,5940,31],[6070,6078,8],[6079,6085,1],[6087,6088,1],[6435,6438,1],[6441,6443,1],[6448,6449,1],[6451,6456,1],[6681,6682,1],[6741,6743,2],[6753,6755,2],[6756,6765,9],[6766,6770,1],[6916,6965,49],[6971,6973,2],[6974,6977,1],[6979,6980,1],[7042,7073,31],[7078,7079,1],[7082,7143,61],[7146,7148,1],[7150,7154,4],[7155,7204,49],[7205,7211,1],[7220,7221,1],[7393,7415,22],[12334,12335,1],[43043,43044,1],[43047,43136,89],[43137,43188,51],[43189,43203,1],[43346,43347,1],[43395,43444,49],[43445,43450,5],[43451,43454,3],[43455,43456,1],[43567,43568,1],[43571,43572,1],[43597,43643,46],[43645,43755,110],[43758,43759,1],[43765,44003,238],[44004,44006,2],[44007,44009,2],[44010,44012,2],[69632,69634,2],[69762,69808,46],[69809,69810,1],[69815,69816,1],[69932,69957,25],[69958,70018,60],[70067,70069,1],[70079,70080,1],[70094,70188,94],[70189,70190,1],[70194,70195,1],[70197,70368,171],[70369,70370,1],[70402,70403,1],[70462,70463,1],[70465,70468,1],[70471,70472,1],[70475,70477,1],[70487,70498,11],[70499,70709,210],[70710,70711,1],[70720,70721,1],[70725,70832,107],[70833,70834,1],[70841,70843,2],[70844,70846,1],[70849,71087,238],[71088,71089,1],[71096,71099,1],[71102,71216,114],[71217,71218,1],[71227,71228,1],[71230,71340,110],[71342,71343,1],[71350,71456,106],[71457,71462,5],[71724,71726,1],[71736,71984,248],[71985,71989,1],[71991,71992,1],[71997,72e3,3],[72002,72145,143],[72146,72147,1],[72156,72159,1],[72164,72249,85],[72279,72280,1],[72343,72751,408],[72766,72873,107],[72881,72884,3],[73098,73102,1],[73107,73108,1],[73110,73461,351],[73462,73475,13],[73524,73525,1],[73534,73535,1],[73537,94033,20496],[94034,94087,1],[94192,94193,1],[119141,119142,1],[119149,119154,1]]),D(A,"Me",[[1160,1161,1],[6846,8413,1567],[8414,8416,1],[8418,8420,1],[42608,42610,1]]),D(A,"Mn",[[768,879,1],[1155,1159,1],[1425,1469,1],[1471,1473,2],[1474,1476,2],[1477,1479,2],[1552,1562,1],[1611,1631,1],[1648,1750,102],[1751,1756,1],[1759,1764,1],[1767,1768,1],[1770,1773,1],[1809,1840,31],[1841,1866,1],[1958,1968,1],[2027,2035,1],[2045,2070,25],[2071,2073,1],[2075,2083,1],[2085,2087,
5891],[2089,2093,1],[2137,2139,1],[2200,2207,1],[2250,2273,1],[2275,2306,1],[2362,2364,2],[2369,2376,1],[2381,2385,4],[2386,2391,1],[2402,2403,1],[2433,2492,59],[2497,2500,1],[2509,2530,21],[2531,2558,27],[2561,2562,1],[2620,2625,5],[2626,2631,5],[2632,2635,3],[2636,2637,1],[2641,2672,31],[2673,2677,4],[2689,2690,1],[2748,2753,5],[2754,2757,1],[2759,2760,1],[2765,2786,21],[2787,2810,23],[2811,2815,1],[2817,2876,59],[2879,2881,2],[2882,2884,1],[2893,2901,8],[2902,2914,12],[2915,2946,31],[3008,3021,13],[3072,3076,4],[3132,3134,2],[3135,3136,1],[3142,3144,1],[3146,3149,1],[3157,3158,1],[3170,3171,1],[3201,3260,59],[3263,3270,7],[3276,3277,1],[3298,3299,1],[3328,3329,1],[3387,3388,1],[3393,3396,1],[3405,3426,21],[3427,3457,30],[3530,3538,8],[3539,3540,1],[3542,3633,91],[3636,3642,1],[3655,3662,1],[3761,3764,3],[3765,3772,1],[3784,3790,1],[3864,3865,1],[3893,3897,2],[3953,3966,1],[3968,3972,1],[3974,3975,1],[3981,3991,1],[3993,4028,1],[4038,4141,103],[4142,4144,1],[4146,4151,1],[4153,4154,1],[4157,4158,1],[4184,4185,1],[4190,4192,1],[4209,4212,1],[4226,4229,3],[4230,4237,7],[4253,4957,704],[4958,4959,1],[5906,5908,1],[5938,5939,1],[5970,5971,1],[6002,6003,1],[6068,6069,1],[6071,6077,1],[6086,6089,3],[6090,6099,1],[6109,6155,46],[6156,6157,1],[6159,6277,118],[6278,6313,35],[6432,6434,1],[6439,6440,1],[6450,6457,7],[6458,6459,1],[6679,6680,1],[6683,6742,59],[6744,6750,1],[6752,6754,2],[6757,6764,1],[6771,6780,1],[6783,6832,49],[6833,6845,1],[6847,6862,1],[6912,6915,1],[6964,6966,2],[6967,6970,1],[6972,6978,6],[7019,7027,1],[7040,7041,1],[7074,7077,1],[7080,7081,1],[7083,7085,1],[7142,7144,2],[7145,7149,4],[7151,7153,1],[7212,7219,1],[7222,7223,1],[7376,7378,1],[7380,7392,1],[7394,7400,1],[7405,7412,7],[7416,7417,1],[7616,7679,1],[8400,8412,1],[8417,8421,4],[8422,8432,1],[11503,11505,1],[11647,11744,97],[11745,11775,1],[12330,12333,1],[12441,12442,1],[42607,42612,5],[42613,42621,1],[42654,42655,1],[42736,42737,1],[43010,43014,4],[43019,43045,26],[43046,43052,6],[43204,43205,1],[43232,43249,1],[43263,43302,39],[43303,43309,1],[43335,43345,1],[43392,43394,1],[43443,43446,3],[43447,43449,1],[43452,43453,1],[43493,43561,68],[43562,43566,1],[43569,43570,1],[43573,43574,1],[43587,43596,9],[43644,43696,52],[43698,43700,1],[43703,43704,1],[43710,43711,1],[43713,43756,43],[43757,43766,9],[44005,44008,3],[44013,64286,20273],[65024,65039,1],[65056,65071,1],[66045,66272,227],[66422,66426,1],[68097,68099,1],[68101,68102,1],[68108,68111,1],[68152,68154,1],[68159,68325,166],[68326,68900,574],[68901,68903,1],[69291,69292,1],[69373,69375,1],[69446,69456,1],[69506,69509,1],[69633,69688,55],[69689,69702,1],[69744,69747,3],[69748,69759,11],[69760,69761,1],[69811,69814,1],[69817,69818,1],[69826,69888,62],[69889,69890,1],[69927,69931,1],[69933,69940,1],[70003,70016,13],[70017,70070,53],[70071,70078,1],[70089,70092,1],[70095,70191,96],[70192,70193,1],[70196,70198,2],[70199,70206,7],[70209,70367,158],[70371,70378,1],[70400,70401,1],[70459,70460,1],[70464,70502,38],[70503,70508,1],[70512,70516,1],[70712,70719,1],[70722,70724,1],[70726,70750,24],[70835,70840,1],[70842,70847,5],[70848,70850,2],[70851,71090,239],[71091,71093,1],[71100,71101,1],[71103,71104,1],[71132,71133,1],[71219,71226,1],[71229,71231,2],[71232,71339,107],[71341,71344,3],[71345,71349,1],[71351,71453,102],[71454,71455,1],[71458,71461,1],[71463,71467,1],[71727,71735,1],[71737,71738,1],[71995,71996,1],[71998,72003,5],[72148,72151,1],[72154,72155,1],[72160,72193,33],[72194,72202,1],[72243,72248,1],[72251,72254,1],[72263,72273,10],[72274,72278,1],[72281,72283,1],[72330,72342,1],[72344,72345,1],[72752,72758,1],[72760,72765,1],[72767,72850,83],[72851,72871,1],[72874,72880,1],[72882,72883,1],[72885,72886,1],[73009,73014,1],[73018,73020,2],[73021,73023,2],[73024,73029,1],[73031,73104,73],[73105,73109,4],[73111,73459,348],[73460,73472,12],[73473,73526,53],[73527,73530,1],[73536,73538,2],[78912,78919,7],[78920,78933,1],[92912,92916,1],[92976,92982,1],[94031,94095,64],[94096,94098,1],[94180,113821,19641],[113822,118528,4706],[118529,118573,1],[118576,118598,1],[119143,119145,1],[119163,119170,1],[119173,119179,1],[119210,119213,1],[119362,119364,1],[121344,121398,1],[121403,121452,1],[121461,121476,15],[121499,121503,1],[121505,121519,1],[122880,122886,1],[122888,122904,1],[122907,122913,1],[122915,122916,1],[122918,122922,1],[123023,123184,161],[123185,123190,1],[123566,123628,62],[123629,123631,1],[124140,124143,1],[125136,125142,1],[125252,125258,1],[917760,917999,1]]),D(A,"foldMn",[[921,953,32],[8126,8126,1]]),D(A,"N",[[48,57,1],[178,179,1],[185,188,3],[189,190,1],[1632,1641,1],[1776,1785,1],[1984,1993,1],[2406,2415,1],[2534,2543,1],[2548,2553,1],[2662,2671,1],[2790,2799,1],[2918,2927,1],[2930,2935,1],[3046,3058,1],[3174,3183,1],[3192,3198,1],[3302,3311,1],[3416,3422,1],[3430,3448,1],[3558,3567,1],[3664,3673,1],[3792,3801,1],[3872,3891,1],[4160,4169,1],[4240,4249,1],[4969,4988,1],[5870,5872,1],[6112,6121,1],[6128,6137,1],[6160,6169,1],[6470,6479,1],[6608,6618,1],[6784,6793,1],[6800,6809,1],[6992,7001,1],[7088,7097,1],[7232,7241,1],[7248,7257,1],[8304,8308,4],[8309,8313,1],[8320,8329,1],[8528,8578,1],[8581,8585,1],[9312,9371,1],[9450,9471,1],[10102,10131,1],[11517,12295,778],[12321,12329,1],[12344,12346,1],[12690,12693,1],[12832,12841,1],[12872,12879,1],[12881,12895,1],[12928,12937,1],[12977,12991,1],[42528,42537,1],[42726,42735,1],[43056,43061,1],[43216,43225,1],[43264,43273,1],[43472,43481,1],[43504,43513,1],[43600,43609,1],[44016,44025,1],[65296,65305,1],[65799,65843,1],[65856,65912,1],[65930,65931,1],[66273,66299,1],[66336,66339,1],[66369,66378,9],[66513,66517,1],[66720,66729,1],[67672,67679,1],[67705,67711,1],[67751,67759,1],[67835,67839,1],[67862,67867,1],[68028,68029,1],[68032,68047,1],[68050,68095,1],[68160,68168,1],[68221,68222,1],[68253,68255,1],[68331,68335,1],[68440,68447,1],[68472,68479,1],[68521,68527,1],[68858,68863,1],[68912,68921,1],[69216,69246,1],[69405,69414,1],[69457,69460,1],[69573,69579,1],[69714,69743,1],[69872,69881,1],[69942,69951,1],[70096,70105,1],[70113,70132,1],[70384,70393,1],[70736,70745,1],[70864,70873,1],[71248,71257,1],[71360,71369,1],[71472,71483,1],[71904,71922,1],[72016,72025,1],[72784,72812,1],[73040,73049,1],[73120,73129,1],[73552,73561,1],[73664,73684,1],[74752,74862,1],[92768,92777,1],[92864,92873,1],[93008,93017,1],[93019,93025,1],[93824,93846,1],[119488,119507,1],[119520,119539,1],[119648,119672,1],[120782,120831,1],[123200,123209,1],[123632,123641,1],[124144,124153,1],[125127,125135,1],[125264,125273,1],[126065,126123,1],[126125,126127,1],[126129,126132,1],[126209,126253,1],[126255,126269,1],[127232,127244,1],[130032,130041,1]]),D(A,"Nd",[[48,57,1],[1632,1641,1],[1776,1785,1],[1984,1993,1],[2406,2415,1],[2534,2543,1],[2662,2671,1],[2790,2799,1],[2918,2927,1],[3046,3055,1],[3174,3183,1],[3302,3311,1],[3430,3439,1],[3558,3567,1],[3664,3673,1],[3792,3801,1],[3872,3881,1],[4160,4169,1],[4240,4249,1],[6112,6121,1],[6160,6169,1],[6470,6479,1],[6608,6617,1],[6784,6793,1],[6800,6809,1],[6992,7001,1],[7088,7097,1],[7232,7241,1],[7248,7257,1],[42528,42537,1],[43216,43225,1],[43264,43273,1],[43472,43481,1],[43504,43513,1],[43600,43609,1],[44016,44025,1],[65296,65305,1],[66720,66729,1],[68912,68921,1],[69734,69743,1],[69872,69881,1],[69942,69951,1],[70096,70105,1],[70384,70393,1],[70736,70745,1],[70864,70873,1],[71248,71257,1],[71360,71369,1],[71472,71481,1],[71904,71913,1],[72016,72025,1],[72784,72793,1],[73040,73049,1],[73120,73129,1],[73552,73561,1],[92768,92777,1],[92864,92873,1],[93008,93017,1],[120782,120831,1],[123200,123209,1],[123632,123641,1],[124144,124153,1],[125264,125273,1],[130032,130041,1]]),D(A,"Nl",[[5870,5872,1],[8544,8578,1],[8581,8584,1],[12295,12321,26],[12322,12329,1],[12344,12346,1],[42726,42735,1],[65856,65908,1],[66369,66378,9],[66513,66517,1],[74752,74862,1]]),D(A,"No",[[178,179,1],[185,188,3],[189,190,1],[2548,2553,1],[2930,2935,1],[3056,3058,1],[3192,3198,1],[3416,3422,1],[3440,3448,1],[3882,3891,1],[4969,4988,1],[6128,6137,1],[6618,8304,1686],[8308,8313,1],[8320,8329,1],[8528,8543,1],[8585,9312,727],[9313,9371,1],[9450,9471,1],[10102,10131,1],[11517,12690,1173],[12691,12693,1],[12832,12841,1],[12872,12879,1],[12881,12895,1],[12928,12937,1],[12977,12991,1],[43056,43061,1],[65799,65843,1],[65909,65912,1],[65930,65931,1],[66273,66299,1],[66336,66339,1],[67672,67679,1],[67705,67711,1],[67751,67759,1],[67835,67839,1],[67862,67867,1],[68028,68029,1],[68032,68047,1],[68050,68095,1],[68160,68168,1],[68221,68222,1],[68253,68255,1],[68331,68335,1],[68440,68447,1],[68472,68479,1],[68521,68527,1],[68858,68863,1],[69216,69246,1],[69405,69414,1],[69457,69460,1],[69573,69579,1],[69714,69733,1],[70113,70132,1],[71482,71483,1],[71914,71922,1],[72794,72812,1],[73664,73684,1],[93019,93025,1],[93824,93846,1],[119488,119507,1],[119520,119539,1],[119648,119672,1],[125127,125135,1],[126065,126123,1],[126125,126127,1],[126129,126132,1],[126209,126253,1],[126255,126269,1],[127232,127244,1]]),D(A,"P",[[33,35,1],[37,42,1],[44,47,1],[58,59,1],[63,64,1],[91,93,1],[95,123,28],[125,161,36],[167,171,4],[182,183,1],[187,191,4],[894,903,9],[1370,1375,1],[1417,1418,1],[1470,1472,2],[1475,1478,3],[1523,1524,1],[1545,1546,1],[1548,1549,1],[1563,1565,2],[1566,1567,1],[1642,1645,1],[1748,1792,44],[1793,1805,1],[2039,2041,1],[2096,2110,1],[2142,2404,262],[2405,2416,11],[2557,2678,121],[2800,3191,391],[3204,3572,3
58968],[3663,3674,11],[3675,3844,169],[3845,3858,1],[3860,3898,38],[3899,3901,1],[3973,4048,75],[4049,4052,1],[4057,4058,1],[4170,4175,1],[4347,4960,613],[4961,4968,1],[5120,5742,622],[5787,5788,1],[5867,5869,1],[5941,5942,1],[6100,6102,1],[6104,6106,1],[6144,6154,1],[6468,6469,1],[6686,6687,1],[6816,6822,1],[6824,6829,1],[7002,7008,1],[7037,7038,1],[7164,7167,1],[7227,7231,1],[7294,7295,1],[7360,7367,1],[7379,8208,829],[8209,8231,1],[8240,8259,1],[8261,8273,1],[8275,8286,1],[8317,8318,1],[8333,8334,1],[8968,8971,1],[9001,9002,1],[10088,10101,1],[10181,10182,1],[10214,10223,1],[10627,10648,1],[10712,10715,1],[10748,10749,1],[11513,11516,1],[11518,11519,1],[11632,11776,144],[11777,11822,1],[11824,11855,1],[11858,11869,1],[12289,12291,1],[12296,12305,1],[12308,12319,1],[12336,12349,13],[12448,12539,91],[42238,42239,1],[42509,42511,1],[42611,42622,11],[42738,42743,1],[43124,43127,1],[43214,43215,1],[43256,43258,1],[43260,43310,50],[43311,43359,48],[43457,43469,1],[43486,43487,1],[43612,43615,1],[43742,43743,1],[43760,43761,1],[44011,64830,20819],[64831,65040,209],[65041,65049,1],[65072,65106,1],[65108,65121,1],[65123,65128,5],[65130,65131,1],[65281,65283,1],[65285,65290,1],[65292,65295,1],[65306,65307,1],[65311,65312,1],[65339,65341,1],[65343,65371,28],[65373,65375,2],[65376,65381,1],[65792,65794,1],[66463,66512,49],[66927,67671,744],[67871,67903,32],[68176,68184,1],[68223,68336,113],[68337,68342,1],[68409,68415,1],[68505,68508,1],[69293,69461,168],[69462,69465,1],[69510,69513,1],[69703,69709,1],[69819,69820,1],[69822,69825,1],[69952,69955,1],[70004,70005,1],[70085,70088,1],[70093,70107,14],[70109,70111,1],[70200,70205,1],[70313,70731,418],[70732,70735,1],[70746,70747,1],[70749,70854,105],[71105,71127,1],[71233,71235,1],[71264,71276,1],[71353,71484,131],[71485,71486,1],[71739,72004,265],[72005,72006,1],[72162,72255,93],[72256,72262,1],[72346,72348,1],[72350,72354,1],[72448,72457,1],[72769,72773,1],[72816,72817,1],[73463,73464,1],[73539,73551,1],[73727,74864,1137],[74865,74868,1],[77809,77810,1],[92782,92783,1],[92917,92983,66],[92984,92987,1],[92996,93847,851],[93848,93850,1],[94178,113823,19645],[121479,121483,1],[125278,125279,1]]),D(A,"Pc",[[95,8255,8160],[8256,8276,20],[65075,65076,1],[65101,65103,1],[65343,65343,1]]),D(A,"Pd",[[45,1418,1373],[1470,5120,3650],[6150,8208,2058],[8209,8213,1],[11799,11802,3],[11834,11835,1],[11840,11869,29],[12316,12336,20],[12448,65073,52625],[65074,65112,38],[65123,65293,170],[69293,69293,1]]),D(A,"Pe",[[41,93,52],[125,3899,3774],[3901,5788,1887],[8262,8318,56],[8334,8969,635],[8971,9002,31],[10089,10101,2],[10182,10215,33],[10217,10223,2],[10628,10648,2],[10713,10715,2],[10749,11811,1062],[11813,11817,2],[11862,11868,2],[12297,12305,2],[12309,12315,2],[12318,12319,1],[64830,65048,218],[65078,65092,2],[65096,65114,18],[65116,65118,2],[65289,65341,52],[65373,65379,3]]),D(A,"Pf",[[187,8217,8030],[8221,8250,29],[11779,11781,2],[11786,11789,3],[11805,11809,4]]),D(A,"Pi",[[171,8216,8045],[8219,8220,1],[8223,8249,26],[11778,11780,2],[11785,11788,3],[11804,11808,4]]),D(A,"Po",[[33,35,1],[37,39,1],[42,46,2],[47,58,11],[59,63,4],[64,92,28],[161,167,6],[182,183,1],[191,894,703],[903,1370,467],[1371,1375,1],[1417,1472,55],[1475,1478,3],[1523,1524,1],[1545,1546,1],[1548,1549,1],[1563,1565,2],[1566,1567,1],[1642,1645,1],[1748,1792,44],[1793,1805,1],[2039,2041,1],[2096,2110,1],[2142,2404,262],[2405,2416,11],[2557,2678,121],[2800,3191,391],[3204,3572,368],[3663,3674,11],[3675,3844,169],[3845,3858,1],[3860,3973,113],[4048,4052,1],[4057,4058,1],[4170,4175,1],[4347,4960,613],[4961,4968,1],[5742,5867,125],[5868,5869,1],[5941,5942,1],[6100,6102,1],[6104,6106,1],[6144,6149,1],[6151,6154,1],[6468,6469,1],[6686,6687,1],[6816,6822,1],[6824,6829,1],[7002,7008,1],[7037,7038,1],[7164,7167,1],[7227,7231,1],[7294,7295,1],[7360,7367,1],[7379,8214,835],[8215,8224,9],[8225,8231,1],[8240,8248,1],[8251,8254,1],[8257,8259,1],[8263,8273,1],[8275,8277,2],[8278,8286,1],[11513,11516,1],[11518,11519,1],[11632,11776,144],[11777,11782,5],[11783,11784,1],[11787,11790,3],[11791,11798,1],[11800,11801,1],[11803,11806,3],[11807,11818,11],[11819,11822,1],[11824,11833,1],[11836,11839,1],[11841,11843,2],[11844,11855,1],[11858,11860,1],[12289,12291,1],[12349,12539,190],[42238,42239,1],[42509,42511,1],[42611,42622,11],[42738,42743,1],[43124,43127,1],[43214,43215,1],[43256,43258,1],[43260,43310,50],[43311,43359,48],[43457,43469,1],[43486,43487,1],[43612,43615,1],[43742,43743,1],[43760,43761,1],[44011,65040,21029],[65041,65046,1],[65049,65072,23],[65093,65094,1],[65097,65100,1],[65104,65106,1],[65108,65111,1],[65119,65121,1],[65128,65130,2],[65131,65281,150],[65282,65283,1],[65285,65287,1],[65290,65294,2],[65295,65306,11],[65307,65311,4],[65312,65340,28],[65377,65380,3],[65381,65792,411],[65793,65794,1],[66463,66512,49],[66927,67671,744],[67871,67903,32],[68176,68184,1],[68223,68336,113],[68337,
58968342,1],[68409,68415,1],[68505,68508,1],[69461,69465,1],[69510,69513,1],[69703,69709,1],[69819,69820,1],[69822,69825,1],[69952,69955,1],[70004,70005,1],[70085,70088,1],[70093,70107,14],[70109,70111,1],[70200,70205,1],[70313,70731,418],[70732,70735,1],[70746,70747,1],[70749,70854,105],[71105,71127,1],[71233,71235,1],[71264,71276,1],[71353,71484,131],[71485,71486,1],[71739,72004,265],[72005,72006,1],[72162,72255,93],[72256,72262,1],[72346,72348,1],[72350,72354,1],[72448,72457,1],[72769,72773,1],[72816,72817,1],[73463,73464,1],[73539,73551,1],[73727,74864,1137],[74865,74868,1],[77809,77810,1],[92782,92783,1],[92917,92983,66],[92984,92987,1],[92996,93847,851],[93848,93850,1],[94178,113823,19645],[121479,121483,1],[125278,125279,1]]),D(A,"Ps",[[40,91,51],[123,3898,3775],[3900,5787,1887],[8218,8222,4],[8261,8317,56],[8333,8968,635],[8970,9001,31],[10088,10100,2],[10181,10214,33],[10216,10222,2],[10627,10647,2],[10712,10714,2],[10748,11810,1062],[11812,11816,2],[11842,11861,19],[11863,11867,2],[12296,12304,2],[12308,12314,2],[12317,64831,52514],[65047,65077,30],[65079,65091,2],[65095,65113,18],[65115,65117,2],[65288,65339,51],[65371,65375,4],[65378,65378,1]]),D(A,"S",[[36,43,7],[60,62,1],[94,96,2],[124,126,2],[162,166,1],[168,169,1],[172,174,2],[175,177,1],[180,184,4],[215,247,32],[706,709,1],[722,735,1],[741,747,1],[749,751,2],[752,767,1],[885,900,15],[901,1014,113],[1154,1421,267],[1422,1423,1],[1542,1544,1],[1547,1550,3],[1551,1758,207],[1769,1789,20],[1790,2038,248],[2046,2047,1],[2184,2546,362],[2547,2554,7],[2555,2801,246],[2928,3059,131],[3060,3066,1],[3199,3407,208],[3449,3647,198],[3841,3843,1],[3859,3861,2],[3862,3863,1],[3866,3871,1],[3892,3896,2],[4030,4037,1],[4039,4044,1],[4046,4047,1],[4053,4056,1],[4254,4255,1],[5008,5017,1],[5741,6107,366],[6464,6622,158],[6623,6655,1],[7009,7018,1],[7028,7036,1],[8125,8127,2],[8128,8129,1],[8141,8143,1],[8157,8159,1],[8173,8175,1],[8189,8190,1],[8260,8274,14],[8314,8316,1],[8330,8332,1],[8352,8384,1],[8448,8449,1],[8451,8454,1],[8456,8457,1],[8468,8470,2],[8471,8472,1],[8478,8483,1],[8485,8489,2],[8494,8506,12],[8507,8512,5],[8513,8516,1],[8522,8525,1],[8527,8586,59],[8587,8592,5],[8593,8967,1],[8972,9e3,1],[9003,9254,1],[9280,9290,1],[9372,9449,1],[9472,10087,1],[10132,10180,1],[10183,10213,1],[10224,10626,1],[10649,10711,1],[10716,10747,1],[10750,11123,1],[11126,11157,1],[11159,11263,1],[11493,11498,1],[11856,11857,1],[11904,11929,1],[11931,12019,1],[12032,12245,1],[12272,12287,1],[12292,12306,14],[12307,12320,13],[12342,12343,1],[12350,12351,1],[12443,12444,1],[12688,12689,1],[12694,12703,1],[12736,12771,1],[12783,12800,17],[12801,12830,1],[12842,12871,1],[12880,12896,16],[12897,12927,1],[12938,12976,1],[12992,13311,1],[19904,19967,1],[42128,42182,1],[42752,42774,1],[42784,42785,1],[42889,42890,1],[43048,43051,1],[43062,43065,1],[43639,43641,1],[43867,43882,15],[43883,64297,20414],[64434,64450,1],[64832,64847,1],[64975,65020,45],[65021,65023,1],[65122,65124,2],[65125,65126,1],[65129,65284,155],[65291,65308,17],[65309,65310,1],[65342,65344,2],[65372,65374,2],[65504,65510,1],[65512,65518,1],[65532,65533,1],[65847,65855,1],[65913,65929,1],[65932,65934,1],[65936,65948,1],[65952,66e3,48],[66001,66044,1],[67703,67704,1],[68296,71487,3191],[73685,73713,1],[92988,92991,1],[92997,113820,20823],[118608,118723,1],[118784,119029,1],[119040,119078,1],[119081,119140,1],[119146,119148,1],[119171,119172,1],[119180,119209,1],[119214,119274,1],[119296,119361,1],[119365,119552,187],[119553,119638,1],[120513,120539,26],[120571,120597,26],[120629,120655,26],[120687,120713,26],[120745,120771,26],[120832,121343,1],[121399,121402,1],[121453,121460,1],[121462,121475,1],[121477,121478,1],[123215,123647,432],[126124,126128,4],[126254,126704,450],[126705,126976,271],[126977,127019,1],[127024,127123,1],[127136,127150,1],[127153,127167,1],[127169,127183,1],[127185,127221,1],[127245,127405,1],[127462,127490,1],[127504,127547,1],[127552,127560,1],[127568,127569,1],[127584,127589,1],[127744,128727,1],[128732,128748,1],[128752,128764,1],[128768,128886,1],[128891,128985,1],[128992,129003,1],[129008,129024,16],[129025,129035,1],[129040,129
589095,1],[129104,129113,1],[129120,129159,1],[129168,129197,1],[129200,129201,1],[129280,129619,1],[129632,129645,1],[129648,129660,1],[129664,129672,1],[129680,129725,1],[129727,129733,1],[129742,129755,1],[129760,129768,1],[129776,129784,1],[129792,129938,1],[129940,129994,1]]),D(A,"Sc",[[36,162,126],[163,165,1],[1423,1547,124],[2046,2047,1],[2546,2547,1],[2555,2801,246],[3065,3647,582],[6107,8352,2245],[8353,8384,1],[43064,65020,21956],[65129,65284,155],[65504,65505,1],[65509,65510,1],[73693,73696,1],[123647,126128,2481]]),D(A,"Sk",[[94,96,2],[168,175,7],[180,184,4],[706,709,1],[722,735,1],[741,747,1],[749,751,2],[752,767,1],[885,900,15],[901,2184,1283],[8125,8127,2],[8128,8129,1],[8141,8143,1],[8157,8159,1],[8173,8175,1],[8189,8190,1],[12443,12444,1],[42752,42774,1],[42784,42785,1],[42889,42890,1],[43867,43882,15],[43883,64434,20551],[64435,64450,1],[65342,65344,2],[65507,127995,62488],[127996,127999,1]]),D(A,"Sm",[[43,60,17],[61,62,1],[124,126,2],[172,177,5],[215,247,32],[1014,1542,528],[1543,1544,1],[8260,8274,14],[8314,8316,1],[8330,8332,1],[8472,8512,40],[8513,8516,1],[8523,8592,69],[8593,8596,1],[8602,8603,1],[8608,8614,3],[8622,8654,32],[8655,8658,3],[8660,8692,32],[8693,8959,1],[8992,8993,1],[9084,9115,31],[9116,9139,1],[9180,9185,1],[9655,9665,10],[9720,9727,1],[9839,10176,337],[10177,10180,1],[10183,10213,1],[10224,10239,1],[10496,10626,1],[10649,10711,1],[10716,10747,1],[10750,11007,1],[11056,11076,1],[11079,11084,1],[64297,65122,825],[65124,65126,1],[65291,65308,17],[65309,65310,1],[65372,65374,2],[65506,65513,7],[65514,65516,1],[120513,120539,26],[120571,120597,26],[120629,120655,26],[120687,120713,26],[120745,120771,26],[126704,126705,1]]),D(A,"So",[[166,169,3],[174,176,2],[1154,1421,267],[1422,1550,128],[1551,1758,207],[1769,1789,20],[1790,2038,248],[2554,2928,374],[3059,3064,1],[3066,3199,133],[3407,3449,42],[3841,3843,1],[3859,3861,2],[3862,3863,1],[3866,3871,1],[3892,3896,2],[4030,4037,1],[4039,4044,1],[4046,4047,1],[4053,4056,1],[4254,4255,1],[5008,5017,1],[5741,6464,723],[6622,6655,1],[7009,7018,1],[7028,7036,1],[8448,8449,1],[8451,8454,1],[8456,8457,1],[8468,8470,2],[8471,8478,7],[8479,8483,1],[8485,8489,2],[8494,8506,12],[8507,8522,15],[8524,8525,1],[8527,8586,59],[8587,8597,10],[8598,8601,1],[8604,8607,1],[8609,8610,1],[8612,8613,1],[8615,8621,1],[8623,8653,1],[8656,8657,1],[8659,8661,2],[8662,8691,1],[8960,8967,1],[8972,8991,1],[8994,9e3,1],[9003,9083,1],[9085,9114,1],[9140,9179,1],[9186,9254,1],[9280,9290,1],[9372,9449,1],[9472,9654,1],[9656,9664,1],[9666,9719,1],[9728,9838,1],[9840,10087,1],[10132,10175,1],[10240,10495,1],[11008,11055,1],[11077,11078,1],[11085,11123,1],[11126,11157,1],[11159,11263,1],[11493,11498,1],[11856,11857,1],[11904,11929,1],[11931,12019,1],[12032,12245,1],[12272,12287,1],[12292,12306,14],[12307,12320,13],[12342,12343,1],[12350,12351,1],[12688,12689,1],[12694,12703,1],[12736,12771,1],[12783,12800,17],[12801,12830,1],[12842,12871,1],[12880,12896,16],[12897,12927,1],[12938,12976,1],[12992,13311,1],[19904,19967,1],[42128,42182,1],[43048,43051,1],[43062,43063,1],[43065,43639,574],[43640,43641,1],[64832,64847,1],[64975,65021,46],[65022,65023,1],[65508,65512,4],[65517,65518,1],[65532,65533,1],[65847,65855,1],[65913,65929,1],[65932,65934,1],[65936,65948,1],[65952,66e3,48],[66001,66044,1],[67703,67704,1],[68296,71487,3191],[73685,73692,1],[73697,73713,1],[92988,92991,1],[92997,113820,20823],[118608,118723,1],[118784,119029,1],[119040,119078,1],[119081,119140,1],[119146,119148,1],[119171,119172,1],[119180,119209,1],[119214,119274,1],[119296,119361,1],[119365,119552,187],[119553,119638,1],[120832,121343,1],[121399,121402,1],[121453,121460,1],[121462,121475,1],[121477,121478,1],[123215,126124,2909],[126254,126976,722],[126977,127019,1],[127024,127123,1],[127136,127150,1],[127153,127167,1],[127169,127183,1],[127185,127221,1],[127245,127405,1],[127462,127490,1],[127504,127547,1],[127552,127560,1],[127568,127569,1],[127584,127589,1],[127744,127994,1],[128e3,128727,1],[128732,128748,1],[128752,128764,1],[128768,128886,1],[128891,128985,1],[128992,129003,1],[129008,129024,16],[129025,129035,1],[129040,129
589095,1],[129104,129113,1],[129120,129159,1],[129168,129197,1],[129200,129201,1],[129280,129619,1],[129632,129645,1],[129648,129660,1],[129664,129672,1],[129680,129725,1],[129727,129733,1],[129742,129755,1],[129760,129768,1],[129776,129784,1],[129792,129938,1],[129940,129994,1]]),D(A,"Z",[[32,160,128],[5760,8192,2432],[8193,8202,1],[8232,8233,1],[8239,8287,48],[12288,12288,1]]),D(A,"Zl",[[8232,8232,1]]),D(A,"Zp",[[8233,8233,1]]),D(A,"Zs",[[32,160,128],[5760,8192,2432],[8193,8202,1],[8239,8287,48],[12288,12288,1]]),D(A,"Adlam",[[125184,125259,1],[125264,125273,1],[125278,125279,1]]),D(A,"Ahom",[[71424,71450,1],[71453,71467,1],[71472,71494,1]]),D(A,"Anatolian_Hieroglyphs",[[82944,83526,1]]),D(A,"Arabic",[[1536,1540,1],[1542,1547,1],[1549,1562,1],[1564,1566,1],[1568,1599,1],[1601,1610,1],[1622,1647,1],[1649,1756,1],[1758,1791,1],[1872,1919,1],[2160,2190,1],[2192,2193,1],[2200,2273,1],[2275,2303,1],[64336,64450,1],[64467,64829,1],[64832,64911,1],[64914,64967,1],[64975,65008,33],[65009,65023,1],[65136,65140,1],[65142,65276,1],[69216,69246,1],[69373,69375,1],[126464,126467,1],[126469,126495,1],[126497,126498,1],[126500,126503,3],[126505,126514,1],[126516,126519,1],[126521,126523,2],[126530,126535,5],[126537,126541,2],[126542,126543,1],[126545,126546,1],[126548,126551,3],[126553,126561,2],[126562,126564,2],[126567,126570,1],[126572,126578,1],[126580,126583,1],[126585,126588,1],[126590,126592,2],[126593,126601,1],[126603,126619,1],[126625,126627,1],[126629,126633,1],[126635,126651,1],[126704,126705,1]]),D(A,"Armenian",[[1329,1366,1],[1369,1418,1],[1421,1423,1],[64275,64279,1]]),D(A,"Avestan",[[68352,68405,1],[68409,68415,1]]),D(A,"Balinese",[[6912,6988,1],[6992,7038,1]]),D(A,"Bamum",[[42656,42743,1],[92160,92728,1]]),D(A,"Bassa_Vah",[[92880,92909,1],[92912,92917,1]]),D(A,"Batak",[[7104,7155,1],[7164,7167,1]]),D(A,"Bengali",[[2432,2435,1],[2437,2444,1],[2447,2448,1],[2451,2472,1],[2474,2480,1],[2482,2486,4],[2487,2489,1],[2492,2500,1],[2503,2504,1],[2507,2510,1],[2519,2524,5],[2525,2527,2],[2528,2531,1],[2534,2558,1]]),D(A,"Bhaiksuki",[[72704,72712,1],[72714,72758,1],[72760,72773,1],[72784,72812,1]]),D(A,"Bopomofo",[[746,747,1],[12549,12591,1],[12704,12735,1]]),D(A,"Brahmi",[[69632,69709,1],[69714,69749,1],[69759,69759,1]]),D(A,"Braille",[[10240,10495,1]]),D(A,"Buginese",[[6656,6683,1],[6686,6687,1]]),D(A,"Buhid",[[5952,5971,1]]),D(A,"Canadian_Aboriginal",[[5120,5759,1],[6320,6389,1],[72368,72383,1]]),D(A,"Carian",[[66208,66256,1]]),D(A,"Caucasian_Albanian",[[66864,66915,1],[66927,66927,1]]),D(A,"Chakma",[[69888,69940,1],[69942,69959,1]]),D(A,"Cham",[[43520,43574,1],[43584,43597,1],[43600,43609,1],[43612,43615,1]]),D(A,"Cherokee",[[5024,5109,1],[5112,5117,1],[43888,43967,1]]),D(A,"Chorasmian",[[69552,69579,1]]),D(A,"Common",[[0,64,1],[91,96,1],[123,169,1],[171,185,1],[187,191,1],[215,247,32],[697,735,1],[741,745,1],[748,767,1],[884,894,10],[901,903,2],[1541,1548,7],[1563,1567,4],[1600,1757,157],[2274,2404,130],[2405,3647,1242],[4053,4056,1],[4347,5867,1520],[5868,5869,1],[5941,5942,1],[6146,6147,1],[6149,7379,1230],[7393,7401,8],[7402,7404,1],[7406,7411,1],[7413,7415,1],[7418,8192,774],[8193,8203,1],[8206,8292,1],[8294,8304,1],[8308,8318,1],[8320,8334,1],[8352,8384,1],[8448,8485,1],[8487,8489,1],[8492,8497,1],[8499,8525,1],[8527,8543,1],[8585,8587,1],[8592,9254,1],[9280,9290,1],[9312,10239,1],[10496,11123,1],[11126,11157,1],[11159,11263,1],[11776,11869,1],[12272,12292,1],[12294,12296,2],[12297,12320,1],[12336,12343,1],[12348,12351,1],[12443,12444,1],[12448,12539,91],[12540,12688,148],[12689,12703,1],[12736,12771,1],[12783,12832,49],[12833,12895,1],[12927,13007,1],[13055,13144,89],[13145,13311,1],[19904,19967,1],[42752,42785,1],[42888,42890,1],[43056,43065,1],[43310,43471,161],[43867,43882,15],[43883,64830,20947],[64831,65040,209],[65041,65049,1],[65072,65106,1],[65108,65126,1],[65128,65131,1],[65279,65281,2],[65282,65312,1],[65339,65344,1],[65371,65381,1],[65392,65438,46],[65439,65504,65],[65505,65510,1],[65512,65518,1],[65529,65533,1],[65792,65794,1],[65799,65843,1],[65847,65855,1],[65936,65948,1],[66e3,66044,1],[66273,66299,1],[113824,113827,1],[118608,118723,1],[118784,119029,1],[119040,119078,1],[119081,119142,1],[119146,119162,1],[119171,119172,1],[119180,119209,1],[119214,119274,1],[119488,119507,1],[119520,119539,1],[119552,119638,1],[119648,119672,1],[119808,119892,1],[119894,119964,1],[119966,119967,1],[119970,
589119973,3],[119974,119977,3],[119978,119980,1],[119982,119993,1],[119995,119997,2],[119998,120003,1],[120005,120069,1],[120071,120074,1],[120077,120084,1],[120086,120092,1],[120094,120121,1],[120123,120126,1],[120128,120132,1],[120134,120138,4],[120139,120144,1],[120146,120485,1],[120488,120779,1],[120782,120831,1],[126065,126132,1],[126209,126269,1],[126976,127019,1],[127024,127123,1],[127136,127150,1],[127153,127167,1],[127169,127183,1],[127185,127221,1],[127232,127405,1],[127462,127487,1],[127489,127490,1],[127504,127547,1],[127552,127560,1],[127568,127569,1],[127584,127589,1],[127744,128727,1],[128732,128748,1],[128752,128764,1],[128768,128886,1],[128891,128985,1],[128992,129003,1],[129008,129024,16],[129025,129035,1],[129040,129095,1],[129104,129113,1],[129120,129159,1],[129168,129197,1],[129200,129201,1],[129280,129619,1],[129632,129645,1],[129648,129660,1],[129664,129672,1],[129680,129725,1],[129727,129733,1],[129742,129755,1],[129760,129768,1],[129776,129784,1],[129792,129938,1],[129940,129994,1],[130032,130041,1],[917505,917536,31],[917537,917631,1]]),D(A,"foldCommon",[[924,956,32]]),D(A,"Coptic",[[994,1007,1],[11392,11507,1],[11513,11519,1]]),D(A,"Cuneiform",[[73728,74649,1],[74752,74862,1],[74864,74868,1],[74880,75075,1]]),D(A,"Cypriot",[[67584,67589,1],[67592,67594,2],[67595,67637,1],[67639,67640,1],[67644,67647,3]]),D(A,"Cypro_Minoan",[[77712,77810,1]]),D(A,"Cyrillic",[[1024,1156,1],[1159,1327,1],[7296,7304,1],[7467,7544,77],[11744,11775,1],[42560,42655,1],[65070,65071,1],[122928,122989,1],[123023,123023,1]]),D(A,"Deseret",[[66560,66639,1]]),D(A,"Devanagari",[[2304,2384,1],[2389,2403,1],[2406,2431,1],[43232,43263,1],[72448,72457,1]]),D(A,"Dives_Akuru",[[71936,71942,1],[71945,71948,3],[71949,71955,1],[71957,71958,1],[71960,71989,1],[71991,71992,1],[71995,72006,1],[72016,72025,1]]),D(A,"Dogra",[[71680,71739,1]]),D(A,"Duployan",[[113664,113770,1],[113776,113788,1],[113792,113800,1],[113808,113817,1],[113820,113823,1]]),D(A,"Egyptian_Hieroglyphs",[[77824,78933,1]]),D(A,"Elbasan",[[66816,66855,1]]),D(A,"Elymaic",[[69600,69622,1]]),D(A,"Ethiopic",[[4608,4680,1],[4682,4685,1],[4688,4694,1],[4696,4698,2],[4699,4701,1],[4704,4744,1],[4746,4749,1],[4752,4784,1],[4786,4789,1],[4792,4798,1],[4800,4802,2],[4803,4805,1],[4808,4822,1],[4824,4880,1],[4882,4885,1],[4888,4954,1],[4957,4988,1],[4992,5017,1],[11648,11670,1],[11680,11686,1],[11688,11694,1],[11696,11702,1],[11704,11710,1],[11712,11718,1],[11720,11726,1],[11728,11734,1],[11736,11742,1],[43777,43782,1],[43785,43790,1],[43793,43798,1],[43808,43814,1],[43816,43822,1],[124896,124902,1],[124904,124907,1],[124909,124910,1],[124912,124926,1]]),D(A,"Georgian",[[4256,4293,1],[4295,4301,6],[4304,4346,1],[4348,4351,1],[7312,7354,1],[7357,7359,1],[11520,11557,1],[11559,11565,6]]),D(A,"Glagolitic",[[11264,11359,1],[122880,122886,1],[122888,122904,1],[122907,122913,1],[122915,122916,1],[122918,122922,1]]),D(A,"Gothic",[[66352,66378,1]]),D(A,"Grantha",[[70400,70403,1],[70405,70412,1],[70415,70416,1],[70419,70440,1],[70442,70448,1],[70450,70451,1],[70453,70457,1],[70460,70468,1],[70471,70472,1],[70475,70477,1],[70480,70487,7],[70493,70499,1],[70502,70508,1],[70512,70516,1]]),D(A,"Greek",[[880,883,1],[885,887,1],[890,893,1],[895,900,5],[902,904,2],[905,906,1],[908,910,2],[911,929,1],[931,993,1],[1008,1023,1],[7462,7466,1],[7517,7521,1],[7526,7530,1],[7615,7936,321],[7937,7957,1],[7960,7965,1],[7968,8005,1],[8008,8013,1],[8016,8023,1],[8025,8031,2],[8032,8061,1],[8064,8116,1],[8118,8132,1],[8134,8147,1],[8150,8155,1],[8157,8175,1],[8178,8180,1],[8182,8190,1],[8486,43877,35391],[65856,65934,1],[65952,119296,53344],[119297,119365,1]]),D(A,"foldGreek",[[181,837,656]]),D(A,"Gujarati",[[2689,2691,1],[2693,2701,1],[2703,2705,1],[2707,2728,1],[2730,2736,1],[2738,2739,1],[2741,2745,1],[2748,2757,1],[2759,2761,1],[2763,2765,1],[2768,2784,16],[2785,2787,1],[2790,2801,1],[2809,2815,1]]),D(A,"Gunjala_Gondi",[[73056,73061,1],[73063,73064,1],[73066,73102,1],[73104,73105,1],[73107,73112,1],[73120,73129,1]]),D(A,"Gurmukhi",[[2561,2563,1],[2565,2570,1],[2575,2576,1],[2579,2600,1],[2602,2608,1],[2610,2611,1],[2613,2614,1],[2616,2617,1],[2620,2622,2],[2623,2626,1],[2631,2632,1],[2635,2637,1],[2641,2649,8],[2650,2652,1],[2654,2662,8],[2663,2678,1]]),D(A,"Han",[[11904,11929,1],[11931,12019,1],[12032,12245,1],[12293,12295,2],[12321,12329,1],[12344,12347,1],[13312,19903,1],[19968,40959,1],[63744,64109,1],[64112,64217,1],[94178,94179,1],[94192,94193,1],[131072,173791,1],[173824,177977,1],[177984,178205,1],[178208,183969,1],[183984,191456,1],[191472,192093,1],[194560,195101,1],[196608,201546,1],[201552,205743,1]]),D(A,"Hangul",[[4352,4607,1],[12334,12335,1],[12593,12
589686,1],[12800,12830,1],[12896,12926,1],[43360,43388,1],[44032,55203,1],[55216,55238,1],[55243,55291,1],[65440,65470,1],[65474,65479,1],[65482,65487,1],[65490,65495,1],[65498,65500,1]]),D(A,"Hanifi_Rohingya",[[68864,68903,1],[68912,68921,1]]),D(A,"Hanunoo",[[5920,5940,1]]),D(A,"Hatran",[[67808,67826,1],[67828,67829,1],[67835,67839,1]]),D(A,"Hebrew",[[1425,1479,1],[1488,1514,1],[1519,1524,1],[64285,64310,1],[64312,64316,1],[64318,64320,2],[64321,64323,2],[64324,64326,2],[64327,64335,1]]),D(A,"Hiragana",[[12353,12438,1],[12445,12447,1],[110593,110879,1],[110898,110928,30],[110929,110930,1],[127488,127488,1]]),D(A,"Imperial_Aramaic",[[67648,67669,1],[67671,67679,1]]),D(A,"Inherited",[[768,879,1],[1157,1158,1],[1611,1621,1],[1648,2385,737],[2386,2388,1],[6832,6862,1],[7376,7378,1],[7380,7392,1],[7394,7400,1],[7405,7412,7],[7416,7417,1],[7616,7679,1],[8204,8205,1],[8400,8432,1],[12330,12333,1],[12441,12442,1],[65024,65039,1],[65056,65069,1],[66045,66272,227],[70459,118528,48069],[118529,118573,1],[118576,118598,1],[119143,119145,1],[119163,119170,1],[119173,119179,1],[119210,119213,1],[917760,917999,1]]),D(A,"foldInherited",[[921,953,32],[8126,8126,1]]),D(A,"Inscriptional_Pahlavi",[[68448,68466,1],[68472,68479,1]]),D(A,"Inscriptional_Parthian",[[68416,68437,1],[68440,68447,1]]),D(A,"Javanese",[[43392,43469,1],[43472,43481,1],[43486,43487,1]]),D(A,"Kaithi",[[69760,69826,1],[69837,69837,1]]),D(A,"Kannada",[[3200,3212,1],[3214,3216,1],[3218,3240,1],[3242,3251,1],[3253,3257,1],[3260,3268,1],[3270,3272,1],[3274,3277,1],[3285,3286,1],[3293,3294,1],[3296,3299,1],[3302,3311,1],[3313,3315,1]]),D(A,"Katakana",[[12449,12538,1],[12541,12543,1],[12784,12799,1],[13008,13054,1],[13056,13143,1],[65382,65391,1],[65393,65437,1],[110576,110579,1],[110581,110587,1],[110589,110590,1],[110592,110880,288],[110881,110882,1],[110933,110948,15],[110949,110951,1]]),D(A,"Kawi",[[73472,73488,1],[73490,73530,1],[73534,73561,1]]),D(A,"Kayah_Li",[[43264,43309,1],[43311,43311,1]]),D(A,"Kharoshthi",[[68096,68099,1],[68101,68102,1],[68108,68115,1],[68117,68119,1],[68121,68149,1],[68152,68154,1],[68159,68168,1],[68176,68184,1]]),D(A,"Khitan_Small_Script",[[94180,101120,6940],[101121,101589,1]]),D(A,"Khmer",[[6016,6109,1],[6112,6121,1],[6128,6137,1],[6624,6655,1]]),D(A,"Khojki",[[70144,70161,1],[70163,70209,1]]),D(A,"Khudawadi",[[70320,70378,1],[70384,70393,1]]),D(A,"Lao",[[3713,3714,1],[3716,3718,2],[3719,3722,1],[3724,3747,1],[3749,3751,2],[3752,3773,1],[3776,3780,1],[3782,3784,2],[3785,3790,1],[3792,3801,1],[3804,3807,1]]),D(A,"Latin",[[65,90,1],[97,122,1],[170,186,16],[192,214,1],[216,246,1],[248,696,1],[736,740,1],[7424,7461,1],[7468,7516,1],[7522,7525,1],[7531,7543,1],[7545,7614,1],[7680,7935,1],[8305,8319,14],[8336,8348,1],[8490,8491,1],[8498,8526,28],[8544,8584,1],[11360,11391,1],[42786,42887,1],[42891,42954,1],[42960,42961,1],[42963,42965,2],[42966,42969,1],[42994,43007,1],[43824,43866,1],[43868,43876,1],[43878,43881,1],[64256,64262,1],[65313,65338,1],[65345,65370,1],[67456,67461,1],[67463,67504,1],[67506,67514,1],[122624,122654,1],[122661,122666,1]]),D(A,"Lepcha",[[7168,7223,1],[7227,7241,1],[7245,7247,1]]),D(A,"Limbu",[[6400,6430,1],[6432,6443,1],[6448,6459,1],[6464,6468,4],[6469,6479,1]]),D(A,"Linear_A",[[67072,67382,1],[67392,67413,1],[67424,67431,1]]),D(A,"Linear_B",[[65536,65547,1],[65549,65574,1],[65576,65594,1],[65596,65597,1],[65599,65613,1],[65616,65629,1],[65664,65786,1]]),D(A,"Lisu",[[42192,42239,1],[73648,73648,1]]),D(A,"Lycian",[[66176,66204,1]]),D(A,"Lydian",[[67872,67897,1],[67903,67903,1]]),D(A,"Mahajani",[[69968,70006,1]]),D(A,"Makasar",[[73440,73464,1]]),D(A,"Malayalam",[[3328,3340,1],[3342,3344,1],[3346,3396,1],[3398,3400,1],[3402,3407,1],[3412,3427,1],[3430,3455,1]]),D(A,"Mandaic",[[2112,2139,1],[2142,2142,1]]),D(A,"Manichaean",[[68288,68326,1],[68331,68342,1]]),D(A,"Marchen",[[72816,72847,1],[72850,72871,1],[72873,72886,1]]),D(A,"Masaram_Gondi",[[72960,72966,1],[72968,72969,1],[72971,73014,1],[73018,73020,2],[73021,73023,2],[73024,73031,1],[73040,73049,1]]),D(A,"Medefaidrin",[[93760,93850,1]]),D(A,"Meetei_Mayek",[[43744,43766,1],[43968,44013,1],[44016,44025,1]]),D(A,"Mende_Kikakui",[[124928,125124,1],[125127,125142,1]]),D(A,"Meroitic_Cursive",[[68e3,68023,1],[68028,68047,1],[68050,68095,1]]),D(A,"Meroitic_Hieroglyphs",[[67968,67999,1]]),D(A,"Miao",[[93952,94026,1],[94031,94087,1],[94095,94111,1]]),D(A,"Modi",[[71168,71236,1],[71248,71257,1]]),D(A,"Mongolian",[[6144,6145,1],[6148,6150,2],[6151,6169,1],[6176,6264,1],[6272,6314,1],[71264,71276,1]]),D(A,"Mro",[[92736,92766,1],[92768,92777,1],[92782,92783,1]]),D(A,"Multani",[[70272,70278,1],[70280,70282,2],[70283,70285,1],[70287,70301,1],[70303,70313,1]]),D(A,"Myanmar",[[4096,4255,1],[43488,43518,1],[43616,43647,1]]),D(A,"Nabataean",[[67712,67742,1],[67751,67759,1]]),D(A,"Nag_Mundari",[[124112,124153,1]]),D(A,"Nandinagari",[[72096,72103,1],[72106,72151,1],[72154,72164,1]]),D(A,"New_Tai_Lue",[[6528,6571,1],[6576,6601,1],[6608,6618,1],[6622,6623,1]]),D(A,"Newa",[[70656,70747,1],[70749,70753,1]]),D(A,"Nko",[[1984,2042,1],[2045,2047,1]]),D(A,"Nushu",[[94177,110960,16
589783],[110961,111355,1]]),D(A,"Nyiakeng_Puachue_Hmong",[[123136,123180,1],[123184,123197,1],[123200,123209,1],[123214,123215,1]]),D(A,"Ogham",[[5760,5788,1]]),D(A,"Ol_Chiki",[[7248,7295,1]]),D(A,"Old_Hungarian",[[68736,68786,1],[68800,68850,1],[68858,68863,1]]),D(A,"Old_Italic",[[66304,66339,1],[66349,66351,1]]),D(A,"Old_North_Arabian",[[68224,68255,1]]),D(A,"Old_Permic",[[66384,66426,1]]),D(A,"Old_Persian",[[66464,66499,1],[66504,66517,1]]),D(A,"Old_Sogdian",[[69376,69415,1]]),D(A,"Old_South_Arabian",[[68192,68223,1]]),D(A,"Old_Turkic",[[68608,68680,1]]),D(A,"Old_Uyghur",[[69488,69513,1]]),D(A,"Oriya",[[2817,2819,1],[2821,2828,1],[2831,2832,1],[2835,2856,1],[2858,2864,1],[2866,2867,1],[2869,2873,1],[2876,2884,1],[2887,2888,1],[2891,2893,1],[2901,2903,1],[2908,2909,1],[2911,2915,1],[2918,2935,1]]),D(A,"Osage",[[66736,66771,1],[66776,66811,1]]),D(A,"Osmanya",[[66688,66717,1],[66720,66729,1]]),D(A,"Pahawh_Hmong",[[92928,92997,1],[93008,93017,1],[93019,93025,1],[93027,93047,1],[93053,93071,1]]),D(A,"Palmyrene",[[67680,67711,1]]),D(A,"Pau_Cin_Hau",[[72384,72440,1]]),D(A,"Phags_Pa",[[43072,43127,1]]),D(A,"Phoenician",[[67840,67867,1],[67871,67871,1]]),D(A,"Psalter_Pahlavi",[[68480,68497,1],[68505,68508,1],[68521,68527,1]]),D(A,"Rejang",[[43312,43347,1],[43359,43359,1]]),D(A,"Runic",[[5792,5866,1],[5870,5880,1]]),D(A,"Samaritan",[[2048,2093,1],[2096,2110,1]]),D(A,"Saurashtra",[[43136,43205,1],[43214,43225,1]]),D(A,"Sharada",[[70016,70111,1]]),D(A,"Shavian",[[66640,66687,1]]),D(A,"Siddham",[[71040,71093,1],[71096,71133,1]]),D(A,"SignWriting",[[120832,121483,1],[121499,121503,1],[121505,121519,1]]),D(A,"Sinhala",[[3457,3459,1],[3461,3478,1],[3482,3505,1],[3507,3515,1],[3517,3520,3],[3521,3526,1],[3530,3535,5],[3536,3540,1],[3542,3544,2],[3545,3551,1],[3558,3567,1],[3570,3572,1],[70113,70132,1]]),D(A,"Sogdian",[[69424,69465,1]]),D(A,"Sora_Sompeng",[[69840,69864,1],[69872,69881,1]]),D(A,"Soyombo",[[72272,72354,1]]),D(A,"Sundanese",[[7040,7103,1],[7360,7367,1]]),D(A,"Syloti_Nagri",[[43008,43052,1]]),D(A,"Syriac",[[1792,1805,1],[1807,1866,1],[1869,1871,1],[2144,2154,1]]),D(A,"Tagalog",[[5888,5909,1],[5919,5919,1]]),D(A,"Tagbanwa",[[5984,5996,1],[5998,6e3,1],[6002,6003,1]]),D(A,"Tai_Le",[[6480,6509,1],[6512,6516,1]]),D(A,"Tai_Tham",[[6688,6750,1],[6752,6780,1],[6783,6793,1],[6800,6809,1],[6816,6829,1]]),D(A,"Tai_Viet",[[43648,43714,1],[43739,43743,1]]),D(A,"Takri",[[71296,71353,1],[71360,71369,1]]),D(A,"Tamil",[[2946,2947,1],[2949,2954,1],[2958,2960,1],[2962,2965,1],[2969,2970,1],[2972,2974,2],[2975,2979,4],[2980,2984,4],[2985,2986,1],[2990,3001,1],[3006,3010,1],[3014,3016,1],[3018,3021,1],[3024,3031,7],[3046,3066,1],[73664,73713,1],[73727,73727,1]]),D(A,"Tangsa",[[92784,92862,1],[92864,92873,1]]),D(A,"Tangut",[[94176,94208,32],[94209,100343,1],[100352,101119,1],[101632,101640,1]]),D(A,"Telugu",[[3072,3084,1],[3086,3088,1],[3090,3112,1],[3114,3129,1],[3132,3140,1],[3142,3144,1],[3146,3149,1],[3157,3158,1],[3160,3162,1],[3165,3168,3],[3169,3171,1],[3174,3183,1],[3191,3199,1]]),D(A,"Thaana",[[1920,1969,1]]),D(A,"Thai",[[3585,3642,1],[3648,3675,1]]),D(A,"Tibetan",[[3840,3911,1],[3913,3948,1],[3953,3991,1],[3993,4028,1],[4030,4044,1],[4046,4052,1],[4057,4058,1]]),D(A,"Tifinagh",[[11568,11623,1],[11631,11632,1],[11647,11647,1]]),D(A,"Tirhuta",[[70784,70855,1],[70864,70873,1]]),D(A,"Toto",[[123536,123566,1]]),D(A,"Ugaritic",[[66432,66461,1],[66463,66463,1]]),D(A,"Vai",[[42240,42539,1]]),D(A,"Vithkuqi",[[66928,66938,1],[66940,66954,1],[66956,66962,1],[66964,66965,1],[66967,66977,1],[66979,66993,1],[66995,67001,1],[67003,67004,1]]),D(A,"Wancho",[[123584,123641,1],[123647,123647,1]]),D(A,"Warang_Citi",[[71840,71922,1],[71935,71935,1]]),D(A,"Yezidi",[[69248,69289,1],[69291,69293,1],[69296,69297,1]]),D(A,"Yi",[[40960,42124,1],[42128,42182,1]]),D(A,"Zanabazar_Square",[[72192,72263,1]]),D(A,"CATEGORIES",new Map([["C",A.C],["Cc",A.Cc],["Cf",A.Cf],["Co",A.Co],["Cs",A.Cs],["L",A.L],["Ll",A.Ll],["Lm",A.Lm],["Lo",A.Lo],["Lt",A.Lt],["Lu",A.Lu],["M",A.M],["Mc",A.Mc],["Me",A.Me],["Mn",A.Mn],["N",A.N],["Nd",A.Nd],["Nl",A.Nl],["No",A.No],["P",A.P],["Pc",A.Pc],["Pd",A.Pd],["Pe",A.Pe],["Pf",A.Pf],["Pi",A.P
589i],["Po",A.Po],["Ps",A.Ps],["S",A.S],["Sc",A.Sc],["Sk",A.Sk],["Sm",A.Sm],["So",A.So],["Z",A.Z],["Zl",A.Zl],["Zp",A.Zp],["Zs",A.Zs]])),D(A,"SCRIPTS",new Map([["Adlam",A.Adlam],["Ahom",A.Ahom],["Anatolian_Hieroglyphs",A.Anatolian_Hieroglyphs],["Arabic",A.Arabic],["Armenian",A.Armenian],["Avestan",A.Avestan],["Balinese",A.Balinese],["Bamum",A.Bamum],["Bassa_Vah",A.Bassa_Vah],["Batak",A.Batak],["Bengali",A.Bengali],["Bhaiksuki",A.Bhaiksuki],["Bopomofo",A.Bopomofo],["Brahmi",A.Brahmi],["Braille",A.Braille],["Buginese",A.Buginese],["Buhid",A.Buhid],["Canadian_Aboriginal",A.Canadian_Aboriginal],["Carian",A.Carian],["Caucasian_Albanian",A.Caucasian_Albanian],["Chakma",A.Chakma],["Cham",A.Cham],["Cherokee",A.Cherokee],["Chorasmian",A.Chorasmian],["Common",A.Common],["Coptic",A.Coptic],["Cuneiform",A.Cuneiform],["Cypriot",A.Cypriot],["Cypro_Minoan",A.Cypro_Minoan],["Cyrillic",A.Cyrillic],["Deseret",A.Deseret],["Devanagari",A.Devanagari],["Dives_Akuru",A.Dives_Akuru],["Dogra",A.Dogra],["Duployan",A.Duployan],["Egyptian_Hieroglyphs",A.Egyptian_Hieroglyphs],["Elbasan",A.Elbasan],["Elymaic",A.Elymaic],["Ethiopic",A.Ethiopic],["Georgian",A.Georgian],["Glagolitic",A.Glagolitic],["Gothic",A.Gothic],["Grantha",A.Grantha],["Greek",A.Greek],["Gujarati",A.Gujarati],["Gunjala_Gondi",A.Gunjala_Gondi],["Gurmukhi",A.Gurmukhi],["Han",A.Han],["Hangul",A.Hangul],["Hanifi_Rohingya",A.Hanifi_Rohingya],["Hanunoo",A.Hanunoo],["Hatran",A.Hatran],["Hebrew",A.Hebrew],["Hiragana",A.Hiragana],["Imperial_Aramaic",A.Imperial_Aramaic],["Inherited",A.Inherited],["Inscriptional_Pahlavi",A.Inscriptional_Pahlavi],["Inscriptional_Parthian",A.Inscriptional_Parthian],["Javanese",A.Javanese],["Kaithi",A.Kaithi],["Kannada",A.Kannada],["Katakana",A.Katakana],["Kawi",A.Kawi],["Kayah_Li",A.Kayah_Li],["Kharoshthi",A.Kharoshthi],["Khitan_Small_Script",A.Khitan_Small_Script],["Khmer",A.Khmer],["Khojki",A.Khojki],["Khudawadi",A.Khudawadi],["Lao",A.Lao],["Latin",A.Latin],["Lepcha",A.Lepcha],["Limbu",A.Limbu],["Linear_A",A.Linear_A],["Linear_B",A.Linear_B],["Lisu",A.Lisu],["Lycian",A.Lycian],["Lydian",A.Lydian],["Mahajani",A.Mahajani],["Makasar",A.Makasar],["Malayalam",A.Malayalam],["Mandaic",A.Mandaic],["Manichaean",A.Manichaean],["Marchen",A.Marchen],["Masaram_Gondi",A.Masaram_Gondi],["Medefaidrin",A.Medefaidrin],["Meetei_Mayek",A.Meetei_Mayek],["Mende_Kikakui",A.Mende_Kikakui],["Meroitic_Cursive",A.Meroitic_Cursive],["Meroitic_Hieroglyphs",A.Meroitic_Hieroglyphs],["Miao",A.Miao],["Modi",A.Modi],["Mongolian",A.Mongolian],["Mro",A.Mro],["Multani",A.Multani],["Myanmar",A.Myanmar],["Nabataean",A.Nabataean],["Nag_Mundari",A.Nag_Mundari],["Nandinagari",A.Nandinagari],["New_Tai_Lue",A.New_Tai_Lue],["Newa",A.Newa],["Nko",A.Nko],["Nushu",A.Nushu],["Nyiakeng_Puachue_Hmong",A.Nyiakeng_Puachue_Hmong],["Ogham",A.Ogham],["Ol_Chiki",A.Ol_Chiki],["Old_Hungarian",A.Old_Hungarian],["Old_Italic",A.Old_Italic],["Old_North_Arabian",A.Old_North_Arabian],["Old_Permic",A.Old_Permic],["Old_Persian",A.Old_Persian],["Old_Sogdian",A.Old_Sogdian],["Old_South_Arabian",A.Old_South_Arabian],["Old_Turkic",A.Old_Turkic],["Old_Uyghur",A.Old_Uyghur],["Oriya",A.Oriya],["Osage",A.Osage],["Osmanya",A.Osmanya],["Pahawh_Hmong",A.Pahawh_Hmong],["Palmyrene",A.Palmyrene],["Pau_Cin_Hau",A.Pau_Cin_Hau],["Phags_Pa",A.Phags_Pa],["Phoenician",A.Phoenician],["Psalter_Pahlavi",A.Psalter_Pahlavi],["Rejang",A.Rejang],["Runic",A.Runic],["Samaritan",A.Samaritan],["Saurashtra",A.Saurashtra],["Sharada",A.Sharada],["Shavian",A.Shavian],["Siddham",A.Siddham],["SignWriting",A.SignWriting],["Sinhala",A.Sinhala],["Sogdian",A.Sogdian],["Sora_Sompeng",A.Sora_Sompeng],["Soyombo",A.Soyombo],["Sundanese",A.Sundanese],["Syloti_Nagri",A.Syloti_Nagri],["Syriac",A.Syriac],["Tagalog",A.Tagalog],["Tagbanwa",A.Tagbanwa],["Tai_Le",A.Tai_Le],["Tai_Tham",A.Tai_Tham],["Tai_Viet",A.Tai_Viet],["Takri",A.Takri],["Tamil",A.Tamil],["Tangsa",A.Tangsa],["Tangut",A.Tangut],["Telugu",A.Telugu],["Thaana",A.Thaana],["Thai",A.Thai],["Tibetan",A.Tibetan],["Tifinagh",A.Tifinagh],["Tirhuta",A.Tirhuta],["Toto",A.Toto],["Ugaritic",A.Ugaritic],["Vai",A.Vai],["Vithkuqi",A.Vithkuqi],["Wancho",A.Wancho],["Warang_Citi",A.Warang_Citi],["Yezidi",A.Yezidi],["Yi",A.Yi],["Zanabazar_Square",A.Zanabazar_Square]])),D(A,"FOLD_CATEGORIES",new Map([["L",A.foldL],["Ll",A.foldLl],["Lt",A.foldLt],["Lu",A.foldLu],["M",A.foldM],["Mn",A.foldMn]])),D(A,"FOLD_SCRIPT",new Map([["Common",A.foldCommon],["Greek",A.foldGreek],["Inherited",A.foldInherited]]));let Rn=A;class kt{static is32(t,e){let s=0,a=t.length;for(;s<a;){let l=s+Math.floor((a-s)/2),c=t[l];if(c[0]<=e&&e<=c[1])return(e-c[0])%c[2]===0;e<c[0]?a=l:s=l+1}return!1}static is(t,e){if(e<=this.MAX_LATIN1){for(let s of t)if(!(e>s[1]))return e<s[0]?!1:(e-s[0])%s[2]===0;return!1}return t.length>0&&e>=t[0][0]&&this.is32(t,e)}static isUpper(t){if(t<=this.MAX_LATIN1){const e=String.fromCodePoint(t);return e.toUpperCase()===e&&e.toLowerCase()!==e}return this.is(Rn.Upper,t)}static isPrint(t){return t<=this.MAX_LATIN1?t>=32&&t<127||t>=161&&t!==173:this.is(Rn.L,t)||this.is(Rn.M,t)||this.is(Rn.N,t)||this.is(Rn.P,t)||this.is(Rn.S,t)}
589static simpleFold(t){if(Rn.CASE_ORBIT.has(t))return Rn.CASE_ORBIT.get(t);const e=$.toLowerCase(t);return e!==t?e:$.toUpperCase(t)}static equalsIgnoreCase(t,e){if(t<0||e<0||t===e)return!0;if(t<=this.MAX_ASCII&&e<=this.MAX_ASCII)return $.CODES.get("A")<=t&&t<=$.CODES.get("Z")&&(t|=32),$.CODES.get("A")<=e&&e<=$.CODES.get("Z")&&(e|=32),t===e;for(let s=this.simpleFold(t);s!==t;s=this.simpleFold(s))if(s===e)return!0;return!1}}D(kt,"MAX_RUNE",1114111),D(kt,"MAX_ASCII",127),D(kt,"MAX_LATIN1",255),D(kt,"MAX_BMP",65535),D(kt,"MIN_FOLD",65),D(kt,"MAX_FOLD",125251);class Yt{static emptyInts(){return[]}static isalnum(t){return $.CODES.get("0")<=t&&t<=$.CODES.get("9")||$.CODES.get("a")<=t&&t<=$.CODES.get("z")||$.CODES.get("A")<=t&&t<=$.CODES.get("Z")}static unhex(t){return $.CODES.get("0")<=t&&t<=$.CODES.get("9")?t-$.CODES.get("0"):$.CODES.get("a")<=t&&t<=$.CODES.get("f")?t-$.CODES.get("a")+10:$.CODES.get("A")<=t&&t<=$.CODES.get("F")?t-$.CODES.get("A")+10:-1}static escapeRune(t){let e="";if(kt.isPrint(t))this.METACHARACTERS.indexOf(String.fromCodePoint(t))>=0&&(e+="\\"),e+=String.fromCodePoint(t);else switch(t){case $.CODES.get('"'):e+='\\"';break;case $.CODES.get("\\"):e+="\\\\";break;case $.CODES.get(" "):e+="\\t";break;case $.CODES.get(` 590`):e+="\\n";break;case $.CODES.get("\r"):e+="\\r";break;case $.CODES.get("\b"):e+="\\b";break;case $.CODES.get("\f"):e+="\\f";break;default:{let s=t.toString(16);t<256?(e+="\\x",s.length===1&&(e+="0"),e+=s):e+=`\\x{${s}}`;break}}return e}static stringToRunes(t){return String(t).split("").map(e=>e.codePointAt(0))}static runeToString(t){return String.fromCodePoint(t)}static isWordRune(t){return $.CODES.get("a")<=t&&t<=$.CODES.get("z")||$.CODES.get("A")<=t&&t<=$.CODES.get("Z")||$.CODES.get("0")<=t&&t<=$.CODES.get("9")||t===$.CODES.get("_")}static emptyOpContext(t,e){let s=0;return t<0&&(s|=this.EMPTY_BEGIN_TEXT|this.EMPTY_BEGIN_LINE),t===$.CODES.get(` 591`)&&(s|=this.EMPTY_BEGIN_LINE),e<0&&(s|=this.EMPTY_END_TEXT|this.EMPTY_END_LINE),e===$.CODES.get(` 592`)&&(s|=this.EMPTY_END_LINE),this.isWordRune(t)!==this.isWordRune(e)?s|=this.EMPTY_WORD_BOUNDARY:s|=this.EMPTY_NO_WORD_BOUNDARY,s}static quoteMeta(t){return t.split("").map(e=>this.METACHARACTERS.indexOf(e)>=0?`\\${e}`:e).join("")}static charCount(t){return t>kt.MAX_BMP?2:1}static stringToUtf8ByteArray(t){if(globalThis.TextEncoder)return Array.from(new TextEncoder().encode(t));{let e=[],s=0;for(let a=0;a<t.length;a++){let l=t.charCodeAt(a);l<128?e[s++]=l:l<2048?(e[s++]=l>>6|192,e[s++]=l&63|128):(l&64512)===55296&&a+1<t.length&&(t.charCodeAt(a+1)&64512)===56320?(l=65536+((l&1023)<<10)+(t.charCodeAt(++a)&1023),e[s++]=l>>18|240,e[s++]=l>>12&63|128,e[s++]=l>>6&63|128,e[s++]=l&63|128):(e[s++]=l>>12|224,e[s++]=l>>6&63|128,e[s++]=l&63|128)}return e}}static utf8ByteArrayToString(t){if(globalThis.TextDecoder)return new TextDecoder("utf-8").decode(new Uint8Array(t));{let e=[],s=0,a=0;for(;s<t.length;){let l=t[s++];if(l<128)e[a++]=String.fromCharCode(l);else if(l>191&&l<224){let c=t[s++];e[a++]=String.fromCharCode((l&31)<<6|c&63)}else if(l>239&&l<365){let c=t[s++],h=t[s++],m=t[s++],g=((l&7)<<18|(c&63)<<12|(h&63)<<6|m&63)-65536;e[a++]=String.fromCharCode(55296+(g>>10)),e[a++]=String.fromCharCode(56320+(g&1023))}else{let c=t[s++],h=t[s++];e[a++]=String.fromCharCode((l&15)<<12|(c&63)<<6|h&63)}}return e.join("")}}}D(Yt,"METACHARACTERS","\\.+*?()|[]{}^$"),D(Yt,"EMPTY_BEGIN_LINE",1),D(Yt,"EMPTY_END_LINE",2),D(Yt,"EMPTY_BEGIN_TEXT",4),D(Yt,"EMPTY_END_TEXT",8),D(Yt,"EMPTY_WORD_BOUNDARY",16),D(Yt,"EMPTY_NO_WORD_BOUNDARY",32),D(Yt,"EMPTY_ALL",-1);const by=(n=[],t=0)=>{const e={};for(let s=0;s<n.length;s++){const a=n[s],l=t+s;e[a]=l,e[l]=a}return Object.freeze(e)},lc=class lc{getEncoding(){throw Error("not implemented")}isUTF8Encoding(){return this.getEncoding()===lc.Encoding.UTF_8}isUTF16Encoding(){return this.getEncoding()===lc.Encoding.UTF_16}};D(lc,"Encoding",by(["UTF_16","UTF_8"]));let sa=lc;class a8 extends sa{constructor(t=null){super(),this.bytes=t}getEncoding(){return sa.Encoding.UTF_8}asCharSequence(){return Yt.utf8ByteArrayToString(this.bytes)}asBytes(){return this.bytes}length(){return this.bytes.length}}class LR extends sa{constructor(t=null){super(),this.charSequence=t}getEncoding(){return sa.Encoding.UTF_16}asCharSequence(){return this.charSequence}asBytes(){return this.charSequence.toString().split("").map(t=>t.codePointAt(0))}length(){return this.charSequence.length}}class hf{static utf16(t){return new LR(t)}static utf8(t){return Array.isArray(t)?new a8(t):new a8(Yt.stringToUtf8ByteArray(t))}}
592class If extends Error{constructor(t){super(t),this.name="RE2JSException"}}class je extends If{constructor(t,e=null){let s=`error parsing regexp: ${t}`;e&&(s+=`: \`${e}\``),super(s),this.name="RE2JSSyntaxException",this.message=s,this.error=t,this.input=e}getDescription(){return this.error}getPattern(){return this.input}}class kR extends If{constructor(t){super(t),this.name="RE2JSCompileException"}}class tr extends If{constructor(t){super(t),this.name="RE2JSGroupException"}}class jR extends If{constructor(t){super(t),this.name="RE2JSFlagsException"}}class BR{static quoteReplacement(t){return t.indexOf("\\")<0&&t.indexOf("$")<0?t:t.split("").map(e=>{const s=e.codePointAt(0);return s===$.CODES["\\"]||s===$.CODES.$?`\\${e}`:e}).join("")}constructor(t,e){if(t===null)throw new Error("pattern is null");this.patternInput=t;const s=this.patternInput.re2();this.patternGroupCount=s.numberOfCapturingGroups(),this.groups=[],this.namedGroups=s.namedGroups,e instanceof sa?this.resetMatcherInput(e):Array.isArray(e)?this.resetMatcherInput(hf.utf8(e)):this.resetMatcherInput(hf.utf16(e))}pattern(){return this.patternInput}reset(){return this.matcherInputLength=this.matcherInput.length(),this.appendPos=0,this.hasMatch=!1,this.hasGroups=!1,this.anchorFlag=0,this}resetMatcherInput(t){if(t===null)throw new Error("input is null");return this.matcherInput=t,this.reset(),this}start(t=0){if(typeof t=="string"){const e=this.namedGroups[t];if(!Number.isFinite(e))throw new tr(`group '${t}' not found`);t=e}return this.loadGroup(t),this.groups[2*t]}end(t=0){if(typeof t=="string"){const e=this.namedGroups[t];if(!Number.isFinite(e))throw new tr(`group '${t}' not found`);t=e}return this.loadGroup(t),this.groups[2*t+1]}group(t=0){if(typeof t=="string"){const a=this.namedGroups[t];if(!Number.isFinite(a))throw new tr(`group '${t}' not found`);t=a}const e=this.start(t),s=this.end(t);return e<0&&s<0?null:this.substring(e,s)}groupCount(){return this.patternGroupCount}loadGroup(t){if(t<0||t>this.patternGroupCount)throw new tr(`Group index out of bounds: ${t}`);if(!this.hasMatch)throw new tr("perhaps no match attempted");if(t===0||this.hasGroups)return;let e=this.groups[1]+1;e>this.matcherInputLength&&(e=this.matcherInputLength);const s=this.patternInput.re2().matchMachineInput(this.matcherInput,this.groups[0],e,this.anchorFlag,1+this.patternGroupCount);if(!s[0])throw new tr("inconsistency in matching group data");this.groups=s[1],this.hasGroups=!0}matches(){return this.genMatch(0,Tt.ANCHOR_BOTH)}lookingAt(){return this.genMatch(0,Tt.ANCHOR_START)}find(t=null){if(t!==null){if(t<0||t>this.matcherInputLength)throw new tr(`start index out of bounds: ${t}`);return this.reset(),this.genMatch(t,0)}return t=0,this.hasMatch&&(t=this.groups[1],this.groups[0]===this.groups[1]&&t++),this.genMatch(t,Tt.UNANCHORED)}genMatch(t,e){const s=this.patternInput.re2().matchMachineInput(this.matcherInput,t,this.matcherInputLength,e,1);return s[0]?(this.groups=s[1],this.hasMatch=!0,this.hasGroups=!1,this.anchorFlag=e,!0):!1}substring(t,e){return this.matcherInput.isUTF8Encoding()?Yt.utf8ByteArrayToString(this.matcherInput.asBytes().slice(t,e)):this.matcherInput.asCharSequence().substring(t,e).toString()}inputLength(){return this.matcherInputLength}appendReplacement(t,e=!1){let s="";const a=this.start(),l=this.end();return this.appendPos<a&&(s+=this.substring(this.appendPos,a)),this.appendPos=l,s+=e?this.appendReplacementInternalPerl(t):this.appendReplacementInternal(t),s}appendReplacementInternal(t){let e="",s=0;const a=t.length;for(let l=0;l<a-1;l++){if(t.codePointAt(l)===$.CODES.get("\\")){s<l&&(e+=t.substring(s,l)),l++,s=l;continue}if(t.codePointAt(l)===$.CODES.get("$")){let c=t.codePointAt(l+1);if($.CODES.get("0")<=c&&c<=$.CODES.get("9")){let h=c-$.CODES.get("0");for(s<l&&(e+=t.substring(s,l)),l+=2;l<a&&(c=t.codePointAt(l),!(c<$.CODES.get("0")||c>$.CODES.get("9")||h*10+c-$.CODES.get("0")>this.patternGroupCount));l++)h=h*10+c-$.CODES.get("0");if(h>this.patternGroupCount)throw new tr(`n > number of groups: ${h}`);const m=this.group(h);m!==null&&(e+=m),s=l,l--;continue}else if(c===$.CODES.get("{")){s<l&&(e+=t.substring(s,l)),l++;let h=l+1;for(;h<t.length&&t.codePointAt(h)!==$.CODES.get("}")&&t.codePointAt(h)!==$.CODES.get(" ");)h++;if(h===t.length||t.codePointAt(h)!==$.CODES.get("}"))throw new tr("named capture group is missing trailing '}'");const m=t.substring(l+1,h);e+=this.group(m),s=h+1}}}return s<a&&(e+=t.substring(s,a)),e}appendReplacementInternalPerl(t){let e="",s=0;const a=t.length;for(let l=0;l<a-1;l++)if(t.codePointAt(l)===$.CODES.get("$")){let c=t.codePointAt(l+1);if($.CODES.get("$")===c){s<l&&(e+=t.substring(s,l)),e+="$",l++,s=l+1;continue}else if($.CODES.get("&")===c){s<l&&(e+=t.substring(s,l));const h=this.group(0);h!==null?e+=h:e+="$&",l++,s=l+1;continue}else if($.CODES.get("1")<=c&&c<=$.CODES.get("9")){let h=c-$.CODES.get("0");for(s<l&&(e+=t.substring(s,l)),l+=2;l<a&&(c=t.codePointAt(l),!(c<$.CODES.get("0")||c>$.CODES.get("9")||h*10+c-$.CODES.get("0")>this.patternGroupCount));l++)h=h*10+c-$.CODES.get("0");if(h>this.patternGroupCount){e+=`$${h}`,s=l,l--;continue}const m=this.group(h);m!==null&&(e+=m),s=l,l--;continue}
592else if(c===$.CODES.get("<")){s<l&&(e+=t.substring(s,l)),l++;let h=l+1;for(;h<t.length&&t.codePointAt(h)!==$.CODES.get(">")&&t.codePointAt(h)!==$.CODES.get(" ");)h++;if(h===t.length||t.codePointAt(h)!==$.CODES.get(">")){e+=t.substring(l-1,h+1),s=h+1;continue}const m=t.substring(l+1,h);Object.prototype.hasOwnProperty.call(this.namedGroups,m)?e+=this.group(m):e+=`$<${m}>`,s=h+1}}return s<a&&(e+=t.substring(s,a)),e}appendTail(){return this.substring(this.appendPos,this.matcherInputLength)}replaceAll(t,e=!1){return this.replace(t,!0,e)}replaceFirst(t,e=!1){return this.replace(t,!1,e)}replace(t,e=!0,s=!1){let a="";for(this.reset();this.find()&&(a+=this.appendReplacement(t,s),!!e););return a+=this.appendTail(),a}}class Yr{static EOF(){return-8}canCheckPrefix(){return!0}endPos(){return this.end}}class UR extends Yr{constructor(t,e=0,s=t.length){super(),this.bytes=t,this.start=e,this.end=s}step(t){if(t+=this.start,t>=this.end)return Yr.EOF();let e=this.bytes[t++]&255;return(e&128)===0?e<<3|1:(e&224)===192?(e=e&31,t>=this.end?Yr.EOF():(e=e<<6|this.bytes[t++]&63,e<<3|2)):(e&240)===224?(e=e&15,t+1>=this.end?Yr.EOF():(e=e<<6|this.bytes[t++]&63,e=e<<6|this.bytes[t++]&63,e<<3|3)):(e=e&7,t+2>=this.end?Yr.EOF():(e=e<<6|this.bytes[t++]&63,e=e<<6|this.bytes[t++]&63,e=e<<6|this.bytes[t++]&63,e<<3|4))}index(t,e){e+=this.start;const s=this.indexOf(this.bytes,t.prefixUTF8,e);return s<0?s:s-e}context(t){t+=this.start;let e=-1;if(t>this.start&&t<=this.end){let a=t-1;if(e=this.bytes[a--],e>=128){let l=t-4;for(l<this.start&&(l=this.start);a>=l&&(this.bytes[a]&192)===128;)a--;a<this.start&&(a=this.start),e=this.step(a)>>3}}const s=t<this.end?this.step(t)>>3:-1;return Yt.emptyOpContext(e,s)}indexOf(t,e,s=0){let a=e.length;if(a===0)return-1;let l=t.length;for(let c=s;c<=l-a;c++)for(let h=0;h<a&&t[c+h]===e[h];h++)if(h===a-1)return c;return-1}}class zR extends Yr{constructor(t,e=0,s=t.length){super(),this.charSequence=t,this.start=e,this.end=s}step(t){if(t+=this.start,t<this.end){const e=this.charSequence.codePointAt(t);return e<<3|Yt.charCount(e)}else return Yr.EOF()}index(t,e){e+=this.start;const s=this.charSequence.indexOf(t.prefix,e);return s<0?s:s-e}context(t){t+=this.start;const e=t>0&&t<=this.charSequence.length?this.charSequence.codePointAt(t-1):-1,s=t<this.charSequence.length?this.charSequence.codePointAt(t):-1;return Yt.emptyOpContext(e,s)}}class Be{static fromUTF8(t,e=0,s=t.length){return new UR(t,e,s)}static fromUTF16(t,e=0,s=t.length){return new zR(t,e,s)}}const Lt=class Lt{static isPseudoOp(t){return t>=Lt.Op.LEFT_PAREN}static emptySubs(){return[]}static quoteIfHyphen(t){return t===$.CODES.get("-")?"\\":""}static fromRegexp(t){const e=new Lt(t.op);return e.flags=t.flags,e.subs=t.subs,e.runes=t.runes,e.cap=t.cap,e.min=t.min,e.max=t.max,e.name=t.name,e.namedGroups=t.namedGroups,e}constructor(t){this.op=t,this.flags=0,this.subs=Lt.emptySubs(),this.runes=null,this.min=0,this.max=0,this.cap=0,this.name=null,this.namedGroups={}}reinit(){this.flags=0,this.subs=Lt.emptySubs(),this.runes=null,this.cap=0,this.min=0,this.max=0,this.name=null,this.namedGroups={}}toString(){return this.appendTo()}appendTo(){let t="";switch(this.op){case Lt.Op.NO_MATCH:t+="[^\\x00-\\x{10FFFF}]";break;case Lt.Op.EMPTY_MATCH:t+="(?:)";break;case Lt.Op.STAR:case Lt.Op.PLUS:case Lt.Op.QUEST:case Lt.Op.REPEAT:{const e=this.subs[0];switch(e.op>Lt.Op.CAPTURE||e.op===Lt.Op.LITERAL&&e.runes.length>1?t+=`(?:${e.appendTo()})`:t+=e.appendTo(),this.op){case Lt.Op.STAR:t+="*";break;case Lt.Op.PLUS:t+="+";break;case Lt.Op.QUEST:t+="?";break;case Lt.Op.REPEAT:t+=`{${this.min}`,this.min!==this.max&&(t+=",",this.max>=0&&(t+=this.max)),t+="}";break}(this.flags&Tt.NON_GREEDY)!==0&&(t+="?");break}case Lt.Op.CONCAT:{for(let e of this.subs)e.op===Lt.Op.ALTERNATE?t+=`(?:${e.appendTo()})`:t+=e.appendTo();break}case Lt.Op.ALTERNATE:{let e="";for(let s of this.subs)t+=e,e="|",t+=s.appendTo();break}case Lt.Op.LITERAL:(this.flags&Tt.FOLD_CASE)!==0&&(t+="(?i:");for(let e of this.runes)t+=Yt.escapeRune(e);(this.flags&Tt.FOLD_CASE)!==0&&(t+=")");break;case Lt.Op.ANY_CHAR_NOT_NL:t+="(?-s:.)";break;case Lt.Op.ANY_CHAR:t+="(?s:.)";break;case Lt.Op.CAPTURE:this.name===null||this.name.length===0?t+="(":t+=`(?P<${this.name}>
592`,this.subs[0].op!==Lt.Op.EMPTY_MATCH&&(t+=this.subs[0].appendTo()),t+=")";break;case Lt.Op.BEGIN_TEXT:t+="\\A";break;case Lt.Op.END_TEXT:(this.flags&Tt.WAS_DOLLAR)!==0?t+="(?-m:$)":t+="\\z";break;case Lt.Op.BEGIN_LINE:t+="^";break;case Lt.Op.END_LINE:t+="$";break;case Lt.Op.WORD_BOUNDARY:t+="\\b";break;case Lt.Op.NO_WORD_BOUNDARY:t+="\\B";break;case Lt.Op.CHAR_CLASS:if(this.runes.length%2!==0){t+="[invalid char class]";break}if(t+="[",this.runes.length===0)t+="^\\x00-\\x{10FFFF}";else if(this.runes[0]===0&&this.runes[this.runes.length-1]===kt.MAX_RUNE){t+="^";for(let e=1;e<this.runes.length-1;e+=2){const s=this.runes[e]+1,a=this.runes[e+1]-1;t+=Lt.quoteIfHyphen(s),t+=Yt.escapeRune(s),s!==a&&(t+="-",t+=Lt.quoteIfHyphen(a),t+=Yt.escapeRune(a))}}else for(let e=0;e<this.runes.length;e+=2){const s=this.runes[e],a=this.runes[e+1];t+=Lt.quoteIfHyphen(s),t+=Yt.escapeRune(s),s!==a&&(t+="-",t+=Lt.quoteIfHyphen(a),t+=Yt.escapeRune(a))}t+="]";break;default:t+=this.op;break}return t}maxCap(){let t=0;if(this.op===Lt.Op.CAPTURE&&(t=this.cap),this.subs!==null)for(let e of this.subs){const s=e.maxCap();t<s&&(t=s)}return t}equals(t){if(!(t!==null&&t instanceof Lt)||this.op!==t.op)return!1;switch(this.op){case Lt.Op.END_TEXT:{if((this.flags&Tt.WAS_DOLLAR)!==(t.flags&Tt.WAS_DOLLAR))return!1;break}case Lt.Op.LITERAL:case Lt.Op.CHAR_CLASS:{if(this.runes===null&&t.runes===null)break;if(this.runes===null||t.runes===null||this.runes.length!==t.runes.length)return!1;for(let e=0;e<this.runes.length;e++)if(this.runes[e]!==t.runes[e])return!1;break}case Lt.Op.ALTERNATE:case Lt.Op.CONCAT:{if(this.subs.length!==t.subs.length)return!1;for(let e=0;e<this.subs.length;++e)if(!this.subs[e].equals(t.subs[e]))return!1;break}case Lt.Op.STAR:case Lt.Op.PLUS:case Lt.Op.QUEST:{if((this.flags&Tt.NON_GREEDY)!==(t.flags&Tt.NON_GREEDY)||!this.subs[0].equals(t.subs[0]))return!1;break}case Lt.Op.REPEAT:{if((this.flags&Tt.NON_GREEDY)!==(t.flags&Tt.NON_GREEDY)||this.min!==t.min||this.max!==t.max||!this.subs[0].equals(t.subs[0]))return!1;break}case Lt.Op.CAPTURE:{if(this.cap!==t.cap||(this.name===null?t.name!==null:this.name!==t.name)||!this.subs[0].equals(t.subs[0]))return!1;break}}return!0}};D(Lt,"Op",by(["NO_MATCH","EMPTY_MATCH","LITERAL","CHAR_CLASS","ANY_CHAR_NOT_NL","ANY_CHAR","BEGIN_LINE","END_LINE","BEGIN_TEXT","END_TEXT","WORD_BOUNDARY","NO_WORD_BOUNDARY","CAPTURE","STAR","PLUS","QUEST","REPEAT","CONCAT","ALTERNATE","LEFT_PAREN","VERTICAL_BAR"]));let it=Lt;const ye=class ye{static isRuneOp(t){return ye.RUNE<=t&&t<=ye.RUNE_ANY_NOT_NL}static escapeRunes(t){let e='"';for(let s of t)e+=Yt.escapeRune(s);return e+='"',e}constructor(t){this.op=t,this.out=0,this.arg=0,this.runes=null}matchRune(t){if(this.runes.length===1){const a=this.runes[0];return(this.arg&Tt.FOLD_CASE)!==0?kt.equalsIgnoreCase(a,t):t===a}for(let a=0;a<this.runes.length&&a<=8;a+=2){if(t<this.runes[a])return!1;if(t<=this.runes[a+1])return!0}let e=0,s=this.runes.length/2|0;for(;e<s;){const a=e+((s-e)/2|0);if(this.runes[2*a]<=t){if(t<=this.runes[2*a+1])return!0;e=a+1}else s=a}return!1}toString(){switch(this.op){case ye.ALT:return`alt -> ${this.out}, ${this.arg}`;case ye.ALT_MATCH:return`altmatch -> ${this.out}, ${this.arg}`;case ye.CAPTURE:return`cap ${this.arg} -> ${this.out}`;case ye.EMPTY_WIDTH:return`empty ${this.arg} -> ${this.out}`;case ye.MATCH:return"match";case ye.FAIL:return"fail";case ye.NOP:return`nop -> ${this.out}`;case ye.RUNE:return this.runes===null?"rune <null>":["rune ",ye.escapeRunes(this.runes),(this.arg&Tt.FOLD_CASE)!==0?"/i":""," -> ",this.out].join("");case ye.RUNE1:return`rune1 ${ye.escapeRunes(this.runes)} -> ${this.out}`;case ye.RUNE_ANY:return`any -> ${this.out}`;case ye.RUNE_ANY_NOT_NL:return`anynotnl -> ${this.out}`;default:throw new Error("unhandled case in Inst.toString")}}};D(ye,"ALT",1),D(ye,"ALT_MATCH",2),D(ye,"CAPTURE",3),D(ye,"EMPTY_WIDTH",4),D(ye,"FAIL",5),D(ye,"MATCH",6),D(ye,"NOP",7),D(ye,"RUNE",8),D(ye,"RUNE1",9),D(ye,"RUNE_ANY",10),D(ye,"RUNE_ANY_NOT_NL",11);let Kt=ye;class FR{constructor(){this.inst=[],this.start=0,this.numCap=2}getInst(t){return this.inst[t]}numInst(){return this.inst.length}addInst(t){this.inst.push(new Kt(t))}skipNop(t){let e=this.inst[t];for(;e.op===Kt.NOP||e.op===Kt.CAPTURE;)e=this.inst[t],t=e.out;return e}prefix(){let t="",e=this.skipNop(this.start);if(!Kt.isRuneOp(e.op)||e.runes.length!==1)return[e.op===Kt.MATCH,t];for(;Kt.isRuneOp(e.op)&&e.runes.length===1&&(e.arg&Tt.FOLD_CASE)===0;)t+=String.fromCodePoint(e.runes[0]),e=this.skipNop(e.out);return[e.op===Kt.MATCH,t]}startCond(){let t=0,e=this.start;t:for(;;){const s=this.inst[e];switch(s.op){case Kt.EMPTY_WIDTH:t|=s.arg;break;case Kt.FAIL:return-1;case Kt.CAPTURE:case Kt.NOP:break;default:break t}e=s.out}return t}next(t){const e=this.inst[t>>1];return(t&1)===0?e.out:e.arg}patch(t,e){for(;t!==0;){const s=this.inst[t>>1];(t&1)===0?(t=s.out,s.out=e):(t=s.arg,s.arg=e)}}append(t,e){if(t===0)return e;if(e===0)return t;let s=t;for(;;){const l=this.next(s);if(l===0)break;s=l}const a=this.inst[s>>1];return(s&1)===0?a.out=e:a.arg=e,t}toString(){let t="";for(let e=0;e<this.inst.length;e++){const s=t.length;t+=e,e===this.start&&(t+="*"),t+=" ".substring(t.length-s),t+=this.inst[e],t+=` 593`}return t}}class Ch{constructor(t=0,e=0,s=!1){this.i=t,this.out=e,this.nullable=s}}class Ju{static ANY_RUNE_NOT_NL(){return[0,$.CODES.get(` 594`)-1,$.CODES.get(` 595`)+1,kt.MAX_RUNE]}static ANY_RUNE(){return[0,kt.MAX_RUNE]}static compileRegexp(t){const e=new Ju,s=e.compile(t);return e.prog.patch(s.out,e.newInst(Kt.MATCH).i),e.prog.start=s.i,e.prog}constructor(){this.prog=new FR,this.newInst(Kt.FAIL)}newInst(t){return this.prog.addInst(t),new Ch(this.prog.numInst()-1,0,!0)}nop(){const t=this.newInst(Kt.NOP);return t.out=t.i<<1,t}fail(){return new Ch}cap(t){const e=this.newInst(Kt.CAPTURE);return e.out=e.i<<1,this.prog.getInst(e.i).arg=t,this.prog.numCap<t+1&&(this.prog.numCap=t+1),e}cat(t,e){return t.i===0||e.i===0?this.fail():(this.prog.patch(t.out,e.i),new Ch(t.i,e.out,t.nullable&&e.nullable))}alt(t,e){if(t.i===0)return e;if(e.i===0)return t;const s=this.newInst(Kt.ALT),a=this.prog.getInst(s.i);return a.out=t.i,a.arg=e.i,s.out=this.prog.append(t.out,e.out),s.nullable=t.nullable||e.nullable,s}loop(t,e){const s=this.newInst(Kt.ALT),a=this.prog.getInst(s.i);
595return e?(a.arg=t.i,s.out=s.i<<1):(a.out=t.i,s.out=s.i<<1|1),this.prog.patch(t.out,s.i),s}quest(t,e){const s=this.newInst(Kt.ALT),a=this.prog.getInst(s.i);return e?(a.arg=t.i,s.out=s.i<<1):(a.out=t.i,s.out=s.i<<1|1),s.out=this.prog.append(s.out,t.out),s}star(t,e){return t.nullable?this.quest(this.plus(t,e),e):this.loop(t,e)}plus(t,e){return new Ch(t.i,this.loop(t,e).out,t.nullable)}empty(t){const e=this.newInst(Kt.EMPTY_WIDTH);return this.prog.getInst(e.i).arg=t,e.out=e.i<<1,e}rune(t,e){const s=this.newInst(Kt.RUNE);s.nullable=!1;const a=this.prog.getInst(s.i);return a.runes=t,e&=Tt.FOLD_CASE,(t.length!==1||kt.simpleFold(t[0])===t[0])&&(e&=-2),a.arg=e,s.out=s.i<<1,(e&Tt.FOLD_CASE)===0&&t.length===1||t.length===2&&t[0]===t[1]?a.op=Kt.RUNE1:t.length===2&&t[0]===0&&t[1]===kt.MAX_RUNE?a.op=Kt.RUNE_ANY:t.length===4&&t[0]===0&&t[1]===$.CODES.get(` 596`)-1&&t[2]===$.CODES.get(` 597`)+1&&t[3]===kt.MAX_RUNE&&(a.op=Kt.RUNE_ANY_NOT_NL),s}compile(t){switch(t.op){case it.Op.NO_MATCH:return this.fail();case it.Op.EMPTY_MATCH:return this.nop();case it.Op.LITERAL:if(t.runes.length===0)return this.nop();{let e=null;for(let s of t.runes){const a=this.rune([s],t.flags);e=e===null?a:this.cat(e,a)}return e}case it.Op.CHAR_CLASS:return this.rune(t.runes,t.flags);case it.Op.ANY_CHAR_NOT_NL:return this.rune(Ju.ANY_RUNE_NOT_NL(),0);case it.Op.ANY_CHAR:return this.rune(Ju.ANY_RUNE(),0);case it.Op.BEGIN_LINE:return this.empty(Yt.EMPTY_BEGIN_LINE);case it.Op.END_LINE:return this.empty(Yt.EMPTY_END_LINE);case it.Op.BEGIN_TEXT:return this.empty(Yt.EMPTY_BEGIN_TEXT);case it.Op.END_TEXT:return this.empty(Yt.EMPTY_END_TEXT);case it.Op.WORD_BOUNDARY:return this.empty(Yt.EMPTY_WORD_BOUNDARY);case it.Op.NO_WORD_BOUNDARY:return this.empty(Yt.EMPTY_NO_WORD_BOUNDARY);case it.Op.CAPTURE:{const e=this.cap(t.cap<<1),s=this.compile(t.subs[0]),a=this.cap(t.cap<<1|1);return this.cat(this.cat(e,s),a)}case it.Op.STAR:return this.star(this.compile(t.subs[0]),(t.flags&Tt.NON_GREEDY)!==0);case it.Op.PLUS:return this.plus(this.compile(t.subs[0]),(t.flags&Tt.NON_GREEDY)!==0);case it.Op.QUEST:return this.quest(this.compile(t.subs[0]),(t.flags&Tt.NON_GREEDY)!==0);case it.Op.CONCAT:{if(t.subs.length===0)return this.nop();{let e=null;for(let s of t.subs){const a=this.compile(s);e=e===null?a:this.cat(e,a)}return e}}case it.Op.ALTERNATE:{if(t.subs.length===0)return this.nop();{let e=null;for(let s of t.subs){const a=this.compile(s);e=e===null?a:this.alt(e,a)}return e}}default:throw new kR("regexp: unhandled case in compile")}}}class $i{static simplify(t){if(t===null)return null;switch(t.op){case it.Op.CAPTURE:case it.Op.CONCAT:case it.Op.ALTERNATE:{let e=t;for(let s=0;s<t.subs.length;s++){const a=t.subs[s],l=$i.simplify(a);e===t&&l!==a&&(e=it.fromRegexp(t),e.runes=null,e.subs=t.subs.slice(0,t.subs.length)),e!==t&&(e.subs[s]=l)}return e}case it.Op.STAR:case it.Op.PLUS:case it.Op.QUEST:{const e=$i.simplify(t.subs[0]);return $i.simplify1(t.op,t.flags,e,t)}case it.Op.REPEAT:{if(t.min===0&&t.max===0)return new it(it.Op.EMPTY_MATCH);const e=$i.simplify(t.subs[0]);if(t.max===-1){if(t.min===0)return $i.simplify1(it.Op.STAR,t.flags,e,null);if(t.min===1)return $i.simplify1(it.Op.PLUS,t.flags,e,null);const a=new it(it.Op.CONCAT),l=[];for(let c=0;c<t.min-1;c++)l.push(e);return l.push($i.simplify1(it.Op.PLUS,t.flags,e,null)),a.subs=l.slice(0),a}if(t.min===1&&t.max===1)return e;let s=null;if(t.min>0){s=[];for(let a=0;a<t.min;a++)s.push(e)}if(t.max>t.min){let a=$i.simplify1(it.Op.QUEST,t.flags,e,null);for(let l=t.min+1;l<t.max;l++){const c=new it(it.Op.CONCAT);c.subs=[e,a],a=$i.simplify1(it.Op.QUEST,t.flags,c,null)}if(s===null)return a;s.push(a)}if(s!==null){const a=new it(it.Op.CONCAT);return a.subs=s.slice(0),a}return new it(it.Op.NO_MATCH)}}return t}static simplify1(t,e,s,a){return s.op===it.Op.EMPTY_MATCH||t===s.op&&(e&Tt.NON_GREEDY)===(s.flags&Tt.NON_GREEDY)?s:(a!==null&&a.op===t&&(a.flags&Tt.NON_GREEDY)===(e&Tt.NON_GREEDY)&&s===a.subs[0]||(a=new it(t),a.flags=e,a.subs=[s]),a)}}class ie{constructor(t,e){this.sign=t,this.cls=e}}const o8=[48,57],l8=[9,10,12,13,32,32],u8=[48,57,65,90,95,95,97,122],c8=new Map([["\\d",new ie(1,o8)],["\\D",new ie(-1,o8)],["\\s",new ie(1,l8)],["\\S",new ie(-1,l8)],["\\w",new ie(1,u8)],["\\W",new ie(-1,u8)]]),h8=[48,57,65,90,97,122],f8=[65,90,97,122],d8=[0,127],m8=[9,9,32,32],p8=[0,31,127,127],g8=[48,57],y8=[33,126],v8=[97,122],_8=[32,126],E8=[33,47,58,64,91,96,123,126],T8=[9,13,32,32],A8=[65,90],x8=[48,57,65,90,95,95,97,122],S8=[48,57,65,70,97,102],w8=new Map([["[:alnum:]",new ie(1,h8)],["[:^alnum:]",new ie(-1,h8)],["[:alpha:]",new ie(1,f8)],["[:^alpha:]",new ie(-1,f8)],["[:ascii:]",new ie(1,d8)],["[:^ascii:]",new ie(-1,d8)],["[:blank:]",new ie(1,m8)],["[:^blank:]",new ie(-1,m8)],["[:cntrl:]",new ie(1,p8)],["[:^cntrl:]",new ie(-1,p8)],["[:digit:]",new ie(1,g8)],["[:^digit:]",new ie(-1,g8)],["[:graph:]",new ie(1,y8)],["[:^graph:]",new ie(-1,y8)],["[:lower:]",new ie(1,v8)],["[:^lower:]",new ie(-1,v8)],["[:print:]",new ie(1,_8)],["[:^print:]",new ie(-1,_8)],["[:punct:]",new ie(1,E8)],["[:^punct:]",new ie(-1,E8)],["[:space:]",new ie(1,T8)],["[:^space
597:]",new ie(-1,T8)],["[:upper:]",new ie(1,A8)],["[:^upper:]",new ie(-1,A8)],["[:word:]",new ie(1,x8)],["[:^word:]",new ie(-1,x8)],["[:xdigit:]",new ie(1,S8)],["[:^xdigit:]",new ie(-1,S8)]]);class Nn{static charClassToString(t,e){let s="[";for(let a=0;a<e;a+=2){a>0&&(s+=" ");const l=t[a],c=t[a+1];l===c?s+=`0x${l.toString(16)}`:s+=`0x${l.toString(16)}-0x${c.toString(16)}`}return s+="]",s}static cmp(t,e,s,a){const l=t[e]-s;return l!==0?l:a-t[e+1]}static qsortIntPair(t,e,s){const a=((e+s)/2|0)&-2,l=t[a],c=t[a+1];let h=e,m=s;for(;h<=m;){for(;h<s&&Nn.cmp(t,h,l,c)<0;)h+=2;for(;m>e&&Nn.cmp(t,m,l,c)>0;)m-=2;if(h<=m){if(h!==m){let g=t[h];t[h]=t[m],t[m]=g,g=t[h+1],t[h+1]=t[m+1],t[m+1]=g}h+=2,m-=2}}e<m&&Nn.qsortIntPair(t,e,m),h<s&&Nn.qsortIntPair(t,h,s)}constructor(t=Yt.emptyInts()){this.r=t,this.len=t.length}toArray(){return this.len===this.r.length?this.r:this.r.slice(0,this.len)}cleanClass(){if(this.len<4)return this;Nn.qsortIntPair(this.r,0,this.len-2);let t=2;for(let e=2;e<this.len;e+=2){const s=this.r[e],a=this.r[e+1];if(s<=this.r[t-1]+1){a>this.r[t-1]&&(this.r[t-1]=a);continue}this.r[t]=s,this.r[t+1]=a,t+=2}return this.len=t,this}appendLiteral(t,e){return(e&Tt.FOLD_CASE)!==0?this.appendFoldedRange(t,t):this.appendRange(t,t)}appendRange(t,e){if(this.len>0){for(let s=2;s<=4;s+=2)if(this.len>=s){const a=this.r[this.len-s],l=this.r[this.len-s+1];if(t<=l+1&&a<=e+1)return t<a&&(this.r[this.len-s]=t),e>l&&(this.r[this.len-s+1]=e),this}}return this.r[this.len++]=t,this.r[this.len++]=e,this}appendFoldedRange(t,e){if(t<=kt.MIN_FOLD&&e>=kt.MAX_FOLD)return this.appendRange(t,e);if(e<kt.MIN_FOLD||t>kt.MAX_FOLD)return this.appendRange(t,e);t<kt.MIN_FOLD&&(this.appendRange(t,kt.MIN_FOLD-1),t=kt.MIN_FOLD),e>kt.MAX_FOLD&&(this.appendRange(kt.MAX_FOLD+1,e),e=kt.MAX_FOLD);for(let s=t;s<=e;s++){this.appendRange(s,s);for(let a=kt.simpleFold(s);a!==s;a=kt.simpleFold(a))this.appendRange(a,a)}return this}appendClass(t){for(let e=0;e<t.length;e+=2)this.appendRange(t[e],t[e+1]);return this}appendFoldedClass(t){for(let e=0;e<t.length;e+=2)this.appendFoldedRange(t[e],t[e+1]);return this}appendNegatedClass(t){let e=0;for(let s=0;s<t.length;s+=2){const a=t[s],l=t[s+1];e<=a-1&&this.appendRange(e,a-1),e=l+1}return e<=kt.MAX_RUNE&&this.appendRange(e,kt.MAX_RUNE),this}appendTable(t){for(let e of t){const s=e[0],a=e[1],l=e[2];if(l===1){this.appendRange(s,a);continue}for(let c=s;c<=a;c+=l)this.appendRange(c,c)}return this}appendNegatedTable(t){let e=0;for(let s of t){const a=s[0],l=s[1],c=s[2];if(c===1){e<=a-1&&this.appendRange(e,a-1),e=l+1;continue}for(let h=a;h<=l;h+=c)e<=h-1&&this.appendRange(e,h-1),e=h+1}return e<=kt.MAX_RUNE&&this.appendRange(e,kt.MAX_RUNE),this}appendTableWithSign(t,e){return e<0?this.appendNegatedTable(t):this.appendTable(t)}negateClass(){let t=0,e=0;for(let s=0;s<this.len;s+=2){const a=this.r[s],l=this.r[s+1];t<=a-1&&(this.r[e]=t,this.r[e+1]=a-1,e+=2),t=l+1}return this.len=e,t<=kt.MAX_RUNE&&(this.r[this.len++]=t,this.r[this.len++]=kt.MAX_RUNE),this}appendClassWithSign(t,e){return e<0?this.appendNegatedClass(t):this.appendClass(t)}appendGroup(t,e){let s=t.cls;return e&&(s=new Nn().appendFoldedClass(s).cleanClass().toArray()),this.appendClassWithSign(s,t.sign)}toString(){return Nn.charClassToString(this.r,this.len)}}class tc{static of(t,e){return new tc(t,e)}constructor(t,e){this.first=t,this.second=e}}class HR{constructor(t){this.str=t,this.position=0}pos(){return this.position}rewindTo(t){this.position=t}more(){return this.position<this.str.length}peek(){return this.str.codePointAt(this.position)}skip(t){this.position+=t}skipString(t){this.position+=t.length}pop(){const t=this.str.codePointAt(this.position);return this.position+=Yt.charCount(t),t}lookingAt(t){return this.rest().startsWith(t)}rest(){return this.str.substring(this.position)}from(t){return this.str.substring(t,this.position)}toString(){return this.rest()}}const Rt=class Rt{static ANY_TABLE(){return[[0,kt.MAX_RUNE,1]]}static unicodeTable(t){return t==="Any"?tc.of(Rt.ANY_TABLE(),Rt.ANY_TABLE()):Rn.CATEGORIES.has(t)?tc.of(Rn.CATEGORIES.get(t),Rn.FOLD_CATEGORIES.get(t)):Rn.SCRIPTS.has(t)?tc.of(Rn.SCRIPTS.get(t),Rn.FOLD_SCRIPT.get(t)):null}static minFoldRune(t){if(t<kt.MIN_FOLD||t>kt.MAX_FOLD)return t;let e=t;const s=t;for(t=kt.simpleFold(t);t!==s;t=kt.simpleFold(t))e>t&&(e=t);return e}static leadingRegexp(t){if(t.op===it.Op.EMPTY_MATCH)return null;if(t.op===it.Op.CONCAT&&t.subs.length>0){const e=t.subs[0];return e.op===it.Op.EMPTY_MATCH?null:e}return t}static literalRegexp(t,e){const s=new it(it.Op.LITERAL);return s.flags=e,s.runes=Yt.stringToRunes(t),s}static parse(t,e){return new Rt(t,e).parseInternal()}static parseRepeat(t){const e=t.pos();if(!t.more()||!t.lookingAt("{"))return-1;t.skip(1);const s=Rt.parseInt(t);if(s===-1||!t.more())return-1;let a;if(!t.lookingAt(","))a=s;else{if(t.skip(1),!t.more())return-1;if(t.lookingAt("}"))a=-1;else if((a=Rt.parseInt(t))===-1)return-1}if(!t.more()||!t.lookingAt("}"))return-1;if(t.skip(1),s<0||s>1e3||a===-2||a>1e3||a>=0&&s>a)throw new je(Rt.ERR_INVALID_REPEAT_SIZE,t.from(e));return s<<16|a&kt.MAX_BMP}static isValidCaptureName(t){if(t.length===0)return!1;for(let e=0;e<t.length;e++){const s=t.codePointAt(e);if(s!==$.CODES.get("_")&&!Yt.isalnum(s))return!1}return!0}static parseInt(t){const e=t.pos();for(;
597t.more()&&t.peek()>=$.CODES.get("0")&&t.peek()<=$.CODES.get("9");)t.skip(1);const s=t.from(e);return s.length===0||s.length>1&&s.codePointAt(0)===$.CODES.get("0")?-1:s.length>8?-2:parseFloat(s,10)}static isCharClass(t){return t.op===it.Op.LITERAL&&t.runes.length===1||t.op===it.Op.CHAR_CLASS||t.op===it.Op.ANY_CHAR_NOT_NL||t.op===it.Op.ANY_CHAR}static matchRune(t,e){switch(t.op){case it.Op.LITERAL:return t.runes.length===1&&t.runes[0]===e;case it.Op.CHAR_CLASS:for(let s=0;s<t.runes.length;s+=2)if(t.runes[s]<=e&&e<=t.runes[s+1])return!0;return!1;case it.Op.ANY_CHAR_NOT_NL:return e!==$.CODES.get(` 598`);case it.Op.ANY_CHAR:return!0}return!1}static mergeCharClass(t,e){switch(t.op){case it.Op.ANY_CHAR:break;case it.Op.ANY_CHAR_NOT_NL:Rt.matchRune(e,$.CODES.get(` 599`))&&(t.op=it.Op.ANY_CHAR);break;case it.Op.CHAR_CLASS:e.op===it.Op.LITERAL?t.runes=new Nn(t.runes).appendLiteral(e.runes[0],e.flags).toArray():t.runes=new Nn(t.runes).appendClass(e.runes).toArray();break;case it.Op.LITERAL:if(e.runes[0]===t.runes[0]&&e.flags===t.flags)break;t.op=it.Op.CHAR_CLASS,t.runes=new Nn().appendLiteral(t.runes[0],t.flags).appendLiteral(e.runes[0],e.flags).toArray();break}}static parseEscape(t){const e=t.pos();if(t.skip(1),!t.more())throw new je(Rt.ERR_TRAILING_BACKSLASH);let s=t.pop();t:switch(s){case $.CODES.get("1"):case $.CODES.get("2"):case $.CODES.get("3"):case $.CODES.get("4"):case $.CODES.get("5"):case $.CODES.get("6"):case $.CODES.get("7"):if(!t.more()||t.peek()<$.CODES.get("0")||t.peek()>$.CODES.get("7"))break;case $.CODES.get("0"):{let a=s-$.CODES.get("0");for(let l=1;l<3&&!(!t.more()||t.peek()<$.CODES.get("0")||t.peek()>$.CODES.get("7"));l++)a=a*8+t.peek()-$.CODES.get("0"),t.skip(1);return a}case $.CODES.get("x"):{if(!t.more())break;if(s=t.pop(),s===$.CODES.get("{")){let c=0,h=0;for(;;){if(!t.more())break t;if(s=t.pop(),s===$.CODES.get("}"))break;const m=Yt.unhex(s);if(m<0||(h=h*16+m,h>kt.MAX_RUNE))break t;c++}if(c===0)break t;return h}const a=Yt.unhex(s);if(!t.more())break;s=t.pop();const l=Yt.unhex(s);if(a<0||l<0)break;return a*16+l}case $.CODES.get("a"):return $.CODES.get("\x07");case $.CODES.get("f"):return $.CODES.get("\f");case $.CODES.get("n"):return $.CODES.get(` 600`);case $.CODES.get("r"):return $.CODES.get("\r");case $.CODES.get("t"):return $.CODES.get(" ");case $.CODES.get("v"):return $.CODES.get("\v");default:if(!Yt.isalnum(s))return s;break}throw new je(Rt.ERR_INVALID_ESCAPE,t.from(e))}static parseClassChar(t,e){if(!t.more())throw new je(Rt.ERR_MISSING_BRACKET,t.from(e));return t.lookingAt("\\")?Rt.parseEscape(t):t.pop()}static concatRunes(t,e){return[...t,...e]}constructor(t,e=0){this.wholeRegexp=t,this.flags=e,this.numCap=0,this.namedGroups={},this.stack=[],this.free=null}newRegexp(t){let e=this.free;return e!==null&&e.subs!==null&&e.subs.length>0?(this.free=e.subs[0],e.reinit(),e.op=t):e=new it(t),e}reuse(t){t.subs!==null&&t.subs.length>0&&(t.subs[0]=this.free),this.free=t}pop(){return this.stack.pop()}popToPseudo(){const t=this.stack.length;let e=t;for(;e>0&&!it.isPseudoOp(this.stack[e-1].op);)e--;const s=this.stack.slice(e,t);return this.stack=this.stack.slice(0,e),s}push(t){if(t.op===it.Op.CHAR_CLASS&&t.runes.length===2&&t.runes[0]===t.runes[1]){if(this.maybeConcat(t.runes[0],this.flags&-2))return null;t.op=it.Op.LITERAL,t.runes=[t.runes[0]],t.flags=this.flags&-2}else if(t.op===it.Op.CHAR_CLASS&&t.runes.length===4&&t.runes[0]===t.runes[1]&&t.runes[2]===t.runes[3]&&kt.simpleFold(t.runes[0])===t.runes[2]&&kt.simpleFold(t.runes[2])===t.runes[0]||t.op===it.Op.CHAR_CLASS&&t.runes.length===2&&t.runes[0]+1===t.runes[1]&&kt.simpleFold(t.runes[0])===t.runes[1]&&kt.simpleFold(t.runes[1])===t.runes[0]){if(this.maybeConcat(t.runes[0],this.flags|Tt.FOLD_CASE))return null;t.op=it.Op.LITERAL,t.runes=[t.runes[0]],t.flags=this.flags|Tt.FOLD_CASE}else this.maybeConcat(-1,0);return this.stack.push(t),t}maybeConcat(t,e){const s=this.stack.length;if(s<2)return!1;const a=this.stack[s-1],l=this.stack[s-2];
600return a.op!==it.Op.LITERAL||l.op!==it.Op.LITERAL||(a.flags&Tt.FOLD_CASE)!==(l.flags&Tt.FOLD_CASE)?!1:(l.runes=Rt.concatRunes(l.runes,a.runes),t>=0?(a.runes=[t],a.flags=e,!0):(this.pop(),this.reuse(a),!1))}newLiteral(t,e){const s=this.newRegexp(it.Op.LITERAL);return s.flags=e,(e&Tt.FOLD_CASE)!==0&&(t=Rt.minFoldRune(t)),s.runes=[t],s}literal(t){this.push(this.newLiteral(t,this.flags))}op(t){const e=this.newRegexp(t);return e.flags=this.flags,this.push(e)}repeat(t,e,s,a,l,c){let h=this.flags;if((h&Tt.PERL_X)!==0&&(l.more()&&l.lookingAt("?")&&(l.skip(1),h^=Tt.NON_GREEDY),c!==-1))throw new je(Rt.ERR_INVALID_REPEAT_OP,l.from(c));const m=this.stack.length;if(m===0)throw new je(Rt.ERR_MISSING_REPEAT_ARGUMENT,l.from(a));const g=this.stack[m-1];if(it.isPseudoOp(g.op))throw new je(Rt.ERR_MISSING_REPEAT_ARGUMENT,l.from(a));const y=this.newRegexp(t);y.min=e,y.max=s,y.flags=h,y.subs=[g],this.stack[m-1]=y}concat(){this.maybeConcat(-1,0);const t=this.popToPseudo();return t.length===0?this.push(this.newRegexp(it.Op.EMPTY_MATCH)):this.push(this.collapse(t,it.Op.CONCAT))}alternate(){const t=this.popToPseudo();return t.length>0&&this.cleanAlt(t[t.length-1]),t.length===0?this.push(this.newRegexp(it.Op.NO_MATCH)):this.push(this.collapse(t,it.Op.ALTERNATE))}cleanAlt(t){t.op===it.Op.CHAR_CLASS&&(t.runes=new Nn(t.runes).cleanClass().toArray(),t.runes.length===2&&t.runes[0]===0&&t.runes[1]===kt.MAX_RUNE?(t.runes=null,t.op=it.Op.ANY_CHAR):t.runes.length===4&&t.runes[0]===0&&t.runes[1]===$.CODES.get(` 601`)-1&&t.runes[2]===$.CODES.get(` 602`)+1&&t.runes[3]===kt.MAX_RUNE&&(t.runes=null,t.op=it.Op.ANY_CHAR_NOT_NL))}collapse(t,e){if(t.length===1)return t[0];let s=0;for(let h of t)s+=h.op===e?h.subs.length:1;let a=new Array(s).fill(null),l=0;for(let h of t)h.op===e?(a.splice(l,h.subs.length,...h.subs),l+=h.subs.length,this.reuse(h)):a[l++]=h;let c=this.newRegexp(e);if(c.subs=a,e===it.Op.ALTERNATE&&(c.subs=this.factor(c.subs),c.subs.length===1)){const h=c;c=c.subs[0],this.reuse(h)}return c}factor(t){if(t.length<2)return t;let e=0,s=t.length,a=0,l=null,c=0,h=0,m=0;for(let y=0;y<=s;y++){let _=null,x=0,R=0;if(y<s){let N=t[e+y];if(N.op===it.Op.CONCAT&&N.subs.length>0&&(N=N.subs[0]),N.op===it.Op.LITERAL&&(_=N.runes,x=N.runes.length,R=N.flags&Tt.FOLD_CASE),R===h){let j=0;for(;j<c&&j<x&&l[j]===_[j];)j++;if(j>0){c=j;continue}}}if(y!==m)if(y===m+1)t[a++]=t[e+m];else{const N=this.newRegexp(it.Op.LITERAL);N.flags=h,N.runes=l.slice(0,c);for(let q=m;q<y;q++)t[e+q]=this.removeLeadingString(t[e+q],c);const j=this.collapse(t.slice(e+m,e+y),it.Op.ALTERNATE),F=this.newRegexp(it.Op.CONCAT);F.subs=[N,j],t[a++]=F}m=y,l=_,c=x,h=R}s=a,e=0,m=0,a=0;let g=null;for(let y=0;y<=s;y++){let _=null;if(!(y<s&&(_=Rt.leadingRegexp(t[e+y]),g!==null&&g.equals(_)&&(Rt.isCharClass(g)||g.op===it.Op.REPEAT&&g.min===g.max&&Rt.isCharClass(g.subs[0]))))){if(y!==m)if(y===m+1)t[a++]=t[e+m];else{const x=g;for(let j=m;j<y;j++){const F=j!==m;t[e+j]=this.removeLeadingRegexp(t[e+j],F)}const R=this.collapse(t.slice(e+m,e+y),it.Op.ALTERNATE),N=this.newRegexp(it.Op.CONCAT);N.subs=[x,R],t[a++]=N}m=y,g=_}}s=a,e=0,m=0,a=0;for(let y=0;y<=s;y++)if(!(y<s&&Rt.isCharClass(t[e+y]))){if(y!==m)if(y===m+1)t[a++]=t[e+m];else{let _=m;for(let R=m+1;R<y;R++){const N=t[e+_],j=t[e+R];(N.op<j.op||N.op===j.op&&(N.runes!==null?N.runes.length:0)<(j.runes!==null?j.runes.length:0))&&(_=R)}const x=t[e+m];t[e+m]=t[e+_],t[e+_]=x;for(let R=m+1;R<y;R++)Rt.mergeCharClass(t[e+m],t[e+R]),this.reuse(t[e+R]);this.cleanAlt(t[e+m]),t[a++]=t[e+m]}y<s&&(t[a++]=t[e+y]),m=y+1}s=a,e=0,m=0,a=0;for(let y=0;y<s;++y)y+1<s&&t[e+y].op===it.Op.EMPTY_MATCH&&t[e+y+1].op===it.Op.EMPTY_MATCH||(t[a++]=t[e+y]);return s=a,e=0,t.slice(e,s)}removeLeadingString(t,e){if(t.op===it.Op.CONCAT&&t.subs.length>0){const s=this.removeLeadingString(t.subs[0],e);if(t.subs[0]=s,s.op===it.Op.EMPTY_MATCH)switch(this.reuse(s),t.subs.length){case 0:case 1:t.op=it.Op.EMPTY_MATCH,t.subs=null;break;case 2:{const a=t;t=t.subs[1],this.reuse(a);break}default:t.subs=t.subs.slice(1,t.subs.length);break}return t}return t.op===it.Op.LITERAL&&(t.runes=t.runes.slice(e,t.runes.length),t.runes.length===0&&(t.op=it.Op.EMPTY_MATCH)),t}removeLeadingRegexp(t,e){if(t.op===it.Op.CONCAT&&t.subs.length>0){switch(e&&this.reuse(t.subs[0]),t.subs=t.subs.slice(1,t.subs.length),t.subs.length){case 0:{t.op=it.Op.EMPTY_MATCH,t.subs=it.emptySubs();break}case 1:{const s=t;t=t.subs[0],this.reuse(s);break}}return t}return e&&this.reuse(t),this.newRegexp(it.Op.EMPTY_MATCH)}parseInternal(){if((this.flags&Tt.LITERAL)!==0)return Rt.literalRegexp(this.wholeRegexp,this.flags);let t=-1,e=-1,s=-1;const a=new HR(this.wholeRegexp);for(;a.more();){let c=-1;t:switch(a.peek()){case $.CODES.get("("):if((this.flags&Tt.PERL_X)!==0&&a.lookingAt("(?")){this.parsePerlFlags(a);break}this.op(it.Op.LEFT_PAREN).cap=++this.numCap,a.skip(1);break;case $.CODES.get("|"):this.parseVerticalBar(),a.skip(1);break;case $.CODES.get(")"):this.parseRightParen(),a.skip(1);break;case $.CODES.get("^"):(this.flags&Tt.ONE_LINE)!==0?this.op(it.Op.BEGIN_TEXT):this.op(it.Op.BEGIN_LINE),a.skip(1);break;case $.CODES.get("$"):(this.flags&Tt.ONE_LINE)!==0?this.op(it.Op.END_TEXT).flags|=Tt.WAS_DOLLAR:this.op(it.Op.END_LINE),a.skip(1);break;case $.CODES.get("."):(this.flags&Tt.DOT_NL)!==0?this.op(it.Op.ANY_CHAR):this.op(it.Op.ANY_CHAR_NOT_NL),a.skip(1);break;case $.CODES.get("["):this.parseClass(a);break;case $.CODES.get("*"):case $.CODES.get("+"):case $.CODES.get("?"):{c=a.pos();let h=null;switch(a.pop()){case $.CODES.get("*"):h=it.Op.STAR;break;case $.CODES.get("+"):h=it.Op.PLUS;break;case $.CODES.get("?"):h=it.Op.QUEST;break}this.repeat(h,e,s,c,a,t);break}case $.CODES.get("{"):{c=a.pos();const h=Rt.parseRepeat(a);if(h<0){a.rewindTo(c),this.literal(a.pop());break}e=h>>16,s=(h&kt.MAX_BMP)<<16>>16,this.repeat(it.Op.REPEAT,e,s,c,a,t);break}case $.CODES.get("\\"):{const h=a.pos();if(a.skip(1),(this.flags&Tt.PERL_X)!==0&&a.more())switch(a.pop()){case $.CODES.get("A"):this.op(it.Op.BEGIN_TEXT);break t;case $.CODES.get("b"):this.op(it.Op.WORD_BOUNDARY);break t;case $.CODES.get("B"):this.op(it.Op.NO_WORD_BOUNDARY);break t;case $.CODES.get("C"):throw new je(Rt.ERR_INVALID_ESCAPE,"\\C");case $.CODES.get("Q"):{let _=a.rest();const x=_.indexOf("\\E");x>=0&&(_=_.substring(0,x)),a.skipString(_),a.skipString("\\E");let R=0;for(;R<_.length;){const N=_.codePointAt(R);this.literal(N),R+=Yt.charCount(N)}break t}case $.CODES.get("z"):this.op(it.Op.END_TEXT);break t;default:a.rewindTo(h);break}const m=this.newRegexp(it.Op.CHAR_CLASS);if(m.flags=this.flags,a.lookingAt("\\p")||a.lookingAt("\\P")){const y=new Nn;if(this.parseUnicodeClass(a,y)){m.runes=y.toArray(),this.push(m);break t}}const g=new Nn;if(this.parsePerlClassEscape(a,g)){m.runes=g.toArray(),this.push(m);break t}a.rewindTo(h),this.reuse(m),this.literal(Rt.parseEscape(a));break}default:this.literal(a.pop());break}t=c}if(this.concat(),this.swapVerticalBar()&&this.pop(),this.alternate(),this.stack.length!==1)throw new je(Rt.ERR_MISSING_PAREN,this.wholeRegexp);return this.stack[0].namedGroups=this.namedGroups,this.stack[0]}parsePerlFlags(t){const e=t.pos(),s=t.rest();if(s.startsWith("(?P<")||s.startsWith("(?<")){const h=s.charAt(2)==="P"?4:3,m=s.indexOf(">");
602if(m<0)throw new je(Rt.ERR_INVALID_NAMED_CAPTURE,s);const g=s.substring(h,m);if(t.skipString(g),t.skip(h+1),!Rt.isValidCaptureName(g))throw new je(Rt.ERR_INVALID_NAMED_CAPTURE,s.substring(0,m+1));const y=this.op(it.Op.LEFT_PAREN);if(y.cap=++this.numCap,this.namedGroups[g])throw new je(Rt.ERR_DUPLICATE_NAMED_CAPTURE,g);this.namedGroups[g]=this.numCap,y.name=g;return}t.skip(2);let a=this.flags,l=1,c=!1;t:for(;t.more();){const h=t.pop();switch(h){case $.CODES.get("i"):a|=Tt.FOLD_CASE,c=!0;break;case $.CODES.get("m"):a&=-17,c=!0;break;case $.CODES.get("s"):a|=Tt.DOT_NL,c=!0;break;case $.CODES.get("U"):a|=Tt.NON_GREEDY,c=!0;break;case $.CODES.get("-"):if(l<0)break t;l=-1,a=~a,c=!1;break;case $.CODES.get(":"):case $.CODES.get(")"):if(l<0){if(!c)break t;a=~a}h===$.CODES.get(":")&&this.op(it.Op.LEFT_PAREN),this.flags=a;return;default:break t}}throw new je(Rt.ERR_INVALID_PERL_OP,t.from(e))}parseVerticalBar(){this.concat(),this.swapVerticalBar()||this.op(it.Op.VERTICAL_BAR)}swapVerticalBar(){const t=this.stack.length;if(t>=3&&this.stack[t-2].op===it.Op.VERTICAL_BAR&&Rt.isCharClass(this.stack[t-1])&&Rt.isCharClass(this.stack[t-3])){let e=this.stack[t-1],s=this.stack[t-3];if(e.op>s.op){const a=s;s=e,e=a,this.stack[t-3]=s}return Rt.mergeCharClass(s,e),this.reuse(e),this.pop(),!0}if(t>=2){const e=this.stack[t-1],s=this.stack[t-2];if(s.op===it.Op.VERTICAL_BAR)return t>=3&&this.cleanAlt(this.stack[t-3]),this.stack[t-2]=e,this.stack[t-1]=s,!0}return!1}parseRightParen(){if(this.concat(),this.swapVerticalBar()&&this.pop(),this.alternate(),this.stack.length<2)throw new je(Rt.ERR_INTERNAL_ERROR,"stack underflow");const e=this.pop(),s=this.pop();if(s.op!==it.Op.LEFT_PAREN)throw new je(Rt.ERR_MISSING_PAREN,this.wholeRegexp);this.flags=s.flags,s.cap===0?this.push(e):(s.op=it.Op.CAPTURE,s.subs=[e],this.push(s))}parsePerlClassEscape(t,e){const s=t.pos();if((this.flags&Tt.PERL_X)===0||!t.more()||t.pop()!==$.CODES.get("\\")||!t.more())return!1;t.pop();const a=t.from(s),l=c8.has(a)?c8.get(a):null;return l===null?!1:(e.appendGroup(l,(this.flags&Tt.FOLD_CASE)!==0),!0)}parseNamedClass(t,e){const s=t.rest(),a=s.indexOf(":]");if(a<0)return!1;const l=s.substring(0,a+2);t.skipString(l);const c=w8.has(l)?w8.get(l):null;if(c===null)throw new je(Rt.ERR_INVALID_CHAR_RANGE,l);return e.appendGroup(c,(this.flags&Tt.FOLD_CASE)!==0),!0}parseUnicodeClass(t,e){const s=t.pos();if((this.flags&Tt.UNICODE_GROUPS)===0||!t.lookingAt("\\p")&&!t.lookingAt("\\P"))return!1;t.skip(1);let a=1,l=t.pop();if(l===$.CODES.get("P")&&(a=-1),!t.more())throw t.rewindTo(s),new je(Rt.ERR_INVALID_CHAR_RANGE,t.rest());l=t.pop();let c;if(l!==$.CODES.get("{"))c=Yt.runeToString(l);else{const y=t.rest(),_=y.indexOf("}");if(_<0)throw t.rewindTo(s),new je(Rt.ERR_INVALID_CHAR_RANGE,t.rest());c=y.substring(0,_),t.skipString(c),t.skip(1)}c.length!==0&&c.codePointAt(0)===$.CODES.get("^")&&(a=0-a,c=c.substring(1));const h=Rt.unicodeTable(c);if(h===null)throw new je(Rt.ERR_INVALID_CHAR_RANGE,t.from(s));const m=h.first,g=h.second;if((this.flags&Tt.FOLD_CASE)===0||g===null)e.appendTableWithSign(m,a);else{const y=new Nn().appendTable(m).appendTable(g).cleanClass().toArray();e.appendClassWithSign(y,a)}return!0}parseClass(t){const e=t.pos();t.skip(1);const s=this.newRegexp(it.Op.CHAR_CLASS);s.flags=this.flags;const a=new Nn;let l=1;t.more()&&t.lookingAt("^")&&(l=-1,t.skip(1),(this.flags&Tt.CLASS_NL)===0&&a.appendRange($.CODES.get(` 603`),$.CODES.get(` 604`)));let c=!0;for(;!t.more()||t.peek()!==$.CODES.get("]")||c;){if(t.more()&&t.lookingAt("-")&&(this.flags&Tt.PERL_X)===0&&!c){const y=t.rest();if(y==="-"||!y.startsWith("-]"))throw t.rewindTo(e),new je(Rt.ERR_INVALID_CHAR_RANGE,t.rest())}c=!1;const h=t.pos();if(t.lookingAt("[:")){if(this.parseNamedClass(t,a))continue;t.rewindTo(h)}if(this.parseUnicodeClass(t,a)||this.parsePerlClassEscape(t,a))continue;t.rewindTo(h);const m=Rt.parseClassChar(t,e);let g=m;if(t.more()&&t.lookingAt("-")){if(t.skip(1),t.more()&&t.lookingAt("]"))t.skip(-1);else if(g=Rt.parseClassChar(t,e),g<m)throw new je(Rt.ERR_INVALID_CHAR_RANGE,t.from(h))}(this.flags&Tt.FOLD_CASE)===0?a.appendRange(m,g):a.appendFoldedRange(m,g)}t.skip(1),a.cleanClass(),l<0&&a.negateClass(),s.runes=a.toArray(),this.push(s)}};D(Rt,"ERR_INTERNAL_ERROR","regexp/syntax: internal error"),D(Rt,"ERR_INVALID_CHAR_RANGE","invali
604d character class range"),D(Rt,"ERR_INVALID_ESCAPE","invalid escape sequence"),D(Rt,"ERR_INVALID_NAMED_CAPTURE","invalid named capture"),D(Rt,"ERR_INVALID_PERL_OP","invalid or unsupported Perl syntax"),D(Rt,"ERR_INVALID_REPEAT_OP","invalid nested repetition operator"),D(Rt,"ERR_INVALID_REPEAT_SIZE","invalid repeat count"),D(Rt,"ERR_MISSING_BRACKET","missing closing ]"),D(Rt,"ERR_MISSING_PAREN","missing closing )"),D(Rt,"ERR_MISSING_REPEAT_ARGUMENT","missing argument to repetition operator"),D(Rt,"ERR_TRAILING_BACKSLASH","trailing backslash at end of expression"),D(Rt,"ERR_DUPLICATE_NAMED_CAPTURE","duplicate capture group name");let u6=Rt;class qR{constructor(){this.inst=null,this.cap=[]}}class b8{constructor(){this.sparse=[],this.densePcs=[],this.denseThreads=[],this.size=0}contains(t){const e=this.sparse[t];return e<this.size&&this.densePcs[e]===t}isEmpty(){return this.size===0}add(t){const e=this.size++;return this.sparse[t]=e,this.denseThreads[e]=null,this.densePcs[e]=t,e}clear(){this.sparse=[],this.densePcs=[],this.denseThreads=[],this.size=0}toString(){let t="{";for(let e=0;e<this.size;e++)e!==0&&(t+=", "),t+=this.densePcs[e];return t+="}",t}}class hl{static fromRE2(t){const e=new hl;return e.prog=t.prog,e.re2=t,e.q0=new b8(e.prog.numInst()),e.q1=new b8(e.prog.numInst()),e.pool=[],e.poolSize=0,e.matched=!1,e.matchcap=Array(e.prog.numCap<2?2:e.prog.numCap).fill(0),e.ncap=0,e}static fromMachine(t){const e=new hl;return e.re2=t.re2,e.prog=t.prog,e.q0=t.q0,e.q1=t.q1,e.pool=t.pool,e.poolSize=t.poolSize,e.matched=t.matched,e.matchcap=t.matchcap,e.ncap=t.ncap,e}init(t){this.ncap=t,t>this.matchcap.length?this.initNewCap(t):this.resetCap(t)}resetCap(t){for(let e=0;e<this.poolSize;e++){const s=this.pool[e];s.cap=Array(t).fill(0)}}initNewCap(t){for(let e=0;e<this.poolSize;e++){const s=this.pool[e];s.cap=Array(t).fill(0)}this.matchcap=Array(t).fill(0)}submatches(){return this.ncap===0?Yt.emptyInts():this.matchcap.slice(0,this.ncap)}alloc(t){let e;return this.poolSize>0?(this.poolSize--,e=this.pool[this.poolSize]):e=new qR,e.inst=t,e}freeQueue(t,e=0){const s=t.size-e,a=this.poolSize+s;this.pool.length<a&&(this.pool=this.pool.slice(0,Math.max(this.pool.length*2,a)));for(let l=e;l<t.size;l++){const c=t.denseThreads[l];c!==null&&(this.pool[this.poolSize]=c,this.poolSize++)}t.clear()}freeThread(t){this.pool.length<=this.poolSize&&(this.pool=this.pool.slice(0,this.pool.length*2)),this.pool[this.poolSize]=t,this.poolSize++}match(t,e,s){const a=this.re2.cond;if(a===Yt.EMPTY_ALL||(s===Tt.ANCHOR_START||s===Tt.ANCHOR_BOTH)&&e!==0)return!1;this.matched=!1,this.matchcap=Array(this.prog.numCap).fill(-1);let l=this.q0,c=this.q1,h=t.step(e),m=h>>3,g=h&7,y=-1,_=0;h!==Yr.EOF()&&(h=t.step(e+g),y=h>>3,_=h&7);let x;for(e===0?x=Yt.emptyOpContext(-1,m):x=t.context(e);;){if(l.isEmpty()){if((a&Yt.EMPTY_BEGIN_TEXT)!==0&&e!==0||this.matched)break;if(this.re2.prefix.length!==0&&y!==this.re2.prefixRune&&t.canCheckPrefix()){const j=t.index(this.re2,e);if(j<0)break;e+=j,h=t.step(e),m=h>>3,g=h&7,h=t.step(e+g),y=h>>3,_=h&7}}!this.matched&&(e===0||s===Tt.UNANCHORED)&&(this.ncap>0&&(this.matchcap[0]=e),this.add(l,this.prog.start,e,this.matchcap,x,null));const R=e+g;if(x=t.context(R),this.step(l,c,e,R,m,x,s,e===t.endPos()),g===0||this.ncap===0&&this.matched)break;e+=g,m=y,g=_,m!==-1&&(h=t.step(e+g),y=h>>3,_=h&7);const N=l;l=c,c=N}return this.freeQueue(c),this.matched}step(t,e,s,a,l,c,h,m){const g=this.re2.longest;for(let y=0;y<t.size;y++){let _=t.denseThreads[y];if(_===null)continue;if(g&&this.matched&&this.ncap>0&&this.matchcap[0]<_.cap[0]){this.freeThread(_);continue}const x=_.inst;let R=!1;switch(x.op){case Kt.MATCH:if(h===Tt.ANCHOR_BOTH&&!m)break;this.ncap>0&&(!g||!this.matched||this.matchcap[1]<s)&&(_.cap[1]=s,this.matchcap=_.cap.slice(0,this.ncap)),g||this.freeQueue(t,y+1),this.matched=!0;break;case Kt.RUNE:R=x.matchRune(l);break;case Kt.RUNE1:R=l===x.runes[0];break;case Kt.RUNE_ANY:R=!0;break;case Kt.RUNE_ANY_NOT_NL:R=l!==$.CODES.get(` 605`);break;default:throw new Error("bad inst")}R&&(_=this.add(e,x.out,a,_.cap,c,_)),_!==null&&(this.freeThread(_),t.denseThreads[y]=null)}t.clear()}add(t,e,s,a,l,c){if(e===0||t.contains(e))return c;const h=t.add(e),m=this.prog.inst[e];switch(m.op){case Kt.FAIL:break;case Kt.ALT:case Kt.ALT_MATCH:c=this.add(t,m.out,s,a,l,c),c=this.add(t,m.arg,s,a,l,c);break;case Kt.EMPTY_WIDTH:(m.arg&~l)===0&&(c=this.add(t,m.out,s,a,l,c));break;case Kt.NOP:c=this.add(t,m.out,s,a,l,c);break;case Kt.CAPTURE:if(m.arg<this.ncap){const g=a[m.arg];a[m.arg]=s,this.add(t,m.out,s,a,l,null),a[m.arg]=g}else c=this.add(t,m.out,s,a,l,c);break;case Kt.MATCH:case Kt.RUNE:case Kt.RUNE1:case Kt.RUNE_ANY:case Kt.RUNE_ANY_NOT_NL:c===null?c=this.alloc(m):c.inst=m,this.ncap>0&&c.cap!==a&&(c.cap=a.slice(0,this.ncap)),t.denseThreads[h]=c,c=null;break;default:throw new Error("unhandled")}return c}}class GR{constructor(t){this.value=t}get(){return this.value}set(t){this.value=t}compareAndSet(t,e){return this.value===t?(this.value=e,!0):!1}}class Gr{static initTest(t){const e=Gr.compile(t),s=new Gr(e.expr,e.prog,e.numSubexp,e.longest);return s.cond=e.cond,s.prefix=e.prefix,s.prefixUTF8=e.prefixUTF8,s.prefixComplete=e.prefixComplete,s.prefixRune=e.prefixRune,s}static compile(t){return Gr.compileImpl(t,Tt.PERL,!1)}static compilePOSIX(t){return Gr.compileImpl(t,Tt.POSIX,!0)}static compileImpl(t,e,s){let a=u6.parse(t,e);const l=a.maxCap();a=$i.simplify(a);const c=Ju.compileRegexp(a),h=new Gr(t,c,l,s),[m,g]=c.prefix();return h.prefixComplete=m,h.prefix=g,h.prefixUTF8=Yt.stringToUtf8ByteArray(h.prefix),h.prefix.length>0&&(h.prefixRune=h.prefix.codePointAt(0)),h.namedGroups=a.namedGroups,h}static match(t,e){return Gr.compile(t).match(e)}constructor(t,e,s=0,a=0){this.expr=t,this.prog=e,this.numSubexp=s,this.longest=a,this.cond=e.startCond(),this.prefix=null,this.prefixUTF8=null,this.prefixComplete=!1,this.prefixRune=0,this.pooled=new GR}numberOfCapturingGroups(){return this.numSubexp}get(){let t;do t=this.pooled.get();while(t&&!this.pooled.compareAndSet(t,t.next));return t}reset(){this.pooled.set(null)}put(t,e){let s=this.pooled.get();do s=this.pooled.get(),!e&&s&&(t=hl.fromMachine(t),e=!0),t.next!==s&&(t.next=s);while(!this.pooled.compareAndSet(s,t))}toString(){return this.expr}doExecute(t,e,s,a){let l=this.get(),c=!1;l?l.next!==null&&(l=hl.fromMachine(l),c=!0):(l=hl.fromRE2(this),c=!0),l.init(a);const h=l.match(t,e,s)?l.submatches():null;return this.put(l,c),h}match(t){return this.doExecute(Be.fromUTF16(t),0,Tt.UNANCHORED,0)!==null}matchWithGroup(t,e,s,a,l){return t instanceof sa||(t=hf.utf16(t)),this.matchMachineInput(t,e,s,a,l)}matchMachineInput(t,e,s,a,l){if(e>s)return[!1,null];const c=t.isUTF16Encoding()?Be.fromUTF16(t.asCharSequence(),0,s):Be.fromUTF8(t.asBytes(),0,s),h=this.doExecute(c,e,a,2*l);return h===null?[!1,null]:[!0,h]}matchUTF8(t){return this.doExecute(Be.fromUTF8(t),0,Tt.UNANCHORED,0)!==null}replaceAll(t,e){return this.replaceAllFunc(t,()=>e,2*t.length+1)}replaceFirst(t,e){return this.replaceAllFunc(t,()=>e,1)}replaceAllFunc(t,e,s){let a=0,l=0,c="";const h=Be.fromUTF16(t);let m=0;for(;l<=t.length;){const g=this.doExecute(h,l,Tt.UNANCHORED,2);if(g===null||g.length===0)break;c+=t.substring(a,g[0]),(g[1]>a||g[0]===0)&&(c+=e(t.substring(g[0],g[1])),m++),a=g[1];const y=h.step(l)&7;if(l+y>g[1]?l+=y:l+1>g[1]?l++:l=g[1],m>=s)break}return c+=t.substring(a),c}pad(t){if(t===null)return null;let e=(1+this.numSubexp)*2;if(t.length<e){let s=new Array(e).fill(-1);for(let a=0;a<t.length;a++)s[a]=t[a];t=s}return t}allMatches(t,e,s=a=>a){let a=[];const l=t.endPos();e<0&&(e=l+1);let c=0,h=0,m=-1;for(;h<e&&c<=l;){const g=this.doExecute(t,c,Tt.UNANCHORED,this.prog.numCap);if(g===null||g.length===0)break;let y=!0;if(g[1]===c){g[0]===m&&(y=!1);const _=t.step(c);_<0?c=l+1:c+=_&7}else c=g[1];m=g[1],y&&(a.push(s(this.pad(g))),h++)}return a}findUTF8(t){const e=this.doExecute(Be.fromUTF8(t),0,Tt.UNANCHORED,2);return e===null?null:t.slice(e[0],e[1])}findUTF8Index(t){const e=this.doExecute(Be.fromUTF8(t),0,Tt.UNANCHORED,2);return e===null?null:e.slice(0,2)}find(t){const e=this.doExecute(Be.fromUTF16(t),0,Tt.UNANCHORED,2);return e===null?"":t.substring(e[0],e[1])}findIndex(t){return this.doExecute(Be.fromUTF16(t),0,Tt.UNANCHORED,2)}findUTF8Submatch(t){const e=this.doExecute(Be.fromUTF8(t),0,Tt.UNANCHORED,this.prog.numCap);if(e===null)return null;const s=new Array(1+this.numSubexp).fill(null);for(let a=0;a<s.length;a++)2*a<e.length&&e[2*a]>=0&&(s[a]=t.slice(e[2*a],e[2*a+1]));return s}findUTF8SubmatchIndex(t){return this.pad(this.doExecute(Be.fromUTF8(t),0,Tt.UNANCHORED,this.prog.numCap))}findSubmatch(t){const e=this.doExecute(Be.fromUTF16(t),0,Tt.UNANCHORED,this.prog.numCap);if(e===null)return null;const s=new Array(1+this.numSubexp).fill(null);for(let a=0;a<s.length;a++)2*a<e.length&&e[2*a]>=0&&(s[a]=t.substring(e[2*a],e[2*a+1]));return s}findSubmatchIndex(t){return this.pad(this.doExecute(Be.fromUTF16(t),0,Tt.UNANCHORED,this.prog.numCap))}findAllUTF8(t,e){const s=this.allMatches(Be.fromUTF8(t),e,a=>t.slice(a[0],a[1]));return s.length===0?null:s}findAllUTF8Index(t,e){const s=this.allMatches(Be.fromUTF8(t),e,a=>a.slice(0,2));return s.length===0?null:s}findAll(t,e){const s=this.allMatches(Be.fromUTF16(t),e,a=>t.substring(a[0],a[1]));return s.length===0?null:s}findAllIndex(t,e){const s=this.allMatches(Be.fromUTF16(t),e,a=>a.slice(0,2));return s.length===0?null:s}findAllUTF8Submatch(t,e){const s=this.allMatches(Be.fromUTF8(t),e,a=>
605{let l=new Array(a.length/2|0).fill(null);for(let c=0;c<l.length;c++)a[2*c]>=0&&(l[c]=t.slice(a[2*c],a[2*c+1]));return l});return s.length===0?null:s}findAllUTF8SubmatchIndex(t,e){const s=this.allMatches(Be.fromUTF8(t),e);return s.length===0?null:s}findAllSubmatch(t,e){const s=this.allMatches(Be.fromUTF16(t),e,a=>{let l=new Array(a.length/2|0).fill(null);for(let c=0;c<l.length;c++)a[2*c]>=0&&(l[c]=t.substring(a[2*c],a[2*c+1]));return l});return s.length===0?null:s}findAllSubmatchIndex(t,e){const s=this.allMatches(Be.fromUTF16(t),e);return s.length===0?null:s}}const jn=class jn{static quote(t){return Yt.quoteMeta(t)}static compile(t,e=0){let s=t;if((e&jn.CASE_INSENSITIVE)!==0&&(s=`(?i)${s}`),(e&jn.DOTALL)!==0&&(s=`(?s)${s}`),(e&jn.MULTILINE)!==0&&(s=`(?m)${s}`),(e&-32)!==0)throw new jR("Flags should only be a combination of MULTILINE, DOTALL, CASE_INSENSITIVE, DISABLE_UNICODE_GROUPS, LONGEST_MATCH");let a=Tt.PERL;(e&jn.DISABLE_UNICODE_GROUPS)!==0&&(a&=-129);const l=new jn(t,e);return l.re2Input=Gr.compileImpl(s,a,(e&jn.LONGEST_MATCH)!==0),l}static matches(t,e){return jn.compile(t).matcher(e).matches()}static initTest(t,e,s){if(t==null)throw new Error("pattern is null");if(s==null)throw new Error("re2 is null");const a=new jn(t,e);return a.re2Input=s,a}constructor(t,e){this.patternInput=t,this.flagsInput=e}reset(){this.re2Input.reset()}flags(){return this.flagsInput}pattern(){return this.patternInput}re2(){return this.re2Input}matches(t){return this.matcher(t).matches()}matcher(t){return Array.isArray(t)&&(t=hf.utf8(t)),new BR(this,t)}split(t,e=0){const s=this.matcher(t),a=[];let l=0,c=0;for(;s.find();){if(c===0&&s.end()===0){c=s.end();continue}if(e>0&&a.length===e-1)break;if(c===s.start()){if(e===0){l+=1,c=s.end();continue}}else for(;l>0;)a.push(""),l-=1;a.push(s.substring(c,s.start())),c=s.end()}if(e===0&&c!==s.inputLength()){for(;l>0;)a.push(""),l-=1;a.push(s.substring(c,s.inputLength()))}return(e!==0||a.length===0)&&a.push(s.substring(c,s.inputLength())),a}toString(){return this.patternInput}groupCount(){return this.re2Input.numberOfCapturingGroups()}namedGroups(){return this.re2Input.namedGroups}equals(t){return this===t?!0:t===null||this.constructor!==t.constructor?!1:this.flagsInput===t.flagsInput&&this.patternInput===t.patternInput}};D(jn,"CASE_INSENSITIVE",1),D(jn,"DOTALL",2),D(jn,"MULTILINE",4),D(jn,"DISABLE_UNICODE_GROUPS",8),D(jn,"LONGEST_MATCH",16);let pc=jn;/** 606 * @license 607 * Copyright 2017 Google LLC 608 * 609 * Licensed under the Apache License, Version 2.0 (the "License"); 610 * you may not use this file except in compliance with the License. 611 * You may obtain a copy of the License at 612 * 613 * http://www.apache.org/licenses/LICENSE-2.0 614 * 615 * Unless required by applicable law or agreed to in writing, software 616 * distributed under the License is distributed on an "AS IS" BASIS, 617 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 618 * See the License for the specific language governing permissions and 619 * limitations under the License. 620 */class Dn{constructor(t){this.uid=t}isAuthenticated(){return this.uid!=null}toKey(){return this.isAuthenticated()?"uid:"+this.uid:"anonymous-user"}isEqual(t){return t.uid===this.uid}}Dn.UNAUTHENTICATED=new Dn(null),Dn.GOOGLE_CREDENTIALS=new Dn("google-credentials-uid"),Dn.FIRST_PARTY=new Dn("first-party-uid"),Dn.MOCK_USER=new Dn("mock-user");/** 621 * @license 622 * Copyright 2017 Google LLC 623 * 624 * Licensed under the Apache License, Version 2.0 (the "License"); 625 * you may not use this file except in compliance with the License. 626 * You may obtain a copy of the License at 627 * 628 * http://www.apache.org/licenses/LICENSE-2.0 629 * 630 * Unless required by applicable law or agreed to in writing, software 631 * distributed under the License is distributed on an "AS IS" BASIS, 632 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 633 * See the License for the specific language governing permissions and 634 * limitations under the License. 635 */let Cl="12.15.0";function YR(n){Cl=n}/** 636 * @license 637 * Copyright 2020 Google LLC 638 * 639 * Licensed under the Apache License, Version 2.0 (the "License");
640 * you may not use this file except in compliance with the License. 641 * You may obtain a copy of the License at 642 * 643 * http://www.apache.org/licenses/LICENSE-2.0 644 * 645 * Unless required by applicable law or agreed to in writing, software 646 * distributed under the License is distributed on an "AS IS" BASIS, 647 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 648 * See the License for the specific language governing permissions and 649 * limitations under the License. 650 *//** 651 * @license 652 * Copyright 2017 Google LLC 653 * 654 * Licensed under the Apache License, Version 2.0 (the "License"); 655 * you may not use this file except in compliance with the License. 656 * You may obtain a copy of the License at 657 * 658 * http://www.apache.org/licenses/LICENSE-2.0 659 * 660 * Unless required by applicable law or agreed to in writing, software 661 * distributed under the License is distributed on an "AS IS" BASIS, 662 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 663 * See the License for the specific language governing permissions and 664 * limitations under the License. 665 */const ao=new my("@firebase/firestore");function nl(){return ao.logLevel}function _t(n,...t){if(ao.logLevel<=se.DEBUG){const e=t.map(lm);ao.debug(`Firestore (${Cl}): ${n}`,...e)}}function lr(n,...t){if(ao.logLevel<=se.ERROR){const e=t.map(lm);ao.error(`Firestore (${Cl}): ${n}`,...e)}}function Zi(n,...t){if(ao.logLevel<=se.WARN){const e=t.map(lm);ao.warn(`Firestore (${Cl}): ${n}`,...e)}}function lm(n){if(typeof n=="string")return n;try{return(function(e){return JSON.stringify(e)})(n)}catch{return n}}/** 666 * @license 667 * Copyright 2017 Google LLC 668 * 669 * Licensed under the Apache License, Version 2.0 (the "License"); 670 * you may not use this file except in compliance with the License. 671 * You may obtain a copy of the License at 672 * 673 * http://www.apache.org/licenses/LICENSE-2.0 674 * 675 * Unless required by applicable law or agreed to in writing, software 676 * distributed under the License is distributed on an "AS IS" BASIS, 677 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 678 * See the License for the specific language governing permissions and 679 * limitations under the License. 680 */function Vt(n,t,e){let s="Unexpected state";typeof t=="string"?s=t:e=t,Cy(n,s,e)}function Cy(n,t,e){let s=`FIRESTORE (${Cl}) INTERNAL ASSERTION FAILED: ${t} (ID: ${n.toString(16)})`;if(e!==void 0)try{s+=" CONTEXT: "+JSON.stringify(e)}catch{s+=" CONTEXT: "+e}throw lr(s),new Error(s)}function Ct(n,t,e,s){let a="Unexpected state";typeof e=="string"?a=e:s=e,n||Cy(t,a,s)}function Ft(n,t){return n}/** 681 * @license 682 * Copyright 2017 Google LLC 683 * 684 * Licensed under the Apache License, Version 2.0 (the "License"); 685 * you may not use this file except in compliance with the License. 686 * You may obtain a copy of the License at 687 * 688 * http://www.apache.org/licenses/LICENSE-2.0 689 * 690 * Unless required by applicable law or agreed to in writing, software 691 * distributed under the License is distributed on an "AS IS" BASIS, 692 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 693 * See the License for the specific language governing permissions and 694 * limitations under the License. 695 */const ot={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 vt extends bl{constructor(t,e){super(t,e),this.code=t,this.message=e,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}/** 696 * @license 697 * Copyright 2017 Google LLC 698 * 699 * Licensed under the Apache License, Version 2.0 (the "License"); 700 * you may not use this file except in compliance with the License. 701 * You may obtain a copy of the License at 702 * 703 * http://www.apache.org/licenses/LICENSE-2.0 704 * 705 * Unless required by applicable law or agreed to in writing, softw
705are 706 * distributed under the License is distributed on an "AS IS" BASIS, 707 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 708 * See the License for the specific language governing permissions and 709 * limitations under the License. 710 */class Zr{constructor(){this.promise=new Promise(((t,e)=>{this.resolve=t,this.reject=e}))}}/** 711 * @license 712 * Copyright 2017 Google LLC 713 * 714 * Licensed under the Apache License, Version 2.0 (the "License"); 715 * you may not use this file except in compliance with the License. 716 * You may obtain a copy of the License at 717 * 718 * http://www.apache.org/licenses/LICENSE-2.0 719 * 720 * Unless required by applicable law or agreed to in writing, software 721 * distributed under the License is distributed on an "AS IS" BASIS, 722 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 723 * See the License for the specific language governing permissions and 724 * limitations under the License. 725 */class Ry{constructor(t,e){this.user=e,this.type="OAuth",this.headers=new Map,this.headers.set("Authorization",`Bearer ${t}`)}}class QR{getToken(){return Promise.resolve(null)}invalidateToken(){}start(t,e){t.enqueueRetryable((()=>e(Dn.UNAUTHENTICATED)))}shutdown(){}}class KR{constructor(t){this.token=t,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(t,e){this.changeListener=e,t.enqueueRetryable((()=>e(this.token.user)))}shutdown(){this.changeListener=null}}class $R{constructor(t){this.t=t,this.currentUser=Dn.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(t,e){Ct(this.o===void 0,42304);let s=this.i;const a=m=>this.i!==s?(s=this.i,e(m)):Promise.resolve();let l=new Zr;this.o=()=>{this.i++,this.currentUser=this.u(),l.resolve(),l=new Zr,t.enqueueRetryable((()=>a(this.currentUser)))};const c=()=>{const m=l;t.enqueueRetryable((async()=>{await m.promise,await a(this.currentUser)}))},h=m=>{_t("FirebaseAuthCredentialsProvider","Auth detected"),this.auth=m,this.o&&(this.auth.addAuthTokenListener(this.o),c())};this.t.onInit((m=>h(m))),setTimeout((()=>{if(!this.auth){const m=this.t.getImmediate({optional:!0});m?h(m):(_t("FirebaseAuthCredentialsProvider","Auth not yet detected"),l.resolve(),l=new Zr)}}),0),c()}getToken(){const t=this.i,e=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(e).then((s=>this.i!==t?(_t("FirebaseAuthCredentialsProvider","getToken aborted due to token change."),this.getToken()):s?(Ct(typeof s.accessToken=="string",31837,{l:s}),new Ry(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 t=this.auth&&this.auth.getUid();return Ct(t===null||typeof t=="string",2055,{h:t}),new Dn(t)}}class XR{constructor(t,e,s){this.T=t,this.P=e,this.R=s,this.type="FirstParty",this.user=Dn.FIRST_PARTY,this.I=new Map}A(){return this.R?this.R():null}get headers(){this.I.set("X-Goog-AuthUser",this.T);const t=this.A();return t&&this.I.set("Authorization",t),this.P&&this.I.set("X-Goog-Iam-Authorization-Token",this.P),this.I}}class WR{constructor(t,e,s){this.T=t,this.P=e,this.R=s}getToken(){return Promise.resolve(new XR(this.T,this.P,this.R))}start(t,e){t.enqueueRetryable((()=>e(Dn.FIRST_PARTY)))}shutdown(){}invalidateToken(){}}class C8{constructor(t){this.value=t,this.type="AppCheck",this.headers=new Map,t&&t.length>0&&this.headers.set("x-firebase-appcheck",this.value)}}class ZR{constructor(t,e){this.V=e,this.forceRefresh=!1,this.appCheck=null,this.m=null,this.p=null,_R(t)&&t.settings.appCheckToken&&(this.p=t.settings.appCheckToken)}start(t,e){Ct(this.o===void 0,3512);const s=l=>{l.error!=null&&_t("FirebaseAppCheckTokenProvider",`Error getting App Check token; using placeholder token instead. Error: ${l.error.message}`);const c=l.token!==this.m;return this.m=l.token,_t("FirebaseAppCheckTokenProvider",`Received ${c?"new":"existing"} token.`),c?e(l.token):Promise.resolve()};this.o=l=>{t.enqueueRetryable((()=>s(l)))};const a=l=>{_t("FirebaseAppCheckTokenProvider","AppCheck detected"),this.appCheck=l,this.o&&this.appCheck.addTokenListener(this.o)};this.V.onInit((l=>a(l))),setTimeout((()=>
725{if(!this.appCheck){const l=this.V.getImmediate({optional:!0});l?a(l):_t("FirebaseAppCheckTokenProvider","AppCheck not yet detected")}}),0)}getToken(){if(this.p)return Promise.resolve(new C8(this.p));const t=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(t).then((e=>e?(Ct(typeof e.token=="string",44558,{tokenResult:e}),this.m=e.token,new C8(e.token)):null)):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.o&&this.appCheck.removeTokenListener(this.o),this.o=void 0}}/** 726 * @license 727 * Copyright 2020 Google LLC 728 * 729 * Licensed under the Apache License, Version 2.0 (the "License"); 730 * you may not use this file except in compliance with the License. 731 * You may obtain a copy of the License at 732 * 733 * http://www.apache.org/licenses/LICENSE-2.0 734 * 735 * Unless required by applicable law or agreed to in writing, software 736 * distributed under the License is distributed on an "AS IS" BASIS, 737 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 738 * See the License for the specific language governing permissions and 739 * limitations under the License. 740 */function JR(n){const t=typeof self<"u"&&(self.crypto||self.msCrypto),e=new Uint8Array(n);if(t&&typeof t.getRandomValues=="function")t.getRandomValues(e);else for(let s=0;s<n;s++)e[s]=Math.floor(256*Math.random());return e}/** 741 * @license 742 * Copyright 2017 Google LLC 743 * 744 * Licensed under the Apache License, Version 2.0 (the "License"); 745 * you may not use this file except in compliance with the License. 746 * You may obtain a copy of the License at 747 * 748 * http://www.apache.org/licenses/LICENSE-2.0 749 * 750 * Unless required by applicable law or agreed to in writing, software 751 * distributed under the License is distributed on an "AS IS" BASIS, 752 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 753 * See the License for the specific language governing permissions and 754 * limitations under the License. 755 */class um{static newId(){const t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",e=62*Math.floor(4.129032258064516);let s="";for(;s.length<20;){const a=JR(40);for(let l=0;l<a.length;++l)s.length<20&&a[l]<e&&(s+=t.charAt(a[l]%62))}return s}}function Zt(n,t){return n<t?-1:n>t?1:0}function c6(n,t){const e=Math.min(n.length,t.length);for(let s=0;s<e;s++){const a=n.charAt(s),l=t.charAt(s);if(a!==l)return S0(a)===S0(l)?Zt(a,l):S0(a)?1:-1}return Zt(n.length,t.length)}const tN=55296,eN=57343;function S0(n){const t=n.charCodeAt(0);return t>=tN&&t<=eN}function pl(n,t,e){return n.length===t.length&&n.every(((s,a)=>e(s,t[a])))}/** 756 * @license 757 * Copyright 2017 Google LLC 758 * 759 * Licensed under the Apache License, Version 2.0 (the "License"); 760 * you may not use this file except in compliance with the License. 761 * You may obtain a copy of the License at 762 * 763 * http://www.apache.org/licenses/LICENSE-2.0 764 * 765 * Unless required by applicable law or agreed to in writing, software 766 * distributed under the License is distributed on an "AS IS" BASIS, 767 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 768 * See the License for the specific language governing permissions and 769 * limitations under the License. 770 */const ws="__name__";class xs{constructor(t,e,s){e===void 0?e=0:e>t.length&&Vt(637,{offset:e,range:t.length}),s===void 0?s=t.length-e:s>t.length-e&&Vt(1746,{length:s,range:t.length-e}),this.segments=t,this.offset=e,this.len=s}get length(){return this.len}isEqual(t){return xs.comparator(this,t)===0}child(t){const e=this.segments.slice(this.offset,this.limit());return t instanceof xs?t.forEach((s=>{e.push(s)})):e.push(t),this.construct(e)}limit(){return this.offset+this.length}popFirst(t){return t=t===void 0?1:t,this.construct(this.segments,this.offset+t,this.length-t)}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(t){return this.segments[this.offset+t]}isEmpty(){return this.length===0}isPrefixOf(t){if(t.length<this.length)return!1;for(let e=0;e<this.length;e++)if(this.get(e)!==t.get(e))return!1;return!0}isImmediateParentOf(t){if(this.length+1!==t.length)return!1;for(let e=0;e<this.length;e++)if(this.get(e)!==t.get(e))return!1;return!0}forEach(t){for(let e=this.offset,s=this.limit();e<s;e++)t(this.segments[e])}toArray(){return this.segments.slice(this.offset,this.limit())}static comparator(t,e){const s=Math.min(t.length,e.length);for(let a=0;a<s;a++){const l=xs.compareSegments(t.get(a),e.get(a));if(l!==0)return l}return Zt(t.length,e.length)}static compareSegments(t,e){const s=xs.isNumericId(t),a=xs.isNumericId(e);return s&&!a?-1:!s&&a?1:s&&a?xs.extractNumericId(t).compare(xs.extractNumericId(e)):c6(t,e)}static isNumericId(t){return t.startsWith("__id")&&t.endsWith("__")}static extractNumericId(t){return Wr.fromString(t.substring(4,t.length-2))}}class ue extends xs{construct(t,e,s){return new ue(t,e,s)}canonicalString(){return this.toArray().join("/")}toString(){return this.canonicalString()}toStringWithLeadingSlash(){return`/${this.canonicalString()}`}
770toUriEncodedString(){return this.toArray().map(encodeURIComponent).join("/")}static fromString(...t){const e=[];for(const s of t){if(s.indexOf("//")>=0)throw new vt(ot.INVALID_ARGUMENT,`Invalid segment (${s}). Paths must not contain // in them.`);e.push(...s.split("/").filter((a=>a.length>0)))}return new ue(e)}static emptyPath(){return new ue([])}}const nN=/^[_a-zA-Z][_a-zA-Z0-9]*$/;class un extends xs{construct(t,e,s){return new un(t,e,s)}static isValidIdentifier(t){return nN.test(t)}canonicalString(){return this.toArray().map((t=>(t=t.replace(/\\/g,"\\\\").replace(/`/g,"\\`"),un.isValidIdentifier(t)||(t="`"+t+"`"),t))).join(".")}toString(){return this.canonicalString()}isKeyField(){return this.length===1&&this.get(0)===ws}static keyField(){return new un([ws])}static fromServerFormat(t){const e=[];let s="",a=0;const l=()=>{if(s.length===0)throw new vt(ot.INVALID_ARGUMENT,`Invalid field path (${t}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);e.push(s),s=""};let c=!1;for(;a<t.length;){const h=t[a];if(h==="\\"){if(a+1===t.length)throw new vt(ot.INVALID_ARGUMENT,"Path has trailing escape character: "+t);const m=t[a+1];if(m!=="\\"&&m!=="."&&m!=="`")throw new vt(ot.INVALID_ARGUMENT,"Path has invalid escape sequence: "+t);s+=m,a+=2}else h==="`"?(c=!c,a++):h!=="."||c?(s+=h,a++):(l(),a++)}if(l(),c)throw new vt(ot.INVALID_ARGUMENT,"Unterminated ` in path: "+t);return new un(e)}static emptyPath(){return new un([])}}/** 771 * @license 772 * Copyright 2017 Google LLC 773 * 774 * Licensed under the Apache License, Version 2.0 (the "License"); 775 * you may not use this file except in compliance with the License. 776 * You may obtain a copy of the License at 777 * 778 * http://www.apache.org/licenses/LICENSE-2.0 779 * 780 * Unless required by applicable law or agreed to in writing, software 781 * distributed under the License is distributed on an "AS IS" BASIS, 782 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 783 * See the License for the specific language governing permissions and 784 * limitations under the License. 785 */class Nt{constructor(t){this.path=t}static fromPath(t){return new Nt(ue.fromString(t))}static fromName(t){return new Nt(ue.fromString(t).popFirst(5))}static empty(){return new Nt(ue.emptyPath())}get collectionGroup(){return this.path.popLast().lastSegment()}hasCollectionId(t){return this.path.length>=2&&this.path.get(this.path.length-2)===t}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(t){return t!==null&&ue.comparator(this.path,t.path)===0}toString(){return this.path.toString()}static comparator(t,e){return ue.comparator(t.path,e.path)}static isDocumentKey(t){return t.length%2==0}static fromSegments(t){return new Nt(new ue(t.slice()))}}/** 786 * @license 787 * Copyright 2017 Google LLC 788 * 789 * Licensed under the Apache License, Version 2.0 (the "License"); 790 * you may not use this file except in compliance with the License. 791 * You may obtain a copy of the License at 792 * 793 * http://www.apache.org/licenses/LICENSE-2.0 794 * 795 * Unless required by applicable law or agreed to in writing, software 796 * distributed under the License is distributed on an "AS IS" BASIS, 797 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 798 * See the License for the specific language governing permissions and 799 * limitations under the License. 800 */function Ny(n,t,e){if(!e)throw new vt(ot.INVALID_ARGUMENT,`Function ${n}() cannot be called with an empty ${t}.`)}function iN(n,t,e,s){if(t===!0&&s===!0)throw new vt(ot.INVALID_ARGUMENT,`${n} and ${e} cannot be used together.`)}function R8(n){if(!Nt.isDocumentKey(n))throw new vt(ot.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${n} has ${n.length}.`)}function N8(n){if(Nt.isDocumentKey(n))throw new vt(ot.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${n} has ${n.length}.`)}function Lc(n){return typeof n=="object"&&n!==null&&(Object.getPrototypeOf(n)===Object.prototype||Object.getPrototypeOf(n)===null)}function Of(n){if(n===void 0)return"undefined";if(n===null)return"null";if(typeof n=="string")return n.length>20&&(n=`${n.substring(0,20)}...`),JSON.stringify(n);if(typeof n=="number"||typeof n=="boolean")return""+n;if(typeof n=="object"){if(n instanceof Array)return"an array";{const t=(function(s){return s.constructor?s.constructor.name:null})(n);return t?`a custom ${t} object`:"an object"}}return typeof n=="function"?"a function":Vt(12329,{type:typeof n})}function rr(n,t){if("_delegate"in n&&(n=n._delegate),!(n instanceof t)){if(t.name===n.constructor.name)throw new vt(ot.INVALID_ARGUMENT,"Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?");{const e=Of(n);throw new vt(ot.INVALID_ARGUMENT,`Expected type '${t.name}', but it was: ${e}`)}}return n}/** 801 * @license 802 * Copyright 2025 Google LLC 803 * 804 * Licensed under the Apache License, Version 2.0 (the "License");
805 * you may not use this file except in compliance with the License. 806 * You may obtain a copy of the License at 807 * 808 * http://www.apache.org/licenses/LICENSE-2.0 809 * 810 * Unless required by applicable law or agreed to in writing, software 811 * distributed under the License is distributed on an "AS IS" BASIS, 812 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 813 * See the License for the specific language governing permissions and 814 * limitations under the License. 815 */function en(n,t){const e={typeString:n};return t&&(e.value=t),e}function kc(n,t){if(!Lc(n))throw new vt(ot.INVALID_ARGUMENT,"JSON must be an object");let e;for(const s in t)if(t[s]){const a=t[s].typeString,l="value"in t[s]?{value:t[s].value}:void 0;if(!(s in n)){e=`JSON missing required field: '${s}'`;break}const c=n[s];if(a&&typeof c!==a){e=`JSON field '${s}' must be a ${a}.`;break}if(l!==void 0&&c!==l.value){e=`Expected '${s}' field to equal '${l.value}'`;break}}if(e)throw new vt(ot.INVALID_ARGUMENT,e);return!0}/** 816 * @license 817 * Copyright 2017 Google LLC 818 * 819 * Licensed under the Apache License, Version 2.0 (the "License"); 820 * you may not use this file except in compliance with the License. 821 * You may obtain a copy of the License at 822 * 823 * http://www.apache.org/licenses/LICENSE-2.0 824 * 825 * Unless required by applicable law or agreed to in writing, software 826 * distributed under the License is distributed on an "AS IS" BASIS, 827 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 828 * See the License for the specific language governing permissions and 829 * limitations under the License. 830 */const D8=-62135596800,V8=1e6;class Se{static now(){return Se.fromMillis(Date.now())}static fromDate(t){return Se.fromMillis(t.getTime())}static fromMillis(t){const e=Math.floor(t/1e3),s=Math.floor((t-1e3*e)*V8);return new Se(e,s)}constructor(t,e){if(this.seconds=t,this.nanoseconds=e,e<0)throw new vt(ot.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(e>=1e9)throw new vt(ot.INVALID_ARGUMENT,"Timestamp nanoseconds out of range: "+e);if(t<D8)throw new vt(ot.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t);if(t>=253402300800)throw new vt(ot.INVALID_ARGUMENT,"Timestamp seconds out of range: "+t)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/V8}_compareTo(t){return this.seconds===t.seconds?Zt(this.nanoseconds,t.nanoseconds):Zt(this.seconds,t.seconds)}isEqual(t){return t.seconds===this.seconds&&t.nanoseconds===this.nanoseconds}toString(){return"Timestamp(seconds="+this.seconds+", nanoseconds="+this.nanoseconds+")"}toJSON(){return{type:Se._jsonSchemaVersion,seconds:this.seconds,nanoseconds:this.nanoseconds}}static fromJSON(t){if(kc(t,Se._jsonSchema))return new Se(t.seconds,t.nanoseconds)}valueOf(){const t=this.seconds-D8;return String(t).padStart(12,"0")+"."+String(this.nanoseconds).padStart(9,"0")}}Se._jsonSchemaVersion="firestore/timestamp/1.0",Se._jsonSchema={type:en("string",Se._jsonSchemaVersion),seconds:en("number"),nanoseconds:en("number")};/** 831 * @license 832 * Copyright 2017 Google LLC 833 * 834 * Licensed under the Apache License, Version 2.0 (the "License"); 835 * you may not use this file except in compliance with the License. 836 * You may obtain a copy of the License at 837 * 838 * http://www.apache.org/licenses/LICENSE-2.0 839 * 840 * Unless required by applicable law or agreed to in writing, software 841 * distributed under the License is distributed on an "AS IS" BASIS, 842 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 843 * See the License for the specific language governing permissions and 844 * limitations under the License. 845 */class Bt{static fromTimestamp(t){return new Bt(t)}static min(){return new Bt(new Se(0,0))}static max(){return new Bt(new Se(253402300799,999999999))}constructor(t){this.timestamp=t}compareTo(t){return this.timestamp._compareTo(t.timestamp)}isEqual(t){return this.timestamp.isEqual(t.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return"SnapshotVersion("+this.timestamp.toString()+")"}toTimestamp(){return this.timestamp}}/** 846 * @license 847 * Copyright 2021 Google LLC 848 * 849 * Licensed under the Apache License, Version 2.0 (the "License");
850 * you may not use this file except in compliance with the License. 851 * You may obtain a copy of the License at 852 * 853 * http://www.apache.org/licenses/LICENSE-2.0 854 * 855 * Unless required by applicable law or agreed to in writing, software 856 * distributed under the License is distributed on an "AS IS" BASIS, 857 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 858 * See the License for the specific language governing permissions and 859 * limitations under the License. 860 */const gc=-1;function sN(n,t){const e=n.toTimestamp().seconds,s=n.toTimestamp().nanoseconds+1,a=Bt.fromTimestamp(s===1e9?new Se(e+1,0):new Se(e,s));return new ra(a,Nt.empty(),t)}function rN(n){return new ra(n.readTime,n.key,gc)}class ra{constructor(t,e,s){this.readTime=t,this.documentKey=e,this.largestBatchId=s}static min(){return new ra(Bt.min(),Nt.empty(),gc)}static max(){return new ra(Bt.max(),Nt.empty(),gc)}}function aN(n,t){let e=n.readTime.compareTo(t.readTime);return e!==0?e:(e=Nt.comparator(n.documentKey,t.documentKey),e!==0?e:Zt(n.largestBatchId,t.largestBatchId))}/** 861 * @license 862 * Copyright 2020 Google LLC 863 * 864 * Licensed under the Apache License, Version 2.0 (the "License"); 865 * you may not use this file except in compliance with the License. 866 * You may obtain a copy of the License at 867 * 868 * http://www.apache.org/licenses/LICENSE-2.0 869 * 870 * Unless required by applicable law or agreed to in writing, software 871 * distributed under the License is distributed on an "AS IS" BASIS, 872 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 873 * See the License for the specific language governing permissions and 874 * limitations under the License. 875 */const oN="The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.";class lN{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(t){this.onCommittedListeners.push(t)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach((t=>t()))}}/** 876 * @license 877 * Copyright 2017 Google LLC 878 * 879 * Licensed under the Apache License, Version 2.0 (the "License"); 880 * you may not use this file except in compliance with the License. 881 * You may obtain a copy of the License at 882 * 883 * http://www.apache.org/licenses/LICENSE-2.0 884 * 885 * Unless required by applicable law or agreed to in writing, software 886 * distributed under the License is distributed on an "AS IS" BASIS, 887 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 888 * See the License for the specific language governing permissions and 889 * limitations under the License. 890 */async function Rl(n){if(n.code!==ot.FAILED_PRECONDITION||n.message!==oN)throw n;_t("LocalStore","Unexpectedly lost primary lease")}/** 891 * @license 892 * Copyright 2017 Google LLC 893 * 894 * Licensed under the Apache License, Version 2.0 (the "License"); 895 * you may not use this file except in compliance with the License. 896 * You may obtain a copy of the License at 897 * 898 * http://www.apache.org/licenses/LICENSE-2.0 899 * 900 * Unless required by applicable law or agreed to in writing, software 901 * distributed under the License is distributed on an "AS IS" BASIS, 902 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 903 * See the License for the specific language governing permissions and 904 * limitations under the License. 905 */class lt{constructor(t){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,t((e=>{this.isDone=!0,this.result=e,this.nextCallback&&this.nextCallback(e)}),(e=>{this.isDone=!0,this.error=e,this.catchCallback&&this.catchCallback(e)}))}catch(t){return this.next(void 0,t)}next(t,e){return this.callbackAttached&&Vt(59440),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(e,this.error):this.wrapSuccess(t,this.result):new lt(((s,a)=>{this.nextCallback=l=>{this.wrapSuccess(t,l).next(s,a)},this.catchCallback=l=>{this.wrapFailure(e,l).next(s,a)}}))}toPromise(){return new Promise(((t,e)=>{this.next(t,e)}))}wrapUserFunction(t){try{const e=t();return e instanceof lt?e:lt.resolve(e)}catch(e){return lt.reject(e)}}wrapSuccess(t,e){return t?this.wrapUserFunction((()=>t(e))):lt.resolve(e)}wrapFailure(t,e){return t?this.wrapUserFunction((()=>t(e))):lt.reject(e)}static resolve(t){return new lt(((e,s)=>{e(t)}))}static reject(t){return new lt(((e,s)=>{s(t)}))}static waitFor(t){return new lt(((e,s)=>{let a=0,l=0,c=!1;t.forEach((h=>{++a,h.next((()=>{++l,c&&l===a&&e()}),(m=>s(m)))})),c=!0,l===a&&e()}))}static or(t){let e=lt.resolve(!1);for(const s of t)e=e.next((a=>a?lt.resolve(a):s()));return e}static forEach(t,e){const s=[];return t.forEach(((a,l)=>{s.push(e.call(this,a,l))})),this.waitFor(s)}static mapArray(t,e){return new lt(((s,a)=>{const l=t.length,c=new Array(l);let h=0;for(let m=0;m<l;m++){const g=m;e(t[g]).next((y=>{c[g]=y,++h,h===l&&s(c)}),(y=>a(y)))}}))}static doWhile(t,e){return new lt(((s,a)=>{const l=()=>{t()===!0?e().next((()=>{l()}),a):s()};l()}
vendor: 6,832 bytes, lines 905-965
905))}}function uN(n){const t=n.match(/Android ([\d.]+)/i),e=t?t[1].split(".").slice(0,2).join("."):"-1";return Number(e)}function Nl(n){return n.name==="IndexedDbTransactionError"}/** 906 * @license 907 * Copyright 2018 Google LLC 908 * 909 * Licensed under the Apache License, Version 2.0 (the "License"); 910 * you may not use this file except in compliance with the License. 911 * You may obtain a copy of the License at 912 * 913 * http://www.apache.org/licenses/LICENSE-2.0 914 * 915 * Unless required by applicable law or agreed to in writing, software 916 * distributed under the License is distributed on an "AS IS" BASIS, 917 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 918 * See the License for the specific language governing permissions and 919 * limitations under the License. 920 */class Mf{constructor(t,e){this.previousValue=t,e&&(e.sequenceNumberHandler=s=>this.ae(s),this.ue=s=>e.writeSequenceNumber(s))}ae(t){return this.previousValue=Math.max(t,this.previousValue),this.previousValue}next(){const t=++this.previousValue;return this.ue&&this.ue(t),t}}Mf.ce=-1;/** 921 * @license 922 * Copyright 2017 Google LLC 923 * 924 * Licensed under the Apache License, Version 2.0 (the "License"); 925 * you may not use this file except in compliance with the License. 926 * You may obtain a copy of the License at 927 * 928 * http://www.apache.org/licenses/LICENSE-2.0 929 * 930 * Unless required by applicable law or agreed to in writing, software 931 * distributed under the License is distributed on an "AS IS" BASIS, 932 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 933 * See the License for the specific language governing permissions and 934 * limitations under the License. 935 */const cm=-1;function Pf(n){return n==null}function yc(n){return n===0&&1/n==-1/0}function cN(n){return typeof n=="number"&&Number.isInteger(n)&&!yc(n)&&n<=Number.MAX_SAFE_INTEGER&&n>=Number.MIN_SAFE_INTEGER}function hN(n){return typeof n=="string"}/** 936 * @license 937 * Copyright 2017 Google LLC 938 * 939 * Licensed under the Apache License, Version 2.0 (the "License"); 940 * you may not use this file except in compliance with the License. 941 * You may obtain a copy of the License at 942 * 943 * http://www.apache.org/licenses/LICENSE-2.0 944 * 945 * Unless required by applicable law or agreed to in writing, software 946 * distributed under the License is distributed on an "AS IS" BASIS, 947 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 948 * See the License for the specific language governing permissions and 949 * limitations under the License. 950 */const Dy="�";function fN(n){let t="";for(let e=0;e<n.length;e++)t.length>0&&(t=I8(t)),t=dN(n.get(e),t);return I8(t)}function dN(n,t){let e=t;const s=n.length;for(let a=0;a<s;a++){const l=n.charAt(a);switch(l){case"\0":e+="��";break;case Dy:e+="��";break;default:e+=l}}return e}function I8(n){return n+Dy+"�"}/** 951 * @license 952 * Copyright 2017 Google LLC 953 * 954 * Licensed under the Apache License, Version 2.0 (the "License"); 955 * you may not use this file except in compliance with the License. 956 * You may obtain a copy of the License at 957 * 958 * http://www.apache.org/licenses/LICENSE-2.0 959 * 960 * Unless required by applicable law or agreed to in writing, software 961 * distributed under the License is distributed on an "AS IS" BASIS, 962 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 963 * See the License for the specific language governing permissions and 964 * limitations under the License. 965 */class Ce{constructor(t,e){this.comparator=t,this.root=e||xn.EMPTY}insert(t,e){return new Ce(this.comparator,this.root.insert(t,e,this.comparator).copy(null,null,xn.BLACK,null,null))}remove(t){return new Ce(this.comparator,this.root.remove(t,this.comparator).copy(null,null,xn.BLACK,null,null))}get(t){let e=this.root;for(;!e.isEmpty();){const s=this.comparator(t,e.key);if(s===0)return e.value;s<0?e=e.left:s>0&&(e=e.right)}return null}indexOf(t){let e=0,s=this.root;for(;!s.isEmpty();){const a=this.comparator(t,s.key);if(a===0)return e+s.left.size;a<0?s=s.left:(e+=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(t){return this.root.inorderTraversal(t)}forEach(t){this.inorderTraversal(((e,s)=>(t(e,s),!1)))}toString(){const t=[];return this.inorderTraversal(((e,s)=>(t.push(`${e}:${s}`),!1))),`{${t.join(", ")}}`}reverseTraversal(t){return this.root.reverseTraversal(t)}getIterator(){return new Rh(this.root,null,this.comparator,!1)}getIteratorFrom(t){return new Rh(this.root,t,this.comparator,!1)}getReverseIterator(){return new Rh(this.root,null,this.comparator,!0)}getReverseIteratorFrom(t){return new Rh(this.root,t,this.comparator,!0)}}class Rh{constructor(t,e,s,a){this.isReverse=a,this.nodeStack=[];let l=1;for(;!t.isEmpty();)if(l=e?s(t.key,e):1,e&&a&&(l*=-1),l<0)t=this.isReverse?t.left:t.right;else{if(l===0){this.nodeStack.push(t);break}this.nodeStack.push(t),t=this.isReverse?t.right:t.left}}getNext(){let t=this.nodeStack.pop();const e={key:t.key,value:t.value};if(this.isReverse)for(t=t.left;!t.isEmpty();)this.nodeStack.push(t),t=t.right;else for(t=t.right;!t.isEmpty();)this.nodeStack.push(t),t=t.left;return e}hasNext(){return this.nodeStack.length>0}peek(){if(this.nodeStack.length===0)return null;const t=this.nodeStack[this.nodeStack.length-1];return{key:t.key,value:t.value}}}class xn{constructor(t,e,s,a,l){this.key=t,this.value=e,this.color=s??xn.RED,this.left=a??xn.EMPTY,this.right=l??xn.EMPTY,this.size=this.left.size+1+this.right.size}copy(t,e,s,a,l){return new xn(t??this.key,e??this.value,s??this.color,a??this.left,l??this.right)}isEmpty(){return!1}inorderTraversal(t){return this.left.inorderTraversal(t)||t(this.key,this.value)||this.right.inorderTraversal(t)}reverseTraversal(t){return this.right.reverseTraversal(t)||t(this.key,this.value)||this.left.reverseTraversal(t)}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(t,e,s){let a=this;const l=s(t,a.key);return a=l<0?a.copy(null,null,null,a.left.insert(t,e,s),null):l===0?a.copy(null,e,null,null,null):a.copy(null,null,null,null,a.right.insert(t,e,s)),a.fixUp()}removeMin(){if(this.left.isEmpty())return xn.EMPTY;let t=this;return t.left.isRed()||t.left.left.isRed()||(t=t.moveRedLeft()),t=t.copy(null,null,null,t.left.removeMin(),null),t.fixUp()}remove(t,e){let s,a=this;if(e(t,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(t,e),null);else{if(a.left.isRed()&&(a=a.rotateRight()),a.right.isEmpty()||a.right.isRed()||a.right.left.isRed()||(a=a.moveRedRight()),e(t,a.key)===0){if(a.right.isEmpty())return xn.EMPTY;s=a.right.min(),a=a.copy(s.key,s.value,null,null,a.right.removeMin())}
vendor: 4,099 bytes, lines 965-984
965a=a.copy(null,null,null,null,a.right.remove(t,e))}return a.fixUp()}isRed(){return this.color}fixUp(){let t=this;return t.right.isRed()&&!t.left.isRed()&&(t=t.rotateLeft()),t.left.isRed()&&t.left.left.isRed()&&(t=t.rotateRight()),t.left.isRed()&&t.right.isRed()&&(t=t.colorFlip()),t}moveRedLeft(){let t=this.colorFlip();return t.right.left.isRed()&&(t=t.copy(null,null,null,null,t.right.rotateRight()),t=t.rotateLeft(),t=t.colorFlip()),t}moveRedRight(){let t=this.colorFlip();return t.left.left.isRed()&&(t=t.rotateRight(),t=t.colorFlip()),t}rotateLeft(){const t=this.copy(null,null,xn.RED,null,this.right.left);return this.right.copy(null,null,this.color,t,null)}rotateRight(){const t=this.copy(null,null,xn.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,t)}colorFlip(){const t=this.left.copy(null,null,!this.left.color,null,null),e=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,t,e)}checkMaxDepth(){const t=this.check();return Math.pow(2,t)<=this.size+1}check(){if(this.isRed()&&this.left.isRed())throw Vt(43730,{key:this.key,value:this.value});if(this.right.isRed())throw Vt(14113,{key:this.key,value:this.value});const t=this.left.check();if(t!==this.right.check())throw Vt(27949);return t+(this.isRed()?0:1)}}xn.EMPTY=null,xn.RED=!0,xn.BLACK=!1;xn.EMPTY=new class{constructor(){this.size=0}get key(){throw Vt(57766)}get value(){throw Vt(16141)}get color(){throw Vt(16727)}get left(){throw Vt(29726)}get right(){throw Vt(36894)}copy(t,e,s,a,l){return this}insert(t,e,s){return new xn(t,e)}remove(t,e){return this}isEmpty(){return!0}inorderTraversal(t){return!1}reverseTraversal(t){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};/** 966 * @license 967 * Copyright 2017 Google LLC 968 * 969 * Licensed under the Apache License, Version 2.0 (the "License"); 970 * you may not use this file except in compliance with the License. 971 * You may obtain a copy of the License at 972 * 973 * http://www.apache.org/licenses/LICENSE-2.0 974 * 975 * Unless required by applicable law or agreed to in writing, software 976 * distributed under the License is distributed on an "AS IS" BASIS, 977 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 978 * See the License for the specific language governing permissions and 979 * limitations under the License. 980 */class nn{constructor(t){this.comparator=t,this.data=new Ce(this.comparator)}has(t){return this.data.get(t)!==null}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(t){return this.data.indexOf(t)}forEach(t){this.data.inorderTraversal(((e,s)=>(t(e),!1)))}forEachInRange(t,e){const s=this.data.getIteratorFrom(t[0]);for(;s.hasNext();){const a=s.getNext();if(this.comparator(a.key,t[1])>=0)return;e(a.key)}}forEachWhile(t,e){let s;for(s=e!==void 0?this.data.getIteratorFrom(e):this.data.getIterator();s.hasNext();)if(!t(s.getNext().key))return}firstAfterOrEqual(t){const e=this.data.getIteratorFrom(t);return e.hasNext()?e.getNext().key:null}getIterator(){return new O8(this.data.getIterator())}getIteratorFrom(t){return new O8(this.data.getIteratorFrom(t))}add(t){return this.copy(this.data.remove(t).insert(t,!0))}delete(t){return this.has(t)?this.copy(this.data.remove(t)):this}isEmpty(){return this.data.isEmpty()}unionWith(t){let e=this;return e.size<t.size&&(e=t,t=this),t.forEach((s=>{e=e.add(s)})),e}isEqual(t){if(!(t instanceof nn)||this.size!==t.size)return!1;const e=this.data.getIterator(),s=t.data.getIterator();for(;e.hasNext();){const a=e.getNext().key,l=s.getNext().key;if(this.comparator(a,l)!==0)return!1}return!0}toArray(){const t=[];return this.forEach((e=>{t.push(e)})),t}toString(){const t=[];return this.forEach((e=>t.push(e))),"SortedSet("+t.toString()+")"}copy(t){const e=new nn(this.comparator);return e.data=t,e}}class O8{constructor(t){this.iter=t}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}}/** 981 * @license 982 * Copyright 2020 Google LLC 983 * 984 * Licensed under the Apache License, Version 2.0 (the "License");
985 * you may not use this file except in compliance with the License. 986 * You may obtain a copy of the License at 987 * 988 * http://www.apache.org/licenses/LICENSE-2.0 989 * 990 * Unless required by applicable law or agreed to in writing, software 991 * distributed under the License is distributed on an "AS IS" BASIS, 992 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 993 * See the License for the specific language governing permissions and 994 * limitations under the License. 995 */class Xi{constructor(t){this.fields=t,t.sort(un.comparator)}static empty(){return new Xi([])}unionWith(t){let e=new nn(un.comparator);for(const s of this.fields)e=e.add(s);for(const s of t)e=e.add(s);return new Xi(e.toArray())}covers(t){for(const e of this.fields)if(e.isPrefixOf(t))return!0;return!1}isEqual(t){return pl(this.fields,t.fields,((e,s)=>e.isEqual(s)))}}/** 996 * @license 997 * Copyright 2017 Google LLC 998 * 999 * Licensed under the Apache License, Version 2.0 (the "License"); 1000 * you may not use this file except in compliance with the License. 1001 * You may obtain a copy of the License at 1002 * 1003 * http://www.apache.org/licenses/LICENSE-2.0 1004 * 1005 * Unless required by applicable law or agreed to in writing, software 1006 * distributed under the License is distributed on an "AS IS" BASIS, 1007 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1008 * See the License for the specific language governing permissions and 1009 * limitations under the License. 1010 */function ff(n){let t=0;for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&t++;return t}function lo(n,t){for(const e in n)Object.prototype.hasOwnProperty.call(n,e)&&t(e,n[e])}function mN(n,t){const e=[];for(const s in n)Object.prototype.hasOwnProperty.call(n,s)&&e.push(t(n[s],s,n));return e}function Vy(n){for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t))return!1;return!0}/** 1011 * @license 1012 * Copyright 2023 Google LLC 1013 * 1014 * Licensed under the Apache License, Version 2.0 (the "License"); 1015 * you may not use this file except in compliance with the License. 1016 * You may obtain a copy of the License at 1017 * 1018 * http://www.apache.org/licenses/LICENSE-2.0 1019 * 1020 * Unless required by applicable law or agreed to in writing, software 1021 * distributed under the License is distributed on an "AS IS" BASIS, 1022 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1023 * See the License for the specific language governing permissions and 1024 * limitations under the License. 1025 */class Iy extends Error{constructor(){super(...arguments),this.name="Base64DecodeError"}}/** 1026 * @license 1027 * Copyright 2020 Google LLC 1028 * 1029 * Licensed under the Apache License, Version 2.0 (the "License"); 1030 * you may not use this file except in compliance with the License. 1031 * You may obtain a copy of the License at 1032 * 1033 * http://www.apache.org/licenses/LICENSE-2.0 1034 * 1035 * Unless required by applicable law or agreed to in writing, software 1036 * distributed under the License is distributed on an "AS IS" BASIS, 1037 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1038 * See the License for the specific language governing permissions and 1039 * limitations under the License. 1040 */class sn{constructor(t){this.binaryString=t}static fromBase64String(t){const e=(function(a){try{return atob(a)}catch(l){throw typeof DOMException<"u"&&l instanceof DOMException?new Iy("Invalid base64 string: "+l):l}})(t);return new sn(e)}static fromUint8Array(t){const e=(function(a){let l="";for(let c=0;c<a.length;++c)l+=String.fromCharCode(a[c]);return l})(t);return new sn(e)}[Symbol.iterator](){let t=0;return{next:()=>t<this.binaryString.length?{value:this.binaryString.charCodeAt(t++),done:!1}:{value:void 0,done:!0}}}toBase64(){return(function(e){return btoa(e)})(this.binaryString)}toUint8Array(){return(function(e){const s=new Uint8Array(e.length);for(let a=0;a<e.length;a++)s[a]=e.charCodeAt(a);return s})(this.binaryString)}approximateByteSize(){return 2*this.binaryString.length}compareTo(t){return Zt(this.binaryString,t.binaryString)}isEqual(t){return this.binaryString===t.binaryString}}sn.EMPTY_BYTE_STRING=new sn("");const pN=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function aa(n){if(Ct(!!n,39018),typeof n=="string"){let t=0;const e=pN.exec(n);if(Ct(!!e,46558,{timestamp:n}),e[1]){let a=e[1];a=(a+"000000000").substr(0,9),t=Number(a)}const s=new Date(n);return{seconds:Math.floor(s.getTime()/1e3),nanos:t}}return{seconds:De(n.seconds),nanos:De(n.nanos)}}function De(n){return typeof n=="number"?n:typeof n=="string"?Number(n):0}function oa(n){return typeof n=="string"?sn.fromBase64String(n):sn.fromUint8Array(n)}/** 1041 * @license 1042 * Copyright 2020 Google LLC 1043 * 1044 * Licensed under the Apache License, Version 2.0 (the "License");
1045 * you may not use this file except in compliance with the License. 1046 * You may obtain a copy of the License at 1047 * 1048 * http://www.apache.org/licenses/LICENSE-2.0 1049 * 1050 * Unless required by applicable law or agreed to in writing, software 1051 * distributed under the License is distributed on an "AS IS" BASIS, 1052 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1053 * See the License for the specific language governing permissions and 1054 * limitations under the License. 1055 */const Oy="server_timestamp",My="__type__",Py="__previous_value__",Ly="__local_write_time__";function Lf(n){var e,s;return((s=(((e=n==null?void 0:n.mapValue)==null?void 0:e.fields)||{})[My])==null?void 0:s.stringValue)===Oy}function jc(n){const t=n.mapValue.fields[Py];return Lf(t)?jc(t):t}function gl(n){const t=aa(n.mapValue.fields[Ly].timestampValue);return new Se(t.seconds,t.nanos)}/** 1056 * @license 1057 * Copyright 2017 Google LLC 1058 * 1059 * Licensed under the Apache License, Version 2.0 (the "License"); 1060 * you may not use this file except in compliance with the License. 1061 * You may obtain a copy of the License at 1062 * 1063 * http://www.apache.org/licenses/LICENSE-2.0 1064 * 1065 * Unless required by applicable law or agreed to in writing, software 1066 * distributed under the License is distributed on an "AS IS" BASIS, 1067 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1068 * See the License for the specific language governing permissions and 1069 * limitations under the License. 1070 */class gN{constructor(t,e,s,a,l,c,h,m,g,y,_){this.databaseId=t,this.appId=e,this.persistenceKey=s,this.host=a,this.ssl=l,this.forceLongPolling=c,this.autoDetectLongPolling=h,this.longPollingOptions=m,this.useFetchStreams=g,this.isUsingEmulator=y,this.apiKey=_}}const df="(default)";class vc{constructor(t,e){this.projectId=t,this.database=e||df}static empty(){return new vc("","")}get isDefaultDatabase(){return this.database===df}isEqual(t){return t instanceof vc&&t.projectId===this.projectId&&t.database===this.database}}function yN(n,t){if(!Object.prototype.hasOwnProperty.apply(n.options,["projectId"]))throw new vt(ot.INVALID_ARGUMENT,'"projectId" not provided in firebase.initializeApp.');return new vc(n.options.projectId,t)}/** 1071 * @license 1072 * Copyright 2020 Google LLC 1073 * 1074 * Licensed under the Apache License, Version 2.0 (the "License"); 1075 * you may not use this file except in compliance with the License. 1076 * You may obtain a copy of the License at 1077 * 1078 * http://www.apache.org/licenses/LICENSE-2.0 1079 * 1080 * Unless required by applicable law or agreed to in writing, software 1081 * distributed under the License is distributed on an "AS IS" BASIS, 1082 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1083 * See the License for the specific language governing permissions and 1084 * limitations under the License. 1085 */const ky="__type__",vN="__max__",Nh={mapValue:{}},jy="__vector__",_c="value",yl={nullValue:"NULL_VALUE"},Zn={booleanValue:!0},pn={booleanValue:!1};function rn(n){return"nullValue"in n?0:"booleanValue"in n?1:"integerValue"in n||"doubleValue"in n?2:"timestampValue"in n?3:"stringValue"in n?5:"bytesValue"in n?6:"referenceValue"in n?7:"geoPointValue"in n?8:"arrayValue"in n?9:"mapValue"in n?Lf(n)?4:_N(n)?9007199254740991:mf(n)?10:11:Vt(28295,{value:n})}function Vi(n,t,e){if(n===t)return!0;const s=rn(n);if(s!==rn(t))return!1;switch(s){case 0:case 9007199254740991:return!0;case 1:return n.booleanValue===t.booleanValue;case 4:return gl(n).isEqual(gl(t));case 3:return(function(l,c){if(typeof l.timestampValue=="string"&&typeof c.timestampValue=="string"&&l.timestampValue.length===c.timestampValue.length)return l.timestampValue===c.timestampValue;const h=aa(l.timestampValue),m=aa(c.timestampValue);return h.seconds===m.seconds&&h.nanos===m.nanos})(n,t);case 5:return n.stringValue===t.stringValue;case 6:return(function(l,c){return oa(l.bytesValue).isEqual(oa(c.bytesValue))})(n,t);case 7:return n.referenceValue===t.referenceValue;case 8:return(function(l,c){return De(l.geoPointValue.latitude)===De(c.geoPointValue.latitude)&&De(l.geoPointValue.longitude)===De(c.geoPointValue.longitude)})(n,t);
1085case 2:return(function(l,c,h){if("integerValue"in l&&"integerValue"in c)return De(l.integerValue)===De(c.integerValue);let m,g;if("doubleValue"in l&&"doubleValue"in c)m=De(l.doubleValue),g=De(c.doubleValue);else{if(!(h!=null&&h.Ee))return!1;m=De(l.integerValue??l.doubleValue),g=De(c.integerValue??c.doubleValue)}return m===g?!!(h!=null&&h.he)||yc(m)===yc(g):!!(h===void 0||h.Te)&&isNaN(m)&&isNaN(g)})(n,t,e);case 9:return pl(n.arrayValue.values||[],t.arrayValue.values||[],((a,l)=>Vi(a,l,e)));case 10:case 11:return(function(l,c,h){const m=l.mapValue.fields||{},g=c.mapValue.fields||{};if(ff(m)!==ff(g))return!1;for(const y in m)if(m.hasOwnProperty(y)&&(g[y]===void 0||!Vi(m[y],g[y],h)))return!1;return!0})(n,t,e);default:return Vt(52216,{left:n})}}function Ec(n,t){return(n.values||[]).find((e=>Vi(e,t)))!==void 0}function Jn(n,t){if(n===t)return 0;const e=rn(n),s=rn(t);if(e!==s)return Zt(e,s);switch(e){case 0:case 9007199254740991:return 0;case 1:return Zt(n.booleanValue,t.booleanValue);case 2:return(function(l,c){const h=De(l.integerValue||l.doubleValue),m=De(c.integerValue||c.doubleValue);return h<m?-1:h>m?1:h===m?0:isNaN(h)?isNaN(m)?0:-1:1})(n,t);case 3:return M8(n.timestampValue,t.timestampValue);case 4:return M8(gl(n),gl(t));case 5:return c6(n.stringValue,t.stringValue);case 6:return(function(l,c){const h=oa(l),m=oa(c);return h.compareTo(m)})(n.bytesValue,t.bytesValue);case 7:return(function(l,c){const h=l.split("/"),m=c.split("/");for(let g=0;g<h.length&&g<m.length;g++){const y=Zt(h[g],m[g]);if(y!==0)return y}return Zt(h.length,m.length)})(n.referenceValue,t.referenceValue);case 8:return(function(l,c){const h=Zt(De(l.latitude),De(c.latitude));return h!==0?h:Zt(De(l.longitude),De(c.longitude))})(n.geoPointValue,t.geoPointValue);case 9:return P8(n.arrayValue,t.arrayValue);case 10:return(function(l,c){var x,R,N,j;const h=l.fields||{},m=c.fields||{},g=(x=h[_c])==null?void 0:x.arrayValue,y=(R=m[_c])==null?void 0:R.arrayValue,_=Zt(((N=g==null?void 0:g.values)==null?void 0:N.length)||0,((j=y==null?void 0:y.values)==null?void 0:j.length)||0);return _!==0?_:P8(g,y)})(n.mapValue,t.mapValue);case 11:return(function(l,c){if(l===Nh.mapValue&&c===Nh.mapValue)return 0;if(l===Nh.mapValue)return 1;if(c===Nh.mapValue)return-1;const h=l.fields||{},m=Object.keys(h),g=c.fields||{},y=Object.keys(g);m.sort(),y.sort();for(let _=0;_<m.length&&_<y.length;++_){const x=c6(m[_],y[_]);if(x!==0)return x;const R=Jn(h[m[_]],g[y[_]]);if(R!==0)return R}return Zt(m.length,y.length)})(n.mapValue,t.mapValue);default:throw Vt(23264,{Pe:e})}}function M8(n,t){if(typeof n=="string"&&typeof t=="string"&&n.length===t.length)return Zt(n,t);const e=aa(n),s=aa(t),a=Zt(e.seconds,s.seconds);return a!==0?a:Zt(e.nanos,s.nanos)}function P8(n,t){const e=n.values||[],s=t.values||[];for(let a=0;a<e.length&&a<s.length;++a){const l=Jn(e[a],s[a]);if(l!==void 0&&l!==0)return l}return Zt(e.length,s.length)}function vl(n){return h6(n)}function h6(n){return"nullValue"in n?"null":"booleanValue"in n?""+n.booleanValue:"integerValue"in n?""+n.integerValue:"doubleValue"in n?""+n.doubleValue:"timestampValue"in n?(function(e){const s=aa(e);return`time(${s.seconds},${s.nanos})`})(n.timestampValue):"stringValue"in n?n.stringValue:"bytesValue"in n?(function(e){return oa(e).toBase64()})(n.bytesValue):"referenceValue"in n?(function(e){return Nt.fromName(e).toString()})(n.referenceValue):"geoPointValue"in n?(function(e){return`geo(${e.latitude},${e.longitude})`})(n.geoPointValue):"arrayValue"in n?(function(e){let s="[",a=!0;for(const l of e.values||[])a?a=!1:s+=",",s+=h6(l);return s+"]"})(n.arrayValue):"mapValue"in n?(function(e){const s=Object.keys(e.fields||{}).sort();let a="{",l=!0;for(const c of s)l?l=!1:a+=",",a+=`${c}:${h6(e.fields[c])}`;return a+"}"})(n.mapValue):Vt(61005,{value:n})}function qh(n){switch(rn(n)){case 0:case 1:return 4;case 2:return 8;case 3:case 8:return 16;case 4:const t=jc(n);return t?16+qh(t):16;case 5:return 2*n.stringValue.length;case 6:return oa(n.bytesValue).approximateByteSize();case 7:return n.referenceValue.length;case 9:return(function(s){return(s.values||[]).reduce(((a,l)=>
vendor: 3,191 bytes, lines 1085-1100
1085a+qh(l)),0)})(n.arrayValue);case 10:case 11:return(function(s){let a=0;return lo(s.fields,((l,c)=>{a+=l.length+qh(c)})),a})(n.mapValue);default:throw Vt(13486,{value:n})}}function L8(n,t){return{referenceValue:`projects/${n.projectId}/databases/${n.database}/documents/${t.path.canonicalString()}`}}function bs(n){return!!n&&"integerValue"in n}function Za(n){return!!n&&"doubleValue"in n}function la(n){return bs(n)||Za(n)}function _l(n){return!!n&&"arrayValue"in n}function fi(n){return!!n&&"nullValue"in n}function ti(n){return!!n&&"doubleValue"in n&&isNaN(Number(n.doubleValue))}function eo(n){return!!n&&"mapValue"in n}function mf(n){var e,s;return((s=(((e=n==null?void 0:n.mapValue)==null?void 0:e.fields)||{})[ky])==null?void 0:s.stringValue)===jy}function f6(n){var t,e;return(e=(((t=n==null?void 0:n.mapValue)==null?void 0:t.fields)||{})[_c])==null?void 0:e.arrayValue}function ec(n){if(n.geoPointValue)return{geoPointValue:{...n.geoPointValue}};if(n.timestampValue&&typeof n.timestampValue=="object")return{timestampValue:{...n.timestampValue}};if(n.mapValue){const t={mapValue:{fields:{}}};return lo(n.mapValue.fields,((e,s)=>t.mapValue.fields[e]=ec(s))),t}if(n.arrayValue){const t={arrayValue:{values:[]}};for(let e=0;e<(n.arrayValue.values||[]).length;++e)t.arrayValue.values[e]=ec(n.arrayValue.values[e]);return t}return{...n}}function _N(n){return(((n.mapValue||{}).fields||{}).__type__||{}).stringValue===vN}/** 1086 * @license 1087 * Copyright 2017 Google LLC 1088 * 1089 * Licensed under the Apache License, Version 2.0 (the "License"); 1090 * you may not use this file except in compliance with the License. 1091 * You may obtain a copy of the License at 1092 * 1093 * http://www.apache.org/licenses/LICENSE-2.0 1094 * 1095 * Unless required by applicable law or agreed to in writing, software 1096 * distributed under the License is distributed on an "AS IS" BASIS, 1097 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1098 * See the License for the specific language governing permissions and 1099 * limitations under the License. 1100 */class hi{constructor(t){this.value=t}static empty(){return new hi({mapValue:{}})}field(t){if(t.isEmpty())return this.value;{let e=this.value;for(let s=0;s<t.length-1;++s)if(e=(e.mapValue.fields||{})[t.get(s)],!eo(e))return null;return e=(e.mapValue.fields||{})[t.lastSegment()],e||null}}set(t,e){this.getFieldsMap(t.popLast())[t.lastSegment()]=ec(e)}setAll(t){let e=un.emptyPath(),s={},a=[];t.forEach(((c,h)=>{if(!e.isImmediateParentOf(h)){const m=this.getFieldsMap(e);this.applyChanges(m,s,a),s={},a=[],e=h.popLast()}c?s[h.lastSegment()]=ec(c):a.push(h.lastSegment())}));const l=this.getFieldsMap(e);this.applyChanges(l,s,a)}delete(t){const e=this.field(t.popLast());eo(e)&&e.mapValue.fields&&delete e.mapValue.fields[t.lastSegment()]}isEqual(t){return Vi(this.value,t.value)}getFieldsMap(t){let e=this.value;e.mapValue.fields||(e.mapValue={fields:{}});for(let s=0;s<t.length;++s){let a=e.mapValue.fields[t.get(s)];eo(a)&&a.mapValue.fields||(a={mapValue:{fields:{}}},e.mapValue.fields[t.get(s)]=a),e=a}return e.mapValue.fields}applyChanges(t,e,s){lo(e,((a,l)=>t[a]=l));for(const a of s)delete t[a]}clone(){return new hi(ec(this.value))}}function By(n){const t=[];
1100return lo(n.fields,((e,s)=>{const a=new un([e]);if(eo(s)){const l=By(s.mapValue).fields;if(l.length===0)t.push(a);else for(const c of l)t.push(a.child(c))}else t.push(a)})),new Xi(t)}/** 1101 * @license 1102 * Copyright 2020 Google LLC 1103 * 1104 * Licensed under the Apache License, Version 2.0 (the "License"); 1105 * you may not use this file except in compliance with the License. 1106 * You may obtain a copy of the License at 1107 * 1108 * http://www.apache.org/licenses/LICENSE-2.0 1109 * 1110 * Unless required by applicable law or agreed to in writing, software 1111 * distributed under the License is distributed on an "AS IS" BASIS, 1112 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1113 * See the License for the specific language governing permissions and 1114 * limitations under the License. 1115 */function kf(n,t){if(n.useProto3Json){if(isNaN(t))return{doubleValue:"NaN"};if(t===1/0)return{doubleValue:"Infinity"};if(t===-1/0)return{doubleValue:"-Infinity"}}return{doubleValue:yc(t)?"-0":t}}function hm(n){return{integerValue:""+n}}function fm(n,t,e){return Number.isInteger(t)&&(e!=null&&e.preferIntegers)||cN(t)?hm(t):kf(n,t)}/** 1116 * @license 1117 * Copyright 2018 Google LLC 1118 * 1119 * Licensed under the Apache License, Version 2.0 (the "License"); 1120 * you may not use this file except in compliance with the License. 1121 * You may obtain a copy of the License at 1122 * 1123 * http://www.apache.org/licenses/LICENSE-2.0 1124 * 1125 * Unless required by applicable law or agreed to in writing, software 1126 * distributed under the License is distributed on an "AS IS" BASIS, 1127 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1128 * See the License for the specific language governing permissions and 1129 * limitations under the License. 1130 */class jf{constructor(){this._=void 0}}function EN(n,t,e){return n instanceof Tc?(function(a,l){const c={fields:{[My]:{stringValue:Oy},[Ly]:{timestampValue:{seconds:a.seconds,nanos:a.nanoseconds}}}};return l&&Lf(l)&&(l=jc(l)),l&&(c.fields[Py]=l),{mapValue:c}})(e,t):n instanceof Ac?zy(n,t):n instanceof xc?Fy(n,t):n instanceof Sc?(function(a,l){const c=Uy(a,l),h=yf(c)+yf(a.Re);return bs(c)&&bs(a.Re)?hm(h):kf(a.serializer,h)})(n,t):n instanceof pf?(function(a,l){return k8(a,l,Math.min)})(n,t):n instanceof gf?(function(a,l){return k8(a,l,Math.max)})(n,t):void 0}function TN(n,t,e){return n instanceof Ac?zy(n,t):n instanceof xc?Fy(n,t):e}function Uy(n,t){return n instanceof Sc?la(t)?t:{integerValue:0}:null}class Tc extends jf{}class Ac extends jf{constructor(t){super(),this.elements=t}}function zy(n,t){const e=Hy(t);for(const s of n.elements)e.some((a=>Vi(a,s)))||e.push(s);return{arrayValue:{values:e}}}class xc extends jf{constructor(t){super(),this.elements=t}}function Fy(n,t){let e=Hy(t);for(const s of n.elements)e=e.filter((a=>!Vi(a,s)));return{arrayValue:{values:e}}}class dm extends jf{constructor(t,e){super(),this.serializer=t,this.Re=e}}class Sc extends dm{}class pf extends dm{}class gf extends dm{}function k8(n,t,e){if(!la(t))return n.Re;const s=e(yf(t),yf(n.Re));return bs(t)&&bs(n.Re)?hm(s):kf(n.serializer,s)}function yf(n){return De(n.integerValue||n.doubleValue)}function Hy(n){return _l(n)&&n.arrayValue.values?n.arrayValue.values.slice():[]}/** 1131 * @license 1132 * Copyright 2017 Google LLC 1133 * 1134 * Licensed under the Apache License, Version 2.0 (the "License"); 1135 * you may not use this file except in compliance with the License. 1136 * You may obtain a copy of the License at 1137 * 1138 * http://www.apache.org/licenses/LICENSE-2.0 1139 * 1140 * Unless required by applicable law or agreed to in writing, software 1141 * distributed under the License is distributed on an "AS IS" BASIS, 1142 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1143 * See the License for the specific language governing permissions and 1144 * limitations under the License. 1145 */class AN{constructor(t,e){this.field=t,this.transform=e}}function xN(n,t){return n.field.isEqual(t.field)&&(function(s,a){return s instanceof Ac&&a instanceof Ac||s instanceof xc&&a instanceof xc?pl(s.elements,a.elements,Vi):s instanceof Sc&&a instanceof Sc||s instanceof pf&&a instanceof pf||s instanceof gf&&a instanceof gf?Vi(s.Re,a.Re):s instanceof Tc&&a instanceof Tc})(n.transform,t.transform)}class SN{constructor(t,e){this.version=t,this.transformResults=e}}class Rs{constructor(t,e){this.updateTime=t,this.exists=e}static none(){return new Rs}static exists(t){return new Rs(void 0,t)}static updateTime(t){return new Rs(t)}get isNone(){return this.updateTime===void 0&&this.exists===void 0}isEqual(t){return this.exists===t.exists&&(this.updateTime?!!t.updateTime&&this.updateTime.isEqual(t.updateTime):!t.updateTime)}}function Gh(n,t){return n.updateTime!==void 0?t.isFoundDocument()&&t.version.isEqual(n.updateTime):n.exists===void 0||n.exists===t.isFoundDocument()}class Bf{}function qy(n,t){if(!n.hasLocalMutations||t&&t.fields.length===0)return null;if(t===null)return n.isNoDocument()?new mm(n.key,Rs.none()):new Bc(n.key,n.data,Rs.none());{const e=n.data,s=hi.empty();let a=new nn(un.comparator);for(let l of t.fields)if(!a.has(l)){let c=e.field(l);c===null&&l.length>1&&(l=l.popLast(),c=e.field(l)),c===null?s.delete(l):s.set(l,c),a=a.add(l)}return new uo(n.key,s,new Xi(a.toArray()),Rs.none())}}function wN(n,t,e){n instanceof Bc?(function(a,l,c){const h=a.value.clone(),m=B8(a.fieldTransforms,l,c.transformResults);h.setAll(m),l.convertToFoundDocument(c.version,h).setHasCommittedMutations()})(n,t,e):n instanceof uo?(function(a,l,c){if(!Gh(a.precondition,l))return void l.convertToUnknownDocument(c.version);const h=B8(a.fieldTransforms,l,c.transformResults),m=l.data;m.setAll(Gy(a)),m.setAll(h),l.convertToFoundDocument(c.version,m).setHasCommittedMutations()})(n,t,e):(function(a,l,c){l.convertToNoDocument(c.version).setHasCommittedMutations()})(0,t,e)}function nc(n,t,e,s){return n instanceof Bc?(function(l,c,h,m){if(!Gh(l.precondition,c))return h;const g=l.value.clone(),y=U8(l.fieldTransforms,m,c);return g.setAll(y),c.convertToFoundDocument(c.version,g).setHasLocalMutations(),null})(n,t,e,s):n instanceof uo?(function(l,c,h,m){if(!Gh(l.precondition,c))return h;const g=U8(l.fieldTransforms,m,c),y=c.data;return y.setAll(Gy(l)),y.setAll(g),c.convertToFoundDocument(c.version,y).setHasLocalMutations(),h===null?null:h.unionWith(l.fieldMask.fields).unionWith(l.fieldTransforms.map((_=>_.field)))})(n,t,e,s):(function(l,c,h){return Gh(l.precondition,c)?(c.convertToNoDocument(c.version).setHasLocalMutations(),null):h})(n,t,e)}function bN(n,t){let e=null;for(const s of n.fieldTransforms){const a=t.data.field(s.field),l=Uy(s.transform,a||null);l!=null&&(e===null&&(e=hi.empty()),e.set(s.field,l))}return e||null}function j8(n,t){return n.type===t.type&&!!n.key.isEqual(t.key)&&!!n.prec
1145ondition.isEqual(t.precondition)&&!!(function(s,a){return s===void 0&&a===void 0||!(!s||!a)&&pl(s,a,((l,c)=>xN(l,c)))})(n.fieldTransforms,t.fieldTransforms)&&(n.type===0?n.value.isEqual(t.value):n.type!==1||n.data.isEqual(t.data)&&n.fieldMask.isEqual(t.fieldMask))}class Bc extends Bf{constructor(t,e,s,a=[]){super(),this.key=t,this.value=e,this.precondition=s,this.fieldTransforms=a,this.type=0}getFieldMask(){return null}}class uo extends Bf{constructor(t,e,s,a,l=[]){super(),this.key=t,this.data=e,this.fieldMask=s,this.precondition=a,this.fieldTransforms=l,this.type=1}getFieldMask(){return this.fieldMask}}function Gy(n){const t=new Map;return n.fieldMask.fields.forEach((e=>{if(!e.isEmpty()){const s=n.data.field(e);t.set(e,s)}})),t}function B8(n,t,e){const s=new Map;Ct(n.length===e.length,32656,{Ie:e.length,Ae:n.length});for(let a=0;a<e.length;a++){const l=n[a],c=l.transform,h=t.data.field(l.field);s.set(l.field,TN(c,h,e[a]))}return s}function U8(n,t,e){const s=new Map;for(const a of n){const l=a.transform,c=e.data.field(a.field);s.set(a.field,EN(l,c,t))}return s}class mm extends Bf{constructor(t,e){super(),this.key=t,this.precondition=e,this.type=2,this.fieldTransforms=[]}getFieldMask(){return null}}class CN extends Bf{constructor(t,e){super(),this.key=t,this.precondition=e,this.type=3,this.fieldTransforms=[]}getFieldMask(){return null}}/** 1146 * @license 1147 * Copyright 2022 Google LLC 1148 * 1149 * Licensed under the Apache License, Version 2.0 (the "License"); 1150 * you may not use this file except in compliance with the License. 1151 * You may obtain a copy of the License at 1152 * 1153 * http://www.apache.org/licenses/LICENSE-2.0 1154 * 1155 * Unless required by applicable law or agreed to in writing, software 1156 * distributed under the License is distributed on an "AS IS" BASIS, 1157 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1158 * See the License for the specific language governing permissions and 1159 * limitations under the License. 1160 */class vf{constructor(t,e){this.position=t,this.inclusive=e}}function z8(n,t,e){let s=0;for(let a=0;a<n.position.length;a++){const l=t[a],c=n.position[a];if(l.field.isKeyField()?s=Nt.comparator(Nt.fromName(c.referenceValue),e.key):s=Jn(c,e.data.field(l.field)),l.dir==="desc"&&(s*=-1),s!==0)break}return s}function F8(n,t){if(n===null)return t===null;if(t===null||n.inclusive!==t.inclusive||n.position.length!==t.position.length)return!1;for(let e=0;e<n.position.length;e++)if(!Vi(n.position[e],t.position[e]))return!1;return!0}/** 1161 * @license 1162 * Copyright 2022 Google LLC 1163 * 1164 * Licensed under the Apache License, Version 2.0 (the "License"); 1165 * you may not use this file except in compliance with the License. 1166 * You may obtain a copy of the License at 1167 * 1168 * http://www.apache.org/licenses/LICENSE-2.0 1169 * 1170 * Unless required by applicable law or agreed to in writing, software 1171 * distributed under the License is distributed on an "AS IS" BASIS, 1172 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1173 * See the License for the specific language governing permissions and 1174 * limitations under the License. 1175 */class Yy{}class tn extends Yy{constructor(t,e,s){super(),this.field=t,this.op=e,this.value=s}static create(t,e,s){return t.isKeyField()?e==="in"||e==="not-in"?this.createKeyFieldInFilter(t,e,s):new NN(t,e,s):e==="array-contains"?new IN(t,s):e==="in"?new ON(t,s):e==="not-in"?new MN(t,s):e==="array-contains-any"?new PN(t,s):new tn(t,e,s)}static createKeyFieldInFilter(t,e,s){return e==="in"?new DN(t,s):new VN(t,s)}matches(t){const e=t.data.field(this.field);return this.op==="!="?e!==null&&e.nullValue===void 0&&this.matchesComparison(Jn(e,this.value)):e!==null&&rn(this.value)===rn(e)&&this.matchesComparison(Jn(e,this.value))}matchesComparison(t){switch(this.op){case"<":return t<0;case"<=":return t<=0;case"==":return t===0;case"!=":return t!==0;case">":return t>0;case">=":return t>=0;default:return Vt(47266,{operator:this.op})}}isInequality(){return["<","<=",">",">=","!=","not-in"].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}}class Ji extends Yy{constructor(t,e){super(),this.filters=t,this.op=e,this.Ve=null}static create(t,e){return new Ji(t,e)}matches(t){return Qy(this)?this.filters.find((e=>!e.matches(t)))===void 0:this.filters.find((e=>e.matches(t)))!==void 0}getFlattenedFilters(){return this.Ve!==null||(this.Ve=this.filters.reduce(((t,e)=>t.concat(e.getFlattenedFilters())),[])),this.Ve}getFilters(){return Object.assign([],this.filters)}}function Qy(n){return n.op==="and"}function Ky(n){return RN(n)&&Qy(n)}function RN(n){for(const t of n.filters)if(t instanceof Ji)return!1;return!0}function d6(n){if(n instanceof tn)return n.field.canonicalString()+n.op.toString()+vl(n.value);if(Ky(n))return n.filters.map((t=>d6(t))).join(",");{const t=n.filters.map((e=>d6(e))).join(",");return`${n.op}(${t})`}}function $y(n,t){return n instanceof tn?(function(s,a){return a instanceof tn&&s.op===a.op&&s.field.isEqual(a.field)&&Vi(s.value,a.value)})(n,t):n instanceof Ji?(function(s,a){return a instanceof Ji&&s.op===a.op&&s.filters.length===a.filters.length?s.filters.reduce(((l,c,h)=>l&&$y(c,a.filters[h])),!0):!1})(n,t):void Vt(19439)}function Xy(n){return n instanceof tn?(function(e){return`${e.field.canonicalString()} ${e.op} ${vl(e.value)}`})(n):n instanceof Ji?(function(e){return e.op.toString()+" {"+e.getFilters().map(Xy).join(" ,")+"}"})(n):"Filter"}class NN extends tn{constructor(t,e,s){super(t,e,s),this.key=Nt.fromName(s.referenceValue)}matches(t){const e=Nt.comparator(t.key,this.key);return this.matchesComparison(e)}}class DN extends tn{constructor(t,e){super(t,"in",e),this.keys=Wy("in",e)}matches(t){return this.keys.some((e=>e.isEqual(t.key)))}}class VN extends tn{constructor(t,e){super(t,"not-in",e),this.keys=Wy("not-in",e)}matches(t){return!this.keys.some((e=>e.isEqual(t.key)))}}function Wy(n,t){var e;return(((e=t.arrayValue)==null?void 0:e.values)||[]).map((s=>Nt.fromName(s.referenceValue)))}class IN extends tn{constructor(t,e){super(t,"array-contains",e)}matches(t){const e=t.data.field(this.field);return _l(e)&&Ec(e.arrayValue,this.value)}}class ON extends tn{constructor(t,e){super(t,"in",e)}matches(t){const e=t.data.field(this.field);return e!==null&&Ec(this.value.arrayValue,e)}}class MN extends tn{constructor(t,e){super(t,"not-in",e)}matches(t){if(Ec(this.value.arrayValue,{nullValue:"NULL_VALUE"}))return!1;const e=t.data.field(this.field);return e!==null&&e.nullValue===void 0&&!Ec(this.value.arrayValue,e)}}class PN extends tn{constructor(t,e){super(t,"array-contains-any",e)}matches(t){const e=t.data.field(this.field);return!(!_l(e)||!e.arrayValue.values)&&e.arrayValue.values.some((s=>Ec(this.value.arrayValue,s)))}}/** 1176 * @license 1177 * Copyright 2022 Google LLC 1178 * 1179 * Licensed under the Apache License, Version 2.0 (the "License");
1180 * you may not use this file except in compliance with the License. 1181 * You may obtain a copy of the License at 1182 * 1183 * http://www.apache.org/licenses/LICENSE-2.0 1184 * 1185 * Unless required by applicable law or agreed to in writing, software 1186 * distributed under the License is distributed on an "AS IS" BASIS, 1187 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1188 * See the License for the specific language governing permissions and 1189 * limitations under the License. 1190 */class wc{constructor(t,e="asc"){this.field=t,this.dir=e}}function LN(n,t){return n.dir===t.dir&&n.field.isEqual(t.field)}/** 1191 * @license 1192 * Copyright 2017 Google LLC 1193 * 1194 * Licensed under the Apache License, Version 2.0 (the "License"); 1195 * you may not use this file except in compliance with the License. 1196 * You may obtain a copy of the License at 1197 * 1198 * http://www.apache.org/licenses/LICENSE-2.0 1199 * 1200 * Unless required by applicable law or agreed to in writing, software 1201 * distributed under the License is distributed on an "AS IS" BASIS, 1202 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1203 * See the License for the specific language governing permissions and 1204 * limitations under the License. 1205 */class Vn{constructor(t,e,s,a,l,c,h){this.key=t,this.documentType=e,this.version=s,this.readTime=a,this.createTime=l,this.data=c,this.documentState=h}static newInvalidDocument(t){return new Vn(t,0,Bt.min(),Bt.min(),Bt.min(),hi.empty(),0)}static newFoundDocument(t,e,s,a){return new Vn(t,1,e,Bt.min(),s,a,0)}static newNoDocument(t,e){return new Vn(t,2,e,Bt.min(),Bt.min(),hi.empty(),0)}static newUnknownDocument(t,e){return new Vn(t,3,e,Bt.min(),Bt.min(),hi.empty(),2)}convertToFoundDocument(t,e){return!this.createTime.isEqual(Bt.min())||this.documentType!==2&&this.documentType!==0||(this.createTime=t),this.version=t,this.documentType=1,this.data=e,this.documentState=0,this}convertToNoDocument(t){return this.version=t,this.documentType=2,this.data=hi.empty(),this.documentState=0,this}convertToUnknownDocument(t){return this.version=t,this.documentType=3,this.data=hi.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=Bt.min(),this}setReadTime(t){return this.readTime=t,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(t){return t instanceof Vn&&this.key.isEqual(t.key)&&this.version.isEqual(t.version)&&this.documentType===t.documentType&&this.documentState===t.documentState&&this.data.isEqual(t.data)}mutableCopy(){return new Vn(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}})`}}/** 1206 * @license 1207 * Copyright 2019 Google LLC 1208 * 1209 * Licensed under the Apache License, Version 2.0 (the "License"); 1210 * you may not use this file except in compliance with the License. 1211 * You may obtain a copy of the License at 1212 * 1213 * http://www.apache.org/licenses/LICENSE-2.0 1214 * 1215 * Unless required by applicable law or agreed to in writing, software 1216 * distributed under the License is distributed on an "AS IS" BASIS, 1217 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1218 * See the License for the specific language governing permissions and 1219 * limitations under the License. 1220 */class kN{constructor(t,e=null,s=[],a=[],l=null,c=null,h=null){this.path=t,this.collectionGroup=e,this.orderBy=s,this.filters=a,this.limit=l,this.startAt=c,this.endAt=h,this.de=null}}function H8(n,t=null,e=[],s=[],a=null,l=null,c=null){return new kN(n,t,e,s,a,l,c)}function Zy(n){const t=Ft(n);if(t.de===null){let e=t.path.canonicalString();t.collectionGroup!==null&&(e+="|cg:"+t.collectionGroup),e+="|f:",e+=t.filters.map((s=>d6(s))).join(","),e+="|ob:",e+=t.orderBy.map((s=>(function(l){return l.field.canonicalString()+l.dir})(s))).join(","),Pf(t.limit)||(e+="|l:",e+=t.limit),t.startAt&&(e+="|lb:",e+=t.startAt.inclusive?"b:":"a:",e+=t.startAt.position.map((s=>vl(s))).join(",")),t.endAt&&(e+="|ub:",e+=t.endAt.inclusive?"a:":"b:",e+=t.endAt.position.map((s=>vl(s))).join(",")),t.de=e}return t.de}function Jy(n,t){if(n.limit!==t.limit||n.orderBy.length!==t.orderBy.length)return!1;for(let e=0;e<n.orderBy.length;e++)if(!LN(n.orderBy[e],t.orderBy[e]))return!1;if(n.filters.length!==t.filters.length)return!1;for(let e=0;e<n.filters.length;e++)if(!$y(n.filters[e],t.filters[e]))return!1;return n.collectionGroup===t.collectionGroup&&!!n.path.isEqual(t.path)&&!!F8(n.startAt,t.startAt)&&F8(n.endAt,t.endAt)}function $a(n){return!!n.isCorePipeline}function tv(n){return!!n.path&&Nt.isDocumentKey(n.path)&&n.collectionGroup===null&&n.filters.length===0}/** 1221 * @license 1222 * Copyright 2017 Google LLC 1223 * 1224 * Licensed under the Apache License, Version 2.0 (the "License");
1225 * you may not use this file except in compliance with the License. 1226 * You may obtain a copy of the License at 1227 * 1228 * http://www.apache.org/licenses/LICENSE-2.0 1229 * 1230 * Unless required by applicable law or agreed to in writing, software 1231 * distributed under the License is distributed on an "AS IS" BASIS, 1232 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1233 * See the License for the specific language governing permissions and 1234 * limitations under the License. 1235 */class Dl{constructor(t,e=null,s=[],a=[],l=null,c="F",h=null,m=null){this.path=t,this.collectionGroup=e,this.explicitOrderBy=s,this.filters=a,this.limit=l,this.limitType=c,this.startAt=h,this.endAt=m,this.fe=null,this.me=null,this.pe=null,this.startAt,this.endAt}}function jN(n,t,e,s,a,l,c,h){return new Dl(n,t,e,s,a,l,c,h)}function pm(n){return new Dl(n)}function q8(n){return n.filters.length===0&&n.limit===null&&n.startAt==null&&n.endAt==null&&(n.explicitOrderBy.length===0||n.explicitOrderBy.length===1&&n.explicitOrderBy[0].field.isKeyField())}function BN(n){return Nt.isDocumentKey(n.path)&&n.collectionGroup===null&&n.filters.length===0}function ev(n){return n.collectionGroup!==null}function ic(n){const t=Ft(n);if(t.fe===null){t.fe=[];const e=new Set;for(const l of t.explicitOrderBy)t.fe.push(l),e.add(l.field.canonicalString());const s=t.explicitOrderBy.length>0?t.explicitOrderBy[t.explicitOrderBy.length-1].dir:"asc";(function(c){let h=new nn(un.comparator);return c.filters.forEach((m=>{m.getFlattenedFilters().forEach((g=>{g.isInequality()&&(h=h.add(g.field))}))})),h})(t).forEach((l=>{e.has(l.canonicalString())||l.isKeyField()||t.fe.push(new wc(l,s))})),e.has(un.keyField().canonicalString())||t.fe.push(new wc(un.keyField(),s))}return t.fe}function Ns(n){const t=Ft(n);return t.me||(t.me=UN(t,ic(n))),t.me}function UN(n,t){if(n.limitType==="F")return H8(n.path,n.collectionGroup,t,n.filters,n.limit,n.startAt,n.endAt);{t=t.map((a=>{const l=a.dir==="desc"?"asc":"desc";return new wc(a.field,l)}));const e=n.endAt?new vf(n.endAt.position,n.endAt.inclusive):null,s=n.startAt?new vf(n.startAt.position,n.startAt.inclusive):null;return H8(n.path,n.collectionGroup,t,n.filters,n.limit,e,s)}}function m6(n,t){const e=n.filters.concat([t]);return new Dl(n.path,n.collectionGroup,n.explicitOrderBy.slice(),e,n.limit,n.limitType,n.startAt,n.endAt)}function zN(n,t){const e=n.explicitOrderBy.concat([t]);return new Dl(n.path,n.collectionGroup,e,n.filters.slice(),n.limit,n.limitType,n.startAt,n.endAt)}function p6(n,t,e){return new Dl(n.path,n.collectionGroup,n.explicitOrderBy.slice(),n.filters.slice(),t,e,n.startAt,n.endAt)}function FN(n,t){return Jy(Ns(n),Ns(t))&&n.limitType===t.limitType}function sc(n){return`Query(target=${(function(e){let s=e.path.canonicalString();return e.collectionGroup!==null&&(s+=" collectionGroup="+e.collectionGroup),e.filters.length>0&&(s+=`, filters: [${e.filters.map((a=>Xy(a))).join(", ")}]`),Pf(e.limit)||(s+=", limit: "+e.limit),e.orderBy.length>0&&(s+=`, orderBy: [${e.orderBy.map((a=>(function(c){return`${c.field.canonicalString()} (${c.dir})`})(a))).join(", ")}]`),e.startAt&&(s+=", startAt: ",s+=e.startAt.inclusive?"b:":"a:",s+=e.startAt.position.map((a=>vl(a))).join(",")),e.endAt&&(s+=", endAt: ",s+=e.endAt.inclusive?"a:":"b:",s+=e.endAt.position.map((a=>vl(a))).join(",")),`Target(${s})`})(Ns(n))}; limitType=${n.limitType})`}function Uf(n,t){return t.isFoundDocument()&&(function(s,a){const l=a.key.path;return s.collectionGroup!==null?a.key.hasCollectionId(s.collectionGroup)&&s.path.isPrefixOf(l):Nt.isDocumentKey(s.path)?s.path.isEqual(l):s.path.isImmediateParentOf(l)})(n,t)&&(function(s,a){for(const l of ic(s))if(!l.field.isKeyField()&&a.data.field(l.field)===null)return!1;return!0})(n,t)&&(function(s,a){for(const l of s.filters)if(!l.matches(a))return!1;return!0})(n,t)&&(function(s,a){return!(s.startAt&&!(function(c,h,m){const g=z8(c,h,m);return c.inclusive?g<=0:g<0})(s.startAt,ic(s),a)||s.endAt&&!(function(c,h,m){const g=z8(c,h,m);return c.inclusive?g>=0:g>0})(s.endAt,ic(s),a))})(n,t)}function gm(n){return(t,e)=>{let s=!1;for(const a of ic(n)){const l=HN(a,t,e);if(l!==0)return l;s=s||a.field.isKeyField()}return 0}}function HN(n,t,e){const s=n.field.isKeyField()?Nt.comparator(t.key,e.key):(function(l,c,h){const m=c.data.field(l),g=h.data.field(l);return m!==null&&g!==null?Jn(m,g):Vt(42886)})(n.field,t,e);switch(n.dir){case"asc":return s;
vendor: 4,833 bytes, lines 1235-1284
1235case"desc":return-1*s;default:return Vt(19790,{direction:n.dir})}}/** 1236 * @license 1237 * Copyright 2017 Google LLC 1238 * 1239 * Licensed under the Apache License, Version 2.0 (the "License"); 1240 * you may not use this file except in compliance with the License. 1241 * You may obtain a copy of the License at 1242 * 1243 * http://www.apache.org/licenses/LICENSE-2.0 1244 * 1245 * Unless required by applicable law or agreed to in writing, software 1246 * distributed under the License is distributed on an "AS IS" BASIS, 1247 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1248 * See the License for the specific language governing permissions and 1249 * limitations under the License. 1250 */class qN{constructor(t,e){this.count=t,this.unchangedNames=e}}/** 1251 * @license 1252 * Copyright 2017 Google LLC 1253 * 1254 * Licensed under the Apache License, Version 2.0 (the "License"); 1255 * you may not use this file except in compliance with the License. 1256 * You may obtain a copy of the License at 1257 * 1258 * http://www.apache.org/licenses/LICENSE-2.0 1259 * 1260 * Unless required by applicable law or agreed to in writing, software 1261 * distributed under the License is distributed on an "AS IS" BASIS, 1262 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1263 * See the License for the specific language governing permissions and 1264 * limitations under the License. 1265 */var We,ne;function GN(n){switch(n){case ot.OK:return Vt(64938);case ot.CANCELLED:case ot.UNKNOWN:case ot.DEADLINE_EXCEEDED:case ot.RESOURCE_EXHAUSTED:case ot.INTERNAL:case ot.UNAVAILABLE:case ot.UNAUTHENTICATED:return!1;case ot.INVALID_ARGUMENT:case ot.NOT_FOUND:case ot.ALREADY_EXISTS:case ot.PERMISSION_DENIED:case ot.FAILED_PRECONDITION:case ot.ABORTED:case ot.OUT_OF_RANGE:case ot.UNIMPLEMENTED:case ot.DATA_LOSS:return!0;default:return Vt(15467,{code:n})}}function nv(n){if(n===void 0)return lr("GRPC error has no .code"),ot.UNKNOWN;switch(n){case We.OK:return ot.OK;case We.CANCELLED:return ot.CANCELLED;case We.UNKNOWN:return ot.UNKNOWN;case We.DEADLINE_EXCEEDED:return ot.DEADLINE_EXCEEDED;case We.RESOURCE_EXHAUSTED:return ot.RESOURCE_EXHAUSTED;case We.INTERNAL:return ot.INTERNAL;case We.UNAVAILABLE:return ot.UNAVAILABLE;case We.UNAUTHENTICATED:return ot.UNAUTHENTICATED;case We.INVALID_ARGUMENT:return ot.INVALID_ARGUMENT;case We.NOT_FOUND:return ot.NOT_FOUND;case We.ALREADY_EXISTS:return ot.ALREADY_EXISTS;case We.PERMISSION_DENIED:return ot.PERMISSION_DENIED;case We.FAILED_PRECONDITION:return ot.FAILED_PRECONDITION;case We.ABORTED:return ot.ABORTED;case We.OUT_OF_RANGE:return ot.OUT_OF_RANGE;case We.UNIMPLEMENTED:return ot.UNIMPLEMENTED;case We.DATA_LOSS:return ot.DATA_LOSS;default:return Vt(39323,{code:n})}}(ne=We||(We={}))[ne.OK=0]="OK",ne[ne.CANCELLED=1]="CANCELLED",ne[ne.UNKNOWN=2]="UNKNOWN",ne[ne.INVALID_ARGUMENT=3]="INVALID_ARGUMENT",ne[ne.DEADLINE_EXCEEDED=4]="DEADLINE_EXCEEDED",ne[ne.NOT_FOUND=5]="NOT_FOUND",ne[ne.ALREADY_EXISTS=6]="ALREADY_EXISTS",ne[ne.PERMISSION_DENIED=7]="PERMISSION_DENIED",ne[ne.UNAUTHENTICATED=16]="UNAUTHENTICATED",ne[ne.RESOURCE_EXHAUSTED=8]="RESOURCE_EXHAUSTED",ne[ne.FAILED_PRECONDITION=9]="FAILED_PRECONDITION",ne[ne.ABORTED=10]="ABORTED",ne[ne.OUT_OF_RANGE=11]="OUT_OF_RANGE",ne[ne.UNIMPLEMENTED=12]="UNIMPLEMENTED",ne[ne.INTERNAL=13]="INTERNAL",ne[ne.UNAVAILABLE=14]="UNAVAILABLE",ne[ne.DATA_LOSS=15]="DATA_LOSS";/** 1266 * @license 1267 * Copyright 2017 Google LLC 1268 * 1269 * Licensed under the Apache License, Version 2.0 (the "License"); 1270 * you may not use this file except in compliance with the License. 1271 * You may obtain a copy of the License at 1272 * 1273 * http://www.apache.org/licenses/LICENSE-2.0 1274 * 1275 * Unless required by applicable law or agreed to in writing, software 1276 * distributed under the License is distributed on an "AS IS" BASIS, 1277 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1278 * See the License for the specific language governing permissions and 1279 * limitations under the License. 1280 */class co{constructor(t,e){this.mapKeyFn=t,this.equalsFn=e,this.inner={},this.innerSize=0}get(t){const e=this.mapKeyFn(t),s=this.inner[e];if(s!==void 0){for(const[a,l]of s)if(this.equalsFn(a,t))return l}}has(t){return this.get(t)!==void 0}set(t,e){const s=this.mapKeyFn(t),a=this.inner[s];if(a===void 0)return this.inner[s]=[[t,e]],void this.innerSize++;for(let l=0;l<a.length;l++)if(this.equalsFn(a[l][0],t))return void(a[l]=[t,e]);a.push([t,e]),this.innerSize++}delete(t){const e=this.mapKeyFn(t),s=this.inner[e];if(s===void 0)return!1;for(let a=0;a<s.length;a++)if(this.equalsFn(s[a][0],t))return s.length===1?delete this.inner[e]:s.splice(a,1),this.innerSize--,!0;return!1}forEach(t){lo(this.inner,((e,s)=>{for(const[a,l]of s)t(a,l)}))}isEmpty(){return Vy(this.inner)}size(){return this.innerSize}}/** 1281 * @license 1282 * Copyright 2017 Google LLC 1283 * 1284 * Licensed under the Apache License, Version 2.0 (the "License");
1285 * you may not use this file except in compliance with the License. 1286 * You may obtain a copy of the License at 1287 * 1288 * http://www.apache.org/licenses/LICENSE-2.0 1289 * 1290 * Unless required by applicable law or agreed to in writing, software 1291 * distributed under the License is distributed on an "AS IS" BASIS, 1292 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1293 * See the License for the specific language governing permissions and 1294 * limitations under the License. 1295 */const YN=new Ce(Nt.comparator);function Xn(){return YN}const iv=new Ce(Nt.comparator);function il(...n){let t=iv;for(const e of n)t=t.insert(e.key,e);return t}function sv(n){let t=iv;return n.forEach(((e,s)=>t=t.insert(e,s.overlayedDocument))),t}function Qr(){return rc()}function rv(){return rc()}function rc(){return new co((n=>n.toString()),((n,t)=>n.isEqual(t)))}const QN=new Ce(Nt.comparator),KN=new nn(Nt.comparator);function $t(...n){let t=KN;for(const e of n)t=t.add(e);return t}const $N=new nn(Zt);function XN(){return $N}/** 1296 * @license 1297 * Copyright 2023 Google LLC 1298 * 1299 * Licensed under the Apache License, Version 2.0 (the "License"); 1300 * you may not use this file except in compliance with the License. 1301 * You may obtain a copy of the License at 1302 * 1303 * http://www.apache.org/licenses/LICENSE-2.0 1304 * 1305 * Unless required by applicable law or agreed to in writing, software 1306 * distributed under the License is distributed on an "AS IS" BASIS, 1307 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1308 * See the License for the specific language governing permissions and 1309 * limitations under the License. 1310 */function WN(){return new TextEncoder}/** 1311 * @license 1312 * Copyright 2022 Google LLC 1313 * 1314 * Licensed under the Apache License, Version 2.0 (the "License"); 1315 * you may not use this file except in compliance with the License. 1316 * You may obtain a copy of the License at 1317 * 1318 * http://www.apache.org/licenses/LICENSE-2.0 1319 * 1320 * Unless required by applicable law or agreed to in writing, software 1321 * distributed under the License is distributed on an "AS IS" BASIS, 1322 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1323 * See the License for the specific language governing permissions and 1324 * limitations under the License. 1325 */const ZN=new Wr([4294967295,4294967295],0);function G8(n){const t=WN().encode(n),e=new Ey;return e.update(t),new Uint8Array(e.digest())}function Y8(n){const t=new DataView(n.buffer),e=t.getUint32(0,!0),s=t.getUint32(4,!0),a=t.getUint32(8,!0),l=t.getUint32(12,!0);return[new Wr([e,s],0),new Wr([a,l],0)]}class ym{constructor(t,e,s){if(this.bitmap=t,this.padding=e,this.hashCount=s,e<0||e>=8)throw new Yu(`Invalid padding: ${e}`);if(s<0)throw new Yu(`Invalid hash count: ${s}`);if(t.length>0&&this.hashCount===0)throw new Yu(`Invalid hash count: ${s}`);if(t.length===0&&e!==0)throw new Yu(`Invalid padding when bitmap length is 0: ${e}`);this.ge=8*t.length-e,this.ye=Wr.fromNumber(this.ge)}we(t,e,s){let a=t.add(e.multiply(Wr.fromNumber(s)));return a.compare(ZN)===1&&(a=new Wr([a.getBits(0),a.getBits(1)],0)),a.modulo(this.ye).toNumber()}be(t){return!!(this.bitmap[Math.floor(t/8)]&1<<t%8)}mightContain(t){if(this.ge===0)return!1;const e=G8(t),[s,a]=Y8(e);for(let l=0;l<this.hashCount;l++){const c=this.we(s,a,l);if(!this.be(c))return!1}return!0}static create(t,e,s){const a=t%8==0?0:8-t%8,l=new Uint8Array(Math.ceil(t/8)),c=new ym(l,a,e);return s.forEach((h=>c.insert(h))),c}insert(t){if(this.ge===0)return;const e=G8(t),[s,a]=Y8(e);for(let l=0;l<this.hashCount;l++){const c=this.we(s,a,l);this.ve(c)}}ve(t){const e=Math.floor(t/8),s=t%8;this.bitmap[e]|=1<<s}}class Yu extends Error{constructor(){super(...arguments),this.name="BloomFilterError"}}/** 1326 * @license 1327 * Copyright 2017 Google LLC 1328 * 1329 * Licensed under the Apache License, Version 2.0 (the "License"); 1330 * you may not use this file except in compliance with the License. 1331 * You may obtain a copy of the License at 1332 * 1333 * http://www.apache.org/licenses/LICENSE-2.0 1334 * 1335 * Unless required by applicable law or agreed to in writing, software 1336 * distributed under the License is distributed on an "AS IS" BASIS, 1337 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1338 * See the License for the specific language governing permissions and 1339 * limitations under the License. 1340 */class Uc{constructor(t,e,s,a,l,c){this.snapshotVersion=t,this.targetChanges=e,this.targetMismatches=s,this.documentUpdates=a,this.augmentedDocumentUpdates=l,this.resolvedLimboDocuments=c}static createSynthesizedRemoteEventForCurrentChange(t,e,s){const a=new Map;return a.set(t,zc.createSynthesizedTargetChangeForCurrentChange(t,e,s)),new Uc(Bt.min(),a,new Ce(Zt),Xn(),Xn(),$t())}}class zc{constructor(t,e,s,a,l){this.resumeToken=t,this.current=e,this.addedDocuments=s,this.modifiedDocuments=a,this.removedDocuments=l}static createSynthesizedTargetChangeForCurrentChange(t,e,s){return new zc(s,e,$t(),$t(),$t()
vendor: 2,615 bytes, lines 1340-1355
1340)}}/** 1341 * @license 1342 * Copyright 2017 Google LLC 1343 * 1344 * Licensed under the Apache License, Version 2.0 (the "License"); 1345 * you may not use this file except in compliance with the License. 1346 * You may obtain a copy of the License at 1347 * 1348 * http://www.apache.org/licenses/LICENSE-2.0 1349 * 1350 * Unless required by applicable law or agreed to in writing, software 1351 * distributed under the License is distributed on an "AS IS" BASIS, 1352 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1353 * See the License for the specific language governing permissions and 1354 * limitations under the License. 1355 */class Yh{constructor(t,e,s,a){this.Se=t,this.removedTargetIds=e,this.key=s,this.De=a}}class av{constructor(t,e){this.targetId=t,this.xe=e}}class ov{constructor(t,e,s=sn.EMPTY_BYTE_STRING,a=null){this.state=t,this.targetIds=e,this.resumeToken=s,this.cause=a}}class Q8{constructor(t){this.targetId=t,this.Ce=0,this.Fe=K8(),this.Oe=sn.EMPTY_BYTE_STRING,this.Me=!1,this.Ne=!0}get current(){return this.Me}get resumeToken(){return this.Oe}get Le(){return this.Ce!==0}get Be(){return this.Ne}Ue(t){t.approximateByteSize()>0&&(this.Ne=!0,this.Oe=t)}ke(){let t=$t(),e=$t(),s=$t();return this.Fe.forEach(((a,l)=>{switch(l){case 0:t=t.add(a);break;case 2:e=e.add(a);break;case 1:s=s.add(a);break;default:Vt(38017,{changeType:l})}})),new zc(this.Oe,this.Me,t,e,s)}qe(){this.Ne=!1,this.Fe=K8()}$e(t,e){this.Ne=!0,this.Fe=this.Fe.insert(t,e)}Ke(t){this.Ne=!0,this.Fe=this.Fe.remove(t)}We(){this.Ce+=1}Qe(){this.Ce-=1,Ct(this.Ce>=0,3241,{Ce:this.Ce,targetId:this.targetId})}Ge(){this.Ne=!0,this.Me=!0}}const Fu="WatchChangeAggregator";class JN{constructor(t){this.ze=t,this.je=new Map,this.He=Xn(),this.Je=Dh(),this.Ye=Xn(),this.Ze=Dh(),this.Xe=new Ce(Zt)}et(t){for(const e of t.Se)t.De&&t.De.isFoundDocument()?this.tt(e,t.De):this.nt(e,t.key,t.De);for(const e of t.removedTargetIds)this.nt(e,t.key,t.De)}rt(t){this.forEachTarget(t,(e=>{const s=this.je.get(e);if(s)switch(t.state){case 0:this.it(e)&&s.Ue(t.resumeToken);break;case 1:s.Qe(),s.Le||s.qe(),s.Ue(t.resumeToken);break;case 2:s.Qe(),s.Le||this.removeTarget(e);break;case 3:this.it(e)&&(s.Ge(),s.Ue(t.resumeToken));break;case 4:this.it(e)&&(this.st(e),s.Ue(t.resumeToken));break;default:Vt(56790,{state:t.state})}else _t(Fu,`handleTargetChange received targetChange for untracked target ID (${e}) with state (${t.state})`)}))}forEachTarget(t,e){t.targetIds.length>0?t.targetIds.forEach(e):this.je.forEach(((s,a)=>{this.it(a)&&e(a)}))}_t(t){var e;return $a(t)?t.getPipelineSourceType()==="documents"&&((e=t.getPipelineDocuments())==null?void 0:e.length)===1:tv(t)}
1355ot(t){const e=t.targetId,s=t.xe.count,a=this.ut(e);if(a){const l=a.target;if(this._t(l))if(s===0){const c=new Nt($a(l)?ue.fromString(l.getPipelineDocuments()[0]):l.path);this.nt(e,c,Vn.newNoDocument(c,Bt.min()))}else Ct(s===1,20013,"Single document existence filter with count: "+s);else{const c=this.ct(e);if(c!==s){const h=this.lt(t),m=h?this.Et(h,t,c):1;if(m!==0){this.st(e);const g=m===2?"TargetPurposeExistenceFilterMismatchBloom":"TargetPurposeExistenceFilterMismatch";this.Xe=this.Xe.insert(e,g)}}}}}lt(t){const e=t.xe.unchangedNames;if(!e||!e.bits)return null;const{bits:{bitmap:s="",padding:a=0},hashCount:l=0}=e;let c,h;try{c=oa(s).toUint8Array()}catch(m){if(m instanceof Iy)return Zi("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{h=new ym(c,a,l)}catch(m){return Zi(m instanceof Yu?"BloomFilter error: ":"Applying bloom filter failed: ",m),null}return h.ge===0?null:h}Et(t,e,s){return e.xe.count===s-this.Pt(t,e.targetId)?0:2}Pt(t,e){const s=this.ze.getRemoteKeysForTarget(e);let a=0;return s.forEach((l=>{const c=this.ze.Tt(),h=`projects/${c.projectId}/databases/${c.database}/documents/${l.path.canonicalString()}`;t.mightContain(h)||(this.nt(e,l,null),a++)})),a}Rt(t){const e=new Map;this.je.forEach(((l,c)=>{const h=this.ut(c);if(h){if(l.current&&this._t(h.target)){const m=$a(h.target)?ue.fromString(h.target.getPipelineDocuments()[0]):h.target.path,g=new Nt(m);this.It(g).has(c)||this.At(c,g)||this.nt(c,g,Vn.newNoDocument(g,t))}l.Be&&(e.set(c,l.ke()),l.qe())}}));let s=$t();this.Ze.forEach(((l,c)=>{let h=!0;c.forEachWhile((m=>{const g=this.ut(m);return!g||g.purpose==="TargetPurposeLimboResolution"||(h=!1,!1)})),h&&(s=s.add(l))})),this.He.forEach(((l,c)=>c.setReadTime(t))),this.Ye.forEach(((l,c)=>c.setReadTime(t)));const a=new Uc(t,e,this.Xe,this.He,this.Ye,s);return this.He=Xn(),this.Je=Dh(),this.Ye=Xn(),this.Ze=Dh(),this.Xe=new Ce(Zt),a}tt(t,e){const s=this.je.get(t);if(!s||!this.it(t))return void _t(Fu,`addDocumentToTarget received document for unknown inactive target (${t})`);const a=this.At(t,e.key)?2:0;s.$e(e.key,a),$a(this.ut(t).target)&&this.ut(t).target.getPipelineFlavor()!=="exact"?this.Ye=this.Ye.insert(e.key,e):this.He=this.He.insert(e.key,e),this.Je=this.Je.insert(e.key,this.It(e.key).add(t)),this.Ze=this.Ze.insert(e.key,this.Vt(e.key).add(t))}nt(t,e,s){const a=this.je.get(t);a&&this.it(t)?(this.At(t,e)?a.$e(e,1):a.Ke(e),this.Ze=this.Ze.insert(e,this.Vt(e).delete(t)),this.Ze=this.Ze.insert(e,this.Vt(e).add(t)),s&&($a(this.ut(t).target)&&this.ut(t).target.getPipelineFlavor()!=="exact"?this.Ye=this.Ye.insert(e,s):this.He=this.He.insert(e,s))):_t(Fu,`removeDocumentFromTarget received document for unknown or inactive target (${t})`)}removeTarget(t){this.je.delete(t)}ct(t){const e=this.je.get(t);if(!e)return 0;const s=e.ke();return this.ze.getRemoteKeysForTarget(t).size+s.addedDocuments.size-s.removedDocuments.size}We(t){let e=this.je.get(t);e||(_t(Fu,`recordPendingTargetRequest set up tracking for target ID ${t}`),e=new Q8(t),this.je.set(t,e)),e.We()}Vt(t){let e=this.Ze.get(t);return e||(e=new nn(Zt),this.Ze=this.Ze.insert(t,e)),e}It(t){let e=this.Je.get(t);return e||(e=new nn(Zt),this.Je=this.Je.insert(t,e)),e}it(t){const e=this.ut(t)!==null;return e||_t(Fu,"Detected inactive target",t),e}ut(t){const e=this.je.get(t);return e===void 0||e.Le?null:this.ze.dt(t)}st(t){this.je.set(t,new Q8(t)),this.ze.getRemoteKeysForTarget(t).forEach((e=>{this.nt(t,e,null)}))}At(t,e){return this.ze.getRemoteKeysForTarget(t).has(e)}}function Dh(){return new Ce(Nt.comparator)}function K8(){return new Ce(Nt.comparator)}const tD={asc:"ASCENDING",desc:"DESCENDING"},eD={"<":"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"},nD={and:"AND",or:"OR"};class iD{constructor(t,e){this.databaseId=t,this.useProto3Json=e}}function g6(n,t){return n.useProto3Json||Pf(t)?t:{value:t}}function _f(n,t){return n.useProto3Json?`${new Date(1e3*t.seconds).toISOString().replace(/\.\d*/,"").replace("Z","")}.${("000000000"+t.nanoseconds).slice(-9)}Z`:{seconds:""+t.seconds,nanos:t.nanoseconds}}function vm(n){const t=aa(n);return new Se(t.seconds,t.nanos)}function lv(n,t){return n.useProto3Json?t.toBase64():t.toUint8Array()}function Qh(n,t){return _f(n,t.toTimestamp())}function Ds(n){return Ct(!!n,49232),Bt.fromTimestamp(vm(n))}function _m(n,t){return y6(n,t).canonicalString()}function y6(n,t){const e=(function(a){return new ue(["projects",a.projectId,"databases",a.database])})(n).child("documents");return t===void 0?e:e.child(t)}function uv(n){const t=ue.fromString(n);return Ct(mv(t),10190,{key:t.toString()}),t}function Ef(n,t){return _m(n.databaseId,t.path)}function w0(n,t){const e=uv(t);if(e.get(1)!==n.databaseId.projectId)throw new vt(ot.INVALID_ARGUMENT,"Tried to deserialize key from different project: "+e.get(1)+" vs "+n.databaseId.projectId);if(e.get(3)!==n.databaseId.database)throw new vt(ot.INVALID_ARGUMENT,"Tried to deserialize key from different database: "+e.get(3)+" vs "+n.databaseId.database);return new Nt(hv(e))}function cv(n,t){return _m(n.databaseId,t)}function sD(n){const t=uv(n);return t.length===4?ue.emptyPath():hv(t)}function v6(n){return new ue(["projects",n.databaseId.projectId,"databases",n.databaseId.database]).canonicalString()}function hv(n){return Ct(n.length>4&&n.get(4)==="documents",29091,{key:n.toString()}),n.popFirst(5)}function $8(n,t,e){return{name:Ef(n,t),fields:e.value.mapValue.fields}}function rD(n,t){let e;if("targetChange"in t){t.targetChange;const s=(function(g){return g==="NO_CHANGE"?0:g==="ADD"?1:g==="REMOVE"?2:g==="CURRENT"?3:g==="RESET"?4:Vt(39313,{state:g})})(t.targetChange.targetChangeType||"NO_CHANGE"),a=t.targetChange.targetIds||[],l=(function(g,y){return g.useProto3Json?(Ct(y===void 0||typeof y=="string",58123),sn.fromBase64String(y||"")):(Ct(y===void 0||y instanceof Buffer||y instanceof Uint8Array,16193),sn.fromUint8Array(y||new Uint8Array))})(n,t.targetChange.resumeToken),c=t.targetChange.cause,h=c&&(function(g){const y=g.code===void 0?ot.UNKNOWN:nv(g.code);return new vt(y,g.message||"")})(c);e=new ov(s,a,l,h||null)}else if("documentChange"in t){t.documentChange;const s=t.documentChange;s.document,s.document.name,s.document.updateTime;const a=w0(n,s.document.name),l=Ds(s.document.updateTime),c=s.document.createTime?Ds(s.document.createTime):Bt.min(),h=new hi({mapValue:{fields:s.document.fields}}),m=Vn.newFoundDocument(a,l,c,h),g=s.targetIds||[],y=s.removedTargetIds||[];
1355e=new Yh(g,y,m.key,m)}else if("documentDelete"in t){t.documentDelete;const s=t.documentDelete;s.document;const a=w0(n,s.document),l=s.readTime?Ds(s.readTime):Bt.min(),c=Vn.newNoDocument(a,l),h=s.removedTargetIds||[];e=new Yh([],h,c.key,c)}else if("documentRemove"in t){t.documentRemove;const s=t.documentRemove;s.document;const a=w0(n,s.document),l=s.removedTargetIds||[];e=new Yh([],l,a,null)}else{if(!("filter"in t))return Vt(11601,{ft:t});{t.filter;const s=t.filter;s.targetId;const{count:a=0,unchangedNames:l}=s,c=new qN(a,l),h=s.targetId;e=new av(h,c)}}return e}function aD(n,t){let e;if(t instanceof Bc)e={update:$8(n,t.key,t.value)};else if(t instanceof mm)e={delete:Ef(n,t.key)};else if(t instanceof uo)e={update:$8(n,t.key,t.data),updateMask:gD(t.fieldMask)};else{if(!(t instanceof CN))return Vt(16599,{gt:t.type});e={verify:Ef(n,t.key)}}return t.fieldTransforms.length>0&&(e.updateTransforms=t.fieldTransforms.map((s=>(function(l,c){const h=c.transform;if(h instanceof Tc)return{fieldPath:c.field.canonicalString(),setToServerValue:"REQUEST_TIME"};if(h instanceof Ac)return{fieldPath:c.field.canonicalString(),appendMissingElements:{values:h.elements}};if(h instanceof xc)return{fieldPath:c.field.canonicalString(),removeAllFromArray:{values:h.elements}};if(h instanceof Sc)return{fieldPath:c.field.canonicalString(),increment:h.Re};if(h instanceof pf)return{fieldPath:c.field.canonicalString(),minimum:h.Re};if(h instanceof gf)return{fieldPath:c.field.canonicalString(),maximum:h.Re};throw Vt(20930,{transform:c.transform})})(0,s)))),t.precondition.isNone||(e.currentDocument=(function(a,l){return l.updateTime!==void 0?{updateTime:Qh(a,l.updateTime)}:l.exists!==void 0?{exists:l.exists}:Vt(27497)})(n,t.precondition)),e}function oD(n,t){return n&&n.length>0?(Ct(t!==void 0,14353),n.map((e=>(function(a,l){let c=a.updateTime?Ds(a.updateTime):Ds(l);return c.isEqual(Bt.min())&&(c=Ds(l)),new SN(c,a.transformResults||[])})(e,t)))):[]}function lD(n,t){return{documents:[cv(n,t.path)]}}function uD(n,t){const e={structuredQuery:{}},s=t.path;let a;t.collectionGroup!==null?(a=s,e.structuredQuery.from=[{collectionId:t.collectionGroup,allDescendants:!0}]):(a=s.popLast(),e.structuredQuery.from=[{collectionId:s.lastSegment()}]),e.parent=cv(n,a);const l=(function(g){if(g.length!==0)return dv(Ji.create(g,"and"))})(t.filters);l&&(e.structuredQuery.where=l);const c=(function(g){if(g.length!==0)return g.map((y=>(function(x){return{field:sl(x.field),direction:dD(x.dir)}})(y)))})(t.orderBy);c&&(e.structuredQuery.orderBy=c);const h=g6(n,t.limit);return h!==null&&(e.structuredQuery.limit=h),t.startAt&&(e.structuredQuery.startAt=(function(g){return{before:g.inclusive,values:g.position}})(t.startAt)),t.endAt&&(e.structuredQuery.endAt=(function(g){return{before:!g.inclusive,values:g.position}})(t.endAt)),{yt:e,parent:a}}function cD(n){let t=sD(n.parent);const e=n.structuredQuery,s=e.from?e.from.length:0;let a=null;if(s>0){Ct(s===1,65062);const y=e.from[0];y.allDescendants?a=y.collectionId:t=t.child(y.collectionId)}let l=[];e.where&&(l=(function(_){const x=fv(_);return x instanceof Ji&&Ky(x)?x.getFilters():[x]})(e.where));let c=[];e.orderBy&&(c=(function(_){return _.map((x=>(function(N){return new wc(rl(N.field),(function(F){switch(F){case"ASCENDING":return"asc";case"DESCENDING":return"desc";default:return}})(N.direction))})(x)))})(e.orderBy));let h=null;e.limit&&(h=(function(_){let x;return x=typeof _=="object"?_.value:_,Pf(x)?null:x})(e.limit));let m=null;e.startAt&&(m=(function(_){const x=!!_.before,R=_.values||[];return new vf(R,x)})(e.startAt));let g=null;return e.endAt&&(g=(function(_){const x=!_.before,R=_.values||[];return new vf(R,x)})(e.endAt)),jN(t,a,c,l,h,"F",m,g)}function hD(n,t){const e=(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 Vt(28987,{purpose:a})}})(t.purpose);return e==null?null:{"goog-listen-tags":e}}function fD(n,t){return{structuredPipeline:{pipeline:{stages:t.stages.map((e=>e._toProto(n)))}}}}function fv(n){return n.unaryFilter!==void 0?(function(e){switch(e.unaryFilter.op){case"IS_NAN":const s=rl(e.unaryFilter.field);return tn.create(s,"==",{doubleValue:NaN});case"IS_NULL":const a=rl(e.unaryFilter.field);return tn.create(a,"==",{nullValue:"NULL_VALUE"});
1355case"IS_NOT_NAN":const l=rl(e.unaryFilter.field);return tn.create(l,"!=",{doubleValue:NaN});case"IS_NOT_NULL":const c=rl(e.unaryFilter.field);return tn.create(c,"!=",{nullValue:"NULL_VALUE"});case"OPERATOR_UNSPECIFIED":return Vt(61313);default:return Vt(60726)}})(n):n.fieldFilter!==void 0?(function(e){return tn.create(rl(e.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";case"OPERATOR_UNSPECIFIED":return Vt(58110);default:return Vt(50506)}})(e.fieldFilter.op),e.fieldFilter.value)})(n):n.compositeFilter!==void 0?(function(e){return Ji.create(e.compositeFilter.filters.map((s=>fv(s))),(function(a){switch(a){case"AND":return"and";case"OR":return"or";default:return Vt(1026)}})(e.compositeFilter.op))})(n):Vt(30097,{filter:n})}function dD(n){return tD[n]}function mD(n){return eD[n]}function pD(n){return nD[n]}function sl(n){return{fieldPath:n.canonicalString()}}function rl(n){return un.fromServerFormat(n.fieldPath)}function dv(n){return n instanceof tn?(function(e){if(e.op==="=="){if(ti(e.value))return{unaryFilter:{field:sl(e.field),op:"IS_NAN"}};if(fi(e.value))return{unaryFilter:{field:sl(e.field),op:"IS_NULL"}}}else if(e.op==="!="){if(ti(e.value))return{unaryFilter:{field:sl(e.field),op:"IS_NOT_NAN"}};if(fi(e.value))return{unaryFilter:{field:sl(e.field),op:"IS_NOT_NULL"}}}return{fieldFilter:{field:sl(e.field),op:mD(e.op),value:e.value}}})(n):n instanceof Ji?(function(e){const s=e.getFilters().map((a=>dv(a)));return s.length===1?s[0]:{compositeFilter:{op:pD(e.op),filters:s}}})(n):Vt(54877,{filter:n})}function gD(n){const t=[];return n.fields.forEach((e=>t.push(e.canonicalString()))),{fieldPaths:t}}function mv(n){return n.length>=4&&n.get(0)==="projects"&&n.get(2)==="databases"}function pv(n){return!!n&&typeof n._toProto=="function"&&n._protoValueType==="ProtoValue"}function bc(n,t){const e={fields:{}};return t.forEach(((s,a)=>{if(typeof a!="string")throw new Error(`Cannot encode map with non-string key: ${a}`);e.fields[a]=s._toProto(n)})),{mapValue:e}}function gv(n){return{stringValue:n}}/** 1356 * @license 1357 * Copyright 2020 Google LLC 1358 * 1359 * Licensed under the Apache License, Version 2.0 (the "License"); 1360 * you may not use this file except in compliance with the License. 1361 * You may obtain a copy of the License at 1362 * 1363 * http://www.apache.org/licenses/LICENSE-2.0 1364 * 1365 * Unless required by applicable law or agreed to in writing, software 1366 * distributed under the License is distributed on an "AS IS" BASIS, 1367 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1368 * See the License for the specific language governing permissions and 1369 * limitations under the License. 1370 */function zf(n){return new iD(n,!0)}/** 1371 * @license 1372 * Copyright 2020 Google LLC 1373 * 1374 * Licensed under the Apache License, Version 2.0 (the "License"); 1375 * you may not use this file except in compliance with the License. 1376 * You may obtain a copy of the License at 1377 * 1378 * http://www.apache.org/licenses/LICENSE-2.0 1379 * 1380 * Unless required by applicable law or agreed to in writing, software 1381 * distributed under the License is distributed on an "AS IS" BASIS, 1382 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1383 * See the License for the specific language governing permissions and 1384 * limitations under the License. 1385 */class Ri{constructor(t){this._byteString=t}static fromBase64String(t){try{return new Ri(sn.fromBase64String(t))}catch(e){throw new vt(ot.INVALID_ARGUMENT,"Failed to construct data from Base64 string: "+e)}}static fromUint8Array(t){return new Ri(sn.fromUint8Array(t))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return"Bytes(base64: "+this.toBase64()+")"}isEqual(t){return this._byteString.isEqual(t._byteString)}toJSON(){return{type:Ri._jsonSchemaVersion,bytes:this.toBase64()}}static fromJSON(t){if(kc(t,Ri._jsonSchema))return Ri.fromBase64String(t.bytes)}}
vendor: 4,167 bytes, lines 1385-1455
1385Ri._jsonSchemaVersion="firestore/bytes/1.0",Ri._jsonSchema={type:en("string",Ri._jsonSchemaVersion),bytes:en("string")};/** 1386 * @license 1387 * Copyright 2020 Google LLC 1388 * 1389 * Licensed under the Apache License, Version 2.0 (the "License"); 1390 * you may not use this file except in compliance with the License. 1391 * You may obtain a copy of the License at 1392 * 1393 * http://www.apache.org/licenses/LICENSE-2.0 1394 * 1395 * Unless required by applicable law or agreed to in writing, software 1396 * distributed under the License is distributed on an "AS IS" BASIS, 1397 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1398 * See the License for the specific language governing permissions and 1399 * limitations under the License. 1400 */class Em{constructor(...t){for(let e=0;e<t.length;++e)if(t[e].length===0)throw new vt(ot.INVALID_ARGUMENT,"Invalid field name at argument $(i + 1). Field names must not be empty.");this._internalPath=new un(t)}isEqual(t){return this._internalPath.isEqual(t._internalPath)}}function yD(){return new Em(ws)}/** 1401 * @license 1402 * Copyright 2020 Google LLC 1403 * 1404 * Licensed under the Apache License, Version 2.0 (the "License"); 1405 * you may not use this file except in compliance with the License. 1406 * You may obtain a copy of the License at 1407 * 1408 * http://www.apache.org/licenses/LICENSE-2.0 1409 * 1410 * Unless required by applicable law or agreed to in writing, software 1411 * distributed under the License is distributed on an "AS IS" BASIS, 1412 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1413 * See the License for the specific language governing permissions and 1414 * limitations under the License. 1415 */class Tm{constructor(t){this._methodName=t}}/** 1416 * @license 1417 * Copyright 2017 Google LLC 1418 * 1419 * Licensed under the Apache License, Version 2.0 (the "License"); 1420 * you may not use this file except in compliance with the License. 1421 * You may obtain a copy of the License at 1422 * 1423 * http://www.apache.org/licenses/LICENSE-2.0 1424 * 1425 * Unless required by applicable law or agreed to in writing, software 1426 * distributed under the License is distributed on an "AS IS" BASIS, 1427 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1428 * See the License for the specific language governing permissions and 1429 * limitations under the License. 1430 */class Vs{constructor(t,e){if(!isFinite(t)||t<-90||t>90)throw new vt(ot.INVALID_ARGUMENT,"Latitude must be a number between -90 and 90, but was: "+t);if(!isFinite(e)||e<-180||e>180)throw new vt(ot.INVALID_ARGUMENT,"Longitude must be a number between -180 and 180, but was: "+e);this._lat=t,this._long=e}get latitude(){return this._lat}get longitude(){return this._long}isEqual(t){return this._lat===t._lat&&this._long===t._long}_compareTo(t){return Zt(this._lat,t._lat)||Zt(this._long,t._long)}toJSON(){return{latitude:this._lat,longitude:this._long,type:Vs._jsonSchemaVersion}}static fromJSON(t){if(kc(t,Vs._jsonSchema))return new Vs(t.latitude,t.longitude)}}function yv(n){const t={};return n.timeoutSeconds!==void 0&&(t.timeoutSeconds=n.timeoutSeconds),t}/** 1431 * @license 1432 * Copyright 2019 Google LLC 1433 * 1434 * Licensed under the Apache License, Version 2.0 (the "License"); 1435 * you may not use this file except in compliance with the License. 1436 * You may obtain a copy of the License at 1437 * 1438 * http://www.apache.org/licenses/LICENSE-2.0 1439 * 1440 * Unless required by applicable law or agreed to in writing, software 1441 * distributed under the License is distributed on an "AS IS" BASIS, 1442 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1443 * See the License for the specific language governing permissions and 1444 * limitations under the License. 1445 */Vs._jsonSchemaVersion="firestore/geoPoint/1.0",Vs._jsonSchema={type:en("string",Vs._jsonSchemaVersion),latitude:en("number"),longitude:en("number")};class vD{bt(t){}shutdown(){}}/** 1446 * @license 1447 * Copyright 2019 Google LLC 1448 * 1449 * Licensed under the Apache License, Version 2.0 (the "License"); 1450 * you may not use this file except in compliance with the License. 1451 * You may obtain a copy of the License at 1452 * 1453 * http://www.apache.org/licenses/LICENSE-2.0 1454 * 1455 * Unless required by applicable law or agreed to in writing, softw
1455are 1456 * distributed under the License is distributed on an "AS IS" BASIS, 1457 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1458 * See the License for the specific language governing permissions and 1459 * limitations under the License. 1460 */const X8="ConnectivityMonitor";class W8{constructor(){this.vt=()=>this.St(),this.Dt=()=>this.xt(),this.Ct=[],this.Ft()}bt(t){this.Ct.push(t)}shutdown(){window.removeEventListener("online",this.vt),window.removeEventListener("offline",this.Dt)}Ft(){window.addEventListener("online",this.vt),window.addEventListener("offline",this.Dt)}St(){_t(X8,"Network connectivity changed: AVAILABLE");for(const t of this.Ct)t(0)}xt(){_t(X8,"Network connectivity changed: UNAVAILABLE");for(const t of this.Ct)t(1)}static C(){return typeof window<"u"&&window.addEventListener!==void 0&&window.removeEventListener!==void 0}}/** 1461 * @license 1462 * Copyright 2023 Google LLC 1463 * 1464 * Licensed under the Apache License, Version 2.0 (the "License"); 1465 * you may not use this file except in compliance with the License. 1466 * You may obtain a copy of the License at 1467 * 1468 * http://www.apache.org/licenses/LICENSE-2.0 1469 * 1470 * Unless required by applicable law or agreed to in writing, software 1471 * distributed under the License is distributed on an "AS IS" BASIS, 1472 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1473 * See the License for the specific language governing permissions and 1474 * limitations under the License. 1475 */let Vh=null;function _6(){return Vh===null?Vh=(function(){return 268435456+Math.round(2147483648*Math.random())})():Vh++,"0x"+Vh.toString(16)}/** 1476 * @license 1477 * Copyright 2020 Google LLC 1478 * 1479 * Licensed under the Apache License, Version 2.0 (the "License"); 1480 * you may not use this file except in compliance with the License. 1481 * You may obtain a copy of the License at 1482 * 1483 * http://www.apache.org/licenses/LICENSE-2.0 1484 * 1485 * Unless required by applicable law or agreed to in writing, software 1486 * distributed under the License is distributed on an "AS IS" BASIS, 1487 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1488 * See the License for the specific language governing permissions and 1489 * limitations under the License. 1490 */const b0="RestConnection",_D={BatchGetDocuments:"batchGet",Commit:"commit",RunQuery:"runQuery",RunAggregationQuery:"runAggregationQuery",ExecutePipeline:"executePipeline"};class ED{get Ot(){return!1}constructor(t){this.databaseInfo=t,this.databaseId=t.databaseId;const e=t.ssl?"https":"http",s=encodeURIComponent(this.databaseId.projectId),a=encodeURIComponent(this.databaseId.database);this.Mt=e+"://"+t.host,this.Nt=`projects/${s}/databases/${a}`,this.Lt=this.databaseId.database===df?`project_id=${s}`:`project_id=${s}&database_id=${a}`}Bt(t,e,s,a,l){const c=_6(),h=this.Ut(t,e.toUriEncodedString());_t(b0,`Sending RPC '${t}' ${c}:`,h,s);const m={"google-cloud-resource-prefix":this.Nt,"x-goog-request-params":this.Lt};this.kt(m,a,l);const{host:g}=new URL(h),y=dy(g);return this.qt(t,h,m,s,y).then((_=>(_t(b0,`Received RPC '${t}' ${c}: `,_),_)),(_=>{throw Zi(b0,`RPC '${t}' ${c} failed with error: `,_,"url: ",h,"request:",s),_}))}$t(t,e,s,a,l,c){return this.Bt(t,e,s,a,l)}kt(t,e,s){t["X-Goog-Api-Client"]=(function(){return"gl-js/ fire/"+Cl})(),t["Content-Type"]="text/plain",this.databaseInfo.appId&&(t["X-Firebase-GMPID"]=this.databaseInfo.appId),e&&e.headers.forEach(((a,l)=>t[l]=a)),s&&s.headers.forEach(((a,l)=>t[l]=a))}Ut(t,e){const s=_D[t];let a=`${this.Mt}/v1/${e}:${s}`;return this.databaseInfo.apiKey&&(a=`${a}?key=${encodeURIComponent(this.databaseInfo.apiKey)}`),a}terminate(){}}/** 1491 * @license 1492 * Copyright 2017 Google LLC 1493 * 1494 * Licensed under the Apache License, Version 2.0 (the "License"); 1495 * you may not use this file except in compliance with the License. 1496 * You may obtain a copy of the License at 1497 * 1498 * http://www.apache.org/licenses/LICENSE-2.0 1499 * 1500 * Unless required by applicable law or agreed to in writing, software 1501 * distributed under the License is distributed on an "AS IS" BASIS, 1502 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1503 * See the License for the specific language governing permissions and 1504 * limitations under the License. 1505 */class TD{constructor(t){this.Kt=t.Kt,this.Wt=t.Wt}
vendor: 5,017 bytes, lines 1505-1524
1505Qt(t){this.Gt=t}zt(t){this.jt=t}Ht(t){this.Jt=t}onMessage(t){this.Yt=t}close(){this.Wt()}send(t){this.Kt(t)}Zt(){this.Gt()}Xt(){this.jt()}en(t){this.Jt(t)}tn(t){this.Yt(t)}}/** 1506 * @license 1507 * Copyright 2017 Google LLC 1508 * 1509 * Licensed under the Apache License, Version 2.0 (the "License"); 1510 * you may not use this file except in compliance with the License. 1511 * You may obtain a copy of the License at 1512 * 1513 * http://www.apache.org/licenses/LICENSE-2.0 1514 * 1515 * Unless required by applicable law or agreed to in writing, software 1516 * distributed under the License is distributed on an "AS IS" BASIS, 1517 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1518 * See the License for the specific language governing permissions and 1519 * limitations under the License. 1520 */const Cn="WebChannelConnection",Hu=(n,t,e)=>{n.listen(t,(s=>{try{e(s)}catch(a){setTimeout((()=>{throw a}),0)}}))};class fl extends ED{constructor(t){super(t),this.nn=[],this.forceLongPolling=t.forceLongPolling,this.autoDetectLongPolling=t.autoDetectLongPolling,this.useFetchStreams=t.useFetchStreams,this.longPollingOptions=t.longPollingOptions}static rn(){if(!fl.sn){const t=Sy();Hu(t,xy.STAT_EVENT,(e=>{e.stat===l6.PROXY?_t(Cn,"STAT_EVENT: detected buffering proxy"):e.stat===l6.NOPROXY&&_t(Cn,"STAT_EVENT: detected no buffering proxy")})),fl.sn=!0}}qt(t,e,s,a,l){const c=_6();return new Promise(((h,m)=>{const g=new Ty;g.setWithCredentials(!0),g.listenOnce(Ay.COMPLETE,(()=>{try{switch(g.getLastErrorCode()){case Hh.NO_ERROR:const _=g.getResponseJson();_t(Cn,`XHR for RPC '${t}' ${c} received:`,JSON.stringify(_)),h(_);break;case Hh.TIMEOUT:_t(Cn,`RPC '${t}' ${c} timed out`),m(new vt(ot.DEADLINE_EXCEEDED,"Request time out"));break;case Hh.HTTP_ERROR:const x=g.getStatus();if(_t(Cn,`RPC '${t}' ${c} failed with status:`,x,"response text:",g.getResponseText()),x>0){let R=g.getResponseJson();Array.isArray(R)&&(R=R[0]);const N=R==null?void 0:R.error;if(N&&N.status&&N.message){const j=(function(q){const tt=q.toLowerCase().replace(/_/g,"-");return Object.values(ot).indexOf(tt)>=0?tt:ot.UNKNOWN})(N.status);m(new vt(j,N.message))}else m(new vt(ot.UNKNOWN,"Server responded with status "+g.getStatus()))}else m(new vt(ot.UNAVAILABLE,"Connection failed."));break;default:Vt(9055,{_n:t,streamId:c,an:g.getLastErrorCode(),un:g.getLastError()})}}finally{_t(Cn,`RPC '${t}' ${c} completed.`)}}));const y=JSON.stringify(a);_t(Cn,`RPC '${t}' ${c} sending request:`,a),g.send(e,"POST",y,s,15)}))}cn(t,e,s){const a=_6(),l=[this.Mt,"/","google.firestore.v1.Firestore","/",t,"/channel"],c=this.createWebChannelTransport(),h={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},m=this.longPollingOptions.timeoutSeconds;m!==void 0&&(h.longPollingTimeout=Math.round(1e3*m)),this.useFetchStreams&&(h.useFetchStreams=!0),this.kt(h.initMessageHeaders,e,s),h.encodeInitMessageHeaders=!0;const g=l.join("");_t(Cn,`Creating RPC '${t}' stream ${a}: ${g}`,h);const y=c.createWebChannel(g,h);this.En(y);let _=!1,x=!1;const R=new TD({Kt:N=>{x?_t(Cn,`Not sending because RPC '${t}' stream ${a} is closed:`,N):(_||(_t(Cn,`Opening RPC '${t}' stream ${a} transport.`),y.open(),_=!0),_t(Cn,`RPC '${t}' stream ${a} sending:`,N),y.send(N))},Wt:()=>y.close()});return Hu(y,Gu.EventType.OPEN,(()=>{x||(_t(Cn,`RPC '${t}' stream ${a} transport opened.`),R.Zt())})),Hu(y,Gu.EventType.CLOSE,(()=>{x||(x=!0,_t(Cn,`RPC '${t}' stream ${a} transport closed`),R.en(),this.hn(y))})),Hu(y,Gu.EventType.ERROR,(N=>{x||(x=!0,Zi(Cn,`RPC '${t}' stream ${a} transport errored. Name:`,N.name,"Message:",N.message),R.en(new vt(ot.UNAVAILABLE,"The operation could not be completed")))})),Hu(y,Gu.EventType.MESSAGE,(N=>{var j;if(!x){const F=N.data[0];Ct(!!F,16349);const q=F,tt=(q==null?void 0:q.error)||((j=q[0])==null?void 0:j.error);if(tt){_t(Cn,`RPC '${t}' stream ${a} received error:`,tt);const Z=tt.status;let nt=(function(I){const C=We[I];if(C!==void 0)return nv(C)})(Z),ht=tt.message;Z==="NOT_FOUND"&&ht.includes("database")&&ht.includes("does not exist")&&ht.includes(this.databaseId.database)&&Zi(`Database '${this.databaseId.database}' not found. Please check your project configuration.`),nt===void 0&&(nt=ot.INTERNAL,ht="Unknown error status: "+Z+" with message "+tt.message),x=!0,R.en(new vt(nt,ht)),y.close()}else _t(Cn,`RPC '${t}' stream ${a} received:`,F),R.tn(F)}})),fl.rn(),setTimeout((()=>{R.Xt()}),0),R}terminate(){this.nn.forEach((t=>t.close())),this.nn=[]}En(t){this.nn.push(t)}hn(t){this.nn=this.nn.filter((e=>e===t))}kt(t,e,s){super.kt(t,e,s),this.databaseInfo.apiKey&&(t["x-goog-api-key"]=this.databaseInfo.apiKey)}createWebChannelTransport(){return wy()}}/** 1521 * @license 1522 * Copyright 2020 Google LLC 1523 * 1524 * Licensed under the Apache License, Version 2.0 (the "License");
1525 * you may not use this file except in compliance with the License. 1526 * You may obtain a copy of the License at 1527 * 1528 * http://www.apache.org/licenses/LICENSE-2.0 1529 * 1530 * Unless required by applicable law or agreed to in writing, software 1531 * distributed under the License is distributed on an "AS IS" BASIS, 1532 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1533 * See the License for the specific language governing permissions and 1534 * limitations under the License. 1535 */function AD(n){return new fl(n)}fl.sn=!1;class vv{constructor(t,e,s=1e3,a=1.5,l=6e4){this.Tn=t,this.timerId=e,this.Pn=s,this.Rn=a,this.In=l,this.An=0,this.Vn=null,this.dn=Date.now(),this.reset()}reset(){this.An=0}fn(){this.An=this.In}mn(t){this.cancel();const e=Math.floor(this.An+this.pn()),s=Math.max(0,Date.now()-this.dn),a=Math.max(0,e-s);a>0&&_t("ExponentialBackoff",`Backing off for ${a} ms (base delay: ${this.An} ms, delay with jitter: ${e} ms, last attempt: ${s} ms ago)`),this.Vn=this.Tn.enqueueAfterDelay(this.timerId,a,(()=>(this.dn=Date.now(),t()))),this.An*=this.Rn,this.An<this.Pn&&(this.An=this.Pn),this.An>this.In&&(this.An=this.In)}gn(){this.Vn!==null&&(this.Vn.skipDelay(),this.Vn=null)}cancel(){this.Vn!==null&&(this.Vn.cancel(),this.Vn=null)}pn(){return(Math.random()-.5)*this.An}}/** 1536 * @license 1537 * Copyright 2017 Google LLC 1538 * 1539 * Licensed under the Apache License, Version 2.0 (the "License"); 1540 * you may not use this file except in compliance with the License. 1541 * You may obtain a copy of the License at 1542 * 1543 * http://www.apache.org/licenses/LICENSE-2.0 1544 * 1545 * Unless required by applicable law or agreed to in writing, software 1546 * distributed under the License is distributed on an "AS IS" BASIS, 1547 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1548 * See the License for the specific language governing permissions and 1549 * limitations under the License. 1550 */const Z8="PersistentStream";class _v{constructor(t,e,s,a,l,c,h,m){this.Tn=t,this.yn=s,this.wn=a,this.connection=l,this.authCredentialsProvider=c,this.appCheckCredentialsProvider=h,this.listener=m,this.state=0,this.bn=0,this.vn=null,this.Sn=null,this.stream=null,this.Dn=0,this.xn=new vv(t,e)}Cn(){return this.state===1||this.state===5||this.Fn()}Fn(){return this.state===2||this.state===3}start(){this.Dn=0,this.state!==4?this.auth():this.On()}async stop(){this.Cn()&&await this.close(0)}Mn(){this.state=0,this.xn.reset()}Nn(){this.Fn()&&this.vn===null&&(this.vn=this.Tn.enqueueAfterDelay(this.yn,6e4,(()=>this.Ln())))}Bn(t){this.Un(),this.stream.send(t)}async Ln(){if(this.Fn())return this.close(0)}Un(){this.vn&&(this.vn.cancel(),this.vn=null)}kn(){this.Sn&&(this.Sn.cancel(),this.Sn=null)}async close(t,e){this.Un(),this.kn(),this.xn.cancel(),this.bn++,t!==4?this.xn.reset():e&&e.code===ot.RESOURCE_EXHAUSTED?(lr(e.toString()),lr("Using maximum backoff delay to prevent overloading the backend."),this.xn.fn()):e&&e.code===ot.UNAUTHENTICATED&&this.state!==3&&(this.authCredentialsProvider.invalidateToken(),this.appCheckCredentialsProvider.invalidateToken()),this.stream!==null&&(this.qn(),this.stream.close(),this.stream=null),this.state=t,await this.listener.Ht(e)}qn(){}auth(){this.state=1;const t=this.$n(this.bn),e=this.bn;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then((([s,a])=>{this.bn===e&&this.Kn(s,a)}),(s=>{t((()=>{const a=new vt(ot.UNKNOWN,"Fetching auth token failed: "+s.message);return this.Wn(a)}))}))}Kn(t,e){const s=this.$n(this.bn);this.stream=this.Qn(t,e),this.stream.Qt((()=>{s((()=>this.listener.Qt()))})),this.stream.zt((()=>{s((()=>(this.state=2,this.Sn=this.Tn.enqueueAfterDelay(this.wn,1e4,(()=>(this.Fn()&&(this.state=3),Promise.resolve()))),this.listener.zt())))})),this.stream.Ht((a=>{s((()=>this.Wn(a)))})),this.stream.onMessage((a=>{s((()=>++this.Dn==1?this.Gn(a):this.onNext(a)))}))}On(){this.state=5,this.xn.mn((async()=>{this.state=0,this.start()}))}Wn(t){return _t(Z8,`close with error: ${t}`),this.stream=null,this.close(4,t)}$n(t){return e=>{this.Tn.enqueueAndForget((()=>this.bn===t?e():(_t(Z8,"stream callback skipped by getCloseGuardedDispatcher."),Promise.resolve())))}}}class xD extends _v{constructor(t,e,s,a,l,c){super(t,"listen_stream_connection_backoff","listen_stream_idle","health_check_timeout",e,s,a,c),this.serializer
vendor: 4,404 bytes, lines 1550-1584
1550=l}Qn(t,e){return this.connection.cn("Listen",t,e)}Gn(t){return this.onNext(t)}onNext(t){this.xn.reset();const e=rD(this.serializer,t),s=(function(l){if(!("targetChange"in l))return Bt.min();const c=l.targetChange;return c.targetIds&&c.targetIds.length?Bt.min():c.readTime?Ds(c.readTime):Bt.min()})(t);return this.listener.zn(e,s)}jn(t){const e={};e.database=v6(this.serializer),e.addTarget=(function(l,c){let h;const m=c.target;if(h=$a(m)?{pipelineQuery:fD(l,m)}:tv(m)?{documents:lD(l,m)}:{query:uD(l,m).yt},h.targetId=c.targetId,c.resumeToken.approximateByteSize()>0){h.resumeToken=lv(l,c.resumeToken);const g=g6(l,c.expectedCount);g!==null&&(h.expectedCount=g)}else if(c.snapshotVersion.compareTo(Bt.min())>0){h.readTime=_f(l,c.snapshotVersion.toTimestamp());const g=g6(l,c.expectedCount);g!==null&&(h.expectedCount=g)}return h})(this.serializer,t);const s=hD(this.serializer,t);s&&(e.labels=s),this.Bn(e)}Hn(t){const e={};e.database=v6(this.serializer),e.removeTarget=t,this.Bn(e)}}class SD extends _v{constructor(t,e,s,a,l,c){super(t,"write_stream_connection_backoff","write_stream_idle","health_check_timeout",e,s,a,c),this.serializer=l}get Jn(){return this.Dn>0}start(){this.lastStreamToken=void 0,super.start()}qn(){this.Jn&&this.Yn([])}Qn(t,e){return this.connection.cn("Write",t,e)}Gn(t){return Ct(!!t.streamToken,31322),this.lastStreamToken=t.streamToken,Ct(!t.writeResults||t.writeResults.length===0,55816),this.listener.Zn()}onNext(t){Ct(!!t.streamToken,12678),this.lastStreamToken=t.streamToken,this.xn.reset();const e=oD(t.writeResults,t.commitTime),s=Ds(t.commitTime);return this.listener.Xn(s,e)}er(){const t={};t.database=v6(this.serializer),this.Bn(t)}Yn(t){const e={streamToken:this.lastStreamToken,writes:t.map((s=>aD(this.serializer,s)))};this.Bn(e)}}/** 1551 * @license 1552 * Copyright 2017 Google LLC 1553 * 1554 * Licensed under the Apache License, Version 2.0 (the "License"); 1555 * you may not use this file except in compliance with the License. 1556 * You may obtain a copy of the License at 1557 * 1558 * http://www.apache.org/licenses/LICENSE-2.0 1559 * 1560 * Unless required by applicable law or agreed to in writing, software 1561 * distributed under the License is distributed on an "AS IS" BASIS, 1562 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1563 * See the License for the specific language governing permissions and 1564 * limitations under the License. 1565 */class wD{}class bD extends wD{constructor(t,e,s,a){super(),this.authCredentials=t,this.appCheckCredentials=e,this.connection=s,this.serializer=a,this.tr=!1}nr(){if(this.tr)throw new vt(ot.FAILED_PRECONDITION,"The client has already been terminated.")}Bt(t,e,s,a){return this.nr(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then((([l,c])=>this.connection.Bt(t,y6(e,s),a,l,c))).catch((l=>{throw l.name==="FirebaseError"?(l.code===ot.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),l):new vt(ot.UNKNOWN,l.toString())}))}$t(t,e,s,a,l){return this.nr(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then((([c,h])=>this.connection.$t(t,y6(e,s),a,c,h,l))).catch((c=>{throw c.name==="FirebaseError"?(c.code===ot.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),c):new vt(ot.UNKNOWN,c.toString())}))}terminate(){this.tr=!0,this.connection.terminate()}}function CD(n,t,e,s){return new bD(n,t,e,s)}/** 1566 * @license 1567 * Copyright 2020 Google LLC 1568 * 1569 * Licensed under the Apache License, Version 2.0 (the "License"); 1570 * you may not use this file except in compliance with the License. 1571 * You may obtain a copy of the License at 1572 * 1573 * http://www.apache.org/licenses/LICENSE-2.0 1574 * 1575 * Unless required by applicable law or agreed to in writing, software 1576 * distributed under the License is distributed on an "AS IS" BASIS, 1577 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1578 * See the License for the specific language governing permissions and 1579 * limitations under the License. 1580 */const RD="ComponentProvider",J8=new Map;function ND(n,t,e,s,a){return new gN(n,t,e,a.host,a.ssl,a.experimentalForceLongPolling,a.experimentalAutoDetectLongPolling,yv(a.experimentalLongPollingOptions),a.useFetchStreams,a.isUsingEmulator,s)}/** 1581 * @license 1582 * Copyright 2018 Google LLC 1583 * 1584 * Licensed under the Apache License, Version 2.0 (the "License");
1585 * you may not use this file except in compliance with the License. 1586 * You may obtain a copy of the License at 1587 * 1588 * http://www.apache.org/licenses/LICENSE-2.0 1589 * 1590 * Unless required by applicable law or agreed to in writing, software 1591 * distributed under the License is distributed on an "AS IS" BASIS, 1592 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1593 * See the License for the specific language governing permissions and 1594 * limitations under the License. 1595 */const t9={didRun:!1,sequenceNumbersCollected:0,targetsRemoved:0,documentsRemoved:0},Ev=41943040;class $n{static withCacheSize(t){return new $n(t,$n.DEFAULT_COLLECTION_PERCENTILE,$n.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}constructor(t,e,s){this.cacheSizeCollectionThreshold=t,this.percentileToCollect=e,this.maximumSequenceNumbersToCollect=s}}$n.DEFAULT_COLLECTION_PERCENTILE=10,$n.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,$n.DEFAULT=new $n(Ev,$n.DEFAULT_COLLECTION_PERCENTILE,$n.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),$n.DISABLED=new $n(-1,0,0);/** 1596 * @license 1597 * Copyright 2020 Google LLC 1598 * 1599 * Licensed under the Apache License, Version 2.0 (the "License"); 1600 * you may not use this file except in compliance with the License. 1601 * You may obtain a copy of the License at 1602 * 1603 * http://www.apache.org/licenses/LICENSE-2.0 1604 * 1605 * Unless required by applicable law or agreed to in writing, software 1606 * distributed under the License is distributed on an "AS IS" BASIS, 1607 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1608 * See the License for the specific language governing permissions and 1609 * limitations under the License. 1610 */const e9="LruGarbageCollector",DD=1048576;function n9([n,t],[e,s]){const a=Zt(n,e);return a===0?Zt(t,s):a}class VD{constructor(t){this.rr=t,this.buffer=new nn(n9),this.ir=0}sr(){return++this.ir}_r(t){const e=[t,this.sr()];if(this.buffer.size<this.rr)this.buffer=this.buffer.add(e);else{const s=this.buffer.last();n9(e,s)<0&&(this.buffer=this.buffer.delete(s).add(e))}}get maxValue(){return this.buffer.last()[0]}}class ID{constructor(t,e,s){this.garbageCollector=t,this.asyncQueue=e,this.localStore=s,this.ar=null}start(){this.garbageCollector.params.cacheSizeCollectionThreshold!==-1&&this.ur(6e4)}stop(){this.ar&&(this.ar.cancel(),this.ar=null)}get started(){return this.ar!==null}ur(t){_t(e9,`Garbage collection scheduled in ${t}ms`),this.ar=this.asyncQueue.enqueueAfterDelay("lru_garbage_collection",t,(async()=>{this.ar=null;try{await this.localStore.collectGarbage(this.garbageCollector)}catch(e){Nl(e)?_t(e9,"Ignoring IndexedDB error during garbage collection: ",e):await Rl(e)}await this.ur(3e5)}))}}class OD{constructor(t,e){this.cr=t,this.params=e}calculateTargetCount(t,e){return this.cr.lr(t).next((s=>Math.floor(e/100*s)))}nthSequenceNumber(t,e){if(e===0)return lt.resolve(Mf.ce);const s=new VD(e);return this.cr.forEachTarget(t,(a=>s._r(a.sequenceNumber))).next((()=>this.cr.Er(t,(a=>s._r(a))))).next((()=>s.maxValue))}removeTargets(t,e,s){return this.cr.removeTargets(t,e,s)}removeOrphanedDocuments(t,e){return this.cr.removeOrphanedDocuments(t,e)}collect(t,e){return this.params.cacheSizeCollectionThreshold===-1?(_t("LruGarbageCollector","Garbage collection skipped; disabled"),lt.resolve(t9)):this.getCacheSize(t).next((s=>s<this.params.cacheSizeCollectionThreshold?(_t("LruGarbageCollector",`Garbage collection skipped; Cache size ${s} is lower than threshold ${this.params.cacheSizeCollectionThreshold}`),t9):this.hr(t,e)))}getCacheSize(t){return this.cr.getCacheSize(t)}hr(t,e){let s,a,l,c,h,m,g;const y=Date.now();return this.calculateTargetCount(t,this.params.percentileToCollect).next((_=>(_>this.params.maximumSequenceNumbersToCollect?(_t("LruGarbageCollector",`Capping sequence numbers to collect down to the maximum of ${this.params.maximumSequenceNumbersToCollect} from ${_}`),a=this.params.maximumSequenceNumbersToCollect):a=_,c=Date.now(),this.nthSequenceNumber(t,a)))).next((_=>(s=_,h=Date.now(),this.removeTargets(t,s,e)))).next((_=>(l=_,m=Date.now(),this.removeOrphanedDocuments(t,s)))).next((_=>(g=Date.now(),nl()<=se.DEBUG&&_t("LruGarbageCollector",`LRU Garbage Collection 1611 Counted targets in ${c-y}ms 1612 Determined least recently used ${a} in `+(h-c)+`ms 1613 Removed ${l} targets in `+(m-h)+`ms 1614 Removed ${_} documents in `+(g-m)+`ms 1615Total Duration: ${g-y}ms`),lt.resolve({didRun:!0,sequenceNumbersCollected:a,targetsRemoved:l,documentsRemoved:_}))))}}function MD(n,t){return new OD(n,t)}/** 1616 * @license 1617 * Copyright 2020 Google LLC 1618 * 1619 * Licensed under the Apache License, Version 2.0 (the "License");
1620 * you may not use this file except in compliance with the License. 1621 * You may obtain a copy of the License at 1622 * 1623 * http://www.apache.org/licenses/LICENSE-2.0 1624 * 1625 * Unless required by applicable law or agreed to in writing, software 1626 * distributed under the License is distributed on an "AS IS" BASIS, 1627 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1628 * See the License for the specific language governing permissions and 1629 * limitations under the License. 1630 */const Tv="firestore.googleapis.com",i9=!0;class s9{constructor(t){if(t.host===void 0){if(t.ssl!==void 0)throw new vt(ot.INVALID_ARGUMENT,"Can't provide ssl option if host option is not set");this.host=Tv,this.ssl=i9}else this.host=t.host,this.ssl=t.ssl??i9;if(this.isUsingEmulator=t.emulatorOptions!==void 0,this.credentials=t.credentials,this.ignoreUndefinedProperties=!!t.ignoreUndefinedProperties,this.localCache=t.localCache,t.cacheSizeBytes===void 0)this.cacheSizeBytes=Ev;else{if(t.cacheSizeBytes!==-1&&t.cacheSizeBytes<DD)throw new vt(ot.INVALID_ARGUMENT,"cacheSizeBytes must be at least 1048576");this.cacheSizeBytes=t.cacheSizeBytes}iN("experimentalForceLongPolling",t.experimentalForceLongPolling,"experimentalAutoDetectLongPolling",t.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!t.experimentalForceLongPolling,this.experimentalForceLongPolling?this.experimentalAutoDetectLongPolling=!1:t.experimentalAutoDetectLongPolling===void 0?this.experimentalAutoDetectLongPolling=!0:this.experimentalAutoDetectLongPolling=!!t.experimentalAutoDetectLongPolling,this.experimentalLongPollingOptions=yv(t.experimentalLongPollingOptions??{}),(function(s){if(s.timeoutSeconds!==void 0){if(isNaN(s.timeoutSeconds))throw new vt(ot.INVALID_ARGUMENT,`invalid long polling timeout: ${s.timeoutSeconds} (must not be NaN)`);if(s.timeoutSeconds<5)throw new vt(ot.INVALID_ARGUMENT,`invalid long polling timeout: ${s.timeoutSeconds} (minimum allowed value is 5)`);if(s.timeoutSeconds>30)throw new vt(ot.INVALID_ARGUMENT,`invalid long polling timeout: ${s.timeoutSeconds} (maximum allowed value is 30)`)}})(this.experimentalLongPollingOptions),this.useFetchStreams=!!t.useFetchStreams}isEqual(t){return this.host===t.host&&this.ssl===t.ssl&&this.credentials===t.credentials&&this.cacheSizeBytes===t.cacheSizeBytes&&this.experimentalForceLongPolling===t.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===t.experimentalAutoDetectLongPolling&&(function(s,a){return s.timeoutSeconds===a.timeoutSeconds})(this.experimentalLongPollingOptions,t.experimentalLongPollingOptions)&&this.ignoreUndefinedProperties===t.ignoreUndefinedProperties&&this.useFetchStreams===t.useFetchStreams}}class Ff{constructor(t,e,s,a){this._authCredentials=t,this._appCheckCredentials=e,this._databaseId=s,this._app=a,this.type="firestore-lite",this._persistenceKey="(lite)",this._settings=new s9({}),this._settingsFrozen=!1,this._emulatorOptions={},this._terminateTask="notTerminated"}get app(){if(!this._app)throw new vt(ot.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(t){if(this._settingsFrozen)throw new vt(ot.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 s9(t),this._emulatorOptions=t.emulatorOptions||{},t.credentials!==void 0&&(this._authCredentials=(function(s){if(!s)return new QR;switch(s.type){case"firstParty":return new WR(s.sessionIndex||"0",s.iamToken||null,s.authTokenFactory||null);case"provider":return s.client;default:throw new vt(ot.INVALID_ARGUMENT,"makeAuthCredentialsProvider failed due to invalid credential type")}})(t.credentials))}_getSettings(){return this._settings}_getEmulatorOptions(){return this._emulatorOptions}_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(e){const s=J8.get(e);s&&(_t(RD,"Removing Datastore"),J8.delete(e),s.terminate())})(this),Promise.resolve()}}function PD(n,t,e,s={}){var g;n=rr(n,Ff);const a=dy(t),l=n._getSettings(),c={...l,emulatorOptions:n._getEmulatorOptions()},h=`${t}:${e}`;a&&TC(`https://${h}`),l.host!==Tv&&l.host!==h&&Zi("Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used.");const m={...l,host:h,ssl:a,emulatorOptions:s};if(!lf(m,c)&&(n._setSettings(m),s.mockUserToken)){let y,_;if(typeof s.mockUserToken=="string")y=s.mockUserToken,_=Dn.MOCK_USER;else{y=fC(s.mockUserToken,(g=n._app)==null?void 0:g.options.projectId);const x=s.mockUserToken.sub||s.mockUserToken.user_id;if(!x)throw new vt(ot.INVALID_ARGUMENT,"mockUserToken must contain 'sub' or 'user_id' field!");
vendor: 4,277 bytes, lines 1630-1675
1630_=new Dn(x)}n._authCredentials=new KR(new Ry(y,_))}}/** 1631 * @license 1632 * Copyright 2020 Google LLC 1633 * 1634 * Licensed under the Apache License, Version 2.0 (the "License"); 1635 * you may not use this file except in compliance with the License. 1636 * You may obtain a copy of the License at 1637 * 1638 * http://www.apache.org/licenses/LICENSE-2.0 1639 * 1640 * Unless required by applicable law or agreed to in writing, software 1641 * distributed under the License is distributed on an "AS IS" BASIS, 1642 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1643 * See the License for the specific language governing permissions and 1644 * limitations under the License. 1645 */class pa{constructor(t,e,s){this.converter=e,this._query=s,this.type="query",this.firestore=t}withConverter(t){return new pa(this.firestore,t,this._query)}}class Ue{constructor(t,e,s){this.converter=e,this._key=s,this.type="document",this.firestore=t}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new Jr(this.firestore,this.converter,this._key.path.popLast())}withConverter(t){return new Ue(this.firestore,t,this._key)}toJSON(){return{type:Ue._jsonSchemaVersion,referencePath:this._key.toString()}}static fromJSON(t,e,s){if(kc(e,Ue._jsonSchema))return new Ue(t,s||null,new Nt(ue.fromString(e.referencePath)))}}Ue._jsonSchemaVersion="firestore/documentReference/1.0",Ue._jsonSchema={type:en("string",Ue._jsonSchemaVersion),referencePath:en("string")};class Jr extends pa{constructor(t,e,s){super(t,e,pm(s)),this._path=s,this.type="collection"}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){const t=this._path.popLast();return t.isEmpty()?null:new Ue(this.firestore,null,new Nt(t))}withConverter(t){return new Jr(this.firestore,t,this._path)}}function E6(n,t,...e){if(n=ro(n),Ny("collection","path",t),n instanceof Ff){const s=ue.fromString(t,...e);return N8(s),new Jr(n,null,s)}{if(!(n instanceof Ue||n instanceof Jr))throw new vt(ot.INVALID_ARGUMENT,"Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=n._path.child(ue.fromString(t,...e));return N8(s),new Jr(n.firestore,null,s)}}function T6(n,t,...e){if(n=ro(n),arguments.length===1&&(t=um.newId()),Ny("doc","path",t),n instanceof Ff){const s=ue.fromString(t,...e);return R8(s),new Ue(n,null,new Nt(s))}{if(!(n instanceof Ue||n instanceof Jr))throw new vt(ot.INVALID_ARGUMENT,"Expected first argument to doc() to be a CollectionReference, a DocumentReference or FirebaseFirestore");const s=n._path.child(ue.fromString(t,...e));return R8(s),new Ue(n.firestore,n instanceof Jr?n.converter:null,new Nt(s))}}/** 1646 * @license 1647 * Copyright 2017 Google LLC 1648 * 1649 * Licensed under the Apache License, Version 2.0 (the "License"); 1650 * you may not use this file except in compliance with the License. 1651 * You may obtain a copy of the License at 1652 * 1653 * http://www.apache.org/licenses/LICENSE-2.0 1654 * 1655 * Unless required by applicable law or agreed to in writing, software 1656 * distributed under the License is distributed on an "AS IS" BASIS, 1657 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1658 * See the License for the specific language governing permissions and 1659 * limitations under the License. 1660 *//** 1661 * @license 1662 * Copyright 2024 Google LLC 1663 * 1664 * Licensed under the Apache License, Version 2.0 (the "License"); 1665 * you may not use this file except in compliance with the License. 1666 * You may obtain a copy of the License at 1667 * 1668 * http://www.apache.org/licenses/LICENSE-2.0 1669 * 1670 * Unless required by applicable law or agreed to in writing, software 1671 * distributed under the License is distributed on an "AS IS" BASIS, 1672 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1673 * See the License for the specific language governing permissions and 1674 * limitations under the License. 1675 */class Wn{constructor(t){this._values=(t||[]).map((e=>e))}toArray(){return this._values.map((t=>t))}isEqual(t){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,t._values)}toJSON(){return{type:Wn._jsonSchemaVersion,vectorValues:this._values}}
vendor: 4,074 bytes, lines 1675-1690
1675static fromJSON(t){if(kc(t,Wn._jsonSchema)){if(Array.isArray(t.vectorValues)&&t.vectorValues.every((e=>typeof e=="number")))return new Wn(t.vectorValues);throw new vt(ot.INVALID_ARGUMENT,"Expected 'vectorValues' field to be a number array")}}}Wn._jsonSchemaVersion="firestore/vectorValue/1.0",Wn._jsonSchema={type:en("string",Wn._jsonSchemaVersion),vectorValues:en("object")};/** 1676 * @license 1677 * Copyright 2017 Google LLC 1678 * 1679 * Licensed under the Apache License, Version 2.0 (the "License"); 1680 * you may not use this file except in compliance with the License. 1681 * You may obtain a copy of the License at 1682 * 1683 * http://www.apache.org/licenses/LICENSE-2.0 1684 * 1685 * Unless required by applicable law or agreed to in writing, software 1686 * distributed under the License is distributed on an "AS IS" BASIS, 1687 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1688 * See the License for the specific language governing permissions and 1689 * limitations under the License. 1690 */const LD=/^__.*__$/;class kD{constructor(t,e,s){this.data=t,this.fieldMask=e,this.fieldTransforms=s}toMutation(t,e){return this.fieldMask!==null?new uo(t,this.data,this.fieldMask,e,this.fieldTransforms):new Bc(t,this.data,e,this.fieldTransforms)}}function Av(n){switch(n){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw Vt(40011,{dataSource:n})}}class Am{constructor(t,e,s,a,l,c){this.settings=t,this.databaseId=e,this.serializer=s,this.ignoreUndefinedProperties=a,l===void 0&&this.validatePath(),this.fieldTransforms=l||[],this.fieldMask=c||[]}get path(){return this.settings.path}get dataSource(){return this.settings.dataSource}contextWith(t){return new Am({...this.settings,...t},this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}childContextForField(t){var a;const e=(a=this.path)==null?void 0:a.child(t),s=this.contextWith({path:e,arrayElement:!1});return s.validatePathSegment(t),s}childContextForFieldPath(t){var a;const e=(a=this.path)==null?void 0:a.child(t),s=this.contextWith({path:e,arrayElement:!1});return s.validatePath(),s}childContextForArray(t){return this.contextWith({path:void 0,arrayElement:!0})}createError(t){return Tf(t,this.settings.methodName,this.settings.hasConverter||!1,this.path,this.settings.targetDoc)}contains(t){return this.fieldMask.find((e=>t.isPrefixOf(e)))!==void 0||this.fieldTransforms.find((e=>t.isPrefixOf(e.field)))!==void 0}validatePath(){if(this.path)for(let t=0;t<this.path.length;t++)this.validatePathSegment(this.path.get(t))}validatePathSegment(t){if(t.length===0)throw this.createError("Document fields must not be empty");if(Av(this.dataSource)&&LD.test(t))throw this.createError('Document fields cannot begin and end with "__"')}}class jD{constructor(t,e,s){this.databaseId=t,this.ignoreUndefinedProperties=e,this.serializer=s||zf(t)}createContext(t,e,s,a=!1){return new Am({dataSource:t,methodName:e,targetDoc:s,path:un.emptyPath(),arrayElement:!1,hasConverter:a},this.databaseId,this.serializer,this.ignoreUndefinedProperties)}}function xv(n){const t=n._freezeSettings(),e=zf(n._databaseId);return new jD(n._databaseId,!!t.ignoreUndefinedProperties,e)}function BD(n,t,e,s,a,l={}){const c=n.createContext(l.merge||l.mergeFields?2:0,t,e,a);bv("Data must be an object, but it was:",c,s);const h=Sv(s,c);let m,g;if(l.merge)m=new Xi(c.fieldMask),g=c.fieldTransforms;else if(l.mergeFields){const y=[];for(const _ of l.mergeFields){const x=Vl(t,_,e);if(!c.contains(x))throw new vt(ot.INVALID_ARGUMENT,`Field '${x}' is specified in your field mask but missing from your input data.`);HD(y,x)||y.push(x)}m=new Xi(y),g=c.fieldTransforms.filter((_=>m.covers(_.field)))}else m=null,g=c.fieldTransforms;return new kD(new hi(h),m,g)}class xm extends Tm{_toFieldTransform(t){return new AN(t.path,new Tc)}isEqual(t){return t instanceof xm}}function UD(n,t,e,s=!1){return El(e,n.createContext(s?4:3,t))}function El(n,t,e){if(wv(n=ro(n)))return bv("Unsupported field value:",t,n),Sv(n,t);if(n instanceof Tm)return(function(a,l){if(!Av(l.dataSource))throw l.createError(`${a._methodName}
1690() can only be used with update() and set()`);if(!l.path)throw l.createError(`${a._methodName}() is not currently supported inside arrays`);const c=a._toFieldTransform(l);c&&l.fieldTransforms.push(c)})(n,t),null;if(n===void 0&&t.ignoreUndefinedProperties)return null;if(t.path&&t.fieldMask.push(t.path),n instanceof Array){if(t.settings.arrayElement&&t.dataSource!==4)throw t.createError("Nested arrays are not supported");return(function(a,l){const c=[];let h=0;for(const m of a){let g=El(m,l.childContextForArray(h));g==null&&(g={nullValue:"NULL_VALUE"}),c.push(g),h++}return{arrayValue:{values:c}}})(n,t)}return(function(a,l,c){if((a=ro(a))===null)return{nullValue:"NULL_VALUE"};if(typeof a=="number")return fm(l.serializer,a,c);if(typeof a=="boolean")return{booleanValue:a};if(typeof a=="string")return{stringValue:a};if(a instanceof Date){const h=Se.fromDate(a);return{timestampValue:_f(l.serializer,h)}}if(a instanceof Se){const h=new Se(a.seconds,1e3*Math.floor(a.nanoseconds/1e3));return{timestampValue:_f(l.serializer,h)}}if(a instanceof Vs)return{geoPointValue:{latitude:a.latitude,longitude:a.longitude}};if(a instanceof Ri)return{bytesValue:lv(l.serializer,a._byteString)};if(a instanceof Ue){const h=l.databaseId,m=a.firestore._databaseId;if(!m.isEqual(h))throw l.createError(`Document reference is for database ${m.projectId}/${m.database} but should be for database ${h.projectId}/${h.database}`);return{referenceValue:_m(a.firestore._databaseId||l.databaseId,a._key.path)}}if(a instanceof Wn)return(function(m,g){const y=m instanceof Wn?m.toArray():m;return{mapValue:{fields:{[ky]:{stringValue:jy},[_c]:{arrayValue:{values:y.map((x=>{if(typeof x!="number")throw g.createError("VectorValues must only contain numeric values.");return kf(g.serializer,x)}))}}}}}})(a,l);if(pv(a))return a._toProto(l.serializer);throw l.createError(`Unsupported field value: ${Of(a)}`)})(n,t,e)}function Sv(n,t){const e={};return Vy(n)?t.path&&t.path.length>0&&t.fieldMask.push(t.path):lo(n,((s,a)=>{const l=El(a,t.childContextForField(s));l!=null&&(e[s]=l)})),{mapValue:{fields:e}}}function wv(n){return!(typeof n!="object"||n===null||n instanceof Array||n instanceof Date||n instanceof Se||n instanceof Vs||n instanceof Ri||n instanceof Ue||n instanceof Tm||n instanceof Wn||pv(n))}function bv(n,t,e){if(!wv(e)||!Lc(e)){const s=Of(e);throw s==="an object"?t.createError(n+" a custom object"):t.createError(n+" "+s)}}function Vl(n,t,e){if((t=ro(t))instanceof Em)return t._internalPath;if(typeof t=="string")return FD(n,t);throw Tf("Field path arguments must be of type string or ",n,!1,void 0,e)}const zD=new RegExp("[~\\*/\\[\\]]");function FD(n,t,e){if(t.search(zD)>=0)throw Tf(`Invalid field path (${t}). Paths must not contain '~', '*', '/', '[', or ']'`,n,!1,void 0,e);try{return new Em(...t.split("."))._internalPath}catch{throw Tf(`Invalid field path (${t}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,n,!1,void 0,e)}}function Tf(n,t,e,s,a){const l=s&&!s.isEmpty(),c=a!==void 0;let h=`Function ${t}() called with invalid data`;e&&(h+=" (via `toFirestore()`)"),h+=". ";let m="";return(l||c)&&(m+=" (found",l&&(m+=` in field ${s}`),c&&(m+=` in document ${a}`),m+=")"),new vt(ot.INVALID_ARGUMENT,h+n+m)}function HD(n,t){return n.some((e=>e.isEqual(t)))}function Cv(n){return typeof n._readUserData=="function"}/** 1691 * @license 1692 * Copyright 2025 Google LLC 1693 * 1694 * Licensed under the Apache License, Version 2.0 (the "License"); 1695 * you may not use this file except in compliance with the License. 1696 * You may obtain a copy of the License at 1697 * 1698 * http://www.apache.org/licenses/LICENSE-2.0 1699 * 1700 * Unless required by applicable law or agreed to in writing, software 1701 * distributed under the License is distributed on an "AS IS" BASIS, 1702 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1703 * See the License for the specific language governing permissions and 1704 * limitations under the License. 1705 */class In{constructor(t){this.optionDefinitions=t}_getKnownOptions(t,e){const s=hi.empty();for(const a in this.optionDefinitions)if(this.optionDefinitions.hasOwnProperty(a)){const l=this.optionDefinitions[a];if(a in t){const c=t[a];let h;l.nestedOptions&&Lc(c)?h={mapValue:{fields:new In(l.nestedOptions).getOptionsProto(e,c)}}:c&&(h=El(c,e)??void 0),h&&s.set(un.fromServerFormat(l.serverName),h)}}return s}getOptionsProto(t,e,s){const a=this._getKnownOptions(e,t);if(s){const l=new Map(mN(s,((c,h)=>[un.fromServerFormat(h),c!==void 0?El(c,t):null])));a.setAll(l)}return a.value.mapValue.fields??{}}}/** 1706 * @license 1707 * Copyright 2024 Google LLC 1708 * 1709 * Licensed under the Apache License, Version 2.0 (the "License");
vendor: 12,100 bytes, lines 1710-1735
1710 * you may not use this file except in compliance with the License. 1711 * You may obtain a copy of the License at 1712 * 1713 * http://www.apache.org/licenses/LICENSE-2.0 1714 * 1715 * Unless required by applicable law or agreed to in writing, software 1716 * distributed under the License is distributed on an "AS IS" BASIS, 1717 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1718 * See the License for the specific language governing permissions and 1719 * limitations under the License. 1720 */function qD(n){return typeof n=="object"&&n!==null&&!!("nullValue"in n&&(n.nullValue===null||n.nullValue==="NULL_VALUE")||"booleanValue"in n&&(n.booleanValue===null||typeof n.booleanValue=="boolean")||"integerValue"in n&&(n.integerValue===null||typeof n.integerValue=="number"||typeof n.integerValue=="string")||"doubleValue"in n&&(n.doubleValue===null||typeof n.doubleValue=="number")||"timestampValue"in n&&(n.timestampValue===null||(function(e){return typeof e=="object"&&e!==null&&"seconds"in e&&(e.seconds===null||typeof e.seconds=="number"||typeof e.seconds=="string")&&"nanos"in e&&(e.nanos===null||typeof e.nanos=="number")})(n.timestampValue))||"stringValue"in n&&(n.stringValue===null||typeof n.stringValue=="string")||"bytesValue"in n&&(n.bytesValue===null||n.bytesValue instanceof Uint8Array)||"referenceValue"in n&&(n.referenceValue===null||typeof n.referenceValue=="string")||"geoPointValue"in n&&(n.geoPointValue===null||(function(e){return typeof e=="object"&&e!==null&&"latitude"in e&&(e.latitude===null||typeof e.latitude=="number")&&"longitude"in e&&(e.longitude===null||typeof e.longitude=="number")})(n.geoPointValue))||"arrayValue"in n&&(n.arrayValue===null||(function(e){return typeof e=="object"&&e!==null&&!(!("values"in e)||e.values!==null&&!Array.isArray(e.values))})(n.arrayValue))||"mapValue"in n&&(n.mapValue===null||(function(e){return typeof e=="object"&&e!==null&&!(!("fields"in e)||e.fields!==null&&!Lc(e.fields))})(n.mapValue))||"fieldReferenceValue"in n&&(n.fieldReferenceValue===null||typeof n.fieldReferenceValue=="string")||"functionValue"in n&&(n.functionValue===null||(function(e){return typeof e=="object"&&e!==null&&!(!("name"in e)||e.name!==null&&typeof e.name!="string"||!("args"in e)||e.args!==null&&!Array.isArray(e.args))})(n.functionValue))||"pipelineValue"in n&&(n.pipelineValue===null||(function(e){return typeof e=="object"&&e!==null&&!(!("stages"in e)||e.stages!==null&&!Array.isArray(e.stages))})(n.pipelineValue)))}function GD(){return new xm("serverTimestamp")}function YD(n){return new Wn(n)}/** 1721 * @license 1722 * Copyright 2024 Google LLC 1723 * 1724 * Licensed under the Apache License, Version 2.0 (the "License"); 1725 * you may not use this file except in compliance with the License. 1726 * You may obtain a copy of the License at 1727 * 1728 * http://www.apache.org/licenses/LICENSE-2.0 1729 * 1730 * Unless required by applicable law or agreed to in writing, software 1731 * distributed under the License is distributed on an "AS IS" BASIS, 1732 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1733 * See the License for the specific language governing permissions and 1734 * limitations under the License. 1735 */function ft(n){let t;return n instanceof ho?n:(t=Lc(n)?WD(n):n instanceof Array?ZD(n):Rv(n,void 0),t)}function C0(n){if(n instanceof ho)return n;if(n instanceof Wn)return Cc(n);if(Array.isArray(n))return Cc(YD(n));throw new Error("Unsupported value: "+typeof n)}function Sm(n){return hN(n)?Kh(n):ft(n)}class ho{constructor(){this._protoValueType="ProtoValue"}add(t){return new et("add",[this,ft(t)],"add")}asBoolean(){if(this instanceof ua)return this;if(this instanceof Ol)return new Dv(this);if(this instanceof Il)return new XD(this);if(this instanceof et)return new Nv(this);throw new vt("invalid-argument",`Conversion of type ${typeof this} to BooleanExpression not supported.`)}subtract(t){return new et("subtract",[this,ft(t)],"subtract")}multiply(t){return new et("multiply",[this,ft(t)],"multiply")}divide(t){return new et("divide",[this,ft(t)],"divide")}mod(t){return new et("mod",[this,ft(t)],"mod")}equal(t){return new et("equal",[this,ft(t)],"equal").asBoolean()}notEqual(t){return new et("not_equal",[this,ft(t)],"notEqual").asBoolean()}lessThan(t){return new et("less_than",[this,ft(t)],"lessThan").asBoolean()}lessThanOrEqual(t){return new et("less_than_or_equal",[this,ft(t)],"lessThanOrEqual").asBoolean()}greaterThan(t){return new et("greater_than",[this,ft(t)],"greaterThan").asBoolean()}greaterThanOrEqual(t){return new et("greater_than_or_equal",[this,ft(t)],"greaterThanOrEqual").asBoolean()}arrayConcat(t,...e){const s=[t,...e].map((a=>ft(a)));return new et("array_concat",[this,...s],"arrayConcat")}arrayContains(t){return new et("array_contains",[this,ft(t)],"arrayContains").asBoolean()}arrayContainsAll(t){const e=Array.isArray(t)?new Qu(t.map(ft),"arrayContainsAll"):t;return new et("array_contains_all",[this,e],"arrayContainsAll").asBoolean()}arrayContainsAny(t){const e=Array.isArray(t)?new Qu(t.map(ft),"arrayContainsAny"):t;return new et("array_contains_any",[this,e],"arrayContainsAny").asBoolean()}arrayReverse(){return new et("array_reverse",[this])}arrayLength(){return new et("array_length",[this],"arrayLength")}equalAny(t){const e=Array.isArray(t)?new Qu(t.map(ft),"equalAny"):t;return new et("equal_any",[this,e],"equalAny").asBoolean()}notEqualAny(t){const e=Array.isArray(t)?new Qu(t.map(ft),"notEqualAny"):t;return new et("not_equal_any",[this,e],"notEqualAny").asBoolean()}exists(){return new et("exists",[this],"exists").asBoolean()}charLength(){return new et("char_length",[this],"charLength")}like(t){return new et("like",[this,ft(t)],"like").asBoolean()}regexContains(t){return new et("regex_contains",[this,ft(t)],"regexContains").asBoolean()}regexFind(t){return new et("regex_find",[this,ft(t)],"regexFind")}regexFindAll(t){return new et("regex_find_all",[this,ft(t)],"regexFindAll")}regexMatch(t){return new et("regex_match",[this,ft(t)],"regexMatch").asBoolean()}stringContains(t){return new et("string_contains",[this,ft(t)],"stringContains").asBoolean()}startsWith(t){return new et("starts_with",[this,ft(t)],"startsWith").asBoolean()}endsWith(t){return new et("ends_with",[this,ft(t)],"endsWith").asBoolean()}toLower(){return new et("to_lower",[this],"toLower")}toUpper(){return new et("to_upper",[this],"toUpper")}trim(t){const e=[this];return t&&e.push(ft(t)),new et("trim",e,"trim")}ltrim(t){const e=[this];return t&&e.push(ft(t)),new et("ltrim",e,"ltrim")}rtrim(t){const e=[this];return t&&e.push(ft(t)),new et("rtrim",e,"rtrim")}type(){return new et("type",[this])}isType(t){return new et("is_type",[this,Cc(t)],"isType").asBoolean()}stringConcat(t,...e){const s=[t,...e].map(ft);return new et("string_concat",[this,...s],"stringConcat")}stringIndexOf(t){return new et("string_index_of",[this,ft(t)],"stringIndexOf")}stringRepeat(t){return new et("string_repeat",[this,ft(t)],"stringRepeat")}stringReplaceAll(t,e){return new et("string_replace_all",[this,ft(t),ft(e)],"stringReplaceAll")}stringReplaceOne(t,e){return new et("string_replace_one",[this,ft(t),ft(e)],"stringReplaceOne")}concat(t,...e){const s=[t,...e].map(ft);return new et("concat",[this,...s],"concat")}reverse(){return new et("reverse",[this],"reverse")}arrayFilter(t,e){return new et("array_filter",[this,ft(t),e],"arrayFilter")}arrayTransform(t,e){return new et("array_transform",[this,ft(t),e],"arrayTransform")}arrayTransformWithIndex(t,e,s){return new et("array_transform",[this,ft(t),ft(e),s],"arrayTransformWithIndex")}arraySlice(t,e){const s=[this,ft(t)];return e!==void 0&&s.push(ft(e)),new et("array_slice",s,"arraySlice")}arrayFirst(){return new et("array_first",[this],"arrayFirst")}arrayFirstN(t){return new et("array_first_n",[this,ft(t)],"arrayFirstN")}arrayLast(){return new et("array_last",[this],"arrayLast")}arrayLastN(t){return new et("array_last_n",[this,ft(t)],"arrayLastN")}arrayMaximum(){return new et("maximum",[this],"arrayMaximum")}arrayMaximumN(t){return new et("maximum_n",[this,ft(t)],"arrayMaximumN")}arrayMinimum(){return new et("minimum",[this],"arrayMinimum")}arrayMinimumN(t){return new et("minimum_n",[this,ft(t)],"arrayMinimumN")}arrayIndexOf(t){return new et("array_index_of",[this,ft(t),ft("first")],"arrayIndexOf")}arrayLastIndexOf(t){return new et("array_index_of",[this,ft(t),ft("last")],"arrayLastIndexOf")}arrayIndexOfAll(t){return new et("array_index_of_all",[this,ft(t)],"arrayIndexOfAll")}byteLength(){return new et("byte_length",[this],"byteLength")}ceil(){return new et("ceil",[this])}floor(){return new et("floor",[this])}abs(){return new et("abs",[this])}exp(){return new et("exp",[this])}mapGet(t){return new et("map_get",[this,Cc(t)],"mapGet")}mapSet(t,e,...s){const a=[this,ft(t),ft(e),...s.map(ft)];return new et("map_set",a,"mapSet")}mapKeys(){return new et("map_keys",[this],"mapKeys")}mapValues(){return new et("map_values",[this],"mapValues")}mapEntries(){return new et("map_entries",[this],"mapEntries")}getField(t){return new et("get_field",[this,ft(t)],"get_field")}count(){return ci._create("count",[this],"count")}sum(){return ci._create("sum",[this],"sum")}average(){return ci._create("average",[this],"average")}minimum(){return ci._create("minimum",[this],"minimum")}maximum(){return ci._create("maximum",[this],"maximum")}first(){return ci._create("first",[this],"first")}last(){return ci._create("last",[this],"last")}arrayAgg(){return ci._create("array_agg",[this],"arrayAgg")}arrayAggDistinct(){return ci._create("array_agg_distinct",[this],"arrayAggDistinct")}countDistinct(){return ci._create("count_distinct",[this],"countDistinct")}logicalMaximum(t,...e){const s=[t,...e];return new et("maximum",[this,...s.map(ft)],"logicalMaximum")}logicalMinimum(t,...e){const s=[t,...e];return new et("minimum",[this,...s.map(ft)],"minimum")}vectorLength(){return new et("vector_length",[this],"vectorLength")}cosineDistance(t){return new et("cosine_distance",[this,C0(t)],"cosineDistance")}dotProduct(t){return new et("dot_product",[this,C0(t)],"dotProduct")}euclideanDistance(t){return new et("euclidean_distance",[this,C0(t)],"euclideanDistance")}unixMicrosToTimestamp(){return new et("unix_micros_to_timestamp",[this],"unixMicrosToTimestamp")}timestampToUnixMicros(){return new et("timestamp_to_unix_micros",[this],"timestampToUnixMicros")}unixMillisToTimestamp(){return new et("unix_millis_to_timestamp",[this],"unixMillisToTimestamp")}timestampToUnixMillis(){return new et("timestamp_to_unix_millis",[this],"timestampToUnixMillis")}unixSecondsToTimestamp(){return new et("unix_seconds_to_timestamp",[this],"unixSecondsToTimestamp")}timestampToUnixSeconds(){return new et("timestamp_to_unix_seconds",[this],"timestampToUnixSeconds")}timestampAdd(t,e){return new et("timestamp_add",[this,ft(t),ft(e)],"timestampAdd")}timestampSubtract(t,e){return new et("timestamp_subtract",[this,ft(t),ft(e)],"timestampSubtract")}timestampDiff(t,e){return new et("timestamp_diff",[this,Sm(t),ft(e)],"timestampDiff")}timestampExtract(t,e){const s=[this,ft(t)];return e&&s.push(ft(e)),new et("timestamp_extract",s,"timestampExtract")}documentId(){return new et("document_id",[this],"documentId")}parent(){return new et("parent",[this],"parent")}substring(t,e){const s=ft(t);return new et("substring",e===void 0?[this,s]:[this,s,ft(e)],"substring")}arrayGet(t){return new et("array_get",[this,ft(t)],"arrayGet")}isError(){return new et("is_error",[this],"isError").asBoolean()}ifError(t){const e=new et("if_error",[this,ft(t)],"ifError");return t instanceof ua?e.asBoolean():e}isAbsent(){return new et("is_absent",[this],"isAbsent").asBoolean()}mapRemove(t){return new et("map_remove",[this,ft(t)],"mapRemove")}mapMerge(t,...e){const s=ft(t),a=e.map(ft);return new et("map_merge",[this,s,...a],"mapMerge")}pow(t){return new et("pow",[this,ft(t)])}trunc(t){return t===void 0?new et("trunc",[this]):new et("trunc",[this,ft(t)],"trunc")}round(t){return t===void 0?new et("round",[this]):new et("round",[this,ft(t)],"round")}collectionId(){return new et("collection_id",[this])}length(){return new et("length",[this])}ln(){return new et("ln",[this])}sqrt(){return new et("sqrt",[this])}
vendor: 9,324 bytes, lines 1735-1750
1735stringReverse(){return new et("string_reverse",[this])}ifAbsent(t){return new et("if_absent",[this,ft(t)],"ifAbsent")}ifNull(t){return new et("if_null",[this,ft(t)],"ifNull")}coalesce(t,...e){return new et("coalesce",[this,ft(t),...e.map(ft)],"coalesce")}join(t){return new et("join",[this,ft(t)],"join")}log10(){return new et("log10",[this])}arraySum(){return new et("sum",[this])}split(t){return new et("split",[this,ft(t)])}timestampTruncate(t,e){const s=[this,ft(t)];return e&&s.push(ft(e)),new et("timestamp_trunc",s)}ascending(){return JD(this)}descending(){return tV(this)}as(t){return new KD(this,t,"as")}}class ci{constructor(t,e){this.name=t,this.params=e,this.exprType="AggregateFunction",this._protoValueType="ProtoValue"}static _create(t,e,s){const a=new ci(t,e);return a._methodName=s,a}as(t){return new QD(this,t,"as")}_toProto(t){return{functionValue:{name:this.name,args:this.params.map((e=>e._toProto(t)))}}}_readUserData(t){t=this._methodName?t.contextWith({methodName:this._methodName}):t,this.params.forEach((e=>e._readUserData(t)))}}class QD{constructor(t,e,s){this.aggregate=t,this.alias=e,this._methodName=s}_readUserData(t){this.aggregate._readUserData(t)}}class KD{constructor(t,e,s){this.expr=t,this.alias=e,this._methodName=s,this.exprType="AliasedExpression",this.selectable=!0}_readUserData(t){this.expr._readUserData(t)}}class Qu extends ho{constructor(t,e){super(),this.Rr=t,this._methodName=e,this.expressionType="ListOfExpressions"}_toProto(t){return{arrayValue:{values:this.Rr.map((e=>e._toProto(t)))}}}_readUserData(t){this.Rr.forEach((e=>e._readUserData(t)))}}class Il extends ho{constructor(t,e){super(),this.fieldPath=t,this._methodName=e,this.expressionType="Field",this.selectable=!0}get _fieldPath(){return this.fieldPath}get fieldName(){return this.fieldPath.canonicalString()}get alias(){return this.fieldName}get expr(){return this}geoDistance(t){return new et("geo_distance",[this,ft(t)],"geoDistance")}_toProto(t){return{fieldReferenceValue:this.fieldPath.canonicalString()}}_readUserData(t){}}function Kh(n){return $D(n,"field")}function $D(n,t){return new Il(typeof n=="string"?ws===n?yD()._internalPath:Vl("field",n):n._internalPath,t)}class Ol extends ho{constructor(t,e){super(),this.value=t,this._methodName=e,this.expressionType="Constant"}static _fromProto(t){const e=new Ol(t,void 0);return e._protoValue=t,e}_toProto(t){return Ct(this._protoValue!==void 0,237),this._protoValue}_getValue(){return this._protoValue}_readUserData(t){t=this._methodName?t.contextWith({methodName:this._methodName}):t,qD(this._protoValue)||(this._protoValue=El(this.value,t))}}function Cc(n,t){return Rv(n,"constant")}function Rv(n,t){const e=new Ol(n,t);return typeof n=="boolean"?new Dv(e):e}class et extends ho{constructor(t,e,s,a){super(),this.name=t,this.params=e,this.expressionType="Function",this._optionsProto=void 0,s!==void 0&&(this._methodName=s),a!==void 0&&(this._options=a)}get _optionsUtil(){return new In({})}_toProto(t){const e={functionValue:{name:this.name,args:this.params.map((s=>s._toProto(t)))}};return this._optionsProto&&(e.functionValue.options=this._optionsProto),e}_readUserData(t){t=this._methodName?t.contextWith({methodName:this._methodName}):t,this.params.forEach((e=>e._readUserData(t))),this._options&&(this._optionsProto=this._optionsUtil.getOptionsProto(t,this._options))}}class ua extends ho{get _methodName(){return this._expr._methodName}countIf(){return ci._create("count_if",[this],"countIf")}not(){return new et("not",[this],"not").asBoolean()}conditional(t,e){return new et("conditional",[this,t,e],"conditional")}ifError(t){const e=ft(t),s=new et("if_error",[this,e],"ifError");return e instanceof ua?s.asBoolean():s}_toProto(t){return this._expr._toProto(t)}_readUserData(t){this._expr._readUserData(t)}}class Nv extends ua{constructor(t){super(),this._expr=t,this.expressionType="Function"}}class Dv extends ua{constructor(t){super(),this._expr=t,this.expressionType="Constant"}_getValue(){return this._expr._getValue()}}class XD extends ua{constructor(t){super(),this._expr=t,this.expressionType="Field"}}function WD(n,t){const e=[];for(const s in n)if(Object.prototype.hasOwnProperty.call(n,s)){const a=n[s];e.push(Cc(s)),e.push(ft(a))}return new et("map",e,"map")}function ZD(n){return(function(e,s){return new et("array",e.map((a=>ft(a))),s)})(n,"array")}function JD(n){return new Vv(Sm(n),"ascending","ascending")}function tV(n){return new Vv(Sm(n),"descending","descending")}class Vv{constructor(t,e,s){this.expr=t,this.direction=e,this._methodName=s,this._protoValueType="ProtoValue"}_toProto(t){return{mapValue:{fields:{direction:gv(this.direction),expression:this.expr._toProto(t)}}}}_readUserData(t){this.expr._readUserData(t)}}/** 1736 * @license 1737 * Copyright 2024 Google LLC 1738 * 1739 * Licensed under the Apache License, Version 2.0 (the "License"); 1740 * you may not use this file except in compliance with the License. 1741 * You may obtain a copy of the License at 1742 * 1743 * http://www.apache.org/licenses/LICENSE-2.0 1744 * 1745 * Unless required by applicable law or agreed to in writing, software 1746 * distributed under the License is distributed on an "AS IS" BASIS, 1747 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1748 * See the License for the specific language governing permissions and 1749 * limitations under the License. 1750 */class mi{constructor(t){this.optionsProto=void 0,{rawOptions:this.rawOptions,...this.knownOptions}=t}_readUserData(t){this.optionsProto=this._optionsUtil.getOptionsProto(t,this.knownOptions,this.rawOptions)}_toProto(t){return{name:this._name,options:this.optionsProto}}}class Iv extends mi{get _name(){return"add_fields"}get _optionsUtil(){return new In({})}constructor(t,e){super(e),this.fields=t}_toProto(t){return{...super._toProto(t),args:[bc(t,this.fields)]}}_readUserData(t){super._readUserData(t),ca(this.fields,t)}}class Ov extends mi{get _name(){return"aggregate"}get _optionsUtil(){return new In({})}constructor(t,e,s){super(s),this.groups=t,this.accumulators=e}_toProto(t){return{...super._toProto(t),args:[bc(t,this.accumulators),bc(t,this.groups)]}}_readUserData(t){super._readUserData(t),ca(this.groups,t),ca(this.accumulators,t)}}class Mv extends mi{get _name(){return"distinct"}get _optionsUtil(){return new In({})}constructor(t,e){super(e),this.groups=t}_toProto(t){return{...super._toProto(t),args:[bc(t,this.groups)]}}_readUserData(t){super._readUserData(t),ca(this.groups,t)}}class Hf extends mi{get _name(){return"collection"}get _optionsUtil(){return new In({forceIndex:{serverName:"force_index"}})}constructor(t,e){super(e),this.Vr=t.startsWith("/")?t:"/"+t}_toProto(t){return{...super._toProto(t),args:[{referenceValue:this.Vr}]}}_readUserData(t){super._readUserData(t)}}class qf extends mi{get _name(){return"collection_group"}get _optionsUtil(){return new In({forceIndex:{serverName:"force_index"}})}constructor(t,e){super(e),this.collectionId=t}_toProto(t){return{...super._toProto(t),args:[{referenceValue:""},{stringValue:this.collectionId}]}}_readUserData(t){super._readUserData(t)}}class wm extends mi{get _name(){return"database"}get _optionsUtil(){return new In({})}_toProto(t){return{...super._toProto(t)}}_readUserData(t){super._readUserData(t)}}class bm extends mi{get _name(){return"documents"}get _optionsUtil(){return new In({})}constructor(t,e){if(super(e),!t||t.length===0)throw new vt(ot.INVALID_ARGUMENT,"Empty document paths are not allowed in DocumentsSource");const s=t.map((l=>l.startsWith("/")?l:"/"+l)),a=new Set(s);if(a.size!==s.length)throw new vt(ot.INVALID_ARGUMENT,"Duplicate document paths are not allowed in DocumentsSource");this.dr=s,this.mr=a}_toProto(t){return{...super._toProto(t),args:this.dr.map((e=>({referenceValue:e})))}}_readUserData(t){super._readUserData(t)}}class Gf extends mi{get _name(){return"where"}get _optionsUtil(){return new In({})}constructor(t,e){super(e),this.condition=t}_toProto(t){return{...super._toProto(t),args:[this.condition._toProto(t)]}}_readUserData(t){super._readUserData(t),ca(this.condition,t)}}class oo extends mi{get _name(){return"limit"}get _optionsUtil(){return new In({})}constructor(t,e){Ct(!isNaN(t)&&t!==1/0&&t!==-1/0,34860),super(e),this.limit=t}_toProto(t){return{...super._toProto(t),args:[fm(t,this.limit)]}}}class r9 extends mi{get _name(){return"offset"}get _optionsUtil(){return new In({})}constructor(t,e){super(e),this.offset=t}_toProto(t){return{...super._toProto(t),args:[fm(t,this.offset)]}}}class eV extends mi{get _name(){return"select"}get _optionsUtil(){return new In({})}constructor(t,e){super(e),this.selections=t}_toProto(t){return{...super._toProto(t),args:[bc(t,this.selections)]}}_readUserData(t){super._readUserData(t),ca(this.selections,t)}}class ir extends mi{get _name(){return"sort"}get _optionsUtil(){return new In({})}constructor(t,e){super(e),this.orderings=t}_toProto(t){return{...super._toProto(t),args:this.orderings.map((e=>e._toProto(t)))}}_readUserData(t){super._readUserData(t),ca(this.orderings,t)}}class Cm extends mi{get _name(){return"replace_with"}get _optionsUtil(){return new In({})}constructor(t,e){super(e),this.map=t}_toProto(t){return{...super._toProto(t),args:[this.map._toProto(t),gv(Cm.pr)]}}_readUserData(t){super._readUserData(t),ca(this.map,t)}}Cm.pr="full_replace";function ca(n,t){return Cv(n)?n._readUserData(t):Array.isArray(n)?n.forEac
1750h((e=>e._readUserData(t))):n instanceof Map?n.forEach((e=>e._readUserData(t))):Object.values(n).forEach((e=>e._readUserData(t))),n}// Copyright 2024 Google LLC* @license 1751class Bn{constructor(t,e,s){this.serializer=t,this.stages=e,this.listenOptions=s,this.isCorePipeline=!0}getPipelineCollection(){return Yf(this)}getPipelineCollectionGroup(){return Rm(this)}getPipelineCollectionId(){return nV(this)}getPipelineDocuments(){return A6(this)}getPipelineFlavor(){return(function(e){let s="exact";return e.stages.forEach(((a,l)=>{a._name!==Mv.name&&a._name!==Ov.name||(s="keyless"),a._name===eV.name&&s==="exact"&&(s="augmented"),a._name===Iv.name&&l<e.stages.length-1&&s==="exact"&&(s="augmented")})),s})(this)}getPipelineSourceType(){return ta(this)}}function ta(n){const t=n.stages[0];return t instanceof Hf||t instanceof qf||t instanceof wm||t instanceof bm?t._name:"unknown"}function Yf(n){if(ta(n)==="collection")return n.stages[0].Vr}function Rm(n){if(ta(n)==="collection_group")return n.stages[0].collectionId}function nV(n){switch(ta(n)){case"collection":return ue.fromString(Yf(n)).lastSegment();case"collection_group":return Rm(n);default:return}}
1751function A6(n){if(ta(n)==="documents")return n.stages[0].dr}class ac{constructor(t,e,s,a){this._db=t,this.userDataReader=e,this._userDataWriter=s,this.stages=a}wr(t,e){const s=this.userDataReader.createContext(3,t);return Cv(e)?e._readUserData(s):Array.isArray(e)?e.forEach((a=>a._readUserData(s))):e.forEach((a=>a._readUserData(s))),e}where(t){const e=this.stages.map((s=>s));return this.wr("where",t),e.push(new Gf(t,{})),new ac(this._db,this.userDataReader,this._userDataWriter,e)}limit(t){const e=this.stages.map((s=>s));return e.push(new oo(t,{})),new ac(this._db,this.userDataReader,this._userDataWriter,e)}sort(t,...e){const s=this.stages.map((a=>a));return"orderings"in t?s.push(new ir(this.wr("sort",t.orderings),{})):s.push(new ir(this.wr("sort",[t,...e]),{})),new ac(this._db,this.userDataReader,this._userDataWriter,s)}br(t){return{pipeline:{stages:this.stages.map((e=>e._toProto(t)))}}}}// Copyright 2024 Google LLC* @license 1752class z{constructor(t,e){this.type=t,this.value=e}static vr(){return new z("ERROR",void 0)}static Sr(){return new z("UNSET",void 0)}static Dr(){return new z("NULL",yl)}static newValue(t){return fi(t)?new z("NULL",yl):(function(s){return!!s&&"booleanValue"in s})(t)?new z("BOOLEAN",t):bs(t)?new z("INT",t):Za(t)?new z("DOUBLE",t):(function(s){return!!s&&"timestampValue"in s&&!!s.timestampValue})(t)?new z("TIMESTAMP",t):(function(s){return!!s&&"stringValue"in s})(t)?new z("STRING",t):(function(s){return!!s&&"bytesValue"in s})(t)?new z("BYTES",t):t.referenceValue?new z("REFERENCE",t):t.geoPointValue?new z("GEO_POINT",t):_l(t)?new z("ARRAY",t):mf(t)?new z("VECTOR",t):eo(t)?new z("MAP",t):new z("ERROR",void 0)}Cr(){return this.type==="ERROR"||this.type==="UNSET"}Fr(){return this.type==="NULL"}}function oc(n){if(!n.Cr())return n.value}function Pv(n){return n instanceof ua?n._expr:n}function Pt(n){if((n=Pv(n))instanceof Il)return new iV(n);if(n instanceof Ol)return new sV(n);if(n instanceof Qu)return new rV(n);if(n instanceof et){if(n.name==="add")return new lV(n);if(n.name==="subtract")return new uV(n);if(n.name==="multiply")return new cV(n);if(n.name==="divide")return new hV(n);if(n.name==="mod")return new fV(n);if(n.name==="and")return new dV(n);if(n.name==="equal")return new wV(n);if(n.name==="not_equal")return new bV(n);if(n.name==="less_than")return new CV(n);if(n.name==="less_than_or_equal")return new RV(n);if(n.name==="greater_than")return new NV(n);if(n.name==="greater_than_or_equal")return new DV(n);if(n.name==="array_concat")return new VV(n);if(n.name==="array_reverse")return new IV(n);if(n.name==="array_contains")return new OV(n);if(n.name==="array_contains_all")return new MV(n);if(n.name==="array_contains_any")return new PV(n);if(n.name==="array_length")return new LV(n);if(n.name==="array_element")return new kV(n);if(n.name==="equal_any")return new Lv(n);if(n.name==="not_equal_any")return new pV(n);if(n.name==="is_nan")return new gV(n);if(n.name==="is_not_nan")return new yV(n);if(n.name==="is_null")return new vV(n);if(n.name==="is_not_null")return new _V(n);if(n.name==="is_error")return new EV(n);if(n.name==="exists")return new TV(n);if(n.name==="not")return new Qf(n);if(n.name==="or")return new mV(n);if(n.name==="xor")return new Nm(n);if(n.name==="conditional")return new AV(n);if(n.name==="maximum")return new xV(n);if(n.name==="minimum")return new SV(n);if(n.name==="reverse")return new jV(n);if(n.name==="replace_first")return new BV(n);if(n.name==="replace_all")return new UV(n);if(n.name==="char_length")return new zV(n);if(n.name==="byte_length")return new FV(n);if(n.name==="like")return new HV(n);if(n.name==="regex_contains")return new qV(n);if(n.name==="regex_match")return new GV(n);if(n.name==="string_contains")return new YV(n);if(n.name==="starts_with")return new QV(n);if(n.name==="ends_with")return new KV(n);if(n.name==="to_lower")return new $V(n);if(n.name==="to_upper")return new XV(n);if(n.name==="trim")return new WV(n);if(n.name==="string_concat")return new ZV(n);if(n.name==="map_get")return new JV(n);if(n.name==="cosine_distance")return new tI(n);if(n.name==="dot_product")return new eI(n);if(n.name==="euclidean_distance")return new nI(n);if(n.name==="vector_length")return new iI(n);if(n.name==="unix_micros_to_timestamp")return new lI(n);if(n.name==="timestamp_to_unix_micros")return new hI(n);if(n.name==="unix_millis_to_timestamp")return new uI(n);if(n.name==="timestamp_to_unix_millis")return new fI(n);if(n.name==="unix_seconds_to_timestamp")return new cI(n);if(n.name==="timestamp_to_unix_seconds")return new dI(n);if(n.name==="timestamp_add")return new mI(n);if(n.name==="timestamp_subtract")return new pI(n)}throw new Error(`Unknown Expr : ${n}`)}class iV{constructor(t){this.expr=t}evaluate(t,e){if(this.expr.fieldName===ws)return z.newValue({referenceValue:Ef(t.serializer,e.key)});if(this.expr.fieldName==="__update_time__")return z.newValue({timestampValue:Qh(t.serializer,e.version)});if(this.expr.fieldName==="__create_time__")return z.newValue({timestampValue:Qh(t.serializer,e.createTime)});const s=e.data.field(this.expr._fieldPath);
1752return s?Lf(s)?z.newValue((function(l,c){if(l.serverTimestampBehavior==="estimate")return{timestampValue:Qh(l.serializer,Bt.fromTimestamp(gl(c)))};if(l.serverTimestampBehavior==="previous"){const h=jc(c);if(h)return h}return{nullValue:"NULL_VALUE"}})(t,s)):z.newValue(s):z.Sr()}}class sV{constructor(t){this.expr=t}evaluate(t,e){return z.newValue(this.expr._getValue())}}class rV{constructor(t){this.expr=t}evaluate(t,e){const s=this.expr.Rr.map((a=>Pt(a).evaluate(t,e)));return s.some((a=>a.Cr()))?z.vr():z.newValue({arrayValue:{values:s.map((a=>a.value))}})}}function wn(n){return Za(n)?Number(n.doubleValue):Number(n.integerValue)}function Os(n){return BigInt(n.integerValue)}const aV=BigInt("0x7fffffffffffffff"),oV=-BigInt("0x8000000000000000");class Fc{constructor(t){this.expr=t}evaluate(t,e){Ct(this.expr.params.length>=2,24778);const s=Pt(this.expr.params[0]).evaluate(t,e),a=Pt(this.expr.params[1]).evaluate(t,e);let l=this.Or(s,a);for(const c of this.expr.params.slice(2)){const h=Pt(c).evaluate(t,e);l=this.Or(l,h)}return l}Or(t,e){if(t.Cr()||e.Cr())return z.vr();if(t.Fr()||e.Fr())return z.Dr();const s=t.value,a=e.value;if(!Za(s)&&!bs(s)||!Za(a)&&!bs(a))return z.vr();if(Za(s)||Za(a)){const l=this.Mr(s,a);return l?z.newValue(l):z.vr()}if(bs(s)&&bs(a)){const l=this.Nr(s,a);return l===void 0?z.vr():typeof l=="number"?z.newValue({doubleValue:l}):l<oV||l>aV?z.vr():z.newValue({integerValue:`${l}`})}return z.vr()}}function ur(n,t){return rn(n)!==rn(t)?"TYPE_MISMATCH":ti(n)||ti(t)?"NOT_EQ":fi(n)&&fi(t)?"EQ":fi(n)||fi(t)?"NULL":_l(n)&&_l(t)?(function(s,a){var c,h,m;if(((c=s.values)==null?void 0:c.length)!==((h=a.values)==null?void 0:h.length))return"NOT_EQ";let l=!1;for(let g=0;g<(((m=s.values)==null?void 0:m.length)??0);g++){const y=s.values[g],_=a.values[g];switch(ur(y,_)){case"EQ":break;case"NOT_EQ":case"TYPE_MISMATCH":return"NOT_EQ";case"NULL":l=!0;break;default:Vt(44609,{Lr:y,Br:_})}}return l?"NULL":"EQ"})(n.arrayValue,t.arrayValue):mf(n)&&mf(t)||eo(n)&&eo(t)?(function(s,a){const l=s.fields||{},c=a.fields||{};if(ff(l)!==ff(c))return"NOT_EQ";let h=!1;for(const m in l)if(l.hasOwnProperty(m)){if(c[m]===void 0)return"NOT_EQ";switch(ur(l[m],c[m])){case"NOT_EQ":case"TYPE_MISMATCH":return"NOT_EQ";case"NULL":h=!0}}return h?"NULL":"EQ"})(n.mapValue,t.mapValue):(function(s,a){return Vi(s,a,{Te:!1,Ee:!0,he:!0})})(n,t)?"EQ":"NOT_EQ"}class lV extends Fc{Nr(t,e){return Os(t)+Os(e)}Mr(t,e){return{doubleValue:wn(t)+wn(e)}}}class uV extends Fc{constructor(t){super(t),this.expr=t}Nr(t,e){return Os(t)-Os(e)}Mr(t,e){return{doubleValue:wn(t)-wn(e)}}}class cV extends Fc{constructor(t){super(t),this.expr=t}Nr(t,e){return Os(t)*Os(e)}Mr(t,e){return{doubleValue:wn(t)*wn(e)}}}class hV extends Fc{constructor(t){super(t),this.expr=t}Nr(t,e){const s=Os(e);if(s!==BigInt(0))return Os(t)/s}Mr(t,e){const s=wn(e);return s===0?{doubleValue:yc(s)?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY}:{doubleValue:wn(t)/s}}}class fV extends Fc{constructor(t){super(t),this.expr=t}Nr(t,e){const s=Os(e);if(s!==BigInt(0))return Os(t)%s}Mr(t,e){const s=wn(e);if(s!==0)return{doubleValue:wn(t)%s}}}class dV{constructor(t){this.expr=t}evaluate(t,e){var l;let s=!1,a=!1;for(const c of this.expr.params){const h=Pt(c).evaluate(t,e);switch(h.type){case"BOOLEAN":if(!((l=h.value)!=null&&l.booleanValue))return z.newValue(pn);break;case"NULL":a=!0;break;default:s=!0}}return s?z.vr():a?z.Dr():z.newValue(Zn)}}class Qf{constructor(t){this.expr=t}evaluate(t,e){var a;Ct(this.expr.params.length===1,9634);const s=Pt(this.expr.params[0]).evaluate(t,e);switch(s.type){case"BOOLEAN":return z.newValue({booleanValue:!((a=s.value)!=null&&a.booleanValue)});case"NULL":return z.Dr();default:return z.vr()}}}class mV{constructor(t){this.expr=t}evaluate(t,e){var l;let s=!1,a=!1;for(const c of this.expr.params){const h=Pt(c).evaluate(t,e);switch(h.type){case"BOOLEAN":if((l=h.value)!=null&&l.booleanValue)return z.newValue(Zn);break;case"NULL":a=!0;break;default:s=!0}}return s?z.vr():a?z.Dr():z.newValue(pn)}}class Nm{constructor(t){this.expr=t}evaluate(t,e){var l;let s=!1,a=!1;for(const c of this.expr.params){const h=Pt(c).evaluate(t,e);switch(h.type){case"BOOLEAN":s=Nm.xor(s,!!((l=h.value)!=null&&l.booleanValue));break;case"NULL":a=!0;break;default:return z.vr()}}return a?z.Dr():z.newValue({booleanValue:s})}static xor(t,e){return(t||e)&&!(t&&e)}}class Lv{constructor(t){this.expr=t}evaluate(t,e){var c,h;Ct(this.expr.params.length===2,55094);let s=!1;const a=Pt(this.expr.params[0]).evaluate(t,e);switch(a.type){case"NULL":s=!0;break;case"ERROR":case"UNSET":return z.vr()}const l=Pt(this.expr.params[1]).evaluate(t,e);switch(l.type){case"ARRAY":break;case"NULL":s=!0;break;default:return z.vr()}if(s)return z.Dr();for(const m of((h=(c=l.value)==null?void 0:c.arrayValue)==null?void 0:h.values)??[])switch(fi(a.value)&&fi(m)?"EQ":ur(a.value,m)){case"EQ":return z.newValue(Zn);case"NOT_EQ":case"TYPE_MISMATCH":break;case"NULL":s=!0;break;default:Vt(44608,{value:a.value,candidate:m})}return s?z.Dr():z.newValue(pn)}}class pV{constructor(t){this.expr=t}evaluate(t,e){return new Qf(new et("not",[new et("equal_any",this.expr.params)])).evaluate(t,e)}}class gV{constructor(t){this.expr=t}evaluate(t,e){Ct(this.expr.params.length===1,23322);const s=Pt(this.expr.params[0]).evaluate(t,e);switch(s.type){case"INT":return z.newValue(pn);case"DOUBLE":return z.newValue({booleanValue:isNaN(wn(s.value))});case"NULL":return z.Dr();default:return z.vr()}}}class yV{constructor(t){this.expr=t}evaluate(t,e){return Ct(this.expr.params.length===1,50406),new Qf(new et("not",[new et("is_nan",this.expr.params)])).evaluate(t,e)}}class vV{constructor(t){this.expr=t}evaluate(t,e){switch(Ct(this.expr.params.length===1,23123),Pt(this.expr.params[0]).evaluate(t,e).type){case"NULL":return z.newValue(Zn);case"UNSET":case"ERROR":return z.vr();default:return z.newValue(pn)}}}class _V{constructor(t){this.expr=t}evaluate(t,e){return Ct(this.expr.params.length===1,23167),new Qf(new et("not",[new et("is_null",this.expr.params)])).evaluate(t,e)}}class EV{constructor(t){this.expr=t}evaluate(t,e){return Ct(this.expr.params.length===1,5228),Pt(this.expr.params[0]).evaluate(t,e).type==="ERROR"?z.newValue(Zn):z.newValue(pn)}}class TV{constructor(t){this.expr=t}evaluate(t,e){switch(Ct(this.expr.params.length===1,6877),Pt(this.expr.params[0]).evaluate(t,e).type){case"ERROR":return z.vr();case"UNSET":return z.newValue(pn);default:return z.newValue(Zn)}}}class AV{constructor(t){this.expr=t}evaluate(t,e){var a;Ct(this.expr.params.length===3,11706);const s=Pt(this.expr.params[0]).evaluate(t,e);switch(s.type){case"BOOLEAN":return(a=s.value)!=null&&a.booleanValue?Pt(this.expr.params[1]).evaluate(t,e):Pt(this.expr.params[2]).evaluate(t,e);case"NULL":return Pt(this.expr.params[2]).evaluate(t,e);default:return z.vr()}}}class xV{constructor(t){this.expr=t}evaluate(t,e){const s=this.expr.params.map((l=>Pt(l).evaluate(t,e)));let a;for(const l of s)switch(l.type){case"ERROR":case"UNSET":case"NULL":continue;default:a=a===void 0||Jn(l.value,a.value)>0?l:a}return a===void 0?z.Dr():a}}class SV{constructor(t){this.expr=t}evaluate(t,e){const s=this.expr.params.map((l=>Pt(l).evaluate(t,e)));let a;for(const l of s)switch(l.type){case"ERROR":case"UNSET":case"NULL":continue;default:a=a===void 0||Jn(l.value,a.value)<0?l:a}return a===void 0?z.Dr():a}}class Ml{constructor(t){this.expr=t}evaluate(t,e){Ct(this.expr.params.length===2,31033,`${this.expr.name}() function should have exactly 2 params`);const s=Pt(this.expr.params[0]).evaluate(t,e);switch(s.type){case"ERROR":case"UNSET":return z.vr()}const a=Pt(this.expr.params[1]).evaluate(t,e);switch(a.type){case"ERROR":case"UNSET":return z.vr()}return this.Ur(s,a)}}class wV extends Ml{constructor(t){super(t),this.expr=t}Ur(t,e){if(t.Fr()&&e.Fr())return z.newValue(Zn);if(t.Fr()||e.Fr()||ti(t.value)||ti(e.value)||rn(t.value)!==rn(e.value))return z.newValue(pn);switch(ur(t.value,e.value)){case"EQ":return z.newValue(Zn);case"NOT_EQ":return z.newValue(pn);case"NULL":return z.Dr();default:Vt(44615,{left:t,right:e})}}}class bV extends Ml{constructor(t){super(t),this.expr=t}Ur(t,e){switch(ur(t.value,e.value)){case"EQ":return z.newValue(pn);case"NOT_EQ":case"TYPE_MISMATCH":return z.newValue(Zn);case"NULL":return z.Dr();default:Vt(44614,{left:t,right:e})}}}class CV extends Ml{constructor(t){super(t),this.expr=t}Ur(t,e){return rn(t.value)!==rn(e.value)||ti(t.value)||ti(e.value)?z.newValue(pn):z.newValue({booleanValue:Jn(t.value,e.value)<0})}}class RV extends Ml{constructor(t){super(t),this.expr=t}Ur(t,e){return rn(t.value)!==rn(e.value)||ti(t.value)||ti(e.value)?z.newValue(pn):ur(t.value,e.value)==="EQ"?z.newValue(Zn):z.newValue({booleanValue:Jn(t.value,e.value)<0})}}class NV extends Ml{constructor(t){super(t),this.expr=t}Ur(t,e){return rn(t.value)!==rn(e.value)||ti(t.value)||ti(e.value)?z.newValue(pn):z.newValue({booleanValue:Jn(t.value,e.value)>0})}}class DV extends Ml{constructor(t){super(t),this.expr=t}Ur(t,e){return rn(t.value)!==rn(e.value)||ti(t.value)||ti(e.value)?z.newValue(pn):ur(t.value,e.value)==="EQ"?z.newValue(Zn):z.newValue({booleanValue:Jn(t.value,e.value)>0})}}class VV{constructor(t){this.expr=t}evaluate(t,e){throw new Error("Unimplemented")}}class IV{constructor(t){this.expr=t}evaluate(t,e){var a;Ct(this.expr.params.length===1,216);const s=Pt(this.expr.params[0]).evaluate(t,e);switch(s.type){case"NULL":return z.Dr();case"ARRAY":{const l=((a=s.value.arrayValue)==null?void 0:a.values)??[];return z.newValue({arrayValue:{values:[...l].reverse()}})}default:return z.vr()}}}class OV{constructor(t){this.expr=t}evaluate(t,e){return Ct(this.expr.params.length===2,52884),new Lv(ne
1752w et("eq_any",[this.expr.params[1],this.expr.params[0]])).evaluate(t,e)}}class MV{constructor(t){this.expr=t}evaluate(t,e){var m,g,y,_;Ct(this.expr.params.length===2,1392);let s=!1;const a=Pt(this.expr.params[0]).evaluate(t,e);switch(a.type){case"ARRAY":break;case"NULL":s=!0;break;default:return z.vr()}const l=Pt(this.expr.params[1]).evaluate(t,e);switch(l.type){case"ARRAY":break;case"NULL":s=!0;break;default:return z.vr()}if(s)return z.Dr();const c=((g=(m=l.value)==null?void 0:m.arrayValue)==null?void 0:g.values)??[],h=((_=(y=a.value)==null?void 0:y.arrayValue)==null?void 0:_.values)??[];for(const x of c){let R=!1;s=!1;for(const N of h){switch(fi(x)&&fi(N)?"EQ":ur(x,N)){case"EQ":R=!0;break;case"NOT_EQ":case"TYPE_MISMATCH":break;case"NULL":s=!0;break;default:Vt(44613,{value:N,search:x})}if(R)break}if(!R)return z.newValue(pn)}return z.newValue(Zn)}}class PV{constructor(t){this.expr=t}evaluate(t,e){var m,g,y,_;Ct(this.expr.params.length===2,2680);let s=!1;const a=Pt(this.expr.params[0]).evaluate(t,e);switch(a.type){case"ARRAY":break;case"NULL":s=!0;break;default:return z.vr()}const l=Pt(this.expr.params[1]).evaluate(t,e);switch(l.type){case"ARRAY":break;case"NULL":s=!0;break;default:return z.vr()}if(s)return z.Dr();const c=((g=(m=l.value)==null?void 0:m.arrayValue)==null?void 0:g.values)??[],h=((_=(y=a.value)==null?void 0:y.arrayValue)==null?void 0:_.values)??[];for(const x of h)for(const R of c)switch(fi(x)&&fi(R)?"EQ":ur(x,R)){case"EQ":return z.newValue(Zn);case"NOT_EQ":case"TYPE_MISMATCH":break;case"NULL":s=!0;break;default:Vt(44608,{value:x,search:R})}return s?z.Dr():z.newValue(pn)}}class LV{constructor(t){this.expr=t}evaluate(t,e){var a,l,c;Ct(this.expr.params.length===1,38605);const s=Pt(this.expr.params[0]).evaluate(t,e);switch(s.type){case"NULL":return z.Dr();case"ARRAY":return z.newValue({integerValue:`${((c=(l=(a=s.value)==null?void 0:a.arrayValue)==null?void 0:l.values)==null?void 0:c.length)??0}`});default:return z.vr()}}}class kV{constructor(t){this.expr=t}evaluate(t,e){throw new Error("Unimplemented")}}class jV{constructor(t){this.expr=t}evaluate(t,e){var a,l;Ct(this.expr.params.length===1,1508);const s=Pt(this.expr.params[0]).evaluate(t,e);switch(s.type){case"NULL":return z.Dr();case"BYTES":{const c=(a=s.value)==null?void 0:a.bytesValue;if(typeof c=="string"){const h=sn.fromBase64String(c).toUint8Array();return h.reverse(),z.newValue({bytesValue:sn.fromUint8Array(h).toBase64()})}return z.newValue({bytesValue:new Uint8Array(c).reverse()})}case"STRING":{const c=(l=s.value)==null?void 0:l.stringValue,h=new Intl.__PRIVATE_Segmenter(void 0,{granularity:"grapheme"}).segment(c),m=Array.from(h,(g=>g.segment)).reverse();return z.newValue({stringValue:m.join("")})}default:return z.vr()}}}class BV{constructor(t){this.expr=t}evaluate(t,e){throw new Error("Unimplemented")}}class UV{constructor(t){this.expr=t}evaluate(t,e){throw new Error("Unimplemented")}}class zV{constructor(t){this.expr=t}evaluate(t,e){Ct(this.expr.params.length===1,19400);const s=Pt(this.expr.params[0]).evaluate(t,e);switch(s.type){case"NULL":return z.Dr();case"STRING":{const a=(function(c){let h=0;for(let m=0;m<c.length;m++){const g=c.codePointAt(m);if(g===void 0)return;if(g<=65535)if(g>=55296&&g<=57343)if(g<=56319){const y=c.codePointAt(m+1);y!==void 0&&y>=56320&&y<=57343?(h+=1,m++):h+=1}else h+=1;else h+=1;else{if(!(g<=1114111))return;h+=1,m++}}return h})(s.value.stringValue);return a===void 0?z.vr():z.newValue({integerValue:a})}default:return z.vr()}}}class FV{constructor(t){this.expr=t}evaluate(t,e){var a,l;Ct(this.expr.params.length===1,8486);const s=Pt(this.expr.params[0]).evaluate(t,e);switch(s.type){case"BYTES":{const c=(a=s.value)==null?void 0:a.bytesValue;return typeof c=="string"?z.newValue({integerValue:sn.fromBase64String(c).toUint8Array().length}):z.newValue({integerValue:new Uint8Array(c).length})}case"STRING":{const c=(function(m){let g=0;for(let y=0;y<m.length;y++){const _=m.codePointAt(y);if(_===void 0)return;if(_>=55296&&_<=57343){if(!(_<=56319))return;{const x=m.codePointAt(y+1);if(x===void 0||!(x>=56320&&x<=57343))return;g+=4,y++}}else if(_<=127)g+=1;else if(_<=2047)g+=2;else if(_<=65535)g+=3;else{if(!(_<=1114111))return;g+=4,y++}}return g})((l=s.value)==null?void 0:l.stringValue);return c===void 0?z.vr():z.newValue({integerValue:c})}case"NULL":return z.Dr();default:return z.vr()}}}class Pl{constructor(t){this.expr=t}evaluate(t,e){var c,h;Ct(this.expr.params.length===2,39773,`${this.expr.name}() function should have exactly two parameters`);let s=!1;const a=Pt(this.expr.params[0]).evaluate(t,e);switch(a.type){case"STRING":break;case"NULL":s=!0;break;default:return z.vr()}const l=Pt(this.expr.params[1]).evaluate(t,e);switch(l.type){case"STRING":break;case"NULL":s=!0;break;default:return z.vr()}return s?z.Dr():this.kr((c=a.value)==null?void 0:c.stringValue,(h=l.value)==null?void 0:h.stringValue)}}class HV extends Pl{kr(t,e){try{const s=(function(c){let h="";for(let m=0;m<c.length;m++){const g=c.charAt(m);switch(g){case"_":h+=".";break;case"%":h+=".*";break;case"\\":case".":case"*":case"?":case"+":case"^":case"$":case"|":case"(":case")":case"[":case"]":case"{":case"}":h+="\\"+g;break;default:h+=g}}return"^"+h+"$"})(e),a=pc.compile(s);return z.newValue({booleanValue:a.matches(t)})}catch(s){return Zi(`Invalid LIKE pattern converted to regex: ${e}, returning error. Error: ${s}`),z.vr()}}}class qV extends Pl{kr(t,e){try{const s=pc.compile(e);return z.newValue({booleanValue:s.matcher(t).find()})}catch{return Zi(`Invalid regex pattern found in regex_contains: ${e}, returning error`),z.vr()}}}class GV extends Pl{kr(t,e){try{return z.newValue({booleanValue:pc.compile(e).matches(t)})}catch{return Zi(`Invalid regex pattern found in regex_match: ${e}, returning error`),z.vr()}}}class YV extends Pl{kr(t,e){return z.newValue({booleanValue:t.includes(e)})}}class QV extends Pl{kr(t,e){return z.newValue({booleanValue:t.startsWith(e)})}}class KV extends Pl{kr(t,e){return z.newValue({booleanValue:t.endsWith(e)})}}class $V{constructor(t){this.expr=t}evaluate(t,e){var a,l;Ct(this.expr.params.length===1,29079);const s=Pt(this.expr.params[0]).evaluate(t,e);switch(s.type){case"STRING":return z.newValue({stringValue:(l=(a=s.value)==null?void 0:a.stringValue)==null?void 0:l.toLowerCase()});case"NULL":return z.Dr();default:return z.vr()}}}class XV{constructor(t){this.expr=t}evaluate(t,e){var a,l;Ct(this.expr.params.length===1,60487);const s=Pt(this.expr.params[0]).evaluate(t,e);switch(s.type){case"STRING":return z.newValue({stringValue:(l=(a=s.value)==null?void 0:a.stringValue)==null?void 0:l.toUpperCase()});case"NULL":return z.Dr();default:return z.vr()}}}class WV{constructor(t){this.expr=t}evaluate(t,e){var a,l;Ct(this.expr.params.length===1,28544);const s=Pt(this.expr.params[0]).evaluate(t,e);switch(s.type){case"STRING":return z.newValue({stringValue:(l=(a=s.value)==null?void 0:a.stringValue)==null?void 0:l.trim()});case"NULL":return z.Dr();default:return z.vr()}}}class ZV{constructor(t){this.expr=t}evaluate(t,e){const s=this.expr.params.map((c=>Pt(c).evaluate(t,e)));let a="",l=!1;for(const c of s)switch(c.type){case"STRING":a+=c.value.stringValue;break;case"NULL":l=!0;break;default:return z.vr()}return l?z.Dr():z.newValue({stringValue:a})}}class JV{constructor(t){this.expr=t}evaluate(t,e){var c,h,m,g;Ct(this.expr.params.length===2,4483);const s=Pt(this.expr.params[0]).evaluate(t,e);switch(s.type){case"UNSET":return z.Sr();case"MAP":break;default:return z.vr()}const a=Pt(this.expr.params[1]).evaluate(t,e);if(a.type!=="STRING")return z.vr();const l=(g=(h=(c=s.value)==null?void 0:c.mapValue)==null?void 0:h.fields)==null?void 0:g[(m=a.value)==null?void 0:m.stringValue];return l===void 0?z.Sr():z.newValue(l)}}class Dm{constructor(t){this.expr=t}evaluate(t,e){var g,y;
1752Ct(this.expr.params.length===2,25231,`${this.expr.name}() function should have exactly 2 params`);let s=!1;const a=Pt(this.expr.params[0]).evaluate(t,e);switch(a.type){case"VECTOR":break;case"NULL":s=!0;break;default:return z.vr()}const l=Pt(this.expr.params[1]).evaluate(t,e);switch(l.type){case"VECTOR":break;case"NULL":s=!0;break;default:return z.vr()}if(s)return z.Dr();const c=f6(a.value),h=f6(l.value);if(c===void 0||h===void 0||((g=c.values)==null?void 0:g.length)!==((y=h.values)==null?void 0:y.length))return z.vr();const m=this.qr(c,h);return m===void 0||isNaN(m)?z.vr():z.newValue({doubleValue:m})}}class tI extends Dm{qr(t,e){const s=(t==null?void 0:t.values)??[],a=(e==null?void 0:e.values)??[];if(s.length===0)return;let l=0,c=0,h=0;for(let g=0;g<s.length;g++){if(!la(s[g])||!la(a[g]))return;const y=wn(s[g]),_=wn(a[g]);l+=y*_,c+=y*y,h+=_*_}const m=Math.sqrt(c)*Math.sqrt(h);if(m!==0)return 1-Math.max(-1,Math.min(1,l/m))}}class eI extends Dm{qr(t,e){const s=(t==null?void 0:t.values)??[],a=(e==null?void 0:e.values)??[];if(s.length===0)return 0;let l=0;for(let c=0;c<s.length;c++){if(!la(s[c])||!la(a[c]))return;l+=wn(s[c])*wn(a[c])}return l}}class nI extends Dm{qr(t,e){const s=(t==null?void 0:t.values)??[],a=(e==null?void 0:e.values)??[];if(s.length===0)return 0;let l=0;for(let c=0;c<s.length;c++){if(!la(s[c])||!la(a[c]))return;const h=wn(s[c]),m=wn(a[c]);l+=Math.pow(h-m,2)}return Math.sqrt(l)}}class iI{constructor(t){this.expr=t}evaluate(t,e){var a;Ct(this.expr.params.length===1,39044);const s=Pt(this.expr.params[0]).evaluate(t,e);switch(s.type){case"VECTOR":{const l=f6(s.value);return z.newValue({integerValue:((a=l==null?void 0:l.values)==null?void 0:a.length)??0})}case"NULL":return z.Dr();default:return z.vr()}}}const Rc=BigInt(-62135596800),Nc=BigInt(253402300799),Af=BigInt(1e3),ea=BigInt(1e6),sI=Rc*Af,rI=Nc*Af+BigInt(999),aI=Rc*ea,oI=Nc*ea+BigInt(999999);function Vm(n){return n>=aI&&n<=oI}function kv(n){return n>=Rc&&n<=Nc}function Dc(n,t){const e=BigInt(n);return!(e<Rc||e>Nc)&&!(t<0||t>=1e9)&&(e!==Rc||t===0)&&!(e===Nc&&t>999999999)}function jv(n,t){return t<0?{seconds:n-1,nanos:t+1e9}:{seconds:n,nanos:t}}function Im(n){return BigInt(n.seconds)*ea+BigInt(Math.trunc(n.nanoseconds/1e3))}class Om{constructor(t){this.expr=t}evaluate(t,e){Ct(this.expr.params.length===1,49262,`${this.expr.name}() function should have exactly one parameter`);const s=Pt(this.expr.params[0]).evaluate(t,e);switch(s.type){case"INT":return this.toTimestamp(BigInt(s.value.integerValue));case"NULL":return z.Dr();default:return z.vr()}}}class lI extends Om{toTimestamp(t){if(!Vm(t))return z.vr();let e=Number(t/ea),s=Number(t%ea*BigInt(1e3));const a=jv(e,s);return e=a.seconds,s=a.nanos,Dc(e,s)?z.newValue({timestampValue:{seconds:e,nanos:s}}):z.vr()}}class uI extends Om{toTimestamp(t){if(!(function(c){return c>=sI&&c<=rI})(t))return z.vr();let e=Number(t/Af),s=Number(t%Af*BigInt(1e6));const a=jv(e,s);return e=a.seconds,s=a.nanos,Dc(e,s)?z.newValue({timestampValue:{seconds:e,nanos:s}}):z.vr()}}class cI extends Om{toTimestamp(t){if(!kv(t))return z.vr();const e=Number(t);return z.newValue({timestampValue:{seconds:e,nanos:0}})}}class Mm{constructor(t){this.expr=t}evaluate(t,e){Ct(this.expr.params.length===1,1265,`${this.expr.name}() function should have exactly one parameter`);const s=Pt(this.expr.params[0]).evaluate(t,e);switch(s.type){case"TIMESTAMP":break;case"NULL":return z.Dr();default:return z.vr()}const a=vm(s.value.timestampValue);return Dc(a.seconds,a.nanoseconds)?this.$r(a):z.vr()}}class hI extends Mm{$r(t){const e=Im(t);return Vm(e)?z.newValue({integerValue:`${e.toString()}`}):z.vr()}}class fI extends Mm{$r(t){const e=Im(t),s=e/BigInt(1e3),a=e%BigInt(1e3);return s>BigInt(0)||a===BigInt(0)?z.newValue({integerValue:s.toString()}):z.newValue({integerValue:(s-BigInt(1)).toString()})}}class dI extends Mm{$r(t){const e=BigInt(t.seconds);return kv(e)?z.newValue({integerValue:e.toString()}):z.vr()}}class Bv{constructor(t){this.expr=t}evaluate(t,e){Ct(this.expr.params.length===3,2775,`${this.expr.name}() function should have exactly 3 parameters`);let s=!1;const a=Pt(this.expr.params[0]).evaluate(t,e);switch(a.type){case"TIMESTAMP":break;case"NULL":s=!0;break;default:return z.vr()}const l=Pt(this.expr.params[1]).evaluate(t,e);let c;switch(l.type){case"STRING":if(c=(function(tt){switch(tt){case"microsecond":return"microsecond";case"millisecond":return"millisecond";case"second":return"second";case"minute":return"minute";case"hour":return"hour";case"day":return"day";default:return}})(l.value.stringValue),c===void 0)return z.vr();break;case"NULL":s=!0;break;default:return z.vr()}const h=Pt(this.expr.params[2]).evaluate(t,e);switch(h.type){case"INT":break;case"NULL":s=!0;break;default:return z.vr()}if(s)return z.Dr();
vendor: 4,760 bytes, lines 1752-1767
1752const m=BigInt(h.value.integerValue);let g;try{switch(c){case"microsecond":g=m;break;case"millisecond":g=m*BigInt(1e3);break;case"second":g=m*BigInt(1e6);break;case"minute":g=m*BigInt(6e7);break;case"hour":g=m*BigInt(36e8);break;case"day":g=m*BigInt(864e8);break;default:return z.vr()}if(c!=="microsecond"&&m!==BigInt(0)&&g/m!==BigInt(this.Kr(c)))return z.vr()}catch(q){return Zi(`Error during timestamp arithmetic: ${q}`),z.vr()}const y=vm(a.value.timestampValue);if(!Dc(y.seconds,y.nanoseconds))return z.vr();const _=Im(y),x=this.Wr(_,g);if(!Vm(x))return z.vr();const R=Number(x/ea),N=x%ea,j=Number((N<0?N+ea:N)*BigInt(1e3)),F=N<0?R-1:R;return Dc(F,j)?z.newValue({timestampValue:{seconds:F,nanos:j}}):z.vr()}Kr(t){switch(t){case"millisecond":return 1e3;case"second":return 1e6;case"minute":return 6e7;case"hour":return 36e8;case"day":return 864e8;default:return 1}}}class mI extends Bv{Wr(t,e){return t+e}}class pI extends Bv{Wr(t,e){return t-e}}function Vc(n){if((n=Pv(n))instanceof Il)return`fld(${n.fieldName})`;if(n instanceof Ol)return`cst(${(function(e){return e===null?"null":typeof e=="number"?e.toString():typeof e=="string"?`"${e}"`:e instanceof Ue?`ref(${e.path})`:e instanceof Wn?`vec(${JSON.stringify(e)})`:JSON.stringify(e)})(n.value)})`;if(n instanceof et)return`fn(${n.name},[${n.params.map(Vc).join(",")}])`;if(n.expressionType==="ListOfExpressions")return`list([${n.Rr.map(Vc).join(",")}])`;throw new Error(`Unrecognized expr ${JSON.stringify(n,null,2)}`)}function gI(n){if(n instanceof Iv)return`${n._name}(${Ih(n.fields)})`;if(n instanceof Ov){let t=`${n._name}(${Ih(n.accumulators)})`;return n.groups.size>0&&(t+=`grouping(${Ih(n.groups)})`),t}if(n instanceof Mv)return`${n._name}(${Ih(n.groups)})`;if(n instanceof Hf)return`${n._name}(${n.Vr})`;if(n instanceof qf)return`${n._name}(${n.collectionId})`;if(n instanceof wm)return`${n._name}()`;if(n instanceof bm)return`${n._name}(${n.dr.sort()})`;if(n instanceof Gf)return`${n._name}(${Vc(n.condition)})`;if(n instanceof oo)return`${n._name}(${n.limit})`;if(n instanceof ir)return`${n._name}(${(function(e){return e.map((s=>`${Vc(s.expr)}${s.direction}`)).join(",")})(n.orderings)})`;throw new Error(`Unrecognized stage ${n._name}`)}function Ih(n){return`${Array.from(n.entries()).sort().map((([t,e])=>`${t}=${Vc(e)}`)).join(",")}`}function ar(n){return n.stages.map((t=>gI(t))).join("|")}function Uv(n,t){return ar(n)===ar(t)}function cn(n){return n instanceof Bn}function a9(n){return cn(n)?ar(n):sc(n)}function zv(n){return cn(n)?ar(n):(function(e){return`${Zy(Ns(e))}|lt:${e.limitType}`})(n)}function Kf(n,t){return n instanceof Bn&&t instanceof Bn?Uv(n,t):!(n instanceof Bn&&!(t instanceof Bn)||!(n instanceof Bn)&&t instanceof Bn)&&FN(n,t)}function Fv(n){return $a(n)?ar(n):Zy(n)}function Hv(n,t){return n instanceof Bn&&t instanceof Bn?Uv(n,t):!(n instanceof Bn&&!(t instanceof Bn)||!(n instanceof Bn)&&t instanceof Bn)&&Jy(n,t)}function yI(n,t){const e=(function(a){let l=!1;const c=[];for(const h of a)if(h instanceof ir)if(l=!0,h.orderings.some((m=>m.expr instanceof Il&&m.expr.fieldName===ws)))c.push(h);else{const m=h.orderings.map((g=>g));m.push(Kh(ws).ascending()),c.push(new ir(m,{}))}else h instanceof oo&&(l||(c.push(new ir([Kh(ws).ascending()],{})),l=!0)),c.push(h);return l||c.push(new ir([Kh(ws).ascending()],{})),c})(n.stages);if(n.userDataReader){const s=n.userDataReader.createContext(3,"toCorePipeline");e.forEach((a=>a._readUserData(s)))}return new Bn(n.userDataReader.serializer,e,t)}/** 1753 * @license 1754 * Copyright 2017 Google LLC 1755 * 1756 * Licensed under the Apache License, Version 2.0 (the "License"); 1757 * you may not use this file except in compliance with the License. 1758 * You may obtain a copy of the License at 1759 * 1760 * http://www.apache.org/licenses/LICENSE-2.0 1761 * 1762 * Unless required by applicable law or agreed to in writing, software 1763 * distributed under the License is distributed on an "AS IS" BASIS, 1764 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1765 * See the License for the specific language governing permissions and 1766 * limitations under the License. 1767 */class vI{constructor(t,e,s,a){this.batchId=t,this.localWriteTime=e,this.baseMutations=s,this.mutations=a}applyToRemoteDocument(t,e){const s=e.mutationResults;for(let a=0;a<this.mutations.length;a++){const l=this.mutations[a];l.key.isEqual(t.key)&&wN(l,t,s[a])}}applyToLocalView(t,e){for(const s of this.baseMutations)s.key.isEqual(t.key)&&(e=nc(s,t,e,this.localWriteTime));for(const s of this.mutations)s.key.isEqual(t.key)&&(e=nc(s,t,e,this.localWriteTime));return e}applyToLocalDocumentSet(t,e){const s=rv();return this.mutations.forEach((a=>{const l=t.get(a.key),c=l.overlayedDocument;let h=this.applyToLocalView(c,l.mutatedFields);h=e.has(a.key)?null:h;const m=qy(c,h);
1767m!==null&&s.set(a.key,m),c.isValidDocument()||c.convertToNoDocument(Bt.min())})),s}keys(){return this.mutations.reduce(((t,e)=>t.add(e.key)),$t())}isEqual(t){return this.batchId===t.batchId&&pl(this.mutations,t.mutations,((e,s)=>j8(e,s)))&&pl(this.baseMutations,t.baseMutations,((e,s)=>j8(e,s)))}}class Pm{constructor(t,e,s,a){this.batch=t,this.commitVersion=e,this.mutationResults=s,this.docVersions=a}static from(t,e,s){Ct(t.mutations.length===s.length,58842,{Qr:t.mutations.length,Gr:s.length});let a=(function(){return QN})();const l=t.mutations;for(let c=0;c<l.length;c++)a=a.insert(l[c].key,s[c].version);return new Pm(t,e,s,a)}}/** 1768 * @license 1769 * Copyright 2022 Google LLC 1770 * 1771 * Licensed under the Apache License, Version 2.0 (the "License"); 1772 * you may not use this file except in compliance with the License. 1773 * You may obtain a copy of the License at 1774 * 1775 * http://www.apache.org/licenses/LICENSE-2.0 1776 * 1777 * Unless required by applicable law or agreed to in writing, software 1778 * distributed under the License is distributed on an "AS IS" BASIS, 1779 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1780 * See the License for the specific language governing permissions and 1781 * limitations under the License. 1782 */class _I{constructor(t,e){this.largestBatchId=t,this.mutation=e}getKey(){return this.mutation.key}isEqual(t){return t!==null&&this.mutation===t.mutation}toString(){return`Overlay{ 1783 largestBatchId: ${this.largestBatchId}, 1784 mutation: ${this.mutation.toString()} 1785 }`}}/** 1786 * @license 1787 * Copyright 2017 Google LLC 1788 * 1789 * Licensed under the Apache License, Version 2.0 (the "License"); 1790 * you may not use this file except in compliance with the License. 1791 * You may obtain a copy of the License at 1792 * 1793 * http://www.apache.org/licenses/LICENSE-2.0 1794 * 1795 * Unless required by applicable law or agreed to in writing, software 1796 * distributed under the License is distributed on an "AS IS" BASIS, 1797 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1798 * See the License for the specific language governing permissions and 1799 * limitations under the License. 1800 */class sr{constructor(t,e,s,a,l=Bt.min(),c=Bt.min(),h=sn.EMPTY_BYTE_STRING,m=null){this.target=t,this.targetId=e,this.purpose=s,this.sequenceNumber=a,this.snapshotVersion=l,this.lastLimboFreeSnapshotVersion=c,this.resumeToken=h,this.expectedCount=m}withSequenceNumber(t){return new sr(this.target,this.targetId,this.purpose,t,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(t,e){return new sr(this.target,this.targetId,this.purpose,this.sequenceNumber,e,this.lastLimboFreeSnapshotVersion,t,null)}withExpectedCount(t){return new sr(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,t)}withLastLimboFreeSnapshotVersion(t){return new sr(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,t,this.resumeToken,this.expectedCount)}}/** 1801 * @license 1802 * Copyright 2017 Google LLC 1803 * 1804 * Licensed under the Apache License, Version 2.0 (the "License"); 1805 * you may not use this file except in compliance with the License. 1806 * You may obtain a copy of the License at 1807 * 1808 * http://www.apache.org/licenses/LICENSE-2.0 1809 * 1810 * Unless required by applicable law or agreed to in writing, software 1811 * distributed under the License is distributed on an "AS IS" BASIS, 1812 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1813 * See the License for the specific language governing permissions and 1814 * limitations under the License. 1815 */class EI{constructor(t){this.zr=t}}function TI(n){const t=cD({parent:n.parent,structuredQuery:n.structuredQuery});return n.limitType==="LAST"?p6(t,t.limit,"L"):t}/** 1816 * @license 1817 * Copyright 2019 Google LLC 1818 * 1819 * Licensed under the Apache License, Version 2.0 (the "License"); 1820 * you may not use this file except in compliance with the License. 1821 * You may obtain a copy of the License at 1822 * 1823 * http://www.apache.org/licenses/LICENSE-2.0 1824 * 1825 * Unless required by applicable law or agreed to in writing, softw
1825are 1826 * distributed under the License is distributed on an "AS IS" BASIS, 1827 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1828 * See the License for the specific language governing permissions and 1829 * limitations under the License. 1830 */class AI{constructor(){this.Hi=new xI}addToCollectionParentIndex(t,e){return this.Hi.add(e),lt.resolve()}getCollectionParents(t,e){return lt.resolve(this.Hi.getEntries(e))}addFieldIndex(t,e){return lt.resolve()}deleteFieldIndex(t,e){return lt.resolve()}deleteAllFieldIndexes(t){return lt.resolve()}createTargetIndexes(t,e){return lt.resolve()}getDocumentsMatchingTarget(t,e){return lt.resolve(null)}getIndexType(t,e){return lt.resolve(0)}getFieldIndexes(t,e){return lt.resolve([])}getNextCollectionGroupToUpdate(t){return lt.resolve(null)}getMinOffset(t,e){return lt.resolve(ra.min())}getMinOffsetFromCollectionGroup(t,e){return lt.resolve(ra.min())}updateCollectionGroup(t,e,s){return lt.resolve()}updateIndexEntries(t,e){return lt.resolve()}}class xI{constructor(){this.index={}}add(t){const e=t.lastSegment(),s=t.popLast(),a=this.index[e]||new nn(ue.comparator),l=!a.has(s);return this.index[e]=a.add(s),l}has(t){const e=t.lastSegment(),s=t.popLast(),a=this.index[e];return a&&a.has(s)}getEntries(t){return(this.index[t]||new nn(ue.comparator)).toArray()}}/** 1831 * @license 1832 * Copyright 2017 Google LLC 1833 * 1834 * Licensed under the Apache License, Version 2.0 (the "License"); 1835 * you may not use this file except in compliance with the License. 1836 * You may obtain a copy of the License at 1837 * 1838 * http://www.apache.org/licenses/LICENSE-2.0 1839 * 1840 * Unless required by applicable law or agreed to in writing, software 1841 * distributed under the License is distributed on an "AS IS" BASIS, 1842 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1843 * See the License for the specific language governing permissions and 1844 * limitations under the License. 1845 */class ha{constructor(t){this.Ds=t}next(){return this.Ds+=2,this.Ds}static xs(){return new ha(0)}static Cs(){return new ha(-1)}}// Copyright 2024 Google LLC* @license 1846function qv(n,t){var s;let e=t;for(const a of n.stages)e=wI({serializer:n.serializer,serverTimestampBehavior:(s=n.listenOptions)==null?void 0:s.serverTimestampBehavior},a,e);return e}function $f(n,t){return qv(n,[t]).length>0}function SI(n,t){return cn(n)?$f(n,t):Uf(n,t)}function wI(n,t,e){if(t instanceof Hf)return(function(a,l,c){return c.filter((h=>h.isFoundDocument()&&`/${h.key.getCollectionPath().canonicalString()}`===l.Vr))})(0,t,e);if(t instanceof Gf)return(function(a,l,c){return c.filter((h=>{const m=oc(Pt(l.condition).evaluate(a,h));return m!==void 0&&Vi(m,Zn)}))})(n,t,e);if(t instanceof qf)return(function(a,l,c){return c.filter((h=>h.isFoundDocument()&&h.key.getCollectionPath().lastSegment()===l.collectionId))})(0,t,e);if(t instanceof wm)return(function(a,l,c){return c.filter((h=>h.isFoundDocument()))})(0,0,e);if(t instanceof bm)return(function(a,l,c){return c.filter((h=>h.isFoundDocument()&&l.mr.has(h.key.path.toStringWithLeadingSlash())))})(0,t,e);if(t instanceof oo)return(function(a,l,c){return c.slice(0,l.limit)})(0,t,e);if(t instanceof ir)return(function(a,l,c){const h=l.orderings.map((m=>({ks:Pt(m.expr),direction:m.direction})));return[...c].sort(((m,g)=>{for(const{ks:y,direction:_}of h){const x=oc(y.evaluate(a,m)),R=oc(y.evaluate(a,g)),N=Jn(x??yl,R??yl);if(N!==0)return _==="ascending"?N:-N}return 0}))})(n,t,e);throw new Error(`Unknown stage: ${t._name}`)}function x6(n){const t=(function(s){for(let a=s.stages.length-1;a>=0;a--){const l=s.stages[a];if(l instanceof ir)return l.orderings}throw new Error("Pipeline must contain at least one Sort stage")})(n);return(e,s)=>{for(const a of t){const l=oc(Pt(a.expr).evaluate({serializer:n.serializer},e)),c=oc(Pt(a.expr).evaluate({serializer:n.serializer},s)),h=Jn(l||yl,c||yl);if(h!==0)return a.direction==="ascending"?h:-h}return 0}}function R0(n){for(let t=n.stages.length-1;t>=0;t--){const e=n.stages[t];if(e instanceof oo)return{limit:e.limit}}}/** 1847 * @license 1848 * Copyright 2017 Google LLC 1849 * 1850 * Licensed under the Apache License, Version 2.0 (the "License");
1851 * you may not use this file except in compliance with the License. 1852 * You may obtain a copy of the License at 1853 * 1854 * http://www.apache.org/licenses/LICENSE-2.0 1855 * 1856 * Unless required by applicable law or agreed to in writing, software 1857 * distributed under the License is distributed on an "AS IS" BASIS, 1858 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1859 * See the License for the specific language governing permissions and 1860 * limitations under the License. 1861 */class bI{constructor(){this.changes=new co((t=>t.toString()),((t,e)=>t.isEqual(e))),this.changesApplied=!1}addEntry(t){this.assertNotApplied(),this.changes.set(t.key,t)}removeEntry(t,e){this.assertNotApplied(),this.changes.set(t,Vn.newInvalidDocument(t).setReadTime(e))}getEntry(t,e){this.assertNotApplied();const s=this.changes.get(e);return s!==void 0?lt.resolve(s):this.getFromCache(t,e)}getEntries(t,e){return this.getAllFromCache(t,e)}apply(t){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(t)}assertNotApplied(){}}/** 1862 * @license 1863 * Copyright 2017 Google LLC 1864 * 1865 * Licensed under the Apache License, Version 2.0 (the "License"); 1866 * you may not use this file except in compliance with the License. 1867 * You may obtain a copy of the License at 1868 * 1869 * http://www.apache.org/licenses/LICENSE-2.0 1870 * 1871 * Unless required by applicable law or agreed to in writing, software 1872 * distributed under the License is distributed on an "AS IS" BASIS, 1873 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1874 * See the License for the specific language governing permissions and 1875 * limitations under the License. 1876 *//** 1877 * @license 1878 * Copyright 2022 Google LLC 1879 * 1880 * Licensed under the Apache License, Version 2.0 (the "License"); 1881 * you may not use this file except in compliance with the License. 1882 * You may obtain a copy of the License at 1883 * 1884 * http://www.apache.org/licenses/LICENSE-2.0 1885 * 1886 * Unless required by applicable law or agreed to in writing, software 1887 * distributed under the License is distributed on an "AS IS" BASIS, 1888 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1889 * See the License for the specific language governing permissions and 1890 * limitations under the License. 1891 */class CI{constructor(t,e){this.overlayedDocument=t,this.mutatedFields=e}}/** 1892 * @license 1893 * Copyright 2017 Google LLC 1894 * 1895 * Licensed under the Apache License, Version 2.0 (the "License"); 1896 * you may not use this file except in compliance with the License. 1897 * You may obtain a copy of the License at 1898 * 1899 * http://www.apache.org/licenses/LICENSE-2.0 1900 * 1901 * Unless required by applicable law or agreed to in writing, software 1902 * distributed under the License is distributed on an "AS IS" BASIS, 1903 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1904 * See the License for the specific language governing permissions and 1905 * limitations under the License. 1906 */class RI{constructor(t,e,s,a){this.remoteDocumentCache=t,this.mutationQueue=e,this.documentOverlayCache=s,this.indexManager=a}getDocument(t,e){let s=null;return this.documentOverlayCache.getOverlay(t,e).next((a=>(s=a,this.remoteDocumentCache.getEntry(t,e)))).next((a=>(s!==null&&nc(s.mutation,a,Xi.empty(),Se.now()),a)))}getDocuments(t,e){return this.remoteDocumentCache.getEntries(t,e).next((s=>this.getLocalViewOfDocuments(t,s,$t()).next((()=>s))))}getLocalViewOfDocuments(t,e,s=$t()){const a=Qr();return this.populateOverlays(t,a,e).next((()=>this.computeViews(t,e,a,s).next((l=>{let c=il();return l.forEach(((h,m)=>{c=c.insert(h,m.overlayedDocument)})),c}))))}getOverlayedDocuments(t,e){const s=Qr();return this.populateOverlays(t,s,e).next((()=>this.computeViews(t,e,s,$t())))}populateOverlays(t,e,s){const a=[];return s.forEach((l=>{e.has(l)||a.push(l)})),this.documentOverlayCache.getOverlays(t,a).next((l=>{l.forEach(((c,h)=>{e.set(c,h)}))}))}computeViews(t,e,s,a){let l=Xn();const c=rc(),h=(function(){return rc()})();return e.forEach(((m,g)=>{const y=s.get(g.key);a.has(g.key)&&(y===void 0||y.mutation instanceof uo)?l=l.insert(g.key,g):y!==void 0?(c.set(g.key,y.mutation.getFieldMask()),nc(y.mutation,g,y.mutation.getFieldMask(),Se.now())):c.set(g.key,Xi.empty())})),this.recalculateAndSaveOverlays(t,l).next((m=>(m.forEach(((g,y)=>c.set(g,y))),e.forEach(((g,y)=>h.set(g,new CI(y,c.get(g)??null)))),h)))}recalculateAndSaveOverlays(t,e){const s=rc();let a=new Ce(((c,h)=>c-h)),l=$t();
vendor: 4,251 bytes, lines 1906-1910
1906return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(t,e).next((c=>{for(const h of c)h.keys().forEach((m=>{const g=e.get(m);if(g===null)return;let y=s.get(m)||Xi.empty();y=h.applyToLocalView(g,y),s.set(m,y);const _=(a.get(h.batchId)||$t()).add(m);a=a.insert(h.batchId,_)}))})).next((()=>{const c=[],h=a.getReverseIterator();for(;h.hasNext();){const m=h.getNext(),g=m.key,y=m.value,_=rv();y.forEach((x=>{if(!l.has(x)){const R=qy(e.get(x),s.get(x));R!==null&&_.set(x,R),l=l.add(x)}})),c.push(this.documentOverlayCache.saveOverlays(t,g,_))}return lt.waitFor(c)})).next((()=>s))}recalculateAndSaveOverlaysForDocumentKeys(t,e){return this.remoteDocumentCache.getEntries(t,e).next((s=>this.recalculateAndSaveOverlays(t,s)))}getDocumentsMatchingQuery(t,e,s,a){return cn(e)?this.getDocumentsMatchingPipeline(t,e,s,a):BN(e)?this.getDocumentsMatchingDocumentQuery(t,e.path):ev(e)?this.getDocumentsMatchingCollectionGroupQuery(t,e,s,a):this.getDocumentsMatchingCollectionQuery(t,e,s,a)}getNextDocuments(t,e,s,a){return this.remoteDocumentCache.getAllFromCollectionGroup(t,e,s,a).next((l=>{const c=a-l.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(t,e,s.largestBatchId,a-l.size):lt.resolve(Qr());let h=gc,m=l;return c.next((g=>lt.forEach(g,((y,_)=>(h<_.largestBatchId&&(h=_.largestBatchId),l.get(y)?lt.resolve():this.remoteDocumentCache.getEntry(t,y).next((x=>{m=m.insert(y,x)}))))).next((()=>this.populateOverlays(t,g,l))).next((()=>this.computeViews(t,m,g,$t()))).next((y=>({batchId:h,changes:sv(y)})))))}))}getDocumentsMatchingDocumentQuery(t,e){return this.getDocument(t,new Nt(e)).next((s=>{let a=il();return s.isFoundDocument()&&(a=a.insert(s.key,s)),a}))}getDocumentsMatchingCollectionGroupQuery(t,e,s,a){const l=e.collectionGroup;let c=il();return this.indexManager.getCollectionParents(t,l).next((h=>lt.forEach(h,(m=>{const g=(function(_,x){return new Dl(x,null,_.explicitOrderBy.slice(),_.filters.slice(),_.limit,_.limitType,_.startAt,_.endAt)})(e,m.child(l));return this.getDocumentsMatchingCollectionQuery(t,g,s,a).next((y=>{y.forEach(((_,x)=>{c=c.insert(_,x)}))}))})).next((()=>c))))}getDocumentsMatchingCollectionQuery(t,e,s,a){let l;return this.documentOverlayCache.getOverlaysForCollection(t,e.path,s.largestBatchId).next((c=>(l=c,this.remoteDocumentCache.getDocumentsMatchingQuery(t,e,s,l,a)))).next((c=>this.retrieveMatchingLocalDocuments(l,c,(h=>Uf(e,h)))))}getDocumentsMatchingPipeline(t,e,s,a){if(ta(e)==="collection_group"){const l=Rm(e);let c=il();return this.indexManager.getCollectionParents(t,l).next((h=>lt.forEach(h,(m=>{const g=(function(_,x){const R=_.stages.map((N=>N instanceof qf?new Hf(x.canonicalString(),{}):N));return new Bn(_.serializer,R)})(e,m.child(l));return this.getDocumentsMatchingPipeline(t,g,s,a).next((y=>{y.forEach(((_,x)=>{c=c.insert(_,x)}))}))})).next((()=>c))))}{let l;return this.getOverlaysForPipeline(t,e,s.largestBatchId).next((c=>{switch(l=c,ta(e)){case"collection":return this.remoteDocumentCache.getDocumentsMatchingQuery(t,e,s,l,a);case"documents":let h=$t();for(const m of A6(e))h=h.add(Nt.fromPath(m));return this.remoteDocumentCache.getEntries(t,h);case"database":return this.remoteDocumentCache.getAllEntries(t);default:throw new vt("invalid-argument",`Invalid pipeline source to execute offline: ${ar(e)}`)}})).next((c=>this.retrieveMatchingLocalDocuments(l,c,(h=>$f(e,h)))))}}retrieveMatchingLocalDocuments(t,e,s){t.forEach(((l,c)=>{const h=c.getKey();e.get(h)===null&&(e=e.insert(h,Vn.newInvalidDocument(h)))}));let a=il();return e.forEach(((l,c)=>{const h=t.get(l);h!==void 0&&nc(h.mutation,c,Xi.empty(),Se.now()),s(c)&&(a=a.insert(l,c))})),a}getOverlaysForPipeline(t,e,s){switch(ta(e)){case"collection":return this.documentOverlayCache.getOverlaysForCollection(t,ue.fromString(Yf(e)),s);case"collection_group":throw new vt("invalid-argument",`Unexpected collection group pipeline: ${ar(e)}`);case"documents":return this.documentOverlayCache.getOverlays(t,A6(e).map((a=>Nt.fromPath(a))));case"database":return this.documentOverlayCache.getAllOverlays(t,s);default:throw new vt("invalid-argument",`Failed to get overlays for pipeline: ${ar(e)}`)}}}/** 1907 * @license 1908 * Copyright 2020 Google LLC 1909 * 1910 * Licensed under the Apache License, Version 2.0 (the "License");
1911 * you may not use this file except in compliance with the License. 1912 * You may obtain a copy of the License at 1913 * 1914 * http://www.apache.org/licenses/LICENSE-2.0 1915 * 1916 * Unless required by applicable law or agreed to in writing, software 1917 * distributed under the License is distributed on an "AS IS" BASIS, 1918 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1919 * See the License for the specific language governing permissions and 1920 * limitations under the License. 1921 */class NI{constructor(t){this.serializer=t,this.Hs=new Map,this.Js=new Map}getBundleMetadata(t,e){return lt.resolve(this.Hs.get(e))}saveBundleMetadata(t,e){return this.Hs.set(e.id,(function(a){return{id:a.id,version:a.version,createTime:Ds(a.createTime)}})(e)),lt.resolve()}getNamedQuery(t,e){return lt.resolve(this.Js.get(e))}saveNamedQuery(t,e){return this.Js.set(e.name,(function(a){return{name:a.name,query:TI(a.bundledQuery),readTime:Ds(a.readTime)}})(e)),lt.resolve()}}/** 1922 * @license 1923 * Copyright 2022 Google LLC 1924 * 1925 * Licensed under the Apache License, Version 2.0 (the "License"); 1926 * you may not use this file except in compliance with the License. 1927 * You may obtain a copy of the License at 1928 * 1929 * http://www.apache.org/licenses/LICENSE-2.0 1930 * 1931 * Unless required by applicable law or agreed to in writing, software 1932 * distributed under the License is distributed on an "AS IS" BASIS, 1933 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1934 * See the License for the specific language governing permissions and 1935 * limitations under the License. 1936 */class DI{constructor(){this.overlays=new Ce(Nt.comparator),this.Ys=new Map}getOverlay(t,e){return lt.resolve(this.overlays.get(e))}getOverlays(t,e){const s=Qr();return lt.forEach(e,(a=>this.getOverlay(t,a).next((l=>{l!==null&&s.set(a,l)})))).next((()=>s))}getAllOverlays(t,e){const s=Qr();return this.overlays.forEach(((a,l)=>{l.largestBatchId>e&&s.set(a,l)})),lt.resolve(s)}saveOverlays(t,e,s){return s.forEach(((a,l)=>{this.Hr(t,e,l)})),lt.resolve()}removeOverlaysForBatchId(t,e,s){const a=this.Ys.get(s);return a!==void 0&&(a.forEach((l=>this.overlays=this.overlays.remove(l))),this.Ys.delete(s)),lt.resolve()}getOverlaysForCollection(t,e,s){const a=Qr(),l=e.length+1,c=new Nt(e.child("")),h=this.overlays.getIteratorFrom(c);for(;h.hasNext();){const m=h.getNext().value,g=m.getKey();if(!e.isPrefixOf(g.path))break;g.path.length===l&&m.largestBatchId>s&&a.set(m.getKey(),m)}return lt.resolve(a)}getOverlaysForCollectionGroup(t,e,s,a){let l=new Ce(((g,y)=>g-y));const c=this.overlays.getIterator();for(;c.hasNext();){const g=c.getNext().value;if(g.getKey().getCollectionGroup()===e&&g.largestBatchId>s){let y=l.get(g.largestBatchId);y===null&&(y=Qr(),l=l.insert(g.largestBatchId,y)),y.set(g.getKey(),g)}}const h=Qr(),m=l.getIterator();for(;m.hasNext()&&(m.getNext().value.forEach(((g,y)=>h.set(g,y))),!(h.size()>=a)););return lt.resolve(h)}Hr(t,e,s){const a=this.overlays.get(s.key);if(a!==null){const c=this.Ys.get(a.largestBatchId).delete(s.key);this.Ys.set(a.largestBatchId,c)}this.overlays=this.overlays.insert(s.key,new _I(e,s));let l=this.Ys.get(e);l===void 0&&(l=$t(),this.Ys.set(e,l)),this.Ys.set(e,l.add(s.key))}}/** 1937 * @license 1938 * Copyright 2024 Google LLC 1939 * 1940 * Licensed under the Apache License, Version 2.0 (the "License"); 1941 * you may not use this file except in compliance with the License. 1942 * You may obtain a copy of the License at 1943 * 1944 * http://www.apache.org/licenses/LICENSE-2.0 1945 * 1946 * Unless required by applicable law or agreed to in writing, software 1947 * distributed under the License is distributed on an "AS IS" BASIS, 1948 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1949 * See the License for the specific language governing permissions and 1950 * limitations under the License. 1951 */class VI{constructor(){this.sessionToken=sn.EMPTY_BYTE_STRING}getSessionToken(t){return lt.resolve(this.sessionToken)}setSessionToken(t,e){return this.sessionToken=e,lt.resolve()}}/** 1952 * @license 1953 * Copyright 2017 Google LLC 1954 * 1955 * Licensed under the Apache License, Version 2.0 (the "License");
1956 * you may not use this file except in compliance with the License. 1957 * You may obtain a copy of the License at 1958 * 1959 * http://www.apache.org/licenses/LICENSE-2.0 1960 * 1961 * Unless required by applicable law or agreed to in writing, software 1962 * distributed under the License is distributed on an "AS IS" BASIS, 1963 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1964 * See the License for the specific language governing permissions and 1965 * limitations under the License. 1966 */class Lm{constructor(){this.Zs=new nn(mn.Xs),this.e_=new nn(mn.t_)}isEmpty(){return this.Zs.isEmpty()}addReference(t,e){const s=new mn(t,e);this.Zs=this.Zs.add(s),this.e_=this.e_.add(s)}n_(t,e){t.forEach((s=>this.addReference(s,e)))}removeReference(t,e){this.r_(new mn(t,e))}i_(t,e){t.forEach((s=>this.removeReference(s,e)))}s_(t){const e=new Nt(new ue([])),s=new mn(e,t),a=new mn(e,t+1),l=[];return this.e_.forEachInRange([s,a],(c=>{this.r_(c),l.push(c.key)})),l}__(){this.Zs.forEach((t=>this.r_(t)))}r_(t){this.Zs=this.Zs.delete(t),this.e_=this.e_.delete(t)}o_(t){const e=new Nt(new ue([])),s=new mn(e,t),a=new mn(e,t+1);let l=$t();return this.e_.forEachInRange([s,a],(c=>{l=l.add(c.key)})),l}containsKey(t){const e=new mn(t,0),s=this.Zs.firstAfterOrEqual(e);return s!==null&&t.isEqual(s.key)}}class mn{constructor(t,e){this.key=t,this.a_=e}static Xs(t,e){return Nt.comparator(t.key,e.key)||Zt(t.a_,e.a_)}static t_(t,e){return Zt(t.a_,e.a_)||Nt.comparator(t.key,e.key)}}/** 1967 * @license 1968 * Copyright 2017 Google LLC 1969 * 1970 * Licensed under the Apache License, Version 2.0 (the "License"); 1971 * you may not use this file except in compliance with the License. 1972 * You may obtain a copy of the License at 1973 * 1974 * http://www.apache.org/licenses/LICENSE-2.0 1975 * 1976 * Unless required by applicable law or agreed to in writing, software 1977 * distributed under the License is distributed on an "AS IS" BASIS, 1978 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1979 * See the License for the specific language governing permissions and 1980 * limitations under the License. 1981 */class II{constructor(t,e){this.indexManager=t,this.referenceDelegate=e,this.mutationQueue=[],this.gs=1,this.u_=new nn(mn.Xs)}checkEmpty(t){return lt.resolve(this.mutationQueue.length===0)}addMutationBatch(t,e,s,a){const l=this.gs;this.gs++,this.mutationQueue.length>0&&this.mutationQueue[this.mutationQueue.length-1];const c=new vI(l,e,s,a);this.mutationQueue.push(c);for(const h of a)this.u_=this.u_.add(new mn(h.key,l)),this.indexManager.addToCollectionParentIndex(t,h.key.path.popLast());return lt.resolve(c)}lookupMutationBatch(t,e){return lt.resolve(this.c_(e))}getNextMutationBatchAfterBatchId(t,e){const s=e+1,a=this.l_(s),l=a<0?0:a;return lt.resolve(this.mutationQueue.length>l?this.mutationQueue[l]:null)}getHighestUnacknowledgedBatchId(){return lt.resolve(this.mutationQueue.length===0?cm:this.gs-1)}getAllMutationBatches(t){return lt.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(t,e){const s=new mn(e,0),a=new mn(e,Number.POSITIVE_INFINITY),l=[];return this.u_.forEachInRange([s,a],(c=>{const h=this.c_(c.a_);l.push(h)})),lt.resolve(l)}getAllMutationBatchesAffectingDocumentKeys(t,e){let s=new nn(Zt);return e.forEach((a=>{const l=new mn(a,0),c=new mn(a,Number.POSITIVE_INFINITY);this.u_.forEachInRange([l,c],(h=>{s=s.add(h.a_)}))})),lt.resolve(this.E_(s))}getAllMutationBatchesAffectingQuery(t,e){const s=e.path,a=s.length+1;let l=s;Nt.isDocumentKey(l)||(l=l.child(""));const c=new mn(new Nt(l),0);let h=new nn(Zt);return this.u_.forEachWhile((m=>{const g=m.key.path;return!!s.isPrefixOf(g)&&(g.length===a&&(h=h.add(m.a_)),!0)}),c),lt.resolve(this.E_(h))}E_(t){const e=[];return t.forEach((s=>{const a=this.c_(s);a!==null&&e.push(a)})),e}removeMutationBatch(t,e){Ct(this.h_(e.batchId,"removed")===0,55003),this.mutationQueue.shift();let s=this.u_;return lt.forEach(e.mutations,(a=>{const l=new mn(a.key,e.batchId);return s=s.delete(l),this.referenceDelegate.markPotentiallyOrphaned(t,a.key)})).next((()=>{this.u_=s}))}bs(t){}containsKey(t,e){const s=new mn(e,0),a=this.u_.firstAfterOrEqual(s);return lt.resolve(e.isEqual(a&&a.key))}
vendor: 10,998 bytes, lines 1981-2051
1981performConsistencyCheck(t){return this.mutationQueue.length,lt.resolve()}h_(t,e){return this.l_(t)}l_(t){return this.mutationQueue.length===0?0:t-this.mutationQueue[0].batchId}c_(t){const e=this.l_(t);return e<0||e>=this.mutationQueue.length?null:this.mutationQueue[e]}}/** 1982 * @license 1983 * Copyright 2017 Google LLC 1984 * 1985 * Licensed under the Apache License, Version 2.0 (the "License"); 1986 * you may not use this file except in compliance with the License. 1987 * You may obtain a copy of the License at 1988 * 1989 * http://www.apache.org/licenses/LICENSE-2.0 1990 * 1991 * Unless required by applicable law or agreed to in writing, software 1992 * distributed under the License is distributed on an "AS IS" BASIS, 1993 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1994 * See the License for the specific language governing permissions and 1995 * limitations under the License. 1996 */class OI{constructor(t){this.T_=t,this.docs=(function(){return new Ce(Nt.comparator)})(),this.size=0}setIndexManager(t){this.indexManager=t}addEntry(t,e){const s=e.key,a=this.docs.get(s),l=a?a.size:0,c=this.T_(e);return this.docs=this.docs.insert(s,{document:e.mutableCopy(),size:c}),this.size+=c-l,this.indexManager.addToCollectionParentIndex(t,s.path.popLast())}removeEntry(t){const e=this.docs.get(t);e&&(this.docs=this.docs.remove(t),this.size-=e.size)}getEntry(t,e){const s=this.docs.get(e);return lt.resolve(s?s.document.mutableCopy():Vn.newInvalidDocument(e))}getEntries(t,e){let s=Xn();return e.forEach((a=>{const l=this.docs.get(a);s=s.insert(a,l?l.document.mutableCopy():Vn.newInvalidDocument(a))})),lt.resolve(s)}getAllEntries(t){let e=Xn();return this.docs.forEach(((s,a)=>{e=e.insert(s,a.document)})),lt.resolve(e)}getDocumentsMatchingQuery(t,e,s,a){let l,c;cn(e)?(l=ue.fromString(Yf(e)),c=y=>$f(e,y)):(l=e.path,c=y=>Uf(e,y));let h=Xn();const m=new Nt(l.child("__id-9223372036854775808__")),g=this.docs.getIteratorFrom(m);for(;g.hasNext();){const{key:y,value:{document:_}}=g.getNext();if(!l.isPrefixOf(y.path))break;y.path.length>l.length+1||aN(rN(_),s)<=0||(a.has(_.key)||c(_))&&(h=h.insert(_.key,_.mutableCopy()))}return lt.resolve(h)}getAllFromCollectionGroup(t,e,s,a){Vt(9500)}P_(t,e){return lt.forEach(this.docs,(s=>e(s)))}newChangeBuffer(t){return new MI(this)}getSize(t){return lt.resolve(this.size)}}class MI extends bI{constructor(t){super(),this.zs=t}applyChanges(t){const e=[];return this.changes.forEach(((s,a)=>{a.isValidDocument()?e.push(this.zs.addEntry(t,a)):this.zs.removeEntry(s)})),lt.waitFor(e)}getFromCache(t,e){return this.zs.getEntry(t,e)}getAllFromCache(t,e){return this.zs.getEntries(t,e)}}/** 1997 * @license 1998 * Copyright 2017 Google LLC 1999 * 2000 * Licensed under the Apache License, Version 2.0 (the "License"); 2001 * you may not use this file except in compliance with the License. 2002 * You may obtain a copy of the License at 2003 * 2004 * http://www.apache.org/licenses/LICENSE-2.0 2005 * 2006 * Unless required by applicable law or agreed to in writing, software 2007 * distributed under the License is distributed on an "AS IS" BASIS, 2008 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2009 * See the License for the specific language governing permissions and 2010 * limitations under the License. 2011 */class PI{constructor(t){this.persistence=t,this.R_=new co((e=>Fv(e)),Hv),this.lastRemoteSnapshotVersion=Bt.min(),this.highestTargetId=0,this.I_=0,this.A_=new Lm,this.targetCount=0,this.V_=ha.xs()}forEachTarget(t,e){return this.R_.forEach(((s,a)=>e(a))),lt.resolve()}getLastRemoteSnapshotVersion(t){return lt.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(t){return lt.resolve(this.I_)}allocateTargetId(t){return this.highestTargetId=this.V_.next(),lt.resolve(this.highestTargetId)}setTargetsMetadata(t,e,s){return s&&(this.lastRemoteSnapshotVersion=s),e>this.I_&&(this.I_=e),lt.resolve()}Ms(t){this.R_.set(t.target,t);const e=t.targetId;e>this.highestTargetId&&(this.V_=new ha(e),this.highestTargetId=e),t.sequenceNumber>this.I_&&(this.I_=t.sequenceNumber)}addTargetData(t,e){return this.Ms(e),this.targetCount+=1,lt.resolve()}updateTargetData(t,e){return this.Ms(e),lt.resolve()}removeTargetData(t,e){return this.R_.delete(e.target),this.A_.s_(e.targetId),this.targetCount-=1,lt.resolve()}removeTargets(t,e,s){let a=0;const l=[];return this.R_.forEach(((c,h)=>{h.sequenceNumber<=e&&s.get(h.targetId)===null&&(this.R_.delete(c),l.push(this.removeMatchingKeysForTargetId(t,h.targetId)),a++)})),lt.waitFor(l).next((()=>a))}getTargetCount(t){return lt.resolve(this.targetCount)}getTargetData(t,e){const s=this.R_.get(e)||null;return lt.resolve(s)}addMatchingKeys(t,e,s){return this.A_.n_(e,s),lt.resolve()}removeMatchingKeys(t,e,s){this.A_.i_(e,s);const a=this.persistence.referenceDelegate,l=[];return a&&e.forEach((c=>{l.push(a.markPotentiallyOrphaned(t,c))})),lt.waitFor(l)}removeMatchingKeysForTargetId(t,e){return this.A_.s_(e),lt.resolve()}getMatchingKeysForTargetId(t,e){const s=this.A_.o_(e);return lt.resolve(s)}containsKey(t,e){return lt.resolve(this.A_.containsKey(e))}}/** 2012 * @license 2013 * Copyright 2017 Google LLC 2014 * 2015 * Licensed under the Apache License, Version 2.0 (the "License"); 2016 * you may not use this file except in compliance with the License. 2017 * You may obtain a copy of the License at 2018 * 2019 * http://www.apache.org/licenses/LICENSE-2.0 2020 * 2021 * Unless required by applicable law or agreed to in writing, software 2022 * distributed under the License is distributed on an "AS IS" BASIS, 2023 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2024 * See the License for the specific language governing permissions and 2025 * limitations under the License. 2026 */class Gv{constructor(t,e){this.d_={},this.overlays={},this.f_=new Mf(0),this.m_=!1,this.m_=!0,this.p_=new VI,this.referenceDelegate=t(this),this.g_=new PI(this),this.indexManager=new AI,this.remoteDocumentCache=(function(a){return new OI(a)})((s=>this.referenceDelegate.y_(s))),this.serializer=new EI(e),this.w_=new NI(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.m_=!1,Promise.resolve()}get started(){return this.m_}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(t){return this.indexManager}getDocumentOverlayCache(t){let e=this.overlays[t.toKey()];return e||(e=new DI,this.overlays[t.toKey()]=e),e}getMutationQueue(t,e){let s=this.d_[t.toKey()];return s||(s=new II(e,this.referenceDelegate),this.d_[t.toKey()]=s),s}getGlobalsCache(){return this.p_}getTargetCache(){return this.g_}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.w_}runTransaction(t,e,s){_t("MemoryPersistence","Starting transaction:",t);const a=new LI(this.f_.next());return this.referenceDelegate.b_(),s(a).next((l=>this.referenceDelegate.v_(a).next((()=>l)))).toPromise().then((l=>(a.raiseOnCommittedEvent(),l)))}S_(t,e){return lt.or(Object.values(this.d_).map((s=>()=>s.containsKey(t,e))))}}class LI extends lN{constructor(t){super(),this.currentSequenceNumber=t}}class km{constructor(t){this.persistence=t,this.D_=new Lm,this.x_=null}static C_(t){return new km(t)}get F_(){if(this.x_)return this.x_;throw Vt(60996)}addReference(t,e,s){return this.D_.addReference(s,e),this.F_.delete(s.toString()),lt.resolve()}removeReference(t,e,s){return this.D_.removeReference(s,e),this.F_.add(s.toString()),lt.resolve()}markPotentiallyOrphaned(t,e){return this.F_.add(e.toString()),lt.resolve()}removeTarget(t,e){this.D_.s_(e.targetId).forEach((a=>this.F_.add(a.toString())));const s=this.persistence.getTargetCache();return s.getMatchingKeysForTargetId(t,e.targetId).next((a=>{a.forEach((l=>this.F_.add(l.toString())))})).next((()=>s.removeTargetData(t,e)))}b_(){this.x_=new Set}v_(t){const e=this.persistence.getRemoteDocumentCache().newChangeBuffer();return lt.forEach(this.F_,(s=>{const a=Nt.fromPath(s);return this.O_(t,a).next((l=>{l||e.removeEntry(a,Bt.min())}))})).next((()=>(this.x_=null,e.apply(t))))}updateLimboDocument(t,e){return this.O_(t,e).next((s=>{s?this.F_.delete(e.toString()):this.F_.add(e.toString())}))}y_(t){return 0}O_(t,e){return lt.or([()=>lt.resolve(this.D_.containsKey(e)),()=>this.persistence.getTargetCache().containsKey(t,e),()=>this.persistence.S_(t,e)])}}class xf{constructor(t,e){this.persistence=t,this.M_=new co((s=>fN(s.path)),((s,a)=>s.isEqual(a))),this.garbageCollector=MD(this,e)}static C_(t,e){return new xf(t,e)}b_(){}v_(t){return lt.resolve()}forEachTarget(t,e){return this.persistence.getTargetCache().forEachTarget(t,e)}lr(t){const e=this.Ls(t);return this.persistence.getTargetCache().getTargetCount(t).next((s=>e.next((a=>s+a))))}Ls(t){let e=0;return this.Er(t,(s=>{e++})).next((()=>e))}Er(t,e){return lt.forEach(this.M_,((s,a)=>this.Us(t,s,a).next((l=>l?lt.resolve():e(a)))))}removeTargets(t,e,s){return this.persistence.getTargetCache().removeTargets(t,e,s)}removeOrphanedDocuments(t,e){let s=0;const a=this.persistence.getRemoteDocumentCache(),l=a.newChangeBuffer();return a.P_(t,(c=>this.Us(t,c,e).next((h=>{h||(s++,l.removeEntry(c,Bt.min()))})))).next((()=>l.apply(t))).next((()=>s))}markPotentiallyOrphaned(t,e){return this.M_.set(e,t.currentSequenceNumber),lt.resolve()}removeTarget(t,e){const s=e.withSequenceNumber(t.currentSequenceNumber);return this.persistence.getTargetCache().updateTargetData(t,s)}addReference(t,e,s){return this.M_.set(s,t.currentSequenceNumber),lt.resolve()}removeReference(t,e,s){return this.M_.set(s,t.currentSequenceNumber),lt.resolve()}updateLimboDocument(t,e){return this.M_.set(e,t.currentSequenceNumber),lt.resolve()}y_(t){let e=t.key.toString().length;return t.isFoundDocument()&&(e+=qh(t.data.value)),e}Us(t,e,s){return lt.or([()=>this.persistence.S_(t,e),()=>this.persistence.getTargetCache().containsKey(t,e),()=>{const a=this.M_.get(e);return lt.resolve(a!==void 0&&a>s)}])}getCacheSize(t){return this.persistence.getRemoteDocumentCache().getSize(t)}}/** 2027 * @license 2028 * Copyright 2017 Google LLC 2029 * 2030 * Licensed under the Apache License, Version 2.0 (the "License"); 2031 * you may not use this file except in compliance with the License. 2032 * You may obtain a copy of the License at 2033 * 2034 * http://www.apache.org/licenses/LICENSE-2.0 2035 * 2036 * Unless required by applicable law or agreed to in writing, software 2037 * distributed under the License is distributed on an "AS IS" BASIS, 2038 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2039 * See the License for the specific language governing permissions and 2040 * limitations under the License. 2041 */class jm{constructor(t,e,s,a){this.targetId=t,this.fromCache=e,this.wo=s,this.bo=a}static vo(t,e){let s=$t(),a=$t();for(const l of e.docChanges)switch(l.type){case 0:s=s.add(l.doc.key);break;case 1:a=a.add(l.doc.key)}return new jm(t,e.fromCache,s,a)}}/** 2042 * @license 2043 * Copyright 2017 Google LLC 2044 * 2045 * Licensed under the Apache License, Version 2.0 (the "License"); 2046 * you may not use this file except in compliance with the License. 2047 * You may obtain a copy of the License at 2048 * 2049 * http://www.apache.org/licenses/LICENSE-2.0 2050 * 2051 * Unless required by applicable law or agreed to in writing, softw
2051are 2052 * distributed under the License is distributed on an "AS IS" BASIS, 2053 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2054 * See the License for the specific language governing permissions and 2055 * limitations under the License. 2056 */function kI(n,t){return Nt.comparator(n.key,t.key)}/** 2057 * @license 2058 * Copyright 2023 Google LLC 2059 * 2060 * Licensed under the Apache License, Version 2.0 (the "License"); 2061 * you may not use this file except in compliance with the License. 2062 * You may obtain a copy of the License at 2063 * 2064 * http://www.apache.org/licenses/LICENSE-2.0 2065 * 2066 * Unless required by applicable law or agreed to in writing, software 2067 * distributed under the License is distributed on an "AS IS" BASIS, 2068 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2069 * See the License for the specific language governing permissions and 2070 * limitations under the License. 2071 */class jI{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(t){this._documentReadCount+=t}}/** 2072 * @license 2073 * Copyright 2019 Google LLC 2074 * 2075 * Licensed under the Apache License, Version 2.0 (the "License"); 2076 * you may not use this file except in compliance with the License. 2077 * You may obtain a copy of the License at 2078 * 2079 * http://www.apache.org/licenses/LICENSE-2.0 2080 * 2081 * Unless required by applicable law or agreed to in writing, software 2082 * distributed under the License is distributed on an "AS IS" BASIS, 2083 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2084 * See the License for the specific language governing permissions and 2085 * limitations under the License. 2086 */class BI{constructor(){this.So=!1,this.Do=!1,this.xo=100,this.Co=(function(){return pC()?8:uN(dC())>0?6:4})()}initialize(t,e){this.Fo=t,this.indexManager=e,this.So=!0}getDocumentsMatchingQuery(t,e,s,a){const l={result:null};return this.Oo(t,e).next((c=>{l.result=c})).next((()=>{if(!l.result)return this.Mo(t,e,a,s).next((c=>{l.result=c}))})).next((()=>{if(l.result)return;const c=new jI;return this.No(t,e,c).next((h=>{if(l.result=h,this.Do)return this.Lo(t,e,c,h.size)}))})).next((()=>l.result))}Lo(t,e,s,a){return cn(e)?lt.resolve():s.documentReadCount<this.xo?(nl()<=se.DEBUG&&_t("QueryEngine","SDK will not create cache indexes for query:",sc(e),"since it only creates cache indexes for collection contains","more than or equal to",this.xo,"documents"),lt.resolve()):(nl()<=se.DEBUG&&_t("QueryEngine","Query:",sc(e),"scans",s.documentReadCount,"local documents and returns",a,"documents as results."),s.documentReadCount>this.Co*a?(nl()<=se.DEBUG&&_t("QueryEngine","The SDK decides to create cache indexes for query:",sc(e),"as using cache indexes may help improve performance."),this.indexManager.createTargetIndexes(t,Ns(e))):lt.resolve())}Oo(t,e){if(cn(e))return lt.resolve(null);let s=e;if(q8(s))return lt.resolve(null);let a=Ns(s);return this.indexManager.getIndexType(t,a).next((l=>l===0?null:(s.limit!==null&&l===1&&(s=p6(s,null,"F"),a=Ns(s)),this.indexManager.getDocumentsMatchingTarget(t,a).next((c=>{const h=$t(...c);return this.Fo.getDocuments(t,h).next((m=>this.indexManager.getMinOffset(t,a).next((g=>{const y=this.Bo(s,m);return this.Uo(s,y,h,g.readTime)?this.Oo(t,p6(s,null,"F")):this.ko(t,y,s,g)}))))})))))}Mo(t,e,s,a){return(cn(e)?(function(c){for(const h of c.stages){if(h instanceof oo||h instanceof r9)return!1;if(h instanceof Gf){if(h.condition instanceof Nv&&h.condition._expr.name==="exists"&&h.condition._expr.params[0]instanceof Il&&h.condition._expr.params[0].fieldName===ws)continue;return!1}}return!0})(e):q8(e))||a.isEqual(Bt.min())?lt.resolve(null):this.Fo.getDocuments(t,s).next((l=>{const c=this.Bo(e,l);return this.Uo(e,c,s,a)?lt.resolve(null):(nl()<=se.DEBUG&&_t("QueryEngine","Re-using previous result from %s to execute query: %s",a.toString(),a9(e)),this.ko(t,c,e,sN(a,gc)).next((h=>h)))}))}Bo(t,e){let s,a;return cn(t)?(s=new nn(kI),a=l=>$f(t,l)):(s=new nn(gm(t)),a=l=>Uf(t,l)),e.forEach(((l,c)=>{a(c)&&(s=s.add(c))})),s}Uo(t,e,s,a){if(cn(t))return(function(h){return h.stages.some((m=>m instanceof oo||m instanceof r9))})(t);if(t.limit===null)return!1;if(s.size!==e.size)return!0;const l=t.limitType==="F"?e.last():e.first();return!!l&&(l.hasPendingWrites||l.version.compareTo(a)>0)}No(t,e,s){return nl()<=se.DEBUG&&_t("QueryEngine","Using full collection scan to execute query:",a9(e)),this.Fo.getDocumentsMatchingQuery(t,e,ra.min(),s)}ko(t,e,s,a){return this.Fo.getDocumentsMatchingQuery(t,s,a).next((l=>(e.forEach((c=>{l=l.insert(c.key,c)})),l)))}}/** 2087 * @license 2088 * Copyright 2020 Google LLC 2089 * 2090 * Licensed under the Apache License, Version 2.0 (the "License");
2091 * you may not use this file except in compliance with the License. 2092 * You may obtain a copy of the License at 2093 * 2094 * http://www.apache.org/licenses/LICENSE-2.0 2095 * 2096 * Unless required by applicable law or agreed to in writing, software 2097 * distributed under the License is distributed on an "AS IS" BASIS, 2098 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2099 * See the License for the specific language governing permissions and 2100 * limitations under the License. 2101 */const Bm="LocalStore",UI=3e8;class zI{constructor(t,e,s,a){this.persistence=t,this.qo=e,this.serializer=a,this.$o=new Ce(Zt),this.Ko=new co((l=>Fv(l)),Hv),this.Wo=new Map,this.Qo=t.getRemoteDocumentCache(),this.g_=t.getTargetCache(),this.w_=t.getBundleCache(),this.Go(s)}Go(t){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(t),this.indexManager=this.persistence.getIndexManager(t),this.mutationQueue=this.persistence.getMutationQueue(t,this.indexManager),this.localDocuments=new RI(this.Qo,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.Qo.setIndexManager(this.indexManager),this.qo.initialize(this.localDocuments,this.indexManager)}collectGarbage(t){return this.persistence.runTransaction("Collect garbage","readwrite-primary",(e=>t.collect(e,this.$o)))}}function FI(n,t,e,s){return new zI(n,t,e,s)}async function Yv(n,t){const e=Ft(n);return await e.persistence.runTransaction("Handle user change","readonly",(s=>{let a;return e.mutationQueue.getAllMutationBatches(s).next((l=>(a=l,e.Go(t),e.mutationQueue.getAllMutationBatches(s)))).next((l=>{const c=[],h=[];let m=$t();for(const g of a){c.push(g.batchId);for(const y of g.mutations)m=m.add(y.key)}for(const g of l){h.push(g.batchId);for(const y of g.mutations)m=m.add(y.key)}return e.localDocuments.getDocuments(s,m).next((g=>({zo:g,removedBatchIds:c,addedBatchIds:h})))}))}))}function HI(n,t){const e=Ft(n);return e.persistence.runTransaction("Acknowledge batch","readwrite-primary",(s=>{const a=t.batch.keys(),l=e.Qo.newChangeBuffer({trackRemovals:!0});return(function(h,m,g,y){const _=g.batch,x=_.keys();let R=lt.resolve();return x.forEach((N=>{R=R.next((()=>y.getEntry(m,N))).next((j=>{const F=g.docVersions.get(N);Ct(F!==null,48541),j.version.compareTo(F)<0&&(_.applyToRemoteDocument(j,g),j.isValidDocument()&&(j.setReadTime(g.commitVersion),y.addEntry(j)))}))})),R.next((()=>h.mutationQueue.removeMutationBatch(m,_)))})(e,s,t,l).next((()=>l.apply(s))).next((()=>e.mutationQueue.performConsistencyCheck(s))).next((()=>e.documentOverlayCache.removeOverlaysForBatchId(s,a,t.batch.batchId))).next((()=>e.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(s,(function(h){let m=$t();for(let g=0;g<h.mutationResults.length;++g)h.mutationResults[g].transformResults.length>0&&(m=m.add(h.batch.mutations[g].key));return m})(t)))).next((()=>e.localDocuments.getDocuments(s,a)))}))}function Qv(n){const t=Ft(n);return t.persistence.runTransaction("Get last remote snapshot version","readonly",(e=>t.g_.getLastRemoteSnapshotVersion(e)))}function qI(n,t){const e=Ft(n),s=t.snapshotVersion;let a=e.$o;return e.persistence.runTransaction("Apply remote event","readwrite-primary",(l=>{const c=e.Qo.newChangeBuffer({trackRemovals:!0});a=e.$o;const h=[];
2101t.targetChanges.forEach(((y,_)=>{const x=a.get(_);if(!x)return;h.push(e.g_.removeMatchingKeys(l,y.removedDocuments,_).next((()=>e.g_.addMatchingKeys(l,y.addedDocuments,_))));let R=x.withSequenceNumber(l.currentSequenceNumber);t.targetMismatches.get(_)!==null?R=R.withResumeToken(sn.EMPTY_BYTE_STRING,Bt.min()).withLastLimboFreeSnapshotVersion(Bt.min()):y.resumeToken.approximateByteSize()>0&&(R=R.withResumeToken(y.resumeToken,s)),a=a.insert(_,R),(function(j,F,q){return j.resumeToken.approximateByteSize()===0||F.snapshotVersion.toMicroseconds()-j.snapshotVersion.toMicroseconds()>=UI?!0:q.addedDocuments.size+q.modifiedDocuments.size+q.removedDocuments.size>0})(x,R,y)&&h.push(e.g_.updateTargetData(l,R))}));let m=Xn(),g=$t();if(t.documentUpdates.forEach((y=>{t.resolvedLimboDocuments.has(y)&&h.push(e.persistence.referenceDelegate.updateLimboDocument(l,y))})),h.push(GI(l,c,t.documentUpdates).next((y=>{m=y.jo,g=y.Ho}))),!s.isEqual(Bt.min())){const y=e.g_.getLastRemoteSnapshotVersion(l).next((_=>e.g_.setTargetsMetadata(l,l.currentSequenceNumber,s)));h.push(y)}return lt.waitFor(h).next((()=>c.apply(l))).next((()=>e.localDocuments.getLocalViewOfDocuments(l,m,g))).next((()=>m))})).then((l=>(e.$o=a,l)))}function GI(n,t,e){let s=$t(),a=$t();return e.forEach((l=>s=s.add(l))),t.getEntries(n,s).next((l=>{let c=Xn();return e.forEach(((h,m)=>{const g=l.get(h);m.isFoundDocument()!==g.isFoundDocument()&&(a=a.add(h)),m.isNoDocument()&&m.version.isEqual(Bt.min())?(t.removeEntry(h,m.readTime),c=c.insert(h,m)):!g.isValidDocument()||m.version.compareTo(g.version)>0||m.version.compareTo(g.version)===0&&g.hasPendingWrites?(t.addEntry(m),c=c.insert(h,m)):_t(Bm,"Ignoring outdated watch update for ",h,". Current version:",g.version," Watch version:",m.version)})),{jo:c,Ho:a}}))}function YI(n,t){const e=Ft(n);return e.persistence.runTransaction("Get next mutation batch","readonly",(s=>(t===void 0&&(t=cm),e.mutationQueue.getNextMutationBatchAfterBatchId(s,t))))}function QI(n,t){const e=Ft(n);return e.persistence.runTransaction("Allocate target","readwrite",(s=>{let a;return e.g_.getTargetData(s,t).next((l=>l?(a=l,lt.resolve(a)):e.g_.allocateTargetId(s).next((c=>(a=new sr(t,c,"TargetPurposeListen",s.currentSequenceNumber),e.g_.addTargetData(s,a).next((()=>a)))))))})).then((s=>{const a=e.$o.get(s.targetId);return(a===null||s.snapshotVersion.compareTo(a.snapshotVersion)>0)&&(e.$o=e.$o.insert(s.targetId,s),e.Ko.set(t,s.targetId)),s}))}async function S6(n,t,e){const s=Ft(n),a=s.$o.get(t),l=e?"readwrite":"readwrite-primary";try{e||await s.persistence.runTransaction("Release target",l,(c=>s.persistence.referenceDelegate.removeTarget(c,a)))}catch(c){if(!Nl(c))throw c;_t(Bm,`Failed to update sequence numbers for target ${t}: ${c}`)}s.$o=s.$o.remove(t),s.Ko.delete(a.target)}function o9(n,t,e){const s=Ft(n);let a=Bt.min(),l=$t();return s.persistence.runTransaction("Execute query","readwrite",(c=>(function(m,g,y){const _=Ft(m),x=_.Ko.get(y);return x!==void 0?lt.resolve(_.$o.get(x)):_.g_.getTargetData(g,y)})(s,c,cn(t)?t:Ns(t)).next((h=>{if(h)return a=h.lastLimboFreeSnapshotVersion,s.g_.getMatchingKeysForTargetId(c,h.targetId).next((m=>{l=m}))})).next((()=>s.qo.getDocumentsMatchingQuery(c,t,e?a:Bt.min(),e?l:$t()))).next((h=>(KI(s,h),{documents:h,Jo:l})))))}function KI(n,t){t.forEach(((e,s)=>{const a=s.key.getCollectionGroup(),l=n.Wo.get(a)||Bt.min();s.readTime.compareTo(l)>0&&n.Wo.set(a,s.readTime)}))}class l9{constructor(){this.activeTargetIds=XN()}na(t){this.activeTargetIds=this.activeTargetIds.add(t)}ra(t){this.activeTargetIds=this.activeTargetIds.delete(t)}ta(){const t={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(t)}}class $I{constructor(){this.Ua=new l9,this.ka={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(t){}updateMutationState(t,e,s){}addLocalQueryTarget(t,e=!0){return e&&this.Ua.na(t),this.ka[t]||"not-current"}updateQueryState(t,e,s){this.ka[t]=e}removeLocalQueryTarget(t){this.Ua.ra(t)}isLocalQueryTarget(t){return this.Ua.activeTargetIds.has(t)}clearQueryState(t){delete this.ka[t]}getAllActiveQueryTargets(){return this.Ua.activeTargetIds}isActiveQueryTarget(t){return this.Ua.activeTargetIds.has(t)}start(){return this.Ua=new l9,Promise.resolve()}handleUserChange(t,e,s){}setOnlineState(t){}shutdown(){}writeSequenceNumber(t){}notifyBundleLoaded(t){}}function N0(){return typeof document<"u"?document:null}/** 2102 * @license 2103 * Copyright 2018 Google LLC 2104 * 2105 * Licensed under the Apache License, Version 2.0 (the "License");
2106 * you may not use this file except in compliance with the License. 2107 * You may obtain a copy of the License at 2108 * 2109 * http://www.apache.org/licenses/LICENSE-2.0 2110 * 2111 * Unless required by applicable law or agreed to in writing, software 2112 * distributed under the License is distributed on an "AS IS" BASIS, 2113 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2114 * See the License for the specific language governing permissions and 2115 * limitations under the License. 2116 */class XI{constructor(t,e){this.asyncQueue=t,this.onlineStateHandler=e,this.state="Unknown",this.qa=0,this.$a=null,this.Ka=!0}Wa(){this.qa===0&&(this.Qa("Unknown"),this.$a=this.asyncQueue.enqueueAfterDelay("online_state_timeout",1e4,(()=>(this.$a=null,this.Ga("Backend didn't respond within 10 seconds."),this.Qa("Offline"),Promise.resolve()))))}za(t){this.state==="Online"?this.Qa("Unknown"):(this.qa++,this.qa>=1&&(this.ja(),this.Ga(`Connection failed 1 times. Most recent error: ${t.toString()}`),this.Qa("Offline")))}set(t){this.ja(),this.qa=0,t==="Online"&&(this.Ka=!1),this.Qa(t)}Qa(t){t!==this.state&&(this.state=t,this.onlineStateHandler(t))}Ga(t){const e=`Could not reach Cloud Firestore backend. ${t} 2117This 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.Ka?(lr(e),this.Ka=!1):_t("OnlineStateTracker",e)}ja(){this.$a!==null&&(this.$a.cancel(),this.$a=null)}}/** 2118 * @license 2119 * Copyright 2017 Google LLC 2120 * 2121 * Licensed under the Apache License, Version 2.0 (the "License"); 2122 * you may not use this file except in compliance with the License. 2123 * You may obtain a copy of the License at 2124 * 2125 * http://www.apache.org/licenses/LICENSE-2.0 2126 * 2127 * Unless required by applicable law or agreed to in writing, software 2128 * distributed under the License is distributed on an "AS IS" BASIS, 2129 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2130 * See the License for the specific language governing permissions and 2131 * limitations under the License. 2132 */const Ms="RemoteStore";class WI{constructor(t,e,s,a,l){this.localStore=t,this.datastore=e,this.asyncQueue=s,this.remoteSyncer={},this.Ha=[],this.Ja=new Map,this.Ya=new Map,this.Za=new Map,this.Xa=new ha(1e3),this.eu=new ha(1001),this.tu=new Set,this.nu=[],this.ru=l,this.ru.bt((c=>{s.enqueueAndForget((async()=>{fo(this)&&(_t(Ms,"Restarting streams for network reachability change."),await(async function(m){const g=Ft(m);g.tu.add(4),await Hc(g),g.iu.set("Unknown"),g.tu.delete(4),await Xf(g)})(this))}))})),this.iu=new XI(s,a)}}async function Xf(n){if(fo(n))for(const t of n.nu)await t(!0)}async function Hc(n){for(const t of n.nu)await t(!1)}function w6(n,t){return n.Ya.get(t)||void 0}function Kv(n,t){const e=Ft(n),s=w6(e,t.targetId);if(s!==void 0&&e.Ja.has(s))return;const a=(function(h,m){const g=w6(h,m);g!==void 0&&h.Za.delete(g);const y=(function(x,R){return R%2!=0?x.eu.next():x.Xa.next()})(h,m);return h.Ya.set(m,y),h.Za.set(y,m),y})(e,t.targetId);_t(Ms,"remoteStoreListen mapping SDK target ID to remote",t.targetId,a);const l=new sr(t.target,a,t.purpose,t.sequenceNumber,t.snapshotVersion,t.lastLimboFreeSnapshotVersion,t.resumeToken);e.Ja.set(a,l),Hm(e)?Fm(e):Ll(e).Fn()&&zm(e,l)}function Um(n,t){const e=Ft(n),s=Ll(e),a=w6(e,t);_t(Ms,"remoteStoreUnlisten removing mapping of SDK target ID to remote",t,a),e.Ja.delete(a),e.Ya.delete(t),e.Za.delete(a),s.Fn()&&$v(e,a),e.Ja.size===0&&(s.Fn()?s.Nn():fo(e)&&e.iu.set("Unknown"))}function zm(n,t){if(n.su.We(t.targetId),t.resumeToken.approximateByteSize()>0||t.snapshotVersion.compareTo(Bt.min())>0){const e=n.Za.get(t.targetId);if(e===void 0)return void _t(Ms,"SDK target ID not found for remote ID: "+t.targetId);const s=n.remoteSyncer.getRemoteKeysForTarget(e).size;t=t.withExpectedCount(s)}Ll(n).jn(t)}function $v(n,t){n.su.We(t),Ll(n).Hn(t)}function Fm(n){n.su=new JN({getRemoteKeysForTarget:t=>{const e=n.Za.get(t);return e!==void 0?n.remoteSyncer.getRemoteKeysForTarget(e):$t()},dt:t=>n.Ja.get(t)||null,Tt:()=>n.datastore.serializer.databaseId}),Ll(n).start(),n.iu.Wa()}function Hm(n){return fo(n)&&!Ll(n).Cn()&&n.Ja.size>0}function fo(n){return Ft(n).tu.size===0}function Xv(n){n.su=void 0}async function ZI(n){n.iu.set("Online")}async function JI(n){n.Ja.forEach(((t,e)=>{zm(n,t)}))}async function tO(n,t){Xv(n),Hm(n)?(n.iu.za(t),Fm(n)):n.iu.set("Unknown")}async function eO(n,t,e){if(n.iu.set("Online"),t instanceof ov&&t.state===2&&t.cause)try{await(async function(a,l){const c=l.cause;for(const h of l.targetIds){if(a.Ja.has(h)){const m=a.Za.get(h);m!==void 0&&(await a.remoteSyncer.rejectListen(m,c),a.Ya.delete(m),a.Za.delete(h)),a.Ja.delete(h)}a.su.removeTarget(h)}})(n,t)}catch(s){_t(Ms,"Failed to remove targets %s: %s ",t.targetIds.join(","),s),await Sf(n,s)}else if(t instanceof Yh?n.su.et(t):t instanceof av?n.su.ot(t):n.su.rt(t),!e.isEqual(Bt.min()))try{const s=await Qv(n.localStore);e.compareTo(s)>=0&&await(function(l,c){const h=l.su.Rt(c);
2132h.targetChanges.forEach(((g,y)=>{if(g.resumeToken.approximateByteSize()>0){const _=l.Ja.get(y);_&&l.Ja.set(y,_.withResumeToken(g.resumeToken,c))}})),h.targetMismatches.forEach(((g,y)=>{const _=l.Ja.get(g);if(!_)return;l.Ja.set(g,_.withResumeToken(sn.EMPTY_BYTE_STRING,_.snapshotVersion)),$v(l,g);const x=new sr(_.target,g,y,_.sequenceNumber);zm(l,x)}));const m=(function(y,_){const x=new Map;_.targetChanges.forEach(((N,j)=>{const F=y.Za.get(j);F!==void 0&&x.set(F,N)}));let R=new Ce(Zt);return _.targetMismatches.forEach(((N,j)=>{const F=y.Za.get(N);F!==void 0&&(R=R.insert(F,j))})),new Uc(_.snapshotVersion,x,R,_.documentUpdates,_.augmentedDocumentUpdates,_.resolvedLimboDocuments)})(l,h);return l.remoteSyncer.applyRemoteEvent(m)})(n,e)}catch(s){_t(Ms,"Failed to raise snapshot:",s),await Sf(n,s)}}async function Sf(n,t,e){if(!Nl(t))throw t;n.tu.add(1),await Hc(n),n.iu.set("Offline"),e||(e=()=>Qv(n.localStore)),n.asyncQueue.enqueueRetryable((async()=>{_t(Ms,"Retrying IndexedDB access"),await e(),n.tu.delete(1),await Xf(n)}))}function Wv(n,t){return t().catch((e=>Sf(n,e,t)))}async function Wf(n){const t=Ft(n),e=fa(t);let s=t.Ha.length>0?t.Ha[t.Ha.length-1].batchId:cm;for(;nO(t);)try{const a=await YI(t.localStore,s);if(a===null){t.Ha.length===0&&e.Nn();break}s=a.batchId,iO(t,a)}catch(a){await Sf(t,a)}Zv(t)&&Jv(t)}function nO(n){return fo(n)&&n.Ha.length<10}function iO(n,t){n.Ha.push(t);const e=fa(n);e.Fn()&&e.Jn&&e.Yn(t.mutations)}function Zv(n){return fo(n)&&!fa(n).Cn()&&n.Ha.length>0}function Jv(n){fa(n).start()}async function sO(n){fa(n).er()}async function rO(n){const t=fa(n);for(const e of n.Ha)t.Yn(e.mutations)}async function aO(n,t,e){const s=n.Ha.shift(),a=Pm.from(s,t,e);await Wv(n,(()=>n.remoteSyncer.applySuccessfulWrite(a))),await Wf(n)}async function oO(n,t){t&&fa(n).Jn&&await(async function(s,a){if((function(c){return GN(c)&&c!==ot.ABORTED})(a.code)){const l=s.Ha.shift();fa(s).Mn(),await Wv(s,(()=>s.remoteSyncer.rejectFailedWrite(l.batchId,a))),await Wf(s)}})(n,t),Zv(n)&&Jv(n)}async function u9(n,t){const e=Ft(n);e.asyncQueue.verifyOperationInProgress(),_t(Ms,"RemoteStore received new credentials");const s=fo(e);e.tu.add(3),await Hc(e),s&&e.iu.set("Unknown"),await e.remoteSyncer.handleCredentialChange(t),e.tu.delete(3),await Xf(e)}async function lO(n,t){const e=Ft(n);t?(e.tu.delete(2),await Xf(e)):t||(e.tu.add(2),await Hc(e),e.iu.set("Unknown"))}function Ll(n){return n._u||(n._u=(function(e,s,a){const l=Ft(e);return l.nr(),new xD(s,l.connection,l.authCredentials,l.appCheckCredentials,l.serializer,a)})(n.datastore,n.asyncQueue,{Qt:ZI.bind(null,n),zt:JI.bind(null,n),Ht:tO.bind(null,n),zn:eO.bind(null,n)}),n.nu.push((async t=>{t?(n._u.Mn(),Hm(n)?Fm(n):n.iu.set("Unknown")):(await n._u.stop(),Xv(n))}))),n._u}function fa(n){return n.ou||(n.ou=(function(e,s,a){const l=Ft(e);return l.nr(),new SD(s,l.connection,l.authCredentials,l.appCheckCredentials,l.serializer,a)})(n.datastore,n.asyncQueue,{Qt:()=>Promise.resolve(),zt:sO.bind(null,n),Ht:oO.bind(null,n),Zn:rO.bind(null,n),Xn:aO.bind(null,n)}),n.nu.push((async t=>{t?(n.ou.Mn(),await Wf(n)):(await n.ou.stop(),n.Ha.length>0&&(_t(Ms,`Stopping write stream with ${n.Ha.length} pending writes`),n.Ha=[]))}))),n.ou}/** 2133 * @license 2134 * Copyright 2017 Google LLC 2135 * 2136 * Licensed under the Apache License, Version 2.0 (the "License"); 2137 * you may not use this file except in compliance with the License. 2138 * You may obtain a copy of the License at 2139 * 2140 * http://www.apache.org/licenses/LICENSE-2.0 2141 * 2142 * Unless required by applicable law or agreed to in writing, software 2143 * distributed under the License is distributed on an "AS IS" BASIS, 2144 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2145 * See the License for the specific language governing permissions and 2146 * limitations under the License. 2147 */class qm{constructor(t,e,s,a,l){this.asyncQueue=t,this.timerId=e,this.targetTimeMs=s,this.op=a,this.removalCallback=l,this.deferred=new Zr,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch((c=>{}))}get promise(){return this.deferred.promise}static createAndSchedule(t,e,s,a,l){const c=Date.now()+s,h=new qm(t,e,c,a,l);return h.start(s),h}start(t){this.timerHandle=setTimeout((()=>this.handleDelayElapsed()),t)}skipDelay(){return this.handleDelayElapsed()}cancel(t){this.timerHandle!==null&&(this.clearTimeout(),this.deferred.reject(new vt(ot.CANCELLED,"Operation cancelled"+(t?": "+t:"")))
2147)}handleDelayElapsed(){this.asyncQueue.enqueueAndForget((()=>this.timerHandle!==null?(this.clearTimeout(),this.op().then((t=>this.deferred.resolve(t)))):Promise.resolve()))}clearTimeout(){this.timerHandle!==null&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}}function Gm(n,t){if(lr("AsyncQueue",`${t}: ${n}`),Nl(n))return new vt(ot.UNAVAILABLE,`${t}: ${n}`);throw n}/** 2148 * @license 2149 * Copyright 2017 Google LLC 2150 * 2151 * Licensed under the Apache License, Version 2.0 (the "License"); 2152 * you may not use this file except in compliance with the License. 2153 * You may obtain a copy of the License at 2154 * 2155 * http://www.apache.org/licenses/LICENSE-2.0 2156 * 2157 * Unless required by applicable law or agreed to in writing, software 2158 * distributed under the License is distributed on an "AS IS" BASIS, 2159 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2160 * See the License for the specific language governing permissions and 2161 * limitations under the License. 2162 */class no{static emptySet(t){return new no(t.comparator)}constructor(t){this.comparator=t?(e,s)=>t(e,s)||Nt.comparator(e.key,s.key):(e,s)=>Nt.comparator(e.key,s.key),this.keyedMap=il(),this.sortedSet=new Ce(this.comparator)}has(t){return this.keyedMap.get(t)!=null}get(t){return this.keyedMap.get(t)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(t){const e=this.keyedMap.get(t);return e?this.sortedSet.indexOf(e):-1}get size(){return this.sortedSet.size}forEach(t){this.sortedSet.inorderTraversal(((e,s)=>(t(e),!1)))}add(t){const e=this.delete(t.key);return e.copy(e.keyedMap.insert(t.key,t),e.sortedSet.insert(t,null))}delete(t){const e=this.get(t);return e?this.copy(this.keyedMap.remove(t),this.sortedSet.remove(e)):this}isEqual(t){if(!(t instanceof no)||this.size!==t.size)return!1;const e=this.sortedSet.getIterator(),s=t.sortedSet.getIterator();for(;e.hasNext();){const a=e.getNext().key,l=s.getNext().key;if(!a.isEqual(l))return!1}return!0}toString(){const t=[];return this.forEach((e=>{t.push(e.toString())})),t.length===0?"DocumentSet ()":`DocumentSet ( 2163 `+t.join(` 2164`)+` 2165)`}copy(t,e){const s=new no;return s.comparator=this.comparator,s.keyedMap=t,s.sortedSet=e,s}}/** 2166 * @license 2167 * Copyright 2017 Google LLC 2168 * 2169 * Licensed under the Apache License, Version 2.0 (the "License"); 2170 * you may not use this file except in compliance with the License. 2171 * You may obtain a copy of the License at 2172 * 2173 * http://www.apache.org/licenses/LICENSE-2.0 2174 * 2175 * Unless required by applicable law or agreed to in writing, software 2176 * distributed under the License is distributed on an "AS IS" BASIS, 2177 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2178 * See the License for the specific language governing permissions and 2179 * limitations under the License. 2180 */class c9{constructor(){this.au=new Ce(Nt.comparator)}track(t){const e=t.doc.key,s=this.au.get(e);s?t.type!==0&&s.type===3?this.au=this.au.insert(e,t):t.type===3&&s.type!==1?this.au=this.au.insert(e,{type:s.type,doc:t.doc}):t.type===2&&s.type===2?this.au=this.au.insert(e,{type:2,doc:t.doc}):t.type===2&&s.type===0?this.au=this.au.insert(e,{type:0,doc:t.doc}):t.type===1&&s.type===0?this.au=this.au.remove(e):t.type===1&&s.type===2?this.au=this.au.insert(e,{type:1,doc:s.doc}):t.type===0&&s.type===1?this.au=this.au.insert(e,{type:2,doc:t.doc}):Vt(63341,{ft:t,uu:s}):this.au=this.au.insert(e,t)}cu(){const t=[];return this.au.inorderTraversal(((e,s)=>{t.push(s)})),t}}class Tl{constructor(t,e,s,a,l,c,h,m,g){this.query=t,this.docs=e,this.oldDocs=s,this.docChanges=a,this.mutatedKeys=l,this.fromCache=c,this.syncStateChanged=h,this.excludesMetadataChanges=m,this.hasCachedResults=g}static fromInitialDocuments(t,e,s,a,l){const c=[];return e.forEach((h=>{c.push({type:0,doc:h})})),new Tl(t,e,no.emptySet(e),c,s,a,!0,!1,l)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(t){if(!(this.fromCache===t.fromCache&&this.hasCachedResults===t.hasCachedResults&&this.syncStateChanged===t.syncStateChanged&&this.mutatedKeys.isEqual(t.mutatedKeys)&&Kf(this.query,t.query)&&this.docs.isEqual(t.docs)&&this.oldDocs.isEqual(t.oldDocs)))return!1;const e=this.docChanges,s=t.docChanges;if(e.length!==s.length)return!1;for(let a=0;a<e.length;a++)if(e[a].type!==s[a].type||!e[a].doc.isEqual(s[a].doc))return!1;return!0}}/** 2181 * @license 2182 * Copyright 2017 Google LLC 2183 * 2184 * Licensed under the Apache License, Version 2.0 (the "License");
2185 * you may not use this file except in compliance with the License. 2186 * You may obtain a copy of the License at 2187 * 2188 * http://www.apache.org/licenses/LICENSE-2.0 2189 * 2190 * Unless required by applicable law or agreed to in writing, software 2191 * distributed under the License is distributed on an "AS IS" BASIS, 2192 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2193 * See the License for the specific language governing permissions and 2194 * limitations under the License. 2195 */class uO{constructor(){this.lu=void 0,this.Eu=[]}hu(){return this.Eu.some((t=>t.Tu()))}}class cO{constructor(){this.queries=h9(),this.onlineState="Unknown",this.Pu=new Set}terminate(){(function(e,s){const a=Ft(e),l=a.queries;a.queries=h9(),l.forEach(((c,h)=>{for(const m of h.Eu)m.onError(s)}))})(this,new vt(ot.ABORTED,"Firestore shutting down"))}}function h9(){return new co((n=>zv(n)),Kf)}async function t_(n,t){const e=Ft(n);let s=3;const a=t.query;let l=e.queries.get(a);l?!l.hu()&&t.Tu()&&(s=2):(l=new uO,s=t.Tu()?0:1);try{switch(s){case 0:l.lu=await e.onListen(a,!0);break;case 1:l.lu=await e.onListen(a,!1);break;case 2:await e.onFirstRemoteStoreListen(a)}}catch(c){const h=Gm(c,`Initialization of query '${cn(t.query)?ar(t.query):sc(t.query)}' failed`);return void t.onError(h)}e.queries.set(a,l),l.Eu.push(t),t.Ru(e.onlineState),l.lu&&t.Iu(l.lu)&&Ym(e)}async function e_(n,t){const e=Ft(n),s=t.query;let a=3;const l=e.queries.get(s);if(l){const c=l.Eu.indexOf(t);c>=0&&(l.Eu.splice(c,1),l.Eu.length===0?a=t.Tu()?0:1:!l.hu()&&t.Tu()&&(a=2))}switch(a){case 0:return e.queries.delete(s),e.onUnlisten(s,!0);case 1:return e.queries.delete(s),e.onUnlisten(s,!1);case 2:return e.onLastRemoteStoreUnlisten(s);default:return}}function hO(n,t){const e=Ft(n);let s=!1;for(const a of t){const l=a.query,c=e.queries.get(l);if(c){for(const h of c.Eu)h.Iu(a)&&(s=!0);c.lu=a}}s&&Ym(e)}function fO(n,t,e){const s=Ft(n),a=s.queries.get(t);if(a)for(const l of a.Eu)l.onError(e);s.queries.delete(t)}function Ym(n){n.Pu.forEach((t=>{t.next()}))}var b6;(function(n){n.Default="default",n.Cache="cache"})(b6||(b6={}));class n_{constructor(t,e,s){this.query=t,this.Au=e,this.Vu=!1,this.du=null,this.onlineState="Unknown",this.options=s||{}}Iu(t){if(!this.options.includeMetadataChanges){const s=[];for(const a of t.docChanges)a.type!==3&&s.push(a);t=new Tl(t.query,t.docs,t.oldDocs,s,t.mutatedKeys,t.fromCache,t.syncStateChanged,!0,t.hasCachedResults)}let e=!1;return this.Vu?this.fu(t)&&(this.Au.next(t),e=!0):this.mu(t,this.onlineState)&&(this.pu(t),e=!0),this.du=t,e}onError(t){this.Au.error(t)}Ru(t){this.onlineState=t;let e=!1;return this.du&&!this.Vu&&this.mu(this.du,t)&&(this.pu(this.du),e=!0),e}mu(t,e){if(!t.fromCache||!this.Tu())return!0;const s=e!=="Offline";return(!this.options.waitForSyncWhenOnline||!s)&&(!t.docs.isEmpty()||t.hasCachedResults||e==="Offline")}fu(t){if(t.docChanges.length>0)return!0;const e=this.du&&this.du.hasPendingWrites!==t.hasPendingWrites;return!(!t.syncStateChanged&&!e)&&this.options.includeMetadataChanges===!0}pu(t){t=Tl.fromInitialDocuments(t.query,t.docs,t.mutatedKeys,t.fromCache,t.hasCachedResults),this.Vu=!0,this.Au.next(t)}Tu(){return this.options.source!==b6.Cache}}/** 2196 * @license 2197 * Copyright 2017 Google LLC 2198 * 2199 * Licensed under the Apache License, Version 2.0 (the "License"); 2200 * you may not use this file except in compliance with the License. 2201 * You may obtain a copy of the License at 2202 * 2203 * http://www.apache.org/licenses/LICENSE-2.0 2204 * 2205 * Unless required by applicable law or agreed to in writing, software 2206 * distributed under the License is distributed on an "AS IS" BASIS, 2207 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2208 * See the License for the specific language governing permissions and 2209 * limitations under the License. 2210 */class i_{constructor(t){this.key=t}}class s_{constructor(t){this.key=t}}class dO{constructor(t,e){this.query=t,this.Ou=e,this.Mu=null,this.hasCachedResults=!1,this.current=!1,this.Nu=$t(),this.mutatedKeys=$t(),this.Lu=cn(t)?x6(t):gm(t),this.Bu=new no(this.Lu)}get Uu(){return this.Ou}ku(t,e){const s=e?e.qu:new c9,a=e?e.Bu:this.Bu;let l=e?e.mutatedKeys:this.mutatedKeys,c=a,h=!1;const[m,g]=this.$u(this.query,a);t.inorderTraversal(((_,x)=>{const R=a.get(_),N=SI(this.query,x)?x:null,j=!!R&&this.mutatedKeys.has(R.key),F=!!N&&(N.hasLocalMutations||this.mutatedKeys.has(N.key)&&N.hasCommittedMutations);let q=!1;R&&N?R.data.isEqual(N.data)?j!==F&&(s.track({type:3,doc:N}),q=!0):this.Ku(R,N)||(s.track({type:2,doc:N}),q=!0,(m&&this.Lu(N,m)>0||g&&this.Lu(N,g)<0)&&(h=!0)):!R&&N?(s.track({type:0,doc:N}
2210),q=!0):R&&!N&&(s.track({type:1,doc:R}),q=!0,(m||g)&&(h=!0)),q&&(N?(c=c.add(N),l=F?l.add(_):l.delete(_)):(c=c.delete(_),l=l.delete(_)))}));const y=this.Wu(this.query);if(y)if(cn(this.query)){const _=[];c.forEach((N=>_.push(N)));const x=qv(this.query,_);let R=new no(x6(this.query));for(const N of x)R=R.add(N);c.forEach((N=>{R.has(N.key)||(l=l.delete(N.key),s.track({type:1,doc:N}))})),c=R}else{const _=this.Qu(this.query);for(;c.size>y;){const x=_==="F"?c.last():c.first();c=c.delete(x.key),l=l.delete(x.key),s.track({type:1,doc:x})}}return{Bu:c,qu:s,Uo:h,mutatedKeys:l}}Wu(t){var e;return cn(t)?(e=R0(t))==null?void 0:e.limit:t.limit||void 0}Qu(t){if(cn(t)){const e=R0(t);return e&&e.limit<0?"L":"F"}return t.limitType}$u(t,e){var s;if(cn(t)){const a=(s=R0(t))==null?void 0:s.limit;return[e.size===a?e.last():null,null]}return[t.limitType==="F"&&e.size===this.Wu(this.query)?e.last():null,t.limitType==="L"&&e.size===this.Wu(this.query)?e.first():null]}Ku(t,e){return t.hasLocalMutations&&e.hasCommittedMutations&&!e.hasLocalMutations}applyChanges(t,e,s,a){const l=this.Bu;this.Bu=t.Bu,this.mutatedKeys=t.mutatedKeys;const c=t.qu.cu();c.sort(((y,_)=>(function(R,N){const j=F=>{switch(F){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return Vt(20277,{ft:F})}};return j(R)-j(N)})(y.type,_.type)||this.Lu(y.doc,_.doc))),this.Gu(s),a=a??!1;const h=e&&!a?this.zu():[],m=this.Nu.size===0&&this.current&&!a?1:0,g=m!==this.Mu;return this.Mu=m,c.length!==0||g?{snapshot:new Tl(this.query,t.Bu,l,c,t.mutatedKeys,m===0,g,!1,!!s&&s.resumeToken.approximateByteSize()>0),ju:h}:{ju:h}}Ru(t){return this.current&&t==="Offline"?(this.current=!1,this.applyChanges({Bu:this.Bu,qu:new c9,mutatedKeys:this.mutatedKeys,Uo:!1},!1)):{ju:[]}}Hu(t){return!this.Ou.has(t)&&!!this.Bu.has(t)&&!this.Bu.get(t).hasLocalMutations}Gu(t){t&&(t.addedDocuments.forEach((e=>this.Ou=this.Ou.add(e))),t.modifiedDocuments.forEach((e=>{})),t.removedDocuments.forEach((e=>this.Ou=this.Ou.delete(e))),this.current=t.current)}zu(){if(!this.current)return[];const t=this.Nu;this.Nu=$t(),this.Bu.forEach((s=>{this.Hu(s.key)&&(this.Nu=this.Nu.add(s.key))}));const e=[];return t.forEach((s=>{this.Nu.has(s)||e.push(new s_(s))})),this.Nu.forEach((s=>{t.has(s)||e.push(new i_(s))})),e}Ju(t){this.Ou=t.Jo,this.Nu=$t();const e=this.ku(t.documents);return this.applyChanges(e,!0)}Yu(){return Tl.fromInitialDocuments(this.query,this.Bu,this.mutatedKeys,this.Mu===0,this.hasCachedResults)}}const Qm="SyncEngine";class mO{constructor(t,e,s){this.query=t,this.targetId=e,this.view=s}}class pO{constructor(t){this.key=t,this.Zu=!1}}class gO{constructor(t,e,s,a,l,c){this.localStore=t,this.remoteStore=e,this.eventManager=s,this.sharedClientState=a,this.currentUser=l,this.maxConcurrentLimboResolutions=c,this.Xu={},this.ec=new co((h=>zv(h)),Kf),this.tc=new Map,this.nc=new Set,this.rc=new Ce(Nt.comparator),this.sc=new Map,this._c=new Lm,this.oc={},this.ac=new Map,this.uc=ha.Cs(),this.onlineState="Unknown",this.cc=void 0}get isPrimaryClient(){return this.cc===!0}}async function yO(n,t,e=!0){const s=c_(n);let a;const l=s.ec.get(t);return l?(s.sharedClientState.addLocalQueryTarget(l.targetId),a=l.view.Yu()):a=await r_(s,t,e,!0),a}async function vO(n,t){const e=c_(n);await r_(e,t,!0,!1)}async function r_(n,t,e,s){const a=await QI(n.localStore,cn(t)?t:Ns(t)),l=a.targetId,c=n.sharedClientState.addLocalQueryTarget(l,e);let h;return s&&(h=await _O(n,t,l,c==="current",a.resumeToken)),n.isPrimaryClient&&e&&Kv(n.remoteStore,a),h}async function _O(n,t,e,s,a){n.lc=(_,x,R)=>(async function(j,F,q,tt){let Z=F.view.ku(q);Z.Uo&&(Z=await o9(j.localStore,F.query,!1).then((({documents:I})=>F.view.ku(I,Z))));const nt=tt&&tt.targetChanges.get(F.targetId),ht=tt&&tt.targetMismatches.get(F.targetId)!=null,Et=F.view.applyChanges(Z,j.isPrimaryClient,nt,ht);return d9(j,F.targetId,Et.ju),Et.snapshot})(n,_,x,R);const l=await o9(n.localStore,t,!0),c=new dO(t,l.Jo),h=c.ku(l.documents),m=zc.createSynthesizedTargetChangeForCurrentChange(e,s&&n.onlineState!=="Offline",a),g=c.applyChanges(h,n.isPrimaryClient,m);d9(n,e,g.ju);const y=new mO(t,e,c);return n.ec.set(t,y),n.tc.has(e)?n.tc.get(e).push(t):n.tc.set(e,[t]),g.snapshot}async function EO(n,t,e){const s=Ft(n),a=s.ec.get(t),l=s.tc.get(a.targetId);if(l.length>1)return s.tc.set(a.targetId,l.filter((c=>!Kf(c,t)))),void s.ec.delete(t);
2210s.isPrimaryClient?(s.sharedClientState.removeLocalQueryTarget(a.targetId),s.sharedClientState.isActiveQueryTarget(a.targetId)||await S6(s.localStore,a.targetId,!1).then((()=>{s.sharedClientState.clearQueryState(a.targetId),e&&Um(s.remoteStore,a.targetId),C6(s,a.targetId)})).catch(Rl)):(C6(s,a.targetId),await S6(s.localStore,a.targetId,!0))}async function TO(n,t){const e=Ft(n),s=e.ec.get(t),a=e.tc.get(s.targetId);e.isPrimaryClient&&a.length===1&&(e.sharedClientState.removeLocalQueryTarget(s.targetId),Um(e.remoteStore,s.targetId))}async function AO(n,t,e){const s=NO(n);try{const a=await(function(c,h){const m=Ft(c),g=Se.now(),y=h.reduce(((R,N)=>R.add(N.key)),$t());let _,x;return m.persistence.runTransaction("Locally write mutations","readwrite",(R=>{let N=Xn(),j=$t();return m.Qo.getEntries(R,y).next((F=>{N=F,N.forEach(((q,tt)=>{tt.isValidDocument()||(j=j.add(q))}))})).next((()=>m.localDocuments.getOverlayedDocuments(R,N))).next((F=>{_=F;const q=[];for(const tt of h){const Z=bN(tt,_.get(tt.key).overlayedDocument);Z!=null&&q.push(new uo(tt.key,Z,By(Z.value.mapValue),Rs.exists(!0)))}return m.mutationQueue.addMutationBatch(R,g,q,h)})).next((F=>{x=F;const q=F.applyToLocalDocumentSet(_,j);return m.documentOverlayCache.saveOverlays(R,F.batchId,q)}))})).then((()=>({batchId:x.batchId,changes:sv(_)})))})(s.localStore,t);s.sharedClientState.addPendingMutation(a.batchId),(function(c,h,m){let g=c.oc[c.currentUser.toKey()];g||(g=new Ce(Zt)),g=g.insert(h,m),c.oc[c.currentUser.toKey()]=g})(s,a.batchId,e),await qc(s,a.changes),await Wf(s.remoteStore)}catch(a){const l=Gm(a,"Failed to persist write");e.reject(l)}}async function a_(n,t){const e=Ft(n);try{const s=await qI(e.localStore,t);
vendor: 4,317 bytes, line 2210
2210t.targetChanges.forEach(((a,l)=>{const c=e.sc.get(l);c&&(Ct(a.addedDocuments.size+a.modifiedDocuments.size+a.removedDocuments.size<=1,22616),a.addedDocuments.size>0?c.Zu=!0:a.modifiedDocuments.size>0?Ct(c.Zu,14607):a.removedDocuments.size>0&&(Ct(c.Zu,42227),c.Zu=!1))})),await qc(e,s,t)}catch(s){await Rl(s)}}function f9(n,t,e){const s=Ft(n);if(s.isPrimaryClient&&e===0||!s.isPrimaryClient&&e===1){const a=[];s.ec.forEach(((l,c)=>{const h=c.view.Ru(t);h.snapshot&&a.push(h.snapshot)})),(function(c,h){const m=Ft(c);m.onlineState=h;let g=!1;m.queries.forEach(((y,_)=>{for(const x of _.Eu)x.Ru(h)&&(g=!0)})),g&&Ym(m)})(s.eventManager,t),a.length&&s.Xu.zn(a),s.onlineState=t,s.isPrimaryClient&&s.sharedClientState.setOnlineState(t)}}async function xO(n,t,e){const s=Ft(n);s.sharedClientState.updateQueryState(t,"rejected",e);const a=s.sc.get(t),l=a&&a.key;if(l){let c=new Ce(Nt.comparator);c=c.insert(l,Vn.newNoDocument(l,Bt.min()));const h=$t().add(l),m=new Uc(Bt.min(),new Map,new Ce(Zt),c,Xn(),h);await a_(s,m),s.rc=s.rc.remove(l),s.sc.delete(t),Km(s)}else await S6(s.localStore,t,!1).then((()=>C6(s,t,e))).catch(Rl)}async function SO(n,t){const e=Ft(n),s=t.batch.batchId;try{const a=await HI(e.localStore,t);l_(e,s,null),o_(e,s),e.sharedClientState.updateMutationState(s,"acknowledged"),await qc(e,a)}catch(a){await Rl(a)}}async function wO(n,t,e){const s=Ft(n);try{const a=await(function(c,h){const m=Ft(c);return m.persistence.runTransaction("Reject batch","readwrite-primary",(g=>{let y;return m.mutationQueue.lookupMutationBatch(g,h).next((_=>(Ct(_!==null,37113),y=_.keys(),m.mutationQueue.removeMutationBatch(g,_)))).next((()=>m.mutationQueue.performConsistencyCheck(g))).next((()=>m.documentOverlayCache.removeOverlaysForBatchId(g,y,h))).next((()=>m.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(g,y))).next((()=>m.localDocuments.getDocuments(g,y)))}))})(s.localStore,t);l_(s,t,e),o_(s,t),s.sharedClientState.updateMutationState(t,"rejected",e),await qc(s,a)}catch(a){await Rl(a)}}function o_(n,t){(n.ac.get(t)||[]).forEach((e=>{e.resolve()})),n.ac.delete(t)}function l_(n,t,e){const s=Ft(n);let a=s.oc[s.currentUser.toKey()];if(a){const l=a.get(t);l&&(e?l.reject(e):l.resolve(),a=a.remove(t)),s.oc[s.currentUser.toKey()]=a}}function C6(n,t,e=null){n.sharedClientState.removeLocalQueryTarget(t);for(const s of n.tc.get(t))n.ec.delete(s),e&&n.Xu.Ec(s,e);n.tc.delete(t),n.isPrimaryClient&&n._c.s_(t).forEach((s=>{n._c.containsKey(s)||u_(n,s)}))}function u_(n,t){n.nc.delete(t.path.canonicalString());const e=n.rc.get(t);e!==null&&(Um(n.remoteStore,e),n.rc=n.rc.remove(t),n.sc.delete(e),Km(n))}function d9(n,t,e){for(const s of e)s instanceof i_?(n._c.addReference(s.key,t),bO(n,s)):s instanceof s_?(_t(Qm,"Document no longer in limbo: "+s.key),n._c.removeReference(s.key,t),n._c.containsKey(s.key)||u_(n,s.key)):Vt(19791,{hc:s})}function bO(n,t){const e=t.key,s=e.path.canonicalString();n.rc.get(e)||n.nc.has(s)||(_t(Qm,"New document in limbo: "+e),n.nc.add(s),Km(n))}function Km(n){for(;n.nc.size>0&&n.rc.size<n.maxConcurrentLimboResolutions;){const t=n.nc.values().next().value;n.nc.delete(t);const e=new Nt(ue.fromString(t)),s=n.uc.next();n.sc.set(s,new pO(e)),n.rc=n.rc.insert(e,s),Kv(n.remoteStore,new sr(Ns(pm(e.path)),s,"TargetPurposeLimboResolution",Mf.ce))}}async function qc(n,t,e){const s=Ft(n),a=[],l=[],c=[];s.ec.isEmpty()||(s.ec.forEach(((h,m)=>{c.push(s.lc(m,t,e).then((g=>{var y;if((g||e)&&s.isPrimaryClient){const _=g?!g.fromCache:(y=e==null?void 0:e.targetChanges.get(m.targetId))==null?void 0:y.current;s.sharedClientState.updateQueryState(m.targetId,_?"current":"not-current")}if(g){a.push(g);const _=jm.vo(m.targetId,g);l.push(_)}})))})),await Promise.all(c),s.Xu.zn(a),await(async function(m,g){const y=Ft(m);try{await y.persistence.runTransaction("notifyLocalViewChanges","readwrite",(_=>lt.forEach(g,(x=>lt.forEach(x.wo,(R=>y.persistence.referenceDelegate.addReference(_,x.targetId,R))).next((()=>lt.forEach(x.bo,(R=>y.persistence.referenceDelegate.removeReference(_,x.targetId,R)))))))))}catch(_){if(!Nl(_))throw _;_t(Bm,"Failed to update sequence numbers: "+_)}for(const _ of g){const x=_.targetId;if(!_.fromCache){const R=y.$o.get(x),N=R.snapshotVersion,j=R.withLastLimboFreeSnapshotVersion(N);y.$o=y.$o.insert(x,j)}}})(s.localStore,l))}async function CO(n,t){const e=Ft(n);
2210if(!e.currentUser.isEqual(t)){_t(Qm,"User change. New user:",t.toKey());const s=await Yv(e.localStore,t);e.currentUser=t,(function(l,c){l.ac.forEach((h=>{h.forEach((m=>{m.reject(new vt(ot.CANCELLED,c))}))})),l.ac.clear()})(e,"'waitForPendingWrites' promise is rejected due to a user change."),e.sharedClientState.handleUserChange(t,s.removedBatchIds,s.addedBatchIds),await qc(e,s.zo)}}function RO(n,t){const e=Ft(n),s=e.sc.get(t);if(s&&s.Zu)return $t().add(s.key);{let a=$t();const l=e.tc.get(t);if(!l)return a;for(const c of l??[]){const h=e.ec.get(c);a=a.unionWith(h.view.Uu)}return a}}function c_(n){const t=Ft(n);return t.remoteStore.remoteSyncer.applyRemoteEvent=a_.bind(null,t),t.remoteStore.remoteSyncer.getRemoteKeysForTarget=RO.bind(null,t),t.remoteStore.remoteSyncer.rejectListen=xO.bind(null,t),t.Xu.zn=hO.bind(null,t.eventManager),t.Xu.Ec=fO.bind(null,t.eventManager),t}function NO(n){const t=Ft(n);return t.remoteStore.remoteSyncer.applySuccessfulWrite=SO.bind(null,t),t.remoteStore.remoteSyncer.rejectFailedWrite=wO.bind(null,t),t}class wf{constructor(){this.kind="memory",this.synchronizeTabs=!1}async initialize(t){this.serializer=zf(t.databaseInfo.databaseId),this.sharedClientState=this.Rc(t),this.persistence=this.Ic(t),await this.persistence.start(),this.localStore=this.Ac(t),this.gcScheduler=this.Vc(t,this.localStore),this.indexBackfillerScheduler=this.dc(t,this.localStore)}Vc(t,e){return null}dc(t,e){return null}Ac(t){return FI(this.persistence,new BI,t.initialUser,this.serializer)}Ic(t){return new Gv(km.C_,this.serializer)}Rc(t){return new $I}async terminate(){var t,e;(t=this.gcScheduler)==null||t.stop(),(e=this.indexBackfillerScheduler)==null||e.stop(),this.sharedClientState.shutdown(),await this.persistence.shutdown()}}wf.provider={build:()=>new wf};class DO extends wf{constructor(t){super(),this.cacheSizeBytes=t}Vc(t,e){Ct(this.persistence.referenceDelegate instanceof xf,46915);const s=this.persistence.referenceDelegate.garbageCollector;return new ID(s,t.asyncQueue,e)}Ic(t){const e=this.cacheSizeBytes!==void 0?$n.withCacheSize(this.cacheSizeBytes):$n.DEFAULT;return new Gv((s=>xf.C_(s,e)),this.serializer)}}class R6{async initialize(t,e){this.localStore||(this.localStore=t.localStore,this.sharedClientState=t.sharedClientState,this.datastore=this.createDatastore(e),this.remoteStore=this.createRemoteStore(e),this.eventManager=this.createEventManager(e),this.syncEngine=this.createSyncEngine(e,!t.synchronizeTabs),this.sharedClientState.onlineStateHandler=s=>f9(this.syncEngine,s,1),this.remoteStore.remoteSyncer.handleCredentialChange=CO.bind(null,this.syncEngine),await lO(this.remoteStore,this.syncEngine.isPrimaryClient))}createEventManager(t){return(function(){return new cO})()}createDatastore(t){const e=zf(t.databaseInfo.databaseId),s=AD(t.databaseInfo);return CD(t.authCredentials,t.appCheckCredentials,s,e)}createRemoteStore(t){return(function(s,a,l,c,h){return new WI(s,a,l,c,h)})(this.localStore,this.datastore,t.asyncQueue,(e=>f9(this.syncEngine,e,0)),(function(){return W8.C()?new W8:new vD})())}createSyncEngine(t,e){return(function(a,l,c,h,m,g,y){const _=new gO(a,l,c,h,m,g);return y&&(_.cc=!0),_})(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,t.initialUser,t.maxConcurrentLimboResolutions,e)}async terminate(){var t,e;await(async function(a){const l=Ft(a);_t(Ms,"RemoteStore shutting down."),l.tu.add(5),await Hc(l),l.ru.shutdown(),l.iu.set("Unknown")})(this.remoteStore),(t=this.datastore)==null||t.terminate(),(e=this.eventManager)==null||e.terminate()}}R6.provider={build:()=>new R6};/** 2211 * @license 2212 * Copyright 2020 Google LLC 2213 * 2214 * Licensed under the Apache License, Version 2.0 (the "License"); 2215 * you may not use this file except in compliance with the License. 2216 * You may obtain a copy of the License at 2217 * 2218 * http://www.apache.org/licenses/LICENSE-2.0 2219 * 2220 * Unless required by applicable law or agreed to in writing, software 2221 * distributed under the License is distributed on an "AS IS" BASIS, 2222 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2223 * See the License for the specific language governing permissions and 2224 * limitations under the License. 2225 *//** 2226 * @license 2227 * Copyright 2017 Google LLC 2228 * 2229 * Licensed under the Apache License, Version 2.0 (the "License");
2230 * you may not use this file except in compliance with the License. 2231 * You may obtain a copy of the License at 2232 * 2233 * http://www.apache.org/licenses/LICENSE-2.0 2234 * 2235 * Unless required by applicable law or agreed to in writing, software 2236 * distributed under the License is distributed on an "AS IS" BASIS, 2237 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2238 * See the License for the specific language governing permissions and 2239 * limitations under the License. 2240 */class h_{constructor(t){this.observer=t,this.muted=!1}next(t){this.muted||this.observer.next&&this.mc(this.observer.next,t)}error(t){this.muted||(this.observer.error?this.mc(this.observer.error,t):lr("Uncaught Error in snapshot listener:",t.toString()))}gc(){this.muted=!0}mc(t,e){setTimeout((()=>{this.muted||t(e)}),0)}}/** 2241 * @license 2242 * Copyright 2017 Google LLC 2243 * 2244 * Licensed under the Apache License, Version 2.0 (the "License"); 2245 * you may not use this file except in compliance with the License. 2246 * You may obtain a copy of the License at 2247 * 2248 * http://www.apache.org/licenses/LICENSE-2.0 2249 * 2250 * Unless required by applicable law or agreed to in writing, software 2251 * distributed under the License is distributed on an "AS IS" BASIS, 2252 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2253 * See the License for the specific language governing permissions and 2254 * limitations under the License. 2255 */const da="FirestoreClient";class VO{constructor(t,e,s,a,l){this.authCredentials=t,this.appCheckCredentials=e,this.asyncQueue=s,this._databaseInfo=a,this.user=Dn.UNAUTHENTICATED,this.clientId=um.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this._uninitializedComponentsProvider=l,this.authCredentials.start(s,(async c=>{_t(da,"Received user=",c.uid),await this.authCredentialListener(c),this.user=c})),this.appCheckCredentials.start(s,(c=>(_t(da,"Received new app check token=",c),this.appCheckCredentialListener(c,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(t){this.authCredentialListener=t}setAppCheckTokenChangeListener(t){this.appCheckCredentialListener=t}terminate(){this.asyncQueue.enterRestrictedMode();const t=new Zr;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted((async()=>{try{this._onlineComponents&&await this._onlineComponents.terminate(),this._offlineComponents&&await this._offlineComponents.terminate(),this.authCredentials.shutdown(),this.appCheckCredentials.shutdown(),t.resolve()}catch(e){const s=Gm(e,"Failed to shutdown persistence");t.reject(s)}})),t.promise}}async function D0(n,t){n.asyncQueue.verifyOperationInProgress(),_t(da,"Initializing OfflineComponentProvider");const e=n.configuration;await t.initialize(e);let s=e.initialUser;n.setCredentialChangeListener((async a=>{s.isEqual(a)||(await Yv(t.localStore,a),s=a)})),t.persistence.setDatabaseDeletedListener((()=>n.terminate())),n._offlineComponents=t}async function m9(n,t){n.asyncQueue.verifyOperationInProgress();const e=await IO(n);_t(da,"Initializing OnlineComponentProvider"),await t.initialize(e,n.configuration),n.setCredentialChangeListener((s=>u9(t.remoteStore,s))),n.setAppCheckTokenChangeListener(((s,a)=>u9(t.remoteStore,a))),n._onlineComponents=t}async function IO(n){if(!n._offlineComponents)if(n._uninitializedComponentsProvider){_t(da,"Using user provided OfflineComponentProvider");try{await D0(n,n._uninitializedComponentsProvider._offline)}catch(t){const e=t;if(!(function(a){return a.name==="FirebaseError"?a.code===ot.FAILED_PRECONDITION||a.code===ot.UNIMPLEMENTED:!(typeof DOMException<"u"&&a instanceof DOMException)||a.code===22||a.code===20||a.code===11})(e))throw e;Zi("Error using user provided cache. Falling back to memory cache: "+e),await D0(n,new wf)}}else _t(da,"Using default OfflineComponentProvider"),await D0(n,new DO(void 0));return n._offlineComponents}async function f_(n){return n._onlineComponents||(n._uninitializedComponentsProvider?(_t(da,"Using user provided OnlineComponentProvider"),await m9(n,n._uninitializedComponentsProvider._online)):(_t(da,"Using default OnlineComponentProvider"),await m9(n,new R6))),n._onlineComponents}function OO(n){return f_(n).then((t=>t.syncEngine))}async function N6(n){const t=await f_(n),e=t.eventManager;return e.onListen=yO.bind(null,t.syncEngine),e.onUnlisten=EO.bind(null,t.syncEngine),e.onFirstRemoteStoreListen=vO.bind(null,t.syncEngine),e.onLastRemoteStoreUnlisten=TO.bind(null,t.syncEngine),e}function MO(n,t,e,s){const a=new h_(s),l=new n_(t,a,e);return n.asyncQueue.enqueueAndForget((async()=>t_(await N6(n),l))),()=>{a.gc(),n.asyncQueue.enqueueAndForget((async()=>e_(await N6(n),l)))}}function PO(n,t,e={}){const s=new Zr;return n.asyncQueue.enqueueAndForget((async()=>(function(l,c,h,m,g){const y=new h_({next:x=>{y.gc(),c.enqueueAndForget((()=>e_(l,_))),x.fromCache&&m.source==="server"?g.reject(new vt(ot.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(x)},error:x=>g.reject(x)}),_=new n_(h instanceof ac?yI(h):h,y,{includeMetadataChanges:!0,waitForSyncWhe
2255nOnline:!0});return t_(l,_)})(await N6(n),n.asyncQueue,t,e,s))),s.promise}function LO(n,t){const e=new Zr;return n.asyncQueue.enqueueAndForget((async()=>AO(await OO(n),t,e))),e.promise}/** 2256 * @license 2257 * Copyright 2020 Google LLC 2258 * 2259 * Licensed under the Apache License, Version 2.0 (the "License"); 2260 * you may not use this file except in compliance with the License. 2261 * You may obtain a copy of the License at 2262 * 2263 * http://www.apache.org/licenses/LICENSE-2.0 2264 * 2265 * Unless required by applicable law or agreed to in writing, software 2266 * distributed under the License is distributed on an "AS IS" BASIS, 2267 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2268 * See the License for the specific language governing permissions and 2269 * limitations under the License. 2270 */const p9="AsyncQueue";class g9{constructor(t=Promise.resolve()){this.qc=[],this.$c=!1,this.Kc=[],this.Wc=null,this.Qc=!1,this.Gc=!1,this.zc=[],this.xn=new vv(this,"async_queue_retry"),this.jc=()=>{const s=N0();s&&_t(p9,"Visibility state changed to "+s.visibilityState),this.xn.gn()},this.Hc=t;const e=N0();e&&typeof e.addEventListener=="function"&&e.addEventListener("visibilitychange",this.jc)}get isShuttingDown(){return this.$c}enqueueAndForget(t){this.enqueue(t)}enqueueAndForgetEvenWhileRestricted(t){this.Jc(),this.Yc(t)}enterRestrictedMode(t){if(!this.$c){this.$c=!0,this.Gc=t||!1;const e=N0();e&&typeof e.removeEventListener=="function"&&e.removeEventListener("visibilitychange",this.jc)}}enqueue(t){if(this.Jc(),this.$c)return new Promise((()=>{}));const e=new Zr;return this.Yc((()=>this.$c&&this.Gc?Promise.resolve():(t().then(e.resolve,e.reject),e.promise))).then((()=>e.promise))}enqueueRetryable(t){this.enqueueAndForget((()=>(this.qc.push(t),this.Zc())))}async Zc(){if(this.qc.length!==0){try{await this.qc[0](),this.qc.shift(),this.xn.reset()}catch(t){if(!Nl(t))throw t;_t(p9,"Operation failed with retryable error: "+t)}this.qc.length>0&&this.xn.mn((()=>this.Zc()))}}Yc(t){const e=this.Hc.then((()=>(this.Qc=!0,t().catch((s=>{throw this.Wc=s,this.Qc=!1,lr("INTERNAL UNHANDLED ERROR: ",y9(s)),s})).then((s=>(this.Qc=!1,s))))));return this.Hc=e,e}enqueueAfterDelay(t,e,s){this.Jc(),this.zc.indexOf(t)>-1&&(e=0);const a=qm.createAndSchedule(this,t,e,s,(l=>this.Xc(l)));return this.Kc.push(a),a}Jc(){this.Wc&&Vt(47125,{el:y9(this.Wc)})}verifyOperationInProgress(){}async tl(){let t;do t=this.Hc,await t;while(t!==this.Hc)}nl(t){for(const e of this.Kc)if(e.timerId===t)return!0;return!1}rl(t){return this.tl().then((()=>{this.Kc.sort(((e,s)=>e.targetTimeMs-s.targetTimeMs));for(const e of this.Kc)if(e.skipDelay(),t!=="all"&&e.timerId===t)break;return this.tl()}))}il(t){this.zc.push(t)}Xc(t){const e=this.Kc.indexOf(t);this.Kc.splice(e,1)}}function y9(n){let t=n.message||"";return n.stack&&(t=n.stack.includes(n.message)?n.stack:n.message+` 2271`+n.stack),t}class Al extends Ff{constructor(t,e,s,a){super(t,e,s,a),this.type="firestore",this._queue=new g9,this._persistenceKey=(a==null?void 0:a.name)||"[DEFAULT]"}async _terminate(){if(this._firestoreClient){const t=this._firestoreClient.terminate();this._queue=new g9(t),this._firestoreClient=void 0,await t}}}function kO(n,t){const e=typeof n=="object"?n:xR(),s=typeof n=="string"?n:t||df,a=vR(e,"firestore").getImmediate({identifier:s});if(!a._initialized){const l=cC("firestore");l&&PD(a,...l)}return a}function $m(n){if(n._terminated)throw new vt(ot.FAILED_PRECONDITION,"The client has already been terminated.");return n._firestoreClient||jO(n),n._firestoreClient}function jO(n){var s,a,l,c;const t=n._freezeSettings(),e=ND(n._databaseId,((s=n._app)==null?void 0:s.options.appId)||"",n._persistenceKey,(a=n._app)==null?void 0:a.options.apiKey,t);n._componentsProvider||(l=t.localCache)!=null&&l._offlineComponentProvider&&((c=t.localCache)!=null&&c._onlineComponentProvider)&&(n._componentsProvider={_offline:t.localCache._offlineComponentProvider,_online:t.localCache._onlineComponentProvider}),n._firestoreClient=new VO(n._authCredentials,n._appCheckCredentials,n._queue,e,n._componentsProvider&&(function(m){const g=m==null?void 0:m._online.build();return{_offline:m==null?void 0:m._offline.build(g),_online:g}})(n._componentsProvider))}/** 2272 * @license 2273 * Copyright 2020 Google LLC 2274 * 2275 * Licensed under the Apache License, Version 2.0 (the "License");
2276 * you may not use this file except in compliance with the License. 2277 * You may obtain a copy of the License at 2278 * 2279 * http://www.apache.org/licenses/LICENSE-2.0 2280 * 2281 * Unless required by applicable law or agreed to in writing, software 2282 * distributed under the License is distributed on an "AS IS" BASIS, 2283 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2284 * See the License for the specific language governing permissions and 2285 * limitations under the License. 2286 */class BO{convertValue(t,e="none"){switch(rn(t)){case 0:return null;case 1:return t.booleanValue;case 2:return De(t.integerValue||t.doubleValue);case 3:return this.convertTimestamp(t.timestampValue);case 4:return this.convertServerTimestamp(t,e);case 5:return t.stringValue;case 6:return this.convertBytes(oa(t.bytesValue));case 7:return this.convertReference(t.referenceValue);case 8:return this.convertGeoPoint(t.geoPointValue);case 9:return this.convertArray(t.arrayValue,e);case 11:return this.convertObject(t.mapValue,e);case 10:return this.convertVectorValue(t.mapValue);default:throw Vt(62114,{value:t})}}convertObject(t,e){return this.convertObjectMap(t.fields,e)}convertObjectMap(t,e="none"){const s={};return lo(t,((a,l)=>{s[a]=this.convertValue(l,e)})),s}convertVectorValue(t){var s,a,l;const e=(l=(a=(s=t.fields)==null?void 0:s[_c].arrayValue)==null?void 0:a.values)==null?void 0:l.map((c=>De(c.doubleValue)));return new Wn(e)}convertGeoPoint(t){return new Vs(De(t.latitude),De(t.longitude))}convertArray(t,e){return(t.values||[]).map((s=>this.convertValue(s,e)))}convertServerTimestamp(t,e){switch(e){case"previous":const s=jc(t);return s==null?null:this.convertValue(s,e);case"estimate":return this.convertTimestamp(gl(t));default:return null}}convertTimestamp(t){const e=aa(t);return new Se(e.seconds,e.nanos)}convertDocumentKey(t,e){const s=ue.fromString(t);Ct(mv(s),9688,{name:t});const a=new vc(s.get(1),s.get(3)),l=new Nt(s.popFirst(5));return a.isEqual(e)||lr(`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 (${e.projectId}/${e.database}) instead.`),l}}/** 2287 * @license 2288 * Copyright 2024 Google LLC 2289 * 2290 * Licensed under the Apache License, Version 2.0 (the "License"); 2291 * you may not use this file except in compliance with the License. 2292 * You may obtain a copy of the License at 2293 * 2294 * http://www.apache.org/licenses/LICENSE-2.0 2295 * 2296 * Unless required by applicable law or agreed to in writing, software 2297 * distributed under the License is distributed on an "AS IS" BASIS, 2298 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2299 * See the License for the specific language governing permissions and 2300 * limitations under the License. 2301 */class Xm extends BO{constructor(t){super(),this.firestore=t}convertBytes(t){return new Ri(t)}convertReference(t){const e=this.convertDocumentKey(t,this.firestore._databaseId);return new Ue(this.firestore,null,e)}}const v9="@firebase/firestore",_9="4.16.0";/** 2302 * @license 2303 * Copyright 2017 Google LLC 2304 * 2305 * Licensed under the Apache License, Version 2.0 (the "License"); 2306 * you may not use this file except in compliance with the License. 2307 * You may obtain a copy of the License at 2308 * 2309 * http://www.apache.org/licenses/LICENSE-2.0 2310 * 2311 * Unless required by applicable law or agreed to in writing, software 2312 * distributed under the License is distributed on an "AS IS" BASIS, 2313 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2314 * See the License for the specific language governing permissions and 2315 * limitations under the License. 2316 */function E9(n){return(function(e,s){if(typeof e!="object"||e===null)return!1;const a=e;for(const l of s)if(l in a&&typeof a[l]=="function")return!0;return!1})(n,["next","error","complete"])}/** 2317 * @license 2318 * Copyright 2020 Google LLC 2319 * 2320 * Licensed under the Apache License, Version 2.0 (the "License"); 2321 * you may not use this file except in compliance with the License. 2322 * You may obtain a copy of the License at 2323 * 2324 * http://www.apache.org/licenses/LICENSE-2.0 2325 * 2326 * Unless required by applicable law or agreed to in writing, softw
2326are 2327 * distributed under the License is distributed on an "AS IS" BASIS, 2328 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2329 * See the License for the specific language governing permissions and 2330 * limitations under the License. 2331 */class d_{constructor(t,e,s,a,l){this._firestore=t,this._userDataWriter=e,this._key=s,this._document=a,this._converter=l}get id(){return this._key.path.lastSegment()}get ref(){return new Ue(this._firestore,this._converter,this._key)}exists(){return this._document!==null}data(){if(this._document){if(this._converter){const t=new UO(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(t)}return this._userDataWriter.convertValue(this._document.data.value)}}_fieldsProto(){var t;return((t=this._document)==null?void 0:t.data.clone().value.mapValue.fields)??void 0}get(t){if(this._document){const e=this._document.data.field(Vl("DocumentSnapshot.get",t));if(e!==null)return this._userDataWriter.convertValue(e)}}}class UO extends d_{data(){return super.data()}}/** 2332 * @license 2333 * Copyright 2020 Google LLC 2334 * 2335 * Licensed under the Apache License, Version 2.0 (the "License"); 2336 * you may not use this file except in compliance with the License. 2337 * You may obtain a copy of the License at 2338 * 2339 * http://www.apache.org/licenses/LICENSE-2.0 2340 * 2341 * Unless required by applicable law or agreed to in writing, software 2342 * distributed under the License is distributed on an "AS IS" BASIS, 2343 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2344 * See the License for the specific language governing permissions and 2345 * limitations under the License. 2346 */function m_(n){if(n.limitType==="L"&&n.explicitOrderBy.length===0)throw new vt(ot.UNIMPLEMENTED,"limitToLast() queries require specifying at least one orderBy() clause")}class Wm{}class p_ extends Wm{}function g_(n,t,...e){let s=[];t instanceof Wm&&s.push(t),s=s.concat(e),(function(l){const c=l.filter((m=>m instanceof Zm)).length,h=l.filter((m=>m instanceof Zf)).length;if(c>1||c>0&&h>0)throw new vt(ot.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)n=a._apply(n);return n}class Zf extends p_{constructor(t,e,s){super(),this._field=t,this._op=e,this._value=s,this.type="where"}static _create(t,e,s){return new Zf(t,e,s)}_apply(t){const e=this._parse(t);return y_(t._query,e),new pa(t.firestore,t.converter,m6(t._query,e))}_parse(t){const e=xv(t.firestore);return(function(l,c,h,m,g,y,_){let x;if(g.isKeyField()){if(y==="array-contains"||y==="array-contains-any")throw new vt(ot.INVALID_ARGUMENT,`Invalid Query. You can't perform '${y}' queries on documentId().`);if(y==="in"||y==="not-in"){A9(_,y);const N=[];for(const j of _)N.push(T9(m,l,j));x={arrayValue:{values:N}}}else x=T9(m,l,_)}else y!=="in"&&y!=="not-in"&&y!=="array-contains-any"||A9(_,y),x=UD(h,c,_,y==="in"||y==="not-in");return tn.create(g,y,x)})(t._query,"where",e,t.firestore._databaseId,this._field,this._op,this._value)}}function zO(n,t,e){const s=t,a=Vl("where",n);return Zf._create(a,s,e)}class Zm extends Wm{constructor(t,e){super(),this.type=t,this._queryConstraints=e}static _create(t,e){return new Zm(t,e)}_parse(t){const e=this._queryConstraints.map((s=>s._parse(t))).filter((s=>s.getFilters().length>0));return e.length===1?e[0]:Ji.create(e,this._getOperator())}_apply(t){const e=this._parse(t);return e.getFilters().length===0?t:((function(a,l){let c=a;const h=l.getFlattenedFilters();for(const m of h)y_(c,m),c=m6(c,m)})(t._query,e),new pa(t.firestore,t.converter,m6(t._query,e)))}_getQueryConstraints(){return this._queryConstraints}_getOperator(){return this.type==="and"?"and":"or"}}class Jm extends p_{constructor(t,e){super(),this._field=t,this._direction=e,this.type="orderBy"}static _create(t,e){return new Jm(t,e)}_apply(t){const e=(function(a,l,c){if(a.startAt!==null)throw new vt(ot.INVALID_ARGUMENT,"Invalid query. You must not call startAt() or startAfter() before calling orderBy().");if(a.endAt!==null)throw new vt(ot.INVALID_ARGUMENT,"Invalid query. You must not call endAt() or endBefore() before calling orderBy().");return new wc(l,c)})(t._query,this._field,this._direction);return new pa(t.firestore,t.converter,zN(t._query,e))}}function FO(n,t="asc"){const e=t,s=Vl("orderBy",n);return Jm._create(s,e)}function T9(n,t,e){if(typeof(e=ro(e))=="string"){if(e==="")throw new vt(ot.INVALID_ARGUMENT,"Invalid query. When querying with documentId(), you must provide a valid document ID, but it was an empty string.");if(!ev(t)&&e.indexOf("/")!==-1)throw new vt(ot.INVALID_ARGUMENT,`Invalid query. When querying a collection by documentId(), you must provide a plain document ID, but '${e}' contains a '/' character.`);const s=t.path.child(ue.fromString(e));if(!Nt.isDocumentKey(s))throw new vt(ot.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 L8(n,new Nt(s))}if(e instanceof Ue)return L8(n,e._key);throw new vt(ot.INVALID_ARGUMENT,`Invalid query. When querying with documentId(), you must provide a valid string or a DocumentReference, but it was: ${Of(e)}.`)}function A9(n,t){if(!Array.isArray(n)||n.length===0)throw new vt(ot.INVALID_ARGUMENT,`Invalid Query. A non-empty array is required for '${t.toString()}' filters.`)}function y_(n,t){const e=(function(a,l){for(const c of a)for(const h of c.getFlattenedFilters())if(l.indexOf(h.op)>=0)return h.op;return null})(n.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[]}})(t.op));if(e!==null)throw e===t.op?new vt(ot.INVALID_ARGUMENT,`Invalid query. You cannot use more than one '${t.op.toString()}' filter.`):new vt(ot.INVALID_ARGUMENT,`Invalid query. You cannot use '${t.op.toString()}' filters with '${e.toString()}' filters.`)}function HO(n,t,e){let s;return s=n?n.toFirestore(t):t,s}class Ku{constructor(t,e){this.hasPendingWrites=t,this.fromCache=e}isEqual(t){return this.hasPendingWrites===t.hasPendingWrites&&this.fromCache===t.fromCache}}class io extends d_{constructor(t,e,s,a,l,c){super(t,e,s,a,c),this._firestore=t,this._firestoreImpl=t,this.metadata=l}exists(){return super.exists()}data(t={}){if(this._document){if(this._converter){const e=new $h(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(e,t)}return this._userDataWriter.convertValue(this._document.data.value,t.serverTimestamps)}}get(t,e={}){if(this._document){const s=this._document.data.field(Vl("DocumentSnapshot.get",t));if(s!==null)return this._userDataWriter.convertValue(s,e.serverTimestamps)}}toJSON(){if(this.metadata.hasPendingWrites)throw new vt(ot.FAILED_PRECONDITION,"DocumentSnapshot.toJSON() attempted to serialize a document with pending writes. Await waitForPendingWrites() before invoking toJSON().");const t=this._document,e={};return e.type=io._jsonSchemaVersion,e.bundle="",e.bundleSource="DocumentSnapshot",e.bundleName=this._key.toString(),!t||!t.isValidDocument()||!t.isFoundDocument()?e:(this._userDataWriter.convertObjectMap(t.data.value.mapValue.fields,"previous"),e.bundle=(this._firestore,this.ref.path,"NOT SUPPORTED"),e)}}io._jsonSchemaVersion="firestore/documentSnapshot/1.0",io._jsonSchema={type:en("str
2346ing",io._jsonSchemaVersion),bundleSource:en("string","DocumentSnapshot"),bundleName:en("string"),bundle:en("string")};class $h extends io{data(t={}){return super.data(t)}}class so{constructor(t,e,s,a){this._firestore=t,this._userDataWriter=e,this._snapshot=a,this.metadata=new Ku(a.hasPendingWrites,a.fromCache),this.query=s}get docs(){const t=[];return this.forEach((e=>t.push(e))),t}get size(){return this._snapshot.docs.size}get empty(){return this.size===0}forEach(t,e){this._snapshot.docs.forEach((s=>{t.call(e,new $h(this._firestore,this._userDataWriter,s.key,s,new Ku(this._snapshot.mutatedKeys.has(s.key),this._snapshot.fromCache),this.query.converter))}))}docChanges(t={}){const e=!!t.includeMetadataChanges;if(e&&this._snapshot.excludesMetadataChanges)throw new vt(ot.INVALID_ARGUMENT,"To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().");return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===e||(this._cachedChanges=(function(a,l){if(a._snapshot.oldDocs.isEmpty()){let c=0;return a._snapshot.docChanges.map((h=>{cn(a._snapshot.query)?x6(a._snapshot.query):gm(a.query._query);const m=new $h(a._firestore,a._userDataWriter,h.doc.key,h.doc,new Ku(a._snapshot.mutatedKeys.has(h.doc.key),a._snapshot.fromCache),a.query.converter);return h.doc,{type:"added",doc:m,oldIndex:-1,newIndex:c++}}))}{let c=a._snapshot.oldDocs;return a._snapshot.docChanges.filter((h=>l||h.type!==3)).map((h=>{const m=new $h(a._firestore,a._userDataWriter,h.doc.key,h.doc,new Ku(a._snapshot.mutatedKeys.has(h.doc.key),a._snapshot.fromCache),a.query.converter);let g=-1,y=-1;return h.type!==0&&(g=c.indexOf(h.doc.key),c=c.delete(h.doc.key)),h.type!==1&&(c=c.add(h.doc),y=c.indexOf(h.doc.key)),{type:qO(h.type),doc:m,oldIndex:g,newIndex:y}}))}})(this,e),this._cachedChangesIncludeMetadataChanges=e),this._cachedChanges}toJSON(){if(this.metadata.hasPendingWrites)throw new vt(ot.FAILED_PRECONDITION,"QuerySnapshot.toJSON() attempted to serialize a document with pending writes. Await waitForPendingWrites() before invoking toJSON().");const t={};t.type=so._jsonSchemaVersion,t.bundleSource="QuerySnapshot",t.bundleName=um.newId(),this._firestore._databaseId.database,this._firestore._databaseId.projectId;const e=[],s=[],a=[];return this.docs.forEach((l=>{l._document!==null&&(e.push(l._document),s.push(this._userDataWriter.convertObjectMap(l._document.data.value.mapValue.fields,"previous")),a.push(l.ref.path))})),t.bundle=(this._firestore,this.query._query,t.bundleName,"NOT SUPPORTED"),t}}function qO(n){switch(n){case 0:return"added";case 2:case 3:return"modified";case 1:return"removed";default:return Vt(61501,{type:n})}}/** 2347 * @license 2348 * Copyright 2022 Google LLC 2349 * 2350 * Licensed under the Apache License, Version 2.0 (the "License"); 2351 * you may not use this file except in compliance with the License. 2352 * You may obtain a copy of the License at 2353 * 2354 * http://www.apache.org/licenses/LICENSE-2.0 2355 * 2356 * Unless required by applicable law or agreed to in writing, software 2357 * distributed under the License is distributed on an "AS IS" BASIS, 2358 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 2359 * See the License for the specific language governing permissions and 2360 * limitations under the License. 2361 */so._jsonSchemaVersion="firestore/querySnapshot/1.0",so._jsonSchema={type:en("string",so._jsonSchemaVersion),bundleSource:en("string","QuerySnapshot"),bundleName:en("string"),bundle:en("string")};function GO(n){n=rr(n,pa);const t=rr(n.firestore,Al),e=$m(t),s=new Xm(t);return m_(n._query),PO(e,n._query).then((a=>new so(t,s,n,a)))}function YO(n,t,e){n=rr(n,Ue);const s=rr(n.firestore,Al),a=HO(n.converter,t),l=xv(s);return v_(s,[BD(l,"setDoc",n._key,a,n.converter!==null,e).toMutation(n._key,Rs.none())])}function QO(n){return v_(rr(n.firestore,Al),[new mm(n._key,Rs.none())])}function x9(n,...t){var g,y,_;n=ro(n);let e={includeMetadataChanges:!1,source:"default"},s=0;typeof t[s]!="object"||E9(t[s])||(e=t[s++]);const a={includeMetadataChanges:e.includeMetadataChanges,source:e.source};if(E9(t[s])){const x=t[s];t[s]=(g=x.next)==null?void 0:g.bind(x),t[s+1]=(y=x.error)==null?void 0:y.bind(x),t[s+2]=(_=x.complete)==null?void 0:_.bind(x)}let l,c,h;if(n instanceof Ue)c=rr(n.firestore,Al),h=pm(n._key.path),l={next:x=>{t[s]&&t[s](KO(c,n,x))},error:t[s+1],complete:t[s+2]};else{const x=rr(n,pa);c=rr(x.firestore,Al),h=x._query;const R=new Xm(c);l={next:N=>{t[s]&&t[s](new so(c,R,x,N))},error:t[s+1],complete:t[s+2]},m_(n._query)}const m=$m(c);return MO(m,h,a,l)}function v_(n,t){const e=$m(n);return LO(e,t)}function KO(n,t,e){const s=e.docs.get(t._key),a=new Xm(n);return new io(n,a,t._key,s,new Ku(e.hasPendingWrites,e.fromCache),t.converter)}(function(t,e=!0){YR(AR),cf(new dc("firestore",((s,{instanceIdentifier:a,options:l})=>{const c=s.getProvider("app").getImmediate(),h=new Al(new $R(s.getProvider("auth-internal")),new ZR(c,s.getProvider("app-check-internal")),yN(c,a),c);return l={useFetchStreams:e,...l},h._setSettings(l),h}),"PUBLIC").setMultipleInstances(!0)),cl(v9,_9,t),cl(v9,_9,"esm2020")})();const __={projectId:"astutewaitlist",appId:"1:414342730247:web:c0ae45526b4b9c267290a2",apiKey:"AIzaSyDYwWlI7GAVKVkDZabHd5w9b5j33phtq-Q",authDomain:"astutewaitlist.firebaseapp.com",firestoreDatabaseId:"ai-studio-astute-3eb20322-9c9a-4bab-a4eb-061234876066",
2361storageBucket:"astutewaitlist.firebasestorage.app",messagingSenderId:"414342730247",measurementId:""},$O=yy(__),ul=kO($O,__.firestoreDatabaseId);function XO({onAddEntry:n,onGoBack:t,initialName:e="",initialEmail:s="",totalEntries:a}){const[l,c]=ct.useState(e),[h,m]=ct.useState(s),[g,y]=ct.useState(""),[_,x]=ct.useState(null),[R,N]=ct.useState(!1),[j,F]=ct.useState(0),[q,tt]=ct.useState(!1),[Z,nt]=ct.useState(""),[ht,Et]=ct.useState([]),[I,C]=ct.useState(""),[V,M]=ct.useState(""),[P,U]=ct.useState(""),[O,At]=ct.useState(!1),[Ut,W]=ct.useState(!1),[mt,dt]=ct.useState(!1),It=["I actively use a traditional bank.","I mostly use a digital/neo bank.","I have multiple accounts across banks.","I rarely use a bank.","I donât currently have a bank account."],Ht=["High savings or investment returns.","Transparent fees and no hidden charges.","Easy-to-use mobile app or online platform.","Support to manage or reduce debt.","Fast and responsive customer service."],k=["I donât use debt and prefer to avoid it.","Debt is manageable and my bank helps me stay in control.","Debt is expensive, but I use it when necessary.","Debt feels too expensive and puts financial pressure on me.","I feel my bank encourages too much debt."],rt=["Yes, my bank helps me save and invest effectively.","Partially, my bank offers some tools but not enough.","No, my bank doesnât help me manage my finances.","Iâm not sure."],gt=yt=>{let Ot;if(ht.includes(yt))Ot=ht.filter(jt=>jt!==yt);else if(ht.length<3)Ot=[...ht,yt];else return;Et(Ot),nr("questionnaire_progress",{question:"q2_priorities",selections:Ot})},xt=async yt=>{if(yt.preventDefault(),q)return;if(y(""),!l.trim()){y("Please provide your name.");return}if(!h.trim()||!h.includes("@")){y("Please provide a valid email address.");return}if(!Z){y("Please answer Question 1: What describes your banking relationship?");return}if(ht.length===0){y("Please answer Question 2: Select at least one top priority in banking.");return}if(!I){y("Please answer Question 3: Describe your experience with debt.");return}if(!V){y("Please answer Question 4: Do you feel supported by your bank?");return}tt(!0);const Ot=(jt,Re,ve)=>Promise.race([jt,new Promise((Ii,Oi)=>setTimeout(()=>Oi(new Error(ve)),Re))]);try{const jt=h.trim().toLowerCase(),Re=g_(E6(ul,"Sign_Up"),zO("email","==",jt));if(!(await Ot(GO(Re),1e4,"Failed to verify waitlist status. Please try again.")).empty){y("This email is already registered on our waitlist!"),tt(!1);return}const Ii=T6(E6(ul,"Sign_Up")),Oi=Ii.id;let Mi=!1,ts=null;try{const Mn=await fetch("/api/send-welcome-email",{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({name:l.trim(),email:h.trim().toLowerCase(),signupId:Oi})}),cr=await Mn.json().catch(()=>({}));Mn.ok?(console.log("Welcome email sent/queued successfully via Resend!"),Mi=!0):(console.warn("Server-side email sending notice:",cr.error||Mn.statusText),Mi=!1,ts=cr.error||Mn.statusText||"Failed to send welcome email.")}catch(Mn){console.warn("Error requesting welcome email:",Mn),Mi=!1,ts=Mn.message||"Network error occurred when sending email."}await Ot(YO(Ii,{id:Oi,name:l.trim(),email:h.trim().toLowerCase(),answers:{q1:Z||"No response.",q2:ht.length>0?ht:["None selected."],q3:I||"No response.",q4:V||"No response.",q5:P.trim()||"No response."},email_sent:Mi,email_error:ts,submittedAt:GD(),year:new Date().getFullYear().toString(),month:new Date().toLocaleString("en-US",{month:"long"})}),25e3,"FIRESTORE_TIMEOUT");const On=n(l,h);if(!On){y("This email is already in our waitlist!"),tt(!1);return}const ga={email:h,answers:{q1:Z,q2:ht,q3:I,q4:V,q5:P}};localStorage.setItem(`q_answers_${h}`,JSON.stringify(ga)),x(On),nr("conversion",{send_to:"AW-836869247",value:1,currency:"USD",transaction_id:On.id}),Xb(),nr("complete_onboarding",{entry_id:On.id,has_optional_feedback:!!P.trim()}),window.scrollTo({top:0,behavior:"smooth"})}catch(jt){console.error("Firebase registration error:",jt),jt.message==="FIRESTORE_TIMEOUT"?y("Connection timed out. This occurs when Cloud Firestore is not yet initialized on your brand new project. Please go to your Firebase Console for 'astutewaitlist', select 'Firestore Database' in the left menu, and click 'Create Database' to enable it."):jt.code==="permission-denied"?y("Permission denied. Please ensure your Firestore Security Rules are deployed and configured correctly."):y(`We encountered an issue securing your spot: ${jt.message||jt.code||"unknown error"}. Please check your connection and try again.`)}finally{tt(!1)}};return w.jsx("div",{className:"bg-white w-full min-h-screen py-16 px-6 sm:px-12 md:px-16 flex flex-col items-center",children:w.jsx("div",{className:"max-w-2xl w-full",children:w.jsx(Df,{mode:"wait",children:_?w.jsxs(Je.div,{initial:{opacity:0,y:15}
2361,animate:{opacity:1,y:0},exit:{opacity:0,y:-15},transition:{duration:.5},className:"flex flex-col items-center justify-center text-center py-24 sm:py-32",children:[w.jsx("div",{className:"text-4xl sm:text-5xl md:text-6xl mb-8 animate-bounce",style:{animationDuration:"3s"},children:"ð"}),w.jsx("h1",{className:"font-sans italic font-extrabold text-3xl sm:text-4xl md:text-[42px] text-[#552861] tracking-tight leading-tight mb-4",children:"You have mail."}),w.jsx("h2",{className:"font-sans font-extrabold text-lg sm:text-xl md:text-2xl text-[#552861] tracking-tight mb-12",children:"Thanks for joining the revolution."}),w.jsxs("div",{className:"max-w-xl mx-auto space-y-6 text-black font-sans font-semibold text-sm sm:text-base md:text-lg leading-relaxed px-4",children:[w.jsx("p",{children:"Weâre building a bank that puts you first. While weâre putting it all together, hereâs a sneak peek of whatâs to come."}),w.jsx("p",{children:"Your $100 deposit will be waiting in your Astute account at launch. As we work toward launch, weâll share the official date and keep you updated every step of the way."})]}),w.jsxs("div",{className:"mt-12 p-5 bg-[#FFFDEB] border border-[#FBEA9E] rounded-2xl max-w-lg mx-auto text-[#7D6318] font-sans font-semibold text-xs sm:text-sm shadow-sm flex items-start gap-3 text-left",children:[w.jsx("span",{className:"text-lg",children:"ð¡"}),w.jsxs("div",{children:[w.jsx("p",{className:"font-extrabold text-[#5C480D] mb-1",children:"Don't see our email?"}),w.jsxs("p",{className:"text-[#6D5514] font-medium leading-relaxed",children:["If you don't receive your welcome message within a few minutes, please check your ",w.jsx("strong",{children:"Spam"})," or ",w.jsx("strong",{children:"Promotions"}),' folder. Mark us as "Not Spam" to ensure future updates land directly in your inbox!']})]})]})]},"questionnaire-success"):w.jsxs(Je.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.6},className:"space-y-12",children:[w.jsxs("div",{className:"text-center space-y-6",children:[w.jsxs("h1",{className:"text-[#552861] leading-tight select-none text-3xl sm:text-[42px] font-sans font-extrabold italic",children:[w.jsx("span",{className:"block mb-2",children:"A bank built"}),w.jsx("span",{className:"block",children:"for you NOT against you"})]}),w.jsx("p",{className:"text-sm sm:text-base font-bold text-black max-w-lg mx-auto leading-relaxed",children:"Can we have a minute. Answers these 5 questions to keep us accountable to building a bank that puts your first."})]}),w.jsxs("form",{onSubmit:xt,className:"space-y-10",children:[w.jsxs("div",{className:"space-y-3",children:[w.jsxs("label",{className:"block text-black font-bold text-sm sm:text-base leading-snug",children:["1. What best describes your current relationship with your bank? (Select one) ",w.jsx("span",{className:"text-red-500 font-extrabold",children:"*"})]}),w.jsxs("div",{className:"relative",children:[w.jsxs("button",{type:"button",onClick:()=>{At(!O),W(!1),dt(!1)},className:"w-full h-14 bg-[#FAF4FC] hover:bg-[#FAF4FC]/90 transition-colors px-5 flex items-center justify-between text-left rounded-md border border-transparent focus:ring-2 focus:ring-astute-purple/20 focus:outline-none",children:[w.jsx("span",{className:`italic font-medium font-sans ${Z?"text-black font-semibold":"text-[#686774]"}`,children:Z||"Select an option"}),w.jsx(Fh,{className:`w-5 h-5 text-[#686774] transition-transform ${O?"rotate-180":""}`})]}),O&&w.jsx("div",{className:"absolute z-20 w-full mt-1.5 bg-[#FAF4FC] border border-astute-purple/10 rounded-md shadow-lg py-1.5 max-h-60 overflow-y-auto",children:It.map(yt=>w.jsxs("button",{type:"button",onClick:()=>{nt(yt),At(!1),nr("questionnaire_progress",{question:"q1_relationship",value:yt})},className:"w-full px-5 py-3 hover:bg-astute-purple/10 text-left text-sm font-medium text-black transition-colors flex items-center justify-between",children:[w.jsx("span",{children:yt}),Z===yt&&w.jsx(wh,{className:"w-4 h-4 text-[#552861] shrink-0 ml-2"})]},yt))})]})]}),w.jsxs("div",{className:"space-y-4",children:[w.jsxs("label",{className:"block text-black font-bold text-sm sm:text-base leading-snug",children:["2. What are your top priorities in a banking experience? (Select up to 3) ",w.jsx("span",{className:"text-red-500 font-extrabold",children:"*"})]}),w.jsx("div",{className:"space-y-3.5",children:Ht.map(yt=>{const Ot=ht.includes(yt);return w.jsxs("div",{onClick:()=>gt(yt),className:"flex items-start gap-3 cursor-pointer select-none group",children:[w.jsx("div",{className:`w-6 h-6 rounded flex items-center justify-center shrink-0 border-2 transition-all mt-0.5 ${Ot?"bg-[#552861] border-[#552861] text-white":"border-black/30 group-hover:bg-[#552861]/5"}`,children:Ot&&w.jsx(wh,{className:"w-4 h-4 stroke-[3px]"})}),w.jsx("span",{className:`text-sm sm:text-base font-bold leading-snug pt-0.5 transition-colors ${Ot?"text-[#552861]":"text-black/80"}`,children:yt})]},yt)})})]}),w.jsxs("div",{className:"space-y-3",children:[w.jsxs("label",{className:"block text-black font-bold text-sm sm:text-base leading-snug",children:["3. How would you describe your experience with debt and your bank? (Select one) ",w.jsx("span",{className:"text-red-500 font-extrabold",children:"*"})]}),w.jsxs("div",{className:"relative",children:[w.jsxs("button",{type:"button",onClick:()=>{W(!Ut),At(!1),dt(!1)},className:"w-full h-14 bg-[#FAF4FC] hover:bg-[#FAF4FC]/90 transition-colors px-5 flex items-center justify-between text-left rounded-md border border-transparent focus:ring-2 focus:ring-astute-purple/20 focu
2361s:outline-none",children:[w.jsx("span",{className:`italic font-medium font-sans ${I?"text-black font-semibold":"text-[#686774]"}`,children:I||"Select an option"}),w.jsx(Fh,{className:`w-5 h-5 text-[#686774] transition-transform ${Ut?"rotate-180":""}`})]}),Ut&&w.jsx("div",{className:"absolute z-20 w-full mt-1.5 bg-[#FAF4FC] border border-astute-purple/10 rounded-md shadow-lg py-1.5 max-h-60 overflow-y-auto",children:k.map(yt=>w.jsxs("button",{type:"button",onClick:()=>{C(yt),W(!1),nr("questionnaire_progress",{question:"q3_debt_experience",value:yt})},className:"w-full px-5 py-3 hover:bg-astute-purple/10 text-left text-sm font-medium text-black transition-colors flex items-center justify-between",children:[w.jsx("span",{children:yt}),I===yt&&w.jsx(wh,{className:"w-4 h-4 text-[#552861] shrink-0 ml-2"})]},yt))})]})]}),w.jsxs("div",{className:"space-y-3",children:[w.jsxs("label",{className:"block text-black font-bold text-sm sm:text-base leading-snug",children:["4. Do you feel supported by your bank in managing your finances, especially with the rising living costs? (Select one) ",w.jsx("span",{className:"text-red-500 font-extrabold",children:"*"})]}),w.jsxs("div",{className:"relative",children:[w.jsxs("button",{type:"button",onClick:()=>{dt(!mt),At(!1),W(!1)},className:"w-full h-14 bg-[#FAF4FC] hover:bg-[#FAF4FC]/90 transition-colors px-5 flex items-center justify-between text-left rounded-md border border-transparent focus:ring-2 focus:ring-astute-purple/20 focus:outline-none",children:[w.jsx("span",{className:`italic font-medium font-sans ${V?"text-black font-semibold":"text-[#686774]"}`,children:V||"Select an option"}),w.jsx(Fh,{className:`w-5 h-5 text-[#686774] transition-transform ${mt?"rotate-180":""}`})]}),mt&&w.jsx("div",{className:"absolute z-20 w-full mt-1.5 bg-[#FAF4FC] border border-astute-purple/10 rounded-md shadow-lg py-1.5 max-h-60 overflow-y-auto",children:rt.map(yt=>w.jsxs("button",{type:"button",onClick:()=>{M(yt),dt(!1),nr("questionnaire_progress",{question:"q4_bank_support",value:yt})},className:"w-full px-5 py-3 hover:bg-astute-purple/10 text-left text-sm font-medium text-black transition-colors flex items-center justify-between",children:[w.jsx("span",{children:yt}),V===yt&&w.jsx(wh,{className:"w-4 h-4 text-[#552861] shrink-0 ml-2"})]},yt))})]})]}),w.jsxs("div",{className:"space-y-3",children:[w.jsxs("label",{className:"block text-black font-bold text-sm sm:text-base leading-snug",children:["5. What's one thing you wish your bank did today that it doesn't? ",w.jsx("span",{className:"text-xs font-semibold text-gray-500 italic ml-1",children:"(Optional)"})]}),w.jsx("div",{className:"relative",children:w.jsx("textarea",{value:P,onChange:yt=>U(yt.target.value),placeholder:"|",rows:3,className:"w-full bg-[#FAF4FC] focu
2361s:bg-[#FAF4FC] px-5 py-4 focus:outline-none focus:ring-2 focus:ring-astute-purple/20 border border-transparent rounded-lg transition-all placeholder:text-[#686774]/70 placeholder:font-light font-sans text-sm sm:text-base font-medium text-black"})})]}),g&&w.jsx("div",{className:"mt-4",children:w.jsx(Je.p,{initial:{opacity:0,y:-5},animate:{opacity:1,y:0},className:"text-red-500 text-xs font-semibold text-center",children:g})}),w.jsx("div",{className:"flex justify-center pt-8",children:w.jsx("button",{type:"submit",disabled:q,className:"bg-[#12111A] text-[#CDFF00] hover:text-[#E9FF26] font-sans font-extrabold text-center transition-all duration-150 hover:brightness-110 active:scale-95 shadow-lg cursor-pointer px-10 py-5 rounded-full text-lg sm:text-xl shrink-0 disabled:opacity-50 disabled:cursor-not-allowed",children:q?"Joining the Revolution...":"Join the Revolution"})})]})]},"questionnaire-form")})})})}function WO({entries:n,onClose:t,onDeleteEntry:e,onResetWaitlist:s}){var C,V,M,P,U,O;const[a,l]=ct.useState("live"),[c,h]=ct.useState(""),[m,g]=ct.useState({visits:0,clicks:{}}),[y,_]=ct.useState([]),[x,R]=ct.useState(!0);ct.useEffect(()=>{const At=T6(ul,"stats","global"),Ut=x9(At,dt=>{if(dt.exists()){const It=dt.data();g({visits:It.visits||0,clicks:It.clicks||{}})}},dt=>{console.warn("Firestore Stats subscription notice:",dt)}),W=g_(E6(ul,"Sign_Up"),FO("submittedAt","desc")),mt=x9(W,dt=>{const It=dt.docs.map(Ht=>{const k=Ht.data();let rt="";try{k.submittedAt?typeof k.submittedAt.toDate=="function"?rt=k.submittedAt.toDate().toISOString():k.submittedAt.seconds?rt=new Date(k.submittedAt.seconds*1e3).toISOString():rt=new Date(k.submittedAt).toISOString():rt=new Date().toISOString()}catch{rt=new Date().toISOString()}return{id:Ht.id,name:k.name||"Anonymous",email:k.email||"",timestamp:rt,answers:k.answers||{},email_sent:k.email_sent??!1,email_error:k.email_error||null,email_opened:k.email_opened??!1,email_opened_at:k.email_opened_at||null,rank:k.rank||0,referrals:k.referrals||0}});_(It),R(!1)},dt=>{console.warn("Firestore Signups subscription notice:",dt),R(!1)});return()=>{Ut(),mt()}},[]);const N=a==="live"?y:n,j=N.filter(At=>At.name.toLowerCase().includes(c.toLowerCase())||At.email.toLowerCase().includes(c.toLowerCase())),F=async At=>{if(a==="live"){if(window.confirm(`Are you sure you want to delete "${At.name}" from the live Firestore database?`))try{await QO(T6(ul,"Sign_Up",At.id))}catch(Ut){console.error("Failed to delete live entry:",Ut),alert("Error deleting live entry. Check console.")}}else e(At.id)},q=()=>{const At="data:text/json;charset=utf-8,"+encodeURIComponent(JSON.stringify(N,null,2)),Ut=document.createElement("a");Ut.setAttribute("href",At),Ut.setAttribute("download",`astute_waitlist_${a}.json`),document.body.appendChild(Ut),Ut.click(),Ut.remove()},tt=m.visits||0,Z=((C=m.clicks)==null?void 0:C.header_cta)||0,nt=((V=m.clicks)==null?void 0:V.hero_cta)||0,ht=((M=m.clicks)==null?void 0:M.submit_cta)||0,Et=Z+nt+ht;tt>0&&(Et/tt*100).toFixed(1);const I=tt>0?(y.length/tt*100).toFixed(1):"0";return w.jsx("div",{className:"fixed inset-0 z-50 overflow-y-auto bg-astute-navy/70 backdrop-blur-md flex items-center justify-center p-4",children:w.jsxs("div",{className:"bg-white w-full max-w-5xl rounded-2xl shadow-2xl border border-astute-navy/15 flex flex-col h-[90vh] overflow-hidden",children:[w.jsxs("div",{className:"p-6 border-b border-astute-navy/10 flex items-center justify-between bg-astute-cream/30",children:[w.jsxs("div",{className:"flex items-center gap-3",children:[w.jsx("div",{className:"w-10 h-10 rounded-xl bg-astute-purple flex items-center justify-center text-astute-lime shadow-sm",children:w.jsx(Pb,{className:"w-5.5 h-5.5"})}),w.jsxs("div",{children:[w.jsxs("h3",{className:"text-xl font-display font-extrabold text-astute-navy flex items-center gap-2",children:["Astute Analytics Hub",w.jsx("span",{className:"text-xs bg-astute-lime text-astute-navy px-2 py-0.5 rounded-full font-bold uppercase tracking-wider font-mono",children:"Live"})]}),w.jsx("p",{className:"text-xs font-semibold text-astute-purple/70 uppercase tracking-widest mt-0.5",children:"Real-Time Traffic, Button Clicks & Email Open Tracking"})]})]}),w.jsx("button",{onClick:t,className:"w-8 h-8 rounded-full bg-astute-navy/5 hover:bg-astute-navy/10 flex items-center justify-center text-astute-navy transition-all",title:"Close",children:w.jsx($b,{className:"w-4.5 h-4.5"})})]}),w.jsxs("div",{className:"bg-astute-cream/10 border-b border-astute-navy/5 px-6 py-2 flex gap-4",children:[w.jsxs("button",{onClick:()=>l("live"),className:`text-xs font-bold px-3 py-1.5 rounded-lg transition-all ${a==="live"?"bg-astute-navy text-astute-lime":"text-astute-navy/60 hover:text-astute-navy bg-transparent"}`,children:["Live Firestore Database (",y.length,")"]}),w.jsxs("button",{onClick:()=>l("local"),className:`text-xs font-bold px-3 py-1.5 rounded-lg transition-all ${a==="local"?"bg-astute-navy text-astute-lime":"text-astute-navy/60 hover:text-astute-navy bg-transparent"}`,children:["Local Browser Cache (",n.length,")"]})]}),a==="live"&&w.jsxs("div",{className:"p-5 bg-astute-cream/20 border-b border-astute-navy/10 grid grid-cols-2 md:grid-cols-5 ga
2361p-4",children:[w.jsxs("div",{className:"bg-white p-3 rounded-xl border border-astute-navy/10 shadow-xs",children:[w.jsxs("span",{className:"text-[10px] font-bold uppercase tracking-wider text-astute-navy/55 flex items-center gap-1",children:[w.jsx(Q3,{className:"w-3 h-3 text-astute-purple"})," Web Visits"]}),w.jsx("div",{className:"text-lg font-display font-extrabold text-astute-navy mt-1",children:tt})]}),w.jsxs("div",{className:"bg-white p-3 rounded-xl border border-astute-navy/10 shadow-xs",children:[w.jsxs("span",{className:"text-[10px] font-bold uppercase tracking-wider text-astute-navy/55 flex items-center gap-1",children:[w.jsx(_0,{className:"w-3 h-3 text-astute-gold"})," Header CTA"]}),w.jsxs("div",{className:"text-lg font-display font-extrabold text-astute-navy mt-1",children:[Z," ",w.jsx("span",{className:"text-[10px] font-mono text-astute-navy/50 font-medium",children:"clicks"})]})]}),w.jsxs("div",{className:"bg-white p-3 rounded-xl border border-astute-navy/10 shadow-xs",children:[w.jsxs("span",{className:"text-[10px] font-bold uppercase tracking-wider text-astute-navy/55 flex items-center gap-1",children:[w.jsx(_0,{className:"w-3 h-3 text-astute-gold"})," Hero CTA"]}),w.jsxs("div",{className:"text-lg font-display font-extrabold text-astute-navy mt-1",children:[nt," ",w.jsx("span",{className:"text-[10px] font-mono text-astute-navy/50 font-medium",children:"clicks"})]})]}),w.jsxs("div",{className:"bg-white p-3 rounded-xl border border-astute-navy/10 shadow-xs",children:[w.jsxs("span",{className:"text-[10px] font-bold uppercase tracking-wider text-astute-navy/55 flex items-center gap-1",children:[w.jsx(_0,{className:"w-3 h-3 text-astute-purple"})," Submit CTA"]}),w.jsxs("div",{className:"text-lg font-display font-extrabold text-astute-navy mt-1",children:[ht," ",w.jsx("span",{className:"text-[10px] font-mono text-astute-navy/50 font-medium",children:"clicks"})]})]}),w.jsxs("div",{className:"bg-white p-3 rounded-xl border border-astute-navy/10 shadow-xs col-span-2 md:col-span-1",children:[w.jsxs("span",{className:"text-[10px] font-bold uppercase tracking-wider text-astute-navy/55 flex items-center gap-1",children:[w.jsx(mb,{className:"w-3 h-3 text-emerald-500"})," Signup Rate"]}),w.jsxs("div",{className:"text-lg font-display font-extrabold text-emerald-600 mt-1",children:[I,"%"]})]})]}),a==="live"&&w.jsxs("div",{className:"px-5 py-3 bg-white border-b border-astute-navy/5 flex flex-wrap gap-4 items-center justify-between",children:[w.jsx("span",{className:"text-[10px] font-bold uppercase tracking-wider text-astute-navy/50",children:"Product Circle Interests clicked:"}),w.jsxs("div",{className:"flex gap-4",children:[w.jsxs("div",{className:"text-xs bg-purple-50 text-astute-purple px-2.5 py-1 rounded-md border border-purple-100 font-mono",children:[w.jsx("span",{className:"font-bold",children:"Debt:"})," ",((P=m.clicks)==null?void 0:P.capitalism_debt)||0]}),w.jsxs("div",{className:"text-xs bg-amber-50 text-amber-700 px-2.5 py-1 rounded-md border border-amber-100 font-mono",children:[w.jsx("span",{className:"font-bold",children:"Savings:"})," ",((U=m.clicks)==null?void 0:U.capitalism_savings)||0]}),w.jsxs("div",{className:"text-xs bg-emerald-50 text-emerald-700 px-2.5 py-1 rounded-md border border-emerald-100 font-mono",children:[w.jsx("span",{className:"font-bold",children:"Payouts:"})," ",((O=m.clicks)==null?void 0:O.capitalism_payouts)||0]})]})]}),w.jsxs("div",{className:"p-4 bg-white flex flex-col sm:flex-row gap-4 items-center justify-between border-b border-astute-navy/5",children:[w.jsxs("div",{className:"relative w-full sm:w-80",children:[w.jsx("span",{className:"absolute inset-y-0 left-0 pl-3 flex items-center text-astute-navy/40 pointer-events-none",children:w.jsx(Ub,{className:"w-4 h-4"})}),w.jsx("input",{type:"text",placeholder:`Search in ${a} database...`,value:c,onChange:At=>h(At.target.value),className:"w-full bg-astute-cream/20 border border-astute-navy/10 rounded-xl pl-9 pr-4 py-2 text-sm text-astute-navy placeholder-astute-navy/40 focus:outline-none focus:ring-2 focus:ring-astute-purple/20 focus:border-astute-purple transition-all"})]}
2361),w.jsxs("div",{className:"flex gap-2 w-full sm:w-auto shrink-0 justify-end",children:[w.jsxs("button",{onClick:q,disabled:j.length===0,className:"flex items-center justify-center gap-1.5 px-4 py-2 rounded-xl bg-astute-navy text-astute-lime text-xs font-bold shadow-sm hover:bg-astute-purple hover:text-white transition-all disabled:opacity-50 disabled:pointer-events-none",children:[w.jsx(Db,{className:"w-4 h-4"}),w.jsxs("span",{children:["Export ",a.toUpperCase()," Data"]})]}),a==="local"&&w.jsxs("button",{onClick:s,className:"flex items-center justify-center gap-1.5 px-4 py-2 rounded-xl border border-rose-200 bg-rose-50 text-rose-600 text-xs font-bold hover:bg-rose-100 transition-all",children:[w.jsx(K3,{className:"w-4 h-4"}),w.jsx("span",{children:"Reset Local"})]})]})]}),w.jsx("div",{className:"flex-1 overflow-y-auto p-4 sm:p-6 bg-slate-50/50",children:x&&a==="live"?w.jsxs("div",{className:"text-center py-20",children:[w.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-astute-purple mx-auto mb-4"}),w.jsx("p",{className:"text-sm text-astute-navy/55 font-mono",children:"Synchronizing Live Firestore Database..."})]}):j.length===0?w.jsx("div",{className:"text-center py-16 bg-white border border-dashed border-astute-navy/10 rounded-xl",children:w.jsx("p",{className:"text-sm text-astute-navy/50 font-medium font-sans",children:c?"No entries match your search query.":`The ${a} database is currently empty.`})}):w.jsx("div",{className:"overflow-x-auto rounded-xl border border-astute-navy/10 bg-white shadow-xs",children:w.jsxs("table",{className:"w-full text-left text-sm border-collapse",children:[w.jsx("thead",{children:w.jsxs("tr",{className:"bg-astute-cream/20 border-b border-astute-navy/10 text-astute-navy font-bold text-xs uppercase tracking-wider font-mono",children:[w.jsx("th",{className:"p-4",children:"Rank / ID"}),w.jsx("th",{className:"p-4",children:"User"}),w.jsx("th",{className:"p-4",children:"Registered At"}),w.jsx("th",{className:"p-4",children:"Welcome Email Delivery"}),w.jsx("th",{className:"p-4",children:"Email View / Open"}),w.jsx("th",{className:"p-4 text-center",children:"Actions"})]})}),w.jsx("tbody",{className:"divide-y divide-astute-navy/5 text-astute-navy",children:j.map((At,Ut)=>w.jsxs("tr",{className:"hover:bg-astute-cream/5 transition-colors",children:[w.jsx("td",{className:"p-4 font-mono font-bold text-xs text-astute-purple",children:At.rank?`#${At.rank}`:`live-${Ut+1}`}),w.jsx("td",{className:"p-4",children:w.jsxs("div",{className:"flex flex-col",children:[w.jsx("span",{className:"font-bold",children:At.name}),w.jsx("span",{className:"text-xs text-astute-navy/60 font-mono",children:At.email})]})}),w.jsxs("td",{className:"p-4 text-xs text-astute-navy/70",children:[new Date(At.timestamp).toLocaleDateString()," ",new Date(At.timestamp).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})]}),w.jsx("td",{className:"p-4",children:a==="local"?w.jsx("span",{className:"text-xs text-astute-navy/40 font-mono italic",children:"Local cache only"}):At.email_sent?w.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-md bg-emerald-50 text-emerald-700 text-xs font-semibold border border-emerald-100",children:[w.jsx(Eb,{className:"w-3.5 h-3.5"})," Sent via Resend"]}):At.email_error?w.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-md bg-rose-50 text-rose-700 text-xs font-semibold border border-rose-100 cursor-help",title:At.email_error,children:[w.jsx(Gb,{className:"w-3.5 h-3.5"})," Error"]}):w.jsxs("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-md bg-amber-50 text-amber-700 text-xs font-semibold border border-amber-100",children:[w.jsx(Sb,{className:"w-3.5 h-3.5"})," Not Sent"]})}),w.jsx("td",{className:"p-4",children:a==="local"?w.jsx("span",{className:"text-xs text-astute-navy/40 font-mono italic",children:"Local cache only"}):At.email_opened?w.jsxs("div",{className:"flex flex-col",children:[w.jsxs("span",{className:"inline-flex items-center gap-1 self-start px-2 py-0.5 rounded-md bg-indigo-50 text-indigo-700 text-xs font-bold border border-indigo-100",children:[w.jsx(Q3,{className:"w-3.5 h-3.5"})," Opened / Viewed"]}),At.email_opened_at&&w.jsxs("span",{className:"text-[10px] text-indigo-500 font-mono mt-0.5",children:[new Date(At.email_opened_at).toLocaleDateString()," ",new Date(At.email_opened_at).toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"})]})]}):w.jsx("span",{className:"inline-flex items-center gap-1 px-2 py-0.5 rounded-md bg-slate-50 text-slate-500 text-xs border border-slate-200",children:"Unopened"})}),w.jsx("td",{className:"p-4 text-center",children:w.jsx("button",{onClick:()=>F(At),className:"p-1.5 rounded-lg hover:bg-rose-50 text-rose-500 hover:text-rose-700 transition-colors",title:"Delete user",children:w.jsx(K3,{className:"w-4 h-4"})})})]},At.id))})]})})}),w.jsxs("div",{className:"p-4 border-t border-astute-navy/10 text-center text-[10px] font-mono text-astute-navy/40 bg-astute-cream/20 flex items-center justify-between px-6",children:[w.jsx("span",{children:"ASTUTE DIGITAL BANKING REAL-TIME SECURED ANALYTICS CONSOLE"}),w.jsxs("span",{children:["DATABASE ID: ",ul.app.options.projectId]})]})]})})}function ZO({onScrollToTop:n}){return w.jsx("footer",{className:"text-white py-16 px-6 sm:px-12 md:px-16 border-t border-white/5 relative z-10",style:{backgroundColor:"#1E1E1E"},children:w.jsx("div",{className:"max-w-5xl mx-auto",children:w.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-10",children:[w.jsx("div",{className:"hidden md:block"}),w.jsx("div",{className:"hidden md:block"}),w.jsxs("div",{className:"space-y-4 flex flex-col items-start text-left",children:[w.jsx("div",{onClick:n,className:"cursor-pointer group select-none active:scale-95 transition-transform",children:w.jsx("img",{src:"https://lh3.googleusercontent.com/d/14J5igYmgajP17KNgNY228zf3nMfG38IJ",alt:"Astute Logo",className:"h-7 w-auto object-contain filter hover:brightness-105 transition-all duration-300",referrerPolicy:"no-referrer"})}),w.jsx("p",{className:"text-[11px] text-white leading-relaxed max-w-sm",children:"Astute is a pre-launch financial technology startup currently in development. We are not a licensed bank or financial services provider, and n
2361o financial products or services are being offered at this stage. This page is for informational and waitlist purposes only."})]})]})})})}const Oh=[{id:"entry-1",name:"Muno Gwata",email:"[email protected]",timestamp:"2026-06-25T10:30:00.000Z",rank:1042,referrals:5},{id:"entry-2",name:"Alice Vance",email:"[email protected]",timestamp:"2026-06-25T09:15:00.000Z",rank:1043,referrals:3},{id:"entry-3",name:"Devon Miller",email:"[email protected]",timestamp:"2026-06-24T18:40:00.000Z",rank:1044,referrals:1},{id:"entry-4",name:"Sora Tanaka",email:"[email protected]",timestamp:"2026-06-24T14:22:00.000Z",rank:1045,referrals:0},{id:"entry-5",name:"Elena Rostova",email:"[email protected]",timestamp:"2026-06-23T11:05:00.000Z",rank:1046,referrals:0}];function JO(){const[n,t]=ct.useState([]),[e,s]=ct.useState(!1),[a,l]=ct.useState(0),[c,h]=ct.useState(!1),[m,g]=ct.useState(""),[y,_]=ct.useState("");ct.useEffect(()=>{Wb();const Z=localStorage.getItem("astute_waitlist_entries");if(Z)try{const nt=JSON.parse(Z),ht=nt.filter(Et=>Et.email.toLowerCase()!=="[email protected]"&&Et.email.toLowerCase()!=="[email protected]");t(ht),ht.length!==nt.length&&localStorage.setItem("astute_waitlist_entries",JSON.stringify(ht))}catch{const ht=Oh.filter(Et=>Et.email.toLowerCase()!=="[email protected]"&&Et.email.toLowerCase()!=="[email protected]");t(ht),localStorage.setItem("astute_waitlist_entries",JSON.stringify(ht))}else{const nt=Oh.filter(ht=>ht.email.toLowerCase()!=="[email protected]"&&ht.email.toLowerCase()!=="[email protected]");t(nt),localStorage.setItem("astute_waitlist_entries",JSON.stringify(nt))}},[]);const x=(Z,nt)=>{const ht=n.find(M=>M.email.toLowerCase()===nt.toLowerCase());if(ht)return ht;const I=Math.max(1,1450-n.length),C={id:`entry-${Date.now()}`,name:Z,email:nt,timestamp:new Date().toISOString(),rank:I,referrals:0},V=[C,...n];return t(V),localStorage.setItem("astute_waitlist_entries",JSON.stringify(V)),C},R=Z=>{const nt=n.filter(ht=>
2361ht.id!==Z);t(nt),localStorage.setItem("astute_waitlist_entries",JSON.stringify(nt))},N=()=>{window.confirm("Are you sure you want to reset the waitlist to initial seed members? All custom entries will be lost.")&&(t(Oh),localStorage.setItem("astute_waitlist_entries",JSON.stringify(Oh)))},j=(Z="unknown")=>{var nt;(nt=document.getElementById("waitlist-form-section"))==null||nt.scrollIntoView({behavior:"smooth"}),l(0),n6(`${Z}_cta`)},F=(Z,nt)=>(n6("submit_cta"),nr("begin_onboarding",{method:"landing_form",email_domain:nt.includes("@")?nt.split("@")[1]:"unknown"}),g(Z),_(nt),h(!0),window.scrollTo({top:0,behavior:"smooth"}),{id:"temp",name:Z,email:nt,timestamp:new Date().toISOString(),rank:9999,referrals:0}),q=()=>{c&&h(!1),window.scrollTo({top:0,behavior:"smooth"})},tt=()=>{c&&(h(!1),window.scrollTo({top:0,behavior:"smooth"})),l(Z=>{const nt=Z+1;return nt>=5?(s(!0),0):nt})};return w.jsxs("div",{className:"min-h-screen bg-astute-cream font-sans flex flex-col selection:bg-astute-lime selection:text-astute-navy antialiased",children:[w.jsx(ab,{onScrollToWaitlist:()=>j("header"),onOpenAdmin:tt,adminClickCount:a,isDeactivated:c}),w.jsx(Df,{mode:"wait",children:c?w.jsx(Je.div,{initial:{opacity:0}
2361,animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},className:"w-full",children:w.jsx(XO,{onAddEntry:x,onGoBack:()=>h(!1),initialName:m,initialEmail:y,totalEntries:n.length})},"questionnaire"):w.jsxs(Je.div,{initial:{opacity:0},animate:{opacity:1},exit:{opacity:0},transition:{duration:.3},children:[w.jsx(ob,{onScrollToWaitlist:()=>j("hero")}),w.jsx(Zb,{}),w.jsx(Jb,{onAddEntry:F,totalEntries:n.length})]},"landing")}),w.jsx(ZO,{onScrollToTop:q}),e&&w.jsx(WO,{entries:n,onClose:()=>s(!1),onDeleteEntry:R,onResetWaitlist:N})]})}oT.createRoot(document.getElementById("root")).render(w.jsx(ct.StrictMode,{children:w.jsx(JO,{})}));
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.