PageSourceSearch

https://contexto.me/assets/index-Vzvwex02.js

js contexto.me collected 2026-10-03 22:54:03 UTC 1,130,978 bytes, 2,436 lines download raw bytes

1var e=Object.create,t=Object.defineProperty,n=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,i=Object.getPrototypeOf,a=Object.prototype.hasOwnProperty,o=(e,t,n)=>()=>{if(n)throw n[0];try{return e&&(t=e(e=0)),t}catch(e){throw n=[e],e}},s=(e,t)=>()=>(t||(e((t={exports:{}}).exports,t),e=null),t.exports),c=(e,n)=>{let r={};for(var i in e)t(r,i,{get:e[i],enumerable:!0});return n||t(r,Symbol.toStringTag,{value:`Module`}),r},l=(e,i,o,s)=>{if(i&&typeof i==`object`||typeof i==`function`)for(var c=r(i),l=0,u=c.length,d;l<u;l++)d=c[l],!a.call(e,d)&&d!==o&&t(e,d,{get:(e=>i[e]).bind(null,d),enumerable:!(s=n(i,d))||s.enumerable});return e},u=(n,r,o)=>(o=n==null?{}:e(i(n)),l(r||!n||!n.__esModule||!a.call(n,`default`)?t(o,`default`,{value:n,enumerable:!0}):o,n)),d=e=>a.call(e,`module.exports`)?e[`module.exports`]:l(t({},`__esModule`,{value:!0}),e);(function(){let e=document.createElement(`link`).relList;if(e&&e.supports&&e.supports(`modulepreload`))return;for(let e of document.querySelectorAll(`link[rel="modulepreload"]`))n(e);new MutationObserver(e=>{for(let t of e)if(t.type===`childList`)for(let e of t.addedNodes)e.tagName===`LINK`&&e.rel===`modulepreload`&&n(e)}).observe(document,{childList:!0,subtree:!0});function t(e){let t={};return e.integrity&&(t.integrity=e.integrity),e.referrerPolicy&&(t.referrerPolicy=e.referrerPolicy),t.credentials=e.crossOrigin===`use-credentials`?`include`:e.crossOrigin===`anonymous`?`omit`:`same-origin`,t}function n(e){if(e.ep)return;e.ep=!0;let n=t(e);fetch(e.href,n)}})();var f=s((e=>{var t=Symbol.for(`react.element`),n=Symbol.for(`react.portal`),r=Symbol.for(`react.fragment`),i=Symbol.for(`react.strict_mode`),a=Symbol.for(`react.profiler`),o=Symbol.for(`react.provider`),s=Symbol.for(`react.context`),c=Symbol.for(`react.forward_ref`),l=Symbol.for(`react.suspense`),u=Symbol.for(`react.memo`),d=Symbol.for(`react.lazy`),f=Symbol.iterator;function p(e){return typeof e!=`object`||!e?null:(e=f&&e[f]||e[`@@iterator`],typeof e==`function`?e:null)}var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},h=Object.assign,g={};function _(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}_.prototype.isReactComponent={},_.prototype.setState=function(e,t){if(typeof e!=`object`&&typeof e!=`function`&&e!=null)throw Error(`setState(...): takes an object of state variables to update or a function which returns an object of state variables.`);this.updater.enqueueSetState(this,e,t,`setState`)},_.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,`forceUpdate`)};function v(){}v.prototype=_.prototype;function y(e,t,n){this.props=e,this.context=t,this.refs=g,this.updater=n||m}var b=y.prototype=new v;b.constructor=y,h(b,_.prototype),b.isPureReactComponent=!0;var x=Array.isArray,S=Object.prototype.hasOwnProperty,C={current:null},w={key:!0,ref:!0,__self:!0,__source:!0};function T(e,n,r){var i,a={},o=null,s=null;if(n!=null)for(i in n.ref!==void 0&&(s=n.ref),n.key!==void 0&&(o=``+n.key),n)S.call(n,i)&&!w.hasOwnProperty(i)&&(a[i]=n[i]);var c=arguments.length-2;if(c===1)a.children=r;else if(1<c){for(var l=Array(c),u=0;u<c;u++)l[u]=arguments[u+2];a.children=l}if(e&&e.defaultProps)for(i in c=e.defaultProps,c)a[i]===void 0&&(a[i]=c[i]);return{$$typeof:t,type:e,key:o,ref:s,props:a,_owner:C.current}}function E(e,n){return{$$typeof:t,type:e.type,key:n,ref:e.ref,props:e.props,_owner:e._owner}}function ee(e){return typeof e==`object`&&!!e&&e.$$typeof===t}function te(e){var t={"=":`=0`,":":`=2`};return`$`+e.replace(/[=:]/g,function(e){return t[e]})}var D=/\/+/g;function ne(e,t){return typeof e==`object`&&e&&e.key!=null?te(``+e.key):t.toString(36)}function re(e,r,i,a,o){var s=typeof e;(s===`undefined`||s===`boolean`)&&(e=null);var c=!1;if(e===null)c=!0;else switch(s){case`string`:case`number`:c=!0;break;case`object`:switch(e.$$typeof){case t:case n:c=!0}}if(c)return c=e,o=o(c),e=a===``?`.`+ne(c,0):a,x(o)?(i=``,e!=null&&(i=e.replace(D,`$&/`)+`/`),re(o,r,i,``,function(e){return e})):o!=null&&(ee(o)&&(o=E(o,i+(!o.key||c&&c.key===o.key?``:(``+o.key).replace(D,`$&/`)+`/`)+e)),r.push(o)),1;if(c=0,a=a===``?`.`:a+`:`,x(e))for(var l=0;l<e.length;l++){s=e[l];var u=a+ne(s,l);c+=re(s,r,i,u,o)}else if(u=p(e),typeof u==`function`)for(e=u.call(e),l=0;!(s=e.next()).done;)s=s.value,u=a+ne(s,l++),c+=re(s,r,i,u,o);else if(s===`object`)throw r=String(e),Error(`Objects are not valid as a React child (found: `+(r===`[object Object]`?`object with keys {`+Object.keys(e).join(`, `)+`}`:r)+`). If you meant to render a collection of children, use an array instead.`);return c}function O(e,t,n){if(e==null)return e;var r=[],i=0;return re(e,r,``,``,function(e){return t.call(n,e,i++)}),r}function ie(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(t){(e._status===0||e._status===-1)&&(e._status=1,e._result=t)},function(t){(e._status===0||e._status===-1)&&(e._status=2,e._result=t)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var k={current:null},ae={transition:null},oe={ReactCurrentDispatcher:k,ReactCurrentBatchConfig:ae,ReactCurrentOwner:C};function A(){throw Error(`act(...) is not supported in production builds of React.`)}e.Children={map:O,forEach:function(e,t,n){O(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return O(e,function(){t++}),t},toArray:function(e){return O(e,function(e){return e})||[]},only:function(e){if(!ee(e))throw Error(`React.Children.only expected to receive a single React element child.`);return e}},e.Component=_,e.Fragment=r,e.Profiler=a,e.PureComponent=y,e.StrictMode=i,e.Suspense=l,e.__SECRET_INT
vendor: 7,457 bytes, line 1
1ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=oe,e.act=A,e.cloneElement=function(e,n,r){if(e==null)throw Error(`React.cloneElement(...): The argument must be a React element, but you passed `+e+`.`);var i=h({},e.props),a=e.key,o=e.ref,s=e._owner;if(n!=null){if(n.ref!==void 0&&(o=n.ref,s=C.current),n.key!==void 0&&(a=``+n.key),e.type&&e.type.defaultProps)var c=e.type.defaultProps;for(l in n)S.call(n,l)&&!w.hasOwnProperty(l)&&(i[l]=n[l]===void 0&&c!==void 0?c[l]:n[l])}var l=arguments.length-2;if(l===1)i.children=r;else if(1<l){c=Array(l);for(var u=0;u<l;u++)c[u]=arguments[u+2];i.children=c}return{$$typeof:t,type:e.type,key:a,ref:o,props:i,_owner:s}},e.createContext=function(e){return e={$$typeof:s,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:o,_context:e},e.Consumer=e},e.createElement=T,e.createFactory=function(e){var t=T.bind(null,e);return t.type=e,t},e.createRef=function(){return{current:null}},e.forwardRef=function(e){return{$$typeof:c,render:e}},e.isValidElement=ee,e.lazy=function(e){return{$$typeof:d,_payload:{_status:-1,_result:e},_init:ie}},e.memo=function(e,t){return{$$typeof:u,type:e,compare:t===void 0?null:t}},e.startTransition=function(e){var t=ae.transition;ae.transition={};try{e()}finally{ae.transition=t}},e.unstable_act=A,e.useCallback=function(e,t){return k.current.useCallback(e,t)},e.useContext=function(e){return k.current.useContext(e)},e.useDebugValue=function(){},e.useDeferredValue=function(e){return k.current.useDeferredValue(e)},e.useEffect=function(e,t){return k.current.useEffect(e,t)},e.useId=function(){return k.current.useId()},e.useImperativeHandle=function(e,t,n){return k.current.useImperativeHandle(e,t,n)},e.useInsertionEffect=function(e,t){return k.current.useInsertionEffect(e,t)},e.useLayoutEffect=function(e,t){return k.current.useLayoutEffect(e,t)},e.useMemo=function(e,t){return k.current.useMemo(e,t)},e.useReducer=function(e,t,n){return k.current.useReducer(e,t,n)},e.useRef=function(e){return k.current.useRef(e)},e.useState=function(e){return k.current.useState(e)},e.useSyncExternalStore=function(e,t,n){return k.current.useSyncExternalStore(e,t,n)},e.useTransition=function(){return k.current.useTransition()},e.version=`18.3.1`})),p=s(((e,t)=>{t.exports=f()})),m=s((e=>{function t(e,t){var n=e.length;e.push(t);a:for(;0<n;){var r=n-1>>>1,a=e[r];if(0<i(a,t))e[r]=t,e[n]=a,n=r;else break a}}function n(e){return e.length===0?null:e[0]}function r(e){if(e.length===0)return null;var t=e[0],n=e.pop();if(n!==t){e[0]=n;a:for(var r=0,a=e.length,o=a>>>1;r<o;){var s=2*(r+1)-1,c=e[s],l=s+1,u=e[l];if(0>i(c,n))l<a&&0>i(u,c)?(e[r]=u,e[l]=n,r=l):(e[r]=c,e[s]=n,r=s);else if(l<a&&0>i(u,n))e[r]=u,e[l]=n,r=l;else break a}}return t}function i(e,t){var n=e.sortIndex-t.sortIndex;return n===0?e.id-t.id:n}if(typeof performance==`object`&&typeof performance.now==`function`){var a=performance;e.unstable_now=function(){return a.now()}}else{var o=Date,s=o.now();e.unstable_now=function(){return o.now()-s}}var c=[],l=[],u=1,d=null,f=3,p=!1,m=!1,h=!1,g=typeof setTimeout==`function`?setTimeout:null,_=typeof clearTimeout==`function`?clearTimeout:null,v=typeof setImmediate<`u`?setImmediate:null;typeof navigator<`u`&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function y(e){for(var i=n(l);i!==null;){if(i.callback===null)r(l);else if(i.startTime<=e)r(l),i.sortIndex=i.expirationTime,t(c,i);else break;i=n(l)}}function b(e){if(h=!1,y(e),!m){if(n(c)!==null)m=!0,O(x);else{var t=n(l);t!==null&&ie(b,t.startTime-e)}}}function x(t,i){m=!1,h&&(h=!1,_(w),w=-1),p=!0;var a=f;try{for(y(i),d=n(c);d!==null&&(!(d.expirationTime>i)||t&&!ee());){var o=d.callback;if(typeof o==`function`){d.callback=null,f=d.priorityLevel;var s=o(d.expirationTime<=i);i=e.unstable_now(),typeof s==`function`?d.callback=s:d===n(c)&&r(c),y(i)}else r(c);d=n(c)}if(d!==null)var u=!0;else{var g=n(l);g!==null&&ie(b,g.startTime-i),u=!1}return u}finally{d=null,f=a,p=!1}}var S=!1,C=null,w=-1,T=5,E=-1;function ee(){return!(e.unstable_now()-E<T)}function te(){if(C!==null){var t=e.unstable_now();E=t;var n=!0;try{n=C(!0,t)}finally{n?D():(S=!1,C=null)}}else S=!1}var D;if(typeof v==`function`)D=function(){v(te)};else if(typeof MessageChannel<`u`){var ne=new MessageChannel,re=ne.port2;ne.port1.onmessage=te,D=function(){re.postMessage(null)}}else D=function(){g(te,0)};function O(e){C=e,S||(S=!0,D())}function ie(t,n){w=g(function(){t(e.unstable_now())},n)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(e){e.callback=null},e.unstable_continueExecution=function(){m||p||(m=!0,O(x))},e.unstable_forceFrameRate=function(e){0>e||125<e?console.error(`forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported`):T=0<e?Math.floor(1e3/e):5},e.unstable_getCurrentPriorityLevel=function(){return f},e.unstable_getFirstCallbackNode=function(){return n(c)},e.unstable_next=function(e){switch(f){case 1:case 2:case 3:var t=3;break;default:t=f}var n=f;f=t;try{return e()}finally{f=n}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(e,t){switch(e){case 1:case 2:case 3:case 4:case 5:break;default:e=3}var n=f;f=e;try{return t()}finally{f=n}},e.unstable_scheduleCallback=function(r,i,a){var o=e.unstable_now();switch(typeof a==`object`&&a?(a=a.delay,a=typeof a==`number`&&0<a?o+a:o):a=o,r){case 1:var s=-1;break;case 2:s=250;break;case 5:s=1073741823;break;case 4:s=1e4;break;default:s=5e3}return s=a+s,r={id:u++,callback:i,priorityLevel:r,startTime:a,expirationTime:s,sortIndex:-1},a>o?(r.sortIndex=a,t(l,r),n(c)===null&&r===n(l)&&(h?(_(w),w=-1):h=!0,ie(b,a-o))):(r.sortIndex=s,t(c,r),m||p||(m=!0,O(x))),r},e.unstable_shouldYield=ee,e.unstable_wrapCallback=function(e){var t=f;return function(){var n=f;f=t;try{return e.apply(this,arguments)}finally{f=n}}}})),h=s(((e,t)=>{t.exports=m()})),g=s((e=>{var t=p(),n=h();function r(e){for(var t=`https://reactjs.org/docs/error-decoder.html?invariant=`+e,n=1;n<arguments.length;n++)t+=`&args[]=`+encodeURIComponent(arguments[n]);return`Minified React error #`+e+`; visit `+t+` for the full message or use the non-minified dev environment for full errors and additional helpful warnings.`}var i=new Set,a={};function o(e,t){s(e,t),s(e+`Capture`,t)}function s(e,t){for(a[e]=t,e=0;e<t.length;e++)i.add(t[e])}var c=!(typeof window>`u`||window.document===void 0||window.document.createElement===void 0),l=Object.prototype.hasOwnProperty,u=/^[: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]*$/,d={},f={};function m(e){return l.call(f,e)?!0:l.call(d,e)?!1:u.test(e)?f[e]=!0:(d[e]=!0,!1)}function g(e,t,n,r){if(n!==null&&n.type===0)return!1;switch(typeof t){case`function`:case`symbol`:return!0;case`boolean`:return r?!1:n===null?(e=e.toLowerCase().slice(0,5),e!==`data-`&&e!==`aria-`):!n.acceptsBooleans;default:return!1}}function _(e,t,n,r){if(t==null||g(e,t,n,r))return!0;
vendor: 11,574 bytes, lines 1-5
1if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return!1===t;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function v(e,t,n,r,i,a,o){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=o}var y={};`children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style`.split(` `).forEach(function(e){y[e]=new v(e,0,!1,e,null,!1,!1)}),[[`acceptCharset`,`accept-charset`],[`className`,`class`],[`htmlFor`,`for`],[`httpEquiv`,`http-equiv`]].forEach(function(e){var t=e[0];y[t]=new v(t,1,!1,e[1],null,!1,!1)}),[`contentEditable`,`draggable`,`spellCheck`,`value`].forEach(function(e){y[e]=new v(e,2,!1,e.toLowerCase(),null,!1,!1)}),[`autoReverse`,`externalResourcesRequired`,`focusable`,`preserveAlpha`].forEach(function(e){y[e]=new v(e,2,!1,e,null,!1,!1)}),`allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope`.split(` `).forEach(function(e){y[e]=new v(e,3,!1,e.toLowerCase(),null,!1,!1)}),[`checked`,`multiple`,`muted`,`selected`].forEach(function(e){y[e]=new v(e,3,!0,e,null,!1,!1)}),[`capture`,`download`].forEach(function(e){y[e]=new v(e,4,!1,e,null,!1,!1)}),[`cols`,`rows`,`size`,`span`].forEach(function(e){y[e]=new v(e,6,!1,e,null,!1,!1)}),[`rowSpan`,`start`].forEach(function(e){y[e]=new v(e,5,!1,e.toLowerCase(),null,!1,!1)});var b=/[\-:]([a-z])/g;function x(e){return e[1].toUpperCase()}`accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height`.split(` `).forEach(function(e){var t=e.replace(b,x);y[t]=new v(t,1,!1,e,null,!1,!1)}),`xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type`.split(` `).forEach(function(e){var t=e.replace(b,x);y[t]=new v(t,1,!1,e,`http://www.w3.org/1999/xlink`,!1,!1)}),[`xml:base`,`xml:lang`,`xml:space`].forEach(function(e){var t=e.replace(b,x);y[t]=new v(t,1,!1,e,`http://www.w3.org/XML/1998/namespace`,!1,!1)}),[`tabIndex`,`crossOrigin`].forEach(function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!1,!1)}),y.xlinkHref=new v(`xlinkHref`,1,!1,`xlink:href`,`http://www.w3.org/1999/xlink`,!0,!1),[`src`,`href`,`action`,`formAction`].forEach(function(e){y[e]=new v(e,1,!1,e.toLowerCase(),null,!0,!0)});function S(e,t,n,r){var i=y.hasOwnProperty(t)?y[t]:null;(i===null?r||!(2<t.length)||t[0]!==`o`&&t[0]!==`O`||t[1]!==`n`&&t[1]!==`N`:i.type!==0)&&(_(t,n,i,r)&&(n=null),r||i===null?m(t)&&(n===null?e.removeAttribute(t):e.setAttribute(t,``+n)):i.mustUseProperty?e[i.propertyName]=n===null?i.type!==3&&``:n:(t=i.attributeName,r=i.attributeNamespace,n===null?e.removeAttribute(t):(i=i.type,n=i===3||i===4&&!0===n?``:``+n,r?e.setAttributeNS(r,t,n):e.setAttribute(t,n))))}var C=t.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,w=Symbol.for(`react.element`),T=Symbol.for(`react.portal`),E=Symbol.for(`react.fragment`),ee=Symbol.for(`react.strict_mode`),te=Symbol.for(`react.profiler`),D=Symbol.for(`react.provider`),ne=Symbol.for(`react.context`),re=Symbol.for(`react.forward_ref`),O=Symbol.for(`react.suspense`),ie=Symbol.for(`react.suspense_list`),k=Symbol.for(`react.memo`),ae=Symbol.for(`react.lazy`),oe=Symbol.for(`react.offscreen`),A=Symbol.iterator;function j(e){return typeof e!=`object`||!e?null:(e=A&&e[A]||e[`@@iterator`],typeof e==`function`?e:null)}var M=Object.assign,se;function ce(e){if(se===void 0)try{throw Error()}catch(e){var t=e.stack.trim().match(/\n( *(at )?)/);se=t&&t[1]||``}return`
2`+se+e}var le=!1;function ue(e,t){if(!e||le)return``;le=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{if(t){if(t=function(){throw Error()},Object.defineProperty(t.prototype,"props",{set:function(){throw Error()}}),typeof Reflect==`object`&&Reflect.construct){try{Reflect.construct(t,[])}catch(e){var r=e}Reflect.construct(e,[],t)}else{try{t.call()}catch(e){r=e}e.call(t.prototype)}}else{try{throw Error()}catch(e){r=e}e()}}catch(t){if(t&&r&&typeof t.stack==`string`){for(var i=t.stack.split(`
3`),a=r.stack.split(`
4`),o=i.length-1,s=a.length-1;1<=o&&0<=s&&i[o]!==a[s];)s--;for(;1<=o&&0<=s;o--,s--)if(i[o]!==a[s]){if(o!==1||s!==1)do if(o--,s--,0>s||i[o]!==a[s]){var c=`
5`+i[o].replace(` at new `,` at `);return e.displayName&&c.includes(`<anonymous>`)&&(c=c.replace(`<anonymous>`,e.displayName)),c}while(1<=o&&0<=s);break}}}finally{le=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:``)?ce(e):``}function de(e){switch(e.tag){case 5:return ce(e.type);case 16:return ce(`Lazy`);case 13:return ce(`Suspense`);case 19:return ce(`SuspenseList`);case 0:case 2:case 15:return e=ue(e.type,!1),e;case 11:return e=ue(e.type.render,!1),e;case 1:return e=ue(e.type,!0),e;default:return``}}function fe(e){if(e==null)return null;if(typeof e==`function`)return e.displayName||e.name||null;if(typeof e==`string`)return e;switch(e){case E:return`Fragment`;case T:return`Portal`;case te:return`Profiler`;case ee:return`StrictMode`;case O:return`Suspense`;case ie:return`SuspenseList`}if(typeof e==`object`)switch(e.$$typeof){case ne:return(e.displayName||`Context`)+`.Consumer`;case D:return(e._context.displayName||`Context`)+`.Provider`;case re:var t=e.render;return e=e.displayName,e||=(e=t.displayName||t.name||``,e===``?`ForwardRef`:`ForwardRef(`+e+`)`),e;case k:return t=e.displayName||null,t===null?fe(e.type)||`Memo`:t;case ae:t=e._payload,e=e._init;try{return fe(e(t))}catch{}}return null}function pe(e){var t=e.type;switch(e.tag){case 24:return`Cache`;case 9:return(t.displayName||`Context`)+`.Consumer`;case 10:return(t._context.displayName||`Context`)+`.Provider`;case 18:return`DehydratedFragment`;case 11:return e=t.render,e=e.displayName||e.name||``,t.displayName||(e===``?`ForwardRef`:`ForwardRef(`+e+`)`);case 7:return`Fragment`;case 5:return t;case 4:return`Portal`;case 3:return`Root`;case 6:return`Text`;case 16:return fe(t);case 8:return t===ee?`StrictMode`:`Mode`;case 22:return`Offscreen`;case 12:return`Profiler`;case 21:return`Scope`;case 13:return`Suspense`;case 19:return`SuspenseList`;case 25:return`TracingMarker`;case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t==`function`)return t.displayName||t.name||null;if(typeof t==`string`)return t}return null}function me(e){switch(typeof e){case`boolean`:case`number`:case`string`:case`undefined`:return e;case`object`:return e;default:return``}}function he(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()===`input`&&(t===`checkbox`||t===`radio`)}function ge(e){var t=he(e)?`checked`:`value`,n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=``+e[t];if(!e.hasOwnProperty(t)&&n!==void 0&&typeof n.get==`function`&&typeof n.set==`function`){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(e){r=``+e,a.call(this,e)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(e){r=``+e},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function _e(e){e._valueTracker||=ge(e)}function ve(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r=``;return e&&(r=he(e)?e.checked?`true`:`false`:e.value),e=r,e!==n&&(t.setValue(e),!0)}function ye(e){if(e||=typeof document<`u`?document:void 0,e===void 0)return null;try{return e.activeElement||e.body}catch{return e.body}}function be(e,t){var n=t.checked;return M({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function xe(e,t){var n=t.defaultValue==null?``:t.defaultValue,r=t.checked==null?t.defaultChecked:t.checked;n=me(t.value==null?n:t.value),e._wrapperState={initialChecked:r,initialValue:n,controlled:t.type===`checkbox`||t.type===`radio`?t.checked!=null:t.value!=null}}function Se(e,t){t=t.checked,t!=null&&S(e,`checked`,t,!1)}function Ce(e,t){Se(e,t);var n=me(t.value),r=t.type;if(n!=null)r===`number`?(n===0&&e.value===``||e.value!=n)&&(e.value=``+n):e.value!==``+n&&(e.value=``+n);else if(r===`submit`||r===`reset`){e.removeAttribute(`value`);return}t.hasOwnProperty(`value`)?Te(e,t.type,n):t.hasOwnProperty(`defaultValue`)&&Te(e,t.type,me(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function we(e,t,n){if(t.hasOwnProperty(`value`)||t.hasOwnProperty(`defaultValue`)){var r=t.type;if(!(r!==`submit`&&r!==`reset`||t.value!==void 0&&t.value!==null))return;t=``+e._wrapperState.initialValue,n||t===e.value||(e.value=t),e.defaultValue=t}n=e.name,n!==``&&(e.name=``),e.defaultChecked=!!e._wrapperState.initialChecked,n!==``&&(e.name=n)}function Te(e,t,n){(t!==`number`||ye(e.ownerDocument)!==e)&&(n==null?e.defaultValue=``+e._wrapperState.initialValue:e.defaultValue!==``+n&&(e.defaultValue=``+n))}var Ee=Array.isArray;function De(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i<n.length;i++)t[`$`+n[i]]=!0;for(n=0;n<e.length;n++)i=t.hasOwnProperty(`$`+e[n].value),e[n].selected!==i&&(e[n].selected=i),i&&r&&(e[n].defaultSelected=!0)}else{for(n=``+me(n),t=null,i=0;i<e.length;i++){if(e[i].value===n){e[i].selected=!0,r&&(e[i].defaultSelected=!0);return}t!==null||e[i].disabled||(t=e[i])}t!==null&&(t.selected=!0)}}function Oe(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error(r(91));return M({},t,{value:void 0,defaultValue:void 0,children:``+e._wrapperState.initialValue})}function ke(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error(r(92));if(Ee(n)){if(1<n.length)throw Error(r(93));n=n[0]}t=n}t??=``,n=t}e._wrapperState={initialValue:me(n)}}function Ae(e,t){var n=me(t.value),r=me(t.defaultValue);n!=null&&(n=``+n,n!==e.value&&(e.value=n),t.defaultValue==null&&e.defaultValue!==n&&(e.defaultValue=n)),r!=null&&(e.defaultValue=``+r)}function je(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==``&&t!==null&&(e.value=t)}function Me(e){switch(e){case`svg`:return`http://www.w3.org/2000/svg`;case`math`:return`http://www.w3.org/1998/Math/MathML`;default:return`http://www.w3.org/1999/xhtml`}}function Ne(e,t){return e==null||e===`http://www.w3.org/1999/xhtml`?Me(t):e===`http://www.w3.org/2000/svg`&&t===`foreignObject`?`http://www.w3.org/1999/xhtml`:e}var Pe,Fe=function(e){return typeof MSApp<`u`&&MSApp.execUnsafeLocalFunction?function(t,n,r,i){MSApp.execUnsafeLocalFunction(function(){return e(t,n,r,i)})}:e}(function(e,t){if(e.namespaceURI!==`http://www.w3.org/2000/svg`||`innerHTML`in e)e.innerHTML=t;
vendor: 2,548 bytes, line 5
5else{for(Pe||=document.createElement(`div`),Pe.innerHTML=`<svg>`+t.valueOf().toString()+`</svg>`,t=Pe.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function Ie(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var Le={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},Re=[`Webkit`,`ms`,`Moz`,`O`];Object.keys(Le).forEach(function(e){Re.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),Le[t]=Le[e]})});function ze(e,t,n){return t==null||typeof t==`boolean`||t===``?``:n||typeof t!=`number`||t===0||Le.hasOwnProperty(e)&&Le[e]?(``+t).trim():t+`px`}function Be(e,t){for(var n in e=e.style,t)if(t.hasOwnProperty(n)){var r=n.indexOf(`--`)===0,i=ze(n,t[n],r);n===`float`&&(n=`cssFloat`),r?e.setProperty(n,i):e[n]=i}}var Ve=M({menuitem:!0},{area:!0,base:!0,br:!0,col:!0,embed:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0});function He(e,t){if(t){if(Ve[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(r(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(r(60));if(typeof t.dangerouslySetInnerHTML!=`object`||!(`__html`in t.dangerouslySetInnerHTML))throw Error(r(61))}if(t.style!=null&&typeof t.style!=`object`)throw Error(r(62))}}function N(e,t){if(e.indexOf(`-`)===-1)return typeof t.is==`string`;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 Ue=null;function We(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Ge=null,Ke=null,qe=null;function Je(e){if(e=Wi(e)){if(typeof Ge!=`function`)throw Error(r(280));var t=e.stateNode;t&&(t=Ki(t),Ge(e.stateNode,e.type,t))}}function Ye(e){Ke?qe?qe.push(e):qe=[e]:Ke=e}
vendor: 9,448 bytes, line 5
5function Xe(){if(Ke){var e=Ke,t=qe;if(qe=Ke=null,Je(e),t)for(e=0;e<t.length;e++)Je(t[e])}}function Ze(e,t){return e(t)}function Qe(){}var $e=!1;function et(e,t,n){if($e)return e(t,n);$e=!0;try{return Ze(e,t,n)}finally{$e=!1,(Ke!==null||qe!==null)&&(Qe(),Xe())}}function tt(e,t){var n=e.stateNode;if(n===null)return null;var i=Ki(n);if(i===null)return null;n=i[t];a:switch(t){case`onClick`:case`onClickCapture`:case`onDoubleClick`:case`onDoubleClickCapture`:case`onMouseDown`:case`onMouseDownCapture`:case`onMouseMove`:case`onMouseMoveCapture`:case`onMouseUp`:case`onMouseUpCapture`:case`onMouseEnter`:(i=!i.disabled)||(e=e.type,i=e!==`button`&&e!==`input`&&e!==`select`&&e!==`textarea`),e=!i;break a;default:e=!1}if(e)return null;if(n&&typeof n!=`function`)throw Error(r(231,t,typeof n));return n}var nt=!1;if(c)try{var rt={};Object.defineProperty(rt,"passive",{get:function(){nt=!0}}),window.addEventListener(`test`,rt,rt),window.removeEventListener(`test`,rt,rt)}catch{nt=!1}function it(e,t,n,r,i,a,o,s,c){var l=Array.prototype.slice.call(arguments,3);try{t.apply(n,l)}catch(e){this.onError(e)}}var P=!1,at=null,ot=!1,st=null,ct={onError:function(e){P=!0,at=e}};function lt(e,t,n,r,i,a,o,s,c){P=!1,at=null,it.apply(ct,arguments)}function ut(e,t,n,i,a,o,s,c,l){if(lt.apply(this,arguments),P){if(P){var u=at;P=!1,at=null}else throw Error(r(198));ot||(ot=!0,st=u)}}function dt(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function ft(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function pt(e){if(dt(e)!==e)throw Error(r(188))}function mt(e){var t=e.alternate;if(!t){if(t=dt(e),t===null)throw Error(r(188));return t===e?e:null}for(var n=e,i=t;;){var a=n.return;if(a===null)break;var o=a.alternate;if(o===null){if(i=a.return,i!==null){n=i;continue}break}if(a.child===o.child){for(o=a.child;o;){if(o===n)return pt(a),e;if(o===i)return pt(a),t;o=o.sibling}throw Error(r(188))}if(n.return!==i.return)n=a,i=o;else{for(var s=!1,c=a.child;c;){if(c===n){s=!0,n=a,i=o;break}if(c===i){s=!0,i=a,n=o;break}c=c.sibling}if(!s){for(c=o.child;c;){if(c===n){s=!0,n=o,i=a;break}if(c===i){s=!0,i=o,n=a;break}c=c.sibling}if(!s)throw Error(r(189))}}if(n.alternate!==i)throw Error(r(190))}if(n.tag!==3)throw Error(r(188));return n.stateNode.current===n?e:t}function ht(e){return e=mt(e),e===null?null:gt(e)}function gt(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=gt(e);if(t!==null)return t;e=e.sibling}return null}var _t=n.unstable_scheduleCallback,vt=n.unstable_cancelCallback,yt=n.unstable_shouldYield,bt=n.unstable_requestPaint,xt=n.unstable_now,St=n.unstable_getCurrentPriorityLevel,Ct=n.unstable_ImmediatePriority,wt=n.unstable_UserBlockingPriority,Tt=n.unstable_NormalPriority,Et=n.unstable_LowPriority,Dt=n.unstable_IdlePriority,Ot=null,kt=null;function At(e){if(kt&&typeof kt.onCommitFiberRoot==`function`)try{kt.onCommitFiberRoot(Ot,e,void 0,(e.current.flags&128)==128)}catch{}}var jt=Math.clz32?Math.clz32:Pt,Mt=Math.log,Nt=Math.LN2;function Pt(e){return e>>>=0,e===0?32:31-(Mt(e)/Nt|0)|0}var Ft=64,It=4194304;function Lt(e){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: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 e&4194240;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return e&130023424;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 1073741824;default:return e}}function Rt(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,o=n&268435455;if(o!==0){var s=o&~i;s===0?(a&=o,a!==0&&(r=Lt(a))):r=Lt(s)}else o=n&~i,o===0?a!==0&&(r=Lt(a)):r=Lt(o);if(r===0)return 0;if(t!==0&&t!==r&&(t&i)===0&&(i=r&-r,a=t&-t,i>=a||i===16&&a&4194240))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0<t;)n=31-jt(t),i=1<<n,r|=e[n],t&=~i;return r}function zt(e,t){switch(e){case 1:case 2:case 4:return t+250;case 8:case 16:case 32:case 64:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return t+5e3;case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:return-1;case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Bt(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,i=e.expirationTimes,a=e.pendingLanes;0<a;){var o=31-jt(a),s=1<<o,c=i[o];c===-1?((s&n)===0||(s&r)!==0)&&(i[o]=zt(s,t)):c<=t&&(e.expiredLanes|=s),a&=~s}}function Vt(e){return e=e.pendingLanes&-1073741825,e===0?e&1073741824?1073741824:0:e}function Ht(){var e=Ft;return Ft<<=1,!(Ft&4194240)&&(Ft=64),e}function F(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function Ut(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-jt(t),e[t]=n}function Wt(e,t){var n=e.pendingLanes&~t;e.pendingLanes=t,e.suspendedLanes=0,e.pingedLanes=0,e.expiredLanes&=t,e.mutableReadLanes&=t,e.entangledLanes&=t,t=e.entanglements;var r=e.eventTimes;for(e=e.expirationTimes;0<n;){var i=31-jt(n),a=1<<i;t[i]=0,r[i]=-1,e[i]=-1,n&=~a}}function Gt(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-jt(n),i=1<<r;i&t|e[r]&t&&(e[r]|=t),n&=~i}}var I=0;function Kt(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var qt,Jt,Yt,Xt,Zt,Qt=!1,$t=[],en=null,tn=null,nn=null,rn=new Map,an=new Map,on=[],sn=`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 submit`.split(` `);function cn(e,t){switch(e){case`focusin`:case`focusout`:en=null;break;case`dragenter`:case`dragleave`:tn=null;break;case`mouseover`:case`mouseout`:nn=null;break;case`pointerover`:case`pointerout`:rn.delete(t.pointerId);break;case`gotpointercapture`:case`lostpointercapture`:an.delete(t.pointerId)}}function ln(e,t,n,r,i,a){return e===null||e.nativeEvent!==a?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:a,targetContainers:[i]},t!==null&&(t=Wi(t),t!==null&&Jt(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,i!==null&&t.indexOf(i)===-1&&t.push(i),e)}function un(e,t,n,r,i){switch(t){case`focusin`:return en=ln(en,e,t,n,r,i),!0;case`dragenter`:return tn=ln(tn,e,t,n,r,i),!0;case`mouseover`:return nn=ln(nn,e,t,n,r,i),!0;case`pointerover`:var a=i.pointerId;return rn.set(a,ln(rn.get(a)||null,e,t,n,r,i)),!0;case`gotpointercapture`:return a=i.pointerId,an.set(a,ln(an.get(a)||null,e,t,n,r,i)),!0}return!1}function dn(e){var t=Ui(e.target);if(t!==null){var n=dt(t);if(n!==null){if(t=n.tag,t===13){if(t=ft(n),t!==null){e.blockedOn=t,Zt(e.priority,function(){Yt(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function fn(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=Cn(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Ue=r,n.target.dispatchEvent(r),Ue=null}else return t=Wi(n),t!==null&&Jt(t),e.blockedOn=n,!1;t.shift()}return!0}function pn(e,t,n){fn(e)&&n.delete(t)}function mn(){Qt=!1,en!==null&&fn(en)&&(en=null),tn!==null&&fn(tn)&&(tn=null),nn!==null&&fn(nn)&&(nn=null),rn.forEach(pn),an.forEach(pn)}function hn(e,t){e.blockedOn===t&&(e.blockedOn=null,Qt||(Qt=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,mn)))}function gn(e){function t(t){return hn(t,e)}if(0<$t.length){hn($t[0],e);for(var n=1;n<$t.length;n++){var r=$t[n];r.blockedOn===e&&(r.blockedOn=null)}}for(en!==null&&hn(en,e),tn!==null&&hn(tn,e),nn!==null&&hn(nn,e),rn.forEach(t),an.forEach(t),n=0;n<on.length;n++)r=on[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<on.length&&(n=on[0],n.blockedOn===null);)dn(n),n.blockedOn===null&&on.shift()}var _n=C.ReactCurrentBatchConfig,vn=!0;function yn(e,t,n,r){var i=I,a=_n.transition;_n.transition=null;try{I=1,xn(e,t,n,r)}finally{I=i,_n.transition=a}}function bn(e,t,n,r){var i=I,a=_n.transition;_n.transition=null;try{I=4,xn(e,t,n,r)}finally{I=i,_n.transition=a}}function xn(e,t,n,r){if(vn){var i=Cn(e,t,n,r);if(i===null)hi(e,t,r,Sn,n),cn(e,r);else if(un(i,e,t,n,r))r.stopPropagation();else if(cn(e,r),t&4&&-1<sn.indexOf(e)){for(;i!==null;){var a=Wi(i);if(a!==null&&qt(a),a=Cn(e,t,n,r),a===null&&hi(e,t,r,Sn,n),a===i)break;i=a}i!==null&&r.stopPropagation()}else hi(e,t,r,null,n)}}var Sn=null;function Cn(e,t,n,r){if(Sn=null,e=We(r),e=Ui(e),e!==null){if(t=dt(e),t===null)e=null;else if(n=t.tag,n===13){if(e=ft(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}return Sn=e,null}function wn(e){switch(e){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`
vendor: 8,690 bytes, line 5
5:case`pointercancel`:case`pointerdown`:case`pointerup`:case`ratechange`:case`reset`:case`resize`:case`seeked`:case`submit`: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 1;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`toggle`:case`touchmove`:case`wheel`:case`mouseenter`:case`mouseleave`:case`pointerenter`:case`pointerleave`:return 4;case`message`:switch(St()){case Ct:return 1;case wt:return 4;case Tt:case Et:return 16;case Dt:return 536870912;default:return 16}default:return 16}}var Tn=null,En=null,Dn=null;function On(){if(Dn)return Dn;var e,t=En,n=t.length,r,i=`value`in Tn?Tn.value:Tn.textContent,a=i.length;for(e=0;e<n&&t[e]===i[e];e++);var o=n-e;for(r=1;r<=o&&t[n-r]===i[a-r];r++);return Dn=i.slice(e,1<r?1-r:void 0)}function kn(e){var t=e.keyCode;return`charCode`in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function An(){return!0}function L(){return!1}function jn(e){function t(t,n,r,i,a){for(var o in this._reactName=t,this._targetInst=r,this.type=n,this.nativeEvent=i,this.target=a,this.currentTarget=null,e)e.hasOwnProperty(o)&&(t=e[o],this[o]=t?t(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented==null?!1===i.returnValue:i.defaultPrevented)?An:L,this.isPropagationStopped=L,this}return M(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var e=this.nativeEvent;e&&(e.preventDefault?e.preventDefault():typeof e.returnValue!=`unknown`&&(e.returnValue=!1),this.isDefaultPrevented=An)},stopPropagation:function(){var e=this.nativeEvent;e&&(e.stopPropagation?e.stopPropagation():typeof e.cancelBubble!=`unknown`&&(e.cancelBubble=!0),this.isPropagationStopped=An)},persist:function(){},isPersistent:An}),t}var Mn={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Nn=jn(Mn),Pn=M({},Mn,{view:0,detail:0}),Fn=jn(Pn),In,Ln,Rn,zn=M({},Pn,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Xn,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!==Rn&&(Rn&&e.type===`mousemove`?(In=e.screenX-Rn.screenX,Ln=e.screenY-Rn.screenY):Ln=In=0,Rn=e),In)},movementY:function(e){return`movementY`in e?e.movementY:Ln}}),Bn=jn(zn),Vn=jn(M({},zn,{dataTransfer:0})),Hn=jn(M({},Pn,{relatedTarget:0})),Un=jn(M({},Mn,{animationName:0,elapsedTime:0,pseudoElement:0})),Wn=jn(M({},Mn,{clipboardData:function(e){return`clipboardData`in e?e.clipboardData:window.clipboardData}})),Gn=jn(M({},Mn,{data:0})),Kn={Esc:`Escape`,Spacebar:` `,Left:`ArrowLeft`,Up:`ArrowUp`,Right:`ArrowRight`,Down:`ArrowDown`,Del:`Delete`,Win:`OS`,Menu:`ContextMenu`,Apps:`ContextMenu`,Scroll:`ScrollLock`,MozPrintableKey:`Unidentified`},qn={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`},Jn={Alt:`altKey`,Control:`ctrlKey`,Meta:`metaKey`,Shift:`shiftKey`};function Yn(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=Jn[e])?!!t[e]:!1}function Xn(){return Yn}var Zn=jn(M({},Pn,{key:function(e){if(e.key){var t=Kn[e.key]||e.key;if(t!==`Unidentified`)return t}return e.type===`keypress`?(e=kn(e),e===13?`Enter`:String.fromCharCode(e)):e.type===`keydown`||e.type===`keyup`?qn[e.keyCode]||`Unidentified`:``},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Xn,charCode:function(e){return e.type===`keypress`?kn(e):0},keyCode:function(e){return e.type===`keydown`||e.type===`keyup`?e.keyCode:0},which:function(e){return e.type===`keypress`?kn(e):e.type===`keydown`||e.type===`keyup`?e.keyCode:0}})),Qn=jn(M({},zn,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0})),$n=jn(M({},Pn,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Xn})),er=jn(M({},Mn,{propertyName:0,elapsedTime:0,pseudoElement:0})),tr=jn(M({},zn,{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})),nr=[9,13,27,32],rr=c&&`CompositionEvent`in window,ir=null;c&&`documentMode`in document&&(ir=document.documentMode);var ar=c&&`TextEvent`in window&&!ir,or=c&&(!rr||ir&&8<ir&&11>=ir),sr=` `,cr=!1;function lr(e,t){switch(e){case`keyup`:return nr.indexOf(t.keyCode)!==-1;case`keydown`:return t.keyCode!==229;case`keypress`:case`mousedown`:case`focusout`:return!0;default:return!1}}function ur(e){return e=e.detail,typeof e==`object`&&`data`in e?e.data:null}var dr=!1;function fr(e,t){switch(e){case`compositionend`:return ur(t);case`keypress`:return t.which===32?(cr=!0,sr):null;case`textInput`:return e=t.data,e===sr&&cr?null:e;default:return null}}function pr(e,t){if(dr)return e===`compositionend`||!rr&&lr(e,t)?(e=On(),Dn=En=Tn=null,dr=!1,e):null;switch(e){case`paste`:return null;case`keypress`:if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case`compositionend`:return or&&t.locale!==`ko`?null:t.data;default:return null}}var mr={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 hr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t===`input`?!!mr[e.type]:t===`textarea`}function gr(e,t,n,r){Ye(r),t=_i(t,`onChange`),0<t.length&&(n=new Nn(`onChange`,`change`,null,n,r),e.push({event:n,listeners:t}))}var _r=null,vr=null;function yr(e){li(e,0)}function br(e){if(ve(Gi(e)))return e}function R(e,t){if(e===`change`)return t}var xr=!1;if(c){var Sr;if(c){var Cr=`oninput`in document;if(!Cr){var wr=document.createElement(`div`);wr.setAttribute(`oninput`,`return;`),Cr=typeof wr.oninput==`function`}Sr=Cr}else Sr=!1;xr=Sr&&(!document.documentMode||9<document.documentMode)}function Tr(){_r&&(_r.detachEvent(`onpropertychange`,Er),vr=_r=null)}function Er(e){if(e.propertyName===`value`&&br(vr)){var t=[];gr(t,vr,e,We(e)),et(yr,t)}}function Dr(e,t,n){e===`focusin`?(Tr(),_r=t,vr=n,_r.attachEvent(`onpropertychange`,Er)):e===`focusout`&&Tr()}function Or(e){if(e===`selectionchange`||e===`keyup`||e===`keydown`)return br(vr)}function kr(e,t){if(e===`click`)return br(t)}function Ar(e,t){if(e===`input`||e===`change`)return br(t)}function jr(e,t){return e===t&&(e!==0||1/e==1/t)||e!==e&&t!==t}var Mr=typeof Object.is==`function`?Object.is:jr;function Nr(e,t){if(Mr(e,t))return!0;if(typeof e!=`object`||!e||typeof t!=`object`||!t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var i=n[r];if(!l.call(t,i)||!Mr(e[i],t[i]))return!1}return!0}function Pr(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function Fr(e,t){var n=Pr(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}a:{for(;n;){if(n.nextSibling){n=n.nextSibling;break a}n=n.parentNode}n=void 0}n=Pr(n)}}function Ir(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Ir(e,t.parentNode):`contains`in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Lr(){for(var e=window,t=ye();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href==`string`}catch{n=!1}if(n)e=t.contentWindow;else break;t=ye(e.document)}return t}function Rr(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t===`input`&&(e.type===`text`||e.type===`search`||e.type===`tel`||e.type===`url`||e.type===`password`)||t===`textarea`||e.contentEditable===`true`)}function zr(e){var t=Lr(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Ir(n.ownerDocument.documentElement,n)){if(r!==null&&Rr(n)){if
vendor: 40,618 bytes, lines 5-8
5(t=r.start,e=r.end,e===void 0&&(e=t),`selectionStart`in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=Fr(n,a);var o=Fr(n,r);i&&o&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==o.node||e.focusOffset!==o.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(o.node,o.offset)):(t.setEnd(o.node,o.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus==`function`&&n.focus(),n=0;n<t.length;n++)e=t[n],e.element.scrollLeft=e.left,e.element.scrollTop=e.top}}var Br=c&&`documentMode`in document&&11>=document.documentMode,Vr=null,Hr=null,Ur=null,Wr=!1;function Gr(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Wr||Vr==null||Vr!==ye(r)||(r=Vr,`selectionStart`in r&&Rr(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Ur&&Nr(Ur,r)||(Ur=r,r=_i(Hr,`onSelect`),0<r.length&&(t=new Nn(`onSelect`,`select`,null,t,n),e.push({event:t,listeners:r}),t.target=Vr)))}function Kr(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n[`Webkit`+e]=`webkit`+t,n[`Moz`+e]=`moz`+t,n}var qr={animationend:Kr(`Animation`,`AnimationEnd`),animationiteration:Kr(`Animation`,`AnimationIteration`),animationstart:Kr(`Animation`,`AnimationStart`),transitionend:Kr(`Transition`,`TransitionEnd`)},Jr={},Yr={};c&&(Yr=document.createElement(`div`).style,`AnimationEvent`in window||(delete qr.animationend.animation,delete qr.animationiteration.animation,delete qr.animationstart.animation),`TransitionEvent`in window||delete qr.transitionend.transition);function Xr(e){if(Jr[e])return Jr[e];if(!qr[e])return e;var t=qr[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in Yr)return Jr[e]=t[n];return e}var Zr=Xr(`animationend`),Qr=Xr(`animationiteration`),$r=Xr(`animationstart`),ei=Xr(`transitionend`),ti=new Map,ni=`abort auxClick cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel`.split(` `);function ri(e,t){ti.set(e,t),o(t,[e])}for(var ii=0;ii<ni.length;ii++){var ai=ni[ii];ri(ai.toLowerCase(),`on`+(ai[0].toUpperCase()+ai.slice(1)))}ri(Zr,`onAnimationEnd`),ri(Qr,`onAnimationIteration`),ri($r,`onAnimationStart`),ri(`dblclick`,`onDoubleClick`),ri(`focusin`,`onFocus`),ri(`focusout`,`onBlur`),ri(ei,`onTransitionEnd`),s(`onMouseEnter`,[`mouseout`,`mouseover`]),s(`onMouseLeave`,[`mouseout`,`mouseover`]),s(`onPointerEnter`,[`pointerout`,`pointerover`]),s(`onPointerLeave`,[`pointerout`,`pointerover`]),o(`onChange`,`change click focusin focusout input keydown keyup selectionchange`.split(` `)),o(`onSelect`,`focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange`.split(` `)),o(`onBeforeInput`,[`compositionend`,`keypress`,`textInput`,`paste`]),o(`onCompositionEnd`,`compositionend focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionStart`,`compositionstart focusout keydown keypress keyup mousedown`.split(` `)),o(`onCompositionUpdate`,`compositionupdate focusout keydown keypress keyup mousedown`.split(` `));var oi=`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(` `),si=new Set(`cancel close invalid load scroll toggle`.split(` `).concat(oi));function ci(e,t,n){var r=e.type||`unknown-event`;e.currentTarget=n,ut(r,t,void 0,e),e.currentTarget=null}function li(e,t){t=!!(t&4);for(var n=0;n<e.length;n++){var r=e[n],i=r.event;r=r.listeners;a:{var a=void 0;if(t)for(var o=r.length-1;0<=o;o--){var s=r[o],c=s.instance,l=s.currentTarget;if(s=s.listener,c!==a&&i.isPropagationStopped())break a;ci(i,s,l),a=c}else for(o=0;o<r.length;o++){if(s=r[o],c=s.instance,l=s.currentTarget,s=s.listener,c!==a&&i.isPropagationStopped())break a;ci(i,s,l),a=c}}}if(ot)throw e=st,ot=!1,st=null,e}function ui(e,t){var n=t[Bi];n===void 0&&(n=t[Bi]=new Set);var r=e+`__bubble`;n.has(r)||(mi(t,e,2,!1),n.add(r))}function di(e,t,n){var r=0;t&&(r|=4),mi(n,e,r,t)}var fi=`_reactListening`+Math.random().toString(36).slice(2);function pi(e){if(!e[fi]){e[fi]=!0,i.forEach(function(t){t!==`selectionchange`&&(si.has(t)||di(t,!1,e),di(t,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[fi]||(t[fi]=!0,di(`selectionchange`,!1,t))}}function mi(e,t,n,r){switch(wn(t)){case 1:var i=yn;break;case 4:i=bn;break;default:i=xn}n=i.bind(null,t,n,e),i=void 0,!nt||t!==`touchstart`&&t!==`touchmove`&&t!==`wheel`||(i=!0),r?i===void 0?e.addEventListener(t,n,!0):e.addEventListener(t,n,{capture:!0,passive:i}):i===void 0?e.addEventListener(t,n,!1):e.addEventListener(t,n,{passive:i})}function hi(e,t,n,r,i){var a=r;if(!(t&1)&&!(t&2)&&r!==null)a:for(;;){if(r===null)return;var o=r.tag;if(o===3||o===4){var s=r.stateNode.containerInfo;if(s===i||s.nodeType===8&&s.parentNode===i)break;if(o===4)for(o=r.return;o!==null;){var c=o.tag;if((c===3||c===4)&&(c=o.stateNode.containerInfo,c===i||c.nodeType===8&&c.parentNode===i))return;o=o.return}for(;s!==null;){if(o=Ui(s),o===null)return;if(c=o.tag,c===5||c===6){r=a=o;continue a}s=s.parentNode}}r=r.return}et(function(){var r=a,i=We(n),o=[];a:{var s=ti.get(e);if(s!==void 0){var c=Nn,l=e;switch(e){case`keypress`:if(kn(n)===0)break a;case`keydown`:case`keyup`:c=Zn;break;case`focusin`:l=`focus`,c=Hn;break;case`focusout`:l=`blur`,c=Hn;break;case`beforeblur`:case`afterblur`:c=Hn;break;case`click`:if(n.button===2)break a;case`auxclick`:case`dblclick`:case`mousedown`:case`mousemove`:case`mouseup`:case`mouseout`:case`mouseover`:case`contextmenu`:c=Bn;break;case`drag`:case`dragend`:case`dragenter`:case`dragexit`:case`dragleave`:case`dragover`:case`dragstart`:case`drop`:c=Vn;break;case`touchcancel`:case`touchend`:case`touchmove`:case`touchstart`:c=$n;break;case Zr:case Qr:case $r:c=Un;break;case ei:c=er;break;case`scroll`:c=Fn;break;case`wheel`:c=tr;break;case`copy`:case`cut`:case`paste`:c=Wn;break;case`gotpointercapture`:case`lostpointercapture`:case`pointercancel`:case`pointerdown`:case`pointermove`:case`pointerout`:case`pointerover`:case`pointerup`:c=Qn}var u=!!(t&4),d=!u&&e===`scroll`,f=u?s===null?null:s+`Capture`:s;u=[];for(var p=r,m;p!==null;){m=p;var h=m.stateNode;if(m.tag===5&&h!==null&&(m=h,f!==null&&(h=tt(p,f),h!=null&&u.push(gi(p,h,m)))),d)break;p=p.return}0<u.length&&(s=new c(s,l,null,n,i),o.push({event:s,listeners:u}))}}if(!(t&7)){a:{if(s=e===`mouseover`||e===`pointerover`,c=e===`mouseout`||e===`pointerout`,s&&n!==Ue&&(l=n.relatedTarget||n.fromElement)&&(Ui(l)||l[zi]))break a;if((c||s)&&(s=i.window===i?i:(s=i.ownerDocument)?s.defaultView||s.parentWindow:window,c?(l=n.relatedTarget||n.toElement,c=r,l=l?Ui(l):null,l!==null&&(d=dt(l),l!==d||l.tag!==5&&l.tag!==6)&&(l=null)):(c=null,l=r),c!==l)){if(u=Bn,h=`onMouseLeave`,f=`onMouseEnter`,p=`mouse`,(e===`pointerout`||e===`pointerover`)&&(u=Qn,h=`onPointerLeave`,f=`onPointerEnter`,p=`pointer`),d=c==null?s:Gi(c),m=l==null?s:Gi(l),s=new u(h,p+`leave`,c,n,i),s.target=d,s.relatedTarget=m,h=null,Ui(i)===r&&(u=new u(f,p+`enter`,l,n,i),u.target=m,u.relatedTarget=d,h=u),d=h,c&&l)b:{for(u=c,f=l,p=0,m=u;m;m=vi(m))p++;for(m=0,h=f;h;h=vi(h))m++;for(;0<p-m;)u=vi(u),p--;for(;0<m-p;)f=vi(f),m--;for(;p--;){if(u===f||f!==null&&u===f.alternate)break b;u=vi(u),f=vi(f)}u=null}else u=null;c!==null&&yi(o,s,c,u,!1),l!==null&&d!==null&&yi(o,d,l,u,!0)}}a:{if(s=r?Gi(r):window,c=s.nodeName&&s.nodeName.toLowerCase(),c===`select`||c===`input`&&s.type===`file`)var g=R;else if(hr(s)){if(xr)g=Ar;else{g=Or;var _=Dr}}else(c=s.nodeName)&&c.toLowerCase()===`input`&&(s.type===`checkbox`||s.type===`radio`)&&(g=kr);if(g&&=g(e,r)){gr(o,g,n,i);break a}_&&_(e,s,r),e===`focusout`&&(_=s._wrapperState)&&_.controlled&&s.type===`number`&&Te(s,`number`,s.value)}switch(_=r?Gi(r):window,e){case`focusin`:(hr(_)||_.contentEditable===`true`)&&(Vr=_,Hr=r,Ur=null);break;case`focusout`:Ur=Hr=Vr=null;break;case`mousedown`:Wr=!0;break;case`contextmenu`:case`mouseup`:case`dragend`:Wr=!1,Gr(o,n,i);break;case`selectionchange`:if(Br)break;case`keydown`:case`keyup`:Gr(o,n,i)}var v;if(rr)b:{switch(e){case`compositionstart`:var y=`onCompositionStart`;break b;case`compositionend`:y=`onCompositionEnd`;break b;case`compositionupdate`:y=`onCompositionUpdate`;break b}y=void 0}else dr?lr(e,n)&&(y=`onCompositionEnd`):e===`keydown`&&n.keyCode===229&&(y=`onCompositionStart`);y&&(or&&n.locale!==`ko`&&(dr||y!==`onCompositionStart`?y===`onCompositionEnd`&&dr&&(v=On()):(Tn=i,En=`value`in Tn?Tn.value:Tn.textContent,dr=!0)),_=_i(r,y),0<_.length&&(y=new Gn(y,e,null,n,i),o.push({event:y,listeners:_}),v?y.data=v:(v=ur(n),v!==null&&(y.data=v)))),(v=ar?fr(e,n):pr(e,n))&&(r=_i(r,`onBeforeInput`),0<r.length&&(i=new Gn(`onBeforeInput`,`beforeinput`,null,n,i),o.push({event:i,listeners:r}),i.data=v))}li(o,t)})}function gi(e,t,n){return{instance:e,listener:t,currentTarget:n}}function _i(e,t){for(var n=t+`Capture`,r=[];e!==null;){var i=e,a=i.stateNode;i.tag===5&&a!==null&&(i=a,a=tt(e,n),a!=null&&r.unshift(gi(e,a,i)),a=tt(e,t),a!=null&&r.push(gi(e,a,i))),e=e.return}return r}function vi(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function yi(e,t,n,r,i){for(var a=t._reactName,o=[];n!==null&&n!==r;){var s=n,c=s.alternate,l=s.stateNode;if(c!==null&&c===r)break;s.tag===5&&l!==null&&(s=l,i?(c=tt(n,a),c!=null&&o.unshift(gi(n,c,s))):i||(c=tt(n,a),c!=null&&o.push(gi(n,c,s)))),n=n.return}o.length!==0&&e.push({event:t,listeners:o})}var bi=/\r\n?/g,xi=/\u0000|\uFFFD/g;function Si(e){return(typeof e==`string`?e:``+e).replace(bi,`
6`).replace(xi,``)}function Ci(e,t,n){if(t=Si(t),Si(e)!==t&&n)throw Error(r(425))}function wi(){}var Ti=null,Ei=null;function Di(e,t){return e===`textarea`||e===`noscript`||typeof t.children==`string`||typeof t.children==`number`||typeof t.dangerouslySetInnerHTML==`object`&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var Oi=typeof setTimeout==`function`?setTimeout:void 0,ki=typeof clearTimeout==`function`?clearTimeout:void 0,Ai=typeof Promise==`function`?Promise:void 0,ji=typeof queueMicrotask==`function`?queueMicrotask:Ai===void 0?Oi:function(e){return Ai.resolve(null).then(e).catch(Mi)};function Mi(e){setTimeout(function(){throw e})}function Ni(e,t){var n=t,r=0;do{var i=n.nextSibling;if(e.removeChild(n),i&&i.nodeType===8){if(n=i.data,n===`/$`){if(r===0){e.removeChild(i),gn(t);return}r--}else n!==`$`&&n!==`$?`&&n!==`$!`||r++}n=i}while(n);gn(t)}function Pi(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t===`$`||t===`$!`||t===`$?`)break;if(t===`/$`)return null}}return e}function Fi(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`$`||n===`$!`||n===`$?`){if(t===0)return e;t--}else n===`/$`&&t++}e=e.previousSibling}return null}var Ii=Math.random().toString(36).slice(2),Li=`__reactFiber$`+Ii,Ri=`__reactProps$`+Ii,zi=`__reactContainer$`+Ii,Bi=`__reactEvents$`+Ii,Vi=`__reactListeners$`+Ii,Hi=`__reactHandles$`+Ii;function Ui(e){var t=e[Li];if(t)return t;for(var n=e.parentNode;n;){if(t=n[zi]||n[Li]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=Fi(e);e!==null;){if(n=e[Li])return n;e=Fi(e)}return t}e=n,n=e.parentNode}return null}function Wi(e){return e=e[Li]||e[zi],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function Gi(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error(r(33))}function Ki(e){return e[Ri]||null}var qi=[],Ji=-1;function Yi(e){return{current:e}}function Xi(e){0>Ji||(e.current=qi[Ji],qi[Ji]=null,Ji--)}function Zi(e,t){Ji++,qi[Ji]=e.current,e.current=t}var Qi={},$i=Yi(Qi),ea=Yi(!1),ta=Qi;function na(e,t){var n=e.type.contextTypes;if(!n)return Qi;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function ra(e){return e=e.childContextTypes,e!=null}function ia(){Xi(ea),Xi($i)}function aa(e,t,n){if($i.current!==Qi)throw Error(r(168));Zi($i,t),Zi(ea,n)}function oa(e,t,n){var i=e.stateNode;if(t=t.childContextTypes,typeof i.getChildContext!=`function`)return n;for(var a in i=i.getChildContext(),i)if(!(a in t))throw Error(r(108,pe(e)||`Unknown`,a));return M({},n,i)}function sa(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Qi,ta=$i.current,Zi($i,e),Zi(ea,ea.current),!0}function ca(e,t,n){var i=e.stateNode;if(!i)throw Error(r(169));n?(e=oa(e,t,ta),i.__reactInternalMemoizedMergedChildContext=e,Xi(ea),Xi($i),Zi($i,e)):Xi(ea),Zi(ea,n)}var la=null,ua=!1,da=!1;function fa(e){la===null?la=[e]:la.push(e)}function pa(e){ua=!0,fa(e)}function ma(){if(!da&&la!==null){da=!0;var e=0,t=I;try{var n=la;for(I=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}la=null,ua=!1}catch(t){throw la!==null&&(la=la.slice(e+1)),_t(Ct,ma),t}finally{I=t,da=!1}}return null}var ha=[],ga=0,_a=null,va=0,ya=[],ba=0,xa=null,Sa=1,Ca=``;function wa(e,t){ha[ga++]=va,ha[ga++]=_a,_a=e,va=t}function Ta(e,t,n){ya[ba++]=Sa,ya[ba++]=Ca,ya[ba++]=xa,xa=e;var r=Sa;e=Ca;var i=32-jt(r)-1;r&=~(1<<i),n+=1;var a=32-jt(t)+i;if(30<a){var o=i-i%5;a=(r&(1<<o)-1).toString(32),r>>=o,i-=o,Sa=1<<32-jt(t)+i|n<<i|r,Ca=a+e}else Sa=1<<a|n<<i|r,Ca=e}function Ea(e){e.return!==null&&(wa(e,1),Ta(e,1,0))}function Da(e){for(;e===_a;)_a=ha[--ga],ha[ga]=null,va=ha[--ga],ha[ga]=null;for(;e===xa;)xa=ya[--ba],ya[ba]=null,Ca=ya[--ba],ya[ba]=null,Sa=ya[--ba],ya[ba]=null}var Oa=null,ka=null,Aa=!1,ja=null;function Ma(e,t){var n=iu(5,null,null,0);n.elementType=`DELETED`,n.stateNode=t,n.return=e,t=e.deletions,t===null?(e.deletions=[n],e.flags|=16):t.push(n)}function Na(e,t){switch(e.tag){case 5:var n=e.type;return t=t.nodeType!==1||n.toLowerCase()!==t.nodeName.toLowerCase()?null:t,t!==null&&(e.stateNode=t,Oa=e,ka=Pi(t.firstChild),!0);case 6:return t=e.pendingProps===``||t.nodeType!==3?null:t,t!==null&&(e.stateNode=t,Oa=e,ka=null,!0);case 13:return t=t.nodeType===8?t:null,t!==null&&(n=xa===null?null:{id:Sa,overflow:Ca},e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=iu(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Oa=e,ka=null,!0);default:return!1}}function Pa(e){return!!(e.mode&1)&&!(e.flags&128)}function Fa(e){if(Aa){var t=ka;if(t){var n=t;if(!Na(e,t)){if(Pa(e))throw Error(r(418));t=Pi(n.nextSibling);var i=Oa;t&&Na(e,t)?Ma(i,n):(e.flags=e.flags&-4097|2,Aa=!1,Oa=e)}}else{if(Pa(e))throw Error(r(418));e.flags=e.flags&-4097|2,Aa=!1,Oa=e}}}function Ia(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Oa=e}function La(e){if(e!==Oa)return!1;if(!Aa)return Ia(e),Aa=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!==`head`&&t!==`body`&&!Di(e.type,e.memoizedProps)),t&&=ka){if(Pa(e))throw Ra(),Error(r(418));for(;t;)Ma(e,t),t=Pi(t.nextSibling)}if(Ia(e),e.tag===13){if(e=e.memoizedState,e=e===null?null:e.dehydrated,!e)throw Error(r(317));a:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n===`/$`){if(t===0){ka=Pi(e.nextSibling);break a}t--}else n!==`$`&&n!==`$!`&&n!==`$?`||t++}e=e.nextSibling}ka=null}}else ka=Oa?Pi(e.stateNode.nextSibling):null;return!0}function Ra(){for(var e=ka;e;)e=Pi(e.nextSibling)}function za(){ka=Oa=null,Aa=!1}function Ba(e){ja===null?ja=[e]:ja.push(e)}var Va=C.ReactCurrentBatchConfig;function Ha(e,t,n){if(e=n.ref,e!==null&&typeof e!=`function`&&typeof e!=`object`){if(n._owner){if(n=n._owner,n){if(n.tag!==1)throw Error(r(309));var i=n.stateNode}if(!i)throw Error(r(147,e));var a=i,o=``+e;return t!==null&&t.ref!==null&&typeof t.ref==`function`&&t.ref._stringRef===o?t.ref:(t=function(e){var t=a.refs;e===null?delete t[o]:t[o]=e},t._stringRef=o,t)}if(typeof e!=`string`)throw Error(r(284));if(!n._owner)throw Error(r(290,e))}return e}function Ua(e,t){throw e=Object.prototype.toString.call(t),Error(r(31,e===`[object Object]`?`object with keys {`+Object.keys(t).join(`, `)+`}`:e))}function Wa(e){var t=e._init;return t(e._payload)}function Ga(e){function t(t,n){if(e){var r=t.deletions;r===null?(t.deletions=[n],t.flags|=16):r.push(n)}}function n(n,r){if(!e)return null;for(;r!==null;)t(n,r),r=r.sibling;return null}function i(e,t){for(e=new Map;t!==null;)t.key===null?e.set(t.index,t):e.set(t.key,t),t=t.sibling;return e}function a(e,t){return e=su(e,t),e.index=0,e.sibling=null,e}function o(t,n,r){return t.index=r,e?(r=t.alternate,r===null?(t.flags|=2,n):(r=r.index,r<n?(t.flags|=2,n):r)):(t.flags|=1048576,n)}function s(t){return e&&t.alternate===null&&(t.flags|=2),t}function c(e,t,n,r){return t===null||t.tag!==6?(t=du(n,e.mode,r),t.return=e,t):(t=a(t,n),t.return=e,t)}function l(e,t,n,r){var i=n.type;return i===E?d(e,t,n.props.children,r,n.key):t!==null&&(t.elementType===i||typeof i==`object`&&i&&i.$$typeof===ae&&Wa(i)===t.type)?(r=a(t,n.props),r.ref=Ha(e,t,n),r.return=e,r):(r=cu(n.type,n.key,n.props,null,e.mode,r),r.ref=Ha(e,t,n),r.return=e,r)}function u(e,t,n,r){return t===null||t.tag!==4||t.stateNode.containerInfo!==n.containerInfo||t.stateNode.implementation!==n.implementation?(t=fu(n,e.mode,r),t.return=e,t):(t=a(t,n.children||[]),t.return=e,t)}function d(e,t,n,r,i){return t===null||t.tag!==7?(t=lu(n,e.mode,r,i),t.return=e,t):(t=a(t,n),t.return=e,t)}function f(e,t,n){if(typeof t==`string`&&t!==``||typeof t==`number`)return t=du(``+t,e.mode,n),t.return=e,t;if(typeof t==`object`&&t){switch(t.$$typeof){case w:return n=cu(t.type,t.key,t.props,null,e.mode,n),n.ref=Ha(e,null,t),n.return=e,n;case T:return t=fu(t,e.mode,n),t.return=e,t;case ae:var r=t._init;return f(e,r(t._payload),n)}if(Ee(t)||j(t))return t=lu(t,e.mode,n,null),t.return=e,t;Ua(e,t)}return null}function p(e,t,n,r){var i=t===null?null:t.key;if(typeof n==`string`&&n!==``||typeof n==`number`)return i===null?c(e,t,``+n,r):null;if(typeof n==`object`&&n){switch(n.$$typeof){case w:return n.key===i?l(e,t,n,r):null;case T:return n.key===i?u(e,t,n,r):null;case ae:return i=n._init,p(e,t,i(n._payload),r)}if(Ee(n)||j(n))return i===null?d(e,t,n,r,null):null;Ua(e,n)}return null}function m(e,t,n,r,i){if(typeof r==`string`&&r!==``||typeof r==`number`)return e=e.get(n)||null,c(t,e,``+r,i);if(typeof r==`object`&&r){switch(r.$$typeof){case w:return e=e.get(r.key===null?n:r.key)||null,l(t,e,r,i);case T:return e=e.get(r.key===null?n:r.key)||null,u(t,e,r,i);case ae:var a=r._init;return m(e,t,n,a(r._payload),i)}if(Ee(r)||j(r))return e=e.get(n)||null,d(t,e,r,i,null);Ua(t,r)}return null}function h(r,a,s,c){for(var l=null,u=null,d=a,h=a=0,g=null;d!==null&&h<s.length;h++){d.index>h?(g=d,d=null):g=d.sibling;var _=p(r,d,s[h],c);if(_===null){d===null&&(d=g);break}e&&d&&_.alternate===null&&t(r,d),a=o(_,a,h),u===null?l=_:u.sibling=_,u=_,d=g}if(h===s.length)return n(r,d),Aa&&wa(r,h),l;if(d===null){for(;h<s.length;h++)d=f(r,s[h],c),d!==null&&(a=o(d,a,h),u===null?l=d:u.sibling=d,u=d);return Aa&&wa(r,h),l}for(d=i(r,d);h<s.length;h++)g=m(d,r,h,s[h],c),g!==null&&(e&&g.alternate!==null&&d.delete(g.key===null?h:g.key),a=o(g,a,h),u===null?l=g:u.sibling=g,u=g);return e&&d.forEach(function(e){return t(r,e)}),Aa&&wa(r,h),l}function g(a,s,c,l){var u=j(c);if(typeof u!=`function`)throw Error(r(150));if(c=u.call(c),c==null)throw Error(r(151));for(var d=u=null,h=s,g=s=0,_=null,v=c.next();h!==null&&!v.done;g++,v=c.next()){h.index>g?(_=h,h=null):_=h.sibling;var y=p(a,h,v.value,l);if(y===null){h===null&&(h=_);break}e&&h&&y.alternate===null&&t(a,h),s=o(y,s,g),d===null?u=y:d.sibling=y,d=y,h=_}if(v.done)return n(a,h),Aa&&wa(a,g),u;if(h===null){for(;!v.done;g++,v=c.next())v=f(a,v.value,l),v!==null&&(s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return Aa&&wa(a,g),u}for(h=i(a,h);!v.done;g++,v=c.next())v=m(h,a,g,v.value,l),v!==null&&(e&&v.alternate!==null&&h.delete(v.key===null?g:v.key),s=o(v,s,g),d===null?u=v:d.sibling=v,d=v);return e&&h.forEach(function(e){return t(a,e)}),Aa&&wa(a,g),u}function _(e,r,i,o){if(typeof i==`object`&&i&&i.type===E&&i.key===null&&(i=i.props.children),typeof i==`object`&&i){switch(i.$$typeof){case w:a:{for(var c=i.key,l=r;l!==null;){if(l.key===c){if(c=i.type,c===E){if(l.tag===7){n(e,l.sibling),r=a(l,i.props.children),r.return=e,e=r;break a}}else if(l.elementType===c||typeof c==`object`&&c&&c.$$typeof===ae&&Wa(c)===l.type){n(e,l.sibling),r=a(l,i.props),r.ref=Ha(e,l,i),r.return=e,e=r;break a}n(e,l);break}t(e,l),l=l.sibling}i.type===E?(r=lu(i.props.children,e.mode,o,i.key),r.return=e,e=r):(o=cu(i.type,i.key,i.props,null,e.mode,o),o.ref=Ha(e,r,i),o.return=e,e=o)}return s(e);case T:a:{for(l=i.key;r!==null;){if(r.key===l){if(r.tag===4&&r.stateNode.containerInfo===i.containerInfo&&r.stateNode.implementation===i.implementation){n(e,r.sibling),r=a(r,i.children||[]),r.return=e,e=r;break a}n(e,r);break}t(e,r),r=r.sibling}r=fu(i,e.mode,o),r.return=e,e=r}return s(e);case ae:return l=i._init,_(e,r,l(i._payload),o)}if(Ee(i))return h(e,r,i,o);if(j(i))return g(e,r,i,o);Ua(e,i)}return typeof i==`string`&&i!==``||typeof i==`number`?(i=``+i,r!==null&&r.tag===6?(n(e,r.sibling),r=a(r,i),r.return=e,e=r):(n(e,r),r=du(i,e.mode,o),r.return=e,e=r),s(e)):n(e,r)}return _}var Ka=Ga(!0),qa=Ga(!1),Ja=Yi(null),Ya=null,Xa=null,Za=null;function Qa(){Za=Xa=Ya=null}function $a(e){var t=Ja.current;Xi(Ja),e._currentValue=t}function eo(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)===t?r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t):(e.childLanes|=t,r!==null&&(r.childLanes|=t)),e===n)break;e=e.return}}function to(e,t){Ya=e,Za=Xa=null,e=e.dependencies,e!==null&&e.firstContext!==null&&((e.lanes&t)!==0&&(Ws=!0),e.firstContext=null)}function no(e){var t=e._currentValue;if(Za!==e){if(e={context:e,memoizedValue:t,next:null},Xa===null){if(Ya===null)throw Error(r(308));Xa=e,Ya.dependencies={lanes:0,firstContext:e}}else Xa=Xa.next=e}return t}var ro=null;function io(e){ro===null?ro=[e]:ro.push(e)}function ao(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,io(t)):(n.next=i.next,i.next=n),t.interleaved=n,oo(e,r)}function oo(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var so=!1;function co(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function lo(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function uo(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function fo(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,$c&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,oo(e,n)}return i=r.interleaved,i===null?(t.next=t,io(r)):(t.next=i.next,i.next=t),r.interleaved=t,oo(e,n)}function po(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,n&4194240)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Gt(e,n)}}function mo(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var o={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=o:a=a.next=o,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function ho(e,t,n,r){var i=e.updateQueue;so=!1;var a=i.firstBaseUpdate,o=i.lastBaseUpdate,s=i.shared.pending;if(s!==null){i.shared.pending=null;var c=s,l=c.next;c.next=null,o===null?a=l:o.next=l,o=c;var u=e.alternate;u!==null&&(u=u.updateQueue,s=u.lastBaseUpdate,s!==o&&(s===null?u.firstBaseUpdate=l:s.next=l,u.lastBaseUpdate=c))}if(a!==null){var d=i.baseState;o=0,u=l=c=null,s=a;do{var f=s.lane,p=s.eventTime;if((r&f)===f){u!==null&&(u=u.next={eventTime:p,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});a:{var m=e,h=s;switch(f=t,p=n,h.tag){case 1:if(m=h.payload,typeof m==`function`){d=m.call(p,d,f);break a}d=m;break a;case 3:m.flags=m.flags&-65537|128;case 0:if(m=h.payload,f=typeof m==`function`?m.call(p,d,f):m,f==null)break a;d=M({},d,f);break a;case 2:so=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,f=i.effects,f===null?i.effects=[s]:f.push(s))}else p={eventTime:p,lane:f,tag:s.tag,payload:s.payload,callback:s.callback,next:null},u===null?(l=u=p,c=d):u=u.next=p,o|=f;if(s=s.next,s===null){if(s=i.shared.pending,s===null)break;f=s,s=f.next,f.next=null,i.lastBaseUpdate=f,i.shared.pending=null}}while(1);if(u===null&&(c=d),i.baseState=c,i.firstBaseUpdate=l,i.lastBaseUpdate=u,t=i.shared.interleaved,t!==null){i=t;do o|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);sl|=o,e.lanes=o,e.memoizedState=d}}function go(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;t<e.length;t++){var i=e[t],a=i.callback;if(a!==null){if(i.callback=null,i=n,typeof a!=`function`)throw Error(r(191,a));a.call(i)}}}var _o={},vo=Yi(_o),yo=Yi(_o),bo=Yi(_o);function xo(e){if(e===_o)throw Error(r(174));return e}function So(e,t){switch(Zi(bo,t),Zi(yo,e),Zi(vo,_o),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:Ne(null,``);break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=Ne(t,e)}Xi(vo),Zi(vo,t)}function Co(){Xi(vo),Xi(yo),Xi(bo)}function wo(e){xo(bo.current);var t=xo(vo.current),n=Ne(t,e.type);t!==n&&(Zi(yo,e),Zi(vo,n))}function To(e){yo.current===e&&(Xi(vo),Xi(yo))}var Eo=Yi(0);function Do(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||n.data===`$?`||n.data===`$!`))return t}else if(t.tag===19&&t.memoizedProps.revealOrder!==void 0){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Oo=[];function ko(){for(var e=0;e<Oo.length;e++)Oo[e]._workInProgressVersionPrimary=null;Oo.length=0}var Ao=C.ReactCurrentDispatcher,jo=C.ReactCurrentBatchConfig,Mo=0,No=null,Po=null,Fo=null,Io=!1,Lo=!1,Ro=0,zo=0;function Bo(){throw Error(r(321))}function z(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Mr(e[n],t[n]))return!1;return!0}function Vo(e,t,n,i,a,o){if(Mo=o,No=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,Ao.current=e===null||e.memoizedState===null?ws:Ts,e=n(i,a),Lo){o=0;do{if(Lo=!1,Ro=0,25<=o)throw Error(r(301));o+=1,Fo=Po=null,t.updateQueue=null,Ao.current=Es,e=n(i,a)}while(Lo)}if(Ao.current=Cs,t=Po!==null&&Po.next!==null,Mo=0,Fo=Po=No=null,Io=!1,t)throw Error(r(300));return e}function Ho(){var e=Ro!==0;return Ro=0,e}function Uo(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Fo===null?No.memoizedState=Fo=e:Fo=Fo.next=e,Fo}function Wo(){if(Po===null){var e=No.alternate;e=e===null?null:e.memoizedState}else e=Po.next;var t=Fo===null?No.memoizedState:Fo.next;if(t!==null)Fo=t,Po=e;else{if(e===null)throw Error(r(310));Po=e,e={memoizedState:Po.memoizedState,baseState:Po.baseState,baseQueue:Po.baseQueue,queue:Po.queue,next:null},Fo===null?No.memoizedState=Fo=e:Fo=Fo.next=e}return Fo}function Go(e,t){return typeof t==`function`?t(e):t}function Ko(e){var t=Wo(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=Po,a=i.baseQueue,o=n.pending;if(o!==null){if(a!==null){var s=a.next;a.next=o.next,o.next=s}i.baseQueue=a=o,n.pending=null}if(a!==null){o=a.next,i=i.baseState;var c=s=null,l=null,u=o;do{var d=u.lane;if((Mo&d)===d)l!==null&&(l=l.next={lane:0,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null}),i=u.hasEagerState?u.eagerState:e(i,u.action);else{var f={lane:d,action:u.action,hasEagerState:u.hasEagerState,eagerState:u.eagerState,next:null};l===null?(c=l=f,s=i):l=l.next=f,No.lanes|=d,sl|=d}u=u.next}while(u!==null&&u!==o);l===null?s=i:l.next=c,Mr(i,t.memoizedState)||(Ws=!0),t.memoizedState=i,t.baseState=s,t.baseQueue=l,n.lastRenderedState=i}if(e=n.interleaved,e!==null){a=e;do o=a.lane,No.lanes|=o,sl|=o,a=a.next;while(a!==e)}else a===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function qo(e){var t=Wo(),n=t.queue;if(n===null)throw Error(r(311));n.lastRenderedReducer=e;var i=n.dispatch,a=n.pending,o=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do o=e(o,s.action),s=s.next;while(s!==a);Mr(o,t.memoizedState)||(Ws=!0),t.memoizedState=o,t.baseQueue===null&&(t.baseState=o),n.lastRenderedState=o}return[o,i]}function Jo(){}function Yo(e,t){var n=No,i=Wo(),a=t(),o=!Mr(i.memoizedState,a);if(o&&(i.memoizedState=a,Ws=!0),i=i.queue,ss(Qo.bind(null,n,i,e),[e]),i.getSnapshot!==t||o||Fo!==null&&Fo.memoizedState.tag&1){if(n.flags|=2048,ns(9,Zo.bind(null,n,i,a,t),void 0,null),el===null)throw Error(r(349));Mo&30||Xo(n,t,a)}return a}function Xo(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=No.updateQueue,t===null?(t={lastEffect:null,stores:null},No.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function Zo(e,t,n,r){t.value=n,t.getSnapshot=r,$o(t)&&es(e)}function Qo(e,t,n){return n(function(){$o(t)&&es(e)})}function $o(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Mr(e,n)}catch{return!0}}function es(e){var t=oo(e,1);t!==null&&Dl(t,e,1,-1)}function ts(e){var t=Uo();return typeof e==`function`&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:Go,lastRenderedState:e},t.queue=e,e=e.dispatch=ys.bind(null,No,e),[t.memoizedState,e]}function ns(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=No.updateQueue,t===null?(t={lastEffect:null,stores:null},No.updateQueue=t,t.lastEffect=e.next=e):(n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e)),e}function rs(){return Wo().memoizedState}function is(e,t,n,r){var i=Uo();No.flags|=e,i.memoizedState=ns(1|t,n,void 0,r===void 0?null:r)}function as(e,t,n,r){var i=Wo();r=r===void 0?null:r;var a=void 0;if(Po!==null){var o=Po.memoizedState;if(a=o.destroy,r!==null&&z(r,o.deps)){i.memoizedState=ns(t,n,a,r);return}}No.flags|=e,i.memoizedState=ns(1|t,n,a,r)}function os(e,t){return is(8390656,8,e,t)}function ss(e,t){return as(2048,8,e,t)}function cs(e,t){return as(4,2,e,t)}function ls(e,t){return as(4,4,e,t)}function us(e,t){if(typeof t==`function`)return e=e(),t(e),function(){t(null)};if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function ds(e,t,n){return n=n==null?null:n.concat([e]),as(4,4,us.bind(null,t,e),n)}function fs(){}function ps(e,t){var n=Wo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&z(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function ms(e,t){var n=Wo();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&z(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function hs(e,t,n){return Mo&21?(Mr(n,t)||(n=Ht(),No.lanes|=n,sl|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Ws=!0),e.memoizedState=n)}function gs(e,t){var n=I;I=n!==0&&4>n?n:4,e(!0);var r=jo.transition;jo.transition={};try{e(!1),t()}finally{I=n,jo.transition=r}}function _s(){return Wo().memoizedState}function vs(e,t,n){var r=El(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},bs(e))xs(t,n);else if(n=ao(e,t,n,r),n!==null){var i=Tl();Dl(n,e,r,i),Ss(n,t,r)}}function ys(e,t,n){var r=El(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(bs(e))xs(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var o=t.lastRenderedState,s=a(o,n);if(i.hasEagerState=!0,i.eagerState=s,Mr(s,o)){var c=t.interleaved;c===null?(i.next=i,io(t)):(i.next=c.next,c.next=i),t.interleaved=i;return}}catch{}n=ao(e,t,i,r),n!==null&&(i=Tl(),Dl(n,e,r,i),Ss(n,t,r))}}function bs(e){var t=e.alternate;return e===No||t!==null&&t===No}function xs(e,t){Lo=Io=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Ss(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,Gt(e,n)}}var Cs={readContext:no,useCallback:Bo,useContext:Bo,useEffect:Bo,useImperativeHandle:Bo,useInsertionEffect:Bo,useLayoutEffect:Bo,useMemo:Bo,useReducer:Bo,useRef:Bo,useState:Bo,useDebugValue:Bo,useDeferredValue:Bo,useTransition:Bo,useMutableSource:Bo,useSyncExternalStore:Bo,useId:Bo,unstable_isNewReconciler:!1},ws={readContext:no,useCallback:function(e,t){return Uo().memoizedState=[e,t===void 0?null:t],e},useContext:no,useEffect:os,useImperativeHandle:function(e,t,n){return n=n==null?null:n.concat([e]),is(4194308,4,us.bind(null,t,e),n)},useLayoutEffect:function(e,t){return is(4194308,4,e,t)},useInsertionEffect:function(e,t){return is(4,2,e,t)},useMemo:function(e,t){var n=Uo();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Uo();return t=n===void 0?t:n(t),r.memoizedState=r.baseState=t,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:t},r.queue=e,e=e.dispatch=vs.bind(null,No,e),[r.memoizedState,e]},useRef:function(e){var t=Uo();return e={current:e},t.memoizedState=e},useState:ts,useDebugValue:fs,useDeferredValue:function(e){return Uo().memoizedState=e},useTransition:function(){var e=ts(!1),t=e[0];return e=gs.bind(null,e[1]),Uo().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var i=No,a=Uo();if(Aa){if(n===void 0)throw Error(r(407));n=n()}else{if(n=t(),el===null)throw Error(r(349));Mo&30||Xo(i,t,n)}a.memoizedState=n;var o={value:n,getSnapshot:t};return a.queue=o,os(Qo.bind(null,i,o,e),[e]),i.flags|=2048,ns(9,Zo.bind(null,i,o,n,t),void 0,null),n},useId:function(){var e=Uo(),t=el.identifierPrefix;if(Aa){var n=Ca,r=Sa;n=(r&~(1<<32-jt(r)-1)).toString(32)+n,t=`:`+t+`R`+n,n=Ro++,0<n&&(t+=`H`+n.toString(32)),t+=`:`}else n=zo++,t=`:`+t+`r`+n.toString(32)+`:`;return e.memoizedState=t},unstable_isNewReconciler:!1},Ts={readContext:no,useCallback:ps,useContext:no,useEffect:ss,useImperativeHandle:ds,useInsertionEffect:cs,useLayoutEffect:ls,useMemo:ms,useReducer:Ko,useRef:rs,useState:function(){return Ko(Go)},useDebugValue:fs,useDeferredValue:function(e){return hs(Wo(),Po.memoizedState,e)},useTransition:function(){return[Ko(Go)[0],Wo().memoizedState]},useMutableSource:Jo,useSyncExternalStore:Yo,useId:_s,unstable_isNewReconciler:!1},Es={readContext:no,useCallback:ps,useContext:no,useEffect:ss,useImperativeHandle:ds,useInsertionEffect:cs,useLayoutEffect:ls,useMemo:ms,useReducer:qo,useRef:rs,useState:function(){return qo(Go)},useDebugValue:fs,useDeferredValue:function(e){var t=Wo();return Po===null?t.memoizedState=e:hs(t,Po.memoizedState,e)},useTransition:function(){return[qo(Go)[0],Wo().memoizedState]},useMutableSource:Jo,useSyncExternalStore:Yo,useId:_s,unstable_isNewReconciler:!1};function Ds(e,t){if(e&&e.defaultProps){for(var n in t=M({},t),e=e.defaultProps,e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function Os(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:M({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var ks={isMounted:function(e){return(e=e._reactInternals)?dt(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Tl(),i=El(e),a=uo(r,i);a.payload=t,n!=null&&(a.callback=n),t=fo(e,a,i),t!==null&&(Dl(t,e,i,r),po(t,e,i))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Tl(),i=El(e),a=uo(r,i);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=fo(e,a,i),t!==null&&(Dl(t,e,i,r),po(t,e,i))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Tl(),r=El(e),i=uo(n,r);i.tag=2,t!=null&&(i.callback=t),t=fo(e,i,r),t!==null&&(Dl(t,e,r,n),po(t,e,r))}};function As(e,t,n,r,i,a,o){return e=e.stateNode,typeof e.shouldComponentUpdate==`function`?e.shouldComponentUpdate(r,a,o):t.prototype&&t.prototype.isPureReactComponent?!Nr(n,r)||!Nr(i,a):!0}function js(e,t,n){var r=!1,i=Qi,a=t.contextType;return typeof a==`object`&&a?a=no(a):(i=ra(t)?ta:$i.current,r=t.contextTypes,a=(r=r!=null)?na(e,i):Qi),t=new t(n,a),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=ks,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=i,e.__reactInternalMemoizedMaskedChildContext=a),t}function Ms(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps==`function`&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps==`function`&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&ks.enqueueReplaceState(t,t.state,null)}function Ns(e,t,n,r){var i=e.stateNode;i.props=n,i.state=e.memoizedState,i.refs={},co(e);var a=t.contextType;typeof a==`object`&&a?i.context=no(a):(a=ra(t)?ta:$i.current,i.context=na(e,a)),i.state=e.memoizedState,a=t.getDerivedStateFromProps,typeof a==`function`&&(Os(e,t,a,n),i.state=e.memoizedState),typeof t.getDerivedStateFromProps==`function`||typeof i.getSnapshotBeforeUpdate==`function`||typeof i.UNSAFE_componentWillMount!=`function`&&typeof i.componentWillMount!=`function`||(t=i.state,typeof i.componentWillMount==`function`&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount==`function`&&i.UNSAFE_componentWillMount(),t!==i.state&&ks.enqueueReplaceState(i,i.state,null),ho(e,n,i,r),i.state=e.memoizedState),typeof i.componentDidMount==`function`&&(e.flags|=4194308)}function Ps(e,t){try{var n=``,r=t;do n+=de(r),r=r.return;while(r);var i=n}catch(e){i=`
7Error generating stack: `+e.message+`
8`+e.stack}return{value:e,source:t,stack:i,digest:null}}function Fs(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function Is(e,t){try{console.error(t.value)}catch(e){setTimeout(function(){throw e})}}var Ls=typeof WeakMap==`function`?WeakMap:Map;function Rs(e,t,n){n=uo(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){hl||(hl=!0,gl=r),Is(e,t)},n}function zs(e,t,n){n=uo(-1,n),n.tag=3;var r=e.type.getDerivedStateFromError;if(typeof r==`function`){var i=t.value;n.payload=function(){return r(i)},n.callback=function(){Is(e,t)}}var a=e.stateNode;return a!==null&&typeof a.componentDidCatch==`function`&&(n.callback=function(){Is(e,t),typeof r!=`function`&&(_l===null?_l=new Set([this]):_l.add(this));var n=t.stack;this.componentDidCatch(t.value,{componentStack:n===null?``:n})}),n}function Bs(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new Ls;var i=new Set;r.set(t,i)}else i=r.get(t),i===void 0&&(i=new Set,r.set(t,i));i.has(n)||(i.add(n),e=Ql.bind(null,e,t,n),t.then(e,e))}function Vs(e){do{var t;if((t=e.tag===13)&&(t=e.memoizedState,t=t===null||t.dehydrated!==null),t)return e;e=e.return}while(e!==null);return null}function Hs(e,t,n,r,i){return e.mode&1?(e.flags|=65536,e.lanes=i,e):(e===t?e.flags|=65536:(e.flags|=128,n.flags|=131072,n.flags&=-52805,n.tag===1&&(n.alternate===null?n.tag=17:(t=uo(-1,1),t.tag=2,fo(n,t,1))),n.lanes|=1),e)}var Us=C.ReactCurrentOwner,Ws=!1;function Gs(e,t,n,r){t.child=e===null?qa(t,null,n,r):Ka(t,e.child,n,r)}function Ks(e,t,n,r,i){n=n.render;var a=t.ref;return to(t,i),r=Vo(e,t,n,r,a,i),n=Ho(),e!==null&&!Ws?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,fc(e,t,i)):(Aa&&n&&Ea(t),t.flags|=1,Gs(e,t,r,i),t.child)}function qs(e,t,n,r,i){if(e===null){var a=n.type;return typeof a==`function`&&!au(a)&&a.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=a,Js(e,t,a,r,i)):(e=cu(n.type,null,r,t,t.mode,i),e.ref=t.ref,e.return=t,t.child=e)}if(a=e.child,(e.lanes&i)===0){var o=a.memoizedProps;if(n=n.compare,n=n===null?Nr:n,n(o,r)&&e.ref===t.ref)return fc(e,t,i)}return t.flags|=1,e=su(a,r),e.ref=t.ref,e.return=t,t.child=e}function Js(e,t,n,r,i){if(e!==null){var a=e.memoizedProps;if(Nr(a,r)&&e.ref===t.ref){if(Ws=!1,t.pendingProps=r=a,(e.lanes&i)!==0)e.flags&131072&&(Ws=!0);else return t.lanes=e.lanes,fc(e,t,i)}}return Zs(e,t,n,r,i)}
8function Ys(e,t,n){var r=t.pendingProps,i=r.children,a=e===null?null:e.memoizedState;if(r.mode===`hidden`){if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},Zi(il,rl),rl|=n;else{if(!(n&1073741824))return e=a===null?n:a.baseLanes|n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,Zi(il,rl),rl|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=a===null?n:a.baseLanes,Zi(il,rl),rl|=r}}else a===null?r=n:(r=a.baseLanes|n,t.memoizedState=null),Zi(il,rl),rl|=r;return Gs(e,t,i,n),t.child}function Xs(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function Zs(e,t,n,r,i){var a=ra(n)?ta:$i.current;return a=na(t,a),to(t,i),n=Vo(e,t,n,r,a,i),r=Ho(),e!==null&&!Ws?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~i,fc(e,t,i)):(Aa&&r&&Ea(t),t.flags|=1,Gs(e,t,n,i),t.child)}function Qs(e,t,n,r,i){if(ra(n)){var a=!0;sa(t)}else a=!1;if(to(t,i),t.stateNode===null)dc(e,t),js(t,n,r),Ns(t,n,r,i),r=!0;else if(e===null){var o=t.stateNode,s=t.memoizedProps;o.props=s;var c=o.context,l=n.contextType;typeof l==`object`&&l?l=no(l):(l=ra(n)?ta:$i.current,l=na(t,l));var u=n.getDerivedStateFromProps,d=typeof u==`function`||typeof o.getSnapshotBeforeUpdate==`function`;d||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==r||c!==l)&&Ms(t,o,r,l),so=!1;var f=t.memoizedState;o.state=f,ho(t,r,o,i),c=t.memoizedState,s!==r||f!==c||ea.current||so?(typeof u==`function`&&(Os(t,
vendor: 1,057 bytes, line 8
8n,u,r),c=t.memoizedState),(s=so||As(t,n,s,r,f,c,l))?(d||typeof o.UNSAFE_componentWillMount!=`function`&&typeof o.componentWillMount!=`function`||(typeof o.componentWillMount==`function`&&o.componentWillMount(),typeof o.UNSAFE_componentWillMount==`function`&&o.UNSAFE_componentWillMount()),typeof o.componentDidMount==`function`&&(t.flags|=4194308)):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),o.props=r,o.state=c,o.context=l,r=s):(typeof o.componentDidMount==`function`&&(t.flags|=4194308),r=!1)}else{o=t.stateNode,lo(e,t),s=t.memoizedProps,l=t.type===t.elementType?s:Ds(t.type,s),o.props=l,d=t.pendingProps,f=o.context,c=n.contextType,typeof c==`object`&&c?c=no(c):(c=ra(n)?ta:$i.current,c=na(t,c));var p=n.getDerivedStateFromProps;(u=typeof p==`function`||typeof o.getSnapshotBeforeUpdate==`function`)||typeof o.UNSAFE_componentWillReceiveProps!=`function`&&typeof o.componentWillReceiveProps!=`function`||(s!==d||f!==c)&&Ms(t,o,r,c),so=!1,f=t.memoizedState,o.state=f,ho(t,r,o,i);var m=t.memoizedState;
vendor: 45,622 bytes, line 8
8s!==d||f!==m||ea.current||so?(typeof p==`function`&&(Os(t,n,p,r),m=t.memoizedState),(l=so||As(t,n,l,r,f,m,c)||!1)?(u||typeof o.UNSAFE_componentWillUpdate!=`function`&&typeof o.componentWillUpdate!=`function`||(typeof o.componentWillUpdate==`function`&&o.componentWillUpdate(r,m,c),typeof o.UNSAFE_componentWillUpdate==`function`&&o.UNSAFE_componentWillUpdate(r,m,c)),typeof o.componentDidUpdate==`function`&&(t.flags|=4),typeof o.getSnapshotBeforeUpdate==`function`&&(t.flags|=1024)):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=m),o.props=r,o.state=m,o.context=c,r=l):(typeof o.componentDidUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=4),typeof o.getSnapshotBeforeUpdate!=`function`||s===e.memoizedProps&&f===e.memoizedState||(t.flags|=1024),r=!1)}return $s(e,t,n,r,a,i)}function $s(e,t,n,r,i,a){Xs(e,t);var o=!!(t.flags&128);if(!r&&!o)return i&&ca(t,n,!1),fc(e,t,a);r=t.stateNode,Us.current=t;var s=o&&typeof n.getDerivedStateFromError!=`function`?null:r.render();return t.flags|=1,e!==null&&o?(t.child=Ka(t,e.child,null,a),t.child=Ka(t,null,s,a)):Gs(e,t,s,a),t.memoizedState=r.state,i&&ca(t,n,!0),t.child}function ec(e){var t=e.stateNode;t.pendingContext?aa(e,t.pendingContext,t.pendingContext!==t.context):t.context&&aa(e,t.context,!1),So(e,t.containerInfo)}function tc(e,t,n,r,i){return za(),Ba(i),t.flags|=256,Gs(e,t,n,r),t.child}var nc={dehydrated:null,treeContext:null,retryLane:0};function rc(e){return{baseLanes:e,cachePool:null,transitions:null}}function ic(e,t,n){var r=t.pendingProps,i=Eo.current,a=!1,o=!!(t.flags&128),s;if((s=o)||(s=e!==null&&e.memoizedState===null?!1:!!(i&2)),s?(a=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(i|=1),Zi(Eo,i&1),e===null)return Fa(t),e=t.memoizedState,e!==null&&(e=e.dehydrated,e!==null)?(t.lanes=t.mode&1?e.data===`$!`?8:1073741824:1,null):(o=r.children,e=r.fallback,a?(r=t.mode,a=t.child,o={mode:`hidden`,children:o},!(r&1)&&a!==null?(a.childLanes=0,a.pendingProps=o):a=uu(o,r,0,null),e=lu(e,r,n,null),a.return=t,e.return=t,a.sibling=e,t.child=a,t.child.memoizedState=rc(n),t.memoizedState=nc,e):ac(t,o));if(i=e.memoizedState,i!==null&&(s=i.dehydrated,s!==null))return sc(e,t,o,r,s,i,n);if(a){a=r.fallback,o=t.mode,i=e.child,s=i.sibling;var c={mode:`hidden`,children:r.children};return!(o&1)&&t.child!==i?(r=t.child,r.childLanes=0,r.pendingProps=c,t.deletions=null):(r=su(i,c),r.subtreeFlags=i.subtreeFlags&14680064),s===null?(a=lu(a,o,n,null),a.flags|=2):a=su(s,a),a.return=t,r.return=t,r.sibling=a,t.child=r,r=a,a=t.child,o=e.child.memoizedState,o=o===null?rc(n):{baseLanes:o.baseLanes|n,cachePool:null,transitions:o.transitions},a.memoizedState=o,a.childLanes=e.childLanes&~n,t.memoizedState=nc,r}return a=e.child,e=a.sibling,r=su(a,{mode:`visible`,children:r.children}),!(t.mode&1)&&(r.lanes=n),r.return=t,r.sibling=null,e!==null&&(n=t.deletions,n===null?(t.deletions=[e],t.flags|=16):n.push(e)),t.child=r,t.memoizedState=null,r}function ac(e,t){return t=uu({mode:`visible`,children:t},e.mode,0,null),t.return=e,e.child=t}function oc(e,t,n,r){return r!==null&&Ba(r),Ka(t,e.child,null,n),e=ac(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function sc(e,t,n,i,a,o,s){if(n)return t.flags&256?(t.flags&=-257,i=Fs(Error(r(422))),oc(e,t,s,i)):t.memoizedState===null?(o=i.fallback,a=t.mode,i=uu({mode:`visible`,children:i.children},a,0,null),o=lu(o,a,s,null),o.flags|=2,i.return=t,o.return=t,i.sibling=o,t.child=i,t.mode&1&&Ka(t,e.child,null,s),t.child.memoizedState=rc(s),t.memoizedState=nc,o):(t.child=e.child,t.flags|=128,null);if(!(t.mode&1))return oc(e,t,s,null);if(a.data===`$!`){if(i=a.nextSibling&&a.nextSibling.dataset,i)var c=i.dgst;return i=c,o=Error(r(419)),i=Fs(o,i,void 0),oc(e,t,s,i)}if(c=(s&e.childLanes)!==0,Ws||c){if(i=el,i!==null){switch(s&-s){case 4:a=2;break;case 16:a=8;break;case 64: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:case 4194304:case 8388608:case 16777216:case 33554432:case 67108864:a=32;break;case 536870912:a=268435456;break;default:a=0}a=(a&(i.suspendedLanes|s))===0?a:0,a!==0&&a!==o.retryLane&&(o.retryLane=a,oo(e,a),Dl(i,e,a,-1))}return Vl(),i=Fs(Error(r(421))),oc(e,t,s,i)}return a.data===`$?`?(t.flags|=128,t.child=e.child,t=eu.bind(null,e),a._reactRetry=t,null):(e=o.treeContext,ka=Pi(a.nextSibling),Oa=t,Aa=!0,ja=null,e!==null&&(ya[ba++]=Sa,ya[ba++]=Ca,ya[ba++]=xa,Sa=e.id,Ca=e.overflow,xa=t),t=ac(t,i.children),t.flags|=4096,t)}function cc(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),eo(e.return,t,n)}function lc(e,t,n,r,i){var a=e.memoizedState;a===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:i}:(a.isBackwards=t,a.rendering=null,a.renderingStartTime=0,a.last=r,a.tail=n,a.tailMode=i)}function uc(e,t,n){var r=t.pendingProps,i=r.revealOrder,a=r.tail;if(Gs(e,t,r.children,n),r=Eo.current,r&2)r=r&1|2,t.flags|=128;else{if(e!==null&&e.flags&128)a:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&cc(e,n,t);else if(e.tag===19)cc(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break a;for(;e.sibling===null;){if(e.return===null||e.return===t)break a;e=e.return}e.sibling.return=e.return,e=e.sibling}r&=1}if(Zi(Eo,r),!(t.mode&1))t.memoizedState=null;else switch(i){case`forwards`:for(n=t.child,i=null;n!==null;)e=n.alternate,e!==null&&Do(e)===null&&(i=n),n=n.sibling;n=i,n===null?(i=t.child,t.child=null):(i=n.sibling,n.sibling=null),lc(t,!1,i,n,a);break;case`backwards`:for(n=null,i=t.child,t.child=null;i!==null;){if(e=i.alternate,e!==null&&Do(e)===null){t.child=i;break}e=i.sibling,i.sibling=n,n=i,i=e}lc(t,!0,n,null,a);break;case`together`:lc(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function dc(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function fc(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),sl|=t.lanes,(n&t.childLanes)===0)return null;if(e!==null&&t.child!==e.child)throw Error(r(153));if(t.child!==null){for(e=t.child,n=su(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=su(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function pc(e,t,n){switch(t.tag){case 3:ec(t),za();break;case 5:wo(t);break;case 1:ra(t.type)&&sa(t);break;case 4:So(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,i=t.memoizedProps.value;Zi(Ja,r._currentValue),r._currentValue=i;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated===null?(n&t.child.childLanes)===0?(Zi(Eo,Eo.current&1),e=fc(e,t,n),e===null?null:e.sibling):ic(e,t,n):(Zi(Eo,Eo.current&1),t.flags|=128,null);Zi(Eo,Eo.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return uc(e,t,n);t.flags|=128}if(i=t.memoizedState,i!==null&&(i.rendering=null,i.tail=null,i.lastEffect=null),Zi(Eo,Eo.current),r)break;return null;case 22:case 23:return t.lanes=0,Ys(e,t,n)}return fc(e,t,n)}var mc=function(e,t){for(var n=t.child;n!==null;){if(n.tag===5||n.tag===6)e.appendChild(n.stateNode);else if(n.tag!==4&&n.child!==null){n.child.return=n,n=n.child;continue}if(n===t)break;for(;n.sibling===null;){if(n.return===null||n.return===t)return;n=n.return}n.sibling.return=n.return,n=n.sibling}},hc=function(e,t,n,r){var i=e.memoizedProps;if(i!==r){e=t.stateNode,xo(vo.current);var o=null;switch(n){case`input`:i=be(e,i),r=be(e,r),o=[];break;case`select`:i=M({},i,{value:void 0}),r=M({},r,{value:void 0}),o=[];break;case`textarea`:i=Oe(e,i),r=Oe(e,r),o=[];break;default:typeof i.onClick!=`function`&&typeof r.onClick==`function`&&(e.onclick=wi)}He(n,r);var s;for(u in n=null,i)if(!r.hasOwnProperty(u)&&i.hasOwnProperty(u)&&i[u]!=null){if(u===`style`){var c=i[u];for(s in c)c.hasOwnProperty(s)&&(n||={},n[s]=``)}else u!==`dangerouslySetInnerHTML`&&u!==`children`&&u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&u!==`autoFocus`&&(a.hasOwnProperty(u)?o||=[]:(o||=[]).push(u,null))}for(u in r){var l=r[u];if(c=i?.[u],r.hasOwnProperty(u)&&l!==c&&(l!=null||c!=null)){if(u===`style`){if(c){for(s in c)!c.hasOwnProperty(s)||l&&l.hasOwnProperty(s)||(n||={},n[s]=``);for(s in l)l.hasOwnProperty(s)&&c[s]!==l[s]&&(n||={},n[s]=l[s])}else n||(o||=[],o.push(u,n)),n=l}else u===`dangerouslySetInnerHTML`?(l=l?l.__html:void 0,c=c?c.__html:void 0,l!=null&&c!==l&&(o||=[]).push(u,l)):u===`children`?typeof l!=`string`&&typeof l!=`number`||(o||=[]).push(u,``+l):u!==`suppressContentEditableWarning`&&u!==`suppressHydrationWarning`&&(a.hasOwnProperty(u)?(l!=null&&u===`onScroll`&&ui(`scroll`,e),o||c===l||(o=[])):(o||=[]).push(u,l))}}n&&(o||=[]).push(`style`,n);var u=o;(t.updateQueue=u)&&(t.flags|=4)}},gc=function(e,t,n,r){n!==r&&(t.flags|=4)};function _c(e,t){if(!Aa)switch(e.tailMode){case`hidden`:t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case`collapsed`:n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function vc(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags&14680064,r|=i.flags&14680064,i.return=e,i=i.sibling;else for(i=e.child;i!==null;)n|=i.lanes|i.childLanes,r|=i.subtreeFlags,r|=i.flags,i.return=e,i=i.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function yc(e,t,n){var i=t.pendingProps;switch(Da(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return vc(t),null;case 1:return ra(t.type)&&ia(),vc(t),null;case 3:return i=t.stateNode,Co(),Xi(ea),Xi($i),ko(),i.pendingContext&&(i.context=i.pendingContext,i.pendingContext=null),(e===null||e.child===null)&&(La(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,ja!==null&&(jl(ja),ja=null))),vc(t),null;case 5:To(t);var o=xo(bo.current);if(n=t.type,e!==null&&t.stateNode!=null)hc(e,t,n,i,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!i){if(t.stateNode===null)throw Error(r(166));return vc(t),null}if(e=xo(vo.current),La(t)){i=t.stateNode,n=t.type;var s=t.memoizedProps;switch(i[Li]=t,i[Ri]=s,e=!!(t.mode&1),n){case`dialog`:ui(`cancel`,i),ui(`close`,i);break;case`iframe`:case`object`:case`embed`:ui(`load`,i);break;case`video`:case`audio`:for(o=0;o<oi.length;o++)ui(oi[o],i);break;case`source`:ui(`error`,i);break;case`img`:case`image`:case`link`:ui(`error`,i),ui(`load`,i);break;case`details`:ui(`toggle`,i);break;case`input`:xe(i,s),ui(`invalid`,i);break;case`select`:i._wrapperState={wasMultiple:!!s.multiple},ui(`invalid`,i);break;case`textarea`:ke(i,s),ui(`invalid`,i)}for(var c in He(n,s),o=null,s)if(s.hasOwnProperty(c)){var l=s[c];c===`children`?typeof l==`string`?i.textContent!==l&&(!0!==s.suppressHydrationWarning&&Ci(i.textContent,l,e),o=[`children`,l]):typeof l==`number`&&i.textContent!==``+l&&(!0!==s.suppressHydrationWarning&&Ci(i.textContent,l,e),o=[`children`,``+l]):a.hasOwnProperty(c)&&l!=null&&c===`onScroll`&&ui(`scroll`,i)}switch(n){case`input`:_e(i),we(i,s,!0);break;case`textarea`:_e(i),je(i);break;case`select`:case`option`:break;default:typeof s.onClick==`function`&&(i.onclick=wi)}i=o,t.updateQueue=i,i!==null&&(t.flags|=4)}else{c=o.nodeType===9?o:o.ownerDocument,e===`http://www.w3.org/1999/xhtml`&&(e=Me(n)),e===`http://www.w3.org/1999/xhtml`?n===`script`?(e=c.createElement(`div`),e.innerHTML=`<script><\/script>`,e=e.removeChild(e.firstChild)):typeof i.is==`string`?e=c.createElement(n,{is:i.is}):(e=c.createElement(n),n===`select`&&(c=e,i.multiple?c.multiple=!0:i.size&&(c.size=i.size))):e=c.createElementNS(e,n),e[Li]=t,e[Ri]=i,mc(e,t,!1,!1),t.stateNode=e;a:{switch(c=N(n,i),n){case`dialog`:ui(`cancel`,e),ui(`close`,e),o=i;break;case`iframe`:case`object`:case`embed`:ui(`load`,e),o=i;break;case`video`:case`audio`:for(o=0;o<oi.length;o++)ui(oi[o],e);o=i;break;case`source`:ui(`error`,e),o=i;break;case`img`:case`image`:case`link`:ui(`error`,e),ui(`load`,e),o=i;break;case`details`:ui(`toggle`,e),o=i;break;case`input`:xe(e,i),o=be(e,i),ui(`invalid`,e);break;case`option`:o=i;break;case`select`:e._wrapperState={wasMultiple:!!i.multiple},o=M({},i,{value:void 0}),ui(`invalid`,e);break;case`textarea`:ke(e,i),o=Oe(e,i),ui(`invalid`,e);break;default:o=i}for(s in He(n,o),l=o,l)if(l.hasOwnProperty(s)){var u=l[s];s===`style`?Be(e,u):s===`dangerouslySetInnerHTML`?(u=u?u.__html:void 0,u!=null&&Fe(e,u)):s===`children`?typeof u==`string`?(n!==`textarea`||u!==``)&&Ie(e,u):typeof u==`number`&&Ie(e,``+u):s!==`suppressContentEditableWarning`&&s!==`suppressHydrationWarning`&&s!==`autoFocus`&&(a.hasOwnProperty(s)?u!=null&&s===`onScroll`&&ui(`scroll`,e):u!=null&&S(e,s,u,c))}switch(n){case`input`:_e(e),we(e,i,!1);break;case`textarea`:_e(e),je(e);break;case`option`:i.value!=null&&e.setAttribute(`value`,``+me(i.value));break;case`select`:e.multiple=!!i.multiple,s=i.value,s==null?i.defaultValue!=null&&De(e,!!i.multiple,i.defaultValue,!0):De(e,!!i.multiple,s,!1);break;default:typeof o.onClick==`function`&&(e.onclick=wi)}switch(n){case`button`:case`input`:case`select`:case`textarea`:i=!!i.autoFocus;break a;case`img`:i=!0;break a;default:i=!1}}i&&(t.flags|=4)}t.ref!==null&&(t.flags|=512,t.flags|=2097152)}return vc(t),null;case 6:if(e&&t.stateNode!=null)gc(e,t,e.memoizedProps,i);else{if(typeof i!=`string`&&t.stateNode===null)throw Error(r(166));if(n=xo(bo.current),xo(vo.current),La(t)){if(i=t.stateNode,n=t.memoizedProps,i[Li]=t,(s=i.nodeValue!==n)&&(e=Oa,e!==null))switch(e.tag){case 3:Ci(i.nodeValue,n,!!(e.mode&1));break;case 5:!0!==e.memoizedProps.suppressHydrationWarning&&Ci(i.nodeValue,n,!!(e.mode&1))}s&&(t.flags|=4)}else i=(n.nodeType===9?n:n.ownerDocument).createTextNode(i),i[Li]=t,t.stateNode=i}return vc(t),null;case 13:if(Xi(Eo),i=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Aa&&ka!==null&&t.mode&1&&!(t.flags&128))Ra(),za(),t.flags|=98560,s=!1;else if(s=La(t),i!==null&&i.dehydrated!==null){if(e===null){if(!s)throw Error(r(318));if(s=t.memoizedState,s=s===null?null:s.dehydrated,!s)throw Error(r(317));s[Li]=t}else za(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;vc(t),s=!1}else ja!==null&&(jl(ja),ja=null),s=!0;if(!s)return t.flags&65536?t:null}return t.flags&128?(t.lanes=n,t):(i=i!==null,i!==(e!==null&&e.memoizedState!==null)&&i&&(t.child.flags|=8192,t.mode&1&&(e===null||Eo.current&1?al===0&&(al=3):Vl())),t.updateQueue!==null&&(t.flags|=4),vc(t),null);case 4:return Co(),e===null&&pi(t.stateNode.containerInfo),vc(t),null;case 10:return $a(t.type._context),vc(t),null;case 17:return ra(t.type)&&ia(),vc(t),null;case 19:if(Xi(Eo),s=t.memoizedState,s===null)return vc(t),null;if(i=!!(t.flags&128),c=s.rendering,c===null){if(i)_c(s,!1);else{if(al!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(c=Do(e),c!==null){for(t.flags|=128,_c(s,!1),i=c.updateQueue,i!==null&&(t.updateQueue=i,t.flags|=4),t.subtreeFlags=0,i=n,n=t.child;n!==null;)s=n,e=i,s.flags&=14680066,c=s.alternate,c===null?(s.childLanes=0,s.lanes=e,s.child=null,s.subtreeFlags=0,s.memoizedProps=null,s.memoizedState=null,s.updateQueue=null,s.dependencies=null,s.stateNode=null):(s.childLanes=c.childLanes,s.lanes=c.lanes,s.child=c.child,s.subtreeFlags=0,s.deletions=null,s.memoizedProps=c.memoizedProps,s.memoizedState=c.memoizedState,s.updateQueue=c.updateQueue,s.type=c.type,e=c.dependencies,s.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return Zi(Eo,Eo.current&1|2),t.child}e=e.sibling}s.tail!==null&&xt()>pl&&(t.flags|=128,i=!0,_c(s,!1),t.lanes=4194304)}}else{if(!i){if(e=Do(c),e!==null){if(t.flags|=128,i=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),_c(s,!0),s.tail===null&&s.tailMode===`hidden`&&!c.alternate&&!Aa)return vc(t),null}else 2*xt()-s.renderingStartTime>pl&&n!==1073741824&&(t.flags|=128,i=!0,_c(s,!1),t.lanes=4194304)}s.isBackwards?(c.sibling=t.child,t.child=c):(n=s.last,n===null?t.child=c:n.sibling=c,s.last=c)}return s.tail===null?(vc(t),null):(t=s.tail,s.rendering=t,s.tail=t.sibling,s.renderingStartTime=xt(),t.sibling=null,n=Eo.current,Zi(Eo,i?n&1|2:n&1),t);case 22:case 23:return Ll(),i=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==i&&(t.flags|=8192),i&&t.mode&1?rl&1073741824&&(vc(t),t.subtreeFlags&6&&(t.flags|=8192)):vc(t),null;case 24:return null;case 25:return null}throw Error(r(156,t.tag))}function bc(e,t){switch(Da(t),t.tag){case 1:return ra(t.type)&&ia(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Co(),Xi(ea),Xi($i),ko(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return To(t),null;case 13:if(Xi(Eo),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(r(340));za()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Xi(Eo),null;case 4:return Co(),null;case 10:return $a(t.type._context),null;case 22:case 23:return Ll(),null;case 24:return null;default:return null}}var xc=!1,Sc=!1,Cc=typeof WeakSet==`function`?WeakSet:Set,B=null;function wc(e,t){var n=e.ref;if(n!==null){if(typeof n==`function`)try{n(null)}catch(n){Zl(e,t,n)}else n.current=null}}function Tc(e,t,n){try{n()}catch(n){Zl(e,t,n)}}var Ec=!1;function Dc(e,t){if(Ti=vn,e=Lr(),Rr(e)){if(`selectionStart`in e)var n={start:e.selectionStart,end:e.selectionEnd};else a:{n=(n=e.ownerDocument)&&n.defaultView||window;var i=n.getSelection&&n.getSelection();if(i&&i.rangeCount!==0){n=i.anchorNode;var a=i.anchorOffset,o=i.focusNode;i=i.focusOffset;try{n.nodeType,o.nodeType}catch{n=null;break a}var s=0,c=-1,l=-1,u=0,d=0,f=e,p=null;b:for(;;){for(var m;f!==n||a!==0&&f.nodeType!==3||(c=s+a),f!==o||i!==0&&f.nodeType!==3||(l=s+i),f.nodeType===3&&(s+=f.nodeValue.length),(m=f.firstChild)!==null;)p=f,f=m;for(;;){if(f===e)break b;if(p===n&&++u===a&&(c=s),p===o&&++d===i&&(l=s),(m=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=m}n=c===-1||l===-1?null:{start:c,end:l}}else n=null}n||={start:0,end:0}}else n=null;for(Ei={focusedElem:e,selectionRange:n},vn=!1,B=t;B!==null;)if(t=B,e=t.child,t.subtreeFlags&1028&&e!==null)e.return=t,B=e;else for(;B!==null;){t=B;try{var h=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(h!==null){var g=h.memoizedProps,_=h.memoizedState,v=t.stateNode;v.__reactInternalSnapshotBeforeUpdate=v.getSnapshotBeforeUpdate(t.elementType===t.type?g:Ds(t.type,g),_)}break;case 3:var y=t.stateNode.containerInfo;y.nodeType===1?y.textContent=``:y.nodeType===9&&y.documentElement&&y.removeChild(y.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(r(163))}}catch(e){Zl(t,t.return,e)}if(e=t.sibling,e!==null){e.return=t.return,B=e;break}B=t.return}return h=Ec,Ec=!1,h}function Oc(e,t,n){var r=t.updateQueue;if(r=r===null?null:r.lastEffect,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&Tc(t,n,a)}i=i.next}while(i!==r)}}function kc(e,t){if(t=t.updateQueue,t=t===null?null:t.lastEffect,t!==null){var n=t=t.next;do{if((n.tag&e)===e){var r=n.create;n.destroy=r()}n=n.next}while(n!==t)}}function Ac(e){var t=e.ref;if(t!==null){var n=e.stateNode;switch(e.tag){case 5:e=n;break;default:e=n}typeof t==`function`?t(e):t.current=e}}function jc(e){var t=e.alternate;t!==null&&(e.alternate=null,jc(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Li],delete t[Ri],delete t[Bi],delete t[Vi],delete t[Hi])),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}function Mc(e){return e.tag===5||e.tag===3||e.tag===4}function Nc(e){a:for(;;){for(;e.sibling===null;){if(e.return===null||Mc(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.flags&2||e.child===null||e.tag===4)continue a;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Pc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.nodeType===8?n.parentNode.insertBefore(e,t):n.insertBefore(e,t):(n.nodeType===8?(t=n.parentNode,t.insertBefore(e,n)):(t=n,t.appendChild(e)),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=wi));else if(r!==4&&(e=e.child,e!==null))for(Pc(e,t,n),e=e.sibling;e!==null;)Pc(e,t,n),e=e.sibling}function Fc(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(Fc(e,t,n),e=e.sibling;e!==null;)Fc(e,t,n),e=e.sibling}var Ic=null,Lc=!1;function Rc(e,t,n){for(n=n.child;n!==null;)zc(e,t,n),n=n.sibling}function zc(e,t,n){if(kt&&typeof kt.onCommitFiberUnmount==`function`)try{kt.onCommitFiberUnmount(Ot,n)}catch{}switch(n.tag){case 5:Sc||wc(n,t);case 6:var r=Ic,i=Lc;Ic=null,Rc(e,t,n),Ic=r,Lc=i,Ic!==null&&(Lc?(e=Ic,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Ic.removeChild(n.stateNode));break;case 18:Ic!==null&&(Lc?(e=Ic,n=n.stateNode,e.nodeType===8?Ni(e.parentNode,n):e.nodeType===1&&Ni(e,n),gn(e)):Ni(Ic,n.stateNode));break;case 4:r=Ic,i=Lc,Ic=n.stateNode.containerInfo,Lc=!0,Rc(e,t,n),Ic=r,Lc=i;break;case 0:case 11:case 14:case 15:if(!Sc&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,o=a.destroy;a=a.tag,o!==void 0&&(a&2||a&4)&&Tc(n,t,o),i=i.next}while(i!==r)}Rc(e,t,n);break;case 1:if(!Sc&&(wc(n,t),r=n.stateNode,typeof r.componentWillUnmount==`function`))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(e){Zl(n,t,e)}Rc(e,t,n);break;case 21:Rc(e,t,n);break;case 22:n.mode&1?(Sc=(r=Sc)||n.memoizedState!==null,Rc(e,t,n),Sc=r):Rc(e,t,n);break;default:Rc(e,t,n)}}function Bc(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Cc),t.forEach(function(t){var r=tu.bind(null,e,t);n.has(t)||(n.add(t),t.then(r,r))})}}function Vc(e,t){var n=t.deletions;if(n!==null)for(var i=0;i<n.length;i++){var a=n[i];try{var o=e,s=t,c=s;a:for(;c!==null;){switch(c.tag){case 5:Ic=c.stateNode,Lc=!1;break a;case 3:Ic=c.stateNode.containerInfo,Lc=!0;break a;case 4:Ic=c.stateNode.containerInfo,Lc=!0;break a}c=c.return}if(Ic===null)throw Error(r(160));zc(o,s,a),Ic=null,Lc=!1;var l=a.alternate;l!==null&&(l.return=null),a.return=null}catch(e){Zl(a,t,e)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)Hc(t,e),t=t.sibling}function Hc(e,t){var n=e.alternate,i=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(Vc(t,e),Uc(e),i&4){try{Oc(3,e,e.return),kc(3,e)}catch(t){Zl(e,e.return,t)}try{Oc(5,e,e.return)}catch(t){Zl(e,e.return,t)}}break;case 1:Vc(t,e),Uc(e),i&512&&n!==null&&wc(n,n.return);break;case 5:if(Vc(t,e),Uc(e),i&512&&n!==null&&wc(n,n.return),e.flags&32){var a=e.stateNode;try{Ie(a,``)}catch(t){Zl(e,e.return,t)}}if(i&4&&(a=e.stateNode,a!=null)){var o=e.memoizedProps,s=n===null?o:n.memoizedProps,c=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{c===`input`&&o.type===`radio`&&o.name!=null&&Se(a,o),N(c,s);var u=N(c,o);for(s=0;s<l.length;s+=2){var d=l[s],f=l[s+1];d===`style`?Be(a,f):d===`dangerouslySetInnerHTML`?Fe(a,f):d===`children`?Ie(a,f):S(a,d,f,u)}switch(c){case`input`:Ce(a,o);break;case`textarea`:Ae(a,o);break;case`select`:var p=a._wrapperState.wasMultiple;a._wrapperState.wasMultiple=!!o.multiple;var m=o.value;m==null?p!==!!o.multiple&&(o.defaultValue==null?De(a,!!o.multiple,o.multiple?[]:``,!1):De(a,!!o.multiple,o.defaultValue,!0)):De(a,!!o.multiple,m,!1)}a[Ri]=o}catch(t){Zl(e,e.return,t)}}break;case 6:if(Vc(t,e),Uc(e),i&4){if(e.stateNode===null)throw Error(r(162));a=e.stateNode,o=e.memoizedProps;try{a.nodeValue=o}catch(t){Zl(e,e.return,t)}}break;case 3:if(Vc(t,e),Uc(e),i&4&&n!==null&&n.memoizedState.isDehydrated)try{gn(t.containerInfo)}catch(t){Zl(e,e.return,t)}break;case 4:Vc(t,e),Uc(e);break;case 13:Vc(t,e),Uc(e),a=e.child,a.flags&8192&&(o=a.memoizedState!==null,a.stateNode.isHidden=o,!o||a.alternate!==null&&a.alternate.memoizedState!==null||(fl=xt())),i&4&&Bc(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(Sc=(u=Sc)||d,Vc(t,e),Sc=u):Vc(t,e),Uc(e),i&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(B=e,d=e.child;d!==null;){for(f=B=d;B!==null;){switch(p=B,m=p.child,p.tag){case 0:case 11:case 14:case 15:Oc(4,p,p.return);break;case 1:wc(p,p.return);var h=p.stateNode;if(typeof h.componentWillUnmount==`function`){i=p,n=p.return;try{t=i,h.props=t.memoizedProps,h.state=t.memoizedState,h.componentWillUnmount()}catch(e){Zl(i,n,e)}}break;case 5:wc(p,p.return);break;case 22:if(p.memoizedState!==null){qc(f);continue}}m===null?qc(f):(m.return=p,B=m)}d=d.sibling}a:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{a=f.stateNode,u?(o=a.style,typeof o.setProperty==`function`?o.setProperty(`display`,`none`,`important`):o.display=`none`):(c=f.stateNode,l=f.memoizedProps.style,s=l!=null&&l.hasOwnProperty(`display`)?l.display:null,c.style.display=ze(`display`,s))}catch(t){Zl(e,e.return,t)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?``:f.memoizedProps}catch(t){Zl(e,e.return,t)}}else if((f.tag!==22&&f.tag!==23||f.memoizedState===null||f===e)&&f.child!==null){f.child.return=f,f=f.child;continue}if(f===e)break a;for(;f.sibling===null;){if(f.return===null||f.return===e)break a;d===f&&(d=null),f=f.return}d===f&&(d=null),f.sibling.return=f.return,f=f.sibling}}break;case 19:Vc(t,e),Uc(e),i&4&&Bc(e);break;case 21:break;default:Vc(t,e),Uc(e)}}function Uc(e){var t=e.flags;if(t&2){try{a:{for(var n=e.return;n!==null;){if(Mc(n)){var i=n;break a}n=n.return}throw Error(r(160))}switch(i.tag){case 5:var a=i.stateNode;i.flags&32&&(Ie(a,``),i.flags&=-33),Fc(e,Nc(e),a);break;case 3:case 4:var o=i.stateNode.containerInfo;Pc(e,Nc(e),o);break;default:throw Error(r(161))}}catch(t){Zl(e,e.return,t)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function Wc(e,t,n){B=e,Gc(e,t,n)}function Gc(e,t,n){for(var r=!!(e.mode&1);B!==null;){var i=B,a=i.child;if(i.tag===22&&r){var o=i.memoizedState!==null||xc;if(!o){var s=i.alternate,c=s!==null&&s.memoizedState!==null||Sc;s=xc;var l=Sc;if(xc=o,(Sc=c)&&!l)for(B=i;B!==null;)o=B,c=o.child,o.tag===22&&o.memoizedState!==null||c===null?Jc(i):(c.return=o,B=c);for(;a!==null;)B=a,Gc(a,t,n),a=a.sibling;B=i,xc=s,Sc=l}Kc(e,t,n)}else i.subtreeFlags&8772&&a!==null?(a.return=i,B=a):Kc(e,t,n)}}function Kc(e){for(;B!==null;){var t=B;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:Sc||kc(5,t);break;case 1:var i=t.stateNode;if(t.flags&4&&!Sc){if(n===null)i.componentDidMount();else{var a=t.elementType===t.type?n.memoizedProps:Ds(t.type,n.memoizedProps);i.componentDidUpdate(a,n.memoizedState,i.__reactInternalSnapshotBeforeUpdate)}}var o=t.updateQueue;o!==null&&go(t,o,i);break;case 3:var s=t.updateQueue;if(s!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}go(t,s,n)}break;case 5:var c=t.stateNode;if(n===null&&t.flags&4){n=c;var l=t.memoizedProps;switch(t.type){case`button`:case`input`:case`select`:case`textarea`:l.autoFocus&&n.focus();break;case`img`:l.src&&(n.src=l.src)}}break;case 6:break;case 4:break;case 12:break;case 13:if(t.memoizedState===null){var u=t.alternate;if(u!==null){var d=u.memoizedState;if(d!==null){var f=d.dehydrated;f!==null&&gn(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error(r(163))}Sc||t.flags&512&&Ac(t)}catch(e){Zl(t,t.return,e)}}if(t===e){B=null;break}if(n=t.sibling,n!==null){n.return=t.return,B=n;break}B=t.return}}function qc(e){for(;B!==null;){var t=B;if(t===e){B=null;break}var n=t.sibling;if(n!==null){n.return=t.return,B=n;break}B=t.return}}function Jc(e){for(;B!==null;){var t=B;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{kc(4,t)}catch(e){Zl(t,n,e)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount==`function`){var i=t.return;try{r.componentDidMount()}catch(e){Zl(t,i,e)}}var a=t.return;try{Ac(t)}catch(e){Zl(t,a,e)}break;case 5:var o=t.return;try{Ac(t)}catch(e){Zl(t,o,e)}}}catch(e){Zl(t,t.return,e)}if(t===e){B=null;break}var s=t.sibling;if(s!==null){s.return=t.return,B=s;break}B=t.return}}var Yc=Math.ceil,Xc=C.ReactCurrentDispatcher,Zc=C.ReactCurrentOwner,Qc=C.ReactCurrentBatchConfig,$c=0,el=null,tl=null,nl=0,rl=0,il=Yi(0),al=0,ol=null,sl=0,cl=0,ll=0,ul=null,dl=null,fl=0,pl=1/0,ml=null,hl=!1,gl=null,_l=null,vl=!1,yl=null,bl=0,xl=0,Sl=null,Cl=-1,wl=0;function Tl(){return $c&6?xt():Cl===-1?Cl=xt():Cl}function El(e){return e.mode&1?$c&2&&nl!==0?nl&-nl:Va.transition===null?(e=I,e===0?(e=window.event,e=e===void 0?16:wn(e.type),e):e):(wl===0&&(wl=Ht()),wl):1}function Dl(e,t,n,i){if(50<xl)throw xl=0,Sl=null,Error(r(185));Ut(e,n,i),(!($c&2)||e!==el)&&(e===el&&(!($c&2)&&(cl|=n),al===4&&Nl(e,nl)),Ol(e,i),n===1&&$c===0&&!(t.mode&1)&&(pl=xt()+500,ua&&ma()))}function Ol(e,t){var n=e.callbackNode;Bt(e,t);var r=Rt(e,e===el?nl:0);if(r===0)n!==null&&vt(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&vt(n),t===1)e.tag===0?pa(Pl.bind(null,e)):fa(Pl.bind(null,e)),ji(function(){!($c&6)&&ma()}),n=null;else{switch(Kt(r)){case 1:n=Ct;break;case 4:n=wt;break;case 16:n=Tt;break;case 536870912:n=Dt;break;default:n=Tt}n=V(n,kl.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function kl(e,t){if(Cl=-1,wl=0,$c&6)throw Error(r(327));var n=e.callbackNode;if(Yl()&&e.callbackNode!==n)return null;var i=Rt(e,e===el?nl:0);if(i===0)return null;if(i&30||(i&e.expiredLanes)!==0||t)t=Hl(e,i);else{t=i;var a=$c;$c|=2;var o=Bl();(el!==e||nl!==t)&&(ml=null,pl=xt()+500,Rl(e,t));do try{Wl();break}catch(t){zl(e,t)}while(1);Qa(),Xc.current=o,$c=a,tl===null?(el=null,nl=0,t=al):t=0}if(t!==0){if(t===2&&(a=Vt(e),a!==0&&(i=a,t=Al(e,a))),t===1)throw n=ol,Rl(e,0),Nl(e,i),Ol(e,xt()),n;if(t===6)Nl(e,i);else{if(a=e.current.alternate,!(i&30)&&!Ml(a)&&(t=Hl(e,i),t===2&&(o=Vt(e),o!==0&&(i=o,t=Al(e,o))),t===1))throw n=ol,Rl(e,0),Nl(e,i),Ol(e,xt()),n;switch(e.finishedWork=a,e.finishedLanes=i,t){case 0:case 1:throw Error(r(345));case 2:ql(e,dl,ml);break;case 3:if(Nl(e,i),(i&130023424)===i&&(t=fl+500-xt(),10<t)){if(Rt(e,0)!==0)break;if(a=e.suspendedLanes,(a&i)!==i){Tl(),e.pingedLanes|=e.suspendedLanes&a;break}e.timeoutHandle=Oi(ql.bind(null,e,dl,ml),t);break}ql(e,dl,ml);break;case 4:if(Nl(e,i),(i&4194240)===i)break;for(t=e.eventTimes,a=-1;0<i;){var s=31-jt(i);o=1<<s,s=t[s],s>a&&(a=s),i&=~o}if(i=a,i=xt()-i,i=(120>i?120:480>i?480:1080>i?1080:1920>i?1920:3e3>i?3e3:4320>i?4320:1960*Yc(i/1960))-i,10<i){e.timeoutHandle=Oi(ql.bind(null,e,dl,ml),i);break}ql(e,dl,ml);break;case 5:ql(e,dl,ml);break;default:throw Error(r(329))}}}return Ol(e,xt()),e.callbackNode===n?kl.bind(null,e):null}function Al(e,t){var n=ul;return e.current.memoizedState.isDehydrated&&(Rl(e,t).flags|=256),e=Hl(e,t),e!==2&&(t=dl,dl=n,t!==null&&jl(t)),e}function jl(e){dl===null?dl=e:dl.push.apply(dl,e)}function Ml(e){for(var t=e;;){if(t.flags&16384){var n=t.updateQueue;if(n!==null&&(n=n.stores,n!==null))for(var r=0;r<n.length;r++){var i=n[r],a=i.getSnapshot;i=i.value;try{if(!Mr(a(),i))return!1}catch{return!1}}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Nl(e,t){for(t&=~ll,t&=~cl,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-jt(t),r=1<<n;e[n]=-1,t&=~r}}function Pl(e){if($c&6)throw Error(r(327));Yl();var t=Rt(e,0);if(!(t&1))return Ol(e,xt()),null;var n=Hl(e,t);if(e.tag!==0&&n===2){var i=Vt(e);i!==0&&(t=i,n=Al(e,i))}if(n===1)throw n=ol,Rl(e,0),Nl(e,t),Ol(e,xt()),n;if(n===6)throw Error(r(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,ql(e,dl,ml),Ol(e,xt()),null}function Fl(e,t){var n=$c;$c|=1;try{return e(t)}finally{$c=n,$c===0&&(pl=xt()+500,ua&&ma())}}function Il(e){yl!==null&&yl.tag===0&&!($c&6)&&Yl();var t=$c;$c|=1;var n=Qc.transition,r=I;try{if(Qc.transition=null,I=1,e)return e()}finally{I=r,Qc.transition=n,$c=t,!($c&6)&&ma()}}function Ll(){rl=il.current,Xi(il)}function Rl(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,ki(n)),tl!==null)for(n=tl.return;n!==null;){var r=n;switch(Da(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&ia();break;case 3:Co(),Xi(ea),Xi($i),ko();break;case 5:To(r);break;case 4:Co();break;case 13:Xi(Eo);break;case 19:Xi(Eo);break;case 10:$a(r.type._context);break;case 22:case 23:Ll()}n=n.return}if(el=e,tl=e=su(e.current,null),nl=rl=t,al=0,ol=null,ll=cl=sl=0,dl=ul=null,ro!==null){for(t=0;t<ro.length;t++)if(n=ro[t],r=n.interleaved,r!==null){n.interleaved=null;var i=r.next,a=n.pending;if(a!==null){var o=a.next;a.next=i,r.next=o}n.pending=r}ro=null}return e}function zl(e,t){do{var n=tl;try{if(Qa(),Ao.current=Cs,Io){for(var i=No.memoizedState;i!==null;){var a=i.queue;a!==null&&(a.pending=null),i=i.next}Io=!1}if(Mo=0,Fo=Po=No=null,Lo=!1,Ro=0,Zc.current=null,n===null||n.return===null){al=1,ol=t,tl=null;break}a:{var o=e,s=n.return,c=n,l=t;if(t=nl,c.flags|=32768,typeof l==`object`&&l&&typeof l.then==`function`){var u=l,d=c,f=d.tag;if(!(d.mode&1)&&(f===0||f===11||f===15)){var p=d.alternate;p?(d.updateQueue=p.updateQueue,d.memoizedState=p.memoizedState,d.lanes=p.lanes):(d.updateQueue=null,d.memoizedState=null)}var m=Vs(s);if(m!==null){m.flags&=-257,Hs(m,s,c,o,t),m.mode&1&&Bs(o,u,t),t=m,l=u;var h=t.updateQueue;if(h===null){var g=new Set;g.add(l),t.updateQueue=g}else h.add(l);break a}if(!(t&1)){Bs(o,u,t),Vl();break a}l=Error(r(426))}else if(Aa&&c.mode&1){var _=Vs(s);if(_!==null){!(_.flags&65536)&&(_.flags|=256),Hs(_,s,c,o,t),Ba(Ps(l,c));break a}}o=l=Ps(l,c),al!==4&&(al=2),ul===null?ul=[o]:ul.push(o),o=s;do{switch(o.tag){case 3:o.flags|=65536,t&=-t,o.lanes|=t;var v=Rs(o,l,t);mo(o,v);break a;case 1:c=l;var y=o.type,b=o.stateNode;if(!(o.flags&128)&&(typeof y.getDerivedStateFromError==`function`||b!==null&&typeof b.componentDidCatch==`function`&&(_l===null||!_l.has(b)))){o.flags|=65536,t&=-t,o.lanes|=t;var x=zs(o,c,t);mo(o,x);break a}}o=o.return}while(o!==null)}Kl(n)}catch(e){t=e,tl===n&&n!==null&&(tl=n=n.return);continue}break}while(1)}function Bl(){var e=Xc.current;return Xc.current=Cs,e===null?Cs:e}function Vl(){(al===0||al===3||al===2)&&(al=4),el===null||!(sl&268435455)&&!(cl&268435455)||Nl(el,nl)}function Hl(e,t){var n=$c;$c|=2;var i=Bl();(el!==e||nl!==t)&&(ml=null,Rl(e,t));do try{Ul();break}catch(t){zl(e,t)}while(1);if(Qa(),$c=n,Xc.current=i,tl!==null)throw Error(r(261));return el=null,nl=0,al}function Ul(){for(;tl!==null;)Gl(tl)}function Wl(){for(;tl!==null&&!yt();)Gl(tl)}function Gl(e){var t=nu(e.alternate,e,rl);e.memoizedProps=e.pendingProps,t===null?Kl(e):tl=t,Zc.current=null}function Kl(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=bc(n,t),n!==null){n.flags&=32767,tl=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{al=6,tl=null;return}}else if(n=yc(n,t,rl),n!==null){tl=n;return}if(t=t.sibling,t!==null){tl=t;return}tl=t=e}while(t!==null);al===0&&(al=5)}function ql(e,t,n){var r=I,i=Qc.transition;try{Qc.transition=null,I=1,Jl(e,t,n,r)}finally{Qc.transition=i,I=r}return null}function Jl(e,t,n,i){do Yl();while(yl!==null);if($c&6)throw Error(r(327));n=e.finishedWork;var a=e.finishedLanes;if(n===null)return null;if(e.finishedWork=null,e.finishedLanes=0,n===e.current)throw Error(r(177));e.callbackNode=null,e.callbackPriority=0;var o=n.lanes|n.childLanes;if(Wt(e,o),e===el&&(tl=el=null,nl=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||vl||(vl=!0,V(Tt,function(){return Yl(),null})),o=!!(n.flags&15990),n.subtreeFlags&15990||o){o=Qc.transition,Qc.transition=null;var s=I;I=1;var c=$c;$c|=4,Zc.current=null,Dc(e,n),Hc(n,e),zr(Ei),vn=!!Ti,Ei=Ti=null,e.current=n,Wc(n,e,a),bt(),$c=c,I=s,Qc.transition=o}else e.current=n;if(vl&&(vl=!1,yl=e,bl=a),o=e.pendingLanes,o===0&&(_l=null),At(n.stateNode,i),Ol(e,xt()),t!==null)for(i=e.onRecoverableError,n=0;n<t.length;n++)a=t[n],i(a.value,{componentStack:a.stack,digest:a.digest});if(hl)throw hl=!1,e=gl,gl=null,e;return bl&1&&e.tag!==0&&Yl(),o=e.pendingLanes,o&1?e===Sl?xl++:(xl=0,Sl=e):xl=0,ma(),null}function Yl(){if(yl!==null){var e=Kt(bl),t=Qc.transition,n=I;try{if(Qc.transition=null,I=16>e?16:e,yl===null)var i=!1;else{if(e=yl,yl=null,bl=0,$c&6)throw Error(r(331));var a=$c;for($c|=4,B=e.current;B!==null;){var o=B,s=o.child;if(B.flags&16){var c=o.deletions;if(c!==null){for(var l=0;l<c.length;l++){var u=c[l];for(B=u;B!==null;){var d=B;switch(d.tag){case 0:case 11:case 15:Oc(8,d,o)}var f=d.child;if(f!==null)f.return=d,B=f;else for(;B!==null;){d=B;var p=d.sibling,m=d.return;if(jc(d),d===u){B=null;break}if(p!==null){p.return=m,B=p;break}B=m}}}var h=o.alternate;if(h!==null){var g=h.child;if(g!==null){h.child=null;do{var _=g.sibling;g.sibling=null,g=_}while(g!==null)}}B=o}}if(o.subtreeFlags&2064&&s!==null)s.return=o,B=s;else b:for(;B!==null;){if(o=B,o.flags&2048)switch(o.tag){case 0:case 11:case 15:Oc(9,o,o.return)}var v=o.sibling;if(v!==null){v.return=o.return,B=v;break b}B=o.return}}var y=e.current;for(B=y;B!==null;){s=B;var b=s.child;if(s.subtreeFlags&2064&&b!==null)b.return=s,B=b;else b:for(s=y;B!==null;){if(c=B,c.flags&2048)try{switch(c.tag){case 0:case 11:case 15:kc(9,c)}}catch(e){Zl(c,c.return,e)}if(c===s){B=null;break b}var x=c.sibling;if(x!==null){x.return=c.return,B=x;break b}B=c.return}}if($c=a,ma(),kt&&typeof kt.onPostCommitFiberRoot==`function`)try{kt.onPostCommitFiberRoot(Ot,e)}catch{}i=!0}return i}finally{I=n,Qc.transition=t}}return!1}function Xl(e,t,n){t=Ps(n,t),t=Rs(e,t,1),e=fo(e,t,1),t=Tl(),e!==null&&(Ut(e,1,t),Ol(e,t))}function Zl(e,t,n){if(e.tag===3)Xl(e,e,n);else for(;t!==null;){if(t.tag===3){Xl(t,e,n);break}if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError==`function`||typeof r.componentDidCatch==`function`&&(_l===null||!_l.has(r))){e=Ps(n,e),e=zs(t,e,1),t=fo(t,e,1),e=Tl(),t!==null&&(Ut(t,1,e),Ol(t,e));break}}t=t.return}}function Ql(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=Tl(),e.pingedLanes|=e.suspendedLanes&n,el===e&&(nl&n)===n&&(al===4||al===3&&(nl&130023424)===nl&&500>xt()-fl?Rl(e,0):ll|=n),Ol(e,t)}function $l(e,t){t===0&&(e.mode&1?(t=It,It<<=1,!(It&130023424)&&(It=4194304)):t=1);var n=Tl();e=oo(e,t),e!==null&&(Ut(e,t,n),Ol(e,n))}function eu(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),$l(e,n)}function tu(e,t){var n=0;switch(e.tag){case 13:var i=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:i=e.stateNode;break;default:throw Error(r(314))}i!==null&&i.delete(t),$l(e,n)}var nu=function(e,t,n){if(e!==null){if(e.memoizedProps!==t.pendingProps||ea.current)Ws=!0;else{if((e.lanes&n)===0&&!(t.flags&128))return Ws=!1,pc(e,t,n);Ws=!!(e.flags&131072)}}else Ws=!1,Aa&&t.flags&1048576&&Ta(t,va,t.index);switch(t.lanes=0,t.tag){case 2:var i=t.type;dc(e,t),e=t.pendingProps;var a=na(t,$i.current);to(t,n),a=Vo(null,t,i,e,a,n);var o=Ho();return t.flags|=1,typeof a==`object`&&a&&typeof a.render==`function`&&a.$$typeof===void 0?(t.tag=1,t.memoizedState=null,t.updateQueue=null,ra(i)?(o=!0,sa(t)):o=!1,t.memoizedState=a.state!==null&&a.state!==void 0?a.state:null,co(t),a.updater=ks,t.stateNode=a,a._reactInternals=t,Ns(t,i,e,n),t=$s(null,t,i,!0,o,n)):(t.tag=0,Aa&&o&&Ea(t),Gs(null,t,a,n),t=t.child),t;case 16:i=t.elementType;a:{switch(dc(e,t),e=t.pendingProps,a=i._init,i=a(i._payload),t.type=i,a=t.tag=ou(i),e=Ds(i,e),a){case 0:t=Zs(null,t,i,e,n);break a;case 1:t=Qs(null,t,i,e,n);break a;case 11:t=Ks(null,t,i,e,n);break a;case 14:t=qs(null,t,i,Ds(i.type,e),n);break a}throw Error(r(306,i,``))}return t;case 0:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Ds(i,a),Zs(e,t,i,a,n);case 1:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Ds(i,a),Qs(e,t,i,a,n);case 3:a:{if(ec(t),e===null)throw Error(r(387));i=t.pendingProps,o=t.memoizedState,a=o.element,lo(e,t),ho(t,i,null,n);var s=t.memoizedState;if(i=s.element,o.isDehydrated){if(o={element:i,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=o,t.memoizedState=o,t.flags&256){a=Ps(Error(r(423)),t),t=tc(e,t,i,n,a);break a}if(i!==a){a=Ps(Error(r(424)),t),t=tc(e,t,i,n,a);break a}for(ka=Pi(t.stateNode.containerInfo.firstChild),Oa=t,Aa=!0,ja=null,n=qa(t,null,i,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(za(),i===a){t=fc(e,t,n);break a}Gs(e,t,i,n)}t=t.child}return t;case 5:return wo(t),e===null&&Fa(t),i=t.type,a=t.pendingProps,o=e===null?null:e.memoizedProps,s=a.children,Di(i,a)?s=null:o!==null&&Di(i,o)&&(t.flags|=32),Xs(e,t),Gs(e,t,s,n),t.child;case 6:return e===null&&Fa(t),null;case 13:return ic(e,t,n);case 4:return So(t,t.stateNode.containerInfo),i=t.pendingProps,e===null?t.child=Ka(t,null,i,n):Gs(e,t,i,n),t.child;case 11:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Ds(i,a),Ks(e,t,i,a,n);case 7:return Gs(e,t,t.pendingProps,n),t.child;case 8:return Gs(e,t,t.pendingProps.children,n),t.child;case 12:return Gs(e,t,t.pendingProps.children,n),t.child;case 10:a:{if(i=t.type._context,a=t.pendingProps,o=t.memoizedProps,s=a.value,Zi(Ja,i._currentValue),i._currentValue=s,o!==null){if(Mr(o.value,s)){if(o.children===a.children&&!ea.current){t=fc(e,t,n);break a}}else for(o=t.child,o!==null&&(o.return=t);o!==null;){var c=o.dependencies;if(c!==null){s=o.child;for(var l=c.firstContext;l!==null;){if(l.context===i){if(o.tag===1){l=uo(-1,n&-n),l.tag=2;var u=o.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}o.lanes|=n,l=o.alternate,l!==null&&(l.lanes|=n),eo(o.return,n,t),c.lanes|=n;break}l=l.next}}else if(o.tag===10)s=o.type===t.type?null:o.child;else if(o.tag===18){if(s=o.return,s===null)throw Error(r(341));s.lanes|=n,c=s.alternate,c!==null&&(c.lanes|=n),eo(s,n,t),s=o.sibling}else s=o.child;if(s!==null)s.return=o;else for(s=o;s!==null;){if(s===t){s=null;break}if(o=s.sibling,o!==null){o.return=s.return,s=o;break}s=s.return}o=s}}Gs(e,t,a.children,n),t=t.child}return t;case 9:return a=t.type,i=t.pendingProps.children,to(t,n),a=no(a),i=i(a),t.flags|=1,Gs(e,t,i,n),t.child;case 14:return i=t.type,a=Ds(i,t.pendingProps),a=Ds(i.type,a),qs(e,t,i,a,n);case 15:return Js(e,t,t.type,t.pendingProps,n);case 17:return i=t.type,a=t.pendingProps,a=t.elementType===i?a:Ds(i,a),dc(e,t),t.tag=1,ra(i)?(e=!0,sa(t)):e=!1,to(t,n),js(t,i,a),Ns(t,i,a,n),$s(null,t,i,!0,e,n);case 19:return uc(e,t,n);case 22:return Ys(e,t,n)}throw Error(r(156,t.tag))};function V(e,t){return _t(e,t)}function ru(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function iu(e,t,n,r){return new ru(e,t,n,r)}function au(e){return e=e.prototype,!(!e||!e.isReactComponent)}function ou(e){if(typeof e==`function`)return+!!au(e);if(e!=null){if(e=e.$$typeof,e===re)return 11;if(e===k)return 14}return 2}function su(e,t){var n=e.alternate;return n===null?(n=iu(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function cu(e,t,n,i,a,o){var s=2;if(i=e,typeof e==`function`)au(e)&&(s=1);else if(typeof e==`string`)s=5;else a:switch(e){case E:return lu(n.children,a,o,t);case ee:s=8,a|=8;break;case te:return e=iu(12,n,t,a|2),e.elementType=te,e.lanes=o,e;case O:return e=iu(13,n,t,a),e.elementType=O,e.lanes=o,e;case ie:return e=iu(19,n,t,a),e.elementType=ie,e.lanes=o,e;case oe:return uu(n,a,o,t);default:if(typeof e==`object`&&e)switch(e.$$typeof){case D:s=10;break a;case ne:s=9;break a;case re:s=11;break a;case k:s=14;break a;case ae:s=16,i=null;break a}throw Error(r(130,e==null?e:typeof e,``))}return t=iu(s,n,t,a),t.elementType=e,t.type=i,t.lanes=o,t}function lu(e,t,n,r){return e=iu(7,e,r,t),e.lanes=n,e}function uu(e,t,n,r){return e=iu(22,e,r,t),e.elementType=oe,e.lanes=n,e.stateNode={isHidden:!1},e}function du(e,t,n){return e=iu(6,e,null,t),e.lanes=n,e}function fu(e,t,n){return t=iu(4,e.children===null?[]:e.children,e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function pu(e,t,n,r,i){this.tag=t,this.containerInfo=e,this.finishedWork=this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.pendingContext=this.context=null,this.callbackPriority=0,this.eventTimes=F(0),this.expirationTimes=F(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=F(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function mu(e,t,n,r,i,a,o,s,c){return e=new pu(e,t,n,s,c),t===1?(t=1,!0===a&&(t|=8)):t=0,a=iu(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},co(a),e}function hu(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:T,key:r==null?null:``+r,children:e,containerInfo:t,implementation:n}}function gu(e){if(!e)return Qi;e=e._reactInternals;
vendor: 4,415 bytes, line 8
8a:{if(dt(e)!==e||e.tag!==1)throw Error(r(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break a;case 1:if(ra(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break a}}t=t.return}while(t!==null);throw Error(r(171))}if(e.tag===1){var n=e.type;if(ra(n))return oa(e,n,t)}return t}function _u(e,t,n,r,i,a,o,s,c){return e=mu(n,r,!0,e,i,a,o,s,c),e.context=gu(null),n=e.current,r=Tl(),i=El(n),a=uo(r,i),a.callback=t??null,fo(n,a,i),e.current.lanes=i,Ut(e,i,r),Ol(e,r),e}function vu(e,t,n,r){var i=t.current,a=Tl(),o=El(i);return n=gu(n),t.context===null?t.context=n:t.pendingContext=n,t=uo(a,o),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=fo(i,t,o),e!==null&&(Dl(e,i,o,a),po(e,i,o)),o}function yu(e){if(e=e.current,!e.child)return null;switch(e.child.tag){case 5:return e.child.stateNode;default:return e.child.stateNode}}function bu(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function xu(e,t){bu(e,t),(e=e.alternate)&&bu(e,t)}function Su(){return null}var Cu=typeof reportError==`function`?reportError:function(e){console.error(e)};function wu(e){this._internalRoot=e}Tu.prototype.render=wu.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(r(409));vu(e,t,null,null)},Tu.prototype.unmount=wu.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;Il(function(){vu(null,e,null,null)}),t[zi]=null}};function Tu(e){this._internalRoot=e}Tu.prototype.unstable_scheduleHydration=function(e){if(e){var t=Xt();e={blockedOn:null,target:e,priority:t};for(var n=0;n<on.length&&t!==0&&t<on[n].priority;n++);on.splice(n,0,e),n===0&&dn(e)}};function Eu(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function Du(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==` react-mount-point-unstable `))}function Ou(){}function ku(e,t,n,r,i){if(i){if(typeof r==`function`){var a=r;r=function(){var e=yu(o);a.call(e)}}var o=_u(t,r,e,0,null,!1,!1,``,Ou);return e._reactRootContainer=o,e[zi]=o.current,pi(e.nodeType===8?e.parentNode:e),Il(),o}for(;i=e.lastChild;)e.removeChild(i);if(typeof r==`function`){var s=r;r=function(){var e=yu(c);s.call(e)}}var c=mu(e,0,!1,null,null,!1,!1,``,Ou);return e._reactRootContainer=c,e[zi]=c.current,pi(e.nodeType===8?e.parentNode:e),Il(function(){vu(t,c,n,r)}),c}function Au(e,t,n,r,i){var a=n._reactRootContainer;if(a){var o=a;if(typeof i==`function`){var s=i;i=function(){var e=yu(o);s.call(e)}}vu(t,o,e,i)}else o=ku(n,t,e,i,r);return yu(o)}qt=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=Lt(t.pendingLanes);n!==0&&(Gt(t,n|1),Ol(t,xt()),!($c&6)&&(pl=xt()+500,ma()))}break;case 13:Il(function(){var t=oo(e,1);t!==null&&Dl(t,e,1,Tl())}),xu(e,1)}},Jt=function(e){if(e.tag===13){var t=oo(e,134217728);t!==null&&Dl(t,e,134217728,Tl()),xu(e,134217728)}},Yt=function(e){if(e.tag===13){var t=El(e),n=oo(e,t);n!==null&&Dl(n,e,t,Tl()),xu(e,t)}},Xt=function(){return I},Zt=function(e,t){var n=I;try{return I=e,t()}finally{I=n}},Ge=function(e,t,n){switch(t){case`input`:if(Ce(e,n),t=n.name,n.type===`radio`&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll(`input[name=`+JSON.stringify(``+t)+`][type="radio"]`),t=0;t<n.length;t++){var i=n[t];if(i!==e&&i.form===e.form){var a=Ki(i);if(!a)throw Error(r(90));ve(i),Ce(i,a)}}}break;case`textarea`:Ae(e,n);break;case`select`:t=n.value,t!=null&&De(e,!!n.multiple,t,!1)}},Ze=Fl,Qe=Il;var ju={usingClientEntryPoint:!1,Events:[Wi,Gi,Ki,Ye,Xe,Fl]},Mu={findFiberByHostInstance:Ui,bundleType:0,version:`18.3.1`,rendererPackageName:`react-dom`},Nu={bundleType:Mu.bundleType,version:Mu.version,rendererPackageName:Mu.rendererPackageName,rendererConfig:Mu.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:C.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=ht(e),e===null?null:e.stateNode},findFiberByHostInstance:Mu.findFiberByHostInstance||Su,findHostInstancesForRefresh:null,scheduleRefresh:null,scheduleRoot:null,setRefreshHandler:null,getCurrentFiber:null,reconcilerVersion:`18.3.1-next-f1338f8080-20240426`};
8if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<`u`){var Pu=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Pu.isDisabled&&Pu.supportsFiber)try{Ot=Pu.inject(Nu),kt=Pu}catch{}}e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=ju,e.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!Eu(t))throw Error(r(200));return hu(e,t,null,n)},e.createRoot=function(e,t){if(!Eu(e))throw Error(r(299));var n=!1,i=``,a=Cu;return t!=null&&(!0===t.unstable_strictMode&&(n=!0),t.identifierPrefix!==void 0&&(i=t.identifierPrefix),t.onRecoverableError!==void 0&&(a=t.onRecoverableError)),t=mu(e,1,!1,null,null,n,!1,i,a),e[zi]=t.current,pi(e.nodeType===8?e.parentNode:e),new wu(t)},e.findDOMNode=function(e){if(e==null)return null;if(e.nodeType===1)return e;var t=e._reactInternals;if(t===void 0)throw typeof e.render==`function`?Error(r(188)):(e=Object.keys(e).join(`,`),Error(r(268,e)));return e=ht(t),e=e===null?null:e.stateNode,e},e.flushSync=function(e){return Il(e)},e.hydrate=function(e,t,n){if(!Du(t))throw Error(r(200));return Au(null,e,t,!0,n)},e.hydrateRoot=function(e,t,n){if(!Eu(e))throw Error(r(405));var i=n!=null&&n.hydratedSources||null,a=!1,o=``,s=Cu;if(n!=null&&(!0===n.unstable_strictMode&&(a=!0),n.identifierPrefix!==void 0&&(o=n.identifierPrefix),n.onRecoverableError!==void 0&&(s=n.onRecoverableError)),t=_u(t,null,e,1,n??null,a,!1,o,s),e[zi]=t.current,pi(e),i)for(e=0;e<i.length;e++)n=i[e],a=n._getVersion,a=a(n._source),t.mutableSourceEagerHydrationData==null?t.mutableSourceEagerHydrationData=[n,a]:t.mutableSourceEagerHydrationData.push(n,a);return new Tu(t)},e.render=function(e,t,n){if(!Du(t))throw Error(r(200));return Au(null,e,t,!1,n)},e.unmountComponentAtNode=function(e){if(!Du(e))throw Error(r(40));return e._reactRootContainer?(Il(function(){Au(null,null,e,!1,function(){e._reactRootContainer=null,e[zi]=null})}),!0):!1},e.unstable_batchedUpdates=Fl,e.unstable_renderSubtreeIntoContainer=function(e,t,n,i){if(!Du(n))throw Error(r(200));if(e==null||e._reactInternals===void 0)throw Error(r(38));return Au(e,t,n,!1,i)},e.version=`18.3.1-next-f1338f8080-20240426`})),_=s(((e,t)=>{function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>`u`||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!=`function`))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}n(),t.exports=g()})),v=s((e=>{var t=_();e.createRoot=t.createRoot,e.hydrateRoot=t.hydrateRoot})),y=u(p()),b=u(v()),x=null;function S(e){x=Object.freeze(e)}function C(){if(!x)throw Error(`initializeGameConfiguration must run before shared modules are used`);return x}function w(e,t){let n={...e};for(let[e,r]of Object.entries(t))n[e]=r&&typeof r==`object`&&!Array.isArray(r)&&n[e]&&typeof n[e]==`object`?{...n[e],...r}:r;return n}var T={gameName:`contexto`,gameDisplayName:`CONTEXTO`,startDates:{pt:`2022-02-23`,en:`2022-09-18`,es:`2023-05-26`},simulatedDevelopmentDate:null,featureFlagPreviewHostnameFragment:`drummond`,analytics:{webTagId:`G-461TZ911E9`},ads:{playwireSitePath:`1024751/73740`,playwireReportTagId:`G-9JKKD3QPZ8`}},E=`contexto-local-storage-version`,ee=3,te={openGameId:0,gameData:{pt:{},en:{},es:{}},theme:void 0,language:void 0,version:2};function D(){try{let e=localStorage.getItem(E);if(e)return parseInt(e,10);let t=JSON.parse(localStorage.getItem(`state`));return t?parseInt(t.version,10)||1:0}catch{return 0}}function ne(){localStorage.setItem(E,ee)}var re={1:()=>{let e;try{e=JSON.parse(localStorage.getItem(`state`))}catch{return}let t={...te},{gameId:n}=e;t.openGameId=n,t.gameData.pt={...e.gameData},localStorage.setItem(`state`,JSON.stringify(t))},2:()=>{let e;try{e=JSON.parse(localStorage.getItem(`state`)||`{}`)}catch{e={}}let t;try{t=JSON.parse(localStorage.getItem(`contexto-language`))}catch{t=e.language}t&&localStorage.setItem(`contexto-language`,t);let n=e.theme;n&&localStorage.setItem(`contexto-theme`,n);let r=e=>Array.isArray(e)?{word:e[0],distance:e[1]}:e,i=[`pt`,`en`,`es`];for(let t=0;t<i.length;t++){let n=i[t],a=e.gameData[n]||{},o={};for(let e in a){let t=a[e];o[e]={...t,guessHistory:(t.guessHistory||[]).map(r),postGameHistory:(t.postGameHistory||[]).map(r),lastGuess:t.lastGuess?r(t.lastGuess):t.lastGuess}}localStorage.setItem(`contexto-games-${n}`,JSON.stringify(o))}localStorage.setItem(E,`3`),localStorage.removeItem(`state`)}};function O(){let e=D();if(e===0){ne();return}for(let t=e;t<ee;t++)re[t]()}var ie;
8(function(e){e.Unimplemented=`UNIMPLEMENTED`,e.Unavailable=`UNAVAILABLE`})(ie||={});var k=class extends Error{constructor(e,t,n){super(e),this.message=e,this.code=t,this.data=n}},ae=e=>e?.androidBridge?`android`:e?.webkit?.messageHandlers?.bridge?`ios`:`web`,oe=e=>{let t=e.CapacitorCustomPlatform||null,n=e.Capacitor||{},r=n.Plugins=n.Plugins||{},i=()=>t===null?ae(e):t.name,a=()=>i()!==`web`,o=e=>!!(l.get(e)?.platforms.has(i())||s(e)),s=e=>n.PluginHeaders?.find(t=>t.name===e),c=t=>e.console.error(t),l=new Map;return n.convertFileSrc||=e=>e,n.getPlatform=i,n.handleError=c,n.isNativePlatform=a,n.isPluginAvailable=o,n.registerPlugin=(e,a={})=>{let o=l.get(e);if(o)return console.warn(`Capacitor plugin "${e}" already registered. Cannot register plugins twice.`),o.proxy;let c=i(),u=s(e),d,f=async()=>(!d&&c in a?d=d=typeof a[c]==`function`?await a[c]():a[c]:t!==null&&!d&&`web`in a&&(d=d=typeof a.web==`function`?await a.web():a.web),d),p=(t,r)=>{if(u){let i=u?.methods.find(e=>r===e.name);if(i)return i.rtype===`promise`?t=>n.nativePromise(e,r.toString(),t):(t,i)=>n.nativeCallback(e,r.toString(),t,i);if(t)return t[r]?.bind(t)}else if(t)return t[r]?.bind(t);else throw new k(`"${e}" plugin is not implemented on ${c}`,ie.Unimplemented)},m=t=>{let n,r=(...r)=>{let i=f().then(i=>{let a=p(i,t);if(a){let e=a(...r);return n=e?.remove,e}throw new k(`"${e}.${t}()" is not implemented on ${c}`,ie.Unimplemented)});return t===`addListener`&&(i.remove=async()=>n()),i};return r.toString=()=>`${t.toString()}() { [capacitor code] }`,Object.defineProperty(r,"name",{value:t,writable:!1,configurable:!1}),r},h=m(`addListener`),g=m(`removeListener`),_=(e,t)=>{let n=h({eventName:e},t),r=async()=>{let r=await n;g({eventName:e,callbackId:r},t)},i=new Promise(e=>n.then(()=>e({remove:r})));return i.remove=async()=>{console.warn(`Using addListener() without 'await' is deprecated.`),await r()},i},v=new Proxy({},{get(e,t){switch(t){case`$$typeof`:return;case`toJSON`:return()=>({});case`addListener`:return u?_:h;case`removeListener`:return g;default:return m(t)}}});return r[e]=v,l.set(e,{name:e,proxy:v,platforms:new Set([...Object.keys(a),...u?[c]:[]])}),v},n.Exception=k,n.DEBUG=!!n.DEBUG,n.isLoggingEnabled=!!n.isLoggingEnabled,n},A=(e=>e.Capacitor=oe(e))(typeof globalThis<`u`?globalThis:typeof self<`u`?self:typeof window<`u`?window:typeof global<`u`?global:{}),j=A.registerPlugin,M=class{constructor(){this.listeners={},this.retainedEventArguments={},this.windowListeners={}}addListener(e,t){let n=!1;this.listeners[e]||(this.listeners[e]=[],n=!0),this.listeners[e].push(t);let r=this.windowListeners[e];return r&&!r.registered&&this.addWindowListener(r),n&&this.sendRetainedArgumentsForEvent(e),Promise.resolve({remove:async()=>this.removeListener(e,t)})}async removeAllListeners(){this.listeners={};for(let e in this.windowListeners)this.removeWindowListener(this.windowListeners[e]);this.windowListeners={}}notifyListeners(e,t,n){let r=this.listeners[e];if(!r){if(n){let n=this.retainedEventArguments[e];n||=[],n.push(t),this.retainedEventArguments[e]=n}return}r.forEach(e=>e(t))}hasListeners(e){return!!this.listeners[e]?.length}registerWindowListener(e,t){this.windowListeners[t]={registered:!1,windowEventName:e,pluginEventName:t,handler:e=>{this.notifyListeners(t,e)}}}unimplemented(e=`not implemented`){return new A.Exception(e,ie.Unimplemented)}unavailable(e=`not available`){return new A.Exception(e,ie.Unavailable)}async removeListener(e,t){let n=this.listeners[e];if(!n)return;let r=n.indexOf(t);this.listeners[e].splice(r,1),this.listeners[e].length||this.removeWindowListener(this.windowListeners[e])}addWindowListener(e){window.addEventListener(e.windowEventName,e.handler),e.registered=!0}removeWindowListener(e){e&&(window.removeEventListener(e.windowEventName,e.handler),e.registered=!1)}sendRetainedArgumentsForEvent(e){let t=this.retainedEventArguments[e];t&&(delete this.retainedEventArguments[e],t.forEach(t=>{this.notifyListeners(e,t)}))}},se=e=>encodeURIComponent(e).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape),ce=e=>e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent),le=class extends M{async getCookies(){let e=document.cookie,t={};return e.split(`;
8`).forEach(e=>{if(e.length<=0)return;let[n,r]=e.replace(/=/,`CAP_COOKIE`).split(`CAP_COOKIE`);n=ce(n).trim(),r=ce(r).trim(),t[n]=r}),t}async setCookie(e){try{let t=se(e.key),n=se(e.value),r=e.expires?`; expires=${e.expires.replace(`expires=`,``)}`:``,i=(e.path||`/`).replace(`path=`,``),a=e.url!=null&&e.url.length>0?`domain=${e.url}`:``;document.cookie=`${t}=${n||``}${r}; path=${i}; ${a};`}catch(e){return Promise.reject(e)}}async deleteCookie(e){try{document.cookie=`${e.key}=; Max-Age=0`}catch(e){return Promise.reject(e)}}async clearCookies(){try{let e=document.cookie.split(`;`)||[];for(let t of e)document.cookie=t.replace(/^ +/,``).replace(/=.*/,`=;expires=${new Date().toUTCString()};path=/`)}catch(e){return Promise.reject(e)}}async clearAllCookies(){try{await this.clearCookies()}catch(e){return Promise.reject(e)}}};j(`CapacitorCookies`,{web:()=>new le});var ue=async e=>new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{let e=r.result;t(e.indexOf(`,`)>=0?e.split(`,`)[1]:e)},r.onerror=e=>n(e),r.readAsDataURL(e)}),de=(e={})=>{let t=Object.keys(e);return Object.keys(e).map(e=>e.toLocaleLowerCase()).reduce((n,r,i)=>(n[r]=e[t[i]],n),{})},fe=(e,t=!0)=>e?Object.entries(e).reduce((e,n)=>{let[r,i]=n,a,o;return Array.isArray(i)?(o=``,i.forEach(e=>{a=t?encodeURIComponent(e):e,o+=`${r}=${a}&`}),o.slice(0,-1)):(a=t?encodeURIComponent(i):i,o=`${r}=${a}`),`${e}&${o}`},``).substr(1):null,pe=(e,t={})=>{let n=Object.assign({method:e.method||`GET`,headers:e.headers},t),r=de(e.headers)[`content-type`]||``;if(typeof e.data==`string`)n.body=e.data;else if(r.includes(`application/x-www-form-urlencoded`)){let t=new URLSearchParams;for(let[n,r]of Object.entries(e.data||{}))t.set(n,r);n.body=t.toString()}else if(r.includes(`multipart/form-data`)||e.data instanceof FormData){let t=new FormData;if(e.data instanceof FormData)e.data.forEach((e,n)=>{t.append(n,e)});else for(let n of Object.keys(e.data))t.append(n,e.data[n]);n.body=t;let r=new Headers(n.headers);r.delete(`content-type`),n.headers=r}else(r.includes(`application/json`)||typeof e.data==`object`)&&(n.body=JSON.stringify(e.data));return n},me=class extends M{async request(e){let t=pe(e,e.webFetchExtra),n=fe(e.params,e.shouldEncodeUrlParams),r=n?`${e.url}?${n}`:e.url,i=await fetch(r,t),a=i.headers.get(`content-type`)||``,{responseType:o=`text`}=i.ok?e:{};a.includes(`application/json`)&&(o=`json`);let s,c;switch(o){case`arraybuffer`:case`blob`:c=await i.blob(),s=await ue(c);break;case`json`:s=await i.json();break;default:s=await i.text()}let l={};return i.headers.forEach((e,t)=>{l[t]=e}),{data:s,headers:l,status:i.status,url:i.url}}async get(e){return this.request(Object.assign(Object.assign({},e),{method:`GET`}))}async post(e){return this.request(Object.assign(Object.assign({},e),{method:`POST`}))}async put(e){return this.request(Object.assign(Object.assign({},e),{method:`PUT`}))}async patch(e){return this.request(Object.assign(Object.assign({},e),{method:`PATCH`}))}async delete(e){return this.request(Object.assign(Object.assign({},e),{method:`DELETE`}))}};j(`CapacitorHttp`,{web:()=>new me});var he;(function(e){e.Dark=`DARK`,e.Light=`LIGHT`,e.Default=`DEFAULT`})(he||={});var ge;(function(e){e.StatusBar=`StatusBar`,e.NavigationBar=`NavigationBar`})(ge||={});var _e=class extends M{async setStyle(){this.unavailable(`not available for web`)}async setAnimation(){this.unavailable(`not available for web`)}async show(){this.unavailable(`not available for web`)}async hide(){this.unavailable(`not available for web`)}};j(`SystemBars`,{web:()=>new _e});var ve=`modulepreload`,ye=function(e){return`/`+e},be={},xe=function(e,t,n){let r=Promise.resolve();if(t&&t.length>0){let e=document.getElementsByTagName(`link`),i=document.querySelector(`meta[property=csp-nonce]`),a=i?.nonce||i?.getAttribute(`nonce`);function o(e){return Promise.all(e.map(e=>Promise.resolve(e).then(e=>({status:`fulfilled`,value:e}),e=>({status:`rejected`,reason:e}))))}function s(e){return import.meta.resolve?import.meta.resolve(e):new URL(e,import.meta.url).href}r=o(t.map(t=>{if(t=ye(t,n),t=s(t),t in be)return;be[t]=!0;let r=t.endsWith(`.css`);for(let n=e.length-1;n>=0;n--){let i=e[n];if(i.href===t&&(!r||i.rel===`stylesheet`))return}let i=document.createElement(`link`);if(i.rel=r?`stylesheet`:ve,r||(i.as=`script`),i.crossOrigin=``,i.href=t,a&&i.setAttribute(`nonce`,a),document.head.appendChild(i),r)return new Promise((e,n
8)=>{i.addEventListener(`load`,e),i.addEventListener(`error`,()=>n(Error(`Unable to preload CSS for ${t}`)))})}))}function i(e){let t=new Event(`vite:preloadError`,{cancelable:!0});if(t.payload=e,window.dispatchEvent(t),!t.defaultPrevented)throw e}return r.then(t=>{for(let e of t||[])e.status===`rejected`&&i(e.reason);return e().catch(i)})},Se=j(`Preferences`,{web:()=>xe(()=>import(`./web-CK32Qa-r.js`).then(e=>new e.PreferencesWeb),[])}),Ce=`contexto-flutter-migration-done-v2`;async function we(){let e=A.getPlatform()===`android`?`FlutterSharedPreferences`:`NativeStorage`,t=`flutter.`;await Se.configure({group:e});let[{value:n},{value:r},{value:i}]=await Promise.all([Se.get({key:`${t}state`}),Se.get({key:`${t}theme`}),Se.get({key:`${t}language`})]);return{state:n,theme:r,language:i}}async function Te(){let e=A.getPlatform()===`android`?`FlutterSharedPreferences`:`NativeStorage`,t=`flutter.`;await Se.configure({group:e}),await Promise.all([Se.remove({key:`${t}state`}),Se.remove({key:`${t}theme`}),Se.remove({key:`${t}language`})])}function Ee(e){let t=e.guesses.filter(e=>!e.isPostGame).sort((e,t)=>e.order-t.order),n=e.guesses.filter(e=>e.isPostGame).sort((e,t)=>e.order-t.order),r=t.find(e=>e.distance===0),i=t.at(-1)??null;return{gameId:e.id,guessHistory:t.map(e=>({word:e.word,distance:e.distance})),postGameHistory:n.map(e=>({word:e.word,distance:e.distance})),lastGuess:i?{word:i.word,distance:i.distance}:null,foundWord:r?.word??``,numberOfTips:t.filter(e=>e.isTip).length,numberOfAttempts:t.length,gaveUp:e.status===`gaveUp`?`gaveUp`:``}}async function De(){if(!A.isNativePlatform()||localStorage.getItem(Ce))return;let e;try{e=await we()}catch{localStorage.setItem(Ce,`1`);return}if(!e.state){localStorage.setItem(Ce,`1`);return}let t;try{t=JSON.parse(e.state)}catch{localStorage.setItem(Ce,`1`);return}let n={pt:{},en:{},es:{}};for(let e of t.games??[]){let t=e.language;n[t]&&(n[t][String(e.id)]=Ee(e))}for(let e of[`pt`,`en`,`es`]){let t=`contexto-games-${e}`;Object.keys(n[e]).length!==0&&(localStorage.getItem(t)||localStorage.setItem(t,JSON.stringify(n[e])))}e.theme&&!localStorage.getItem(`contexto-theme`)&&localStorage.setItem(`contexto-theme`,e.theme),e.language&&!localStorage.getItem(`contexto-language`)&&localStorage.setItem(`contexto-language`,e.language),localStorage.setItem(Ce,`1`),await Te()}function Oe(){return!1}function ke(){return`/`.replace(/\/+$/,``)||`/`}function Ae(){return`/`}function je(e){return`/${e}/index.html`}function Me(){let{pathname:e,search:t,hash:n}=window.location;if(!e.endsWith(`/index.html`))return;let r=e.slice(0,-10);window.history.replaceState(null,``,r+t+n)}var Ne=`login_state`,Pe={signedIn:`signed_in`,signedOut:`signed_out`};function Fe(e){return e?Pe.signedIn:Pe.signedOut}var Ie=`subscription_plan`,Le={daydashPass:`daydash_pass`,none:`none`};function Re(e){return e?Le.daydashPass:Le.none}var ze=`daydash-login-state-cache`;function Be(){try{let e=localStorage.getItem(ze);if(!e)return null;let t=JSON.parse(e);return typeof t.signedIn==`boolean`?t.signedIn:null}catch{return null}}function Ve(e){try{localStorage.setItem(ze,JSON.stringify({signedIn:e}))}catch{}}var He=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs=r()})(e,(function(){var e=1e3,t=6e4,n=36e5,r=`millisecond`,i=`second`,a=`minute`,o=`hour`,s=`day`,c=`week`,l=`month`,u=`quarter`,d=`year`,f=`date`,p=`Invalid Date`,m=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,h=/\[([^\]]+)]|YYYY|YY|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,g={name:`en`,weekdays:`Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday`.split(`_`),months:`January_February_March_April_May_June_July_August_September_October_November_December`.split(`_`),ordinal:function(e){var t=[`th`,`st`,`nd`,`rd`],n=e%100;return`[`+e+(t[(n-20)%10]||t[n]||t[0])+`]`}},_=function(e,t,n){var r=String(e);return!r||r.length>=t?e:``+Array(t+1-r.length).join(n)+e},v={s:_,z:function(e){var t=-e.utcOffset(),n=Math.abs(t),r=Math.floor(n/60),i=n%60;return(t<=0?`+`:`-`)+_(r,2,`0`)+`:`+_(i,2,`0`)},m:function e(t,n){if(t.date()<n.date())return-e(n,t);var r=12*(n.year()-t.year())+(n.month()-t.month()),i=t.clone().add(r,l),a=n-i<0,o=t.clone().add(r+(a?-1:1),l);return+(-(r+(n-i)/(a?i-o:o-i))||0)},a:function(e){return e<0?Math.ceil(e)||0:Math.floor(e)},p:function(e){return{M:l,y:d,w:c,d:s,D:f,h:o,m:a,s:i,ms:r,Q:u}[e]||String(e||``).toLowerCase().replace(/s$/,``)},u:function(e){return e===void 0}},y=`en`,b={};b[y]=g;var x=`$isDayjsObject`,S=function(e){return e instanceof E||!(!e||!e[x])},C=function e(t,n,r){var i;if(!t)return y;if(typeof t==`string`){var a=t.toLowerCase();b[a]&&(i=a),n&&(b[a]=n,i=a);var o=t.split(`-`);if(!i&&o.length>1)return e(o[0])}else{var s=t.name;b[s]=t,i=s}return!r&&i&&(y=i),i||!r&&y},w=function(e,t){if(S(e))return e.clone();var n=typeof t==`object`?t:{};return n.date=e,n.args=arguments,new E(n)},T=v;T.l=C,T.i=S,T.w=function(e,t){return w(e,{locale:t.$L,utc:t.$u,x:t.$x,$offset:t.$offset})};var E=function(){function g(e){this.$L=C(e.locale,null,!0),this.parse(e),this.$x=this.$x||e.x||{},this[x]=!0}var _=g.prototype;return _.parse=function(e){this.$d=function(e){var t=e.date,n=e.utc;if(t===null)return new Date(NaN);if(T.u(t))return new Date;if(t instanceof Date)return new Date(t);if(typeof t==`string`&&!/Z$/i.test(t)){var r=t.match(m);if(r){var i=r[2]-1||0,a=(r[7]||`0`).substring(0,3);return n?new Date(Date.UTC(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)):new Date(r[1],i,r[3]||1,r[4]||0,r[5]||0,r[6]||0,a)}}return new Date(t)}(e),this.init()},_.init=function(){var e=this.$d;this.$y=e.getFullYear(),this.$M=e.getMonth(),this.$D=e.getDate(),this.$W=e.getDay(),this.$H=e.getHours(),this.$m=e.getMinutes(),this.$s=e.getSeconds(),this.$ms=e.getMilliseconds()},_.$utils=function(){return T},_.isValid=function(){return this.$d.toString()!==p},_.isSame=function(e,t){var n=w(e);return this.startOf(t)<=n&&n<=this.endOf(t)},_.isAfter=function(e,t){return w(e)<this.startOf(t)},_.isBefore=function(e,t){return this.endOf(t)<w(e)},_.$g=function(e,t,n){return T.u(e)?this[t]:this.set(n,e)},_.unix=function(){return Math.floor(this.valueOf()/1e3)},_.valueOf=function(){return this.$d.getTime()},_.startOf=function(e,t){var n=this,r=!!T.u(t)||t,u=T.p(e),p=function(e,t){var i=T.w(n.$u?Date.UTC(n.$y,t,e):new Date(n.$y,t,e),n);return r?i:i.endOf(s)},m=function(e,t){return T.w(n.toDate()[e].apply(n.toDate(`s`),(r?[0,0,0,0]:[23,59,59,999]).slice(t)),n)},h=this.$W,g=this.$M,_=this.$D,v=`set`+(this.$u?`UTC`:``);switch(u){case d:return r?p(1,0):p(31,11);case l:return r?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,b=(h<y?h+7:h)-y;return p(r?_-b:_+(6-b),g);case s:case f:return m(v+`Hours`,0);case o:return m(v+`Minutes`,1);case a:return m(v+`Seconds`,2);case i:return m(v+`Milliseconds`,3);default:return this.clone()}},_.endOf=function(e){return this.startOf(e,!1)},_.$set=function(e,t){var n,c=T.p(e),u=`set`+(this.$u?`UTC`:``),p=(n={},n[s]=u+`Date`,n[f]=u+`Date`,n[l]=u+`Month`,n[d]=u+`FullYear`,n[o]=u+`Hours`,n[a]=u+`Minutes`,n[i]=u+`Seconds`,n[r]=u+`Milliseconds`,n)[c],m=c===s?this.$D+(t-this.$W):t;if(c===l||c===d){var h=this.clone().set(f,1);h.$d[p](m),h.init(),this.$d=h.set(f,Math.min(this.$D,h.daysInMonth())).$d}else p&&this.$d[p](m);return this.init(),this},_.set=function(e,t){return this.clone().$set(e,t)},_.get=function(e){return this[T.p(e)]()},_.add=function(r,u){var f,p=this;r=Number(r);var m=T.p(u),h=function(e){var t=w(p);return T.w(t.date(t.date()+Math.round(e*r)),p)};if(m===l)return this.set(l,this.$M+r);if(m===d)return this.set(d,this.$y+r);if(m===s)return h(1);if(m===c)return h(7);var g=(f={},f[a]=t,f[o]=n,f[i]=e,f)[m]||1,_=this.$d.getTime()+r*g;return T.w(_,this)},_.subtract=function(e,t){return this.add(-1*e,t)},_.format=function(e){var t=this,n=this.$locale();if(!this.isValid())return n.invalidDate||p;var r=e||`YYYY-MM-DDTHH:mm:ssZ`,i=T.z(this),a=this.$H,o=this.$m,s=this.$M,c=n.weekdays,l=n.months,u=n.meridiem,d=function(e,n,i,a){return e&&(e[
8n]||e(t,r))||i[n].slice(0,a)},f=function(e){return T.s(a%12||12,e,`0`)},m=u||function(e,t,n){var r=e<12?`AM`:`PM`;return n?r.toLowerCase():r};return r.replace(h,(function(e,r){return r||function(e){switch(e){case`YY`:return String(t.$y).slice(-2);case`YYYY`:return T.s(t.$y,4,`0`);case`M`:return s+1;case`MM`:return T.s(s+1,2,`0`);case`MMM`:return d(n.monthsShort,s,l,3);case`MMMM`:return d(l,s);case`D`:return t.$D;case`DD`:return T.s(t.$D,2,`0`);case`d`:return String(t.$W);case`dd`:return d(n.weekdaysMin,t.$W,c,2);case`ddd`:return d(n.weekdaysShort,t.$W,c,3);case`dddd`:return c[t.$W];case`H`:return String(a);case`HH`:return T.s(a,2,`0`);case`h`:return f(1);case`hh`:return f(2);case`a`:return m(a,o,!0);case`A`:return m(a,o,!1);case`m`:return String(o);case`mm`:return T.s(o,2,`0`);case`s`:return String(t.$s);case`ss`:return T.s(t.$s,2,`0`);case`SSS`:return T.s(t.$ms,3,`0`);case`Z`:return i}return null}(e)||i.replace(`:`,``)}))},_.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},_.diff=function(r,f,p){var m,h=this,g=T.p(f),_=w(r),v=(_.utcOffset()-this.utcOffset())*t,y=this-_,b=function(){return T.m(h,_)};switch(g){case d:m=b()/12;break;case l:m=b();break;case u:m=b()/3;break;case c:m=(y-v)/6048e5;break;case s:m=(y-v)/864e5;break;case o:m=y/n;break;case a:m=y/t;break;case i:m=y/e;break;default:m=y}return p?m:T.a(m)},_.daysInMonth=function(){return this.endOf(l).$D},_.$locale=function(){return b[this.$L]},_.locale=function(e,t){if(!e)return this.$L;var n=this.clone(),r=C(e,t,!0);return r&&(n.$L=r),n},_.clone=function(){return T.w(this.$d,this)},_.toDate=function(){return new Date(this.valueOf())},_.toJSON=function(){return this.isValid()?this.toISOString():null},_.toISOString=function(){return this.$d.toISOString()},_.toString=function(){return this.$d.toUTCString()},g}(),ee=E.prototype;return w.prototype=ee,[[`$ms`,r],[`$s`,i],[`$m`,a],[`$H`,o],[`$W`,s],[`$M`,l],[`$y`,d],[`$D`,f]].forEach((function(e){ee[e[1]]=function(t){return this.$g(t,e[0],e[1])}})),w.extend=function(e,t){return e.$i||=(e(t,E,w),!0),w},w.locale=C,w.isDayjs=S,w.unix=function(e){return w(1e3*e)},w.en=b[y],w.Ls=b,w.p={},w}))})),N=u(He()),Ue=`daydash-subscription-cache`;function We(){try{let e=localStorage.getItem(Ue);if(!e)return null;let t=JSON.parse(e);return typeof t.active==`boolean`?t:null}catch{return null}}function Ge(){return We()!==null}function Ke(){let e=We();return!e?.active||!e.expiresAt?!1:(0,N.default)(e.expiresAt).isAfter((0,N.default)())}function qe(e,t){try{localStorage.setItem(Ue,JSON.stringify({active:e,expiresAt:t?t.toISOString():null}))}catch{}}var Je=j(`FirebaseAnalytics`);function Ye(){return Oe()&&A.isNativePlatform()}
8function Xe(){if(Oe())return`GT-WKXK6KWZ`;let{webTagId:e}=C().analytics;return A.isNativePlatform()?`GT-WKXK6KWZ`:e}function Ze(){let e={},t=Be();return t!==null&&(e[Ne]=Fe(t)),Ge()&&(e[Ie]=Re(Ke())),e}function Qe(){let e=Ze();Object.keys(e).length!==0&&nt(e)}function $e(){if(Ye()){Qe();return}window.dataLayer=window.dataLayer||[],window.gtag=window.gtag||function(){window.dataLayer.push(arguments)},window.gtag(`js`,new Date);let e=Xe();if(!e)return;Qe(),window.gtag(`config`,e),Oe()&&window.gtag(`set`,{game_name:C().gameName});let t=document.createElement(`script`);t.async=!0,t.src=`https://www.googletagmanager.com/gtag/js?id=${e}`,document.head.appendChild(t)}function et(e,t){if(Ye()){Je.logEvent({name:e,params:{game_name:C().gameName,...t}}).catch(()=>{});return}window.gtag&&window.gtag(`event`,e,t)}function tt(e){Ye()&&Je.setUserId({userId:e}).catch(()=>{})}function nt(e){if(Ye()){Object.entries(e).forEach(([e,t])=>{Je.setUserProperty({key:e,value:t}).catch(()=>{})});return}window.gtag&&window.gtag(`set`,`user_properties`,e)}function rt(e){Ve(e),nt({[Ne]:Fe(e)})}function it(e){nt({[Ie]:Re(e)})}var P=et,at=e=>e===`pt`?``:`_${e}`,ot=(e,t)=>`${e}${at(t)}`,st={homeDailyGameButtonClick:e=>{P(`home_daily_game_button_click_${e}`)},homeUnlimitedGameButtonClick:e=>{P(`home_unlimited_game_button_click_${e}`)},homePreviousGamesButtonClick:e=>{P(`home_previous_games_button_click_${e}`)},backButtonClick:e=>{P(`back_button_click_${e}`)},feedbackButtonClick:e=>{P(`feedback_button_click_${e}`)},daydashStoreButtonClick:e=>{P(`daydash_store_button_click_${e}`)},start:e=>{P(ot(`start`,e),{event_category:`game`})},guess:e=>{P(ot(`guess`,e),{event_category:`game`})},guessAfterWin:e=>{P(ot(`guess_after_win`,e),{event_category:`game`})},tip:e=>{P(ot(`tip`,e),{event_category:`game`})},win:e=>{P(ot(`win`,e),{event_category:`game`})},giveUp:e=>{P(ot(`give_up`,e),{event_category:`game`})},viewTopWords:e=>{P(ot(`view_top_words`,e),{event_category:`game`})},selectPreviousGame:e=>{P(ot(`select_previous_game`,e),{event_category:`game`})},playAgainClick:e=>{P(ot(`play_again_click`,e),{event_category:`interface`})},faq:e=>{P(ot(`faq_click`,e),{event_category:`interface`})},share:e=>{P(ot(`share_button_click`,e),{event_category:`interface`})},instructions:e=>{P(ot(`instructions_menu_click`,e),{event_category:`interface`})},settings:e=>{P(ot(`settings_menu_click`,e),{event_category:`interface`})},videoTutorialButtonClick:e=>{P(ot(`video_tutorial_button_click`,e),{event_category:`interface`})},topBannerAction:(e,t)=>{P(ot(`top_banner_action`,e),{event_category:`interface`,event_label:t})},topBannerDismiss:(e,t)=>{P(ot(`top_banner_dismiss`,e),{event_category:`interface`,event_label:t})},accountModalOpen:e=>{P(ot(`account_modal_open`,e),{event_category:`interface`})},languageModalOpen:e=>{P(ot(`language_modal_open`,e),{event_category:`interface`})},themeModalOpen:e=>{P(ot(`theme_modal_open`,e),{event_category:`interface`})},giveUpModalOpen:e=>{P(ot(`give_up_modal_open`,e),{event_category:`interface`})},topWordsModalOpen:e=>{P(ot(`top_words_modal_open`,e),{event_category:`interface`})},languageSetting:e=>{e&&P(`set_language_${e}`,{event_category:`settings`})},tipSetting:e=>{e&&P(`set_tip_${e}`,{event_category:`settings`})},themeSetting:e=>{e&&P(`set_theme_${e}`,{event_category:`settings`})}},ct;(function(e){e.General=`General`,e.ParentalGuidance=`ParentalGuidance`,e.Teen=`Teen`,e.MatureAudience=`MatureAudience`})(ct||={});var lt;(function(e){e.SizeChanged=`bannerAdSizeChanged`,e.Loaded=`bannerAdLoaded`,e.FailedToLoad=`bannerAdFailedToLoad`,e.Opened=`bannerAdOpened`,e.Closed=`bannerAdClosed`,e.AdImpression=`bannerAdImpression`})(lt||={});var ut;(function(e){e.TOP_CENTER=`TOP_CENTER`,e.CENTER=`CENTER`,e.BOTTOM_CENTER=`BOTTOM_CENTER`})(ut||={});var dt;(function(e){e.BANNER=`BANNER`,e.FULL_BANNER=`FULL_BANNER`,e.LARGE_BANNER=`LARGE_BANNER`,e.MEDIUM_RECTANGLE=`MEDIUM_RECTANGLE`,e.LEADERBOARD=`LEADERBOARD`,e.ADAPTIVE_BANNER=`ADAPTIVE_BANNER`,e.SMART_BANNER=`SMART_BANNER`})(dt||={});var ft;(function(e){e.Loaded=`interstitialAdLoaded`,e.FailedToLoad=`interstitialAdFailedToLoad`,e.Showed=`interstitialAdShowed`,e.FailedToShow=`interstitialAdFailedToShow`,e.Dismissed=`interstitialAdDismissed`})(ft||={});var pt;(function(e){e.Loaded=`onRewardedInterstitialAdLoaded`,e.FailedToLoad=`onRewardedInterstitialAdFailedToLoad`,e.Showed=`onRewardedInterstitialAdShowed`,e.FailedToShow=`onRewardedInterstitialAdFailedToShow`,e.Dismissed=`onRewardedInterstitialAdDismissed`,e.Rewarded=`onRewardedInterstitialAdReward`})(pt||={});var mt;(function(e){e.Loaded=`onRewardedVideoAdLoaded`,e.FailedToLoad=`onRewardedVideoAdFailedToLoad`,e.Showed=`onRewardedVideoAdShowed`,e.FailedToShow=`onRewardedVideoAdFailedToShow`,e.Dismissed=`onRewardedVideoAdDismissed`,e.Rewarded=`onRewardedVideoAdReward`})(mt||={});var ht;(function(e){e.NOT_REQUIRED=`NOT_REQUIRED`,e.OBTAINED=`OBTAINED`,e.REQUIRED=`REQUIRED`,e.UNKNOWN=`UNKNOWN`})(ht||={});var gt;(function(e){e[e.DISABLED=0]=`DISABLED`,e[e.EEA=1]=`EEA`,e[e.NOT_EEA=2]=`NOT_EEA`,e[e.US=3]=`US`,e[e.OTHER=4]=`OTHER`})(gt||={});var _t=j(`AdMob`,{web:()=>xe(()=>import(`./web-BJKzc5k_.js`).then(e=>new e.AdMobWeb),[])}),vt=A.getPlatform()===`android`,yt=!1;function bt(){return vt?`ca-app-pub-1128017306663981/8758392694`:`ca-app-pub-1128017306663981/2550656118`}
8function xt(){return vt?`ca-app-pub-1128017306663981/3711342233`:`ca-app-pub-1128017306663981/1480764715`}var St=!1,Ct=!1;function wt(){return Ct}function Tt(e){e&&(St=!1)}async function Et(){if(!A.isNativePlatform()||!bt()&&!xt())return;if(!vt){let{status:e}=await _t.trackingAuthorizationStatus();e===`notDetermined`&&await _t.requestTrackingAuthorization()}await _t.initialize({testingDevices:[],initializeForTesting:yt});let e=await _t.requestConsentInfo({tagForUnderAgeOfConsent:!1,debugGeography:gt.DISABLED});if(e.isConsentFormAvailable&&(e.status===ht.REQUIRED||e.status===ht.UNKNOWN)){let e=await _t.showConsentForm();St=e.canRequestAds,Ct=e.privacyOptionsRequirementStatus===`REQUIRED`}else St=e.canRequestAds,Ct=e.privacyOptionsRequirementStatus===`REQUIRED`}var Dt=`native-top-banner`,Ot=`--native-banner-height`,kt=`daydash-native-banner-height`,At=[],jt=!1;function Mt(){try{let e=Number(localStorage.getItem(kt));return e>0?e:null}catch{return null}}function Nt(e){try{localStorage.setItem(kt,String(e))}catch{}}function Pt(e){let t=document.documentElement;if(!e){t.classList.remove(Dt);return}t.style.setProperty(Ot,`${e}px`),t.classList.add(Dt),Nt(e)}function Ft(){if(!A.isNativePlatform()||!bt()||!Ge()||Ke())return;let e=document.documentElement,t=Mt();t&&e.style.setProperty(Ot,`${t}px`),e.classList.add(Dt)}async function It(){let e=await _t.addListener(`bannerAdLoaded`,()=>{document.documentElement.classList.add(Dt)}),t=await _t.addListener(`bannerAdSizeChanged`,({height:e})=>Pt(e));At.push(e,t)}function Lt(){At.forEach(e=>e.remove()),At=[]}function Rt(){jt||(jt=!0,window.addEventListener(`pagehide`,()=>{Lt(),_t.removeBanner()}),window.addEventListener(`pageshow`,e=>{e.persisted&&zt()}))}async function zt(){if(!A.isNativePlatform()||!St)return;let e=bt();e&&(await It(),Oe()&&Rt(),await _t.showBanner({adId:e,adSize:dt.ADAPTIVE_BANNER,position:ut.TOP_CENTER,margin:0,isTesting:yt}))}async function Bt(){A.isNativePlatform()&&(Pt(0),Lt(),await _t.removeBanner())}var Vt=!1;async function Ht(){if(!A.isNativePlatform()||!St)return;let e=xt();e&&(Vt=!1,await _t.prepareInterstitial({adId:e,isTesting:yt}),Vt=!0)}async function F(){!A.isNativePlatform()||!Vt||(Vt=!1,await _t.showInterstitial())}async function Ut(){A.isNativePlatform()&&await _t.showPrivacyOptionsForm()}var Wt=`ads-suppressed`;function Gt(){document.documentElement.classList.add(Wt)}function I(){document.documentElement.classList.remove(Wt)}function Kt(){return!A.isNativePlatform()&&Ke()}function qt(){Kt()&&Gt(),Ft()}function Jt({bootstrapRamp:e}){let t=!1,n=0;function r(){if(A.isNativePlatform()||t)return;if(Kt()){Gt();return}t=!0,I(),n+=1;let r=n;e({stillWanted:()=>t&&r===n})}function i(){A.isNativePlatform()||(t=!1,n+=1,window.ramp&&(window.ramp.onReady=function(){}),window.ramp?.destroyUnits?window.ramp.destroyUnits(`all`).then(Gt).catch(e=>{console.log(`Ramp destroy error:`,e),Gt()}):Gt())}return{initAds:r,destroyWebAds:i}}function Yt({stillWanted:e}){let{playwireSitePath:t,playwireReportTagId:n}=C().ads;if(!t)return;window.ramp=window.ramp||{},window.ramp.que=window.ramp.que||[],window.ramp.passiveMode=!0,window.gtag&&n&&(window._pwGA4PageviewId=`${Date.now()}`,window.gtag(`config`,n,{send_page_view:!1}),window.gtag(`event`,`ramp_js`,{send_to:n,pageview_id:window._pwGA4PageviewId}));var r=[{type:`bottom_rail`},{type:`corner_ad_video`}];window.innerWidth>900&&(r=r.concat([{type:`left_rail`},{type:`right_rail`}]));var i=function(){e()&&window.ramp.destroyUnits(`all`).then(()=>e()&&window.ramp.addUnits(r)).then(()=>e()&&window.ramp.displayUnits()).catch(e=>console.log(`Ramp error: `,e))};window.init=i,window.ramp.onReady=function(){i()};let a=document.createElement(`script`);a.async=!0,a.src=`//cdn.intergient.com/${t}/ramp.js`,document.head.appendChild(a)}var{initAds:Xt,destroyWebAds:Zt}=Jt({bootstrapRamp:Yt}),Qt=j(`WebViewBackground`);function $t(e){!Oe()||!A.isNativePlatform()||Qt.setColor({color:e}).catch(e=>{console.warn(`WebView background not applied:`,e)})}var en={DARK:`dark`,LIGHT:`light`},tn=en.DARK,nn={[en.DARK]:`#0f172a`,[en.LIGHT]:`#fffbf5`},rn=`system`,an=Object.values(en),on=[rn,...an],sn=`daydash-theme`,cn=`data-theme`,ln=`(prefers-color-scheme: dark)`;function un(e,t){try{let n=localStorage.getItem(e);return t.includes(n)?n:null}catch{return null}}function dn(e,t){try{localStorage.setItem(e,t)}catch{}}function fn(){return`${C().gameName}-theme`}function pn(){return un(sn,on)}function mn(e){dn(sn,e)}function hn(){return un(fn(),an)}function gn(){return window.matchMedia(ln).matches?en.DARK:en.LIGHT}function _n(e){return e===`system`?gn():e}function vn(e){let t=window.matchMedia(ln),n=()=>e(gn());return t.addEventListener(`change`,n),()=>t.removeEventListener(`change`,n)}function yn(){return Oe()?on:an}function bn(){return Oe()?pn()||`system`:hn()||tn}function xn(e){document.documentElement.setAttribute(cn,e),$t(nn[e])}var Sn=`contexto-theme`;function Cn(){return Oe()?pn()||`system`:localStorage.getItem(Sn)||`system`}function wn(){return _n(Cn())}function Tn(e){Oe()?mn(e):localStorage.setItem(Sn,e);let t=_n(e);return xn(t),t}var En=u(_());function Dn(){return Dn=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Dn.apply(null,arguments)}var On;(function(e){e.Pop=`POP`,e.Push=`PUSH`,e.Replace=`REPLACE`})(On||={});var kn=`popstate`;function An(e){e===void 0&&(e={});function t(e,t){let{pathname:n,search:r,hash:i}=e.location;return Pn(``,{pathname:n,search:r,hash:i},t.state&&t.state.usr||null,t.state&&t.state.key||`default`)}function n(e,t){return typeof t==`string`?t:Fn(t)}return Ln(t,n,null,e)}function L(e,t){if(e===!1||e==null)throw Error(t)}function jn(e,t){if(!e){typeof console<`u`&&console.warn(t);try{throw Error(t)}catch{}}}function Mn(){return Math.random().toString(36).substr(2,8)}function Nn(e,t){return{usr:e.state,key:e.key,idx:t}}function Pn(e,t,n,r){return n===void 0&&(n=null),Dn({pathname:typeof e==`string`?e:e.pathname,search:``,hash:``},typeof t==`string`?In(t):t,{state:n,key:t&&t.key||r||Mn()})}function Fn(e){let{pathname:t=`/`,search:n=``,hash:r=``}=e;return n&&n!==`?`&&(t+=n.charAt(0)===`?`?n:`?`+n),r&&r!==`#`&&(t+=r.charAt(0)===`#`?r:`#`+r),t}function In(e){let t={};if(e){let n=e.indexOf(`#`);n>=0&&(t.hash=e.substr(n),e=e.substr(0,n));let r=e.indexOf(`?`);r>=0&&(t.search=e.substr(r),e=e.substr(0,r)),e&&(t.pathname=e)}return t}function Ln(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,o=i.history,s=On.Pop,c=null,l=u();l??(l=0,o.replaceState(Dn({},o.state,{idx:l}),``));function u(){return(o.state||{idx:null}).idx}function d(){s=On.Pop;let e=u(),t=e==null?null:e-l;l=e,c&&c({action:s,location:h.location,delta:t})}function f(e,t){s=On.Push;let r=Pn(h.location,e,t);n&&n(r,e),l=u()+1;let d=Nn(r,l),f=h.createHref(r);try{o.pushState(d,``,f)}catch(e){if(e instanceof DOMException&&e.name===`DataCloneError`)throw e;i.location.assign(f)}a&&c&&c({action:s,location:h.location,delta:1})}function p(e,t){s=On.Replace;let r=Pn(h.location,e,t);n&&n(r,e),l=u();let i=Nn(r,l),d=h.createHref(r);o.replaceState(i,``,d),a&&c&&c({action:s,location:h.location,delta:0})}function m(e){let t=i.location.origin===`null`?i.location.href:i.location.origin,n=typeof e==`string`?e:Fn(e);return n=n.replace(/ $/,`%20`),L(t,`No window.location.(origin|href) available to create URL for href: `+n),new URL(n,t)}let h={get action(){return s},get location(){return e(i,o)},listen(e){if(c)throw Error(`A history only accepts one active listener`);return i.addEventListener(kn,d),c=e,()=>{i.removeEventListener(kn,d),c=null}},createHref(e){return t(i,e)},createURL:m,encodeLocation(e){let t=m(e);return{pathname:t.pathname,search:t.search,hash:t.hash}},push:f,replace:p,go(e){return o.go(e)}};return h}var Rn;(function(e){e.data=`data`,e.deferred=`deferred`,e.redirect=`redirect`,e.error=`error`})(Rn||={});var zn=new Set([`lazy`,`caseSensitive`,`path`,`id`,`index`,`children`]);function Bn(e){return e.index===!0}function Vn(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((e,i)=>
vendor: 2,827 bytes, line 8
8{let a=[...n,String(i)],o=typeof e.id==`string`?e.id:a.join(`-`);if(L(e.index!==!0||!e.children,`Cannot specify children on an index route`),L(!r[o],`Found a route id collision on id "`+o+`".  Route id's must be globally unique within Data Router usages`),Bn(e)){let n=Dn({},e,t(e),{id:o});return r[o]=n,n}{let n=Dn({},e,t(e),{id:o,children:void 0});return r[o]=n,e.children&&(n.children=Vn(e.children,t,a,r)),n}})}function Hn(e,t,n){return n===void 0&&(n=`/`),Un(e,t,n,!1)}function Un(e,t,n,r){let i=sr((typeof t==`string`?In(t):t).pathname||`/`,n);if(i==null)return null;let a=Gn(e);qn(a);let o=null,s=or(i);for(let e=0;o==null&&e<a.length;++e)o=rr(a[e],s,r);return o}function Wn(e,t){let{route:n,pathname:r,params:i}=e;return{id:n.id,pathname:r,params:i,data:t[n.id],handle:n.handle}}function Gn(e,t,n,r){t===void 0&&(t=[]),n===void 0&&(n=[]),r===void 0&&(r=``);let i=(e,i,a)=>{let o={relativePath:a===void 0?e.path||``:a,caseSensitive:e.caseSensitive===!0,childrenIndex:i,route:e};o.relativePath.startsWith(`/`)&&(L(o.relativePath.startsWith(r),`Absolute route path "`+o.relativePath+`" nested under path `+(`"`+r+`" is not valid. An absolute child route path `)+`must start with the combined path of all its parent routes.`),o.relativePath=o.relativePath.slice(r.length));let s=hr([r,o.relativePath]),c=n.concat(o);e.children&&e.children.length>0&&(L(e.index!==!0,`Index routes must not have child routes. Please remove `+(`all child routes from route path "`+s+`".`)),Gn(e.children,t,c,s)),!(e.path==null&&!e.index)&&t.push({path:s,score:tr(s,e.index),routesMeta:c})};return e.forEach((e,t)=>{var n;if(e.path===``||!((n=e.path)!=null&&n.includes(`?`)))i(e,t);else for(let n of Kn(e.path))i(e,t,n)}),t}function Kn(e){let t=e.split(`/`);if(t.length===0)return[];let[n,...r]=t,i=n.endsWith(`?`),a=n.replace(/\?$/,``);if(r.length===0)return i?[a,``]:[a];let o=Kn(r.join(`/`)),s=[];return s.push(...o.map(e=>e===``?a:[a,e].join(`/`))),i&&s.push(...o),s.map(t=>e.startsWith(`/`)&&t===``?`/`:t)}function qn(e){e.sort((e,t)=>e.score===t.score?nr(e.routesMeta.map(e=>e.childrenIndex),t.routesMeta.map(e=>e.childrenIndex)):t.score-e.score)}var Jn=/^:[\w-]+$/,Yn=3,Xn=2,Zn=1,Qn=10,$n=-2,er=e=>e===`*`;function tr(e,t){let n=e.split(`/`),r=n.length;return n.some(er)&&(r+=$n),t&&(r+=Xn),n.filter(e=>!er(e)).reduce((e,t)=>e+(Jn.test(t)?Yn:t===``?Zn:Qn),r)}function nr(e,t){return e.length===t.length&&e.slice(0,-1).every((e,n)=>e===t[n])?e[e.length-1]-t[t.length-1]:0}function rr(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,i={},a=`/`,o=[];for(let e=0;e<r.length;++e){let s=r[e],c=e===r.length-1,l=a===`/`?t:t.slice(a.length)||`/`,u=ir({path:s.relativePath,caseSensitive:s.caseSensitive,end:c},l),d=s.route;if(!u&&c&&n&&!r[r.length-1].route.index&&(u=ir({path:s.relativePath,caseSensitive:s.caseSensitive,end:!1},l)),!u)return null;
8Object.assign(i,u.params),o.push({params:i,pathname:hr([a,u.pathname]),pathnameBase:gr(hr([a,u.pathnameBase])),route:d}),u.pathnameBase!==`/`&&(a=hr([a,u.pathnameBase]))}return o}function ir(e,t){typeof e==`string`&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=ar(e.path,e.caseSensitive,e.end),i=t.match(n);if(!i)return null;let a=i[0],o=a.replace(/(.)\/+$/,`$1`),s=i.slice(1);return{params:r.reduce((e,t,n)=>{let{paramName:r,isOptional:i}=t;if(r===`*`){let e=s[n]||``;o=a.slice(0,a.length-e.length).replace(/(.)\/+$/,`$1`)}let c=s[n];return e[r]=i&&!c?void 0:(c||``).replace(/%2F/g,`/`),e},{}),pathname:a,pathnameBase:o,pattern:e}}function ar(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),jn(e===`*`||!e.endsWith(`*`)||e.endsWith(`/*`),`Route path "`+e+`" will be treated as if it were `+(`"`+e.replace(/\*$/,`/*`)+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+(`please change the route path to "`+e.replace(/\*$/,`/*`)+`".`));let r=[],i=`^`+e.replace(/\/*\*?$/,``).replace(/^\/*/,`/`).replace(/[\\.*+^${}|()[\]]/g,`\\$&`).replace(/\/:([\w-]+)(\?)?/g,(e,t,n)=>(r.push({paramName:t,isOptional:n!=null}),n?`/?([^\\/]+)?`:`/([^\\/]+)`));return e.endsWith(`*`)?(r.push({paramName:`*`}),i+=e===`*`||e===`/*`?`(.*)$`:`(?:\\/(.+)|\\/*)$`):n?i+=`\\/*$`:e!==``&&e!==`/`&&(i+=`(?:(?=\\/|$))`),[new RegExp(i,t?void 0:`i`),r]}function or(e){try{return e.split(`/`).map(e=>decodeURIComponent(e).replace(/\//g,`%2F`)).join(`/`)}catch(t){return jn(!1,`The URL path "`+e+`" could not be decoded because it is is a malformed URL segment. This is probably due to a bad percent `+(`encoding (`+t+`).`)),e}}function sr(e,t){if(t===`/`)return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith(`/`)?t.length-1:t.length,r=e.charAt(n);return r&&r!==`/`?null:e.slice(n)||`/`}function cr(e,t){t===void 0&&(t=`/`);let{pathname:n,search:r=``,hash:i=``}=typeof e==`string`?In(e):e,a;return n?(n=mr(n),a=n.startsWith(`/`)?lr(n.substring(1),`/`):lr(n,t)):a=t,{pathname:a,search:_r(r),hash:vr(i)}}function lr(e,t){let n=t.replace(/\/+$/,``).split(`/`);return e.split(`/`).forEach(e=>{e===`..`?n.length>1&&n.pop():e!==`.`&&n.push(e)}),n.length>1?n.join(`/`):`/`}function ur(e,t,n,r){return`Cannot include a '`+e+`' character in a manually specified `+("`to."+t+"` field ["+JSON.stringify(r)+`].  Please separate it out to the `)+("`to."+n+"` field. Alternatively you may provide the full path as ")+`a string in <Link to="..."> and the router will parse it for you.`}function dr(e){return e.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function fr(e,t){let n=dr(e);return t?n.map((e,t)=>t===n.length-1?e.pathname:e.pathnameBase):n.map(e=>e.pathnameBase)}function pr(e,t,n,r){r===void 0&&(r=!1);let i;typeof e==`string`?i=In(e):(i=Dn({},e),L(!i.pathname||!i.pathname.includes(`?`),ur(`?`,`pathname`,`search`,i)),L(!i.pathname||!i.pathname.includes(`#`),ur(`#`,`pathname`,`hash`,i)),L(!i.search||!i.search.includes(`#`),ur(`#`,`search`,`hash`,i)));let a=e===``||i.pathname===``,o=a?`/`:i.pathname,s;if(o==null)s=n;else{let e=t.length-1;if(!r&&o.startsWith(`..`)){let t=o.split(`/`);for(;t[0]===`..`;)t.shift(),--e;i.pathname=t.join(`/`)}s=e>=0?t[e]:`/`}let c=cr(i,s),l=o&&o!==`/`&&o.endsWith(`/`),u=(a||o===`.`)&&n.endsWith(`/`);return!c.pathname.endsWith(`/`)&&(l||u)&&(c.pathname+=`/`),c}var mr=e=>e.replace(/\/\/+/g,`/`),hr=e=>mr(e.join(`/`)),gr=e=>e.replace(/\/+$/,``).replace(/^\/*/,`/`),_r=e=>!e||e===`?`?``:e.startsWith(`?`)?e:`?`+e,vr=e=>!e||e===`#`?``:e.startsWith(`#`)?e:`#`+e,yr=class{constructor(e,t,n,r){r===void 0&&(r=!1),this.status=e,this.statusText=t||``,this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function br(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.internal==`boolean`&&`data`in e}var R=[`post`,`put`,`patch`,`delete`],xr=new Set(R),Sr=[`get`,...R],Cr=new Set(Sr),wr=new Set([301,302,303,307,308]),Tr=new Set([307,308]),Er={state:`idle`,location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Dr={state:`idle`,data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},Or={state:`unblocked`,proceed:void 0,reset:void 0,location:void 0},kr=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Ar=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),jr=`remix-router-transitions`;function Mr(e){let t=e.window?e.window:typeof window<`u`?window:void 0,n=t!==void 0&&t.document!==void 0&&t.document.createElement!==void 0,r=!n;L(e.routes.length>0,`You must provide a non-empty routes array to createRouter`);let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let t=e.detectErrorBoundary;i=e=>({hasErrorBoundary:t(e)})}else i=Ar;let a={},o=Vn(e.routes,i,void 0,a),s,c=e.basename||`/`,l=e.dataStrategy||Gr,u=e.patchRoutesOnNavigation,d=Dn({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prepe
vendor: 9,015 bytes, line 8
8ndBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),f=null,p=new Set,m=null,h=null,g=null,_=e.hydrationData!=null,v=Hn(o,e.history.location,c),y=!1,b=null;if(v==null&&!u){let t=oi(404,{pathname:e.history.location.pathname}),{matches:n,route:r}=ai(o);v=n,b={[r.id]:t}}v&&!e.hydrationData&&Ye(v,o,e.history.location.pathname).active&&(v=null);let x;if(!v){if(x=!1,v=[],d.v7_partialHydration){let t=Ye(null,o,e.history.location.pathname);t.active&&t.matches&&(y=!0,v=t.matches)}}else if(v.some(e=>e.route.lazy))x=!1;else if(!v.some(e=>e.route.loader))x=!0;else if(d.v7_partialHydration){let t=e.hydrationData?e.hydrationData.loaderData:null,n=e.hydrationData?e.hydrationData.errors:null;if(n){let e=v.findIndex(e=>n[e.route.id]!==void 0);x=v.slice(0,e+1).every(e=>!Rr(e.route,t,n))}else x=v.every(e=>!Rr(e.route,t,n))}else x=e.hydrationData!=null;let S,C={historyAction:e.history.action,location:e.history.location,matches:v,initialized:x,navigation:Er,restoreScrollPosition:e.hydrationData==null&&null,preventScrollReset:!1,revalidation:`idle`,loaderData:e.hydrationData&&e.hydrationData.loaderData||{},actionData:e.hydrationData&&e.hydrationData.actionData||null,errors:e.hydrationData&&e.hydrationData.errors||b,fetchers:new Map,blockers:new Map},w=On.Pop,T=!1,E,ee=!1,te=new Map,D=null,ne=!1,re=!1,O=[],ie=new Set,k=new Map,ae=0,oe=-1,A=new Map,j=new Set,M=new Map,se=new Map,ce=new Set,le=new Map,ue=new Map,de;function fe(){if(f=e.history.listen(t=>{let{action:n,location:r,delta:i}=t;if(de){de(),de=void 0;return}jn(ue.size===0||i!=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 a=N({currentLocation:C.location,nextLocation:r,historyAction:n});if(a&&i!=null){let t=new Promise(e=>{de=e});e.history.go(i*-1),He(a,{state:`blocked`,location:r,proceed(){He(a,{state:`proceeding`,proceed:void 0,reset:void 0,location:r}),t.then(()=>e.history.go(i))},reset(){let e=new Map(C.blockers);e.set(a,Or),he({blockers:e})}});return}return ye(n,r)}),n){Ai(t,te);let e=()=>ji(t,te);t.addEventListener(`pagehide`,e),D=()=>t.removeEventListener(`pagehide`,e)}return C.initialized||ye(On.Pop,C.location,{initialHydration:!0}),S}function pe(){f&&f(),D&&D(),p.clear(),E&&E.abort(),C.fetchers.forEach((e,t)=>Pe(t)),C.blockers.forEach((e,t)=>Ve(t))}function me(e){return p.add(e),()=>p.delete(e)}function he(e,t){t===void 0&&(t={}),C=Dn({},C,e);let n=[],r=[];d.v7_fetcherPersist&&C.fetchers.forEach((e,t)=>{e.state===`idle`&&(ce.has(t)?r.push(t):n.push(t))}),ce.forEach(e=>{!C.fetchers.has(e)&&!k.has(e)&&r.push(e)}),[...p].forEach(e=>e(C,{deletedFetchers:r,viewTransitionOpts:t.viewTransitionOpts,flushSync:t.flushSync===!0})),d.v7_fetcherPersist?(n.forEach(e=>C.fetchers.delete(e)),r.forEach(e=>Pe(e))):r.forEach(e=>ce.delete(e))}function ge(t,n,r){let{flushSync:i}=r===void 0?{}:r,a=C.actionData!=null&&C.navigation.formMethod!=null&&vi(C.navigation.formMethod)&&C.navigation.state===`loading`&&t.state?._isRedirect!==!0,c;c=n.actionData?Object.keys(n.actionData).length>0?n.actionData:null:a?C.actionData:null;let l=n.loaderData?ni(C.loaderData,n.loaderData,n.matches||[],n.errors):C.loaderData,u=C.blockers;u.size>0&&(u=new Map(u),u.forEach((e,t)=>u.set(t,Or)));let d=T===!0||C.navigation.formMethod!=null&&vi(C.navigation.formMethod)&&t.state?._isRedirect!==!0;s&&=(o=s,void 0),ne||w===On.Pop||(w===On.Push?e.history.push(t,t.state):w===On.Replace&&e.history.replace(t,t.state));let f;if(w===On.Pop){let e=te.get(C.location.pathname);e&&e.has(t.pathname)?f={currentLocation:C.location,nextLocation:t}:te.has(t.pathname)&&(f={currentLocation:t,nextLocation:C.location})}else if(ee){let e=te.get(C.location.pathname);e?e.add(t.pathname):(e=new Set([t.pathname]),te.set(C.location.pathname,e)),f={currentLocation:C.location,nextLocation:t}}he(Dn({},n,{actionData:c,loaderData:l,historyAction:w,location:t,initialized:!0,navigation:Er,revalidation:`idle`,restoreScrollPosition:Je(t,n.matches||C.matches),preventScrollReset:d,blockers:u}),{viewTransitionOpts:f,flushSync:i===!0}),w=On.Pop,T=!1,ee=!1,ne=!1,re=!1,O=[]}async function _e(t,n){if(typeof t==`number`){e.history.go(t);return}let r=Pr(C.location,C.matches,c,d.v7_prependBasename,t,d.v7_relativeSplatPath,n?.fromRouteId,n?.relative),{path:i,submission:a,error:o}=Fr(d.v7_normalizeFormMethod,!1,r,n),s=C.location,l=Pn(C.location,i,n&&n.state);l=Dn({},l,e.history.encodeLocation(l));let u=n&&n.replace!=null?n.replace:void 0,f=On.Push;u===!0?f=On.Replace:u===!1||a!=null&&vi(a.formMethod)&&a.formAction===C.location.pathname+C.location.search&&(f=On.Replace);let p=n&&`preventScrollReset`in n?n.preventScrollReset===!0:void 0,m=(n&&n.flushSync)===!0,h=N({currentLocation:s,nextLocation:l,historyAction:f});if(h){He(h,{state:`blocked`,location:l,proceed(){He(h,{state:`proceeding`,proceed:void 0,reset:void 0,location:l}),_e(t,n)},reset(){let e=new Map(C.blockers);e.set(h,Or),he({blockers:e})}});return}return await ye(f,l,{submission:a,pendingError:o,preventScrollReset:p,replace:n&&n.replace,enableViewTransition:n&&n.viewTransition,flushSync:m})}function ve(){if(Ae(),he({revalidation:`loading`}),C.navigation.state!==`submitting`){if(C.navigation.state===`idle`){ye(C.historyAction,C.location,{startUninterruptedRevalidation:!0});return}ye(w||C.historyAction,C.navigation.location,{overrideNavigation:C.navigation,enableViewTransition:ee===!0})}}async function ye(t,n,r){E&&E.abort(),E=null,w=t,ne=(r&&r.startUninterruptedRevalidation)===!0,qe(C.location,C.matches),T=(r&&r.preventScrollReset)===!0,ee=(r&&r.enableViewTransition)===!0;let i=s||o,a=r&&r.overrideNavigation,l=r!=null&&r.initialHydration&&C.matches&&C.matches.length>0&&!y?C.matches:Hn(i,n,c),u=(r&&r.flushSync)===!0;if(l&&C.initialized&&!re&&li(C.location,n)&&!(r&&r.submission&&vi(r.submission.formMethod))){ge(n,{matches:l},{flushSync:u});return}let d=Ye(l,i,n.pathname);if(d.active&&d.matches&&(l=d.matches),!l){let{error:e,notFoundMatches:t,route:r}=Ue(n.pathname);ge(n,{matches:t,loaderData:{},errors:{[r.id]:e}},{flushSync:u});return}E=new AbortController;let f=Zr(e.history,n,E.signal,r&&r.submission),p;if(r&&r.pendingError)p=[ii(l).route.id,{type:Rn.error,error:r.pendingError}];else if(r&&r.submission&&vi(r.submission.formMethod)){let t=await be(f,n,r.submission,l,d.active,{replace:r.replace,flushSync:u});if(t.shortCircuited)return;if(t.pendingActionResult){let[e,r]=t.pendingActionResult;if(fi(r)&&br(r.error)&&r.error.status===404){E=null,ge(n,{matches:t.matches,loaderData:{},errors:{[e]:r.error}});return}}l=t.matches||l,p=t.pendingActionResult,a=Ti(n,r.submission),u=!1,d.active=!1,f=Zr(e.history,f.url,f.signal)}let{shortCircuited:m,matches:h,loaderData:g,errors:_}=await xe(f,n,l,d.active,a,r&&r.submission,r&&r.fetcherSubmission,r&&r.replace,r&&r.initialHydration===!0,u,p);m||(E=null,ge(n,Dn({matches:h||l},ri(p),{loaderData:g,errors:_})))}async function be(t,n,r,i,a,o){if(o===void 0&&(o={}),Ae(),he({navigation:Ei(n,r)},{flushSync:o.flushSync===!0}),a){let e=await Xe(i,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){let t=ii(e.partialMatches).route.id;return{matches:e.partialMatches,pendingActionResult:[t,{type:Rn.error,error:e.error}]}}if(e.matches)i=e.matches;else{let{notFoundMatches:e,error:t,route:r}=Ue(n.pathname);return{matches:e,pendingActionResult:[r.id,{type:Rn.error,error:t}]}}}let s,l=Ci(i,n);if(!l.route.action&&!l.route.lazy)s={type:Rn.error,error:oi(405,{method:t.method,pathname:n.pathname,routeId:l.route.id})};else if(s=(await Oe(`action`,C,t,[l],i,null))[l.route.id],t.signal.aborted)return{shortCircuited:!0};if(pi(s)){let n;return n=o&&o.replace!=null?o.replace:Xr(s.response.headers.get(`Location`),new URL(t.url),c,e.history)===C.location.pathname+C.location.search,await De(t,s,!0,{submission:r,replace:n}),{shortCircuited:!0}}if(di(s))throw oi(400,{type:`defer-action`});if(fi(s)){let e=ii(i,l.route.id);return(o&&o.replace)!==!0&&(w=On.Push),{matches:i,pendingActionResult:[e.route.id,s]}}return{matches:i,pendingActionResult:[l.route.id,s]}}async function xe(t,n,r,i,a,l,u,f,p,m,h){let g=a||Ti(n,l),_=l||u||wi(g),v=!ne&&(!d.v7_partialHydration||!p);if(i){if(v){let e=Se(h);he(Dn({navigation:g},e===void 0?{}:{actionData:e}),{flushSync:m})}let e=await Xe(r,n.pathname,t.signal);if(e.type===`aborted`)return{shortCircuited:!0};if(e.type===`error`){let t=ii(e.partialMatches).route.id;return{matches:e.partialMatches,loaderData:{},errors:{[t]:e.error}}}if(e.matches)r=e.matches;else{let{error:e,notFoundMatches:t,route:r}=Ue(n.pathname);return{matches:t,loaderData:{},errors:{[r.id]:e}}}}let y=s||o,[b,x]=Lr(e.history,C,r,_,n,d.v7_partialHydration&&p===!0,d.v7_skipActionErrorRevalidation,re,O,ie,ce,M,j,y,c,h);if(We(e=>
8!(r&&r.some(t=>t.route.id===e))||b&&b.some(t=>t.route.id===e)),oe=++ae,b.length===0&&x.length===0){let e=Re();return ge(n,Dn({matches:r,loaderData:{},errors:h&&fi(h[1])?{[h[0]]:h[1].error}:null},ri(h),e?{fetchers:new Map(C.fetchers)}:{}),{flushSync:m}),{shortCircuited:!0}}if(v){let e={};if(!i){e.navigation=g;let t=Se(h);t!==void 0&&(e.actionData=t)}x.length>0&&(e.fetchers=Ce(x)),he(e,{flushSync:m})}x.forEach(e=>{Ie(e.key),e.controller&&k.set(e.key,e.controller)});let S=()=>x.forEach(e=>Ie(e.key));E&&E.signal.addEventListener(`abort`,S);let{loaderResults:w,fetcherResults:T}=await ke(C,r,b,x,t);if(t.signal.aborted)return{shortCircuited:!0};E&&E.signal.removeEventListener(`abort`,S),x.forEach(e=>k.delete(e.key));let ee=si(w);if(ee)return await De(t,ee.result,!0,{replace:f}),{shortCircuited:!0};if(ee=si(T),ee)return j.add(ee.key),await De(t,ee.result,!0,{replace:f}),{shortCircuited:!0};let{loaderData:te,errors:D}=ti(C,r,w,h,x,T,le);le.forEach((e,t)=>{e.subscribe(n=>{(n||e.done)&&le.delete(t)})}),d.v7_partialHydration&&p&&C.errors&&(D=Dn({},C.errors,D));let A=Re(),se=ze(oe),ue=A||se||x.length>0;return Dn({matches:r,loaderData:te,errors:D},ue?{fetchers:new Map(C.fetchers)}:{})}function Se(e){if(e&&!fi(e[1]))return{[e[0]]:e[1].data};if(C.actionData)return Object.keys(C.actionData).length===0?null:C.actionData}function Ce(e){return e.forEach(e=>{let t=C.fetchers.get(e.key),n=Di(void 0,t?t.data:void 0);C.fetchers.set(e.key,n)}),new Map(C.fetchers)}function we(e,t,n,i){if(r)throw Error(`router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.`);Ie(e);let a=(i&&i.flushSync)===!0,l=s||o,u=Pr(C.location,C.matches,c,d.v7_prependBasename,n,d.v7_relativeSplatPath,t,i?.relative),f=Hn(l,u,c),p=Ye(f,l,u);if(p.active&&p.matches&&(f=p.matches),!f){Me(e,t,oi(404,{pathname:u}),{flushSync:a});return}let{path:m,submission:h,error:g}=Fr(d.v7_normalizeFormMethod,!0,u,i);if(g){Me(e,t,g,{flushSync:a});return}let _=Ci(f,m),v=(i&&i.preventScrollReset)===!0;if(h&&vi(h.formMethod)){Te(e,t,m,_,f,p.active,a,v,h);return}M.set(e,{routeId:t,path:m}),Ee(e,t,m,_,f,p.active,a,v,h)}async function Te(t,n,r,i,a,l,u,f,p){Ae(),M.delete(t);function m(e){return!e.route.action&&!e.route.lazy&&(Me(t,n,oi(405,{method:p.formMethod,pathname:r,routeId:n}),{flushSync:u}),!0)}if(!l&&m(i))return;je(t,Oi(p,C.fetchers.get(t)),{flushSync:u});let h=new AbortController,g=Zr(e.history,r,h.signal,p);if(l){let e=await Xe(a,new URL(g.url).pathname,g.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){Me(t,n,e.error,{flushSync:u});return}if(!e.matches){Me(t,n,oi(404,{pathname:r}),{flushSync:u});return}if(a=e.matches,i=Ci(a,r),m(i))return}k.set(t,h);let _=ae,v=(await Oe(`action`,C,g,[i],a,t))[i.route.id];if(g.signal.aborted){k.get(t)===h&&k.delete(t);return}if(d.v7_fetcherPersist&&ce.has(t)){if(pi(v)||fi(v)){je(t,ki(void 0));return}}else{if(pi(v)){if(k.delete(t),oe>_){je(t,ki(void 0));return}return j.add(t),je(t,Di(p)),De(g,v,!1,{fetcherSubmission:p,preventScrollReset:f})}if(fi(v)){Me(t,n,v.error);return}}if(di(v))throw oi(400,{type:`defer-action`});let y=C.navigation.location||C.location,b=Zr(e.history,y,h.signal),x=s||o,S=C.navigation.state===`idle`?C.matches:Hn(x,C.navigation.location,c);L(S,`Didn't find any matches after fetcher action`);let T=++ae;A.set(t,T);let ee=Di(p,v.data);C.fetchers.set(t,ee);let[te,D]=Lr(e.history,C,S,p,y,!1,d.v7_skipActionErrorRevalidation,re,O,ie,ce,M,j,x,c,[i.route.id,v]);D.filter(e=>e.key!==t).forEach(e=>{let t=e.key,n=C.fetchers.get(t),r=Di(void 0,n?n.data:void 0);C.fetchers.set(t,r),Ie(t),e.controller&&k.set(t,e.controller)}),he({fetchers:new Map(C.fetchers)});let ne=()=>D.forEach(e=>Ie(e.key));h.signal.addEventListener(`abort`,ne);let{loaderResults:se,fetcherResults:ue}=await ke(C,S,te,D,b);if(h.signal.aborted)return;h.signal.removeEventListener(`abort`,ne),A.delete(t),k.delete(t),D.forEach(e=>k.delete(e.key));let de=si(se);if(de)return De(b,de.result,!1,{preventScrollReset:f});if(de=si(ue),de)return j.add(de.key),De(b,de.result,!1,{preventScrollReset:f});let{loaderData:fe,errors:pe}=ti(C,S,se,void 0,D,ue,le);if(C.fetchers.has(t)){let e=ki(v.data);C.fetchers.set(t,e)}ze(T),C.navigation.state===`loading`&&T>oe?(L(w,`Expected pending action`),E&&E.abort(),ge(C.navigation.location,{matches:S,loaderData:fe,errors:pe,fetchers:new Map(C.fetchers)})):(he({errors:pe,loaderData:ni(C.loaderData,fe,S,pe),fetchers:new Map(C.fetchers)}),re=!1)}async function Ee(t,n,r,i,a,o,s,c,l){let u=C.fetchers.get(t);je(t,Di(l,u?u.data:void 0),{flushSync:s});let d=new AbortController,f=Zr(e.history,r,d.signal);if(o){let e=await Xe(a,new URL(f.url).pathname,f.signal,t);if(e.type===`aborted`)return;if(e.type===`error`){Me(t,n,e.error,{flushSync:s});return}if(e.matches)a=e.matches,i=Ci(a,r);else{Me(t,n,oi(404,{pathname:r}),{flushSync:s});return}}k.set(t,d);let p=ae,m=(await Oe(`loader`,C,f,[i],a,t))[i.route.id];if(di(m)&&(m=await xi(m,f.signal,!0)||m),k.get(t)===d&&k.delete(t),!f.signal.aborted){if(ce.has(t)){je(t,ki(void 0));return}if(pi(m)){if(oe>p){je(t,ki(void 0));return}j.add(t),await De(f,m,!1,{preventScrollReset:c});return}if(fi(m)){Me(t,n,m.error);return}L(!di(m),`Unhandled fetcher deferred data`),je(t,ki(m.data))}}async function De(r,i,a,o){let{submission:s,fetcherSubmission:l,preventScrollReset:u,replace:d}=o===void 0?{}:o;i.response.headers.has(`X-Remix-Revalidate`)&&(re=!0);let f=i.response.headers.get(`Location`);L(f,`Expected a Location header on the redirect Response`),f=Xr(f,new URL(r.url),c,e.history);let p=Pn(C.location,f,{_isRedirect:!0});if(n){let n=!1;if(i.response.headers.has(`X-Remix-Reload-Document`))n=!0;else if(kr.test(f)){let r=e.history.createURL(f);n=r.origin!==t.location.origin||sr(r.pathname,c)==null}if(n){d?t.location.replace(f):t.location.assign(f);return}}E=null;let m=d===!0||i.response.headers.has(`X-Remix-Replace`)?On.Replace:On.Push,{formMethod:h,formAction:g,formEncType:_}=C.navigation;!s&&!l&&h&&g&&_&&(s=wi(C.navigation));let v=s||l;Tr.has(i.response.status)&&v&&vi(v.formMethod)?await ye(m,p,{submission:Dn({},v,{formAction:f}),preventScrollReset:u||T,enableViewTransition:a?ee:void 0}):await ye(m,p,{overrideNavigation:Ti(p,s),fetcherSubmission:l,preventScrollReset:u||T,enableViewTransition:a?ee:void 0})}async function Oe(e,t,n,r,o,s){let u,f={};try{u=await Kr(l,e,t,n,r,o,s,a,i)}catch(e){return r.forEach(t=>{f[t.route.id]={type:Rn.error,error:e}}),f}for(let[e,t]of Object.entries(u))if(ui(t)){let r=t.result;f[e]={type:Rn.redirect,response:Yr(r,n,e,o,c,d.v7_relativeSplatPath)}}else f[e]=await Jr(t);return f}async function ke(t,n,r,i,a){let o=t.matches,s=Oe(`loader`,t,a,r,n,null),c=Promise.all(i.map(async n=>{if(n.matches&&n.match&&n.controller){let r=(await Oe(`loader`,t,Zr(e.history,n.path,n.controller.signal),[n.match],n.matches,n.key))[n.match.route.id];return{[n.key]:r}}return Promise.resolve({[n.key]:{type:Rn.error,error:oi(404,{pathname:n.path})}})})),l=await s,u=(await c).reduce((e,t)=>
vendor: 10,031 bytes, lines 8-9
8Object.assign(e,t),{});return await Promise.all([yi(n,l,a.signal,o,t.loaderData),bi(n,u,i)]),{loaderResults:l,fetcherResults:u}}function Ae(){re=!0,O.push(...We()),M.forEach((e,t)=>{k.has(t)&&ie.add(t),Ie(t)})}function je(e,t,n){n===void 0&&(n={}),C.fetchers.set(e,t),he({fetchers:new Map(C.fetchers)},{flushSync:(n&&n.flushSync)===!0})}function Me(e,t,n,r){r===void 0&&(r={});let i=ii(C.matches,t);Pe(e),he({errors:{[i.route.id]:n},fetchers:new Map(C.fetchers)},{flushSync:(r&&r.flushSync)===!0})}function Ne(e){return se.set(e,(se.get(e)||0)+1),ce.has(e)&&ce.delete(e),C.fetchers.get(e)||Dr}function Pe(e){let t=C.fetchers.get(e);k.has(e)&&!(t&&t.state===`loading`&&A.has(e))&&Ie(e),M.delete(e),A.delete(e),j.delete(e),d.v7_fetcherPersist&&ce.delete(e),ie.delete(e),C.fetchers.delete(e)}function Fe(e){let t=(se.get(e)||0)-1;t<=0?(se.delete(e),ce.add(e),d.v7_fetcherPersist||Pe(e)):se.set(e,t),he({fetchers:new Map(C.fetchers)})}function Ie(e){let t=k.get(e);t&&(t.abort(),k.delete(e))}function Le(e){for(let t of e){let e=ki(Ne(t).data);C.fetchers.set(t,e)}}function Re(){let e=[],t=!1;for(let n of j){let r=C.fetchers.get(n);L(r,`Expected fetcher: `+n),r.state===`loading`&&(j.delete(n),e.push(n),t=!0)}return Le(e),t}function ze(e){let t=[];for(let[n,r]of A)if(r<e){let e=C.fetchers.get(n);L(e,`Expected fetcher: `+n),e.state===`loading`&&(Ie(n),A.delete(n),t.push(n))}return Le(t),t.length>0}function Be(e,t){let n=C.blockers.get(e)||Or;return ue.get(e)!==t&&ue.set(e,t),n}function Ve(e){C.blockers.delete(e),ue.delete(e)}function He(e,t){let n=C.blockers.get(e)||Or;L(n.state===`unblocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`blocked`||n.state===`blocked`&&t.state===`proceeding`||n.state===`blocked`&&t.state===`unblocked`||n.state===`proceeding`&&t.state===`unblocked`,`Invalid blocker state transition: `+n.state+` -> `+t.state);let r=new Map(C.blockers);r.set(e,t),he({blockers:r})}function N(e){let{currentLocation:t,nextLocation:n,historyAction:r}=e;if(ue.size===0)return;ue.size>1&&jn(!1,`A router only supports one blocker at a time`);let i=Array.from(ue.entries()),[a,o]=i[i.length-1],s=C.blockers.get(a);if(!(s&&s.state===`proceeding`)&&o({currentLocation:t,nextLocation:n,historyAction:r}))return a}function Ue(e){let t=oi(404,{pathname:e}),{matches:n,route:r}=ai(s||o);return We(),{notFoundMatches:n,route:r,error:t}}function We(e){let t=[];return le.forEach((n,r)=>{(!e||e(r))&&(n.cancel(),t.push(r),le.delete(r))}),t}function Ge(e,t,n){if(m=e,g=t,h=n||null,!_&&C.navigation===Er){_=!0;let e=Je(C.location,C.matches);e!=null&&he({restoreScrollPosition:e})}return()=>{m=null,g=null,h=null}}function Ke(e,t){return h&&h(e,t.map(e=>Wn(e,C.loaderData)))||e.key}function qe(e,t){if(m&&g){let n=Ke(e,t);m[n]=g()}}function Je(e,t){if(m){let n=Ke(e,t),r=m[n];if(typeof r==`number`)return r}return null}function Ye(e,t,n){if(u){if(!e)return{active:!0,matches:Un(t,n,c,!0)||[]};if(Object.keys(e[0].params).length>0)return{active:!0,matches:Un(t,n,c,!0)}}return{active:!1,matches:null}}async function Xe(e,t,n,r){if(!u)return{type:`success`,matches:e};let l=e;for(;;){let e=s==null,d=s||o,f=a;try{await u({signal:n,path:t,matches:l,fetcherKey:r,patch:(e,t)=>{n.aborted||Hr(e,t,d,f,i)}})}catch(e){return{type:`error`,error:e,partialMatches:l}}finally{e&&!n.aborted&&(o=[...o])}if(n.aborted)return{type:`aborted`};let p=Hn(d,t,c);if(p)return{type:`success`,matches:p};let m=Un(d,t,c,!0);if(!m||l.length===m.length&&l.every((e,t)=>e.route.id===m[t].route.id))return{type:`success`,matches:null};l=m}}function Ze(e){a={},s=Vn(e,i,void 0,a)}function Qe(e,t){let n=s==null;Hr(e,t,s||o,a,i),n&&(o=[...o],he({}))}return S={get basename(){return c},get future(){return d},get state(){return C},get routes(){return o},get window(){return t},initialize:fe,subscribe:me,enableScrollRestoration:Ge,navigate:_e,fetch:we,revalidate:ve,createHref:t=>e.history.createHref(t),encodeLocation:t=>e.history.encodeLocation(t),getFetcher:Ne,deleteFetcher:Fe,dispose:pe,getBlocker:Be,deleteBlocker:Ve,patchRoutes:Qe,_internalFetchControllers:k,_internalActiveDeferreds:le,_internalSetRoutes:Ze},S}function Nr(e){return e!=null&&(`formData`in e&&e.formData!=null||`body`in e&&e.body!==void 0)}function Pr(e,t,n,r,i,a,o,s){let c,l;if(o){c=[];for(let e of t)if(c.push(e),e.route.id===o){l=e;break}}else c=t,l=t[t.length-1];let u=pr(i||`.`,fr(c,a),sr(e.pathname,n)||e.pathname,s===`path`);if(i??(u.search=e.search,u.hash=e.hash),(i==null||i===``||i===`.`)&&l){let e=Si(u.search);if(l.route.index&&!e)u.search=u.search?u.search.replace(/^\?/,`?index&`):`?index`;else if(!l.route.index&&e){let e=new URLSearchParams(u.search),t=e.getAll(`index`);e.delete(`index`),t.filter(e=>e).forEach(t=>e.append(`index`,t));let n=e.toString();u.search=n?`?`+n:``}}return r&&n!==`/`&&(u.pathname=u.pathname===`/`?n:hr([n,u.pathname])),Fn(u)}function Fr(e,t,n,r){if(!r||!Nr(r))return{path:n};if(r.formMethod&&!_i(r.formMethod))return{path:n,error:oi(405,{method:r.formMethod})};let i=()=>({path:n,error:oi(400,{type:`invalid-body`})}),a=r.formMethod||`get`,o=e?a.toUpperCase():a.toLowerCase(),s=ci(n);if(r.body!==void 0){if(r.formEncType===`text/plain`){if(!vi(o))return i();let e=typeof r.body==`string`?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((e,t)=>{let[n,r]=t;return``+e+n+`=`+r+`
9`},``):String(r.body);return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:void 0,text:e}}}if(r.formEncType===`application/json`){if(!vi(o))return i();try{let e=typeof r.body==`string`?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:o,formAction:s,formEncType:r.formEncType,formData:void 0,json:e,text:void 0}}}catch{return i()}}}L(typeof FormData==`function`,`FormData is not available in this environment`);let c,l;if(r.formData)c=Qr(r.formData),l=r.formData;else if(r.body instanceof FormData)c=Qr(r.body),l=r.body;else if(r.body instanceof URLSearchParams)c=r.body,l=$r(c);else if(r.body==null)c=new URLSearchParams,l=new FormData;else try{c=new URLSearchParams(r.body),l=$r(c)}catch{return i()}let u={formMethod:o,formAction:s,formEncType:r&&r.formEncType||`application/x-www-form-urlencoded`,formData:l,json:void 0,text:void 0};if(vi(u.formMethod))return{path:n,submission:u};let d=In(n);return t&&d.search&&Si(d.search)&&c.append(`index`,``),d.search=`?`+c,{path:Fn(d),submission:u}}function Ir(e,t,n){n===void 0&&(n=!1);let r=e.findIndex(e=>e.route.id===t);return r>=0?e.slice(0,n?r+1:r):e}function Lr(e,t,n,r,i,a,o,s,c,l,u,d,f,p,m,h){let g=h?fi(h[1])?h[1].error:h[1].data:void 0,_=e.createURL(t.location),v=e.createURL(i),y=n;a&&t.errors?y=Ir(n,Object.keys(t.errors)[0],!0):h&&fi(h[1])&&(y=Ir(n,h[0]));let b=h?h[1].statusCode:void 0,x=o&&b&&b>=400,S=y.filter((e,n)=>{let{route:i}=e;if(i.lazy)return!0;if(i.loader==null)return!1;if(a)return Rr(i,t.loaderData,t.errors);if(zr(t.loaderData,t.matches[n],e)||c.some(t=>t===e.route.id))return!0;let o=t.matches[n],l=e;return Vr(e,Dn({currentUrl:_,currentParams:o.params,nextUrl:v,nextParams:l.params},r,{actionResult:g,actionStatus:b,defaultShouldRevalidate:x?!1:s||_.pathname+_.search===v.pathname+v.search||_.search!==v.search||Br(o,l)}))}),C=[];return d.forEach((e,i)=>{if(a||!n.some(t=>t.route.id===e.routeId)||u.has(i))return;let o=Hn(p,e.path,m);if(!o){C.push({key:i,routeId:e.routeId,path:e.path,matches:null,match:null,controller:null});return}let c=t.fetchers.get(i),d=Ci(o,e.path),h=!1;f.has(i)?h=!1:l.has(i)?(l.delete(i),h=!0):h=c&&c.state!==`idle`&&c.data===void 0?s:Vr(d,Dn({currentUrl:_,currentParams:t.matches[t.matches.length-1].params,nextUrl:v,nextParams:n[n.length-1].params},r,{actionResult:g,actionStatus:b,defaultShouldRevalidate:!x&&s})),h&&C.push({key:i,routeId:e.routeId,path:e.path,matches:o,match:d,controller:new AbortController})}),[S,C]}function Rr(e,t,n){if(e.lazy)return!0;if(!e.loader)return!1;let r=t!=null&&t[e.id]!==void 0,i=n!=null&&n[e.id]!==void 0;return!r&&i?!1:typeof e.loader==`function`&&e.loader.hydrate===!0||!r&&!i}function zr(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function Br(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith(`*`)&&e.params[`*`]!==t.params[`*`]}function Vr(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n==`boolean`)return n}return t.defaultShouldRevalidate}function Hr(e,t,n,r,i){let a;if(e){let t=r[e];L(t,`No route found to patch children into: routeId = `+e),t.children||=[],a=t.children}else a=n;let o=Vn(t.filter(e=>!a.some(t=>Ur(e,t))),i,[e||`_`,`patch`,String(a?.length||`0`)],r);a.push(...o)}function Ur(e,t){return`id`in e&&`id`in t&&e.id===t.id?!0:e.index!==t.index||e.path!==t.path||e.caseSensitive!==t.caseSensitive?!1:(!e.children||e.children.length===0)&&(!t.children||t.children.length===0)||e.children.every((e,n)=>t.children?.some(t=>Ur(e,t)))}async function Wr(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];L(i,`No route found in manifest`);let a={};for(let e in r){let t=i[e]!==void 0&&e!==`hasErrorBoundary`;jn(!t,`Route "`+i.id+`" has a static property "`+e+`" defined but its lazy function is also returning a value for this property. `+(`The lazy route property "`+e+`" will be ignored.`)),!t&&!zn.has(e)&&(a[e]=r[e])}Object.assign(i,a),Object.assign(i,Dn({},t(i),{lazy:void 0}))}async function Gr(e){let{matches:t}=e,n=t.filter(e=>e.shouldLoad);return(await Promise.all(n.map(e=>e.resolve()))).reduce((e,t,r)=>Object.assign(e,{[n[r].route.id]:t}),{})}async function Kr(e,t,n,r,i,a,o,s,c,l){let u=a.map(e=>e.route.lazy?Wr(e.route,c,s):void 0),d=await e({matches:a.map((e,n)=>{let a=u[n],o=i.some(t=>t.route.id===e.route.id);return Dn({},e,{shouldLoad:o,resolve:async n=>(n&&r.method===`GET`&&(e.route.lazy||e.route.loader)&&(o=!0),o?qr(t,r,e,a,n,l):Promise.resolve({type:Rn.data,result:void 0}))})}),request:r,params:a[0].params,fetcherKey:o,context:l});try{await Promise.all(u)}catch{}return d}async function qr(e,t,n,r,i,a){let o,s,c=r=>{let o,c=new Promise((e,t)=>
9o=t);s=()=>o(),t.signal.addEventListener(`abort`,s);let l=i=>typeof r==`function`?r({request:t,params:n.params,context:a},...i===void 0?[]:[i]):Promise.reject(Error(`You cannot call the handler for a route which defines a boolean `+(`"`+e+`" [routeId: `+n.route.id+`]`))),u=(async()=>{try{return{type:`data`,result:await(i?i(e=>l(e)):l())}}catch(e){return{type:`error`,result:e}}})();return Promise.race([u,c])};try{let i=n.route[e];if(r){if(i){let e,[t]=await Promise.all([c(i).catch(t=>{e=t}),r]);if(e!==void 0)throw e;o=t}else if(await r,i=n.route[e],i)o=await c(i);else if(e===`action`){let e=new URL(t.url),r=e.pathname+e.search;throw oi(405,{method:t.method,pathname:r,routeId:n.route.id})}else return{type:Rn.data,result:void 0}}else if(i)o=await c(i);else{let e=new URL(t.url);throw oi(404,{pathname:e.pathname+e.search})}L(o.result!==void 0,`You defined `+(e===`action`?`an action`:`a loader`)+` for route `+(`"`+n.route.id+`" but didn't return anything from your \``+e+"` ")+"function. Please return a value or `null`.")}catch(e){return{type:Rn.error,result:e}}finally{s&&t.signal.removeEventListener(`abort`,s)}return o}async function Jr(e){let{result:t,type:n}=e;if(gi(t)){let e;try{let n=t.headers.get(`Content-Type`);e=n&&/\bapplication\/json\b/.test(n)?t.body==null?null:await t.json():await t.text()}catch(e){return{type:Rn.error,error:e}}return n===Rn.error?{type:Rn.error,error:new yr(t.status,t.statusText,e),statusCode:t.status,headers:t.headers}:{type:Rn.data,data:e,statusCode:t.status,headers:t.headers}}if(n===Rn.error){if(mi(t)){var r;if(t.data instanceof Error){var i;return{type:Rn.error,error:t.data,statusCode:t.init?.status,headers:(i=t.init)!=null&&i.headers?new Headers(t.init.headers):void 0}}return{type:Rn.error,error:new yr(t.init?.status||500,void 0,t.data),statusCode:br(t)?t.status:void 0,headers:(r=t.init)!=null&&r.headers?new Headers(t.init.headers):void 0}}return{type:Rn.error,error:t,statusCode:br(t)?t.status:void 0}}if(hi(t))return{type:Rn.deferred,deferredData:t,statusCode:t.init?.status,headers:t.init?.headers&&new Headers(t.init.headers)};if(mi(t)){var a;return{type:Rn.data,data:t.data,statusCode:t.init?.status,headers:(a=t.init)!=null&&a.headers?new Headers(t.init.headers):void 0}}return{type:Rn.data,data:t}}function Yr(e,t,n,r,i,a){let o=e.headers.get(`Location`);if(L(o,`Redirects returned/thrown from loaders/actions must have a Location header`),!kr.test(o)){let s=r.slice(0,r.findIndex(e=>e.route.id===n)+1);o=Pr(new URL(t.url),s,i,!0,o,a),e.headers.set(`Location`,o)}return e}function Xr(e,t,n,r){let i=[`about:`,`blob:`,`chrome:`,`chrome-untrusted:`,`content:`,`data:`,`devtools:`,`file:`,`filesystem:`,`javascript:`];if(kr.test(e)){let r=e,a=r.startsWith(`//`)?new URL(t.protocol+r):new URL(r);if(i.includes(a.protocol))throw Error(`Invalid redirect location`);let o=sr(a.pathname,n)!=null;if(a.origin===t.origin&&o)return mr(a.pathname)+a.search+a.hash}try{let t=r.createURL(e);if(i.includes(t.protocol))throw Error(`Invalid redirect location`)}catch{}return e}function Zr(e,t,n,r){let i=e.createURL(ci(t)).toString(),a={signal:n};if(r&&vi(r.formMethod)){let{formMethod:e,formEncType:t}=r;a.method=e.toUpperCase(),t===`application/json`?(a.headers=new Headers({"Content-Type":t}),a.body=JSON.stringify(r.json)):a.body=t===`text/plain`?r.text:t===`application/x-www-form-urlencoded`&&r.formData?Qr(r.formData):r.formData}return new Request(i,a)}function Qr(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r==`string`?r:r.name);return t}function $r(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function ei(e,t,n,r,i){let a={},o=null,s,c=!1,l={},u=n&&fi(n[1])?n[1].error:void 0;return e.forEach(n=>{if(!(n.route.id in t))return;let d=n.route.id,f=t[d];if(L(!pi(f),`Cannot handle redirect results in processLoaderData`),fi(f)){let t=f.error;if(u!==void 0&&(t=u,u=void 0),o||={},i)o[d]=t;else{let n=ii(e,d);o[n.route.id]??(o[n.route.id]=t)}a[d]=void 0,c||(c=!0,s=br(f.error)?f.error.status:500),f.headers&&(l[d]=f.headers)}else di(f)?(r.set(d,f.deferredData),a[d]=f.deferredData.data,f.statusCode!=null&&f.statusCode!==200&&!c&&(s=f.statusCode),f.headers&&(l[d]=f.headers)):(a[d]=f.data,f.statusCode&&f.statusCode!==200&&!c&&(s=f.statusCode),f.headers&&(l[d]=f.headers))}),u!==void 0&&n&&(o={[n[0]]:u},a[n[0]]=void 0),{loaderData:a,errors:o,statusCode:s||200,loaderHeaders:l}}function ti(e,t,n,r,i,a,o){let{loaderData:s,errors:c}=ei(t,n,r,o,!1);
vendor: 6,985 bytes, line 9
9return i.forEach(t=>{let{key:n,match:r,controller:i}=t,o=a[n];if(L(o,`Did not find corresponding fetcher result`),!(i&&i.signal.aborted)){if(fi(o)){let t=ii(e.matches,r?.route.id);c&&c[t.route.id]||(c=Dn({},c,{[t.route.id]:o.error})),e.fetchers.delete(n)}else if(pi(o))L(!1,`Unhandled fetcher revalidation redirect`);else if(di(o))L(!1,`Unhandled fetcher deferred data`);else{let t=ki(o.data);e.fetchers.set(n,t)}}}),{loaderData:s,errors:c}}function ni(e,t,n,r){let i=Dn({},t);for(let a of n){let n=a.route.id;if(t.hasOwnProperty(n)?t[n]!==void 0&&(i[n]=t[n]):e[n]!==void 0&&a.route.loader&&(i[n]=e[n]),r&&r.hasOwnProperty(n))break}return i}function ri(e){return e?fi(e[1])?{actionData:{}}:{actionData:{[e[0]]:e[1].data}}:{}}function ii(e,t){return(t?e.slice(0,e.findIndex(e=>e.route.id===t)+1):[...e]).reverse().find(e=>e.route.hasErrorBoundary===!0)||e[0]}function ai(e){let t=e.length===1?e[0]:e.find(e=>e.index||!e.path||e.path===`/`)||{id:`__shim-error-route__`};return{matches:[{params:{},pathname:``,pathnameBase:``,route:t}],route:t}}function oi(e,t){let{pathname:n,routeId:r,method:i,type:a,message:o}=t===void 0?{}:t,s=`Unknown Server Error`,c=`Unknown @remix-run/router error`;return e===400?(s=`Bad Request`,i&&n&&r?c=`You made a `+i+` request to "`+n+`" but `+('did not provide a `loader` for route "'+r+`", `)+`so there is no way to handle the request.`:a===`defer-action`?c=`defer() is not supported in actions`:a===`invalid-body`&&(c=`Unable to encode submission body`)):e===403?(s=`Forbidden`,c=`Route "`+r+`" does not match URL "`+n+`"`):e===404?(s=`Not Found`,c=`No route matches URL "`+n+`"`):e===405&&(s=`Method Not Allowed`,i&&n&&r?c=`You made a `+i.toUpperCase()+` request to "`+n+`" but `+('did not provide an `action` for route "'+r+`", `)+`so there is no way to handle the request.`:i&&(c=`Invalid request method "`+i.toUpperCase()+`"`)),new yr(e||500,s,Error(c),!0)}function si(e){let t=Object.entries(e);for(let e=t.length-1;e>=0;e--){let[n,r]=t[e];if(pi(r))return{key:n,result:r}}}function ci(e){let t=typeof e==`string`?In(e):e;return Fn(Dn({},t,{hash:``}))}function li(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===``?t.hash!==``:e.hash===t.hash||t.hash!==``}function ui(e){return gi(e.result)&&wr.has(e.result.status)}function di(e){return e.type===Rn.deferred}function fi(e){return e.type===Rn.error}function pi(e){return(e&&e.type)===Rn.redirect}function mi(e){return typeof e==`object`&&!!e&&`type`in e&&`data`in e&&`init`in e&&e.type===`DataWithResponseInit`}function hi(e){let t=e;return t&&typeof t==`object`&&typeof t.data==`object`&&typeof t.subscribe==`function`&&typeof t.cancel==`function`&&typeof t.resolveData==`function`}function gi(e){return e!=null&&typeof e.status==`number`&&typeof e.statusText==`string`&&typeof e.headers==`object`&&e.body!==void 0}function _i(e){return Cr.has(e.toLowerCase())}function vi(e){return xr.has(e.toLowerCase())}async function yi(e,t,n,r,i){let a=Object.entries(t);for(let o=0;o<a.length;o++){let[s,c]=a[o],l=e.find(e=>e?.route.id===s);if(!l)continue;let u=r.find(e=>e.route.id===l.route.id),d=u!=null&&!Br(u,l)&&(i&&i[l.route.id])!==void 0;di(c)&&d&&await xi(c,n,!1).then(e=>{e&&(t[s]=e)})}}async function bi(e,t,n){for(let r=0;r<n.length;r++){let{key:i,routeId:a,controller:o}=n[r],s=t[i];e.find(e=>e?.route.id===a)&&di(s)&&(L(o,`Expected an AbortController for revalidating fetcher deferred result`),await xi(s,o.signal,!0).then(e=>{e&&(t[i]=e)}))}}async function xi(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Rn.data,data:e.deferredData.unwrappedData}}catch(e){return{type:Rn.error,error:e}}return{type:Rn.data,data:e.deferredData.data}}}function Si(e){return new URLSearchParams(e).getAll(`index`).some(e=>e===``)}function Ci(e,t){let n=typeof t==`string`?In(t).search:t.search;if(e[e.length-1].route.index&&Si(n||``))return e[e.length-1];let r=dr(e);return r[r.length-1]}function wi(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:o}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(o!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:o,text:void 0}}}function Ti(e,t){return t?{state:`loading`,location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}:{state:`loading`,location:e,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0}}function Ei(e,t){return{state:`submitting`,location:e,formMethod:t.formMethod,formAction:t.formAction,formEncType:t.formEncType,formData:t.formData,json:t.json,text:t.text}}function Di(e,t){return e?{state:`loading`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t}:{state:`loading`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:t}}function Oi(e,t){return{state:`submitting`,formMethod:e.formMethod,formAction:e.formAction,formEncType:e.formEncType,formData:e.formData,json:e.json,text:e.text,data:t?t.data:void 0}}function ki(e){return{state:`idle`,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0,data:e}}function Ai(e,t){try{let n=e.sessionStorage.getItem(jr);if(n){let e=JSON.parse(n);for(let[n,r]of Object.entries(e||{}))r&&Array.isArray(r)&&t.set(n,new Set(r||[]))}}catch{}}function ji(e,t){if(t.size>0){let n={};for(let[e,r]of t)n[e]=[...r];try{e.sessionStorage.setItem(jr,JSON.stringify(n))}catch(e){jn(!1,`Failed to save applied view transitions in sessionStorage (`+e+`).`)}}}function Mi(){return Mi=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Mi.apply(null,arguments)}var Ni=y.createContext(null),Pi=y.createContext(null),Fi=y.createContext(null),Ii=y.createContext(null),Li=y.createContext({outlet:null,matches:[],isDataRoute:!1}),Ri=y.createContext(null);function zi(e,t){let{relative:n}=t===void 0?{}:t;!Bi()&&L(!1);let{basename:r,navigator:i}=y.useContext(Fi),{hash:a,pathname:o,search:s}=qi(e,{relative:n}),c=o;return r!==`/`&&(c=o===`/`?r:hr([r,o])),i.createHref({pathname:c,search:s,hash:a})}function Bi(){return y.useContext(Ii)!=null}function Vi(){return!Bi()&&L(!1),y.useContext(Ii).location}function Hi(e){!Bi()&&L(!1);let{pathname:t}=Vi();return y.useMemo(()=>ir(e,or(t)),[t,e])}function Ui(e){y.useContext(Fi).static||y.useLayoutEffect(e)}function Wi(){let{isDataRoute:e}=y.useContext(Li);return e?sa():Gi()}function Gi(){!Bi()&&L(!1);let e=y.useContext(Ni),{basename:t,future:n,navigator:r}=y.useContext(Fi),{matches:i}=y.useContext(Li),{pathname:a}=Vi(),o=JSON.stringify(fr(i,n.v7_relativeSplatPath)),s=y.useRef(!1);return Ui(()=>{s.current=!0}
9),y.useCallback(function(n,i){if(i===void 0&&(i={}),!s.current)return;if(typeof n==`number`){r.go(n);return}let c=pr(n,JSON.parse(o),a,i.relative===`path`);e==null&&t!==`/`&&(c.pathname=c.pathname===`/`?t:hr([t,c.pathname])),(i.replace?r.replace:r.push)(c,i.state,i)},[t,r,o,a,e])}function Ki(){let{matches:e}=y.useContext(Li),t=e[e.length-1];return t?t.params:{}}function qi(e,t){let{relative:n}=t===void 0?{}:t,{future:r}=y.useContext(Fi),{matches:i}=y.useContext(Li),{pathname:a}=Vi(),o=JSON.stringify(fr(i,r.v7_relativeSplatPath));return y.useMemo(()=>pr(e,JSON.parse(o),a,n===`path`),[e,o,a,n])}function Ji(e,t,n,r){!Bi()&&L(!1);let{navigator:i}=y.useContext(Fi),{matches:a}=y.useContext(Li),o=a[a.length-1],s=o?o.params:{};o&&o.pathname;let c=o?o.pathnameBase:`/`;o&&o.route;let l=Vi(),u;if(t){let e=typeof t==`string`?In(t):t;!(c===`/`||e.pathname?.startsWith(c))&&L(!1),u=e}else u=l;let d=u.pathname||`/`,f=d;if(c!==`/`){let e=c.replace(/^\//,``).split(`/`);f=`/`+d.replace(/^\//,``).split(`/`).slice(e.length).join(`/`)}let p=Hn(e,{pathname:f}),m=$i(p&&p.map(e=>Object.assign({},e,{params:Object.assign({},s,e.params),pathname:hr([c,i.encodeLocation?i.encodeLocation(e.pathname).pathname:e.pathname]),pathnameBase:e.pathnameBase===`/`?c:hr([c,i.encodeLocation?i.encodeLocation(e.pathnameBase).pathname:e.pathnameBase])})),a,n,r);return t&&m?y.createElement(Ii.Provider,{value:{location:Mi({pathname:`/`,search:``,hash:``,state:null,key:`default`},u),navigationType:On.Pop}},m):m}function Yi(){let e=oa(),t=br(e)?e.status+` `+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null;return y.createElement(y.Fragment,null,y.createElement(`h2`,null,`Unexpected Application Error!`),y.createElement(`h3`,{style:{fontStyle:`italic`}},t),n?y.createElement(`pre`,{style:{padding:`0.5rem`,backgroundColor:`rgba(200,200,200, 0.5)`}},n):null,null)}var Xi=y.createElement(Yi,null),Zi=class extends y.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!==`idle`&&e.revalidation===`idle`?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error===void 0?t.error:e.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){console.error(`React Router caught the following error during render`,e,t)}render(){return this.state.error===void 0?this.props.children:y.createElement(Li.Provider,{value:this.props.routeContext},y.createElement(Ri.Provider,{value:this.state.error,children:this.props.component}))}};function Qi(e){let{routeContext:t,match:n,children:r}=e,i=y.useContext(Ni);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),y.createElement(Li.Provider,{value:t},r)}function $i(e,t,n,r){if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var i;if(!n)return null;if(n.errors)e=n.matches;else if((i=r)!=null&&i.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let a=e,o=n?.errors;if(o!=null){let e=a.findIndex(e=>e.route.id&&o?.[e.route.id]!==void 0);!(e>=0)&&L(!1),a=a.slice(0,Math.min(a.length,e+1))}let s=!1,c=-1;if(n&&r&&r.v7_partialHydration)for(let e=0;e<a.length;e++){let t=a[e];if((t.route.HydrateFallback||t.route.hydrateFallbackElement)&&(c=e),t.route.id){let{loaderData:e,errors:r}=n,i=t.route.loader&&e[t.route.id]===void 0&&(!r||r[t.route.id]===void 0);if(t.route.lazy||i){s=!0,a=c>=0?a.slice(0,c+1):[a[0]];break}}}return a.reduceRight((e,r,i)=>{let l,u=!1,d=null,f=null;n&&(l=o&&r.route.id?o[r.route.id]:void 0,d=r.route.errorElement||Xi,s&&(c<0&&i===0?(la(`route-fallback`,!1,"No `HydrateFallback` element provided to render during initial hydration"),u=!0,f=null):c===i&&(u=!0,f=r.route.hydrateFallbackElement||null)));let p=t.concat(a.slice(0,i+1)),m=()=>{let t;return t=l?d:u?f:r.route.Component?y.createElement(r.route.Component,null):r.route.element?r.route.element:e,y.createElement(Qi,{match:r,routeContext:{outlet:e,matches:p,isDataRoute:n!=null},children:t})};return n&&(r.route.ErrorBoundary||r.route.errorElement||i===0)?y.createElement(Zi,{location:n.location,revalidation:n.revalidation,component:d,error:l,children:m(),routeC
9ontext:{outlet:null,matches:p,isDataRoute:!0}}):m()},null)}var ea=function(e){return e.UseBlocker=`useBlocker`,e.UseRevalidator=`useRevalidator`,e.UseNavigateStable=`useNavigate`,e}(ea||{}),ta=function(e){return e.UseBlocker=`useBlocker`,e.UseLoaderData=`useLoaderData`,e.UseActionData=`useActionData`,e.UseRouteError=`useRouteError`,e.UseNavigation=`useNavigation`,e.UseRouteLoaderData=`useRouteLoaderData`,e.UseMatches=`useMatches`,e.UseRevalidator=`useRevalidator`,e.UseNavigateStable=`useNavigate`,e.UseRouteId=`useRouteId`,e}(ta||{});function na(e){let t=y.useContext(Ni);return!t&&L(!1),t}function ra(e){let t=y.useContext(Pi);return!t&&L(!1),t}function ia(e){let t=y.useContext(Li);return!t&&L(!1),t}function aa(e){let t=ia(e),n=t.matches[t.matches.length-1];return!n.route.id&&L(!1),n.route.id}function oa(){let e=y.useContext(Ri),t=ra(ta.UseRouteError),n=aa(ta.UseRouteError);return e===void 0?t.errors?.[n]:e}function sa(){let{router:e}=na(ea.UseNavigateStable),t=aa(ta.UseNavigateStable),n=y.useRef(!1);return Ui(()=>{n.current=!0}),y.useCallback(function(r,i){i===void 0&&(i={}),n.current&&(typeof r==`number`?e.navigate(r):e.navigate(r,Mi({fromRouteId:t},i)))},[e,t])}var ca={};function la(e,t,n){!t&&!ca[e]&&(ca[e]=!0)}var ua=(e,t,n)=>(``+t+("You can use the `"+e+"` future flag to opt-in early. ")+(`For more information, see `+n+`.`),void 0);function da(e,t){e?.v7_startTransition===void 0&&ua(`v7_startTransition`,"React Router will begin wrapping state updates in `React.startTransition` in v7",`https://reactrouter.com/v6/upgrading/future#v7_starttransition`),e?.v7_relativeSplatPath===void 0&&(!t||t.v7_relativeSplatPath===void 0)&&ua(`v7_relativeSplatPath`,`Relative route resolution within Splat routes is changing in v7`,`https://reactrouter.com/v6/upgrading/future#v7_relativesplatpath`),t&&(t.v7_fetcherPersist===void 0&&ua(`v7_fetcherPersist`,`The persistence behavior of fetchers is changing in v7`,`https://reactrouter.com/v6/upgrading/future#v7_fetcherpersist`),t.v7_normalizeFormMethod===void 0&&ua(`v7_normalizeFormMethod`,"Casing of `formMethod` fields is being normalized to uppercase in v7",`https://reactrouter.com/v6/upgrading/future#v7_normalizeformmethod`),t.v7_partialHydration===void 0&&ua(`v7_partialHydration`,"`RouterProvider` hydration behavior is changing in v7",`https://reactrouter.com/v6/upgrading/future#v7_partialhydration`),t.v7_skipActionErrorRevalidation===void 0&&ua(`v7_skipActionErrorRevalidation`,"The revalidation behavior after 4xx/5xx `action` responses is changing in v7",`https://reactrouter.com/v6/upgrading/future#v7_skipactionerrorrevalidation`))}function fa(e){let{to:t,replace:n,state:r,relative:i}=e;!Bi()&&L(!1);let{future:a,static:o}=y.useContext(Fi),{matches:s}=y.useContext(Li),{pathname:c}=Vi(),l=Wi(),u=pr(t,fr(s,a.v7_relativeSplatPath),c,i===`path`),d=JSON.stringify(u);return y.useEffect(()=>l(JSON.parse(d),{replace:n,state:r,relative:i}),[l,d,i,n,r]),null}function pa(e){let{basename:t=`/`,children:n=null,location:r,navigationType:i=On.Pop,navigator:a,static:o=!1,future:s}=e;Bi()&&L(!1);let c=t.replace(/^\/*/,`/`),l=y.useMemo(()=>({basename:c,navigator:a,static:o,future:Mi({v7_relativeSplatPath:!1},s)}),[c,s,a,o]);typeof r==`string`&&(r=In(r));let{pathname:u=`/`,search:d=``,hash:f=``,state:p=null,key:m=`default`}=r,h=y.useMemo(()=>{let e=sr(u,c);return e==null?null:{location:{pathname:e,search:d,hash:f,state:p,key:m},navigationType:i}},[c,u,d,f,p,m,i]);return h==null?null:y.createElement(Fi.Provider,{value:l},y.createElement(Ii.Provider,{children:n,value:h}))}var ma=function(e){return e[e.pending=0]=`pending`,e[e.success=1]=`success`,e[e.error=2]=`error`,e}(ma||{});new Promise(()=>{}),y.Component;function ha(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:y.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:y.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:y.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}function ga(){return ga=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ga.apply(null,arguments)}function _a(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function va(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function ya(e,t){return e.button===0&&(!t||t===`_self`)&&!va(e)}function ba(e){return e===void 0&&(e=``),new URLSearchParams(typeof e==`string`||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(e=>[n,e]):[[n,r]])},[]))}function xa(e,t){let n=ba(e);return t&&t.forEach((e,r)=>
9{n.has(r)||t.getAll(r).forEach(e=>{n.append(r,e)})}),n}var Sa=[`onClick`,`relative`,`reloadDocument`,`replace`,`state`,`target`,`to`,`preventScrollReset`,`viewTransition`],Ca=`6`;try{window.__reactRouterVersion=Ca}catch{}function wa(e,t){return Mr({basename:t?.basename,future:ga({},t?.future,{v7_prependBasename:!0}),history:An({window:t?.window}),hydrationData:t?.hydrationData||Ta(),routes:e,mapRouteProperties:ha,dataStrategy:t?.dataStrategy,patchRoutesOnNavigation:t?.patchRoutesOnNavigation,window:t?.window}).initialize()}function Ta(){let e=window?.__staticRouterHydrationData;return e&&e.errors&&(e=ga({},e,{errors:Ea(e.errors)})),e}function Ea(e){if(!e)return null;let t=Object.entries(e),n={};for(let[e,r]of t)if(r&&r.__type===`RouteErrorResponse`)n[e]=new yr(r.status,r.statusText,r.data,r.internal===!0);else if(r&&r.__type===`Error`){if(r.__subType){let t=window[r.__subType];if(typeof t==`function`)try{let i=new t(r.message);i.stack=``,n[e]=i}catch{}}if(n[e]==null){let t=Error(r.message);t.stack=``,n[e]=t}}else n[e]=r;return n}var Da=y.createContext({isTransitioning:!1}),Oa=y.createContext(new Map),ka=y.startTransition,Aa=En.flushSync;function ja(e){ka?ka(e):e()}function Ma(e){Aa?Aa(e):e()}var Na=class{constructor(){this.status=`pending`,this.promise=new Promise((e,t)=>{this.resolve=t=>{this.status===`pending`&&(this.status=`resolved`,e(t))},this.reject=e=>{this.status===`pending`&&(this.status=`rejected`,t(e))}})}};function Pa(e){let{fallbackElement:t,router:n,future:r}=e,[i,a]=y.useState(n.state),[o,s]=y.useState(),[c,l]=y.useState({isTransitioning:!1}),[u,d]=y.useState(),[f,p]=y.useState(),[m,h]=y.useState(),g=y.useRef(new Map),{v7_startTransition:_}=r||{},v=y.useCallback(e=>{_?ja(e):e()},[_]),b=y.useCallback((e,t)=>{let{deletedFetchers:r,flushSync:i,viewTransitionOpts:o}=t;e.fetchers.forEach((e,t)=>{e.data!==void 0&&g.current.set(t,e.data)}),r.forEach(e=>g.current.delete(e));let c=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!=`function`;if(!o||c){i?Ma(()=>a(e)):v(()=>a(e));return}if(i){Ma(()=>{f&&(u&&u.resolve(),f.skipTransition()),l({isTransitioning:!0,flushSync:!0,currentLocation:o.currentLocation,nextLocation:o.nextLocation})});let t=n.window.document.startViewTransition(()=>{Ma(()=>a(e))});t.finished.finally(()=>{Ma(()=>{d(void 0),p(void 0),s(void 0),l({isTransitioning:!1})})}),Ma(()=>p(t));return}f?(u&&u.resolve(),f.skipTransition(),h({state:e,currentLocation:o.currentLocation,nextLocation:o.nextLocation})):(s(e),l({isTransitioning:!0,flushSync:!1,currentLocation:o.currentLocation,nextLocation:o.nextLocation}))},[n.window,f,u,g,v]);y.useLayoutEffect(()=>n.subscribe(b),[n,b]),y.useEffect(()=>{c.isTransitioning&&!c.flushSync&&d(new Na)},[c]),y.useEffect(()=>{if(u&&o&&n.window){let e=o,t=u.promise,r=n.window.document.startViewTransition(async()=>{v(()=>a(e)),await t});r.finished.finally(()=>{d(void 0),p(void 0),s(void 0),l({isTransitioning:!1})}),p(r)}},[v,o,u,n.window]),y.useEffect(()=>{u&&o&&i.location.key===o.location.key&&u.resolve()},[u,f,i.location,o]),y.useEffect(()=>{!c.isTransitioning&&m&&(s(m.state),l({isTransitioning:!0,flushSync:!1,currentLocation:m.currentLocation,nextLocation:m.nextLocation}),h(void 0))},[c.isTransitioning,m]),y.useEffect(()=>{},[]);let x=y.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:e=>n.navigate(e),push:(e,t,r)=>n.navigate(e,{state:t,preventScrollReset:r?.preventScrollReset}),replace:(e,t,r)=>n.navigate(e,{replace:!0,state:t,preventScrollReset:r?.preventScrollReset})}),[n]),S=n.basename||`/`,C=y.useMemo(()=>({router:n,navigator:x,static:!1,basename:S}),[n,x,S]),w=y.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return y.useEffect(()=>da(r,n.future),[r,n.future]),y.createElement(y.Fragment,null,y.createElement(Ni.Provider,{value:C},y.createElement(Pi.Provider,{value:i},y.createElement(Oa.Provider,{value:g.current},y.createElement(Da.Provider,{value:c},y.createElement(pa,{basename:S,location:i.location,navigationType:i.historyAction,navigator:x,future:w},i.initialized||n.future.v7_partialHydration?y.createElement(Fa,{routes:n.routes,future:n.future,state:i}):t))))),null)}var Fa=y.memo(Ia);function Ia(e){let{routes:t,future:n,state:r}=e;
9return Ji(t,void 0,r,n)}var La=typeof window<`u`&&window.document!==void 0&&window.document.createElement!==void 0,Ra=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,za=y.forwardRef(function(e,t){let{onClick:n,relative:r,reloadDocument:i,replace:a,state:o,target:s,to:c,preventScrollReset:l,viewTransition:u}=e,d=_a(e,Sa),{basename:f}=y.useContext(Fi),p,m=!1;if(typeof c==`string`&&Ra.test(c)&&(p=c,La))try{let e=new URL(window.location.href),t=c.startsWith(`//`)?new URL(e.protocol+c):new URL(c),n=sr(t.pathname,f);t.origin===e.origin&&n!=null?c=n+t.search+t.hash:m=!0}catch{}let h=zi(c,{relative:r}),g=Ha(c,{replace:a,state:o,target:s,preventScrollReset:l,relative:r,viewTransition:u});function _(e){n&&n(e),e.defaultPrevented||g(e)}return y.createElement(`a`,ga({},d,{href:p||h,onClick:m||i?n:_,ref:t,target:s}))}),Ba;(function(e){e.UseScrollRestoration=`useScrollRestoration`,e.UseSubmit=`useSubmit`,e.UseSubmitFetcher=`useSubmitFetcher`,e.UseFetcher=`useFetcher`,e.useViewTransitionState=`useViewTransitionState`})(Ba||={});var Va;(function(e){e.UseFetcher=`useFetcher`,e.UseFetchers=`useFetchers`,e.UseScrollRestoration=`useScrollRestoration`})(Va||={});function Ha(e,t){let{target:n,replace:r,state:i,preventScrollReset:a,relative:o,viewTransition:s}=t===void 0?{}:t,c=Wi(),l=Vi(),u=qi(e,{relative:o});return y.useCallback(t=>{if(ya(t,n)){t.preventDefault();let n=r===void 0?Fn(l)===Fn(u):r;c(e,{replace:n,state:i,preventScrollReset:a,relative:o,viewTransition:s})}},[l,c,u,r,i,n,e,a,o,s])}function Ua(e){let t=y.useRef(ba(e)),n=y.useRef(!1),r=Vi(),i=y.useMemo(()=>xa(r.search,n.current?null:t.current),[r.search]),a=Wi();return[i,y.useCallback((e,t)=>{let r=ba(typeof e==`function`?e(i):e);n.current=!0,a(`?`+r,t)},[a,i])]}function Wa(){if(console&&console.warn){var e=[...arguments];Qa(e[0])&&(e[0]=`react-i18next:: ${e[0]}`),console.warn(...e)}}var Ga={};function Ka(){var e=[...arguments];Qa(e[0])&&Ga[e[0]]||(Qa(e[0])&&(Ga[e[0]]=new Date),Wa(...e))}var qa=(e,t)=>()=>{if(e.isInitialized)t();else{let n=()=>{setTimeout(()=>{e.off(`initialized`,n)},0),t()};e.on(`initialized`,n)}},Ja=(e,t,n)=>{e.loadNamespaces(t,qa(e,n))},Ya=(e,t,n,r)=>{Qa(n)&&(n=[n]),n.forEach(t=>{e.options.ns.indexOf(t)<0&&e.options.ns.push(t)}),e.loadLanguages(t,qa(e,r))},Xa=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=t.languages[0],i=t.options?t.options.fallbackLng:!1,a=t.languages[t.languages.length-1];if(r.toLowerCase()===`cimode`)return!0;let o=(e,n)=>{let r=t.services.backendConnector.state[`${e}|${n}`];return r===-1||r===2};return n.bindI18n&&n.bindI18n.indexOf(`languageChanging`)>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!o(t.isLanguageChangingTo,e)?!1:!!(t.hasResourceBundle(r,e)||!t.services.backendConnector.backend||t.options.resources&&!t.options.partialBundledLanguages||o(r,e)&&(!i||o(a,e)))},Za=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return!t.languages||!t.languages.length?(Ka(`i18n.languages were undefined or empty`,t.languages),!0):t.options.ignoreJSONStructure===void 0?Xa(e,t,n):t.hasLoadedNamespace(e,{lng:n.lng,precheck:(t,r)=>{if(n.bindI18n&&n.bindI18n.indexOf(`languageChanging`)>-1&&t.services.backendConnector.backend&&t.isLanguageChangingTo&&!r(t.isLanguageChangingTo,e))return!1}})},Qa=e=>typeof e==`string`,$a=e=>typeof e==`object`&&!!e,eo=/&(?:amp|#38|lt|#60|gt|#62|apos|#39|quot|#34|nbsp|#160|copy|#169|reg|#174|hellip|#8230|#x2F|#47);/g,to={"&amp;":`&`,"&#38;":`&`,"&lt;":`<`,"&#60;":`<`,"&gt;":`>`,"&#62;":`>`,"&apos;":`'`,"&#39;":`'`,"&quot;":`"`,"&#34;":`"`,"&nbsp;":` `,"&#160;":` `,"&copy;":`©`,"&#169;":`©`,"&reg;":`®`,"&#174;":`®`,"&hellip;":`…`,"&#8230;":`…`,"&#x2F;":`/`,"&#47;":`/`},no=e=>to[e],ro={bindI18n:`languageChanged`,bindI18nStore:``,transEmptyNodeValue:``,transSupportBasicHtmlNodes:!0,transWrapTextNodes:``,transKeepBasicHtmlNodesFor:[`br`,`strong`,`i`,`p`],useSuspense:!0,unescape:e=>e.replace(eo,no)},io=function(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};ro={...ro,...e}},ao=()=>ro,oo,so=e=>{oo=e},co=()=>oo,lo={type:`3rdParty`,init(e){io(e.options.react),so(e)}},uo=(0,y.createContext)(),fo=class{constructor(){this.usedNamespaces={}}
9addUsedNamespaces(e){e.forEach(e=>{this.usedNamespaces[e]||(this.usedNamespaces[e]=!0)})}getUsedNamespaces=()=>Object.keys(this.usedNamespaces)},po=(e,t)=>{let n=(0,y.useRef)();return(0,y.useEffect)(()=>{n.current=t?n.current:e},[e,t]),n.current},mo=(e,t,n,r)=>e.getFixedT(t,n,r),ho=(e,t,n,r)=>(0,y.useCallback)(mo(e,t,n,r),[e,t,n,r]),go=function(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},{i18n:n}=t,{i18n:r,defaultNS:i}=(0,y.useContext)(uo)||{},a=n||r||co();if(a&&!a.reportNamespaces&&(a.reportNamespaces=new fo),!a){Ka(`You will need to pass in an i18next instance by using initReactI18next`);let e=(e,t)=>Qa(t)?t:$a(t)&&Qa(t.defaultValue)?t.defaultValue:Array.isArray(e)?e[e.length-1]:e,t=[e,{},!1];return t.t=e,t.i18n={},t.ready=!1,t}a.options.react&&a.options.react.wait!==void 0&&Ka(`It seems you are still using the old wait option, you may migrate to the new useSuspense behaviour.`);let o={...ao(),...a.options.react,...t},{useSuspense:s,keyPrefix:c}=o,l=e||i||a.options&&a.options.defaultNS;l=Qa(l)?[l]:l||[`translation`],a.reportNamespaces.addUsedNamespaces&&a.reportNamespaces.addUsedNamespaces(l);let u=(a.isInitialized||a.initializedStoreOnce)&&l.every(e=>Za(e,a,o)),d=ho(a,t.lng||null,o.nsMode===`fallback`?l:l[0],c),f=()=>d,p=()=>mo(a,t.lng||null,o.nsMode===`fallback`?l:l[0],c),[m,h]=(0,y.useState)(f),g=l.join();t.lng&&(g=`${t.lng}${g}`);let _=po(g),v=(0,y.useRef)(!0);(0,y.useEffect)(()=>{let{bindI18n:e,bindI18nStore:n}=o;v.current=!0,!u&&!s&&(t.lng?Ya(a,t.lng,l,()=>{v.current&&h(p)}):Ja(a,l,()=>{v.current&&h(p)})),u&&_&&_!==g&&v.current&&h(p);let r=()=>{v.current&&h(p)};return e&&a&&a.on(e,r),n&&a&&a.store.on(n,r),()=>{v.current=!1,e&&a&&e.split(` `).forEach(e=>a.off(e,r)),n&&a&&n.split(` `).forEach(e=>a.store.off(e,r))}},[a,g]),(0,y.useEffect)(()=>{v.current&&u&&h(f)},[a,c,u]);let b=[m,a,u];if(b.t=m,b.i18n=a,b.ready=u,u||!u&&!s)return b;throw new Promise(e=>{t.lng?Ya(a,t.lng,l,()=>e()):Ja(a,l,()=>e())})},_o=(e,t)=>t===`en`?(0,N.default)(e).format(`MM/DD/YYYY`):(0,N.default)(e).format(`DD/MM/YYYY`),vo=e=>_o((0,N.default)(),e),yo=()=>[`pt`,`en`,`es`],bo=()=>(0,N.default)(),xo=e=>!!(e.foundWord||e.gaveUp||e.numberOfAttempts>0),So=(e,t)=>{function n(e){if(!(!e||!xo(e)))return e.foundWord?`won`:e.gaveUp?`gaveUp`:`started`}if(!e)return{};let r={};return Object.keys(e[t]).forEach(i=>{let a=e[t][i],o=n(a);o&&(r[i]=o)}),r},Co=(e,t)=>e?!t||e.foundWord&&!t.foundWord?e:!e.foundWord&&t.foundWord?t:e.gaveUp&&!t.gaveUp?e:!e.gaveUp&&t.gaveUp?t:e.numberOfAttempts>=t.numberOfAttempts?e:t:t,wo=()=>{[`en`,`pt`,`es`].forEach(e=>{localStorage.setItem(`contexto-games-${e}`,`{}`)})},To=e=>({gameId:e.gameId,guessHistory:e.guessHistory,lastGuess:e.lastGuess,foundWord:e.foundWord,numberOfTips:e.numberOfTips,numberOfAttempts:e.numberOfAttempts,gaveUp:e.gaveUp,postGameHistory:e.postGameHistory}),Eo=e=>{if(e)return{gameId:e.gameId||0,guessHistory:e.guessHistory||[],lastGuess:e.lastGuess||null,foundWord:e.foundWord||``,numberOfTips:e.numberOfTips||0,numberOfAttempts:e.numberOfAttempts||0,gaveUp:e.gaveUp||``,postGameHistory:e.postGameHistory||[]}},Do=e=>`contexto-games-${e}`,Oo=e=>{let t=Do(e);try{let e=localStorage.getItem(t);return e?JSON.parse(e):{}}catch(e){return console.error(`Failed to read from localStorage`,e),{}}},ko=(e,t)=>{let n=Do(e);try{localStorage.setItem(n,JSON.stringify(t))}catch(e){console.error(`Failed to write to localStorage`,e)}},Ao={readGameData:(e,t)=>{e=String(e);try{return Oo(t)[e]||void 0}catch(e){console.error(`Failed to read game data from localStorage`,e);return}},writeGameData:(e,t,n)=>{e=String(e);try{let r=Oo(n);r[e]=t,ko(n,r)}catch(e){console.error(`Failed to write game data to localStorage`,e)}},deleteGameData:(e,t)=>{e=String(e);try{let n=Oo(t);if(!n)return;n.hasOwnProperty(e)&&(delete n[e],ko(t,n))}catch(e){console.error(`Failed to delete game data from localStorage`,e)}},readAllGameData:()=>{try{let e={};return[`pt`,`en`,`es`].forEach(t=>{e[t]=Oo(t)}),e}catch(e){return console.error(`Failed to read all game data from localStorage`,e),{}}}},jo=function(e){let t=[],n=0;for(let r=0;r<e.length;r++){let i=e.charCodeAt(r);i<128?t[n++]=i:i<2048?(t[n++]=i>>6|192,t[n++]=i&63|128):(i&64512)==55296&&r+1<e.length&&(e.charCodeAt(r+1)&64512)==56320?(i=65536+((i&1023)<<10)+(e.charCodeAt(++r)&1023),t[n++]=i>>18|240,t[n++]=i>>12&63|128,t[n++]=i>>6&63|128,t[n++]=i&63|128):(t[n++]=i>>12|224,t[n++]=i>>6&63|128,t[n++]=i&63|128)}return t},Mo=function(e){let t=[],n=0,r=0;for(;n<e.length;){let i=e[n++];if(i<128)t[r++]=String.fromCharCode(i);else if(i>191&&i<224){let a=e[n++];t[r++]=String.fromCharCode((i&31)<<6|a&63)}else if(i>239&&i<365){let a=e[n++],o=e[n++],s=e[n++],c=((i&7)<<18|(a&63)<<12|(o&63)<<6|s&63)-65536;t[r++]=String.fromCharCode(55296+(c>>10)),t[r++]=String.fromCharCode(56320+(c&1023))}else{let a=e[n++],o=e[n++];t[r++]=String.fromCharCode((i&15)<<12|(a&63)<<6|o&63)}}return t.join(``)},No={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(e,t){if(!Array.isArray(e))throw Error(`encodeByteArray takes an array as a parameter`);this.init_();let n=t?this.byteToCharMapWebSafe_:this.byteToCharMap_,r=[];for(let t=0;t<e.length;t+=3){let i=e[t],a=t+1<e.length,o=a?e[t+1]:0,s=t+2<e.length,c=s?e[t+2]:0,l=i>>2,u=(i&3)<<4|o>>4,d=(o&15)<<2|c>>6,f=c&63;s||(f=64,a||(d=64)),r.push(n[l],n[u],n[d],n[f])}return r.join(``)},encodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?btoa(e):this.encodeByteArray(jo(e),t)},decodeString(e,t){return this.HAS_NATIVE_SUPPORT&&!t?atob(e):Mo(this.decodeStringToByteArray(e,t))},decodeStringToByteArray(e,t){this.init_();let n=t?this.charToByteMapWebSafe_:this.charToByteMap_,r=[];for(let t=0;t<e.length;){let i=n[e.charAt(t++)],a=t<e.length?n[e.charAt(t)]:0;++t;let o=t<e.length?n[e.charAt(t)]:64;++t;let s=t<e.length?n[e.charAt(t)]:64;if(++t,i==null||a==null||o==null||s==null)throw new Po;let c=i<<2|a>>4;if(r.push(c),o!==64){let e=a<<4&240|o>>2;if(r.push(e),s!==64){let e=o<<6&192|s;
9r.push(e)}}}return r},init_(){if(!this.byteToCharMap_){this.byteToCharMap_={},this.charToByteMap_={},this.byteToCharMapWebSafe_={},this.charToByteMapWebSafe_={};for(let e=0;e<this.ENCODED_VALS.length;e++)this.byteToCharMap_[e]=this.ENCODED_VALS.charAt(e),this.charToByteMap_[this.byteToCharMap_[e]]=e,this.byteToCharMapWebSafe_[e]=this.ENCODED_VALS_WEBSAFE.charAt(e),this.charToByteMapWebSafe_[this.byteToCharMapWebSafe_[e]]=e,e>=this.ENCODED_VALS_BASE.length&&(this.charToByteMap_[this.ENCODED_VALS_WEBSAFE.charAt(e)]=e,this.charToByteMapWebSafe_[this.ENCODED_VALS.charAt(e)]=e)}}},Po=class extends Error{constructor(){super(...arguments),this.name=`DecodeBase64StringError`}},Fo=function(e){let t=jo(e);return No.encodeByteArray(t,!0)},Io=function(e){return Fo(e).replace(/\./g,``)},Lo=function(e){try{return No.decodeString(e,!0)}catch(e){console.error(`base64Decode failed: `,e)}return null};function Ro(){if(typeof self<`u`)return self;if(typeof window<`u`)return window;if(typeof global<`u`)return global;throw Error(`Unable to locate global object.`)}var zo=()=>Ro().__FIREBASE_DEFAULTS__,Bo=()=>
9{if(typeof process>`u`)return;let e={}.__FIREBASE_DEFAULTS__;if(e)return JSON.parse(e)},z=()=>{if(typeof document>`u`)return;let e;try{e=document.cookie.match(/__FIREBASE_DEFAULTS__=([^;]+)/)}catch{return}let t=e&&Lo(e[1]);return t&&JSON.parse(t)},Vo=()=>{try{return zo()||Bo()||z()}catch(e){console.info(`Unable to get __FIREBASE_DEFAULTS__ due to: ${e}`);return}},Ho=e=>Vo()?.emulatorHosts?.[e],Uo=e=>{let t=Ho(e);if(!t)return;let n=t.lastIndexOf(`:`);if(n<=0||n+1===t.length)throw Error(`Invalid host ${t} with no separate hostname and port!`);let r=parseInt(t.substring(n+1),10);return t[0]===`[`?[t.substring(1,n-1),r]:[t.substring(0,n),r]},Wo=()=>Vo()?.config,Go=e=>Vo()?.[`_${e}`],Ko=class{constructor(){this.reject=()=>{},this.resolve=()=>{},this.promise=new Promise((e,t)=>{this.resolve=e,this.reject=t})}wrapCallback(e){return(t,n)=>{t?this.reject(t):this.resolve(n),typeof e==`function`&&(this.promise.catch(()=>{}),e.length===1?e(t):e(t,n))}}};function qo(e,t){if(e.uid)throw Error(`The "uid" field is no longer supported by mockUserToken. Please use "sub" instead for Firebase Auth User ID.`);let n={alg:`none`,type:`JWT`},r=t||`demo-project`,i=e.iat||0,a=e.sub||e.user_id;if(!a)throw Error(`mockUserToken must contain 'sub' or 'user_id' field!`);let o=Object.assign({iss:`https://securetoken.google.com/${r}`,aud:r,iat:i,exp:i+3600,auth_time:i,sub:a,user_id:a,firebase:{sign_in_provider:`custom`,identities:{}}},e);return[Io(JSON.stringify(n)),Io(JSON.stringify(o)),``].join(`.`)}function Jo(){return typeof navigator<`u`&&typeof navigator.userAgent==`string`?navigator.userAgent:``}function Yo(){return typeof window<`u`&&!!(window.cordova||window.phonegap||window.PhoneGap)&&/ios|iphone|ipod|ipad|android|blackberry|iemobile/i.test(Jo())}function Xo(){let e=Vo()?.forceEnvironment;if(e===`node`)return!0;if(e===`browser`)return!1;try{return Object.prototype.toString.call(global.process)===`[object process]`}catch{return!1}}function Zo(){return typeof navigator<`u`&&navigator.userAgent===`Cloudflare-Workers`}function Qo(){let e=typeof chrome==`object`?chrome.runtime:typeof browser==`object`?browser.runtime:void 0;return typeof e==`object`&&e.id!==void 0}function $o(){return typeof navigator==`object`&&navigator.product===`ReactNative`}function es(){let e=Jo();return e.indexOf(`MSIE `)>=0||e.indexOf(`Trident/`)>=0}function ts(){return!Xo()&&!!navigator.userAgent&&navigator.userAgent.includes(`Safari`)&&!navigator.userAgent.includes(`Chrome`)}function ns(){try{return typeof indexedDB==`object`}catch{return!1}}function rs(){return new Promise((e,t)=>{try{let n=!0,r=`validate-browser-context-for-indexeddb-analytics-module`,i=self.indexedDB.open(r);i.onsuccess=()=>{i.result.close(),n||self.indexedDB.deleteDatabase(r),e(!0)},i.onupgradeneeded=()=>{n=!1},i.onerror=()=>{t(i.error?.message||``)}}catch(e){t(e)}})}var is=`FirebaseError`,as=class e extends Error{constructor(t,n,r){super(n),this.code=t,this.customData=r,this.name=is,Object.setPrototypeOf(this,e.prototype),Error.captureStackTrace&&Error.captureStackTrace(this,os.prototype.create)}},os=class{constructor(e,t,n){this.service=e,this.serviceName=t,this.errors=n}create(e,...t){let n=t[0]||{},r=`${this.service}/${e}`,i=this.errors[e],a=i?ss(i,n):`Error`;return new as(r,`${this.serviceName}: ${a} (${r}).`,n)}};function ss(e,t){return e.replace(cs,(e,n)=>{let r=t[n];return r==null?`<${n}?>`:String(r)})}var cs=/\{\$([^}]+)}/g;function ls(e){return JSON.parse(e)}var us=function(e){let t={},n={},r={},i=``;try{let a=e.split(`.`);t=ls(Lo(a[0])||``),n=ls(Lo(a[1])||``),i=a[2],r=n.d||{},delete n.d}catch{}return{header:t,claims:n,data:r,signature:i}},ds=function(e){let t=us(e).claims;return typeof t==`object`&&t.hasOwnProperty(`iat`)?t.iat:null};function fs(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}function ps(e,t){if(e===t)return!0;let n=Object.keys(e),r=Object.keys(t);for(let i of n){if(!r.includes(i))return!1;let n=e[i],a=t[i];if(ms(n)&&ms(a)){if(!ps(n,a))return!1}else if(n!==a)return!1}for(let e of r)if(!n.includes(e))return!1;return!0}function ms(e){return typeof e==`object`&&!!e}function hs(e){let t=[];
9for(let[n,r]of Object.entries(e))Array.isArray(r)?r.forEach(e=>{t.push(encodeURIComponent(n)+`=`+encodeURIComponent(e))}):t.push(encodeURIComponent(n)+`=`+encodeURIComponent(r));return t.length?`&`+t.join(`&`):``}function gs(e){let t={};return e.replace(/^\?/,``).split(`&`).forEach(e=>{if(e){let[n,r]=e.split(`=`);t[decodeURIComponent(n)]=decodeURIComponent(r)}}),t}function _s(e){let t=e.indexOf(`?`);if(!t)return``;let n=e.indexOf(`#`,t);return e.substring(t,n>0?n:void 0)}function vs(e,t){let n=new ys(e,t);return n.subscribe.bind(n)}var ys=class{constructor(e,t){this.observers=[],this.unsubscribes=[],this.observerCount=0,this.task=Promise.resolve(),this.finalized=!1,this.onNoObservers=t,this.task.then(()=>{e(this)}).catch(e=>{this.error(e)})}next(e){this.forEachObserver(t=>{t.next(e)})}error(e){this.forEachObserver(t=>{t.error(e)}),this.close(e)}complete(){this.forEachObserver(e=>{e.complete()}),this.close()}subscribe(e,t,n){let r;if(e===void 0&&t===void 0&&n===void 0)throw Error(`Missing Observer.`);r=bs(e,[`next`,`error`,`complete`])?e:{next:e,error:t,complete:n},r.next===void 0&&(r.next=xs),r.error===void 0&&(r.error=xs),r.complete===void 0&&(r.complete=xs);let i=this.unsubscribeOne.bind(this,this.observers.length);return this.finalized&&this.task.then(()=>{try{this.finalError?r.error(this.finalError):r.complete()}catch{}}),this.observers.push(r),i}unsubscribeOne(e){this.observers!==void 0&&this.observers[e]!==void 0&&(delete this.observers[e],--this.observerCount,this.observerCount===0&&this.onNoObservers!==void 0&&this.onNoObservers(this))}forEachObserver(e){if(!this.finalized)for(let t=0;t<this.observers.length;t++)this.sendOne(t,e)}sendOne(e,t){this.task.then(()=>{if(this.observers!==void 0&&this.observers[e]!==void 0)try{t(this.observers[e])}catch(e){typeof console<`u`&&console.error&&console.error(e)}})}close(e){this.finalized||(this.finalized=!0,e!==void 0&&(this.finalError=e),this.task.then(()=>{this.observers=void 0,this.onNoObservers=void 0}))}};function bs(e,t){if(typeof e!=`object`||!e)return!1;for(let n of t)if(n in e&&typeof e[n]==`function`)return!0;return!1}function xs(){}var Ss=function(){return`xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx`.replace(/[xy]/g,e=>{let t=Math.random()*16|0;return(e===`x`?t:t&3|8).toString(16)})},Cs=1e3,ws=2,Ts=144e5,Es=.5;function Ds(e,t=Cs,n=ws){let r=t*n**+e,i=Math.round(Es*r*(Math.random()-.5)*2);return Math.min(Ts,r+i)}function Os(e){return e&&e._delegate?e._delegate:e}var ks=class{constructor(e,t,n){this.name=e,this.instanceFactory=t,this.type=n,this.multipleInstances=!1,this.serviceProps={},this.instantiationMode=`LAZY`,this.onInstanceCreated=null}setInstantiationMode(e){return this.instantiationMode=e,this}setMultipleInstances(e){return this.multipleInstances=e,this}setServiceProps(e){return this.serviceProps=e,this}setInstanceCreatedCallback(e){return this.onInstanceCreated=e,this}},As=`[DEFAULT]`,js=class{constructor(e,t){this.name=e,this.container=t,this.component=null,this.instances=new Map,this.instancesDeferred=new Map,this.instancesOptions=new Map,this.onInitCallbacks=new Map}get(e){let t=this.normalizeInstanceIdentifier(e);if(!this.instancesDeferred.has(t)){let e=new Ko;if(this.instancesDeferred.set(t,e),this.isInitialized(t)||this.shouldAutoInitialize())try{let n=this.getOrInitializeService({instanceIdentifier:t});n&&e.resolve(n)}catch{}}return this.instancesDeferred.get(t).promise}getImmediate(e){let t=this.normalizeInstanceIdentifier(e?.identifier),n=e?.optional??!1;if(this.isInitialized(t)||this.shouldAutoInitialize())try{return this.getOrInitializeService({instanceIdentifier:t})}catch(e){if(n)return null;throw e}if(n)return null;throw Error(`Service ${this.name} is not available`)}getComponent(){return this.component}setComponent(e){if(e.name!==this.name)throw Error(`Mismatching Component ${e.name} for Provider ${this.name}.`);if(this.component)throw Error(`Component for ${this.name} has already been provided`);if(this.component=e,this.shouldAutoInitialize()){if(Ns(e))try{this.getOrInitializeService({instanceIdentifier:As})}catch{}for(let[e,t]of this.instancesDeferred.entries()){let n=this.normalizeInstanceIdentifier(e);try{let e=this.getOrInitializeService({instanceIdentifier:n});t.resolve(e)}catch{}}}}clearInstance(e=As){this.instancesDeferred.delete(e),this.instancesOptions.delete(e),this.instances.delete(e)}async delete(){let e=Array.from(this.instances.values());await Promise.all([...e.filter(e=>`INTERNAL`in e).map(e=>e.INTERNAL.delete()),...e.filter(e=>`_delete`in e).map(e=>e._delete())])}isComponentSet(){return this.component!=null}isInitialized(e=As){return this.instances.has(e)}getOptions(e=As){return this.instancesOptions.get(e)||{}}initialize(e={}){let{options:t={}}=e,n=this.normalizeInstanceIdentifier(e.instanceIdentifier);if(this.isInitialized(n))throw Error(`${this.name}(${n}) has already been initialized`);if(!this.isComponentSet())throw Error(`Component ${this.name} has not been registered yet`);let r=this.getOrInitializeService({instanceIdentifier:n,options:t});for(let[e,t]of this.instancesDeferred.entries())n===this.normalizeInstanceIdentifier(e)&&t.resolve(r);return r}onInit(e,t){let n=this.normalizeInstanceIdentifier(t),r=this.onInitCallbacks.get(n)??new Set;r.add(e),this.onInitCallbacks.set(n,r);let i=this.instances.get(n);return i&&e(i,n),()=>{r.delete(e)}}invokeOnInitCallbacks(e,t){let n=this.onInitCallbacks.get(t);if(n)for(let r of n)try{r(e,t)}catch{}}getOrInitializeService({instanceIdentifier:e,options:t={}}){let n=this.instances.get(e);if(!n&&this.component&&(n=this.component.instanceFactory(this.container,{instanceIdentifier:Ms(e),options:t}),this.instances.set(e,n),this.instancesOptions.set(e,t),this.invokeOnInitCallbacks(n,e),this.component.onInstanceCreated))try{this.component.onInstanceCreated(this.container,e,n)}catch{}return n||null}normalizeInstanceIdentifier(e=As){return this.component?this.component.multipleInstances?e:As:e}shouldAutoInitialize(){return!!this.component&&this.component.instantiationMode!==`EXPLICIT`}};function Ms(e){return e===As?void 0:e}function Ns(e){return e.instantiationMode===`EAGER`}var Ps=class{constructor(e){this.name=e,this.providers=new Map}addComponent(e){let t=this.getProvider(e.name);if(t.isComponentSet())throw Error(`Component ${e.name} has already been registered with ${this.name}`);t.setComponent(e)}addOrOverwriteComponent(e){this.getProvider(e.name).isComponentSet()&&this.providers.delete(e.name),this.addComponent(e)}getProvider(e){if(this.providers.has(e))return this.providers.get(e);let t=new js(e,this);return this.providers.set(e,t),t}getProviders(){return Array.from(this.providers.values())}},Fs=[],Is;(function(e){e[e.DEBUG=0]=`DEBUG`,e[e.VERBOSE=1]=`VERBOSE`,e[e.INFO=2]=`INFO`,e[e.WARN=3]=`WARN`,e[e.ERROR=4]=`ERROR`,e[e.SILENT=5]=`SILENT`})(Is||={});var Ls={debug:Is.DEBUG,verbose:Is.VERBOSE,info:Is.INFO,warn:Is.WARN,error:Is.ERROR,silent:Is.SILENT},Rs=Is.INFO,zs={[Is.DEBUG]:`log`,[Is.VERBOSE]:`log`,[Is.INFO]:`info`,[Is.WARN]:`warn`,[Is.ERROR]:`error`},Bs=(e,t,...n)=>{if(t<e.logLevel)return;let r=new Date().toISOString(),i=zs[t];if(i)console[i](`[${r}]  ${e.name}:`,...n);
vendor: 9,157 bytes, line 9
9else throw Error(`Attempted to log a message with an invalid logType (value: ${t})`)},Vs=class{constructor(e){this.name=e,this._logLevel=Rs,this._logHandler=Bs,this._userLogHandler=null,Fs.push(this)}get logLevel(){return this._logLevel}set logLevel(e){if(!(e in Is))throw TypeError(`Invalid value "${e}" assigned to \`logLevel\``);this._logLevel=e}setLogLevel(e){this._logLevel=typeof e==`string`?Ls[e]:e}get logHandler(){return this._logHandler}set logHandler(e){if(typeof e!=`function`)throw TypeError("Value assigned to `logHandler` must be a function");this._logHandler=e}get userLogHandler(){return this._userLogHandler}set userLogHandler(e){this._userLogHandler=e}debug(...e){this._userLogHandler&&this._userLogHandler(this,Is.DEBUG,...e),this._logHandler(this,Is.DEBUG,...e)}log(...e){this._userLogHandler&&this._userLogHandler(this,Is.VERBOSE,...e),this._logHandler(this,Is.VERBOSE,...e)}info(...e){this._userLogHandler&&this._userLogHandler(this,Is.INFO,...e),this._logHandler(this,Is.INFO,...e)}warn(...e){this._userLogHandler&&this._userLogHandler(this,Is.WARN,...e),this._logHandler(this,Is.WARN,...e)}error(...e){this._userLogHandler&&this._userLogHandler(this,Is.ERROR,...e),this._logHandler(this,Is.ERROR,...e)}},Hs=(e,t)=>t.some(t=>e instanceof t),Us,Ws;function Gs(){return Us||=[IDBDatabase,IDBObjectStore,IDBIndex,IDBCursor,IDBTransaction]}function Ks(){return Ws||=[IDBCursor.prototype.advance,IDBCursor.prototype.continue,IDBCursor.prototype.continuePrimaryKey]}var qs=new WeakMap,Js=new WeakMap,Ys=new WeakMap,Xs=new WeakMap,Zs=new WeakMap;function Qs(e){let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener(`success`,i),e.removeEventListener(`error`,a)},i=()=>{t(ic(e.result)),r()},a=()=>{n(e.error),r()};e.addEventListener(`success`,i),e.addEventListener(`error`,a)});return t.then(t=>{t instanceof IDBCursor&&qs.set(t,e)}).catch(()=>{}),Zs.set(t,e),t}function $s(e){if(Js.has(e))return;let t=new Promise((t,n)=>{let r=()=>{e.removeEventListener(`complete`,i),e.removeEventListener(`error`,a),e.removeEventListener(`abort`,a)},i=()=>{t(),r()},a=()=>{n(e.error||new DOMException(`AbortError`,`AbortError`)),r()};e.addEventListener(`complete`,i),e.addEventListener(`error`,a),e.addEventListener(`abort`,a)});Js.set(e,t)}var ec={get(e,t,n){if(e instanceof IDBTransaction){if(t===`done`)return Js.get(e);if(t===`objectStoreNames`)return e.objectStoreNames||Ys.get(e);if(t===`store`)return n.objectStoreNames[1]?void 0:n.objectStore(n.objectStoreNames[0])}return ic(e[t])},set(e,t,n){return e[t]=n,!0},has(e,t){return e instanceof IDBTransaction&&(t===`done`||t===`store`)||t in e}};function tc(e){ec=e(ec)}function nc(e){return e===IDBDatabase.prototype.transaction&&!(`objectStoreNames`in IDBTransaction.prototype)?function(t,...n){let r=e.call(ac(this),t,...n);return Ys.set(r,t.sort?t.sort():[t]),ic(r)}:Ks().includes(e)?function(...t){return e.apply(ac(this),t),ic(qs.get(this))}:function(...t){return ic(e.apply(ac(this),t))}}function rc(e){return typeof e==`function`?nc(e):(e instanceof IDBTransaction&&$s(e),Hs(e,Gs())?new Proxy(e,ec):e)}function ic(e){if(e instanceof IDBRequest)return Qs(e);if(Xs.has(e))return Xs.get(e);let t=rc(e);return t!==e&&(Xs.set(e,t),Zs.set(t,e)),t}var ac=e=>Zs.get(e);function oc(e,t,{blocked:n,upgrade:r,blocking:i,terminated:a}={}){let o=indexedDB.open(e,t),s=ic(o);return r&&o.addEventListener(`upgradeneeded`,e=>{r(ic(o.result),e.oldVersion,e.newVersion,ic(o.transaction),e)}),n&&o.addEventListener(`blocked`,e=>n(e.oldVersion,e.newVersion,e)),s.then(e=>{a&&e.addEventListener(`close`,()=>a()),i&&e.addEventListener(`versionchange`,e=>i(e.oldVersion,e.newVersion,e))}).catch(()=>{}),s}var sc=[`get`,`getKey`,`getAll`,`getAllKeys`,`count`],cc=[`put`,`add`,`delete`,`clear`],lc=new Map;function uc(e,t){if(!(e instanceof IDBDatabase&&!(t in e)&&typeof t==`string`))return;if(lc.get(t))return lc.get(t);let n=t.replace(/FromIndex$/,``),r=t!==n,i=cc.includes(n);if(!(n in(r?IDBIndex:IDBObjectStore).prototype)||!(i||sc.includes(n)))return;let a=async function(e,...t){let a=this.transaction(e,i?`readwrite`:`readonly`),o=a.store;return r&&(o=o.index(t.shift())),(await Promise.all([o[n](...t),i&&a.done]))[0]};return lc.set(t,a),a}tc(e=>({...e,get:(t,n,r)=>uc(t,n)||e.get(t,n,r),has:(t,n)=>!!uc(t,n)||e.has(t,n)}));var dc=class{constructor(e){this.container=e}getPlatformInfoString(){return this.container.getProviders().map(e=>{if(fc(e)){let t=e.getImmediate();return`${t.library}/${t.version}`}return null}).filter(e=>e).join(` `)}};function fc(e){return e.getComponent()?.type===`VERSION`}var pc=`@firebase/app`,mc=`0.10.13`,hc=new Vs(`@firebase/app`),gc=`@firebase/app-compat`,_c=`@firebase/analytics-compat`,vc=`@firebase/analytics`,yc=`@firebase/app-check-compat`,bc=`@firebase/app-check`,xc=`@firebase/auth`,Sc=`@firebase/auth-compat`,Cc=`@firebase/database`,B=`@firebase/data-connect`,wc=`@firebase/database-compat`,Tc=`@firebase/functions`,Ec=`@firebase/functions-compat`,Dc=`@firebase/installations`,Oc=`@firebase/installations-compat`,kc=`@firebase/messaging`,Ac=`@firebase/messaging-compat`,jc=`@firebase/performance`,Mc=`@firebase/performance-compat`,Nc=`@firebase/remote-config`,Pc=`@firebase/remote-config-compat`,Fc=`@firebase/storage`,Ic=`@firebase/storage-compat`,Lc=`@firebase/firestore`,Rc=`@firebase/vertexai-preview`,zc=`@firebase/firestore-compat`,Bc=`firebase`,Vc=`10.14.1`,Hc=`[DEFAULT]`,Uc={[pc]:`fire-core`,[gc]:`fire-core-compat`,[vc]:`fire-analytics`,[_c]:`fire-analytics-compat`,[bc]:`fire-app-check`,[yc]:`fire-app-check-compat`,[xc]:`fire-auth`,[Sc]:`fire-auth-compat`,[Cc]:`fire-rtdb`,[B]:`fire-data-connect`,[wc]:`fire-rtdb-compat`,[Tc]:`fire-fn`,[Ec]:`fire-fn-compat`,[Dc]:`fire-iid`,[Oc]:`fire-iid-compat`,[kc]:`fire-fcm`,[Ac]:`fire-fcm-compat`,[jc]:`fire-perf`,[Mc]:`fire-perf-compat`,[Nc]:`fire-rc`,[Pc]:`fire-rc-compat`,[Fc]:`fire-gcs`,[Ic]:`fire-gcs-compat`,[Lc]:`fire-fst`,[zc]:`fire-fst-compat`,[Rc]:`fire-vertex`,"fire-js":`fire-js`,[Bc]:`fire-js-all`},Wc=new Map,Gc=new Map,Kc=new Map;function qc(e,t){try{e.container.addComponent(t)}catch(n){hc.debug(`Component ${t.name} failed to register with FirebaseApp ${e.name}`,n)}}function Jc(e){let t=e.name;if(Kc.has(t))return hc.debug(`There were multiple attempts to register component ${t}.`),!1;Kc.set(t,e);for(let t of Wc.values())qc(t,e);for(let t of Gc.values())qc(t,e);return!0}function Yc(e,t){let n=e.container.getProvider(`heartbeat`).getImmediate({optional:!0});return n&&n.triggerHeartbeat(),e.container.getProvider(t)}function Xc(e){return e.settings!==void 0}var Zc=new os(`app`,`Firebase`,{"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.`,"invalid-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.`}),Qc=class{constructor(e,t,n){this._isDeleted=!1,this._options=Object.assign({},e),this._config=Object.assign({},t),this._name=t.name,this._automaticDataCollectionEnabled=t.automaticDataCollectionEnabled,this._container=n,this.container.addComponent(new ks(`app`,()=>this,`PUBLIC`))}get automaticDataCollectionEnabled(){return this.checkDestroyed(),this._automaticDataCollectionEnabled}set automaticDataCollectionEnabled(e){this.checkDestroyed(),this._automaticDataCollectionEnabled=e}get name(){return this.checkDestroyed(),this._name}get options(){return this.checkDestroyed(),this._options}get config(){return this.checkDestroyed(),this._config}get container(){return this._container}get isDeleted(){return this._isDeleted}set isDeleted(e){this._isDeleted=e}checkDestroyed(){if(this.isDeleted)throw Zc.create(`app-deleted`,{appName:this._name})}},$c=Vc;function el(e,t={}){let n=e;typeof t!=`object`&&(t={name:t});let r=Object.assign({name:Hc,automaticDataCollectionEnabled:!1},t),i=r.name;if(typeof i!=`string`||!i)throw Zc.create(`bad-app-name`,{appName:String(i)});if(n||=Wo(),!n)throw Zc.create(`no-options`);let a=Wc.get(i);if(a){if(ps(n,a.options)&&ps(r,a.config))return a;throw Zc.create(`duplicate-app`,{appName:i})}let o=new Ps(i);for(let e of Kc.values())o.addComponent(e);let s=new Qc(n,r,o);return Wc.set(i,s),s}function tl(e=Hc){let t=Wc.get(e);
9if(!t&&e===`[DEFAULT]`&&Wo())return el();if(!t)throw Zc.create(`no-app`,{appName:e});return t}function nl(e,t,n){let r=Uc[e]??e;n&&(r+=`-${n}`);let i=r.match(/\s|\//),a=t.match(/\s|\//);if(i||a){let e=[`Unable to register library "${r}" with version "${t}":`];i&&e.push(`library name "${r}" contains illegal characters (whitespace or "/")`),i&&a&&e.push(`and`),a&&e.push(`version name "${t}" contains illegal characters (whitespace or "/")`),hc.warn(e.join(` `));return}Jc(new ks(`${r}-version`,()=>({library:r,version:t}),`VERSION`))}var rl=`firebase-heartbeat-database`,il=1,al=`firebase-heartbeat-store`,ol=null;function sl(){return ol||=oc(rl,il,{upgrade:(e,t)=>{if(t===0)try{e.createObjectStore(al)}catch(e){console.warn(e)}}}).catch(e=>{throw Zc.create(`idb-open`,{originalErrorMessage:e.message})}),ol}async function cl(e){try{let t=(await sl()).transaction(al),n=await t.objectStore(al).get(ul(e));return await t.done,n}catch(e){if(e instanceof as)hc.warn(e.message);else{let t=Zc.create(`idb-get`,{originalErrorMessage:e?.message});hc.warn(t.message)}}}async function ll(e,t){try{let n=(await sl()).transaction(al,`readwrite`);await n.objectStore(al).put(t,ul(e)),await n.done}catch(e){if(e instanceof as)hc.warn(e.message);else{let t=Zc.create(`idb-set`,{originalErrorMessage:e?.message});hc.warn(t.message)}}}function ul(e){return`${e.name}!${e.options.appId}`}var dl=1024,fl=2592e6,pl=class{constructor(e){this.container=e,this._heartbeatsCache=null;let t=this.container.getProvider(`app`).getImmediate();this._storage=new gl(t),this._heartbeatsCachePromise=this._storage.read().then(e=>(this._heartbeatsCache=e,e))}async triggerHeartbeat(){try{let e=this.container.getProvider(`platform-logger`).getImmediate().getPlatformInfoString(),t=ml();return this._heartbeatsCache?.heartbeats==null&&(this._heartbeatsCache=await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null)||this._heartbeatsCache.lastSentHeartbeatDate===t||this._heartbeatsCache.heartbeats.some(e=>e.date===t)?void 0:(this._heartbeatsCache.heartbeats.push({date:t,agent:e}),this._heartbeatsCache.heartbeats=this._heartbeatsCache.heartbeats.filter(e=>{let t=new Date(e.date).valueOf();return Date.now()-t<=fl}),this._storage.overwrite(this._heartbeatsCache))}catch(e){hc.warn(e)}}async getHeartbeatsHeader(){try{if(this._heartbeatsCache===null&&await this._heartbeatsCachePromise,this._heartbeatsCache?.heartbeats==null||this._heartbeatsCache.heartbeats.length===0)return``;let e=ml(),{heartbeatsToSend:t,unsentEntries:n}=hl(this._heartbeatsCache.heartbeats),r=Io(JSON.stringify({version:2,heartbeats:t}));return this._heartbeatsCache.lastSentHeartbeatDate=e,n.length>0?(this._heartbeatsCache.heartbeats=n,await this._storage.overwrite(this._heartbeatsCache)):(this._heartbeatsCache.heartbeats=[],this._storage.overwrite(this._heartbeatsCache)),r}catch(e){return hc.warn(e),``}}};function ml(){return new Date().toISOString().substring(0,10)}function hl(e,t=dl){let n=[],r=e.slice();for(let i of e){let e=n.find(e=>e.agent===i.agent);if(!e){if(n.push({agent:i.agent,dates:[i.date]}),_l(n)>t){n.pop();break}}else if(e.dates.push(i.date),_l(n)>t){e.dates.pop();break}r=r.slice(1)}return{heartbeatsToSend:n,unsentEntries:r}}var gl=class{constructor(e){this.app=e,this._canUseIndexedDBPromise=this.runIndexedDBEnvironmentCheck()}async runIndexedDBEnvironmentCheck(){return ns()?rs().then(()=>!0).catch(()=>!1):!1}async read(){if(await this._canUseIndexedDBPromise){let e=await cl(this.app);return e?.heartbeats?e:{heartbeats:[]}}return{heartbeats:[]}}async overwrite(e){if(await this._canUseIndexedDBPromise){let t=await this.read();return ll(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??t.lastSentHeartbeatDate,heartbeats:e.heartbeats})}}async add(e){if(await this._canUseIndexedDBPromise){let t=await this.read();return ll(this.app,{lastSentHeartbeatDate:e.lastSentHeartbeatDate??t.lastSentHeartbeatDate,heartbeats:[...t.heartbeats,...e.heartbeats]})}}};function _l(e){return Io(JSON.stringify({version:2,heartbeats:e})).length}function vl(e){Jc(new ks(`platform-logger`,e=>new dc(e),`PRIVATE`)),Jc(new ks(`heartbeat`,e=>new pl(e),`PRIVATE`)),nl(pc,mc,e),nl(pc,mc,`esm2017`),nl(`fire-js`,``)}vl(``),nl(`firebase`,`10.14.1`,`app`);var yl=new Map,bl={activated:!1,tokenObservers:[]},xl={initialized:!1,enabled:!1};function Sl(e){return yl.get(e)||Object.assign({},bl)}function Cl(e,t){return yl.set(e,t),yl.get(e)}function wl(){return xl}var Tl=`https://content-firebaseappcheck.googleapis.com/v1`,El=`exchangeRecaptchaV3Token`,Dl=`exchangeRecaptchaEnterpriseToken`,Ol=`exchangeDebugToken`,kl={OFFSET_DURATION:3e5,RETRIAL_MIN_WAIT:3e4,RETRIAL_MAX_WAIT:96e4},Al=864e5,jl=class{constructor(e,t,n,r,i){if(this.operation=e,this.retryPolicy=t,this.getWaitDuration=n,this.lowerBound=r,this.up
9perBound=i,this.pending=null,this.nextErrorWaitInterval=r,r>i)throw Error(`Proactive refresh lower bound greater than upper bound!`)}start(){this.nextErrorWaitInterval=this.lowerBound,this.process(!0).catch(()=>{})}stop(){this.pending&&=(this.pending.reject(`cancelled`),null)}isRunning(){return!!this.pending}async process(e){this.stop();try{this.pending=new Ko,this.pending.promise.catch(e=>{}),await Ml(this.getNextRun(e)),this.pending.resolve(),await this.pending.promise,this.pending=new Ko,this.pending.promise.catch(e=>{}),await this.operation(),this.pending.resolve(),await this.pending.promise,this.process(!0).catch(()=>{})}catch(e){this.retryPolicy(e)?this.process(!1).catch(()=>{}):this.stop()}}getNextRun(e){if(e)return this.nextErrorWaitInterval=this.lowerBound,this.getWaitDuration();{let e=this.nextErrorWaitInterval;return this.nextErrorWaitInterval*=2,this.nextErrorWaitInterval>this.upperBound&&(this.nextErrorWaitInterval=this.upperBound),e}}};function Ml(e){return new Promise(t=>{setTimeout(t,e)})}var Nl=new os(`appCheck`,`AppCheck`,{"already-initialized":`You have already called initializeAppCheck() for FirebaseApp {$appName} with different options. To avoid this error, call initializeAppCheck() with the same options as when it was originally called. This will return the already initialized instance.`,"use-before-activation":`App Check is being used before initializeAppCheck() is called for FirebaseApp {$appName}. Call initializeAppCheck() before instantiating other Firebase services.`,"fetch-network-error":`Fetch failed to connect to a network. Check Internet connection. Original error: {$originalErrorMessage}.`,"fetch-parse-error":`Fetch client could not parse response. Original error: {$originalErrorMessage}.`,"fetch-status-error":`Fetch server returned an HTTP error status. HTTP status: {$httpStatus}.`,"storage-open":`Error thrown when opening storage. Original error: {$originalErrorMessage}.`,"storage-get":`Error thrown when reading from storage. Original error: {$originalErrorMessage}.`,"storage-set":`Error thrown when writing to storage. Original error: {$originalErrorMessage}.`,"recaptcha-error":`ReCAPTCHA error.`,throttled:`Requests throttled due to {$httpStatus} error. Attempts allowed again after {$time}`});function Pl(e=!1){return e?self.grecaptcha?.enterprise:self.grecaptcha}function Fl(e){if(!Sl(e).activated)throw Nl.create(`use-before-activation`,{appName:e.name})}function Il(e){let t=Math.round(e/1e3),n=Math.floor(t/86400),r=Math.floor((t-n*3600*24)/3600),i=Math.floor((t-n*3600*24-r*3600)/60),a=t-n*3600*24-r*3600-i*60,o=``;return n&&(o+=Ll(n)+`d:`),r&&(o+=Ll(r)+`h:`),o+=Ll(i)+`m:`+Ll(a)+`s`,o}function Ll(e){return e===0?`00`:e>=10?e.toString():`0`+e}async function Rl({url:e,body:t},n){let r={"Content-Type":`application/json`},i=n.getImmediate({optional:!0});if(i){let e=await i.getHeartbeatsHeader();e&&(r[`X-Firebase-Client`]=e)}let a={method:`POST`,body:JSON.stringify(t),headers:r},o;try{o=await fetch(e,a)}catch(e){throw Nl.create(`fetch-network-error`,{originalErrorMessage:e?.message})}if(o.status!==200)throw Nl.create(`fetch-status-error`,{httpStatus:o.status});let s;try{s=await o.json()}catch(e){throw Nl.create(`fetch-parse-error`,{originalErrorMessage:e?.message})}let c=s.ttl.match(/^([\d.]+)(s)$/);if(!c||!c[2]||isNaN(Number(c[1])))throw Nl.create(`fetch-parse-error`,{originalErrorMessage:`ttl field (timeToLive) is not in standard Protobuf Duration format: ${s.ttl}`});let l=Number(c[1])*1e3,u=Date.now();return{token:s.token,expireTimeMillis:u+l,issuedAtTimeMillis:u}}function zl(e,t){let{projectId:n,appId:r,apiKey:i}=e.options;return{url:`${Tl}/projects/${n}/apps/${r}:${El}?key=${i}`,body:{recaptcha_v3_token:t}}}function Bl(e,t){let{projectId:n,appId:r,apiKey:i}=e.options;return{url:`${Tl}/projects/${n}/apps/${r}:${Dl}?key=${i}`,body:{recaptcha_enterprise_token:t}}}function Vl(e,t){let{projectId:n,appId:r,apiKey:i}=e.options;return{url:`${Tl}/projects/${n}/apps/${r}:${Ol}?key=${i}`,body:{debug_token:t}}}var Hl=`firebase-app-check-database`,Ul=1,Wl=`firebase-app-check-store`,Gl=`debug-token`,Kl=null;function ql(){return Kl||(Kl=new Promise((e,t)=>
9{try{let n=indexedDB.open(Hl,Ul);n.onsuccess=t=>{e(t.target.result)},n.onerror=e=>{t(Nl.create(`storage-open`,{originalErrorMessage:e.target.error?.message}))},n.onupgradeneeded=e=>{let t=e.target.result;e.oldVersion===0&&t.createObjectStore(Wl,{keyPath:`compositeKey`})}}catch(e){t(Nl.create(`storage-open`,{originalErrorMessage:e?.message}))}}),Kl)}function Jl(e){return $l(eu(e))}function Yl(e,t){return Ql(eu(e),t)}function Xl(e){return Ql(Gl,e)}function Zl(){return $l(Gl)}async function Ql(e,t){let n=(await ql()).transaction(Wl,`readwrite`),r=n.objectStore(Wl).put({compositeKey:e,value:t});return new Promise((e,t)=>{r.onsuccess=t=>{e()},n.onerror=e=>{t(Nl.create(`storage-set`,{originalErrorMessage:e.target.error?.message}))}})}async function $l(e){let t=(await ql()).transaction(Wl,`readonly`),n=t.objectStore(Wl).get(e);return new Promise((e,r)=>{n.onsuccess=t=>{let n=t.target.result;e(n?n.value:void 0)},t.onerror=e=>{r(Nl.create(`storage-get`,{originalErrorMessage:e.target.error?.message}))}})}function eu(e){return`${e.options.appId}-${e.name}`}var tu=new Vs(`@firebase/app-check`);async function nu(e){if(ns()){let t;try{t=await Jl(e)}catch(e){tu.warn(`Failed to read token from IndexedDB. Error: ${e}`)}return t}}function V(e,t){return ns()?Yl(e,t).catch(e=>{tu.warn(`Failed to write token to IndexedDB. Error: ${e}`)}):Promise.resolve()}async function ru(){let e;try{e=await Zl()}catch{}if(e)return e;{let e=Ss();return Xl(e).catch(e=>tu.warn(`Failed to persist debug token to IndexedDB. Error: ${e}`)),e}}function iu(){return wl().enabled}async function au(){let e=wl();if(e.enabled&&e.token)return e.token.promise;throw Error(`
10            Can't get debug token in production mode.
11        `)}function ou(){let e=Ro(),t=wl();if(t.initialized=!0,typeof e.FIREBASE_APPCHECK_DEBUG_TOKEN!=`string`&&e.FIREBASE_APPCHECK_DEBUG_TOKEN!==!0)return;t.enabled=!0;let n=new Ko;t.token=n,typeof e.FIREBASE_APPCHECK_DEBUG_TOKEN==`string`?n.resolve(e.FIREBASE_APPCHECK_DEBUG_TOKEN):n.resolve(ru())}var su={error:`UNKNOWN_ERROR`};function cu(e){return No.encodeString(JSON.stringify(e),!1)}async function lu(e,t=!1){let n=e.app;Fl(n);let r=Sl(n),i=r.token,a;if(i&&!gu(i)&&(r.token=void 0,i=void 0),!i){let e=await r.cachedTokenPromise;e&&(gu(e)?i=e:await V(n,void 0))}if(!t&&i&&gu(i))return{token:i.token};let o=!1;if(iu()){r.exchangeTokenPromise||(r.exchangeTokenPromise=Rl(Vl(n,await au()),e.heartbeatServiceProvider).finally(()=>{r.exchangeTokenPromise=void 0}),o=!0);let t=await r.exchangeTokenPromise;return await V(n,t),r.token=t,{token:t.token}}try{r.exchangeTokenPromise||(r.exchangeTokenPromise=r.provider.getToken().finally(()=>{r.exchangeTokenPromise=void 0}),o=!0),i=await Sl(n).exchangeTokenPromise}catch(e){e.code===`appCheck/throttled`?tu.warn(e.message):tu.error(e),a=e}let s;return i?a?s=gu(i)?{token:i.token,internalError:a}:_u(a):(s={token:i.token},r.token=i,await V(n,i)):s=_u(a),o&&hu(n,s),s}async function uu(e){let t=e.app;Fl(t);let{provider:n}=Sl(t);if(iu()){let{token:n}=await Rl(Vl(t,await au()),e.heartbeatServiceProvider);return{token:n}}{let{token:e}=await n.getToken();return{token:e}}}function du(e,t,n,r){let{app:i}=e,a=Sl(i),o={next:n,error:r,type:t};if(a.tokenObservers=[...a.tokenObservers,o],a.token&&gu(a.token)){let t=a.token;Promise.resolve().then(()=>{n({token:t.token}),pu(e)}).catch(()=>{})}a.cachedTokenPromise.then(()=>pu(e))}function fu(e,t){let n=Sl(e),r=n.tokenObservers.filter(e=>e.next!==t);r.length===0&&n.tokenRefresher&&n.tokenRefresher.isRunning()&&n.tokenRefresher.stop(),n.tokenObservers=r}function pu(e){let{app:t}=e,n=Sl(t),r=n.tokenRefresher;r||(r=mu(e),n.tokenRefresher=r),!r.isRunning()&&n.isTokenAutoRefreshEnabled&&r.start()}function mu(e){let{app:t}=e;return new jl(async()=>{let n=Sl(t),r;if(r=n.token?await lu(e,!0):await lu(e),r.error)throw r.error;if(r.internalError)throw r.internalError},()=>!0,()=>{let e=Sl(t);if(e.token){let t=e.token.issuedAtTimeMillis+(e.token.expireTimeMillis-e.token.issuedAtTimeMillis)*.5+3e5,n=e.token.expireTimeMillis-3e5;return t=Math.min(t,n),Math.max(0,t-Date.now())}return 0},kl.RETRIAL_MIN_WAIT,kl.RETRIAL_MAX_WAIT)}function hu(e,t){let n=Sl(e).tokenObservers;for(let e of n)try{e.type===`EXTERNAL`&&t.error!=null?e.error(t.error):e.next(t)}catch{}}function gu(e){return e.expireTimeMillis-Date.now()>0}function _u(e){return{token:cu(su),error:e}}var vu=class{constructor(e,t){this.app=e,this.heartbeatServiceProvider=t}_delete(){let{tokenObservers:e}=Sl(this.app);for(let t of e)fu(this.app,t.next);return Promise.resolve()}};function yu(e,t){return new vu(e,t)}function bu(e){return{getToken:t=>lu(e,t),getLimitedUseToken:()=>uu(e),addTokenListener:t=>du(e,`INTERNAL`,t),removeTokenListener:t=>fu(e.app,t)}}var xu=`@firebase/app-check`,Su=`0.8.8`,Cu=`https://www.google.com/recaptcha/api.js`,wu=`https://www.google.com/recaptcha/enterprise.js`;function Tu(e,t){let n=new Ko,r=Sl(e);r.reCAPTCHAState={initialized:n};let i=Ou(e),a=Pl(!1);return a?Du(e,t,a,i,n):ju(()=>{let r=Pl(!1);if(!r)throw Error(`no recaptcha`);Du(e,t,r,i,n)}),n.promise}function Eu(e,t){let n=new Ko,r=Sl(e);r.reCAPTCHAState={initialized:n};let i=Ou(e),a=Pl(!0);return a?Du(e,t,a,i,n):Mu(()=>{let r=Pl(!0);if(!r)throw Error(`no recaptcha`);Du(e,t,r,i,n)}),n.promise}function Du(e,t,n,r,i){n.ready(()=>{Au(e,t,n,r),i.resolve(n)})}function Ou(e){let t=`fire_app_check_${e.name}`,n=document.createElement(`div`);return n.id=t,n.style.display=`none`,document.body.appendChild(n),t}async function ku(e){Fl(e);let t=await Sl(e).reCAPTCHAState.initialized.promise;return new Promise((n,r)=>{let i=Sl(e).reCAPTCHAState;t.ready(()=>{n(t.execute(i.widgetId,{action:`fire_app_check`}))})})}function Au(e,t,n,r){let i=n.render(r,{sitekey:t,size:`invisible`,callback:()=>{Sl(e).reCAPTCHAState.succeeded=!0},"error-callback":()=>{Sl(e).reCAPTCHAState.succeeded=!1}}),a=Sl(e);a.reCAPTCHAState=Object.assign(Object.assign({},a.reCAPTCHAState),{widgetId:i})}function ju(e){let t=document.createElement(`script`);t.src=Cu,t.onload=e,document.head.appendChild(t)}function Mu(e){let t=document.createElement(`script`);t.src=wu,t.onload=e,document.head.appendChild(t)}var Nu=class e{constructor(e){this._siteKey=e,this._throttleData=null}async getToken(){Lu(this._throttleData);let e=await ku(this._app).catch(e=>{throw Nl.create(`recaptcha-error`)});if(!Sl(this._app).reCAPTCHAState?.succeeded)throw Nl.create(`recaptcha-error`);let t;try{t=await Rl(zl(this._app,e),this._heartbeatServiceProvider)}catch(e){throw e.code?.includes(`fetch-status-error`)?(this._throttleData=Iu(Number(e.customData?.httpStatus),this._throttleData),Nl.create(`throttled`,{time:Il(this._throttleData.allowRequestsAfter-Date.now()),httpStatus:this._throttleData.httpStatus})):e}return this._throttleData=null,t}initialize(e){this._app=e,this._heartbeatServiceProvider=Yc(e,`heartbeat`),Tu(e,this._siteKey).catch(()=>{})}isEqual(t){return t instanceof e&&this._siteKey===t._siteKey}},Pu=class e{constructor(e){this._siteKey=e,this._throttleData=null}async getToken(){Lu(this._throttleData);let e=await ku(this._app).catch(e=>{throw Nl.create(`recaptcha-error`)});if(!Sl(this._app).reCAPTCHAState?.succeeded)throw Nl.create(`recaptcha-error`);let t;try{t=await Rl(Bl(this._app,e),this._heartbeatServiceProvider)}catch(e){throw e.code?.includes(`fetch-status-error`)?(this._throttleData=Iu(Number(e.customData?.httpStatus),this._throttleData),Nl.create(`throttled`,{time:Il(this._throttleData.allowRequestsAfter-Date.now()),httpStatus:this._throttleData.httpStatus})):e}return this._throttleData=null,t}initialize(e){this._app=e,this._heartbeatServiceProvider=Yc(e,`heartbeat`),Eu(e,this._siteKey).catch(()=>{})}isEqual(t){return t instanceof e&&this._siteKey===t._siteKey}},Fu=class e{constructor(e){this._customProviderOptions=e}async getToken(){let e=await this._customProviderOptions.getToken(),t=ds(e.token),n=t!==null&&t<Date.now()&&t>0?t*1e3:Date.now();return Object.assign(Object.assign({},e),{issuedAtTimeMillis:n})}initialize(e){this._app=e}isEqual(t){return t instanceof e&&this._customProviderOptions.getToken.toString()===t._customProviderOptions.getToken.toString()}};function Iu(e,t){if(e===404||e===403)return{backoffCount:1,allowRequestsAfter:Date.now()+Al,httpStatus:e};{let n=t?t.backoffCount:0,r=Ds(n,1e3,2);return{backoffCount:n+1,allowRequestsAfter:Date.now()+r,httpStatus:e}}}function Lu(e){if(e&&Date.now()-e.allowRequestsAfter<=0)throw Nl.create(`throttled`,{time:Il(e.allowRequestsAfter-Date.now()),httpStatus:e.httpStatus})}function Ru(e=tl(),t){e=Os(e);let n=Yc(e,`app-check`);if(wl().initialized||ou(),iu()&&au().then(e=>console.log(`App Check debug token: ${e}
11. You will need to add it to your app's App Check settings in the Firebase console for it to work.`)),n.isInitialized()){let r=n.getImmediate(),i=n.getOptions();if(i.isTokenAutoRefreshEnabled===t.isTokenAutoRefreshEnabled&&i.provider.isEqual(t.provider))return r;throw Nl.create(`already-initialized`,{appName:e.name})}let r=n.initialize({options:t});return zu(e,t.provider,t.isTokenAutoRefreshEnabled),Sl(e).isTokenAutoRefreshEnabled&&du(r,`INTERNAL`,()=>{}),r}function zu(e,t,n){let r=Cl(e,Object.assign({},bl));r.activated=!0,r.provider=t,r.cachedTokenPromise=nu(e).then(t=>(t&&gu(t)&&(r.token=t,hu(e,{token:t.token})),t)),r.isTokenAutoRefreshEnabled=n===void 0?e.automaticDataCollectionEnabled:n,r.provider.initialize(e)}function Bu(e,t){let n=e.app,r=Sl(n);r.tokenRefresher&&(t===!0?r.tokenRefresher.start():r.tokenRefresher.stop()),r.isTokenAutoRefreshEnabled=t}async function Vu(e,t){let n=await lu(e,t);if(n.error)throw n.error;return{token:n.token}}function Hu(e,t,n,r){let i=()=>{},a=()=>{};return i=t.next==null?t:t.next.bind(t),t.error==null?n&&(a=n):a=t.error.bind(t),du(e,`EXTERNAL`,i,a),()=>fu(e.app,i)}var Uu=`app-check`,Wu=`app-check-internal`;function Gu(){Jc(new ks(Uu,e=>yu(e.getProvider(`app`).getImmediate(),e.getProvider(`heartbeat`)),`PUBLIC`).setInstantiationMode(`EXPLICIT`).setInstanceCreatedCallback((e,t,n)=>{e.getProvider(Wu).initialize()})),Jc(new ks(Wu,e=>bu(e.getProvider(`app-check`).getImmediate()),`PUBLIC`).setInstantiationMode(`EXPLICIT`)),nl(xu,Su)}Gu();var Ku=c({CustomProvider:()=>Fu,ReCaptchaEnterpriseProvider:()=>Pu,ReCaptchaV3Provider:()=>Nu,getToken:()=>Vu,initializeAppCheck:()=>Ru,onTokenChanged:()=>Hu,setTokenAutoRefreshEnabled:()=>Bu});function qu(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n}function Ju(){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."}}var Yu=Ju,Xu=new os(`auth`,`Firebase`,Ju()),Zu=new Vs(`@firebase/auth`);function Qu(e,...t){Zu.logLevel<=Is.WARN&&Zu.warn(`Auth (${$c}): ${e}`,...t)}function $u(e,...t){Zu.logLevel<=Is.ERROR&&Zu.error(`Auth (${$c}): ${e}`,...t)}function ed(e,...t){throw ad(e,...t)}function td(e,...t){return ad(e,...t)}function nd(e,t,n){return new os(`auth`,`Firebase`,Object.assign(Object.assign({},Yu()),{[t]:n})).create(t,{appName:e.name})}function rd(e){return nd(e,`operation-not-supported-in-this-environment`,`Operations that alter the current user are not supported in conjunction with FirebaseServerApp`)}function id(e,t,n){let r=n;if(!(t instanceof r))throw r.name!==t.constructor.name&&ed(e,`argument-error`),nd(e,`argument-error`,`Type of ${t.constructor.name} does not match expected instance.Did you pass a reference from a different Auth SDK?`)}function ad(e,...t){if(typeof e!=`string`){let n=t[0],r=[...t.slice(1)];return r[0]&&(r[0].appName=e.name),e._errorFactory.create(n,...r)}return Xu.create(e,...t)}function H(e,t,...n){if(!e)throw ad(t,...n)}function od(e){let t=`INTERNAL ASSERTION FAILED: `+e;throw $u(t),Error(t)}function sd(e,t){e||od(t)}function cd(){return typeof self<`u`&&self.location?.href||``}function ld(){return ud()===`http:`||ud()===`https:`}function ud(){return typeof self<`u`&&self.location?.protocol||null}function dd(){return typeof navigator<`u`&&navigator&&`onLine`in navigator&&typeof navigator.onLine==`boolean`&&(ld()||Qo()||`connection`in navigator)?navigator.onLine:!0}function fd(){if(typeof navigator>`u`)return null;let e=navigator;return e.languages&&e.languages[0]||e.language||null}var pd=class{constructor(e,t){this.shortDelay=e,this.longDelay=t,sd(t>e,`Short delay should be less than long delay!`),this.isMobile=Yo()||$o()}get(){return dd()?this.isMobile?this.longDelay:this.shortDelay:Math.min(5e3,this.shortDelay)}};function md(e,t){sd(e.emulator,`Emulator should always be set here`);let{url:n}=e.emulator;return t?`${n}${t.startsWith(`/`)?t.slice(1):t}`:n}var hd=class{static initialize(e,t,n){this.fetchImpl=e,t&&(this.headersImpl=t),n&&(this.responseImpl=n)}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;od(`Could not find fetch implementation, make sure you call FetchProvi
11der.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;od(`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;od(`Could not find Response implementation, make sure you call FetchProvider.initialize() with an appropriate polyfill`)}},gd={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:`invali
11d-recaptcha-version`,INVALID_REQ_TYPE:`invalid-req-type`},_d=new pd(3e4,6e4);function vd(e,t){return e.tenantId&&!t.tenantId?Object.assign(Object.assign({},t),{tenantId:e.tenantId}):t}async function yd(e,t,n,r,i={}){return bd(e,i,async()=>{let i={},a={};r&&(t===`GET`?a=r:i={body:JSON.stringify(r)});let o=hs(Object.assign({key:e.config.apiKey},a)).slice(1),s=await e._getAdditionalHeaders();s[`Content-Type`]=`application/json`,e.languageCode&&(s[`X-Firebase-Locale`]=e.languageCode);let c=Object.assign({method:t,headers:s},i);return Zo()||(c.referrerPolicy=`no-referrer`),hd.fetch()(Sd(e,e.config.apiHost,n,o),c)})}async function bd(e,t,n){e._canInitEmulator=!1;let r=Object.assign(Object.assign({},gd),t);try{let t=new wd(e),i=await Promise.race([n(),t.promise]);t.clearNetworkTimeout();let a=await i.json();if(`needConfirmation`in a)throw Td(e,`account-exists-with-different-credential`,a);if(i.ok&&!(`errorMessage`in a))return a;{let[t,n]=(i.ok?a.errorMessage:a.error.message).split(` : `);if(t===`FEDERATED_USER_ID_ALREADY_LINKED`)throw Td(e,`credential-already-in-use`,a);if(t===`EMAIL_EXISTS`)throw Td(e,`email-already-in-use`,a);if(t===`USER_DISABLED`)throw Td(e,`user-disabled`,a);let o=r[t]||t.toLowerCase().replace(/[_\s]+/g,`-`);if(n)throw nd(e,o,n);ed(e,o)}}catch(t){if(t instanceof as)throw t;ed(e,`network-request-failed`,{message:String(t)})}}async function xd(e,t,n,r,i={}){let a=await yd(e,t,n,r,i);return`mfaPendingCredential`in a&&ed(e,`multi-factor-auth-required`,{_serverResponse:a}),a}function Sd(e,t,n,r){let i=`${t}${n}?${r}`;return e.config.emulator?md(e.config,i):`${e.config.apiScheme}://${i}`}function Cd(e){switch(e){case`ENFORCE`:return`ENFORCE`;case`AUDIT`:return`AUDIT`;case`OFF`:return`OFF`;default:return`ENFORCEMENT_STATE_UNSPECIFIED`}}var wd=class{constructor(e){this.auth=e,this.timer=null,this.promise=new Promise((e,t)=>{this.timer=setTimeout(()=>t(td(this.auth,`network-request-failed`)),_d.get())})}clearNetworkTimeout(){clearTimeout(this.timer)}};function Td(e,t,n){let r={appName:e.name};n.email&&(r.email=n.email),n.phoneNumber&&(r.phoneNumber=n.phoneNumber);let i=td(e,t,r);return i.customData._tokenResponse=n,i}function Ed(e){return e!==void 0&&e.getResponse!==void 0}function Dd(e){return e!==void 0&&e.enterprise!==void 0}var Od=class{constructor(e){if(this.siteKey=``,this.recaptchaEnforcementState=[],e.recaptchaKey===void 0)throw Error(`recaptchaKey undefined`);this.siteKey=e.recaptchaKey.split(`/`)[3],this.recaptchaEnforcementState=e.recaptchaEnforcementState}getProviderEnforcementState(e){if(!this.recaptchaEnforcementState||this.recaptchaEnforcementState.length===0)return null;for(let t of this.recaptchaEnforcementState)if(t.provider&&t.provider===e)return Cd(t.enforcementState);return null}isProviderEnabled(e){return this.getProviderEnforcementState(e)===`ENFORCE`||this.getProviderEnforcementState(e)===`AUDIT`}};async function kd(e){return(await yd(e,`GET`,`/v1/recaptchaParams`)).recaptchaSiteKey||``}async function Ad(e,t){return yd(e,`GET`,`/v2/recaptchaConfig`,vd(e,t))}async function jd(e,t){return yd(e,`POST`,`/v1/accounts:delete`,t)}async function Md(e,t){return yd(e,`POST`,`/v1/accounts:update`,t)}async function Nd(e,t){return yd(e,`POST`,`/v1/accounts:lookup`,t)}function Pd(e){if(e)try{let t=new Date(Number(e));if(!isNaN(t.getTime()))return t.toUTCString()}catch{}}async function Fd(e,t=!1){let n=Os(e),r=await n.getIdToken(t),i=Ld(r);H(i&&i.exp&&i.auth_time&&i.iat,n.auth,`internal-error`);let a=typeof i.firebase==`object`?i.firebase:void 0,o=a?.sign_in_provider;return{claims:i,token:r,authTime:Pd(Id(i.auth_time)),issuedAtTime:Pd(Id(i.iat)),expirationTime:Pd(Id(i.exp)),signInProvider:o||null,signInSecondFactor:a?.sign_in_second_factor||null}}function Id(e){return Number(e)*1e3}function Ld(e){let[t,n,r]=e.split(`.`);if(t===void 0||n===void 0||r===void 0)return $u(`JWT malformed, contained fewer than 3 sections`),null;try{let e=Lo(n);return e?JSON.parse(e):($u(`Failed to decode base64 JWT payload`),null)}catch(e){return $u(`Caught error parsing JWT payload as JSON`,e?.toString()),null}}function Rd(e){let t=Ld(e);return H(t,`internal-error`),H(t.exp!==void 0,`internal-error`),H(t.iat!==void 0,`internal-error`),Number(t.exp)-Number(t.iat)}async function zd(e,t,n=!1){if(n)return t;try{return await t}catch(t){throw t instanceof as&&Bd(t)&&e.auth.currentUser===e&&await e.auth.signOut(),t}}function Bd({code:e}){return e===`auth/user-disabled`||e===`auth/user-token-expired`}var Vd=class{constructor(e){this.user=e,this.isRunning=!1,this.timerId=null,this.errorBackoff=3e4}_start(){this.isRunning||(this.isRunning=!0,this.schedule())}_stop(){this.isRunning&&(this.isRunning=!1,this.timerId!==null&&clearTimeout(this.timerId))}getInterval(e){if(e){let e=this.errorBackoff;return this.errorBackoff=Math.min(this.errorBackoff*2,96e4),e}{this.errorBackoff=3e4;let e=(this.user.stsTokenManager.expirationTime??0)-Date.now()-3e5;return Math.max(0,e)}}schedule(e=!1){if(!this.isRunning)return;let t=this.getInterval(e);this.timerId=setTimeout(async()=>{await this.iteration()},t)}async iteration(){try{await this.user.getIdToken(!0)}catch(e){e?.code===`auth/network-request-failed`&&this.schedule(!0);return}this.schedule()}},Hd=class{constructor(e,t){this.createdAt=e,this.lastLoginAt=t,this._initializeTime()}_initializeTime(){this.lastSignInTime=Pd(this.lastLoginAt),this.creationTime=Pd(this.createdAt)}_copy(e){this.createdAt=e.createdAt,this.lastLoginAt=e.lastLoginAt,this._initializeTime()}toJSON(){return{createdAt:this.createdAt,lastLoginAt:this.lastLoginAt}}};async function Ud(e){let t=e.auth,n=await zd(e,Nd(t,{idToken:await e.getIdToken()}));H(n?.users.length,t,`internal-error`);let r=n.users[0];e._notifyReloadListener(r);let i=r.providerUserInfo?.length?Kd(r.providerUserInfo):[],a=Gd(e.providerData,i),o=e.isAnonymous,s=!(e.email&&r.passwordHash)&&!a?.length,c=o?s:!1,l={uid:r.localId,displayName:r.displayName||null,photoURL:r.photoUrl||null,email:r.email||null,emailVerified:r.emailVerified||!1,phoneNumber:r.phoneNumber||null,tenantId:r.tenantId||null,providerData:a,metadata:new Hd(r.createdAt,r.lastLoginAt),isAnonymous:c};Object.assign(e,l)}async function Wd(e){let t=Os(e);await Ud(t),await t.auth._persistUserIfCurrent(t),t.auth._notifyListenersIfCurrent(t)}function Gd(e,t){return[...e.filter(e=>!t.some(t=>t.providerId===e.providerId)),...t]}function Kd(e){return e.map(e=>{var{providerId:t}=e,n=qu(e,[`providerId`]);return{providerId:t,uid:n.rawId||``,displayName:n.displayName||null,email:n.email||null,phoneNumber:n.phoneNumber||null,photoURL:n.photoUrl||null}})}async function qd(e,t){let n=await bd(e,{},async()=>{let n=hs({grant_type:`refresh_token`,refresh_token:t}).slice(1),{tokenApiHost:r,apiKey:i}=e.config,a=Sd(e,r,`/v1/token`,`key=${i}`),o=await e._getAdditionalHeaders();return o[`Content-Type`]=`application/x-www-form-urlencoded`,hd.fetch()(a,{method:`POST`,headers:o,body:n})});return{accessToken:n.access_token,expiresIn:n.expires_in,refreshToken:n.refresh_token}}async function Jd(e,t){return yd(e,`POST`,`/v2/accounts:revokeToken`,vd(e,t))}var Yd=class e{constructor(){this.refreshToken=null,this.accessToken=null,this.expirationTime=null}get isExpired(){return!this.expirationTime||Date.now()>this.expirationTime-3e4}updateFromServerResponse(e){H(e.idToken,`internal-error`),H(e.idToken!==void 0,`internal-error`),H(e.refreshToken!==void 0,`internal-error`);
11let t=`expiresIn`in e&&e.expiresIn!==void 0?Number(e.expiresIn):Rd(e.idToken);this.updateTokensAndExpiration(e.idToken,e.refreshToken,t)}updateFromIdToken(e){H(e.length!==0,`internal-error`);let t=Rd(e);this.updateTokensAndExpiration(e,null,t)}async getToken(e,t=!1){return!t&&this.accessToken&&!this.isExpired?this.accessToken:(H(this.refreshToken,e,`user-token-expired`),this.refreshToken?(await this.refresh(e,this.refreshToken),this.accessToken):null)}clearRefreshToken(){this.refreshToken=null}async refresh(e,t){let{accessToken:n,refreshToken:r,expiresIn:i}=await qd(e,t);this.updateTokensAndExpiration(n,r,Number(i))}updateTokensAndExpiration(e,t,n){this.refreshToken=t||null,this.accessToken=e||null,this.expirationTime=Date.now()+n*1e3}static fromJSON(t,n){let{refreshToken:r,accessToken:i,expirationTime:a}=n,o=new e;return r&&(H(typeof r==`string`,`internal-error`,{appName:t}),o.refreshToken=r),i&&(H(typeof i==`string`,`internal-error`,{appName:t}),o.accessToken=i),a&&(H(typeof a==`number`,`internal-error`,{appName:t}),o.expirationTime=a),o}toJSON(){return{refreshToken:this.refreshToken,accessToken:this.accessToken,expirationTime:this.expirationTime}}_assign(e){this.accessToken=e.accessToken,this.refreshToken=e.refreshToken,this.expirationTime=e.expirationTime}_clone(){return Object.assign(new e,this.toJSON())}_performRefresh(){return od(`not implemented`)}};function Xd(e,t){H(typeof e==`string`||e===void 0,`internal-error`,{appName:t})}var Zd=class e{constructor(e){var{uid:t,auth:n,stsTokenManager:r}=e,i=qu(e,[`uid`,`auth`,`stsTokenManager`]);this.providerId=`firebase`,this.proactiveRefresh=new Vd(this),this.reloadUserInfo=null,this.reloadListener=null,this.uid=t,this.auth=n,this.stsTokenManager=r,this.accessToken=r.accessToken,this.displayName=i.displayName||null,this.email=i.email||null,this.emailVerified=i.emailVerified||!1,this.phoneNumber=i.phoneNumber||null,this.photoURL=i.photoURL||null,this.isAnonymous=i.isAnonymous||!1,this.tenantId=i.tenantId||null,this.providerData=i.providerData?[...i.providerData]:[],this.metadata=new Hd(i.createdAt||void 0,i.lastLoginAt||void 0)}async getIdToken(e){let t=await zd(this,this.stsTokenManager.getToken(this.auth,e));return H(t,this.auth,`internal-error`),this.accessToken!==t&&(this.accessToken=t,await this.auth._persistUserIfCurrent(this),this.auth._notifyListenersIfCurrent(this)),t}getIdTokenResult(e){return Fd(this,e)}reload(){return Wd(this)}_assign(e){this!==e&&(H(this.uid===e.uid,this.auth,`internal-error`),this.displayName=e.displayName,this.photoURL=e.photoURL,this.email=e.email,this.emailVerified=e.emailVerified,this.phoneNumber=e.phoneNumber,this.isAnonymous=e.isAnonymous,this.tenantId=e.tenantId,this.providerData=e.providerData.map(e=>Object.assign({},e)),this.metadata._copy(e.metadata),this.stsTokenManager._assign(e.stsTokenManager))}_clone(t){let n=new e(Object.assign(Object.assign({},this),{auth:t,stsTokenManager:this.stsTokenManager._clone()}));return n.metadata._copy(this.metadata),n}_onReload(e){H(!this.reloadListener,this.auth,`internal-error`),this.reloadListener=e,this.reloadUserInfo&&=(this._notifyReloadListener(this.reloadUserInfo),null)}_notifyReloadListener(e){this.reloadListener?this.reloadListener(e):this.reloadUserInfo=e}_startProactiveRefresh(){this.proactiveRefresh._start()}_stopProactiveRefresh(){this.proactiveRefresh._stop()}async _updateTokensIfNecessary(e,t=!1){let n=!1;e.idToken&&e.idToken!==this.stsTokenManager.accessToken&&(this.stsTokenManager.updateFromServerResponse(e),n=!0),t&&await Ud(this),await this.auth._persistUserIfCurrent(this),n&&this.auth._notifyListenersIfCurrent(this)}async delete(){if(Xc(this.auth.app))return Promise.reject(rd(this.auth));let e=await this.getIdToken();return await zd(this,jd(this.auth,{idToken:e})),this.stsTokenManager.clearRefreshToken(),this.auth.signOut()}toJSON(){return Object.assign(Object.assign({uid:this.uid,email:this.email||void 0,emailVerified:this.emailVerified,displayName:this.displayName||void 0,isAnonymous:this.isAnonymous,photoURL:this.photoURL||void 0,phoneNumber:this.phoneNumber||void 0,tenantId:this.tenantId||void 0,providerData:this.providerData.map(e=>Object.assign({},e)),stsTokenManager:this.stsTokenManager.toJSON(),_redirectEventId:this._redirectEventId},this.metadata.toJSON()),{apiKey:this.auth.config.apiKey,appName:this.auth.name})}get refreshToken(){return this.stsTokenManager.refreshToken||``}static _fromJSON(t,n){let r=n.displayName??void 0,i=n.email??void 0,a=n.phoneNumber??void 0,o=n.photoURL??void 0,s=n.tenantId??void 0,c=n._redirectEventId??void 0,l=n.createdAt??void 0,u=n.lastLoginAt??void 0,{uid:d,emailVerified:f,isAnonymous:p,providerData:m,stsTokenManager:h}=n;H(d&&h,t,`internal-error`);let g=Yd.fromJSON(this.name,h);
11H(typeof d==`string`,t,`internal-error`),Xd(r,t.name),Xd(i,t.name),H(typeof f==`boolean`,t,`internal-error`),H(typeof p==`boolean`,t,`internal-error`),Xd(a,t.name),Xd(o,t.name),Xd(s,t.name),Xd(c,t.name),Xd(l,t.name),Xd(u,t.name);let _=new e({uid:d,auth:t,email:i,emailVerified:f,displayName:r,isAnonymous:p,photoURL:o,phoneNumber:a,tenantId:s,stsTokenManager:g,createdAt:l,lastLoginAt:u});return m&&Array.isArray(m)&&(_.providerData=m.map(e=>Object.assign({},e))),c&&(_._redirectEventId=c),_}static async _fromIdTokenResponse(t,n,r=!1){let i=new Yd;i.updateFromServerResponse(n);let a=new e({uid:n.localId,auth:t,stsTokenManager:i,isAnonymous:r});return await Ud(a),a}static async _fromGetAccountInfoResponse(t,n,r){let i=n.users[0];H(i.localId!==void 0,`internal-error`);let a=i.providerUserInfo===void 0?[]:Kd(i.providerUserInfo),o=!(i.email&&i.passwordHash)&&!a?.length,s=new Yd;s.updateFromIdToken(r);let c=new e({uid:i.localId,auth:t,stsTokenManager:s,isAnonymous:o}),l={uid:i.localId,displayName:i.displayName||null,photoURL:i.photoUrl||null,email:i.email||null,emailVerified:i.emailVerified||!1,phoneNumber:i.phoneNumber||null,tenantId:i.tenantId||null,providerData:a,metadata:new Hd(i.createdAt,i.lastLoginAt),isAnonymous:!(i.email&&i.passwordHash)&&!a?.length};return Object.assign(c,l),c}},Qd=new Map;function $d(e){sd(e instanceof Function,`Expected a class definition`);let t=Qd.get(e);return t?(sd(t instanceof e,`Instance stored in cache mismatched with class`),t):(t=new e,Qd.set(e,t),t)}var ef=class{constructor(){this.type=`NONE`,this.storage={}}async _isAvailable(){return!0}async _set(e,t){this.storage[e]=t}async _get(e){let t=this.storage[e];return t===void 0?null:t}async _remove(e){delete this.storage[e]}_addListener(e,t){}_removeListener(e,t){}};ef.type=`NONE`;var tf=ef;function nf(e,t,n){return`firebase:${e}:${t}:${n}`}var rf=class e{constructor(e,t,n){this.persistence=e,this.auth=t,this.userKey=n;let{config:r,name:i}=this.auth;this.fullUserKey=nf(this.userKey,r.apiKey,i),this.fullPersistenceKey=nf(`persistence`,r.apiKey,i),this.boundEventHandler=t._onStorageEvent.bind(t),this.persistence._addListener(this.fullUserKey,this.boundEventHandler)}setCurrentUser(e){return this.persistence._set(this.fullUserKey,e.toJSON())}async getCurrentUser(){let e=await this.persistence._get(this.fullUserKey);return e?Zd._fromJSON(this.auth,e):null}removeCurrentUser(){return this.persistence._remove(this.fullUserKey)}savePersistenceForRedirect(){return this.persistence._set(this.fullPersistenceKey,this.persistence.type)}async setPersistence(e){if(this.persistence===e)return;let t=await this.getCurrentUser();if(await this.removeCurrentUser(),this.persistence=e,t)return this.setCurrentUser(t)}delete(){this.persistence._removeListener(this.fullUserKey,this.boundEventHandler)}static async create(t,n,r=`authUser`){if(!n.length)return new e($d(tf),t,r);let i=(await Promise.all(n.map(async e=>{if(await e._isAvailable())return e}))).filter(e=>e),a=i[0]||$d(tf),o=nf(r,t.config.apiKey,t.name),s=null;for(let e of n)try{let n=await e._get(o);if(n){let r=Zd._fromJSON(t,n);e!==a&&(s=r),a=e;break}}catch{}let c=i.filter(e=>e._shouldAllowMigration);return!a._shouldAllowMigration||!c.length?new e(a,t,r):(a=c[0],s&&await a._set(o,s.toJSON()),await Promise.all(n.map(async e=>{if(e!==a)try{await e._remove(o)}catch{}})),new e(a,t,r))}};function af(e){let t=e.toLowerCase();if(t.includes(`opera/`)||t.includes(`opr/`)||t.includes(`opios/`))return`Opera`;if(lf(t))return`IEMobile`;if(t.includes(`msie`)||t.includes(`trident/`))return`IE`;if(t.includes(`edge/`))return`Edge`;if(of(t))return`Firefox`;if(t.includes(`silk/`))return`Silk`;if(df(t))return`Blackberry`;if(ff(t))return`Webos`;if(sf(t))return`Safari`;if((t.includes(`chrome/`)||cf(t))&&!t.includes(`edge/`))return`Chrome`;if(uf(t))return`Android`;{let t=e.match(/([a-zA-Z\d\.]+)\/[a-zA-Z\d\.]*$/);if(t?.length===2)return t[1]}return`Other`}function of(e=Jo()){return/firefox\//i.test(e)}function sf(e=Jo()){let t=e.toLowerCase();return t.includes(`safari/`)&&!t.includes(`chrome/`)&&!t.includes(`crios/`)&&!t.includes(`android`)}function cf(e=Jo()){return/crios\//i.test(e)}function lf(e=Jo()){return/iemobile/i.test(e)}function uf(e=Jo()){return/android/i.test(e)}function df(e=Jo()){return/blackberry/i.test(e)}function ff(e=Jo()){return/webos/i.test(e)}function pf(e=Jo()){return/iphone|ipad|ipod/i.test(e)||/macintosh/i.test(e)&&/mobile/i.test(e)}function mf(e=Jo()){return pf(e)&&!!window.navigator?.standalone}function hf(){return es()&&document.documentMode===10}function gf(e=Jo()){return pf(e)||uf(e)||ff(e)||df(e)||/windows phone/i.test(e)||lf(e)}function _f(e,t=[]){let n;switch(e){case`Browser`:n=af(Jo());break;case`Worker`:n=`${af(Jo())}-${e}`;break;default:n=e}let r=t.length?t.join(`,`):`FirebaseCore-web`;return`${n}/JsCore/${$c}/${r}`}var vf=class{constructor(e){this.auth=e,this.queue=[]}pushCallback(e,t){let n=t=>new Promise((n,r)=>{try{n(e(t))}catch(e){r(e)}});n.onAbort=t,this.queue.push(n);let r=this.queue.length-1;return()=>{this.queue[r]=()=>Promise.resolve()}}async runMiddleware(e){if(this.auth.currentUser===e)return;let t=[];try{for(let n of this.queue)await n(e),n.onAbort&&t.push(n.onAbort)}catch(e){t.reverse();for(let e of t)try{e()}catch{}throw this.auth._errorFactory.create(`login-blocked`,{originalMessage:e?.message})}}};async function yf(e,t={}){return yd(e,`GET`,`/v2/passwordPolicy`,vd(e,t))}var bf=6,xf=class{constructor(e){let t=e.customStrengthOptions;this.customStrengthOptions={},this.customStrengthOptions.minPasswordLength=t.minPasswordLength??bf,t.maxPasswordLength&&(this.customStrengthOptions.maxPasswordLength=t.maxPasswordLength),t.containsLowercaseCharacter!==void 0&&(this.customStrengthOptions.containsLowercaseLetter=t.containsLowercaseCharacter),t.containsUppercaseCharacter!==void 0&&(this.customStrengthOptions.containsUppercaseLetter=t.containsUppercaseCharacter),t.containsNumericCharacter!==void 0&&(this.customStrengthOptions.containsNumericCharacter=t.containsNumericCharacter),t.containsNonAlphanumericCharacter!==void 0&&(this.customStrengthOptions.containsNonAlphanumericCharacter=t.containsNonAlphanumericCharacter),this.enforcementState=e.enforcementState,this.enforcementState===`ENFORCEMENT_STATE_UNSPECIFIED`&&(this.enforcementState=`OFF`),this.allowedNonAlphanumericCharacters=e.allowedNonAlphanumericCharacters?.join(``)??``,this.forceUpgradeOnSignin=e.forceUpgradeOnSignin??!1,this.schemaVersion=e.schemaVersion}validatePassword(e){let t={isValid:!0,passwordPolicy:this};return this.validatePasswordLengthOptions(e,t),this.validatePasswordCharacterOptions(e,t),t.isValid&&=t.meetsMinPasswordLength??!0,t.isValid&&=t.meetsMaxPasswordLength??!0,t.isValid&&=t.containsLowercaseLetter??!0,t.isValid&&=t.containsUppercaseLetter??!0,t.isValid&&=t.containsNumericCharacter??!0,t.isValid&&=t.containsNonAlphanumericCharacter??!0,t}validatePasswordLengthOptions(e,t){let n=this.customStrengthOptions.minPasswordLength,r=this.customStrengthOptions.maxPasswordLength;n&&(t.meetsMinPasswordLength=e.length>=n),r&&(t.meetsMaxPasswordLength=e.length<=r)}validatePasswordCharacterOptions(e,t){this.updatePasswordCharacterOptionsStatuses(t,!1,!1,!1,!1);let n;for(let r=0;r<e.length;r++)n=e.charAt(r),this.updatePasswordCharacterOptionsStatuses(t,n>=`a`&&n<=`z`,n>=`A`&&n<=`Z`,n>=`0`&&n<=`9`,this.allowedNonAlphanumericCharacters.includes(n))}updatePasswordCharacterOptionsStatuses(e,t,n,r,i){this.customStrengthOptions.containsLowercaseLetter&&(e.containsLowercaseLetter||=t),this.customStrengthOptions.containsUppercaseLetter&&(e.containsUppercaseLetter||=n),this.customStrengthOptions.containsNumericCharacter&&(e.containsNumericCharacter||=r),this.customStrengthOptions.containsNonAlphanumericCharacter&&(e.containsNonAlphanumericCharacter||=i)}},Sf=class{constructor(e,t,n,r){this.app=e,this.heartbeatServiceProvider=t,this.appCheckServiceProvider=n,this.config=r,this.currentUser=null,this.emulatorConfig=null,this.operations=Promise.resolve(),this.authStateSubscription=new wf(this),this.idTokenSubscription=new wf(this),this.beforeStateQueue=new vf(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=Xu,this._agentRecaptchaConfig=null,this._tenantRecaptchaConfigs={},this._projectPasswordPolicy=null,this._tenantPasswordPolicies={},this.lastNotifiedUid=void 0,this.languageCode=null,this.tenantId=null,this.settings={appVerificationDisabledForTesting:!1},this.frameworks=[],this.name=e.name,this.clientVersion=r.sdkClientVersion}_initializeWithPersistence(e,t){return t&&(this._popupRedirectResolver=$d(t)),this._initializationPromise=this.queue(async()=>
11{if(!this._deleted&&(this.persistenceManager=await rf.create(this,e),!this._deleted)){if(this._popupRedirectResolver?._shouldInitProactively)try{await this._popupRedirectResolver._initialize(this)}catch{}await this.initializeCurrentUser(t),this.lastNotifiedUid=this.currentUser?.uid||null,!this._deleted&&(this._isInitialized=!0)}}),this._initializationPromise}async _onStorageEvent(){if(this._deleted)return;let e=await this.assertedPersistence.getCurrentUser();if(!(!this.currentUser&&!e)){if(this.currentUser&&e&&this.currentUser.uid===e.uid){this._currentUser._assign(e),await this.currentUser.getIdToken();return}await this._updateCurrentUser(e,!0)}}async initializeCurrentUserFromIdToken(e){try{let t=await Nd(this,{idToken:e}),n=await Zd._fromGetAccountInfoResponse(this,t,e);await this.directlySetCurrentUser(n)}catch(e){console.warn(`FirebaseServerApp could not login user with provided authIdToken: `,e),await this.directlySetCurrentUser(null)}}async initializeCurrentUser(e){if(Xc(this.app)){let e=this.app.settings.authIdToken;return e?new Promise(t=>{setTimeout(()=>this.initializeCurrentUserFromIdToken(e).then(t,t))}):this.directlySetCurrentUser(null)}let t=await this.assertedPersistence.getCurrentUser(),n=t,r=!1;if(e&&this.config.authDomain){await this.getOrInitRedirectPersistenceManager();let t=this.redirectUser?._redirectEventId,i=n?._redirectEventId,a=await this.tryRedirectSignIn(e);(!t||t===i)&&a?.user&&(n=a.user,r=!0)}if(!n)return this.directlySetCurrentUser(null);if(!n._redirectEventId){if(r)try{await this.beforeStateQueue.runMiddleware(n)}catch(e){n=t,this._popupRedirectResolver._overrideRedirectResult(this,()=>Promise.reject(e))}return n?this.reloadAndSetCurrentUserOrClear(n):this.directlySetCurrentUser(null)}return H(this._popupRedirectResolver,this,`argument-error`),await this.getOrInitRedirectPersistenceManager(),this.redirectUser&&this.redirectUser._redirectEventId===n._redirectEventId?this.directlySetCurrentUser(n):this.reloadAndSetCurrentUserOrClear(n)}async tryRedirectSignIn(e){let t=null;try{t=await this._popupRedirectResolver._completeRedirectFn(this,e,!0)}catch{await this._setRedirectUser(null)}return t}async reloadAndSetCurrentUserOrClear(e){try{await Ud(e)}catch(e){if(e?.code!==`auth/network-request-failed`)return this.directlySetCurrentUser(null)}return this.directlySetCurrentUser(e)}useDeviceLanguage(){this.languageCode=fd()}async _delete(){this._deleted=!0}async updateCurrentUser(e){if(Xc(this.app))return Promise.reject(rd(this));let t=e?Os(e):null;return t&&H(t.auth.config.apiKey===this.config.apiKey,this,`invalid-user-token`),this._updateCurrentUser(t&&t._clone(this))}async _updateCurrentUser(e,t=!1){if(!this._deleted)return e&&H(this.tenantId===e.tenantId,this,`tenant-id-mismatch`),t||await this.beforeStateQueue.runMiddleware(e),this.queue(async()=>{await this.directlySetCurrentUser(e),this.notifyAuthListeners()})}async signOut(){return Xc(this.app)?Promise.reject(rd(this)):(await this.beforeStateQueue.runMiddleware(null),(this.redirectPersistenceManager||this._popupRedirectResolver)&&await this._setRedirectUser(null),this._updateCurrentUser(null,!0))}setPersistence(e){return Xc(this.app)?Promise.reject(rd(this)):this.queue(async()=>{await this.assertedPersistence.setPersistence($d(e))})}_getRecaptchaConfig(){return this.tenantId==null?this._agentRecaptchaConfig:this._tenantRecaptchaConfigs[this.tenantId]}async validatePassword(e){this._getPasswordPolicyInternal()||await this._updatePasswordPolicy();let t=this._getPasswordPolicyInternal();return t.schemaVersion===this.EXPECTED_PASSWORD_POLICY_SCHEMA_VERSION?t.validatePassword(e):Promise.reject(this._errorFactory.create(`unsupported-password-policy-schema-version`,{}))}_getPasswordPolicyInternal(){return this.tenantId===null?this._projectPasswordPolicy:this._tenantPasswordPolicies[this.tenantId]}async _updatePasswordPolicy(){let e=new xf(await yf(this));this.tenantId===null?this._projectPasswordPolicy=e:this._tenantPasswordPolicies[this.tenantId]=e}_getPersistence(){return this.assertedPersistence.persistence.type}_updateErrorMap(e){this._errorFactory=new os(`auth`,`Firebase`,e())}onAuthStateChanged(e,t,n){return this.registerStateListener(this.authStateSubscription,e,t,n)}beforeAuthStateChanged(e,t){return this.beforeStateQueue.pushCallback(e,t)}onIdTokenChanged(e,t,n){return this.registerStateListener(this.idTokenSubscription,e,t,n)}authStateReady(){return new Promise((e,t)=>
11{if(this.currentUser)e();else{let n=this.onAuthStateChanged(()=>{n(),e()},t)}})}async revokeAccessToken(e){if(this.currentUser){let t={providerId:`apple.com`,tokenType:`ACCESS_TOKEN`,token:e,idToken:await this.currentUser.getIdToken()};this.tenantId!=null&&(t.tenantId=this.tenantId),await Jd(this,t)}}toJSON(){return{apiKey:this.config.apiKey,authDomain:this.config.authDomain,appName:this.name,currentUser:this._currentUser?.toJSON()}}async _setRedirectUser(e,t){let n=await this.getOrInitRedirectPersistenceManager(t);return e===null?n.removeCurrentUser():n.setCurrentUser(e)}async getOrInitRedirectPersistenceManager(e){if(!this.redirectPersistenceManager){let t=e&&$d(e)||this._popupRedirectResolver;H(t,this,`argument-error`),this.redirectPersistenceManager=await rf.create(this,[$d(t._redirectPersistence)],`redirectUser`),this.redirectUser=await this.redirectPersistenceManager.getCurrentUser()}return this.redirectPersistenceManager}async _redirectUserForId(e){return this._isInitialized&&await this.queue(async()=>{}),this._currentUser?._redirectEventId===e?this._currentUser:this.redirectUser?._redirectEventId===e?this.redirectUser:null}async _persistUserIfCurrent(e){if(e===this.currentUser)return this.queue(async()=>this.directlySetCurrentUser(e))}_notifyListenersIfCurrent(e){e===this.currentUser&&this.notifyAuthListeners()}_key(){return`${this.config.authDomain}:${this.config.apiKey}:${this.name}`}_startProactiveRefresh(){this.isProactiveRefreshEnabled=!0,this.currentUser&&this._currentUser._startProactiveRefresh()}_stopProactiveRefresh(){this.isProactiveRefreshEnabled=!1,this.currentUser&&this._currentUser._stopProactiveRefresh()}get _currentUser(){return this.currentUser}notifyAuthListeners(){if(!this._isInitialized)return;this.idTokenSubscription.next(this.currentUser);let e=this.currentUser?.uid??null;this.lastNotifiedUid!==e&&(this.lastNotifiedUid=e,this.authStateSubscription.next(this.currentUser))}registerStateListener(e,t,n,r){if(this._deleted)return()=>{};let i=typeof t==`function`?t:t.next.bind(t),a=!1,o=this._isInitialized?Promise.resolve():this._initializationPromise;if(H(o,this,`internal-error`),o.then(()=>{a||i(this.currentUser)}),typeof t==`function`){let i=e.addObserver(t,n,r);return()=>{a=!0,i()}}{let n=e.addObserver(t);return()=>{a=!0,n()}}}async directlySetCurrentUser(e){this.currentUser&&this.currentUser!==e&&this._currentUser._stopProactiveRefresh(),e&&this.isProactiveRefreshEnabled&&e._startProactiveRefresh(),this.currentUser=e,e?await this.assertedPersistence.setCurrentUser(e):await this.assertedPersistence.removeCurrentUser()}queue(e){return this.operations=this.operations.then(e,e),this.operations}get assertedPersistence(){return H(this.persistenceManager,this,`internal-error`),this.persistenceManager}_logFramework(e){!e||this.frameworks.includes(e)||(this.frameworks.push(e),this.frameworks.sort(),this.clientVersion=_f(this.config.clientPlatform,this._getFrameworks()))}_getFrameworks(){return this.frameworks}async _getAdditionalHeaders(){let e={"X-Client-Version":this.clientVersion};this.app.options.appId&&(e[`X-Firebase-gmpid`]=this.app.options.appId);let t=await this.heartbeatServiceProvider.getImmediate({optional:!0})?.getHeartbeatsHeader();t&&(e[`X-Firebase-Client`]=t);let n=await this._getAppCheckToken();return n&&(e[`X-Firebase-AppCheck`]=n),e}async _getAppCheckToken(){let e=await this.appCheckServiceProvider.getImmediate({optional:!0})?.getToken();return e?.error&&Qu(`Error while retrieving App Check token: ${e.error}`),e?.token}};function Cf(e){return Os(e)}var wf=class{constructor(e){this.auth=e,this.observer=null,this.addObserver=vs(e=>this.observer=e)}get next(){return H(this.observer,this.auth,`internal-error`),this.observer.next.bind(this.observer)}},Tf={async loadJS(){throw Error(`Unable to load external scripts`)},recaptchaV2Script:``,recaptchaEnterpriseScript:``,gapiScript:``};function Ef(e){Tf=e}function Df(e){return Tf.loadJS(e)}function Of(){return Tf.recaptchaV2Script}function kf(){return Tf.recaptchaEnterpriseScript}function Af(){return Tf.gapiScript}function jf(e){return`__${e}${Math.floor(Math.random()*1e6)}`}var Mf=`recaptcha-enterprise`,Nf=`NO_RECAPTCHA`,Pf=class{constructor(e){this.type=Mf,this.auth=Cf(e)}async verify(e=`verify`,t=!1){async function n(e){if(!t){if(e.tenantId==null&&e._agentRecaptchaConfig!=null)return e._agentRecaptchaConfig.siteKey;if(e.tenantId!=null&&e._tenantRecaptchaConfigs[e.tenantId]!==void 0)return e._tenantRecaptchaConfigs[e.tenantId].siteKey}return new Promise(async(t,n)=>{Ad(e,{clientType:`CLIENT_TYPE_WEB`,version:`RECAPTCHA_ENTERPRISE`}).then(r=>{if(r.recaptchaKey===void 0)n(Error(`recaptcha Enterprise site key undefined`));else{let n=new Od(r);return e.tenantId==null?e._agentRecaptchaConfig=n:e._tenantRecaptchaConfigs[e.tenantId]=n,t(n.siteKey)}}).catch(e=>{n(e)})})}function r(t,n,r){let i=window.grecaptcha;Dd(i)?i.enterprise.ready(()=>{i.enterprise.execute(t,{action:e}).then(e=>{n(e)}).catch(()=>{n(Nf)})}):r(Error(`No reCAPTCHA enterprise script loaded.`))}return new Promise((e,i)=>{n(this.auth).then(n=>{if(!t&&Dd(window.grecaptcha))r(n,e,i);else{if(typeof window>`u`){i(Error(`RecaptchaVerifier is only supported in browser`));return}let t=kf();t.length!==0&&(t+=n),Df(t).then(()=>{r(n,e,i)}).catch(e=>{i(e)})}}).catch(e=>{i(e)})})}};async function Ff(e,t,n,r=!1){let i=new Pf(e),a;try{a=await i.verify(n)}
11catch{a=await i.verify(n,!0)}let o=Object.assign({},t);return r?Object.assign(o,{captchaResp:a}):Object.assign(o,{captchaResponse:a}),Object.assign(o,{clientType:`CLIENT_TYPE_WEB`}),Object.assign(o,{recaptchaVersion:`RECAPTCHA_ENTERPRISE`}),o}async function If(e,t,n,r){return e._getRecaptchaConfig()?.isProviderEnabled(`EMAIL_PASSWORD_PROVIDER`)?r(e,await Ff(e,t,n,n===`getOobCode`)):r(e,t).catch(async i=>i.code===`auth/missing-recaptcha-token`?(console.log(`${n} is protected by reCAPTCHA Enterprise for this project. Automatically triggering the reCAPTCHA flow and restarting the flow.`),r(e,await Ff(e,t,n,n===`getOobCode`))):Promise.reject(i))}function Lf(e,t){let n=Yc(e,`auth`);if(n.isInitialized()){let e=n.getImmediate();if(ps(n.getOptions(),t??{}))return e;ed(e,`already-initialized`)}return n.initialize({options:t})}function Rf(e,t){let n=t?.persistence||[],r=(Array.isArray(n)?n:[n]).map($d);t?.errorMap&&e._updateErrorMap(t.errorMap),e._initializeWithPersistence(r,t?.popupRedirectResolver)}function zf(e,t,n){let r=Cf(e);H(r._canInitEmulator,r,`emulator-config-failed`),H(/^https?:\/\//.test(t),r,`invalid-emulator-scheme`);let i=!!n?.disableWarnings,a=Bf(t),{host:o,port:s}=Vf(t),c=s===null?``:`:${s}`;r.config.emulator={url:`${a}//${o}${c}/`},r.settings.appVerificationDisabledForTesting=!0,r.emulatorConfig=Object.freeze({host:o,port:s,protocol:a.replace(`:`,``),options:Object.freeze({disableWarnings:i})}),i||Uf()}function Bf(e){let t=e.indexOf(`:`);return t<0?``:e.substr(0,t+1)}function Vf(e){let t=Bf(e),n=/(\/\/)?([^?#/]+)/.exec(e.substr(t.length));if(!n)return{host:``,port:null};let r=n[2].split(`@`).pop()||``,i=/^(\[[^\]]+\])(:|$)/.exec(r);if(i){let e=i[1];return{host:e,port:Hf(r.substr(e.length+1))}}{let[e,t]=r.split(`:`);return{host:e,port:Hf(t)}}}function Hf(e){if(!e)return null;let t=Number(e);return isNaN(t)?null:t}function Uf(){function e(){let e=document.createElement(`p`),t=e.style;e.innerText=`Running in emulator mode. Do not use with production credentials.`,t.position=`fixed`,t.width=`100%`,t.backgroundColor=`#ffffff`,t.border=`.1em solid #000000`,t.color=`#b50000`,t.bottom=`0px`,t.left=`0px`,t.margin=`0px`,t.zIndex=`10000`,t.textAlign=`center`,e.classList.add(`firebase-emulator-warning`),document.body.appendChild(e)}typeof console<`u`&&typeof console.info==`function`&&console.info(`WARNING: You are using the Auth Emulator, which is intended for local testing only.  Do not use with production credentials.`),typeof window<`u`&&typeof document<`u`&&(document.readyState===`loading`?window.addEventListener(`DOMContentLoaded`,e):e())}var Wf=class{constructor(e,t){this.providerId=e,this.signInMethod=t}toJSON(){return od(`not implemented`)}_getIdTokenResponse(e){return od(`not implemented`)}_linkToIdToken(e,t){return od(`not implemented`)}_getReauthenticationResolver(e){return od(`not implemented`)}};async function Gf(e,t){return yd(e,`POST`,`/v1/accounts:resetPassword`,vd(e,t))}async function Kf(e,t){return yd(e,`POST`,`/v1/accounts:update`,t)}async function qf(e,t){return yd(e,`POST`,`/v1/accounts:signUp`,t)}async function Jf(e,t){return yd(e,`POST`,`/v1/accounts:update`,vd(e,t))}async function Yf(e,t){return xd(e,`POST`,`/v1/accounts:signInWithPassword`,vd(e,t))}async function Xf(e,t){return yd(e,`POST`,`/v1/accounts:sendOobCode`,vd(e,t))}async function Zf(e,t){return Xf(e,t)}async function Qf(e,t){return Xf(e,t)}async function $f(e,t){return Xf(e,t)}async function ep(e,t){return Xf(e,t)}async function tp(e,t){return xd(e,`POST`,`/v1/accounts:signInWithEmailLink`,vd(e,t))}async function np(e,t){return xd(e,`POST`,`/v1/accounts:signInWithEmailLink`,vd(e,t))}var rp=class e extends Wf{constructor(e,t,n,r=null){super(`password`,n),this._email=e,this._password=t,this._tenantId=r}static _fromEmailAndPassword(t,n){return new e(t,n,`password`)}static _fromEmailAndCode(t,n,r=null){return new e(t,n,`emailLink`,r)}toJSON(){return{email:this._email,password:this._password,signInMethod:this.signInMethod,tenantId:this._tenantId}}static fromJSON(e){let t=typeof e==`string`?JSON.parse(e):e;if(t?.email&&t?.password){if(t.signInMethod===`password`)return this._fromEmailAndPassword(t.email,t.password);if(t.signInMethod===`emailLink`)return this._fromEmailAndCode(t.email,t.password,t.tenantId)}return null}async _getIdTokenResponse(e){switch(this.signInMethod){case`password`:return If(e,{returnSecureToken:!0,email:this._email,password:this._password,clientType:`CLIENT_TYPE_WEB`},`signInWithPassword`,Yf);case`emailLink`:return tp(e,{email:this._email,oobCode:this._password});default:ed(e,`internal-error`)}}async _linkToIdToken(e,t){switch(this.signInMethod){case`password`:return If(e,{idToken:t,returnSecureToken:!0,email:this._email,password:this._password,clientType:`CLIENT_TYPE_WEB`},`signUpPassword`,qf);case`emailLink`:return np(e,{idToken:t,email:this._email,oobCode:this._password});default:ed(e,`internal-error`)}}_getReauthenticationResolver(e){return this._getIdTokenResponse(e)}};async function ip(e,t){return xd(e,`POST`,`/v1/accounts:signInWithIdp`,vd(e,t))}var ap=`http://localhost`,op=class e extends Wf{constructor(){super(...arguments),this.pendingToken=null}static _fromParams(t){let n=new e(t.providerId,t.signInMethod);return t.idToken||t.accessToken?(t.idToken&&(n.idToken=t.idToken),t.accessToken&&(n.accessToken=t.accessToken),t.nonce&&!t.pen
11dingToken&&(n.nonce=t.nonce),t.pendingToken&&(n.pendingToken=t.pendingToken)):t.oauthToken&&t.oauthTokenSecret?(n.accessToken=t.oauthToken,n.secret=t.oauthTokenSecret):ed(`argument-error`),n}toJSON(){return{idToken:this.idToken,accessToken:this.accessToken,secret:this.secret,nonce:this.nonce,pendingToken:this.pendingToken,providerId:this.providerId,signInMethod:this.signInMethod}}static fromJSON(t){let n=typeof t==`string`?JSON.parse(t):t,{providerId:r,signInMethod:i}=n,a=qu(n,[`providerId`,`signInMethod`]);if(!r||!i)return null;let o=new e(r,i);return o.idToken=a.idToken||void 0,o.accessToken=a.accessToken||void 0,o.secret=a.secret,o.nonce=a.nonce,o.pendingToken=a.pendingToken||null,o}_getIdTokenResponse(e){return ip(e,this.buildRequest())}_linkToIdToken(e,t){let n=this.buildRequest();return n.idToken=t,ip(e,n)}_getReauthenticationResolver(e){let t=this.buildRequest();return t.autoCreate=!1,ip(e,t)}buildRequest(){let e={requestUri:ap,returnSecureToken:!0};if(this.pendingToken)e.pendingToken=this.pendingToken;else{let t={};this.idToken&&(t.id_token=this.idToken),this.accessToken&&(t.access_token=this.accessToken),this.secret&&(t.oauth_token_secret=this.secret),t.providerId=this.providerId,this.nonce&&!this.pendingToken&&(t.nonce=this.nonce),e.postBody=hs(t)}return e}};async function sp(e,t){return yd(e,`POST`,`/v1/accounts:sendVerificationCode`,vd(e,t))}async function cp(e,t){return xd(e,`POST`,`/v1/accounts:signInWithPhoneNumber`,vd(e,t))}async function lp(e,t){let n=await xd(e,`POST`,`/v1/accounts:signInWithPhoneNumber`,vd(e,t));if(n.temporaryProof)throw Td(e,`account-exists-with-different-credential`,n);return n}var up={USER_NOT_FOUND:`user-not-found`};async function dp(e,t){return xd(e,`POST`,`/v1/accounts:signInWithPhoneNumber`,vd(e,Object.assign(Object.assign({},t),{operation:`REAUTH`})),up)}var fp=class e extends Wf{constructor(e){super(`phone`,`phone`),this.params=e}static _fromVerification(t,n){return new e({verificationId:t,verificationCode:n})}static _fromTokenResponse(t,n){return new e({phoneNumber:t,temporaryProof:n})}_getIdTokenResponse(e){return cp(e,this._makeVerificationRequest())}_linkToIdToken(e,t){return lp(e,Object.assign({idToken:t},this._makeVerificationRequest()))}_getReauthenticationResolver(e){return dp(e,this._makeVerificationRequest())}_makeVerificationRequest(){let{temporaryProof:e,phoneNumber:t,verificationId:n,verificationCode:r}=this.params;return e&&t?{temporaryProof:e,phoneNumber:t}:{sessionInfo:n,code:r}}toJSON(){let e={providerId:this.providerId};return this.params.phoneNumber&&(e.phoneNumber=this.params.phoneNumber),this.params.temporaryProof&&(e.temporaryProof=this.params.temporaryProof),this.params.verificationCode&&(e.verificationCode=this.params.verificationCode),this.params.verificationId&&(e.verificationId=this.params.verificationId),e}static fromJSON(t){typeof t==`string`&&(t=JSON.parse(t));let{verificationId:n,verificationCode:r,phoneNumber:i,temporaryProof:a}=t;return!r&&!n&&!i&&!a?null:new e({verificationId:n,verificationCode:r,phoneNumber:i,temporaryProof:a})}};function pp(e){switch(e){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 mp(e){let t=gs(_s(e)).link,n=t?gs(_s(t)).deep_link_id:null,r=gs(_s(e)).deep_link_id;return(r?gs(_s(r)).link:null)||r||n||t||e}var hp=class e{constructor(e){let t=gs(_s(e)),n=t.apiKey??null,r=t.oobCode??null,i=pp(t.mode??null);H(n&&r&&i,`argument-error`),this.apiKey=n,this.operation=i,this.code=r,this.continueUrl=t.continueUrl??null,this.languageCode=t.languageCode??null,this.tenantId=t.tenantId??null}static parseLink(t){let n=mp(t);try{return new e(n)}catch{return null}}},gp=class e{constructor(){this.providerId=e.PROVIDER_ID}static credential(e,t){return rp._fromEmailAndPassword(e,t)}static credentialWithLink(e,t){let n=hp.parseLink(t);return H(n,`argument-error`),rp._fromEmailAndCode(e,n.code,n.tenantId)}};gp.PROVIDER_ID=`password`,gp.EMAIL_PASSWORD_SIGN_IN_METHOD=`password`,gp.EMAIL_LINK_SIGN_IN_METHOD=`emailLink`;var _p=class{constructor(e){this.providerId=e,this.defaultLanguageCode=null,this.customParameters={}}setDefaultLanguage(e){this.defaultLanguageCode=e}setCustomParameters(e){return this.customParameters=e,this}getCustomParameters(){return this.customParameters}},vp=class extends _p{constructor(){super(...arguments),this.scopes=[]}addScope(e){return this.scopes.includes(e)||this.scopes.push(e),this}getScopes(){return[...this.scopes]}},yp=class e extends vp{static credentialFromJSON(e){let t=typeof e==`string`?JSON.parse(e):e;
11return H(`providerId`in t&&`signInMethod`in t,`argument-error`),op._fromParams(t)}credential(e){return this._credential(Object.assign(Object.assign({},e),{nonce:e.rawNonce}))}_credential(e){return H(e.idToken||e.accessToken,`argument-error`),op._fromParams(Object.assign(Object.assign({},e),{providerId:this.providerId,signInMethod:this.providerId}))}static credentialFromResult(t){return e.oauthCredentialFromTaggedObject(t)}static credentialFromError(t){return e.oauthCredentialFromTaggedObject(t.customData||{})}static oauthCredentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;let{oauthIdToken:n,oauthAccessToken:r,oauthTokenSecret:i,pendingToken:a,nonce:o,providerId:s}=t;if(!r&&!i&&!n&&!a||!s)return null;try{return new e(s)._credential({idToken:n,accessToken:r,nonce:o,pendingToken:a})}catch{return null}}},bp=class e extends vp{constructor(){super(`facebook.com`)}static credential(t){return op._fromParams({providerId:e.PROVIDER_ID,signInMethod:e.FACEBOOK_SIGN_IN_METHOD,accessToken:t})}static credentialFromResult(t){return e.credentialFromTaggedObject(t)}static credentialFromError(t){return e.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t||!(`oauthAccessToken`in t)||!t.oauthAccessToken)return null;try{return e.credential(t.oauthAccessToken)}catch{return null}}};bp.FACEBOOK_SIGN_IN_METHOD=`facebook.com`,bp.PROVIDER_ID=`facebook.com`;var xp=class e extends vp{constructor(){super(`google.com`),this.addScope(`profile`)}static credential(t,n){return op._fromParams({providerId:e.PROVIDER_ID,signInMethod:e.GOOGLE_SIGN_IN_METHOD,idToken:t,accessToken:n})}static credentialFromResult(t){return e.credentialFromTaggedObject(t)}static credentialFromError(t){return e.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;let{oauthIdToken:n,oauthAccessToken:r}=t;if(!n&&!r)return null;try{return e.credential(n,r)}catch{return null}}};xp.GOOGLE_SIGN_IN_METHOD=`google.com`,xp.PROVIDER_ID=`google.com`;var Sp=class e extends vp{constructor(){super(`github.com`)}static credential(t){return op._fromParams({providerId:e.PROVIDER_ID,signInMethod:e.GITHUB_SIGN_IN_METHOD,accessToken:t})}static credentialFromResult(t){return e.credentialFromTaggedObject(t)}static credentialFromError(t){return e.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t||!(`oauthAccessToken`in t)||!t.oauthAccessToken)return null;try{return e.credential(t.oauthAccessToken)}catch{return null}}};Sp.GITHUB_SIGN_IN_METHOD=`github.com`,Sp.PROVIDER_ID=`github.com`;var Cp=class e extends vp{constructor(){super(`twitter.com`)}static credential(t,n){return op._fromParams({providerId:e.PROVIDER_ID,signInMethod:e.TWITTER_SIGN_IN_METHOD,oauthToken:t,oauthTokenSecret:n})}static credentialFromResult(t){return e.credentialFromTaggedObject(t)}static credentialFromError(t){return e.credentialFromTaggedObject(t.customData||{})}static credentialFromTaggedObject({_tokenResponse:t}){if(!t)return null;let{oauthAccessToken:n,oauthTokenSecret:r}=t;if(!n||!r)return null;try{return e.credential(n,r)}catch{return null}}};Cp.TWITTER_SIGN_IN_METHOD=`twitter.com`,Cp.PROVIDER_ID=`twitter.com`;async function wp(e,t){return xd(e,`POST`,`/v1/accounts:signUp`,vd(e,t))}var Tp=class e{constructor(e){this.user=e.user,this.providerId=e.providerId,this._tokenResponse=e._tokenResponse,this.operationType=e.operationType}static async _fromIdTokenResponse(t,n,r,i=!1){let a=await Zd._fromIdTokenResponse(t,r,i),o=Ep(r);return new e({user:a,providerId:o,_tokenResponse:r,operationType:n})}static async _forOperation(t,n,r){await t._updateTokensIfNecessary(r,!0);let i=Ep(r);return new e({user:t,providerId:i,_tokenResponse:r,operationType:n})}};function Ep(e){return e.providerId?e.providerId:`phoneNumber`in e?`phone`:null}async function Dp(e){if(Xc(e.app))return Promise.reject(rd(e));let t=Cf(e);if(await t._initializationPromise,t.currentUser?.isAnonymous)return new Tp({user:t.currentUser,providerId:null,operationType:`signIn`});let n=await wp(t,{returnSecureToken:!0}),r=await Tp._fromIdTokenResponse(t,`signIn`,n,!0);return await t._updateCurrentUser(r.user),r}var Op=class e extends as{constructor(t,n,r,i){super(n.code,n.message),this.operationType=r,this.user=i,Object.setPrototypeOf(this,e.prototype),this.customData={appName:t.name,tenantId:t.tenantId??void 0,_serverResponse:n.customData._serverResponse,operationType:r}}static _fromErrorAndOperation(t,n,r,i){return new e(t,n,r,i)}};function kp(e,t,n,r){return(t===`reauthenticate`?n._getReauthenticationResolver(e):n._getIdTokenResponse(e)).catch(n=>{throw n.code===`auth/multi-factor-auth-required`?Op._fromErrorAndOperation(e,n,t,r):n})}function Ap(e){return new Set(e.map(({providerId:e})=>e).filter(e=>!!e))}async function jp(e,t){let n=Os(e);await Np(!0,n,t);let{providerUserInfo:r}=await Md(n.auth,{idToken:await n.getIdToken(),deleteProvider:[t]}),i=Ap(r||[]);return n.providerData=n.providerData.filter(e=>i.has(e.providerId)),i.has(`phone`)||(n.phoneNumber=null),await n.auth._persistUserIfCurrent(n),n}async function Mp(e,t,n=!1){let r=await zd(e,t._linkToIdToken(e.auth,await e.getIdToken()),n);return Tp._forOperation(e,`link`,r)}
11async function Np(e,t,n){await Ud(t);let r=Ap(t.providerData),i=e===!1?`provider-already-linked`:`no-such-provider`;H(r.has(n)===e,t.auth,i)}async function Pp(e,t,n=!1){let{auth:r}=e;if(Xc(r.app))return Promise.reject(rd(r));let i=`reauthenticate`;try{let a=await zd(e,kp(r,i,t,e),n);H(a.idToken,r,`internal-error`);let o=Ld(a.idToken);H(o,r,`internal-error`);let{sub:s}=o;return H(e.uid===s,r,`user-mismatch`),Tp._forOperation(e,i,a)}catch(e){throw e?.code===`auth/user-not-found`&&ed(r,`user-mismatch`),e}}async function Fp(e,t,n=!1){if(Xc(e.app))return Promise.reject(rd(e));let r=`signIn`,i=await kp(e,r,t),a=await Tp._fromIdTokenResponse(e,r,i);return n||await e._updateCurrentUser(a.user),a}async function Ip(e,t){return Fp(Cf(e),t)}async function Lp(e,t){let n=Os(e);return await Np(!1,n,t.providerId),Mp(n,t)}async function Rp(e,t){return xd(e,`POST`,`/v1/accounts:signInWithCustomToken`,vd(e,t))}async function zp(e,t){if(Xc(e.app))return Promise.reject(rd(e));let n=Cf(e),r=await Rp(n,{token:t,returnSecureToken:!0}),i=await Tp._fromIdTokenResponse(n,`signIn`,r);return await n._updateCurrentUser(i.user),i}function Bp(e,t,n){H(n.url?.length>0,e,`invalid-continue-uri`),H(n.dynamicLinkDomain===void 0||n.dynamicLinkDomain.length>0,e,`invalid-dynamic-link-domain`),t.continueUrl=n.url,t.dynamicLinkDomain=n.dynamicLinkDomain,t.canHandleCodeInApp=n.handleCodeInApp,n.iOS&&(H(n.iOS.bundleId.length>0,e,`missing-ios-bundle-id`),t.iOSBundleId=n.iOS.bundleId),n.android&&(H(n.android.packageName.length>0,e,`missing-android-pkg-name`),t.androidInstallApp=n.android.installApp,t.androidMinimumVersionCode=n.android.minimumVersion,t.androidPackageName=n.android.packageName)}async function Vp(e){let t=Cf(e);t._getPasswordPolicyInternal()&&await t._updatePasswordPolicy()}async function Hp(e,t,n){let r=Cf(e),i={requestType:`PASSWORD_RESET`,email:t,clientType:`CLIENT_TYPE_WEB`};n&&Bp(r,i,n),await If(r,i,`getOobCode`,Qf)}async function Up(e,t,n){await Gf(Os(e),{oobCode:t,newPassword:n}).catch(async t=>{throw t.code===`auth/password-does-not-meet-requirements`&&Vp(e),t})}async function Wp(e,t){await Jf(Os(e),{oobCode:t})}async function Gp(e,t,n){if(Xc(e.app))return Promise.reject(rd(e));let r=Cf(e),i=await If(r,{returnSecureToken:!0,email:t,password:n,clientType:`CLIENT_TYPE_WEB`},`signUpPassword`,wp).catch(t=>{throw t.code===`auth/password-does-not-meet-requirements`&&Vp(e),t}),a=await Tp._fromIdTokenResponse(r,`signIn`,i);return await r._updateCurrentUser(a.user),a}function Kp(e,t,n){return Xc(e.app)?Promise.reject(rd(e)):Ip(Os(e),gp.credential(t,n)).catch(async t=>{throw t.code===`auth/password-does-not-meet-requirements`&&Vp(e),t})}async function qp(e,t,n){let r=Cf(e),i={requestType:`EMAIL_SIGNIN`,email:t,clientType:`CLIENT_TYPE_WEB`};function a(e,t){H(t.handleCodeInApp,r,`argument-error`),t&&Bp(r,e,t)}a(i,n),await If(r,i,`getOobCode`,$f)}function Jp(e,t){return hp.parseLink(t)?.operation===`EMAIL_SIGNIN`}async function Yp(e,t,n){if(Xc(e.app))return Promise.reject(rd(e));let r=Os(e),i=gp.credentialWithLink(t,n||cd());return H(i._tenantId===(r.tenantId||null),r,`tenant-id-mismatch`),Ip(r,i)}async function Xp(e,t){return yd(e,`POST`,`/v1/accounts:createAuthUri`,vd(e,t))}async function Zp(e,t){let n={identifier:t,continueUri:ld()?cd():`http://localhost`},{signinMethods:r}=await Xp(Os(e),n);return r||[]}async function Qp(e,t){let n=Os(e),r={requestType:`VERIFY_EMAIL`,idToken:await e.getIdToken()};t&&Bp(n.auth,r,t);let{email:i}=await Zf(n.auth,r);i!==e.email&&await e.reload()}async function $p(e,t,n){let r=Os(e),i={requestType:`VERIFY_AND_CHANGE_EMAIL`,idToken:await e.getIdToken(),newEmail:t};n&&Bp(r.auth,i,n);let{email:a}=await ep(r.auth,i);a!==e.email&&await e.reload()}async function em(e,t){return yd(e,`POST`,`/v1/accounts:update`,t)}async function tm(e,{displayName:t,photoURL:n}){if(t===void 0&&n===void 0)return;let r=Os(e),i={idToken:await r.getIdToken(),displayName:t,photoUrl:n,returnSecureToken:!0},a=await zd(r,em(r.auth,i));r.displayName=a.displayName||null,r.photoURL=a.photoUrl||null;let o=r.providerData.find(({providerId:e})=>e===`password`);o&&(o.displayName=r.displayName,o.photoURL=r.photoURL),await r._updateTokensIfNecessary(a)}function nm(e,t){let n=Os(e);return Xc(n.auth.app)?Promise.reject(rd(n.auth)):im(n,t,null)}function rm(e,t){return im(Os(e),null,t)}async function im(e,t,n){let{auth:r}=e,i={idToken:await e.getIdToken(),returnSecureToken:!0};t&&(i.email=t),n&&(i.password=n);let a=await zd(e,Kf(r,i));await e._updateTokensIfNecessary(a,!0)}function am(e){if(!e)return null;let{providerId:t}=e,n=e.rawUserInfo?JSON.parse(e.rawUserInfo):{},r=e.isNewUser||e.kind===`identitytoolkit#SignupNewUserResponse`;if(!t&&e?.idToken){let t=Ld(e.idToken)?.firebase?.sign_in_provider;if(t)return new om(r,t!==`anonymous`&&t!==`custom`?t:null)}if(!t)return null;switch(t){case`facebook.com`:return new cm(r,n);case`github.com`:return new lm(r,n);case`google.com`:return new um(r,n);case`twitter.com`:return new dm(r,n,e.screenName||null);case`custom`:case`anonymous`:return new om(r,null);default:return new om(r,t,n)}}var om=class{constructor(e,t,n={}){this.isNewUser=e,this.providerId=t,this.profile=n}},sm=class extends om{constructor(e,t,n,r){super(e,t,n),this.username=r}},cm=class extends om{constructor(e,t){super(e,`facebook.com`,t)}},lm=class extends sm{constructor(e,t){super(e,`github.com`,t,typeof t?.login==`string`?t?.login:null)}},um=class extends om{constructor(e,t){super(e,`google.com`,t)}},dm=class extends sm{constructor(e,t,n){super(e,`twitter.com`,t,n)}};
11function fm(e){let{user:t,_tokenResponse:n}=e;return t.isAnonymous&&!n?{providerId:null,isNewUser:!1,profile:null}:am(n)}function pm(e,t){return Os(e).setPersistence(t)}function mm(e,t,n,r){return Os(e).onIdTokenChanged(t,n,r)}function hm(e,t,n){return Os(e).beforeAuthStateChanged(t,n)}function gm(e,t){return Cf(e).revokeAccessToken(t)}async function _m(e){return Os(e).delete()}function vm(e,t){return yd(e,`POST`,`/v2/accounts/mfaEnrollment:start`,vd(e,t))}var ym=`__sak`,bm=class{constructor(e,t){this.storageRetriever=e,this.type=t}_isAvailable(){try{return this.storage?(this.storage.setItem(ym,`1`),this.storage.removeItem(ym),Promise.resolve(!0)):Promise.resolve(!1)}catch{return Promise.resolve(!1)}}_set(e,t){return this.storage.setItem(e,JSON.stringify(t)),Promise.resolve()}_get(e){let t=this.storage.getItem(e);return Promise.resolve(t?JSON.parse(t):null)}_remove(e){return this.storage.removeItem(e),Promise.resolve()}get storage(){return this.storageRetriever()}},xm=1e3,Sm=10,Cm=class extends bm{constructor(){super(()=>window.localStorage,`LOCAL`),this.boundEventHandler=(e,t)=>this.onStorageEvent(e,t),this.listeners={},this.localCache={},this.pollTimer=null,this.fallbackToPolling=gf(),this._shouldAllowMigration=!0}forAllChangedKeys(e){for(let t of Object.keys(this.listeners)){let n=this.storage.getItem(t),r=this.localCache[t];n!==r&&e(t,r,n)}}onStorageEvent(e,t=!1){if(!e.key){this.forAllChangedKeys((e,t,n)=>{this.notifyListeners(e,n)});return}let n=e.key;t?this.detachListener():this.stopPolling();let r=()=>{let e=this.storage.getItem(n);!t&&this.localCache[n]===e||this.notifyListeners(n,e)},i=this.storage.getItem(n);hf()&&i!==e.newValue&&e.newValue!==e.oldValue?setTimeout(r,Sm):r()}notifyListeners(e,t){this.localCache[e]=t;let n=this.listeners[e];if(n)for(let e of Array.from(n))e(t&&JSON.parse(t))}startPolling(){this.stopPolling(),this.pollTimer=setInterval(()=>{this.forAllChangedKeys((e,t,n)=>{this.onStorageEvent(new StorageEvent(`storage`,{key:e,oldValue:t,newValue:n}),!0)})},xm)}stopPolling(){this.pollTimer&&=(clearInterval(this.pollTimer),null)}attachListener(){window.addEventListener(`storage`,this.boundEventHandler)}detachListener(){window.removeEventListener(`storage`,this.boundEventHandler)}_addListener(e,t){Object.keys(this.listeners).length===0&&(this.fallbackToPolling?this.startPolling():this.attachListener()),this.listeners[e]||(this.listeners[e]=new Set,this.localCache[e]=this.storage.getItem(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),this.listeners[e].size===0&&delete this.listeners[e]),Ob
11ject.keys(this.listeners).length===0&&(this.detachListener(),this.stopPolling())}async _set(e,t){await super._set(e,t),this.localCache[e]=JSON.stringify(t)}async _get(e){let t=await super._get(e);return this.localCache[e]=JSON.stringify(t),t}async _remove(e){await super._remove(e),delete this.localCache[e]}};Cm.type=`LOCAL`;var wm=Cm,Tm=class extends bm{constructor(){super(()=>window.sessionStorage,`SESSION`)}_addListener(e,t){}_removeListener(e,t){}};Tm.type=`SESSION`;var Em=Tm;function Dm(e){return Promise.all(e.map(async e=>{try{return{fulfilled:!0,value:await e}}catch(e){return{fulfilled:!1,reason:e}}}))}var Om=class e{constructor(e){this.eventTarget=e,this.handlersMap={},this.boundEventHandler=this.handleEvent.bind(this)}static _getInstance(t){let n=this.receivers.find(e=>e.isListeningto(t));if(n)return n;let r=new e(t);return this.receivers.push(r),r}isListeningto(e){return this.eventTarget===e}async handleEvent(e){let t=e,{eventId:n,eventType:r,data:i}=t.data,a=this.handlersMap[r];if(!a?.size)return;t.ports[0].postMessage({status:`ack`,eventId:n,eventType:r});let o=await Dm(Array.from(a).map(async e=>e(t.origin,i)));t.ports[0].postMessage({status:`done`,eventId:n,eventType:r,response:o})}_subscribe(e,t){Object.keys(this.handlersMap).length===0&&this.eventTarget.addEventListener(`message`,this.boundEventHandler),this.handlersMap[e]||(this.handlersMap[e]=new Set),this.handlersMap[e].add(t)}_unsubscribe(e,t){this.handlersMap[e]&&t&&this.handlersMap[e].delete(t),(!t||this.handlersMap[e].size===0)&&delete this.handlersMap[e],Object.keys(this.handlersMap).length===0&&this.eventTarget.removeEventListener(`message`,this.boundEventHandler)}};Om.receivers=[];function km(e=``,t=10){let n=``;for(let e=0;e<t;e++)n+=Math.floor(Math.random()*10);return e+n}var Am=class{constructor(e){this.target=e,this.handlers=new Set}removeMessageHandler(e){e.messageChannel&&(e.messageChannel.port1.removeEventListener(`message`,e.onMessage),e.messageChannel.port1.close()),this.handlers.delete(e)}async _send(e,t,n=50){let r=typeof MessageChannel<`u`?new MessageChannel:null;if(!r)throw Error(`connection_unavailable`);let i,a;return new Promise((o,s)=>{let c=km(``,20);r.port1.start();let l=setTimeout(()=>{s(Error(`unsupported_event`))},n);a={messageChannel:r,onMessage(e){let t=e;if(t.data.eventId===c)switch(t.data.status){case`ack`:clearTimeout(l),i=setTimeout(()=>{s(Error(`timeout`))},3e3);break;case`done`:clearTimeout(i),o(t.data.response);break;default:clearTimeout(l),clearTimeout(i),s(Error(`invalid_response`))}}},this.handlers.add(a),r.port1.addEventListener(`message`,a.onMessage),this.target.postMessage({eventType:e,eventId:c,data:t},[r.port2])}).finally(()=>{a&&this.removeMessageHandler(a)})}};function jm(){return window}function Mm(e){jm().location.href=e}function Nm(){return jm().WorkerGlobalScope!==void 0&&typeof jm().importScripts==`function`}async function Pm(){if(!(navigator!=null&&navigator.serviceWorker))return null;try{return(await navigator.serviceWorker.ready).active}catch{return null}}function Fm(){return(navigator==null?void 0:navigator.serviceWorker)?.controller||null}function Im(){return Nm()?self:null}var Lm=`firebaseLocalStorageDb`,Rm=1,zm=`firebaseLocalStorage`,Bm=`fbase_key`,Vm=class{constructor(e){this.request=e}toPromise(){return new Promise((e,t)=>{this.request.addEventListener(`success`,()=>{e(this.request.result)}),this.request.addEventListener(`error`,()=>{t(this.request.error)})})}};function Hm(e,t){return e.transaction([zm],t?`readwrite`:`readonly`).objectStore(zm)}function Um(){return new Vm(indexedDB.deleteDatabase(Lm)).toPromise()}function Wm(){let e=indexedDB.open(Lm,Rm);return new Promise((t,n)=>{e.addEventListener(`error`,()=>{n(e.error)}),e.addEventListener(`upgradeneeded`,()=>{let t=e.result;try{t.createObjectStore(zm,{keyPath:Bm})}catch(e){n(e)}}),e.addEventListener(`success`,async()=>{let n=e.result;n.objectStoreNames.contains(zm)?t(n):(n.close(),await Um(),t(await Wm()))})})}async function Gm(e,t,n){return new Vm(Hm(e,!0).put({[Bm]:t,value:n})).toPromise()}async function Km(e,t){let n=await new Vm(Hm(e,!1).get(t)).toPromise();return n===void 0?null:n.value}function qm(e,t){return new Vm(Hm(e,!0).delete(t)).toPromise()}var Jm=800,Ym=3,Xm=class{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||=await Wm(),this.db}async _withRetries(e){let t=0;for(;;)try{return await e(await this._openDb())}catch(e){if(t++>Ym)throw e;this.db&&=(this.db.close(),void 0)}}async initializeServiceWorkerMessaging(){return Nm()?this.initializeReceiver():this.initializeSender()}async initializeReceiver(){this.receiver=Om._getInstance(Im()),this.receiver._subscribe(`keyChanged`,async(e,t)=>({keyProcessed:(await this._poll()).includes(t.key)})),this.receiver._subscribe(`ping`,async(e,t)=>[`keyChanged`])}
11async initializeSender(){if(this.activeServiceWorker=await Pm(),!this.activeServiceWorker)return;this.sender=new Am(this.activeServiceWorker);let e=await this.sender._send(`ping`,{},800);e&&e[0]?.fulfilled&&e[0]?.value.includes(`keyChanged`)&&(this.serviceWorkerReceiverAvailable=!0)}async notifyServiceWorker(e){if(!(!this.sender||!this.activeServiceWorker||Fm()!==this.activeServiceWorker))try{await this.sender._send(`keyChanged`,{key:e},this.serviceWorkerReceiverAvailable?800:50)}catch{}}async _isAvailable(){try{if(!indexedDB)return!1;let e=await Wm();return await Gm(e,ym,`1`),await qm(e,ym),!0}catch{}return!1}async _withPendingWrite(e){this.pendingWrites++;try{await e()}finally{this.pendingWrites--}}async _set(e,t){return this._withPendingWrite(async()=>(await this._withRetries(n=>Gm(n,e,t)),this.localCache[e]=t,this.notifyServiceWorker(e)))}async _get(e){let t=await this._withRetries(t=>Km(t,e));return this.localCache[e]=t,t}async _remove(e){return this._withPendingWrite(async()=>(await this._withRetries(t=>qm(t,e)),delete this.localCache[e],this.notifyServiceWorker(e)))}async _poll(){let e=await this._withRetries(e=>new Vm(Hm(e,!1).getAll()).toPromise());if(!e||this.pendingWrites!==0)return[];let t=[],n=new Set;if(e.length!==0)for(let{fbase_key:r,value:i}of e)n.add(r),JSON.stringify(this.localCache[r])!==JSON.stringify(i)&&(this.notifyListeners(r,i),t.push(r));for(let e of Object.keys(this.localCache))this.localCache[e]&&!n.has(e)&&(this.notifyListeners(e,null),t.push(e));return t}notifyListeners(e,t){this.localCache[e]=t;let n=this.listeners[e];if(n)for(let e of Array.from(n))e(t)}startPolling(){this.stopPolling(),this.pollTimer=setInterval(async()=>this._poll(),Jm)}stopPolling(){this.pollTimer&&=(clearInterval(this.pollTimer),null)}_addListener(e,t){Object.keys(this.listeners).length===0&&this.startPolling(),this.listeners[e]||(this.listeners[e]=new Set,this._get(e)),this.listeners[e].add(t)}_removeListener(e,t){this.listeners[e]&&(this.listeners[e].delete(t),this.listeners[e].size===0&&delete this.listeners[e]),Ob
11ject.keys(this.listeners).length===0&&this.stopPolling()}};Xm.type=`LOCAL`;var Zm=Xm;function Qm(e,t){return yd(e,`POST`,`/v2/accounts/mfaSignIn:start`,vd(e,t))}var $m=500,eh=6e4,th=0xe8d4a51000,nh=class{constructor(e){this.auth=e,this.counter=th,this._widgets=new Map}render(e,t){let n=this.counter;return this._widgets.set(n,new rh(e,this.auth.name,t||{})),this.counter++,n}reset(e){var t;let n=e||th;(t=this._widgets.get(n))==null||t.delete(),this._widgets.delete(n)}getResponse(e){let t=e||th;return this._widgets.get(t)?.getResponse()||``}async execute(e){var t;let n=e||th;return(t=this._widgets.get(n))==null||t.execute(),``}},rh=class{constructor(e,t,n){this.params=n,this.timerId=null,this.deleted=!1,this.responseToken=null,this.clickHandler=()=>{this.execute()};let r=typeof e==`string`?document.getElementById(e):e;H(r,`argument-error`,{appName:t}),this.container=r,this.isVisible=this.params.size!==`invisible`,this.isVisible?this.execute():this.container.addEventListener(`click`,this.clickHandler)}getResponse(){return this.checkIfDeleted(),this.responseToken}delete(){this.checkIfDeleted(),this.deleted=!0,this.timerId&&=(clearTimeout(this.timerId),null),this.container.removeEventListener(`click`,this.clickHandler)}execute(){this.checkIfDeleted(),!this.timerId&&(this.timerId=window.setTimeout(()=>{this.responseToken=ih(50);let{callback:e,"expired-callback":t}=this.params;if(e)try{e(this.responseToken)}catch{}this.timerId=window.setTimeout(()=>{if(this.timerId=null,this.responseToken=null,t)try{t()}catch{}this.isVisible&&this.execute()},eh)},$m))}checkIfDeleted(){if(this.deleted)throw Error(`reCAPTCHA mock was already deleted!`)}};function ih(e){let t=[];for(let n=0;n<e;n++)t.push(`1234567890abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ`.charAt(Math.floor(Math.random()*62)));return t.join(``)}var ah=jf(`rcb`),oh=new pd(3e4,6e4),sh=class{constructor(){this.hostLanguage=``,this.counter=0,this.librarySeparatelyLoaded=!!jm().grecaptcha?.render}load(e,t=``){return H(ch(t),e,`argument-error`),this.shouldResolveImmediately(t)&&Ed(jm().grecaptcha)?Promise.resolve(jm().grecaptcha):new Promise((n,r)=>{let i=jm().setTimeout(()=>{r(td(e,`network-request-failed`))},oh.get());jm()[ah]=()=>{jm().clearTimeout(i),delete jm()[ah];let a=jm().grecaptcha;if(!a||!Ed(a)){r(td(e,`internal-error`));return}let o=a.render;a.render=(e,t)=>{let n=o(e,t);return this.counter++,n},this.hostLanguage=t,n(a)},Df(`${Of()}?${hs({onload:ah,render:`explicit`,hl:t})}`).catch(()=>{clearTimeout(i),r(td(e,`internal-error`))})})}clearedOneInstance(){this.counter--}shouldResolveImmediately(e){return!!jm().grecaptcha?.render&&(e===this.hostLanguage||this.counter>0||this.librarySeparatelyLoaded)}};function ch(e){return e.length<=6&&/^\s*[a-zA-Z0-9\-]*\s*$/.test(e)}var lh=class{async load(e){return new nh(e)}clearedOneInstance(){}},uh=`recaptcha`,dh={theme:`light`,type:`image`},fh=class{constructor(e,t,n=Object.assign({},dh)){this.parameters=n,this.type=uh,this.destroyed=!1,this.widgetId=null,this.tokenChangeListeners=new Set,this.renderPromise=null,this.recaptcha=null,this.auth=Cf(e),this.isInvisible=this.parameters.size===`invisible`,H(typeof document<`u`,this.auth,`operation-not-supported-in-this-environment`);let r=typeof t==`string`?document.getElementById(t):t;H(r,this.auth,`argument-error`),this.container=r,this.parameters.callback=this.makeTokenCallback(this.parameters.callback),this._recaptchaLoader=this.auth.settings.appVerificationDisabledForTesting?new lh:new sh,this.validateStartingState()}async verify(){this.assertNotDestroyed();let e=await this.render(),t=this.getAssertedRecaptcha();return t.getResponse(e)||new Promise(n=>{let r=e=>{e&&(this.tokenChangeListeners.delete(r),n(e))};this.tokenChangeListeners.add(r),this.isInvisible&&t.execute(e)})}render(){try{this.assertNotDestroyed()}catch(e){return Promise.reject(e)}return this.renderPromise||=this.makeRenderPromise().catch(e=>{throw this.renderPromise=null,e}),this.renderPromise}_reset(){this.assertNotDestroyed(),this.widgetId!==null&&this.getAssertedRecaptcha().reset(this.widgetId)}clear(){this.assertNotDestroyed(),this.destroyed=!0,this._recaptchaLoader.clearedOneInstance(),this.isInvisible||this.container.childNodes.forEac
11h(e=>{this.container.removeChild(e)})}validateStartingState(){H(!this.parameters.sitekey,this.auth,`argument-error`),H(this.isInvisible||!this.container.hasChildNodes(),this.auth,`argument-error`),H(typeof document<`u`,this.auth,`operation-not-supported-in-this-environment`)}makeTokenCallback(e){return t=>{if(this.tokenChangeListeners.forEach(e=>e(t)),typeof e==`function`)e(t);else if(typeof e==`string`){let n=jm()[e];typeof n==`function`&&n(t)}}}assertNotDestroyed(){H(!this.destroyed,this.auth,`internal-error`)}async makeRenderPromise(){if(await this.init(),!this.widgetId){let e=this.container;if(!this.isInvisible){let t=document.createElement(`div`);e.appendChild(t),e=t}this.widgetId=this.getAssertedRecaptcha().render(e,this.parameters)}return this.widgetId}async init(){H(ld()&&!Nm(),this.auth,`internal-error`),await ph(),this.recaptcha=await this._recaptchaLoader.load(this.auth,this.auth.languageCode||void 0);let e=await kd(this.auth);H(e,this.auth,`internal-error`),this.parameters.sitekey=e}getAssertedRecaptcha(){return H(this.recaptcha,this.auth,`internal-error`),this.recaptcha}};function ph(){let e=null;return new Promise(t=>{if(document.readyState===`complete`){t();return}e=()=>t(),window.addEventListener(`load`,e)}).catch(t=>{throw e&&window.removeEventListener(`load`,e),t})}var mh=class{constructor(e,t){this.verificationId=e,this.onConfirmation=t}confirm(e){let t=fp._fromVerification(this.verificationId,e);return this.onConfirmation(t)}};async function hh(e,t,n){if(Xc(e.app))return Promise.reject(rd(e));let r=Cf(e);return new mh(await _h(r,t,Os(n)),e=>Ip(r,e))}async function gh(e,t,n){let r=Os(e);return await Np(!1,r,`phone`),new mh(await _h(r.auth,t,Os(n)),e=>Lp(r,e))}async function _h(e,t,n){let r=await n.verify();try{H(typeof r==`string`,e,`argument-error`),H(n.type===uh,e,`argument-error`);let i;if(i=typeof t==`string`?{phoneNumber:t}:t,`session`in i){let t=i.session;if(`phoneNumber`in i)return H(t.type===`enroll`,e,`internal-error`),(await vm(e,{idToken:t.credential,phoneEnrollmentInfo:{phoneNumber:i.phoneNumber,recaptchaToken:r}})).phoneSessionInfo.sessionInfo;{H(t.type===`signin`,e,`internal-error`);let n=i.multiFactorHint?.uid||i.multiFactorUid;return H(n,e,`missing-multi-factor-info`),(await Qm(e,{mfaPendingCredential:t.credential,mfaEnrollmentId:n,phoneSignInInfo:{recaptchaToken:r}})).phoneResponseInfo.sessionInfo}}{let{sessionInfo:t}=await sp(e,{phoneNumber:i.phoneNumber,recaptchaToken:r});return t}}finally{n._reset()}}function vh(e,t){return t?$d(t):(H(e._popupRedirectResolver,e,`argument-error`),e._popupRedirectResolver)}var yh=class extends Wf{constructor(e){super(`custom`,`custom`),this.params=e}_getIdTokenResponse(e){return ip(e,this._buildIdpRequest())}_linkToIdToken(e,t){return ip(e,this._buildIdpRequest(t))}_getReauthenticationResolver(e){return ip(e,this._buildIdpRequest())}_buildIdpRequest(e){let t={requestUri:this.params.requestUri,sessionId:this.params.sessionId,postBody:this.params.postBody,tenantId:this.params.tenantId,pendingToken:this.params.pendingToken,returnSecureToken:!0,returnIdpCredential:!0};return e&&(t.idToken=e),t}};function bh(e){return Fp(e.auth,new yh(e),e.bypassAuthState)}function xh(e){let{auth:t,user:n}=e;return H(n,t,`internal-error`),Pp(n,new yh(e),e.bypassAuthState)}async function Sh(e){let{auth:t,user:n}=e;return H(n,t,`internal-error`),Mp(n,new yh(e),e.bypassAuthState)}var Ch=class{constructor(e,t,n,r,i=!1){this.auth=e,this.resolver=n,this.user=r,this.bypassAuthState=i,this.pendingPromise=null,this.eventManager=null,this.filter=Array.isArray(t)?t:[t]}execute(){return new Promise(async(e,t)=>{this.pendingPromise={resolve:e,reject:t};try{this.eventManager=await this.resolver._initialize(this.auth),await this.onExecution(),this.eventManager.registerConsumer(this)}catch(e){this.reject(e)}})}async onAuthEvent(e){let{urlResponse:t,sessionId:n,postBody:r,tenantId:i,error:a,type:o}=e;if(a){this.reject(a);return}let s={auth:this.auth,requestUri:t,sessionId:n,tenantId:i||void 0,postBody:r||void 0,user:this.user,bypassAuthState:this.bypassAuthState};try{this.resolve(await this.getIdpTask(o)(s))}catch(e){this.reject(e)}}onError(e){this.reject(e)}getIdpTask(e){switch(e){case`signInViaPopup`:case`signInViaRedirect`:return bh;case`linkViaPopup`:case`linkViaRedirect`:return Sh;case`reauthViaPopup`:case`reauthViaRedirect`:return xh;default:ed(this.auth,`internal-error`)}}resolve(e){sd(this.pendingPromise,`Pending promise was never set`),this.pendingPromise.resolve(e),this.unregisterAndCleanUp()}reject(e){sd(this.pendingPromise,`Pending promise was never set`),this.pendingPromise.reject(e),this.unregisterAndCleanUp()}unregisterAndCleanUp(){this.eventManager&&this.eventManager.unregisterConsumer(this),this.pendingPromise=null,this.cleanUp()}},wh=new pd(2e3,1e4);async function Th(e,t,n){if(Xc(e.app))return Promise.reject(td(e,`operation-not-supported-in-this-environment`));let r=Cf(e);return id(e,t,_p),new Dh(r,`signInViaPopup`,t,vh(r,n)).executeNotNull()}
11async function Eh(e,t,n){let r=Os(e);id(r.auth,t,_p);let i=vh(r.auth,n);return new Dh(r.auth,`linkViaPopup`,t,i,r).executeNotNull()}var Dh=class e extends Ch{constructor(t,n,r,i,a){super(t,n,i,a),this.provider=r,this.authWindow=null,this.pollId=null,e.currentPopupAction&&e.currentPopupAction.cancel(),e.currentPopupAction=this}async executeNotNull(){let e=await this.execute();return H(e,this.auth,`internal-error`),e}async onExecution(){sd(this.filter.length===1,`Popup operations only handle one event`);let e=km();this.authWindow=await this.resolver._openPopup(this.auth,this.provider,this.filter[0],e),this.authWindow.associatedEvent=e,this.resolver._originValidation(this.auth).catch(e=>{this.reject(e)}),this.resolver._isIframeWebStorageSupported(this.auth,e=>{e||this.reject(td(this.auth,`web-storage-unsupported`))}),this.pollUserCancellation()}get eventId(){return this.authWindow?.associatedEvent||null}cancel(){this.reject(td(this.auth,`cancelled-popup-request`))}cleanUp(){this.authWindow&&this.authWindow.close(),this.pollId&&window.clearTimeout(this.pollId),this.authWindow=null,this.pollId=null,e.currentPopupAction=null}pollUserCancellation(){let e=()=>{if(this.authWindow?.window?.closed){this.pollId=window.setTimeout(()=>{this.pollId=null,this.reject(td(this.auth,`popup-closed-by-user`))},8e3);return}this.pollId=window.setTimeout(e,wh.get())};e()}};Dh.currentPopupAction=null;var Oh=`pendingRedirect`,kh=new Map,Ah=class extends Ch{constructor(e,t,n=!1){super(e,[`signInViaRedirect`,`linkViaRedirect`,`reauthViaRedirect`,`unknown`],t,void 0,n),this.eventId=null}async execute(){let e=kh.get(this.auth._key());if(!e){try{let t=await jh(this.resolver,this.auth)?await super.execute():null;e=()=>Promise.resolve(t)}catch(t){e=()=>Promise.reject(t)}kh.set(this.auth._key(),e)}return this.bypassAuthState||kh.set(this.auth._key(),()=>Promise.resolve(null)),e()}async onAuthEvent(e){if(e.type===`signInViaRedirect`)return super.onAuthEvent(e);if(e.type===`unknown`){this.resolve(null);return}if(e.eventId){let t=await this.auth._redirectUserForId(e.eventId);if(t)return this.user=t,super.onAuthEvent(e);this.resolve(null)}}async onExecution(){}cleanUp(){}};async function jh(e,t){let n=Fh(t),r=Ph(e);if(!await r._isAvailable())return!1;let i=await r._get(n)===`true`;return await r._remove(n),i}async function Mh(e,t){return Ph(e)._set(Fh(t),`true`)}function Nh(e,t){kh.set(e._key(),t)}function Ph(e){return $d(e._redirectPersistence)}function Fh(e){return nf(Oh,e.config.apiKey,e.name)}function Ih(e,t,n){return Lh(e,t,n)}async function Lh(e,t,n){if(Xc(e.app))return Promise.reject(rd(e));let r=Cf(e);id(e,t,_p),await r._initializationPromise;let i=vh(r,n);return await Mh(i,r),i._openRedirect(r,t,`signInViaRedirect`)}function Rh(e,t,n){return zh(e,t,n)}async function zh(e,t,n){let r=Os(e);id(r.auth,t,_p),await r.auth._initializationPromise;let i=vh(r.auth,n);await Np(!1,r,t.providerId),await Mh(i,r.auth);let a=await Hh(r);return i._openRedirect(r.auth,t,`linkViaRedirect`,a)}async function Bh(e,t){return await Cf(e)._initializationPromise,Vh(e,t,!1)}async function Vh(e,t,n=!1){if(Xc(e.app))return Promise.reject(rd(e));let r=Cf(e),i=await new Ah(r,vh(r,t),n).execute();return i&&!n&&(delete i.user._redirectEventId,await r._persistUserIfCurrent(i.user),await r._setRedirectUser(null,t)),i}async function Hh(e){let t=km(`${e.uid}:::`);return e._redirectEventId=t,await e.auth._setRedirectUser(e),await e.auth._persistUserIfCurrent(e),t}var Uh=6e5,Wh=class{constructor(e){this.auth=e,this.cachedEventUids=new Set,this.consumers=new Set,this.queuedRedirectEvent=null,this.hasHandledPotentialRedirect=!1,this.lastProcessedEventTime=Date.now()}registerConsumer(e){this.consumers.add(e),this.queuedRedirectEvent&&this.isEventForConsumer(this.queuedRedirectEvent,e)&&(this.sendToConsumer(this.queuedRedirectEvent,e),this.saveEventToCache(this.queuedRedirectEvent),this.queuedRedirectEvent=null)}unregisterConsumer(e){this.consumers.delete(e)}onEvent(e){if(this.hasEventBeenHandled(e))return!1;let t=!1;return this.consumers.forEach(n=>{this.isEventForConsumer(e,n)&&(t=!0,this.sendToConsumer(e,n),this.saveEventToCache(e))}),this.hasHandledPotentialRedirect||!qh(e)?t:(this.hasHandledPotentialRedirect=!0,t||=(this.queuedRedirectEvent=e,!0),t)}sendToConsumer(e,t){if(e.error&&!Kh(e)){let n=e.error.code?.split(`auth/`)[1]||`internal-error`;t.onError(td(this.auth,n))}else t.onAuthEvent(e)}isEventForConsumer(e,t){let n=t.eventId===null||!!e.eventId&&e.eventId===t.eventId;return t.filter.includes(e.type)&&n}hasEventBeenHandled(e){return Date.now()-this.lastProcessedEventTime>=Uh&&this.cachedEventUids.clear(),this.cachedEventUids.has(Gh(e))}saveEventToCache(e){this.cachedEventUids.add(Gh(e)),this.lastProcessedEventTime=
11Date.now()}};function Gh(e){return[e.type,e.eventId,e.sessionId,e.tenantId].filter(e=>e).join(`-`)}function Kh({type:e,error:t}){return e===`unknown`&&t?.code===`auth/no-auth-event`}function qh(e){switch(e.type){case`signInViaRedirect`:case`linkViaRedirect`:case`reauthViaRedirect`:return!0;case`unknown`:return Kh(e);default:return!1}}async function Jh(e,t={}){return yd(e,`GET`,`/v1/projects`,t)}var Yh=/^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/,Xh=/^https?/;async function Zh(e){if(e.config.emulator)return;let{authorizedDomains:t}=await Jh(e);for(let e of t)try{if(Qh(e))return}catch{}ed(e,`unauthorized-domain`)}function Qh(e){let t=cd(),{protocol:n,hostname:r}=new URL(t);if(e.startsWith(`chrome-extension://`)){let i=new URL(e);return i.hostname===``&&r===``?n===`chrome-extension:`&&e.replace(`chrome-extension://`,``)===t.replace(`chrome-extension://`,``):n===`chrome-extension:`&&i.hostname===r}if(!Xh.test(n))return!1;if(Yh.test(e))return r===e;let i=e.replace(/\./g,`\\.`);return RegExp(`^(.+\\.`+i+`|`+i+`)$`,`i`).test(r)}var $h=new pd(3e4,6e4);function eg(){let e=jm().___jsl;if(e?.H){for(let t of Object.keys(e.H))if(e.H[t].r=e.H[t].r||[],e.H[t].L=e.H[t].L||[],e.H[t].r=[...e.H[t].L],e.CP)for(let t=0;t<e.CP.length;t++)e.CP[t]=null}}function tg(e){return new Promise((t,n)=>{function r(){eg(),gapi.load(`gapi.iframes`,{callback:()=>{t(gapi.iframes.getContext())},ontimeout:()=>{eg(),n(td(e,`network-request-failed`))},timeout:$h.get()})}if(jm().gapi?.iframes?.Iframe)t(gapi.iframes.getContext());else if(jm().gapi?.load)r();else{let t=jf(`iframefcb`);return jm()[t]=()=>{gapi.load?r():n(td(e,`network-request-failed`))},Df(`${Af()}?onload=${t}`).catch(e=>n(e))}}).catch(e=>{throw ng=null,e})}var ng=null;function rg(e){return ng||=tg(e),ng}var ig=new pd(5e3,15e3),ag=`__/auth/iframe`,og=`emulator/auth/iframe`,sg={style:{position:`absolute`,top:`-100px`,width:`1px`,height:`1px`},"aria-hidden":`true`,tabindex:`-1`},cg=new Map([[`identitytoolkit.googleapis.com`,`p`],[`staging-identitytoolkit.sandbox.googleapis.com`,`s`],[`test-identitytoolkit.sandbox.googleapis.com`,`t`]]);function lg(e){let t=e.config;H(t.authDomain,e,`auth-domain-config-required`);let n=t.emulator?md(t,og):`https://${e.config.authDomain}/${ag}`,r={apiKey:t.apiKey,appName:e.name,v:$c},i=cg.get(e.config.apiHost);i&&(r.eid=i);let a=e._getFrameworks();return a.length&&(r.fw=a.join(`,`)),`${n}?${hs(r).slice(1)}`}async function ug(e){let t=await rg(e),n=jm().gapi;return H(n,e,`internal-error`),t.open({where:document.body,url:lg(e),messageHandlersFilter:n.iframes.CROSS_ORIGIN_IFRAMES_FILTER,attributes:sg,dontclear:!0},t=>new Promise(async(n,r)=>{await t.restyle({setHideOnLeave:!1});let i=td(e,`network-request-failed`),a=jm().setTimeout(()=>{r(i)},ig.get());function o(){jm().clearTimeout(a),n(t)}t.ping(o).then(o,()=>{r(i)})}))}var dg={location:`yes`,resizable:`yes`,statusbar:`yes`,toolbar:`no`},fg=500,pg=600,mg=`_blank`,hg=`http://localhost`,gg=class{constructor(e){this.window=e,this.associatedEvent=null}close(){if(this.window)try{this.window.close()}catch{}}};function _g(e,t,n,r=fg,i=pg){let a=Math.max((window.screen.availHeight-i)/2,0).toString(),o=Math.max((window.screen.availWidth-r)/2,0).toString(),s=``,c=Object.assign(Object.assign({},dg),{width:r.toString(),height:i.toString(),top:a,left:o}),l=Jo().toLowerCase();n&&(s=cf(l)?mg:n),of(l)&&(t||=hg,c.scrollbars=`yes`);let u=Object.entries(c).reduce((e,[t,n])=>`${e}${t}=${n},`,``);if(mf(l)&&s!==`_self`)return vg(t||``,s),new gg(null);let d=window.open(t||``,s,u);H(d,e,`popup-blocked`);try{d.focus()}catch{}return new gg(d)}function vg(e,t){let n=document.createElement(`a`);n.href=e,n.target=t;let r=document.createEvent(`MouseEvent`);r.initMouseEvent(`click`,!0,!0,window,1,0,0,0,0,!1,!1,!1,!1,1,null),n.dispatchEvent(r)}var yg=`__/auth/handler`,bg=`emulator/auth/handler`,xg=`fac`;async function Sg(e,t,n,r,i,a){H(e.config.authDomain,e,`auth-domain-config-required`),H(e.config.apiKey,e,`invalid-api-key`);let o={apiKey:e.config.apiKey,appName:e.name,authType:n,redirectUrl:r,v:$c,eventId:i};if(t instanceof _p){t.setDefaultLanguage(e.languageCode),o.providerId=t.providerId||``,fs(t.getCustomParameters())||(o.customParameters=JSON.stringify(t.getCustomParameters()));for(let[e,t]of Object.entries(a||{}))o[e]=t}if(t instanceof vp){let e=t.getScopes().filter(e=>e!==``);e.length>0&&(o.scopes=e.join(`,`))}e.tenantId&&(o.tid=e.tenantId);let s=o;for(let e of Object.keys(s))s[e]===void 0&&delete s[e];let c=await e._getAppCheckToken(),l=c?`#${xg}=${encodeURIComponent(c)}`:``;return`${Cg(e)}?${hs(s).slice(1)}${l}`}function Cg({config:e}){return e.emulator?md(e,bg):`https://${e.authDomain}/${yg}`}var wg=`webStorageSupport`,Tg=class{constructor(){this.eventManagers={},this.iframes={},this.originValidationPromises={},this._redirectPersistence=Em,this._completeRedirectFn=Vh,this._overrideRedirectResult=Nh}async _openPopup(e,t,n,r){return sd(this.eventManagers[e._key()]?.manager,`_initialize() not called before _openPopup()`),_g(e,await Sg(e,t,n,cd(),r),km())}async _openRedirect(e,t,n,r){return await this._originValidation(e),Mm(await Sg(e,t,n,cd(),r)),new Promise(()=>{})}_initialize(e){let t=e._key();if(this.eventManagers[t]){let{manager:e,promise:n}=this.eventManagers[t];return e?Promise.resolve(e):(sd(n,`If manager is not set, promise should be`),n)}let n=this.initAndGetManager(e);return this.eventManagers[t]={promise:n},n.catch(()=>{delete this.eventManagers[t]}),n}async initAndGetManager(e){let t=await ug(e),n=new Wh(e);return t.register(`authEvent`,t=>(H(t?.authEvent,e,`invalid-auth-event`),{status:n.onEvent(t.authEvent)?`ACK`:`ERROR`}),gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER),this.eventManagers[e._key()]={manager:n},this.iframes[e._key()]=t,n}_isIframeWebStorageSupported(e,t){this.iframes[e._key()].send(wg,{type:wg},n=>{let r=n?.[0]?.[wg];r!==void 0&&t(!!r),ed(e,`internal-error`)},gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER)}_originValidation(e){let t=e._key();return this.originValidationPromises[t]||(this.originValidationPromises[t]=Zh(e)),this.originValidationPromises[t]}get _shouldInitProactively(){return gf()||sf()||pf()}},Eg=`@firebase/auth`,Dg=`1.7.9`,Og=class{constructor(e){this.auth=e,this.internalListeners=new Map}getUid(){return this.assertAuthConfigured(),this.auth.currentUser?.uid||null}async getToken(e){return this.assertAuthConfigured(),await this.auth._initializationPromise,this.auth.currentUser?{accessToken:await this.auth.currentUser.getIdToken(e)}:null}addAuthTokenListener(e){if(this.assertAuthConfigured(),this.internalListeners.has(e))return;let t=this.auth.onIdTokenChanged(t=>{e(t?.stsTokenManager.accessToken||null)});this.internalListeners.set(e,t),this.updateProactiveRefresh()}removeAuthTokenListener(e){this.assertAuthConfigured();let t=this.internalListeners.get(e);t&&(this.internalListeners.delete(e),t(),this.updateProactiveRefresh())}assertAuthConfigured(){H(this.auth._initializationPromise,`dependent-sdk-initialized-before-auth`)}updateProactiveRefresh(){this.internalListeners.size>0?this.auth._startProactiveRefresh():this.auth._stopProactiveRefresh()}};function kg(e){switch(e){case`Node`:return`node`;case`ReactNative`:return`rn`;case`Worker`:return`webworker`;case`Cordova`:return`cordova`;case`WebExtension`:return`web-extension`;default:return}}function Ag(e){Jc(new ks(`auth`,(t,{options:n})=>{let r=t.getProvider(`app`).getImmediate(),i=t.getProvider(`heartbeat`),a=t.getProvider(`app-check-internal`),{apiKey:o,authDomain:s}=r.options;H(o&&!o.includes(`:`),`invalid-api-key`,{appName:r.name});let c=new Sf(r,i,a,{apiKey:o,authDomain:s,clientPlatform:e,apiHost:`identitytoolkit.googleapis.com`,tokenApiHost:`securetoken.googleapis.com`,apiScheme:`https`,sdkClientVersion:_f(e)});return Rf(c,n),c},`PUBLIC`).setInstantiationMode(`EXPLICIT`).setInstanceCreatedCallback((e,t,n)=>{e.getProvider(`auth-internal`).initialize()})),Jc(new ks(`auth-internal`,e=>(e=>new Og(e))(Cf(e.getProvider(`auth`).getImmediate())),`PRIVATE`).setInstantiationMode(`EXPLICIT`)),nl(Eg,Dg,kg(e)),nl(Eg,Dg,`esm2017`)}var jg=Go(`authIdTokenMaxAge`)||300,Mg=null,Ng=e=>async t=>{let n=t&&await t.getIdTokenResult(),r=n&&(new Date().getTime()-Date.parse(n.issuedAtTime))/1e3;if(r&&r>jg)return;let i=n?.token;
11Mg!==i&&(Mg=i,await fetch(e,{method:i?`POST`:`DELETE`,headers:i?{Authorization:`Bearer ${i}`}:{}}))};function Pg(e=tl()){let t=Yc(e,`auth`);if(t.isInitialized())return t.getImmediate();let n=Lf(e,{popupRedirectResolver:Tg,persistence:[Zm,wm,Em]}),r=Go(`authTokenSyncURL`);if(r&&typeof isSecureContext==`boolean`&&isSecureContext){let e=new URL(r,location.origin);if(location.origin===e.origin){let t=Ng(e.toString());hm(n,t,()=>t(n.currentUser)),mm(n,e=>t(e))}}let i=Ho(`auth`);return i&&zf(n,`http://${i}`),n}function Fg(){return document.getElementsByTagName(`head`)?.[0]??document}Ef({loadJS(e){return new Promise((t,n)=>{let r=document.createElement(`script`);r.setAttribute(`src`,e),r.onload=t,r.onerror=e=>{let t=td(`internal-error`);t.customData=e,n(t)},r.type=`text/javascript`,r.charset=`UTF-8`,Fg().appendChild(r)})},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=`}),Ag(`Browser`);var Ig=j(`FirebaseAppCheck`,{web:()=>xe(()=>import(`./web-CGEXiq-q.js`).then(e=>new e.FirebaseAppCheckWeb),[])}),Lg={apiKey:`AIzaSyBRNP7U8vZEuCTumdim_ZLencN0u_I93no`,authDomain:`contexto.me`,projectId:`daydashgames`,storageBucket:`daydashgames.firebasestorage.app`,messagingSenderId:`689008611670`,appId:`1:689008611670:web:651483f8a1565b06eb46f7`},Rg={...Lg,appId:`1:689008611670:ios:61e9828d9a3684aeeb46f7`},zg={...Lg,appId:`1:689008611670:android:998737c3848d0234eb46f7`},Bg=`6LdLI0ErAAAAAItt0COJtP9UMnRjZkjq90VjUPRz`,Vg=!1,Hg=1e4;function Ug(){return A.isNativePlatform()?A.getPlatform()===`ios`?Rg:zg:Lg}var Wg=el(Ug()),Gg=new xp;function Kg(){let e=Ig.initialize({isTokenAutoRefreshEnabled:!0,debug:Vg});return Ru(Wg,{provider:new Fu({getToken:()=>Promise.race([e.then(()=>Ig.getToken()),new Promise((e,t)=>setTimeout(()=>t(Error(`AppCheck token timeout`)),Hg))])}),isTokenAutoRefreshEnabled:!1}),e}var qg=A.isNativePlatform()?Kg():null,Jg=A.isNativePlatform()?Lf(Wg,{persistence:wm}):Pg(Wg);Jg.useDeviceLanguage();async function Yg(){if(A.isNativePlatform()){await qg;return}window.FIREBASE_APPCHECK_DEBUG_TOKEN=!1,Ru(Wg,{provider:new Pu(Bg),isTokenAutoRefreshEnabled:!0})}var Xg=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},Zg={},Qg,$g;(function(){var e;function t(e,t){function n(){}n.prototype=t.prototype,e.D=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.C=function(e,n,r){for(var i=Array(arguments.length-2),a=2;a<arguments.length;a++)i[a-2]=arguments[a];return t.prototype[n].apply(e,i)}}function n(){this.blockSize=-1}function r(){this.blockSize=-1,this.blockSize=64,this.g=[,,,,],this.B=Array(this.blockSize),this.o=this.h=0,this.s()}t(r,n),r.prototype.s=function(){this.g[0]=1732584193,this.g[1]=4023233417,this.g[2]=2562383102,this.g[3]=271733878,this.o=this.h=0};function i(e,t,n){n||=0;var r=Array(16);if(typeof t==`string`)for(var i=0;16>i;++i)r[i]=t.charCodeAt(n++)|t.charCodeAt(n++)<<8|t.charCodeAt(n++)<<16|t.charCodeAt(n++)<<24;else for(i=0;16>i;++i)r[i]=t[n++]|t[n++]<<8|t[n++]<<16|t[n++]<<24;t=e.g[0],n=e.g[1],i=e.g[2];var a=e.g[3],o=t+(a^n&(i^a))+r[0]+3614090360&4294967295;t=n+(o<<7&4294967295|o>>>25),o=a+(i^t&(n^i))+r[1]+3905402710&4294967295,a=t+(o<<12&4294967295|o>>>20),o=i+(n^a&(t^n))+r[2]+606105819&4294967295,i=a+(o<<17&4294967295|o>>>15),o=n+(t^i&(a^t))+r[3]+3250441966&4294967295,n=i+(o<<22&4294967295|o>>>10),o=t+(a^n&(i^a))+r[4]+4118548399&4294967295,t=n+(o<<7&4294967295|o>>>25),o=a+(i^t&(n^i))+r[5]+1200080426&4294967295,a=t+(o<<12&4294967295|o>>>20),o=i+(n^a&(t^n))+r[6]+2821735955&4294967295,i=a+(o<<17&4294967295|o>>>15),o=n+(t^i&(a^t))+r[7]+4249261313&4294967295,n=i+(o<<22&4294967295|o>>>10),o=t+(a^n&(i^a))+r[8]+1770035416&4294967295,t=n+(o<<7&4294967295|o>>>25),o=a+(i^t&(n^i))+r[9]+2336552879&4294967295,a=t+(o<<12&4294967295|o>>>20),o=i+(n^a&(t^n))+r[10]+4294925233&4294967295,i=a+(o<<17&4294967295|o>>>15),o=n+(t^i&(a^t))+r[11]+2304563134&4294967295,n=i+(o<<22&4294967295|o>>>10),o=t+(a^n&(i^a))+r[12]+1804603682&4294967295,t=n+(o<<7&4294967295|o>>>25),o=a+(i^t&(n^i))+r[13]+4254626195&4294967295,a=t+(o<<12&4294967295|o>>>20),o=i+(n^a&(t^n))+r[14]+2792965006&4294967295,i=a+(o<<17&4294967295|o>>>15),o=n+(t^i&(a^t))+r[15]+1236535329&4294967295,n=i+(o<<22&4294967295|o>>>10),o=t+(i^a&(n^i))+r[1]+4129170786&4294967295,t=n+(o<<5&4294967295|o>>>27),o=a+(n^i&(t^n))+r[6]+3225465664&4294967295,a=t+(o<<9&4294967295|o>>>23),o=i+(t^n&(a^t))+r[11]+643717713&4294967295,i=a+(o<<14&4294967295|o>>>18),o=n+(a^t&(i^a))+r[0]+3921069994&4294967295,n=i+(o<<20&4294967295|o>>>12),o=t+(i^a&(n^i))+r[5]+3593408605&4294967295,t=n+(o<<5&4294967295|o>>>27),o=a+(n^i&(t^n))+r[10]+38016083&4294967295,a=t+(o<<9&4294967295|o>>>23),o=i+(t^n&(a^t))+r[15]+3634488961&4294967295,i=a+(o<<14&4294967295|o>>>18),o=n+(a^t&(i^a))+r[4]+3889429448&4294967295,n=i+(o<<20&4294967295|o>>>12),o=t+(i^a&(n^i))+r[9]+568446438&4294967295,t=n+(o<<5&4294967295|o>>>27),o=a+(n^i&(t^n))+r[14]+3275163606&4294967295,a=t+(o<<9&4294967295|o>>>23),o=i+(t^n&(a^t))+r[3]+4107603335&4294967295,i=a+(o<<14&4294967295|o>>>18),o=n+(a^t&(i^a))+r[8]+1163531501&4294967295,n=i+(o<<20&4294967295|o>>>12),o=t+(i^a&(n^i))+r[13]+2850285829&4294967295,t=n+(o<<5&4294967295|o>>>27),o=a+(n^i&(t^n))+r[2]+4243563512&4294967295,a=t+(o<<9&4294967295|o>>>23),o=i+(t^n&(a^t))+r[7]+1735328473&4294967295,i=a+(o<<14&4294967295|o>>>18),o=n+(a^t&(i^a))+r[12]+2368359562&4294967295,n=i+(o<<20&4294967295|o>>>12),o=t+(n^i^a)+r[5]+4294588738&4294967295,t=n+(o<<4&4294967295|o>>>28),o=a+(t^n^i)+r[8]+2272392833&4294967295,a=t+(o<<11&4294967295|o>>>21),o=i+(a^t^n)+r[11]+1839030562&4294967295,i=a+(o<<16&4294967295|o>>>16),o=n+(i^a^t)+r[14]+4259657740&4294967295,n=i+(o<<23&4294967295|o>>>9),o=t+(n^i^a)+r[1]+2763975236&4294967295,t=n+(o<<4&4294967295|o>>>28),o=a+(t^n^i)+r[4]+1272893353&4294967295,a=t+(o<<11&4294967295|o>>>21),o=i+(a^t^n)+r[7]+4139469664&4294967295,i=a+(o<<16&4294967295|o>>>16),o=n+(i^a^t)+r[10]+3200236656&4294967295,n=i+(o<<23&4294967295|o>>>9),o=t+(n^i^a)+r[13]+681279174&4294967295,t=n+(o<<4&4294967295|o>>>28),o=a+(t^n^i)+r[0]+3936430074&4294967295,a=t+(o<<11&4294967295|o>>>21),o=i+(a^t^n)+r[3]+3572445317&4294967295,i=a+(o<<16&4294967295|o>>>16),o=n+(i^a^t)+r[6]+76029189&4294967295,n=i+(o<<23&4294967295|o>>>9),o=t+(n^i^a)+r[9]+3654602809&4294967295,t=n+(o<<4&4294967295|o>>>28),o=a+(t^n^i)+r[12]+3873151461&4294967295,a=t+(o<<11&4294967295|o>>>21),o=i+(a^t^n)+r[15]+530742520&4294967295,i=a+(o<<16&4294967295|o>>>16),o=n+(i^a^t)+r[2]+3299628645&4294967295,n=i+(o<<23&4294967295|o>>>9),o=t+(i^(n|~a))+r[0]+4096336452&4294967295,t=n+(o<<6&4294967295|o>>>26),o=a+(n^(t|~i))+r[7]+1126891415&4294967295,a=t+(o<<10&4294967295|o>>>22),o=i+(t^(a|~n))+r[14]+2878612391&4294967295,i=a+(o<<15&4294967295|o>>>17),o=n+(a^(i|~t))+r[5]+4237533241&4294967295,n=i+(o<<21&4294967295|o>>>11),o=t+(i^(n|~a))+r[12]+1700485571&4294967295,t=n+(o<<6&4294967295|o>>>26),o=a+(n^(t|~i))+r[3]+2399980690&4294967295,a=t+(o<<10&4294967295|o>>>22),o=i+(t^(a|~n))+r[10]+4293915773&4294967295,i=a+(o<<15&4294967295|o>>>17),o=n+(a^(i|~t))+r[1]+2240044497&4294967295,n=i+(o<<21&4294967295|o>>>11),o=t+(i^(n|~a))+r[8]+1873313359&4294967295,t=n+(o<<6&4294967295|o>>>26),o=a+(n^(t|~i))+r[15]+4264355552&4294967295,a=t+(o<<10&4294967295|o>>>22),o=i+(t^(a|~n))+r[6]+2734768916&4294967295,i=a+(o<<15&4294967295|o>>>17),o=n+(a^(i|~t))+r[13]+1309151649&4294967295,n=i+(o<<21&4294967295|o>>>11),o=t+(i^(n|~a))+r[4]+4149444226&4294967295,t=n+(o<<6&4294967295|o>>>
vendor: 48,022 bytes, lines 11-19
1126),o=a+(n^(t|~i))+r[11]+3174756917&4294967295,a=t+(o<<10&4294967295|o>>>22),o=i+(t^(a|~n))+r[2]+718787259&4294967295,i=a+(o<<15&4294967295|o>>>17),o=n+(a^(i|~t))+r[9]+3951481745&4294967295,e.g[0]=e.g[0]+t&4294967295,e.g[1]=e.g[1]+(i+(o<<21&4294967295|o>>>11))&4294967295,e.g[2]=e.g[2]+i&4294967295,e.g[3]=e.g[3]+a&4294967295}r.prototype.u=function(e,t){t===void 0&&(t=e.length);for(var n=t-this.blockSize,r=this.B,a=this.h,o=0;o<t;){if(a==0)for(;o<=n;)i(this,e,o),o+=this.blockSize;if(typeof e==`string`){for(;o<t;)if(r[a++]=e.charCodeAt(o++),a==this.blockSize){i(this,r),a=0;break}}else for(;o<t;)if(r[a++]=e[o++],a==this.blockSize){i(this,r),a=0;break}}this.h=a,this.o+=t},r.prototype.v=function(){var e=Array((56>this.h?this.blockSize:2*this.blockSize)-this.h);e[0]=128;for(var t=1;t<e.length-8;++t)e[t]=0;var n=8*this.o;for(t=e.length-8;t<e.length;++t)e[t]=n&255,n/=256;for(this.u(e),e=Array(16),t=n=0;4>t;++t)for(var r=0;32>r;r+=8)e[n++]=this.g[t]>>>r&255;return e};function a(e,t){var n=s;return Object.prototype.hasOwnProperty.call(n,e)?n[e]:n[e]=t(e)}function o(e,t){this.h=t;for(var n=[],r=!0,i=e.length-1;0<=i;i--){var a=e[i]|0;r&&a==t||(n[i]=a,r=!1)}this.g=n}var s={};function c(e){return-128<=e&&128>e?a(e,function(e){return new o([e|0],0>e?-1:0)}):new o([e|0],0>e?-1:0)}function l(e){if(isNaN(e)||!isFinite(e))return d;if(0>e)return g(l(-e));for(var t=[],n=1,r=0;e>=n;r++)t[r]=e/n|0,n*=4294967296;return new o(t,0)}function u(e,t){if(e.length==0)throw Error(`number format error: empty string`);if(t||=10,2>t||36<t)throw Error(`radix out of range: `+t);if(e.charAt(0)==`-`)return g(u(e.substring(1),t));if(0<=e.indexOf(`-`))throw Error(`number format error: interior "-" character`);for(var n=l(t**8),r=d,i=0;i<e.length;i+=8){var a=Math.min(8,e.length-i),o=parseInt(e.substring(i,i+a),t);8>a?(a=l(t**+a),r=r.j(a).add(l(o))):(r=r.j(n),r=r.add(l(o)))}return r}var d=c(0),f=c(1),p=c(16777216);e=o.prototype,e.m=function(){if(h(this))return-g(this).m();for(var e=0,t=1,n=0;n<this.g.length;n++){var r=this.i(n);e+=(0<=r?r:4294967296+r)*t,t*=4294967296}return e},e.toString=function(e){if(e||=10,2>e||36<e)throw Error(`radix out of range: `+e);if(m(this))return`0`;if(h(this))return`-`+g(this).toString(e);for(var t=l(e**6),n=this,r=``;;){var i=b(n,t).g;n=_(n,i.j(t));var a=((0<n.g.length?n.g[0]:n.h)>>>0).toString(e);if(n=i,m(n))return a+r;for(;6>a.length;)a=`0`+a;r=a+r}},e.i=function(e){return 0>e?0:e<this.g.length?this.g[e]:this.h};function m(e){if(e.h!=0)return!1;for(var t=0;t<e.g.length;t++)if(e.g[t]!=0)return!1;return!0}function h(e){return e.h==-1}e.l=function(e){return e=_(this,e),h(e)?-1:+!m(e)};function g(e){for(var t=e.g.length,n=[],r=0;r<t;r++)n[r]=~e.g[r];return new o(n,~e.h).add(f)}e.abs=function(){return h(this)?g(this):this},e.add=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],r=0,i=0;i<=t;i++){var a=r+(this.i(i)&65535)+(e.i(i)&65535),s=(a>>>16)+(this.i(i)>>>16)+(e.i(i)>>>16);r=s>>>16,a&=65535,s&=65535,n[i]=s<<16|a}return new o(n,n[n.length-1]&-2147483648?-1:0)};function _(e,t){return e.add(g(t))}e.j=function(e){if(m(this)||m(e))return d;if(h(this))return h(e)?g(this).j(g(e)):g(g(this).j(e));if(h(e))return g(this.j(g(e)));if(0>this.l(p)&&0>e.l(p))return l(this.m()*e.m());for(var t=this.g.length+e.g.length,n=[],r=0;r<2*t;r++)n[r]=0;for(r=0;r<this.g.length;r++)for(var i=0;i<e.g.length;i++){var a=this.i(r)>>>16,s=this.i(r)&65535,c=e.i(i)>>>16,u=e.i(i)&65535;n[2*r+2*i]+=s*u,v(n,2*r+2*i),n[2*r+2*i+1]+=a*u,v(n,2*r+2*i+1),n[2*r+2*i+1]+=s*c,v(n,2*r+2*i+1),n[2*r+2*i+2]+=a*c,v(n,2*r+2*i+2)}for(r=0;r<t;r++)n[r]=n[2*r+1]<<16|n[2*r];for(r=t;r<2*t;r++)n[r]=0;return new o(n,0)};function v(e,t){for(;(e[t]&65535)!=e[t];)e[t+1]+=e[t]>>>16,e[t]&=65535,t++}function y(e,t){this.g=e,this.h=t}function b(e,t){if(m(t))throw Error(`division by zero`);if(m(e))return new y(d,d);if(h(e))return t=b(g(e),t),new y(g(t.g),g(t.h));if(h(t))return t=b(e,g(t)),new y(g(t.g),t.h);if(30<e.g.length){if(h(e)||h(t))throw Error(`slowDivide_ only works with positive integers.`);for(var n=f,r=t;0>=r.l(e);)n=x(n),r=x(r);var i=S(n,1),a=S(r,1);for(r=S(r,2),n=S(n,2);!m(r);){var o=a.add(r);0>=o.l(e)&&(i=i.add(n),a=o),r=S(r,1),n=S(n,1)}return t=_(e,i.j(t)),new y(i,t)}for(i=d;0<=e.l(t);){for(n=Math.max(1,Math.floor(e.m()/t.m())),r=Math.ceil(Math.log(n)/Math.LN2),r=48>=r?1:2**(r-48),a=l(n),o=a.j(t);h(o)||0<o.l(e);)n-=r,a=l(n),o=a.j(t);m(a)&&(a=f),i=i.add(a),e=_(e,o)}return new y(i,e)}e.A=function(e){return b(this,e).h},e.and=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],r=0;r<t;r++)n[r]=this.i(r)&e.i(r);return new o(n,this.h&e.h)},e.or=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],r=0;r<t;r++)n[r]=this.i(r)|e.i(r);return new o(n,this.h|e.h)},e.xor=function(e){for(var t=Math.max(this.g.length,e.g.length),n=[],r=0;r<t;r++)n[r]=this.i(r)^e.i(r);return new o(n,this.h^e.h)};function x(e){for(var t=e.g.length+1,n=[],r=0;r<t;r++)n[r]=e.i(r)<<1|e.i(r-1)>>>31;return new o(n,e.h)}function S(e,t){var n=t>>5;t%=32;for(var r=e.g.length-n,i=[],a=0;a<r;a++)i[a]=0<t?e.i(a+n)>>>t|e.i(a+n+1)<<32-t:e.i(a+n);return new o(i,e.h)}r.prototype.digest=r.prototype.v,r.prototype.reset=r.prototype.s,r.prototype.update=r.prototype.u,$g=Zg.Md5=r,o.prototype.add=o.prototype.add,o.prototype.multiply=o.prototype.j,o.prototype.modulo=o.prototype.A,o.prototype.compare=o.prototype.l,o.prototype.toNumber=o.prototype.m,o.prototype.toString=o.prototype.toString,o.prototype.getBits=o.prototype.i,o.fromNumber=l,o.fromString=u,Qg=Zg.Integer=o}).apply(Xg===void 0?typeof self<`u`?self:typeof window<`u`?window:{}:Xg);var e_=typeof globalThis<`u`?globalThis:typeof window<`u`?window:typeof global<`u`?global:typeof self<`u`?self:{},t_={},n_,r_,i_,a_,o_,s_,c_,l_;(function(){var e,t=typeof Object.defineProperties==`function`?Object.defineProperty:function(e,t,n){return e==Array.prototype||e==Object.prototype||(e[t]=n.value),e};function n(e){e=[typeof globalThis==`object`&&globalThis,e,typeof window==`object`&&window,typeof self==`object`&&self,typeof e_==`object`&&e_];for(var t=0;t<e.length;++t){var n=e[t];if(n&&n.Math==Math)return n}throw Error(`Cannot find global object`)}var r=n(this);function i(e,n){if(n)a:{var i=r;e=e.split(`.`);for(var a=0;a<e.length-1;a++){var o=e[a];if(!(o in i))break a;i=i[o]}e=e[e.length-1],a=i[e],n=n(a),n!=a&&n!=null&&t(i,e,{configurable:!0,writable:!0,value:n})}}function a(e,t){e instanceof String&&(e+=``);var n=0,r=!1,i={next:function(){if(!r&&n<e.length){var i=n++;return{value:t(i,e[i]),done:!1}}return r=!0,{done:!0,value:void 0}}};return i[Symbol.iterator]=function(){return i},i}i(`Array.prototype.values`,function(e){return e||function(){return a(this,function(e,t){return t})}});var o=o||{},s=this||self;function c(e){var t=typeof e;return t=t==`object`?e?Array.isArray(e)?`array`:t:`null`:t,t==`array`||t==`object`&&typeof e.length==`number`}function l(e){var t=typeof e;return t==`object`&&e!=null||t==`function`}function u(e,t,n){return e.call.apply(e.bind,arguments)}function d(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function f(e,t,n){return f=Function.prototype.bind&&Function.prototype.bind.toString().indexOf(`native code`)!=-1?u:d,f.apply(null,arguments)}function p(e,t){var n=Array.prototype.slice.call(arguments,1);return function(){var t=n.slice();return t.push.apply(t,arguments),e.apply(this,t)}}function m(e,t){function n(){}n.prototype=t.prototype,e.aa=t.prototype,e.prototype=new n,e.prototype.constructor=e,e.Qb=function(e,n,r){for(var i=Array(arguments.length-2),a=2;a<arguments.length;a++)i[a-2]=arguments[a];return t.prototype[n].apply(e,i)}}function h(e){let t=e.length;if(0<t){let n=Array(t);for(let r=0;r<t;r++)n[r]=e[r];return n}return[]}function g(e,t){for(let t=1;t<arguments.length;t++){let n=arguments[t];if(c(n)){let t=e.length||0,r=n.length||0;e.length=t+r;for(let i=0;i<r;i++)e[t+i]=n[i]}else e.push(n)}}class _{constructor(e,t){this.i=e,this.j=t,this.h=0,this.g=null}get(){let e;return 0<this.h?(this.h--,e=this.g,this.g=e.next,e.next=null):e=this.i(),e}}function v(e){return/^[\s\xa0]*$/.test(e)}function y(){var e=s.navigator;return(e&&=e.userAgent)?e:``}function b(e){return b[` `](e),e}b[` `]=function(){};var x=y().indexOf(`Gecko`)!=-1&&(y().toLowerCase().indexOf(`webkit`)==-1||y().indexOf(`Edge`)!=-1)&&y().indexOf(`Trident`)==-1&&y().indexOf(`MSIE`)==-1&&y().indexOf(`Edge`)==-1;function S(e,t,n){for(let r in e)t.call(n,e[r],r,e)}function C(e,t){for(let n in e)t.call(void 0,e[n],n,e)}function w(e){let t={};for(let n in e)t[n]=e[n];return t}let T=`constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf`.split(` `);function E(e,t){let n,r;for(let t=1;t<arguments.length;t++){for(n in r=arguments[t],r)e[n]=r[n];for(let t=0;t<T.length;t++)n=T[t],Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}}function ee(e){var t=1;e=e.split(`:`);let n=[];for(;0<t&&e.length;)n.push(e.shift()),t--;return e.length&&n.push(e.join(`:`)),n}function te(e){s.setTimeout(()=>{throw e},0)}function D(){var e=ae;let t=null;return e.g&&(t=e.g,e.g=e.g.next,e.g||(e.h=null),t.next=null),t}class ne{constructor(){this.h=this.g=null}add(e,t){let n=re.get();n.set(e,t),this.h?this.h.next=n:this.g=n,this.h=n}}var re=new _(()=>new O,e=>e.reset());class O{constructor(){this.next=this.g=this.h=null}set(e,t){this.h=e,this.g=t,this.next=null}reset(){this.next=this.g=this.h=null}}let ie,k=!1,ae=new ne,oe=()=>{let e=s.Promise.resolve(void 0);ie=()=>{e.then(A)}};var A=()=>{for(var e;e=D();){try{e.h.call(e.g)}catch(e){te(e)}var t=re;t.j(e),100>t.h&&(t.h++,e.next=t.g,t.g=e)}k=!1};function j(){this.s=this.s,this.C=this.C}j.prototype.s=!1,j.prototype.ma=function(){this.s||(this.s=!0,this.N())},j.prototype.N=function(){if(this.C)for(;this.C.length;)this.C.shift()()};function M(e,t){this.type=e,this.g=this.target=t,this.defaultPrevented=!1}M.prototype.h=function(){this.defaultPrevented=!0};var se=function(){if(!s.addEventListener||!Object.defineProperty)return!1;var e=!1,t=Object.defineProperty({},"passive",{get:function(){e=!0}});try{let e=()=>{};s.addEventListener(`test`,e,t),s.removeEventListener(`test`,e,t)}catch{}return e}();function ce(e,t){if(M.call(this,e?e.type:``),this.relatedTarget=this.g=this.target=null,this.button=this.screenY=this.screenX=this.clientY=this.clientX=0,this.key=``,this.metaKey=this.shiftKey=this.altKey=this.ctrlKey=!1,this.state=null,this.pointerId=0,this.pointerType=``,this.i=null,e){var n=this.type=e.type,r=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:null;if(this.target=e.target||e.srcElement,this.g=t,t=e.relatedTarget){if(x){a:{try{b(t.nodeName);var i=!0;break a}catch{}i=!1}i||(t=null)}}else n==`mouseover`?t=e.fromElement:n==`mouseout`&&(t=e.toElement);this.relatedTarget=t,r?(this.clientX=r.clientX===void 0?r.pageX:r.clientX,this.clientY=r.clientY===void 0?r.pageY:r.clientY,this.screenX=r.screenX||0,this.screenY=r.screenY||0):(this.clientX=e.clientX===void 0?e.pageX:e.clientX,this.clientY=e.clientY===void 0?e.pageY:e.clientY,this.screenX=e.screenX||0,this.screenY=e.screenY||0),this.button=e.button,this.key=e.key||``,this.ctrlKey=e.ctrlKey,this.altKey=e.altKey,this.shiftKey=e.shiftKey,this.metaKey=e.metaKey,this.pointerId=e.pointerId||0,this.pointerType=typeof e.pointerType==`string`?e.pointerType:le[e.pointerType]||``,this.state=e.state,this.i=e,e.defaultPrevented&&ce.aa.h.call(this)}}m(ce,M);var le={2:`touch`,3:`pen`,4:`mouse`};ce.prototype.h=function(){ce.aa.h.call(this);var e=this.i;e.preventDefault?e.preventDefault():e.returnValue=!1};var ue=`closure_listenable_`+(1e6*Math.random()|0),de=0;function fe(e,t,n,r,i){this.listener=e,this.proxy=null,this.src=t,this.type=n,this.capture=!!r,this.ha=i,this.key=++de,this.da=this.fa=!1}function pe(e){e.da=!0,e.listener=null,e.proxy=null,e.src=null,e.ha=null}function me(e){this.src=e,this.g={},this.h=0}me.prototype.add=function(e,t,n,r,i){var a=e.toString();e=this.g[a],e||(e=this.g[a]=[],this.h++);var o=ge(e,t,r,i);return-1<o?(t=e[o],n||(t.fa=!1)):(t=new fe(t,this.src,a,!!r,i),t.fa=n,e.push(t)),t};function he(e,t){var n=t.type;if(n in e.g){var r=e.g[n],i=Array.prototype.indexOf.call(r,t,void 0),a;(a=0<=i)&&Array.prototype.splice.call(r,i,1),a&&(pe(t),e.g[n].length==0&&(delete e.g[n],e.h--))}}function ge(e,t,n,r){for(var i=0;i<e.length;++i){var a=e[i];if(!a.da&&a.listener==t&&a.capture==!!n&&a.ha==r)return i}return-1}var _e=`closure_lm_`+(1e6*Math.random()|0),ve={};function ye(e,t,n,r,i){if(r&&r.once)return Se(e,t,n,r,i);if(Array.isArray(t)){for(var a=0;a<t.length;a++)ye(e,t[a],n,r,i);return null}return n=ke(n),e&&e[ue]?e.K(t,n,l(r)?!!r.capture:!!r,i):be(e,t,n,!1,r,i)}function be(e,t,n,r,i,a){if(!t)throw Error(`Invalid event type`);var o=l(i)?!!i.capture:!!i,s=De(e);if(s||(e[_e]=s=new me(e)),n=s.add(t,n,r,o,a),n.proxy)return n;if(r=xe(),n.proxy=r,r.src=e,r.listener=n,e.addEventListener)se||(i=o),i===void 0&&(i=!1),e.addEventListener(t.toString(),r,i);else if(e.attachEvent)e.attachEvent(Te(t.toString()),r);else if(e.addListener&&e.removeListener)e.addListener(r);else throw Error(`addEventListener and attachEvent are unavailable.`);return n}function xe(){function e(n){return t.call(e.src,e.listener,n)}let t=Ee;return e}function Se(e,t,n,r,i){if(Array.isArray(t)){for(var a=0;a<t.length;a++)Se(e,t[a],n,r,i);return null}return n=ke(n),e&&e[ue]?e.L(t,n,l(r)?!!r.capture:!!r,i):be(e,t,n,!0,r,i)}function Ce(e,t,n,r,i){if(Array.isArray(t))for(var a=0;a<t.length;a++)Ce(e,t[a],n,r,i);else r=l(r)?!!r.capture:!!r,n=ke(n),e&&e[ue]?(e=e.i,t=String(t).toString(),t in e.g&&(a=e.g[t],n=ge(a,n,r,i),-1<n&&(pe(a[n]),Array.prototype.splice.call(a,n,1),a.length==0&&(delete e.g[t],e.h--)))):(e&&=De(e))&&(t=e.g[t.toString()],e=-1,t&&(e=ge(t,n,r,i)),(n=-1<e?t[e]:null)&&we(n))}function we(e){if(typeof e!=`number`&&e&&!e.da){var t=e.src;if(t&&t[ue])he(t.i,e);else{var n=e.type,r=e.proxy;t.removeEventListener?t.removeEventListener(n,r,e.capture):t.detachEvent?t.detachEvent(Te(n),r):t.addListener&&t.removeListener&&t.removeListener(r),(n=De(t))?(he(n,e),n.h==0&&(n.src=null,t[_e]=null)):pe(e)}}}function Te(e){return e in ve?ve[e]:ve[e]=`on`+e}function Ee(e,t){if(e.da)e=!0;else{t=new ce(t,this);var n=e.listener,r=e.ha||e.src;e.fa&&we(e),e=n.call(r,t)}return e}function De(e){return e=e[_e],e instanceof me?e:null}var Oe=`__closure_events_fn_`+(1e9*Math.random()>>>0);function ke(e){return typeof e==`function`?e:(e[Oe]||(e[Oe]=function(t){return e.handleEvent(t)}),e[Oe])}function Ae(){j.call(this),this.i=new me(this),this.M=this,this.F=null}m(Ae,j),Ae.prototype[ue]=!0,Ae.prototype.removeEventListener=function(e,t,n,r){Ce(this,e,t,n,r)};function je(e,t){var n,r=e.F;if(r)for(n=[];r;r=r.F)n.push(r);if(e=e.M,r=t.type||t,typeof t==`string`)t=new M(t,e);else if(t instanceof M)t.target=t.target||e;else{var i=t;t=new M(r,e),E(t,i)}if(i=!0,n)for(var a=n.length-1;0<=a;a--){var o=t.g=n[a];i=Me(o,r,!0,t)&&i}if(o=t.g=e,i=Me(o,r,!0,t)&&i,i=Me(o,r,!1,t)&&i,n)for(a=0;a<n.length;a++)o=t.g=n[a],i=Me(o,r,!1,t)&&i}Ae.prototype.N=function(){if(Ae.aa.N.call(this),this.i){var e=this.i,t;for(t in e.g){for(var n=e.g[t],r=0;r<n.length;r++)pe(n[r]);delete e.g[t],e.h--}}this.F=null},Ae.prototype.K=function(e,t,n,r){return this.i.add(String(e),t,!1,n,r)},Ae.prototype.L=function(e,t,n,r){return this.i.add(String(e),t,!0,n,r)};function Me(e,t,n,r){if(t=e.i.g[String(t)],!t)return!0;t=t.concat();for(var i=!0,a=0;a<t.length;++a){var o=t[a];if(o&&!o.da&&o.capture==n){var s=o.listener,c=o.ha||o.src;o.fa&&he(e.i,o),i=!1!==s.call(c,r)&&i}}return i&&!r.defaultPrevented}function Ne(e,t,n){if(typeof e==`function`)n&&(e=f(e,n));else if(e&&typeof e.handleEvent==`function`)e=f(e.handleEvent,e);else throw Error(`Invalid listener argument`);return 2147483647<Number(t)?-1:s.setTimeout(e,t||0)}function Pe(e){e.g=Ne(()=>{e.g=null,e.i&&(e.i=!1,Pe(e))},e.l);let t=e.h;e.h=null,e.m.apply(null,t)}class Fe extends j{constructor(e,t){super(),this.m=e,this.l=t,this.h=null,this.i=!1,this.g=null}j(e){this.h=arguments,this.g?this.i=!0:Pe(this)}N(){super.N(),this.g&&(s.clearTimeout(this.g),this.g=null,this.i=!1,this.h=null)}}function Ie(e){j.call(this),this.h=e,this.g={}}m(Ie,j);var Le=[];function Re(e){S(e.g,function(e,t){this.g.hasOwnProperty(t)&&we(e)},e),e.g={}}Ie.prototype.N=function(){Ie.aa.N.call(this),Re(this)},Ie.prototype.handleEvent=function(){throw Error(`EventHandler.handleEvent not implemented`)};var ze=s.JSON.stringify,Be=s.JSON.parse,Ve=class{stringify(e){return s.JSON.stringify(e,void 0)}parse(e){return s.JSON.parse(e,void 0)}};function He(){}He.prototype.h=null;function N(e){return e.h||=e.i()}function Ue(){}var We={OPEN:`a`,kb:`b`,Ja:`c`,wb:`d`};function Ge(){M.call(this,`d`)}m(Ge,M);function Ke(){M.call(this,`c`)}m(Ke,M);var qe={},Je=null;function Ye(){return Je||=new Ae}qe.La=`serverreachability`;function Xe(e){M.call(this,qe.La,e)}m(Xe,M);function Ze(e){let t=Ye();je(t,new Xe(t))}qe.STAT_EVENT=`statevent`;function Qe(e,t){M.call(this,qe.STAT_EVENT,e),this.stat=t}m(Qe,M);function $e(e){let t=Ye();je(t,new Qe(t,e))}qe.Ma=`timingevent`;function et(e,t){M.call(this,qe.Ma,e),this.size=t}m(et,M);function tt(e,t){if(typeof e!=`function`)throw Error(`Fn must not be null and must be a function`);return s.setTimeout(function(){e()},t)}function nt(){this.g=!0}nt.prototype.xa=function(){this.g=!1};function rt(e,t,n,r,i,a){e.info(function(){if(e.g){if(a)for(var o=``,s=a.split(`&`),c=0;c<s.length;c++){var l=s[c].split(`=`);if(1<l.length){var u=l[0];l=l[1];var d=u.split(`_`);o=2<=d.length&&d[1]==`type`?o+(u+`=`+l+`&`):o+(u+`=redacted&`)}}else o=null}else o=a;return`XMLHTTP REQ (`+r+`) [attempt `+i+`]: `+t+`
12`+n+`
13`+o})}function it(e,t,n,r,i,a,o){e.info(function(){return`XMLHTTP RESP (`+r+`) [ attempt `+i+`]: `+t+`
14`+n+`
15`+a+` `+o})}function P(e,t,n,r){e.info(function(){return`XMLHTTP TEXT (`+t+`): `+ot(e,n)+(r?` `+r:``)})}function at(e,t){e.info(function(){return`TIMEOUT: `+t})}nt.prototype.info=function(){};function ot(e,t){if(!e.g)return t;if(!t)return null;try{var n=JSON.parse(t);if(n){for(e=0;e<n.length;e++)if(Array.isArray(n[e])){var r=n[e];if(!(2>r.length)){var i=r[1];if(Array.isArray(i)&&!(1>i.length)){var a=i[0];if(a!=`noop`&&a!=`stop`&&a!=`close`)for(var o=1;o<i.length;o++)i[o]=``}}}}return ze(n)}catch{return t}}var st={NO_ERROR:0,gb:1,tb:2,sb:3,nb:4,rb:5,ub:6,Ia:7,TIMEOUT:8,xb:9},ct={lb:`complete`,Hb:`success`,Ja:`error`,Ia:`abort`,zb:`ready`,Ab:`readystatechange`,TIMEOUT:`timeout`,vb:`incrementaldata`,yb:`progress`,ob:`downloadprogress`,Pb:`uploadprogress`},lt;function ut(){}m(ut,He),ut.prototype.g=function(){return new XMLHttpRequest},ut.prototype.i=function(){return{}},lt=new ut;function dt(e,t,n,r){this.j=e,this.i=t,this.l=n,this.R=r||1,this.U=new Ie(this),this.I=45e3,this.H=null,this.o=!1,this.m=this.A=this.v=this.L=this.F=this.S=this.B=null,this.D=[],this.g=null,this.C=0,this.s=this.u=null,this.X=-1,this.J=!1,this.O=0,this.M=null,this.W=this.K=this.T=this.P=!1,this.h=new ft}function ft(){this.i=null,this.g=``,this.h=!1}var pt={},mt={};function ht(e,t,n){e.L=1,e.v=Ut(zt(t)),e.m=n,e.P=!0,gt(e,null)}function gt(e,t){e.F=Date.now(),yt(e),e.A=zt(e.v);var n=e.A,r=e.R;Array.isArray(r)||(r=[String(r)]),tn(n.i,`t`,r),e.C=0,n=e.j.J,e.h=new ft,e.g=qn(e.j,n?t:null,!e.m),0<e.O&&(e.M=new Fe(f(e.Y,e,e.g),e.O)),t=e.U,n=e.g,r=e.ca;var i=`readystatechange`;Array.isArray(i)||(i&&(Le[0]=i.toString()),i=Le);for(var a=0;a<i.length;a++){var o=ye(n,i[a],r||t.handleEvent,!1,t.h||t);if(!o)break;t.g[o.key]=o}t=e.H?w(e.H):{},e.m?(e.u||=`POST`,t[`Content-Type`]=`application/x-www-form-urlencoded`,e.g.ea(e.A,e.u,e.m,t)):(e.u=`GET`,e.g.ea(e.A,e.u,null,t)),Ze(),rt(e.i,e.u,e.A,e.l,e.R,e.m)}dt.prototype.ca=function(e){e=e.target;let t=this.M;t&&Tn(e)==3?t.j():this.Y(e)},dt.prototype.Y=function(e){try{if(e==this.g)a:{let f=Tn(this.g);var t=this.g.Ba();let p=this.g.Z();if(!(3>f)&&(f!=3||this.g&&(this.h.h||this.g.oa()||En(this.g)))){this.J||f!=4||t==7||Ze(t==8||0>=p?3:2),xt(this);var n=this.g.Z();this.X=n;b:if(_t(this)){var r=En(this.g);e=``;var i=r.length,a=Tn(this.g)==4;if(!this.h.i){if(typeof TextDecoder>`u`){Ct(this),St(this);var o=``;break b}this.h.i=new s.TextDecoder}for(t=0;t<i;t++)this.h.h=!0,e+=this.h.i.decode(r[t],{stream:!(a&&t==i-1)});r.length=0,this.h.g+=e,this.C=0,o=this.h.g}else o=this.g.oa();if(this.o=n==200,it(this.i,this.u,this.A,this.l,this.R,f,n),this.o){if(this.T&&!this.K){b:{if(this.g){var c,l=this.g;if((c=l.g?l.g.getResponseHeader(`X-HTTP-Initial-Response`):null)&&!v(c)){var u=c;break b}}u=null}if(n=u)P(this.i,this.l,n,`Initial handshake response via X-HTTP-Initial-Response`),this.K=!0,wt(this,n);else{this.o=!1,this.s=3,$e(12),Ct(this),St(this);break a}}if(this.P){n=!0;let e;for(;!this.J&&this.C<o.length;)if(e=vt(this,o),e==mt){f==4&&(this.s=4,$e(14),n=!1),P(this.i,this.l,null,`[Incomplete Response]`);break}else if(e==pt){this.s=4,$e(15),P(this.i,this.l,o,`[Invalid Chunk]`),n=!1;break}else P(this.i,this.l,e,null),wt(this,e);if(_t(this)&&this.C!=0&&(this.h.g=this.h.g.slice(this.C),this.C=0),f!=4||o.length!=0||this.h.h||(this.s=1,$e(16),n=!1),this.o=this.o&&n,!n)P(this.i,this.l,o,`[Invalid Chunked Response]`),Ct(this),St(this);else if(0<o.length&&!this.W){this.W=!0;var d=this.j;d.g==this&&d.ba&&!d.M&&(d.j.info(`Great, no buffering proxy detected. Bytes received: `+o.length),zn(d),d.M=!0,$e(11))}}else P(this.i,this.l,o,null),wt(this,o);f==4&&Ct(this),this.o&&!this.J&&(f==4?Hn(this.j,this):(this.o=!1,yt(this)))}else Dn(this.g),n==400&&0<o.indexOf(`Unknown SID`)?(this.s=3,$e(12)):(this.s=0,$e(13)),Ct(this),St(this)}}}catch{}};function _t(e){return e.g?e.u==`GET`&&e.L!=2&&e.j.Ca:!1}function vt(e,t){var n=e.C,r=t.indexOf(`
16`,n);return r==-1?mt:(n=Number(t.substring(n,r)),isNaN(n)?pt:(r+=1,r+n>t.length?mt:(t=t.slice(r,r+n),e.C=r+n,t)))}dt.prototype.cancel=function(){this.J=!0,Ct(this)};function yt(e){e.S=Date.now()+e.I,bt(e,e.I)}function bt(e,t){if(e.B!=null)throw Error(`WatchDog timer not null`);e.B=tt(f(e.ba,e),t)}function xt(e){e.B&&=(s.clearTimeout(e.B),null)}dt.prototype.ba=function(){this.B=null;let e=Date.now();0<=e-this.S?(at(this.i,this.A),this.L!=2&&(Ze(),$e(17)),Ct(this),this.s=2,St(this)):bt(this,this.S-e)};function St(e){e.j.G==0||e.J||Hn(e.j,e)}function Ct(e){xt(e);var t=e.M;t&&typeof t.ma==`function`&&t.ma(),e.M=null,Re(e.U),e.g&&(t=e.g,e.g=null,t.abort(),t.ma())}function wt(e,t){try{var n=e.j;if(n.G!=0&&(n.g==e||kt(n.h,e))){if(!e.K&&kt(n.h,e)&&n.G==3){try{var r=n.Da.g.parse(t)}catch{r=null}if(Array.isArray(r)&&r.length==3){var i=r;if(i[0]==0){a:if(!n.u){if(n.g){if(n.g.F+3e3<e.F)Vn(n),L(n);else break a}Rn(n),$e(18)}}else n.za=i[1],0<n.za-n.T&&37500>i[2]&&n.F&&n.v==0&&!n.C&&(n.C=tt(f(n.Za,n),6e3));if(1>=Ot(n.h)&&n.ca){try{n.ca()}catch{}n.ca=void 0}}else Wn(n,11)}else if((e.K||n.g==e)&&Vn(n),!v(t))for(i=n.Da.g.parse(t),t=0;t<i.length;t++){let l=i[t];if(n.T=l[0],l=l[1],n.G==2){if(l[0]==`c`){n.K=l[1],n.ia=l[2];let t=l[3];t!=null&&(n.la=t,n.j.info(`VER=`+n.la));let i=l[4];i!=null&&(n.Aa=i,n.j.info(`SVER=`+n.Aa));let u=l[5];u!=null&&typeof u==`number`&&0<u&&(r=1.5*u,n.L=r,n.j.info(`backChannelRequestTimeoutMs_=`+r)),r=n;let d=e.g;if(d){let e=d.g?d.g.getResponseHeader(`X-Client-Wire-Protocol`):null;if(e){var a=r.h;a.g||e.indexOf(`spdy`)==-1&&e.indexOf(`quic`)==-1&&e.indexOf(`h2`)==-1||(a.j=a.l,a.g=new Set,a.h&&=(At(a,a.h),null))}if(r.D){let e=d.g?d.g.getResponseHeader(`X-HTTP-Session-Id`):null;e&&(r.ya=e,F(r.I,r.D,e))}}n.G=3,n.l&&n.l.ua(),n.ba&&(n.R=Date.now()-e.F,n.j.info(`Handshake RTT: `+n.R+`ms`)),r=n;var o=e;if(r.qa=Kn(r,r.J?r.ia:null,r.W),o.K){jt(r.h,o);var s=o,c=r.L;c&&(s.I=c),s.B&&(xt(s),yt(s)),r.g=o}else Ln(r);0<n.i.length&&Mn(n)}else l[0]!=`stop`&&l[0]!=`close`||Wn(n,7)}else n.G==3&&(l[0]==`stop`||l[0]==`close`?l[0]==`stop`?Wn(n,7):An(n):l[0]!=`noop`&&n.l&&n.l.ta(l),n.v=0)}}Ze(4)}catch{}}var Tt=class{constructor(e,t){this.g=e,this.map=t}};function Et(e){this.l=e||10,s.PerformanceNavigationTiming?(e=s.performance.getEntriesByType(`navigation`),e=0<e.length&&(e[0].nextHopProtocol==`hq`||e[0].nextHopProtocol==`h2`)):e=!!(s.chrome&&s.chrome.loadTimes&&s.chrome.loadTimes()&&s.chrome.loadTimes().wasFetchedViaSpdy),this.j=e?this.l:1,this.g=null,1<this.j&&(this.g=new Set),this.h=null,this.i=[]}function Dt(e){return e.h?!0:e.g?e.g.size>=e.j:!1}function Ot(e){return e.h?1:e.g?e.g.size:0}function kt(e,t){return e.h?e.h==t:e.g?e.g.has(t):!1}function At(e,t){e.g?e.g.add(t):e.h=t}function jt(e,t){e.h&&e.h==t?e.h=null:e.g&&e.g.has(t)&&e.g.delete(t)}Et.prototype.cancel=function(){if(this.i=Mt(this),this.h)this.h.cancel(),this.h=null;else if(this.g&&this.g.size!==0){for(let e of this.g.values())e.cancel();this.g.clear()}};function Mt(e){if(e.h!=null)return e.i.concat(e.h.D);if(e.g!=null&&e.g.size!==0){let t=e.i;for(let n of e.g.values())t=t.concat(n.D);return t}return h(e.i)}function Nt(e){if(e.V&&typeof e.V==`function`)return e.V();if(typeof Map<`u`&&e instanceof Map||typeof Set<`u`&&e instanceof Set)return Array.from(e.values());if(typeof e==`string`)return e.split(``);if(c(e)){for(var t=[],n=e.length,r=0;r<n;r++)t.push(e[r]);return t}for(r in t=[],n=0,e)t[n++]=e[r];return t}function Pt(e){if(e.na&&typeof e.na==`function`)return e.na();if(!e.V||typeof e.V!=`function`){if(typeof Map<`u`&&e instanceof Map)return Array.from(e.keys());if(!(typeof Set<`u`&&e instanceof Set)){if(c(e)||typeof e==`string`){var t=[];e=e.length;for(var n=0;n<e;n++)t.push(n);return t}t=[],n=0;for(let r in e)t[n++]=r;return t}}}function Ft(e,t){if(e.forEach&&typeof e.forEach==`function`)e.forEach(t,void 0);else if(c(e)||typeof e==`string`)Array.prototype.forEach.call(e,t,void 0);else for(var n=Pt(e),r=Nt(e),i=r.length,a=0;a<i;a++)t.call(void 0,r[a],n&&n[a],e)}var It=RegExp(`^(?:([^:/?#.]+):)?(?://(?:([^\\\\/?#]*)@)?([^\\\\/?#]*?)(?::([0-9]+))?(?=[\\\\/?#]|$))?([^?#]+)?(?:\\?([^#]*))?(?:#([\\s\\S]*))?$`);function Lt(e,t){if(e){e=e.split(`&`);for(var n=0;n<e.length;n++){var r=e[n].indexOf(`=`),i=null;if(0<=r){var a=e[n].substring(0,r);i=e[n].substring(r+1)}else a=e[n];t(a,i?decodeURIComponent(i.replace(/\+/g,` `)):``)}}}function Rt(e){if(this.g=this.o=this.j=``,this.s=null,this.m=this.l=``,this.h=!1,e instanceof Rt){this.h=e.h,Bt(this,e.j),this.o=e.o,this.g=e.g,Vt(this,e.s),this.l=e.l;var t=e.i,n=new Zt;n.i=t.i,t.g&&(n.g=new Map(t.g),n.h=t.h),Ht(this,n),this.m=e.m}else e&&(t=String(e).match(It))?(this.h=!1,Bt(this,t[1]||``,!0),this.o=Wt(t[2]||``),this.g=Wt(t[3]||``,!0),Vt(this,t[4]),this.l=Wt(t[5]||``,!0),Ht(this,t[6]||``,!0),this.m=Wt(t[7]||``)):(this.h=!1,this.i=new Zt(null,this.h))}Rt.prototype.toString=function(){var e=[],t=this.j;t&&e.push(Gt(t,Kt,!0),`:`);var n=this.g;return(n||t==`file`)&&(e.push(`//`),(t=this.o)&&e.push(Gt(t,Kt,!0),`@`),e.push(encodeURIComponent(String(n)).replace(/%25([0-9a-fA-F]{2})/g,`%$1`)),n=this.s,n!=null&&e.push(`:`,String(n))),(n=this.l)&&(this.g&&n.charAt(0)!=`/`&&e.push(`/`),e.push(Gt(n,n.charAt(0)==`/`?Jt:qt,!0))),(n=this.i.toString())&&e.push(`?`,n),(n=this.m)&&e.push(`#`,Gt(n,Xt)),e.join(``)};function zt(e){return new Rt(e)}function Bt(e,t,n){e.j=n?Wt(t,!0):t,e.j&&=e.j.replace(/:$/,``)}function Vt(e,t){if(t){if(t=Number(t),isNaN(t)||0>t)throw Error(`Bad port number `+t);e.s=t}else e.s=null}function Ht(e,t,n){t instanceof Zt?(e.i=t,rn(e.i,e.h)):(n||(t=Gt(t,Yt)),e.i=new Zt(t,e.h))}function F(e,t,n){e.i.set(t,n)}function Ut(e){return F(e,`zx`,Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^Date.now()).toString(36)),e}function Wt(e,t){return e?t?decodeURI(e.replace(/%25/g,`%2525`)):decodeURIComponent(e):``}function Gt(e,t,n){return typeof e==`string`?(e=encodeURI(e).replace(t,I),n&&(e=e.replace(/%25([0-9a-fA-F]{2})/g,`%$1`)),e):null}function I(e){return e=e.charCodeAt(0),`%`+(e>>4&15).toString(16)+(e&15).toString(16)}var Kt=/[#\/\?@]/g,qt=/[#\?:]/g,Jt=/[#\?]/g,Yt=/[#\?@]/g,Xt=/#/g;function Zt(e,t){this.h=this.g=null,this.i=e||null,this.j=!!t}function Qt(e){e.g||(e.g=new Map,e.h=0,e.i&&Lt(e.i,function(t,n){e.add(decodeURIComponent(t.replace(/\+/g,` `)),n)}))}e=Zt.prototype,e.add=function(e,t){Qt(this),this.i=null,e=nn(this,e);var n=this.g.get(e);return n||this.g.set(e,n=[]),n.push(t),this.h+=1,this};function $t(e,t){Qt(e),t=nn(e,t),e.g.has(t)&&(e.i=null,e.h-=e.g.get(t).length,e.g.delete(t))}function en(e,t){return Qt(e),t=nn(e,t),e.g.has(t)}e.forEach=function(e,t){Qt(this),this.g.forEach(function(n,r){n.forEach(function(n){e.call(t,n,r,this)},this)},this)},e.na=function(){Qt(this);let e=Array.from(this.g.values()),t=Array.from(this.g.keys()),n=[];for(let r=0;r<t.length;r++){let i=e[r];for(let e=0;e<i.length;e++)n.push(t[r])}return n},e.V=function(e){Qt(this);let t=[];if(typeof e==`string`)en(this,e)&&(t=t.concat(this.g.get(nn(this,e))));else{e=Array.from(this.g.values());for(let n=0;n<e.length;n++)t=t.concat(e[n])}return t},e.set=function(e,t){return Qt(this),this.i=null,e=nn(this,e),en(this,e)&&(this.h-=this.g.get(e).length),this.g.set(e,[t]),this.h+=1,this},e.get=function(e,t){return e?(e=this.V(e),0<e.length?String(e[0]):t):t};function tn(e,t,n){$t(e,t),0<n.length&&(e.i=null,e.g.set(nn(e,t),h(n)),e.h+=n.length)}e.toString=function(){if(this.i)return this.i;if(!this.g)return``;let e=[],t=Array.from(this.g.keys());for(var n=0;n<t.length;n++){var r=t[n];let a=encodeURIComponent(String(r)),o=this.V(r);for(r=0;r<o.length;r++){var i=a;o[r]!==``&&(i+=`=`+encodeURIComponent(String(o[r]))),e.push(i)}}return this.i=e.join(`&`)};function nn(e,t){return t=String(t),e.j&&(t=t.toLowerCase()),t}function rn(e,t){t&&!e.j&&(Qt(e),e.i=null,e.g.forEach(function(e,t){var n=t.toLowerCase();t!=n&&($t(this,t),tn(this,n,e))},e)),e.j=t}function an(e,t){let n=new nt;if(s.Image){let r=new Image;r.onload=p(sn,n,`TestLoadImage: loaded`,!0,t,r),r.onerror=p(sn,n,`TestLoadImage: error`,!1,t,r),r.onabort=p(sn,n,`TestLoadImage: abort`,!1,t,r),r.ontimeout=p(sn,n,`TestLoadImage: timeout`,!1,t,r),s.setTimeout(function(){r.ontimeout&&r.ontimeout()},1e4),r.src=e}else t(!1)}function on(e,t){let n=new nt,r=new AbortController,i=setTimeout(()=>{r.abort(),sn(n,`TestPingServer: timeout`,!1,t)},1e4);fetch(e,{signal:r.signal}).then(e=>{clearTimeout(i),e.ok?sn(n,`TestPingServer: ok`,!0,t):sn(n,`TestPingServer: server error`,!1,t)}).catch(()=>{clearTimeout(i),sn(n,`TestPingServer: error`,!1,t)})}function sn(e,t,n,r,i){try{i&&(i.onload=null,i.onerror=null,i.onabort=null,i.ontimeout=null),r(n)}catch{}}function cn(){this.g=new Ve}function ln(e,t,n){let r=n||``;try{Ft(e,function(e,n){let i=e;l(e)&&(i=ze(e)),t.push(r+n+`=`+encodeURIComponent(i))})}catch(e){throw t.push(r+`type=_badmap`),e}}function un(e){this.l=e.Ub||null,this.j=e.eb||!1}m(un,He),un.prototype.g=function(){return new dn(this.l,this.j)},un.prototype.i=function(e){return function(){return e}}({});function dn(e,t){Ae.call(this),this.D=e,this.o=t,this.m=void 0,this.status=this.readyState=0,this.responseType=this.responseText=this.response=this.statusText=``,this.onreadystatechange=null,this.u=new Headers,this.h=null,this.B=`GET`,this.A=``,this.g=!1,this.v=this.j=this.l=null}m(dn,Ae),e=dn.prototype,e.open=function(e,t){if(this.readyState!=0)throw this.abort(),Error(`Error reopening a connection`);this.B=e,this.A=t,this.readyState=1,mn(this)},e.send=function(e){if(this.readyState!=1)throw this.abort(),Error(`need to call open() first. `);this.g=!0;let t={headers:this.u,method:this.B,credentials:this.m,cache:void 0};e&&(t.body=e),(this.D||s).fetch(new Request(this.A,t)).then(this.Sa.bind(this),this.ga.bind(this))},e.abort=function(){this.response=this.responseText=``,this.u=new Headers,this.status=0,this.j&&this.j.cancel(`Request was aborted.`).catch(()=>{}),1<=this.readyState&&this.g&&this.readyState!=4&&(this.g=!1,pn(this)),this.readyState=0},e.Sa=function(e){if(this.g&&(this.l=e,this.h||(this.status=this.l.status,this.statusText=this.l.statusText,this.h=e.headers,this.readyState=2,mn(this)),this.g&&(this.readyState=3,mn(this),this.g))){if(this.responseType===`arraybuffer`)e.arrayBuffer().then(this.Qa.bind(this),this.ga.bind(this));else if(s.ReadableStream!==void 0&&`body`in e){if(this.j=e.body.getReader(),this.o){if(this.responseType)throw Error(`responseType must be empty for "streamBinaryChunks" mode responses.`);this.response=[]}else this.response=this.responseText=``,this.v=new TextDecoder;fn(this)}else e.text().then(this.Ra.bind(this),this.ga.bind(this))}};function fn(e){e.j.read().then(e.Pa.bind(e)).catch(e.ga.bind(e))}e.Pa=function(e){if(this.g){if(this.o&&e.value)this.response.push(e.value);else if(!this.o){var t=e.value?e.value:new Uint8Array;(t=this.v.decode(t,{stream:!e.done}))&&(this.response=this.responseText+=t)}e.done?pn(this):mn(this),this.readyState==3&&fn(this)}},e.Ra=function(e){this.g&&(this.response=this.responseText=e,pn(this))},e.Qa=function(e){this.g&&(this.response=e,pn(this))},e.ga=function(){this.g&&pn(this)};function pn(e){e.readyState=4,e.l=null,e.j=null,e.v=null,mn(e)}e.setRequestHeader=function(e,t){this.u.append(e,t)},e.getResponseHeader=function(e){return this.h&&this.h.get(e.toLowerCase())||``},e.getAllResponseHeaders=function(){if(!this.h)return``;let e=[],t=this.h.entries();for(var n=t.next();!n.done;)n=n.value,e.push(n[0]+`: `+n[1]),n=t.next();return e.join(`\r
17`)};function mn(e){e.onreadystatechange&&e.onreadystatechange.call(e)}Object.defineProperty(dn.prototype,"withCredentials",{get:function(){return this.m===`include`},set:function(e){this.m=e?`include`:`same-origin`}});function hn(e){let t=``;return S(e,function(e,n){t+=n,t+=`:`,t+=e,t+=`\r
18`}),t}function gn(e,t,n){a:{for(r in n){var r=!1;break a}r=!0}r||(n=hn(n),typeof e==`string`||F(e,t,n))}function _n(e){Ae.call(this),this.headers=new Map,this.o=e||null,this.h=!1,this.v=this.g=null,this.D=``,this.m=0,this.l=``,this.j=this.B=this.u=this.A=!1,this.I=null,this.H=``,this.J=!1}m(_n,Ae);var vn=/^https?$/i,yn=[`POST`,`PUT`];e=_n.prototype,e.Ha=function(e){this.J=e},e.ea=function(e,t,n,r){if(this.g)throw Error(`[goog.net.XhrIo] Object is active with another request=`+this.D+`; newUri=`+e);t=t?t.toUpperCase():`GET`,this.D=e,this.l=``,this.m=0,this.A=!1,this.h=!0,this.g=this.o?this.o.g():lt.g(),this.v=this.o?N(this.o):N(lt),this.g.onreadystatechange=f(this.Ea,this);try{this.B=!0,this.g.open(t,String(e),!0),this.B=!1}catch(e){bn(this,e);return}if(e=n||``,n=new Map(this.headers),r){if(Object.getPrototypeOf(r)===Object.prototype)for(var i in r)n.set(i,r[i]);else if(typeof r.keys==`function`&&typeof r.get==`function`)for(let e of r.keys())n.set(e,r.get(e));else throw Error(`Unknown input type for opt_headers: `+String(r))}r=Array.from(n.keys()).find(e=>e.toLowerCase()==`content-type`),i=s.FormData&&e instanceof s.FormData,!(0<=Array.prototype.indexOf.call(yn,t,void 0))||r||i||n.set(`Content-Type`,`application/x-www-form-urlencoded;charset=utf-8`);for(let[e,t]of n)this.g.setRequestHeader(e,t);this.H&&(this.g.responseType=this.H),`withCredentials`in this.g&&this.g.withCredentials!==this.J&&(this.g.withCredentials=this.J);try{wn(this),this.u=!0,this.g.send(e),this.u=!1}catch(e){bn(this,e)}};function bn(e,t){e.h=!1,e.g&&(e.j=!0,e.g.abort(),e.j=!1),e.l=t,e.m=5,xn(e),Cn(e)}function xn(e){e.A||(e.A=!0,je(e,`complete`),je(e,`error`))}e.abort=function(e){this.g&&this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1,this.m=e||7,je(this,`complete`),je(this,`abort`),Cn(this))},e.N=function(){this.g&&(this.h&&(this.h=!1,this.j=!0,this.g.abort(),this.j=!1),Cn(this,!0)),_n.aa.N.call(this)},e.Ea=function(){this.s||(this.B||this.u||this.j?Sn(this):this.bb())},e.bb=function(){Sn(this)};function Sn(e){if(e.h&&o!==void 0&&(!e.v[1]||Tn(e)!=4||e.Z()!=2)){if(e.u&&Tn(e)==4)Ne(e.Ea,0,e);else if(je(e,`readystatechange`),Tn(e)==4){e.h=!1;try{let o=e.Z();a:switch(o){case 200:case 201:case 202:case 204:case 206:case 304:case 1223:var t=!0;break a;default:t=!1}var n;if(!(n=t)){var r;if(r=o===0){var i=String(e.D).match(It)[1]||null;!i&&s.self&&s.self.location&&(i=s.self.location.protocol.slice(0,-1)),r=!vn.test(i?i.toLowerCase():``)}n=r}if(n)je(e,`complete`),je(e,`success`);else{e.m=6;try{var a=2<Tn(e)?e.g.statusText:``}catch{a=``}e.l=a+` [`+e.Z()+`]`,xn(e)}}finally{Cn(e)}}}}function Cn(e,t){if(e.g){wn(e);let n=e.g,r=e.v[0]?()=>{}:null;e.g=null,e.v=null,t||je(e,`ready`);try{n.onreadystatechange=r}catch{}}}function wn(e){e.I&&=(s.clearTimeout(e.I),null)}e.isActive=function(){return!!this.g};function Tn(e){return e.g?e.g.readyState:0}e.Z=function(){try{return 2<Tn(this)?this.g.status:-1}catch{return-1}},e.oa=function(){try{return this.g?this.g.responseText:``}catch{return``}},e.Oa=function(e){if(this.g){var t=this.g.responseText;return e&&t.indexOf(e)==0&&(t=t.substring(e.length)),Be(t)}};function En(e){try{if(!e.g)return null;if(`response`in e.g)return e.g.response;switch(e.H){case``:case`text`:return e.g.responseText;case`arraybuffer`:if(`mozResponseArrayBuffer`in e.g)return e.g.mozResponseArrayBuffer}return null}catch{return null}}function Dn(e){let t={};e=(e.g&&2<=Tn(e)&&e.g.getAllResponseHeaders()||``).split(`\r
19`);for(let r=0;r<e.length;r++){if(v(e[r]))continue;var n=ee(e[r]);let i=n[0];if(n=n[1],typeof n!=`string`)continue;n=n.trim();let a=t[i]||[];t[i]=a,a.push(n)}C(t,function(e){return e.join(`, `)})}e.Ba=function(){return this.m},e.Ka=function(){return typeof this.l==`string`?this.l:String(this.l)};function On(e,t,n){return n&&n.internalChannelParams&&n.internalChannelParams[e]||t}function kn(e){this.Aa=0,this.i=[],this.j=new nt,this.ia=this.qa=this.I=this.W=this.g=this.ya=this.D=this.H=this.m=this.S=this.o=null,this.Ya=this.U=0,this.Va=On(`failFast`,!1,e),this.F=this.C=this.u=this.s=this.l=null,this.X=!0,this.za=this.T=-1,this.Y=this.v=this.B=0,this.Ta=On(`baseRetryDelayMs`,5e3,e),this.cb=On(`retryDelaySeedMs`,1e4,e),this.Wa=On(`forwardChannelMaxRetries`,2,e),this.wa=On(`forwardChannelRequestTimeoutMs`,2e4,e),this.pa=e&&e.xmlHttpFactory||void 0,this.Xa=e&&e.Tb||void 0,this.Ca=e&&e.useFetchStreams||!1,this.L=void 0,this.J=e&&e.supportsCrossDomainXhr||!1,this.K=``,this.h=new Et(e&&e.concurrentRequestLimit),this.Da=new cn,this.P=e&&e.fastHandshake||!1,this.O=e&&e.encodeInitMessageHeaders||!1,this.P&&this.O&&(this.O=!1),this.Ua=e&&e.Rb||!1,e&&e.xa&&this.j.xa(),e&&e.forceLongPolling&&(this.X=!1),this.ba=!this.P&&this.X&&e&&e.detectBufferingProxy||!1,this.ja=void 0,e&&e.longPollingTimeout&&0<e.longPollingTimeout&&(this.ja=e.longPollingTimeout),this.ca=void 0,this.R=0,this.M=!1,this.ka=this.A=null}e=kn.prototype,e.la=8,e.G=1,e.connect=function(e,t,n,r){$e(0),this.W=e,this.H=t||{},n&&r!==void 0&&(this.H.OSID=n,this.H.OAID=r),this.F=this.X,this.I=Kn(this,null,this.W),Mn(this)};function An(e){if(jn(e),e.G==3){var t=e.U++,n=zt(e.I);if(F(n,`SID`,e.K),F(n,`RID`,t),F(n,`TYPE`,`terminate`),Fn(e,n),t=new dt(e,e.j,t),t.L=2,t.v=Ut(zt(n)),n=!1,s.navigator&&s.navigator.sendBeacon)try{n=s.navigator.sendBeacon(t.v.toString(),``)}catch{}!n&&s.Image&&(new Image().src=t.v,n=!0),n||(t.g=qn(t.j,null),t.g.ea(t.v)),t.F=Date.now(),yt(t)}Gn(e)}function L(e){e.g&&=(zn(e),e.g.cancel(),null)}function jn(e){L(e),e.u&&=(s.clearTimeout(e.u),null),Vn(e),e.h.cancel(),e.s&&=(typeof e.s==`number`&&s.clearTimeout(e.s),null)}function Mn(e){if(!Dt(e.h)&&!e.s){e.s=!0;var t=e.Ga;ie||oe(),k||=(ie(),!0),ae.add(t,e),e.B=0}}function Nn(e,t){return Ot(e.h)>=e.h.j-+!!e.s?!1:e.s?(e.i=t.D.concat(e.i),!0):e.G==1||e.G==2||e.B>=(e.Va?0:e.Wa)?!1:(e.s=tt(f(e.Ga,e,t),Un(e,e.B)),e.B++,!0)}e.Ga=function(e){if(this.s){if(this.s=null,this.G==1){if(!e){this.U=Math.floor(1e5*Math.random()),e=this.U++;let i=new dt(this,this.j,e),a=this.o;if(this.S&&(a?(a=w(a),E(a,this.S)):a=this.S),this.m!==null||this.O||(i.H=a,a=null),this.P)a:{for(var t=0,n=0;n<this.i.length;n++){b:{var r=this.i[n];if(`__data__`in r.map&&(r=r.map.__data__,typeof r==`string`)){r=r.length;break b}r=void 0}if(r===void 0)break;if(t+=r,4096<t){t=n;break a}if(t===4096||n===this.i.length-1){t=n+1;break a}}t=1e3}else t=1e3;t=In(this,i,t),n=zt(this.I),F(n,`RID`,e),F(n,`CVER`,22),this.D&&F(n,`X-HTTP-Session-Id`,this.D),Fn(this,n),a&&(this.O?t=`headers=`+encodeURIComponent(String(hn(a)))+`&`+t:this.m&&gn(n,this.m,a)),At(this.h,i),this.Ua&&F(n,`TYPE`,`init`),this.P?(F(n,`$req`,t),F(n,`SID`,`null`),i.T=!0,ht(i,n,null)):ht(i,n,t),this.G=2}}else this.G==3&&(e?Pn(this,e):this.i.length==0||Dt(this.h)||Pn(this))}};function Pn(e,t){var n=t?t.l:e.U++;let r=zt(e.I);F(r,`SID`,e.K),F(r,`RID`,n),F(r,`AID`,e.T),Fn(e,r),e.m&&e.o&&gn(r,e.m,e.o),n=new dt(e,e.j,n,e.B+1),e.m===null&&(n.H=e.o),t&&(e.i=t.D.concat(e.i)),t=In(e,n,1e3),n.I=Math.round(.5*e.wa)+Math.round(.5*e.wa*Math.random()),At(e.h,n),ht(n,r,t)}function Fn(e,t){e.H&&S(e.H,function(e,n){F(t,n,e)}),e.l&&Ft({},function(e,n){F(t,n,e)})}function In(e,t,n){n=Math.min(e.i.length,n);var r=e.l?f(e.l.Na,e.l,e):null;a:{var i=e.i;let t=-1;for(;;){let e=[`count=`+n];t==-1?0<n?(t=i[0].g,e.push(`ofs=`+t)):t=0:e.push(`ofs=`+t);let a=!0;for(let o=0;o<n;o++){let n=i[o].g,s=i[o].map;if(n-=t,0>n)t=Math.max(0,i[o].g-100),a=!1;else try{ln(s,e,`req`+n+`_`)}catch{r&&r(s)}}if(a){r=e.join(`&`);break a}}}return e=e.i.splice(0,n),t.D=e,r}function Ln(e){if(!e.g&&!e.u){e.Y=1;var t=e.Fa;ie||oe(),k||=(ie(),!0),ae.add(t,e),e.v=0}}function Rn(e){return e.g||e.u||3<=e.v?!1:(e.Y++,e.u=tt(f(e.Fa,e),Un(e,e.v)),e.v++,!0)}e.Fa=function(){if(this.u=null,Bn(this),this.ba&&!(this.M||this.g==null||0>=this.R)){var e=2*this.R;this.j.info(`BP detection timer enabled: `+e),this.A=tt(f(this.ab,this),e)}},e.ab=function(){this.A&&(this.A=null,this.j.info(`BP detection timeout reached.`),this.j.info(`Buffering proxy detected and switch to long-polling!`),this.F=!1,this.M=!0,$e(10),L(this),Bn(this))};function zn(e){e.A!=null&&(s.clearTimeout(e.A),e.A=null)}function Bn(e){e.g=new dt(e,e.j,`rpc`,e.Y),e.m===null&&(e.g.H=e.o),e.g.O=0;var t=zt(e.qa);F(t,`RID`,`rpc`),F(t,`SID`,e.K),F(t,`AID`,e.T),F(t,`CI`,e.F?`0`:`1`),!e.F&&e.ja&&F(t,`TO`,e.ja),F(t,`TYPE`,`xmlhttp`),Fn(e,t),e.m&&e.o&&gn(t,e.m,e.o),e.L&&(e.g.I=e.L);var n=e.g;e=e.ia,n.L=1,n.v=Ut(zt(t)),n.m=null,n.P=!0,gt(n,e)}e.Za=function(){this.C!=null&&(this.C=null,L(this),Rn(this),$e(19))};function Vn(e){e.C!=null&&(s.clearTimeout(e.C),e.C=null)}function Hn(e,t){var n=null;if(e.g==t){Vn(e),zn(e),e.g=null;var r=2}else if(kt(e.h,t))n=t.D,jt(e.h,t),r=1;else return;if(e.G!=0){if(t.o){if(r==1){n=t.m?t.m.length:0,t=Date.now()-t.F;var i=e.B;r=Ye(),je(r,new et(r,n)),Mn(e)}else Ln(e)}else if(i=t.s,i==3||i==0&&0<t.X||!(r==1&&Nn(e,t)||r==2&&Rn(e)))switch(n&&0<n.length&&(t=e.h,t.i=t.i.concat(n)),i){case 1:Wn(e,5);break;case 4:Wn(e,10);break;case 3:Wn(e,6);break;default:Wn(e,2)}}}function Un(e,t){let n=e.Ta+Math.floor(Math.random()*e.cb);return e.isActive()||(n*=2),n*t}function Wn(e,t){if(e.j.info(`Error code `+t),t==2){var n=f(e.fb,e),r=e.Xa;let t=!r;r=new Rt(r||`//www.google.com/images/cleardot.gif`),s.location&&s.location.protocol==`http`||Bt(r,`https`),Ut(r),t?an(r.toString(),n):on(r.toString(),n)}else $e(2);e.G=0,e.l&&e.l.sa(t),Gn(e),jn(e)}e.fb=function(e){e?(this.j.info(`Successfully pinged google.com`),$e(2)):(this.j.info(`Failed to ping google.com`),$e(1))};function Gn(e){if(e.G=0,e.ka=[],e.l){let t=Mt(e.h);(t.length!=0||e.i.length!=0)&&(g(e.ka,t),g(e.ka,e.i),e.h.i.length=0,h(e.i),e.i.length=0),e.l.ra()}}function Kn(e,t,n){var r=n instanceof Rt?zt(n):new Rt(n);if(r.g!=``)t&&(r.g=t+`.`+r.g),Vt(r,r.s);else{var i=s.location;r=i.protocol,t=t?t+`.`+i.hostname:i.hostname,i=+i.port;var a=new Rt(null);r&&Bt(a,r),t&&(a.g=t),i&&Vt(a,i),n&&(a.l=n),r=a}return n=e.D,t=e.ya,n&&t&&F(r,n,t),F(r,`VER`,e.la),Fn(e,r),r}function qn(e,t,n){if(t&&!e.J)throw Error(`Can't create secondary domain capable XhrIo object.`);return t=e.Ca&&!e.pa?new _n(new un({eb:n})):new _n(e.pa),t.Ha(e.J),t}e.isActive=function(){return!!this.l&&this.l.isActive(this)};function Jn(){}e=Jn.prototype,e.ua=function(){},e.ta=function(){},e.sa=function(){},e.ra=function(){},e.isActive=function(){return!0},e.Na=function(){};function Yn(){}Yn.prototype.g=function(e,t){return new Xn(e,t)};function Xn(e,t){Ae.call(this),this.g=new kn(t),this.l=e,this.h=t&&t.messageUrlParams||null,e=t&&t.messageHeaders||null,t&&t.clientProtocolHeaderRequired&&(e?e[`X-Client-Protocol`]=`webchannel`:e={"X-Client-Protocol":`webchannel`}),this.g.o=e,e=t&&t.initMessageHeaders||null,t&&t.messageContentType&&(e?e[`X-WebChannel-Content-Type`]=t.messageContentType:e={"X-WebChannel-Content-Type":t.messageContentType}),t&&t.va&&(e?e[`X-WebChannel-Client-Profile`]=t.va:e={"X-WebChannel-Client-Profile":t.va}),this.g.S=e,(e=t&&t.Sb)&&!v(e)&&(this.g.m=e),this.v=t&&t.supportsCrossDomainXhr||!1,this.u=t&&t.sendRawJson||!1,(t&&=t.httpSessionIdParam)&&!v(t)&&(this.g.D=t,e=this.h,e!==null&&t in e&&(e=this.h,t in e&&delete e[t])),this.j=new $n(this)}m(Xn,Ae),Xn.prototype.m=function(){this.g.l=this.j,this.v&&(this.g.J=!0),this.g.connect(this.l,this.h||void 0)},Xn.prototype.close=function(){An(this.g)},Xn.prototype.o=function(e){var t=this.g;if(typeof e==`string`){var n={};n.__data__=e,e=n}else this.u&&(n={},n.__data__=ze(e),e=n);t.i.push(new Tt(t.Ya++,e)),t.G==3&&Mn(t)},Xn.prototype.N=function(){this.g.l=null,delete this.j,An(this.g),delete this.g,Xn.aa.N.call(this)};function Zn(e){Ge.call(this),e.__headers__&&(this.headers=e.__headers__,this.statusCode=e.__status__,delete e.__headers__,delete e.__status__);var t=e.__sm__;if(t){a:{for(let n in t){e=n;break a}e=void 0}(this.i=e)&&(e=this.i,t=t!==null&&e in t?t[e]:void 0),this.data=t}else this.data=e}m(Zn,Ge);function Qn(){Ke.call(this),this.status=1}m(Qn,Ke);function $n(e){this.g=e}m($n,Jn),$n.prototype.ua=function(){je(this.g,`a`)},$n.prototype.ta=function(e){je(this.g,new Zn(e))},$n.prototype.sa=function(e){je(this.g,new Qn)},$n.prototype.ra=function(){je(this.g,`b`)},Yn.prototype.createWebChannel=Yn.prototype.g,Xn.prototype.send=Xn.prototype.o,Xn.prototype.open=Xn.prototype.m,Xn.prototype.close=Xn.prototype.close,l_=t_.createWebChannelTransport=function(){return new Yn},c_=t_.getStatEventTarget=function(){return Ye()},s_=t_.Event=qe,o_=t_.Stat={mb:0,pb:1,qb:2,Jb:3,Ob:4,Lb:5,Mb:6,Kb:7,Ib:8,Nb:9,PROXY:10,NOPROXY:11,Gb:12,Cb:13,Db:14,Bb:15,Eb:16,Fb:17,ib:18,hb:19,jb:20},st.NO_ERROR=0,st.TIMEOUT=8,st.HTTP_ERROR=6,a_=t_.ErrorCode=st,ct.COMPLETE=`complete`,i_=t_.EventType=ct,Ue.EventType=We,We.OPEN=`a`,We.CLOSE=`b`,We.ERROR=`c`,We.MESSAGE=`d`,Ae.prototype.listen=Ae.prototype.K,r_=t_.WebChannel=Ue,_n.prototype.listenOnce=_n.prototype.L,_n.prototype.getLastError=_n.prototype.Ka,_n.prototype.getLastErrorCode=_n.prototype.Ba,_n.prototype.getStatus=_n.prototype.Z,_n.prototype.getResponseJson=_n.prototype.Oa,_n.prototype.getResponseText=_n.prototype.oa,_n.prototype.send=_n.prototype.ea,_n.prototype.setWithCredentials=_n.prototype.Ha,n_=t_.XhrIo=_n}).apply(e_===void 0?typeof self<`u`?self:typeof window<`u`?window:{}:e_);var u_=`@firebase/firestore`,d_=class{constructor(e){this.uid=e}isAuthenticated(){return this.uid!=null}toKey(){return this.isAuthenticated()?`uid:`+this.uid:`anonymous-user`}isEqual(e){return e.uid===this.uid}};d_.UNAUTHENTICATED=new d_(null),d_.GOOGLE_CREDENTIALS=new d_(`google-credentials-uid`),d_.FIRST_PARTY=new d_(`first-party-uid`),d_.MOCK_USER=new d_(`mock-user`);var f_=`10.14.0`,p_=new Vs(`@firebase/firestore`);function m_(){return p_.logLevel}function U(e,...t){if(p_.logLevel<=Is.DEBUG){let n=t.map(__);p_.debug(`Firestore (${f_}): ${e}`,...n)}}function h_(e,...t){if(p_.logLevel<=Is.ERROR){let n=t.map(__);p_.error(`Firestore (${f_}): ${e}`,...n)}}function g_(e,...t){if(p_.logLevel<=Is.WARN){let n=t.map(__);p_.warn(`Firestore (${f_}): ${e}`,...n)}}function __(e){if(typeof e==`string`)return e;try{return function(e){return JSON.stringify(e)}(e)}catch{return e}}function W(e=`Unexpected state`){let t=`FIRESTORE (${f_}) INTERNAL ASSERTION FAILED: `+e;throw h_(t),Error(t)}function v_(e,t){e||W()}function y_(e,t){return e}var G={OK:`ok`,CANCELLED:`cancelled`,UNKNOWN:`unknown`,INVALID_ARGUMENT:`invalid-argument`,DEADLINE_EXCEEDED:`deadline-exceeded`,NOT_FOUND:`not-found`,ALREADY_EXISTS:`already-exists`,PERMISSION_DENIED:`permission-denied`,UNAUTHENTICATED:`unauthenticated`,RESOURCE_EXHAUSTED:`resource-exhausted`,FAILED_PRECONDITION:`failed-precondition`,ABORTED:`aborted`,OUT_OF_RANGE:`out-of-range`,UNIMPLEMENT
19ED:`unimplemented`,INTERNAL:`internal`,UNAVAILABLE:`unavailable`,DATA_LOSS:`data-loss`},K=class extends as{constructor(e,t){super(e,t),this.code=e,this.message=t,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}},b_=class{constructor(){this.promise=new Promise(((e,t)=>{this.resolve=e,this.reject=t}))}},x_=class{constructor(e,t){this.user=t,this.type=`OAuth`,this.headers=new Map,this.headers.set(`Authorization`,`Bearer ${e}`)}},S_=class{getToken(){return Promise.resolve(null)}invalidateToken(){}start(e,t){e.enqueueRetryable((()=>t(d_.UNAUTHENTICATED)))}shutdown(){}},C_=class{constructor(e){this.token=e,this.changeListener=null}getToken(){return Promise.resolve(this.token)}invalidateToken(){}start(e,t){this.changeListener=t,e.enqueueRetryable((()=>t(this.token.user)))}shutdown(){this.changeListener=null}},w_=class{constructor(e){this.t=e,this.currentUser=d_.UNAUTHENTICATED,this.i=0,this.forceRefresh=!1,this.auth=null}start(e,t){v_(this.o===void 0);let n=this.i,r=e=>this.i===n?Promise.resolve():(n=this.i,t(e)),i=new b_;this.o=()=>{this.i++,this.currentUser=this.u(),i.resolve(),i=new b_,e.enqueueRetryable((()=>r(this.currentUser)))};let a=()=>{let t=i;e.enqueueRetryable((async()=>{await t.promise,await r(this.currentUser)}))},o=e=>{U(`FirebaseAuthCredentialsProvider`,`Auth detected`),this.auth=e,this.o&&(this.auth.addAuthTokenListener(this.o),a())};this.t.onInit((e=>o(e))),setTimeout((()=>{if(!this.auth){let e=this.t.getImmediate({optional:!0});e?o(e):(U(`FirebaseAuthCredentialsProvider`,`Auth not yet detected`),i.resolve(),i=new b_)}}),0),a()}getToken(){let e=this.i,t=this.forceRefresh;return this.forceRefresh=!1,this.auth?this.auth.getToken(t).then((t=>this.i===e?t?(v_(typeof t.accessToken==`string`),new x_(t.accessToken,this.currentUser)):null:(U(`FirebaseAuthCredentialsProvider`,`getToken aborted due to token change.`),this.getToken()))):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.auth&&this.o&&this.auth.removeAuthTokenListener(this.o),this.o=void 0}u(){let e=this.auth&&this.auth.getUid();return v_(e===null||typeof e==`string`),new d_(e)}},T_=class{constructor(e,t,n){this.l=e,this.h=t,this.P=n,this.type=`FirstParty`,this.user=d_.FIRST_PARTY,this.I=new Map}T(){return this.P?this.P():null}get headers(){this.I.set(`X-Goog-AuthUser`,this.l);let e=this.T();return e&&this.I.set(`Authorization`,e),this.h&&this.I.set(`X-Goog-
19Iam-Authorization-Token`,this.h),this.I}},E_=class{constructor(e,t,n){this.l=e,this.h=t,this.P=n}getToken(){return Promise.resolve(new T_(this.l,this.h,this.P))}start(e,t){e.enqueueRetryable((()=>t(d_.FIRST_PARTY)))}shutdown(){}invalidateToken(){}},D_=class{constructor(e){this.value=e,this.type=`AppCheck`,this.headers=new Map,e&&e.length>0&&this.headers.set(`x-firebase-appcheck`,this.value)}},O_=class{constructor(e){this.A=e,this.forceRefresh=!1,this.appCheck=null,this.R=null}start(e,t){v_(this.o===void 0);let n=e=>{e.error!=null&&U(`FirebaseAppCheckTokenProvider`,`Error getting App Check token; using placeholder token instead. Error: ${e.error.message}`);let n=e.token!==this.R;return this.R=e.token,U(`FirebaseAppCheckTokenProvider`,`Received ${n?`new`:`existing`} token.`),n?t(e.token):Promise.resolve()};this.o=t=>{e.enqueueRetryable((()=>n(t)))};let r=e=>{U(`FirebaseAppCheckTokenProvider`,`AppCheck detected`),this.appCheck=e,this.o&&this.appCheck.addTokenListener(this.o)};this.A.onInit((e=>r(e))),setTimeout((()=>{if(!this.appCheck){let e=this.A.getImmediate({optional:!0});e?r(e):U(`FirebaseAppCheckTokenProvider`,`AppCheck not yet detected`)}}),0)}getToken(){let e=this.forceRefresh;return this.forceRefresh=!1,this.appCheck?this.appCheck.getToken(e).then((e=>e?(v_(typeof e.token==`string`),this.R=e.token,new D_(e.token)):null)):Promise.resolve(null)}invalidateToken(){this.forceRefresh=!0}shutdown(){this.appCheck&&this.o&&this.appCheck.removeTokenListener(this.o),this.o=void 0}};function k_(e){let t=typeof self<`u`&&(self.crypto||self.msCrypto),n=new Uint8Array(e);if(t&&typeof t.getRandomValues==`function`)t.getRandomValues(n);else for(let t=0;t<e;t++)n[t]=Math.floor(256*Math.random());return n}var A_=class{static newId(){let e=``;for(;e.length<20;){let t=k_(40);for(let n=0;n<t.length;++n)e.length<20&&t[n]<248&&(e+=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`.charAt(t[n]%62))}return e}};function j_(e,t){return e<t?-1:+(e>t)}function M_(e,t,n){return e.length===t.length&&e.every(((e,r)=>n(e,t[r])))}var N_=class e{constructor(e,t){if(this.seconds=e,this.nanoseconds=t,t<0||t>=1e9)throw new K(G.INVALID_ARGUMENT,`Timestamp nanoseconds out of range: `+t);if(e<-62135596800||e>=253402300800)throw new K(G.INVALID_ARGUMENT,`Timestamp seconds out of range: `+e)}static now(){return e.fromMillis(Date.now())}static fromDate(t){return e.fromMillis(t.getTime())}static fromMillis(t){let n=Math.floor(t/1e3),r=Math.floor(1e6*(t-1e3*n));return new e(n,r)}toDate(){return new Date(this.toMillis())}toMillis(){return 1e3*this.seconds+this.nanoseconds/1e6}_compareTo(e){return this.seconds===e.seconds?j_(this.nanoseconds,e.nanoseconds):j_(this.seconds,e.seconds)}isEqual(e){return e.seconds===this.seconds&&e.nanoseconds===this.nanoseconds}toString(){return`Timestamp(seconds=`+this.seconds+`, nanoseconds=`+this.nanoseconds+`)`}toJSON(){return{seconds:this.seconds,nanoseconds:this.nanoseconds}}valueOf(){let e=this.seconds- -62135596800;return String(e).padStart(12,`0`)+`.`+String(this.nanoseconds).padStart(9,`0`)}},P_=class e{constructor(e){this.timestamp=e}static fromTimestamp(t){return new e(t)}static min(){return new e(new N_(0,0))}static max(){return new e(new N_(253402300799,999999999))}compareTo(e){return this.timestamp._compareTo(e.timestamp)}isEqual(e){return this.timestamp.isEqual(e.timestamp)}toMicroseconds(){return 1e6*this.timestamp.seconds+this.timestamp.nanoseconds/1e3}toString(){return`SnapshotVersion(`+this.timestamp.toString()+`)`}toTimestamp(){return this.timestamp}},F_=class e{constructor(e,t,n){t===void 0?t=0:t>e.length&&W(),n===void 0?n=e.length-t:n>e.length-t&&W(),this.segments=e,this.offset=t,this.len=n}get length(){return this.len}isEqual(t){return e.comparator(this,t)===0}child(t){let n=this.segments.slice(this.offset,this.limit());return t instanceof e?t.forEach((e=>{n.push(e)})):n.push(t),this.construct(n)}limit(){return this.offset+this.length}popFirst(e){return e=e===void 0?1:e,this.construct(this.segments,this.offset+e,this.length-e)}popLast(){return this.construct(this.segments,this.offset,this.length-1)}firstSegment(){return this.segments[this.offset]}lastSegment(){return this.get(this.length-1)}get(e){return this.segments[this.offset+e]}isEmpty(){return this.length===0}isPrefixOf(e){if(e.length<this.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}isImmediateParentOf(e){if(this.length+1!==e.length)return!1;for(let t=0;t<this.length;t++)if(this.get(t)!==e.get(t))return!1;return!0}forEach(e){for(let t=this.offset,n=this.limit();t<n;t++)e(this.segments[t])}toArray(){return this.segments.slice(this.offset,this.limit())}static comparator(e,t){let n=Math.min(e.length,t.length);for(let r=0;r<n;r++){let n=e.get(r),i=t.get(r);if(n<i)return-1;if(n>i)return 1}return e.length<t.length?-1:+(e.length>t.length)}},I_=class e extends F_{construct(t,n,r){return new e(t,n,r)}canonicalString(){return this.toArray().join(`/`)}toString(){return this.canonicalString()}
19toUriEncodedString(){return this.toArray().map(encodeURIComponent).join(`/`)}static fromString(...t){let n=[];for(let e of t){if(e.indexOf(`//`)>=0)throw new K(G.INVALID_ARGUMENT,`Invalid segment (${e}). Paths must not contain // in them.`);n.push(...e.split(`/`).filter((e=>e.length>0)))}return new e(n)}static emptyPath(){return new e([])}},L_=/^[_a-zA-Z][_a-zA-Z0-9]*$/,R_=class e extends F_{construct(t,n,r){return new e(t,n,r)}static isValidIdentifier(e){return L_.test(e)}canonicalString(){return this.toArray().map((t=>(t=t.replace(/\\/g,`\\\\`).replace(/`/g,"\\`"),e.isValidIdentifier(t)||(t="`"+t+"`"),t))).join(`.`)}toString(){return this.canonicalString()}isKeyField(){return this.length===1&&this.get(0)===`__name__`}static keyField(){return new e([`__name__`])}static fromServerFormat(t){let n=[],r=``,i=0,a=()=>{if(r.length===0)throw new K(G.INVALID_ARGUMENT,`Invalid field path (${t}). Paths must not be empty, begin with '.', end with '.', or contain '..'`);n.push(r),r=``},o=!1;for(;i<t.length;){let e=t[i];if(e===`\\`){if(i+1===t.length)throw new K(G.INVALID_ARGUMENT,`Path has trailing escape character: `+t);let e=t[i+1];if(e!==`\\`&&e!==`.`&&e!=="`")throw new K(G.INVALID_ARGUMENT,`Path has invalid escape sequence: `+t);r+=e,i+=2}else e==="`"?(o=!o,i++):e!==`.`||o?(r+=e,i++):(a(),i++)}if(a(),o)throw new K(G.INVALID_ARGUMENT,"Unterminated ` in path: "+t);return new e(n)}static emptyPath(){return new e([])}},q=class e{constructor(e){this.path=e}static fromPath(t){return new e(I_.fromString(t))}static fromName(t){return new e(I_.fromString(t).popFirst(5))}static empty(){return new e(I_.emptyPath())}get collectionGroup(){return this.path.popLast().lastSegment()}hasCollectionId(e){return this.path.length>=2&&this.path.get(this.path.length-2)===e}getCollectionGroup(){return this.path.get(this.path.length-2)}getCollectionPath(){return this.path.popLast()}isEqual(e){return e!==null&&I_.comparator(this.path,e.path)===0}toString(){return this.path.toString()}static comparator(e,t){return I_.comparator(e.path,t.path)}static isDocumentKey(e){return e.length%2==0}static fromSegments(t){return new e(new I_(t.slice()))}};function z_(e,t){let n=e.toTimestamp().seconds,r=e.toTimestamp().nanoseconds+1;return new V_(P_.fromTimestamp(r===1e9?new N_(n+1,0):new N_(n,r)),q.empty(),t)}function B_(e){return new V_(e.readTime,e.key,-1)}var V_=class e{constructor(e,t,n){this.readTime=e,this.documentKey=t,this.largestBatchId=n}static min(){return new e(P_.min(),q.empty(),-1)}static max(){return new e(P_.max(),q.empty(),-1)}};function H_(e,t){let n=e.readTime.compareTo(t.readTime);return n===0?(n=q.comparator(e.documentKey,t.documentKey),n===0?j_(e.largestBatchId,t.largestBatchId):n):n}var U_=`The current tab is not in the required state to perform this operation. It might be necessary to refresh the browser tab.`,W_=class{constructor(){this.onCommittedListeners=[]}addOnCommittedListener(e){this.onCommittedListeners.push(e)}raiseOnCommittedEvent(){this.onCommittedListeners.forEach((e=>e()))}};async function G_(e){if(e.code!==G.FAILED_PRECONDITION||e.message!==U_)throw e;U(`LocalStore`,`Unexpectedly lost primary lease`)}var J=class e{constructor(e){this.nextCallback=null,this.catchCallback=null,this.result=void 0,this.error=void 0,this.isDone=!1,this.callbackAttached=!1,e((e=>{this.isDone=!0,this.result=e,this.nextCallback&&this.nextCallback(e)}),(e=>{this.isDone=!0,this.error=e,this.catchCallback&&this.catchCallback(e)}))}catch(e){return this.next(void 0,e)}next(t,n){return this.callbackAttached&&W(),this.callbackAttached=!0,this.isDone?this.error?this.wrapFailure(n,this.error):this.wrapSuccess(t,this.result):new e(((e,r)=>{this.nextCallback=n=>{this.wrapSuccess(t,n).next(e,r)},this.catchCallback=t=>{this.wrapFailure(n,t).next(e,r)}}))}toPromise(){return new Promise(((e,t)=>{this.next(e,t)}))}wrapUserFunction(t){try{let n=t();return n instanceof e?n:e.resolve(n)}catch(t){return e.reject(t)}}wrapSuccess(t,n){return t?this.wrapUserFunction((()=>t(n))):e.resolve(n)}wrapFailure(t,n){return t?this.wrapUserFunction((()=>t(n))):e.reject(n)}static resolve(t){return new e(((e,n)=>{e(t)}))}static reject(t){return new e(((e,n)=>{n(t)}))}static waitFor(t){return new e(((e,n)=>{let r=0,i=0,a=!1;t.forEach((t=>{++r,t.next((()=>{++i,a&&i===r&&e()}),(e=>n(e)))})),a=!0,i===r&&e()}))}static or(t){let n=e.resolve(!1);for(let r of t)n=n.next((t=>
19t?e.resolve(t):r()));return n}static forEach(e,t){let n=[];return e.forEach(((e,r)=>{n.push(t.call(this,e,r))})),this.waitFor(n)}static mapArray(t,n){return new e(((e,r)=>{let i=t.length,a=Array(i),o=0;for(let s=0;s<i;s++){let c=s;n(t[c]).next((t=>{a[c]=t,++o,o===i&&e(a)}),(e=>r(e)))}}))}static doWhile(t,n){return new e(((e,r)=>{let i=()=>{!0===t()?n().next((()=>{i()}),r):e()};i()}))}};function K_(e){let t=e.match(/Android ([\d.]+)/i),n=t?t[1].split(`.`).slice(0,2).join(`.`):`-1`;return Number(n)}function q_(e){return e.name===`IndexedDbTransactionError`}var J_=class{constructor(e,t){this.previousValue=e,t&&(t.sequenceNumberHandler=e=>this.ie(e),this.se=e=>t.writeSequenceNumber(e))}ie(e){return this.previousValue=Math.max(e,this.previousValue),this.previousValue}next(){let e=++this.previousValue;return this.se&&this.se(e),e}};J_.oe=-1;function Y_(e){return e==null}function X_(e){return e===0&&1/e==-1/0}function Z_(e){return typeof e==`number`&&Number.isInteger(e)&&!X_(e)&&e<=2**53-1&&e>=-(2**53-1)}function Q_(e){let t=0;for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t++;return t}function $_(e,t){for(let n in e)Object.prototype.hasOwnProperty.call(e,n)&&t(n,e[n])}function ev(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t))return!1;return!0}var tv=class e{constructor(e,t){this.comparator=e,this.root=t||rv.EMPTY}insert(t,n){return new e(this.comparator,this.root.insert(t,n,this.comparator).copy(null,null,rv.BLACK,null,null))}remove(t){return new e(this.comparator,this.root.remove(t,this.comparator).copy(null,null,rv.BLACK,null,null))}get(e){let t=this.root;for(;!t.isEmpty();){let n=this.comparator(e,t.key);if(n===0)return t.value;n<0?t=t.left:n>0&&(t=t.right)}return null}indexOf(e){let t=0,n=this.root;for(;!n.isEmpty();){let r=this.comparator(e,n.key);if(r===0)return t+n.left.size;r<0?n=n.left:(t+=n.left.size+1,n=n.right)}return-1}isEmpty(){return this.root.isEmpty()}get size(){return this.root.size}minKey(){return this.root.minKey()}maxKey(){return this.root.maxKey()}inorderTraversal(e){return this.root.inorderTraversal(e)}forEach(e){this.inorderTraversal(((t,n)=>(e(t,n),!1)))}toString(){let e=[];return this.inorderTraversal(((t,n)=>(e.push(`${t}:${n}`),!1))),`{${e.join(`, `)}}`}reverseTraversal(e){return this.root.reverseTraversal(e)}getIterator(){return new nv(this.root,null,this.comparator,!1)}getIteratorFrom(e){return new nv(this.root,e,this.comparator,!1)}getReverseIterator(){return new nv(this.root,null,this.comparator,!0)}getReverseIteratorFrom(e){return new nv(this.root,e,this.comparator,!0)}},nv=class{constructor(e,t,n,r){this.isReverse=r,this.nodeStack=[];let i=1;for(;!e.isEmpty();)if(i=t?n(e.key,t):1,t&&r&&(i*=-1),i<0)e=this.isReverse?e.left:e.right;else{if(i===0){this.nodeStack.push(e);break}this.nodeStack.push(e),e=this.isReverse?e.right:e.left}}getNext(){let e=this.nodeStack.pop(),t={key:e.key,value:e.value};if(this.isReverse)for(e=e.left;!e.isEmpty();)this.nodeStack.push(e),e=e.right;else for(e=e.right;!e.isEmpty();)this.nodeStack.push(e),e=e.left;return t}hasNext(){return this.nodeStack.length>0}peek(){if(this.nodeStack.length===0)return null;let e=this.nodeStack[this.nodeStack.length-1];return{key:e.key,value:e.value}}},rv=class e{constructor(t,n,r,i,a){this.key=t,this.value=n,this.color=r??e.RED,this.left=i??e.EMPTY,this.right=a??e.EMPTY,this.size=this.left.size+1+this.right.size}copy(t,n,r,i,a){return new e(t??this.key,n??this.value,r??this.color,i??this.left,a??this.right)}isEmpty(){return!1}inorderTraversal(e){return this.left.inorderTraversal(e)||e(this.key,this.value)||this.right.inorderTraversal(e)}reverseTraversal(e){return this.right.reverseTraversal(e)||e(this.key,this.value)||this.left.reverseTraversal(e)}min(){return this.left.isEmpty()?this:this.left.min()}minKey(){return this.min().key}maxKey(){return this.right.isEmpty()?this.key:this.right.maxKey()}insert(e,t,n){let r=this,i=n(e,r.key);return r=i<0?r.copy(null,null,null,r.left.insert(e,t,n),null):i===0?r.copy(null,t,null,null,null):r.copy(null,null,null,null,r.right.insert(e,t,n)),r.fixUp()}removeMin(){if(this.left.isEmpty())return e.EMPTY;let t=this;return t.left.isRed()||t.left.left.isRed()||(t=t.moveRedLeft()),t=t.copy(null,null,null,t.left.removeMin(),null),t.fixUp()}remove(t,n){let r,i=this;if(n(t,i.key)<0)i.left.isEmpty()||i.left.isRed()||i.left.left.isRed()||(i=i.moveRedLeft()),i=i.copy(null,null,null,i.left.remove(t,n),null);else{if(i.left.isRed()&&(i=i.rotateRight()),i.right.isEmpty()||i.right.isRed()||i.right.left.isRed()||(i=i.moveRedRight()),n(t,i.key)===0){if(i.right.isEmpty())return e.EMPTY;r=i.right.min(),i=i.copy(r.key,r.value,null,null,i.right.removeMin())}i=i.copy(null,null,null,null,i.right.remove(t,n))}return i.fixUp()}isRed(){return this.color}fixUp(){let e=this;return e.right.isRed()&&!e.left.isRed()&&(e=e.rotateLeft()),e.left.isRed()&&e.left.left.isRed()&&(e=e.rotateRight()),e.left.isRed()&&e.right.isRed()&&(e=e.colorFlip()),e}moveRedLeft(){let e=this.colorFlip();return e.right.left.isRed()&&(e=e.copy(null,null,null,null,e.right.rotateRight()),e=e.rotateLeft(),e=e.colorFlip()),e}moveRedRight(){let e=this.colorFlip();return e.left.left.isRed()&&(e=e.rotateRight(),e=e.colorFlip()),e}rotateLeft(){let t=this.copy(null,null,e.RED,null,this.right.left);return this.right.copy(null,null,this.color,t,null)}rotateRight(){let t=this.copy(null,null,e.RED,this.left.right,null);return this.left.copy(null,null,this.color,null,t)}colorFlip(){let e=this.left.copy(null,null,!this.left.color,null,null),t=this.right.copy(null,null,!this.right.color,null,null);return this.copy(null,null,!this.color,e,t)}checkMaxDepth(){return 2**this.check()<=this.size+1}check(){if(this.isRed()&&this.left.isRed()||this.right.isRed())throw W();let e=this.left.check();if(e!==this.right.check())throw W();return e+ +!this.isRed()}};
19rv.EMPTY=null,rv.RED=!0,rv.BLACK=!1,rv.EMPTY=new class{constructor(){this.size=0}get key(){throw W()}get value(){throw W()}get color(){throw W()}get left(){throw W()}get right(){throw W()}copy(e,t,n,r,i){return this}insert(e,t,n){return new rv(e,t)}remove(e,t){return this}isEmpty(){return!0}inorderTraversal(e){return!1}reverseTraversal(e){return!1}minKey(){return null}maxKey(){return null}isRed(){return!1}checkMaxDepth(){return!0}check(){return 0}};var iv=class e{constructor(e){this.comparator=e,this.data=new tv(this.comparator)}has(e){return this.data.get(e)!==null}first(){return this.data.minKey()}last(){return this.data.maxKey()}get size(){return this.data.size}indexOf(e){return this.data.indexOf(e)}forEach(e){this.data.inorderTraversal(((t,n)=>(e(t),!1)))}forEachInRange(e,t){let n=this.data.getIteratorFrom(e[0]);for(;n.hasNext();){let r=n.getNext();if(this.comparator(r.key,e[1])>=0)return;t(r.key)}}forEachWhile(e,t){let n;for(n=t===void 0?this.data.getIterator():this.data.getIteratorFrom(t);n.hasNext();)if(!e(n.getNext().key))return}firstAfterOrEqual(e){let t=this.data.getIteratorFrom(e);return t.hasNext()?t.getNext().key:null}getIterator(){return new av(this.data.getIterator())}getIteratorFrom(e){return new av(this.data.getIteratorFrom(e))}add(e){return this.copy(this.data.remove(e).insert(e,!0))}delete(e){return this.has(e)?this.copy(this.data.remove(e)):this}isEmpty(){return this.data.isEmpty()}unionWith(e){let t=this;return t.size<e.size&&(t=e,e=this),e.forEach((e=>{t=t.add(e)})),t}isEqual(t){if(!(t instanceof e)||this.size!==t.size)return!1;let n=this.data.getIterator(),r=t.data.getIterator();for(;n.hasNext();){let e=n.getNext().key,t=r.getNext().key;if(this.comparator(e,t)!==0)return!1}return!0}toArray(){let e=[];return this.forEach((t=>{e.push(t)})),e}toString(){let e=[];return this.forEach((t=>e.push(t))),`SortedSet(`+e.toString()+`)`}copy(t){let n=new e(this.comparator);return n.data=t,n}},av=class{constructor(e){this.iter=e}getNext(){return this.iter.getNext().key}hasNext(){return this.iter.hasNext()}},ov=class e{constructor(e){this.fields=e,e.sort(R_.comparator)}static empty(){return new e([])}unionWith(t){let n=new iv(R_.comparator);for(let e of this.fields)n=n.add(e);for(let e of t)n=n.add(e);return new e(n.toArray())}covers(e){for(let t of this.fields)if(t.isPrefixOf(e))return!0;return!1}isEqual(e){return M_(this.fields,e.fields,((e,t)=>e.isEqual(t)))}},sv=class extends Error{constructor(){super(...arguments),this.name=`Base64DecodeError`}},cv=class e{constructor(e){this.binaryString=e}static fromBase64String(t){let n=function(e){try{return atob(e)}catch(e){throw typeof DOMException<`u`&&e instanceof DOMException?new sv(`Invalid base64 string: `+e):e}}(t);return new e(n)}static fromUint8Array(t){let n=function(e){let t=``;for(let n=0;n<e.length;++n)t+=String.fromCharCode(e[n]);return t}(t);return new e(n)}[Symbol.iterator](){let e=0;return{next:()=>e<this.binaryString.length?{value:this.binaryString.charCodeAt(e++),done:!1}:{value:void 0,done:!0}}}toBase64(){return function(e){return btoa(e)}(this.binaryString)}toUint8Array(){return function(e){let t=new Uint8Array(e.length);for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t}(this.binaryString)}approximateByteSize(){return 2*this.binaryString.length}compareTo(e){return j_(this.binaryString,e.binaryString)}isEqual(e){return this.binaryString===e.binaryString}};cv.EMPTY_BYTE_STRING=new cv(``);var lv=new RegExp(/^\d{4}-\d\d-\d\dT\d\d:\d\d:\d\d(?:\.(\d+))?Z$/);function uv(e){if(v_(!!e),typeof e==`string`){let t=0,n=lv.exec(e);if(v_(!!n),n[1]){let e=n[1];e=(e+`000000000`).substr(0,9),t=Number(e)}let r=new Date(e);return{seconds:Math.floor(r.getTime()/1e3),nanos:t}}return{seconds:dv(e.seconds),nanos:dv(e.nanos)}}function dv(e){return typeof e==`number`?e:typeof e==`string`?Number(e):0}function fv(e){return typeof e==`string`?cv.fromBase64String(e):cv.fromUint8Array(e)}function pv(e){return(e?.mapValue?.fields||{}).__type__?.stringValue===`server_timestamp`}function mv(e){let t=e.mapValue.fields.__previous_value__;return pv(t)?mv(t):t}function hv(e){let t=uv(e.mapValue.fields.__local_write_time__.timestampValue);return new N_(t.seconds,t.nanos)}var gv=class{constructor(e,t,n,r,i,a,o,s,c){this.databaseId=e,this.appId=t,this.persistenceKey=n,this.host=r,this.ssl=i,this.forceLongPolling=a,this.autoDetectLongPolling=o,this.longPollingOptions=s,this.useFetchStreams=c}},_v=class e{constructor(e,t){this.projectId=e,this.database=t||`(default)`}static empty(){return new e(``,``)}get isDefaultDatabase(){return this.database===`(default)`}isEqual(t){return t instanceof e&&t.projectId===this.projectId&&t.database===this.database}},vv={mapValue:{fields:{__type__:{stringValue:`__max__`}}}};function yv(e){return`nullValue`in e?0:`booleanValue`in e?1:`integerValue`in e||`doubleValue`in e?2:`timestampValue`in e?3:`stringValue`in e?5:`bytesValue`in e?6:`referenceValue`in e?7:`geoPointValue`in e?8:`arrayValue`in e?9:`mapValue`in e?pv(e)?4:Pv(e)?9007199254740991:Mv(e)?10:11:W()}function bv(e,t){if(e===t)return!0;let n=yv(e);if(n!==yv(t))return!1;switch(n){case 0:case 9007199254740991:return!0;case 1:return e.booleanValue===t.booleanValue;case 4:return hv(e).isEqual(hv(t));case 3:return function(e,t){if(typeof e.timestampValue==`string`&&typeof t.timestampValue==`string`&&e.timestampValue.length===t.timestampValue.length)return e.timestampValue===t.timestampValue;let n=uv(e.timestampValue),r=uv(t.timestampValue);return n.seconds===r.seconds&&n.nanos===r.nanos}(e,t);case 5:return e.stringValue===t.stringValue;case 6:return function(e,t){return fv(e.bytesValue).isEqual(fv(t.bytesValue))}(e,t);case 7:return e.referenceValue===t.referenceValue;case 8:return function(e,t){return dv(e.geoPointValue.latitude)===dv(t.geoPointValue.latitude)&&dv(e.geoPointValue.longitude)===dv(t.geoPointValue.longitude)}(e,t);case 2:return function(e,t){if(`integerValue`in e&&`integerValue`in t)return dv(e.integerValue)===dv(t.integerValue);if(`doubleValue`in e&&`doubleValue`in t){let n=dv(e.doubleValue),r=dv(t.doubleValue);return n===r?X_(n)===X_(r):isNaN(n)&&isNaN(r)}return!1}(e,t);case 9:return M_(e.arrayValue.values||[],t.arrayValue.values||[],bv);case 10:case 11:return function(e,t){let n=e.mapValue.fields||{},r=t.mapValue.fields||{};if(Q_(n)!==Q_(r))return!1;for(let e in n)if(n.hasOwnProperty(e)&&(r[e]===void 0||!bv(n[e],r[e])))return!1;return!0}(e,t);default:return W()}}function xv(e,t){return(e.values||[]).find((e=>bv(e,t)))!==void 0}function Sv(e,t){if(e===t)return 0;let n=yv(e),r=yv(t);if(n!==r)return j_(n,r);switch(n){case 0:case 9007199254740991:return 0;case 1:return j_(e.booleanValue,t.booleanValue);case 2:return function(e,t){let n=dv(e.integerValue||e.doubleValue),r=dv(t.integerValue||t.doubleValue);return n<r?-1:n>r?1:n===r?0:isNaN(n)?isNaN(r)?0:-1:1}(e,t);case 3:return Cv(e.timestampValue,t.timestampValue);case 4:return Cv(hv(e),hv(t));case 5:return j_(e.stringValue,t.stringValue);case 6:return function(e,t){let n=fv(e),r=fv(t);return n.compareTo(r)}(e.bytesValue,t.bytesValue);case 7:return function(e,t){let n=e.split(`/`),r=t.split(`/`);for(let e=0;e<n.length&&e<r.length;e++){let t=j_(n[e],r[e]);if(t!==0)return t}return j_(n.length,r.length)}(e.referenceValue,t.referenceValue);case 8:return function(e,t){let n=j_(dv(e.latitude),dv(t.latitude));return n===0?j_(dv(e.longitude),dv(t.longitude)):n}(e.geoPointValue,t.geoPointValue);case 9:return wv(e.arrayValue,t.arrayValue);case 10:return function(e,t){let n=e.fields||{},r=t.fields||{},i=n.value?.arrayValue,a=r.value?.arrayValue,o=j_(i?.values?.length||0,a?.values?.length||0);return o===0?wv(i,a):o}(e.mapValue,t.mapValue);case 11:return function(e,t){if(e===vv.mapValue&&t===vv.mapValue)return 0;if(e===vv.mapValue)return 1;if(t===vv.mapValue)return-1;let n=e.fields||{},r=Object.keys(n),i=t.fields||{},a=Object.keys(i);r.sort(),a.sort();for(let e=0;e<r.length&&e<a.length;++e){let t=j_(r[e],a[e]);if(t!==0)return t;let o=Sv(n[r[e]],i[a[e]]);if(o!==0)return o}return j_(r.length,a.length)}(e.mapValue,t.mapValue);default:throw W()}}function Cv(e,t){if(typeof e==`string`&&typeof t==`string`&&e.length===t.length)return j_(e,t);let n=uv(e),r=uv(t),i=j_(n.seconds,r.seconds);return i===0?j_(n.nanos,r.nanos):i}function wv(e,t){let n=e.values||[],r=t.values||[];for(let e=0;e<n.length&&e<r.length;++e){let t=Sv(n[e],r[e]);if(t)return t}return j_(n.length,r.length)}function Tv(e){return Ev(e)}function Ev(e){return`nullValue`in e?`null`:`booleanValue`in e?``+e.booleanValue:`integerValue`in e?``+e.integerValue:`doubleValue`in e?``+e.doubleValue:`timestampValue`in e?function(e){let t=uv(e);return`time(${t.seconds},${t.nanos})`}(e.timestampValue):`stringValue`in e?e.stringValue:`bytesValue`in e?function(e){return fv(e).toBase64()}(e.bytesValue):`referenceValue`in e?function(e){return q.fromName(e).toString()}(e.referenceValue):`geoPointValue`in e?function(e){return`geo(${e.latitude},${e.longitude})`}(e.geoPointValue):`arrayValue`in e?function(e){let t=`[`,n=!0;for(let r of e.values||[])n?n=!1:t+=`,`,t+=Ev(r);return t+`]`}(e.arrayValue):`mapValue`in e?function(e){let t=Object.keys(e.fields||{}).sort(),n=`{`,r=!0;for(let i of t)r?r=!1:n+=`,`,n+=`${i}:${Ev(e.fields[i])}`;return n+`}`}(e.mapValue):W()}function Dv(e){return!!e&&`integerValue`in e}function Ov(e){return!!e&&`arrayValue`in e}function kv(e){return!!e&&`nullValue`in e}function Av(e){return!!e&&`doubleValue`in e&&isNaN(Number(e.doubleValue))}function jv(e){return!!e&&`mapValue`in e}function Mv(e){return(e?.mapValue?.fields||{}).__type__?.stringValue===`__vector__`}function Nv(e){if(e.geoPointValue)return{geoPointValue:Object.assign({},e.geoPointValue)};if(e.timestampValue&&typeof e.timestampValue==`object`)return{timestampValue:Object.assign({},e.timestampValue)};if(e.mapValue){let t={mapValue:{fields:{}}};return $_(e.mapValue.fields,((e,n)=>t.mapValue.fields[e]=Nv(n))),t}if(e.arrayValue){let t={arrayValue:{values:[]}};for(let n=0;n<(e.arrayValue.values||[]).length;++n)t.arrayValue.values[n]=Nv(e.arrayValue.values[n]);return t}return Object.assign({},e)}function Pv(e){return(((e.mapValue||{}).fields||{}).__type__||{}).stringValue===`__max__`}var Fv=class e{constructor(e){this.value=e}static empty(){return new e({mapValue:{}})}field(e){if(e.isEmpty())return this.value;{let t=this.value;for(let n=0;n<e.length-1;++n)if(t=(t.mapValue.fields||{})[e.get(n)],!jv(t))return null;return t=(t.mapValue.fields||{})[e.lastSegment()],t||null}}set(e,t){this.getFieldsMap(e.popLast())[e.lastSegment()]=Nv(t)}setAll(e){let t=R_.emptyPath(),n={},r=[];e.forEach(((e,i)=>{if(!t.isImmediateParentOf(i)){let e=this.getFieldsMap(t);this.applyChanges(e,n,r),n={},r=[],t=i.popLast()}e?n[i.lastSegment()]=Nv(e):r.push(i.lastSegment())}
19));let i=this.getFieldsMap(t);this.applyChanges(i,n,r)}delete(e){let t=this.field(e.popLast());jv(t)&&t.mapValue.fields&&delete t.mapValue.fields[e.lastSegment()]}isEqual(e){return bv(this.value,e.value)}getFieldsMap(e){let t=this.value;t.mapValue.fields||(t.mapValue={fields:{}});for(let n=0;n<e.length;++n){let r=t.mapValue.fields[e.get(n)];jv(r)&&r.mapValue.fields||(r={mapValue:{fields:{}}},t.mapValue.fields[e.get(n)]=r),t=r}return t.mapValue.fields}applyChanges(e,t,n){$_(t,((t,n)=>e[t]=n));for(let t of n)delete e[t]}clone(){return new e(Nv(this.value))}};function Iv(e){let t=[];return $_(e.fields,((e,n)=>{let r=new R_([e]);if(jv(n)){let e=Iv(n.mapValue).fields;if(e.length===0)t.push(r);else for(let n of e)t.push(r.child(n))}else t.push(r)})),new ov(t)}var Lv=class e{constructor(e,t,n,r,i,a,o){this.key=e,this.documentType=t,this.version=n,this.readTime=r,this.createTime=i,this.data=a,this.documentState=o}static newInvalidDocument(t){return new e(t,0,P_.min(),P_.min(),P_.min(),Fv.empty(),0)}static newFoundDocument(t,n,r,i){return new e(t,1,n,P_.min(),r,i,0)}static newNoDocument(t,n){return new e(t,2,n,P_.min(),P_.min(),Fv.empty(),0)}static newUnknownDocument(t,n){return new e(t,3,n,P_.min(),P_.min(),Fv.empty(),2)}convertToFoundDocument(e,t){return!this.createTime.isEqual(P_.min())||this.documentType!==2&&this.documentType!==0||(this.createTime=e),this.version=e,this.documentType=1,this.data=t,this.documentState=0,this}convertToNoDocument(e){return this.version=e,this.documentType=2,this.data=Fv.empty(),this.documentState=0,this}convertToUnknownDocument(e){return this.version=e,this.documentType=3,this.data=Fv.empty(),this.documentState=2,this}setHasCommittedMutations(){return this.documentState=2,this}setHasLocalMutations(){return this.documentState=1,this.version=P_.min(),this}setReadTime(e){return this.readTime=e,this}get hasLocalMutations(){return this.documentState===1}get hasCommittedMutations(){return this.documentState===2}get hasPendingWrites(){return this.hasLocalMutations||this.hasCommittedMutations}isValidDocument(){return this.documentType!==0}isFoundDocument(){return this.documentType===1}isNoDocument(){return this.documentType===2}isUnknownDocument(){return this.documentType===3}isEqual(t){return t instanceof e&&this.key.isEqual(t.key)&&this.version.isEqual(t.version)&&this.documentType===t.documentType&&this.documentState===t.documentState&&this.data.isEqual(t.data)}mutableCopy(){return new e(this.key,this.documentType,this.version,this.readTime,this.createTime,this.data.clone(),this.documentState)}toString(){return`Document(${this.key}, ${this.version}, ${JSON.stringify(this.data.value)}, {createTime: ${this.createTime}}), {documentType: ${this.documentType}}), {documentState: ${this.documentState}})`}},Rv=class{constructor(e,t){this.position=e,this.inclusive=t}};function zv(e,t,n){let r=0;for(let i=0;i<e.position.length;i++){let a=t[i],o=e.position[i];if(r=a.field.isKeyField()?q.comparator(q.fromName(o.referenceValue),n.key):Sv(o,n.data.field(a.field)),a.dir===`desc`&&(r*=-1),r!==0)break}return r}function Bv(e,t){if(e===null)return t===null;if(t===null||e.inclusive!==t.inclusive||e.position.length!==t.position.length)return!1;for(let n=0;n<e.position.length;n++)if(!bv(e.position[n],t.position[n]))return!1;return!0}var Vv=class{constructor(e,t=`asc`){this.field=e,this.dir=t}};function Hv(e,t){return e.dir===t.dir&&e.field.isEqual(t.field)}var Uv=class{},Wv=class e extends Uv{constructor(e,t,n){super(),this.field=e,this.op=t,this.value=n}static create(t,n,r){return t.isKeyField()?n===`in`||n===`not-in`?this.createKeyFieldInFilter(t,n,r):new Qv(t,n,r):n===`array-contains`?new ny(t,r):n===`in`?new ry(t,r):n===`not-in`?new iy(t,r):n===`array-contains-any`?new ay(t,r):new e(t,n,r)}static createKeyFieldInFilter(e,t,n){return t===`in`?new $v(e,n):new ey(e,n)}matches(e){let t=e.data.field(this.field);return this.op===`!=`?t!==null&&this.matchesComparison(Sv(t,this.value)):t!==null&&yv(this.value)===yv(t)&&this.matchesComparison(Sv(t,this.value))}matchesComparison(e){switch(this.op){case`<`:return e<0;case`<=`:return e<=0;case`==`:return e===0;case`!=`:return e!==0;case`>`:return e>0;case`>=`:return e>=0;default:return W()}}isInequality(){return[`<`,`<=`,`>`,`>=`,`!=`,`not-in`].indexOf(this.op)>=0}getFlattenedFilters(){return[this]}getFilters(){return[this]}},Gv=class e extends Uv{constructor(e,t){super(),this.filters=e,this.op=t,this.ae=null}static create(t,n){return new e(t,n)}matches(e){return Kv(this)?this.filters.find((t=>!t.matches(e)))===void 0:this.filters.find((t=>t.matches(e)))!==void 0}getFlattenedFilters(){return this.ae!==null||(this.ae=this.filters.reduce(((e,t)=>e.concat(t.getFlattenedFilters())),[])),this.ae}getFilters(){return Object.assign([],this.filters)}};function Kv(e){return e.op===`and`}function qv(e){return Jv(e)&&Kv(e)}function Jv(e){for(let t of e.filters)if(t instanceof Gv)return!1;return!0}function Yv(e){if(e instanceof Wv)return e.field.canonicalString()+e.op.toString()+Tv(e.value);if(qv(e))return e.filters.map((e=>Yv(e))).join(`,`);{let t=e.filters.map((e=>Yv(e))).join(`,`);
19return`${e.op}(${t})`}}function Xv(e,t){return e instanceof Wv?function(e,t){return t instanceof Wv&&e.op===t.op&&e.field.isEqual(t.field)&&bv(e.value,t.value)}(e,t):e instanceof Gv?function(e,t){return t instanceof Gv&&e.op===t.op&&e.filters.length===t.filters.length&&e.filters.reduce(((e,n,r)=>e&&Xv(n,t.filters[r])),!0)}(e,t):void W()}function Zv(e){return e instanceof Wv?function(e){return`${e.field.canonicalString()} ${e.op} ${Tv(e.value)}`}(e):e instanceof Gv?function(e){return e.op.toString()+` {`+e.getFilters().map(Zv).join(` ,`)+`}`}(e):`Filter`}var Qv=class extends Wv{constructor(e,t,n){super(e,t,n),this.key=q.fromName(n.referenceValue)}matches(e){let t=q.comparator(e.key,this.key);return this.matchesComparison(t)}},$v=class extends Wv{constructor(e,t){super(e,`in`,t),this.keys=ty(`in`,t)}matches(e){return this.keys.some((t=>t.isEqual(e.key)))}},ey=class extends Wv{constructor(e,t){super(e,`not-in`,t),this.keys=ty(`not-in`,t)}matches(e){return!this.keys.some((t=>t.isEqual(e.key)))}};function ty(e,t){return(t.arrayValue?.values||[]).map((e=>q.fromName(e.referenceValue)))}var ny=class extends Wv{constructor(e,t){super(e,`array-contains`,t)}matches(e){let t=e.data.field(this.field);return Ov(t)&&xv(t.arrayValue,this.value)}},ry=class extends Wv{constructor(e,t){super(e,`in`,t)}matches(e){let t=e.data.field(this.field);return t!==null&&xv(this.value.arrayValue,t)}},iy=class extends Wv{constructor(e,t){super(e,`not-in`,t)}matches(e){if(xv(this.value.arrayValue,{nullValue:`NULL_VALUE`}))return!1;let t=e.data.field(this.field);return t!==null&&!xv(this.value.arrayValue,t)}},ay=class extends Wv{constructor(e,t){super(e,`array-contains-any`,t)}matches(e){let t=e.data.field(this.field);return!(!Ov(t)||!t.arrayValue.values)&&t.arrayValue.values.some((e=>xv(this.value.arrayValue,e)))}},oy=class{constructor(e,t=null,n=[],r=[],i=null,a=null,o=null){this.path=e,this.collectionGroup=t,this.orderBy=n,this.filters=r,this.limit=i,this.startAt=a,this.endAt=o,this.ue=null}};function sy(e,t=null,n=[],r=[],i=null,a=null,o=null){return new oy(e,t,n,r,i,a,o)}function cy(e){let t=y_(e);if(t.ue===null){let e=t.path.canonicalString();t.collectionGroup!==null&&(e+=`|cg:`+t.collectionGroup),e+=`|f:`,e+=t.filters.map((e=>Yv(e))).join(`,`),e+=`|ob:`,e+=t.orderBy.map((e=>function(e){return e.field.canonicalString()+e.dir}(e))).join(`,`),Y_(t.limit)||(e+=`|l:`,e+=t.limit),t.startAt&&(e+=`|lb:`,e+=t.startAt.inclusive?`b:`:`a:`,e+=t.startAt.position.map((e=>Tv(e))).join(`,`)),t.endAt&&(e+=`|ub:`,e+=t.endAt.inclusive?`a:`:`b:`,e+=t.endAt.position.map((e=>Tv(e))).join(`,`)),t.ue=e}return t.ue}function ly(e,t){if(e.limit!==t.limit||e.orderBy.length!==t.orderBy.length)return!1;for(let n=0;n<e.orderBy.length;n++)if(!Hv(e.orderBy[n],t.orderBy[n]))return!1;if(e.filters.length!==t.filters.length)return!1;for(let n=0;n<e.filters.length;n++)if(!Xv(e.filters[n],t.filters[n]))return!1;return e.collectionGroup===t.collectionGroup&&!!e.path.isEqual(t.path)&&!!Bv(e.startAt,t.startAt)&&Bv(e.endAt,t.endAt)}function uy(e){return q.isDocumentKey(e.path)&&e.collectionGroup===null&&e.filters.length===0}var dy=class{constructor(e,t=null,n=[],r=[],i=null,a=`F`,o=null,s=null){this.path=e,this.collectionGroup=t,this.explicitOrderBy=n,this.filters=r,this.limit=i,this.limitType=a,this.startAt=o,this.endAt=s,this.ce=null,this.le=null,this.he=null,this.startAt,this.endAt}};function fy(e,t,n,r,i,a,o,s){return new dy(e,t,n,r,i,a,o,s)}function py(e){return new dy(e)}function my(e){return e.filters.length===0&&e.limit===null&&e.startAt==null&&e.endAt==null&&(e.explicitOrderBy.length===0||e.explicitOrderBy.length===1&&e.explicitOrderBy[0].field.isKeyField())}function hy(e){return e.collectionGroup!==null}function gy(e){let t=y_(e);if(t.ce===null){t.ce=[];let e=new Set;for(let n of t.explicitOrderBy)t.ce.push(n),e.add(n.field.canonicalString());let n=t.explicitOrderBy.length>0?t.explicitOrderBy[t.explicitOrderBy.length-1].dir:`asc`;(function(e){let t=new iv(R_.comparator);return e.filters.forEach((e=>{e.getFlattenedFilters().forEach((e=>{e.isInequality()&&(t=t.add(e.field))}))})),t})(t).forEach((r=>{e.has(r.canonicalString())||r.isKeyField()||t.ce.push(new Vv(r,n))}
19)),e.has(R_.keyField().canonicalString())||t.ce.push(new Vv(R_.keyField(),n))}return t.ce}function _y(e){let t=y_(e);return t.le||=vy(t,gy(e)),t.le}function vy(e,t){if(e.limitType===`F`)return sy(e.path,e.collectionGroup,t,e.filters,e.limit,e.startAt,e.endAt);{t=t.map((e=>{let t=e.dir===`desc`?`asc`:`desc`;return new Vv(e.field,t)}));let n=e.endAt?new Rv(e.endAt.position,e.endAt.inclusive):null,r=e.startAt?new Rv(e.startAt.position,e.startAt.inclusive):null;return sy(e.path,e.collectionGroup,t,e.filters,e.limit,n,r)}}function yy(e,t,n){return new dy(e.path,e.collectionGroup,e.explicitOrderBy.slice(),e.filters.slice(),t,n,e.startAt,e.endAt)}function by(e,t){return ly(_y(e),_y(t))&&e.limitType===t.limitType}function xy(e){return`${cy(_y(e))}|lt:${e.limitType}`}function Sy(e){return`Query(target=${function(e){let t=e.path.canonicalString();return e.collectionGroup!==null&&(t+=` collectionGroup=`+e.collectionGroup),e.filters.length>0&&(t+=`, filters: [${e.filters.map((e=>Zv(e))).join(`, `)}]`),Y_(e.limit)||(t+=`, limit: `+e.limit),e.orderBy.length>0&&(t+=`, orderBy: [${e.orderBy.map((e=>function(e){return`${e.field.canonicalString()} (${e.dir})`}(e))).join(`, `)}]`),e.startAt&&(t+=`, startAt: `,t+=e.startAt.inclusive?`b:`:`a:`,t+=e.startAt.position.map((e=>Tv(e))).join(`,`)),e.endAt&&(t+=`, endAt: `,t+=e.endAt.inclusive?`a:`:`b:`,t+=e.endAt.position.map((e=>Tv(e))).join(`,`)),`Target(${t})`}(_y(e))}; limitType=${e.limitType})`}function Cy(e,t){return t.isFoundDocument()&&function(e,t){let n=t.key.path;return e.collectionGroup===null?q.isDocumentKey(e.path)?e.path.isEqual(n):e.path.isImmediateParentOf(n):t.key.hasCollectionId(e.collectionGroup)&&e.path.isPrefixOf(n)}(e,t)&&function(e,t){for(let n of gy(e))if(!n.field.isKeyField()&&t.data.field(n.field)===null)return!1;return!0}(e,t)&&function(e,t){for(let n of e.filters)if(!n.matches(t))return!1;return!0}(e,t)&&function(e,t){return!(e.startAt&&!function(e,t,n){let r=zv(e,t,n);return e.inclusive?r<=0:r<0}(e.startAt,gy(e),t)||e.endAt&&!function(e,t,n){let r=zv(e,t,n);return e.inclusive?r>=0:r>0}(e.endAt,gy(e),t))}(e,t)}function wy(e){return e.collectionGroup||(e.path.length%2==1?e.path.lastSegment():e.path.get(e.path.length-2))}function Ty(e){return(t,n)=>{let r=!1;for(let i of gy(e)){let e=Ey(i,t,n);if(e!==0)return e;r||=i.field.isKeyField()}return 0}}function Ey(e,t,n){let r=e.field.isKeyField()?q.comparator(t.key,n.key):function(e,t,n){let r=t.data.field(e),i=n.data.field(e);return r!==null&&i!==null?Sv(r,i):W()}(e.field,t,n);switch(e.dir){case`asc`:return r;case`desc`:return-1*r;default:return W()}}var Dy=class{constructor(e,t){this.mapKeyFn=e,this.equalsFn=t,this.inner={},this.innerSize=0}get(e){let t=this.mapKeyFn(e),n=this.inner[t];if(n!==void 0){for(let[t,r]of n)if(this.equalsFn(t,e))return r}}has(e){return this.get(e)!==void 0}set(e,t){let n=this.mapKeyFn(e),r=this.inner[n];if(r===void 0)return this.inner[n]=[[e,t]],void this.innerSize++;for(let n=0;n<r.length;n++)if(this.equalsFn(r[n][0],e))return void(r[n]=[e,t]);r.push([e,t]),this.innerSize++}delete(e){let t=this.mapKeyFn(e),n=this.inner[t];if(n===void 0)return!1;for(let r=0;r<n.length;r++)if(this.equalsFn(n[r][0],e))return n.length===1?delete this.inner[t]:n.splice(r,1),this.innerSize--,!0;return!1}forEach(e){$_(this.inner,((t,n)=>{for(let[t,r]of n)e(t,r)}))}isEmpty(){return ev(this.inner)}size(){return this.innerSize}},Oy=new tv(q.comparator);function ky(){return Oy}var Ay=new tv(q.comparator);function jy(...e){let t=Ay;for(let n of e)t=t.insert(n.key,n);return t}function My(e){let t=Ay;return e.forEach(((e,n)=>t=t.insert(e,n.overlayedDocument))),t}function Ny(){return Fy()}function Py(){return Fy()}function Fy(){return new Dy((e=>e.toString()),((e,t)=>e.isEqual(t)))}var Iy=new tv(q.comparator),Ly=new iv(q.comparator);function Ry(...e){let t=Ly;for(let n of e)t=t.add(n);return t}var zy=new iv(j_);function By(){return zy}function Vy(e,t){if(e.useProto3Json){if(isNaN(t))return{doubleValue:`NaN`};if(t===1/0)return{doubleValue:`Infinity`};if(t===-1/0)return{doubleValue:`-Infinity`}}return{doubleValue:X_(t)?`-0`:t}}function Hy(e){return{integerValue:``+e}}function Uy(e,t){return Z_(t)?Hy(t):Vy(e,t)}var Wy=class{constructor(){this._=void 0}};function Gy(e,t,n){return e instanceof Jy?function(e,t){let n={fields:{__type__:{stringValue:`server_timestamp`},__local_write_time__:{timestampValue:{seconds:e.seconds,nanos:e.nanoseconds}}}};return t&&pv(t)&&(t=mv(t)),t&&(n.fields.__previous_value__=t),{mapValue:n}}(n,t):e instanceof Yy?Xy(e,t):e instanceof Zy?Qy(e,t):function(e,t){let n=qy(e,t),r=eb(n)+eb(e.Pe);return Dv(n)&&Dv(e.Pe)?Hy(r):Vy(e.serializer,r)}(e,t)}function Ky(e,t,n){return e instanceof Yy?Xy(e,t):e instanceof Zy?Qy(e,t):n}function qy(e,t){return e instanceof $y?function(e){return Dv(e)||function(e){return!!e&&`doubleValue`in e}(e)}(t)?t:{integerValue:0}:null}var Jy=class extends Wy{},Yy=class extends Wy{constructor(e){super(),this.elements=e}};function Xy(e,t){let n=tb(t);for(let t of e.elements)n.some((e=>bv(e,t)))||n.push(t);return{arrayValue:{values:n}}}var Zy=class extends Wy{constructor(e){super(),this.elements=e}};function Qy(e,t){let n=tb(t);for(let t of e.elements)n=n.filter((e=>!bv(e,t)));return{arrayValue:{values:n}}}var $y=class extends Wy{constructor(e,t){super(),this.serializer
19=e,this.Pe=t}};function eb(e){return dv(e.integerValue||e.doubleValue)}function tb(e){return Ov(e)&&e.arrayValue.values?e.arrayValue.values.slice():[]}function nb(e,t){return e.field.isEqual(t.field)&&function(e,t){return e instanceof Yy&&t instanceof Yy||e instanceof Zy&&t instanceof Zy?M_(e.elements,t.elements,bv):e instanceof $y&&t instanceof $y?bv(e.Pe,t.Pe):e instanceof Jy&&t instanceof Jy}(e.transform,t.transform)}var rb=class{constructor(e,t){this.version=e,this.transformResults=t}},ib=class e{constructor(e,t){this.updateTime=e,this.exists=t}static none(){return new e}static exists(t){return new e(void 0,t)}static updateTime(t){return new e(t)}get isNone(){return this.updateTime===void 0&&this.exists===void 0}isEqual(e){return this.exists===e.exists&&(this.updateTime?!!e.updateTime&&this.updateTime.isEqual(e.updateTime):!e.updateTime)}};function ab(e,t){return e.updateTime===void 0?e.exists===void 0||e.exists===t.isFoundDocument():t.isFoundDocument()&&t.version.isEqual(e.updateTime)}var ob=class{};function sb(e,t){if(!e.hasLocalMutations||t&&t.fields.length===0)return null;if(t===null)return e.isNoDocument()?new _b(e.key,ib.none()):new fb(e.key,e.data,ib.none());{let n=e.data,r=Fv.empty(),i=new iv(R_.comparator);for(let e of t.fields)if(!i.has(e)){let t=n.field(e);t===null&&e.length>1&&(e=e.popLast(),t=n.field(e)),t===null?r.delete(e):r.set(e,t),i=i.add(e)}return new pb(e.key,r,new ov(i.toArray()),ib.none())}}function cb(e,t,n){e instanceof fb?function(e,t,n){let r=e.value.clone(),i=hb(e.fieldTransforms,t,n.transformResults);r.setAll(i),t.convertToFoundDocument(n.version,r).setHasCommittedMutations()}(e,t,n):e instanceof pb?function(e,t,n){if(!ab(e.precondition,t))return void t.convertToUnknownDocument(n.version);let r=hb(e.fieldTransforms,t,n.transformResults),i=t.data;i.setAll(mb(e)),i.setAll(r),t.convertToFoundDocument(n.version,i).setHasCommittedMutations()}(e,t,n):function(e,t,n){t.convertToNoDocument(n.version).setHasCommittedMutations()}(0,t,n)}function lb(e,t,n,r){return e instanceof fb?function(e,t,n,r){if(!ab(e.precondition,t))return n;let i=e.value.clone(),a=gb(e.fieldTransforms,r,t);return i.setAll(a),t.convertToFoundDocument(t.version,i).setHasLocalMutations(),null}(e,t,n,r):e instanceof pb?function(e,t,n,r){if(!ab(e.precondition,t))return n;let i=gb(e.fieldTransforms,r,t),a=t.data;return a.setAll(mb(e)),a.setAll(i),t.convertToFoundDocument(t.version,a).setHasLocalMutations(),n===null?null:n.unionWith(e.fieldMask.fields).unionWith(e.fieldTransforms.map((e=>e.field)))}(e,t,n,r):function(e,t,n){return ab(e.precondition,t)?(t.convertToNoDocument(t.version).setHasLocalMutations(),null):n}(e,t,n)}function ub(e,t){let n=null;for(let r of e.fieldTransforms){let e=t.data.field(r.field),i=qy(r.transform,e||null);i!=null&&(n===null&&(n=Fv.empty()),n.set(r.field,i))}return n||null}function db(e,t){return e.type===t.type&&!!e.key.isEqual(t.key)&&!!e.precondition.isEqual(t.precondition)&&!!function(e,t){return e===void 0&&t===void 0||!(!e||!t)&&M_(e,t,((e,t)=>nb(e,t)))}(e.fieldTransforms,t.fieldTransforms)&&(e.type===0?e.value.isEqual(t.value):e.type!==1||e.data.isEqual(t.data)&&e.fieldMask.isEqual(t.fieldMask))}var fb=class extends ob{constructor(e,t,n,r=[]){super(),this.key=e,this.value=t,this.precondition=n,this.fieldTransforms=r,this.type=0}getFieldMask(){return null}},pb=class extends ob{constructor(e,t,n,r,i=[]){super(),this.key=e,this.data=t,this.fieldMask=n,this.precondition=r,this.fieldTransforms=i,this.type=1}getFieldMask(){return this.fieldMask}};function mb(e){let t=new Map;return e.fieldMask.fields.forEach((n=>{if(!n.isEmpty()){let r=e.data.field(n);t.set(n,r)}})),t}function hb(e,t,n){let r=new Map;v_(e.length===n.length);for(let i=0;i<n.length;i++){let a=e[i],o=a.transform,s=t.data.field(a.field);r.set(a.field,Ky(o,s,n[i]))}return r}function gb(e,t,n){let r=new Map;for(let i of e){let e=i.transform,a=n.data.field(i.field);r.set(i.field,Gy(e,a,t))}return r}var _b=class extends ob{constructor(e,t){super(),this.key=e,this.precondition=t,this.type=2,this.fieldTransforms=[]}getFieldMask(){return null}},vb=class extends ob{constructor(e,t){super(),this.key=e,this.prec
19ondition=t,this.type=3,this.fieldTransforms=[]}getFieldMask(){return null}},yb=class{constructor(e,t,n,r){this.batchId=e,this.localWriteTime=t,this.baseMutations=n,this.mutations=r}applyToRemoteDocument(e,t){let n=t.mutationResults;for(let t=0;t<this.mutations.length;t++){let r=this.mutations[t];r.key.isEqual(e.key)&&cb(r,e,n[t])}}applyToLocalView(e,t){for(let n of this.baseMutations)n.key.isEqual(e.key)&&(t=lb(n,e,t,this.localWriteTime));for(let n of this.mutations)n.key.isEqual(e.key)&&(t=lb(n,e,t,this.localWriteTime));return t}applyToLocalDocumentSet(e,t){let n=Py();return this.mutations.forEach((r=>{let i=e.get(r.key),a=i.overlayedDocument,o=this.applyToLocalView(a,i.mutatedFields);o=t.has(r.key)?null:o;let s=sb(a,o);s!==null&&n.set(r.key,s),a.isValidDocument()||a.convertToNoDocument(P_.min())})),n}keys(){return this.mutations.reduce(((e,t)=>e.add(t.key)),Ry())}isEqual(e){return this.batchId===e.batchId&&M_(this.mutations,e.mutations,((e,t)=>db(e,t)))&&M_(this.baseMutations,e.baseMutations,((e,t)=>db(e,t)))}},bb=class e{constructor(e,t,n,r){this.batch=e,this.commitVersion=t,this.mutationResults=n,this.docVersions=r}static from(t,n,r){v_(t.mutations.length===r.length);let i=function(){return Iy}(),a=t.mutations;for(let e=0;e<a.length;e++)i=i.insert(a[e].key,r[e].version);return new e(t,n,r,i)}},xb=class{constructor(e,t){this.largestBatchId=e,this.mutation=t}getKey(){return this.mutation.key}isEqual(e){return e!==null&&this.mutation===e.mutation}toString(){return`Overlay{\n      largestBatchId: ${this.largestBatchId},\n      mutation: ${this.mutation.toString()}\n    }`}},Sb=class{constructor(e,t){this.count=e,this.unchangedNames=t}},Cb,wb;function Tb(e){switch(e){default:return W();case G.CANCELLED:case G.UNKNOWN:case G.DEADLINE_EXCEEDED:case G.RESOURCE_EXHAUSTED:case G.INTERNAL:case G.UNAVAILABLE:case G.UNAUTHENTICATED:return!1;case G.INVALID_ARGUMENT:case G.NOT_FOUND:case G.ALREADY_EXISTS:case G.PERMISSION_DENIED:case G.FAILED_PRECONDITION:case G.ABORTED:case G.OUT_OF_RANGE:case G.UNIMPLEMENTED:case G.DATA_LOSS:return!0}}function Eb(e){if(e===void 0)return h_(`GRPC error has no .code`),G.UNKNOWN;switch(e){case Cb.OK:return G.OK;case Cb.CANCELLED:return G.CANCELLED;case Cb.UNKNOWN:return G.UNKNOWN;case Cb.DEADLINE_EXCEEDED:return G.DEADLINE_EXCEEDED;case Cb.RESOURCE_EXHAUSTED:return G.RESOURCE_EXHAUSTED;case Cb.INTERNAL:return G.INTERNAL;case Cb.UNAVAILABLE:return G.UNAVAILABLE;case Cb.UNAUTHENTICATED:return G.UNAUTHENTICATED;case Cb.INVALID_ARGUMENT:return G.INVALID_ARGUMENT;case Cb.NOT_FOUND:return G.NOT_FOUND;case Cb.ALREADY_EXISTS:return G.ALREADY_EXISTS;case Cb.PERMISSION_DENIED:return G.PERMISSION_DENIED;case Cb.FAILED_PRECONDITION:return G.FAILED_PRECONDITION;case Cb.ABORTED:return G.ABORTED;case Cb.OUT_OF_RANGE:return G.OUT_OF_RANGE;case Cb.UNIMPLEMENTED:return G.UNIMPLEMENTED;case Cb.DATA_LOSS:return G.DATA_LOSS;default:return W()}}(wb=Cb||={})[wb.OK=0]=`OK`,wb[wb.CANCELLED=1]=`CANCELLED`,wb[wb.UNKNOWN=2]=`UNKNOWN`,wb[wb.INVALID_ARGUMENT=3]=`INVALID_ARGUMENT`,wb[wb.DEADLINE_EXCEEDED=4]=`DEADLINE_EXCEEDED`,wb[wb.NOT_FOUND=5]=`NOT_FOUND`,wb[wb.ALREADY_EXISTS=6]=`ALREADY_EXISTS`,wb[wb.PERMISSION_DENIED=7]=`PERMISSION_DENIED`,wb[wb.UNAUTHENTICATED=16]=`UNAUTHENTICATED`,wb[wb.RESOURCE_EXHAUSTED=8]=`RESOURCE_EXHAUSTED`,wb[wb.FAILED_PRECONDITION=9]=`FAILED_PRECONDITION`,wb[wb.ABORTED=10]=`ABORTED`,wb[wb.OUT_OF_RANGE=11]=`OUT_OF_RANGE`,wb[wb.UNIMPLEMENTED=12]=`UNIMPLEMENTED`,wb[wb.INTERNAL=13]=`INTERNAL`,wb[wb.UNAVAILABLE=14]=`UNAVAILABLE`,wb[wb.DATA_LOSS=15]=`DATA_LOSS`;var Db=null;function Ob(){return new TextEncoder}var kb=new Qg([4294967295,4294967295],0);function Ab(e){let t=Ob().encode(e),n=new $g;return n.update(t),new Uint8Array(n.digest())}function jb(e){let t=new DataView(e.buffer),n=t.getUint32(0,!0),r=t.getUint32(4,!0),i=t.getUint32(8,!0),a=t.getUint32(12,!0);return[new Qg([n,r],0),new Qg([i,a],0)]}var Mb=class e{constructor(e,t,n){if(this.bitmap=e,this.padding=t,this.hashCount=n,t<0||t>=8)throw new Nb(`Invalid padding: ${t}`);if(n<0||e.length>0&&this.hashCount===0)throw new Nb(`Invalid hash count: ${n}`);if(e.length===0&&t!==0)throw new Nb(`Invalid padding when bitmap length is 0: ${t}`);this.Ie=8*e.length-t,this.Te=Qg.fromNumber(this.Ie)}Ee(e,t,n){let r=e.add(t.multiply(Qg.fromNumber(n)));return r.compare(kb)===1&&(r=new Qg([r.getBits(0),r.getBits(1)],0)),r.modulo(this.Te).toNumber()}de(e){return!!(this.bitmap[Math.floor(e/8)]&1<<e%8)}mightContain(e){if(this.Ie===0)return!1;let[t,n]=jb(Ab(e));for(let e=0;e<this.hashCount;e++){let r=this.Ee(t,n,e);if(!this.de(r))return!1}return!0}static create(t,n,r){let i=t%8==0?0:8-t%8,a=new Uint8Array(Math.ceil(t/8)),o=new e(a,i,n);return r.forEach((e=>o.insert(e))),o}insert(e){if(this.Ie===0)return;let[t,n]=jb(Ab(e));for(let e=0;e<this.hashCount;e++){let r=this.Ee(t,n,e);this.Ae(r)}}Ae(e){let t=Math.floor(e/8),n=e%8;this.bitmap[t]|=1<<n}}
19,Nb=class extends Error{constructor(){super(...arguments),this.name=`BloomFilterError`}},Pb=class e{constructor(e,t,n,r,i){this.snapshotVersion=e,this.targetChanges=t,this.targetMismatches=n,this.documentUpdates=r,this.resolvedLimboDocuments=i}static createSynthesizedRemoteEventForCurrentChange(t,n,r){let i=new Map;return i.set(t,Fb.createSynthesizedTargetChangeForCurrentChange(t,n,r)),new e(P_.min(),i,new tv(j_),ky(),Ry())}},Fb=class e{constructor(e,t,n,r,i){this.resumeToken=e,this.current=t,this.addedDocuments=n,this.modifiedDocuments=r,this.removedDocuments=i}static createSynthesizedTargetChangeForCurrentChange(t,n,r){return new e(r,n,Ry(),Ry(),Ry())}},Ib=class{constructor(e,t,n,r){this.Re=e,this.removedTargetIds=t,this.key=n,this.Ve=r}},Lb=class{constructor(e,t){this.targetId=e,this.me=t}},Rb=class{constructor(e,t,n=cv.EMPTY_BYTE_STRING,r=null){this.state=e,this.targetIds=t,this.resumeToken=n,this.cause=r}},zb=class{constructor(){this.fe=0,this.ge=Hb(),this.pe=cv.EMPTY_BYTE_STRING,this.ye=!1,this.we=!0}get current(){return this.ye}get resumeToken(){return this.pe}get Se(){return this.fe!==0}get be(){return this.we}De(e){e.approximateByteSize()>0&&(this.we=!0,this.pe=e)}ve(){let e=Ry(),t=Ry(),n=Ry();return this.ge.forEach(((r,i)=>{switch(i){case 0:e=e.add(r);break;case 2:t=t.add(r);break;case 1:n=n.add(r);break;default:W()}})),new Fb(this.pe,this.ye,e,t,n)}Ce(){this.we=!1,this.ge=Hb()}Fe(e,t){this.we=!0,this.ge=this.ge.insert(e,t)}Me(e){this.we=!0,this.ge=this.ge.remove(e)}xe(){this.fe+=1}Oe(){--this.fe,v_(this.fe>=0)}Ne(){this.we=!0,this.ye=!0}},Bb=class{constructor(e){this.Le=e,this.Be=new Map,this.ke=ky(),this.qe=Vb(),this.Qe=new tv(j_)}Ke(e){for(let t of e.Re)e.Ve&&e.Ve.isFoundDocument()?this.$e(t,e.Ve):this.Ue(t,e.key,e.Ve);for(let t of e.removedTargetIds)this.Ue(t,e.key,e.Ve)}We(e){this.forEachTarget(e,(t=>{let n=this.Ge(t);switch(e.state){case 0:this.ze(t)&&n.De(e.resumeToken);break;case 1:n.Oe(),n.Se||n.Ce(),n.De(e.resumeToken);break;case 2:n.Oe(),n.Se||this.removeTarget(t);break;case 3:this.ze(t)&&(n.Ne(),n.De(e.resumeToken));break;case 4:this.ze(t)&&(this.je(t),n.De(e.resumeToken));break;default:W()}}))}forEachTarget(e,t){e.targetIds.length>0?e.targetIds.forEach(t):this.Be.forEach(((e,n)=>{this.ze(n)&&t(n)}))}He(e){let t=e.targetId,n=e.me.count,r=this.Je(t);if(r){let i=r.target;if(uy(i)){if(n===0){let e=new q(i.path);this.Ue(t,e,Lv.newNoDocument(e,P_.min()))}else v_(n===1)}else{let r=this.Ye(t);if(r!==n){let n=this.Ze(e),i=n?this.Xe(n,e,r):1;if(i!==0){this.je(t);let e=i===2?`TargetPurposeExistenceFilterMismatchBloom`:`TargetPurposeExistenceFilterMismatch`;this.Qe=this.Qe.insert(t,e)}Db?.et(function(e,t,n,r,i){let a={localCacheCount:e,existenceFilterCount:t.count,databaseId:n.database,projectId:n.projectId},o=t.unchangedNames;return o&&(a.bloomFilter={applied:i===0,hashCount:o?.hashCount??0,bitmapLength:o?.bits?.bitmap?.length??0,padding:o?.bits?.padding??0,mightContain:e=>{var t;return(t=r?.mightContain(e))!=null&&t}}),a}(r,e.me,this.Le.tt(),n,i))}}}}Ze(e){let t=e.me.unchangedNames;if(!t||!t.bits)return null;let{bits:{bitmap:n=``,padding:r=0},hashCount:i=0}=t,a,o;try{a=fv(n).toUint8Array()}catch(e){if(e instanceof sv)return g_(`Decoding the base64 bloom filter in existence filter failed (`+e.message+`); ignoring the bloom filter and falling back to full re-query.`),null;throw e}try{o=new Mb(a,r,i)}catch(e){return g_(e instanceof Nb?`BloomFilter error: `:`Applying bloom filter failed: `,e),null}return o.Ie===0?null:o}Xe(e,t,n){return t.me.count===n-this.nt(e,t.targetId)?0:2}nt(e,t){let n=this.Le.getRemoteKeysForTarget(t),r=0;return n.forEach((n=>{let i=this.Le.tt(),a=`projects/${i.projectId}/databases/${i.database}/documents/${n.path.canonicalString()}`;e.mightContain(a)||(this.Ue(t,n,null),r++)})),r}rt(e){let t=new Map;this.Be.forEach(((n,r)=>{let i=this.Je(r);if(i){if(n.current&&uy(i.target)){let t=new q(i.target.path);this.ke.get(t)!==null||this.it(r,t)||this.Ue(r,t,Lv.newNoDocument(t,e))}n.be&&(t.set(r,n.ve()),n.Ce())}}));let n=Ry();this.qe.forEach(((e,t)=>{let r=!0;t.forEachWhile((e=>{let t=this.Je(e);return!t||t.purpose===`TargetPurposeLimboResolution`||(r=!1,!1)})),r&&(n=n.add(e))})),this.ke.forEach(((t,n)=>n.setReadTime(e)));let r=new Pb(e,t,this.Qe,this.ke,n);return this.ke=ky(),this.qe=Vb(),this.Qe=new tv(j_),r}$e(e,t){if(!this.ze(e))return;
19let n=this.it(e,t.key)?2:0;this.Ge(e).Fe(t.key,n),this.ke=this.ke.insert(t.key,t),this.qe=this.qe.insert(t.key,this.st(t.key).add(e))}Ue(e,t,n){if(!this.ze(e))return;let r=this.Ge(e);this.it(e,t)?r.Fe(t,1):r.Me(t),this.qe=this.qe.insert(t,this.st(t).delete(e)),n&&(this.ke=this.ke.insert(t,n))}removeTarget(e){this.Be.delete(e)}Ye(e){let t=this.Ge(e).ve();return this.Le.getRemoteKeysForTarget(e).size+t.addedDocuments.size-t.removedDocuments.size}xe(e){this.Ge(e).xe()}Ge(e){let t=this.Be.get(e);return t||(t=new zb,this.Be.set(e,t)),t}st(e){let t=this.qe.get(e);return t||(t=new iv(j_),this.qe=this.qe.insert(e,t)),t}ze(e){let t=this.Je(e)!==null;return t||U(`WatchChangeAggregator`,`Detected inactive target`,e),t}Je(e){let t=this.Be.get(e);return t&&t.Se?null:this.Le.ot(e)}je(e){this.Be.set(e,new zb),this.Le.getRemoteKeysForTarget(e).forEach((t=>{this.Ue(e,t,null)}))}it(e,t){return this.Le.getRemoteKeysForTarget(e).has(t)}};function Vb(){return new tv(q.comparator)}function Hb(){return new tv(q.comparator)}var Ub={asc:`ASCENDING`,desc:`DESCENDING`},Wb={"<":`LESS_THAN`,"<=":`LESS_THAN_OR_EQUAL`,">":`GREATER_THAN`,">=":`GREATER_THAN_OR_EQUAL`,"==":`EQUAL`,"!=":`NOT_EQUAL`,"array-contains":`ARRAY_CONTAINS`,in:`IN`,"not-in":`NOT_IN`,"array-contains-any":`ARRAY_CONTAINS_ANY`},Gb={and:`AND`,or:`OR`},Kb=class{constructor(e,t){this.databaseId=e,this.useProto3Json=t}};function qb(e,t){return e.useProto3Json||Y_(t)?t:{value:t}}function Jb(e,t){return e.useProto3Json?`${new Date(1e3*t.seconds).toISOString().replace(/\.\d*/,``).replace(`Z`,``)}.${(`000000000`+t.nanoseconds).slice(-9)}Z`:{seconds:``+t.seconds,nanos:t.nanoseconds}}function Yb(e,t){return e.useProto3Json?t.toBase64():t.toUint8Array()}function Xb(e,t){return Jb(e,t.toTimestamp())}function Zb(e){return v_(!!e),P_.fromTimestamp(function(e){let t=uv(e);return new N_(t.seconds,t.nanos)}(e))}function Qb(e,t){return $b(e,t).canonicalString()}function $b(e,t){let n=function(e){return new I_([`projects`,e.projectId,`databases`,e.database])}(e).child(`documents`);return t===void 0?n:n.child(t)}function ex(e){let t=I_.fromString(e);return v_(Cx(t)),t}function tx(e,t){return Qb(e.databaseId,t.path)}function nx(e,t){let n=ex(t);if(n.get(1)!==e.databaseId.projectId)throw new K(G.INVALID_ARGUMENT,`Tried to deserialize key from different project: `+n.get(1)+` vs `+e.databaseId.projectId);if(n.get(3)!==e.databaseId.database)throw new K(G.INVALID_ARGUMENT,`Tried to deserialize key from different database: `+n.get(3)+` vs `+e.databaseId.database);return new q(ox(n))}function rx(e,t){return Qb(e.databaseId,t)}function ix(e){let t=ex(e);return t.length===4?I_.emptyPath():ox(t)}function ax(e){return new I_([`projects`,e.databaseId.projectId,`databases`,e.databaseId.database]).canonicalString()}function ox(e){return v_(e.length>4&&e.get(4)===`documents`),e.popFirst(5)}function sx(e,t,n){return{name:tx(e,t),fields:n.value.mapValue.fields}}function cx(e,t){let n;if(`targetChange`in t){t.targetChange;let r=function(e){return e===`NO_CHANGE`?0:e===`ADD`?1:e===`REMOVE`?2:e===`CURRENT`?3:e===`RESET`?4:W()}(t.targetChange.targetChangeType||`NO_CHANGE`),i=t.targetChange.targetIds||[],a=function(e,t){return e.useProto3Json?(v_(t===void 0||typeof t==`string`),cv.fromBase64String(t||``)):(v_(t===void 0||t instanceof Buffer||t instanceof Uint8Array),cv.fromUint8Array(t||new Uint8Array))}(e,t.targetChange.resumeToken),o=t.targetChange.cause;n=new Rb(r,i,a,o&&function(e){return new K(e.code===void 0?G.UNKNOWN:Eb(e.code),e.message||``)}(o)||null)}else if(`documentChange`in t){t.documentChange;let r=t.documentChange;r.document,r.document.name,r.document.updateTime;let i=nx(e,r.document.name),a=Zb(r.document.updateTime),o=r.document.createTime?Zb(r.document.createTime):P_.min(),s=new Fv({mapValue:{fields:r.document.fields}}),c=Lv.newFoundDocument(i,a,o,s);n=new Ib(r.targetIds||[],r.removedTargetIds||[],c.key,c)}else if(`documentDelete`in t){t.documentDelete;let r=t.documentDelete;r.document;let i=nx(e,r.document),a=r.readTime?Zb(r.readTime):P_.min(),o=Lv.newNoDocument(i,a);n=new Ib([],r.removedTargetIds||[],o.key,o)}else if(`documentRemove`in t){t.documentRemove;let r=t.documentRemove;r.document;let i=nx(e,r.document);n=new Ib([],r.removedTargetIds||[],i,null)}else{if(!(`filter`in t))return W();{t.filter;let e=t.filter;e.targetId;
19let{count:r=0,unchangedNames:i}=e,a=new Sb(r,i),o=e.targetId;n=new Lb(o,a)}}return n}function lx(e,t){let n;if(t instanceof fb)n={update:sx(e,t.key,t.value)};else if(t instanceof _b)n={delete:tx(e,t.key)};else if(t instanceof pb)n={update:sx(e,t.key,t.data),updateMask:Sx(t.fieldMask)};else{if(!(t instanceof vb))return W();n={verify:tx(e,t.key)}}return t.fieldTransforms.length>0&&(n.updateTransforms=t.fieldTransforms.map((e=>function(e,t){let n=t.transform;if(n instanceof Jy)return{fieldPath:t.field.canonicalString(),setToServerValue:`REQUEST_TIME`};if(n instanceof Yy)return{fieldPath:t.field.canonicalString(),appendMissingElements:{values:n.elements}};if(n instanceof Zy)return{fieldPath:t.field.canonicalString(),removeAllFromArray:{values:n.elements}};if(n instanceof $y)return{fieldPath:t.field.canonicalString(),increment:n.Pe};throw W()}(0,e)))),t.precondition.isNone||(n.currentDocument=function(e,t){return t.updateTime===void 0?t.exists===void 0?W():{exists:t.exists}:{updateTime:Xb(e,t.updateTime)}}(e,t.precondition)),n}function ux(e,t){return e&&e.length>0?(v_(t!==void 0),e.map((e=>function(e,t){let n=e.updateTime?Zb(e.updateTime):Zb(t);return n.isEqual(P_.min())&&(n=Zb(t)),new rb(n,e.transformResults||[])}(e,t)))):[]}function dx(e,t){return{documents:[rx(e,t.path)]}}function fx(e,t){let n={structuredQuery:{}},r=t.path,i;t.collectionGroup===null?(i=r.popLast(),n.structuredQuery.from=[{collectionId:r.lastSegment()}]):(i=r,n.structuredQuery.from=[{collectionId:t.collectionGroup,allDescendants:!0}]),n.parent=rx(e,i);let a=function(e){if(e.length!==0)return xx(Gv.create(e,`and`))}(t.filters);a&&(n.structuredQuery.where=a);let o=function(e){if(e.length!==0)return e.map((e=>function(e){return{field:yx(e.field),direction:gx(e.dir)}}(e)))}(t.orderBy);o&&(n.structuredQuery.orderBy=o);let s=qb(e,t.limit);return s!==null&&(n.structuredQuery.limit=s),t.startAt&&(n.structuredQuery.startAt=function(e){return{before:e.inclusive,values:e.position}}(t.startAt)),t.endAt&&(n.structuredQuery.endAt=function(e){return{before:!e.inclusive,values:e.position}}(t.endAt)),{_t:n,parent:i}}function px(e){let t=ix(e.parent),n=e.structuredQuery,r=n.from?n.from.length:0,i=null;if(r>0){v_(r===1);let e=n.from[0];e.allDescendants?i=e.collectionId:t=t.child(e.collectionId)}let a=[];n.where&&(a=function(e){let t=hx(e);return t instanceof Gv&&qv(t)?t.getFilters():[t]}(n.where));let o=[];n.orderBy&&(o=function(e){return e.map((e=>function(e){return new Vv(bx(e.field),function(e){switch(e){case`ASCENDING`:return`asc`;case`DESCENDING`:return`desc`;default:return}}(e.direction))}(e)))}(n.orderBy));let s=null;n.limit&&(s=function(e){let t;return t=typeof e==`object`?e.value:e,Y_(t)?null:t}(n.limit));let c=null;n.startAt&&(c=function(e){let t=!!e.before;return new Rv(e.values||[],t)}(n.startAt));let l=null;return n.endAt&&(l=function(e){let t=!e.before;return new Rv(e.values||[],t)}(n.endAt)),fy(t,i,o,a,s,`F`,c,l)}function mx(e,t){let n=function(e){switch(e){case`TargetPurposeListen`:return null;case`TargetPurposeExistenceFilterMismatch`:return`existence-filter-mismatch`;case`TargetPurposeExistenceFilterMismatchBloom`:return`existence-filter-mismatch-bloom`;case`TargetPurposeLimboResolution`:return`limbo-document`;default:return W()}}(t.purpose);return n==null?null:{"goog-listen-tags":n}}function hx(e){return e.unaryFilter===void 0?e.fieldFilter===void 0?e.compositeFilter===void 0?W():function(e){return Gv.create(e.compositeFilter.filters.map((e=>hx(e))),function(e){switch(e){case`AND`:return`and`;case`OR`:return`or`;default:return W()}}(e.compositeFilter.op))}(e):function(e){return Wv.create(bx(e.fieldFilter.field),function(e){switch(e){case`EQUAL`:return`==`;case`NOT_EQUAL`:return`!=`;case`GREATER_THAN`:return`>`;case`GREATER_THAN_OR_EQUAL`:return`>=`;case`LESS_THAN`:return`<`;case`LESS_THAN_OR_EQUAL`:return`<=`;case`ARRAY_CONTAINS`:return`array-contains`;case`IN`:return`in`;case`NOT_IN`:return`not-in`;case`ARRAY_CONTAINS_ANY`:return`array-contains-any`;default:return W()}}(e.fieldFilter.op),e.fieldFilter.value)}(e):function(e){switch(e.unaryFilter.op){case`IS_NAN`:let t=bx(e.unaryFilter.field);return Wv.create(t,`==`,{doubleValue:NaN});case`IS_NULL`:let n=bx(e.unaryFilter.field);return Wv.create(n,`==`,{nullValue:`NULL_VALUE`});
19case`IS_NOT_NAN`:let r=bx(e.unaryFilter.field);return Wv.create(r,`!=`,{doubleValue:NaN});case`IS_NOT_NULL`:let i=bx(e.unaryFilter.field);return Wv.create(i,`!=`,{nullValue:`NULL_VALUE`});default:return W()}}(e)}function gx(e){return Ub[e]}function _x(e){return Wb[e]}function vx(e){return Gb[e]}function yx(e){return{fieldPath:e.canonicalString()}}function bx(e){return R_.fromServerFormat(e.fieldPath)}function xx(e){return e instanceof Wv?function(e){if(e.op===`==`){if(Av(e.value))return{unaryFilter:{field:yx(e.field),op:`IS_NAN`}};if(kv(e.value))return{unaryFilter:{field:yx(e.field),op:`IS_NULL`}}}else if(e.op===`!=`){if(Av(e.value))return{unaryFilter:{field:yx(e.field),op:`IS_NOT_NAN`}};if(kv(e.value))return{unaryFilter:{field:yx(e.field),op:`IS_NOT_NULL`}}}return{fieldFilter:{field:yx(e.field),op:_x(e.op),value:e.value}}}(e):e instanceof Gv?function(e){let t=e.getFilters().map((e=>xx(e)));return t.length===1?t[0]:{compositeFilter:{op:vx(e.op),filters:t}}}(e):W()}function Sx(e){let t=[];return e.fields.forEach((e=>t.push(e.canonicalString()))),{fieldPaths:t}}function Cx(e){return e.length>=4&&e.get(0)===`projects`&&e.get(2)===`databases`}var wx=class e{constructor(e,t,n,r,i=P_.min(),a=P_.min(),o=cv.EMPTY_BYTE_STRING,s=null){this.target=e,this.targetId=t,this.purpose=n,this.sequenceNumber=r,this.snapshotVersion=i,this.lastLimboFreeSnapshotVersion=a,this.resumeToken=o,this.expectedCount=s}withSequenceNumber(t){return new e(this.target,this.targetId,this.purpose,t,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,this.expectedCount)}withResumeToken(t,n){return new e(this.target,this.targetId,this.purpose,this.sequenceNumber,n,this.lastLimboFreeSnapshotVersion,t,null)}withExpectedCount(t){return new e(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,this.lastLimboFreeSnapshotVersion,this.resumeToken,t)}withLastLimboFreeSnapshotVersion(t){return new e(this.target,this.targetId,this.purpose,this.sequenceNumber,this.snapshotVersion,t,this.resumeToken,this.expectedCount)}},Tx=class{constructor(e){this.ct=e}};function Ex(e){let t=px({parent:e.parent,structuredQuery:e.structuredQuery});return e.limitType===`LAST`?yy(t,t.limit,`L`):t}var Dx=class{constructor(){}It(e,t){this.Tt(e,t),t.Et()}Tt(e,t){if(`nullValue`in e)this.dt(t,5);else if(`booleanValue`in e)this.dt(t,10),t.At(+!!e.booleanValue);else if(`integerValue`in e)this.dt(t,15),t.At(dv(e.integerValue));else if(`doubleValue`in e){let n=dv(e.doubleValue);isNaN(n)?this.dt(t,13):(this.dt(t,15),X_(n)?t.At(0):t.At(n))}else if(`timestampValue`in e){let n=e.timestampValue;this.dt(t,20),typeof n==`string`&&(n=uv(n)),t.Rt(`${n.seconds||``}`),t.At(n.nanos||0)}else if(`stringValue`in e)this.Vt(e.stringValue,t),this.ft(t);else if(`bytesValue`in e)this.dt(t,30),t.gt(fv(e.bytesValue)),this.ft(t);else if(`referenceValue`in e)this.yt(e.referenceValue,t);else if(`geoPointValue`in e){let n=e.geoPointValue;this.dt(t,45),t.At(n.latitude||0),t.At(n.longitude||0)}else`mapValue`in e?Pv(e)?this.dt(t,2**53-1):Mv(e)?this.wt(e.mapValue,t):(this.St(e.mapValue,t),this.ft(t)):`arrayValue`in e?(this.bt(e.arrayValue,t),this.ft(t)):W()}Vt(e,t){this.dt(t,25),this.Dt(e,t)}Dt(e,t){t.Rt(e)}St(e,t){let n=e.fields||{};this.dt(t,55);for(let e of Object.keys(n))this.Vt(e,t),this.Tt(n[e],t)}wt(e,t){let n=e.fields||{};this.dt(t,53);let r=`value`,i=n[r].arrayValue?.values?.length||0;this.dt(t,15),t.At(dv(i)),this.Vt(r,t),this.Tt(n[r],t)}bt(e,t){let n=e.values||[];this.dt(t,50);for(let e of n)this.Tt(e,t)}yt(e,t){this.dt(t,37),q.fromName(e).path.forEach((e=>{this.dt(t,60),this.Dt(e,t)}))}dt(e,t){e.At(t)}ft(e){e.At(2)}};Dx.vt=new Dx;var Ox=class{constructor(){this.un=new kx}addToCollectionParentIndex(e,t){return this.un.add(t),J.resolve()}getCollectionParents(e,t){return J.resolve(this.un.getEntries(t))}addFieldIndex(e,t){return J.resolve()}deleteFieldIndex(e,t){return J.resolve()}deleteAllFieldIndexes(e){return J.resolve()}createTargetIndexes(e,t){return J.resolve()}getDocumentsMatchingTarget(e,t){return J.resolve(null)}getIndexType(e,t){return J.resolve(0)}getFieldIndexes(e,t){return J.resolve([])}getNextCollectionGroupToUpdate(e){return J.resolve(null)}getMinOffset(e,t){return J.resolve(V_.min())}getMinOffsetFromCollectionGroup(e,t){return J.resolve(V_.min())}updateCollectionGroup(e,t,n){return J.resolve()}updateIndexEntries(e,t){return J.resolve()}},kx=class{constructor(){this.index={}}add(e){let t=e.lastSegment(),n=e.popLast(),r=this.index[t]||new iv(I_.comparator),i=!r.has(n);return this.index[t]=r.add(n),i}has(e){let t=e.lastSegment(),n=e.popLast(),r=this.index[t];return r&&r.has(n)}getEntries(e){return(this.index[e]||new iv(I_.comparator)).toArray()}},Ax=class e{constructor(e,t,n){this.cacheSizeCollectionThreshold=e,this.percentileToCollect=t,this.maximumSequenceNumbersToCollect=n}
19static withCacheSize(t){return new e(t,e.DEFAULT_COLLECTION_PERCENTILE,e.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT)}};Ax.DEFAULT_COLLECTION_PERCENTILE=10,Ax.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT=1e3,Ax.DEFAULT=new Ax(41943040,Ax.DEFAULT_COLLECTION_PERCENTILE,Ax.DEFAULT_MAX_SEQUENCE_NUMBERS_TO_COLLECT),Ax.DISABLED=new Ax(-1,0,0);var jx=class e{constructor(e){this.Ln=e}next(){return this.Ln+=2,this.Ln}static Bn(){return new e(0)}static kn(){return new e(-1)}},Mx=class{constructor(){this.changes=new Dy((e=>e.toString()),((e,t)=>e.isEqual(t))),this.changesApplied=!1}addEntry(e){this.assertNotApplied(),this.changes.set(e.key,e)}removeEntry(e,t){this.assertNotApplied(),this.changes.set(e,Lv.newInvalidDocument(e).setReadTime(t))}getEntry(e,t){this.assertNotApplied();let n=this.changes.get(t);return n===void 0?this.getFromCache(e,t):J.resolve(n)}getEntries(e,t){return this.getAllFromCache(e,t)}apply(e){return this.assertNotApplied(),this.changesApplied=!0,this.applyChanges(e)}assertNotApplied(){}},Nx=class{constructor(e,t){this.overlayedDocument=e,this.mutatedFields=t}},Px=class{constructor(e,t,n,r){this.remoteDocumentCache=e,this.mutationQueue=t,this.documentOverlayCache=n,this.indexManager=r}getDocument(e,t){let n=null;return this.documentOverlayCache.getOverlay(e,t).next((r=>(n=r,this.remoteDocumentCache.getEntry(e,t)))).next((e=>(n!==null&&lb(n.mutation,e,ov.empty(),N_.now()),e)))}getDocuments(e,t){return this.remoteDocumentCache.getEntries(e,t).next((t=>this.getLocalViewOfDocuments(e,t,Ry()).next((()=>t))))}getLocalViewOfDocuments(e,t,n=Ry()){let r=Ny();return this.populateOverlays(e,r,t).next((()=>this.computeViews(e,t,r,n).next((e=>{let t=jy();return e.forEach(((e,n)=>{t=t.insert(e,n.overlayedDocument)})),t}))))}getOverlayedDocuments(e,t){let n=Ny();return this.populateOverlays(e,n,t).next((()=>this.computeViews(e,t,n,Ry())))}populateOverlays(e,t,n){let r=[];return n.forEach((e=>{t.has(e)||r.push(e)})),this.documentOverlayCache.getOverlays(e,r).next((e=>{e.forEach(((e,n)=>{t.set(e,n)}))}))}computeViews(e,t,n,r){let i=ky(),a=Fy(),o=function(){return Fy()}();return t.forEach(((e,t)=>{let o=n.get(t.key);r.has(t.key)&&(o===void 0||o.mutation instanceof pb)?i=i.insert(t.key,t):o===void 0?a.set(t.key,ov.empty()):(a.set(t.key,o.mutation.getFieldMask()),lb(o.mutation,t,o.mutation.getFieldMask(),N_.now()))})),this.recalculateAndSaveOverlays(e,i).next((e=>(e.forEach(((e,t)=>a.set(e,t))),t.forEach(((e,t)=>o.set(e,new Nx(t,a.get(e)??null)))),o)))}recalculateAndSaveOverlays(e,t){let n=Fy(),r=new tv(((e,t)=>e-t)),i=Ry();return this.mutationQueue.getAllMutationBatchesAffectingDocumentKeys(e,t).next((e=>{for(let i of e)i.keys().forEach((e=>{let a=t.get(e);if(a===null)return;let o=n.get(e)||ov.empty();o=i.applyToLocalView(a,o),n.set(e,o);let s=(r.get(i.batchId)||Ry()).add(e);r=r.insert(i.batchId,s)}))})).next((()=>{let a=[],o=r.getReverseIterator();for(;o.hasNext();){let r=o.getNext(),s=r.key,c=r.value,l=Py();c.forEach((e=>{if(!i.has(e)){let r=sb(t.get(e),n.get(e));r!==null&&l.set(e,r),i=i.add(e)}})),a.push(this.documentOverlayCache.saveOverlays(e,s,l))}return J.waitFor(a)})).next((()=>n))}recalculateAndSaveOverlaysForDocumentKeys(e,t){return this.remoteDocumentCache.getEntries(e,t).next((t=>this.recalculateAndSaveOverlays(e,t)))}getDocumentsMatchingQuery(e,t,n,r){return function(e){return q.isDocumentKey(e.path)&&e.collectionGroup===null&&e.filters.length===0}(t)?this.getDocumentsMatchingDocumentQuery(e,t.path):hy(t)?this.getDocumentsMatchingCollectionGroupQuery(e,t,n,r):this.getDocumentsMatchingCollectionQuery(e,t,n,r)}getNextDocuments(e,t,n,r){return this.remoteDocumentCache.getAllFromCollectionGroup(e,t,n,r).next((i=>{let a=r-i.size>0?this.documentOverlayCache.getOverlaysForCollectionGroup(e,t,n.largestBatchId,r-i.size):J.resolve(Ny()),o=-1,s=i;return a.next((t=>J.forEach(t,((t,n)=>(o<n.largestBatchId&&(o=n.largestBatchId),i.get(t)?J.resolve():this.remoteDocumentCache.getEntry(e,t).next((e=>{s=s.insert(t,e)}))))).next((()=>this.populateOverlays(e,t,i))).next((()=>this.computeViews(e,s,t,Ry()))).next((e=>({batchId:o,changes:My(e)})))))}))}getDocumentsMatchingDocumentQuery(e,t){return this.getDocument(e,new q(t)).next((e=>{let t=jy();
19return e.isFoundDocument()&&(t=t.insert(e.key,e)),t}))}getDocumentsMatchingCollectionGroupQuery(e,t,n,r){let i=t.collectionGroup,a=jy();return this.indexManager.getCollectionParents(e,i).next((o=>J.forEach(o,(o=>{let s=function(e,t){return new dy(t,null,e.explicitOrderBy.slice(),e.filters.slice(),e.limit,e.limitType,e.startAt,e.endAt)}(t,o.child(i));return this.getDocumentsMatchingCollectionQuery(e,s,n,r).next((e=>{e.forEach(((e,t)=>{a=a.insert(e,t)}))}))})).next((()=>a))))}getDocumentsMatchingCollectionQuery(e,t,n,r){let i;return this.documentOverlayCache.getOverlaysForCollection(e,t.path,n.largestBatchId).next((a=>(i=a,this.remoteDocumentCache.getDocumentsMatchingQuery(e,t,n,i,r)))).next((e=>{i.forEach(((t,n)=>{let r=n.getKey();e.get(r)===null&&(e=e.insert(r,Lv.newInvalidDocument(r)))}));let n=jy();return e.forEach(((e,r)=>{let a=i.get(e);a!==void 0&&lb(a.mutation,r,ov.empty(),N_.now()),Cy(t,r)&&(n=n.insert(e,r))})),n}))}},Fx=class{constructor(e){this.serializer=e,this.hr=new Map,this.Pr=new Map}getBundleMetadata(e,t){return J.resolve(this.hr.get(t))}saveBundleMetadata(e,t){return this.hr.set(t.id,function(e){return{id:e.id,version:e.version,createTime:Zb(e.createTime)}}(t)),J.resolve()}getNamedQuery(e,t){return J.resolve(this.Pr.get(t))}saveNamedQuery(e,t){return this.Pr.set(t.name,function(e){return{name:e.name,query:Ex(e.bundledQuery),readTime:Zb(e.readTime)}}(t)),J.resolve()}},Ix=class{constructor(){this.overlays=new tv(q.comparator),this.Ir=new Map}getOverlay(e,t){return J.resolve(this.overlays.get(t))}getOverlays(e,t){let n=Ny();return J.forEach(t,(t=>this.getOverlay(e,t).next((e=>{e!==null&&n.set(t,e)})))).next((()=>n))}saveOverlays(e,t,n){return n.forEach(((n,r)=>{this.ht(e,t,r)})),J.resolve()}removeOverlaysForBatchId(e,t,n){let r=this.Ir.get(n);return r!==void 0&&(r.forEach((e=>this.overlays=this.overlays.remove(e))),this.Ir.delete(n)),J.resolve()}getOverlaysForCollection(e,t,n){let r=Ny(),i=t.length+1,a=new q(t.child(``)),o=this.overlays.getIteratorFrom(a);for(;o.hasNext();){let e=o.getNext().value,a=e.getKey();if(!t.isPrefixOf(a.path))break;a.path.length===i&&e.largestBatchId>n&&r.set(e.getKey(),e)}return J.resolve(r)}getOverlaysForCollectionGroup(e,t,n,r){let i=new tv(((e,t)=>e-t)),a=this.overlays.getIterator();for(;a.hasNext();){let e=a.getNext().value;if(e.getKey().getCollectionGroup()===t&&e.largestBatchId>n){let t=i.get(e.largestBatchId);t===null&&(t=Ny(),i=i.insert(e.largestBatchId,t)),t.set(e.getKey(),e)}}let o=Ny(),s=i.getIterator();for(;s.hasNext()&&(s.getNext().value.forEach(((e,t)=>o.set(e,t))),!(o.size()>=r)););return J.resolve(o)}ht(e,t,n){let r=this.overlays.get(n.key);if(r!==null){let e=this.Ir.get(r.largestBatchId).delete(n.key);this.Ir.set(r.largestBatchId,e)}this.overlays=this.overlays.insert(n.key,new xb(t,n));let i=this.Ir.get(t);i===void 0&&(i=Ry(),this.Ir.set(t,i)),this.Ir.set(t,i.add(n.key))}},Lx=class{constructor(){this.sessionToken=cv.EMPTY_BYTE_STRING}getSessionToken(e){return J.resolve(this.sessionToken)}setSessionToken(e,t){return this.sessionToken=t,J.resolve()}},Rx=class{constructor(){this.Tr=new iv(zx.Er),this.dr=new iv(zx.Ar)}isEmpty(){return this.Tr.isEmpty()}addReference(e,t){let n=new zx(e,t);this.Tr=this.Tr.add(n),this.dr=this.dr.add(n)}Rr(e,t){e.forEach((e=>this.addReference(e,t)))}removeReference(e,t){this.Vr(new zx(e,t))}mr(e,t){e.forEach((e=>this.removeReference(e,t)))}gr(e){let t=new q(new I_([])),n=new zx(t,e),r=new zx(t,e+1),i=[];return this.dr.forEachInRange([n,r],(e=>{this.Vr(e),i.push(e.key)})),i}pr(){this.Tr.forEach((e=>this.Vr(e)))}Vr(e){this.Tr=this.Tr.delete(e),this.dr=this.dr.delete(e)}yr(e){let t=new q(new I_([])),n=new zx(t,e),r=new zx(t,e+1),i=Ry();return this.dr.forEachInRange([n,r],(e=>{i=i.add(e.key)})),i}containsKey(e){let t=new zx(e,0),n=this.Tr.firstAfterOrEqual(t);return n!==null&&e.isEqual(n.key)}},zx=class{constructor(e,t){this.key=e,this.wr=t}static Er(e,t){return q.comparator(e.key,t.key)||j_(e.wr,t.wr)}static Ar(e,t){return j_(e.wr,t.wr)||q.comparator(e.key,t.key)}},Bx=class{constructor(e,t){this.indexManager=e,this.referenceDelegate=t,this.mutation
19Queue=[],this.Sr=1,this.br=new iv(zx.Er)}checkEmpty(e){return J.resolve(this.mutationQueue.length===0)}addMutationBatch(e,t,n,r){let i=this.Sr;this.Sr++,this.mutationQueue.length>0&&this.mutationQueue[this.mutationQueue.length-1];let a=new yb(i,t,n,r);this.mutationQueue.push(a);for(let t of r)this.br=this.br.add(new zx(t.key,i)),this.indexManager.addToCollectionParentIndex(e,t.key.path.popLast());return J.resolve(a)}lookupMutationBatch(e,t){return J.resolve(this.Dr(t))}getNextMutationBatchAfterBatchId(e,t){let n=t+1,r=this.vr(n),i=r<0?0:r;return J.resolve(this.mutationQueue.length>i?this.mutationQueue[i]:null)}getHighestUnacknowledgedBatchId(){return J.resolve(this.mutationQueue.length===0?-1:this.Sr-1)}getAllMutationBatches(e){return J.resolve(this.mutationQueue.slice())}getAllMutationBatchesAffectingDocumentKey(e,t){let n=new zx(t,0),r=new zx(t,1/0),i=[];return this.br.forEachInRange([n,r],(e=>{let t=this.Dr(e.wr);i.push(t)})),J.resolve(i)}getAllMutationBatchesAffectingDocumentKeys(e,t){let n=new iv(j_);return t.forEach((e=>{let t=new zx(e,0),r=new zx(e,1/0);this.br.forEachInRange([t,r],(e=>{n=n.add(e.wr)}))})),J.resolve(this.Cr(n))}getAllMutationBatchesAffectingQuery(e,t){let n=t.path,r=n.length+1,i=n;q.isDocumentKey(i)||(i=i.child(``));let a=new zx(new q(i),0),o=new iv(j_);return this.br.forEachWhile((e=>{let t=e.key.path;return!!n.isPrefixOf(t)&&(t.length===r&&(o=o.add(e.wr)),!0)}),a),J.resolve(this.Cr(o))}Cr(e){let t=[];return e.forEach((e=>{let n=this.Dr(e);n!==null&&t.push(n)})),t}removeMutationBatch(e,t){v_(this.Fr(t.batchId,`removed`)===0),this.mutationQueue.shift();let n=this.br;return J.forEach(t.mutations,(r=>{let i=new zx(r.key,t.batchId);return n=n.delete(i),this.referenceDelegate.markPotentiallyOrphaned(e,r.key)})).next((()=>{this.br=n}))}On(e){}containsKey(e,t){let n=new zx(t,0),r=this.br.firstAfterOrEqual(n);return J.resolve(t.isEqual(r&&r.key))}performConsistencyCheck(e){return this.mutationQueue.length,J.resolve()}Fr(e,t){return this.vr(e)}vr(e){return this.mutationQueue.length===0?0:e-this.mutationQueue[0].batchId}Dr(e){let t=this.vr(e);return t<0||t>=this.mutationQueue.length?null:this.mutationQueue[t]}},Vx=class{constructor(e){this.Mr=e,this.docs=function(){return new tv(q.comparator)}(),this.size=0}setIndexManager(e){this.indexManager=e}addEntry(e,t){let n=t.key,r=this.docs.get(n),i=r?r.size:0,a=this.Mr(t);return this.docs=this.docs.insert(n,{document:t.mutableCopy(),size:a}),this.size+=a-i,this.indexManager.addToCollectionParentIndex(e,n.path.popLast())}removeEntry(e){let t=this.docs.get(e);t&&(this.docs=this.docs.remove(e),this.size-=t.size)}getEntry(e,t){let n=this.docs.get(t);return J.resolve(n?n.document.mutableCopy():Lv.newInvalidDocument(t))}getEntries(e,t){let n=ky();return t.forEach((e=>{let t=this.docs.get(e);n=n.insert(e,t?t.document.mutableCopy():Lv.newInvalidDocument(e))})),J.resolve(n)}getDocumentsMatchingQuery(e,t,n,r){let i=ky(),a=t.path,o=new q(a.child(``)),s=this.docs.getIteratorFrom(o);for(;s.hasNext();){let{key:e,value:{document:o}}=s.getNext();if(!a.isPrefixOf(e.path))break;e.path.length>a.length+1||H_(B_(o),n)<=0||(r.has(o.key)||Cy(t,o))&&(i=i.insert(o.key,o.mutableCopy()))}return J.resolve(i)}getAllFromCollectionGroup(e,t,n,r){W()}Or(e,t){return J.forEach(this.docs,(e=>t(e)))}newChangeBuffer(e){return new Hx(this)}getSize(e){return J.resolve(this.size)}},Hx=class extends Mx{constructor(e){super(),this.cr=e}applyChanges(e){let t=[];
19return this.changes.forEach(((n,r)=>{r.isValidDocument()?t.push(this.cr.addEntry(e,r)):this.cr.removeEntry(n)})),J.waitFor(t)}getFromCache(e,t){return this.cr.getEntry(e,t)}getAllFromCache(e,t){return this.cr.getEntries(e,t)}},Ux=class{constructor(e){this.persistence=e,this.Nr=new Dy((e=>cy(e)),ly),this.lastRemoteSnapshotVersion=P_.min(),this.highestTargetId=0,this.Lr=0,this.Br=new Rx,this.targetCount=0,this.kr=jx.Bn()}forEachTarget(e,t){return this.Nr.forEach(((e,n)=>t(n))),J.resolve()}getLastRemoteSnapshotVersion(e){return J.resolve(this.lastRemoteSnapshotVersion)}getHighestSequenceNumber(e){return J.resolve(this.Lr)}allocateTargetId(e){return this.highestTargetId=this.kr.next(),J.resolve(this.highestTargetId)}setTargetsMetadata(e,t,n){return n&&(this.lastRemoteSnapshotVersion=n),t>this.Lr&&(this.Lr=t),J.resolve()}Kn(e){this.Nr.set(e.target,e);let t=e.targetId;t>this.highestTargetId&&(this.kr=new jx(t),this.highestTargetId=t),e.sequenceNumber>this.Lr&&(this.Lr=e.sequenceNumber)}addTargetData(e,t){return this.Kn(t),this.targetCount+=1,J.resolve()}updateTargetData(e,t){return this.Kn(t),J.resolve()}removeTargetData(e,t){return this.Nr.delete(t.target),this.Br.gr(t.targetId),--this.targetCount,J.resolve()}removeTargets(e,t,n){let r=0,i=[];return this.Nr.forEach(((a,o)=>{o.sequenceNumber<=t&&n.get(o.targetId)===null&&(this.Nr.delete(a),i.push(this.removeMatchingKeysForTargetId(e,o.targetId)),r++)})),J.waitFor(i).next((()=>r))}getTargetCount(e){return J.resolve(this.targetCount)}getTargetData(e,t){let n=this.Nr.get(t)||null;return J.resolve(n)}addMatchingKeys(e,t,n){return this.Br.Rr(t,n),J.resolve()}removeMatchingKeys(e,t,n){this.Br.mr(t,n);let r=this.persistence.referenceDelegate,i=[];return r&&t.forEach((t=>{i.push(r.markPotentiallyOrphaned(e,t))})),J.waitFor(i)}removeMatchingKeysForTargetId(e,t){return this.Br.gr(t),J.resolve()}getMatchingKeysForTargetId(e,t){let n=this.Br.yr(t);return J.resolve(n)}containsKey(e,t){return J.resolve(this.Br.containsKey(t))}},Wx=class{constructor(e,t){this.qr={},this.overlays={},this.Qr=new J_(0),this.Kr=!1,this.Kr=!0,this.$r=new Lx,this.referenceDelegate=e(this),this.Ur=new Ux(this),this.indexManager=new Ox,this.remoteDocumentCache=function(e){return new Vx(e)}((e=>this.referenceDelegate.Wr(e))),this.serializer=new Tx(t),this.Gr=new Fx(this.serializer)}start(){return Promise.resolve()}shutdown(){return this.Kr=!1,Promise.resolve()}get started(){return this.Kr}setDatabaseDeletedListener(){}setNetworkEnabled(){}getIndexManager(e){return this.indexManager}getDocumentOverlayCache(e){let t=this.overlays[e.toKey()];return t||(t=new Ix,this.overlays[e.toKey()]=t),t}getMutationQueue(e,t){let n=this.qr[e.toKey()];return n||(n=new Bx(t,this.referenceDelegate),this.qr[e.toKey()]=n),n}getGlobalsCache(){return this.$r}getTargetCache(){return this.Ur}getRemoteDocumentCache(){return this.remoteDocumentCache}getBundleCache(){return this.Gr}runTransaction(e,t,n){U(`MemoryPersistence`,`Starting transaction:`,e);let r=new Gx(this.Qr.next());return this.referenceDelegate.zr(),n(r).next((e=>this.referenceDelegate.jr(r).next((()=>e)))).toPromise().then((e=>(r.raiseOnCommittedEvent(),e)))}Hr(e,t){return J.or(Object.values(this.qr).map((n=>()=>n.containsKey(e,t))))}},Gx=class extends W_{constructor(e){super(),this.currentSequenceNumber=e}},Kx=class e{constructor(e){this.persistence=e,this.Jr=new Rx,this.Yr=null}static Zr(t){return new e(t)}get Xr(){if(this.Yr)return this.Yr;throw W()}addReference(e,t,n){return this.Jr.addReference(n,t),this.Xr.delete(n.toString()),J.resolve()}removeReference(e,t,n){return this.Jr.removeReference(n,t),this.Xr.add(n.toString()),J.resolve()}markPotentiallyOrphaned(e,t){return this.Xr.add(t.toString()),J.resolve()}removeTarget(e,t){this.Jr.gr(t.targetId).forEach((e=>this.Xr.add(e.toString())));let n=this.persistence.getTargetCache();return n.getMatchingKeysForTargetId(e,t.targetId).next((e=>{e.forEach((e=>this.Xr.add(e.toString())))})).next((()=>n.removeTargetData(e,t)))}zr(){this.Yr=new Set}jr(e){let t=this.persistence.getRemoteDocumentCache().newChangeBuffer();return J.forEach(this.Xr,(n=>{let r=q.fromPath(n);return this.ei(e,r).next((e=>{e||t.removeEntry(r,P_.min())}))})).next((()=>(this.Yr=null,t.apply(e))))}updateLimboDocument(e,t){return this.ei(e,t).next((e=>{e?this.Xr.delete(t.toString()):this.Xr.add(t.toString())}))}Wr(e){return 0}ei(e,t){return J.or([()=>J.resolve(this.Jr.containsKey(t)),()=>this.persistence.getTargetCache().containsKey(e,t),()=>this.persistence.Hr(e,t)])}},qx=class e{constructor(e,t,n,r){this.targetId=e,this.fromCache=t,this.$i=n,this.Ui=r}static Wi(t,n){let r=Ry(),i=Ry();for(let e of n.docChanges)switch(e.type){case 0:r=r.add(e.doc.key);break;case 1:i=i.add(e.doc.key)}return new e(t,n.fromCache,r,i)}},Jx=class{constructor(){this._documentReadCount=0}get documentReadCount(){return this._documentReadCount}incrementDocumentReadCount(e){this._documentReadCount+=e}},Yx=class{constructor(){this.Gi=!1,this.zi=!1,this.ji=100,this.Hi=function(){return ts()?8:K_(Jo())>0?6:4}()}initialize(e,t){this.Ji=e,this.indexManager=t,this.Gi=!0}getDocumentsMatchingQuery(e,t,n,r){let i={result:null};return this.Yi(e,t).next((e=>{i.result=e})).next((()=>
19{if(!i.result)return this.Zi(e,t,r,n).next((e=>{i.result=e}))})).next((()=>{if(i.result)return;let n=new Jx;return this.Xi(e,t,n).next((r=>{if(i.result=r,this.zi)return this.es(e,t,n,r.size)}))})).next((()=>i.result))}es(e,t,n,r){return n.documentReadCount<this.ji?(m_()<=Is.DEBUG&&U(`QueryEngine`,`SDK will not create cache indexes for query:`,Sy(t),`since it only creates cache indexes for collection contains`,`more than or equal to`,this.ji,`documents`),J.resolve()):(m_()<=Is.DEBUG&&U(`QueryEngine`,`Query:`,Sy(t),`scans`,n.documentReadCount,`local documents and returns`,r,`documents as results.`),n.documentReadCount>this.Hi*r?(m_()<=Is.DEBUG&&U(`QueryEngine`,`The SDK decides to create cache indexes for query:`,Sy(t),`as using cache indexes may help improve performance.`),this.indexManager.createTargetIndexes(e,_y(t))):J.resolve())}Yi(e,t){if(my(t))return J.resolve(null);let n=_y(t);return this.indexManager.getIndexType(e,n).next((r=>r===0?null:(t.limit!==null&&r===1&&(t=yy(t,null,`F`),n=_y(t)),this.indexManager.getDocumentsMatchingTarget(e,n).next((r=>{let i=Ry(...r);return this.Ji.getDocuments(e,i).next((r=>this.indexManager.getMinOffset(e,n).next((n=>{let a=this.ts(t,r);return this.ns(t,a,i,n.readTime)?this.Yi(e,yy(t,null,`F`)):this.rs(e,a,t,n)}))))})))))}Zi(e,t,n,r){return my(t)||r.isEqual(P_.min())?J.resolve(null):this.Ji.getDocuments(e,n).next((i=>{let a=this.ts(t,i);return this.ns(t,a,n,r)?J.resolve(null):(m_()<=Is.DEBUG&&U(`QueryEngine`,`Re-using previous result from %s to execute query: %s`,r.toString(),Sy(t)),this.rs(e,a,t,z_(r,-1)).next((e=>e)))}))}ts(e,t){let n=new iv(Ty(e));return t.forEach(((t,r)=>{Cy(e,r)&&(n=n.add(r))})),n}ns(e,t,n,r){if(e.limit===null)return!1;if(n.size!==t.size)return!0;let i=e.limitType===`F`?t.last():t.first();return!!i&&(i.hasPendingWrites||i.version.compareTo(r)>0)}Xi(e,t,n){return m_()<=Is.DEBUG&&U(`QueryEngine`,`Using full collection scan to execute query:`,Sy(t)),this.Ji.getDocumentsMatchingQuery(e,t,V_.min(),n)}rs(e,t,n,r){return this.Ji.getDocumentsMatchingQuery(e,n,r).next((e=>(t.forEach((t=>{e=e.insert(t.key,t)})),e)))}},Xx=class{constructor(e,t,n,r){this.persistence=e,this.ss=t,this.serializer=r,this.os=new tv(j_),this._s=new Dy((e=>cy(e)),ly),this.us=new Map,this.cs=e.getRemoteDocumentCache(),this.Ur=e.getTargetCache(),this.Gr=e.getBundleCache(),this.ls(n)}ls(e){this.documentOverlayCache=this.persistence.getDocumentOverlayCache(e),this.indexManager=this.persistence.getIndexManager(e),this.mutationQueue=this.persistence.getMutationQueue(e,this.indexManager),this.localDocuments=new Px(this.cs,this.mutationQueue,this.documentOverlayCache,this.indexManager),this.cs.setIndexManager(this.indexManager),this.ss.initialize(this.localDocuments,this.indexManager)}collectGarbage(e){return this.persistence.runTransaction(`Collect garbage`,`readwrite-primary`,(t=>e.collect(t,this.os)))}};function Zx(e,t,n,r){return new Xx(e,t,n,r)}async function Qx(e,t){let n=y_(e);return await n.persistence.runTransaction(`Handle user change`,`readonly`,(e=>{let r;
19return n.mutationQueue.getAllMutationBatches(e).next((i=>(r=i,n.ls(t),n.mutationQueue.getAllMutationBatches(e)))).next((t=>{let i=[],a=[],o=Ry();for(let e of r){i.push(e.batchId);for(let t of e.mutations)o=o.add(t.key)}for(let e of t){a.push(e.batchId);for(let t of e.mutations)o=o.add(t.key)}return n.localDocuments.getDocuments(e,o).next((e=>({hs:e,removedBatchIds:i,addedBatchIds:a})))}))}))}function $x(e,t){let n=y_(e);return n.persistence.runTransaction(`Acknowledge batch`,`readwrite-primary`,(e=>{let r=t.batch.keys(),i=n.cs.newChangeBuffer({trackRemovals:!0});return function(e,t,n,r){let i=n.batch,a=i.keys(),o=J.resolve();return a.forEach((e=>{o=o.next((()=>r.getEntry(t,e))).next((t=>{let a=n.docVersions.get(e);v_(a!==null),t.version.compareTo(a)<0&&(i.applyToRemoteDocument(t,n),t.isValidDocument()&&(t.setReadTime(n.commitVersion),r.addEntry(t)))}))})),o.next((()=>e.mutationQueue.removeMutationBatch(t,i)))}(n,e,t,i).next((()=>i.apply(e))).next((()=>n.mutationQueue.performConsistencyCheck(e))).next((()=>n.documentOverlayCache.removeOverlaysForBatchId(e,r,t.batch.batchId))).next((()=>n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(e,function(e){let t=Ry();for(let n=0;n<e.mutationResults.length;++n)e.mutationResults[n].transformResults.length>0&&(t=t.add(e.batch.mutations[n].key));return t}(t)))).next((()=>n.localDocuments.getDocuments(e,r)))}))}function eS(e){let t=y_(e);return t.persistence.runTransaction(`Get last remote snapshot version`,`readonly`,(e=>t.Ur.getLastRemoteSnapshotVersion(e)))}function tS(e,t){let n=y_(e),r=t.snapshotVersion,i=n.os;return n.persistence.runTransaction(`Apply remote event`,`readwrite-primary`,(e=>{let a=n.cs.newChangeBuffer({trackRemovals:!0});i=n.os;let o=[];
19t.targetChanges.forEach(((a,s)=>{let c=i.get(s);if(!c)return;o.push(n.Ur.removeMatchingKeys(e,a.removedDocuments,s).next((()=>n.Ur.addMatchingKeys(e,a.addedDocuments,s))));let l=c.withSequenceNumber(e.currentSequenceNumber);t.targetMismatches.get(s)===null?a.resumeToken.approximateByteSize()>0&&(l=l.withResumeToken(a.resumeToken,r)):l=l.withResumeToken(cv.EMPTY_BYTE_STRING,P_.min()).withLastLimboFreeSnapshotVersion(P_.min()),i=i.insert(s,l),function(e,t,n){return e.resumeToken.approximateByteSize()===0||t.snapshotVersion.toMicroseconds()-e.snapshotVersion.toMicroseconds()>=3e8||n.addedDocuments.size+n.modifiedDocuments.size+n.removedDocuments.size>0}(c,l,a)&&o.push(n.Ur.updateTargetData(e,l))}));let s=ky(),c=Ry();if(t.documentUpdates.forEach((r=>{t.resolvedLimboDocuments.has(r)&&o.push(n.persistence.referenceDelegate.updateLimboDocument(e,r))})),o.push(nS(e,a,t.documentUpdates).next((e=>{s=e.Ps,c=e.Is}))),!r.isEqual(P_.min())){let t=n.Ur.getLastRemoteSnapshotVersion(e).next((t=>n.Ur.setTargetsMetadata(e,e.currentSequenceNumber,r)));o.push(t)}return J.waitFor(o).next((()=>a.apply(e))).next((()=>n.localDocuments.getLocalViewOfDocuments(e,s,c))).next((()=>s))})).then((e=>(n.os=i,e)))}function nS(e,t,n){let r=Ry(),i=Ry();return n.forEach((e=>r=r.add(e))),t.getEntries(e,r).next((e=>{let r=ky();return n.forEach(((n,a)=>{let o=e.get(n);a.isFoundDocument()!==o.isFoundDocument()&&(i=i.add(n)),a.isNoDocument()&&a.version.isEqual(P_.min())?(t.removeEntry(n,a.readTime),r=r.insert(n,a)):!o.isValidDocument()||a.version.compareTo(o.version)>0||a.version.compareTo(o.version)===0&&o.hasPendingWrites?(t.addEntry(a),r=r.insert(n,a)):U(`LocalStore`,`Ignoring outdated watch update for `,n,`. Current version:`,o.version,` Watch version:`,a.version)})),{Ps:r,Is:i}}))}function rS(e,t){let n=y_(e);return n.persistence.runTransaction(`Get next mutation batch`,`readonly`,(e=>(t===void 0&&(t=-1),n.mutationQueue.getNextMutationBatchAfterBatchId(e,t))))}function iS(e,t){let n=y_(e);return n.persistence.runTransaction(`Allocate target`,`readwrite`,(e=>{let r;return n.Ur.getTargetData(e,t).next((i=>i?(r=i,J.resolve(r)):n.Ur.allocateTargetId(e).next((i=>(r=new wx(t,i,`TargetPurposeListen`,e.currentSequenceNumber),n.Ur.addTargetData(e,r).next((()=>r)))))))})).then((e=>{let r=n.os.get(e.targetId);return(r===null||e.snapshotVersion.compareTo(r.snapshotVersion)>0)&&(n.os=n.os.insert(e.targetId,e),n._s.set(t,e.targetId)),e}))}async function aS(e,t,n){let r=y_(e),i=r.os.get(t),a=n?`readwrite`:`readwrite-primary`;try{n||await r.persistence.runTransaction(`Release target`,a,(e=>r.persistence.referenceDelegate.removeTarget(e,i)))}catch(e){if(!q_(e))throw e;U(`LocalStore`,`Failed to update sequence numbers for target ${t}: ${e}`)}r.os=r.os.remove(t),r._s.delete(i.target)}function oS(e,t,n){let r=y_(e),i=P_.min(),a=Ry();return r.persistence.runTransaction(`Execute query`,`readwrite`,(e=>function(e,t,n){let r=y_(e),i=r._s.get(n);return i===void 0?r.Ur.getTargetData(t,n):J.resolve(r.os.get(i))}(r,e,_y(t)).next((t=>{if(t)return i=t.lastLimboFreeSnapshotVersion,r.Ur.getMatchingKeysForTargetId(e,t.targetId).next((e=>{a=e}))})).next((()=>r.ss.getDocumentsMatchingQuery(e,t,n?i:P_.min(),n?a:Ry()))).next((e=>(sS(r,wy(t),e),{documents:e,Ts:a})))))}function sS(e,t,n){let r=e.us.get(t)||P_.min();n.forEach(((e,t)=>{t.readTime.compareTo(r)>0&&(r=t.readTime)})),e.us.set(t,r)}var cS=class{constructor(){this.activeTargetIds=By()}fs(e){this.activeTargetIds=this.activeTargetIds.add(e)}gs(e){this.activeTargetIds=this.activeTargetIds.delete(e)}Vs(){let e={activeTargetIds:this.activeTargetIds.toArray(),updateTimeMs:Date.now()};return JSON.stringify(e)}},lS=class{constructor(){this.so=new cS,this.oo={},this.onlineStateHandler=null,this.sequenceNumberHandler=null}addPendingMutation(e){}updateMutationState(e,t,n){}addLocalQueryTarget(e,t=!0){return t&&this.so.fs(e),this.oo[e]||`not-current`}updateQueryState(e,t,n){this.oo[e]=t}removeLocalQueryTarget(e){this.so.gs(e)}isLocalQueryTarget(e){return this.so.activeTargetIds.has(e)}clearQueryState(e){delete this.oo[e]}getAllActiveQueryTargets(){return this.so.activeTargetIds}isActiveQueryTarget(e){return this.so.activeTargetIds.has(e)}start(){return this.so=new cS,Promise.resolve()}handleUserChange(e,t,n){}setOnlineState(e){}shutdown(){}writeSequenceNumber(e){}notifyBundleLoaded(e){}},uS=class{_o(e){}shutdown(){}},dS=class{constructor(){this.ao=()=>this.uo(),this.co=()=>this.lo(),this.ho=[],this.Po()}_o(e){this.ho.push(e)}shutdown(){window.removeEventListener(`online`,this.ao),window.removeEventListener(`offline`,this.co)}Po(){window.addEventListener(`online`,this.ao),window.addEventListener(`offline`,this.co)}uo(){U(`ConnectivityMonitor`,`Network connectivity changed: AVAILABLE`);for(let e of this.ho)e(0)}lo(){U(`ConnectivityMonitor`,`Network connectivity changed: UNAVAILABLE`);for(let e of this.ho)e(1)}static D(){return typeof window<`u`&&window.addEventListener!==void 0&&window.removeEventListener!==void 0}},fS=null;function pS(){return fS===null?fS=function(){return 268435456+Math.round(2147483648*Math.random())}():fS++,`0x`+fS.toString(16)}var mS={BatchGetDocuments:`batchGet`,Commit:`commit`,RunQuery:`runQuery`,RunAggregation
19Query:`runAggregationQuery`},hS=class{constructor(e){this.Io=e.Io,this.To=e.To}Eo(e){this.Ao=e}Ro(e){this.Vo=e}mo(e){this.fo=e}onMessage(e){this.po=e}close(){this.To()}send(e){this.Io(e)}yo(){this.Ao()}wo(){this.Vo()}So(e){this.fo(e)}bo(e){this.po(e)}},gS=`WebChannelConnection`,_S=class extends class{constructor(e){this.databaseInfo=e,this.databaseId=e.databaseId;let t=e.ssl?`https`:`http`,n=encodeURIComponent(this.databaseId.projectId),r=encodeURIComponent(this.databaseId.database);this.Do=t+`://`+e.host,this.vo=`projects/${n}/databases/${r}`,this.Co=this.databaseId.database===`(default)`?`project_id=${n}`:`project_id=${n}&database_id=${r}`}get Fo(){return!1}Mo(e,t,n,r,i){let a=pS(),o=this.xo(e,t.toUriEncodedString());U(`RestConnection`,`Sending RPC '${e}' ${a}:`,o,n);let s={"google-cloud-resource-prefix":this.vo,"x-goog-request-params":this.Co};return this.Oo(s,r,i),this.No(e,o,s,n).then((t=>(U(`RestConnection`,`Received RPC '${e}' ${a}: `,t),t)),(t=>{throw g_(`RestConnection`,`RPC '${e}' ${a} failed with error: `,t,`url: `,o,`request:`,n),t}))}Lo(e,t,n,r,i,a){return this.Mo(e,t,n,r,i)}Oo(e,t,n){e[`X-Goog-Api-Client`]=function(){return`gl-js/ fire/`+f_}(),e[`Content-Type`]=`text/plain`,this.databaseInfo.appId&&(e[`X-Firebase-GMPID`]=this.databaseInfo.appId),t&&t.headers.forEach(((t,n)=>e[n]=t)),n&&n.headers.forEach(((t,n)=>e[n]=t))}xo(e,t){let n=mS[e];return`${this.Do}/v1/${t}:${n}`}terminate(){}}{constructor(e){super(e),this.forceLongPolling=e.forceLongPolling,this.autoDetectLongPolling=e.autoDetectLongPolling,this.useFetchStreams=e.useFetchStreams,this.longPollingOptions=e.longPollingOptions}No(e,t,n,r){let i=pS();return new Promise(((a,o)=>{let s=new n_;s.setWithCredentials(!0),s.listenOnce(i_.COMPLETE,(()=>{try{switch(s.getLastErrorCode()){case a_.NO_ERROR:let t=s.getResponseJson();U(gS,`XHR for RPC '${e}' ${i} received:`,JSON.stringify(t)),a(t);break;case a_.TIMEOUT:U(gS,`RPC '${e}' ${i} timed out`),o(new K(G.DEADLINE_EXCEEDED,`Request time out`));break;case a_.HTTP_ERROR:let n=s.getStatus();if(U(gS,`RPC '${e}' ${i} failed with status:`,n,`response text:`,s.getResponseText()),n>0){let e=s.getResponseJson();Array.isArray(e)&&(e=e[0]);let t=e?.error;t&&t.status&&t.message?o(new K(function(e){let t=e.toLowerCase().replace(/_/g,`-`);return Object.values(G).indexOf(t)>=0?t:G.UNKNOWN}(t.status),t.message)):o(new K(G.UNKNOWN,`Server responded with status `+s.getStatus()))}else o(new K(G.UNAVAILABLE,`Connection failed.`));break;default:W()}}finally{U(gS,`RPC '${e}' ${i} completed.`)}}));let c=JSON.stringify(r);U(gS,`RPC '${e}' ${i} sending request:`,r),s.send(t,`POST`,c,n,15)}))}Bo(e,t,n){let r=pS(),i=[this.Do,`/`,`google.firestore.v1.Firestore`,`/`,e,`/channel`],a=l_(),o=c_(),s={httpSessionIdParam:`gsessionid`,initMessageHeaders:{},messageUrlParams:{database:`projects/${this.databaseId.projectId}/databases/${this.databaseId.database}`},sendRawJson:!0,supportsCrossDomainXhr:!0,internalChannelParams:{forwardChannelRequestTimeoutMs:6e5},forceLongPolling:this.forceLongPolling,detectBufferingProxy:this.autoDetectLongPolling},c=this.longPollingOptions.timeoutSeconds;c!==void 0&&(s.longPollingTimeout=Math.round(1e3*c)),this.useFetchStreams&&(s.useFetchStreams=!0),this.Oo(s.initMessageHeaders,t,n),s.encodeInitMessageHeaders=!0;let l=i.join(``);U(gS,`Creating RPC '${e}' stream ${r}: ${l}`,s);let u=a.createWebChannel(l,s),d=!1,f=!1,p=new hS({Io:t=>{f?U(gS,`Not sending because RPC '${e}' stream ${r} is closed:`,t):(d||=(U(gS,`Opening RPC '${e}' stream ${r} transport.`),u.open(),!0),U(gS,`RPC '${e}' stream ${r} sending:`,t),u.send(t))},To:()=>u.close()}),m=(e,t,n)=>{e.listen(t,(e=>{try{n(e)}catch(e){setTimeout((()=>{throw e}),0)}}))};return m(u,r_.EventType.OPEN,(()=>{f||(U(gS,`RPC '${e}' stream ${r} transport opened.`),p.yo())})),m(u,r_.EventType.CLOSE,(()=>{f||(f=!0,U(gS,`RPC '${e}' stream ${r} transport closed`),p.So())})),m(u,r_.EventType.ERROR,(t=>{f||(f=!0,g_(gS,`RPC '${e}' stream ${r} transport errored:`,t),p.So(new K(G.UNAVAILABLE,`The operation could not be completed`)))})),m(u,r_.EventType.MESSAGE,(t=>{if(!f){let n=t.data[0];v_(!!n);let i=n,a=i.error||i[0]?.error;if(a){U(gS,`RPC '${e}' stream ${r} received error:`,a);let t=a.status,n=function(e){let t=Cb[e];if(t!==void 0)return Eb(t)}(t),i=a.message;n===void 0&&(n=G.INTERNAL,i=`Unknown error status: `+t+` with message `+a.message),f=!0,p.So(new K(n,i)),u.close()}else U(gS,`RPC '${e}' stream ${r} received:`,n),p.bo(n)}})),m(o,s_.STAT_EVENT,(t=>{t.stat===o_.PROXY?U(gS,`RPC '${e}' stream ${r}
19 detected buffering proxy`):t.stat===o_.NOPROXY&&U(gS,`RPC '${e}' stream ${r} detected no buffering proxy`)})),setTimeout((()=>{p.wo()}),0),p}};function vS(){return typeof document<`u`?document:null}function yS(e){return new Kb(e,!0)}var bS=class{constructor(e,t,n=1e3,r=1.5,i=6e4){this.ui=e,this.timerId=t,this.ko=n,this.qo=r,this.Qo=i,this.Ko=0,this.$o=null,this.Uo=Date.now(),this.reset()}reset(){this.Ko=0}Wo(){this.Ko=this.Qo}Go(e){this.cancel();let t=Math.floor(this.Ko+this.zo()),n=Math.max(0,Date.now()-this.Uo),r=Math.max(0,t-n);r>0&&U(`ExponentialBackoff`,`Backing off for ${r} ms (base delay: ${this.Ko} ms, delay with jitter: ${t} ms, last attempt: ${n} ms ago)`),this.$o=this.ui.enqueueAfterDelay(this.timerId,r,(()=>(this.Uo=Date.now(),e()))),this.Ko*=this.qo,this.Ko<this.ko&&(this.Ko=this.ko),this.Ko>this.Qo&&(this.Ko=this.Qo)}jo(){this.$o!==null&&(this.$o.skipDelay(),this.$o=null)}cancel(){this.$o!==null&&(this.$o.cancel(),this.$o=null)}zo(){return(Math.random()-.5)*this.Ko}},xS=class{constructor(e,t,n,r,i,a,o,s){this.ui=e,this.Ho=n,this.Jo=r,this.connection=i,this.authCredentialsProvider=a,this.appCheckCredentialsProvider=o,this.listener=s,this.state=0,this.Yo=0,this.Zo=null,this.Xo=null,this.stream=null,this.e_=0,this.t_=new bS(e,t)}n_(){return this.state===1||this.state===5||this.r_()}r_(){return this.state===2||this.state===3}start(){this.e_=0,this.state===4?this.i_():this.auth()}async stop(){this.n_()&&await this.close(0)}s_(){this.state=0,this.t_.reset()}o_(){this.r_()&&this.Zo===null&&(this.Zo=this.ui.enqueueAfterDelay(this.Ho,6e4,(()=>this.__())))}a_(e){this.u_(),this.stream.send(e)}async __(){if(this.r_())return this.close(0)}u_(){this.Zo&&=(this.Zo.cancel(),null)}c_(){this.Xo&&=(this.Xo.cancel(),null)}async close(e,t){this.u_(),this.c_(),this.t_.cancel(),this.Yo++,e===4?t&&t.code===G.RESOURCE_EXHAUSTED?(h_(t.toString()),h_(`Using maximum backoff delay to prevent overloading the backend.`),this.t_.Wo()):t&&t.code===G.UNAUTHENTICATED&&this.state!==3&&(this.authCredentialsProvider.invalidateToken(),this.appCheckCredentialsProvider.invalidateToken()):this.t_.reset(),this.stream!==null&&(this.l_(),this.stream.close(),this.stream=null),this.state=e,await this.listener.mo(t)}l_(){}auth(){this.state=1;let e=this.h_(this.Yo),t=this.Yo;Promise.all([this.authCredentialsProvider.getToken(),this.appCheckCredentialsProvider.getToken()]).then((([e,n])=>{this.Yo===t&&this.P_(e,n)}),(t=>{e((()=>{let e=new K(G.UNKNOWN,`Fetching auth token failed: `+t.message);return this.I_(e)}))}))}P_(e,t){let n=this.h_(this.Yo);this.stream=this.T_(e,t),this.stream.Eo((()=>{n((()=>this.listener.Eo()))})),this.stream.Ro((()=>{n((()=>(this.state=2,this.Xo=this.ui.enqueueAfterDelay(this.Jo,1e4,(()=>(this.r_()&&(this.state=3),Promise.resolve()))),this.listener.Ro())))})),this.stream.mo((e=>{n((()=>this.I_(e)))})),this.stream.onMessage((e=>{n((()=>++this.e_==1?this.E_(e):this.onNext(e)))}))}i_(){this.state=5,this.t_.Go((async()=>{this.state=0,this.start()}))}I_(e){return U(`PersistentStream`,`close with error: ${e}`),this.stream=null,this.close(4,e)}h_(e){return t=>{this.ui.enqueueAndForget((()=>this.Yo===e?t():(U(`PersistentStream`,`stream callback skipped by getCloseGuardedDispatcher.`),Promise.resolve())))}}},SS=class extends xS{constructor(e,t,n,r,i,a){super(e,`listen_stream_connection_backoff`,`listen_stream_idle`,`health_check_timeout`,t,n,r,a),this.serializer=i}T_(e,t){return this.connection.Bo(`Listen`,e,t)}E_(e){return this.onNext(e)}onNext(e){this.t_.reset();let t=cx(this.serializer,e),n=function(e){if(!(`targetChange`in e))return P_.min();let t=e.targetChange;return t.targetIds&&t.targetIds.length?P_.min():t.readTime?Zb(t.readTime):P_.min()}(e);return this.listener.d_(t,n)}A_(e){let t={};t.database=ax(this.serializer),t.addTarget=function(e,t){let n,r=t.target;if(n=uy(r)?{documents:dx(e,r)}:{query:fx(e,r)._t},n.targetId=t.targetId,t.resumeToken.approximateByteSize()>0){n.resumeToken=Yb(e,t.resumeToken);let r=qb(e,t.expectedCount);r!==null&&(n.expectedCount=r)}else if(t.snapshotVersion.compareTo(P_.min())>0){n.readTime=Jb(e,t.snapshotVersion.toTimestamp());let r=qb(e,t.expectedCount);r!==null&&(n.expectedCount=r)}return n}(this.serializer,e);let n=mx(this.serializer,e);n&&(t.labels=n),this.a_(t)}R_(e){let t={};t.database=ax(this.serializer),t.removeTarget=e,this.a_(t)}},CS=class extends xS{constructor(e,t,n,r,i,a){super(e,`write_stream_connection_backoff`,`write_stream_idle`,`health_check_timeout`,t,n,r,a),this.serializer
19=i}get V_(){return this.e_>0}start(){this.lastStreamToken=void 0,super.start()}l_(){this.V_&&this.m_([])}T_(e,t){return this.connection.Bo(`Write`,e,t)}E_(e){return v_(!!e.streamToken),this.lastStreamToken=e.streamToken,v_(!e.writeResults||e.writeResults.length===0),this.listener.f_()}onNext(e){v_(!!e.streamToken),this.lastStreamToken=e.streamToken,this.t_.reset();let t=ux(e.writeResults,e.commitTime),n=Zb(e.commitTime);return this.listener.g_(n,t)}p_(){let e={};e.database=ax(this.serializer),this.a_(e)}m_(e){let t={streamToken:this.lastStreamToken,writes:e.map((e=>lx(this.serializer,e)))};this.a_(t)}},wS=class extends class{}{constructor(e,t,n,r){super(),this.authCredentials=e,this.appCheckCredentials=t,this.connection=n,this.serializer=r,this.y_=!1}w_(){if(this.y_)throw new K(G.FAILED_PRECONDITION,`The client has already been terminated.`)}Mo(e,t,n,r){return this.w_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then((([i,a])=>this.connection.Mo(e,$b(t,n),r,i,a))).catch((e=>{throw e.name===`FirebaseError`?(e.code===G.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),e):new K(G.UNKNOWN,e.toString())}))}Lo(e,t,n,r,i){return this.w_(),Promise.all([this.authCredentials.getToken(),this.appCheckCredentials.getToken()]).then((([a,o])=>this.connection.Lo(e,$b(t,n),r,a,o,i))).catch((e=>{throw e.name===`FirebaseError`?(e.code===G.UNAUTHENTICATED&&(this.authCredentials.invalidateToken(),this.appCheckCredentials.invalidateToken()),e):new K(G.UNKNOWN,e.toString())}))}terminate(){this.y_=!0,this.connection.terminate()}},TS=class{constructor(e,t){this.asyncQueue=e,this.onlineStateHandler=t,this.state=`Unknown`,this.S_=0,this.b_=null,this.D_=!0}v_(){this.S_===0&&(this.C_(`Unknown`),this.b_=this.asyncQueue.enqueueAfterDelay(`online_state_timeout`,1e4,(()=>(this.b_=null,this.F_(`Backend didn't respond within 10 seconds.`),this.C_(`Offline`),Promise.resolve()))))}M_(e){this.state===`Online`?this.C_(`Unknown`):(this.S_++,this.S_>=1&&(this.x_(),this.F_(`Connection failed 1 times. Most recent error: ${e.toString()}`),this.C_(`Offline`)))}set(e){this.x_(),this.S_=0,e===`Online`&&(this.D_=!1),this.C_(e)}C_(e){e!==this.state&&(this.state=e,this.onlineStateHandler(e))}F_(e){let t=`Could not reach Cloud Firestore backend. ${e}\nThis typically indicates that your device does not have a healthy Internet connection at the moment. The client will operate in offline mode until it is able to successfully connect to the backend.`;this.D_?(h_(t),this.D_=!1):U(`OnlineStateTracker`,t)}x_(){this.b_!==null&&(this.b_.cancel(),this.b_=null)}},ES=class{constructor(e,t,n,r,i){this.localStore=e,this.datastore=t,this.asyncQueue=n,this.remoteSyncer={},this.O_=[],this.N_=new Map,this.L_=new Set,this.B_=[],this.k_=i,this.k_._o((e=>{n.enqueueAndForget((async()=>{FS(this)&&(U(`RemoteStore`,`Restarting streams for network reachability change.`),await async function(e){let t=y_(e);t.L_.add(4),await OS(t),t.q_.set(`Unknown`),t.L_.delete(4),await DS(t)}(this))}))})),this.q_=new TS(n,r)}};async function DS(e){if(FS(e))for(let t of e.B_)await t(!0)}async function OS(e){for(let t of e.B_)await t(!1)}function kS(e,t){let n=y_(e);n.N_.has(t.targetId)||(n.N_.set(t.targetId,t),PS(n)?NS(n):eC(n).r_()&&jS(n,t))}function AS(e,t){let n=y_(e),r=eC(n);n.N_.delete(t),r.r_()&&MS(n,t),n.N_.size===0&&(r.r_()?r.o_():FS(n)&&n.q_.set(`Unknown`))}function jS(e,t){if(e.Q_.xe(t.targetId),t.resumeToken.approximateByteSize()>0||t.snapshotVersion.compareTo(P_.min())>0){let n=e.remoteSyncer.getRemoteKeysForTarget(t.targetId).size;t=t.withExpectedCount(n)}eC(e).A_(t)}function MS(e,t){e.Q_.xe(t),eC(e).R_(t)}function NS(e){e.Q_=new Bb({getRemoteKeysForTarget:t=>e.remoteSyncer.getRemoteKeysForTarget(t),ot:t=>e.N_.get(t)||null,tt:()=>e.datastore.serializer.databaseId}),eC(e).start(),e.q_.v_()}function PS(e){return FS(e)&&!eC(e).n_()&&e.N_.size>0}function FS(e){return y_(e).L_.size===0}function IS(e){e.Q_=void 0}async function LS(e){e.q_.set(`Online`)}async function RS(e){e.N_.forEach(((t,n)=>{jS(e,t)}))}async function zS(e,t){IS(e),PS(e)?(e.q_.M_(t),NS(e)):e.q_.set(`Unknown`)}async function BS(e,t,n){if(e.q_.set(`Online`),t instanceof Rb&&t.state===2&&t.cause)try{await async function(e,t){let n=t.cause;for(let r of t.targetIds)e.N_.has(r)&&(await e.remoteSyncer.rejectListen(r,n),e.N_.delete(r),e.Q_.removeTarget(r))}(e,t)}catch(n){U(`RemoteStore`,`Failed to remove targets %s: %s `,t.targetIds.join(`,`),n),await VS(e,n)}else if(t instanceof Ib?e.Q_.Ke(t):t instanceof Lb?e.Q_.He(t):e.Q_.We(t),!n.isEqual(P_.min()))try{let t=await eS(e.localStore);n.compareTo(t)>=0&&await function(e,t){let n=e.Q_.rt(t);
19return n.targetChanges.forEach(((n,r)=>{if(n.resumeToken.approximateByteSize()>0){let i=e.N_.get(r);i&&e.N_.set(r,i.withResumeToken(n.resumeToken,t))}})),n.targetMismatches.forEach(((t,n)=>{let r=e.N_.get(t);r&&(e.N_.set(t,r.withResumeToken(cv.EMPTY_BYTE_STRING,r.snapshotVersion)),MS(e,t),jS(e,new wx(r.target,t,n,r.sequenceNumber)))})),e.remoteSyncer.applyRemoteEvent(n)}(e,n)}catch(t){U(`RemoteStore`,`Failed to raise snapshot:`,t),await VS(e,t)}}async function VS(e,t,n){if(!q_(t))throw t;e.L_.add(1),await OS(e),e.q_.set(`Offline`),n||=()=>eS(e.localStore),e.asyncQueue.enqueueRetryable((async()=>{U(`RemoteStore`,`Retrying IndexedDB access`),await n(),e.L_.delete(1),await DS(e)}))}function HS(e,t){return t().catch((n=>VS(e,n,t)))}async function US(e){let t=y_(e),n=tC(t),r=t.O_.length>0?t.O_[t.O_.length-1].batchId:-1;for(;WS(t);)try{let e=await rS(t.localStore,r);if(e===null){t.O_.length===0&&n.o_();break}r=e.batchId,GS(t,e)}catch(e){await VS(t,e)}KS(t)&&qS(t)}function WS(e){return FS(e)&&e.O_.length<10}function GS(e,t){e.O_.push(t);let n=tC(e);n.r_()&&n.V_&&n.m_(t.mutations)}function KS(e){return FS(e)&&!tC(e).n_()&&e.O_.length>0}function qS(e){tC(e).start()}async function JS(e){tC(e).p_()}async function YS(e){let t=tC(e);for(let n of e.O_)t.m_(n.mutations)}async function XS(e,t,n){let r=e.O_.shift(),i=bb.from(r,t,n);await HS(e,(()=>e.remoteSyncer.applySuccessfulWrite(i))),await US(e)}async function ZS(e,t){t&&tC(e).V_&&await async function(e,t){if(function(e){return Tb(e)&&e!==G.ABORTED}(t.code)){let n=e.O_.shift();tC(e).s_(),await HS(e,(()=>e.remoteSyncer.rejectFailedWrite(n.batchId,t))),await US(e)}}(e,t),KS(e)&&qS(e)}async function QS(e,t){let n=y_(e);n.asyncQueue.verifyOperationInProgress(),U(`RemoteStore`,`RemoteStore received new credentials`);let r=FS(n);n.L_.add(3),await OS(n),r&&n.q_.set(`Unknown`),await n.remoteSyncer.handleCredentialChange(t),n.L_.delete(3),await DS(n)}async function $S(e,t){let n=y_(e);t?(n.L_.delete(2),await DS(n)):t||(n.L_.add(2),await OS(n),n.q_.set(`Unknown`))}function eC(e){return e.K_||(e.K_=function(e,t,n){let r=y_(e);return r.w_(),new SS(t,r.connection,r.authCredentials,r.appCheckCredentials,r.serializer,n)}(e.datastore,e.asyncQueue,{Eo:LS.bind(null,e),Ro:RS.bind(null,e),mo:zS.bind(null,e),d_:BS.bind(null,e)}),e.B_.push((async t=>{t?(e.K_.s_(),PS(e)?NS(e):e.q_.set(`Unknown`)):(await e.K_.stop(),IS(e))}))),e.K_}function tC(e){return e.U_||(e.U_=function(e,t,n){let r=y_(e);return r.w_(),new CS(t,r.connection,r.authCredentials,r.appCheckCredentials,r.serializer,n)}(e.datastore,e.asyncQueue,{Eo:()=>Promise.resolve(),Ro:JS.bind(null,e),mo:ZS.bind(null,e),f_:YS.bind(null,e),g_:XS.bind(null,e)}),e.B_.push((async t=>{t?(e.U_.s_(),await US(e)):(await e.U_.stop(),e.O_.length>0&&(U(`RemoteStore`,`Stopping write stream with ${e.O_.length} pending writes`),e.O_=[]))}))),e.U_}var nC=class e{constructor(e,t,n,r,i){this.asyncQueue=e,this.timerId=t,this.targetTimeMs=n,this.op=r,this.removalCallback=i,this.deferred=new b_,this.then=this.deferred.promise.then.bind(this.deferred.promise),this.deferred.promise.catch((e=>{}))}get promise(){return this.deferred.promise}static createAndSchedule(t,n,r,i,a){let o=Date.now()+r,s=new e(t,n,o,i,a);return s.start(r),s}start(e){this.timerHandle=setTimeout((()=>this.handleDelayElapsed()),e)}skipDelay(){return this.handleDelayElapsed()}cancel(e){this.timerHandle!==null&&(this.clearTimeout(),this.deferred.reject(new K(G.CANCELLED,`Operation cancelled`+(e?`: `+e:``))))}handleDelayElapsed(){this.asyncQueue.enqueueAndForget((()=>this.timerHandle===null?Promise.resolve():(this.clearTimeout(),this.op().then((e=>this.deferred.resolve(e))))))}clearTimeout(){this.timerHandle!==null&&(this.removalCallback(this),clearTimeout(this.timerHandle),this.timerHandle=null)}};function rC(e,t){if(h_(`AsyncQueue`,`${t}: ${e}`),q_(e))return new K(G.UNAVAILABLE,`${t}: ${e}`);throw e}var iC=class e{constructor(e){this.comparator=e?(t,n)=>e(t,n)||q.comparator(t.key,n.key):(e,t)=>q.comparator(e.key,t.key),this.keyedMap=jy(),this.sortedSet=new tv(this.comparator)}static emptySet(t){return new e(t.comparator)}has(e){return this.keyedMap.get(e)!=null}get(e){return this.keyedMap.get(e)}first(){return this.sortedSet.minKey()}last(){return this.sortedSet.maxKey()}isEmpty(){return this.sortedSet.isEmpty()}indexOf(e){let t=this.keyedMap.get(e);return t?this.sortedSet.indexOf(t):-1}get size(){return this.sortedSet.size}forEach(e){this.sortedSet.inorderTraversal(((t,n)=>(e(t),!1)))}add(e){let t=this.delete(e.key);return t.copy(t.keyedMap.insert(e.key,e),t.sortedSet.insert(e,null))}delete(e){let t=this.get(e);return t?this.copy(this.keyedMap.remove(e),this.sortedSet.remove(t)):this}isEqual(t){if(!(t instanceof e)||this.size!==t.size)return!1;let n=this.sortedSet.getIterator(),r=t.sortedSet.getIterator();for(;n.hasNext();){let e=n.getNext().key,t=r.getNext().key;if(!e.isEqual(t))return!1}return!0}toString(){let e=[];return this.forEach((t=>{e.push(t.toString())})),e.length===0?`DocumentSet ()`:`DocumentSet (
20  `+e.join(`  
21`)+`
22)`}copy(t,n){let r=new e;return r.comparator=this.comparator,r.keyedMap=t,r.sortedSet=n,r}}
22,aC=class{constructor(){this.W_=new tv(q.comparator)}track(e){let t=e.doc.key,n=this.W_.get(t);n?e.type!==0&&n.type===3?this.W_=this.W_.insert(t,e):e.type===3&&n.type!==1?this.W_=this.W_.insert(t,{type:n.type,doc:e.doc}):e.type===2&&n.type===2?this.W_=this.W_.insert(t,{type:2,doc:e.doc}):e.type===2&&n.type===0?this.W_=this.W_.insert(t,{type:0,doc:e.doc}):e.type===1&&n.type===0?this.W_=this.W_.remove(t):e.type===1&&n.type===2?this.W_=this.W_.insert(t,{type:1,doc:n.doc}):e.type===0&&n.type===1?this.W_=this.W_.insert(t,{type:2,doc:e.doc}):W():this.W_=this.W_.insert(t,e)}G_(){let e=[];return this.W_.inorderTraversal(((t,n)=>{e.push(n)})),e}},oC=class e{constructor(e,t,n,r,i,a,o,s,c){this.query=e,this.docs=t,this.oldDocs=n,this.docChanges=r,this.mutatedKeys=i,this.fromCache=a,this.syncStateChanged=o,this.excludesMetadataChanges=s,this.hasCachedResults=c}static fromInitialDocuments(t,n,r,i,a){let o=[];return n.forEach((e=>{o.push({type:0,doc:e})})),new e(t,n,iC.emptySet(n),o,r,i,!0,!1,a)}get hasPendingWrites(){return!this.mutatedKeys.isEmpty()}isEqual(e){if(!(this.fromCache===e.fromCache&&this.hasCachedResults===e.hasCachedResults&&this.syncStateChanged===e.syncStateChanged&&this.mutatedKeys.isEqual(e.mutatedKeys)&&by(this.query,e.query)&&this.docs.isEqual(e.docs)&&this.oldDocs.isEqual(e.oldDocs)))return!1;let t=this.docChanges,n=e.docChanges;if(t.length!==n.length)return!1;for(let e=0;e<t.length;e++)if(t[e].type!==n[e].type||!t[e].doc.isEqual(n[e].doc))return!1;return!0}},sC=class{constructor(){this.z_=void 0,this.j_=[]}H_(){return this.j_.some((e=>e.J_()))}},cC=class{constructor(){this.queries=lC(),this.onlineState=`Unknown`,this.Y_=new Set}terminate(){(function(e,t){let n=y_(e),r=n.queries;n.queries=lC(),r.forEach(((e,n)=>{for(let e of n.j_)e.onError(t)}))})(this,new K(G.ABORTED,`Firestore shutting down`))}};function lC(){return new Dy((e=>xy(e)),by)}async function uC(e,t){let n=y_(e),r=3,i=t.query,a=n.queries.get(i);a?!a.H_()&&t.J_()&&(r=2):(a=new sC,r=+!t.J_());try{switch(r){case 0:a.z_=await n.onListen(i,!0);break;case 1:a.z_=await n.onListen(i,!1);break;case 2:await n.onFirstRemoteStoreListen(i)}}catch(e){let n=rC(e,`Initialization of query '${Sy(t.query)}' failed`);t.onError(n);return}n.queries.set(i,a),a.j_.push(t),t.Z_(n.onlineState),a.z_&&t.X_(a.z_)&&mC(n)}async function dC(e,t){let n=y_(e),r=t.query,i=3,a=n.queries.get(r);if(a){let e=a.j_.indexOf(t);e>=0&&(a.j_.splice(e,1),a.j_.length===0?i=+!t.J_():!a.H_()&&t.J_()&&(i=2))}switch(i){case 0:return n.queries.delete(r),n.onUnlisten(r,!0);case 1:return n.queries.delete(r),n.onUnlisten(r,!1);case 2:return n.onLastRemoteStoreUnlisten(r);default:return}}function fC(e,t){let n=y_(e),r=!1;for(let e of t){let t=e.query,i=n.queries.get(t);if(i){for(let t of i.j_)t.X_(e)&&(r=!0);i.z_=e}}r&&mC(n)}function pC(e,t,n){let r=y_(e),i=r.queries.get(t);if(i)for(let e of i.j_)e.onError(n);r.queries.delete(t)}function mC(e){e.Y_.forEach((e=>{e.next()}))}var hC,gC;(gC=hC||={}).ea=`default`,gC.Cache=`cache`;var _C=class{constructor(e,t,n){this.query=e,this.ta=t,this.na=!1,this.ra=null,this.onlineState=`Unknown`,this.options=n||{}}X_(e){if(!this.options.includeMetadataChanges){let t=[];for(let n of e.docChanges)n.type!==3&&t.push(n);e=new oC(e.query,e.docs,e.oldDocs,t,e.mutatedKeys,e.fromCache,e.syncStateChanged,!0,e.hasCachedResults)}let t=!1;return this.na?this.ia(e)&&(this.ta.next(e),t=!0):this.sa(e,this.onlineState)&&(this.oa(e),t=!0),this.ra=e,t}onError(e){this.ta.error(e)}Z_(e){this.onlineState=e;let t=!1;return this.ra&&!this.na&&this.sa(this.ra,e)&&(this.oa(this.ra),t=!0),t}sa(e,t){if(!e.fromCache||!this.J_())return!0;let n=t!==`Offline`;return(!this.options._a||!n)&&(!e.docs.isEmpty()||e.hasCachedResults||t===`Offline`)}ia(e){if(e.docChanges.length>0)return!0;let t=this.ra&&this.ra.hasPendingWrites!==e.hasPendingWrites;return!(!e.syncStateChanged&&!t)&&!0===this.options.includeMetadataChanges}oa(e){e=oC.fromInitialDocuments(e.query,e.docs,e.mutatedKeys,e.fromCache,e.hasCachedResults),this.na=!0,this.ta.next(e)}J_(){return this.options.source!==hC.Cache}},vC=class{constructor(e){this.key=e}},yC=class{constructor(e){this.key=e}},bC=class{constructor(e,t){this.query=e,this.Ta=t,this.Ea=null,this.hasCachedResults=!1,this.current=!1,this.da=Ry(),this.mutatedKeys=Ry(),this.Aa=Ty(e),this.Ra=new iC(this.Aa)}get Va(){return this.Ta}ma(e,t){let n=t?t.fa:new aC,r=t?t.Ra:this.Ra,i=t?t.mutatedKeys:this.mutatedKeys,a=r,o=!1,s=this.query.limitType===`F`&&r.size===this.query.limit?r.last():null,c=this.query.limitType===`L`&&r.size===this.query.limit?r.first():null;if(e.inorderTraversal(((e,t)=>{let l=r.get(e),u=Cy(this.query,t)?t:null,d=!!l&&this.mutatedKeys.has(l.key),f=!!u&&(u.hasLocalMutations||this.mutatedKeys.has(u.key)&&u.hasCommittedMutations),p=!1;l&&u?l.data.isEqual(u.data)?d!==f&&(n.track({type:3,doc:u}),p=!0):this.ga(l,u)||(n.track({type:2,doc:u}),p=!0,(s&&this.Aa(u,s)>0||c&&this.Aa(u,c)<0)&&(o=!0)):!l&&u?(n.track({type:0,doc:u}),p=!0):l&&!u&&(n.track({type:1,doc:l}
22),p=!0,(s||c)&&(o=!0)),p&&(u?(a=a.add(u),i=f?i.add(e):i.delete(e)):(a=a.delete(e),i=i.delete(e)))})),this.query.limit!==null)for(;a.size>this.query.limit;){let e=this.query.limitType===`F`?a.last():a.first();a=a.delete(e.key),i=i.delete(e.key),n.track({type:1,doc:e})}return{Ra:a,fa:n,ns:o,mutatedKeys:i}}ga(e,t){return e.hasLocalMutations&&t.hasCommittedMutations&&!t.hasLocalMutations}applyChanges(e,t,n,r){let i=this.Ra;this.Ra=e.Ra,this.mutatedKeys=e.mutatedKeys;let a=e.fa.G_();a.sort(((e,t)=>function(e,t){let n=e=>{switch(e){case 0:return 1;case 2:case 3:return 2;case 1:return 0;default:return W()}};return n(e)-n(t)}(e.type,t.type)||this.Aa(e.doc,t.doc))),this.pa(n),r=r!=null&&r;let o=t&&!r?this.ya():[],s=this.da.size===0&&this.current&&!r?1:0,c=s!==this.Ea;return this.Ea=s,a.length!==0||c?{snapshot:new oC(this.query,e.Ra,i,a,e.mutatedKeys,s===0,c,!1,!!n&&n.resumeToken.approximateByteSize()>0),wa:o}:{wa:o}}Z_(e){return this.current&&e===`Offline`?(this.current=!1,this.applyChanges({Ra:this.Ra,fa:new aC,mutatedKeys:this.mutatedKeys,ns:!1},!1)):{wa:[]}}Sa(e){return!this.Ta.has(e)&&!!this.Ra.has(e)&&!this.Ra.get(e).hasLocalMutations}pa(e){e&&(e.addedDocuments.forEach((e=>this.Ta=this.Ta.add(e))),e.modifiedDocuments.forEach((e=>{})),e.removedDocuments.forEach((e=>this.Ta=this.Ta.delete(e))),this.current=e.current)}ya(){if(!this.current)return[];let e=this.da;this.da=Ry(),this.Ra.forEach((e=>{this.Sa(e.key)&&(this.da=this.da.add(e.key))}));let t=[];return e.forEach((e=>{this.da.has(e)||t.push(new yC(e))})),this.da.forEach((n=>{e.has(n)||t.push(new vC(n))})),t}ba(e){this.Ta=e.Ts,this.da=Ry();let t=this.ma(e.documents);return this.applyChanges(t,!0)}Da(){return oC.fromInitialDocuments(this.query,this.Ra,this.mutatedKeys,this.Ea===0,this.hasCachedResults)}},xC=class{constructor(e,t,n){this.query=e,this.targetId=t,this.view=n}},SC=class{constructor(e){this.key=e,this.va=!1}},CC=class{constructor(e,t,n,r,i,a){this.localStore=e,this.remoteStore=t,this.eventManager=n,this.sharedClientState=r,this.currentUser=i,this.maxConcurrentLimboResolutions=a,this.Ca={},this.Fa=new Dy((e=>xy(e)),by),this.Ma=new Map,this.xa=new Set,this.Oa=new tv(q.comparator),this.Na=new Map,this.La=new Rx,this.Ba={},this.ka=new Map,this.qa=jx.kn(),this.onlineState=`Unknown`,this.Qa=void 0}get isPrimaryClient(){return!0===this.Qa}};async function wC(e,t,n=!0){let r=KC(e),i,a=r.Fa.get(t);return a?(r.sharedClientState.addLocalQueryTarget(a.targetId),i=a.view.Da()):i=await EC(r,t,n,!0),i}async function TC(e,t){await EC(KC(e),t,!0,!1)}async function EC(e,t,n,r){let i=await iS(e.localStore,_y(t)),a=i.targetId,o=e.sharedCl
22ientState.addLocalQueryTarget(a,n),s;return r&&(s=await DC(e,t,a,o===`current`,i.resumeToken)),e.isPrimaryClient&&n&&kS(e.remoteStore,i),s}async function DC(e,t,n,r,i){e.Ka=(t,n,r)=>async function(e,t,n,r){let i=t.view.ma(n);i.ns&&(i=await oS(e.localStore,t.query,!1).then((({documents:e})=>t.view.ma(e,i))));let a=r&&r.targetChanges.get(t.targetId),o=r&&r.targetMismatches.get(t.targetId)!=null,s=t.view.applyChanges(i,e.isPrimaryClient,a,o);return BC(e,t.targetId,s.wa),s.snapshot}(e,t,n,r);let a=await oS(e.localStore,t,!0),o=new bC(t,a.Ts),s=o.ma(a.documents),c=Fb.createSynthesizedTargetChangeForCurrentChange(n,r&&e.onlineState!==`Offline`,i),l=o.applyChanges(s,e.isPrimaryClient,c);BC(e,n,l.wa);let u=new xC(t,n,o);return e.Fa.set(t,u),e.Ma.has(n)?e.Ma.get(n).push(t):e.Ma.set(n,[t]),l.snapshot}async function OC(e,t,n){let r=y_(e),i=r.Fa.get(t),a=r.Ma.get(i.targetId);if(a.length>1)return r.Ma.set(i.targetId,a.filter((e=>!by(e,t)))),void r.Fa.delete(t);r.isPrimaryClient?(r.sharedClientState.removeLocalQueryTarget(i.targetId),r.sharedCl
22ientState.isActiveQueryTarget(i.targetId)||await aS(r.localStore,i.targetId,!1).then((()=>{r.sharedClientState.clearQueryState(i.targetId),n&&AS(r.remoteStore,i.targetId),RC(r,i.targetId)})).catch(G_)):(RC(r,i.targetId),await aS(r.localStore,i.targetId,!0))}async function kC(e,t){let n=y_(e),r=n.Fa.get(t),i=n.Ma.get(r.targetId);n.isPrimaryClient&&i.length===1&&(n.sharedClientState.removeLocalQueryTarget(r.targetId),AS(n.remoteStore,r.targetId))}async function AC(e,t,n){let r=qC(e);try{let e=await function(e,t){let n=y_(e),r=N_.now(),i=t.reduce(((e,t)=>e.add(t.key)),Ry()),a,o;return n.persistence.runTransaction(`Locally write mutations`,`readwrite`,(e=>{let s=ky(),c=Ry();return n.cs.getEntries(e,i).next((e=>{s=e,s.forEach(((e,t)=>{t.isValidDocument()||(c=c.add(e))}))})).next((()=>n.localDocuments.getOverlayedDocuments(e,s))).next((i=>{a=i;let o=[];for(let e of t){let t=ub(e,a.get(e.key).overlayedDocument);t!=null&&o.push(new pb(e.key,t,Iv(t.value.mapValue),ib.exists(!0)))}return n.mutationQueue.addMutationBatch(e,r,o,t)})).next((t=>{o=t;let r=t.applyToLocalDocumentSet(a,c);return n.documentOverlayCache.saveOverlays(e,t.batchId,r)}))})).then((()=>({batchId:o.batchId,changes:My(a)})))}(r.localStore,t);r.sharedClientState.addPendingMutation(e.batchId),function(e,t,n){let r=e.Ba[e.currentUser.toKey()];r||=new tv(j_),r=r.insert(t,n),e.Ba[e.currentUser.toKey()]=r}(r,e.batchId,n),await UC(r,e.changes),await US(r.remoteStore)}catch(e){let t=rC(e,`Failed to persist write`);n.reject(t)}}async function jC(e,t){let n=y_(e);try{let e=await tS(n.localStore,t);
22t.targetChanges.forEach(((e,t)=>{let r=n.Na.get(t);r&&(v_(e.addedDocuments.size+e.modifiedDocuments.size+e.removedDocuments.size<=1),e.addedDocuments.size>0?r.va=!0:e.modifiedDocuments.size>0?v_(r.va):e.removedDocuments.size>0&&(v_(r.va),r.va=!1))})),await UC(n,e,t)}catch(e){await G_(e)}}function MC(e,t,n){let r=y_(e);if(r.isPrimaryClient&&n===0||!r.isPrimaryClient&&n===1){let e=[];r.Fa.forEach(((n,r)=>{let i=r.view.Z_(t);i.snapshot&&e.push(i.snapshot)})),function(e,t){let n=y_(e);n.onlineState=t;let r=!1;n.queries.forEach(((e,n)=>{for(let e of n.j_)e.Z_(t)&&(r=!0)})),r&&mC(n)}(r.eventManager,t),e.length&&r.Ca.d_(e),r.onlineState=t,r.isPrimaryClient&&r.sharedClientState.setOnlineState(t)}}async function NC(e,t,n){let r=y_(e);r.sharedClientState.updateQueryState(t,`rejected`,n);let i=r.Na.get(t),a=i&&i.key;if(a){let e=new tv(q.comparator);e=e.insert(a,Lv.newNoDocument(a,P_.min()));let n=Ry().add(a);await jC(r,new Pb(P_.min(),new Map,new tv(j_),e,n)),r.Oa=r.Oa.remove(a),r.Na.delete(t),HC(r)}else await aS(r.localStore,t,!1).then((()=>RC(r,t,n))).catch(G_)}async function PC(e,t){let n=y_(e),r=t.batch.batchId;try{let e=await $x(n.localStore,t);LC(n,r,null),IC(n,r),n.sharedClientState.updateMutationState(r,`acknowledged`),await UC(n,e)}catch(e){await G_(e)}}async function FC(e,t,n){let r=y_(e);try{let e=await function(e,t){let n=y_(e);return n.persistence.runTransaction(`Reject batch`,`readwrite-primary`,(e=>{let r;
22return n.mutationQueue.lookupMutationBatch(e,t).next((t=>(v_(t!==null),r=t.keys(),n.mutationQueue.removeMutationBatch(e,t)))).next((()=>n.mutationQueue.performConsistencyCheck(e))).next((()=>n.documentOverlayCache.removeOverlaysForBatchId(e,r,t))).next((()=>n.localDocuments.recalculateAndSaveOverlaysForDocumentKeys(e,r))).next((()=>n.localDocuments.getDocuments(e,r)))}))}(r.localStore,t);LC(r,t,n),IC(r,t),r.sharedClientState.updateMutationState(t,`rejected`,n),await UC(r,e)}catch(e){await G_(e)}}function IC(e,t){(e.ka.get(t)||[]).forEach((e=>{e.resolve()})),e.ka.delete(t)}function LC(e,t,n){let r=y_(e),i=r.Ba[r.currentUser.toKey()];if(i){let e=i.get(t);e&&(n?e.reject(n):e.resolve(),i=i.remove(t)),r.Ba[r.currentUser.toKey()]=i}}function RC(e,t,n=null){e.sharedClientState.removeLocalQueryTarget(t);for(let r of e.Ma.get(t))e.Fa.delete(r),n&&e.Ca.$a(r,n);e.Ma.delete(t),e.isPrimaryClient&&e.La.gr(t).forEach((t=>{e.La.containsKey(t)||zC(e,t)}))}function zC(e,t){e.xa.delete(t.path.canonicalString());let n=e.Oa.get(t);n!==null&&(AS(e.remoteStore,n),e.Oa=e.Oa.remove(t),e.Na.delete(n),HC(e))}function BC(e,t,n){for(let r of n)r instanceof vC?(e.La.addReference(r.key,t),VC(e,r)):r instanceof yC?(U(`SyncEngine`,`Document no longer in limbo: `+r.key),e.La.removeReference(r.key,t),e.La.containsKey(r.key)||zC(e,r.key)):W()}function VC(e,t){let n=t.key,r=n.path.canonicalString();e.Oa.get(n)||e.xa.has(r)||(U(`SyncEngine`,`New document in limbo: `+n),e.xa.add(r),HC(e))}function HC(e){for(;e.xa.size>0&&e.Oa.size<e.maxConcurrentLimboResolutions;){let t=e.xa.values().next().value;e.xa.delete(t);let n=new q(I_.fromString(t)),r=e.qa.next();e.Na.set(r,new SC(n)),e.Oa=e.Oa.insert(n,r),kS(e.remoteStore,new wx(_y(py(n.path)),r,`TargetPurposeLimboResolution`,J_.oe))}}async function UC(e,t,n){let r=y_(e),i=[],a=[],o=[];r.Fa.isEmpty()||(r.Fa.forEach(((e,s)=>{o.push(r.Ka(s,t,n).then((e=>{if((e||n)&&r.isPrimaryClient){let t=e?!e.fromCache:n?.targetChanges.get(s.targetId)?.current;
22r.sharedClientState.updateQueryState(s.targetId,t?`current`:`not-current`)}if(e){i.push(e);let t=qx.Wi(s.targetId,e);a.push(t)}})))})),await Promise.all(o),r.Ca.d_(i),await async function(e,t){let n=y_(e);try{await n.persistence.runTransaction(`notifyLocalViewChanges`,`readwrite`,(e=>J.forEach(t,(t=>J.forEach(t.$i,(r=>n.persistence.referenceDelegate.addReference(e,t.targetId,r))).next((()=>J.forEach(t.Ui,(r=>n.persistence.referenceDelegate.removeReference(e,t.targetId,r)))))))))}catch(e){if(!q_(e))throw e;U(`LocalStore`,`Failed to update sequence numbers: `+e)}for(let e of t){let t=e.targetId;if(!e.fromCache){let e=n.os.get(t),r=e.snapshotVersion,i=e.withLastLimboFreeSnapshotVersion(r);n.os=n.os.insert(t,i)}}}(r.localStore,a))}async function WC(e,t){let n=y_(e);if(!n.currentUser.isEqual(t)){U(`SyncEngine`,`User change. New user:`,t.toKey());let e=await Qx(n.localStore,t);n.currentUser=t,function(e,t){e.ka.forEach((e=>{e.forEach((e=>{e.reject(new K(G.CANCELLED,t))}))})),e.ka.clear()}(n,`'waitForPendingWrites' promise is rejected due to a user change.`),n.sharedClientState.handleUserChange(t,e.removedBatchIds,e.addedBatchIds),await UC(n,e.hs)}}function GC(e,t){let n=y_(e),r=n.Na.get(t);if(r&&r.va)return Ry().add(r.key);{let e=Ry(),r=n.Ma.get(t);if(!r)return e;for(let t of r){let r=n.Fa.get(t);e=e.unionWith(r.view.Va)}return e}}function KC(e){let t=y_(e);return t.remoteStore.remoteSyncer.applyRemoteEvent=jC.bind(null,t),t.remoteStore.remoteSyncer.getRemoteKeysForTarget=GC.bind(null,t),t.remoteStore.remoteSyncer.rejectListen=NC.bind(null,t),t.Ca.d_=fC.bind(null,t.eventManager),t.Ca.$a=pC.bind(null,t.eventManager),t}function qC(e){let t=y_(e);return t.remoteStore.remoteSyncer.applySuccessfulWrite=PC.bind(null,t),t.remoteStore.remoteSyncer.rejectFailedWrite=FC.bind(null,t),t}var JC=class{constructor(){this.kind=`memory`,this.synchronizeTabs=!1}async initialize(e){this.serializer=yS(e.databaseInfo.databaseId),this.sharedClientState=this.Wa(e),this.persistence=this.Ga(e),await this.persistence.start(),this.localStore=this.za(e),this.gcScheduler=this.ja(e,this.localStore),this.indexBackfillerScheduler=this.Ha(e,this.localStore)}ja(e,t){return null}Ha(e,t){return null}za(e){return Zx(this.persistence,new Yx,e.initialUser,this.serializer)}Ga(e){return new Wx(Kx.Zr,this.serializer)}Wa(e){return new lS}async terminate(){var e,t;(e=this.gcScheduler)==null||e.stop(),(t=this.indexBackfillerScheduler)==null||t.stop(),this.sharedClientState.shutdown(),await this.persistence.shutdown()}};JC.provider={build:()=>new JC};var YC=class{async initialize(e,t){this.localStore||(this.localStore=e.localStore,this.sharedClientState=e.sharedClientState,this.datastore=this.createDatastore(t),this.remoteStore=this.createRemoteStore(t),this.eventManager=this.createEventManager(t),this.syncEngine=this.createSyncEngine(t,!e.synchronizeTabs),this.sharedClientState.onlineStateHandler=e=>MC(this.syncEngine,e,1),this.remoteStore.remoteSyncer.handleCredentialChange=WC.bind(null,this.syncEngine),await $S(this.remoteStore,this.syncEngine.isPrimaryClient))}createEventManager(e){return function(){return new cC}()}createDatastore(e){let t=yS(e.databaseInfo.databaseId),n=function(e){return new _S(e)}(e.databaseInfo);return function(e,t,n,r){return new wS(e,t,n,r)}(e.authCredentials,e.appCheckCredentials,n,t)}createRemoteStore(e){return function(e,t,n,r,i){return new ES(e,t,n,r,i)}(this.localStore,this.datastore,e.asyncQueue,(e=>MC(this.syncEngine,e,0)),function(){return dS.D()?new dS:new uS}())}createSyncEngine(e,t){return function(e,t,n,r,i,a,o){let s=new CC(e,t,n,r,i,a);return o&&(s.Qa=!0),s}(this.localStore,this.remoteStore,this.eventManager,this.sharedClientState,e.initialUser,e.maxConcurrentLimboResolutions,t)}async terminate(){var e,t;await async function(e){let t=y_(e);U(`RemoteStore`,`RemoteStore shutting down.`),t.L_.add(5),await OS(t),t.k_.shutdown(),t.q_.set(`Unknown`)}(this.remoteStore),(e=this.datastore)==null||e.terminate(),(t=this.eventManager)==null||t.terminate()}};YC.provider={build:()=>new YC};var XC=class{constructor(e){this.observer=e,this.muted=!1}next(e){this.muted||this.observer.next&&this.Ya(this.observer.next,e)}error(e){this.muted||(this.observer.error?this.Ya(this.observer.error,e):h_(`Uncaught Error in snapshot listener:`,e.toString()))}Za(){this.muted=!0}
22Ya(e,t){setTimeout((()=>{this.muted||e(t)}),0)}},ZC=class{constructor(e,t,n,r,i){this.authCredentials=e,this.appCheckCredentials=t,this.asyncQueue=n,this.databaseInfo=r,this.user=d_.UNAUTHENTICATED,this.clientId=A_.newId(),this.authCredentialListener=()=>Promise.resolve(),this.appCheckCredentialListener=()=>Promise.resolve(),this._uninitializedComponentsProvider=i,this.authCredentials.start(n,(async e=>{U(`FirestoreClient`,`Received user=`,e.uid),await this.authCredentialListener(e),this.user=e})),this.appCheckCredentials.start(n,(e=>(U(`FirestoreClient`,`Received new app check token=`,e),this.appCheckCredentialListener(e,this.user))))}get configuration(){return{asyncQueue:this.asyncQueue,databaseInfo:this.databaseInfo,clientId:this.clientId,authCredentials:this.authCredentials,appCheckCredentials:this.appCheckCredentials,initialUser:this.user,maxConcurrentLimboResolutions:100}}setCredentialChangeListener(e){this.authCredentialListener=e}setAppCheckTokenChangeListener(e){this.appCheckCredentialListener=e}terminate(){this.asyncQueue.enterRestrictedMode();let e=new b_;return this.asyncQueue.enqueueAndForgetEvenWhileRestricted((async()=>{try{this._onlineComponents&&await this._onlineComponents.terminate(),this._offlineComponents&&await this._offlineComponents.terminate(),this.authCredentials.shutdown(),this.appCheckCredentials.shutdown(),e.resolve()}catch(t){let n=rC(t,`Failed to shutdown persistence`);e.reject(n)}})),e.promise}};async function QC(e,t){e.asyncQueue.verifyOperationInProgress(),U(`FirestoreClient`,`Initializing OfflineComponentProvider`);let n=e.configuration;await t.initialize(n);let r=n.initialUser;e.setCredentialChangeListener((async e=>{r.isEqual(e)||(await Qx(t.localStore,e),r=e)})),t.persistence.setDatabaseDeletedListener((()=>e.terminate())),e._offlineComponents=t}async function $C(e,t){e.asyncQueue.verifyOperationInProgress();let n=await ew(e);U(`FirestoreClient`,`Initializing OnlineComponentProvider`),await t.initialize(n,e.configuration),e.setCredentialChangeListener((e=>QS(t.remoteStore,e))),e.setAppCheckTokenChangeListener(((e,n)=>QS(t.remoteStore,n))),e._onlineComponents=t}async function ew(e){if(!e._offlineComponents){if(e._uninitializedComponentsProvider){U(`FirestoreClient`,`Using user provided OfflineComponentProvider`);try{await QC(e,e._uninitializedComponentsProvider._offline)}catch(t){let n=t;if(!function(e){return e.name===`FirebaseError`?e.code===G.FAILED_PRECONDITION||e.code===G.UNIMPLEMENTED:!(typeof DOMException<`u`&&e instanceof DOMException)||e.code===22||e.code===20||e.code===11}(n))throw n;g_(`Error using user provided cache. Falling back to memory cache: `+n),await QC(e,new JC)}}else U(`FirestoreClient`,`Using default OfflineComponentProvider`),await QC(e,new JC)}return e._offlineComponents}async function tw(e){return e._onlineComponents||(e._uninitializedComponentsProvider?(U(`FirestoreClient`,`Using user provided OnlineComponentProvider`),await $C(e,e._uninitializedComponentsProvider._online)):(U(`FirestoreClient`,`Using default OnlineComponentProvider`),await $C(e,new YC))),e._onlineComponents}function nw(e){return tw(e).then((e=>e.syncEngine))}async function rw(e){let t=await tw(e),n=t.eventManager;return n.onListen=wC.bind(null,t.syncEngine),n.onUnlisten=OC.bind(null,t.syncEngine),n.onFirstRemoteStoreListen=TC.bind(null,t.syncEngine),n.onLastRemoteStoreUnlisten=kC.bind(null,t.syncEngine),n}function iw(e,t,n={}){let r=new b_;return e.asyncQueue.enqueueAndForget((async()=>function(e,t,n,r,i){let a=new XC({next:s=>{a.Za(),t.enqueueAndForget((()=>dC(e,o)));let c=s.docs.has(n);!c&&s.fromCache?i.reject(new K(G.UNAVAILABLE,`Failed to get document because the client is offline.`)):c&&s.fromCache&&r&&r.source===`server`?i.reject(new K(G.UNAVAILABLE,`Failed to get document from server. (However, this document does exist in the local cache. Run again without setting source to "server" to retrieve the cached document.)`)):i.resolve(s)},error:e=>i.reject(e)}),o=new _C(py(n.path),a,{includeMetadataChanges:!0,_a:!0});return uC(e,o)}(await rw(e),e.asyncQueue,t,n,r))),r.promise}function aw(e,t,n={}){let r=new b_;return e.asyncQueue.enqueueAndForget((async()=>function(e,t,n,r,i){let a=new XC({next:n=>{a.Za(),t.enqueueAndForget((()=>
22dC(e,o))),n.fromCache&&r.source===`server`?i.reject(new K(G.UNAVAILABLE,`Failed to get documents from server. (However, these documents may exist in the local cache. Run again without setting source to "server" to retrieve the cached documents.)`)):i.resolve(n)},error:e=>i.reject(e)}),o=new _C(n,a,{includeMetadataChanges:!0,_a:!0});return uC(e,o)}(await rw(e),e.asyncQueue,t,n,r))),r.promise}function ow(e){let t={};return e.timeoutSeconds!==void 0&&(t.timeoutSeconds=e.timeoutSeconds),t}var sw=new Map;function cw(e,t,n){if(!n)throw new K(G.INVALID_ARGUMENT,`Function ${e}() cannot be called with an empty ${t}.`)}function lw(e,t,n,r){if(!0===t&&!0===r)throw new K(G.INVALID_ARGUMENT,`${e} and ${n} cannot be used together.`)}function uw(e){if(!q.isDocumentKey(e))throw new K(G.INVALID_ARGUMENT,`Invalid document reference. Document references must have an even number of segments, but ${e} has ${e.length}.`)}function dw(e){if(q.isDocumentKey(e))throw new K(G.INVALID_ARGUMENT,`Invalid collection reference. Collection references must have an odd number of segments, but ${e} has ${e.length}.`)}function fw(e){if(e===void 0)return`undefined`;if(e===null)return`null`;if(typeof e==`string`)return e.length>20&&(e=`${e.substring(0,20)}...`),JSON.stringify(e);if(typeof e==`number`||typeof e==`boolean`)return``+e;if(typeof e==`object`){if(e instanceof Array)return`an array`;{let t=function(e){return e.constructor?e.constructor.name:null}(e);return t?`a custom ${t} object`:`an object`}}return typeof e==`function`?`a function`:W()}function pw(e,t){if(`_delegate`in e&&(e=e._delegate),!(e instanceof t)){if(t.name===e.constructor.name)throw new K(G.INVALID_ARGUMENT,`Type does not match the expected instance. Did you pass a reference from a different Firestore SDK?`);{let n=fw(e);throw new K(G.INVALID_ARGUMENT,`Expected type '${t.name}', but it was: ${n}`)}}return e}var mw=class{constructor(e){var t;if(e.host===void 0){if(e.ssl!==void 0)throw new K(G.INVALID_ARGUMENT,`Can't provide ssl option if host option is not set`);this.host=`firestore.googleapis.com`,this.ssl=!0}else this.host=e.host,this.ssl=(t=e.ssl)==null||t;if(this.credentials=e.credentials,this.ignoreUndefinedProperties=!!e.ignoreUndefinedProperties,this.localCache=e.localCache,e.cacheSizeBytes===void 0)this.cacheSizeBytes=41943040;else{if(e.cacheSizeBytes!==-1&&e.cacheSizeBytes<1048576)throw new K(G.INVALID_ARGUMENT,`cacheSizeBytes must be at least 1048576`);this.cacheSizeBytes=e.cacheSizeBytes}lw(`experimentalForceLongPolling`,e.experimentalForceLongPolling,`experimentalAutoDetectLongPolling`,e.experimentalAutoDetectLongPolling),this.experimentalForceLongPolling=!!e.experimentalForceLongPolling,this.experimentalAutoDetectLongPolling=this.experimentalForceLongPolling?!1:e.experimentalAutoDetectLongPolling===void 0||!!e.experimentalAutoDetectLongPolling,this.experimentalLongPollingOptions=ow(e.experimentalLongPollingOptions??{}),function(e){if(e.timeoutSeconds!==void 0){if(isNaN(e.timeoutSeconds))throw new K(G.INVALID_ARGUMENT,`invalid long polling timeout: ${e.timeoutSeconds} (must not be NaN)`);if(e.timeoutSeconds<5)throw new K(G.INVALID_ARGUMENT,`invalid long polling timeout: ${e.timeoutSeconds} (minimum allowed value is 5)`);if(e.timeoutSeconds>30)throw new K(G.INVALID_ARGUMENT,`invalid long polling timeout: ${e.timeoutSeconds} (maximum allowed value is 30)`)}}(this.experimentalLongPollingOptions),this.useFetchStreams=!!e.useFetchStreams}isEqual(e){return this.host===e.host&&this.ssl===e.ssl&&this.credentials===e.credentials&&this.cacheSizeBytes===e.cacheSizeBytes&&this.experimentalForceLongPolling===e.experimentalForceLongPolling&&this.experimentalAutoDetectLongPolling===e.experimentalAutoDetectLongPolling&&function(e,t){return e.timeoutSeconds===t.timeoutSeconds}(this.experimentalLongPollingOptions,e.experimentalLongPollingOptions)&&this.ignoreUndefinedProperties===e.ignoreUndefinedProperties&&this.useFetchStreams===e.useFetchStreams}},hw=class{constructor(e,t,n,r){this._authCredentials=e,this._appCheckCredentials=t,this._databaseId=n,this._app=r,this.type=`firestore-lite`,this._persistenceKey=`(lite)`,this._settings=new mw({}),this._settingsFrozen=!1,this._terminateTask=`notTerminated`}get app(){if(!this._app)throw new K(G.FAILED_PRECONDITION,`Firestore was not initialized using the Firebase SDK. 'app' is not available`);return this._app}get _initialized(){return this._settingsFrozen}get _terminated(){return this._terminateTask!==`notTerminated`}_setSettings(e){if(this._settingsFrozen)throw new K(G.FAILED_PRECONDITION,`Firestore has already been started and its settings can no longer be changed. You can only modify settings before calling any other methods on a Firestore object.`);this._settings=new mw(e),e.credentials!==void 0&&(this._authCredentials=function(e){if(!e)return new S_;switch(e.type){case`firstParty`:return new E_(e.sessionIndex||`0`,e.iamToken||null,e.authTokenFactory||null);case`provider`:return e.client;default:throw new K(G.INVALID_ARGUMENT,`makeAuthCredentialsProvider failed due to invali
22d credential type`)}}(e.credentials))}_getSettings(){return this._settings}_freezeSettings(){return this._settingsFrozen=!0,this._settings}_delete(){return this._terminateTask===`notTerminated`&&(this._terminateTask=this._terminate()),this._terminateTask}async _restart(){this._terminateTask===`notTerminated`?await this._terminate():this._terminateTask=`notTerminated`}toJSON(){return{app:this._app,databaseId:this._databaseId,settings:this._settings}}_terminate(){return function(e){let t=sw.get(e);t&&(U(`ComponentProvider`,`Removing Datastore`),sw.delete(e),t.terminate())}(this),Promise.resolve()}};function gw(e,t,n,r={}){let i=(e=pw(e,hw))._getSettings(),a=`${t}:${n}`;if(i.host!==`firestore.googleapis.com`&&i.host!==a&&g_(`Host has been set in both settings() and connectFirestoreEmulator(), emulator host will be used.`),e._setSettings(Object.assign(Object.assign({},i),{host:a,ssl:!1})),r.mockUserToken){let t,n;if(typeof r.mockUserToken==`string`)t=r.mockUserToken,n=d_.MOCK_USER;else{t=qo(r.mockUserToken,e._app?.options.projectId);let i=r.mockUserToken.sub||r.mockUserToken.user_id;if(!i)throw new K(G.INVALID_ARGUMENT,`mockUserToken must contain 'sub' or 'user_id' field!`);n=new d_(i)}e._authCredentials=new C_(new x_(t,n))}}var _w=class e{constructor(e,t,n){this.converter=t,this._query=n,this.type=`query`,this.firestore=e}withConverter(t){return new e(this.firestore,t,this._query)}},vw=class e{constructor(e,t,n){this.converter=t,this._key=n,this.type=`document`,this.firestore=e}get _path(){return this._key.path}get id(){return this._key.path.lastSegment()}get path(){return this._key.path.canonicalString()}get parent(){return new yw(this.firestore,this.converter,this._key.path.popLast())}withConverter(t){return new e(this.firestore,t,this._key)}},yw=class e extends _w{constructor(e,t,n){super(e,t,py(n)),this._path=n,this.type=`collection`}get id(){return this._query.path.lastSegment()}get path(){return this._query.path.canonicalString()}get parent(){let e=this._path.popLast();return e.isEmpty()?null:new vw(this.firestore,null,new q(e))}withConverter(t){return new e(this.firestore,t,this._path)}};function bw(e,t,...n){if(e=Os(e),cw(`collection`,`path`,t),e instanceof hw){let r=I_.fromString(t,...n);return dw(r),new yw(e,null,r)}{if(!(e instanceof vw||e instanceof yw))throw new K(G.INVALID_ARGUMENT,`Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore`);let r=e._path.child(I_.fromString(t,...n));return dw(r),new yw(e.firestore,null,r)}}function xw(e,t,...n){if(e=Os(e),arguments.length===1&&(t=A_.newId()),cw(`doc`,`path`,t),e instanceof hw){let r=I_.fromString(t,...n);return uw(r),new vw(e,null,new q(r))}{if(!(e instanceof vw||e instanceof yw))throw new K(G.INVALID_ARGUMENT,`Expected first argument to collection() to be a CollectionReference, a DocumentReference or FirebaseFirestore`);let r=e._path.child(I_.fromString(t,...n));return uw(r),new vw(e.firestore,e instanceof yw?e.converter:null,new q(r))}}var Sw=class{constructor(e=Promise.resolve()){this.Pu=[],this.Iu=!1,this.Tu=[],this.Eu=null,this.du=!1,this.Au=!1,this.Ru=[],this.t_=new bS(this,`async_queue_retry`),this.Vu=()=>{let e=vS();e&&U(`AsyncQueue`,`Visibility state changed to `+e.visibilityState),this.t_.jo()},this.mu=e;let t=vS();t&&typeof t.addEventListener==`function`&&t.addEventListener(`visibilitychange`,this.Vu)}get isShuttingDown(){return this.Iu}enqueueAndForget(e){this.enqueue(e)}enqueueAndForgetEvenWhileRestricted(e){this.fu(),this.gu(e)}enterRestrictedMode(e){if(!this.Iu){this.Iu=!0,this.Au=e||!1;let t=vS();t&&typeof t.removeEventListener==`function`&&t.removeEventListener(`visibilitychange`,this.Vu)}}enqueue(e){if(this.fu(),this.Iu)return new Promise((()=>{}));let t=new b_;return this.gu((()=>this.Iu&&this.Au?Promise.resolve():(e().then(t.resolve,t.reject),t.promise))).then((()=>t.promise))}enqueueRetryable(e){this.enqueueAndForget((()=>(this.Pu.push(e),this.pu())))}async pu(){if(this.Pu.length!==0){try{await this.Pu[0](),this.Pu.shift(),this.t_.reset()}catch(e){if(!q_(e))throw e;U(`AsyncQueue`,`Operation failed with retryable error: `+e)}this.Pu.length>0&&this.t_.Go((()=>this.pu()))}}gu(e){let t=this.mu.then((()=>(this.du=!0,e().catch((e=>{throw this.Eu=e,this.du=!1,h_(`INTERNAL UNHANDLED ERROR: `,function(e){let t=e.message||``;return e.stack&&(t=e.stack.includes(e.message)?e.stack:e.message+`
23`+e.stack),t}(e)),e})).then((e=>(this.du=!1,e))))));return this.mu=t,t}enqueueAfterDelay(e,t,n){this.fu(),this.Ru.indexOf(e)>-1&&(t=0);let r=nC.createAndSchedule(this,e,t,n,(e=>this.yu(e)));return this.Tu.push(r),r}fu(){this.Eu&&W()}verifyOperationInProgress(){}async wu(){let e;do e=this.mu,await e;while(e!==this.mu)}Su(e){for(let t of this.Tu)if(t.timerId===e)return!0;return!1}bu(e){return this.wu().then((()=>{this.Tu.sort(((e,t)=>e.targetTimeMs-t.targetTimeMs));for(let t of this.Tu)if(t.skipDelay(),e!==`all`&&t.timerId===e)break;return this.wu()}))}Du(e){this.Ru.push(e)}yu(e){let t=this.Tu.indexOf(e);this.Tu.splice(t,1)}},Cw=class extends hw{constructor(e,t,n,r){super(e,t,n,r),this.type=`firestore`,this._queue=new Sw,this._persistenceKey=r?.name||`[DEFAULT]`}async _terminate(){if(this._firestoreClient){let e=this._firestoreClient.terminate();this._queue=new Sw(e),this._firestoreClient=void 0,await e}}};function ww(e,t){let n=typeof e==`object`?e:tl(),r=typeof e==`string`?e:t||`(default)`,i=Yc(n,`firestore`).getImmediate({identifier:r});if(!i._initialized){let e=Uo(`firestore`);e&&gw(i,...e)}return i}function Tw(e){if(e._terminated)throw new K(G.FAILED_PRECONDITION,`The client has already been terminated.`);return e._firestoreClient||Ew(e),e._firestoreClient}function Ew(e){var t,n;let r=e._freezeSettings(),i=function(e,t,n,r){return new gv(e,t,n,r.host,r.ssl,r.experimentalForceLongPolling,r.experimentalAutoDetectLongPolling,ow(r.experimentalLongPollingOptions),r.useFetchStreams)}(e._databaseId,e._app?.options.appId||``,e._persistenceKey,r);e._componentsProvider||(t=r.localCache)!=null&&t._offlineComponentProvider&&(n=r.localCache)!=null&&n._onlineComponentProvider&&(e._componentsProvider={_offline:r.localCache._offlineComponentProvider,_online:r.localCache._onlineComponentProvider}),e._firestoreClient=new ZC(e._authCredentials,e._appCheckCredentials,e._queue,i,e._componentsProvider&&function(e){let t=e?._online.build();return{_offline:e?._offline.build(t),_online:t}}(e._componentsProvider))}var Dw=class e{constructor(e){this._byteString=e}static fromBase64String(t){try{return new e(cv.fromBase64String(t))}catch(e){throw new K(G.INVALID_ARGUMENT,`Failed to construct data from Base64 string: `+e)}}static fromUint8Array(t){return new e(cv.fromUint8Array(t))}toBase64(){return this._byteString.toBase64()}toUint8Array(){return this._byteString.toUint8Array()}toString(){return`Bytes(base64: `+this.toBase64()+`)`}isEqual(e){return this._byteString.isEqual(e._byteString)}},Ow=class{constructor(...e){for(let t=0;t<e.length;++t)if(e[t].length===0)throw new K(G.INVALID_ARGUMENT,`Invalid field name at argument $(i + 1). Field names must not be empty.`);this._internalPath=new R_(e)}isEqual(e){return this._internalPath.isEqual(e._internalPath)}},kw=class{constructor(e){this._methodName=e}},Aw=class{constructor(e,t){if(!isFinite(e)||e<-90||e>90)throw new K(G.INVALID_ARGUMENT,`Latitude must be a number between -90 and 90, but was: `+e);if(!isFinite(t)||t<-180||t>180)throw new K(G.INVALID_ARGUMENT,`Longitude must be a number between -180 and 180, but was: `+t);this._lat=e,this._long=t}get latitude(){return this._lat}get longitude(){return this._long}isEqual(e){return this._lat===e._lat&&this._long===e._long}toJSON(){return{latitude:this._lat,longitude:this._long}}_compareTo(e){return j_(this._lat,e._lat)||j_(this._long,e._long)}},jw=class{constructor(e){this._values=(e||[]).map((e=>e))}toArray(){return this._values.map((e=>e))}isEqual(e){return function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;++n)if(e[n]!==t[n])return!1;return!0}(this._values,e._values)}},Mw=/^__.*__$/,Nw=class{constructor(e,t,n){this.data=e,this.fieldMask=t,this.fieldTransforms=n}toMutation(e,t){return this.fieldMask===null?new fb(e,this.data,t,this.fieldTransforms):new pb(e,this.data,this.fieldMask,t,this.fieldTransforms)}};function Pw(e){switch(e){case 0:case 2:case 1:return!0;case 3:case 4:return!1;default:throw W()}}var Fw=class e{constructor(e,t,n,r,i,a){this.settings=e,this.databaseId=t,this.serializer
23=n,this.ignoreUndefinedProperties=r,i===void 0&&this.vu(),this.fieldTransforms=i||[],this.fieldMask=a||[]}get path(){return this.settings.path}get Cu(){return this.settings.Cu}Fu(t){return new e(Object.assign(Object.assign({},this.settings),t),this.databaseId,this.serializer,this.ignoreUndefinedProperties,this.fieldTransforms,this.fieldMask)}Mu(e){let t=this.path?.child(e),n=this.Fu({path:t,xu:!1});return n.Ou(e),n}Nu(e){let t=this.path?.child(e),n=this.Fu({path:t,xu:!1});return n.vu(),n}Lu(e){return this.Fu({path:void 0,xu:!0})}Bu(e){return Kw(e,this.settings.methodName,this.settings.ku||!1,this.path,this.settings.qu)}contains(e){return this.fieldMask.find((t=>e.isPrefixOf(t)))!==void 0||this.fieldTransforms.find((t=>e.isPrefixOf(t.field)))!==void 0}vu(){if(this.path)for(let e=0;e<this.path.length;e++)this.Ou(this.path.get(e))}Ou(e){if(e.length===0)throw this.Bu(`Document fields must not be empty`);if(Pw(this.Cu)&&Mw.test(e))throw this.Bu(`Document fields cannot begin and end with "__"`)}},Iw=class{constructor(e,t,n){this.databaseId=e,this.ignoreUndefinedProperties=t,this.serializer=n||yS(e)}Qu(e,t,n,r=!1){return new Fw({Cu:e,methodName:t,qu:n,path:R_.emptyPath(),xu:!1,ku:r},this.databaseId,this.serializer,this.ignoreUndefinedProperties)}};function Lw(e){let t=e._freezeSettings(),n=yS(e._databaseId);return new Iw(e._databaseId,!!t.ignoreUndefinedProperties,n)}function Rw(e,t,n,r,i,a={}){let o=e.Qu(a.merge||a.mergeFields?2:0,t,n,i);Hw(`Data must be an object, but it was:`,o,r);let s=Bw(r,o),c,l;if(a.merge)c=new ov(o.fieldMask),l=o.fieldTransforms;else if(a.mergeFields){let e=[];for(let r of a.mergeFields){let i=Uw(t,r,n);if(!o.contains(i))throw new K(G.INVALID_ARGUMENT,`Field '${i}' is specified in your field mask but missing from your input data.`);qw(e,i)||e.push(i)}c=new ov(e),l=o.fieldTransforms.filter((e=>c.covers(e.field)))}else c=null,l=o.fieldTransforms;return new Nw(new Fv(s),c,l)}function zw(e,t){if(Vw(e=Os(e)))return Hw(`Unsupported field value:`,t,e),Bw(e,t);if(e instanceof kw)return function(e,t){if(!Pw(t.Cu))throw t.Bu(`${e._methodName}() can only be used with update() and set()`);if(!t.path)throw t.Bu(`${e._methodName}() is not currently supported inside arrays`);let n=e._toFieldTransform(t);n&&t.fieldTransforms.push(n)}(e,t),null;if(e===void 0&&t.ignoreUndefinedProperties)return null;if(t.path&&t.fieldMask.push(t.path),e instanceof Array){if(t.settings.xu&&t.Cu!==4)throw t.Bu(`Nested arrays are not supported`);return function(e,t){let n=[],r=0;for(let i of e){let e=zw(i,t.Lu(r));e??={nullValue:`NULL_VALUE`},n.push(e),r++}return{arrayValue:{values:n}}}(e,t)}return function(e,t){if((e=Os(e))===null)return{nullValue:`NULL_VALUE`};if(typeof e==`number`)return Uy(t.serializer,e);if(typeof e==`boolean`)return{booleanValue:e};if(typeof e==`string`)return{stringValue:e};if(e instanceof Date){let n=N_.fromDate(e);return{timestampValue:Jb(t.serializer,n)}}if(e instanceof N_){let n=new N_(e.seconds,1e3*Math.floor(e.nanoseconds/1e3));return{timestampValue:Jb(t.serializer,n)}}if(e instanceof Aw)return{geoPointValue:{latitude:e.latitude,longitude:e.longitude}};if(e instanceof Dw)return{bytesValue:Yb(t.serializer,e._byteString)};if(e instanceof vw){let n=t.databaseId,r=e.firestore._databaseId;if(!r.isEqual(n))throw t.Bu(`Document reference is for database ${r.projectId}/${r.database} but should be for database ${n.projectId}/${n.database}`);return{referenceValue:Qb(e.firestore._databaseId||t.databaseId,e._key.path)}}if(e instanceof jw)return function(e,t){return{mapValue:{fields:{__type__:{stringValue:`__vector__`},value:{arrayValue:{values:e.toArray().map((e=>{if(typeof e!=`number`)throw t.Bu(`VectorValues must only contain numeric values.`);return Vy(t.serializer,e)}))}}}}}}(e,t);throw t.Bu(`Unsupported field value: ${fw(e)}`)}(e,t)}function Bw(e,t){let n={};return ev(e)?t.path&&t.path.length>0&&t.fieldMask.push(t.path):$_(e,((e,r)=>{let i=zw(r,t.Mu(e));i!=null&&(n[e]=i)})),{mapValue:{fields:n}}}function Vw(e){return!(typeof e!=`object`||!e||e instanceof Array||e instanceof Date||e instanceof N_||e instanceof Aw||e instanceof Dw||e instanceof vw||e instanceof kw||e instanceof jw)}
23function Hw(e,t,n){if(!Vw(n)||!function(e){return typeof e==`object`&&!!e&&(Object.getPrototypeOf(e)===Object.prototype||Object.getPrototypeOf(e)===null)}(n)){let r=fw(n);throw r===`an object`?t.Bu(e+` a custom object`):t.Bu(e+` `+r)}}function Uw(e,t,n){if((t=Os(t))instanceof Ow)return t._internalPath;if(typeof t==`string`)return Gw(e,t);throw Kw(`Field path arguments must be of type string or `,e,!1,void 0,n)}var Ww=RegExp(`[~\\*/\\[\\]]`);function Gw(e,t,n){if(t.search(Ww)>=0)throw Kw(`Invalid field path (${t}). Paths must not contain '~', '*', '/', '[', or ']'`,e,!1,void 0,n);try{return new Ow(...t.split(`.`))._internalPath}catch{throw Kw(`Invalid field path (${t}). Paths must not be empty, begin with '.', end with '.', or contain '..'`,e,!1,void 0,n)}}function Kw(e,t,n,r,i){let a=r&&!r.isEmpty(),o=i!==void 0,s=`Function ${t}() called with invalid data`;n&&(s+=" (via `toFirestore()`)"),s+=`. `;let c=``;return(a||o)&&(c+=` (found`,a&&(c+=` in field ${r}`),o&&(c+=` in document ${i}`),c+=`)`),new K(G.INVALID_ARGUMENT,s+e+c)}function qw(e,t){return e.some((e=>e.isEqual(t)))}var Jw=class{constructor(e,t,n,r,i){this._firestore=e,this._userDataWriter=t,this._key=n,this._document=r,this._converter=i}get id(){return this._key.path.lastSegment()}get ref(){return new vw(this._firestore,this._converter,this._key)}exists(){return this._document!==null}data(){if(this._document){if(this._converter){let e=new Yw(this._firestore,this._userDataWriter,this._key,this._document,null);return this._converter.fromFirestore(e)}return this._userDataWriter.convertValue(this._document.data.value)}}get(e){if(this._document){let t=this._document.data.field(Xw(`DocumentSnapshot.get`,e));if(t!==null)return this._userDataWriter.convertValue(t)}}},Yw=class extends Jw{data(){return super.data()}};function Xw(e,t){return typeof t==`string`?Gw(e,t):t instanceof Ow?t._internalPath:t._delegate._internalPath}function Zw(e){if(e.limitType===`L`&&e.explicitOrderBy.length===0)throw new K(G.UNIMPLEMENTED,`limitToLast() queries require specifying at least one orderBy() clause`)}var Qw=class{convertValue(e,t=`none`){switch(yv(e)){case 0:return null;case 1:return e.booleanValue;case 2:return dv(e.integerValue||e.doubleValue);case 3:return this.convertTimestamp(e.timestampValue);case 4:return this.convertServerTimestamp(e,t);case 5:return e.stringValue;case 6:return this.convertBytes(fv(e.bytesValue));case 7:return this.convertReference(e.referenceValue);case 8:return this.convertGeoPoint(e.geoPointValue);case 9:return this.convertArray(e.arrayValue,t);case 11:return this.convertObject(e.mapValue,t);case 10:return this.convertVectorValue(e.mapValue);default:throw W()}}convertObject(e,t){return this.convertObjectMap(e.fields,t)}convertObjectMap(e,t=`none`){let n={};return $_(e,((e,r)=>{n[e]=this.convertValue(r,t)})),n}convertVectorValue(e){let t=(e.fields?.value.arrayValue?.values)?.map((e=>dv(e.doubleValue)));return new jw(t)}convertGeoPoint(e){return new Aw(dv(e.latitude),dv(e.longitude))}convertArray(e,t){return(e.values||[]).map((e=>this.convertValue(e,t)))}convertServerTimestamp(e,t){switch(t){case`previous`:let n=mv(e);return n==null?null:this.convertValue(n,t);case`estimate`:return this.convertTimestamp(hv(e));default:return null}}convertTimestamp(e){let t=uv(e);return new N_(t.seconds,t.nanos)}convertDocumentKey(e,t){let n=I_.fromString(e);v_(Cx(n));let r=new _v(n.get(1),n.get(3)),i=new q(n.popFirst(5));return r.isEqual(t)||h_(`Document ${i} contains a document reference within a different database (${r.projectId}/${r.database}) which is not supported. It will be treated as a reference in the current database (${t.projectId}/${t.database}) instead.`),i}};function $w(e,t,n){let r;return r=e?n&&(n.merge||n.mergeFields)?e.toFirestore(t,n):e.toFirestore(t):t,r}var eT=class{constructor(e,t){this.hasPendingWrites=e,this.fromCache=t}isEqual(e){return this.hasPendingWrites===e.hasPendingWrites&&this.fromCache===e.fromCache}},tT=class extends Jw{constructor(e,t,n,r,i,a){super(e,t,n,r,a),this._firestore=e,this._firestoreImpl=e,this.metadata=i}exists(){return super.exists()}data(e={}){if(this._document){if(this._converter){let t=new nT(this._firestore,this._userDataWriter,this._key,this._document,this.metadata,null);return this._converter.fromFirestore(t,e)}return this._userDataWriter.convertValue(this._document.data.value,e.serverTimestamps)}}get(e,t={}){if(this._document){let n=this._document.data.field(Xw(`DocumentSnapshot.get`,e));if(n!==null)return this._userDataWriter.convertValue(n,t.serverTimestamps)}}},nT=class extends tT{data(e={}){return super.data(e)}},rT=class{constructor(e,t,n,r){this._firestore=e,this._userDataWriter=t,this._snapshot=r,this.metadata=new eT(r.hasPendingWrites,r.fromCache),this.query=n}get docs(){let e=[];return this.forEach((t=>e.push(t))),e}get size(){return this._snapshot.docs.size}get empty(){return this.size===0}forEach(e,t){this._snapshot.docs.forEach((n=>{e.call(t,new nT(this._firestore,this._userDataWriter,n.key,n,new eT(this._snapshot.mutatedKeys.has(n.key),this._snapshot.fromCache),this.query.converter))}))}docChanges(e={}){let t=!!e.includeMetadataChanges;if(t&&this._snapshot.excludesMetadataChanges)throw new K(G.INVALID_ARGUMENT,`To include metadata changes with your document changes, you must also pass { includeMetadataChanges:true } to onSnapshot().`);return this._cachedChanges&&this._cachedChangesIncludeMetadataChanges===t||(this._cachedChanges=function(e,t){if(e._snapshot.oldDocs.isEmpty()){let t=0;return e._snapshot.docChanges.map((n=>{let r=new nT(e._firestore,e._userDataWriter,n.doc.key,n.doc,new eT(e._snapshot.mutatedKeys.has(n.doc.key),e._snapshot.fromCache),e.query.converter);return n.doc,{type:`added`,doc:r,oldIndex:-1,newIndex:t++}}))}{let n=e._snapshot.oldDocs;return e._snapshot.docChanges.filter((e=>t||e.type!==3)).map((t=>{let r=new nT(e._firestore,e._userDataWriter,t.doc.key,t.doc,new eT(e._snapshot.mutatedKeys.has(t.doc.key),e._snapshot.fromCache),e.query.converter),i=-1,a=-1;return t.type!==0&&(i=n.indexOf(t.doc.key),n=n.delete(t.doc.key)),t.type!==1&&(n=n.add(t.doc),a=n.indexOf(t.doc.key)),{type:iT(t.type),doc:r,oldIndex:i,newIndex:a}}))}}(this,t),this._cachedChangesIncludeMetadataChanges=t),this._cachedChanges}};function iT(e){switch(e){case 0:return`added`;case 2:case 3:return`modified`;case 1:return`removed`;default:return W()}}function aT(e){e=pw(e,vw);let t=pw(e.firestore,Cw);return iw(Tw(t),e._key).then((n=>uT(t,e,n)))}var oT=class extends Qw{constructor(e){super(),this.firestore=e}convertBytes(e){return new Dw(e)}convertReference(e){let t=this.convertDocumentKey(e,this.firestore._databaseId);
23return new vw(this.firestore,null,t)}};function sT(e){e=pw(e,_w);let t=pw(e.firestore,Cw),n=Tw(t),r=new oT(t);return Zw(e._query),aw(n,e._query).then((n=>new rT(t,r,e,n)))}function cT(e,t,n){e=pw(e,vw);let r=pw(e.firestore,Cw),i=$w(e.converter,t,n);return lT(r,[Rw(Lw(r),`setDoc`,e._key,i,e.converter!==null,n).toMutation(e._key,ib.none())])}function lT(e,t){return function(e,t){let n=new b_;return e.asyncQueue.enqueueAndForget((async()=>AC(await nw(e),t,n))),n.promise}(Tw(e),t)}function uT(e,t,n){let r=n.docs.get(t._key);return new tT(e,new oT(e),t._key,r,new eT(n.hasPendingWrites,n.fromCache),t.converter)}(function(e,t=!0){(function(e){f_=e})($c),Jc(new ks(`firestore`,((e,{instanceIdentifier:n,options:r})=>{let i=e.getProvider(`app`).getImmediate(),a=new Cw(new w_(e.getProvider(`auth-internal`)),new O_(e.getProvider(`app-check-internal`)),function(e,t){if(!Object.prototype.hasOwnProperty.apply(e.options,[`projectId`]))throw new K(G.INVALID_ARGUMENT,`"projectId" not provided in firebase.initializeApp.`);return new _v(e.options.projectId,t)}(i,n),i);return r=Object.assign({useFetchStreams:t},r),a._setSettings(r),a}),`PUBLIC`).setMultipleInstances(!0)),nl(u_,`4.7.3`,e),nl(u_,`4.7.3`,`esm2017`)})();var dT=Symbol(`LOAD_ERROR`),fT=ww(Wg),pT={saveCalendar:async(e,t)=>{let n=Jg.currentUser;if(n)try{await cT(xw(fT,`user-data/${n.uid}/contexto-daily-${t}`,`overview`),e,{merge:!0})}catch(e){console.error(`Error saving calendar data:`,e)}},loadCalendar:async e=>{let t=Jg.currentUser;if(!t)return null;try{let n=await aT(xw(fT,`user-data/${t.uid}/contexto-daily-${e}`,`overview`));return n.exists()?n.data():null}catch(e){return console.error(`Error loading calendar data:`,e),dT}},saveGameData:async(e,t,n,r=!1)=>{let i=Jg.currentUser;if(!i){Ao.writeGameData(e,t,n);return}try{if(!t||!(t.guessHistory?.length>0)&&!t.gaveUp)return;if(t.gameId=e,await cT(xw(bw(fT,`user-data/${i.uid}/contexto-daily-${n}/game-data/saved`),String(e)),To(t)),!r){let r=xw(fT,`user-data/${i.uid}/contexto-daily-${n}`,`overview`),a=t.foundWord?`won`:t.gaveUp?`gaveUp`:`started`;await cT(r,{[e]:a},{merge:!0})}Ao.deleteGameData(e,n)}catch(e){console.error(`Error saving game data:`,e)}},loadGameData:async(e,t)=>{let n=Jg.currentUser;if(!n)return Ao.readGameData(e,t);try{let r=await aT(xw(fT,`user-data/${n.uid}/contexto-daily-${t}/game-data/saved`,String(e)));return r.exists()?Eo(r.data()):null}catch(e){return console.error(`Error loading game data:`,e),null}},loadAllGameData:async e=>{let t=Jg.currentUser;if(!t)return null;try{let n=await sT(bw(fT,`user-data/${t.uid}/contexto-daily-${e}/game-data/saved`)),r={};return n.forEach(e=>{r[e.id]=e.data()}),r}catch(e){return console.error(`Error loading all game data:`,e),null}},loadSubscription:async()=>{let e=Jg.currentUser;if(!e)return null;let t=await aT(xw(fT,`subscriptions`,e.uid));return t.exists()?t.data():null}};function mT(e){return e?e.status===`active`&&e.expiresAt.toDate()>new Date:!1}var hT=()=>{let{simulatedDevelopmentDate:e}=C();return(0,N.default)()},gT=e=>`${C().gameName}-games-${e}`,_T=[`pt`,`en`,`es`],vT=e=>e.status===`won`||e.attempts.length>0,yT=(e,t)=>{let{inProgressStatusName:n}=C();function r(e){if(!(!e||!vT(e)))return e.status===`won`?`won`:n}if(!e)return{};let i={};return Object.keys(e[t]).forEach(n=>{let a=e[t][n],o=r(a);o&&(i[n]=o)}),i},bT=(e,t)=>e?t?e.status===`won`&&t.status===`won`?e.attempts.length<=t.attempts.length?e:t:e.status!==`won`&&t.status===`won`?t:e.status===`won`&&t.status!==`won`||e.attempts.length<=t.attempts.length?e:t:e:t,xT=()=>{_T.forEach(e=>{localStorage.setItem(gT(e),`{}`)})},ST=s(((e,t)=>{function n(){this.__data__=[],this.size=0}t.exports=n})),CT=s(((e,t)=>{function n(e,t){return e===t||e!==e&&t!==t}t.exports=n})),wT=s(((e,t)=>{var n=CT();function r(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}t.exports=r})),TT=s(((e,t)=>{var n=wT(),r=Array.prototype.splice;function i(e){var t=this.__data__,i=n(t,e);return i<0?!1:(i==t.length-1?t.pop():r.call(t,i,1),--this.size,!0)}t.exports=i})),ET=s(((e,t)=>{var n=wT();function r(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}t.exports=r})),DT=s(((e,t)=>{var n=wT();function r(e){return n(this.__data__,e)>-1}t.exports=r})),OT=s(((e,t)=>{var n=wT();function r(e,t){var r=this.__data__,i=n(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}t.exports=r})),kT=s(((e,t)=>{var n=ST(),r=TT(),i=ET(),a=DT(),o=OT();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),AT=s(((e,t)=>{var n=kT();function r(){this.__data__=new n,this.size=0}t.exports=r})),jT=s(((e,t)=>{function n(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}t.exports=n})),MT=s(((e,t)=>{function n(e){return this.__data__.get(e)}t.exports=n})),NT=s(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),PT=s(((e,t)=>{t.exports=typeof global==`object`&&global&&global.Object===Object&&global})),FT=s(((e,t)=>{var n=PT(),r=typeof self==`object`&&self&&self.Object===Object&&self;
vendor: 8,726 bytes, line 23
23t.exports=n||r||Function(`return this`)()})),IT=s(((e,t)=>{t.exports=FT().Symbol})),LT=s(((e,t)=>{var n=IT(),r=Object.prototype,i=r.hasOwnProperty,a=r.toString,o=n?n.toStringTag:void 0;function s(e){var t=i.call(e,o),n=e[o];try{e[o]=void 0;var r=!0}catch{}var s=a.call(e);return r&&(t?e[o]=n:delete e[o]),s}t.exports=s})),RT=s(((e,t)=>{var n=Object.prototype.toString;function r(e){return n.call(e)}t.exports=r})),zT=s(((e,t)=>{var n=IT(),r=LT(),i=RT(),a=`[object Null]`,o=`[object Undefined]`,s=n?n.toStringTag:void 0;function c(e){return e==null?e===void 0?o:a:s&&s in Object(e)?r(e):i(e)}t.exports=c})),BT=s(((e,t)=>{function n(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}t.exports=n})),VT=s(((e,t)=>{var n=zT(),r=BT(),i=`[object AsyncFunction]`,a=`[object Function]`,o=`[object GeneratorFunction]`,s=`[object Proxy]`;function c(e){if(!r(e))return!1;var t=n(e);return t==a||t==o||t==i||t==s}t.exports=c})),HT=s(((e,t)=>{t.exports=FT()[`__core-js_shared__`]})),UT=s(((e,t)=>{var n=HT(),r=function(){var e=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}();function i(e){return!!r&&r in e}t.exports=i})),WT=s(((e,t)=>{var n=Function.prototype.toString;function r(e){if(e!=null){try{return n.call(e)}catch{}try{return e+``}catch{}}return``}t.exports=r})),GT=s(((e,t)=>{var n=VT(),r=UT(),i=BT(),a=WT(),o=/[\\^$.*+?()[\]{}|]/g,s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp(`^`+u.call(d).replace(o,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`);function p(e){return!i(e)||r(e)?!1:(n(e)?f:s).test(a(e))}t.exports=p})),KT=s(((e,t)=>{function n(e,t){return e?.[t]}t.exports=n})),qT=s(((e,t)=>{var n=GT(),r=KT();function i(e,t){var i=r(e,t);return n(i)?i:void 0}t.exports=i})),JT=s(((e,t)=>{t.exports=qT()(FT(),`Map`)})),YT=s(((e,t)=>{t.exports=qT()(Object,`create`)})),XT=s(((e,t)=>{var n=YT();function r(){this.__data__=n?n(null):{},this.size=0}t.exports=r})),ZT=s(((e,t)=>{function n(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}t.exports=n})),QT=s(((e,t)=>{var n=YT(),r=`__lodash_hash_undefined__`,i=Object.prototype.hasOwnProperty;function a(e){var t=this.__data__;if(n){var a=t[e];return a===r?void 0:a}return i.call(t,e)?t[e]:void 0}t.exports=a})),$T=s(((e,t)=>{var n=YT(),r=Object.prototype.hasOwnProperty;function i(e){var t=this.__data__;return n?t[e]!==void 0:r.call(t,e)}t.exports=i})),eE=s(((e,t)=>{var n=YT(),r=`__lodash_hash_undefined__`;function i(e,t){var i=this.__data__;return this.size+=+!this.has(e),i[e]=n&&t===void 0?r:t,this}t.exports=i})),tE=s(((e,t)=>{var n=XT(),r=ZT(),i=QT(),a=$T(),o=eE();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),nE=s(((e,t)=>{var n=tE(),r=kT(),i=JT();function a(){this.size=0,this.__data__={hash:new n,map:new(i||r),string:new n}}t.exports=a})),rE=s(((e,t)=>{function n(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}t.exports=n})),iE=s(((e,t)=>{var n=rE();function r(e,t){var r=e.__data__;return n(t)?r[typeof t==`string`?`string`:`hash`]:r.map}t.exports=r})),aE=s(((e,t)=>{var n=iE();function r(e){var t=n(this,e).delete(e);return this.size-=+!!t,t}t.exports=r})),oE=s(((e,t)=>{var n=iE();function r(e){return n(this,e).get(e)}t.exports=r})),sE=s(((e,t)=>{var n=iE();function r(e){return n(this,e).has(e)}t.exports=r})),cE=s(((e,t)=>{var n=iE();function r(e,t){var r=n(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}t.exports=r})),lE=s(((e,t)=>{var n=nE(),r=aE(),i=oE(),a=sE(),o=cE();function s(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}s.prototype.clear=n,s.prototype.delete=r,s.prototype.get=i,s.prototype.has=a,s.prototype.set=o,t.exports=s})),uE=s(((e,t)=>{var n=kT(),r=JT(),i=lE(),a=200;function o(e,t){var o=this.__data__;if(o instanceof n){var s=o.__data__;if(!r||s.length<a-1)return s.push([e,t]),this.size=++o.size,this;o=this.__data__=new i(s)}return o.set(e,t),this.size=o.size,this}t.exports=o})),dE=s(((e,t)=>{var n=kT(),r=AT(),i=jT(),a=MT(),o=NT(),s=uE();function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=r,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=o,c.prototype.set=s,t.exports=c})),fE=s(((e,t)=>{function n(e){return this.__data__.set(e,`__lodash_hash_undefined__`),this}t.exports=n})),pE=s(((e,t)=>{function n(e){return this.__data__.has(e)}t.exports=n})),mE=s(((e,t)=>{var n=lE(),r=fE(),i=pE();function a(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=r,a.prototype.has=i,t.exports=a})),hE=s(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}t.exports=n})),gE=s(((e,t)=>{function n(e,t){return e.has(t)}t.exports=n})),_E=s(((e,t)=>{var n=mE(),r=hE(),i=gE(),a=1,o=2;function s(e,t,s,c,l,u){var d=s&a,f=e.length,p=t.length;if(f!=p&&!(d&&p>f))return!1;var m=u.get(e),h=u.get(t);if(m&&h)return m==t&&h==e;var g=-1,_=!0,v=s&o?new n:void 0;for(u.set(e,t),u.set(t,e);++g<f;){var y=e[g],b=t[g];if(c)var x=d?c(b,y,g,t,e,u):c(y,b,g,e,t,u);if(x!==void 0){if(x)continue;_=!1;break}if(v){if(!r(t,function(e,t){if(!i(v,t)&&(y===e||l(y,e,s,c,u)))return v.push(t)})){_=!1;break}}else if(!(y===b||l(y,b,s,c,u))){_=!1;break}}return u.delete(e),u.delete(t),_}t.exports=s})),vE=s(((e,t)=>{t.exports=FT().Uint8Array})),yE=s(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}t.exports=n})),bE=s(((e,t)=>{function n(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}t.exports=n})),xE=s(((e,t)=>{var n=IT(),r=vE(),i=CT(),a=_E(),o=yE(),s=bE(),c=1,l=2,u=`[object Boolean]`,d=`[object Date]`,f=`[object Error]`,p=`[object Map]`,m=`[object Number]`,h=`[object RegExp]`,g=`[object Set]`,_=`[object String]`,v=`[object Symbol]`,y=`[object ArrayBuffer]`,b=`[object DataView]`,x=n?n.prototype:void 0,S=x?x.valueOf:void 0;function C(e,t,n,x,C,w,T){switch(n){case b:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case y:return!(e.byteLength!=t.byteLength||!w(new r(e),new r(t)));case u:case d:case m:return i(+e,+t);case f:return e.name==t.name&&e.message==t.message;case h:case _:return e==t+``;case p:var E=o;case g:var ee=x&c;if(E||=s,e.size!=t.size&&!ee)return!1;var te=T.get(e);if(te)return te==t;x|=l,T.set(e,t);var D=a(E(e),E(t),x,C,w,T);return T.delete(e),D;case v:if(S)return S.call(e)==S.call(t)}return!1}t.exports=C})),SE=s(((e,t)=>{function n(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}t.exports=n})),CE=s(((e,t)=>{t.exports=Array.isArray})),wE=s(((e,t)=>{var n=SE(),r=CE();function i(e,t,i){var a=t(e);return r(e)?a:n(a,i(e))}t.exports=i})),TE=s(((e,t)=>{function n(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}t.exports=n})),EE=s(((e,t)=>{function n(){return[]}t.exports=n})),DE=s(((e,t)=>{var n=TE(),r=EE(),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols;t.exports=a?function(e){return e==null?[]:(e=Object(e),n(a(e),function(t){return i.call(e,t)}))}:r})),OE=s(((e,t)=>{function n(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}t.exports=n})),kE=s(((e,t)=>{function n(e){return typeof e==`object`&&!!e}t.exports=n})),AE=s(((e,t)=>{var n=zT(),r=kE(),i=`[object Arguments]`;function a(e){return r(e)&&n(e)==i}t.exports=a})),jE=s(((e,t)=>{var n=AE(),r=kE(),i=Object.prototype,a=i.hasOwnProperty,o=i.propertyIsEnumerable;t.exports=n(function(){return arguments}())?n:function(e){return r(e)&&a.call(e,`callee`)&&!o.call(e,`callee`)}})),ME=s(((e,t)=>{function n(){return!1}t.exports=n})),NE=s(((e,t)=>{var n=FT(),r=ME(),i=typeof e==`object`&&e&&!e.nodeType&&e,a=i&&typeof t==`object`&&t&&!t.nodeType&&t,o=a&&a.exports===i?n.Buffer:void 0;t.exports=(o?o.isBuffer:void 0)||r})),PE=s(((e,t)=>{var n=/^(?:0|[1-9]\d*)$/;function r(e,t){var r=typeof e;return t??=9007199254740991,!!t&&(r==`number`||r!=`symbol`&&n.test(e))&&e>-1&&e%1==0&&e<t}t.exports=r})),FE=s(((e,t)=>{function n(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=9007199254740991}t.exports=n})),IE=s(((e,t)=>{var n=zT(),r=FE(),i=kE(),a=`[object Arguments]`,o=`[object Array]`,s=`[object Boolean]`,c=`[object Date]`,l=`[object Error]`,u=`[object Function]`,d=`[object Map]`,f=`[object Number]`,p=`[object Object]`,m=`[object RegExp]`,h=`[object Set]`,g=`[object String]`,_=`[object WeakMap]`,v=`[object ArrayBuffer]`,y=`[object DataView]`,b=`[object Float32Array]`,x=`[object Float64Array
23]`,S=`[object Int8Array]`,C=`[object Int16Array]`,w=`[object Int32Array]`,T=`[object Uint8Array]`,E=`[object Uint8ClampedArray]`,ee=`[object Uint16Array]`,te=`[object Uint32Array]`,D={};D[b]=D[x]=D[S]=D[C]=D[w]=D[T]=D[E]=D[ee]=D[te]=!0,D[a]=D[o]=D[v]=D[s]=D[y]=D[c]=D[l]=D[u]=D[d]=D[f]=D[p]=D[m]=D[h]=D[g]=D[_]=!1;function ne(e){return i(e)&&r(e.length)&&!!D[n(e)]}t.exports=ne})),LE=s(((e,t)=>{function n(e){return function(t){return e(t)}}t.exports=n})),RE=s(((e,t)=>{var n=PT(),r=typeof e==`object`&&e&&!e.nodeType&&e,i=r&&typeof t==`object`&&t&&!t.nodeType&&t,a=i&&i.exports===r&&n.process;t.exports=function(){try{return i&&i.require&&i.require(`util`).types||a&&a.binding&&a.binding(`util`)}catch{}}()})),zE=s(((e,t)=>{var n=IE(),r=LE(),i=RE(),a=i&&i.isTypedArray;t.exports=a?r(a):n})),BE=s(((e,t)=>{var n=OE(),r=jE(),i=CE(),a=NE(),o=PE(),s=zE(),c=Object.prototype.hasOwnProperty;function l(e,t){var l=i(e),u=!l&&r(e),d=!l&&!u&&a(e),f=!l&&!u&&!d&&s(e),p=l||u||d||f,m=p?n(e.length,String):[],h=m.length;for(var g in e)(t||c.call(e,g))&&!(p&&(g==`length`||d&&(g==`offset`||g==`parent`)||f&&(g==`buffer`||g==`byteLength`||g==`byteOffset`)||o(g,h)))&&m.push(g);return m}t.exports=l})),VE=s(((e,t)=>{var n=Object.prototype;function r(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||n)}t.exports=r})),HE=s(((e,t)=>{function n(e,t){return function(n){return e(t(n))}}t.exports=n})),UE=s(((e,t)=>{t.exports=HE()(Object.keys,Object)})),WE=s(((e,t)=>{var n=VE(),r=UE(),i=Object.prototype.hasOwnProperty;function a(e){if(!n(e))return r(e);var t=[];for(var a in Object(e))i.call(e,a)&&a!=`constructor`&&t.push(a);return t}t.exports=a})),GE=s(((e,t)=>{var n=VT(),r=FE();function i(e){return e!=null&&r(e.length)&&!n(e)}t.exports=i})),KE=s(((e,t)=>{var n=BE(),r=WE(),i=GE();function a(e){return i(e)?n(e):r(e)}t.exports=a})),qE=s(((e,t)=>{var n=wE(),r=DE(),i=KE();function a(e){return n(e,i,r)}t.exports=a})),JE=s(((e,t)=>{var n=qE(),r=1,i=Object.prototype.hasOwnProperty;function a(e,t,a,o,s,c){var l=a&r,u=n(e),d=u.length;if(d!=n(t).length&&!l)return!1;for(var f=d;f--;){var p=u[f];if(!(l?p in t:i.call(t,p)))return!1}var m=c.get(e),h=c.get(t);if(m&&h)return m==t&&h==e;var g=!0;c.set(e,t),c.set(t,e);for(var _=l;++f<d;){p=u[f];var v=e[p],y=t[p];if(o)var b=l?o(y,v,p,t,e,c):o(v,y,p,e,t,c);if(!(b===void 0?v===y||s(v,y,a,o,c):b)){g=!1;break}_||=p==`constructor`}if(g&&!_){var x=e.constructor,S=t.constructor;x!=S&&`constructor`in e&&`constructor`in t&&!(typeof x==`function`&&x instanceof x&&typeof S==`function`&&S instanceof S)&&(g=!1)}return c.delete(e),c.delete(t),g}t.exports=a})),YE=s(((e,t)=>{t.exports=qT()(FT(),`DataView`)})),XE=s(((e,t)=>{t.exports=qT()(FT(),`Promise`)})),ZE=s(((e,t)=>{t.exports=qT()(FT(),`Set`)})),QE=s(((e,t)=>{t.exports=qT()(FT(),`WeakMap`)})),$E=s(((e,t)=>{var n=YE(),r=JT(),i=XE(),a=ZE(),o=QE(),s=zT(),c=WT(),l=`[object Map]`,u=`[object Object]`,d=`[object Promise]`,f=`[object Set]`,p=`[object WeakMap]`,m=`[object DataView]`,h=c(n),g=c(r),_=c(i),v=c(a),y=c(o),b=s;(n&&b(new n(new ArrayBuffer(1)))!=m||r&&b(new r)!=l||i&&b(i.resolve())!=d||a&&b(new a)!=f||o&&b(new o)!=p)&&(b=function(e){var t=s(e),n=t==u?e.constructor:void 0,r=n?c(n):``;if(r)switch(r){case h:return m;case g:return l;case _:return d;case v:return f;case y:return p}return t}),t.exports=b})),eD=s(((e,t)=>{var n=dE(),r=_E(),i=xE(),a=JE(),o=$E(),s=CE(),c=NE(),l=zE(),u=1,d=`[object Arguments]`,f=`[object Array]`,p=`[object Object]`,m=Object.prototype.hasOwnProperty;function h(e,t,h,g,_,v){var y=s(e),b=s(t),x=y?f:o(e),S=b?f:o(t);x=x==d?p:x,S=S==d?p:S;var C=x==p,w=S==p,T=x==S;if(T&&c(e)){if(!c(t))return!1;y=!0,C=!1}if(T&&!C)return v||=new n,y||l(e)?r(e,t,h,g,_,v):i(e,t,x,h,g,_,v);if(!(h&u)){var E=C&&m.call(e,`__wrapped__`),ee=w&&m.call(t,`__wrapped__`);if(E||ee){var te=E?e.value():e,D=ee?t.value():t;return v||=new n,_(te,D,h,g,v)}}return T?(v||=new n,a(e,t,h,g,_,v)):!1}t.exports=h})),tD=s(((e,t)=>{var n=eD(),r=kE();function i(e,t,a,o,s){return e===t?!0:e==null||t==null||!r(e)&&!r(t)?e!==e&&t!==t:n(e,t,a,o,i,s)}t.exports=i})),nD=u(s(((e,t)=>{var n=tD();function r(e,t){return n(e,t)}t.exports=r}))()),rD=[`en`,`pt`,`es`],iD=e=>{for(let t in e)if(Object.keys(e[t]).length>0)return!0;return!1},aD=e=>{let t=0;for(let n in e)t+=Object.keys(e[n]).length;return t},oD=(e,t)=>{let n={};for(let r of rD){n[r]={};let i=e[r]||{};for(let e in i)t(i[e])&&(n[r][e]=i[e])}return n},sD=async e=>{let t={};for(let n of rD)t[n]=await e.loadAllGameData(n)||{};return t},cD=({localGameData:e,remoteGameData:t,selectBestGameData:n})=>{let r={},i={};for(let a of rD){r[a]={},i[a]={};let o=Object.keys(e[a]),s=Object.keys(t[a]),c=Array.from(new Set([...o,...s]));for(let o of c){let s=n(e[a][o],t[a][o]);r[a][o]=s,(0,nD.default)(s,t[a][o])||(i[a][o]=s)}}return{mergedGameData:r,gameDataToSync:i}};async function lD({api:e,allLocalGameData:t,hasGameProgress:n,selectBestGameData:r,getSimplifiedCalendar:i,deleteAllGameDataFromLocalStorage:a,onProgress:o}){let s=oD(t,n);if(aD(s)===0){a();return}let{mergedGameData:c,gameDataToSync:l}=cD({localGameData:s,remoteGameData:await sD(e),selectBestGameData:r});if(aD(l)===0){a();return}o({completed:0,total:aD(l)});for(let t of rD){let n=i(c,t);await e.saveCalendar(n,t)}for(let t of rD)for(let n in l[t])await e.saveGameData(n,l[t][n],t,!0),o(e=>({...e,completed:e.completed+1}));a(),o(null)}var uD=s((e=>{var t=p(),n=Symbol.for(`react.element`),r=Symbol.for(`react.fragment`),i=Object.prototype.hasOwnProperty,a=t.__SECRET_INT
23ERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function s(e,t,r){var s,c={},l=null,u=null;for(s in r!==void 0&&(l=``+r),t.key!==void 0&&(l=``+t.key),t.ref!==void 0&&(u=t.ref),t)i.call(t,s)&&!o.hasOwnProperty(s)&&(c[s]=t[s]);if(e&&e.defaultProps)for(s in t=e.defaultProps,t)c[s]===void 0&&(c[s]=t[s]);return{$$typeof:n,type:e,key:l,ref:u,props:c,_owner:a.current}}e.Fragment=r,e.jsx=s,e.jsxs=s})),Y=s(((e,t)=>{t.exports=uD()}))(),dD=2e3,fD=9e4,pD=1e4,mD=72e4,hD=5e3;function gD(e){console.error(`Subscription read failed:`,e),et(`subscription_read_failed`)}function _D({auth:e,api:t,checkSubscription:n,persistence:r,initAds:i,destroyWebAds:a=()=>{},hasGameProgress:o=vT,selectBestGameData:s=bT,getSimplifiedCalendar:c=yT,deleteAllGameDataFromLocalStorage:l=xT}){let u=(0,y.createContext)({user:null,isSubscribed:!1,subscription:null,loading:!0,syncProgress:null,refreshSubscription:async()=>!1,waitForNewGrant:async()=>!1});function d(){return(0,y.useContext)(u)}function f({children:d}){let[f,p]=(0,y.useState)(null),[m,h]=(0,y.useState)(!1),[g,_]=(0,y.useState)(null),[v,b]=(0,y.useState)(!0),[x,S]=(0,y.useState)(null),C=(0,y.useCallback)((e,t)=>{let r=t?n(e):!1;return t&&(qe(r,e?.expiresAt?.toDate()??null),it(r)),h(r),_(e),Tt(r),r?a():i(),r},[]),w=(0,y.useCallback)(async()=>{try{return C(await t.loadSubscription(),!0)}catch(e){return gD(e),!1}},[C]),T=(0,y.useCallback)(async e=>{let r=Date.now();for(;Date.now()-r<mD;){let i=Date.now()-r<fD;await new Promise(e=>setTimeout(e,i?dD:pD));let a;try{a=await t.loadSubscription()}catch{continue}if(n(a)&&a.paddleTransactionId!==e)return C(a,!0),!0}return!1},[C]);(0,y.useEffect)(()=>{let n=null;Ge()?i():n=setTimeout(()=>{et(`ads_started_by_auth_timeout`),i()},hD);let a=e.onAuthStateChanged(async e=>{clearTimeout(n),tt(e?e.uid:null),rt(!!e),b(!0);try{if(e){p(e);let n=null,i=!1;try{n=await t.loadSubscription(),i=!0}catch(e){gD(e)}C(n,i);let a=r.readAllGameData();iD(a)&&await lD({api:t,allLocalGameData:a,hasGameProgress:o,selectBestGameData:s,getSimplifiedCalendar:c,deleteAllGameDataFromLocalStorage:l,onProgress:S})}else p(null),C(null,!0)}finally{b(!1)}});return()=>{clearTimeout(n),a()}},[C]);let E={user:f,isSubscribed:m,subscription:g,loading:v,syncProgress:x,refreshSubscription:w,waitForNewGrant:T};return(0,Y.jsx)(u.Provider,{value:E,children:d})}return{AuthWrapper:f,useAuth:d}}var{AuthWrapper:vD,useAuth:yD}=_D({auth:Jg,api:pT,checkSubscription:mT,persistence:Ao,initAds:Xt,destroyWebAds:Zt,hasGameProgress:xo,selectBestGameData:Co,getSimplifiedCalendar:So,deleteAllGameDataFromLocalStorage:wo});function bD(){let{user:e,loading:t}=yD(),n=Vi();(0,y.useEffect)(()=>{if(!e||t)return;let n=Ao.readAllGameData();for(let e of[`pt`,`en`,`es`]){let t=n[e];for(let n in t)pT.saveGameData(n,t[n],e)}},[n,e,t])}function xD(){let{language:e}=Ki(),{loading:t,user:n}=yD(),[r,i]=(0,y.useState)(null);return(0,y.useEffect)(()=>{if(t)return;i(null);let n=(e,t)=>{if(!e)return t;if(!t)return e;let n={...t};return Object.keys(e).forEach(t=>{n[t]?n[t]===`started`&&e[t]!==`started`&&(n[t]=e[t]):n[t]=e[t]}),n};(async()=>{let t=await pT.loadCalendar(e);if(t===dT){i({});return}let r=So(Ao.readAllGameData(),e),a=n(r,t);i(a)})()},[e,t,n]),r}function SD(){let{user:e}=yD();(0,y.useEffect)(()=>{let t=t=>{if(!e)return;let n=Ao.readAllGameData();if(Object.values(n).some(e=>Object.keys(e).length>0)){for(let e of[`pt`,`en`,`es`]){let t=n[e];for(let n in t){let r=t[n];pT.saveGameData(n,r,e)}}t.preventDefault(),t.returnValue=``}};return window.addEventListener(`beforeunload`,t),()=>window.removeEventListener(`beforeunload`,t)},[e])}var X=()=>{};X.QuestionMark=function(){return(0,Y.jsx)(`span`,{className:`material-symbols-rounded`,children:`help`})},X.LightBulb=function({className:e=``}){return(0,Y.jsx)(`span`,{className:`material-symbols-rounded ${e}`,children:`lightbulb`})},X.Calendar=function(){return(0,Y.jsx)(`span`,{className:`material-symbols-rounded`,children:`calendar_month`})},X.PreviousGames=function(){return(0,Y.jsx)(`span`,{className:`material-symbols-rounded`,children:`calendar_month`})},X.Back=function(){return(0,Y.jsx)(`span`,{className:`material-symbols-rounded`,children:`arrow_back`})},X.Twitter=function(){return(0,Y.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,
23width:`16`,height:`16`,fill:`currentColor`,viewBox:`0 0 16 16`,children:(0,Y.jsx)(`path`,{d:`M5.026 15c6.038 0 9.341-5.003 9.341-9.334 0-.14 0-.282-.006-.422A6.685 6.685 0 0 0 16 3.542a6.658 6.658 0 0 1-1.889.518 3.301 3.301 0 0 0 1.447-1.817 6.533 6.533 0 0 1-2.087.793A3.286 3.286 0 0 0 7.875 6.03a9.325 9.325 0 0 1-6.767-3.429 3.289 3.289 0 0 0 1.018 4.382A3.323 3.323 0 0 1 .64 6.575v.045a3.288 3.288 0 0 0 2.632 3.218 3.203 3.203 0 0 1-.865.115 3.23 3.23 0 0 1-.614-.057 3.283 3.283 0 0 0 3.067 2.277A6.588 6.588 0 0 1 .78 13.58a6.32 6.32 0 0 1-.78-.045A9.344 9.344 0 0 0 5.026 15z`})})},X.Instagram=function(){return(0,Y.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`16`,height:`16`,fill:`currentColor`,viewBox:`0 0 16 16`,children:(0,Y.jsx)(`path`,{d:`M8 0C5.829 0 5.556.01 4.703.048 3.85.088 3.269.222 2.76.42a3.917 3.917 0 0 0-1.417.923A3.927 3.927 0 0 0 .42 2.76C.222 3.268.087 3.85.048 4.7.01 5.555 0 5.827 0 8.001c0 2.172.01 2.444.048 3.297.04.852.174 1.433.372 1.942.205.526.478.972.923 1.417.444.445.89.719 1.416.923.51.198 1.09.333 1.942.372C5.555 15.99 5.827 16 8 16s2.444-.01 3.298-.048c.851-.04 1.434-.174 1.943-.372a3.916 3.916 0 0 0 1.416-.923c.445-.445.718-.891.923-1.417.197-.509.332-1.09.372-1.942C15.99 10.445 16 10.173 16 8s-.01-2.445-.048-3.299c-.04-.851-.175-1.433-.372-1.941a3.926 3.926 0 0 0-.923-1.417A3.911 3.911 0 0 0 13.24.42c-.51-.198-1.092-.333-1.943-.372C10.443.01 10.172 0 7.998 0h.003zm-.717 1.442h.718c2.136 0 2.389.007 3.232.046.78.035 1.204.166 1.486.275.373.145.64.319.92.599.28.28.453.546.598.92.11.281.24.705.275 1.485.039.843.047 1.096.047 3.231s-.008 2.389-.047 3.232c-.035.78-.166 1.203-.275 1.485a2.47 2.47 0 0 1-.599.919c-.28.28-.546.453-.92.598-.28.11-.704.24-1.485.276-.843.038-1.096.047-3.232.047s-2.39-.009-3.233-.047c-.78-.036-1.203-.166-1.485-.276a2.478 2.478 0 0 1-.92-.598 2.48 2.48 0 0 1-.6-.92c-.109-.281-.24-.705-.275-1.485-.038-.843-.046-1.096-.046-3.233 0-2.136.008-2.388.046-3.231.036-.78.166-1.204.276-1.486.145-.373.319-.64.599-.92.28-.28.546-.453.92-.598.282-.11.705-.24 1.485-.276.738-.034 1.024-.044 2.515-.045v.002zm4.988 1.328a.96.96 0 1 0 0 1.92.96.96 0 0 0 0-1.92zm-4.27 1.122a4.109 4.109 0 1 0 0 8.217 4.109 4.109 0 0 0 0-8.217zm0 1.441a2.667 2.667 0 1 1 0 5.334 2.667 2.667 0 0 1 0-5.334z`})})},X.TikTok=function(){return(0,Y.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`16`,height:`16`,fill:`currentColor`,viewBox:`0 0 16 16`,children:(0,Y.jsx)(`path`,{d:`M9 0h1.98c.144.715.54 1.617 1.235 2.512C12.895 3.389 13.797 4 15 4v2c-1.753 0-3.07-.814-4-1.829V11a5 5 0 1 1-5-5v2a3 3 0 1 0 3 3V0Z`})})},X.Facebook=function(){return(0,Y.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`16`,height:`16`,fill:`currentColor`,viewBox:`0 0 16 16`,children:(0,Y.jsx)(`path`,{d:`M16 8.049c0-4.446-3.582-8.05-8-8.05C3.58 0-.002 3.603-.002 8.05c0 4.017 2.926 7.347 6.75 7.951v-5.625h-2.03V8.05H6.75V6.275c0-2.017 1.195-3.131 3.022-3.131.876 0 1.791.157 1.791.157v1.98h-1.009c-.993 0-1.303.621-1.303 1.258v1.51h2.218l-.354 2.326H9.25V16c3.824-.604 6.75-3.934 6.75-7.951z`})})},X.GiveUp=function(){return(0,Y.jsx)(`span`,{className:`material-symbols-rounded`,children:`flag`})},X.Share=function(){return(0,Y.jsx)(`span`,{className:`material-symbols-rounded`,children:`share`})},X.Close=function(){return(0,Y.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`16`,height:`16`,fill:`currentColor`,viewBox:`0 0 16 16`,children:(0,Y.jsx)(`path`,{d:`M4.646 4.646a.5.5 0 0 1 .708 0L8 7.293l2.646-2.647a.5.5 0 0 1 .708.708L8.707 8l2.647 2.646a.5.5 0 0 1-.708.708L8 8.707l-2.646 2.647a.5.5 0 0 1-.708-.708L7.293 8 4.646 5.354a.5.5 0 0 1 0-.708z`})})},X.Settings=function(){return(0,Y.jsx)(`span`,{className:`material-symbols-rounded`,children:`settings`})},X.Theme=function(){return(0,Y.jsx)(`span`,{className:`material-symbols-rounded`,children:`palette`})},X.Eye=function(){return(0,Y.jsx)(`span`,{className:`material-symbols-rounded`,children:`visibility`})},X.Random=function(){return(0,Y.jsx)(`span`,{className:`material-symbols-rounded`,children:`shuffle`})},X.Feedback=function(){return(0,Y.jsx)(`span`,{className:`material-symbols-rounded`,children:`forum`})},X.Language=function(){return(0,Y.jsx)(`span`,{className:`material-symbols-rounded`,children:`translate`})},X.FAQ=function(){return(0,Y.jsx)(`span`,{className:`material-symbols-rounded`,children:`help_center`})},X.ExternalLink=function(){return(0,Y.jsx)(`span`,{className:`material-symbols-rounded`,children:`open_in_new`})},X.Unlimited=function(){return(0,Y.jsx)(`span`,{className:`material-symbols-rounded`,children:`all_inclusive`})},X.PlayAgain=function(){return(0,Y.jsx)(`span`,{className:`material-symbols-rounded`,children:`replay`})}
23,X.Daydash=function(){return(0,Y.jsxs)(`svg`,{viewBox:`0 0 1954 478`,fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,Y.jsx)(`path`,{d:`M1357.85 273.104C1311.23 284.963 1281.12 289.659 1259.83 274.567C1206.84 228.928 1371.81 223.635 1443.03 264.624V194.355C1391.91 173.649 1225.6 161.416 1220.17 240.307C1211.73 357.807 1386.12 289.508 1386.12 289.508C1386.12 289.508 1278.15 355.977 1220.17 305.111C1220.17 339.605 1220.17 337.325 1220.17 377.929C1273.04 385.475 1393.09 384.756 1436.41 354.213C1462.12 335.887 1471.29 243.64 1357.85 273.104Z`}),(0,Y.jsx)(`path`,{d:`M1839.8 155.172L1819.37 205.649L1798.83 155.299L1748.35 134.62L1798.83 114.2L1819.37 63.8493L1839.8 114.2L1890.15 134.62L1839.8 155.172ZM1936.05 107.244L1906.56 92.7333C1887.03 83.1319 1871.27 67.2959 1861.75 47.7306L1847.32 18.0666C1842.15 7.41994 1831.35 0.66394 1819.51 0.66394C1807.71 0.66394 1796.95 7.36529 1791.75 17.944L1777.01 47.8973C1767.48 67.2866 1751.79 82.9733 1732.4 92.5106L1703.13 106.903C1695.49 110.665 1689.29 117.149 1686.71 125.268C1681.8 140.593 1689.04 156.24 1702.56 162.817L1732.24 177.248C1751.8 186.764 1767.63 202.529 1777.24 222.051L1791.75 251.555C1796.95 262.133 1807.71 268.835 1819.51 268.835C1831.35 268.835 1842.15 262.079 1847.32 251.432L1861.53 222.219C1871.11 202.523 1887.03 186.611 1906.72 177.029L1935.24 163.152C1942.92 159.421 1949.13 152.957 1951.76 144.841C1956.72 129.536 1949.53 113.875 1936.05 107.244Z`}),(0,Y.jsx)(`path`,{d:`M111.208 320.347C86.7413 320.347 71.4466 302.432 71.4466 279.275C71.4466 256.557 86.7413 239.076 111.208 239.076C135.676 239.076 150.968 256.557 150.968 279.275C150.968 302.432 135.676 320.347 111.208 320.347ZM223.061 81.3467H129.123V140.331H150.968V190.579C136.987 180.531 119.511 174.411 98.5359 174.411C37.8053 174.411 0.665283 221.6 0.665283 279.712C0.665283 337.823 41.736 385.012 98.5359 385.012C128.685 385.012 151.843 372.341 167.135 352.244V380.204H237.043V321.221H223.061V81.3467Z`}),(0,Y.jsx)(`path`,{d:`M355.401 320.347C330.933 320.347 315.639 302.432 315.639 279.275C315.639 256.557 330.933 239.076 355.401 239.076C379.868 239.076 395.161 256.557 395.161 279.275C395.161 302.432 379.868 320.347 355.401 320.347ZM464.632 179.008H411.328V204.123C396.909 185.772 374.189 174.411 342.293 174.411C290.299 174.411 244.859 217.231 244.859 279.712C244.859 342.192 290.299 385.012 342.293 385.012C373.316 385.012 396.472 372.78 411.328 353.115V380.204H477.741V321.221H464.632V179.008Z`}),(0,Y.jsx)(`path`,{d:`M1513.67 295.932C1514.15 244.235 1605.59 157.479 1523 157.479H1460.28V378.705C1489.89 378.705 1502.75 378.705 1502.75 378.705C1554.95 185.621 1570.92 378.705 1570.92 378.705C1570.92 378.705 1643.76 378.705 1684.67 378.705C1707.64 343.528 1714.65 293.499 1700.64 264.965C1672.97 209.855 1556.55 213.592 1513.67 295.932Z`}),(0,Y.jsx)(`path`,{d:`M789.855 292.393C776.58 283.412 794.149 253.348 842.563 268.967C882.388 282.241 907.767 333.78 907.767 333.78C864.037 291.221 813.671 308.792 789.855 292.393ZM913.679 295.932C866.757 228.085 810.828 177.119 760.268 179.008H760.059L760.268 178.856H628.027V236.108H640.568L605.183 307.689L579.155 236.108H592.401V178.856H480.68V236.108H494.633L562.273 388.56L561.457 390.163C557.985 396.749 553.912 401.692 549.228 404.995C544.544 408.289 537.86 409.939 529.189 409.939H484.953V477.599H528.669C551.913 477.599 570.127 473.256 583.319 464.588C596.5 455.909 607.949 442.208 617.667 423.472L713.952 236.108L721.045 222.465C719.575 231.439 719.572 238.204 719.572 238.204C721.581 298.423 773.696 359.317 810.412 370.268C851.799 382.763 885.767 372.611 924.809 353.479C924.809 353.479 937.304 378.467 966.977 378.467V157.479H904.116C821.343 157.479 913.679 241.271 913.679 295.932Z`}),(0,Y.jsx)(`path`,{d:`M1072.55 326C1059.73 333.187 1041.17 307.335 1073.43 273.108C1100.08 245.129 1153.65 243.811 1153.65 243.811C1100.68 264.04 1095.67 312.417 1072.55 326ZM1167.37 197.98C1138.19 165.475 1033.77 175.553 984.469 194.873V264.432C1006.35 241.24 1032.51 224.833 1063.45 217.043C1095.19 209.055 1137.92 211.28 1153.76 223.403C1130.43 221.952 1098.05 223.673 1073.41 232.399C1019.43 251.519 973.309 293.815 976.929 344.868C978.739 374.5 1010.24 389.852 1042.83 380.925C1083.17 369.965 1119.33 335.856 1142.8 304.191C1147.41 297.961 1161.73 278.687 1164.35 271.789C1162.93 278.897 1157.21 292.973 1155.64 296.092C1136.55 334.124 1104.35 380.925 1140.57 380.925H1206.47V178.856C1206.47 178.856 1172.44 174.775 1167.37 197.98Z`})]})},X.Contexto=function({size:e}
23){return(0,Y.jsxs)(`svg`,{width:e||420,height:e||420,viewBox:`0 0 420 420`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,Y.jsx)(`rect`,{x:`10`,y:`10`,width:`400`,height:`115`,rx:`30`,fill:`#B5E2DC`}),(0,Y.jsx)(`rect`,{x:`10`,y:`153`,width:`300`,height:`115`,rx:`30`,fill:`#F4DA92`}),(0,Y.jsx)(`rect`,{x:`10`,y:`295`,width:`200`,height:`115`,rx:`30`,fill:`#F7C0B5`})]})},X.Conexo=function({size:e}){return(0,Y.jsxs)(`svg`,{width:e||192,height:e||192,viewBox:`0 0 192 192`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,Y.jsx)(`path`,{d:`M2.25 15.9029C2.25 8.36262 8.36262 2.25 15.9029 2.25H176.097C183.637 2.25 189.75 8.36262 189.75 15.9029V37.2925C189.75 39.8059 187.712 41.8434 185.199 41.8434H6.80097C4.28754 41.8434 2.25 39.8059 2.25 37.2925V15.9029Z`,fill:`#C2410C`}),(0,Y.jsx)(`path`,{d:`M2.25 55.9515C2.25 53.438 4.28754 51.4005 6.80097 51.4005H185.199C187.712 51.4005 189.75 53.438 189.75 55.9515V86.443C189.75 88.9564 187.712 90.9939 185.199 90.9939H6.80097C4.28754 90.9939 2.25 88.9564 2.25 86.443V55.9515Z`,fill:`#047857`}),(0,Y.jsx)(`path`,{d:`M2.25 105.557C2.25 103.044 4.28754 101.006 6.80097 101.006H185.199C187.712 101.006 189.75 103.044 189.75 105.557V136.049C189.75 138.562 187.712 140.6 185.199 140.6H6.80097C4.28754 140.6 2.25 138.562 2.25 136.049V105.557Z`,fill:`#0E7490`}),(0,Y.jsx)(`path`,{d:`M2.25 154.708C2.25 152.194 4.28754 150.157 6.80097 150.157H185.199C187.712 150.157 189.75 152.194 189.75 154.708V176.097C189.75 183.637 183.637 189.75 176.097 189.75H15.9029C8.36262 189.75 2.25 183.637 2.25 176.097V154.708Z`,fill:`#6D28D9`})]})},X.Letroso=function({size:e}){return(0,Y.jsxs)(`svg`,{width:e||420,height:e||420,viewBox:`0 0 420 420`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,Y.jsx)(`path`,{d:`M24.375 10H110.625C118.564 10 125 16.4359 125 24.375V110.625C125 118.564 118.564 125 110.625 125H24.375C16.4359 125 10 118.564 10 110.625V24.375C10 16.4359 16.4359 10 24.375 10Z`,fill:`#22C55E`}),(0,Y.jsx)(`path`,{d:`M167.375 10H253.625C261.564 10 268 16.4359 268 24.375V110.625C268 118.564 261.564 125 253.625 125H167.375C159.436 125 153 118.564 153 110.625V24.375C153 16.4359 159.436 10 167.375 10Z`,fill:`#EAB308`}),(0,Y.jsx)(`path`,{d:`M309.375 10H395.625C403.564 10 410 16.4359 410 24.375V110.625C410 118.564 403.564 125 395.625 125H309.375C301.436 125 295 118.564 295 110.625V24.375C295 16.4359 301.436 10 309.375 10Z`,fill:`#3D3D66`}),(0,Y.jsx)(`path`,{d:`M24.375 153H110.625C118.564 153 125 159.436 125 167.375V253.625C125 261.564 118.564 268 110.625 268H24.375C16.4359 268 10 261.564 10 253.625V167.375C10 159.436 16.4359 153 24.375 153Z`,fill:`#3D3D66`}),(0,Y.jsx)(`path`,{d:`M167.121 153H353.516C384.711 153 410 178.744 410 210.5C410 242.256 384.711 268 353.516 268H167.121C159.322 268 153 261.564 153 253.625V167.375C153 159.436 159.322 153 167.121 153Z`,fill:`#22C55E`}),(0,Y.jsx)(`path`,{d:`M66.4706 295H353.529C384.717 295 410 320.744 410 352.5C410 384.256 384.717 410 353.529 410H66.4706C35.2827 410 10 384.256 10 352.5C10 320.744 35.2827 295 66.4706 295Z`,fill:`#22C55E`})]})},X.Expresso=function({size:e}){return(0,Y.jsxs)(`svg`,{width:e||420,height:e||420,viewBox:`0 0 420 420`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,Y.jsx)(`path`,{d:`M24.375 10H110.625C118.564 10 125 16.4359 125 24.375V110.625C125 118.564 118.564 125 110.625 125H24.375C16.4359 125 10 118.564 10 110.625V24.375C10 16.4359 16.4359 10 24.375 10Z`,fill:`#EAB308`}),(0,Y.jsx)(`path`,{d:`M167.375 10H253.625C261.564 10 268 16.4359 268 24.375V110.625C268 118.564 261.564 125 253.625 125H167.375C159.436 125 153 118.564 153 110.625V24.375C153 16.4359 159.436 10 167.375 10Z`,fill:`#22C55E`}),(0,Y.jsx)(`path`,{d:`M309.375 10H395.625C403.564 10 410 16.4359 410 24.375V110.625C410 118.564 403.564 125 395.625 125H309.375C301.436 125 295 118.564 295 110.625V24.375C295 16.4359 301.436 10 309.375 10Z`,fill:`#6D28D9`}),(0,Y.jsx)(`path`,{d:`M95.375 153H181.625C189.564 153 196 159.436 196 167.375V253.625C196 261.564 189.564 268 181.625 268H95.375C87.4359 268 81 261.564 81 253.625V167.375C81 159.436 87.4359 153 95.375 153Z`,fill:`#6D28D9`}),(0,Y.jsx)(`path`,{d:`M238.375 153H324.625C332.564 153 339 159.436 339 167.375V253.625C339 261.564 332.564 268 324.625 268H238.375C230.436 268 224 261.564 224 253.625V167.375C224 159.436 230.436 153 238.375 153Z`,fill:`#EAB308`}),(0,Y.jsx)(`path`,{d:`M24.375 296H110.625C118.564 296 125 302.436 125 310.375V396.625C125 404.564 118.564 411 110.625 411H24.375C16.4359 411 10 404.564 10 396.625V310.375C10 302.436 16.4359 296 24.375 296Z`,fill:`#22C55E`}),(0,Y.jsx)(`path`,{d:`M167.375 296H253.625C261.564 296 268 302.436 268 310.375V396.625C268 404.564 261.564 411 253.625 411H167.375C159.436 411 153 404.564 153 396.625V310.375C153 302.436 159.436 296 167.375 296Z`,fill:`#EAB308`}),(0,Y.jsx)(`path`,{d:`M309.375 296H395.625C403.564 296 410 302.436 410 310.375V396.625C410 404.564 403.564 411 395.625 411H309.375C301.436 411 295 404.564 295 396.625V310.375C295 302.436 301.436 296 309.375 296Z`,fill:`#22C55E`})]})},X.Ordeno=function({size:e}
23){return(0,Y.jsxs)(`svg`,{width:e||420,height:e||420,viewBox:`0 0 420 420`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,Y.jsx)(`rect`,{x:`10`,y:`10`,width:`310`,height:`115`,rx:`14`,fill:`#A16207`}),(0,Y.jsx)(`rect`,{x:`100`,y:`153`,width:`310`,height:`115`,rx:`14`,fill:`#047857`}),(0,Y.jsx)(`rect`,{x:`10`,y:`295`,width:`310`,height:`115`,rx:`14`,fill:`#6D28D9`})]})},X.VideoTutorial=function(){return(0,Y.jsx)(`span`,{className:`material-symbols-rounded`,children:`smart_display`})},X.Account=function(){return(0,Y.jsx)(`span`,{className:`material-symbols-rounded`,children:`account_circle`})},X.Logout=function(){return(0,Y.jsx)(`span`,{className:`material-symbols-rounded`,children:`logout`})},X.Store=function(){return(0,Y.jsx)(`span`,{className:`material-symbols-rounded`,children:`storefront`})},X.ChevronRight=function(){return(0,Y.jsx)(`span`,{className:`material-symbols-rounded`,children:`chevron_right`})};var CD=e=>e.toLowerCase().trim(),wD=`2022-02-23`,TD=`2022-09-18`,ED=`2023-05-26`,DD=e=>{let t=Math.floor(Math.random()*299-1)+1;if(e.length>0){let n=e.map(e=>e.distance);for(;n.includes(t);)t=Math.floor(Math.random()*299-1)+1}return t},OD=e=>{let t=299,n=t;if(e.length>0){let r=e.map(e=>e.distance);if(n=Math.min(...r,n),n>1)t=n-1;else for(t=2;r.includes(t);)t+=1}return t},kD=e=>{let t=299,n=2*t;if(e.length>0){let r=e.map(e=>e.distance);if(n=Math.min(...r,n),n>1)t=Math.floor(n/2);else for(t=2;r.includes(t);)t+=1}return t},AD=e=>{let t=(0,N.default)(wD,`YYYY-MM-DD`).startOf(`day`);return e===`en`&&(t=(0,N.default)(TD,`YYYY-MM-DD`).startOf(`day`)),e===`es`&&(t=(0,N.default)(ED,`YYYY-MM-DD`).startOf(`day`)),t},jD=()=>(0,N.default)(),MD=e=>{let t=AD(e);return jD().startOf(`day`).diff(t,`day`)},ND=(e,t)=>{let n=AD(t);return(0,N.default)(e).startOf(`day`).diff(n,`day`)},PD=(e,t)=>AD(t).add(e,`day`).format(`YYYY-MM-DD`),FD=(e,t)=>_o((0,N.default)(PD(e,t)),t),ID={grid:`_grid_1cita_11`,cell:`_cell_1cita_19`,dayButton:`_dayButton_1cita_27`,available:`_available_1cita_33`,unavailable:`_unavailable_1cita_37`,dayAbbrev:`_dayAbbrev_1cita_42`,dayNumber:`_dayNumber_1cita_46`,todayNumber:`_todayNumber_1cita_51`,skeletonBar:`_skeletonBar_1cita_55`,"skeleton-pulse":`_skeleton-pulse_1cita_1`,skeletonBarTop:`_skeletonBarTop_1cita_61`,skeletonBarBottom:`_skeletonBarBottom_1cita_67`},LD={pt:`pt-BR`,es:`es-ES`,en:`en-US`},RD=e=>e===`won`?`var(--calendar-won-color)`:e===`started`?`var(--calendar-started-color)`:e===`gaveUp`?`var(--calendar-given-up-color)`:`var(--bg-darker-color)`;function zD(){return(0,Y.jsxs)(`div`,{className:ID.cell,children:[(0,Y.jsx)(`div`,{className:`${ID.skeletonBar} ${ID.skeletonBarTop}`}),(0,Y.jsx)(`div`,{className:`${ID.skeletonBar} ${ID.skeletonBarBottom}`})]})}function BD({calendarData:e}){let{language:t}=Ki(),n=Wi(),r=bo().startOf(`day`),i=AD(t),a=r.subtract(r.day(),`day`),o=Array.from({length:7},(e,t)=>a.add(t,`day`)),s=LD[t]||`en-US`;return e===null?(0,Y.jsx)(`div`,{className:ID.grid,children:o.map(e=>(0,Y.jsx)(zD,{},e.format(`YYYY-MM-DD`)))}):(0,Y.jsx)(`div`,{className:ID.grid,children:o.map(a=>{let o=!a.isBefore(i,`day`)&&!a.isAfter(r,`day`),c=o?ND(a.format(`YYYY-MM-DD`),t):null,l=c!==null&&e?e[c]:null,u=new Intl.DateTimeFormat(s,{weekday:`short`}).format(a.toDate());return(0,Y.jsxs)(`button`,{type:`button`,className:`${ID.cell} ${ID.dayButton} ${o?ID.available:ID.unavailable}`,onClick:()=>{o&&(a.isSame(r,`day`)?n(`/${t}/daily`,{state:{fromApp:!0}}):(st.selectPreviousGame(t),n(`/${t}/previous/${a.format(`YYYY-MM-DD`)}`)))},style:{backgroundColor:o?RD(l):`transparent`},children:[(0,Y.jsx)(`span`,{className:ID.dayAbbrev,children:u}),(0,Y.jsx)(`span`,{className:`${ID.dayNumber} ${a.isSame(r,`day`)?ID.todayNumber:``}`,children:a.date()})]},a.format(`YYYY-MM-DD`))})})}function VD(){let{language:e}=Ki(),{t}=go(),n=xD();return(0,Y.jsxs)(`div`,{className:`home-card`,children:[(0,Y.jsx)(`div`,{className:`home-card-section`,children:(0,Y.jsxs)(`div`,{className:`home-card-row`,children:[(0,Y.jsx)(`div`,{className:`home-card-title`,children:t(`homeScreen.dailyGame`)}),(0,Y.jsx)(`div`,{className:`home-card-date`,children:vo(e)}),(0,Y.jsx)(za,{to:`/${e}/daily`,state:{fromApp:!0},onClick:()=>st.homeDailyGameButtonClick(e),children:(0,Y.jsx)(`button`,{type:`button`,className:`button`,children:t(`homeScreen.play`)})})]})}),(0,Y.jsx)(`hr`,{style:{border:`none`,borderTop:`2px solid var(--bg-darker-color)`,margin:`12px 0`}}),(0,Y.jsxs)(`div`,{className:`home-card-section`,children:[(0,Y.jsx)(BD,{calendarData:n}),(0,Y.jsx)(`div`,{style:{width:`100%`,textAlign:`center`},children:(0,Y.jsx)(za,{to:`/${e}/previous`,onClick:()=>st.homePreviousGamesButtonClick(e),children:(0,Y.jsxs)(`button`,{type:`button`,className:`button fill`,children:[(0,Y.jsx)(X.PreviousGames,{}),` `,t(`homeScreen.previousGames`)]})})})]})]})}function HD(){let{language:e}=Ki(),{t}=go();return(0,Y.jsx)(`div`,{className:`home-card`,children:(0,Y.jsxs)(`div`,{className:`home-card-row`,children:[(0,Y.jsxs)(`div`,{className:`home-card-title`,children:[t(`homeScreen.unlimited`),(0,Y.jsx)(X.Unlimited,{})]}),(0,Y.jsx)(za,{to:`/${e}/unlimited`,onClick:()=>st.homeUnlimitedGameButtonClick(e),children:(0,Y.jsx)(`button`,{type:`button`,className:`button`,children:t(`homeScreen.play`)})})]})})}var UD=()=>{};UD.Contexto=function({size:e}
23){return(0,Y.jsxs)(`svg`,{width:e||420,height:e||420,viewBox:`0 0 420 420`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,Y.jsx)(`rect`,{x:`10`,y:`10`,width:`400`,height:`115`,rx:`30`,fill:`#B5E2DC`}),(0,Y.jsx)(`rect`,{x:`10`,y:`153`,width:`300`,height:`115`,rx:`30`,fill:`#F4DA92`}),(0,Y.jsx)(`rect`,{x:`10`,y:`295`,width:`200`,height:`115`,rx:`30`,fill:`#F7C0B5`})]})},UD.Conexo=function({size:e}){return(0,Y.jsxs)(`svg`,{width:e||192,height:e||192,viewBox:`0 0 192 192`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,Y.jsx)(`path`,{d:`M2.25 15.9029C2.25 8.36262 8.36262 2.25 15.9029 2.25H176.097C183.637 2.25 189.75 8.36262 189.75 15.9029V37.2925C189.75 39.8059 187.712 41.8434 185.199 41.8434H6.80097C4.28754 41.8434 2.25 39.8059 2.25 37.2925V15.9029Z`,fill:`#C2410C`}),(0,Y.jsx)(`path`,{d:`M2.25 55.9515C2.25 53.438 4.28754 51.4005 6.80097 51.4005H185.199C187.712 51.4005 189.75 53.438 189.75 55.9515V86.443C189.75 88.9564 187.712 90.9939 185.199 90.9939H6.80097C4.28754 90.9939 2.25 88.9564 2.25 86.443V55.9515Z`,fill:`#047857`}),(0,Y.jsx)(`path`,{d:`M2.25 105.557C2.25 103.044 4.28754 101.006 6.80097 101.006H185.199C187.712 101.006 189.75 103.044 189.75 105.557V136.049C189.75 138.562 187.712 140.6 185.199 140.6H6.80097C4.28754 140.6 2.25 138.562 2.25 136.049V105.557Z`,fill:`#0E7490`}),(0,Y.jsx)(`path`,{d:`M2.25 154.708C2.25 152.194 4.28754 150.157 6.80097 150.157H185.199C187.712 150.157 189.75 152.194 189.75 154.708V176.097C189.75 183.637 183.637 189.75 176.097 189.75H15.9029C8.36262 189.75 2.25 183.637 2.25 176.097V154.708Z`,fill:`#6D28D9`})]})},UD.Letroso=function({size:e}){return(0,Y.jsxs)(`svg`,{width:e||420,height:e||420,viewBox:`0 0 420 420`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,Y.jsx)(`path`,{d:`M24.375 10H110.625C118.564 10 125 16.4359 125 24.375V110.625C125 118.564 118.564 125 110.625 125H24.375C16.4359 125 10 118.564 10 110.625V24.375C10 16.4359 16.4359 10 24.375 10Z`,fill:`#22C55E`}),(0,Y.jsx)(`path`,{d:`M167.375 10H253.625C261.564 10 268 16.4359 268 24.375V110.625C268 118.564 261.564 125 253.625 125H167.375C159.436 125 153 118.564 153 110.625V24.375C153 16.4359 159.436 10 167.375 10Z`,fill:`#EAB308`}),(0,Y.jsx)(`path`,{d:`M309.375 10H395.625C403.564 10 410 16.4359 410 24.375V110.625C410 118.564 403.564 125 395.625 125H309.375C301.436 125 295 118.564 295 110.625V24.375C295 16.4359 301.436 10 309.375 10Z`,fill:`#3D3D66`}),(0,Y.jsx)(`path`,{d:`M24.375 153H110.625C118.564 153 125 159.436 125 167.375V253.625C125 261.564 118.564 268 110.625 268H24.375C16.4359 268 10 261.564 10 253.625V167.375C10 159.436 16.4359 153 24.375 153Z`,fill:`#3D3D66`}),(0,Y.jsx)(`path`,{d:`M167.121 153H353.516C384.711 153 410 178.744 410 210.5C410 242.256 384.711 268 353.516 268H167.121C159.322 268 153 261.564 153 253.625V167.375C153 159.436 159.322 153 167.121 153Z`,fill:`#22C55E`}),(0,Y.jsx)(`path`,{d:`M66.4706 295H353.529C384.717 295 410 320.744 410 352.5C410 384.256 384.717 410 353.529 410H66.4706C35.2827 410 10 384.256 10 352.5C10 320.744 35.2827 295 66.4706 295Z`,fill:`#22C55E`})]})},UD.Expresso=function({size:e}){return(0,Y.jsxs)(`svg`,{width:e||420,height:e||420,viewBox:`0 0 420 420`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,Y.jsx)(`path`,{d:`M24.375 10H110.625C118.564 10 125 16.4359 125 24.375V110.625C125 118.564 118.564 125 110.625 125H24.375C16.4359 125 10 118.564 10 110.625V24.375C10 16.4359 16.4359 10 24.375 10Z`,fill:`#EAB308`}),(0,Y.jsx)(`path`,{d:`M167.375 10H253.625C261.564 10 268 16.4359 268 24.375V110.625C268 118.564 261.564 125 253.625 125H167.375C159.436 125 153 118.564 153 110.625V24.375C153 16.4359 159.436 10 167.375 10Z`,fill:`#22C55E`}),(0,Y.jsx)(`path`,{d:`M309.375 10H395.625C403.564 10 410 16.4359 410 24.375V110.625C410 118.564 403.564 125 395.625 125H309.375C301.436 125 295 118.564 295 110.625V24.375C295 16.4359 301.436 10 309.375 10Z`,fill:`#6D28D9`}),(0,Y.jsx)(`path`,{d:`M95.375 153H181.625C189.564 153 196 159.436 196 167.375V253.625C196 261.564 189.564 268 181.625 268H95.375C87.4359 268 81 261.564 81 253.625V167.375C81 159.436 87.4359 153 95.375 153Z`,fill:`#6D28D9`}),(0,Y.jsx)(`path`,{d:`M238.375 153H324.625C332.564 153 339 159.436 339 167.375V253.625C339 261.564 332.564 268 324.625 268H238.375C230.436 268 224 261.564 224 253.625V167.375C224 159.436 230.436 153 238.375 153Z`,fill:`#EAB308`}),(0,Y.jsx)(`path`,{d:`M24.375 296H110.625C118.564 296 125 302.436 125 310.375V396.625C125 404.564 118.564 411 110.625 411H24.375C16.4359 411 10 404.564 10 396.625V310.375C10 302.436 16.4359 296 24.375 296Z`,fill:`#22C55E`}),(0,Y.jsx)(`path`,{d:`M167.375 296H253.625C261.564 296 268 302.436 268 310.375V396.625C268 404.564 261.564 411 253.625 411H167.375C159.436 411 153 404.564 153 396.625V310.375C153 302.436 159.436 296 167.375 296Z`,fill:`#EAB308`}),(0,Y.jsx)(`path`,{d:`M309.375 296H395.625C403.564 296 410 302.436 410 310.375V396.625C410 404.564 403.564 411 395.625 411H309.375C301.436 411 295 404.564 295 396.625V310.375C295 302.436 301.436 296 309.375 296Z`,fill:`#22C55E`})]})}
23,UD.Daydash=function(){return(0,Y.jsxs)(`svg`,{viewBox:`0 0 1954 478`,fill:`currentColor`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,Y.jsx)(`path`,{d:`M1357.85 273.104C1311.23 284.963 1281.12 289.659 1259.83 274.567C1206.84 228.928 1371.81 223.635 1443.03 264.624V194.355C1391.91 173.649 1225.6 161.416 1220.17 240.307C1211.73 357.807 1386.12 289.508 1386.12 289.508C1386.12 289.508 1278.15 355.977 1220.17 305.111C1220.17 339.605 1220.17 337.325 1220.17 377.929C1273.04 385.475 1393.09 384.756 1436.41 354.213C1462.12 335.887 1471.29 243.64 1357.85 273.104Z`}),(0,Y.jsx)(`path`,{d:`M1839.8 155.172L1819.37 205.649L1798.83 155.299L1748.35 134.62L1798.83 114.2L1819.37 63.8493L1839.8 114.2L1890.15 134.62L1839.8 155.172ZM1936.05 107.244L1906.56 92.7333C1887.03 83.1319 1871.27 67.2959 1861.75 47.7306L1847.32 18.0666C1842.15 7.41994 1831.35 0.66394 1819.51 0.66394C1807.71 0.66394 1796.95 7.36529 1791.75 17.944L1777.01 47.8973C1767.48 67.2866 1751.79 82.9733 1732.4 92.5106L1703.13 106.903C1695.49 110.665 1689.29 117.149 1686.71 125.268C1681.8 140.593 1689.04 156.24 1702.56 162.817L1732.24 177.248C1751.8 186.764 1767.63 202.529 1777.24 222.051L1791.75 251.555C1796.95 262.133 1807.71 268.835 1819.51 268.835C1831.35 268.835 1842.15 262.079 1847.32 251.432L1861.53 222.219C1871.11 202.523 1887.03 186.611 1906.72 177.029L1935.24 163.152C1942.92 159.421 1949.13 152.957 1951.76 144.841C1956.72 129.536 1949.53 113.875 1936.05 107.244Z`}),(0,Y.jsx)(`path`,{d:`M111.208 320.347C86.7413 320.347 71.4466 302.432 71.4466 279.275C71.4466 256.557 86.7413 239.076 111.208 239.076C135.676 239.076 150.968 256.557 150.968 279.275C150.968 302.432 135.676 320.347 111.208 320.347ZM223.061 81.3467H129.123V140.331H150.968V190.579C136.987 180.531 119.511 174.411 98.5359 174.411C37.8053 174.411 0.665283 221.6 0.665283 279.712C0.665283 337.823 41.736 385.012 98.5359 385.012C128.685 385.012 151.843 372.341 167.135 352.244V380.204H237.043V321.221H223.061V81.3467Z`}),(0,Y.jsx)(`path`,{d:`M355.401 320.347C330.933 320.347 315.639 302.432 315.639 279.275C315.639 256.557 330.933 239.076 355.401 239.076C379.868 239.076 395.161 256.557 395.161 279.275C395.161 302.432 379.868 320.347 355.401 320.347ZM464.632 179.008H411.328V204.123C396.909 185.772 374.189 174.411 342.293 174.411C290.299 174.411 244.859 217.231 244.859 279.712C244.859 342.192 290.299 385.012 342.293 385.012C373.316 385.012 396.472 372.78 411.328 353.115V380.204H477.741V321.221H464.632V179.008Z`}),(0,Y.jsx)(`path`,{d:`M1513.67 295.932C1514.15 244.235 1605.59 157.479 1523 157.479H1460.28V378.705C1489.89 378.705 1502.75 378.705 1502.75 378.705C1554.95 185.621 1570.92 378.705 1570.92 378.705C1570.92 378.705 1643.76 378.705 1684.67 378.705C1707.64 343.528 1714.65 293.499 1700.64 264.965C1672.97 209.855 1556.55 213.592 1513.67 295.932Z`}),(0,Y.jsx)(`path`,{d:`M789.855 292.393C776.58 283.412 794.149 253.348 842.563 268.967C882.388 282.241 907.767 333.78 907.767 333.78C864.037 291.221 813.671 308.792 789.855 292.393ZM913.679 295.932C866.757 228.085 810.828 177.119 760.268 179.008H760.059L760.268 178.856H628.027V236.108H640.568L605.183 307.689L579.155 236.108H592.401V178.856H480.68V236.108H494.633L562.273 388.56L561.457 390.163C557.985 396.749 553.912 401.692 549.228 404.995C544.544 408.289 537.86 409.939 529.189 409.939H484.953V477.599H528.669C551.913 477.599 570.127 473.256 583.319 464.588C596.5 455.909 607.949 442.208 617.667 423.472L713.952 236.108L721.045 222.465C719.575 231.439 719.572 238.204 719.572 238.204C721.581 298.423 773.696 359.317 810.412 370.268C851.799 382.763 885.767 372.611 924.809 353.479C924.809 353.479 937.304 378.467 966.977 378.467V157.479H904.116C821.343 157.479 913.679 241.271 913.679 295.932Z`}),(0,Y.jsx)(`path`,{d:`M1072.55 326C1059.73 333.187 1041.17 307.335 1073.43 273.108C1100.08 245.129 1153.65 243.811 1153.65 243.811C1100.68 264.04 1095.67 312.417 1072.55 326ZM1167.37 197.98C1138.19 165.475 1033.77 175.553 984.469 194.873V264.432C1006.35 241.24 1032.51 224.833 1063.45 217.043C1095.19 209.055 1137.92 211.28 1153.76 223.403C1130.43 221.952 1098.05 223.673 1073.41 232.399C1019.43 251.519 973.309 293.815 976.929 344.868C978.739 374.5 1010.24 389.852 1042.83 380.925C1083.17 369.965 1119.33 335.856 1142.8 304.191C1147.41 297.961 1161.73 278.687 1164.35 271.789C1162.93 278.897 1157.21 292.973 1155.64 296.092C1136.55 334.124 1104.35 380.925 1140.57 380.925H1206.47V178.856C1206.47 178.856 1172.44 174.775 1167.37 197.98Z`})]})}
23,UD.Back=function(){return(0,Y.jsx)(`span`,{className:`material-symbols-rounded`,children:`arrow_back`})},UD.PassMark=function({size:e=18,color:t=`#e0a33b`}){return(0,Y.jsxs)(`svg`,{width:e,height:e,viewBox:`0 0 24 24`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,style:{display:`inline-block`,verticalAlign:`-3px`,flexShrink:0,color:t},"aria-hidden":`true`,children:[(0,Y.jsx)(`path`,{d:`M20 20H4C3.45 20 2.97917 19.8042 2.5875 19.4125C2.19583 19.0208 2 18.55 2 18V14C2.55 14 3.02083 13.8042 3.4125 13.4125C3.80417 13.0208 4 12.55 4 12C4 11.45 3.80417 10.9792 3.4125 10.5875C3.02083 10.1958 2.55 10 2 10V6C2 5.45 2.19583 4.97917 2.5875 4.5875C2.97917 4.19583 3.45 4 4 4H20C20.55 4 21.0208 4.19583 21.4125 4.5875C21.8042 4.97917 22 5.45 22 6V18C22 18.55 21.8042 19.0208 21.4125 19.4125C21.0208 19.8042 20.55 20 20 20ZM20 18V6H4V8.55C4.61667 8.91667 5.10417 9.40417 5.4625 10.0125C5.82083 10.6208 6 11.2833 6 12C6 12.7167 5.82083 13.3792 5.4625 13.9875C5.10417 14.5958 4.61667 15.0833 4 15.45V18H20Z`,fill:`currentColor`}),(0,Y.jsx)(`path`,{transform:`translate(0.8 0)`,d:`M12.7663 12.7616L12.0046 14.6438L11.2384 12.7663L9.35597 11.9952L11.2384 11.2337L12.0046 9.35616L12.7663 11.2337L14.6438 11.9952L12.7663 12.7616ZM16.3556 10.9743L15.2558 10.4332C14.5274 10.0752 13.9397 9.48469 13.5847 8.7551L13.0467 7.64894C12.8538 7.25193 12.4511 7 12.0096 7C11.5695 7 11.1683 7.24989 10.9744 7.64437L10.425 8.76132C10.0695 9.48434 9.48425 10.0693 8.76131 10.4249L7.66994 10.9616C7.38504 11.1019 7.15384 11.3437 7.05738 11.6464C6.87441 12.2179 7.1444 12.8014 7.64856 13.0466L8.75534 13.5848C9.48474 13.9396 10.0749 14.5275 10.4334 15.2554L10.9744 16.3556C11.1683 16.7501 11.5695 17 12.0096 17C12.4511 17 12.8538 16.7481 13.0467 16.3511L13.5768 15.2617C13.9337 14.5272 14.5274 13.9339 15.2618 13.5766L16.3253 13.0591C16.6117 12.92 16.8434 12.679 16.9413 12.3763C17.1263 11.8056 16.8583 11.2216 16.3556 10.9743Z`,fill:`currentColor`})]})},UD.Store=function(){return(0,Y.jsx)(`span`,{className:`material-symbols-rounded`,children:`storefront`})},UD.Theme=function(){return(0,Y.jsx)(`span`,{className:`material-symbols-rounded`,children:`palette`})},UD.ChevronRight=function(){return(0,Y.jsx)(`span`,{className:`material-symbols-rounded`,children:`chevron_right`})};var WD={storeCard:`_storeCard_1q8tr_1`,storeText:`_storeText_1q8tr_26`,storeSubtitle:`_storeSubtitle_1q8tr_33`},GD=`https://store.daydash.com`,KD=`pt`;function qD(){let{language:e}=Ki(),{t}=go();return A.isNativePlatform()||Oe()||e!==KD?null:(0,Y.jsxs)(`a`,{className:WD.storeCard,href:GD,target:`_blank`,rel:`noopener noreferrer`,onClick:()=>et(`daydash_store_button_click_${e}`),children:[(0,Y.jsx)(UD.Store,{}),(0,Y.jsxs)(`span`,{className:WD.storeText,children:[(0,Y.jsx)(`span`,{className:WD.storeTitle,children:`Daydash Store`}),(0,Y.jsx)(`span`,{className:WD.storeSubtitle,children:t(`store.subtitle`)})]}),(0,Y.jsx)(UD.ChevronRight,{})]})}function JD(){let{t:e}=go(),{language:t}=Ki();return(0,Y.jsxs)(`a`,{className:`button text`,href:e(`feedback.link`),target:`_blank`,rel:`noreferrer`,onClick:()=>{st.feedbackButtonClick(t)},children:[(0,Y.jsx)(X.Feedback,{}),e(`Feedback`)]})}function YD({size:e}){return(0,Y.jsxs)(`svg`,{width:e||420,height:e||420,viewBox:`0 0 420 420`,fill:`none`,xmlns:`http://www.w3.org/2000/svg`,children:[(0,Y.jsx)(`rect`,{x:`10`,y:`10`,width:`400`,height:`115`,rx:`30`,fill:`#B5E2DC`}),(0,Y.jsx)(`rect`,{x:`10`,y:`153`,width:`300`,height:`115`,rx:`30`,fill:`#F4DA92`}),(0,Y.jsx)(`rect`,{x:`10`,y:`295`,width:`200`,height:`115`,rx:`30`,fill:`#F7C0B5`})]})}var XD=(0,y.createContext)({id:null,open:()=>{},close:()=>{},openAutomatically:()=>{},closeAutomatically:()=>{},locked:!1,lock:()=>{},unlock:()=>{}});function ZD(){return(0,y.useContext)(XD)}function QD({children:e,selector:t=null}){let[n,r]=(0,y.useState)(!1),[i,a]=(0,y.useState)(!1),o=(0,y.useRef)(null),[s,c]=Ua(),l=Wi(),u=Vi(),d=s.get(`open`),f={id:d,open:e=>{r(!0),s.set(`open`,e),c(s,{state:u.state})},close:()=>{i||(n?l(-1):(s.delete(`open`),c(s)))},openAutomatically:e=>{o.current=e,s.set(`open`,e),c(s,{replace:!0,state:u.state})},closeAutomatically:()=>{o.current!==null&&o.current===d&&(o.current=null,s.delete(`open`),c(s,{replace:!0,state:u.state}))},locked:i,lock:()=>{a(!0)},unlock:()=>{a(!1)}};return(0,Y.jsxs)(XD.Provider,{value:f,children:[e,t]})}function $D(){let e=ZD(),{t}=go(),{language:n}=Ki();return(0,Y.jsx)(`div`,{children:(0,Y.jsxs)(`button`,{type:`button`,className:`button text`,onClick:()=>{st.languageModalOpen(n),e.open(`language`)},children:[(0,Y.jsx)(X.Language,{}),t(`homeScreen.language`)]})})}function eO(){let e=ZD(),{t}=go(),{language:n}=Ki();return(0,Y.jsx)(`div`,{children:(0,Y.jsxs)(`button`,{type:`button`,className:`button text`,onClick:()=>{st.themeModalOpen(n),e.open(`theme`)},children:[(0,Y.jsx)(X.Theme,{}),t(`settingsModal.theme`)]})})}function tO(){let e=ZD(),{t}=go(),{language:n}=Ki();return(0,Y.jsx)(`div`,{children:(0,Y.jsxs)(`button`,{type:`button`,className:`button text`,onClick:()=>{e.open(`faq`),st.faq(n)},children:[(0,Y.jsx)(X.FAQ,{}),t(`faq.title`)]})})}var nO={gamesList:`_gamesList_1utoz_1`,game:`_game_1utoz_1`,gameLogo:`_gameLogo_1utoz_17`,gameName:`_gameName_1utoz_21`,legalLinks:`_legalLinks_1utoz_27`,copyright:`_copyright_1utoz_35`,newTag:`_newTag_1utoz_43`},rO=`CONTEXTO`,iO=20,aO=[{name:`CONTEXTO`,Logo:X.Contexto,url:`https://contexto.me`,releaseDate:`2022-02-23`}
23,{name:`CONEXO`,Logo:X.Conexo,url:`https://conexo.ws`,releaseDate:`2023-10-01`},{name:`LETROSO`,Logo:X.Letroso,url:`https://letroso.com`,releaseDate:`2024-09-01`},{name:`EXPRESSO`,Logo:X.Expresso,url:`https://expresso.ac`,releaseDate:`2026-03-01`},{name:`ORDENO`,Logo:X.Ordeno,url:`https://ordeno.ws`,devOnly:!0,releaseDate:`2026-11-01`}],oO=aO.find(e=>e.name===rO);function sO({Logo:e,name:t,url:n,releaseDate:r,devOnly:i}){let{t:a}=go();if(i||!i&&(0,N.default)().isBefore((0,N.default)(r)))return null;let o=!i&&(0,N.default)().diff((0,N.default)(r),`months`)<1;return(0,Y.jsxs)(`a`,{className:nO.game,href:n,target:`_blank`,rel:`noopener noreferrer`,children:[(0,Y.jsx)(`div`,{className:nO.gameLogo,children:(0,Y.jsx)(e,{size:iO})}),(0,Y.jsx)(`div`,{className:nO.gameName,children:t}),o&&(0,Y.jsx)(`div`,{className:nO.newTag,children:a(`footer.new`)})]})}function cO(){let e=(0,N.default)(oO.releaseDate).year(),t=(0,N.default)().year();return e===t?`${t}`:`${e}–${t}`}function lO(){let{t:e}=go();return(0,Y.jsxs)(`div`,{className:`footer`,style:{marginTop:40},children:[(0,Y.jsx)(`div`,{className:`company-logo`,children:(0,Y.jsx)(`a`,{href:`https://daydash.com`,target:`_blank`,rel:`noopener noreferrer`,children:(0,Y.jsx)(X.Daydash,{})})}),(0,Y.jsx)(`div`,{className:nO.gamesList,children:aO.map(e=>(0,Y.jsx)(sO,{...e},e.name))}),(0,Y.jsxs)(`div`,{className:nO.legalLinks,children:[(0,Y.jsx)(`a`,{href:`/terms.html`,target:`_blank`,rel:`noopener noreferrer`,children:e(`footer.termsOfService`)}),(0,Y.jsx)(`a`,{href:`/privacy.html`,target:`_blank`,rel:`noopener noreferrer`,children:e(`footer.privacyPolicy`)}),(0,Y.jsx)(`a`,{href:`/refund.html`,target:`_blank`,rel:`noopener noreferrer`,children:e(`footer.refundPolicy`)})]}),(0,Y.jsx)(`div`,{className:nO.copyright,children:e(`footer.copyright`,{years:cO()})})]})}function uO({children:e,onClose:t,closeOnMaskClick:n=!0,backdropClassName:r=``,closeIcon:i=(0,Y.jsx)(`span`,{className:`material-symbols-rounded`,children:`close`})}){let a=()=>{},o=ZD();return n&&(a=t),(0,Y.jsx)(`div`,{className:`modal-bg ${r}`.trim(),onClick:a,children:(0,Y.jsxs)(`div`,{className:`modal-wrapper`,children:[!o.locked&&(0,Y.jsx)(`div`,{className:`modal-close-button`,onClick:e=>{t(),e.stopPropagation()},children:i}),(0,Y.jsx)(`div`,{className:`modal`,onClick:e=>{e.stopPropagation()},children:e})]})})}function dO(e){return(0,Y.jsx)(uO,{backdropClassName:`top-ad-padding bottom-ad-padding`,closeIcon:(0,Y.jsx)(X.Close,{}),...e})}function fO(){let{t:e}=go(),{language:t}=Ki();return(0,Y.jsxs)(`button`,{className:`button small`,type:`button`,onClick:()=>{st.videoTutorialButtonClick(t),window.open(e(`videoTutorialButton.link`),`_blank`,`noopener,noreferrer`)},children:[(0,Y.jsx)(X.VideoTutorial,{}),e(`videoTutorialButton.text`)]})}function pO(){let{language:e}=Ki(),{t}=go();return(0,Y.jsxs)(`div`,{children:[(0,Y.jsxs)(`div`,{className:`modal-title`,children:[(0,Y.jsx)(X.QuestionMark,{}),(0,Y.jsx)(`h2`,{children:t(`How to play`)})]}),e===`pt`&&(0,Y.jsx)(`div`,{style:{margin:`15px 0 20px 0`,textAlign:`center`},children:(0,Y.jsx)(fO,{})}),(0,Y.jsx)(`p`,{children:t(`howToPlayText.p1`)}),(0,Y.jsx)(`p`,{children:t(`howToPlayText.p2`)}),(0,Y.jsx)(`p`,{children:t(`howToPlayText.p3`)}),(0,Y.jsx)(`p`,{children:t(`howToPlayText.p4`)})]})}var mO={item:{display:`flex`,margin:`20px 0`},itemName:{minWidth:`30%`,paddingRight:10},itemOptions:{maxWidth:`70%`},container:{display:`flex`,cursor:`pointer`,paddingBottom:10,fontWeight:`var(--normal-weight)`},input:{paddingRight:10},description:{fontSize:14,opacity:.8}};function hO({tipSetting:e,onTipSettingChange:t,order:n,onOrderChange:r}){let{t:i}=go();return(0,Y.jsxs)(`div`,{children:[(0,Y.jsxs)(`div`,{className:`modal-title`,children:[(0,Y.jsx)(X.Settings,{}),(0,Y.jsx)(`h2`,{children:i(`Settings`)})]}),(0,Y.jsxs)(`div`,{style:mO.item,children:[(0,Y.jsx)(`div`,{style:mO.itemName,children:i(`settingsModal.tips`)}),(0,Y.jsxs)(`div`,{style:mO.itemOptions,children:[(0,Y.jsxs)(`div`,{style:mO.container,onClick:()=>t(`half`),children:[(0,Y.jsx)(`div`,{style:mO.input,children:(0,Y.jsx)(`input`,{type:`radio`,checked:e===`half`,readOnly:!0})}),(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(`div`,{children:i(`settingsModal.easy`)}),(0,Y.jsx)(`div`,{style:mO.description,children:i(`settingsModal.easyExplanation`)})]})]}),(0,Y.jsxs)(`div`,{style:mO.container,onClick:()=>t(`next`),children:[(0,Y.jsx)(`div`,{style:mO.input,children:(0,Y.jsx)(`input`,{type:`radio`,checked:e===`next`,readOnly:!0})}),(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(`div`,{children:i(`settingsModal.medium`)}),(0,Y.jsx)(`div`,{style:mO.description,children:i(`settingsModal.mediumExplanation`)})]})]}),(0,Y.jsxs)(`div`,{style:mO.container,onClick:()=>t(`random`),children:[(0,Y.jsx)(`div`,{style:mO.input,children:(0,Y.jsx)(`input`,{type:`radio`,checked:e===`random`,readOnly:!0})}),(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(`div`,{children:i(`settingsModal.hard`)}),(0,Y.jsx)(`div`,{style:mO.description,children:i(`settingsModal.hardExplanation`)})]})]})]})]}),(0,Y.jsxs)(`div`,{style:mO.item,children:[(0,Y.jsx)(`div`,{style:mO.itemName,children:i(`settingsModal.order`)}),(0,Y.jsxs)(`div`,{style:mO.itemOptions,children:[(0,Y.jsxs)(`div`,{style:mO.container,onClick:()=>r(`similarity`),children:[(0,Y.jsx)(`div`,{style:mO.input,children:(0,Y.jsx)(`input`,{type:`radio`,checked:n===`similarity`,readOnly:!0})}),(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(`div`,{children:i(`settingsModal.similarity`)}),(0,Y.jsx)(`div`,{style:mO.description})]})]}),(0,Y.jsxs)(`div`,{style:mO.container,onClick:()=>r(`guess`),children:[(0,Y.jsx)(`div`,{style:mO.input,children:(0,Y.jsx)(`input`,{type:`radio`,checked:n===`guess`,readOnly:!0})}),(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(`div`,{children:i(`settingsModal.guess`)}),(0,Y.jsx)(`div`,{style:mO.description})]})]})]})]})]})}function gO({onConfirm:e,onCancel:t}){let{t:n}=go();return(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(`p`,{style:{textAlign:`center`}
23,children:n(`giveUpModalText`)}),(0,Y.jsxs)(`div`,{style:{textAlign:`center`},children:[(0,Y.jsx)(`button`,{type:`button`,className:`confirm-button`,onClick:e,children:n(`Yes`)}),(0,Y.jsx)(`button`,{type:`button`,className:`confirm-button`,onClick:t,children:n(`No`)})]})]})}var _O=s(((e,t)=>{t.exports=`SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED`})),vO=s(((e,t)=>{var n=_O();function r(){}function i(){}i.resetWarningCache=r,t.exports=function(){function e(e,t,r,i,a,o){if(o!==n){var s=Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw s.name=`Invariant Violation`,s}}e.isRequired=e;function t(){return e}var a={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:r};return a.PropTypes=a,a}})),yO=u(s(((e,t)=>{t.exports=vO()()}))());function bO(e,t){if(!(e instanceof t))throw TypeError(`Cannot call a class as a function`)}function xO(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,`value`in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function SO(e,t,n){return t&&xO(e.prototype,t),n&&xO(e,n),e}function CO(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wO(){return(wO=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e}).apply(this,arguments)}function TO(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function EO(e,t){if(typeof t!=`function`&&t!==null)throw TypeError(`Super expression must either be null or a function`);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&OO(e,t)}function DO(e){return(DO=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function OO(e,t){return(OO=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function kO(e){if(e===void 0)throw ReferenceError(`this hasn't been initialised - super() hasn't been called`);return e}function AO(e,t){return!t||typeof t!=`object`&&typeof t!=`function`?kO(e):t}function jO(e){var t=function(){if(typeof Reflect>`u`||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy==`function`)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch{return!1}}();return function(){var n,r=DO(e);if(t){var i=DO(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return AO(this,n)}}var MO={return:13,arrowLeft:37,arrowUp:38,arrowRight:39,arrowDown:40,space:32};MO.keyCodes=Object.keys(MO).reduce((function(e,t){return e[MO[t]]=t,e}),{});var NO={"faq-row-wrapper":`styles_faq-row-wrapper__3vA1D`,"faq-row":`styles_faq-row__2YF3c`,"row-body":`styles_row-body__1NvUo`,"row-title":`styles_row-title__1YiiY`,"no-tabfocus":`styles_no-tabfocus__1HmyD`,"row-title-text":`styles_row-title-text__1MuhU`,"icon-wrapper":`styles_icon-wrapper__2cftw`,closed:`styles_closed__39w54`,"row-content":`styles_row-content__QOGZd`,animate:`styles_animate__3ecdr`,static:`styles_static__3chYW`,expanded:`styles_expanded__3elPy`,expanding:`styles_expanding__2OAFB`,"row-content-text":`styles_row-content-text__2sgAB`};(function(e,t){t===void 0&&(t={});var n=t.insertAt;if(e&&typeof document<`u`){var r=document.head||document.getElementsByTagName(`head`)[0],i=document.createElement(`style`);i.type=`text/css`,n===`top`&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}})(`.styles_faq-row-wrapper__3vA1D {
24  background-color: var(--faq-bg-color, white); }
25  .styles_faq-row-wrapper__3vA1D h2 {
26    margin: 0;
27    color: var(--title-text-color, black);
28    font-size: var(--title-text-size, 30px); }
29  .styles_faq-row-wrapper__3vA1D .styles_faq-row__2YF3c {
30    display: flex;
31    justify-content: space-between;
32    padding: 5px 0;
33    border-bottom: 1px solid #ccc; }
34  .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c {
35    flex-direction: column;
36    position: relative; }
37    .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY {
38      padding: 10px 0;
39      display: flex;
40      justify-content: space-between;
41      color: var(--row-title-color, black);
42      font-size: var(--row-title-text-size, large);
43      cursor: pointer;
44      align-items: center; }
45      .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY.styles_no-tabfocus__1HmyD {
46        outline: none; }
47      .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY .styles_row-title-text__1MuhU {
48        padding-right: 3em; }
49      .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY .styles_icon-wrapper__2cftw {
50        max-width: 25px;
51        max-height: 25px;
52        margin: 0;
53        padding: 0;
54        color: var(--arrow-color, black);
55        transform: rotate(0deg);
56        transition: transform var(--transition-duration, 0.3s);
57        position: absolute;
58        top: 13px;
59        right: 12px; }
60        .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY .styles_icon-wrapper__2cftw svg {
61          width: 100%;
62          height: 100%; }
63        .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY .styles_icon-wrapper__2cftw svg {
64          fill: var(--arrow-color, black); }
65      .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY.styles_closed__39w54 + .styles_row-content__QOGZd {
66        visibility: hidden; }
67        .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY.styles_closed__39w54 + .styles_row-content__QOGZd.styles_animate__3ecdr {
68          opacity: 0;
69          transition: height var(--transition-duration, 0.3s); }
70        .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY.styles_closed__39w54 + .styles_row-content__QOGZd.styles_static__3chYW {
71          display: none; }
72      .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY.styles_expanded__3elPy + .styles_row-content__QOGZd {
73        visibility: visible; }
74        .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY.styles_expanded__3elPy + .styles_row-content__QOGZd.styles_static__3chYW {
75          display: block; }
76      .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY.styles_expanded__3elPy .styles_icon-wrapper__2cftw {
77        transform: rotate(180deg); }
78      .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-title__1YiiY.styles_expanding__2OAFB .styles_icon-wrapper__2cftw {
79        transform: rotate(180deg); }
80    .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-content__QOGZd {
81      overflow: hidden;
82      transition: height var(--transition-duration, 0.3s);
83      transition-timing-function: var(--timing-function, ease); }
84      .styles_faq-row-wrapper__3vA1D .styles_row-body__1NvUo .styles_faq-row__2YF3c .styles_row-content__QOGZd .styles_row-content-text__2sgAB {
85        color: var(--row-content-color, black);
86        font-size: var(--row-content-text-size, medium);
87        padding: var(--row-content-padding-top, 0) var(--row-content-padding-right, 0) var(--row-content-padding-bottom, 0) var(--row-content-padding-left, 0); }
88`);
88var PO=function(e){EO(n,y.PureComponent);var t=jO(n);function n(){var e;bO(this,n);var r=[...arguments];return CO(kO(e=t.call.apply(t,[this].concat(r))),`state`,{isExpanded:!1,ref:y.createRef(),rowRef:y.createRef(),height:0,rowClassName:`closed`}),CO(kO(e),`finishTransition`,(function(){var t=e.state.isExpanded;e.setState({rowClassName:t?`expanded`:`closed`})})),CO(kO(e),`toggle`,(function(t){e.setState((function(){return{isExpanded:t}}))})),CO(kO(e),`expand`,(function(){e.setState((function(e){return{isExpanded:!e.isExpanded}}))})),CO(kO(e),`keyPress`,(function(t){var n=t.keyCode?t.keyCode:t.which;switch(MO.keyCodes[n]){case`space`:case`return`:t.preventDefault(),t.stopPropagation(),e.expand()}})),CO(kO(e),`setHeight`,(function(){var t=e.state,n=t.ref,r=t.isExpanded,i=n.current.scrollHeight;e.setState({height:r?i:0})})),e}return SO(n,[{key:`getSnapshotBeforeUpdate`,value:function(e,t){var n=t.isExpanded,r=this.state.isExpanded,i=this.props.config,a=(i=i===void 0?{}:i).animate,o=a===void 0||a;return r===n?null:{rowClassName:r?o?`expanding`:`expanded`:o?`closing`:`closed`}}},{key:`componentDidUpdate`,value:function(e,t,n){var r=this.props.config,i=(r=r===void 0?{}:r).animate,a=i===void 0||i;n!==null&&this.setState(function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]==null?{}:arguments[t];t%2?TO(Object(n),!0).forEach((function(t){CO(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):TO(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n),a?this.setHeight:void 0)}},{key:`componentDidMount`,value:function(){var e=this,t=this.state.rowRef;this.props.openOnload&&this.expand(),this.props.getRowOptions&&this.props.getRowOptions({expand:function(){e.toggle(!0)},close:function(){e.toggle(!1)},scrollIntoView:function(e){e?t.current.scrollIntoView(e):t.current.scrollIntoView()}})}},{key:`render`,value:function(){var e=this.props,t=e.data,n=t.title,r=t.content,i=e.config,a=(i=i===void 0?{}:i).animate,o=a===void 0||a,s=i.arrowIcon,c=i.expandIcon,l=i.collapseIcon,u=i.tabFocus,d=u!==void 0&&u,f=this.state,p=f.isExpanded,m=f.ref,h=f.height,g=f.rowClassName,_=f.rowRef,v={onClick:this.expand,role:`button`,"aria-expanded":p,"aria-controls":`react-faq-rowcontent-${this.props.rowid}`,onKeyPress:this.keyPress,onKeyDown:this.keyPress};d&&(v.tabIndex=0);var b={role:`region`,id:`react-faq-rowcontent-${this.props.rowid}`,"aria-expanded":p,"aria-hidden":!p,onTransitionEnd:this.finishTransition};o&&(b.style={height:h});var x=[`row-title`,g,NO[`row-title`],NO[g],d?``:NO[`no-tabfocus`]].filter(Boolean).join(` `),S=null;S=c&&l?p?l:c:s||y.createElement(`div`,{dangerouslySetInnerHTML:{__html:`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="black" width="36px" height="36px"><path d="M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"/><path d="M0 0h24v24H0V0z" fill="none"/></svg>`},className:`arrow-image ${NO[`arrow-image`]}`,alt:`Expand arrow`});var C=[NO[`row-content`],`row-content`,o?NO.animate:NO.static].join(` `),w=[NO[`row-content-text`],`row-content-text`].join(` `),T=r&&typeof r==`string`?y.createElement(`div`,{className:w,dangerouslySetInnerHTML:{__html:r}}):y.createElement(`div`,{className:w},r);return y.createElement(`section`,{className:`faq-row ${NO[`faq-row`]}`,role:`listitem`,ref:_},y.createElement(`div`,wO({className:x},v),y.createElement(`div`,{className:`row-title-text ${NO[`row-title-text`]}`,id:`react-faq-rowtitle-${this.props.rowid}`},n),y.createElement(`span`,{className:`icon-wrapper ${NO[`icon-wrapper`]}`,"aria-hidden":`true`},S)),y.createElement(`div`,wO({className:C},b,{ref:m}),T))}}]),n}();CO(PO,`propTypes`,{config:yO.default.object,data:yO.default.object,rowid:yO.default.number,getRowOptions:yO.default.func,openOnload:yO.default.bool});var FO=function(e){EO(n,y.PureComponent);var t=jO(n);function n(){var e;bO(this,n);var r=[...arguments];return CO(kO(e=t.call.apply(t,[this].concat(r))),`state`,{rowsOption:[]}),e}return SO(n,[{key:`componentDidMount`,value:function(){this.props.getRowOptions&&this.props.getRowOptions(this.state.rowsOption)}},{key:`render`,value:function(){var e=this,t=this.props.data||{}
88,n=t.title,r=t.rows,i=r===void 0?[]:r,a=this.props,o=a.styles,s=o===void 0?{}:o,c=a.config,l=((c=c===void 0?{}:c).animate,c.openOnload),u={"--faq-bg-color":s.bgColor,"--title-text-color":s.titleTextColor,"--title-text-size":s.titleTextSize,"--row-title-color":s.rowTitleColor,"--row-title-text-size":s.rowTitleTextSize,"--row-content-color":s.rowContentColor,"--row-content-text-size":s.rowContentTextSize,"--row-content-padding-top":s.rowContentPaddingTop,"--row-content-padding-bottom":s.rowContentPaddingBottom,"--row-content-padding-right":s.rowContentPaddingRight,"--row-content-padding-left":s.rowContentPaddingLeft,"--arrow-color":s.arrowColor,"--transition-duration":s.transitionDuration,"--timing-function":s.timingFunc},d=`faq-row-wrapper ${NO[`faq-row-wrapper`]}`,f=`faq-title ${NO[`faq-row`]}`,p=`faq-body ${NO[`row-body`]}`;return y.createElement(`div`,{className:d,style:u},n?y.createElement(`section`,{className:f},y.createElement(`h2`,null,n)):null,i.length?y.createElement(`section`,{className:p,role:`list`},i.map((function(t,n){return y.createElement(PO,{openOnload:l===n,data:t,key:n,rowid:n+1,config:e.props.config,getRowOptions:function(t){return e.state.rowsOption[n]=t}})}))):null)}}]),n}();CO(FO,`propTypes`,{data:yO.default.object,styles:yO.default.object,config:yO.default.object,getRowOptions:yO.default.func});function IO({limit:e}){let{t}=go(),n={rows:[{title:t(`faq.q1`),content:t(`faq.a1`)},{title:t(`faq.q2`),content:t(`faq.a2`)},{title:t(`faq.q3`),content:t(`faq.a3`)},{title:t(`faq.q4`),content:t(`faq.a4`)},{title:t(`faq.q5`),content:t(`faq.a5`)},{title:t(`faq.q6`),content:t(`faq.a6`)}].slice(0,e)};return(0,Y.jsxs)(`div`,{children:[(0,Y.jsxs)(`div`,{className:`modal-title`,children:[(0,Y.jsx)(X.FAQ,{}),(0,Y.jsx)(`h2`,{children:t(`faq.title`)})]}),(0,Y.jsx)(FO,{data:n})]})}function LO({text:e}){return(0,Y.jsx)(`div`,{className:`loading-text`,children:e.split(``).map((e,t)=>(0,Y.jsx)(`span`,{style:{"--i":t},className:`visible`,children:e===` `?`\xA0`:e},`${e}-${t}`))})}var RO=e=>{let t=e=>.5*Math.exp(-.5*e),n=t(0),r=t(100),i=(t(e/4e4*100)-r)/(n-r)*100;return i<1&&(i=1),`${i}%`},zO=e=>e<300?`var(--green)`:e<1500?`var(--yellow)`:`var(--red)`;function BO({word:e,distance:t,highlight:n,note:r,hint:i}){return(0,Y.jsxs)(`div`,{className:`row-wrapper ${n?`current`:``} ${r?`faded`:``}`,children:[(0,Y.jsx)(`div`,{className:`outer-bar`,children:(0,Y.jsx)(`div`,{className:`inner-bar`,style:{width:RO(t),backgroundColor:zO(t)}})}),(0,Y.jsxs)(`div`,{className:`row`,children:[(0,Y.jsxs)(`span`,{className:`row-word`,children:[e,i&&(0,Y.jsx)(X.LightBulb,{className:`row-hint-icon`}),r&&(0,Y.jsx)(`span`,{className:`row-note`,children:r})]}),(0,Y.jsx)(`span`,{children:t+1})]})]},e)}function VO({words:e,highlights:t=[],order:n=`similarity`}){let r=e.slice();return n===`similarity`&&r.sort((e,t)=>e.distance-t.distance),(0,Y.jsx)(`div`,{className:`guess-history`,children:r.map(e=>(0,Y.jsx)(BO,{word:e.word,distance:e.distance,highlight:t.includes(e.word),hint:e.hint},e.word))})}function HO({loading:e,data:t}){let{t:n}=go();if(e)return(0,Y.jsx)(LO,{text:n(`loading`)});if(t.length<1)return(0,Y.jsx)(`p`,{children:n(`oops`)});let r=t.map((e,t)=>({word:e,distance:t}));return(0,Y.jsxs)(`div`,{children:[(0,Y.jsx)(`p`,{style:{padding:`0 10px`},children:n(`closestModal.p2`,{number:t.length})}),(0,Y.jsx)(`div`,{children:(0,Y.jsx)(VO,{words:r})})]})}function UO(){let{language:e}=Ki(),{t}=go();return(0,Y.jsxs)(`div`,{children:[(0,Y.jsxs)(`div`,{className:`modal-title`,children:[(0,Y.jsx)(X.Language,{}),(0,Y.jsx)(`h2`,{children:t(`Language`)})]}),(0,Y.jsxs)(`div`,{className:`modal-content`,children:[(0,Y.jsx)(za,{to:`/pt/`,replace:!0,onClick:()=>st.languageSetting(`pt`),children:(0,Y.jsxs)(`div`,{className:`settings-radio-button`,children:[(0,Y.jsx)(`input`,{type:`radio`,checked:e===`pt`,readOnly:!0}),(0,Y.jsx)(`div`,{className:`settings-radio-button-label`,children:`Português`})]})}),(0,Y.jsx)(za,{to:`/en/`,replace:!0,onClick:()=>st.languageSetting(`en`),children:(0,Y.jsxs)(`div`,{className:`settings-radio-button`,children:[(0,Y.jsx)(`input`,{type:`radio`,checked:e===`en`,readOnly:!0}),(0,Y.jsx)(`div`,{className:`settings-radio-button-label`,children:`English`})]})}),(0,Y.jsx)(za,{to:`/es/`,replace:!0,onClick:()=>st.languageSetting(`es`),children:(0,Y.jsxs)(`div`,{className:`settings-radio-button`,children:[(0,Y.jsx)(`input`,{type:`radio`,checked:e===`es`,readOnly:!0}),(0,Y.jsx)(`div`,{className:`settings-radio-button-label`,children:`Español`})]})})]})]})}var WO;(function(e){e.Dark=`DARK`,e.Light=`LIGHT`,e.Default=`DEFAULT`})(WO||={});var GO;(function(e){e.None=`NONE`,e.Slide=`SLIDE`,e.Fade=`FADE`})(GO||={});var KO=j(`StatusBar`),qO=j(`SplashScreen`,{web:()=>xe(()=>import(`./web-Bzf9pSbg.js`).then(e=>new e.SplashScreenWeb),[])}),JO=`#fffbf5`,YO=`#0f172a`;async function XO(e){if(!A.isNativePlatform())return;let t=window.matchMedia(`(prefers-color-scheme: dark)`).matches,n=e===`dark`||e===null&&t;await KO.setOverlaysWebView({overlay:!1}),await KO.setStyle({style:n?WO.Dark:WO.Light}
88),A.getPlatform()===`android`&&await KO.setBackgroundColor({color:n?YO:JO})}async function ZO(){A.isNativePlatform()&&await qO.hide()}function QO(){let{t:e}=go(),[t,n]=(0,y.useState)(Cn),r=e=>{let t=Tn(e);n(e),st.themeSetting(e),XO(t)};return(0,Y.jsxs)(`div`,{children:[(0,Y.jsxs)(`div`,{className:`modal-title`,children:[(0,Y.jsx)(X.Theme,{}),(0,Y.jsx)(`h2`,{children:e(`settingsModal.theme`)})]}),(0,Y.jsx)(`div`,{className:`modal-content`,children:yn().map(n=>(0,Y.jsxs)(`div`,{className:`settings-radio-button`,onClick:()=>r(n),children:[(0,Y.jsx)(`div`,{children:(0,Y.jsx)(`input`,{type:`radio`,checked:t===n,readOnly:!0})}),(0,Y.jsx)(`div`,{className:`settings-radio-button-label`,children:(0,Y.jsx)(`div`,{children:e(`themeModal.${n}`)})})]},n))})]})}var $O;(function(e){e.IndexedDbLocal=`INDEXED_DB_LOCAL`,e.InMemory=`IN_MEMORY`,e.BrowserLocal=`BROWSER_LOCAL`,e.BrowserSession=`BROWSER_SESSION`})($O||={});var ek;(function(e){e.APPLE=`apple.com`,e.FACEBOOK=`facebook.com`,e.GAME_CENTER=`gc.apple.com`,e.GITHUB=`github.com`,e.GOOGLE=`google.com`,e.MICROSOFT=`microsoft.com`,e.PLAY_GAMES=`playgames.google.com`,e.TWITTER=`twitter.com`,e.YAHOO=`yahoo.com`,e.PASSWORD=`password`,e.PHONE=`phone`})(ek||={});var tk=j(`FirebaseAuthentication`,{web:()=>xe(()=>import(`./web-D86DfMlJ.js`).then(e=>new e.FirebaseAuthenticationWeb),[])}),nk={"gsi-material-button":`_gsi-material-button_70nuj_1`,"gsi-material-button-icon":`_gsi-material-button-icon_70nuj_41`,"gsi-material-button-content-wrapper":`_gsi-material-button-content-wrapper_70nuj_48`,"gsi-material-button-contents":`_gsi-material-button-contents_70nuj_62`,"gsi-material-button-state":`_gsi-material-button-state_70nuj_72`};function rk({onClick:e,children:t}){return(0,Y.jsxs)(`button`,{className:nk[`gsi-material-button`],onClick:e,type:`button`,children:[(0,Y.jsx)(`div`,{className:nk[`gsi-material-button-state`]}),(0,Y.jsxs)(`div`,{className:nk[`gsi-material-button-content-wrapper`],children:[(0,Y.jsx)(`div`,{className:nk[`gsi-material-button-icon`],children:(0,Y.jsxs)(`svg`,{version:`1.1`,xmlns:`http://www.w3.org/2000/svg`,viewBox:`0 0 48 48`,style:{display:`block`},children:[(0,Y.jsx)(`path`,{fill:`#EA4335`,d:`M24 9.5c3.54 0 6.71 1.22 9.21 3.6l6.85-6.85C35.9 2.38 30.47 0 24 0 14.62 0 6.51 5.38 2.56 13.22l7.98 6.19C12.43 13.72 17.74 9.5 24 9.5z`}),(0,Y.jsx)(`path`,{fill:`#4285F4`,d:`M46.98 24.55c0-1.57-.15-3.09-.38-4.55H24v9.02h12.94c-.58 2.96-2.26 5.48-4.78 7.18l7.73 6c4.51-4.18 7.09-10.36 7.09-17.65z`}),(0,Y.jsx)(`path`,{fill:`#FBBC05`,d:`M10.53 28.59c-.48-1.45-.76-2.99-.76-4.59s.27-3.14.76-4.59l-7.98-6.19C.92 16.46 0 20.12 0 24c0 3.88.92 7.54 2.56 10.78l7.97-6.19z`}),(0,Y.jsx)(`path`,{fill:`#34A853`,d:`M24 48c6.48 0 11.93-2.13 15.89-5.81l-7.73-6c-2.15 1.45-4.92 2.3-8.16 2.3-6.26 0-11.57-4.22-13.47-9.91l-7.98 6.19C6.51 42.62 14.62 48 24 48z`}),(0,Y.jsx)(`path`,{fill:`none`,d:`M0 0h48v48H0z`})]})}),(0,Y.jsx)(`span`,{className:nk[`gsi-material-button-contents`],children:t||`Sign in with Google`}),(0,Y.jsx)(`span`,{style:{display:`none`},children:t||`Sign in with Google`})]})]})}function ik(e,t){t===void 0&&(t={});var n=t.insertAt;if(e&&typeof document<`u`){var r=document.head||document.getElementsByTagName(`head`)[0],i=document.createElement(`style`);i.type=`text/css`,n===`top`&&r.firstChild?r.insertBefore(i,r.firstChild):r.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}ik(`.react-loading-indicator-normalize,
89[class$=rli-bounding-box] {
90  font-size: 1rem;
91  display: inline-block;
92  box-sizing: border-box;
93  text-align: unset;
94  isolation: isolate;
95}
96
97.rli-d-i-b {
98  display: inline-block;
99}
100
101.rli-text-format {
102  white-space: nowrap;
103  overflow: hidden;
104  text-overflow: ellipsis;
105  font-weight: 600;
106  width: 90%;
107  text-transform: uppercase;
108  text-align: center;
109  font-size: 0.7em;
110  letter-spacing: 0.5px;
111  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Avenir Next", "Avenir", "Segoe UI", "Lucida Grande", "Helvetica Neue", "Helvetica", "Fira Sans", "Roboto", "Noto", "Droid Sans", "Cantarell", "Oxygen", "Ubuntu", "Franklin Gothic Medium", "Century Gothic", "Liberation Sans", sans-serif;
112}`);var ak=function(){return ak=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},ak.apply(this,arguments)};function ok(e){return ok=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},ok(e)}var sk=/^\s+/,ck=/\s+$/;function Z(e,t){if(t||={},(e||=``)instanceof Z)return e;if(!(this instanceof Z))return new Z(e,t);var n=function(e){var t={r:0,g:0,b:0},n=1,r=null,i=null,a=null,o=!1,s=!1;typeof e==`string`&&(e=function(e){e=e.replace(sk,``).replace(ck,``).toLowerCase();var t,n=!1;if(Tk[e])e=Tk[e],n=!0;else if(e==`transparent`)return{r:0,g:0,b:0,a:0,format:`name`};return(t=Rk.rgb.exec(e))?{r:t[1],g:t[2],b:t[3]}:(t=Rk.rgba.exec(e))?{r:t[1],g:t[2],b:t[3],a:t[4]}:(t=Rk.hsl.exec(e))?{h:t[1],s:t[2],l:t[3]}:(t=Rk.hsla.exec(e))?{h:t[1],s:t[2],l:t[3],a:t[4]}:(t=Rk.hsv.exec(e))?{h:t[1],s:t[2],v:t[3]}:(t=Rk.hsva.exec(e))?{h:t[1],s:t[2],v:t[3],a:t[4]}:(t=Rk.hex8.exec(e))?{r:Ak(t[1]),g:Ak(t[2]),b:Ak(t[3]),a:Pk(t[4]),format:n?`name`:`hex8`}:(t=Rk.hex6.exec(e))?{r:Ak(t[1]),g:Ak(t[2]),b:Ak(t[3]),format:n?`name`:`hex`}:(t=Rk.hex4.exec(e))?{r:Ak(t[1]+``+t[1]),g:Ak(t[2]+``+t[2]),b:Ak(t[3]+``+t[3]),a:Pk(t[4]+``+t[4]),format:n?`name`:`hex8`}:(t=Rk.hex3.exec(e))?{r:Ak(t[1]+``+t[1]),g:Ak(t[2]+``+t[2]),b:Ak(t[3]+``+t[3]),format:n?`name`:`hex`}:!1}(e)),ok(e)==`object`&&(zk(e.r)&&zk(e.g)&&zk(e.b)?(c=e.r,l=e.g,u=e.b,t={r:255*Ok(c,255),g:255*Ok(l,255),b:255*Ok(u,255)},o=!0,s=String(e.r).substr(-1)===`%`?`prgb`:`rgb`):zk(e.h)&&zk(e.s)&&zk(e.v)?(r=Mk(e.s),i=Mk(e.v),t=function(e,t,n){e=6*Ok(e,360),t=Ok(t,100),n=Ok(n,100);var r=Math.floor(e),i=e-r,a=n*(1-t),o=n*(1-i*t),s=n*(1-(1-i)*t),c=r%6,l=[n,o,a,a,s,n][c],u=[s,n,n,o,a,a][c],d=[a,a,s,n,n,o][c];return{r:255*l,g:255*u,b:255*d}}(e.h,r,i),o=!0,s=`hsv`):zk(e.h)&&zk(e.s)&&zk(e.l)&&(r=Mk(e.s),a=Mk(e.l),t=function(e,t,n){var r,i,a;function o(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}if(e=Ok(e,360),t=Ok(t,100),n=Ok(n,100),t===0)r=i=a=n;else{var s=n<.5?n*(1+t):n+t-n*t,c=2*n-s;r=o(c,s,e+1/3),i=o(c,s,e),a=o(c,s,e-1/3)}return{r:255*r,g:255*i,b:255*a}}(e.h,r,a),o=!0,s=`hsl`),e.hasOwnProperty(`a`)&&(n=e.a));var c,l,u;return n=Dk(n),{ok:o,format:e.format||s,r:Math.min(255,Math.max(t.r,0)),g:Math.min(255,Math.max(t.g,0)),b:Math.min(255,Math.max(t.b,0)),a:n}}(e);this._originalInput=e,this._r=n.r,this._g=n.g,this._b=n.b,this._a=n.a,this._roundA=Math.round(100*this._a)/100,this._format=t.format||n.format,this._gradientType=t.gradientType,this._r<1&&(this._r=Math.round(this._r)),this._g<1&&(this._g=Math.round(this._g)),this._b<1&&(this._b=Math.round(this._b)),this._ok=n.ok}
112function lk(e,t,n){e=Ok(e,255),t=Ok(t,255),n=Ok(n,255);var r,i,a=Math.max(e,t,n),o=Math.min(e,t,n),s=(a+o)/2;if(a==o)r=i=0;else{var c=a-o;switch(i=s>.5?c/(2-a-o):c/(a+o),a){case e:r=(t-n)/c+(t<n?6:0);break;case t:r=(n-e)/c+2;break;case n:r=(e-t)/c+4}r/=6}return{h:r,s:i,l:s}}function uk(e,t,n){e=Ok(e,255),t=Ok(t,255),n=Ok(n,255);var r,i,a=Math.max(e,t,n),o=Math.min(e,t,n),s=a,c=a-o;if(i=a===0?0:c/a,a==o)r=0;else{switch(a){case e:r=(t-n)/c+(t<n?6:0);break;case t:r=(n-e)/c+2;break;case n:r=(e-t)/c+4}r/=6}return{h:r,s:i,v:s}}function dk(e,t,n,r){var i=[jk(Math.round(e).toString(16)),jk(Math.round(t).toString(16)),jk(Math.round(n).toString(16))];return r&&i[0].charAt(0)==i[0].charAt(1)&&i[1].charAt(0)==i[1].charAt(1)&&i[2].charAt(0)==i[2].charAt(1)?i[0].charAt(0)+i[1].charAt(0)+i[2].charAt(0):i.join(``)}function fk(e,t,n,r){return[jk(Nk(r)),jk(Math.round(e).toString(16)),jk(Math.round(t).toString(16)),jk(Math.round(n).toString(16))].join(``)}function pk(e,t){t=t===0?0:t||10;var n=Z(e).toHsl();return n.s-=t/100,n.s=kk(n.s),Z(n)}function mk(e,t){t=t===0?0:t||10;var n=Z(e).toHsl();return n.s+=t/100,n.s=kk(n.s),Z(n)}function hk(e){return Z(e).desaturate(100)}function gk(e,t){t=t===0?0:t||10;var n=Z(e).toHsl();return n.l+=t/100,n.l=kk(n.l),Z(n)}function _k(e,t){t=t===0?0:t||10;var n=Z(e).toRgb();return n.r=Math.max(0,Math.min(255,n.r-Math.round(-t/100*255))),n.g=Math.max(0,Math.min(255,n.g-Math.round(-t/100*255))),n.b=Math.max(0,Math.min(255,n.b-Math.round(-t/100*255))),Z(n)}function vk(e,t){t=t===0?0:t||10;var n=Z(e).toHsl();return n.l-=t/100,n.l=kk(n.l),Z(n)}function yk(e,t){var n=Z(e).toHsl(),r=(n.h+t)%360;return n.h=r<0?360+r:r,Z(n)}function bk(e){var t=Z(e).toHsl();return t.h=(t.h+180)%360,Z(t)}function xk(e,t){if(isNaN(t)||t<=0)throw Error(`Argument to polyad must be a positive number`);for(var n=Z(e).toHsl(),r=[Z(e)],i=360/t,a=1;a<t;a++)r.push(Z({h:(n.h+a*i)%360,s:n.s,l:n.l}));return r}function Sk(e){var t=Z(e).toHsl(),n=t.h;return[Z(e),Z({h:(n+72)%360,s:t.s,l:t.l}),Z({h:(n+216)%360,s:t.s,l:t.l})]}function Ck(e,t,n){t||=6,n||=30;var r=Z(e).toHsl(),i=360/n,a=[Z(e)];for(r.h=(r.h-(i*t>>1)+720)%360;--t;)r.h=(r.h+i)%360,a.push(Z(r));return a}function wk(e,t){t||=6;for(var n=Z(e).toHsv(),r=n.h,i=n.s,a=n.v,o=[],s=1/t;t--;)o.push(Z({h:r,s:i,v:a})),a=(a+s)%1;return o}Z.prototype={isDark:function(){return this.getBrightness()<128},isLight:function(){return!this.isDark()},isValid:function(){return this._ok},getOriginalInput:function(){return this._originalInput},getFormat:function(){return this._format},getAlpha:function(){return this._a},getBrightness:function(){var e=this.toRgb();return(299*e.r+587*e.g+114*e.b)/1e3},getLuminance:function(){var e,t,n,r=this.toRgb();return e=r.r/255,t=r.g/255,n=r.b/255,.2126*(e<=.03928?e/12.92:((e+.055)/1.055)**2.4)+.7152*(t<=.03928?t/12.92:((t+.055)/1.055)**2.4)+.0722*(n<=.03928?n/12.92:((n+.055)/1.055)**2.4)},setAlpha:function(e){return this._a=Dk(e),this._roundA=Math.round(100*this._a)/100,this},toHsv:function(){var e=uk(this._r,this._g,this._b);return{h:360*e.h,s:e.s,v:e.v,a:this._a}},toHsvString:function(){var e=uk(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.v);return this._a==1?`hsv(`+t+`, `+n+`%, `+r+`%)`:`hsva(`+t+`, `+n+`%, `+r+`%, `+this._roundA+`)`},toHsl:function(){var e=lk(this._r,this._g,this._b);return{h:360*e.h,s:e.s,l:e.l,a:this._a}},toHslString:function(){var e=lk(this._r,this._g,this._b),t=Math.round(360*e.h),n=Math.round(100*e.s),r=Math.round(100*e.l);return this._a==1?`hsl(`+t+`, `+n+`%, `+r+`%)`:`hsla(`+t+`, `+n+`%, `+r+`%, `+this._roundA+`)`},toHex:function(e){return dk(this._r,this._g,this._b,e)},toHexString:function(e){return`#`+this.toHex(e)},toHex8:function(e){return function(e,t,n,r,i){var a=[jk(Math.round(e).toString(16)),jk(Math.round(t).toString(16)),jk(Math.round(n).toString(16)),jk(Nk(r))];return i&&a[0].charAt(0)==a[0].charAt(1)&&a[1].charAt(0)==a[1].charAt(1)&&a[2].charAt(0)==a[2].charAt(1)&&a[3].charAt(0)==a[3].charAt(1)?a[0].charAt(0)+a[1].charAt(0)+a[2].charAt(0)+a[3].charAt(0):a.join(``)}(this._r,this._g,this._b,this._a,e)},toHex8String:function(e){return`#`+this.toHex8(e)},toRgb:function(){return{r:Math.round(this._r),g:Math.round(this._g),b:Math.round(this._b),a:this._a}},toRgbString:function(){return this._a==1?`rgb(`+Math.round(this._r)+`, `+Math.round(this._g)+`, `+Math.round(this._b)+`)`:`rgba(`+Math.round(this._r)+`, `+Math.round(this._g)+`, `+Math.round(this._b)+`, `+this._roundA+`)`},toPercentageRgb:function(){return{r:Math.round(100*Ok(this._r,255))+`%`,g:Math.round(100*Ok(this._g,255))+`%`,b:Math.round(100*Ok(this._b,255))+`%`,a:this._a}},toPercentageRgbString:function(){return this._a==1?`rgb(`+Math.round(100*Ok(this._r,255))+`%, `+Math.round(100*Ok(this._g,255))+`%, `+Math.round(100*Ok(this._b,255))+`%)`:`rgba(`+Math.round(100*Ok(this._r,255))+`%, `+Math.round(100*Ok(this._g,255))+`%, `+Math.round(100*Ok(this._b,255))+`%, `+this._roundA+`)`},toName:function(){return this._a===0?`transparent`:!(this._a<1)&&(Ek[dk(this._r,this._g,this._b,!0)]||!1)},toFilter:function(e){var t=`#`+fk(this._r,this._g,this._b,this._a),n=t,r=this._gradientType?`GradientType = 1, `:``;if(e){var i=Z(e);n=`#`+fk(i._r,i._g,i._b,i._a)}return`progid:DXImageTransform.Microsoft.gradient(`+r+`startColorstr=`+t+`,endColorstr=`+n+`)`},toString:function(e){var t=!!e;e||=this._format;var n=!1,r=this._a<1&&this._a>=0;return t||!r||e!==`hex`&&e!==`hex6`&&e!==`hex3`&&e!==`hex4`&&e!==`hex8`&&e!==`name`?(e===`rgb`&&(n=this.toRgbString()),e===`prgb`&&(n=this.toPercentageRgbString()),e!==`hex`&&e!==`hex6`||(n=this.toHexString()),e===`hex3`&&(n=this.toHexString(!0)),e===`hex4`&&(n=this.toHex8String(!0)),e===`hex8`&&(n=this.toHex8String()),e===`name`&&(n=this.toName()),e===`hsl`&&(n=this.toHslString()),e===`hsv`&&(n=this.toHsvString()),n||this.toHexString()):e===`name`&&this._a===0?this.toName():this.toRgbString()},clone:function(){return Z(this.toString())},_applyModification:function(e,t){var n=e.apply(null,[this].concat([].slice.call(t)));return this._r=n._r,this._g=n._g,this._b=n._b,this.setAlpha(n._a),this},lighten:function(){return this._applyModification(gk,arguments)},brighten:function(){return this._applyModification(_k,arguments)},darken:function(){return this._applyModification(vk,arguments)},desaturate:function(){return this._applyModification(pk,arguments)},saturate:function(){return this._applyModification(mk,arguments)},greyscale:function(){return this._applyModification(hk,arguments)},spin:function(){return this._applyModification(yk,arguments)},_applyCombination:function(e,t){return e.apply(null,[this].concat([].slice.call(t)))},analogous:function(){return this._applyCombination(Ck,arguments)},complement:function(){return this._applyCombination(bk,arguments)},monochromatic:function(){return this._applyCombination(wk,arguments)},splitcomplement:function(){return this._applyCombination(Sk,arguments)},triad:function(){return this._applyCombination(xk,[3])},tetrad:function(){return this._applyCombination(xk,[4])}},Z.fromRatio=function(e,t){if(ok(e)==`object`){var n={};for(var r in e)e.hasOwnProperty(r)&&(n[r]=r===`a`?e[r]:Mk(e[r]));e=n}return Z(e,t)},Z.equals=function(e,t){return!(!e||!t)&&Z(e).toRgbString()==Z(t).toRgbString()},Z.random=function(){return Z.fromRatio({r:Math.random(),g:Math.random(),b:Math.random()})},Z.mix=function(e,t,n){n=n===0?0:n||50;var r=Z(e).toRgb(),i=Z(t).toRgb(),a=n/100;return Z({r:(i.r-r.r)*a+r.r,g:(i.g-r.g)*a+r.g,b:(i.b-r.b)*a+r.b,a:(i.a-r.a)*a+r.a})},Z.readability=function(e,t){var n=Z(e),r=Z(t);return(Math.max(n.getLuminance(),r.getLuminance())+.05)/(Math.min(n.getLuminance(),r.getLuminance())+.05)},Z.isReadable=function(e,t,n){var r,i,a=Z.readability(e,t);switch(i=!1,(r=function(e){var t=((e||={level:`AA`,size:`small`}).level||`AA`).toUpperCase(),n=(e.size||`small`).toLowerCase();return t!==`AA`&&t!==`AAA`&&(t=`AA`),n!==`small`&&n!==`large`&&(n=`small`),{level:t,size:n}}(n)).level+r.size){case`AAsmall`:case`AAAlarge`:i=a>=4.5;break;case`AAlarge`:i=a>=3;break;case`AAAsmall`:i=a>=7}return i},Z.mostReadable=function(e,t,n){var r,i,a,o,s=null,c=0;i=(n||={}).includeFallbackColors,a=n.level,o=n.size;
112for(var l=0;l<t.length;l++)(r=Z.readability(e,t[l]))>c&&(c=r,s=Z(t[l]));return Z.isReadable(e,s,{level:a,size:o})||!i?s:(n.includeFallbackColors=!1,Z.mostReadable(e,[`#fff`,`#000`],n))};var Tk=Z.names={aliceblue:`f0f8ff`,antiquewhite:`faebd7`,aqua:`0ff`,aquamarine:`7fffd4`,azure:`f0ffff`,beige:`f5f5dc`,bisque:`ffe4c4`,black:`000`,blanchedalmond:`ffebcd`,blue:`00f`,blueviolet:`8a2be2`,brown:`a52a2a`,burlywood:`deb887`,burntsienna:`ea7e5d`,cadetblue:`5f9ea0`,chartreuse:`7fff00`,chocolate:`d2691e`,coral:`ff7f50`,cornflowerblue:`6495ed`,cornsilk:`fff8dc`,crimson:`dc143c`,cyan:`0ff`,darkblue:`00008b`,darkcyan:`008b8b`,darkgoldenrod:`b8860b`,darkgray:`a9a9a9`,darkgreen:`006400`,darkgrey:`a9a9a9`,darkkhaki:`bdb76b`,darkmagenta:`8b008b`,darkolivegreen:`556b2f`,darkorange:`ff8c00`,darkorchid:`9932cc`,darkred:`8b0000`,darksalmon:`e9967a`,darkseagreen:`8fbc8f`,darkslateblue:`483d8b`,darkslategray:`2f4f4f`,darkslategrey:`2f4f4f`,darkturquoise:`00ced1`,darkviolet:`9400d3`,deeppink:`ff1493`,deepskyblue:`00bfff`,dimgray:`696969`,dimgrey:`696969`,dodgerblue:`1e90ff`,firebrick:`b22222`,floralwhite:`fffaf0`,forestgreen:`228b22`,fuchsia:`f0f`,gainsboro:`dcdcdc`,ghostwhite:`f8f8ff`,gold:`ffd700`,goldenrod:`daa520`,gray:`808080`,green:`008000`,greenyellow:`adff2f`,grey:`808080`,honeydew:`f0fff0`,hotpink:`ff69b4`,indianred:`cd5c5c`,indigo:`4b0082`,ivory:`fffff0`,khaki:`f0e68c`,lavender:`e6e6fa`,lavenderblush:`fff0f5`,lawngreen:`7cfc00`,lemonchiffon:`fffacd`,lightblue:`add8e6`,lightcoral:`f08080`,lightcyan:`e0ffff`,lightgoldenrodyellow:`fafad2`,lightgray:`d3d3d3`,lightgreen:`90ee90`,lightgrey:`d3d3d3`,lightpink:`ffb6c1`,lightsalmon:`ffa07a`,lightseagreen:`20b2aa`,lightskyblue:`87cefa`,lightslategray:`789`,lightslategrey:`789`,lightsteelblue:`b0c4de`,lightyellow:`ffffe0`,lime:`0f0`,limegreen:`32cd32`,linen:`faf0e6`,magenta:`f0f`,maroon:`800000`,mediumaquamarine:`66cdaa`,mediumblue:`0000cd`,mediumorchid:`ba55d3`,mediumpurple:`9370db`,mediumseagreen:`3cb371`,mediumslateblue:`7b68ee`,mediumspringgreen:`00fa9a`,mediumturquoise:`48d1cc`,mediumvioletred:`c71585`,midnightblue:`191970`,mintcream:`f5fffa`,mistyrose:`ffe4e1`,moccasin:`ffe4b5`,navajowhite:`ffdead`,navy:`000080`,oldlace:`fdf5e6`,olive:`808000`,olivedrab:`6b8e23`,orange:`ffa500`,orangered:`ff4500`,orchid:`da70d6`,palegoldenrod:`eee8aa`,palegreen:`98fb98`,paleturquoise:`afeeee`,palevioletred:`db7093`,papayawhip:`ffefd5`,peachpuff:`ffdab9`,peru:`cd853f`,pink:`ffc0cb`,plum:`dda0dd`,powderblue:`b0e0e6`,purple:`800080`,rebeccapurple:`663399`,red:`f00`,rosybrown:`bc8f8f`,royalblue:`4169e1`,saddlebrown:`8b4513`,salmon:`fa8072`,sandybrown:`f4a460`,seagreen:`2e8b57`,seashell:`fff5ee`,sienna:`a0522d`,silver:`c0c0c0`,skyblue:`87ceeb`,slateblue:`6a5acd`,slategray:`708090`,slategrey:`708090`,snow:`fffafa`,springgreen:`00ff7f`,steelblue:`4682b4`,tan:`d2b48c`,teal:`008080`,thistle:`d8bfd8`,tomato:`ff6347`,turquoise:`40e0d0`,violet:`ee82ee`,wheat:`f5deb3`,white:`fff`,whitesmoke:`f5f5f5`,yellow:`ff0`,yellowgreen:`9acd32`},Ek=Z.hexNames=function(e){var t={};for(var n in e)e.hasOwnProperty(n)&&(t[e[n]]=n);return t}(Tk);function Dk(e){return e=parseFloat(e),(isNaN(e)||e<0||e>1)&&(e=1),e}function Ok(e,t){(function(e){return typeof e==`string`&&e.indexOf(`.`)!=-1&&parseFloat(e)===1})(e)&&(e=`100%`);var n=function(e){return typeof e==`string`&&e.indexOf(`%`)!=-1}(e);return e=Math.min(t,Math.max(0,parseFloat(e))),n&&(e=parseInt(e*t,10)/100),Math.abs(e-t)<1e-6?1:e%t/parseFloat(t)}function kk(e){return Math.min(1,Math.max(0,e))}function Ak(e){return parseInt(e,16)}function jk(e){return e.length==1?`0`+e:``+e}function Mk(e){return e<=1&&(e=100*e+`%`),e}function Nk(e){return Math.round(255*parseFloat(e)).toString(16)}function Pk(e){return Ak(e)/255}var Fk,Ik,Lk,Rk=(Ik=`[\\s|\\(]+(`+(Fk=`(?:[-\\+]?\\d*\\.\\d+%?)|(?:[-\\+]?\\d+%?)`)+`)[,|\\s]+(`+Fk+`)[,|\\s]+(`+Fk+`)\\s*\\)?`,Lk=`[\\s|\\(]+(`+Fk+`)[,|\\s]+(`+Fk+`)[,|\\s]+(`+Fk+`)[,|\\s]+(`+Fk+`)\\s*\\)?`,{CSS_UNIT:new RegExp(Fk),rgb:RegExp(`rgb`+Ik),rgba:RegExp(`rgba`+Lk),hsl:RegExp(`hsl`+Ik),hsla:RegExp(`hsla`+Lk),hsv:RegExp(`hsv`+Ik),hsva:RegExp(`hsva`+Lk),hex3:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex6:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/,hex4:/^#?([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,hex8:/^#?([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})([0-9a-fA-F]{2})$/}
112);function zk(e){return!!Rk.CSS_UNIT.exec(e)}var Bk=function(e,t){var n=(typeof e==`string`?parseInt(e):e)||0;if(n>=-5&&n<=5){var r=n,i=parseFloat(t),a=i+i/5*r*-1;return(a==0||a<=2**-52)&&(a=.1),{animationPeriod:a+`s`}}return{animationPeriod:t}},Vk=function(e,t){var n=e||{},r=``;switch(t){case`small`:r=`12px`;break;case`medium`:r=`16px`;break;case`large`:r=`20px`;break;default:r=void 0}var i={};if(n.fontSize){var a=n.fontSize;i=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`){var i=0;for(r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]])}return n}(n,[`fontSize`]),r=a}return{fontSize:r,styles:i}},Hk={color:`currentColor`,mixBlendMode:`difference`,width:`unset`,display:`block`,paddingTop:`2px`},Uk=function(e){var t=e.className,n=e.text,r=e.textColor,i=e.staticText,a=e.style;return n?y.createElement(`span`,{className:`rli-d-i-b rli-text-format ${t||``}`.trim(),style:ak(ak(ak({},i&&Hk),r&&{color:r,mixBlendMode:`unset`}),a&&a)},typeof n==`string`&&n.length?n:`loading`):null},Wk=`rgb(50, 205, 50)`;function Gk(e,t){if(t===void 0&&(t=0),e.length===0)throw Error(`Input array cannot be empty!`);var n=[];return function e(t,r){return r===void 0&&(r=0),n.push.apply(n,t),n.length<r&&e(n,r),n.slice(0,r)}(e,t)}ik(`.atom-rli-bounding-box {
113  --atom-phase1-rgb: 50, 205, 50;
114  color: rgba(var(--atom-phase1-rgb), 1);
115  font-size: 16px;
116  position: relative;
117  text-align: unset;
118  isolation: isolate;
119}
120.atom-rli-bounding-box .atom-indicator {
121  width: 6em;
122  height: 6em;
123  position: relative;
124  perspective: 6em;
125  overflow: hidden;
126  color: rgba(var(--atom-phase1-rgb), 1);
127  animation: calc(var(--rli-animation-duration, 1s) * 4) var(--rli-animation-function, linear) infinite uxlv7gg;
128}
129.atom-rli-bounding-box .atom-indicator::after, .atom-rli-bounding-box .atom-indicator::before {
130  content: "";
131  position: absolute;
132  top: 0;
133  right: 0;
134  bottom: 0;
135  left: 0;
136  width: 0.48em;
137  height: 0.48em;
138  margin: auto;
139  border-radius: 50%;
140  background-image: radial-gradient(circle at 35% 15%, rgba(var(--atom-phase1-rgb), 0.1), rgba(var(--atom-phase1-rgb), 0.3) 37%, rgba(var(--atom-phase1-rgb), 1) 100%);
141  animation: calc(var(--rli-animation-duration, 1s) * 4) var(--rli-animation-function, linear) infinite uxlv7eg;
142}
143.atom-rli-bounding-box .atom-indicator::before {
144  filter: drop-shadow(0px 0px 0.0625em currentColor);
145}
146.atom-rli-bounding-box .atom-indicator .electron-orbit {
147  color: rgba(var(--atom-phase1-rgb), 0.85);
148  border: 0;
149  border-left: 0.4em solid currentColor;
150  box-sizing: border-box;
151  position: absolute;
152  top: 0;
153  right: 0;
154  bottom: 0;
155  left: 0;
156  margin: auto;
157  width: 4.8em;
158  height: 4.8em;
159  background-color: transparent;
160  border-radius: 50%;
161  transform-style: preserve-3d;
162  animation: var(--rli-animation-duration, 1s) var(--rli-animation-function, linear) infinite uxlv7fj, calc(var(--rli-animation-duration, 1s) * 4) var(--rli-animation-function, linear) infinite uxlv7gy;
163}
164.atom-rli-bounding-box .atom-indicator .electron-orbit::after {
165  content: "";
166  position: absolute;
167  top: 0;
168  right: 0;
169  bottom: 0;
170  left: 0;
171  border-radius: 50%;
172  color: rgba(var(--atom-phase1-rgb), 0.18);
173  animation: calc(var(--rli-animation-duration, 1s) * 4) var(--rli-animation-function, linear) infinite uxlv7hv;
174  border: 0.125em solid currentColor;
175}
176.atom-rli-bounding-box .atom-indicator .electron-orbit::before {
177  content: "";
178  width: 0.192em;
179  height: 0.192em;
180  position: absolute;
181  border-radius: 50%;
182  top: -0.096em;
183  right: 0;
184  bottom: 0;
185  left: 0;
186  margin: 0 auto;
187  color: rgba(var(--atom-phase1-rgb), 1);
188  box-shadow: 0px 0px 0.0625em 0.0625em currentColor, 0px 0px 0.0625em 0.125em currentColor;
189  background-color: currentColor;
190  transform: rotateY(-70deg);
191  animation: var(--rli-animation-duration, 1s) var(--rli-animation-function, linear) infinite uxlv7ew, calc(var(--rli-animation-duration, 1s) * 4) var(--rli-animation-function, linear) infinite uxlv7gg;
192}
193.atom-rli-bounding-box .atom-indicator .electron-orbit:nth-of-type(1) {
194  --orbit-vector-factor: -1;
195  transform: rotateY(65deg) rotateX(calc(54deg * var(--orbit-vector-factor)));
196}
197.atom-rli-bounding-box .atom-indicator .electron-orbit:nth-of-type(2) {
198  --orbit-vector-factor: 1;
199  transform: rotateY(65deg) rotateX(calc(54deg * var(--orbit-vector-factor)));
200}
201.atom-rli-bounding-box .atom-indicator .electron-orbit:nth-of-type(3) {
202  --orbit-vector-factor: 0;
203  transform: rotateY(65deg) rotateX(calc(54deg * var(--orbit-vector-factor)));
204  animation-delay: calc(var(--rli-animation-duration, 1s) * 0.5 * -1), calc(var(--rli-animation-duration, 1s) * 4 * -1);
205}
206.atom-rli-bounding-box .atom-indicator .electron-orbit:nth-of-type(3)::before {
207  animation-delay: calc(var(--rli-animation-duration, 1s) * 0.5 * -1), calc(var(--rli-animation-duration, 1s) * 4 * -1);
208}
209.atom-rli-bounding-box .atom-text {
210  color: currentColor;
211  mix-blend-mode: difference;
212  width: unset;
213  display: block;
214}
215
216@property --atom-phase1-rgb {
217  syntax: "<number>#";
218  inherits: true;
219  initial-value: 50, 205, 50;
220}
221@property --atom-phase2-rgb {
222  syntax: "<number>#";
223  inherits: true;
224  initial-value: 50, 205, 50;
225}
226@property --atom-phase3-rgb {
227  syntax: "<number>#";
228  inherits: true;
229  initial-value: 50, 205, 50;
230}
231@property --atom-phase4-rgb {
232  syntax: "<number>#";
233  inherits: true;
234  initial-value: 50, 205, 50;
235}
236@property --rli-animation-duration {
237  syntax: "<time>";
238  inherits: true;
239  initial-value: 1s;
240}
241@keyframes uxlv7fj {
242  from {
243    transform: rotateY(70deg) rotateX(calc(54deg * var(--orbit-vector-factor))) rotateZ(0deg);
244  }
245  to {
246    transform: rotateY(70deg) rotateX(calc(54deg * var(--orbit-vector-factor))) rotateZ(360deg);
247  }
248}
249@keyframes uxlv7ew {
250  from {
251    transform: rotateY(-70deg) rotateX(0deg);
252  }
253  to {
254    transform: rotateY(-70deg) rotateX(-360deg);
255  }
256}
257@keyframes uxlv7eg {
258  100%, 0% {
259    background-image: radial-gradient(circle at 35% 15%, rgba(var(--atom-phase1-rgb), 0.1), rgba(var(--atom-phase1-rgb), 0.3) 37%, rgba(var(--atom-phase1-rgb), 1) 100%);
260  }
261  20% {
262    background-image: radial-gradient(circle at 35% 15%, rgba(var(--atom-phase1-rgb), 0.1), rgba(var(--atom-phase1-rgb), 0.3) 37%, rgba(var(--atom-phase1-rgb), 1) 100%);
263  }
264  25% {
265    background-image: radial-gradient(circle at 35% 15%, rgba(var(--atom-phase2-rgb, var(--atom-phase1-rgb)), 0.1), rgba(var(--atom-phase2-rgb, var(--atom-phase1-rgb)), 0.3) 37%, rgba(var(--atom-phase2-rgb, var(--atom-phase1-rgb)), 1) 100%);
266  }
267  45% {
268    background-image: radial-gradient(circle at 35% 15%, rgba(var(--atom-phase2-rgb, var(--atom-phase1-rgb)), 0.1), rgba(var(--atom-phase2-rgb, var(--atom-phase1-rgb)), 0.3) 37%, rgba(var(--atom-phase2-rgb, var(--atom-phase1-rgb)), 1) 100%);
269  }
270  50% {
271    background-image: radial-gradient(circle at 35% 15%, rgba(var(--atom-phase3-rgb, var(--atom-phase1-rgb)), 0.1), rgba(var(--atom-phase3-rgb, var(--atom-phase1-rgb)), 0.3) 37%, rgba(var(--atom-phase3-rgb, var(--atom-phase1-rgb)), 1) 100%);
272  }
273  70% {
274    background-image: radial-gradient(circle at 35% 15%, rgba(var(--atom-phase3-rgb, var(--atom-phase1-rgb)), 0.1), rgba(var(--atom-phase3-rgb, var(--atom-phase1-rgb)), 0.3) 37%, rgba(var(--atom-phase3-rgb, var(--atom-phase1-rgb)), 1) 100%);
275  }
276  75% {
277    background-image: radial-gradient(circle at 35% 15%, rgba(var(--atom-phase4-rgb, var(--atom-phase1-rgb)), 0.1), rgba(var(--atom-phase4-rgb, var(--atom-phase1-rgb)), 0.3) 37%, rgba(var(--atom-phase4-rgb, var(--atom-phase1-rgb)), 1) 100%);
278  }
279  95% {
280    background-image: radial-gradient(circle at 35% 15%, rgba(var(--atom-phase4-rgb, var(--atom-phase1-rgb)), 0.1), rgba(var(--atom-phase4-rgb, var(--atom-phase1-rgb)), 0.3) 37%, rgba(var(--atom-phase4-rgb, var(--atom-phase1-rgb)), 1) 100%);
281  }
282}
283@keyframes uxlv7gg {
284  100%, 0% {
285    color: rgba(var(--atom-phase1-rgb), 1);
286  }
287  20% {
288    color: rgba(var(--atom-phase1-rgb), 1);
289  }
290  25% {
291    color: rgba(var(--atom-phase2-rgb, var(--atom-phase1-rgb)), 1);
292  }
293  45% {
294    color: rgba(var(--atom-phase2-rgb, var(--atom-phase1-rgb)), 1);
295  }
296  50% {
297    color: rgba(var(--atom-phase3-rgb, var(--atom-phase1-rgb)), 1);
298  }
299  70% {
300    color: rgba(var(--atom-phase3-rgb, var(--atom-phase1-rgb)), 1);
301  }
302  75% {
303    color: rgba(var(--atom-phase4-rgb, var(--atom-phase1-rgb)), 1);
304  }
305  95% {
306    color: rgba(var(--atom-phase4-rgb, var(--atom-phase1-rgb)), 1);
307  }
308}
309@keyframes uxlv7gy {
310  100%, 0% {
311    color: rgba(var(--atom-phase1-rgb), 0.85);
312  }
313  20% {
314    color: rgba(var(--atom-phase1-rgb), 0.85);
315  }
316  25% {
317    color: rgba(var(--atom-phase2-rgb, var(--atom-phase1-rgb)), 0.85);
318  }
319  45% {
320    color: rgba(var(--atom-phase2-rgb, var(--atom-phase1-rgb)), 0.85);
321  }
322  50% {
323    color: rgba(var(--atom-phase3-rgb, var(--atom-phase1-rgb)), 0.85);
324  }
325  70% {
326    color: rgba(var(--atom-phase3-rgb, var(--atom-phase1-rgb)), 0.85);
327  }
328  75% {
329    color: rgba(var(--atom-phase4-rgb, var(--atom-phase1-rgb)), 0.85);
330  }
331  95% {
332    color: rgba(var(--atom-phase4-rgb, var(--atom-phase1-rgb)), 0.85);
333  }
334}
335@keyframes uxlv7hv {
336  100%, 0% {
337    color: rgba(var(--atom-phase1-rgb), 0.18);
338  }
339  20% {
340    color: rgba(var(--atom-phase1-rgb), 0.18);
341  }
342  25% {
343    color: rgba(var(--atom-phase2-rgb, var(--atom-phase1-rgb)), 0.18);
344  }
345  45% {
346    color: rgba(var(--atom-phase2-rgb, var(--atom-phase1-rgb)), 0.18);
347  }
348  50% {
349    color: rgba(var(--atom-phase3-rgb, var(--atom-phase1-rgb)), 0.18);
350  }
351  70% {
352    color: rgba(var(--atom-phase3-rgb, var(--atom-phase1-rgb)), 0.18);
353  }
354  75% {
355    color: rgba(var(--atom-phase4-rgb, var(--atom-phase1-rgb)), 0.18);
356  }
357  95% {
358    color: rgba(var(--atom-phase4-rgb, var(--atom-phase1-rgb)), 0.18);
359  }
360}`),Z(Wk).toRgb(),Array.from({length:4},(function(e,t){return`--atom-phase${t+1}-rgb`})),ik(`.commet-rli-bounding-box {
361  --commet-phase1-color: rgb(50, 205, 50);
362  font-size: 16px;
363  width: 6.85em;
364  height: 6.85em;
365  overflow: hidden;
366  display: inline-block;
367  box-sizing: border-box;
368  position: relative;
369  isolation: isolate;
370}
371.commet-rli-bounding-box .commet-indicator {
372  top: 0;
373  right: 0;
374  bottom: 0;
375  left: 0;
376  margin: auto;
377  box-sizing: border-box;
378  width: 6em;
379  height: 6em;
380  color: var(--commet-phase1-color);
381  display: inline-block;
382  isolation: isolate;
383  position: absolute;
384  z-index: 0;
385  animation: calc(var(--rli-animation-duration, 1.2s) * 4) var(--rli-animation-function, cubic-bezier(0.08, 0.03, 0.91, 0.93)) infinite uxlv7cp;
386}
387.commet-rli-bounding-box .commet-indicator .commet-box {
388  position: absolute;
389  display: inline-block;
390  top: 0;
391  right: 0;
392  bottom: 0;
393  bottom: 0;
394  left: 0;
395  margin: auto;
396  animation: uxlv7bx var(--rli-animation-duration, 1.2s) var(--rli-animation-function, cubic-bezier(0.08, 0.03, 0.91, 0.93)) infinite;
397}
398.commet-rli-bounding-box .commet-indicator .commet-box:nth-of-type(1) {
399  width: 100%;
400  height: 100%;
401  animation-direction: normal;
402}
403.commet-rli-bounding-box .commet-indicator .commet-box:nth-of-type(2) {
404  width: 70%;
405  height: 70%;
406  animation-direction: reverse;
407}
408.commet-rli-bounding-box .commet-indicator .commet-box .commetball-box {
409  position: absolute;
410  top: 0;
411  right: 0;
412  bottom: 0;
413  bottom: 0;
414  left: 0;
415  display: inline-block;
416}
417.commet-rli-bounding-box .commet-indicator .commet-box .commetball-box::before {
418  content: "";
419  width: 0.5em;
420  height: 0.5em;
421  border-radius: 50%;
422  background-color: currentColor;
423  position: absolute;
424  top: -0.125em;
425  left: 50%;
426  transform: translateX(-50%);
427  box-shadow: 0 0 0.2em 0em currentColor, 0 0 0.6em 0em currentColor;
428}
429.commet-rli-bounding-box .commet-indicator .commet-box .commet-trail {
430  position: absolute;
431  top: 0;
432  right: 0;
433  bottom: 0;
434  bottom: 0;
435  left: 0;
436  border-radius: 50%;
437  box-sizing: border-box;
438  border-style: solid;
439}
440.commet-rli-bounding-box .commet-indicator .commet-box .commet-trail.trail1 {
441  border-color: currentColor transparent transparent currentColor;
442  border-width: 0.25em 0.25em 0 0;
443  transform: rotateZ(-45deg);
444}
445.commet-rli-bounding-box .commet-indicator .commet-box .commet-trail.trail2 {
446  border-color: currentColor currentColor transparent transparent;
447  border-width: 0.25em 0 0 0.25em;
448  transform: rotateZ(45deg);
449}
450.commet-rli-bounding-box .commet-text {
451  mix-blend-mode: difference;
452  position: absolute;
453  top: 50%;
454  left: 50%;
455  transform: translate(-50%, -50%);
456  color: var(--commet-phase1-color);
457}
458
459@property --commet-phase1-color {
460  syntax: "<color>";
461  inherits: true;
462  initial-value: rgb(50, 205, 50);
463}
464@property --commet-phase2-color {
465  syntax: "<color>";
466  inherits: true;
467  initial-value: rgb(50, 205, 50);
468}
469@property --commet-phase3-color {
470  syntax: "<color>";
471  inherits: true;
472  initial-value: rgb(50, 205, 50);
473}
474@property --commet-phase4-color {
475  syntax: "<color>";
476  inherits: true;
477  initial-value: rgb(50, 205, 50);
478}
479@property --rli-animation-duration {
480  syntax: "<time>";
481  inherits: true;
482  initial-value: 1.2s;
483}
484@keyframes uxlv7bx {
485  to {
486    transform: rotate(1turn);
487  }
488}
489@keyframes uxlv7cp {
490  100%, 0% {
491    color: var(--commet-phase1-color);
492  }
493  20% {
494    color: var(--commet-phase1-color);
495  }
496  25% {
497    color: var(--commet-phase2-color, var(--commet-phase1-color));
498  }
499  45% {
500    color: var(--commet-phase2-color, var(--commet-phase1-color));
501  }
502  50% {
503    color: var(--commet-phase3-color, var(--commet-phase1-color));
504  }
505  70% {
506    color: var(--commet-phase3-color, var(--commet-phase1-color));
507  }
508  75% {
509    color: var(--commet-phase4-color, var(--commet-phase1-color));
510  }
511  95% {
512    color: var(--commet-phase4-color, var(--commet-phase1-color));
513  }
514}`),Array.from({length:4},(function(e,t){return`--commet-phase${t+1}-color`})),ik(`.OP-annulus-rli-bounding-box {
515  --OP-annulus-phase1-color: rgb(50, 205, 50);
516  font-size: 16px;
517  display: inline-block;
518}
519.OP-annulus-rli-bounding-box .OP-annulus-indicator {
520  width: 5em;
521  height: 5em;
522  color: var(--OP-annulus-phase1-color);
523  display: inline-block;
524  position: relative;
525  z-index: 0;
526}
527.OP-annulus-rli-bounding-box .OP-annulus-indicator .whirl {
528  animation: uxlv7n7 calc(var(--rli-animation-duration, 1.5s) * 1.33) linear infinite;
529  height: 100%;
530  transform-origin: center center;
531  width: 100%;
532  position: absolute;
533  top: 0;
534  bottom: 0;
535  left: 0;
536  right: 0;
537  margin: auto;
538}
539.OP-annulus-rli-bounding-box .OP-annulus-indicator .path {
540  stroke-dasharray: 1, 125;
541  stroke-dashoffset: 0;
542  animation: var(--rli-animation-duration, 1.5s) var(--rli-animation-function, ease-in-out) infinite uxlv7oa, calc(var(--rli-animation-duration, 1.5s) * 4) var(--rli-animation-function, ease-in-out) infinite uxlv7p5;
543  stroke-linecap: round;
544}
545.OP-annulus-rli-bounding-box .OP-annulus-text {
546  mix-blend-mode: difference;
547  position: absolute;
548  top: 50%;
549  left: 50%;
550  transform: translate(-50%, -50%);
551  z-index: -2;
552}
553
554@property --OP-annulus-phase1-color {
555  syntax: "<color>";
556  inherits: true;
557  initial-value: rgb(50, 205, 50);
558}
559@property --OP-annulus-phase2-color {
560  syntax: "<color>";
561  inherits: true;
562  initial-value: rgb(50, 205, 50);
563}
564@property --OP-annulus-phase3-color {
565  syntax: "<color>";
566  inherits: true;
567  initial-value: rgb(50, 205, 50);
568}
569@property --OP-annulus-phase4-color {
570  syntax: "<color>";
571  inherits: true;
572  initial-value: rgb(50, 205, 50);
573}
574@property --rli-animation-duration {
575  syntax: "<time>";
576  inherits: true;
577  initial-value: 1.5s;
578}
579@keyframes uxlv7n7 {
580  100% {
581    transform: rotate(360deg);
582  }
583}
584@keyframes uxlv7oa {
585  0% {
586    stroke-dasharray: 1, 125;
587    stroke-dashoffset: 0;
588  }
589  50% {
590    stroke-dasharray: 98, 125;
591    stroke-dashoffset: -35px;
592  }
593  100% {
594    stroke-dasharray: 98, 125;
595    stroke-dashoffset: -124px;
596  }
597}
598@keyframes uxlv7p5 {
599  100%, 0% {
600    stroke: var(--OP-annulus-phase1-color);
601  }
602  22% {
603    stroke: var(--OP-annulus-phase1-color);
604  }
605  25% {
606    stroke: var(--OP-annulus-phase2-color, var(--OP-annulus-phase1-color));
607  }
608  42% {
609    stroke: var(--OP-annulus-phase2-color, var(--OP-annulus-phase1-color));
610  }
611  50% {
612    stroke: var(--OP-annulus-phase3-color, var(--OP-annulus-phase1-color));
613  }
614  72% {
615    stroke: var(--OP-annulus-phase3-color, var(--OP-annulus-phase1-color));
616  }
617  75% {
618    stroke: var(--OP-annulus-phase4-color, var(--OP-annulus-phase1-color));
619  }
620  97% {
621    stroke: var(--OP-annulus-phase4-color, var(--OP-annulus-phase1-color));
622  }
623}`),Array.from({length:4},(function(e,t){return`--OP-annulus-phase${t+1}-color`}));function Kk(e){return e&&e.Math===Math&&e}ik(`.OP-dotted-rli-bounding-box {
624  --OP-dotted-phase1-color: rgb(50, 205, 50);
625  font-size: 16px;
626  box-sizing: border-box;
627  display: inline-block;
628}
629.OP-dotted-rli-bounding-box .OP-dotted-indicator {
630  width: 5em;
631  height: 5em;
632  color: var(--OP-dotted-phase1-color);
633  display: inline-block;
634  position: relative;
635  z-index: 0;
636}
637.OP-dotted-rli-bounding-box .OP-dotted-indicator .OP-dotted-text {
638  mix-blend-mode: difference;
639  position: absolute;
640  top: 50%;
641  left: 50%;
642  transform: translate(-50%, -50%);
643  z-index: -2;
644}
645.OP-dotted-rli-bounding-box .OP-dotted-indicator .dot-shape-holder {
646  position: absolute;
647  left: 0;
648  top: 0;
649  bottom: 0;
650  right: 0;
651}
652.OP-dotted-rli-bounding-box .OP-dotted-indicator .dot-shape-holder .dot {
653  display: block;
654  margin: 0 auto;
655  width: 15%;
656  height: 15%;
657  background-color: currentColor;
658  border-radius: 50%;
659  animation: var(--rli-animation-duration, 1.2s) var(--rli-animation-function, ease-in-out) infinite uxlv7nu, calc(var(--rli-animation-duration, 1.2s) * 4) var(--rli-animation-function, ease-in-out) infinite uxlv7ol;
660}
661.OP-dotted-rli-bounding-box .OP-dotted-indicator .dot-shape-holder:nth-of-type(1) {
662  transform: rotate(0deg);
663}
664.OP-dotted-rli-bounding-box .OP-dotted-indicator .dot-shape-holder:nth-of-type(1) .dot {
665  animation-delay: calc(var(--rli-animation-duration, 1.2s) / 12 * 12 * -1);
666}
667.OP-dotted-rli-bounding-box .OP-dotted-indicator .dot-shape-holder:nth-of-type(2) {
668  transform: rotate(30deg);
669}
670.OP-dotted-rli-bounding-box .OP-dotted-indicator .dot-shape-holder:nth-of-type(2) .dot {
671  animation-delay: calc(var(--rli-animation-duration, 1.2s) / 12 * 11 * -1);
672}
673.OP-dotted-rli-bounding-box .OP-dotted-indicator .dot-shape-holder:nth-of-type(3) {
674  transform: rotate(60deg);
675}
676.OP-dotted-rli-bounding-box .OP-dotted-indicator .dot-shape-holder:nth-of-type(3) .dot {
677  animation-delay: calc(var(--rli-animation-duration, 1.2s) / 12 * 10 * -1);
678}
679.OP-dotted-rli-bounding-box .OP-dotted-indicator .dot-shape-holder:nth-of-type(4) {
680  transform: rotate(90deg);
681}
682.OP-dotted-rli-bounding-box .OP-dotted-indicator .dot-shape-holder:nth-of-type(4) .dot {
683  animation-delay: calc(var(--rli-animation-duration, 1.2s) / 12 * 9 * -1);
684}
685.OP-dotted-rli-bounding-box .OP-dotted-indicator .dot-shape-holder:nth-of-type(5) {
686  transform: rotate(120deg);
687}
688.OP-dotted-rli-bounding-box .OP-dotted-indicator .dot-shape-holder:nth-of-type(5) .dot {
689  animation-delay: calc(var(--rli-animation-duration, 1.2s) / 12 * 8 * -1);
690}
691.OP-dotted-rli-bounding-box .OP-dotted-indicator .dot-shape-holder:nth-of-type(6) {
692  transform: rotate(150deg);
693}
694.OP-dotted-rli-bounding-box .OP-dotted-indicator .dot-shape-holder:nth-of-type(6) .dot {
695  animation-delay: calc(var(--rli-animation-duration, 1.2s) / 12 * 7 * -1);
696}
697.OP-dotted-rli-bounding-box .OP-dotted-indicator .dot-shape-holder:nth-of-type(7) {
698  transform: rotate(180deg);
699}
700.OP-dotted-rli-bounding-box .OP-dotted-indicator .dot-shape-holder:nth-of-type(7) .dot {
701  animation-delay: calc(var(--rli-animation-duration, 1.2s) / 12 * 6 * -1);
702}
703.OP-dotted-rli-bounding-box .OP-dotted-indicator .dot-shape-holder:nth-of-type(8) {
704  transform: rotate(210deg);
705}
706.OP-dotted-rli-bounding-box .OP-dotted-indicator .dot-shape-holder:nth-of-type(8) .dot {
707  animation-delay: calc(var(--rli-animation-duration, 1.2s) / 12 * 5 * -1);
708}
709.OP-dotted-rli-bounding-box .OP-dotted-indicator .dot-shape-holder:nth-of-type(9) {
710  transform: rotate(240deg);
711}
712.OP-dotted-rli-bounding-box .OP-dotted-indicator .dot-shape-holder:nth-of-type(9) .dot {
713  animation-delay: calc(var(--rli-animation-duration, 1.2s) / 12 * 4 * -1);
714}
715.OP-dotted-rli-bounding-box .OP-dotted-indicator .dot-shape-holder:nth-of-type(10) {
716  transform: rotate(270deg);
717}
718.OP-dotted-rli-bounding-box .OP-dotted-indicator .dot-shape-holder:nth-of-type(10) .dot {
719  animation-delay: calc(var(--rli-animation-duration, 1.2s) / 12 * 3 * -1);
720}
721.OP-dotted-rli-bounding-box .OP-dotted-indicator .dot-shape-holder:nth-of-type(11) {
722  transform: rotate(300deg);
723}
724.OP-dotted-rli-bounding-box .OP-dotted-indicator .dot-shape-holder:nth-of-type(11) .dot {
725  animation-delay: calc(var(--rli-animation-duration, 1.2s) / 12 * 2 * -1);
726}
727.OP-dotted-rli-bounding-box .OP-dotted-indicator .dot-shape-holder:nth-of-type(12) {
728  transform: rotate(330deg);
729}
730.OP-dotted-rli-bounding-box .OP-dotted-indicator .dot-shape-holder:nth-of-type(12) .dot {
731  animation-delay: calc(var(--rli-animation-duration, 1.2s) / 12 * 1 * -1);
732}
733
734@property --OP-dotted-phase1-color {
735  syntax: "<color>";
736  inherits: true;
737  initial-value: rgb(50, 205, 50);
738}
739@property --OP-dotted-phase2-color {
740  syntax: "<color>";
741  inherits: true;
742  initial-value: rgb(50, 205, 50);
743}
744@property --OP-dotted-phase3-color {
745  syntax: "<color>";
746  inherits: true;
747  initial-value: rgb(50, 205, 50);
748}
749@property --OP-dotted-phase4-color {
750  syntax: "<color>";
751  inherits: true;
752  initial-value: rgb(50, 205, 50);
753}
754@property --rli-animation-duration {
755  syntax: "<time>";
756  inherits: true;
757  initial-value: 1.2s;
758}
759@keyframes uxlv7nu {
760  0%, 39%, 100% {
761    opacity: 0;
762  }
763  40% {
764    opacity: 1;
765  }
766}
767@keyframes uxlv7ol {
768  100%, 0% {
769    background-color: var(--OP-dotted-phase1-color);
770  }
771  22% {
772    background-color: var(--OP-dotted-phase1-color);
773  }
774  25% {
775    background-color: var(--OP-dotted-phase2-color, var(--OP-dotted-phase1-color));
776  }
777  47% {
778    background-color: var(--OP-dotted-phase2-color, var(--OP-dotted-phase1-color));
779  }
780  50% {
781    background-color: var(--OP-dotted-phase3-color, var(--OP-dotted-phase1-color));
782  }
783  72% {
784    background-color: var(--OP-dotted-phase3-color, var(--OP-dotted-phase1-color));
785  }
786  75% {
787    background-color: var(--OP-dotted-phase4-color, var(--OP-dotted-phase1-color));
788  }
789  97% {
790    background-color: var(--OP-dotted-phase4-color, var(--OP-dotted-phase1-color));
791  }
792}`),Kk(typeof window==`object`&&window)||Kk(typeof self==`object`&&self)||Kk(typeof global==`object`&&global)||function(){return this}()||Function(`return this`)(),Array.from({length:4},(function(e,t){return`--OP-dotted-phase${t+1}-color`})),ik(`.OP-spokes-rli-bounding-box {
793  --OP-spokes-phase1-color: rgb(50, 205, 50);
794  font-size: 16px;
795  position: relative;
796  color: var(--OP-spokes-phase1-color);
797}
798.OP-spokes-rli-bounding-box .OP-spokes-indicator {
799  width: 4.8em;
800  height: 4.8em;
801  display: block;
802  position: relative;
803}
804.OP-spokes-rli-bounding-box .OP-spokes-indicator .spoke {
805  position: absolute;
806  height: 1.2em;
807  width: 0.4em;
808  top: 0;
809  left: 0;
810  right: 0;
811  bottom: 0;
812  margin: auto auto auto 50%;
813  background-color: var(--OP-spokes-phase1-color);
814  border-radius: 0.24em;
815  opacity: 0;
816  animation: var(--rli-animation-duration, 1.2s) var(--rli-animation-function, ease-in-out) backwards infinite uxlv7pw, calc(var(--rli-animation-duration, 1.2s) * 4) var(--rli-animation-function, ease-in-out) infinite uxlv7qn;
817  transform-origin: left center;
818}
819.OP-spokes-rli-bounding-box .OP-spokes-indicator .spoke:nth-of-type(1) {
820  transform: rotate(calc(0 * 360deg / 12)) translate(-50%, -1.56em);
821  animation-delay: calc(11 * var(--rli-animation-duration, 1.2s) / 12 * -1);
822}
823.OP-spokes-rli-bounding-box .OP-spokes-indicator .spoke:nth-of-type(2) {
824  transform: rotate(calc(1 * 360deg / 12)) translate(-50%, -1.56em);
825  animation-delay: calc(10 * var(--rli-animation-duration, 1.2s) / 12 * -1);
826}
827.OP-spokes-rli-bounding-box .OP-spokes-indicator .spoke:nth-of-type(3) {
828  transform: rotate(calc(2 * 360deg / 12)) translate(-50%, -1.56em);
829  animation-delay: calc(9 * var(--rli-animation-duration, 1.2s) / 12 * -1);
830}
831.OP-spokes-rli-bounding-box .OP-spokes-indicator .spoke:nth-of-type(4) {
832  transform: rotate(calc(3 * 360deg / 12)) translate(-50%, -1.56em);
833  animation-delay: calc(8 * var(--rli-animation-duration, 1.2s) / 12 * -1);
834}
835.OP-spokes-rli-bounding-box .OP-spokes-indicator .spoke:nth-of-type(5) {
836  transform: rotate(calc(4 * 360deg / 12)) translate(-50%, -1.56em);
837  animation-delay: calc(7 * var(--rli-animation-duration, 1.2s) / 12 * -1);
838}
839.OP-spokes-rli-bounding-box .OP-spokes-indicator .spoke:nth-of-type(6) {
840  transform: rotate(calc(5 * 360deg / 12)) translate(-50%, -1.56em);
841  animation-delay: calc(6 * var(--rli-animation-duration, 1.2s) / 12 * -1);
842}
843.OP-spokes-rli-bounding-box .OP-spokes-indicator .spoke:nth-of-type(7) {
844  transform: rotate(calc(6 * 360deg / 12)) translate(-50%, -1.56em);
845  animation-delay: calc(5 * var(--rli-animation-duration, 1.2s) / 12 * -1);
846}
847.OP-spokes-rli-bounding-box .OP-spokes-indicator .spoke:nth-of-type(8) {
848  transform: rotate(calc(7 * 360deg / 12)) translate(-50%, -1.56em);
849  animation-delay: calc(4 * var(--rli-animation-duration, 1.2s) / 12 * -1);
850}
851.OP-spokes-rli-bounding-box .OP-spokes-indicator .spoke:nth-of-type(9) {
852  transform: rotate(calc(8 * 360deg / 12)) translate(-50%, -1.56em);
853  animation-delay: calc(3 * var(--rli-animation-duration, 1.2s) / 12 * -1);
854}
855.OP-spokes-rli-bounding-box .OP-spokes-indicator .spoke:nth-of-type(10) {
856  transform: rotate(calc(9 * 360deg / 12)) translate(-50%, -1.56em);
857  animation-delay: calc(2 * var(--rli-animation-duration, 1.2s) / 12 * -1);
858}
859.OP-spokes-rli-bounding-box .OP-spokes-indicator .spoke:nth-of-type(11) {
860  transform: rotate(calc(10 * 360deg / 12)) translate(-50%, -1.56em);
861  animation-delay: calc(1 * var(--rli-animation-duration, 1.2s) / 12 * -1);
862}
863.OP-spokes-rli-bounding-box .OP-spokes-indicator .spoke:nth-of-type(12) {
864  transform: rotate(calc(11 * 360deg / 12)) translate(-50%, -1.56em);
865  animation-delay: calc(0 * var(--rli-animation-duration, 1.2s) / 12 * -1);
866}
867.OP-spokes-rli-bounding-box .OP-spokes-indicator-text {
868  mix-blend-mode: difference;
869  position: absolute;
870  top: 50%;
871  left: 50%;
872  transform: translate(-50%, -50%);
873  color: var(--OP-spokes-phase1-color);
874  z-index: -2;
875}
876
877@property --OP-spokes-phase1-color {
878  syntax: "<color>";
879  inherits: true;
880  initial-value: rgb(50, 205, 50);
881}
882@property --OP-spokes-phase2-color {
883  syntax: "<color>";
884  inherits: true;
885  initial-value: rgb(50, 205, 50);
886}
887@property --OP-spokes-phase3-color {
888  syntax: "<color>";
889  inherits: true;
890  initial-value: rgb(50, 205, 50);
891}
892@property --OP-spokes-phase4-color {
893  syntax: "<color>";
894  inherits: true;
895  initial-value: rgb(50, 205, 50);
896}
897@property --rli-animation-duration {
898  syntax: "<time>";
899  inherits: true;
900  initial-value: 1.2s;
901}
902@keyframes uxlv7pw {
903  from {
904    opacity: 1;
905  }
906  to {
907    opacity: 0;
908  }
909}
910@keyframes uxlv7qn {
911  100%, 0% {
912    background-color: var(--OP-spokes-phase1-color);
913  }
914  22% {
915    background-color: var(--OP-spokes-phase1-color);
916  }
917  25% {
918    background-color: var(--OP-spokes-phase2-color, var(--OP-spokes-phase1-color));
919  }
920  42% {
921    background-color: var(--OP-spokes-phase2-color, var(--OP-spokes-phase1-color));
922  }
923  50% {
924    background-color: var(--OP-spokes-phase3-color, var(--OP-spokes-phase1-color));
925  }
926  72% {
927    background-color: var(--OP-spokes-phase3-color, var(--OP-spokes-phase1-color));
928  }
929  75% {
930    background-color: var(--OP-spokes-phase4-color, var(--OP-spokes-phase1-color));
931  }
932  97% {
933    background-color: var(--OP-spokes-phase4-color, var(--OP-spokes-phase1-color));
934  }
935}`),Array.from({length:4},(function(e,t){return`--OP-spokes-phase${t+1}-color`})),ik(`.OP-annulus-dual-sectors-rli-bounding-box {
936  --OP-annulus-dual-sectors-phase1-color: rgb(50, 205, 50);
937  font-size: 16px;
938  box-sizing: border-box;
939  display: inline-block;
940}
941.OP-annulus-dual-sectors-rli-bounding-box .OP-annulus-dual-sectors-indicator {
942  width: 5em;
943  height: 5em;
944  display: inline-block;
945  position: relative;
946  z-index: 0;
947  color: var(--OP-annulus-dual-sectors-phase1-color);
948}
949.OP-annulus-dual-sectors-rli-bounding-box .OP-annulus-dual-sectors-indicator .annulus-sectors {
950  box-sizing: border-box;
951  width: 100%;
952  height: 100%;
953  border-radius: 50%;
954  border-width: 0.34em;
955  border-style: solid;
956  border-color: var(--OP-annulus-dual-sectors-phase1-color) transparent var(--OP-annulus-dual-sectors-phase1-color) transparent;
957  background-color: transparent;
958  animation: var(--rli-animation-duration, 1.2s) var(--rli-animation-function, linear) infinite uxlv7ra, calc(var(--rli-animation-duration, 1.2s) * 4) var(--rli-animation-function, linear) infinite uxlv7sv;
959}
960.OP-annulus-dual-sectors-rli-bounding-box .OP-annulus-dual-sectors-indicator .OP-annulus-dual-sectors-text {
961  mix-blend-mode: difference;
962  position: absolute;
963  top: 50%;
964  left: 50%;
965  transform: translate(-50%, -50%);
966  z-index: -2;
967}
968
969@property --OP-annulus-dual-sectors-phase1-color {
970  syntax: "<color>";
971  inherits: true;
972  initial-value: rgb(50, 205, 50);
973}
974@property --OP-annulus-dual-sectors-phase2-color {
975  syntax: "<color>";
976  inherits: true;
977  initial-value: rgb(50, 205, 50);
978}
979@property --OP-annulus-dual-sectors-phase3-color {
980  syntax: "<color>";
981  inherits: true;
982  initial-value: rgb(50, 205, 50);
983}
984@property --OP-annulus-dual-sectors-phase4-color {
985  syntax: "<color>";
986  inherits: true;
987  initial-value: rgb(50, 205, 50);
988}
989@property --rli-animation-duration {
990  syntax: "<time>";
991  inherits: true;
992  initial-value: 1.2s;
993}
994@keyframes uxlv7ra {
995  0% {
996    transform: rotate(0deg);
997  }
998  100% {
999    transform: rotate(360deg);
1000  }
1001}
1002@keyframes uxlv7sv {
1003  100%, 0% {
1004    border-color: var(--OP-annulus-dual-sectors-phase1-color) transparent;
1005  }
1006  20% {
1007    border-color: var(--OP-annulus-dual-sectors-phase1-color) transparent;
1008  }
1009  25% {
1010    border-color: var(--OP-annulus-dual-sectors-phase2-color, var(--OP-annulus-dual-sectors-phase1-color)) transparent;
1011  }
1012  45% {
1013    border-color: var(--OP-annulus-dual-sectors-phase2-color, var(--OP-annulus-dual-sectors-phase1-color)) transparent;
1014  }
1015  50% {
1016    border-color: var(--OP-annulus-dual-sectors-phase3-color, var(--OP-annulus-dual-sectors-phase1-color)) transparent;
1017  }
1018  70% {
1019    border-color: var(--OP-annulus-dual-sectors-phase3-color, var(--OP-annulus-dual-sectors-phase1-color)) transparent;
1020  }
1021  75% {
1022    border-color: var(--OP-annulus-dual-sectors-phase4-color, var(--OP-annulus-dual-sectors-phase1-color)) transparent;
1023  }
1024  95% {
1025    border-color: var(--OP-annulus-dual-sectors-phase4-color, var(--OP-annulus-dual-sectors-phase1-color)) transparent;
1026  }
1027}`),Array.from({length:4},(function(e,t){return`--OP-annulus-dual-sectors-phase${t+1}-color`})),ik(`.OP-annulus-sector-track-rli-bounding-box {
1028  --OP-annulus-track-phase1-color: rgba(50, 205, 50, 0.22);
1029  --OP-annulus-sector-phase1-color: rgb(50, 205, 50);
1030  font-size: 16px;
1031  display: inline-block;
1032}
1033.OP-annulus-sector-track-rli-bounding-box .OP-annulus-sector-track-indicator {
1034  width: 5em;
1035  height: 5em;
1036  color: var(--OP-annulus-sector-phase1-color);
1037  display: inline-block;
1038  position: relative;
1039  z-index: 0;
1040}
1041.OP-annulus-sector-track-rli-bounding-box .OP-annulus-sector-track-indicator .annulus-track-ring {
1042  width: 100%;
1043  height: 100%;
1044  border-width: 0.34em;
1045  border-style: solid;
1046  border-radius: 50%;
1047  box-sizing: border-box;
1048  border-color: var(--OP-annulus-track-phase1-color);
1049  border-top-color: var(--OP-annulus-sector-phase1-color);
1050  animation: var(--rli-animation-duration, 1s) var(--rli-animation-function, linear) infinite uxlv7rl, calc(var(--rli-animation-duration, 1s) * 4) var(--rli-animation-function, linear) infinite uxlv7tf;
1051}
1052.OP-annulus-sector-track-rli-bounding-box .OP-annulus-sector-track-indicator .OP-annulus-sector-text {
1053  mix-blend-mode: difference;
1054  position: absolute;
1055  top: 50%;
1056  left: 50%;
1057  transform: translate(-50%, -50%);
1058  z-index: -2;
1059}
1060
1061@property --OP-annulus-track-phase1-color {
1062  syntax: "<color>";
1063  inherits: true;
1064  initial-value: rgba(50, 205, 50, 0.22);
1065}
1066@property --OP-annulus-track-phase2-color {
1067  syntax: "<color>";
1068  inherits: true;
1069  initial-value: rgba(50, 205, 50, 0.22);
1070}
1071@property --OP-annulus-track-phase3-color {
1072  syntax: "<color>";
1073  inherits: true;
1074  initial-value: rgba(50, 205, 50, 0.22);
1075}
1076@property --OP-annulus-track-phase4-color {
1077  syntax: "<color>";
1078  inherits: true;
1079  initial-value: rgba(50, 205, 50, 0.22);
1080}
1081@property --OP-annulus-sector-phase1-color {
1082  syntax: "<color>";
1083  inherits: true;
1084  initial-value: rgb(50, 205, 50);
1085}
1086@property --OP-annulus-sector-phase2-color {
1087  syntax: "<color>";
1088  inherits: true;
1089  initial-value: rgb(50, 205, 50);
1090}
1091@property --OP-annulus-sector-phase3-color {
1092  syntax: "<color>";
1093  inherits: true;
1094  initial-value: rgb(50, 205, 50);
1095}
1096@property --OP-annulus-sector-phase4-color {
1097  syntax: "<color>";
1098  inherits: true;
1099  initial-value: rgb(50, 205, 50);
1100}
1101@property --rli-animation-duration {
1102  syntax: "<time>";
1103  inherits: true;
1104  initial-value: 1s;
1105}
1106@keyframes uxlv7rl {
1107  to {
1108    transform: rotate(1turn);
1109  }
1110}
1111@keyframes uxlv7tf {
1112  100%, 0% {
1113    border-color: var(--OP-annulus-track-phase1-color);
1114    border-top-color: var(--OP-annulus-sector-phase1-color);
1115  }
1116  18% {
1117    border-color: var(--OP-annulus-track-phase1-color);
1118    border-top-color: var(--OP-annulus-sector-phase1-color);
1119  }
1120  25% {
1121    border-color: var(--OP-annulus-track-phase2-color, var(--OP-annulus-track-phase1-color));
1122    border-top-color: var(--OP-annulus-sector-phase2-color, var(--OP-annulus-sector-phase1-color));
1123  }
1124  
112443% {
1125    border-color: var(--OP-annulus-track-phase2-color, var(--OP-annulus-track-phase1-color));
1126    border-top-color: var(--OP-annulus-sector-phase2-color, var(--OP-annulus-sector-phase1-color));
1127  }
1128  50% {
1129    border-color: var(--OP-annulus-track-phase3-color, var(--OP-annulus-track-phase1-color));
1130    border-top-color: var(--OP-annulus-sector-phase3-color, var(--OP-annulus-sector-phase1-color));
1131  }
1132  68% {
1133    border-color: var(--OP-annulus-track-phase3-color, var(--OP-annulus-track-phase1-color));
1134    border-top-color: var(--OP-annulus-sector-phase3-color, var(--OP-annulus-sector-phase1-color));
1135  }
1136  75% {
1137    border-color: var(--OP-annulus-track-phase4-color, var(--OP-annulus-track-phase1-color));
1138    border-top-color: var(--OP-annulus-sector-phase4-color, var(--OP-annulus-sector-phase1-color));
1139  }
1140  93% {
1141    border-color: var(--OP-annulus-track-phase4-color, var(--OP-annulus-track-phase1-color));
1142    border-top-color: var(--OP-annulus-sector-phase4-color, var(--OP-annulus-sector-phase1-color));
1143  }
1144}`),Array.from({length:4},(function(e,t){return[`--OP-annulus-track-phase${t+1}-color`,`--OP-annulus-sector-phase${t+1}-color`]})),ik(`.foursquare-rli-bounding-box {
1145  --four-square-phase1-color: rgb(50, 205, 50);
1146  font-size: 16px;
1147  box-sizing: border-box;
1148  color: var(--four-square-phase1-color);
1149  display: inline-block;
1150  overflow: hidden;
1151}
1152.foursquare-rli-bounding-box .foursquare-indicator {
1153  height: 5.3033008589em;
1154  width: 5.3033008589em;
1155  position: relative;
1156  display: block;
1157}
1158.foursquare-rli-bounding-box .foursquare-indicator .squares-container {
1159  position: absolute;
1160  z-index: 0;
1161  top: 0;
1162  right: 0;
1163  bottom: 0;
1164  left: 0;
1165  margin: auto;
1166  height: 2.5em;
1167  width: 2.5em;
1168  color: inherit;
1169  will-change: color, width, height;
1170  transform: rotate(45deg);
1171  animation: var(--rli-animation-duration, 1s) var(--rli-animation-function, cubic-bezier(0.05, 0.28, 0.79, 0.98)) infinite uxlv7dk, calc(var(--rli-animation-duration, 1s) * 4) var(--rli-animation-function, cubic-bezier(0.05, 0.28, 0.79, 0.98)) infinite uxlv7es;
1172}
1173.foursquare-rli-bounding-box .foursquare-indicator .squares-container .square {
1174  position: absolute;
1175  width: 1.25em;
1176  height: 1.25em;
1177  border-radius: 0.1875em;
1178  background-color: currentColor;
1179  animation: uxlv7dd var(--rli-animation-duration, 1s) var(--rli-animation-function, cubic-bezier(0.05, 0.28, 0.79, 0.98)) both infinite;
1180}
1181.foursquare-rli-bounding-box .foursquare-indicator .squares-container .square.square1 {
1182  top: 0;
1183  left: 0;
1184}
1185.foursquare-rli-bounding-box .foursquare-indicator .squares-container .square.square2 {
1186  top: 0;
1187  right: 0;
1188}
1189.foursquare-rli-bounding-box .foursquare-indicator .squares-container .square.square3 {
1190  bottom: 0;
1191  left: 0;
1192}
1193.foursquare-rli-bounding-box .foursquare-indicator .squares-container .square.square4 {
1194  bottom: 0;
1195  right: 0;
1196}
1197
1198@property --four-square-phase1-color {
1199  syntax: "<color>";
1200  inherits: true;
1201  initial-value: rgb(50, 205, 50);
1202}
1203@property --four-square-phase2-color {
1204  syntax: "<color>";
1205  inherits: true;
1206  initial-value: rgb(50, 205, 50);
1207}
1208@property --four-square-phase3-color {
1209  syntax: "<color>";
1210  inherits: true;
1211  initial-value: rgb(50, 205, 50);
1212}
1213@property --four-square-phase4-color {
1214  syntax: "<color>";
1215  inherits: true;
1216  initial-value: rgb(50, 205, 50);
1217}
1218@property --rli-animation-duration {
1219  syntax: "<time>";
1220  inherits: true;
1221  initial-value: 1s;
1222}
1223@keyframes uxlv7dk {
1224  0% {
1225    width: 2.5em;
1226    height: 2.5em;
1227  }
1228  10% {
1229    width: 2.5em;
1230    height: 2.5em;
1231  }
1232  50% {
1233    width: 3.75em;
1234    height: 3.75em;
1235  }
1236  90% {
1237    width: 2.5em;
1238    height: 2.5em;
1239  }
1240  100% {
1241    width: 2.5em;
1242    height: 2.5em;
1243  }
1244}
1245@keyframes uxlv7dd {
1246  0% {
1247    transform: rotateZ(0deg);
1248  }
1249  10% {
1250    transform: rotateZ(0deg);
1251  }
1252  50% {
1253    transform: rotateZ(90deg);
1254  }
1255  90% {
1256    transform: rotateZ(90deg);
1257  }
1258  100% {
1259    transform: rotateZ(90deg);
1260  }
1261}
1262@keyframes uxlv7es {
1263  100%, 0% {
1264    color: var(--four-square-phase1-color);
1265  }
1266  20% {
1267    color: var(--four-square-phase1-color);
1268  }
1269  25% {
1270    color: var(--four-square-phase2-color, var(--four-square-phase1-color));
1271  }
1272  45% {
1273    color: var(--four-square-phase2-color, var(--four-square-phase1-color));
1274  }
1275  50% {
1276    color: var(--four-square-phase3-color, var(--four-square-phase1-color));
1277  }
1278  70% {
1279    color: var(--four-square-phase3-color, var(--four-square-phase1-color));
1280  }
1281  75% {
1282    color: var(--four-square-phase4-color, var(--four-square-phase1-color));
1283  }
1284  95% {
1285    color: var(--four-square-phase4-color, var(--four-square-phase1-color));
1286  }
1287}`),Array.from({length:4},(function(e,t){return`--four-square-phase${t+1}-color`})),ik(`.mosaic-rli-bounding-box {
1288  --mosaic-phase1-color: rgb(50, 205, 50);
1289  box-sizing: border-box;
1290  font-size: 16px;
1291  color: var(--mosaic-phase1-color);
1292}
1293.mosaic-rli-bounding-box .mosaic-indicator {
1294  width: 5em;
1295  height: 5em;
1296  color: currentColor;
1297  display: grid;
1298  gap: 0.125em;
1299  grid-template-columns: repeat(3, 1fr);
1300  grid-template-areas: "a b c" "d e f" "g h i";
1301  position: relative;
1302  z-index: 0;
1303}
1304.mosaic-rli-bounding-box .mosaic-indicator .mosaic-cube-text {
1305  mix-blend-mode: difference;
1306  position: absolute;
1307  top: 105%;
1308  left: 50%;
1309  transform: translateX(-50%);
1310  z-index: -2;
1311}
1312.mosaic-rli-bounding-box .mosaic-indicator .mosaic-cube {
1313  background-color: var(--mosaic-phase1-color);
1314  animation-name: uxlv7i4, uxlv7is;
1315  animation-duration: var(--rli-animation-duration, 1.5s), calc(var(--rli-animation-duration, 1.5s) * 4);
1316  animation-timing-function: var(--rli-animation-function, ease-in-out);
1317  animation-iteration-count: infinite;
1318}
1319.mosaic-rli-bounding-box .mosaic-indicator .mosaic-cube1 {
1320  animation-delay: calc(var(--mosaic-skip-interval, 0.1s) * 2);
1321  grid-area: a;
1322}
1323.mosaic-rli-bounding-box .mosaic-indicator .mosaic-cube2 {
1324  animation-delay: calc(var(--mosaic-skip-interval, 0.1s) * 3);
1325  grid-area: b;
1326}
1327.mosaic-rli-bounding-box .mosaic-indicator .mosaic-cube3 {
1328  grid-area: c;
1329  animation-delay: calc(var(--mosaic-skip-interval, 0.1s) * 4);
1330}
1331.mosaic-rli-bounding-box .mosaic-indicator .mosaic-cube4 {
1332  grid-area: d;
1333  animation-delay: calc(var(--mosaic-skip-interval, 0.1s) * 1);
1334}
1335.mosaic-rli-bounding-box .mosaic-indicator .mosaic-cube5 {
1336  grid-area: e;
1337  animation-delay: calc(var(--mosaic-skip-interval, 0.1s) * 2);
1338}
1339.mosaic-rli-bounding-box .mosaic-indicator .mosaic-cube6 {
1340  grid-area: f;
1341  animation-delay: calc(var(--mosaic-skip-interval, 0.1s) * 3);
1342}
1343.mosaic-rli-bounding-box .mosaic-indicator .mosaic-cube7 {
1344  grid-area: g;
1345  animation-delay: 0s;
1346}
1347.mosaic-rli-bounding-box .mosaic-indicator .mosaic-cube8 {
1348  grid-area: h;
1349  animation-delay: calc(var(--mosaic-skip-interval, 0.1s) * 1);
1350}
1351.mosaic-rli-bounding-box .mosaic-indicator .mosaic-cube9 {
1352  grid-area: i;
1353  animation-delay: calc(var(--mosaic-skip-interval, 0.1s) * 2);
1354}
1355
1356@property --mosaic-phase1-color {
1357  syntax: "<color>";
1358  inherits: true;
1359  initial-value: rgb(50, 205, 50);
1360}
1361@property --mosaic-phase2-color {
1362  syntax: "<color>";
1363  inherits: true;
1364  initial-value: rgb(50, 205, 50);
1365}
1366@property --mosaic-phase3-color {
1367  syntax: "<color>";
1368  inherits: true;
1369  initial-value: rgb(50, 205, 50);
1370}
1371@property --mosaic-phase4-color {
1372  syntax: "<color>";
1373  inherits: true;
1374  initial-value: rgb(50, 205, 50);
1375}
1376@property --rli-animation-duration {
1377  syntax: "<time>";
1378  inherits: true;
1379  initial-value: 1.5s;
1380}
1381@keyframes uxlv7i4 {
1382  0%, 60%, 100% {
1383    transform: scale3D(1, 1, 1);
1384  }
1385  30% {
1386    transform: scale3D(0, 0, 1);
1387  }
1388}
1389@keyframes uxlv7is {
1390  100%, 0% {
1391    background-color: var(--mosaic-phase1-color);
1392  }
1393  25% {
1394    background-color: var(--mosaic-phase2-color, var(--mosaic-phase1-color));
1395  }
1396  50% {
1397    background-color: var(--mosaic-phase3-color, var(--mosaic-phase1-color));
1398  }
1399  75% {
1400    background-color: var(--mosaic-phase4-color, var(--mosaic-phase1-color));
1401  }
1402}`),Array.from({length:4},(function(e,t){return`--mosaic-phase${t+1}-color`})),ik(`.riple-rli-bounding-box {
1403  --riple-phase1-color: rgb(50, 205, 50);
1404  box-sizing: border-box;
1405  font-size: 16px;
1406  display: inline-block;
1407  color: var(--riple-phase1-color);
1408}
1409.riple-rli-bounding-box .riple-indicator {
1410  display: inline-block;
1411  width: 5em;
1412  height: 5em;
1413  position: relative;
1414  z-index: 0;
1415}
1416.riple-rli-bounding-box .riple-indicator .riple-text {
1417  mix-blend-mode: difference;
1418  position: absolute;
1419  top: 50%;
1420  left: 50%;
1421  transform: translate(-50%, -50%);
1422  z-index: -2;
1423}
1424.riple-rli-bounding-box .riple-indicator .riple {
1425  --border-width: 0.25em;
1426  position: absolute;
1427  border: var(--border-width) solid var(--riple-phase1-color);
1428  opacity: 1;
1429  border-radius: 50%;
1430  will-change: top, right, left, bottom, border-color;
1431  animation: var(--rli-animation-duration, 1s) var(--rli-animation-function, cubic-bezier(0, 0.2, 0.8, 1)) infinite uxlv7i1, calc(var(--rli-animation-duration, 1s) * 4) var(--rli-animation-function, cubic-bezier(0, 0.2, 0.8, 1)) infinite uxlv7io;
1432}
1433.riple-rli-bounding-box .riple-indicator .riple:nth-of-type(2) {
1434  animation-delay: calc(var(--rli-animation-duration, 1s) / 2 * -1);
1435}
1436
1437@property --riple-phase1-color {
1438  syntax: "<color>";
1439  inherits: true;
1440  initial-value: rgb(50, 205, 50);
1441}
1442@property --riple-phase2-color {
1443  syntax: "<color>";
1444  inherits: true;
1445  initial-value: rgb(50, 205, 50);
1446}
1447@property --riple-phase3-color {
1448  syntax: "<color>";
1449  inherits: true;
1450  initial-value: rgb(50, 205, 50);
1451}
1452@property --riple-phase4-color {
1453  syntax: "<color>";
1454  inherits: true;
1455  initial-value: rgb(50, 205, 50);
1456}
1457@property --rli-animation-duration {
1458  syntax: "<time>";
1459  inherits: true;
1460  initial-value: 1s;
1461}
1462@keyframes uxlv7i1 {
1463  0% {
1464    top: calc(50% - var(--border-width));
1465    left: calc(50% - var(--border-width));
1466    right: calc(50% - var(--border-width));
1467    bottom: calc(50% - var(--border-width));
1468    opacity: 0;
1469  }
1470  4.9% {
1471    top: calc(50% - var(--border-width));
1472    left: calc(50% - var(--border-width));
1473    right: calc(50% - var(--border-width));
1474    bottom: calc(50% - var(--border-width));
1475    opacity: 0;
1476  }
1477  5% {
1478    top: calc(50% - var(--border-width));
1479    left: calc(50% - var(--border-width));
1480    right: calc(50% - var(--border-width));
1481    bottom: calc(50% - var(--border-width));
1482    opacity: 1;
1483  }
1484  100% {
1485    top: 0;
1486    left: 0;
1487    right: 0;
1488    bottom: 0;
1489    opacity: 0;
1490  }
1491}
1492@keyframes uxlv7io {
1493  100%, 0% {
1494    border-color: var(--riple-phase1-color);
1495  }
1496  24.9% {
1497    border-color: var(--riple-phase1-color);
1498  }
1499  25% {
1500    border-color: var(--riple-phase2-color, var(--riple-phase1-color));
1501  }
1502  49.9% {
1503    border-color: var(--riple-phase2-color, var(--riple-phase1-color));
1504  }
1505  50% {
1506    border-color: var(--riple-phase3-color, var(--riple-phase1-color));
1507  }
1508  74.9% {
1509    border-color: var(--riple-phase3-color, var(--riple-phase1-color));
1510  }
1511  75% {
1512    border-color: var(--riple-phase4-color, var(--riple-phase1-color));
1513  }
1514  99.9% {
1515    border-color: var(--riple-phase4-color, var(--riple-phase1-color));
1516  }
1517}`),Array.from({length:4},(function(e,t){return`--riple-phase${t+1}-color`})),ik(`.pulsate-rli-bounding-box {
1518  --TD-pulsate-phase1-color: rgb(50, 205, 50);
1519  font-size: 16px;
1520  display: inline-block;
1521  box-sizing: border-box;
1522  color: var(--TD-pulsate-phase1-color);
1523}
1524.pulsate-rli-bounding-box .pulsate-indicator {
1525  width: 4.4em;
1526  height: 1.1em;
1527  text-align: center;
1528  position: relative;
1529  z-index: 0;
1530  display: flex;
1531  justify-content: space-between;
1532  flex-wrap: nowrap;
1533  align-items: center;
1534}
1535.pulsate-rli-bounding-box .pulsate-indicator .pulsate-dot {
1536  width: 1.1em;
1537  height: 1.1em;
1538  border-radius: 50%;
1539  background-color: var(--TD-pulsate-phase1-color);
1540  transform: scale(0);
1541  animation: var(--rli-animation-duration, 1.2s) var(--rli-animation-function, ease-in-out) var(--delay) infinite uxlv7s0, calc(var(--rli-animation-duration, 1.2s) * 4) var(--rli-animation-function, ease-in-out) var(--delay) infinite uxlv7to;
1542}
1543.pulsate-rli-bounding-box .pulsate-indicator .pulsate-dot:nth-of-type(1) {
1544  --delay: calc(var(--rli-animation-duration, 1.2s) * 0.15 * -1);
1545}
1546.pulsate-rli-bounding-box .pulsate-indicator .pulsate-dot:nth-of-type(2) {
1547  --delay: calc(var(--rli-animation-duration, 1.2s) * 0);
1548}
1549.pulsate-rli-bounding-box .pulsate-indicator .pulsate-dot:nth-of-type(3) {
1550  --delay: calc(var(--rli-animation-duration, 1.2s) * 0.15);
1551}
1552.pulsate-rli-bounding-box .pulsate-text {
1553  white-space: nowrap;
1554  overflow: hidden;
1555  text-overflow: ellipsis;
1556  width: 80%;
1557  text-transform: uppercase;
1558  text-align: center;
1559  font-size: 0.6em;
1560  letter-spacing: 0.5px;
1561  font-family: sans-serif;
1562  mix-blend-mode: difference;
1563  position: absolute;
1564  top: 50%;
1565  left: 50%;
1566  transform: translate(-50%, -50%);
1567  z-index: -2;
1568}
1569
1570@property --TD-pulsate-phase1-color {
1571  syntax: "<color>";
1572  inherits: true;
1573  initial-value: rgb(50, 205, 50);
1574}
1575@property --TD-pulsate-phase2-color {
1576  syntax: "<color>";
1577  inherits: true;
1578  initial-value: rgb(50, 205, 50);
1579}
1580@property --TD-pulsate-phase3-color {
1581  syntax: "<color>";
1582  inherits: true;
1583  initial-value: rgb(50, 205, 50);
1584}
1585@property --TD-pulsate-phase4-color {
1586  syntax: "<color>";
1587  inherits: true;
1588  initial-value: rgb(50, 205, 50);
1589}
1590@property --rli-animation-duration {
1591  syntax: "<time>";
1592  inherits: true;
1593  initial-value: 1.2s;
1594}
1595@keyframes uxlv7s0 {
1596  0%, 90%, 100% {
1597    transform: scale(0);
1598  }
1599  40% {
1600    transform: scale(1);
1601  }
1602}
1603@keyframes uxlv7to {
1604  0%, 100% {
1605    background-color: var(--TD-pulsate-phase1-color);
1606  }
1607  24.9% {
1608    background-color: var(--TD-pulsate-phase1-color);
1609  }
1610  25% {
1611    background-color: var(--TD-pulsate-phase2-color, var(--TD-pulsate-phase1-color));
1612  }
1613  49.9% {
1614    background-color: var(--TD-pulsate-phase2-color, var(--TD-pulsate-phase1-color));
1615  }
1616  50% {
1617    background-color: var(--TD-pulsate-phase3-color, var(--TD-pulsate-phase1-color));
1618  }
1619  74.9% {
1620    background-color: var(--TD-pulsate-phase3-color, var(--TD-pulsate-phase1-color));
1621  }
1622  75% {
1623    background-color: var(--TD-pulsate-phase4-color, var(--TD-pulsate-phase1-color));
1624  }
1625  99.9% {
1626    background-color: var(--TD-pulsate-phase4-color, var(--TD-pulsate-phase1-color));
1627  }
1628}`);var qk=Array.from({length:4},(function(e,t){return`--TD-pulsate-phase${t+1}-color`})),Jk=function(e){var t=Vk(e?.style,e?.size),n=t.styles,r=t.fontSize,i=e?.easing,a=Bk(e?.
1628speedPlus,`1.2s`).animationPeriod,o=function(e){var t={};if(e instanceof Array){for(var n=Gk(e,qk.length),r=0;r<n.length&&!(r>=4);r++)t[qk[r]]=n[r];return t}try{if(typeof e!=`string`)throw Error(`Color String expected`);for(var i=0;i<qk.length;i++)t[qk[i]]=e}catch(n){for(n instanceof Error?console.warn(`[${n.message}]: Received "${typeof e}" instead with value, ${JSON.stringify(e)}`):console.warn(`${JSON.stringify(e)} received in <ThreeDot variant="pulsate" /> indicator cannot be processed. Using default instead!`),i=0;i<qk.length;i++)t[qk[i]]=Wk}return t}(e?.color??``);return y.createElement(`span`,{className:`rli-d-i-b pulsate-rli-bounding-box`,style:ak(ak(ak(ak(ak({},r&&{fontSize:r}),a&&{"--rli-animation-duration":a}),i&&{"--rli-animation-function":i}),o),n),role:`status`,"aria-live":`polite`,"aria-label":`Loading`},y.createElement(`span`,{className:`rli-d-i-b pulsate-indicator`},y.createElement(`span`,{className:`rli-d-i-b pulsate-dot`}),y.createElement(`span`,{className:`rli-d-i-b pulsate-dot`}),y.createElement(`span`,{className:`rli-d-i-b pulsate-dot`})),y.createElement(Uk,{staticText:!0,text:e?.text,textColor:e?.textColor}))};ik(`.brick-stack-rli-bounding-box {
1629  --TD-brick-stack-phase1-color: rgb(50, 205, 50);
1630  box-sizing: border-box;
1631  font-size: 16px;
1632  display: inline-block;
1633  color: var(--TD-brick-stack-phase1-color);
1634}
1635.brick-stack-rli-bounding-box .brick-stack-indicator {
1636  width: 2.8em;
1637  height: 2.8em;
1638  position: relative;
1639  display: block;
1640  margin: 0 auto;
1641}
1642.brick-stack-rli-bounding-box .brick-stack {
1643  width: 100%;
1644  height: 100%;
1645  background: radial-gradient(circle closest-side, currentColor 0% 95%, rgba(0, 0, 0, 0) calc(95% + 1px)) 0 0/40% 40% no-repeat, radial-gradient(circle closest-side, currentColor 0% 95%, rgba(0, 0, 0, 0) calc(95% + 1px)) 0 100%/40% 40% no-repeat, radial-gradient(circle closest-side, currentColor 0% 95%, rgba(0, 0, 0, 0) calc(95% + 1px)) 100% 100%/40% 40% no-repeat;
1646  animation: var(--rli-animation-duration, 1s) var(--rli-animation-function, ease-out) infinite uxlv7tu, calc(var(--rli-animation-duration, 1s) * 4) var(--rli-animation-function, ease-out) infinite uxlv7us;
1647}
1648
1649@property --TD-brick-stack-phase1-color {
1650  syntax: "<color>";
1651  inherits: true;
1652  initial-value: rgb(50, 205, 50);
1653}
1654@property --TD-brick-stack-phase2-color {
1655  syntax: "<color>";
1656  inherits: true;
1657  initial-value: rgb(50, 205, 50);
1658}
1659@property --TD-brick-stack-phase3-color {
1660  syntax: "<color>";
1661  inherits: true;
1662  initial-value: rgb(50, 205, 50);
1663}
1664@property --TD-brick-stack-phase4-color {
1665  syntax: "<color>";
1666  inherits: true;
1667  initial-value: rgb(50, 205, 50);
1668}
1669@property --rli-animation-duration {
1670  syntax: "<time>";
1671  inherits: true;
1672  initial-value: 1s;
1673}
1674@keyframes uxlv7tu {
1675  0% {
1676    background-position: 0 0, 0 100%, 100% 100%;
1677  }
1678  25% {
1679    background-position: 100% 0, 0 100%, 100% 100%;
1680  }
1681  50% {
1682    background-position: 100% 0, 0 0, 100% 100%;
1683  }
1684  75% {
1685    background-position: 100% 0, 0 0, 0 100%;
1686  }
1687  100% {
1688    background-position: 100% 100%, 0 0, 0 100%;
1689  }
1690}
1691@keyframes uxlv7us {
1692  100%, 0% {
1693    color: var(--TD-brick-stack-phase1-color);
1694  }
1695  20% {
1696    color: var(--TD-brick-stack-phase1-color);
1697  }
1698  25% {
1699    color: var(--TD-brick-stack-phase2-color, var(--TD-brick-stack-phase1-color));
1700  }
1701  45% {
1702    color: var(--TD-brick-stack-phase2-color, var(--TD-brick-stack-phase1-color));
1703  }
1704  50% {
1705    color: var(--TD-brick-stack-phase3-color, var(--TD-brick-stack-phase1-color));
1706  }
1707  70% {
1708    color: var(--TD-brick-stack-phase3-color, var(--TD-brick-stack-phase1-color));
1709  }
1710  75% {
1711    color: var(--TD-brick-stack-phase4-color, var(--TD-brick-stack-phase1-color));
1712  }
1713  95% {
1714    color: var(--TD-brick-stack-phase4-color, var(--TD-brick-stack-phase1-color));
1715  }
1716}`);var Yk=Array.from({length:4},(function(e,t){return`--TD-brick-stack-phase${t+1}-color`})),Xk=function(e){var t=Vk(e?.style,e?.size),n=t.styles,r=t.fontSize,i=e?.easing,a=Bk(e?.speedPlus,`1s`).animationPeriod,o=function(e){var t={};if(e instanceof Array){for(var n=Gk(e,Yk.length),r=0;r<n.length&&!(r>=4);r++)t[Yk[r]]=n[r];return t}try{if(typeof e!=`string`)throw Error(`Color String expected`);for(var i=0;i<Yk.length;i++)t[Yk[i]]=e}catch(n){for(n instanceof Error?console.warn(`[${n.message}]: Received "${typeof e}" instead with value, ${JSON.stringify(e)}`):console.warn(`${JSON.stringify(e)} received in <ThreeDot variant="brick-stack" /> indicator cannot be processed. Using default instead!`),i=0;i<Yk.length;i++)t[Yk[i]]=Wk}return t}(e?.color??``);return y.createElement(`span`,{className:`rli-d-i-b brick-stack-rli-bounding-box`,style:ak(ak(ak(ak(ak({},r&&{fontSize:r}),a&&{"--rli-animation-duration":a}),i&&{"--rli-animation-function":i}),o),n),role:`status`,"aria-live":`polite`,"aria-label":`Loading`},y.createElement(`span`,{className:`rli-d-i-b brick-stack-indicator`},y.createElement(`span`,{className:`rli-d-i-b brick-stack`})),y.createElement(Uk,{staticText:!0,text:e?.text,textColor:e?.textColor}))};ik(`.bob-rli-bounding-box {
1717  --TD-bob-phase1-color: rgb(50, 205, 50);
1718  box-sizing: border-box;
1719  font-size: 16px;
1720  display: inline-block;
1721  color: var(--TD-bob-phase1-color);
1722}
1723.bob-rli-bounding-box .bob-indicator {
1724  width: 4.4em;
1725  height: 2.2em;
1726  position: relative;
1727  display: block;
1728  margin: 0 auto;
1729}
1730.bob-rli-bounding-box .bob-indicator .bobbing,
1731.bob-rli-bounding-box .bob-indicator .bobbing::before,
1732.bob-rli-bounding-box .bob-indicator .bobbing::after {
1733  width: 1.1em;
1734  height: 100%;
1735  display: grid;
1736  animation: var(--rli-animation-duration, 1.2s) var(--rli-animation-function, linear) var(--delay) infinite uxlv7u0, calc(var(--rli-animation-duration, 1.2s) * 4) var(--rli-animation-function, linear) var(--delay) infinite uxlv7vq;
1737}
1738.bob-rli-bounding-box .bob-indicator .bobbing::before,
1739.bob-rli-bounding-box .bob-indicator .bobbing::after {
1740  content: "";
1741  grid-area: 1/1;
1742}
1743.bob-rli-bounding-box .bob-indicator .bobbing {
1744  --delay: calc(var(--rli-animation-duration, 1.2s) * 0.12 * -1);
1745  background: radial-gradient(circle closest-side at center, currentColor 0% 92%, rgba(0, 0, 0, 0) calc(92% + 1px)) 50% 50%/100% 50% no-repeat;
1746}
1747.bob-rli-bounding-box .bob-indicator .bobbing::before {
1748  --delay: calc(var(--rli-animation-duration, 1.2s) * 0);
1749  transform: translateX(150%);
1750  background: radial-gradient(circle closest-side at center, currentColor 0% 92%, rgba(0, 0, 0, 0) calc(92% + 1px)) 50% 50%/100% 50% no-repeat;
1751}
1752.bob-rli-bounding-box .bob-indicator .bobbing::after {
1753  --delay: calc(var(--rli-animation-duration, 1.2s) * 0.12);
1754  transform: translateX(300%);
1755  background: radial-gradient(circle closest-side at center, currentColor 0% 92%, rgba(0, 0, 0, 0) calc(92% + 1px)) 50% 50%/100% 50% no-repeat;
1756}
1757
1758@property --TD-bob-phase1-color {
1759  syntax: "<color>";
1760  inherits: true;
1761  initial-value: rgb(50, 205, 50);
1762}
1763@property --TD-bob-phase2-color {
1764  syntax: "<color>";
1765  inherits: true;
1766  initial-value: rgb(50, 205, 50);
1767}
1768@property --TD-bob-phase3-color {
1769  syntax: "<color>";
1770  inherits: true;
1771  initial-value: rgb(50, 205, 50);
1772}
1773@property --TD-bob-phase4-color {
1774  syntax: "<color>";
1775  inherits: true;
1776  initial-value: rgb(50, 205, 50);
1777}
1778@property --rli-animation-duration {
1779  syntax: "<time>";
1780  inherits: true;
1781  initial-value: 1.2s;
1782}
1783@keyframes uxlv7u0 {
1784  100%, 0% {
1785    background-position: 50% 50%;
1786  }
1787  15% {
1788    background-position: 50% 10%;
1789  }
1790  30% {
1791    background-position: 50% 100%;
1792  }
1793  40% {
1794    background-position: 50% 0%;
1795  }
1796  50% {
1797    background-position: 50% 90%;
1798  }
1799  70% {
1800    background-position: 50% 10%;
1801  }
1802  98% {
1803    background-position: 50% 50%;
1804  }
1805}
1806@keyframes uxlv7vq {
1807  100%, 0% {
1808    color: var(--TD-bob-phase1-color);
1809  }
1810  22% {
1811    color: var(--TD-bob-phase1-color);
1812  }
1813  25% {
1814    color: var(--TD-bob-phase2-color, var(--TD-bob-phase1-color));
1815  }
1816  47% {
1817    color: var(--TD-bob-phase2-color, var(--TD-bob-phase1-color));
1818  }
1819  50% {
1820    color: var(--TD-bob-phase3-color, var(--TD-bob-phase1-color));
1821  }
1822  72% {
1823    color: var(--TD-bob-phase3-color, var(--TD-bob-phase1-color));
1824  }
1825  75% {
1826    color: var(--TD-bob-phase4-color, var(--TD-bob-phase1-color));
1827  }
1828  97% {
1829    color: var(--TD-bob-phase4-color, var(--TD-bob-phase1-color));
1830  }
1831}`);var Zk=Array.from({length:4},(function(e,t){return`--TD-bob-phase${t+1}-color`})),Qk=function(e){var t=Vk(e?.style,e?.size),n=t.styles,r=t.fontSize,i=e?.easing,a=Bk(e?.speedPlus,`1.2s`).animationPeriod,o=function(e){var t={};if(e instanceof Array){for(var n=Gk(e,Zk.length),r=0;r<n.length&&!(r>=4);r++)t[Zk[r]]=n[r];return t}try{if(typeof e!=`string`)throw Error(`Color String expected`);for(var i=0;i<Zk.length;i++)t[Zk[i]]=e}catch(n){for(n instanceof Error?console.warn(`[${n.message}]: Received "${typeof e}" instead with value, ${JSON.stringify(e)}`):console.warn(`${JSON.stringify(e)} received in <ThreeDot variant="bob" /> indicator cannot be processed. Using default instead!`),i=0;i<Zk.length;i++)t[Zk[i]]=Wk}return t}(e?.color??``);return y.createElement(`span`,{className:`rli-d-i-b bob-rli-bounding-box`,style:ak(ak(ak(ak(ak({},r&&{fontSize:r}),a&&{"--rli-animation-duration":a}),i&&{"--rli-animation-function":i}),o),n),role:`status`,"aria-live":`polite`,"aria-label":`Loading`},y.createElement(`span`,{className:`bob-indicator`},y.createElement(`span`,{className:`bobbing`})),y.createElement(Uk,{staticText:!0,text:e?.text,textColor:e?.textColor}))};ik(`.bounce-rli-bounding-box {
1832  --TD-bounce-phase1-color: rgb(50, 205, 50);
1833  font-size: 16px;
1834  color: var(--TD-bounce-phase1-color);
1835  display: inline-block;
1836  padding-bottom: 0.25125em;
1837}
1838.bounce-rli-bounding-box .wrapper {
1839  --dot1-delay: 0s;
1840  --dot1-x-offset: 0.55em;
1841  --dot2-delay: calc((var(--rli-animation-duration, 0.5s) + var(--rli-animation-duration, 0.5s) * 0.75) * -1);
1842  --dot2-x-offset: 2.2em;
1843  --dot3-delay: calc((var(--rli-animation-duration, 0.5s) + var(--rli-animation-duration, 0.5s) * 0.5) * -1);
1844  --dot3-x-offset: 3.85em;
1845  width: 5.5em;
1846  height: 3.125em;
1847  position: relative;
1848  display: block;
1849  margin: 0 auto;
1850}
1851.bounce-rli-bounding-box .wrapper .group {
1852  display: block;
1853  position: absolute;
1854  top: 0;
1855  right: 0;
1856  bottom: 0;
1857  left: 0;
1858}
1859.bounce-rli-bounding-box .wrapper .group .dot {
1860  width: 1.1em;
1861  height: 1.1em;
1862  position: absolute;
1863  border-radius: 50%;
1864  background-color: var(--TD-bounce-phase1-color);
1865  transform-origin: 50%;
1866  animation: var(--rli-animation-duration, 0.5s) var(--rli-animation-function, cubic-bezier(0.74, 0.1, 0.74, 1)) alternate infinite uxlv7wc, calc(var(--rli-animation-duration, 0.5s) * 4) var(--rli-animation-function, cubic-bezier(0.74, 0.1, 0.74, 1)) infinite uxlv7x6;
1867}
1868.bounce-rli-bounding-box .wrapper .group .dot:nth-of-type(1) {
1869  left: var(--dot1-x-offset);
1870  animation-delay: var(--dot1-delay), 0s;
1871}
1872.bounce-rli-bounding-box .wrapper .group .dot:nth-of-type(2) {
1873  left: var(--dot2-x-offset);
1874  animation-delay: var(--dot2-delay), 0s;
1875}
1876.bounce-rli-bounding-box .wrapper .group .dot:nth-of-type(3) {
1877  left: var(--dot3-x-offset);
1878  animation-delay: var(--dot3-delay), 0s;
1879}
1880.bounce-rli-bounding-box .wrapper .group .shadow {
1881  width: 1.1em;
1882  height: 0.22em;
1883  border-radius: 50%;
1884  background-color: rgba(0, 0, 0, 0.5);
1885  position: absolute;
1886  top: 101%;
1887  transform-origin: 50%;
1888  z-index: -1;
1889  filter: blur(1px);
1890  animation: var(--rli-animation-duration, 0.5s) var(--rli-animation-function, cubic-bezier(0.74, 0.1, 0.74, 1)) alternate infinite uxlv7ww;
1891}
1892.bounce-rli-bounding-box .wrapper .group .shadow:nth-of-type(1) {
1893  left: var(--dot1-x-offset);
1894  animation-delay: var(--dot1-delay);
1895}
1896.bounce-rli-bounding-box .wrapper .group .shadow:nth-of-type(2) {
1897  left: var(--dot2-x-offset);
1898  animation-delay: var(--dot2-delay);
1899}
1900.bounce-rli-bounding-box .wrapper .group .shadow:nth-of-type(3) {
1901  left: var(--dot3-x-offset);
1902  animation-delay: var(--dot3-delay);
1903}
1904
1905@property --TD-bounce-phase1-color {
1906  syntax: "<color>";
1907  inherits: true;
1908  initial-value: rgb(50, 205, 50);
1909}
1910@property --TD-bounce-phase2-color {
1911  syntax: "<color>";
1912  inherits: true;
1913  initial-value: rgb(50, 205, 50);
1914}
1915@property --TD-bounce-phase3-color {
1916  syntax: "<color>";
1917  inherits: true;
1918  initial-value: rgb(50, 205, 50);
1919}
1920@property --TD-bounce-phase4-color {
1921  syntax: "<color>";
1922  inherits: true;
1923  initial-value: rgb(50, 205, 50);
1924}
1925@property --rli-animation-duration {
1926  syntax: "<time>";
1927  inherits: true;
1928  initial-value: 0.5s;
1929}
1930@keyframes uxlv7wc {
1931  0% {
1932    top: 0%;
1933  }
1934  60% {
1935    height: 1.25em;
1936    border-radius: 50%;
1937    transform: scaleX(1);
1938  }
1939  100% {
1940    top: 100%;
1941    height: 0.22em;
1942    transform: scaleX(1.5);
1943    filter: blur(0.4px);
1944  }
1945}
1946@keyframes uxlv7ww {
1947  0% {
1948    transform: scaleX(0.2);
1949    opacity: 0.2;
1950  }
1951  60% {
1952    opacity: 0.4;
1953  }
1954  100% {
1955    transform: scaleX(1.5);
1956    opacity: 0.6;
1957  }
1958}
1959@keyframes uxlv7x6 {
1960  0%, 100% {
1961    background-color: var(--TD-bounce-phase1-color);
1962  }
1963  20% {
1964    background-color: var(--TD-bounce-phase1-color);
1965  }
1966  25% {
1967    background-color: var(--TD-bounce-phase2-color, var(--TD-bounce-phase1-color));
1968  }
1969  45% {
1970    background-color: var(--TD-bounce-phase2-color, var(--TD-bounce-phase1-color));
1971  }
1972  50% {
1973    background-color: var(--TD-bounce-phase3-color, var(--TD-bounce-phase1-color));
1974  }
1975  70% {
1976    background-color: var(--TD-bounce-phase3-color, var(--TD-bounce-phase1-color));
1977  }
1978  75% {
1979    background-color: var(--TD-bounce-phase4-color, var(--TD-bounce-phase1-color));
1980  }
1981  95% {
1982    background-color: var(--TD-bounce-phase4-color, var(--TD-bounce-phase1-color));
1983  }
1984}`);var $k=Array.from({length:4},(function(e,t){return`--TD-bounce-phase${t+1}-color`})),eA=function(e){var t=Vk(e?.style,e?.size),n=t.styles,r=t.fontSize,i=e?.easing,a=Bk(e?.
1984speedPlus,`0.5s`).animationPeriod,o=function(e){var t={};if(e instanceof Array){for(var n=Gk(e,$k.length),r=0;r<n.length&&!(r>=4);r++)t[$k[r]]=n[r];return t}try{if(typeof e!=`string`)throw Error(`Color String expected`);for(var i=0;i<$k.length;i++)t[$k[i]]=e}catch{for(i=0;i<$k.length;i++)t[$k[i]]=Wk}return t}(e?.color??``);return y.createElement(`span`,{className:`rli-d-i-b bounce-rli-bounding-box`,style:ak(ak(ak(ak(ak({},r&&{fontSize:r}),a&&{"--rli-animation-duration":a}),i&&{"--rli-animation-function":i}),o),n)},y.createElement(`span`,{className:`wrapper`},y.createElement(`span`,{className:`group`},y.createElement(`span`,{className:`rli-d-i-b dot`}),y.createElement(`span`,{className:`rli-d-i-b dot`}),y.createElement(`span`,{className:`rli-d-i-b dot`})),y.createElement(`span`,{className:`group`},y.createElement(`span`,{className:`rli-d-i-b shadow`}),y.createElement(`span`,{className:`rli-d-i-b shadow`}),y.createElement(`span`,{className:`rli-d-i-b shadow`}))),y.createElement(Uk,{staticText:!0,text:e?.text,textColor:e?.textColor,style:{marginTop:`2px`}}))},tA=function(e){var t=Object(e).variant,n=t===void 0?`pulsate`:t;return n===`pulsate`?y.createElement(Jk,ak({},e)):n===`brick-stack`?y.createElement(Xk,ak({},e)):n===`bob`?y.createElement(Qk,ak({},e)):n===`bounce`?y.createElement(eA,ak({},e)):null};ik(`.blink-blur-rli-bounding-box {
1985  --shape-phase1-color: rgb(50, 205, 50);
1986  font-size: 16px;
1987  color: var(--shape-phase1-color);
1988}
1989.blink-blur-rli-bounding-box .blink-blur-indicator {
1990  isolation: isolate;
1991  display: flex;
1992  flex-direction: row;
1993  -moz-column-gap: 0.4em;
1994       column-gap: 0.4em;
1995}
1996.blink-blur-rli-bounding-box .blink-blur-indicator .blink-blur-shape {
1997  --x-deg: -20deg;
1998  width: 1.8em;
1999  height: 2.25em;
2000  border-radius: 0.25em;
2001  color: inherit;
2002  transform: skewX(var(--x-deg));
2003  background-color: var(--shape-phase1-color);
2004  animation-name: uxlv7id, uxlv7jl;
2005  animation-duration: var(--rli-animation-duration, 1.2s), calc(var(--rli-animation-duration, 1.2s) * 4);
2006  animation-timing-function: var(--rli-animation-function, ease-in);
2007  animation-iteration-count: infinite;
2008}
2009.blink-blur-rli-bounding-box .blink-blur-indicator .blink-blur-shape.blink-blur-shape1 {
2010  animation-delay: calc(var(--rli-animation-duration, 1.2s) * 0.5 * -1);
2011}
2012.blink-blur-rli-bounding-box .blink-blur-indicator .blink-blur-shape.blink-blur-shape2 {
2013  animation-delay: calc(var(--rli-animation-duration, 1.2s) * 0.4 * -1);
2014}
2015.blink-blur-rli-bounding-box .blink-blur-indicator .blink-blur-shape.blink-blur-shape3 {
2016  animation-delay: calc(var(--rli-animation-duration, 1.2s) * 0.3 * -1);
2017}
2018.blink-blur-rli-bounding-box .blink-blur-indicator .blink-blur-shape.blink-blur-shape4 {
2019  animation-delay: calc(var(--rli-animation-duration, 1.2s) * 0.2 * -1);
2020}
2021.blink-blur-rli-bounding-box .blink-blur-indicator .blink-blur-shape.blink-blur-shape5 {
2022  animation-delay: calc(var(--rli-animation-duration, 1.2s) * 0.1 * -1);
2023}
2024
2025@property --shape-phase1-color {
2026  syntax: "<color>";
2027  inherits: true;
2028  initial-value: rgb(50, 205, 50);
2029}
2030@property --shape-phase2-color {
2031  syntax: "<color>";
2032  inherits: true;
2033  initial-value: rgb(50, 205, 50);
2034}
2035@property --shape-phase3-color {
2036  syntax: "<color>";
2037  inherits: true;
2038  initial-value: rgb(50, 205, 50);
2039}
2040@property --shape-phase4-color {
2041  syntax: "<color>";
2042  inherits: true;
2043  initial-value: rgb(50, 205, 50);
2044}
2045@property --rli-animation-duration {
2046  syntax: "<time>";
2047  inherits: true;
2048  initial-value: 1.2s;
2049}
2050@keyframes uxlv7id {
2051  100%, 0% {
2052    opacity: 0.3;
2053    filter: blur(0.0675em) drop-shadow(0 0 0.0625em);
2054    transform: skewX(var(--x-deg)) scale(1.2, 1.45);
2055  }
2056  39% {
2057    opacity: 0.8;
2058  }
2059  40%, 41%, 42% {
2060    opacity: 0;
2061  }
2062  43% {
2063    opacity: 0.8;
2064  }
2065  50% {
2066    opacity: 1;
2067    filter: blur(0em) drop-shadow(0 0 0em);
2068    transform: skewX(var(--x-deg)) scale(1, 1);
2069  }
2070}
2071@keyframes uxlv7jl {
2072  100%, 0% {
2073    color: var(--shape-phase1-color);
2074    background-color: var(--shape-phase1-color);
2075  }
2076  25% {
2077    color: var(--shape-phase2-color, var(--shape-phase1-color));
2078    background-color: var(--shape-phase2-color, var(--shape-phase1-color));
2079  }
2080  50% {
2081    color: var(--shape-phase3-color, var(--shape-phase1-color));
2082    background-color: var(--shape-phase3-color, var(--shape-phase1-color));
2083  }
2084  75% {
2085    color: var(--shape-phase4-color, var(--shape-phase1-color));
2086    background-color: var(--shape-phase4-color, var(--shape-phase1-color));
2087  }
2088}`),Array.from({length:4},(function(e,t){return`--shape-phase${t+1}-color`})),ik(`.trophy-spin-rli-bounding-box {
2089  --trophySpin-phase1-color: rgb(50, 205, 50);
2090  box-sizing: border-box;
2091  font-size: 16px;
2092  position: relative;
2093  isolation: isolate;
2094  color: var(--trophySpin-phase1-color);
2095}
2096.trophy-spin-rli-bounding-box .trophy-spin-indicator {
2097  width: 4em;
2098  perspective: 1000px;
2099  transform-style: preserve-3d;
2100  display: block;
2101  margin: 0 auto;
2102}
2103.trophy-spin-rli-bounding-box .trophy-spin-indicator .blade {
2104  display: block;
2105  width: 4em;
2106  height: 0.5em;
2107  background: var(--trophySpin-phase1-color);
2108  animation: uxlv7ki var(--rli-animation-duration, 2.5s) var(--rli-animation-function, linear) infinite, uxlv7l2 calc(var(--rli-animation-duration, 2.5s) * 0.5) var(--rli-animation-function, linear) infinite, uxlv7ly calc(var(--rli-animation-duration, 2.5s) * 4) var(--rli-animation-function, linear) infinite;
2109}
2110.trophy-spin-rli-bounding-box .trophy-spin-indicator .blade:nth-of-type(8) {
2111  animation-delay: calc(var(--rli-animation-duration, 2.5s) / 2 / 8 * 0 * -1);
2112}
2113.trophy-spin-rli-bounding-box .trophy-spin-indicator .blade:nth-of-type(7) {
2114  animation-delay: calc(var(--rli-animation-duration, 2.5s) / 2 / 8 * 1 * -1);
2115}
2116.trophy-spin-rli-bounding-box .trophy-spin-indicator .blade:nth-of-type(6) {
2117  animation-delay: calc(var(--rli-animation-duration, 2.5s) / 2 / 8 * 2 * -1);
2118}
2119.trophy-spin-rli-bounding-box .trophy-spin-indicator .blade:nth-of-type(5) {
2120  animation-delay: calc(var(--rli-animation-duration, 2.5s) / 2 / 8 * 3 * -1);
2121}
2122.trophy-spin-rli-bounding-box .trophy-spin-indicator .blade:nth-of-type(4) {
2123  animation-delay: calc(var(--rli-animation-duration, 2.5s) / 2 / 8 * 4 * -1);
2124}
2125.trophy-spin-rli-bounding-box .trophy-spin-indicator .blade:nth-of-type(3) {
2126  animation-delay: calc(var(--rli-animation-duration, 2.5s) / 2 / 8 * 5 * -1);
2127}
2128.trophy-spin-rli-bounding-box .trophy-spin-indicator .blade:nth-of-type(2) {
2129  animation-delay: calc(var(--rli-animation-duration, 2.5s) / 2 / 8 * 6 * -1);
2130}
2131.trophy-spin-rli-bounding-box .trophy-spin-indicator .blade:nth-of-type(1) {
2132  animation-delay: calc(var(--rli-animation-duration, 2.5s) / 2 / 8 * 7 * -1);
2133}
2134
2135@property --trophySpin-phase1-color {
2136  syntax: "<color>";
2137  inherits: true;
2138  initial-value: rgb(50, 205, 50);
2139}
2140@property --trophySpin-phase2-color {
2141  syntax: "<color>";
2142  inherits: true;
2143  initial-value: rgb(50, 205, 50);
2144}
2145@property --trophySpin-phase3-color {
2146  syntax: "<color>";
2147  inherits: true;
2148  initial-value: rgb(50, 205, 50);
2149}
2150@property --trophySpin-phase4-color {
2151  syntax: "<color>";
2152  inherits: true;
2153  initial-value: rgb(50, 205, 50);
2154}
2155@property --rli-animation-duration {
2156  syntax: "<time>";
2157  inherits: true;
2158  initial-value: 2.5s;
2159}
2160@keyframes uxlv7ki {
2161  to {
2162    transform: rotateY(1turn) rotateX(-25deg);
2163  }
2164}
2165@keyframes uxlv7l2 {
2166  100%, 0% {
2167    filter: brightness(1);
2168    opacity: 1;
2169  }
2170  15% {
2171    filter: brightness(1);
2172  }
2173  25% {
2174    opacity: 0.96;
2175  }
2176  30% {
2177    filter: brightness(0.92);
2178  }
2179  50% {
2180    filter: brightness(0.7);
2181    opacity: 1;
2182  }
2183  75% {
2184    filter: brightness(0.92);
2185    opacity: 0.96;
2186  }
2187  90% {
2188    filter: brightness(1);
2189  }
2190}
2191@keyframes uxlv7ly {
2192  100%, 0% {
2193    background-color: var(--trophySpin-phase1-color);
2194  }
2195  18% {
2196    background-color: var(--trophySpin-phase1-color);
2197  }
2198  25% {
2199    background-color: var(--trophySpin-phase2-color, var(--trophySpin-phase1-color));
2200  }
2201  43% {
2202    background-color: var(--trophySpin-phase2-color, var(--trophySpin-phase1-color));
2203  }
2204  50% {
2205    background-color: var(--trophySpin-phase3-color, var(--trophySpin-phase1-color));
2206  }
2207  68% {
2208    background-color: var(--trophySpin-phase3-color, var(--trophySpin-phase1-color));
2209  }
2210  75% {
2211    background-color: var(--trophySpin-phase4-color, var(--trophySpin-phase1-color));
2212  }
2213  93% {
2214    background-color: var(--trophySpin-phase4-color, var(--trophySpin-phase1-color));
2215  }
2216}`),Array.from({length:4},(function(e,t){return`--trophySpin-phase${t+1}-color`})),ik(`.slab-rli-bounding-box {
2217  --slab-phase1-color: rgb(50, 205, 50);
2218  font-size: 16px;
2219  color: var(--slab-phase1-color);
2220  position: relative;
2221}
2222.slab-rli-bounding-box .slab-indicator {
2223  position: relative;
2224  display: block;
2225  width: 7em;
2226  height: 4em;
2227  margin: 0 auto;
2228  overflow: hidden;
2229}
2230.slab-rli-bounding-box .slab-indicator .slabs-wrapper {
2231  width: 4em;
2232  height: 4em;
2233  transform: perspective(15em) rotateX(66deg) rotateZ(-25deg);
2234  transform-style: preserve-3d;
2235  transform-origin: 50% 100%;
2236  display: block;
2237  position: absolute;
2238  bottom: 0;
2239  right: 0;
2240}
2241.slab-rli-bounding-box .slab-indicator .slabs-wrapper .slab {
2242  position: absolute;
2243  top: 0;
2244  left: 0;
2245  right: 0;
2246  bottom: 0;
2247  background-color: var(--slab-phase1-color);
2248  opacity: 0;
2249  box-shadow: -0.08em 0.15em 0 rgba(0, 0, 0, 0.45);
2250  transform-origin: 0% 0%;
2251  animation: calc(var(--rli-animation-duration-unitless, 3) * 1s) var(--rli-animation-function, linear) infinite uxlv7md, calc(var(--rli-animation-duration-unitless, 3) * 4s) var(--rli-animation-function, linear) infinite uxlv7n0;
2252}
2253.slab-rli-bounding-box .slab-indicator .slabs-wrapper .slab:nth-child(1) {
2254  animation-delay: calc(4 / (16 / var(--rli-animation-duration-unitless, 3)) * 3 * -1 * 1s);
2255}
2256.slab-rli-bounding-box .slab-indicator .slabs-wrapper .slab:nth-child(2) {
2257  animation-delay: calc(4 / (16 / var(--rli-animation-duration-unitless, 3)) * 2 * -1 * 1s);
2258}
2259.slab-rli-bounding-box .slab-indicator .slabs-wrapper .slab:nth-child(3) {
2260  animation-delay: calc(4 / (16 / var(--rli-animation-duration-unitless, 3)) * -1 * 1s);
2261}
2262.slab-rli-bounding-box .slab-indicator .slabs-wrapper .slab:nth-child(4) {
2263  animation-delay: 0s;
2264}
2265
2266@property --slab-phase1-color {
2267  syntax: "<color>";
2268  inherits: true;
2269  initial-value: rgb(50, 205, 50);
2270}
2271@property --slab-phase2-color {
2272  syntax: "<color>";
2273  inherits: true;
2274  initial-value: rgb(50, 205, 50);
2275}
2276@property --slab-phase3-color {
2277  syntax: "<color>";
2278  inherits: true;
2279  initial-value: rgb(50, 205, 50);
2280}
2281@property --slab-phase4-color {
2282  syntax: "<color>";
2283  inherits: true;
2284  initial-value: rgb(50, 205, 50);
2285}
2286@property --rli-animation-duration-unitless {
2287  syntax: "<number>";
2288  inherits: true;
2289  initial-value: 3;
2290}
2291@keyframes uxlv7md {
2292  0% {
2293    transform: translateY(0) rotateX(30deg);
2294    opacity: 0;
2295  }
2296  10% {
2297    transform: translateY(-40%) rotateX(0deg);
2298    opacity: 1;
2299  }
2300  25% {
2301    opacity: 1;
2302  }
2303  100% {
2304    transform: translateY(-400%) rotateX(0deg);
2305    opacity: 0;
2306  }
2307}
2308@keyframes uxlv7n0 {
2309  100%, 0% {
2310    background-color: var(--slab-phase1-color);
2311  }
2312  24.9% {
2313    background-color: var(--slab-phase1-color);
2314  }
2315  25% {
2316    background-color: var(--slab-phase2-color, var(--slab-phase1-color));
2317  }
2318  49.9% {
2319    background-color: var(--slab-phase2-color, var(--slab-phase1-color));
2320  }
2321  50% {
2322    background-color: var(--slab-phase3-color, var(--slab-phase1-color));
2323  }
2324  74.9% {
2325    background-color: var(--slab-phase3-color, var(--slab-phase1-color));
2326  }
2327  75% {
2328    background-color: var(--slab-phase4-color, var(--slab-phase1-color));
2329  }
2330  99.9% {
2331    background-color: var(--slab-phase4-color, var(--slab-phase1-color));
2332  }
2333}`),Array.from({length:4},(function(e,t){return`--slab-phase${t+1}-color`})),ik(`.lifeline-rli-bounding-box {
2334  --life-line-phase1-color: rgb(50, 205, 50);
2335  font-size: 16px;
2336  isolation: isolate;
2337  color: var(--life-line-phase1-color);
2338}
2339.lifeline-rli-bounding-box .lifeline-indicator {
2340  position: relative;
2341  text-align: center;
2342}
2343.lifeline-rli-bounding-box .lifeline-indicator path.rli-lifeline {
2344  stroke-dasharray: 474.7616760254 30.3039367676;
2345  animation: var(--rli-animation-duration, 2s) var(--rli-animation-function, linear) infinite uxlv7k3, calc(var(--rli-animation-duration, 2s) * 4) var(--rli-animation-function, linear) infinite uxlv7kg;
2346}
2347.lifeline-rli-bounding-box .lifeline-text {
2348  color: currentColor;
2349  mix-blend-mode: difference;
2350  width: unset;
2351  display: block;
2352}
2353
2354@property --life-line-phase1-color {
2355  syntax: "<color>";
2356  inherits: true;
2357  initial-value: rgb(50, 205, 50);
2358}
2359@property --life-line-phase2-color {
2360  syntax: "<color>";
2361  inherits: true;
2362  initial-value: rgb(50, 205, 50);
2363}
2364@property --life-line-phase3-color {
2365  syntax: "<color>";
2366  inherits: true;
2367  initial-value: rgb(50, 205, 50);
2368}
2369@property --life-line-phase4-color {
2370  syntax: "<color>";
2371  inherits: true;
2372  initial-value: rgb(50, 205, 50);
2373}
2374@property --rli-animation-duration {
2375  syntax: "<time>";
2376  inherits: true;
2377  initial-value: 2s;
2378}
2379@keyframes uxlv7k3 {
2380  to {
2381    stroke-dashoffset: -1010.1312255859;
2382  }
2383}
2384@keyframes uxlv7kg {
2385  100%, 0% {
2386    color: var(--life-line-phase1-color);
2387  }
2388  20% {
2389    color: var(--life-line-phase1-color);
2390  }
2391  25% {
2392    color: var(--life-line-phase2-color, var(--life-line-phase1-color));
2393  }
2394  45% {
2395    color: var(--life-line-phase2-color, var(--life-line-phase1-color));
2396  }
2397  50% {
2398    color: var(--life-line-phase3-color, var(--life-line-phase1-color));
2399  }
2400  70% {
2401    color: var(--life-line-phase3-color, var(--life-line-phase1-color));
2402  }
2403  75% {
2404    color: var(--life-line-phase4-color, var(--life-line-phase1-color));
2405  }
2406  95% {
2407    color: var(--life-line-phase4-color, var(--life-line-phase1-color));
2408  }
2409}`),Array.from({length:4},(function(e,t){return`--life-line-phase${t+1}-color`}));function nA(){return(0,Y.jsx)(`div`,{style:{marginTop:25,opacity:.7},children:(0,Y.jsx)(tA,{variant:`bounce`,color:`var(--text-color)`,size:`small`,speedPlus:1})})}var rA=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(He()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_pt=r(n.dayjs)})(e,(function(e){function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`pt`,weekdays:`domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado`.split(`_`),weekdaysShort:`dom_seg_ter_qua_qui_sex_sab`.split(`_`),weekdaysMin:`Do_2ª_3ª_4ª_5ª_6ª_Sa`.split(`_`),months:`janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro`.split(`_`),monthsShort:`jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez`.split(`_`),ordinal:function(e){return e+`º`},weekStart:1,yearStart:4,formats:{LT:`HH:mm`,LTS:`HH:mm:ss`,L:`DD/MM/YYYY`,LL:`D [de] MMMM [de] YYYY`,LLL:`D [de] MMMM [de] YYYY [às] HH:mm`,LLLL:`dddd, D [de] MMMM [de] YYYY [às] HH:mm`}
2409,relativeTime:{future:`em %s`,past:`há %s`,s:`alguns segundos`,m:`um minuto`,mm:`%d minutos`,h:`uma hora`,hh:`%d horas`,d:`um dia`,dd:`%d dias`,M:`um mês`,MM:`%d meses`,y:`um ano`,yy:`%d anos`}};return n.default.locale(r,null,!0),r}))})),iA=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r(He()):typeof define==`function`&&define.amd?define([`dayjs`],r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_locale_es=r(n.dayjs)})(e,(function(e){function t(e){return e&&typeof e==`object`&&`default`in e?e:{default:e}}var n=t(e),r={name:`es`,monthsShort:`ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic`.split(`_`),weekdays:`domingo_lunes_martes_miércoles_jueves_viernes_sábado`.split(`_`),weekdaysShort:`dom._lun._mar._mié._jue._vie._sáb.`.split(`_`),weekdaysMin:`do_lu_ma_mi_ju_vi_sá`.split(`_`),months:`enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre`.split(`_`),weekStart:1,formats:{LT:`H:mm`,LTS:`H:mm:ss`,L:`DD/MM/YYYY`,LL:`D [de] MMMM [de] YYYY`,LLL:`D [de] MMMM [de] YYYY H:mm`,LLLL:`dddd, D [de] MMMM [de] YYYY H:mm`},relativeTime:{future:`en %s`,past:`hace %s`,s:`unos segundos`,m:`un minuto`,mm:`%d minutos`,h:`una hora`,hh:`%d horas`,d:`un día`,dd:`%d días`,M:`un mes`,MM:`%d meses`,y:`un año`,yy:`%d años`},ordinal:function(e){return e+`º`}};return n.default.locale(r,null,!0),r}))})),aA=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_localizedFormat=r()})(e,(function(){var e={LTS:`h:mm:ss A`,LT:`h:mm A`,L:`MM/DD/YYYY`,LL:`MMMM D, YYYY`,LLL:`MMMM D, YYYY h:mm A`,LLLL:`dddd, MMMM D, YYYY h:mm A`};return function(t,n,r){var i=n.prototype,a=i.format;r.en.formats=e,i.format=function(t){t===void 0&&(t=`YYYY-MM-DDTHH:mm:ssZ`);var n=this.$locale().formats,r=function(t,n){return t.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(t,r,i){var a=i&&i.toUpperCase();return r||n[i]||e[i]||n[a].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(e,t,n){return t||n.slice(1)}))}))}(t,n===void 0?{}:n);return a.call(this,r)}}}))}));rA(),iA();var oA=u(aA()),sA={passCard:`_passCard_vgnrn_1`,passCardNoExtend:`_passCardNoExtend_vgnrn_12`,passCardMain:`_passCardMain_vgnrn_16`,passCardDivider:`_passCardDivider_vgnrn_22`,passCardContent:`_passCardContent_vgnrn_28`,passCardTitle:`_passCardTitle_vgnrn_34`,passCardSub:`_passCardSub_vgnrn_39`,extendPassButton:`_extendPassButton_vgnrn_44`,extendPassIcon:`_extendPassIcon_vgnrn_61`};N.default.extend(oA.default);function cA({subscription:e,onExtend:t}){let{t:n}=go(),r=(0,N.default)(e.expiresAt.toDate()),i=r.diff((0,N.default)(),`day`),a=r.format(`LL`),o=!A.isNativePlatform()&&!Oe();return(0,Y.jsxs)(`div`,{className:`${sA.passCard}${o?``:` ${sA.passCardNoExtend}`}`,children:[(0,Y.jsxs)(`div`,{className:sA.passCardMain,children:[(0,Y.jsx)(UD.PassMark,{size:22}),(0,Y.jsxs)(`div`,{className:sA.passCardContent,children:[(0,Y.jsx)(`div`,{className:sA.passCardTitle,children:n(`account.passActive`)}),(0,Y.jsx)(`div`,{className:sA.passCardSub,children:n(`account.passValidUntil`,{date:a})}),(0,Y.jsx)(`div`,{className:sA.passCardSub,children:n(`account.passDaysRemaining`,{count:i})})]})]}),o&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`div`,{className:sA.passCardDivider}),(0,Y.jsxs)(`button`,{type:`button`,className:`button text ${sA.extendPassButton}`,onClick:t,children:[(0,Y.jsx)(`span`,{className:`material-symbols-rounded ${sA.extendPassIcon}`,children:`add`}),n(`account.extendPass`)]})]})]})}var lA={loadingArea:`_loadingArea_1o0bh_2`,syncProgress:`_syncProgress_1o0bh_6`,centeredText:`_centeredText_1o0bh_11`,signInArea:`_signInArea_1o0bh_15`,userArea:`_userArea_1o0bh_22`,avatar:`_avatar_1o0bh_28`,displayName:`_displayName_1o0bh_35`,email:`_email_1o0bh_39`};function uA(){let{t:e}=go(),{loading:t,user:n,syncProgress:r,isSubscribed:i,subscription:a}=yD(),o=ZD(),s=Wi(),{language:c}=Ki();return(0,y.useEffect)(()=>{t?o.lock():o.unlock()},[t,o]),(0,Y.jsx)(`div`,{children:(0,Y.jsxs)(`div`,{className:`modal-content`,children:[(0,Y.jsx)(`div`,{className:`company-logo`,children:(0,Y.jsx)(X.Daydash,{})}),t&&(0,Y.jsxs)(`div`,{className:lA.loadingArea,children:[(0,Y.jsx)(nA,{}),r&&(0,Y.jsxs)(`div`,{className:lA.syncProgress,children:[(0,Y.jsx)(`p`,{children:e(`account.wait`)}),(0,Y.jsxs)(`p`,{children:[e(`account.syncProgress`),` `,r.completed,` /`,` `,r.total]})]})]}),!t&&!n&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`p`,{className:lA.centeredText,children:e(`account.de
2409scription`)}),(0,Y.jsx)(`div`,{className:lA.signInArea,children:(0,Y.jsx)(rk,{onClick:async()=>{try{if(A.isNativePlatform()){let e=await tk.signInWithGoogle();await Ip(Jg,xp.credential(e.credential?.idToken))}else await Ih(Jg,Gg)}catch(e){console.error(e.message)}},children:e(`account.signInWithGoogle`)})}),(0,Y.jsx)(`p`,{className:lA.centeredText,children:e(`account.information`)})]}),!t&&n&&(0,Y.jsxs)(`div`,{className:lA.userArea,children:[n.photoURL&&(0,Y.jsx)(`img`,{src:n.photoURL,alt:`User avatar`,className:lA.avatar}),(0,Y.jsx)(`div`,{className:lA.displayName,children:n.displayName}),(0,Y.jsx)(`div`,{className:lA.email,children:n.email}),i&&a?.expiresAt&&(0,Y.jsx)(cA,{subscription:a,onExtend:()=>s(c?`/${c}/pass`:`/pass`)}),(0,Y.jsxs)(`button`,{type:`button`,className:`button text`,onClick:async()=>{try{await Jg.signOut()}catch(e){console.error(e.message)}},children:[(0,Y.jsx)(X.Logout,{}),e(`account.logout`)]})]}),wt()&&(0,Y.jsx)(`div`,{style:{marginTop:20,textAlign:`center`},children:(0,Y.jsx)(`button`,{type:`button`,className:`button text`,onClick:Ut,children:e(`account.adPreferences`)})})]})})}function dA({handleGiveUp:e,tipSetting:t,setTipSetting:n,order:r,setOrder:i,openGameId:a,current:o}){let s=ZD(),c=()=>{s.close()};if(!s.id)return null;let l;return s.id===`instructions`&&(l=(0,Y.jsx)(pO,{})),s.id===`current`&&(l=(0,Y.jsx)(HO,{loading:o[a].loading,data:o[a].data})),s.id===`giveUp`&&(l=(0,Y.jsx)(gO,{onConfirm:e,onCancel:()=>s.close()})),s.id===`language`&&(l=(0,Y.jsx)(UO,{})),s.id===`theme`&&(l=(0,Y.jsx)(QO,{})),s.id===`settings`&&(l=(0,Y.jsx)(hO,{tipSetting:t,onTipSettingChange:n,order:r,onOrderChange:i})),s.id===`faq`&&(l=(0,Y.jsx)(IO,{})),s.id===`account`&&(l=(0,Y.jsx)(uA,{})),(0,Y.jsx)(dO,{onClose:c,children:l})}var fA={placeholderCircle:`_placeholderCircle_1sinz_1`,placeholderRect:`_placeholderRect_1sinz_7`,userButtonInner:`_userButtonInner_1sinz_14`,avatar:`_avatar_1sinz_19`,avatarIconOnly:`_avatarIconOnly_1sinz_26`,passMarkBadge:`_passMarkBadge_1sinz_32`};function pA({iconOnly:e}){let{loading:t,user:n,isSubscribed:r}=yD(),i=ZD(),{t:a}=go(),{language:o}=Ki(),s=()=>{st.accountModalOpen(o),i.open(`account`)};return t?e?(0,Y.jsx)(`div`,{className:`placeholder ${fA.placeholderCircle}`}):(0,Y.jsx)(`div`,{className:`placeholder ${fA.placeholderRect}`}):n?(0,Y.jsx)(`button`,{type:`button`,className:e?`btn`:`button text`,onClick:s,children:(0,Y.jsxs)(`div`,{className:fA.userButtonInner,children:[(0,Y.jsx)(`img`,{src:n.photoURL,alt:n.displayName,className:e?fA.avatarIconOnly:fA.avatar}),!e&&(0,Y.jsx)(`span`,{children:n.displayName}),!e&&r&&(0,Y.jsx)(`span`,{title:a(`account.passActive`),className:fA.passMarkBadge,children:(0,Y.jsx)(UD.PassMark,{size:18})})]})}):(0,Y.jsx)(`div`,{children:(0,Y.jsxs)(`button`,{type:`button`,className:e?`btn`:`button`,onClick:s,children:[e&&(0,Y.jsx)(X.Account,{}),!e&&a(`account.login`)]})})}function mA({releaseDate:e,children:t}){if(hT().isAfter((0,N.default)(e).startOf(`day`)))return t;let{featureFlagPreviewHostnameFragment:n}=C();return window.location.href.includes(n)?t:null}var hA={sandbox:{90:`pri_01kvrsbj4vk18r3hf51t3mzmeh`,180:`pri_01kvrsd4cjmmgm5fvzthgsvfby`,365:`pri_01kvrse7vdcj8pjh401pvtnkg3`},live:{90:`pri_01kyhv50gch3yjdtmnr53mbe91`,180:`pri_01kyhv50hpayczztpszv0b8s2k`,365:`pri_01kyhv50k9qnykm9qtzrxbf9t3`}}.live,gA=`2026-09-01`,_A=[{priceId:hA[90],durationDays:90,label:`3 months`},{priceId:hA[180],durationDays:180,label:`6 months`},{priceId:hA[365],durationDays:365,label:`1 year`,highlight:!0}];Object.fromEntries(_A.map(e=>[e.priceId,e]));var vA={outlineButton:`_outlineButton_1xuys_3`};function yA({useAuth:e}){function t(){let{isSubscribed:t,loading:n}=e(),r=Wi(),{language:i}=Ki(),{t:a}=go();return n||t?null:(0,Y.jsxs)(`button`,{type:`button`,className:`button ${vA.outlineButton}`,onClick:()=>r(i?`/${i}/pass`:`/pass`),children:[(0,Y.jsx)(UD.PassMark,{}),` `,a(`pass.removeAds`)]})}function n(){return A.isNativePlatform()||Oe()?null:(0,Y.jsx)(mA,{releaseDate:gA,children:(0,Y.jsx)(t,{})})}return n}var bA=yA({useAuth:yD});function xA(){return Oe()?(0,Y.jsx)(`a`,{className:`btn`,href:Ae(),"aria-label":`Daydash`,onClick:e=>{e.preventDefault(),et(`daydash_launcher_button_click`),window.location.replace(Ae())},children:(0,Y.jsx)(UD.Back,{})}):(0,Y.jsx)(`div`,{})}var SA={shell:`_shell_1gdzi_10`,native:`_native_1gdzi_36`,scrollArea:`_scrollArea_1gdzi_48`,topBar:`_topBar_1gdzi_58`,topB
2409arPlaceholder:`_topBarPlaceholder_1gdzi_67`,column:`_column_1gdzi_72`,logo:`_logo_1gdzi_80`,title:`_title_1gdzi_85`,description:`_description_1gdzi_91`,accountRow:`_accountRow_1gdzi_98`,settings:`_settings_1gdzi_106`};function CA({footer:e=null,children:t}){let n=A.isNativePlatform()?`${SA.shell} ${SA.native}`:SA.shell;return(0,Y.jsx)(`div`,{className:n,children:(0,Y.jsxs)(`div`,{className:SA.scrollArea,children:[(0,Y.jsx)(wA,{}),(0,Y.jsxs)(`div`,{className:SA.column,children:[t,!Oe()&&e]})]})})}function wA(){return(0,Y.jsxs)(`div`,{className:SA.topBar,children:[(0,Y.jsx)(xA,{}),(0,Y.jsx)(`div`,{className:SA.topBarPlaceholder})]})}function TA({logo:e,title:t,children:n}){return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`div`,{className:SA.logo,children:e}),t&&(0,Y.jsx)(`div`,{className:SA.title,children:t}),n&&(0,Y.jsx)(`div`,{className:SA.description,children:n})]})}function EA({children:e}){return(0,Y.jsx)(`div`,{className:SA.accountRow,children:e})}function DA({children:e}){return(0,Y.jsx)(`div`,{className:SA.settings,children:e})}function OA(){bD();let{t:e}=go();return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(CA,{footer:(0,Y.jsx)(lO,{}),children:[(0,Y.jsx)(TA,{logo:(0,Y.jsx)(YD,{size:50}),title:`Contexto`,children:e(`homeScreen.gameDescription`)}),(0,Y.jsxs)(EA,{children:[(0,Y.jsx)(pA,{}),(0,Y.jsx)(bA,{})]}),(0,Y.jsx)(VD,{}),(0,Y.jsx)(HD,{}),(0,Y.jsx)(qD,{}),(0,Y.jsxs)(DA,{children:[(0,Y.jsx)($D,{}),(0,Y.jsx)(eO,{}),(0,Y.jsx)(tO,{}),(0,Y.jsx)(JD,{})]})]}),(0,Y.jsx)(dA,{})]})}function kA(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`){if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=kA(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n)}return r}function AA(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=kA(e))&&(r&&(r+=` `),r+=t);return r}var jA=(e,t,n,r)=>{if(n===`length`||n===`prototype`||n===`arguments`||n===`caller`)return;let i=Object.getOwnPropertyDescriptor(e,n),a=Object.getOwnPropertyDescriptor(t,n);!MA(i,a)&&r||Object.defineProperty(e,n,a)},MA=function(e,t){return e===void 0||e.configurable||e.writable===t.writable&&e.enumerable===t.enumerable&&e.configurable===t.configurable&&(e.writable||e.value===t.value)},NA=(e,t)=>{let n=Object.getPrototypeOf(t);n!==Object.getPrototypeOf(e)&&Object.setPrototypeOf(e,n)},PA=(e,t)=>`/* Wrapped ${e}*/\n${t}`,FA=Object.getOwnPropertyDescriptor(Function.prototype,`toString`),IA=Object.getOwnPropertyDescriptor(Function.prototype.toString,`name`),LA=(e,t,n)=>{let r=n===``?``:`with ${n.trim()}() `,i=PA.bind(null,r,t.toString());Object.defineProperty(i,"name",IA);let{writable:a,enumerable:o,configurable:s}=FA;Object.defineProperty(e,"toString",{value:i,writable:a,enumerable:o,configurable:s})};function RA(e,t,{ignoreNonConfigurable:n=!1}={}){let{name:r}=e;for(let r of Reflect.ownKeys(t))jA(e,t,r,n);return NA(e,t),LA(e,t,r),e}var zA=2147483647,BA=new WeakMap,VA=new WeakMap,HA=new WeakMap;function UA(e,t){let n=e.get(t);if(n){if(n.maxAge<=Date.now()){e.delete(t);return}return n}}function WA(e,{cacheKey:t,cache:n=new Map,maxAge:r}={}){if(r===0)return e;if(typeof r==`number`&&Number.isFinite(r)){if(r>zA)throw TypeError(`The \`maxAge\` option cannot exceed ${zA}.`);if(r<0)throw TypeError("The `maxAge` option should not be a negative number.")}let i=function(...a){let o=t?t(a):a[0],s=UA(n,o);if(s)return s.data;let c=e.apply(this,a),l=typeof r==`function`?r(...a):r;if(l!==void 0&&l!==1/0){if(!Number.isFinite(l))throw TypeError("The `maxAge` function must return a finite number, `0`, or `Infinity`.");if(l<=0)return c;if(l>zA)throw TypeError(`The \`maxAge\` function result cannot exceed ${zA}.`)}if(n.set(o,{data:c,maxAge:l===void 0||l===1/0?1/0:Date.now()+l}),l!==void 0&&l!==1/0){let e=setTimeout(()=>{n.delete(o),VA.get(i)?.delete(e)},l);e.unref?.();let t=VA.get(i)??new Set;t.add(e),VA.set(i,t)}return c};return RA(i,e,{ignoreNonConfigurable:!0}),BA.set(i,n),HA.set(i,t??(e=>e[0])),i}function GA(e){return typeof e==`string`}function KA(e,t,n){return n.indexOf(e)===t}function qA(e){return e.toLowerCase()===e}function JA(e){return e.indexOf(`,`)===-1?e:e.split(`,`)}function YA(e){if(!e)return e;if(e===`C`||e===`posix`||e===`POSIX`)return`en-US`;if(e.indexOf(`.`)!==-1){var t=e.split(`.`)[0],n=t===void 0?``:t;return YA(n)}if(e.indexOf(`@`)!==-1){var r=e.split(`@`)[0],n=r===void 0?``:r;return YA(n)}if(e.indexOf(`-`)===-1||!qA(e))return e;var i=e.split(`-`),a=i[0],o=i[1];return`${a}-${(o===void 0?``:o).toUpperCase()}`}function XA(e){var t=e===void 0?{}:e,n=t.useFallbackLocale,r=n===void 0||n,i=t.fallbackLocale,a=i===void 0?`en-US`:i,o=[];if(typeof navigator<`u`){for(var s=navigator.languages||[],c=[],l=0,u=s;l<u.length;l++){var d=u[l];c=c.concat(JA(d))}var f=navigator.language,p=f&&JA(f);o=o.concat(c,p)}return r&&o.push(a),o.filter(GA).map(YA).filter(KA)}var ZA=WA(XA,{cacheKey:JSON.stringify});function QA(e){return ZA(e)[0]||null}var $A=WA(QA,{cacheKey:JSON.stringify});
2409function ej(e,t,n){return function(r,i=n){return t(e(r)+i)}}function tj(e){return function(t){return new Date(e(t).getTime()-1)}}function nj(e,t){return function(n){return[e(n),t(n)]}}function rj(e){if(e instanceof Date)return e.getFullYear();if(typeof e==`number`)return e;let t=Number.parseInt(e,10);if(typeof e==`string`&&!Number.isNaN(t))return t;throw Error(`Failed to get year from date: ${e}.`)}function ij(e){if(e instanceof Date)return e.getMonth();throw Error(`Failed to get month from date: ${e}.`)}function aj(e){if(e instanceof Date)return e.getDate();throw Error(`Failed to get year from date: ${e}.`)}function oj(e){let t=rj(e),n=t+(-t+1)%100,r=new Date;return r.setFullYear(n,0,1),r.setHours(0,0,0,0),r}var sj=ej(rj,oj,-100),cj=ej(rj,oj,100),lj=tj(cj),uj=ej(rj,lj,-100),dj=nj(oj,lj);function fj(e){let t=rj(e),n=t+(-t+1)%10,r=new Date;return r.setFullYear(n,0,1),r.setHours(0,0,0,0),r}var pj=ej(rj,fj,-10),mj=ej(rj,fj,10),hj=tj(mj),gj=ej(rj,hj,-10),_j=nj(fj,hj);function vj(e){let t=rj(e),n=new Date;return n.setFullYear(t,0,1),n.setHours(0,0,0,0),n}var yj=ej(rj,vj,-1),bj=ej(rj,vj,1),xj=tj(bj),Sj=ej(rj,xj,-1),Cj=nj(vj,xj);function wj(e,t){return function(n,r=t){let i=rj(n),a=ij(n)+r,o=new Date;return o.setFullYear(i,a,1),o.setHours(0,0,0,0),e(o)}}function Tj(e){let t=rj(e),n=ij(e),r=new Date;return r.setFullYear(t,n,1),r.setHours(0,0,0,0),r}var Ej=wj(Tj,-1),Dj=wj(Tj,1),Oj=tj(Dj),kj=wj(Oj,-1),Aj=nj(Tj,Oj);function jj(e,t){return function(n,r=t){let i=rj(n),a=ij(n),o=aj(n)+r,s=new Date;return s.setFullYear(i,a,o),s.setHours(0,0,0,0),e(s)}}function Mj(e){let t=rj(e),n=ij(e),r=aj(e),i=new Date;return i.setFullYear(t,n,r),i.setHours(0,0,0,0),i}var Nj=tj(jj(Mj,1)),Pj=nj(Mj,Nj);function Fj(e){return aj(Oj(e))}var Ij={GREGORY:`gregory`,HEBREW:`hebrew`,ISLAMIC:`islamic`,ISO_8601:`iso8601`},Lj={gregory:[`en-CA`,`en-US`,`es-AR`,`es-BO`,`es-CL`,`es-CO`,`es-CR`,`es-DO`,`es-EC`,`es-GT`,`es-HN`,`es-MX`,`es-NI`,`es-PA`,`es-PE`,`es-PR`,`es-SV`,`es-VE`,`pt-BR`],hebrew:[`he`,`he-IL`],islamic:[`ar`,`ar-AE`,`ar-BH`,`ar-DZ`,`ar-EG`,`ar-IQ`,`ar-JO`,`ar-KW`,`ar-LY`,`ar-OM`,`ar-QA`,`ar-SA`,`ar-SD`,`ar-SY`,`ar-YE`,`dv`,`dv-MV`,`ps`,`ps-AR`]},Rj=[0,1,2,3,4,5,6],zj=new Map;function Bj(e){return function(t,n){var r=t||$A();zj.has(r)||zj.set(r,new Map);var i=zj.get(r);return i.has(e)||i.set(e,new Intl.DateTimeFormat(r||void 0,e).format),i.get(e)(n)}}function Vj(e){var t=new Date(e);return new Date(t.setHours(12))}function Hj(e){return function(t,n){return Bj(e)(t,Vj(n))}}var Uj={day:`numeric`},Wj={day:`numeric`,month:`long`,year:`numeric`},Gj={month:`long`},Kj={month:`long`,year:`numeric`},qj={weekday:`short`},Jj={weekday:`long`},Yj={year:`numeric`},Xj=Hj(Uj),Zj=Hj(Wj),Qj=Hj(Gj),$j=Hj(Kj),eM=Hj(qj),tM=Hj(Jj),nM=Hj(Yj),rM=Rj[0],iM=Rj[5],aM=Rj[6];function oM(e,t){t===void 0&&(t=Ij.ISO_8601);var n=e.getDay();switch(t){case Ij.ISO_8601:return(n+6)%7;case Ij.ISLAMIC:return(n+1)%7;case Ij.HEBREW:case Ij.GREGORY:return n;default:throw Error(`Unsupported calendar type.`)}}function sM(e){return rj(oj(e))}function cM(e){return rj(fj(e))}function lM(e,t){t===void 0&&(t=Ij.ISO_8601);var n=rj(e),r=ij(e),i=e.getDate()-oM(e,t);return new Date(n,r,i)}function uM(e,t){t===void 0&&(t=Ij.ISO_8601);var n=t===Ij.GREGORY?Ij.GREGORY:Ij.ISO_8601,r=lM(e,t),i=rj(e)+1,a,o;do a=new Date(i,0,n===Ij.ISO_8601?4:1),o=lM(a,t),--i;while(e<o);return Math.round((r.getTime()-o.getTime())/6048e5)+1}function dM(e,t){switch(e){case`century`:return oj(t);case`decade`:return fj(t);case`year`:return vj(t);case`month`:return Tj(t);case`day`:return Mj(t);default:throw Error(`Invalid rangeType: ${e}`)}}function fM(e,t){switch(e){case`century`:return sj(t);case`decade`:return pj(t);case`year`:return yj(t);case`month`:return Ej(t);default:throw Error(`Invalid rangeType: ${e}`)}}function pM(e,t){switch(e){case`century`:return cj(t);case`decade`:return mj(t);case`year`:return bj(t);case`month`:return Dj(t);default:throw Error(`Invalid rangeType: ${e}`)}}function mM(e,t){switch(e){case`decade`:return pj(t,-100);case`year`:return yj(t,-10);case`month`:return Ej(t,-12);default:throw Error(`Invalid rangeType: ${e}`)}}function hM(e,t){switch(e){case`decade`:return mj(t,100);case`year`:return bj(t,10);case`month`:return Dj(t,12);default:throw Error(`Invalid rangeType: ${e}`)}}function gM(e,t){switch(e){case`century`:return lj(t);case`decade`:return hj(t);case`year`:return xj(t);case`month`:return Oj(t);case`day`:return Nj(t);default:throw Error(`Invalid rangeType: ${e}`)}}function _M(e,t){switch(e){case`century`:return uj(t);case`decade`:return gj(t);case`year`:return Sj(t);case`month`:return kj(t);default:throw Error(`Invalid rangeType: ${e}`)}}function vM(e,t){switch(e){case`decade`:return gj(t,-100);case`year`:return Sj(t,-10);case`month`:return kj(t,-12);default:throw Error(`Invalid rangeType: ${e}`)}}function yM(e,t){switch(e){case`century`:return dj(t);case`decade`:return _j(t);case`year`:return Cj(t);case`month`:return Aj(t);case`day`:return Pj(t);default:throw Error(`Invalid rangeType: ${e}`)}}function bM(e,t,n){var r=[t,n].sort(function(e,t){return e.getTime()-t.getTime()});return[dM(e,r[0]),gM(e,r[1])]}
2409function xM(e,t,n){return n.map(function(n){return(t||nM)(e,n)}).join(` – `)}function SM(e,t,n){return xM(e,t,dj(n))}function CM(e,t,n){return xM(e,t,_j(n))}function wM(e){return e.getDay()===new Date().getDay()}function TM(e,t){t===void 0&&(t=Ij.ISO_8601);var n=e.getDay();switch(t){case Ij.ISLAMIC:case Ij.HEBREW:return n===iM||n===aM;case Ij.ISO_8601:case Ij.GREGORY:return n===aM||n===rM;default:throw Error(`Unsupported calendar type.`)}}var EM=`react-calendar__navigation`;function DM(e){var t=e.activeStartDate,n=e.drillUp,r=e.formatMonthYear,i=r===void 0?$j:r,a=e.formatYear,o=a===void 0?nM:a,s=e.locale,c=e.maxDate,l=e.minDate,u=e.navigationAriaLabel,d=u===void 0?``:u,f=e.navigationAriaLive,p=e.navigationLabel,m=e.next2AriaLabel,h=m===void 0?``:m,g=e.next2Label,_=g===void 0?`»`:g,v=e.nextAriaLabel,y=v===void 0?``:v,b=e.nextLabel,x=b===void 0?`›`:b,S=e.prev2AriaLabel,C=S===void 0?``:S,w=e.prev2Label,T=w===void 0?`«`:w,E=e.prevAriaLabel,ee=E===void 0?``:E,te=e.prevLabel,D=te===void 0?`‹`:te,ne=e.setActiveStartDate,re=e.showDoubleView,O=e.view,ie=e.views.indexOf(O)>0,k=O!==`century`,ae=fM(O,t),oe=k?mM(O,t):void 0,A=pM(O,t),j=k?hM(O,t):void 0,M=(function(){if(ae.getFullYear()<0)return!0;var e=_M(O,t);return l&&l>=e})(),se=k&&(function(){if(oe.getFullYear()<0)return!0;var e=vM(O,t);return l&&l>=e})(),ce=c&&c<A,le=k&&c&&c<j;function ue(){ne(ae,`prev`)}function de(){ne(oe,`prev2`)}function fe(){ne(A,`next`)}function pe(){ne(j,`next2`)}function me(e){var t=(function(){switch(O){case`century`:return SM(s,o,e);case`decade`:return CM(s,o,e);case`year`:return o(s,e);case`month`:return i(s,e);default:throw Error(`Invalid view: ${O}.`)}})();return p?p({date:e,label:t,locale:s||$A()||void 0,view:O}):t}function he(){var e=`${EM}__label`;return(0,Y.jsxs)(`button`,{"aria-label":d,"aria-live":f,className:e,disabled:!ie,onClick:n,style:{flexGrow:1},type:`button`,children:[(0,Y.jsx)(`span`,{className:`${e}__labelText ${e}__labelText--from`,children:me(t)}),re?(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`span`,{className:`${e}__divider`,children:` – `}),(0,Y.jsx)(`span`,{className:`${e}__labelText ${e}__labelText--to`,children:me(A)})]}):null]})}return(0,Y.jsxs)(`div`,{className:EM,children:[T!==null&&k?(0,Y.jsx)(`button`,{"aria-label":C,className:`${EM}__arrow ${EM}__prev2-button`,disabled:se,onClick:de,type:`button`,children:T}):null,D!==null&&(0,Y.jsx)(`button`,{"aria-label":ee,className:`${EM}__arrow ${EM}__prev-button`,disabled:M,onClick:ue,type:`button`,children:D}),he(),x!==null&&(0,Y.jsx)(`button`,{"aria-label":y,className:`${EM}__arrow ${EM}__next-button`,disabled:ce,onClick:fe,type:`button`,children:x}),_!==null&&k?(0,Y.jsx)(`button`,{"aria-label":h,className:`${EM}__arrow ${EM}__next2-button`,disabled:le,onClick:pe,type:`button`,children:_}):null]})}var OM=function(){return OM=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},OM.apply(this,arguments)},kM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function AM(e){return`${e}%`}function jM(e){var t=e.children,n=e.className,r=e.count,i=e.direction,a=e.offset,o=e.style,s=e.wrap,c=kM(e,[`children`,`className`,`count`,`direction`,`offset`,`style`,`wrap`]);return(0,Y.jsx)(`div`,OM({className:n,style:OM({display:`flex`,flexDirection:i,flexWrap:s?`wrap`:`nowrap`},o)},c,{children:y.Children.map(t,function(e,t){var n=a&&t===0?AM(100*a/r):null;return(0,y.cloneElement)(e,OM(OM({},e.props),{style:{flexBasis:AM(100/r),flexShrink:0,flexGrow:0,overflow:`hidden`,marginLeft:n,marginInlineStart:n,marginInlineEnd:0}}))})}))}function MM(e,t,n){return t&&t>e?t:n&&n<e?n:e}function NM(e,t){return t[0]<=e&&t[1]>=e}function PM(e,t){return e[0]<=t[0]&&e[1]>=t[1]}function FM(e,t){return NM(e[0],t)||NM(e[1],t)}
2409function IM(e,t,n){var r=FM(t,e),i=[];if(r){i.push(n);var a=NM(e[0],t),o=NM(e[1],t);a&&i.push(`${n}Start`),o&&i.push(`${n}End`),a&&o&&i.push(`${n}BothEnds`)}return i}function LM(e){return Array.isArray(e)?e[0]!==null&&e[1]!==null:e!==null}function RM(e){if(!e)throw Error(`args is required`);var t=e.value,n=e.date,r=e.hover,i=`react-calendar__tile`,a=[i];if(!n)return a;var o=new Date,s=(function(){if(Array.isArray(n))return n;var t=e.dateType;if(!t)throw Error(`dateType is required when date is not an array of two dates`);return yM(t,n)})();if(NM(o,s)&&a.push(`${i}--now`),!t||!LM(t))return a;var c=(function(){if(Array.isArray(t))return t;var n=e.valueType;if(!n)throw Error(`valueType is required when value is not an array of two dates`);return yM(n,t)})();PM(c,s)?a.push(`${i}--active`):FM(c,s)&&a.push(`${i}--hasActive`);var l=IM(c,s,`${i}--range`);if(a.push.apply(a,l),r&&(Array.isArray(t)?t:[t]).length===1){var u=IM(r>c[0]?[c[0],r]:[r,c[0]],s,`${i}--hover`);a.push.apply(a,u)}return a}function zM(e){for(var t=e.className,n=e.count,r=n===void 0?3:n,i=e.dateTransform,a=e.dateType,o=e.end,s=e.hover,c=e.offset,l=e.renderTile,u=e.start,d=e.step,f=d===void 0?1:d,p=e.value,m=e.valueType,h=[],g=u;g<=o;g+=f){var _=i(g);h.push(l({classes:RM({date:_,dateType:a,hover:s,value:p,valueType:m}),date:_}))}return(0,Y.jsx)(jM,{className:t,count:r,offset:c,wrap:!0,children:h})}function BM(e){var t=e.activeStartDate,n=e.children,r=e.classes,i=e.date,a=e.formatAbbr,o=e.locale,s=e.maxDate,c=e.maxDateTransform,l=e.minDate,u=e.minDateTransform,d=e.onClick,f=e.onMouseOver,p=e.style,m=e.tileClassName,h=e.tileContent,g=e.tileDisabled,_=e.view,v=(0,y.useMemo)(function(){return typeof m==`function`?m({activeStartDate:t,date:i,view:_}):m},[t,i,m,_]),b=(0,y.useMemo)(function(){return typeof h==`function`?h({activeStartDate:t,date:i,view:_}):h},[t,i,h,_]);return(0,Y.jsxs)(`button`,{className:AA(r,v),disabled:l&&u(l)>i||s&&c(s)<i||g?.({activeStartDate:t,date:i,view:_}),onClick:d?function(e){return d(i,e)}:void 0,onFocus:f?function(){return f(i)}:void 0,onMouseOver:f?function(){return f(i)}:void 0,style:p,type:`button`,children:[a?(0,Y.jsx)(`abbr`,{"aria-label":a(o,i),children:n}):n,b]})}var VM=function(){return VM=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},VM.apply(this,arguments)},HM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},UM=`react-calendar__century-view__decades__decade`;function WM(e){var t=e.classes,n=t===void 0?[]:t,r=e.currentCentury,i=e.formatYear,a=i===void 0?nM:i,o=HM(e,[`classes`,`currentCentury`,`formatYear`]),s=o.date,c=o.locale,l=[];return n&&l.push.apply(l,n),UM&&l.push(UM),oj(s).getFullYear()!==r&&l.push(`${UM}--neighboringCentury`),(0,Y.jsx)(BM,VM({},o,{classes:l,maxDateTransform:hj,minDateTransform:fj,view:`century`,children:CM(c,a,s)}))}var GM=function(){return GM=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},GM.apply(this,arguments)},KM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function qM(e){var t=e.activeStartDate,n=e.hover,r=e.showNeighboringCentury,i=e.value,a=e.valueType,o=KM(e,[`activeStartDate`,`hover`,`showNeighboringCentury`,`value`,`valueType`]),s=sM(t),c=s+(r?119:99);return(0,Y.jsx)(zM,{className:`react-calendar__century-view__decades`,dateTransform:fj,dateType:`decade`,end:c,hover:n,renderTile:function(e){var n=e.date,r=KM(e,[`date`]);return(0,Y.jsx)(WM,GM({},o,r,{activeStartDate:t,currentCentury:s,date:n}),n.getTime())},start:s,step:10,value:i,valueType:a})}var JM=function(){return JM=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},JM.apply(this,arguments)};function YM(e){function t(){return(0,Y.jsx)(qM,JM({},e))}return(0,Y.jsx)(`div`,{className:`react-calendar__century-view`,children:t()})}var XM=function(){return XM=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},XM.apply(this,arguments)},ZM=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},QM=`react-calendar__decade-view__years__year`;function $M(e){var t=e.classes,n=t===void 0?[]:t,r=e.currentDecade,i=e.formatYear,a=i===void 0?nM:i,o=ZM(e,[`classes`,`currentDecade`,`formatYear`]),s=o.date,c=o.locale,l=[];return n&&l.push.apply(l,n),QM&&l.push(QM),fj(s).getFullYear()!==r&&l.push(`${QM}--neighboringDecade`),(0,Y.jsx)(BM,XM({},o,{classes:l,maxDateTransform:xj,minDateTransform:vj,view:`decade`,children:a(c,s)}))}var eN=function(){return eN=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},eN.apply(this,arguments)},tN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function nN(e){var t=e.activeStartDate,n=e.hover,r=e.showNeighboringDecade,i=e.value,a=e.valueType,o=tN(e,[`activeStartDate`,`hover`,`showNeighboringDecade`,`value`,`valueType`]),s=cM(t),
2409c=s+(r?11:9);return(0,Y.jsx)(zM,{className:`react-calendar__decade-view__years`,dateTransform:vj,dateType:`year`,end:c,hover:n,renderTile:function(e){var n=e.date,r=tN(e,[`date`]);return(0,Y.jsx)($M,eN({},o,r,{activeStartDate:t,currentDecade:s,date:n}),n.getTime())},start:s,value:i,valueType:a})}var rN=function(){return rN=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},rN.apply(this,arguments)};function iN(e){function t(){return(0,Y.jsx)(nN,rN({},e))}return(0,Y.jsx)(`div`,{className:`react-calendar__decade-view`,children:t()})}var aN=function(){return aN=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},aN.apply(this,arguments)},oN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},sN=function(e,t,n){if(n||arguments.length===2)for(var r=0,i=t.length,a;r<i;r++)(a||!(r in t))&&(a||=Array.prototype.slice.call(t,0,r),a[r]=t[r]);return e.concat(a||Array.prototype.slice.call(t))},cN=`react-calendar__year-view__months__month`;function lN(e){var t=e.classes,n=t===void 0?[]:t,r=e.formatMonth,i=r===void 0?Qj:r,a=e.formatMonthYear,o=a===void 0?$j:a,s=oN(e,[`classes`,`formatMonth`,`formatMonthYear`]),c=s.date,l=s.locale;return(0,Y.jsx)(BM,aN({},s,{classes:sN(sN([],n,!0),[cN],!1),formatAbbr:o,maxDateTransform:Oj,minDateTransform:Tj,view:`year`,children:i(l,c)}))}var uN=function(){return uN=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},uN.apply(this,arguments)},dN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function fN(e){var t=e.activeStartDate,n=e.hover,r=e.value,i=e.valueType,a=dN(e,[`activeStartDate`,`hover`,`value`,`valueType`]),o=0,s=11,c=rj(t);return(0,Y.jsx)(zM,{className:`react-calendar__year-view__months`,dateTransform:function(e){var t=new Date;return t.setFullYear(c,e,1),Tj(t)},dateType:`month`,end:s,hover:n,renderTile:function(e){var n=e.date,r=dN(e,[`date`]);return(0,Y.jsx)(lN,uN({},a,r,{activeStartDate:t,date:n}),n.getTime())},start:o,value:r,valueType:i})}var pN=function(){return pN=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},pN.apply(this,arguments)};function mN(e){function t(){return(0,Y.jsx)(fN,pN({},e))}return(0,Y.jsx)(`div`,{className:`react-calendar__year-view`,children:t()})}var hN=function(){return hN=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},hN.apply(this,arguments)},gN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},_N=`react-calendar__month-view__days__day`;function vN(e){var t=e.calendarType,n=e.classes,r=n===void 0?[]:n,i=e.currentMonthIndex,a=e.formatDay,o=a===void 0?Xj:a,s=e.formatLongDate,c=s===void 0?Zj:s,l=gN(e,[`calendarType`,`classes`,`currentMonthIndex`,`formatDay`,`formatLongDate`]),u=l.date,d=l.locale,f=[];return r&&f.push.apply(f,r),_N&&f.push(_N),TM(u,t)&&f.push(`${_N}--weekend`),u.getMonth()!==i&&f.push(`${_N}--neighboringMonth`),(0,Y.jsx)(BM,hN({},l,{classes:f,formatAbbr:c,maxDateTransform:Nj,minDateTransform:Mj,view:`month`,children:o(d,u)}))}var yN=function(){return yN=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},yN.apply(this,arguments)},bN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function xN(e){var t=e.activeStartDate,n=e.calendarType,r=e.hover,i=e.showFixedNumberOfWeeks,a=e.showNeighboringMonth,o=e.value,s=e.valueType,c=bN(e,[`activeStartDate`,`calendarType`,`hover`,`showFixedNumberOfWeeks`,`showNeighboringMonth`,`value`,`valueType`]),l=rj(t),u=ij(t),d=i||a,f=oM(t,n),p=d?0:f,m=(d?-f:0)+1,h=(function(){if(i)return m+42-1;var e=Fj(t);if(a){var r=new Date;
2409return r.setFullYear(l,u,e),r.setHours(0,0,0,0),e+(7-oM(r,n)-1)}return e})();return(0,Y.jsx)(zM,{className:`react-calendar__month-view__days`,count:7,dateTransform:function(e){var t=new Date;return t.setFullYear(l,u,e),Mj(t)},dateType:`day`,hover:r,end:h,renderTile:function(e){var r=e.date,i=bN(e,[`date`]);return(0,Y.jsx)(vN,yN({},c,i,{activeStartDate:t,calendarType:n,currentMonthIndex:u,date:r}),r.getTime())},offset:p,start:m,value:o,valueType:s})}var SN=`react-calendar__month-view__weekdays`,CN=`${SN}__weekday`;function wN(e){for(var t=e.calendarType,n=e.formatShortWeekday,r=n===void 0?eM:n,i=e.formatWeekday,a=i===void 0?tM:i,o=e.locale,s=e.onMouseLeave,c=Tj(new Date),l=rj(c),u=ij(c),d=[],f=1;f<=7;f+=1){var p=new Date(l,u,f-oM(c,t)),m=a(o,p);d.push((0,Y.jsx)(`div`,{className:AA(CN,wM(p)&&`${CN}--current`,TM(p,t)&&`${CN}--weekend`),children:(0,Y.jsx)(`abbr`,{"aria-label":m,title:m,children:r(o,p).replace(`.`,``)})},f))}return(0,Y.jsx)(jM,{className:SN,count:7,onFocus:s,onMouseOver:s,children:d})}var TN=function(){return TN=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},TN.apply(this,arguments)},EN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n},DN=`react-calendar__tile`;function ON(e){var t=e.onClickWeekNumber,n=e.weekNumber,r=(0,Y.jsx)(`span`,{children:n});if(t){var i=e.date,a=e.onClickWeekNumber,o=e.weekNumber,s=EN(e,[`date`,`onClickWeekNumber`,`weekNumber`]);return(0,Y.jsx)(`button`,TN({},s,{className:DN,onClick:function(e){return a(o,i,e)},type:`button`,children:r}))}e.date,e.onClickWeekNumber,e.weekNumber;var s=EN(e,[`date`,`onClickWeekNumber`,`weekNumber`]);return(0,Y.jsx)(`div`,TN({},s,{className:DN,children:r}))}function kN(e){var t=e.activeStartDate,n=e.calendarType,r=e.onClickWeekNumber,i=e.onMouseLeave,a=e.showFixedNumberOfWeeks,o=(function(){if(a)return 6;var e=Fj(t)-(7-oM(t,n));return 1+Math.ceil(e/7)})(),s=(function(){for(var e=rj(t),r=ij(t),i=aj(t),a=[],s=0;s<o;s+=1)a.push(lM(new Date(e,r,i+s*7),n));return a})(),c=s.map(function(e){return uM(e,n)});return(0,Y.jsx)(jM,{className:`react-calendar__month-view__weekNumbers`,count:o,direction:`column`,onFocus:i,onMouseOver:i,style:{flexBasis:`calc(100% * (1 / 8)`,flexShrink:0},children:c.map(function(e,t){var n=s[t];if(!n)throw Error(`date is not defined`);return(0,Y.jsx)(ON,{date:n,onClickWeekNumber:r,weekNumber:e},e)})})}var AN=function(){return AN=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},AN.apply(this,arguments)},jN=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols==`function`)for(var i=0,r=Object.getOwnPropertySymbols(e);i<r.length;i++)t.indexOf(r[i])<0&&Object.prototype.propertyIsEnumerable.call(e,r[i])&&(n[r[i]]=e[r[i]]);return n};function MN(e){if(e)for(var t=0,n=Object.entries(Lj);t<n.length;t++){var r=n[t],i=r[0];if(r[1].includes(e))return i}return Ij.ISO_8601}function NN(e){var t=e.activeStartDate,n=e.locale,r=e.onMouseLeave,i=e.showFixedNumberOfWeeks,a=e.calendarType,o=a===void 0?MN(n):a,s=e.formatShortWeekday,c=e.formatWeekday,l=e.onClickWeekNumber,u=e.showWeekNumbers,d=jN(e,[`calendarType`,`formatShortWeekday`,`formatWeekday`,`onClickWeekNumber`,`showWeekNumbers`]);function f(){return(0,Y.jsx)(wN,{calendarType:o,formatShortWeekday:s,formatWeekday:c,locale:n,onMouseLeave:r})}function p(){return u?(0,Y.jsx)(kN,{activeStartDate:t,calendarType:o,onClickWeekNumber:l,onMouseLeave:r,showFixedNumberOfWeeks:i}):null}function m(){return(0,Y.jsx)(xN,AN({calendarType:o},d))}var h=`react-calendar__month-view`;return(0,Y.jsx)(`div`,{className:AA(h,u?`${h}--weekNumbers`:``),children:(0,Y.jsxs)(`div`,{style:{display:`flex`,alignItems:`flex-end`},children:[p(),(0,Y.jsxs)(`div`,{style:{flexGrow:1,width:`100%`},children:[f(),m()]})]})})}var PN=function(){return PN=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var i in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e},PN.apply(this,arguments)},FN=`react-calendar`,IN=[`century`,`decade`,`year`,`month`],LN=[`decade`,`year`,`month`,`day`],RN=new Date;RN.setFullYear(1,0,1),RN.setHours(0,0,0,0);var zN=new Date(864e13);function BN(e){return e instanceof Date?e:new Date(e)}function VN(e,t){return IN.slice(IN.indexOf(e),IN.indexOf(t)+1)}function HN(e,t,n){return VN(t,n).indexOf(e)!==-1}function UN(e,t,n){return e&&HN(e,t,n)?e:n}function WN(e){return LN[IN.indexOf(e)]}function GN(e,t){var n=Array.isArray(e)?e[t]:e;if(!n)return null;var r=BN(n);if(Number.isNaN(r.getTime()))throw Error(`Invalid date: ${e}`);return r}function KN(e,t){var n=e.value,r=e.minDate,i=e.maxDate,a=e.maxDetail,o=GN(n,t);if(!o)return null;var s=WN(a);return MM((function(){switch(t){case 0:return dM(s,o);case 1:return gM(s,o);default:throw Error(`Invalid index value: ${t}`)}})(),r,i)}var qN=function(e){return KN(e,0)},JN=function(e){return KN(e,1)},YN=function(e){return[qN,JN].map(function(t){return t(e)})};function XN(e){var t=e.maxDate,n=e.maxDetail,r=e.minDate,i=e.minDetail,a=e.value,o=e.view;return dM(UN(o,i,n),qN({value:a,minDate:r,maxDate:t,maxDetail:n})||new Date)}function ZN(e){var t=e.activeStartDate,n=e.defaultActiveStartDate,r=e.defaultValue,i=e.defaultView,a=e.maxDate,o=e.maxDetail,s=e.minDate,c=e.minDetail,l=e.value,u=e.view,d=UN(u,c,o),f=t||n;return f?dM(d,f):XN({maxDate:a,maxDetail:o,minDate:s,minDetail:c,value:l||r,view:u||i})}function QN(e){return e&&(!Array.isArray(e)||e.length===1)}function $N(e,t){return e instanceof Date&&t instanceof Date&&e.getTime()===t.getTime()}var eP=(0,y.forwardRef)(function(e,t){var n=e.activeStartDate,r=e.allowPartialRange,i=e.calendarType,a=e.className,o=e.defaultActiveStartDate,
2409s=e.defaultValue,c=e.defaultView,l=e.formatDay,u=e.formatLongDate,d=e.formatMonth,f=e.formatMonthYear,p=e.formatShortWeekday,m=e.formatWeekday,h=e.formatYear,g=e.goToRangeStartOnSelect,_=g===void 0||g,v=e.inputRef,b=e.locale,x=e.maxDate,S=x===void 0?zN:x,C=e.maxDetail,w=C===void 0?`month`:C,T=e.minDate,E=T===void 0?RN:T,ee=e.minDetail,te=ee===void 0?`century`:ee,D=e.navigationAriaLabel,ne=e.navigationAriaLive,re=e.navigationLabel,O=e.next2AriaLabel,ie=e.next2Label,k=e.nextAriaLabel,ae=e.nextLabel,oe=e.onActiveStartDateChange,A=e.onChange,j=e.onClickDay,M=e.onClickDecade,se=e.onClickMonth,ce=e.onClickWeekNumber,le=e.onClickYear,ue=e.onDrillDown,de=e.onDrillUp,fe=e.onViewChange,pe=e.prev2AriaLabel,me=e.prev2Label,he=e.prevAriaLabel,ge=e.prevLabel,_e=e.returnValue,ve=_e===void 0?`start`:_e,ye=e.selectRange,be=e.showDoubleView,xe=e.showFixedNumberOfWeeks,Se=e.showNavigation,Ce=Se===void 0||Se,we=e.showNeighboringCentury,Te=e.showNeighboringDecade,Ee=e.showNeighboringMonth,De=Ee===void 0||Ee,Oe=e.showWeekNumbers,ke=e.tileClassName,Ae=e.tileContent,je=e.tileDisabled,Me=e.value,Ne=e.view,Pe=(0,y.useState)(o),Fe=Pe[0],Ie=Pe[1],Le=(0,y.useState)(null),Re=Le[0],ze=Le[1],Be=(0,y.useState)(Array.isArray(s)?s.map(function(e){return e===null?null:BN(e)}):s==null?null:BN(s)),Ve=Be[0],He=Be[1],N=(0,y.useState)(c),Ue=N[0],We=N[1],Ge=n||Fe||ZN({activeStartDate:n,defaultActiveStartDate:o,defaultValue:s,defaultView:c,maxDate:S,maxDetail:w,minDate:E,minDetail:te,value:Me,view:Ne}),Ke=(function(){var e=(function(){return ye&&QN(Ve)||Me===void 0?Ve:Me})();return e?Array.isArray(e)?e.map(function(e){return e===null?null:BN(e)}):e===null?null:BN(e):null})(),qe=WN(w),Je=UN(Ne||Ue,te,w),Ye=VN(te,w),Xe=ye?Re:null,Ze=Ye.indexOf(Je)<Ye.length-1,Qe=Ye.indexOf(Je)>0,$e=(0,y.useCallback)(function(e){return(function(){switch(ve){case`start`:return qN;case`end`:return JN;case`range`:return YN;default:throw Error(`Invalid returnValue.`)}})()({maxDate:S,maxDetail:w,minDate:E,value:e})},[S,w,E,ve]),et=(0,y.useCallback)(function(e,t){Ie(e);var n={action:t,activeStartDate:e,value:Ke,view:Je};oe&&!$N(Ge,e)&&oe(n)},[Ge,oe,Ke,Je]),tt=(0,y.useCallback)(function(e,t){var n=(function(){switch(Je){case`century`:return M;case`decade`:return le;case`year`:return se;case`month`:return j;default:throw Error(`Invalid view: ${Je}.`)}})();n&&n(e,t)},[j,M,se,le,Je]),nt=(0,y.useCallback)(function(e,t){if(Ze){tt(e,t);var n=Ye[Ye.indexOf(Je)+1];if(!n)throw Error(`Attempted to drill down from the lowest view.`);Ie(e),We(n);var r={action:`drillDown`,activeStartDate:e,value:Ke,view:n};oe&&!$N(Ge,e)&&oe(r),fe&&Je!==n&&fe(r),ue&&ue(r)}},[Ge,Ze,oe,tt,ue,fe,Ke,Je,Ye]),rt=(0,y.useCallback)(function(){if(Qe){var e=Ye[Ye.indexOf(Je)-1];if(!e)throw Error(`Attempted to drill up from the highest view.`);var t=dM(e,Ge);Ie(t),We(e);var n={action:`drillUp`,activeStartDate:t,value:Ke,view:e};oe&&!$N(Ge,t)&&oe(n),fe&&Je!==e&&fe(n),de&&de(n)}},[Ge,Qe,oe,de,fe,Ke,Je,Ye]),it=(0,y.useCallback)(function(e,t){var n=Ke;tt(e,t);var i=ye&&!QN(n),a;if(ye){if(i)a=dM(qe,e);else{if(!n)throw Error(`previousValue is required`);if(Array.isArray(n))throw Error(`previousValue must not be an array`);a=bM(qe,n,e)}}else a=$e(e);var o=!ye||i||_?XN({maxDate:S,maxDetail:w,minDate:E,minDetail:te,value:a,view:Je}):null;t.persist(),Ie(o),He(a);var s={action:`onChange`,activeStartDate:o,value:a,view:Je};if(oe&&!$N(Ge,o)&&oe(s),A){if(ye){if(!QN(a))A(a||null,t);else if(r){if(Array.isArray(a))throw Error(`value must not be an array`);A([a||null,null],t)}}else A(a||null,t)}},[Ge,r,$e,_,S,w,E,te,oe,A,tt,ye,Ke,qe,Je]);function P(e){ze(e)}function at(){ze(null)}(0,y.useImperativeHandle)(t,function(){return{activeStartDate:Ge,drillDown:nt,drillUp:rt,onChange:it,setActiveStartDate:et,value:Ke,view:Je}},[Ge,nt,rt,it,et,Ke,Je]);function ot(e){var t={activeStartDate:e?pM(Je,Ge):dM(Je,Ge),hover:Xe,locale:b,maxDate:S,minDate:E,onClick:Ze?nt:it,onMouseOver:ye?P:void 0,tileClassName:ke,tileContent:Ae,tileDisabled:je,value:Ke,valueType:qe};switch(Je){case`century`:return(0,Y.jsx)(YM,PN({formatYear:h,showNeighboringCentury:we},t));case`decade`:return(0,Y.jsx)(iN,PN({formatYear:h,showNeighboringDecade:Te},t));case`year`:return(0,Y.jsx)(mN,PN({formatMonth:d,formatMonthYear:f},t));case`month`:return(0,Y.jsx)(NN,PN({calendarType:i,formatDay:l,formatLongDate:u,formatShortWeekday:p,formatWeekday:m,onClickWeekNumber:ce,onMouseLeave:ye?at:void 0,showFixedNumberOfWeeks:xe===void 0?be:xe,showNeighboringMonth:De,showWeekNumbers:Oe},t));default:throw Error(`Invalid view: ${Je}.`)}}function st(){return Ce?(0,Y.jsx)(DM,{activeStartDate:Ge,drillUp:rt,formatMonthYear:f,formatYear:h,locale:b,maxDate:S,minDate:E,navigationAriaLabel:D,navigationAriaLive:ne,navigationLabel:re,next2AriaLabel:O,next2Label:ie,nextAriaLabel:k,nextLabel:ae,prev2AriaLabel:pe,prev2Label:me,prevAriaLabel:he,prevLabel:ge,setActiveStartDate:et,showDoubleView:be,view:Je,views:Ye}):null}return(0,Y.jsxs)(`div`,{className:AA(FN,ye&&(Array.isArray(Ke)?Ke:[Ke]).length===1&&`${FN}--selectRange`,be&&`${FN}--doubleView`,a),ref:v,children:[st(),(0,Y.jsxs)(`div`,{className:`${FN}__viewContainer`,onBlur:ye?at:void 0,onMouseLeave:ye?at:void 0,children:[ot(),be?ot(!0):null]})]})}
2409),tP={outerWrapper:`_outerWrapper_i4nkf_1`,scrollContainer:`_scrollContainer_i4nkf_11`,verticalCenter:`_verticalCenter_i4nkf_21`,pageWrapper:`_pageWrapper_i4nkf_21`};function nP({children:e,verticalCenter:t=!1,modalSelectorProps:n={}}){return(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`div`,{className:`${tP.outerWrapper} top-ad-padding`,children:(0,Y.jsx)(`div`,{className:`${tP.scrollContainer} ${t?tP.verticalCenter:``}`,children:(0,Y.jsx)(`div`,{className:tP.pageWrapper,children:e})})}),(0,Y.jsx)(dA,{...n})]})}var rP={topBarWrapper:`_topBarWrapper_oxs9t_1`,topBar:`_topBar_oxs9t_1`,topBarTitle:`_topBarTitle_oxs9t_19`,topBarRightPlaceholder:`_topBarRightPlaceholder_oxs9t_25`};function iP({title:e,leftComponent:t,rightComponent:n,hideAccountButton:r}){let i=Wi(),a=Vi(),{language:o}=Ki();t||=(0,Y.jsx)(`button`,{type:`button`,className:`btn`,onClick:()=>{a.pathname.includes(`/daily`)?i(`/${o}/`,{replace:!0}):i(-1),st.backButtonClick(o)},children:(0,Y.jsx)(X.Back,{})});let s=(0,Y.jsx)(`div`,{className:rP.topBarRightPlaceholder,children:`\xA0`});return n||=r?s:(0,Y.jsx)(pA,{iconOnly:!0}),(0,Y.jsxs)(`div`,{className:rP.topBar,children:[t,(0,Y.jsx)(`div`,{className:rP.topBarTitle,children:e}),n]})}function aP(){bD();let e=Wi(),{language:t}=Ki(),[n,r]=Ua(),i=xD(),{t:a}=go(),o=AD(t).toDate(),s=(0,N.default)().toDate(),c=n=>{let r=(0,N.default)(n).format(`YYYY-MM-DD`);st.selectPreviousGame(t),e(`/${t}/previous/${r}`)},l=n.get(`month`),u=l?(0,N.default)(l).toDate():new Date,d=({date:e,view:t})=>t===`month`&&e.getDate()===o.getDate()&&e.getMonth()===o.getMonth()&&e.getYear()===o.getYear()?(0,Y.jsx)(`t`,{children:`*`}):null,f=({date:e,view:n})=>{if(n===`month`){let n=ND((0,N.default)(e).format(`YYYY-MM-DD`),t),r=i?i[n]:null;return r?r===`won`?`game-won`:r===`started`?`game-started`:r===`gaveUp`?`game-given-up`:null:null}},p={pt:`pt-BR`,es:`es-ES`,en:`en-US`}[t]||`en-US`;return(0,Y.jsxs)(nP,{children:[(0,Y.jsx)(iP,{title:`Contexto`}),(0,Y.jsx)(`div`,{style:{fontSize:22,fontWeight:`bold`,paddingBottom:10},children:a(`previousGamesScreen.title`)}),(0,Y.jsxs)(`div`,{style:{maxWidth:500},children:[!i&&(0,Y.jsx)(nA,{}),i?(0,Y.jsx)(eP,{locale:p,minDate:o,maxDate:s,minDetail:`year`,showNeighboringMonth:!1,prev2Label:null,next2Label:null,onClickDay:c,defaultActiveStartDate:u,onActiveStartDateChange:({action:e,activeStartDate:t,view:i})=>{i===`month`&&e!==`onChange`&&r({...n,month:(0,N.default)(t).format(`YYYY-MM`)},{replace:!0})},tileClassName:f,tileContent:d}):null,o.getMonth()===u.getMonth()&&o.getFullYear()===u.getFullYear()&&(0,Y.jsxs)(`div`,{style:{fontSize:14,marginTop:`20px`,padding:`10px`,textAlign:`center`},children:[`* `,a(`previousGamesScreen.firstGame`)]})]})]})}var oP=(0,y.createContext)({});function sP(e){let t=(0,y.useRef)(null);return t.current===null&&(t.current=e()),t.current}var cP=typeof window<`u`,lP=cP?y.useLayoutEffect:y.useEffect,uP=(0,y.createContext)(null);function dP(e,t){e.indexOf(t)===-1&&e.push(t)}function fP(e,t){let n=e.indexOf(t);n>-1&&e.splice(n,1)}var pP=(e,t,n)=>n>t?t:n<e?e:n,mP={},hP=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function gP(e){return typeof e==`object`&&!!e}var _P=e=>/^0[^.\s]+$/u.test(e);function vP(e){let t;return()=>(t===void 0&&(t=e()),t)}var yP=e=>e,bP=(e,t)=>n=>t(e(n)),xP=(...e)=>e.reduce(bP),SP=(e,t,n)=>{let r=t-e;return r===0?1:(n-e)/r},CP=class{constructor(){this.subscriptions=[]}add(e){return dP(this.subscriptions,e),()=>fP(this.subscriptions,e)}notify(e,t,n){let r=this.subscriptions.length;if(r){if(r===1)this.subscriptions[0](e,t,n);else for(let i=0;i<r;i++){let r=this.subscriptions[i];r&&r(e,t,n)}}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}},wP=e=>e*1e3,TP=e=>e/1e3;function EP(e,t){return t?1e3/t*e:0}var DP=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,OP=1e-7,kP=12;function AP(e,t,n,r,i){let a,o,s=0;do o=t+(n-t)/2,a=DP(o,r,i)-e,a>0?n=o:t=o;while(Math.abs(a)>OP&&++s<kP);return o}function jP(e,t,n,r){if(e===t&&n===r)return yP;let i=t=>AP(t,0,1,e,n);return e=>e===0||e===1?e:DP(i(e),t,r)}var MP=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,NP=e=>t=>1-e(1-t),PP=jP(.33,1.53,.69,.99),FP=NP(PP),IP=MP(FP),LP=e=>(e*=2)<1?.5*FP(e):.5*(2-2**(-10*(e-1))),RP=e=>1-Math.sin(Math.acos(e)),zP=NP(RP),BP=MP(RP),VP=jP(.42,0,1,1),HP=jP(0,0,.58,1),UP=jP(.42,0,.58,1),WP=e=>Array.isArray(e)&&typeof e[0]!=`number`,GP=e=>
2409Array.isArray(e)&&typeof e[0]==`number`,KP={linear:yP,easeIn:VP,easeInOut:UP,easeOut:HP,circIn:RP,circInOut:BP,circOut:zP,backIn:FP,backInOut:IP,backOut:PP,anticipate:LP},qP=e=>typeof e==`string`,JP=e=>{if(GP(e)){e.length;let[t,n,r,i]=e;return jP(t,n,r,i)}return qP(e)?(KP[e],`${e}`,KP[e]):e},YP=[`setup`,`read`,`resolveKeyframes`,`preUpdate`,`update`,`preRender`,`render`,`postRender`],XP={value:null,addProjectionMetrics:null};function ZP(e,t){let n=new Set,r=new Set,i=!1,a=!1,o=new WeakSet,s={delta:0,timestamp:0,isProcessing:!1},c=0;function l(t){o.has(t)&&(u.schedule(t),e()),c++,t(s)}let u={schedule:(e,t=!1,a=!1)=>{let s=a&&i?n:r;return t&&o.add(e),s.has(e)||s.add(e),e},cancel:e=>{r.delete(e),o.delete(e)},process:e=>{if(s=e,i){a=!0;return}i=!0,[n,r]=[r,n],n.forEach(l),t&&XP.value&&XP.value.frameloop[t].push(c),c=0,n.clear(),i=!1,a&&(a=!1,u.process(e))}};return u}var QP=40;function $P(e,t){let n=!1,r=!0,i={delta:0,timestamp:0,isProcessing:!1},a=()=>n=!0,o=YP.reduce((e,n)=>(e[n]=ZP(a,t?n:void 0),e),{}),{setup:s,read:c,resolveKeyframes:l,preUpdate:u,update:d,preRender:f,render:p,postRender:m}=o,h=()=>{let a=mP.useManualTiming?i.timestamp:performance.now();n=!1,mP.useManualTiming||(i.delta=r?1e3/60:Math.max(Math.min(a-i.timestamp,QP),1)),i.timestamp=a,i.isProcessing=!0,s.process(i),c.process(i),l.process(i),u.process(i),d.process(i),f.process(i),p.process(i),m.process(i),i.isProcessing=!1,n&&t&&(r=!1,e(h))},g=()=>{n=!0,r=!0,i.isProcessing||e(h)};return{schedule:YP.reduce((e,t)=>{let r=o[t];return e[t]=(e,t=!1,i=!1)=>(n||g(),r.schedule(e,t,i)),e},{}),cancel:e=>{for(let t=0;t<YP.length;t++)o[YP[t]].cancel(e)},state:i,steps:o}}var{schedule:eF,cancel:tF,state:nF,steps:rF}=$P(typeof requestAnimationFrame<`u`?requestAnimationFrame:yP,!0),iF;function aF(){iF=void 0}var oF={now:()=>(iF===void 0&&oF.set(nF.isProcessing||mP.useManualTiming?nF.timestamp:performance.now()),iF),set:e=>{iF=e,queueMicrotask(aF)}},sF={layout:0,mainThread:0,waapi:0},cF=e=>t=>typeof t==`string`&&t.startsWith(e),lF=cF(`--`),uF=cF(`var(--`),dF=e=>uF(e)?fF.test(e.split(`/*`)[0].trim()):!1,fF=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu;function pF(e){return typeof e==`string`&&e.split(`/*`)[0].includes(`var(--`)}var mF={test:e=>typeof e==`number`,parse:parseFloat,transform:e=>e},hF={...mF,transform:e=>pP(0,1,e)},gF={...mF,default:1},_F=e=>Math.round(e*1e5)/1e5,vF=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function yF(e){return e==null}var bF=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,xF=(e,t)=>n=>!!(typeof n==`string`&&bF.test(n)&&n.startsWith(e)||t&&!yF(n)&&Object.prototype.hasOwnProperty.call(n,t)),SF=(e,t,n)=>r=>{if(typeof r!=`string`)return r;let[i,a,o,s]=r.match(vF);return{[e]:parseFloat(i),[t]:parseFloat(a),[n]:parseFloat(o),alpha:s===void 0?1:parseFloat(s)}},CF=e=>pP(0,255,e),wF={...mF,transform:e=>Math.round(CF(e))},TF={test:xF(`rgb`,`red`),parse:SF(`red`,`green`,`blue`),transform:({red:e,green:t,blue:n,alpha:r=1})=>`rgba(`+wF.transform(e)+`, `+wF.transform(t)+`, `+wF.transform(n)+`, `+_F(hF.transform(r))+`)`};function EF(e){let t=``,n=``,r=``,i=``;return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),i=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),i=e.substring(4,5),t+=t,n+=n,r+=r,i+=i),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:i?parseInt(i,16)/255:1}}var DF={test:xF(`#`),parse:EF,transform:TF.transform},OF=e=>({test:t=>typeof t==`string`&&t.endsWith(e)&&t.split(` `).length===1,parse:parseFloat,transform:t=>`${t}${e}`}),kF=OF(`deg`),AF=OF(`%`),Q=OF(`px`),jF=OF(`vh`),MF=OF(`vw`),NF={...AF,parse:e=>AF.parse(e)/100,transform:e=>AF.transform(e*100)},PF={test:xF(`hsl`,`hue`),parse:SF(`hue`,`saturation`,`lightness`),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>`hsla(`+Math.round(e)+`, `+AF.transform(_F(t))+`, `+AF.transform(_F(n))+`, `+_F(hF.transform(r))+`)`},FF={test:e=>TF.test(e)||DF.test(e)||PF.test(e),parse:e=>TF.test(e)?TF.parse(e):PF.test(e)?PF.parse(e):DF.parse(e),transform:e=>typeof e==`string`?e:e.hasOwnProperty(`red`)?TF.transform(e):PF.transform(e),getAnimatableNone:e=>{let t=FF.parse(e);return t.alpha=0,FF.transform(t)}},IF=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function LF(e){return isNaN(e)&&typeof e==`string`&&(e.match(vF)?.length||0)+(e.match(IF)?.length||0)>0}var RF=`number`,zF=`color`,BF=`var`,VF=`var(`,HF="${}",UF=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function WF(e){let t=e.toString(),n=[],r={color:[],number:[],var:[]},i=[],a=0;return{values:n,split:t.replace(UF,e=>(FF.test(e)?(r.color.push(a),i.push(zF),n.push(FF.parse(e))):e.startsWith(VF)?(r.var.push(a),i.push(BF),n.push(e)):(r.number.push(a),i.push(RF),n.push(parseFloat(e))),++a,HF)).split(HF),indexes:r,types:i}}function GF(e){return WF(e).values}function KF(e){let{split:t,types:n}=WF(e),r=t.length;return e=>{let i=``;for(let a=0;a<r;a++)if(i+=t[a],e[a]!==void 0){let t=n[a];i+=t===RF?_F(e[a]):t===zF?FF.transform(e[a]):e[a]}return i}}var qF=e=>typeof e==`number`?0:FF.test(e)?FF.getAnimatableNone(e):e;function JF(e){let t=GF(e);return KF(e)(t.map(qF))}var YF={test:LF,parse:GF,createTransformer:KF,getAnimatableNone:JF};
2409function XF(e,t,n){return n<0&&(n+=1),n>1&&--n,n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ZF({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let i=0,a=0,o=0;if(!t)i=a=o=n;else{let r=n<.5?n*(1+t):n+t-n*t,s=2*n-r;i=XF(s,r,e+1/3),a=XF(s,r,e),o=XF(s,r,e-1/3)}return{red:Math.round(i*255),green:Math.round(a*255),blue:Math.round(o*255),alpha:r}}function QF(e,t){return n=>n>0?t:e}var $F=(e,t,n)=>e+(t-e)*n,eI=(e,t,n)=>{let r=e*e,i=n*(t*t-r)+r;return i<0?0:Math.sqrt(i)},tI=[DF,TF,PF],nI=e=>tI.find(t=>t.test(e));function rI(e){let t=nI(e);if(`${e}`,!t)return!1;let n=t.parse(e);return t===PF&&(n=ZF(n)),n}var iI=(e,t)=>{let n=rI(e),r=rI(t);if(!n||!r)return QF(e,t);let i={...n};return e=>(i.red=eI(n.red,r.red,e),i.green=eI(n.green,r.green,e),i.blue=eI(n.blue,r.blue,e),i.alpha=$F(n.alpha,r.alpha,e),TF.transform(i))},aI=new Set([`none`,`hidden`]);function oI(e,t){return aI.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function sI(e,t){return n=>$F(e,t,n)}function cI(e){return typeof e==`number`?sI:typeof e==`string`?dF(e)?QF:FF.test(e)?iI:fI:Array.isArray(e)?lI:typeof e==`object`?FF.test(e)?iI:uI:QF}function lI(e,t){let n=[...e],r=n.length,i=e.map((e,n)=>cI(e)(e,t[n]));return e=>{for(let t=0;t<r;t++)n[t]=i[t](e);return n}}function uI(e,t){let n={...e,...t},r={};for(let i in n)e[i]!==void 0&&t[i]!==void 0&&(r[i]=cI(e[i])(e[i],t[i]));return e=>{for(let t in r)n[t]=r[t](e);return n}}function dI(e,t){let n=[],r={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){let a=t.types[i],o=e.indexes[a][r[a]],s=e.values[o]??0;n[i]=s,r[a]++}return n}var fI=(e,t)=>{let n=YF.createTransformer(t),r=WF(e),i=WF(t);return r.indexes.var.length===i.indexes.var.length&&r.indexes.color.length===i.indexes.color.length&&r.indexes.number.length>=i.indexes.number.length?aI.has(e)&&!i.values.length||aI.has(t)&&!r.values.length?oI(e,t):xP(lI(dI(r,i),i.values),n):(`${e}${t}`,QF(e,t))};function pI(e,t,n){return typeof e==`number`&&typeof t==`number`&&typeof n==`number`?$F(e,t,n):cI(e)(e,t)}var mI=e=>{let t=({timestamp:t})=>e(t);return{start:(e=!0)=>eF.update(t,e),stop:()=>tF(t),now:()=>nF.isProcessing?nF.timestamp:oF.now()}},hI=(e,t,n=10)=>{let r=``,i=Math.max(Math.round(t/n),2);for(let t=0;t<i;t++)r+=Math.round(e(t/(i-1))*1e4)/1e4+`, `;return`linear(${r.substring(0,r.length-2)})`},gI=2e4;function _I(e){let t=0,n=e.next(t);for(;!n.done&&t<2e4;)t+=50,n=e.next(t);return t>=2e4?1/0:t}function vI(e,t=100,n){let r=n({...e,keyframes:[0,t]}),i=Math.min(_I(r),gI);return{type:`keyframes`,ease:e=>r.next(i*e).value/t,duration:TP(i)}}var yI=5;function bI(e,t,n){let r=Math.max(t-yI,0);return EP(n-e(r),t-r)}var xI={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},SI=.001;function CI({duration:e=xI.duration,bounce:t=xI.bounce,velocity:n=xI.velocity,mass:r=xI.mass}){let i,a;xI.maxDuration;let o=1-t;o=pP(xI.minDamping,xI.maxDamping,o),e=pP(xI.minDuration,xI.maxDuration,TP(e)),o<1?(i=t=>{let r=t*o,i=r*e,a=r-n,s=EI(t,o),c=Math.exp(-i);return SI-a/s*c},a=t=>{let r=t*o*e,a=r*n+n,s=o**2*t**2*e,c=Math.exp(-r),l=EI(t**2,o);return(-i(t)+SI>0?-1:1)*((a-s)*c)/l}):(i=t=>-.001+Math.exp(-t*e)*((t-n)*e+1),a=t=>Math.exp(-t*e)*((n-t)*(e*e)));let s=5/e,c=TI(i,a,s);if(e=wP(e),isNaN(c))return{stiffness:xI.stiffness,damping:xI.damping,duration:e};{let t=c**2*r;return{stiffness:t,damping:o*2*Math.sqrt(r*t),duration:e}}}var wI=12;function TI(e,t,n){let r=n;for(let n=1;n<wI;n++)r-=e(r)/t(r);return r}function EI(e,t){return e*Math.sqrt(1-t*t)}var DI=[`duration`,`bounce`],OI=[`stiffness`,`damping`,`mass`];function kI(e,t){return t.some(t=>e[t]!==void 0)}function AI(e){let t={velocity:xI.velocity,stiffness:xI.stiffness,damping:xI.damping,mass:xI.mass,isResolvedFromDuration:!1,...e};if(!kI(e,OI)&&kI(e,DI)){if(e.visualDuration){let n=e.visualDuration,r=2*Math.PI/(n*1.2),i=r*r,a=2*pP(.05,1,1-(e.bounce||0))*Math.sqrt(i);t={...t,mass:xI.mass,stiffness:i,damping:a}}else{let n=CI(e);t={...t,...n,mass:xI.mass},t.isResolvedFromDuration=!0}}return t}function jI(e=xI.visualDuration,t=xI.bounce){let n=typeof e==`object`?e:{visualDuration:e,keyframes:[0,1],bounce:t},{restSpeed:r,restDelta:i}=n,a=n.keyframes[0],o=n.keyframes[n.keyframes.length-1],s={done:!1,value:a},{stiffness:c,damping:l,mass:u,duration:d,velocity:f,isResolvedFromDuration:p}=AI({...n,velocity:-TP(n.velocity||0)}),m=f||0,h=l/(2*Math.sqrt(c*u)),g=o-a,_=TP(Math.sqrt(c/u)),v=Math.abs(g)<5;r||=v?xI.restSpeed.granular:xI.restSpeed.default,i||=v?xI.restDelta.granular:xI.restDelta.default;let y;if(h<1){let e=EI(_,h);y=t=>{let n=Math.exp(-h*_*t);return o-n*((m+h*_*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}}else if(h===1)y=e=>o-Math.exp(-_*e)*(g+(m+_*g)*e);else{let e=_*Math.sqrt(h*h-1);y=t=>{let n=Math.exp(-h*_*t),r=Math.min(e*t,300);return o-n*((m+h*_*g)*Math.sinh(r)+e*g*Math.cosh(r))/e}}
2409let b={calculatedDuration:p&&d||null,next:e=>{let t=y(e);if(p)s.done=e>=d;else{let n=e===0?m:0;h<1&&(n=e===0?wP(m):bI(y,e,t));let a=Math.abs(n)<=r,c=Math.abs(o-t)<=i;s.done=a&&c}return s.value=s.done?o:t,s},toString:()=>{let e=Math.min(_I(b),gI),t=hI(t=>b.next(e*t).value,e,30);return e+`ms `+t},toTransition:()=>{}};return b}jI.applyToOptions=e=>{let t=vI(e,100,jI);return e.ease=t.ease,e.duration=wP(t.duration),e.type=`keyframes`,e};function MI({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:i=10,bounceStiffness:a=500,modifyTarget:o,min:s,max:c,restDelta:l=.5,restSpeed:u}){let d=e[0],f={done:!1,value:d},p=e=>s!==void 0&&e<s||c!==void 0&&e>c,m=e=>s===void 0?c:c===void 0||Math.abs(s-e)<Math.abs(c-e)?s:c,h=n*t,g=d+h,_=o===void 0?g:o(g);_!==g&&(h=_-d);let v=e=>-h*Math.exp(-e/r),y=e=>_+v(e),b=e=>{let t=v(e),n=y(e);f.done=Math.abs(t)<=l,f.value=f.done?_:n},x,S,C=e=>{p(f.value)&&(x=e,S=jI({keyframes:[f.value,m(f.value)],velocity:bI(y,e,f.value),damping:i,stiffness:a,restDelta:l,restSpeed:u}))};return C(0),{calculatedDuration:null,next:e=>{let t=!1;return!S&&x===void 0&&(t=!0,b(e),C(e)),x!==void 0&&e>=x?S.next(e-x):(!t&&b(e),f)}}}function NI(e,t,n){let r=[],i=n||mP.mix||pI,a=e.length-1;for(let n=0;n<a;n++){let a=i(e[n],e[n+1]);t&&(a=xP(Array.isArray(t)?t[n]||yP:t,a)),r.push(a)}return r}function PI(e,t,{clamp:n=!0,ease:r,mixer:i}={}){let a=e.length;if(t.length,a===1)return()=>t[0];if(a===2&&t[0]===t[1])return()=>t[1];let o=e[0]===e[1];e[0]>e[a-1]&&(e=[...e].reverse(),t=[...t].reverse());let s=NI(t,r,i),c=s.length,l=n=>{if(o&&n<e[0])return t[0];let r=0;if(c>1)for(;r<e.length-2&&!(n<e[r+1]);r++);let i=SP(e[r],e[r+1],n);return s[r](i)};return n?t=>l(pP(e[0],e[a-1],t)):l}function FI(e,t){let n=e[e.length-1];for(let r=1;r<=t;r++){let i=SP(0,t,r);e.push($F(n,1,i))}}function II(e){let t=[0];return FI(t,e.length-1),t}function LI(e,t){return e.map(e=>e*t)}function RI(e,t){return e.map(()=>t||UP).splice(0,e.length-1)}function zI({duration:e=300,keyframes:t,times:n,ease:r=`easeInOut`}){let i=WP(r)?r.map(JP):JP(r),a={done:!1,value:t[0]},o=PI(LI(n&&n.length===t.length?n:II(t),e),t,{ease:Array.isArray(i)?i:RI(t,i)});return{calculatedDuration:e,next:t=>(a.value=o(t),a.done=t>=e,a)}}var BI=e=>e!==null;function VI(e,{repeat:t,repeatType:n=`loop`},r,i=1){let a=e.filter(BI),o=i<0||t&&n!==`loop`&&t%2==1?0:a.length-1;return!o||r===void 0?a[o]:r}var HI={decay:MI,inertia:MI,tween:zI,keyframes:zI,spring:jI};function UI(e){typeof e.type==`string`&&(e.type=HI[e.type])}var WI=class{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(e=>{this.resolve=e})}notifyFinished(){this.resolve()}then(e,t){return this.finished.then(e,t)}},GI=e=>e/100,KI=class extends WI{constructor(e){super(),this.state=`idle`,this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{let{motionValue:e}=this.options;e&&e.updatedAt!==oF.now()&&this.tick(oF.now()),this.isStopped=!0,this.state!==`idle`&&(this.teardown(),this.options.onStop?.())},sF.mainThread++,this.options=e,this.initAnimation(),this.play(),e.autoplay===!1&&this.pause()}initAnimation(){let{options:e}=this;UI(e);let{type:t=zI,repeat:n=0,repeatDelay:r=0,repeatType:i,velocity:a=0}=e,{keyframes:o}=e,s=t||zI;s!==zI&&typeof o[0]!=`number`&&(this.mixKeyframes=xP(GI,pI(o[0],o[1])),o=[0,100]);let c=s({...e,keyframes:o});i===`mirror`&&(this.mirroredGenerator=s({...e,keyframes:[...o].reverse(),velocity:-a})),c.calculatedDuration===null&&(c.calculatedDuration=_I(c));let{calculatedDuration:l}=c;this.calculatedDuration=l,this.resolvedDuration=l+r,this.totalDuration=this.resolvedDuration*(n+1)-r,this.generator=c}updateTime(e){let t=Math.round(e-this.startTime)*this.playbackSpeed;this.currentTime=this.holdTime===null?t:this.holdTime}tick(e,t=!1){let{generator:n,totalDuration:r,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:o,calculatedDuration:s}=this;if(this.startTime===null)return n.next(0);let{delay:c=0,keyframes:l,repeat:u,repeatType:d,repeatDelay:f,type:p,onUpdate:m,finalKeyframe:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-r/this.speed,this.startTime)),t?this.currentTime=e:this.updateTime(e);let g=this.currentTime-c*(this.playbackSpeed>=0?1:-1),_=this.playbackSpeed>=0?g<0:g>r;this.currentTime=Math.max(g,0),this.state===`finished`&&this.holdTime===null&&(this.currentTime=r);let v=this.currentTime,y=n;if(u){let e=Math.min(this.currentTime,r)/o,t=Math.floor(e),n=e%1;!n&&e>=1&&(n=1),n===1&&t--,t=Math.min(t,u+1),t%2&&(d===`reverse`?(n=1-n,f&&(n-=f/o)):d===`mirror`&&(y=a)),v=pP(0,1,n)*o}let b=_?{done:!1,value:l[0]}:y.next(v);
2409i&&(b.value=i(b.value));let{done:x}=b;!_&&s!==null&&(x=this.playbackSpeed>=0?this.currentTime>=r:this.currentTime<=0);let S=this.holdTime===null&&(this.state===`finished`||this.state===`running`&&x);return S&&p!==MI&&(b.value=VI(l,this.options,h,this.speed)),m&&m(b.value),S&&this.finish(),b}then(e,t){return this.finished.then(e,t)}get duration(){return TP(this.calculatedDuration)}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+TP(e)}get time(){return TP(this.currentTime)}set time(e){e=wP(e),this.currentTime=e,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.playbackSpeed),this.driver?.start(!1)}get speed(){return this.playbackSpeed}set speed(e){this.updateTime(oF.now());let t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=TP(this.currentTime))}play(){if(this.isStopped)return;let{driver:e=mI,startTime:t}=this.options;this.driver||=e(e=>this.tick(e)),this.options.onPlay?.();let n=this.driver.now();this.state===`finished`?(this.updateFinished(),this.startTime=n):this.holdTime===null?this.startTime||=t??n:this.startTime=n-this.holdTime,this.state===`finished`&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state=`running`,this.driver.start()}pause(){this.state=`paused`,this.updateTime(oF.now()),this.holdTime=this.currentTime}complete(){this.state!==`running`&&this.play(),this.state=`finished`,this.holdTime=null}finish(){this.notifyFinished(),this.teardown(),this.state=`finished`,this.options.onComplete?.()}cancel(){this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),this.options.onCancel?.()}teardown(){this.state=`idle`,this.stopDriver(),this.startTime=this.holdTime=null,sF.mainThread--}stopDriver(){this.driver&&=(this.driver.stop(),void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}attachTimeline(e){return this.options.allowFlatten&&(this.options.type=`keyframes`,this.options.ease=`linear`,this.initAnimation()),this.driver?.stop(),e.observe(this)}};function qI(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}var JI=e=>e*180/Math.PI,YI=e=>ZI(JI(Math.atan2(e[1],e[0]))),XI={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:YI,rotateZ:YI,skewX:e=>JI(Math.atan(e[1])),skewY:e=>JI(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},ZI=e=>(e%=360,e<0&&(e+=360),e),QI=YI,$I=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),eL=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),tL={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:$I,scaleY:eL,scale:e=>($I(e)+eL(e))/2,rotateX:e=>ZI(JI(Math.atan2(e[6],e[5]))),rotateY:e=>ZI(JI(Math.atan2(-e[2],e[0]))),rotateZ:QI,rotate:QI,skewX:e=>JI(Math.atan(e[4])),skewY:e=>JI(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function nL(e){return+!!e.includes(`scale`)}function rL(e,t){if(!e||e===`none`)return nL(t);let n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u),r,i;if(n)r=tL,i=n;else{let t=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=XI,i=t}if(!i)return nL(t);let a=r[t],o=i[1].split(`,`).map(aL);return typeof a==`function`?a(o):o[a]}var iL=(e,t)=>{let{transform:n=`none`}=getComputedStyle(e);return rL(n,t)};function aL(e){return parseFloat(e.trim())}var oL=[`transformPerspective`,`x`,`y`,`z`,`translateX`,`translateY`,`translateZ`,`scale`,`scaleX`,`scaleY`,`rotate`,`rotateX`,`rotateY`,`rotateZ`,`skew`,`skewX`,`skewY`],sL=new Set(oL),cL=e=>e===mF||e===Q,lL=new Set([`x`,`y`,`z`]),uL=oL.filter(e=>!lL.has(e));function dL(e){let t=[];return uL.forEach(n=>{let r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(+!!n.startsWith(`scale`)))}),t}var fL={width:({x:e},{paddingLeft:t=`0`,paddingRight:n=`0`})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t=`0`,paddingBottom:n=`0`})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>rL(t,`x`),y:(e,{transform:t})=>rL(t,`y`)};fL.translateX=fL.x,fL.translateY=fL.y;var pL=new Set,mL=!1,hL=!1,gL=!1;function _L(){if(hL){let e=Array.from(pL).filter(e=>e.needsMeasurement),t=new Set(e.map(e=>e.element)),n=new Map;
2409t.forEach(e=>{let t=dL(e);t.length&&(n.set(e,t),e.render())}),e.forEach(e=>e.measureInitialState()),t.forEach(e=>{e.render();let t=n.get(e);t&&t.forEach(([t,n])=>{e.getValue(t)?.set(n)})}),e.forEach(e=>e.measureEndState()),e.forEach(e=>{e.suspendedScrollY!==void 0&&window.scrollTo(0,e.suspendedScrollY)})}hL=!1,mL=!1,pL.forEach(e=>e.complete(gL)),pL.clear()}function vL(){pL.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(hL=!0)})}function yL(){gL=!0,vL(),_L(),gL=!1}var bL=class{constructor(e,t,n,r,i,a=!1){this.state=`pending`,this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=n,this.motionValue=r,this.element=i,this.isAsync=a}scheduleResolve(){this.state=`scheduled`,this.isAsync?(pL.add(this),mL||(mL=!0,eF.read(vL),eF.resolveKeyframes(_L))):(this.readKeyframes(),this.complete())}readKeyframes(){let{unresolvedKeyframes:e,name:t,element:n,motionValue:r}=this;if(e[0]===null){let i=r?.get(),a=e[e.length-1];if(i!==void 0)e[0]=i;else if(n&&t){let r=n.readValue(t,a);r!=null&&(e[0]=r)}e[0]===void 0&&(e[0]=a),r&&i===void 0&&r.set(e[0])}qI(e)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(e=!1){this.state=`complete`,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,e),pL.delete(this)}cancel(){this.state===`scheduled`&&(pL.delete(this),this.state=`pending`)}resume(){this.state===`pending`&&this.scheduleResolve()}},xL=e=>e.startsWith(`--`);function SL(e,t,n){xL(t)?e.style.setProperty(t,n):e.style[t]=n}var CL=vP(()=>window.ScrollTimeline!==void 0),wL={};function TL(e,t){let n=vP(e);return()=>wL[t]??n()}var EL=TL(()=>{try{document.createElement(`div`).animate({opacity:0}
2409,{easing:`linear(0, 1)`})}catch{return!1}return!0},`linearEasing`),DL=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,OL={linear:`linear`,ease:`ease`,easeIn:`ease-in`,easeOut:`ease-out`,easeInOut:`ease-in-out`,circIn:DL([0,.65,.55,1]),circOut:DL([.55,0,1,.45]),backIn:DL([.31,.01,.66,-.59]),backOut:DL([.33,1.53,.69,.99])};function kL(e,t){if(e)return typeof e==`function`?EL()?hI(e,t):`ease-out`:GP(e)?DL(e):Array.isArray(e)?e.map(e=>kL(e,t)||OL.easeOut):OL[e]}function AL(e,t,n,{delay:r=0,duration:i=300,repeat:a=0,repeatType:o=`loop`,ease:s=`easeOut`,times:c}={},l=void 0){let u={[t]:n};c&&(u.offset=c);let d=kL(s,i);Array.isArray(d)&&(u.easing=d),XP.value&&sF.waapi++;let f={delay:r,duration:i,easing:Array.isArray(d)?`linear`:d,fill:`both`,iterations:a+1,direction:o===`reverse`?`alternate`:`normal`};l&&(f.pseudoElement=l);let p=e.animate(u,f);return XP.value&&p.finished.finally(()=>{sF.waapi--}),p}function jL(e){return typeof e==`function`&&`applyToOptions`in e}function ML({type:e,...t}){return jL(e)&&EL()?e.applyToOptions(t):(t.duration??=300,t.ease??=`easeOut`,t)}var NL=class extends WI{constructor(e){if(super(),this.finishedTime=null,this.isStopped=!1,this.manualStartTime=null,!e)return;let{element:t,name:n,keyframes:r,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:o,onComplete:s}=e;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=e,e.type;let c=ML(e);this.animation=AL(t,n,r,c,i),c.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){let e=VI(r,this.options,o,this.speed);this.updateMotionValue?this.updateMotionValue(e):SL(t,n,e),this.animation.cancel()}s?.(),this.notifyFinished()}}play(){this.isStopped||(this.manualStartTime=null,this.animation.play(),this.state===`finished`&&this.updateFinished())}pause(){this.animation.pause()}complete(){this.animation.finish?.()}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;let{state:e}=this;e!==`idle`&&e!==`finished`&&(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){let e=this.options?.element;!this.isPseudoElement&&e?.isConnected&&this.animation.commitStyles?.()}get duration(){let e=this.animation.effect?.getComputedTiming?.().duration||0;return TP(Number(e))}get iterationDuration(){let{delay:e=0}=this.options||{};return this.duration+TP(e)}get time(){return TP(Number(this.animation.currentTime)||0)}set time(e){this.manualStartTime=null,this.finishedTime=null,this.animation.currentTime=wP(e)}get speed(){return this.animation.playbackRate}set speed(e){e<0&&(this.finishedTime=null),this.animation.playbackRate=e}get state(){return this.finishedTime===null?this.animation.playState:`f
2409inished`}get startTime(){return this.manualStartTime??Number(this.animation.startTime)}set startTime(e){this.manualStartTime=this.animation.startTime=e}attachTimeline({timeline:e,observe:t}){return this.allowFlatten&&this.animation.effect?.updateTiming({easing:`linear`}),this.animation.onfinish=null,e&&CL()?(this.animation.timeline=e,yP):t(this)}},PL={anticipate:LP,backInOut:IP,circInOut:BP};function FL(e){return e in PL}function IL(e){typeof e.ease==`string`&&FL(e.ease)&&(e.ease=PL[e.ease])}var LL=10,RL=class extends NL{constructor(e){IL(e),UI(e),super(e),e.startTime!==void 0&&(this.startTime=e.startTime),this.options=e}updateMotionValue(e){let{motionValue:t,onUpdate:n,onComplete:r,element:i,...a}=this.options;if(!t)return;if(e!==void 0){t.set(e);return}let o=new KI({...a,autoplay:!1}),s=Math.max(LL,oF.now()-this.startTime),c=pP(0,LL,s-LL);t.setWithVelocity(o.sample(Math.max(0,s-c)).value,o.sample(s).value,c),o.stop()}},zL=(e,t)=>t!==`zIndex`&&!!(typeof e==`number`||Array.isArray(e)||typeof e==`string`&&(YF.test(e)||e===`0`)&&!e.startsWith(`url(`));function BL(e){let t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function VL(e,t,n,r){let i=e[0];if(i===null)return!1;if(t===`display`||t===`visibility`)return!0;let a=e[e.length-1],o=zL(i,t),s=zL(a,t);return`${t}${i}${a}${o?a:i}`,!o||!s?!1:BL(e)||(n===`spring`||jL(n))&&r}function HL(e){e.duration=0,e.type=`keyframes`}var UL=new Set([`opacity`,`clipPath`,`filter`,`transform`]),WL=vP(()=>Object.hasOwnProperty.call(Element.prototype,`animate`));function GL(e){let{motionValue:t,name:n,repeatDelay:r,repeatType:i,damping:a,type:o}=e;if(!(t?.owner?.current instanceof HTMLElement))return!1;let{onUpdate:s,transformTemplate:c}=t.owner.getProps();return WL()&&n&&UL.has(n)&&(n!==`transform`||!c)&&!s&&!r&&i!==`mirror`&&a!==0&&o!==`inertia`}var KL=40,qL=class extends WI{constructor({autoplay:e=!0,delay:t=0,type:n=`keyframes`,repeat:r=0,repeatDelay:i=0,repeatType:a=`loop`,keyframes:o,name:s,motionValue:c,element:l,...u}){super(),this.stop=()=>{this._animation&&(this._animation.stop(),this.stopTimeline?.()),this.keyframeResolver?.cancel()},this.createdAt=oF.now();let d={autoplay:e,delay:t,type:n,repeat:r,repeatDelay:i,repeatType:a,name:s,motionValue:c,element:l,...u},f=l?.KeyframeResolver||bL;this.keyframeResolver=new f(o,(e,t,n)=>this.onKeyframesResolved(e,t,d,!n),s,c,l),this.keyframeResolver?.scheduleResolve()}onKeyframesResolved(e,t,n,r){this.keyframeResolver=void 0;let{name:i,type:a,velocity:o,delay:s,isHandoff:c,onUpdate:l}=n;this.resolvedAt=oF.now(),VL(e,i,a,o)||((mP.instantAnimations||!s)&&l?.(VI(e,n,t)),e[0]=e[e.length-1],HL(n),n.repeat=0);let u={startTime:r?this.resolvedAt&&this.resolvedAt-this.createdAt>KL?this.resolvedAt:this.createdAt:void 0,finalKeyframe:t,...n,keyframes:e},d=!c&&GL(u),f=u.motionValue?.owner?.current,p=d?new RL({...u,element:f}):new KI(u);p.finished.then(()=>{this.notifyFinished()}).catch(yP),this.pendingTimeline&&=(this.stopTimeline=p.attachTimeline(this.pendingTimeline),void 0),this._animation=p}get finished(){return this._animation?this.animation.finished:this._finished}then(e,t){return this.finished.finally(e).then(()=>{})}get animation(){return this._animation||(this.keyframeResolver?.resume(),yL()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(e){this.animation.time=e}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(e){this.animation.speed=e}get startTime(){return this.animation.startTime}attachTimeline(e){return this._animation?this.stopTimeline=this.animation.attachTimeline(e):this.pendingTimeline=e,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){this._animation&&this.animation.cancel(),this.keyframeResolver?.cancel()}};function JL(e,t,n,r=0,i=1){let a=Array.from(e).sort((e,t)=>e.sortNodePosition(t)).indexOf(t),o=e.size,s=(o-1)*r;return typeof n==`function`?n(a,o):i===1?a*r:s-a*r}var YL=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function XL(e){let t=YL.exec(e);if(!t)return[,];let[,n,r,i]=t;return[`--${n??r}`,i]}function ZL(e,t,n=1){`${e}`;let[r,i]=XL(e);if(!r)return;let a=window.getComputedStyle(t).getPropertyValue(r);if(a){let e=a.trim();return hP(e)?parseFloat(e):e}return dF(i)?ZL(i,t,n+1):i}var QL={type:`spring`,stiffness:500,damping:25,restSpeed:10},$L=e=>({type:`spring`,stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),eR={type:`keyframes`,duration:.8},tR={type:`keyframes`,ease:[.25,.1,.35,1],duration:.3},nR=(e,{keyframes:t})=>t.length>2?eR:sL.has(e)?e.startsWith(`scale`)?$L(t[1]):QL:tR,rR=e=>e!==null;function iR(e,{repeat:t,repeatType:n=`loop`},r){let i=e.filter(rR),a=t&&n!==`loop`&&t%2==1?0:i.length-1;return!a||r===void 0?i[a]:r}function aR(e,t){if(e?.inherit&&t){let{inherit:n,...r}=e;return{...t,...r}}return e}function oR(e,t){let n=e?.[t]??e?.default??e;return n===e?n:aR(n,e)}function sR({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:i,repeat:a,repeatType:
2409o,repeatDelay:s,from:c,elapsed:l,...u}){return!!Object.keys(u).length}var cR=(e,t,n,r={},i,a)=>o=>{let s=oR(r,e)||{},c=s.delay||r.delay||0,{elapsed:l=0}=r;l-=wP(c);let u={keyframes:Array.isArray(n)?n:[null,n],ease:`easeOut`,velocity:t.getVelocity(),...s,delay:-l,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{o(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:a?void 0:i};sR(s)||Object.assign(u,nR(e,u)),u.duration&&=wP(u.duration),u.repeatDelay&&=wP(u.repeatDelay),u.from!==void 0&&(u.keyframes[0]=u.from);let d=!1;if((u.type===!1||u.duration===0&&!u.repeatDelay)&&(HL(u),u.delay===0&&(d=!0)),(mP.instantAnimations||mP.skipAnimations||i?.shouldSkipAnimations)&&(d=!0,HL(u),u.delay=0),u.allowFlatten=!s.type&&!s.ease,d&&!a&&t.get()!==void 0){let e=iR(u.keyframes,s);if(e!==void 0){eF.update(()=>{u.onUpdate(e),u.onComplete()});return}}return s.isSync?new KI(u):new qL(u)};function lR(e){let t=[{},{}];return e?.values.forEach((e,n)=>{t[0][n]=e.get(),t[1][n]=e.getVelocity()}),t}function uR(e,t,n,r){if(typeof t==`function`){let[i,a]=lR(r);t=t(n===void 0?e.custom:n,i,a)}if(typeof t==`string`&&(t=e.variants&&e.variants[t]),typeof t==`function`){let[i,a]=lR(r);t=t(n===void 0?e.custom:n,i,a)}return t}function dR(e,t,n){let r=e.getProps();return uR(r,t,n===void 0?r.custom:n,e)}var fR=new Set([`width`,`height`,`top`,`left`,`right`,`bottom`,...oL]),pR=30,mR=e=>!isNaN(parseFloat(e)),hR={current:void 0},gR=class{constructor(e,t={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=e=>{let t=oF.now();if(this.updatedAt!==t&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&(this.events.change?.notify(this.current),this.dependents))for(let e of this.dependents)e.dirty()},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){this.current=e,this.updatedAt=oF.now(),this.canTrackVelocity===null&&e!==void 0&&(this.canTrackVelocity=mR(this.current))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on(`change`,e)}on(e,t){this.events[e]||(this.events[e]=new CP);let n=this.events[e].add(t);return e===`change`?()=>{n(),eF.read(()=>{this.events.change.getSize()||this.stop()})}:n}clearListeners(){for(let e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e){this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e)}setWithVelocity(e,t,n){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-n}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){this.events.change?.notify(this.current)}addDependent(e){this.dependents||=new Set,this.dependents.add(e)}removeDependent(e){this.dependents&&this.dependents.delete(e)}get(){return hR.current&&hR.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){let e=oF.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||e-this.updatedAt>pR)return 0;let t=Math.min(this.updatedAt-this.prevUpdatedAt,pR);return EP(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise(t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.dependents?.clear(),this.events.destroy?.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}};function _R(e,t){return new gR(e,t)}var vR=e=>Array.isArray(e);function yR(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,_R(n))}function bR(e){return vR(e)?e[e.length-1]||0:e}function xR(e,t){let{transitionEnd:n={},transition:r={},...i}=dR(e,t)||{};i={...i,...n};for(let t in i)yR(e,t,bR(i[t]))}var SR=e=>!!(e&&e.getVelocity);function CR(e){return!!(SR(e)&&e.add)}function wR(e,t){let n=e.getValue(`willChange`);if(CR(n))return n.add(t);if(!n&&mP.WillChange){let n=new mP.WillChange(`auto`);e.addValue(`willChange`,n),n.add(t)}}function TR(e){return e.replace(/([A-Z])/g,e=>`-${e.toLowerCase()}`)}var ER=`data-`+TR(`framerAppearId`);function DR(e){return e.props[ER]}function OR({protectedKeys:e,needsAnimating:t},n){let r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function kR(e,t,{delay:n=0,transitionOverride:r,type:i}={}){let{transition:a,transitionEnd:o,...s}=t,c=e.getDefaultTransition();a=a?aR(a,c):c;let l=a?.reduceMotion;r&&(a=r);let u=[],d=i&&e.animationState&&e.animationState.getState()[i];for(let t in s){let r=e.getValue(t,e.latestValues[t]??null),i=s[t];if(i===void 0||d&&OR(d,t))continue;let o={delay:n,...oR(a||{},t)},c=r.get();if(c!==void 0&&!r.isAnimating&&!Array.isArray(i)&&i===c&&!o.velocity)continue;let f=!1;if(window.MotionHandoffAnimation){let n=DR(e);if(n){let e=window.MotionHandoffAnimation(n,t,eF);e!==null&&(o.startTime=e,f=!0)}}wR(e,t);let p=l??e.shouldReduceMotion;r.start(cR(t,r,i,p&&fR.has(t)?{type:!1}:o,e,f));let m=r.animation;m&&u.push(m)}if(o){let t=()=>eF.update(()=>{o&&xR(e,o)});u.length?Promise.all(u).then(t):t()}return u}function AR(e,t,n={}){let r=dR(e,t,n.type===`exit`?e.presenceContext?.custom:void 0),{transition:i=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(i=n.transitionOverride);let a=r?()=>Promise.all(kR(e,r,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(r=0)=>{let{delayChildren:a=0,staggerChildren:o,staggerDirection:s}=i;return jR(e,t,r,a,o,s,n)}:()=>Promise.resolve(),{when:s}=i;
2409if(s){let[e,t]=s===`beforeChildren`?[a,o]:[o,a];return e().then(()=>t())}return Promise.all([a(),o(n.delay)])}function jR(e,t,n=0,r=0,i=0,a=1,o){let s=[];for(let c of e.variantChildren)c.notify(`AnimationStart`,t),s.push(AR(c,t,{...o,delay:n+(typeof r==`function`?0:r)+JL(e.variantChildren,c,r,i,a)}).then(()=>c.notify(`AnimationComplete`,t)));return Promise.all(s)}function MR(e,t,n={}){e.notify(`AnimationStart`,t);let r;if(Array.isArray(t)){let i=t.map(t=>AR(e,t,n));r=Promise.all(i)}else if(typeof t==`string`)r=AR(e,t,n);else{let i=typeof t==`function`?dR(e,t,n.custom):t;r=Promise.all(kR(e,i,n))}return r.then(()=>{e.notify(`AnimationComplete`,t)})}var NR={test:e=>e===`auto`,parse:e=>e},PR=e=>t=>t.test(e),FR=[mF,Q,AF,kF,MF,jF,NR],IR=e=>FR.find(PR(e));function LR(e){return typeof e==`number`?e===0:e===null||e===`none`||e===`0`||_P(e)}var RR=new Set([`brightness`,`contrast`,`saturate`,`opacity`]);function zR(e){let[t,n]=e.slice(0,-1).split(`(`);if(t===`drop-shadow`)return e;let[r]=n.match(vF)||[];if(!r)return e;let i=n.replace(r,``),a=+!!RR.has(t);return r!==n&&(a*=100),t+`(`+a+i+`)`}var BR=/\b([a-z-]*)\(.*?\)/gu,VR={...YF,getAnimatableNone:e=>{let t=e.match(BR);return t?t.map(zR).join(` `):e}},HR={...mF,transform:Math.round},UR={borderWidth:Q,borderTopWidth:Q,borderRightWidth:Q,borderBottomWidth:Q,borderLeftWidth:Q,borderRadius:Q,borderTopLeftRadius:Q,borderTopRightRadius:Q,borderBottomRightRadius:Q,borderBottomLeftRadius:Q,width:Q,maxWidth:Q,height:Q,maxHeight:Q,top:Q,right:Q,bottom:Q,left:Q,inset:Q,insetBlock:Q,insetBlockStart:Q,insetBlockEnd:Q,insetInline:Q,insetInlineStart:Q,insetInlineEnd:Q,padding:Q,paddingTop:Q,paddingRight:Q,paddingBottom:Q,paddingLeft:Q,paddingBlock:Q,paddingBlockStart:Q,paddingBlockEnd:Q,paddingInline:Q,paddingInlineStart:Q,paddingInlineEnd:Q,margin:Q,marginTop:Q,marginRight:Q,marginBottom:Q,marginLeft:Q,marginBlock:Q,marginBlockStart:Q,marginBlockEnd:Q,marginInline:Q,marginInlineStart:Q,marginInlineEnd:Q,fontSize:Q,backgroundPositionX:Q,backgroundPositionY:Q,rotate:kF,rotateX:kF,rotateY:kF,rotateZ:kF,scale:gF,scaleX:gF,scaleY:gF,scaleZ:gF,skew:kF,skewX:kF,skewY:kF,distance:Q,translateX:Q,translateY:Q,translateZ:Q,x:Q,y:Q,z:Q,perspective:Q,transformPerspective:Q,opacity:hF,originX:NF,originY:NF,originZ:Q,zIndex:HR,fillOpacity:hF,strokeOpacity:hF,numOctaves:HR},WR={...UR,color:FF,backgroundColor:FF,outlineColor:FF,fill:FF,stroke:FF,borderColor:FF,borderTopColor:FF,borderRightColor:FF,borderBottomColor:FF,borderLeftColor:FF,filter:VR,WebkitFilter:VR},GR=e=>WR[e];function KR(e,t){let n=GR(e);return n!==VR&&(n=YF),n.getAnimatableNone?n.getAnimatableNone(t):void 0}var qR=new Set([`auto`,`none`,`0`]);function JR(e,t,n){let r=0,i;for(;r<e.length&&!i;){let t=e[r];typeof t==`string`&&!qR.has(t)&&WF(t).values.length&&(i=e[r]),r++}if(i&&n)for(let r of t)e[r]=KR(n,i)}var YR=class extends bL{constructor(e,t,n,r,i){super(e,t,n,r,i,!0)}readKeyframes(){let{unresolvedKeyframes:e,element:t,name:n}=this;if(!t||!t.current)return;super.readKeyframes();for(let n=0;n<e.length;n++){let r=e[n];if(typeof r==`string`&&(r=r.trim(),dF(r))){let i=ZL(r,t.current);i!==void 0&&(e[n]=i),n===e.length-1&&(this.finalKeyframe=r)}}if(this.resolveNoneKeyframes(),!fR.has(n)||e.length!==2)return;let[r,i]=e,a=IR(r),o=IR(i);if(pF(r)!==pF(i)&&fL[n]){this.needsMeasurement=!0;return}if(a!==o){if(cL(a)&&cL(o))for(let t=0;t<e.length;t++){let n=e[t];typeof n==`string`&&(e[t]=parseFloat(n))}else fL[n]&&(this.needsMeasurement=!0)}}resolveNoneKeyframes(){let{unresolvedKeyframes:e,name:t}=this,n=[];for(let t=0;t<e.length;t++)(e[t]===null||LR(e[t]))&&n.push(t);n.length&&JR(e,n,t)}measureInitialState(){let{element:e,unresolvedKeyframes:t,name:n}=this;if(!e||!e.current)return;n===`height`&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=fL[n](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;let r=t[t.length-1];r!==void 0&&e.getValue(n,r).jump(r,!1)}measureEndState(){let{element:e,name:t,unresolvedKeyframes:n}=this;if(!e||!e.current)return;let r=e.getValue(t);r&&r.jump(this.measuredOrigin,!1);let i=n.length-1,a=n[i];n[i]=fL[t](e.measureViewportBox(),window.getComputedStyle(e.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),this.removedTransforms?.length&&this.removedTransforms.forEac
2409h(([t,n])=>{e.getValue(t).set(n)}),this.resolveNoneKeyframes()}};function XR(e,t,n){if(e==null)return[];if(e instanceof EventTarget)return[e];if(typeof e==`string`){let r=document;t&&(r=t.current);let i=n?.[e]??r.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e).filter(e=>e!=null)}var ZR=(e,t)=>t&&typeof e==`number`?t.transform(e):e;function QR(e){return gP(e)&&`offsetHeight`in e}var{schedule:$R,cancel:ez}=$P(queueMicrotask,!1),tz={x:!1,y:!1};function nz(){return tz.x||tz.y}function rz(e){return e===`x`||e===`y`?tz[e]?null:(tz[e]=!0,()=>{tz[e]=!1}):tz.x||tz.y?null:(tz.x=tz.y=!0,()=>{tz.x=tz.y=!1})}function iz(e,t){let n=XR(e),r=new AbortController;return[n,{passive:!0,...t,signal:r.signal},()=>r.abort()]}function az(e){return!(e.pointerType===`touch`||nz())}function oz(e,t,n={}){let[r,i,a]=iz(e,n);return r.forEach(e=>{let n=!1,r=!1,a,o=()=>{e.removeEventListener(`pointerleave`,u)},s=e=>{a&&=(a(e),void 0),o()},c=e=>{n=!1,window.removeEventListener(`pointerup`,c),window.removeEventListener(`pointercancel`,c),r&&(r=!1,s(e))},l=()=>{n=!0,window.addEventListener(`pointerup`,c,i),window.addEventListener(`pointercancel`,c,i)},u=e=>{if(e.pointerType!==`touch`){if(n){r=!0;return}s(e)}};e.addEventListener(`pointerenter`,n=>{if(!az(n))return;r=!1;let o=t(e,n);typeof o==`function`&&(a=o,e.addEventListener(`pointerleave`,u,i))},i),e.addEventListener(`pointerdown`,l,i)}),a}var sz=(e,t)=>t?e===t||sz(e,t.parentElement):!1,cz=e=>e.pointerType===`mouse`?typeof e.button!=`number`||e.button<=0:e.isPrimary!==!1,lz=new Set([`BUTTON`,`INPUT`,`SELECT`,`TEXTAREA`,`A`]);function uz(e){return lz.has(e.tagName)||e.isContentEditable===!0}var dz=new Set([`INPUT`,`SELECT`,`TEXTAREA`]);function fz(e){return dz.has(e.tagName)||e.isContentEditable===!0}var pz=new WeakSet;function mz(e){return t=>{t.key===`Enter`&&e(t)}}function hz(e,t){e.dispatchEvent(new PointerEvent(`pointer`+t,{isPrimary:!0,bubbles:!0}))}var gz=(e,t)=>{let n=e.currentTarget;if(!n)return;let r=mz(()=>{if(pz.has(n))return;hz(n,`down`);let e=mz(()=>{hz(n,`up`)});n.addEventListener(`keyup`,e,t),n.addEventListener(`blur`,()=>hz(n,`cancel`),t)});n.addEventListener(`keydown`,r,t),n.addEventListener(`blur`,()=>n.removeEventListener(`keydown`,r),t)};function _z(e){return cz(e)&&!nz()}var vz=new WeakSet;function yz(e,t,n={}){let[r,i,a]=iz(e,n),o=e=>{let r=e.currentTarget;if(!_z(e)||vz.has(e))return;pz.add(r),n.stopPropagation&&vz.add(e);let a=t(r,e),o=(e,t)=>{window.removeEventListener(`pointerup`,s),window.removeEventListener(`pointercancel`,c),pz.has(r)&&pz.delete(r),_z(e)&&typeof a==`function`&&a(e,{success:t})},s=e=>{o(e,r===window||r===document||n.useGlobalTarget||sz(r,e.target))},c=e=>{o(e,!1)};window.addEventListener(`pointerup`,s,i),window.addEventListener(`pointercancel`,c,i)};return r.forEach(e=>{(n.useGlobalTarget?window:e).addEventListener(`pointerdown`,o,i),QR(e)&&(e.addEventListener(`focus`,e=>gz(e,i)),!uz(e)&&!e.hasAttribute(`tabindex`)&&(e.tabIndex=0))}),a}function bz(e){return gP(e)&&`ownerSVGElement`in e}var xz=new WeakMap,Sz,Cz=(e,t,n)=>(r,i)=>i&&i[0]?i[0][e+`Size`]:bz(r)&&`getBBox`in r?r.getBBox()[t]:r[n],wz=Cz(`inline`,`width`,`offsetWidth`),Tz=Cz(`block`,`height`,`offsetHeight`);function Ez({target:e,borderBoxSize:t}){xz.get(e)?.forEach(n=>{n(e,{get width(){return wz(e,t)},get height(){return Tz(e,t)}})})}function Dz(e){e.forEach(Ez)}function Oz(){typeof ResizeObserver>`u`||(Sz=new ResizeObserver(Dz))}function kz(e,t){Sz||Oz();let n=XR(e);return n.forEach(e=>{let n=xz.get(e);n||(n=new Set,xz.set(e,n)),n.add(t),Sz?.observe(e)}),()=>{n.forEach(e=>{let n=xz.get(e);n?.delete(t),n?.size||Sz?.unobserve(e)})}}var Az=new Set,jz;function Mz(){jz=()=>{let e={get width(){return window.innerWidth},get height(){return window.innerHeight}};Az.forEach(t=>t(e))},window.addEventListener(`resize`,jz)}function Nz(e){return Az.add(e),jz||Mz(),()=>{Az.delete(e),!Az.size&&typeof jz==`function`&&(window.removeEventListener(`resize`,jz),jz=void 0)}}function Pz(e,t){return typeof e==`function`?Nz(e):kz(e,t)}function Fz(e){return bz(e)&&e.tagName===`svg`}var Iz=[...FR,FF,YF],Lz=e=>Iz.find(PR(e)),Rz=()=>({translate:0,scale:1,origin:0,originPoint:0}),zz=()=>({x:Rz(),y:Rz()}),Bz=()=>({min:0,max:0}),Vz=()=>({x:Bz(),y:Bz()}),Hz={current:null},Uz={current:!1},Wz=typeof window<`u`;function Gz(){if(Uz.current=!0,Wz){if(window.matchMedia){let e=window.matchMedia(`(prefers-reduced-motion)`),t=()=>Hz.current=e.matches;e.addEventListener(`change`,t),t()}else Hz.current=!1}}var Kz=new WeakMap;function qz(e){return typeof e==`object`&&!!e&&typeof e.start==`function`}function Jz(e){return typeof e==`string`||Array.isArray(e)}var Yz=[`animate`,`whileInView`,`whileFocus`,`whileHover`,`whileTap`,`whileDrag`,`exit`],Xz=[`initial`,...Yz];function Zz(e){return qz(e.animate)||Xz.some(t=>Jz(e[t]))}function Qz(e){return!!(Zz(e)||e.variants)}function $z(e,t,n){for(let r in t){let i=t[r],a=n[r];if(SR(i))e.addValue(r,i);else if(SR(a))e.addValue(r,_R(i,{owner:e}));else if(a!==i){if(e.hasValue(r)){let t=e.getValue(r);t.liveStyle===!0?t.jump(i):t.hasAnimated||t.set(i)}else{let t=e.getStaticValue(r);e.addValue(r,_R(t===void 0?i:t,{owner:e}))}}}for(let r in n)t[r]===void 0&&e.removeValue(r);return t}var eB=[`AnimationStart`,`AnimationComplete`,`Update`,`BeforeLayoutMeasure`,`LayoutMeasure`,`LayoutAnimationStart`,`LayoutAnimationComplete`],tB={};function nB(e){tB=e}function rB(){return tB}var iB=class{scrapeMotionValuesFromProps(e,t,n){return{}}constructor({parent:e,props:t,presenceContext:n,reducedMotionConfig:r,skipAnimations:i,blockInitialAnimation:a,visualState:o},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.shouldSkipAnimations=!1,this.values=new Map,this.KeyframeResolver=bL,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.hasBeenMounted=!1,this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify(`Update`,this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{let e=oF.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,eF.render(this.render,!1,!0))};let{latestValues:c,renderState:l}=o;this.latestValues=c,this.baseTarget={...c},this.initialValues=t.initial?{...c}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=n,this.depth=e?e.depth+1:0,this.reducedMotionConfig=r,this.skipAnimationsConfig=i,this.options=s,this.blockInitialAnimation=!!a,this.isControllingVariants=Zz(t),this.isVariantNode=Qz(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(e&&e.current);let{willChange:u,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(let e in d){let t=d[e];c[e]!==void 0&&SR(t)&&t.set(c[e])}}mount(e){if(this.hasBeenMounted)for(let e in this.initialValues)this.values.get(e)?.jump(this.initialValues[e]),this.latestValues[e]=this.initialValues[e];this.current=e,Kz.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEac
2409h((e,t)=>this.bindToMotionValue(t,e)),this.reducedMotionConfig===`never`?this.shouldReduceMotion=!1:this.reducedMotionConfig===`always`?this.shouldReduceMotion=!0:(Uz.current||Gz(),this.shouldReduceMotion=Hz.current),this.shouldSkipAnimations=this.skipAnimationsConfig??!1,this.parent?.addChild(this),this.update(this.props,this.presenceContext),this.hasBeenMounted=!0}unmount(){this.projection&&this.projection.unmount(),tF(this.notifyUpdate),tF(this.render),this.valueSubscriptions.forEach(e=>e()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent?.removeChild(this);for(let e in this.events)this.events[e].clear();for(let e in this.features){let t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}addChild(e){this.children.add(e),this.enteringChildren??=new Set,this.enteringChildren.add(e)}removeChild(e){this.children.delete(e),this.enteringChildren&&this.enteringChildren.delete(e)}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();let n=sL.has(e);n&&this.onBindTransform&&this.onBindTransform();let r=t.on(`change`,t=>{this.latestValues[e]=t,this.props.onUpdate&&eF.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()}),i;typeof window<`u`&&window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,()=>{r(),i&&i(),t.owner&&t.stop()})}sortNodePosition(e){return!this.current||!this.sortInstanceNodePosition||this.type!==e.type?0:this.sortInstanceNodePosition(this.current,e.current)}updateFeatures(){let e=`animation`;for(e in tB){let t=tB[e];if(!t)continue;let{isEnabled:n,Feature:r}=t;if(!this.features[e]&&r&&n(this.props)&&(this.features[e]=new r(this)),this.features[e]){let t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):Vz()}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<eB.length;t++){let n=eB[t];this.propEventSubscriptions[n]&&(this.propEventSubscriptions[n](),delete this.propEventSubscriptions[n]);let r=e[`on`+n];r&&(this.propEventSubscriptions[n]=this.on(n,r))}this.prevMotionValues=$z(this,this.scrapeMotionValuesFromProps(e,this.prevProps||{},this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){let t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){let n=this.values.get(e);t!==n&&(n&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);let t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let n=this.values.get(e);return n===void 0&&t!==void 0&&(n=_R(t===null?void 0:t,{owner:this}),this.addValue(e,n)),n}readValue(e,t){let n=this.latestValues[e]!==void 0||!this.current?this.latestValues[e]:this.getBaseTargetFromProps(this.props,e)??this.readValueFromInstance(this.current,e,this.options);return n!=null&&(typeof n==`string`&&(hP(n)||_P(n))?n=parseFloat(n):!Lz(n)&&YF.test(t)&&(n=KR(e,t)),this.setBaseTarget(e,SR(n)?n.get():n)),SR(n)?n.get():n}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){let{initial:t}=this.props,n;if(typeof t==`string`||typeof t==`object`){let r=uR(this.props,t,this.presenceContext?.custom);r&&(n=r[e])}if(t&&n!==void 0)return n;let r=this.getBaseTargetFromProps(this.props,e);return r!==void 0&&!SR(r)?r:this.initialValues[e]!==void 0&&n===void 0?void 0:this.baseTarget[e]}on(e,t){return this.events[e]||(this.events[e]=new CP),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}scheduleRenderMicrotask(){$R.render(this.render)}},aB=class extends iB{constructor(){super(...arguments),this.KeyframeResolver=YR}sortInstanceNodePosition(e,t){return e.compareDocumentPosition(t)&2?1:-1}getBaseTargetFromProps(e,t){let n=e.style;return n?n[t]:void 0}removeValueFromRenderState(e,{vars:t,style:n}){delete t[e],delete n[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);let{children:e}=this.props;SR(e)&&(this.childSubscription=e.on(`change`,e=>{this.current&&(this.current.textContent=`${e}`)}))}},oB=class{constructor(e){this.isMounted=!1,this.node=e}update(){}};function sB({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function cB({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function lB(e,t){if(!t)return e;let n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function uB(e){return e===void 0||e===1}function dB({scale:e,scaleX:t,scaleY:n}){return!uB(e)||!uB(t)||!uB(n)}function fB(e){return dB(e)||pB(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function pB(e){return mB(e.x)||mB(e.y)}function mB(e){return e&&e!==`0%`}
2409function hB(e,t,n){return n+t*(e-n)}function gB(e,t,n,r,i){return i!==void 0&&(e=hB(e,i,r)),hB(e,n,r)+t}function _B(e,t=0,n=1,r,i){e.min=gB(e.min,t,n,r,i),e.max=gB(e.max,t,n,r,i)}function vB(e,{x:t,y:n}){_B(e.x,t.translate,t.scale,t.originPoint),_B(e.y,n.translate,n.scale,n.originPoint)}var yB=.999999999999,bB=1.0000000000001;function xB(e,t,n,r=!1){let i=n.length;if(!i)return;t.x=t.y=1;let a,o;for(let s=0;s<i;s++){a=n[s],o=a.projectionDelta;let{visualElement:i}=a.options;i&&i.props.style&&i.props.style.display===`contents`||(r&&a.options.layoutScroll&&a.scroll&&a!==a.root&&wB(e,{x:-a.scroll.offset.x,y:-a.scroll.offset.y}),o&&(t.x*=o.x.scale,t.y*=o.y.scale,vB(e,o)),r&&fB(a.latestValues)&&wB(e,a.latestValues))}t.x<bB&&t.x>yB&&(t.x=1),t.y<bB&&t.y>yB&&(t.y=1)}function SB(e,t){e.min+=t,e.max+=t}function CB(e,t,n,r,i=.5){_B(e,t,n,$F(e.min,e.max,i),r)}function wB(e,t){CB(e.x,t.x,t.scaleX,t.scale,t.originX),CB(e.y,t.y,t.scaleY,t.scale,t.originY)}function TB(e,t){return sB(lB(e.getBoundingClientRect(),t))}function EB(e,t,n){let r=TB(e,n),{scroll:i}=t;return i&&(SB(r.x,i.offset.x),SB(r.y,i.offset.y)),r}var DB={x:`translateX`,y:`translateY`,z:`translateZ`,transformPerspective:`perspective`},OB=oL.length;function kB(e,t,n){let r=``,i=!0;for(let a=0;a<OB;a++){let o=oL[a],s=e[o];if(s===void 0)continue;let c=!0;if(typeof s==`number`)c=s===+!!o.startsWith(`scale`);else{let e=parseFloat(s);c=o.startsWith(`scale`)?e===1:e===0}if(!c||n){let e=ZR(s,UR[o]);if(!c){i=!1;let t=DB[o]||o;r+=`${t}(${e}) `}n&&(t[o]=e)}}return r=r.trim(),n?r=n(t,i?``:r):i&&(r=`none`),r}function AB(e,t,n){let{style:r,vars:i,transformOrigin:a}=e,o=!1,s=!1;for(let e in t){let n=t[e];if(sL.has(e)){o=!0;continue}if(lF(e)){i[e]=n;continue}{let t=ZR(n,UR[e]);e.startsWith(`origin`)?(s=!0,a[e]=t):r[e]=t}}if(t.transform||(o||n?r.transform=kB(t,e.transform,n):r.transform&&=`none`),s){let{originX:e=`50%`,originY:t=`50%`,originZ:n=0}=a;r.transformOrigin=`${e} ${t} ${n}`}}function jB(e,{style:t,vars:n},r,i){let a=e.style,o;for(o in t)a[o]=t[o];for(o in i?.applyProjectionStyles(a,r),n)a.setProperty(o,n[o])}function MB(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}var NB={correct:(e,t)=>{if(!t.target)return e;if(typeof e==`string`){if(Q.test(e))e=parseFloat(e);else return e}return`${MB(e,t.target.x)}% ${MB(e,t.target.y)}%`}},PB={correct:(e,{treeScale:t,projectionDelta:n})=>{let r=e,i=YF.parse(e);if(i.length>5)return r;let a=YF.createTransformer(e),o=typeof i[0]==`number`?0:1,s=n.x.scale*t.x,c=n.y.scale*t.y;i[0+o]/=s,i[1+o]/=c;let l=$F(s,c,.5);return typeof i[2+o]==`number`&&(i[2+o]/=l),typeof i[3+o]==`number`&&(i[3+o]/=l),a(i)}},FB={borderRadius:{...NB,applyTo:[`borderTopLeftRadius`,`borderTopRightRadius`,`borderBottomLeftRadius`,`borderBottomRightRadius`]},borderTopLeftRadius:NB,borderTopRightRadius:NB,borderBottomLeftRadius:NB,borderBottomRightRadius:NB,boxShadow:PB};function IB(e,{layout:t,layoutId:n}){return sL.has(e)||e.startsWith(`origin`)||(t||n!==void 0)&&(!!FB[e]||e===`opacity`)}function LB(e,t,n){let r=e.style,i=t?.style,a={};if(!r)return a;for(let t in r)(SR(r[t])||i&&SR(i[t])||IB(t,e)||n?.getValue(t)?.liveStyle!==void 0)&&(a[t]=r[t]);return a}function RB(e){return window.getComputedStyle(e)}var zB=class extends aB{constructor(){super(...arguments),this.type=`html`,this.renderInstance=jB}readValueFromInstance(e,t){if(sL.has(t))return this.projection?.isProjecting?nL(t):iL(e,t);{let n=RB(e),r=(lF(t)?n.getPropertyValue(t):n[t])||0;return typeof r==`string`?r.trim():r}}measureInstanceViewportBox(e,{transformPagePoint:t}){return TB(e,t)}build(e,t,n){AB(e,t,n.transformTemplate)}scrapeMotionValuesFromProps(e,t,n){return LB(e,t,n)}},BB={offset:`stroke-dashoffset`,array:`stroke-dasharray`},VB={offset:`strokeDashoffset`,array:`strokeDasharray`};function HB(e,t,n=1,r=0,i=!0){e.pathLength=1;let a=i?BB:VB;e[a.offset]=`${-r}`,e[a.array]=`${t} ${n}`}var UB=[`offsetDistance`,`offsetPath`,`offsetRotate`,`offsetAnchor`];function WB(e,{attrX:t,attrY:n,attrScale:r,pathLength:i,pathSpacing:a=1,pathOffset:o=0,...s},c,l,u){if(AB(e,s,l),c){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};let{attrs:d,style:f}=e;d.transform&&(f.transform=d.transform,delete d.transform),(f.transform||d.transformOrigin)&&(f.transformOrigin=d.transformOrigin??`50% 50%`,delete d.transformOrigin),f.transform&&(f.transformBox=u?.transformBox??`fill-box`,delete d.transformBox);for(let e of UB)d[e]!==void 0&&(f[e]=d[e],delete d[e]);t!==void 0&&(d.x=t),n!==void 0&&(d.y=n),r!==void 0&&(d.scale=r),i!==void 0&&HB(d,i,a,o,!1)}var GB=new Set([`baseFrequency`,`diffuseConstant`,`kernelMatrix`,`kernelUnitLength`,`keySplines`,`keyTimes`,`limitingConeAngle`,`markerHeight`,`markerWidth`,`numOctaves`,`targetX`,`targetY`,`surfaceScale`,`specularConstant`,`specularExponent`,`stdDeviation`,`tableValues`,`viewBox`,`gradientTransform`,`pathLength`,`startOffset`,`textLength`,`lengthAdjust`]),KB=e=>typeof e==`string`&&e.toLowerCase()===`svg`;function qB(e,t,n,r){jB(e,t,void 0,r);for(let n in t.attrs)e.setAttribute(GB.has(n)?n:TR(n),t.attrs[n])}
2409function JB(e,t,n){let r=LB(e,t,n);for(let n in e)if(SR(e[n])||SR(t[n])){let t=oL.indexOf(n)===-1?n:`attr`+n.charAt(0).toUpperCase()+n.substring(1);r[t]=e[n]}return r}var YB=class extends aB{constructor(){super(...arguments),this.type=`svg`,this.isSVGTag=!1,this.measureInstanceViewportBox=Vz}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(sL.has(t)){let e=GR(t);return e&&e.default||0}return t=GB.has(t)?t:TR(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,n){return JB(e,t,n)}build(e,t,n){WB(e,t,this.isSVGTag,n.transformTemplate,n.style)}renderInstance(e,t,n,r){qB(e,t,n,r)}mount(e){this.isSVGTag=KB(e.tagName),super.mount(e)}},XB=Xz.length;function ZB(e){if(!e)return;if(!e.isControllingVariants){let t=e.parent&&ZB(e.parent)||{};return e.props.initial!==void 0&&(t.initial=e.props.initial),t}let t={};for(let n=0;n<XB;n++){let r=Xz[n],i=e.props[r];(Jz(i)||i===!1)&&(t[r]=i)}return t}function QB(e,t){if(!Array.isArray(t))return!1;let n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}var $B=[...Yz].reverse(),eV=Yz.length;function tV(e){return t=>Promise.all(t.map(({animation:t,options:n})=>MR(e,t,n)))}function nV(e){let t=tV(e),n=aV(),r=!0,i=t=>(n,r)=>{let i=dR(e,r,t===`exit`?e.presenceContext?.custom:void 0);if(i){let{transition:e,transitionEnd:t,...r}=i;n={...n,...r,...t}}return n};function a(n){t=n(e)}function o(a){let{props:o}=e,s=ZB(e.parent)||{},c=[],l=new Set,u={},d=1/0;for(let t=0;t<eV;t++){let f=$B[t],p=n[f],m=o[f]===void 0?s[f]:o[f],h=Jz(m),g=f===a?p.isActive:null;g===!1&&(d=t);let _=m===s[f]&&m!==o[f]&&h;if(_&&r&&e.manuallyAnimateOnMount&&(_=!1),p.protectedKeys={...u},!p.isActive&&g===null||!m&&!p.prevProp||qz(m)||typeof m==`boolean`)continue;let v=rV(p.prevProp,m),y=v||f===a&&p.isActive&&!_&&h||t>d&&h,b=!1,x=Array.isArray(m)?m:[m],S=x.reduce(i(f),{});g===!1&&(S={});let{prevResolvedValues:C={}}=p,w={...C,...S},T=t=>{y=!0,l.has(t)&&(b=!0,l.delete(t)),p.needsAnimating[t]=!0;let n=e.getValue(t);n&&(n.liveStyle=!1)};for(let e in w){let t=S[e],n=C[e];if(u.hasOwnProperty(e))continue;let r=!1;r=vR(t)&&vR(n)?!QB(t,n):t!==n,r?t==null?l.add(e):T(e):t!==void 0&&l.has(e)?T(e):p.protectedKeys[e]=!0}p.prevProp=m,p.prevResolvedValues=S,p.isActive&&(u={...u,...S}),r&&e.blockInitialAnimation&&(y=!1);let E=_&&v;y&&(!E||b)&&c.push(...x.map(t=>{let n={type:f};if(typeof t==`string`&&r&&!E&&e.manuallyAnimateOnMount&&e.parent){let{parent:r}=e,i=dR(r,t);if(r.enteringChildren&&i){let{delayChildren:t}=i.transition||{};n.delay=JL(r.enteringChildren,e,t)}}return{animation:t,options:n}}))}if(l.size){let t={};if(typeof o.initial!=`boolean`){let n=dR(e,Array.isArray(o.initial)?o.initial[0]:o.initial);n&&n.transition&&(t.transition=n.transition)}l.forEach(n=>{let r=e.getBaseTarget(n),i=e.getValue(n);i&&(i.liveStyle=!0),t[n]=r??null}),c.push({animation:t})}let f=!!c.length;return r&&(o.initial===!1||o.initial===o.animate)&&!e.manuallyAnimateOnMount&&(f=!1),r=!1,f?t(c):Promise.resolve()}function s(t,r){if(n[t].isActive===r)return Promise.resolve();e.variantChildren?.forEach(e=>e.animationState?.setActive(t,r)),n[t].isActive=r;let i=o(t);for(let e in n)n[e].protectedKeys={};return i}return{animateChanges:o,setActive:s,setAnimateFunction:a,getState:()=>n,reset:()=>{n=aV()}}}function rV(e,t){return typeof t==`string`?t!==e:Array.isArray(t)?!QB(t,e):!1}function iV(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function aV(){return{animate:iV(!0),whileInView:iV(),whileHover:iV(),whileTap:iV(),whileDrag:iV(),whileFocus:iV(),exit:iV()}}function oV(e,t){e.min=t.min,e.max=t.max}function sV(e,t){oV(e.x,t.x),oV(e.y,t.y)}function cV(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}var lV=.9999,uV=1.0001,dV=-.01,fV=.01;function pV(e){return e.max-e.min}function mV(e,t,n){return Math.abs(e-t)<=n}function hV(e,t,n,r=.5){e.origin=r,e.originPoint=$F(t.min,t.max,e.origin),e.scale=pV(n)/pV(t),e.translate=$F(n.min,n.max,e.origin)-e.originPoint,(e.scale>=lV&&e.scale<=uV||isNaN(e.scale))&&(e.scale=1),(e.translate>=dV&&e.translate<=fV||isNaN(e.translate))&&(e.translate=0)}function gV(e,t,n,r){hV(e.x,t.x,n.x,r?r.originX:void 0),hV(e.y,t.y,n.y,r?r.originY:void 0)}function _V(e,t,n){e.min=n.min+t.min,e.max=e.min+pV(t)}function vV(e,t,n){_V(e.x,t.x,n.x),_V(e.y,t.y,n.y)}function yV(e,t,n){e.min=t.min-n.min,e.max=e.min+pV(t)}
2409function bV(e,t,n){yV(e.x,t.x,n.x),yV(e.y,t.y,n.y)}function xV(e,t,n,r,i){return e-=t,e=hB(e,1/n,r),i!==void 0&&(e=hB(e,1/i,r)),e}function SV(e,t=0,n=1,r=.5,i,a=e,o=e){if(AF.test(t)&&(t=parseFloat(t),t=$F(o.min,o.max,t/100)-o.min),typeof t!=`number`)return;let s=$F(a.min,a.max,r);e===a&&(s-=t),e.min=xV(e.min,t,n,s,i),e.max=xV(e.max,t,n,s,i)}function CV(e,t,[n,r,i],a,o){SV(e,t[n],t[r],t[i],t.scale,a,o)}var wV=[`x`,`scaleX`,`originX`],TV=[`y`,`scaleY`,`originY`];function EV(e,t,n,r){CV(e.x,t,wV,n?n.x:void 0,r?r.x:void 0),CV(e.y,t,TV,n?n.y:void 0,r?r.y:void 0)}function DV(e){return e.translate===0&&e.scale===1}function OV(e){return DV(e.x)&&DV(e.y)}function kV(e,t){return e.min===t.min&&e.max===t.max}function AV(e,t){return kV(e.x,t.x)&&kV(e.y,t.y)}function jV(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function MV(e,t){return jV(e.x,t.x)&&jV(e.y,t.y)}function NV(e){return pV(e.x)/pV(e.y)}function PV(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}function FV(e){return[e(`x`),e(`y`)]}function IV(e,t,n){let r=``,i=e.x.translate/t.x,a=e.y.translate/t.y,o=n?.z||0;if((i||a||o)&&(r=`translate3d(${i}px, ${a}px, ${o}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){let{transformPerspective:e,rotate:t,rotateX:i,rotateY:a,skewX:o,skewY:s}=n;e&&(r=`perspective(${e}px) ${r}`),t&&(r+=`rotate(${t}deg) `),i&&(r+=`rotateX(${i}deg) `),a&&(r+=`rotateY(${a}deg) `),o&&(r+=`skewX(${o}deg) `),s&&(r+=`skewY(${s}deg) `)}let s=e.x.scale*t.x,c=e.y.scale*t.y;return(s!==1||c!==1)&&(r+=`scale(${s}, ${c})`),r||`none`}var LV=[`TopLeft`,`TopRight`,`BottomLeft`,`BottomRight`],RV=LV.length,zV=e=>typeof e==`string`?parseFloat(e):e,BV=e=>typeof e==`number`||Q.test(e);function VV(e,t,n,r,i,a){i?(e.opacity=$F(0,n.opacity??1,UV(r)),e.opacityExit=$F(t.opacity??1,0,WV(r))):a&&(e.opacity=$F(t.opacity??1,n.opacity??1,r));for(let i=0;i<RV;i++){let a=`border${LV[i]}Radius`,o=HV(t,a),s=HV(n,a);(o!==void 0||s!==void 0)&&(o||=0,s||=0,o===0||s===0||BV(o)===BV(s)?(e[a]=Math.max($F(zV(o),zV(s),r),0),(AF.test(s)||AF.test(o))&&(e[a]+=`%`)):e[a]=s)}(t.rotate||n.rotate)&&(e.rotate=$F(t.rotate||0,n.rotate||0,r))}function HV(e,t){return e[t]===void 0?e.borderRadius:e[t]}var UV=GV(0,.5,zP),WV=GV(.5,.95,yP);function GV(e,t,n){return r=>r<e?0:r>t?1:n(SP(e,t,r))}function KV(e,t,n){let r=SR(e)?e:_R(e);return r.start(cR(``,r,t,n)),r.animation}function qV(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}var JV=(e,t)=>e.depth-t.depth,YV=class{constructor(){this.children=[],this.isDirty=!1}add(e){dP(this.children,e),this.isDirty=!0}remove(e){fP(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(JV),this.isDirty=!1,this.children.forEach(e)}};function XV(e,t){let n=oF.now(),r=({timestamp:i})=>{let a=i-n;a>=t&&(tF(r),e(a-t))};return eF.setup(r,!0),()=>tF(r)}function ZV(e){return SR(e)?e.get():e}var QV=class{constructor(){this.members=[]}add(e){dP(this.members,e),e.scheduleRender()}remove(e){if(fP(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){let e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){let t=this.members.findIndex(t=>e===t);if(t===0)return!1;let n;for(let e=t;e>=0;e--){let t=this.members[e];if(t.isPresent!==!1){n=t;break}}return n?(this.promote(n),!0):!1}promote(e,t){let n=this.lead;if(e!==n&&(this.prevLead=n,this.lead=e,e.show(),n)){n.instance&&n.scheduleRender(),e.scheduleRender();let r=n.options.layoutDependency,i=e.options.layoutDependency;(r===void 0||i===void 0||r!==i)&&(e.resumeFrom=n,t&&(e.resumeFrom.preserveOpacity=!0),n.snapshot&&(e.snapshot=n.snapshot,e.snapshot.latestValues=n.animationValues||n.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0));let{crossfade:a}=e.options;a===!1&&n.hide()}}exitAnimationComplete(){this.members.forEach(e=>{let{options:t,resumingFrom:n}=e;t.onExitComplete&&t.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()})}scheduleRender(){this.members.forEach(e=>{e.instance&&e.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}},$V={hasAnimatedSinceResize:!0,hasEverUpdated:!1},eH={nodes:0,calculatedTargetDeltas:0,calculatedProjections:0},tH=[``,`X`,`Y`,`Z`],nH=1e3,rH=0;function iH(e,t,n,r){let{latestValues:i}=t;i[e]&&(n[e]=i[e],t.setStaticValue(e,0),r&&(r[e]=0))}function aH(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;let{visualElement:t}=e.options;if(!t)return;let n=DR(t);if(window.MotionHasOptimisedAnimation(n,`transform`)){let{layout:t,layoutId:r}=e.options;window.MotionCancelOptimisedAnimation(n,`transform`,eF,!(t||r))}let{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&aH(r)}function oH({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:i}){return class{constructor(e={},n=t?.()){this.id=rH++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,XP.value&&(eH.nodes=eH.calculatedTargetDeltas=eH.calculatedProjections=0),this.nodes.forEac
2409h(lH),this.nodes.forEach(gH),this.nodes.forEach(_H),this.nodes.forEach(uH),XP.addProjectionMetrics&&XP.addProjectionMetrics(eH)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=n?n.root||n:this,this.path=n?[...n.path,n]:[],this.parent=n,this.depth=n?n.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new YV)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new CP),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){let n=this.eventHandlers.get(e);n&&n.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t){if(this.instance)return;this.isSVG=bz(t)&&!Fz(t),this.instance=t;let{layoutId:n,layout:r,visualElement:i}=this.options;if(i&&!i.current&&i.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(r||n)&&(this.isLayoutDirty=!0),e){let n,r=0,i=()=>this.root.updateBlockedByResize=!1;eF.read(()=>{r=window.innerWidth}),e(t,()=>{let e=window.innerWidth;e!==r&&(r=e,this.root.updateBlockedByResize=!0,n&&n(),n=XV(i,250),$V.hasAnimatedSinceResize&&($V.hasAnimatedSinceResize=!1,this.nodes.forEach(hH)))})}n&&this.root.registerSharedNode(n,this),this.options.animate!==!1&&i&&(n||r)&&this.addEventListener(`didUpdate`,({delta:e,hasLayoutChanged:t,hasRelativeLayoutChanged:n,layout:r})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}let a=this.options.transition||i.getDefaultTransition()||wH,{onLayoutAnimationStart:o,onLayoutAnimationComplete:s}=i.getProps(),c=!this.targetLayout||!MV(this.targetLayout,r),l=!t&&n;if(this.options.layoutRoot||this.resumeFrom||l||t&&(c||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);let t={...oR(a,`layout`),onPlay:o,onComplete:s};(i.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t),this.setAnimationOrigin(e,l)}else t||hH(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=r})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);let e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),tF(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(vH),this.animationId++)}getTransformTemplate(){let{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&aH(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){let t=this.path[e];t.shouldResetTransform=!0,t.updateScroll(`snapshot`),t.options.layoutRoot&&t.willUpdate(!1)}let{layoutId:t,layout:n}=this.options;if(t===void 0&&!n)return;let r=this.getTransformTemplate();this.prevTransformTemplateValue=r?r(this.latestValues,``):void 0,this.updateSnapshot(),e&&this.notifyListeners(`willUpdate`)}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(fH);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(pH);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(mH),this.nodes.forEach(sH),this.nodes.forEach(cH)):this.nodes.forEach(pH),this.clearAllSnapshots();let e=oF.now();nF.delta=pP(0,1e3/60,e-nF.timestamp),nF.timestamp=e,nF.isProcessing=!0,rF.update.process(nF),rF.preRender.process(nF),rF.render.process(nF),nF.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,$R.read(this.scheduleUpdate))}
2409clearAllSnapshots(){this.nodes.forEach(dH),this.sharedNodes.forEach(yH)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,eF.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){eF.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!pV(this.snapshot.measuredBox.x)&&!pV(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();let e=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=Vz(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners(`measure`,this.layout.layoutBox);let{visualElement:t}=this.options;t&&t.notify(`LayoutMeasure`,this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e=`measure`){let t=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t&&this.instance){let t=r(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!i)return;let e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!OV(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,``):void 0,a=r!==this.prevTransformTemplateValue;e&&this.instance&&(t||fB(this.latestValues)||a)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){let t=this.measurePageBox(),n=this.removeElementScroll(t);return e&&(n=this.removeTransform(n)),OH(n),{animationId:this.root.animationId,measuredBox:t,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){let{visualElement:e}=this.options;if(!e)return Vz();let t=e.measureViewportBox();if(!(this.scroll?.wasRoot||this.path.some(AH))){let{scroll:e}=this.root;e&&(SB(t.x,e.offset.x),SB(t.y,e.offset.y))}return t}removeElementScroll(e){let t=Vz();if(sV(t,e),this.scroll?.wasRoot)return t;for(let n=0;n<this.path.length;n++){let r=this.path[n],{scroll:i,options:a}=r;r!==this.root&&i&&a.layoutScroll&&(i.wasRoot&&sV(t,e),SB(t.x,i.offset.x),SB(t.y,i.offset.y))}return t}applyTransform(e,t=!1){let n=Vz();sV(n,e);for(let e=0;e<this.path.length;e++){let r=this.path[e];!t&&r.options.layoutScroll&&r.scroll&&r!==r.root&&wB(n,{x:-r.scroll.offset.x,y:-r.scroll.offset.y}),fB(r.latestValues)&&wB(n,r.latestValues)}return fB(this.latestValues)&&wB(n,this.latestValues),n}removeTransform(e){let t=Vz();sV(t,e);for(let e=0;e<this.path.length;e++){let n=this.path[e];if(!n.instance||!fB(n.latestValues))continue;dB(n.latestValues)&&n.updateSnapshot();let r=Vz();sV(r,n.measurePageBox()),EV(t,n.latestValues,n.snapshot?n.snapshot.layoutBox:void 0,r)}return fB(this.latestValues)&&EV(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:e.crossfade===void 0||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==nF.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){let t=this.getLead();this.isProjectionDirty||=t.isProjectionDirty,this.isTransformDirty||=t.isTransformDirty,this.isSharedProjectionDirty||=t.isSharedProjectionDirty;let n=!!this.resumingFrom||this!==t;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||this.parent?.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;let{layout:r,layoutId:i}=this.options;
2409if(!this.layout||!(r||i))return;this.resolvedRelativeTargetAt=nF.timestamp;let a=this.getClosestProjectingParent();a&&this.linkedParentVersion!==a.layoutVersion&&!a.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(a&&a.layout?this.createRelativeTarget(a,this.layout.layoutBox,a.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=Vz(),this.targetWithTransforms=Vz()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),vV(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):sV(this.target,this.layout.layoutBox),vB(this.target,this.targetDelta)):sV(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,a&&!!a.resumingFrom==!!this.resumingFrom&&!a.options.layoutScroll&&a.target&&this.animationProgress!==1?this.createRelativeTarget(a,this.target,a.target):this.relativeParent=this.relativeTarget=void 0),XP.value&&eH.calculatedTargetDeltas++)}getClosestProjectingParent(){if(!(!this.parent||dB(this.parent.latestValues)||pB(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(e,t,n){this.relativeParent=e,this.linkedParentVersion=e.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=Vz(),this.relativeTargetOrigin=Vz(),bV(this.relativeTargetOrigin,t,n),sV(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){let e=this.getLead(),t=!!this.resumingFrom||this!==e,n=!0;if((this.isProjectionDirty||this.parent?.isProjectionDirty)&&(n=!1),t&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===nF.timestamp&&(n=!1),n)return;let{layout:r,layoutId:i}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(r||i))return;sV(this.layoutCorrected,this.layout.layoutBox);let a=this.treeScale.x,o=this.treeScale.y;xB(this.layoutCorrected,this.treeScale,this.path,t),e.layout&&!e.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(e.target=e.layout.layoutBox,e.targetWithTransforms=Vz());let{target:s}=e;if(!s){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(cV(this.prevProjectionDelta.x,this.projectionDelta.x),cV(this.prevProjectionDelta.y,this.projectionDelta.y)),gV(this.projectionDelta,this.layoutCorrected,s,this.latestValues),(this.treeScale.x!==a||this.treeScale.y!==o||!PV(this.projectionDelta.x,this.prevProjectionDelta.x)||!PV(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners(`projectionUpdate`,s)),XP.value&&eH.calculatedProjections++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){if(this.options.visualElement?.scheduleRender(),e){let e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=zz(),this.projectionDelta=zz(),this.projectionDeltaWithTransform=zz()}setAnimationOrigin(e,t=!1){let n=this.snapshot,r=n?n.latestValues:{},i={...this.latestValues},a=zz();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;let o=Vz(),s=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),c=this.getStack(),l=!c||c.members.length<=1,u=!!(s&&!l&&this.options.crossfade===!0&&!this.path.some(CH));this.animationProgress=0;let d;this.mixTargetDelta=t=>{let n=t/1e3;bH(a.x,e.x,n),bH(a.y,e.y,n),this.setTargetDelta(a),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(bV(o,this.layout.layoutBox,this.relativeParent.layout.layoutBox),SH(this.relativeTarget,this.relativeTargetOrigin,o,n),d&&AV(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||=Vz(),sV(d,this.relativeTarget)),s&&(this.animationValues=i,VV(i,r,this.latestValues,n,u,l)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=n},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners(`animationStart`),this.currentAnimation?.stop(),this.resumingFrom?.currentAnimation?.stop(),this.pendingAnimation&&=(tF(this.pendingAnimation),void 0),this.pendingAnimation=eF.update(()=>
2409{$V.hasAnimatedSinceResize=!0,sF.layout++,this.motionValue||=_R(0),this.currentAnimation=KV(this.motionValue,[0,1e3],{...e,velocity:0,isSync:!0,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onStop:()=>{sF.layout--},onComplete:()=>{sF.layout--,e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);let e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners(`animationComplete`)}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(nH),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){let e=this.getLead(),{targetWithTransforms:t,target:n,layout:r,latestValues:i}=e;if(!(!t||!n||!r)){if(this!==e&&this.layout&&r&&kH(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||Vz();let t=pV(this.layout.layoutBox.x);n.x.min=e.target.x.min,n.x.max=n.x.min+t;let r=pV(this.layout.layoutBox.y);n.y.min=e.target.y.min,n.y.max=n.y.min+r}sV(t,n),wB(t,i),gV(this.projectionDeltaWithTransform,this.layoutCorrected,t,i)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new QV),this.sharedNodes.get(e).add(t);let n=t.options.initialPromotionConfig;t.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(t):void 0})}isLead(){let e=this.getStack();return!e||e.lead===this}getLead(){let{layoutId:e}=this.options;return e&&this.getStack()?.lead||this}getPrevLead(){let{layoutId:e}=this.options;return e?this.getStack()?.prevLead:void 0}getStack(){let{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:n}={}){let r=this.getStack();r&&r.promote(this,n),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){let e=this.getStack();return e?e.relegate(this):!1}resetSkewAndRotation(){let{visualElement:e}=this.options;if(!e)return;let t=!1,{latestValues:n}=e;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(t=!0),!t)return;let r={};n.z&&iH(`z`,e,r,this.animationValues);for(let t=0;t<tH.length;t++)iH(`rotate${tH[t]}`,e,r,this.animationValues),iH(`skew${tH[t]}`,e,r,this.animationValues);e.render();for(let t in r)e.setStaticValue(t,r[t]),this.animationValues&&(this.animationValues[t]=r[t]);e.scheduleRender()}applyProjectionStyles(e,t){if(!this.instance||this.isSVG)return;if(!this.isVisible){e.visibility=`hidden`;return}let n=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,e.visibility=``,e.opacity=``,e.pointerEvents=ZV(t?.pointerEvents)||``,e.transform=n?n(this.latestValues,``):`none`;return}let r=this.getLead();if(!this.projectionDelta||!this.layout||!r.target){this.options.layoutId&&(e.opacity=this.latestValues.opacity===void 0?1:this.latestValues.opacity,e.pointerEvents=ZV(t?.pointerEvents)||``),this.hasProjected&&!fB(this.latestValues)&&(e.transform=n?n({},``):`none`,this.hasProjected=!1);return}e.visibility=``;let i=r.animationValues||r.latestValues;this.applyTransformsToTarget();let a=IV(this.projectionDeltaWithTransform,this.treeScale,i);n&&(a=n(i,a)),e.transform=a;let{x:o,y:s}=this.projectionDelta;e.transformOrigin=`${o.origin*100}% ${s.origin*100}% 0`,e.opacity=r.animationValues?r===this?i.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:i.opacityExit:r===this?i.opacity===void 0?``:i.opacity:i.opacityExit===void 0?0:i.opacityExit;for(let t in FB){if(i[t]===void 0)continue;let{correct:n,applyTo:o,isCSSVariable:s}=FB[t],c=a===`none`?i[t]:n(i[t],r);if(o){let t=o.length;for(let n=0;n<t;n++)e[o[n]]=c}else s?this.options.visualElement.renderState.vars[t]=c:e[t]=c}this.options.layoutId&&(e.pointerEvents=r===this?ZV(t?.pointerEvents)||``:`none`)}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}
2409resetTree(){this.root.nodes.forEach(e=>e.currentAnimation?.stop()),this.root.nodes.forEach(fH),this.root.sharedNodes.clear()}}}function sH(e){e.updateLayout()}function cH(e){let t=e.resumeFrom?.snapshot||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners(`didUpdate`)){let{layoutBox:n,measuredBox:r}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i===`size`?FV(e=>{let r=a?t.measuredBox[e]:t.layoutBox[e],i=pV(r);r.min=n[e].min,r.max=r.min+i}):kH(i,t.layoutBox,n)&&FV(r=>{let i=a?t.measuredBox[r]:t.layoutBox[r],o=pV(n[r]);i.max=i.min+o,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[r].max=e.relativeTarget[r].min+o)});let o=zz();gV(o,n,t.layoutBox);let s=zz();a?gV(s,e.applyTransform(r,!0),t.measuredBox):gV(s,n,t.layoutBox);let c=!OV(o),l=!1;if(!e.resumeFrom){let r=e.getClosestProjectingParent();if(r&&!r.resumeFrom){let{snapshot:i,layout:a}=r;if(i&&a){let o=Vz();bV(o,t.layoutBox,i.layoutBox);let s=Vz();bV(s,n,a.layoutBox),MV(o,s)||(l=!0),r.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=o,e.relativeParent=r)}}}e.notifyListeners(`didUpdate`,{layout:n,snapshot:t,delta:s,layoutDelta:o,hasLayoutChanged:c,hasRelativeLayoutChanged:l})}else if(e.isLead()){let{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function lH(e){XP.value&&eH.nodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty),e.isTransformDirty||=e.parent.isTransformDirty)}function uH(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function dH(e){e.clearSnapshot()}function fH(e){e.clearMeasurements()}function pH(e){e.isLayoutDirty=!1}function mH(e){let{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify(`BeforeLayoutMeasure`),e.resetTransform()}function hH(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function gH(e){e.resolveTargetDelta()}function _H(e){e.calcProjection()}function vH(e){e.resetSkewAndRotation()}function yH(e){e.removeLeadSnapshot()}function bH(e,t,n){e.translate=$F(t.translate,0,n),e.scale=$F(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function xH(e,t,n,r){e.min=$F(t.min,n.min,r),e.max=$F(t.max,n.max,r)}function SH(e,t,n,r){xH(e.x,t.x,n.x,r),xH(e.y,t.y,n.y,r)}function CH(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}var wH={duration:.45,ease:[.4,0,.1,1]},TH=e=>typeof navigator<`u`&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),EH=TH(`applewebkit/`)&&!TH(`chrome/`)?Math.round:yP;function DH(e){e.min=EH(e.min),e.max=EH(e.max)}function OH(e){DH(e.x),DH(e.y)}function kH(e,t,n){return e===`position`||e===`preserve-aspect`&&!mV(NV(t),NV(n),.2)}function AH(e){return e!==e.root&&e.scroll?.wasRoot}var jH=oH({attachResizeListener:(e,t)=>qV(e,`resize`,t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body?.scrollLeft||0,y:document.documentElement.scrollTop||document.body?.scrollTop||0}),checkIsScrollRoot:()=>!0}),MH={current:void 0},NH=oH({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!MH.current){let e=new jH({});e.mount(window),e.setOptions({layoutScroll:!0}),MH.current=e}return MH.current},resetTransform:(e,t)=>{e.style.transform=t===void 0?`none`:t},checkIsScrollRoot:e=>window.getComputedStyle(e).position===`fixed`}),PH=(0,y.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:`never`});function FH(e,t){if(typeof e==`function`)return e(t);e!=null&&(e.current=t)}function IH(...e){return t=>{let n=!1,r=e.map(e=>{let r=FH(e,t);return!n&&typeof r==`function`&&(n=!0),r});if(n)return()=>{for(let t=0;t<r.length;t++){let n=r[t];typeof n==`function`?n():FH(e[t],null)}}}}function LH(...e){return y.useCallback(IH(...e),e)}var RH=class extends y.Component{getSnapshotBeforeUpdate(e){let t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent&&this.props.pop!==!1){let e=t.offsetParent,n=QR(e)&&e.offsetWidth||0,r=QR(e)&&e.offsetHeight||0,i=this.props.sizeRef.current;i.height=t.offsetHeight||0,i.width=t.offsetWidth||0,i.top=t.offsetTop,i.left=t.offsetLeft,i.right=n-i.width-i.left,i.bottom=r-i.height-i.top}return null}componentDidUpdate(){}render(){return this.props.children}};function zH({children:e,isPresent:t,anchorX:n,anchorY:r,root:i,pop:a}){let o=(0,y.useId)(),s=(0,y.useRef)(null),c=(0,y.useRef)({width:0,height:0,top:0,left:0,right:0,bottom:0}),{nonce:l}=(0,y.useContext)(PH),u=LH(s,e.props?.ref??e?.ref);return(0,y.useInsertionEffect)(()=>{let{width:e,height:u,top:d,left:f,right:p,bottom:m}=c.current;if(t||a===!1||!s.current||!e||!u)return;let h=n===`left`?`left: ${f}`:`right: ${p}`,g=r===`bottom`?`bottom: ${m}`:`top: ${d}`;s.current.dataset.motionPopId=o;let _=document.createElement(`style`);l&&(_.nonce=l);let v=i??document.head;return v.appendChild(_),_.sheet&&_.sheet.insertRule(`
2410          [data-motion-pop-id="${o}"] {
2411            position: absolute !important;
2412            width: ${e}px !important;
2413            height: ${u}px !important;
2414            ${h}px !important;
2415            ${g}px !important;
2416          }
2417        `),()=>{v.contains(_)&&v.removeChild(_)}},[t]),(0,Y.jsx)(RH,{isPresent:t,childRef:s,sizeRef:c,pop:a,children:a===!1?e:y.cloneElement(e,{ref:u})})}var BH=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:i,presenceAffectsLayout:a,mode:o,anchorX:s,anchorY:c,root:l})=>{let u=sP(VH),d=(0,y.useId)(),f=!0,p=(0,y.useMemo)(()=>(f=!1,{id:d,initial:t,isPresent:n,custom:i,onExitComplete:e=>{u.set(e,!0);for(let e of u.values())if(!e)return;r&&r()},register:e=>(u.set(e,!1),()=>u.delete(e))}),[n,u,r]);return a&&f&&(p={...p}),(0,y.useMemo)(()=>{u.forEach((e,t)=>u.set(t,!1))},[n]),y.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),e=(0,Y.jsx)(zH,{pop:o===`popLayout`,isPresent:n,anchorX:s,anchorY:c,root:l,children:e}),(0,Y.jsx)(uP.Provider,{value:p,children:e})};function VH(){return new Map}function HH(e=!0){let t=(0,y.useContext)(uP);if(t===null)return[!0,null];let{isPresent:n,onExitComplete:r,register:i}=t,a=(0,y.useId)();(0,y.useEffect)(()=>
2417{if(e)return i(a)},[e]);let o=(0,y.useCallback)(()=>e&&r&&r(a),[a,r,e]);return!n&&r?[!1,o]:[!0]}var UH=e=>e.key||``;function WH(e){let t=[];return y.Children.forEach(e,e=>{(0,y.isValidElement)(e)&&t.push(e)}),t}var GH=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:i=!0,mode:a=`sync`,propagate:o=!1,anchorX:s=`left`,anchorY:c=`top`,root:l})=>{let[u,d]=HH(o),f=(0,y.useMemo)(()=>WH(e),[e]),p=o&&!u?[]:f.map(UH),m=(0,y.useRef)(!0),h=(0,y.useRef)(f),g=sP(()=>new Map),_=(0,y.useRef)(new Set),[v,b]=(0,y.useState)(f),[x,S]=(0,y.useState)(f);lP(()=>{m.current=!1,h.current=f;for(let e=0;e<x.length;e++){let t=UH(x[e]);p.includes(t)?(g.delete(t),_.current.delete(t)):g.get(t)!==!0&&g.set(t,!1)}},[x,p.length,p.join(`-`)]);let C=[];if(f!==v){let e=[...f];for(let t=0;t<x.length;t++){let n=x[t],r=UH(n);p.includes(r)||(e.splice(t,0,n),C.push(n))}return a===`wait`&&C.length&&(e=C),S(WH(e)),b(f),null}let{forceRender:w}=(0,y.useContext)(oP);return(0,Y.jsx)(Y.Fragment,{children:x.map(e=>{let v=UH(e),y=o&&!u?!1:f===x||p.includes(v);return(0,Y.jsx)(BH,{isPresent:y,initial:!m.current||n?void 0:!1,custom:t,presenceAffectsLayout:i,mode:a,root:l,onExitComplete:y?void 0:()=>{if(_.current.has(v))return;if(_.current.add(v),g.has(v))g.set(v,!0);else return;let e=!0;g.forEach(t=>{t||(e=!1)}),e&&(w?.(),S(h.current),o&&d?.(),r&&r())},anchorX:s,anchorY:c,children:e},v)})})},KH=(0,y.createContext)({strict:!1}),qH={animation:[`animate`,`variants`,`whileHover`,`whileTap`,`exit`,`whileInView`,`whileFocus`,`whileDrag`],exit:[`exit`],drag:[`drag`,`dragControls`],focus:[`whileFocus`],hover:[`whileHover`,`onHoverStart`,`onHoverEnd`],tap:[`whileTap`,`onTap`,`onTapStart`,`onTapCancel`],pan:[`onPan`,`onPanStart`,`onPanSessionStart`,`onPanEnd`],inView:[`whileInView`,`onViewportEnter`,`onViewportLeave`],layout:[`layout`,`layoutId`]},JH=!1;function YH(){if(JH)return;let e={};for(let t in qH)e[t]={isEnabled:e=>qH[t].some(t=>!!e[t])};nB(e),JH=!0}function XH(){return YH(),rB()}function ZH(e){let t=XH();for(let n in e)t[n]={...t[n],...e[n]};nB(t)}var QH=new Set(`animate.exit.variants.initial.style.values.variants.transition.transformTemplate.custom.inherit.onBeforeLayoutMeasure.onAnimationStart.onAnimationComplete.onUpdate.onDragStart.onDrag.onDragEnd.onMeasureDragConstraints.onDirectionLock.onDragTransitionEnd._dragX._dragY.onHoverStart.onHoverEnd.onViewportEnter.onViewportLeave.globalTapTarget.propagate.ignoreStrict.viewport`.split(`.`));function $H(e){return e.startsWith(`while`)||e.startsWith(`drag`)&&e!==`draggable`||e.startsWith(`layout`)||e.startsWith(`onTap`)||e.startsWith(`onPan`)||e.startsWith(`onLayout`)||QH.has(e)}function eU(e){var t={};return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var tU=o((()=>{})),nU=c({default:()=>iU}),rU,iU,aU=o((()=>{tU(),rU=/^((children|dangerouslySetInnerHTML|key|ref|autoFocus|defaultValue|defaultChecked|innerHTML|suppressContentEditableWarning|suppressHydrationWarning|valueLink|accept|acceptCharset|accessKey|action|allow|allowUserMedia|allowPaymentRequest|allowFullScreen|allowTransparency|alt|async|autoComplete|autoPlay|capture|cellPadding|cellSpacing|challenge|charSet|checked|cite|classID|className|cols|colSpan|content|contentEditable|contextMenu|controls|controlsList|coords|crossOrigin|data|dateTime|decoding|default|defer|dir|disabled|disablePictureInPicture|download|draggable|encType|form|formAction|formEncType|formMethod|formNoValidate|formTarget|frameBorder|headers|height|hidden|high|href|hrefLang|htmlFor|httpEquiv|id|inputMode|integrity|is|keyParams|keyType|kind|label|lang|list|loading|loop|low|marginHeight|marginWidth|max|maxLength|media|mediaGroup|method|min|minLength|multiple|muted|name|nonce|noValidate|open|optimum|pattern|placeholder|playsInline|poster|preload|profile|radioGroup|readOnly|referrerPolicy|rel|required|reversed|role|rows|rowSpan|sandbox|scope|scoped|scrolling|seamless|selected|shape|size|sizes|slot|span|spellCheck|src|srcDoc|srcLang|srcSet|start|step|style|summary|tabIndex|target|title|type|useMap|value|width|wmode|wrap|about|datatype|inlist|prefix|property|resource|typeof|vocab|autoCapitalize|autoCorrect|autoSave|color|inert|itemProp|itemScope|itemType|itemID|itemRef|on|results|security|unselectable|accentHeight|accumulate|additive|alignmentBaseline|allowReorder|alphabetic|amplitude|arabicForm|ascent|attributeName|attributeType|autoReverse|azimuth|baseFrequency|baselineShift|baseProfile|bbox|begin|bias|by|calcMode|capHeight|clip|clipPathUnits|clipPath|clipRule|colorInterpolation|colorInterpolationFilters|colorProfile|colorRen
2417dering|contentScriptType|contentStyleType|cursor|cx|cy|d|decelerate|descent|diffuseConstant|direction|display|divisor|dominantBaseline|dur|dx|dy|edgeMode|elevation|enableBackground|end|exponent|externalResourcesRequired|fill|fillOpacity|fillRule|filter|filterRes|filterUnits|floodColor|floodOpacity|focusable|fontFamily|fontSize|fontSizeAdjust|fontStretch|fontStyle|fontVariant|fontWeight|format|from|fr|fx|fy|g1|g2|glyphName|glyphOrientationHorizontal|glyphOrientationVertical|glyphRef|gradientTransform|gradientUnits|hanging|horizAdvX|horizOriginX|ideographic|imageRendering|in|in2|intercept|k|k1|k2|k3|k4|kernelMatrix|kernelUnitLength|kerning|keyPoints|keySplines|keyTimes|lengthAdjust|letterSpacing|lightingColor|limitingConeAngle|local|markerEnd|markerMid|markerStart|markerHeight|markerUnits|markerWidth|mask|maskContentUnits|maskUnits|mathematical|mode|numOctaves|offset|opacity|operator|order|orient|orientation|origin|overflow|overlinePosition|overlineThickness|panose1|paintOrder|pathLength|patternContentUnits|patternTransform|patternUnits|pointerEvents|points|pointsAtX|pointsAtY|pointsAtZ|preserveAlpha|preserveAspectRatio|primitiveUnits|r|radius|refX|refY|renderingIntent|repeatCount|repeatDur|requiredExtensions|requiredFeatures|restart|result|rotate|rx|ry|scale|seed|shapeRendering|slope|spacing|specularConstant|specularExponent|speed|spreadMethod|startOffset|stdDeviation|stemh|stemv|stitchTiles|stopColor|stopOpacity|strikethroughPosition|strikethroughThickness|string|stroke|strokeDasharray|strokeDashoffset|strokeLinecap|strokeLinejoin|strokeMiterlimit|strokeOpacity|strokeWidth|surfaceScale|systemLanguage|tableValues|targetX|targetY|textAnchor|textDecoration|textRendering|textLength|to|transform|u1|u2|underlinePosition|underlineThickness|unicode|unicodeBidi|unicodeRange|unitsPerEm|vAlphabetic|vHanging|vIdeographic|vMathematical|values|vectorEffect|version|vertAdvY|vertOriginX|vertOriginY|viewBox|viewTarget|visibility|widths|wordSpacing|writingMode|x|xHeight|x1|x2|xChannelSelector|xlinkActuate|xlinkArcrole|xlinkHref|xlinkRole|xlinkShow|xlinkTitle|xlinkType|xmlBase|xmlns|xmlnsXlink|xmlLang|xmlSpace|y|y1|y2|yChannelSelector|z|zoomAndPan|for|class|autofocus)|(([Dd][Aa][Tt][Aa]|[Aa][Rr][Ii][Aa]|x)-.*))$/,iU=eU(function(e){return rU.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91})})),oU=e=>!$H(e);function sU(e){typeof e==`function`&&(oU=t=>t.startsWith(`on`)?!$H(t):e(t))}try{sU((aU(),d(nU)).default)}catch{}function cU(e,t,n){let r={};for(let i in e)(i!==`values`||typeof e.values!=`object`)&&(oU(i)||n===!0&&$H(i)||!t&&!$H(i)||e.draggable&&i.startsWith(`onDrag`))&&(r[i]=e[i]);return r}var lU=(0,y.createContext)({});function uU(e,t){if(Zz(e)){let{initial:t,animate:n}=e;return{initial:t===!1||Jz(t)?t:void 0,animate:Jz(n)?n:void 0}}return e.inherit===!1?{}:t}function dU(e){let{initial:t,animate:n}=uU(e,(0,y.useContext)(lU));return(0,y.useMemo)(()=>({initial:t,animate:n}),[fU(t),fU(n)])}function fU(e){return Array.isArray(e)?e.join(` `):e}var pU=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function mU(e,t,n){for(let r in t)!SR(t[r])&&!IB(r,n)&&(e[r]=t[r])}function hU({transformTemplate:e},t){return(0,y.useMemo)(()=>{let n=pU();return AB(n,t,e),Object.assign({},n.vars,n.style)},[t])}function gU(e,t){let n=e.style||{},r={};return mU(r,n,e),Object.assign(r,hU(e,t)),r}function _U(e,t){let n={},r=gU(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout=`none`,r.touchAction=e.drag===!0?`none`:`pan-${e.drag===`x`?`y`:`x`}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}var vU=()=>({...pU(),attrs:{}});function yU(e,t,n,r){let i=(0,y.useMemo)(()=>{let n=vU();return WB(n,t,KB(r),e.transformTemplate,e.style),{...n.attrs,style:{...n.style}}},[t]);if(e.style){let t={};mU(t,e.style,e),i.style={...t,...i.style}}return i}var bU=[`animate`,`circle`,`defs`,`desc`,`ellipse`,`g`,`image`,`line`,`filter`,`marker`,`mask`,`metadata`,`path`,`pattern`,`polygon`,`polyline`,`rect`,`stop`,`switch`,`symbol`,`svg`,`text`,`tspan`,`use`,`view`];function xU(e){return typeof e!=`string`||e.includes(`-`)?!1:!!(bU.indexOf(e)>-1||/[A-Z]/u.test(e))}function SU(e,t,n,{latestValues:r},i,a=!1,o){let s=(o??xU(e)?yU:_U)(t,r,i,e),c=cU(t,typeof e==`string`,a),l=e===y.Fragment?{}:{...c,...s,ref:n},{children:u}=t,d=(0,y.useMemo)(()=>SR(u)?u.get():u,[u]);return(0,y.createElement)(e,{...l,children:d})}function CU({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,i){return{latestValues:wU(n,r,i,e),renderState:t()}}function wU(e,t,n,r){let i={}
2417,a=r(e,{});for(let e in a)i[e]=ZV(a[e]);let{initial:o,animate:s}=e,c=Zz(e),l=Qz(e);t&&l&&!c&&e.inherit!==!1&&(o===void 0&&(o=t.initial),s===void 0&&(s=t.animate));let u=n?n.initial===!1:!1;u||=o===!1;let d=u?s:o;if(d&&typeof d!=`boolean`&&!qz(d)){let t=Array.isArray(d)?d:[d];for(let n=0;n<t.length;n++){let r=uR(e,t[n]);if(r){let{transitionEnd:e,transition:t,...n}=r;for(let e in n){let t=n[e];if(Array.isArray(t)){let e=u?t.length-1:0;t=t[e]}t!==null&&(i[e]=t)}for(let t in e)i[t]=e[t]}}}return i}var TU=e=>(t,n)=>{let r=(0,y.useContext)(lU),i=(0,y.useContext)(uP),a=()=>CU(e,t,r,i);return n?a():sP(a)},EU=TU({scrapeMotionValuesFromProps:LB,createRenderState:pU}),DU=TU({scrapeMotionValuesFromProps:JB,createRenderState:vU}),OU=Symbol.for(`motionComponentSymbol`);function kU(e,t,n){let r=(0,y.useRef)(n);(0,y.useInsertionEffect)(()=>{r.current=n});let i=(0,y.useRef)(null);return(0,y.useCallback)(n=>{n&&e.onMount?.(n),t&&(n?t.mount(n):t.unmount());let a=r.current;if(typeof a==`function`){if(n){let e=a(n);typeof e==`function`&&(i.current=e)}else i.current?(i.current(),i.current=null):a(n)}else a&&(a.current=n)},[t])}var AU=(0,y.createContext)({});function jU(e){return e&&typeof e==`object`&&Object.prototype.hasOwnProperty.call(e,`current`)}function MU(e,t,n,r,i,a){let{visualElement:o}=(0,y.useContext)(lU),s=(0,y.useContext)(KH),c=(0,y.useContext)(uP),l=(0,y.useContext)(PH),u=l.reducedMotion,d=l.skipAnimations,f=(0,y.useRef)(null),p=(0,y.useRef)(!1);r||=s.renderer,!f.current&&r&&(f.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:u,skipAnimations:d,isSVG:a}),p.current&&f.current&&(f.current.manuallyAnimateOnMount=!0));let m=f.current,h=(0,y.useContext)(AU);m&&!m.projection&&i&&(m.type===`html`||m.type===`svg`)&&NU(f.current,n,i,h);let g=(0,y.useRef)(!1);(0,y.useInsertionEffect)(()=>{m&&g.current&&m.update(n,c)});let _=n[ER],v=(0,y.useRef)(!!_&&!window.MotionHandoffIsComplete?.(_)&&window.MotionHasOptimisedAnimation?.(_));return lP(()=>{p.current=!0,m&&(g.current=!0,window.MotionIsMounted=!0,m.updateFeatures(),m.scheduleRenderMicrotask(),v.current&&m.animationState&&m.animationState.animateChanges())}),(0,y.useEffect)(()=>{m&&(!v.current&&m.animationState&&m.animationState.animateChanges(),v.current&&=(queueMicrotask(()=>{window.MotionHandoffMarkAsComplete?.(_)}),!1),m.enteringChildren=void 0)}),m}function NU(e,t,n,r){let{layoutId:i,layout:a,drag:o,dragConstraints:s,layoutScroll:c,layoutRoot:l,layoutCrossfade:u}=t;e.projection=new n(e.latestValues,t[`data-framer-portal-id`]?void 0:PU(e.parent)),e.projection.setOptions({layoutId:i,layout:a,alwaysMeasureLayout:!!o||s&&jU(s),visualElement:e,animationType:typeof a==`string`?a:`both`,initialPromotionConfig:r,crossfade:u,layoutScroll:c,layoutRoot:l})}function PU(e){if(e)return e.options.allowProjection===!1?PU(e.parent):e.projection}function FU(e,{forwardMotionProps:t=!1,type:n}={},r,i){r&&ZH(r);let a=n?n===`svg`:xU(e),o=a?DU:EU;function s(n,s){let c,l={...(0,y.useContext)(PH),...n,layoutId:IU(n)},{isStatic:u}=l,d=dU(n),f=o(n,u);if(!u&&cP){LU(l,r);let t=RU(l);c=t.MeasureLayout,d.visualElement=MU(e,f,l,i,t.ProjectionNode,a)}return(0,Y.jsxs)(lU.Provider,{value:d,children:[c&&d.visualElement?(0,Y.jsx)(c,{visualElement:d.visualElement,...l}):null,SU(e,n,kU(f,d.visualElement,s),f,u,t,a)]})}s.displayName=`motion.${typeof e==`string`?e:`create(${e.displayName??e.name??``})`}`;let c=(0,y.forwardRef)(s);return c[OU]=e,c}function IU({layoutId:e}){let t=(0,y.useContext)(oP).id;return t&&e!==void 0?t+`-`+e:e}function LU(e,t){(0,y.useContext)(KH).strict}function RU(e){let{drag:t,layout:n}=XH();if(!t&&!n)return{};let r={...t,...n};return{MeasureLayout:t?.isEnabled(e)||n?.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function zU(e,t){if(typeof Proxy>`u`)return FU;let n=new Map,r=(n,r)=>FU(n,r,e,t);return new Proxy((e,t)=>r(e,t),{get:(i,a)=>a===`create`?r:(n.has(a)||n.set(a,FU(a,void 0,e,t)),n.get(a))})}var BU=(e,t)=>t.isSVG??xU(e)?new YB(t):new zB(t,{allowProjection:e!==y.Fragment}),VU=class extends oB{constructor(e){super(e),e.animationState||=nV(e)}updateAnimationControlsSubscription(){let{animate:e}=this.node.getProps();qz(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){let{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){this.node.animationState.reset(),this.unmountControls?.()}},HU=0,UU={animation:{Feature:VU},exit:{Feature:class extends oB{constructor(){super(...arguments),this.id=HU++}update(){if(!this.node.presenceContext)return;let{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===n)return;let r=this.node.animationState.setActive(`exit`,!e);t&&!e&&r.then(()=>
2417{t(this.id)})}mount(){let{register:e,onExitComplete:t}=this.node.presenceContext||{};t&&t(this.id),e&&(this.unmount=e(this.id))}unmount(){}}}};function WU(e){return{point:{x:e.pageX,y:e.pageY}}}var GU=e=>t=>cz(t)&&e(t,WU(t));function KU(e,t,n,r){return qV(e,t,GU(n),r)}var qU=({current:e})=>e?e.ownerDocument.defaultView:null,JU=(e,t)=>Math.abs(e-t);function YU(e,t){let n=JU(e.x,t.x),r=JU(e.y,t.y);return Math.sqrt(n**2+r**2)}var XU=new Set([`auto`,`scroll`]),ZU=class{constructor(e,t,{transformPagePoint:n,contextWindow:r=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3,element:o}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.scrollPositions=new Map,this.removeScrollListeners=null,this.onElementScroll=e=>{this.handleScroll(e.target)},this.onWindowScroll=()=>{this.handleScroll(window)},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let e=eW(this.lastMoveEventInfo,this.history),t=this.startEvent!==null,n=YU(e.offset,{x:0,y:0})>=this.distanceThreshold;if(!t&&!n)return;let{point:r}=e,{timestamp:i}=nF;this.history.push({...r,timestamp:i});let{onStart:a,onMove:o}=this.handlers;t||(a&&a(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),o&&o(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=QU(t,this.transformPagePoint),eF.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();let{onEnd:n,onSessionEnd:r,resumeAnimation:i}=this.handlers;if((this.dragSnapToOrigin||!this.startEvent)&&i&&i(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;let a=eW(e.type===`pointercancel`?this.lastMoveEventInfo:QU(t,this.transformPagePoint),this.history);this.startEvent&&n&&n(e,a),r&&r(e,a)},!cz(e))return;this.dragSnapToOrigin=i,this.handlers=t,this.transformPagePoint=n,this.distanceThreshold=a,this.contextWindow=r||window;let s=QU(WU(e),this.transformPagePoint),{point:c}=s,{timestamp:l}=nF;this.history=[{...c,timestamp:l}];let{onSessionStart:u}=t;u&&u(e,eW(s,this.history)),this.removeListeners=xP(KU(this.contextWindow,`pointermove`,this.handlePointerMove),KU(this.contextWindow,`pointerup`,this.handlePointerUp),KU(this.contextWindow,`pointercancel`,this.handlePointerUp)),o&&this.startScrollTracking(o)}startScrollTracking(e){let t=e.parentElement;for(;t;){let e=getComputedStyle(t);(XU.has(e.overflowX)||XU.has(e.overflowY))&&this.scrollPositions.set(t,{x:t.scrollLeft,y:t.scrollTop}),t=t.parentElement}this.scrollPositions.set(window,{x:window.scrollX,y:window.scrollY}),window.addEventListener(`scroll`,this.onElementScroll,{capture:!0,passive:!0}),window.addEventListener(`scroll`,this.onWindowScroll,{passive:!0}),this.removeScrollListeners=()=>{window.removeEventListener(`scroll`,this.onElementScroll,{capture:!0}),window.removeEventListener(`scroll`,this.onWindowScroll)}}handleScroll(e){let t=this.scrollPositions.get(e);if(!t)return;let n=e===window,r=n?{x:window.scrollX,y:window.scrollY}:{x:e.scrollLeft,y:e.scrollTop},i={x:r.x-t.x,y:r.y-t.y};(i.x!==0||i.y!==0)&&(n?this.lastMoveEventInfo&&(this.lastMoveEventInfo.point.x+=i.x,this.lastMoveEventInfo.point.y+=i.y):this.history.length>0&&(this.history[0].x-=i.x,this.history[0].y-=i.y),this.scrollPositions.set(e,r),eF.update(this.updatePoint,!0))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),this.removeScrollListeners&&this.removeScrollListeners(),this.scrollPositions.clear(),tF(this.updatePoint)}};function QU(e,t){return t?{point:t(e.point)}:e}function $U(e,t){return{x:e.x-t.x,y:e.y-t.y}}function eW({point:e},t){return{point:e,delta:$U(e,nW(t)),offset:$U(e,tW(t)),velocity:rW(t,.1)}}function tW(e){return e[0]}function nW(e){return e[e.length-1]}function rW(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null,i=nW(e);for(;n>=0&&(r=e[n],!(i.timestamp-r.timestamp>wP(t)));)n--;if(!r)return{x:0,y:0};r===e[0]&&e.length>2&&i.timestamp-r.timestamp>wP(t)*2&&(r=e[1]);let a=TP(i.timestamp-r.timestamp);if(a===0)return{x:0,y:0};let o={x:(i.x-r.x)/a,y:(i.y-r.y)/a};return o.x===1/0&&(o.x=0),o.y===1/0&&(o.y=0),o}function iW(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?$F(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?$F(n,e,r.max):Math.min(e,n)),e}function aW(e,t,n){return{min:t===void 0?void 0:e.min+t,max:n===void 0?void 0:e.max+n-(e.max-e.min)}}function oW(e,{top:t,left:n,bottom:r,right:i}){return{x:aW(e.x,n,i),y:aW(e.y,t,r)}}function sW(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function cW(e,t){return{x:sW(e.x,t.x),y:sW(e.y,t.y)}}function lW(e,t){let n=.5,r=pV(e),i=pV(t);return i>r?n=SP(t.min,t.max-r,e.min):r>i&&(n=SP(e.min,e.max-i,t.min)),pP(0,1,n)}function uW(e,t){let n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}var dW=.35;function fW(e=dW){return e===!1?e=0:e===!0&&(e=dW),{x:pW(e,`left`,`right`),y:pW(e,`top`,`bottom`)}}function pW(e,t,n){return{min:mW(e,t),max:mW(e,n)}}function mW(e,t){return typeof e==`number`?e:e[t]||0}var hW=new WeakMap,gW=class{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=Vz(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=e}start(e,{snapToCursor:t=!1,distanceThreshold:n}={}){let{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;let i=e=>{t&&this.snapToCursor(WU(e).point),this.stopAnimation()},a=(e,t)=>{let{drag:n,dragPropagation:r,onDragStart:i}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock=rz(n),!this.openDragLock))return;this.latestPointerEvent=e,this.latestPanInfo=t,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),FV(e=>{let t=this.getAxisMotionValue(e).get()||0;if(AF.test(t)){let{projection:n}=this.visualElement;if(n&&n.layout){let r=n.layout.layoutBox[e];r&&(t=pV(r)*(parseFloat(t)/100))}}this.originPoint[e]=t}),i&&eF.update(()=>i(e,t),!1,!0),wR(this.visualElement,`transform`);let{animationState:a}=this.visualElement;a&&a.setActive(`whileDrag`,!0)},o=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t;let{dragPropagation:n,dragDirectionLock:r,onDirectionLock:i,onDrag:a}=this.getProps();if(!n&&!this.openDragLock)return;let{offset:o}=t;if(r&&this.currentDirection===null){this.currentDirection=bW(o),this.currentDirection!==null&&i&&i(this.currentDirection);return}this.updateAxis(`x`,t.point,o),this.updateAxis(`y`,t.point,o),this.visualElement.render(),a&&eF.update(()=>a(e,t),!1,!0)},s=(e,t)=>{this.latestPointerEvent=e,this.latestPanInfo=t,this.stop(e,t),this.latestPointerEvent=null,this.latestPanInfo=null},c=()=>{let{dragSnapToOrigin:e}=this.getProps();(e||this.constraints)&&this.startAnimation({x:0,y:0})},{dragSnapToOrigin:l}=this.getProps();this.panSession=new ZU(e,{onSessionStart:i,onStart:a,onMove:o,onSessionEnd:s,resumeAnimation:c},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:l,distanceThreshold:n,contextWindow:qU(this.visualElement),element:this.visualElement.current})}stop(e,t){let n=e||this.latestPointerEvent,r=t||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!r||!n)return;let{velocity:a}=r;this.startAnimation(a);let{onDragEnd:o}=this.getProps();o&&eF.postRender(()=>o(n,r))}cancel(){this.isDragging=!1;let{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.endPanSession();let{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive(`whileDrag`,!1)}endPanSession(){this.panSession&&this.panSession.end(),this.panSession=void 0}updateAxis(e,t,n){let{drag:r}=this.getProps();if(!n||!yW(e,r,this.currentDirection))return;let i=this.getAxisMotionValue(e),a=this.originPoint[e]+n[e];this.constraints&&this.constraints[e]&&(a=iW(a,this.constraints[e],this.elastic[e])),i.set(a)}resolveConstraints(){let{dragConstraints:e,dragElastic:t}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):this.visualElement.projection?.layout,r=this.constraints;e&&jU(e)?this.constraints||=this.resolveRefConstraints():this.constraints=e&&n?oW(n.layoutBox,e):!1,this.elastic=fW(t),r!==this.constraints&&!jU(e)&&n&&this.constraints&&!this.hasMutatedConstraints&&FV(e=>{this.constraints!==!1&&this.getAxisMotionValue(e)&&(this.constraints[e]=uW(n.layoutBox[e],this.constraints[e]))})}resolveRefConstraints(){let{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!jU(e))return!1;let n=e.current,{projection:r}=this.visualElement;if(!r||!r.layout)return!1;let i=EB(n,r.root,this.visualElement.getTransformPagePoint()),a=cW(r.layout.layoutBox,i);if(t){let e=t(cB(a));this.hasMutatedConstraints=!!e,e&&(a=sB(e))}return a}startAnimation(e){let{drag:t,dragMomentum:n,dragElastic:r,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:o}=this.getProps(),s=this.constraints||{},c=FV(o=>
2417{if(!yW(o,t,this.currentDirection))return;let c=s&&s[o]||{};a&&(c={min:0,max:0});let l=r?200:1e6,u=r?40:1e7,d={type:`inertia`,velocity:n?e[o]:0,bounceStiffness:l,bounceDamping:u,timeConstant:750,restDelta:1,restSpeed:10,...i,...c};return this.startAxisValueAnimation(o,d)});return Promise.all(c).then(o)}startAxisValueAnimation(e,t){let n=this.getAxisMotionValue(e);return wR(this.visualElement,e),n.start(cR(e,n,0,t,this.visualElement,!1))}stopAnimation(){FV(e=>this.getAxisMotionValue(e).stop())}getAxisMotionValue(e){let t=`_drag${e.toUpperCase()}`,n=this.visualElement.getProps();return n[t]||this.visualElement.getValue(e,(n.initial?n.initial[e]:void 0)||0)}snapToCursor(e){FV(t=>{let{drag:n}=this.getProps();if(!yW(t,n,this.currentDirection))return;let{projection:r}=this.visualElement,i=this.getAxisMotionValue(t);if(r&&r.layout){let{min:n,max:a}=r.layout.layoutBox[t],o=i.get()||0;i.set(e[t]-$F(n,a,.5)+o)}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;let{drag:e,dragConstraints:t}=this.getProps(),{projection:n}=this.visualElement;if(!jU(t)||!n||!this.constraints)return;this.stopAnimation();let r={x:0,y:0};FV(e=>{let t=this.getAxisMotionValue(e);if(t&&this.constraints!==!1){let n=t.get();r[e]=lW({min:n,max:n},this.constraints[e])}});let{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},``):`none`,n.root&&n.root.updateScroll(),n.updateLayout(),this.constraints=!1,this.resolveConstraints(),FV(t=>{if(!yW(t,e,null))return;let n=this.getAxisMotionValue(t),{min:i,max:a}=this.constraints[t];n.set($F(i,a,r[t]))}),this.visualElement.render()}addListeners(){if(!this.visualElement.current)return;hW.set(this.visualElement,this);let e=this.visualElement.current,t=KU(e,`pointerdown`,t=>{let{drag:n,dragListener:r=!0}=this.getProps(),i=t.target,a=i!==e&&fz(i);n&&r&&!a&&this.start(t)}),n,r=()=>{let{dragConstraints:t}=this.getProps();jU(t)&&t.current&&(this.constraints=this.resolveRefConstraints(),n||=vW(e,t.current,()=>this.scalePositionWithinConstraints()))},{projection:i}=this.visualElement,a=i.addEventListener(`measure`,r);i&&!i.layout&&(i.root&&i.root.updateScroll(),i.updateLayout()),eF.read(r);let o=qV(window,`resize`,()=>this.scalePositionWithinConstraints()),s=i.addEventListener(`didUpdate`,(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(FV(t=>{let n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))}),this.visualElement.render())}));return()=>{o(),t(),a(),s&&s(),n&&n()}}getProps(){let e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:i=!1,dragElastic:a=dW,dragMomentum:o=!0}=e;return{...e,drag:t,dragDirectionLock:n,dragPropagation:r,dragConstraints:i,dragElastic:a,dragMomentum:o}}};function _W(e){let t=!0;return()=>{if(t){t=!1;return}e()}}function vW(e,t,n){let r=Pz(e,_W(n)),i=Pz(t,_W(n));return()=>{r(),i()}}function yW(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function bW(e,t=10){let n=null;return Math.abs(e.y)>t?n=`y`:Math.abs(e.x)>t&&(n=`x`),n}var xW=class extends oB{constructor(e){super(e),this.removeGroupControls=yP,this.removeListeners=yP,this.controls=new gW(e)}mount(){let{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||yP}update(){let{dragControls:e}=this.node.getProps(),{dragControls:t}=this.node.prevProps||{};e!==t&&(this.removeGroupControls(),e&&(this.removeGroupControls=e.subscribe(this.controls)))}unmount(){this.removeGroupControls(),this.removeListeners(),this.controls.isDragging||this.controls.endPanSession()}},SW=e=>(t,n)=>{e&&eF.update(()=>e(t,n),!1,!0)},CW=class extends oB{constructor(){super(...arguments),this.removePointerDownListener=yP}onPointerDown(e){this.session=new ZU(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:qU(this.node)})}createPanHandlers(){let{onPanSessionStart:e,onPanStart:t,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:SW(e),onStart:SW(t),onMove:SW(n),onEnd:(e,t)=>{delete this.session,r&&eF.postRender(()=>r(e,t))}}}mount(){this.removePointerDownListener=KU(this.node.current,`pointerdown`,e=>this.onPointerDown(e))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}},wW=!1,TW=class extends y.Component{componentDidMount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n,layoutId:r}=this.props,{projection:i}=e;i&&(t.group&&t.group.add(i),n&&n.register&&r&&n.register(i),wW&&i.root.didUpdate(),i.addEventListener(`animationComplete`,()=>{this.safeToRemove()}),i.setOptions({...i.options,layoutDependency:this.props.layoutDependency,onExitComplete:()=>this.safeToRemove()})),$V.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){let{layoutDependency:t,visualElement:n,drag:r,isPresent:i}=this.props,{projection:a}=n;return a?(a.isPresent=i,e.layoutDependency!==t&&a.setOptions({...a.options,layoutDependency:t}),wW=!0,r||e.layoutDependency!==t||t===void 0||e.isPresent!==i?a.willUpdate():this.safeToRemove(),e.isPresent!==i&&(i?a.promote():a.relegate()||eF.postRender(()=>{let e=a.getStack();(!e||!e.members.length)&&this.safeToRemove()})),null):null}componentDidUpdate(){let{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),$R.postRender(()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()}))}componentWillUnmount(){let{visualElement:e,layoutGroup:t,switchLayoutGroup:n}=this.props,{projection:r}=e;wW=!0,r&&(r.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){let{safeToRemove:e}=this.props;e&&e()}render(){return null}};function EW(e){let[t,n]=HH(),r=(0,y.useContext)(oP);return(0,Y.jsx)(TW,{...e,layoutGroup:r,switchLayoutGroup:(0,y.useContext)(AU),isPresent:t,safeToRemove:n})}var DW={pan:{Feature:CW},drag:{Feature:xW,ProjectionNode:NH,MeasureLayout:EW}};function OW(e,t,n){let{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive(`whileHover`,n===`Start`);let i=r[`onHover`+n];i&&eF.postRender(()=>i(t,WU(t)))}var kW=class extends oB{mount(){let{current:e}=this.node;e&&(this.unmount=oz(e,(e,t)=>(OW(this.node,t,`Start`),e=>OW(this.node,e,`End`))))}unmount(){}},AW=class extends oB{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(`:focus-visible`)}catch{e=!0}!e||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive(`whileFocus`,!1),this.isActive=!1)}mount(){this.unmount=xP(qV(this.node.current,`focus`,()=>this.onFocus()),qV(this.node.current,`blur`,()=>this.onBlur()))}unmount(){}};function jW(e,t,n){let{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive(`whileTap`,n===`Start`);let i=r[`onTap`+(n===`End`?``:n)];i&&eF.postRender(()=>i(t,WU(t)))}var MW=class extends oB{mount(){let{current:e}=this.node;if(!e)return;let{globalTapTarget:t,propagate:n}=this.node.props;this.unmount=yz(e,(e,t)=>(jW(this.node,t,`Start`),(e,{success:t})=>jW(this.node,e,t?`End`:`Cancel`)),{useGlobalTarget:t,stopPropagation:n?.tap===!1})}unmount(){}},NW=new WeakMap,PW=new WeakMap,FW=e=>{let t=NW.get(e.target);t&&t(e)},IW=e=>{e.forEach(FW)};function LW({root:e,...t}){let n=e||document;PW.has(n)||PW.set(n,{});let r=PW.get(n),i=JSON.stringify(t);return r[i]||(r[i]=new IntersectionObserver(IW,{root:e,...t})),r[i]}function RW(e,t,n){let r=LW(t);return NW.set(e,n),r.observe(e),()=>{NW.delete(e),r.unobserve(e)}}var zW={some:0,all:1},BW=class extends oB{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();let{viewport:e={}}=this.node.getProps(),{root:t,margin:n,amount:r=`some`,once:i}=e,a={root:t?t.current:void 0,rootMargin:n,threshold:typeof r==`number`?r:zW[r]};return RW(this.node.current,a,e=>{let{isIntersecting:t}=e;if(this.isInView===t||(this.isInView=t,i&&!t&&this.hasEnteredView))return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive(`whileInView`,t);let{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),a=t?n:r;a&&a(e)})}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>`u`)return;let{props:e,prevProps:t}=this.node;[`amount`,`margin`,`root`].some(VW(e,t))&&this.startObserver()}unmount(){}};function VW({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}var HW={inView:{Feature:BW},tap:{Feature:MW},focus:{Feature:AW},hover:{Feature:kW}},UW={layout:{ProjectionNode:NH,MeasureLayout:EW}},WW=zU({...UU,...HW,...DW,...UW},BU),GW=s(((e,t)=>{(function(n,r){typeof e==`object`&&t!==void 0?t.exports=r():typeof define==`function`&&define.amd?define(r):(n=typeof globalThis<`u`?globalThis:n||self).dayjs_plugin_utc=r()})(e,(function(){var e=`minute`,t=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(r,i,a){var o=i.prototype;a.utc=function(e){return new i({date:e,utc:!0,args:arguments})},o.utc=function(t){var n=a(this.toDate(),{locale:this.$L,utc:!0});return t?n.add(this.utcOffset(),e):n},o.local=function(){return a(this.toDate(),{locale:this.$L,utc:!1})};var s=o.parse;o.parse=function(e){e.utc&&(this.$u=!0),this.$utils().u(e.$offset)||(this.$offset=e.$offset),s.call(this,e)};var c=o.init;o.init=function(){if(this.$u){var e=this.$d;this.$y=e.getUTCFullYear(),this.$M=e.getUTCMonth(),this.$D=e.getUTCDate(),this.$W=e.getUTCDay(),this.$H=e.getUTCHours(),this.$m=e.getUTCMinutes(),this.$s=e.getUTCSeconds(),this.$ms=e.getUTCMilliseconds()}else c.call(this)};var l=o.utcOffset;o.utcOffset=function(r,i){var a=this.$utils().u;if(a(r))return this.$u?0:a(this.$offset)?l.call(this):this.$offset;if(typeof r==`string`&&(r=function(e){e===void 0&&(e=``);var r=e.match(t);if(!r)return null;var i=(``+r[0]).match(n)||[`-`,0,0],a=i[0],o=60*i[1]+ +i[2];return o===0?0:a===`+`?o:-o}(r),r===null))return this;var o=Math.abs(r)<=16?60*r:r;if(o===0)return this.utc(i);var s=this.clone();if(i)return s.$offset=o,s.$u=!1,s;var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(s=this.local().add(o+c,e)).$offset=o,s.$x.$localOffset=c,s};var u=o.format;o.format=function(e){var t=e||(this.$u?`YYYY-MM-DDTHH:mm:ss[Z]`:``);return u.call(this,t)},o.valueOf=function(){var e=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*e},o.isUTC=function(){return!!this.$u},o.toISOString=function(){return this.toDate().toISOString()},o.toString=function(){return this.toDate().toUTCString()};var d=o.toDate;o.toDate=function(e){return e===`s`&&this.$offset?a(this.format(`YYYY-MM-DD HH:mm:ss:SSS`)).toDate():d.call(this)};var f=o.diff;o.diff=function(e,t,n){if(e&&this.$u===e.$u)return f.call(this,e,t,n);var r=this.local(),i=a(e).local();return f.call(r,i,t,n)}}}))})),KW=s(((e,t)=>{(function(){var n,r=`Expected a function`,i=`__lodash_hash_undefined__`,a=`__lodash_placeholder__`,o=1,s=2,c=8,l=16,u=32,d=64,f=128,p=256,m=512,h=1/0,g=9007199254740991,_=17976931348623157e292,v=NaN,y=4294967295,b=y-1,x=y>>>1,S=[[`ary`,f],[`bind`,o],[`bindKey`,s],[`curry`,c],[`curryRight`,l],[`flip`,m],[`partial`,u],[`partialRight`,d],[`rearg`,p]],C=`[object Arguments]`,w=`[object Array]`,T=`[object AsyncFunction]`,E=`[object Boolean]`,ee=`[object Date]`,te=`[object DOMException]`,D=`[object Error]`,ne=`[object Function]`,re=`[object GeneratorFunction]`,O=`[object Map]`,ie=`[object Number]`,k=`[object Null]`,ae=`[object Object]`,oe=`[object Promise]`,A=`[object Proxy]`,j=`[object RegExp]`,M=`[object Set]`,se=`[object String]`,ce=`[object Symbol]`,le=`[object Undef
2417ined]`,ue=`[object WeakMap]`,de=`[object WeakSet]`,fe=`[object ArrayBuffer]`,pe=`[object DataView]`,me=`[object Float32Array]`,he=`[object Float64Array]`,ge=`[object Int8Array]`,_e=`[object Int16Array]`,ve=`[object Int32Array]`,ye=`[object Uint8Array]`,be=`[object Uint8ClampedArray]`,xe=`[object Uint16Array]`,Se=`[object Uint32Array]`,Ce=/\b__p \+= '';/g,we=/\b(__p \+=) '' \+/g,Te=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Ee=/&(?:amp|lt|gt|quot|#39);/g,De=/[&<>"']/g,Oe=RegExp(Ee.source),ke=RegExp(De.source),Ae=/<%-([\s\S]+?)%>/g,je=/<%([\s\S]+?)%>/g,Me=/<%=([\s\S]+?)%>/g,Ne=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Pe=/^\w*$/,Fe=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Ie=/[\\^$.*+?()[\]{}|]/g,Le=RegExp(Ie.source),Re=/^\s+/,ze=/\s/,Be=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,Ve=/\{\n\/\* \[wrapped with (.+)\] \*/,He=/,? & /,N=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Ue=/[()=,{}\[\]\/\s]/,We=/\\(\\)?/g,Ge=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Ke=/\w*$/,qe=/^[-+]0x[0-9a-f]+$/i,Je=/^0b[01]+$/i,Ye=/^\[object .+?Constructor\]$/,Xe=/^0o[0-7]+$/i,Ze=/^(?:0|[1-9]\d*)$/,Qe=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 69,641 bytes, lines 2417-2436
24177f]/g,$e=/($^)/,et=/['\n\r\u2028\u2029\\]/g,tt=`\\ud800-\\udfff`,nt=`\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff`,rt=`\\u2700-\\u27bf`,it=`a-z\\xdf-\\xf6\\xf8-\\xff`,P=`\\xac\\xb1\\xd7\\xf7`,at=`\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf`,ot=`\\u2000-\\u206f`,st=` \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000`,ct=`A-Z\\xc0-\\xd6\\xd8-\\xde`,lt=`\\ufe0e\\ufe0f`,ut=P+at+ot+st,dt=`['’]`,ft=`[`+tt+`]`,pt=`[`+ut+`]`,mt=`[`+nt+`]`,ht=`\\d+`,gt=`[`+rt+`]`,_t=`[`+it+`]`,vt=`[^`+tt+ut+ht+rt+it+ct+`]`,yt=`\\ud83c[\\udffb-\\udfff]`,bt=`(?:`+mt+`|`+yt+`)`,xt=`[^`+tt+`]`,St=`(?:\\ud83c[\\udde6-\\uddff]){2}`,Ct=`[\\ud800-\\udbff][\\udc00-\\udfff]`,wt=`[`+ct+`]`,Tt=`\\u200d`,Et=`(?:`+_t+`|`+vt+`)`,Dt=`(?:`+wt+`|`+vt+`)`,Ot=`(?:`+dt+`(?:d|ll|m|re|s|t|ve))?`,kt=`(?:`+dt+`(?:D|LL|M|RE|S|T|VE))?`,At=bt+`?`,jt=`[`+lt+`]?`,Mt=`(?:`+Tt+`(?:`+[xt,St,Ct].join(`|`)+`)`+jt+At+`)*`,Nt=`\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])`,Pt=`\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])`,Ft=jt+At+Mt,It=`(?:`+[gt,St,Ct].join(`|`)+`)`+Ft,Lt=`(?:`+[xt+mt+`?`,mt,St,Ct,ft].join(`|`)+`)`,Rt=RegExp(dt,`g`),zt=RegExp(mt,`g`),Bt=RegExp(yt+`(?=`+yt+`)|`+Lt+Ft,`g`),Vt=RegExp([wt+`?`+_t+`+`+Ot+`(?=`+[pt,wt,`$`].join(`|`)+`)`,Dt+`+`+kt+`(?=`+[pt,wt+Et,`$`].join(`|`)+`)`,wt+`?`+Et+`+`+Ot,wt+`+`+kt,Pt,Nt,ht,It].join(`|`),`g`),Ht=RegExp(`[`+Tt+tt+nt+lt+`]`),F=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ut=`Array.Buffer.DataView.Date.Error.Float32Array.Float64Array.Function.Int8Array.Int16Array.Int32Array.Map.Math.Object.Promise.RegExp.Set.String.Symbol.TypeError.Uint8Array.Uint8ClampedArray.Uint16Array.Uint32Array.WeakMap._.clearTimeout.isFinite.parseInt.setTimeout`.split(`.`),Wt=-1,Gt={};Gt[me]=Gt[he]=Gt[ge]=Gt[_e]=Gt[ve]=Gt[ye]=Gt[be]=Gt[xe]=Gt[Se]=!0,Gt[C]=Gt[w]=Gt[fe]=Gt[E]=Gt[pe]=Gt[ee]=Gt[D]=Gt[ne]=Gt[O]=Gt[ie]=Gt[ae]=Gt[j]=Gt[M]=Gt[se]=Gt[ue]=!1;var I={};I[C]=I[w]=I[fe]=I[pe]=I[E]=I[ee]=I[me]=I[he]=I[ge]=I[_e]=I[ve]=I[O]=I[ie]=I[ae]=I[j]=I[M]=I[se]=I[ce]=I[ye]=I[be]=I[xe]=I[Se]=!0,I[D]=I[ne]=I[ue]=!1;var Kt={À:`A`,Á:`A`,Â:`A`,Ã:`A`,Ä:`A`,Å:`A`,à:`a`,á:`a`,â:`a`,ã:`a`,ä:`a`,å:`a`,Ç:`C`,ç:`c`,Ð:`D`,ð:`d`,È:`E`,É:`E`,Ê:`E`,Ë:`E`,è:`e`,é:`e`,ê:`e`,ë:`e`,Ì:`I`,Í:`I`,Î:`I`,Ï:`I`,ì:`i`,í:`i`,î:`i`,ï:`i`,Ñ:`N`,ñ:`n`,Ò:`O`,Ó:`O`,Ô:`O`,Õ:`O`,Ö:`O`,Ø:`O`,ò:`o`,ó:`o`,ô:`o`,õ:`o`,ö:`o`,ø:`o`,Ù:`U`,Ú:`U`,Û:`U`,Ü:`U`,ù:`u`,ú:`u`,û:`u`,ü:`u`,Ý:`Y`,ý:`y`,ÿ:`y`,Æ:`Ae`,æ:`ae`,Þ:`Th`,þ:`th`,ß:`ss`,Ā:`A`,Ă:`A`,Ą:`A`,ā:`a`,ă:`a`,ą:`a`,Ć:`C`,Ĉ:`C`,Ċ:`C`,Č:`C`,ć:`c`,ĉ:`c`,ċ:`c`,č:`c`,Ď:`D`,Đ:`D`,ď:`d`,đ:`d`,Ē:`E`,Ĕ:`E`,Ė:`E`,Ę:`E`,Ě:`E`,ē:`e`,ĕ:`e`,ė:`e`,ę:`e`,ě:`e`,Ĝ:`G`,Ğ:`G`,Ġ:`G`,Ģ:`G`,ĝ:`g`,ğ:`g`,ġ:`g`,ģ:`g`,Ĥ:`H`,Ħ:`H`,ĥ:`h`,ħ:`h`,Ĩ:`I`,Ī:`I`,Ĭ:`I`,Į:`I`,İ:`I`,ĩ:`i`,ī:`i`,ĭ:`i`,į:`i`,ı:`i`,Ĵ:`J`,ĵ:`j`,Ķ:`K`,ķ:`k`,ĸ:`k`,Ĺ:`L`,Ļ:`L`,Ľ:`L`,Ŀ:`L`,Ł:`L`,ĺ:`l`,ļ:`l`,ľ:`l`,ŀ:`l`,ł:`l`,Ń:`N`,Ņ:`N`,Ň:`N`,Ŋ:`N`,ń:`n`,ņ:`n`,ň:`n`,ŋ:`n`,Ō:`O`,Ŏ:`O`,Ő:`O`,ō:`o`,ŏ:`o`,ő:`o`,Ŕ:`R`,Ŗ:`R`,Ř:`R`,ŕ:`r`,ŗ:`r`,ř:`r`,Ś:`S`,Ŝ:`S`,Ş:`S`,Š:`S`,ś:`s`,ŝ:`s`,ş:`s`,š:`s`,Ţ:`T`,Ť:`T`,Ŧ:`T`,ţ:`t`,ť:`t`,ŧ:`t`,Ũ:`U`,Ū:`U`,Ŭ:`U`,Ů:`U`,Ű:`U`,Ų:`U`,ũ:`u`,ū:`u`,ŭ:`u`,ů:`u`,ű:`u`,ų:`u`,Ŵ:`W`,ŵ:`w`,Ŷ:`Y`,ŷ:`y`,Ÿ:`Y`,Ź:`Z`,Ż:`Z`,Ž:`Z`,ź:`z`,ż:`z`,ž:`z`,IJ:`IJ`,ij:`ij`,Œ:`Oe`,œ:`oe`,ʼn:`'n`,ſ:`s`},qt={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`},Jt={"&amp;":`&`,"&lt;":`<`,"&gt;":`>`,"&quot;":`"`,"&#39;":`'`},Yt={"\\":`\\`,"'":`'`,"\n":`n`,"\r":`r`,"\u2028":`u2028`,"\u2029":`u2029`},Xt=parseFloat,Zt=parseInt,Qt=typeof global==`object`&&global&&global.Object===Object&&global,$t=typeof self==`object`&&self&&self.Object===Object&&self,en=Qt||$t||Function(`return this`)(),tn=typeof e==`object`&&e&&!e.nodeType&&e,nn=tn&&typeof t==`object`&&t&&!t.nodeType&&t,rn=nn&&nn.exports===tn,an=rn&&Qt.process,on=function(){try{return nn&&nn.require&&nn.require(`util`).types||an&&an.binding&&an.binding(`util`)}catch{}}(),sn=on&&on.isArrayBuffer,cn=on&&on.isDate,ln=on&&on.isMap,un=on&&on.isRegExp,dn=on&&on.isSet,fn=on&&on.isTypedArray;function pn(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function mn(e,t,n,r){for(var i=-1,a=e==null?0:e.length;++i<a;){var o=e[i];t(r,o,n(o),e)}return r}function hn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r&&t(e[n],n,e)!==!1;);return e}function gn(e,t){for(var n=e==null?0:e.length;n--&&t(e[n],n,e)!==!1;);return e}function _n(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function vn(e,t){for(var n=-1,r=e==null?0:e.length,i=0,a=[];++n<r;){var o=e[n];t(o,n,e)&&(a[i++]=o)}return a}function yn(e,t){return!!(e!=null&&e.length)&&L(e,t,0)>-1}function bn(e,t,n){for(var r=-1,i=e==null?0:e.length;++r<i;)if(n(t,e[r]))return!0;return!1}function xn(e,t){for(var n=-1,r=e==null?0:e.length,i=Array(r);++n<r;)i[n]=t(e[n],n,e);return i}function Sn(e,t){for(var n=-1,r=t.length,i=e.length;++n<r;)e[i+n]=t[n];return e}function Cn(e,t,n,r){var i=-1,a=e==null?0:e.length;for(r&&a&&(n=e[++i]);++i<a;)n=t(n,e[i],i,e);return n}function wn(e,t,n,r){var i=e==null?0:e.length;for(r&&i&&(n=e[--i]);i--;)n=t(n,e[i],i,e);return n}function Tn(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var En=Pn(`length`);function Dn(e){return e.split(``)}function On(e){return e.match(N)||[]}function kn(e,t,n){var r;return n(e,function(e,n,i){if(t(e,n,i))return r=n,!1}),r}function An(e,t,n,r){for(var i=e.length,a=n+(r?1:-1);r?a--:++a<i;)if(t(e[a],a,e))return a;return-1}function L(e,t,n){return t===t?or(e,t,n):An(e,Mn,n)}function jn(e,t,n,r){for(var i=n-1,a=e.length;++i<a;)if(r(e[i],t))return i;return-1}function Mn(e){return e!==e}function Nn(e,t){var n=e==null?0:e.length;return n?Rn(e,t)/n:v}function Pn(e){return function(t){return t==null?n:t[e]}}function Fn(e){return function(t){return e==null?n:e[t]}}function In(e,t,n,r,i){return i(e,function(e,i,a){n=r?(r=!1,e):t(n,e,i,a)}),n}function Ln(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}function Rn(e,t){for(var r,i=-1,a=e.length;++i<a;){var o=t(e[i]);o!==n&&(r=r===n?o:r+o)}return r}function zn(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Bn(e,t){return xn(t,function(t){return[t,e[t]]})}function Vn(e){return e&&e.slice(0,ur(e)+1).replace(Re,``)}function Hn(e){return function(t){return e(t)}}function Un(e,t){return xn(t,function(t){return e[t]})}function Wn(e,t){return e.has(t)}function Gn(e,t){for(var n=-1,r=e.length;++n<r&&L(t,e[n],0)>-1;);return n}function Kn(e,t){for(var n=e.length;n--&&L(t,e[n],0)>-1;);return n}function qn(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}var Jn=Fn(Kt),Yn=Fn(qt);function Xn(e){return`\\`+Yt[e]}function Zn(e,t){return e==null?n:e[t]}function Qn(e){return Ht.test(e)}function $n(e){return F.test(e)}function er(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function tr(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function nr(e,t){return function(n){return e(t(n))}}function rr(e,t){for(var n=-1,r=e.length,i=0,o=[];++n<r;){var s=e[n];(s===t||s===a)&&(e[n]=a,o[i++]=n)}return o}function ir(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function ar(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function or(e,t,n){for(var r=n-1,i=e.length;++r<i;)if(e[r]===t)return r;return-1}function sr(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}function cr(e){return Qn(e)?fr(e):En(e)}function lr(e){return Qn(e)?pr(e):Dn(e)}function ur(e){for(var t=e.length;t--&&ze.test(e.charAt(t)););return t}var dr=Fn(Jt);function fr(e){for(var t=Bt.lastIndex=0;Bt.test(e);)++t;return t}function pr(e){return e.match(Bt)||[]}function mr(e){return e.match(Vt)||[]}var hr=(function e(t){t=t==null?en:hr.defaults(en.Object(),t,hr.pick(en,Ut));var ze=t.Array,N=t.Date,tt=t.Error,nt=t.Function,rt=t.Math,it=t.Object,P=t.RegExp,at=t.String,ot=t.TypeError,st=ze.prototype,ct=nt.prototype,lt=it.prototype,ut=t[`__core-js_shared__`],dt=ct.toString,ft=lt.hasOwnProperty,pt=0,mt=function(){var e=/[^.]+$/.exec(ut&&ut.keys&&ut.keys.IE_PROTO||``);return e?`Symbol(src)_1.`+e:``}(),ht=lt.toString,gt=dt.call(it),_t=en._,vt=P(`^`+dt.call(ft).replace(Ie,`\\$&`).replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,`$1.*?`)+`$`),yt=rn?t.Buffer:n,bt=t.Symbol,xt=t.Uint8Array,St=yt?yt.allocUnsafe:n,Ct=nr(it.getPrototypeOf,it),wt=it.create,Tt=lt.propertyIsEnumerable,Et=st.splice,Dt=bt?bt.isConcatSpreadable:n,Ot=bt?bt.iterator:n,kt=bt?bt.toStringTag:n,At=function(){try{var e=Uo(it,`defineProperty`);return e({},``,{}),e}catch{}}(),jt=t.clearTimeout!==en.clearTimeout&&t.clearTimeout,Mt=N&&N.now!==en.Date.now&&N.now,Nt=t.setTimeout!==en.setTimeout&&t.setTimeout,Pt=rt.ceil,Ft=rt.floor,It=it.getOwnPropertySymbols,Lt=yt?yt.isBuffer:n,Bt=t.isFinite,Vt=st.join,Ht=nr(it.keys,it),F=rt.max,Kt=rt.min,qt=N.now,Jt=t.parseInt,Yt=rt.random,Qt=st.reverse,$t=Uo(t,`DataView`),tn=Uo(t,`Map`),nn=Uo(t,`Promise`),an=Uo(t,`Set`),on=Uo(t,`WeakMap`),En=Uo(it,`create`),Dn=on&&new on,Fn={},or=Os($t),fr=Os(tn),pr=Os(nn),gr=Os(an),_r=Os(on),vr=bt?bt.prototype:n,yr=vr?vr.valueOf:n,br=vr?vr.toString:n;function R(e){if(yu(e)&&!V(e)&&!(e instanceof wr)){if(e instanceof Cr)return e;if(ft.call(e,`__wrapped__`))return As(e)}return new Cr(e)}var xr=function(){function e(){}return function(t){if(!vu(t))return{};if(wt)return wt(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Sr(){}function Cr(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}R.templateSettings={escape:Ae,evaluate:je,interpolate:Me,variable:``,imports:{_:R}},R.prototype=Sr.prototype,R.prototype.constructor=R,Cr.prototype=xr(Sr.prototype),Cr.prototype.constructor=Cr;function wr(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=y,this.__views__=[]}function Tr(){var e=new wr(this.__wrapped__);return e.__actions__=eo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=eo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=eo(this.__views__),e}function Er(){if(this.__filtered__){var e=new wr(this);e.__dir__=-1,e.__filtered__=!0}else e=this.clone(),e.__dir__*=-1;return e}function Dr(){var e=this.__wrapped__.value(),t=this.__dir__,n=V(e),r=t<0,i=n?e.length:0,a=Jo(0,i,this.__views__),o=a.start,s=a.end,c=s-o,l=r?s:o-1,u=this.__iteratees__,d=u.length,f=0,p=Kt(c,this.__takeCount__);if(!n||!r&&i==c&&p==c)return Fa(e,this.__actions__);var m=[];outer:for(;c--&&f<p;){l+=t;for(var h=-1,g=e[l];++h<d;){var _=u[h],v=_.iteratee,y=_.type,b=v(g);if(y==2)g=b;else if(!b){if(y==1)continue outer;break outer}}m[f++]=g}return m}wr.prototype=xr(Sr.prototype),wr.prototype.constructor=wr;function Or(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function kr(){this.__data__=En?En(null):{},this.size=0}function Ar(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=+!!t,t}function jr(e){var t=this.__data__;if(En){var r=t[e];return r===i?n:r}return ft.call(t,e)?t[e]:n}function Mr(e){var t=this.__data__;return En?t[e]!==n:ft.call(t,e)}function Nr(e,t){var r=this.__data__;return this.size+=+!this.has(e),r[e]=En&&t===n?i:t,this}Or.prototype.clear=kr,Or.prototype.delete=Ar,Or.prototype.get=jr,Or.prototype.has=Mr,Or.prototype.set=Nr;function Pr(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Fr(){this.__data__=[],this.size=0}function Ir(e){var t=this.__data__,n=si(t,e);return n<0?!1:(n==t.length-1?t.pop():Et.call(t,n,1),--this.size,!0)}function Lr(e){var t=this.__data__,r=si(t,e);return r<0?n:t[r][1]}function Rr(e){return si(this.__data__,e)>-1}function zr(e,t){var n=this.__data__,r=si(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}Pr.prototype.clear=Fr,Pr.prototype.delete=Ir,Pr.prototype.get=Lr,Pr.prototype.has=Rr,Pr.prototype.set=zr;function Br(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Vr(){this.size=0,this.__data__={hash:new Or,map:new(tn||Pr),string:new Or}}function Hr(e){var t=Vo(this,e).delete(e);return this.size-=+!!t,t}function Ur(e){return Vo(this,e).get(e)}function Wr(e){return Vo(this,e).has(e)}function Gr(e,t){var n=Vo(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}Br.prototype.clear=Vr,Br.prototype.delete=Hr,Br.prototype.get=Ur,Br.prototype.has=Wr,Br.prototype.set=Gr;function Kr(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Br;++t<n;)this.add(e[t])}function qr(e){return this.__data__.set(e,i),this}function Jr(e){return this.__data__.has(e)}Kr.prototype.add=Kr.prototype.push=qr,Kr.prototype.has=Jr;function Yr(e){var t=this.__data__=new Pr(e);this.size=t.size}function Xr(){this.__data__=new Pr,this.size=0}function Zr(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}function Qr(e){return this.__data__.get(e)}function $r(e){return this.__data__.has(e)}function ei(e,t){var n=this.__data__;if(n instanceof Pr){var r=n.__data__;if(!tn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Br(r)}return n.set(e,t),this.size=n.size,this}Yr.prototype.clear=Xr,Yr.prototype.delete=Zr,Yr.prototype.get=Qr,Yr.prototype.has=$r,Yr.prototype.set=ei;function ti(e,t){var n=V(e),r=!n&&nu(e),i=!n&&!r&&su(e),a=!n&&!r&&!i&&Pu(e),o=n||r||i||a,s=o?zn(e.length,at):[],c=s.length;for(var l in e)(t||ft.call(e,l))&&!(o&&(l==`length`||i&&(l==`offset`||l==`parent`)||a&&(l==`buffer`||l==`byteLength`||l==`byteOffset`)||ns(l,c)))&&s.push(l);return s}function ni(e){var t=e.length;return t?e[ma(0,t-1)]:n}function ri(e,t){return Ts(eo(e),pi(t,0,e.length))}function ii(e){return Ts(eo(e))}function ai(e,t,r){(r!==n&&!$l(e[t],r)||r===n&&!(t in e))&&di(e,t,r)}function oi(e,t,r){var i=e[t];(!(ft.call(e,t)&&$l(i,r))||r===n&&!(t in e))&&di(e,t,r)}function si(e,t){for(var n=e.length;n--;)if($l(e[n][0],t))return n;return-1}function ci(e,t,n,r){return yi(e,function(e,i,a){t(r,e,n(e),a)}),r}function li(e,t){return e&&to(t,hd(t),e)}function ui(e,t){return e&&to(t,gd(t),e)}function di(e,t,n){t==`__proto__`&&At?At(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function fi(e,t){for(var r=-1,i=t.length,a=ze(i),o=e==null;++r<i;)a[r]=o?n:ld(e,t[r]);return a}function pi(e,t,r){return e===e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function mi(e,t,r,i,a,o){var s,c=t&1,l=t&2,u=t&4;if(r&&(s=a?r(e,i,a,o):r(e)),s!==n)return s;if(!vu(e))return e;var d=V(e);if(d){if(s=Zo(e),!c)return eo(e,s)}else{var f=qo(e),p=f==ne||f==re;if(su(e))return Wa(e,c);if(f==ae||f==C||p&&!a){if(s=l||p?{}:Qo(e),!c)return l?ro(e,ui(s,e)):no(e,li(s,e))}else{if(!I[f])return a?e:{};s=$o(e,f,c)}}o||=new Yr;var m=o.get(e);if(m)return m;o.set(e,s),ju(e)?e.forEach(function(n){s.add(mi(n,t,r,n,e,o))}):bu(e)&&e.forEach(function(n,i){s.set(i,mi(n,t,r,i,e,o))});var h=d?n:(u?l?Lo:Io:l?gd:hd)(e);return hn(h||e,function(n,i){h&&(i=n,n=e[i]),oi(s,i,mi(n,t,r,i,e,o))}),s}function hi(e){var t=hd(e);return function(n){return gi(n,e,t)}}function gi(e,t,r){var i=r.length;if(e==null)return!i;for(e=it(e);i--;){var a=r[i],o=t[a],s=e[a];if(s===n&&!(a in e)||!o(s))return!1}return!0}function _i(e,t,i){if(typeof e!=`function`)throw new ot(r);return xs(function(){e.apply(n,i)},t)}function vi(e,t,n,r){var i=-1,a=yn,o=!0,s=e.length,c=[],l=t.length;if(!s)return c;n&&(t=xn(t,Hn(n))),r?(a=bn,o=!1):t.length>=200&&(a=Wn,o=!1,t=new Kr(t));outer:for(;++i<s;){var u=e[i],d=n==null?u:n(u);if(u=r||u!==0?u:0,o&&d===d){for(var f=l;f--;)if(t[f]===d)continue outer;c.push(u)}else a(t,d,r)||c.push(u)}return c}var yi=oo(Oi),bi=oo(ki,!0);function xi(e,t){var n=!0;return yi(e,function(e,r,i){return n=!!t(e,r,i),n}),n}function Si(e,t,r){for(var i=-1,a=e.length;++i<a;){var o=e[i],s=t(o);if(s!=null&&(c===n?s===s&&!Nu(s):r(s,c)))var c=s,l=o}return l}function Ci(e,t,r,i){var a=e.length;for(r=Hu(r),r<0&&(r=-r>a?0:a+r),i=i===n||i>a?a:Hu(i),i<0&&(i+=a),i=r>i?0:Uu(i);r<i;)e[r++]=t;return e}function wi(e,t){var n=[];return yi(e,function(e,r,i){t(e,r,i)&&n.push(e)}),n}function Ti(e,t,n,r,i){var a=-1,o=e.length;for(n||=ts,i||=[];++a<o;){var s=e[a];t>0&&n(s)?t>1?Ti(s,t-1,n,r,i):Sn(i,s):r||(i[i.length]=s)}return i}var Ei=so(),Di=so(!0);function Oi(e,t){return e&&Ei(e,t,hd)}function ki(e,t){return e&&Di(e,t,hd)}function Ai(e,t){return vn(t,function(t){return hu(e[t])})}function ji(e,t){t=Ba(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[Ds(t[r++])];return r&&r==i?e:n}function Mi(e,t,n){var r=t(e);return V(e)?r:Sn(r,n(e))}function Ni(e){return e==null?e===n?le:k:kt&&kt in it(e)?Wo(e):hs(e)}function Pi(e,t){return e>t}function Fi(e,t){return e!=null&&ft.call(e,t)}function Ii(e,t){return e!=null&&t in it(e)}function Li(e,t,n){return e>=Kt(t,n)&&e<F(t,n)}function Ri(e,t,r){for(var i=r?bn:yn,a=e[0].length,o=e.length,s=o,c=ze(o),l=1/0,u=[];s--;){var d=e[s];s&&t&&(d=xn(d,Hn(t))),l=Kt(d.length,l),c[s]=!r&&(t||a>=120&&d.length>=120)?new Kr(s&&d):n}d=e[0];var f=-1,p=c[0];outer:for(;++f<a&&u.length<l;){var m=d[f],h=t?t(m):m;if(m=r||m!==0?m:0,!(p?Wn(p,h):i(u,h,r))){for(s=o;--s;){var g=c[s];if(!(g?Wn(g,h):i(e[s],h,r)))continue outer}p&&p.push(h),u.push(m)}}return u}function zi(e,t,n,r){return Oi(e,function(e,i,a){t(r,n(e),i,a)}),r}function Bi(e,t,r){t=Ba(t,e),e=_s(e,t);var i=e==null?e:e[Ds(tc(t))];return i==null?n:pn(i,e,r)}function Vi(e){return yu(e)&&Ni(e)==C}function Hi(e){return yu(e)&&Ni(e)==fe}function Ui(e){return yu(e)&&Ni(e)==ee}function Wi(e,t,n,r,i){return e===t?!0:e==null||t==null||!yu(e)&&!yu(t)?e!==e&&t!==t:Gi(e,t,n,r,Wi,i)}function Gi(e,t,n,r,i,a){var o=V(e),s=V(t),c=o?w:qo(e),l=s?w:qo(t);c=c==C?ae:c,l=l==C?ae:l;var u=c==ae,d=l==ae,f=c==l;if(f&&su(e)){if(!su(t))return!1;o=!0,u=!1}if(f&&!u)return a||=new Yr,o||Pu(e)?Mo(e,t,n,r,i,a):No(e,t,c,n,r,i,a);if(!(n&1)){var p=u&&ft.call(e,`__wrapped__`),m=d&&ft.call(t,`__wrapped__`);if(p||m){var h=p?e.value():e,g=m?t.value():t;return a||=new Yr,i(h,g,n,r,a)}}return f?(a||=new Yr,Po(e,t,n,r,i,a)):!1}function Ki(e){return yu(e)&&qo(e)==O}function qi(e,t,r,i){var a=r.length,o=a,s=!i;if(e==null)return!o;for(e=it(e);a--;){var c=r[a];if(s&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++a<o;){c=r[a];var l=c[0],u=e[l],d=c[1];if(s&&c[2]){if(u===n&&!(l in e))return!1}else{var f=new Yr;if(i)var p=i(u,d,l,e,t,f);if(!(p===n?Wi(d,u,3,i,f):p))return!1}}return!0}function Ji(e){return!vu(e)||ss(e)?!1:(hu(e)?vt:Ye).test(Os(e))}function Yi(e){return yu(e)&&Ni(e)==j}function Xi(e){return yu(e)&&qo(e)==M}function Zi(e){return yu(e)&&_u(e.length)&&!!Gt[Ni(e)]}function Qi(e){return typeof e==`function`?e:e==null?wf:typeof e==`object`?V(e)?ia(e[0],e[1]):ra(e):Lf(e)}function $i(e){if(!ls(e))return Ht(e);var t=[];for(var n in it(e))ft.call(e,n)&&n!=`constructor`&&t.push(n);return t}function ea(e){if(!vu(e))return ms(e);var t=ls(e),n=[];for(var r in e)r==`constructor`&&(t||!ft.call(e,r))||n.push(r);return n}function ta(e,t){return e<t}function na(e,t){var n=-1,r=iu(e)?ze(e.length):[];return yi(e,function(e,i,a){r[++n]=t(e,i,a)}),r}function ra(e){var t=Ho(e);return t.length==1&&t[0][2]?ds(t[0][0],t[0][1]):function(n){return n===e||qi(n,e,t)}}function ia(e,t){return is(e)&&us(t)?ds(Ds(e),t):function(r){var i=ld(r,e);return i===n&&i===t?dd(r,e):Wi(t,i,3)}}function aa(e,t,r,i,a){e!==t&&Ei(t,function(o,s){if(a||=new Yr,vu(o))oa(e,t,s,r,aa,i,a);else{var c=i?i(ys(e,s),o,s+``,e,t,a):n;c===n&&(c=o),ai(e,s,c)}},gd)}function oa(e,t,r,i,a,o,s){var c=ys(e,r),l=ys(t,r),u=s.get(l);if(u){ai(e,r,u);return}var d=o?o(c,l,r+``,e,t,s):n,f=d===n;if(f){var p=V(l),m=!p&&su(l),h=!p&&!m&&Pu(l);d=l,p||m||h?V(c)?d=c:au(c)?d=eo(c):m?(f=!1,d=Wa(l,!0)):h?(f=!1,d=Ya(l,!0)):d=[]:Ou(l)||nu(l)?(d=c,nu(c)?d=Gu(c):(!vu(c)||hu(c))&&(d=Qo(l))):f=!1}f&&(s.set(l,d),a(d,l,i,o,s),s.delete(l)),ai(e,r,d)}function sa(e,t){var r=e.length;if(r)return t+=t<0?r:0,ns(t,r)?e[t]:n}function ca(e,t,n){t=t.length?xn(t,function(e){return V(e)?function(t){return ji(t,e.length===1?e[0]:e)}:e}):[wf];var r=-1;return t=xn(t,Hn(z())),Ln(na(e,function(e,n,i){return{criteria:xn(t,function(t){return t(e)}),index:++r,value:e}}),function(e,t){return Za(e,t,n)})}function la(e,t){return ua(e,t,function(t,n){return dd(e,n)})}function ua(e,t,n){for(var r=-1,i=t.length,a={};++r<i;){var o=t[r],s=ji(e,o);n(s,o)&&ba(a,Ba(o,e),s)}return a}function da(e){return function(t){return ji(t,e)}}function fa(e,t,n,r){var i=r?jn:L,a=-1,o=t.length,s=e;for(e===t&&(t=eo(t)),n&&(s=xn(e,Hn(n)));++a<o;)for(var c=0,l=t[a],u=n?n(l):l;(c=i(s,u,c,r))>-1;)s!==e&&Et.call(s,c,1),Et.call(e,c,1);return e}function pa(e,t){for(var n=e?t.length:0,r=n-1;n--;){var i=t[n];if(n==r||i!==a){var a=i;ns(i)?Et.call(e,i,1):Ma(e,i)}}return e}function ma(e,t){return e+Ft(Yt()*(t-e+1))}function ha(e,t,n,r){for(var i=-1,a=F(Pt((t-e)/(n||1)),0),o=ze(a);a--;)o[r?a:++i]=e,e+=n;return o}function ga(e,t){var n=``;if(!e||t<1||t>g)return n;do t%2&&(n+=e),t=Ft(t/2),t&&(e+=e);while(t);return n}function _a(e,t){return Ss(gs(e,t,wf),e+``)}function va(e){return ni(Pd(e))}function ya(e,t){var n=Pd(e);return Ts(n,pi(t,0,n.length))}function ba(e,t,r,i){if(!vu(e))return e;t=Ba(t,e);for(var a=-1,o=t.length,s=o-1,c=e;c!=null&&++a<o;){var l=Ds(t[a]),u=r;if(l===`__proto__`||l===`constructor`||l===`prototype`)return e;if(a!=s){var d=c[l];u=i?i(d,l,c):n,u===n&&(u=vu(d)?d:ns(t[a+1])?[]:{})}oi(c,l,u),c=c[l]}return e}var xa=Dn?function(e,t){return Dn.set(e,t),e}:wf,Sa=At?function(e,t){return At(e,`toString`,{configurable:!0,enumerable:!1,value:bf(t),writable:!0})}:wf;function Ca(e){return Ts(Pd(e))}function wa(e,t,n){var r=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var a=ze(i);++r<i;)a[r]=e[r+t];return a}function Ta(e,t){var n;return yi(e,function(e,r,i){return n=t(e,r,i),!n}),!!n}function Ea(e,t,n){var r=0,i=e==null?r:e.length;if(typeof t==`number`&&t===t&&i<=x){for(;r<i;){var a=r+i>>>1,o=e[a];o!==null&&!Nu(o)&&(n?o<=t:o<t)?r=a+1:i=a}return i}return Da(e,t,wf,n)}function Da(e,t,r,i){var a=0,o=e==null?0:e.length;if(o===0)return 0;t=r(t);for(var s=t!==t,c=t===null,l=Nu(t),u=t===n;a<o;){var d=Ft((a+o)/2),f=r(e[d]),p=f!==n,m=f===null,h=f===f,g=Nu(f);if(s)var _=i||h;else _=u?h&&(i||p):c?h&&p&&(i||!m):l?h&&p&&!m&&(i||!g):m||g?!1:i?f<=t:f<t;_?a=d+1:o=d}return Kt(o,b)}function Oa(e,t){for(var n=-1,r=e.length,i=0,a=[];++n<r;){var o=e[n],s=t?t(o):o;if(!n||!$l(s,c)){var c=s;a[i++]=o===0?0:o}}return a}function ka(e){return typeof e==`number`?e:Nu(e)?v:+e}function Aa(e){if(typeof e==`string`)return e;if(V(e))return xn(e,Aa)+``;if(Nu(e))return br?br.call(e):``;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function ja(e,t,n){var r=-1,i=yn,a=e.length,o=!0,s=[],c=s;if(n)o=!1,i=bn;else if(a>=200){var l=t?null:Eo(e);if(l)return ir(l);o=!1,i=Wn,c=new Kr}else c=t?[]:s;outer:for(;++r<a;){var u=e[r],d=t?t(u):u;if(u=n||u!==0?u:0,o&&d===d){for(var f=c.length;f--;)if(c[f]===d)continue outer;t&&c.push(d),s.push(u)}else i(c,d,n)||(c!==s&&c.push(d),s.push(u))}return s}function Ma(e,t){t=Ba(t,e);var n=-1,r=t.length;if(!r)return!0;for(;++n<r;){var i=Ds(t[n]);if(i===`__proto__`&&!ft.call(e,`__proto__`)||(i===`constructor`||i===`prototype`)&&n<r-1)return!1}var a=_s(e,t);return a==null||delete a[Ds(tc(t))]}function Na(e,t,n,r){return ba(e,t,n(ji(e,t)),r)}function Pa(e,t,n,r){for(var i=e.length,a=r?i:-1;(r?a--:++a<i)&&t(e[a],a,e););return n?wa(e,r?0:a,r?a+1:i):wa(e,r?a+1:0,r?i:a)}function Fa(e,t){var n=e;return n instanceof wr&&(n=n.value()),Cn(t,function(e,t){return t.func.apply(t.thisArg,Sn([e],t.args))},n)}function Ia(e,t,n){var r=e.length;if(r<2)return r?ja(e[0]):[];for(var i=-1,a=ze(r);++i<r;)for(var o=e[i],s=-1;++s<r;)s!=i&&(a[i]=vi(a[i]||o,e[s],t,n));return ja(Ti(a,1),t,n)}function La(e,t,r){for(var i=-1,a=e.length,o=t.length,s={};++i<a;){var c=i<o?t[i]:n;r(s,e[i],c)}return s}function Ra(e){return au(e)?e:[]}function za(e){return typeof e==`function`?e:wf}function Ba(e,t){return V(e)?e:is(e,t)?[e]:Es(qu(e))}var Va=_a;function Ha(e,t,r){var i=e.length;return r=r===n?i:r,!t&&r>=i?e:wa(e,t,r)}var Ua=jt||function(e){return en.clearTimeout(e)};function Wa(e,t){if(t)return e.slice();var n=e.length,r=St?St(n):new e.constructor(n);return e.copy(r),r}function Ga(e){var t=new e.constructor(e.byteLength);return new xt(t).set(new xt(e)),t}function Ka(e,t){var n=t?Ga(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}function qa(e){var t=new e.constructor(e.source,Ke.exec(e));return t.lastIndex=e.lastIndex,t}function Ja(e){return yr?it(yr.call(e)):{}}function Ya(e,t){var n=t?Ga(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Xa(e,t){if(e!==t){var r=e!==n,i=e===null,a=e===e,o=Nu(e),s=t!==n,c=t===null,l=t===t,u=Nu(t);if(!c&&!u&&!o&&e>t||o&&s&&l&&!c&&!u||i&&s&&l||!r&&l||!a)return 1;if(!i&&!o&&!u&&e<t||u&&r&&a&&!i&&!o||c&&r&&a||!s&&a||!l)return-1}return 0}function Za(e,t,n){for(var r=-1,i=e.criteria,a=t.criteria,o=i.length,s=n.length;++r<o;){var c=Xa(i[r],a[r]);if(c)return r>=s?c:c*(n[r]==`desc`?-1:1)}return e.index-t.index}function Qa(e,t,n,r){for(var i=-1,a=e.length,o=n.length,s=-1,c=t.length,l=F(a-o,0),u=ze(c+l),d=!r;++s<c;)u[s]=t[s];for(;++i<o;)(d||i<a)&&(u[n[i]]=e[i]);for(;l--;)u[s++]=e[i++];return u}function $a(e,t,n,r){for(var i=-1,a=e.length,o=-1,s=n.length,c=-1,l=t.length,u=F(a-s,0),d=ze(u+l),f=!r;++i<u;)d[i]=e[i];for(var p=i;++c<l;)d[p+c]=t[c];for(;++o<s;)(f||i<a)&&(d[p+n[o]]=e[i++]);return d}function eo(e,t){var n=-1,r=e.length;for(t||=ze(r);++n<r;)t[n]=e[n];return t}function to(e,t,r,i){var a=!r;r||={};for(var o=-1,s=t.length;++o<s;){var c=t[o],l=i?i(r[c],e[c],c,r,e):n;l===n&&(l=e[c]),a?di(r,c,l):oi(r,c,l)}return r}function no(e,t){return to(e,Go(e),t)}function ro(e,t){return to(e,Ko(e),t)}function io(e,t){return function(n,r){var i=V(n)?mn:ci,a=t?t():{};return i(n,e,z(r,2),a)}}function ao(e){return _a(function(t,r){var i=-1,a=r.length,o=a>1?r[a-1]:n,s=a>2?r[2]:n;for(o=e.length>3&&typeof o==`function`?(a--,o):n,s&&rs(r[0],r[1],s)&&(o=a<3?n:o,a=1),t=it(t);++i<a;){var c=r[i];c&&e(t,c,i,o)}return t})}function oo(e,t){return function(n,r){if(n==null)return n;if(!iu(n))return e(n,r);for(var i=n.length,a=t?i:-1,o=it(n);(t?a--:++a<i)&&r(o[a],a,o)!==!1;);return n}}function so(e){return function(t,n,r){for(var i=-1,a=it(t),o=r(t),s=o.length;s--;){var c=o[e?s:++i];if(n(a[c],c,a)===!1)break}return t}}function co(e,t,n){var r=t&o,i=fo(e);function a(){return(this&&this!==en&&this instanceof a?i:e).apply(r?n:this,arguments)}return a}function lo(e){return function(t){t=qu(t);var r=Qn(t)?lr(t):n,i=r?r[0]:t.charAt(0),a=r?Ha(r,1).join(``):t.slice(1);return i[e]()+a}}function uo(e){return function(t){return Cn(hf(Vd(t).replace(Rt,``)),e,``)}}function fo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=xr(e.prototype),r=e.apply(n,t);return vu(r)?r:n}}function po(e,t,r){var i=fo(e);function a(){for(var o=arguments.length,s=ze(o),c=o,l=Bo(a);c--;)s[c]=arguments[c];var u=o<3&&s[0]!==l&&s[o-1]!==l?[]:rr(s,l);return o-=u.length,o<r?wo(e,t,go,a.placeholder,n,s,u,n,n,r-o):pn(this&&this!==en&&this instanceof a?i:e,this,s)}return a}function mo(e){return function(t,r,i){var a=it(t);if(!iu(t)){var o=z(r,3);t=hd(t),r=function(e){return o(a[e],e,a)}}var s=e(t,r,i);return s>-1?a[o?t[s]:s]:n}}function ho(e){return Fo(function(t){var i=t.length,a=i,o=Cr.prototype.thru;for(e&&t.reverse();a--;){var s=t[a];if(typeof s!=`function`)throw new ot(r);if(o&&!l&&zo(s)==`wrapper`)var l=new Cr([],!0)}for(a=l?a:i;++a<i;){s=t[a];var d=zo(s),m=d==`wrapper`?Ro(s):n;l=m&&os(m[0])&&m[1]==(f|c|u|p)&&!m[4].length&&m[9]==1?l[zo(m[0])].apply(l,m[3]):s.length==1&&os(s)?l[d]():l.thru(s)}return function(){var e=arguments,n=e[0];if(l&&e.length==1&&V(n))return l.plant(n).value();for(var r=0,a=i?t[r].apply(this,e):n;++r<i;)a=t[r].call(this,a);return a}})}function go(e,t,r,i,a,u,d,p,h,g){var _=t&f,v=t&o,y=t&s,b=t&(c|l),x=t&m,S=y?n:fo(e);function C(){for(var n=arguments.length,o=ze(n),s=n;s--;)o[s]=arguments[s];if(b)var c=Bo(C),l=qn(o,c);if(i&&(o=Qa(o,i,a,b)),u&&(o=$a(o,u,d,b)),n-=l,b&&n<g){var f=rr(o,c);return wo(e,t,go,C.placeholder,r,o,f,p,h,g-n)}var m=v?r:this,w=y?m[e]:e;return n=o.length,p?o=vs(o,p):x&&n>1&&o.reverse(),_&&h<n&&(o.length=h),this&&this!==en&&this instanceof C&&(w=S||fo(w)),w.apply(m,o)}return C}function _o(e,t){return function(n,r){return zi(n,e,t(r),{})}}function vo(e,t){return function(r,i){var a;if(r===n&&i===n)return t;if(r!==n&&(a=r),i!==n){if(a===n)return i;typeof r==`string`||typeof i==`string`?(r=Aa(r),i=Aa(i)):(r=ka(r),i=ka(i)),a=e(r,i)}return a}}function yo(e){return Fo(function(t){return t=xn(t,Hn(z())),_a(function(n){var r=this;return e(t,function(e){return pn(e,r,n)})})})}function bo(e,t){t=t===n?` `:Aa(t);var r=t.length;if(r<2)return r?ga(t,e):t;var i=ga(t,Pt(e/cr(t)));return Qn(t)?Ha(lr(i),0,e).join(``):i.slice(0,e)}function xo(e,t,n,r){var i=t&o,a=fo(e);function s(){for(var t=-1,o=arguments.length,c=-1,l=r.length,u=ze(l+o),d=this&&this!==en&&this instanceof s?a:e;++c<l;)u[c]=r[c];for(;o--;)u[c++]=arguments[++t];return pn(d,i?n:this,u)}return s}function So(e){return function(t,r,i){return i&&typeof i!=`number`&&rs(t,r,i)&&(r=i=n),t=Vu(t),r===n?(r=t,t=0):r=Vu(r),i=i===n?t<r?1:-1:Vu(i),ha(t,r,i,e)}}function Co(e){return function(t,n){return(typeof t!=`string`||typeof n!=`string`)&&(t=Wu(t),n=Wu(n)),e(t,n)}}function wo(e,t,r,i,a,l,f,p,m,h){var g=t&c,_=g?f:n,v=g?n:f,y=g?l:n,b=g?n:l;t|=g?u:d,t&=~(g?d:u),t&4||(t&=~(o|s));var x=[e,t,a,y,_,b,v,p,m,h],S=r.apply(n,x);return os(e)&&bs(S,x),S.placeholder=i,Cs(S,e,t)}function To(e){var t=rt[e];return function(e,n){if(e=Wu(e),n=n==null?0:Kt(Hu(n),292),n&&Bt(e)){var r=(qu(e)+`e`).split(`e`);return r=(qu(t(r[0]+`e`+(+r[1]+n)))+`e`).split(`e`),+(r[0]+`e`+(+r[1]-n))}return t(e)}}var Eo=an&&1/ir(new an([,-0]))[1]==h?function(e){return new an(e)}:Mf;function Do(e){return function(t){var n=qo(t);return n==O?tr(t):n==M?ar(t):Bn(t,e(t))}}function Oo(e,t,i,a,f,p,m,h){var g=t&s;if(!g&&typeof e!=`function`)throw new ot(r);var _=a?a.length:0;if(_||(t&=~(u|d),a=f=n),m=m===n?m:F(Hu(m),0),h=h===n?h:Hu(h),_-=f?f.length:0,t&d){var v=a,y=f;a=f=n}var b=g?n:Ro(e),x=[e,t,i,a,f,v,y,p,m,h];if(b&&ps(x,b),e=x[0],t=x[1],i=x[2],a=x[3],f=x[4],h=x[9]=x[9]===n?g?0:e.length:F(x[9]-_,0),!h&&t&(c|l)&&(t&=~(c|l)),!t||t==o)var S=co(e,t,i);else S=t==c||t==l?po(e,t,h):(t==u||t==(o|u))&&!f.length?xo(e,t,i,a):go.apply(n,x);return Cs((b?xa:bs)(S,x),e,t)}function ko(e,t,r,i){return e===n||$l(e,lt[r])&&!ft.call(i,r)?t:e}function Ao(e,t,r,i,a,o){return vu(e)&&vu(t)&&(o.set(t,e),aa(e,t,n,Ao,o),o.delete(t)),e}function jo(e){return Ou(e)?n:e}function Mo(e,t,r,i,a,o){var s=r&1,c=e.length,l=t.length;if(c!=l&&!(s&&l>c))return!1;var u=o.get(e),d=o.get(t);if(u&&d)return u==t&&d==e;var f=-1,p=!0,m=r&2?new Kr:n;for(o.set(e,t),o.set(t,e);++f<c;){var h=e[f],g=t[f];if(i)var _=s?i(g,h,f,t,e,o):i(h,g,f,e,t,o);if(_!==n){if(_)continue;p=!1;break}if(m){if(!Tn(t,function(e,t){if(!Wn(m,t)&&(h===e||a(h,e,r,i,o)))return m.push(t)})){p=!1;break}}else if(!(h===g||a(h,g,r,i,o))){p=!1;break}}return o.delete(e),o.delete(t),p}function No(e,t,n,r,i,a,o){switch(n){case pe:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case fe:return!(e.byteLength!=t.byteLength||!a(new xt(e),new xt(t)));case E:case ee:case ie:return $l(+e,+t);case D:return e.name==t.name&&e.message==t.message;case j:case se:return e==t+``;case O:var s=tr;case M:var c=r&1;if(s||=ir,e.size!=t.size&&!c)return!1;var l=o.get(e);if(l)return l==t;r|=2,o.set(e,t);var u=Mo(s(e),s(t),r,i,a,o);return o.delete(e),u;case ce:if(yr)return yr.call(e)==yr.call(t)}return!1}function Po(e,t,r,i,a,o){var s=r&1,c=Io(e),l=c.length;if(l!=Io(t).length&&!s)return!1;for(var u=l;u--;){var d=c[u];if(!(s?d in t:ft.call(t,d)))return!1}var f=o.get(e),p=o.get(t);if(f&&p)return f==t&&p==e;var m=!0;o.set(e,t),o.set(t,e);for(var h=s;++u<l;){d=c[u];var g=e[d],_=t[d];if(i)var v=s?i(_,g,d,t,e,o):i(g,_,d,e,t,o);if(!(v===n?g===_||a(g,_,r,i,o):v)){m=!1;break}h||=d==`constructor`}if(m&&!h){var y=e.constructor,b=t.constructor;y!=b&&`constructor`in e&&`constructor`in t&&!(typeof y==`function`&&y instanceof y&&typeof b==`function`&&b instanceof b)&&(m=!1)}return o.delete(e),o.delete(t),m}function Fo(e){return Ss(gs(e,n,Ws),e+``)}function Io(e){return Mi(e,hd,Go)}function Lo(e){return Mi(e,gd,Ko)}var Ro=Dn?function(e){return Dn.get(e)}:Mf;function zo(e){for(var t=e.name+``,n=Fn[t],r=ft.call(Fn,t)?n.length:0;r--;){var i=n[r],a=i.func;if(a==null||a==e)return i.name}return t}function Bo(e){return(ft.call(R,`placeholder`)?R:e).placeholder}function z(){var e=R.iteratee||Tf;return e=e===Tf?Qi:e,arguments.length?e(arguments[0],arguments[1]):e}function Vo(e,t){var n=e.__data__;return as(t)?n[typeof t==`string`?`string`:`hash`]:n.map}function Ho(e){for(var t=hd(e),n=t.length;n--;){var r=t[n],i=e[r];t[n]=[r,i,us(i)]}return t}function Uo(e,t){var r=Zn(e,t);return Ji(r)?r:n}function Wo(e){var t=ft.call(e,kt),r=e[kt];try{e[kt]=n;var i=!0}catch{}var a=ht.call(e);return i&&(t?e[kt]=r:delete e[kt]),a}var Go=It?function(e){return e==null?[]:(e=it(e),vn(It(e),function(t){return Tt.call(e,t)}))}:Vf,Ko=It?function(e){for(var t=[];e;)Sn(t,Go(e)),e=Ct(e);return t}:Vf,qo=Ni;($t&&qo(new $t(new ArrayBuffer(1)))!=pe||tn&&qo(new tn)!=O||nn&&qo(nn.resolve())!=oe||an&&qo(new an)!=M||on&&qo(new on)!=ue)&&(qo=function(e){var t=Ni(e),r=t==ae?e.constructor:n,i=r?Os(r):``;if(i)switch(i){case or:return pe;case fr:return O;case pr:return oe;case gr:return M;case _r:return ue}return t});function Jo(e,t,n){for(var r=-1,i=n.length;++r<i;){var a=n[r],o=a.size;switch(a.type){case`drop`:e+=o;break;case`dropRight`:t-=o;break;case`take`:t=Kt(t,e+o);break;case`takeRight`:e=F(e,t-o)}}return{start:e,end:t}}function Yo(e){var t=e.match(Ve);return t?t[1].split(He):[]}function Xo(e,t,n){t=Ba(t,e);for(var r=-1,i=t.length,a=!1;++r<i;){var o=Ds(t[r]);if(!(a=e!=null&&n(e,o)))break;e=e[o]}return a||++r!=i?a:(i=e==null?0:e.length,!!i&&_u(i)&&ns(o,i)&&(V(e)||nu(e)))}function Zo(e){var t=e.length,n=new e.constructor(t);return t&&typeof e[0]==`string`&&ft.call(e,`index`)&&(n.index=e.index,n.input=e.input),n}function Qo(e){return typeof e.constructor==`function`&&!ls(e)?xr(Ct(e)):{}}function $o(e,t,n){var r=e.constructor;switch(t){case fe:return Ga(e);case E:case ee:return new r(+e);case pe:return Ka(e,n);case me:case he:case ge:case _e:case ve:case ye:case be:case xe:case Se:return Ya(e,n);case O:return new r;case ie:case se:return new r(e);case j:return qa(e);case M:return new r;case ce:return Ja(e)}}function es(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?`& `:``)+t[r],t=t.join(n>2?`, `:` `),e.replace(Be,`{
2418/* [wrapped with `+t+`] */
2419`)}function ts(e){return V(e)||nu(e)||!!(Dt&&e&&e[Dt])}function ns(e,t){var n=typeof e;return t??=g,!!t&&(n==`number`||n!=`symbol`&&Ze.test(e))&&e>-1&&e%1==0&&e<t}function rs(e,t,n){if(!vu(n))return!1;var r=typeof t;return(r==`number`?iu(n)&&ns(t,n.length):r==`string`&&t in n)?$l(n[t],e):!1}function is(e,t){if(V(e))return!1;var n=typeof e;return n==`number`||n==`symbol`||n==`boolean`||e==null||Nu(e)?!0:Pe.test(e)||!Ne.test(e)||t!=null&&e in it(t)}function as(e){var t=typeof e;return t==`string`||t==`number`||t==`symbol`||t==`boolean`?e!==`__proto__`:e===null}function os(e){var t=zo(e),n=R[t];if(typeof n!=`function`||!(t in wr.prototype))return!1;if(e===n)return!0;var r=Ro(n);return!!r&&e===r[0]}function ss(e){return!!mt&&mt in e}var cs=ut?hu:Hf;function ls(e){var t=e&&e.constructor;return e===(typeof t==`function`&&t.prototype||lt)}function us(e){return e===e&&!vu(e)}function ds(e,t){return function(r){return r!=null&&r[e]===t&&(t!==n||e in it(r))}}function fs(e){var t=Fl(e,function(e){return n.size===500&&n.clear(),e}),n=t.cache;return t}function ps(e,t){var n=e[1],r=t[1],i=n|r,l=i<(o|s|f),u=r==f&&n==c||r==f&&n==p&&e[7].length<=t[8]||r==(f|p)&&t[7].length<=t[8]&&n==c;if(!(l||u))return e;r&o&&(e[2]=t[2],i|=n&o?0:4);var d=t[3];if(d){var m=e[3];e[3]=m?Qa(m,d,t[4]):d,e[4]=m?rr(e[3],a):t[4]}return d=t[5],d&&(m=e[5],e[5]=m?$a(m,d,t[6]):d,e[6]=m?rr(e[5],a):t[6]),d=t[7],d&&(e[7]=d),r&f&&(e[8]=e[8]==null?t[8]:Kt(e[8],t[8])),e[9]??=t[9],e[0]=t[0],e[1]=i,e}function ms(e){var t=[];if(e!=null)for(var n in it(e))t.push(n);return t}function hs(e){return ht.call(e)}function gs(e,t,r){return t=F(t===n?e.length-1:t,0),function(){for(var n=arguments,i=-1,a=F(n.length-t,0),o=ze(a);++i<a;)o[i]=n[t+i];i=-1;for(var s=ze(t+1);++i<t;)s[i]=n[i];return s[t]=r(o),pn(e,this,s)}}function _s(e,t){return t.length<2?e:ji(e,wa(t,0,-1))}function vs(e,t){for(var r=e.length,i=Kt(t.length,r),a=eo(e);i--;){var o=t[i];e[i]=ns(o,r)?a[o]:n}return e}function ys(e,t){if((t!==`constructor`||typeof e[t]!=`function`)&&t!=`__proto__`)return e[t]}var bs=ws(xa),xs=Nt||function(e,t){return en.setTimeout(e,t)},Ss=ws(Sa);function Cs(e,t,n){var r=t+``;return Ss(e,es(r,ks(Yo(r),n)))}function ws(e){var t=0,r=0;return function(){var i=qt(),a=16-(i-r);if(r=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Ts(e,t){var r=-1,i=e.length,a=i-1;for(t=t===n?i:t;++r<t;){var o=ma(r,a),s=e[o];e[o]=e[r],e[r]=s}return e.length=t,e}var Es=fs(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(``),e.replace(Fe,function(e,n,r,i){t.push(r?i.replace(We,`$1`):n||e)}),t});function Ds(e){if(typeof e==`string`||Nu(e))return e;var t=e+``;return t==`0`&&1/e==-1/0?`-0`:t}function Os(e){if(e!=null){try{return dt.call(e)}catch{}try{return e+``}catch{}}return``}function ks(e,t){return hn(S,function(n){var r=`_.`+n[0];t&n[1]&&!yn(e,r)&&e.push(r)}),e.sort()}function As(e){if(e instanceof wr)return e.clone();var t=new Cr(e.__wrapped__,e.__chain__);return t.__actions__=eo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}function js(e,t,r){t=(r?rs(e,t,r):t===n)?1:F(Hu(t),0);var i=e==null?0:e.length;if(!i||t<1)return[];for(var a=0,o=0,s=ze(Pt(i/t));a<i;)s[o++]=wa(e,a,a+=t);return s}function Ms(e){for(var t=-1,n=e==null?0:e.length,r=0,i=[];++t<n;){var a=e[t];a&&(i[r++]=a)}return i}function Ns(){var e=arguments.length;if(!e)return[];for(var t=ze(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Sn(V(n)?eo(n):[n],Ti(t,1))}var Ps=_a(function(e,t){return au(e)?vi(e,Ti(t,1,au,!0)):[]}),Fs=_a(function(e,t){var r=tc(t);return au(r)&&(r=n),au(e)?vi(e,Ti(t,1,au,!0),z(r,2)):[]}),Is=_a(function(e,t){var r=tc(t);return au(r)&&(r=n),au(e)?vi(e,Ti(t,1,au,!0),n,r):[]});function Ls(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Hu(t),wa(e,t<0?0:t,i)):[]}function Rs(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Hu(t),t=i-t,wa(e,0,t<0?0:t)):[]}function zs(e,t){return e&&e.length?Pa(e,z(t,3),!0,!0):[]}function Bs(e,t){return e&&e.length?Pa(e,z(t,3),!0):[]}function Vs(e,t,n,r){var i=e==null?0:e.length;return i?(n&&typeof n!=`number`&&rs(e,t,n)&&(n=0,r=i),Ci(e,t,n,r)):[]}function Hs(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Hu(n);return i<0&&(i=F(r+i,0)),An(e,z(t,3),i)}function Us(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i-1;return r!==n&&(a=Hu(r),a=r<0?F(i+a,0):Kt(a,i-1)),An(e,z(t,3),a,!0)}function Ws(e){return e!=null&&e.length?Ti(e,1):[]}function Gs(e){return e!=null&&e.length?Ti(e,h):[]}function Ks(e,t){return e!=null&&e.length?(t=t===n?1:Hu(t),Ti(e,t)):[]}function qs(e){for(var t=-1,n=e==null?0:e.length,r={};++t<n;){var i=e[t];di(r,i[0],i[1])}return r}function Js(e){return e&&e.length?e[0]:n}function Ys(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var i=n==null?0:Hu(n);return i<0&&(i=F(r+i,0)),L(e,t,i)}function Xs(e){return e!=null&&e.length?wa(e,0,-1):[]}var Zs=_a(function(e){var t=xn(e,Ra);return t.length&&t[0]===e[0]?Ri(t):[]}),Qs=_a(function(e){var t=tc(e),r=xn(e,Ra);return t===tc(r)?t=n:r.pop(),r.length&&r[0]===e[0]?Ri(r,z(t,2)):[]}),$s=_a(function(e){var t=tc(e),r=xn(e,Ra);return t=typeof t==`function`?t:n,t&&r.pop(),r.length&&r[0]===e[0]?Ri(r,n,t):[]});function ec(e,t){return e==null?``:Vt.call(e,t)}function tc(e){var t=e==null?0:e.length;return t?e[t-1]:n}function nc(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var a=i;return r!==n&&(a=Hu(r),a=a<0?F(i+a,0):Kt(a,i-1)),t===t?sr(e,t,a):An(e,Mn,a,!0)}function rc(e,t){return e&&e.length?sa(e,Hu(t)):n}var ic=_a(ac);function ac(e,t){return e&&e.length&&t&&t.length?fa(e,t):e}function oc(e,t,n){return e&&e.length&&t&&t.length?fa(e,t,z(n,2)):e}function sc(e,t,r){return e&&e.length&&t&&t.length?fa(e,t,n,r):e}var cc=Fo(function(e,t){var n=e==null?0:e.length,r=fi(e,t);return pa(e,xn(t,function(e){return ns(e,n)?+e:e}).sort(Xa)),r});function lc(e,t){var n=[];if(!(e&&e.length))return n;var r=-1,i=[],a=e.length;for(t=z(t,3);++r<a;){var o=e[r];t(o,r,e)&&(n.push(o),i.push(r))}return pa(e,i),n}function uc(e){return e==null?e:Qt.call(e)}function dc(e,t,r){var i=e==null?0:e.length;return i?(r&&typeof r!=`number`&&rs(e,t,r)?(t=0,r=i):(t=t==null?0:Hu(t),r=r===n?i:Hu(r)),wa(e,t,r)):[]}function fc(e,t){return Ea(e,t)}function pc(e,t,n){return Da(e,t,z(n,2))}function mc(e,t){var n=e==null?0:e.length;if(n){var r=Ea(e,t);if(r<n&&$l(e[r],t))return r}return-1}function hc(e,t){return Ea(e,t,!0)}function gc(e,t,n){return Da(e,t,z(n,2),!0)}function _c(e,t){if(e!=null&&e.length){var n=Ea(e,t,!0)-1;if($l(e[n],t))return n}return-1}function vc(e){return e&&e.length?Oa(e):[]}function yc(e,t){return e&&e.length?Oa(e,z(t,2)):[]}function bc(e){var t=e==null?0:e.length;return t?wa(e,1,t):[]}function xc(e,t,r){return e&&e.length?(t=r||t===n?1:Hu(t),wa(e,0,t<0?0:t)):[]}function Sc(e,t,r){var i=e==null?0:e.length;return i?(t=r||t===n?1:Hu(t),t=i-t,wa(e,t<0?0:t,i)):[]}function Cc(e,t){return e&&e.length?Pa(e,z(t,3),!1,!0):[]}function B(e,t){return e&&e.length?Pa(e,z(t,3)):[]}var wc=_a(function(e){return ja(Ti(e,1,au,!0))}),Tc=_a(function(e){var t=tc(e);return au(t)&&(t=n),ja(Ti(e,1,au,!0),z(t,2))}),Ec=_a(function(e){var t=tc(e);return t=typeof t==`function`?t:n,ja(Ti(e,1,au,!0),n,t)});function Dc(e){return e&&e.length?ja(e):[]}function Oc(e,t){return e&&e.length?ja(e,z(t,2)):[]}function kc(e,t){return t=typeof t==`function`?t:n,e&&e.length?ja(e,n,t):[]}function Ac(e){if(!(e&&e.length))return[];var t=0;return e=vn(e,function(e){if(au(e))return t=F(e.length,t),!0}),zn(t,function(t){return xn(e,Pn(t))})}function jc(e,t){if(!(e&&e.length))return[];var r=Ac(e);return t==null?r:xn(r,function(e){return pn(t,n,e)})}var Mc=_a(function(e,t){return au(e)?vi(e,t):[]}),Nc=_a(function(e){return Ia(vn(e,au))}),Pc=_a(function(e){var t=tc(e);return au(t)&&(t=n),Ia(vn(e,au),z(t,2))}),Fc=_a(function(e){var t=tc(e);return t=typeof t==`function`?t:n,Ia(vn(e,au),n,t)}),Ic=_a(Ac);function Lc(e,t){return La(e||[],t||[],oi)}function Rc(e,t){return La(e||[],t||[],ba)}var zc=_a(function(e){var t=e.length,r=t>1?e[t-1]:n;return r=typeof r==`function`?(e.pop(),r):n,jc(e,r)});function Bc(e){var t=R(e);return t.__chain__=!0,t}function Vc(e,t){return t(e),e}function Hc(e,t){return t(e)}var Uc=Fo(function(e){var t=e.length,r=t?e[0]:0,i=this.__wrapped__,a=function(t){return fi(t,e)};return t>1||this.__actions__.length||!(i instanceof wr)||!ns(r)?this.thru(a):(i=i.slice(r,+r+ +!!t),i.__actions__.push({func:Hc,args:[a],thisArg:n}),new Cr(i,this.__chain__).thru(function(e){return t&&!e.length&&e.push(n),e}))});function Wc(){return Bc(this)}function Gc(){return new Cr(this.value(),this.__chain__)}function Kc(){this.__values__===n&&(this.__values__=Bu(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}}function qc(){return this}function Jc(e){for(var t,r=this;r instanceof Sr;){var i=As(r);i.__index__=0,i.__values__=n,t?a.__wrapped__=i:t=i;var a=i;r=r.__wrapped__}return a.__wrapped__=e,t}function Yc(){var e=this.__wrapped__;if(e instanceof wr){var t=e;return this.__actions__.length&&(t=new wr(this)),t=t.reverse(),t.__actions__.push({func:Hc,args:[uc],thisArg:n}),new Cr(t,this.__chain__)}return this.thru(uc)}function Xc(){return Fa(this.__wrapped__,this.__actions__)}var Zc=io(function(e,t,n){ft.call(e,n)?++e[n]:di(e,n,1)});function Qc(e,t,r){var i=V(e)?_n:xi;return r&&rs(e,t,r)&&(t=n),i(e,z(t,3))}function $c(e,t){return(V(e)?vn:wi)(e,z(t,3))}var el=mo(Hs),tl=mo(Us);function nl(e,t){return Ti(dl(e,t),1)}function rl(e,t){return Ti(dl(e,t),h)}function il(e,t,r){return r=r===n?1:Hu(r),Ti(dl(e,t),r)}function al(e,t){return(V(e)?hn:yi)(e,z(t,3))}function ol(e,t){return(V(e)?gn:bi)(e,z(t,3))}var sl=io(function(e,t,n){ft.call(e,n)?e[n].push(t):di(e,n,[t])});function cl(e,t,n,r){e=iu(e)?e:Pd(e),n=n&&!r?Hu(n):0;var i=e.length;return n<0&&(n=F(i+n,0)),Mu(e)?n<=i&&e.indexOf(t,n)>-1:!!i&&L(e,t,n)>-1}var ll=_a(function(e,t,n){var r=-1,i=typeof t==`function`,a=iu(e)?ze(e.length):[];return yi(e,function(e){a[++r]=i?pn(t,e,n):Bi(e,t,n)}),a}),ul=io(function(e,t,n){di(e,n,t)});function dl(e,t){return(V(e)?xn:na)(e,z(t,3))}function fl(e,t,r,i){return e==null?[]:(V(t)||(t=t==null?[]:[t]),r=i?n:r,V(r)||(r=r==null?[]:[r]),ca(e,t,r))}var pl=io(function(e,t,n){e[+!n].push(t)},function(){return[[],[]]});function ml(e,t,n){var r=V(e)?Cn:In,i=arguments.length<3;return r(e,z(t,4),n,i,yi)}function hl(e,t,n){var r=V(e)?wn:In,i=arguments.length<3;return r(e,z(t,4),n,i,bi)}function gl(e,t){return(V(e)?vn:wi)(e,Il(z(t,3)))}function _l(e){return(V(e)?ni:va)(e)}function vl(e,t,r){return t=(r?rs(e,t,r):t===n)?1:Hu(t),(V(e)?ri:ya)(e,t)}function yl(e){return(V(e)?ii:Ca)(e)}function bl(e){if(e==null)return 0;if(iu(e))return Mu(e)?cr(e):e.length;var t=qo(e);return t==O||t==M?e.size:$i(e).length}function xl(e,t,r){var i=V(e)?Tn:Ta;return r&&rs(e,t,r)&&(t=n),i(e,z(t,3))}var Sl=_a(function(e,t){if(e==null)return[];var n=t.length;return n>1&&rs(e,t[0],t[1])?t=[]:n>2&&rs(t[0],t[1],t[2])&&(t=[t[0]]),ca(e,Ti(t,1),[])}),Cl=Mt||function(){return en.Date.now()};function wl(e,t){if(typeof t!=`function`)throw new ot(r);return e=Hu(e),function(){if(--e<1)return t.apply(this,arguments)}}function Tl(e,t,r){return t=r?n:t,t=e&&t==null?e.length:t,Oo(e,f,n,n,n,n,t)}function El(e,t){var i;if(typeof t!=`function`)throw new ot(r);return e=Hu(e),function(){return--e>0&&(i=t.apply(this,arguments)),e<=1&&(t=n),i}}var Dl=_a(function(e,t,n){var r=o;if(n.length){var i=rr(n,Bo(Dl));r|=u}return Oo(e,r,t,n,i)}),Ol=_a(function(e,t,n){var r=o|s;if(n.length){var i=rr(n,Bo(Ol));r|=u}return Oo(t,r,e,n,i)});function kl(e,t,r){t=r?n:t;var i=Oo(e,c,n,n,n,n,n,t);return i.placeholder=kl.placeholder,i}function Al(e,t,r){t=r?n:t;var i=Oo(e,l,n,n,n,n,n,t);return i.placeholder=Al.placeholder,i}function jl(e,t,i){var a,o,s,c,l,u,d=0,f=!1,p=!1,m=!0;if(typeof e!=`function`)throw new ot(r);t=Wu(t)||0,vu(i)&&(f=!!i.leading,p=`maxWait`in i,s=p?F(Wu(i.maxWait)||0,t):s,m=`trailing`in i?!!i.trailing:m);function h(t){var r=a,i=o;return a=o=n,d=t,c=e.apply(i,r),c}function g(e){return d=e,l=xs(y,t),f?h(e):c}function _(e){var n=e-u,r=e-d,i=t-n;return p?Kt(i,s-r):i}function v(e){var r=e-u,i=e-d;return u===n||r>=t||r<0||p&&i>=s}function y(){var e=Cl();if(v(e))return b(e);l=xs(y,_(e))}function b(e){return l=n,m&&a?h(e):(a=o=n,c)}function x(){l!==n&&Ua(l),d=0,a=u=o=l=n}function S(){return l===n?c:b(Cl())}function C(){var e=Cl(),r=v(e);if(a=arguments,o=this,u=e,r){if(l===n)return g(u);if(p)return Ua(l),l=xs(y,t),h(u)}return l===n&&(l=xs(y,t)),c}return C.cancel=x,C.flush=S,C}var Ml=_a(function(e,t){return _i(e,1,t)}),Nl=_a(function(e,t,n){return _i(e,Wu(t)||0,n)});function Pl(e){return Oo(e,m)}function Fl(e,t){if(typeof e!=`function`||t!=null&&typeof t!=`function`)throw new ot(r);var n=function(){var r=arguments,i=t?t.apply(this,r):r[0],a=n.cache;if(a.has(i))return a.get(i);var o=e.apply(this,r);return n.cache=a.set(i,o)||a,o};return n.cache=new(Fl.Cache||Br),n}Fl.Cache=Br;function Il(e){if(typeof e!=`function`)throw new ot(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}function Ll(e){return El(2,e)}var Rl=Va(function(e,t){t=t.length==1&&V(t[0])?xn(t[0],Hn(z())):xn(Ti(t,1),Hn(z()));var n=t.length;return _a(function(r){for(var i=-1,a=Kt(r.length,n);++i<a;)r[i]=t[i].call(this,r[i]);return pn(e,this,r)})}),zl=_a(function(e,t){return Oo(e,u,n,t,rr(t,Bo(zl)))}),Bl=_a(function(e,t){return Oo(e,d,n,t,rr(t,Bo(Bl)))}),Vl=Fo(function(e,t){return Oo(e,p,n,n,n,t)});function Hl(e,t){if(typeof e!=`function`)throw new ot(r);return t=t===n?t:Hu(t),_a(e,t)}function Ul(e,t){if(typeof e!=`function`)throw new ot(r);return t=t==null?0:F(Hu(t),0),_a(function(n){var r=n[t],i=Ha(n,0,t);return r&&Sn(i,r),pn(e,this,i)})}function Wl(e,t,n){var i=!0,a=!0;if(typeof e!=`function`)throw new ot(r);return vu(n)&&(i=`leading`in n?!!n.leading:i,a=`trailing`in n?!!n.trailing:a),jl(e,t,{leading:i,maxWait:t,trailing:a})}function Gl(e){return Tl(e,1)}function Kl(e,t){return zl(za(t),e)}function ql(){if(!arguments.length)return[];var e=arguments[0];return V(e)?e:[e]}function Jl(e){return mi(e,4)}function Yl(e,t){return t=typeof t==`function`?t:n,mi(e,4,t)}function Xl(e){return mi(e,5)}function Zl(e,t){return t=typeof t==`function`?t:n,mi(e,5,t)}function Ql(e,t){return t==null||gi(e,t,hd(t))}function $l(e,t){return e===t||e!==e&&t!==t}var eu=Co(Pi),tu=Co(function(e,t){return e>=t}),nu=Vi(function(){return arguments}())?Vi:function(e){return yu(e)&&ft.call(e,`callee`)&&!Tt.call(e,`callee`)},V=ze.isArray,ru=sn?Hn(sn):Hi;function iu(e){return e!=null&&_u(e.length)&&!hu(e)}function au(e){return yu(e)&&iu(e)}function ou(e){return e===!0||e===!1||yu(e)&&Ni(e)==E}var su=Lt||Hf,cu=cn?Hn(cn):Ui;function lu(e){return yu(e)&&e.nodeType===1&&!Ou(e)}function uu(e){if(e==null)return!0;if(iu(e)&&(V(e)||typeof e==`string`||typeof e.splice==`function`||su(e)||Pu(e)||nu(e)))return!e.length;var t=qo(e);if(t==O||t==M)return!e.size;if(ls(e))return!$i(e).length;for(var n in e)if(ft.call(e,n))return!1;return!0}function du(e,t){return Wi(e,t)}function fu(e,t,r){r=typeof r==`function`?r:n;var i=r?r(e,t):n;return i===n?Wi(e,t,n,r):!!i}function pu(e){if(!yu(e))return!1;var t=Ni(e);return t==D||t==te||typeof e.message==`string`&&typeof e.name==`string`&&!Ou(e)}function mu(e){return typeof e==`number`&&Bt(e)}function hu(e){if(!vu(e))return!1;var t=Ni(e);return t==ne||t==re||t==T||t==A}function gu(e){return typeof e==`number`&&e==Hu(e)}function _u(e){return typeof e==`number`&&e>-1&&e%1==0&&e<=g}function vu(e){var t=typeof e;return e!=null&&(t==`object`||t==`function`)}function yu(e){return typeof e==`object`&&!!e}var bu=ln?Hn(ln):Ki;function xu(e,t){return e===t||qi(e,t,Ho(t))}function Su(e,t,r){return r=typeof r==`function`?r:n,qi(e,t,Ho(t),r)}function Cu(e){return Du(e)&&e!=+e}function wu(e){if(cs(e))throw new tt(`Unsupported core-js use. Try https://npms.io/search?q=ponyfill.`);return Ji(e)}function Tu(e){return e===null}function Eu(e){return e==null}function Du(e){return typeof e==`number`||yu(e)&&Ni(e)==ie}function Ou(e){if(!yu(e)||Ni(e)!=ae)return!1;var t=Ct(e);if(t===null)return!0;var n=ft.call(t,`constructor`)&&t.constructor;return typeof n==`function`&&n instanceof n&&dt.call(n)==gt}var ku=un?Hn(un):Yi;function Au(e){return gu(e)&&e>=-g&&e<=g}var ju=dn?Hn(dn):Xi;function Mu(e){return typeof e==`string`||!V(e)&&yu(e)&&Ni(e)==se}function Nu(e){return typeof e==`symbol`||yu(e)&&Ni(e)==ce}var Pu=fn?Hn(fn):Zi;function Fu(e){return e===n}function Iu(e){return yu(e)&&qo(e)==ue}function Lu(e){return yu(e)&&Ni(e)==de}var Ru=Co(ta),zu=Co(function(e,t){return e<=t});function Bu(e){if(!e)return[];if(iu(e))return Mu(e)?lr(e):eo(e);if(Ot&&e[Ot])return er(e[Ot]());var t=qo(e);return(t==O?tr:t==M?ir:Pd)(e)}function Vu(e){return e?(e=Wu(e),e===h||e===-1/0?(e<0?-1:1)*_:e===e?e:0):e===0?e:0}function Hu(e){var t=Vu(e),n=t%1;return t===t?n?t-n:t:0}function Uu(e){return e?pi(Hu(e),0,y):0}function Wu(e){if(typeof e==`number`)return e;if(Nu(e))return v;if(vu(e)){var t=typeof e.valueOf==`function`?e.valueOf():e;e=vu(t)?t+``:t}if(typeof e!=`string`)return e===0?e:+e;e=Vn(e);var n=Je.test(e);return n||Xe.test(e)?Zt(e.slice(2),n?2:8):qe.test(e)?v:+e}function Gu(e){return to(e,gd(e))}function Ku(e){return e?pi(Hu(e),-g,g):e===0?e:0}function qu(e){return e==null?``:Aa(e)}var Ju=ao(function(e,t){if(ls(t)||iu(t)){to(t,hd(t),e);return}for(var n in t)ft.call(t,n)&&oi(e,n,t[n])}),Yu=ao(function(e,t){to(t,gd(t),e)}),Xu=ao(function(e,t,n,r){to(t,gd(t),e,r)}),Zu=ao(function(e,t,n,r){to(t,hd(t),e,r)}),Qu=Fo(fi);function $u(e,t){var n=xr(e);return t==null?n:li(n,t)}var ed=_a(function(e,t){e=it(e);var r=-1,i=t.length,a=i>2?t[2]:n;for(a&&rs(t[0],t[1],a)&&(i=1);++r<i;)for(var o=t[r],s=gd(o),c=-1,l=s.length;++c<l;){var u=s[c],d=e[u];(d===n||$l(d,lt[u])&&!ft.call(e,u))&&(e[u]=o[u])}return e}),td=_a(function(e){return e.push(n,Ao),pn(bd,n,e)});function nd(e,t){return kn(e,z(t,3),Oi)}function rd(e,t){return kn(e,z(t,3),ki)}function id(e,t){return e==null?e:Ei(e,z(t,3),gd)}function ad(e,t){return e==null?e:Di(e,z(t,3),gd)}function H(e,t){return e&&Oi(e,z(t,3))}function od(e,t){return e&&ki(e,z(t,3))}function sd(e){return e==null?[]:Ai(e,hd(e))}function cd(e){return e==null?[]:Ai(e,gd(e))}function ld(e,t,r){var i=e==null?n:ji(e,t);return i===n?r:i}function ud(e,t){return e!=null&&Xo(e,t,Fi)}function dd(e,t){return e!=null&&Xo(e,t,Ii)}var fd=_o(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=ht.call(t)),e[t]=n},bf(wf)),pd=_o(function(e,t,n){t!=null&&typeof t.toString!=`function`&&(t=ht.call(t)),ft.call(e,t)?e[t].push(n):e[t]=[n]},z),md=_a(Bi);function hd(e){return iu(e)?ti(e):$i(e)}function gd(e){return iu(e)?ti(e,!0):ea(e)}function _d(e,t){var n={};return t=z(t,3),Oi(e,function(e,r,i){di(n,t(e,r,i),e)}),n}function vd(e,t){var n={};return t=z(t,3),Oi(e,function(e,r,i){di(n,r,t(e,r,i))}),n}var yd=ao(function(e,t,n){aa(e,t,n)}),bd=ao(function(e,t,n,r){aa(e,t,n,r)}),xd=Fo(function(e,t){var n={};if(e==null)return n;var r=!1;t=xn(t,function(t){return t=Ba(t,e),r||=t.length>1,t}),to(e,Lo(e),n),r&&(n=mi(n,7,jo));for(var i=t.length;i--;)Ma(n,t[i]);return n});function Sd(e,t){return wd(e,Il(z(t)))}var Cd=Fo(function(e,t){return e==null?{}:la(e,t)});function wd(e,t){if(e==null)return{};var n=xn(Lo(e),function(e){return[e]});return t=z(t),ua(e,n,function(e,n){return t(e,n[0])})}function Td(e,t,r){t=Ba(t,e);var i=-1,a=t.length;for(a||(a=1,e=n);++i<a;){var o=e==null?n:e[Ds(t[i])];o===n&&(i=a,o=r),e=hu(o)?o.call(e):o}return e}function Ed(e,t,n){return e==null?e:ba(e,t,n)}function Dd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:ba(e,t,r,i)}var Od=Do(hd),kd=Do(gd);function Ad(e,t,n){var r=V(e),i=r||su(e)||Pu(e);if(t=z(t,4),n==null){var a=e&&e.constructor;n=i?r?new a:[]:vu(e)&&hu(a)?xr(Ct(e)):{}}return(i?hn:Oi)(e,function(e,r,i){return t(n,e,r,i)}),n}function jd(e,t){return e==null||Ma(e,t)}function Md(e,t,n){return e==null?e:Na(e,t,za(n))}function Nd(e,t,r,i){return i=typeof i==`function`?i:n,e==null?e:Na(e,t,za(r),i)}function Pd(e){return e==null?[]:Un(e,hd(e))}function Fd(e){return e==null?[]:Un(e,gd(e))}function Id(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=Wu(r),r=r===r?r:0),t!==n&&(t=Wu(t),t=t===t?t:0),pi(Wu(e),t,r)}function Ld(e,t,r){return t=Vu(t),r===n?(r=t,t=0):r=Vu(r),e=Wu(e),Li(e,t,r)}function Rd(e,t,r){if(r&&typeof r!=`boolean`&&rs(e,t,r)&&(t=r=n),r===n&&(typeof t==`boolean`?(r=t,t=n):typeof e==`boolean`&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=Vu(e),t===n?(t=e,e=0):t=Vu(t)),e>t){var i=e;e=t,t=i}if(r||e%1||t%1){var a=Yt();return Kt(e+a*(t-e+Xt(`1e-`+((a+``).length-1))),t)}return ma(e,t)}var zd=uo(function(e,t,n){return t=t.toLowerCase(),e+(n?Bd(t):t)});function Bd(e){return mf(qu(e).toLowerCase())}function Vd(e){return e=qu(e),e&&e.replace(Qe,Jn).replace(zt,``)}function Hd(e,t,r){e=qu(e),t=Aa(t);var i=e.length;r=r===n?i:pi(Hu(r),0,i);var a=r;return r-=t.length,r>=0&&e.slice(r,a)==t}function Ud(e){return e=qu(e),e&&ke.test(e)?e.replace(De,Yn):e}function Wd(e){return e=qu(e),e&&Le.test(e)?e.replace(Ie,`\\$&`):e}var Gd=uo(function(e,t,n){return e+(n?`-`:``)+t.toLowerCase()}),Kd=uo(function(e,t,n){return e+(n?` `:``)+t.toLowerCase()}),qd=lo(`toLowerCase`);function Jd(e,t,n){e=qu(e),t=Hu(t);var r=t?cr(e):0;if(!t||r>=t)return e;var i=(t-r)/2;return bo(Ft(i),n)+e+bo(Pt(i),n)}function Yd(e,t,n){e=qu(e),t=Hu(t);var r=t?cr(e):0;return t&&r<t?e+bo(t-r,n):e}function Xd(e,t,n){e=qu(e),t=Hu(t);var r=t?cr(e):0;return t&&r<t?bo(t-r,n)+e:e}function Zd(e,t,n){return n||t==null?t=0:t&&=+t,Jt(qu(e).replace(Re,``),t||0)}function Qd(e,t,r){return t=(r?rs(e,t,r):t===n)?1:Hu(t),ga(qu(e),t)}function $d(){var e=arguments,t=qu(e[0]);return e.length<3?t:t.replace(e[1],e[2])}var ef=uo(function(e,t,n){return e+(n?`_`:``)+t.toLowerCase()});function tf(e,t,r){return r&&typeof r!=`number`&&rs(e,t,r)&&(t=r=n),r=r===n?y:r>>>0,r?(e=qu(e),e&&(typeof t==`string`||t!=null&&!ku(t))&&(t=Aa(t),!t&&Qn(e))?Ha(lr(e),0,r):e.split(t,r)):[]}var nf=uo(function(e,t,n){return e+(n?` `:``)+mf(t)});function rf(e,t,n){return e=qu(e),n=n==null?0:pi(Hu(n),0,e.length),t=Aa(t),e.slice(n,n+t.length)==t}function af(e,t,r){var i=R.templateSettings;r&&rs(e,t,r)&&(t=n),e=qu(e),t=Zu({},t,i,ko);var a=Zu({},t.imports,i.imports,ko),o=hd(a),s=Un(a,o);hn(o,function(e){if(Ue.test(e))throw new tt("Invalid `imports` option passed into `_.template`")});var c,l,u=0,d=t.interpolate||$e,f=`__p += '`,p=P((t.escape||$e).source+`|`+d.source+`|`+(d===Me?Ge:$e).source+`|`+(t.evaluate||$e).source+`|$`,`g`),m=`//# sourceURL=`+(ft.call(t,`sourceURL`)?(t.sourceURL+``).replace(/\s/g,` `):`lodash.templateSources[`+ ++Wt+`]`)+`
2420`;e.replace(p,function(t,n,r,i,a,o){return r||=i,f+=e.slice(u,o).replace(et,Xn),n&&(c=!0,f+=`' +
2421__e(`+n+`) +
2422'`),a&&(l=!0,f+=`';
2423`+a+`;
2424__p += '`),r&&(f+=`' +
2425((__t = (`+r+`)) == null ? '' : __t) +
2426'`),u=o+t.length,t}),f+=`';
2427`;var h=ft.call(t,`variable`)&&t.variable;if(!h)f=`with (obj) {
2428`+f+`
2429}
2430`;else if(Ue.test(h))throw new tt("Invalid `variable` option passed into `_.template`");f=(l?f.replace(Ce,``):f).replace(we,`$1`).replace(Te,`$1;`),f=`function(`+(h||`obj`)+`) {
2431`+(h?``:`obj || (obj = {});
2432`)+`var __t, __p = ''`+(c?`, __e = _.escape`:``)+(l?`, __j = Array.prototype.join;
2433function print() { __p += __j.call(arguments, '') }
2434`:`;
2435`)+f+`return __p
2436}`;var g=gf(function(){return nt(o,m+`return `+f).apply(n,s)});if(g.source=f,pu(g))throw g;return g}function of(e){return qu(e).toLowerCase()}function sf(e){return qu(e).toUpperCase()}function cf(e,t,r){if(e=qu(e),e&&(r||t===n))return Vn(e);if(!e||!(t=Aa(t)))return e;var i=lr(e),a=lr(t);return Ha(i,Gn(i,a),Kn(i,a)+1).join(``)}function lf(e,t,r){if(e=qu(e),e&&(r||t===n))return e.slice(0,ur(e)+1);if(!e||!(t=Aa(t)))return e;var i=lr(e);return Ha(i,0,Kn(i,lr(t))+1).join(``)}function uf(e,t,r){if(e=qu(e),e&&(r||t===n))return e.replace(Re,``);if(!e||!(t=Aa(t)))return e;var i=lr(e);return Ha(i,Gn(i,lr(t))).join(``)}function df(e,t){var r=30,i=`...`;if(vu(t)){var a=`separator`in t?t.separator:a;r=`length`in t?Hu(t.length):r,i=`omission`in t?Aa(t.omission):i}e=qu(e);var o=e.length;if(Qn(e)){var s=lr(e);o=s.length}if(r>=o)return e;var c=r-cr(i);if(c<1)return i;var l=s?Ha(s,0,c).join(``):e.slice(0,c);if(a===n)return l+i;if(s&&(c+=l.length-c),ku(a)){if(e.slice(c).search(a)){var u,d=l;for(a.global||(a=P(a.source,qu(Ke.exec(a))+`g`)),a.lastIndex=0;u=a.exec(d);)var f=u.index;l=l.slice(0,f===n?c:f)}}else if(e.indexOf(Aa(a),c)!=c){var p=l.lastIndexOf(a);p>-1&&(l=l.slice(0,p))}return l+i}function ff(e){return e=qu(e),e&&Oe.test(e)?e.replace(Ee,dr):e}var pf=uo(function(e,t,n){return e+(n?` `:``)+t.toUpperCase()}),mf=lo(`toUpperCase`);function hf(e,t,r){return e=qu(e),t=r?n:t,t===n?$n(e)?mr(e):On(e):e.match(t)||[]}var gf=_a(function(e,t){try{return pn(e,n,t)}catch(e){return pu(e)?e:new tt(e)}}),_f=Fo(function(e,t){return hn(t,function(t){t=Ds(t),di(e,t,Dl(e[t],e))}),e});function vf(e){var t=e==null?0:e.length,n=z();return e=t?xn(e,function(e){if(typeof e[1]!=`function`)throw new ot(r);return[n(e[0]),e[1]]}):[],_a(function(n){for(var r=-1;++r<t;){var i=e[r];if(pn(i[0],this,n))return pn(i[1],this,n)}})}function yf(e){return hi(mi(e,1))}function bf(e){return function(){return e}}function xf(e,t){return e==null||e!==e?t:e}var Sf=ho(),Cf=ho(!0);function wf(e){return e}function Tf(e){return Qi(typeof e==`function`?e:mi(e,1))}function Ef(e){return ra(mi(e,1))}function Df(e,t){return ia(e,mi(t,1))}var Of=_a(function(e,t){return function(n){return Bi(n,e,t)}}),kf=_a(function(e,t){return function(n){return Bi(e,n,t)}});function Af(e,t,n){var r=hd(t),i=Ai(t,r);n==null&&!(vu(t)&&(i.length||!r.length))&&(n=t,t=e,e=this,i=Ai(t,hd(t)));var a=!(vu(n)&&`chain`in n)||!!n.chain,o=hu(e);return hn(i,function(n){var r=t[n];e[n]=r,o&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__);return(n.__actions__=eo(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Sn([this.value()],arguments))})}),e}function jf(){return en._===this&&(en._=_t),this}function Mf(){}function Nf(e){return e=Hu(e),_a(function(t){return sa(t,e)})}var Pf=yo(xn),Ff=yo(_n),If=yo(Tn);function Lf(e){return is(e)?Pn(Ds(e)):da(e)}function Rf(e){return function(t){return e==null?n:ji(e,t)}}var zf=So(),Bf=So(!0);function Vf(){return[]}function Hf(){return!1}function Uf(){return{}}function Wf(){return``}function Gf(){return!0}function Kf(e,t){if(e=Hu(e),e<1||e>g)return[];var n=y,r=Kt(e,y);t=z(t),e-=y;for(var i=zn(r,t);++n<e;)t(n);return i}function qf(e){return V(e)?xn(e,Ds):Nu(e)?[e]:eo(Es(qu(e)))}function Jf(e){var t=++pt;return qu(e)+t}var Yf=vo(function(e,t){return e+t},0),Xf=To(`ceil`),Zf=vo(function(e,t){return e/t},1),Qf=To(`floor`);function $f(e){return e&&e.length?Si(e,wf,Pi):n}function ep(e,t){return e&&e.length?Si(e,z(t,2),Pi):n}function tp(e){return Nn(e,wf)}function np(e,t){return Nn(e,z(t,2))}function rp(e){return e&&e.length?Si(e,wf,ta):n}function ip(e,t){return e&&e.length?Si(e,z(t,2),ta):n}var ap=vo(function(e,t){return e*t},1),op=To(`round`),sp=vo(function(e,t){return e-t},0);function cp(e){return e&&e.length?Rn(e,wf):0}function lp(e,t){return e&&e.length?Rn(e,z(t,2)):0}return R.after=wl,R.ary=Tl,R.assign=Ju,R.assignIn=Yu,R.assignInWith=Xu,R.assignWith=Zu,R.at=Qu,R.before=El,R.bind=Dl,R.bindAll=_f,R.bindKey=Ol,R.castArray=ql,R.chain=Bc,R.chunk=js,R.compact=Ms,R.concat=Ns,R.cond=vf,R.conforms=yf,R.constant=bf,R.countBy=Zc,R.create=$u,R.curry=kl,R.curryRight=Al,R.debounce=jl,R.defaults=ed,R.defaultsDeep=td,R.defer=Ml,R.delay=Nl,R.difference=Ps,R.differenceBy=Fs,R.differenceWith=Is,R.drop=Ls,R.dropRight=Rs,R.dropRightWhile=zs,R.dropWhile=Bs,R.fill=Vs,R.filter=$c,R.flatMap=nl,R.flatMapDeep=rl,R.flatMapDepth=il,R.flatten=Ws,R.flattenDeep=Gs,R.flattenDepth=Ks,R.flip=Pl,R.flow=Sf,R.flowRight=Cf,R.fromPairs=qs,R.functions=sd,R.functionsIn=cd,R.groupBy=sl,R.initial=Xs,R.intersection=Zs,R.intersectionBy=Qs,R.intersectionWith=$s,R.invert=fd,R.invertBy=pd,R.invokeMap=ll,R.iteratee=Tf,R.keyBy=ul,R.keys=hd,R.keysIn=gd,R.map=dl,R.mapKeys=_d,R.mapValues=vd,R.matches=Ef,R.matchesProperty=Df,R.memoize=Fl,R.merge=yd,R.mergeWith=bd,R.method=Of,R.methodOf=kf,R.mixin=Af,R.negate=Il,R.nthArg=Nf,R.omit=xd,R.omitBy=Sd,R.once=Ll,R.orderBy=fl,R.over=Pf,R.overArgs=Rl,R.overEvery=Ff,R.overSome=If,R.partial=zl,R.partialRight=Bl,R.partition=pl,R.pick=Cd,R.pickBy=wd,R.property=Lf,R.propertyOf=Rf,R.pull=ic,R.pullAll=ac,R.pullAllBy=oc,R.pullAllWith=sc,R.pullAt=cc,R.range=zf,R.rangeRight=Bf,R.rearg=Vl,R.reject=gl,R.remove=lc,R.rest=Hl,R.reverse=uc,R.sampleSize=vl,R.set=Ed,R.setWith=Dd,R.shuffle=yl,R.slice=dc,R.sortBy=Sl,R.sortedUniq=vc,R.sortedUniqBy=yc,R.split=tf,R.spread=Ul,R.tail=bc,R.take=xc,R.takeRight=Sc,R.takeRightWhile=Cc,R.takeWhile=B,R.tap=Vc,R.throttle=Wl,R.thru=Hc,R.toArray=Bu,R.toPairs=Od,R.toPairsIn=kd,R.toPath=qf,R.toPlainObject=Gu,R.transform=Ad,R.unary=Gl,R.union=wc,R.unionBy=Tc,R.unionWith=Ec,R.uniq=Dc,R.uniqBy=Oc,R.uniqWith=kc,R.unset=jd,R.unzip=Ac,R.unzipWith=jc,R.update=Md,R.updateWith=Nd,R.values=Pd,R.valuesIn=Fd,R.without=Mc,R.words=hf,R.wrap=Kl,R.xor=Nc,R.xorBy=Pc,R.xorWith=Fc,R.zip=Ic,R.zipObject=Lc,R.zipObjectDeep=Rc,R.zipWith=zc,R.entries=Od,R.entriesIn=kd,R.extend=Yu,R.extendWith=Xu,Af(R,R),R.add=Yf,R.attempt=gf,R.camelCase=zd,R.capitalize=Bd,R.ceil=Xf,R.clamp=Id,R.clone=Jl,R.cloneDeep=Xl,R.cloneDeepWith=Zl,R.cloneWith=Yl,R.conformsTo=Ql,R.deburr=Vd,R.defaultTo=xf,R.divide=Zf,R.endsWith=Hd,R.eq=$l,R.escape=Ud,R.escapeRegExp=Wd,R.every=Qc,R.find=el,R.findIndex=Hs,R.findKey=nd,R.findLast=tl,R.findLastIndex=Us,R.findLastKey=rd,R.floor=Qf,R.forEach=al,R.forEachRight=ol,R.forIn=id,R.forInRight=ad,R.forOwn=H,R.forOwnRight=od,R.get=ld,R.gt=eu,R.gte=tu,R.has=ud,R.hasIn=dd,R.head=Js,R.identity=wf,R.includes=cl,R.indexOf=Ys,R.inRange=Ld,R.invoke=md,R.isArguments=nu,R.isArray=V,R.isArrayBuffer=ru,R.isArrayLike=iu,R.isArrayLikeObject=au,R.isBoolean=ou,R.isBuffer=su,R.isDate=cu,R.isElement=lu,R.isEmpty=uu,R.isEqual=du,R.isEqualWith=fu,R.isError=pu,R.isFinite=mu,R.isFunction=hu,R.isInteger=gu,R.isLength=_u,R.isMap=bu,R.isMatch=xu,R.isMatchWith=Su,R.isNaN=Cu,R.isNative=wu,R.isNil=Eu,R.isNull=Tu,R.isNumber=Du,R.isObject=vu,R.isObjectLike=yu,R.isPlainObject=Ou,R.isRegExp=ku,R.isSafeInteger=Au,R.isSet=ju,R.isString=Mu,R.isSymbol=Nu,R.isTypedArray=Pu,R.isUndefined=Fu,R.isWeakMap=Iu,R.isWeakSet=Lu,R.join=ec,R.kebabCase=Gd,R.last=tc,R.lastIndexOf=nc,R.lowerCase=Kd,R.lowerFirst=qd,R.lt=Ru,R.lte=zu,R.max=$f,R.maxBy=ep,R.mean=tp,R.meanBy=np,R.min=rp,R.minBy=ip,R.stubArray=Vf,R.stubFalse=Hf,R.stubObject=Uf,R.stubString=Wf,R.stubTrue=Gf,R.multiply=ap,R.nth=rc,R.noConflict=jf,R.noop=Mf,R.now=Cl,R.pad=Jd,R.padEnd=Yd,R.padStart=Xd,R.parseInt=Zd,R.random=Rd,R.reduce=ml,R.reduceRight=hl,R.repeat=Qd,R.replace=$d,R.result=Td,R.round=op,R.runInContext=e,R.sample=_l,R.size=bl,R.snakeCase=ef,R.some=xl,R.sortedIndex=fc,R.sortedIndexBy=pc,R.sortedIndexOf=mc,R.sortedLastIndex=hc,R.sortedLastIndexBy=gc,R.sortedLastIndexOf=_c,R.startCase=nf,R.startsWith=rf,R.subtract=sp,R.sum=cp,R.sumBy=lp,R.template=af,R.times=Kf,R.toFinite=Vu,R.toInteger=Hu,R.toLength=Uu,R.toLower=of,R.toNumber=Wu,R.toSafeInteger=Ku,R.toString=qu,R.toUpper=sf,R.trim=cf,R.trimEnd=lf,R.trimStart=uf,R.truncate=df,R.unescape=ff,R.uniqueId=Jf,R.upperCase=pf,R.upperFirst=mf,R.each=al,R.eachRight=ol,R.first=Js,Af(R,function(){var e={};return Oi(R,function(t,n){ft.call(R.prototype,n)||(e[n]=t)}),e}(),{chain:!1}),R.VERSION=`4.18.1`,hn([`bind`,`bindKey`,`curry`,`curryRight`,`partial`,`partialRight`],function(e){R[e].placeholder=R}),hn([`drop`,`take`],function(e,t){wr.prototype[e]=function(r){r=r===n?1:F(Hu(r),0);var i=this.__filtered__&&!t?new wr(this):this.clone();return i.__filtered__?i.__takeCount__=Kt(r,i.__takeCount__):i.__views__.push({size:Kt(r,y),type:e+(i.__dir__<0?`Right`:``)}),i},wr.prototype[e+`Right`]=function(t){return this.reverse()[e](t).reverse()}}),hn([`filter`,`map`,`takeWhile`],function(e,t){var n=t+1,r=n==1||n==3;wr.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:z(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),hn([`head`,`last`],function(e,t){var n=`take`+(t?`Right`:``);wr.prototype[e]=function(){return this[n](1).value()[0]}}),hn([`initial`,`tail`],function(e,t){var n=`drop`+(t?``:`Right`);wr.prototype[e]=function(){return this.__filtered__?new wr(this):this[n](1)}}),wr.prototype.compact=function(){return this.filter(wf)},wr.prototype.find=function(e){return this.filter(e).head()},wr.prototype.findLast=function(e){return this.reverse().find(e)},wr.prototype.invokeMap=_a(function(e,t){return typeof e==`function`?new wr(this):this.map(function(n){return Bi(n,e,t)})}),wr.prototype.reject=function(e){return this.filter(Il(z(e)))},wr.prototype.slice=function(e,t){e=Hu(e);var r=this;return r.__filtered__&&(e>0||t<0)?new wr(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(t=Hu(t),r=t<0?r.dropRight(-t):r.take(t-e)),r)},wr.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},wr.prototype.toArray=function(){return this.take(y)},Oi(wr.prototype,function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=R[i?`take`+(t==`last`?`Right`:``):t],o=i||/^find/.test(t);a&&(R.prototype[t]=function(){var t=this.__wrapped__,s=i?[1]:arguments,c=t instanceof wr,l=s[0],u=c||V(t),d=function(e){var t=a.apply(R,Sn([e],s));return i&&f?t[0]:t};u&&r&&typeof l==`function`&&l.length!=1&&(c=u=!1);var f=this.__chain__,p=!!this.__actions__.length,m=o&&!f,h=c&&!p;if(!o&&u){t=h?t:new wr(this);var g=e.apply(t,s);return g.__actions__.push({func:Hc,args:[d],thisArg:n}),new Cr(g,f)}return m&&h?e.apply(this,s):(g=this.thru(d),m?i?g.value()[0]:g.value():g)})}),hn([`pop`,`push`,`shift`,`sort`,`splice`,`unshift`],function(e){var t=st[e],n=/^(?:push|sort|unshift)$/.test(e)?`tap`:`thru`,r=/^(?:pop|shift)$/.test(e);R.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var i=this.value();return t.apply(V(i)?i:[],e)}return this[n](function(n){return t.apply(V(n)?n:[],e)})}}),Oi(wr.prototype,function(e,t){var n=R[t];if(n){var r=n.name+``;ft.call(Fn,r)||(Fn[r]=[]),Fn[r].push({name:t,func:n})}}),Fn[go(n,s).name]=[{name:`wrapper`,func:n}],wr.prototype.clone=Tr,wr.prototype.reverse=Er,wr.prototype.value=Dr,R.prototype.at=Uc,R.prototype.chain=Wc,R.prototype.commit=Gc,R.prototype.next=Kc,R.prototype.plant=Jc,R.prototype.reverse=Yc,R.prototype.toJSON=R.prototype.valueOf=R.prototype.value=Xc,R.prototype.first=R.prototype.head,Ot&&(R.prototype[Ot]=qc),R})();typeof define==`function`&&typeof define.amd==`object`&&define.amd?(en._=hr,define(function(){return hr})):nn?((nn.exports=hr)._=hr,tn._=hr):en._=hr}).call(e)}
2436)),qW=u(GW()),JW=KW(),YW=`contexto-unlimited-last-games`,XW={gameId:0,guessHistory:[],lastGuess:null,foundWord:``,numberOfTips:0,numberOfAttempts:0,gaveUp:``,postGameHistory:[]},ZW=e=>{let t=MD(e),n=Array.from({length:parseInt(t)+1},(e,t)=>t),r;try{r=JSON.parse(localStorage.getItem(`contexto-unlimited-last-games`)||`{}`)}catch{r={}}let i=r[e],a=(0,JW.difference)(n,i),o=a[(0,JW.random)(a.length-1)];for(r[e]||(r[e]=[]),r[e].push(o);r[e].length>100;)r[e].shift();return localStorage.setItem(YW,JSON.stringify(r)),o};function QW(){let[e,t]=(0,y.useState)(!0),[n,r]=(0,y.useState)(null),[i,a]=(0,y.useState)(null),[o,s]=(0,y.useState)(`half`),[c,l]=(0,y.useState)({}),{language:u,date:d}=Ki(),f=!!Hi(`/:language/unlimited`),{loading:p}=yD();(0,y.useEffect)(()=>{p||(async()=>{let e;if(f)e=ZW(u),l({...XW,gameId:e});else{e=d?ND(d,u):MD(u);let t=await pT.loadGameData(e,u);a(t||{...XW,gameId:e})}r(e),t(!1)})()},[u,d,p]);let m=f?c:i;return{loading:e,gameState:{gameData:m,openGameId:n,tipSetting:o},setGameState:e=>{e.tipSetting!==void 0&&s(e.tipSetting)},openGameData:m,setOpenGameData:e=>{if(f)l({...c,...e});else{let t={...i,...e};a(t),e.foundWord||e.gaveUp?pT.saveGameData(n,t,u):Ao.writeGameData(n,t,u)}},unlimitedPlayAgain:()=>{let e=ZW(u);l({...XW,gameId:e}),r(e)}}}function $W({children:e}){let[t,n]=(0,y.useState)(!1);return(0,Y.jsxs)(`div`,{style:{position:`relative`},children:[(0,Y.jsx)(`button`,{type:`button`,className:`btn ${t?`btn-active`:``}`,onClick:()=>n(!0),children:(0,Y.jsx)(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`20`,height:`20`,fill:`currentColor`,viewBox:`0 0 16 16`,children:(0,Y.jsx)(`path`,{d:`M9.5 13a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0zm0-5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z`})})}),t&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`div`,{className:`dropdown-bg`,onClick:()=>n(!1)}),(0,Y.jsx)(`div`,{className:`dropdown`,onClick:()=>n(!1),children:e})]})]})}function eG({state:e}){let{t}=go(),[n,r]=(0,y.useState)(``),{language:i}=Ki(),a=!!Hi(`/:language/unlimited`),{guessHistory:o,numberOfAttempts:s,numberOfTips:c,gameId:l,gaveUp:u}=e,d=()=>/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),f=()=>navigator.userAgent.toLowerCase().indexOf(`firefox`)!==-1,p=e=>{r(e),setTimeout(()=>r(``),3e3)},m=()=>{let e=0,t=0,n=0,r=0,i=0,a=0;o.forEach(r=>{r.distance<300?e+=1:r.distance<1500?t+=1:n+=1});let s=Math.max(e,t,n),c=20;s<=25?c=5:s<=50?c=10:s<=100&&(c=15);let l=o.length;l>0&&(r=Math.round(e/l*c),i=Math.round(t/l*c),a=Math.round(n/l*c),r=r===0&&e>0?1:r,i=i===0&&t>0?1:i,a=a===0&&n>0?1:a,r=Math.min(e,r),i=Math.min(t,i),a=Math.min(n,a));let u=``;for(let e=0;e<r;e+=1)u+=`🟩`;u+=` ${e}\n`;for(let e=0;e<i;e+=1)u+=`🟨`;u+=` ${t}\n`;for(let e=0;e<a;e+=1)u+=`🟥`;return u+=` ${n}`,u};return(0,Y.jsxs)(`div`,{className:`end-msg`,children:[(0,Y.jsx)(`p`,{children:(0,Y.jsx)(`b`,{children:u?(0,Y.jsx)(`span`,{children:t(`end.betterLuck`)}):(0,Y.jsx)(`span`,{children:t(`end.congrats`)})})}),(0,Y.jsxs)(`p`,{children:[u?(0,Y.jsx)(`span`,{children:t(`end.youGaveUpThe`)}):(0,Y.jsx)(`span`,{children:t(`end.youGotThe`)}),` `,(0,Y.jsx)(`b`,{children:s}),` `,t(`end.attempts`),c>0&&(0,Y.jsxs)(Y.Fragment,{children:[` `,t(`end.and`),` `,(0,Y.jsx)(`b`,{children:c}),` `,t(`end.tips`)]}),`.`]}),!!u&&(0,Y.jsxs)(`p`,{children:[t(`end.theWordWas`),` `,(0,Y.jsx)(`b`,{children:u.toUpperCase()}),`.`]}),(0,Y.jsx)(`div`,{className:`chart-wrapper`,children:(0,Y.jsx)(`div`,{className:`chart`,children:m()})}),(0,Y.jsx)(`div`,{className:`end-share-wrapper`,children:(0,Y.jsxs)(`button`,{type:`button`,className:`button`,onClick:()=>{let e=t(u?`end.butGaveUp`:`end.andGotIt`),n=c>0?` ${t(`end.and`)} ${c} ${t(`end.tips`)}`:``,r=`${t(`end.played`)} contexto.me ${a?t(`unlimited`):FD(l,i)} ${e} ${t(`end.with`)} ${s} ${t(`end.attempts`)}${n}.\n\n`;r+=m(),d()&&!f()&&navigator.share?navigator.share({text:r}).then(()=>{p(t(`end.done`))}).catch(()=>{}):(navigator.clipboard.writeText(r),p(t(`end.copied`))),st.share(i)},children:[(0,Y.jsx)(X.Share,{}),n||`${t(`end.share`)} ${u?t(`end.anyway`):``}`]})})]})}var tG=1e3,nG={gameId:null,isGameOver:null};function rG({gameId:e,isGameOver:t}){let n=(0,y.useRef)(nG);(0,y.useEffect)(()=>{let r=n.current.gameId===e?n.current.isGameOver:null;if(n.current={gameId:e,isGameOver:t},t===!1){let e=setTimeout(Ht,tG);return()=>clearTimeout(e)}t===!0&&r===!1&&F()},[e,t])}var iG=e=>typeof e==`string`,aG=()=>{let e,t,n=new Promise((n,r)=>{e=n,t=r});return n.resolve=e,n.reject=t,n},oG=e=>
vendor: 44,343 bytes, line 2436
2436e==null?``:``+e,sG=(e,t,n)=>{e.forEach(e=>{t[e]&&(n[e]=t[e])})},cG=/###/g,lG=e=>e&&e.indexOf(`###`)>-1?e.replace(cG,`.`):e,uG=e=>!e||iG(e),dG=(e,t,n)=>{let r=iG(t)?t.split(`.`):t,i=0;for(;i<r.length-1;){if(uG(e))return{};let t=lG(r[i]);!e[t]&&n&&(e[t]=new n),e=Object.prototype.hasOwnProperty.call(e,t)?e[t]:{},++i}return uG(e)?{}:{obj:e,k:lG(r[i])}},fG=(e,t,n)=>{let{obj:r,k:i}=dG(e,t,Object);if(r!==void 0||t.length===1){r[i]=n;return}let a=t[t.length-1],o=t.slice(0,t.length-1),s=dG(e,o,Object);for(;s.obj===void 0&&o.length;)a=`${o[o.length-1]}.${a}`,o=o.slice(0,o.length-1),s=dG(e,o,Object),s&&s.obj&&s.obj[`${s.k}.${a}`]!==void 0&&(s.obj=void 0);s.obj[`${s.k}.${a}`]=n},pG=(e,t,n,r)=>{let{obj:i,k:a}=dG(e,t,Object);i[a]=i[a]||[],i[a].push(n)},mG=(e,t)=>{let{obj:n,k:r}=dG(e,t);if(n)return n[r]},hG=(e,t,n)=>{let r=mG(e,n);return r===void 0?mG(t,n):r},gG=(e,t,n)=>{for(let r in t)r!==`__proto__`&&r!==`constructor`&&(r in e?iG(e[r])||e[r]instanceof String||iG(t[r])||t[r]instanceof String?n&&(e[r]=t[r]):gG(e[r],t[r],n):e[r]=t[r]);return e},_G=e=>e.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,`\\$&`),vG={"&":`&amp;`,"<":`&lt;`,">":`&gt;`,'"':`&quot;`,"'":`&#39;`,"/":`&#x2F;`},yG=e=>iG(e)?e.replace(/[&<>"'\/]/g,e=>vG[e]):e,bG=class{constructor(e){this.capacity=e,this.regExpMap=new Map,this.regExpQueue=[]}getRegExp(e){let t=this.regExpMap.get(e);if(t!==void 0)return t;let n=new RegExp(e);return this.regExpQueue.length===this.capacity&&this.regExpMap.delete(this.regExpQueue.shift()),this.regExpMap.set(e,n),this.regExpQueue.push(e),n}},xG=[` `,`,`,`?`,`!`,`;`],SG=new bG(20),CG=(e,t,n)=>{t||=``,n||=``;let r=xG.filter(e=>t.indexOf(e)<0&&n.indexOf(e)<0);if(r.length===0)return!0;let i=SG.getRegExp(`(${r.map(e=>e===`?`?`\\?`:e).join(`|`)})`),a=!i.test(e);if(!a){let t=e.indexOf(n);t>0&&!i.test(e.substring(0,t))&&(a=!0)}return a},wG=function(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:`.`;if(!e)return;if(e[t])return e[t];let r=t.split(n),i=e;for(let e=0;e<r.length;){if(!i||typeof i!=`object`)return;let t,a=``;for(let o=e;o<r.length;++o)if(o!==e&&(a+=n),a+=r[o],t=i[a],t!==void 0){if([`string`,`number`,`boolean`].indexOf(typeof t)>-1&&o<r.length-1)continue;e+=o-e+1;break}i=t}return i},TG=e=>e&&e.replace(`_`,`-`),EG={type:`logger`,log(e){this.output(`log`,e)},warn(e){this.output(`warn`,e)},error(e){this.output(`error`,e)},output(e,t){console&&console[e]&&console[e].apply(console,t)}},DG=new class e{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.init(e,t)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.prefix=t.prefix||`i18next:`,this.logger=e||EG,this.options=t,this.debug=t.debug}log(){var e=[...arguments];return this.forward(e,`log`,``,!0)}warn(){var e=[...arguments];return this.forward(e,`warn`,``,!0)}error(){var e=[...arguments];return this.forward(e,`error`,``)}deprecate(){var e=[...arguments];return this.forward(e,`warn`,`WARNING DEPRECATED: `,!0)}forward(e,t,n,r){return r&&!this.debug?null:(iG(e[0])&&(e[0]=`${n}${this.prefix} ${e[0]}`),this.logger[t](e))}create(t){return new e(this.logger,{prefix:`${this.prefix}:${t}:`,...this.options})}clone(t){return t||=this.options,t.prefix=t.prefix||this.prefix,new e(this.logger,t)}},OG=class{constructor(){this.observers={}}on(e,t){return e.split(` `).forEach(e=>{this.observers[e]||(this.observers[e]=new Map);let n=this.observers[e].get(t)||0;this.observers[e].set(t,n+1)}),this}off(e,t){if(this.observers[e]){if(!t){delete this.observers[e];return}this.observers[e].delete(t)}}emit(e){var t=[...arguments].slice(1);this.observers[e]&&Array.from(this.observers[e].entries()).forEach(e=>{let[n,r]=e;for(let e=0;e<r;e++)n(...t)}),this.observers[`*`]&&Array.from(this.observers[`*`].entries()).forEach(n=>{let[r,i]=n;for(let n=0;n<i;n++)r.apply(r,[e,...t])})}},kG=class extends OG{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{ns:[`translation`],defaultNS:`translation`};super(),this.data=e||{},this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.options.ignoreJSONStructure===void 0&&(this.options.ignoreJSONStructure=!0)}addNamespaces(e){this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}removeNamespaces(e){let t=this.options.ns.indexOf(e);t>-1&&this.options.ns.splice(t,1)}getResource(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=r.keySeparator===void 0?this.options.keySeparator:r.keySeparator,a=r.ignoreJSONStructure===void 0?this.options.ignoreJSONStructure:r.ignoreJSONStructure,o;e.indexOf(`.`)>-1?o=e.split(`.`):(o=[e,t],n&&(Array.isArray(n)?o.push(...n):iG(n)&&i?o.push(...n.split(i)):o.push(n)));let s=mG(this.data,o);return!s&&!t&&!n&&e.indexOf(`.`)>-1&&(e=o[0],t=o[1],n=o.slice(2).join(`.`)),s||!a||!iG(n)?s:wG(this.data&&this.data[e]&&this.data[e][t],n,i)}addResource(e,t,n,r){let i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:{silent:!1},a=i.keySeparator===void 0?this.options.keySeparator:i.keySeparator,o=[e,t];n&&(o=o.concat(a?n.split(a):n)),e.indexOf(`.`)>-1&&(o=e.split(`.`),r=t,t=o[1]),this.addNamespaces(t),fG(this.data,o,r),i.silent||this.emit(`added`,e,t,n,r)}addResources(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{silent:!1};for(let r in n)(iG(n[r])||Array.isArray(n[r]))&&this.addResource(e,t,r,n[r],{silent:!0});r.silent||this.emit(`added`,e,t,n)}addResourceBundle(e,t,n,r,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{silent:!1,skipCopy:!1},o=[e,t];e.indexOf(`.`)>-1&&(o=e.split(`.`),r=n,n=t,t=o[1]),this.addNamespaces(t);let s=mG(this.data,o)||{};a.skipCopy||(n=JSON.parse(JSON.stringify(n))),r?gG(s,n,i):s={...s,...n},fG(this.data,o,s),a.silent||this.emit(`added`,e,t,n)}removeResourceBundle(e,t){this.hasResourceBundle(e,t)&&delete this.data[e][t],this.removeNamespaces(t),this.emit(`removed`,e,t)}hasResourceBundle(e,t){return this.getResource(e,t)!==void 0}getResourceBundle(e,t){return t||=this.options.defaultNS,this.options.compatibilityAPI===`v1`?{...this.getResource(e,t)}:this.getResource(e,t)}getDataByLanguage(e){return this.data[e]}hasLanguageSomeTranslations(e){let t=this.getDataByLanguage(e);return!!(t&&Object.keys(t)||[]).find(e=>t[e]&&Object.keys(t[e]).length>0)}toJSON(){return this.data}},AG={processors:{},addPostProcessor(e){this.processors[e.name]=e},handle(e,t,n,r,i){return e.forEach(e=>{this.processors[e]&&(t=this.processors[e].process(t,n,r,i))}),t}},jG={},MG=class e extends OG{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};super(),sG([`resourceStore`,`languageUtils`,`pluralResolver`,`interpolator`,`backendConnector`,`i18nFormat`,`utils`],e,this),this.options=t,this.options.keySeparator===void 0&&(this.options.keySeparator=`.`),this.logger=DG.create(`translator`)}changeLanguage(e){e&&(this.language=e)}exists(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};if(e==null)return!1;let n=this.resolve(e,t);return n&&n.res!==void 0}extractFromKey(e,t){let n=t.nsSeparator===void 0?this.options.nsSeparator:t.nsSeparator;n===void 0&&(n=`:`);let r=t.keySeparator===void 0?this.options.keySeparator:t.keySeparator,i=t.ns||this.options.defaultNS||[],a=n&&e.indexOf(n)>-1,o=!this.options.userDefinedKeySeparator&&!t.keySeparator&&!this.options.userDefinedNsSeparator&&!t.nsSeparator&&!CG(e,n,r);if(a&&!o){let t=e.match(this.interpolator.nestingRegexp);if(t&&t.length>0)return{key:e,namespaces:iG(i)?[i]:i};let a=e.split(n);(n!==r||n===r&&this.options.ns.indexOf(a[0])>-1)&&(i=a.shift()),e=a.join(r)}return{key:e,namespaces:iG(i)?[i]:i}}translate(t,n,r){if(typeof n!=`object`&&this.options.overloadTranslationOptionHandler&&(n=this.options.overloadTranslationOptionHandler(arguments)),typeof n==`object`&&(n={...n}),n||={},t==null)return``;Array.isArray(t)||(t=[String(t)]);let i=n.returnDetails===void 0?this.options.returnDetails:n.returnDetails,a=n.keySeparator===void 0?this.options.keySeparator:n.keySeparator,{key:o,namespaces:s}=this.extractFromKey(t[t.length-1],n),c=s[s.length-1],l=n.lng||this.language,u=n.appendNamespaceToCIMode||this.options.appendNamespaceToCIMode;if(l&&l.toLowerCase()===`cimode`){if(u){let e=n.nsSeparator||this.options.nsSeparator;return i?{res:`${c}${e}${o}`,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:`${c}${e}${o}`}return i?{res:o,usedKey:o,exactUsedKey:o,usedLng:l,usedNS:c,usedParams:this.getUsedParamsDetails(n)}:o}let d=this.resolve(t,n),f=d&&d.res,p=d&&d.usedKey||o,m=d&&d.exactUsedKey||o,h=Object.prototype.toString.apply(f),g=[`[object Number]`,`[object Function]`,`[object RegExp]`],_=n.joinArrays===void 0?this.options.joinArrays:n.joinArrays,v=!this.i18nFormat||this.i18nFormat.handleAsObject,y=!iG(f)&&typeof f!=`boolean`&&typeof f!=`number`;if(v&&f&&y&&g.indexOf(h)<0&&!(iG(_)&&Array.isArray(f))){if(!n.returnObjects&&!this.options.returnObjects){this.options.returnedObjectHandler||this.logger.warn(`accessing an object - but returnObjects options is not enabled!`);let e=this.options.returnedObjectHandler?this.options.returnedObjectHandler(p,f,{...n,ns:s}):`key '${o} (${this.language})' returned an object instead of string.`;return i?(d.res=e,d.usedParams=this.getUsedParamsDetails(n),d):e}if(a){let e=Array.isArray(f),t=e?[]:{},r=e?m:p;for(let e in f)if(Object.prototype.hasOwnProperty.call(f,e)){let i=`${r}${a}${e}`;t[e]=this.translate(i,{...n,joinArrays:!1,ns:s}),t[e]===i&&(t[e]=f[e])}f=t}}else if(v&&iG(_)&&Array.isArray(f))f=f.join(_),f&&=this.extendTranslation(f,t,n,r);else{let i=!1,s=!1,u=n.count!==void 0&&!iG(n.count),p=e.hasDefaultValue(n),m=u?this.pluralResolver.getSuffix(l,n.count,n):``,h=n.ordinal&&u?this.pluralResolver.getSuffix(l,n.count,{ordinal:!1}):``,g=u&&!n.ordinal&&n.count===0&&this.pluralResolver.shouldUseIntlApi(),_=g&&n[`defaultValue${this.options.pluralSeparator}zero`]||n[`defaultValue${m}`]||n[`defaultValue${h}`]||n.defaultValue;!this.isValidLookup(f)&&p&&(i=!0,f=_),this.isValidLookup(f)||(s=!0,f=o);let v=(n.missingKeyNoValueFallbackToKey||this.options.missingKeyNoValueFallbackToKey)&&s?void 0:f,y=p&&_!==f&&this.options.updateMissing;if(s||i||y){if(this.logger.log(y?`updateKey`:`missingKey`,l,c,o,y?_:f),a){let e=this.resolve(o,{...n,keySeparator:!1});e&&e.res&&this.logger.warn(`Seems the loaded translations were in flat JSON format instead of nested. Either set keySeparator: false on init or make sure your translations are published in nested format.`)}let e=[],t=this.languageUtils.getFallbackCodes(this.options.fallbackLng,n.lng||this.language);if(this.options.saveMissingTo===`fallback`&&t&&t[0])for(let n=0;n<t.length;n++)e.push(t[n]);else this.options.saveMissingTo===`all`?e=this.languageUtils.toResolveHierarchy(n.lng||this.language):e.push(n.lng||this.language);let r=(e,t,r)=>{let i=p&&r!==f?r:v;this.options.missingKeyHandler?this.options.missingKeyHandler(e,c,t,i,y,n):this.backendConnector&&this.backendConnector.saveMissing&&this.backendConnector.saveMissing(e,c,t,i,y,n),this.emit(`missingKey`,e,c,t,f)};this.options.saveMissing&&(this.options.saveMissingPlurals&&u?e.forEach(e=>{let t=this.pluralResolver.getSuffixes(e,n);g&&n[`defaultValue${this.options.pluralSeparator}zero`]&&t.indexOf(`${this.options.pluralSeparator}zero`)<0&&t.push(`${this.options.pluralSeparator}zero`),t.forEach(t=>{r([e],o+t,n[`defaultValue${t}`]||_)})}):r(e,o,_))}f=this.extendTranslation(f,t,n,d,r),s&&f===o&&this.options.appendNamespaceToMissingKey&&(f=`${c}:${o}`),(s||i)&&this.options.parseMissingKeyHandler&&(f=this.options.compatibilityAPI===`v1`?this.options.parseMissingKeyHandler(f):this.options.parseMissingKeyHandler(this.options.appendNamespaceToMissingKey?`${c}:${o}`:o,i?f:void 0))}return i?(d.res=f,d.usedParams=this.getUsedParamsDetails(n),d):f}extendTranslation(e,t,n,r,i){var a=this;if(this.i18nFormat&&this.i18nFormat.parse)e=this.i18nFormat.parse(e,{...this.options.interpolation.defaultVariables,...n},n.lng||this.language||r.usedLng,r.usedNS,r.usedKey,{resolved:r});else if(!n.skipInterpolation){n.interpolation&&this.interpolator.init({...n,interpolation:{...this.options.interpolation,...n.interpolation}});let o=iG(e)&&(n&&n.interpolation&&n.interpolation.skipOnVariables!==void 0?n.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables),s;if(o){let t=e.match(this.interpolator.nestingRegexp);s=t&&t.length}let c=n.replace&&!iG(n.replace)?n.replace:n;if(this.options.interpolation.defaultVariables&&(c={...this.options.interpolation.defaultVariables,...c}),e=this.interpolator.interpolate(e,c,n.lng||this.language||r.usedLng,n),o){let t=e.match(this.interpolator.nestingRegexp),r=t&&t.length;s<r&&(n.nest=!1)}!n.lng&&this.options.compatibilityAPI!==`v1`&&r&&r.res&&(n.lng=this.language||r.usedLng),n.nest!==!1&&(e=this.interpolator.nest(e,function(){var e=[...arguments];return i&&i[0]===e[0]&&!n.context?(a.logger.warn(`It seems you are nesting recursively key: ${e[0]} in key: ${t[0]}`),null):a.translate(...e,t)},n)),n.interpolation&&this.interpolator.reset()}let o=n.postProcess||this.options.postProcess,s=iG(o)?[o]:o;return e!=null&&s&&s.length&&n.applyPostProcessor!==!1&&(e=AG.handle(s,e,t,this.options&&this.options.postProcessPassResolved?{i18nResolved:{...r,usedParams:this.getUsedParamsDetails(n)},...n}:n,this)),e}resolve(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n,r,i,a,o;return iG(e)&&(e=[e]),e.forEach(e=>{if(this.isValidLookup(n))return;let s=this.extractFromKey(e,t),c=s.key;r=c;let l=s.namespaces;this.options.fallbackNS&&(l=l.concat(this.options.fallbackNS));let u=t.count!==void 0&&!iG(t.count),d=u&&!t.ordinal&&t.count===0&&this.pluralResolver.shouldUseIntlApi(),f=t.context!==void 0&&(iG(t.context)||typeof t.context==`number`)&&t.context!==``,p=t.lngs?t.lngs:this.languageUtils.toResolveHierarchy(t.lng||this.language,t.fallbackLng);l.forEach(e=>{this.isValidLookup(n)||(o=e,!jG[`${p[0]}-${e}`]&&this.utils&&this.utils.hasLoadedNamespace&&!this.utils.hasLoadedNamespace(o)&&(jG[`${p[0]}-${e}`]=!0,this.logger.warn(`key "${r}" for languages "${p.join(`, `)}" won't get resolved as namespace "${o}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`)),p.forEach(r=>{if(this.isValidLookup(n))return;a=r;let o=[c];if(this.i18nFormat&&this.i18nFormat.addLookupKeys)this.i18nFormat.addLookupKeys(o,c,r,e,t);else{let e;u&&(e=this.pluralResolver.getSuffix(r,t.count,t));let n=`${this.options.pluralSeparator}zero`,i=`${this.options.pluralSeparator}ordinal${this.options.pluralSeparator}`;if(u&&(o.push(c+e),t.ordinal&&e.indexOf(i)===0&&o.push(c+e.replace(i,this.options.pluralSeparator)),d&&o.push(c+n)),f){let r=`${c}${this.options.contextSeparator}${t.context}`;o.push(r),u&&(o.push(r+e),t.ordinal&&e.indexOf(i)===0&&o.push(r+e.replace(i,this.options.pluralSeparator)),d&&o.push(r+n))}}let s;for(;s=o.pop();)this.isValidLookup(n)||(i=s,n=this.getResource(r,e,s,t))}))})}),{res:n,usedKey:r,exactUsedKey:i,usedLng:a,usedNS:o}}isValidLookup(e){return e!==void 0&&!(!this.options.returnNull&&e===null)&&!(!this.options.returnEmptyString&&e===``)}getResource(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};return this.i18nFormat&&this.i18nFormat.getResource?this.i18nFormat.getResource(e,t,n,r):this.resourceStore.getResource(e,t,n,r)}getUsedParamsDetails(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=[`defaultValue`,`ordinal`,`context`,`replace`,`lng`,`lngs`,`fallbackLng`,`ns`,`keySeparator`,`nsSeparator`,`returnObjects`,`returnDetails`,`joinArrays`,`postProcess`,`interpolation`],n=e.replace&&!iG(e.replace),r=n?e.replace:e;if(n&&e.count!==void 0&&(r.count=e.count),this.options.interpolation.defaultVariables&&(r={...this.options.interpolation.defaultVariables,...r}),!n){r={...r};for(let e of t)delete r[e]}return r}static hasDefaultValue(e){for(let t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&t.substring(0,12)===`defaultValue`&&e[t]!==void 0)return!0;return!1}},NG=e=>e.charAt(0).toUpperCase()+e.slice(1),PG=class{constructor(e){this.options=e,this.supportedLngs=this.options.supportedLngs||!1,this.logger=DG.create(`languageUtils`)}getScriptPartFromCode(e){if(e=TG(e),!e||e.indexOf(`-`)<0)return null;let t=e.split(`-`);return t.length===2||(t.pop(),t[t.length-1].toLowerCase()===`x`)?null:this.formatLanguageCode(t.join(`-`))}getLanguagePartFromCode(e){if(e=TG(e),!e||e.indexOf(`-`)<0)return e;let t=e.split(`-`);return this.formatLanguageCode(t[0])}formatLanguageCode(e){if(iG(e)&&e.indexOf(`-`)>-1){if(typeof Intl<`u`&&Intl.getCanonicalLocales!==void 0)try{let t=Intl.getCanonicalLocales(e)[0];if(t&&this.options.lowerCaseLng&&(t=t.toLowerCase()),t)return t}catch{}let t=[`hans`,`hant`,`latn`,`cyrl`,`cans`,`mong`,`arab`],n=e.split(`-`);return this.options.lowerCaseLng?n=n.map(e=>e.toLowerCase()):n.length===2?(n[0]=n[0].toLowerCase(),n[1]=n[1].toUpperCase(),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=NG(n[1].toLowerCase()))):n.length===3&&(n[0]=n[0].toLowerCase(),n[1].length===2&&(n[1]=n[1].toUpperCase()),n[0]!==`sgn`&&n[2].length===2&&(n[2]=n[2].toUpperCase()),t.indexOf(n[1].toLowerCase())>-1&&(n[1]=NG(n[1].toLowerCase())),t.indexOf(n[2].toLowerCase())>-1&&(n[2]=NG(n[2].toLowerCase()))),n.join(`-`)}return this.options.cleanCode||this.options.lowerCaseLng?e.toLowerCase():e}isSupportedCode(e){return(this.options.load===`languageOnly`||this.options.nonExplicitSupportedLngs)&&(e=this.getLanguagePartFromCode(e)),!this.supportedLngs||!this.supportedLngs.length||this.supportedLngs.indexOf(e)>-1}getBestMatchFromCodes(e){if(!e)return null;let t;return e.forEach(e=>{if(t)return;let n=this.formatLanguageCode(e);(!this.options.supportedLngs||this.isSupportedCode(n))&&(t=n)}),!t&&this.options.supportedLngs&&e.forEach(e=>{if(t)return;let n=this.getLanguagePartFromCode(e);if(this.isSupportedCode(n))return t=n;t=this.options.supportedLngs.find(e=>{if(e===n||!(e.indexOf(`-`)<0&&n.indexOf(`-`)<0)&&(e.indexOf(`-`)>0&&n.indexOf(`-`)<0&&e.substring(0,e.indexOf(`-`))===n||e.indexOf(n)===0&&n.length>1))return e})}),t||=this.getFallbackCodes(this.options.fallbackLng)[0],t}getFallbackCodes(e,t){if(!e)return[];if(typeof e==`function`&&(e=e(t)),iG(e)&&(e=[e]),Array.isArray(e))return e;if(!t)return e.default||[];let n=e[t];return n||=e[this.getScriptPartFromCode(t)],n||=e[this.formatLanguageCode(t)],n||=e[this.getLanguagePartFromCode(t)],n||=e.default,n||[]}toResolveHierarchy(e,t){let n=this.getFallbackCodes(t||this.options.fallbackLng||[],e),r=[],i=e=>{e&&(this.isSupportedCode(e)?r.push(e):this.logger.warn(`rejecting language code not found in supportedLngs: ${e}`))};return iG(e)&&(e.indexOf(`-`)>-1||e.indexOf(`_`)>-1)?(this.options.load!==`languageOnly`&&i(this.formatLanguageCode(e)),this.options.load!==`languageOnly`&&this.options.load!==`currentOnly`&&i(this.getScriptPartFromCode(e)),this.options.load!==`currentOnly`&&i(this.getLanguagePartFromCode(e))):iG(e)&&i(this.formatLanguageCode(e)),n.forEach(e=>{r.indexOf(e)<0&&i(this.formatLanguageCode(e))}),r}},FG=[{lngs:[`ach`,`ak`,`am`,`arn`,`br`,`fil`,`gun`,`ln`,`mfe`,`mg`,`mi`,`oc`,`pt`,`pt-BR`,`tg`,`tl`,`ti`,`tr`,`uz`,`wa`],nr:[1,2],fc:1},{lngs:`af.an.ast.az.bg.bn.ca.da.de.dev.el.en.eo.es.et.eu.fi.fo.fur.fy.gl.gu.ha.hi.hu.hy.ia.it.kk.kn.ku.lb.mai.ml.mn.mr.nah.nap.nb.ne.nl.nn.no.nso.pa.pap.pms.ps.pt-PT.rm.sco.se.si.so.son.sq.sv.sw.ta.te.tk.ur.yo`.split(`.`),nr:[1,2],fc:2},{lngs:[`ay`,`bo`,`cgg`,`fa`,`ht`,`id`,`ja`,`jbo`,`ka`,`km`,`ko`,`ky`,`lo`,`ms`,`sah`,`su`,`th`,`tt`,`ug`,`vi`,`wo`,`zh`],nr:[1],fc:3},{lngs:[`be`,`bs`,`cnr`,`dz`,`hr`,`ru`,`sr`,`uk`],nr:[1,2,5],fc:4},{lngs:[`ar`],nr:[0,1,2,3,11,100],fc:5},{lngs:[`cs`,`sk`],nr:[1,2,5],fc:6},{lngs:[`csb`,`pl`],nr:[1,2,5],fc:7},{lngs:[`cy`],nr:[1,2,3,8],fc:8},{lngs:[`fr`],nr:[1,2],fc:9},{lngs:[`ga`],nr:[1,2,3,7,11],fc:10},{lngs:[`gd`],nr:[1,2,3,20],fc:11},{lngs:[`is`],nr:[1,2],fc:12},{lngs:[`jv`],nr:[0,1],fc:13},{lngs:[`kw`],nr:[1,2,3,4],fc:14},{lngs:[`lt`],nr:[1,2,10],fc:15},{lngs:[`lv`],nr:[1,2,0],fc:16},{lngs:[`mk`],nr:[1,2],fc:17},{lngs:[`mnk`],nr:[0,1,2],fc:18},{lngs:[`mt`],nr:[1,2,11,20],fc:19},{lngs:[`or`],nr:[2,1],fc:2},{lngs:[`ro`],nr:[1,2,20],fc:20},{lngs:[`sl`],nr:[5,1,2,3],fc:21},{lngs:[`he`,`iw`],nr:[1,2,20,21],fc:22}],IG={1:e=>Number(e>1),2:e=>Number(e!=1),3:e=>0,4:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),5:e=>Number(e==0?0:e==1?1:e==2?2:e%100>=3&&e%100<=10?3:e%100>=11?4:5),6:e=>Number(e==1?0:e>=2&&e<=4?1:2),7:e=>Number(e==1?0:e%10>=2&&e%10<=4&&(e%100<10||e%100>=20)?1:2),8:e=>Number(e==1?0:e==2?1:e!=8&&e!=11?2:3),9:e=>Number(e>=2),10:e=>Number(e==1?0:e==2?1:e<7?2:e<11?3:4),11:e=>Number(e==1||e==11?0:e==2||e==12?1:e>2&&e<20?2:3),12:e=>Number(e%10!=1||e%100==11),13:e=>Number(e!==0),14:e=>Number(e==1?0:e==2?1:e==3?2:3),15:e=>Number(e%10==1&&e%100!=11?0:e%10>=2&&(e%100<10||e%100>=20)?1:2),16:e=>Number(e%10==1&&e%100!=11?0:e===0?2:1),17:e=>Number(e==1||e%10==1&&e%100!=11?0:1),18:e=>Number(e==0?0:e==1?1:2),19:e=>Number(e==1?0:e==0||e%100>1&&e%100<11?1:e%100>10&&e%100<20?2:3),20:e=>Number(e==1?0:e==0||e%100>0&&e%100<20?1:2),21:e=>Number(e%100==1?1:e%100==2?2:e%100==3||e%100==4?3:0),22:e=>Number(e==1?0:e==2?1:(e<0||e>10)&&e%10==0?2:3)},LG=[`v1`,`v2`,`v3`],RG=[`v4`],zG={zero:0,one:1,two:2,few:3,many:4,other:5},BG=()=>{let e={};return FG.forEach(t=>{t.lngs.forEach(n=>{e[n]={numbers:t.nr,plurals:IG[t.fc]}})}),e},VG=class{constructor(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};this.languageUtils=e,this.options=t,this.logger=DG.create(`pluralResolver`),(!this.options.compatibilityJSON||RG.includes(this.options.compatibilityJSON))&&(typeof Intl>`u`||!Intl.PluralRules)&&(this.options.compatibilityJSON=`v3`,this.logger.error(`Your environment seems not to be Intl API compatible, use an Intl.PluralRules polyfill. Will fallback to the compatibilityJSON v3 format handling.`)),this.rules=BG(),this.pluralRulesCache={}}addRule(e,t){this.rules[e]=t}clearCache(){this.pluralRulesCache={}}getRule(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(this.shouldUseIntlApi()){let n=TG(e===`dev`?`en`:e),r=t.ordinal?`ordinal`:`cardinal`,i=JSON.stringify({cleanedCode:n,type:r});if(i in this.pluralRulesCache)return this.pluralRulesCache[i];let a;try{a=new Intl.PluralRules(n,{type:r})}catch{if(!e.match(/-|_/))return;let n=this.languageUtils.getLanguagePartFromCode(e);a=this.getRule(n,t)}return this.pluralRulesCache[i]=a,a}return this.rules[e]||this.rules[this.languageUtils.getLanguagePartFromCode(e)]}needsPlural(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return this.shouldUseIntlApi()?n&&n.resolvedOptions().pluralCategories.length>1:n&&n.numbers.length>1}getPluralFormsOfKey(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};return this.getSuffixes(e,n).map(e=>`${t}${e}`)}getSuffixes(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=this.getRule(e,t);return n?this.shouldUseIntlApi()?n.resolvedOptions().pluralCategories.sort((e,t)=>zG[e]-zG[t]).map(e=>`${this.options.prepend}${t.ordinal?`ordinal${this.options.prepend}`:``}${e}`):n.numbers.map(n=>this.getSuffix(e,n,t)):[]}getSuffix(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=this.getRule(e,n);return r?this.shouldUseIntlApi()?`${this.options.prepend}${n.ordinal?`ordinal${this.options.prepend}`:``}${r.select(t)}`:this.getSuffixRetroCompatible(r,t):(this.logger.warn(`no plural rule found for: ${e}`),``)}getSuffixRetroCompatible(e,t){let n=e.noAbs?e.plurals(t):e.plurals(Math.abs(t)),r=e.numbers[n];this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1&&(r===2?r=`plural`:r===1&&(r=``));let i=()=>this.options.prepend&&r.toString()?this.options.prepend+r.toString():r.toString();return this.options.compatibilityJSON===`v1`?r===1?``:typeof r==`number`?`_plural_${r.toString()}`:i():this.options.compatibilityJSON===`v2`||this.options.simplifyPluralSuffix&&e.numbers.length===2&&e.numbers[0]===1?i():this.options.prepend&&n.toString()?this.options.prepend+n.toString():n.toString()}shouldUseIntlApi(){return!LG.includes(this.options.compatibilityJSON)}},HG=function(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:`.`,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!0,a=hG(e,t,n);return!a&&i&&iG(n)&&(a=wG(e,n,r),a===void 0&&(a=wG(t,n,r))),a},UG=e=>e.replace(/\$/g,`$$$$`),WG=class{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=DG.create(`interpolator`),this.options=e,this.format=e.interpolation&&e.interpolation.format||(e=>e),this.init(e)}init(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};e.interpolation||={escapeValue:!0};let{escape:t,escapeValue:n,useRawValueToEscape:r,prefix:i,prefixEscaped:a,suffix:o,suffixEscaped:s,formatSeparator:c,unescapeSuffix:l,unescapePrefix:u,nestingPrefix:d,nestingPrefixEscaped:f,nestingSuffix:p,nestingSuffixEscaped:m,nestingOptionsSeparator:h,maxReplaces:g,alwaysFormat:_}=e.interpolation;this.escape=t===void 0?yG:t,this.escapeValue=n===void 0||n,this.useRawValueToEscape=r!==void 0&&r,this.prefix=i?_G(i):a||`{{`,this.suffix=o?_G(o):s||`}}`,this.formatSeparator=c||`,`,this.unescapePrefix=l?``:u||`-`,this.unescapeSuffix=this.unescapePrefix?``:l||``,this.nestingPrefix=d?_G(d):f||_G(`$t(`),this.nestingSuffix=p?_G(p):m||_G(`)`),this.nestingOptionsSeparator=h||`,`,this.maxReplaces=g||1e3,this.alwaysFormat=_!==void 0&&_,this.resetRegExp()}reset(){this.options&&this.init(this.options)}resetRegExp(){let e=(e,t)=>e&&e.source===t?(e.lastIndex=0,e):new RegExp(t,`g`);this.regexp=e(this.regexp,`${this.prefix}(.+?)${this.suffix}`),this.regexpUnescape=e(this.regexpUnescape,`${this.prefix}${this.unescapePrefix}(.+?)${this.unescapeSuffix}${this.suffix}`),this.nestingRegexp=e(this.nestingRegexp,`${this.nestingPrefix}(.+?)${this.nestingSuffix}`)}interpolate(e,t,n,r){let i,a,o,s=this.options&&this.options.interpolation&&this.options.interpolation.defaultVariables||{},c=e=>{if(e.indexOf(this.formatSeparator)<0){let i=HG(t,s,e,this.options.keySeparator,this.options.ignoreJSONStructure);return this.alwaysFormat?this.format(i,void 0,n,{...r,...t,interpolationkey:e}):i}let i=e.split(this.formatSeparator),a=i.shift().trim(),o=i.join(this.formatSeparator).trim();return this.format(HG(t,s,a,this.options.keySeparator,this.options.ignoreJSONStructure),o,n,{...r,...t,interpolationkey:a})};this.resetRegExp();let l=r&&r.missingInterpolationHandler||this.options.missingInterpolationHandler,u=r&&r.interpolation&&r.interpolation.skipOnVariables!==void 0?r.interpolation.skipOnVariables:this.options.interpolation.skipOnVariables;return[{regex:this.regexpUnescape,safeValue:e=>UG(e)},{regex:this.regexp,safeValue:e=>this.escapeValue?UG(this.escape(e)):UG(e)}].forEach(t=>{for(o=0;i=t.regex.exec(e);){let n=i[1].trim();if(a=c(n),a===void 0){if(typeof l==`function`){let t=l(e,i,r);a=iG(t)?t:``}else if(r&&Object.prototype.hasOwnProperty.call(r,n))a=``;else if(u){a=i[0];continue}else this.logger.warn(`missed to pass in variable ${n} for interpolating ${e}`),a=``}else!iG(a)&&!this.useRawValueToEscape&&(a=oG(a));let s=t.safeValue(a);if(e=e.replace(i[0],s),u?(t.regex.lastIndex+=a.length,t.regex.lastIndex-=i[0].length):t.regex.lastIndex=0,o++,o>=this.maxReplaces)break}}),e}nest(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r,i,a,o=(e,t)=>{let n=this.nestingOptionsSeparator;if(e.indexOf(n)<0)return e;let r=e.split(RegExp(`${n}[ ]*{`)),i=`{${r[1]}`;e=r[0],i=this.interpolate(i,a);let o=i.match(/'/g),s=i.match(/"/g);(o&&o.length%2==0&&!s||s.length%2!=0)&&(i=i.replace(/'/g,`"`));try{a=JSON.parse(i),t&&(a={...t,...a})}catch(t){return this.logger.warn(`failed parsing options string in nesting for key ${e}`,t),`${e}${n}${i}`}return a.defaultValue&&a.defaultValue.indexOf(this.prefix)>-1&&delete a.defaultValue,e};for(;r=this.nestingRegexp.exec(e);){let s=[];a={...n},a=a.replace&&!iG(a.replace)?a.replace:a,a.applyPostProcessor=!1,delete a.defaultValue;let c=!1;if(r[0].indexOf(this.formatSeparator)!==-1&&!/{.*}/.test(r[1])){let e=r[1].split(this.formatSeparator).map(e=>e.trim());r[1]=e.shift(),s=e,c=!0}if(i=t(o.call(this,r[1].trim(),a),a),i&&r[0]===e&&!iG(i))return i;iG(i)||(i=oG(i)),i||=(this.logger.warn(`missed to resolve ${r[1]} for nesting ${e}`),``),c&&(i=s.reduce((e,t)=>this.format(e,t,n.lng,{...n,interpolationkey:r[1].trim()}),i.trim())),e=e.replace(r[0],i),this.regexp.lastIndex=0}return e}},GG=e=>{let t=e.toLowerCase().trim(),n={};if(e.indexOf(`(`)>-1){let r=e.split(`(`);t=r[0].toLowerCase().trim();let i=r[1].substring(0,r[1].length-1);t===`currency`&&i.indexOf(`:`)<0?n.currency||=i.trim():t===`relativetime`&&i.indexOf(`:`)<0?n.range||=i.trim():i.split(`;`).forEach(e=>{if(e){let[t,...r]=e.split(`:`),i=r.join(`:`).trim().replace(/^'+|'+$/g,``),a=t.trim();n[a]||(n[a]=i),i===`false`&&(n[a]=!1),i===`true`&&(n[a]=!0),isNaN(i)||(n[a]=parseInt(i,10))}})}return{formatName:t,formatOptions:n}},KG=e=>{let t={};return(n,r,i)=>{let a=i;i&&i.interpolationkey&&i.formatParams&&i.formatParams[i.interpolationkey]&&i[i.interpolationkey]&&(a={...a,[i.interpolationkey]:void 0});let o=r+JSON.stringify(a),s=t[o];return s||(s=e(TG(r),i),t[o]=s),s(n)}},qG=class{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};this.logger=DG.create(`formatter`),this.options=e,this.formats={number:KG((e,t)=>{let n=new Intl.NumberFormat(e,{...t});return e=>n.format(e)}),currency:KG((e,t)=>{let n=new Intl.NumberFormat(e,{...t,style:`currency`});return e=>n.format(e)}),datetime:KG((e,t)=>{let n=new Intl.DateTimeFormat(e,{...t});return e=>n.format(e)}),relativetime:KG((e,t)=>{let n=new Intl.RelativeTimeFormat(e,{...t});return e=>n.format(e,t.range||`day`)}),list:KG((e,t)=>{let n=new Intl.ListFormat(e,{...t});return e=>n.format(e)})},this.init(e)}init(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{interpolation:{}};this.formatSeparator=t.interpolation.formatSeparator||`,`}add(e,t){this.formats[e.toLowerCase().trim()]=t}addCached(e,t){this.formats[e.toLowerCase().trim()]=KG(t)}format(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},i=t.split(this.formatSeparator);if(i.length>1&&i[0].indexOf(`(`)>1&&i[0].indexOf(`)`)<0&&i.find(e=>e.indexOf(`)`)>-1)){let e=i.findIndex(e=>e.indexOf(`)`)>-1);i[0]=[i[0],...i.splice(1,e)].join(this.formatSeparator)}return i.reduce((e,t)=>{let{formatName:i,formatOptions:a}=GG(t);if(this.formats[i]){let t=e;try{let o=r&&r.formatParams&&r.formatParams[r.interpolationkey]||{},s=o.locale||o.lng||r.locale||r.lng||n;t=this.formats[i](e,s,{...a,...r,...o})}catch(e){this.logger.warn(e)}return t}return this.logger.warn(`there was no format function for ${i}`),e},e)}},JG=(e,t)=>{e.pending[t]!==void 0&&(delete e.pending[t],e.pendingCount--)},YG=class extends OG{constructor(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{};super(),this.backend=e,this.store=t,this.services=n,this.languageUtils=n.languageUtils,this.options=r,this.logger=DG.create(`backendConnector`),this.waitingReads=[],this.maxParallelReads=r.maxParallelReads||10,this.readingCalls=0,this.maxRetries=r.maxRetries>=0?r.maxRetries:5,this.retryTimeout=r.retryTimeout>=1?r.retryTimeout:350,this.state={},this.queue=[],this.backend&&this.backend.init&&this.backend.init(n,r.backend,r)}queueLoad(e,t,n,r){let i={},a={},o={},s={};return e.forEach(e=>{let r=!0;t.forEach(t=>{let o=`${e}|${t}`;!n.reload&&this.store.hasResourceBundle(e,t)?this.state[o]=2:this.state[o]<0||(this.state[o]===1?a[o]===void 0&&(a[o]=!0):(this.state[o]=1,r=!1,a[o]===void 0&&(a[o]=!0),i[o]===void 0&&(i[o]=!0),s[t]===void 0&&(s[t]=!0)))}),r||(o[e]=!0)}),(Object.keys(i).length||Object.keys(a).length)&&this.queue.push({pending:a,pendingCount:Object.keys(a).length,loaded:{},errors:[],callback:r}),{toLoad:Object.keys(i),pending:Object.keys(a),toLoadLanguages:Object.keys(o),toLoadNamespaces:Object.keys(s)}}loaded(e,t,n){let r=e.split(`|`),i=r[0],a=r[1];t&&this.emit(`failedLoading`,i,a,t),!t&&n&&this.store.addResourceBundle(i,a,n,void 0,void 0,{skipCopy:!0}),this.state[e]=t?-1:2,t&&n&&(this.state[e]=0);let o={};this.queue.forEach(n=>{pG(n.loaded,[i],a),JG(n,e),t&&n.errors.push(t),n.pendingCount===0&&!n.done&&(Object.keys(n.loaded).forEach(e=>{o[e]||(o[e]={});let t=n.loaded[e];t.length&&t.forEach(t=>{o[e][t]===void 0&&(o[e][t]=!0)})}),n.done=!0,n.errors.length?n.callback(n.errors):n.callback())}),this.emit(`loaded`,o),this.queue=this.queue.filter(e=>!e.done)}read(e,t,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:0,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:this.retryTimeout,a=arguments.length>5?arguments[5]:void 0;if(!e.length)return a(null,{});if(this.readingCalls>=this.maxParallelReads){this.waitingReads.push({lng:e,ns:t,fcName:n,tried:r,wait:i,callback:a});return}this.readingCalls++;let o=(o,s)=>{if(this.readingCalls--,this.waitingReads.length>0){let e=this.waitingReads.shift();this.read(e.lng,e.ns,e.fcName,e.tried,e.wait,e.callback)}if(o&&s&&r<this.maxRetries){setTimeout(()=>{this.read.call(this,e,t,n,r+1,i*2,a)},i);return}a(o,s)},s=this.backend[n].bind(this.backend);if(s.length===2){try{let n=s(e,t);n&&typeof n.then==`function`?n.then(e=>o(null,e)).catch(o):o(null,n)}catch(e){o(e)}return}return s(e,t,o)}prepareLoading(e,t){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=arguments.length>3?arguments[3]:void 0;if(!this.backend)return this.logger.warn(`No backend was added via i18next.use. Will not load resources.`),r&&r();iG(e)&&(e=this.languageUtils.toResolveHierarchy(e)),iG(t)&&(t=[t]);let i=this.queueLoad(e,t,n,r);if(!i.toLoad.length)return i.pending.length||r(),null;i.toLoad.forEach(e=>{this.loadOne(e)})}load(e,t,n){this.prepareLoading(e,t,{},n)}reload(e,t,n){this.prepareLoading(e,t,{reload:!0},n)}loadOne(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:``,n=e.split(`|`),r=n[0],i=n[1];this.read(r,i,`read`,void 0,void 0,(n,a)=>{n&&this.logger.warn(`${t}loading namespace ${i} for language ${r} failed`,n),!n&&a&&this.logger.log(`${t}loaded namespace ${i} for language ${r}`,a),this.loaded(e,n,a)})}saveMissing(e,t,n,r,i){let a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:{},o=arguments.length>6&&arguments[6]!==void 0?arguments[6]:()=>{};if(this.services.utils&&this.services.utils.hasLoadedNamespace&&!this.services.utils.hasLoadedNamespace(t)){this.logger.warn(`did not save key "${n}" as the namespace "${t}" was not yet loaded`,`This means something IS WRONG in your setup. You access the t function before i18next.init / i18next.loadNamespace / i18next.changeLanguage was done. Wait for the callback or Promise to resolve before accessing it!!!`);return}if(n!=null&&n!==``){if(this.backend&&this.backend.create){let s={...a,isUpdate:i},c=this.backend.create.bind(this.backend);if(c.length<6)try{let i;i=c.length===5?c(e,t,n,r,s):c(e,t,n,r),i&&typeof i.then==`function`?i.then(e=>o(null,e)).catch(o):o(null,i)}catch(e){o(e)}else c(e,t,n,r,o,s)}!e||!e[0]||this.store.addResource(e[0],t,n,r)}}},XG=()=>({debug:!1,initImmediate:!0,ns:[`translation`],defaultNS:[`translation`],fallbackLng:[`dev`],fallbackNS:!1,supportedLngs:!1,nonExplicitSupportedLngs:!1,load:`all`,preload:!1,simplifyPluralSuffix:!0,keySeparator:`.`,nsSeparator:`:`,pluralSeparator:`_`,contextSeparator:`_`,partialBundledLanguages:!1,saveMissing:!1,updateMissing:!1,saveMissingTo:`fallback`,saveMissingPlurals:!0,missingKeyHandler:!1,missingInterpolationHandler:!1,postProcess:!1,postProcessPassResolved:!1,returnNull:!1,returnEmptyString:!0,returnObjects:!1,joinArrays:!1,returnedObjectHandler:!1,parseMissingKeyHandler:!1,appendNamespaceToMissingKey:!1,appendNamespaceToCIMode:!1,overloadTranslationOptionHandler:e=>{let t={};if(typeof e[1]==`object`&&(t=e[1]),iG(e[1])&&(t.defaultValue=e[1]),iG(e[2])&&(t.tDescription=e[2]),typeof e[2]==`object`||typeof e[3]==`object`){let n=e[3]||e[2];Object.keys(n).forEach(e=>{t[e]=n[e]})}return t},interpolation:{escapeValue:!0,format:e=>e,prefix:`{{`,suffix:`}}`,formatSeparator:`,`,unescapePrefix:`-`,nestingPrefix:`$t(`,nestingSuffix:`)`,nestingOptionsSeparator:`,`,maxReplaces:1e3,skipOnVariables:!0}}),ZG=e=>(iG(e.ns)&&(e.ns=[e.ns]),iG(e.fallbackLng)&&(e.fallbackLng=[e.fallbackLng]),iG(e.fallbackNS)&&(e.fallbackNS=[e.fallbackNS]),e.supportedLngs&&e.supportedLngs.indexOf(`cimode`)<0&&(e.supportedLngs=e.supportedLngs.concat([`cimode`])),e),QG=()=>{},$G=e=>{Object.getOwnPropertyNames(Object.getPrototypeOf(e)).forEach(t=>{typeof e[t]==`function`&&(e[t]=e[t].bind(e))})},eK=class e extends OG{constructor(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;if(super(),this.options=ZG(e),this.services={},this.logger=DG,this.modules={external:[]},$G(this),t&&!this.isInitialized&&!e.isClone){if(!this.options.initImmediate)return this.init(e,t),this;setTimeout(()=>{this.init(e,t)},0)}}init(){var e=this;let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;this.isInitializing=!0,typeof t==`function`&&(n=t,t={}),!t.defaultNS&&t.defaultNS!==!1&&t.ns&&(iG(t.ns)?t.defaultNS=t.ns:t.ns.indexOf(`translation`)<0&&(t.defaultNS=t.ns[0]));let r=XG();this.options={...r,...this.options,...ZG(t)},this.options.compatibilityAPI!==`v1`&&(this.options.interpolation={...r.interpolation,...this.options.interpolation}),t.keySeparator!==void 0&&(this.options.userDefinedKeySeparator=t.keySeparator),t.nsSeparator!==void 0&&(this.options.userDefinedNsSeparator=t.nsSeparator);let i=e=>e?typeof e==`function`?new e:e:null;if(!this.options.isClone){this.modules.logger?DG.init(i(this.modules.logger),this.options):DG.init(null,this.options);let t;this.modules.formatter?t=this.modules.formatter:typeof Intl<`u`&&(t=qG);let n=new PG(this.options);this.store=new kG(this.options.resources,this.options);let a=this.services;a.logger=DG,a.resourceStore=this.store,a.languageUtils=n,a.pluralResolver=new VG(n,{prepend:this.options.pluralSeparator,compatibilityJSON:this.options.compatibilityJSON,simplifyPluralSuffix:this.options.simplifyPluralSuffix}),t&&(!this.options.interpolation.format||this.options.interpolation.format===r.interpolation.format)&&(a.formatter=i(t),a.formatter.init(a,this.options),this.options.interpolation.format=a.formatter.format.bind(a.formatter)),a.interpolator=new WG(this.options),a.utils={hasLoadedNamespace:this.hasLoadedNamespace.bind(this)},a.backendConnector=new YG(i(this.modules.backend),a.resourceStore,a,this.options),a.backendConnector.on(`*`,function(t){var n=[...arguments].slice(1);e.emit(t,...n)}),this.modules.languageDetector&&(a.languageDetector=i(this.modules.languageDetector),a.languageDetector.init&&a.languageDetector.init(a,this.options.detection,this.options)),this.modules.i18nFormat&&(a.i18nFormat=i(this.modules.i18nFormat),a.i18nFormat.init&&a.i18nFormat.init(this)),this.translator=new MG(this.services,this.options),this.translator.on(`*`,function(t){var n=[...arguments].slice(1);e.emit(t,...n)}),this.modules.external.forEach(e=>{e.init&&e.init(this)})}if(this.format=this.options.interpolation.format,n||=QG,this.options.fallbackLng&&!this.services.languageDetector&&!this.options.lng){let e=this.services.languageUtils.getFallbackCodes(this.options.fallbackLng);e.length>0&&e[0]!==`dev`&&(this.options.lng=e[0])}!this.services.languageDetector&&!this.options.lng&&this.logger.warn(`init: no languageDetector is used and no lng is defined`),[`getResource`,`hasResourceBundle`,`getResourceBundle`,`getDataByLanguage`].forEach(t=>{this[t]=function(){return e.store[t](...arguments)}}),[`addResource`,`addResources`,`addResourceBundle`,`removeResourceBundle`].forEach(t=>{this[t]=function(){return e.store[t](...arguments),e}});let a=aG(),o=()=>{let e=(e,t)=>{this.isInitializing=!1,this.isInitialized&&!this.initializedStoreOnce&&this.logger.warn(`init: i18next is already initialized. You should call init just once!`),this.isInitialized=!0,this.options.isClone||this.logger.log(`initialized`,this.options),this.emit(`initialized`,this.options),a.resolve(t),n(e,t)};if(this.languages&&this.options.compatibilityAPI!==`v1`&&!this.isInitialized)return e(null,this.t.bind(this));this.changeLanguage(this.options.lng,e)};return this.options.resources||!this.options.initImmediate?o():setTimeout(o,0),a}loadResources(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:QG,n=iG(e)?e:this.language;if(typeof e==`function`&&(t=e),!this.options.resources||this.options.partialBundledLanguages){if(n&&n.toLowerCase()===`cimode`&&(!this.options.preload||this.options.preload.length===0))return t();let e=[],r=t=>{t&&t!==`cimode`&&this.services.languageUtils.toResolveHierarchy(t).forEach(t=>{t!==`cimode`&&e.indexOf(t)<0&&e.push(t)})};n?r(n):this.services.languageUtils.getFallbackCodes(this.options.fallbackLng).forEach(e=>r(e)),this.options.preload&&this.options.preload.forEach(e=>r(e)),this.services.backendConnector.load(e,this.options.ns,e=>{!e&&!this.resolvedLanguage&&this.language&&this.setResolvedLanguage(this.language),t(e)})}else t(null)}reloadResources(e,t,n){let r=aG();return typeof e==`function`&&(n=e,e=void 0),typeof t==`function`&&(n=t,t=void 0),e||=this.languages,t||=this.options.ns,n||=QG,this.services.backendConnector.reload(e,t,e=>{r.resolve(),n(e)}),r}use(e){if(!e)throw Error(`You are passing an undefined module! Please check the object you are passing to i18next.use()`);if(!e.type)throw Error(`You are passing a wrong module! Please check the object you are passing to i18next.use()`);return e.type===`backend`&&(this.modules.backend=e),(e.type===`logger`||e.log&&e.warn&&e.error)&&(this.modules.logger=e),e.type===`languageDetector`&&(this.modules.languageDetector=e),e.type===`i18nFormat`&&(this.modules.i18nFormat=e),e.type===`postProcessor`&&AG.addPostProcessor(e),e.type===`formatter`&&(this.modules.formatter=e),e.type===`3rdParty`&&this.modules.external.push(e),this}setResolvedLanguage(e){if(!(!e||!this.languages)&&!([`cimode`,`dev`].indexOf(e)>-1))for(let e=0;e<this.languages.length;e++){let t=this.languages[e];if(!([`cimode`,`dev`].indexOf(t)>-1)&&this.store.hasLanguageSomeTranslations(t)){this.resolvedLanguage=t;break}}}changeLanguage(e,t){var n=this;this.isLanguageChangingTo=e;let r=aG();this.emit(`languageChanging`,e);let i=e=>{this.language=e,this.languages=this.services.languageUtils.toResolveHierarchy(e),this.resolvedLanguage=void 0,this.setResolvedLanguage(e)},a=(e,a)=>{a?(i(a),this.translator.changeLanguage(a),this.isLanguageChangingTo=void 0,this.emit(`languageChanged`,a),this.logger.log(`languageChanged`,a)):this.isLanguageChangingTo=void 0,r.resolve(function(){return n.t(...arguments)}),t&&t(e,function(){return n.t(...arguments)})},o=t=>{!e&&!t&&this.services.languageDetector&&(t=[]);let n=iG(t)?t:this.services.languageUtils.getBestMatchFromCodes(t);n&&(this.language||i(n),this.translator.language||this.translator.changeLanguage(n),this.services.languageDetector&&this.services.languageDetector.cacheUserLanguage&&this.services.languageDetector.cacheUserLanguage(n)),this.loadResources(n,e=>{a(e,n)})};return!e&&this.services.languageDetector&&!this.services.languageDetector.async?o(this.services.languageDetector.detect()):!e&&this.services.languageDetector&&this.services.languageDetector.async?this.services.languageDetector.detect.length===0?this.services.languageDetector.detect().then(o):this.services.languageDetector.detect(o):o(e),r}getFixedT(e,t,n){var r=this;let i=function(e,t){let a;if(typeof t!=`object`){var o=[...arguments].slice(2);a=r.options.overloadTranslationOptionHandler([e,t].concat(o))}else a={...t};a.lng=a.lng||i.lng,a.lngs=a.lngs||i.lngs,a.ns=a.ns||i.ns,a.keyPrefix!==``&&(a.keyPrefix=a.keyPrefix||n||i.keyPrefix);let s=r.options.keySeparator||`.`,c;return c=a.keyPrefix&&Array.isArray(e)?e.map(e=>`${a.keyPrefix}${s}${e}`):a.keyPrefix?`${a.keyPrefix}${s}${e}`:e,r.t(c,a)};return iG(e)?i.lng=e:i.lngs=e,i.ns=t,i.keyPrefix=n,i}t(){return this.translator&&this.translator.translate(...arguments)}exists(){return this.translator&&this.translator.exists(...arguments)}setDefaultNamespace(e){this.options.defaultNS=e}hasLoadedNamespace(e){let t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!this.isInitialized)return this.logger.warn(`hasLoadedNamespace: i18next was not initialized`,this.languages),!1;
vendor: 4,450 bytes, line 2436
2436if(!this.languages||!this.languages.length)return this.logger.warn(`hasLoadedNamespace: i18n.languages were undefined or empty`,this.languages),!1;let n=t.lng||this.resolvedLanguage||this.languages[0],r=this.options?this.options.fallbackLng:!1,i=this.languages[this.languages.length-1];if(n.toLowerCase()===`cimode`)return!0;let a=(e,t)=>{let n=this.services.backendConnector.state[`${e}|${t}`];return n===-1||n===0||n===2};if(t.precheck){let e=t.precheck(this,a);if(e!==void 0)return e}return!!(this.hasResourceBundle(n,e)||!this.services.backendConnector.backend||this.options.resources&&!this.options.partialBundledLanguages||a(n,e)&&(!r||a(i,e)))}loadNamespaces(e,t){let n=aG();return this.options.ns?(iG(e)&&(e=[e]),e.forEach(e=>{this.options.ns.indexOf(e)<0&&this.options.ns.push(e)}),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}loadLanguages(e,t){let n=aG();iG(e)&&(e=[e]);let r=this.options.preload||[],i=e.filter(e=>r.indexOf(e)<0&&this.services.languageUtils.isSupportedCode(e));return i.length?(this.options.preload=r.concat(i),this.loadResources(e=>{n.resolve(),t&&t(e)}),n):(t&&t(),Promise.resolve())}dir(e){if(e||=this.resolvedLanguage||(this.languages&&this.languages.length>0?this.languages[0]:this.language),!e)return`rtl`;let t=`ar.shu.sqr.ssh.xaa.yhd.yud.aao.abh.abv.acm.acq.acw.acx.acy.adf.ads.aeb.aec.afb.ajp.apc.apd.arb.arq.ars.ary.arz.auz.avl.ayh.ayl.ayn.ayp.bbz.pga.he.iw.ps.pbt.pbu.pst.prp.prd.ug.ur.ydd.yds.yih.ji.yi.hbo.men.xmn.fa.jpr.peo.pes.prs.dv.sam.ckb`.split(`.`),n=this.services&&this.services.languageUtils||new PG(XG());return t.indexOf(n.getLanguagePartFromCode(e))>-1||e.toLowerCase().indexOf(`-arab`)>1?`rtl`:`ltr`}static createInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1?arguments[1]:void 0;return new e(t,n)}cloneInstance(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:QG,r=t.forkResourceStore;r&&delete t.forkResourceStore;let i={...this.options,...t,isClone:!0},a=new e(i);return(t.debug!==void 0||t.prefix!==void 0)&&(a.logger=a.logger.clone(t)),[`store`,`services`,`language`].forEach(e=>{a[e]=this[e]}),a.services={...this.services},a.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},r&&(a.store=new kG(this.store.data,i),a.services.resourceStore=a.store),a.translator=new MG(a.services,i),a.translator.on(`*`,function(e){var t=[...arguments].slice(1);a.emit(e,...t)}),a.init(i,n),a.translator.options=i,a.translator.backendConnector.services.utils={hasLoadedNamespace:a.hasLoadedNamespace.bind(a)},a}toJSON(){return{options:this.options,store:this.store,language:this.language,languages:this.languages,resolvedLanguage:this.resolvedLanguage}}},tK=eK.createInstance();tK.createInstance=eK.createInstance,tK.createInstance,tK.dir,tK.init,tK.loadResources,tK.reloadResources,tK.use,tK.changeLanguage,tK.getFixedT,tK.t,tK.exists,tK.setDefaultNamespace,tK.hasLoadedNamespace,tK.loadNamespaces,tK.loadLanguages;var nK={en:{translation:w({account:{adPreferences:`Ad preferences`,description:`Now you can play anywhere and save your progress`,extendPass:`Extend Pass`,information:`When you sign in with your Google account, the games you have already played on this device will be synced to your account, keeping your best result for each game and showing them as completed on the previous games calendar.`,login:`Login`,logout:`Logout`,passActive:`Daydash Pass active`,passDaysRemaining:`{{count}} days remaining`,passDaysRemaining_one:`{{count}} day remaining`,passValidUntil:`Valid until {{date}}`,signInWithGoogle:`Sign in with Google`,syncProgress:`Syncing your games:`,wait:`Please wait a moment...`},feedback:{link:`https://docs.google.com/forms/d/e/1FAIpQLScFV0NHM9V-M8ZoQBrv2FXQj-4PhR6-bJgwj7K1KAMcAz-NBA/viewform`},footer:{copyright:`© {{years}} Daydash. All rights reserved.`,new:`New`,privacyPolicy:`Privacy Policy`,refundPolicy:`Refund Policy`,termsOfService:`Terms of Service`},homeScreen:{dailyGame:`Daily game`,feedback:`Feedback`,language:`Language`,play:`Play`,previousGames:`Previous games`,privacyPolicy:`Privacy policy`,theme:`Theme`},otherGames:{moreGames:`You can also play:`},pass:{headerSubtitle:`Play ad-free.`,headerSubtitlePriced:`Play ad-free. From {{price}} a day.`,extendTitle:`Extend Daydash Pass`,extendSubtitle:`Continue playing ad-free.`,extendSubtitlePriced:`Continue playing ad-free. From {{price}}
2436 a day.`,noAdsTitle:`Remove ads`,noAdsSub:`Across all Daydash games`,noAutoRenewalTitle:`No auto-renewal`,noAutoRenewalSub:`You decide when to come back`,bestValue:`Best value`,savePercent:`Save {{percent}}%`,perDay:`{{price}} / day`,signInToContinue:`Sign in to continue`,loadingCheckout:`Loading checkout…`,continueWith:`Continue with {{plan}}`,continueWithPrice:`Continue with {{plan}} · {{price}}`,extendWith:`Extend by {{plan}}`,extendWithPrice:`Extend by {{plan}} · {{price}}`,secureCheckout:`Secure checkout via Paddle`,checkoutError:`Checkout couldn't load. Please disable any ad blockers and try again.`,removeAds:`Remove ads`,plans:{90:`3 months`,180:`6 months`,365:`1 year`},confirming:{title:`Confirming your Pass…`,message:`Payment received. We're activating your Pass, which usually takes just a few seconds.`},delayed:{title:`Almost there`,message:`Your payment went through, but activation is taking a little longer than usual. Your Pass will turn on automatically, and you can keep playing in the meantime.`},success:{title:`Welcome to the Daydash Pass`,message:`Daydash is now ad-free for the next {{count}} days across Contexto, Conexo, Letroso and Expresso.`,message_one:`Daydash is now ad-free for the next {{count}} day across Contexto, Conexo, Letroso and Expresso.`,note:`We won't auto-renew. The games stay free either way.`,back:`Back to {{game}}`,receipt:`A receipt has been sent to {{email}}`}},previousGamesScreen:{firstGame:`First game`,title:`Previous games`},shared:{new:`New`},store:{subtitle:`Wear the game you play every day`},themeModal:{title:`Theme`,light:`Light`,dark:`Dark`,system:`Use system's settings`}},{privacyPolicy:`Privacy Policy`,cookieDialog:{p1:`Contexto uses cookies according to our`,p2:`By continuing to play, you agree with it.`},"How to play":`How to play`,Tip:`Hint`,"Give up":`Give up`,"Previous games":`Previous games`,"Closest words":`Closest words`,Settings:`Settings`,Credits:`Credits`,Language:`Language`,game:`Game`,attempts:`Guesses`,tips:`hints`,inputPlaceholder:`type a word`,loading:`Loading...`,oops:`Oops... there was an error!`,onlyOneWord:`Type just one word`,howToPlayText:{p1:`Find the secret word. You have unlimited guesses.`,p2:`The words were sorted by an artificial intelligence algorithm according to how similar they were to the secret word.`,p3:`After submitting a word, you will see its position. The secret word is number 1.`,p4:`The algorithm analyzed thousands of texts. It uses the context in which words are used to calculate the similarity between them.`},giveUpModalText:`Are you sure you want to give up?`,Yes:`Yes`,No:`No`,closestModal:{p2:`These were the {{number}} closest words:`},settingsModal:{tips:`Hints`,easy:`Easy`,easyExplanation:`The hint's position will be half the position of your closest word`,medium:`Medium`,mediumExplanation:`The hint's position will be one less than your closest word`,hard:`Hard`,hardExplanation:`The hint's position will be random`,theme:`Theme`,order:`Sort by`,similarity:`Similarity`,guess:`Guess order`,other:`Other`},end:{played:`I played`,andGotIt:`and got it`,butGaveUp:`but I gave up`,with:`in`,attempts:`guesses`,and:`and`,tips:`hints`,betterLuck:`Better luck in the next one!`,congrats:`Congrats!`,youGaveUpThe:`You gave up in`,youGotThe:`You got it in`,theWordWas:`The word was`,share:`Share`,anyway:`anyway`,copied:`Copied!`,error:`Error :/`,done:`Done!`,playAgain:`Play again`},calculating:`Calculating...`,alreadyGuessedNote:`(already guessed)`,random:`Random`,unlimited:`Unlimited`,Feedback:`Feedback`,topBanner:{text:`O seu date para o Dia dos Namorados é por conta da Daydash!`,action:`Clique aqui e saiba mais`,close:`Close`},faq:{title:`FAQ`,q1:`How is the word order defined?`,a1:`The game uses an artificial intelligence algorithm and thousands of texts to calculate the similarity of the words in relation to the word of the day. Not necessarily it is related to the meaning of the words, but to the proximity in which they are used on the internet. For example, if the word of the day were “infinite”, words related to “love” or words related to “universe” might be close to the word of the day because “infinite” is commonly used in those two different c
2436ontexts. In similar reasoning, if “tv” and “television”, for example, are in very different positions, it means that they are used differently in relation to the word of the day, despite being the same object.`,q2:`How can I ask for a hint?`,a2:`Click on the three dots located on the upper right corner of the screen and select the option “Hint” and it will reveal one word.`,q3:`I couldn't figure the word out. Can I see what the word of the day is?`,a3:`In case you don't want to keep trying to guess the word, you have the option to give up. In order to do it, click on the three dots located on the upper right corner of the screen and select the option “Give up”. The word of the day will be displayed on the screen.`,q4:`I want to play more than one game a day, is that possible?`,a4:`Yes. It is possible to play the games of previous days since Contexto launch day or to play a random game. To do so, click on the three dots located on the upper right corner of the screen and select the option “Previous games”. You can choose the game of some specific day or play on random mode.`,q5:`I couldn't play yesterday. Can I still play yesterday's game?`,a5:`Yes, the previous games can be played anytime. To do so, click on the three dots located on the upper right corner of the screen and select the option “Previous games”. You can choose the game of some specific day or play on random mode.`,q6:`I want to play in another language, how can I do that?`,a6:`Click on the three dots located on the upper right corner of the screen and select “Settings” to change the language. The words of the day are not the same in different languages.`,more:`Read more`},announcement:{content:`New game!`,content2:`Can you discover the secret word?`,action:`Play now`},videoTutorialButton:{text:`Watch the tutorial video`,link:`#`},homeScreen:{gameDescription:`Find the secret word`,unlimited:`Unlimited`}})},es:{translation:w({account:{adPreferences:`Preferencias de anuncios`,description:`Ahora puedes jugar donde quieras y guardar tu progreso`,extendPass:`Extender el Pass`,information:`Al iniciar sesión con tu cuenta de Google, los juegos que ya has jugado en este dispositivo se sincronizarán con tu cuenta, manteniendo tu mejor resultado en cada juego y mostrándolos como completados en el calendario de juegos anteriores.`,login:`Iniciar sesión`,logout:`Cerrar sesión`,passActive:`Daydash Pass activo`,passDaysRemaining:`{{count}} días restantes`,passDaysRemaining_one:`{{count}} día restante`,passValidUntil:`Válido hasta {{date}}`,signInWithGoogle:`Iniciar sesión con Google`,syncProgress:`Sincronizando tus juegos:`,wait:`Por favor espera un momento...`},feedback:{link:`https://docs.google.com/forms/d/e/1FAIpQLScgHozTMV73Obn4XVtb_ZBBysN63DpT8rIFkoDTQcmwvqU6uA/viewform`},footer:{copyright:`© {{years}} Daydash. Todos los derechos reservados.`,new:`Nuevo`,privacyPolicy:`Política de Privacidad`,refundPolicy:`Política de Reembolso`,termsOfService:`Términos de Uso`},homeScreen:{dailyGame:`Juego diario`,feedback:`Feedback`,language:`Idioma`,play:`Jugar`,previousGames:`Juegos anteriores`,privacyPolicy:`Política de Privacidad`,theme:`Tema`},otherGames:{moreGames:`También puedes jugar:`},pass:{headerSubtitle:`Juega sin anuncios.`,headerSubtitlePriced:`Juega sin anuncios. Desde {{price}} al día.`,extendTitle:`Extiende el Daydash Pass`,extendSubtitle:`Sigue jugando sin anuncios.`,extendSubtitlePriced:`Sigue jugando sin anuncios. Desde {{price}} al día.`,noAdsTitle:`Quita los anuncios`,noAdsSub:`En todos los juegos de Daydash`,noAutoRenewalTitle:`Sin renovación automática`,noAutoRenewalSub:`Tú decides cuándo volver`,bestValue:`Mejor valor`,savePercent:`Ahorra {{percent}}%`,perDay:`{{price}} al día`,signInToContinue:`Inicia sesión para continuar`,loadingCheckout:`Cargando checkout…`,continueWith:`Continuar con {{plan}}`,continueWithPrice:`Continuar con {{plan}} · {{price}}`,extendWith:`Extiende {{plan}} más`,extendWithPrice:`Extiende {{plan}} más · {{price}}`,secureCheckout:`Pago seguro con Paddle`,checkoutError:`No se pudo cargar el checkout. Desactiva los bloqueadores de anuncios e inténtalo de nuevo.`,removeAds:`Quitar ads`,plans:{90:`3 meses`,180:`6 meses`,365:`1 año`},confirming:{title:`Confirmando tu Pass…`,message:`Pago recibido. Estamos activando tu Pass, lo que suele tardar solo unos segundos.`},delayed:{title:`Casi listo`,message:`Tu pago se realizó correctamente, pero la activación está tardando un poco más de lo habitual. Tu Pass se activará automáticamente, y puedes seguir jugando mientras tanto.`},success:{title:`Bienvenido al Daydash Pass`,message:`Daydash ahora está sin anuncios durante los próximos {{count}} días en Contexto, Conexo, Letroso y Expresso.`,message_one:`Daydash ahora está sin anuncios durante el próximo {{count}} día en Contexto, Conexo, Letroso y Expresso.`,note:`No renovaremos automáticamente. Los juegos siguen siendo gratis de todos modos.`,back:`Volver a {{game}}`,receipt:`Se ha enviado un recibo a {{email}}`}},previousGamesScreen:{firstGame:`Primero juego`,title:`Juegos anteriores`},shared:{new:`Nuevo`},store:{subtitle:`Viste el juego que juegas todos los días`},themeModal:{title:`Tema`,light:`Claro`,dark:`Oscuro`,system:`Usar la configuración del sistema`}},{privacyPolicy:`Política de Privacidad`,cookieDialog:{p1:`Contexto utiliza cookies de acuerdo con nuestra`,p2:`Al seguir jugando, estás de acuerdo.`},"How to play":`Cómo jugar`,Tip:`Pista`,"Give up":`Rendirse`,"Previous games":`Juegos anteriores`,"Closest words":`Palabras más próximas`,Settings:`Configuraciones`,Credits:`Créditos`,Language:`Idioma`,game:`Juego`,attempts:`Intentos`,tips:`Pistas`,inputPlaceholder:`escriba una palabra`,loading:`Cargando...`,oops:`Oops... ha habido un error!`,onlyOneWord:`Escriba solo una palabra`,howToPlayText:{p1:`Encuentra la palabra secreta. Tienes un número ilimitado de intentos.`,p2:`Un algoritmo de inteligencia artificial clasificó las palabras en función de su similitud con la palabra secreta.`,p3:`Después de enviar una palabra, verás su posición. La palabra secreta es la número 1.`,p4:`El algoritmo analizó miles de textos. Utiliza el contexto en el que se usan las palabras para calcular la similitud entre ellas.`}
2436,giveUpModalText:`¿Estás seguro de que quieres rendirte?`,Yes:`Sí`,No:`No`,closestModal:{p2:`Éstas eran las {{number}} palabras más próximas:`},settingsModal:{tips:`Pistas`,easy:`Fácil`,easyExplanation:`La posición de la pista será la mitad de la posición de tu palabra más cercana`,medium:`Medio`,mediumExplanation:`La posición de la pista será uno menos que su palabra más cercana`,hard:`Difícil`,hardExplanation:`La posición de la pista será aleatoria`,theme:`Tema`,order:`Ordenar por`,similarity:`Similitud`,guess:`Orden de los intentos`,other:`Otros`},end:{played:`Jugué`,andGotIt:`y lo conseguí`,butGaveUp:`pero me rendí`,with:`en`,attempts:`intentos`,and:`y`,tips:`pistas`,betterLuck:`¡Más suerte en la próxima!`,congrats:`¡Felicitaciones!`,youGaveUpThe:`Usted renunció en`,youGotThe:`Has acertado en`,theWordWas:`La palabra era`,share:`Compartir`,anyway:`de todos modos`,copied:`¡Copiado!`,error:`Error :/`,done:`¡Ya está!`,playAgain:`Jugar de nuevo`},calculating:`Calcular...`,alreadyGuessedNote:`(ya intentada)`,random:`Aleatorio`,unlimited:`Ilimitado`,Feedback:`Feedback`,topBanner:{text:`O seu date para o Dia dos Namorados é por conta da Daydash!`,action:`Clique aqui e saiba mais`,close:`Cerrar`},faq:{title:`FAQ`,q1:`¿Cómo se define el orden de las palabras?`,a1:`El juego utiliza un algoritmo de inteligencia artificial y miles de textos para calcular la similitud de las palabras con la palabra del día. No está necesariamente relacionado con el significado de las palabras, pero sí con la proximidad con la que se utilizan en internet. Por ejemplo, si la palabra del día fuera “infinito”, palabras relacionadas con “amor” o palabras relacionadas con “universo” pueden estar cerca de la palabra del día porque “infinito” se usa comúnmente en estos dos contextos diferentes.`,q2:`¿Cómo puedo pedir una pista?`,a2:`Haga clic en los tres puntos que se encuentran en la parte superior derecha de la pantalla y seleccione la opción “Pista”, así una palabra será revelada.`,q3:`No pude descifrar la palabra, ¿puedo ver cuál es la palabra del día?`,a3:`Si no quieres seguir tratando de adivinar la palabra, tienes la opción de rendirse. Para hacerlo, haga clic en los tres puntos que se encuentran en la parte superior derecha de la pantalla y seleccione la opción “Rendirse”. La palabra del día será mostrada en la pantalla.`,q4:`Me gustaría jugar más de un juego al día, ¿es posible?`,a4:`Sí. Es posible jugar los juegos de los días anteriores desde el lanzamiento de Contexto o jugar un juego aleatorio. Para hacerlo, haga un clic en los tres puntos que se encuentran en la parte superior derecha de la pantalla y seleccione la opción “Juegos anteriores”. Puedes elegir un juego de algún día en específico o un juego aleatorio.`,q5:`No pude jugar ayer, ¿puedo jugarlo todavía?`,a5:`Sí, los juegos anteriores pueden ser jugados a cualquier momento. Para hacerlo, haga un clic en los tres puntos que se encuentran en la parte superior derecha de la pantalla y seleccione la opción “Juegos anteriores”. Puedes elegir un juego de algún día en específico o un juego aleatorio.`,q6:`Me gustaría jugar en otro idioma, ¿cómo puedo hacerlo?`,a6:`Haga clic en los tres puntos que se encuentran en la parte superior derecha de la pantalla, seleccione la opción “Ajustes” y elija el idioma. Las palabras del día no son las mismas en los diferentes idiomas.`,more:`Leer más`},announcement:{content:`¡Nuevo juego!`,content2:`¿Puedes descubrir la palabra secreta?`,action:`Jugar ahora`},videoTutorialButton:{text:`Ver el video tutorial`,link:`#`},homeScreen:{gameDescription:`Encuentra la palabra secreta`,unlimited:`Ilimitado`}})},pt:{translation:w({account:{adPreferences:`Preferências de anúncios`,description:`Agora você pode jogar onde quiser e salvar o seu progresso`,extendPass:`Estender o Pass`,information:`Ao entrar com a sua conta do Google, os jogos que você já jogou nesse dispositivo serão sincronizados com a sua conta, mantendo o seu melhor resultado em cada jogo e mostrando-os como completos no calendário de jogos anteriores.`,login:`Login`,logout:`Logout`,passActive:`Daydash Pass ativo`,passDaysRemaining:`{{count}} dias restantes`,passDaysRemaining_one:`{{count}} dia restante`,passValidUntil:`Válido até {{date}}
2436`,signInWithGoogle:`Entrar com o Google`,syncProgress:`Sincronizando seus jogos:`,wait:`Aguarde um pouquinho...`},feedback:{link:`https://docs.google.com/forms/d/e/1FAIpQLScXsy-VNRb6ccYoYtLad9RoMHtM8Cre7nJrEz3BGdFaqpmt1A/viewform`},footer:{copyright:`© {{years}} Daydash. Todos os direitos reservados.`,new:`Novo`,privacyPolicy:`Política de Privacidade`,refundPolicy:`Política de Reembolso`,termsOfService:`Termos de Uso`},homeScreen:{dailyGame:`Jogo diário`,feedback:`Feedback`,language:`Idioma`,play:`Jogar`,previousGames:`Jogos anteriores`,privacyPolicy:`Política de Privacidade`,theme:`Tema`},otherGames:{moreGames:`Você também pode jogar:`},pass:{headerSubtitle:`Jogue sem anúncios.`,headerSubtitlePriced:`Jogue sem anúncios. A partir de {{price}} por dia.`,extendTitle:`Estenda o Daydash Pass`,extendSubtitle:`Continue jogando sem anúncios.`,extendSubtitlePriced:`Continue jogando sem anúncios. A partir de {{price}} por dia.`,noAdsTitle:`Remove os anúncios`,noAdsSub:`Em todos os jogos da Daydash`,noAutoRenewalTitle:`Sem renovação automática`,noAutoRenewalSub:`Você decide quando voltar`,bestValue:`Melhor valor`,savePercent:`Economize {{percent}}%`,perDay:`{{price}} por dia`,signInToContinue:`Entre para continuar`,loadingCheckout:`Carregando checkout…`,continueWith:`Continuar com {{plan}}`,continueWithPrice:`Continuar com {{plan}} · {{price}}`,extendWith:`Estenda por mais {{plan}}`,extendWithPrice:`Estenda por mais {{plan}} · {{price}}`,secureCheckout:`Checkout seguro via Paddle`,checkoutError:`Não foi possível carregar o checkout. Desative os bloqueadores de anúncios e tente novamente.`,removeAds:`Remover ads`,plans:{90:`3 meses`,180:`6 meses`,365:`1 ano`},confirming:{title:`Confirmando seu Pass…`,message:`Pagamento recebido. Estamos ativando seu Pass, o que costuma levar só alguns segundos.`},delayed:{title:`Quase lá`,message:`Seu pagamento foi aprovado, mas a ativação está demorando um pouco mais que o normal. Seu Pass será ativado automaticamente, e você pode continuar jogando enquanto isso.`},success:{title:`Bem-vindo ao Daydash Pass`,message:`A Daydash está sem anúncios pelos próximos {{count}} dias no Contexto, Conexo, Letroso e Expresso.`,message_one:`A Daydash está sem anúncios pelo próximo {{count}} dia no Contexto, Conexo, Letroso e Expresso.`,note:`Não renovamos automaticamente. Os jogos continuam gratuitos de qualquer forma.`,back:`Voltar ao {{game}}`,receipt:`Um recibo foi enviado para {{email}}`}},previousGamesScreen:{firstGame:`Primeiro jogo`,title:`Jogos anteriores`},shared:{new:`Novo`},store:{subtitle:`Vista o jogo que você joga todos os dias`},themeModal:{title:`Tema`,light:`Claro`,dark:`Escuro`,system:`Usar configurações do sistema`}},{privacyPolicy:`Política de Privacidade`,cookieDialog:{p1:`O Contexto utiliza cookies de acordo com a sua`,p2:`Ao continuar jogando, você concorda com ela.`},"How to play":`Como jogar`,Tip:`Dica`,"Give up":`Desistir`,"Previous games":`Jogos anteriores`,"Closest words":`Palavras mais próximas`,Settings:`Configurações`,Credits:`Créditos`,Language:`Idioma`,game:`Jogo`,attempts:`Tentativas`,tips:`Dicas`,inputPlaceholder:`digite uma palavra`,loading:`Carregando...`,oops:`Ixx... deu erro aqui!`,onlyOneWord:`Digite apenas uma palavra`,howToPlayText:{p1:`Descubra a palavra secreta. Você pode tentar quantas vezes precisar.`,p2:`As palavras foram ordenadas por um algoritmo de inteligência artificial de acordo com a similaridade delas com a palavra secreta.`,p3:`Depois de enviar uma palavra, você verá a posição em que ela está. A palavra secreta é a número 1.`,p4:`O algoritmo analisou milhares de textos em Português. Ele utiliza o contexto em que as palavras são utilizadas para calcular a similaridade entre elas.`},giveUpModalText:`Tem certeza de que quer desistir mesmo?`,Yes:`Sim`,No:`Não`,closestModal:{p2:`Essas eram as {{number}} palavras mais próximas:`},settingsModal:{tips:`Dicas:`,easy:`Fáceis`,easyExplanation:`A posição da dica será a metade da posição da sua palavra mais próxima`,medium:`Médias`,mediumExplanation:`A posição da dica será uma a menos que a da sua palavra mais próxima`,hard:`Difíceis`,hardExplanation:`A posição da dica será aleatória`,theme:`Tema`,order:`Ordenar por`,similarity:`Similaridade`,guess:`Ordem de tentativa`,other:`Outras`},end:{played:`Joguei`,andGotIt:`e acertei`,butGaveUp:`mas desisti`,with:`com`,attempts:`tentativas`,and:`e`,tips:`dicas`,betterLuck:`Mais sorte na próxima!`,congrats:`Parabéns!`,youGaveUpThe:`Você desistiu em`,youGotThe:`Você acertou em`,theWordWas:`A palavra era`,share:`Compartilhe`,anyway:`mesmo assim`,copied:`Copiado!`,error:`Deu erro :/`,done:`Pronto!`,playAgain:`Jogue novamente`},calculating:`Calculando...`,alreadyGuessedNote:`(já tentada)`,random:`Aleatório`,unlimited:`Ilimitado`,Feedback:`Feedback`,topBanner:{text:`O seu date para o Dia dos Namorados é por conta da Daydash!`,action:`Clique aqui e saiba mais`,close:`Fechar`},faq:{title:`FAQ`,q1:`Como a ordem das palavras é definida?`,a1:`O jogo utiliza um algoritmo de inteligência artificial e milhares de textos para calcular a similaridade das palavras em relação à palavra do dia. Não necessariamente está relacionado ao significado das palavras, mas sim à proximidade em que elas são utilizadas na internet. Por exemplo, se a palavra do dia for “infinito”, palavras relacionadas a “amor” ou palavras relacionadas a “universo” podem estar próximas à palavra do dia porque “infinito” é comumente utilizada nesses dois contextos diferentes. Em raciocínio semelhante, se “tv” e “televisão”, por exemplo, estão em posições bem distintas, significa que são utilizadas de forma diferente em relação à palavra do dia, apesar de se tratarem do mesmo objeto.`,q2:`Como posso pedir uma dica?`,a2:`Clique nos três pontinhos localizados no lado direito superior da tela e selecione a opção “Dica”, que revelará uma palavra.`,q3:`Eu não consegui descobrir a palavra, consigo ver qual é a palavra do dia?`,a3:`Caso não queira continuar tentando adivinhar a palavra, você tem a opção de desistir. Para isso, clique nos três pontinhos localizados no lado direito superior da tela e vá na opção “Desistir”. A palavra do dia será mostrada n
2436a tela.`,q4:`Quero jogar mais de um jogo por dia, é possível?`,a4:`Sim. É possível jogar jogos de dias anteriores desde o lançamento do Contexto ou jogar uma partida aleatória. Para isso, clique nos três pontinhos localizados no lado direito superior da tela e na opção “Jogos anteriores”. Você poderá selecionar o jogo de algum dia específico ou clicar no modo aleatório.`,q5:`Eu perdi o jogo de ontem, ainda posso jogá-lo?`,a5:`Sim, os jogos anteriores podem ser jogados a qualquer momento. Para isso, clique nos três pontinhos localizados no lado direito superior da tela e na opção “Jogos anteriores”. Você poderá selecionar o jogo de algum dia específico ou clicar no modo aleatório.`,q6:`Quero jogar em outro idioma, como faço isso?`,a6:`Basta clicar nos três pontinhos localizados no lado direito superior da tela, ir em Configurações e escolher o idioma. As palavras do dia não são as mesmas nos diferentes idiomas.`,more:`Leia mais`},announcement:{content:`Novo jogo!`,content2:`Você consegue descobrir a palavra secreta?`,action:`Jogar agora`},videoTutorialButton:{text:`Assista ao vídeo tutorial`,link:`https://www.youtube.com/shorts/2PLoYCWJ_mw`},homeScreen:{gameDescription:`Encontre a palavra secreta`,unlimited:`Ilimitado`}})}};tK.use(lo).init({resources:nK,lng:`pt`,fallbackLng:`pt`,keySeparator:`.`,interpolation:{escapeValue:!1}});var rK=(e,t)=>{let n=`https://api.contexto.me/machado`;return{play:r=>fetch(`${n}/${e}/game/${t}/${r}`),tip:r=>fetch(`${n}/${e}/tip/${t}/${r}`),giveUp:()=>fetch(`${n}/${e}/giveup/${t}`),getClosestWords:()=>fetch(`${n}/${e}/top/${t}`)}},iK={game:`_game_16roi_1`,gameLogo:`_gameLogo_16roi_8`,gameName:`_gameName_16roi_12`},aK=`2024-09-01`,oK=`2024-09-15`;function sK(){let{t:e}=go();return(0,N.default)().isBefore((0,N.default)(aK).startOf(`day`))||(0,N.default)().isAfter((0,N.default)(oK).startOf(`day`))?null:(0,Y.jsxs)(`div`,{className:`end-msg`,style:{marginTop:0},children:[(0,Y.jsx)(`p`,{children:(0,Y.jsx)(`b`,{children:e(`announcement.content`)})}),(0,Y.jsx)(`p`,{children:e(`announcement.content2`)}),(0,Y.jsxs)(`div`,{className:iK.game,children:[(0,Y.jsx)(`div`,{className:iK.gameLogo,children:(0,Y.jsx)(X.Letroso,{size:20})}),(0,Y.jsx)(`div`,{className:iK.gameName,children:`LETROSO`})]}),(0,Y.jsx)(`div`,{className:`end-share-wrapper`,style:{marginTop:20},children:(0,Y.jsx)(`a`,{className:`button`,href:`https://letroso.com`,target:`_blank`,rel:`noreferrer`,children:e(`announcement.action`)})})]})}var cK={otherGamesWrapper:`_otherGamesWrapper_o1gh2_1`,otherGames:`_otherGames_o1gh2_1`,moreGames:`_moreGames_o1gh2_20`,gamesList:`_gamesList_o1gh2_26`,verticalGame:`_verticalGame_o1gh2_33`,gameLogo:`_gameLogo_o1gh2_40`,gameName:`_gameName_o1gh2_44`,withBadge:`_withBadge_o1gh2_51`},lK={newBadgeContainer:`_newBadgeContainer_yi5ft_1`,withChildren:`_withChildren_yi5ft_5`,newBadge:`_newBadge_yi5ft_1`};function uK({children:e,releaseDate:t,expirationDate:n}){let{t:r}=go();return hT().isBefore((0,N.default)(t).startOf(`day`))||hT().isAfter((0,N.default)(n).endOf(`day`))?e:(0,Y.jsxs)(`div`,{className:lK.newBadgeContainer,children:[e,(0,Y.jsx)(`div`,{className:`${lK.newBadge} ${e&&lK.withChildren}`,children:r(`shared.new`)})]})}var dK=`CONTEXTO`;function fK({logo:e,name:t,url:n,subPath:r}){if(t===dK)return null;let i=Oe()?je(r):n;return(0,Y.jsxs)(`a`,{className:cK.verticalGame,href:i,children:[(0,Y.jsx)(`div`,{className:cK.gameLogo,children:e}),(0,Y.jsx)(`div`,{className:cK.gameName,children:t})]})}var pK=32;function mK(){let{t:e}=go();return(0,Y.jsx)(`div`,{className:cK.otherGamesWrapper,children:(0,Y.jsxs)(`div`,{className:cK.otherGames,children:[(0,Y.jsx)(`div`,{className:cK.moreGames,children:e(`otherGames.moreGames`)}),(0,Y.jsxs)(`div`,{className:cK.gamesList,children:[(0,Y.jsx)(fK,{logo:(0,Y.jsx)(X.Contexto,{size:pK}),name:`CONTEXTO`,subPath:`contexto`,url:`https://contexto.me`}),(0,Y.jsx)(fK,{logo:(0,Y.jsx)(X.Conexo,{size:pK}),name:`CONEXO`,subPath:`conexo`,url:`https://conexo.ws`}),(0,Y.jsx)(fK,{logo:(0,Y.jsx)(X.Letroso,{size:pK}),name:`LETROSO`,subPath:`letroso`,url:`https://letroso.com`}),(0,Y.jsxs)(`div`,{className:cK.withBadge,children:[(0,Y.jsx)(mA,{releaseDate:`2026-03-01`,children:(0,Y.jsx)(fK,{logo:(0,Y.jsx)(X.Expresso,{size:pK}),name:`EXPRESSO`,subPath:`expresso`,url:`https://expresso.ac`})}),(0,Y.jsx)(uK,{releaseDate:`2026-03-01`,expirationDate:`2026-04-01`})]})]})]})})}function hK(e,t){let[n,r]=(0,y.useState)(()=>
2436{if(typeof window>`u`)return t;try{let n=window.localStorage.getItem(e);return n?JSON.parse(n):t}catch(e){return console.log(e),t}});return[n,t=>{try{let i=t instanceof Function?t(n):t;r(i),typeof window<`u`&&window.localStorage.setItem(e,JSON.stringify(i))}catch(e){console.log(e)}}]}var gK={topBanner:`_topBanner_wn932_1`,vertical:`_vertical_wn932_16`,hidden:`_hidden_wn932_22`,topBannerIcon:`_topBannerIcon_wn932_26`,topBannerText:`_topBannerText_wn932_36`,topBannerButtons:`_topBannerButtons_wn932_41`},_K=`br-valentines-2025`,vK=`contexto`,yK=`2025-06-03`,bK=`2025-06-11`;function xK({onActionClick:e=()=>{}}){let{t}=go(),[n,r]=hK(`${vK}-top-banner-dismissed`,``),{language:i}=Ki(),a=(0,N.default)(yK).startOf(`day`),o=(0,N.default)(bK).endOf(`day`),s=i===`pt`&&a.isBefore((0,N.default)())&&o.isAfter((0,N.default)())&&n!==_K;return(0,Y.jsxs)(`div`,{className:`${gK.topBanner} ${gK.vertical} ${s?``:gK.hidden}`,children:[(0,Y.jsx)(`div`,{className:gK.topBannerText,children:t(`topBanner.text`)}),(0,Y.jsxs)(`div`,{className:`${gK.topBannerButtons} ${gK.vertical}`,children:[(0,Y.jsxs)(`a`,{href:`https://www.instagram.com/p/DKcVkjqNaHW/`,target:`_blank`,rel:`noreferrer`,className:`button small`,onClick:()=>{st.topBannerAction(i,_K),e()},children:[(0,Y.jsx)(X.ExternalLink,{}),t(`topBanner.action`)]}),(0,Y.jsx)(`button`,{type:`button`,className:`button small subtle`,onClick:()=>{st.topBannerDismiss(i,_K),r(_K)},children:t(`topBanner.close`)})]})]})}var SK=u(s(((e,t)=>{var n={linear:function(e,t,n,r){return(n-t)*e/r+t},easeInQuad:function(e,t,n,r){return(n-t)*(e/=r)*e+t},easeOutQuad:function(e,t,n,r){return-(n-t)*(e/=r)*(e-2)+t},easeInOutQuad:function(e,t,n,r){var i=n-t;return(e/=r/2)<1?i/2*e*e+t:-i/2*(--e*(e-2)-1)+t},easeInCubic:function(e,t,n,r){return(n-t)*(e/=r)*e*e+t},easeOutCubic:function(e,t,n,r){return(n-t)*((e=e/r-1)*e*e+1)+t},easeInOutCubic:function(e,t,n,r){var i=n-t;return(e/=r/2)<1?i/2*e*e*e+t:i/2*((e-=2)*e*e+2)+t},easeInQuart:function(e,t,n,r){return(n-t)*(e/=r)*e*e*e+t},easeOutQuart:function(e,t,n,r){return-(n-t)*((e=e/r-1)*e*e*e-1)+t},easeInOutQuart:function(e,t,n,r){var i=n-t;return(e/=r/2)<1?i/2*e*e*e*e+t:-i/2*((e-=2)*e*e*e-2)+t},easeInQuint:function(e,t,n,r){return(n-t)*(e/=r)*e*e*e*e+t},easeOutQuint:function(e,t,n,r){return(n-t)*((e=e/r-1)*e*e*e*e+1)+t},easeInOutQuint:function(e,t,n,r){var i=n-t;return(e/=r/2)<1?i/2*e*e*e*e*e+t:i/2*((e-=2)*e*e*e*e+2)+t},easeInSine:function(e,t,n,r){var i=n-t;return-i*Math.cos(e/r*(Math.PI/2))+i+t},easeOutSine:function(e,t,n,r){return(n-t)*Math.sin(e/r*(Math.PI/2))+t},easeInOutSine:function(e,t,n,r){return-(n-t)/2*(Math.cos(Math.PI*e/r)-1)+t},easeInExpo:function(e,t,n,r){var i=n-t;return e==0?t:i*2**(10*(e/r-1))+t},easeOutExpo:function(e,t,n,r){var i=n-t;return e==r?t+i:i*(-(2**(-10*e/r))+1)+t},easeInOutExpo:function(e,t,n,r){var i=n-t;return e===0?t:e===r?t+i:(e/=r/2)<1?i/2*2**(10*(e-1))+t:i/2*(-(2**(-10*--e))+2)+t},easeInCirc:function(e,t,n,r){return-(n-t)*(Math.sqrt(1-(e/=r)*e)-1)+t},easeOutCirc:function(e,t,n,r){return(n-t)*Math.sqrt(1-(e=e/r-1)*e)+t},easeInOutCirc:function(e,t,n,r){var i=n-t;return(e/=r/2)<1?-i/2*(Math.sqrt(1-e*e)-1)+t:i/2*(Math.sqrt(1-(e-=2)*e)+1)+t},easeInElastic:function(e,t,n,r){var i=n-t,a,o,s=1.70158;return o=0,a=i,e===0?t:(e/=r)===1?t+i:(o||=r*.3,a<Math.abs(i)?(a=i,s=o/4):s=o/(2*Math.PI)*Math.asin(i/a),-(a*2**(10*--e)*Math.sin((e*r-s)*(2*Math.PI)/o))+t)},easeOutElastic:function(e,t,n,r){var i=n-t,a,o,s=1.70158;return o=0,a=i,e===0?t:(e/=r)===1?t+i:(o||=r*.3,a<Math.abs(i)?(a=i,s=o/4):s=o/(2*Math.PI)*Math.asin(i/a),a*2**(-10*e)*Math.sin((e*r-s)*(2*Math.PI)/o)+i+t)},easeInOutElastic:function(e,t,n,r){var i=n-t,a,o,s=1.70158;return o=0,a=i,e===0?t:(e/=r/2)==2?t+i:(o||=.3*1.5*r,a<Math.abs(i)?(a=i,s=o/4):s=o/(2*Math.PI)*Math.asin(i/a),e<1?-.5*(a*2**(10*--e)*Math.sin((e*r-s)*(2*Math.PI)/o))+t:a*2**(-10*--e)*Math.sin((e*r-s)*(2*Math.PI)/o)*.5+i+t)},easeInBack:function(e,t,n,r,i){var a=n-t;return i===void 0&&(i=1.70158),a*(e/=r)*e*((i+1)*e-i)+t},easeOutBack:function(e,t,n,r,i){var a=n-t;return i===void 0&&(i=1.70158),a*((e=e/r-1)*e*((i+1)*e+i)+1)+t},easeInOutBack:function(e,t,n,r,i){var a=n-t;return i===void 0&&(i=1.70158),(e/=r/2)<1?a/2*(e*e*(((i*=1.525)+1)*e-i))+t:a/2*((e-=2)*e*(((i*=1.525)+1)*e+i)+2)+t},easeInBounce:function(e,t,r,i){var a=r-t;return a-n.easeOutBounce(i-e,0,a,i)+t},easeOutBounce:function(e,t,n,r){var i=n-t;return(e/=r)<1/2.75?i*(7.5625*e*e)+t:e<2/2.75?i*(7.5625*(e-=1.5/2.75)*e+.75)+t:e<2.5/2.75?i*(7.5625*(e-=2.25/2.75)*e+.9375)+t:i*(7.5625*(e-=2.625/2.75)*e+.984375)+t},easeInOutBounce:function(e,t,r,i){var a=r-t,o;return e<i/2?(o=n.easeInBounce(e*2,0,a,i),o*.5+t):(o=n.easeOutBounce(e*2-i,0,a,i),o*.5+a*.5+t)}};t.exports=n}))(),1);function CK(e){return e*Math.PI/180}function wK(e,t){return e+Math.random()*(t-e)}function TK(e,t){return Math.floor(e+Math.random()*(t-e+1))}var EK;(function(e){e[e.Circle=0]=`Circle`,e[e.Square=1]=`Square`,e[e.Strip=2]=`Strip`})(EK||={});var DK;(function(e){e[e.Positive=1]=`Positive`,e[e.Negative=-1]=`Negative`})(DK||={});var OK=1e3/60,kK=class{constructor(e,t,n,r){this.getOptions=t;let{colors:i,initialVelocityX:a,initialVelocityY:o}=this.getOptions();this.context=e,this.x=n,this.y=r,this.w=wK(5,20),this.h=wK(5,20),this.radius=wK(5,10),this.vx=typeof a==`number`?wK(-a,a):wK(a.min,a.max),this.vy=typeof o==`number`?wK(-o,0):wK(o.min,o.max),this.shape=TK(0,2),this.angle=CK(wK(0,360)),this.angularSpin=wK(-.2,.2),this.color=i[Math.floor(Math.random()*i.length)],this.rotateY=wK(0,1),this.rotationDirection=wK(0,1)?DK.Positive:DK.Negative}update(e){let{gravity:t,wind:n,friction:r,opacity:i,drawShape:a}=this.getOptions(),o=e/OK;this.x+=this.vx*o,this.y+=this.vy*o,this.vy+=t*o,this.vx+=n*o,this.vx*=r**o,this.vy*=r**o,this.rotateY>=1&&this.rotationDirection===DK.Positive?this.rotationDirection=DK.Negative:this.rotateY<=-1&&this.rotationDirection===DK.Negative&&(this.rotationDirection=DK.Positive);let s=.1*this.rotationDirection*o;if(this.rotateY+=s,this.angle+=this.angularSpin,this.context.save(),this.context.translate(this.x,this.y),this.context.rotate(this.angle),this.context.scale(1,this.rotateY),this.context.rotate(this.angle),this.context.beginPath(),this.context.fillStyle=this.color,this.context.strokeStyle=this.color,this.context.globalAlpha=i,this.context.lineCap=`round`,this.context.lineWidth=2,a&&typeof a==`function`)a.call(this,this.context);else switch(this.shape){case EK.Circle:this.context.beginPath(),this.context.arc(0,0,this.radius,0,2*Math.PI),this.context.fill();break;case EK.Square:this.context.fillRect(-this.w/2,-this.h/2,this.w,this.h);break;case EK.Strip:this.context.fillRect(-this.w/6,-this.h/2,this.w/3,this.h)}
2436this.context.closePath(),this.context.restore()}},AK=class{constructor(e,t){this.x=0,this.y=0,this.w=0,this.h=0,this.lastNumberOfPieces=0,this.tweenProgress=0,this.tweenFrom=0,this.particles=[],this.particlesGenerated=0,this.removeParticleAt=e=>{this.particles.splice(e,1)},this.getParticle=()=>{let e=wK(this.x,this.w+this.x),t=wK(this.y,this.h+this.y);return new kK(this.context,this.getOptions,e,t)},this.animate=e=>{let{canvas:t,context:n,particlesGenerated:r,lastNumberOfPieces:i}=this,{run:a,recycle:o,numberOfPieces:s,debug:c,tweenFunction:l,tweenDuration:u}=this.getOptions();if(!a)return!1;let d=this.particles.length,f=o?d:r;if(f<s){i!==s&&(this.tweenProgress=0,this.tweenFrom=f,this.lastNumberOfPieces=s),this.tweenProgress=Math.min(u,Math.max(0,this.tweenProgress+e));let t=l(this.tweenProgress,this.tweenFrom,s,u),n=Math.round(t-f);for(let e=0;e<n;e++)this.particles.push(this.getParticle());this.particlesGenerated+=n}c&&(n.font=`12px sans-serif`,n.fillStyle=`#333`,n.textAlign=`right`,n.fillText(`Particles: ${d}`,t.width-10,t.height-20));for(let n=this.particles.length-1;n>=0;n--){let r=this.particles[n];r.update(e),(r.y>t.height||r.y<-100||r.x>t.width+100||r.x<-100)&&(o&&f<=s?this.particles[n]=this.getParticle():this.removeParticleAt(n))}return d>0||f<s},this.canvas=e;let n=this.canvas.getContext(`2d`);if(!n)throw Error(`Could not get canvas context`);this.context=n,this.getOptions=t}},jK={width:typeof window<`u`?window.innerWidth:300,height:typeof window<`u`?window.innerHeight:200,numberOfPieces:200,friction:.99,wind:0,gravity:.1,initialVelocityX:4,initialVelocityY:10,colors:[`#f44336`,`#e91e63`,`#9c27b0`,`#673ab7`,`#3f51b5`,`#2196f3`,`#03a9f4`,`#00bcd4`,`#009688`,`#4CAF50`,`#8BC34A`,`#CDDC39`,`#FFEB3B`,`#FFC107`,`#FF9800`,`#FF5722`,`#795548`],opacity:1,debug:!1,tweenFunction:SK.easeInOutQuad,tweenDuration:5e3,recycle:!0,run:!0},MK=class{constructor(e,t){this.lastFrameTime=0,this.setOptionsWithDefaults=e=>{let t={confettiSource:{x:0,y:0,w:this.canvas.width,h:0}};this._options={...t,...jK,...e},Object.assign(this,e.confettiSource)},this.update=(e=0)=>{let{options:{run:t,onConfettiComplete:n,frameRate:r},canvas:i,context:a}=this,o=Math.min(e-this.lastFrameTime,50);if(r&&o<1e3/r){this.rafId=requestAnimationFrame(this.update);return}this.lastFrameTime=e-(r?o%r:0),t&&(a.fillStyle=`white`,a.clearRect(0,0,i.width,i.height)),this.generator.animate(o)?this.rafId=requestAnimationFrame(this.update):(n&&typeof n==`function`&&this.generator.particlesGenerated>0&&n.call(this,this),this._options.run=!1)},this.reset=()=>{this.generator&&this.generator.particlesGenerated>0&&(this.generator.particlesGenerated=0,this.generator.particles=[],this.generator.lastNumberOfPieces=0)},this.stop=()=>{this.options={run:!1},this.rafId&&=(cancelAnimationFrame(this.rafId),void 0)},this.canvas=e;let n=this.canvas.getContext(`2d`);if(!n)throw Error(`Could not get canvas context`);this.context=n,this.generator=new AK(this.canvas,()=>this.options),this.options=t,this.update()}get options(){return this._options}set options(e){let t=this._options?.run,n=this._options?.recycle;this.setOptionsWithDefaults(e),this.generator&&(Object.assign(this.generator,this.options.confettiSource),typeof e.recycle==`boolean`&&e.recycle&&n===!1&&(this.generator.lastNumberOfPieces=this.generator.particles.length)),typeof e.run==`boolean`&&e.run&&t===!1&&this.update()}},NK=y.createRef(),PK=class extends y.Component{constructor(e){super(e),this.canvas=y.createRef(),this.canvas=e.canvasRef||NK}componentDidMount(){if(this.canvas.current){let e=FK(this.props)[0];this.confetti=new MK(this.canvas.current,e)}}componentDidUpdate(){let e=FK(this.props)[0];this.confetti&&(this.confetti.options=e)}componentWillUnmount(){this.confetti&&this.confetti.stop(),this.confetti=void 0}render(){let[e,t]=FK(this.props),n={zIndex:2,position:`absolute`,pointerEvents:`none`,top:0,left:0,bottom:0,right:0,...t.style};return(0,Y.jsx)(`canvas`,{width:e.width,height:e.height,ref:this.canvas,...t,style:n})}};PK.defaultProps={...jK},PK.displayName=`ReactConfetti`;function FK(e){let t={},n={},r={},i=[...Object.keys(jK),`confettiSource`,`drawShape`,`onConfettiComplete`,`frameRate`],a=[`canvasRef`];for(let n in e){let o=e[n];i.includes(n)?t[n]=o:a.includes(n)?a[n]=o:r[n]=o}return[t,r,n]}var IK=y.forwardRef((e,t)=>
2436(0,Y.jsx)(PK,{canvasRef:t,...e})),LK={wrapper:`_wrapper_1tves_1`,date:`_date_1tves_33`};function RK(){let{language:e}=Ki(),t=(0,N.default)().format(`YYYY-MM-DD`);return e!==`pt`||t!==`2026-02-23`?null:(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(WW.div,{className:LK.wrapper,initial:{opacity:0,y:-50},animate:{opacity:1,y:0},exit:{opacity:0,y:-50},transition:{type:`spring`,stiffness:70},children:[(0,Y.jsx)(`p`,{className:LK.date,children:`23 de fevereiro de 2026`}),(0,Y.jsx)(`h2`,{children:`4 anos de Contexto! 🎉`}),(0,Y.jsx)(`p`,{children:`Obrigado por fazer parte dessa jornada incrível!`})]}),(0,Y.jsx)(IK,{numberOfPieces:2e3,recycle:!1,tweenDuration:1e4})]})}var zK=.5;function BK({delaySeconds:e=0,children:t}){return(0,Y.jsx)(WW.div,{initial:{y:-50,opacity:0},animate:{y:0,opacity:1},transition:{duration:zK,delay:e},children:t})}N.default.extend(qW.default);var VK={loading:!1,data:[]},HK=.35;function UK(){let{loading:e,gameState:t,setGameState:n,openGameData:r,setOpenGameData:i,unlimitedPlayAgain:a}=QW(),[o,s]=(0,y.useState)(``),[c,l]=(0,y.useState)(``),[u,d]=(0,y.useState)(``),[f,p]=(0,y.useState)(!1),m=ZD(),[h,g]=(0,y.useState)({}),[_,v]=(0,y.useState)(`similarity`),{t:b}=go(),{language:x}=Ki(),S=Hi(`/:language/unlimited`);SD();let C=!!S;
2436rG({gameId:r?.gameId??null,isGameOver:e||!r?null:!!(r.foundWord||r.gaveUp)});let w=e=>{n({...t,tipSetting:e}),st.tipSetting(e)};if(e)return(0,Y.jsx)(nP,{children:(0,Y.jsxs)(`main`,{children:[(0,Y.jsx)(iP,{title:(0,Y.jsx)(`div`,{className:`title`,children:(0,Y.jsx)(`h1`,{children:`Contexto`})}),hideAccountButton:!0}),(0,Y.jsx)(`div`,{style:{display:`flex`,justifyContent:`center`},children:(0,Y.jsx)(nA,{})})]})});if(x===void 0)return(0,Y.jsx)(`div`,{});let{gameData:T,openGameId:E,tipSetting:ee=`half`}=t;if(!T||!r)return(0,Y.jsx)(`div`,{});let te=x===`pt`?`pt-br`:x,{gameId:D,guessHistory:ne,lastGuess:re,foundWord:O,numberOfTips:ie,numberOfAttempts:k,gaveUp:ae,postGameHistory:oe}=r,A=rK(te,D),j=O||ae,M=async e=>{let t=``,n=-2,r=``;try{let i=await A.play(e);({lemma:t,distance:n,error:r}=await i.json())}catch{r=b(`oops`)}return{lemma:t,distance:n,error:r}},se=e=>{let t=ne.find(t=>t.word===e);return t||=oe.find(t=>t.word===e),t};function ce(e){return/\s/.test(e)}let le=async({tip:e=``,tipDistance:t}={})=>{let n=CD(o);if(e&&(n=e.toLowerCase().trim()),n===``)return;if(ce(n)===!0){l(`error`),d(b(`onlyOneWord`));return}let r,a,c;if(t?(r=e,a=t,c=``):{lemma:r,distance:a,error:c}=await M(n),c||a<0){l(`error`),d(c);return}let u=se(r);if(u){i({lastGuess:u}),l(`repeated`),s(``);return}let f={word:r,distance:a,...e?{hint:!0}:{}},p=O;a===0&&!ae&&(p=r);let m=ne,h=oe;j?h=[...oe,f]:m=[...ne,f],i({guessHistory:m,postGameHistory:h,lastGuess:f,foundWord:p,numberOfTips:e?ie+1:ie,numberOfAttempts:e||O||ae?k:k+1}),l(``),s(``),ne.length===0&&st.start(x),e===``?a===0?st.win(x):O===``?st.guess(x):st.guessAfterWin(x):st.tip(x)},ue=async e=>{e.preventDefault(),!f&&(p(!0),await le(),p(!1))},de=e=>{f||s(e.target.value)},fe=async()=>{let e;e=ee===`random`?DD(ne):ee===`next`?OD(ne):kD(ne);let{lemma:t,distance:n}=await(await A.tip(e)).json();return{lemma:t,distance:n}},pe=async()=>{let{lemma:e}=await(await A.giveUp()).json();return e},me=async()=>{p(!0);let{lemma:e,distance:t}=await fe(),n=()=>ne.findIndex(t=>t.word===e)!==-1,r=0;for(;n()&&r<10;)({lemma:e,distance:t}=await fe()),r+=1;n()||await le({tip:e,tipDistance:t}),p(!1)},he=async()=>{m.close(),p(!0);let e=await pe();i({gaveUp:e,lastGuess:{word:e,distance:0},postGameHistory:[{word:e,distance:0}]}),st.giveUp(x),p(!1)},ge=async()=>{let{loading:e,data:t}=h[E]||VK;if(m.open(`current`),st.topWordsModalOpen(x),e||t.length>0)return;g({...h,[E]:{loading:!0,data:[]}});let{words:n}=await(await A.getClosestWords()).json();g({...h,[E]:{loading:!1,data:n}}),st.viewTopWords(x)},_e=null;f?_e=(0,Y.jsx)(`div`,{className:`message`,children:(0,Y.jsx)(`div`,{className:`message-text`,children:(0,Y.jsx)(LO,{text:b(`calculating`)})})}):c===`repeated`?_e=(0,Y.jsx)(`div`,{className:`message`,children:(0,Y.jsx)(`div`,{children:(0,Y.jsx)(BO,{word:re.word,distance:re.distance,note:b(`alreadyGuessedNote`),hint:re.hint})})}):c===`error`?_e=(0,Y.jsx)(`div`,{className:`message`,children:(0,Y.jsx)(`div`,{className:`message-text`,children:u})}):re!==null&&(_e=(0,Y.jsx)(`div`,{className:`message`,children:(0,Y.jsx)(`div`,{children:(0,Y.jsx)(BO,{word:re.word,distance:re.distance,hint:re.hint,highlight:!0})})}));let ve=null;!C&&E===MD(x)&&_e===null&&!j&&ne.length===0&&(ve=(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`div`,{className:`how-to-play`,children:(0,Y.jsx)(pO,{})}),(0,Y.jsx)(`div`,{className:`faq-card`,children:(0,Y.jsx)(IO,{limit:2})}),(0,Y.jsx)(`div`,{className:`faq-read-more`,children:(0,Y.jsxs)(`button`,{type:`button`,className:`button small subtle`,onClick:()=>{m.open(`faq`),st.faq(x)},children:[b(`faq.more`),`...`]})})]}));let ye=HK,be=C?.7:HK,xe=be+HK,Se=re?[re.word]:[],Ce=ne.concat(oe||[]);return(0,Y.jsx)(nP,{modalSelectorProps:{handleGiveUp:he,tipSetting:ee,setTipSetting:w,order:_,setOrder:v,openGameId:E,current:h},children:(0,Y.jsxs)(`main`,{children:[(0,Y.jsx)(xK,{language:x}),(0,Y.jsx)(iP,{title:(0,Y.jsxs)(`div`,{className:`title`,children:[(0,Y.jsx)(`h1`,{children:`Contexto`}),C&&(0,Y.jsx)(X.Unlimited,{})]}),rightComponent:(0,Y.jsxs)($W,{children:[(0,Y.jsxs)(`button`,{type:`button`,className:`menu-item`,onClick:()=>{m.open(`instructions`),st.instructions(x)},children:[(0,Y.jsx)(X.QuestionMark,{}),b(`How to play`)]}),(0,Y.jsxs)(`button`,{type:`button`,className:`menu-item`,disabled:!!O||!!ae,onClick:me,children:[(0,Y.jsx)(X.LightBulb,{}),b(`Tip`)]}),(0,Y.jsxs)(`button`,{type:`button`,className:`menu-item`,disabled:!!O||!!ae,onClick:()=>
2436{m.open(`giveUp`),st.giveUpModalOpen(x)},children:[(0,Y.jsx)(X.GiveUp,{}),b(`Give up`)]}),(0,Y.jsxs)(`button`,{type:`button`,className:`menu-item`,onClick:()=>{m.open(`settings`),st.settings(x)},children:[(0,Y.jsx)(X.Settings,{}),b(`Settings`)]})]})}),(0,Y.jsxs)(GH,{initial:!1,children:[j&&(0,Y.jsx)(RK,{},`celebration`),j&&(0,Y.jsx)(BK,{children:(0,Y.jsx)(eG,{state:r})},`end`),j&&C&&(0,Y.jsx)(BK,{delaySeconds:ye,children:(0,Y.jsx)(`div`,{style:{textAlign:`center`,margin:`30px 0`},children:(0,Y.jsxs)(`button`,{type:`button`,className:`button`,onClick:()=>{st.playAgainClick(x),a()},children:[(0,Y.jsx)(X.PlayAgain,{}),b(`end.playAgain`)]})})},`play-again`),j&&(0,Y.jsx)(sK,{},`daily-announcement`),j&&(0,Y.jsx)(BK,{delaySeconds:be,children:(0,Y.jsx)(mK,{})},`other-games`),j&&(0,Y.jsx)(BK,{delaySeconds:xe,children:(0,Y.jsx)(`div`,{style:{textAlign:`center`,margin:`30px 0 20px 0`},children:(0,Y.jsxs)(`button`,{type:`button`,className:`button`,onClick:()=>ge(),children:[(0,Y.jsx)(X.Eye,{}),b(`Closest words`)]})})},`closest-words`)]},D),(0,Y.jsxs)(`div`,{className:`info-bar`,children:[!C&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`span`,{children:`${FD(D,x)}`}),`\xA0\xA0`]}),(0,Y.jsxs)(`span`,{className:`label`,children:[b(`attempts`),`:`]}),` `,(0,Y.jsx)(`span`,{children:k}),`\xA0\xA0`,ie>0&&(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsxs)(`span`,{className:`label`,children:[b(`tips`),`:`]}),` `,(0,Y.jsx)(`span`,{children:ie})]})]}),(0,Y.jsx)(`form`,{onSubmit:ue,children:(0,Y.jsx)(`input`,{className:`word`,type:`text`,name:`word`,value:o,onChange:de,placeholder:b(`inputPlaceholder`),autoCapitalize:`off`,autoComplete:`off`,enterKeyHint:`send`})}),_e,ve,(0,Y.jsx)(VO,{words:Ce,highlights:Se,order:_})]})})}var WK=8e3,GK=null,KK=null,qK=null;function JK(){return new Promise((e,t)=>{if(window.Paddle){e();return}let n=document.createElement(`script`);n.src=`https://cdn.paddle.com/paddle/v2/paddle.js`,n.onload=e,n.onerror=()=>t(Error(`Failed to load Paddle.js`)),document.head.appendChild(n)})}
2436function YK(e,t,n){return Promise.race([e,new Promise((e,r)=>{setTimeout(()=>r(Error(n)),t)})])}async function XK(){await JK(),window.Paddle.Initialize({token:`live_fb856aa9a8e03af88a597f218ae`,eventCallback(e){e.name===`checkout.payment.initiated`&&qK?.(),e.name===`checkout.completed`&&(window.Paddle.Checkout.close(),KK?.(),KK=null)}})}function ZK(){return GK||=XK().catch(e=>{throw GK=null,e}),GK}function QK({customerId:e,addressId:t,email:n}){if(!e)return{email:n};let r={id:e};return t&&(r.address={id:t}),r}async function $K({priceId:e,email:t,customerId:n,addressId:r,uid:i,plan:a,locale:o,onPaymentInitiated:s,onComplete:c}){await ZK(),KK=c,qK=s,window.Paddle.Checkout.open({items:[{priceId:e,quantity:1}],customer:QK({customerId:n,addressId:r,email:t}),customData:{uid:i,plan:a},settings:{locale:o,variant:`one-page`,allowLogout:!1,showAddDiscounts:!1}})}function eq(){try{window.Paddle?.Checkout.close()}catch{}}async function tq(e){await YK(ZK(),WK,`Paddle failed to load in time`);let{currencyCode:t,details:n}=(await YK(window.Paddle.PricePreview({items:e.map(e=>({priceId:e,quantity:1}))}),WK,`Paddle price preview timed out`)).data;return{currencyCode:t,lineItems:n.lineItems}}var $={wrapper:`_wrapper_gu9up_1`,pillar:`_pillar_gu9up_14`,pillarIcon:`_pillarIcon_gu9up_21`,pillarIconSymbol:`_pillarIconSymbol_gu9up_32`,pillarContent:`_pillarContent_gu9up_36`,pillarTitle:`_pillarTitle_gu9up_42`,pillarSub:`_pillarSub_gu9up_47`,planCard:`_planCard_gu9up_54`,selected:`_selected_gu9up_70`,planCardLeft:`_planCardLeft_gu9up_74`,planCardNameRow:`_planCardNameRow_gu9up_81`,planCardName:`_planCardName_gu9up_81`,planCardHighlight:`_planCardHighlight_gu9up_93`,planCardBadge:`_planCardBadge_gu9up_104`,planCardPerDay:`_planCardPerDay_gu9up_114`,planCardRight:`_planCardRight_gu9up_120`,planCardPrice:`_planCardPrice_gu9up_127`,skeleton:`_skeleton_gu9up_133`,pricePulse:`_pricePulse_gu9up_1`,skeletonPerDay:`_skeletonPerDay_gu9up_140`,skeletonPrice:`_skeletonPrice_gu9up_145`,successBody:`_successBody_gu9up_161`,successIconWrapper:`_successIconWrapper_gu9up_172`,successTitle:`_successTitle_gu9up_177`,successMessage:`_successMessage_gu9up_183`,successNote:`_successNote_gu9up_191`,successCta:`_successCta_gu9up_200`,successEmail:`_successEmail_gu9up_204`,header:`_header_gu9up_212`,headerTitle:`_headerTitle_gu9up_218`,headerSubtitle:`_headerSubtitle_gu9up_227`,pillars:`_pillars_gu9up_234`,pillarsList:`_pillarsList_gu9up_243`,gameLogos:`_gameLogos_gu9up_249`,gameLogosInline:`_gameLogosInline_gu9up_259`,gameLogosCentered:`_gameLogosCentered_gu9up_263`,plans:`_plans_gu9up_282`,ctaButton:`_ctaButton_gu9up_291`,ctaIcon:`_ctaIcon_gu9up_297`,ctaNote:`_ctaNote_gu9up_301`,ctaError:`_ctaError_gu9up_309`},nq=76e3;function rq(){return`${C().gameName}-pass-login-pending`}function iq(){return`${C().gameName}-pass-selected-plan`}function aq(){let{gameName:e}=C();return e.charAt(0).toUpperCase()+e.slice(1)}function oq(){let e=sessionStorage.getItem(iq());return _A.some(t=>t.priceId===e)?e:null}function sq(e,t){let{maximumFractionDigits:n}=new Intl.NumberFormat(void 0,{style:`currency`,currency:t}).resolvedOptions();return e/10**n}function cq(e,t){return new Intl.NumberFormat(void 0,{style:`currency`,currency:t}).format(e)}function lq(e,t){return Number.isInteger(e)?new Intl.NumberFormat(void 0,{style:`currency`,currency:t,maximumFractionDigits:0}).format(e):cq(e,t)}function uq(e,{currencyCode:t,lineItems:n}){let r=Object.fromEntries(n.map(e=>[e.price.id,Number(e.totals.total)])),i=Object.fromEntries(e.map(e=>[e.priceId,sq(r[e.priceId],t)])),a=Object.fromEntries(e.map(e=>[e.priceId,i[e.priceId]/e.durationDays])),o=a[e.reduce((e,t)=>t.durationDays<e.durationDays?t:e).priceId];return Object.fromEntries(e.map(e=>{let n=a[e.priceId],r=Math.round((o-n)/o*100);return[e.priceId,{displayPrice:lq(i[e.priceId],t),perDayAmount:n,perDayFormatted:cq(n,t),savingsPercent:r>0?r:null}]}))}var dq=26,fq=[UD.Contexto,UD.Conexo,UD.Letroso,UD.Expresso];function pq({className:e}){return(0,Y.jsx)(`div`,{className:`${$.gameLogos} ${e}`,children:fq.map(e=>(0,Y.jsx)(e,{size:dq},e.name))})}function mq({iconName:e,title:t,sub:n}){return(0,Y.jsxs)(`div`,{className:$.pillar,children:[(0,Y.jsx)(`div`,{className:$.pillarIcon,children:(0,Y.jsx)(`span`,{className:`material-symbols-rounded ${$.pillarIconSymbol}`,children:e})}),(0,Y.jsxs)(`div`,{className:$.pillarContent,children:[(0,Y.jsx)(`div`,{className:$.pillarTitle,children:t}),(0,Y.jsx)(`div`,{className:$.pillarSub,children:n})]})]})}function hq({plan:e,pricing:t,pricingUnavailable:n,selected:r,onSelect:i}){let{t:a}=go(),o=!t&&!n;return(0,Y.jsxs)(`button`,{type:`button`,onClick:i,className:`${$.planCard}${r?` ${$.selected}`:``}`,children:[(0,Y.jsxs)(`div`,{className:$.planCardLeft,children:[(0,Y.jsxs)(`div`,{className:$.planCardNameRow,children:[(0,Y.jsx)(`span`,{className:$.planCardName,children:a(`pass.plans.${e.durationDays}`)}),e.highlight&&(0,Y.jsx)(`span`,{className:$.planCardHighlight,children:a(`pass.bestValue`)}),t?.savingsPercent&&(0,Y.jsx)(`span`,{className:$.planCardBadge,children:a(`pass.savePercent`,{percent:t.savingsPercent})})]}),o?(0,Y.jsx)(`span`,{className:`${$.skeleton} ${$.skeletonPerDay}`}):(0,Y.jsx)(`div`,{className:$.planCardPerDay,children:t?a(`pass.perDay`,{price:t.perDayFormatted}):` `})]}),(0,Y.jsx)(`div`,{className:$.planCardRight,children:o?(0,Y.jsx)(`span`,{className:`${$.skeleton} ${$.skeletonPrice}`}):(0,Y.jsx)(`div`,{className:$.planCardPrice,children:t?.displayPrice??`—`})})]})}function gq({useAuth:e,Layout:t,TopBar:n,useSaveGameToCloudOnPathChange:r=()=>{},accountModalId:i=`account`}){function a({plan:e,user:r,onBack:i}){let{t:a}=go();return(0,Y.jsx)(t,{children:(0,Y.jsxs)(`div`,{className:$.wrapper,children:[(0,Y.jsx)(n,{leftComponent:(0,Y.jsx)(`button`,{type:`button`,className:`btn`,onClick:i,children:(0,Y.jsx)(UD.Back,{})}),hideAccountButton:!0}),(0,Y.jsxs)(`div`,{className:$.successBody,children:[(0,Y.jsx)(`div`,{className:$.successIconWrapper,children:(0,Y.jsx)(UD.PassMark,{size:56})}),(0,Y.jsx)(`div`,{className:$.successTitle,children:a(`pass.success.title`)}),(0,Y.jsx)(`p`,{className:$.successMessage,children:a(`pass.success.message`,{count:e.durationDays})}),(0,Y.jsx)(`p`,{className:$.successNote,children:a(`pass.success.note`)}),(0,Y.jsx)(`button`,{type:`button`,className:`button ${$.successCta}`,onClick:i,children:a(`pass.success.back`,{game:aq()})}),r?.email&&(0,Y.jsx)(`p`,{className:$.successEmail,children:a(`pass.success.receipt`,{email:r.email})})]})]})})}function o({delayed:e,onBack:r}){let{t:i}=go();return(0,Y.jsx)(t,{children:(0,Y.jsxs)(`div`,{className:$.wrapper,children:[(0,Y.jsx)(n,{leftComponent:(0,Y.jsx)(`div`,{style:{width:32}}),hideAccountButton:!0}),(0,Y.jsxs)(`div`,{className:$.successBody,children:[(0,Y.jsx)(`div`,{className:$.successIconWrapper,children:e?(0,Y.jsx)(UD.PassMark,{size:56}):(0,Y.jsx)(nA,{})}),(0,Y.jsx)(`div`,{className:$.successTitle,children:i(e?`pass.delayed.title`:`pass.confirming.title`)}),(0,Y.jsx)(`p`,{className:$.successMessage,children:i(e?`pass.delayed.message`:`pass.confirming.message`)}),e&&(0,Y.jsx)(`button`,{type:`button`,className:`button ${$.successCta}`,onClick:r,children:i(`pass.success.back`,{game:aq()})})]})]})})}function s(){let{t:r}=go(),{user:s,loading:c,isSubscribed:l,subscription:u,waitForNewGrant:d}=e(),f=ZD(),p=Wi(),{language:m}=Ki(),h=_A.find(e=>e.highlight)??_A[_A.length-1],[g,_]=(0,y.useState)(()=>oq()??h.priceId);(0,y.useEffect)(()=>{sessionStorage.removeItem(iq())},[]);let[v,b]=(0,y.useState)(`plans`),x=_A.find(e=>e.priceId===g),[S,C]=(0,y.useState)(null),[w,T]=(0,y.useState)(!1),[E,ee]=(0,y.useState)(!1),[te,D]=(0,y.useState)(!1);(0,y.useEffect)(()=>{let e=!1;return tq(_A.map(e=>e.priceId)).then(t=>{e||C(uq(_A,t))}).catch(t=>{console.error(t),e||T(!0)}),()=>{e=!0}},[]);let ne=S?.[g],re=S?Object.values(S).sort((e,t)=>
2436e.perDayAmount-t.perDayAmount)[0].perDayFormatted:null,O=r(`pass.headerSubtitle`);re&&(O=r(`pass.headerSubtitlePriced`,{price:re})),l&&(O=re?r(`pass.extendSubtitlePriced`,{price:re}):r(`pass.extendSubtitle`));let ie=(0,y.useRef)(!1),k=async e=>{if(!ie.current){ie.current=!0;try{await d(e)&&(eq(),b(`success`))}finally{ie.current=!1}}};(0,y.useEffect)(()=>{if(v!==`confirming`)return;let e=setTimeout(()=>b(e=>e===`confirming`?`delayed`:e),nq);return()=>clearTimeout(e)},[v]),(0,y.useEffect)(()=>{!s||c||sessionStorage.getItem(rq())!==null&&(f.locked||(sessionStorage.removeItem(rq()),f.id===i&&f.close()))},[s,c,f.id,f.locked]);let ae=async()=>{if(!s){sessionStorage.setItem(rq(),`1`),sessionStorage.setItem(iq(),g),f.open(i);return}D(!1),ee(!0);let e=u?.paddleTransactionId??null;try{await $K({priceId:x.priceId,email:s.email,customerId:u?.paddleCustomerId,addressId:u?.paddleAddressId,uid:s.uid,plan:x.label,locale:m,onPaymentInitiated:()=>k(e),onComplete:()=>{b(e=>e===`success`?e:`confirming`),k(e)}})}catch(e){console.error(e),D(!0)}finally{ee(!1)}},oe=()=>{p(m?`/${m}/`:`/`)};return v===`confirming`||v===`delayed`?(0,Y.jsx)(o,{delayed:v===`delayed`,onBack:oe}):v===`success`?(0,Y.jsx)(a,{plan:x,user:s,onBack:oe}):(0,Y.jsx)(t,{children:(0,Y.jsxs)(`div`,{className:$.wrapper,children:[(0,Y.jsx)(n,{hideAccountButton:!0}),(0,Y.jsxs)(`div`,{className:$.header,children:[(0,Y.jsxs)(`div`,{className:$.headerTitle,children:[(0,Y.jsx)(UD.PassMark,{size:26}),l?r(`pass.extendTitle`):`Daydash Pass`]}),(0,Y.jsx)(`div`,{className:$.headerSubtitle,children:O})]}),(0,Y.jsx)(pq,{className:$.gameLogosCentered}),(0,Y.jsxs)(`div`,{className:$.pillars,children:[(0,Y.jsxs)(`div`,{className:$.pillarsList,children:[(0,Y.jsx)(mq,{iconName:`block`,title:r(`pass.noAdsTitle`),sub:r(`pass.noAdsSub`)}),(0,Y.jsx)(mq,{iconName:`event_repeat`,title:r(`pass.noAutoRenewalTitle`),sub:r(`pass.noAutoRenewalSub`)})]}),(0,Y.jsx)(pq,{className:$.gameLogosInline})]}),(0,Y.jsx)(`div`,{className:$.plans,children:_A.map(e=>(0,Y.jsx)(hq,{plan:e,pricing:S?.[e.priceId],pricingUnavailable:w,selected:g===e.priceId,onSelect:()=>_(e.priceId)},e.priceId))}),(0,Y.jsx)(`button`,{type:`button`,className:`button fill ${$.ctaButton}`,onClick:ae,disabled:E,children:s?E?r(`pass.loadingCheckout`):ne?r(l?`pass.extendWithPrice`:`pass.continueWithPrice`,{plan:r(`pass.plans.${x.durationDays}`),price:ne.displayPrice}):r(l?`pass.extendWith`:`pass.continueWith`,{plan:r(`pass.plans.${x.durationDays}`)}):(0,Y.jsxs)(Y.Fragment,{children:[(0,Y.jsx)(`span`,{className:`material-symbols-rounded ${$.ctaIcon}`,children:`lock`}),` `,r(`pass.signInToContinue`)]})}),te?(0,Y.jsx)(`p`,{className:$.ctaError,children:r(`pass.checkoutError`)}):(0,Y.jsx)(`p`,{className:$.ctaNote,children:r(`pass.secureCheckout`)})]})})}function c(){r();let e=Wi(),{language:t}=Ki(),n=A.isNativePlatform();return(0,y.useEffect)(()=>{n&&e(t?`/${t}/`:`/`,{replace:!0})},[n,t,e]),n?null:(0,Y.jsx)(s,{})}return c}var _q=gq({useAuth:yD,Layout:nP,TopBar:iP,useSaveGameToCloudOnPathChange:bD}),vq=[`pt`,`en`,`es`];function yq(){let{pathname:e,search:t,hash:n}=Vi(),r=Wi();(0,y.useEffect)(()=>{vq.includes(e.slice(1))&&r(`${e}/${t}${n}`,{replace:!0})},[e,t,n,r])}var bq=[`pt`,`en`,`es`],xq=`daydash-language`;function Sq(e){return bq.includes(e)}function Cq(){let e=localStorage.getItem(xq);return Sq(e)?e:null}function wq(e){localStorage.setItem(xq,e)}var Tq=e=>[`pt`,`en`,`es`].includes(e);function Eq({children:e}){yq();let{language:t}=Ki(),{pathname:n,search:r}=Vi(),i=Wi(),{i18n:a}=go(),o=localStorage.getItem(`contexto-language`),s=()=>{let e=navigator.languages,t=yo();for(let n of e)for(let e of t)if(n.includes(e))return e;return`en`};return(0,y.useEffect)(()=>{let e=Tq(t)&&t||Oe()&&Cq()||Tq(o)&&o||s();if(!t||!Tq(t)){i(`/${e}${n}${r}`,{replace:!0});return}a.changeLanguage(e),N.default.locale(e),localStorage.setItem(`contexto-language`,e),Oe()&&wq(e);let c=``;c=e===`pt`?`pt-BR`:e===`en`?`en-US`:`es-ES`,document.documentElement.lang=c},[t]),e}function Dq(e,t=bn){(0,y.useEffect)(()=>vn(n=>{t()===`system`&&(xn(n),e?.(n))}),[e,t])}function Oq({children:e}){return(0,y.useEffect)(()=>{let e=wn();xn(e),XO(e)},[]),Dq(XO,Cn),(0,Y.jsx)(`div`,{children:e})}var kq=`account`;function Aq({syncProgress:e,loading:t}){let n=ZD(),r=(0,y.useRef)(!1),i=e!==null;(0,y.useEffect)(()=>{i&&n.id!==kq&&(r.current=!0,n.openAutomatically(kq))},[i]),(0,y.useEffect)(()=>{t||r.current&&(r.current=!1,n.closeAutomatically())},[t])}function jq({children:e}){let t=Vi(),{language:n}=Ki();return t.state?.fromApp?e:(0,Y.jsx)(fa,{to:n?`/${n}/`:`/`,replace:!0})}var Mq={x:10,y:10};function Nq({onReset:e}){let[t,n]=(0,y.useState)(!1),[r,i]=(0,y.useState)(Mq);return(0,y.useRef)(null),null}var Pq;(function(e){e[e.UNKNOWN=0]=`UNKNOWN`,e[e.UPDATE_NOT_AVAILABLE=1]=`UPDATE_NOT_AVAILABLE`,e[e.UPDATE_AVAILABLE=2]=`UPDATE_AVAILABLE`,e[e.UPDATE_IN_PROGRESS=3]=`UPDATE_IN_PROGRESS`})(Pq||={});var Fq;(function(e){e[e.UNKNOWN=0]=`UNKNOWN`,e[e.PENDING=1]=`PENDING`,e[e.DOWNLOADING=2]=`DOWNLOADING`,e[e.INSTALLING=3]=`INSTALLING`,e[e.INSTALLED=4]=`INSTALLED`,e[e.FAILED=5]=`FAILED`,e[e.CANCELED=6]=`CANCELED`,e[e.DOWNLOADED=11]=`DOWNLOADED`})(Fq||={});var Iq;(function(e){e[e.OK=0]=`OK`,e[e.CANCELED=1]=`CANCELED`,e[e.FAILED=2]=`FAILED`,e[e.NOT_AVAILABLE=3]=`NOT_AVAILABLE`,e[e.NOT_ALLOWED=4]=`NOT_ALLOWED`,e[e.INFO_MISSING=5]=`INFO_MISSING`})(Iq||={});var Lq=j(`AppUpdate`,{web:()=>xe(()=>import(`./web-o1EwZVeD.js`).then(e=>new e.AppUpdateWeb),[])});function Rq(){(0,y.useEffect)(()=>{!A.isNativePlatform()||Oe()||Lq.getAppUpdateInfo().then(({updateAvailability:e,immediateUpdateAllowed:t})=>{e===Pq.UPDATE_AVAILABLE&&(A.getPlatform()===`android`&&t?Lq.performImmediateUpdate():Lq.openAppStore())})},[])}var zq=j(`App`,{web:()=>xe(()=>import(`./web-ofe9sOvn.js`).then(e=>new e.AppWeb),[])});function Bq(){(0,y.useEffect)(()=>
2436{if(!A.isNativePlatform())return;let e;return zq.addListener(`backButton`,({canGoBack:e})=>{e?window.history.back():Oe()?window.location.href=Ae():zq.exitApp()}).then(t=>{e=t}),()=>{e?.remove()}},[])}function Vq(){let{isSubscribed:e,loading:t}=yD();return(0,y.useEffect)(()=>{if(!(t||e))return zt(),()=>Bt()},[t,e]),null}function Hq(){let{syncProgress:e,loading:t}=yD();return Aq({syncProgress:e,loading:t}),null}var Uq=({children:e})=>(0,Y.jsx)(Eq,{children:(0,Y.jsxs)(QD,{children:[(0,Y.jsx)(Hq,{}),e]})}),Wq=(0,Y.jsx)(Uq,{children:(0,Y.jsx)(OA,{})}),Gq=(0,Y.jsx)(jq,{children:(0,Y.jsx)(Uq,{children:(0,Y.jsx)(UK,{})})}),Kq=(0,Y.jsx)(Uq,{children:(0,Y.jsx)(aP,{})}),qq=(0,Y.jsx)(Uq,{children:(0,Y.jsx)(UK,{})}),Jq=(0,Y.jsx)(Uq,{children:(0,Y.jsx)(UK,{mode:`unlimited`})}),Yq=(0,Y.jsx)(Uq,{children:(0,Y.jsx)(_q,{})});Me();var Xq=wa([{path:`/`,element:Wq},{path:`/daily`,element:Gq},{path:`/previous`,element:Kq},{path:`/previous/:date`,element:qq},{path:`/unlimited`,element:Jq},{path:`/pass`,element:Yq},{path:`/:language`,element:Wq},{path:`/:language/daily`,element:Gq},{path:`/:language/previous`,element:Kq},{path:`/:language/previous/:date`,element:qq},{path:`/:language/unlimited`,element:Jq},{path:`/:language/pass`,element:Yq}],{basename:ke()});function Zq(){return(0,y.useEffect)(()=>{ZO()},[]),Rq(),Bq(),(0,Y.jsxs)(vD,{children:[(0,Y.jsx)(Nq,{}),(0,Y.jsx)(Vq,{}),(0,Y.jsx)(Oq,{children:(0,Y.jsx)(Pa,{router:Xq,future:{v7_startTransition:!0}})})]})}S(T),xn(wn());async function Qq(){$e(),qt(),await De(),O(),await Yg(),await Et(),b.createRoot(document.getElementById(`root`)).render((0,Y.jsx)(y.StrictMode,{children:(0,Y.jsx)(Zq,{})}))}Qq();export{ht as $,gm as A,Th as B,Zm as C,Eh as D,gh as E,Dp as F,tm as G,jp as H,zp as I,Vu as J,$p as K,Kp as L,Hp as M,qp as N,Rh as O,pm as P,tl as Q,Yp as R,tf as S,Lp as T,nm as U,Ih as V,rm as W,Hu as X,Ru as Y,Bu as Z,_m as _,Sp as a,Pg as b,yp as c,Wp as d,xe as et,wm as f,Gp as g,zf as h,bp as i,Qp as j,Wd as k,fh as l,Up as m,ek as n,xp as o,Em as p,Ku as q,gp as r,op as s,$O as t,M as tt,Cp as u,Zp as v,Jp as w,Bh as x,fm as y,hh as z};

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.