vendor: 1,951 bytes, lines 1-9
1(function(){const n=document.createElement("link").relList;if(n&&n.supports&&n.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))l(s);new MutationObserver(s=>{for(const u of s)if(u.type==="childList")for(const f of u.addedNodes)f.tagName==="LINK"&&f.rel==="modulepreload"&&l(f)}).observe(document,{childList:!0,subtree:!0});function a(s){const u={};return s.integrity&&(u.integrity=s.integrity),s.referrerPolicy&&(u.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?u.credentials="include":s.crossOrigin==="anonymous"?u.credentials="omit":u.credentials="same-origin",u}function l(s){if(s.ep)return;s.ep=!0;const u=a(s);fetch(s.href,u)}})();var Tc=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function db(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}function ex(t){if(Object.prototype.hasOwnProperty.call(t,"__esModule"))return t;var n=t.default;if(typeof n=="function"){var a=function l(){return this instanceof l?Reflect.construct(n,arguments,this.constructor):n.apply(this,arguments)};a.prototype=n.prototype}else a={};return Object.defineProperty(a,"__esModule",{value:!0}),Object.keys(t).forEach(function(l){var s=Object.getOwnPropertyDescriptor(t,l);Object.defineProperty(a,l,s.get?s:{enumerable:!0,get:function(){return t[l]}})}),a}var jf={exports:{}},Ro={};/** 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 ly;function tx(){if(ly)return Ro;ly=1;var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.fragment");function a(l,s,u){var f=null;if(u!==void 0&&(f=""+u),s.key!==void 0&&(f=""+s.key),"key"in s){u={};for(var p in s)p!=="key"&&(u[p]=s[p])}else u=s;
vendor: 9,674 bytes, lines 9-25
9return s=u.ref,{$$typeof:t,type:l,key:f,ref:s!==void 0?s:null,props:u}}return Ro.Fragment=n,Ro.jsx=a,Ro.jsxs=a,Ro}var oy;function fb(){return oy||(oy=1,jf.exports=tx()),jf.exports}var g=fb(),kf={exports:{}},Ge={};/** 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 sy;function nx(){if(sy)return Ge;sy=1;var t=Symbol.for("react.transitional.element"),n=Symbol.for("react.portal"),a=Symbol.for("react.fragment"),l=Symbol.for("react.strict_mode"),s=Symbol.for("react.profiler"),u=Symbol.for("react.consumer"),f=Symbol.for("react.context"),p=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),v=Symbol.for("react.memo"),w=Symbol.for("react.lazy"),C=Symbol.iterator;function _(m){return m===null||typeof m!="object"?null:(m=C&&m[C]||m["@@iterator"],typeof m=="function"?m:null)}var A={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},j=Object.assign,I={};function Z(m,S,U){this.props=m,this.context=S,this.refs=I,this.updater=U||A}Z.prototype.isReactComponent={},Z.prototype.setState=function(m,S){if(typeof m!="object"&&typeof m!="function"&&m!=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,m,S,"setState")},Z.prototype.forceUpdate=function(m){this.updater.enqueueForceUpdate(this,m,"forceUpdate")};function V(){}V.prototype=Z.prototype;function ee(m,S,U){this.props=m,this.context=S,this.refs=I,this.updater=U||A}var ae=ee.prototype=new V;ae.constructor=ee,j(ae,Z.prototype),ae.isPureReactComponent=!0;var he=Array.isArray,O={H:null,A:null,T:null,S:null,V:null},E=Object.prototype.hasOwnProperty;function P(m,S,U,Y,W,ue){return U=ue.ref,{$$typeof:t,type:m,key:S,ref:U!==void 0?U:null,props:ue}}function re(m,S){return P(m.type,S,void 0,void 0,void 0,m.props)}function N(m){return typeof m=="object"&&m!==null&&m.$$typeof===t}function T(m){var S={"=":"=0",":":"=2"};return"$"+m.replace(/[=:]/g,function(U){return S[U]})}var F=/\/+/g;function ne(m,S){return typeof m=="object"&&m!==null&&m.key!=null?T(""+m.key):S.toString(36)}function H(){}function B(m){switch(m.status){case"fulfilled":return m.value;case"rejected":throw m.reason;default:switch(typeof m.status=="string"?m.then(H,H):(m.status="pending",m.then(function(S){m.status==="pending"&&(m.status="fulfilled",m.value=S)},function(S){m.status==="pending"&&(m.status="rejected",m.reason=S)})),m.status){case"fulfilled":return m.value;case"rejected":throw m.reason}}throw m}function le(m,S,U,Y,W){var ue=typeof m;(ue==="undefined"||ue==="boolean")&&(m=null);var ie=!1;if(m===null)ie=!0;else switch(ue){case"bigint":case"string":case"number":ie=!0;break;case"object":switch(m.$$typeof){case t:case n:ie=!0;break;case w:return ie=m._init,le(ie(m._payload),S,U,Y,W)}}if(ie)return W=W(m),ie=Y===""?"."+ne(m,0):Y,he(W)?(U="",ie!=null&&(U=ie.replace(F,"$&/")+"/"),le(W,S,U,"",function(Me){return Me})):W!=null&&(N(W)&&(W=re(W,U+(W.key==null||m&&m.key===W.key?"":(""+W.key).replace(F,"$&/")+"/")+ie)),S.push(W)),1;ie=0;var pe=Y===""?".":Y+":";if(he(m))for(var ye=0;ye<m.length;ye++)Y=m[ye],ue=pe+ne(Y,ye),ie+=le(Y,S,U,ue,W);else if(ye=_(m),typeof ye=="function")for(m=ye.call(m),ye=0;!(Y=m.next()).done;)Y=Y.value,ue=pe+ne(Y,ye++),ie+=le(Y,S,U,ue,W);else if(ue==="object"){if(typeof m.then=="function")return le(B(m),S,U,Y,W);throw S=String(m),Error("Objects are not valid as a React child (found: "+(S==="[object Object]"?"object with keys {"+Object.keys(m).join(", ")+"}":S)+"). If you meant to render a collection of children, use an array instead.")}return ie}function R(m,S,U){if(m==null)return m;var Y=[],W=0;return le(m,Y,"","",function(ue){return S.call(U,ue,W++)}),Y}function y(m){if(m._status===-1){var S=m._result;S=S(),S.then(function(U){(m._status===0||m._status===-1)&&(m._status=1,m._result=U)},function(U){(m._status===0||m._status===-1)&&(m._status=2,m._result=U)}),m._status===-1&&(m._status=0,m._result=S)}if(m._status===1)return m._result.default;throw m._result}var ce=typeof reportError=="function"?reportError:function(m){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var S=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof m=="object"&&m!==null&&typeof m.message=="string"?String(m.message):String(m),error:m});if(!window.dispatchEvent(S))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",m);return}console.error(m)};function M(){}return Ge.Children={map:R,forEach:function(m,S,U){R(m,function(){S.apply(this,arguments)},U)},count:function(m){var S=0;return R(m,function(){S++}),S},toArray:function(m){return R(m,function(S){return S})||[]},only:function(m){if(!N(m))throw Error("React.Children.only expected to receive a single React element child.");return m}},Ge.Component=Z,Ge.Fragment=a,Ge.Profiler=s,Ge.PureComponent=ee,Ge.StrictMode=l,Ge.Suspense=h,Ge.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=O,Ge.__COMPILER_RUNTIME={__proto__:null,c:function(m){return O.H.useMemoCache(m)}},Ge.cache=function(m){return function(){return m.apply(null,arguments)}},Ge.cloneElement=function(m,S,U){if(m==null)throw Error("The argument must be a React element, but you passed "+m+".");var Y=j({},m.props),W=m.key,ue=void 0;if(S!=null)for(ie in S.ref!==void 0&&(ue=void 0),S.key!==void 0&&(W=""+S.key),S)!E.call(S,ie)||ie==="key"||ie==="__self"||ie==="__source"||ie==="ref"&&S.ref===void 0||(Y[ie]=S[ie]);var ie=arguments.length-2;if(ie===1)Y.children=U;else if(1<ie){for(var pe=Array(ie),ye=0;ye<ie;ye++)pe[ye]=arguments[ye+2];Y.children=pe}return P(m.type,W,void 0,void 0,ue,Y)},Ge.createContext=function(m){return m={$$typeof:f,_currentValue:m,_currentValue2:m,_threadCount:0,Provider:null,Consumer:null},m.Provider=m,m.Consumer={$$typeof:u,_context:m},m},Ge.createElement=function(m,S,U){var Y,W={},ue=null;if(S!=null)for(Y in S.key!==void 0&&(ue=""+S.key),S)E.call(S,Y)&&Y!=="key"&&Y!=="__self"&&Y!=="__source"&&(W[Y]=S[Y]);var ie=arguments.length-2;if(ie===1)W.children=U;else if(1<ie){for(var pe=Array(ie),ye=0;ye<ie;ye++)pe[ye]=arguments[ye+2];W.children=pe}if(m&&m.defaultProps)for(Y in ie=m.defaultProps,ie)W[Y]===void 0&&(W[Y]=ie[Y]);return P(m,ue,void 0,void 0,null,W)},Ge.createRef=function(){return{current:null}},Ge.forwardRef=function(m){return{$$typeof:p,render:m}},Ge.isValidElement=N,Ge.lazy=function(m){return{$$typeof:w,_payload:{_status:-1,_result:m},_init:y}},Ge.memo=function(m,S){return{$$typeof:v,type:m,compare:S===void 0?null:S}},Ge.startTransition=function(m){var S=O.T,U={};O.T=U;try{var Y=m(),W=O.S;W!==null&&W(U,Y),typeof Y=="object"&&Y!==null&&typeof Y.then=="function"&&Y.then(M,ce)}catch(ue){ce(ue)}finally{O.T=S}},Ge.unstable_useCacheRefresh=function(){return O.H.useCacheRefresh()},Ge.use=function(m){return O.H.use(m)},Ge.useActionState=function(m,S,U){return O.H.useActionState(m,S,U)},Ge.useCallback=function(m,S){return O.H.useCallback(m,S)},Ge.useContext=function(m){return O.H.useContext(m)},Ge.useDebugValue=function(){},Ge.useDeferredValue=function(m,S){return O.H.useDeferredValue(m,S)},Ge.useEffect=function(m,S,U){var Y=O.H;if(typeof U=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return Y.useEffect(m,S)},Ge.useId=function(){return O.H.useId()},Ge.useImperativeHandle=function(m,S,U){return O.H.useImperativeHandle(m,S,U)},Ge.useInsertionEffect=function(m,S){return O.H.useInsertionEffect(m,S)},Ge.useLayoutEffect=function(m,S){return O.H.useLayoutEffect(m,S)},Ge.useMemo=function(m,S){return O.H.useMemo(m,S)},Ge.useOptimistic=function(m,S){return O.H.useOptimistic(m,S)},Ge.useReducer=function(m,S,U){return O.H.useReducer(m,S,U)},Ge.useRef=function(m){return O.H.useRef(m)},Ge.useState=function(m){return O.H.useState(m)},Ge.useSyncExternalStore=function(m,S,U){return O.H.useSyncExternalStore(m,S,U)},Ge.useTransition=function(){return O.H.useTransition()},Ge.version="19.1.0",Ge}var cy;function gr(){return cy||(cy=1,kf.exports=nx()),kf.exports}var z=gr();const xn=db(z);var Lf={exports:{}},No={},zf={exports:{}},Pf={};/** 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 uy;function rx(){return uy||(uy=1,function(t){function n(R,y){var ce=R.length;R.push(y);e:for(;0<ce;){var M=ce-1>>>1,m=R[M];if(0<s(m,y))R[M]=y,R[ce]=m,ce=M;else break e}}function a(R){return R.length===0?null:R[0]}function l(R){if(R.length===0)return null;var y=R[0],ce=R.pop();if(ce!==y){R[0]=ce;e:for(var M=0,m=R.length,S=m>>>1;M<S;){var U=2*(M+1)-1,Y=R[U],W=U+1,ue=R[W];if(0>s(Y,ce))W<m&&0>s(ue,Y)?(R[M]=ue,R[W]=ce,M=W):(R[M]=Y,R[U]=ce,M=U);else if(W<m&&0>s(ue,ce))R[M]=ue,R[W]=ce,M=W;else break e}}return y}function s(R,y){var ce=R.sortIndex-y.sortIndex;return ce!==0?ce:R.id-y.id}if(t.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var u=performance;t.unstable_now=function(){return u.now()}}else{var f=Date,p=f.now();t.unstable_now=function(){return f.now()-p}}var h=[],v=[],w=1,C=null,_=3,A=!1,j=!1,I=!1,Z=!1,V=typeof setTimeout=="function"?setTimeout:null,ee=typeof clearTimeout=="function"?clearTimeout:null,ae=typeof setImmediate<"u"?setImmediate:null;function he(R){for(var y=a(v);y!==null;){if(y.callback===null)l(v);else if(y.startTime<=R)l(v),y.sortIndex=y.expirationTime,n(h,y);else break;y=a(v)}}
vendor: 7,904 bytes, lines 25-41
25function O(R){if(I=!1,he(R),!j)if(a(h)!==null)j=!0,E||(E=!0,ne());else{var y=a(v);y!==null&&le(O,y.startTime-R)}}var E=!1,P=-1,re=5,N=-1;function T(){return Z?!0:!(t.unstable_now()-N<re)}function F(){if(Z=!1,E){var R=t.unstable_now();N=R;var y=!0;try{e:{j=!1,I&&(I=!1,ee(P),P=-1),A=!0;var ce=_;try{t:{for(he(R),C=a(h);C!==null&&!(C.expirationTime>R&&T());){var M=C.callback;if(typeof M=="function"){C.callback=null,_=C.priorityLevel;var m=M(C.expirationTime<=R);if(R=t.unstable_now(),typeof m=="function"){C.callback=m,he(R),y=!0;break t}C===a(h)&&l(h),he(R)}else l(h);C=a(h)}if(C!==null)y=!0;else{var S=a(v);S!==null&&le(O,S.startTime-R),y=!1}}break e}finally{C=null,_=ce,A=!1}y=void 0}}finally{y?ne():E=!1}}}var ne;if(typeof ae=="function")ne=function(){ae(F)};else if(typeof MessageChannel<"u"){var H=new MessageChannel,B=H.port2;H.port1.onmessage=F,ne=function(){B.postMessage(null)}}else ne=function(){V(F,0)};function le(R,y){P=V(function(){R(t.unstable_now())},y)}t.unstable_IdlePriority=5,t.unstable_ImmediatePriority=1,t.unstable_LowPriority=4,t.unstable_NormalPriority=3,t.unstable_Profiling=null,t.unstable_UserBlockingPriority=2,t.unstable_cancelCallback=function(R){R.callback=null},t.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):re=0<R?Math.floor(1e3/R):5},t.unstable_getCurrentPriorityLevel=function(){return _},t.unstable_next=function(R){switch(_){case 1:case 2:case 3:var y=3;break;default:y=_}var ce=_;_=y;try{return R()}finally{_=ce}},t.unstable_requestPaint=function(){Z=!0},t.unstable_runWithPriority=function(R,y){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var ce=_;_=R;try{return y()}finally{_=ce}},t.unstable_scheduleCallback=function(R,y,ce){var M=t.unstable_now();switch(typeof ce=="object"&&ce!==null?(ce=ce.delay,ce=typeof ce=="number"&&0<ce?M+ce:M):ce=M,R){case 1:var m=-1;break;case 2:m=250;break;case 5:m=1073741823;break;case 4:m=1e4;break;default:m=5e3}return m=ce+m,R={id:w++,callback:y,priorityLevel:R,startTime:ce,expirationTime:m,sortIndex:-1},ce>M?(R.sortIndex=ce,n(v,R),a(h)===null&&R===a(v)&&(I?(ee(P),P=-1):I=!0,le(O,ce-M))):(R.sortIndex=m,n(h,R),j||A||(j=!0,E||(E=!0,ne()))),R},t.unstable_shouldYield=T,t.unstable_wrapCallback=function(R){var y=_;return function(){var ce=_;_=y;try{return R.apply(this,arguments)}finally{_=ce}}}}(Pf)),Pf}var dy;function ax(){return dy||(dy=1,zf.exports=rx()),zf.exports}var If={exports:{}},cn={};/** 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 fy;function ix(){if(fy)return cn;fy=1;var t=gr();function n(h){var v="https://react.dev/errors/"+h;if(1<arguments.length){v+="?args[]="+encodeURIComponent(arguments[1]);for(var w=2;w<arguments.length;w++)v+="&args[]="+encodeURIComponent(arguments[w])}return"Minified React error #"+h+"; visit "+v+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(){}var l={d:{f:a,r:function(){throw Error(n(522))},D:a,C:a,L:a,m:a,X:a,S:a,M:a},p:0,findDOMNode:null},s=Symbol.for("react.portal");function u(h,v,w){var C=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:s,key:C==null?null:""+C,children:h,containerInfo:v,implementation:w}}var f=t.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function p(h,v){if(h==="font")return"";if(typeof v=="string")return v==="use-credentials"?v:""}return cn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=l,cn.createPortal=function(h,v){var w=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!v||v.nodeType!==1&&v.nodeType!==9&&v.nodeType!==11)throw Error(n(299));return u(h,v,null,w)},cn.flushSync=function(h){var v=f.T,w=l.p;try{if(f.T=null,l.p=2,h)return h()}finally{f.T=v,l.p=w,l.d.f()}},cn.preconnect=function(h,v){typeof h=="string"&&(v?(v=v.crossOrigin,v=typeof v=="string"?v==="use-credentials"?v:"":void 0):v=null,l.d.C(h,v))},cn.prefetchDNS=function(h){typeof h=="string"&&l.d.D(h)},cn.preinit=function(h,v){if(typeof h=="string"&&v&&typeof v.as=="string"){var w=v.as,C=p(w,v.crossOrigin),_=typeof v.integrity=="string"?v.integrity:void 0,A=typeof v.fetchPriority=="string"?v.fetchPriority:void 0;w==="style"?l.d.S(h,typeof v.precedence=="string"?v.precedence:void 0,{crossOrigin:C,integrity:_,fetchPriority:A}):w==="script"&&l.d.X(h,{crossOrigin:C,integrity:_,fetchPriority:A,nonce:typeof v.nonce=="string"?v.nonce:void 0})}},cn.preinitModule=function(h,v){if(typeof h=="string")if(typeof v=="object"&&v!==null){if(v.as==null||v.as==="script"){var w=p(v.as,v.crossOrigin);l.d.M(h,{crossOrigin:w,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0})}}else v==null&&l.d.M(h)},cn.preload=function(h,v){if(typeof h=="string"&&typeof v=="object"&&v!==null&&typeof v.as=="string"){var w=v.as,C=p(w,v.crossOrigin);l.d.L(h,w,{crossOrigin:C,integrity:typeof v.integrity=="string"?v.integrity:void 0,nonce:typeof v.nonce=="string"?v.nonce:void 0,type:typeof v.type=="string"?v.type:void 0,fetchPriority:typeof v.fetchPriority=="string"?v.fetchPriority:void 0,referrerPolicy:typeof v.referrerPolicy=="string"?v.referrerPolicy:void 0,imageSrcSet:typeof v.imageSrcSet=="string"?v.imageSrcSet:void 0,imageSizes:typeof v.imageSizes=="string"?v.imageSizes:void 0,media:typeof v.media=="string"?v.media:void 0})}},cn.preloadModule=function(h,v){if(typeof h=="string")if(v){var w=p(v.as,v.crossOrigin);l.d.m(h,{as:typeof v.as=="string"&&v.as!=="script"?v.as:void 0,crossOrigin:w,integrity:typeof v.integrity=="string"?v.integrity:void 0})}else l.d.m(h)},cn.requestFormReset=function(h){l.d.r(h)},cn.unstable_batchedUpdates=function(h,v){return h(v)},cn.useFormState=function(h,v,w){return f.H.useFormState(h,v,w)},cn.useFormStatus=function(){return f.H.useHostTransitionStatus()},cn.version="19.1.0",cn}var hy;function lx(){if(hy)return If.exports;hy=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}return t(),If.exports=ix(),If.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 my;function ox(){if(my)return No;my=1;var t=ax(),n=gr(),a=lx();function l(e){var r="https://react.dev/errors/"+e;if(1<arguments.length){r+="?args[]="+encodeURIComponent(arguments[1]);for(var i=2;i<arguments.length;i++)r+="&args[]="+encodeURIComponent(arguments[i])}return"Minified React error #"+e+"; visit "+r+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function s(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function u(e){var r=e,i=e;if(e.alternate)for(;r.return;)r=r.return;else{e=r;do r=e,(r.flags&4098)!==0&&(i=r.return),e=r.return;while(e)}return r.tag===3?i:null}function f(e){if(e.tag===13){var r=e.memoizedState;if(r===null&&(e=e.alternate,e!==null&&(r=e.memoizedState)),r!==null)return r.dehydrated}return null}function p(e){if(u(e)!==e)throw Error(l(188))}function h(e){var r=e.alternate;if(!r){if(r=u(e),r===null)throw Error(l(188));return r!==e?null:e}for(var i=e,o=r;;){var c=i.return;if(c===null)break;var d=c.alternate;if(d===null){if(o=c.return,o!==null){i=o;continue}break}if(c.child===d.child){for(d=c.child;d;){if(d===i)return p(c),e;if(d===o)return p(c),r;d=d.sibling}throw Error(l(188))}if(i.return!==o.return)i=c,o=d;else{for(var b=!1,x=c.child;x;){if(x===i){b=!0,i=c,o=d;break}
vendor: 14,256 bytes, lines 41-48
41if(x===o){b=!0,o=c,i=d;break}x=x.sibling}if(!b){for(x=d.child;x;){if(x===i){b=!0,i=d,o=c;break}if(x===o){b=!0,o=d,i=c;break}x=x.sibling}if(!b)throw Error(l(189))}}if(i.alternate!==o)throw Error(l(190))}if(i.tag!==3)throw Error(l(188));return i.stateNode.current===i?e:r}function v(e){var r=e.tag;if(r===5||r===26||r===27||r===6)return e;for(e=e.child;e!==null;){if(r=v(e),r!==null)return r;e=e.sibling}return null}var w=Object.assign,C=Symbol.for("react.element"),_=Symbol.for("react.transitional.element"),A=Symbol.for("react.portal"),j=Symbol.for("react.fragment"),I=Symbol.for("react.strict_mode"),Z=Symbol.for("react.profiler"),V=Symbol.for("react.provider"),ee=Symbol.for("react.consumer"),ae=Symbol.for("react.context"),he=Symbol.for("react.forward_ref"),O=Symbol.for("react.suspense"),E=Symbol.for("react.suspense_list"),P=Symbol.for("react.memo"),re=Symbol.for("react.lazy"),N=Symbol.for("react.activity"),T=Symbol.for("react.memo_cache_sentinel"),F=Symbol.iterator;function ne(e){return e===null||typeof e!="object"?null:(e=F&&e[F]||e["@@iterator"],typeof e=="function"?e:null)}var H=Symbol.for("react.client.reference");function B(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===H?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case j:return"Fragment";case Z:return"Profiler";case I:return"StrictMode";case O:return"Suspense";case E:return"SuspenseList";case N:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case A:return"Portal";case ae:return(e.displayName||"Context")+".Provider";case ee:return(e._context.displayName||"Context")+".Consumer";case he:var r=e.render;return e=e.displayName,e||(e=r.displayName||r.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case P:return r=e.displayName||null,r!==null?r:B(e.type)||"Memo";case re:r=e._payload,e=e._init;try{return B(e(r))}catch{}}return null}var le=Array.isArray,R=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,y=a.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,ce={pending:!1,data:null,method:null,action:null},M=[],m=-1;function S(e){return{current:e}}function U(e){0>m||(e.current=M[m],M[m]=null,m--)}function Y(e,r){m++,M[m]=e.current,e.current=r}var W=S(null),ue=S(null),ie=S(null),pe=S(null);function ye(e,r){switch(Y(ie,r),Y(ue,e),Y(W,null),r.nodeType){case 9:case 11:e=(e=r.documentElement)&&(e=e.namespaceURI)?kv(e):0;break;default:if(e=r.tagName,r=r.namespaceURI)r=kv(r),e=Lv(r,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}U(W),Y(W,e)}function Me(){U(W),U(ue),U(ie)}function Ee(e){e.memoizedState!==null&&Y(pe,e);var r=W.current,i=Lv(r,e.type);r!==i&&(Y(ue,e),Y(W,i))}function ze(e){ue.current===e&&(U(W),U(ue)),pe.current===e&&(U(pe),_o._currentValue=ce)}var qe=Object.prototype.hasOwnProperty,He=t.unstable_scheduleCallback,De=t.unstable_cancelCallback,Ie=t.unstable_shouldYield,dt=t.unstable_requestPaint,Oe=t.unstable_now,at=t.unstable_getCurrentPriorityLevel,Be=t.unstable_ImmediatePriority,ft=t.unstable_UserBlockingPriority,wt=t.unstable_NormalPriority,Mt=t.unstable_LowPriority,Vt=t.unstable_IdlePriority,Bn=t.log,Ft=t.unstable_setDisableYieldValue,Tt=null,Xe=null;function Ct(e){if(typeof Bn=="function"&&Ft(e),Xe&&typeof Xe.setStrictMode=="function")try{Xe.setStrictMode(Tt,e)}catch{}}var Ot=Math.clz32?Math.clz32:qn,Ya=Math.log,en=Math.LN2;function qn(e){return e>>>=0,e===0?32:31-(Ya(e)/en|0)|0}var Gt=256,ht=4194304;function pn(e){var r=e&42;if(r!==0)return r;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return e&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function _n(e,r,i){var o=e.pendingLanes;if(o===0)return 0;var c=0,d=e.suspendedLanes,b=e.pingedLanes;e=e.warmLanes;var x=o&134217727;return x!==0?(o=x&~d,o!==0?c=pn(o):(b&=x,b!==0?c=pn(b):i||(i=x&~e,i!==0&&(c=pn(i))))):(x=o&~d,x!==0?c=pn(x):b!==0?c=pn(b):i||(i=o&~e,i!==0&&(c=pn(i)))),c===0?0:r!==0&&r!==c&&(r&d)===0&&(d=c&-c,i=r&-r,d>=i||d===32&&(i&4194048)!==0)?r:c}function tn(e,r){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&r)===0}function wr(e,r){switch(e){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 Tn(){var e=Gt;return Gt<<=1,(Gt&4194048)===0&&(Gt=256),e}function ar(){var e=ht;return ht<<=1,(ht&62914560)===0&&(ht=4194304),e}function Cn(e){for(var r=[],i=0;31>i;i++)r.push(e);return r}function On(e,r){e.pendingLanes|=r,r!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function zr(e,r,i,o,c,d){var b=e.pendingLanes;e.pendingLanes=i,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=i,e.entangledLanes&=i,e.errorRecoveryDisabledLanes&=i,e.shellSuspendCounter=0;var x=e.entanglements,D=e.expirationTimes,K=e.hiddenUpdates;for(i=b&~i;0<i;){var de=31-Ot(i),me=1<<de;x[de]=0,D[de]=-1;var J=K[de];if(J!==null)for(K[de]=null,de=0;de<J.length;de++){var te=J[de];te!==null&&(te.lane&=-536870913)}i&=~me}o!==0&&St(e,o,0),d!==0&&c===0&&e.tag!==0&&(e.suspendedLanes|=d&~(b&~r))}function St(e,r,i){e.pendingLanes|=r,e.suspendedLanes&=~r;var o=31-Ot(r);e.entangledLanes|=r,e.entanglements[o]=e.entanglements[o]|1073741824|i&4194090}function Ht(e,r){var i=e.entangledLanes|=r;for(e=e.entanglements;i;){var o=31-Ot(i),c=1<<o;c&r|e[o]&r&&(e[o]|=r),i&=~c}}function Re(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function $e(e){return e&=-e,2<e?8<e?(e&134217727)!==0?32:268435456:8:2}function k(){var e=y.p;return e!==0?e:(e=window.event,e===void 0?32:ey(e.type))}function $(e,r){var i=y.p;try{return y.p=e,r()}finally{y.p=i}}var L=Math.random().toString(36).slice(2),Q="__reactFiber$"+L,oe="__reactProps$"+L,ge="__reactContainer$"+L,xe="__reactEvents$"+L,be="__reactListeners$"+L,_e="__reactHandles$"+L,Se="__reactResources$"+L,Ce="__reactMarker$"+L;function ve(e){delete e[Q],delete e[oe],delete e[xe],delete e[be],delete e[_e]}function Ne(e){var r=e[Q];if(r)return r;for(var i=e.parentNode;i;){if(r=i[ge]||i[Q]){if(i=r.alternate,r.child!==null||i!==null&&i.child!==null)for(e=Uv(e);e!==null;){if(i=e[Q])return i;e=Uv(e)}return r}e=i,i=e.parentNode}return null}function et(e){if(e=e[Q]||e[ge]){var r=e.tag;if(r===5||r===6||r===13||r===26||r===27||r===3)return e}return null}function vt(e){var r=e.tag;if(r===5||r===26||r===27||r===6)return e.stateNode;throw Error(l(33))}function xt(e){var r=e[Se];return r||(r=e[Se]={hoistableStyles:new Map,hoistableScripts:new Map}),r}function tt(e){e[Ce]=!0}var Fe=new Set,ir={};function Kt(e,r){Ve(e,r),Ve(e+"Capture",r)}function Ve(e,r){for(ir[e]=r,e=0;e<r.length;e++)Fe.add(r[e])}var At=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]*$"),Vn={},gn={};function Xa(e){return qe.call(gn,e)?!0:qe.call(Vn,e)?!1:At.test(e)?gn[e]=!0:(Vn[e]=!0,!1)}function ln(e,r,i){if(Xa(r))if(i===null)e.removeAttribute(r);else{switch(typeof i){case"undefined":case"function":case"symbol":e.removeAttribute(r);return;case"boolean":var o=r.toLowerCase().slice(0,5);if(o!=="data-"&&o!=="aria-"){e.removeAttribute(r);return}}e.setAttribute(r,""+i)}}function Pr(e,r,i){if(i===null)e.removeAttribute(r);else{switch(typeof i){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(r);return}e.setAttribute(r,""+i)}}function Ke(e,r,i,o){if(o===null)e.removeAttribute(i);else{switch(typeof o){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(i);return}e.setAttributeNS(r,i,""+o)}}var on,lr;function or(e){if(on===void 0)try{throw Error()}catch(i){var r=i.stack.trim().match(/\n( *(at )?)/);on=r&&r[1]||"",lr=-1<i.stack.indexOf(` 42 at`)?" (<anonymous>)":-1<i.stack.indexOf("@")?"@unknown:0:0":""}return` 43`+on+e+lr}var Fa=!1;function Rt(e,r){if(!e||Fa)return"";Fa=!0;var i=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var o={DetermineComponentFrameRoot:function(){try{if(r){var me=function(){throw Error()};if(Object.defineProperty(me.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(me,[])}catch(te){var J=te}Reflect.construct(e,[],me)}else{try{me.call()}catch(te){J=te}e.call(me.prototype)}}else{try{throw Error()}catch(te){J=te}(me=e())&&typeof me.catch=="function"&&me.catch(function(){})}}catch(te){if(te&&J&&typeof te.stack=="string")return[te.stack,J.stack]}return[null,null]}};o.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var c=Object.getOwnPropertyDescriptor(o.DetermineComponentFrameRoot,"name");c&&c.configurable&&Object.defineProperty(o.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var d=o.DetermineComponentFrameRoot(),b=d[0],x=d[1];if(b&&x){var D=b.split(` 44`),K=x.split(` 45`);for(c=o=0;o<D.length&&!D[o].includes("DetermineComponentFrameRoot");)o++;for(;c<K.length&&!K[c].includes("DetermineComponentFrameRoot");)c++;if(o===D.length||c===K.length)for(o=D.length-1,c=K.length-1;1<=o&&0<=c&&D[o]!==K[c];)c--;for(;1<=o&&0<=c;o--,c--)if(D[o]!==K[c]){if(o!==1||c!==1)do if(o--,c--,0>c||D[o]!==K[c]){var de=` 46`+D[o].replace(" at new "," at ");return e.displayName&&de.includes("<anonymous>")&&(de=de.replace("<anonymous>",e.displayName)),de}while(1<=o&&0<=c);break}}}finally{Fa=!1,Error.prepareStackTrace=i}return(i=e?e.displayName||e.name:"")?or(i):""}function oa(e){switch(e.tag){case 26:case 27:case 5:return or(e.type);case 16:return or("Lazy");case 13:return or("Suspense");case 19:return or("SuspenseList");case 0:case 15:return Rt(e.type,!1);case 11:return Rt(e.type.render,!1);case 1:return Rt(e.type,!0);case 31:return or("Activity");default:return""}}function Ll(e){try{var r="";do r+=oa(e),e=e.return;while(e);return r}catch(i){return` 47Error generating stack: `+i.message+` 48`+i.stack}}function vn(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Rm(e){var r=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(r==="checkbox"||r==="radio")}function K1(e){var r=Rm(e)?"checked":"value",i=Object.getOwnPropertyDescriptor(e.constructor.prototype,r),o=""+e[r];if(!e.hasOwnProperty(r)&&typeof i<"u"&&typeof i.get=="function"&&typeof i.set=="function"){var c=i.get,d=i.set;return Object.defineProperty(e,r,{configurable:!0,get:function(){return c.call(this)},set:function(b){o=""+b,d.call(this,b)}}),Object.defineProperty(e,r,{enumerable:i.enumerable}),{getValue:function(){return o},setValue:function(b){o=""+b},stopTracking:function(){e._valueTracker=null,delete e[r]}}}}function vs(e){e._valueTracker||(e._valueTracker=K1(e))}function Nm(e){if(!e)return!1;var r=e._valueTracker;if(!r)return!0;var i=r.getValue(),o="";return e&&(o=Rm(e)?e.checked?"true":"false":e.value),e=o,e!==i?(r.setValue(e),!0):!1}function ys(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var W1=/[\n"\\]/g;function Gn(e){return e.replace(W1,function(r){return"\\"+r.charCodeAt(0).toString(16)+" "})}function Ru(e,r,i,o,c,d,b,x){e.name="",b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"?e.type=b:e.removeAttribute("type"),r!=null?b==="number"?(r===0&&e.value===""||e.value!=r)&&(e.value=""+vn(r)):e.value!==""+vn(r)&&(e.value=""+vn(r)):b!=="submit"&&b!=="reset"||e.removeAttribute("value"),r!=null?Nu(e,b,vn(r)):i!=null?Nu(e,b,vn(i)):o!=null&&e.removeAttribute("value"),c==null&&d!=null&&(e.defaultChecked=!!d),c!=null&&(e.checked=c&&typeof c!="function"&&typeof c!="symbol"),x!=null&&typeof x!="function"&&typeof x!="symbol"&&typeof x!="boolean"?e.name=""+vn(x):e.removeAttribute("name")}function Mm(e,r,i,o,c,d,b,x){if(d!=null&&typeof d!="function"&&typeof d!="symbol"&&typeof d!="boolean"&&(e.type=d),r!=null||i!=null){if(!(d!=="submit"&&d!=="reset"||r!=null))return;i=i!=null?""+vn(i):"",r=r!=null?""+vn(r):i,x||r===e.value||(e.value=r),e.defaultValue=r}o=o??c,o=typeof o!="function"&&typeof o!="symbol"&&!!o,e.checked=x?e.checked:!!o,e.defaultChecked=!!o,b!=null&&typeof b!="function"&&typeof b!="symbol"&&typeof b!="boolean"&&(e.name=b)}function Nu(e,r,i){r==="number"&&ys(e.ownerDocument)===e||e.defaultValue===""+i||(e.defaultValue=""+i)}function Ai(e,r,i,o){if(e=e.options,r){r={};for(var c=0;c<i.length;c++)r["$"+i[c]]=!0;for(i=0;i<e.length;i++)c=r.hasOwnProperty("$"+e[i].value),e[i].selected!==c&&(e[i].selected=c),c&&o&&(e[i].defaultSelected=!0)}else{for(i=""+vn(i),r=null,c=0;c<e.length;c++){if(e[c].value===i){e[c].selected=!0,o&&(e[c].defaultSelected=!0);return}r!==null||e[c].disabled||(r=e[c])}r!==null&&(r.selected=!0)}}function Dm(e,r,i){if(r!=null&&(r=""+vn(r),r!==e.value&&(e.value=r),i==null)){e.defaultValue!==r&&(e.defaultValue=r);return}e.defaultValue=i!=null?""+vn(i):""}function jm(e,r,i,o){if(r==null){if(o!=null){if(i!=null)throw Error(l(92));if(le(o)){if(1<o.length)throw Error(l(93));o=o[0]}i=o}i==null&&(i=""),r=i}i=vn(r),e.defaultValue=i,o=e.textContent,o===i&&o!==""&&o!==null&&(e.value=o)}function Ri(e,r){if(r){var i=e.firstChild;
vendor: 4,140 bytes, line 48
48if(i&&i===e.lastChild&&i.nodeType===3){i.nodeValue=r;return}}e.textContent=r}var Q1=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 km(e,r,i){var o=r.indexOf("--")===0;i==null||typeof i=="boolean"||i===""?o?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="":o?e.setProperty(r,i):typeof i!="number"||i===0||Q1.has(r)?r==="float"?e.cssFloat=i:e[r]=(""+i).trim():e[r]=i+"px"}function Lm(e,r,i){if(r!=null&&typeof r!="object")throw Error(l(62));if(e=e.style,i!=null){for(var o in i)!i.hasOwnProperty(o)||r!=null&&r.hasOwnProperty(o)||(o.indexOf("--")===0?e.setProperty(o,""):o==="float"?e.cssFloat="":e[o]="");for(var c in r)o=r[c],r.hasOwnProperty(c)&&i[c]!==o&&km(e,c,o)}else for(var d in r)r.hasOwnProperty(d)&&km(e,d,r[d])}function Mu(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var Z1=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode
48-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),J1=/^[\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 bs(e){return J1.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}var Du=null;function ju(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ni=null,Mi=null;function zm(e){var r=et(e);if(r&&(e=r.stateNode)){var i=e[oe]||null;e:switch(e=r.stateNode,r.type){case"input":if(Ru(e,i.value,i.defaultValue,i.defaultValue,i.checked,i.defaultChecked,i.type,i.name),r=i.name,i.type==="radio"&&r!=null){for(i=e;i.parentNode;)i=i.parentNode;for(i=i.querySelectorAll('input[name="'+Gn(""+r)+'"][type="radio"]'),r=0;r<i.length;r++){var o=i[r];if(o!==e&&o.form===e.form){var c=o[oe]||null;if(!c)throw Error(l(90));Ru(o,c.value,c.defaultValue,c.defaultValue,c.checked,c.defaultChecked,c.type,c.name)}}for(r=0;r<i.length;r++)o=i[r],o.form===e.form&&Nm(o)}break e;case"textarea":Dm(e,i.value,i.defaultValue);break e;case"select":r=i.value,r!=null&&Ai(e,!!i.multiple,r,!1)}}}var ku=!1;function Pm(e,r,i){if(ku)return e(r,i);ku=!0;try{var o=e(r);return o}finally{if(ku=!1,(Ni!==null||Mi!==null)&&(ac(),Ni&&(r=Ni,e=Mi,Mi=Ni=null,zm(r),e)))for(r=0;r<e.length;r++)zm(e[r])}}function zl(e,r){var i=e.stateNode;if(i===null)return null;var o=i[oe]||null;if(o===null)return null;i=o[r];e:switch(r){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(o=!o.disabled)||(e=e.type,o=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!o;break e;default:e=!1}if(e)return null;if(i&&typeof i!="function")throw Error(l(231,r,typeof i));return i}var Ir=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Lu=!1;if(Ir)try{var Pl={};Object.defineProperty(Pl,"passive",{get:function(){Lu=!0}}),window.addEventListener("test",Pl,Pl),window.removeEventListener("test",Pl,Pl)}catch{Lu=!1}var sa=null,zu=null,ws=null;function Im(){if(ws)return ws;var e,r=zu,i=r.length,o,c="value"in sa?sa.value:sa.textContent,d=c.length;for(e=0;e<i&&r[e]===c[e];e++);var b=i-e;for(o=1;o<=b&&r[i-o]===c[d-o];o++);return ws=c.slice(e,1<o?1-o:void 0)}function Ss(e){var r=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&r===13&&(e=13)):e=r,e===10&&(e=13),32<=e||e===13?e:0}function xs(){return!0}function Um(){return!1}function yn(e){function r(i,o,c,d,b){this._reactName=i,this._targetInst=c,this.type=o,this.nativeEvent=d,this.target=b,this.currentTarget=null;for(var x in e)e.hasOwnProperty(x)&&(i=e[x],this[x]=i?i(d):d[x]);return this.isDefaultPrevented=(d.defaultPrevented!=null?d.defaultPrevented:d.returnValue===!1)?xs:Um,this.isPropagationStopped=Um,this}return w(r.prototype,{preventDefault:function(){this.defaultPrevented=!0;var i=this.nativeEvent;i&&(i.preventDefault?i.preventDefault():typeof i.returnValue!="unknown"&&(i.returnValue=!1),this.isDefaultPrevented=xs)},stopPropagation:function(){var i=this.nativeEvent;i&&(i.stopPropagation?i.stopPropagation():typeof i.cancelBubble!="unknown"&&(i.cancelBubble=!0),this.isPropagationStopped=xs)},persist:function(){},isPersistent:xs}),r}var Ka={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Es=yn(Ka),Il=w({},Ka,{view:0,detail:0}),e2=yn(Il),Pu,Iu,Ul,_s=w({},Il,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Hu,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Ul&&(Ul&&e.type==="mousemove"?(Pu=e.screenX-Ul.screenX,Iu=e.screenY-Ul.screenY):Iu=Pu=0,Ul=e),Pu)},movementY:function(e){return"movementY"in e?e.movementY:Iu}}),Hm=yn(_s),t2=w({},_s,{dataTransfer:0}),n2=yn(t2),r2=w({},Il,{relatedTarget:0}),Uu=yn(r2),a2=w({},Ka,{animationName:0,elapsedTime:0,pseudoElement:0}),i2=yn(a2),l2=w({},Ka,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),o2=yn(l2),s2=w({},Ka,{data:0}),Bm=yn(s2),c2={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},u2={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"},d2={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function f2(e){var r=this.nativeEvent;return r.getModifierState?r.getModifierState(e):(e=d2[e])?!!r[e]:!1}function Hu(){return f2}var h2=w({},Il,{key:function(e){if(e.key){var r=c2[e.key]||e.key;if(r!=="Unidentified")return r}
vendor: 5,186 bytes, line 48
48return e.type==="keypress"?(e=Ss(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?u2[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Hu,charCode:function(e){return e.type==="keypress"?Ss(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Ss(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),m2=yn(h2),p2=w({},_s,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),qm=yn(p2),g2=w({},Il,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Hu}),v2=yn(g2),y2=w({},Ka,{propertyName:0,elapsedTime:0,pseudoElement:0}),b2=yn(y2),w2=w({},_s,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),S2=yn(w2),x2=w({},Ka,{newState:0,oldState:0}),E2=yn(x2),_2=[9,13,27,32],Bu=Ir&&"CompositionEvent"in window,Hl=null;Ir&&"documentMode"in document&&(Hl=document.documentMode);var T2=Ir&&"TextEvent"in window&&!Hl,Vm=Ir&&(!Bu||Hl&&8<Hl&&11>=Hl),Gm=" ",$m=!1;function Ym(e,r){switch(e){case"keyup":return _2.indexOf(r.keyCode)!==-1;case"keydown":return r.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Xm(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Di=!1;function C2(e,r){switch(e){case"compositionend":return Xm(r);case"keypress":return r.which!==32?null:($m=!0,Gm);case"textInput":return e=r.data,e===Gm&&$m?null:e;default:return null}}function O2(e,r){if(Di)return e==="compositionend"||!Bu&&Ym(e,r)?(e=Im(),ws=zu=sa=null,Di=!1,e):null;switch(e){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 Vm&&r.locale!=="ko"?null:r.data;default:return null}}var A2={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 Fm(e){var r=e&&e.nodeName&&e.nodeName.toLowerCase();return r==="input"?!!A2[e.type]:r==="textarea"}function Km(e,r,i,o){Ni?Mi?Mi.push(o):Mi=[o]:Ni=o,r=uc(r,"onChange"),0<r.length&&(i=new Es("onChange","change",null,i,o),e.push({event:i,listeners:r}))}var Bl=null,ql=null;function R2(e){Rv(e,0)}function Ts(e){var r=vt(e);if(Nm(r))return e}function Wm(e,r){if(e==="change")return r}var Qm=!1;if(Ir){var qu;if(Ir){var Vu="oninput"in document;if(!Vu){var Zm=document.createElement("div");Zm.setAttribute("oninput","return;"),Vu=typeof Zm.oninput=="function"}qu=Vu}else qu=!1;Qm=qu&&(!document.documentMode||9<document.documentMode)}function Jm(){Bl&&(Bl.detachEvent("onpropertychange",ep),ql=Bl=null)}function ep(e){if(e.propertyName==="value"&&Ts(ql)){var r=[];Km(r,ql,e,ju(e)),Pm(R2,r)}}function N2(e,r,i){e==="focusin"?(Jm(),Bl=r,ql=i,Bl.attachEvent("onpropertychange",ep)):e==="focusout"&&Jm()}function M2(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return Ts(ql)}function D2(e,r){if(e==="click")return Ts(r)}function j2(e,r){if(e==="input"||e==="change")return Ts(r)}function k2(e,r){return e===r&&(e!==0||1/e===1/r)||e!==e&&r!==r}var An=typeof Object.is=="function"?Object.is:k2;function Vl(e,r){if(An(e,r))return!0;if(typeof e!="object"||e===null||typeof r!="object"||r===null)return!1;var i=Object.keys(e),o=Object.keys(r);if(i.length!==o.length)return!1;for(o=0;o<i.length;o++){var c=i[o];if(!qe.call(r,c)||!An(e[c],r[c]))return!1}return!0}function tp(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function np(e,r){var i=tp(e);e=0;for(var o;i;){if(i.nodeType===3){if(o=e+i.textContent.length,e<=r&&o>=r)return{node:i,offset:r-e};e=o}e:{for(;i;){if(i.nextSibling){i=i.nextSibling;break e}i=i.parentNode}i=void 0}i=tp(i)}}function rp(e,r){return e&&r?e===r?!0:e&&e.nodeType===3?!1:r&&r.nodeType===3?rp(e,r.parentNode):"contains"in e?e.contains(r):e.compareDocumentPosition?!!(e.compareDocumentPosition(r)&16):!1:!1}function ap(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var r=ys(e.document);r instanceof e.HTMLIFrameElement;){try{var i=typeof r.contentWindow.location.href=="string"}catch{i=!1}if(i)e=r.contentWindow;else break;r=ys(e.document)}return r}function Gu(e){var r=e&&e.nodeName&&e.nodeName.toLowerCase();return r&&(r==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||r==="textarea"||e.contentEditable==="true")}var L2=Ir&&"documentMode"in document&&11>=document.documentMode,ji=null,$u=null,Gl=null,Yu=!1;function ip(e,r,i){var o=i.window===i?i.document:i.nodeType===9?i:i.ownerDocument;Yu||ji==null||ji!==ys(o)||(o=ji,"selectionStart"in o&&Gu(o)?o={start:o.selectionStart,end:o.selectionEnd}:(o=(o.ownerDocument&&o.ownerDocument.defaultView||window).getSelection(),o={anchorNode:o.anchorNode,anchorOffset:o.anchorOffset,focu
vendor: 96,661 bytes, line 48
48sNode:o.focusNode,focusOffset:o.focusOffset}),Gl&&Vl(Gl,o)||(Gl=o,o=uc($u,"onSelect"),0<o.length&&(r=new Es("onSelect","select",null,r,i),e.push({event:r,listeners:o}),r.target=ji)))}function Wa(e,r){var i={};return i[e.toLowerCase()]=r.toLowerCase(),i["Webkit"+e]="webkit"+r,i["Moz"+e]="moz"+r,i}var ki={animationend:Wa("Animation","AnimationEnd"),animationiteration:Wa("Animation","AnimationIteration"),animationstart:Wa("Animation","AnimationStart"),transitionrun:Wa("Transition","TransitionRun"),transitionstart:Wa("Transition","TransitionStart"),transitioncancel:Wa("Transition","TransitionCancel"),transitionend:Wa("Transition","TransitionEnd")},Xu={},lp={};Ir&&(lp=document.createElement("div").style,"AnimationEvent"in window||(delete ki.animationend.animation,delete ki.animationiteration.animation,delete ki.animationstart.animation),"TransitionEvent"in window||delete ki.transitionend.transition);function Qa(e){if(Xu[e])return Xu[e];if(!ki[e])return e;var r=ki[e],i;for(i in r)if(r.hasOwnProperty(i)&&i in lp)return Xu[e]=r[i];return e}var op=Qa("animationend"),sp=Qa("animationiteration"),cp=Qa("animationstart"),z2=Qa("transitionrun"),P2=Qa("transitionstart"),I2=Qa("transitioncancel"),up=Qa("transitionend"),dp=new Map,Fu="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(" ");Fu.push("scrollEnd");function sr(e,r){dp.set(e,r),Kt(r,[e])}var fp=new WeakMap;function $n(e,r){if(typeof e=="object"&&e!==null){var i=fp.get(e);return i!==void 0?i:(r={value:e,source:r,stack:Ll(r)},fp.set(e,r),r)}return{value:e,source:r,stack:Ll(r)}}var Yn=[],Li=0,Ku=0;function Cs(){for(var e=Li,r=Ku=Li=0;r<e;){var i=Yn[r];Yn[r++]=null;var o=Yn[r];Yn[r++]=null;var c=Yn[r];Yn[r++]=null;var d=Yn[r];if(Yn[r++]=null,o!==null&&c!==null){var b=o.pending;b===null?c.next=c:(c.next=b.next,b.next=c),o.pending=c}d!==0&&hp(i,c,d)}}function Os(e,r,i,o){Yn[Li++]=e,Yn[Li++]=r,Yn[Li++]=i,Yn[Li++]=o,Ku|=o,e.lanes|=o,e=e.alternate,e!==null&&(e.lanes|=o)}function Wu(e,r,i,o){return Os(e,r,i,o),As(e)}function zi(e,r){return Os(e,null,null,r),As(e)}function hp(e,r,i){e.lanes|=i;var o=e.alternate;o!==null&&(o.lanes|=i);for(var c=!1,d=e.return;d!==null;)d.childLanes|=i,o=d.alternate,o!==null&&(o.childLanes|=i),d.tag===22&&(e=d.stateNode,e===null||e._visibility&1||(c=!0)),e=d,d=d.return;return e.tag===3?(d=e.stateNode,c&&r!==null&&(c=31-Ot(i),e=d.hiddenUpdates,o=e[c],o===null?e[c]=[r]:o.push(r),r.lane=i|536870912),d):null}function As(e){if(50<go)throw go=0,nf=null,Error(l(185));for(var r=e.return;r!==null;)e=r,r=e.return;return e.tag===3?e.stateNode:null}var Pi={};function U2(e,r,i,o){this.tag=e,this.key=i,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=o,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Rn(e,r,i,o){return new U2(e,r,i,o)}function Qu(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ur(e,r){var i=e.alternate;return i===null?(i=Rn(e.tag,r,e.key,e.mode),i.elementType=e.elementType,i.type=e.type,i.stateNode=e.stateNode,i.alternate=e,e.alternate=i):(i.pendingProps=r,i.type=e.type,i.flags=0,i.subtreeFlags=0,i.deletions=null),i.flags=e.flags&65011712,i.childLanes=e.childLanes,i.lanes=e.lanes,i.child=e.child,i.memoizedProps=e.memoizedProps,i.memoizedState=e.memoizedState,i.updateQueue=e.updateQueue,r=e.dependencies,i.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext},i.sibling=e.sibling,i.index=e.index,i.ref=e.ref,i.refCleanup=e.refCleanup,i}function mp(e,r){e.flags&=65011714;var i=e.alternate;return i===null?(e.childLanes=0,e.lanes=r,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=i.childLanes,e.lanes=i.lanes,e.child=i.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=i.memoizedProps,e.memoizedState=i.memoizedState,e.updateQueue=i.updateQueue,e.type=i.type,r=i.dependencies,e.dependencies=r===null?null:{lanes:r.lanes,firstContext:r.firstContext}),e}function Rs(e,r,i,o,c,d){var b=0;if(o=e,typeof e=="function")Qu(e)&&(b=1);else if(typeof e=="string")b=BS(e,i,W.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case N:return e=Rn(31,i,r,c),e.elementType=N,e.lanes=d,e;case j:return Za(i.children,c,d,r);case I:b=8,c|=24;break;case Z:return e=Rn(12,i,r,c|2),e.elementType=Z,e.lanes=d,e;case O:return e=Rn(13,i,r,c),e.elementType=O,e.lanes=d,e;case E:return e=Rn(19,i,r,c),e.elementType=E,e.lanes=d,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case V:case ae:b=10;break e;case ee:b=9;break e;case he:b=11;break e;case P:b=14;break e;case re:b=16,o=null;break e}b=29,i=Error(l(130,e===null?"null":typeof e,"")),o=null}return r=Rn(b,i,r,c),r.elementType=e,r.type=o,r.lanes=d,r}function Za(e,r,i,o){return e=Rn(7,e,o,r),e.lanes=i,e}function Zu(e,r,i){return e=Rn(6,e,null,r),e.lanes=i,e}function Ju(e,r,i){return r=Rn(4,e.children!==null?e.children:[],e.key,r),r.lanes=i,r.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},r}var Ii=[],Ui=0,Ns=null,Ms=0,Xn=[],Fn=0,Ja=null,Hr=1,Br="";function ei(e,r){Ii[Ui++]=Ms,Ii[Ui++]=Ns,Ns=e,Ms=r}function pp(e,r,i){Xn[Fn++]=Hr,Xn[Fn++]=Br,Xn[Fn++]=Ja,Ja=e;var o=Hr;e=Br;var c=32-Ot(o)-1;o&=~(1<<c),i+=1;var d=32-Ot(r)+c;if(30<d){var b=c-c%5;d=(o&(1<<b)-1).toString(32),o>>=b,c-=b,Hr=1<<32-Ot(r)+c|i<<c|o,Br=d+e}else Hr=1<<d|i<<c|o,Br=e}function ed(e){e.return!==null&&(ei(e,1),pp(e,1,0))}function td(e){for(;e===Ns;)Ns=Ii[--Ui],Ii[Ui]=null,Ms=Ii[--Ui],Ii[Ui]=null;for(;e===Ja;)Ja=Xn[--Fn],Xn[Fn]=null,Br=Xn[--Fn],Xn[Fn]=null,Hr=Xn[--Fn],Xn[Fn]=null}var dn=null,jt=null,ot=!1,ti=null,Sr=!1,nd=Error(l(519));function ni(e){var r=Error(l(418,""));throw Xl($n(r,e)),nd}function gp(e){var r=e.stateNode,i=e.type,o=e.memoizedProps;switch(r[Q]=e,r[oe]=o,i){case"dialog":Je("cancel",r),Je("close",r);break;case"iframe":case"object":case"embed":Je("load",r);break;case"video":case"audio":for(i=0;i<yo.length;i++)Je(yo[i],r);break;case"source":Je("error",r);break;case"img":case"image":case"link":Je("error",r),Je("load",r);break;case"details":Je("toggle",r);break;case"input":Je("invalid",r),Mm(r,o.value,o.defaultValue,o.checked,o.defaultChecked,o.type,o.name,!0),vs(r);break;case"select":Je("invalid",r);break;case"textarea":Je("invalid",r),jm(r,o.value,o.defaultValue,o.children),vs(r)}i=o.children,typeof i!="string"&&typeof i!="number"&&typeof i!="bigint"||r.textContent===""+i||o.suppressHydrationWarning===!0||jv(r.textContent,i)?(o.popover!=null&&(Je("beforetoggle",r),Je("toggle",r)),o.onScroll!=null&&Je("scroll",r),o.onScrollEnd!=null&&Je("scrollend",r),o.onClick!=null&&(r.onclick=dc),r=!0):r=!1,r||ni(e)}function vp(e){for(dn=e.return;dn;)switch(dn.tag){case 5:case 13:Sr=!1;return;case 27:case 3:Sr=!0;return;default:dn=dn.return}}function $l(e){if(e!==dn)return!1;if(!ot)return vp(e),ot=!0,!1;var r=e.tag,i;if((i=r!==3&&r!==27)&&((i=r===5)&&(i=e.type,i=!(i!=="form"&&i!=="button")||bf(e.type,e.memoizedProps)),i=!i),i&&jt&&ni(e),vp(e),r===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(l(317));e:{for(e=e.nextSibling,r=0;e;){if(e.nodeType===8)if(i=e.data,i==="/$"){if(r===0){jt=ur(e.nextSibling);break e}r--}else i!=="$"&&i!=="$!"&&i!=="$?"||r++;e=e.nextSibling}jt=null}}else r===27?(r=jt,_a(e.type)?(e=Ef,Ef=null,jt=e):jt=r):jt=dn?ur(e.stateNode.nextSibling):null;return!0}function Yl(){jt=dn=null,ot=!1}function yp(){var e=ti;return e!==null&&(Sn===null?Sn=e:Sn.push.apply(Sn,e),ti=null),e}function Xl(e){ti===null?ti=[e]:ti.push(e)}var rd=S(null),ri=null,qr=null;function ca(e,r,i){Y(rd,r._currentValue),r._currentValue=i}function Vr(e){e._currentValue=rd.current,U(rd)}function ad(e,r,i){for(;e!==null;){var o=e.alternate;if((e.childLanes&r)!==r?(e.childLanes|=r,o!==null&&(o.childLanes|=r)):o!==null&&(o.childLanes&r)!==r&&(o.childLanes|=r),e===i)break;e=e.return}}function id(e,r,i,o){var c=e.child;for(c!==null&&(c.return=e);c!==null;){var d=c.dependencies;if(d!==null){var b=c.child;d=d.firstContext;e:for(;d!==null;){var x=d;d=c;for(var D=0;D<r.length;D++)if(x.context===r[D]){d.lanes|=i,x=d.alternate,x!==null&&(x.lanes|=i),ad(d.return,i,e),o||(b=null);break e}d=x.next}}else if(c.tag===18){if(b=c.return,b===null)throw Error(l(341));b.lanes|=i,d=b.alternate,d!==null&&(d.lanes|=i),ad(b,i,e),b=null}else b=c.child;if(b!==null)b.return=c;else for(b=c;b!==null;){if(b===e){b=null;break}if(c=b.sibling,c!==null){c.return=b.return,b=c;break}b=b.return}c=b}}function Fl(e,r,i,o){e=null;for(var c=r,d=!1;c!==null;){if(!d){if((c.flags&524288)!==0)d=!0;else if((c.flags&262144)!==0)break}if(c.tag===10){var b=c.alternate;if(b===null)throw Error(l(387));if(b=b.memoizedProps,b!==null){var x=c.type;An(c.pendingProps.value,b.value)||(e!==null?e.push(x):e=[x])}}else if(c===pe.current){if(b=c.alternate,b===null)throw Error(l(387));b.memoizedState.memoizedState!==c.memoizedState.memoizedState&&(e!==null?e.push(_o):e=[_o])}c=c.return}e!==null&&id(r,e,i,o),r.flags|=262144}function Ds(e){for(e=e.firstContext;e!==null;){if(!An(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function ai(e){ri=e,qr=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function sn(e){return bp(ri,e)}function js(e,r){return ri===null&&ai(e),bp(e,r)}function bp(e,r){var i=r._currentValue;if(r={context:r,memoizedValue:i,next:null},qr===null){if(e===null)throw Error(l(308));qr=r,e.dependencies={lanes:0,firstContext:r},e.flags|=524288}else qr=qr.next=r;return i}var H2=typeof AbortController<"u"?AbortController:function(){var e=[],r=this.signal={aborted:!1,addEventListener:function(i,o){e.push(o)}};this.abort=function(){r.aborted=!0,e.forEach(function(i){return i()})}},B2=t.unstable_scheduleCallback,q2=t.unstable_NormalPriority,$t={$$typeof:ae,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function ld(){return{controller:new H2,data:new Map,refCount:0}}function Kl(e){e.refCount--,e.refCount===0&&B2(q2,function(){e.controller.abort()})}var Wl=null,od=0,Hi=0,Bi=null;function V2(e,r){if(Wl===null){var i=Wl=[];od=0,Hi=uf(),Bi={status:"pending",value:void 0,then:function(o){i.push(o)}}}return od++,r.then(wp,wp),r}function wp(){if(--od===0&&Wl!==null){Bi!==null&&(Bi.status="fulfilled");var e=Wl;Wl=null,Hi=0,Bi=null;for(var r=0;r<e.length;r++)(0,e[r])()}}function G2(e,r){var i=[],o={status:"pending",value:null,reason:null,then:function(c){i.push(c)}};return e.then(function(){o.status="fulfilled",o.value=r;for(var c=0;c<i.length;c++)(0,i[c])(r)},function(c){for(o.status="rejected",o.reason=c,c=0;c<i.length;c++)(0,i[c])(void 0)}),o}var Sp=R.S;R.S=function(e,r){typeof r=="object"&&r!==null&&typeof r.then=="function"&&V2(e,r),Sp!==null&&Sp(e,r)};var ii=S(null);function sd(){var e=ii.current;return e!==null?e:Et.pooledCache}function ks(e,r){r===null?Y(ii,ii.current):Y(ii,r.pool)}function xp(){var e=sd();return e===null?null:{parent:$t._currentValue,pool:e}}var Ql=Error(l(460)),Ep=Error(l(474)),Ls=Error(l(542)),cd={then:function(){}};function _p(e){return e=e.status,e==="fulfilled"||e==="rejected"}function zs(){}function Tp(e,r,i){switch(i=e[i],i===void 0?e.push(r):i!==r&&(r.then(zs,zs),r=i),r.status){case"fulfilled":return r.value;case"rejected":throw e=r.reason,Op(e),e;default:if(typeof r.status=="string")r.then(zs,zs);else{if(e=Et,e!==null&&100<e.shellSuspendCounter)throw Error(l(482));e=r,e.status="pending",e.then(function(o){if(r.status==="pending"){var c=r;c.status="fulfilled",c.value=o}},function(o){if(r.status==="pending"){var c=r;c.status="rejected",c.reason=o}})}switch(r.status){case"fulfilled":return r.value;case"rejected":throw e=r.reason,Op(e),e}throw Zl=r,Ql}}var Zl=null;function Cp(){if(Zl===null)throw Error(l(459));var e=Zl;return Zl=null,e}function Op(e){if(e===Ql||e===Ls)throw Error(l(483))}var ua=!1;function ud(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function dd(e,r){e=e.updateQueue,r.updateQueue===e&&(r.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function da(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function fa(e,r,i){var o=e.updateQueue;if(o===null)return null;if(o=o.shared,(ct&2)!==0){var c=o.pending;return c===null?r.next=r:(r.next=c.next,c.next=r),o.pending=r,r=As(e),hp(e,null,i),r}return Os(e,o,r,i),As(e)}function Jl(e,r,i){if(r=r.updateQueue,r!==null&&(r=r.shared,(i&4194048)!==0)){var o=r.lanes;o&=e.pendingLanes,i|=o,r.lanes=i,Ht(e,i)}}function fd(e,r){var i=e.updateQueue,o=e.alternate;if(o!==null&&(o=o.updateQueue,i===o)){var c=null,d=null;if(i=i.firstBaseUpdate,i!==null){do{var b={lane:i.lane,tag:i.tag,payload:i.payload,callback:null,next:null};d===null?c=d=b:d=d.next=b,i=i.next}while(i!==null);d===null?c=d=r:d=d.next=r}else c=d=r;i={baseState:o.baseState,firstBaseUpdate:c,lastBaseUpdate:d,shared:o.shared,callbacks:o.callbacks},e.updateQueue=i;return}e=i.lastBaseUpdate,e===null?i.firstBaseUpdate=r:e.next=r,i.lastBaseUpdate=r}var hd=!1;function eo(){if(hd){var e=Bi;if(e!==null)throw e}}function to(e,r,i,o){hd=!1;var c=e.updateQueue;ua=!1;var d=c.firstBaseUpdate,b=c.lastBaseUpdate,x=c.shared.pending;if(x!==null){c.shared.pending=null;var D=x,K=D.next;D.next=null,b===null?d=K:b.next=K,b=D;var de=e.alternate;de!==null&&(de=de.updateQueue,x=de.lastBaseUpdate,x!==b&&(x===null?de.firstBaseUpdate=K:x.next=K,de.lastBaseUpdate=D))}if(d!==null){var me=c.baseState;b=0,de=K=D=null,x=d;do{var J=x.lane&-536870913,te=J!==x.lane;if(te?(nt&J)===J:(o&J)===J){J!==0&&J===Hi&&(hd=!0),de!==null&&(de=de.next={lane:0,tag:x.tag,payload:x.payload,callback:null,next:null});e:{var Ue=e,ke=x;J=r;var gt=i;switch(ke.tag){case 1:if(Ue=ke.payload,typeof Ue=="function"){me=Ue.call(gt,me,J);break e}me=Ue;break e;case 3:Ue.flags=Ue.flags&-65537|128;case 0:if(Ue=ke.payload,J=typeof Ue=="function"?Ue.call(gt,me,J):Ue,J==null)break e;me=w({},me,J);break e;case 2:ua=!0}}J=x.callback,J!==null&&(e.flags|=64,te&&(e.flags|=8192),te=c.callbacks,te===null?c.callbacks=[J]:te.push(J))}else te={lane:J,tag:x.tag,payload:x.payload,callback:x.callback,next:null},de===null?(K=de=te,D=me):de=de.next=te,b|=J;if(x=x.next,x===null){if(x=c.shared.pending,x===null)break;te=x,x=te.next,te.next=null,c.lastBaseUpdate=te,c.shared.pending=null}}while(!0);de===null&&(D=me),c.baseState=D,c.firstBaseUpdate=K,c.lastBaseUpdate=de,d===null&&(c.shared.lanes=0),wa|=b,e.lanes=b,e.memoizedState=me}}function Ap(e,r){if(typeof e!="function")throw Error(l(191,e));e.call(r)}function Rp(e,r){var i=e.callbacks;if(i!==null)for(e.callbacks=null,e=0;e<i.length;e++)Ap(i[e],r)}var qi=S(null),Ps=S(0);function Np(e,r){e=Wr,Y(Ps,e),Y(qi,r),Wr=e|r.baseLanes}function md(){Y(Ps,Wr),Y(qi,qi.current)}function pd(){Wr=Ps.current,U(qi),U(Ps)}var ha=0,Ye=null,mt=null,Bt=null,Is=!1,Vi=!1,li=!1,Us=0,no=0,Gi=null,$2=0;function Lt(){throw Error(l(321))}function gd(e,r){if(r===null)return!1;for(var i=0;i<r.length&&i<e.length;i++)if(!An(e[i],r[i]))return!1;return!0}function vd(e,r,i,o,c,d){return ha=d,Ye=r,r.memoizedState=null,r.updateQueue=null,r.lanes=0,R.H=e===null||e.memoizedState===null?hg:mg,li=!1,d=i(o,c),li=!1,Vi&&(d=Dp(r,i,o,c)),Mp(e),d}function Mp(e){R.H=$s;var r=mt!==null&&mt.next!==null;if(ha=0,Bt=mt=Ye=null,Is=!1,no=0,Gi=null,r)throw Error(l(300));e===null||Wt||(e=e.dependencies,e!==null&&Ds(e)&&(Wt=!0))}function Dp(e,r,i,o){Ye=e;var c=0;do{if(Vi&&(Gi=null),no=0,Vi=!1,25<=c)throw Error(l(301));if(c+=1,Bt=mt=null,e.updateQueue!=null){var d=e.updateQueue;d.lastEffect=null,d.events=null,d.stores=null,d.memoCache!=null&&(d.memoCache.index=0)}R.H=Z2,d=r(i,o)}while(Vi);return d}function Y2(){var e=R.H,r=e.useState()[0];return r=typeof r.then=="function"?ro(r):r,e=e.useState()[0],(mt!==null?mt.memoizedState:null)!==e&&(Ye.flags|=1024),r}function yd(){var e=Us!==0;return Us=0,e}function bd(e,r,i){r.updateQueue=e.updateQueue,r.flags&=-2053,e.lanes&=~i}function wd(e){if(Is){for(e=e.memoizedState;e!==null;){var r=e.queue;r!==null&&(r.pending=null),e=e.next}Is=!1}ha=0,Bt=mt=Ye=null,Vi=!1,no=Us=0,Gi=null}function bn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Bt===null?Ye.memoizedState=Bt=e:Bt=Bt.next=e,Bt}function qt(){if(mt===null){var e=Ye.alternate;e=e!==null?e.memoizedState:null}else e=mt.next;var r=Bt===null?Ye.memoizedState:Bt.next;if(r!==null)Bt=r,mt=e;else{if(e===null)throw Ye.alternate===null?Error(l(467)):Error(l(310));mt=e,e={memoizedState:mt.memoizedState,baseState:mt.baseState,baseQueue:mt.baseQueue,queue:mt.queue,next:null},Bt===null?Ye.memoizedState=Bt=e:Bt=Bt.next=e}return Bt}function Sd(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function ro(e){var r=no;return no+=1,Gi===null&&(Gi=[]),e=Tp(Gi,e,r),r=Ye,(Bt===null?r.memoizedState:Bt.next)===null&&(r=r.alternate,R.H=r===null||r.memoizedState===null?hg:mg),e}function Hs(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return ro(e);if(e.$$typeof===ae)return sn(e)}throw Error(l(438,String(e)))}function xd(e){var r=null,i=Ye.updateQueue;if(i!==null&&(r=i.memoCache),r==null){var o=Ye.alternate;o!==null&&(o=o.updateQueue,o!==null&&(o=o.memoCache,o!=null&&(r={data:o.data.map(function(c){return c.slice()}),index:0})))}if(r==null&&(r={data:[],index:0}),i===null&&(i=Sd(),Ye.updateQueue=i),i.memoCache=r,i=r.data[r.index],i===void 0)for(i=r.data[r.index]=Array(e),o=0;o<e;o++)i[o]=T;return r.index++,i}function Gr(e,r){return typeof r=="function"?r(e):r}function Bs(e){var r=qt();return Ed(r,mt,e)}function Ed(e,r,i){var o=e.queue;if(o===null)throw Error(l(311));o.lastRenderedReducer=i;var c=e.baseQueue,d=o.pending;if(d!==null){if(c!==null){var b=c.next;c.next=d.next,d.next=b}r.baseQueue=c=d,o.pending=null}if(d=e.baseState,c===null)e.memoizedState=d;else{r=c.next;var x=b=null,D=null,K=r,de=!1;do{var me=K.lane&-536870913;if(me!==K.lane?(nt&me)===me:(ha&me)===me){var J=K.revertLane;if(J===0)D!==null&&(D=D.next={lane:0,revertLane:0,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null}),me===Hi&&(de=!0);else if((ha&J)===J){K=K.next,J===Hi&&(de=!0);continue}else me={lane:0,revertLane:K.revertLane,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},D===null?(x=D=me,b=d):D=D.next=me,Ye.lanes|=J,wa|=J;me=K.action,li&&i(d,me),d=K.hasEagerState?K.eagerState:i(d,me)}else J={lane:me,revertLane:K.revertLane,action:K.action,hasEagerState:K.hasEagerState,eagerState:K.eagerState,next:null},D===null?(x=D=J,b=d):D=D.next=J,Ye.lanes|=me,wa|=me;K=K.next}while(K!==null&&K!==r);if(D===null?b=d:D.next=x,!An(d,e.memoizedState)&&(Wt=!0,de&&(i=Bi,i!==null)))throw i;e.memoizedState=d,e.baseState=b,e.baseQueue=D,o.lastRenderedState=d}return c===null&&(o.lanes=0),[e.memoizedState,o.dispatch]}function _d(e){var r=qt(),i=r.queue;if(i===null)throw Error(l(311));i.lastRenderedReducer=e;var o=i.dispatch,c=i.pending,d=r.memoizedState;if(c!==null){i.pending=null;var b=c=c.next;do d=e(d,b.action),b=b.next;while(b!==c);An(d,r.memoizedState)||(Wt=!0),r.memoizedState=d,r.baseQueue===null&&(r.baseState=d),i.lastRenderedState=d}return[d,o]}function jp(e,r,i){var o=Ye,c=qt(),d=ot;if(d){if(i===void 0)throw Error(l(407));i=i()}else i=r();var b=!An((mt||c).memoizedState,i);b&&(c.memoizedState=i,Wt=!0),c=c.queue;var x=zp.bind(null,o,c,e);if(ao(2048,8,x,[e]),c.getSnapshot!==r||b||Bt!==null&&Bt.memoizedState.tag&1){if(o.flags|=2048,$i(9,qs(),Lp.bind(null,o,c,i,r),null),Et===null)throw Error(l(349));d||(ha&124)!==0||kp(o,r,i)}return i}function kp(e,r,i){e.flags|=16384,e={getSnapshot:r,value:i},r=Ye.updateQueue,r===null?(r=Sd(),Ye.updateQueue=r,r.stores=[e]):(i=r.stores,i===null?r.stores=[e]:i.push(e))}function Lp(e,r,i,o){r.value=i,r.getSnapshot=o,Pp(r)&&Ip(e)}function zp(e,r,i){return i(function(){Pp(r)&&Ip(e)})}function Pp(e){var r=e.getSnapshot;e=e.value;try{var i=r();return!An(e,i)}catch{return!0}}function Ip(e){var r=zi(e,2);r!==null&&kn(r,e,2)}function Td(e){var r=bn();if(typeof e=="function"){var i=e;if(e=i(),li){Ct(!0);try{i()}finally{Ct(!1)}}}return r.memoizedState=r.baseState=e,r.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gr,lastRenderedState:e},r}function Up(e,r,i,o){return e.baseState=i,Ed(e,mt,typeof o=="function"?o:Gr)}function X2(e,r,i,o,c){if(Gs(e))throw Error(l(485));if(e=r.action,e!==null){var d={payload:c,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(b){d.listeners.push(b)}};R.T!==null?i(!0):d.isTransition=!1,o(d),i=r.pending,i===null?(d.next=r.pending=d,Hp(r,d)):(d.next=i.next,r.pending=i.next=d)}}function Hp(e,r){var i=r.action,o=r.payload,c=e.state;if(r.isTransition){var d=R.T,b={};R.T=b;try{var x=i(c,o),D=R.S;D!==null&&D(b,x),Bp(e,r,x)}catch(K){Cd(e,r,K)}finally{R.T=d}}else try{d=i(c,o),Bp(e,r,d)}catch(K){Cd(e,r,K)}}function Bp(e,r,i){i!==null&&typeof i=="object"&&typeof i.then=="function"?i.then(function(o){qp(e,r,o)},function(o){return Cd(e,r,o)}):qp(e,r,i)}function qp(e,r,i){r.status="fulfilled",r.value=i,Vp(r),e.state=i,r=e.pending,r!==null&&(i=r.next,i===r?e.pending=null:(i=i.next,r.next=i,Hp(e,i)))}function Cd(e,r,i){var o=e.pending;if(e.pending=null,o!==null){o=o.next;do r.status="rejected",r.reason=i,Vp(r),r=r.next;while(r!==o)}e.action=null}function Vp(e){e=e.listeners;for(var r=0;r<e.length;r++)(0,e[r])()}function Gp(e,r){return r}function $p(e,r){if(ot){var i=Et.formState;if(i!==null){e:{var o=Ye;if(ot){if(jt){t:{for(var c=jt,d=Sr;c.nodeType!==8;){if(!d){c=null;break t}if(c=ur(c.nextSibling),c===null){c=null;break t}}d=c.data,c=d==="F!"||d==="F"?c:null}if(c){jt=ur(c.nextSibling),o=c.data==="F!";break e}}ni(o)}o=!1}o&&(r=i[0])}}return i=bn(),i.memoizedState=i.baseState=r,o={pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gp,lastRenderedState:r},i.queue=o,i=ug.bind(null,Ye,o),o.dispatch=i,o=Td(!1),d=Md.bind(null,Ye,!1,o.queue),o=bn(),c={state:r,dispatch:null,action:e,pending:null},o.queue=c,i=X2.bind(null,Ye,c,d,i),c.dispatch=i,o.memoizedState=e,[r,i,!1]}function Yp(e){var r=qt();return Xp(r,mt,e)}function Xp(e,r,i){if(r=Ed(e,r,Gp)[0],e=Bs(Gr)[0],typeof r=="object"&&r!==null&&typeof r.then=="function")try{var o=ro(r)}catch(b){throw b===Ql?Ls:b}else o=r;r=qt();var c=r.queue,d=c.dispatch;return i!==r.memoizedState&&(Ye.flags|=2048,$i(9,qs(),F2.bind(null,c,i),null)),[o,d,e]}function F2(e,r){e.action=r}function Fp(e){var r=qt(),i=mt;if(i!==null)return Xp(r,i,e);qt(),r=r.memoizedState,i=qt();var o=i.queue.dispatch;return i.memoizedState=e,[r,o,!1]}function $i(e,r,i,o){return e={tag:e,create:i,deps:o,inst:r,next:null},r=Ye.updateQueue,r===null&&(r=Sd(),Ye.updateQueue=r),i=r.lastEffect,i===null?r.lastEffect=e.next=e:(o=i.next,i.next=e,e.next=o,r.lastEffect=e),e}function qs(){return{destroy:void 0,resource:void 0}}function Kp(){return qt().memoizedState}function Vs(e,r,i,o){var c=bn();o=o===void 0?null:o,Ye.flags|=e,c.memoizedState=$i(1|r,qs(),i,o)}function ao(e,r,i,o){var c=qt();o=o===void 0?null:o;var d=c.memoizedState.inst;mt!==null&&o!==null&&gd(o,mt.memoizedState.deps)?c.memoizedState=$i(r,d,i,o):(Ye.flags|=e,c.memoizedState=$i(1|r,d,i,o))}function Wp(e,r){Vs(8390656,8,e,r)}function Qp(e,r){ao(2048,8,e,r)}function Zp(e,r){return ao(4,2,e,r)}function Jp(e,r){return ao(4,4,e,r)}function eg(e,r){if(typeof r=="function"){e=e();var i=r(e);return function(){typeof i=="function"?i():r(null)}}if(r!=null)return e=e(),r.current=e,function(){r.current=null}}function tg(e,r,i){i=i!=null?i.concat([e]):null,ao(4,4,eg.bind(null,r,e),i)}function Od(){}function ng(e,r){var i=qt();r=r===void 0?null:r;var o=i.memoizedState;return r!==null&&gd(r,o[1])?o[0]:(i.memoizedState=[e,r],e)}function rg(e,r){var i=qt();r=r===void 0?null:r;var o=i.memoizedState;if(r!==null&&gd(r,o[1]))return o[0];if(o=e(),li){Ct(!0);try{e()}finally{Ct(!1)}}return i.memoizedState=[o,r],o}function Ad(e,r,i){return i===void 0||(ha&1073741824)!==0?e.memoizedState=r:(e.memoizedState=i,e=lv(),Ye.lanes|=e,wa|=e,i)}function ag(e,r,i,o){return An(i,r)?i:qi.current!==null?(e=Ad(e,i,o),An(e,r)||(Wt=!0),e):(ha&42)===0?(Wt=!0,e.memoizedState=i):(e=lv(),Ye.lanes|=e,wa|=e,r)}function ig(e,r,i,o,c){var d=y.p;y.p=d!==0&&8>d?d:8;var b=R.T,x={};R.T=x,Md(e,!1,r,i);try{var D=c(),K=R.S;if(K!==null&&K(x,D),D!==null&&typeof D=="object"&&typeof D.then=="function"){var de=G2(D,o);io(e,r,de,jn(e))}else io(e,r,o,jn(e))}catch(me){io(e,r,{then:function(){},status:"rejected",reason:me},jn())}finally{y.p=d,R.T=b}}function K2(){}function Rd(e,r,i,o){if(e.tag!==5)throw Error(l(476));var c=lg(e).queue;ig(e,c,r,ce,i===null?K2:function(){return og(e),i(o)})}function lg(e){var r=e.memoizedState;if(r!==null)return r;r={memoizedState:ce,baseState:ce,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gr,lastRenderedState:ce},next:null};var i={};return r.next={memoizedState:i,baseState:i,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:Gr,lastRenderedState:i},next:null},e.memoizedState=r,e=e.alternate,e!==null&&(e.memoizedState=r),r}function og(e){var r=lg(e).next.queue;io(e,r,{},jn())}function Nd(){return sn(_o)}function sg(){return qt().memoizedState}function cg(){return qt().memoizedState}function W2(e){for(var r=e.return;r!==null;){switch(r.tag){case 24:case 3:var i=jn();e=da(i);var o=fa(r,e,i);o!==null&&(kn(o,r,i),Jl(o,r,i)),r={cache:ld()},e.payload=r;return}r=r.return}}function Q2(e,r,i){var o=jn();i={lane:o,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null},Gs(e)?dg(r,i):(i=Wu(e,r,i,o),i!==null&&(kn(i,e,o),fg(i,r,o)))}function ug(e,r,i){var o=jn();io(e,r,i,o)}function io(e,r,i,o){var c={lane:o,revertLane:0,action:i,hasEagerState:!1,eagerState:null,next:null};if(Gs(e))dg(r,c);else{var d=e.alternate;if(e.lanes===0&&(d===null||d.lanes===0)&&(d=r.lastRenderedReducer,d!==null))try{var b=r.lastRenderedState,x=d(b,i);if(c.hasEagerState=!0,c.eagerState=x,An(x,b))return Os(e,r,c,0),Et===null&&Cs(),!1}catch{}finally{}if(i=Wu(e,r,c,o),i!==null)return kn(i,e,o),fg(i,r,o),!0}return!1}function Md(e,r,i,o){if(o={lane:2,revertLane:uf(),action:o,hasEagerState:!1,eagerState:null,next:null},Gs(e)){if(r)throw Error(l(479))}else r=Wu(e,i,o,2),r!==null&&kn(r,e,2)}function Gs(e){var r=e.alternate;return e===Ye||r!==null&&r===Ye}function dg(e,r){Vi=Is=!0;var i=e.pending;i===null?r.next=r:(r.next=i.next,i.next=r),e.pending=r}function fg(e,r,i){if((i&4194048)!==0){var o=r.lanes;o&=e.pendingLanes,i|=o,r.lanes=i,Ht(e,i)}}var $s={readContext:sn,use:Hs,useCallback:Lt,useContext:Lt,useEffect:Lt,useImperativeHandle:Lt,useLayoutEffect:Lt,useInsertionEffect:Lt,useMemo:Lt,useReducer:Lt,useRef:Lt,useState:Lt,useDebugValue:Lt,useDeferredValue:Lt,useTransition:Lt,useSyncExternalStore:Lt,useId:Lt,useHostTransitionStatus:Lt,useFormState:Lt,useActionState:Lt,useOptimistic:Lt,useMemoCache:Lt,useCacheRefresh:Lt},hg={readContext:sn,use:Hs,useCallback:function(e,r){return bn().memoizedState=[e,r===void 0?null:r],e},useContext:sn,useEffect:Wp,useImperativeHandle:function(e,r,i){i=i!=null?i.concat([e]):null,Vs(4194308,4,eg.bind(null,r,e),i)},useLayoutEffect:function(e,r){return Vs(4194308,4,e,r)},useInsertionEffect:function(e,r){Vs(4,2,e,r)},useMemo:function(e,r){var i=bn();r=r===void 0?null:r;var o=e();if(li){Ct(!0);try{e()}finally{Ct(!1)}}return i.memoizedState=[o,r],o},useReducer:function(e,r,i){var o=bn();if(i!==void 0){var c=i(r);if(li){Ct(!0);try{i(r)}finally{Ct(!1)}}}else c=r;return o.memoizedState=o.baseState=c,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:c},o.queue=e,e=e.dispatch=Q2.bind(null,Ye,e),[o.memoizedState,e]},useRef:function(e){var r=bn();return e={current:e},r.memoizedState=e},useState:function(e){e=Td(e);var r=e.queue,i=ug.bind(null,Ye,r);return r.dispatch=i,[e.memoizedState,i]},useDebugValue:Od,useDeferredValue:function(e,r){var i=bn();return Ad(i,e,r)},useTransition:function(){var e=Td(!1);return e=ig.bind(null,Ye,e.queue,!0,!1),bn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,r,i){var o=Ye,c=bn();if(ot){if(i===void 0)throw Error(l(407));i=i()}else{if(i=r(),Et===null)throw Error(l(349));(nt&124)!==0||kp(o,r,i)}c.memoizedState=i;var d={value:i,getSnapshot:r};return c.queue=d,Wp(zp.bind(null,o,d,e),[e]),o.flags|=2048,$i(9,qs(),Lp.bind(null,o,d,i,r),null),i},useId:function(){var e=bn(),r=Et.identifierPrefix;if(ot){var i=Br,o=Hr;i=(o&~(1<<32-Ot(o)-1)).toString(32)+i,r="«"+r+"R"+i,i=Us++,0<i&&(r+="H"+i.toString(32)),r+="»"}else i=$2++,r="«"+r+"r"+i.toString(32)+"»";return e.memoizedState=r},useHostTransitionStatus:Nd,useFormState:$p,useActionState:$p,useOptimistic:function(e){var r=bn();r.memoizedState=r.baseState=e;var i={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return r.queue=i,r=Md.bind(null,Ye,!0,i),i.dispatch=r,[e,r]},useMemoCache:xd,useCacheRefresh:function(){return bn().memoizedState=W2.bind(null,Ye)}},mg={readContext:sn,use:Hs,useCallback:ng,useContext:sn,useEffect:Qp,useImperativeHandle:tg,useInsertionEffect:Zp,useLayoutEffect:Jp,useMemo:rg,useReducer:Bs,useRef:Kp,useState:function(){return Bs(Gr)},useDebugValue:Od,useDeferredValue:function(e,r){var i=qt();return ag(i,mt.memoizedState,e,r)},useTransition:function(){var e=Bs(Gr)[0],r=qt().memoizedState;return[typeof e=="boolean"?e:ro(e),r]},useSyncExternalStore:jp,useId:sg,useHostTransitionStatus:Nd,useFormState:Yp,useActionState:Yp,useOptimistic:function(e,r){var i=qt();return Up(i,mt,e,r)},useMemoCache:xd,useCacheRefresh:cg},Z2={readContext:sn,use:Hs,useCallback:ng,useContext:sn,useEffect:Qp,useImperativeHandle:tg,useInsertionEffect:Zp,useLayoutEffect:Jp,useMemo:rg,useReducer:_d,useRef:Kp,useState:function(){return _d(Gr)},useDebugValue:Od,useDeferredValue:function(e,r){var i=qt();return mt===null?Ad(i,e,r):ag(i,mt.memoizedState,e,r)},useTransition:function(){var e=_d(Gr)[0],r=qt().memoizedState;return[typeof e=="boolean"?e:ro(e),r]},useSyncExternalStore:jp,useId:sg,useHostTransitionStatus:Nd,useFormState:Fp,useActionState:Fp,useOptimistic:function(e,r){var i=qt();return mt!==null?Up(i,mt,e,r):(i.baseState=e,[e,i.queue.dispatch])},useMemoCache:xd,useCacheRefresh:cg},Yi=null,lo=0;function Ys(e){var r=lo;return lo+=1,Yi===null&&(Yi=[]),Tp(Yi,e,r)}function oo(e,r){r=r.props.ref,e.ref=r!==void 0?r:null}function Xs(e,r){throw r.$$typeof===C?Error(l(525)):(e=Object.prototype.toString.call(r),Error(l(31,e==="[object Object]"?"object with keys {"+Object.keys(r).join(", ")+"}":e)))}function pg(e){var r=e._init;return r(e._payload)}function gg(e){function r(G,q){if(e){var X=G.deletions;X===null?(G.deletions=[q],G.flags|=16):X.push(q)}}function i(G,q){if(!e)return null;for(;q!==null;)r(G,q),q=q.sibling;return null}function o(G){for(var q=new Map;G!==null;)G.key!==null?q.set(G.key,G):q.set(G.index,G),G=G.sibling;return q}function c(G,q){return G=Ur(G,q),G.index=0,G.sibling=null,G}function d(G,q,X){return G.index=X,e?(X=G.alternate,X!==null?(X=X.index,X<q?(G.flags|=67108866,q):X):(G.flags|=67108866,q)):(G.flags|=1048576,q)}function b(G){return e&&G.alternate===null&&(G.flags|=67108866),G}function x(G,q,X,fe){return q===null||q.tag!==6?(q=Zu(X,G.mode,fe),q.return=G,q):(q=c(q,X),q.return=G,q)}function D(G,q,X,fe){var Te=X.type;return Te===j?de(G,q,X.props.children,fe,X.key):q!==null&&(q.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===re&&pg(Te)===q.type)?(q=c(q,X.props),oo(q,X),q.return=G,q):(q=Rs(X.type,X.key,X.props,null,G.mode,fe),oo(q,X),q.return=G,q)}function K(G,q,X,fe){return q===null||q.tag!==4||q.stateNode.containerInfo!==X.containerInfo||q.stateNode.implementation!==X.implementation?(q=Ju(X,G.mode,fe),q.return=G,q):(q=c(q,X.children||[]),q.return=G,q)}function de(G,q,X,fe,Te){return q===null||q.tag!==7?(q=Za(X,G.mode,fe,Te),q.return=G,q):(q=c(q,X),q.return=G,q)}function me(G,q,X){if(typeof q=="string"&&q!==""||typeof q=="number"||typeof q=="bigint")return q=Zu(""+q,G.mode,X),q.return=G,q;if(typeof q=="object"&&q!==null){switch(q.$$typeof){case _:return X=Rs(q.type,q.key,q.props,null,G.mode,X),oo(X,q),X.return=G,X;case A:return q=Ju(q,G.mode,X),q.return=G,q;case re:var fe=q._init;return q=fe(q._payload),me(G,q,X)}if(le(q)||ne(q))return q=Za(q,G.mode,X,null),q.return=G,q;if(typeof q.then=="function")return me(G,Ys(q),X);if(q.$$typeof===ae)return me(G,js(G,q),X);Xs(G,q)}return null}function J(G,q,X,fe){var Te=q!==null?q.key:null;if(typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint")return Te!==null?null:x(G,q,""+X,fe);if(typeof X=="object"&&X!==null){switch(X.$$typeof){case _:return X.key===Te?D(G,q,X,fe):null;case A:return X.key===Te?K(G,q,X,fe):null;case re:return Te=X._init,X=Te(X._payload),J(G,q,X,fe)}if(le(X)||ne(X))return Te!==null?null:de(G,q,X,fe,null);if(typeof X.then=="function")return J(G,q,Ys(X),fe);if(X.$$typeof===ae)return J(G,q,js(G,X),fe);Xs(G,X)}return null}function te(G,q,X,fe,Te){if(typeof fe=="string"&&fe!==""||typeof fe=="number"||typeof fe=="bigint")return G=G.get(X)||null,x(q,G,""+fe,Te);if(typeof fe=="object"&&fe!==null){switch(fe.$$typeof){case _:return G=G.get(fe.key===null?X:fe.key)||null,D(q,G,fe,Te);case A:return G=G.get(fe.key===null?X:fe.key)||null,K(q,G,fe,Te);case re:var We=fe._init;return fe=We(fe._payload),te(G,q,X,fe,Te)}if(le(fe)||ne(fe))return G=G.get(X)||null,de(q,G,fe,Te,null);if(typeof fe.then=="function")return te(G,q,X,Ys(fe),Te);if(fe.$$typeof===ae)return te(G,q,X,js(q,fe),Te);Xs(q,fe)}return null}function Ue(G,q,X,fe){for(var Te=null,We=null,Ae=q,Le=q=0,Zt=null;Ae!==null&&Le<X.length;Le++){Ae.index>Le?(Zt=Ae,Ae=null):Zt=Ae.sibling;var it=J(G,Ae,X[Le],fe);if(it===null){Ae===null&&(Ae=Zt);break}e&&Ae&&it.alternate===null&&r(G,Ae),q=d(it,q,Le),We===null?Te=it:We.sibling=it,We=it,Ae=Zt}if(Le===X.length)return i(G,Ae),ot&&ei(G,Le),Te;if(Ae===null){for(;Le<X.length;Le++)Ae=me(G,X[Le],fe),Ae!==null&&(q=d(Ae,q,Le),We===null?Te=Ae:We.sibling=Ae,We=Ae);return ot&&ei(G,Le),Te}for(Ae=o(Ae);Le<X.length;Le++)Zt=te(Ae,G,Le,X[Le],fe),Zt!==null&&(e&&Zt.alternate!==null&&Ae.delete(Zt.key===null?Le:Zt.key),q=d(Zt,q,Le),We===null?Te=Zt:We.sibling=Zt,We=Zt);return e&&Ae.forEach(function(Ra){return r(G,Ra)}),ot&&ei(G,Le),Te}function ke(G,q,X,fe){if(X==null)throw Error(l(151));for(var Te=null,We=null,Ae=q,Le=q=0,Zt=null,it=X.next();Ae!==null&&!it.done;Le++,it=X.next()){Ae.index>Le?(Zt=Ae,Ae=null):Zt=Ae.sibling;var Ra=J(G,Ae,it.value,fe);if(Ra===null){Ae===null&&(Ae=Zt);break}e&&Ae&&Ra.alternate===null&&r(G,Ae),q=d(Ra,q,Le),We===null?Te=Ra:We.sibling=Ra,We=Ra,Ae=Zt}if(it.done)return i(G,Ae),ot&&ei(G,Le),Te;if(Ae===null){for(;!it.done;Le++,it=X.next())it=me(G,it.value,fe),it!==null&&(q=d(it,q,Le),We===null?Te=it:We.sibling=it,We=it);return ot&&ei(G,Le),Te}for(Ae=o(Ae);!it.done;Le++,it=X.next())it=te(Ae,G,Le,it.value,fe),it!==null&&(e&&it.alternate!==null&&Ae.delete(it.key===null?Le:it.key),q=d(it,q,Le),We===null?Te=it:We.sibling=it,We=it);return e&&Ae.forEach(function(JS){return r(G,JS)}),ot&&ei(G,Le),Te}function gt(G,q,X,fe){if(typeof X=="object"&&X!==null&&X.type===j&&X.key===null&&(X=X.props.children),typeof X=="object"&&X!==null){switch(X.$$typeof){case _:e:{for(var Te=X.key;q!==null;){if(q.key===Te){if(Te=X.type,Te===j){if(q.tag===7){i(G,q.sibling),fe=c(q,X.props.children),fe.return=G,G=fe;break e}}else if(q.elementType===Te||typeof Te=="object"&&Te!==null&&Te.$$typeof===re&&pg(Te)===q.type){i(G,q.sibling),fe=c(q,X.props),oo(fe,X),fe.return=G,G=fe;break e}i(G,q);break}else r(G,q);q=q.sibling}X.type===j?(fe=Za(X.props.children,G.mode,fe,X.key),fe.return=G,G=fe):(fe=Rs(X.type,X.key,X.props,null,G.mode,fe),oo(fe,X),fe.return=G,G=fe)}return b(G);case A:e:{for(Te=X.key;q!==null;){if(q.key===Te)if(q.tag===4&&q.stateNode.containerInfo===X.containerInfo&&q.stateNode.implementation===X.implementation){i(G,q.sibling),fe=c(q,X.children||[]),fe.return=G,G=fe;break e}else{i(G,q);break}else r(G,q);q=q.sibling}fe=Ju(X,G.mode,fe),fe.return=G,G=fe}return b(G);case re:return Te=X._init,X=Te(X._payload),gt(G,q,X,fe)}if(le(X))return Ue(G,q,X,fe);if(ne(X)){if(Te=ne(X),typeof Te!="function")throw Error(l(150));return X=Te.call(X),ke(G,q,X,fe)}if(typeof X.then=="function")return gt(G,q,Ys(X),fe);if(X.$$typeof===ae)return gt(G,q,js(G,X),fe);Xs(G,X)}return typeof X=="string"&&X!==""||typeof X=="number"||typeof X=="bigint"?(X=""+X,q!==null&&q.tag===6?(i(G,q.sibling),fe=c(q,X),fe.return=G,G=fe):(i(G,q),fe=Zu(X,G.mode,fe),fe.return=G,G=fe),b(G)):i(G,q)}return function(G,q,X,fe){try{lo=0;var Te=gt(G,q,X,fe);return Yi=null,Te}catch(Ae){if(Ae===Ql||Ae===Ls)throw Ae;var We=Rn(29,Ae,null,G.mode);return We.lanes=fe,We.return=G,We}finally{}}}var Xi=gg(!0),vg=gg(!1),Kn=S(null),xr=null;function ma(e){var r=e.alternate;Y(Yt,Yt.current&1),Y(Kn,e),xr===null&&(r===null||qi.current!==null||r.memoizedState!==null)&&(xr=e)}function yg(e){if(e.tag===22){if(Y(Yt,Yt.current),Y(Kn,e),xr===null){var r=e.alternate;r!==null&&r.memoizedState!==null&&(xr=e)}}else pa()}function pa(){Y(Yt,Yt.current),Y(Kn,Kn.current)}function $r(e){U(Kn),xr===e&&(xr=null),U(Yt)}var Yt=S(0);function Fs(e){for(var r=e;r!==null;){if(r.tag===13){var i=r.memoizedState;if(i!==null&&(i=i.dehydrated,i===null||i.data==="$?"||xf(i)))return r}else if(r.tag===19&&r.memoizedProps.revealOrder!==void 0){if((r.flags&128)!==0)return r}else if(r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return null;r=r.return}r.sibling.return=r.return,r=r.sibling}return null}function Dd(e,r,i,o){r=e.memoizedState,i=i(o,r),i=i==null?r:w({},r,i),e.memoizedState=i,e.lanes===0&&(e.updateQueue.baseState=i)}var jd={enqueueSetState:function(e,r,i){e=e._reactInternals;var o=jn(),c=da(o);c.payload=r,i!=null&&(c.callback=i),r=fa(e,c,o),r!==null&&(kn(r,e,o),Jl(r,e,o))},enqueueReplaceState:function(e,r,i){e=e._reactInternals;var o=jn(),c=da(o);c.tag=1,c.payload=r,i!=null&&(c.callback=i),r=fa(e,c,o),r!==null&&(kn(r,e,o),Jl(r,e,o))},enqueueForceUpdate:function(e,r){e=e._reactInternals;var i=jn(),o=da(i);o.tag=2,r!=null&&(o.callback=r),r=fa(e,o,i),r!==null&&(kn(r,e,i),Jl(r,e,i))}};function bg(e,r,i,o,c,d,b){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(o,d,b):r.prototype&&r.prototype.isPureReactComponent?!Vl(i,o)||!Vl(c,d):!0}function wg(e,r,i,o){e=r.state,typeof r.componentWillReceiveProps=="function"&&r.componentWillReceiveProps(i,o),typeof r.UNSAFE_componentWillReceiveProps=="function"&&r.UNSAFE_componentWillReceiveProps(i,o),r.state!==e&&jd.enqueueReplaceState(r,r.state,null)}function oi(e,r){var i=r;if("ref"in r){i={};for(var o in r)o!=="ref"&&(i[o]=r[o])}if(e=e.defaultProps){i===r&&(i=w({},i));for(var c in e)i[c]===void 0&&(i[c]=e[c])}return i}var Ks=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var r=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(r))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)};function Sg(e){Ks(e)}function xg(e){console.error(e)}function Eg(e){Ks(e)}function Ws(e,r){try{var i=e.onUncaughtError;i(r.value,{componentStack:r.stack})}catch(o){setTimeout(function(){throw o})}}function _g(e,r,i){try{var o=e.onCaughtError;o(i.value,{componentStack:i.stack,errorBoundary:r.tag===1?r.stateNode:null})}catch(c){setTimeout(function(){throw c})}}function kd(e,r,i){return i=da(i),i.tag=3,i.payload={element:null},i.callback=function(){Ws(e,r)},i}function Tg(e){return e=da(e),e.tag=3,e}function Cg(e,r,i,o){var c=i.type.getDerivedStateFromError;if(typeof c=="function"){var d=o.value;e.payload=function(){return c(d)},e.callback=function(){_g(r,i,o)}}var b=i.stateNode;b!==null&&typeof b.componentDidCatch=="function"&&(e.callback=function(){_g(r,i,o),typeof c!="function"&&(Sa===null?Sa=new Set([this]):Sa.add(this));var x=o.stack;this.componentDidCatch(o.value,{componentStack:x!==null?x:""})})}function J2(e,r,i,o,c){if(i.flags|=32768,o!==null&&typeof o=="object"&&typeof o.then=="function"){if(r=i.alternate,r!==null&&Fl(r,i,c,!0),i=Kn.current,i!==null){switch(i.tag){case 13:return xr===null?af():i.alternate===null&&kt===0&&(kt=3),i.flags&=-257,i.flags|=65536,i.lanes=c,o===cd?i.flags|=16384:(r=i.updateQueue,r===null?i.updateQueue=new Set([o]):r.add(o),of(e,o,c)),!1;case 22:return i.flags|=65536,o===cd?i.flags|=16384:(r=i.updateQueue,r===null?(r={transitions:null,markerInstances:null,retryQueue:new Set([o])},i.updateQueue=r):(i=r.retryQueue,i===null?r.retryQueue=new Set([o]):i.add(o)),of(e,o,c)),!1}throw Error(l(435,i.tag))}return of(e,o,c),af(),!1}if(ot)return r=Kn.current,r!==null?((r.flags&65536)===0&&(r.flags|=256),r.flags|=65536,r.lanes=c,o!==nd&&(e=Error(l(422),{cause:o}),Xl($n(e,i)))):(o!==nd&&(r=Error(l(423),{cause:o}),Xl($n(r,i))),e=e.current.alternate,e.flags|=65536,c&=-c,e.lanes|=c,o=$n(o,i),c=kd(e.stateNode,o,c),fd(e,c),kt!==4&&(kt=2)),!1;var d=Error(l(520),{cause:o});if(d=$n(d,i),po===null?po=[d]:po.push(d),kt!==4&&(kt=2),r===null)return!0;o=$n(o,i),i=r;do{switch(i.tag){case 3:return i.flags|=65536,e=c&-c,i.lanes|=e,e=kd(i.stateNode,o,e),fd(i,e),!1;case 1:if(r=i.type,d=i.stateNode,(i.flags&128)===0&&(typeof r.getDerivedStateFromError=="function"||d!==null&&typeof d.componentDidCatch=="function"&&(Sa===null||!Sa.has(d))))return i.flags|=65536,c&=-c,i.lanes|=c,c=Tg(c),Cg(c,e,i,o),fd(i,c),!1}i=i.return}while(i!==null);return!1}var Og=Error(l(461)),Wt=!1;function nn(e,r,i,o){r.child=e===null?vg(r,null,i,o):Xi(r,e.child,i,o)}function Ag(e,r,i,o,c){i=i.render;var d=r.ref;if("ref"in o){var b={};for(var x in o)x!=="ref"&&(b[x]=o[x])}else b=o;return ai(r),o=vd(e,r,i,b,d,c),x=yd(),e!==null&&!Wt?(bd(e,r,c),Yr(e,r,c)):(ot&&x&&ed(r),r.flags|=1,nn(e,r,o,c),r.child)}function Rg(e,r,i,o,c){if(e===null){var d=i.type;return typeof d=="function"&&!Qu(d)&&d.defaultProps===void 0&&i.compare===null?(r.tag=15,r.type=d,Ng(e,r,d,o,c)):(e=Rs(i.type,null,o,r,r.mode,c),e.ref=r.ref,e.return=r,r.child=e)}if(d=e.child,!qd(e,c)){var b=d.memoizedProps;if(i=i.compare,i=i!==null?i:Vl,i(b,o)&&e.ref===r.ref)return Yr(e,r,c)}return r.flags|=1,e=Ur(d,o),e.ref=r.ref,e.return=r,r.child=e}function Ng(e,r,i,o,c){if(e!==null){var d=e.memoizedProps;if(Vl(d,o)&&e.ref===r.ref)if(Wt=!1,r.pendingProps=o=d,qd(e,c))(e.flags&131072)!==0&&(Wt=!0);else return r.lanes=e.lanes,Yr(e,r,c)}return Ld(e,r,i,o,c)}function Mg(e,r,i){var o=r.pendingProps,c=o.children,d=e!==null?e.memoizedState:null;if(o.mode==="hidden"){if((r.flags&128)!==0){if(o=d!==null?d.baseLanes|i:i,e!==null){for(c=r.child=e.child,d=0;c!==null;)d=d|c.lanes|c.childLanes,c=c.sibling;r.childLanes=d&~o}else r.childLanes=0,r.child=null;return Dg(e,r,o,i)}if((i&536870912)!==0)r.memoizedState={baseLanes:0,cachePool:null},e!==null&&ks(r,d!==null?d.cachePool:null),d!==null?Np(r,d):md(),yg(r);else return r.lanes=r.childLanes=536870912,Dg(e,r,d!==null?d.baseLanes|i:i,i)}else d!==null?(ks(r,d.cachePool),Np(r,d),pa(),r.memoizedState=null):(e!==null&&ks(r,null),md(),pa());return nn(e,r,c,i),r.child}function Dg(e,r,i,o){var c=sd();return c=c===null?null:{parent:$t._currentValue,pool:c},r.memoizedState={baseLanes:i,cachePool:c},e!==null&&ks(r,null),md(),yg(r),e!==null&&Fl(e,r,o,!0),null}function Qs(e,r){var i=r.ref;if(i===null)e!==null&&e.ref!==null&&(r.flags|=4194816);else{if(typeof i!="function"&&typeof i!="object")throw Error(l(284));(e===null||e.ref!==i)&&(r.flags|=4194816)}}function Ld(e,r,i,o,c){return ai(r),i=vd(e,r,i,o,void 0,c),o=yd(),e!==null&&!Wt?(bd(e,r,c),Yr(e,r,c)):(ot&&o&&ed(r),r.flags|=1,nn(e,r,i,c),r.child)}function jg(e,r,i,o,c,d){return ai(r),r.updateQueue=null,i=Dp(r,o,i,c),Mp(e),o=yd(),e!==null&&!Wt?(bd(e,r,d),Yr(e,r,d)):(ot&&o&&ed(r),r.flags|=1,nn(e,r,i,d),r.child)}function kg(e,r,i,o,c){if(ai(r),r.stateNode===null){var d=Pi,b=i.contextType;typeof b=="object"&&b!==null&&(d=sn(b)),d=new i(o,d),r.memoizedState=d.state!==null&&d.state!==void 0?d.state:null,d.updater=jd,r.stateNode=d,d._reactInternals=r,d=r.stateNode,d.props=o,d.state=r.memoizedState,d.refs={},ud(r),b=i.contextType,d.context=typeof b=="object"&&b!==null?sn(b):Pi,d.state=r.memoizedState,b=i.getDerivedStateFromProps,typeof b=="function"&&(Dd(r,i,b,o),d.state=r.memoizedState),typeof i.getDerivedStateFromProps=="function"||typeof d.getSnapshotBeforeUpdate=="function"||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(b=d.state,typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount(),b!==d.state&&jd.enqueueReplaceState(d,d.state,null),to(r,o,d,c),eo(),d.state=r.memoizedState),typeof d.componentDidMount=="function"&&(r.flags|=4194308),o=!0}else if(e===null){d=r.stateNode;var x=r.memoizedProps,D=oi(i,x);d.props=D;var K=d.context,de=i.contextType;b=Pi,typeof de=="object"&&de!==null&&(b=sn(de));var me=i.getDerivedStateFromProps;de=typeof me=="function"||typeof d.getSnapshotBeforeUpdate=="function",x=r.pendingProps!==x,de||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(x||K!==b)&&wg(r,d,o,b),ua=!1;var J=r.memoizedState;d.state=J,to(r,o,d,c),eo(),K=r.memoizedState,x||J!==K||ua?(typeof me=="function"&&(Dd(r,i,me,o),K=r.memoizedState),(D=ua||bg(r,i,D,o,J,K,b))?(de||typeof d.UNSAFE_componentWillMount!="function"&&typeof d.componentWillMount!="function"||(typeof d.componentWillMount=="function"&&d.componentWillMount(),typeof d.UNSAFE_componentWillMount=="function"&&d.UNSAFE_componentWillMount()),typeof d.componentDidMount=="function"&&(r.flags|=4194308)):(typeof d.componentDidMount=="function"&&(r.flags|=4194308),r.memoizedProps=o,r.memoizedState=K),d.props=o,d.state=K,d.context=b,o=D):(typeof d.componentDidMount=="function"&&(r.flags|=4194308),o=!1)}else{d=r.stateNode,dd(e,r),b=r.memoizedProps,de=oi(i,b),d.props=de,me=r.pendingProps,J=d.context,K=i.contextType,D=Pi,typeof K=="object"&&K!==null&&(D=sn(K)),x=i.getDerivedStateFromProps,(K=typeof x=="function"||typeof d.getSnapshotBeforeUpdate=="function")||typeof d.UNSAFE_componentWillReceiveProps!="function"&&typeof d.componentWillReceiveProps!="function"||(b!==me||J!==D)&&wg(r,d,o,D),ua=!1,J=r.memoizedState,d.state=J,to(r,o,d,c),eo();var te=r.memoizedState;b!==me||J!==te||ua||e!==null&&e.dependencies!==null&&Ds(e.dependencies)?(typeof x=="function"&&(Dd(r,i,x,o),te=r.memoizedState),(de=ua||bg(r,i,de,o,J,te,D)||e!==null&&e.dependencies!==null&&Ds(e.dependencies))?(K||typeof d.UNSAFE_componentWillUpdate!="function"&&typeof d.componentWillUpdate!="function"||(typeof d.componentWillUpdate=="function"&&d.componentWillUpdate(o,te,D),typeof d.UNSAFE_componentWillUpdate=="function"&&d.UNSAFE_componentWillUpdate(o,te,D)),typeof d.componentDidUpdate=="function"&&(r.flags|=4),typeof d.getSnapshotBeforeUpdate=="function"&&(r.flags|=1024)):(typeof d.componentDidUpdate!="function"||b===e.memoizedProps&&J===e.memoizedState||(r.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&J===e.memoizedState||(r.flags|=1024),r.memoizedProps=o,r.memoizedState=te),d.props=o,d.state=te,d.context=D,o=de):(typeof d.componentDidUpdate!="function"||b===e.memoizedProps&&J===e.memoizedState||(r.flags|=4),typeof d.getSnapshotBeforeUpdate!="function"||b===e.memoizedProps&&J===e.memoizedState||(r.flags|=1024),o=!1)}return d=o,Qs(e,r),o=(r.flags&128)!==0,d||o?(d=r.stateNode,i=o&&typeof i.getDerivedStateFromError!="function"?null:d.render(),r.flags|=1,e!==null&&o?(r.child=Xi(r,e.child,null,c),r.child=Xi(r,null,i,c)):nn(e,r,i,c),r.memoizedState=d.state,e=r.child):e=Yr(e,r,c),e}function Lg(e,r,i,o){return Yl(),r.flags|=256,nn(e,r,i,o),r.child}var zd={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Pd(e){return{baseLanes:e,cachePool:xp()}}function Id(e,r,i){return e=e!==null?e.childLanes&~i:0,r&&(e|=Wn),e}function zg(e,r,i){var o=r.pendingProps,c=!1,d=(r.flags&128)!==0,b;if((b=d)||(b=e!==null&&e.memoizedState===null?!1:(Yt.current&2)!==0),b&&(c=!0,r.flags&=-129),b=(r.flags&32)!==0,r.flags&=-33,e===null){if(ot){if(c?ma(r):pa(),ot){var x=jt,D;if(D=x){e:{for(D=x,x=Sr;D.nodeType!==8;){if(!x){x=null;break e}if(D=ur(D.nextSibling),D===null){x=null;break e}}x=D}x!==null?(r.memoizedState={dehydrated:x,treeContext:Ja!==null?{id:Hr,overflow:Br}:null,retryLane:536870912,hydrationErrors:null},D=Rn(18,null,null,0),D.stateNode=x,D.return=r,r.child=D,dn=r,jt=null,D=!0):D=!1}D||ni(r)}if(x=r.memoizedState,x!==null&&(x=x.dehydrated,x!==null))return xf(x)?r.lanes=32:r.lanes=536870912,null;$r(r)}return x=o.children,o=o.fallback,c?(pa(),c=r.mode,x=Zs({mode:"hidden",children:x},c),o=Za(o,c,i,null),x.return=r,o.return=r,x.sibling=o,r.child=x,c=r.child,c.memoizedState=Pd(i),c.childLanes=Id(e,b,i),r.memoizedState=zd,o):(ma(r),Ud(r,x))}if(D=e.memoizedState,D!==null&&(x=D.dehydrated,x!==null)){if(d)r.flags&256?(ma(r),r.flags&=-257,r=Hd(e,r,i)):r.memoizedState!==null?(pa(),r.child=e.child,r.flags|=128,r=null):(pa(),c=o.fallback,x=r.mode,o=Zs({mode:"visible",children:o.children},x),c=Za(c,x,i,null),c.flags|=2,o.return=r,c.return=r,o.sibling=c,r.child=o,Xi(r,e.child,null,i),o=r.child,o.memoizedState=Pd(i),o.childLanes=Id(e,b,i),r.memoizedState=zd,r=c);else if(ma(r),xf(x)){if(b=x.nextSibling&&x.nextSibling.dataset,b)var K=b.dgst;b=K,o=Error(l(419)),o.stack="",o.digest=b,Xl({value:o,source:null,stack:null}),r=Hd(e,r,i)}else if(Wt||Fl(e,r,i,!1),b=(i&e.childLanes)!==0,Wt||b){if(b=Et,b!==null&&(o=i&-i,o=(o&42)!==0?1:Re(o),o=(o&(b.suspendedLanes|i))!==0?0:o,o!==0&&o!==D.retryLane))throw D.retryLane=o,zi(e,o),kn(b,e,o),Og;x.data==="$?"||af(),r=Hd(e,r,i)}else x.data==="$?"?(r.flags|=192,r.child=e.child,r=null):(e=D.treeContext,jt=ur(x.nextSibling),dn=r,ot=!0,ti=null,Sr=!1,e!==null&&(Xn[Fn++]=Hr,Xn[Fn++]=Br,Xn[Fn++]=Ja,Hr=e.id,Br=e.overflow,Ja=r),r=Ud(r,o.children),r.flags|=4096);return r}return c?(pa(),c=o.fallback,x=r.mode,D=e.child,K=D.sibling,o=Ur(D,{mode:"hidden",children:o.children}),o.subtreeFlags=D.subtreeFlags&65011712,K!==null?c=Ur(K,c):(c=Za(c,x,i,null),c.flags|=2),c.return=r,o.return=r,o.sibling=c,r.child=o,o=c,c=r.child,x=e.child.memoizedState,x===null?x=Pd(i):(D=x.cachePool,D!==null?(K=$t._currentValue,D=D.parent!==K?{parent:K,pool:K}:D):D=xp(),x={baseLanes:x.baseLanes|i,cachePool:D}),c.memoizedState=x,c.childLanes=Id(e,b,i),r.memoizedState=zd,o):(ma(r),i=e.child,e=i.sibling,i=Ur(i,{mode:"visible",children:o.children}),i.return=r,i.sibling=null,e!==null&&(b=r.deletions,b===null?(r.deletions=[e],r.flags|=16):b.push(e)),r.child=i,r.memoizedState=null,i)}function Ud(e,r){return r=Zs({mode:"visible",children:r},e.mode),r.return=e,e.child=r}function Zs(e,r){return e=Rn(22,e,null,r),e.lanes=0,e.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},e}function Hd(e,r,i){return Xi(r,e.child,null,i),e=Ud(r,r.pendingProps.children),e.flags|=2,r.memoizedState=null,e}function Pg(e,r,i){e.lanes|=r;var o=e.alternate;o!==null&&(o.lanes|=r),ad(e.return,r,i)}function Bd(e,r,i,o,c){var d=e.memoizedState;d===null?e.memoizedState={isBackwards:r,rendering:null,renderingStartTime:0,last:o,tail:i,tailMode:c}:(d.isBackwards=r,d.rendering=null,d.renderingStartTime=0,d.last=o,d.tail=i,d.tailMode=c)}function Ig(e,r,i){var o=r.pendingProps,c=o.revealOrder,d=o.tail;if(nn(e,r,o.children,i),o=Yt.current,(o&2)!==0)o=o&1|2,r.flags|=128;else{if(e!==null&&(e.flags&128)!==0)e:for(e=r.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&Pg(e,i,r);else if(e.tag===19)Pg(e,i,r);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===r)break e;for(;e.sibling===null;){if(e.return===null||e.return===r)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}o&=1}switch(Y(Yt,o),c){case"forwards":for(i=r.child,c=null;i!==null;)e=i.alternate,e!==null&&Fs(e)===null&&(c=i),i=i.sibling;i=c,i===null?(c=r.child,r.child=null):(c=i.sibling,i.sibling=null),Bd(r,!1,c,i,d);break;case"backwards":for(i=null,c=r.child,r.child=null;c!==null;){if(e=c.alternate,e!==null&&Fs(e)===null){r.child=c;break}e=c.sibling,c.sibling=i,i=c,c=e}Bd(r,!0,i,null,d);break;case"together":Bd(r,!1,null,null,void 0);break;default:r.memoizedState=null}return r.child}function Yr(e,r,i){if(e!==null&&(r.dependencies=e.dependencies),wa|=r.lanes,(i&r.childLanes)===0)if(e!==null){if(Fl(e,r,i,!1),(i&r.childLanes)===0)return null}else return null;if(e!==null&&r.child!==e.child)throw Error(l(153));if(r.child!==null){for(e=r.child,i=Ur(e,e.pendingProps),r.child=i,i.return=r;e.sibling!==null;)e=e.sibling,i=i.sibling=Ur(e,e.pendingProps),i.return=r;i.sibling=null}return r.child}function qd(e,r){return(e.lanes&r)!==0?!0:(e=e.dependencies,!!(e!==null&&Ds(e)))}function eS(e,r,i){switch(r.tag){case 3:ye(r,r.stateNode.containerInfo),ca(r,$t,e.memoizedState.cache),Yl();break;case 27:case 5:Ee(r);break;case 4:ye(r,r.stateNode.containerInfo);break;case 10:ca(r,r.type,r.memoizedProps.value);break;case 13:var o=r.memoizedState;if(o!==null)return o.dehydrated!==null?(ma(r),r.flags|=128,null):(i&r.child.childLanes)!==0?zg(e,r,i):(ma(r),e=Yr(e,r,i),e!==null?e.sibling:null);ma(r);break;case 19:var c=(e.flags&128)!==0;if(o=(i&r.childLanes)!==0,o||(Fl(e,r,i,!1),o=(i&r.childLanes)!==0),c){if(o)return Ig(e,r,i);r.flags|=128}if(c=r.memoizedState,c!==null&&(c.rendering=null,c.tail=null,c.lastEffect=null),Y(Yt,Yt.current),o)break;return null;case 22:case 23:return r.lanes=0,Mg(e,r,i);case 24:ca(r,$t,e.memoizedState.cache)}return Yr(e,r,i)}function Ug(e,r,i){if(e!==null)if(e.memoizedProps!==r.pendingProps)Wt=!0;else{if(!qd(e,i)&&(r.flags&128)===0)return Wt=!1,eS(e,r,i);Wt=(e.flags&131072)!==0}else Wt=!1,ot&&(r.flags&1048576)!==0&&pp(r,Ms,r.index);switch(r.lanes=0,r.tag){case 16:e:{e=r.pendingProps;var o=r.elementType,c=o._init;if(o=c(o._payload),r.type=o,typeof o=="function")Qu(o)?(e=oi(o,e),r.tag=1,r=kg(null,r,o,e,i)):(r.tag=0,r=Ld(null,r,o,e,i));else{if(o!=null){if(c=o.$$typeof,c===he){r.tag=11,r=Ag(null,r,o,e,i);break e}else if(c===P){r.tag=14,r=Rg(null,r,o,e,i);break e}}throw r=B(o)||o,Error(l(306,r,""))}}return r;case 0:return Ld(e,r,r.type,r.pendingProps,i);case 1:return o=r.type,c=oi(o,r.pendingProps),kg(e,r,o,c,i);case 3:e:{if(ye(r,r.stateNode.containerInfo),e===null)throw Error(l(387));o=r.pendingProps;var d=r.memoizedState;c=d.element,dd(e,r),to(r,o,null,i);var b=r.memoizedState;if(o=b.cache,ca(r,$t,o),o!==d.cache&&id(r,[$t],i,!0),eo(),o=b.element,d.isDehydrated)if(d={element:o,isDehydrated:!1,cache:b.cache},r.updateQueue.baseState=d,r.memoizedState=d,r.flags&256){r=Lg(e,r,o,i);break e}else if(o!==c){c=$n(Error(l(424)),r),Xl(c),r=Lg(e,r,o,i);break e}else{switch(e=r.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(jt=ur(e.firstChild),dn=r,ot=!0,ti=null,Sr=!0,i=vg(r,null,o,i),r.child=i;i;)i.flags=i.flags&-3|4096,i=i.sibling}else{if(Yl(),o===c){r=Yr(e,r,i);break e}nn(e,r,o,i)}r=r.child}return r;case 26:return Qs(e,r),e===null?(i=Vv(r.type,null,r.pendingProps,null))?r.memoizedState=i:ot||(i=r.type,e=r.pendingProps,o=fc(ie.current).createElement(i),o[Q]=r,o[oe]=e,an(o,i,e),tt(o),r.stateNode=o):r.memoizedState=Vv(r.type,e.memoizedProps,r.pendingProps,e.memoizedState),null;case 27:return Ee(r),e===null&&ot&&(o=r.stateNode=Hv(r.type,r.pendingProps,ie.current),dn=r,Sr=!0,c=jt,_a(r.type)?(Ef=c,jt=ur(o.firstChild)):jt=c),nn(e,r,r.pendingProps.children,i),Qs(e,r),e===null&&(r.flags|=4194304),r.child;case 5:return e===null&&ot&&((c=o=jt)&&(o=AS(o,r.type,r.pendingProps,Sr),o!==null?(r.stateNode=o,dn=r,jt=ur(o.firstChild),Sr=!1,c=!0):c=!1),c||ni(r)),Ee(r),c=r.type,d=r.pendingProps,b=e!==null?e.memoizedProps:null,o=d.children,bf(c,d)?o=null:b!==null&&bf(c,b)&&(r.flags|=32),r.memoizedState!==null&&(c=vd(e,r,Y2,null,null,i),_o._currentValue=c),Qs(e,r),nn(e,r,o,i),r.child;case 6:return e===null&&ot&&((e=i=jt)&&(i=RS(i,r.pendingProps,Sr),i!==null?(r.stateNode=i,dn=r,jt=null,e=!0):e=!1),e||ni(r)),null;case 13:return zg(e,r,i);case 4:return ye(r,r.stateNode.containerInfo),o=r.pendingProps,e===null?r.child=Xi(r,null,o,i):nn(e,r,o,i),r.child;case 11:return Ag(e,r,r.type,r.pendingProps,i);case 7:return nn(e,r,r.pendingProps,i),r.child;case 8:return nn(e,r,r.pendingProps.children,i),r.child;case 12:return nn(e,r,r.pendingProps.children,i),r.child;case 10:return o=r.pendingProps,ca(r,r.type,o.value),nn(e,r,o.children,i),r.child;case 9:return c=r.type._context,o=r.pendingProps.children,ai(r),c=sn(c),o=o(c),r.flags|=1,nn(e,r,o,i),r.child;case 14:return Rg(e,r,r.type,r.pendingProps,i);case 15:return Ng(e,r,r.type,r.pendingProps,i);case 19:return Ig(e,r,i);case 31:return o=r.pendingProps,i=r.mode,o={mode:o.mode,children:o.children},e===null?(i=Zs(o,i),i.ref=r.ref,r.child=i,i.return=r,r=i):(i=Ur(e.child,o),i.ref=r.ref,r.child=i,i.return=r,r=i),r;case 22:return Mg(e,r,i);case 24:return ai(r),o=sn($t),e===null?(c=sd(),c===null&&(c=Et,d=ld(),c.pooledCache=d,d.refCount++,d!==null&&(c.pooledCacheLanes|=i),c=d),r.memoizedState={parent:o,cache:c},ud(r),ca(r,$t,c)):((e.lanes&i)!==0&&(dd(e,r),to(r,null,null,i),eo()),c=e.memoizedState,d=r.memoizedState,c.parent!==o?(c={parent:o,cache:o},r.memoizedState=c,r.lanes===0&&(r.memoizedState=r.updateQueue.baseState=c),ca(r,$t,o)):(o=d.cache,ca(r,$t,o),o!==c.cache&&id(r,[$t],i,!0))),nn(e,r,r.pendingProps.children,i),r.child;case 29:throw r.pendingProps}throw Error(l(156,r.tag))}function Xr(e){e.flags|=4}function Hg(e,r){if(r.type!=="stylesheet"||(r.state.loading&4)!==0)e.flags&=-16777217;else if(e.flags|=16777216,!Fv(r)){if(r=Kn.current,r!==null&&((nt&4194048)===nt?xr!==null:(nt&62914560)!==nt&&(nt&536870912)===0||r!==xr))throw Zl=cd,Ep;e.flags|=8192}}function Js(e,r){r!==null&&(e.flags|=4),e.flags&16384&&(r=e.tag!==22?ar():536870912,e.lanes|=r,Qi|=r)}function so(e,r){if(!ot)switch(e.tailMode){case"hidden":r=e.tail;for(var i=null;r!==null;)r.alternate!==null&&(i=r),r=r.sibling;i===null?e.tail=null:i.sibling=null;break;case"collapsed":i=e.tail;for(var o=null;i!==null;)i.alternate!==null&&(o=i),i=i.sibling;o===null?r||e.tail===null?e.tail=null:e.tail.sibling=null:o.sibling=null}}function Dt(e){var r=e.alternate!==null&&e.alternate.child===e.child,i=0,o=0;if(r)for(var c=e.child;c!==null;)i|=c.lanes|c.childLanes,o|=c.subtreeFlags&65011712,o|=c.flags&65011712,c.return=e,c=c.sibling;else for(c=e.child;c!==null;)i|=c.lanes|c.childLanes,o|=c.subtreeFlags,o|=c.flags,c.return=e,c=c.sibling;return e.subtreeFlags|=o,e.childLanes=i,r}function tS(e,r,i){var o=r.pendingProps;switch(td(r),r.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Dt(r),null;case 1:return Dt(r),null;case 3:return i=r.stateNode,o=null,e!==null&&(o=e.memoizedState.cache),r.memoizedState.cache!==o&&(r.flags|=2048),Vr($t),Me(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&($l(r)?Xr(r):e===null||e.memoizedState.isDehydrated&&(r.flags&256)===0||(r.flags|=1024,yp())),Dt(r),null;case 26:return i=r.memoizedState,e===null?(Xr(r),i!==null?(Dt(r),Hg(r,i)):(Dt(r),r.flags&=-16777217)):i?i!==e.memoizedState?(Xr(r),Dt(r),Hg(r,i)):(Dt(r),r.flags&=-16777217):(e.memoizedProps!==o&&Xr(r),Dt(r),r.flags&=-16777217),null;case 27:ze(r),i=ie.current;var c=r.type;if(e!==null&&r.stateNode!=null)e.memoizedProps!==o&&Xr(r);else{if(!o){if(r.stateNode===null)throw Error(l(166));return Dt(r),null}e=W.current,$l(r)?gp(r):(e=Hv(c,o,i),r.stateNode=e,Xr(r))}return Dt(r),null;case 5:if(ze(r),i=r.type,e!==null&&r.stateNode!=null)e.memoizedProps!==o&&Xr(r);else{if(!o){if(r.stateNode===null)throw Error(l(166));return Dt(r),null}if(e=W.current,$l(r))gp(r);else{switch(c=fc(ie.current),e){case 1:e=c.createElementNS("http://www.w3.org/2000/svg",i);break;case 2:e=c.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;default:switch(i){case"svg":e=c.createElementNS("http://www.w3.org/2000/svg",i);break;case"math":e=c.createElementNS("http://www.w3.org/1998/Math/MathML",i);break;case"script":e=c.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild);break;case"select":e=typeof o.is=="string"?c.createElement("select",{is:o.is}):c.createElement("select"),o.multiple?e.multiple=!0:o.size&&(e.size=o.size);break;default:e=typeof o.is=="string"?c.createElement(i,{is:o.is}):c.createElement(i)}}e[Q]=r,e[oe]=o;e:for(c=r.child;c!==null;){if(c.tag===5||c.tag===6)e.appendChild(c.stateNode);else if(c.tag!==4&&c.tag!==27&&c.child!==null){c.child.return=c,c=c.child;continue}if(c===r)break e;for(;c.sibling===null;){if(c.return===null||c.return===r)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}r.stateNode=e;e:switch(an(e,i,o),i){case"button":case"input":case"select":case"textarea":e=!!o.autoFocus;break e;case"img":e=!0;break e;default:e=!1}e&&Xr(r)}}return Dt(r),r.flags&=-16777217,null;case 6:if(e&&r.stateNode!=null)e.memoizedProps!==o&&Xr(r);else{if(typeof o!="string"&&r.stateNode===null)throw Error(l(166));if(e=ie.current,$l(r)){if(e=r.stateNode,i=r.memoizedProps,o=null,c=dn,c!==null)switch(c.tag){case 27:case 5:o=c.memoizedProps}e[Q]=r,e=!!(e.nodeValue===i||o!==null&&o.suppressHydrationWarning===!0||jv(e.nodeValue,i)),e||ni(r)}else e=fc(e).createTextNode(o),e[Q]=r,r.stateNode=e}return Dt(r),null;case 13:if(o=r.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(c=$l(r),o!==null&&o.dehydrated!==null){if(e===null){if(!c)throw Error(l(318));if(c=r.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(l(317));c[Q]=r}else Yl(),(r.flags&128)===0&&(r.memoizedState=null),r.flags|=4;Dt(r),c=!1}else c=yp(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=c),c=!0;if(!c)return r.flags&256?($r(r),r):($r(r),null)}if($r(r),(r.flags&128)!==0)return r.lanes=i,r;if(i=o!==null,e=e!==null&&e.memoizedState!==null,i){o=r.child,c=null,o.alternate!==null&&o.alternate.memoizedState!==null&&o.alternate.memoizedState.cachePool!==null&&(c=o.alternate.memoizedState.cachePool.pool);var d=null;o.memoizedState!==null&&o.memoizedState.cachePool!==null&&(d=o.memoizedState.cachePool.pool),d!==c&&(o.flags|=2048)}return i!==e&&i&&(r.child.flags|=8192),Js(r,r.updateQueue),Dt(r),null;case 4:return Me(),e===null&&mf(r.stateNode.containerInfo),Dt(r),null;case 10:return Vr(r.type),Dt(r),null;case 19:if(U(Yt),c=r.memoizedState,c===null)return Dt(r),null;if(o=(r.flags&128)!==0,d=c.rendering,d===null)if(o)so(c,!1);else{if(kt!==0||e!==null&&(e.flags&128)!==0)for(e=r.child;e!==null;){if(d=Fs(e),d!==null){for(r.flags|=128,so(c,!1),e=d.updateQueue,r.updateQueue=e,Js(r,e),r.subtreeFlags=0,e=i,i=r.child;i!==null;)mp(i,e),i=i.sibling;return Y(Yt,Yt.current&1|2),r.child}e=e.sibling}c.tail!==null&&Oe()>nc&&(r.flags|=128,o=!0,so(c,!1),r.lanes=4194304)}else{if(!o)if(e=Fs(d),e!==null){if(r.flags|=128,o=!0,e=e.updateQueue,r.updateQueue=e,Js(r,e),so(c,!0),c.tail===null&&c.tailMode==="hidden"&&!d.alternate&&!ot)return Dt(r),null}else 2*Oe()-c.renderingStartTime>nc&&i!==536870912&&(r.flags|=128,o=!0,so(c,!1),r.lanes=4194304);c.isBackwards?(d.sibling=r.child,r.child=d):(e=c.last,e!==null?e.sibling=d:r.child=d,c.last=d)}return c.tail!==null?(r=c.tail,c.rendering=r,c.tail=r.sibling,c.renderingStartTime=Oe(),r.sibling=null,e=Yt.current,Y(Yt,o?e&1|2:e&1),r):(Dt(r),null);case 22:case 23:return $r(r),pd(),o=r.memoizedState!==null,e!==null?e.memoizedState!==null!==o&&(r.flags|=8192):o&&(r.flags|=8192),o?(i&536870912)!==0&&(r.flags&128)===0&&(Dt(r),r.subtreeFlags&6&&(r.flags|=8192)):Dt(r),i=r.updateQueue,i!==null&&Js(r,i.retryQueue),i=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),o=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(o=r.memoizedState.cachePool.pool),o!==i&&(r.flags|=2048),e!==null&&U(ii),null;case 24:return i=null,e!==null&&(i=e.memoizedState.cache),r.memoizedState.cache!==i&&(r.flags|=2048),Vr($t),Dt(r),null;case 25:return null;case 30:return null}throw Error(l(156,r.tag))}function nS(e,r){switch(td(r),r.tag){case 1:return e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 3:return Vr($t),Me(),e=r.flags,(e&65536)!==0&&(e&128)===0?(r.flags=e&-65537|128,r):null;case 26:case 27:case 5:return ze(r),null;case 13:if($r(r),e=r.memoizedState,e!==null&&e.dehydrated!==null){if(r.alternate===null)throw Error(l(340));Yl()}return e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 19:return U(Yt),null;case 4:return Me(),null;case 10:return Vr(r.type),null;case 22:case 23:return $r(r),pd(),e!==null&&U(ii),e=r.flags,e&65536?(r.flags=e&-65537|128,r):null;case 24:return Vr($t),null;case 25:return null;default:return null}}function Bg(e,r){switch(td(r),r.tag){case 3:Vr($t),Me();break;case 26:case 27:case 5:ze(r);break;case 4:Me();break;case 13:$r(r);break;case 19:U(Yt);break;case 10:Vr(r.type);break;case 22:case 23:$r(r),pd(),e!==null&&U(ii);break;case 24:Vr($t)}}function co(e,r){try{var i=r.updateQueue,o=i!==null?i.lastEffect:null;if(o!==null){var c=o.next;i=c;do{if((i.tag&e)===e){o=void 0;var d=i.create,b=i.inst;o=d(),b.destroy=o}i=i.next}while(i!==c)}}catch(x){yt(r,r.return,x)}}function ga(e,r,i){try{var o=r.updateQueue,c=o!==null?o.lastEffect:null;if(c!==null){var d=c.next;o=d;do{if((o.tag&e)===e){var b=o.inst,x=b.destroy;if(x!==void 0){b.destroy=void 0,c=r;var D=i,K=x;try{K()}catch(de){yt(c,D,de)}}}o=o.next}while(o!==d)}}catch(de){yt(r,r.return,de)}}function qg(e){var r=e.updateQueue;if(r!==null){var i=e.stateNode;try{Rp(r,i)}catch(o){yt(e,e.return,o)}}}function Vg(e,r,i){i.props=oi(e.type,e.memoizedProps),i.state=e.memoizedState;try{i.componentWillUnmount()}catch(o){yt(e,r,o)}}function uo(e,r){try{var i=e.ref;if(i!==null){switch(e.tag){case 26:case 27:case 5:var o=e.stateNode;break;case 30:o=e.stateNode;break;default:o=e.stateNode}typeof i=="function"?e.refCleanup=i(o):i.current=o}}catch(c){yt(e,r,c)}}function Er(e,r){var i=e.ref,o=e.refCleanup;if(i!==null)if(typeof o=="function")try{o()}catch(c){yt(e,r,c)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof i=="function")try{i(null)}catch(c){yt(e,r,c)}else i.current=null}function Gg(e){var r=e.type,i=e.memoizedProps,o=e.stateNode;try{e:switch(r){case"button":case"input":case"select":case"textarea":i.autoFocus&&o.focus();break e;case"img":i.src?o.src=i.src:i.srcSet&&(o.srcset=i.srcSet)}}catch(c){yt(e,e.return,c)}}function Vd(e,r,i){try{var o=e.stateNode;ES(o,e.type,i,r),o[oe]=r}catch(c){yt(e,e.return,c)}}function $g(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&_a(e.type)||e.tag===4}function Gd(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||$g(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&_a(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function $d(e,r,i){var o=e.tag;if(o===5||o===6)e=e.stateNode,r?(i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i).insertBefore(e,r):(r=i.nodeType===9?i.body:i.nodeName==="HTML"?i.ownerDocument.body:i,r.appendChild(e),i=i._reactRootContainer,i!=null||r.onclick!==null||(r.onclick=dc));else if(o!==4&&(o===27&&_a(e.type)&&(i=e.stateNode,r=null),e=e.child,e!==null))for($d(e,r,i),e=e.sibling;e!==null;)$d(e,r,i),e=e.sibling}function ec(e,r,i){var o=e.tag;if(o===5||o===6)e=e.stateNode,r?i.insertBefore(e,r):i.appendChild(e);else if(o!==4&&(o===27&&_a(e.type)&&(i=e.stateNode),e=e.child,e!==null))for(ec(e,r,i),e=e.sibling;e!==null;)ec(e,r,i),e=e.sibling}function Yg(e){var r=e.stateNode,i=e.memoizedProps;try{for(var o=e.type,c=r.attributes;c.length;)r.removeAttributeNode(c[0]);an(r,o,i),r[Q]=e,r[oe]=i}catch(d){yt(e,e.return,d)}}var Fr=!1,zt=!1,Yd=!1,Xg=typeof WeakSet=="function"?WeakSet:Set,Qt=null;function rS(e,r){if(e=e.containerInfo,vf=yc,e=ap(e),Gu(e)){if("selectionStart"in e)var i={start:e.selectionStart,end:e.selectionEnd};else e:{i=(i=e.ownerDocument)&&i.defaultView||window;var o=i.getSelection&&i.getSelection();if(o&&o.rangeCount!==0){i=o.anchorNode;var c=o.anchorOffset,d=o.focusNode;o=o.focusOffset;try{i.nodeType,d.nodeType}catch{i=null;break e}var b=0,x=-1,D=-1,K=0,de=0,me=e,J=null;t:for(;;){for(var te;me!==i||c!==0&&me.nodeType!==3||(x=b+c),me!==d||o!==0&&me.nodeType!==3||(D=b+o),me.nodeType===3&&(b+=me.nodeValue.length),(te=me.firstChild)!==null;)J=me,me=te;for(;;){if(me===e)break t;if(J===i&&++K===c&&(x=b),J===d&&++de===o&&(D=b),(te=me.nextSibling)!==null)break;me=J,J=me.parentNode}me=te}i=x===-1||D===-1?null:{start:x,end:D}}else i=null}i=i||{start:0,end:0}}else i=null;for(yf={focusedElem:e,selectionRange:i},yc=!1,Qt=r;Qt!==null;)if(r=Qt,e=r.child,(r.subtreeFlags&1024)!==0&&e!==null)e.return=r,Qt=e;else for(;Qt!==null;){switch(r=Qt,d=r.alternate,e=r.flags,r.tag){case 0:break;case 11:case 15:break;case 1:if((e&1024)!==0&&d!==null){e=void 0,i=r,c=d.memoizedProps,d=d.memoizedState,o=i.stateNode;try{var Ue=oi(i.type,c,i.elementType===i.type);e=o.getSnapshotBeforeUpdate(Ue,d),o.__reactInternalSnapshotBeforeUpdate=e}catch(ke){yt(i,i.return,ke)}}break;case 3:if((e&1024)!==0){if(e=r.stateNode.containerInfo,i=e.nodeType,i===9)Sf(e);else if(i===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":Sf(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((e&1024)!==0)throw Error(l(163))}if(e=r.sibling,e!==null){e.return=r.return,Qt=e;break}Qt=r.return}}function Fg(e,r,i){var o=i.flags;switch(i.tag){case 0:case 11:case 15:va(e,i),o&4&&co(5,i);break;case 1:if(va(e,i),o&4)if(e=i.stateNode,r===null)try{e.componentDidMount()}catch(b){yt(i,i.return,b)}else{var c=oi(i.type,r.memoizedProps);r=r.memoizedState;try{e.componentDidUpdate(c,r,e.__reactInternalSnapshotBeforeUpdate)}catch(b){yt(i,i.return,b)}}o&64&&qg(i),o&512&&uo(i,i.return);break;case 3:if(va(e,i),o&64&&(e=i.updateQueue,e!==null)){if(r=null,i.child!==null)switch(i.child.tag){case 27:case 5:r=i.child.stateNode;break;case 1:r=i.child.stateNode}try{Rp(e,r)}catch(b){yt(i,i.return,b)}}break;case 27:r===null&&o&4&&Yg(i);case 26:case 5:va(e,i),r===null&&o&4&&Gg(i),o&512&&uo(i,i.return);break;case 12:va(e,i);break;case 13:va(e,i),o&4&&Qg(e,i),o&64&&(e=i.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(i=fS.bind(null,i),NS(e,i))));break;case 22:if(o=i.memoizedState!==null||Fr,!o){r=r!==null&&r.memoizedState!==null||zt,c=Fr;var d=zt;Fr=o,(zt=r)&&!d?ya(e,i,(i.subtreeFlags&8772)!==0):va(e,i),Fr=c,zt=d}break;case 30:break;default:va(e,i)}}function Kg(e){var r=e.alternate;r!==null&&(e.alternate=null,Kg(r)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(r=e.stateNode,r!==null&&ve(r)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var Nt=null,wn=!1;function Kr(e,r,i){for(i=i.child;i!==null;)Wg(e,r,i),i=i.sibling}function Wg(e,r,i){if(Xe&&typeof Xe.onCommitFiberUnmount=="function")try{Xe.onCommitFiberUnmount(Tt,i)}catch{}switch(i.tag){case 26:zt||Er(i,r),Kr(e,r,i),i.memoizedState?i.memoizedState.count--:i.stateNode&&(i=i.stateNode,i.parentNode.removeChild(i));break;case 27:zt||Er(i,r);var o=Nt,c=wn;_a(i.type)&&(Nt=i.stateNode,wn=!1),Kr(e,r,i),wo(i.stateNode),Nt=o,wn=c;break;case 5:zt||Er(i,r);case 6:if(o=Nt,c=wn,Nt=null,Kr(e,r,i),Nt=o,wn=c,Nt!==null)if(wn)try{(Nt.nodeType===9?Nt.body:Nt.nodeName==="HTML"?Nt.ownerDocument.body:Nt).removeChild(i.stateNode)}catch(d){yt(i,r,d)}else try{Nt.removeChild(i.stateNode)}catch(d){yt(i,r,d)}break;case 18:Nt!==null&&(wn?(e=Nt,Iv(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,i.stateNode),Ao(e)):Iv(Nt,i.stateNode));break;case 4:o=Nt,c=wn,Nt=i.stateNode.containerInfo,wn=!0,Kr(e,r,i),Nt=o,wn=c;break;case 0:case 11:case 14:case 15:zt||ga(2,i,r),zt||ga(4,i,r),Kr(e,r,i);break;case 1:zt||(Er(i,r),o=i.stateNode,typeof o.componentWillUnmount=="function"&&Vg(i,r,o)),Kr(e,r,i);break;case 21:Kr(e,r,i);break;case 22:zt=(o=zt)||i.memoizedState!==null,Kr(e,r,i),zt=o;break;default:Kr(e,r,i)}}function Qg(e,r){if(r.memoizedState===null&&(e=r.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ao(e)}catch(i){yt(r,r.return,i)}}function aS(e){switch(e.tag){case 13:case 19:var r=e.stateNode;return r===null&&(r=e.stateNode=new Xg),r;case 22:return e=e.stateNode,r=e._retryCache,r===null&&(r=e._retryCache=new Xg),r;default:throw Error(l(435,e.tag))}}function Xd(e,r){var i=aS(e);r.forEach(function(o){var c=hS.bind(null,e,o);i.has(o)||(i.add(o),o.then(c,c))})}function Nn(e,r){var i=r.deletions;if(i!==null)for(var o=0;o<i.length;o++){var c=i[o],d=e,b=r,x=b;e:for(;x!==null;){switch(x.tag){case 27:if(_a(x.type)){Nt=x.stateNode,wn=!1;break e}break;case 5:Nt=x.stateNode,wn=!1;break e;case 3:case 4:Nt=x.stateNode.containerInfo,wn=!0;break e}x=x.return}if(Nt===null)throw Error(l(160));Wg(d,b,c),Nt=null,wn=!1,d=c.alternate,d!==null&&(d.return=null),c.return=null}if(r.subtreeFlags&13878)for(r=r.child;r!==null;)Zg(r,e),r=r.sibling}var cr=null;function Zg(e,r){var i=e.alternate,o=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:Nn(r,e),Mn(e),o&4&&(ga(3,e,e.return),co(3,e),ga(5,e,e.return));break;case 1:Nn(r,e),Mn(e),o&512&&(zt||i===null||Er(i,i.return)),o&64&&Fr&&(e=e.updateQueue,e!==null&&(o=e.callbacks,o!==null&&(i=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=i===null?o:i.concat(o))));break;case 26:var c=cr;if(Nn(r,e),Mn(e),o&512&&(zt||i===null||Er(i,i.return)),o&4){var d=i!==null?i.memoizedState:null;if(o=e.memoizedState,i===null)if(o===null)if(e.stateNode===null){e:{o=e.type,i=e.memoizedProps,c=c.ownerDocument||c;t:switch(o){case"title":d=c.getElementsByTagName("title")[0],(!d||d[Ce]||d[Q]||d.namespaceURI==="http://www.w3.org/2000/svg"||d.hasAttribute("itemprop"))&&(d=c.createElement(o),c.head.insertBefore(d,c.querySelector("head > title"))),an(d,o,i),d[Q]=e,tt(d),o=d;break e;case"link":var b=Yv("link","href",c).get(o+(i.href||""));if(b){for(var x=0;x<b.length;x++)if(d=b[x],d.getAttribute("href")===(i.href==null||i.href===""?null:i.href)&&d.getAttribute("rel")===(i.rel==null?null:i.rel)&&d.getAttribute("title")===(i.title==null?null:i.title)&&d.getAttribute("crossorigin")===(i.crossOrigin==null?null:i.crossOrigin)){b.splice(x,1);break t}}d=c.createElement(o),an(d,o,i),c.head.appendChild(d);break;case"meta":if(b=Yv("meta","content",c).get(o+(i.content||""))){for(x=0;x<b.length;x++)if(d=b[x],d.getAttribute("content")===(i.content==null?null:""+i.content)&&d.getAttribute("name")===(i.name==null?null:i.name)&&d.getAttribute("property")===(i.property==null?null:i.property)&&d.getAttribute("http-equiv")===(i.httpEquiv==null?null:i.httpEquiv)&&d.getAttribute("charset")===(i.charSet==null?null:i.charSet)){b.splice(x,1);break t}}d=c.createElement(o),an(d,o,i),c.head.appendChild(d);break;default:throw Error(l(468,o))}d[Q]=e,tt(d),o=d}e.stateNode=o}else Xv(c,e.type,e.stateNode);else e.stateNode=$v(c,o,e.memoizedProps);else d!==o?(d===null?i.stateNode!==null&&(i=i.stateNode,i.parentNode.removeChild(i)):d.count--,o===null?Xv(c,e.type,e.stateNode):$v(c,o,e.memoizedProps)):o===null&&e.stateNode!==null&&Vd(e,e.memoizedProps,i.memoizedProps)}break;case 27:Nn(r,e),Mn(e),o&512&&(zt||i===null||Er(i,i.return)),i!==null&&o&4&&Vd(e,e.memoizedProps,i.memoizedProps);break;case 5:if(Nn(r,e),Mn(e),o&512&&(zt||i===null||Er(i,i.return)),e.flags&32){c=e.stateNode;try{Ri(c,"")}catch(te){yt(e,e.return,te)}}o&4&&e.stateNode!=null&&(c=e.memoizedProps,Vd(e,c,i!==null?i.memoizedProps:c)),o&1024&&(Yd=!0);break;case 6:if(Nn(r,e),Mn(e),o&4){if(e.stateNode===null)throw Error(l(162));o=e.memoizedProps,i=e.stateNode;try{i.nodeValue=o}catch(te){yt(e,e.return,te)}}break;case 3:if(pc=null,c=cr,cr=hc(r.containerInfo),Nn(r,e),cr=c,Mn(e),o&4&&i!==null&&i.memoizedState.isDehydrated)try{Ao(r.containerInfo)}catch(te){yt(e,e.return,te)}Yd&&(Yd=!1,Jg(e));break;case 4:o=cr,cr=hc(e.stateNode.containerInfo),Nn(r,e),Mn(e),cr=o;break;case 12:Nn(r,e),Mn(e);break;case 13:Nn(r,e),Mn(e),e.child.flags&8192&&e.memoizedState!==null!=(i!==null&&i.memoizedState!==null)&&(Jd=Oe()),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Xd(e,o)));break;case 22:c=e.memoizedState!==null;var D=i!==null&&i.memoizedState!==null,K=Fr,de=zt;if(Fr=K||c,zt=de||D,Nn(r,e),zt=de,Fr=K,Mn(e),o&8192)e:for(r=e.stateNode,r._visibility=c?r._visibility&-2:r._visibility|1,c&&(i===null||D||Fr||zt||si(e)),i=null,r=e;;){if(r.tag===5||r.tag===26){if(i===null){D=i=r;try{if(d=D.stateNode,c)b=d.style,typeof b.setProperty=="function"?b.setProperty("display","none","important"):b.display="none";else{x=D.stateNode;var me=D.memoizedProps.style,J=me!=null&&me.hasOwnProperty("display")?me.display:null;x.style.display=J==null||typeof J=="boolean"?"":(""+J).trim()}}catch(te){yt(D,D.return,te)}}}else if(r.tag===6){if(i===null){D=r;try{D.stateNode.nodeValue=c?"":D.memoizedProps}catch(te){yt(D,D.return,te)}}}else if((r.tag!==22&&r.tag!==23||r.memoizedState===null||r===e)&&r.child!==null){r.child.return=r,r=r.child;continue}if(r===e)break e;for(;r.sibling===null;){if(r.return===null||r.return===e)break e;i===r&&(i=null),r=r.return}i===r&&(i=null),r.sibling.return=r.return,r=r.sibling}o&4&&(o=e.updateQueue,o!==null&&(i=o.retryQueue,i!==null&&(o.retryQueue=null,Xd(e,i))));break;case 19:Nn(r,e),Mn(e),o&4&&(o=e.updateQueue,o!==null&&(e.updateQueue=null,Xd(e,o)));break;case 30:break;case 21:break;default:Nn(r,e),Mn(e)}}function Mn(e){var r=e.flags;if(r&2){try{for(var i,o=e.return;o!==null;){if($g(o)){i=o;break}o=o.return}if(i==null)throw Error(l(160));switch(i.tag){case 27:var c=i.stateNode,d=Gd(e);ec(e,d,c);break;case 5:var b=i.stateNode;i.flags&32&&(Ri(b,""),i.flags&=-33);var x=Gd(e);ec(e,x,b);break;case 3:case 4:var D=i.stateNode.containerInfo,K=Gd(e);$d(e,K,D);break;default:throw Error(l(161))}}catch(de){yt(e,e.return,de)}e.flags&=-3}r&4096&&(e.flags&=-4097)}function Jg(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var r=e;Jg(r),r.tag===5&&r.flags&1024&&r.stateNode.reset(),e=e.sibling}}function va(e,r){if(r.subtreeFlags&8772)for(r=r.child;r!==null;)Fg(e,r.alternate,r),r=r.sibling}function si(e){for(e=e.child;e!==null;){var r=e;switch(r.tag){case 0:case 11:case 14:case 15:ga(4,r,r.return),si(r);break;case 1:Er(r,r.return);var i=r.stateNode;typeof i.componentWillUnmount=="function"&&Vg(r,r.return,i),si(r);break;case 27:wo(r.stateNode);case 26:case 5:Er(r,r.return),si(r);break;case 22:r.memoizedState===null&&si(r);break;case 30:si(r);break;default:si(r)}e=e.sibling}}function ya(e,r,i){for(i=i&&(r.subtreeFlags&8772)!==0,r=r.child;r!==null;){var o=r.alternate,c=e,d=r,b=d.flags;switch(d.tag){case 0:case 11:case 15:ya(c,d,i),co(4,d);break;case 1:if(ya(c,d,i),o=d,c=o.stateNode,typeof c.componentDidMount=="function")try{c.componentDidMount()}catch(K){yt(o,o.return,K)}if(o=d,c=o.updateQueue,c!==null){var x=o.stateNode;try{var D=c.shared.hiddenCallbacks;if(D!==null)for(c.shared.hiddenCallbacks=null,c=0;c<D.length;c++)Ap(D[c],x)}catch(K){yt(o,o.return,K)}}i&&b&64&&qg(d),uo(d,d.return);break;case 27:Yg(d);case 26:case 5:ya(c,d,i),i&&o===null&&b&4&&Gg(d),uo(d,d.return);break;case 12:ya(c,d,i);break;case 13:ya(c,d,i),i&&b&4&&Qg(c,d);break;case 22:d.memoizedState===null&&ya(c,d,i),uo(d,d.return);break;case 30:break;default:ya(c,d,i)}r=r.sibling}}function Fd(e,r){var i=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(i=e.memoizedState.cachePool.pool),e=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(e=r.memoizedState.cachePool.pool),e!==i&&(e!=null&&e.refCount++,i!=null&&Kl(i))}function Kd(e,r){e=null,r.alternate!==null&&(e=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==e&&(r.refCount++,e!=null&&Kl(e))}function _r(e,r,i,o){if(r.subtreeFlags&10256)for(r=r.child;r!==null;)ev(e,r,i,o),r=r.sibling}function ev(e,r,i,o){var c=r.flags;switch(r.tag){case 0:case 11:case 15:_r(e,r,i,o),c&2048&&co(9,r);break;case 1:_r(e,r,i,o);break;case 3:_r(e,r,i,o),c&2048&&(e=null,r.alternate!==null&&(e=r.alternate.memoizedState.cache),r=r.memoizedState.cache,r!==e&&(r.refCount++,e!=null&&Kl(e)));break;case 12:if(c&2048){_r(e,r,i,o),e=r.stateNode;try{var d=r.memoizedProps,b=d.id,x=d.onPostCommit;typeof x=="function"&&x(b,r.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(D){yt(r,r.return,D)}}else _r(e,r,i,o);break;case 13:_r(e,r,i,o);break;case 23:break;case 22:d=r.stateNode,b=r.alternate,r.memoizedState!==null?d._visibility&2?_r(e,r,i,o):fo(e,r):d._visibility&2?_r(e,r,i,o):(d._visibility|=2,Fi(e,r,i,o,(r.subtreeFlags&10256)!==0)),c&2048&&Fd(b,r);break;case 24:_r(e,r,i,o),c&2048&&Kd(r.alternate,r);break;default:_r(e,r,i,o)}}function Fi(e,r,i,o,c){for(c=c&&(r.subtreeFlags&10256)!==0,r=r.child;r!==null;){var d=e,b=r,x=i,D=o,K=b.flags;switch(b.tag){case 0:case 11:case 15:Fi(d,b,x,D,c),co(8,b);break;case 23:break;case 22:var de=b.stateNode;b.memoizedState!==null?de._visibility&2?Fi(d,b,x,D,c):fo(d,b):(de._visibility|=2,Fi(d,b,x,D,c)),c&&K&2048&&Fd(b.alternate,b);break;case 24:Fi(d,b,x,D,c),c&&K&2048&&Kd(b.alternate,b);break;default:Fi(d,b,x,D,c)}r=r.sibling}}function fo(e,r){if(r.subtreeFlags&10256)for(r=r.child;r!==null;){var i=e,o=r,c=o.flags;switch(o.tag){case 22:fo(i,o),c&2048&&Fd(o.alternate,o);break;case 24:fo(i,o),c&2048&&Kd(o.alternate,o);break;default:fo(i,o)}r=r.sibling}}var ho=8192;function Ki(e){if(e.subtreeFlags&ho)for(e=e.child;e!==null;)tv(e),e=e.sibling}function tv(e){switch(e.tag){case 26:Ki(e),e.flags&ho&&e.memoizedState!==null&&VS(cr,e.memoizedState,e.memoizedProps);break;case 5:Ki(e);break;case 3:case 4:var r=cr;cr=hc(e.stateNode.containerInfo),Ki(e),cr=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=ho,ho=16777216,Ki(e),ho=r):Ki(e));break;default:Ki(e)}}function nv(e){var r=e.alternate;if(r!==null&&(e=r.child,e!==null)){r.child=null;do r=e.sibling,e.sibling=null,e=r;while(e!==null)}}function mo(e){var r=e.deletions;if((e.flags&16)!==0){if(r!==null)for(var i=0;i<r.length;i++){var o=r[i];Qt=o,av(o,e)}nv(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)rv(e),e=e.sibling}function rv(e){switch(e.tag){case 0:case 11:case 15:mo(e),e.flags&2048&&ga(9,e,e.return);break;case 3:mo(e);break;case 12:mo(e);break;case 22:var r=e.stateNode;e.memoizedState!==null&&r._visibility&2&&(e.return===null||e.return.tag!==13)?(r._visibility&=-3,tc(e)):mo(e);break;default:mo(e)}}function tc(e){var r=e.deletions;if((e.flags&16)!==0){if(r!==null)for(var i=0;i<r.length;i++){var o=r[i];Qt=o,av(o,e)}nv(e)}for(e=e.child;e!==null;){switch(r=e,r.tag){case 0:case 11:case 15:ga(8,r,r.return),tc(r);break;case 22:i=r.stateNode,i._visibility&2&&(i._visibility&=-3,tc(r));break;default:tc(r)}e=e.sibling}}function av(e,r){for(;Qt!==null;){var i=Qt;switch(i.tag){case 0:case 11:case 15:ga(8,i,r);break;case 23:case 22:if(i.memoizedState!==null&&i.memoizedState.cachePool!==null){var o=i.memoizedState.cachePool.pool;o!=null&&o.refCount++}break;case 24:Kl(i.memoizedState.cache)}if(o=i.child,o!==null)o.return=i,Qt=o;else e:for(i=e;Qt!==null;){o=Qt;var c=o.sibling,d=o.return;if(Kg(o),o===i){Qt=null;break e}if(c!==null){c.return=d,Qt=c;break e}Qt=d}}}var iS={getCacheForType:function(e){var r=sn($t),i=r.data.get(e);return i===void 0&&(i=e(),r.data.set(e,i)),i}},lS=typeof WeakMap=="function"?WeakMap:Map,ct=0,Et=null,Ze=null,nt=0,ut=0,Dn=null,ba=!1,Wi=!1,Wd=!1,Wr=0,kt=0,wa=0,ci=0,Qd=0,Wn=0,Qi=0,po=null,Sn=null,Zd=!1,Jd=0,nc=1/0,rc=null,Sa=null,rn=0,xa=null,Zi=null,Ji=0,ef=0,tf=null,iv=null,go=0,nf=null;function jn(){if((ct&2)!==0&&nt!==0)return nt&-nt;if(R.T!==null){var e=Hi;return e!==0?e:uf()}return k()}function lv(){Wn===0&&(Wn=(nt&536870912)===0||ot?Tn():536870912);var e=Kn.current;return e!==null&&(e.flags|=32),Wn}function kn(e,r,i){(e===Et&&(ut===2||ut===9)||e.cancelPendingCommit!==null)&&(el(e,0),Ea(e,nt,Wn,!1)),On(e,i),((ct&2)===0||e!==Et)&&(e===Et&&((ct&2)===0&&(ci|=i),kt===4&&Ea(e,nt,Wn,!1)),Tr(e))}function ov(e,r,i){if((ct&6)!==0)throw Error(l(327));var o=!i&&(r&124)===0&&(r&e.expiredLanes)===0||tn(e,r),c=o?cS(e,r):lf(e,r,!0),d=o;do{if(c===0){Wi&&!o&&Ea(e,r,0,!1);break}else{if(i=e.current.alternate,d&&!oS(i)){c=lf(e,r,!1),d=!1;continue}if(c===2){if(d=r,e.errorRecoveryDisabledLanes&d)var b=0;else b=e.pendingLanes&-536870913,b=b!==0?b:b&536870912?536870912:0;if(b!==0){r=b;e:{var x=e;c=po;var D=x.current.memoizedState.isDehydrated;if(D&&(el(x,b).flags|=256),b=lf(x,b,!1),b!==2){if(Wd&&!D){x.errorRecoveryDisabledLanes|=d,ci|=d,c=4;break e}d=Sn,Sn=c,d!==null&&(Sn===null?Sn=d:Sn.push.apply(Sn,d))}c=b}if(d=!1,c!==2)continue}}if(c===1){el(e,0),Ea(e,r,0,!0);break}e:{switch(o=e,d=c,d){case 0:case 1:throw Error(l(345));case 4:if((r&4194048)!==r)break;case 6:Ea(o,r,Wn,!ba);break e;case 2:Sn=null;break;case 3:case 5:break;default:throw Error(l(329))}if((r&62914560)===r&&(c=Jd+300-Oe(),10<c)){if(Ea(o,r,Wn,!ba),_n(o,0,!0)!==0)break e;o.timeoutHandle=zv(sv.bind(null,o,i,Sn,rc,Zd,r,Wn,ci,Qi,ba,d,2,-0,0),c);break e}sv(o,i,Sn,rc,Zd,r,Wn,ci,Qi,ba,d,0,-0,0)}}break}while(!0);Tr(e)}function sv(e,r,i,o,c,d,b,x,D,K,de,me,J,te){if(e.timeoutHandle=-1,me=r.subtreeFlags,(me&8192||(me&16785408)===16785408)&&(Eo={stylesheets:null,count:0,unsuspend:qS},tv(r),me=GS(),me!==null)){e.cancelPendingCommit=me(pv.bind(null,e,r,d,i,o,c,b,x,D,de,1,J,te)),Ea(e,d,b,!K);return}pv(e,r,d,i,o,c,b,x,D)}function oS(e){for(var r=e;;){var i=r.tag;if((i===0||i===11||i===15)&&r.flags&16384&&(i=r.updateQueue,i!==null&&(i=i.stores,i!==null)))for(var o=0;o<i.length;o++){var c=i[o],d=c.getSnapshot;c=c.value;try{if(!An(d(),c))return!1}catch{return!1}}if(i=r.child,r.subtreeFlags&16384&&i!==null)i.return=r,r=i;else{if(r===e)break;for(;r.sibling===null;){if(r.return===null||r.return===e)return!0;r=r.return}r.sibling.return=r.return,r=r.sibling}}return!0}function Ea(e,r,i,o){r&=~Qd,r&=~ci,e.suspendedLanes|=r,e.pingedLanes&=~r,o&&(e.warmLanes|=r),o=e.expirationTimes;for(var c=r;0<c;){var d=31-Ot(c),b=1<<d;o[d]=-1,c&=~b}i!==0&&St(e,i,r)}function ac(){return(ct&6)===0?(vo(0),!1):!0}function rf(){if(Ze!==null){if(ut===0)var e=Ze.return;else e=Ze,qr=ri=null,wd(e),Yi=null,lo=0,e=Ze;for(;e!==null;)Bg(e.alternate,e),e=e.return;Ze=null}}function el(e,r){var i=e.timeoutHandle;i!==-1&&(e.timeoutHandle=-1,TS(i)),i=e.cancelPendingCommit,i!==null&&(e.cancelPendingCommit=null,i()),rf(),Et=e,Ze=i=Ur(e.current,null),nt=r,ut=0,Dn=null,ba=!1,Wi=tn(e,r),Wd=!1,Qi=Wn=Qd=ci=wa=kt=0,Sn=po=null,Zd=!1,(r&8)!==0&&(r|=r&32);var o=e.entangledLanes;if(o!==0)for(e=e.entanglements,o&=r;0<o;){var c=31-Ot(o),d=1<<c;r|=e[c],o&=~d}return Wr=r,Cs(),i}function cv(e,r){Ye=null,R.H=$s,r===Ql||r===Ls?(r=Cp(),ut=3):r===Ep?(r=Cp(),ut=4):ut=r===Og?8:r!==null&&typeof r=="object"&&typeof r.then=="function"?6:1,Dn=r,Ze===null&&(kt=1,Ws(e,$n(r,e.current)))}function uv(){var e=R.H;return R.H=$s,e===null?$s:e}function dv(){var e=R.A;return R.A=iS,e}function af(){kt=4,ba||(nt&4194048)!==nt&&Kn.current!==null||(Wi=!0),(wa&134217727)===0&&(ci&134217727)===0||Et===null||Ea(Et,nt,Wn,!1)}function lf(e,r,i){var o=ct;ct|=2;var c=uv(),d=dv();(Et!==e||nt!==r)&&(rc=null,el(e,r)),r=!1;var b=kt;e:do try{if(ut!==0&&Ze!==null){var x=Ze,D=Dn;switch(ut){case 8:rf(),b=6;break e;case 3:case 2:case 9:case 6:Kn.current===null&&(r=!0);var K=ut;if(ut=0,Dn=null,tl(e,x,D,K),i&&Wi){b=0;break e}break;default:K=ut,ut=0,Dn=null,tl(e,x,D,K)}}sS(),b=kt;break}catch(de){cv(e,de)}while(!0);return r&&e.shellSuspendCounter++,qr=ri=null,ct=o,R.H=c,R.A=d,Ze===null&&(Et=null,nt=0,Cs()),b}function sS(){for(;Ze!==null;)fv(Ze)}function cS(e,r){var i=ct;ct|=2;var o=uv(),c=dv();Et!==e||nt!==r?(rc=null,nc=Oe()+500,el(e,r)):Wi=tn(e,r);e:do try{if(ut!==0&&Ze!==null){r=Ze;var d=Dn;t:switch(ut){case 1:ut=0,Dn=null,tl(e,r,d,1);break;case 2:case 9:if(_p(d)){ut=0,Dn=null,hv(r);break}r=function(){ut!==2&&ut!==9||Et!==e||(ut=7),Tr(e)},d.then(r,r);break e;case 3:ut=7;break e;case 4:ut=5;break e;case 7:_p(d)?(ut=0,Dn=null,hv(r)):(ut=0,Dn=null,tl(e,r,d,7));break;case 5:var b=null;switch(Ze.tag){case 26:b=Ze.memoizedState;case 5:case 27:var x=Ze;if(!b||Fv(b)){ut=0,Dn=null;var D=x.sibling;if(D!==null)Ze=D;else{var K=x.return;K!==null?(Ze=K,ic(K)):Ze=null}break t}}ut=0,Dn=null,tl(e,r,d,5);break;case 6:ut=0,Dn=null,tl(e,r,d,6);break;case 8:rf(),kt=6;break e;default:throw Error(l(462))}}uS();break}catch(de){cv(e,de)}while(!0);return qr=ri=null,R.H=o,R.A=c,ct=i,Ze!==null?0:(Et=null,nt=0,Cs(),kt)}function uS(){for(;Ze!==null&&!Ie();)fv(Ze)}function fv(e){var r=Ug(e.alternate,e,Wr);e.memoizedProps=e.pendingProps,r===null?ic(e):Ze=r}function hv(e){var r=e,i=r.alternate;switch(r.tag){case 15:case 0:r=jg(i,r,r.pendingProps,r.type,void 0,nt);break;case 11:r=jg(i,r,r.pendingProps,r.type.render,r.ref,nt);break;case 5:wd(r);default:Bg(i,r),r=Ze=mp(r,Wr),r=Ug(i,r,Wr)}e.memoizedProps=e.pendingProps,r===null?ic(e):Ze=r}function tl(e,r,i,o){qr=ri=null,wd(r),Yi=null,lo=0;var c=r.return;try{if(J2(e,c,r,i,nt)){kt=1,Ws(e,$n(i,e.current)),Ze=null;return}}catch(d){if(c!==null)throw Ze=c,d;kt=1,Ws(e,$n(i,e.current)),Ze=null;return}r.flags&32768?(ot||o===1?e=!0:Wi||(nt&536870912)!==0?e=!1:(ba=e=!0,(o===2||o===9||o===3||o===6)&&(o=Kn.current,o!==null&&o.tag===13&&(o.flags|=16384))),mv(r,e)):ic(r)}function ic(e){var r=e;do{if((r.flags&32768)!==0){mv(r,ba);return}e=r.return;var i=tS(r.alternate,r,Wr);if(i!==null){Ze=i;return}if(r=r.sibling,r!==null){Ze=r;return}Ze=r=e}while(r!==null);kt===0&&(kt=5)}function mv(e,r){do{var i=nS(e.alternate,e);if(i!==null){i.flags&=32767,Ze=i;return}if(i=e.return,i!==null&&(i.flags|=32768,i.subtreeFlags=0,i.deletions=null),!r&&(e=e.sibling,e!==null)){Ze=e;return}Ze=e=i}while(e!==null);kt=6,Ze=null}function pv(e,r,i,o,c,d,b,x,D){e.cancelPendingCommit=null;do lc();while(rn!==0);if((ct&6)!==0)throw Error(l(327));if(r!==null){if(r===e.current)throw Error(l(177));if(d=r.lanes|r.childLanes,d|=Ku,zr(e,i,d,b,x,D),e===Et&&(Ze=Et=null,nt=0),Zi=r,xa=e,Ji=i,ef=d,tf=c,iv=o,(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?(e.callbackNode=null,e.callbackPriority=0,mS(wt,function(){return wv(),null})):(e.callbackNode=null,e.callbackPriority=0),o=(r.flags&13878)!==0,(r.subtreeFlags&13878)!==0||o){o=R.T,R.T=null,c=y.p,y.p=2,b=ct,ct|=4;try{rS(e,r,i)}finally{ct=b,y.p=c,R.T=o}}rn=1,gv(),vv(),yv()}}function gv(){if(rn===1){rn=0;var e=xa,r=Zi,i=(r.flags&13878)!==0;if((r.subtreeFlags&13878)!==0||i){i=R.T,R.T=null;var o=y.p;y.p=2;var c=ct;ct|=4;try{Zg(r,e);var d=yf,b=ap(e.containerInfo),x=d.focusedElem,D=d.selectionRange;if(b!==x&&x&&x.ownerDocument&&rp(x.ownerDocument.documentElement,x)){if(D!==null&&Gu(x)){var K=D.start,de=D.end;if(de===void 0&&(de=K),"selectionStart"in x)x.selectionStart=K,x.selectionEnd=Math.min(de,x.value.length);else{var me=x.ownerDocument||document,J=me&&me.defaultView||window;if(J.getSelection){var te=J.getSelection(),Ue=x.textContent.length,ke=Math.min(D.start,Ue),gt=D.end===void 0?ke:Math.min(D.end,Ue);!te.extend&&ke>gt&&(b=gt,gt=ke,ke=b);var G=np(x,ke),q=np(x,gt);if(G&&q&&(te.rangeCount!==1||te.anchorNode!==G.node||te.anchorOffset!==G.offset||te.focusNode!==q.node||te.focusOffset!==q.offset)){var X=me.createRange();X.setStart(G.node,G.offset),te.removeAllRanges(),ke>gt?(te.addRange(X),te.extend(q.node,q.offset)):(X.setEnd(q.node,q.offset),te.addRange(X))}}}}for(me=[],te=x;te=te.parentNode;)te.nodeType===1&&me.push({element:te,left:te.scrollLeft,top:te.scrollTop});for(typeof x.focus=="function"&&x.focus(),x=0;x<me.length;x++){var fe=me[x];fe.element.scrollLeft=fe.left,fe.element.scrollTop=fe.top}}yc=!!vf,yf=vf=null}finally{ct=c,y.p=o,R.T=i}}e.current=r,rn=2}}function vv(){if(rn===2){rn=0;var e=xa,r=Zi,i=(r.flags&8772)!==0;if((r.subtreeFlags&8772)!==0||i){i=R.T,R.T=null;var o=y.p;y.p=2;var c=ct;ct|=4;try{Fg(e,r.alternate,r)}finally{ct=c,y.p=o,R.T=i}}rn=3}}function yv(){if(rn===4||rn===3){rn=0,dt();var e=xa,r=Zi,i=Ji,o=iv;(r.subtreeFlags&10256)!==0||(r.flags&10256)!==0?rn=5:(rn=0,Zi=xa=null,bv(e,e.pendingLanes));var c=e.pendingLanes;if(c===0&&(Sa=null),$e(i),r=r.stateNode,Xe&&typeof Xe.onCommitFiberRoot=="function")try{Xe.onCommitFiberRoot(Tt,r,void 0,(r.current.flags&128)===128)}catch{}if(o!==null){r=R.T,c=y.p,y.p=2,R.T=null;try{for(var d=e.onRecoverableError,b=0;b<o.length;b++){var x=o[b];d(x.value,{componentStack:x.stack})}}finally{R.T=r,y.p=c}}(Ji&3)!==0&&lc(),Tr(e),c=e.pendingLanes,(i&4194090)!==0&&(c&42)!==0?e===nf?go++:(go=0,nf=e):go=0,vo(0)}}function bv(e,r){(e.pooledCacheLanes&=r)===0&&(r=e.pooledCache,r!=null&&(e.pooledCache=null,Kl(r)))}function lc(e){return gv(),vv(),yv(),wv()}function wv(){if(rn!==5)return!1;var e=xa,r=ef;ef=0;var i=$e(Ji),o=R.T,c=y.p;try{y.p=32>i?32:i,R.T=null,i=tf,tf=null;var d=xa,b=Ji;if(rn=0,Zi=xa=null,Ji=0,(ct&6)!==0)throw Error(l(331));var x=ct;if(ct|=4,rv(d.current),ev(d,d.current,b,i),ct=x,vo(0,!1),Xe&&typeof Xe.onPostCommitFiberRoot=="function")try{Xe.onPostCommitFiberRoot(Tt,d)}catch{}return!0}finally{y.p=c,R.T=o,bv(e,r)}}function Sv(e,r,i){r=$n(i,r),r=kd(e.stateNode,r,2),e=fa(e,r,2),e!==null&&(On(e,2),Tr(e))}function yt(e,r,i){if(e.tag===3)Sv(e,e,i);else for(;r!==null;){if(r.tag===3){Sv(r,e,i);break}else if(r.tag===1){var o=r.stateNode;if(typeof r.type.getDerivedStateFromError=="function"||typeof o.componentDidCatch=="function"&&(Sa===null||!Sa.has(o))){e=$n(i,e),i=Tg(2),o=fa(r,i,2),o!==null&&(Cg(i,o,r,e),On(o,2),Tr(o));break}}r=r.return}}function of(e,r,i){var o=e.pingCache;if(o===null){o=e.pingCache=new lS;var c=new Set;o.set(r,c)}else c=o.get(r),c===void 0&&(c=new Set,o.set(r,c));c.has(i)||(Wd=!0,c.add(i),e=dS.bind(null,e,r,i),r.then(e,e))}function dS(e,r,i){var o=e.pingCache;o!==null&&o.delete(r),e.pingedLanes|=e.suspendedLanes&i,e.warmLanes&=~i,Et===e&&(nt&i)===i&&(kt===4||kt===3&&(nt&62914560)===nt&&300>Oe()-Jd?(ct&2)===0&&el(e,0):Qd|=i,Qi===nt&&(Qi=0)),Tr(e)}function xv(e,r){r===0&&(r=ar()),e=zi(e,r),e!==null&&(On(e,r),Tr(e))}function fS(e){var r=e.memoizedState,i=0;r!==null&&(i=r.retryLane),xv(e,i)}function hS(e,r){var i=0;switch(e.tag){case 13:var o=e.stateNode,c=e.memoizedState;c!==null&&(i=c.retryLane);break;case 19:o=e.stateNode;break;case 22:o=e.stateNode._retryCache;break;default:throw Error(l(314))}o!==null&&o.delete(r),xv(e,i)}function mS(e,r){return He(e,r)}var oc=null,nl=null,sf=!1,sc=!1,cf=!1,ui=0;function Tr(e){e!==nl&&e.next===null&&(nl===null?oc=nl=e:nl=nl.next=e),sc=!0,sf||(sf=!0,gS())}function vo(e,r){if(!cf&&sc){cf=!0;do for(var i=!1,o=oc;o!==null;){if(e!==0){var c=o.pendingLanes;if(c===0)var d=0;else{var b=o.suspendedLanes,x=o.pingedLanes;d=(1<<31-Ot(42|e)+1)-1,d&=c&~(b&~x),d=d&201326741?d&201326741|1:d?d|2:0}d!==0&&(i=!0,Cv(o,d))}else d=nt,d=_n(o,o===Et?d:0,o.cancelPendingCommit!==null||o.timeoutHandle!==-1),(d&3)===0||tn(o,d)||(i=!0,Cv(o,d));o=o.next}while(i);cf=!1}}function pS(){Ev()}function Ev(){sc=sf=!1;var e=0;ui!==0&&(_S()&&(e=ui),ui=0);for(var r=Oe(),i=null,o=oc;o!==null;){var c=o.next,d=_v(o,r);d===0?(o.next=null,i===null?oc=c:i.next=c,c===null&&(nl=i)):(i=o,(e!==0||(d&3)!==0)&&(sc=!0)),o=c}vo(e)}function _v(e,r){for(var i=e.suspendedLanes,o=e.pingedLanes,c=e.expirationTimes,d=e.pendingLanes&-62914561;0<d;){var b=31-Ot(d),x=1<<b,D=c[b];D===-1?((x&i)===0||(x&o)!==0)&&(c[b]=wr(x,r)):D<=r&&(e.expiredLanes|=x),d&=~x}if(r=Et,i=nt,i=_n(e,e===r?i:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o=e.callbackNode,i===0||e===r&&(ut===2||ut===9)||e.cancelPendingCommit!==null)return o!==null&&o!==null&&De(o),e.callbackNode=null,e.callbackPriority=0;if((i&3)===0||tn(e,i)){if(r=i&-i,r===e.callbackPriority)return r;switch(o!==null&&De(o),$e(i)){case 2:case 8:i=ft;break;case 32:i=wt;break;case 268435456:i=Vt;break;default:i=wt}return o=Tv.bind(null,e),i=He(i,o),e.callbackPriority=r,e.callbackNode=i,r}return o!==null&&o!==null&&De(o),e.callbackPriority=2,e.callbackNode=null,2}function Tv(e,r){if(rn!==0&&rn!==5)return e.callbackNode=null,e.callbackPriority=0,null;var i=e.callbackNode;if(lc()&&e.callbackNode!==i)return null;var o=nt;return o=_n(e,e===Et?o:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),o===0?null:(ov(e,o,r),_v(e,Oe()),e.callbackNode!=null&&e.callbackNode===i?Tv.bind(null,e):null)}function Cv(e,r){if(lc())return null;ov(e,r,!0)}function gS(){CS(function(){(ct&6)!==0?He(Be,pS):Ev()})}function uf(){return ui===0&&(ui=Tn()),ui}function Ov(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:bs(""+e)}function Av(e,r){var i=r.ownerDocument.createElement("input");
vendor: 5,068 bytes, line 48
48return i.name=r.name,i.value=r.value,e.id&&i.setAttribute("form",e.id),r.parentNode.insertBefore(i,r),e=new FormData(e),i.parentNode.removeChild(i),e}function vS(e,r,i,o,c){if(r==="submit"&&i&&i.stateNode===c){var d=Ov((c[oe]||null).action),b=o.submitter;b&&(r=(r=b[oe]||null)?Ov(r.formAction):b.getAttribute("formAction"),r!==null&&(d=r,b=null));var x=new Es("action","action",null,o,c);e.push({event:x,listeners:[{instance:null,listener:function(){if(o.defaultPrevented){if(ui!==0){var D=b?Av(c,b):new FormData(c);Rd(i,{pending:!0,data:D,method:c.method,action:d},null,D)}}else typeof d=="function"&&(x.preventDefault(),D=b?Av(c,b):new FormData(c),Rd(i,{pending:!0,data:D,method:c.method,action:d},d,D))},currentTarget:c}]})}}for(var df=0;df<Fu.length;df++){var ff=Fu[df],yS=ff.toLowerCase(),bS=ff[0].toUpperCase()+ff.slice(1);sr(yS,"on"+bS)}sr(op,"onAnimationEnd"),sr(sp,"onAnimationIteration"),sr(cp,"onAnimationStart"),sr("dblclick","onDoubleClick"),sr("focusin","onFocus"),sr("focusout","onBlur"),sr(z2,"onTransitionRun"),sr(P2,"onTransitionStart"),sr(I2,"onTransitionCancel"),sr(up,"onTransitionEnd"),Ve("onMouseEnter",["mouseout","mouseover"]),Ve("onMouseLeave",["mouseout","mouseover"]),Ve("onPointerEnter",["pointerout","pointerover"]),Ve("onPointerLeave",["pointerout","pointerover"]),Kt("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),Kt("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),Kt("onBeforeInput",["compositionend","keypress","textInput","paste"]),Kt("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),Kt("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),Kt("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yo="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(" "),wS=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(yo));function Rv(e,r){r=(r&4)!==0;for(var i=0;i<e.length;i++){var o=e[i],c=o.event;o=o.listeners;e:{var d=void 0;if(r)for(var b=o.length-1;0<=b;b--){var x=o[b],D=x.instance,K=x.currentTarget;if(x=x.listener,D!==d&&c.isPropagationStopped())break e;d=x,c.currentTarget=K;try{d(c)}catch(de){Ks(de)}c.currentTarget=null,d=D}else for(b=0;b<o.length;b++){if(x=o[b],D=x.instance,K=x.currentTarget,x=x.listener,D!==d&&c.isPropagationStopped())break e;d=x,c.currentTarget=K;try{d(c)}catch(de){Ks(de)}c.currentTarget=null,d=D}}}}function Je(e,r){var i=r[xe];i===void 0&&(i=r[xe]=new Set);var o=e+"__bubble";i.has(o)||(Nv(r,e,2,!1),i.add(o))}function hf(e,r,i){var o=0;r&&(o|=4),Nv(i,e,o,r)}var cc="_reactListening"+Math.random().toString(36).slice(2);function mf(e){if(!e[cc]){e[cc]=!0,Fe.forEach(function(i){i!=="selectionchange"&&(wS.has(i)||hf(i,!1,e),hf(i,!0,e))});var r=e.nodeType===9?e:e.ownerDocument;r===null||r[cc]||(r[cc]=!0,hf("selectionchange",!1,r))}}function Nv(e,r,i,o){switch(ey(r)){case 2:var c=XS;break;case 8:c=FS;break;default:c=Af}i=c.bind(null,r,i,e),c=void 0,!Lu||r!=="touchstart"&&r!=="touchmove"&&r!=="wheel"||(c=!0),o?c!==void 0?e.addEventListener(r,i,{capture:!0,passive:c}):e.addEventListener(r,i,!0):c!==void 0?e.addEventListener(r,i,{passive:c}):e.addEventListener(r,i,!1)}function pf(e,r,i,o,c){var d=o;if((r&1)===0&&(r&2)===0&&o!==null)e:for(;;){if(o===null)return;var b=o.tag;if(b===3||b===4){var x=o.stateNode.containerInfo;if(x===c)break;if(b===4)for(b=o.return;b!==null;){var D=b.tag;if((D===3||D===4)&&b.stateNode.containerInfo===c)return;b=b.return}for(;x!==null;){if(b=Ne(x),b===null)return;if(D=b.tag,D===5||D===6||D===26||D===27){o=d=b;continue e}x=x.parentNode}}o=o.return}Pm(function(){var K=d,de=ju(i),me=[];e:{var J=dp.get(e);if(J!==void 0){var te=Es,Ue=e;switch(e){case"keypress":if(Ss(i)===0)break e;case"keydown":case"keyup":te=m2;break;case"focusin":Ue="focus",te=Uu;break;case"focusout":Ue="blur",te=Uu;break;case"beforeblur":case"afterblur":te=Uu;break;case"click":if(i.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":te=Hm;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":te=n2;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":te=v2;break;case op:case sp:case cp:te=i2;break;case up:te=b2;break;case"scroll":case"scrollend":te=e2;break;case"wheel":te=S2;break;case"copy":case"cut":case"paste":te=o2;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":te=qm;break;case"toggle":case"beforetoggle":te=E2}var ke=(r&4)!==0,gt=!ke&&(e==="scroll"||e==="scrollend"),G=ke?J!==null?J+"Capture":null:J;ke=[];for(var q=K,X;q!==null;){var fe=q;
vendor: 6,498 bytes, lines 48-49
48if(X=fe.stateNode,fe=fe.tag,fe!==5&&fe!==26&&fe!==27||X===null||G===null||(fe=zl(q,G),fe!=null&&ke.push(bo(q,fe,X))),gt)break;q=q.return}0<ke.length&&(J=new te(J,Ue,null,i,de),me.push({event:J,listeners:ke}))}}if((r&7)===0){e:{if(J=e==="mouseover"||e==="pointerover",te=e==="mouseout"||e==="pointerout",J&&i!==Du&&(Ue=i.relatedTarget||i.fromElement)&&(Ne(Ue)||Ue[ge]))break e;if((te||J)&&(J=de.window===de?de:(J=de.ownerDocument)?J.defaultView||J.parentWindow:window,te?(Ue=i.relatedTarget||i.toElement,te=K,Ue=Ue?Ne(Ue):null,Ue!==null&&(gt=u(Ue),ke=Ue.tag,Ue!==gt||ke!==5&&ke!==27&&ke!==6)&&(Ue=null)):(te=null,Ue=K),te!==Ue)){if(ke=Hm,fe="onMouseLeave",G="onMouseEnter",q="mouse",(e==="pointerout"||e==="pointerover")&&(ke=qm,fe="onPointerLeave",G="onPointerEnter",q="pointer"),gt=te==null?J:vt(te),X=Ue==null?J:vt(Ue),J=new ke(fe,q+"leave",te,i,de),J.target=gt,J.relatedTarget=X,fe=null,Ne(de)===K&&(ke=new ke(G,q+"enter",Ue,i,de),ke.target=X,ke.relatedTarget=gt,fe=ke),gt=fe,te&&Ue)t:{for(ke=te,G=Ue,q=0,X=ke;X;X=rl(X))q++;for(X=0,fe=G;fe;fe=rl(fe))X++;for(;0<q-X;)ke=rl(ke),q--;for(;0<X-q;)G=rl(G),X--;for(;q--;){if(ke===G||G!==null&&ke===G.alternate)break t;ke=rl(ke),G=rl(G)}ke=null}else ke=null;te!==null&&Mv(me,J,te,ke,!1),Ue!==null&>!==null&&Mv(me,gt,Ue,ke,!0)}}e:{if(J=K?vt(K):window,te=J.nodeName&&J.nodeName.toLowerCase(),te==="select"||te==="input"&&J.type==="file")var Te=Wm;else if(Fm(J))if(Qm)Te=j2;else{Te=M2;var We=N2}else te=J.nodeName,!te||te.toLowerCase()!=="input"||J.type!=="checkbox"&&J.type!=="radio"?K&&Mu(K.elementType)&&(Te=Wm):Te=D2;if(Te&&(Te=Te(e,K))){Km(me,Te,i,de);break e}We&&We(e,J,K),e==="focusout"&&K&&J.type==="number"&&K.memoizedProps.value!=null&&Nu(J,"number",J.value)}switch(We=K?vt(K):window,e){case"focusin":(Fm(We)||We.contentEditable==="true")&&(ji=We,$u=K,Gl=null);break;case"focusout":Gl=$u=ji=null;break;case"mousedown":Yu=!0;break;case"contextmenu":case"mouseup":case"dragend":Yu=!1,ip(me,i,de);break;case"selectionchange":if(L2)break;case"keydown":case"keyup":ip(me,i,de)}var Ae;if(Bu)e:{switch(e){case"compositionstart":var Le="onCompositionStart";break e;case"compositionend":Le="onCompositionEnd";break e;case"compositionupdate":Le="onCompositionUpdate";break e}Le=void 0}else Di?Ym(e,i)&&(Le="onCompositionEnd"):e==="keydown"&&i.keyCode===229&&(Le="onCompositionStart");Le&&(Vm&&i.locale!=="ko"&&(Di||Le!=="onCompositionStart"?Le==="onCompositionEnd"&&Di&&(Ae=Im()):(sa=de,zu="value"in sa?sa.value:sa.textContent,Di=!0)),We=uc(K,Le),0<We.length&&(Le=new Bm(Le,e,null,i,de),me.push({event:Le,listeners:We}),Ae?Le.data=Ae:(Ae=Xm(i),Ae!==null&&(Le.data=Ae)))),(Ae=T2?C2(e,i):O2(e,i))&&(Le=uc(K,"onBeforeInput"),0<Le.length&&(We=new Bm("onBeforeInput","beforeinput",null,i,de),me.push({event:We,listeners:Le}),We.data=Ae)),vS(me,e,K,i,de)}Rv(me,r)})}function bo(e,r,i){return{instance:e,listener:r,currentTarget:i}}function uc(e,r){for(var i=r+"Capture",o=[];e!==null;){var c=e,d=c.stateNode;if(c=c.tag,c!==5&&c!==26&&c!==27||d===null||(c=zl(e,i),c!=null&&o.unshift(bo(e,c,d)),c=zl(e,r),c!=null&&o.push(bo(e,c,d))),e.tag===3)return o;e=e.return}return[]}function rl(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function Mv(e,r,i,o,c){for(var d=r._reactName,b=[];i!==null&&i!==o;){var x=i,D=x.alternate,K=x.stateNode;if(x=x.tag,D!==null&&D===o)break;x!==5&&x!==26&&x!==27||K===null||(D=K,c?(K=zl(i,d),K!=null&&b.unshift(bo(i,K,D))):c||(K=zl(i,d),K!=null&&b.push(bo(i,K,D)))),i=i.return}b.length!==0&&e.push({event:r,listeners:b})}var SS=/\r\n?/g,xS=/\u0000|\uFFFD/g;function Dv(e){return(typeof e=="string"?e:""+e).replace(SS,` 49`).replace(xS,"")}function jv(e,r){return r=Dv(r),Dv(e)===r}function dc(){}function pt(e,r,i,o,c,d){switch(i){case"children":typeof o=="string"?r==="body"||r==="textarea"&&o===""||Ri(e,o):(typeof o=="number"||typeof o=="bigint")&&r!=="body"&&Ri(e,""+o);break;case"className":Pr(e,"class",o);break;case"tabIndex":Pr(e,"tabindex",o);break;case"dir":case"role":case"viewBox":case"width":case"height":Pr(e,i,o);break;case"style":Lm(e,o,d);break;case"data":if(r!=="object"){Pr(e,"data",o);break}case"src":case"href":if(o===""&&(r!=="a"||i!=="href")){e.removeAttribute(i);break}if(o==null||typeof o=="function"||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(i);break}o=bs(""+o),e.setAttribute(i,o);break;case"action":case"formAction":if(typeof o=="function"){e.setAttribute(i,"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 d=="function"&&(i==="formAction"?(r!=="input"&&pt(e,r,"name",c.name,c,null),pt(e,r,"formEncType",c.formEncType,c,null),pt(e,r,"formMethod",c.formMethod,c,null),pt(e,r,"formTarget",c.formTarget,c,null)):(pt(e,r,"encType",c.encType,c,null),pt(e,r,"method",c.method,c,null),pt(e,r,"target",c.target,c,null)));if(o==null||typeof o=="symbol"||typeof o=="boolean"){e.removeAttribute(i);break}o=bs(""+o),e.setAttribute(i,o);break;case"onClick":o!=null&&(e.onclick=dc);break;case"onScroll":o!=null&&Je("scroll",e);break;case"onScrollEnd":o!=null&&Je("scrollend",e);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(l(61));if(i=o.__html,i!=null){if(c.children!=null)throw Error(l(60));e.innerHTML=i}}break;case"multiple":e.multiple=o&&typeof o!="function"&&typeof o!="symbol";break;case"muted":e.muted=o&&typeof o!="function"&&typeof o!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(o==null||typeof o=="function"||typeof o=="boolean"||typeof o=="symbol"){e.removeAttribute("xlink:href");break}i=bs(""+o),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",i);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(i,""+o):e.removeAttribute(i);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInl
49ine":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":o&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(i,""):e.removeAttribute(i);break;case"capture":case"download":o===!0?e.setAttribute(i,""):o!==!1&&o!=null&&typeof o!="function"&&typeof o!="symbol"?e.setAttribute(i,o):e.removeAttribute(i);break;case"cols":case"rows":case"size":case"span":o!=null&&typeof o!="function"&&typeof o!="symbol"&&!isNaN(o)&&1<=o?e.setAttribute(i,o):e.removeAttribute(i);break;case"rowSpan":case"start":o==null||typeof o=="function"||typeof o=="symbol"||isNaN(o)?e.removeAttribute(i):e.setAttribute(i,o);break;case"popover":Je("beforetoggle",e),Je("toggle",e),ln(e,"popover",o);break;case"xlinkActuate":Ke(e,"http://www.w3.org/1999/xlink","xlink:actuate",o);break;case"xlinkArcrole":Ke(e,"http://www.w3.org/1999/xlink","xlink:arcrole",o);break;case"xlinkRole":Ke(e,"http://www.w3.org/1999/xlink","xlink:role",o);break;case"xlinkShow":Ke(e,"http://www.w3.org/1999/xlink","xlink:show",o);break;case"xlinkTitle":Ke(e,"http://www.w3.org/1999/xlink","xlink:title",o);break;case"xlinkType":Ke(e,"http://www.w3.org/1999/xlink","xlink:type",o);break;case"xmlBase":Ke(e,"http://www.w3.org/XML/1998/namespace","xml:base",o);break;case"xmlLang":Ke(e,"http://www.w3.org/XML/1998/namespace","xml:lang",o);break;case"xmlSpace":Ke(e,"http://www.w3.org/XML/1998/namespace","xml:space",o);break;case"is":ln(e,"is",o);break;case"innerText":case"textContent":break;default:(!(2<i.length)||i[0]!=="o"&&i[0]!=="O"||i[1]!=="n"&&i[1]!=="N")&&(i=Z1.get(i)||i,ln(e,i,o))}}function gf(e,r,i,o,c,d){switch(i){case"style":Lm(e,o,d);break;case"dangerouslySetInnerHTML":if(o!=null){if(typeof o!="object"||!("__html"in o))throw Error(l(61));if(i=o.__html,i!=null){if(c.children!=null)throw Error(l(60));e.innerHTML=i}}break;case"children":typeof o=="string"?Ri(e,o):(typeof o=="number"||typeof o=="bigint")&&Ri(e,""+o);break;case"onScroll":o!=null&&Je("scroll",e);break;case"onScrollEnd":o!=null&&Je("scrollend",e);break;case"onClick":o!=null&&(e.onclick=dc);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!ir.hasOwnProperty(i))e:{if(i[0]==="o"&&i[1]==="n"&&(c=i.endsWith("Capture"),r=i.slice(2,c?i.length-7:void 0),d=e[oe]||null,d=d!=null?d[i]:null,typeof d=="function"&&e.removeEventListener(r,d,c),typeof o=="function")){typeof d!="function"&&d!==null&&(i in e?e[i]=null:e.hasAttribute(i)&&e.removeAttribute(i)),e.addEventListener(r,o,c);break e}i in e?e[i]=o:o===!0?e.setAttribute(i,""):ln(e,i,o)}}}function an(e,r,i){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Je("error",e),Je("load",e);var o=!1,c=!1,d;for(d in i)if(i.hasOwnProperty(d)){var b=i[d];if(b!=null)switch(d){case"src":o=!0;break;case"srcSet":c=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(l(137,r));default:pt(e,r,d,b,i,null)}}c&&pt(e,r,"srcSet",i.srcSet,i,null),o&&pt(e,r,"src",i.src,i,null);return;case"input":Je("invalid",e);var x=d=b=c=null,D=null,K=null;for(o in i)if(i.hasOwnProperty(o)){var de=i[o];if(de!=null)switch(o){case"name":c=de;break;case"type":b=de;break;case"checked":D=de;break;case"defaultChecked":K=de;break;case"value":d=de;break;case"defaultValue":x=de;break;case"children":case"dangerouslySetInnerHTML":if(de!=null)throw Error(l(137,r));break;default:pt(e,r,o,de,i,null)}}Mm(e,d,x,D,K,b,c,!1),vs(e);return;case"select":Je("invalid",e),o=b=d=null;for(c in i)if(i.hasOwnProperty(c)&&(x=i[c],x!=null))switch(c){case"value":d=x;break;case"defaultValue":b=x;break;case"multiple":o=x;default:pt(e,r,c,x,i,null)}r=d,i=b,e.multiple=!!o,r!=null?Ai(e,!!o,r,!1):i!=null&&Ai(e,!!o,i,!0);return;case"textarea":Je("invalid",e),d=c=o=null;for(b in i)if(i.hasOwnProperty(b)&&(x=i[b],x!=null))switch(b){case"value":o=x;break;case"defaultValue":c=x;break;case"children":d=x;break;case"dangerouslySetInnerHTML":if(x!=null)throw Error(l(91));break;default:pt(e,r,b,x,i,null)}jm(e,o,c,d),vs(e);return;case"option":for(D in i)if(i.hasOwnProperty(D)&&(o=i[D],o!=null))switch(D){case"selected":e.selected=o&&typeof o!="function"&&typeof o!="symbol";break;default:pt(e,r,D,o,i,null)}return;case"dialog":Je("beforetoggle",e),Je("toggle",e),Je("cancel",e),Je("close",e);break;case"iframe":case"object":Je("load",e);break;case"video":case"audio":for(o=0;o<yo.length;o++)Je(yo[o],e);break;case"image":Je("error",e),Je("load",e);break;case"details":Je("toggle",e);break;case"embed":case"source":case"link":Je("error",e),Je("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(K in i)if(i.hasOwnProperty(K)&&(o=i[K],o!=null))switch(K){case"children":case"dangerouslySetInnerHTML":throw Error(l(137,r));default:pt(e,r,K,o,i,null)}return;default:if(Mu(r)){for(de in i)i.hasOwnProperty(de)&&(o=i[de],o!==void 0&&gf(e,r,de,o,i,void 0));return}}for(x in i)i.hasOwnProperty(x)&&(o=i[x],o!=null&&pt(e,r,x,o,i,null))}function ES(e,r,i,o){switch(r){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var c=null,d=null,b=null,x=null,D=null,K=null,de=null;for(te in i){var me=i[te];if(i.hasOwnProperty(te)&&me!=null)switch(te){case"checked":break;case"value":break;case"defaultValue":D=me;default:o.hasOwnProperty(te)||pt(e,r,te,null,o,me)}}for(var J in o){var te=o[J];if(me=i[J],o.hasOwnProperty(J)&&(te!=null||me!=null))switch(J){case"type":d=te;break;case"name":c=te;break;case"checked":K=te;break;case"defaultChecked":de=te;break;case"value":b=te;break;case"defaultValue":x=te;break;case"children":case"dangerouslySetInnerHTML":if(te!=null)throw Error(l(137,r));break;default:te!==me&&pt(e,r,J,te,o,me)}}Ru(e,b,x,D,K,de,d,c);return;case"select":te=b=x=J=null;for(d in i)if(D=i[d],i.hasOwnProperty(d)&&D!=null)switch(d){case"value":break;case"multiple":te=D;default:o.hasOwnProperty(d)||pt(e,r,d,null,o,D)}for(c in o)if(d=o[c],D=i[c],o.hasOwnProperty(c)&&(d!=null||D!=null))switch(c){case"value":J=d;break;case"defaultValue":x=d;break;case"multiple":b=d;default:d!==D&&pt(e,r,c,d,o,D)}
vendor: 6,733 bytes, line 49
49r=x,i=b,o=te,J!=null?Ai(e,!!i,J,!1):!!o!=!!i&&(r!=null?Ai(e,!!i,r,!0):Ai(e,!!i,i?[]:"",!1));return;case"textarea":te=J=null;for(x in i)if(c=i[x],i.hasOwnProperty(x)&&c!=null&&!o.hasOwnProperty(x))switch(x){case"value":break;case"children":break;default:pt(e,r,x,null,o,c)}for(b in o)if(c=o[b],d=i[b],o.hasOwnProperty(b)&&(c!=null||d!=null))switch(b){case"value":J=c;break;case"defaultValue":te=c;break;case"children":break;case"dangerouslySetInnerHTML":if(c!=null)throw Error(l(91));break;default:c!==d&&pt(e,r,b,c,o,d)}Dm(e,J,te);return;case"option":for(var Ue in i)if(J=i[Ue],i.hasOwnProperty(Ue)&&J!=null&&!o.hasOwnProperty(Ue))switch(Ue){case"selected":e.selected=!1;break;default:pt(e,r,Ue,null,o,J)}for(D in o)if(J=o[D],te=i[D],o.hasOwnProperty(D)&&J!==te&&(J!=null||te!=null))switch(D){case"selected":e.selected=J&&typeof J!="function"&&typeof J!="symbol";break;default:pt(e,r,D,J,o,te)}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 ke in i)J=i[ke],i.hasOwnProperty(ke)&&J!=null&&!o.hasOwnProperty(ke)&&pt(e,r,ke,null,o,J);for(K in o)if(J=o[K],te=i[K],o.hasOwnProperty(K)&&J!==te&&(J!=null||te!=null))switch(K){case"children":case"dangerouslySetInnerHTML":if(J!=null)throw Error(l(137,r));break;default:pt(e,r,K,J,o,te)}return;default:if(Mu(r)){for(var gt in i)J=i[gt],i.hasOwnProperty(gt)&&J!==void 0&&!o.hasOwnProperty(gt)&&gf(e,r,gt,void 0,o,J);for(de in o)J=o[de],te=i[de],!o.hasOwnProperty(de)||J===te||J===void 0&&te===void 0||gf(e,r,de,J,o,te);return}}for(var G in i)J=i[G],i.hasOwnProperty(G)&&J!=null&&!o.hasOwnProperty(G)&&pt(e,r,G,null,o,J);for(me in o)J=o[me],te=i[me],!o.hasOwnProperty(me)||J===te||J==null&&te==null||pt(e,r,me,J,o,te)}var vf=null,yf=null;function fc(e){return e.nodeType===9?e:e.ownerDocument}function kv(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function Lv(e,r){if(e===0)switch(r){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&r==="foreignObject"?0:e}function bf(e,r){return e==="textarea"||e==="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 wf=null;function _S(){var e=window.event;return e&&e.type==="popstate"?e===wf?!1:(wf=e,!0):(wf=null,!1)}var zv=typeof setTimeout=="function"?setTimeout:void 0,TS=typeof clearTimeout=="function"?clearTimeout:void 0,Pv=typeof Promise=="function"?Promise:void 0,CS=typeof queueMicrotask=="function"?queueMicrotask:typeof Pv<"u"?function(e){return Pv.resolve(null).then(e).catch(OS)}:zv;function OS(e){setTimeout(function(){throw e})}function _a(e){return e==="head"}function Iv(e,r){var i=r,o=0,c=0;do{var d=i.nextSibling;if(e.removeChild(i),d&&d.nodeType===8)if(i=d.data,i==="/$"){if(0<o&&8>o){i=o;var b=e.ownerDocument;if(i&1&&wo(b.documentElement),i&2&&wo(b.body),i&4)for(i=b.head,wo(i),b=i.firstChild;b;){var x=b.nextSibling,D=b.nodeName;b[Ce]||D==="SCRIPT"||D==="STYLE"||D==="LINK"&&b.rel.toLowerCase()==="stylesheet"||i.removeChild(b),b=x}}if(c===0){e.removeChild(d),Ao(r);return}c--}else i==="$"||i==="$?"||i==="$!"?c++:o=i.charCodeAt(0)-48;else o=0;i=d}while(i);Ao(r)}function Sf(e){var r=e.firstChild;for(r&&r.nodeType===10&&(r=r.nextSibling);r;){var i=r;switch(r=r.nextSibling,i.nodeName){case"HTML":case"HEAD":case"BODY":Sf(i),ve(i);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(i.rel.toLowerCase()==="stylesheet")continue}e.removeChild(i)}}function AS(e,r,i,o){for(;e.nodeType===1;){var c=i;if(e.nodeName.toLowerCase()!==r.toLowerCase()){if(!o&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(o){if(!e[Ce])switch(r){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(d=e.getAttribute("rel"),d==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(d!==c.rel||e.getAttribute("href")!==(c.href==null||c.href===""?null:c.href)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin)||e.getAttribute("title")!==(c.title==null?null:c.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(d=e.getAttribute("src"),(d!==(c.src==null?null:c.src)||e.getAttribute("type")!==(c.type==null?null:c.type)||e.getAttribute("crossorigin")!==(c.crossOrigin==null?null:c.crossOrigin))&&d&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(r==="input"&&e.type==="hidden"){var d=c.name==null?null:""+c.name;if(c.type==="hidden"&&e.getAttribute("name")===d)return e}else return e;if(e=ur(e.nextSibling),e===null)break}return null}function RS(e,r,i){if(r==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!i||(e=ur(e.nextSibling),e===null))return null;return e}function xf(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState==="complete"}function NS(e,r){var i=e.ownerDocument;if(e.data!=="$?"||i.readyState==="complete")r();else{var o=function(){r(),i.removeEventListener("DOMContentLoaded",o)};i.addEventListener("DOMContentLoaded",o),e._reactRetry=o}}function ur(e){for(;e!=null;e=e.nextSibling){var r=e.nodeType;if(r===1||r===3)break;if(r===8){if(r=e.data,r==="$"||r==="$!"||r==="$?"||r==="F!"||r==="F")break;if(r==="/$")return null}}return e}var Ef=null;function Uv(e){e=e.previousSibling;for(var r=0;e;){if(e.nodeType===8){var i=e.data;if(i==="$"||i==="$!"||i==="$?"){if(r===0)return e;r--}else i==="/$"&&r++}e=e.previousSibling}return null}function Hv(e,r,i){switch(r=fc(i),e){case"html":if(e=r.documentElement,!e)throw Error(l(452));return e;case"head":if(e=r.head,!e)throw Error(l(453));return e;case"body":if(e=r.body,!e)throw Error(l(454));return e;default:throw Error(l(451))}}function wo(e){for(var r=e.attributes;r.length;)e.removeAttributeNode(r[0]);ve(e)}var Qn=new Map,Bv=new Set;function hc(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Qr=y.d;y.d={f:MS,r:DS,D:jS,C:kS,L:LS,m:zS,X:IS,S:PS,M:US};function MS(){var e=Qr.f(),r=ac();return e||r}function DS(e){var r=et(e);r!==null&&r.tag===5&&r.type==="form"?og(r):Qr.r(e)}var al=typeof document>"u"?null:document;function qv(e,r,i){var o=al;if(o&&typeof r=="string"&&r){var c=Gn(r);c='link[rel="'+e+'"][href="'+c+'"]',typeof i=="string"&&(c+='[crossorigin="'+i+'"]'),Bv.has(c)||(Bv.add(c),e={rel:e,crossOrigin:i,href:r},o.querySelector(c)===null&&(r=o.createElement("link"),an(r,"link",e),tt(r),o.head.appendChild(r)))}}function jS(e){Qr.D(e),qv("dns-prefetch",e,null)}function kS(e,r){Qr.C(e,r),qv("preconnect",e,r)}
vendor: 4,922 bytes, line 49
49function LS(e,r,i){Qr.L(e,r,i);var o=al;if(o&&e&&r){var c='link[rel="preload"][as="'+Gn(r)+'"]';r==="image"&&i&&i.imageSrcSet?(c+='[imagesrcset="'+Gn(i.imageSrcSet)+'"]',typeof i.imageSizes=="string"&&(c+='[imagesizes="'+Gn(i.imageSizes)+'"]')):c+='[href="'+Gn(e)+'"]';var d=c;switch(r){case"style":d=il(e);break;case"script":d=ll(e)}Qn.has(d)||(e=w({rel:"preload",href:r==="image"&&i&&i.imageSrcSet?void 0:e,as:r},i),Qn.set(d,e),o.querySelector(c)!==null||r==="style"&&o.querySelector(So(d))||r==="script"&&o.querySelector(xo(d))||(r=o.createElement("link"),an(r,"link",e),tt(r),o.head.appendChild(r)))}}function zS(e,r){Qr.m(e,r);var i=al;if(i&&e){var o=r&&typeof r.as=="string"?r.as:"script",c='link[rel="modulepreload"][as="'+Gn(o)+'"][href="'+Gn(e)+'"]',d=c;switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":d=ll(e)}if(!Qn.has(d)&&(e=w({rel:"modulepreload",href:e},r),Qn.set(d,e),i.querySelector(c)===null)){switch(o){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(i.querySelector(xo(d)))return}o=i.createElement("link"),an(o,"link",e),tt(o),i.head.appendChild(o)}}}function PS(e,r,i){Qr.S(e,r,i);var o=al;if(o&&e){var c=xt(o).hoistableStyles,d=il(e);r=r||"default";var b=c.get(d);if(!b){var x={loading:0,preload:null};if(b=o.querySelector(So(d)))x.loading=5;else{e=w({rel:"stylesheet",href:e,"data-precedence":r},i),(i=Qn.get(d))&&_f(e,i);var D=b=o.createElement("link");tt(D),an(D,"link",e),D._p=new Promise(function(K,de){D.onload=K,D.onerror=de}),D.addEventListener("load",function(){x.loading|=1}),D.addEventListener("error",function(){x.loading|=2}),x.loading|=4,mc(b,r,o)}b={type:"stylesheet",instance:b,count:1,state:x},c.set(d,b)}}}function IS(e,r){Qr.X(e,r);var i=al;if(i&&e){var o=xt(i).hoistableScripts,c=ll(e),d=o.get(c);d||(d=i.querySelector(xo(c)),d||(e=w({src:e,async:!0},r),(r=Qn.get(c))&&Tf(e,r),d=i.createElement("script"),tt(d),an(d,"link",e),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},o.set(c,d))}}function US(e,r){Qr.M(e,r);var i=al;if(i&&e){var o=xt(i).hoistableScripts,c=ll(e),d=o.get(c);d||(d=i.querySelector(xo(c)),d||(e=w({src:e,async:!0,type:"module"},r),(r=Qn.get(c))&&Tf(e,r),d=i.createElement("script"),tt(d),an(d,"link",e),i.head.appendChild(d)),d={type:"script",instance:d,count:1,state:null},o.set(c,d))}}function Vv(e,r,i,o){var c=(c=ie.current)?hc(c):null;if(!c)throw Error(l(446));switch(e){case"meta":case"title":return null;case"style":return typeof i.precedence=="string"&&typeof i.href=="string"?(r=il(i.href),i=xt(c).hoistableStyles,o=i.get(r),o||(o={type:"style",instance:null,count:0,state:null},i.set(r,o)),o):{type:"void",instance:null,count:0,state:null};case"link":if(i.rel==="stylesheet"&&typeof i.href=="string"&&typeof i.precedence=="string"){e=il(i.href);var d=xt(c).hoistableStyles,b=d.get(e);if(b||(c=c.ownerDocument||c,b={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},d.set(e,b),(d=c.querySelector(So(e)))&&!d._p&&(b.instance=d,b.state.loading=5),Qn.has(e)||(i={rel:"preload",as:"style",href:i.href,crossOrigin:i.crossOrigin,integrity:i.integrity,media:i.media,hrefLang:i.hrefLang,referrerPolicy:i.referrerPolicy},Qn.set(e,i),d||HS(c,e,i,b.state))),r&&o===null)throw Error(l(528,""));return b}if(r&&o!==null)throw Error(l(529,""));return null;case"script":return r=i.async,i=i.src,typeof i=="string"&&r&&typeof r!="function"&&typeof r!="symbol"?(r=ll(i),i=xt(c).hoistableScripts,o=i.get(r),o||(o={type:"script",instance:null,count:0,state:null},i.set(r,o)),o):{type:"void",instance:null,count:0,state:null};default:throw Error(l(444,e))}}function il(e){return'href="'+Gn(e)+'"'}function So(e){return'link[rel="stylesheet"]['+e+"]"}function Gv(e){return w({},e,{"data-precedence":e.precedence,precedence:null})}function HS(e,r,i,o){e.querySelector('link[rel="preload"][as="style"]['+r+"]")?o.loading=1:(r=e.createElement("link"),o.preload=r,r.addEventListener("load",function(){return o.loading|=1}),r.addEventListener("error",function(){return o.loading|=2}),an(r,"link",i),tt(r),e.head.appendChild(r))}function ll(e){return'[src="'+Gn(e)+'"]'}function xo(e){return"script[async]"+e}function $v(e,r,i){if(r.count++,r.instance===null)switch(r.type){case"style":var o=e.querySelector('style[data-href~="'+Gn(i.href)+'"]');if(o)return r.instance=o,tt(o),o;var c=w({},i,{"data-href":i.href,"data-precedence":i.precedence,href:null,precedence:null});return o=(e.ownerDocument||e).createElement("style"),tt(o),an(o,"style",c),mc(o,i.precedence,e),r.instance=o;case"stylesheet":c=il(i.href);var d=e.querySelector(So(c));if(d)return r.state.loading|=4,r.instance=d,tt(d),d;o=Gv(i),(c=Qn.get(c))&&_f(o,c),d=(e.ownerDocument||e).createElement("link"),tt(d);var b=d;return b._p=new Promise(function(x,D){b.onload=x,b.onerror=D}),an(d,"link",o),r.state.loading|=4,mc(d,i.precedence,e),r.instance=d;
vendor: 10,169 bytes, line 49
49case"script":return d=ll(i.src),(c=e.querySelector(xo(d)))?(r.instance=c,tt(c),c):(o=i,(c=Qn.get(d))&&(o=w({},i),Tf(o,c)),e=e.ownerDocument||e,c=e.createElement("script"),tt(c),an(c,"link",o),e.head.appendChild(c),r.instance=c);case"void":return null;default:throw Error(l(443,r.type))}else r.type==="stylesheet"&&(r.state.loading&4)===0&&(o=r.instance,r.state.loading|=4,mc(o,i.precedence,e));return r.instance}function mc(e,r,i){for(var o=i.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),c=o.length?o[o.length-1]:null,d=c,b=0;b<o.length;b++){var x=o[b];if(x.dataset.precedence===r)d=x;else if(d!==c)break}d?d.parentNode.insertBefore(e,d.nextSibling):(r=i.nodeType===9?i.head:i,r.insertBefore(e,r.firstChild))}function _f(e,r){e.crossOrigin==null&&(e.crossOrigin=r.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=r.referrerPolicy),e.title==null&&(e.title=r.title)}function Tf(e,r){e.crossOrigin==null&&(e.crossOrigin=r.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=r.referrerPolicy),e.integrity==null&&(e.integrity=r.integrity)}var pc=null;function Yv(e,r,i){if(pc===null){var o=new Map,c=pc=new Map;c.set(i,o)}else c=pc,o=c.get(i),o||(o=new Map,c.set(i,o));if(o.has(e))return o;for(o.set(e,null),i=i.getElementsByTagName(e),c=0;c<i.length;c++){var d=i[c];if(!(d[Ce]||d[Q]||e==="link"&&d.getAttribute("rel")==="stylesheet")&&d.namespaceURI!=="http://www.w3.org/2000/svg"){var b=d.getAttribute(r)||"";b=e+b;var x=o.get(b);x?x.push(d):o.set(b,[d])}}return o}function Xv(e,r,i){e=e.ownerDocument||e,e.head.insertBefore(i,r==="title"?e.querySelector("head > title"):null)}function BS(e,r,i){if(i===1||r.itemProp!=null)return!1;switch(e){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 e=r.disabled,typeof r.precedence=="string"&&e==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 Fv(e){return!(e.type==="stylesheet"&&(e.state.loading&3)===0)}var Eo=null;function qS(){}function VS(e,r,i){if(Eo===null)throw Error(l(475));var o=Eo;if(r.type==="stylesheet"&&(typeof i.media!="string"||matchMedia(i.media).matches!==!1)&&(r.state.loading&4)===0){if(r.instance===null){var c=il(i.href),d=e.querySelector(So(c));if(d){e=d._p,e!==null&&typeof e=="object"&&typeof e.then=="function"&&(o.count++,o=gc.bind(o),e.then(o,o)),r.state.loading|=4,r.instance=d,tt(d);return}d=e.ownerDocument||e,i=Gv(i),(c=Qn.get(c))&&_f(i,c),d=d.createElement("link"),tt(d);var b=d;b._p=new Promise(function(x,D){b.onload=x,b.onerror=D}),an(d,"link",i),r.instance=d}o.stylesheets===null&&(o.stylesheets=new Map),o.stylesheets.set(r,e),(e=r.state.preload)&&(r.state.loading&3)===0&&(o.count++,r=gc.bind(o),e.addEventListener("load",r),e.addEventListener("error",r))}}function GS(){if(Eo===null)throw Error(l(475));var e=Eo;return e.stylesheets&&e.count===0&&Cf(e,e.stylesheets),0<e.count?function(r){var i=setTimeout(function(){if(e.stylesheets&&Cf(e,e.stylesheets),e.unsuspend){var o=e.unsuspend;e.unsuspend=null,o()}},6e4);return e.unsuspend=r,function(){e.unsuspend=null,clearTimeout(i)}}:null}function gc(){if(this.count--,this.count===0){if(this.stylesheets)Cf(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var vc=null;function Cf(e,r){e.stylesheets=null,e.unsuspend!==null&&(e.count++,vc=new Map,r.forEach($S,e),vc=null,gc.call(e))}function $S(e,r){if(!(r.state.loading&4)){var i=vc.get(e);if(i)var o=i.get(null);else{i=new Map,vc.set(e,i);for(var c=e.querySelectorAll("link[data-precedence],style[data-precedence]"),d=0;d<c.length;d++){var b=c[d];(b.nodeName==="LINK"||b.getAttribute("media")!=="not all")&&(i.set(b.dataset.precedence,b),o=b)}o&&i.set(null,o)}c=r.instance,b=c.getAttribute("data-precedence"),d=i.get(b)||o,d===o&&i.set(null,c),i.set(b,c),this.count++,o=gc.bind(this),c.addEventListener("load",o),c.addEventListener("error",o),d?d.parentNode.insertBefore(c,d.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(c,e.firstChild)),r.state.loading|=4}}var _o={$$typeof:ae,Provider:null,Consumer:null,_currentValue:ce,_currentValue2:ce,_threadCount:0};function YS(e,r,i,o,c,d,b,x){this.tag=1,this.containerInfo=e,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Cn(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Cn(0),this.hiddenUpdates=Cn(null),this.identifierPrefix=o,this.onUncaughtError=c,this.onCaughtError=d,this.onRecoverableError=b,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=x,this.incompleteTransitions=new Map}function Kv(e,r,i,o,c,d,b,x,D,K,de,me){return e=new YS(e,r,i,b,x,D,K,me),r=1,d===!0&&(r|=24),d=Rn(3,null,null,r),e.current=d,d.stateNode=e,r=ld(),r.refCount++,e.pooledCache=r,r.refCount++,d.memoizedState={element:o,isDehydrated:i,cache:r},ud(d),e}function Wv(e){return e?(e=Pi,e):Pi}function Qv(e,r,i,o,c,d){c=Wv(c),o.context===null?o.context=c:o.pendingContext=c,o=da(r),o.payload={element:i},d=d===void 0?null:d,d!==null&&(o.callback=d),i=fa(e,o,r),i!==null&&(kn(i,e,r),Jl(i,e,r))}function Zv(e,r){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var i=e.retryLane;e.retryLane=i!==0&&i<r?i:r}}function Of(e,r){Zv(e,r),(e=e.alternate)&&Zv(e,r)}function Jv(e){if(e.tag===13){var r=zi(e,67108864);r!==null&&kn(r,e,67108864),Of(e,67108864)}}var yc=!0;function XS(e,r,i,o){var c=R.T;R.T=null;var d=y.p;try{y.p=2,Af(e,r,i,o)}finally{y.p=d,R.T=c}}function FS(e,r,i,o){var c=R.T;R.T=null;var d=y.p;try{y.p=8,Af(e,r,i,o)}finally{y.p=d,R.T=c}}function Af(e,r,i,o){if(yc){var c=Rf(o);if(c===null)pf(e,r,o,bc,i),ty(e,o);else if(WS(c,e,r,i,o))o.stopPropagation();else if(ty(e,o),r&4&&-1<KS.indexOf(e)){for(;c!==null;){var d=et(c);if(d!==null)switch(d.tag){case 3:if(d=d.stateNode,d.current.memoizedState.isDehydrated){var b=pn(d.pendingLanes);if(b!==0){var x=d;for(x.pendingLanes|=2,x.entangledLanes|=2;b;){var D=1<<31-Ot(b);x.entanglements[1]|=D,b&=~D}Tr(d),(ct&6)===0&&(nc=Oe()+500,vo(0))}}break;case 13:x=zi(d,2),x!==null&&kn(x,d,2),ac(),Of(d,2)}if(d=Rf(o),d===null&&pf(e,r,o,bc,i),d===c)break;c=d}c!==null&&o.stopPropagation()}else pf(e,r,o,null,i)}}function Rf(e){return e=ju(e),Nf(e)}var bc=null;function Nf(e){if(bc=null,e=Ne(e),e!==null){var r=u(e);if(r===null)e=null;else{var i=r.tag;if(i===13){if(e=f(r),e!==null)return e;e=null}else if(i===3){if(r.stateNode.current.memoizedState.isDehydrated)return r.tag===3?r.stateNode.containerInfo:null;e=null}else r!==e&&(e=null)}}return bc=e,null}function ey(e){switch(e){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(at()){case Be:return 2;case ft:return 8;case wt:case Mt:return 32;case Vt:return 268435456;default:return 32}default:return 32}}var Mf=!1,Ta=null,Ca=null,Oa=null,To=new Map,Co=new Map,Aa=[],KS="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 ty(e,r){switch(e){case"focusin":case"focusout":Ta=null;break;case"dragenter":case"dragleave":Ca=null;break;case"mouseover":case"mouseout":Oa=null;break;case"pointerover":case"pointerout":To.delete(r.pointerId);break;case"gotpointercapture":case"lostpointercapture":Co.delete(r.pointerId)}}function Oo(e,r,i,o,c,d){return e===null||e.nativeEvent!==d?(e={blockedOn:r,domEventName:i,eventSystemFlags:o,nativeEvent:d,targetContainers:[c]},r!==null&&(r=et(r),r!==null&&Jv(r)),e):(e.eventSystemFlags|=o,r=e.targetContainers,c!==null&&r.indexOf(c)===-1&&r.push(c),e)}function WS(e,r,i,o,c){switch(r){case"focusin":return Ta=Oo(Ta,e,r,i,o,c),!0;case"dragenter":return Ca=Oo(Ca,e,r,i,o,c),!0;case"mouseover":return Oa=Oo(Oa,e,r,i,o,c),!0;case"pointerover":var d=c.pointerId;return To.set(d,Oo(To.get(d)||null,e,r,i,o,c)),!0;case"gotpointercapture":return d=c.pointerId,Co.set(d,Oo(Co.get(d)||null,e,r,i,o,c)),!0}return!1}function ny(e){var r=Ne(e.target);if(r!==null){var i=u(r);if(i!==null){if(r=i.tag,r===13){if(r=f(i),r!==null){e.blockedOn=r,$(e.priority,function(){if(i.tag===13){var o=jn();o=Re(o);var c=zi(i,o);c!==null&&kn(c,i,o),Of(i,o)}});return}}else if(r===3&&i.stateNode.current.memoizedState.isDehydrated){e.blockedOn=i.tag===3?i.stateNode.containerInfo:null;return}}}e.blockedOn=null}function wc(e){if(e.blockedOn!==null)return!1;for(var r=e.targetContainers;0<r.length;){var i=Rf(e.nativeEvent);if(i===null){i=e.nativeEvent;var o=new i.constructor(i.type,i);Du=o,i.target.dispatchEvent(o),Du=null}else return r=et(i),r!==null&&Jv(r),e.blockedOn=i,!1;r.shift()}return!0}
49function ry(e,r,i){wc(e)&&i.delete(r)}function QS(){Mf=!1,Ta!==null&&wc(Ta)&&(Ta=null),Ca!==null&&wc(Ca)&&(Ca=null),Oa!==null&&wc(Oa)&&(Oa=null),To.forEach(ry),Co.forEach(ry)}function Sc(e,r){e.blockedOn===r&&(e.blockedOn=null,Mf||(Mf=!0,t.unstable_scheduleCallback(t.unstable_NormalPriority,QS)))}var xc=null;function ay(e){xc!==e&&(xc=e,t.unstable_scheduleCallback(t.unstable_NormalPriority,function(){xc===e&&(xc=null);for(var r=0;r<e.length;r+=3){var i=e[r],o=e[r+1],c=e[r+2];if(typeof o!="function"){if(Nf(o||i)===null)continue;break}var d=et(i);d!==null&&(e.splice(r,3),r-=3,Rd(d,{pending:!0,data:c,method:i.method,action:o},o,c))}}))}function Ao(e){function r(D){return Sc(D,e)}Ta!==null&&Sc(Ta,e),Ca!==null&&Sc(Ca,e),Oa!==null&&Sc(Oa,e),To.forEach(r),Co.forEach(r);for(var i=0;i<Aa.length;i++){var o=Aa[i];o.blockedOn===e&&(o.blockedOn=null)}for(;0<Aa.length&&(i=Aa[0],i.blockedOn===null);)ny(i),i.blockedOn===null&&Aa.shift();if(i=(e.ownerDocument||e).$$reactFormReplay,i!=null)for(o=0;o<i.length;o+=3){var c=i[o],d=i[o+1],b=c[oe]||null;if(typeof d=="function")b||ay(i);else if(b){var x=null;if(d&&d.hasAttribute("formAction")){if(c=d,b=d[oe]||null)x=b.formAction;else if(Nf(c)!==null)continue}else x=b.action;typeof x=="function"?i[o+1]=x:(i.splice(o,3),o-=3),ay(i)}}}function Df(e){this._internalRoot=e}Ec.prototype.render=Df.prototype.render=function(e){var r=this._internalRoot;if(r===null)throw Error(l(409));var i=r.current,o=jn();Qv(i,o,e,r,null,null)},Ec.prototype.unmount=Df.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var r=e.containerInfo;Qv(e.current,2,null,e,null,null),ac(),r[ge]=null}};function Ec(e){this._internalRoot=e}Ec.prototype.unstable_scheduleHydration=function(e){if(e){var r=k();e={blockedOn:null,target:e,priority:r};for(var i=0;i<Aa.length&&r!==0&&r<Aa[i].priority;i++);Aa.splice(i,0,e),i===0&&ny(e)}};var iy=n.version;if(iy!=="19.1.0")throw Error(l(527,iy,"19.1.0"));y.findDOMNode=function(e){var r=e._reactInternals;if(r===void 0)throw typeof e.render=="function"?Error(l(188)):(e=Object.keys(e).join(","),Error(l(268,e)));return e=h(r),e=e!==null?v(e):null,e=e===null?null:e.stateNode,e};var ZS={bundleType:0,version:"19.1.0",rendererPackageName:"react-dom",currentDispatcherRef:R,reconcilerVersion:"19.1.0"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var _c=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!_c.isDisabled&&_c.supportsFiber)try{Tt=_c.inject(ZS),Xe=_c}catch{}}return No.createRoot=function(e,r){if(!s(e))throw Error(l(299));var i=!1,o="",c=Sg,d=xg,b=Eg,x=null;return r!=null&&(r.unstable_strictMode===!0&&(i=!0),r.identifierPrefix!==void 0&&(o=r.identifierPrefix),r.onUncaughtError!==void 0&&(c=r.onUncaughtError),r.onCaughtError!==void 0&&(d=r.onCaughtError),r.onRecoverableError!==void 0&&(b=r.onRecoverableError),r.unstable_transitionCallbacks!==void 0&&(x=r.unstable_transitionCallbacks)),r=Kv(e,1,!1,null,null,i,o,c,d,b,x,null),e[ge]=r.current,mf(e),new Df(r)},No.hydrateRoot=function(e,r,i){if(!s(e))throw Error(l(299));var o=!1,c="",d=Sg,b=xg,x=Eg,D=null,K=null;return i!=null&&(i.unstable_strictMode===!0&&(o=!0),i.identifierPrefix!==void 0&&(c=i.identifierPrefix),i.onUncaughtError!==void 0&&(d=i.onUncaughtError),i.onCaughtError!==void 0&&(b=i.onCaughtError),i.onRecoverableError!==void 0&&(x=i.onRecoverableError),i.unstable_transitionCallbacks!==void 0&&(D=i.unstable_transitionCallbacks),i.formState!==void 0&&(K=i.formState)),r=Kv(e,1,!0,r,i??null,o,c,d,b,x,D,K),r.context=Wv(null),i=r.current,o=jn(),o=Re(o),c=da(o),c.callback=null,fa(i,c,o),i=o,r.current.lanes=i,On(r,i),Tr(r),e[ge]=r.current,mf(e),new Ec(r)},No.version="19.1.0",No}var py;function sx(){if(py)return Lf.exports;py=1;function t(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(n){console.error(n)}}return t(),Lf.exports=ox(),Lf.exports}var cx=sx(),Mo={},gy;function ux(){if(gy)return Mo;gy=1,Object.defineProperty(Mo,"__esModule",{value:!0}),Mo.parse=f,Mo.serialize=v;const t=/^[\u0021-\u003A\u003C\u003E-\u007E]+$/,n=/^[\u0021-\u003A\u003C-\u007E]*$/,a=/^([.]?[a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)([.][a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?)*$/i,l=/^[\u0020-\u003A\u003D-\u007E]*$/,s=Object.prototype.toString,u=(()=>{const _=function(){};return _.prototype=Object.create(null),_})();function f(_,A){const j=new u,I=_.length;if(I<2)return j;const Z=(A==null?void 0:A.decode)||w;let V=0;do{const ee=_.indexOf("=",V);if(ee===-1)break;const ae=_.indexOf(";",V),he=ae===-1?I:ae;if(ee>he){V=_.lastIndexOf(";",ee-1)+1;continue}const O=p(_,V,ee),E=h(_,ee,O),P=_.slice(O,E);if(j[P]===void 0){let re=p(_,ee+1,he),N=h(_,he,re);const T=Z(_.slice(re,N));j[P]=T}V=he+1}while(V<I);return j}function p(_,A,j){do{const I=_.charCodeAt(A);if(I!==32&&I!==9)return A}while(++A<j);return j}function h(_,A,j){for(;A>j;){const I=_.charCodeAt(--A);if(I!==32&&I!==9)return A+1}return j}function v(_,A,j){const I=(j==null?void 0:j.encode)||encodeURIComponent;
49if(!t.test(_))throw new TypeError(`argument name is invalid: ${_}`);const Z=I(A);if(!n.test(Z))throw new TypeError(`argument val is invalid: ${A}`);let V=_+"="+Z;if(!j)return V;if(j.maxAge!==void 0){if(!Number.isInteger(j.maxAge))throw new TypeError(`option maxAge is invalid: ${j.maxAge}`);V+="; Max-Age="+j.maxAge}if(j.domain){if(!a.test(j.domain))throw new TypeError(`option domain is invalid: ${j.domain}`);V+="; Domain="+j.domain}if(j.path){if(!l.test(j.path))throw new TypeError(`option path is invalid: ${j.path}`);V+="; Path="+j.path}if(j.expires){if(!C(j.expires)||!Number.isFinite(j.expires.valueOf()))throw new TypeError(`option expires is invalid: ${j.expires}`);V+="; Expires="+j.expires.toUTCString()}if(j.httpOnly&&(V+="; HttpOnly"),j.secure&&(V+="; Secure"),j.partitioned&&(V+="; Partitioned"),j.priority)switch(typeof j.priority=="string"?j.priority.toLowerCase():void 0){case"low":V+="; Priority=Low";break;case"medium":V+="; Priority=Medium";break;case"high":V+="; Priority=High";break;default:throw new TypeError(`option priority is invali
49d: ${j.priority}`)}if(j.sameSite)switch(typeof j.sameSite=="string"?j.sameSite.toLowerCase():j.sameSite){case!0:case"strict":V+="; SameSite=Strict";break;case"lax":V+="; SameSite=Lax";break;case"none":V+="; SameSite=None";break;default:throw new TypeError(`option sameSite is invalid: ${j.sameSite}`)}return V}function w(_){if(_.indexOf("%")===-1)return _;try{return decodeURIComponent(_)}catch{return _}}function C(_){return s.call(_)==="[object Date]"}return Mo}ux();/** 50 * react-router v7.6.0 51 * 52 * Copyright (c) Remix Software Inc. 53 * 54 * This source code is licensed under the MIT license found in the 55 * LICENSE.md file in the root directory of this source tree. 56 * 57 * @license MIT 58 */var hb=t=>{throw TypeError(t)},dx=(t,n,a)=>n.has(t)||hb("Cannot "+a),Uf=(t,n,a)=>(dx(t,n,"read from private field"),a?a.call(t):n.get(t)),fx=(t,n,a)=>n.has(t)?hb("Cannot add the same private member more than once"):n instanceof WeakSet?n.add(t):n.set(t,a),vy="popstate";function hx(t={}){function n(l,s){let{pathname:u,search:f,hash:p}=l.location;return Go("",{pathname:u,search:f,hash:p},s.state&&s.state.usr||null,s.state&&s.state.key||"default")}function a(l,s){return typeof s=="string"?s:Ha(s)}return px(n,a,null,t)}function Qe(t,n){if(t===!1||t===null||typeof t>"u")throw new Error(n)}function It(t,n){if(!t){typeof console<"u"&&console.warn(n);try{throw new Error(n)}catch{}}}function mx(){return Math.random().toString(36).substring(2,10)}function yy(t,n){return{usr:t.state,key:t.key,idx:n}}function Go(t,n,a=null,l){return{pathname:typeof t=="string"?t:t.pathname,search:"",hash:"",...typeof n=="string"?qa(n):n,state:a,key:n&&n.key||l||mx()}}function Ha({pathname:t="/",search:n="",hash:a=""}){return n&&n!=="?"&&(t+=n.charAt(0)==="?"?n:"?"+n),a&&a!=="#"&&(t+=a.charAt(0)==="#"?a:"#"+a),t}function qa(t){let n={};if(t){let a=t.indexOf("#");a>=0&&(n.hash=t.substring(a),t=t.substring(0,a));let l=t.indexOf("?");l>=0&&(n.search=t.substring(l),t=t.substring(0,l)),t&&(n.pathname=t)}return n}function px(t,n,a,l={}){let{window:s=document.defaultView,v5Compat:u=!1}=l,f=s.history,p="POP",h=null,v=w();v==null&&(v=0,f.replaceState({...f.state,idx:v},""));function w(){return(f.state||{idx:null}).idx}function C(){p="POP";let Z=w(),V=Z==null?null:Z-v;v=Z,h&&h({action:p,location:I.location,delta:V})}function _(Z,V){p="PUSH";let ee=Go(I.location,Z,V);v=w()+1;let ae=yy(ee,v),he=I.createHref(ee);try{f.pushState(ae,"",he)}catch(O){if(O instanceof DOMException&&O.name==="DataCloneError")throw O;s.location.assign(he)}u&&h&&h({action:p,location:I.location,delta:1})}function A(Z,V){p="REPLACE";let ee=Go(I.location,Z,V);v=w();let ae=yy(ee,v),he=I.createHref(ee);f.replaceState(ae,"",he),u&&h&&h({action:p,location:I.location,delta:0})}function j(Z){return mb(Z)}let I={get action(){return p},get location(){return t(s,f)},listen(Z){if(h)throw new Error("A history only accepts one active listener");return s.addEventListener(vy,C),h=Z,()=>{s.removeEventListener(vy,C),h=null}},createHref(Z){return n(s,Z)},createURL:j,encodeLocation(Z){let V=j(Z);return{pathname:V.pathname,search:V.search,hash:V.hash}},push:_,replace:A,go(Z){return f.go(Z)}};return I}function mb(t,n=!1){let a="http://localhost";
58typeof window<"u"&&(a=window.location.origin!=="null"?window.location.origin:window.location.href),Qe(a,"No window.location.(origin|href) available to create URL");let l=typeof t=="string"?t:Ha(t);return l=l.replace(/ $/,"%20"),!n&&l.startsWith("//")&&(l=a+l),new URL(l,a)}var Io,by=class{constructor(t){if(fx(this,Io,new Map),t)for(let[n,a]of t)this.set(n,a)}get(t){if(Uf(this,Io).has(t))return Uf(this,Io).get(t);if(t.defaultValue!==void 0)return t.defaultValue;throw new Error("No value found for context")}set(t,n){Uf(this,Io).set(t,n)}};Io=new WeakMap;var gx=new Set(["lazy","caseSensitive","path","id","index","children"]);function vx(t){return gx.has(t)}var yx=new Set(["lazy","caseSensitive","path","id","index","unstable_middleware","children"]);function bx(t){return yx.has(t)}function wx(t){return t.index===!0}function Ic(t,n,a=[],l={}){return t.map((s,u)=>{let f=[...a,String(u)],p=typeof s.id=="string"?s.id:f.join("-");if(Qe(s.index!==!0||!s.children,"Cannot specify children on an index route"),Qe(!l[p],`Found a route id collision on i
58d "${p}". Route id's must be globally unique within Data Router usages`),wx(s)){let h={...s,...n(s),id:p};return l[p]=h,h}else{let h={...s,...n(s),id:p,children:void 0};return l[p]=h,s.children&&(h.children=Ic(s.children,n,f,l)),h}})}function Da(t,n,a="/"){return Mc(t,n,a,!1)}function Mc(t,n,a,l){let s=typeof n=="string"?qa(n):n,u=tr(s.pathname||"/",a);if(u==null)return null;let f=pb(t);xx(f);let p=null;for(let h=0;p==null&&h<f.length;++h){let v=jx(u);p=Mx(f[h],v,l)}return p}function Sx(t,n){let{route:a,pathname:l,params:s}=t;return{id:a.id,pathname:l,params:s,data:n[a.id],handle:a.handle}}function pb(t,n=[],a=[],l=""){let s=(u,f,p)=>{let h={relativePath:p===void 0?u.path||"":p,caseSensitive:u.caseSensitive===!0,childrenIndex:f,route:u};h.relativePath.startsWith("/")&&(Qe(h.relativePath.startsWith(l),`Absolute route path "${h.relativePath}" nested under path "${l}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),h.relativePath=h.relativePath.slice(l.length));let v=Ar([l,h.relativePath]),w=a.concat(h);u.children&&u.children.length>0&&(Qe(u.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${v}".`),pb(u.children,n,w,v)),!(u.path==null&&!u.index)&&n.push({path:v,score:Rx(v,u.index),routesMeta:w})};return t.forEach((u,f)=>{var p;if(u.path===""||!((p=u.path)!=null&&p.includes("?")))s(u,f);else for(let h of gb(u.path))s(u,f,h)}),n}function gb(t){let n=t.split("/");if(n.length===0)return[];let[a,...l]=n,s=a.endsWith("?"),u=a.replace(/\?$/,"");if(l.length===0)return s?[u,""]:[u];let f=gb(l.join("/")),p=[];return p.push(...f.map(h=>h===""?u:[u,h].join("/"))),s&&p.push(...f),p.map(h=>t.startsWith("/")&&h===""?"/":h)}function xx(t){t.sort((n,a)=>n.score!==a.score?a.score-n.score:Nx(n.routesMeta.map(l=>l.childrenIndex),a.routesMeta.map(l=>l.childrenIndex)))}var Ex=/^:[\w-]+$/,_x=3,Tx=2,Cx=1,Ox=10,Ax=-2,wy=t=>t==="*";function Rx(t,n){let a=t.split("/"),l=a.length;return a.some(wy)&&(l+=Ax),n&&(l+=Tx),a.filter(s=>!wy(s)).reduce((s,u)=>s+(Ex.test(u)?_x:u===""?Cx:Ox),l)}function Nx(t,n){return t.length===n.length&&t.slice(0,-1).every((l,s)=>l===n[s])?t[t.length-1]-n[n.length-1]:0}function Mx(t,n,a=!1){let{routesMeta:l}=t,s={},u="/",f=[];for(let p=0;p<l.length;++p){let h=l[p],v=p===l.length-1,w=u==="/"?n:n.slice(u.length)||"/",C=Uc({path:h.relativePath,caseSensitive:h.caseSensitive,end:v},w),_=h.route;if(!C&&v&&a&&!l[l.length-1].route.index&&(C=Uc({path:h.relativePath,caseSensitive:h.caseSensitive,end:!1},w)),!C)return null;
58Object.assign(s,C.params),f.push({params:s,pathname:Ar([u,C.pathname]),pathnameBase:zx(Ar([u,C.pathnameBase])),route:_}),C.pathnameBase!=="/"&&(u=Ar([u,C.pathnameBase]))}return f}function Uc(t,n){typeof t=="string"&&(t={path:t,caseSensitive:!1,end:!0});let[a,l]=Dx(t.path,t.caseSensitive,t.end),s=n.match(a);if(!s)return null;let u=s[0],f=u.replace(/(.)\/+$/,"$1"),p=s.slice(1);return{params:l.reduce((v,{paramName:w,isOptional:C},_)=>{if(w==="*"){let j=p[_]||"";f=u.slice(0,u.length-j.length).replace(/(.)\/+$/,"$1")}const A=p[_];return C&&!A?v[w]=void 0:v[w]=(A||"").replace(/%2F/g,"/"),v},{}),pathname:u,pathnameBase:f,pattern:t}}function Dx(t,n=!1,a=!0){It(t==="*"||!t.endsWith("*")||t.endsWith("/*"),`Route path "${t}" will be treated as if it were "${t.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${t.replace(/\*$/,"/*")}".`);let l=[],s="^"+t.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(f,p,h)=>(l.push({paramName:p,isOptional:h!=null}),h?"/?([^\\/]+)?":"/([^\\/]+)"));return t.endsWith("*")?(l.push({paramName:"*"}),s+=t==="*"||t==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):a?s+="\\/*$":t!==""&&t!=="/"&&(s+="(?:(?=\\/|$))"),[new RegExp(s,n?void 0:"i"),l]}function jx(t){try{return t.split("/").map(n=>decodeURIComponent(n).replace(/\//g,"%2F")).join("/")}catch(n){return It(!1,`The URL path "${t}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${n}).`),t}}function tr(t,n){if(n==="/")return t;if(!t.toLowerCase().startsWith(n.toLowerCase()))return null;let a=n.endsWith("/")?n.length-1:n.length,l=t.charAt(a);return l&&l!=="/"?null:t.slice(a)||"/"}function kx(t,n="/"){let{pathname:a,search:l="",hash:s=""}=typeof t=="string"?qa(t):t;return{pathname:a?a.startsWith("/")?a:Lx(a,n):n,search:Px(l),hash:Ix(s)}}function Lx(t,n){let a=n.replace(/\/+$/,"").split("/");return t.split("/").forEach(s=>{s===".."?a.length>1&&a.pop():s!=="."&&a.push(s)}),a.length>1?a.join("/"):"/"}function Hf(t,n,a,l){return`Cannot include a '${t}' character in a manually specified \`to.${n}\` field [${JSON.stringify(l)}]. Please separate it out to the \`to.${a}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function vb(t){return t.filter((n,a)=>a===0||n.route.path&&n.route.path.length>0)}function fu(t){let n=vb(t);return n.map((a,l)=>l===n.length-1?a.pathname:a.pathnameBase)}function hu(t,n,a,l=!1){let s;typeof t=="string"?s=qa(t):(s={...t},Qe(!s.pathname||!s.pathname.includes("?"),Hf("?","pathname","search",s)),Qe(!s.pathname||!s.pathname.includes("#"),Hf("#","pathname","hash",s)),Qe(!s.search||!s.search.includes("#"),Hf("#","search","hash",s)));let u=t===""||s.pathname==="",f=u?"/":s.pathname,p;if(f==null)p=a;else{let C=n.length-1;if(!l&&f.startsWith("..")){let _=f.split("/");for(;_[0]==="..";)_.shift(),C-=1;s.pathname=_.join("/")}p=C>=0?n[C]:"/"}let h=kx(s,p),v=f&&f!=="/"&&f.endsWith("/"),w=(u||f===".")&&a.endsWith("/");return!h.pathname.endsWith("/")&&(v||w)&&(h.pathname+="/"),h}var Ar=t=>t.join("/").replace(/\/\/+/g,"/"),zx=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),Px=t=>!t||t==="?"?"":t.startsWith("?")?t:"?"+t,Ix=t=>!t||t==="#"?"":t.startsWith("#")?t:"#"+t,Hc=class{constructor(t,n,a,l=!1){this.status=t,this.statusText=n||"",this.internal=l,a instanceof Error?(this.data=a.toString(),this.error=a):this.data=a}};function $o(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.internal=="boolean"&&"data"in t}var yb=["POST","PUT","PATCH","DELETE"],Ux=new Set(yb),Hx=["GET",...yb],Bx=new Set(Hx),qx=new Set([301,302,303,307,308]),Vx=new Set([307,308]),Bf={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Gx={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Do={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Uh=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,$x=t=>({hasErrorBoundary:!!t.hasErrorBoundary}),bb="remix-router-transitions",wb=Symbol("ResetLoaderData");function Yx(t){const n=t.window?t.window:typeof window<"u"?window:void 0,a=typeof n<"u"&&typeof n.document<"u"&&typeof n.document.createElement<"u";Qe(t.routes.length>0,"You must provide a non-empty routes array to createRouter");let l=t.hydrationRouteProperties||[],s=t.mapRouteProperties||$x,u={},f=Ic(t.routes,s,void 0,u),p,h=t.basename||"/",v=t.dataStrategy||Qx,w={unstable_middleware:!1,...t.future},C=null,_=new Set,A=null,j=null,I=null,Z=t.hydrationData!=null,V=Da(f,t.history.location,h),ee=!1,ae=null,he;if(V==null&&!t.patchRoutesOnNavigation){let k=Jn(404,{pathname:t.history.location.pathname}),{matches:$,route:L}=Dy(f);he=!0,V=$,ae={[L.id]:k}}else if(V&&!t.hydrationData&&St(V,f,t.history.location.pathname).active&&(V=null),V)if(V.some(k=>k.route.lazy))he=!1;else if(!V.some(k=>k.route.loader))he=!0;else{let k=t.hydrationData?t.hydrationData.loaderData:null,$=t.hydrationData?t.hydrationData.errors:null;if($){let L=V.findIndex(Q=>$[Q.route.id]!==void 0);he=V.slice(0,L+1).every(Q=>!yh(Q.route,k,$))}else he=V.every(L=>!yh(L.route,k,$))}else{he=!1,V=[];let k=St(null,f,t.history.location.pathname);k.active&&k.matches&&(ee=!0,V=k.matches)}let O,E={historyAction:t.history.action,location:t.history.location,matches:V,initialized:he,navigation:Bf,restoreScrollPosition:t.hydrationData!=null?!1:null,preventScrollReset:!1,revalidation:"idle",loaderData:t.hydrationData&&t.hydrationData.loaderData||{},actionData:t.hydrationData&&t.hydrationData.actionData||null,errors:t.hydrationData&&t.hydrationData.errors||ae,fetchers:new Map,blockers:new Map},P="POP",re=!1,N,T=!1,F=new Map,ne=null,H=!1,B=!1,le=new Set,R=new Map,y=0,ce=-1,M=new Map,m=new Set,S=new Map,U=new Map,Y=new Set,W=new Map,ue,ie=null;function pe(){if(C=t.history.listen(({action:k,location:$,delta:L})=>{if(ue){ue(),ue=void 0;return}It(W.size===0||L!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let Q=wr({currentLocation:E.location,nextLocation:$,historyAction:k});if(Q&&L!=null){let oe=new Promise(ge=>{ue=ge});t.history.go(L*-1),tn(Q,{state:"blocked",location:$,proceed(){tn(Q,{state:"proceeding",proceed:void 0,reset:void 0,location:$}),oe.then(()=>t.history.go(L))},reset(){let ge=new Map(E.blockers);ge.set(Q,Do),Ee({blockers:ge})}});return}return De(k,$)}),a){sE(n,F);let k=()=>cE(n,F);n.addEventListener("pagehide",k),ne=()=>n.removeEventListener("pagehide",k)}return E.initialized||De("POP",E.location,{initialHydration:!0}),O}function ye(){C&&C(),ne&&ne(),_.clear(),N&&N.abort(),E.fetchers.forEac
58h((k,$)=>Ot($)),E.blockers.forEach((k,$)=>_n($))}function Me(k){return _.add(k),()=>_.delete(k)}function Ee(k,$={}){E={...E,...k};let L=[],Q=[];E.fetchers.forEach((oe,ge)=>{oe.state==="idle"&&(Y.has(ge)?L.push(ge):Q.push(ge))}),Y.forEach(oe=>{!E.fetchers.has(oe)&&!R.has(oe)&&L.push(oe)}),[..._].forEach(oe=>oe(E,{deletedFetchers:L,viewTransitionOpts:$.viewTransitionOpts,flushSync:$.flushSync===!0})),L.forEach(oe=>Ot(oe)),Q.forEach(oe=>E.fetchers.delete(oe))}function ze(k,$,{flushSync:L}={}){var Se,Ce;let Q=E.actionData!=null&&E.navigation.formMethod!=null&&zn(E.navigation.formMethod)&&E.navigation.state==="loading"&&((Se=k.state)==null?void 0:Se._isRedirect)!==!0,oe;$.actionData?Object.keys($.actionData).length>0?oe=$.actionData:oe=null:Q?oe=E.actionData:oe=null;let ge=$.loaderData?Ny(E.loaderData,$.loaderData,$.matches||[],$.errors):E.loaderData,xe=E.blockers;xe.size>0&&(xe=new Map(xe),xe.forEach((ve,Ne)=>xe.set(Ne,Do)));let be=re===!0||E.navigation.formMethod!=null&&zn(E.navigation.formMethod)&&((Ce=k.state)==null?void 0:Ce._isRedirect)!==!0;p&&(f=p,p=void 0),H||P==="POP"||(P==="PUSH"?t.history.push(k,k.state):P==="REPLACE"&&t.history.replace(k,k.state));let _e;if(P==="POP"){let ve=F.get(E.location.pathname);ve&&ve.has(k.pathname)?_e={currentLocation:E.location,nextLocation:k}:F.has(k.pathname)&&(_e={currentLocation:k,nextLocation:E.location})}else if(T){let ve=F.get(E.location.pathname);ve?ve.add(k.pathname):(ve=new Set([k.pathname]),F.set(E.location.pathname,ve)),_e={currentLocation:E.location,nextLocation:k}}Ee({...$,actionData:oe,loaderData:ge,historyAction:P,location:k,initialized:!0,navigation:Bf,revalidation:"idle",restoreScrollPosition:zr(k,$.matches||E.matches),preventScrollReset:be,blockers:xe},{viewTransitionOpts:_e,flushSync:L===!0}),P="POP",re=!1,T=!1,H=!1,B=!1,ie==null||ie.resolve(),ie=null}async function qe(k,$){if(typeof k=="number"){t.history.go(k);return}let L=vh(E.location,E.matches,h,k,$==null?void 0:$.fromRouteId,$==null?void 0:$.relative),{path:Q,submission:oe,error:ge}=Sy(!1,L,$),xe=E.location,be=Go(E.location,Q,$&&$.state);be={...be,...t.history.encodeLocation(be)};let _e=$&&$.replace!=null?$.replace:void 0,Se="PUSH";_e===!0?Se="REPLACE":_e===!1||oe!=null&&zn(oe.formMethod)&&oe.formAction===E.location.pathname+E.location.search&&(Se="REPLACE");let Ce=$&&"preventScrollReset"in $?$.preventScrollReset===!0:void 0,ve=($&&$.flushSync)===!0,Ne=wr({currentLocation:xe,nextLocation:be,historyAction:Se});if(Ne){tn(Ne,{state:"blocked",location:be,proceed(){tn(Ne,{state:"proceeding",proceed:void 0,reset:void 0,location:be}),qe(k,$)},reset(){let et=new Map(E.blockers);et.set(Ne,Do),Ee({blockers:et})}});return}await De(Se,be,{submission:oe,pendingError:ge,preventScrollReset:Ce,replace:$&&$.replace,enableViewTransition:$&&$.viewTransition,flushSync:ve})}function He(){ie||(ie=uE()),Ft(),Ee({revalidation:"loading"});let k=ie.promise;return E.navigation.state==="submitting"?k:E.navigation.state==="idle"?(De(E.historyAction,E.location,{startUninterruptedRevalidation:!0}),k):(De(P||E.historyAction,E.navigation.location,{overrideNavigation:E.navigation,enableViewTransition:T===!0}),k)}async function De(k,$,L){N&&N.abort(),N=null,P=k,H=(L&&L.startUninterruptedRevalidation)===!0,On(E.location,E.matches),re=(L&&L.preventScrollReset)===!0,T=(L&&L.enableViewTransition)===!0;let Q=p||f,oe=L&&L.overrideNavigation,ge=L!=null&&L.initialHydration&&E.matches&&E.matches.length>0&&!ee?E.matches:Da(Q,$,h),xe=(L&&L.flushSync)===!0;if(ge&&E.initialized&&!B&&rE(E.location,$)&&!(L&&L.submission&&zn(L.submission.formMethod))){ze($,{matches:ge},{flushSync:xe});return}let be=St(ge,Q,$.pathname);if(be.active&&be.matches&&(ge=be.matches),!ge){let{error:xt,notFoundMatches:tt,route:Fe}=Tn($.pathname);ze($,{matches:tt,loaderData:{},errors:{[Fe.id]:xt}},{flushSync:xe});return}N=new AbortController;let _e=ul(t.history,$,N.signal,L&&L.submission),Se=new by(t.unstable_getContext?await t.unstable_getContext():void 0),Ce;if(L&&L.pendingError)Ce=[mi(ge).route.id,{type:"error",error:L.pendingError}];else if(L&&L.submission&&zn(L.submission.formMethod)){let xt=await Ie(_e,$,L.submission,ge,Se,be.active,L&&L.initialHydration===!0,{replace:L.replace,flushSync:xe});if(xt.shortCircuited)return;
58if(xt.pendingActionResult){let[tt,Fe]=xt.pendingActionResult;if(Ln(Fe)&&$o(Fe.error)&&Fe.error.status===404){N=null,ze($,{matches:xt.matches,loaderData:{},errors:{[tt]:Fe.error}});return}}ge=xt.matches||ge,Ce=xt.pendingActionResult,oe=qf($,L.submission),xe=!1,be.active=!1,_e=ul(t.history,_e.url,_e.signal)}let{shortCircuited:ve,matches:Ne,loaderData:et,errors:vt}=await dt(_e,$,ge,Se,be.active,oe,L&&L.submission,L&&L.fetcherSubmission,L&&L.replace,L&&L.initialHydration===!0,xe,Ce);ve||(N=null,ze($,{matches:Ne||ge,...My(Ce),loaderData:et,errors:vt}))}async function Ie(k,$,L,Q,oe,ge,xe,be={}){Ft();let _e=lE($,L);if(Ee({navigation:_e},{flushSync:be.flushSync===!0}),ge){let ve=await Ht(Q,$.pathname,k.signal);if(ve.type==="aborted")return{shortCircuited:!0};if(ve.type==="error"){let Ne=mi(ve.partialMatches).route.id;return{matches:ve.partialMatches,pendingActionResult:[Ne,{type:"error",error:ve.error}]}}else if(ve.matches)Q=ve.matches;else{let{notFoundMatches:Ne,error:et,route:vt}=Tn($.pathname);return{matches:Ne,pendingActionResult:[vt.id,{type:"error",error:et}]}}}let Se,Ce=Uo(Q,$);if(!Ce.route.action&&!Ce.route.lazy)Se={type:"error",error:Jn(405,{method:k.method,pathname:$.pathname,routeId:Ce.route.id})};else{let ve=dl(s,u,k,Q,Ce,xe?[]:l,oe),Ne=await Vt(k,ve,oe,null);if(Se=Ne[Ce.route.id],!Se){for(let et of Q)if(Ne[et.route.id]){Se=Ne[et.route.id];break}}if(k.signal.aborted)return{shortCircuited:!0}}if(pi(Se)){let ve;return be&&be.replace!=null?ve=be.replace:ve=Oy(Se.response.headers.get("Location"),new URL(k.url),h)===E.location.pathname+E.location.search,await Mt(k,Se,!0,{submission:L,replace:ve}),{shortCircuited:!0}}if(Ln(Se)){let ve=mi(Q,Ce.route.id);return(be&&be.replace)!==!0&&(P="PUSH"),{matches:Q,pendingActionResult:[ve.route.id,Se,Ce.route.id]}}return{matches:Q,pendingActionResult:[Ce.route.id,Se]}}async function dt(k,$,L,Q,oe,ge,xe,be,_e,Se,Ce,ve){let Ne=ge||qf($,xe),et=xe||be||ky(Ne),vt=!H&&!Se;if(oe){if(vt){let on=Oe(ve);Ee({navigation:Ne,...on!==void 0?{actionData:on}:{}},{flushSync:Ce})}let Ke=await Ht(L,$.pathname,k.signal);if(Ke.type==="aborted")return{shortCircuited:!0};if(Ke.type==="error"){let on=mi(Ke.partialMatches).route.id;return{matches:Ke.partialMatches,loaderData:{},errors:{[on]:Ke.error}}}else if(Ke.matches)L=Ke.matches;else{let{error:on,notFoundMatches:lr,route:or}=Tn($.pathname);return{matches:lr,loaderData:{},errors:{[or.id]:on}}}}let xt=p||f,{dsMatches:tt,revalidatingFetchers:Fe}=xy(k,Q,s,u,t.history,E,L,et,$,Se?[]:l,Se===!0,B,le,Y,S,m,xt,h,ve);if(ce=++y,!t.dataStrategy&&!tt.some(Ke=>Ke.shouldLoad)&&Fe.length===0){let Ke=Gt();return ze($,{matches:L,loaderData:{},errors:ve&&Ln(ve[1])?{[ve[0]]:ve[1].error}:null,...My(ve),...Ke?{fetchers:new Map(E.fetchers)}:{}},{flushSync:Ce}),{shortCircuited:!0}}if(vt){let Ke={};if(!oe){Ke.navigation=Ne;let on=Oe(ve);on!==void 0&&(Ke.actionData=on)}Fe.length>0&&(Ke.fetchers=at(Fe)),Ee(Ke,{flushSync:Ce})}Fe.forEach(Ke=>{en(Ke.key),Ke.controller&&R.set(Ke.key,Ke.controller)});let ir=()=>Fe.forEach(Ke=>en(Ke.key));N&&N.signal.addEventListener("abort",ir);let{loaderResults:Kt,fetcherResults:Ve}=await Bn(tt,Fe,k,Q);if(k.signal.aborted)return{shortCircuited:!0};N&&N.signal.removeEventListener("abort",ir),Fe.forEach(Ke=>R.delete(Ke.key));let At=Cc(Kt);if(At)return await Mt(k,At.result,!0,{replace:_e}),{shortCircuited:!0};if(At=Cc(Ve),At)return m.add(At.key),await Mt(k,At.result,!0,{replace:_e}),{shortCircuited:!0};let{loaderData:Vn,errors:gn}=Ry(E,L,Kt,ve,Fe,Ve);Se&&E.errors&&(gn={...E.errors,...gn});let Xa=Gt(),ln=ht(ce),Pr=Xa||ln||Fe.length>0;return{matches:L,loaderData:Vn,errors:gn,...Pr?{fetchers:new Map(E.fetchers)}:{}}}function Oe(k){if(k&&!Ln(k[1]))return{[k[0]]:k[1].data};if(E.actionData)return Object.keys(E.actionData).length===0?null:E.actionData}function at(k){return k.forEach($=>{let L=E.fetchers.get($.key),Q=jo(void 0,L?L.data:void 0);E.fetchers.set($.key,Q)}),new Map(E.fetchers)}async function Be(k,$,L,Q){en(k);let oe=(Q&&Q.flushSync)===!0,ge=p||f,xe=vh(E.location,E.matches,h,L,$,Q==null?void 0:Q.relative),be=Da(ge,xe,h),_e=St(be,ge,xe);if(_e.active&&_e.matches&&(be=_e.matches),!be){Xe(k,$,Jn(404,{pathname:xe}),{flushSync:oe});return}let{path:Se,submission:Ce,error:ve}=Sy(!0,xe,Q);if(ve){Xe(k,$,ve,{flushSync:oe});return}let Ne=Uo(be,Se),et=new by(t.unstable_getContext?await t.unstable_getContext():void 0),vt=(Q&&Q.preventScrollReset)===!0;if(Ce&&zn(Ce.formMethod)){await ft(k,$,Se,Ne,be,et,_e.active,oe,vt,Ce);return}S.set(k,{routeId:$,path:Se}),await wt(k,$,Se,Ne,be,et,_e.active,oe,vt,Ce)}async function ft(k,$,L,Q,oe,ge,xe,be,_e,Se){Ft(),S.delete(k);function Ce(Rt){if(!Rt.route.action&&!Rt.route.lazy){let oa=Jn(405,{method:Se.formMethod,pathname:L,routeId:$});return Xe(k,$,oa,{flushSync:be}),!0}return!1}if(!xe&&Ce(Q))return;let ve=E.fetchers.get(k);Tt(k,oE(Se,ve),{flushSync:be});
58let Ne=new AbortController,et=ul(t.history,L,Ne.signal,Se);if(xe){let Rt=await Ht(oe,L,et.signal,k);if(Rt.type==="aborted")return;if(Rt.type==="error"){Xe(k,$,Rt.error,{flushSync:be});return}else if(Rt.matches){if(oe=Rt.matches,Q=Uo(oe,L),Ce(Q))return}else{Xe(k,$,Jn(404,{pathname:L}),{flushSync:be});return}}R.set(k,Ne);let vt=y,xt=dl(s,u,et,oe,Q,l,ge),Fe=(await Vt(et,xt,ge,k))[Q.route.id];if(et.signal.aborted){R.get(k)===Ne&&R.delete(k);return}if(Y.has(k)){if(pi(Fe)||Ln(Fe)){Tt(k,Ma(void 0));return}}else{if(pi(Fe))if(R.delete(k),ce>vt){Tt(k,Ma(void 0));return}else return m.add(k),Tt(k,jo(Se)),Mt(et,Fe,!1,{fetcherSubmission:Se,preventScrollReset:_e});if(Ln(Fe)){Xe(k,$,Fe.error);return}}let ir=E.navigation.location||E.location,Kt=ul(t.history,ir,Ne.signal),Ve=p||f,At=E.navigation.state!=="idle"?Da(Ve,E.navigation.location,h):E.matches;Qe(At,"Didn't find any matches after fetcher action");let Vn=++y;M.set(k,Vn);let gn=jo(Se,Fe.data);E.fetchers.set(k,gn);let{dsMatches:Xa,revalidatingFetchers:ln}=xy(Kt,ge,s,u,t.history,E,At,Se,ir,l,!1,B,le,Y,S,m,Ve,h,[Q.route.id,Fe]);ln.filter(Rt=>Rt.key!==k).forEach(Rt=>{let oa=Rt.key,Ll=E.fetchers.get(oa),vn=jo(void 0,Ll?Ll.data:void 0);E.fetchers.set(oa,vn),en(oa),Rt.controller&&R.set(oa,Rt.controller)}),Ee({fetchers:new Map(E.fetchers)});let Pr=()=>ln.forEach(Rt=>en(Rt.key));Ne.signal.addEventListener("abort",Pr);let{loaderResults:Ke,fetcherResults:on}=await Bn(Xa,ln,Kt,ge);if(Ne.signal.aborted)return;if(Ne.signal.removeEventListener("abort",Pr),M.delete(k),R.delete(k),ln.forEach(Rt=>R.delete(Rt.key)),E.fetchers.has(k)){let Rt=Ma(Fe.data);E.fetchers.set(k,Rt)}let lr=Cc(Ke);if(lr)return Mt(Kt,lr.result,!1,{preventScrollReset:_e});if(lr=Cc(on),lr)return m.add(lr.key),Mt(Kt,lr.result,!1,{preventScrollReset:_e});let{loaderData:or,errors:Fa}=Ry(E,At,Ke,void 0,ln,on);ht(Vn),E.navigation.state==="loading"&&Vn>ce?(Qe(P,"Expected pending action"),N&&N.abort(),ze(E.navigation.location,{matches:At,loaderData:or,errors:Fa,fetchers:new Map(E.fetchers)})):(Ee({errors:Fa,loaderData:Ny(E.loaderData,or,At,Fa),fetchers:new Map(E.fetchers)}),B=!1)}async function wt(k,$,L,Q,oe,ge,xe,be,_e,Se){let Ce=E.fetchers.get(k);Tt(k,jo(Se,Ce?Ce.data:void 0),{flushSync:be});let ve=new AbortController,Ne=ul(t.history,L,ve.signal);if(xe){let Fe=await Ht(oe,L,Ne.signal,k);if(Fe.type==="aborted")return;if(Fe.type==="error"){Xe(k,$,Fe.error,{flushSync:be});return}else if(Fe.matches)oe=Fe.matches,Q=Uo(oe,L);else{Xe(k,$,Jn(404,{pathname:L}),{flushSync:be});return}}R.set(k,ve);let et=y,vt=dl(s,u,Ne,oe,Q,l,ge),tt=(await Vt(Ne,vt,ge,k))[Q.route.id];if(R.get(k)===ve&&R.delete(k),!Ne.signal.aborted){if(Y.has(k)){Tt(k,Ma(void 0));return}if(pi(tt))if(ce>et){Tt(k,Ma(void 0));return}else{m.add(k),await Mt(Ne,tt,!1,{preventScrollReset:_e});return}if(Ln(tt)){Xe(k,$,tt.error);return}Tt(k,Ma(tt.data))}}async function Mt(k,$,L,{submission:Q,fetcherSubmission:oe,preventScrollReset:ge,replace:xe}={}){$.response.headers.has("X-Remix-Revalidate")&&(B=!0);let be=$.response.headers.get("Location");Qe(be,"Expected a Location header on the redirect Response"),be=Oy(be,new URL(k.url),h);let _e=Go(E.location,be,{_isRedirect:!0});if(a){let vt=!1;if($.response.headers.has("X-Remix-Reload-Document"))vt=!0;else if(Uh.test(be)){const xt=mb(be,!0);vt=xt.origin!==n.location.origin||tr(xt.pathname,h)==null}if(vt){xe?n.location.replace(be):n.location.assign(be);return}}N=null;let Se=xe===!0||$.response.headers.has("X-Remix-Replace")?"REPLACE":"PUSH",{formMethod:Ce,formAction:ve,formEncType:Ne}=E.navigation;!Q&&!oe&&Ce&&ve&&Ne&&(Q=ky(E.navigation));let et=Q||oe;if(Vx.has($.response.status)&&et&&zn(et.formMethod))await De(Se,_e,{submission:{...et,formAction:be},preventScrollReset:ge||re,enableViewTransition:L?T:void 0});else{let vt=qf(_e,Q);await De(Se,_e,{overrideNavigation:vt,fetcherSubmission:oe,preventScrollReset:ge||re,enableViewTransition:L?T:void 0})}}async function Vt(k,$,L,Q){let oe,ge={};try{oe=await Zx(v,k,$,Q,L,!1)}catch(xe){return $.filter(be=>be.shouldLoad).forEach(be=>{ge[be.route.id]={type:"error",error:xe}}),ge}if(k.signal.aborted)return ge;for(let[xe,be]of Object.entries(oe))if(aE(be)){let _e=be.result;ge[xe]={type:"redirect",response:tE(_e,k,xe,$,h)}}else ge[xe]=await eE(be);return ge}async function Bn(k,$,L,Q){let oe=Vt(L,k,Q,null),ge=Promise.all($.map(async _e=>{if(_e.matches&&_e.match&&_e.request&&_e.controller){let Ce=(await Vt(_e.request,_e.matches,Q,_e.key))[_e.match.route.id];return{[_e.key]:Ce}}else return Promise.resolve({[_e.key]:{type:"error",error:Jn(404,{pathname:_e.path})}})})),xe=await oe,be=(await ge).reduce((_e,Se)=>Object.assign(_e,Se),{});return{loaderResults:xe,fetcherResults:be}}
vendor: 4,891 bytes, line 58
58function Ft(){B=!0,S.forEach((k,$)=>{R.has($)&&le.add($),en($)})}function Tt(k,$,L={}){E.fetchers.set(k,$),Ee({fetchers:new Map(E.fetchers)},{flushSync:(L&&L.flushSync)===!0})}function Xe(k,$,L,Q={}){let oe=mi(E.matches,$);Ot(k),Ee({errors:{[oe.route.id]:L},fetchers:new Map(E.fetchers)},{flushSync:(Q&&Q.flushSync)===!0})}function Ct(k){return U.set(k,(U.get(k)||0)+1),Y.has(k)&&Y.delete(k),E.fetchers.get(k)||Gx}function Ot(k){let $=E.fetchers.get(k);R.has(k)&&!($&&$.state==="loading"&&M.has(k))&&en(k),S.delete(k),M.delete(k),m.delete(k),Y.delete(k),le.delete(k),E.fetchers.delete(k)}function Ya(k){let $=(U.get(k)||0)-1;$<=0?(U.delete(k),Y.add(k)):U.set(k,$),Ee({fetchers:new Map(E.fetchers)})}function en(k){let $=R.get(k);$&&($.abort(),R.delete(k))}function qn(k){for(let $ of k){let L=Ct($),Q=Ma(L.data);E.fetchers.set($,Q)}}function Gt(){let k=[],$=!1;for(let L of m){let Q=E.fetchers.get(L);Qe(Q,`Expected fetcher: ${L}`),Q.state==="loading"&&(m.delete(L),k.push(L),$=!0)}return qn(k),$}function ht(k){let $=[];for(let[L,Q]of M)if(Q<k){let oe=E.fetchers.get(L);Qe(oe,`Expected fetcher: ${L}`),oe.state==="loading"&&(en(L),M.delete(L),$.push(L))}return qn($),$.length>0}function pn(k,$){let L=E.blockers.get(k)||Do;return W.get(k)!==$&&W.set(k,$),L}function _n(k){E.blockers.delete(k),W.delete(k)}function tn(k,$){let L=E.blockers.get(k)||Do;Qe(L.state==="unblocked"&&$.state==="blocked"||L.state==="blocked"&&$.state==="blocked"||L.state==="blocked"&&$.state==="proceeding"||L.state==="blocked"&&$.state==="unblocked"||L.state==="proceeding"&&$.state==="unblocked",`Invalid blocker state transition: ${L.state} -> ${$.state}`);let Q=new Map(E.blockers);Q.set(k,$),Ee({blockers:Q})}function wr({currentLocation:k,nextLocation:$,historyAction:L}){if(W.size===0)return;W.size>1&&It(!1,"A router only supports one blocker at a time");let Q=Array.from(W.entries()),[oe,ge]=Q[Q.length-1],xe=E.blockers.get(oe);if(!(xe&&xe.state==="proceeding")&&ge({currentLocation:k,nextLocation:$,historyAction:L}))return oe}function Tn(k){let $=Jn(404,{pathname:k}),L=p||f,{matches:Q,route:oe}=Dy(L);return{notFoundMatches:Q,route:oe,error:$}}function ar(k,$,L){if(A=k,I=$,j=L||null,!Z&&E.navigation===Bf){Z=!0;let Q=zr(E.location,E.matches);Q!=null&&Ee({restoreScrollPosition:Q})}return()=>{A=null,I=null,j=null}}function Cn(k,$){return j&&j(k,$.map(Q=>Sx(Q,E.loaderData)))||k.key}function On(k,$){if(A&&I){let L=Cn(k,$);A[L]=I()}}function zr(k,$){if(A){let L=Cn(k,$),Q=A[L];if(typeof Q=="number")return Q}return null}function St(k,$,L){if(t.patchRoutesOnNavigation)if(k){if(Object.keys(k[0].params).length>0)return{active:!0,matches:Mc($,L,h,!0)}}else return{active:!0,matches:Mc($,L,h,!0)||[]};return{active:!1,matches:null}}async function Ht(k,$,L,Q){if(!t.patchRoutesOnNavigation)return{type:"success",matches:k};let oe=k;for(;;){let ge=p==null,xe=p||f,be=u;try{await t.patchRoutesOnNavigation({signal:L,path:$,matches:oe,fetcherKey:Q,patch:(Ce,ve)=>{L.aborted||Ey(Ce,ve,xe,be,s)}})}catch(Ce){return{type:"error",error:Ce,partialMatches:oe}}finally{ge&&!L.aborted&&(f=[...f])}if(L.aborted)return{type:"aborted"};let _e=Da(xe,$,h);if(_e)return{type:"success",matches:_e};let Se=Mc(xe,$,h,!0);if(!Se||oe.length===Se.length&&oe.every((Ce,ve)=>Ce.route.id===Se[ve].route.id))return{type:"success",matches:null};oe=Se}}function Re(k){u={},p=Ic(k,s,void 0,u)}function $e(k,$){let L=p==null;Ey(k,$,p||f,u,s),L&&(f=[...f],Ee({}))}return O={get basename(){return h},get future(){return w},get state(){return E},get routes(){return f},get window(){return n},initialize:pe,subscribe:Me,enableScrollRestoration:ar,navigate:qe,fetch:Be,revalidate:He,createHref:k=>t.history.createHref(k),encodeLocation:k=>t.history.encodeLocation(k),getFetcher:Ct,deleteFetcher:Ya,dispose:ye,getBlocker:pn,deleteBlocker:_n,patchRoutes:$e,_internalFetchControllers:R,_internalSetRoutes:Re},O}function Xx(t){return t!=null&&("formData"in t&&t.formData!=null||"body"in t&&t.body!==void 0)}function vh(t,n,a,l,s,u){let f,p;if(s){f=[];for(let v of n)if(f.push(v),v.route.id===s){p=v;break}}else f=n,p=n[n.length-1];let h=hu(l||".",fu(f),tr(t.pathname,a)||t.pathname,u==="path");if(l==null&&(h.search=t.search,h.hash=t.hash),(l==null||l===""||l===".")&&p){let v=Hh(h.search);if(p.route.index&&!v)h.search=h.search?h.search.replace(/^\?/,"?index&"):"?index";else if(!p.route.index&&v){let w=new URLSearchParams(h.search),C=w.getAll("index");w.delete("index"),C.filter(A=>A).forEach(A=>w.append("index",A));let _=w.toString();h.search=_?`?${_}`:""}}return a!=="/"&&(h.pathname=h.pathname==="/"?a:Ar([a,h.pathname])),Ha(h)}function Sy(t,n,a){if(!a||!Xx(a))return{path:n};if(a.formMethod&&!iE(a.formMethod))return{path:n,error:Jn(405,{method:a.formMethod})};let l=()=>({path:n,error:Jn(400,{type:"invalid-body"})}),u=(a.formMethod||"get").toUpperCase(),f=Cb(n);if(a.body!==void 0){if(a.formEncType==="text/plain"){if(!zn(u))return l();
58let C=typeof a.body=="string"?a.body:a.body instanceof FormData||a.body instanceof URLSearchParams?Array.from(a.body.entries()).reduce((_,[A,j])=>`${_}${A}=${j} 59`,""):String(a.body);return{path:n,submission:{formMethod:u,formAction:f,formEncType:a.formEncType,formData:void 0,json:void 0,text:C}}}else if(a.formEncType==="application/json"){if(!zn(u))return l();try{let C=typeof a.body=="string"?JSON.parse(a.body):a.body;return{path:n,submission:{formMethod:u,formAction:f,formEncType:a.formEncType,formData:void 0,json:C,text:void 0}}}catch{return l()}}}Qe(typeof FormData=="function","FormData is not available in this environment");let p,h;if(a.formData)p=wh(a.formData),h=a.formData;else if(a.body instanceof FormData)p=wh(a.body),h=a.body;else if(a.body instanceof URLSearchParams)p=a.body,h=Ay(p);else if(a.body==null)p=new URLSearchParams,h=new FormData;else try{p=new URLSearchParams(a.body),h=Ay(p)}catch{return l()}let v={formMethod:u,formAction:f,formEncType:a&&a.formEncType||"application/x-www-form-urlencoded",formData:h,json:void 0,text:void 0};if(zn(v.formMethod))return{path:n,submission:v};let w=qa(n);return t&&w.search&&Hh(w.search)&&p.append("index",""),w.search=`?${p}`,{path:Ha(w),submission:v}}function xy(t,n,a,l,s,u,f,p,h,v,w,C,_,A,j,I,Z,V,ee){var ne;let ae=ee?Ln(ee[1])?ee[1].error:ee[1].data:void 0,he=s.createURL(u.location),O=s.createURL(h),E;if(w&&u.errors){let H=Object.keys(u.errors)[0];E=f.findIndex(B=>B.route.id===H)}else if(ee&&Ln(ee[1])){let H=ee[0];E=f.findIndex(B=>B.route.id===H)-1}let P=ee?ee[1].statusCode:void 0,re=P&&P>=400,N={currentUrl:he,currentParams:((ne=u.matches[0])==null?void 0:ne.params)||{},nextUrl:O,nextParams:f[0].params,...p,actionResult:ae,actionStatus:P},T=f.map((H,B)=>{let{route:le}=H,R=null;if(E!=null&&B>E?R=!1:le.lazy?R=!0:le.loader==null?R=!1:w?R=yh(le,u.loaderData,u.errors):Fx(u.loaderData,u.matches[B],H)&&(R=!0),R!==null)return bh(a,l,t,H,v,n,R);let y=re?!1:C||he.pathname+he.search===O.pathname+O.search||he.search!==O.search||Kx(u.matches[B],H),ce={...N,defaultShouldRevalidate:y},M=Bc(H,ce);return bh(a,l,t,H,v,n,M,ce)}),F=[];return j.forEach((H,B)=>{if(w||!f.some(S=>S.route.id===H.routeId)||A.has(B))return;let le=Da(Z,H.path,V);if(!le){F.push({key:B,routeId:H.routeId,path:H.path,matches:null,match:null,request:null,controller:null});return}if(I.has(B))return;let R=u.fetchers.get(B),y=Uo(le,H.path),ce=new AbortController,M=ul(s,H.path,ce.signal),m=null;if(_.has(B))_.delete(B),m=dl(a,l,M,le,y,v,n);else if(R&&R.state!=="idle"&&R.data===void 0)C&&(m=dl(a,l,M,le,y,v,n));else{let S={...N,defaultShouldRevalidate:re?!1:C};Bc(y,S)&&(m=dl(a,l,M,le,y,v,n,S))}m&&F.push({key:B,routeId:H.routeId,path:H.path,matches:m,match:y,request:M,controller:ce})}),{dsMatches:T,revalidatingFetchers:F}}function yh(t,n,a){if(t.lazy)return!0;if(!t.loader)return!1;let l=n!=null&&t.id in n,s=a!=null&&a[t.id]!==void 0;return!l&&s?!1:typeof t.loader=="function"&&t.loader.hydrate===!0?!0:!l&&!s}function Fx(t,n,a){let l=!n||a.route.id!==n.route.id,s=!t.hasOwnProperty(a.route.id);return l||s}function Kx(t,n){let a=t.route.path;return t.pathname!==n.pathname||a!=null&&a.endsWith("*")&&t.params["*"]!==n.params["*"]}function Bc(t,n){if(t.route.shouldRevalidate){let a=t.route.shouldRevalidate(n);if(typeof a=="boolean")return a}return n.defaultShouldRevalidate}function Ey(t,n,a,l,s){let u;if(t){let h=l[t];Qe(h,`No route found to patch children into: routeId = ${t}`),h.children||(h.children=[]),u=h.children}else u=a;let f=n.filter(h=>!u.some(v=>Sb(h,v))),p=Ic(f,s,[t||"_","patch",String((u==null?void 0:u.length)||"0")],l);u.push(...p)}function Sb(t,n){return"id"in t&&"id"in n&&t.id===n.id?!0:t.index===n.index&&t.path===n.path&&t.caseSensitive===n.caseSensitive?(!t.children||t.children.length===0)&&(!n.children||n.children.length===0)?!0:t.children.every((a,l)=>{var s;return(s=n.children)==null?void 0:s.some(u=>Sb(a,u))}):!1}var _y=new WeakMap,xb=({key:t,route:n,manifest:a,mapRouteProperties:l})=>{let s=a[n.id];if(Qe(s,"No route found in manifest"),!s.lazy||typeof s.lazy!="object")return;let u=s.lazy[t];if(!u)return;let f=_y.get(s);f||(f={},_y.set(s,f));let p=f[t];if(p)return p;let h=(async()=>{let v=vx(t),C=s[t]!==void 0&&t!=="hasErrorBoundary";if(v)It(!v,"Route property "+t+" is not a supported lazy route property. This property will be ignored."),f[t]=Prom
59ise.resolve();else if(C)It(!1,`Route "${s.id}" has a static property "${t}" defined. The lazy property will be ignored.`);else{let _=await u();_!=null&&(Object.assign(s,{[t]:_}),Object.assign(s,l(s)))}typeof s.lazy=="object"&&(s.lazy[t]=void 0,Object.values(s.lazy).every(_=>_===void 0)&&(s.lazy=void 0))})();return f[t]=h,h},Ty=new WeakMap;function Wx(t,n,a,l,s){let u=a[t.id];if(Qe(u,"No route found in manifest"),!t.lazy)return{lazyRoutePromise:void 0,lazyHandlerPromise:void 0};if(typeof t.lazy=="function"){let w=Ty.get(u);if(w)return{lazyRoutePromise:w,lazyHandlerPromise:w};let C=(async()=>{Qe(typeof t.lazy=="function","No lazy route function found");let _=await t.lazy(),A={};for(let j in _){let I=_[j];if(I===void 0)continue;let Z=bx(j),ee=u[j]!==void 0&&j!=="hasErrorBoundary";Z?It(!Z,"Route property "+j+" is not a supported property to be returned from a lazy route function. This property will be ignored."):ee?It(!ee,`Route "${u.id}" has a static property "${j}" defined but its lazy function is also returning a value for this property. The lazy route property "${j}" will be ignored.`):A[j]=I}Object.assign(u,A),Object.assign(u,{...l(u),lazy:void 0})})();return Ty.set(u,C),C.catch(()=>{}),{lazyRoutePromise:C,lazyHandlerPromise:C}}let f=Object.keys(t.lazy),p=[],h;for(let w of f){if(s&&s.includes(w))continue;let C=xb({key:w,route:t,manifest:a,mapRouteProperties:l});C&&(p.push(C),w===n&&(h=C))}let v=p.length>0?Promise.all(p).then(()=>{}):void 0;return v==null||v.catch(()=>{}),h==null||h.catch(()=>{}),{lazyRoutePromise:v,lazyHandlerPromise:h}}async function Cy(t){let n=t.matches.filter(s=>s.shouldLoad),a={};return(await Promise.all(n.map(s=>s.resolve()))).forEach((s,u)=>{a[n[u].route.id]=s}),a}async function Qx(t){return t.matches.some(n=>n.route.unstable_middleware)?Eb(t,!1,()=>Cy(t),(n,a)=>({[a]:{type:"error",result:n}})):Cy(t)}async function Eb(t,n,a,l){let{matches:s,request:u,params:f,context:p}=t,h={handlerResult:void 0};try{let v=s.flatMap(C=>C.route.unstable_middleware?C.route.unstable_middleware.map(_=>[C.route.id,_]):[]),w=await _b({request:u,params:f,context:p},v,n,h,a);return n?w:h.handlerResult}catch(v){if(!h.middlewareError)throw v;let w=await l(h.middlewareError.error,h.middlewareError.routeId);return h.handlerResult?Object.assign(h.handlerResult,w):w}}async function _b(t,n,a,l,s,u=0){let{request:f}=t;if(f.signal.aborted)throw f.signal.reason?f.signal.reason:new Error(`Request aborted without an \`AbortSignal.reason\`: ${f.method} ${f.url}`);let p=n[u];if(!p)return l.handlerResult=await s(),l.handlerResult;let[h,v]=p,w=!1,C,_=async()=>{if(w)throw new Error("You may only call `next()` once per middleware");w=!0,await _b(t,n,a,l,s,u+1)};try{let A=await v({request:t.request,params:t.params,context:t.context},_);return w?A===void 0?C:A:_()}catch(A){throw l.middlewareError?l.middlewareError.error!==A&&(l.middlewareError={routeId:h,error:A}):l.middlewareError={routeId:h,error:A},A}}function Tb(t,n,a,l,s){let u=xb({key:"unstable_middleware",route:l.route,manifest:n,mapRouteProperties:t}),f=Wx(l.route,zn(a.method)?"action":"loader",n,t,s);return{middleware:u,route:f.lazyRoutePromise,handler:f.lazyHandlerPromise}}function bh(t,n,a,l,s,u,f,p=null){let h=!1,v=Tb(t,n,a,l,s);return{...l,_lazyPromises:v,shouldLoad:f,unstable_shouldRevalidateArgs:p,unstable_shouldCallHandler(w){return h=!0,p?typeof w=="boolean"?Bc(l,{...p,defaultShouldRevalidate:w}):Bc(l,p):f},resolve(w){return h||f||w&&a.method==="GET"&&(l.route.lazy||l.route.loader)?Jx({request:a,match:l,lazyHandlerPromise:v==null?void 0:v.handler,lazyRoutePromise:v==null?void 0:v.route,handlerOverride:w,scopedContext:u}):Promise.resolve({type:"data",result:void 0})}}}function dl(t,n,a,l,s,u,f,p=null){return l.map(h=>h.route.id!==s.route.id?{...h,shouldLoad:!1,unstable_shouldRevalidateArgs:p,unstable_shouldCallHandler:()=>!1,_lazyPromises:Tb(t,n,a,h,u),resolve:()=>Promise.resolve({type:"data",result:void 0})}:bh(t,n,a,h,u,f,!0,p))}async function Zx(t,n,a,l,s,u){a.some(v=>{var w;return(w=v._lazyPromises)==null?void 0:w.middleware})&&await Promise.all(a.map(v=>{var w;return(w=v._lazyPromises)==null?void 0:w.middleware}));let f={request:n,params:a[0].params,context:s,matches:a},h=await t({...f,fetcherKey:l,unstable_runClientMiddleware:v=>{let w=f;return Eb(w,!1,()=>v({...w,fetcherKey:l,unstable_runClientMiddleware:()=>{throw new Error("Cannot call `unstable_runClientMiddleware()` from within an `unstable_runClientMiddleware` handler")}}),(C,_)=>({[_]:{type:"error",result:C}}))}});try{await Promise.all(a.flatMap(v=>{var w,C;return[(w=v._lazyPromises)==null?void 0:w.handler,(C=v._lazyPromises)==null?void 0:C.route]}))}catch{}return h}async function Jx({request:t,match:n,lazyHandlerPromise:a,lazyRoutePromise:l,handlerOverride:s,scopedContext:u}){let f,p,h=zn(t.method),v=h?"action":"loader",w=C=>{let _,A=new Promise((Z,V)=>_=V);p=()=>_(),t.signal.addEventListener("abort",p);let j=Z=>typeof C!="function"?Promise.reject(new Error(`You cannot call the handler for a route which defines a boolean "${v}" [routeId: ${n.route.id}]`)):C({request:t,params:n.params,context:u},...Z!==void 0?[Z]:[]),I=(async()=>{try{return{type:"data",result:await(s?s(V=>j(V)):j())}}catch(Z){return{type:"error",result:Z}}})();return Promise.race([I,A])};try{let C=h?n.route.action:n.route.loader;if(a||l)if(C){let _,[A]=await Promise.all([w(C).catch(j=>{_=j}),a,l]);if(_!==void 0)throw _;f=A}else{await a;let _=h?n.route.action:n.route.loader;if(_)[f]=await Promise.all([w(_),l]);else if(v==="action"){let A=new URL(t.url),j=A.pathname+A.search;throw Jn(405,{method:t.method,pathname:j,routeId:n.route.id})}else return{type:"data",result:void 0}}else if(C)f=await w(C);else{let _=new URL(t.url),A=_.pathname+_.search;throw Jn(404,{pathname:A})}}catch(C){return{type:"error",result:C}}finally{p&&t.signal.removeEventListener("abort",p)}return f}async function eE(t){var l,s,u,f,p,h;let{result:n,type:a}=t;if(Ob(n)){let v;try{let w=n.headers.get("Content-Type");w&&/\bapplication\/json\b/.test(w)?n.body==null?v=null:v=await n.json():v=await n.text()}catch(w){return{type:"error",error:w}}return a==="error"?{type:"error",error:new Hc(n.status,n.statusText,v),statusCode:n.status,headers:n.headers}:{type:"data",data:v,statusCode:n.status,headers:n.headers}}return a==="error"?jy(n)?n.data instanceof Error?{type:"error",error:n.data,statusCode:(l=n.init)==null?void 0:l.status,headers:(s=n.init)!=null&&s.headers?new Headers(n.init.headers):void 0}:{type:"error",error:new Hc(((u=n.init)==null?void 0:u.status)||500,void 0,n.data),statusCode:$o(n)?n.status:void 0,headers:(f=n.init)!=null&&f.headers?new Headers(n.init.headers):void 0}:{type:"error",error:n,statusCode:$o(n)?n.status:void 0}:jy(n)?{type:"data",data:n.data,statusCode:(p=n.init)==null?void 0:p.status,headers:(h=n.init)!=null&&h.headers?new Headers(n.init.headers):void 0}:{type:"data",data:n}}function tE(t,n,a,l,s){let u=t.headers.get("Location");if(Qe(u,"Redirects returned/thrown from loaders/actions must have a Location header"),!Uh.test(u)){let f=l.slice(0,l.findIndex(p=>p.route.id===a)+1);u=vh(new URL(n.url),f,s,u),t.headers.set("Location",u)}return t}function Oy(t,n,a){if(Uh.test(t)){let l=t,s=l.startsWith("//")?new URL(n.protocol+l):new URL(l),u=tr(s.pathname,a)!=null;if(s.origin===n.origin&&u)return s.pathname+s.search+s.hash}return t}function ul(t,n,a,l){let s=t.createURL(Cb(n)).toString(),u={signal:a};if(l&&zn(l.formMethod)){let{formMethod:f,formEncType:p}=l;u.method=f.toUpperCase(),p==="application/json"?(u.headers=new Headers({"Content-Type":p}),u.body=JSON.stringify(l.json)):p==="text/plain"?u.body=l.text:p==="application/x-www-form-urlencoded"&&l.formData?u.body=w
59h(l.formData):u.body=l.formData}return new Request(s,u)}function wh(t){let n=new URLSearchParams;for(let[a,l]of t.entries())n.append(a,typeof l=="string"?l:l.name);return n}function Ay(t){let n=new FormData;for(let[a,l]of t.entries())n.append(a,l);return n}function nE(t,n,a,l=!1,s=!1){let u={},f=null,p,h=!1,v={},w=a&&Ln(a[1])?a[1].error:void 0;return t.forEach(C=>{if(!(C.route.id in n))return;let _=C.route.id,A=n[_];if(Qe(!pi(A),"Cannot handle redirect results in processLoaderData"),Ln(A)){let j=A.error;if(w!==void 0&&(j=w,w=void 0),f=f||{},s)f[_]=j;else{let I=mi(t,_);f[I.route.id]==null&&(f[I.route.id]=j)}l||(u[_]=wb),h||(h=!0,p=$o(A.error)?A.error.status:500),A.headers&&(v[_]=A.headers)}else u[_]=A.data,A.statusCode&&A.statusCode!==200&&!h&&(p=A.statusCode),A.headers&&(v[_]=A.headers)}),w!==void 0&&a&&(f={[a[0]]:w},a[2]&&(u[a[2]]=void 0)),{loaderData:u,errors:f,statusCode:p||200,loaderHeaders:v}}function Ry(t,n,a,l,s,u){let{loaderData:f,errors:p}=nE(n,a,l);return s.filter(h=>!h.matches||h.matches.some(v=>v.shouldLoad)).forEach(h=>{let{key:v,match:w,controller:C}=h,_=u[v];if(Qe(_,"Did not find corresponding fetcher result"),!(C&&C.signal.aborted))if(Ln(_)){let A=mi(t.matches,w==null?void 0:w.route.id);p&&p[A.route.id]||(p={...p,[A.route.id]:_.error}),t.fetchers.delete(v)}else if(pi(_))Qe(!1,"Unhandled fetcher revalidation redirect");else{let A=Ma(_.data);t.fetchers.set(v,A)}}),{loaderData:f,errors:p}}function Ny(t,n,a,l){let s=Object.entries(n).filter(([,u])=>u!==wb).reduce((u,[f,p])=>(u[f]=p,u),{});for(let u of a){let f=u.route.id;if(!n.hasOwnProperty(f)&&t.hasOwnProperty(f)&&u.route.loader&&(s[f]=t[f]),l&&l.hasOwnProperty(f))break}return s}function My(t){return t?Ln(t[1])?{actionData:{}}:{actionData:{[t[0]]:t[1].data}}:{}}function mi(t,n){return(n?t.slice(0,t.findIndex(l=>l.route.id===n)+1):[...t]).reverse().find(l=>l.route.hasErrorBoundary===!0)||t[0]}function Dy(t){let n=t.length===1?t[0]:t.find(a=>a.index||!a.path||a.path==="/")||{id:"__shim-error-route__"};return{matches:[{params:{},pathname:"",pathnameBase:"",route:n}],route:n}}function Jn(t,{pathname:n,routeId:a,method:l,type:s,message:u}={}){let f="Unknown Server Error",p="Unknown @remix-run/router error";return t===400?(f="Bad Request",l&&n&&a?p=`You made a ${l} request to "${n}" but did not provide a \`loader\` for route "${a}", so there is no way to handle the request.`:s==="invalid-body"&&(p="Unable to encode submission body")):t===403?(f="Forbidden",p=`Route "${a}" does not match URL "${n}"`):t===404?(f="Not Found",p=`No route matches URL "${n}"`):t===405&&(f="Method Not Allowed",l&&n&&a?p=`You made a ${l.toUpperCase()} request to "${n}" but did not provide an \`action\` for route "${a}", so there is no way to handle the request.`:l&&(p=`Invalid request method "${l.toUpperCase()}"`)),new Hc(t||500,f,new Error(p),!0)}function Cc(t){let n=Object.entries(t);for(let a=n.length-1;a>=0;a--){let[l,s]=n[a];if(pi(s))return{key:l,result:s}}}function Cb(t){let n=typeof t=="string"?qa(t):t;return Ha({...n,hash:""})}function rE(t,n){return t.pathname!==n.pathname||t.search!==n.search?!1:t.hash===""?n.hash!=="":t.hash===n.hash?!0:n.hash!==""}function aE(t){return Ob(t.result)&&qx.has(t.result.status)}function Ln(t){return t.type==="error"}function pi(t){return(t&&t.type)==="redirect"}function jy(t){return typeof t=="object"&&t!=null&&"type"in t&&"data"in t&&"init"in t&&t.type==="DataWithResponseInit"}function Ob(t){return t!=null&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.headers=="object"&&typeof t.body<"u"}function iE(t){return Bx.has(t.toUpperCase())}function zn(t){return Ux.has(t.toUpperCase())}function Hh(t){return new URLSearchParams(t).getAll("index").some(n=>n==="")}function Uo(t,n){let a=typeof n=="string"?qa(n).search:n.search;if(t[t.length-1].route.index&&Hh(a||""))return t[t.length-1];let l=vb(t);return l[l.length-1]}function ky(t){let{formMethod:n,formAction:a,formEncType:l,text:s,formData:u,json:f}=t;if(!(!n||!a||!l)){if(s!=null)return{formMethod:n,formAction:a,formEncType:l,formData:void 0,json:void 0,text:s};if(u!=null)return{formMethod:n,formAction:a,formEncType:l,formData:u,json:void 0,text:void 0};if(f!==void 0)return{formMethod:n,formAction:a,formEncType:l,formData:void 0,json:f,text:void 0}}}function qf(t,n){return n?{state:"loading",location:t,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text}:{state:"loading",location:t,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function lE(t,n){return{state:"submitting",location:t,formMethod:n.formMethod,formAction:n.formAction,formEncType:n.formEncType,formData:n.formData,json:n.json,text:n.text}}function jo(t,n){return t?{state:"loading",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:n}:{state:"loading",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:n}}function oE(t,n){return{state:"submitting",formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text,data:n?n.data:void 0}}function Ma(t){return{state:"idle",formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function sE(t,n){try{let a=t.sessionStorage.getItem(bb);
59if(a){let l=JSON.parse(a);for(let[s,u]of Object.entries(l||{}))u&&Array.isArray(u)&&n.set(s,new Set(u||[]))}}catch{}}function cE(t,n){if(n.size>0){let a={};for(let[l,s]of n)a[l]=[...s];try{t.sessionStorage.setItem(bb,JSON.stringify(a))}catch(l){It(!1,`Failed to save applied view transitions in sessionStorage (${l}).`)}}}function uE(){let t,n,a=new Promise((l,s)=>{t=async u=>{l(u);try{await a}catch{}},n=async u=>{s(u);try{await a}catch{}}});return{promise:a,resolve:t,reject:n}}var Ti=z.createContext(null);Ti.displayName="DataRouter";var Wo=z.createContext(null);Wo.displayName="DataRouterState";var Bh=z.createContext({isTransitioning:!1});Bh.displayName="ViewTransition";var Ab=z.createContext(new Map);Ab.displayName="Fetchers";var dE=z.createContext(null);dE.displayName="Await";var vr=z.createContext(null);vr.displayName="Navigation";var mu=z.createContext(null);mu.displayName="Location";var yr=z.createContext({outlet:null,matches:[],isDataRoute:!1});yr.displayName="Route";var qh=z.createContext(null);qh.displayName="RouteError";function fE(t,{relative:n}={}){Qe(Ol(),"useHref() may be used only in the context of a <Router> component.");let{basename:a,navigator:l}=z.useContext(vr),{hash:s,pathname:u,search:f}=Zo(t,{relative:n}),p=u;return a!=="/"&&(p=u==="/"?a:Ar([a,u])),l.createHref({pathname:p,search:f,hash:s})}function Ol(){return z.useContext(mu)!=null}function jr(){return Qe(Ol(),"useLocation() may be used only in the context of a <Router> component."),z.useContext(mu).location}var Rb="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function Nb(t){z.useContext(vr).static||z.useLayoutEffect(t)}function Qo(){let{isDataRoute:t}=z.useContext(yr);return t?OE():hE()}function hE(){Qe(Ol(),"useNavigate() may be used only in the context of a <Router> component.");let t=z.useContext(Ti),{basename:n,navigator:a}=z.useContext(vr),{matches:l}=z.useContext(yr),{pathname:s}=jr(),u=JSON.stringify(fu(l)),f=z.useRef(!1);return Nb(()=>{f.current=!0}),z.useCallback((h,v={})=>{if(It(f.current,Rb),!f.current)return;if(typeof h=="number"){a.go(h);return}let w=hu(h,JSON.parse(u),s,v.relative==="path");t==null&&n!=="/"&&(w.pathname=w.pathname==="/"?n:Ar([n,w.pathname])),(v.replace?a.replace:a.push)(w,v.state,v)},[n,a,u,s,t])}var mE=z.createContext(null);function pE(t){let n=z.useContext(yr).outlet;return n&&z.createElement(mE.Provider,{value:t},n)}function Zo(t,{relative:n}={}){let{matches:a}=z.useContext(yr),{pathname:l}=jr(),s=JSON.stringify(fu(a));return z.useMemo(()=>hu(t,JSON.parse(s),l,n==="path"),[t,s,l,n])}function gE(t,n,a,l){Qe(Ol(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:s,static:u}=z.useContext(vr),{matches:f}=z.useContext(yr),p=f[f.length-1],h=p?p.params:{},v=p?p.pathname:"/",w=p?p.pathnameBase:"/",C=p&&p.route;{let ee=C&&C.path||"";Mb(v,!C||ee.endsWith("*")||ee.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${v}" (under <Route path="${ee}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render. 60 61Please change the parent <Route path="${ee}"> to <Route path="${ee==="/"?"*":`${ee}/*`}">.`)}let _=jr(),A;A=_;let j=A.pathname||"/",I=j;if(w!=="/"){let ee=w.replace(/^\//,"").split("/");I="/"+j.replace(/^\//,"").split("/").slice(ee.length).join("/")}let Z=!u&&a&&a.matches&&a.matches.length>0?a.matches:Da(t,{pathname:I});return It(C||Z!=null,`No routes matched location "${A.pathname}${A.search}${A.hash}" `),It(Z==null||Z[Z.length-1].route.element!==void 0||Z[Z.length-1].route.Component!==void 0||Z[Z.length-1].route.lazy!==void 0,`Matched leaf route at location "${A.pathname}${A.search}${A.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`),SE(Z&&Z.map(ee=>Object.assign({},ee,{params:Object.assign({},h,ee.params),pathname:Ar([w,s.encodeLocation?s.encodeLocation(ee.pathname).pathname:ee.pathname]),pathnameBase:ee.pathnameBase==="/"?w:Ar([w,s.encodeLocation?s.encodeLocation(ee.pathnameBase).pathname:ee.pathnameBase])})),f,a,l)}function vE(){let t=CE(),n=$o(t)?`${t.status} ${t.statusText}`:t instanceof Error?t.message:JSON.stringify(t),a=t instanceof Error?t.stack:null,l="rgba(200,200,200, 0.5)",s={padding:"0.5rem",backgroundColor:l},u={padding:"2px 4px",backgroundColor:l},f=null;return console.error("Error handled by React Router default ErrorBoundary:",t),f=z.createElement(z.Fragment,null,z.createElement("p",null,"ð¿ Hey developer ð"),z.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",z.createElement("code",{style:u},"ErrorBoundary")," or"," ",z.createElement("code",{style:u},"errorElement")," prop on your route.")),z.createElement(z.Fragment,null,z.createElement("h2",null,"Unexpected Application
61Error!"),z.createElement("h3",{style:{fontStyle:"italic"}},n),a?z.createElement("pre",{style:s},a):null,f)}var yE=z.createElement(vE,null),bE=class extends z.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?z.createElement(yr.Provider,{value:this.props.routeContext},z.createElement(qh.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function wE({routeContext:t,match:n,children:a}){let l=z.useContext(Ti);return l&&l.static&&l.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(l.staticContext._deepestRenderedBoundaryId=n.route.id),z.createElement(yr.Provider,{value:t},a)}function SE(t,n=[],a=null,l=null){if(t==null){if(!a)return null;if(a.errors)t=a.matches;else if(n.length===0&&!a.initialized&&a.matches.length>0)t=a.matches;else return null}let s=t,u=a==null?void 0:a.errors;if(u!=null){let h=s.findIndex(v=>v.route.id&&(u==null?void 0:u[v.route.id])!==void 0);Qe(h>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(u).join(",")}`),s=s.slice(0,Math.min(s.length,h+1))}let f=!1,p=-1;if(a)for(let h=0;h<s.length;h++){let v=s[h];if((v.route.HydrateFallback||v.route.hydrateFallbackElement)&&(p=h),v.route.id){let{loaderData:w,errors:C}=a,_=v.route.loader&&!w.hasOwnProperty(v.route.id)&&(!C||C[v.route.id]===void 0);if(v.route.lazy||_){f=!0,p>=0?s=s.slice(0,p+1):s=[s[0]];break}}}return s.reduceRight((h,v,w)=>{let C,_=!1,A=null,j=null;a&&(C=u&&v.route.id?u[v.route.id]:void 0,A=v.route.errorElement||yE,f&&(p<0&&w===0?(Mb("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),_=!0,j=null):p===w&&(_=!0,j=v.route.hydrateFallbackElement||null)));let I=n.concat(s.slice(0,w+1)),Z=()=>{let V;return C?V=A:_?V=j:v.route.Component?V=z.createElement(v.route.Component,null):v.route.element?V=v.route.element:V=h,z.createElement(wE,{match:v,routeContext:{outlet:h,matches:I,isDataRoute:a!=null},children:V})};return a&&(v.route.ErrorBoundary||v.route.errorElement||w===0)?z.createElement(bE,{location:a.location,revalidation:a.revalidation,component:A,error:C,children:Z(),routeContext:{outlet:null,matches:I,isDataRoute:!0}}):Z()},null)}function Vh(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function xE(t){let n=z.useContext(Ti);return Qe(n,Vh(t)),n}function Gh(t){let n=z.useContext(Wo);return Qe(n,Vh(t)),n}function EE(t){let n=z.useContext(yr);return Qe(n,Vh(t)),n}function pu(t){let n=EE(t),a=n.matches[n.matches.length-1];return Qe(a.route.id,`${t} can only be used on routes that contain a unique "id"`),a.route.id}function _E(){return pu("useRouteId")}function TE(){return Gh("useNavigation").navigation}function Al(){let t=Gh("useLoaderData"),n=pu("useLoaderData");return t.loaderData[n]}function CE(){var l;let t=z.useContext(qh),n=Gh("useRouteError"),a=pu("useRouteError");return t!==void 0?t:(l=n.errors)==null?void 0:l[a]}function OE(){let{router:t}=xE("useNavigate"),n=pu("useNavigate"),a=z.useRef(!1);return Nb(()=>{a.current=!0}),z.useCallback(async(s,u={})=>{It(a.current,Rb),a.current&&(typeof s=="number"?t.navigate(s):await t.navigate(s,{fromRouteId:n,...u}))},[t,n])}var Ly={};function Mb(t,n,a){!n&&!Ly[t]&&(Ly[t]=!0,It(!1,a))}var zy={};function Py(t,n){!t&&!zy[n]&&(zy[n]=!0,console.warn(n))}function AE(t){let n={hasErrorBoundary:t.hasErrorBoundary||t.ErrorBoundary!=null||t.errorElement!=null};return t.Component&&(t.element&&It(!1,"You should not include both `Component` and `element` on your route - `Component` will be used."),Object.assign(n,{element:z.createElement(t.Component),Component:void 0})),t.HydrateFallback&&(t.hydrateFallbackElement&&It(!1,"You should not include both `HydrateFallback` and `hydrateFallbackElement` on your route - `HydrateFallback` will be used."),Object.assign(n,{hydrateFallbackElement:z.createElement(t.HydrateFallback),HydrateFallback:void 0})),t.ErrorBoundary&&(t.errorElement&&It(!1,"You should not include both `ErrorBoundary` and `errorElement` on your route - `ErrorBoundary` will be used."),Object.assign(n,{errorElement:z.createElement(t.ErrorBoundary),ErrorBoundary:void 0})),n}var RE=["HydrateFallback","hydrateFallbackElement"],NE=class{constructor(){this.status="pending",this.promise=new Promise((n,a)=>{this.resolve=l=>{this.status==="pending"&&(this.status="resolved",n(l))},this.reject=l=>{this.status==="pending"&&(this.status="rejected",a(l))}})}};function ME({router:t,flushSync:n}){let[a,l]=z.useState(t.state),[s,u]=z.useState(),[f,p]=z.useState({isTransitioning:!1}),[h,v]=z.useState(),[w,C]=z.useState(),[_,A]=z.useState(),j=z.useRef(new Map),I=z.useCallback((ae,{deletedFetchers:he,flushSync:O,viewTransitionOpts:E})=>
61{ae.fetchers.forEach((re,N)=>{re.data!==void 0&&j.current.set(N,re.data)}),he.forEach(re=>j.current.delete(re)),Py(O===!1||n!=null,'You provided the `flushSync` option to a router update, but you are not using the `<RouterProvider>` from `react-router/dom` so `ReactDOM.flushSync()` is unavailable. Please update your app to `import { RouterProvider } from "react-router/dom"` and ensure you have `react-dom` installed as a dependency to use the `flushSync` option.');let P=t.window!=null&&t.window.document!=null&&typeof t.window.document.startViewTransition=="function";if(Py(E==null||P,"You provided the `viewTransition` option to a router update, but you do not appear to be running in a DOM environment as `window.startViewTransition` is not available."),!E||!P){n&&O?n(()=>l(ae)):z.startTransition(()=>l(ae));return}if(n&&O){n(()=>{w&&(h&&h.resolve(),w.skipTransition()),p({isTransitioning:!0,flushSync:!0,currentLocation:E.currentLocation,nextLocation:E.nextLocation})});let re=t.window.document.startViewTransition(()=>{n(()=>l(ae))});re.finished.finally(()=>{n(()=>{v(void 0),C(void 0),u(void 0),p({isTransitioning:!1})})}),n(()=>C(re));return}w?(h&&h.resolve(),w.skipTransition(),A({state:ae,currentLocation:E.currentLocation,nextLocation:E.nextLocation})):(u(ae),p({isTransitioning:!0,flushSync:!1,currentLocation:E.currentLocation,nextLocation:E.nextLocation}))},[t.window,n,w,h]);z.useLayoutEffect(()=>t.subscribe(I),[t,I]),z.useEffect(()=>{f.isTransitioning&&!f.flushSync&&v(new NE)},[f]),z.useEffect(()=>{if(h&&s&&t.window){let ae=s,he=h.promise,O=t.window.document.startViewTransition(async()=>{z.startTransition(()=>l(ae)),await he});O.finished.finally(()=>{v(void 0),C(void 0),u(void 0),p({isTransitioning:!1})}),C(O)}},[s,h,t.window]),z.useEffect(()=>{h&&s&&a.location.key===s.location.key&&h.resolve()},[h,w,a.location,s]),z.useEffect(()=>{!f.isTransitioning&&_&&(u(_.state),p({isTransitioning:!0,flushSync:!1,currentLocation:_.currentLocation,nextLocation:_.nextLocation}),A(void 0))},[f.isTransitioning,_]);let Z=z.useMemo(()=>({createHref:t.createHref,encodeLocation:t.encodeLocation,go:ae=>t.navigate(ae),push:(ae,he,O)=>t.navigate(ae,{state:he,preventScrollReset:O==null?void 0:O.preventScrollReset}),replace:(ae,he,O)=>t.navigate(ae,{replace:!0,state:he,preventScrollReset:O==null?void 0:O.preventScrollReset})}),[t]),V=t.basename||"/",ee=z.useMemo(()=>({router:t,navigator:Z,static:!1,basename:V}),[t,Z,V]);return z.createElement(z.Fragment,null,z.createElement(Ti.Provider,{value:ee},z.createElement(Wo.Provider,{value:a},z.createElement(Ab.Provider,{value:j.current},z.createElement(Bh.Provider,{value:f},z.createElement(LE,{basename:V,location:a.location,navigationType:a.historyAction,navigator:Z},z.createElement(DE,{routes:t.routes,future:t.future,state:a})))))),null)}var DE=z.memo(jE);function jE({routes:t,future:n,state:a}){return gE(t,void 0,a,n)}function kE({to:t,replace:n,state:a,relative:l}){Qe(Ol(),"<Navigate> may be used only in the context of a <Router> component.");let{static:s}=z.useContext(vr);It(!s,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:u}=z.useContext(yr),{pathname:f}=jr(),p=Qo(),h=hu(t,fu(u),f,l==="path"),v=JSON.stringify(h);return z.useEffect(()=>{p(JSON.parse(v),{replace:n,state:a,relative:l})},[p,v,l,n,a]),null}function Db(t){return pE(t.context)}function LE({basename:t="/",children:n=null,location:a,navigationType:l="POP",navigator:s,static:u=!1}){Qe(!Ol(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let f=t.replace(/^\/*/,"/"),p=z.useMemo(()=>({basename:f,navigator:s,static:u,future:{}}),[f,s,u]);typeof a=="string"&&(a=qa(a));let{pathname:h="/",search:v="",hash:w="",state:C=null,key:_="default"}=a,A=z.useMemo(()=>{let j=tr(h,f);return j==null?null:{location:{pathname:j,search:v,hash:w,state:C,key:_},navigationType:l}},[f,h,v,w,C,_,l]);return It(A!=null,`<Router basename="${f}"> is not able to match the URL "${h}${v}${w}
61" because it does not start with the basename, so the <Router> won't render anything.`),A==null?null:z.createElement(vr.Provider,{value:p},z.createElement(mu.Provider,{children:n,value:A}))}var Dc="get",jc="application/x-www-form-urlencoded";function gu(t){return t!=null&&typeof t.tagName=="string"}function zE(t){return gu(t)&&t.tagName.toLowerCase()==="button"}function PE(t){return gu(t)&&t.tagName.toLowerCase()==="form"}function IE(t){return gu(t)&&t.tagName.toLowerCase()==="input"}function UE(t){return!!(t.metaKey||t.altKey||t.ctrlKey||t.shiftKey)}function HE(t,n){return t.button===0&&(!n||n==="_self")&&!UE(t)}var Oc=null;function BE(){if(Oc===null)try{new FormData(document.createElement("form"),0),Oc=!1}catch{Oc=!0}return Oc}var qE=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function Vf(t){return t!=null&&!qE.has(t)?(It(!1,`"${t}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${jc}"`),null):t}function VE(t,n){let a,l,s,u,f;if(PE(t)){let p=t.getAttribute("action");l=p?tr(p,n):null,a=t.getAttribute("method")||Dc,s=Vf(t.getAttribute("enctype"))||jc,u=new FormData(t)}else if(zE(t)||IE(t)&&(t.type==="submit"||t.type==="image")){let p=t.form;if(p==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let h=t.getAttribute("formaction")||p.getAttribute("action");if(l=h?tr(h,n):null,a=t.getAttribute("formmethod")||p.getAttribute("method")||Dc,s=Vf(t.getAttribute("formenctype"))||Vf(p.getAttribute("enctype"))||jc,u=new FormData(p,t),!BE()){let{name:v,type:w,value:C}=t;if(w==="image"){let _=v?`${v}.`:"";u.append(`${_}x`,"0"),u.append(`${_}y`,"0")}else v&&u.append(v,C)}}else{if(gu(t))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');a=Dc,l=null,s=jc,f=t}return u&&s==="text/plain"&&(f=u,u=void 0),{action:l,method:a.toLowerCase(),encType:s,formData:u,body:f}}function $h(t,n){if(t===!1||t===null||typeof t>"u")throw new Error(n)}async function GE(t,n){if(t.id in n)return n[t.id];try{let a=await import(t.module);return n[t.id]=a,a}catch(a){return console.error(`Error loading route module \`${t.module}\`, reloading page...`),console.error(a),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function $E(t){return t==null?!1:t.href==null?t.rel==="preload"&&typeof t.imageSrcSet=="string"&&typeof t.imageSizes=="string":typeof t.rel=="string"&&typeof t.href=="string"}async function YE(t,n,a){let l=await Promise.all(t.map(async s=>{let u=n.routes[s.route.id];if(u){let f=await GE(u,a);return f.links?f.links():[]}return[]}));return WE(l.flat(1).filter($E).filter(s=>s.rel==="stylesheet"||s.rel==="preload").map(s=>s.rel==="stylesheet"?{...s,rel:"prefetch",as:"style"}:{...s,rel:"prefetch"}))}function Iy(t,n,a,l,s,u){let f=(h,v)=>a[v]?h.route.id!==a[v].route.id:!0,p=(h,v)=>{var w;return a[v].pathname!==h.pathname||((w=a[v].route.path)==null?void 0:w.endsWith("*"))&&a[v].params["*"]!==h.params["*"]};return u==="assets"?n.filter((h,v)=>f(h,v)||p(h,v)):u==="data"?n.filter((h,v)=>{var C;let w=l.routes[h.route.id];if(!w||!w.hasLoader)return!1;if(f(h,v)||p(h,v))return!0;if(h.route.shouldRevalidate){let _=h.route.shouldRevalidate({currentUrl:new URL(s.pathname+s.search+s.hash,window.origin),currentParams:((C=a[0])==null?void 0:C.params)||{},nextUrl:new URL(t,window.origin),nextParams:h.params,defaultShouldRevalidate:!0});if(typeof _=="boolean")return _}return!0}):[]}function XE(t,n,{includeHydrateFallback:a}={}){return FE(t.map(l=>{let s=n.routes[l.route.id];if(!s)return[];let u=[s.module];return s.clientActionModule&&(u=u.concat(s.clientActionModule)),s.clientLoaderModule&&(u=u.concat(s.clientLoaderModule)),a&&s.hydrateFallbackModule&&(u=u.concat(s.hydrateFallbackModule)),s.imports&&(u=u.concat(s.imports)),u}).flat(1))}function FE(t){return[...new Set(t)]}function KE(t){let n={},a=Object.keys(t).sort();for(let l of a)n[l]=t[l];return n}function WE(t,n){let a=new Set;return new Set(n),t.reduce((l,s)=>{let u=JSON.stringify(KE(s));return a.has(u)||(a.add(u),l.push({key:u,link:s})),l},[])}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var QE=new Set([100,101,204,205]);function ZE(t,n){let a=typeof t=="string"?new URL(t,typeof window>"u"?"server://singlefetch/":window.location.origin):t;return a.pathname==="/"?a.pathname="_root.data":n&&tr(a.pathname,n)==="/"?a.pathname=`${n.replace(/\/$/,"")}/_root.data`:a.pathname=`${a.pathname.replace(/\/$/,"")}.data`,a}function jb(){let t=z.useContext(Ti);return $h(t,"You must render this element inside a <DataRouterContext.Provider> element"),t}function JE(){let t=z.useContext(Wo);return $h(t,"You must render this element inside a <DataRouterStateContext.Provider> element"),t}var Yh=z.createContext(void 0);Yh.displayName="FrameworkContext";function kb(){let t=z.useContext(Yh);return $h(t,"You must render this element inside a <HydratedRouter> element"),t}function e_(t,n){let a=z.useContext(Yh),[l,s]=z.useState(!1),[u,f]=z.useState(!1),{onFocus:p,onBlur:h,onMouseEnter:v,onMouseLeave:w,onTouchStart:C}=n,_=z.useRef(null);z.useEffect(()=>{if(t==="render"&&f(!0),t==="viewport"){let I=V=>
61{V.forEach(ee=>{f(ee.isIntersecting)})},Z=new IntersectionObserver(I,{threshold:.5});return _.current&&Z.observe(_.current),()=>{Z.disconnect()}}},[t]),z.useEffect(()=>{if(l){let I=setTimeout(()=>{f(!0)},100);return()=>{clearTimeout(I)}}},[l]);let A=()=>{s(!0)},j=()=>{s(!1),f(!1)};return a?t!=="intent"?[u,_,{}]:[u,_,{onFocus:ko(p,A),onBlur:ko(h,j),onMouseEnter:ko(v,A),onMouseLeave:ko(w,j),onTouchStart:ko(C,A)}]:[!1,_,{}]}function ko(t,n){return a=>{t&&t(a),a.defaultPrevented||n(a)}}function t_({page:t,...n}){let{router:a}=jb(),l=z.useMemo(()=>Da(a.routes,t,a.basename),[a.routes,t,a.basename]);return l?z.createElement(r_,{page:t,matches:l,...n}):null}function n_(t){let{manifest:n,routeModules:a}=kb(),[l,s]=z.useState([]);return z.useEffect(()=>{let u=!1;return YE(t,n,a).then(f=>{u||s(f)}),()=>{u=!0}},[t,n,a]),l}function r_({page:t,matches:n,...a}){let l=jr(),{manifest:s,routeModules:u}=kb(),{basename:f}=jb(),{loaderData:p,matches:h}=JE(),v=z.useMemo(()=>Iy(t,n,h,s,l,"data"),[t,n,h,s,l]),w=z.useMemo(()=>Iy(t,n,h,s,l,"assets"),[t,n,h,s,l]),C=z.useMemo(()=>{if(t===l.pathname+l.search+l.hash)return[];let j=new Set,I=!1;if(n.forEach(V=>{var ae;let ee=s.routes[V.route.id];!ee||!ee.hasLoader||(!v.some(he=>he.route.id===V.route.id)&&V.route.id in p&&((ae=u[V.route.id])!=null&&ae.shouldRevalidate)||ee.hasClientLoader?I=!0:j.add(V.route.id))}),j.size===0)return[];let Z=ZE(t,f);return I&&j.size>0&&Z.searchParams.set("_routes",n.filter(V=>j.has(V.route.id)).map(V=>V.route.id).join(",")),[Z.pathname+Z.search]},[f,p,l,s,v,n,t,u]),_=z.useMemo(()=>XE(w,s),[w,s]),A=n_(w);return z.createElement(z.Fragment,null,C.map(j=>z.createElement("link",{key:j,rel:"prefetch",as:"fetch",href:j,...a})),_.map(j=>z.createElement("link",{key:j,rel:"modulepreload",href:j,...a})),A.map(({key:j,link:I})=>z.createElement("link",{key:j,...I})))}function a_(...t){return n=>{t.forEach(a=>{typeof a=="function"?a(n):a!=null&&(a.current=n)})}}var Lb=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{Lb&&(window.__reactRouterVersion="7.6.0")}catch{}function i_(t,n){return Yx({basename:n==null?void 0:n.basename,unstable_getContext:n==null?void 0:n.unstable_getContext,future:n==null?void 0:n.future,history:hx({window:n==null?void 0:n.window}),hydrationData:l_(),routes:t,mapRouteProperties:AE,hydrationRouteProperties:RE,dataStrategy:n==null?void 0:n.dataStrategy,patchRoutesOnNavigation:n==null?void 0:n.patchRoutesOnNavigation,window:n==null?void 0:n.window}).initialize()}function l_(){let t=window==null?void 0:window.__staticRouterHydrationData;return t&&t.errors&&(t={...t,errors:o_(t.errors)}),t}function o_(t){if(!t)return null;let n=Object.entries(t),a={};for(let[l,s]of n)if(s&&s.__type==="RouteErrorResponse")a[l]=new Hc(s.status,s.statusText,s.data,s.internal===!0);else if(s&&s.__type==="Error"){if(s.__subType){let u=window[s.__subType];if(typeof u=="function")try{let f=new u(s.message);f.stack="",a[l]=f}catch{}}if(a[l]==null){let u=new Error(s.message);u.stack="",a[l]=u}}else a[l]=s;return a}var zb=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,br=z.forwardRef(function({onClick:n,discover:a="render",prefetch:l="none",relative:s,reloadDocument:u,replace:f,state:p,target:h,to:v,preventScrollReset:w,viewTransition:C,..._},A){let{basename:j}=z.useContext(vr),I=typeof v=="string"&&zb.test(v),Z,V=!1;if(typeof v=="string"&&I&&(Z=v,Lb))try{let N=new URL(window.location.href),T=v.startsWith("//")?new URL(N.protocol+v):new URL(v),F=tr(T.pathname,j);T.origin===N.origin&&F!=null?v=F+T.search+T.hash:V=!0}catch{It(!1,`<Link to="${v}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let ee=fE(v,{relative:s}),[ae,he,O]=e_(l,_),E=u_(v,{replace:f,state:p,target:h,preventScrollReset:w,relative:s,viewTransition:C});function P(N){n&&n(N),N.defaultPrevented||E(N)}let re=z.createElement("a",{..._,...O,href:Z||ee,onClick:V||u?n:P,ref:a_(A,he),target:h,"data-discover":!I&&a==="render"?"true":void 0});return ae&&!I?z.createElement(z.Fragment,null,re,z.createElement(t_,{page:ee})):re});br.displayName="Link";var Or=z.forwardRef(function({"aria-current":n="page",caseSensitive:a=!1,className:l="",end:s=!1,style:u,to:f,viewTransition:p,children:h,...v},w){let C=Zo(f,{relative:v.relative}),_=jr(),A=z.useContext(Wo),{navigator:j,basename:I}=z.useContext(vr),Z=A!=null&&p_(C)&&p===!0,V=j.encodeLocation?j.encodeLocation(C).pathname:C.pathname,ee=_.pathname,ae=A&&A.navigation&&A.navigation.location?A.navigation.location.pathname:null;a||(ee=ee.toLowerCase(),ae=ae?ae.toLowerCase():null,V=V.toLowerCase()),ae&&I&&(ae=tr(ae,I)||ae);const he=V!=="/"&&V.endsWith("/")?V.length-1:V.length;let O=ee===V||!s&&ee.startsWith(V)&&ee.charAt(he)==="/",E=ae!=null&&(ae===V||!s&&ae.startsWith(V)&&ae.charAt(V.length)==="/"),P={isActive:O,isPending:E,isTransitioning:Z},re=O?n:void 0,N;typeof l=="function"?N=l(P):N=[l,O?"active":null,E?"pending":null,Z?"transitioning":null].filter(
61Boolean).join(" ");let T=typeof u=="function"?u(P):u;return z.createElement(br,{...v,"aria-current":re,className:N,ref:w,style:T,to:f,viewTransition:p},typeof h=="function"?h(P):h)});Or.displayName="NavLink";var s_=z.forwardRef(({discover:t="render",fetcherKey:n,navigate:a,reloadDocument:l,replace:s,state:u,method:f=Dc,action:p,onSubmit:h,relative:v,preventScrollReset:w,viewTransition:C,..._},A)=>{let j=h_(),I=m_(p,{relative:v}),Z=f.toLowerCase()==="get"?"get":"post",V=typeof p=="string"&&zb.test(p),ee=ae=>{if(h&&h(ae),ae.defaultPrevented)return;ae.preventDefault();let he=ae.nativeEvent.submitter,O=(he==null?void 0:he.getAttribute("formmethod"))||f;j(he||ae.currentTarget,{fetcherKey:n,method:O,navigate:a,replace:s,state:u,relative:v,preventScrollReset:w,viewTransition:C})};return z.createElement("form",{ref:A,method:Z,action:I,onSubmit:l?h:ee,..._,"data-discover":!V&&t==="render"?"true":void 0})});s_.displayName="Form";function c_(t){return`${t} must be used within a data router. See https://reactrouter.com/en/main/routers/picking-a-router.`}function Pb(t){let n=z.useContext(Ti);return Qe(n,c_(t)),n}function u_(t,{target:n,replace:a,state:l,preventScrollReset:s,relative:u,viewTransition:f}={}){let p=Qo(),h=jr(),v=Zo(t,{relative:u});return z.useCallback(w=>{if(HE(w,n)){w.preventDefault();let C=a!==void 0?a:Ha(h)===Ha(v);p(t,{replace:C,state:l,preventScrollReset:s,relative:u,viewTransition:f})}},[h,p,v,a,l,n,t,s,u,f])}var d_=0,f_=()=>`__${String(++d_)}__`;function h_(){let{router:t}=Pb("useSubmit"),{basename:n}=z.useContext(vr),a=_E();return z.useCallback(async(l,s={})=>{let{action:u,method:f,encType:p,formData:h,body:v}=VE(l,n);if(s.navigate===!1){let w=s.fetcherKey||f_();await t.fetch(w,a,s.action||u,{preventScrollReset:s.preventScrollReset,formData:h,body:v,formMethod:s.method||f,formEncType:s.encType||p,flushSync:s.flushSync})}else await t.navigate(s.action||u,{preventScrollReset:s.preventScrollReset,formData:h,body:v,formMethod:s.method||f,formEncType:s.encType||p,replace:s.replace,state:s.state,fromRouteId:a,flushSync:s.flushSync,viewTransition:s.viewTransition})},[t,n,a])}function m_(t,{relative:n}={}){let{basename:a}=z.useContext(vr),l=z.useContext(yr);Qe(l,"useFormAction must be used inside a RouteContext");let[s]=l.matches.slice(-1),u={...Zo(t||".",{relative:n})},f=jr();if(t==null){u.search=f.search;let p=new URLSearchParams(u.search),h=p.getAll("index");if(h.some(w=>w==="")){p.delete("index"),h.filter(C=>
61C).forEach(C=>p.append("index",C));let w=p.toString();u.search=w?`?${w}`:""}}return(!t||t===".")&&s.route.index&&(u.search=u.search?u.search.replace(/^\?/,"?index&"):"?index"),a!=="/"&&(u.pathname=u.pathname==="/"?a:Ar([a,u.pathname])),Ha(u)}function p_(t,n={}){let a=z.useContext(Bh);Qe(a!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`. Did you accidentally import `RouterProvider` from `react-router`?");let{basename:l}=Pb("useViewTransitionState"),s=Zo(t,{relative:n.relative});if(!a.isTransitioning)return!1;let u=tr(a.currentLocation.pathname,l)||a.currentLocation.pathname,f=tr(a.nextLocation.pathname,l)||a.nextLocation.pathname;return Uc(s.pathname,f)!=null||Uc(s.pathname,u)!=null}[...QE];const ia=z.createContext(null);var Ib={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},Uy=xn.createContext&&xn.createContext(Ib),g_=["attr","size","title"];function v_(t,n){if(t==null)return{};var a=y_(t,n),l,s;if(Object.getOwnPropertySymbols){var u=Object.getOwnPropertySymbols(t);for(s=0;s<u.length;s++)l=u[s],!(n.indexOf(l)>=0)&&Object.prototype.propertyIsEnumerable.call(t,l)&&(a[l]=t[l])}return a}function y_(t,n){if(t==null)return{};var a={};for(var l in t)if(Object.prototype.hasOwnProperty.call(t,l)){if(n.indexOf(l)>=0)continue;a[l]=t[l]}return a}function qc(){return qc=Object.assign?Object.assign.bind():function(t){for(var n=1;n<arguments.length;n++){var a=arguments[n];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(t[l]=a[l])}return t},qc.apply(this,arguments)}function Hy(t,n){var a=Object.keys(t);if(Object.getOwnPropertySymbols){var l=Object.getOwnPropertySymbols(t);n&&(l=l.filter(function(s){return Object.getOwnPropertyDescriptor(t,s).enumerable})),a.push.apply(a,l)}return a}function Vc(t){for(var n=1;n<arguments.length;n++){var a=arguments[n]!=null?arguments[n]:{};n%2?Hy(Object(a),!0).forEach(function(l){b_(t,l,a[l])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(a)):Hy(Object(a)).forEach(function(l){Object.defineProperty(t,l,Object.getOwnPropertyDescriptor(a,l))})}return t}function b_(t,n,a){return n=w_(n),n in t?Object.defineProperty(t,n,{value:a,enumerable:!0,configurable:!0,writable:!0}):t[n]=a,t}function w_(t){var n=S_(t,"string");return typeof n=="symbol"?n:n+""}function S_(t,n){if(typeof t!="object"||!t)return t;var a=t[Symbol.toPrimitive];if(a!==void 0){var l=a.call(t,n);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(n==="string"?String:Number)(t)}function Ub(t){return t&&t.map((n,a)=>xn.createElement(n.tag,Vc({key:a},n.attr),Ub(n.child)))}function rt(t){return n=>xn.createElement(x_,qc({attr:Vc({},t.attr)},n),Ub(t.child))}function x_(t){var n=a=>{var{attr:l,size:s,title:u}=t,f=v_(t,g_),p=s||a.size||"1em",h;return a.className&&(h=a.className),t.className&&(h=(h?h+" ":"")+t.className),xn.createElement("svg",qc({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},a.attr,l,f,{className:h,style:Vc(Vc({color:t.color||a.color},a.style),t.style),height:p,width:p,xmlns:"http://www.w3.org/2000/svg"}),u&&xn.createElement("title",null,u),t.children)};return Uy!==void 0?xn.createElement(Uy.Consumer,null,a=>n(a)):n(Ib)}function By(t){return rt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19 13.586V10c0-3.217-2.185-5.927-5.145-6.742C13.562 2.52 12.846 2 12 2s-1.562.52-1.855 1.258C7.185 4.074 5 6.783 5 10v3.586l-1.707 1.707A.996.996 0 0 0 3 16v2a1 1 0 0 0 1 1h16a1 1 0 0 0 1-1v-2a.996.996 0 0 0-.293-.707L19 13.586zM19 17H5v-.586l1.707-1.707A.996.996 0 0 0 7 14v-4c0-2.757 2.243-5 5-5s5 2.243 5 5v4c0 .266.105.52.293.707L19 16.414V17zm-7 5a2.98 2.98 0 0 0 2.818-2H9.182A2.98 2.98 0 0 0 12 22z"},child:[]}]})(t)}function E_(t){return rt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"m7 17.013 4.413-.015 9.632-9.54c.378-.378.586-.88.586-1.414s-.208-1.036-.586-1.414l-1.586-1.586c-.756-.756-2.075-.752-2.825-.003L7 12.583v4.43zM18.045 4.458l1.589 1.583-1.597 1.582-1.586-1.585 1.594-1.58zM9 13.417l6.03-5.973 1.586 1.586-6.029 5.971L9 15.006v-1.589z"},child:[]},{tag:"path",attr:{d:"M5 21h14c1.103 0 2-.897 2-2v-8.668l-2 2V19H8.158c-.026 0-.053.01-.079.01-.033 0-.066-.009-.1-.01H5V5h6.847l2-2H5c-1.103 0-2 .897-2 2v14c0 1.103.897 2 2 2z"}
61,child:[]}]})(t)}function __(t){return rt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 2C9.243 2 7 4.243 7 7v2H6c-1.103 0-2 .897-2 2v9c0 1.103.897 2 2 2h12c1.103 0 2-.897 2-2v-9c0-1.103-.897-2-2-2h-1V7c0-2.757-2.243-5-5-5zM9 7c0-1.654 1.346-3 3-3s3 1.346 3 3v2H9V7zm9.002 13H13v-2.278c.595-.347 1-.985 1-1.722 0-1.103-.897-2-2-2s-2 .897-2 2c0 .736.405 1.375 1 1.722V20H6v-9h12l.002 9z"},child:[]}]})(t)}function T_(t){return rt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M16 13v-2H7V8l-5 4 5 4v-3z"},child:[]},{tag:"path",attr:{d:"M20 3h-9c-1.103 0-2 .897-2 2v4h2V5h9v14h-9v-4H9v4c0 1.103.897 2 2 2h9c1.103 0 2-.897 2-2V5c0-1.103-.897-2-2-2z"},child:[]}]})(t)}function C_(t){return rt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M4 6h16v2H4zm0 5h16v2H4zm0 5h16v2H4z"},child:[]}]})(t)}function O_(t){return rt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M20.742 13.045a8.088 8.088 0 0 1-2.077.271c-2.135 0-4.14-.83-5.646-2.336a8.025 8.025 0 0 1-2.064-7.723A1 1 0 0 0 9.73 2.034a10.014 10.014 0 0 0-4.489 2.582c-3.898 3.898-3.898 10.243 0 14.143a9.937 9.937 0 0 0 7.072 2.93 9.93 9.93 0 0 0 7.07-2.929 10.007 10.007 0 0 0 2.583-4.491 1.001 1.001 0 0 0-1.224-1.224zm-2.772 4.301a7.947 7.947 0 0 1-5.656 2.343 7.953 7.953 0 0 1-5.658-2.344c-3.118-3.119-3.118-8.195 0-11.314a7.923 7.923 0 0 1 2.06-1.483 10.027 10.027 0 0 0 2.89 7.848 9.972 9.972 0 0 0 7.848 2.891 8.036 8.036 0 0 1-1.484 2.059z"},child:[]}]})(t)}function A_(t){return rt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M16.57 22a2 2 0 0 0 1.43-.59l2.71-2.71a1 1 0 0 0 0-1.41l-4-4a1 1 0 0 0-1.41 0l-1.6 1.59a7.55 7.55 0 0 1-3-1.59 7.62 7.62 0 0 1-1.59-3l1.59-1.6a1 1 0 0 0 0-1.41l-4-4a1 1 0 0 0-1.41 0L2.59 6A2 2 0 0 0 2 7.43 15.28 15.28 0 0 0 6.3 17.7 15.28 15.28 0 0 0 16.57 22zM6 5.41 8.59 8 7.3 9.29a1 1 0 0 0-.3.91 10.12 10.12 0 0 0 2.3 4.5 10.08 10.08 0 0 0 4.5 2.3 1 1 0 0 0 .91-.27L16 15.41 18.59 18l-2 2a13.28 13.28 0 0 1-8.87-3.71A13.28 13.28 0 0 1 4 7.41zM20 11h2a8.81 8.81 0 0 0-9-9v2a6.77 6.77 0 0 1 7 7z"},child:[]},{tag:"path",attr:{d:"M13 8c2.1 0 3 .9 3 3h2c0-3.22-1.78-5-5-5z"},child:[]}]})(t)}function R_(t){return rt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M8 16H4l6 6V2H8zm6-11v17h2V8h4l-6-6z"},child:[]}]})(t)}function N_(t){return rt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M6.993 12c0 2.761 2.246 5.007 5.007 5.007s5.007-2.246 5.007-5.007S14.761 6.993 12 6.993 6.993 9.239 6.993 12zM12 8.993c1.658 0 3.007 1.349 3.007 3.007S13.658 15.007 12 15.007 8.993 13.658 8.993 12 10.342 8.993 12 8.993zM10.998 19h2v3h-2zm0-17h2v3h-2zm-9 9h3v2h-3zm17 0h3v2h-3zM4.219 18.363l2.12-2.122 1.415 1.414-2.12 2.122zM16.24 6.344l2.122-2.122 1.414 1.414-2.122 2.122zM6.342 7.759 4.22 5.637l1.415-1.414 2.12 2.122zm13.434 10.605-1.414 1.414-2.122-2.122 1.414-1.414z"},child:[]}]})(t)}function M_(t){return rt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M5 22h14c1.103 0 2-.897 2-2V5c0-1.103-.897-2-2-2h-2a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1H5c-1.103 0-2 .897-2 2v15c0 1.103.897 2 2 2zM5 5h2v2h10V5h2v15H5V5z"},child:[]},{tag:"path",attr:{d:"m11 13.586-1.793-1.793-1.414 1.414L11 16.414l5.207-5.207-1.414-1.414z"},child:[]}]})(t)}/*! 62* sweetalert2 v11.21.2 63* Released under the MIT License. 64*/function Hb(t,n,a){if(typeof t=="function"?t===n:t.has(n))return arguments.length<3?n:a;throw new TypeError("Private element is not present on this object")}function D_(t,n){if(n.has(t))throw new TypeError("Cannot initialize the same private elements twice on an object")}function qy(t,n){return t.get(Hb(t,n))}function j_(t,n,a){D_(t,n),n.set(t,a)}function k_(t,n,a){return t.set(Hb(t,n),a),a}const L_=100,je={},z_=()=>{je.previousActiveElement instanceof HTMLElement?(je.previousActiveElement.focus(),je.previousActiveElement=null):document.body&&document.body.focus()},P_=t=>new Promise(n=>{if(!t)return n();const a=window.scrollX,l=window.scrollY;je.restoreFocusTimeout=setTimeout(()=>{z_(),n()},L_),window.scrollTo(a,l)}),Bb="swal2-",I_=["container","shown","height-auto","iosfix","popup","modal","no-backdrop","no-transition","toast","toast-shown","show","hide","close","title","html-container","actions","confirm","deny","cancel","footer","icon","icon-content","image","input","file","range","select","radio","checkbox","label","textarea","inputerror","input-label","validation-message","progress-steps","active-progress-step","progress-step","progress-step-line","loader","loading","styled","top","top-start","to
64p-end","top-left","top-right","center","center-start","center-end","center-left","center-right","bottom","bottom-start","bottom-end","bottom-left","bottom-right","grow-row","grow-column","grow-fullscreen","rtl","timer-progress-bar","timer-progress-bar-container","scrollbar-measure","icon-success","icon-warning","icon-info","icon-question","icon-error","draggable","dragging"],se=I_.reduce((t,n)=>(t[n]=Bb+n,t),{}),U_=["success","warning","info","question","error"],Gc=U_.reduce((t,n)=>(t[n]=Bb+n,t),{}),qb="SweetAlert2:",Xh=t=>t.charAt(0).toUpperCase()+t.slice(1),fn=t=>{console.warn(`${qb} ${typeof t=="object"?t.join(" "):t}`)},Ci=t=>{console.error(`${qb} ${t}`)},Vy=[],H_=t=>{Vy.includes(t)||(Vy.push(t),fn(t))},Vb=(t,n=null)=>{H_(`"${t}" is deprecated and will be removed in the next major release.${n?` Use "${n}" instead.`:""}`)},vu=t=>typeof t=="function"?t():t,Fh=t=>t&&typeof t.toPromise=="function",Jo=t=>Fh(t)?t.toPromise():Promise.resolve(t),Kh=t=>t&&Promise.resolve(t)===t,mn=()=>document.body.querySelector(`.${se.container}`),es=t=>{const n=mn();return n?n.querySelector(t):null},Un=t=>es(`.${t}`),lt=()=>Un(se.popup),Rl=()=>Un(se.icon),B_=()=>Un(se["icon-content"]),Gb=()=>Un(se.title),Wh=()=>Un(se["html-container"]),$b=()=>Un(se.image),Qh=()=>Un(se["progress-steps"]),yu=()=>Un(se["validation-message"]),Mr=()=>es(`.${se.actions} .${se.confirm}`),Nl=()=>es(`.${se.actions} .${se.cancel}`),Oi=()=>es(`.${se.actions} .${se.deny}`),q_=()=>Un(se["input-label"]),Ml=()=>es(`.${se.loader}`),ts=()=>Un(se.actions),Yb=()=>Un(se.footer),bu=()=>Un(se["timer-progress-bar"]),Zh=()=>Un(se.close),V_=` 65 a[href], 66 area[href], 67 input:not([disabled]), 68 select:not([disabled]), 69 textarea:not([disabled]), 70 button:not([disabled]), 71 iframe, 72 object, 73 embed, 74 [tabindex="0"], 75 [contenteditable], 76 audio[controls], 77 video[controls], 78 summary 79`,Jh=()=>{const t=lt();if(!t)return[];const n=t.querySelectorAll('[tabindex]:not([tabindex="-1"]):not([tabindex="0"])'),a=Array.from(n).sort((u,f)=>{const p=parseInt(u.getAttribute("tabindex")||"0"),h=parseInt(f.getAttribute("tabindex")||"0");return p>h?1:p<h?-1:0}),l=t.querySelectorAll(V_),s=Array.from(l).filter(u=>u.getAttribute("tabindex")!=="-1");return[...new Set(a.concat(s))].filter(u=>En(u))},em=()=>ta(document.body,se.shown)&&!ta(document.body,se["toast-shown"])&&!ta(document.body,se["no-backdrop"]),wu=()=>{const t=lt();return t?ta(t,se.toast):!1},G_=()=>{const t=lt();return t?t.hasAttribute("data-loading"):!1},Hn=(t,n)=>{if(t.textContent="",n){const l=new DOMParser().parseFromString(n,"text/html"),s=l.querySelector("head");s&&Array.from(s.childNodes).forEach(f=>{t.appendChild(f)});const u=l.querySelector("body");u&&Array.from(u.childNodes).forEach(f=>{f instanceof HTMLVideoElement||f instanceof HTMLAudioElement?t.appendChild(f.cloneNode(!0)):t.appendChild(f)})}},ta=(t,n)=>{if(!n)return!1;const a=n.split(/\s+/);for(let l=0;l<a.length;l++)if(!t.classList.contains(a[l]))return!1;return!0},$_=(t,n)=>{Array.from(t.classList).forEach(a=>{!Object.values(se).includes(a)&&!Object.values(Gc).includes(a)&&!Object.values(n.showClass||{}).includes(a)&&t.classList.remove(a)})},In=(t,n,a)=>{if($_(t,n),!n.customClass)return;const l=n.customClass[a];if(l){if(typeof l!="string"&&!l.forEach){fn(`Invalid type of customClass.${a}! Expected string or iterable object, got "${typeof l}"`);return}st(t,l)}},Su=(t,n)=>{if(!n)return null;switch(n){case"select":case"textarea":case"file":return t.querySelector(`.${se.popup} > .${se[n]}`);case"checkbox":return t.querySelector(`.${se.popup} > .${se.checkbox} input`);case"radio":return t.querySelector(`.${se.popup} > .${se.radio} input:checked`)||t.querySelector(`.${se.popup} > .${se.radio} input:first-child`);case"range":return t.querySelector(`.${se.popup} > .${se.range} input`);default:return t.querySelector(`.${se.popup} > .${se.input}`)}},Xb=t=>{if(t.focus(),t.type!=="file"){const n=t.value;t.value="",t.value=n}},Fb=(t,n,a)=>{!t||!n||(typeof n=="string"&&(n=n.split(/\s+/).filter(Boolean)),n.forEach(l=>{Array.isArray(t)?t.forEach(s=>{a?s.classList.add(l):s.classList.remove(l)}):a?t.classList.add(l):t.classList.remove(l)}))},st=(t,n)=>{Fb(t,n,!0)},nr=(t,n)=>{Fb(t,n,!1)},za=(t,n)=>{const a=Array.from(t.children);for(let l=0;l<a.length;l++){const s=a[l];if(s instanceof HTMLElement&&ta(s,n))return s}},vi=(t,n,a)=>{a===`${parseInt(a)}`&&(a=parseInt(a)),a||parseInt(a)===0?t.style.setProperty(n,typeof a=="number"?`${a}px`:a):t.style.removeProperty(n)},Jt=(t,n="flex")=>{t&&(t.style.display=n)},un=t=>{t&&(t.style.display="none")},tm=(t,n="block")=>{t&&new MutationObserver(()=>{ns(t,t.innerHTML,n)}).observe(t,{childList:!0,subtree:!0})},Gy=(t,n,a,l)=>{const s=t.querySelector(n);s&&s.style.setProperty(a,l)},ns=(t,n,a="flex")=>
79{n?Jt(t,a):un(t)},En=t=>!!(t&&(t.offsetWidth||t.offsetHeight||t.getClientRects().length)),Y_=()=>!En(Mr())&&!En(Oi())&&!En(Nl()),Sh=t=>t.scrollHeight>t.clientHeight,X_=(t,n)=>{let a=t;for(;a&&a!==n;){if(Sh(a))return!0;a=a.parentElement}return!1},Kb=t=>{const n=window.getComputedStyle(t),a=parseFloat(n.getPropertyValue("animation-duration")||"0"),l=parseFloat(n.getPropertyValue("transition-duration")||"0");return a>0||l>0},nm=(t,n=!1)=>{const a=bu();a&&En(a)&&(n&&(a.style.transition="none",a.style.width="100%"),setTimeout(()=>{a.style.transition=`width ${t/1e3}s linear`,a.style.width="0%"},10))},F_=()=>{const t=bu();if(!t)return;const n=parseInt(window.getComputedStyle(t).width);t.style.removeProperty("transition"),t.style.width="100%";const a=parseInt(window.getComputedStyle(t).width),l=n/a*100;t.style.width=`${l}%`},K_=()=>typeof window>"u"||typeof document>"u",W_=` 80 <div aria-labelledby="${se.title}" aria-describedby="${se["html-container"]}" class="${se.popup}" tabindex="-1"> 81 <button type="button" class="${se.close}"></button> 82 <ul class="${se["progress-steps"]}"></ul> 83 <div class="${se.icon}"></div> 84 <img class="${se.image}" /> 85 <h2 class="${se.title}" id="${se.title}"></h2> 86 <div class="${se["html-container"]}" id="${se["html-container"]}"></div> 87 <input class="${se.input}" id="${se.input}" /> 88 <input type="file" class="${se.file}" /> 89 <div class="${se.range}"> 90 <input type="range" /> 91 <output></output> 92 </div> 93 <select class="${se.select}" id="${se.select}"></select> 94 <div class="${se.radio}"></div> 95 <label class="${se.checkbox}"> 96 <input type="checkbox" id="${se.checkbox}" /> 97 <span class="${se.label}"></span> 98 </label> 99 <textarea class="${se.textarea}" id="${se.textarea}"></textarea> 100 <div class="${se["validation-message"]}" id="${se["validation-message"]}"></div> 101 <div class="${se.actions}"> 102 <div class="${se.loader}"></div> 103 <button type="button" class="${se.confirm}"></button> 104 <button type="button" class="${se.deny}"></button> 105 <button type="button" class="${se.cancel}"></button> 106 </div> 107 <div class="${se.footer}"></div> 108 <div class="${se["timer-progress-bar-container"]}"> 109 <div class="${se["timer-progress-bar"]}"></div> 110 </div> 111 </div> 112`.replace(/(^|\n)\s*/g,""),Q_=()=>{const t=mn();return t?(t.remove(),nr([document.documentElement,document.body],[se["no-backdrop"],se["toast-shown"],se["has-column"]]),!0):!1},di=()=>{je.currentInstance.resetValidationMessage()},Z_=()=>{const t=lt(),n=za(t,se.input),a=za(t,se.file),l=t.querySelector(`.${se.range} input`),s=t.querySelector(`.${se.range} output`),u=za(t,se.select),f=t.querySelector(`.${se.checkbox} input`),p=za(t,se.textarea);n.oninput=di,a.onchange=di,u.onchange=di,f.onchange=di,p.oninput=di,l.oninput=()=>{di(),s.value=l.value},l.onchange=()=>{di(),s.value=l.value}},J_=t=>typeof t=="string"?document.querySelector(t):t,eT=t=>{const n=lt();n.setAttribute("role",t.toast?"alert":"dialog"),n.setAttribute("aria-live",t.toast?"polite":"assertive"),t.toast||n.setAttribute("aria-modal","true")},tT=t=>{window.getComputedStyle(t).direction==="rtl"&&st(mn(),se.rtl)},nT=t=>{const n=Q_();if(K_()){Ci("SweetAlert2 requires document to initialize");return}const a=document.createElement("div");a.className=se.container,n&&st(a,se["no-transition"]),Hn(a,W_),a.dataset.swal2Theme=t.theme;const l=J_(t.target);l.appendChild(a),t.topLayer&&(a.setAttribute("popover",""),a.showPopover()),eT(t),tT(l),Z_()},rm=(t,n)=>{t instanceof HTMLElement?n.appendChild(t):typeof t=="object"?rT(t,n):t&&Hn(n,t)},rT=(t,n)=>{t.jquery?aT(n,t):Hn(n,t.toString())},aT=(t,n)=>{if(t.textContent="",0 in n)for(let a=0;a in n;a++)t.appendChild(n[a].cloneNode(!0));else t.appendChild(n.cloneNode(!0))},iT=(t,n)=>{const a=ts(),l=Ml();!a||!l||(!n.showConfirmButton&&!n.showDenyButton&&!n.showCancelButton?un(a):Jt(a),In(a,n,"actions"),lT(a,l,n),Hn(l,n.loaderHtml||""),In(l,n,"loader"))};function lT(t,n,a){const l=Mr(),s=Oi(),u=Nl();!l||!s||!u||($f(l,"confirm",a),$f(s,"deny",a),$f(u,"cancel",a),oT(l,s,u,a),a.reverseButtons&&(a.toast?(t.insertBefore(u,l),t.insertBefore(s,l)):(t.insertBefore(u,n),t.insertBefore(s,n),t.insertBefore(l,n))))}function oT(t,n,a,l){if(!l.buttonsStyling){nr([t,n,a],se.styled);return}st([t,n,a],se.styled),l.confirmButtonColor&&t.style.setProperty("--swal2-confirm-button-background-color",l.confirmButtonColor),l.denyButtonColor&&n.style.setProperty("--swal2-deny-button-background-color",l.denyButtonColor),l.cancelButtonColor&&a.style.setProperty("--swal2-cancel-button-background-color",l.cancelButtonColor),Gf(t),Gf(n),Gf(a)}function Gf(t){const n=window.getComputedStyle(t),a=n.backgroundColor.replace(/rgba?\((\d+), (\d+), (\d+).*/,"rgba($1, $2, $3, 0.5)");t.style.setProperty("--swal2-action-button-outline",n.getPropertyValue("--swal2-outline").replace(/ rgba\(.*/,` ${a}`))}function $f(t,n,a){const l=Xh(n);ns(t,a[`show${l}Button`],"inline-block"),Hn(t,a[`${n}ButtonText`]||""),t.setAttribute("aria-label",a[`${n}ButtonAriaLabel`]||""),t.className=se[n],In(t,a,`${n}Button`)}const sT=(t,n)=>{const a=Zh();a&&(Hn(a,n.closeButtonHtml||""),In(a,n,"closeButton"),ns(a,n.showCloseButton),a.setAttribute("aria-label",n.closeButtonAriaLabel||""))},cT=(t,n)=>{const a=mn();a&&(uT(a,n.backdrop),dT(a,n.position),fT(a,n.grow),In(a,n,"container"))};function uT(t,n){typeof n=="string"?t.style.background=n:n||st([document.documentElement,document.body],se["no-backdrop"])}function dT(t,n){n&&(n in se?st(t,se[n]):(fn('The "position" parameter is not val
112id, defaulting to "center"'),st(t,se.center)))}function fT(t,n){n&&st(t,se[`grow-${n}`])}var _t={innerParams:new WeakMap,domCache:new WeakMap};const hT=["input","file","range","select","radio","checkbox","textarea"],mT=(t,n)=>{const a=lt();if(!a)return;const l=_t.innerParams.get(t),s=!l||n.input!==l.input;hT.forEach(u=>{const f=za(a,se[u]);f&&(vT(u,n.inputAttributes),f.className=se[u],s&&un(f))}),n.input&&(s&&pT(n),yT(n))},pT=t=>{if(!t.input)return;if(!Pt[t.input]){Ci(`Unexpected type of input! Expected ${Object.keys(Pt).join(" | ")}, got "${t.input}"`);return}const n=Wb(t.input);if(!n)return;const a=Pt[t.input](n,t);Jt(n),t.inputAutoFocus&&setTimeout(()=>{Xb(a)})},gT=t=>{for(let n=0;n<t.attributes.length;n++){const a=t.attributes[n].name;["id","type","value","style"].includes(a)||t.removeAttribute(a)}},vT=(t,n)=>{const a=lt();if(!a)return;const l=Su(a,t);if(l){gT(l);for(const s in n)l.setAttribute(s,n[s])}},yT=t=>{if(!t.input)return;const n=Wb(t.input);n&&In(n,t,"input")},am=(t,n)=>{!t.placeholder&&n.inputPlaceholder&&(t.placeholder=n.inputPlaceholder)},rs=(t,n,a)=>{if(a.inputLabel){const l=document.createElement("label"),s=se["input-label"];l.setAttribute("for",t.id),l.className=s,typeof a.customClass=="object"&&st(l,a.customClass.inputLabel),l.innerText=a.inputLabel,n.insertAdjacentElement("beforebegin",l)}},Wb=t=>{const n=lt();if(n)return za(n,se[t]||se.input)},$c=(t,n)=>{["string","number"].includes(typeof n)?t.value=`${n}`:Kh(n)||fn(`Unexpected type of inputValue! Expected "string", "number" or "Promise", got "${typeof n}"`)},Pt={};Pt.text=Pt.email=Pt.password=Pt.number=Pt.tel=Pt.url=Pt.search=Pt.date=Pt["datetime-local"]=Pt.time=Pt.week=Pt.month=(t,n)=>($c(t,n.inputValue),rs(t,t,n),am(t,n),t.type=n.input,t);Pt.file=(t,n)=>(rs(t,t,n),am(t,n),t);Pt.range=(t,n)=>{const a=t.querySelector("input"),l=t.querySelector("output");return $c(a,n.inputValue),a.type=n.input,$c(l,n.inputValue),rs(a,t,n),t};Pt.select=(t,n)=>{if(t.textContent="",n.inputPlaceholder){const a=document.createElement("option");Hn(a,n.inputPlaceholder),a.value="",a.disabled=!0,a.selected=!0,t.appendChild(a)}return rs(t,t,n),t};Pt.radio=t=>(t.textContent="",t);Pt.checkbox=(t,n)=>{const a=Su(lt(),"checkbox");a.value="1",a.checked=!!n.inputValue;const l=t.querySelector("span");return Hn(l,n.inputPlaceholder||n.inputLabel),a};Pt.textarea=(t,n)=>{$c(t,n.inputValue),am(t,n),rs(t,t,n);const a=l=>parseInt(window.getComputedStyle(l).marginLeft)+parseInt(window.getComputedStyle(l).marginRight);return setTimeout(()=>{if("MutationObserver"in window){const l=parseInt(window.getComputedStyle(lt()).width),s=()=>
112{if(!document.body.contains(t))return;const u=t.offsetWidth+a(t);u>l?lt().style.width=`${u}px`:vi(lt(),"width",n.width)};new MutationObserver(s).observe(t,{attributes:!0,attributeFilter:["style"]})}}),t};const bT=(t,n)=>{const a=Wh();a&&(tm(a),In(a,n,"htmlContainer"),n.html?(rm(n.html,a),Jt(a,"block")):n.text?(a.textContent=n.text,Jt(a,"block")):un(a),mT(t,n))},wT=(t,n)=>{const a=Yb();a&&(tm(a),ns(a,n.footer,"block"),n.footer&&rm(n.footer,a),In(a,n,"footer"))},ST=(t,n)=>{const a=_t.innerParams.get(t),l=Rl();if(!l)return;if(a&&n.icon===a.icon){Yy(l,n),$y(l,n);return}if(!n.icon&&!n.iconHtml){un(l);return}if(n.icon&&Object.keys(Gc).indexOf(n.icon)===-1){Ci(`Unknown icon! Expected "success", "error", "warning", "info" or "question", got "${n.icon}"`),un(l);return}Jt(l),Yy(l,n),$y(l,n),st(l,n.showClass&&n.showClass.icon),window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",Qb)},$y=(t,n)=>{for(const[a,l]of Object.entries(Gc))n.icon!==a&&nr(t,l);st(t,n.icon&&Gc[n.icon]),_T(t,n),Qb(),In(t,n,"icon")},Qb=()=>{const t=lt();if(!t)return;const n=window.getComputedStyle(t).getPropertyValue("background-color"),a=t.querySelectorAll("[class^=swal2-success-circular-line], .swal2-success-fix");for(let l=0;l<a.length;l++)a[l].style.backgroundColor=n},xT=` 113 <div class="swal2-success-circular-line-left"></div> 114 <span class="swal2-success-line-tip"></span> <span class="swal2-success-line-long"></span> 115 <div class="swal2-success-ring"></div> <div class="swal2-success-fix"></div> 116 <div class="swal2-success-circular-line-right"></div> 117`,ET=` 118 <span class="swal2-x-mark"> 119 <span class="swal2-x-mark-line-left"></span> 120 <span class="swal2-x-mark-line-right"></span> 121 </span> 122`,Yy=(t,n)=>{if(!n.icon&&!n.iconHtml)return;let a=t.innerHTML,l="";n.iconHtml?l=Xy(n.iconHtml):n.icon==="success"?(l=xT,a=a.replace(/ style=".*?"/g,"")):n.icon==="error"?l=ET:n.icon&&(l=Xy({question:"?",warning:"!",info:"i"}[n.icon])),a.trim()!==l.trim()&&Hn(t,l)},_T=(t,n)=>{if(n.iconColor){t.style.color=n.iconColor,t.style.borderColor=n.iconColor;for(const a of[".swal2-success-line-tip",".swal2-success-line-long",".swal2-x-mark-line-left",".swal2-x-mark-line-right"])Gy(t,a,"background-color",n.iconColor);Gy(t,".swal2-success-ring","border-color",n.iconColor)}},Xy=t=>`<div class="${se["icon-content"]}">${t}</div>`,TT=(t,n)=>{const a=$b();if(a){if(!n.imageUrl){un(a);return}Jt(a,""),a.setAttribute("src",n.imageUrl),a.setAttribute("alt",n.imageAlt||""),vi(a,"width",n.imageWidth),vi(a,"height",n.imageHeight),a.className=se.image,In(a,n,"image")}};let im=!1,Zb=0,Jb=0,ew=0,tw=0;const CT=t=>{t.addEventListener("mousedown",Yc),document.body.addEventListener("mousemove",Xc),t.addEventListener("mouseup",Fc),t.addEventListener("touchstart",Yc),document.body.addEventListener("touchmove",Xc),t.addEventListener("touchend",Fc)},OT=t=>{t.removeEventListener("mousedown",Yc),document.body.removeEventListener("mousemove",Xc),t.removeEventListener("mouseup",Fc),t.removeEventListener("touchstart",Yc),document.body.removeEventListener("touchmove",Xc),t.removeEventListener("touchend",Fc)},Yc=t=>{const n=lt();if(t.target===n||Rl().contains(t.target)){im=!0;const a=nw(t);Zb=a.clientX,Jb=a.clientY,ew=parseInt(n.style.insetInlineStart)||0,tw=parseInt(n.style.insetBlockStart)||0,st(n,"swal2-dragging")}},Xc=t=>{const n=lt();if(im){let{clientX:a,clientY:l}=nw(t);n.style.insetInlineStart=`${ew+(a-Zb)}px`,n.style.insetBlockStart=`${tw+(l-Jb)}px`}},Fc=()=>{const t=lt();im=!1,nr(t,"swal2-dragging")},nw=t=>{let n=0,a=0;return t.type.startsWith("mouse")?(n=t.clientX,a=t.clientY):t.type.startsWith("touch")&&(n=t.touches[0].clientX,a=t.touches[0].clientY),{clientX:n,clientY:a}},AT=(t,n)=>{const a=mn(),l=lt();if(!(!a||!l)){if(n.toast){vi(a,"width",n.width),l.style.width="100%";const s=Ml();s&&l.insertBefore(s,Rl())}else vi(l,"width",n.width);vi(l,"padding",n.padding),n.color&&(l.style.color=n.color),n.background&&(l.style.background=n.background),un(yu()),RT(l,n),n.draggable&&!n.toast?(st(l,se.draggable),CT(l)):(nr(l,se.draggable),OT(l))}},RT=(t,n)=>{const a=n.showClass||{};t.className=`${se.popup} ${En(t)?a.popup:""}`,n.toast?(st([document.documentElement,document.body],se["toast-shown"]),st(t,se.toast)):st(t,se.modal),In(t,n,"popup"),typeof n.customClass=="string"&&st(t,n.customClass),n.icon&&st(t,se[`icon-${n.icon}`])},NT=(t,n)=>{const a=Qh();if(!a)return;const{progressSteps:l,currentProgressStep:s}=n;if(!l||l.length===0||s===void 0){un(a);return}Jt(a),a.textContent="",s>=l.length&&fn("Invalid currentProgressStep parameter, it should be less than progressSteps.length (currentProgressStep like JS arrays starts from 0)"),l.forEach((u,f)=>{const p=MT(u);if(a.appendChild(p),f===s&&st(p,se["active-progress-step"]),f!==l.length-1){const h=DT(n);a.appendChild(h)}})},MT=t=>{const n=document.createElement("li");return st(n,se["progress-step"]),Hn(n,t),n},DT=t=>{const n=document.createElement("li");return st(n,se["progress-step-line"]),t.progressStepsDistance&&vi(n,"width",t.progressStepsDistance),n},jT=(t,n)=>{const a=Gb();a&&(tm(a),ns(a,n.title||n.titleText,"block"),n.title&&rm(n.title,a),n.titleText&&(a.innerText=n.titleText),In(a,n,"title"))},rw=(t,n)=>{AT(t,n),cT(t,n),NT(t,n),ST(t,n),TT(t,n),jT(t,n),sT(t,n),bT(t,n),iT(t,n),wT(t,n);const a=lt();typeof n.didRender=="function"&&a&&n.didRender(a),je.eventEmitter.emit("didRender",a)},kT=()=>En(lt()),aw=()=>{var t;return(t=Mr())===null||t===void 0?void 0:t.click()},LT=()=>{var t;return(t=Oi())===null||t===void 0?void 0:t.click()},zT=()=>{var t;return(t=Nl())===null||t===void 0?void 0:t.click()},Dl=Object.freeze({cancel:"cancel",backdrop:"backdrop",close:"close",esc:"esc",timer:"timer"}),iw=t=>{t.keydownTarget&&t.keydownHandlerAdded&&(t.keydownTarget.removeEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!1)},PT=(t,n,a)=>{iw(t),n.toast||(t.keydownHandler=l=>UT(n,l,a),t.keydownTarget=n.keydownListenerCapture?window:lt(),t.keydownListenerCapture=n.keydownListenerCapture,t.keydownTarget.addEventListener("keydown",t.keydownHandler,{capture:t.keydownListenerCapture}),t.keydownHandlerAdded=!0)},xh=(t,n)=>{var a;const l=Jh();if(l.length){t=t+n,t===-2&&(t=l.length-1),t===l.length?t=0:t===-1&&(t=l.length-1),l[t].focus();return}(a=lt())===null||a===void 0||a.focus()},lw=["ArrowRight","ArrowDown"],IT=["ArrowLeft","ArrowUp"],UT=(t,n,a)=>{t&&(n.isComposing||n.keyCode===229||(t.stopKeydownPropagation&&n.stopPropagation(),n.key==="Enter"?HT(n,t):n.key==="Tab"?BT(n):[...lw,...IT].includes(n.key)?qT(n.key):n.key==="Escape"&&VT(n,t,a)))},HT=(t,n)=>{if(!vu(n.allowEnterKey))return;const a=Su(lt(),n.input);if(t.target&&a&&t.target instanceof HTMLElement&&t.target.outerHTML===a.outerHTML){if(["textarea","file"].includes(n.input))return;aw(),t.preventDefault()}},BT=t=>{const n=t.target,a=Jh();let l=-1;for(let s=0;s<a.length;s++)if(n===a[s]){l=s;break}t.shiftKey?xh(l,-1):xh(l,1),t.stopPropagation(),t.preventDefault()},qT=t=>{const n=ts(),a=Mr(),l=Oi(),s=Nl();if(!n||!a||!l||!s)return;const u=[a,l,s];if(document.activeElement instanceof HTMLElement&&!u.includes(document.activeElement))return;const f=lw.includes(t)?"nextElementSibling":"previousElementSibling";let p=document.activeElement;if(p){for(let h=0;h<n.children.length;h++){if(p=p[f],!p)return;if(p instanceof HTMLButtonElement&&En(p))break}p instanceof HTMLButtonElement&&p.focus()}},VT=(t,n,a)=>{vu(n.allowEscapeKey)&&(t.preventDefault(),a(Dl.esc))};
122var bl={swalPromiseResolve:new WeakMap,swalPromiseReject:new WeakMap};const GT=()=>{const t=mn();Array.from(document.body.children).forEach(a=>{a.contains(t)||(a.hasAttribute("aria-hidden")&&a.setAttribute("data-previous-aria-hidden",a.getAttribute("aria-hidden")||""),a.setAttribute("aria-hidden","true"))})},ow=()=>{Array.from(document.body.children).forEach(n=>{n.hasAttribute("data-previous-aria-hidden")?(n.setAttribute("aria-hidden",n.getAttribute("data-previous-aria-hidden")||""),n.removeAttribute("data-previous-aria-hidden")):n.removeAttribute("aria-hidden")})},sw=typeof window<"u"&&!!window.GestureEvent,$T=()=>{if(sw&&!ta(document.body,se.iosfix)){const t=document.body.scrollTop;document.body.style.top=`${t*-1}px`,st(document.body,se.iosfix),YT()}},YT=()=>{const t=mn();if(!t)return;let n;t.ontouchstart=a=>{n=XT(a)},t.ontouchmove=a=>{n&&(a.preventDefault(),a.stopPropagation())}},XT=t=>{const n=t.target,a=mn(),l=Wh();return!a||!l||FT(t)||KT(t)?!1:n===a||!Sh(a)&&n instanceof HTMLElement&&!X_(n,l)&&n.tagName!=="INPUT"&&n.tagName!=="TEXTAREA"&&!(Sh(l)&&l.contains(n))},FT=t=>t.touches&&t.touches.length&&t.touches[0].touchType==="stylus",KT=t=>t.touches&&t.touches.length>1,WT=()=>{if(ta(document.body,se.iosfix)){const t=parseInt(document.body.style.top,10);nr(document.body,se.iosfix),document.body.style.top="",document.body.scrollTop=t*-1}},QT=()=>{const t=document.createElement("div");t.className=se["scrollbar-measure"],document.body.appendChild(t);const n=t.getBoundingClientRect().width-t.clientWidth;return document.body.removeChild(t),n};let fl=null;const ZT=t=>{fl===null&&(document.body.scrollHeight>window.innerHeight||t==="scroll")&&(fl=parseInt(window.getComputedStyle(document.body).getPropertyValue("padding-right")),document.body.style.paddingRight=`${fl+QT()}px`)},JT=()=>{fl!==null&&(document.body.style.paddingRight=`${fl}px`,fl=null)};function cw(t,n,a,l){wu()?Fy(t,l):(P_(a).then(()=>Fy(t,l)),iw(je)),sw?(n.setAttribute("style","display:none !important"),n.removeAttribute("class"),n.innerHTML=""):n.remove(),em()&&(JT(),WT(),ow()),eC()}function eC(){nr([document.documentElement,document.body],[se.shown,se["height-auto"],se["no-backdrop"],se["toast-shown"]])}function Pa(t){t=nC(t);const n=bl.swalPromiseResolve.get(this),a=tC(this);this.isAwaitingPromise?t.isDismissed||(as(this),n(t)):a&&n(t)}const tC=t=>{const n=lt();if(!n)return!1;const a=_t.innerParams.get(t);if(!a||ta(n,a.hideClass.popup))return!1;nr(n,a.showClass.popup),st(n,a.hideClass.popup);const l=mn();return nr(l,a.showClass.backdrop),st(l,a.hideClass.backdrop),rC(t,n,a),!0};function uw(t){const n=bl.swalPromiseReject.get(this);as(this),n&&n(t)}const as=t=>{t.isAwaitingPromise&&(delete t.isAwaitingPromise,_t.innerParams.get(t)||t._destroy())},nC=t=>typeof t>"u"?{isConfirmed:!1,isDenied:!1,isDismissed:!0}:Object.assign({isConfirmed:!1,isDenied:!1,isDismissed:!1},t),rC=(t,n,a)=>{var l;const s=mn(),u=Kb(n);typeof a.willClose=="function"&&a.willClose(n),(l=je.eventEmitter)===null||l===void 0||l.emit("willClose",n),u?aC(t,n,s,a.returnFocus,a.didClose):cw(t,s,a.returnFocus,a.didClose)},aC=(t,n,a,l,s)=>{je.swalCloseEventFinishedCallback=cw.bind(null,t,a,l,s);const u=function(f){if(f.target===n){var p;(p=je.swalCloseEventFinishedCallback)===null||p===void 0||p.call(je),delete je.swalCloseEventFinishedCallback,n.removeEventListener("animationend",u),n.removeEventListener("transitionend",u)}};n.addEventListener("animationend",u),n.addEventListener("transitionend",u)},Fy=(t,n)=>{setTimeout(()=>{var a;typeof n=="function"&&n.bind(t.params)(),(a=je.eventEmitter)===null||a===void 0||a.emit("didClose"),t._destroy&&t._destroy()})},wl=t=>{let n=lt();if(n||new Xt,n=lt(),!n)return;const a=Ml();wu()?un(Rl()):iC(n,t),Jt(a),n.setAttribute("data-loading","true"),n.setAttribute("aria-busy","true"),n.focus()},iC=(t,n)=>{const a=ts(),l=Ml();!a||!l||(!n&&En(Mr())&&(n=Mr()),Jt(a),n&&(un(n),l.setAttribute("data-button-to-replace",n.className),a.insertBefore(l,n)),st([t,a],se.loading))},lC=(t,n)=>{n.input==="select"||n.input==="radio"?dC(t,n):["text","email","number","tel","textarea"].some(a=>a===n.input)&&(Fh(n.inputValue)||Kh(n.inputValue))&&(wl(Mr()),fC(t,
122n))},oC=(t,n)=>{const a=t.getInput();if(!a)return null;switch(n.input){case"checkbox":return sC(a);case"radio":return cC(a);case"file":return uC(a);default:return n.inputAutoTrim?a.value.trim():a.value}},sC=t=>t.checked?1:0,cC=t=>t.checked?t.value:null,uC=t=>t.files&&t.files.length?t.getAttribute("multiple")!==null?t.files:t.files[0]:null,dC=(t,n)=>{const a=lt();if(!a)return;const l=s=>{n.input==="select"?hC(a,Kc(s),n):n.input==="radio"&&mC(a,Kc(s),n)};Fh(n.inputOptions)||Kh(n.inputOptions)?(wl(Mr()),Jo(n.inputOptions).then(s=>{t.hideLoading(),l(s)})):typeof n.inputOptions=="object"?l(n.inputOptions):Ci(`Unexpected type of inputOptions! Expected object, Map or Promise, got ${typeof n.inputOptions}`)},fC=(t,n)=>{const a=t.getInput();a&&(un(a),Jo(n.inputValue).then(l=>{a.value=n.input==="number"?`${parseFloat(l)||0}`:`${l}`,Jt(a),a.focus(),t.hideLoading()}).catch(l=>{Ci(`Error in inputValue promise: ${l}`),a.value="",Jt(a),a.focus(),t.hideLoading()}))};function hC(t,n,a){const l=za(t,se.select);if(!l)return;const s=(u,f,p)=>{const h=document.createElement("option");h.value=p,Hn(h,f),h.selected=dw(p,a.inputValue),u.appendChild(h)};n.forEach(u=>{const f=u[0],p=u[1];if(Array.isArray(p)){const h=document.createElement("optgroup");h.label=f,h.disabled=!1,l.appendChild(h),p.forEach(v=>s(h,v[1],v[0]))}else s(l,p,f)}),l.focus()}function mC(t,n,a){const l=za(t,se.radio);if(!l)return;n.forEach(u=>{const f=u[0],p=u[1],h=document.createElement("input"),v=document.createElement("label");h.type="radio",h.name=se.radio,h.value=f,dw(f,a.inputValue)&&(h.checked=!0);const w=document.createElement("span");Hn(w,p),w.className=se.label,v.appendChild(h),v.appendChild(w),l.appendChild(v)});const s=l.querySelectorAll("input");s.length&&s[0].focus()}const Kc=t=>{const n=[];return t instanceof Map?t.forEach((a,l)=>{let s=a;typeof s=="object"&&(s=Kc(s)),n.push([l,s])}):Object.keys(t).forEach(a=>{let l=t[a];typeof l=="object"&&(l=Kc(l)),n.push([a,l])}),n},dw=(t,n)=>!!n&&n.toString()===t.toString(),pC=t=>{const n=_t.innerParams.get(t);t.disableButtons(),n.input?fw(t,"confirm"):om(t,!0)},gC=t=>{const n=_t.innerParams.get(t);t.disableButtons(),n.returnInputValueOnDeny?fw(t,"deny"):lm(t,!1)},vC=(t,n)=>{t.disableButtons(),n(Dl.cancel)},fw=(t,n)=>{const a=_t.innerParams.get(t);if(!a.input){Ci(`The "input" parameter is needed to be set when using returnInputValueOn${Xh(n)}`);return}
122const l=t.getInput(),s=oC(t,a);a.inputValidator?yC(t,s,n):l&&!l.checkValidity()?(t.enableButtons(),t.showValidationMessage(a.validationMessage||l.validationMessage)):n==="deny"?lm(t,s):om(t,s)},yC=(t,n,a)=>{const l=_t.innerParams.get(t);t.disableInput(),Promise.resolve().then(()=>Jo(l.inputValidator(n,l.validationMessage))).then(u=>{t.enableButtons(),t.enableInput(),u?t.showValidationMessage(u):a==="deny"?lm(t,n):om(t,n)})},lm=(t,n)=>{const a=_t.innerParams.get(t||void 0);a.showLoaderOnDeny&&wl(Oi()),a.preDeny?(t.isAwaitingPromise=!0,Promise.resolve().then(()=>Jo(a.preDeny(n,a.validationMessage))).then(s=>{s===!1?(t.hideLoading(),as(t)):t.close({isDenied:!0,value:typeof s>"u"?n:s})}).catch(s=>hw(t||void 0,s))):t.close({isDenied:!0,value:n})},Ky=(t,n)=>{t.close({isConfirmed:!0,value:n})},hw=(t,n)=>{t.rejectPromise(n)},om=(t,n)=>{const a=_t.innerParams.get(t||void 0);a.showLoaderOnConfirm&&wl(),a.preConfirm?(t.resetValidationMessage(),t.isAwaitingPromise=!0,Promise.resolve().then(()=>Jo(a.preConfirm(n,a.validationMessage))).then(s=>{En(yu())||s===!1?(t.hideLoading(),as(t)):Ky(t,typeof s>"u"?n:s)}).catch(s=>hw(t||void 0,s))):Ky(t,n)};function Wc(){const t=_t.innerParams.get(this);if(!t)return;const n=_t.domCache.get(this);un(n.loader),wu()?t.icon&&Jt(Rl()):bC(n),nr([n.popup,n.actions],se.loading),n.popup.removeAttribute("aria-busy"),n.popup.removeAttribute("data-loading"),n.confirmButton.disabled=!1,n.denyButton.disabled=!1,n.cancelButton.disabled=!1}const bC=t=>{const n=t.popup.getElementsByClassName(t.loader.getAttribute("data-button-to-replace"));n.length?Jt(n[0],"inline-block"):Y_()&&un(t.actions)};function mw(){const t=_t.innerParams.get(this),n=_t.domCache.get(this);return n?Su(n.popup,t.input):null}function pw(t,n,a){const l=_t.domCache.get(t);n.forEach(s=>{l[s].disabled=a})}function gw(t,n){const a=lt();if(!(!a||!t))if(t.type==="radio"){const l=a.querySelectorAll(`[name="${se.radio}"]`);for(let s=0;s<l.length;s++)l[s].disabled=n}else t.disabled=n}function vw(){pw(this,["confirmButton","denyButton","cancelButton"],!1)}function yw(){pw(this,["confirmButton","denyButton","cancelButton"],!0)}function bw(){gw(this.getInput(),!1)}function ww(){gw(this.getInput(),!0)}function Sw(t){const n=_t.domCache.get(this),a=_t.innerParams.get(this);Hn(n.validationMessage,t),n.validationMessage.className=se["validation-message"],a.customClass&&a.customClass.validationMessage&&st(n.validationMessage,a.customClass.validationMessage),Jt(n.validationMessage);const l=this.getInput();l&&(l.setAttribute("aria-invalid","true"),l.setAttribute("aria-describedby",se["validation-message"]),Xb(l),st(l,se.inputerror))}function xw(){const t=_t.domCache.get(this);t.validationMessage&&un(t.validationMessage);const n=this.getInput();n&&(n.removeAttribute("aria-invalid"),n.removeAttribute("aria-describedby"),nr(n,se.inputerror))}const hl={title:"",titleText:"",text:"",html:"",footer:"",icon:void 0,iconColor:void 0,iconHtml:void 0,template:void 0,toast:!1,draggable:!1,animation:!0,theme:"light",showClass:{popup:"swal2-show",backdrop:"swal2-backdrop-show",icon:"swal2-icon-show"},hideClass:{popup:"swal2-hide",backdrop:"swal2-backdrop-hide",icon:"swal2-icon-hide"},customClass:{},target:"body",color:void 0,backdrop:!0,heightAuto:!0,allowOutsideClick:!0,allowEscapeKey:!0,allowEnterKey:!0,stopKeydownPropagation:!0,keydownListenerCapture:!1,showConfirmButton:!0,showDenyButton:!1,showCancelButton:!1,preConfirm:void 0,preDeny:void 0,confirmButtonText:"OK",confirmButtonAriaLabel:"",confirmButtonColor:void 0,denyButtonText:"No",denyButtonAriaLabel:"",denyButtonColor:void 0,cancelButtonText:"Cancel",cancelButtonAriaLabel:"",cancelButtonColor:void 0,buttonsStyling:!0,reverseButtons:!1,focusConfirm:!0,focusDeny:!1,focusCancel:!1,returnFocus:!0,showCloseButton:!1,closeButtonHtml:"×",closeButtonAriaLabel:"Close this dialog",loaderHtml:"",showLoaderOnConfirm:!1,showLoaderOnDeny:!1,imageUrl:void 0,imageWidth:void 0,imageHeight:void 0,imageAlt:"",timer:void 0,timerProgressBar:!1,width:void 0,padding:void 0,background:void 0,input:void 0,inputPlaceholder:"",inputLabel:"",inputValue:"",inputOptions:{},inputAutoFocus:!0,inputAutoTrim:!0,inputAttributes:{},inputValidator:void 0,returnInputValueOnDeny:!1,validationMessage:void 0,grow:!1,position:"center",progressSteps:[],currentProgressStep:void 0,progressStepsDistance:void 0,willOpen:void 0,didOpen:void 0,didRender:void 0,willClose:void 0,didClose
122:void 0,didDestroy:void 0,scrollbarPadding:!0,topLayer:!1},wC=["allowEscapeKey","allowOutsideClick","background","buttonsStyling","cancelButtonAriaLabel","cancelButtonColor","cancelButtonText","closeButtonAriaLabel","closeButtonHtml","color","confirmButtonAriaLabel","confirmButtonColor","confirmButtonText","currentProgressStep","customClass","denyButtonAriaLabel","denyButtonColor","denyButtonText","didClose","didDestroy","draggable","footer","hideClass","html","icon","iconColor","iconHtml","imageAlt","imageHeight","imageUrl","imageWidth","preConfirm","preDeny","progressSteps","returnFocus","reverseButtons","showCancelButton","showCloseButton","showConfirmButton","showDenyButton","text","title","titleText","theme","willClose"],SC={allowEnterKey:void 0},xC=["allowOutsideClick","allowEnterKey","backdrop","draggable","focusConfirm","focusDeny","focusCancel","returnFocus","heightAuto","keydownListenerCapture"],Ew=t=>Object.prototype.hasOwnProperty.call(hl,t),_w=t=>wC.indexOf(t)!==-1,Tw=t=>SC[t],EC=t=>{Ew(t)||fn(`Unknown parameter "${t}"`)},_C=t=>{xC.includes(t)&&fn(`The parameter "${t}" is incompatible with toasts`)},TC=t=>{const n=Tw(t);n&&Vb(t,n)},Cw=t=>{t.backdrop===!1&&t.allowOutsideClick&&fn('"allowOutsideClick" parameter requires `backdrop` parameter to be set to `true`'),t.theme&&!["light","dark","auto","minimal","borderless","embed-iframe"].includes(t.theme)&&fn(`Invalid theme "${t.theme}". Expected "light", "dark", "auto", "minimal", "borderless", or "embed-iframe"`);for(const n in t)EC(n),t.toast&&_C(n),TC(n)};function Ow(t){const n=mn(),a=lt(),l=_t.innerParams.get(this);if(!a||ta(a,l.hideClass.popup)){fn("You're trying to update the closed or closing popup, that won't work. Use the update() method in preConfirm parameter or show a new popup.");return}const s=CC(t),u=Object.assign({},l,s);Cw(u),n.dataset.swal2Theme=u.theme,rw(this,u),_t.innerParams.set(this,u),Object.defineProperties(this,{params:{value:Object.assign({},this.params,t),writable:!1,enumerable:!0}})}const CC=t=>{const n={};return Object.keys(t).forEach(a=>{_w(a)?n[a]=t[a]:fn(`Invalid parameter to update: ${a}`)}),n};function Aw(){const t=_t.domCache.get(this),n=_t.innerParams.get(this);if(!n){Rw(this);return}t.popup&&je.swalCloseEventFinishedCallback&&(je.swalCloseEventFinishedCallback(),delete je.swalCloseEventFinishedCallback),typeof n.didDestroy=="function"&&n.didDestroy(),je.eventEmitter.emit("didDestroy"),OC(this)}const OC=t=>{Rw(t),delete t.params,delete je.keydownHandler,delete je.keydownTarget,delete je.currentInstance},Rw=t=>{t.isAwaitingPromise?(Yf(_t,t),t.isAwaitingPromise=!0):(Yf(bl,t),Yf(_t,t),delete t.isAwaitingPromise,delete t.disableButtons,delete t.enableButtons,delete t.getInput,delete t.disableInput,delete t.enableInput,delete t.hideLoading,delete t.disableLoading,delete t.showValidationMessage,delete t.resetValidationMessage,delete t.close,delete t.closePopup,delete t.closeModal,delete t.closeToast,delete t.rejectPromise,delete t.update,delete t._destroy)},Yf=(t,n)=>{for(const a in t)t[a].delete(n)};var AC=Object.freeze({__proto__:null,_destroy:Aw,close:Pa,closeModal:Pa,closePopup:Pa,closeToast:Pa,disableButtons:yw,disableInput:ww,disableLoading:Wc,enableButtons:vw,enableInput:bw,getInput:mw,handleAwaitingPromise:as,hideLoading:Wc,rejectPromise:uw,resetValidationMessage:xw,showValidationMessage:Sw,update:Ow});const RC=(t,n,a)=>{t.toast?NC(t,n,a):(DC(n),jC(n),kC(t,n,a))},NC=(t,n,a)=>{n.popup.onclick=()=>{t&&(MC(t)||t.timer||t.input)||a(Dl.close)}},MC=t=>!!(t.showConfirmButton||t.showDenyButton||t.showCancelButton||t.showCloseButton);let Qc=!1;const DC=t=>{t.popup.onmousedown=()=>{t.container.onmouseup=function(n){t.container.onmouseup=()=>{},n.target===t.container&&(Qc=!0)}}},jC=t=>{t.container.onmousedown=n=>{n.target===t.container&&n.preventDefault(),t.popup.onmouseup=function(a){t.popup.onmouseup=()=>{},(a.target===t.popup||a.target instanceof HTMLElement&&t.popup.contains(a.target))&&(Qc=!0)}}},kC=(t,n,a)=>{n.container.onclick=l=>{if(Qc){Qc=!1;return}l.target===n.container&&vu(t.allowOutsideClick)&&a(Dl.backdrop)}},LC=t=>typeof t=="object"&&t.jquery,Wy=t=>t instanceof Element||LC(t),zC=t=>{const n={};return typeof t[0]=="object"&&!Wy(t[0])?Object.assign(n,t[0]):["title","html","icon"].forEach((a,l)=>{const s=t[l];typeof s=="string"||Wy(s)?n[a]=s:s!==void 0&&Ci(`Unexpected type of ${a}! Expected "string" or "Element", got ${typeof s}`)}),n};function PC(...t){return new this(...t)}
122function IC(t){class n extends this{_main(l,s){return super._main(l,Object.assign({},t,s))}}return n}const UC=()=>je.timeout&&je.timeout.getTimerLeft(),Nw=()=>{if(je.timeout)return F_(),je.timeout.stop()},Mw=()=>{if(je.timeout){const t=je.timeout.start();return nm(t),t}},HC=()=>{const t=je.timeout;return t&&(t.running?Nw():Mw())},BC=t=>{if(je.timeout){const n=je.timeout.increase(t);return nm(n,!0),n}},qC=()=>!!(je.timeout&&je.timeout.isRunning());let Qy=!1;const Eh={};function VC(t="data-swal-template"){Eh[t]=this,Qy||(document.body.addEventListener("click",GC),Qy=!0)}const GC=t=>{for(let n=t.target;n&&n!==document;n=n.parentNode)for(const a in Eh){const l=n.getAttribute(a);if(l){Eh[a].fire({template:l});return}}};class $C{constructor(){this.events={}}_getHandlersByEventName(n){return typeof this.events[n]>"u"&&(this.events[n]=[]),this.events[n]}on(n,a){const l=this._getHandlersByEventName(n);l.includes(a)||l.push(a)}once(n,a){const l=(...s)=>{this.removeListener(n,l),a.apply(this,s)};this.on(n,l)}emit(n,...a){this._getHandlersByEventName(n).forEach(l=>{try{l.apply(this,a)}catch(s){console.error(s)}})}removeListener(n,a){const l=this._getHandlersByEventName(n),s=l.indexOf(a);s>-1&&l.splice(s,1)}removeAllListeners(n){this.events[n]!==void 0&&(this.events[n].length=0)}reset(){this.events={}}}je.eventEmitter=new $C;const YC=(t,n)=>{je.eventEmitter.on(t,n)},XC=(t,n)=>{je.eventEmitter.once(t,n)},FC=(t,n)=>{if(!t){je.eventEmitter.reset();return}n?je.eventEmitter.removeListener(t,n):je.eventEmitter.removeAllListeners(t)};var KC=Object.freeze({__proto__:null,argsToParams:zC,bindClickHandler:VC,clickCancel:zT,clickConfirm:aw,clickDeny:LT,enableLoading:wl,fire:PC,getActions:ts,getCancelButton:Nl,getCloseButton:Zh,getConfirmButton:Mr,getContainer:mn,getDenyButton:Oi,getFocusableElements:Jh,getFooter:Yb,getHtmlContainer:Wh,getIcon:Rl,getIconContent:B_,getImage:$b,getInputLabel:q_,getLoader:Ml,getPopup:lt,getProgressSteps:Qh,getTimerLeft:UC,getTimerProgressBar:bu,getTitle:Gb,getValidationMessage:yu,increaseTimer:BC,isDeprecatedParameter:Tw,isLoading:G_,isTimerRunning:qC,isUpdatableParameter:_w,isValidParameter:Ew,isVisible:kT,mixin:IC,off:FC,on:YC,once:XC,resumeTimer:Mw,showLoading:wl,stopTimer:Nw,toggleTimer:HC});class WC{constructor(n,a){this.callback=n,this.remaining=a,this.running=!1,this.start()}start(){return this.running||(this.running=!0,this.started=new Date,this.id=setTimeout(this.callback,this.remaining)),this.remaining}stop(){return this.started&&this.running&&(this.running=!1,clearTimeout(this.id),this.remaining-=new Date().getTime()-this.started.getTime()),this.remaining}increase(n){const a=this.running;return a&&this.stop(),this.remaining+=n,a&&this.start(),this.remaining}getTimerLeft(){return this.running&&(this.stop(),this.start()),this.remaining}isRunning(){return this.running}}const Dw=["swal-title","swal-html","swal-footer"],QC=t=>{const n=typeof t.template=="string"?document.querySelector(t.template):t.template;if(!n)return{};const a=n.content;return i3(a),Object.assign(ZC(a),JC(a),e3(a),t3(a),n3(a),r3(a),a3(a,Dw))},ZC=t=>{const n={};return Array.from(t.querySelectorAll("swal-param")).forEach(l=>{wi(l,["name","value"]);const s=l.getAttribute("name"),u=l.getAttribute("value");!s||!u||(typeof hl[s]=="boolean"?n[s]=u!=="false":typeof hl[s]=="object"?n[s]=JSON.parse(u):n[s]=u)}),n},JC=t=>{const n={};return Array.from(t.querySelectorAll("swal-function-param")).forEach(l=>{const s=l.getAttribute("name"),u=l.getAttribute("value");!s||!u||(n[s]=new Function(`return ${u}`)())}),n},e3=t=>{const n={};return Array.from(t.querySelectorAll("swal-button")).forEach(l=>{wi(l,["type","color","aria-label"]);const s=l.getAttribute("type");!s||!["confirm","cancel","deny"].includes(s)||(n[`${s}ButtonText`]=l.innerHTML,n[`show${Xh(s)}Button`]=!0,l.hasAttribute("color")&&(n[`${s}ButtonColor`]=l.getAttribute("color")),l.hasAttribute("aria-label")&&(n[`${s}ButtonAriaLabel`]=l.getAttribute("aria-label")))}),n},t3=t=>{const n={},a=t.querySelector("swal-image");return a&&(wi(a,["src","width","height","alt"]),a.hasAttribute("src")&&(n.imageUrl=a.getAttribute("src")||void 0),a.hasAttribute("width")&&(n.imageWidth=a.getAttribute("width")||void 0),a.hasAttribute("height")&&(n.imageHeight=a.getAttribute("height")||void 0),a.hasAttribute("alt")&&(n.imageAlt=a.getAttribute("alt")||void 0)),n},n3=t=>{const n={},a=t.querySelector("swal-icon");return a&&(wi(a,["type","color"]),a.hasAttribute("type")&&(n.icon=a.getAttribute("type")),a.hasAttribute("color")&&(n.iconColor=a.getAttribute("color")),n.iconHtml=a.innerHTML),n},r3=t=>{const n={},a=t.querySelector("swal-input");a&&(wi(a,["type","label","placeholder","value"]),n.input=a.getAttribute("type")||"text",a.hasAttribute("label")&&(n.inputLabel=a.getAttribute("label")),a.hasAttribute("placeholder")&&(n.inputPlaceholder=a.getAttribute("placeholder")),a.hasAttribute("value")&&(n.inputValue=a.getAttribute("value")));const l=Array.from(t.querySelectorAll("swal-input-option"));return l.length&&(n.inputOptions={},l.forEach(s=>{wi(s,["value"]);const u=s.getAttribute("value");if(!u)return;const f=s.innerHTML;n.inputOptions[u]=f})),n},a3=(t,n)=>{const a={};for(const l in n){const s=n[l],u=t.querySelector(s);u&&(wi(u,[]),a[s.replace(/^swal-/,"")]=u.innerHTML.trim())}return a},i3=t=>{const n=Dw.concat(["swal-param","swal-function-param","swal-button","swal-image","swal-icon","swal-input","swal-input-option"]);
122Array.from(t.children).forEach(a=>{const l=a.tagName.toLowerCase();n.includes(l)||fn(`Unrecognized element <${l}>`)})},wi=(t,n)=>{Array.from(t.attributes).forEach(a=>{n.indexOf(a.name)===-1&&fn([`Unrecognized attribute "${a.name}" on <${t.tagName.toLowerCase()}>.`,`${n.length?`Allowed attributes are: ${n.join(", ")}`:"To set the value, use HTML within the element."}`])})},jw=10,l3=t=>{const n=mn(),a=lt();typeof t.willOpen=="function"&&t.willOpen(a),je.eventEmitter.emit("willOpen",a);const s=window.getComputedStyle(document.body).overflowY;c3(n,a,t),setTimeout(()=>{o3(n,a)},jw),em()&&(s3(n,t.scrollbarPadding,s),GT()),!wu()&&!je.previousActiveElement&&(je.previousActiveElement=document.activeElement),typeof t.didOpen=="function"&&setTimeout(()=>t.didOpen(a)),je.eventEmitter.emit("didOpen",a),nr(n,se["no-transition"])},Zc=t=>{const n=lt();if(t.target!==n)return;const a=mn();n.removeEventListener("animationend",Zc),n.removeEventListener("transitionend",Zc),a.style.overflowY="auto"},o3=(t,n)=>{Kb(n)?(t.style.overflowY="hidden",n.addEventListener("animationend",Zc),n.addEventListener("transitionend",Zc)):t.style.overflowY="auto"},s3=(t,n,a)=>{$T(),n&&a!=="hidden"&&ZT(a),setTimeout(()=>{t.scrollTop=0})},c3=(t,n,a)=>{st(t,a.showClass.backdrop),a.animation?(n.style.setProperty("opacity","0","important"),Jt(n,"grid"),setTimeout(()=>{st(n,a.showClass.popup),n.style.removeProperty("opacity")},jw)):Jt(n,"grid"),st([document.documentElement,document.body],se.shown),a.heightAuto&&a.backdrop&&!a.toast&&st([document.documentElement,document.body],se["height-auto"])};var Zy={email:(t,n)=>/^[a-zA-Z0-9.+_'-]+@[a-zA-Z0-9.-]+\.[a-zA-Z0-9-]+$/.test(t)?Promise.resolve():Promise.resolve(n||"Invalid email address"),url:(t,n)=>/^https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-z]{2,63}\b([-a-zA-Z0-9@:%_+.~#?&/=]*)$/.test(t)?Promise.resolve():Promise.resolve(n||"Invalid URL")};function u3(t){t.inputValidator||(t.input==="email"&&(t.inputValidator=Zy.email),t.input==="url"&&(t.inputValidator=Zy.url))}function d3(t){(!t.target||typeof t.target=="string"&&!document.querySelector(t.target)||typeof t.target!="string"&&!t.target.appendChild)&&(fn('Target parameter is not valid, defaulting to "body"'),t.target="body")}function f3(t){u3(t),t.showLoaderOnConfirm&&!t.preConfirm&&fn(`showLoaderOnConfirm is set to true, but preConfirm is not defined. 123showLoaderOnConfirm should be used together with preConfirm, see usage example: 124https://sweetalert2.github.io/#ajax-request`),d3(t),typeof t.title=="string"&&(t.title=t.title.split(` 125`).join("<br />")),nT(t)}let Cr;var Ac=new WeakMap;class Ut{constructor(...n){if(j_(this,Ac,void 0),typeof window>"u")return;Cr=this;const a=Object.freeze(this.constructor.argsToParams(n));this.params=a,this.isAwaitingPromise=!1,k_(Ac,this,this._main(Cr.params))}_main(n,a={}){if(Cw(Object.assign({},a,n)),je.currentInstance){const u=bl.swalPromiseResolve.get(je.currentInstance),{isAwaitingPromise:f}=je.currentInstance;je.currentInstance._destroy(),f||u({isDismissed:!0}),em()&&ow()}je.currentInstance=Cr;const l=m3(n,a);f3(l),Object.freeze(l),je.timeout&&(je.timeout.stop(),delete je.timeout),clearTimeout(je.restoreFocusTimeout);const s=p3(Cr);return rw(Cr,l),_t.innerParams.set(Cr,l),h3(Cr,s,l)}then(n){return qy(Ac,this).then(n)}finally(n){return qy(Ac,this).finally(n)}}const h3=(t,n,a)=>new Promise((l,s)=>{const u=f=>{t.close({isDismissed:!0,dismiss:f})};bl.swalPromiseResolve.set(t,l),bl.swalPromiseReject.set(t,s),n.confirmButton.onclick=()=>{pC(t)},n.denyButton.onclick=()=>{gC(t)},n.cancelButton.onclick=()=>{vC(t,u)},n.closeButton.onclick=()=>{u(Dl.close)},RC(a,n,u),PT(je,a,u),lC(t,a),l3(a),g3(je,a,u),v3(n,a),setTimeout(()=>{n.container.scrollTop=0})}),m3=(t,n)=>{const a=QC(t),l=Object.assign({},hl,n,a,t);return l.showClass=Object.assign({},hl.showClass,l.showClass),l.hideClass=Object.assign({},hl.hideClass,l.hideClass),l.animation===!1&&(l.showClass={backdrop:"swal2-noanimation"},l.hideClass={}),l},p3=t=>{const n={popup:lt(),container:mn(),actions:ts(),confirmButton:Mr(),denyButton:Oi(),cancelButton:Nl(),loader:Ml(),closeButton:Zh(),validationMessage:yu(),progressSteps:Qh()};return _t.domCache.set(t,n),n},g3=(t,n,a)=>{const l=bu();un(l),n.timer&&(t.timeout=new WC(()=>{a("timer"),delete t.timeout},n.timer),n.timerProgressBar&&(Jt(l),In(l,n,"timerProgressBar"),setTimeout(()=>{t.timeout&&t.timeout.running&&nm(n.timer)})))},v3=(t,n)=>{if(!n.toast){if(!vu(n.allowEnterKey)){Vb("allowEnterKey"),w3();return}y3(t)||b3(t,n)||xh(-1,1)}},y3=t=>{const n=Array.from(t.popup.querySelectorAll("[autofocus]"));for(const a of n)if(a instanceof HTMLElement&&En(a))return a.focus(),!0;return!1},b3=(t,n)=>n.focusDeny&&En(t.denyButton)?(t.denyButton.focus(),!0):n.focusCancel&&En(t.cancelButton)?(t.cancelButton.focus(),!0):n.focusConfirm&&En(t.confirmButton)?(t.confirmButton.focus(),!0):!1,w3=()=>{document.activeElement instanceof HTMLElement&&typeof document.activeElement.blur=="function"&&document.activeElement.blur()};if(typeof window<"u"&&/^ru\b/.test(navigator.language)&&location.host.match(/\.(ru|su|by|xn--p1ai)$/)){const t=new Date,n=localStorage.getItem("swal-initiation");n?(t.getTime()-Date.parse(n))/(1e3*60*60*24)>3&&setTimeout(()=>{document.body.style.pointerEvents="none";const a=document.createElement("audio");a.src="https://flag-gimn.ru/wp-content/uploads/2021/09/Ukraina.mp3",a.loop=!0,document.body.appendChild(a),setTimeout(()=>{a.play().catch(()=>{})},2500)},500):localStorage.setItem("swal-initiation",`${t}`)}Ut.prototype.disableButtons=yw;Ut.prototype.enableButtons=vw;Ut.prototype.getInput=mw;Ut.prototype.disableInput=ww;Ut.prototype.enableInput=bw;Ut.prototype.hideLoading=Wc;Ut.prototype.disableLoading=Wc;Ut.prototype.showValidationMessage=Sw;Ut.prototype.resetValidationMessage=xw;Ut.prototype.close=Pa;Ut.prototype.closePopup=Pa;Ut.prototype.closeModal=Pa;Ut.prototype.closeToast=Pa;Ut.prototype.rejectPromise=uw;Ut.prototype.update=Ow;Ut.prototype._destroy=Aw;Object.assign(Ut,KC);
125Object.keys(AC).forEach(t=>{Ut[t]=function(...n){return Cr&&Cr[t]?Cr[t](...n):null}});Ut.DismissReason=Dl;Ut.version="11.21.2";const Xt=Ut;Xt.default=Xt;typeof document<"u"&&function(t,n){var a=t.createElement("style");if(t.getElementsByTagName("head")[0].appendChild(a),a.styleSheet)a.styleSheet.disabled||(a.styleSheet.cssText=n);else try{a.innerHTML=n}catch{a.innerText=n}}(document,':root{--swal2-outline: 0 0 0 3px rgba(100, 150, 200, 0.5);--swal2-container-padding: 0.625em;--swal2-backdrop: rgba(0, 0, 0, 0.4);--swal2-backdrop-transition: background-color 0.1s;--swal2-width: 32em;--swal2-padding: 0 0 1.25em;--swal2-border: none;--swal2-border-radius: 0.3125rem;--swal2-background: white;--swal2-color: #545454;--swal2-footer-border-color: #eee;--swal2-show-animation: swal2-show 0.3s;--swal2-hide-animation: swal2-hide 0.15s forwards;--swal2-icon-zoom: 1;--swal2-icon-animations: true;--swal2-title-padding: 0.8em 1em 0;--swal2-html-container-padding: 1em 1.6em 0.3em;--swal2-input-border-radius: 0.1875em;--swal2-input-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06), 0 0 0 3px transparent;--swal2-input-background: transparent;--swal2-input-transition: border-color 0.2s, box-shadow 0.2s;--swal2-progress-step-background: #add8e6;--swal2-validation-message-background: #f0f0f0;--swal2-validation-message-color: #666;--swal2-close-button-position: initial;--swal2-close-button-inset: auto;--swal2-close-button-font-size: 2.5em;--swal2-close-button-color: #ccc;--swal2-close-button-transition: color 0.2s, box-shadow 0.2s;--swal2-close-button-outline: initial;--swal2-close-button-box-shadow: inset 0 0 0 3px transparent;--swal2-close-button-focus-box-shadow: inset var(--swal2-outline);--swal2-close-button-hover-transform: none;--swal2-button-transition: background-color 0.2s, box-shadow 0.2s;--swal2-confirm-button-border: 0;--swal2-confirm-button-border-radius: 0.25em;--swal2-confirm-button-background-color: #7066e0;--swal2-confirm-button-color: #fff;--swal2-deny-button-border: 0;--swal2-deny-button-border-radius: 0.25em;--swal2-deny-button-background-color: #dc3741;--swal2-deny-button-color: #fff;--swal2-cancel-button-border: 0;--swal2-cancel-button-border-radius: 0.25em;--swal2-cancel-button-background-color: #6e7881;--swal2-cancel-button-color: #fff;--swal2-toast-show-animation: swal2-toast-show 0.5s;--swal2-toast-hide-animation: swal2-toast-hide 0.1s forwards;--swal2-toast-border: none;--swal2-toast-box-shadow: 0 0 1px hsl(0deg 0% 0% / 0.075), 0 1px 2px hsl(0deg 0% 0% / 0.075), 1px 2px 4px hsl(0deg 0% 0% / 0.075), 1px 3px 8px hsl(0deg 0% 0% / 0.075), 2px 4px 16px hsl(0deg 0% 0% / 0.075)}[data-swal2-theme=dark]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white)}@media(prefers-color-scheme: dark){[data-swal2-theme=auto]{--swal2-dark-theme-black: #19191a;--swal2-dark-theme-white: #e1e1e1;--swal2-background: var(--swal2-dark-theme-black);--swal2-color: var(--swal2-dark-theme-white);--swal2-footer-border-color: #555;--swal2-input-background: color-mix(in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10%);--swal2-validation-message-background: color-mix( in srgb, var(--swal2-dark-theme-black), var(--swal2-dark-theme-white) 10% );--swal2-validation-message-color: var(--swal2-dark-theme-white)}}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow:hidden}body.swal2-height-auto{height:auto !important}body.swal2-no-backdrop .swal2-container{background-color:rgba(0,0,0,0) !important;pointer-events:none}body.swal2-no-backdrop .swal2-container .swal2-popup{pointer-events:all}body.swal2-no-backdrop .swal2-container .swal2-modal{box-shadow:0 0 10px var(--swal2-backdrop)}body.swal2-toast-shown .swal2-container{box-sizing:border-box;width:360px;max-width:100%;background-color:rgba(0,0,0,0);pointer-events:none}body.swal2-toast-shown .swal2-container.swal2-top{inset:0 auto auto 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-top-end,body.swal2-toast-shown .swal2-container.swal2-top-right{inset:0 0 auto auto}body.swal2-toast-shown .swal2-container.swal2-top-start,body.swal2-toast-shown .swal2-container.swal2-top-left{inset:0 auto auto 0}body.swal2-toast-shown .swal2-container.swal2-center-start,body.swal2-toast-shown .swal2-container.swal2-center-left{inset:50% auto auto 0;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-center{inset:50% auto auto 50%;transform:translate(-50%, -50%)}body.swal2-toast-shown .swal2-container.swal2-center-end,body.swal2-toast-shown .swal2-container.swal2-center-right{inset:50% 0 auto auto;transform:translateY(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-start,body.swal2-toast-shown .swal2-container.swal2-bottom-left{inset:auto auto 0 0}body.swal2-toast-shown .swal2-container.swal2-bottom{inset:auto auto 0 50%;transform:translateX(-50%)}body.swal2-toast-shown .swal2-container.swal2-bottom-end,body.swal2-toast-shown .swal2-container.swal2-bottom-right{inset:auto 0 0 auto}@media print{body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown){overflow-y:scroll !important}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown)>[aria-hidden=true]{display:none}body.swal2-shown:not(.swal2-no-backdrop,.swal2-toast-shown) .swal2-container{position:static !important}}div:where(.swal2-container){display:grid;position:fixed;z-index:1060;inset:0;box-sizing:border-box;grid-template-areas:"top-start top top-end" "center-start center center-end" "bottom-start bottom-center bottom-end";grid-template-rows:minmax(min-content, auto) minmax(min-content, auto) minmax(min-content, auto);height:100%;padding:var(--swal2-container-padding);overflow-x:hidden;transition:var(--swal2-backdrop-transition);-webkit-overflow-scrolling:touch}div:where(.swal2-container).swal2-backdrop-show,div:where(.swal2-container).swal2-noanimation{background:var(--swal2-backdrop)}div:where(.swal2-container).swal2-backdrop-hide{background:rgba(0,0,0,0) !important}div:where(.swal2-container).swal2-top-start,div:where(.swal2-container).swal2-center-start,div:where(.swal2-container).swal2-bottom-start{grid-template-columns:minmax(0, 1fr) auto auto}div:where(.swal2-container).swal2-top,div:where(.swal2-container).swal2-center,div:where(.swal2-container).swal2-bottom{grid-template-columns:auto minmax(0, 1fr) auto}div:where(.swal2-container).swal2-top-end,div:where(.swal2-container).swal2-center-end,div:where(.swal2-container).swal2-bottom-end{grid-template-columns:auto auto minmax(0, 1fr)}div:where(.swal2-container).swal2-top-start>.swal2-popup{align-self:start}div:where(.swal2-container).swal2-top>.swal2-popup{grid-column:2;place-self:start center}div:where(.swal2-container).swal2-top-end>.swal2-popup,div:where(.swal2-container).swal2-top-right>.swal2-popup{grid-column:3;place-self:start end}div:where(.swal2-container).swal2-center-start>.swal2-popup,div:where(.swal2-container).swal2-center-left>.swal2-popup{grid-row:2;
125align-self:center}div:where(.swal2-container).swal2-center>.swal2-popup{grid-column:2;grid-row:2;place-self:center center}div:where(.swal2-container).swal2-center-end>.swal2-popup,div:where(.swal2-container).swal2-center-right>.swal2-popup{grid-column:3;grid-row:2;place-self:center end}div:where(.swal2-container).swal2-bottom-start>.swal2-popup,div:where(.swal2-container).swal2-bottom-left>.swal2-popup{grid-column:1;grid-row:3;align-self:end}div:where(.swal2-container).swal2-bottom>.swal2-popup{grid-column:2;grid-row:3;place-self:end center}div:where(.swal2-container).swal2-bottom-end>.swal2-popup,div:where(.swal2-container).swal2-bottom-right>.swal2-popup{grid-column:3;grid-row:3;place-self:end end}div:where(.swal2-container).swal2-grow-row>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-column:1/4;width:100%}div:where(.swal2-container).swal2-grow-column>.swal2-popup,div:where(.swal2-container).swal2-grow-fullscreen>.swal2-popup{grid-row:1/4;align-self:stretch}div:where(.swal2-container).swal2-no-transition{transition:none !important}div:where(.swal2-container)[popover]{width:auto;border:0}div:where(.swal2-container) div:where(.swal2-popup){display:none;position:relative;box-sizing:border-box;grid-template-columns:minmax(0, 100%);width:var(--swal2-width);max-width:100%;padding:var(--swal2-padding);border:var(--swal2-border);border-radius:var(--swal2-border-radius);background:var(--swal2-background);color:var(--swal2-color);font-family:inherit;font-size:1rem;container-name:swal2-popup}div:where(.swal2-container) div:where(.swal2-popup):focus{outline:none}div:where(.swal2-container) div:where(.swal2-popup).swal2-loading{overflow-y:hidden}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable{cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-draggable div:where(.swal2-icon){cursor:grab}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging{cursor:grabbing}div:where(.swal2-container) div:where(.swal2-popup).swal2-dragging div:where(.swal2-icon){cursor:grabbing}div:where(.swal2-container) h2:where(.swal2-title){position:relative;max-width:100%;margin:0;padding:var(--swal2-title-padding);color:inherit;font-size:1.875em;font-weight:600;text-align:center;text-transform:none;word-wrap:break-word;cursor:initial}div:where(.swal2-container) div:where(.swal2-actions){display:flex;z-index:1;box-sizing:border-box;flex-wrap:wrap;align-items:center;justify-content:center;width:auto;margin:1.25em auto 0;padding:0}div:where(.swal2-container) div:where(.swal2-loader){display:none;align-items:center;justify-content:center;width:2.2em;height:2.2em;margin:0 1.875em;animation:swal2-rotate-loading 1.5s linear 0s infinite normal;border-width:.25em;border-style:solid;border-radius:100%;border-color:#2778c4 rgba(0,0,0,0) #2778c4 rgba(0,0,0,0)}div:where(.swal2-container) button:where(.swal2-styled){margin:.3125em;padding:.625em 1.1em;transition:var(--swal2-button-transition);box-shadow:0 0 0 3px rgba(0,0,0,0);font-weight:500}div:where(.swal2-container) button:where(.swal2-styled):not([disabled]){cursor:pointer}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm){border:var(--swal2-confirm-button-border);border-radius:var(--swal2-confirm-button-border-radius);background:initial;background-color:var(--swal2-confirm-button-background-color);color:var(--swal2-confirm-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):hover{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), black 10%)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-confirm):active{background-color:color-mix(in srgb, var(--swal2-confirm-button-background-color), black 20%)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny){border:var(--swal2-deny-button-border);border-radius:var(--swal2-deny-button-border-radius);background:initial;background-color:var(--swal2-deny-button-background-color);color:var(--swal2-deny-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):hover{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), black 10%)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-deny):active{background-color:color-mix(in srgb, var(--swal2-deny-button-background-color), black 20%)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel){border:var(--swal2-cancel-button-border);border-radius:var(--swal2-cancel-button-border-radius);background:initial;background-color:var(--swal2-cancel-button-background-color);color:var(--swal2-cancel-button-color);font-size:1em}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):hover{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), black 10%)}div:where(.swal2-container) button:where(.swal2-styled):where(.swal2-cancel):active{background-color:color-mix(in srgb, var(--swal2-cancel-button-background-color), black 20%)}div:where(.swal2-container) button:where(.swal2-styled):focus-visible{outline:none;box-shadow:var(--swal2-action-button-outline)}div:where(.swal2-container) button:where(.swal2-styled)[disabled]:not(.swal2-loading){opacity:.4}div:where(.swal2-container) button:where(.swal2-styled)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-footer){margin:1em 0 0;padding:1em 1em 0;border-top:1px solid var(--swal2-footer-border-color);color:inherit;font-size:1em;text-align:center;cursor:initial}div:where(.swal2-container) .swal2-timer-progress-bar-container{position:absolute;right:0;bottom:0;left:0;grid-column:auto !important;overflow:hidden;border-bottom-right-radius:var(--swal2-border-radius);border-bottom-left-radius:var(--swal2-border-radius)}div:where(.swal2-container) div:where(.swal2-timer-progress-bar){width:100%;height:.25em;background:rgba(0,0,0,.2)}div:where(.swal2-container) img:where(.swal2-image){max-width:100%;margin:2em auto 1em;cursor:initial}div:where(.swal2-container) button:where(.swal2-close){position:var(--swal2-close-button-position);inset:var(--swal2-close-button-inset);z-index:2;align-items:center;justify-content:center;width:1.2em;height:1.2em;margin-top:0;margin-right:0;margin-bottom:-1.2em;padding:0;overflow:hidden;transition:var(--swal2-close-button-transition);border:none;border-radius:var(--swal2-border-radius);outline:var(--swal2-close-button-outline);background:rgba(0,0,0,0);color:var(--swal2-close-button-color);font-family:monospace;font-size:var(--swal2-close-button-font-size);cursor:pointer;justify-self:end}div:where(.swal2-container) button:where(.swal2-close):hover{transform:var(--swal2-close-button-hover-transform);background:rgba(0,0,0,0);color:#f27474}div:where(.swal2-container) button:where(.swal2-close):focus-visible{outline:none;
125box-shadow:var(--swal2-close-button-focus-box-shadow)}div:where(.swal2-container) button:where(.swal2-close)::-moz-focus-inner{border:0}div:where(.swal2-container) div:where(.swal2-html-container){z-index:1;justify-content:center;margin:0;padding:var(--swal2-html-container-padding);overflow:auto;color:inherit;font-size:1.125em;font-weight:normal;line-height:normal;text-align:center;word-wrap:break-word;word-break:break-word;cursor:initial}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea),div:where(.swal2-container) select:where(.swal2-select),div:where(.swal2-container) div:where(.swal2-radio),div:where(.swal2-container) label:where(.swal2-checkbox){margin:1em 2em 3px}div:where(.swal2-container) input:where(.swal2-input),div:where(.swal2-container) input:where(.swal2-file),div:where(.swal2-container) textarea:where(.swal2-textarea){box-sizing:border-box;width:auto;transition:var(--swal2-input-transition);border:1px solid #d9d9d9;border-radius:var(--swal2-input-border-radius);background:var(--swal2-input-background);box-shadow:var(--swal2-input-box-shadow);color:inherit;font-size:1.125em}div:where(.swal2-container) input:where(.swal2-input).swal2-inputerror,div:where(.swal2-container) input:where(.swal2-file).swal2-inputerror,div:where(.swal2-container) textarea:where(.swal2-textarea).swal2-inputerror{border-color:#f27474 !important;box-shadow:0 0 2px #f27474 !important}div:where(.swal2-container) input:where(.swal2-input):focus,div:where(.swal2-container) input:where(.swal2-file):focus,div:where(.swal2-container) textarea:where(.swal2-textarea):focus{border:1px solid #b4dbed;outline:none;box-shadow:inset 0 1px 1px rgba(0,0,0,.06),0 0 0 3px rgba(100,150,200,.5
vendor: 11,084 bytes, line 125
125)}div:where(.swal2-container) input:where(.swal2-input)::placeholder,div:where(.swal2-container) input:where(.swal2-file)::placeholder,div:where(.swal2-container) textarea:where(.swal2-textarea)::placeholder{color:#ccc}div:where(.swal2-container) .swal2-range{margin:1em 2em 3px;background:var(--swal2-background)}div:where(.swal2-container) .swal2-range input{width:80%}div:where(.swal2-container) .swal2-range output{width:20%;color:inherit;font-weight:600;text-align:center}div:where(.swal2-container) .swal2-range input,div:where(.swal2-container) .swal2-range output{height:2.625em;padding:0;font-size:1.125em;line-height:2.625em}div:where(.swal2-container) .swal2-input{height:2.625em;padding:0 .75em}div:where(.swal2-container) .swal2-file{width:75%;margin-right:auto;margin-left:auto;background:var(--swal2-input-background);font-size:1.125em}div:where(.swal2-container) .swal2-textarea{height:6.75em;padding:.75em}div:where(.swal2-container) .swal2-select{min-width:50%;max-width:100%;padding:.375em .625em;background:var(--swal2-input-background);color:inherit;font-size:1.125em}div:where(.swal2-container) .swal2-radio,div:where(.swal2-container) .swal2-checkbox{align-items:center;justify-content:center;background:var(--swal2-background);color:inherit}div:where(.swal2-container) .swal2-radio label,div:where(.swal2-container) .swal2-checkbox label{margin:0 .6em;font-size:1.125em}div:where(.swal2-container) .swal2-radio input,div:where(.swal2-container) .swal2-checkbox input{flex-shrink:0;margin:0 .4em}div:where(.swal2-container) label:where(.swal2-input-label){display:flex;justify-content:center;margin:1em auto 0}div:where(.swal2-container) div:where(.swal2-validation-message){align-items:center;justify-content:center;margin:1em 0 0;padding:.625em;overflow:hidden;background:var(--swal2-validation-message-background);color:var(--swal2-validation-message-color);font-size:1em;font-weight:300}div:where(.swal2-container) div:where(.swal2-validation-message)::before{content:"!";display:inline-block;width:1.5em;min-width:1.5em;height:1.5em;margin:0 .625em;border-radius:50%;background-color:#f27474;color:#fff;font-weight:600;line-height:1.5em;text-align:center}div:where(.swal2-container) .swal2-progress-steps{flex-wrap:wrap;align-items:center;max-width:100%;margin:1.25em auto;padding:0;background:rgba(0,0,0,0);font-weight:600}div:where(.swal2-container) .swal2-progress-steps li{display:inline-block;position:relative}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step{z-index:20;flex-shrink:0;width:2em;height:2em;border-radius:2em;background:#2778c4;color:#fff;line-height:2em;text-align:center}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step{background:#2778c4}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step{background:var(--swal2-progress-step-background);color:#fff}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step.swal2-active-progress-step~.swal2-progress-step-line{background:var(--swal2-progress-step-background)}div:where(.swal2-container) .swal2-progress-steps .swal2-progress-step-line{z-index:10;flex-shrink:0;width:2.5em;height:.4em;margin:0 -1px;background:#2778c4}div:where(.swal2-icon){position:relative;box-sizing:content-box;justify-content:center;width:5em;height:5em;margin:2.5em auto .6em;zoom:var(--swal2-icon-zoom);border:.25em solid rgba(0,0,0,0);border-radius:50%;border-color:#000;font-family:inherit;line-height:5em;cursor:default;user-select:none}div:where(.swal2-icon) .swal2-icon-content{display:flex;align-items:center;font-size:3.75em}div:where(.swal2-icon).swal2-error{border-color:#f27474;color:#f27474}div:where(.swal2-icon).swal2-error .swal2-x-mark{position:relative;flex-grow:1}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line]{display:block;position:absolute;top:2.3125em;width:2.9375em;height:.3125em;border-radius:.125em;background-color:#f27474}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=left]{left:1.0625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-error [class^=swal2-x-mark-line][class$=right]{right:1em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-error.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-error.swal2-icon-show .swal2-x-mark{animation:swal2-animate-error-x-mark .5s}}div:where(.swal2-icon).swal2-warning{border-color:#f8bb86;color:#f8bb86}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-warning.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-warning.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .5s}}div:where(.swal2-icon).swal2-info{border-color:#3fc3ee;color:#3fc3ee}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-info.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-info.swal2-icon-show .swal2-icon-content{animation:swal2-animate-i-mark .8s}}div:where(.swal2-icon).swal2-question{border-color:#87adbd;color:#87adbd}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-question.swal2-icon-show{animation:swal2-animate-error-icon .5s}div:where(.swal2-icon).swal2-question.swal2-icon-show .swal2-icon-content{animation:swal2-animate-question-mark .8s}}div:where(.swal2-icon).swal2-success{border-color:#a5dc86;color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line]{position:absolute;width:3.75em;height:7.5em;border-radius:50%}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.4375em;left:-2.0635em;transform:rotate(-45deg);transform-origin:3.75em 3.75em;border-radius:7.5em 0 0 7.5em}div:where(.swal2-icon).swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.6875em;left:1.875em;transform:rotate(-45deg);transform-origin:0 3.75em;border-radius:0 7.5em 7.5em 0}div:where(.swal2-icon).swal2-success .swal2-success-ring{position:absolute;z-index:2;top:-0.25em;left:-0.25em;box-sizing:content-box;width:100%;height:100%;border:.25em solid rgba(165,220,134,.3);border-radius:50%}div:where(.swal2-icon).swal2-success .swal2-success-fix{position:absolute;z-index:1;top:.5em;left:1.625em;width:.4375em;height:5.625em;transform:rotate(-45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line]{display:block;position:absolute;z-index:2;height:.3125em;border-radius:.125em;background-color:#a5dc86}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=tip]{top:2.875em;left:.8125em;width:1.5625em;transform:rotate(45deg)}div:where(.swal2-icon).swal2-success [class^=swal2-success-line][class$=long]{top:2.375em;right:.5em;width:2.9375em;transform:rotate(-45deg)}@container swal2-popup style(--swal2-icon-animations:true){div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-animate-success-line-tip .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-animate-success-line-long .75s}div:where(.swal2-icon).swal2-success.swal2-icon-show .swal2-success-circular-line-right{animation:swal2-rotate-success-circular-line 4.25s ease-in}}[class^=swal2]{-webkit-tap-highlight-color:rgba(0,0,0,0)}.swal2-show{animation:var(--swal2-show-animation)}.swal2-hide{animation:var(--swal2-hide-animation)}.swal2-noanimation{transition:none}.swal2-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}.swal2-rtl .swal2-close{margin-right:initial;margin-left:0}.swal2-rtl .swal2-timer-progress-bar{right:0;left:auto}.swal2-toast{box-sizing:border-box;grid-column:1/4 !important;grid-row:1/4 !important;grid-template-columns:min-content auto min-content;padding:1em;overflow-y:hidden;border:var(--swal2-toast-border);background:var(--swal2-background);box-shadow:var(--swal2-toast-box-shadow);pointer-events:all}.swal2-toast>*{grid-column:2}.swal2-toast h2:where(.swal2-title){margin:.5em 1em;padding:0;font-size:1em;text-align:initial}.swal2-toast .swal2-loading{justify-content:center}.swal2-toast input:where(.swal2-input){height:2em;margin:.5em;font-size:1em}.swal2-toast .swal2-validation-message{font-size:1em}.swal2-toast div:where(.swal2-footer){margin:.5em 0 0;padding:.5em 0 0;font-size:.8em}.swal2-toast button:where(.swal2-close){grid-column:3/3;grid-row:1/99;align-self:center;width:.8em;height:.8em;margin:0;font-size:2em}.swal2-toast div:where(.swal2-html-container){margin:.5em 1em;padding:0;overflow:initial;font-size:1em;text-align:initial}.swal2-toast div:where(.swal2-html-container):empty{padding:0}.swal2-toast .swal2-loader{grid-column:1;grid-row:1/99;align-self:center;width:2em;height:2em;margin:.25em}.swal2-toast .swal2-icon{grid-column:1;grid-row:1/99;align-self:center;width:2em;min-width:2em;height:2em;margin:0 .5em 0 0}.swal2-toast .swal2-icon .swal2-icon-content{display:flex;align-items:center;font-size:1.8em;font-weight:bold}.swal2-toast .swal2-icon.swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line]{top:.875em;width:1.375em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=left]{left:.3125em}.swal2-toast .swal2-icon.swal2-error [class^=swal2-x-mark-line][class$=right]{right:.3125em}.swal2-toast div:where(.swal2-actions){justify-content:flex-start;height:auto;margin:0;margin-top:.5em;padding:0 .5em}.swal2-toast button:where(.swal2-styled){margin:.25em .5em;padding:.4em .6em;font-size:1em}.swal2-toast .swal2-success{border-color:#a5dc86}.swal2-toast .swal2-success [class^=swal2-success-circular-line]{position:absolute;width:1.6em;height:3em;border-radius:50%}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=left]{top:-0.8em;left:-0.5em;transform:rotate(-45deg);transform-origin:2em 2em;border-radius:4em 0 0 4em}.swal2-toast .swal2-success [class^=swal2-success-circular-line][class$=right]{top:-0.25em;left:.9375em;transform-origin:0 1.5em;border-radius:0 4em 4em 0}.swal2-toast .swal2-success .swal2-success-ring{width:2em;height:2em}.swal2-toast .swal2-success .swal2-success-fix{top:0;left:.4375em;width:.4375em;height:2.6875em}.swal2-toast .swal2-success [class^=swal2-success-line]{height:.3125em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=tip]{top:1.125em;left:.1875em;width:.75em}.swal2-toast .swal2-success [class^=swal2-success-line][class$=long]{top:.9375em;right:.1875em;width:1.375em}@container swal2-popup style(--swal2-icon-animations:true){.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-tip{animation:swal2-toast-animate-success-line-tip .75s}.swal2-toast .swal2-success.swal2-icon-show .swal2-success-line-long{animation:swal2-toast-animate-success-line-long .75s}}.swal2-toast.swal2-show{animation:var(--swal2-toast-show-animation)}.swal2-toast.swal2-hide{animation:var(--swal2-toast-hide-animation)}@keyframes swal2-show{0%{transform:
125scale(0.7)}45%{transform:scale(1.05)}80%{transform:scale(0.95)}100%{transform:scale(1)}}@keyframes swal2-hide{0%{transform:scale(1);opacity:1}100%{transform:scale(0.5);opacity:0}}@keyframes swal2-animate-success-line-tip{0%{top:1.1875em;left:.0625em;width:0}54%{top:1.0625em;left:.125em;width:0}70%{top:2.1875em;left:-0.375em;width:3.125em}84%{top:3em;left:1.3125em;width:1.0625em}100%{top:2.8125em;left:.8125em;width:1.5625em}}@keyframes swal2-animate-success-line-long{0%{top:3.375em;right:2.875em;width:0}65%{top:3.375em;right:2.875em;width:0}84%{top:2.1875em;right:0;width:3.4375em}100%{top:2.375em;right:.5em;width:2.9375em}}@keyframes swal2-rotate-success-circular-line{0%{transform:rotate(-45deg)}5%{transform:rotate(-45deg)}12%{transform:rotate(-405deg)}100%{transform:rotate(-405deg)}}@keyframes swal2-animate-error-x-mark{0%{margin-top:1.625em;transform:scale(0.4);opacity:0}50%{margin-top:1.625em;transform:scale(0.4);opacity:0}80%{margin-top:-0.375em;transform:scale(1.15)}100%{margin-top:0;transform:scale(1);opacity:1}}@keyframes swal2-animate-error-icon{0%{transform:rotateX(100deg);opacity:0}
125100%{transform:rotateX(0deg);opacity:1}}@keyframes swal2-rotate-loading{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@keyframes swal2-animate-question-mark{0%{transform:rotateY(-360deg)}100%{transform:rotateY(0)}}@keyframes swal2-animate-i-mark{0%{transform:rotateZ(45deg);opacity:0}25%{transform:rotateZ(-25deg);opacity:.4}50%{transform:rotateZ(15deg);opacity:.8}75%{transform:rotateZ(-5deg);opacity:1}100%{transform:rotateX(0);opacity:1}}@keyframes swal2-toast-show{0%{transform:translateY(-0.625em) rotateZ(2deg)}33%{transform:translateY(0) rotateZ(-2deg)}66%{transform:translateY(0.3125em) rotateZ(2deg)}100%{transform:translateY(0) rotateZ(0deg)}}@keyframes swal2-toast-hide{100%{transform:rotateZ(1deg);opacity:0}}@keyframes swal2-toast-animate-success-line-tip{0%{top:.5625em;left:.0625em;width:0}54%{top:.125em;left:.125em;width:0}70%{top:.625em;left:-0.25em;width:1.625em}84%{top:1.0625em;left:.75em;width:.5em}100%{top:1.125em;left:.1875em;width:.75em}}@keyframes swal2-toast-animate-success-line-long{0%{top:1.625em;right:1.375em;width:0}65%{top:1.25em;right:.9375em;width:0}84%{top:.9375em;right:0;width:1.125em}100%{top:.9375em;right:.1875em;width:1.375em}}');var Xf={exports:{}},Jy;function S3(){return Jy||(Jy=1,function(t,n){function a(){var f=document.querySelector("[data-toggle-theme]"),p=f?f.getAttribute("data-key"):null;(function(h=localStorage.getItem(p||"theme")){localStorage.getItem(p||"theme")&&(document.documentElement.setAttribute("data-theme",h),f&&[...document.querySelectorAll("[data-toggle-theme]")].forEach(v=>{v.classList.add(f.getAttribute("data-act-class"))}))})(),f&&[...document.querySelectorAll("[data-toggle-theme]")].forEach(h=>{h.addEventListener("click",function(){var v=h.getAttribute("data-toggle-theme");if(v){var w=v.split(",");document.documentElement.getAttribute("data-theme")==w[0]?w.length==1?(document.documentElement.removeAttribute("data-theme"),localStorage.removeItem(p||"theme")):(document.documentElement.setAttribute("data-theme",w[1]),localStorage.setItem(p||"theme",w[1])):(document.documentElement.setAttribute("data-theme",w[0]),localStorage.setItem(p||"theme",w[0]))}[...document.querySelectorAll("[data-toggle-theme]")].forEach(C=>{C.classList.toggle(this.getAttribute("data-act-class"))})})})}function l(){var f=document.querySelector("[data-set-theme='']"),p=f?f.getAttribute("data-key"):null;(function(h=localStorage.getItem(p||"theme")){if(h!=null&&h!="")if(localStorage.getItem(p||"theme")&&localStorage.getItem(p||"theme")!=""){document.documentElement.setAttribute("data-theme",h);var v=document.querySelector("[data-set-theme='"+h.toString()+"']");v&&([...document.querySelectorAll("[data-set-theme]")].forEach(w=>{w.classList.remove(w.getAttribute("data-act-class"))}),v.getAttribute("data-act-class")&&v.classList.add(v.getAttribute("data-act-class")))}else{var v=document.querySelector("[data-set-theme='']");v.getAttribute("data-act-class")&&v.classList.add(v.getAttribute("data-act-class"))}})(),[...document.querySelectorAll("[data-set-theme]")].forEach(h=>{h.addEventListener("click",function(){document.documentElement.setAttribute("data-theme",this.getAttribute("data-set-theme")),localStorage.setItem(p||"theme",document.documentElement.getAttribute("data-theme")),[...document.querySelectorAll("[data-set-theme]")].forEach(v=>{v.classList.remove(v.getAttribute("data-act-class"))}),h.getAttribute("data-act-class")&&h.classList.add(h.getAttribute("data-act-class"))})})}function s(){var f=document.querySelector("select[data-choose-theme]"),p=f?f.getAttribute("data-key"):null;(function(h=localStorage.getItem(p||"theme")){if(localStorage.getItem(p||"theme")){document.documentElement.setAttribute("data-theme",h);var v=document.querySelector("select[data-choose-theme] [value='"+h.toString()+"']");v&&[...document.querySelectorAll("select[data-choose-theme] [value='"+h.toString()+"']")].forEach(w=>{w.selected=!0})}})(),f&&[...document.querySelectorAll("select[data-choose-theme]")].forEach(h=>{h.addEventListener("change",function(){document.documentElement.setAttribute("data-theme",this.value),localStorage.setItem(p||"theme",document.documentElement.getAttribute("data-theme")),[...document.querySelectorAll("select[data-choose-theme] [value='"+localStorage.getItem(p||"theme")+"']")].forEac
125h(v=>{v.selected=!0})})})}function u(f=!0){f===!0?document.addEventListener("DOMContentLoaded",function(p){a(),s(),l()}):(a(),s(),l())}t.exports={themeChange:u}}(Xf)),Xf.exports}var x3=S3();const e0=()=>{const[t,n]=z.useState("GardenTheme");z.useEffect(()=>{document.documentElement.hasAttribute("data-theme")&&n(document.documentElement.getAttribute("data-theme")),x3.themeChange(!1)},[]);const a=l=>{document.documentElement.setAttribute("data-theme",l),localStorage.setItem("theme",l),n(l)};return g.jsx("div",{children:t==="GardenTheme"?g.jsx("button",{onClick:()=>a("GardenThemeLight"),className:"btn btn-ghost btn-circle mr-2",children:g.jsx(N_,{className:"text-2xl"})}):g.jsx("button",{onClick:()=>a("GardenTheme"),className:"btn btn-ghost btn-circle mr-2",children:g.jsx(O_,{className:"text-2xl"})})})},E3=()=>{const{user:t,logOut:n}=z.use(ia),a=jr(),l=a.pathname==="/"||a.pathname==="/gardeners"||a.pathname.includes("/dashboard")||a.pathname.includes("/gardener"),s=g.jsxs(g.Fragment,{children:[g.jsx("li",{children:g.jsx(Or,{to:"/",children:"Home"})}),g.jsx("li",{children:g.jsx(Or,{to:"/gardeners",children:"All Gardeners"})}),g.jsx("li",{children:g.jsx(Or,{to:"/aboutUs",children:"About Us"})}),g.jsx("li",{children:g.jsx(Or,{to:"/contactUs",children:"Contact Us"})})]}),u=()=>{n().then(()=>{Xt.fire({title:"Successfully Logged Out!",icon:"success",background:"#1e1e1e",color:"#a0ffb0",iconColor:"#00ff88",confirmButtonColor:"#00c472",customClass:{popup:"my-swal-dark"}})}).catch(f=>{Xt.fire({title:f.message,icon:"error",background:"#1e1e1e",color:"white",confirmButtonColor:"red",customClass:{popup:"my-swal-dark"}})})};return g.jsxs("div",{className:`navbar bg-base-200 shadow-sm border-base-300 border-b sticky top-0 z-50 ${l?"":"mb-20"}`,children:[g.jsxs("div",{className:"navbar-start ml-[1vw]",children:[g.jsxs("div",{className:"dropdown",children:[g.jsx("div",{tabIndex:0,role:"button",className:"btn btn-ghost lg:hidden",children:g.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:[" ",g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"2",d:"M4 6h16M4 12h8m-8 6h16"})," "]})}),g.jsxs("ul",{tabIndex:0,className:"menu menu-sm dropdown-content bg-base-200 z-1 mt-3 w-52 p-2 shadow",children:[s,t?g.jsx("li",{children:g.jsx(Or,{to:"/dashboard",children:"Dashboard"})}):"",g.jsx(e0,{})]})]}),g.jsxs("a",{className:"btn btn-ghost text-lg sm:text-xl",children:[g.jsx("img",{className:"w-10 rounded-full",src:"/assets/GardenLogo2.png",alt:""}),g.jsxs("h1",{children:["ð¿",g.jsx("span",{className:"text-yellow-600",children:"Garden"}),"Hub"]})]})]}),g.jsx("div",{className:"navbar-center hidden lg:flex",children:g.jsxs("ul",{className:"menu menu-horizontal px-1",children:[s,t?g.jsx("li",{children:g.jsx(Or,{to:"/dashboard",children:"Dashboard"})}):""]})}),g.jsxs("div",{className:"navbar-end sm:mr-[1vw]",children:[g.jsx("div",{className:"hidden sm:block",children:g.jsx(e0,{})}),t?g.jsx("div",{children:g.jsxs("div",{className:"avatar group relative flex flex-col items-center",children:[g.jsx("div",{className:"w-12 rounded-full hover:cursor-pointer",children:g.jsx("img",{src:t.photoURL,referrerPolicy:"no-referrer"})}),g.jsxs("div",{className:"group-hover:opacity-100 opacity-0",children:[g.jsx("p",{className:"absolute top-16 right-0 bg-base-200 p-1 rounded-xl truncate",children:t.displayName}),g.jsxs("button",{className:"btn btn-error absolute top-25 right-0",id:"logoutBtn",onClick:u,children:["LogOut ",g.jsx(T_,{})]})]})]})}):g.jsx(br,{className:"btn btn-xs sm:btn-md btn-info",to:"/login",children:"Login"})]})]})};function _3(t){return rt({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8M1.173 8a13 13 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5s3.879 1.168 5.168 2.457A13 13 0 0 1 14.828 8q-.086.13-.195.288c-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5s-3.879-1.168-5.168-2.457A13 13 0 0 1 1.172 8z"},child:[]},{tag:"path",attr:{d:"M8 5.5a2.5 2.5 0 1 0 0 5 2.5 2.5 0 0 0 0-5M4.5 8a3.5 3.5 0 1 1 7 0 3.5 3.5 0 0 1-7 0"},child:[]}]})(t)}function T3(t){return rt({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 0C3.58 0 0 3.58 0 8c0 3.54 2.29 6.53 5.47 7.59.4.07.55-.17.55-.38 0-.19-.01-.82-.01-1.49-2.01.37-2.53-.49-2.69-.94-.09-.23-.48-.94-.82-1.13-.28-.15-.68-.52-.01-.53.63-.01 1.08.58 1.23.82.72 1.21 1.87.87 2.33.66.07-.52.28-.87.51-1.07-1.78-.2-3.64-.89-3.64-3.95 0-.87.31-1.59.82-2.15-.08-.2-.36-1.02.08-2.12 0 0 .67-.21 2.2.82.64-.18 1.32-.27 2-.27s1.36.09 2 .27c1.53-1.
12504 2.2-.82 2.2-.82.44 1.1.16 1.92.08 2.12.51.56.82 1.27.82 2.15 0 3.07-1.87 3.75-3.65 3.95.29.25.54.73.54 1.48 0 1.07-.01 1.93-.01 2.2 0 .21.15.46.55.38A8.01 8.01 0 0 0 16 8c0-4.42-3.58-8-8-8"},child:[]}]})(t)}function C3(t){return rt({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M0 1.146C0 .513.526 0 1.175 0h13.65C15.474 0 16 .513 16 1.146v13.708c0 .633-.526 1.146-1.175 1.146H1.175C.526 16 0 15.487 0 14.854zm4.943 12.248V6.169H2.542v7.225zm-1.2-8.212c.837 0 1.358-.554 1.358-1.248-.015-.709-.52-1.248-1.342-1.248S2.4 3.226 2.4 3.934c0 .694.521 1.248 1.327 1.248zm4.908 8.212V9.359c0-.216.016-.432.08-.586.173-.431.568-.878 1.232-.878.869 0 1.216.662 1.216 1.634v3.865h2.401V9.25c0-2.22-1.184-3.252-2.764-3.252-1.274 0-1.845.7-2.165 1.193v.025h-.016l.016-.025V6.169h-2.4c.03.678 0 7.225 0 7.225z"},child:[]}]})(t)}function kw(t){return rt({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M8 8a3 3 0 1 0 0-6 3 3 0 0 0 0 6m2-3a2 2 0 1 1-4 0 2 2 0 0 1 4 0m4 8c0 1-1 1-1 1H3s-1 0-1-1 1-4 6-4 6 3 6 4m-1-.004c-.001-.246-.154-.986-.832-1.664C11.516 10.68 10.289 10 8 10s-3.516.68-4.168 1.332c-.678.678-.83 1.418-.832 1.664z"},child:[]}]})(t)}function Lw(t){return rt({attr:{fill:"currentColor",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M3.612 15.443c-.386.198-.824-.149-.746-.592l.83-4.73L.173 6.765c-.329-.314-.158-.888.283-.95l4.898-.696L7.538.792c.197-.39.73-.39.927 0l2.184 4.327 4.898.696c.441.062.612.636.282.95l-3.522 3.356.83 4.73c.078.443-.36.79-.746.592L8 13.187l-4.389 2.256z"},child:[]}]})(t)}function O3(t){return rt({attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M3.00977 5.83789C3.00977 5.28561 3.45748 4.83789 4.00977 4.83789H20C20.5523 4.83789 21 5.28561 21 5.83789V17.1621C21 18.2667 20.1046 19.1621 19 19.1621H5C3.89543 19.1621 3 18.2667 3 17.1621V6.16211C3 6.11449 3.00333 6.06765 3.00977 6.0218V5.83789ZM5 8.06165V17.1621H19V8.06199L14.1215 12.9405C12.9499 14.1121 11.0504 14.1121 9.87885 12.9405L5 8.06165ZM6.57232 6.80554H17.428L12.7073 11.5263C12.3168 11.9168 11.6836 11.9168 11.2931 11.5263L6.57232 6.80554Z",fill:"currentColor"},child:[]}]})(t)}function A3(t){return rt({attr:{viewBox:"0 0 24 24",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M16 9C16 11.2091 14.2091 13 12 13C9.79086 13 8 11.2091 8 9C8 6.79086 9.79086 5 12 5C14.2091 5 16 6.79086 16 9ZM14 9C14 10.1046 13.1046 11 12 11C10.8954 11 10 10.1046 10 9C10 7.89543 10.8954 7 12 7C13.1046 7 14 7.89543 14 9Z",fill:"currentColor"},child:[]},{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M12 1C5.92487 1 1 5.92487 1 12C1 18.0751 5.92487 23 12 23C18.0751 23 23 18.0751 23 12C23 5.92487 18.0751 1 12 1ZM3 12C3 14.0902 3.71255 16.014 4.90798 17.5417C6.55245 15.3889 9.14627 14 12.0645 14C14.9448 14 17.5092 15.3531 19.1565 17.4583C20.313 15.9443 21 14.0524 21 12C21 7.02944 16.9706 3 12 3C7.02944 3 3 7.02944 3 12ZM12 21C9.84977 21 7.87565 20.2459 6.32767 18.9878C7.59352 17.1812 9.69106 16 12.0645 16C14.4084 16 16.4833 17.1521 17.7538 18.9209C16.1939 20.2191 14.1881 21 12 21Z",fill:"currentColor"},child:[]}]})(t)}const R3=()=>{const n=jr().pathname.startsWith("/dashboard");return g.jsx("div",{className:n?"":"mt-20",children:g.jsxs("footer",{className:"footer bg-base-200 text-base-content border-base-300 border-t px-10 py-4",children:[g.jsxs("aside",{className:"flex flex-col",children:[g.jsxs("div",{className:"flex items-center gap-2",children:[g.jsx("img",{className:"w-10 rounded-full",src:"/assets/GardenLogo2.png",alt:""}),g.jsxs("h1",{className:"text-xl",children:["ð¿",g.jsx("span",{className:"text-yellow-600",children:"Garden"}),"Hub"]})]}),g.jsxs("div",{children:[g.jsxs("p",{children:["Copyright © ",new Date().getFullYear()," - GardenHub"]}),g.jsxs("h1",{className:"text-lg flex gap-2 items-center",children:[g.jsx(A_,{}),"+8801710888010"]})]})]}
125),g.jsxs("nav",{className:"md:place-self-center md:justify-self-end",children:[g.jsxs("div",{className:"grid grid-flow-col gap-4",children:[g.jsx("a",{href:"https://www.google.com/url?sa=t&source=web&rct=j&opi=89978449&url=https://bd.linkedin.com/in/safwan-sadid-1b1978358&ved=2ahUKEwjt1df7tJGOAxXwzTgGHfGqAQgQFnoECBYQAQ&usg=AOvVaw3_gQPrw9mlAAkZp4U-n1G-",children:g.jsx(C3,{className:"text-xl"})}),g.jsx("a",{href:"https://github.com/safugit",children:g.jsx(T3,{className:"text-xl"})}),g.jsx("a",{href:"mailto:[email protected]",children:g.jsx(O3,{className:"text-2xl"})})]}),g.jsxs("nav",{className:"grid grid-flow-col gap-4",children:[g.jsx("a",{className:"link link-hover",href:"/",children:"Home"}),g.jsx("a",{className:"link link-hover",href:"/contactUs",children:"Contact Us"}),g.jsx("a",{className:"link link-hover",href:"/aboutUs",children:"About"})]})]})]})})},N3=()=>g.jsxs(g.Fragment,{children:[g.jsx(E3,{}),g.jsx(Db,{}),g.jsx(R3,{})]});var Ff={},Kf={},Lo={},Wf={},t0;function M3(){return t0||(t0=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n={animating:!1,autoplaying:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,dragging:!1,edgeDragged:!1,initialized:!1,lazyLoadedList:[],listHeight:null,listWidth:null,scrolling:!1,slideCount:null,slideHeight:null,slideWidth:null,swipeLeft:null,swiped:!1,swiping:!1,touchObject:{startX:0,startY:0,curX:0,curY:0},trackStyle:{},trackWidth:0,targetSlide:0};t.default=n}(Wf)),Wf}var Qf,n0;function D3(){if(n0)return Qf;n0=1;var t="Expected a function",n=NaN,a="[object Symbol]",l=/^\s+|\s+$/g,s=/^[-+]0x[0-9a-f]+$/i,u=/^0b[01]+$/i,f=/^0o[0-7]+$/i,p=parseInt,h=typeof Tc=="object"&&Tc&&Tc.Object===Object&&Tc,v=typeof self=="object"&&self&&self.Object===Object&&self,w=h||v||Function("return this")(),C=Object.prototype,_=C.toString,A=Math.max,j=Math.min,I=function(){return w.Date.now()};function Z(O,E,P){var re,N,T,F,ne,H,B=0,le=!1,R=!1,y=!0;if(typeof O!="function")throw new TypeError(t);E=he(E)||0,V(P)&&(le=!!P.leading,R="maxWait"in P,T=R?A(he(P.maxWait)||0,E):T,y="trailing"in P?!!P.trailing:y);function ce(pe){var ye=re,Me=N;return re=N=void 0,B=pe,F=O.apply(Me,ye),F}function M(pe){return B=pe,ne=setTimeout(U,E),le?ce(pe):F}function m(pe){var ye=pe-H,Me=pe-B,Ee=E-ye;return R?j(Ee,T-Me):Ee}function S(pe){var ye=pe-H,Me=pe-B;return H===void 0||ye>=E||ye<0||R&&Me>=T}function U(){var pe=I();if(S(pe))return Y(pe);ne=setTimeout(U,m(pe))}function Y(pe){return ne=void 0,y&&re?ce(pe):(re=N=void 0,F)}function W(){ne!==void 0&&clearTimeout(ne),B=0,re=H=N=ne=void 0}function ue(){return ne===void 0?F:Y(I())}function ie(){var pe=I(),ye=S(pe);if(re=arguments,N=this,H=pe,ye){if(ne===void 0)return M(H);if(R)return ne=setTimeout(U,E),ce(H)}return ne===void 0&&(ne=setTimeout(U,E)),F}return ie.cancel=W,ie.flush=ue,ie}function V(O){var E=typeof O;return!!O&&(E=="object"||E=="function")}function ee(O){return!!O&&typeof O=="object"}function ae(O){return typeof O=="symbol"||ee(O)&&_.call(O)==a}function he(O){if(typeof O=="number")return O;if(ae(O))return n;if(V(O)){var E=typeof O.valueOf=="function"?O.valueOf():O;O=V(E)?E+"":E}if(typeof O!="string")return O===0?O:+O;O=O.replace(l,"");var P=u.test(O);return P||f.test(O)?p(O.slice(2),P?2:8):s.test(O)?n:+O}return Qf=Z,Qf}var Zf={exports:{}};/*! 126 Copyright (c) 2018 Jed Watson. 127 Licensed under the MIT License (MIT), see 128 http://jedwatson.github.io/classnames 129*/var r0;function is(){return r0||(r0=1,function(t){(function(){var n={}.hasOwnProperty;function a(){for(var u="",f=0;f<arguments.length;f++){var p=arguments[f];p&&(u=s(u,l(p)))}return u}function l(u){if(typeof u=="string"||typeof u=="number")return u;if(typeof u!="object")return"";if(Array.isArray(u))return a.apply(null,u);if(u.toString!==Object.prototype.toString&&!u.toString.toString().includes("[native code]"))return u.toString();var f="";for(var p in u)n.call(u,p)&&u[p]&&(f=s(f,p));return f}function s(u,f){return f?u?u+" "+f:u+f:u}t.exports?(a.default=a,t.exports=a):window.classNames=a})()}(Zf)),Zf.exports}var we={},Jf={},a0;function zw(){return a0||(a0=1,function(t){Object.defineProperty(t,"__esMo
129dule",{value:!0}),t.default=void 0;var n=a(gr());function a(s){return s&&s.__esModule?s:{default:s}}var l={accessibility:!0,adaptiveHeight:!1,afterChange:null,appendDots:function(u){return n.default.createElement("ul",{style:{display:"block"}},u)},arrows:!0,autoplay:!1,autoplaySpeed:3e3,beforeChange:null,centerMode:!1,centerPadding:"50px",className:"",cssEase:"ease",customPaging:function(u){return n.default.createElement("button",null,u+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,infinite:!0,initialSlide:0,lazyLoad:null,nextArrow:null,onEdge:null,onInit:null,onLazyLoadError:null,onReInit:null,pauseOnDotsHover:!1,pauseOnFocus:!1,pauseOnHover:!0,prevArrow:null,responsive:null,rows:1,rtl:!1,slide:"div",slidesPerRow:1,slidesToScroll:1,slidesToShow:1,speed:500,swipe:!0,swipeEvent:null,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,waitForAnimate:!0,asNavFor:null,unslick:!1};t.default=l}(Jf)),Jf}var i0;function ls(){if(i0)return we;i0=1,Object.defineProperty(we,"__esModule",{value:!0}),we.checkSpecKeys=we.checkNavigable=we.changeSlide=we.canUseDOM=we.canGoNext=void 0,we.clamp=v,we.extractObject=void 0,we.filterSettings=ce,we.validSettings=we.swipeStart=we.swipeMove=we.swipeEnd=we.slidesOnRight=we.slidesOnLeft=we.slideHandler=we.siblingDirection=we.safePreventDefault=we.lazyStartIndex=we.lazySlidesOnRight=we.lazySlidesOnLeft=we.lazyEndIndex=we.keyHandler=we.initializedState=we.getWidth=we.getTrackLeft=we.getTrackCSS=we.getTrackAnimateCSS=we.getTotalSlides=we.getSwipeDirection=we.getSlideCount=we.getRequiredLazySlides=we.getPreClones=we.getPostClones=we.getOnDemandLazySlides=we.getNavigableIndexes=we.getHeight=void 0;var t=a(gr()),n=a(zw());function a(M){return M&&M.__esModule?M:{default:M}}function l(M){"@babel/helpers - typeof";return l=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(m){return typeof m}:function(m){return m&&typeof Symbol=="function"&&m.constructor===Symbol&&m!==Symbol.prototype?"symbol":typeof m},l(M)}function s(M,m){var S=Object.keys(M);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(M);m&&(U=U.filter(function(Y){return Object.getOwnPropertyDescriptor(M,Y).enumerable})),S.push.apply(S,U)}return S}function u(M){for(var m=1;m<arguments.length;m++){var S=arguments[m]!=null?arguments[m]:{};m%2?s(Object(S),!0).forEach(function(U){f(M,U,S[U])}):Object.getOwnPropertyDescriptors?Object.defineProperties(M,Object.getOwnPropertyDescriptors(S)):s(Object(S)).forEach(function(U){Object.defineProperty(M,U,Object.getOwnPropertyDescriptor(S,U))})}return M}function f(M,m,S){return m=p(m),m in M?Object.defineProperty(M,m,{value:S,enumerable:!0,configurable:!0,writable:!0}):M[m]=S,M}function p(M){var m=h(M,"string");return l(m)=="symbol"?m:String(m)}function h(M,m){if(l(M)!="object"||!M)return M;var S=M[Symbol.toPrimitive];if(S!==void 0){var U=S.call(M,m);if(l(U)!="object")return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return(m==="string"?String:Number)(M)}function v(M,m,S){return Math.max(m,Math.min(M,S))}var w=we.safePreventDefault=function(m){var S=["onTouchStart","onTouchMove","onWheel"];S.includes(m._reactName)||m.preventDefault()},C=we.getOnDemandLazySlides=function(m){for(var S=[],U=_(m),Y=A(m),W=U;W<Y;W++)m.lazyLoadedList.indexOf(W)<0&&S.push(W);return S};we.getRequiredLazySlides=function(m){for(var S=[],U=_(m),Y=A(m),W=U;W<Y;W++)S.push(W);return S};var _=we.lazyStartIndex=function(m){return m.currentSlide-j(m)},A=we.lazyEndIndex=function(m){return m.currentSlide+I(m)},j=we.lazySlidesOnLeft=function(m){return m.centerMode?Math.floor(m.slidesToShow/2)+(parseInt(m.centerPadding)>0?1:0):0},I=we.lazySlidesOnRight=function(m){return m.centerMode?Math.floor((m.slidesToShow-1)/2)+1+(parseInt(m.centerPadding)>0?1:0):m.slidesToShow},Z=we.getWidth=function(m){return m&&m.offsetWidth||0},V=we.getHeight=function(m){return m&&m.offsetHeight||0},ee=we.getSwipeDirection=function(m){var S=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,U,Y,W,ue;return U=m.startX-m.curX,Y=m.startY-m.curY,W=Math.atan2(Y,U),ue=Math.round(W*180/Math.PI),ue<0&&(ue=360-Math.abs(ue)),ue<=45&&ue>=0||ue<=360&&ue>=315?"left":ue>=135&&ue<=225?"right":S===!0?ue>=35&&ue<=135?"up":"down":"vertical"},ae=we.canGoNext=function(m){var S=!0;return m.infinite||(m.centerMode&&m.currentSlide>=m.slideCount-1||m.slideCount<=m.slidesToShow||m.currentSlide>=m.slideCount-m.slidesToShow)&&(S=!1),S};we.extractObject=function(m,S){var U={};
vendor: 15,914 bytes, line 129
129return S.forEach(function(Y){return U[Y]=m[Y]}),U},we.initializedState=function(m){var S=t.default.Children.count(m.children),U=m.listRef,Y=Math.ceil(Z(U)),W=m.trackRef&&m.trackRef.node,ue=Math.ceil(Z(W)),ie;if(m.vertical)ie=Y;else{var pe=m.centerMode&&parseInt(m.centerPadding)*2;typeof m.centerPadding=="string"&&m.centerPadding.slice(-1)==="%"&&(pe*=Y/100),ie=Math.ceil((Y-pe)/m.slidesToShow)}var ye=U&&V(U.querySelector('[data-index="0"]')),Me=ye*m.slidesToShow,Ee=m.currentSlide===void 0?m.initialSlide:m.currentSlide;m.rtl&&m.currentSlide===void 0&&(Ee=S-1-m.initialSlide);var ze=m.lazyLoadedList||[],qe=C(u(u({},m),{},{currentSlide:Ee,lazyLoadedList:ze}));ze=ze.concat(qe);var He={slideCount:S,slideWidth:ie,listWidth:Y,trackWidth:ue,currentSlide:Ee,slideHeight:ye,listHeight:Me,lazyLoadedList:ze};return m.autoplaying===null&&m.autoplay&&(He.autoplaying="playing"),He},we.slideHandler=function(m){var S=m.waitForAnimate,U=m.animating,Y=m.fade,W=m.infinite,ue=m.index,ie=m.slideCount,pe=m.lazyLoad,ye=m.currentSlide,Me=m.centerMode,Ee=m.slidesToScroll,ze=m.slidesToShow,qe=m.useCSS,He=m.lazyLoadedList;if(S&&U)return{};var De=ue,Ie,dt,Oe,at={},Be={},ft=W?ue:v(ue,0,ie-1);if(Y){if(!W&&(ue<0||ue>=ie))return{};ue<0?De=ue+ie:ue>=ie&&(De=ue-ie),pe&&He.indexOf(De)<0&&(He=He.concat(De)),at={animating:!0,currentSlide:De,lazyLoadedList:He,targetSlide:De},Be={animating:!1,targetSlide:De}}else Ie=De,De<0?(Ie=De+ie,W?ie%Ee!==0&&(Ie=ie-ie%Ee):Ie=0):!ae(m)&&De>ye?De=Ie=ye:Me&&De>=ie?(De=W?ie:ie-1,Ie=W?0:ie-1):De>=ie&&(Ie=De-ie,W?ie%Ee!==0&&(Ie=0):Ie=ie-ze),!W&&De+ze>=ie&&(Ie=ie-ze),dt=T(u(u({},m),{},{slideIndex:De})),Oe=T(u(u({},m),{},{slideIndex:Ie})),W||(dt===Oe&&(De=Ie),dt=Oe),pe&&(He=He.concat(C(u(u({},m),{},{currentSlide:De})))),qe?(at={animating:!0,currentSlide:Ie,trackStyle:N(u(u({},m),{},{left:dt})),lazyLoadedList:He,targetSlide:ft},Be={animating:!1,currentSlide:Ie,trackStyle:re(u(u({},m),{},{left:Oe})),swipeLeft:null,targetSlide:ft}):at={currentSlide:Ie,trackStyle:re(u(u({},m),{},{left:Oe})),lazyLoadedList:He,targetSlide:ft};return{state:at,nextState:Be}},we.changeSlide=function(m,S){var U,Y,W,ue,ie,pe=m.slidesToScroll,ye=m.slidesToShow,Me=m.slideCount,Ee=m.currentSlide,ze=m.targetSlide,qe=m.lazyLoad,He=m.infinite;if(ue=Me%pe!==0,U=ue?0:(Me-Ee)%pe,S.message==="previous")W=U===0?pe:ye-U,ie=Ee-W,qe&&!He&&(Y=Ee-W,ie=Y===-1?Me-1:Y),He||(ie=ze-pe);else if(S.message==="next")W=U===0?pe:U,ie=Ee+W,qe&&!He&&(ie=(Ee+pe)%Me+U),He||(ie=ze+pe);else if(S.message==="dots")ie=S.index*S.slidesToScroll;else if(S.message==="children"){if(ie=S.index,He){var De=B(u(u({},m),{},{targetSlide:ie}));ie>S.currentSlide&&De==="left"?ie=ie-Me:ie<S.currentSlide&&De==="right"&&(ie=ie+Me)}}else S.message==="index"&&(ie=Number(S.index));return ie},we.keyHandler=function(m,S,U){return m.target.tagName.match("TEXTAREA|INPUT|SELECT")||!S?"":m.keyCode===37?U?"next":"previous":m.keyCode===39?U?"previous":"next":""},we.swipeStart=function(m,S,U){return m.target.tagName==="IMG"&&w(m),!S||!U&&m.type.indexOf("mouse")!==-1?"":{dragging:!0,touchObject:{startX:m.touches?m.touches[0].pageX:m.clientX,startY:m.touches?m.touches[0].pageY:m.clientY,curX:m.touches?m.touches[0].pageX:m.clientX,curY:m.touches?m.touches[0].pageY:m.clientY}}},we.swipeMove=function(m,S){var U=S.scrolling,Y=S.animating,W=S.vertical,ue=S.swipeToSlide,ie=S.verticalSwiping,pe=S.rtl,ye=S.currentSlide,Me=S.edgeFriction,Ee=S.edgeDragged,ze=S.onEdge,qe=S.swiped,He=S.swiping,De=S.slideCount,Ie=S.slidesToScroll,dt=S.infinite,Oe=S.touchObject,at=S.swipeEvent,Be=S.listHeight,ft=S.listWidth;if(!U){if(Y)return w(m);W&&ue&&ie&&w(m);var wt,Mt={},Vt=T(S);Oe.curX=m.touches?m.touches[0].pageX:m.clientX,Oe.curY=m.touches?m.touches[0].pageY:m.clientY,Oe.swipeLength=Math.round(Math.sqrt(Math.pow(Oe.curX-Oe.startX,2)));var Bn=Math.round(Math.sqrt(Math.pow(Oe.curY-Oe.startY,2)));if(!ie&&!He&&Bn>10)return{scrolling:!0};ie&&(Oe.swipeLength=Bn);var Ft=(pe?-1:1)*(Oe.curX>Oe.startX?1:-1);ie&&(Ft=Oe.curY>Oe.startY?1:-1);var Tt=Math.ceil(De/Ie),Xe=ee(S.touchObject,ie),Ct=Oe.swipeLength;return dt||(ye===0&&(Xe==="right"||Xe==="down")||ye+1>=Tt&&(Xe==="left"||Xe==="up")||!ae(S)&&(Xe==="left"||Xe==="up"))&&(Ct=Oe.swipeLength*Me,Ee===!1&&ze&&(ze(Xe),Mt.edgeDragged=!0)),!qe&&at&&(at(Xe),Mt.swiped=!0),W?wt=Vt+Ct*(Be/ft)*Ft:pe?wt=Vt-Ct*Ft:wt=Vt+Ct*Ft,ie&&(wt=Vt+Ct*Ft),Mt=u(u({},Mt),{},{touchObject:Oe,swipeLeft:wt,trackStyle:re(u(u({},S),{},{left:wt}))}),Math.abs(Oe.curX-Oe.startX)<Math.abs(Oe.curY-Oe.startY)*.8||Oe.swipeLength>10&&(Mt.swiping=!0,w(m)),Mt}},we.swipeEnd=function(m,S){var U=S.dragging,Y=S.swipe,W=S.touchObject,ue=S.listWidth,ie=S.touchThreshold,pe=S.verticalSwiping,ye=S.listHeight,Me=S.swipeToSlide,Ee=S.scrolling,ze=S.onSwipe,qe=S.targetSlide,He=S.currentSlide,De=S.infinite;if(!U)return Y&&w(m),{};var Ie=pe?ye/ie:ue/ie,dt=ee(W,pe),Oe={dragging:!1,edgeDragged:!1,scrolling:!1,swiping:!1,swiped:!1,swipeLeft:null,touchObject:{}};if(Ee||!W.swipeLength)return Oe;if(W.swipeLength>Ie){w(m),ze&&ze(dt);var at,Be,ft=De?He:qe;switch(dt){case"left":case"up":Be=ft+E(S),at=Me?O(S,Be):Be,Oe.currentDirection=0;break;case"right":case"down":Be=ft-E(S),at=Me?O(S,Be):Be,Oe.currentDirection=1;break;default:at=ft}Oe.triggerSlideHandler=at}else{var wt=T(S);Oe.trackStyle=N(u(u({},S),{},{left:wt}))}return Oe};var he=we.getNavigableIndexes=function(m){for(var S=m.infinite?m.slideCount*2:m.slideCount,U=m.infinite?m.slidesToShow*-1:0,Y=m.infinite?m.slidesToShow*-1:0,W=[];U<S;)W.push(U),U=Y+m.slidesToScroll,Y+=Math.min(m.slidesToScroll,m.slidesToShow);return W},O=we.checkNavigable=function(m,S){var U=he(m),Y=0;if(S>U[U.length-1])S=U[U.length-1];else for(var W in U){if(S<U[W]){S=Y;break}Y=U[W]}return S},E=we.getSlideCount=function(m){var S=m.centerMode?m.slideWidth*Math.floor(m.slidesToShow/2):0;if(m.swipeToSlide){var U,Y=m.listRef,W=Y.querySelectorAll&&Y.querySelectorAll(".slick-slide")||[];if(Array.from(W).every(function(pe){if(m.vertical){if(pe.offsetTop+V(pe)/2>m.swipeLeft*-1)return U=pe,!1}else if(pe.offsetLeft-S+Z(pe)/2>m.swipeLeft*-1)return U=pe,!1;return!0}),!U)return 0;var ue=m.rtl===!0?m.slideCount-m.currentSlide:m.currentSlide,ie=Math.abs(U.dataset.index-ue)||1;return ie}else return m.slidesToScroll},P=we.checkSpecKeys=function(m,S){return S.reduce(function(U,Y){return U&&m.hasOwnProperty(Y)},!0)?null:console.error("Keys Missing:",m)},re=we.getTrackCSS=function(m){P(m,["left","variableWidth","slideCount","slidesToShow","slideWidth"]);var S,U,Y=m.slideCount+2*m.slidesToShow;m.vertical?U=Y*m.slideHeight:S=H(m)*m.slideWidth;var W={opacity:1,transition:"",WebkitTransition:""};if(m.useTransform){var ue=m.vertical?"translate3d(0px, "+m.left+"px, 0px)":"translate3d("+m.left+"px, 0px, 0px)",ie=m.vertical?"translate3d(0px, "+m.left+"px, 0px)":"translate3d("+m.left+"px, 0px, 0px)",pe=m.vertical?"translateY("+m.left+"px)":"translateX("+m.left+"px)";W=u(u({},W),{},{WebkitTransform:ue,transform:ie,msTransform:pe})}else m.vertical?W.top=m.left:W.left=m.left;return m.fade&&(W={opacity:1}),S&&(W.width=S),U&&(W.height=U),window&&!window.addEventListener&&window.attachEvent&&(m.vertical?W.marginTop=m.left+"px":W.marginLeft=m.left+"px"),W},N=we.getTrackAnimateCSS=function(m){P(m,["left","variableWidth","slideCount","slidesToShow","slideWidth","speed","cssEase"]);var S=re(m);return m.useTransform?(S.WebkitTransition="-webkit-transform "+m.speed+"ms "+m.cssEase,S.transition="transform "+m.speed+"ms "+m.cssEase):m.vertical?S.transition="top "+m.speed+"ms "+m.cssEase:S.transition="left "+m.speed+"ms "+m.cssEase,S},T=we.getTrackLeft=function(m){if(m.unslick)return 0;P(m,["slideIndex","trackRef","infinite","centerMode","slideCount","slidesToShow","slidesToScroll","slideWidth","listWidth","variableWidth","slideHeight"]);var S=m.slideIndex,U=m.trackRef,Y=m.infinite,W=m.centerMode,ue=m.slideCount,ie=m.slidesToShow,pe=m.slidesToScroll,ye=m.slideWidth,Me=m.listWidth,Ee=m.variableWidth,ze=m.slideHeight,qe=m.fade,He=m.vertical,De=0,Ie,dt,Oe=0;if(qe||m.slideCount===1)return 0;var at=0;if(Y?(at=-F(m),ue%pe!==0&&S+pe>ue&&(at=-(S>ue?ie-(S-ue):ue%pe)),W&&(at+=parseInt(ie/2))):(ue%pe!==0&&S+pe>ue&&(at=ie-ue%pe),W&&(at=parseInt(ie/2))),De=at*ye,Oe=at*ze,He?Ie=S*ze*-1+Oe:Ie=S*ye*-1+De,Ee===!0){var Be,ft=U&&U.node;if(Be=S+F(m),dt=ft&&ft.childNodes[Be],Ie=dt?dt.offsetLeft*-1:0,W===!0){Be=Y?S+F(m):S,dt=ft&&ft.children[Be],Ie=0;for(var wt=0;wt<Be;wt++)Ie-=ft&&ft.children[wt]&&ft.children[wt].offsetWidth;Ie-=parseInt(m.centerPadding),Ie+=dt&&(Me-dt.offsetWidth)/2}}return Ie},F=we.getPreClones=function(m){return m.unslick||!m.infinite?0:m.variableWidth?m.slideCount:m.slidesToShow+(m.centerMode?1:0)},ne=we.getPostClones=function(m){return m.unslick||!m.infinite?0:m.slideCount},H=we.getTotalSlides=function(m){return m.slideCount===1?1:F(m)+m.slideCount+ne(m)},B=we.siblingDirection=function(m){return m.targetSlide>m.currentSlide?m.targetSlide>m.currentSlide+le(m)?"left":"right":m.targetSlide<m.currentSlide-R(m)?"right":"left"},le=we.slidesOnRight=function(m){var S=m.slidesToShow,U=m.centerMode,Y=m.rtl,W=m.centerPadding;if(U){var ue=(S-1)/2+1;return parseInt(W)>0&&(ue+=1),Y&&S%2===0&&(ue+=1),ue}return Y?0:S-1},R=we.slidesOnLeft=function(m){var S=m.slidesToShow,U=m.centerMode,Y=m.rtl,W=m.centerPadding;if(U){var ue=(S-1)/2+1;return parseInt(W)>0&&(ue+=1),!Y&&S%2===0&&(ue+=1),ue}return Y?S-1:0};we.canUseDOM=function(){return!!(typeof window<"u"&&window.document&&window.document.createElement)};var y=we.validSettings=Object.keys(n.default);function ce(M){return y.reduce(function(m,S){return M.hasOwnProperty(S)&&(m[S]=M[S]),m},{})}return we}var zo={},l0;function j3(){if(l0)return zo;l0=1,Object.defineProperty(zo,"__esModule",{value:!0}),zo.Track=void 0;var t=l(gr()),n=l(is()),a=ls();function l(N){return N&&N.__esModule?N:{default:N}}function s(N){"@babel/helpers - typeof";return s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},s(N)}function u(){return u=Object.assign?Object.assign.bind():function(N){for(var T=1;T<arguments.length;T++){var F=arguments[T];for(var ne in F)Object.prototype.hasOwnProperty.call(F,ne)&&(N[ne]=F[ne])}return N},u.apply(this,arguments)}function f(N,T){if(!(N instanceof T))throw new TypeError("Cannot call a class as a function")}function p(N,T){for(var F=0;F<T.length;F++){var ne=T[F];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(N,ae(ne.key),ne)}}function h(N,T,F){return T&&p(N.prototype,T),Object.defineProperty(N,"prototype",{writable:!1}),N}function v(N,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(T&&T.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),Object.defineProperty(N,"prototype",{writable:!1}),T&&w(N,T)}function w(N,T){return w=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ne,H){return ne.__proto__=H,ne},w(N,T)}function C(N){var T=j();return function(){var ne=I(N),H;if(T){var B=I(this).constructor;H=Reflect.construct(ne,arguments,B)}else H=ne.apply(this,arguments);return _(this,H)}}function _(N,T){if(T&&(s(T)==="object"||typeof T=="function"))return T;if(T!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return A(N)}function A(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function j(){try{var N=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(j=function(){return!!N})()}function I(N){return I=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)},I(N)}function Z(N,T){var F=Object.keys(N);if(Object.getOwnPropertySymbols){var ne=Object.getOwnPropertySymbols(N);T&&(ne=ne.filter(function(H){return Object.getOwnPropertyDescriptor(N,H).enumerable})),F.push.apply(F,ne)}return F}function V(N){for(var T=1;T<arguments.length;T++){var F=arguments[T]!=null?arguments[T]:{};T%2?Z(Object(F),!0).forEach(function(ne){ee(N,ne,F[ne])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(F)):Z(Object(F)).forEach(function(ne){Object.defineProperty(N,ne,Object.getOwnPropertyDescriptor(F,ne))})}return N}function ee(N,T,F){return T=ae(T),T in N?Object.defineProperty(N,T,{value:F,enumerable:!0,configurable:!0,writable:!0}):N[T]=F,N}function ae(N){var T=he(N,"string");return s(T)=="symbol"?T:String(T)}function he(N,T){if(s(N)!="object"||!N)return N;var F=N[Symbol.toPrimitive];if(F!==void 0){var ne=F.call(N,T);if(s(ne)!="object")return ne;throw new TypeError("@@toPrimitive must return a primitive value.")}return(T==="string"?String:Number)(N)}var O=function(T){var F,ne,H,B,le;T.rtl?le=T.slideCount-1-T.index:le=T.index,H=le<0||le>=T.slideCount,T.centerMode?(B=Math.floor(T.slidesToShow/2),ne=(le-T.currentSlide)%T.slideCount===0,le>T.currentSlide-B-1&&le<=T.currentSlide+B&&(F=!0)):F=T.currentSlide<=le&&le<T.currentSlide+T.slidesToShow;var R;T.targetSlide<0?R=T.targetSlide+T.slideCount:T.targetSlide>=T.slideCount?R=T.targetSlide-T.slideCount:R=T.targetSlide;var y=le===R;return{"slick-slide":!0,"slick-active":F,"slick-center":ne,"slick-cloned":H,"slick-current":y}},E=function(T){var F={};return(T.variableWidth===void 0||T.variableWidth===!1)&&(F.width=T.slideWidth),T.fade&&(F.position="relative",T.vertical?F.top=-T.index*parseInt(T.slideHeight):F.left=-T.index*parseInt(T.slideWidth),F.opacity=T.currentSlide===T.index?1:0,F.zIndex=T.currentSlide===T.index?999:998,T.useCSS&&(F.transition="opacity "+T.speed+"ms "+T.cssEase+", visibility "+T.speed+"ms "+T.cssEase)),F},P=function(T,F){return T.key||F},re=function(T){var F,ne=[],H=[],B=[],le=t.default.Children.count(T.children),R=(0,a.lazyStartIndex)(T),y=(0,a.lazyEndIndex)(T);return t.default.Children.forEach(T.children,function(ce,M){var m,S={message:"children",index:M,slidesToScroll:T.slidesToScroll,currentSlide:T.currentSlide};!T.lazyLoad||T.lazyLoad&&T.lazyLoadedList.indexOf(M)>=0?m=ce:m=t.default.createElement("div",null);var U=E(V(V({},T),{},{index:M})),Y=m.props.className||"",W=O(V(V({},T),{},{index:M}));if(ne.push(t.default.cloneElement(m,{key:"original"+P(m,M),"data-index":M,className:(0,n.default)(W,Y),tabIndex:"-1","aria-hidden":!W["slick-active"],style:V(V({outline:"none"},m.props.style||{}),U),onClick:function(pe){m.props&&m.props.onClick&&m.props.onClick(pe),T.focusOnSelect&&T.focusOnSelect(S)}})),T.infinite&&T.fade===!1){var ue=le-M;ue<=(0,a.getPreClones)(T)&&(F=-ue,F>=R&&(m=ce),W=O(V(V({},T),{},{index:F})),H.push(t.default.cloneElement(m,{key:"precloned"+P(m,F),"data-index":F,tabIndex:"-1",className:(0,n.default)(W,Y),"aria-hidden":!W["slick-active"],style:V(V({},m.props.style||{}),U),onClick:function(pe){m.props&&m.props.onClick&&m.props.onClick(pe),T.focusOnSelect&&T.focusOnSelect(S)}}))),F=le+M,F<y&&(m=ce),W=O(V(V({},T),{},{index:F})),B.push(t.default.cloneElement(m,{key:"postcloned"+P(m,F),"data-index":F,tabIndex:"-1",className:(0,n.default)(W,Y),"aria-hidden":!W["slick-active"],style:V(V({},m.props.style||{}),U),onClick:function(pe){m.props&&m.props.onClick&&m.props.onClick(pe),T.focusOnSelect&&T.focusOnSelect(S)}}))}}),T.rtl?H.concat(ne,B).reverse():H.concat(ne,B)};return zo.Track=function(N){v(F,N);var T=C(F);function F(){var ne;f(this,F);for(var H=arguments.length,B=new Array(H),le=0;le<H;le++)B[le]=arguments[le];return ne=T.call.apply(T,[this].concat(B)),ee(A(ne),"node",null),ee(A(ne),"handleRef",function(R){ne.node=R}),ne}return h(F,[{key:"render",value:function(){var H=re(this.props),B=this.props,le=B.onMouseEnter,R=B.onMouseOver,y=B.onMouseLeave,ce={onMouseEnter:le,onMouseOver:R,onMouseLeave:y};return t.default.createElement("div",u({ref:this.handleRef,className:"slick-track",style:this.props.trackStyle},ce),H)}}]),F}(t.default.PureComponent),zo}var Po={},o0;
129function k3(){if(o0)return Po;o0=1;function t(O){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},t(O)}Object.defineProperty(Po,"__esModule",{value:!0}),Po.Dots=void 0;var n=s(gr()),a=s(is()),l=ls();function s(O){return O&&O.__esModule?O:{default:O}}function u(O,E){var P=Object.keys(O);if(Object.getOwnPropertySymbols){var re=Object.getOwnPropertySymbols(O);E&&(re=re.filter(function(N){return Object.getOwnPropertyDescriptor(O,N).enumerable})),P.push.apply(P,re)}return P}function f(O){for(var E=1;E<arguments.length;E++){var P=arguments[E]!=null?arguments[E]:{};E%2?u(Object(P),!0).forEach(function(re){p(O,re,P[re])}):Object.getOwnPropertyDescriptors?Object.defineProperties(O,Object.getOwnPropertyDescriptors(P)):u(Object(P)).forEach(function(re){Object.defineProperty(O,re,Object.getOwnPropertyDescriptor(P,re))})}return O}function p(O,E,P){return E=C(E),E in O?Object.defineProperty(O,E,{value:P,enumerable:!0,configurable:!0,writable:!0}):O[E]=P,O}function h(O,E){if(!(O instanceof E))throw new TypeError("Cannot call a class as a function")}function v(O,E){for(var P=0;P<E.length;P++){var re=E[P];re.enumerable=re.enumerable||!1,re.configurable=!0,"value"in re&&(re.writable=!0),Object.defineProperty(O,C(re.key),re)}}function w(O,E,P){return E&&v(O.prototype,E),Object.defineProperty(O,"prototype",{writable:!1}),O}function C(O){var E=_(O,"string");return t(E)=="symbol"?E:String(E)}function _(O,E){if(t(O)!="object"||!O)return O;var P=O[Symbol.toPrimitive];if(P!==void 0){var re=P.call(O,E);if(t(re)!="object")return re;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(O)}function A(O,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function");O.prototype=Object.create(E&&E.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),Object.defineProperty(O,"prototype",{writable:!1}),E&&j(O,E)}
129function j(O,E){return j=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(re,N){return re.__proto__=N,re},j(O,E)}function I(O){var E=ee();return function(){var re=ae(O),N;if(E){var T=ae(this).constructor;N=Reflect.construct(re,arguments,T)}else N=re.apply(this,arguments);return Z(this,N)}}function Z(O,E){if(E&&(t(E)==="object"||typeof E=="function"))return E;if(E!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return V(O)}function V(O){if(O===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O}function ee(){try{var O=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ee=function(){return!!O})()}function ae(O){return ae=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(P){return P.__proto__||Object.getPrototypeOf(P)},ae(O)}var he=function(E){var P;return E.infinite?P=Math.ceil(E.slideCount/E.slidesToScroll):P=Math.ceil((E.slideCount-E.slidesToShow)/E.slidesToScroll)+1,P};return Po.Dots=function(O){A(P,O);var E=I(P);function P(){return h(this,P),E.apply(this,arguments)}return w(P,[{key:"clickHandler",value:function(N,T){T.preventDefault(),this.props.clickHandler(N)}},{key:"render",value:function(){for(var N=this.props,T=N.onMouseEnter,F=N.onMouseOver,ne=N.onMouseLeave,H=N.infinite,B=N.slidesToScroll,le=N.slidesToShow,R=N.slideCount,y=N.currentSlide,ce=he({slideCount:R,slidesToScroll:B,slidesToShow:le,infinite:H}),M={onMouseEnter:T,onMouseOver:F,onMouseLeave:ne},m=[],S=0;S<ce;S++){var U=(S+1)*B-1,Y=H?U:(0,l.clamp)(U,0,R-1),W=Y-(B-1),ue=H?W:(0,l.clamp)(W,0,R-1),ie=(0,a.default)({"slick-active":H?y>=ue&&y<=Y:y===ue}),pe={message:"dots",index:S,slidesToScroll:B,currentSlide:y},ye=this.clickHandler.bind(this,pe);m=m.concat(n.default.createElement("li",{key:S,className:ie},n.default.cloneElement(this.props.customPaging(S),{onClick:ye})))}return n.default.cloneElement(this.props.appendDots(m),f({className:this.props.dotsClass},M))}}]),P}(n.default.PureComponent),Po}var fi={},s0;function L3(){if(s0)return fi;s0=1;function t(O){"@babel/helpers - typeof";return t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(E){return typeof E}:function(E){return E&&typeof Symbol=="function"&&E.constructor===Symbol&&E!==Symbol.prototype?"symbol":typeof E},t(O)}Object.defineProperty(fi,"__esModule",{value:!0}),fi.PrevArrow=fi.NextArrow=void 0;var n=s(gr()),a=s(is()),l=ls();function s(O){return O&&O.__esModule?O:{default:O}}function u(){return u=Object.assign?Object.assign.bind():function(O){for(var E=1;E<arguments.length;E++){var P=arguments[E];for(var re in P)Object.prototype.hasOwnProperty.call(P,re)&&(O[re]=P[re])}return O},u.apply(this,arguments)}function f(O,E){var P=Object.keys(O);if(Object.getOwnPropertySymbols){var re=Object.getOwnPropertySymbols(O);E&&(re=re.filter(function(N){return Object.getOwnPropertyDescriptor(O,N).enumerable})),P.push.apply(P,re)}return P}function p(O){for(var E=1;E<arguments.length;E++){var P=arguments[E]!=null?arguments[E]:{};E%2?f(Object(P),!0).forEach(function(re){h(O,re,P[re])}):Object.getOwnPropertyDescriptors?Object.defineProperties(O,Object.getOwnPropertyDescriptors(P)):f(Object(P)).forEach(function(re){Object.defineProperty(O,re,Object.getOwnPropertyDescriptor(P,re))})}return O}function h(O,E,P){return E=_(E),E in O?Object.defineProperty(O,E,{value:P,enumerable:!0,configurable:!0,writable:!0}):O[E]=P,O}function v(O,E){if(!(O instanceof E))throw new TypeError("Cannot call a class as a function")}function w(O,E){for(var P=0;P<E.length;P++){var re=E[P];re.enumerable=re.enumerable||!1,re.configurable=!0,"value"in re&&(re.writable=!0),Object.defineProperty(O,_(re.key),re)}}function C(O,E,P){return E&&w(O.prototype,E),Object.defineProperty(O,"prototype",{writable:!1}),O}function _(O){var E=A(O,"string");return t(E)=="symbol"?E:String(E)}function A(O,E){if(t(O)!="object"||!O)return O;var P=O[Symbol.toPrimitive];if(P!==void 0){var re=P.call(O,E);if(t(re)!="object")return re;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(O)}function j(O,E){if(typeof E!="function"&&E!==null)throw new TypeError("Super expression must either be null or a function");O.prototype=Object.create(E&&E.prototype,{constructor:{value:O,writable:!0,configurable:!0}}),Object.defineProperty(O,"prototype",{writable:!1}),E&&I(O,E)}
129function I(O,E){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(re,N){return re.__proto__=N,re},I(O,E)}function Z(O){var E=ae();return function(){var re=he(O),N;if(E){var T=he(this).constructor;N=Reflect.construct(re,arguments,T)}else N=re.apply(this,arguments);return V(this,N)}}function V(O,E){if(E&&(t(E)==="object"||typeof E=="function"))return E;if(E!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ee(O)}function ee(O){if(O===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return O}function ae(){try{var O=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ae=function(){return!!O})()}function he(O){return he=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(P){return P.__proto__||Object.getPrototypeOf(P)},he(O)}return fi.PrevArrow=function(O){j(P,O);var E=Z(P);function P(){return v(this,P),E.apply(this,arguments)}return C(P,[{key:"clickHandler",value:function(N,T){T&&T.preventDefault(),this.props.clickHandler(N,T)}},{key:"render",value:function(){var N={"slick-arrow":!0,"slick-prev":!0},T=this.clickHandler.bind(this,{message:"previous"});!this.props.infinite&&(this.props.currentSlide===0||this.props.slideCount<=this.props.slidesToShow)&&(N["slick-disabled"]=!0,T=null);var F={key:"0","data-role":"none",className:(0,a.default)(N),style:{display:"block"},onClick:T},ne={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},H;return this.props.prevArrow?H=n.default.cloneElement(this.props.prevArrow,p(p({},F),ne)):H=n.default.createElement("button",u({key:"0",type:"button"},F)," ","Previous"),H}}]),P}(n.default.PureComponent),fi.NextArrow=function(O){j(P,O);var E=Z(P);function P(){return v(this,P),E.apply(this,arguments)}return C(P,[{key:"clickHandler",value:function(N,T){T&&T.preventDefault(),this.props.clickHandler(N,T)}},{key:"render",value:function(){var N={"slick-arrow":!0,"slick-next":!0},T=this.clickHandler.bind(this,{message:"next"});(0,l.canGoNext)(this.props)||(N["slick-disabled"]=!0,T=null);var F={key:"1","data-role":"none",className:(0,a.default)(N),style:{display:"block"},onClick:T},ne={currentSlide:this.props.currentSlide,slideCount:this.props.slideCount},H;return this.props.nextArrow?H=n.default.cloneElement(this.props.nextArrow,p(p({},F),ne)):H=n.default.createElement("button",u({key:"1",type:"button"},F)," ","Next"),H}}]),P}(n.default.PureComponent),fi}var Pw=function(){if(typeof Map<"u")return Map;function t(n,a){var l=-1;return n.some(function(s,u){return s[0]===a?(l=u,!0):!1}),l}return function(){function n(){this.__entries__=[]}return Object.defineProperty(n.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),n.prototype.get=function(a){var l=t(this.__entries__,a),s=this.__entries__[l];return s&&s[1]},n.prototype.set=function(a,l){var s=t(this.__entries__,a);~s?this.__entries__[s][1]=l:this.__entries__.push([a,l])},n.prototype.delete=function(a){var l=this.__entries__,s=t(l,a);~s&&l.splice(s,1)},n.prototype.has=function(a){return!!~t(this.__entries__,a)},n.prototype.clear=function(){this.__entries__.splice(0)},n.prototype.forEach=function(a,l){l===void 0&&(l=null);for(var s=0,u=this.__entries__;s<u.length;s++){var f=u[s];a.call(l,f[1],f[0])}},n}()}(),_h=typeof window<"u"&&typeof document<"u"&&window.document===document,Jc=function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()}(),z3=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Jc):function(t){return setTimeout(function(){return t(Date.now())},1e3/60)}}(),P3=2;function I3(t,n){var a=!1,l=!1,s=0;function u(){a&&(a=!1,t()),l&&p()}function f(){z3(u)}function p(){var h=Date.now();if(a){if(h-s<P3)return;l=!0}else a=!0,l=!1,setTimeout(f,n);s=h}return p}var U3=20,H3=["top","right","bottom","left","width","height","size","weight"],B3=typeof MutationObserver<"u",q3=function(){function t(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=I3(this.refresh.bind(this),U3)}return t.prototype.addObserver=function(n){~this.observers_.indexOf(n)||this.observers_.push(n),this.connected_||this.connect_()},t.prototype.removeObserver=function(n){var a=this.observers_,l=a.indexOf(n);~l&&a.splice(l,1),!a.length&&this.connected_&&this.disconnect_()},t.prototype.refresh=function(){var n=this.updateObservers_();n&&this.refresh()},t.prototype.updateObservers_=function(){var n=this.observers_.filter(function(a){return a.gatherActive(),a.hasActive()});
vendor: 4,101 bytes, line 129
129return n.forEach(function(a){return a.broadcastActive()}),n.length>0},t.prototype.connect_=function(){!_h||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),B3?(this.mutationsObserver_=new MutationObserver(this.refresh),this.mutationsObserver_.observe(document,{attributes:!0,childList:!0,characterData:!0,subtree:!0})):(document.addEventListener("DOMSubtreeModified",this.refresh),this.mutationEventsAdded_=!0),this.connected_=!0)},t.prototype.disconnect_=function(){!_h||!this.connected_||(document.removeEventListener("transitionend",this.onTransitionEnd_),window.removeEventListener("resize",this.refresh),this.mutationsObserver_&&this.mutationsObserver_.disconnect(),this.mutationEventsAdded_&&document.removeEventListener("DOMSubtreeModified",this.refresh),this.mutationsObserver_=null,this.mutationEventsAdded_=!1,this.connected_=!1)},t.prototype.onTransitionEnd_=function(n){var a=n.propertyName,l=a===void 0?"":a,s=H3.some(function(u){return!!~l.indexOf(u)});s&&this.refresh()},t.getInstance=function(){return this.instance_||(this.instance_=new t),this.instance_},t.instance_=null,t}(),Iw=function(t,n){for(var a=0,l=Object.keys(n);a<l.length;a++){var s=l[a];Object.defineProperty(t,s,{value:n[s],enumerable:!1,writable:!1,configurable:!0})}return t},Sl=function(t){var n=t&&t.ownerDocument&&t.ownerDocument.defaultView;return n||Jc},Uw=xu(0,0,0,0);function eu(t){return parseFloat(t)||0}function c0(t){for(var n=[],a=1;a<arguments.length;a++)n[a-1]=arguments[a];return n.reduce(function(l,s){var u=t["border-"+s+"-width"];return l+eu(u)},0)}function V3(t){for(var n=["top","right","bottom","left"],a={},l=0,s=n;l<s.length;l++){var u=s[l],f=t["padding-"+u];a[u]=eu(f)}return a}function G3(t){var n=t.getBBox();return xu(0,0,n.width,n.height)}function $3(t){var n=t.clientWidth,a=t.clientHeight;if(!n&&!a)return Uw;var l=Sl(t).getComputedStyle(t),s=V3(l),u=s.left+s.right,f=s.top+s.bottom,p=eu(l.width),h=eu(l.height);if(l.boxSizing==="border-box"&&(Math.round(p+u)!==n&&(p-=c0(l,"left","right")+u),Math.round(h+f)!==a&&(h-=c0(l,"top","bottom")+f)),!X3(t)){var v=Math.round(p+u)-n,w=Math.round(h+f)-a;Math.abs(v)!==1&&(p-=v),Math.abs(w)!==1&&(h-=w)}return xu(s.left,s.top,p,h)}var Y3=function(){return typeof SVGGraphicsElement<"u"?function(t){return t instanceof Sl(t).SVGGraphicsElement}:function(t){return t instanceof Sl(t).SVGElement&&typeof t.getBBox=="function"}}();function X3(t){return t===Sl(t).document.documentElement}function F3(t){return _h?Y3(t)?G3(t):$3(t):Uw}function K3(t){var n=t.x,a=t.y,l=t.width,s=t.height,u=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,f=Object.create(u.prototype);return Iw(f,{x:n,y:a,width:l,height:s,top:a,right:n+l,bottom:s+a,left:n}),f}function xu(t,n,a,l){return{x:t,y:n,width:a,height:l}}var W3=function(){function t(n){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=xu(0,0,0,0),this.target=n}return t.prototype.isActive=function(){var n=F3(this.target);return this.contentRect_=n,n.width!==this.broadcastWidth||n.height!==this.broadcastHeight},t.prototype.broadcastRect=function(){var n=this.contentRect_;return this.broadcastWidth=n.width,this.broadcastHeight=n.height,n},t}(),Q3=function(){function t(n,a){var l=K3(a);Iw(this,{target:n,contentRect:l})}return t}(),Z3=function(){function t(n,a,l){if(this.activeObservations_=[],this.observations_=new Pw,typeof n!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=n,this.controller_=a,this.callbackCtx_=l}return t.prototype.observe=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(n instanceof Sl(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var a=this.observations_;a.has(n)||(a.set(n,new W3(n)),this.controller_.addObserver(this),this.controller_.refresh())}},t.prototype.unobserve=function(n){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>
129"u"||!(Element instanceof Object))){if(!(n instanceof Sl(n).Element))throw new TypeError('parameter 1 is not of type "Element".');var a=this.observations_;a.has(n)&&(a.delete(n),a.size||this.controller_.removeObserver(this))}},t.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},t.prototype.gatherActive=function(){var n=this;this.clearActive(),this.observations_.forEach(function(a){a.isActive()&&n.activeObservations_.push(a)})},t.prototype.broadcastActive=function(){if(this.hasActive()){var n=this.callbackCtx_,a=this.activeObservations_.map(function(l){return new Q3(l.target,l.broadcastRect())});this.callback_.call(n,a,n),this.clearActive()}},t.prototype.clearActive=function(){this.activeObservations_.splice(0)},t.prototype.hasActive=function(){return this.activeObservations_.length>0},t}(),Hw=typeof WeakMap<"u"?new WeakMap:new Pw,Bw=function(){function t(n){if(!(this instanceof t))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var a=q3.getInstance(),l=new Z3(n,a,this);Hw.set(this,l)}return t}();["observe","unobserve","disconnect"].forEach(function(t){Bw.prototype[t]=function(){var n;return(n=Hw.get(this))[t].apply(n,arguments)}});var J3=function(){return typeof Jc.ResizeObserver<"u"?Jc.ResizeObserver:Bw}();const eO=Object.freeze(Object.defineProperty({__proto__:null,default:J3},Symbol.toStringTag,{value:"Module"})),tO=ex(eO);var u0;function nO(){if(u0)return Lo;u0=1,Object.defineProperty(Lo,"__esModule",{value:!0}),Lo.InnerSlider=void 0;var t=v(gr()),n=v(M3()),a=v(D3()),l=v(is()),s=ls(),u=j3(),f=k3(),p=L3(),h=v(tO);function v(H){return H&&H.__esModule?H:{default:H}}function w(H){"@babel/helpers - typeof";return w=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(B){return typeof B}:function(B){return B&&typeof Symbol=="function"&&B.constructor===Symbol&&B!==Symbol.prototype?"symbol":typeof B},w(H)}function C(){return C=Object.assign?Object.assign.bind():function(H){for(var B=1;B<arguments.length;B++){var le=arguments[B];for(var R in le)Object.prototype.hasOwnProperty.call(le,R)&&(H[R]=le[R])}return H},C.apply(this,arguments)}function _(H,B){if(H==null)return{};var le=A(H,B),R,y;if(Object.getOwnPropertySymbols){var ce=Object.getOwnPropertySymbols(H);for(y=0;y<ce.length;y++)R=ce[y],!(B.indexOf(R)>=0)&&Object.prototype.propertyIsEnumerable.call(H,R)&&(le[R]=H[R])}return le}function A(H,B){if(H==null)return{};var le={},R=Object.keys(H),y,ce;for(ce=0;ce<R.length;ce++)y=R[ce],!(B.indexOf(y)>=0)&&(le[y]=H[y]);return le}function j(H,B){var le=Object.keys(H);if(Object.getOwnPropertySymbols){var R=Object.getOwnPropertySymbols(H);B&&(R=R.filter(function(y){return Object.getOwnPropertyDescriptor(H,y).enumerable})),le.push.apply(le,R)}return le}function I(H){for(var B=1;B<arguments.length;B++){var le=arguments[B]!=null?arguments[B]:{};B%2?j(Object(le),!0).forEach(function(R){T(H,R,le[R])}):Object.getOwnPropertyDescriptors?Object.defineProperties(H,Object.getOwnPropertyDescriptors(le)):j(Object(le)).forEach(function(R){Object.defineProperty(H,R,Object.getOwnPropertyDescriptor(le,R))})}return H}function Z(H,B){if(!(H instanceof B))throw new TypeError("Cannot call a class as a function")}function V(H,B){for(var le=0;le<B.length;le++){var R=B[le];R.enumerable=R.enumerable||!1,R.configurable=!0,"value"in R&&(R.writable=!0),Object.defineProperty(H,F(R.key),R)}}function ee(H,B,le){return B&&V(H.prototype,B),Object.defineProperty(H,"prototype",{writable:!1}),H}function ae(H,B){if(typeof B!="function"&&B!==null)throw new TypeError("Super expression must either be null or a function");H.prototype=Object.create(B&&B.prototype,{constructor:{value:H,writable:!0,configurable:!0}}),Object.defineProperty(H,"prototype",{writable:!1}),B&&he(H,B)}function he(H,B){return he=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(R,y){return R.__proto__=y,R},he(H,B)}function O(H){var B=re();return function(){var R=N(H),y;if(B){var ce=N(this).constructor;y=Reflect.construct(R,arguments,ce)}else y=R.apply(this,arguments);return E(this,y)}}function E(H,B){if(B&&(w(B)==="object"||typeof B=="function"))return B;if(B!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return P(H)}function P(H){if(H===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return H}function re(){try{var H=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(re=function(){return!!H})()}
vendor: 13,622 bytes, line 129
129function N(H){return N=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(le){return le.__proto__||Object.getPrototypeOf(le)},N(H)}function T(H,B,le){return B=F(B),B in H?Object.defineProperty(H,B,{value:le,enumerable:!0,configurable:!0,writable:!0}):H[B]=le,H}function F(H){var B=ne(H,"string");return w(B)=="symbol"?B:String(B)}function ne(H,B){if(w(H)!="object"||!H)return H;var le=H[Symbol.toPrimitive];if(le!==void 0){var R=le.call(H,B);if(w(R)!="object")return R;throw new TypeError("@@toPrimitive must return a primitive value.")}return(B==="string"?String:Number)(H)}return Lo.InnerSlider=function(H){ae(le,H);var B=O(le);function le(R){var y;Z(this,le),y=B.call(this,R),T(P(y),"listRefHandler",function(M){return y.list=M}),T(P(y),"trackRefHandler",function(M){return y.track=M}),T(P(y),"adaptHeight",function(){if(y.props.adaptiveHeight&&y.list){var M=y.list.querySelector('[data-index="'.concat(y.state.currentSlide,'"]'));y.list.style.height=(0,s.getHeight)(M)+"px"}}),T(P(y),"componentDidMount",function(){if(y.props.onInit&&y.props.onInit(),y.props.lazyLoad){var M=(0,s.getOnDemandLazySlides)(I(I({},y.props),y.state));M.length>0&&(y.setState(function(S){return{lazyLoadedList:S.lazyLoadedList.concat(M)}}),y.props.onLazyLoad&&y.props.onLazyLoad(M))}var m=I({listRef:y.list,trackRef:y.track},y.props);y.updateState(m,!0,function(){y.adaptHeight(),y.props.autoplay&&y.autoPlay("update")}),y.props.lazyLoad==="progressive"&&(y.lazyLoadTimer=setInterval(y.progressiveLazyLoad,1e3)),y.ro=new h.default(function(){y.state.animating?(y.onWindowResized(!1),y.callbackTimers.push(setTimeout(function(){return y.onWindowResized()},y.props.speed))):y.onWindowResized()}),y.ro.observe(y.list),document.querySelectorAll&&Array.prototype.forEach.call(document.querySelectorAll(".slick-slide"),function(S){S.onfocus=y.props.pauseOnFocus?y.onSlideFocus:null,S.onblur=y.props.pauseOnFocus?y.onSlideBlur:null}),window.addEventListener?window.addEventListener("resize",y.onWindowResized):window.attachEvent("onresize",y.onWindowResized)}),T(P(y),"componentWillUnmount",function(){y.animationEndCallback&&clearTimeout(y.animationEndCallback),y.lazyLoadTimer&&clearInterval(y.lazyLoadTimer),y.callbackTimers.length&&(y.callbackTimers.forEach(function(M){return clearTimeout(M)}),y.callbackTimers=[]),window.addEventListener?window.removeEventListener("resize",y.onWindowResized):window.detachEvent("onresize",y.onWindowResized),y.autoplayTimer&&clearInterval(y.autoplayTimer),y.ro.disconnect()}),T(P(y),"componentDidUpdate",function(M){if(y.checkImagesLoad(),y.props.onReInit&&y.props.onReInit(),y.props.lazyLoad){var m=(0,s.getOnDemandLazySlides)(I(I({},y.props),y.state));m.length>0&&(y.setState(function(Y){return{lazyLoadedList:Y.lazyLoadedList.concat(m)}}),y.props.onLazyLoad&&y.props.onLazyLoad(m))}y.adaptHeight();var S=I(I({listRef:y.list,trackRef:y.track},y.props),y.state),U=y.didPropsChange(M);U&&y.updateState(S,U,function(){y.state.currentSlide>=t.default.Children.count(y.props.children)&&y.changeSlide({message:"index",index:t.default.Children.count(y.props.children)-y.props.slidesToShow,currentSlide:y.state.currentSlide}),y.props.autoplay?y.autoPlay("update"):y.pause("paused")})}),T(P(y),"onWindowResized",function(M){y.debouncedResize&&y.debouncedResize.cancel(),y.debouncedResize=(0,a.default)(function(){return y.resizeWindow(M)},50),y.debouncedResize()}),T(P(y),"resizeWindow",function(){var M=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!0,m=!!(y.track&&y.track.node);if(m){var S=I(I({listRef:y.list,trackRef:y.track},y.props),y.state);y.updateState(S,M,function(){y.props.autoplay?y.autoPlay("update"):y.pause("paused")}),y.setState({animating:!1}),clearTimeout(y.animationEndCallback),delete y.animationEndCallback}}),T(P(y),"updateState",function(M,m,S){var U=(0,s.initializedState)(M);M=I(I(I({},M),U),{},{slideIndex:U.currentSlide});var Y=(0,s.getTrackLeft)(M);M=I(I({},M),{},{left:Y});var W=(0,s.getTrackCSS)(M);(m||t.default.Children.count(y.props.children)!==t.default.Children.count(M.children))&&(U.trackStyle=W),y.setState(U,S)}),T(P(y),"ssrInit",function(){if(y.props.variableWidth){var M=0,m=0,S=[],U=(0,s.getPreClones)(I(I(I({},y.props),y.state),{},{slideCount:y.props.children.length})),Y=(0,s.getPostClones)(I(I(I({},y.props),y.state),{},{slideCount:y.props.children.length}));y.props.children.forEach(function(dt){S.push(dt.props.style.width),M+=dt.props.style.width});for(var W=0;W<U;W++)m+=S[S.length-1-W],M+=S[S.length-1-W];for(var ue=0;ue<Y;ue++)M+=S[ue];for(var ie=0;ie<y.state.currentSlide;ie++)m+=S[ie];var pe={width:M+"px",left:-m+"px"};if(y.props.centerMode){var ye="".concat(S[y.state.currentSlide],"px");pe.left="calc(".concat(pe.left," + (100% - ").concat(ye,") / 2 ) ")}return{trackStyle:pe}}var Me=t.default.Children.count(y.props.children),Ee=I(I(I({},y.props),y.state),{},{slideCount:Me}),ze=(0,s.getPreClones)(Ee)+(0,s.getPostClones)(Ee)+Me,qe=100/y.props.slidesToShow*ze,He=100/ze,De=-He*((0,s.getPreClones)(Ee)+y.state.currentSlide)*qe/100;y.props.centerMode&&(De+=(100-He*qe/100)/2);var Ie={width:qe+"%",left:De+"%"};return{slideWidth:He+"%",trackStyle:Ie}}),T(P(y),"checkImagesLoad",function(){var M=y.list&&y.list.querySelectorAll&&y.list.querySelectorAll(".slick-slide img")||[],m=M.length,S=0;Array.prototype.forEach.call(M,function(U){var Y=function(){return++S&&S>=m&&y.onWindowResized()};if(!U.onclick)U.onclick=function(){return U.parentNode.focus()};else{var W=U.onclick;U.onclick=function(ue){W(ue),U.parentNode.focus()}}U.onload||(y.props.lazyLoad?U.onload=function(){y.adaptHeight(),y.callbackTimers.push(setTimeout(y.onWindowResized,y.props.speed))}:(U.onload=Y,U.onerror=function(){Y(),y.props.onLazyLoadError&&y.props.onLazyLoadError()}))})}),T(P(y),"progressiveLazyLoad",function(){for(var M=[],m=I(I({},y.props),y.state),S=y.state.currentSlide;S<y.state.slideCount+(0,s.getPostClones)(m);S++)if(y.state.lazyLoadedList.indexOf(S)<0){M.push(S);break}for(var U=y.state.currentSlide-1;U>=-(0,s.getPreClones)(m);U--)if(y.state.lazyLoadedList.indexOf(U)<0){M.push(U);break}M.length>0?(y.setState(function(Y){return{lazyLoadedList:Y.lazyLoadedList.concat(M)}}),y.props.onLazyLoad&&y.props.onLazyLoad(M)):y.lazyLoadTimer&&(clearInterval(y.lazyLoadTimer),delete y.lazyLoadTimer)}),T(P(y),"slideHandler",function(M){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S=y.props,U=S.asNavFor,Y=S.beforeChange,W=S.onLazyLoad,ue=S.speed,ie=S.afterChange,pe=y.state.currentSlide,ye=(0,s.slideHandler)(I(I(I({index:M},y.props),y.state),{},{trackRef:y.track,useCSS:y.props.useCSS&&!m})),Me=ye.state,Ee=ye.nextState;if(Me){Y&&Y(pe,Me.currentSlide);var ze=Me.lazyLoadedList.filter(function(qe){return y.state.lazyLoadedList.indexOf(qe)<0});W&&ze.length>0&&W(ze),!y.props.waitForAnimate&&y.animationEndCallback&&(clearTimeout(y.animationEndCallback),ie&&ie(pe),delete y.animationEndCallback),y.setState(Me,function(){U&&y.asNavForIndex!==M&&(y.asNavForIndex=M,U.innerSlider.slideHandler(M)),Ee&&(y.animationEndCallback=setTimeout(function(){var qe=Ee.animating,He=_(Ee,["animating"]);y.setState(He,function(){y.callbackTimers.push(setTimeout(function(){return y.setState({animating:qe})},10)),ie&&ie(Me.currentSlide),delete y.animationEndCallback})},ue))})}}),T(P(y),"changeSlide",function(M){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,S=I(I({},y.props),y.state),U=(0,s.changeSlide)(S,M);if(!(U!==0&&!U)&&(m===!0?y.slideHandler(U,m):y.slideHandler(U),y.props.autoplay&&y.autoPlay("update"),y.props.focusOnSelect)){var Y=y.list.querySelectorAll(".slick-current");Y[0]&&Y[0].focus()}}),T(P(y),"clickHandler",function(M){y.clickable===!1&&(M.stopPropagation(),M.preventDefault()),y.clickable=!0}),T(P(y),"keyHandler",function(M){var m=(0,s.keyHandler)(M,y.props.accessibility,y.props.rtl);m!==""&&y.changeSlide({message:m})}),T(P(y),"selectHandler",function(M){y.changeSlide(M)}),T(P(y),"disableBodyScroll",function(){var M=function(S){S=S||window.event,S.preventDefault&&S.preventDefault(),S.returnValue=!1};window.ontouchmove=M}),T(P(y),"enableBodyScroll",function(){window.ontouchmove=null}),T(P(y),"swipeStart",function(M){y.props.verticalSwiping&&y.disableBodyScroll();var m=(0,s.swipeStart)(M,y.props.swipe,y.props.draggable);m!==""&&y.setState(m)}),T(P(y),"swipeMove",function(M){var m=(0,s.swipeMove)(M,I(I(I({},y.props),y.state),{},{trackRef:y.track,listRef:y.list,slideIndex:y.state.currentSlide}));m&&(m.swiping&&(y.clickable=!1),y.setState(m))}),T(P(y),"swipeEnd",function(M){var m=(0,s.swipeEnd)(M,I(I(I({},y.props),y.state),{},{trackRef:y.track,listRef:y.list,slideIndex:y.state.currentSlide}));if(m){var S=m.triggerSlideHandler;delete m.triggerSlideHandler,y.setState(m),S!==void 0&&(y.slideHandler(S),y.props.verticalSwiping&&y.enableBodyScroll())}}),T(P(y),"touchEnd",function(M){y.swipeEnd(M),y.clickable=!0}),T(P(y),"slickPrev",function(){y.callbackTimers.push(setTimeout(function(){return y.changeSlide({message:"previous"})},0))}),T(P(y),"slickNext",function(){y.callbackTimers.push(setTimeout(function(){return y.changeSlide({message:"next"})},0))}),T(P(y),"slickGoTo",function(M){var m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(M=Number(M),isNaN(M))return"";y.callbackTimers.push(setTimeout(function(){return y.changeSlide({message:"index",index:M,currentSlide:y.state.currentSlide},m)},0))}),T(P(y),"play",function(){var M;if(y.props.rtl)M=y.state.currentSlide-y.props.slidesToScroll;else if((0,s.canGoNext)(I(I({},y.props),y.state)))M=y.state.currentSlide+y.props.slidesToScroll;else return!1;y.slideHandler(M)}),T(P(y),"autoPlay",function(M){y.autoplayTimer&&clearInterval(y.autoplayTimer);var m=y.state.autoplaying;if(M==="update"){if(m==="hovered"||m==="focused"||m==="paused")return}else if(M==="leave"){if(m==="paused"||m==="focused")return}else if(M==="blur"&&(m==="paused"||m==="hovered"))return;y.autoplayTimer=setInterval(y.play,y.props.autoplaySpeed+50),y.setState({autoplaying:"playing"})}),T(P(y),"pause",function(M){y.autoplayTimer&&(clearInterval(y.autoplayTimer),y.autoplayTimer=null);var m=y.state.autoplaying;M==="paused"?y.setState({autoplaying:"paused"}):M==="focused"?(m==="hovered"||m==="playing")&&y.setState({autoplaying:"focused"}):m==="playing"&&y.setState({autoplaying:"hovered"})}),T(P(y),"onDotsOver",function(){return y.props.autoplay&&y.pause("hovered")}),T(P(y),"onDotsLeave",function(){return y.props.autoplay&&y.state.autoplaying==="hovered"&&y.autoPlay("leave")}),T(P(y),"onTrackOver",function(){return y.props.autoplay&&y.pause("hovered")}),T(P(y),"onTrackLeave",function(){return y.props.autoplay&&y.state.autoplaying==="hovered"&&y.autoPlay("leave")}),T(P(y),"onSlideFocus",function(){return y.props.autoplay&&y.pause("focused")}),T(P(y),"onSlideBlur",function(){return y.props.autoplay&&y.state.autoplaying==="focused"&&y.autoPlay("blur")}),T(P(y),"render",function(){var M=(0,l.default)("slick-slider",y.props.className,{"slick-vertical":y.props.vertical,"slick-initialized":!0}),m=I(I({},y.props),y.state),S=(0,s.extractObject)(m,["fade","cssEase","speed","infinite","centerMode","focusOnSelect","currentSlide","lazyLoad","lazyLoadedList","rtl","slideWidth","slideHeight","listHeight","vertical","slidesToShow","slidesToScroll","slideCount","trackStyle","variableWidth","unslick","centerPadding","targetSlide","useCSS"]),U=y.props.pauseOnHover;S=I(I({},S),{},{onMouseEnter:U?y.onTrackOver:null,onMouseLeave:U?y.onTrackLeave:null,onMouseOver:U?y.onTrackOver:null,focusOnSelect:y.props.focusOnSelect&&y.clickable?y.selectHandler:null});var Y;if(y.props.dots===!0&&y.state.slideCount>=y.props.slidesToShow){var W=(0,s.extractObject)(m,["dotsClass","slideCount","slidesToShow","currentSlide","slidesToScroll","clickHandler","children","customPaging","infinite","appendDots"]),ue=y.props.pauseOnDotsHover;W=I(I({},W),{},{clickHandler:y.changeSlide,onMouseEnter:ue?y.onDotsLeave:null,onMouseOver:ue?y.onDotsOver:null,onMouseLeave:ue?y.onDotsLeave:null}),Y=t.default.createElement(f.Dots,W)}var ie,pe,ye=(0,s.extractObject)(m,["infinite","centerMode","currentSlide","slideCount","slidesToShow","prevArrow","nextArrow"]);ye.clickHandler=y.changeSlide,y.props.arrows&&(ie=t.default.createElement(p.PrevArrow,ye),pe=t.default.createElement(p.NextArrow,ye));var Me=null;y.props.vertical&&(Me={height:y.state.listHeight});var Ee=null;y.props.vertical===!1?y.props.centerMode===!0&&(Ee={padding:"0px "+y.props.centerPadding}):y.props.centerMode===!0&&(Ee={padding:y.props.centerPadding+" 0px"});var ze=I(I({},Me),Ee),qe=y.props.touchMove,He={className:"slick-list",style:ze,onClick:y.clickHandler,onMouseDown:qe?y.swipeStart:null,onMouseMove:y.state.dragging&&qe?y.swipeMove:null,onMouseUp:qe?y.swipeEnd:null,onMouseLeave:y.state.dragging&&qe?y.swipeEnd:null,onTouchStart:qe?y.swipeStart:null,onTouchMove:y.state.dragging&&qe?y.swipeMove:null,onTouchEnd:qe?y.touchEnd:null,onTouchCancel:y.state.dragging&&qe?y.swipeEnd:null,onKeyDown:y.props.accessibility?y.keyHandler:null},De={className:M,dir:"ltr",style:y.props.style};return y.props.unslick&&(He={className:"slick-list"},De={className:M}),t.default.createElement("div",De,y.props.unslick?"":ie,t.default.createElement("div",C({ref:y.listRefHandler},He),t.default.createElement(u.Track,C({ref:y.trackRefHandler},S),y.props.children)),y.props.unslick?"":pe,y.props.unslick?"":Y)}),y.list=null,y.track=null,y.state=I(I({},n.default),{},{currentSlide:y.props.initialSlide,targetSlide:y.props.initialSlide?y.props.initialSlide:0,slideCount:t.default.Children.count(y.props.children)}),y.callbackTimers=[],y.clickable=!0,y.debouncedResize=null;var ce=y.ssrInit();return y.state=I(I({},y.state),ce),y}
129return ee(le,[{key:"didPropsChange",value:function(y){for(var ce=!1,M=0,m=Object.keys(this.props);M<m.length;M++){var S=m[M];if(!y.hasOwnProperty(S)){ce=!0;break}if(!(w(y[S])==="object"||typeof y[S]=="function"||isNaN(y[S]))&&y[S]!==this.props[S]){ce=!0;break}}return ce||t.default.Children.count(this.props.children)!==t.default.Children.count(y.children)}}]),le}(t.default.Component),Lo}var eh,d0;function rO(){if(d0)return eh;d0=1;var t=function(n){return n.replace(/[A-Z]/g,function(a){return"-"+a.toLowerCase()}).toLowerCase()};return eh=t,eh}var th,f0;function aO(){if(f0)return th;f0=1;var t=rO(),n=function(s){var u=/[height|width]$/;return u.test(s)},a=function(s){var u="",f=Object.keys(s);return f.forEach(function(p,h){var v=s[p];p=t(p),n(p)&&typeof v=="number"&&(v=v+"px"),v===!0?u+=p:v===!1?u+="not "+p:u+="("+p+": "+v+")",h<f.length-1&&(u+=" and ")}),u},l=function(s){var u="";return typeof s=="string"?s:s instanceof Array?(s.forEach(function(f,p){u+=a(f),p<s.length-1&&(u+=", ")}),u):a(s)};return th=l,th}var nh,h0;function iO(){if(h0)return nh;h0=1;function t(n){this.options=n,!n.deferSetup&&this.setup()}return t.prototype={constructor:t,setup:function(){this.options.setup&&this.options.setup(),this.initialised=!0},on:function(){!this.initialised&&this.setup(),this.options.match&&this.options.match()},off:function(){this.options.unmatch&&this.options.unmatch()},destroy:function(){this.options.destroy?this.options.destroy():this.off()},equals:function(n){return this.options===n||this.options.match===n}},nh=t,nh}var rh,m0;function qw(){if(m0)return rh;m0=1;function t(l,s){var u=0,f=l.length,p;for(u;u<f&&(p=s(l[u],u),p!==!1);u++);}function n(l){return Object.prototype.toString.apply(l)==="[object Array]"}function a(l){return typeof l=="function"}return rh={isFunction:a,isArray:n,each:t},rh}var ah,p0;function lO(){if(p0)return ah;p0=1;var t=iO(),n=qw().each;function a(l,s){this.query=l,this.isUnconditional=s,this.handlers=[],this.mql=window.matchMedia(l);var u=this;this.listener=function(f){u.mql=f.currentTarget||f,u.assess()},this.mql.addListener(this.listener)}return a.prototype={constuctor:a,addHandler:function(l){var s=new t(l);this.handlers.push(s),this.matches()&&s.on()},removeHandler:function(l){var s=this.handlers;n(s,function(u,f){if(u.equals(l))return u.destroy(),!s.splice(f,1)})},matches:function(){return this.mql.matches||this.isUnconditional},clear:function(){n(this.handlers,function(l){l.destroy()}),this.mql.removeListener(this.listener),this.handlers.length=0},assess:function(){var l=this.matches()?"on":"off";n(this.handlers,function(s){s[l]()})}},ah=a,ah}var ih,g0;function oO(){if(g0)return ih;g0=1;var t=lO(),n=qw(),a=n.each,l=n.isFunction,s=n.isArray;function u(){if(!window.matchMedia)throw new Error("matchMedia n
129ot present, legacy browsers require a polyfill");this.queries={},this.browserIsIncapable=!window.matchMedia("only all").matches}return u.prototype={constructor:u,register:function(f,p,h){var v=this.queries,w=h&&this.browserIsIncapable;return v[f]||(v[f]=new t(f,w)),l(p)&&(p={match:p}),s(p)||(p=[p]),a(p,function(C){l(C)&&(C={match:C}),v[f].addHandler(C)}),this},unregister:function(f,p){var h=this.queries[f];return h&&(p?h.removeHandler(p):(h.clear(),delete this.queries[f])),this}},ih=u,ih}var lh,v0;function sO(){if(v0)return lh;v0=1;var t=oO();return lh=new t,lh}var y0;function cO(){return y0||(y0=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=f(gr()),a=nO(),l=f(aO()),s=f(zw()),u=ls();function f(N){return N&&N.__esModule?N:{default:N}}function p(N){"@babel/helpers - typeof";return p=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T},p(N)}function h(){return h=Object.assign?Object.assign.bind():function(N){for(var T=1;T<arguments.length;T++){var F=arguments[T];for(var ne in F)Object.prototype.hasOwnProperty.call(F,ne)&&(N[ne]=F[ne])}return N},h.apply(this,arguments)}function v(N,T){var F=Object.keys(N);if(Object.getOwnPropertySymbols){var ne=Object.getOwnPropertySymbols(N);T&&(ne=ne.filter(function(H){return Object.getOwnPropertyDescriptor(N,H).enumerable})),F.push.apply(F,ne)}return F}function w(N){for(var T=1;T<arguments.length;T++){var F=arguments[T]!=null?arguments[T]:{};T%2?v(Object(F),!0).forEach(function(ne){O(N,ne,F[ne])}):Object.getOwnPropertyDescriptors?Object.defineProperties(N,Object.getOwnPropertyDescriptors(F)):v(Object(F)).forEach(function(ne){Object.defineProperty(N,ne,Object.getOwnPropertyDescriptor(F,ne))})}return N}function C(N,T){if(!(N instanceof T))throw new TypeError("Cannot call a class as a function")}function _(N,T){for(var F=0;F<T.length;F++){var ne=T[F];ne.enumerable=ne.enumerable||!1,ne.configurable=!0,"value"in ne&&(ne.writable=!0),Object.defineProperty(N,E(ne.key),ne)}}function A(N,T,F){return T&&_(N.prototype,T),Object.defineProperty(N,"prototype",{writable:!1}),N}function j(N,T){if(typeof T!="function"&&T!==null)throw new TypeError("Super expression must either be null or a function");N.prototype=Object.create(T&&T.prototype,{constructor:{value:N,writable:!0,configurable:!0}}),Object.defineProperty(N,"prototype",{writable:!1}),T&&I(N,T)}function I(N,T){return I=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(ne,H){return ne.__proto__=H,ne},I(N,T)}function Z(N){var T=ae();return function(){var ne=he(N),H;if(T){var B=he(this).constructor;H=Reflect.construct(ne,arguments,B)}else H=ne.apply(this,arguments);return V(this,H)}}function V(N,T){if(T&&(p(T)==="object"||typeof T=="function"))return T;if(T!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return ee(N)}function ee(N){if(N===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return N}function ae(){try{var N=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(ae=function(){return!!N})()}function he(N){return he=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(F){return F.__proto__||Object.getPrototypeOf(F)},he(N)}function O(N,T,F){return T=E(T),T in N?Object.defineProperty(N,T,{value:F,enumerable:!0,configurable:!0,writable:!0}):N[T]=F,N}function E(N){var T=P(N,"string");return p(T)=="symbol"?T:String(T)}function P(N,T){if(p(N)!="object"||!N)return N;var F=N[Symbol.toPrimitive];if(F!==void 0){var ne=F.call(N,T);if(p(ne)!="object")return ne;throw new TypeError("@@toPrimitive must return a primitive value.")}return(T==="string"?String:Number)(N)}var re=(0,u.canUseDOM)()&&sO();t.default=function(N){j(F,N);var T=Z(F);function F(ne){var H;return C(this,F),H=T.call(this,ne),O(ee(H),"innerSliderRefHandler",function(B){return H.innerSlider=B}),O(ee(H),"slickPrev",function(){return H.innerSlider.slickPrev()}),O(ee(H),"slickNext",function(){return H.innerSlider.slickNext()}),O(ee(H),"slickGoTo",function(B){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return H.innerSlider.slickGoTo(B,le)}),O(ee(H),"slickPause",function(){return H.innerSlider.pause("paused")}),O(ee(H),"slickPlay",function(){return H.innerSlider.autoPlay("play")}),H.state={breakpoint:null},H._responsiveMediaHandlers=[],H}return A(F,[{key:"media",value:function(H,B){re.register(H,B),this._responsiveMediaHandlers.push({query:H,handler:B})}},{key:"componentDidMount",value:function(){var H=this;if(this.props.responsive){var B=this.props.responsive.map(function(R){return R.breakpoint});B.sort(function(R,y){return R-y}),B.forEach(function(R,y){var ce;y===0?ce=(0,l.default)({minWidth:0,maxWidth:R}):ce=(0,l.default)({minWidth:B[y-1]+1,maxWidth:R}),(0,u.canUseDOM)()&&H.media(ce,function(){H.setState({breakpoint:R})})});var le=(0,l.default)({minWidth:B.slice(-1)[0]});(0,u.canUseDOM)()&&this.media(le,function(){H.setState({breakpoint:null})})}}},{key:"componentWillUnmount",value:function(){this._responsiveMediaHandlers.forEac
129h(function(H){re.unregister(H.query,H.handler)})}},{key:"render",value:function(){var H=this,B,le;this.state.breakpoint?(le=this.props.responsive.filter(function(ue){return ue.breakpoint===H.state.breakpoint}),B=le[0].settings==="unslick"?"unslick":w(w(w({},s.default),this.props),le[0].settings)):B=w(w({},s.default),this.props),B.centerMode&&(B.slidesToScroll>1,B.slidesToScroll=1),B.fade&&(B.slidesToShow>1,B.slidesToScroll>1,B.slidesToShow=1,B.slidesToScroll=1);var R=n.default.Children.toArray(this.props.children);R=R.filter(function(ue){return typeof ue=="string"?!!ue.trim():!!ue}),B.variableWidth&&(B.rows>1||B.slidesPerRow>1)&&(console.warn("variableWidth is not supported in case of rows > 1 or slidesPerRow > 1"),B.variableWidth=!1);for(var y=[],ce=null,M=0;M<R.length;M+=B.rows*B.slidesPerRow){for(var m=[],S=M;S<M+B.rows*B.slidesPerRow;S+=B.slidesPerRow){for(var U=[],Y=S;Y<S+B.slidesPerRow&&(B.variableWidth&&R[Y].props.style&&(ce=R[Y].props.style.width),!(Y>=R.length));Y+=1)U.push(n.default.cloneElement(R[Y],{key:100*M+10*S+Y,tabIndex:-1,style:{width:"".concat(100/B.slidesPerRow,"%"),display:"inline-block"}}));m.push(n.default.createElement("div",{key:10*M+S},U))}B.variableWidth?y.push(n.default.createElement("div",{key:M,style:{width:ce}},m)):y.push(n.default.createElement("div",{key:M},m))}if(B==="unslick"){var W="regular slider "+(this.props.className||"");return n.default.createElement("div",{className:W},R)}else y.length<=B.slidesToShow&&!B.infinite&&(B.unslick=!0);return n.default.createElement(a.InnerSlider,h({style:this.props.style,ref:this.innerSliderRefHandler},(0,u.filterSettings)(B)),y)}}]),F}(n.default.Component)}(Kf)),Kf}var b0;function uO(){return b0||(b0=1,function(t){Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=a(cO());function a(l){return l&&l.__esModule?l:{default:l}}t.default=n.default}(Ff)),Ff}uO();function tu(t){return rt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M313.4 32.9c26 5.2 42.9 30.5 37.7 56.5l-2.3 11.4c-5.3 26.7-15.1 52.1-28.8 75.2l144 0c26.5 0 48 21.5 48 48c0 18.5-10.5 34.6-25.9 42.6C497 275.4 504 288.9 504 304c0 23.4-16.8 42.9-38.9 47.1c4.4 7.3 6.9 15.8 6.9 24.9c0 21.3-13.9 39.4-33.1 45.6c.7 3.3 1.1 6.8 1.1 10.4c0 26.5-21.5 48-48 48l-97.5 0c-19 0-37.5-5.6-53.3-16.1l-38.5-25.7C176 420.4 160 390.4 160 358.3l0-38.3 0-48 0-24.9c0-29.2 13.3-56.7 36-75l7.4-5.9c26.5-21.2 44.6-51 51.2-84.2l2.3-11.4c5.2-26 30.5-42.9 56.5-37.7zM32 192l64 0c17.7 0 32 14.3 32 32l0 224c0 17.7-14.3 32-32 32l-64 0c-17.7 0-32-14.3-32-32L0 224c0-17.7 14.3-32 32-32z"},child:[]}]})(t)}function dO(t){return rt({attr:{viewBox:"0 0 448 512"},child:[{tag:"path",attr:{d:"M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512l388.6 0c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304l-91.4 0z"},child:[]}]})(t)}function fO(t){return rt({attr:{viewBox:"0 0 512 512"},child:[{tag:"circle",attr:{cx:"256",cy:"192",r:"32"},child:[]},{tag:"path",attr:{d:"M256 32c-88.22 0-160 68.65-160 153 0 40.17 18.31 93.59 54.42 158.78 29 52.34 62.55 99.67 80 123.22a31.75 31.75 0 0 0 51.22 0c17.42-23.55 51-70.88 80-123.22C397.69 278.61 416 225.19 416 185c0-84.35-71.78-153-160-153zm0 224a64 64 0 1 1 64-64 64.07 64.07 0 0 1-64 64z"},child:[]}]})(t)}function hO(t){return rt({attr:{viewBox:"0 0 512 512"},child:[{tag:"path",attr:{d:"M332.64 64.58C313.18 43.57 286 32 256 32c-30.16 0-57.43 11.5-76.8 32.38-19.58 21.11-29.12 49.8-26.88 80.78C156.76 206.28 203.27 256 256 256s99.16-49.71 103.67-110.82c2.27-30.7-7.33-59.33-27.03-80.6zM432 480H80a31 31 0 0 1-24.2-11.13c-6.5-7.77-9.12-18.38-7.18-29.11C57.06 392.94 83.4 353.61 124.8 326c36.78-24.51 83.37-38 131.2-38s94.42 13.5 131.2 38c41.4 27.6 67.74 66.93 76.18 113.75 1.94 10.73-.68 21.34-7.18 29.11A31 31 0 0 1 432 480z"},child:[]}]})(t)}const w0=({title:t,className:n})=>g.jsx("div",{className:`mb-5 w-[95vw] mx-auto ${n}`,children:g.jsxs("h2",{className:"text-4xl font-extrabold text-yellow-400 mb-6 text-center",children:[t,g.jsx("span",{className:"block w-24 h-1 bg-yellow-500 rounded-full mx-auto mt-3"})]})}),dr=()=>g.jsx("div",{className:"fixed inset-0 z-50 bg-green-700 flex items-center justify-center",children:g.jsx("span",{className:"loading loading-bars loading-lg text-white"})});var ol={},S0;function mO(){if(S0)return ol;
129S0=1,Object.defineProperty(ol,"__esModule",{value:!0});var t=fb(),n=gr(),a=function(){return a=Object.assign||function(h){for(var v,w=1,C=arguments.length;w<C;w++)for(var _ in v=arguments[w])Object.prototype.hasOwnProperty.call(v,_)&&(h[_]=v[_]);return h},a.apply(this,arguments)};function l(h,v){var w,C;switch(v.type){case"TYPE":return a(a({},h),{speed:v.speed,text:(w=v.payload)===null||w===void 0?void 0:w.substring(0,h.text.length+1)});case"DELAY":return a(a({},h),{speed:v.payload});case"DELETE":return a(a({},h),{speed:v.speed,text:(C=v.payload)===null||C===void 0?void 0:C.substring(0,h.text.length-1)});case"COUNT":return a(a({},h),{count:h.count+1});default:return h}}var s=function(h){var v=h.words,w=v===void 0?["Hello World!","This is","a simple Typewriter"]:v,C=h.loop,_=C===void 0?1:C,A=h.typeSpeed,j=A===void 0?80:A,I=h.deleteSpeed,Z=I===void 0?50:I,V=h.delaySpeed,ee=V===void 0?1500:V,ae=h.onLoopDone,he=h.onType,O=h.onDelete,E=h.onDelay,P=n.useReducer(l,{speed:j,text:"",count:0}),re=P[0],N=re.speed,T=re.text,F=re.count,ne=P[1],H=n.useRef(0),B=n.useRef(!1),le=n.useRef(!1),R=n.useRef(!1),y=n.useRef(!1),ce=n.useCallback(function(){var M=F%w.length,m=w[M];le.current?(ne({type:"DELETE",payload:m,speed:Z}),T===""&&(le.current=!1,ne({type:"COUNT"}))):(ne({type:"TYPE",payload:m,speed:j}),R.current=!0,T===m&&(ne({type:"DELAY",payload:ee}),R.current=!1,y.current=!0,setTimeout(function(){y.current=!1,le.current=!0},ee),_>0&&(H.current+=1,H.current/w.length===_&&(y.current=!1,B.current=!0)))),R.current&&he&&he(H.current),le.current&&O&&O(),y.current&&E&&E()},[F,ee,Z,_,j,w,T,he,O,E]);return n.useEffect(function(){var M=setTimeout(ce,N);return B.current&&clearTimeout(M),function(){return clearTimeout(M)}},[ce,N]),n.useEffect(function(){ae&&B.current&&ae()},[ae]),[T,{isType:R.current,isDelay:y.current,isDelete:le.current,isDone:B.current}]},u="styles-module_blinkingCursor__yugAC",f="styles-module_blinking__9VXRT";(function(h,v){v===void 0&&(v={});var w=v.insertAt;if(typeof document<"u"){var C=document.head||document.getElementsByTagName("head")[0],_=document.createElement("style");_.type="text/css",w==="top"&&C.firstChild?C.insertBefore(_,C.firstChild):C.appendChild(_),_.styleSheet?_.styleSheet.cssText=h:_.appendChild(document.createTextNode(h))}})(".styles-module_blinkingCursor__yugAC{color:inherit;font:inherit;left:3px;line-height:inherit;opacity:1;position:relative;top:0}.styles-module_blinking__9VXRT{animation-duration:.8s;animation-iteration-count:infinite;animation-name:styles-module_blink__rqfaf}@keyframes styles-module_blink__rqfaf{0%{opacity:1}to{opacity:0}}");var p=n.memo(function(h){var v=h.cursorBlinking,w=v===void 0||v,C=h.cursorStyle,_=C===void 0?"|":C,A=h.cursorColor,j=A===void 0?"inherit":A;return t.jsx("span",a({style:{color:j},className:"".concat(u," ").concat(w?f:"")},{children:_}))});return ol.Cursor=p,ol.Typewriter=function(h){var v=h.words,w=v===void 0?["Hello World!","This is","a simple Typewriter"]:v,C=h.loop,_=C===void 0?1:C,A=h.typeSpeed,j=A===void 0?80:A,I=h.deleteSpeed,Z=I===void 0?50:I,V=h.delaySpeed,ee=V===void 0?1500:V,ae=h.cursor,he=ae!==void 0&&ae,O=h.cursorStyle,E=O===void 0?"|":O,P=h.cursorColor,re=P===void 0?"inherit":P,N=h.cursorBlinking,T=N===void 0||N,F=h.onLoopDone,ne=h.onType,H=h.onDelay,B=h.onDelete,le=s({words:w,loop:_,typeSpeed:j,deleteSpeed:Z,delaySpeed:ee,onLoopDone:F,onType:ne,onDelay:H,onDelete:B})[0];return t.jsxs(t.Fragment,{children:[t.jsx("span",{children:le}),he&&t.jsx(p,{cursorStyle:E,cursorColor:re,cursorBlinking:T})]})},ol.useTypewriter=s,ol}var pO=mO();const gO=()=>g.jsxs("div",{className:"hero min-h-screen mb-15",style:{backgroundImage:"url(https://beautifulboundarieslawn.com/wp-content/uploads/2019/02/Depositphotos_11104897_xl-2015-scaled-1.jpg)"},children:[g.jsx("div",{className:"hero-overlay"}),g.jsx("div",{className:"hero-content text-neutral-content text-center",children:g.jsxs("div",{className:"max-w-xl",children:[g.jsxs("h1",{className:"mb-5 text-5xl font-bold",children:["The ",g.jsx("span",{className:"text-green-500 font-extrabold",children:"Gardening Community"})," That"," ",g.jsx(pO.Typewriter,{words:["Connects","Shares","Inspires","Grows"],delaySpeed:4e3,cursorBlinking:!0,cursor:!0,loop:!0})]}),g.jsx("p",{className:"mb-5 text-lg text-gray-100",children:"Join a vibrant community of plant lovers. Share tips, showcase your garden, participate in local events, and grow together with fellow enthusiasts. ð±"}),g.jsx("a",{href:"/register",className:"btn bg-yellow-500 rounded-full px-8 py-4 text-lg text-green-950 hover:text-white hover:bg-green-950 transition-all",children:"Join the Community"})]})})]});function vO(t){return rt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z"},child:[]}]})(t)}function sm(t){return rt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z"},child:[]}]})(t)}function yO(t){return rt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M20 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 4-8 5-8-5V6l8 5 8-5v2z"},child:[]}]})(t)}function bO(t){return rt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M17.5 9.5C17.5 6.46 15.04 4 12 4S6.5 6.46 6.5 9.5c0 2.7 1.94 4.93 4.5 5.4V17H9v2h2v2h2v-2h2v-2h-2v-2.1c2.56-.47 4.5-2.7 4.5-5.4zm-9 0C8.5 7.57 10.07 6 12 6s3.5 1.57 3.5 3.5S13.93 13 12 13s-3.5-1.57-3.5-3.5z"},child:[]}]})(t)}function wO(t){return rt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M9.5 11c1.93 0 3.5 1.57 3.5 3.5S11.43 18 9.5 18 6 16.43 6 14.5 7.57 11 9.5 11zm0-2C6.46 9 4 11.46 4 14.5S6.46 20 9.5 20s5.5-2.46 5.5-5.5c0-1.16-.36-2.23-.97-3.12L18 7.42V10h2V4h-6v2h2.58l-3.97 3.97C11.73 9.36 10.66 9 9.5 9z"},child:[]}]})(t)}function SO(t){return rt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"},child:[]},{tag:"path",attr:{d:"M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z"},child:[]}]})(t)}const xl=Math.min,yi=Math.max,nu=Math.round,Rc=Math.floor,Rr=t=>({x:t,y:t}
vendor: 5,509 bytes, line 129
129),xO={left:"right",right:"left",bottom:"top",top:"bottom"},EO={start:"end",end:"start"};function Th(t,n,a){return yi(t,xl(n,a))}function os(t,n){return typeof t=="function"?t(n):t}function Si(t){return t.split("-")[0]}function ss(t){return t.split("-")[1]}function Vw(t){return t==="x"?"y":"x"}function cm(t){return t==="y"?"height":"width"}function bi(t){return["top","bottom"].includes(Si(t))?"y":"x"}function um(t){return Vw(bi(t))}function _O(t,n,a){a===void 0&&(a=!1);const l=ss(t),s=um(t),u=cm(s);let f=s==="x"?l===(a?"end":"start")?"right":"left":l==="start"?"bottom":"top";return n.reference[u]>n.floating[u]&&(f=ru(f)),[f,ru(f)]}function TO(t){const n=ru(t);return[Ch(t),n,Ch(n)]}function Ch(t){return t.replace(/start|end/g,n=>EO[n])}function CO(t,n,a){const l=["left","right"],s=["right","left"],u=["top","bottom"],f=["bottom","top"];switch(t){case"top":case"bottom":return a?n?s:l:n?l:s;case"left":case"right":return n?u:f;default:return[]}}function OO(t,n,a,l){const s=ss(t);let u=CO(Si(t),a==="start",l);return s&&(u=u.map(f=>f+"-"+s),n&&(u=u.concat(u.map(Ch)))),u}function ru(t){return t.replace(/left|right|bottom|top/g,n=>xO[n])}function AO(t){return{top:0,right:0,bottom:0,left:0,...t}}function Gw(t){return typeof t!="number"?AO(t):{top:t,right:t,bottom:t,left:t}}function au(t){const{x:n,y:a,width:l,height:s}=t;return{width:l,height:s,top:a,left:n,right:n+l,bottom:a+s,x:n,y:a}}function x0(t,n,a){let{reference:l,floating:s}=t;const u=bi(n),f=um(n),p=cm(f),h=Si(n),v=u==="y",w=l.x+l.width/2-s.width/2,C=l.y+l.height/2-s.height/2,_=l[p]/2-s[p]/2;let A;switch(h){case"top":A={x:w,y:l.y-s.height};break;case"bottom":A={x:w,y:l.y+l.height};break;case"right":A={x:l.x+l.width,y:C};break;case"left":A={x:l.x-s.width,y:C};break;default:A={x:l.x,y:l.y}}switch(ss(n)){case"start":A[f]-=_*(a&&v?-1:1);break;case"end":A[f]+=_*(a&&v?-1:1);break}return A}const RO=async(t,n,a)=>{const{placement:l="bottom",strategy:s="absolute",middleware:u=[],platform:f}=a,p=u.filter(Boolean),h=await(f.isRTL==null?void 0:f.isRTL(n));let v=await f.getElementRects({reference:t,floating:n,strategy:s}),{x:w,y:C}=x0(v,l,h),_=l,A={},j=0;for(let I=0;I<p.length;I++){const{name:Z,fn:V}=p[I],{x:ee,y:ae,data:he,reset:O}=await V({x:w,y:C,initialPlacement:l,placement:_,strategy:s,middlewareData:A,rects:v,platform:f,elements:{reference:t,floating:n}});w=ee??w,C=ae??C,A={...A,[Z]:{...A[Z],...he}},O&&j<=50&&(j++,typeof O=="object"&&(O.placement&&(_=O.placement),O.rects&&(v=O.rects===!0?await f.getElementRects({reference:t,floating:n,strategy:s}):O.rects),{x:w,y:C}=x0(v,_,h)),I=-1)}return{x:w,y:C,placement:_,strategy:s,middlewareData:A}};async function $w(t,n){var a;n===void 0&&(n={});const{x:l,y:s,platform:u,rects:f,elements:p,strategy:h}=t,{boundary:v="clippingAncestors",rootBoundary:w="viewport",elementContext:C="floating",altBoundary:_=!1,padding:A=0}=os(n,t),j=Gw(A),Z=p[_?C==="floating"?"reference":"floating":C],V=au(await u.getClippingRect({element:(a=await(u.isElement==null?void 0:u.isElement(Z)))==null||a?Z:Z.contextElement||await(u.getDocumentElement==null?void 0:u.getDocumentElement(p.floating)),boundary:v,rootBoundary:w,strategy:h})),ee=C==="floating"?{x:l,y:s,width:f.floating.width,height:f.floating.height}:f.reference,ae=await(u.getOffsetParent==null?void 0:u.getOffsetParent(p.floating)),he=await(u.isElement==null?void 0:u.isElement(ae))?await(u.getScale==null?void 0:u.getScale(ae))||{x:1,y:1}:{x:1,y:1},O=au(u.convertOffsetParentRelativeRectToViewportRelativeRect?await u.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:ee,offsetParent:ae,strategy:h}):ee);return{top:(V.top-O.top+j.top)/he.y,bottom:(O.bottom-V.bottom+j.bottom)/he.y,left:(V.left-O.left+j.left)/he.x,right:(O.right-V.right+j.right)/he.x}}const NO=t=>({name:"arrow",options:t,async fn(n){const{x:a,y:l,placement:s,rects:u,platform:f,elements:p,middlewareData:h}=n,{element:v,padding:w=0}=os(t,n)||{};if(v==null)return{};const C=Gw(w),_={x:a,y:l},A=um(s),j=cm(A),I=await f.getDimensions(v),Z=A==="y",V=Z?"top":"left",ee=Z?"bottom":"right",ae=Z?"clientHeight":"clientWidth",he=u.reference[j]+u.reference[A]-_[A]-u.floating[j],O=_[A]-u.reference[A],E=await(f.getOffsetParent==null?void 0:f.getOffsetParent(v));let P=E?E[ae]:0;(!P||!await(f.isElement==null?void 0:f.isElement(E)))&&(P=p.floating[ae]||u.floating[j]);const re=he/2-O/2,N=P/2-I[j]/2-1,T=xl(C[V],N),F=xl(C[ee],N),ne=T,H=P-I[j]-F,B=P/2-I[j]/2+re,le=Th(ne,B,H),R=!h.arrow&&ss(s)!=null&&B!==le&&u.reference[j]/2-(B<ne?T:F)-I[j]/2<0,y=R?B<ne?B-ne:B-H:0;return{[A]:_[A]+y,data:{[A]:le,centerOffset:B-le-y,...R&&{alignmentOffset:y}},reset:R}}}),MO=function(t){return t===void 0&&(t={}),{name:"flip",options:t,async fn(n){var a,l;const{placement:s,middlewareData:u,rects:f,initialPlacement:p,platform:h,elements:v}=n,{mainAxis:w=!0,crossAxis:C=!0,fallbackPlacements:_,fallbackStrategy:A="bestFit",fallbackAxisSideDirection:j="none",flipAlignment:I=!0,...Z}=os(t,n);if((a=u.arrow)!=null&&a.alignmentOffset)return{};const V=Si(s),ee=bi(p),ae=Si(p)===p,he=await(h.isRTL==null?void 0:h.isRTL(v.floating)),O=_||(ae||!I?[ru(p)]:TO(p)),E=j!=="none";!_&&E&&O.push(...OO(p,I,j,he));const P=[p,...O],re=await $w(n,Z),N=[];let T=((l=u.flip)==null?void 0:l.overflows)||[];if(w&&N.push(re[V]),C){const le=_O(s,f,he);N.push(re[le[0]],re[le[1]])}if(T=[...T,{placement:s,overflows:N}],!N.every(le=>le<=0)){var F,ne;const le=(((F=u.flip)==null?void 0:F.index)||0)+1,R=P[le];if(R){var H;const ce=C==="alignment"?ee!==bi(R):!1,M=((H=T[0])==null?void 0:H.overflows[0])>0;
vendor: 8,221 bytes, line 129
129if(!ce||M)return{data:{index:le,overflows:T},reset:{placement:R}}}let y=(ne=T.filter(ce=>ce.overflows[0]<=0).sort((ce,M)=>ce.overflows[1]-M.overflows[1])[0])==null?void 0:ne.placement;if(!y)switch(A){case"bestFit":{var B;const ce=(B=T.filter(M=>{if(E){const m=bi(M.placement);return m===ee||m==="y"}return!0}).map(M=>[M.placement,M.overflows.filter(m=>m>0).reduce((m,S)=>m+S,0)]).sort((M,m)=>M[1]-m[1])[0])==null?void 0:B[0];ce&&(y=ce);break}case"initialPlacement":y=p;break}if(s!==y)return{reset:{placement:y}}}return{}}}};async function DO(t,n){const{placement:a,platform:l,elements:s}=t,u=await(l.isRTL==null?void 0:l.isRTL(s.floating)),f=Si(a),p=ss(a),h=bi(a)==="y",v=["left","top"].includes(f)?-1:1,w=u&&h?-1:1,C=os(n,t);let{mainAxis:_,crossAxis:A,alignmentAxis:j}=typeof C=="number"?{mainAxis:C,crossAxis:0,alignmentAxis:null}:{mainAxis:C.mainAxis||0,crossAxis:C.crossAxis||0,alignmentAxis:C.alignmentAxis};return p&&typeof j=="number"&&(A=p==="end"?j*-1:j),h?{x:A*w,y:_*v}:{x:_*v,y:A*w}}const jO=function(t){return t===void 0&&(t=0),{name:"offset",options:t,async fn(n){var a,l;const{x:s,y:u,placement:f,middlewareData:p}=n,h=await DO(n,t);return f===((a=p.offset)==null?void 0:a.placement)&&(l=p.arrow)!=null&&l.alignmentOffset?{}:{x:s+h.x,y:u+h.y,data:{...h,placement:f}}}}},kO=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(n){const{x:a,y:l,placement:s}=n,{mainAxis:u=!0,crossAxis:f=!1,limiter:p={fn:Z=>{let{x:V,y:ee}=Z;return{x:V,y:ee}}},...h}=os(t,n),v={x:a,y:l},w=await $w(n,h),C=bi(Si(s)),_=Vw(C);let A=v[_],j=v[C];if(u){const Z=_==="y"?"top":"left",V=_==="y"?"bottom":"right",ee=A+w[Z],ae=A-w[V];A=Th(ee,A,ae)}if(f){const Z=C==="y"?"top":"left",V=C==="y"?"bottom":"right",ee=j+w[Z],ae=j-w[V];j=Th(ee,j,ae)}const I=p.fn({...n,[_]:A,[C]:j});return{...I,data:{x:I.x-a,y:I.y-l,enabled:{[_]:u,[C]:f}}}}}};function Eu(){return typeof window<"u"}function jl(t){return Yw(t)?(t.nodeName||"").toLowerCase():"#document"}function Pn(t){var n;return(t==null||(n=t.ownerDocument)==null?void 0:n.defaultView)||window}function kr(t){var n;return(n=(Yw(t)?t.ownerDocument:t.document)||window.document)==null?void 0:n.documentElement}function Yw(t){return Eu()?t instanceof Node||t instanceof Pn(t).Node:!1}function mr(t){return Eu()?t instanceof Element||t instanceof Pn(t).Element:!1}function Dr(t){return Eu()?t instanceof HTMLElement||t instanceof Pn(t).HTMLElement:!1}function E0(t){return!Eu()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Pn(t).ShadowRoot}function cs(t){const{overflow:n,overflowX:a,overflowY:l,display:s}=pr(t);return/auto|scroll|overlay|hidden|clip/.test(n+l+a)&&!["inline","contents"].includes(s)}function LO(t){return["table","td","th"].includes(jl(t))}function _u(t){return[":popover-open",":modal"].some(n=>{try{return t.matches(n)}catch{return!1}})}function dm(t){const n=fm(),a=mr(t)?pr(t):t;return["transform","translate","scale","rotate","perspective"].some(l=>a[l]?a[l]!=="none":!1)||(a.containerType?a.containerType!=="normal":!1)||!n&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!n&&(a.filter?a.filter!=="none":!1)||["transform","translate","scale","rotate","perspective","filter"].some(l=>(a.willChange||"").includes(l))||["paint","layout","strict","content"].some(l=>(a.contain||"").includes(l))}function zO(t){let n=Ba(t);for(;Dr(n)&&!El(n);){if(dm(n))return n;if(_u(n))return null;n=Ba(n)}return null}function fm(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function El(t){return["html","body","#document"].includes(jl(t))}function pr(t){return Pn(t).getComputedStyle(t)}function Tu(t){return mr(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Ba(t){if(jl(t)==="html")return t;const n=t.assignedSlot||t.parentNode||E0(t)&&t.host||kr(t);return E0(n)?n.host:n}function Xw(t){const n=Ba(t);return El(n)?t.ownerDocument?t.ownerDocument.body:t.body:Dr(n)&&cs(n)?n:Xw(n)}function Yo(t,n,a){var l;n===void 0&&(n=[]),a===void 0&&(a=!0);const s=Xw(t),u=s===((l=t.ownerDocument)==null?void 0:l.body),f=Pn(s);if(u){const p=Oh(f);return n.concat(f,f.visualViewport||[],cs(s)?s:[],p&&a?Yo(p):[])}return n.concat(s,Yo(s,[],a))}function Oh(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Fw(t){const n=pr(t);let a=parseFloat(n.width)||0,l=parseFloat(n.height)||0;const s=Dr(t),u=s?t.offsetWidth:a,f=s?t.offsetHeight:l,p=nu(a)!==u||nu(l)!==f;return p&&(a=u,l=f),{width:a,height:l,$:p}}function hm(t){return mr(t)?t:t.contextElement}function ml(t){const n=hm(t);if(!Dr(n))return Rr(1);const a=n.getBoundingClientRect(),{width:l,height:s,$:u}=Fw(n);let f=(u?nu(a.width):a.width)/l,p=(u?nu(a.height):a.height)/s;return(!f||!Number.isFinite(f))&&(f=1),(!p||!Number.isFinite(p))&&(p=1),{x:f,y:p}}const PO=Rr(0);function Kw(t){const n=Pn(t);return!fm()||!n.visualViewport?PO:{x:n.visualViewport.offsetLeft,y:n.visualViewport.offsetTop}}function IO(t,n,a){return n===void 0&&(n=!1),!a||n&&a!==Pn(t)?!1:n}function xi(t,n,a,l){n===void 0&&(n=!1),a===void 0&&(a=!1);const s=t.getBoundingClientRect(),u=hm(t);let f=Rr(1);n&&(l?mr(l)&&(f=ml(l)):f=ml(t));const p=IO(u,a,l)?Kw(u):Rr(0);let h=(s.left+p.x)/f.x,v=(s.top+p.y)/f.y,w=s.width/f.x,C=s.height/f.y;if(u){const _=Pn(u),A=l&&mr(l)?Pn(l):l;let j=_,I=Oh(j);for(;I&&l&&A!==j;){const Z=ml(I),V=I.getBoundingClientRect(),ee=pr(I),ae=V.left+(I.clientLeft+parseFloat(ee.paddingLeft))*Z.x,he=V.top+(I.clientTop+parseFloat(ee.paddingTop))*Z.y;h*=Z.x,v*=Z.y,w*=Z.x,C*=Z.y,h+=ae,v+=he,j=Pn(I),I=Oh(j)}}return au({width:w,height:C,x:h,y:v})}function mm(t,n){const a=Tu(t).scrollLeft;return n?n.left+a:xi(kr(t)).left+a}function Ww(t,n,a){a===void 0&&(a=!1);const l=t.getBoundingClientRect(),s=l.left+n.scrollLeft-(a?0:mm(t,l)),u=l.top+n.scrollTop;return{x:s,y:u}}function UO(t){let{elements:n,rect:a,offsetParent:l,strategy:s}=t;const u=s==="fixed",f=kr(l),p=n?_u(n.floating):!1;if(l===f||p&&u)return a;let h={scrollLeft:0,scrollTop:0},v=Rr(1);const w=Rr(0),C=Dr(l);if((C||!C&&!u)&&((jl(l)!=="body"||cs(f))&&(h=Tu(l)),Dr(l))){const A=xi(l);v=ml(l),w.x=A.x+l.clientLeft,w.y=A.y+l.clientTop}const _=f&&!C&&!u?Ww(f,h,!0):Rr(0);return{width:a.width*v.x,height:a.height*v.y,x:a.x*v.x-h.scrollLeft*v.x+w.x+_.x,y:a.y*v.y-h.scrollTop*v.y+w.y+_.y}}function HO(t){return Array.from(t.getClientRects())}function BO(t){const n=kr(t),a=Tu(t),l=t.ownerDocument.body,s=yi(n.scrollWidth,n.clientWidth,l.scrollWidth,l.clientWidth),u=yi(n.scrollHeight,n.clientHeight,l.scrollHeight,l.clientHeight);let f=-a.scrollLeft+mm(t);const p=-a.scrollTop;return pr(l).direction==="rtl"&&(f+=yi(n.clientWidth,l.clientWidth)-s),{width:s,height:u,x:f,y:p}}function qO(t,n){const a=Pn(t),l=kr(t),s=a.visualViewport;let u=l.clientWidth,f=l.clientHeight,p=0,h=0;if(s){u=s.width,f=s.height;const v=fm();(!v||v&&n==="fixed")&&(p=s.offsetLeft,h=s.offsetTop)}return{width:u,height:f,x:p,y:h}}function VO(t,n){const a=xi(t,!0,n==="fixed"),l=a.top+t.clientTop,s=a.left+t.clientLeft,u=Dr(t)?ml(t):Rr(1),f=t.clientWidth*u.x,p=t.clientHeight*u.y,h=s*u.x,v=l*u.y;return{width:f,height:p,x:h,y:v}}function _0(t,n,a){let l;if(n==="viewport")l=qO(t,a);else if(n==="document")l=BO(kr(t));else if(mr(n))l=VO(n,a);else{const s=Kw(t);l={x:n.x-s.x,y:n.y-s.y,width:n.width,height:n.height}}return au(l)}function Qw(t,n){const a=Ba(t);return a===n||!mr(a)||El(a)?!1:pr(a).position==="fixed"||Qw(a,n)}function GO(t,n){const a=n.get(t);if(a)return a;let l=Yo(t,[],!1).filter(p=>mr(p)&&jl(p)!=="body"),s=null;const u=pr(t).position==="fixed";let f=u?Ba(t):t;for(;mr(f)&&!El(f);){const p=pr(f),h=dm(f);!h&&p.position==="fixed"&&(s=null),(u?!h&&!s:!h&&p.position==="static"&&!!s&&["absolute","fixed"].includes(s.position)||cs(f)&&!h&&Qw(t,f))?l=l.filter(w=>w!==f):s=p,f=Ba(f)}return n.set(t,l),l}function $O(t){let{element:n,boundary:a,rootBoundary:l,strategy:s}=t;const f=[...a==="clippingAncestors"?_u(n)?[]:GO(n,this._c):[].concat(a),l],p=f[0],h=f.reduce((v,w)=>{const C=_0(n,w,s);return v.top=yi(C.top,v.top),v.right=xl(C.right,v.right),v.bottom=xl(C.bottom,v.bottom),v.left=yi(C.left,v.left),v},_0(n,p,s));return{width:h.right-h.left,height:h.bottom-h.top,x:h.left,y:h.top}}function YO(t){const{width:n,height:a}=Fw(t);return{width:n,height:a}}
129function XO(t,n,a){const l=Dr(n),s=kr(n),u=a==="fixed",f=xi(t,!0,u,n);let p={scrollLeft:0,scrollTop:0};const h=Rr(0);function v(){h.x=mm(s)}if(l||!l&&!u)if((jl(n)!=="body"||cs(s))&&(p=Tu(n)),l){const A=xi(n,!0,u,n);h.x=A.x+n.clientLeft,h.y=A.y+n.clientTop}else s&&v();u&&!l&&s&&v();const w=s&&!l&&!u?Ww(s,p):Rr(0),C=f.left+p.scrollLeft-h.x-w.x,_=f.top+p.scrollTop-h.y-w.y;return{x:C,y:_,width:f.width,height:f.height}}function oh(t){return pr(t).position==="static"}function T0(t,n){if(!Dr(t)||pr(t).position==="fixed")return null;if(n)return n(t);let a=t.offsetParent;return kr(t)===a&&(a=a.ownerDocument.body),a}function Zw(t,n){const a=Pn(t);if(_u(t))return a;if(!Dr(t)){let s=Ba(t);for(;s&&!El(s);){if(mr(s)&&!oh(s))return s;s=Ba(s)}return a}let l=T0(t,n);for(;l&&LO(l)&&oh(l);)l=T0(l,n);return l&&El(l)&&oh(l)&&!dm(l)?a:l||zO(t)||a}const FO=async function(t){const n=this.getOffsetParent||Zw,a=this.getDimensions,l=await a(t.floating);return{reference:XO(t.reference,await n(t.floating),t.strategy),floating:{x:0,y:0,width:l.width,height:l.height}}};function KO(t){return pr(t).direction==="rtl"}const WO={convertOffsetParentRelativeRectToViewportRelativeRect:UO,getDocumentElement:kr,getClippingRect:$O,getOffsetParent:Zw,getElementRects:FO,getClientRects:HO,getDimensions:YO,getScale:ml,isElement:mr,isRTL:KO};function Jw(t,n){return t.x===n.x&&t.y===n.y&&t.width===n.width&&t.height===n.height}function QO(t,n){let a=null,l;const s=kr(t);function u(){var p;clearTimeout(l),(p=a)==null||p.disconnect(),a=null}function f(p,h){p===void 0&&(p=!1),h===void 0&&(h=1),u();const v=t.getBoundingClientRect(),{left:w,top:C,width:_,height:A}=v;if(p||n(),!_||!A)return;const j=Rc(C),I=Rc(s.clientWidth-(w+_)),Z=Rc(s.clientHeight-(C+A)),V=Rc(w),ae={rootMargin:-j+"px "+-I+"px "+-Z+"px "+-V+"px",threshold:yi(0,xl(1,h))||1};let he=!0;function O(E){const P=E[0].intersectionRatio;if(P!==h){if(!he)return f();P?f(!1,P):l=setTimeout(()=>{f(!1,1e-7)},1e3)}P===1&&!Jw(v,t.getBoundingClientRect())&&f(),he=!1}try{a=new IntersectionObserver(O,{...ae,root:s.ownerDocument})}catch{a=new IntersectionObserver(O,ae)}a.observe(t)}return f(!0),u}function ZO(t,n,a,l){l===void 0&&(l={});const{ancestorScroll:s=!0,ancestorResize:u=!0,elementResize:f=typeof ResizeObserver=="function",layoutShift:p=typeof IntersectionObserver=="function",animationFrame:h=!1}=l,v=hm(t),w=s||u?[...v?Yo(v):[],...Yo(n)]:[];w.forEach(V=>{s&&V.addEventListener("scroll",a,{passive:!0}),u&&V.addEventListener("resize",a)});const C=v&&p?QO(v,a):null;let _=-1,A=null;f&&(A=new ResizeObserver(V=>{let[ee]=V;ee&&ee.target===v&&A&&(A.unobserve(n),cancelAnimationFrame(_),_=requestAnimationFrame(()=>{var ae;(ae=A)==null||ae.observe(n)})),a()}),v&&!h&&A.observe(v),A.observe(n));let j,I=h?xi(t):null;h&&Z();function Z(){const V=xi(t);I&&!Jw(I,V)&&a(),I=V,j=requestAnimationFrame(Z)}return a(),()=>{var V;w.forEach(ee=>{s&&ee.removeEventListener("scroll",a),u&&ee.removeEventListener("resize",a)}),C==null||C(),(V=A)==null||V.disconnect(),A=null,h&&cancelAnimationFrame(j)}}const JO=jO,eA=kO,tA=MO,nA=NO,C0=(t,n,a)=>{const l=new Map,s={platform:WO,...a},u={...s.platform,_c:l};return RO(t,n,{...s,platform:u})};var rA=is();const Ah=db(rA);var O0={};const aA="react-tooltip-core-styles",iA="react-tooltip-base-styles",A0={core:!1,base:!1};function R0({css:t,id:n=iA,type:a="base",ref:l}){var s,u;if(!t||typeof document>"u"||A0[a]||a==="core"&&typeof process<"u"&&(!((s=process==null?void 0:O0)===null||s===void 0)&&s.REACT_TOOLTIP_DISABLE_CORE_STYLES)||a!=="base"&&typeof process<"u"&&(!((u=process==null?void 0:O0)===null||u===void 0)&&u.REACT_TOOLTIP_DISABLE_BASE_STYLES))return;a==="core"&&(n=aA),l||(l={});const{insertAt:f}=l;if(document.getElementById(n))return;const p=document.head||document.getElementsByTagName("head")[0],h=document.createElement("style");h.id=n,h.type="text/css",f==="top"&&p.firstChild?p.insertBefore(h,p.firstChild):p.appendChild(h),h.styleSheet?h.styleSheet.cssText=t:h.appendChild(document.createTextNode(t)),A0[a]=!0}const N0=async({elementReference:t=null,tooltipReference:n=null,tooltipArrowReference:a=null,place:l="top",offset:s=10,strategy:u="absolute",middlewares:f=[JO(Number(s)),tA({fallbackAxisSideDirection:"start"}),eA({padding:5})],border:p})=>{if(!t)return{tooltipStyles:{},tooltipArrowStyles:{},place:l};if(n===null)return{tooltipStyles:{},tooltipArrowStyles:{},place:l};const h=f;return a?(h.push(nA({element:a,padding:5})),C0(t,n,{placement:l,strategy:u,middleware:h}).then(({x:v,y:w,placement:C,middlewareData:_})=>{var A,j;const I={left:`${v}px`,top:`${w}px`,border:p},{x:Z,y:V}=(A=_.arrow)!==null&&A!==void 0?A:{x:0,y:0}
129,ee=(j={top:"bottom",right:"left",bottom:"top",left:"right"}[C.split("-")[0]])!==null&&j!==void 0?j:"bottom",ae=p&&{borderBottom:p,borderRight:p};let he=0;if(p){const O=`${p}`.match(/(\d+)px/);he=O!=null&&O[1]?Number(O[1]):1}return{tooltipStyles:I,tooltipArrowStyles:{left:Z!=null?`${Z}px`:"",top:V!=null?`${V}px`:"",right:"",bottom:"",...ae,[ee]:`-${4+he}px`},place:C}})):C0(t,n,{placement:"bottom",strategy:u,middleware:h}).then(({x:v,y:w,placement:C})=>({tooltipStyles:{left:`${v}px`,top:`${w}px`},tooltipArrowStyles:{},place:C}))},M0=(t,n)=>!("CSS"in window&&"supports"in window.CSS)||window.CSS.supports(t,n),D0=(t,n,a)=>{let l=null;const s=function(...u){const f=()=>{l=null};!l&&(t.apply(this,u),l=setTimeout(f,n))};return s.cancel=()=>{l&&(clearTimeout(l),l=null)},s},j0=t=>t!==null&&!Array.isArray(t)&&typeof t=="object",Rh=(t,n)=>{if(t===n)return!0;if(Array.isArray(t)&&Array.isArray(n))return t.length===n.length&&t.every((s,u)=>Rh(s,n[u]));if(Array.isArray(t)!==Array.isArray(n))return!1;if(!j0(t)||!j0(n))return t===n;const a=Object.keys(t),l=Object.keys(n);return a.length===l.length&&a.every(s=>Rh(t[s],n[s]))},lA=t=>{if(!(t instanceof HTMLElement||t instanceof SVGElement))return!1;const n=getComputedStyle(t);return["overflow","overflow-x","overflow-y"].some(a=>{const l=n.getPropertyValue(a);return l==="auto"||l==="scroll"})},k0=t=>{if(!t)return null;let n=t.parentElement;for(;n;){if(lA(n))return n;n=n.parentElement}return document.scrollingElement||document.documentElement},oA=typeof window<"u"?z.useLayoutEffect:z.useEffect,Zn=t=>{t.current&&(clearTimeout(t.current),t.current=null)},sA="DEFAULT_TOOLTIP_ID",cA={anchorRefs:new Set,activeAnchor:{current:null},attach:()=>{},detach:()=>{},setActiveAnchor:()=>{}},uA=z.createContext({getTooltipData:()=>cA});function e1(t=sA){return z.useContext(uA).getTooltipData(t)}var sl={tooltip:"core-styles-module_tooltip__3vRRp",fixed:"core-styles-module_fixed__pcSol",arrow:"core-styles-module_arrow__cvMwQ",noArrow:"core-styles-module_noArrow__xock6",clickable:"core-styles-module_clickable__ZuTTB",show:"core-styles-module_show__Nt9eE",closing:"core-styles-module_closing__sGnxF"},sh={tooltip:"styles-module_tooltip__mnnfp",arrow:"styles-module_arrow__K0L3T",dark:"styles-module_dark__xNqje",light:"styles-module_light__Z6W-X",success:"styles-module_success__A2AKt",warning:"styles-module_warning__SCK0X",error:"styles-module_error__JvumD",info:"styles-module_info__BWdHW"};const dA=({forwardRef:t,id:n,className:a,classNameArrow:l,variant:s="dark",anchorId:u,anchorSelect:f,place:p="top",offset:h=10,events:v=["hover"],openOnClick:w=!1,positionStrategy:C="absolute",middlewares:_,wrapper:A,delayShow:j=0,delayHide:I=0,float:Z=!1,hidden:V=!1,noArrow:ee=!1,clickable:ae=!1,closeOnEsc:he=!1,closeOnScroll:O=!1,closeOnResize:E=!1,openEvents:P,closeEvents:re,globalCloseEvents:N,imperativeModeOnly:T,style:F,position:ne,afterShow:H,afterHide:B,disableTooltip:le,content:R,contentWrapperRef:y,isOpen:ce,defaultIsOpen:M=!1,setIsOpen:m,activeAnchor:S,setActiveAnchor:U,border:Y,opacity:W,arrowColor:ue,role:ie="tooltip"})=>{var pe;const ye=z.useRef(null),Me=z.useRef(null),Ee=z.useRef(null),ze=z.useRef(null),qe=z.useRef(null),[He,De]=z.useState({tooltipStyles:{},tooltipArrowStyles:{},place:p}),[Ie,dt]=z.useState(!1),[Oe,at]=z.useState(!1),[Be,ft]=z.useState(null),wt=z.useRef(!1),Mt=z.useRef(null),{anchorRefs:Vt,setActiveAnchor:Bn}=e1(n),Ft=z.useRef(!1),[Tt,Xe]=z.useState([]),Ct=z.useRef(!1),Ot=w||v.includes("click"),Ya=Ot||(P==null?void 0:P.click)||(P==null?void 0:P.dblclick)||(P==null?void 0:P.mousedown),en=P?{...P}:{mouseover:!0,focus:!0,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1};!P&&Ot&&Object.assign(en,{mouseenter:!1,focus:!1,mouseover:!1,click:!0});const qn=re?{...re}:{mouseout:!0,blur:!0,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1};
129!re&&Ot&&Object.assign(qn,{mouseleave:!1,blur:!1,mouseout:!1});const Gt=N?{...N}:{escape:he||!1,scroll:O||!1,resize:E||!1,clickOutsideAnchor:Ya||!1};T&&(Object.assign(en,{mouseover:!1,focus:!1,mouseenter:!1,click:!1,dblclick:!1,mousedown:!1}),Object.assign(qn,{mouseout:!1,blur:!1,mouseleave:!1,click:!1,dblclick:!1,mouseup:!1}),Object.assign(Gt,{escape:!1,scroll:!1,resize:!1,clickOutsideAnchor:!1})),oA(()=>(Ct.current=!0,()=>{Ct.current=!1}),[]);const ht=L=>{Ct.current&&(L&&at(!0),setTimeout(()=>{Ct.current&&(m==null||m(L),ce===void 0&&dt(L))},10))};z.useEffect(()=>{if(ce===void 0)return()=>null;ce&&at(!0);const L=setTimeout(()=>{dt(ce)},10);return()=>{clearTimeout(L)}},[ce]),z.useEffect(()=>{if(Ie!==wt.current)if(Zn(qe),wt.current=Ie,Ie)H==null||H();else{const L=(Q=>{const oe=Q.match(/^([\d.]+)(ms|s)$/);if(!oe)return 0;const[,ge,xe]=oe;return Number(ge)*(xe==="ms"?1:1e3)})(getComputedStyle(document.body).getPropertyValue("--rt-transition-show-delay"));qe.current=setTimeout(()=>{at(!1),ft(null),B==null||B()},L+25)}},[Ie]);const pn=L=>{De(Q=>Rh(Q,L)?Q:L)},_n=(L=j)=>{Zn(Ee),Oe?ht(!0):Ee.current=setTimeout(()=>{ht(!0)},L)},tn=(L=I)=>{Zn(ze),ze.current=setTimeout(()=>{Ft.current||ht(!1)},L)},wr=L=>{var Q;if(!L)return;const oe=(Q=L.currentTarget)!==null&&Q!==void 0?Q:L.target;if(!(oe!=null&&oe.isConnected))return U(null),void Bn({current:null});j?_n():ht(!0),U(oe),Bn({current:oe}),Zn(ze)},Tn=()=>{ae?tn(I||100):I?tn():ht(!1),Zn(Ee)},ar=({x:L,y:Q})=>{var oe;const ge={getBoundingClientRect:()=>({x:L,y:Q,width:0,height:0,top:Q,left:L,right:L,bottom:Q})};N0({place:(oe=Be==null?void 0:Be.place)!==null&&oe!==void 0?oe:p,offset:h,elementReference:ge,tooltipReference:ye.current,tooltipArrowReference:Me.current,strategy:C,middlewares:_,border:Y}).then(xe=>{pn(xe)})},Cn=L=>
129{if(!L)return;const Q=L,oe={x:Q.clientX,y:Q.clientY};ar(oe),Mt.current=oe},On=L=>{var Q;if(!Ie)return;const oe=L.target;oe.isConnected&&(!((Q=ye.current)===null||Q===void 0)&&Q.contains(oe)||[document.querySelector(`[id='${u}']`),...Tt].some(ge=>ge==null?void 0:ge.contains(oe))||(ht(!1),Zn(Ee)))},zr=D0(wr,50),St=D0(Tn,50),Ht=L=>{St.cancel(),zr(L)},Re=()=>{zr.cancel(),St()},$e=z.useCallback(()=>{var L,Q;const oe=(L=Be==null?void 0:Be.position)!==null&&L!==void 0?L:ne;oe?ar(oe):Z?Mt.current&&ar(Mt.current):S!=null&&S.isConnected&&N0({place:(Q=Be==null?void 0:Be.place)!==null&&Q!==void 0?Q:p,offset:h,elementReference:S,tooltipReference:ye.current,tooltipArrowReference:Me.current,strategy:C,middlewares:_,border:Y}).then(ge=>{Ct.current&&pn(ge)})},[Ie,S,R,F,p,Be==null?void 0:Be.place,h,C,ne,Be==null?void 0:Be.position,Z]);z.useEffect(()=>{var L,Q;const oe=new Set(Vt);Tt.forEach(Ve=>{le!=null&&le(Ve)||oe.add({current:Ve})});const ge=document.querySelector(`[id='${u}']`);ge&&!(le!=null&&le(ge))&&oe.add({current:ge});const xe=()=>{ht(!1)},be=k0(S),_e=k0(ye.current);Gt.scroll&&(window.addEventListener("scroll",xe),be==null||be.addEventListener("scroll",xe),_e==null||_e.addEventListener("scroll",xe));let Se=null;Gt.resize?window.addEventListener("resize",xe):S&&ye.current&&(Se=ZO(S,ye.current,$e,{ancestorResize:!0,elementResize:!0,layoutShift:!0}));const Ce=Ve=>{Ve.key==="Escape"&&ht(!1)};Gt.escape&&window.addEventListener("keydown",Ce),Gt.clickOutsideAnchor&&window.addEventListener("click",On);const ve=[],Ne=Ve=>!!(Ve!=null&&Ve.target&&(S!=null&&S.contains(Ve.target))),et=Ve=>{Ie&&Ne(Ve)||wr(Ve)},vt=Ve=>{Ie&&Ne(Ve)&&Tn()},xt=["mouseover","mouseout","mouseenter","mouseleave","focus","blur"],tt=["click","dblclick","mousedown","mouseup"];Object.entries(en).forEach(([Ve,At])=>{At&&(xt.includes(Ve)?ve.push({event:Ve,listener:Ht}):tt.includes(Ve)&&ve.push({event:Ve,listener:et}))}),Object.entries(qn).forEach(([Ve,At])=>{At&&(xt.includes(Ve)?ve.push({event:Ve,listener:Re}):tt.includes(Ve)&&ve.push({event:Ve,listener:vt}))}),Z&&ve.push({event:"pointermove",listener:Cn});const Fe=()=>{Ft.current=!0},ir=()=>{Ft.current=!1,Tn()},Kt=ae&&(qn.mouseout||qn.mouseleave);return Kt&&((L=ye.current)===null||L===void 0||L.addEventListener("mouseover",Fe),(Q=ye.current)===null||Q===void 0||Q.addEventListener("mouseout",ir)),ve.forEach(({event:Ve,listener:At})=>{oe.forEach(Vn=>{var gn;(gn=Vn.current)===null||gn===void 0||gn.addEventListener(Ve,At)})}),()=>{var Ve,At;Gt.scroll&&(window.removeEventListener("scroll",xe),be==null||be.removeEventListener("scroll",xe),_e==null||_e.removeEventListener("scroll",xe)),Gt.resize?window.removeEventListener("resize",xe):Se==null||Se(),Gt.clickOutsideAnchor&&window.removeEventListener("click",On),Gt.escape&&window.removeEventListener("keydown",Ce),Kt&&((Ve=ye.current)===null||Ve===void 0||Ve.removeEventListener("mouseover",Fe),(At=ye.current)===null||At===void 0||At.removeEventListener("mouseout",ir)),ve.forEach(({event:Vn,listener:gn})=>{oe.forEach(Xa=>{var ln;(ln=Xa.current)===null||ln===void 0||ln.removeEventListener(Vn,gn)})})}},[S,$e,Oe,Vt,Tt,P,re,N,Ot,j,I]),z.useEffect(()=>{var L,Q;let oe=(Q=(L=Be==null?void 0:Be.anchorSelect)!==null&&L!==void 0?L:f)!==null&&Q!==void 0?Q:"";!oe&&n&&(oe=`[data-tooltip-id='${n.replace(/'/g,"\\'")}']`);const ge=new MutationObserver(xe=>{const be=[],_e=[];xe.forEach(Se=>{if(Se.type==="attributes"&&Se.attributeName==="data-tooltip-id"&&(Se.target.getAttribute("data-tooltip-id")===n?be.push(Se.target):Se.oldValue===n&&_e.push(Se.target)),Se.type==="childList"){if(S){const Ce=[...Se.removedNodes].filter(ve=>ve.nodeType===1);if(oe)try{_e.push(...Ce.filter(ve=>ve.matches(oe))),_e.push(...Ce.flatMap(ve=>[...ve.querySelectorAll(oe)]))}catch{}Ce.some(ve=>{var Ne;return!!(!((Ne=ve==null?void 0:ve.contains)===null||Ne===void 0)&&Ne.call(ve,S))&&(at(!1),ht(!1),U(null),Zn(Ee),Zn(ze),!0)})}if(oe)try{const Ce=[...Se.addedNodes].filter(ve=>ve.nodeType===1);be.push(...Ce.filter(ve=>ve.matches(oe))),be.push(...Ce.flatMap(ve=>[...ve.querySelectorAll(oe)]))}catch{}}}),(be.length||_e.length)&&Xe(Se=>[...Se.filter(Ce=>!_e.includes(Ce)),...be])});return ge.observe(document.body,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-tooltip-id"],attributeOldValue:!0}),()=>{ge.disconnect()}},[n,f,Be==null?void 0:Be.anchorSelect,S]),z.useEffect(()=>{$e()},[$e]),z.useEffect(()=>{if(!(y!=null&&y.current))return()=>null;const L=new ResizeObserver(()=>{setTimeout(()=>$e())});return L.observe(y.current),()=>{L.disconnect()}},[R,y==null?void 0:y.current]),z.useEffect(()=>{var L;const Q=document.querySelector(`[id='${u}']`),oe=[...Tt,Q];S&&oe.includes(S)||U((L=Tt[0])!==null&&L!==void 0?L:Q)},[u,Tt,S]),z.useEffect(()=>(M&&ht(!0),()=>{Zn(Ee),Zn(ze)}),[]),z.useEffect(()=>{var L;let Q=(L=Be==null?void 0:Be.anchorSelect)!==null&&L!==void 0?L:f;if(!Q&&n&&(Q=`[data-tooltip-id='${n.replace(/'/g,"\\'")}']`),Q)try{const oe=Array.from(document.querySelectorAll(Q));Xe(oe)}catch{Xe([])}},[n,f,Be==null?void 0:Be.anchorSelect]),z.useEffect(()=>{Ee.current&&(Zn(Ee),_n(j))},[j]);const k=(pe=Be==null?void 0:Be.content)!==null&&pe!==void 0?pe:R,$=Ie&&Ob
129ject.keys(He.tooltipStyles).length>0;return z.useImperativeHandle(t,()=>({open:L=>{if(L!=null&&L.anchorSelect)try{document.querySelector(L.anchorSelect)}catch{return void console.warn(`[react-tooltip] "${L.anchorSelect}" is not a valid CSS selector`)}ft(L??null),L!=null&&L.delay?_n(L.delay):ht(!0)},close:L=>{L!=null&&L.delay?tn(L.delay):ht(!1)},activeAnchor:S,place:He.place,isOpen:!!(Oe&&!V&&k&&$)})),Oe&&!V&&k?xn.createElement(A,{id:n,role:ie,className:Ah("react-tooltip",sl.tooltip,sh.tooltip,sh[s],a,`react-tooltip__place-${He.place}`,sl[$?"show":"closing"],$?"react-tooltip__show":"react-tooltip__closing",C==="fixed"&&sl.fixed,ae&&sl.clickable),onTransitionEnd:L=>{Zn(qe),Ie||L.propertyName!=="opacity"||(at(!1),ft(null),B==null||B())},style:{...F,...He.tooltipStyles,opacity:W!==void 0&&$?W:void 0},ref:ye},k,xn.createElement(A,{className:Ah("react-tooltip-arrow",sl.arrow,sh.arrow,l,ee&&sl.noArrow),style:{...He.tooltipArrowStyles,background:ue?`linear-gradient(to right bottom, transparent 50%, ${ue} 50%)`:void 0},ref:Me})):null},fA=({content:t})=>xn.createElement("span",{dangerouslySetInnerHTML:{__html:t}}),hA=xn.forwardRef(({id:t,anchorId:n,anchorSelect:a,content:l,html:s,render:u,className:f,classNameArrow:p,variant:h="dark",place:v="top",offset:w=10,wrapper:C="div",children:_=null,events:A=["hover"],openOnClick:j=!1,positionStrategy:I="absolute",middlewares:Z,delayShow:V=0,delayHide:ee=0,float:ae=!1,hidden:he=!1,noArrow:O=!1,clickable:E=!1,closeOnEsc:P=!1,closeOnScroll:re=!1,closeOnResize:N=!1,openEvents:T,closeEvents:F,globalCloseEvents:ne,imperativeModeOnly:H=!1,style:B,position:le,isOpen:R,defaultIsOpen:y=!1,disableStyleInjection:ce=!1,border:M,opacity:m,arrowColor:S,setIsOpen:U,afterShow:Y,afterHide:W,disableTooltip:ue,role:ie="tooltip"},pe)=>{const[ye,Me]=z.useState(l),[Ee,ze]=z.useState(s),[qe,He]=z.useState(v),[De,Ie]=z.useState(h),[dt,Oe]=z.useState(w),[at,Be]=z.useState(V),[ft,wt]=z.useState(ee),[Mt,Vt]=z.useState(ae),[Bn,Ft]=z.useState(he),[Tt,Xe]=z.useState(C),[Ct,Ot]=z.useState(A),[Ya,en]=z.useState(I),[qn,Gt]=z.useState(null),[ht,pn]=z.useState(null),_n=z.useRef(ce),{anchorRefs:tn,activeAnchor:wr}=e1(t),Tn=St=>St==null?void 0:St.getAttributeNames().reduce((Ht,Re)=>{var $e;return Re.startsWith("data-tooltip-")&&(Ht[Re.replace(/^data-tooltip-/,"")]=($e=St==null?void 0:St.getAttribute(Re))!==null&&$e!==void 0?$e:null),Ht},{}),ar=St=>{const Ht={place:Re=>{var $e;He(($e=Re)!==null&&$e!==void 0?$e:v)},content:Re=>{Me(Re??l)},html:Re=>{ze(Re??s)},variant:Re=>{var $e;Ie(($e=Re)!==null&&$e!==void 0?$e:h)},offset:Re=>{Oe(Re===null?w:Number(Re))},wrapper:Re=>{var $e;Xe(($e=Re)!==null&&$e!==void 0?$e:C)},events:Re=>{const $e=Re==null?void 0:Re.split(" ");Ot($e??A)},"position-strategy":Re=>{var $e;en(($e=Re)!==null&&$e!==void 0?$e:I)},"delay-show":Re=>{Be(Re===null?V:Number(Re))},"delay-hide":Re=>{wt(Re===null?ee:Number(Re))},float:Re=>{Vt(Re===null?ae:Re==="true")},hidden:Re=>{Ft(Re===null?he:Re==="true")},"class-name":Re=>{Gt(Re)}};Object.values(Ht).forEach(Re=>Re(null)),Object.entries(St).forEach(([Re,$e])=>{var k;(k=Ht[Re])===null||k===void 0||k.call(Ht,$e)})};z.useEffect(()=>{Me(l)},[l]),z.useEffect(()=>{ze(s)},[s]),z.useEffect(()=>{He(v)},[v]),z.useEffect(()=>{Ie(h)},[h]),z.useEffect(()=>{Oe(w)},[w]),z.useEffect(()=>{Be(V)},[V]),z.useEffect(()=>{wt(ee)},[ee]),z.useEffect(()=>{Vt(ae)},[ae]),z.useEffect(()=>{Ft(he)},[he]),z.useEffect(()=>{en(I)},[I]),z.useEffect(()=>{_n.current!==ce&&console.warn("[react-tooltip] Do not change `disableStyleInjection` dynamically.")},[ce]),z.useEffect(()=>{typeof window<"u"&&window.dispatchEvent(new CustomEvent("react-tooltip-inject-styles",{detail:{disableCore:ce==="core",disableBase:ce}}))},[]),z.useEffect(()=>{var St;const Ht=new Set(tn);let Re=a;if(!Re&&t&&(Re=`[data-tooltip-id='${t.replace(/'/g,"\\'")}']`),Re)try{document.querySelectorAll(Re).forEach(Q=>{Ht.add({current:Q})})}catch{console.warn(`[react-tooltip] "${Re}" is not a valid CSS selector`)}const $e=document.querySelector(`[id='${n}']`);if($e&&Ht.add({current:$e}),!Ht.size)return()=>null;const k=(St=ht??$e)!==null&&St!==void 0?St:wr.current,$=new MutationObserver(Q=>{Q.forEach(oe=>{var ge;if(!k||oe.type!=="attributes"||!(!((ge=oe.attributeName)===null||ge===void 0)&&ge.startsWith("data-tooltip-")))return;const xe=Tn(k);ar(xe)})}),L={attributes:!0,childList:!1,subtree:!1};if(k){const Q=Tn(k);ar(Q),$.observe(k,L)}return()=>{$.disconnect()}},[tn,wr,ht,n,a]),z.useEffect(()=>{B!=null&&B.border&&console.warn("[react-tooltip] Do not set `style.border`. Use `border` prop instead."),M&&!M0("border",`${M}`)&&console.warn(`[react-tooltip] "${M}" is not a valid \`border\`.`),B!=null&&B.opacity&&console.warn("[react-tooltip] Do not set `style.opacity`. Use `opacity` prop instead."),m&&!M0("opacity",`${m}`)&&console.warn(`[react-tooltip] "${m}" is not a valid \`opacity\`.`)},[]);let Cn=_;const On=z.useRef(null);if(u){const St=u({content:(ht==null?void 0:ht.getAttribute("data-tooltip-content"))||ye||null,activeAnchor:ht});
129Cn=St?xn.createElement("div",{ref:On,className:"react-tooltip-content-wrapper"},St):null}else ye&&(Cn=ye);Ee&&(Cn=xn.createElement(fA,{content:Ee}));const zr={forwardRef:pe,id:t,anchorId:n,anchorSelect:a,className:Ah(f,qn),classNameArrow:p,content:Cn,contentWrapperRef:On,place:qe,variant:De,offset:dt,wrapper:Tt,events:Ct,openOnClick:j,positionStrategy:Ya,middlewares:Z,delayShow:at,delayHide:ft,float:Mt,hidden:Bn,noArrow:O,clickable:E,closeOnEsc:P,closeOnScroll:re,closeOnResize:N,openEvents:T,closeEvents:F,globalCloseEvents:ne,imperativeModeOnly:H,style:B,position:le,isOpen:R,defaultIsOpen:y,border:M,opacity:m,arrowColor:S,setIsOpen:U,afterShow:Y,afterHide:W,disableTooltip:ue,activeAnchor:ht,setActiveAnchor:St=>pn(St),role:ie};return xn.createElement(dA,{...zr})});typeof window<"u"&&window.addEventListener("react-tooltip-inject-styles",t=>{t.detail.disableCore||R0({css:":root{--rt-color-white:#fff;--rt-color-dark:#222;--rt-color-success:#8dc572;--rt-color-error:#be6464;--rt-color-warning:#f0ad4e;--rt-color-info:#337ab7;--rt-opacity:0.9;--rt-transition-show-delay:0.15s;--rt-transition-closing-delay:0.15s}.core-styles-module_tooltip__3vRRp{position:absolute;top:0;left:0;pointer-events:none;opacity:0;will-change:opacity}.core-styles-module_fixed__pcSol{position:fixed}.core-styles-module_arrow__cvMwQ{position:absolute;background:inherit}.core-styles-module_noArrow__xock6{display:none}.core-styles-module_clickable__ZuTTB{pointer-events:auto}.core-styles-module_show__Nt9eE{opacity:var(--rt-opacity);transition:opacity var(--rt-transition-show-delay)ease-out}.core-styles-module_closing__sGnxF{opacity:0;transition:opacity var(--rt-transition-closing-delay)ease-in}",type:"core"}),t.detail.disableBase||R0({css:` 130.styles-module_tooltip__mnnfp{padding:8px 16px;border-radius:3px;font-size:90%;width:max-content}.styles-module_arrow__K0L3T{width:8px;height:8px}[class*='react-tooltip__place-top']>.styles-module_arrow__K0L3T{transform:rotate(45deg)}[class*='react-tooltip__place-right']>.styles-module_arrow__K0L3T{transform:rotate(135deg)}[class*='react-tooltip__place-bottom']>.styles-module_arrow__K0L3T{transform:rotate(225deg)}[class*='react-tooltip__place-left']>.styles-module_arrow__K0L3T{transform:rotate(315deg)}.styles-module_dark__xNqje{background:var(--rt-color-dark);color:var(--rt-color-white)}.styles-module_light__Z6W-X{background-color:var(--rt-color-white);color:var(--rt-color-dark)}.styles-module_success__A2AKt{background-color:var(--rt-color-success);color:var(--rt-color-white)}.styles-module_warning__SCK0X{background-color:var(--rt-color-warning);color:var(--rt-color-white)}.styles-module_error__JvumD{background-color:var(--rt-color-error);color:var(--rt-color-white)}.styles-module_info__BWdHW{background-color:var(--rt-color-info);color:var(--rt-color-white)}`,type:"base"})});const t1=({gardener:t})=>{var n;return g.jsxs("div",{className:"relative group bg-gradient-to-tr from-green-700 to-green-900 rounded-3xl shadow-lg p-6 hover:shadow-2xl transition-all mt-15",children:[g.jsx("div",{className:"flex justify-center -mt-16",children:g.jsx("img",{src:t.image,alt:t.name,className:"w-32 h-32 rounded-full border-4 border-white shadow-md object-cover"})}),g.jsxs("div",{className:"text-center mt-4",children:[g.jsxs("div",{className:"flex justify-center items-center gap-2",children:[g.jsx("h2",{className:"text-2xl font-bold text-yellow-300 underline",children:t.name}),t.gender==="Male"?g.jsx(wO,{className:"text-3xl text-blue-300"}):g.jsx(bO,{className:"text-3xl text-pink-300"})]}),g.jsx("div",{className:"mt-2",children:t.status==="active"?g.jsx("span",{className:"badge badge-success",children:"ACTIVE"}):g.jsx("span",{className:"badge badge-error",children:"INACTIVE"})}),g.jsx("p",{className:"text-gray-200 text-sm mt-4",children:t.bio}),g.jsxs("div",{className:"flex justify-center items-center gap-1 mt-2 text-gray-300",children:[g.jsx(fO,{className:"text-red-400 text-xl"}),g.jsx("span",{children:t.location})]}),g.jsxs("div",{className:"flex justify-center gap-2 mt-4",children:[g.jsxs("span",{className:"badge bg-yellow-400 text-black font-bold",children:[t.rating," ",g.jsx(Lw,{})]}),g.jsxs("span",{className:"badge badge-info font-semibold","data-tooltip-id":"totalTipsTooltip","data-tooltip-content":`Total Tips Shared by ${t.name}`,children:[t.totalSharedTips," ð¡"]})]}),g.jsx("div",{className:"flex justify-center gap-2 mt-4 flex-wrap",children:(n=t.skills)==null?void 0:n.map((a,l)=>g.jsx("span",{className:"bg-yellow-600 text-black text-xs px-2 py-1 rounded-full",children:a},l))}),g.jsx(br,{to:`/gardener/${t._id}`,className:"btn btn-primary mt-6 w-full",children:"View Details"})]}),g.jsx(hA,{id:"totalTipsTooltip"})]})},mA=({gardenersPromise:t})=>{const n=z.use(t);return g.jsx("div",{className:"w-[95vw] mx-auto grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-12",id:"active-gardeners",children:n.map((a,l)=>g.jsx(t1,{gardener:a},l))})},pA=({tipsPromise:t})=>{const n=z.use(t);return g.jsx("div",{className:"w-[95vw] mx-auto mt-12 flex flex-col gap-6",children:n.map(a=>g.jsxs("div",{className:"flex flex-col md:flex-row items-center md:items-start gap-4 bg-base-200 p-6 rounded-3xl shadow-md hover:shadow-lg transition-all",children:[g.jsx("div",{className:"flex-shrink-0 w-full md:w-48 h-32 overflow-hidden rounded-xl",children:g.jsx("img",{src:a.imageURL,alt:a.title,className:"w-full h-full object-cover rounded-xl"})}),g.jsxs("div",{className:"flex-1 flex flex-col gap-2 text-white",children:[g.jsx("h3",{className:"text-2xl font-bold text-yellow-400",children:a.title}),g.jsxs("div",{className:"flex items-center gap-4 font-medium",children:[g.jsxs("div",{className:"flex items-center gap-1",children:[g.jsx(SO,{})," ",a.userName]}),g.jsxs("div",{className:"flex items-center gap-1",children:[g.jsx(tu,{})," ",a.totalLikes]}),g.jsx("span",{className:"bg-yellow-500 text-green-900 px-2 py-1 rounded-full text-sm",children:a.category})]}),g.jsx(br,{to:`/dashboard/tips/${a._id}`,className:"self-start mt-2 text-yellow-400 font-semibold hover:underline",children:"View Tip â"})]})]},a._id))})},gA=({data:t})=>g.jsx("div",{className:"card card-border bg-base-100 w-[90%]",children:g.jsxs("div",{className:"card-body",children:[g.jsx("h2",{className:"card-title text-2xl font-bold underline",children:t.title}),g.jsx("p",{children:t.description})]})}),vA=[{title:"Expert Gardening Tips",description:"Get access to a wide range of expert tips and tutorials tailored to your plants and gardening goals."},{title:"Personalized Plant Care",description:"Receive reminders and custom care schedules based on your plant type, location, and environment."}
130,{title:"Community Support",description:"Join a thriving community of plant lovers to share advice, ask questions, and showcase your garden."}],yA=()=>g.jsxs("div",{className:"w-full mx-auto mt-20 p-12",id:"why-us",children:[g.jsx("div",{className:"w-full mx-auto mb-5",children:g.jsx("h1",{className:"text-5xl font-bold",children:"Why Us?"})}),g.jsx("div",{className:"grid lg:grid-cols-3 md:grid-cols-2 grid-cols-1",children:vA.map((t,n)=>g.jsx(gA,{data:t},n))})]}),bA=fetch("https://gardenhub-server-nine.vercel.app/gardeners/active").then(t=>t.json()),wA=fetch("https://gardenhub-server-nine.vercel.app/tips/6").then(t=>t.json()),SA=()=>g.jsxs("div",{children:[g.jsx(gO,{}),g.jsx(w0,{title:"Active Gardeners",className:"italic mt-20 text-center"}),g.jsx(z.Suspense,{fallback:g.jsx(dr,{}),children:g.jsx(mA,{gardenersPromise:bA})}),g.jsx(w0,{title:"Trending Tips",className:"italic font-bold mt-20"}),g.jsx(z.Suspense,{fallback:g.jsx(dr,{}),children:g.jsx(pA,{tipsPromise:wA})}),g.jsx(yA,{})]}),xA=()=>{};var L0={};/** 131 * @license 132 * Copyright 2017 Google LLC 133 * 134 * Licensed under the Apache License, Version 2.0 (the "License"); 135 * you may not use this file except in compliance with the License. 136 * You may obtain a copy of the License at 137 * 138 * http://www.apache.org/licenses/LICENSE-2.0 139 * 140 * Unless required by applicable law or agreed to in writing, software 141 * distributed under the License is distributed on an "AS IS" BASIS, 142 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 143 * See the License for the specific language governing permissions and 144 * limitations under the License. 145 */const n1=function(t){const n=[];let a=0;for(let l=0;l<t.length;l++){let s=t.charCodeAt(l);s<128?n[a++]=s:s<2048?(n[a++]=s>>6|192,n[a++]=s&63|128):(s&64512)===55296&&l+1<t.length&&(t.charCodeAt(l+1)&64512)===56320?(s=65536+((s&1023)<<10)+(t.charCodeAt(++l)&1023),n[a++]=s>>18|240,n[a++]=s>>12&63|128,n[a++]=s>>6&63|128,n[a++]=s&63|128):(n[a++]=s>>12|224,n[a++]=s>>6&63|128,n[a++]=s&63|128)}return n},EA=function(t){const n=[];let a=0,l=0;for(;a<t.length;){const s=t[a++];if(s<128)n[l++]=String.fromCharCode(s);else if(s>191&&s<224){const u=t[a++];n[l++]=String.fromCharCode((s&31)<<6|u&63)}else if(s>239&&s<365){const u=t[a++],f=t[a++],p=t[a++],h=((s&7)<<18|(u&63)<<12|(f&63)<<6|p&63)-65536;n[l++]=String.fromCharCode(55296+(h>>10)),n[l++]=String.fromCharCode(56320+(h&1023))}else{const u=t[a++],f=t[a++];n[l++]=String.fromCharCode((s&15)<<12|(u&63)<<6|f&63)}}return n.join("")},r1={byteToCharMap_:null,charToByteMap_:null,byteToCharMapWebSafe_:null,charToByteMapWebSafe_:null,ENCODED_VALS_BASE:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",get ENCODED_VALS(){return this.ENCODED_VALS_BASE+"+/="},get ENCODED_VALS_WEBSAFE(){return this.ENCODED_VALS_BASE+"-_."},HAS_NATIVE_SUPPORT:typeof atob=="function",encodeByteArray(t,n){if(!Array.isArray(t))throw Error("encodeByteArray takes an array as a parameter");this.init_();const a=n?this.byteToCharMapWebSafe_:this.byteToCharMap_,l=[];for(let s=0;s<t.length;s+=3){const u=t[s],f=s+1<t.length,p=f?t[s+1]:0,h=s+2<t.length,v=h?t[s+2]:0,w=u>>2,C=(u&3)<<4|p>>4;let _=(p&15)<<2|v>>6,A=v&63;h||(A=64,f||(_=64)),l.push(a[w],a[C],a[_],a[A])}return l.join("")},encodeString(t,n){return this.HAS_NATIVE_SUPPORT&&!n?btoa(t):this.encodeByteArray(n1(t),n)},decodeString(t,n){return this.HAS_NATIVE_SUPPORT&&!n?atob(t):EA(this.decodeStringToByteArray(t,n))},decodeStringToByteArray(t,n){this.init_();const a=n?this.charToByteMapWebSafe_:this.charToByteMap_,l=[];for(let s=0;s<t.length;){const u=a[t.charAt(s++)],p=s<t.length?a[t.charAt(s)]:0;++s;const v=s<t.length?a[t.charAt(s)]:64;++s;const C=s<t.length?a[t.charAt(s)]:64;if(++s,u==null||p==null||v==null||C==null)throw new _A;const _=u<<2|p>>4;if(l.push(_),v!==64){const A=p<<4&240|v>>2;if(l.push(A),C!==64){const j=v<<6&192|C;l.push(j)}}}return l},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let t=0;t<this.ENCODED_VALS.length;t++)this.byteToCharMap_[t]=this.ENCODED_VALS.charAt(t),this.charToByteMap_[this.byteToCharMap_[t]]=t,this.byteToCharMapWebSafe_[t]=this.ENCODED_VALS_WEBSAFE.charAt(t),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[t]]=t,t>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(t)]=t,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(t)]=t)}}};
145class _A extends Error{constructor(){super(...arguments),this.name="DecodeBase64StringError"}}const TA=function(t){const n=n1(t);return r1.encodeByteArray(n,!0)},a1=function(t){return TA(t).replace(/\./g,"")},i1=function(t){try{return r1.decodeString(t,!0)}catch(n){console.error("base64Decode failed: ",n)}return null};/** 146 * @license 147 * Copyright 2022 Google LLC 148 * 149 * Licensed under the Apache License, Version 2.0 (the "License"); 150 * you may not use this file except in compliance with the License. 151 * You may obtain a copy of the License at 152 * 153 * http://www.apache.org/licenses/LICENSE-2.0 154 * 155 * Unless required by applicable law or agreed to in writing, software 156 * distributed under the License is distributed on an "AS IS" BASIS, 157 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 158 * See the License for the specific language governing permissions and 159 * limitations under the License. 160 */function CA(){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.")}/** 161 * @license 162 * Copyright 2022 Google LLC 163 * 164 * Licensed under the Apache License, Version 2.0 (the "License"); 165 * you may not use this file except in compliance with the License. 166 * You may obtain a copy of the License at 167 * 168 * http://www.apache.org/licenses/LICENSE-2.0 169 * 170 * Unless required by applicable law or agreed to in writing, software 171 * distributed under the License is distributed on an "AS IS" BASIS, 172 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 173 * See the License for the specific language governing permissions and 174 * limitations under the License. 175 */const OA=()=>CA().__FIREBASE_DEFAULTS__,AA=()=>{if(typeof process>"u"||typeof L0>"u")return;const t=L0.__FIREBASE_DEFAULTS__;if(t)return JSON.parse(t)},RA=()=>{if(typeof document>"u")return;let t;try{t=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}const n=t&&i1(t[1]);return n&&JSON.parse(n)},pm=()=>{try{return xA()||OA()||AA()||RA()}catch(t){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${t}`);return}},NA=t=>{var n,a;return(a=(n=pm())===null||n===void 0?void 0:n.emulatorHosts)===null||a===void 0?void 0:a[t]},l1=()=>{var t;return(t=pm())===null||t===void 0?void 0:t.config},o1=t=>{var n;return(n=pm())===null||n===void 0?void 0:n[`_${t}`]};/** 176 * @license 177 * Copyright 2017 Google LLC 178 * 179 * Licensed under the Apache License, Version 2.0 (the "License"); 180 * you may not use this file except in compliance with the License. 181 * You may obtain a copy of the License at 182 * 183 * http://www.apache.org/licenses/LICENSE-2.0 184 * 185 * Unless required by applicable law or agreed to in writing, software 186 * distributed under the License is distributed on an "AS IS" BASIS, 187 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 188 * See the License for the specific language governing permissions and 189 * limitations under the License. 190 */class MA{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((n,a)=>{this.resolve=n,this.reject=a})}wrapCallback(n){return(a,l)=>{a?this.reject(a):this.resolve(l),typeof n=="function"&&(this.promise.catch(()=>{}),n.length===1?n(a):n(a,l))}}}/** 191 * @license 192 * Copyright 2025 Google LLC 193 * 194 * Licensed under the Apache License, Version 2.0 (the "License"); 195 * you may not use this file except in compliance with the License. 196 * You may obtain a copy of the License at 197 * 198 * http://www.apache.org/licenses/LICENSE-2.0 199 * 200 * Unless required by applicable law or agreed to in writing, software 201 * distributed under the License is distributed on an "AS IS" BASIS, 202 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 203 * See the License for the specific language governing permissions and 204 * limitations under the License. 205 */function gm(t){return t.endsWith(".cloudworkstations.dev")}async function DA(t){return(await fetch(t,{credentials:"include"})).ok}const qo={};function jA(){const t={prod:[],emulator:[]};for(const n of Object.keys(qo))qo[n]?t.emulator.push(n):t.prod.push(n);return t}function kA(t){let n=document.getElementById(t),a=!1;return n||(n=document.createElement("div"),n.setAttribute("id",t),a=!0),{created:a,element:n}}let z0=!1;function s1(t,n){if(typeof window>"u"||typeof document>"u"||!gm(window.location.host)||qo[t]===n||qo[t]||z0)return;qo[t]=n;function a(_){return`__firebase__banner__${_}`}const l="__firebase__banner",u=jA().prod.length>0;function f(){const _=document.getElementById(l);_&&_.remove()}function p(_){_.style.display="flex",_.style.background="#7faaf0",_.
vendor: 5,372 bytes, lines 205-238
205style.position="fixed",_.style.bottom="5px",_.style.left="5px",_.style.padding=".5em",_.style.borderRadius="5px",_.style.alignItems="center"}function h(_,A){_.setAttribute("width","24"),_.setAttribute("id",A),_.setAttribute("height","24"),_.setAttribute("viewBox","0 0 24 24"),_.setAttribute("fill","none"),_.style.marginLeft="-6px"}function v(){const _=document.createElement("span");return _.style.cursor="pointer",_.style.marginLeft="16px",_.style.fontSize="24px",_.innerHTML=" ×",_.onclick=()=>{z0=!0,f()},_}function w(_,A){_.setAttribute("id",A),_.innerText="Learn more",_.href="https://firebase.google.com/docs/studio/preview-apps#preview-backend",_.setAttribute("target","__blank"),_.style.paddingLeft="5px",_.style.textDecoration="underline"}function C(){const _=kA(l),A=a("text"),j=document.getElementById(A)||document.createElement("span"),I=a("learnmore"),Z=document.getElementById(I)||document.createElement("a"),V=a("preprendIcon"),ee=document.getElementById(V)||document.createElementNS("http://www.w3.org/2000/svg","svg");if(_.created){const ae=_.element;p(ae),w(Z,I);const he=v();h(ee,V),ae.append(ee,j,Z,he),document.body.appendChild(ae)}u?(j.innerText="Preview backend disconnected.",ee.innerHTML=`<g clip-path="url(#clip0_6013_33858)"> 206<path d="M4.8 17.6L12 5.6L19.2 17.6H4.8ZM6.91667 16.4H17.0833L12 7.93333L6.91667 16.4ZM12 15.6C12.1667 15.6 12.3056 15.5444 12.4167 15.4333C12.5389 15.3111 12.6 15.1667 12.6 15C12.6 14.8333 12.5389 14.6944 12.4167 14.5833C12.3056 14.4611 12.1667 14.4 12 14.4C11.8333 14.4 11.6889 14.4611 11.5667 14.5833C11.4556 14.6944 11.4 14.8333 11.4 15C11.4 15.1667 11.4556 15.3111 11.5667 15.4333C11.6889 15.5444 11.8333 15.6 12 15.6ZM11.4 13.6H12.6V10.4H11.4V13.6Z" fill="#212121"/> 207</g> 208<defs> 209<clipPath id="clip0_6013_33858"> 210<rect width="24" height="24" fill="white"/> 211</clipPath> 212</defs>`):(ee.innerHTML=`<g clip-path="url(#clip0_6083_34804)"> 213<path d="M11.4 15.2H12.6V11.2H11.4V15.2ZM12 10C12.1667 10 12.3056 9.94444 12.4167 9.83333C12.5389 9.71111 12.6 9.56667 12.6 9.4C12.6 9.23333 12.5389 9.09444 12.4167 8.98333C12.3056 8.86111 12.1667 8.8 12 8.8C11.8333 8.8 11.6889 8.86111 11.5667 8.98333C11.4556 9.09444 11.4 9.23333 11.4 9.4C11.4 9.56667 11.4556 9.71111 11.5667 9.83333C11.6889 9.94444 11.8333 10 12 10ZM12 18.4C11.1222 18.4 10.2944 18.2333 9.51667 17.9C8.73889 17.5667 8.05556 17.1111 7.46667 16.5333C6.88889 15.9444 6.43333 15.2611 6.1 14.4833C5.76667 13.7056 5.6 12.8778 5.6 12C5.6 11.1111 5.76667 10.2833 6.1 9.51667C6.43333 8.73889 6.88889 8.06111 7.46667 7.48333C8.05556 6.89444 8.73889 6.43333 9.51667 6.1C10.2944 5.76667 11.1222 5.6 12 5.6C12.8889 5.6 13.7167 5.76667 14.4833 6.1C15.2611 6.43333 15.9389 6.89444 16.5167 7.48333C17.1056 8.06111 17.5667 8.73889 17.9 9.51667C18.2333 10.2833 18.4 11.1111 18.4 12C18.4 12.8778 18.2333 13.7056 17.9 14.4833C17.5667 15.2611 17.1056 15.9444 16.5167 16.5333C15.9389 17.1111 15.2611 17.5667 14.4833 17.9C13.7167 18.2333 12.8889 18.4 12 18.4ZM12 17.2C13.4444 17.2 14.6722 16.6944 15.6833 15.6833C16.6944 14.6722 17.2 13.4444 17.2 12C17.2 10.5556 16.6944 9.32778 15.6833 8.31667C14.6722 7.30555 13.4444 6.8 12 6.8C10.5556 6.8 9.32778 7.30555 8.31667 8.31667C7.30556 9.32778 6.8 10.5556 6.8 12C6.8 13.4444 7.30556 14.6722 8.31667 15.6833C9.32778 16.6944 10.5556 17.2 12 17.2Z" fill="#212121"/> 214</g> 215<defs> 216<clipPath id="clip0_6083_34804"> 217<rect width="24" height="24" fill="white"/> 218</clipPath> 219</defs>`,j.innerText="Preview backend running in this workspace."),j.setAttribute("id",A)}document.readyState==="loading"?window.addEventListener("DOMContentLoaded",C):C()}/** 220 * @license 221 * Copyright 2017 Google LLC 222 * 223 * Licensed under the Apache License, Version 2.0 (the "License"); 224 * you may not use this file except in compliance with the License. 225 * You may obtain a copy of the License at 226 * 227 * http://www.apache.org/licenses/LICENSE-2.0 228 * 229 * Unless required by applicable law or agreed to in writing, software 230 * distributed under the License is distributed on an "AS IS" BASIS, 231 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 232 * See the License for the specific language governing permissions and 233 * limitations under the License. 234 */function hn(){return typeof navigator<"u"&&typeof navigator.userAgent=="string"?navigator.userAgent:""}function LA(){return typeof window<"u"&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(hn())}function zA(){return typeof navigator<"u"&&navigator.userAgent==="Cloudflare-Workers"}function PA(){const t=typeof chrome=="object"?chrome.runtime:typeof browser=="object"?browser.runtime:void 0;return typeof t=="object"&&t.id!==void 0}function IA(){return typeof navigator=="object"&&navigator.product==="ReactNative"}function UA(){const t=hn();return t.indexOf("MSIE ")>=0||t.indexOf("Trident/")>=0}function HA(){try{return typeof indexedDB=="object"}catch{return!1}}function BA(){return new Promise((t,n)=>{try{let a=!0;const l="validate-browser-context-for-indexeddb-analytics-module",s=self.indexedDB.open(l);s.onsuccess=()=>{s.result.close(),a||self.indexedDB.deleteDatabase(l),t(!0)},s.onupgradeneeded=()=>{a=!1},s.onerror=()=>{var u;n(((u=s.error)===null||u===void 0?void 0:u.message)||"")}}catch(a){n(a)}})}/** 235 * @license 236 * Copyright 2017 Google LLC 237 * 238 * Licensed under the Apache License, Version 2.0 (the "License");
239 * you may not use this file except in compliance with the License. 240 * You may obtain a copy of the License at 241 * 242 * http://www.apache.org/licenses/LICENSE-2.0 243 * 244 * Unless required by applicable law or agreed to in writing, software 245 * distributed under the License is distributed on an "AS IS" BASIS, 246 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 247 * See the License for the specific language governing permissions and 248 * limitations under the License. 249 */const qA="FirebaseError";class Va extends Error{constructor(n,a,l){super(a),this.code=n,this.customData=l,this.name=qA,Object.setPrototypeOf(this,Va.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,us.prototype.create)}}class us{constructor(n,a,l){this.service=n,this.serviceName=a,this.errors=l}create(n,...a){const l=a[0]||{},s=`${this.service}/${n}`,u=this.errors[n],f=u?VA(u,l):"Error",p=`${this.serviceName}: ${f} (${s}).`;return new Va(s,p,l)}}function VA(t,n){return t.replace(GA,(a,l)=>{const s=n[l];return s!=null?String(s):`<${l}?>`})}const GA=/\{\$([^}]+)}/g;function $A(t){for(const n in t)if(Object.prototype.hasOwnProperty.call(t,n))return!1;return!0}function _l(t,n){if(t===n)return!0;const a=Object.keys(t),l=Object.keys(n);for(const s of a){if(!l.includes(s))return!1;const u=t[s],f=n[s];if(P0(u)&&P0(f)){if(!_l(u,f))return!1}else if(u!==f)return!1}for(const s of l)if(!a.includes(s))return!1;return!0}function P0(t){return t!==null&&typeof t=="object"}/** 250 * @license 251 * Copyright 2017 Google LLC 252 * 253 * Licensed under the Apache License, Version 2.0 (the "License"); 254 * you may not use this file except in compliance with the License. 255 * You may obtain a copy of the License at 256 * 257 * http://www.apache.org/licenses/LICENSE-2.0 258 * 259 * Unless required by applicable law or agreed to in writing, software 260 * distributed under the License is distributed on an "AS IS" BASIS, 261 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 262 * See the License for the specific language governing permissions and 263 * limitations under the License. 264 */function ds(t){const n=[];for(const[a,l]of Object.entries(t))Array.isArray(l)?l.forEach(s=>{n.push(encodeURIComponent(a)+"="+encodeURIComponent(s))}):n.push(encodeURIComponent(a)+"="+encodeURIComponent(l));return n.length?"&"+n.join("&"):""}function Ho(t){const n={};return t.replace(/^\?/,"").split("&").forEach(l=>{if(l){const[s,u]=l.split("=");n[decodeURIComponent(s)]=decodeURIComponent(u)}}),n}function Bo(t){const n=t.indexOf("?");if(!n)return"";const a=t.indexOf("#",n);return t.substring(n,a>0?a:void 0)}function YA(t,n){const a=new XA(t,n);return a.subscribe.bind(a)}class XA{constructor(n,a){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=a,this.task.then(()=>{n(this)}).catch(l=>{this.error(l)})}next(n){this.forEachObserver(a=>{a.next(n)})}error(n){this.forEachObserver(a=>{a.error(n)}),this.close(n)}complete(){this.forEachObserver(n=>{n.complete()}),this.close()}subscribe(n,a,l){let s;if(n===void 0&&a===void 0&&l===void 0)throw new Error("Missing Observer.");FA(n,["next","error","complete"])?s=n:s={next:n,error:a,complete:l},s.next===void 0&&(s.next=ch),s.error===void 0&&(s.error=ch),s.complete===void 0&&(s.complete=ch);const u=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?s.error(this.finalError):s.complete()}catch{}}),this.observers.push(s),u}unsubscribeOne(n){this.observers===void 0||this.observers[n]===void 0||(delete this.observers[n],this.observerCount-=1,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(n){if(!this.finalized)for(let a=0;a<this.observers.length;a++)this.sendOne(a,n)}sendOne(n,a){this.task.then(()=>{if(this.observers!==void 0&&this.observers[n]!==void 0)try{a(this.observers[n])}catch(l){typeof console<"u"&&console.error&&console.error(l)}})}close(n){this.finalized||(this.finalized=!0,n!==void 0&&(this.finalError=n),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}}function FA(t,n){if(typeof t!="object"||t===null)return!1;for(const a of n)if(a in t&&typeof t[a]=="function")return!0;return!1}function ch(){}/** 265 * @license 266 * Copyright 2021 Google LLC 267 * 268 * Licensed under the Apache License, Version 2.0 (the "License");
269 * you may not use this file except in compliance with the License. 270 * You may obtain a copy of the License at 271 * 272 * http://www.apache.org/licenses/LICENSE-2.0 273 * 274 * Unless required by applicable law or agreed to in writing, software 275 * distributed under the License is distributed on an "AS IS" BASIS, 276 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 277 * See the License for the specific language governing permissions and 278 * limitations under the License. 279 */function Lr(t){return t&&t._delegate?t._delegate:t}class Tl{constructor(n,a,l){this.name=n,this.instanceFactory=a,this.type=l,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode="LAZY",this.onInstanceCreated=null}setInstantiationMode(n){return this.instantiationMode=n,this}setMultipleInstances(n){return this.multipleInstances=n,this}setServiceProps(n){return this.serviceProps=n,this}setInstanceCreatedCallback(n){return this.onInstanceCreated=n,this}}/** 280 * @license 281 * Copyright 2019 Google LLC 282 * 283 * Licensed under the Apache License, Version 2.0 (the "License"); 284 * you may not use this file except in compliance with the License. 285 * You may obtain a copy of the License at 286 * 287 * http://www.apache.org/licenses/LICENSE-2.0 288 * 289 * Unless required by applicable law or agreed to in writing, software 290 * distributed under the License is distributed on an "AS IS" BASIS, 291 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 292 * See the License for the specific language governing permissions and 293 * limitations under the License. 294 */const hi="[DEFAULT]";/** 295 * @license 296 * Copyright 2019 Google LLC 297 * 298 * Licensed under the Apache License, Version 2.0 (the "License"); 299 * you may not use this file except in compliance with the License. 300 * You may obtain a copy of the License at 301 * 302 * http://www.apache.org/licenses/LICENSE-2.0 303 * 304 * Unless required by applicable law or agreed to in writing, software 305 * distributed under the License is distributed on an "AS IS" BASIS, 306 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 307 * See the License for the specific language governing permissions and 308 * limitations under the License. 309 */class KA{constructor(n,a){this.name=n,this.container=a,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(n){const a=this.normalizeInstanceIdentifier(n);if(!this.instancesDeferred.has(a)){const l=new MA;if(this.instancesDeferred.set(a,l),this.isInitialized(a)||this.shouldAutoInitialize())try{const s=this.getOrInitializeService({instanceIdentifier:a});s&&l.resolve(s)}catch{}}return this.instancesDeferred.get(a).promise}getImmediate(n){var a;const l=this.normalizeInstanceIdentifier(n==null?void 0:n.identifier),s=(a=n==null?void 0:n.optional)!==null&&a!==void 0?a:!1;if(this.isInitialized(l)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:l})}catch(u){if(s)return null;throw u}else{if(s)return null;throw Error(`Service ${this.name} is not available`)}}getComponent(){return this.component}setComponent(n){if(n.name!==this.name)throw Error(`Mismatching Component ${n.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=n,!!this.shouldAutoInitialize()){if(QA(n))try{this.getOrInitializeService({instanceIdentifier:hi})}catch{}for(const[a,l]of this.instancesDeferred.entries()){const s=this.normalizeInstanceIdentifier(a);try{const u=this.getOrInitializeService({instanceIdentifier:s});l.resolve(u)}catch{}}}}clearInstance(n=hi){this.instancesDeferred.delete(n),this.instancesOptions.delete(n),this.instances.delete(n)}async delete(){const n=Array.from(this.instances.values());await Promise.all([...n.filter(a=>"INTERNAL"in a).map(a=>a.INTERNAL.delete()),...n.filter(a=>"_delete"in a).map(a=>a._delete())])}isComponentSet(){return this.component!=null}isInitialized(n=hi){return this.instances.has(n)}getOptions(n=hi){return this.instancesOptions.get(n)||{}}initialize(n={}){const{options:a={}}=n,l=this.normalizeInstanceIdentifier(n.instanceIdentifier);if(this.isInitialized(l))throw Error(`${this.name}(${l}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);const s=this.getOrInitializeService({instanceIdentifier:l,options:a});for(const[u,f]of this.instancesDeferred.entries()){const p=this.normalizeInstanceIdentifier(u);l===p&&f.resolve(s)}return s}onInit(n,a){var l;const s=this.normalizeInstanceIdentifier(a),u=(l=this.onInitCallbacks.get(s))!==null&&l!==void 0?l:new Set;u.add(n),this.onInitCallbacks.set(s,u);const f=this.instances.get(s);return f&&n(f,s),()=>{u.delete(n)}}invokeOnInitCallbacks(n,a){const l=this.onInitCallbacks.get(a);if(l)for(const s of l)try{s(n,a)}catch{}}getOrInitializeService({instanceIdentifier:n,options:a={}}){let l=this.instances.get(n);if(!l&&this.component&&(l=this.component.instanceFactory(this.container,{instanceIdentifier:WA(n),options:a}),this.instances.set(n,l),this.instancesOptions.set(n,a),this.invokeOnInitCallbacks(l,n),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,n,l)}catch{}return l||null}normalizeInstanceIdentifier(n=hi){return this.component?this.component.multipleInstances?n:hi:n}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!=="EXPLICIT"}}function WA(t){return t===hi?void 0:t}function QA(t){return t.instantiationMode==="EAGER"}/** 310 * @license 311 * Copyright 2019 Google LLC 312 * 313 * Licensed under the Apache License, Version 2.0 (the "License");
314 * you may not use this file except in compliance with the License. 315 * You may obtain a copy of the License at 316 * 317 * http://www.apache.org/licenses/LICENSE-2.0 318 * 319 * Unless required by applicable law or agreed to in writing, software 320 * distributed under the License is distributed on an "AS IS" BASIS, 321 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 322 * See the License for the specific language governing permissions and 323 * limitations under the License. 324 */class ZA{constructor(n){this.name=n,this.providers=new Map}addComponent(n){const a=this.getProvider(n.name);if(a.isComponentSet())throw new Error(`Component ${n.name} has already been registered with ${this.name}`);a.setComponent(n)}addOrOverwriteComponent(n){this.getProvider(n.name).isComponentSet()&&this.providers.delete(n.name),this.addComponent(n)}getProvider(n){if(this.providers.has(n))return this.providers.get(n);const a=new KA(n,this);return this.providers.set(n,a),a}getProviders(){return Array.from(this.providers.values())}}/** 325 * @license 326 * Copyright 2017 Google LLC 327 * 328 * Licensed under the Apache License, Version 2.0 (the "License"); 329 * you may not use this file except in compliance with the License. 330 * You may obtain a copy of the License at 331 * 332 * http://www.apache.org/licenses/LICENSE-2.0 333 * 334 * Unless required by applicable law or agreed to in writing, software 335 * distributed under the License is distributed on an "AS IS" BASIS, 336 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 337 * See the License for the specific language governing permissions and 338 * limitations under the License. 339 */var bt;(function(t){t[t.DEBUG=0]="DEBUG",t[t.VERBOSE=1]="VERBOSE",t[t.INFO=2]="INFO",t[t.WARN=3]="WARN",t[t.ERROR=4]="ERROR",t[t.SILENT=5]="SILENT"})(bt||(bt={}));const JA={debug:bt.DEBUG,verbose:bt.VERBOSE,info:bt.INFO,warn:bt.WARN,error:bt.ERROR,silent:bt.SILENT},e4=bt.INFO,t4={[bt.DEBUG]:"log",[bt.VERBOSE]:"log",[bt.INFO]:"info",[bt.WARN]:"warn",[bt.ERROR]:"error"},n4=(t,n,...a)=>{if(n<t.logLevel)return;const l=new Date().toISOString(),s=t4[n];if(s)console[s](`[${l}] ${t.name}:`,...a);else throw new Error(`Attempted to log a message with an invalid logType (value: ${n})`)};class c1{constructor(n){this.name=n,this._logLevel=e4,this._logHandler=n4,this._userLogHandler=null}get logLevel(){return this._logLevel}set logLevel(n){if(!(n in bt))throw new TypeError(`Invalid value "${n}" assigned to \`logLevel\``);this._logLevel=n}setLogLevel(n){this._logLevel=typeof n=="string"?JA[n]:n}get logHandler(){return this._logHandler}set logHandler(n){if(typeof n!="function")throw new TypeError("Value assigned to `logHandler` must be a function");this._logHandler=n}get userLogHandler(){return this._userLogHandler}set userLogHandler(n){this._userLogHandler=n}debug(...n){this._userLogHandler&&this._userLogHandler(this,bt.DEBUG,...n),this._logHandler(this,bt.DEBUG,...n)}log(...n){this._userLogHandler&&this._userLogHandler(this,bt.VERBOSE,...n),this._logHandler(this,bt.VERBOSE,...n)}info(...n){this._userLogHandler&&this._userLogHandler(this,bt.INFO,...n),this._logHandler(this,bt.INFO,...n)}warn(...n){this._userLogHandler&&this._userLogHandler(this,bt.WARN,...n),this._logHandler(this,bt.WARN,...n)}error(...n){this._userLogHandler&&this._userLogHandler(this,bt.ERROR,...n),this._logHandler(this,bt.ERROR,...n)}}const r4=(t,n)=>n.some(a=>t instanceof a);let I0,U0;function a4(){return I0||(I0=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction])}function i4(){return U0||(U0=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey])}const u1=new WeakMap,Nh=new WeakMap,d1=new WeakMap,uh=new WeakMap,vm=new WeakMap;function l4(t){const n=new Promise((a,l)=>{const s=()=>{t.removeEventListener("success",u),t.removeEventListener("error",f)},u=()=>{a(Ia(t.result)),s()},f=()=>{l(t.error),s()};t.addEventListener("success",u),t.addEventListener("error",f)});return n.then(a=>{a instanceof IDBCursor&&u1.set(a,t)}).catch(()=>{}),vm.set(n,t),n}function o4(t){if(Nh.has(t))return;const n=new Promise((a,l)=>{const s=()=>{t.removeEventListener("complete",u),t.removeEventListener("error",f),t.removeEventListener("abort",f)},u=()=>{a(),s()},f=()=>{l(t.error||new DOMException("AbortError","AbortError")),s()};t.addEventListener("complete",u),t.addEventListener("error",f),t.addEventListener("abort",f)});Nh.set(t,n)}let Mh={get(t,n,a){if(t instanceof IDBTransaction){if(n==="done")return Nh.get(t);if(n==="objectStoreNames")return t.objectStoreNames||d1.get(t);if(n==="store")return a.objectStoreNames[1]?void 0:a.objectStore(a.objectStoreNames[0])}return Ia(t[n])},set(t,n,a){return t[n]=a,!0},has(t,n){return t instanceof IDBTransaction&&(n==="done"||n==="store")?!0:n in t}};function s4(t){Mh=t(Mh)}function c4(t){return t===IDBDatabase.prototype.transaction&&!("objectStoreNames"in IDBTransaction.prototype)?function(n,...a){const l=t.call(dh(this),n,...a);return d1.set(l,n.sort?n.sort():[n]),Ia(l)}:i4().includes(t)?function(...n){return t.apply(dh(this),n),Ia(u1.get(this))}
339:function(...n){return Ia(t.apply(dh(this),n))}}function u4(t){return typeof t=="function"?c4(t):(t instanceof IDBTransaction&&o4(t),r4(t,a4())?new Proxy(t,Mh):t)}function Ia(t){if(t instanceof IDBRequest)return l4(t);if(uh.has(t))return uh.get(t);const n=u4(t);return n!==t&&(uh.set(t,n),vm.set(n,t)),n}const dh=t=>vm.get(t);function d4(t,n,{blocked:a,upgrade:l,blocking:s,terminated:u}={}){const f=indexedDB.open(t,n),p=Ia(f);return l&&f.addEventListener("upgradeneeded",h=>{l(Ia(f.result),h.oldVersion,h.newVersion,Ia(f.transaction),h)}),a&&f.addEventListener("blocked",h=>a(h.oldVersion,h.newVersion,h)),p.then(h=>{u&&h.addEventListener("close",()=>u()),s&&h.addEventListener("versionchange",v=>s(v.oldVersion,v.newVersion,v))}).catch(()=>{}),p}const f4=["get","getKey","getAll","getAllKeys","count"],h4=["put","add","delete","clear"],fh=new Map;function H0(t,n){if(!(t instanceof IDBDatabase&&!(n in t)&&typeof n=="string"))return;if(fh.get(n))return fh.get(n);const a=n.replace(/FromIndex$/,""),l=n!==a,s=h4.includes(a);if(!(a in(l?IDBIndex:IDBObjectStore).prototype)||!(s||f4.includes(a)))return;const u=async function(f,...p){const h=this.transaction(f,s?"readwrite":"readonly");let v=h.store;return l&&(v=v.index(p.shift())),(await Promise.all([v[a](...p),s&&h.done]))[0]};return fh.set(n,u),u}s4(t=>({...t,get:(n,a,l)=>H0(n,a)||t.get(n,a,l),has:(n,a)=>!!H0(n,a)||t.has(n,a)}));/** 340 * @license 341 * Copyright 2019 Google LLC 342 * 343 * Licensed under the Apache License, Version 2.0 (the "License"); 344 * you may not use this file except in compliance with the License. 345 * You may obtain a copy of the License at 346 * 347 * http://www.apache.org/licenses/LICENSE-2.0 348 * 349 * Unless required by applicable law or agreed to in writing, software 350 * distributed under the License is distributed on an "AS IS" BASIS, 351 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 352 * See the License for the specific language governing permissions and 353 * limitations under the License. 354 */class m4{constructor(n){this.container=n}getPlatformInfoString(){return this.container.getProviders().map(a=>{if(p4(a)){const l=a.getImmediate();return`${l.library}/${l.version}`}else return null}).filter(a=>a).join(" ")}}function p4(t){const n=t.getComponent();return(n==null?void 0:n.type)==="VERSION"}const Dh="@firebase/app",B0="0.12.3";/** 355 * @license 356 * Copyright 2019 Google LLC 357 * 358 * Licensed under the Apache License, Version 2.0 (the "License"); 359 * you may not use this file except in compliance with the License. 360 * You may obtain a copy of the License at 361 * 362 * http://www.apache.org/licenses/LICENSE-2.0 363 * 364 * Unless required by applicable law or agreed to in writing, software 365 * distributed under the License is distributed on an "AS IS" BASIS, 366 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 367 * See the License for the specific language governing permissions and 368 * limitations under the License. 369 */const ra=new c1("@firebase/app"),g4="@firebase/app-compat",v4="@firebase/analytics-compat",y4="@firebase/analytics",b4="@firebase/app-check-compat",w4="@firebase/app-check",S4="@firebase/auth",x4="@firebase/auth-compat",E4="@firebase/database",_4="@firebase/data-connect",T4="@firebase/database-compat",C4="@firebase/functions",O4="@firebase/functions-compat",A4="@firebase/installations",R4="@firebase/installations-compat",N4="@firebase/messaging",M4="@firebase/messaging-compat",D4="@firebase/performance",j4="@firebase/performance-compat",k4="@firebase/remote-config",L4="@firebase/remote-config-compat",z4="@firebase/storage",P4="@firebase/storage-compat",I4="@firebase/firestore",U4="@firebase/vertexai",H4="@firebase/firestore-compat",B4="firebase",q4="11.7.3";/** 370 * @license 371 * Copyright 2019 Google LLC 372 * 373 * Licensed under the Apache License, Version 2.0 (the "License"); 374 * you may not use this file except in compliance with the License. 375 * You may obtain a copy of the License at 376 * 377 * http://www.apache.org/licenses/LICENSE-2.0 378 * 379 * Unless required by applicable law or agreed to in writing, software 380 * distributed under the License is distributed on an "AS IS" BASIS, 381 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 382 * See the License for the specific language governing permissions and 383 * limitations under the License. 384 */const jh="[DEFAULT]",V4={[Dh]:"fire-core",[g4]:"fire-core-compat",[y4]:"fire-analytics",[v4]:"fire-analytics-compat",[w4]:"fire-app-check",[b4]:"fire-app-check-compat",[S4]:"fire-auth",[x4]:"fire-auth-compat",[E4]:"fire-rtdb",[_4]:"fire-data-connect",[T4]:"fire-rtdb-compat",[C4]:"fire-fn",[O4]:"fire-fn-compat",[A4]:"fire-iid",[R4]:"fire-iid-compat",[N4]:"fire-fcm",[M4]:"fire-fcm-compat",[D4]:"fire-perf",[j4]:"fire-perf-compat",[k4]:"fire-rc",[L4]:"fire-rc-compat",[z4]:"fire-g
384cs",[P4]:"fire-gcs-compat",[I4]:"fire-fst",[H4]:"fire-fst-compat",[U4]:"fire-vertex","fire-js":"fire-js",[B4]:"fire-js-all"};/** 385 * @license 386 * Copyright 2019 Google LLC 387 * 388 * Licensed under the Apache License, Version 2.0 (the "License"); 389 * you may not use this file except in compliance with the License. 390 * You may obtain a copy of the License at 391 * 392 * http://www.apache.org/licenses/LICENSE-2.0 393 * 394 * Unless required by applicable law or agreed to in writing, software 395 * distributed under the License is distributed on an "AS IS" BASIS, 396 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 397 * See the License for the specific language governing permissions and 398 * limitations under the License. 399 */const iu=new Map,G4=new Map,kh=new Map;function q0(t,n){try{t.container.addComponent(n)}catch(a){ra.debug(`Component ${n.name} failed to register with FirebaseApp ${t.name}`,a)}}function Xo(t){const n=t.name;if(kh.has(n))return ra.debug(`There were multiple attempts to register component ${n}.`),!1;kh.set(n,t);for(const a of iu.values())q0(a,t);for(const a of G4.values())q0(a,t);return!0}function f1(t,n){const a=t.container.getProvider("heartbeat").getImmediate({optional:!0});return a&&a.triggerHeartbeat(),t.container.getProvider(n)}function er(t){return t==null?!1:t.settings!==void 0}/** 400 * @license 401 * Copyright 2019 Google LLC 402 * 403 * Licensed under the Apache License, Version 2.0 (the "License"); 404 * you may not use this file except in compliance with the License. 405 * You may obtain a copy of the License at 406 * 407 * http://www.apache.org/licenses/LICENSE-2.0 408 * 409 * Unless required by applicable law or agreed to in writing, software 410 * distributed under the License is distributed on an "AS IS" BASIS, 411 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 412 * See the License for the specific language governing permissions and 413 * limitations under the License. 414 */const $4={"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
414d-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."},Ua=new us("app","Firebase",$4);/** 415 * @license 416 * Copyright 2019 Google LLC 417 * 418 * Licensed under the Apache License, Version 2.0 (the "License"); 419 * you may not use this file except in compliance with the License. 420 * You may obtain a copy of the License at 421 * 422 * http://www.apache.org/licenses/LICENSE-2.0 423 * 424 * Unless required by applicable law or agreed to in writing, software 425 * distributed under the License is distributed on an "AS IS" BASIS, 426 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 427 * See the License for the specific language governing permissions and 428 * limitations under the License. 429 */class Y4{constructor(n,a,l){this._isDeleted=!1,this._options=Object.assign({},n),this._config=Object.assign({},a),this._name=a.name,this._automaticDataCollectionEnabled=a.automaticDataCollectionEnabled,this._container=l,this.container.addComponent(new Tl("app",()=>this,"PUBLIC"))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(n){this.checkDestroyed(),this._automaticDataCollectionEnabled=n}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(n){this._isDeleted=n}checkDestroyed(){if(this.isDeleted)throw Ua.create("app-deleted",{appName:this._name})}}/** 430 * @license 431 * Copyright 2019 Google LLC 432 * 433 * Licensed under the Apache License, Version 2.0 (the "License"); 434 * you may not use this file except in compliance with the License. 435 * You may obtain a copy of the License at 436 * 437 * http://www.apache.org/licenses/LICENSE-2.0 438 * 439 * Unless required by applicable law or agreed to in writing, software 440 * distributed under the License is distributed on an "AS IS" BASIS, 441 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 442 * See the License for the specific language governing permissions and 443 * limitations under the License. 444 */const fs=q4;function h1(t,n={}){let a=t;typeof n!="object"&&(n={name:n});const l=Object.assign({name:jh,automaticDataCollectionEnabled:!1},n),s=l.name;if(typeof s!="string"||!s)throw Ua.create("bad-app-name",{appName:String(s)});if(a||(a=l1()),!a)throw Ua.create("no-options");const u=iu.get(s);if(u){if(_l(a,u.options)&&_l(l,u.config))return u;throw Ua.create("duplicate-app",{appName:s})}const f=new ZA(s);for(const h of kh.values())f.addComponent(h);const p=new Y4(a,l,f);return iu.set(s,p),p}function X4(t=jh){const n=iu.get(t);if(!n&&t===jh&&l1())return h1();if(!n)throw Ua.create("no-app",{appName:t});return n}function pl(t,n,a){var l;let s=(l=V4[t])!==null&&l!==void 0?l:t;a&&(s+=`-${a}`);const u=s.match(/\s|\//),f=n.match(/\s|\//);if(u||f){const p=[`Unable to register library "${s}" with version "${n}":`];u&&p.push(`library name "${s}" contains illegal characters (whitespace or "/")`),u&&f&&p.push("and"),f&&p.push(`version name "${n}" contains illegal characters (whitespace or "/")`),ra.warn(p.join(" "));return}Xo(new Tl(`${s}-version`,()=>({library:s,version:n}),"VERSION"))}/** 445 * @license 446 * Copyright 2021 Google LLC 447 * 448 * Licensed under the Apache License, Version 2.0 (the "License"); 449 * you may not use this file except in compliance with the License. 450 * You may obtain a copy of the License at 451 * 452 * http://www.apache.org/licenses/LICENSE-2.0 453 * 454 * Unless required by applicable law or agreed to in writing, softw
454are 455 * distributed under the License is distributed on an "AS IS" BASIS, 456 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 457 * See the License for the specific language governing permissions and 458 * limitations under the License. 459 */const F4="firebase-heartbeat-database",K4=1,Fo="firebase-heartbeat-store";let hh=null;function m1(){return hh||(hh=d4(F4,K4,{upgrade:(t,n)=>{switch(n){case 0:try{t.createObjectStore(Fo)}catch(a){console.warn(a)}}}}).catch(t=>{throw Ua.create("idb-open",{originalErrorMessage:t.message})})),hh}async function W4(t){try{const a=(await m1()).transaction(Fo),l=await a.objectStore(Fo).get(p1(t));return await a.done,l}catch(n){if(n instanceof Va)ra.warn(n.message);else{const a=Ua.create("idb-get",{originalErrorMessage:n==null?void 0:n.message});ra.warn(a.message)}}}async function V0(t,n){try{const l=(await m1()).transaction(Fo,"readwrite");await l.objectStore(Fo).put(n,p1(t)),await l.done}catch(a){if(a instanceof Va)ra.warn(a.message);else{const l=Ua.create("idb-set",{originalErrorMessage:a==null?void 0:a.message});ra.warn(l.message)}}}function p1(t){return`${t.name}!${t.options.appId}`}/** 460 * @license 461 * Copyright 2021 Google LLC 462 * 463 * Licensed under the Apache License, Version 2.0 (the "License"); 464 * you may not use this file except in compliance with the License. 465 * You may obtain a copy of the License at 466 * 467 * http://www.apache.org/licenses/LICENSE-2.0 468 * 469 * Unless required by applicable law or agreed to in writing, software 470 * distributed under the License is distributed on an "AS IS" BASIS, 471 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 472 * See the License for the specific language governing permissions and 473 * limitations under the License. 474 */const Q4=1024,Z4=30;class J4{constructor(n){this.container=n,this._heartbeatsCache=null;const a=this.container.getProvider("app").getImmediate();this._storage=new t5(a),this._heartbeatsCachePromise=this._storage.read().then(l=>(this._heartbeatsCache=l,l))}async triggerHeartbeat(){var n,a;try{const s=this.container.getProvider("platform-logger").getImmediate().getPlatformInfoString(),u=G0();if(((n=this._heartbeatsCache)===null||n===void 0?void 0:n.heartbeats)==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,((a=this._heartbeatsCache)===null||a===void 0?void 0:a.heartbeats)==null)||this._heartbeatsCache.lastSentHeartbeatDate===u||this._heartbeatsCache.heartbeats.some(f=>f.date===u))return;if(this._heartbeatsCache.heartbeats.push({date:u,agent:s}),this._heartbeatsCache.heartbeats.length>Z4){const f=n5(this._heartbeatsCache.heartbeats);this._heartbeatsCache.heartbeats.splice(f,1)}return this._storage.overwrite(this._heartbeatsCache)}catch(l){ra.warn(l)}}async getHeartbeatsHeader(){var n;try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,((n=this._heartbeatsCache)===null||n===void 0?void 0:n.heartbeats)==null||this._heartbeatsCache.heartbeats.length===0)return"";const a=G0(),{heartbeatsToSend:l,unsentEntries:s}=e5(this._heartbeatsCache.heartbeats),u=a1(JSON.stringify({version:2,heartbeats:l}));return this._heartbeatsCache.lastSentHeartbeatDate=a,s.length>0?(this._heartbeatsCache.heartbeats=s,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),u}catch(a){return ra.warn(a),""}}}function G0(){return new Date().toISOString().substring(0,10)}function e5(t,n=Q4){const a=[];let l=t.slice();for(const s of t){const u=a.find(f=>f.agent===s.agent);if(u){if(u.dates.push(s.date),$0(a)>n){u.dates.pop();break}}else if(a.push({agent:s.agent,dates:[s.date]}),$0(a)>n){a.pop();break}l=l.slice(1)}return{heartbeatsToSend:a,unsentEntries:l}}class t5{constructor(n){this.app=n,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return HA()?BA().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){const a=await W4(this.app);return a!=null&&a.heartbeats?a:{heartbeats:[]}}else return{heartbeats:[]}}async overwrite(n){var a;if(await this._canUseIndexedDBPromise){const s=await this.read();return V0(this.app,{lastSentHeartbeatDate:(a=n.lastSentHeartbeatDate)!==null&&a!==void 0?a:s.lastSentHeartbeatDate,heartbeats:n.heartbeats})}else return}async add(n){var a;if(await this._canUseIndexedDBPromise){const s=await this.read();return V0(this.app,{lastSentHeartbeatDate:(a=n.lastSentHeartbeatDate)!==null&&a!==void 0?a:s.lastSentHeartbeatDate,heartbeats:[...s.heartbeats,...n.heartbeats]})}else return}}function $0(t){return a1(JSON.stringify({version:2,heartbeats:t})).length}function n5(t){if(t.length===0)return-1;let n=0,a=t[0].date;for(let l=1;l<t.length;l++)t[l].date<a&&(a=t[l].date,n=l);return n}/** 475 * @license 476 * Copyright 2019 Google LLC 477 * 478 * Licensed under the Apache License, Version 2.0 (the "License");
479 * you may not use this file except in compliance with the License. 480 * You may obtain a copy of the License at 481 * 482 * http://www.apache.org/licenses/LICENSE-2.0 483 * 484 * Unless required by applicable law or agreed to in writing, software 485 * distributed under the License is distributed on an "AS IS" BASIS, 486 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 487 * See the License for the specific language governing permissions and 488 * limitations under the License. 489 */function r5(t){Xo(new Tl("platform-logger",n=>new m4(n),"PRIVATE")),Xo(new Tl("heartbeat",n=>new J4(n),"PRIVATE")),pl(Dh,B0,t),pl(Dh,B0,"esm2017"),pl("fire-js","")}r5("");function ym(t,n){var a={};for(var l in t)Object.prototype.hasOwnProperty.call(t,l)&&n.indexOf(l)<0&&(a[l]=t[l]);if(t!=null&&typeof Object.getOwnPropertySymbols=="function")for(var s=0,l=Object.getOwnPropertySymbols(t);s<l.length;s++)n.indexOf(l[s])<0&&Object.prototype.propertyIsEnumerable.call(t,l[s])&&(a[l[s]]=t[l[s]]);return a}function g1(){return{"dependent-sdk-initialized-before-auth":"Another Firebase SDK was initialized and is trying to use Auth before Auth is initialized. Please be sure to call `initializeAuth` or `getAuth` before starting any other Firebase SDK."}}const a5=g1,v1=new us("auth","Firebase",g1());/** 490 * @license 491 * Copyright 2020 Google LLC 492 * 493 * Licensed under the Apache License, Version 2.0 (the "License"); 494 * you may not use this file except in compliance with the License. 495 * You may obtain a copy of the License at 496 * 497 * http://www.apache.org/licenses/LICENSE-2.0 498 * 499 * Unless required by applicable law or agreed to in writing, software 500 * distributed under the License is distributed on an "AS IS" BASIS, 501 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 502 * See the License for the specific language governing permissions and 503 * limitations under the License. 504 */const lu=new c1("@firebase/auth");function i5(t,...n){lu.logLevel<=bt.WARN&&lu.warn(`Auth (${fs}): ${t}`,...n)}function kc(t,...n){lu.logLevel<=bt.ERROR&&lu.error(`Auth (${fs}): ${t}`,...n)}/** 505 * @license 506 * Copyright 2020 Google LLC 507 * 508 * Licensed under the Apache License, Version 2.0 (the "License"); 509 * you may not use this file except in compliance with the License. 510 * You may obtain a copy of the License at 511 * 512 * http://www.apache.org/licenses/LICENSE-2.0 513 * 514 * Unless required by applicable law or agreed to in writing, software 515 * distributed under the License is distributed on an "AS IS" BASIS, 516 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 517 * See the License for the specific language governing permissions and 518 * limitations under the License. 519 */function rr(t,...n){throw wm(t,...n)}function hr(t,...n){return wm(t,...n)}function bm(t,n,a){const l=Object.assign(Object.assign({},a5()),{[n]:a});return new us("auth","Firebase",l).create(n,{appName:t.name})}function na(t){return bm(t,"operation-not-supported-in-this-environment","Operations that alter the current user are not supported in conjunction with FirebaseServerApp")}function l5(t,n,a){const l=a;if(!(n instanceof l))throw l.name!==n.constructor.name&&rr(t,"argument-error"),bm(t,"argument-error",`Type of ${n.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}function wm(t,...n){if(typeof t!="string"){const a=n[0],l=[...n.slice(1)];return l[0]&&(l[0].appName=t.name),t._errorFactory.create(a,...l)}return v1.create(t,...n)}function Pe(t,n,...a){if(!t)throw wm(n,...a)}function Jr(t){const n="INTERNAL ASSERTION FAILED: "+t;throw kc(n),new Error(n)}function aa(t,n){t||Jr(n)}/** 520 * @license 521 * Copyright 2020 Google LLC 522 * 523 * Licensed under the Apache License, Version 2.0 (the "License"); 524 * you may not use this file except in compliance with the License. 525 * You may obtain a copy of the License at 526 * 527 * http://www.apache.org/licenses/LICENSE-2.0 528 * 529 * Unless required by applicable law or agreed to in writing, software 530 * distributed under the License is distributed on an "AS IS" BASIS, 531 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 532 * See the License for the specific language governing permissions and 533 * limitations under the License. 534 */function Lh(){var t;return typeof self<"u"&&((t=self.location)===null||t===void 0?void 0:t.href)||""}function o5(){return Y0()==="http:"||Y0()==="https:"}function Y0(){var t;return typeof self<"u"&&((t=self.location)===null||t===void 0?void 0:t.protocol)||null}/** 535 * @license 536 * Copyright 2020 Google LLC 537 * 538 * Licensed under the Apache License, Version 2.0 (the "License");
539 * you may not use this file except in compliance with the License. 540 * You may obtain a copy of the License at 541 * 542 * http://www.apache.org/licenses/LICENSE-2.0 543 * 544 * Unless required by applicable law or agreed to in writing, software 545 * distributed under the License is distributed on an "AS IS" BASIS, 546 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 547 * See the License for the specific language governing permissions and 548 * limitations under the License. 549 */function s5(){return typeof navigator<"u"&&navigator&&"onLine"in navigator&&typeof navigator.onLine=="boolean"&&(o5()||PA()||"connection"in navigator)?navigator.onLine:!0}function c5(){if(typeof navigator>"u")return null;const t=navigator;return t.languages&&t.languages[0]||t.language||null}/** 550 * @license 551 * Copyright 2020 Google LLC 552 * 553 * Licensed under the Apache License, Version 2.0 (the "License"); 554 * you may not use this file except in compliance with the License. 555 * You may obtain a copy of the License at 556 * 557 * http://www.apache.org/licenses/LICENSE-2.0 558 * 559 * Unless required by applicable law or agreed to in writing, software 560 * distributed under the License is distributed on an "AS IS" BASIS, 561 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 562 * See the License for the specific language governing permissions and 563 * limitations under the License. 564 */class hs{constructor(n,a){this.shortDelay=n,this.longDelay=a,aa(a>n,"Short delay should be less than long delay!"),this.isMobile=LA()||IA()}get(){return s5()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}}/** 565 * @license 566 * Copyright 2020 Google LLC 567 * 568 * Licensed under the Apache License, Version 2.0 (the "License"); 569 * you may not use this file except in compliance with the License. 570 * You may obtain a copy of the License at 571 * 572 * http://www.apache.org/licenses/LICENSE-2.0 573 * 574 * Unless required by applicable law or agreed to in writing, software 575 * distributed under the License is distributed on an "AS IS" BASIS, 576 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 577 * See the License for the specific language governing permissions and 578 * limitations under the License. 579 */function Sm(t,n){aa(t.emulator,"Emulator should always be set here");const{url:a}=t.emulator;return n?`${a}${n.startsWith("/")?n.slice(1):n}`:a}/** 580 * @license 581 * Copyright 2020 Google LLC 582 * 583 * Licensed under the Apache License, Version 2.0 (the "License"); 584 * you may not use this file except in compliance with the License. 585 * You may obtain a copy of the License at 586 * 587 * http://www.apache.org/licenses/LICENSE-2.0 588 * 589 * Unless required by applicable law or agreed to in writing, software 590 * distributed under the License is distributed on an "AS IS" BASIS, 591 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 592 * See the License for the specific language governing permissions and 593 * limitations under the License. 594 */class y1{static initialize(n,a,l){this.fetchImpl=n,a&&(this.headersImpl=a),l&&(this.responseImpl=l)}static fetch(){if(this.fetchImpl)return this.fetchImpl;if(typeof self<"u"&&"fetch"in self)return self.fetch;if(typeof globalThis<"u"&&globalThis.fetch)return globalThis.fetch;if(typeof fetch<"u")return fetch;Jr("Could not find fetch implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static headers(){if(this.headersImpl)return this.headersImpl;if(typeof self<"u"&&"Headers"in self)return self.Headers;if(typeof globalThis<"u"&&globalThis.Headers)return globalThis.Headers;if(typeof Headers<"u")return Headers;Jr("Could not find Headers implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}static response(){if(this.responseImpl)return this.responseImpl;if(typeof self<"u"&&"Response"in self)return self.Response;if(typeof globalThis<"u"&&globalThis.Response)return globalThis.Response;if(typeof Response<"u")return Response;Jr("Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill")}}/** 595 * @license 596 * Copyright 2020 Google LLC 597 * 598 * Licensed under the Apache License, Version 2.0 (the "License");
599 * you may not use this file except in compliance with the License. 600 * You may obtain a copy of the License at 601 * 602 * http://www.apache.org/licenses/LICENSE-2.0 603 * 604 * Unless required by applicable law or agreed to in writing, software 605 * distributed under the License is distributed on an "AS IS" BASIS, 606 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 607 * See the License for the specific language governing permissions and 608 * limitations under the License. 609 */const u5={CREDENTIAL_MISMATCH:"custom-token-mismatch",MISSING_CUSTOM_TOKEN:"internal-error",INVALID_IDENTIFIER:"invalid-email",MISSING_CONTINUE_URI:"internal-error",INVALID_PASSWORD:"wrong-password",MISSING_PASSWORD:"missing-password",INVALID_LOGIN_CREDENTIALS:"invalid-credential",EMAIL_EXISTS:"email-already-in-use",PASSWORD_LOGIN_DISABLED:"operation-not-allowed",INVALID_IDP_RESPONSE:"invalid-credential",INVALID_PENDING_TOKEN:"invalid-credential",FEDERATED_USER_ID_ALREADY_LINKED:"credential-already-in-use",MISSING_REQ_TYPE:"internal-error",EMAIL_NOT_FOUND:"user-not-found",RESET_PASSWORD_EXCEED_LIMIT:"too-many-requests",EXPIRED_OOB_CODE:"expired-action-code",INVALID_OOB_CODE:"invalid-action-code",MISSING_OOB_CODE:"internal-error",CREDENTIAL_TOO_OLD_LOGIN_AGAIN:"requires-recent-login",INVALID_ID_TOKEN:"invalid-user-token",TOKEN_EXPIRED:"user-token-expired",USER_NOT_FOUND:"user-token-expired",TOO_MANY_ATTEMPTS_TRY_LATER:"too-many-requests",PASSWORD_DOES_NOT_MEET_REQUIREMENTS:"password-does-not-meet-requirements",INVALID_CODE:"invalid-verification-code",INVALID_SESSION_INFO:"invalid-verification-id",INVALID_TEMPORARY_PROOF:"invalid-credential",MISSING_SESSION_INFO:"missing-verification-id",SESSION_EXPIRED:"code-expired",MISSING_ANDROID_PACKAGE_NAME:"missing-android-pkg-name",UNAUTHORIZED_DOMAIN:"unauthorized-continue-uri",INVALID_OAUTH_CLIENT_ID:"invalid-oauth-client-id",ADMIN_ONLY_OPERATION:"admin-restricted-operation",INVALID_MFA_PENDING_CREDENTIAL:"invalid-multi-factor-session",MFA_ENROLLMENT_NOT_FOUND:"multi-factor-info-not-found",MISSING_MFA_ENROLLMENT_ID:"missing-multi-factor-info",MISSING_MFA_PENDING_CREDENTIAL:"missing-multi-factor-session",SECOND_FACTOR_EXISTS:"second-factor-already-in-use",SECOND_FACTOR_LIMIT_EXCEEDED:"maximum-second-factor-count-exceeded",BLOCKING_FUNCTION_ERROR_RESPONSE:"internal-error",RECAPTCHA_NOT_ENABLED:"recaptcha-not-enabled",MISSING_RECAPTCHA_TOKEN:"missing-recaptcha-token",INVALID_RECAPTCHA_TOKEN:"invalid-recaptcha-token",INVALID_RECAPTCHA_ACTION:"invalid-recaptcha-action",MISSING_CLIENT_TYPE:"missing-client-type",MISSING_RECAPTCHA_VERSION:"missing-recaptcha-version",INVALID_RECAPTCHA_VERSION:"invalid-recaptcha-version",INVALID_REQ_TYPE:"invalid-req-type"};/** 610 * @license 611 * Copyright 2020 Google LLC 612 * 613 * Licensed under the Apache License, Version 2.0 (the "License"); 614 * you may not use this file except in compliance with the License. 615 * You may obtain a copy of the License at 616 * 617 * http://www.apache.org/licenses/LICENSE-2.0 618 * 619 * Unless required by applicable law or agreed to in writing, software 620 * distributed under the License is distributed on an "AS IS" BASIS, 621 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 622 * See the License for the specific language governing permissions and 623 * limitations under the License. 624 */const d5=["/v1/accounts:signInWithCustomToken","/v1/accounts:signInWithEmailLink","/v1/accounts:signInWithIdp","/v1/accounts:signInWithPassword","/v1/accounts:signInWithPhoneNumber","/v1/token"],f5=new hs(3e4,6e4);function Ga(t,n){return t.tenantId&&!n.tenantId?Object.assign(Object.assign({},n),{tenantId:t.tenantId}):n}async function la(t,n,a,l,s={}){return b1(t,s,async()=>{let u={},f={};l&&(n==="GET"?f=l:u={body:JSON.stringify(l)});const p=ds(Object.assign({key:t.config.apiKey},f)).slice(1),h=await t._getAdditionalHeaders();h["Content-Type"]="application/json",t.languageCode&&(h["X-Firebase-Locale"]=t.languageCode);const v=Object.assign({method:n,headers:h},u);return zA()||(v.referrerPolicy="no-referrer"),t.emulatorConfig&&gm(t.emulatorConfig.host)&&(v.credentials="include"),y1.fetch()(await w1(t,t.config.apiHost,a,p),v)})}async function b1(t,n,a){t._canInitEmulator=!1;const l=Object.assign(Object.assign({},u5),n);try{const s=new m5(t),u=await Promise.race([a(),s.promise]);s.clearNetworkTimeout();const f=await u.json();if("needConfirmation"in f)throw Nc(t,"account-exists-with-different-credential",f);if(u.ok&&!("errorMessage"in f))return f;{const p=u.ok?f.errorMessage:f.error.message,[h,v]=p.split(" : ");if(h==="FEDERATED_USER_ID_ALREADY_LINKED")throw Nc(t,"credential-already-in-use",f);if(h==="EMAIL_EXISTS")throw Nc(t,"email-already-in-use",f);if(h==="USER_DISABLED")throw Nc(t,"user-disabled",f);const w=l[h]||h.toLowerCase().replace(/[_\s]+/g,"-");if(v)throw bm(t,w,v);rr(t,w)}}catch(s){if(s instanceof Va)throw s;rr(t,"network-request-failed",{message:String(s)})}}async function ms(t,n,a,l,s={}){const u=await la(t,n,a,l,s);return"mfaPendingCredential"in u&&rr(t,"multi-factor-auth-required",{_serverResponse:u}),u}async function w1(t,n,a,l){const s=`${n}${a}?${l}`,u=t,f=u.config.emulator?Sm(t.config,s):`${t.config.apiScheme}://${s}`;return d5.includes(a)&&(await u._persistenceManagerAvailable,u._getPersistenceType()==="COOKIE")?u._getPersistence()._getFinalTarget(f).toString():f}function h5(t){switch(t){case"ENFORCE":return"ENFORCE";case"AUDIT":return"AUDIT";case"OFF":return"OFF";default:return"ENFORCEMENT_STATE_UNSPECIFIED"}}class m5{clearNetworkTimeout(){clearTimeout(this.timer)}constructor(n){this.auth=n,this.timer=null,this.promise=new Promise((a,l)=>{this.timer=setTimeout(()=>l(hr(this.auth,"network-request-failed")),f5.get())})}}function Nc(t,n,a){const l={appName:t.name};a.email&&(l.email=a.email),a.phoneNumber&&(l.phoneNumber=a.phoneNumber);const s=hr(t,n,l);return s.customData._tokenResponse=a,s}function X0(t){return t!==void 0&&t.enterprise!==void 0}class p5{constructor(n){if(this.siteKey="",this.recaptchaEnforcementState=[],n.recaptchaKey===void 0)throw new Error("recaptchaKey undefined");this.siteKey=n.recaptchaKey.split("/")[3],this.recaptchaEnforcementState=n.recaptchaEnforcementState}getProviderEnforcementState(n){if(!this.recaptchaEnforcementState||this.recaptchaEnforcementState.length===0)return null;for(const a of this.recaptchaEnforcementState)if(a.provider&&a.provider===n)return h5(a.enforcementState);return null}isProviderEnabled(n){return this.getProviderEnforcementState(n)==="ENFORCE"||this.getProviderEnforcementState(n)==="AUDIT"}isAnyProviderEnabled(){return this.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")||this.isProviderEnabled("PHONE_PRO
624VIDER")}}async function g5(t,n){return la(t,"GET","/v2/recaptchaConfig",Ga(t,n))}/** 625 * @license 626 * Copyright 2020 Google LLC 627 * 628 * Licensed under the Apache License, Version 2.0 (the "License"); 629 * you may not use this file except in compliance with the License. 630 * You may obtain a copy of the License at 631 * 632 * http://www.apache.org/licenses/LICENSE-2.0 633 * 634 * Unless required by applicable law or agreed to in writing, software 635 * distributed under the License is distributed on an "AS IS" BASIS, 636 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 637 * See the License for the specific language governing permissions and 638 * limitations under the License. 639 */async function v5(t,n){return la(t,"POST","/v1/accounts:delete",n)}async function ou(t,n){return la(t,"POST","/v1/accounts:lookup",n)}/** 640 * @license 641 * Copyright 2020 Google LLC 642 * 643 * Licensed under the Apache License, Version 2.0 (the "License"); 644 * you may not use this file except in compliance with the License. 645 * You may obtain a copy of the License at 646 * 647 * http://www.apache.org/licenses/LICENSE-2.0 648 * 649 * Unless required by applicable law or agreed to in writing, software 650 * distributed under the License is distributed on an "AS IS" BASIS, 651 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 652 * See the License for the specific language governing permissions and 653 * limitations under the License. 654 */function Vo(t){if(t)try{const n=new Date(Number(t));if(!isNaN(n.getTime()))return n.toUTCString()}catch{}}async function y5(t,n=!1){const a=Lr(t),l=await a.getIdToken(n),s=xm(l);Pe(s&&s.exp&&s.auth_time&&s.iat,a.auth,"internal-error");const u=typeof s.firebase=="object"?s.firebase:void 0,f=u==null?void 0:u.sign_in_provider;return{claims:s,token:l,authTime:Vo(mh(s.auth_time)),issuedAtTime:Vo(mh(s.iat)),expirationTime:Vo(mh(s.exp)),signInProvider:f||null,signInSecondFactor:(u==null?void 0:u.sign_in_second_factor)||null}}function mh(t){return Number(t)*1e3}function xm(t){const[n,a,l]=t.split(".");if(n===void 0||a===void 0||l===void 0)return kc("JWT malformed, contained fewer than 3 sections"),null;try{const s=i1(a);return s?JSON.parse(s):(kc("Failed to decode base64 JWT payload"),null)}catch(s){return kc("Caught error parsing JWT payload as JSON",s==null?void 0:s.toString()),null}}function F0(t){const n=xm(t);return Pe(n,"internal-error"),Pe(typeof n.exp<"u","internal-error"),Pe(typeof n.iat<"u","internal-error"),Number(n.exp)-Number(n.iat)}/** 655 * @license 656 * Copyright 2020 Google LLC 657 * 658 * Licensed under the Apache License, Version 2.0 (the "License"); 659 * you may not use this file except in compliance with the License. 660 * You may obtain a copy of the License at 661 * 662 * http://www.apache.org/licenses/LICENSE-2.0 663 * 664 * Unless required by applicable law or agreed to in writing, software 665 * distributed under the License is distributed on an "AS IS" BASIS, 666 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 667 * See the License for the specific language governing permissions and 668 * limitations under the License. 669 */async function Cl(t,n,a=!1){if(a)return n;try{return await n}catch(l){throw l instanceof Va&&b5(l)&&t.auth.currentUser===t&&await t.auth.signOut(),l}}function b5({code:t}){return t==="auth/user-disabled"||t==="auth/user-token-expired"}/** 670 * @license 671 * Copyright 2020 Google LLC 672 * 673 * Licensed under the Apache License, Version 2.0 (the "License"); 674 * you may not use this file except in compliance with the License. 675 * You may obtain a copy of the License at 676 * 677 * http://www.apache.org/licenses/LICENSE-2.0 678 * 679 * Unless required by applicable law or agreed to in writing, software 680 * distributed under the License is distributed on an "AS IS" BASIS, 681 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 682 * See the License for the specific language governing permissions and 683 * limitations under the License. 684 */class w5{constructor(n){this.user=n,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(n){var a;if(n){const l=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),l}else{this.errorBackoff=3e4;const s=((a=this.user.stsTokenManager.expirationTime)!==null&&a!==void 0?a:0)-Date.now()-3e5;return Math.max(0,s)}}schedule(n=!1){if(!this.isRunning)return;const a=this.getInterval(n);this.timerId=setTimeout(async()=>{await this.iteration()},a)}async iteration(){try{await this.user.getIdToken(!0)}catch(n){(n==null?void 0:n.code)==="auth/network-request-failed"&&this.schedule(!0);return}this.schedule()}}/** 685 * @license 686 * Copyright 2020 Google LLC 687 * 688 * Licensed under the Apache License, Version 2.0 (the "License");
689 * you may not use this file except in compliance with the License. 690 * You may obtain a copy of the License at 691 * 692 * http://www.apache.org/licenses/LICENSE-2.0 693 * 694 * Unless required by applicable law or agreed to in writing, software 695 * distributed under the License is distributed on an "AS IS" BASIS, 696 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 697 * See the License for the specific language governing permissions and 698 * limitations under the License. 699 */class zh{constructor(n,a){this.createdAt=n,this.lastLoginAt=a,this._initializeTime()}_initializeTime(){this.lastSignInTime=Vo(this.lastLoginAt),this.creationTime=Vo(this.createdAt)}_copy(n){this.createdAt=n.createdAt,this.lastLoginAt=n.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}}/** 700 * @license 701 * Copyright 2019 Google LLC 702 * 703 * Licensed under the Apache License, Version 2.0 (the "License"); 704 * you may not use this file except in compliance with the License. 705 * You may obtain a copy of the License at 706 * 707 * http://www.apache.org/licenses/LICENSE-2.0 708 * 709 * Unless required by applicable law or agreed to in writing, software 710 * distributed under the License is distributed on an "AS IS" BASIS, 711 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 712 * See the License for the specific language governing permissions and 713 * limitations under the License. 714 */async function su(t){var n;const a=t.auth,l=await t.getIdToken(),s=await Cl(t,ou(a,{idToken:l}));Pe(s==null?void 0:s.users.length,a,"internal-error");const u=s.users[0];t._notifyReloadListener(u);const f=!((n=u.providerUserInfo)===null||n===void 0)&&n.length?S1(u.providerUserInfo):[],p=x5(t.providerData,f),h=t.isAnonymous,v=!(t.email&&u.passwordHash)&&!(p!=null&&p.length),w=h?v:!1,C={uid:u.localId,displayName:u.displayName||null,photoURL:u.photoUrl||null,email:u.email||null,emailVerified:u.emailVerified||!1,phoneNumber:u.phoneNumber||null,tenantId:u.tenantId||null,providerData:p,metadata:new zh(u.createdAt,u.lastLoginAt),isAnonymous:w};Object.assign(t,C)}async function S5(t){const n=Lr(t);await su(n),await n.auth._persistUserIfCurrent(n),n.auth._notifyListenersIfCurrent(n)}function x5(t,n){return[...t.filter(l=>!n.some(s=>s.providerId===l.providerId)),...n]}function S1(t){return t.map(n=>{var{providerId:a}=n,l=ym(n,["providerId"]);return{providerId:a,uid:l.rawId||"",displayName:l.displayName||null,email:l.email||null,phoneNumber:l.phoneNumber||null,photoURL:l.photoUrl||null}})}/** 715 * @license 716 * Copyright 2020 Google LLC 717 * 718 * Licensed under the Apache License, Version 2.0 (the "License"); 719 * you may not use this file except in compliance with the License. 720 * You may obtain a copy of the License at 721 * 722 * http://www.apache.org/licenses/LICENSE-2.0 723 * 724 * Unless required by applicable law or agreed to in writing, software 725 * distributed under the License is distributed on an "AS IS" BASIS, 726 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 727 * See the License for the specific language governing permissions and 728 * limitations under the License. 729 */async function E5(t,n){const a=await b1(t,{},async()=>{const l=ds({grant_type:"refresh_token",refresh_token:n}).slice(1),{tokenApiHost:s,apiKey:u}=t.config,f=await w1(t,s,"/v1/token",`key=${u}`),p=await t._getAdditionalHeaders();return p["Content-Type"]="application/x-www-form-urlencoded",y1.fetch()(f,{method:"POST",headers:p,body:l})});return{accessToken:a.access_token,expiresIn:a.expires_in,refreshToken:a.refresh_token}}async function _5(t,n){return la(t,"POST","/v2/accounts:revokeToken",Ga(t,n))}/** 730 * @license 731 * Copyright 2020 Google LLC 732 * 733 * Licensed under the Apache License, Version 2.0 (the "License"); 734 * you may not use this file except in compliance with the License. 735 * You may obtain a copy of the License at 736 * 737 * http://www.apache.org/licenses/LICENSE-2.0 738 * 739 * Unless required by applicable law or agreed to in writing, software 740 * distributed under the License is distributed on an "AS IS" BASIS, 741 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 742 * See the License for the specific language governing permissions and 743 * limitations under the License. 744 */class gl{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(n){Pe(n.idToken,"internal-error"),Pe(typeof n.idToken<"u","internal-error"),Pe(typeof n.refreshToken<"u","internal-error");const a="expiresIn"in n&&typeof n.expiresIn<"u"?Number(n.expiresIn):F0(n.idToken);this.updateTokensAndExpiration(n.idToken,n.refreshToken,a)}updateFromIdToken(n){Pe(n.length!==0,"internal-error");const a=F0(n);this.updateTokensAndExpiration(n,null,a)}async getToken(n,a=!1){return!a&&this.accessToken&&!this.isExpired?this.accessToken:(Pe(this.refreshToken,n,"user-token-expired"),this.refreshToken?(await this.refresh(n,this.refreshToken),this.accessToken):null)}clearRefreshToken(){this.refreshToken=null}async refresh(n,a){const{accessToken:l,refreshToken:s,expiresIn:u}=await E5(n,a);this.updateTokensAndExpiration(l,s,Number(u))}updateTokensAndExpiration(n,a,l){this.refreshToken=a||null,this.accessToken=n||null,this.expirationTime=Date.now()+l*1e3}static fromJSON(n,a){const{refreshToken:l,accessToken:s,expirationTime:u}=a,f=new gl;return l&&(Pe(typeof l=="string","internal-error",{appName:n}),f.refreshToken=l),s&&(Pe(typeof s=="string","internal-error",{appName:n}),f.accessToken=s),u&&(Pe(typeof u=="number","internal-error",{appName:n}),f.expirationTime=u),f}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(n){this.accessToken=n.accessToken,this.refreshToken=n.refreshToken,this.expirationTime=n.expirationTime}_clone(){return Object.assign(new gl,this.toJSON())}_performRefresh(){return Jr("not implemented")}}/** 745 * @license 746 * Copyright 2020 Google LLC 747 * 748 * Licensed under the Apache License, Version 2.0 (the "License");
749 * you may not use this file except in compliance with the License. 750 * You may obtain a copy of the License at 751 * 752 * http://www.apache.org/licenses/LICENSE-2.0 753 * 754 * Unless required by applicable law or agreed to in writing, software 755 * distributed under the License is distributed on an "AS IS" BASIS, 756 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 757 * See the License for the specific language governing permissions and 758 * limitations under the License. 759 */function Na(t,n){Pe(typeof t=="string"||typeof t>"u","internal-error",{appName:n})}class fr{constructor(n){var{uid:a,auth:l,stsTokenManager:s}=n,u=ym(n,["uid","auth","stsTokenManager"]);this.providerId="firebase",this.proactiveRefresh=new w5(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=a,this.auth=l,this.stsTokenManager=s,this.accessToken=s.accessToken,this.displayName=u.displayName||null,this.email=u.email||null,this.emailVerified=u.emailVerified||!1,this.phoneNumber=u.phoneNumber||null,this.photoURL=u.photoURL||null,this.isAnonymous=u.isAnonymous||!1,this.tenantId=u.tenantId||null,this.providerData=u.providerData?[...u.providerData]:[],this.metadata=new zh(u.createdAt||void 0,u.lastLoginAt||void 0)}async getIdToken(n){const a=await Cl(this,this.stsTokenManager.getToken(this.auth,n));return Pe(a,this.auth,"internal-error"),this.accessToken!==a&&(this.accessToken=a,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),a}getIdTokenResult(n){return y5(this,n)}reload(){return S5(this)}_assign(n){this!==n&&(Pe(this.uid===n.uid,this.auth,"internal-error"),this.displayName=n.displayName,this.photoURL=n.photoURL,this.email=n.email,this.emailVerified=n.emailVerified,this.phoneNumber=n.phoneNumber,this.isAnonymous=n.isAnonymous,this.tenantId=n.tenantId,this.providerData=n.providerData.map(a=>Object.assign({},a)),this.metadata._copy(n.metadata),this.stsTokenManager._assign(n.stsTokenManager))}_clone(n){const a=new fr(Object.assign(Object.assign({},this),{auth:n,stsTokenManager:this.stsTokenManager._clone()}));return a.metadata._copy(this.metadata),a}_onReload(n){Pe(!this.reloadListener,this.auth,"internal-error"),this.reloadListener=n,this.reloadUserInfo&&(this._notifyReloadListener(this.reloadUserInfo),this.reloadUserInfo=null)}_notifyReloadListener(n){this.reloadListener?this.reloadListener(n):this.reloadUserInfo=n}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(n,a=!1){let l=!1;n.idToken&&n.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(n),l=!0),a&&await su(this),await this.auth._persistUserIfCurrent(this),l&&this.auth._notifyListenersIfCurrent(this)}async delete(){if(er(this.auth.app))return Promise.reject(na(this.auth));const n=await this.getIdToken();return await Cl(this,v5(this.auth,{idToken:n})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(n=>Object.assign({},n)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||""}static _fromJSON(n,a){var l,s,u,f,p,h,v,w;const C=(l=a.displayName)!==null&&l!==void 0?l:void 0,_=(s=a.email)!==null&&s!==void 0?s:void 0,A=(u=a.phoneNumber)!==null&&u!==void 0?u:void 0,j=(f=a.photoURL)!==null&&f!==void 0?f:void 0,I=(p=a.tenantId)!==null&&p!==void 0?p:void 0,Z=(h=a._redirectEventId)!==null&&h!==void 0?h:void 0,V=(v=a.createdAt)!==null&&v!==void 0?v:void 0,ee=(w=a.lastLoginAt)!==null&&w!==void 0?w:void 0,{uid:ae,emailVerified:he,isAnonymous:O,providerData:E,stsTokenManager:P}=a;Pe(ae&&P,n,"internal-error");const re=gl.fromJSON(this.name,P);Pe(typeof ae=="string",n,"internal-error"),Na(C,n.name),Na(_,n.name),Pe(typeof he=="boolean",n,"internal-error"),Pe(typeof O=="boolean",n,"internal-error"),Na(A,n.name),Na(j,n.name),Na(I,n.name),Na(Z,n.name),Na(V,n.name),Na(ee,n.name);const N=new fr({uid:ae,auth:n,email:_,emailVerified:he,displayName:C,isAnonymous:O,photoURL:j,phoneNumber:A,tenantId:I,stsTokenManager:re,createdAt:V,lastLoginAt:ee});return E&&Array.isArray(E)&&(N.providerData=E.map(T=>Object.assign({},T))),Z&&(N._redirectEventId=Z),N}static async _fromIdTokenResponse(n,a,l=!1){const s=new gl;
759s.updateFromServerResponse(a);const u=new fr({uid:a.localId,auth:n,stsTokenManager:s,isAnonymous:l});return await su(u),u}static async _fromGetAccountInfoResponse(n,a,l){const s=a.users[0];Pe(s.localId!==void 0,"internal-error");const u=s.providerUserInfo!==void 0?S1(s.providerUserInfo):[],f=!(s.email&&s.passwordHash)&&!(u!=null&&u.length),p=new gl;p.updateFromIdToken(l);const h=new fr({uid:s.localId,auth:n,stsTokenManager:p,isAnonymous:f}),v={uid:s.localId,displayName:s.displayName||null,photoURL:s.photoUrl||null,email:s.email||null,emailVerified:s.emailVerified||!1,phoneNumber:s.phoneNumber||null,tenantId:s.tenantId||null,providerData:u,metadata:new zh(s.createdAt,s.lastLoginAt),isAnonymous:!(s.email&&s.passwordHash)&&!(u!=null&&u.length)};return Object.assign(h,v),h}}/** 760 * @license 761 * Copyright 2020 Google LLC 762 * 763 * Licensed under the Apache License, Version 2.0 (the "License"); 764 * you may not use this file except in compliance with the License. 765 * You may obtain a copy of the License at 766 * 767 * http://www.apache.org/licenses/LICENSE-2.0 768 * 769 * Unless required by applicable law or agreed to in writing, software 770 * distributed under the License is distributed on an "AS IS" BASIS, 771 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 772 * See the License for the specific language governing permissions and 773 * limitations under the License. 774 */const K0=new Map;function ea(t){aa(t instanceof Function,"Expected a class definition");let n=K0.get(t);return n?(aa(n instanceof t,"Instance stored in cache mismatched with class"),n):(n=new t,K0.set(t,n),n)}/** 775 * @license 776 * Copyright 2019 Google LLC 777 * 778 * Licensed under the Apache License, Version 2.0 (the "License"); 779 * you may not use this file except in compliance with the License. 780 * You may obtain a copy of the License at 781 * 782 * http://www.apache.org/licenses/LICENSE-2.0 783 * 784 * Unless required by applicable law or agreed to in writing, software 785 * distributed under the License is distributed on an "AS IS" BASIS, 786 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 787 * See the License for the specific language governing permissions and 788 * limitations under the License. 789 */class x1{constructor(){this.type="NONE",this.storage={}}async _isAvailable(){return!0}async _set(n,a){this.storage[n]=a}async _get(n){const a=this.storage[n];return a===void 0?null:a}async _remove(n){delete this.storage[n]}_addListener(n,a){}_removeListener(n,a){}}x1.type="NONE";const W0=x1;/** 790 * @license 791 * Copyright 2019 Google LLC 792 * 793 * Licensed under the Apache License, Version 2.0 (the "License"); 794 * you may not use this file except in compliance with the License. 795 * You may obtain a copy of the License at 796 * 797 * http://www.apache.org/licenses/LICENSE-2.0 798 * 799 * Unless required by applicable law or agreed to in writing, software 800 * distributed under the License is distributed on an "AS IS" BASIS, 801 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 802 * See the License for the specific language governing permissions and 803 * limitations under the License. 804 */function Lc(t,n,a){return`firebase:${t}:${n}:${a}`}class vl{constructor(n,a,l){this.persistence=n,this.auth=a,this.userKey=l;const{config:s,name:u}=this.auth;this.fullUserKey=Lc(this.userKey,s.apiKey,u),this.fullPersistenceKey=Lc("persistence",s.apiKey,u),this.boundEventHandler=a._onStorageEvent.bind(a),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(n){return this.persistence._set(this.fullUserKey,n.toJSON())}async getCurrentUser(){const n=await this.persistence._get(this.fullUserKey);if(!n)return null;if(typeof n=="string"){const a=await ou(this.auth,{idToken:n}).catch(()=>{});return a?fr._fromGetAccountInfoResponse(this.auth,a,n):null}return fr._fromJSON(this.auth,n)}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(n){if(this.persistence===n)return;const a=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=n,a)return this.setCurrentUser(a)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(n,a,l="authUser"){if(!a.length)return new vl(ea(W0),n,l);const s=(await Promise.all(a.map(async v=>{if(await v._isAvailable())return v}))).filter(v=>v);let u=s[0]||ea(W0);const f=Lc(l,n.config.apiKey,n.name);let p=null;for(const v of a)try{const w=await v._get(f);if(w){let C;if(typeof w=="string"){const _=await ou(n,{idToken:w}).catch(()=>{});if(!_)break;C=await fr._fromGetAccountInfoResponse(n,_,w)}else C=fr._fromJSON(n,w);v!==u&&(p=C),u=v;break}}catch{}const h=s.filter(v=>v._shouldAllowMigration);return!u._shouldAllowMigration||!h.length?new vl(u,n,l):(u=h[0],p&&await u._set(f,p.toJSON()),await Promise.all(a.map(async v=>{if(v!==u)try{await v._remove(f)}catch{}})),new vl(u,n,l))}}/** 805 * @license 806 * Copyright 2020 Google LLC 807 * 808 * Licensed under the Apache License, Version 2.0 (the "License");
809 * you may not use this file except in compliance with the License. 810 * You may obtain a copy of the License at 811 * 812 * http://www.apache.org/licenses/LICENSE-2.0 813 * 814 * Unless required by applicable law or agreed to in writing, software 815 * distributed under the License is distributed on an "AS IS" BASIS, 816 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 817 * See the License for the specific language governing permissions and 818 * limitations under the License. 819 */function Q0(t){const n=t.toLowerCase();if(n.includes("opera/")||n.includes("opr/")||n.includes("opios/"))return"Opera";if(C1(n))return"IEMobile";if(n.includes("msie")||n.includes("trident/"))return"IE";if(n.includes("edge/"))return"Edge";if(E1(n))return"Firefox";if(n.includes("silk/"))return"Silk";if(A1(n))return"Blackberry";if(R1(n))return"Webos";if(_1(n))return"Safari";if((n.includes("chrome/")||T1(n))&&!n.includes("edge/"))return"Chrome";if(O1(n))return"Android";{const a=/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/,l=t.match(a);if((l==null?void 0:l.length)===2)return l[1]}return"Other"}function E1(t=hn()){return/firefox\//i.test(t)}function _1(t=hn()){const n=t.toLowerCase();return n.includes("safari/")&&!n.includes("chrome/")&&!n.includes("crios/")&&!n.includes("android")}function T1(t=hn()){return/crios\//i.test(t)}function C1(t=hn()){return/iemobile/i.test(t)}function O1(t=hn()){return/android/i.test(t)}function A1(t=hn()){return/blackberry/i.test(t)}function R1(t=hn()){return/webos/i.test(t)}function Em(t=hn()){return/iphone|ipad|ipod/i.test(t)||/macintosh/i.test(t)&&/mobile/i.test(t)}function T5(t=hn()){var n;return Em(t)&&!!(!((n=window.navigator)===null||n===void 0)&&n.standalone)}function C5(){return UA()&&document.documentMode===10}function N1(t=hn()){return Em(t)||O1(t)||R1(t)||A1(t)||/windows phone/i.test(t)||C1(t)}/** 820 * @license 821 * Copyright 2020 Google LLC 822 * 823 * Licensed under the Apache License, Version 2.0 (the "License"); 824 * you may not use this file except in compliance with the License. 825 * You may obtain a copy of the License at 826 * 827 * http://www.apache.org/licenses/LICENSE-2.0 828 * 829 * Unless required by applicable law or agreed to in writing, software 830 * distributed under the License is distributed on an "AS IS" BASIS, 831 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 832 * See the License for the specific language governing permissions and 833 * limitations under the License. 834 */function M1(t,n=[]){let a;switch(t){case"Browser":a=Q0(hn());break;case"Worker":a=`${Q0(hn())}-${t}`;break;default:a=t}const l=n.length?n.join(","):"FirebaseCore-web";return`${a}/JsCore/${fs}/${l}`}/** 835 * @license 836 * Copyright 2022 Google LLC 837 * 838 * Licensed under the Apache License, Version 2.0 (the "License"); 839 * you may not use this file except in compliance with the License. 840 * You may obtain a copy of the License at 841 * 842 * http://www.apache.org/licenses/LICENSE-2.0 843 * 844 * Unless required by applicable law or agreed to in writing, software 845 * distributed under the License is distributed on an "AS IS" BASIS, 846 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 847 * See the License for the specific language governing permissions and 848 * limitations under the License. 849 */class O5{constructor(n){this.auth=n,this.queue=[]}pushCallback(n,a){const l=u=>new Promise((f,p)=>{try{const h=n(u);f(h)}catch(h){p(h)}});l.onAbort=a,this.queue.push(l);const s=this.queue.length-1;return()=>{this.queue[s]=()=>Promise.resolve()}}async runMiddleware(n){if(this.auth.currentUser===n)return;const a=[];try{for(const l of this.queue)await l(n),l.onAbort&&a.push(l.onAbort)}catch(l){a.reverse();for(const s of a)try{s()}catch{}throw this.auth._errorFactory.create("login-blocked",{originalMessage:l==null?void 0:l.message})}}}/** 850 * @license 851 * Copyright 2023 Google LLC 852 * 853 * Licensed under the Apache License, Version 2.0 (the "License"); 854 * you may not use this file except in compliance with the License. 855 * You may obtain a copy of the License at 856 * 857 * http://www.apache.org/licenses/LICENSE-2.0 858 * 859 * Unless required by applicable law or agreed to in writing, softw
859are 860 * distributed under the License is distributed on an "AS IS" BASIS, 861 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 862 * See the License for the specific language governing permissions and 863 * limitations under the License. 864 */async function A5(t,n={}){return la(t,"GET","/v2/passwordPolicy",Ga(t,n))}/** 865 * @license 866 * Copyright 2023 Google LLC 867 * 868 * Licensed under the Apache License, Version 2.0 (the "License"); 869 * you may not use this file except in compliance with the License. 870 * You may obtain a copy of the License at 871 * 872 * http://www.apache.org/licenses/LICENSE-2.0 873 * 874 * Unless required by applicable law or agreed to in writing, software 875 * distributed under the License is distributed on an "AS IS" BASIS, 876 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 877 * See the License for the specific language governing permissions and 878 * limitations under the License. 879 */const R5=6;class N5{constructor(n){var a,l,s,u;const f=n.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=(a=f.minPasswordLength)!==null&&a!==void 0?a:R5,f.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=f.maxPasswordLength),f.containsLowercaseCharacter!==void 0&&(this.customStrengthOptions.containsLowercaseLetter=f.containsLowercaseCharacter),f.containsUppercaseCharacter!==void 0&&(this.customStrengthOptions.containsUppercaseLetter=f.containsUppercaseCharacter),f.containsNumericCharacter!==void 0&&(this.customStrengthOptions.containsNumericCharacter=f.containsNumericCharacter),f.containsNonAlphanumericCharacter!==void 0&&(this.customStrengthOptions.containsNonAlphanumericCharacter=f.containsNonAlphanumericCharacter),this.enforcementState=n.enforcementState,this.enforcementState==="ENFORCEMENT_STATE_UNSPECIFIED"&&(this.enforcementState="OFF"),this.allowedNonAlphanumericCharacters=(s=(l=n.allowedNonAlphanumericCharacters)===null||l===void 0?void 0:l.join(""))!==null&&s!==void 0?s:"",this.forceUpgradeOnSignin=(u=n.forceUpgradeOnSignin)!==null&&u!==void 0?u:!1,this.schemaVersion=n.schemaVersion}validatePassword(n){var a,l,s,u,f,p;const h={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(n,h),this.validatePasswordCharacterOptions(n,h),h.isValid&&(h.isValid=(a=h.meetsMinPasswordLength)!==null&&a!==void 0?a:!0),h.isValid&&(h.isValid=(l=h.meetsMaxPasswordLength)!==null&&l!==void 0?l:!0),h.isValid&&(h.isValid=(s=h.containsLowercaseLetter)!==null&&s!==void 0?s:!0),h.isValid&&(h.isValid=(u=h.containsUppercaseLetter)!==null&&u!==void 0?u:!0),h.isValid&&(h.isValid=(f=h.containsNumericCharacter)!==null&&f!==void 0?f:!0),h.isValid&&(h.isValid=(p=h.containsNonAlphanumericCharacter)!==null&&p!==void 0?p:!0),h}validatePasswordLengthOptions(n,a){const l=this.customStrengthOptions.minPasswordLength,s=this.customStrengthOptions.maxPasswordLength;l&&(a.meetsMinPasswordLength=n.length>=l),s&&(a.meetsMaxPasswordLength=n.length<=s)}validatePasswordCharacterOptions(n,a){this.updatePasswordCharacterOptionsStatuses(a,!1,!1,!1,!1);let l;for(let s=0;s<n.length;s++)l=n.charAt(s),this.updatePasswordCharacterOptionsStatuses(a,l>="a"&&l<="z",l>="A"&&l<="Z",l>="0"&&l<="9",this.allowedNonAlphanumericCharacters.includes(l))}updatePasswordCharacterOptionsStatuses(n,a,l,s,u){this.customStrengthOptions.containsLowercaseLetter&&(n.containsLowercaseLetter||(n.containsLowercaseLetter=a)),this.customStrengthOptions.containsUppercaseLetter&&(n.containsUppercaseLetter||(n.containsUppercaseLetter=l)),this.customStrengthOptions.containsNumericCharacter&&(n.containsNumericCharacter||(n.containsNumericCharacter=s)),this.customStrengthOptions.containsNonAlphanumericCharacter&&(n.containsNonAlphanumericCharacter||(n.containsNonAlphanumericCharacter=u))}}/** 880 * @license 881 * Copyright 2020 Google LLC 882 * 883 * Licensed under the Apache License, Version 2.0 (the "License"); 884 * you may not use this file except in compliance with the License. 885 * You may obtain a copy of the License at 886 * 887 * http://www.apache.org/licenses/LICENSE-2.0 888 * 889 * Unless required by applicable law or agreed to in writing, softw
889are 890 * distributed under the License is distributed on an "AS IS" BASIS, 891 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 892 * See the License for the specific language governing permissions and 893 * limitations under the License. 894 */class M5{constructor(n,a,l,s){this.app=n,this.heartbeatServiceProvider=a,this.appCheckServiceProvider=l,this.config=s,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new Z0(this),this.idTokenSubscription=new Z0(this),this.beforeStateQueue=new O5(this),this.redirectUser=null,this.isProactiveRefreshEnabled=!1,this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION=1,this._canInitEmulator=!0,this._isInitialized=!1,this._deleted=!1,this._initializationPromise=null,this._popupRedirectResolver=null,this._errorFactory=v1,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this._resolvePersistenceManagerAvailable=void 0,this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=n.name,this.clientVersion=s.sdkClientVersion,this._persistenceManagerAvailable=new Promise(u=>this._resolvePersistenceManagerAvailable=u)}_initializeWithPersistence(n,a){return a&&(this._popupRedirectResolver=ea(a)),this._initializationPromise=this.queue(async()=>{var l,s,u;if(!this._deleted&&(this.persistenceManager=await vl.create(this,n),(l=this._resolvePersistenceManagerAvailable)===null||l===void 0||l.call(this),!this._deleted)){if(!((s=this._popupRedirectResolver)===null||s===void 0)&&s._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch{}await this.initializeCurrentUser(a),this.lastNotifiedUid=((u=this.currentUser)===null||u===void 0?void 0:u.uid)||null,!this._deleted&&(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;const n=await this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!n)){if(this.currentUser&&n&&this.currentUser.uid===n.uid){this._currentUser._assign(n),await this.currentUser.getIdToken();return}await this._updateCurrentUser(n,!0)}}async initializeCurrentUserFromIdToken(n){try{const a=await ou(this,{idToken:n}),l=await fr._fromGetAccountInfoResponse(this,a,n);await this.directlySetCurrentUser(l)}catch(a){console.warn("FirebaseServerApp could not login user with provided authIdToken: ",a),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(n){var a;if(er(this.app)){const f=this.app.settings.authIdToken;return f?new Promise(p=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(f).then(p,p))}):this.directlySetCurrentUser(null)}const l=await this.assertedPersistence.getCurrentUser();let s=l,u=!1;if(n&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();const f=(a=this.redirectUser)===null||a===void 0?void 0:a._redirectEventId,p=s==null?void 0:s._redirectEventId,h=await this.tryRedirectSignIn(n);(!f||f===p)&&(h!=null&&h.user)&&(s=h.user,u=!0)}if(!s)return this.directlySetCurrentUser(null);if(!s._redirectEventId){if(u)try{await this.beforeStateQueue.runMiddleware(s)}catch(f){s=l,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(f))}return s?this.reloadAndSetCurrentUserOrClear(s):this.directlySetCurrentUser(null)}return Pe(this._popupRedirectResolver,this,"argument-error"),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===s._redirectEventId?this.directlySetCurrentUser(s):this.reloadAndSetCurrentUserOrClear(s)}async tryRedirectSignIn(n){let a=null;try{a=await this._popupRedirectResolver._completeRedirectFn(this,n,!0)}catch{await this._setRedirectUser(null)}return a}
894async reloadAndSetCurrentUserOrClear(n){try{await su(n)}catch(a){if((a==null?void 0:a.code)!=="auth/network-request-failed")return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(n)}useDeviceLanguage(){this.languageCode=c5()}async _delete(){this._deleted=!0}async updateCurrentUser(n){if(er(this.app))return Promise.reject(na(this));const a=n?Lr(n):null;return a&&Pe(a.auth.config.apiKey===this.config.apiKey,this,"invalid-user-token"),this._updateCurrentUser(a&&a._clone(this))}async _updateCurrentUser(n,a=!1){if(!this._deleted)return n&&Pe(this.tenantId===n.tenantId,this,"tenant-id-mismatch"),a||await this.beforeStateQueue.runMiddleware(n),this.queue(async()=>{await this.directlySetCurrentUser(n),this.notifyAuthListeners()})}async signOut(){return er(this.app)?Promise.reject(na(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(n){return er(this.app)?Promise.reject(na(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence(ea(n))})}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(n){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();const a=this._getPasswordPolicyInternal();return a.schemaVersion!==this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?Promise.reject(this._errorFactory.create("unsupported-password-policy-schema-version",{})):a.validatePassword(n)}_getPasswordPolicyInternal(){return this.tenantId===null?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){const n=await A5(this),a=new N5(n);this.tenantId===null?this._projectPasswordPolicy=a:this._tenantPasswordPolicies[this.tenantId]=a}_getPersistenceType(){return this.assertedPersistence.persistence.type}_getPersistence(){return this.assertedPersistence.persistence}_updateErrorMap(n){this._errorFactory=new us("auth","Firebase",n())}onAuthStateChanged(n,a,l){return this.registerStateListener(this.authStateSubscription,n,a,l)}beforeAuthStateChanged(n,a){return this.beforeStateQueue.pushCallback(n,a)}onIdTokenChanged(n,a,l){return this.registerStateListener(this.idTokenSubscription,n,a,l)}authStateReady(){return new Promise((n,a)=>{if(this.currentUser)n();else{const l=this.onAuthStateChanged(()=>{l(),n()},a)}})}async revokeAccessToken(n){if(this.currentUser){const a=await this.currentUser.getIdToken(),l={providerId:"apple.com",tokenType:"ACCESS_TOKEN",token:n,idToken:a};this.tenantId!=null&&(l.tenantId=this.tenantId),await _5(this,l)}}toJSON(){var n;return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:(n=this._currentUser)===null||n===void 0?void 0:n.toJSON()}}async _setRedirectUser(n,a){const l=await this.getOrInitRedirectPersistenceManager(a);return n===null?l.removeCurrentUser():l.setCurrentUser(n)}async getOrInitRedirectPersistenceManager(n){if(!this.redirectPersistenceManager){const a=n&&ea(n)||this._popupRedirectResolver;Pe(a,this,"argument-error"),this.redirectPersistenceManager=await vl.create(this,[ea(a._redirectPersistence)],"redirectUser"),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(n){var a,l;return this._isInitialized&&await this.queue(async()=>{}),((a=this._currentUser)===null||a===void 0?void 0:a._redirectEventId)===n?this._currentUser:((l=this.redirectUser)===null||l===void 0?void 0:l._redirectEventId)===n?this.redirectUser:null}async _persistUserIfCurrent(n){if(n===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(n))}_notifyListenersIfCurrent(n){n===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){var n,a;if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);const l=(a=(n=this.currentUser)===null||n===void 0?void 0:n.uid)!==null&&a!==void 0?a:null;this.lastNotifiedUid!==l&&(this.lastNotifiedUid=l,this.authStateSubscription.next(this.currentUser))}registerStateListener(n,a,l,s){if(this._deleted)return()=>{};const u=typeof a=="function"?a:a.next.bind(a);let f=!1;const p=this._isInitialized?Promise.resolve():this._initializationPromise;if(Pe(p,this,"internal-error"),p.then(()=>{f||u(this.currentUser)}),typeof a=="function"){const h=n.addObserver(a,l,s);return()=>{f=!0,h()}}else{const h=n.addObserver(a);return()=>{f=!0,h()}}}async directlySetCurrentUser(n){this.currentUser&&this.currentUser!==n&&this._currentUser._stopProactiveRefresh(),n&&this.isProactiveRefreshEnabled&&n._startProactiveRefresh(),this.currentUser=n,n?await this.assertedPersistence.setCurrentUser(n):await this.assertedPersistence.removeCurrentUser()}queue(n){return this.operations=this.operations.then(n,n),this.operations}get assertedPersistence(){return Pe(this.persistenceManager,this,"internal-error"),this.persistenceManager}_logFramework(n){!n||this.frameworks.includes(n)||(this.frameworks.push(n),this.frameworks.sort(),this.clientVersion=M1(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){var n;const a={"X-Client-Version":this.clientVersion};this.app.options.appId&&(a["X-Firebase-gmpid"]=this.app.options.appId);const l=await((n=this.heartbeatServiceProvider.getImmediate({optional:!0}))===null||n===void 0?void 0:n.getHeartbeatsHeader());l&&(a["X-Firebase-Client"]=l);const s=await this._getAppCheckToken();return s&&(a["X-Firebase-AppCheck"]=s),a}async _getAppCheckToken(){var n;if(er(this.app)&&this.app.settings.appCheckToken)return this.app.settings.appCheckToken;const a=await((n=this.appCheckServiceProvider.getImmediate({optional:!0}))===null||n===void 0?void 0:n.getToken());return a!=null&&a.error&&i5(`Error while retrieving App Check token: ${a.error}`),a==null?void 0:a.token}}function $a(t){return Lr(t)}class Z0{constructor(n){this.auth=n,this.observer=null,this.addObserver=YA(a=>this.observer=a)}get next(){return Pe(this.observer,this.auth,"internal-error"),this.observer.next.bind(this.observer)}}/** 895 * @license 896 * Copyright 2020 Google LLC 897 * 898 * Licensed under the Apache License, Version 2.0 (the "License");
899 * you may not use this file except in compliance with the License. 900 * You may obtain a copy of the License at 901 * 902 * http://www.apache.org/licenses/LICENSE-2.0 903 * 904 * Unless required by applicable law or agreed to in writing, software 905 * distributed under the License is distributed on an "AS IS" BASIS, 906 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 907 * See the License for the specific language governing permissions and 908 * limitations under the License. 909 */let Cu={async loadJS(){throw new Error("Unable to load external scripts")},recaptchaV2Script:"",recaptchaEnterpriseScript:"",gapiScript:""};function D5(t){Cu=t}function D1(t){return Cu.loadJS(t)}function j5(){return Cu.recaptchaEnterpriseScript}function k5(){return Cu.gapiScript}function L5(t){return`__${t}${Math.floor(Math.random()*1e6)}`}class z5{constructor(){this.enterprise=new P5}ready(n){n()}execute(n,a){return Promise.resolve("token")}render(n,a){return""}}class P5{ready(n){n()}execute(n,a){return Promise.resolve("token")}render(n,a){return""}}const I5="recaptcha-enterprise",j1="NO_RECAPTCHA";class U5{constructor(n){this.type=I5,this.auth=$a(n)}async verify(n="verify",a=!1){async function l(u){if(!a){if(u.tenantId==null&&u._agentRecaptchaConfig!=null)return u._agentRecaptchaConfig.siteKey;if(u.tenantId!=null&&u._tenantRecaptchaConfigs[u.tenantId]!==void 0)return u._tenantRecaptchaConfigs[u.tenantId].siteKey}return new Promise(async(f,p)=>{g5(u,{clientType:"CLIENT_TYPE_WEB",version:"RECAPTCHA_ENTERPRISE"}).then(h=>{if(h.recaptchaKey===void 0)p(new Error("recaptcha Enterprise site key undefined"));else{const v=new p5(h);return u.tenantId==null?u._agentRecaptchaConfig=v:u._tenantRecaptchaConfigs[u.tenantId]=v,f(v.siteKey)}}).catch(h=>{p(h)})})}function s(u,f,p){const h=window.grecaptcha;X0(h)?h.enterprise.ready(()=>{h.enterprise.execute(u,{action:n}).then(v=>{f(v)}).catch(()=>{f(j1)})}):p(Error("No reCAPTCHA enterprise script loaded."))}return this.auth.settings.appVerificationDisabledForTesting?new z5().execute("siteKey",{action:"verify"}):new Promise((u,f)=>{l(this.auth).then(p=>{if(!a&&X0(window.grecaptcha))s(p,u,f);else{if(typeof window>"u"){f(new Error("RecaptchaVerifier is only supported in browser"));return}let h=j5();h.length!==0&&(h+=p),D1(h).then(()=>{s(p,u,f)}).catch(v=>{f(v)})}}).catch(p=>{f(p)})})}}async function J0(t,n,a,l=!1,s=!1){const u=new U5(t);let f;if(s)f=j1;else try{f=await u.verify(a)}catch{f=await u.verify(a,!0)}const p=Object.assign({},n);if(a==="mfaSmsEnrollment"||a==="mfaSmsSignIn"){if("phoneEnrollmentInfo"in p){const h=p.phoneEnrollmentInfo.phoneNumber,v=p.phoneEnrollmentInfo.recaptchaToken;Object.assign(p,{phoneEnrollmentInfo:{phoneNumber:h,recaptchaToken:v,captchaResponse:f,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}else if("phoneSignInInfo"in p){const h=p.phoneSignInInfo.recaptchaToken;Object.assign(p,{phoneSignInInfo:{recaptchaToken:h,captchaResponse:f,clientType:"CLIENT_TYPE_WEB",recaptchaVersion:"RECAPTCHA_ENTERPRISE"}})}return p}return l?Object.assign(p,{captchaResp:f}):Object.assign(p,{captchaResponse:f}),Object.assign(p,{clientType:"CLIENT_TYPE_WEB"}),Object.assign(p,{recaptchaVersion:"RECAPTCHA_ENTERPRISE"}),p}async function Ph(t,n,a,l,s){var u;if(!((u=t._getRecaptchaConfig())===null||u===void 0)&&u.isProviderEnabled("EMAIL_PASSWORD_PROVIDER")){const f=await J0(t,n,a,a==="getOobCode");return l(t,f)}else return l(t,n).catch(async f=>{if(f.code==="auth/missing-recaptcha-token"){console.log(`${a} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`);const p=await J0(t,n,a,a==="getOobCode");return l(t,p)}else return Promise.reject(f)})}/** 910 * @license 911 * Copyright 2020 Google LLC 912 * 913 * Licensed under the Apache License, Version 2.0 (the "License"); 914 * you may not use this file except in compliance with the License. 915 * You may obtain a copy of the License at 916 * 917 * http://www.apache.org/licenses/LICENSE-2.0 918 * 919 * Unless required by applicable law or agreed to in writing, software 920 * distributed under the License is distributed on an "AS IS" BASIS, 921 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 922 * See the License for the specific language governing permissions and 923 * limitations under the License. 924 */function H5(t,n){const a=f1(t,"auth");if(a.isInitialized()){const s=a.getImmediate(),u=a.getOptions();if(_l(u,n??{}))return s;rr(s,"already-initialized")}return a.initialize({options:n})}function B5(t,n){const a=(n==null?void 0:n.persistence)||[],l=(Array.isArray(a)?a:[a]).map(ea);n!=null&&n.errorMap&&t._updateErrorMap(n.errorMap),t._initializeWithPersistence(l,n==null?void 0:n.popupRedirectResolver)}function q5(t,n,a){const l=$a(t);
924Pe(/^https?:\/\//.test(n),l,"invalid-emulator-scheme");const s=!1,u=k1(n),{host:f,port:p}=V5(n),h=p===null?"":`:${p}`,v={url:`${u}//${f}${h}/`},w=Object.freeze({host:f,port:p,protocol:u.replace(":",""),options:Object.freeze({disableWarnings:s})});if(!l._canInitEmulator){Pe(l.config.emulator&&l.emulatorConfig,l,"emulator-config-failed"),Pe(_l(v,l.config.emulator)&&_l(w,l.emulatorConfig),l,"emulator-config-failed");return}l.config.emulator=v,l.emulatorConfig=w,l.settings.appVerificationDisabledForTesting=!0,gm(f)?(s1("Auth",!0),DA(`${u}//${f}${h}`)):G5()}function k1(t){const n=t.indexOf(":");return n<0?"":t.substr(0,n+1)}function V5(t){const n=k1(t),a=/(\/\/)?([^?#/]+)/.exec(t.substr(n.length));if(!a)return{host:"",port:null};const l=a[2].split("@").pop()||"",s=/^(\[[^\]]+\])(:|$)/.exec(l);if(s){const u=s[1];return{host:u,port:eb(l.substr(u.length+1))}}else{const[u,f]=l.split(":");return{host:u,port:eb(f)}}}function eb(t){if(!t)return null;const n=Number(t);return isNaN(n)?null:n}function G5(){function t(){const n=document.createElement("p"),a=n.style;n.innerText="Running in emulator mode. Do not use with production credentials.",a.position="fixed",a.width="100%",a.backgroundColor="#ffffff",a.border=".1em solid #000000",a.color="#b50000",a.bottom="0px",a.left="0px",a.margin="0px",a.zIndex="10000",a.textAlign="center",n.classList.add("firebase-emulator-warning"),document.body.appendChild(n)}typeof console<"u"&&typeof console.info=="function"&&console.info("WARNING: You are using the Auth Emulator, which is intended for local testing only. Do not use with production credentials."),typeof window<"u"&&typeof document<"u"&&(document.readyState==="loading"?window.addEventListener("DOMContentLoaded",t):t())}/** 925 * @license 926 * Copyright 2020 Google LLC 927 * 928 * Licensed under the Apache License, Version 2.0 (the "License"); 929 * you may not use this file except in compliance with the License. 930 * You may obtain a copy of the License at 931 * 932 * http://www.apache.org/licenses/LICENSE-2.0 933 * 934 * Unless required by applicable law or agreed to in writing, software 935 * distributed under the License is distributed on an "AS IS" BASIS, 936 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 937 * See the License for the specific language governing permissions and 938 * limitations under the License. 939 */class _m{constructor(n,a){this.providerId=n,this.signInMethod=a}toJSON(){return Jr("not implemented")}_getIdTokenResponse(n){return Jr("not implemented")}_linkToIdToken(n,a){return Jr("not implemented")}_getReauthenticationResolver(n){return Jr("not implemented")}}async function $5(t,n){return la(t,"POST","/v1/accounts:signUp",n)}/** 940 * @license 941 * Copyright 2020 Google LLC 942 * 943 * Licensed under the Apache License, Version 2.0 (the "License"); 944 * you may not use this file except in compliance with the License. 945 * You may obtain a copy of the License at 946 * 947 * http://www.apache.org/licenses/LICENSE-2.0 948 * 949 * Unless required by applicable law or agreed to in writing, software 950 * distributed under the License is distributed on an "AS IS" BASIS, 951 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 952 * See the License for the specific language governing permissions and 953 * limitations under the License. 954 */async function Y5(t,n){return ms(t,"POST","/v1/accounts:signInWithPassword",Ga(t,n))}/** 955 * @license 956 * Copyright 2020 Google LLC 957 * 958 * Licensed under the Apache License, Version 2.0 (the "License"); 959 * you may not use this file except in compliance with the License. 960 * You may obtain a copy of the License at 961 * 962 * http://www.apache.org/licenses/LICENSE-2.0 963 * 964 * Unless required by applicable law or agreed to in writing, software 965 * distributed under the License is distributed on an "AS IS" BASIS, 966 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 967 * See the License for the specific language governing permissions and 968 * limitations under the License. 969 */async function X5(t,n){return ms(t,"POST","/v1/accounts:signInWithEmailLink",Ga(t,n))}async function F5(t,n){return ms(t,"POST","/v1/accounts:signInWithEmailLink",Ga(t,n))}/** 970 * @license 971 * Copyright 2020 Google LLC 972 * 973 * Licensed under the Apache License, Version 2.0 (the "License");
974 * you may not use this file except in compliance with the License. 975 * You may obtain a copy of the License at 976 * 977 * http://www.apache.org/licenses/LICENSE-2.0 978 * 979 * Unless required by applicable law or agreed to in writing, software 980 * distributed under the License is distributed on an "AS IS" BASIS, 981 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 982 * See the License for the specific language governing permissions and 983 * limitations under the License. 984 */class Ko extends _m{constructor(n,a,l,s=null){super("password",l),this._email=n,this._password=a,this._tenantId=s}static _fromEmailAndPassword(n,a){return new Ko(n,a,"password")}static _fromEmailAndCode(n,a,l=null){return new Ko(n,a,"emailLink",l)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(n){const a=typeof n=="string"?JSON.parse(n):n;if(a!=null&&a.email&&(a!=null&&a.password)){if(a.signInMethod==="password")return this._fromEmailAndPassword(a.email,a.password);if(a.signInMethod==="emailLink")return this._fromEmailAndCode(a.email,a.password,a.tenantId)}return null}async _getIdTokenResponse(n){switch(this.signInMethod){case"password":const a={returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return Ph(n,a,"signInWithPassword",Y5);case"emailLink":return X5(n,{email:this._email,oobCode:this._password});default:rr(n,"internal-error")}}async _linkToIdToken(n,a){switch(this.signInMethod){case"password":const l={idToken:a,returnSecureToken:!0,email:this._email,password:this._password,clientType:"CLIENT_TYPE_WEB"};return Ph(n,l,"signUpPassword",$5);case"emailLink":return F5(n,{idToken:a,email:this._email,oobCode:this._password});default:rr(n,"internal-error")}}_getReauthenticationResolver(n){return this._getIdTokenResponse(n)}}/** 985 * @license 986 * Copyright 2020 Google LLC 987 * 988 * Licensed under the Apache License, Version 2.0 (the "License"); 989 * you may not use this file except in compliance with the License. 990 * You may obtain a copy of the License at 991 * 992 * http://www.apache.org/licenses/LICENSE-2.0 993 * 994 * Unless required by applicable law or agreed to in writing, software 995 * distributed under the License is distributed on an "AS IS" BASIS, 996 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 997 * See the License for the specific language governing permissions and 998 * limitations under the License. 999 */async function yl(t,n){return ms(t,"POST","/v1/accounts:signInWithIdp",Ga(t,n))}/** 1000 * @license 1001 * Copyright 2020 Google LLC 1002 * 1003 * Licensed under the Apache License, Version 2.0 (the "License"); 1004 * you may not use this file except in compliance with the License. 1005 * You may obtain a copy of the License at 1006 * 1007 * http://www.apache.org/licenses/LICENSE-2.0 1008 * 1009 * Unless required by applicable law or agreed to in writing, software 1010 * distributed under the License is distributed on an "AS IS" BASIS, 1011 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1012 * See the License for the specific language governing permissions and 1013 * limitations under the License. 1014 */const K5="http://localhost";class Ei extends _m{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(n){const a=new Ei(n.providerId,n.signInMethod);return n.idToken||n.accessToken?(n.idToken&&(a.idToken=n.idToken),n.accessToken&&(a.accessToken=n.accessToken),n.nonce&&!n.pendingToken&&(a.nonce=n.nonce),n.pendingToken&&(a.pendingToken=n.pendingToken)):n.oauthToken&&n.oauthTokenSecret?(a.accessToken=n.oauthToken,a.secret=n.oauthTokenSecret):rr("argument-error"),a}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,n
1014once:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(n){const a=typeof n=="string"?JSON.parse(n):n,{providerId:l,signInMethod:s}=a,u=ym(a,["providerId","signInMethod"]);if(!l||!s)return null;const f=new Ei(l,s);return f.idToken=u.idToken||void 0,f.accessToken=u.accessToken||void 0,f.secret=u.secret,f.nonce=u.nonce,f.pendingToken=u.pendingToken||null,f}_getIdTokenResponse(n){const a=this.buildRequest();return yl(n,a)}_linkToIdToken(n,a){const l=this.buildRequest();return l.idToken=a,yl(n,l)}_getReauthenticationResolver(n){const a=this.buildRequest();return a.autoCreate=!1,yl(n,a)}buildRequest(){const n={requestUri:K5,returnSecureToken:!0};if(this.pendingToken)n.pendingToken=this.pendingToken;else{const a={};this.idToken&&(a.id_token=this.idToken),this.accessToken&&(a.access_token=this.accessToken),this.secret&&(a.oauth_token_secret=this.secret),a.providerId=this.providerId,this.nonce&&!this.pendingToken&&(a.nonce=this.nonce),n.postBody=ds(a)}return n}}/** 1015 * @license 1016 * Copyright 2020 Google LLC 1017 * 1018 * Licensed under the Apache License, Version 2.0 (the "License"); 1019 * you may not use this file except in compliance with the License. 1020 * You may obtain a copy of the License at 1021 * 1022 * http://www.apache.org/licenses/LICENSE-2.0 1023 * 1024 * Unless required by applicable law or agreed to in writing, software 1025 * distributed under the License is distributed on an "AS IS" BASIS, 1026 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1027 * See the License for the specific language governing permissions and 1028 * limitations under the License. 1029 */function W5(t){switch(t){case"recoverEmail":return"RECOVER_EMAIL";case"resetPassword":return"PASSWORD_RESET";case"signIn":return"EMAIL_SIGNIN";case"verifyEmail":return"VERIFY_EMAIL";case"verifyAndChangeEmail":return"VERIFY_AND_CHANGE_EMAIL";case"revertSecondFactorAddition":return"REVERT_SECOND_FACTOR_ADDITION";default:return null}}function Q5(t){const n=Ho(Bo(t)).link,a=n?Ho(Bo(n)).deep_link_id:null,l=Ho(Bo(t)).deep_link_id;return(l?Ho(Bo(l)).link:null)||l||a||n||t}class Tm{constructor(n){var a,l,s,u,f,p;const h=Ho(Bo(n)),v=(a=h.apiKey)!==null&&a!==void 0?a:null,w=(l=h.oobCode)!==null&&l!==void 0?l:null,C=W5((s=h.mode)!==null&&s!==void 0?s:null);Pe(v&&w&&C,"argument-error"),this.apiKey=v,this.operation=C,this.code=w,this.continueUrl=(u=h.continueUrl)!==null&&u!==void 0?u:null,this.languageCode=(f=h.lang)!==null&&f!==void 0?f:null,this.tenantId=(p=h.tenantId)!==null&&p!==void 0?p:null}static parseLink(n){const a=Q5(n);try{return new Tm(a)}catch{return null}}}/** 1030 * @license 1031 * Copyright 2020 Google LLC 1032 * 1033 * Licensed under the Apache License, Version 2.0 (the "License"); 1034 * you may not use this file except in compliance with the License. 1035 * You may obtain a copy of the License at 1036 * 1037 * http://www.apache.org/licenses/LICENSE-2.0 1038 * 1039 * Unless required by applicable law or agreed to in writing, software 1040 * distributed under the License is distributed on an "AS IS" BASIS, 1041 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1042 * See the License for the specific language governing permissions and 1043 * limitations under the License. 1044 */class kl{constructor(){this.providerId=kl.PROVIDER_ID}static credential(n,a){return Ko._fromEmailAndPassword(n,a)}static credentialWithLink(n,a){const l=Tm.parseLink(a);return Pe(l,"argument-error"),Ko._fromEmailAndCode(n,l.code,l.tenantId)}}kl.PROVIDER_ID="password";kl.EMAIL_PASSWORD_SIGN_IN_METHOD="password";kl.EMAIL_LINK_SIGN_IN_METHOD="emailLink";/** 1045 * @license 1046 * Copyright 2020 Google LLC 1047 * 1048 * Licensed under the Apache License, Version 2.0 (the "License"); 1049 * you may not use this file except in compliance with the License. 1050 * You may obtain a copy of the License at 1051 * 1052 * http://www.apache.org/licenses/LICENSE-2.0 1053 * 1054 * Unless required by applicable law or agreed to in writing, software 1055 * distributed under the License is distributed on an "AS IS" BASIS, 1056 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1057 * See the License for the specific language governing permissions and 1058 * limitations under the License. 1059 */class Cm{constructor(n){this.providerId=n,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(n){this.defaultLanguageCode=n}setCustomParameters(n){return this.customParameters=n,this}getCustomParameters(){return this.customParameters}}/** 1060 * @license 1061 * Copyright 2019 Google LLC 1062 * 1063 * Licensed under the Apache License, Version 2.0 (the "License");
1064 * you may not use this file except in compliance with the License. 1065 * You may obtain a copy of the License at 1066 * 1067 * http://www.apache.org/licenses/LICENSE-2.0 1068 * 1069 * Unless required by applicable law or agreed to in writing, software 1070 * distributed under the License is distributed on an "AS IS" BASIS, 1071 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1072 * See the License for the specific language governing permissions and 1073 * limitations under the License. 1074 */class ps extends Cm{constructor(){super(...arguments),this.scopes=[]}addScope(n){return this.scopes.includes(n)||this.scopes.push(n),this}getScopes(){return[...this.scopes]}}/** 1075 * @license 1076 * Copyright 2020 Google LLC 1077 * 1078 * Licensed under the Apache License, Version 2.0 (the "License"); 1079 * you may not use this file except in compliance with the License. 1080 * You may obtain a copy of the License at 1081 * 1082 * http://www.apache.org/licenses/LICENSE-2.0 1083 * 1084 * Unless required by applicable law or agreed to in writing, software 1085 * distributed under the License is distributed on an "AS IS" BASIS, 1086 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1087 * See the License for the specific language governing permissions and 1088 * limitations under the License. 1089 */class ja extends ps{constructor(){super("facebook.com")}static credential(n){return Ei._fromParams({providerId:ja.PROVIDER_ID,signInMethod:ja.FACEBOOK_SIGN_IN_METHOD,accessToken:n})}static credentialFromResult(n){return ja.credentialFromTaggedObject(n)}static credentialFromError(n){return ja.credentialFromTaggedObject(n.customData||{})}static credentialFromTaggedObject({_tokenResponse:n}){if(!n||!("oauthAccessToken"in n)||!n.oauthAccessToken)return null;try{return ja.credential(n.oauthAccessToken)}catch{return null}}}ja.FACEBOOK_SIGN_IN_METHOD="facebook.com";ja.PROVIDER_ID="facebook.com";/** 1090 * @license 1091 * Copyright 2020 Google LLC 1092 * 1093 * Licensed under the Apache License, Version 2.0 (the "License"); 1094 * you may not use this file except in compliance with the License. 1095 * You may obtain a copy of the License at 1096 * 1097 * http://www.apache.org/licenses/LICENSE-2.0 1098 * 1099 * Unless required by applicable law or agreed to in writing, software 1100 * distributed under the License is distributed on an "AS IS" BASIS, 1101 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1102 * See the License for the specific language governing permissions and 1103 * limitations under the License. 1104 */class Zr extends ps{constructor(){super("google.com"),this.addScope("profile")}static credential(n,a){return Ei._fromParams({providerId:Zr.PROVIDER_ID,signInMethod:Zr.GOOGLE_SIGN_IN_METHOD,idToken:n,accessToken:a})}static credentialFromResult(n){return Zr.credentialFromTaggedObject(n)}static credentialFromError(n){return Zr.credentialFromTaggedObject(n.customData||{})}static credentialFromTaggedObject({_tokenResponse:n}){if(!n)return null;const{oauthIdToken:a,oauthAccessToken:l}=n;if(!a&&!l)return null;try{return Zr.credential(a,l)}catch{return null}}}Zr.GOOGLE_SIGN_IN_METHOD="google.com";Zr.PROVIDER_ID="google.com";/** 1105 * @license 1106 * Copyright 2020 Google LLC 1107 * 1108 * Licensed under the Apache License, Version 2.0 (the "License"); 1109 * you may not use this file except in compliance with the License. 1110 * You may obtain a copy of the License at 1111 * 1112 * http://www.apache.org/licenses/LICENSE-2.0 1113 * 1114 * Unless required by applicable law or agreed to in writing, software 1115 * distributed under the License is distributed on an "AS IS" BASIS, 1116 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1117 * See the License for the specific language governing permissions and 1118 * limitations under the License. 1119 */class ka extends ps{constructor(){super("github.com")}static credential(n){return Ei._fromParams({providerId:ka.PROVIDER_ID,signInMethod:ka.GITHUB_SIGN_IN_METHOD,accessToken:n})}static credentialFromResult(n){return ka.credentialFromTaggedObject(n)}static credentialFromError(n){return ka.credentialFromTaggedObject(n.customData||{})}static credentialFromTaggedObject({_tokenResponse:n}){if(!n||!("oauthAccessToken"in n)||!n.oauthAccessToken)return null;try{return ka.credential(n.oauthAccessToken)}catch{return null}}}ka.GITHUB_SIGN_IN_METHOD="github.com";ka.PROVIDER_ID="github.com";/** 1120 * @license 1121 * Copyright 2020 Google LLC 1122 * 1123 * Licensed under the Apache License, Version 2.0 (the "License");
1124 * you may not use this file except in compliance with the License. 1125 * You may obtain a copy of the License at 1126 * 1127 * http://www.apache.org/licenses/LICENSE-2.0 1128 * 1129 * Unless required by applicable law or agreed to in writing, software 1130 * distributed under the License is distributed on an "AS IS" BASIS, 1131 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1132 * See the License for the specific language governing permissions and 1133 * limitations under the License. 1134 */class La extends ps{constructor(){super("twitter.com")}static credential(n,a){return Ei._fromParams({providerId:La.PROVIDER_ID,signInMethod:La.TWITTER_SIGN_IN_METHOD,oauthToken:n,oauthTokenSecret:a})}static credentialFromResult(n){return La.credentialFromTaggedObject(n)}static credentialFromError(n){return La.credentialFromTaggedObject(n.customData||{})}static credentialFromTaggedObject({_tokenResponse:n}){if(!n)return null;const{oauthAccessToken:a,oauthTokenSecret:l}=n;if(!a||!l)return null;try{return La.credential(a,l)}catch{return null}}}La.TWITTER_SIGN_IN_METHOD="twitter.com";La.PROVIDER_ID="twitter.com";/** 1135 * @license 1136 * Copyright 2020 Google LLC 1137 * 1138 * Licensed under the Apache License, Version 2.0 (the "License"); 1139 * you may not use this file except in compliance with the License. 1140 * You may obtain a copy of the License at 1141 * 1142 * http://www.apache.org/licenses/LICENSE-2.0 1143 * 1144 * Unless required by applicable law or agreed to in writing, software 1145 * distributed under the License is distributed on an "AS IS" BASIS, 1146 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1147 * See the License for the specific language governing permissions and 1148 * limitations under the License. 1149 */async function Z5(t,n){return ms(t,"POST","/v1/accounts:signUp",Ga(t,n))}/** 1150 * @license 1151 * Copyright 2020 Google LLC 1152 * 1153 * Licensed under the Apache License, Version 2.0 (the "License"); 1154 * you may not use this file except in compliance with the License. 1155 * You may obtain a copy of the License at 1156 * 1157 * http://www.apache.org/licenses/LICENSE-2.0 1158 * 1159 * Unless required by applicable law or agreed to in writing, software 1160 * distributed under the License is distributed on an "AS IS" BASIS, 1161 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1162 * See the License for the specific language governing permissions and 1163 * limitations under the License. 1164 */class _i{constructor(n){this.user=n.user,this.providerId=n.providerId,this._tokenResponse=n._tokenResponse,this.operationType=n.operationType}static async _fromIdTokenResponse(n,a,l,s=!1){const u=await fr._fromIdTokenResponse(n,l,s),f=tb(l);return new _i({user:u,providerId:f,_tokenResponse:l,operationType:a})}static async _forOperation(n,a,l){await n._updateTokensIfNecessary(l,!0);const s=tb(l);return new _i({user:n,providerId:s,_tokenResponse:l,operationType:a})}}function tb(t){return t.providerId?t.providerId:"phoneNumber"in t?"phone":null}/** 1165 * @license 1166 * Copyright 2020 Google LLC 1167 * 1168 * Licensed under the Apache License, Version 2.0 (the "License"); 1169 * you may not use this file except in compliance with the License. 1170 * You may obtain a copy of the License at 1171 * 1172 * http://www.apache.org/licenses/LICENSE-2.0 1173 * 1174 * Unless required by applicable law or agreed to in writing, software 1175 * distributed under the License is distributed on an "AS IS" BASIS, 1176 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1177 * See the License for the specific language governing permissions and 1178 * limitations under the License. 1179 */class cu extends Va{constructor(n,a,l,s){var u;super(a.code,a.message),this.operationType=l,this.user=s,Object.setPrototypeOf(this,cu.prototype),this.customData={appName:n.name,tenantId:(u=n.tenantId)!==null&&u!==void 0?u:void 0,_serverResponse:a.customData._serverResponse,operationType:l}}static _fromErrorAndOperation(n,a,l,s){return new cu(n,a,l,s)}}function L1(t,n,a,l){return(n==="reauthenticate"?a._getReauthenticationResolver(t):a._getIdTokenResponse(t)).catch(u=>{throw u.code==="auth/multi-factor-auth-required"?cu._fromErrorAndOperation(t,u,n,l):u})}async function J5(t,n,a=!1){const l=await Cl(t,n._linkToIdToken(t.auth,await t.getIdToken()),a);return _i._forOperation(t,"link",l)}/** 1180 * @license 1181 * Copyright 2019 Google LLC 1182 * 1183 * Licensed under the Apache License, Version 2.0 (the "License");
1184 * you may not use this file except in compliance with the License. 1185 * You may obtain a copy of the License at 1186 * 1187 * http://www.apache.org/licenses/LICENSE-2.0 1188 * 1189 * Unless required by applicable law or agreed to in writing, software 1190 * distributed under the License is distributed on an "AS IS" BASIS, 1191 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1192 * See the License for the specific language governing permissions and 1193 * limitations under the License. 1194 */async function eR(t,n,a=!1){const{auth:l}=t;if(er(l.app))return Promise.reject(na(l));const s="reauthenticate";try{const u=await Cl(t,L1(l,s,n,t),a);Pe(u.idToken,l,"internal-error");const f=xm(u.idToken);Pe(f,l,"internal-error");const{sub:p}=f;return Pe(t.uid===p,l,"user-mismatch"),_i._forOperation(t,s,u)}catch(u){throw(u==null?void 0:u.code)==="auth/user-not-found"&&rr(l,"user-mismatch"),u}}/** 1195 * @license 1196 * Copyright 2020 Google LLC 1197 * 1198 * Licensed under the Apache License, Version 2.0 (the "License"); 1199 * you may not use this file except in compliance with the License. 1200 * You may obtain a copy of the License at 1201 * 1202 * http://www.apache.org/licenses/LICENSE-2.0 1203 * 1204 * Unless required by applicable law or agreed to in writing, software 1205 * distributed under the License is distributed on an "AS IS" BASIS, 1206 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1207 * See the License for the specific language governing permissions and 1208 * limitations under the License. 1209 */async function z1(t,n,a=!1){if(er(t.app))return Promise.reject(na(t));const l="signIn",s=await L1(t,l,n),u=await _i._fromIdTokenResponse(t,l,s);return a||await t._updateCurrentUser(u.user),u}async function tR(t,n){return z1($a(t),n)}/** 1210 * @license 1211 * Copyright 2020 Google LLC 1212 * 1213 * Licensed under the Apache License, Version 2.0 (the "License"); 1214 * you may not use this file except in compliance with the License. 1215 * You may obtain a copy of the License at 1216 * 1217 * http://www.apache.org/licenses/LICENSE-2.0 1218 * 1219 * Unless required by applicable law or agreed to in writing, software 1220 * distributed under the License is distributed on an "AS IS" BASIS, 1221 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1222 * See the License for the specific language governing permissions and 1223 * limitations under the License. 1224 */async function P1(t){const n=$a(t);n._getPasswordPolicyInternal()&&await n._updatePasswordPolicy()}async function nR(t,n,a){if(er(t.app))return Promise.reject(na(t));const l=$a(t),f=await Ph(l,{returnSecureToken:!0,email:n,password:a,clientType:"CLIENT_TYPE_WEB"},"signUpPassword",Z5).catch(h=>{throw h.code==="auth/password-does-not-meet-requirements"&&P1(t),h}),p=await _i._fromIdTokenResponse(l,"signIn",f);return await l._updateCurrentUser(p.user),p}function rR(t,n,a){return er(t.app)?Promise.reject(na(t)):tR(Lr(t),kl.credential(n,a)).catch(async l=>{throw l.code==="auth/password-does-not-meet-requirements"&&P1(t),l})}/** 1225 * @license 1226 * Copyright 2020 Google LLC 1227 * 1228 * Licensed under the Apache License, Version 2.0 (the "License"); 1229 * you may not use this file except in compliance with the License. 1230 * You may obtain a copy of the License at 1231 * 1232 * http://www.apache.org/licenses/LICENSE-2.0 1233 * 1234 * Unless required by applicable law or agreed to in writing, software 1235 * distributed under the License is distributed on an "AS IS" BASIS, 1236 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1237 * See the License for the specific language governing permissions and 1238 * limitations under the License. 1239 */async function aR(t,n){return la(t,"POST","/v1/accounts:update",n)}/** 1240 * @license 1241 * Copyright 2020 Google LLC 1242 * 1243 * Licensed under the Apache License, Version 2.0 (the "License"); 1244 * you may not use this file except in compliance with the License. 1245 * You may obtain a copy of the License at 1246 * 1247 * http://www.apache.org/licenses/LICENSE-2.0 1248 * 1249 * Unless required by applicable law or agreed to in writing, software 1250 * distributed under the License is distributed on an "AS IS" BASIS, 1251 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1252 * See the License for the specific language governing permissions and 1253 * limitations under the License. 1254 */async function iR(t,{displayName:n,photoURL:a}
1254){if(n===void 0&&a===void 0)return;const l=Lr(t),u={idToken:await l.getIdToken(),displayName:n,photoUrl:a,returnSecureToken:!0},f=await Cl(l,aR(l.auth,u));l.displayName=f.displayName||null,l.photoURL=f.photoUrl||null;const p=l.providerData.find(({providerId:h})=>h==="password");p&&(p.displayName=l.displayName,p.photoURL=l.photoURL),await l._updateTokensIfNecessary(f)}function lR(t,n,a,l){return Lr(t).onIdTokenChanged(n,a,l)}function oR(t,n,a){return Lr(t).beforeAuthStateChanged(n,a)}function sR(t,n,a,l){return Lr(t).onAuthStateChanged(n,a,l)}function cR(t){return Lr(t).signOut()}const uu="__sak";/** 1255 * @license 1256 * Copyright 2019 Google LLC 1257 * 1258 * Licensed under the Apache License, Version 2.0 (the "License"); 1259 * you may not use this file except in compliance with the License. 1260 * You may obtain a copy of the License at 1261 * 1262 * http://www.apache.org/licenses/LICENSE-2.0 1263 * 1264 * Unless required by applicable law or agreed to in writing, software 1265 * distributed under the License is distributed on an "AS IS" BASIS, 1266 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1267 * See the License for the specific language governing permissions and 1268 * limitations under the License. 1269 */class I1{constructor(n,a){this.storageRetriever=n,this.type=a}_isAvailable(){try{return this.storage?(this.storage.setItem(uu,"1"),this.storage.removeItem(uu),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(n,a){return this.storage.setItem(n,JSON.stringify(a)),Promise.resolve()}_get(n){const a=this.storage.getItem(n);return Promise.resolve(a?JSON.parse(a):null)}_remove(n){return this.storage.removeItem(n),Promise.resolve()}get storage(){return this.storageRetriever()}}/** 1270 * @license 1271 * Copyright 2020 Google LLC 1272 * 1273 * Licensed under the Apache License, Version 2.0 (the "License"); 1274 * you may not use this file except in compliance with the License. 1275 * You may obtain a copy of the License at 1276 * 1277 * http://www.apache.org/licenses/LICENSE-2.0 1278 * 1279 * Unless required by applicable law or agreed to in writing, software 1280 * distributed under the License is distributed on an "AS IS" BASIS, 1281 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1282 * See the License for the specific language governing permissions and 1283 * limitations under the License. 1284 */const uR=1e3,dR=10;class U1 extends I1{constructor(){super(()=>window.localStorage,"LOCAL"),this.boundEventHandler=(n,a)=>this.onStorageEvent(n,a),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=N1(),this._shouldAllowMigration=!0}forAllChangedKeys(n){for(const a of Object.keys(this.listeners)){const l=this.storage.getItem(a),s=this.localCache[a];l!==s&&n(a,s,l)}}onStorageEvent(n,a=!1){if(!n.key){this.forAllChangedKeys((f,p,h)=>{this.notifyListeners(f,h)});return}const l=n.key;a?this.detachListener():this.stopPolling();const s=()=>{const f=this.storage.getItem(l);!a&&this.localCache[l]===f||this.notifyListeners(l,f)},u=this.storage.getItem(l);C5()&&u!==n.newValue&&n.newValue!==n.oldValue?setTimeout(s,dR):s()}notifyListeners(n,a){this.localCache[n]=a;const l=this.listeners[n];if(l)for(const s of Array.from(l))s(a&&JSON.parse(a))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((n,a,l)=>{this.onStorageEvent(new StorageEvent("storage",{key:n,oldValue:a,newValue:l}),!0)})},uR)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}attachListener(){window.addEventListener("storage",this.boundEventHandler)}detachListener(){window.removeEventListener("storage",this.boundEventHandler)}_addListener(n,a){Object.keys(this.listeners).length===0&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[n]||(this.listeners[n]=new Set,this.localCache[n]=this.storage.getItem(n)),this.listeners[n].add(a)}_removeListener(n,a){this.listeners[n]&&(this.listeners[n].delete(a),this.listeners[n].size===0&&delete this.listeners[n]),Object.keys(this.listeners).length===0&&(this.detachListener(),this.stopPolling())}async _set(n,a){await super._set(n,a),this.localCache[n]=JSON.stringify(a)}async _get(n){const a=await super._get(n);return this.localCache[n]=JSON.stringify(a),a}async _remove(n){await super._remove(n),delete this.localCache[n]}}U1.type="LOCAL";const fR=U1;/** 1285 * @license 1286 * Copyright 2020 Google LLC 1287 * 1288 * Licensed under the Apache License, Version 2.0 (the "License");
1289 * you may not use this file except in compliance with the License. 1290 * You may obtain a copy of the License at 1291 * 1292 * http://www.apache.org/licenses/LICENSE-2.0 1293 * 1294 * Unless required by applicable law or agreed to in writing, software 1295 * distributed under the License is distributed on an "AS IS" BASIS, 1296 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1297 * See the License for the specific language governing permissions and 1298 * limitations under the License. 1299 */class H1 extends I1{constructor(){super(()=>window.sessionStorage,"SESSION")}_addListener(n,a){}_removeListener(n,a){}}H1.type="SESSION";const B1=H1;/** 1300 * @license 1301 * Copyright 2019 Google LLC 1302 * 1303 * Licensed under the Apache License, Version 2.0 (the "License"); 1304 * you may not use this file except in compliance with the License. 1305 * You may obtain a copy of the License at 1306 * 1307 * http://www.apache.org/licenses/LICENSE-2.0 1308 * 1309 * Unless required by applicable law or agreed to in writing, software 1310 * distributed under the License is distributed on an "AS IS" BASIS, 1311 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1312 * See the License for the specific language governing permissions and 1313 * limitations under the License. 1314 */function hR(t){return Promise.all(t.map(async n=>{try{return{fulfilled:!0,value:await n}}catch(a){return{fulfilled:!1,reason:a}}}))}/** 1315 * @license 1316 * Copyright 2019 Google LLC 1317 * 1318 * Licensed under the Apache License, Version 2.0 (the "License"); 1319 * you may not use this file except in compliance with the License. 1320 * You may obtain a copy of the License at 1321 * 1322 * http://www.apache.org/licenses/LICENSE-2.0 1323 * 1324 * Unless required by applicable law or agreed to in writing, software 1325 * distributed under the License is distributed on an "AS IS" BASIS, 1326 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1327 * See the License for the specific language governing permissions and 1328 * limitations under the License. 1329 */class Ou{constructor(n){this.eventTarget=n,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(n){const a=this.receivers.find(s=>s.isListeningto(n));if(a)return a;const l=new Ou(n);return this.receivers.push(l),l}isListeningto(n){return this.eventTarget===n}async handleEvent(n){const a=n,{eventId:l,eventType:s,data:u}=a.data,f=this.handlersMap[s];if(!(f!=null&&f.size))return;a.ports[0].postMessage({status:"ack",eventId:l,eventType:s});const p=Array.from(f).map(async v=>v(a.origin,u)),h=await hR(p);a.ports[0].postMessage({status:"done",eventId:l,eventType:s,response:h})}_subscribe(n,a){Object.keys(this.handlersMap).length===0&&this.eventTarget.addEventListener("message",this.boundEventHandler),this.handlersMap[n]||(this.handlersMap[n]=new Set),this.handlersMap[n].add(a)}_unsubscribe(n,a){this.handlersMap[n]&&a&&this.handlersMap[n].delete(a),(!a||this.handlersMap[n].size===0)&&delete this.handlersMap[n],Object.keys(this.handlersMap).length===0&&this.eventTarget.removeEventListener("message",this.boundEventHandler)}}Ou.receivers=[];/** 1330 * @license 1331 * Copyright 2020 Google LLC 1332 * 1333 * Licensed under the Apache License, Version 2.0 (the "License"); 1334 * you may not use this file except in compliance with the License. 1335 * You may obtain a copy of the License at 1336 * 1337 * http://www.apache.org/licenses/LICENSE-2.0 1338 * 1339 * Unless required by applicable law or agreed to in writing, software 1340 * distributed under the License is distributed on an "AS IS" BASIS, 1341 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1342 * See the License for the specific language governing permissions and 1343 * limitations under the License. 1344 */function Om(t="",n=10){let a="";for(let l=0;l<n;l++)a+=Math.floor(Math.random()*10);return t+a}/** 1345 * @license 1346 * Copyright 2019 Google LLC 1347 * 1348 * Licensed under the Apache License, Version 2.0 (the "License"); 1349 * you may not use this file except in compliance with the License. 1350 * You may obtain a copy of the License at 1351 * 1352 * http://www.apache.org/licenses/LICENSE-2.0 1353 * 1354 * Unless required by applicable law or agreed to in writing, softw
1354are 1355 * distributed under the License is distributed on an "AS IS" BASIS, 1356 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1357 * See the License for the specific language governing permissions and 1358 * limitations under the License. 1359 */class mR{constructor(n){this.target=n,this.handlers=new Set}removeMessageHandler(n){n.messageChannel&&(n.messageChannel.port1.removeEventListener("message",n.onMessage),n.messageChannel.port1.close()),this.handlers.delete(n)}async _send(n,a,l=50){const s=typeof MessageChannel<"u"?new MessageChannel:null;if(!s)throw new Error("connection_unavailable");let u,f;return new Promise((p,h)=>{const v=Om("",20);s.port1.start();const w=setTimeout(()=>{h(new Error("unsupported_event"))},l);f={messageChannel:s,onMessage(C){const _=C;if(_.data.eventId===v)switch(_.data.status){case"ack":clearTimeout(w),u=setTimeout(()=>{h(new Error("timeout"))},3e3);break;case"done":clearTimeout(u),p(_.data.response);break;default:clearTimeout(w),clearTimeout(u),h(new Error("invalid_response"));break}}},this.handlers.add(f),s.port1.addEventListener("message",f.onMessage),this.target.postMessage({eventType:n,eventId:v,data:a},[s.port2])}).finally(()=>{f&&this.removeMessageHandler(f)})}}/** 1360 * @license 1361 * Copyright 2020 Google LLC 1362 * 1363 * Licensed under the Apache License, Version 2.0 (the "License"); 1364 * you may not use this file except in compliance with the License. 1365 * You may obtain a copy of the License at 1366 * 1367 * http://www.apache.org/licenses/LICENSE-2.0 1368 * 1369 * Unless required by applicable law or agreed to in writing, software 1370 * distributed under the License is distributed on an "AS IS" BASIS, 1371 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1372 * See the License for the specific language governing permissions and 1373 * limitations under the License. 1374 */function Nr(){return window}function pR(t){Nr().location.href=t}/** 1375 * @license 1376 * Copyright 2020 Google LLC. 1377 * 1378 * Licensed under the Apache License, Version 2.0 (the "License"); 1379 * you may not use this file except in compliance with the License. 1380 * You may obtain a copy of the License at 1381 * 1382 * http://www.apache.org/licenses/LICENSE-2.0 1383 * 1384 * Unless required by applicable law or agreed to in writing, software 1385 * distributed under the License is distributed on an "AS IS" BASIS, 1386 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1387 * See the License for the specific language governing permissions and 1388 * limitations under the License. 1389 */function q1(){return typeof Nr().WorkerGlobalScope<"u"&&typeof Nr().importScripts=="function"}async function gR(){if(!(navigator!=null&&navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch{return null}}function vR(){var t;return((t=navigator==null?void 0:navigator.serviceWorker)===null||t===void 0?void 0:t.controller)||null}function yR(){return q1()?self:null}/** 1390 * @license 1391 * Copyright 2019 Google LLC 1392 * 1393 * Licensed under the Apache License, Version 2.0 (the "License"); 1394 * you may not use this file except in compliance with the License. 1395 * You may obtain a copy of the License at 1396 * 1397 * http://www.apache.org/licenses/LICENSE-2.0 1398 * 1399 * Unless required by applicable law or agreed to in writing, software 1400 * distributed under the License is distributed on an "AS IS" BASIS, 1401 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1402 * See the License for the specific language governing permissions and 1403 * limitations under the License. 1404 */const V1="firebaseLocalStorageDb",bR=1,du="firebaseLocalStorage",G1="fbase_key";class gs{constructor(n){this.request=n}toPromise(){return new Promise((n,a)=>{this.request.addEventListener("success",()=>{n(this.request.result)}),this.request.addEventListener("error",()=>{a(this.request.error)})})}}function Au(t,n){return t.transaction([du],n?"readwrite":"readonly").objectStore(du)}function wR(){const t=indexedDB.deleteDatabase(V1);return new gs(t).toPromise()}function Ih(){const t=indexedDB.open(V1,bR);return new Promise((n,a)=>{t.addEventListener("error",()=>{a(t.error)}),t.addEventListener("upgradeneeded",()=>{const l=t.result;try{l.createObjectStore(du,{keyPath:G1})}catch(s){a(s)}}),t.addEventListener("success",async()=>{const l=t.result;l.objectStoreNames.contains(du)?n(l):(l.close(),await wR(),n(await Ih()))})})}async function nb(t,n,a){const l=Au(t,!0).put({[G1]:n,value:a});
1404return new gs(l).toPromise()}async function SR(t,n){const a=Au(t,!1).get(n),l=await new gs(a).toPromise();return l===void 0?null:l.value}function rb(t,n){const a=Au(t,!0).delete(n);return new gs(a).toPromise()}const xR=800,ER=3;class $1{constructor(){this.type="LOCAL",this._shouldAllowMigration=!0,this.listeners={},this.localCache={},this.pollTimer=null,this.pendingWrites=0,this.receiver=null,this.sender=null,this.serviceWorkerReceiverAvailable=!1,this.activeServiceWorker=null,this._workerInitializationPromise=this.initializeServiceWorkerMessaging().then(()=>{},()=>{})}async _openDb(){return this.db?this.db:(this.db=await Ih(),this.db)}async _withRetries(n){let a=0;for(;;)try{const l=await this._openDb();return await n(l)}catch(l){if(a++>ER)throw l;this.db&&(this.db.close(),this.db=void 0)}}async initializeServiceWorkerMessaging(){return q1()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=Ou._getInstance(yR()),this.receiver._subscribe("keyChanged",async(n,a)=>({keyProcessed:(await this._poll()).includes(a.key)})),this.receiver._subscribe("ping",async(n,a)=>["keyChanged"])}async initializeSender(){var n,a;if(this.activeServiceWorker=await gR(),!this.activeServiceWorker)return;this.sender=new mR(this.activeServiceWorker);const l=await this.sender._send("ping",{},800);l&&!((n=l[0])===null||n===void 0)&&n.fulfilled&&!((a=l[0])===null||a===void 0)&&a.value.includes("keyChanged")&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(n){if(!(!this.sender||!this.activeServiceWorker||vR()!==this.activeServiceWorker))try{await this.sender._send("keyChanged",{key:n},this.serviceWorkerReceiverAvailable?800:50)}catch{}}async _isAvailable(){try{if(!indexedDB)return!1;const n=await Ih();return await nb(n,uu,"1"),await rb(n,uu),!0}catch{}return!1}async _withPendingWrite(n){this.pendingWrites++;try{await n()}finally{this.pendingWrites--}}async _set(n,a){return this._withPendingWrite(async()=>(await this._withRetries(l=>nb(l,n,a)),this.localCache[n]=a,this.notifyServiceWorker(n)))}async _get(n){const a=await this._withRetries(l=>
1404SR(l,n));return this.localCache[n]=a,a}async _remove(n){return this._withPendingWrite(async()=>(await this._withRetries(a=>rb(a,n)),delete this.localCache[n],this.notifyServiceWorker(n)))}async _poll(){const n=await this._withRetries(s=>{const u=Au(s,!1).getAll();return new gs(u).toPromise()});if(!n)return[];if(this.pendingWrites!==0)return[];const a=[],l=new Set;if(n.length!==0)for(const{fbase_key:s,value:u}of n)l.add(s),JSON.stringify(this.localCache[s])!==JSON.stringify(u)&&(this.notifyListeners(s,u),a.push(s));for(const s of Object.keys(this.localCache))this.localCache[s]&&!l.has(s)&&(this.notifyListeners(s,null),a.push(s));return a}notifyListeners(n,a){this.localCache[n]=a;const l=this.listeners[n];if(l)for(const s of Array.from(l))s(a)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),xR)}stopPolling(){this.pollTimer&&(clearInterval(this.pollTimer),this.pollTimer=null)}_addListener(n,a){Object.keys(this.listeners).length===0&&this.startPolling(),this.listeners[n]||(this.listeners[n]=new Set,this._get(n)),this.listeners[n].add(a)}_removeListener(n,a){this.listeners[n]&&(this.listeners[n].delete(a),this.listeners[n].size===0&&delete this.listeners[n]),Object.keys(this.listeners).length===0&&this.stopPolling()}}$1.type="LOCAL";const _R=$1;new hs(3e4,6e4);/** 1405 * @license 1406 * Copyright 2021 Google LLC 1407 * 1408 * Licensed under the Apache License, Version 2.0 (the "License"); 1409 * you may not use this file except in compliance with the License. 1410 * You may obtain a copy of the License at 1411 * 1412 * http://www.apache.org/licenses/LICENSE-2.0 1413 * 1414 * Unless required by applicable law or agreed to in writing, software 1415 * distributed under the License is distributed on an "AS IS" BASIS, 1416 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1417 * See the License for the specific language governing permissions and 1418 * limitations under the License. 1419 */function Y1(t,n){return n?ea(n):(Pe(t._popupRedirectResolver,t,"argument-error"),t._popupRedirectResolver)}/** 1420 * @license 1421 * Copyright 2019 Google LLC 1422 * 1423 * Licensed under the Apache License, Version 2.0 (the "License"); 1424 * you may not use this file except in compliance with the License. 1425 * You may obtain a copy of the License at 1426 * 1427 * http://www.apache.org/licenses/LICENSE-2.0 1428 * 1429 * Unless required by applicable law or agreed to in writing, software 1430 * distributed under the License is distributed on an "AS IS" BASIS, 1431 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1432 * See the License for the specific language governing permissions and 1433 * limitations under the License. 1434 */class Am extends _m{constructor(n){super("custom","custom"),this.params=n}_getIdTokenResponse(n){return yl(n,this._buildIdpRequest())}_linkToIdToken(n,a){return yl(n,this._buildIdpRequest(a))}_getReauthenticationResolver(n){return yl(n,this._buildIdpRequest())}_buildIdpRequest(n){const a={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return n&&(a.idToken=n),a}}function TR(t){return z1(t.auth,new Am(t),t.bypassAuthState)}function CR(t){const{auth:n,user:a}=t;return Pe(a,n,"internal-error"),eR(a,new Am(t),t.bypassAuthState)}async function OR(t){const{auth:n,user:a}=t;return Pe(a,n,"internal-error"),J5(a,new Am(t),t.bypassAuthState)}/** 1435 * @license 1436 * Copyright 2020 Google LLC 1437 * 1438 * Licensed under the Apache License, Version 2.0 (the "License"); 1439 * you may not use this file except in compliance with the License. 1440 * You may obtain a copy of the License at 1441 * 1442 * http://www.apache.org/licenses/LICENSE-2.0 1443 * 1444 * Unless required by applicable law or agreed to in writing, software 1445 * distributed under the License is distributed on an "AS IS" BASIS, 1446 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1447 * See the License for the specific language governing permissions and 1448 * limitations under the License. 1449 */class X1{constructor(n,a,l,s,u=!1){this.auth=n,this.resolver=l,this.user=s,this.bypassAuthState=u,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(a)?a:[a]}execute(){return new Promise(async(n,a)=>{this.pendingPromise={resolve:n,reject:a};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(l){this.reject(l)}})}async onAuthEvent(n){const{urlResponse:a,sessionId:l,postBody:s,tenantId:u,error:f,type:p}=n;if(f){this.reject(f);return}const h={auth:this.auth,requestUri:a,sessionId:l,tenantId:u||void 0,postBody:s||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(p)(h))}catch(v){this.reject(v)}}onError(n){this.reject(n)}getIdpTask(n){switch(n){case"signInViaPopup":case"signInViaRedirect":return TR;case"linkViaPopup":case"linkViaRedirect":return OR;case"reauthViaPopup":case"reauthViaRedirect":return CR;default:rr(this.auth,"internal-error")}}resolve(n){aa(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.resolve(n),this.unregisterAndCleanUp()}reject(n){aa(this.pendingPromise,"Pending promise was never set"),this.pendingPromise.reject(n),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}}/** 1450 * @license 1451 * Copyright 2020 Google LLC 1452 * 1453 * Licensed under the Apache License, Version 2.0 (the "License");
1454 * you may not use this file except in compliance with the License. 1455 * You may obtain a copy of the License at 1456 * 1457 * http://www.apache.org/licenses/LICENSE-2.0 1458 * 1459 * Unless required by applicable law or agreed to in writing, software 1460 * distributed under the License is distributed on an "AS IS" BASIS, 1461 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1462 * See the License for the specific language governing permissions and 1463 * limitations under the License. 1464 */const AR=new hs(2e3,1e4);async function RR(t,n,a){if(er(t.app))return Promise.reject(hr(t,"operation-not-supported-in-this-environment"));const l=$a(t);l5(t,n,Cm);const s=Y1(l,a);return new gi(l,"signInViaPopup",n,s).executeNotNull()}class gi extends X1{constructor(n,a,l,s,u){super(n,a,s,u),this.provider=l,this.authWindow=null,this.pollId=null,gi.currentPopupAction&&gi.currentPopupAction.cancel(),gi.currentPopupAction=this}async executeNotNull(){const n=await this.execute();return Pe(n,this.auth,"internal-error"),n}async onExecution(){aa(this.filter.length===1,"Popup operations only handle one event");const n=Om();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],n),this.authWindow.associatedEvent=n,this.resolver._originValidation(this.auth).catch(a=>{this.reject(a)}),this.resolver._isIframeWebStorageSupported(this.auth,a=>{a||this.reject(hr(this.auth,"web-storage-unsupported"))}),this.pollUserCancellation()}get eventId(){var n;return((n=this.authWindow)===null||n===void 0?void 0:n.associatedEvent)||null}cancel(){this.reject(hr(this.auth,"cancelled-popup-request"))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,gi.currentPopupAction=null}pollUserCancellation(){const n=()=>{var a,l;if(!((l=(a=this.authWindow)===null||a===void 0?void 0:a.window)===null||l===void 0)&&l.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(hr(this.auth,"popup-closed-by-user"))},8e3);return}this.pollId=window.setTimeout(n,AR.get())};n()}}gi.currentPopupAction=null;/** 1465 * @license 1466 * Copyright 2020 Google LLC 1467 * 1468 * Licensed under the Apache License, Version 2.0 (the "License"); 1469 * you may not use this file except in compliance with the License. 1470 * You may obtain a copy of the License at 1471 * 1472 * http://www.apache.org/licenses/LICENSE-2.0 1473 * 1474 * Unless required by applicable law or agreed to in writing, software 1475 * distributed under the License is distributed on an "AS IS" BASIS, 1476 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1477 * See the License for the specific language governing permissions and 1478 * limitations under the License. 1479 */const NR="pendingRedirect",zc=new Map;class MR extends X1{constructor(n,a,l=!1){super(n,["signInViaRedirect","linkViaRedirect","reauthViaRedirect","unknown"],a,void 0,l),this.eventId=null}async execute(){let n=zc.get(this.auth._key());if(!n){try{const l=await DR(this.resolver,this.auth)?await super.execute():null;n=()=>Promise.resolve(l)}catch(a){n=()=>Promise.reject(a)}zc.set(this.auth._key(),n)}return this.bypassAuthState||zc.set(this.auth._key(),()=>Promise.resolve(null)),n()}async onAuthEvent(n){if(n.type==="signInViaRedirect")return super.onAuthEvent(n);if(n.type==="unknown"){this.resolve(null);return}if(n.eventId){const a=await this.auth._redirectUserForId(n.eventId);if(a)return this.user=a,super.onAuthEvent(n);this.resolve(null)}}async onExecution(){}cleanUp(){}}async function DR(t,n){const a=LR(n),l=kR(t);if(!await l._isAvailable())return!1;const s=await l._get(a)==="true";return await l._remove(a),s}function jR(t,n){zc.set(t._key(),n)}function kR(t){return ea(t._redirectPersistence)}function LR(t){return Lc(NR,t.config.apiKey,t.name)}async function zR(t,n,a=!1){if(er(t.app))return Promise.reject(na(t));const l=$a(t),s=Y1(l,n),f=await new MR(l,s,a).execute();return f&&!a&&(delete f.user._redirectEventId,await l._persistUserIfCurrent(f.user),await l._setRedirectUser(null,n)),f}/** 1480 * @license 1481 * Copyright 2020 Google LLC 1482 * 1483 * Licensed under the Apache License, Version 2.0 (the "License");
1484 * you may not use this file except in compliance with the License. 1485 * You may obtain a copy of the License at 1486 * 1487 * http://www.apache.org/licenses/LICENSE-2.0 1488 * 1489 * Unless required by applicable law or agreed to in writing, software 1490 * distributed under the License is distributed on an "AS IS" BASIS, 1491 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1492 * See the License for the specific language governing permissions and 1493 * limitations under the License. 1494 */const PR=10*60*1e3;class IR{constructor(n){this.auth=n,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(n){this.consumers.add(n),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,n)&&(this.sendToConsumer(this.queuedRedirectEvent,n),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(n){this.consumers.delete(n)}onEvent(n){if(this.hasEventBeenHandled(n))return!1;let a=!1;return this.consumers.forEach(l=>{this.isEventForConsumer(n,l)&&(a=!0,this.sendToConsumer(n,l),this.saveEventToCache(n))}),this.hasHandledPotentialRedirect||!UR(n)||(this.hasHandledPotentialRedirect=!0,a||(this.queuedRedirectEvent=n,a=!0)),a}sendToConsumer(n,a){var l;if(n.error&&!F1(n)){const s=((l=n.error.code)===null||l===void 0?void 0:l.split("auth/")[1])||"internal-error";a.onError(hr(this.auth,s))}else a.onAuthEvent(n)}isEventForConsumer(n,a){const l=a.eventId===null||!!n.eventId&&n.eventId===a.eventId;return a.filter.includes(n.type)&&l}hasEventBeenHandled(n){return Date.now()-this.lastProcessedEventTime>=PR&&this.cachedEventUids.clear(),this.cachedEventUids.has(ab(n))}saveEventToCache(n){this.cachedEventUids.add(ab(n)),this.lastProcessedEventTime=Date.now()}}function ab(t){return[t.type,t.eventId,t.sessionId,t.tenantId].filter(n=>n).join("-")}function F1({type:t,error:n}){return t==="unknown"&&(n==null?void 0:n.code)==="auth/no-auth-event"}function UR(t){switch(t.type){case"signInViaRedirect":case"linkViaRedirect":case"reauthViaRedirect":return!0;case"unknown":return F1(t);default:return!1}}/** 1495 * @license 1496 * Copyright 2020 Google LLC 1497 * 1498 * Licensed under the Apache License, Version 2.0 (the "License"); 1499 * you may not use this file except in compliance with the License. 1500 * You may obtain a copy of the License at 1501 * 1502 * http://www.apache.org/licenses/LICENSE-2.0 1503 * 1504 * Unless required by applicable law or agreed to in writing, software 1505 * distributed under the License is distributed on an "AS IS" BASIS, 1506 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1507 * See the License for the specific language governing permissions and 1508 * limitations under the License. 1509 */async function HR(t,n={}){return la(t,"GET","/v1/projects",n)}/** 1510 * @license 1511 * Copyright 2020 Google LLC 1512 * 1513 * Licensed under the Apache License, Version 2.0 (the "License"); 1514 * you may not use this file except in compliance with the License. 1515 * You may obtain a copy of the License at 1516 * 1517 * http://www.apache.org/licenses/LICENSE-2.0 1518 * 1519 * Unless required by applicable law or agreed to in writing, software 1520 * distributed under the License is distributed on an "AS IS" BASIS, 1521 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1522 * See the License for the specific language governing permissions and 1523 * limitations under the License. 1524 */const BR=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,qR=/^https?/;async function VR(t){if(t.config.emulator)return;const{authorizedDomains:n}=await HR(t);for(const a of n)try{if(GR(a))return}catch{}rr(t,"unauthorized-domain")}function GR(t){const n=Lh(),{protocol:a,hostname:l}=new URL(n);if(t.startsWith("chrome-extension://")){const f=new URL(t);return f.hostname===""&&l===""?a==="chrome-extension:"&&t.replace("chrome-extension://","")===n.replace("chrome-extension://",""):a==="chrome-extension:"&&f.hostname===l}if(!qR.test(a))return!1;if(BR.test(t))return l===t;const s=t.replace(/\./g,"\\.");return new RegExp("^(.+\\."+s+"|"+s+")$","i").test(l)}/** 1525 * @license 1526 * Copyright 2020 Google LLC. 1527 * 1528 * Licensed under the Apache License, Version 2.0 (the "License");
1529 * you may not use this file except in compliance with the License. 1530 * You may obtain a copy of the License at 1531 * 1532 * http://www.apache.org/licenses/LICENSE-2.0 1533 * 1534 * Unless required by applicable law or agreed to in writing, software 1535 * distributed under the License is distributed on an "AS IS" BASIS, 1536 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1537 * See the License for the specific language governing permissions and 1538 * limitations under the License. 1539 */const $R=new hs(3e4,6e4);function ib(){const t=Nr().___jsl;if(t!=null&&t.H){for(const n of Object.keys(t.H))if(t.H[n].r=t.H[n].r||[],t.H[n].L=t.H[n].L||[],t.H[n].r=[...t.H[n].L],t.CP)for(let a=0;a<t.CP.length;a++)t.CP[a]=null}}function YR(t){return new Promise((n,a)=>{var l,s,u;function f(){ib(),gapi.load("gapi.iframes",{callback:()=>{n(gapi.iframes.getContext())},ontimeout:()=>{ib(),a(hr(t,"network-request-failed"))},timeout:$R.get()})}if(!((s=(l=Nr().gapi)===null||l===void 0?void 0:l.iframes)===null||s===void 0)&&s.Iframe)n(gapi.iframes.getContext());else if(!((u=Nr().gapi)===null||u===void 0)&&u.load)f();else{const p=L5("iframefcb");return Nr()[p]=()=>{gapi.load?f():a(hr(t,"network-request-failed"))},D1(`${k5()}?onload=${p}`).catch(h=>a(h))}}).catch(n=>{throw Pc=null,n})}let Pc=null;function XR(t){return Pc=Pc||YR(t),Pc}/** 1540 * @license 1541 * Copyright 2020 Google LLC. 1542 * 1543 * Licensed under the Apache License, Version 2.0 (the "License"); 1544 * you may not use this file except in compliance with the License. 1545 * You may obtain a copy of the License at 1546 * 1547 * http://www.apache.org/licenses/LICENSE-2.0 1548 * 1549 * Unless required by applicable law or agreed to in writing, software 1550 * distributed under the License is distributed on an "AS IS" BASIS, 1551 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1552 * See the License for the specific language governing permissions and 1553 * limitations under the License. 1554 */const FR=new hs(5e3,15e3),KR="__/auth/iframe",WR="emulator/auth/iframe",QR={style:{position:"absolute",top:"-100px",width:"1px",height:"1px"},"aria-hidden":"true",tabindex:"-1"},ZR=new Map([["identitytoolkit.googleapis.com","p"],["staging-identitytoolkit.sandbox.googleapis.com","s"],["test-identitytoolkit.sandbox.googleapis.com","t"]]);function JR(t){const n=t.config;Pe(n.authDomain,t,"auth-domain-config-required");const a=n.emulator?Sm(n,WR):`https://${t.config.authDomain}/${KR}`,l={apiKey:n.apiKey,appName:t.name,v:fs},s=ZR.get(t.config.apiHost);s&&(l.eid=s);const u=t._getFrameworks();return u.length&&(l.fw=u.join(",")),`${a}?${ds(l).slice(1)}`}async function e6(t){const n=await XR(t),a=Nr().gapi;return Pe(a,t,"internal-error"),n.open({where:document.body,url:JR(t),messageHandlersFilter:a.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:QR,dontclear:!0},l=>new Promise(async(s,u)=>{await l.restyle({setHideOnLeave:!1});const f=hr(t,"network-request-failed"),p=Nr().setTimeout(()=>{u(f)},FR.get());function h(){Nr().clearTimeout(p),s(l)}l.ping(h).then(h,()=>{u(f)})}))}/** 1555 * @license 1556 * Copyright 2020 Google LLC. 1557 * 1558 * Licensed under the Apache License, Version 2.0 (the "License"); 1559 * you may not use this file except in compliance with the License. 1560 * You may obtain a copy of the License at 1561 * 1562 * http://www.apache.org/licenses/LICENSE-2.0 1563 * 1564 * Unless required by applicable law or agreed to in writing, software 1565 * distributed under the License is distributed on an "AS IS" BASIS, 1566 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1567 * See the License for the specific language governing permissions and 1568 * limitations under the License. 1569 */const t6={location:"yes",resizable:"yes",statusbar:"yes",toolbar:"no"},n6=500,r6=600,a6="_blank",i6="http://localhost";class lb{constructor(n){this.window=n,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}}function l6(t,n,a,l=n6,s=r6){const u=Math.max((window.screen.availHeight-s)/2,0).toString(),f=Math.max((window.screen.availWidth-l)/2,0).toString();let p="";const h=Object.assign(Object.assign({},t6),{width:l.toString(),height:s.toString(),top:u,left:f}),v=hn().toLowerCase();a&&(p=T1(v)?a6:a),E1(v)&&(n=n||i6,h.scrollbars="yes");const w=Object.entries(h).reduce((_,[A,j])=>`${_}${A}=${j},`,"");if(T5(v)&&p!=="_self")return o6(n||"",p),new lb(null);const C=window.open(n||"",p,w);Pe(C,t,"popup-blocked");try{C.focus()}catch{}return new lb(C)}function o6(t,n){const a=document.createElement("a");a.href=t,a.target=n;const l=document.createEvent("MouseEvent");
1569l.initMouseEvent("click",!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),a.dispatchEvent(l)}/** 1570 * @license 1571 * Copyright 2021 Google LLC 1572 * 1573 * Licensed under the Apache License, Version 2.0 (the "License"); 1574 * you may not use this file except in compliance with the License. 1575 * You may obtain a copy of the License at 1576 * 1577 * http://www.apache.org/licenses/LICENSE-2.0 1578 * 1579 * Unless required by applicable law or agreed to in writing, software 1580 * distributed under the License is distributed on an "AS IS" BASIS, 1581 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1582 * See the License for the specific language governing permissions and 1583 * limitations under the License. 1584 */const s6="__/auth/handler",c6="emulator/auth/handler",u6=encodeURIComponent("fac");async function ob(t,n,a,l,s,u){Pe(t.config.authDomain,t,"auth-domain-config-required"),Pe(t.config.apiKey,t,"invalid-api-key");const f={apiKey:t.config.apiKey,appName:t.name,authType:a,redirectUrl:l,v:fs,eventId:s};if(n instanceof Cm){n.setDefaultLanguage(t.languageCode),f.providerId=n.providerId||"",$A(n.getCustomParameters())||(f.customParameters=JSON.stringify(n.getCustomParameters()));for(const[w,C]of Object.entries({}))f[w]=C}if(n instanceof ps){const w=n.getScopes().filter(C=>C!=="");w.length>0&&(f.scopes=w.join(","))}t.tenantId&&(f.tid=t.tenantId);const p=f;for(const w of Object.keys(p))p[w]===void 0&&delete p[w];const h=await t._getAppCheckToken(),v=h?`#${u6}=${encodeURIComponent(h)}`:"";return`${d6(t)}?${ds(p).slice(1)}${v}`}function d6({config:t}){return t.emulator?Sm(t,c6):`https://${t.authDomain}/${s6}`}/** 1585 * @license 1586 * Copyright 2020 Google LLC 1587 * 1588 * Licensed under the Apache License, Version 2.0 (the "License"); 1589 * you may not use this file except in compliance with the License. 1590 * You may obtain a copy of the License at 1591 * 1592 * http://www.apache.org/licenses/LICENSE-2.0 1593 * 1594 * Unless required by applicable law or agreed to in writing, software 1595 * distributed under the License is distributed on an "AS IS" BASIS, 1596 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1597 * See the License for the specific language governing permissions and 1598 * limitations under the License. 1599 */const ph="webStorageSupport";class f6{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=B1,this._completeRedirectFn=zR,this._overrideRedirectResult=jR}async _openPopup(n,a,l,s){var u;aa((u=this.eventManagers[n._key()])===null||u===void 0?void 0:u.manager,"_initialize() not called before _openPopup()");const f=await ob(n,a,l,Lh(),s);return l6(n,f,Om())}async _openRedirect(n,a,l,s){await this._originValidation(n);const u=await ob(n,a,l,Lh(),s);return pR(u),new Promise(()=>{})}_initialize(n){const a=n._key();if(this.eventManagers[a]){const{manager:s,promise:u}=this.eventManagers[a];return s?Promise.resolve(s):(aa(u,"If manager is not set, promise should be"),u)}const l=this.initAndGetManager(n);return this.eventManagers[a]={promise:l},l.catch(()=>{delete this.eventManagers[a]}),l}async initAndGetManager(n){const a=await e6(n),l=new IR(n);return a.register("authEvent",s=>(Pe(s==null?void 0:s.authEvent,n,"invalid-auth-event"),{status:l.onEvent(s.authEvent)?"ACK":"ERROR"}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[n._key()]={manager:l},this.iframes[n._key()]=a,l}_isIframeWebStorageSupported(n,a){this.iframes[n._key()].send(ph,{type:ph},s=>{var u;const f=(u=s==null?void 0:s[0])===null||u===void 0?void 0:u[ph];f!==void 0&&a(!!f),rr(n,"internal-error")},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(n){const a=n._key();return this.originValidationPromises[a]||(this.originValidationPromises[a]=VR(n)),this.originValidationPromises[a]}get _shouldInitProactively(){return N1()||_1()||Em()}}const h6=f6;var sb="@firebase/auth",cb="1.10.4";/** 1600 * @license 1601 * Copyright 2020 Google LLC 1602 * 1603 * Licensed under the Apache License, Version 2.0 (the "License"); 1604 * you may not use this file except in compliance with the License. 1605 * You may obtain a copy of the License at 1606 * 1607 * http://www.apache.org/licenses/LICENSE-2.0 1608 * 1609 * Unless required by applicable law or agreed to in writing, softw
1609are 1610 * distributed under the License is distributed on an "AS IS" BASIS, 1611 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1612 * See the License for the specific language governing permissions and 1613 * limitations under the License. 1614 */class m6{constructor(n){this.auth=n,this.internalListeners=new Map}getUid(){var n;return this.assertAuthConfigured(),((n=this.auth.currentUser)===null||n===void 0?void 0:n.uid)||null}async getToken(n){return this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser?{accessToken:await this.auth.currentUser.getIdToken(n)}:null}addAuthTokenListener(n){if(this.assertAuthConfigured(),this.internalListeners.has(n))return;const a=this.auth.onIdTokenChanged(l=>{n((l==null?void 0:l.stsTokenManager.accessToken)||null)});this.internalListeners.set(n,a),this.updateProactiveRefresh()}removeAuthTokenListener(n){this.assertAuthConfigured();const a=this.internalListeners.get(n);a&&(this.internalListeners.delete(n),a(),this.updateProactiveRefresh())}assertAuthConfigured(){Pe(this.auth._initializationPromise,"dependent-sdk-initialized-before-auth")}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}}/** 1615 * @license 1616 * Copyright 2020 Google LLC 1617 * 1618 * Licensed under the Apache License, Version 2.0 (the "License"); 1619 * you may not use this file except in compliance with the License. 1620 * You may obtain a copy of the License at 1621 * 1622 * http://www.apache.org/licenses/LICENSE-2.0 1623 * 1624 * Unless required by applicable law or agreed to in writing, software 1625 * distributed under the License is distributed on an "AS IS" BASIS, 1626 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1627 * See the License for the specific language governing permissions and 1628 * limitations under the License. 1629 */function p6(t){switch(t){case"Node":return"node";case"ReactNative":return"rn";case"Worker":return"webworker";case"Cordova":return"cordova";case"WebExtension":return"web-extension";default:return}}function g6(t){Xo(new Tl("auth",(n,{options:a})=>{const l=n.getProvider("app").getImmediate(),s=n.getProvider("heartbeat"),u=n.getProvider("app-check-internal"),{apiKey:f,authDomain:p}=l.options;Pe(f&&!f.includes(":"),"invalid-api-key",{appName:l.name});const h={apiKey:f,authDomain:p,clientPlatform:t,apiHost:"identitytoolkit.googleapis.com",tokenApiHost:"securetoken.googleapis.com",apiScheme:"https",sdkClientVersion:M1(t)},v=new M5(l,s,u,h);return B5(v,a),v},"PUBLIC").setInstantiationMode("EXPLICIT").setInstanceCreatedCallback((n,a,l)=>{n.getProvider("auth-internal").initialize()})),Xo(new Tl("auth-internal",n=>{const a=$a(n.getProvider("auth").getImmediate());return(l=>new m6(l))(a)},"PRIVATE").setInstantiationMode("EXPLICIT")),pl(sb,cb,p6(t)),pl(sb,cb,"esm2017")}/** 1630 * @license 1631 * Copyright 2021 Google LLC 1632 * 1633 * Licensed under the Apache License, Version 2.0 (the "License"); 1634 * you may not use this file except in compliance with the License. 1635 * You may obtain a copy of the License at 1636 * 1637 * http://www.apache.org/licenses/LICENSE-2.0 1638 * 1639 * Unless required by applicable law or agreed to in writing, software 1640 * distributed under the License is distributed on an "AS IS" BASIS, 1641 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1642 * See the License for the specific language governing permissions and 1643 * limitations under the License. 1644 */const v6=5*60,y6=o1("authIdTokenMaxAge")||v6;let ub=null;const b6=t=>async n=>{const a=n&&await n.getIdTokenResult(),l=a&&(new Date().getTime()-Date.parse(a.issuedAtTime))/1e3;if(l&&l>y6)return;const s=a==null?void 0:a.token;ub!==s&&(ub=s,await fetch(t,{method:s?"POST":"DELETE",headers:s?{Authorization:`Bearer ${s}`}:{}}))};function w6(t=X4()){const n=f1(t,"auth");if(n.isInitialized())return n.getImmediate();const a=H5(t,{popupRedirectResolver:h6,persistence:[_R,fR,B1]}),l=o1("authTokenSyncURL");if(l&&typeof isSecureContext=="boolean"&&isSecureContext){const u=new URL(l,location.origin);if(location.origin===u.origin){const f=b6(u.toString());oR(a,f,()=>f(a.currentUser)),lR(a,p=>f(p))}}const s=NA("auth");return s?q5(a,`http://${s}`):s1("Auth",!1),a}function S6(){var t,n;return(n=(t=document.getElementsByTagName("head"))===null||t===void 0?void 0:t[0])!==null&&n!==void 0?n:document}D5({loadJS(t){return new Promise((n,a)=>{const l=document.createElement("script");l.setAttribute("src",t),l.onload=n,l.onerror=s=>{const u=hr("internal-error");u.customData=s,a(u)},l.type="text/javascript",l.charset="UTF-8",S6().appendChild(l)})},gapiScript:"https://apis.google.com/js/api.js",recaptchaV2Script:"https://www.google.com/recaptcha/api.js",recaptchaEnterpriseScript:"https://www.google.com/recaptcha/enterprise.js?render="});g6("Browser");var x6="firebase",E6="11.7.3";/** 1645 * @license 1646 * Copyright 2020 Google LLC 1647 * 1648 * Licensed under the Apache License, Version 2.0 (the "License");
1649 * you may not use this file except in compliance with the License. 1650 * You may obtain a copy of the License at 1651 * 1652 * http://www.apache.org/licenses/LICENSE-2.0 1653 * 1654 * Unless required by applicable law or agreed to in writing, software 1655 * distributed under the License is distributed on an "AS IS" BASIS, 1656 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1657 * See the License for the specific language governing permissions and 1658 * limitations under the License. 1659 */pl(x6,E6,"app");const _6={apiKey:"AIzaSyDew1hZW6ilCyAQalhIkPuClt3XdxiueYg",authDomain:"safu-a10.firebaseapp.com",projectId:"safu-a10",storageBucket:"safu-a10.firebasestorage.app",messagingSenderId:"372466566602",appId:"1:372466566602:web:ea5e7e90db5ea7e9aafb3"},T6=h1(_6),cl=w6(T6),C6=({children:t})=>{const[n,a]=z.useState(null),[l,s]=z.useState(!0),u=new Zr,f=(_,A)=>(s(!0),nR(cl,_,A)),p=(_,A)=>(s(!0),rR(cl,_,A)),h=(_,A)=>iR(cl.currentUser,{displayName:_,photoURL:A}),v=()=>(s(!0),RR(cl,u)),w=()=>cR(cl);z.useEffect(()=>{const _=sR(cl,A=>{a(A),s(!1)});return()=>{_()}},[]);const C={user:n,setUser:a,createUser:f,updateNamePhoto:h,signInWithGoogle:v,signInWithEmail:p,logOut:w,loading:l,setLoading:s};return g.jsx(ia,{value:C,children:t})},O6=()=>{const{signInWithEmail:t,signInWithGoogle:n,setUser:a}=z.use(ia),l=Qo(),s=f=>{f.preventDefault();const p=f.target,h=new FormData(p),[v,w,C,_]=[h.get("name"),h.get("email"),h.get("photoURL"),h.get("password")];t(w,_).then(A=>{const j=A.user;a(j),p.reset(),Xt.fire({title:"Successfully Logged In!",icon:"success",background:"#1e1e1e",color:"#a0ffb0",iconColor:"#00ff88",confirmButtonColor:"#00c472",customClass:{popup:"my-swal-dark"}}),l("/")}).catch(A=>{Xt.fire({title:A.message,icon:"error",background:"#1e1e1e",color:"white",confirmButtonColor:"red",customClass:{popup:"my-swal-dark"}}),l("/")})},u=()=>{n().then(f=>{const p=f.user;a(p),Xt.fire({title:"Successfully Logged In!",icon:"success",background:"#1e1e1e",color:"#a0ffb0",iconColor:"#00ff88",confirmButtonColor:"#00c472",customClass:{popup:"my-swal-dark"}}),l("/")}).catch(f=>{Xt.fire({title:f.message,icon:"error",background:"#1e1e1e",color:"white",confirmButtonColor:"red",customClass:{popup:"my-swal-dark"}}),l("/")})};return g.jsx("div",{className:"w-full mx-auto flex justify-center",children:g.jsx("form",{onSubmit:s,children:g.jsxs("fieldset",{className:"fieldset bg-base-200 border-base-300 rounded-box w-xs border p-4",children:[g.jsx("legend",{className:"fieldset-legend",children:"Login"}),g.jsx("label",{className:"label",children:"Email"}),g.jsx("input",{type:"email",className:"input",placeholder:"Email",name:"email"}),g.jsx("label",{className:"label",children:"Password"}),g.jsx("input",{type:"password",className:"input",placeholder:"Password",name:"password"}),g.jsx("button",{className:"btn btn-neutral mt-4 mb-2",type:"submit",children:"Login"}),g.jsxs("button",{className:"btn bg-white text-black border-[#e5e5e5]",type:"button",onClick:u,children:[g.jsx("svg",{"aria-label":"Google logo",width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:g.jsxs("g",{children:[g.jsx("path",{d:"m0 0H512V512H0",fill:"#fff"}),g.jsx("path",{fill:"#34a853",d:"M153 292c30 82 118 95 171 60h62v48A192 192 0 0190 341"}),g.jsx("path",{fill:"#4285f4",d:"m386 400a140 175 0 0053-179H260v74h102q-7 37-38 57"}),g.jsx("path",{fill:"#fbbc02",d:"m90 341a208 200 0 010-171l63 49q-12 37 0 73"}),g.jsx("path",{fill:"#ea4335",d:"m153 219c22-69 116-109 179-50l55-54c-78-75-230-72-297 55"})]})}),"Login with Google"]}),g.jsx(br,{to:"/register",className:"underline mt-2 text-white",children:"Dont have an account?"})]})})})},A6=()=>{const{createUser:t,updateNamePhoto:n,signInWithGoogle:a,setUser:l}=z.use(ia),s=Qo(),u=p=>{p.preventDefault();const h=p.target,v=new FormData(h),[w,C,_,A]=[v.get("name"),v.get("email"),v.get("photoURL"),v.get("password")];t(C,A).then(j=>{const I=j.user;l(I),h.reset(),Xt.fire({title:"Successfully Registered!",icon:"success",background:"#1e1e1e",color:"#a0ffb0",iconColor:"#00ff88",confirmButtonColor:"#00c472",customClass:{popup:"my-swal-dark"}}),s("/")}
1659).catch(j=>{Xt.fire({title:j.message,icon:"error",background:"#1e1e1e",color:"white",confirmButtonColor:"red",customClass:{popup:"my-swal-dark"}})})},f=()=>{a().then(p=>{const h=p.user;l(h),Xt.fire({title:"Successfully Logged In!",icon:"success",background:"#1e1e1e",color:"#a0ffb0",iconColor:"#00ff88",confirmButtonColor:"#00c472",customClass:{popup:"my-swal-dark"}}),s("/")}).catch(p=>{Xt.fire({title:p.message,icon:"error",background:"#1e1e1e",color:"white",confirmButtonColor:"red",customClass:{popup:"my-swal-dark"}}),s("/")})};return g.jsx("div",{className:"w-full mx-auto flex justify-center",children:g.jsx("form",{onSubmit:u,children:g.jsxs("fieldset",{className:"fieldset bg-base-200 border-base-300 rounded-box w-xs border p-4",children:[g.jsx("legend",{className:"fieldset-legend",children:"Register"}),g.jsx("label",{className:"label",children:"Name"}),g.jsx("input",{type:"text",className:"input",placeholder:"Name",name:"name"}),g.jsx("label",{className:"label",children:"Email"}),g.jsx("input",{type:"email",className:"input",placeholder:"Email",name:"email"}),g.jsx("label",{className:"label",children:"Photo URL"}),g.jsx("input",{type:"text",className:"input",placeholder:"Photo URL",name:"photoURL"}),g.jsx("label",{className:"label",children:"Password"}),g.jsx("input",{type:"password",className:"input",placeholder:"Password",name:"password"}),g.jsx("button",{className:"btn btn-neutral mt-4 mb-2",type:"submit",children:"Register"}),g.jsxs("button",{className:"btn bg-white text-black border-[#e5e5e5]",type:"button",onClick:f,children:[g.jsx("svg",{"aria-label":"Google logo",width:"16",height:"16",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 512 512",children:g.jsxs("g",{children:[g.jsx("path",{d:"m0 0H512V512H0",fill:"#fff"}),g.jsx("path",{fill:"#34a853",d:"M153 292c30 82 118 95 171 60h62v48A192 192 0 0190 341"}),g.jsx("path",{fill:"#4285f4",d:"m386 400a140 175 0 0053-179H260v74h102q-7 37-38 57"}),g.jsx("path",{fill:"#fbbc02",d:"m90 341a208 200 0 010-171l63 49q-12 37 0 73"}),g.jsx("path",{fill:"#ea4335",d:"m153 219c22-69 116-109 179-50l55-54c-78-75-230-72-297 55"})]})}),"Login with Google"]}),g.jsx(br,{to:"/login",className:"underline mt-2 text-white",children:"Already have an account?"})]})})})},R6=()=>{const{user:t}=z.use(ia),n=a=>{a.preventDefault();const l=a.target,[s,u,f,p,h,v,w]=new FormData(l).values(),C={title:s,plantType:u,difficulty:f,description:p,category:h,availability:v,userName:t.displayName,userEmail:t.email,imageURL:w,totalLikes:0};fetch("https://gardenhub-server-nine.vercel.app/tips",{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify(C)}).then(_=>_.json()).then(_=>{Xt.fire({title:"Tip Added Successfully!",icon:"success",background:"#1e1e1e",color:"#a0ffb0",iconColor:"#00ff88",confirmButtonColor:"#00c472",customClass:{popup:"my-swal-dark"}}).then(A=>{A.isConfirmed&&location.reload()}),l.reset()})};return g.jsx("div",{className:"w-[90%] my-10 mx-auto rounded-xl p-8 bg-base-300 border-black border-2 bg",children:g.jsxs("div",{className:"text-center",children:[g.jsx("h1",{className:"text-3xl font-bold",children:"Share a Tip ð¡"}),g.jsxs("p",{className:"opacity-50 text-white",children:["Sharing tips is a great way to help others, It can benefit other gardeners as well. ",g.jsx("br",{})," We at GardenHub immensely value your opinion and tricks. "]}),g.jsxs("form",{className:"grid grid-cols-2 mt-8",onSubmit:n,children:[g.jsxs("div",{className:"flex flex-col w-full",children:[g.jsx("label",{className:"label text-white w-[80%] mx-auto",children:"Title"}),g.jsx("input",{type:"text",name:"title",className:"input rounded-lg w-[80%] mx-auto",placeholder:"Title (e.g., âHow I Grow Tomatoes Indoorsâ)"})]}),g.jsxs("div",{className:"flex flex-col w-full",children:[g.jsx("label",{className:"label text-white w-[80%] mx-auto",children:"Plant Type"}),g.jsx("input",{type:"text",name:"plantType",className:"input rounded-lg w-[80%] mx-auto",placeholder:"Plant Type/Topic"})]}),g.jsxs("div",{className:"flex flex-col w-full mt-4",children:[g.jsx("label",{className:"label text-white w-[80%] mx-auto",children:"Difficulty Level"}),g.jsxs("select",{name:"difficulty",defaultValue:"Difficulty Level (Easy/Medium/Hard).",className:"select w-[80%] mx-auto mt-1",children:[g.jsx("option",{disabled:!0,children:"Pick a Difficulty"}),g.jsx("option",{value:"Easy",children:"Easy"}),g.jsx("option",{value:"Medium",children:"Medium"}),g.jsx("option",{value:"Hard",children:"Hard"})]})]}),g.jsxs("div",{className:"flex flex-col w-full",children:[g.jsx("label",{className:"label text-white w-[80%] mx-auto",children:"Description"}),g.jsx("textarea",{type:"text",name:"description",className:"textarea rounded-lg w-[80%] mx-auto",placeholder:"Description (eg: An easy method to grow Tomatoes)"})]}),g.jsxs("div",{className:"flex flex-col w-full",children:[g.jsx("label",{className:"label text-white w-[80%] mx-auto",children:"Category"}),g.jsxs("select",{name:"category",defaultValue:"Category",className:"select w-[80%] mx-auto mt-1",children:[g.jsx("option",{disabled:!0,children:"Pick a Category"}),g.jsx("option",{value:"Composting",children:"Composting"}),g.jsx("option",{value:"Plant Care",children:"Plant Care"}),g.jsx("option",{value:"Vertical Gardening",children:"Vertical Gardening"})]})]}),g.jsxs("div",{className:"flex flex-col w-full mt-4",children:[g.jsx("label",{className:"label text-white w-[80%] mx-auto",children:"Availability"}),g.jsxs("select",{name:"availability",defaultValue:"Availability",className:"select w-[80%] mx-auto mt-1",children:[g.jsx("option",{disabled:!0,children:"Select Availability"}),g.jsx("option",{value:"public",children:"Public"}),g.jsx("option",{value:"hidden",children:"Hidden"})]})]}),g.jsxs("div",{className:"flex flex-col w-full",children:[g.jsxs("label",{className:"label text-white w-[80%] mx-auto",children:["User Name ",g.jsx(kw,{})]}),g.jsx("input",{type:"text",name:"userName",className:"input rounded-lg w-[80%] mx-auto text-white!",placeholder:t.displayName,value:t.displayName,disabled:!0})]}),g.jsxs("div",{className:"flex flex-col w-full mt-4",children:[g.jsxs("label",{className:"label text-white w-[80%] mx-auto",children:["User Email ",g.jsx(sm,{})]}),g.jsx("input",{type:"text",name:"userEmail",className:"input rounded-lg w-[80%] mx-auto text-white!",placeholder:t.email,value:t.email,disabled:!0})]}),g.jsxs("div",{className:"flex flex-col w-full col-span-2 mt-2",children:[g.jsx("label",{className:"label text-white w-[90%] mx-auto",children:"Image URL"}),g.jsx("input",{type:"text",name:"imageURL",className:"input rounded-lg w-[90%] mx-auto",placeholder:"Images url"})]}),g.jsx("input",{type:"submit",className:"btn col-span-2 w-[90%] mx-auto mt-8"})]})]})})},gh=({children:t})=>{const{user:n,loading:a}=z.use(ia);return a?g.jsx(dr,{}):n&&(n!=null&&n.email)?t:g.jsx(kE,{to:"/login"})};function N6(t){return rt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M15.5 12a3.5 3.5 0 1 1-7 0 3.5 3.5 0 0 1 7 0Z"},child:[]},{tag:"path",attr:{d:"M12 3.5c3.432 0 6.124 1.534 8.054 3.241 1.926 1.703 3.132 3.61 3.616 4.46a1.6 1.6 0 0 1 0 1.598c-.484.85-1.69 2.757-3.616 4.461-1.929 1.706-4.622 3.24-8.054 3.24-3.432 0-6.124-1.534-8.054-3.24C2.02 15.558.814 13.65.33 12.8a1.6 1.6 0 0 1 0-1.598c.484-.85 1.69-2.757 3.616-4.462C5.875 5.034 8.568 3.5 12 3.5ZM1.633 11.945a.115.115 0 0 0-.017.055c.001.02.006.039.017.056.441.774 1.551 2.527 3.307 4.08C6.691 17.685 9.045 19 12 19c2.955 0 5.31-1.315 7.06-2.864 1.756-1.553 2.866-3.306 3.307-4.08a.111.111 0 0 0 .017-.056.111.111 0 0 0-.017-.056c-.441-.773-1.551-2.527-3.307-4.08C17.309 6.315 14.955 5 12 5 9.045 5 6.69 6.314 4.94 7.865c-1.756 1.552-2.866 3.306-3.307 4.08Z"},child:[]}]})(t)}function M6(t){return rt({attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M12 13.5a2.5 2.5 0 1 0 0-5 2.5 2.5 0 0 0 0 5Z"},child:[]},{tag:"path",attr:{d:"M19.071 3.429h.001c3.905 3.905 3.905 10.237 0 14.142l-5.403 5.403a2.36 2.36 0 0 1-3.336 0l-5.375-5.375-.028-.028c-3.905-3.905-3.905-10.237 0-14.142 3.904-3.905 10.236-3.905 14.141 0ZM5.99 4.489v.001a8.5 8.5 0 0 0 0 12.02l.023.024.002.002 5.378 5.378a.859.859 0 0 0 1.214 0l5.403-5.404a8.5 8.5 0 0 0-.043-11.977A8.5 8.5 0 0 0 5.99 4.489Z"},child:[]}]})(t)}const D6=()=>{const t=Al(),[n,a]=z.useState(t),l=s=>{fetch(`https://gardenhub-server-nine.vercel.app/tips/public/difficulty/${s}`).then(u=>u.json()).then(u=>{a(u)})};return g.jsxs("div",{className:"w-[90%] my-10 mx-auto",children:[g.jsxs("div",{className:"flex justify-between items-end",children:[g.jsx("h1",{className:"text-3xl font-bold text-white",children:"Browse Tips"}
1659),g.jsxs("ul",{className:"menu sm:menu-horizontal menu-vertical bg-base-200 rounded-box gap-2",children:[g.jsx("li",{className:"bg-green-700 rounded-lg",children:g.jsx("a",{onClick:()=>l("Easy"),children:"Easy"})}),g.jsx("li",{className:"bg-yellow-700 rounded-lg",children:g.jsx("a",{onClick:()=>l("Medium"),children:"Medium"})}),g.jsx("li",{className:"bg-red-700 rounded-lg",children:g.jsx("a",{onClick:()=>l("Hard"),children:"Hard"})})]})]}),g.jsx("div",{className:"overflow-x-auto rounded-box border border-base-content/50 bg-base-200 mt-4",children:g.jsxs("table",{className:"table",children:[g.jsx("thead",{children:g.jsxs("tr",{children:[g.jsx("th",{children:"Image"}),g.jsx("th",{children:"Title"}),g.jsx("th",{children:"Category"}),g.jsx("th",{})]})}),g.jsx("tbody",{children:n.map(s=>g.jsxs("tr",{children:[g.jsx("td",{className:"w-[15%]",children:g.jsx("img",{src:s.imageURL,className:"w-36 rounded-xl",alt:""})}),g.jsx("td",{className:"font-bold text-lg",children:s.title}),g.jsx("td",{className:"font-medium text-md",children:g.jsx("select",{className:"select",defaultValue:s.category,children:g.jsx("option",{defaultChecked:!0,children:s.category})})}),g.jsx("td",{children:g.jsxs(br,{to:`/dashboard/tips/${s._id}`,className:"btn btn-primary font-bold",children:["See More ",g.jsx(N6,{})]})})]},s._id))})]})})]})},j6=()=>{const[t,n]=z.useState(!1),a=s=>{fetch(`https://gardenhub-server-nine.vercel.app/tips/like/${s}`,{method:"PUT"}).then(u=>u.json()).then(u=>{Xt.fire({title:"Tip Liked!",icon:"success",background:"#1e1e1e",color:"#a0ffb0",iconColor:"#00ff88",confirmButtonColor:"#00c472",customClass:{popup:"my-swal-dark"}}).then(f=>{f.isConfirmed&&location.reload()}),n(!0)})},l=Al();return g.jsxs(g.Fragment,{children:[g.jsx("div",{className:"w-[80%] mt-10 mx-auto mb-4",children:g.jsx("h1",{className:"text-3xl font-bold text-gray-200 italic",children:l.title})}),g.jsxs("div",{className:"w-[80%] my-10 bg-base-200 rounded-xl flex flex-col mx-auto p-8",children:[g.jsx("div",{children:g.jsx("img",{src:l.imageURL,alt:"",className:"rounded-lg"})}),g.jsx("div",{className:"divider divider-vertical divider-secondary"}),g.jsxs("div",{children:[g.jsxs("p",{className:"font-semibold text-xl",children:[g.jsx("span",{className:"underline underline-offset-5 text-white",children:"Plant Type:"})," ",l.plantType," ð±"]}),l.difficulty=="Hard"?g.jsxs("div",{className:"font-semibold text-xl mt-2",children:[g.jsx("span",{className:"underline underline-offset-5 text-white mr-2",children:"Difficulty:"}),g.jsx("div",{className:"badge badge-warning",children:"HARD"})]}):"",l.difficulty=="Medium"?g.jsxs("div",{className:"font-semibold text-xl mt-2",children:[g.jsx("span",{className:"underline underline-offset-5 text-white mr-2",children:"Difficulty:"}),g.jsx("div",{className:"badge bg-yellow-700 text-white",children:"MEDIUM"})]}):"",l.difficulty=="Easy"?g.jsxs("div",{className:"font-semibold text-xl mt-2",children:[g.jsx("span",{className:"underline underline-offset-5 text-white mr-2",children:"Difficulty:"}),g.jsx("div",{className:"badge bg-secondary text-white",children:"EASY"})]}):"",g.jsxs("div",{className:"flex flex-col gap-1 mt-2",children:[g.jsx("h1",{className:"text-xl font-bold text-white",children:"Description"}),g.jsx("p",{className:"text-sm",children:l.description})]}),g.jsxs("div",{className:"mt-2 text-xl font-semibold flex gap-2",children:[g.jsx("span",{className:"underline underline-offset-5 text-white mr-2",children:"Category:"}),g.jsx("div",{className:"badge badge-outline h-full",children:l.category})]}),g.jsxs("div",{className:"flex gap-4 mt-4",children:[g.jsxs("div",{className:"flex gap-2 rounded-lg bg-base-100 p-2",children:[g.jsx(hO,{className:"text-2xl rounded-lg text-blue-400"}),g.jsx("p",{children:l.userName})]}),g.jsxs("div",{className:"flex gap-2 rounded-lg bg-base-100 p-2 flex-wrap text-wrap truncate",children:[g.jsx(sm,{className:"text-2xl rounded-lg text-yellow-400"}),g.jsx("p",{children:l.userEmail})]})]}),t?g.jsxs("button",{className:"btn bg-gray-700 w-full mt-8 text-2xl",children:["Already Liked ",g.jsx(tu,{})]}):g.jsxs("button",{className:"btn btn-secondary w-full mt-8 text-2xl",onClick:()=>a(l._id),children:["Like ",g.jsx(tu,{})]})]})]})]})},k6=()=>g.jsx(g.Fragment,{children:g.jsx("div",{className:"flex justify-center items-center w-[100vw] h-[100vh]",children:g.jsxs("div",{className:"w-[30vw] rounded-xl bg-base-200 text-center p-8",children:[g.jsx("img",{src:"https://www.reshot.com/preview-assets/illustrations/45NK7CHMRZ/404-page-not-found-45NK7CHMRZ-w600.jpg",alt:"",className:"rounded-lg mb-4"}),g.jsx("h1",{className:"font-bold text-3xl text-red-500",children:"404 NOT FOUND"}),g.jsx(br,{to:"/",className:"btn btn-secondary mt-4",children:"Go Back"})]})})});function L6(t){return rt({attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"polygon",attr:{points:"22 3 2 3 10 12.46 10 19 14 21 14 12.46 22 3"},child:[]}]})(t)}const z6=()=>{const{user:t,loading:n}=z.use(ia),[a,l]=z.useState([]);z.useEffect(()=>{!n&&(t!=null&&t.email)&&fetch(`https://gardenhub-server-nine.vercel.app/tips/user/${t.email}`).then(u=>u.json()).then(u=>{l(u)}).catch(u=>console.error("Fetch error:",u))},[n,t]);const s=u=>{Xt.fire({title:"Are you sure?",text:"You won't be able to revert this!",icon:"warning",showCancelButton:!0,confirmButtonColor:"#3085d6",cancelButtonColor:"#d33",confirmButtonText:"Yes, delete it!"}).then(f=>{f.isConfirmed&&fetch(`https://gardenhub-server-nine.vercel.app/tips/${u}`,{method:"DELETE"}).then(p=>p.json()).then(p=>{p.deletedCount&&(Xt.fire({title:"Deleted!",text:"Your file has been deleted.",icon:"success",background:"#1e1e1e",color:"#a0ffb0",iconColor:"#00ff88",confirmButtonColor:"#00c472",customClass:{popup:"my-swal-dark"}}),location.reload())})})};return g.jsxs("div",{className:"w-[90%] my-10 mx-auto",children:[g.jsx("h1",{className:"text-3xl font-bold mb-4",children:"Your Tips ð¡"}),g.jsx("div",{className:"overflow-x-auto rounded-box border border-base-content/50 bg-base-200 mt-4",children:g.jsxs("table",{className:"table",children:[g.jsx("thead",{children:g.jsxs("tr",{children:[g.jsx("th",{children:"Image"}),g.jsx("th",{children:"Title"}),g.jsx("th",{children:"Category"}),g.jsx("th",{children:"Difficulty"}),g.jsx("th",{children:"Plant Type"}),g.jsx("th",{children:"Privacy"}),g.jsx("th",{})]})}),g.jsx("tbody",{children:a.map(u=>g.jsxs("tr",{children:[g.jsx("td",{className:"w-[15%]",children:g.jsx("img",{src:u.imageURL,className:"w-36 rounded-xl",alt:""})}),g.jsx("td",{className:"font-bold text-lg",children:u.title}),g.jsx("td",{className:"font-medium text-md",children:g.jsx("select",{className:"select",defaultValue:u.category,children:g.jsx("option",{defaultChecked:!0,children:u.category})})}),g.jsxs("td",{children:[u.difficulty=="Hard"?g.jsx("div",{className:"badge badge-warning",children:"HARD"}):"",u.difficulty=="Medium"?g.jsx("div",{className:"badge bg-yellow-700 text-white",children:"MEDIUM"}):"",u.difficulty=="Easy"?g.jsx("div",{className:"badge bg-secondary text-white",children:"EASY"}):""]}),g.jsx("td",{className:"text-lg",children:u.plantType}),g.jsx("td",{children:u.availability=="public"?g.jsxs("div",{className:"badge badge-success text-black",children:["Public ",g.jsx(_3,{})]}):g.jsxs("div",{className:"badge badge-error",children:["Private ",g.jsx(__,{})]})}),g.jsxs("td",{children:[g.jsx(br,{to:`/dashboard/updateTips/${u._id}`,className:"btn btn-warning text-xl rounded-lg mb-2 mr-2",children:g.jsx(E_,{})}),g.jsx("button",{className:"btn btn-error text-xl rounded-lg",onClick:()=>s(u._id),children:g.jsx(vO,{})})]})]},u._id))})]})})]})},P6=()=>{const t=Al(),{user:n,loading:a}=z.use(ia),l=Qo();if(a)return g.jsx(dr,{});const s=u=>{u.preventDefault();const f=u.target,[p,h,v,w,C,_,A]=new FormData(f).values(),j={title:p,plantType:h,difficulty:v,description:w,category:C,availability:_,userName:n.displayName,userEmail:n.email,imageURL:A};fetch(`https://gardenhub-server-nine.vercel.app/tips/${t._id}`,{method:"PUT",headers:{"content-type":"application/json"},body:JSON.stringify(j)}).then(I=>I.json()).then(I=>{Xt.fire({title:"Tip Updated Successfully!",icon:"success",background:"#1e1e1e",color:"#a0ffb0",iconColor:"#00ff88",confirmButtonColor:"#00c472",customClass:{popup:"my-swal-dark"}}),l("/myTips")})};return g.jsx(g.Fragment,{children:g.jsxs("div",{className:"bgUpdate border border-black p-8 rounded-xl w-[90%] my-10 mx-auto",children:[g.jsx("h1",{className:"text-3xl font-bold text-center mb-4",children:"Update Tip"}),g.jsxs("form",{className:"grid grid-cols-2 mt-8",onSubmit:s,children:[g.jsxs("div",{className:"flex flex-col w-full",children:[g.jsx("label",{className:"label text-white w-[80%] mx-auto",children:"Title"}),g.jsx("input",{type:"text",name:"title",className:"input rounded-lg w-[80%] mx-auto",placeholder:"Title (e.g., âHow I Grow Tomatoes Indoorsâ)",defaultValue:t.title})]}),g.jsxs("div",{className:"flex flex-col w-full",children:[g.jsx("label",{className:"label text-white w-[80%] mx-auto",children:"Plant Type"}),g.jsx("input",{type:"text",name:"plantType",className:"input rounded-lg w-[80%] mx-auto",placeholder:"Plant Type/Topic",defaultValue:t.plantType})]}),g.jsxs("div",{className:"flex flex-col w-full mt-4",children:[g.jsx("label",{className:"label text-white w-[80%] mx-auto",children:"Difficulty Level"}),g.jsxs("select",{name:"difficulty",defaultValue:t.difficulty,className:"select w-[80%] mx-auto mt-1",children:[g.jsx("option",{disabled:!0,children:"Pick a Difficulty"}),g.jsx("option",{value:"Easy",children:"Easy"}),g.jsx("option",{value:"Medium",children:"Medium"}),g.jsx("option",{value:"Hard",children:"Hard"})]})]}),g.jsxs("div",{className:"flex flex-col w-full",children:[g.jsx("label",{className:"label text-white w-[80%] mx-auto",children:"Description"}),g.jsx("textarea",{type:"text",name:"description",className:"textarea rounded-lg w-[80%] mx-auto",placeholder:"Description (eg: An easy method to grow Tomatoes)",defaultValue:t.description})]}),g.jsxs("div",{className:"flex flex-col w-full",children:[g.jsx("label",{className:"label text-white w-[80%] mx-auto",children:"Category"}),g.jsxs("select",{name:"category",defaultValue:t.category,className:"select w-[80%] mx-auto mt-1",children:[g.jsx("option",{disabled:!0,children:"Pick a Category"}),g.jsx("option",{value:"Composting",children:"Composting"}),g.jsx("option",{value:"Plant Care",children:"Plant Care"}),g.jsx("option",{value:"Vertical Gardening",children:"Vertical Gardening"})]})]}),g.jsxs("div",{className:"flex flex-col w-full mt-4",children:[g.jsx("label",{className:"label text-white w-[80%] mx-auto",children:"Availability"}),g.jsxs("select",{name:"availability",defaultValue:t.availability,className:"select w-[80%] mx-auto mt-1",children:[g.jsx("option",{disabled:!0,children:"Select Availability"}),g.jsx("option",{value:"public",children:"Public"}),g.jsx("option",{value:"hidden",children:"Hidden"})]})]}),g.jsxs("div",{className:"flex flex-col w-full",children:[g.jsxs("label",{className:"label text-white w-[80%] mx-auto",children:["User Name ",g.jsx(kw,{})]}),g.jsx("input",{type:"text",name:"userName",className:"input rounded-lg w-[80%] mx-auto text-white!",placeholder:n.displayName,defaultValue:n.displayName,disabled:!0})]}),g.jsxs("div",{className:"flex flex-col w-full mt-4",children:[g.jsxs("label",{className:"label text-white w-[80%] mx-auto",children:["User Email ",g.jsx(sm,{})]}),g.jsx("input",{type:"text",name:"userEmail",className:"input rounded-lg w-[80%] mx-auto text-white!",placeholder:n.email,defaultValue:n.email,disabled:!0})]}),g.jsxs("div",{className:"flex flex-col w-full col-span-2 mt-2",children:[g.jsx("label",{className:"label text-white w-[90%] mx-auto",children:"Image URL"}),g.jsx("input",{type:"text",name:"imageURL",className:"input rounded-lg w-[90%] mx-auto",placeholder:"Images url",defaultValue:t.imageURL})]}),g.jsx("input",{type:"submit",className:"btn col-span-2 w-[90%] mx-auto mt-8"})]})]})})},I6=()=>{const[t,n]=z.useState("asc"),[a,l]=z.useState(Al()),s=()=>{t==="asc"?fetch(`https://gardenhub-server-nine.vercel.app/gardenSort/${t}`).then(f=>f.json()).then(f=>{l(f),n("desc")}).catch(f=>console.error("Fetch error:",f)):t==="desc"&&fetch(`https://gardenhub-server-nine.vercel.app/gardenSort/${t}`).then(f=>f.json()).then(f=>{l(f),n("asc")}
1659).catch(f=>console.error("Fetch error:",f))},u=f=>{fetch(`https://gardenhub-server-nine.vercel.app/gardenFilter/age/?age=${f}`).then(p=>p.json()).then(p=>{l(p)}).catch(p=>console.error("Fetch error:",p))};return g.jsxs("div",{className:"w-[95vw] mx-auto mt-10",children:[g.jsxs("div",{className:"flex",children:[g.jsx("h1",{className:"text-3xl text-start italic underline mr-4",children:"Explore Gardeners"}),g.jsx("button",{className:"text-3xl btn btn-ghost btn-circle mr-1",onClick:s,children:g.jsx(R_,{})}),g.jsx("button",{className:"text-3xl btn btn-ghost btn-circle",popoverTarget:"popover-1",style:{anchorName:"--anchor-1"},children:g.jsx(L6,{})}),g.jsxs("ul",{className:"dropdown menu w-fit rounded-box bg-base-200 shadow-sm",popover:"auto",id:"popover-1",style:{positionAnchor:"--anchor-1"},children:[g.jsx("h1",{className:"text-2xl text-center",children:"AGE"}),g.jsx("div",{className:"divider divider-vertical mt-0 mb-1"}),g.jsx("li",{onClick:()=>u("under30"),children:g.jsx("a",{children:"Under 30"})}),g.jsx("li",{onClick:()=>u("30to39"),children:g.jsx("a",{children:"30-39"})}),g.jsx("li",{onClick:()=>u("40-49"),children:g.jsx("a",{children:"40-49"})}),g.jsx("li",{onClick:()=>u("50plus"),children:g.jsx("a",{children:"Over 30"})})]})]}),g.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 min-[1215px]:grid-cols-4 gap-12 mt-10",children:a.map((f,p)=>g.jsx(t1,{gardener:f},p))})]})},U6=()=>{const t=TE(),n=g.jsxs(g.Fragment,{children:[g.jsx("li",{children:g.jsx(br,{to:"/dashboard",children:"Overview"})}),g.jsx("li",{children:g.jsx(Or,{to:"/dashboard/browseTips",children:"Browse Tips"})}),g.jsx("li",{children:g.jsx(Or,{to:"/dashboard/shareTip",children:"Share a Garden Tip"})}),g.jsx("li",{children:g.jsx(Or,{to:"/dashboard/myTips",children:"My Tips"})})]});return g.jsxs("div",{className:"drawer md:drawer-open",children:[g.jsx("input",{id:"my-drawer-2",type:"checkbox",className:"drawer-toggle"}),g.jsxs("div",{className:"drawer-content",children:[g.jsx("label",{htmlFor:"my-drawer-2",className:"btn btn-primary btn-circle drawer-button md:hidden btn-ghost text-3xl ml-8 mt-12",children:g.jsx(C_,{})}),t.state==="loading"?g.jsx(dr,{}):g.jsx(Db,{})]}),g.jsxs("div",{className:"drawer-side",children:[g.jsx("label",{htmlFor:"my-drawer-2","aria-label":"close sidebar",className:"drawer-overlay"}),g.jsxs("ul",{className:"menu bg-base-200 text-base-content min-h-full w-60 p-4 text-lg",children:[g.jsx("h1",{className:"text-center italic text-3xl",children:"DASHBOARD"}),g.jsx("div",{className:"divider divider-vertical mt-0 mb-1"}),n]})]})]})};function H6(t){return rt({attr:{version:"1.1",viewBox:"0 0 16 16"},child:[{tag:"path",attr:{d:"M10.293 11.707l-3.293-3.293v-4.414h2v3.586l2.707 2.707zM8 0c-4.418 0-8 3.582-8 8s3.582 8 8 8 8-3.582 8-8-3.582-8-8-8zM8 14c-3.314 0-6-2.686-6-6s2.686-6 6-6c3.314 0 6 2.686 6 6s-2.686 6-6 6z"},child:[]}]})(t)}const B6=()=>{const{user:t}=z.use(ia);return g.jsxs("div",{className:"bg-base-200 p-4 rounded-xl shadow-lg flex gap-4 sm:w-fit w-full sm:col-span-2 col-span-3 overflow-hidden truncate",children:[g.jsx("div",{className:"h-full text-7xl",children:g.jsx(A3,{})}),g.jsxs("div",{className:"text-md",children:[g.jsxs("h1",{className:"flex gap-2 items-center",children:[g.jsx(dO,{})," ",t.displayName]}),g.jsxs("h1",{className:"flex gap-2 items-center",children:[g.jsx(yO,{})," @",t.email]}),g.jsxs("h1",{className:"flex gap-2 items-center",children:[g.jsx(H6,{})," ",t.metadata.creationTime," "]})]})]})},q6=({count:t})=>g.jsxs("div",{className:"p-4 rounded-xl shadow-lg flex flex-col gap-4 w-[30%] truncate mb-4 bg-gradient-to-t from-purple-950 to-purple-700 border border-gray-600",children:[g.jsxs("div",{children:[g.jsx("h1",{className:"text-2xl",children:t}),g.jsx("p",{className:"text-sm",children:"Gardeners ð¡"})]}),g.jsx("div",{children:g.jsx("svg",{viewBox:"0 0 100 40",className:"h-12",children:g.jsx("polyline",{fill:"none",stroke:"rgb(168, 85, 247)",strokeWidth:"2",points:"0,30 15,20 30,25 45,10 60,15 75,5 90,10,10"})})})]}),V6=({count:t})=>g.jsxs("div",{className:"p-4 rounded-xl shadow-lg flex flex-col gap-4 w-[30%] mb-4 bg-gradient-to-t from-blue-950 to-blue-700 border border-gray-600 truncate",children:[g.jsxs("div",{children:[g.jsx("h1",{className:"text-2xl",children:t}),g.jsx("p",{className:"text-sm",children:"Tips ð¡"})]}),g.jsx("div",{children:g.jsx("svg",{viewBox:"0 0 100 40",className:" h-12",children:g.jsx("polyline",{fill:"none",stroke:"white",strokeWidth:"2",points:"0,25 15,22 30,28 45,14 60,20 75,10 90,18"})})})]}
1659),G6=[{id:1,type:"reminder",message:"It's time to water your Aloe Vera plant today!",avatar:"https://img.daisyui.com/images/profile/demo/plant1.webp",time:"2 hours ago"},{id:2,type:"tip",message:"New gardening tip: Use coffee grounds to enrich your soil.",avatar:"https://img.daisyui.com/images/profile/demo/tip.webp",time:"1 day ago"},{id:3,type:"weather",message:"Frost warning tonight â protect your outdoor plants!",avatar:"https://img.daisyui.com/images/profile/demo/weather.webp",time:"3 hours ago"},{id:4,type:"community",message:"Sabrino Gardener posted a new photo of his succulent collection.",avatar:"https://img.daisyui.com/images/profile/demo/[email protected]",time:"30 minutes ago"},{id:5,type:"reminder",message:"Time to fertilize your tomato plants this week.",avatar:"https://img.daisyui.com/images/profile/demo/plant2.webp",time:"5 days ago"}],$6=()=>g.jsx("div",{className:"mt-4 col-span-3",children:g.jsxs("ul",{className:"list bg-base-200 rounded-box shadow-md",children:[g.jsxs("li",{className:"p-4 pb-2 text-xs opacity-60 tracking-wide flex items-center gap-2",children:[" ",g.jsxs("span",{className:"text-xl",children:[" ",g.jsx(By,{})," "]})," Notifications this week"]}),G6.map((t,n)=>g.jsxs("li",{className:"list-row",children:[g.jsxs("div",{className:"text-4xl font-thin opacity-30 tabular-nums",children:["0",n+1]}),g.jsxs("div",{className:"list-col-grow",children:[g.jsx("div",{children:t.message}),g.jsx("div",{className:"text-xs uppercase font-semibold opacity-60",children:t.type})]}),g.jsx(By,{className:"text-2xl"})]}))]})}),Y6=({count:t})=>g.jsxs("div",{className:"p-4 rounded-xl justify-between truncate shadow-lg flex flex-col gap-4 w-[30%] mb-4 bg-gradient-to-t from-pink-950 to-pink-700 border border-gray-600 md:h-[150%]",children:[g.jsxs("div",{children:[g.jsx("h1",{className:"text-5xl",children:t}),g.jsx("p",{className:"text-xl",children:"Likes"})]}),g.jsx("div",{className:"flex justify-center items-end h-full",children:g.jsx(tu,{className:"text-7xl"})})]});function X6(t){return rt({attr:{version:"1.2",baseProfile:"tiny",viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M16.972 6.251c-.967-.538-2.185-.188-2.72.777l-3.713 6.682-2.125-2.125c-.781-.781-2.047-.781-2.828 0-.781.781-.781 2.047 0 2.828l4 4c.378.379.888.587 1.414.587l.277-.02c.621-.087 1.166-.46 1.471-1.009l5-9c.537-.966.189-2.183-.776-2.72z"},child:[]}]})(t)}const F6=["Create a new garden layout","Track plant watering schedule","Set fertilizer reminders","Log plant growth progress","Browse community gardening tips","Share a gardening tip","Upload a plant photo","View nearby gardeners","Send message to a gardener"],K6=()=>g.jsx("div",{className:"mt-4 col-span-3",children:g.jsxs("ul",{className:"list bg-base-200 rounded-box shadow-md",children:[g.jsxs("li",{className:"p-4 pb-2 text-xs opacity-60 tracking-wide flex items-center gap-2",children:[" ",g.jsxs("span",{className:"text-xl",children:[" ",g.jsx(M_,{})," "]})," Tasks this week"]}),F6.map((t,n)=>g.jsxs("li",{className:"list-row",children:[g.jsxs("div",{className:"text-4xl font-thin opacity-30 tabular-nums",children:["0",n+1]}),g.jsxs("div",{className:"list-col-grow",children:[g.jsx("div",{children:t}),g.jsxs("div",{className:"text-xs uppercase font-semibold opacity-60",children:[n/2," Days Ago"]})]}),g.jsx(X6,{className:"text-2xl"})]}))]})}),W6=()=>{const t=Al();return g.jsxs("div",{className:"flex",style:{},children:[g.jsx("div",{className:"flex flex-col p-8",children:g.jsxs("div",{className:"grid grid-cols-3",children:[g.jsxs("div",{className:"flex justify-between col-span-3",children:[g.jsx(q6,{count:t.gardenersCount}),g.jsx(V6,{count:t.tipsCount}),g.jsx(Y6,{count:t.totalLikes})]}),g.jsx(B6,{}),g.jsx($6,{})]})}),g.jsx("div",{className:"p-4 hidden lg:block",children:g.jsx(K6,{})})]})};function Q6(t){return rt({attr:{version:"1",viewBox:"0 0 48 48",enableBackground:"new 0 0 48 48"},child:[{tag:"polygon",attr:{fill:"#90CAF9",points:"40,45 8,45 8,3 30,3 40,13"},child:[]},{tag:"polygon",attr:{fill:"#E1F5FE",points:"38.5,14 29,14 29,4.5"},child:[]},{tag:"g",attr:{fill:"#1976D2"},child:[{tag:"rect",attr:{x:"16",y:"21",width:"17",height:"2"},child:[]},{tag:"rect",attr:{x:"16",y:"25",width:"13",height:"2"},child:[]},{tag:"rect",attr:{x:"16",y:"29",width:"17",height:"2"},child:[]},{tag:"rect",attr:{x:"16",y:"33",width:"13",height:"2"},child:[]}]}]})(t)}const Z6=()=>{const t=Al();return g.jsxs("div",{className:"w-[95vw] mx-auto",children:[g.jsx("div",{className:"breadcrumbs text-sm mt-5 mb-3",children:g.jsxs("ul",{children:[g.jsx("li",{children:"Gardeners"}),g.jsx("li",{children:t.name})]})}),g.jsxs("div",{className:"flex flex-col sm:flex-row gap-6",children:[g.jsx("div",{children:g.jsx("img",{src:t.image,className:"rounded-xl w-85",alt:""})}),g.jsxs("div",{className:"bg-base-200 w-full rounded-xl p-8",children:[g.jsxs("h1",{className:"text-3xl",children:[t.name," (",t.age,")"]}),g.jsx("div",{className:"divider divider-vertical mt-0 mb-2"}),g.jsxs("div",{className:"flex gap-2 mb-3",children:[g.jsxs("div",{className:"badge bg-yellow-300 text-black font-bold",children:[t.rating," ",g.jsx(Lw,{})]}),g.jsxs("div",{className:"badge badge-info font-semibold",children:[t.totalSharedTips," ð¡"]})]}),g.jsx("p",{className:"mb-3",children:t.bio}),g.jsxs("div",{className:"flex gap-2 items-center",children:[g.jsx(M6,{className:"text-red-500 text-xl"}),g.jsx("p",{children:t.location})]}),g.jsxs("div",{className:"flex gap-2 items-center mt-3",children:[g.jsx(Q6,{className:"text-blue-500 text-xl"}),g.jsx("p",{children:t.specialization})]})]})]})]})},J6=i_([{path:"/",Component:N3,children:[{index:!0,Component:SA},{path:"/login",Component:O6},{path:"/register",Component:A6},{path:"/dashboard",Component:U6,children:[{index:!0,element:g.jsx(gh,{children:g.jsx(W6,{})}),loader:async()=>{const t=fetch("https://gardenhub-server-nine.vercel.app/gardeners").then(u=>u.json()),n=fetch("https://gardenhub-server-nine.vercel.app/tips/public").then(u=>u.json()),[a,l]=await Promise.all([t,n]);let s=0;for(const u of l)s+=u.totalLikes;return{gardenersCount:a.length,tipsCount:l.length,totalLikes:s}}},{path:"/dashboard/myTips",element:g.jsx(gh,{children:g.jsx(z6,{})})},{path:"/dashboard/shareTip",element:g.jsx(gh,{children:g.jsx(R6,{})}),hydrateFallbackElement:g.jsx(dr,{})},{path:"/dashboard/browseTips",Component:D6,loader:()=>fetch("https://gardenhub-server-nine.vercel.app/tips/public"),hydrateFallbackElement:g.jsx(dr,{})},{path:"/dashboard/tips/:id",Component:j6,loader:async({params:t})=>fetch(`https://gardenhub-server-nine.vercel.app/tips/${t.id}`),hydrateFallbackElement:g.jsx(dr,{})},{path:"/dashboard/updateTips/:id",Component:P6,loader:async({params:t})=>fetch(`https://gardenhub-server-nine.vercel.app/tips/${t.id}`),hydrateFallbackElement:g.jsx(dr,{})}]},{path:"/gardeners",Component:I6,loader:()=>fetch("https://gardenhub-server-nine.vercel.app/gardeners"),hydrateFallbackElement:g.jsx(dr,{})},{path:"/gardener/:id",loader:({params:t})=>fetch(`https://gardenhub-server-nine.vercel.app/gardeners/${t.id}`),Component:Z6,hydrateFallbackElement:g.jsx(dr,{})},{path:"/aboutUs",Component:()=>g.jsxs("div",{className:"max-w-5xl mx-auto px-6 py-12",children:[g.jsx("h1",{className:"text-4xl font-bold text-center mb-8",children:"About Us"}),g.jsx("div",{className:"bg-base-200 border border-green-200 p-6 md:p-10 rounded-2xl shadow-md",children:g.jsxs("p",{className:"text-lg leading-relaxed",children:[g.jsx("strong",{children:"GardenHub"})," is a vibrant community platform where gardeners of all levels connect, share tips, and inspire growth. From urban balconies to sprawling backyards, our mission is to cultivate knowledge, creativity, and a passion for sustainable gardening. Whether youâre a seasoned expert or just planting your first seed, GardenHub is your trusted companion in every step of your green journey."]})})]})},{path:"/contactUs",Component:()=>g.jsxs("div",{className:"w-[95vw] mx-auto",children:[g.jsx("h1",{className:"text-4xl mb-8",children:"Contact Us"}),g.jsxs("div",{className:"flex flex-col md:flex-row gap-4",children:[g.jsxs("div",{className:"card bg-base-200 shadow-xl p-8 md:w-[30%]",children:[g.jsx("h1",{className:"card-title sm:text-2xl text-xl mb-4",children:"Give us a call"}),g.jsx("button",{className:"btn btn-secondary w-fit",children:"Call Now"})]}),g.jsxs("div",{className:"card bg-base-200 shadow-xl p-8 md:w-fit",children:[g.jsx("h1",{className:"card-title sm:text-2xl text-xl truncate mb-4",children:"Or Contact through Email"}),g.jsx("button",{className:"btn btn-secondary w-fit",children:"Email Now"})]}),g.jsxs("div",{className:"card bg-base-200 shadow-xl p-8 w-full",children:[g.jsx("h1",{className:"card-title sm:text-2xl text-xl mb-2",children:"Give us some feedback!"}),g.jsx("textarea",{className:"input rounded-xl w-full mb-4"}),g.jsx("button",{className:"btn btn-primary w-fit",onClick:()=>
1659{Xt.fire({title:"Thank you for your feedback!"})},children:"Submit"})]})]})]})}]},{path:"*",Component:k6}]);cx.createRoot(document.getElementById("root")).render(g.jsx(z.StrictMode,{children:g.jsx(C6,{children:g.jsx(ME,{router:J6})})}));
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.